From ca34f2164647c6c74217cd1d4b5afcff123e78f8 Mon Sep 17 00:00:00 2001 From: jerrydev0927 Date: Mon, 20 Feb 2023 06:42:51 +0000 Subject: [PATCH] Update Rollup and related plugins to their most recent versions (#24916) Update Rollup and related plugins to their most recent versions + resolve any breaking changes/deprecations/etc along the way. I made each change piece by piece, so the commit history tells a pretty good story of what was changed where/how/why. fixes https://github.com/facebook/react/issues/24894 For the full deepdive/context, see: - https://github.com/facebook/react/issues/24894 The inspiration for this came from @jasonwilliams 's PR for attempting to add sourcemap output support to React's builds: - https://github.com/facebook/react/issues/20186 - https://github.com/facebook/react/pull/21946 But I figured that it would be useful to minimise the scope of changes in that PR, and to modernise the build tooling along the way. If any of these updates rely on a node version later than `10.x`, then the following PR may have to land first, otherwise things might break on AppVeyor: - https://github.com/facebook/react/issues/24891 - https://github.com/facebook/react/pull/24892 Co-authored-by: Sebastian Markbage DiffTrain build for [6b6d0617eff48860c5b4e3e79c74cbd3312cf45a](https://github.com/facebook/react/commit/6b6d0617eff48860c5b4e3e79c74cbd3312cf45a) [View git log for this commit](https://github.com/facebook/react/commits/6b6d0617eff48860c5b4e3e79c74cbd3312cf45a) --- compiled/babel-plugin-react-refresh/index.js | 2 +- .../facebook-www/JSXDEVRuntime-dev.classic.js | 108 +- .../facebook-www/JSXDEVRuntime-dev.modern.js | 108 +- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 398 +- compiled/facebook-www/React-dev.modern.js | 398 +- compiled/facebook-www/React-prod.classic.js | 44 +- compiled/facebook-www/React-prod.modern.js | 38 +- .../facebook-www/React-profiling.classic.js | 44 +- .../facebook-www/React-profiling.modern.js | 38 +- compiled/facebook-www/ReactART-dev.classic.js | 1053 +- compiled/facebook-www/ReactART-dev.modern.js | 1044 +- .../facebook-www/ReactART-prod.classic.js | 9903 ----------- compiled/facebook-www/ReactART-prod.modern.js | 427 +- compiled/facebook-www/ReactDOM-dev.classic.js | 1527 +- compiled/facebook-www/ReactDOM-dev.modern.js | 1478 +- .../facebook-www/ReactDOM-prod.classic.js | 888 +- compiled/facebook-www/ReactDOM-prod.modern.js | 806 +- .../ReactDOM-profiling.classic.js | 1004 +- .../facebook-www/ReactDOM-profiling.modern.js | 924 +- .../ReactDOMServer-dev.classic.js | 254 +- .../facebook-www/ReactDOMServer-dev.modern.js | 242 +- .../ReactDOMServer-prod.classic.js | 3678 ---- .../ReactDOMServer-prod.modern.js | 36 +- .../ReactDOMServerStreaming-dev.modern.js | 194 +- .../ReactDOMServerStreaming-prod.modern.js | 24 +- .../ReactDOMTesting-dev.classic.js | 1687 +- .../ReactDOMTesting-dev.modern.js | 1362 +- .../ReactDOMTesting-prod.classic.js | 14767 ---------------- .../ReactDOMTesting-prod.modern.js | 763 +- .../ReactFlightDOMRelayClient-prod.classic.js | 389 - .../ReactFlightDOMRelayServer-dev.classic.js | 92 +- .../ReactFlightDOMRelayServer-dev.modern.js | 92 +- .../ReactFlightDOMRelayServer-prod.classic.js | 1166 -- .../ReactFlightDOMRelayServer-prod.modern.js | 37 +- compiled/facebook-www/ReactIs-dev.classic.js | 36 +- compiled/facebook-www/ReactIs-dev.modern.js | 36 +- compiled/facebook-www/ReactIs-prod.classic.js | 151 - .../ReactTestRenderer-dev.classic.js | 896 +- .../ReactTestRenderer-dev.modern.js | 896 +- .../ReactTestUtils-dev.classic.js | 64 +- .../facebook-www/ReactTestUtils-dev.modern.js | 64 +- .../facebook-www/Scheduler-dev.classic.js | 2 +- compiled/facebook-www/Scheduler-dev.modern.js | 2 +- .../facebook-www/Scheduler-prod.classic.js | 379 - .../facebook-www/Scheduler-prod.modern.js | 7 +- .../Scheduler-profiling.classic.js | 1 + .../Scheduler-profiling.modern.js | 1 + .../facebook-www/SchedulerMock-dev.classic.js | 10 +- .../facebook-www/SchedulerMock-dev.modern.js | 10 +- .../SchedulerMock-prod.classic.js | 426 - .../SchedulerPostTask-prod.classic.js | 144 - .../facebook-www/eslint-plugin-react-hooks.js | 13 +- 54 files changed, 7942 insertions(+), 40215 deletions(-) delete mode 100644 compiled/facebook-www/ReactART-prod.classic.js delete mode 100644 compiled/facebook-www/ReactDOMServer-prod.classic.js delete mode 100644 compiled/facebook-www/ReactDOMTesting-prod.classic.js delete mode 100644 compiled/facebook-www/ReactFlightDOMRelayClient-prod.classic.js delete mode 100644 compiled/facebook-www/ReactFlightDOMRelayServer-prod.classic.js delete mode 100644 compiled/facebook-www/ReactIs-prod.classic.js delete mode 100644 compiled/facebook-www/Scheduler-prod.classic.js delete mode 100644 compiled/facebook-www/SchedulerMock-prod.classic.js delete mode 100644 compiled/facebook-www/SchedulerPostTask-prod.classic.js diff --git a/compiled/babel-plugin-react-refresh/index.js b/compiled/babel-plugin-react-refresh/index.js index 6c350f926b..836ad9da8b 100644 --- a/compiled/babel-plugin-react-refresh/index.js +++ b/compiled/babel-plugin-react-refresh/index.js @@ -169,7 +169,7 @@ function ReactFreshBabelPlugin (babel) { } // Neither require nor import. Might be a HOC. // Pass through. - } + } else ; break; } diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js index dafc8ba99b..b9bafc9f8a 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js @@ -105,41 +105,13 @@ function printWarning(level, format, args) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); -var disableInputAttributeSyncing = - dynamicFeatureFlags.disableInputAttributeSyncing, - enableTrustedTypesIntegration = - dynamicFeatureFlags.enableTrustedTypesIntegration, - disableSchedulerTimeoutBasedOnReactExpirationTime = - dynamicFeatureFlags.disableSchedulerTimeoutBasedOnReactExpirationTime, - replayFailedUnitOfWorkWithInvokeGuardedCallback = - dynamicFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback, - enableFilterEmptyStringAttributesDOM = - dynamicFeatureFlags.enableFilterEmptyStringAttributesDOM, - enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, - deferRenderPhaseUpdateToNextBatch = - dynamicFeatureFlags.deferRenderPhaseUpdateToNextBatch, - enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - skipUnmountedBoundaries = dynamicFeatureFlags.skipUnmountedBoundaries, - enableUseRefAccessWarning = dynamicFeatureFlags.enableUseRefAccessWarning, +var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, disableNativeComponentFrames = dynamicFeatureFlags.disableNativeComponentFrames, - disableSchedulerTimeoutInWorkLoop = - dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableLazyContextPropagation = - dynamicFeatureFlags.enableLazyContextPropagation, - enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates, - enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane, - enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay = - dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableCustomElementPropertySupport = - dynamicFeatureFlags.enableCustomElementPropertySupport; // On WWW, false is used for a new modern build. -var enableProfilerNestedUpdateScheduledHook = - dynamicFeatureFlags.enableProfilerNestedUpdateScheduledHook; - -var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; // Note: we'll want to remove this when we to userland implementation. + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing; +// On WWW, false is used for a new modern build. -var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); +var REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"); function isValidElementType(type) { if (typeof type === "string" || typeof type === "function") { return true; @@ -171,7 +143,7 @@ function isValidElementType(type) { // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. - type.$$typeof === REACT_CLIENT_REFERENCE || + type.$$typeof === REACT_CLIENT_REFERENCE$1 || type.getModuleId !== undefined ) { return true; @@ -649,9 +621,9 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { var hasOwnProperty = Object.prototype.hasOwnProperty; var loggedTypeFailures = {}; -var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; -function setCurrentlyValidatingElement(element) { +function setCurrentlyValidatingElement$1(element) { { if (element) { var owner = element._owner; @@ -660,9 +632,9 @@ function setCurrentlyValidatingElement(element) { element._source, owner ? owner.type : null ); - ReactDebugCurrentFrame.setExtraStackFrame(stack); + ReactDebugCurrentFrame$1.setExtraStackFrame(stack); } else { - ReactDebugCurrentFrame.setExtraStackFrame(null); + ReactDebugCurrentFrame$1.setExtraStackFrame(null); } } } @@ -712,7 +684,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { } if (error$1 && !(error$1 instanceof Error)) { - setCurrentlyValidatingElement(element); + setCurrentlyValidatingElement$1(element); error( "%s: type specification of %s" + @@ -727,7 +699,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { typeof error$1 ); - setCurrentlyValidatingElement(null); + setCurrentlyValidatingElement$1(null); } if ( @@ -737,11 +709,11 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { // Only monitor this failure once because there tends to be a lot of the // same error. loggedTypeFailures[error$1.message] = true; - setCurrentlyValidatingElement(element); + setCurrentlyValidatingElement$1(element); error("Failed %s type: %s", location, error$1.message); - setCurrentlyValidatingElement(null); + setCurrentlyValidatingElement$1(null); } } } @@ -828,7 +800,7 @@ function checkKeyStringCoercion(value) { } } -var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; +var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; var RESERVED_PROPS = { key: true, ref: true, @@ -875,12 +847,12 @@ function warnIfStringRefCannotBeAutoConverted(config, self) { { if ( typeof config.ref === "string" && - ReactCurrentOwner.current && + ReactCurrentOwner$1.current && self && - ReactCurrentOwner.current.stateNode !== self + ReactCurrentOwner$1.current.stateNode !== self ) { var componentName = getComponentNameFromType( - ReactCurrentOwner.current.type + ReactCurrentOwner$1.current.type ); if (!didWarnAboutStringRefs[componentName]) { @@ -891,7 +863,7 @@ function warnIfStringRefCannotBeAutoConverted(config, self) { "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref", - getComponentNameFromType(ReactCurrentOwner.current.type), + getComponentNameFromType(ReactCurrentOwner$1.current.type), config.ref ); @@ -1029,7 +1001,7 @@ var ReactElement = function (type, key, ref, self, source, owner, props) { * @param {string} key */ -function jsxDEV(type, config, maybeKey, source, self) { +function jsxDEV$1(type, config, maybeKey, source, self) { { var propName; // Reserved names are extracted @@ -1103,17 +1075,17 @@ function jsxDEV(type, config, maybeKey, source, self) { ref, self, source, - ReactCurrentOwner.current, + ReactCurrentOwner$1.current, props ); } } -var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; -var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; -var REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"); +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); -function setCurrentlyValidatingElement$1(element) { +function setCurrentlyValidatingElement(element) { { if (element) { var owner = element._owner; @@ -1122,9 +1094,9 @@ function setCurrentlyValidatingElement$1(element) { element._source, owner ? owner.type : null ); - ReactDebugCurrentFrame$1.setExtraStackFrame(stack); + ReactDebugCurrentFrame.setExtraStackFrame(stack); } else { - ReactDebugCurrentFrame$1.setExtraStackFrame(null); + ReactDebugCurrentFrame.setExtraStackFrame(null); } } } @@ -1154,8 +1126,8 @@ function isValidElement(object) { function getDeclarationErrorAddendum() { { - if (ReactCurrentOwner$1.current) { - var name = getComponentNameFromType(ReactCurrentOwner$1.current.type); + if (ReactCurrentOwner.current) { + var name = getComponentNameFromType(ReactCurrentOwner.current.type); if (name) { return "\n\nCheck the render method of `" + name + "`."; @@ -1238,7 +1210,7 @@ function validateExplicitKey(element, parentType) { if ( element && element._owner && - element._owner !== ReactCurrentOwner$1.current + element._owner !== ReactCurrentOwner.current ) { // Give the component that originally created this child. childOwner = @@ -1247,7 +1219,7 @@ function validateExplicitKey(element, parentType) { "."; } - setCurrentlyValidatingElement$1(element); + setCurrentlyValidatingElement(element); error( 'Each child in a list should have a unique "key" prop.' + @@ -1256,7 +1228,7 @@ function validateExplicitKey(element, parentType) { childOwner ); - setCurrentlyValidatingElement$1(null); + setCurrentlyValidatingElement(null); } } /** @@ -1275,7 +1247,7 @@ function validateChildKeys(node, parentType) { return; } - if (node.$$typeof === REACT_CLIENT_REFERENCE$1); + if (node.$$typeof === REACT_CLIENT_REFERENCE); else if (isArray(node)) { for (var i = 0; i < node.length; i++) { var child = node[i]; @@ -1324,7 +1296,7 @@ function validatePropTypes(element) { return; } - if (type.$$typeof === REACT_CLIENT_REFERENCE$1) { + if (type.$$typeof === REACT_CLIENT_REFERENCE) { return; } @@ -1382,7 +1354,7 @@ function validateFragmentProps(fragment) { var key = keys[i]; if (key !== "children" && key !== "key") { - setCurrentlyValidatingElement$1(fragment); + setCurrentlyValidatingElement(fragment); error( "Invalid prop `%s` supplied to `React.Fragment`. " + @@ -1390,17 +1362,17 @@ function validateFragmentProps(fragment) { key ); - setCurrentlyValidatingElement$1(null); + setCurrentlyValidatingElement(null); break; } } if (fragment.ref !== null) { - setCurrentlyValidatingElement$1(fragment); + setCurrentlyValidatingElement(fragment); error("Invalid attribute `ref` supplied to `React.Fragment`."); - setCurrentlyValidatingElement$1(null); + setCurrentlyValidatingElement(null); } } } @@ -1457,7 +1429,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { ); } - var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. + var element = jsxDEV$1(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { @@ -1535,10 +1507,10 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { } } // These two functions exist to still get child warnings in dev -var jsxDEV$1 = jsxWithValidation; +var jsxDEV = jsxWithValidation; exports.Fragment = REACT_FRAGMENT_TYPE; -exports.jsxDEV = jsxDEV$1; +exports.jsxDEV = jsxDEV; })(); } diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js index 21bfad01e8..e9f61bd91c 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js @@ -105,41 +105,13 @@ function printWarning(level, format, args) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); -var disableInputAttributeSyncing = - dynamicFeatureFlags.disableInputAttributeSyncing, - enableTrustedTypesIntegration = - dynamicFeatureFlags.enableTrustedTypesIntegration, - disableSchedulerTimeoutBasedOnReactExpirationTime = - dynamicFeatureFlags.disableSchedulerTimeoutBasedOnReactExpirationTime, - replayFailedUnitOfWorkWithInvokeGuardedCallback = - dynamicFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback, - enableFilterEmptyStringAttributesDOM = - dynamicFeatureFlags.enableFilterEmptyStringAttributesDOM, - enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, - deferRenderPhaseUpdateToNextBatch = - dynamicFeatureFlags.deferRenderPhaseUpdateToNextBatch, - enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - skipUnmountedBoundaries = dynamicFeatureFlags.skipUnmountedBoundaries, - enableUseRefAccessWarning = dynamicFeatureFlags.enableUseRefAccessWarning, +var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, disableNativeComponentFrames = dynamicFeatureFlags.disableNativeComponentFrames, - disableSchedulerTimeoutInWorkLoop = - dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableLazyContextPropagation = - dynamicFeatureFlags.enableLazyContextPropagation, - enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates, - enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane, - enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay = - dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableCustomElementPropertySupport = - dynamicFeatureFlags.enableCustomElementPropertySupport; // On WWW, true is used for a new modern build. -var enableProfilerNestedUpdateScheduledHook = - dynamicFeatureFlags.enableProfilerNestedUpdateScheduledHook; - -var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; // Note: we'll want to remove this when we to userland implementation. + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing; +// On WWW, true is used for a new modern build. -var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); +var REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"); function isValidElementType(type) { if (typeof type === "string" || typeof type === "function") { return true; @@ -171,7 +143,7 @@ function isValidElementType(type) { // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. - type.$$typeof === REACT_CLIENT_REFERENCE || + type.$$typeof === REACT_CLIENT_REFERENCE$1 || type.getModuleId !== undefined ) { return true; @@ -649,9 +621,9 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { var hasOwnProperty = Object.prototype.hasOwnProperty; var loggedTypeFailures = {}; -var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; -function setCurrentlyValidatingElement(element) { +function setCurrentlyValidatingElement$1(element) { { if (element) { var owner = element._owner; @@ -660,9 +632,9 @@ function setCurrentlyValidatingElement(element) { element._source, owner ? owner.type : null ); - ReactDebugCurrentFrame.setExtraStackFrame(stack); + ReactDebugCurrentFrame$1.setExtraStackFrame(stack); } else { - ReactDebugCurrentFrame.setExtraStackFrame(null); + ReactDebugCurrentFrame$1.setExtraStackFrame(null); } } } @@ -712,7 +684,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { } if (error$1 && !(error$1 instanceof Error)) { - setCurrentlyValidatingElement(element); + setCurrentlyValidatingElement$1(element); error( "%s: type specification of %s" + @@ -727,7 +699,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { typeof error$1 ); - setCurrentlyValidatingElement(null); + setCurrentlyValidatingElement$1(null); } if ( @@ -737,11 +709,11 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { // Only monitor this failure once because there tends to be a lot of the // same error. loggedTypeFailures[error$1.message] = true; - setCurrentlyValidatingElement(element); + setCurrentlyValidatingElement$1(element); error("Failed %s type: %s", location, error$1.message); - setCurrentlyValidatingElement(null); + setCurrentlyValidatingElement$1(null); } } } @@ -828,7 +800,7 @@ function checkKeyStringCoercion(value) { } } -var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; +var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; var RESERVED_PROPS = { key: true, ref: true, @@ -875,12 +847,12 @@ function warnIfStringRefCannotBeAutoConverted(config, self) { { if ( typeof config.ref === "string" && - ReactCurrentOwner.current && + ReactCurrentOwner$1.current && self && - ReactCurrentOwner.current.stateNode !== self + ReactCurrentOwner$1.current.stateNode !== self ) { var componentName = getComponentNameFromType( - ReactCurrentOwner.current.type + ReactCurrentOwner$1.current.type ); if (!didWarnAboutStringRefs[componentName]) { @@ -891,7 +863,7 @@ function warnIfStringRefCannotBeAutoConverted(config, self) { "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref", - getComponentNameFromType(ReactCurrentOwner.current.type), + getComponentNameFromType(ReactCurrentOwner$1.current.type), config.ref ); @@ -1029,7 +1001,7 @@ var ReactElement = function (type, key, ref, self, source, owner, props) { * @param {string} key */ -function jsxDEV(type, config, maybeKey, source, self) { +function jsxDEV$1(type, config, maybeKey, source, self) { { var propName; // Reserved names are extracted @@ -1103,17 +1075,17 @@ function jsxDEV(type, config, maybeKey, source, self) { ref, self, source, - ReactCurrentOwner.current, + ReactCurrentOwner$1.current, props ); } } -var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; -var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; -var REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"); +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); -function setCurrentlyValidatingElement$1(element) { +function setCurrentlyValidatingElement(element) { { if (element) { var owner = element._owner; @@ -1122,9 +1094,9 @@ function setCurrentlyValidatingElement$1(element) { element._source, owner ? owner.type : null ); - ReactDebugCurrentFrame$1.setExtraStackFrame(stack); + ReactDebugCurrentFrame.setExtraStackFrame(stack); } else { - ReactDebugCurrentFrame$1.setExtraStackFrame(null); + ReactDebugCurrentFrame.setExtraStackFrame(null); } } } @@ -1154,8 +1126,8 @@ function isValidElement(object) { function getDeclarationErrorAddendum() { { - if (ReactCurrentOwner$1.current) { - var name = getComponentNameFromType(ReactCurrentOwner$1.current.type); + if (ReactCurrentOwner.current) { + var name = getComponentNameFromType(ReactCurrentOwner.current.type); if (name) { return "\n\nCheck the render method of `" + name + "`."; @@ -1238,7 +1210,7 @@ function validateExplicitKey(element, parentType) { if ( element && element._owner && - element._owner !== ReactCurrentOwner$1.current + element._owner !== ReactCurrentOwner.current ) { // Give the component that originally created this child. childOwner = @@ -1247,7 +1219,7 @@ function validateExplicitKey(element, parentType) { "."; } - setCurrentlyValidatingElement$1(element); + setCurrentlyValidatingElement(element); error( 'Each child in a list should have a unique "key" prop.' + @@ -1256,7 +1228,7 @@ function validateExplicitKey(element, parentType) { childOwner ); - setCurrentlyValidatingElement$1(null); + setCurrentlyValidatingElement(null); } } /** @@ -1275,7 +1247,7 @@ function validateChildKeys(node, parentType) { return; } - if (node.$$typeof === REACT_CLIENT_REFERENCE$1); + if (node.$$typeof === REACT_CLIENT_REFERENCE); else if (isArray(node)) { for (var i = 0; i < node.length; i++) { var child = node[i]; @@ -1324,7 +1296,7 @@ function validatePropTypes(element) { return; } - if (type.$$typeof === REACT_CLIENT_REFERENCE$1) { + if (type.$$typeof === REACT_CLIENT_REFERENCE) { return; } @@ -1382,7 +1354,7 @@ function validateFragmentProps(fragment) { var key = keys[i]; if (key !== "children" && key !== "key") { - setCurrentlyValidatingElement$1(fragment); + setCurrentlyValidatingElement(fragment); error( "Invalid prop `%s` supplied to `React.Fragment`. " + @@ -1390,17 +1362,17 @@ function validateFragmentProps(fragment) { key ); - setCurrentlyValidatingElement$1(null); + setCurrentlyValidatingElement(null); break; } } if (fragment.ref !== null) { - setCurrentlyValidatingElement$1(fragment); + setCurrentlyValidatingElement(fragment); error("Invalid attribute `ref` supplied to `React.Fragment`."); - setCurrentlyValidatingElement$1(null); + setCurrentlyValidatingElement(null); } } } @@ -1457,7 +1429,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { ); } - var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. + var element = jsxDEV$1(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { @@ -1535,10 +1507,10 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { } } // These two functions exist to still get child warnings in dev -var jsxDEV$1 = jsxWithValidation; +var jsxDEV = jsxWithValidation; exports.Fragment = REACT_FRAGMENT_TYPE; -exports.jsxDEV = jsxDEV$1; +exports.jsxDEV = jsxDEV; })(); } diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 169e3052be..7f238995b2 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -bc38a3dfa74f63e66a8307d34ad6d52e838ab3b0 +6b6d0617eff48860c5b4e3e79c74cbd3312cf45a diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 169e3052be..7f238995b2 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -bc38a3dfa74f63e66a8307d34ad6d52e838ab3b0 +6b6d0617eff48860c5b4e3e79c74cbd3312cf45a diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index b92cdb1b59..df91093642 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-classic-bc38a3dfa-20230220"; +var ReactVersion = "18.3.0-www-classic-6b6d0617e-20230220"; // ATTENTION // When adding new symbols to this file, @@ -476,39 +476,11 @@ function checkKeyStringCoercion(value) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); -var disableInputAttributeSyncing = - dynamicFeatureFlags.disableInputAttributeSyncing, - enableTrustedTypesIntegration = - dynamicFeatureFlags.enableTrustedTypesIntegration, - disableSchedulerTimeoutBasedOnReactExpirationTime = - dynamicFeatureFlags.disableSchedulerTimeoutBasedOnReactExpirationTime, - replayFailedUnitOfWorkWithInvokeGuardedCallback = - dynamicFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback, - enableFilterEmptyStringAttributesDOM = - dynamicFeatureFlags.enableFilterEmptyStringAttributesDOM, - enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, - deferRenderPhaseUpdateToNextBatch = - dynamicFeatureFlags.deferRenderPhaseUpdateToNextBatch, - enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - skipUnmountedBoundaries = dynamicFeatureFlags.skipUnmountedBoundaries, - enableUseRefAccessWarning = dynamicFeatureFlags.enableUseRefAccessWarning, +var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, disableNativeComponentFrames = dynamicFeatureFlags.disableNativeComponentFrames, - disableSchedulerTimeoutInWorkLoop = - dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableLazyContextPropagation = - dynamicFeatureFlags.enableLazyContextPropagation, - enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates, - enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane, - enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay = - dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableCustomElementPropertySupport = - dynamicFeatureFlags.enableCustomElementPropertySupport; // On WWW, false is used for a new modern build. -var enableProfilerNestedUpdateScheduledHook = - dynamicFeatureFlags.enableProfilerNestedUpdateScheduledHook; - -var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; // Note: we'll want to remove this when we to userland implementation. + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing; +// On WWW, false is used for a new modern build. function getWrappedName(outerType, innerType, wrapperName) { var displayName = outerType.displayName; @@ -636,7 +608,7 @@ var hasOwnProperty = Object.prototype.hasOwnProperty; * The current owner is the component who should own any components that are * currently being constructed. */ -var ReactCurrentOwner = { +var ReactCurrentOwner$2 = { /** * @internal * @type {ReactComponent} @@ -644,21 +616,21 @@ var ReactCurrentOwner = { current: null }; -var RESERVED_PROPS = { +var RESERVED_PROPS$1 = { key: true, ref: true, __self: true, __source: true }; -var specialPropKeyWarningShown, - specialPropRefWarningShown, - didWarnAboutStringRefs; +var specialPropKeyWarningShown$1, + specialPropRefWarningShown$1, + didWarnAboutStringRefs$1; { - didWarnAboutStringRefs = {}; + didWarnAboutStringRefs$1 = {}; } -function hasValidRef(config) { +function hasValidRef$1(config) { { if (hasOwnProperty.call(config, "ref")) { var getter = Object.getOwnPropertyDescriptor(config, "ref").get; @@ -672,7 +644,7 @@ function hasValidRef(config) { return config.ref !== undefined; } -function hasValidKey(config) { +function hasValidKey$1(config) { { if (hasOwnProperty.call(config, "key")) { var getter = Object.getOwnPropertyDescriptor(config, "key").get; @@ -686,11 +658,11 @@ function hasValidKey(config) { return config.key !== undefined; } -function defineKeyPropWarningGetter(props, displayName) { +function defineKeyPropWarningGetter$1(props, displayName) { var warnAboutAccessingKey = function () { { - if (!specialPropKeyWarningShown) { - specialPropKeyWarningShown = true; + if (!specialPropKeyWarningShown$1) { + specialPropKeyWarningShown$1 = true; error( "%s: `key` is not a prop. Trying to access it will result " + @@ -710,11 +682,11 @@ function defineKeyPropWarningGetter(props, displayName) { }); } -function defineRefPropWarningGetter(props, displayName) { +function defineRefPropWarningGetter$1(props, displayName) { var warnAboutAccessingRef = function () { { - if (!specialPropRefWarningShown) { - specialPropRefWarningShown = true; + if (!specialPropRefWarningShown$1) { + specialPropRefWarningShown$1 = true; error( "%s: `ref` is not a prop. Trying to access it will result " + @@ -734,19 +706,19 @@ function defineRefPropWarningGetter(props, displayName) { }); } -function warnIfStringRefCannotBeAutoConverted(config) { +function warnIfStringRefCannotBeAutoConverted$1(config) { { if ( typeof config.ref === "string" && - ReactCurrentOwner.current && + ReactCurrentOwner$2.current && config.__self && - ReactCurrentOwner.current.stateNode !== config.__self + ReactCurrentOwner$2.current.stateNode !== config.__self ) { var componentName = getComponentNameFromType( - ReactCurrentOwner.current.type + ReactCurrentOwner$2.current.type ); - if (!didWarnAboutStringRefs[componentName]) { + if (!didWarnAboutStringRefs$1[componentName]) { error( 'Component "%s" contains the string ref "%s". ' + "Support for string refs will be removed in a future major release. " + @@ -758,7 +730,7 @@ function warnIfStringRefCannotBeAutoConverted(config) { config.ref ); - didWarnAboutStringRefs[componentName] = true; + didWarnAboutStringRefs$1[componentName] = true; } } } @@ -784,7 +756,7 @@ function warnIfStringRefCannotBeAutoConverted(config) { * @internal */ -var ReactElement = function (type, key, ref, self, source, owner, props) { +var ReactElement$1 = function (type, key, ref, self, source, owner, props) { var element = { // This tag allows us to uniquely identify this as a React Element $$typeof: REACT_ELEMENT_TYPE, @@ -842,7 +814,7 @@ var ReactElement = function (type, key, ref, self, source, owner, props) { * See https://reactjs.org/docs/react-api.html#createelement */ -function createElement(type, config, children) { +function createElement$1(type, config, children) { var propName; // Reserved names are extracted var props = {}; @@ -852,15 +824,15 @@ function createElement(type, config, children) { var source = null; if (config != null) { - if (hasValidRef(config)) { + if (hasValidRef$1(config)) { ref = config.ref; { - warnIfStringRefCannotBeAutoConverted(config); + warnIfStringRefCannotBeAutoConverted$1(config); } } - if (hasValidKey(config)) { + if (hasValidKey$1(config)) { { checkKeyStringCoercion(config.key); } @@ -874,7 +846,7 @@ function createElement(type, config, children) { for (propName in config) { if ( hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) + !RESERVED_PROPS$1.hasOwnProperty(propName) ) { props[propName] = config[propName]; } @@ -920,27 +892,27 @@ function createElement(type, config, children) { : type; if (key) { - defineKeyPropWarningGetter(props, displayName); + defineKeyPropWarningGetter$1(props, displayName); } if (ref) { - defineRefPropWarningGetter(props, displayName); + defineRefPropWarningGetter$1(props, displayName); } } } - return ReactElement( + return ReactElement$1( type, key, ref, self, source, - ReactCurrentOwner.current, + ReactCurrentOwner$2.current, props ); } function cloneAndReplaceKey(oldElement, newKey) { - var newElement = ReactElement( + var newElement = ReactElement$1( oldElement.type, newKey, oldElement.ref, @@ -956,7 +928,7 @@ function cloneAndReplaceKey(oldElement, newKey) { * See https://reactjs.org/docs/react-api.html#cloneelement */ -function cloneElement(element, config, children) { +function cloneElement$1(element, config, children) { if (element === null || element === undefined) { throw new Error( "React.cloneElement(...): The argument must be a React element, but you passed " + @@ -981,13 +953,13 @@ function cloneElement(element, config, children) { var owner = element._owner; if (config != null) { - if (hasValidRef(config)) { + if (hasValidRef$1(config)) { // Silently steal the ref from the parent. ref = config.ref; - owner = ReactCurrentOwner.current; + owner = ReactCurrentOwner$2.current; } - if (hasValidKey(config)) { + if (hasValidKey$1(config)) { { checkKeyStringCoercion(config.key); } @@ -1004,7 +976,7 @@ function cloneElement(element, config, children) { for (propName in config) { if ( hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) + !RESERVED_PROPS$1.hasOwnProperty(propName) ) { if (config[propName] === undefined && defaultProps !== undefined) { // Resolve default props @@ -1031,7 +1003,7 @@ function cloneElement(element, config, children) { props.children = childArray; } - return ReactElement(element.type, key, ref, self, source, owner, props); + return ReactElement$1(element.type, key, ref, self, source, owner, props); } /** * Verifies the object is a ReactElement. @@ -1041,7 +1013,7 @@ function cloneElement(element, config, children) { * @final */ -function isValidElement(object) { +function isValidElement$1(object) { return ( typeof object === "object" && object !== null && @@ -1150,7 +1122,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { return c; }); } else if (mappedChild != null) { - if (isValidElement(mappedChild)) { + if (isValidElement$1(mappedChild)) { { // The `if` statement here prevents auto-disabling of the safe // coercion ESLint rule, so we must manually disable it below. @@ -1345,7 +1317,7 @@ function toArray(children) { */ function onlyChild(children) { - if (!isValidElement(children)) { + if (!isValidElement$1(children)) { throw new Error( "React.Children.only expected to receive a single React element child." ); @@ -1688,7 +1660,7 @@ function forwardRef(render) { return elementType; } -var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); +var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"); function isValidElementType(type) { if (typeof type === "string" || typeof type === "function") { return true; @@ -1720,7 +1692,7 @@ function isValidElementType(type) { // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. - type.$$typeof === REACT_CLIENT_REFERENCE || + type.$$typeof === REACT_CLIENT_REFERENCE$2 || type.getModuleId !== undefined ) { return true; @@ -1891,12 +1863,12 @@ function cache(fn) { /** * Keeps track of the current dispatcher. */ -var ReactCurrentDispatcher = { +var ReactCurrentDispatcher$1 = { current: null }; function resolveDispatcher() { - var dispatcher = ReactCurrentDispatcher.current; + var dispatcher = ReactCurrentDispatcher$1.current; { if (dispatcher === null) { @@ -2175,7 +2147,7 @@ var ReactCurrentActQueue = { didUsePromise: false }; -var ReactDebugCurrentFrame = {}; +var ReactDebugCurrentFrame$2 = {}; var currentExtraStackFrame = null; function setExtraStackFrame(stack) { { @@ -2184,22 +2156,22 @@ function setExtraStackFrame(stack) { } { - ReactDebugCurrentFrame.setExtraStackFrame = function (stack) { + ReactDebugCurrentFrame$2.setExtraStackFrame = function (stack) { { currentExtraStackFrame = stack; } }; // Stack implementation injected by the current renderer. - ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFrame$2.getCurrentStack = null; - ReactDebugCurrentFrame.getStackAddendum = function () { + ReactDebugCurrentFrame$2.getStackAddendum = function () { var stack = ""; // Add an extra top frame while an element is being validated if (currentExtraStackFrame) { stack += currentExtraStackFrame; } // Delegate to the injected renderer-specific implementation - var impl = ReactDebugCurrentFrame.getCurrentStack; + var impl = ReactDebugCurrentFrame$2.getCurrentStack; if (impl) { stack += impl() || ""; @@ -2209,25 +2181,25 @@ function setExtraStackFrame(stack) { }; } -var ContextRegistry = {}; +var ContextRegistry$1 = {}; var ReactSharedInternals = { - ReactCurrentDispatcher: ReactCurrentDispatcher, + ReactCurrentDispatcher: ReactCurrentDispatcher$1, ReactCurrentCache: ReactCurrentCache, ReactCurrentBatchConfig: ReactCurrentBatchConfig, - ReactCurrentOwner: ReactCurrentOwner + ReactCurrentOwner: ReactCurrentOwner$2 }; { - ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; + ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame$2; ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; } { - ReactSharedInternals.ContextRegistry = ContextRegistry; + ReactSharedInternals.ContextRegistry = ContextRegistry$1; } -var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; var prefix; function describeBuiltInComponentFrame(name, source, ownerFn) { { @@ -2274,10 +2246,10 @@ function describeNativeComponentFrame(fn, construct) { var previousDispatcher; { - previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function + previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function // for warnings. - ReactCurrentDispatcher$1.current = null; + ReactCurrentDispatcher.current = null; disableLogs(); } @@ -2391,7 +2363,7 @@ function describeNativeComponentFrame(fn, construct) { reentry = false; { - ReactCurrentDispatcher$1.current = previousDispatcher; + ReactCurrentDispatcher.current = previousDispatcher; reenableLogs(); } @@ -2475,7 +2447,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { var loggedTypeFailures = {}; var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; -function setCurrentlyValidatingElement(element) { +function setCurrentlyValidatingElement$2(element) { { if (element) { var owner = element._owner; @@ -2536,7 +2508,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { } if (error$1 && !(error$1 instanceof Error)) { - setCurrentlyValidatingElement(element); + setCurrentlyValidatingElement$2(element); error( "%s: type specification of %s" + @@ -2551,7 +2523,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { typeof error$1 ); - setCurrentlyValidatingElement(null); + setCurrentlyValidatingElement$2(null); } if ( @@ -2561,11 +2533,11 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { // Only monitor this failure once because there tends to be a lot of the // same error. loggedTypeFailures[error$1.message] = true; - setCurrentlyValidatingElement(element); + setCurrentlyValidatingElement$2(element); error("Failed %s type: %s", location, error$1.message); - setCurrentlyValidatingElement(null); + setCurrentlyValidatingElement$2(null); } } } @@ -2590,15 +2562,15 @@ function setCurrentlyValidatingElement$1(element) { } } -var propTypesMisspellWarningShown; +var propTypesMisspellWarningShown$1; { - propTypesMisspellWarningShown = false; + propTypesMisspellWarningShown$1 = false; } -function getDeclarationErrorAddendum() { - if (ReactCurrentOwner.current) { - var name = getComponentNameFromType(ReactCurrentOwner.current.type); +function getDeclarationErrorAddendum$1() { + if (ReactCurrentOwner$2.current) { + var name = getComponentNameFromType(ReactCurrentOwner$2.current.type); if (name) { return "\n\nCheck the render method of `" + name + "`."; @@ -2608,7 +2580,7 @@ function getDeclarationErrorAddendum() { return ""; } -function getSourceInfoErrorAddendum(source) { +function getSourceInfoErrorAddendum$1(source) { if (source !== undefined) { var fileName = source.fileName.replace(/^.*[\\\/]/, ""); var lineNumber = source.lineNumber; @@ -2620,7 +2592,7 @@ function getSourceInfoErrorAddendum(source) { function getSourceInfoErrorAddendumForProps(elementProps) { if (elementProps !== null && elementProps !== undefined) { - return getSourceInfoErrorAddendum(elementProps.__source); + return getSourceInfoErrorAddendum$1(elementProps.__source); } return ""; @@ -2631,10 +2603,10 @@ function getSourceInfoErrorAddendumForProps(elementProps) { * updates. */ -var ownerHasKeyUseWarning = {}; +var ownerHasKeyUseWarning$1 = {}; -function getCurrentComponentErrorInfo(parentType) { - var info = getDeclarationErrorAddendum(); +function getCurrentComponentErrorInfo$1(parentType) { + var info = getDeclarationErrorAddendum$1(); if (!info) { var parentName = @@ -2661,19 +2633,19 @@ function getCurrentComponentErrorInfo(parentType) { * @param {*} parentType element's parent's type. */ -function validateExplicitKey(element, parentType) { +function validateExplicitKey$1(element, parentType) { if (!element._store || element._store.validated || element.key != null) { return; } element._store.validated = true; - var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + var currentComponentErrorInfo = getCurrentComponentErrorInfo$1(parentType); - if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + if (ownerHasKeyUseWarning$1[currentComponentErrorInfo]) { return; } - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a + ownerHasKeyUseWarning$1[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a // property, it may be the creator of the child that's responsible for // assigning it a key. @@ -2682,7 +2654,7 @@ function validateExplicitKey(element, parentType) { if ( element && element._owner && - element._owner !== ReactCurrentOwner.current + element._owner !== ReactCurrentOwner$2.current ) { // Give the component that originally created this child. childOwner = @@ -2714,7 +2686,7 @@ function validateExplicitKey(element, parentType) { * @param {*} parentType node's parent's type. */ -function validateChildKeys(node, parentType) { +function validateChildKeys$1(node, parentType) { if (typeof node !== "object" || !node) { return; } @@ -2724,11 +2696,11 @@ function validateChildKeys(node, parentType) { for (var i = 0; i < node.length; i++) { var child = node[i]; - if (isValidElement(child)) { - validateExplicitKey(child, parentType); + if (isValidElement$1(child)) { + validateExplicitKey$1(child, parentType); } } - } else if (isValidElement(node)) { + } else if (isValidElement$1(node)) { // This element was passed in a valid location. if (node._store) { node._store.validated = true; @@ -2744,8 +2716,8 @@ function validateChildKeys(node, parentType) { var step; while (!(step = iterator.next()).done) { - if (isValidElement(step.value)) { - validateExplicitKey(step.value, parentType); + if (isValidElement$1(step.value)) { + validateExplicitKey$1(step.value, parentType); } } } @@ -2759,7 +2731,7 @@ function validateChildKeys(node, parentType) { * @param {ReactElement} element */ -function validatePropTypes(element) { +function validatePropTypes$1(element) { { var type = element.type; @@ -2790,8 +2762,11 @@ function validatePropTypes(element) { // Intentionally inside to avoid triggering lazy initializers: var name = getComponentNameFromType(type); checkPropTypes(propTypes, element.props, "prop", name, element); - } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { - propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers: + } else if ( + type.PropTypes !== undefined && + !propTypesMisspellWarningShown$1 + ) { + propTypesMisspellWarningShown$1 = true; // Intentionally inside to avoid triggering lazy initializers: var _name = getComponentNameFromType(type); @@ -2817,7 +2792,7 @@ function validatePropTypes(element) { * @param {ReactElement} fragment */ -function validateFragmentProps(fragment) { +function validateFragmentProps$1(fragment) { { var keys = Object.keys(fragment.props); @@ -2870,7 +2845,7 @@ function createElementWithValidation(type, props, children) { if (sourceInfo) { info += sourceInfo; } else { - info += getDeclarationErrorAddendum(); + info += getDeclarationErrorAddendum$1(); } var typeString; @@ -2899,7 +2874,7 @@ function createElementWithValidation(type, props, children) { } } - var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. + var element = createElement$1.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { @@ -2912,14 +2887,14 @@ function createElementWithValidation(type, props, children) { if (validType) { for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], type); + validateChildKeys$1(arguments[i], type); } } if (type === REACT_FRAGMENT_TYPE) { - validateFragmentProps(element); + validateFragmentProps$1(element); } else { - validatePropTypes(element); + validatePropTypes$1(element); } return element; @@ -2959,21 +2934,21 @@ function createFactoryWithValidation(type) { return validatedFactory; } function cloneElementWithValidation(element, props, children) { - var newElement = cloneElement.apply(this, arguments); + var newElement = cloneElement$1.apply(this, arguments); for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], newElement.type); + validateChildKeys$1(arguments[i], newElement.type); } - validatePropTypes(newElement); + validatePropTypes$1(newElement); return newElement; } -var ContextRegistry$1 = ReactSharedInternals.ContextRegistry; +var ContextRegistry = ReactSharedInternals.ContextRegistry; function createServerContext(globalName, defaultValue) { var wasDefined = true; - if (!ContextRegistry$1[globalName]) { + if (!ContextRegistry[globalName]) { wasDefined = false; var _context = { $$typeof: REACT_SERVER_CONTEXT_TYPE, @@ -3017,10 +2992,10 @@ function createServerContext(globalName, defaultValue) { }); } - ContextRegistry$1[globalName] = _context; + ContextRegistry[globalName] = _context; } - var context = ContextRegistry$1[globalName]; + var context = ContextRegistry[globalName]; if (context._defaultValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) { context._defaultValue = defaultValue; @@ -3447,8 +3422,8 @@ var queueSeveralMicrotasks = } : enqueueTask; -var createElement$1 = createElementWithValidation; -var cloneElement$1 = cloneElementWithValidation; +var createElement = createElementWithValidation; +var cloneElement = cloneElementWithValidation; var createFactory = createFactoryWithValidation; var Children = { map: mapChildren, @@ -3459,21 +3434,21 @@ var Children = { }; var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; -var RESERVED_PROPS$1 = { +var RESERVED_PROPS = { key: true, ref: true, __self: true, __source: true }; -var specialPropKeyWarningShown$1; -var specialPropRefWarningShown$1; -var didWarnAboutStringRefs$1; +var specialPropKeyWarningShown; +var specialPropRefWarningShown; +var didWarnAboutStringRefs; { - didWarnAboutStringRefs$1 = {}; + didWarnAboutStringRefs = {}; } -function hasValidRef$1(config) { +function hasValidRef(config) { { if (hasOwnProperty.call(config, "ref")) { var getter = Object.getOwnPropertyDescriptor(config, "ref").get; @@ -3487,7 +3462,7 @@ function hasValidRef$1(config) { return config.ref !== undefined; } -function hasValidKey$1(config) { +function hasValidKey(config) { { if (hasOwnProperty.call(config, "key")) { var getter = Object.getOwnPropertyDescriptor(config, "key").get; @@ -3501,7 +3476,7 @@ function hasValidKey$1(config) { return config.key !== undefined; } -function warnIfStringRefCannotBeAutoConverted$1(config, self) { +function warnIfStringRefCannotBeAutoConverted(config, self) { { if ( typeof config.ref === "string" && @@ -3513,7 +3488,7 @@ function warnIfStringRefCannotBeAutoConverted$1(config, self) { ReactCurrentOwner$1.current.type ); - if (!didWarnAboutStringRefs$1[componentName]) { + if (!didWarnAboutStringRefs[componentName]) { error( 'Component "%s" contains the string ref "%s". ' + "Support for string refs will be removed in a future major release. " + @@ -3525,17 +3500,17 @@ function warnIfStringRefCannotBeAutoConverted$1(config, self) { config.ref ); - didWarnAboutStringRefs$1[componentName] = true; + didWarnAboutStringRefs[componentName] = true; } } } } -function defineKeyPropWarningGetter$1(props, displayName) { +function defineKeyPropWarningGetter(props, displayName) { { var warnAboutAccessingKey = function () { - if (!specialPropKeyWarningShown$1) { - specialPropKeyWarningShown$1 = true; + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; error( "%s: `key` is not a prop. Trying to access it will result " + @@ -3555,11 +3530,11 @@ function defineKeyPropWarningGetter$1(props, displayName) { } } -function defineRefPropWarningGetter$1(props, displayName) { +function defineRefPropWarningGetter(props, displayName) { { var warnAboutAccessingRef = function () { - if (!specialPropRefWarningShown$1) { - specialPropRefWarningShown$1 = true; + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; error( "%s: `ref` is not a prop. Trying to access it will result " + @@ -3599,7 +3574,7 @@ function defineRefPropWarningGetter$1(props, displayName) { * @internal */ -var ReactElement$1 = function (type, key, ref, self, source, owner, props) { +var ReactElement = function (type, key, ref, self, source, owner, props) { var element = { // This tag allows us to uniquely identify this as a React Element $$typeof: REACT_ELEMENT_TYPE, @@ -3659,7 +3634,7 @@ var ReactElement$1 = function (type, key, ref, self, source, owner, props) { * @param {string} key */ -function jsxDEV(type, config, maybeKey, source, self) { +function jsxDEV$1(type, config, maybeKey, source, self) { { var propName; // Reserved names are extracted @@ -3680,7 +3655,7 @@ function jsxDEV(type, config, maybeKey, source, self) { key = "" + maybeKey; } - if (hasValidKey$1(config)) { + if (hasValidKey(config)) { { checkKeyStringCoercion(config.key); } @@ -3688,15 +3663,15 @@ function jsxDEV(type, config, maybeKey, source, self) { key = "" + config.key; } - if (hasValidRef$1(config)) { + if (hasValidRef(config)) { ref = config.ref; - warnIfStringRefCannotBeAutoConverted$1(config, self); + warnIfStringRefCannotBeAutoConverted(config, self); } // Remaining properties are added to a new props object for (propName in config) { if ( hasOwnProperty.call(config, propName) && - !RESERVED_PROPS$1.hasOwnProperty(propName) + !RESERVED_PROPS.hasOwnProperty(propName) ) { props[propName] = config[propName]; } @@ -3719,15 +3694,15 @@ function jsxDEV(type, config, maybeKey, source, self) { : type; if (key) { - defineKeyPropWarningGetter$1(props, displayName); + defineKeyPropWarningGetter(props, displayName); } if (ref) { - defineRefPropWarningGetter$1(props, displayName); + defineRefPropWarningGetter(props, displayName); } } - return ReactElement$1( + return ReactElement( type, key, ref, @@ -3739,11 +3714,11 @@ function jsxDEV(type, config, maybeKey, source, self) { } } -var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner; -var ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame; -var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"); +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); -function setCurrentlyValidatingElement$2(element) { +function setCurrentlyValidatingElement(element) { { if (element) { var owner = element._owner; @@ -3752,17 +3727,17 @@ function setCurrentlyValidatingElement$2(element) { element._source, owner ? owner.type : null ); - ReactDebugCurrentFrame$2.setExtraStackFrame(stack); + ReactDebugCurrentFrame.setExtraStackFrame(stack); } else { - ReactDebugCurrentFrame$2.setExtraStackFrame(null); + ReactDebugCurrentFrame.setExtraStackFrame(null); } } } -var propTypesMisspellWarningShown$1; +var propTypesMisspellWarningShown; { - propTypesMisspellWarningShown$1 = false; + propTypesMisspellWarningShown = false; } /** * Verifies the object is a ReactElement. @@ -3772,7 +3747,7 @@ var propTypesMisspellWarningShown$1; * @final */ -function isValidElement$1(object) { +function isValidElement(object) { { return ( typeof object === "object" && @@ -3782,10 +3757,10 @@ function isValidElement$1(object) { } } -function getDeclarationErrorAddendum$1() { +function getDeclarationErrorAddendum() { { - if (ReactCurrentOwner$2.current) { - var name = getComponentNameFromType(ReactCurrentOwner$2.current.type); + if (ReactCurrentOwner.current) { + var name = getComponentNameFromType(ReactCurrentOwner.current.type); if (name) { return "\n\nCheck the render method of `" + name + "`."; @@ -3796,7 +3771,7 @@ function getDeclarationErrorAddendum$1() { } } -function getSourceInfoErrorAddendum$1(source) { +function getSourceInfoErrorAddendum(source) { { if (source !== undefined) { var fileName = source.fileName.replace(/^.*[\\\/]/, ""); @@ -3813,11 +3788,11 @@ function getSourceInfoErrorAddendum$1(source) { * updates. */ -var ownerHasKeyUseWarning$1 = {}; +var ownerHasKeyUseWarning = {}; -function getCurrentComponentErrorInfo$1(parentType) { +function getCurrentComponentErrorInfo(parentType) { { - var info = getDeclarationErrorAddendum$1(); + var info = getDeclarationErrorAddendum(); if (!info) { var parentName = @@ -3846,20 +3821,20 @@ function getCurrentComponentErrorInfo$1(parentType) { * @param {*} parentType element's parent's type. */ -function validateExplicitKey$1(element, parentType) { +function validateExplicitKey(element, parentType) { { if (!element._store || element._store.validated || element.key != null) { return; } element._store.validated = true; - var currentComponentErrorInfo = getCurrentComponentErrorInfo$1(parentType); + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); - if (ownerHasKeyUseWarning$1[currentComponentErrorInfo]) { + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { return; } - ownerHasKeyUseWarning$1[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a // property, it may be the creator of the child that's responsible for // assigning it a key. @@ -3868,7 +3843,7 @@ function validateExplicitKey$1(element, parentType) { if ( element && element._owner && - element._owner !== ReactCurrentOwner$2.current + element._owner !== ReactCurrentOwner.current ) { // Give the component that originally created this child. childOwner = @@ -3877,7 +3852,7 @@ function validateExplicitKey$1(element, parentType) { "."; } - setCurrentlyValidatingElement$2(element); + setCurrentlyValidatingElement(element); error( 'Each child in a list should have a unique "key" prop.' + @@ -3886,7 +3861,7 @@ function validateExplicitKey$1(element, parentType) { childOwner ); - setCurrentlyValidatingElement$2(null); + setCurrentlyValidatingElement(null); } } /** @@ -3899,22 +3874,22 @@ function validateExplicitKey$1(element, parentType) { * @param {*} parentType node's parent's type. */ -function validateChildKeys$1(node, parentType) { +function validateChildKeys(node, parentType) { { if (typeof node !== "object" || !node) { return; } - if (node.$$typeof === REACT_CLIENT_REFERENCE$2); + if (node.$$typeof === REACT_CLIENT_REFERENCE); else if (isArray(node)) { for (var i = 0; i < node.length; i++) { var child = node[i]; - if (isValidElement$1(child)) { - validateExplicitKey$1(child, parentType); + if (isValidElement(child)) { + validateExplicitKey(child, parentType); } } - } else if (isValidElement$1(node)) { + } else if (isValidElement(node)) { // This element was passed in a valid location. if (node._store) { node._store.validated = true; @@ -3930,8 +3905,8 @@ function validateChildKeys$1(node, parentType) { var step; while (!(step = iterator.next()).done) { - if (isValidElement$1(step.value)) { - validateExplicitKey$1(step.value, parentType); + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); } } } @@ -3946,7 +3921,7 @@ function validateChildKeys$1(node, parentType) { * @param {ReactElement} element */ -function validatePropTypes$1(element) { +function validatePropTypes(element) { { var type = element.type; @@ -3954,7 +3929,7 @@ function validatePropTypes$1(element) { return; } - if (type.$$typeof === REACT_CLIENT_REFERENCE$2) { + if (type.$$typeof === REACT_CLIENT_REFERENCE) { return; } @@ -3977,11 +3952,8 @@ function validatePropTypes$1(element) { // Intentionally inside to avoid triggering lazy initializers: var name = getComponentNameFromType(type); checkPropTypes(propTypes, element.props, "prop", name, element); - } else if ( - type.PropTypes !== undefined && - !propTypesMisspellWarningShown$1 - ) { - propTypesMisspellWarningShown$1 = true; // Intentionally inside to avoid triggering lazy initializers: + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers: var _name = getComponentNameFromType(type); @@ -4007,7 +3979,7 @@ function validatePropTypes$1(element) { * @param {ReactElement} fragment */ -function validateFragmentProps$1(fragment) { +function validateFragmentProps(fragment) { { var keys = Object.keys(fragment.props); @@ -4015,7 +3987,7 @@ function validateFragmentProps$1(fragment) { var key = keys[i]; if (key !== "children" && key !== "key") { - setCurrentlyValidatingElement$2(fragment); + setCurrentlyValidatingElement(fragment); error( "Invalid prop `%s` supplied to `React.Fragment`. " + @@ -4023,17 +3995,17 @@ function validateFragmentProps$1(fragment) { key ); - setCurrentlyValidatingElement$2(null); + setCurrentlyValidatingElement(null); break; } } if (fragment.ref !== null) { - setCurrentlyValidatingElement$2(fragment); + setCurrentlyValidatingElement(fragment); error("Invalid attribute `ref` supplied to `React.Fragment`."); - setCurrentlyValidatingElement$2(null); + setCurrentlyValidatingElement(null); } } } @@ -4058,12 +4030,12 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { "it's defined in, or you might have mixed up default and named imports."; } - var sourceInfo = getSourceInfoErrorAddendum$1(source); + var sourceInfo = getSourceInfoErrorAddendum(source); if (sourceInfo) { info += sourceInfo; } else { - info += getDeclarationErrorAddendum$1(); + info += getDeclarationErrorAddendum(); } var typeString; @@ -4090,7 +4062,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { ); } - var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. + var element = jsxDEV$1(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { @@ -4108,7 +4080,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { if (isStaticChildren) { if (isArray(children)) { for (var i = 0; i < children.length; i++) { - validateChildKeys$1(children[i], type); + validateChildKeys(children[i], type); } if (Object.freeze) { @@ -4122,7 +4094,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { ); } } else { - validateChildKeys$1(children, type); + validateChildKeys(children, type); } } } @@ -4159,9 +4131,9 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { } if (type === REACT_FRAGMENT_TYPE) { - validateFragmentProps$1(element); + validateFragmentProps(element); } else { - validatePropTypes$1(element); + validatePropTypes(element); } return element; @@ -4186,7 +4158,7 @@ var jsx = jsxWithValidationDynamic; // we may want to special case jsxs internal // for now we can ship identical prod functions var jsxs = jsxWithValidationStatic; -var jsxDEV$1 = jsxWithValidation; +var jsxDEV = jsxWithValidation; exports.Children = Children; exports.Component = Component; @@ -4199,18 +4171,18 @@ exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE; exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; exports.cache = cache; -exports.cloneElement = cloneElement$1; +exports.cloneElement = cloneElement; exports.createContext = createContext; -exports.createElement = createElement$1; +exports.createElement = createElement; exports.createFactory = createFactory; exports.createMutableSource = createMutableSource; exports.createRef = createRef; exports.createServerContext = createServerContext; exports.experimental_useEffectEvent = useEffectEvent; exports.forwardRef = forwardRef; -exports.isValidElement = isValidElement; +exports.isValidElement = isValidElement$1; exports.jsx = jsx; -exports.jsxDEV = jsxDEV$1; +exports.jsxDEV = jsxDEV; exports.jsxs = jsxs; exports.lazy = lazy; exports.memo = memo; diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 338d1890ed..079b8fb50e 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-modern-bc38a3dfa-20230220"; +var ReactVersion = "18.3.0-www-modern-6b6d0617e-20230220"; // ATTENTION // When adding new symbols to this file, @@ -476,39 +476,11 @@ function checkKeyStringCoercion(value) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); -var disableInputAttributeSyncing = - dynamicFeatureFlags.disableInputAttributeSyncing, - enableTrustedTypesIntegration = - dynamicFeatureFlags.enableTrustedTypesIntegration, - disableSchedulerTimeoutBasedOnReactExpirationTime = - dynamicFeatureFlags.disableSchedulerTimeoutBasedOnReactExpirationTime, - replayFailedUnitOfWorkWithInvokeGuardedCallback = - dynamicFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback, - enableFilterEmptyStringAttributesDOM = - dynamicFeatureFlags.enableFilterEmptyStringAttributesDOM, - enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, - deferRenderPhaseUpdateToNextBatch = - dynamicFeatureFlags.deferRenderPhaseUpdateToNextBatch, - enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - skipUnmountedBoundaries = dynamicFeatureFlags.skipUnmountedBoundaries, - enableUseRefAccessWarning = dynamicFeatureFlags.enableUseRefAccessWarning, +var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, disableNativeComponentFrames = dynamicFeatureFlags.disableNativeComponentFrames, - disableSchedulerTimeoutInWorkLoop = - dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableLazyContextPropagation = - dynamicFeatureFlags.enableLazyContextPropagation, - enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates, - enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane, - enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay = - dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableCustomElementPropertySupport = - dynamicFeatureFlags.enableCustomElementPropertySupport; // On WWW, true is used for a new modern build. -var enableProfilerNestedUpdateScheduledHook = - dynamicFeatureFlags.enableProfilerNestedUpdateScheduledHook; - -var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; // Note: we'll want to remove this when we to userland implementation. + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing; +// On WWW, true is used for a new modern build. function getWrappedName(outerType, innerType, wrapperName) { var displayName = outerType.displayName; @@ -636,7 +608,7 @@ var hasOwnProperty = Object.prototype.hasOwnProperty; * The current owner is the component who should own any components that are * currently being constructed. */ -var ReactCurrentOwner = { +var ReactCurrentOwner$2 = { /** * @internal * @type {ReactComponent} @@ -644,21 +616,21 @@ var ReactCurrentOwner = { current: null }; -var RESERVED_PROPS = { +var RESERVED_PROPS$1 = { key: true, ref: true, __self: true, __source: true }; -var specialPropKeyWarningShown, - specialPropRefWarningShown, - didWarnAboutStringRefs; +var specialPropKeyWarningShown$1, + specialPropRefWarningShown$1, + didWarnAboutStringRefs$1; { - didWarnAboutStringRefs = {}; + didWarnAboutStringRefs$1 = {}; } -function hasValidRef(config) { +function hasValidRef$1(config) { { if (hasOwnProperty.call(config, "ref")) { var getter = Object.getOwnPropertyDescriptor(config, "ref").get; @@ -672,7 +644,7 @@ function hasValidRef(config) { return config.ref !== undefined; } -function hasValidKey(config) { +function hasValidKey$1(config) { { if (hasOwnProperty.call(config, "key")) { var getter = Object.getOwnPropertyDescriptor(config, "key").get; @@ -686,11 +658,11 @@ function hasValidKey(config) { return config.key !== undefined; } -function defineKeyPropWarningGetter(props, displayName) { +function defineKeyPropWarningGetter$1(props, displayName) { var warnAboutAccessingKey = function () { { - if (!specialPropKeyWarningShown) { - specialPropKeyWarningShown = true; + if (!specialPropKeyWarningShown$1) { + specialPropKeyWarningShown$1 = true; error( "%s: `key` is not a prop. Trying to access it will result " + @@ -710,11 +682,11 @@ function defineKeyPropWarningGetter(props, displayName) { }); } -function defineRefPropWarningGetter(props, displayName) { +function defineRefPropWarningGetter$1(props, displayName) { var warnAboutAccessingRef = function () { { - if (!specialPropRefWarningShown) { - specialPropRefWarningShown = true; + if (!specialPropRefWarningShown$1) { + specialPropRefWarningShown$1 = true; error( "%s: `ref` is not a prop. Trying to access it will result " + @@ -734,19 +706,19 @@ function defineRefPropWarningGetter(props, displayName) { }); } -function warnIfStringRefCannotBeAutoConverted(config) { +function warnIfStringRefCannotBeAutoConverted$1(config) { { if ( typeof config.ref === "string" && - ReactCurrentOwner.current && + ReactCurrentOwner$2.current && config.__self && - ReactCurrentOwner.current.stateNode !== config.__self + ReactCurrentOwner$2.current.stateNode !== config.__self ) { var componentName = getComponentNameFromType( - ReactCurrentOwner.current.type + ReactCurrentOwner$2.current.type ); - if (!didWarnAboutStringRefs[componentName]) { + if (!didWarnAboutStringRefs$1[componentName]) { error( 'Component "%s" contains the string ref "%s". ' + "Support for string refs will be removed in a future major release. " + @@ -758,7 +730,7 @@ function warnIfStringRefCannotBeAutoConverted(config) { config.ref ); - didWarnAboutStringRefs[componentName] = true; + didWarnAboutStringRefs$1[componentName] = true; } } } @@ -784,7 +756,7 @@ function warnIfStringRefCannotBeAutoConverted(config) { * @internal */ -var ReactElement = function (type, key, ref, self, source, owner, props) { +var ReactElement$1 = function (type, key, ref, self, source, owner, props) { var element = { // This tag allows us to uniquely identify this as a React Element $$typeof: REACT_ELEMENT_TYPE, @@ -842,7 +814,7 @@ var ReactElement = function (type, key, ref, self, source, owner, props) { * See https://reactjs.org/docs/react-api.html#createelement */ -function createElement(type, config, children) { +function createElement$1(type, config, children) { var propName; // Reserved names are extracted var props = {}; @@ -852,15 +824,15 @@ function createElement(type, config, children) { var source = null; if (config != null) { - if (hasValidRef(config)) { + if (hasValidRef$1(config)) { ref = config.ref; { - warnIfStringRefCannotBeAutoConverted(config); + warnIfStringRefCannotBeAutoConverted$1(config); } } - if (hasValidKey(config)) { + if (hasValidKey$1(config)) { { checkKeyStringCoercion(config.key); } @@ -874,7 +846,7 @@ function createElement(type, config, children) { for (propName in config) { if ( hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) + !RESERVED_PROPS$1.hasOwnProperty(propName) ) { props[propName] = config[propName]; } @@ -920,27 +892,27 @@ function createElement(type, config, children) { : type; if (key) { - defineKeyPropWarningGetter(props, displayName); + defineKeyPropWarningGetter$1(props, displayName); } if (ref) { - defineRefPropWarningGetter(props, displayName); + defineRefPropWarningGetter$1(props, displayName); } } } - return ReactElement( + return ReactElement$1( type, key, ref, self, source, - ReactCurrentOwner.current, + ReactCurrentOwner$2.current, props ); } function cloneAndReplaceKey(oldElement, newKey) { - var newElement = ReactElement( + var newElement = ReactElement$1( oldElement.type, newKey, oldElement.ref, @@ -956,7 +928,7 @@ function cloneAndReplaceKey(oldElement, newKey) { * See https://reactjs.org/docs/react-api.html#cloneelement */ -function cloneElement(element, config, children) { +function cloneElement$1(element, config, children) { if (element === null || element === undefined) { throw new Error( "React.cloneElement(...): The argument must be a React element, but you passed " + @@ -981,13 +953,13 @@ function cloneElement(element, config, children) { var owner = element._owner; if (config != null) { - if (hasValidRef(config)) { + if (hasValidRef$1(config)) { // Silently steal the ref from the parent. ref = config.ref; - owner = ReactCurrentOwner.current; + owner = ReactCurrentOwner$2.current; } - if (hasValidKey(config)) { + if (hasValidKey$1(config)) { { checkKeyStringCoercion(config.key); } @@ -1004,7 +976,7 @@ function cloneElement(element, config, children) { for (propName in config) { if ( hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) + !RESERVED_PROPS$1.hasOwnProperty(propName) ) { if (config[propName] === undefined && defaultProps !== undefined) { // Resolve default props @@ -1031,7 +1003,7 @@ function cloneElement(element, config, children) { props.children = childArray; } - return ReactElement(element.type, key, ref, self, source, owner, props); + return ReactElement$1(element.type, key, ref, self, source, owner, props); } /** * Verifies the object is a ReactElement. @@ -1041,7 +1013,7 @@ function cloneElement(element, config, children) { * @final */ -function isValidElement(object) { +function isValidElement$1(object) { return ( typeof object === "object" && object !== null && @@ -1150,7 +1122,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { return c; }); } else if (mappedChild != null) { - if (isValidElement(mappedChild)) { + if (isValidElement$1(mappedChild)) { { // The `if` statement here prevents auto-disabling of the safe // coercion ESLint rule, so we must manually disable it below. @@ -1345,7 +1317,7 @@ function toArray(children) { */ function onlyChild(children) { - if (!isValidElement(children)) { + if (!isValidElement$1(children)) { throw new Error( "React.Children.only expected to receive a single React element child." ); @@ -1688,7 +1660,7 @@ function forwardRef(render) { return elementType; } -var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); +var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"); function isValidElementType(type) { if (typeof type === "string" || typeof type === "function") { return true; @@ -1720,7 +1692,7 @@ function isValidElementType(type) { // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. - type.$$typeof === REACT_CLIENT_REFERENCE || + type.$$typeof === REACT_CLIENT_REFERENCE$2 || type.getModuleId !== undefined ) { return true; @@ -1891,12 +1863,12 @@ function cache(fn) { /** * Keeps track of the current dispatcher. */ -var ReactCurrentDispatcher = { +var ReactCurrentDispatcher$1 = { current: null }; function resolveDispatcher() { - var dispatcher = ReactCurrentDispatcher.current; + var dispatcher = ReactCurrentDispatcher$1.current; { if (dispatcher === null) { @@ -2175,7 +2147,7 @@ var ReactCurrentActQueue = { didUsePromise: false }; -var ReactDebugCurrentFrame = {}; +var ReactDebugCurrentFrame$2 = {}; var currentExtraStackFrame = null; function setExtraStackFrame(stack) { { @@ -2184,22 +2156,22 @@ function setExtraStackFrame(stack) { } { - ReactDebugCurrentFrame.setExtraStackFrame = function (stack) { + ReactDebugCurrentFrame$2.setExtraStackFrame = function (stack) { { currentExtraStackFrame = stack; } }; // Stack implementation injected by the current renderer. - ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFrame$2.getCurrentStack = null; - ReactDebugCurrentFrame.getStackAddendum = function () { + ReactDebugCurrentFrame$2.getStackAddendum = function () { var stack = ""; // Add an extra top frame while an element is being validated if (currentExtraStackFrame) { stack += currentExtraStackFrame; } // Delegate to the injected renderer-specific implementation - var impl = ReactDebugCurrentFrame.getCurrentStack; + var impl = ReactDebugCurrentFrame$2.getCurrentStack; if (impl) { stack += impl() || ""; @@ -2209,25 +2181,25 @@ function setExtraStackFrame(stack) { }; } -var ContextRegistry = {}; +var ContextRegistry$1 = {}; var ReactSharedInternals = { - ReactCurrentDispatcher: ReactCurrentDispatcher, + ReactCurrentDispatcher: ReactCurrentDispatcher$1, ReactCurrentCache: ReactCurrentCache, ReactCurrentBatchConfig: ReactCurrentBatchConfig, - ReactCurrentOwner: ReactCurrentOwner + ReactCurrentOwner: ReactCurrentOwner$2 }; { - ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; + ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame$2; ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; } { - ReactSharedInternals.ContextRegistry = ContextRegistry; + ReactSharedInternals.ContextRegistry = ContextRegistry$1; } -var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; var prefix; function describeBuiltInComponentFrame(name, source, ownerFn) { { @@ -2274,10 +2246,10 @@ function describeNativeComponentFrame(fn, construct) { var previousDispatcher; { - previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function + previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function // for warnings. - ReactCurrentDispatcher$1.current = null; + ReactCurrentDispatcher.current = null; disableLogs(); } @@ -2391,7 +2363,7 @@ function describeNativeComponentFrame(fn, construct) { reentry = false; { - ReactCurrentDispatcher$1.current = previousDispatcher; + ReactCurrentDispatcher.current = previousDispatcher; reenableLogs(); } @@ -2475,7 +2447,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { var loggedTypeFailures = {}; var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; -function setCurrentlyValidatingElement(element) { +function setCurrentlyValidatingElement$2(element) { { if (element) { var owner = element._owner; @@ -2536,7 +2508,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { } if (error$1 && !(error$1 instanceof Error)) { - setCurrentlyValidatingElement(element); + setCurrentlyValidatingElement$2(element); error( "%s: type specification of %s" + @@ -2551,7 +2523,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { typeof error$1 ); - setCurrentlyValidatingElement(null); + setCurrentlyValidatingElement$2(null); } if ( @@ -2561,11 +2533,11 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) { // Only monitor this failure once because there tends to be a lot of the // same error. loggedTypeFailures[error$1.message] = true; - setCurrentlyValidatingElement(element); + setCurrentlyValidatingElement$2(element); error("Failed %s type: %s", location, error$1.message); - setCurrentlyValidatingElement(null); + setCurrentlyValidatingElement$2(null); } } } @@ -2590,15 +2562,15 @@ function setCurrentlyValidatingElement$1(element) { } } -var propTypesMisspellWarningShown; +var propTypesMisspellWarningShown$1; { - propTypesMisspellWarningShown = false; + propTypesMisspellWarningShown$1 = false; } -function getDeclarationErrorAddendum() { - if (ReactCurrentOwner.current) { - var name = getComponentNameFromType(ReactCurrentOwner.current.type); +function getDeclarationErrorAddendum$1() { + if (ReactCurrentOwner$2.current) { + var name = getComponentNameFromType(ReactCurrentOwner$2.current.type); if (name) { return "\n\nCheck the render method of `" + name + "`."; @@ -2608,7 +2580,7 @@ function getDeclarationErrorAddendum() { return ""; } -function getSourceInfoErrorAddendum(source) { +function getSourceInfoErrorAddendum$1(source) { if (source !== undefined) { var fileName = source.fileName.replace(/^.*[\\\/]/, ""); var lineNumber = source.lineNumber; @@ -2620,7 +2592,7 @@ function getSourceInfoErrorAddendum(source) { function getSourceInfoErrorAddendumForProps(elementProps) { if (elementProps !== null && elementProps !== undefined) { - return getSourceInfoErrorAddendum(elementProps.__source); + return getSourceInfoErrorAddendum$1(elementProps.__source); } return ""; @@ -2631,10 +2603,10 @@ function getSourceInfoErrorAddendumForProps(elementProps) { * updates. */ -var ownerHasKeyUseWarning = {}; +var ownerHasKeyUseWarning$1 = {}; -function getCurrentComponentErrorInfo(parentType) { - var info = getDeclarationErrorAddendum(); +function getCurrentComponentErrorInfo$1(parentType) { + var info = getDeclarationErrorAddendum$1(); if (!info) { var parentName = @@ -2661,19 +2633,19 @@ function getCurrentComponentErrorInfo(parentType) { * @param {*} parentType element's parent's type. */ -function validateExplicitKey(element, parentType) { +function validateExplicitKey$1(element, parentType) { if (!element._store || element._store.validated || element.key != null) { return; } element._store.validated = true; - var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + var currentComponentErrorInfo = getCurrentComponentErrorInfo$1(parentType); - if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + if (ownerHasKeyUseWarning$1[currentComponentErrorInfo]) { return; } - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a + ownerHasKeyUseWarning$1[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a // property, it may be the creator of the child that's responsible for // assigning it a key. @@ -2682,7 +2654,7 @@ function validateExplicitKey(element, parentType) { if ( element && element._owner && - element._owner !== ReactCurrentOwner.current + element._owner !== ReactCurrentOwner$2.current ) { // Give the component that originally created this child. childOwner = @@ -2714,7 +2686,7 @@ function validateExplicitKey(element, parentType) { * @param {*} parentType node's parent's type. */ -function validateChildKeys(node, parentType) { +function validateChildKeys$1(node, parentType) { if (typeof node !== "object" || !node) { return; } @@ -2724,11 +2696,11 @@ function validateChildKeys(node, parentType) { for (var i = 0; i < node.length; i++) { var child = node[i]; - if (isValidElement(child)) { - validateExplicitKey(child, parentType); + if (isValidElement$1(child)) { + validateExplicitKey$1(child, parentType); } } - } else if (isValidElement(node)) { + } else if (isValidElement$1(node)) { // This element was passed in a valid location. if (node._store) { node._store.validated = true; @@ -2744,8 +2716,8 @@ function validateChildKeys(node, parentType) { var step; while (!(step = iterator.next()).done) { - if (isValidElement(step.value)) { - validateExplicitKey(step.value, parentType); + if (isValidElement$1(step.value)) { + validateExplicitKey$1(step.value, parentType); } } } @@ -2759,7 +2731,7 @@ function validateChildKeys(node, parentType) { * @param {ReactElement} element */ -function validatePropTypes(element) { +function validatePropTypes$1(element) { { var type = element.type; @@ -2790,8 +2762,11 @@ function validatePropTypes(element) { // Intentionally inside to avoid triggering lazy initializers: var name = getComponentNameFromType(type); checkPropTypes(propTypes, element.props, "prop", name, element); - } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { - propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers: + } else if ( + type.PropTypes !== undefined && + !propTypesMisspellWarningShown$1 + ) { + propTypesMisspellWarningShown$1 = true; // Intentionally inside to avoid triggering lazy initializers: var _name = getComponentNameFromType(type); @@ -2817,7 +2792,7 @@ function validatePropTypes(element) { * @param {ReactElement} fragment */ -function validateFragmentProps(fragment) { +function validateFragmentProps$1(fragment) { { var keys = Object.keys(fragment.props); @@ -2870,7 +2845,7 @@ function createElementWithValidation(type, props, children) { if (sourceInfo) { info += sourceInfo; } else { - info += getDeclarationErrorAddendum(); + info += getDeclarationErrorAddendum$1(); } var typeString; @@ -2899,7 +2874,7 @@ function createElementWithValidation(type, props, children) { } } - var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. + var element = createElement$1.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { @@ -2912,34 +2887,34 @@ function createElementWithValidation(type, props, children) { if (validType) { for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], type); + validateChildKeys$1(arguments[i], type); } } if (type === REACT_FRAGMENT_TYPE) { - validateFragmentProps(element); + validateFragmentProps$1(element); } else { - validatePropTypes(element); + validatePropTypes$1(element); } return element; } function cloneElementWithValidation(element, props, children) { - var newElement = cloneElement.apply(this, arguments); + var newElement = cloneElement$1.apply(this, arguments); for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], newElement.type); + validateChildKeys$1(arguments[i], newElement.type); } - validatePropTypes(newElement); + validatePropTypes$1(newElement); return newElement; } -var ContextRegistry$1 = ReactSharedInternals.ContextRegistry; +var ContextRegistry = ReactSharedInternals.ContextRegistry; function createServerContext(globalName, defaultValue) { var wasDefined = true; - if (!ContextRegistry$1[globalName]) { + if (!ContextRegistry[globalName]) { wasDefined = false; var _context = { $$typeof: REACT_SERVER_CONTEXT_TYPE, @@ -2983,10 +2958,10 @@ function createServerContext(globalName, defaultValue) { }); } - ContextRegistry$1[globalName] = _context; + ContextRegistry[globalName] = _context; } - var context = ContextRegistry$1[globalName]; + var context = ContextRegistry[globalName]; if (context._defaultValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) { context._defaultValue = defaultValue; @@ -3413,8 +3388,8 @@ var queueSeveralMicrotasks = } : enqueueTask; -var createElement$1 = createElementWithValidation; -var cloneElement$1 = cloneElementWithValidation; +var createElement = createElementWithValidation; +var cloneElement = cloneElementWithValidation; var Children = { map: mapChildren, forEach: forEachChildren, @@ -3424,21 +3399,21 @@ var Children = { }; var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; -var RESERVED_PROPS$1 = { +var RESERVED_PROPS = { key: true, ref: true, __self: true, __source: true }; -var specialPropKeyWarningShown$1; -var specialPropRefWarningShown$1; -var didWarnAboutStringRefs$1; +var specialPropKeyWarningShown; +var specialPropRefWarningShown; +var didWarnAboutStringRefs; { - didWarnAboutStringRefs$1 = {}; + didWarnAboutStringRefs = {}; } -function hasValidRef$1(config) { +function hasValidRef(config) { { if (hasOwnProperty.call(config, "ref")) { var getter = Object.getOwnPropertyDescriptor(config, "ref").get; @@ -3452,7 +3427,7 @@ function hasValidRef$1(config) { return config.ref !== undefined; } -function hasValidKey$1(config) { +function hasValidKey(config) { { if (hasOwnProperty.call(config, "key")) { var getter = Object.getOwnPropertyDescriptor(config, "key").get; @@ -3466,7 +3441,7 @@ function hasValidKey$1(config) { return config.key !== undefined; } -function warnIfStringRefCannotBeAutoConverted$1(config, self) { +function warnIfStringRefCannotBeAutoConverted(config, self) { { if ( typeof config.ref === "string" && @@ -3478,7 +3453,7 @@ function warnIfStringRefCannotBeAutoConverted$1(config, self) { ReactCurrentOwner$1.current.type ); - if (!didWarnAboutStringRefs$1[componentName]) { + if (!didWarnAboutStringRefs[componentName]) { error( 'Component "%s" contains the string ref "%s". ' + "Support for string refs will be removed in a future major release. " + @@ -3490,17 +3465,17 @@ function warnIfStringRefCannotBeAutoConverted$1(config, self) { config.ref ); - didWarnAboutStringRefs$1[componentName] = true; + didWarnAboutStringRefs[componentName] = true; } } } } -function defineKeyPropWarningGetter$1(props, displayName) { +function defineKeyPropWarningGetter(props, displayName) { { var warnAboutAccessingKey = function () { - if (!specialPropKeyWarningShown$1) { - specialPropKeyWarningShown$1 = true; + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; error( "%s: `key` is not a prop. Trying to access it will result " + @@ -3520,11 +3495,11 @@ function defineKeyPropWarningGetter$1(props, displayName) { } } -function defineRefPropWarningGetter$1(props, displayName) { +function defineRefPropWarningGetter(props, displayName) { { var warnAboutAccessingRef = function () { - if (!specialPropRefWarningShown$1) { - specialPropRefWarningShown$1 = true; + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; error( "%s: `ref` is not a prop. Trying to access it will result " + @@ -3564,7 +3539,7 @@ function defineRefPropWarningGetter$1(props, displayName) { * @internal */ -var ReactElement$1 = function (type, key, ref, self, source, owner, props) { +var ReactElement = function (type, key, ref, self, source, owner, props) { var element = { // This tag allows us to uniquely identify this as a React Element $$typeof: REACT_ELEMENT_TYPE, @@ -3624,7 +3599,7 @@ var ReactElement$1 = function (type, key, ref, self, source, owner, props) { * @param {string} key */ -function jsxDEV(type, config, maybeKey, source, self) { +function jsxDEV$1(type, config, maybeKey, source, self) { { var propName; // Reserved names are extracted @@ -3645,7 +3620,7 @@ function jsxDEV(type, config, maybeKey, source, self) { key = "" + maybeKey; } - if (hasValidKey$1(config)) { + if (hasValidKey(config)) { { checkKeyStringCoercion(config.key); } @@ -3653,15 +3628,15 @@ function jsxDEV(type, config, maybeKey, source, self) { key = "" + config.key; } - if (hasValidRef$1(config)) { + if (hasValidRef(config)) { ref = config.ref; - warnIfStringRefCannotBeAutoConverted$1(config, self); + warnIfStringRefCannotBeAutoConverted(config, self); } // Remaining properties are added to a new props object for (propName in config) { if ( hasOwnProperty.call(config, propName) && - !RESERVED_PROPS$1.hasOwnProperty(propName) + !RESERVED_PROPS.hasOwnProperty(propName) ) { props[propName] = config[propName]; } @@ -3684,15 +3659,15 @@ function jsxDEV(type, config, maybeKey, source, self) { : type; if (key) { - defineKeyPropWarningGetter$1(props, displayName); + defineKeyPropWarningGetter(props, displayName); } if (ref) { - defineRefPropWarningGetter$1(props, displayName); + defineRefPropWarningGetter(props, displayName); } } - return ReactElement$1( + return ReactElement( type, key, ref, @@ -3704,11 +3679,11 @@ function jsxDEV(type, config, maybeKey, source, self) { } } -var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner; -var ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame; -var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"); +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); -function setCurrentlyValidatingElement$2(element) { +function setCurrentlyValidatingElement(element) { { if (element) { var owner = element._owner; @@ -3717,17 +3692,17 @@ function setCurrentlyValidatingElement$2(element) { element._source, owner ? owner.type : null ); - ReactDebugCurrentFrame$2.setExtraStackFrame(stack); + ReactDebugCurrentFrame.setExtraStackFrame(stack); } else { - ReactDebugCurrentFrame$2.setExtraStackFrame(null); + ReactDebugCurrentFrame.setExtraStackFrame(null); } } } -var propTypesMisspellWarningShown$1; +var propTypesMisspellWarningShown; { - propTypesMisspellWarningShown$1 = false; + propTypesMisspellWarningShown = false; } /** * Verifies the object is a ReactElement. @@ -3737,7 +3712,7 @@ var propTypesMisspellWarningShown$1; * @final */ -function isValidElement$1(object) { +function isValidElement(object) { { return ( typeof object === "object" && @@ -3747,10 +3722,10 @@ function isValidElement$1(object) { } } -function getDeclarationErrorAddendum$1() { +function getDeclarationErrorAddendum() { { - if (ReactCurrentOwner$2.current) { - var name = getComponentNameFromType(ReactCurrentOwner$2.current.type); + if (ReactCurrentOwner.current) { + var name = getComponentNameFromType(ReactCurrentOwner.current.type); if (name) { return "\n\nCheck the render method of `" + name + "`."; @@ -3761,7 +3736,7 @@ function getDeclarationErrorAddendum$1() { } } -function getSourceInfoErrorAddendum$1(source) { +function getSourceInfoErrorAddendum(source) { { if (source !== undefined) { var fileName = source.fileName.replace(/^.*[\\\/]/, ""); @@ -3778,11 +3753,11 @@ function getSourceInfoErrorAddendum$1(source) { * updates. */ -var ownerHasKeyUseWarning$1 = {}; +var ownerHasKeyUseWarning = {}; -function getCurrentComponentErrorInfo$1(parentType) { +function getCurrentComponentErrorInfo(parentType) { { - var info = getDeclarationErrorAddendum$1(); + var info = getDeclarationErrorAddendum(); if (!info) { var parentName = @@ -3811,20 +3786,20 @@ function getCurrentComponentErrorInfo$1(parentType) { * @param {*} parentType element's parent's type. */ -function validateExplicitKey$1(element, parentType) { +function validateExplicitKey(element, parentType) { { if (!element._store || element._store.validated || element.key != null) { return; } element._store.validated = true; - var currentComponentErrorInfo = getCurrentComponentErrorInfo$1(parentType); + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); - if (ownerHasKeyUseWarning$1[currentComponentErrorInfo]) { + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { return; } - ownerHasKeyUseWarning$1[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a // property, it may be the creator of the child that's responsible for // assigning it a key. @@ -3833,7 +3808,7 @@ function validateExplicitKey$1(element, parentType) { if ( element && element._owner && - element._owner !== ReactCurrentOwner$2.current + element._owner !== ReactCurrentOwner.current ) { // Give the component that originally created this child. childOwner = @@ -3842,7 +3817,7 @@ function validateExplicitKey$1(element, parentType) { "."; } - setCurrentlyValidatingElement$2(element); + setCurrentlyValidatingElement(element); error( 'Each child in a list should have a unique "key" prop.' + @@ -3851,7 +3826,7 @@ function validateExplicitKey$1(element, parentType) { childOwner ); - setCurrentlyValidatingElement$2(null); + setCurrentlyValidatingElement(null); } } /** @@ -3864,22 +3839,22 @@ function validateExplicitKey$1(element, parentType) { * @param {*} parentType node's parent's type. */ -function validateChildKeys$1(node, parentType) { +function validateChildKeys(node, parentType) { { if (typeof node !== "object" || !node) { return; } - if (node.$$typeof === REACT_CLIENT_REFERENCE$2); + if (node.$$typeof === REACT_CLIENT_REFERENCE); else if (isArray(node)) { for (var i = 0; i < node.length; i++) { var child = node[i]; - if (isValidElement$1(child)) { - validateExplicitKey$1(child, parentType); + if (isValidElement(child)) { + validateExplicitKey(child, parentType); } } - } else if (isValidElement$1(node)) { + } else if (isValidElement(node)) { // This element was passed in a valid location. if (node._store) { node._store.validated = true; @@ -3895,8 +3870,8 @@ function validateChildKeys$1(node, parentType) { var step; while (!(step = iterator.next()).done) { - if (isValidElement$1(step.value)) { - validateExplicitKey$1(step.value, parentType); + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); } } } @@ -3911,7 +3886,7 @@ function validateChildKeys$1(node, parentType) { * @param {ReactElement} element */ -function validatePropTypes$1(element) { +function validatePropTypes(element) { { var type = element.type; @@ -3919,7 +3894,7 @@ function validatePropTypes$1(element) { return; } - if (type.$$typeof === REACT_CLIENT_REFERENCE$2) { + if (type.$$typeof === REACT_CLIENT_REFERENCE) { return; } @@ -3942,11 +3917,8 @@ function validatePropTypes$1(element) { // Intentionally inside to avoid triggering lazy initializers: var name = getComponentNameFromType(type); checkPropTypes(propTypes, element.props, "prop", name, element); - } else if ( - type.PropTypes !== undefined && - !propTypesMisspellWarningShown$1 - ) { - propTypesMisspellWarningShown$1 = true; // Intentionally inside to avoid triggering lazy initializers: + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers: var _name = getComponentNameFromType(type); @@ -3972,7 +3944,7 @@ function validatePropTypes$1(element) { * @param {ReactElement} fragment */ -function validateFragmentProps$1(fragment) { +function validateFragmentProps(fragment) { { var keys = Object.keys(fragment.props); @@ -3980,7 +3952,7 @@ function validateFragmentProps$1(fragment) { var key = keys[i]; if (key !== "children" && key !== "key") { - setCurrentlyValidatingElement$2(fragment); + setCurrentlyValidatingElement(fragment); error( "Invalid prop `%s` supplied to `React.Fragment`. " + @@ -3988,17 +3960,17 @@ function validateFragmentProps$1(fragment) { key ); - setCurrentlyValidatingElement$2(null); + setCurrentlyValidatingElement(null); break; } } if (fragment.ref !== null) { - setCurrentlyValidatingElement$2(fragment); + setCurrentlyValidatingElement(fragment); error("Invalid attribute `ref` supplied to `React.Fragment`."); - setCurrentlyValidatingElement$2(null); + setCurrentlyValidatingElement(null); } } } @@ -4023,12 +3995,12 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { "it's defined in, or you might have mixed up default and named imports."; } - var sourceInfo = getSourceInfoErrorAddendum$1(source); + var sourceInfo = getSourceInfoErrorAddendum(source); if (sourceInfo) { info += sourceInfo; } else { - info += getDeclarationErrorAddendum$1(); + info += getDeclarationErrorAddendum(); } var typeString; @@ -4055,7 +4027,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { ); } - var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. + var element = jsxDEV$1(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { @@ -4073,7 +4045,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { if (isStaticChildren) { if (isArray(children)) { for (var i = 0; i < children.length; i++) { - validateChildKeys$1(children[i], type); + validateChildKeys(children[i], type); } if (Object.freeze) { @@ -4087,7 +4059,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { ); } } else { - validateChildKeys$1(children, type); + validateChildKeys(children, type); } } } @@ -4124,9 +4096,9 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) { } if (type === REACT_FRAGMENT_TYPE) { - validateFragmentProps$1(element); + validateFragmentProps(element); } else { - validatePropTypes$1(element); + validatePropTypes(element); } return element; @@ -4151,7 +4123,7 @@ var jsx = jsxWithValidationDynamic; // we may want to special case jsxs internal // for now we can ship identical prod functions var jsxs = jsxWithValidationStatic; -var jsxDEV$1 = jsxWithValidation; +var jsxDEV = jsxWithValidation; exports.Children = Children; exports.Component = Component; @@ -4164,17 +4136,17 @@ exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE; exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; exports.cache = cache; -exports.cloneElement = cloneElement$1; +exports.cloneElement = cloneElement; exports.createContext = createContext; -exports.createElement = createElement$1; +exports.createElement = createElement; exports.createMutableSource = createMutableSource; exports.createRef = createRef; exports.createServerContext = createServerContext; exports.experimental_useEffectEvent = useEffectEvent; exports.forwardRef = forwardRef; -exports.isValidElement = isValidElement; +exports.isValidElement = isValidElement$1; exports.jsx = jsx; -exports.jsxDEV = jsxDEV$1; +exports.jsxDEV = jsxDEV; exports.jsxs = jsxs; exports.lazy = lazy; exports.memo = memo; diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index a1f2def80a..6cb36c5bd6 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -88,9 +88,9 @@ var isArrayImpl = Array.isArray, enableTransitionTracing = require("ReactFeatureFlags").enableTransitionTracing, hasOwnProperty = Object.prototype.hasOwnProperty, - ReactCurrentOwner = { current: null }, - RESERVED_PROPS = { key: !0, ref: !0, __self: !0, __source: !0 }; -function createElement(type, config, children) { + ReactCurrentOwner$1 = { current: null }, + RESERVED_PROPS$1 = { key: !0, ref: !0, __self: !0, __source: !0 }; +function createElement$1(type, config, children) { var propName, props = {}, key = null, @@ -100,7 +100,7 @@ function createElement(type, config, children) { void 0 !== config.key && (key = "" + config.key), config)) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && + !RESERVED_PROPS$1.hasOwnProperty(propName) && (props[propName] = config[propName]); var childrenLength = arguments.length - 2; if (1 === childrenLength) props.children = children; @@ -119,7 +119,7 @@ function createElement(type, config, children) { key: key, ref: ref, props: props, - _owner: ReactCurrentOwner.current + _owner: ReactCurrentOwner$1.current }; } function cloneAndReplaceKey(oldElement, newKey) { @@ -301,10 +301,10 @@ var ReactCurrentBatchConfig = { transition: null }, ReactCurrentDispatcher: ReactCurrentDispatcher, ReactCurrentCache: ReactCurrentCache, ReactCurrentBatchConfig: ReactCurrentBatchConfig, - ReactCurrentOwner: ReactCurrentOwner, + ReactCurrentOwner: ReactCurrentOwner$1, ContextRegistry: {} }, - ContextRegistry$1 = ReactSharedInternals.ContextRegistry; + ContextRegistry = ReactSharedInternals.ContextRegistry; function createMutableSource(source, getVersion) { return { _getVersion: getVersion, @@ -327,9 +327,9 @@ function startTransition(scope, options) { ReactCurrentBatchConfig.transition = prevTransition; } } -var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, - RESERVED_PROPS$1 = { key: !0, ref: !0, __self: !0, __source: !0 }; -function jsx(type, config, maybeKey) { +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + RESERVED_PROPS = { key: !0, ref: !0, __self: !0, __source: !0 }; +function jsx$1(type, config, maybeKey) { var propName, props = {}, key = null, @@ -339,7 +339,7 @@ function jsx(type, config, maybeKey) { void 0 !== config.ref && (ref = config.ref); for (propName in config) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS$1.hasOwnProperty(propName) && + !RESERVED_PROPS.hasOwnProperty(propName) && (props[propName] = config[propName]); if (type && type.defaultProps) for (propName in ((config = type.defaultProps), config)) @@ -350,7 +350,7 @@ function jsx(type, config, maybeKey) { key: key, ref: ref, props: props, - _owner: ReactCurrentOwner$1.current + _owner: ReactCurrentOwner.current }; } exports.Children = { @@ -448,13 +448,13 @@ exports.cloneElement = function (element, config, children) { owner = element._owner; if (null != config) { void 0 !== config.ref && - ((ref = config.ref), (owner = ReactCurrentOwner.current)); + ((ref = config.ref), (owner = ReactCurrentOwner$1.current)); void 0 !== config.key && (key = "" + config.key); if (element.type && element.type.defaultProps) var defaultProps = element.type.defaultProps; for (propName in config) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && + !RESERVED_PROPS$1.hasOwnProperty(propName) && (props[propName] = void 0 === config[propName] && void 0 !== defaultProps ? defaultProps[propName] @@ -493,9 +493,9 @@ exports.createContext = function (defaultValue) { }; return (defaultValue.Consumer = defaultValue); }; -exports.createElement = createElement; +exports.createElement = createElement$1; exports.createFactory = function (type) { - var factory = createElement.bind(null, type); + var factory = createElement$1.bind(null, type); factory.type = type; return factory; }; @@ -505,7 +505,7 @@ exports.createRef = function () { }; exports.createServerContext = function (globalName, defaultValue) { var wasDefined = !0; - if (!ContextRegistry$1[globalName]) { + if (!ContextRegistry[globalName]) { wasDefined = !1; var context$1 = { $$typeof: REACT_SERVER_CONTEXT_TYPE, @@ -518,9 +518,9 @@ exports.createServerContext = function (globalName, defaultValue) { _globalName: globalName }; context$1.Provider = { $$typeof: REACT_PROVIDER_TYPE, _context: context$1 }; - ContextRegistry$1[globalName] = context$1; + ContextRegistry[globalName] = context$1; } - context$1 = ContextRegistry$1[globalName]; + context$1 = ContextRegistry[globalName]; if (context$1._defaultValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) (context$1._defaultValue = defaultValue), context$1._currentValue === @@ -540,9 +540,9 @@ exports.forwardRef = function (render) { return { $$typeof: REACT_FORWARD_REF_TYPE, render: render }; }; exports.isValidElement = isValidElement; -exports.jsx = jsx; +exports.jsx = jsx$1; exports.jsxDEV = void 0; -exports.jsxs = jsx; +exports.jsxs = jsx$1; exports.lazy = function (ctor) { return { $$typeof: REACT_LAZY_TYPE, @@ -646,4 +646,4 @@ exports.useSyncExternalStore = function ( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-classic-bc38a3dfa-20230220"; +exports.version = "18.3.0-www-classic-6b6d0617e-20230220"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 37f2a79f83..3d5b59087b 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -87,8 +87,8 @@ var isArrayImpl = Array.isArray, enableTransitionTracing = require("ReactFeatureFlags").enableTransitionTracing, hasOwnProperty = Object.prototype.hasOwnProperty, - ReactCurrentOwner = { current: null }, - RESERVED_PROPS = { key: !0, ref: !0, __self: !0, __source: !0 }; + ReactCurrentOwner$1 = { current: null }, + RESERVED_PROPS$1 = { key: !0, ref: !0, __self: !0, __source: !0 }; function cloneAndReplaceKey(oldElement, newKey) { return { $$typeof: REACT_ELEMENT_TYPE, @@ -268,10 +268,10 @@ var ReactCurrentBatchConfig = { transition: null }, ReactCurrentDispatcher: ReactCurrentDispatcher, ReactCurrentCache: ReactCurrentCache, ReactCurrentBatchConfig: ReactCurrentBatchConfig, - ReactCurrentOwner: ReactCurrentOwner, + ReactCurrentOwner: ReactCurrentOwner$1, ContextRegistry: {} }, - ContextRegistry$1 = ReactSharedInternals.ContextRegistry; + ContextRegistry = ReactSharedInternals.ContextRegistry; function createMutableSource(source, getVersion) { return { _getVersion: getVersion, @@ -294,9 +294,9 @@ function startTransition(scope, options) { ReactCurrentBatchConfig.transition = prevTransition; } } -var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, - RESERVED_PROPS$1 = { key: !0, ref: !0, __self: !0, __source: !0 }; -function jsx(type, config, maybeKey) { +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + RESERVED_PROPS = { key: !0, ref: !0, __self: !0, __source: !0 }; +function jsx$1(type, config, maybeKey) { var propName, props = {}, key = null, @@ -306,7 +306,7 @@ function jsx(type, config, maybeKey) { void 0 !== config.ref && (ref = config.ref); for (propName in config) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS$1.hasOwnProperty(propName) && + !RESERVED_PROPS.hasOwnProperty(propName) && (props[propName] = config[propName]); if (type && type.defaultProps) for (propName in ((config = type.defaultProps), config)) @@ -317,7 +317,7 @@ function jsx(type, config, maybeKey) { key: key, ref: ref, props: props, - _owner: ReactCurrentOwner$1.current + _owner: ReactCurrentOwner.current }; } exports.Children = { @@ -415,13 +415,13 @@ exports.cloneElement = function (element, config, children) { owner = element._owner; if (null != config) { void 0 !== config.ref && - ((ref = config.ref), (owner = ReactCurrentOwner.current)); + ((ref = config.ref), (owner = ReactCurrentOwner$1.current)); void 0 !== config.key && (key = "" + config.key); if (element.type && element.type.defaultProps) var defaultProps = element.type.defaultProps; for (propName in config) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && + !RESERVED_PROPS$1.hasOwnProperty(propName) && (props[propName] = void 0 === config[propName] && void 0 !== defaultProps ? defaultProps[propName] @@ -470,7 +470,7 @@ exports.createElement = function (type, config, children) { void 0 !== config.key && (key = "" + config.key), config)) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && + !RESERVED_PROPS$1.hasOwnProperty(propName) && (props[propName] = config[propName]); var childrenLength = arguments.length - 2; if (1 === childrenLength) props.children = children; @@ -489,7 +489,7 @@ exports.createElement = function (type, config, children) { key: key, ref: ref, props: props, - _owner: ReactCurrentOwner.current + _owner: ReactCurrentOwner$1.current }; }; exports.createMutableSource = createMutableSource; @@ -498,7 +498,7 @@ exports.createRef = function () { }; exports.createServerContext = function (globalName, defaultValue) { var wasDefined = !0; - if (!ContextRegistry$1[globalName]) { + if (!ContextRegistry[globalName]) { wasDefined = !1; var context$1 = { $$typeof: REACT_SERVER_CONTEXT_TYPE, @@ -511,9 +511,9 @@ exports.createServerContext = function (globalName, defaultValue) { _globalName: globalName }; context$1.Provider = { $$typeof: REACT_PROVIDER_TYPE, _context: context$1 }; - ContextRegistry$1[globalName] = context$1; + ContextRegistry[globalName] = context$1; } - context$1 = ContextRegistry$1[globalName]; + context$1 = ContextRegistry[globalName]; if (context$1._defaultValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) (context$1._defaultValue = defaultValue), context$1._currentValue === @@ -533,9 +533,9 @@ exports.forwardRef = function (render) { return { $$typeof: REACT_FORWARD_REF_TYPE, render: render }; }; exports.isValidElement = isValidElement; -exports.jsx = jsx; +exports.jsx = jsx$1; exports.jsxDEV = void 0; -exports.jsxs = jsx; +exports.jsxs = jsx$1; exports.lazy = function (ctor) { return { $$typeof: REACT_LAZY_TYPE, @@ -638,4 +638,4 @@ exports.useSyncExternalStore = function ( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-modern-bc38a3dfa-20230220"; +exports.version = "18.3.0-www-modern-6b6d0617e-20230220"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index ce03cd9ded..af1cb5627b 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -99,9 +99,9 @@ var isArrayImpl = Array.isArray, enableTransitionTracing = require("ReactFeatureFlags").enableTransitionTracing, hasOwnProperty = Object.prototype.hasOwnProperty, - ReactCurrentOwner = { current: null }, - RESERVED_PROPS = { key: !0, ref: !0, __self: !0, __source: !0 }; -function createElement(type, config, children) { + ReactCurrentOwner$1 = { current: null }, + RESERVED_PROPS$1 = { key: !0, ref: !0, __self: !0, __source: !0 }; +function createElement$1(type, config, children) { var propName, props = {}, key = null, @@ -111,7 +111,7 @@ function createElement(type, config, children) { void 0 !== config.key && (key = "" + config.key), config)) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && + !RESERVED_PROPS$1.hasOwnProperty(propName) && (props[propName] = config[propName]); var childrenLength = arguments.length - 2; if (1 === childrenLength) props.children = children; @@ -130,7 +130,7 @@ function createElement(type, config, children) { key: key, ref: ref, props: props, - _owner: ReactCurrentOwner.current + _owner: ReactCurrentOwner$1.current }; } function cloneAndReplaceKey(oldElement, newKey) { @@ -312,10 +312,10 @@ var ReactCurrentBatchConfig = { transition: null }, ReactCurrentDispatcher: ReactCurrentDispatcher, ReactCurrentCache: ReactCurrentCache, ReactCurrentBatchConfig: ReactCurrentBatchConfig, - ReactCurrentOwner: ReactCurrentOwner, + ReactCurrentOwner: ReactCurrentOwner$1, ContextRegistry: {} }, - ContextRegistry$1 = ReactSharedInternals.ContextRegistry; + ContextRegistry = ReactSharedInternals.ContextRegistry; function createMutableSource(source, getVersion) { return { _getVersion: getVersion, @@ -338,9 +338,9 @@ function startTransition(scope, options) { ReactCurrentBatchConfig.transition = prevTransition; } } -var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, - RESERVED_PROPS$1 = { key: !0, ref: !0, __self: !0, __source: !0 }; -function jsx(type, config, maybeKey) { +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + RESERVED_PROPS = { key: !0, ref: !0, __self: !0, __source: !0 }; +function jsx$1(type, config, maybeKey) { var propName, props = {}, key = null, @@ -350,7 +350,7 @@ function jsx(type, config, maybeKey) { void 0 !== config.ref && (ref = config.ref); for (propName in config) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS$1.hasOwnProperty(propName) && + !RESERVED_PROPS.hasOwnProperty(propName) && (props[propName] = config[propName]); if (type && type.defaultProps) for (propName in ((config = type.defaultProps), config)) @@ -361,7 +361,7 @@ function jsx(type, config, maybeKey) { key: key, ref: ref, props: props, - _owner: ReactCurrentOwner$1.current + _owner: ReactCurrentOwner.current }; } exports.Children = { @@ -459,13 +459,13 @@ exports.cloneElement = function (element, config, children) { owner = element._owner; if (null != config) { void 0 !== config.ref && - ((ref = config.ref), (owner = ReactCurrentOwner.current)); + ((ref = config.ref), (owner = ReactCurrentOwner$1.current)); void 0 !== config.key && (key = "" + config.key); if (element.type && element.type.defaultProps) var defaultProps = element.type.defaultProps; for (propName in config) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && + !RESERVED_PROPS$1.hasOwnProperty(propName) && (props[propName] = void 0 === config[propName] && void 0 !== defaultProps ? defaultProps[propName] @@ -504,9 +504,9 @@ exports.createContext = function (defaultValue) { }; return (defaultValue.Consumer = defaultValue); }; -exports.createElement = createElement; +exports.createElement = createElement$1; exports.createFactory = function (type) { - var factory = createElement.bind(null, type); + var factory = createElement$1.bind(null, type); factory.type = type; return factory; }; @@ -516,7 +516,7 @@ exports.createRef = function () { }; exports.createServerContext = function (globalName, defaultValue) { var wasDefined = !0; - if (!ContextRegistry$1[globalName]) { + if (!ContextRegistry[globalName]) { wasDefined = !1; var context$1 = { $$typeof: REACT_SERVER_CONTEXT_TYPE, @@ -529,9 +529,9 @@ exports.createServerContext = function (globalName, defaultValue) { _globalName: globalName }; context$1.Provider = { $$typeof: REACT_PROVIDER_TYPE, _context: context$1 }; - ContextRegistry$1[globalName] = context$1; + ContextRegistry[globalName] = context$1; } - context$1 = ContextRegistry$1[globalName]; + context$1 = ContextRegistry[globalName]; if (context$1._defaultValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) (context$1._defaultValue = defaultValue), context$1._currentValue === @@ -551,9 +551,9 @@ exports.forwardRef = function (render) { return { $$typeof: REACT_FORWARD_REF_TYPE, render: render }; }; exports.isValidElement = isValidElement; -exports.jsx = jsx; +exports.jsx = jsx$1; exports.jsxDEV = void 0; -exports.jsxs = jsx; +exports.jsxs = jsx$1; exports.lazy = function (ctor) { return { $$typeof: REACT_LAZY_TYPE, @@ -657,7 +657,7 @@ exports.useSyncExternalStore = function ( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-classic-bc38a3dfa-20230220"; +exports.version = "18.3.0-www-classic-6b6d0617e-20230220"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index b37c660a0d..bf58340c8d 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -98,8 +98,8 @@ var isArrayImpl = Array.isArray, enableTransitionTracing = require("ReactFeatureFlags").enableTransitionTracing, hasOwnProperty = Object.prototype.hasOwnProperty, - ReactCurrentOwner = { current: null }, - RESERVED_PROPS = { key: !0, ref: !0, __self: !0, __source: !0 }; + ReactCurrentOwner$1 = { current: null }, + RESERVED_PROPS$1 = { key: !0, ref: !0, __self: !0, __source: !0 }; function cloneAndReplaceKey(oldElement, newKey) { return { $$typeof: REACT_ELEMENT_TYPE, @@ -279,10 +279,10 @@ var ReactCurrentBatchConfig = { transition: null }, ReactCurrentDispatcher: ReactCurrentDispatcher, ReactCurrentCache: ReactCurrentCache, ReactCurrentBatchConfig: ReactCurrentBatchConfig, - ReactCurrentOwner: ReactCurrentOwner, + ReactCurrentOwner: ReactCurrentOwner$1, ContextRegistry: {} }, - ContextRegistry$1 = ReactSharedInternals.ContextRegistry; + ContextRegistry = ReactSharedInternals.ContextRegistry; function createMutableSource(source, getVersion) { return { _getVersion: getVersion, @@ -305,9 +305,9 @@ function startTransition(scope, options) { ReactCurrentBatchConfig.transition = prevTransition; } } -var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, - RESERVED_PROPS$1 = { key: !0, ref: !0, __self: !0, __source: !0 }; -function jsx(type, config, maybeKey) { +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + RESERVED_PROPS = { key: !0, ref: !0, __self: !0, __source: !0 }; +function jsx$1(type, config, maybeKey) { var propName, props = {}, key = null, @@ -317,7 +317,7 @@ function jsx(type, config, maybeKey) { void 0 !== config.ref && (ref = config.ref); for (propName in config) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS$1.hasOwnProperty(propName) && + !RESERVED_PROPS.hasOwnProperty(propName) && (props[propName] = config[propName]); if (type && type.defaultProps) for (propName in ((config = type.defaultProps), config)) @@ -328,7 +328,7 @@ function jsx(type, config, maybeKey) { key: key, ref: ref, props: props, - _owner: ReactCurrentOwner$1.current + _owner: ReactCurrentOwner.current }; } exports.Children = { @@ -426,13 +426,13 @@ exports.cloneElement = function (element, config, children) { owner = element._owner; if (null != config) { void 0 !== config.ref && - ((ref = config.ref), (owner = ReactCurrentOwner.current)); + ((ref = config.ref), (owner = ReactCurrentOwner$1.current)); void 0 !== config.key && (key = "" + config.key); if (element.type && element.type.defaultProps) var defaultProps = element.type.defaultProps; for (propName in config) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && + !RESERVED_PROPS$1.hasOwnProperty(propName) && (props[propName] = void 0 === config[propName] && void 0 !== defaultProps ? defaultProps[propName] @@ -481,7 +481,7 @@ exports.createElement = function (type, config, children) { void 0 !== config.key && (key = "" + config.key), config)) hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && + !RESERVED_PROPS$1.hasOwnProperty(propName) && (props[propName] = config[propName]); var childrenLength = arguments.length - 2; if (1 === childrenLength) props.children = children; @@ -500,7 +500,7 @@ exports.createElement = function (type, config, children) { key: key, ref: ref, props: props, - _owner: ReactCurrentOwner.current + _owner: ReactCurrentOwner$1.current }; }; exports.createMutableSource = createMutableSource; @@ -509,7 +509,7 @@ exports.createRef = function () { }; exports.createServerContext = function (globalName, defaultValue) { var wasDefined = !0; - if (!ContextRegistry$1[globalName]) { + if (!ContextRegistry[globalName]) { wasDefined = !1; var context$1 = { $$typeof: REACT_SERVER_CONTEXT_TYPE, @@ -522,9 +522,9 @@ exports.createServerContext = function (globalName, defaultValue) { _globalName: globalName }; context$1.Provider = { $$typeof: REACT_PROVIDER_TYPE, _context: context$1 }; - ContextRegistry$1[globalName] = context$1; + ContextRegistry[globalName] = context$1; } - context$1 = ContextRegistry$1[globalName]; + context$1 = ContextRegistry[globalName]; if (context$1._defaultValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) (context$1._defaultValue = defaultValue), context$1._currentValue === @@ -544,9 +544,9 @@ exports.forwardRef = function (render) { return { $$typeof: REACT_FORWARD_REF_TYPE, render: render }; }; exports.isValidElement = isValidElement; -exports.jsx = jsx; +exports.jsx = jsx$1; exports.jsxDEV = void 0; -exports.jsxs = jsx; +exports.jsxs = jsx$1; exports.lazy = function (ctor) { return { $$typeof: REACT_LAZY_TYPE, @@ -649,7 +649,7 @@ exports.useSyncExternalStore = function ( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-modern-bc38a3dfa-20230220"; +exports.version = "18.3.0-www-modern-6b6d0617e-20230220"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index dc32043284..97f9ac27c3 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-classic-bc38a3dfa-20230220"; +var ReactVersion = "18.3.0-www-classic-6b6d0617e-20230220"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -165,17 +165,8 @@ var ReactSharedInternals = // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); -var disableInputAttributeSyncing = - dynamicFeatureFlags.disableInputAttributeSyncing, - enableTrustedTypesIntegration = - dynamicFeatureFlags.enableTrustedTypesIntegration, - disableSchedulerTimeoutBasedOnReactExpirationTime = - dynamicFeatureFlags.disableSchedulerTimeoutBasedOnReactExpirationTime, - replayFailedUnitOfWorkWithInvokeGuardedCallback = +var replayFailedUnitOfWorkWithInvokeGuardedCallback = dynamicFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback, - enableFilterEmptyStringAttributesDOM = - dynamicFeatureFlags.enableFilterEmptyStringAttributesDOM, - enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, deferRenderPhaseUpdateToNextBatch = dynamicFeatureFlags.deferRenderPhaseUpdateToNextBatch, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -189,11 +180,8 @@ var disableInputAttributeSyncing = dynamicFeatureFlags.enableLazyContextPropagation, enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates, enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane, - enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay = - dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableCustomElementPropertySupport = - dynamicFeatureFlags.enableCustomElementPropertySupport; // On WWW, false is used for a new modern build. + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing; +// On WWW, false is used for a new modern build. var enableProfilerTimer = true; var enableProfilerCommitHooks = true; var enableProfilerNestedUpdatePhase = true; @@ -279,7 +267,7 @@ function getIteratorFn(maybeIterable) { return null; } -function getWrappedName(outerType, innerType, wrapperName) { +function getWrappedName$1(outerType, innerType, wrapperName) { var displayName = outerType.displayName; if (displayName) { @@ -292,7 +280,7 @@ function getWrappedName(outerType, innerType, wrapperName) { : wrapperName; } // Keep in sync with react-reconciler/getComponentNameFromFiber -function getContextName(type) { +function getContextName$1(type) { return type.displayName || "Context"; } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead. @@ -354,14 +342,14 @@ function getComponentNameFromType(type) { switch (type.$$typeof) { case REACT_CONTEXT_TYPE: var context = type; - return getContextName(context) + ".Consumer"; + return getContextName$1(context) + ".Consumer"; case REACT_PROVIDER_TYPE: var provider = type; - return getContextName(provider._context) + ".Provider"; + return getContextName$1(provider._context) + ".Provider"; case REACT_FORWARD_REF_TYPE: - return getWrappedName(type, type.render, "ForwardRef"); + return getWrappedName$1(type, type.render, "ForwardRef"); case REACT_MEMO_TYPE: var outerName = type.displayName || null; @@ -396,7 +384,7 @@ function getComponentNameFromType(type) { return null; } -function getWrappedName$1(outerType, innerType, wrapperName) { +function getWrappedName(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ""; return ( outerType.displayName || @@ -404,7 +392,7 @@ function getWrappedName$1(outerType, innerType, wrapperName) { ); } // Keep in sync with shared/getComponentNameFromType -function getContextName$1(type) { +function getContextName(type) { return type.displayName || "Context"; } @@ -418,17 +406,17 @@ function getComponentNameFromFiber(fiber) { case ContextConsumer: var context = type; - return getContextName$1(context) + ".Consumer"; + return getContextName(context) + ".Consumer"; case ContextProvider: var provider = type; - return getContextName$1(provider._context) + ".Provider"; + return getContextName(provider._context) + ".Provider"; case DehydratedFragment: return "DehydratedFragment"; case ForwardRef: - return getWrappedName$1(type, type.render, "ForwardRef"); + return getWrappedName(type, type.render, "ForwardRef"); case Fragment: return "Fragment"; @@ -503,7 +491,7 @@ function getComponentNameFromFiber(fiber) { return null; } -var NoFlags = +var NoFlags$1 = /* */ 0; var PerformedWork = @@ -544,7 +532,7 @@ var Ref = var Snapshot = /* */ 1024; -var Passive = +var Passive$1 = /* */ 2048; /* Used by Hydrating: 0b000000000000001000000000000; */ @@ -556,7 +544,7 @@ var StoreConsistency = /* */ 16384; var LifecycleEffectMask = - Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit) + Passive$1 | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit) var HostEffectMask = /* */ @@ -624,13 +612,13 @@ var MutationMask = Visibility; var LayoutMask = Update | Callback | Ref | Visibility; // TODO: Split into PassiveMountMask and PassiveUnmountMask -var PassiveMask = Passive | Visibility | ChildDeletion; // Union of tags that don't get reset on clones. +var PassiveMask = Passive$1 | Visibility | ChildDeletion; // Union of tags that don't get reset on clones. // This allows certain concepts to persist without recalculating them, // e.g. whether a subtree contains passive effects or portals. var StaticMask = LayoutStatic | PassiveStatic | RefStatic; -var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; +var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner; function getNearestMountedFiber(fiber) { var node = fiber; var nearestMounted = fiber; @@ -643,7 +631,7 @@ function getNearestMountedFiber(fiber) { do { node = nextNode; - if ((node.flags & (Placement | Hydrating)) !== NoFlags) { + if ((node.flags & (Placement | Hydrating)) !== NoFlags$1) { // This is an insertion or in-progress hydration. The nearest possible // mounted fiber is the parent but we need to continue to figure out // if that one is still mounted. @@ -672,7 +660,7 @@ function isFiberMounted(fiber) { } function isMounted(component) { { - var owner = ReactCurrentOwner.current; + var owner = ReactCurrentOwner$2.current; if (owner !== null && owner.tag === ClassComponent) { var ownerFiber = owner; @@ -957,14 +945,14 @@ function childrenAsString(children) { } // This module only exists as an ESM wrapper around the external CommonJS -var scheduleCallback = Scheduler.unstable_scheduleCallback; -var cancelCallback = Scheduler.unstable_cancelCallback; +var scheduleCallback$2 = Scheduler.unstable_scheduleCallback; +var cancelCallback$1 = Scheduler.unstable_cancelCallback; var shouldYield = Scheduler.unstable_shouldYield; var requestPaint = Scheduler.unstable_requestPaint; -var now = Scheduler.unstable_now; +var now$1 = Scheduler.unstable_now; var ImmediatePriority = Scheduler.unstable_ImmediatePriority; var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority; -var NormalPriority = Scheduler.unstable_NormalPriority; +var NormalPriority$1 = Scheduler.unstable_NormalPriority; var IdlePriority = Scheduler.unstable_IdlePriority; // this doesn't actually exist on the scheduler, but it *does* // on scheduler/unstable_mock, which we'll need for internal testing @@ -1165,7 +1153,7 @@ function onCommitRoot(root, eventPriority) { break; case DefaultEventPriority: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; break; case IdleEventPriority: @@ -1173,7 +1161,7 @@ function onCommitRoot(root, eventPriority) { break; default: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; break; } @@ -1183,8 +1171,6 @@ function onCommitRoot(root, eventPriority) { schedulerPriority, didError ); - } else { - injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError); } } catch (err) { { @@ -1554,7 +1540,7 @@ var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. // Based on: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32 -var log = Math.log; +var log$1 = Math.log; var LN2 = Math.LN2; function clz32Fallback(x) { @@ -1564,7 +1550,7 @@ function clz32Fallback(x) { return 32; } - return (31 - ((log(asUint) / LN2) | 0)) | 0; + return (31 - ((log$1(asUint) / LN2) | 0)) | 0; } // If those values are changed that package should be rebuilt and redeployed. @@ -2215,7 +2201,7 @@ function markRootUpdated(root, updateLane, eventTime) { eventTimes[index] = eventTime; } -function markRootSuspended(root, suspendedLanes) { +function markRootSuspended$1(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times. @@ -2527,25 +2513,24 @@ function lanesToEventPriority(lanes) { // Renderers that don't support hydration // can re-export everything from this module. -function shim() { +function shim$1() { throw new Error( "The current renderer does not support hydration. " + "This error is likely caused by a bug in React. " + "Please file an issue." ); } // Hydration (when unsupported) -var isSuspenseInstancePending = shim; -var isSuspenseInstanceFallback = shim; -var getSuspenseInstanceFallbackErrorDetails = shim; -var registerSuspenseInstanceRetry = shim; -var hydrateTextInstance = shim; -var clearSuspenseBoundary = shim; -var clearSuspenseBoundaryFromContainer = shim; -var errorHydratingContainer = shim; +var isSuspenseInstancePending = shim$1; +var isSuspenseInstanceFallback = shim$1; +var getSuspenseInstanceFallbackErrorDetails = shim$1; +var registerSuspenseInstanceRetry = shim$1; +var clearSuspenseBoundary = shim$1; +var clearSuspenseBoundaryFromContainer = shim$1; +var errorHydratingContainer = shim$1; // Renderers that don't support React Scopes // can re-export everything from this module. -function shim$1() { +function shim() { throw new Error( "The current renderer does not support React Scopes. " + "This error is likely caused by a bug in React. " + @@ -2553,8 +2538,8 @@ function shim$1() { ); } // React Scopes (when unsupported) -var prepareScopeUpdate = shim$1; -var getInstanceFromScope = shim$1; +var prepareScopeUpdate = shim; +var getInstanceFromScope = shim; var pooledTransform = new Transform(); var NO_CONTEXT = {}; @@ -2846,9 +2831,6 @@ function prepareForCommit() { function prepareUpdate(domElement, type, oldProps, newProps) { return UPDATE_SIGNAL; } -function resetAfterCommit() { - // Noop -} function resetTextContent(domElement) { // Noop } @@ -2930,17 +2912,11 @@ function unhideInstance(instance, props) { function unhideTextInstance(textInstance, text) { // Noop } -function clearContainer(container) { - // TODO Implement this -} function getInstanceFromNode(node) { throw new Error("Not implemented."); } -function preparePortalMount(portalInstance) { - // noop -} // eslint-disable-next-line no-undef -var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; +var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher; var prefix; function describeBuiltInComponentFrame(name, source, ownerFn) { { @@ -2961,8 +2937,8 @@ var reentry = false; var componentFrameCache; { - var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; - componentFrameCache = new PossiblyWeakMap(); + var PossiblyWeakMap$2 = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap$2(); } function describeNativeComponentFrame(fn, construct) { @@ -2987,10 +2963,10 @@ function describeNativeComponentFrame(fn, construct) { var previousDispatcher; { - previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function + previousDispatcher = ReactCurrentDispatcher$2.current; // Set the dispatcher in DEV because this might be call in the render function // for warnings. - ReactCurrentDispatcher.current = null; + ReactCurrentDispatcher$2.current = null; disableLogs(); } @@ -3104,7 +3080,7 @@ function describeNativeComponentFrame(fn, construct) { reentry = false; { - ReactCurrentDispatcher.current = previousDispatcher; + ReactCurrentDispatcher$2.current = previousDispatcher; reenableLogs(); } @@ -3134,7 +3110,7 @@ function describeFunctionComponentFrame(fn, source, ownerFn) { } } -function shouldConstruct(Component) { +function shouldConstruct$1(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } @@ -3146,7 +3122,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { if (typeof type === "function") { { - return describeNativeComponentFrame(type, shouldConstruct(type)); + return describeNativeComponentFrame(type, shouldConstruct$1(type)); } } @@ -3195,7 +3171,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { var hasOwnProperty = Object.prototype.hasOwnProperty; var loggedTypeFailures = {}; -var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; function setCurrentlyValidatingElement(element) { { @@ -3206,9 +3182,9 @@ function setCurrentlyValidatingElement(element) { element._source, owner ? owner.type : null ); - ReactDebugCurrentFrame.setExtraStackFrame(stack); + ReactDebugCurrentFrame$1.setExtraStackFrame(stack); } else { - ReactDebugCurrentFrame.setExtraStackFrame(null); + ReactDebugCurrentFrame$1.setExtraStackFrame(null); } } } @@ -3357,7 +3333,7 @@ var emptyContextObject = {}; Object.freeze(emptyContextObject); } // A cursor to the current merged context object on the stack. -var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed. +var contextStackCursor$1 = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed. var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack. // We use this to get access to the parent context after we have already @@ -3379,7 +3355,7 @@ function getUnmaskedContext( return previousContext; } - return contextStackCursor.current; + return contextStackCursor$1.current; } } @@ -3447,27 +3423,27 @@ function isContextProvider(type) { function popContext(fiber) { { pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor, fiber); + pop(contextStackCursor$1, fiber); } } function popTopLevelContextObject(fiber) { { pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor, fiber); + pop(contextStackCursor$1, fiber); } } function pushTopLevelContextObject(fiber, context, didChange) { { - if (contextStackCursor.current !== emptyContextObject) { + if (contextStackCursor$1.current !== emptyContextObject) { throw new Error( "Unexpected context found on stack. " + "This error is likely caused by a bug in React. Please file an issue." ); } - push(contextStackCursor, context, fiber); + push(contextStackCursor$1, context, fiber); push(didPerformWorkStackCursor, didChange, fiber); } } @@ -3531,8 +3507,8 @@ function pushContextProvider(workInProgress) { emptyContextObject; // Remember the parent context so we can merge with it later. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates. - previousContext = contextStackCursor.current; - push(contextStackCursor, memoizedMergedChildContext, workInProgress); + previousContext = contextStackCursor$1.current; + push(contextStackCursor$1, memoizedMergedChildContext, workInProgress); push( didPerformWorkStackCursor, didPerformWorkStackCursor.current, @@ -3566,9 +3542,9 @@ function invalidateContextProvider(workInProgress, type, didChange) { // It is important to unwind the context in the reverse order. pop(didPerformWorkStackCursor, workInProgress); - pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed. + pop(contextStackCursor$1, workInProgress); // Now push the new context and mark that it has changed. - push(contextStackCursor, mergedContext, workInProgress); + push(contextStackCursor$1, mergedContext, workInProgress); push(didPerformWorkStackCursor, didChange, workInProgress); } else { pop(didPerformWorkStackCursor, workInProgress); @@ -3706,7 +3682,7 @@ function flushSyncCallbacks() { syncQueue = syncQueue.slice(i + 1); } // Resume flushing in the next tick - scheduleCallback(ImmediatePriority, flushSyncCallbacks); + scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); throw error; } finally { setCurrentUpdatePriority(previousUpdatePriority); @@ -3739,7 +3715,7 @@ function group() { if (nativeConsoleLog === null) { nativeConsoleLog = nativeConsole.log; - nativeConsole.log = log$1; + nativeConsole.log = log; } } @@ -3757,7 +3733,7 @@ function groupEnd() { } } -function log$1() { +function log() { if (printedGroupIndex < pendingGroupArgs.length - 1) { for (var i = printedGroupIndex + 1; i < pendingGroupArgs.length; i++) { var groupArgs = pendingGroupArgs[i]; @@ -3813,7 +3789,7 @@ function logComponentSuspended(componentName, wakeable) { if (enableDebugTracing) { var id = getWakeableID(wakeable); var display = wakeable.displayName || wakeable; - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " suspended", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -3822,7 +3798,7 @@ function logComponentSuspended(componentName, wakeable) { ); wakeable.then( function () { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " resolved", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -3831,7 +3807,7 @@ function logComponentSuspended(componentName, wakeable) { ); }, function () { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " rejected", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -3903,7 +3879,7 @@ function logRenderStopped() { function logForceUpdateScheduled(componentName, lane) { { if (enableDebugTracing) { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " forced update %c(" + @@ -3919,7 +3895,7 @@ function logForceUpdateScheduled(componentName, lane) { function logStateUpdateScheduled(componentName, lane, payloadOrAction) { { if (enableDebugTracing) { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " updated state %c(" + @@ -3942,44 +3918,7 @@ function isRootDehydrated(root) { return currentState.isDehydrated; } -// Intentionally not using it yet to derisk the initial implementation, because -// the way we push/pop these values is a bit unusual. If there's a mistake, I'd -// rather the ids be wrong than crash the whole reconciler. - -var forkStack = []; -var forkStackIndex = 0; -var treeForkProvider = null; -var treeForkCount = 0; -var idStack = []; -var idStackIndex = 0; -var treeContextProvider = null; -var treeContextId = 1; -var treeContextOverflow = ""; - -function popTreeContext(workInProgress) { - // Restore the previous values. - // This is a bit more complicated than other context-like modules in Fiber - // because the same Fiber may appear on the stack multiple times and for - // different reasons. We have to keep popping until the work-in-progress is - // no longer at the top of the stack. - while (workInProgress === treeForkProvider) { - treeForkProvider = forkStack[--forkStackIndex]; - forkStack[forkStackIndex] = null; - treeForkCount = forkStack[--forkStackIndex]; - forkStack[forkStackIndex] = null; - } - - while (workInProgress === treeContextProvider) { - treeContextProvider = idStack[--idStackIndex]; - idStack[idStackIndex] = null; - treeContextOverflow = idStack[--idStackIndex]; - idStack[idStackIndex] = null; - treeContextId = idStack[--idStackIndex]; - idStack[idStackIndex] = null; - } -} - -var contextStackCursor$1 = createCursor(null); +var contextStackCursor = createCursor(null); var contextFiberStackCursor = createCursor(null); var rootInstanceStackCursor = createCursor(null); @@ -4013,27 +3952,27 @@ function pushHostContainer(fiber, nextRootInstance) { // whether getRootHostContext() throws somewhere in renderer code or not. // So we push an empty value first. This lets us safely unwind on errors. - push(contextStackCursor$1, null, fiber); + push(contextStackCursor, null, fiber); var nextRootContext = getRootHostContext(); // Now that we know this function doesn't throw, replace it. - pop(contextStackCursor$1, fiber); - push(contextStackCursor$1, nextRootContext, fiber); + pop(contextStackCursor, fiber); + push(contextStackCursor, nextRootContext, fiber); } function popHostContainer(fiber) { - pop(contextStackCursor$1, fiber); + pop(contextStackCursor, fiber); pop(contextFiberStackCursor, fiber); pop(rootInstanceStackCursor, fiber); } function getHostContext() { - var context = requiredContext(contextStackCursor$1.current); + var context = requiredContext(contextStackCursor.current); return context; } function pushHostContext(fiber) { - var context = requiredContext(contextStackCursor$1.current); - var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique. + var context = requiredContext(contextStackCursor.current); + var nextContext = getChildHostContext(); // Don't push this Fiber's context unless it's unique. if (context === nextContext) { return; @@ -4041,7 +3980,7 @@ function pushHostContext(fiber) { // This enables us to pop only Fibers that provide unique contexts. push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor$1, nextContext, fiber); + push(contextStackCursor, nextContext, fiber); } function popHostContext(fiber) { @@ -4051,7 +3990,7 @@ function popHostContext(fiber) { return; } - pop(contextStackCursor$1, fiber); + pop(contextStackCursor, fiber); pop(contextFiberStackCursor, fiber); } @@ -4067,16 +4006,6 @@ function didSuspendOrErrorWhileHydratingDEV() { } } -function reenterHydrationStateFromDehydratedSuspenseInstance( - fiber, - suspenseInstance, - treeContext -) { - { - return false; - } -} - function prepareToHydrateHostInstance(fiber, hostContext) { { throw new Error( @@ -4093,7 +4022,6 @@ function prepareToHydrateHostTextInstance(fiber) { "This error is likely caused by a bug in React. Please file an issue." ); } - var shouldUpdate = hydrateTextInstance(); } function prepareToHydrateHostSuspenseInstance(fiber) { @@ -4179,7 +4107,7 @@ function getConcurrentlyUpdatedLanes() { return concurrentlyUpdatedLanes; } -function enqueueUpdate(fiber, queue, update, lane) { +function enqueueUpdate$1(fiber, queue, update, lane) { // Don't update the `childLanes` on the return path yet. If we already in // the middle of rendering, wait until after it has completed. concurrentQueues[concurrentQueuesIndex++] = fiber; @@ -4201,7 +4129,7 @@ function enqueueUpdate(fiber, queue, update, lane) { function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); return getRootForUpdatedFiber(fiber); } function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { @@ -4211,7 +4139,7 @@ function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { var lane = NoLane; var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); // Usually we can rely on the upcoming render phase to process the concurrent + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); // Usually we can rely on the upcoming render phase to process the concurrent // queue. However, since this is a bail out, we're not scheduling any work // here. So the update we just queued will leak until something else happens // to schedule work (if ever). @@ -4228,11 +4156,11 @@ function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { function enqueueConcurrentClassUpdate(fiber, queue, update, lane) { var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); return getRootForUpdatedFiber(fiber); } function enqueueConcurrentRenderForLane(fiber, lane) { - enqueueUpdate(fiber, null, null, lane); + enqueueUpdate$1(fiber, null, null, lane); return getRootForUpdatedFiber(fiber); } // Calling this function outside this module should only be done for backwards // compatibility and should always be accompanied by a warning. @@ -4340,7 +4268,7 @@ function detectUpdateOnUnmountedFiber(sourceFiber, parent) { if ( alternate === null && - (parent.flags & (Placement | Hydrating)) !== NoFlags + (parent.flags & (Placement | Hydrating)) !== NoFlags$1 ) { warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); } @@ -4404,7 +4332,7 @@ function createUpdate(eventTime, lane) { }; return update; } -function enqueueUpdate$1(fiber, update, lane) { +function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (updateQueue === null) { @@ -4960,9 +4888,6 @@ function shallowEqual(objA, objB) { } function describeFiber(fiber) { - var owner = fiber._debugOwner ? fiber._debugOwner.type : null; - var source = fiber._debugSource; - switch (fiber.tag) { case HostHoistable: case HostSingleton: @@ -5011,7 +4936,7 @@ function getStackByFiberInDevAndProd(workInProgress) { } } -var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; var current = null; var isRendering = false; function getCurrentFiberOwnerNameInDevOrNull() { @@ -5043,14 +4968,14 @@ function getCurrentFiberStackInDev() { function resetCurrentFiber() { { - ReactDebugCurrentFrame$1.getCurrentStack = null; + ReactDebugCurrentFrame.getCurrentStack = null; current = null; isRendering = false; } } function setCurrentFiber(fiber) { { - ReactDebugCurrentFrame$1.getCurrentStack = + ReactDebugCurrentFrame.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; current = fiber; isRendering = false; @@ -7033,7 +6958,7 @@ function findFirstSuspended(row) { // keep track of whether it suspended or not. node.memoizedProps.revealOrder !== undefined ) { - var didSuspend = (node.flags & DidCapture) !== NoFlags; + var didSuspend = (node.flags & DidCapture) !== NoFlags$1; if (didSuspend) { return node; @@ -7063,7 +6988,7 @@ function findFirstSuspended(row) { return null; } -var NoFlags$1 = +var NoFlags = /* */ 0; // Represents whether effect should fire. @@ -7077,7 +7002,7 @@ var Insertion = var Layout = /* */ 4; -var Passive$1 = +var Passive = /* */ 8; @@ -7085,11 +7010,11 @@ var Passive$1 = // This tracks which mutable sources need to be reset after a render. var workInProgressSources = []; -var rendererSigil; +var rendererSigil$1; { // Used to detect multiple renderers using the same mutable source. - rendererSigil = {}; + rendererSigil$1 = {}; } function markSourceAsDirty(mutableSource) { @@ -7122,8 +7047,8 @@ function warnAboutMultipleRenderersDEV(mutableSource) { { { if (mutableSource._currentSecondaryRenderer == null) { - mutableSource._currentSecondaryRenderer = rendererSigil; - } else if (mutableSource._currentSecondaryRenderer !== rendererSigil) { + mutableSource._currentSecondaryRenderer = rendererSigil$1; + } else if (mutableSource._currentSecondaryRenderer !== rendererSigil$1) { error( "Detected multiple renderers concurrently rendering the " + "same mutable source. This is currently unsupported." @@ -7133,7 +7058,7 @@ function warnAboutMultipleRenderersDEV(mutableSource) { } } // Eager reads the version of a mutable source and stores it on the root. -var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; // An error that is thrown (e.g. by `use`) to trigger Suspense. If we +var ReactCurrentActQueue$2 = ReactSharedInternals.ReactCurrentActQueue; // An error that is thrown (e.g. by `use`) to trigger Suspense. If we // detect this is caught by userspace, we'll log a warning in development. var SuspenseException = new Error( @@ -7158,8 +7083,8 @@ function isThenableResolved(thenable) { function noop() {} function trackUsedThenable(thenableState, thenable, index) { - if (ReactCurrentActQueue.current !== null) { - ReactCurrentActQueue.didUsePromise = true; + if (ReactCurrentActQueue$2.current !== null) { + ReactCurrentActQueue$2.didUsePromise = true; } var previous = thenableState[index]; @@ -7291,7 +7216,7 @@ function checkIfUseWrappedInTryCatch() { } var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig; var didWarnAboutMismatchedHooksForComponent; var didWarnUncachedGetSnapshot; var didWarnAboutUseWrappedInTryCatch; @@ -7301,10 +7226,10 @@ var didWarnAboutUseWrappedInTryCatch; didWarnAboutUseWrappedInTryCatch = new Set(); } // These are set right before calling the component. -var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from +var renderLanes$1 = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from // the work-in-progress hook. -var currentlyRenderingFiber = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The +var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The // current hook list is the list that belongs to the current fiber. The // work-in-progress hook list is a new list that will be added to the // work-in-progress fiber. @@ -7385,7 +7310,7 @@ function checkDepsAreArrayDev(deps) { function warnOnHookMismatchInDev(currentHookName) { { - var componentName = getComponentNameFromFiber(currentlyRenderingFiber); + var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1); if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { didWarnAboutMismatchedHooksForComponent.add(componentName); @@ -7493,8 +7418,8 @@ function renderWithHooks( secondArg, nextRenderLanes ) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber = workInProgress; + renderLanes$1 = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; { hookTypesDev = current !== null ? current._debugHookTypes : null; @@ -7609,8 +7534,8 @@ function finishRenderingHooks(current, workInProgress) { // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; - renderLanes = NoLanes; - currentlyRenderingFiber = null; + renderLanes$1 = NoLanes; + currentlyRenderingFiber$1 = null; currentHook = null; workInProgressHook = null; @@ -7779,11 +7704,11 @@ function bailoutHooks(current, workInProgress, lanes) { workInProgress.flags &= ~( MountPassiveDev | MountLayoutDev | - Passive | + Passive$1 | Update ); } else { - workInProgress.flags &= ~(Passive | Update); + workInProgress.flags &= ~(Passive$1 | Update); } current.lanes = removeLanes(current.lanes, lanes); @@ -7809,7 +7734,7 @@ function resetHooksOnUnwind() { // Only reset the updates from the queue if it has a clone. If it does // not have a clone, that means it wasn't processed, and the updates were // scheduled before we entered the render phase. - var hook = currentlyRenderingFiber.memoizedState; + var hook = currentlyRenderingFiber$1.memoizedState; while (hook !== null) { var queue = hook.queue; @@ -7824,8 +7749,8 @@ function resetHooksOnUnwind() { didScheduleRenderPhaseUpdate = false; } - renderLanes = NoLanes; - currentlyRenderingFiber = null; + renderLanes$1 = NoLanes; + currentlyRenderingFiber$1 = null; currentHook = null; workInProgressHook = null; @@ -7851,7 +7776,7 @@ function mountWorkInProgressHook() { if (workInProgressHook === null) { // This is the first hook in the list - currentlyRenderingFiber.memoizedState = workInProgressHook = hook; + currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; } else { // Append to the end of the list workInProgressHook = workInProgressHook.next = hook; @@ -7869,7 +7794,7 @@ function updateWorkInProgressHook() { var nextCurrentHook; if (currentHook === null) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; if (current !== null) { nextCurrentHook = current.memoizedState; @@ -7883,7 +7808,7 @@ function updateWorkInProgressHook() { var nextWorkInProgressHook; if (workInProgressHook === null) { - nextWorkInProgressHook = currentlyRenderingFiber.memoizedState; + nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState; } else { nextWorkInProgressHook = workInProgressHook.next; } @@ -7896,7 +7821,7 @@ function updateWorkInProgressHook() { } else { // Clone from the current hook. if (nextCurrentHook === null) { - var currentFiber = currentlyRenderingFiber.alternate; + var currentFiber = currentlyRenderingFiber$1.alternate; if (currentFiber === null) { // This is the initial render. This branch is reached when the component @@ -7926,7 +7851,7 @@ function updateWorkInProgressHook() { if (workInProgressHook === null) { // This is the first hook in the list. - currentlyRenderingFiber.memoizedState = workInProgressHook = newHook; + currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; } else { // Append to the end of the list. workInProgressHook = workInProgressHook.next = newHook; @@ -7980,14 +7905,14 @@ function use(usable) { function useMemoCache(size) { var memoCache = null; // Fast-path, load memo cache from wip fiber if already prepared - var updateQueue = currentlyRenderingFiber.updateQueue; + var updateQueue = currentlyRenderingFiber$1.updateQueue; if (updateQueue !== null) { memoCache = updateQueue.memoCache; } // Otherwise clone from the current fiber if (memoCache == null) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; if (current !== null) { var currentUpdateQueue = current.updateQueue; @@ -8016,7 +7941,7 @@ function useMemoCache(size) { if (updateQueue === null) { updateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = updateQueue; + currentlyRenderingFiber$1.updateQueue = updateQueue; } updateQueue.memoCache = memoCache; @@ -8070,7 +7995,7 @@ function mountReducer(reducer, initialArg, init) { hook.queue = queue; var dispatch = (queue.dispatch = dispatchReducerAction.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, queue )); return [hook.memoizedState, dispatch]; @@ -8139,7 +8064,7 @@ function updateReducer(reducer, initialArg, init) { var shouldSkipUpdate = isHiddenUpdate ? !isSubsetOfLanes(getWorkInProgressRootRenderLanes(), updateLane) - : !isSubsetOfLanes(renderLanes, updateLane); + : !isSubsetOfLanes(renderLanes$1, updateLane); if (shouldSkipUpdate) { // Priority is insufficient. Skip this update. If this is the first @@ -8162,8 +8087,8 @@ function updateReducer(reducer, initialArg, init) { // TODO: Don't need to accumulate this. Instead, we can remove // renderLanes from the original lanes. - currentlyRenderingFiber.lanes = mergeLanes( - currentlyRenderingFiber.lanes, + currentlyRenderingFiber$1.lanes = mergeLanes( + currentlyRenderingFiber$1.lanes, updateLane ); markSkippedUpdateLanes(updateLane); @@ -8314,7 +8239,7 @@ function readFromUnsubscribedMutableSource(root, source, getSnapshot) { // the source is consistent with the values that we read during the most // recent mutation. isSafeToReadFromSource = isSubsetOfLanes( - renderLanes, + renderLanes$1, root.mutableReadLanes ); @@ -8390,7 +8315,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { var prevGetSnapshot = refs.getSnapshot; var prevSource = memoizedState.source; var prevSubscribe = memoizedState.subscribe; - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; hook.memoizedState = { refs: refs, source: source, @@ -8499,7 +8424,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { }; newQueue.dispatch = setSnapshot = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, newQueue ); stateHook.queue = newQueue; @@ -8530,7 +8455,7 @@ function updateMutableSource(source, getSnapshot, subscribe) { } function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; var hook = mountWorkInProgressHook(); var nextSnapshot; @@ -8565,7 +8490,7 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { ); } - if (!includesBlockingLane(root, renderLanes)) { + if (!includesBlockingLane(root, renderLanes$1)) { pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } } // Read the current snapshot from the store on every render. This breaks the @@ -8587,9 +8512,9 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { // TODO: We can move this to the passive phase once we add a pre-commit // consistency check. See the next comment. - fiber.flags |= Passive; + fiber.flags |= Passive$1; pushEffect( - HasEffect | Passive$1, + HasEffect | Passive, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null @@ -8598,7 +8523,7 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { } function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; var hook = updateWorkInProgressHook(); // Read the current snapshot from the store on every render. This breaks the // normal rules of React, and only works because store updates are // always synchronous. @@ -8642,9 +8567,9 @@ function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { (workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) ) { - fiber.flags |= Passive; + fiber.flags |= Passive$1; pushEffect( - HasEffect | Passive$1, + HasEffect | Passive, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null @@ -8660,7 +8585,7 @@ function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { ); } - if (!includesBlockingLane(root, renderLanes)) { + if (!includesBlockingLane(root, renderLanes$1)) { pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } } @@ -8674,11 +8599,11 @@ function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { getSnapshot: getSnapshot, value: renderedSnapshot }; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.stores = [check]; } else { var stores = componentUpdateQueue.stores; @@ -8757,7 +8682,7 @@ function mountState(initialState) { hook.queue = queue; var dispatch = (queue.dispatch = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, queue )); return [hook.memoizedState, dispatch]; @@ -8780,11 +8705,11 @@ function pushEffect(tag, create, destroy, deps) { // Circular next: null }; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.lastEffect = effect.next = effect; } else { var lastEffect = componentUpdateQueue.lastEffect; @@ -8837,7 +8762,7 @@ function mountRef(initialValue) { if (!hasBeenInitialized) { didCheckForLazyInit = true; lazyInitGetterStack = getCallerStackFrame(); - } else if (currentlyRenderingFiber !== null && !didWarnAboutRead) { + } else if (currentlyRenderingFiber$1 !== null && !didWarnAboutRead) { if ( lazyInitGetterStack === null || lazyInitGetterStack !== getCallerStackFrame() @@ -8849,7 +8774,8 @@ function mountRef(initialValue) { "Reading from a ref during render is only safe if:\n" + "1. The ref value has not been updated, or\n" + "2. The ref holds a lazily-initialized value that is only set once.\n", - getComponentNameFromFiber(currentlyRenderingFiber) || "Unknown" + getComponentNameFromFiber(currentlyRenderingFiber$1) || + "Unknown" ); } } @@ -8858,7 +8784,7 @@ function mountRef(initialValue) { }, set current(value) { - if (currentlyRenderingFiber !== null && !didWarnAboutWrite) { + if (currentlyRenderingFiber$1 !== null && !didWarnAboutWrite) { if (hasBeenInitialized || !didCheckForLazyInit) { didWarnAboutWrite = true; @@ -8866,7 +8792,8 @@ function mountRef(initialValue) { "%s: Unsafe write of a mutable value during render.\n\n" + "Writing to a ref during render is only safe if the ref holds " + "a lazily-initialized value that is only set once.\n", - getComponentNameFromFiber(currentlyRenderingFiber) || "Unknown" + getComponentNameFromFiber(currentlyRenderingFiber$1) || + "Unknown" ); } } @@ -8896,7 +8823,7 @@ function updateRef(initialValue) { function mountEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = mountWorkInProgressHook(); var nextDeps = deps === undefined ? null : deps; - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( HasEffect | hookFlags, create, @@ -8924,7 +8851,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { } } - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( HasEffect | hookFlags, create, @@ -8934,29 +8861,29 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { } function mountEffect(create, deps) { - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { mountEffectImpl( - MountPassiveDev | Passive | PassiveStatic, - Passive$1, + MountPassiveDev | Passive$1 | PassiveStatic, + Passive, create, deps ); } else { - mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps); + mountEffectImpl(Passive$1 | PassiveStatic, Passive, create, deps); } } function updateEffect(create, deps) { - updateEffectImpl(Passive, Passive$1, create, deps); + updateEffectImpl(Passive$1, Passive, create, deps); } function useEffectEventImpl(payload) { - currentlyRenderingFiber.flags |= Update; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + currentlyRenderingFiber$1.flags |= Update; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.events = [payload]; } else { var events = componentUpdateQueue.events; @@ -9017,7 +8944,7 @@ function updateInsertionEffect(create, deps) { function mountLayoutEffect(create, deps) { var fiberFlags = Update | LayoutStatic; - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { fiberFlags |= MountLayoutDev; } @@ -9073,7 +9000,7 @@ function mountImperativeHandle(ref, create, deps) { deps !== null && deps !== undefined ? deps.concat([ref]) : null; var fiberFlags = Update | LayoutStatic; - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { fiberFlags |= MountLayoutDev; } @@ -9206,7 +9133,7 @@ function rerenderDeferredValue(value) { } function updateDeferredValueImpl(hook, prevValue, value) { - var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes); + var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes$1); if (shouldDeferValue) { // This is an urgent update. If the value has changed, keep using the @@ -9214,8 +9141,8 @@ function updateDeferredValueImpl(hook, prevValue, value) { if (!objectIs(value, prevValue)) { // Schedule a deferred render var deferredLane = claimNextTransitionLane(); - currentlyRenderingFiber.lanes = mergeLanes( - currentlyRenderingFiber.lanes, + currentlyRenderingFiber$1.lanes = mergeLanes( + currentlyRenderingFiber$1.lanes, deferredLane ); markSkippedUpdateLanes(deferredLane); // Set this to true to indicate that the rendered value is inconsistent @@ -9253,19 +9180,19 @@ function startTransition(setPending, callback, options) { higherEventPriority(previousPriority, ContinuousEventPriority) ); setPending(true); - var prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = {}; - var currentTransition = ReactCurrentBatchConfig.transition; + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = {}; + var currentTransition = ReactCurrentBatchConfig$2.transition; if (enableTransitionTracing) { if (options !== undefined && options.name !== undefined) { - ReactCurrentBatchConfig.transition.name = options.name; - ReactCurrentBatchConfig.transition.startTime = now(); + ReactCurrentBatchConfig$2.transition.name = options.name; + ReactCurrentBatchConfig$2.transition.startTime = now$1(); } } { - ReactCurrentBatchConfig.transition._updatedFibers = new Set(); + ReactCurrentBatchConfig$2.transition._updatedFibers = new Set(); } try { @@ -9273,7 +9200,7 @@ function startTransition(setPending, callback, options) { callback(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig.transition = prevTransition; + ReactCurrentBatchConfig$2.transition = prevTransition; { if (prevTransition === null && currentTransition._updatedFibers) { @@ -9353,7 +9280,7 @@ function mountRefresh() { var hook = mountWorkInProgressHook(); var refresh = (hook.memoizedState = refreshCache.bind( null, - currentlyRenderingFiber + currentlyRenderingFiber$1 )); return refresh; } @@ -9377,7 +9304,7 @@ function refreshCache(fiber, seedKey, seedValue) { var lane = requestUpdateLane(provider); var eventTime = requestEventTime(); var refreshUpdate = createUpdate(eventTime, lane); - var root = enqueueUpdate$1(provider, refreshUpdate, lane); + var root = enqueueUpdate(provider, refreshUpdate, lane); if (root !== null) { scheduleUpdateOnFiber(root, provider, lane, eventTime); @@ -9530,8 +9457,8 @@ function dispatchSetState(fiber, queue, action) { function isRenderPhaseUpdate(fiber) { var alternate = fiber.alternate; return ( - fiber === currentlyRenderingFiber || - (alternate !== null && alternate === currentlyRenderingFiber) + fiber === currentlyRenderingFiber$1 || + (alternate !== null && alternate === currentlyRenderingFiber$1) ); } @@ -10683,7 +10610,7 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null; } } -var now$1 = Scheduler.unstable_now; +var now = Scheduler.unstable_now; var commitTime = 0; var layoutEffectStartTime = -1; var profilerStartTime = -1; @@ -10737,14 +10664,14 @@ function getCommitTime() { } function recordCommitTime() { - commitTime = now$1(); + commitTime = now(); } function startProfilerTimer(fiber) { - profilerStartTime = now$1(); + profilerStartTime = now(); if (fiber.actualStartTime < 0) { - fiber.actualStartTime = now$1(); + fiber.actualStartTime = now(); } } @@ -10754,7 +10681,7 @@ function stopProfilerTimerIfRunning(fiber) { function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { if (profilerStartTime >= 0) { - var elapsedTime = now$1() - profilerStartTime; + var elapsedTime = now() - profilerStartTime; fiber.actualDuration += elapsedTime; if (overrideBaseTime) { @@ -10767,7 +10694,7 @@ function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { function recordLayoutEffectDuration(fiber) { if (layoutEffectStartTime >= 0) { - var elapsedTime = now$1() - layoutEffectStartTime; + var elapsedTime = now() - layoutEffectStartTime; layoutEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor // Or the root (for the DevTools Profiler to read) @@ -10793,7 +10720,7 @@ function recordLayoutEffectDuration(fiber) { function recordPassiveEffectDuration(fiber) { if (passiveEffectStartTime >= 0) { - var elapsedTime = now$1() - passiveEffectStartTime; + var elapsedTime = now() - passiveEffectStartTime; passiveEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor // Or the root (for the DevTools Profiler to read) @@ -10829,11 +10756,11 @@ function recordPassiveEffectDuration(fiber) { } function startLayoutEffectTimer() { - layoutEffectStartTime = now$1(); + layoutEffectStartTime = now(); } function startPassiveEffectTimer() { - passiveEffectStartTime = now$1(); + passiveEffectStartTime = now(); } function transferActualDuration(fiber) { @@ -11001,7 +10928,7 @@ var classComponentUpdater = { update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -11037,7 +10964,7 @@ var classComponentUpdater = { update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -11073,7 +11000,7 @@ var classComponentUpdater = { update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -12138,11 +12065,6 @@ function logCapturedError(boundary, errorInfo) { // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils. console["error"](combinedMessage); // Don't transform to our wrapper - } else { - // In production, we print the error directly. - // This will include the message, the JS stack, and anything the browser wants to show. - // We pass the error object instead of custom message so that the browser displays the error natively. - console["error"](error); // Don't transform to our wrapper } } catch (e) { // This method must not throw, or React internal state will get messed up. @@ -12337,7 +12259,7 @@ function markSuspenseBoundaryShouldCapture( // prevent a bail out. var update = createUpdate(NoTimestamp, SyncLane); update.tag = ForceUpdate; - enqueueUpdate$1(sourceFiber, update, SyncLane); + enqueueUpdate(sourceFiber, update, SyncLane); } } // The source fiber did not complete. Mark it with Sync priority to // indicate that it still has pending work. @@ -12595,7 +12517,7 @@ function throwException( var instance = workInProgress.stateNode; if ( - (workInProgress.flags & DidCapture) === NoFlags && + (workInProgress.flags & DidCapture) === NoFlags$1 && (typeof ctor.getDerivedStateFromError === "function" || (instance !== null && typeof instance.componentDidCatch === "function" && @@ -13196,7 +13118,7 @@ function updateSimpleMemoComponent( workInProgress, renderLanes ); - } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags$1) { // This is a special case that only exists for legacy mode. // See https://github.com/facebook/react/pull/19216. didReceiveUpdate = true; @@ -13219,7 +13141,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { var nextIsDetached = (workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0; var prevState = current !== null ? current.memoizedState : null; - markRef(current, workInProgress); + markRef$1(current, workInProgress); if ( nextProps.mode === "hidden" || @@ -13227,7 +13149,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextIsDetached ) { // Rendering a hidden tree. - var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags$1; if (didSuspend) { // Something suspended inside a hidden tree @@ -13517,7 +13439,7 @@ function updateTracingMarkerComponent(current, workInProgress, renderLanes) { // boundaries, we need to schedule a passive effect to make sure we call the marker // complete callback. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } else { { @@ -13572,7 +13494,7 @@ function updateProfiler(current, workInProgress, renderLanes) { return workInProgress.child; } -function markRef(current, workInProgress) { +function markRef$1(current, workInProgress) { var ref = workInProgress.ref; if ( @@ -13832,8 +13754,8 @@ function finishClassComponent( renderLanes ) { // Refs should update even if shouldComponentUpdate returns false - markRef(current, workInProgress); - var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags; + markRef$1(current, workInProgress); + var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags$1; if (!shouldUpdate && !didCaptureError) { // Context providers should defer to sCU for rendering @@ -13947,7 +13869,6 @@ function updateHostRoot(current, workInProgress, renderLanes) { cloneUpdateQueue(current, workInProgress); processUpdateQueue(workInProgress, nextProps, null, renderLanes); var nextState = workInProgress.memoizedState; - var root = workInProgress.stateNode; pushRootTransition(workInProgress); if (enableTransitionTracing) { @@ -13978,7 +13899,7 @@ function updateHostRoot(current, workInProgress, renderLanes) { return workInProgress.child; } -function updateHostComponent(current, workInProgress, renderLanes) { +function updateHostComponent$1(current, workInProgress, renderLanes) { pushHostContext(workInProgress); var type = workInProgress.type; @@ -13999,12 +13920,12 @@ function updateHostComponent(current, workInProgress, renderLanes) { workInProgress.flags |= ContentReset; } - markRef(current, workInProgress); + markRef$1(current, workInProgress); reconcileChildren(current, workInProgress, nextChildren, renderLanes); return workInProgress.child; } -function updateHostText(current, workInProgress) { +function updateHostText$1(current, workInProgress) { // immediately after. return null; @@ -14433,7 +14354,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } var showFallback = false; - var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags$1; if (didSuspend || shouldRemainOnFallback(current)) { // Something in this boundary's subtree already suspended. Switch to @@ -15063,16 +14984,10 @@ function updateDehydratedSuspenseComponent( workInProgress.child = current.child; // Register a callback to retry this boundary once the server has sent the result. - var retry = retryDehydratedSuspenseBoundary.bind(null, current); + retryDehydratedSuspenseBoundary.bind(null, current); registerSuspenseInstanceRetry(); return null; } else { - // This is the first attempt. - reenterHydrationStateFromDehydratedSuspenseInstance( - workInProgress, - suspenseInstance, - suspenseState.treeContext - ); var primaryChildren = nextProps.children; var primaryChildFragment = mountSuspensePrimaryChildren( workInProgress, @@ -15437,7 +15352,7 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) { workInProgress.flags |= DidCapture; } else { var didSuspendBefore = - current !== null && (current.flags & DidCapture) !== NoFlags; + current !== null && (current.flags & DidCapture) !== NoFlags$1; if (didSuspendBefore) { // If we previously forced a fallback, we need to schedule work @@ -15845,7 +15760,6 @@ function attemptEarlyBailoutIfNoScheduledUpdate( switch (workInProgress.tag) { case HostRoot: pushHostRootContext(workInProgress); - var root = workInProgress.stateNode; pushRootTransition(workInProgress); if (enableTransitionTracing) { @@ -15965,7 +15879,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( } case SuspenseListComponent: { - var didSuspendBefore = (current.flags & DidCapture) !== NoFlags; + var didSuspendBefore = (current.flags & DidCapture) !== NoFlags$1; var _hasChildWork = includesSomeLane( renderLanes, @@ -16071,7 +15985,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } -function beginWork(current, workInProgress, renderLanes) { +function beginWork$1(current, workInProgress, renderLanes) { { if (workInProgress._debugNeedsRemount && current !== null) { // This will restart the begin phase with a new fiber. @@ -16113,7 +16027,7 @@ function beginWork(current, workInProgress, renderLanes) { if ( !hasScheduledUpdateOrContext && // If this is the second pass of an error or suspense boundary, there // may not be work scheduled on `current`, so we check for this flag. - (workInProgress.flags & DidCapture) === NoFlags + (workInProgress.flags & DidCapture) === NoFlags$1 ) { // No pending updates or context. Bail out now. didReceiveUpdate = false; @@ -16124,7 +16038,7 @@ function beginWork(current, workInProgress, renderLanes) { ); } - if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags$1) { // This is a special case that only exists for legacy mode. // See https://github.com/facebook/react/pull/19216. didReceiveUpdate = true; @@ -16212,10 +16126,10 @@ function beginWork(current, workInProgress, renderLanes) { // eslint-disable-next-line no-fallthrough case HostComponent: - return updateHostComponent(current, workInProgress, renderLanes); + return updateHostComponent$1(current, workInProgress, renderLanes); case HostText: - return updateHostText(); + return updateHostText$1(); case SuspenseComponent: return updateSuspenseComponent(current, workInProgress, renderLanes); @@ -16374,21 +16288,21 @@ var renderer2CursorDEV; renderer2CursorDEV = createCursor(null); } -var rendererSigil$1; +var rendererSigil; { // Use this to detect multiple renderers using the same context - rendererSigil$1 = {}; + rendererSigil = {}; } -var currentlyRenderingFiber$1 = null; +var currentlyRenderingFiber = null; var lastContextDependency = null; var lastFullyObservedContext = null; var isDisallowedContextReadInDEV = false; function resetContextDependencies() { // This is called right before React yields execution, to ensure `readContext` // cannot be called outside the render phase. - currentlyRenderingFiber$1 = null; + currentlyRenderingFiber = null; lastContextDependency = null; lastFullyObservedContext = null; @@ -16417,7 +16331,7 @@ function pushProvider(providerFiber, context, nextValue) { if ( context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && - context._currentRenderer2 !== rendererSigil$1 + context._currentRenderer2 !== rendererSigil ) { error( "Detected multiple renderers concurrently rendering the " + @@ -16425,7 +16339,7 @@ function pushProvider(providerFiber, context, nextValue) { ); } - context._currentRenderer2 = rendererSigil$1; + context._currentRenderer2 = rendererSigil; } } } @@ -16466,7 +16380,7 @@ function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { !isSubsetOfLanes(alternate.childLanes, renderLanes) ) { alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); - } + } else; if (node === propagationRoot) { break; @@ -16829,9 +16743,9 @@ function propagateParentContextChanges( while (parent !== null) { if (!isInsidePropagationBailout) { - if ((parent.flags & NeedsPropagation) !== NoFlags) { + if ((parent.flags & NeedsPropagation) !== NoFlags$1) { isInsidePropagationBailout = true; - } else if ((parent.flags & DidPropagateContext) !== NoFlags) { + } else if ((parent.flags & DidPropagateContext) !== NoFlags$1) { break; } } @@ -16923,7 +16837,7 @@ function checkIfContextChanged(currentDependencies) { return false; } function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber$1 = workInProgress; + currentlyRenderingFiber = workInProgress; lastContextDependency = null; lastFullyObservedContext = null; var dependencies = workInProgress.dependencies; @@ -16971,7 +16885,7 @@ function readContext(context) { }; if (lastContextDependency === null) { - if (currentlyRenderingFiber$1 === null) { + if (currentlyRenderingFiber === null) { throw new Error( "Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + @@ -16981,13 +16895,13 @@ function readContext(context) { } // This is the first dependency for this component. Create a new list. lastContextDependency = contextItem; - currentlyRenderingFiber$1.dependencies = { + currentlyRenderingFiber.dependencies = { lanes: NoLanes, firstContext: contextItem }; if (enableLazyContextPropagation) { - currentlyRenderingFiber$1.flags |= NeedsPropagation; + currentlyRenderingFiber.flags |= NeedsPropagation; } } else { // Append a new context item. @@ -17022,7 +16936,7 @@ var AbortControllerLocal = // use dynamic dispatch for CommonJS interop named imports. var scheduleCallback$1 = Scheduler.unstable_scheduleCallback, - NormalPriority$1 = Scheduler.unstable_NormalPriority; + NormalPriority = Scheduler.unstable_NormalPriority; var CacheContext = { $$typeof: REACT_CONTEXT_TYPE, // We don't use Consumer/Provider for Cache components. So we'll cheat. @@ -17077,7 +16991,7 @@ function releaseCache(cache) { } if (cache.refCount === 0) { - scheduleCallback$1(NormalPriority$1, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } @@ -17432,14 +17346,14 @@ function markUpdate(workInProgress) { workInProgress.flags |= Update; } -function markRef$1(workInProgress) { +function markRef(workInProgress) { workInProgress.flags |= Ref | RefStatic; } var appendAllChildren; var updateHostContainer; -var updateHostComponent$1; -var updateHostText$1; +var updateHostComponent; +var updateHostText; { // Mutation mode @@ -17485,7 +17399,7 @@ var updateHostText$1; // Noop }; - updateHostComponent$1 = function (current, workInProgress, type, newProps) { + updateHostComponent = function (current, workInProgress, type, newProps) { // If we have an alternate, that means this is an update and we need to // schedule a side-effect to do the updates. var oldProps = current.memoizedProps; @@ -17495,12 +17409,7 @@ var updateHostText$1; // we won't touch this node even if children changed. return; } // If we get updated because one of our children updated, we don't - // have newProps so we'll have to reuse them. - // TODO: Split the update API as separate for the props vs. children. - // Even better would be if children weren't special cased at all tho. - - var instance = workInProgress.stateNode; - var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host + getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host // component is hitting the resume path. Figure out why. Possibly // related to `hidden`. @@ -17514,7 +17423,7 @@ var updateHostText$1; } }; - updateHostText$1 = function (current, workInProgress, oldText, newText) { + updateHostText = function (current, workInProgress, oldText, newText) { // If the text differs, mark it as an update. All the work in done in commitWork. if (oldText !== newText) { markUpdate(workInProgress); @@ -17597,7 +17506,7 @@ function bubbleProperties(completedWork) { completedWork.alternate !== null && completedWork.alternate.child === completedWork.child; var newChildLanes = NoLanes; - var subtreeFlags = NoFlags; + var subtreeFlags = NoFlags$1; if (!didBailout) { // Bubble up the earliest expiration time. @@ -17744,7 +17653,7 @@ function completeDehydratedSuspenseBoundary( return false; } else { - if ((workInProgress.flags & DidCapture) === NoFlags) { + if ((workInProgress.flags & DidCapture) === NoFlags$1) { // This boundary did not suspend so it's now hydrated and unsuspended. workInProgress.memoizedState = null; } // If nothing suspended, we need to schedule an effect to mark this boundary @@ -17788,11 +17697,6 @@ function completeDehydratedSuspenseBoundary( function completeWork(current, workInProgress, renderLanes) { var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing - // to the current tree provider fiber is just as fast and less error-prone. - // Ideally we would have a special version of the work loop only - // for hydration. - - popTreeContext(workInProgress); switch (workInProgress.tag) { case IndeterminateComponent: @@ -17828,7 +17732,7 @@ function completeWork(current, workInProgress, renderLanes) { // which we do in the passive phase if (transitions !== null) { - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -17843,7 +17747,7 @@ function completeWork(current, workInProgress, renderLanes) { if (cache !== previousCache) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } popCacheProvider(workInProgress); @@ -17879,7 +17783,7 @@ function completeWork(current, workInProgress, renderLanes) { if ( // Check if this is a client root !prevState.isDehydrated || // Check if we reverted to client rendering (e.g. due to an error) - (workInProgress.flags & ForceClientRender) !== NoFlags + (workInProgress.flags & ForceClientRender) !== NoFlags$1 ) { // Schedule an effect to clear this container at the start of the // next commit. This handles the case of React rendering into a @@ -17901,11 +17805,11 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); if (enableTransitionTracing) { - if ((workInProgress.subtreeFlags & Visibility) !== NoFlags) { + if ((workInProgress.subtreeFlags & Visibility) !== NoFlags$1) { // If any of our suspense children toggle visibility, this means that // the pending boundaries array needs to be updated, which we only // do in the passive phase. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -17923,10 +17827,10 @@ function completeWork(current, workInProgress, renderLanes) { var _type = workInProgress.type; if (current !== null && workInProgress.stateNode != null) { - updateHostComponent$1(current, workInProgress, _type, newProps); + updateHostComponent(current, workInProgress, _type, newProps); if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } } else { if (!newProps) { @@ -17941,7 +17845,7 @@ function completeWork(current, workInProgress, renderLanes) { return null; } - var _currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context + getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context // "stack" as the parent. Then append children as we go in beginWork // or completeWork depending on whether we want to add them top->down or // bottom->up. Top->down is faster in IE11. @@ -17957,7 +17861,7 @@ function completeWork(current, workInProgress, renderLanes) { markUpdate(workInProgress); } } else { - var _rootContainerInstance = getRootHostContainer(); + getRootHostContainer(); var instance = createInstance(_type, newProps); appendAllChildren(instance, workInProgress, false, false); @@ -17966,7 +17870,7 @@ function completeWork(current, workInProgress, renderLanes) { if (workInProgress.ref !== null) { // If there is a ref on a host node we need to schedule a callback - markRef$1(workInProgress); + markRef(workInProgress); } } @@ -17981,7 +17885,7 @@ function completeWork(current, workInProgress, renderLanes) { var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need // to schedule a side-effect to do the updates. - updateHostText$1(current, workInProgress, oldText, newText); + updateHostText(current, workInProgress, oldText, newText); } else { if (typeof newText !== "string") { if (workInProgress.stateNode === null) { @@ -17992,9 +17896,9 @@ function completeWork(current, workInProgress, renderLanes) { } // This can happen when we abort work. } - var _rootContainerInstance2 = getRootHostContainer(); + getRootHostContainer(); - var _currentHostContext2 = getHostContext(); + getHostContext(); var _wasHydrated3 = popHydrationState(); @@ -18044,7 +17948,7 @@ function completeWork(current, workInProgress, renderLanes) { } // Continue with the normal Suspense path. } - if ((workInProgress.flags & DidCapture) !== NoFlags) { + if ((workInProgress.flags & DidCapture) !== NoFlags$1) { // Something suspended. Re-render with the fallback children. workInProgress.lanes = renderLanes; // Do not reset the effect list. @@ -18082,7 +17986,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache !== _previousCache) { // Run passive effects to retain/release the cache. - offscreenFiber.flags |= Passive; + offscreenFiber.flags |= Passive$1; } } // If the suspended state of the boundary changes, we need to schedule // a passive effect, which is when we process the transitions @@ -18090,7 +17994,7 @@ function completeWork(current, workInProgress, renderLanes) { if (nextDidTimeout !== prevDidTimeout) { if (enableTransitionTracing) { var _offscreenFiber = workInProgress.child; - _offscreenFiber.flags |= Passive; + _offscreenFiber.flags |= Passive$1; } // If the suspended state of the boundary changes, we need to schedule // an effect to toggle the subtree's visibility. When we switch from // fallback -> primary, the inner Offscreen fiber schedules this effect @@ -18150,10 +18054,6 @@ function completeWork(current, workInProgress, renderLanes) { popHostContainer(workInProgress); updateHostContainer(current, workInProgress); - if (current === null) { - preparePortalMount(workInProgress.stateNode.containerInfo); - } - bubbleProperties(workInProgress); return null; @@ -18188,7 +18088,7 @@ function completeWork(current, workInProgress, renderLanes) { return null; } - var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags$1; var renderedTail = renderState.rendering; if (renderedTail === null) { @@ -18205,7 +18105,7 @@ function completeWork(current, workInProgress, renderLanes) { // findFirstSuspended. var cannotBeSuspended = renderHasNotSuspendedYet() && - (current === null || (current.flags & DidCapture) === NoFlags); + (current === null || (current.flags & DidCapture) === NoFlags$1); if (!cannotBeSuspended) { var row = workInProgress.child; @@ -18239,7 +18139,7 @@ function completeWork(current, workInProgress, renderLanes) { // Reset the effect flags before doing the second pass since that's now invalid. // Reset the child fibers to their original state. - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; resetChildFibers(workInProgress, renderLanes); // Set up the Suspense List Context to force suspense and // immediately rerender the children. @@ -18258,7 +18158,7 @@ function completeWork(current, workInProgress, renderLanes) { } } - if (renderState.tail !== null && now() > getRenderTargetTime()) { + if (renderState.tail !== null && now$1() > getRenderTargetTime()) { // We have already passed our CPU deadline but we still have rows // left in the tail. We'll just give up further attempts to render // the main content and only render fallbacks. @@ -18311,7 +18211,7 @@ function completeWork(current, workInProgress, renderLanes) { // The time it took to render last row is greater than the remaining // time we have to render. So rendering one more row would likely // exceed it. - now() * 2 - renderState.renderingStartTime > + now$1() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane ) { @@ -18360,7 +18260,7 @@ function completeWork(current, workInProgress, renderLanes) { var next = renderState.tail; renderState.rendering = next; renderState.tail = next.sibling; - renderState.renderingStartTime = now(); + renderState.renderingStartTime = now$1(); next.sibling = null; // Restore the context. // TODO: We can probably just avoid popping it instead and only // setting it the first time we go from not suspended to suspended. @@ -18395,7 +18295,7 @@ function completeWork(current, workInProgress, renderLanes) { prepareScopeUpdate(); if (workInProgress.ref !== null) { - markRef$1(workInProgress); + markRef(workInProgress); markUpdate(workInProgress); } } else { @@ -18404,7 +18304,7 @@ function completeWork(current, workInProgress, renderLanes) { } if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } } @@ -18488,7 +18388,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache2 !== _previousCache2) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -18508,7 +18408,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache3 !== _previousCache3) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } popCacheProvider(workInProgress); @@ -18542,12 +18442,6 @@ function completeWork(current, workInProgress, renderLanes) { } function unwindWork(current, workInProgress, renderLanes) { - // Note: This intentionally doesn't check if we're hydrating because comparing - // to the current tree provider fiber is just as fast and less error-prone. - // Ideally we would have a special version of the work loop only - // for hydration. - popTreeContext(workInProgress); - switch (workInProgress.tag) { case ClassComponent: { var Component = workInProgress.type; @@ -18572,10 +18466,7 @@ function unwindWork(current, workInProgress, renderLanes) { } case HostRoot: { - var root = workInProgress.stateNode; - { - var cache = workInProgress.memoizedState.cache; popCacheProvider(workInProgress); } @@ -18590,8 +18481,8 @@ function unwindWork(current, workInProgress, renderLanes) { var _flags = workInProgress.flags; if ( - (_flags & ShouldCapture) !== NoFlags && - (_flags & DidCapture) === NoFlags + (_flags & ShouldCapture) !== NoFlags$1 && + (_flags & DidCapture) === NoFlags$1 ) { // There was an error during render that wasn't captured by a suspense // boundary. Do a second pass on the root to unmount the children. @@ -18676,7 +18567,6 @@ function unwindWork(current, workInProgress, renderLanes) { case CacheComponent: { - var _cache = workInProgress.memoizedState.cache; popCacheProvider(workInProgress); } @@ -18697,12 +18587,6 @@ function unwindWork(current, workInProgress, renderLanes) { } function unwindInterruptedWork(current, interruptedWork, renderLanes) { - // Note: This intentionally doesn't check if we're hydrating because comparing - // to the current tree provider fiber is just as fast and less error-prone. - // Ideally we would have a special version of the work loop only - // for hydration. - popTreeContext(interruptedWork); - switch (interruptedWork.tag) { case ClassComponent: { var childContextTypes = interruptedWork.type.childContextTypes; @@ -18715,10 +18599,7 @@ function unwindInterruptedWork(current, interruptedWork, renderLanes) { } case HostRoot: { - var root = interruptedWork.stateNode; - { - var cache = interruptedWork.memoizedState.cache; popCacheProvider(interruptedWork); } @@ -18766,7 +18647,6 @@ function unwindInterruptedWork(current, interruptedWork, renderLanes) { case CacheComponent: { - var _cache2 = interruptedWork.memoizedState.cache; popCacheProvider(interruptedWork); } @@ -18998,7 +18878,7 @@ function safelyCallDestroy(current, nearestMountedAncestor, destroy) { var focusedInstanceHandle = null; var shouldFireAfterActiveInstanceBlur = false; function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = prepareForCommit(root.containerInfo); + focusedInstanceHandle = prepareForCommit(); nextEffect = firstChild; commitBeforeMutationEffects_begin(); // We no longer need to track the active instance fiber @@ -19028,7 +18908,7 @@ function commitBeforeMutationEffects_begin() { var child = fiber.child; if ( - (fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && + (fiber.subtreeFlags & BeforeMutationMask) !== NoFlags$1 && child !== null ) { child.return = fiber; @@ -19081,14 +18961,14 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } } - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { setCurrentFiber(finishedWork); } switch (finishedWork.tag) { case FunctionComponent: { { - if ((flags & Update) !== NoFlags) { + if ((flags & Update) !== NoFlags$1) { commitUseEffectEventMount(finishedWork); } } @@ -19102,7 +18982,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } case ClassComponent: { - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { if (current !== null) { var prevProps = current.memoizedProps; var prevState = current.memoizedState; @@ -19168,13 +19048,6 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } case HostRoot: { - if ((flags & Snapshot) !== NoFlags) { - { - var root = finishedWork.stateNode; - clearContainer(root.containerInfo); - } - } - break; } @@ -19188,7 +19061,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { break; default: { - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { throw new Error( "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue." @@ -19197,7 +19070,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } } - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { resetCurrentFiber(); } } @@ -19234,15 +19107,15 @@ function commitHookEffectListUnmount( if (destroy !== undefined) { if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectUnmountStarted(finishedWork); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectUnmountStarted(finishedWork); } } { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(true); } } @@ -19250,15 +19123,15 @@ function commitHookEffectListUnmount( safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(false); } } if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectUnmountStopped(); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectUnmountStopped(); } } @@ -19281,9 +19154,9 @@ function commitHookEffectListMount(flags, finishedWork) { do { if ((effect.tag & flags) === flags) { if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectMountStarted(finishedWork); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectMountStarted(finishedWork); } } // Mount @@ -19291,7 +19164,7 @@ function commitHookEffectListMount(flags, finishedWork) { var create = effect.create; { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(true); } } @@ -19299,15 +19172,15 @@ function commitHookEffectListMount(flags, finishedWork) { effect.destroy = create(); { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(false); } } if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectMountStopped(); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectMountStopped(); } } @@ -19318,9 +19191,9 @@ function commitHookEffectListMount(flags, finishedWork) { if (destroy !== undefined && typeof destroy !== "function") { var hookName = void 0; - if ((effect.tag & Layout) !== NoFlags) { + if ((effect.tag & Layout) !== NoFlags$1) { hookName = "useLayoutEffect"; - } else if ((effect.tag & Insertion) !== NoFlags) { + } else if ((effect.tag & Insertion) !== NoFlags$1) { hookName = "useInsertionEffect"; } else { hookName = "useEffect"; @@ -19385,7 +19258,7 @@ function commitUseEffectEventMount(finishedWork) { function commitPassiveEffectDurations(finishedRoot, finishedWork) { if (getExecutionContext() & CommitContext) { // Only Profilers with work in their subtree will have an Update effect scheduled. - if ((finishedWork.flags & Update) !== NoFlags) { + if ((finishedWork.flags & Update) !== NoFlags$1) { switch (finishedWork.tag) { case Profiler: { var passiveEffectDuration = @@ -19837,7 +19710,7 @@ function commitLayoutEffectOnFiber( // effects that were unmounted when the Offscreen subtree was // hidden. So this is a superset of the normal commitLayoutEffects. var includeWorkInProgressEffects = - (finishedWork.subtreeFlags & LayoutMask) !== NoFlags; + (finishedWork.subtreeFlags & LayoutMask) !== NoFlags$1; recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, @@ -20308,13 +20181,6 @@ function detachFiberAfterEffects(fiber) { fiber.child = null; fiber.deletions = null; fiber.sibling = null; // The `stateNode` is cyclical because on host nodes it points to the host - // tree, which has its own pointers to children, parents, and siblings. - // The other host nodes also point back to fibers, so we should detach that - // one, too. - - if (fiber.tag === HostComponent) { - var hostInstance = fiber.stateNode; - } fiber.stateNode = null; @@ -20661,12 +20527,9 @@ function commitDeletionEffectsOnFiber( { if (hostParent !== null) { if (hostParentIsContainer) { - clearSuspenseBoundaryFromContainer( - hostParent, - deletedFiber.stateNode - ); + clearSuspenseBoundaryFromContainer(); } else { - clearSuspenseBoundary(hostParent, deletedFiber.stateNode); + clearSuspenseBoundary(); } } } @@ -20713,13 +20576,13 @@ function commitDeletionEffectsOnFiber( tag = _effect.tag; if (destroy !== undefined) { - if ((tag & Insertion) !== NoFlags$1) { + if ((tag & Insertion) !== NoFlags) { safelyCallDestroy( deletedFiber, nearestMountedAncestor, destroy ); - } else if ((tag & Layout) !== NoFlags$1) { + } else if ((tag & Layout) !== NoFlags) { if (enableSchedulingProfiler) { markComponentLayoutEffectUnmountStarted(deletedFiber); } @@ -20906,7 +20769,7 @@ function detachOffscreenInstance(instance) { ); } - if ((instance._pendingVisibility & OffscreenDetached) !== NoFlags) { + if ((instance._pendingVisibility & OffscreenDetached) !== NoFlags$1) { // The instance is already detached, this is a noop. return; } // TODO: There is an opportunity to optimise this by not entering commit phase @@ -20928,7 +20791,7 @@ function attachOffscreenInstance(instance) { ); } - if ((instance._pendingVisibility & OffscreenDetached) === NoFlags) { + if ((instance._pendingVisibility & OffscreenDetached) === NoFlags$1) { // The instance is already attached, this is a noop. return; } @@ -21385,7 +21248,6 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { } if (flags & Update) { - var scopeInstance = finishedWork.stateNode; prepareScopeUpdate(); } } @@ -21678,7 +21540,7 @@ function recursivelyTraverseReappearLayoutEffects( // node was reused. var childShouldIncludeWorkInProgressEffects = includeWorkInProgressEffects && - (parentFiber.subtreeFlags & LayoutMask) !== NoFlags; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) + (parentFiber.subtreeFlags & LayoutMask) !== NoFlags$1; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) var prevDebugFiber = getCurrentFiber(); var child = parentFiber.child; @@ -21925,8 +21787,8 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { - commitHookPassiveMountEffects(finishedWork, Passive$1 | HasEffect); + if (flags & Passive$1) { + commitHookPassiveMountEffects(finishedWork, Passive | HasEffect); } break; @@ -21940,7 +21802,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { { var previousCache = null; @@ -22004,7 +21866,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { var current = finishedWork.alternate; var instance = finishedWork.stateNode; commitOffscreenPassiveMountEffects(current, finishedWork, instance); @@ -22069,7 +21931,7 @@ function commitPassiveMountOnFiber( // the initial render. _instance3._visibility |= OffscreenPassiveEffectsConnected; var includeWorkInProgressEffects = - (finishedWork.subtreeFlags & PassiveMask) !== NoFlags; + (finishedWork.subtreeFlags & PassiveMask) !== NoFlags$1; recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -22080,7 +21942,7 @@ function commitPassiveMountOnFiber( } } - if (flags & Passive) { + if (flags & Passive$1) { var _current = finishedWork.alternate; commitOffscreenPassiveMountEffects(_current, finishedWork, _instance3); } @@ -22096,7 +21958,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current2 = finishedWork.alternate; commitCachePassiveMountEffect(_current2, finishedWork); @@ -22114,7 +21976,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { commitTracingMarkerPassiveMountEffect(finishedWork); } @@ -22147,7 +22009,7 @@ function recursivelyTraverseReconnectPassiveEffects( // node was reused. var childShouldIncludeWorkInProgressEffects = includeWorkInProgressEffects && - (parentFiber.subtreeFlags & PassiveMask) !== NoFlags; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) + (parentFiber.subtreeFlags & PassiveMask) !== NoFlags$1; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) var prevDebugFiber = getCurrentFiber(); var child = parentFiber.child; @@ -22189,7 +22051,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); // TODO: Check for PassiveStatic flag - commitHookPassiveMountEffects(finishedWork, Passive$1); + commitHookPassiveMountEffects(finishedWork, Passive); break; } // Unlike commitPassiveMountOnFiber, we don't need to handle HostRoot @@ -22209,7 +22071,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var current = finishedWork.alternate; var instance = finishedWork.stateNode; @@ -22277,7 +22139,7 @@ function reconnectPassiveEffects( ); } - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current3 = finishedWork.alternate; commitOffscreenPassiveMountEffects(_current3, finishedWork, _instance4); @@ -22295,7 +22157,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current4 = finishedWork.alternate; commitCachePassiveMountEffect(_current4, finishedWork); @@ -22314,7 +22176,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { commitTracingMarkerPassiveMountEffect(finishedWork); } @@ -22375,7 +22237,7 @@ function commitAtomicPassiveEffects( case OffscreenComponent: { recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var current = finishedWork.alternate; var instance = finishedWork.stateNode; @@ -22388,7 +22250,7 @@ function commitAtomicPassiveEffects( case CacheComponent: { recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current5 = finishedWork.alternate; commitCachePassiveMountEffect(_current5, finishedWork); @@ -22468,7 +22330,7 @@ function recursivelyTraversePassiveUnmountEffects(parentFiber) { // before the children effects have fired. var deletions = parentFiber.deletions; - if ((parentFiber.flags & ChildDeletion) !== NoFlags) { + if ((parentFiber.flags & ChildDeletion) !== NoFlags$1) { if (deletions !== null) { for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i]; // TODO: Convert this to use recursion @@ -22506,11 +22368,11 @@ function commitPassiveUnmountOnFiber(finishedWork) { case SimpleMemoComponent: { recursivelyTraversePassiveUnmountEffects(finishedWork); - if (finishedWork.flags & Passive) { + if (finishedWork.flags & Passive$1) { commitHookPassiveUnmountEffects( finishedWork, finishedWork.return, - Passive$1 | HasEffect + Passive | HasEffect ); } @@ -22554,7 +22416,7 @@ function recursivelyTraverseDisconnectPassiveEffects(parentFiber) { // before the children effects have fired. var deletions = parentFiber.deletions; - if ((parentFiber.flags & ChildDeletion) !== NoFlags) { + if ((parentFiber.flags & ChildDeletion) !== NoFlags$1) { if (deletions !== null) { for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i]; // TODO: Convert this to use recursion @@ -22592,7 +22454,7 @@ function disconnectPassiveEffect(finishedWork) { commitHookPassiveUnmountEffects( finishedWork, finishedWork.return, - Passive$1 + Passive ); // When disconnecting passive effects, we fire the effects in the same // order as during a deletiong: parent before child @@ -22677,11 +22539,7 @@ function commitPassiveUnmountInsideDeletedTreeOnFiber( case FunctionComponent: case ForwardRef: case SimpleMemoComponent: { - commitHookPassiveUnmountEffects( - current, - nearestMountedAncestor, - Passive$1 - ); + commitHookPassiveUnmountEffects(current, nearestMountedAncestor, Passive); break; } // TODO: run passive unmount effects when unmounting a root. @@ -22844,7 +22702,7 @@ function invokePassiveEffectMountInDEV(fiber) { case ForwardRef: case SimpleMemoComponent: { try { - commitHookEffectListMount(Passive$1 | HasEffect, fiber); + commitHookEffectListMount(Passive | HasEffect, fiber); } catch (error) { captureCommitPhaseError(fiber, fiber.return, error); } @@ -22894,11 +22752,7 @@ function invokePassiveEffectUnmountInDEV(fiber) { case ForwardRef: case SimpleMemoComponent: { try { - commitHookEffectListUnmount( - Passive$1 | HasEffect, - fiber, - fiber.return - ); + commitHookEffectListUnmount(Passive | HasEffect, fiber, fiber.return); } catch (error) { captureCommitPhaseError(fiber, fiber.return, error); } @@ -22929,19 +22783,13 @@ var DefaultCacheDispatcher = { getCacheForType: getCacheForType }; -var COMPONENT_TYPE = 0; -var HAS_PSEUDO_CLASS_TYPE = 1; -var ROLE_TYPE = 2; -var TEST_NAME_TYPE = 3; -var TEXT_TYPE = 4; - if (typeof Symbol === "function" && Symbol.for) { var symbolFor = Symbol.for; - COMPONENT_TYPE = symbolFor("selector.component"); - HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"); - ROLE_TYPE = symbolFor("selector.role"); - TEST_NAME_TYPE = symbolFor("selector.test_id"); - TEXT_TYPE = symbolFor("selector.text"); + symbolFor("selector.component"); + symbolFor("selector.has_pseudo_class"); + symbolFor("selector.role"); + symbolFor("selector.test_id"); + symbolFor("selector.text"); } var ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue; @@ -22951,10 +22799,10 @@ function isLegacyActEnvironment(fiber) { // act environment whenever `jest` is defined, but you can still turn off // spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly // to false. - var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global - typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name] - ? IS_REACT_ACT_ENVIRONMENT - : undefined; // $FlowFixMe - Flow doesn't know about jest + // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name] + ? IS_REACT_ACT_ENVIRONMENT + : undefined; // $FlowFixMe - Flow doesn't know about jest return warnsIfNotActing; } } @@ -22981,12 +22829,12 @@ function isConcurrentActEnvironment() { } var ceil = Math.ceil; -var PossiblyWeakMap$2 = typeof WeakMap === "function" ? WeakMap : Map; -var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, +var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, - ReactCurrentActQueue$2 = ReactSharedInternals.ReactCurrentActQueue; + ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; var NoContext = /* */ 0; @@ -23039,7 +22887,7 @@ var workInProgressRootDidAttachPingListener = false; // A contextual version of // Most things in the work loop should deal with workInProgressRootRenderLanes. // Most things in begin/complete phases should deal with renderLanes. -var renderLanes$1 = NoLanes; // Whether to root completed, errored, suspended, etc. +var renderLanes = NoLanes; // Whether to root completed, errored, suspended, etc. var workInProgressRootExitStatus = RootInProgress; // A fatal error, if one is thrown @@ -23217,7 +23065,7 @@ function addTransitionCompleteCallbackToPendingTransition(transition) { } function resetRenderTimer() { - workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS; + workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; } function getRenderTargetTime() { @@ -23259,7 +23107,7 @@ function getWorkInProgressRootRenderLanes() { function requestEventTime() { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { // We're inside React, so it's fine to read the actual time. - return now(); + return now$1(); } // We're not inside React, so we may be in the middle of a browser event. if (currentEventTime !== NoTimestamp) { @@ -23267,7 +23115,7 @@ function requestEventTime() { return currentEventTime; } // This is the first update since React yielded. Compute a new start time. - currentEventTime = now(); + currentEventTime = now$1(); return currentEventTime; } function requestUpdateLane(fiber) { @@ -23296,8 +23144,8 @@ function requestUpdateLane(fiber) { var isTransition = requestCurrentTransition() !== NoTransition; if (isTransition) { - if (ReactCurrentBatchConfig$2.transition !== null) { - var transition = ReactCurrentBatchConfig$2.transition; + if (ReactCurrentBatchConfig.transition !== null) { + var transition = ReactCurrentBatchConfig.transition; if (!transition._updatedFibers) { transition._updatedFibers = new Set(); @@ -23375,7 +23223,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { // The incoming update might unblock the current render. Interrupt the // current attempt and restart from the top. prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } // Mark that the root has a pending update. markRootUpdated(root, lane, eventTime); @@ -23428,11 +23276,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { } if (enableTransitionTracing) { - var transition = ReactCurrentBatchConfig$2.transition; + var transition = ReactCurrentBatchConfig.transition; if (transition !== null && transition.name != null) { if (transition.startTime === -1) { - transition.startTime = now(); + transition.startTime = now$1(); } addTransitionToLanesMap(root, transition, lane); @@ -23462,7 +23310,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { // effect of interrupting the current render and switching to the update. // TODO: Make sure this doesn't override pings that happen while we've // already started rendering. - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } } @@ -23472,7 +23320,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. - !ReactCurrentActQueue$2.isBatchingLegacy + !ReactCurrentActQueue.isBatchingLegacy ) { // Flush the synchronous work now, unless we're already working or inside // a batch. This is intentionally inside scheduleUpdateOnFiber instead of @@ -23514,7 +23362,7 @@ function ensureRootIsScheduled(root, currentTime) { if (nextLanes === NoLanes) { // Special case: There's nothing to work on. if (existingCallbackNode !== null) { - cancelCallback$1(existingCallbackNode); + cancelCallback(existingCallbackNode); } root.callbackNode = null; @@ -23531,7 +23379,7 @@ function ensureRootIsScheduled(root, currentTime) { // Scheduler task, rather than an `act` task, cancel it and re-scheduled // on the `act` queue. !( - ReactCurrentActQueue$2.current !== null && + ReactCurrentActQueue.current !== null && existingCallbackNode !== fakeActCallbackNode ) ) { @@ -23554,7 +23402,7 @@ function ensureRootIsScheduled(root, currentTime) { if (existingCallbackNode != null) { // Cancel the existing callback. We'll schedule a new one below. - cancelCallback$1(existingCallbackNode); + cancelCallback(existingCallbackNode); } // Schedule a new callback. var newCallbackNode; @@ -23563,8 +23411,8 @@ function ensureRootIsScheduled(root, currentTime) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { - if (ReactCurrentActQueue$2.isBatchingLegacy !== null) { - ReactCurrentActQueue$2.didScheduleLegacyUpdate = true; + if (ReactCurrentActQueue.isBatchingLegacy !== null) { + ReactCurrentActQueue.didScheduleLegacyUpdate = true; } scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)); @@ -23574,7 +23422,7 @@ function ensureRootIsScheduled(root, currentTime) { { // Flush the queue in an Immediate task. - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); + scheduleCallback(ImmediatePriority, flushSyncCallbacks); } newCallbackNode = null; @@ -23591,7 +23439,7 @@ function ensureRootIsScheduled(root, currentTime) { break; case DefaultEventPriority: - schedulerPriorityLevel = NormalPriority; + schedulerPriorityLevel = NormalPriority$1; break; case IdleEventPriority: @@ -23599,11 +23447,11 @@ function ensureRootIsScheduled(root, currentTime) { break; default: - schedulerPriorityLevel = NormalPriority; + schedulerPriorityLevel = NormalPriority$1; break; } - newCallbackNode = scheduleCallback$2( + newCallbackNode = scheduleCallback( schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root) ); @@ -23691,8 +23539,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (exitStatus === RootFatalErrored) { var fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw fatalError; } @@ -23700,7 +23548,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { // The render unwound without completing the tree. This happens in special // cases where need to exit the current render without producing a // consistent tree or committing. - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); } else { // The render completed. // Check if this render may have yielded to a concurrent event, and if so, @@ -23741,8 +23589,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (exitStatus === RootFatalErrored) { var _fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw _fatalError; } // FIXME: Need to check for RootDidNotComplete again. The factoring here // isn't ideal. @@ -23755,7 +23603,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } } - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if (root.callbackNode === originalCallbackNode) { // The task node scheduled for this root is the same one that's @@ -23808,7 +23656,7 @@ function recoverFromConcurrentError( rootWorkInProgress.flags |= ForceClientRender; { - errorHydratingContainer(root.containerInfo); + errorHydratingContainer(); } } @@ -23889,7 +23737,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { } case RootSuspended: { - markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we + markRootSuspended(root, lanes); // We have an acceptable loading state. We need to figure out if we // should immediately commit it or wait a bit. if ( @@ -23899,7 +23747,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { // This render only included retries, no updates. Throttle committing // retries so that we don't show too many loading states too quickly. var msUntilTimeout = - globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time. + globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$1(); // Don't bother with a very short suspense time. if (msUntilTimeout > 10) { var nextLanes = getNextLanes(root, NoLanes); @@ -23933,7 +23781,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { } case RootSuspendedWithDelay: { - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if (includesOnlyTransitions(lanes)) { // This is a transition, so we should exit without committing a @@ -23951,7 +23799,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { // Consider removing. var mostRecentEventTime = getMostRecentEventTime(root, lanes); var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now() - eventTimeMs; + var timeElapsedMs = now$1() - eventTimeMs; var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. @@ -24057,7 +23905,7 @@ function isRenderConsistentWithExternalStores(finishedWork) { return true; } -function markRootSuspended$1(root, suspendedLanes) { +function markRootSuspended(root, suspendedLanes) { // When suspending, we should always exclude lanes that were pinged or (more // rarely, since we try to avoid it) updated during the render phase. // TODO: Lol maybe there's a better way to factor this besides this @@ -24067,7 +23915,7 @@ function markRootSuspended$1(root, suspendedLanes) { suspendedLanes, workInProgressRootInterleavedUpdatedLanes ); - markRootSuspended(root, suspendedLanes); + markRootSuspended$1(root, suspendedLanes); } // This is the entry point for synchronous tasks that don't go // through Scheduler @@ -24085,7 +23933,7 @@ function performSyncWorkOnRoot(root) { if (!includesSyncLane(lanes)) { // There's no remaining sync work left. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return null; } @@ -24115,8 +23963,8 @@ function performSyncWorkOnRoot(root) { if (exitStatus === RootFatalErrored) { var fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw fatalError; } @@ -24124,8 +23972,8 @@ function performSyncWorkOnRoot(root) { // The render unwound without completing the tree. This happens in special // cases where need to exit the current render without producing a // consistent tree or committing. - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); return null; } // We now have a consistent tree. Because this is a sync render, we // will commit it even if something suspended. @@ -24140,7 +23988,7 @@ function performSyncWorkOnRoot(root) { ); // Before exiting, make sure there's a callback scheduled for the next // pending level. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return null; } function getExecutionContext() { @@ -24164,11 +24012,11 @@ function flushSync(fn) { var prevExecutionContext = executionContext; executionContext |= BatchedContext; - var prevTransition = ReactCurrentBatchConfig$2.transition; + var prevTransition = ReactCurrentBatchConfig.transition; var previousPriority = getCurrentUpdatePriority(); try { - ReactCurrentBatchConfig$2.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); if (fn) { @@ -24178,7 +24026,7 @@ function flushSync(fn) { } } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$2.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch. // Note that this will happen even if batchedUpdates is higher up // the stack. @@ -24197,10 +24045,10 @@ function isInvalidExecutionContextForEventFunction() { // performance because this function will get inlined regardless function setRenderLanes(subtreeRenderLanes) { - renderLanes$1 = subtreeRenderLanes; + renderLanes = subtreeRenderLanes; } function getRenderLanes() { - return renderLanes$1; + return renderLanes; } function resetWorkInProgressStack() { @@ -24244,7 +24092,7 @@ function prepareFreshStack(root, lanes) { workInProgressRoot = root; var rootWorkInProgress = createWorkInProgress(root.current, null); workInProgress = rootWorkInProgress; - workInProgressRootRenderLanes = renderLanes$1 = lanes; + workInProgressRootRenderLanes = renderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; workInProgressRootDidAttachPingListener = false; @@ -24287,7 +24135,7 @@ function handleThrow(root, thrownValue) { // when React is executing user code. resetHooksAfterThrow(); resetCurrentFiber(); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; if (thrownValue === SuspenseException) { // This is a special type of exception used for Suspense. For historical @@ -24401,8 +24249,8 @@ function shouldAttemptToSuspendUntilDataResolves() { } function pushDispatcher(container) { - var prevDispatcher = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = ContextOnlyDispatcher; if (prevDispatcher === null) { // The React isomorphic package does not include a default dispatcher. @@ -24415,7 +24263,7 @@ function pushDispatcher(container) { } function popDispatcher(prevDispatcher) { - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; } function pushCacheDispatcher() { @@ -24433,7 +24281,7 @@ function popCacheDispatcher(prevCacheDispatcher) { } function markCommitTimeOfFallback() { - globalMostRecentFallbackTime = now(); + globalMostRecentFallbackTime = now$1(); } function markSkippedUpdateLanes(lane) { workInProgressRootSkippedLanes = mergeLanes( @@ -24465,7 +24313,7 @@ function renderDidSuspendDelayIfPossible() { // TODO: Consider unwinding immediately, using the // SuspendedOnHydration mechanism. // $FlowFixMe[incompatible-call] need null check workInProgressRoot - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes); } } function renderDidError(error) { @@ -24492,7 +24340,7 @@ function renderHasNotSuspendedYet() { function renderRootSync(root, lanes) { var prevExecutionContext = executionContext; executionContext |= RenderContext; - var prevDispatcher = pushDispatcher(root.containerInfo); + var prevDispatcher = pushDispatcher(); var prevCacheDispatcher = pushCacheDispatcher(); // If the root or lanes have changed, throw out the existing stack // and prepare a fresh one. Otherwise we'll continue where we left off. @@ -24613,7 +24461,7 @@ function workLoopSync() { function renderRootConcurrent(root, lanes) { var prevExecutionContext = executionContext; executionContext |= RenderContext; - var prevDispatcher = pushDispatcher(root.containerInfo); + var prevDispatcher = pushDispatcher(); var prevCacheDispatcher = pushCacheDispatcher(); // If the root or lanes have changed, throw out the existing stack // and prepare a fresh one. Otherwise we'll continue where we left off. @@ -24686,7 +24534,7 @@ function renderRootConcurrent(root, lanes) { // have added a listener until right here. var onResolution = function () { - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); }; thenable.then(onResolution, onResolution); @@ -24806,10 +24654,10 @@ function performUnitOfWork(unitOfWork) { if ((unitOfWork.mode & ProfileMode) !== NoMode) { startProfilerTimer(unitOfWork); - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true); } else { - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); } resetCurrentFiber(); @@ -24822,7 +24670,7 @@ function performUnitOfWork(unitOfWork) { workInProgress = next; } - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function replaySuspendedUnitOfWork(unitOfWork) { @@ -24895,9 +24743,9 @@ function replaySuspendedUnitOfWork(unitOfWork) { unwindInterruptedWork(current, unitOfWork); unitOfWork = workInProgress = resetWorkInProgress( unitOfWork, - renderLanes$1 + renderLanes ); - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); break; } } @@ -24917,7 +24765,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { workInProgress = next; } - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { @@ -24980,15 +24828,15 @@ function completeUnitOfWork(unitOfWork) { var current = completedWork.alternate; var returnFiber = completedWork.return; // Check if the work completed or if something threw. - if ((completedWork.flags & Incomplete) === NoFlags) { + if ((completedWork.flags & Incomplete) === NoFlags$1) { setCurrentFiber(completedWork); var next = void 0; if ((completedWork.mode & ProfileMode) === NoMode) { - next = completeWork(current, completedWork, renderLanes$1); + next = completeWork(current, completedWork, renderLanes); } else { startProfilerTimer(completedWork); - next = completeWork(current, completedWork, renderLanes$1); // Update render duration assuming we didn't error. + next = completeWork(current, completedWork, renderLanes); // Update render duration assuming we didn't error. stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); } @@ -25035,7 +24883,7 @@ function completeUnitOfWork(unitOfWork) { if (returnFiber !== null) { // Mark the parent fiber as incomplete and clear its subtree flags. returnFiber.flags |= Incomplete; - returnFiber.subtreeFlags = NoFlags; + returnFiber.subtreeFlags = NoFlags$1; returnFiber.deletions = null; } else { // We've unwound all the way to the root. @@ -25068,10 +24916,10 @@ function commitRoot(root, recoverableErrors, transitions) { // TODO: This no longer makes any sense. We already wrap the mutation and // layout phases. Should be able to remove. var previousUpdateLanePriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig$2.transition; + var prevTransition = ReactCurrentBatchConfig.transition; try { - ReactCurrentBatchConfig$2.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); commitRootImpl( root, @@ -25080,7 +24928,7 @@ function commitRoot(root, recoverableErrors, transitions) { previousUpdateLanePriority ); } finally { - ReactCurrentBatchConfig$2.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; setCurrentUpdatePriority(previousUpdateLanePriority); } @@ -25179,8 +25027,8 @@ function commitRootImpl( // They're redundant. if ( - (finishedWork.subtreeFlags & PassiveMask) !== NoFlags || - (finishedWork.flags & PassiveMask) !== NoFlags + (finishedWork.subtreeFlags & PassiveMask) !== NoFlags$1 || + (finishedWork.flags & PassiveMask) !== NoFlags$1 ) { if (!rootDoesHavePassiveEffects) { rootDoesHavePassiveEffects = true; @@ -25192,7 +25040,7 @@ function commitRootImpl( // with setTimeout pendingPassiveTransitions = transitions; - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); // This render triggered passive effects: release the root cache pool // *after* passive effects fire to avoid freeing a cache pool that may // be referenced by a node in the tree (HostRoot, Cache boundary etc) @@ -25209,31 +25057,28 @@ function commitRootImpl( var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== - NoFlags; + NoFlags$1; var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== - NoFlags; + NoFlags$1; if (subtreeHasEffects || rootHasEffect) { - var prevTransition = ReactCurrentBatchConfig$2.transition; - ReactCurrentBatchConfig$2.transition = null; + var prevTransition = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = null; var previousPriority = getCurrentUpdatePriority(); setCurrentUpdatePriority(DiscreteEventPriority); var prevExecutionContext = executionContext; executionContext |= CommitContext; // Reset this to null before calling lifecycles - ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass + ReactCurrentOwner.current = null; // The commit phase is broken into several sub-phases. We do a separate pass // of the effect list for each phase: all mutation effects come before all // layout effects, and so on. // The first phase a "before mutation" phase. We use this phase to read the // state of the host tree right before we mutate it. This is where // getSnapshotBeforeUpdate is called. - var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects( - root, - finishedWork - ); + commitBeforeMutationEffects(root, finishedWork); { // Mark the current commit time to be shared by all Profilers in this @@ -25248,8 +25093,6 @@ function commitRootImpl( } // The next phase is the mutation phase, where we mutate the host tree. commitMutationEffects(root, finishedWork, lanes); - - resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after // the mutation phase, so that the previous tree is still current during // componentWillUnmount, but before the layout phase, so that the finished // work is current during componentDidMount/Update. @@ -25289,7 +25132,7 @@ function commitRootImpl( executionContext = prevExecutionContext; // Reset the priority to the previous non-sync value. setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$2.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; } else { // No effects. root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were @@ -25352,7 +25195,7 @@ function commitRootImpl( } // additional work on this root is scheduled. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if (recoverableErrors !== null) { // There were errors during this render, but recovered from them without @@ -25417,19 +25260,6 @@ function commitRootImpl( markCommitStopped(); } - if (enableTransitionTracing) { - // We process transitions during passive effects. However, passive effects can be - // processed synchronously during the commit phase as well as asynchronously after - // paint. At the end of the commit phase, we schedule a callback that will be called - // after the next paint. If the transitions have already been processed (passive - // effect phase happened synchronously), we will schedule a callback to process - // the transitions. However, if we don't have any pending transition callbacks, this - // means that the transitions have yet to be processed (passive effects processed after paint) - // so we will store the end time of paint so that we can process the transitions - // and then call the callback via the correct end time. - var prevRootTransitionCallbacks = root.transitionCallbacks; - } - return null; } @@ -25491,16 +25321,16 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = NoLanes; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); var priority = lowerEventPriority(DefaultEventPriority, renderPriority); - var prevTransition = ReactCurrentBatchConfig$2.transition; + var prevTransition = ReactCurrentBatchConfig.transition; var previousPriority = getCurrentUpdatePriority(); try { - ReactCurrentBatchConfig$2.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(priority); return flushPassiveEffectsImpl(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$2.transition = prevTransition; // Once passive effects have run for the tree - giving components a + ReactCurrentBatchConfig.transition = prevTransition; // Once passive effects have run for the tree - giving components a // chance to retain cache instances they use - release the pooled // cache at the root (if there is one) @@ -25516,7 +25346,7 @@ function enqueuePendingPassiveProfilerEffect(fiber) { if (!rootDoesHavePassiveEffects) { rootDoesHavePassiveEffects = true; - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; }); @@ -25600,7 +25430,7 @@ function flushPassiveEffectsImpl() { ) { currentPendingTransitionCallbacks = null; currentEndTime = null; - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, prevEndTime, @@ -25665,7 +25495,7 @@ var onUncaughtError = prepareToThrowUncaughtError; function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { var errorInfo = createCapturedValueAtFiber(error, sourceFiber); var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane); - var root = enqueueUpdate$1(rootFiber, update, SyncLane); + var root = enqueueUpdate(rootFiber, update, SyncLane); var eventTime = requestEventTime(); if (root !== null) { @@ -25710,7 +25540,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) { ) { var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber); var update = createClassErrorUpdate(fiber, errorInfo, SyncLane); - var root = enqueueUpdate$1(fiber, update, SyncLane); + var root = enqueueUpdate(fiber, update, SyncLane); var eventTime = requestEventTime(); if (root !== null) { @@ -25758,7 +25588,7 @@ function attachPingListener(root, wakeable, lanes) { var threadIDs; if (pingCache === null) { - pingCache = root.pingCache = new PossiblyWeakMap$2(); + pingCache = root.pingCache = new PossiblyWeakMap(); threadIDs = new Set(); pingCache.set(wakeable, threadIDs); } else { @@ -25815,7 +25645,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { workInProgressRootExitStatus === RootSuspendedWithDelay || (workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && - now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) + now$1() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) ) { // Force a restart from the root by unwinding the stack. Unless this is // being called from the render phase, because that would cause a crash. @@ -26005,11 +25835,11 @@ function invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) { if ( current !== subtreeRoot && current.child != null && - primarySubtreeFlag !== NoFlags + primarySubtreeFlag !== NoFlags$1 ) { current = current.child; } else { - if ((current.flags & fiberFlags) !== NoFlags) { + if ((current.flags & fiberFlags) !== NoFlags$1) { invokeEffectFn(current); } @@ -26082,12 +25912,12 @@ function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { } } } -var beginWork$1; +var beginWork; if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { var dummyFiber = null; - beginWork$1 = function (current, unitOfWork, lanes) { + beginWork = function (current, unitOfWork, lanes) { // If a component throws an error, we replay it again in a synchronously // dispatched event, so that the debugger will treat it as an uncaught // error See ReactErrorUtils for more information. @@ -26099,7 +25929,7 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { ); try { - return beginWork(current, unitOfWork, lanes); + return beginWork$1(current, unitOfWork, lanes); } catch (originalError) { if ( didSuspendOrErrorWhileHydratingDEV() || @@ -26126,7 +25956,14 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { startProfilerTimer(unitOfWork); } // Run beginWork again. - invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes); + invokeGuardedCallback( + null, + beginWork$1, + null, + current, + unitOfWork, + lanes + ); if (hasCaughtError()) { var replayError = clearCaughtError(); @@ -26149,7 +25986,7 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { } }; } else { - beginWork$1 = beginWork; + beginWork = beginWork$1; } var didWarnAboutUpdateInRender = false; @@ -26222,32 +26059,32 @@ function restorePendingUpdaters(root, lanes) { } var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot] -function scheduleCallback$2(priorityLevel, callback) { +function scheduleCallback(priorityLevel, callback) { { // If we're currently inside an `act` scope, bypass Scheduler and push to // the `act` queue instead. - var actQueue = ReactCurrentActQueue$2.current; + var actQueue = ReactCurrentActQueue.current; if (actQueue !== null) { actQueue.push(callback); return fakeActCallbackNode; } else { - return scheduleCallback(priorityLevel, callback); + return scheduleCallback$2(priorityLevel, callback); } } } -function cancelCallback$1(callbackNode) { +function cancelCallback(callbackNode) { if (callbackNode === fakeActCallbackNode) { return; } // In production, always call Scheduler. This function will be stripped out. - return cancelCallback(callbackNode); + return cancelCallback$1(callbackNode); } function shouldForceFlushFallbacksInDEV() { // Never force flush in production. This function should get stripped out. - return ReactCurrentActQueue$2.current !== null; + return ReactCurrentActQueue.current !== null; } function warnIfUpdatesNotWrappedWithActDEV(fiber) { @@ -26281,7 +26118,7 @@ function warnIfUpdatesNotWrappedWithActDEV(fiber) { } } - if (ReactCurrentActQueue$2.current === null) { + if (ReactCurrentActQueue.current === null) { var previousFiber = current; try { @@ -26316,7 +26153,7 @@ function warnIfSuspenseResolutionNotWrappedWithActDEV(root) { if ( root.tag !== LegacyRoot && isConcurrentActEnvironment() && - ReactCurrentActQueue$2.current === null + ReactCurrentActQueue.current === null ) { error( "A suspended resource finished loading inside a test, but the event " + @@ -26822,8 +26659,8 @@ function FiberNode(tag, pendingProps, key, mode) { this.dependencies = null; this.mode = mode; // Effects - this.flags = NoFlags; - this.subtreeFlags = NoFlags; + this.flags = NoFlags$1; + this.subtreeFlags = NoFlags$1; this.deletions = null; this.lanes = NoLanes; this.childLanes = NoLanes; @@ -26885,7 +26722,7 @@ var createFiber = function (tag, pendingProps, key, mode) { return new FiberNode(tag, pendingProps, key, mode); }; -function shouldConstruct$1(Component) { +function shouldConstruct(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } @@ -26893,13 +26730,13 @@ function shouldConstruct$1(Component) { function isSimpleFunctionComponent(type) { return ( typeof type === "function" && - !shouldConstruct$1(type) && + !shouldConstruct(type) && type.defaultProps === undefined ); } function resolveLazyComponentTag(Component) { if (typeof Component === "function") { - return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent; + return shouldConstruct(Component) ? ClassComponent : FunctionComponent; } else if (Component !== undefined && Component !== null) { var $$typeof = Component.$$typeof; @@ -26949,9 +26786,9 @@ function createWorkInProgress(current, pendingProps) { workInProgress.type = current.type; // We already have an alternate. // Reset the effect tag. - workInProgress.flags = NoFlags; // The effects are no longer valid. + workInProgress.flags = NoFlags$1; // The effects are no longer valid. - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.deletions = null; { @@ -27034,7 +26871,7 @@ function resetWorkInProgress(workInProgress, renderLanes) { workInProgress.childLanes = NoLanes; workInProgress.lanes = renderLanes; workInProgress.child = null; - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.memoizedProps = null; workInProgress.memoizedState = null; workInProgress.updateQueue = null; @@ -27052,7 +26889,7 @@ function resetWorkInProgress(workInProgress, renderLanes) { workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.deletions = null; workInProgress.memoizedProps = current.memoizedProps; workInProgress.memoizedState = current.memoizedState; @@ -27128,7 +26965,7 @@ function createFiberFromTypeAndProps( var resolvedType = type; if (typeof type === "function") { - if (shouldConstruct$1(type)) { + if (shouldConstruct(type)) { fiberTag = ClassComponent; { @@ -27740,7 +27577,7 @@ function updateContainer(element, container, parentComponent, callback) { update.callback = callback; } - var root = enqueueUpdate$1(current$1, update, lane); + var root = enqueueUpdate(current$1, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, current$1, lane, eventTime); diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 1580c26a58..0e93c0f694 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-modern-bc38a3dfa-20230220"; +var ReactVersion = "18.3.0-www-modern-6b6d0617e-20230220"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -165,17 +165,8 @@ var ReactSharedInternals = // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); -var disableInputAttributeSyncing = - dynamicFeatureFlags.disableInputAttributeSyncing, - enableTrustedTypesIntegration = - dynamicFeatureFlags.enableTrustedTypesIntegration, - disableSchedulerTimeoutBasedOnReactExpirationTime = - dynamicFeatureFlags.disableSchedulerTimeoutBasedOnReactExpirationTime, - replayFailedUnitOfWorkWithInvokeGuardedCallback = +var replayFailedUnitOfWorkWithInvokeGuardedCallback = dynamicFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback, - enableFilterEmptyStringAttributesDOM = - dynamicFeatureFlags.enableFilterEmptyStringAttributesDOM, - enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, deferRenderPhaseUpdateToNextBatch = dynamicFeatureFlags.deferRenderPhaseUpdateToNextBatch, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -189,11 +180,8 @@ var disableInputAttributeSyncing = dynamicFeatureFlags.enableLazyContextPropagation, enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates, enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane, - enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay = - dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableCustomElementPropertySupport = - dynamicFeatureFlags.enableCustomElementPropertySupport; // On WWW, true is used for a new modern build. + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing; +// On WWW, true is used for a new modern build. var enableProfilerTimer = true; var enableProfilerCommitHooks = true; var enableProfilerNestedUpdatePhase = true; @@ -279,7 +267,7 @@ function getIteratorFn(maybeIterable) { return null; } -function getWrappedName(outerType, innerType, wrapperName) { +function getWrappedName$1(outerType, innerType, wrapperName) { var displayName = outerType.displayName; if (displayName) { @@ -292,7 +280,7 @@ function getWrappedName(outerType, innerType, wrapperName) { : wrapperName; } // Keep in sync with react-reconciler/getComponentNameFromFiber -function getContextName(type) { +function getContextName$1(type) { return type.displayName || "Context"; } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead. @@ -354,14 +342,14 @@ function getComponentNameFromType(type) { switch (type.$$typeof) { case REACT_CONTEXT_TYPE: var context = type; - return getContextName(context) + ".Consumer"; + return getContextName$1(context) + ".Consumer"; case REACT_PROVIDER_TYPE: var provider = type; - return getContextName(provider._context) + ".Provider"; + return getContextName$1(provider._context) + ".Provider"; case REACT_FORWARD_REF_TYPE: - return getWrappedName(type, type.render, "ForwardRef"); + return getWrappedName$1(type, type.render, "ForwardRef"); case REACT_MEMO_TYPE: var outerName = type.displayName || null; @@ -396,7 +384,7 @@ function getComponentNameFromType(type) { return null; } -function getWrappedName$1(outerType, innerType, wrapperName) { +function getWrappedName(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ""; return ( outerType.displayName || @@ -404,7 +392,7 @@ function getWrappedName$1(outerType, innerType, wrapperName) { ); } // Keep in sync with shared/getComponentNameFromType -function getContextName$1(type) { +function getContextName(type) { return type.displayName || "Context"; } @@ -418,17 +406,17 @@ function getComponentNameFromFiber(fiber) { case ContextConsumer: var context = type; - return getContextName$1(context) + ".Consumer"; + return getContextName(context) + ".Consumer"; case ContextProvider: var provider = type; - return getContextName$1(provider._context) + ".Provider"; + return getContextName(provider._context) + ".Provider"; case DehydratedFragment: return "DehydratedFragment"; case ForwardRef: - return getWrappedName$1(type, type.render, "ForwardRef"); + return getWrappedName(type, type.render, "ForwardRef"); case Fragment: return "Fragment"; @@ -503,7 +491,7 @@ function getComponentNameFromFiber(fiber) { return null; } -var NoFlags = +var NoFlags$1 = /* */ 0; var PerformedWork = @@ -544,7 +532,7 @@ var Ref = var Snapshot = /* */ 1024; -var Passive = +var Passive$1 = /* */ 2048; /* Used by Hydrating: 0b000000000000001000000000000; */ @@ -556,7 +544,7 @@ var StoreConsistency = /* */ 16384; var LifecycleEffectMask = - Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit) + Passive$1 | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit) var HostEffectMask = /* */ @@ -624,13 +612,13 @@ var MutationMask = Visibility; var LayoutMask = Update | Callback | Ref | Visibility; // TODO: Split into PassiveMountMask and PassiveUnmountMask -var PassiveMask = Passive | Visibility | ChildDeletion; // Union of tags that don't get reset on clones. +var PassiveMask = Passive$1 | Visibility | ChildDeletion; // Union of tags that don't get reset on clones. // This allows certain concepts to persist without recalculating them, // e.g. whether a subtree contains passive effects or portals. var StaticMask = LayoutStatic | PassiveStatic | RefStatic; -var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; +var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner; function getNearestMountedFiber(fiber) { var node = fiber; var nearestMounted = fiber; @@ -643,7 +631,7 @@ function getNearestMountedFiber(fiber) { do { node = nextNode; - if ((node.flags & (Placement | Hydrating)) !== NoFlags) { + if ((node.flags & (Placement | Hydrating)) !== NoFlags$1) { // This is an insertion or in-progress hydration. The nearest possible // mounted fiber is the parent but we need to continue to figure out // if that one is still mounted. @@ -669,7 +657,7 @@ function getNearestMountedFiber(fiber) { } function isMounted(component) { { - var owner = ReactCurrentOwner.current; + var owner = ReactCurrentOwner$2.current; if (owner !== null && owner.tag === ClassComponent) { var ownerFiber = owner; @@ -954,14 +942,14 @@ function childrenAsString(children) { } // This module only exists as an ESM wrapper around the external CommonJS -var scheduleCallback = Scheduler.unstable_scheduleCallback; -var cancelCallback = Scheduler.unstable_cancelCallback; +var scheduleCallback$2 = Scheduler.unstable_scheduleCallback; +var cancelCallback$1 = Scheduler.unstable_cancelCallback; var shouldYield = Scheduler.unstable_shouldYield; var requestPaint = Scheduler.unstable_requestPaint; -var now = Scheduler.unstable_now; +var now$1 = Scheduler.unstable_now; var ImmediatePriority = Scheduler.unstable_ImmediatePriority; var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority; -var NormalPriority = Scheduler.unstable_NormalPriority; +var NormalPriority$1 = Scheduler.unstable_NormalPriority; var IdlePriority = Scheduler.unstable_IdlePriority; // this doesn't actually exist on the scheduler, but it *does* // on scheduler/unstable_mock, which we'll need for internal testing @@ -1162,7 +1150,7 @@ function onCommitRoot(root, eventPriority) { break; case DefaultEventPriority: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; break; case IdleEventPriority: @@ -1170,7 +1158,7 @@ function onCommitRoot(root, eventPriority) { break; default: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; break; } @@ -1180,8 +1168,6 @@ function onCommitRoot(root, eventPriority) { schedulerPriority, didError ); - } else { - injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError); } } catch (err) { { @@ -1551,7 +1537,7 @@ var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. // Based on: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32 -var log = Math.log; +var log$1 = Math.log; var LN2 = Math.LN2; function clz32Fallback(x) { @@ -1561,7 +1547,7 @@ function clz32Fallback(x) { return 32; } - return (31 - ((log(asUint) / LN2) | 0)) | 0; + return (31 - ((log$1(asUint) / LN2) | 0)) | 0; } // If those values are changed that package should be rebuilt and redeployed. @@ -2212,7 +2198,7 @@ function markRootUpdated(root, updateLane, eventTime) { eventTimes[index] = eventTime; } -function markRootSuspended(root, suspendedLanes) { +function markRootSuspended$1(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times. @@ -2524,25 +2510,24 @@ function lanesToEventPriority(lanes) { // Renderers that don't support hydration // can re-export everything from this module. -function shim() { +function shim$1() { throw new Error( "The current renderer does not support hydration. " + "This error is likely caused by a bug in React. " + "Please file an issue." ); } // Hydration (when unsupported) -var isSuspenseInstancePending = shim; -var isSuspenseInstanceFallback = shim; -var getSuspenseInstanceFallbackErrorDetails = shim; -var registerSuspenseInstanceRetry = shim; -var hydrateTextInstance = shim; -var clearSuspenseBoundary = shim; -var clearSuspenseBoundaryFromContainer = shim; -var errorHydratingContainer = shim; +var isSuspenseInstancePending = shim$1; +var isSuspenseInstanceFallback = shim$1; +var getSuspenseInstanceFallbackErrorDetails = shim$1; +var registerSuspenseInstanceRetry = shim$1; +var clearSuspenseBoundary = shim$1; +var clearSuspenseBoundaryFromContainer = shim$1; +var errorHydratingContainer = shim$1; // Renderers that don't support React Scopes // can re-export everything from this module. -function shim$1() { +function shim() { throw new Error( "The current renderer does not support React Scopes. " + "This error is likely caused by a bug in React. " + @@ -2550,8 +2535,8 @@ function shim$1() { ); } // React Scopes (when unsupported) -var prepareScopeUpdate = shim$1; -var getInstanceFromScope = shim$1; +var prepareScopeUpdate = shim; +var getInstanceFromScope = shim; var pooledTransform = new Transform(); var NO_CONTEXT = {}; @@ -2843,9 +2828,6 @@ function prepareForCommit() { function prepareUpdate(domElement, type, oldProps, newProps) { return UPDATE_SIGNAL; } -function resetAfterCommit() { - // Noop -} function resetTextContent(domElement) { // Noop } @@ -2927,17 +2909,11 @@ function unhideInstance(instance, props) { function unhideTextInstance(textInstance, text) { // Noop } -function clearContainer(container) { - // TODO Implement this -} function getInstanceFromNode(node) { throw new Error("Not implemented."); } -function preparePortalMount(portalInstance) { - // noop -} // eslint-disable-next-line no-undef -var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; +var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher; var prefix; function describeBuiltInComponentFrame(name, source, ownerFn) { { @@ -2958,8 +2934,8 @@ var reentry = false; var componentFrameCache; { - var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; - componentFrameCache = new PossiblyWeakMap(); + var PossiblyWeakMap$2 = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap$2(); } function describeNativeComponentFrame(fn, construct) { @@ -2984,10 +2960,10 @@ function describeNativeComponentFrame(fn, construct) { var previousDispatcher; { - previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function + previousDispatcher = ReactCurrentDispatcher$2.current; // Set the dispatcher in DEV because this might be call in the render function // for warnings. - ReactCurrentDispatcher.current = null; + ReactCurrentDispatcher$2.current = null; disableLogs(); } @@ -3101,7 +3077,7 @@ function describeNativeComponentFrame(fn, construct) { reentry = false; { - ReactCurrentDispatcher.current = previousDispatcher; + ReactCurrentDispatcher$2.current = previousDispatcher; reenableLogs(); } @@ -3131,7 +3107,7 @@ function describeFunctionComponentFrame(fn, source, ownerFn) { } } -function shouldConstruct(Component) { +function shouldConstruct$1(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } @@ -3143,7 +3119,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { if (typeof type === "function") { { - return describeNativeComponentFrame(type, shouldConstruct(type)); + return describeNativeComponentFrame(type, shouldConstruct$1(type)); } } @@ -3192,7 +3168,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { var hasOwnProperty = Object.prototype.hasOwnProperty; var loggedTypeFailures = {}; -var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; function setCurrentlyValidatingElement(element) { { @@ -3203,9 +3179,9 @@ function setCurrentlyValidatingElement(element) { element._source, owner ? owner.type : null ); - ReactDebugCurrentFrame.setExtraStackFrame(stack); + ReactDebugCurrentFrame$1.setExtraStackFrame(stack); } else { - ReactDebugCurrentFrame.setExtraStackFrame(null); + ReactDebugCurrentFrame$1.setExtraStackFrame(null); } } } @@ -3360,12 +3336,6 @@ function isContextProvider(type) { } } -function pushTopLevelContextObject(fiber, context, didChange) { - { - return; - } -} - function processChildContext(fiber, type, parentContext) { { return parentContext; @@ -3468,7 +3438,7 @@ function flushSyncCallbacks() { syncQueue = syncQueue.slice(i + 1); } // Resume flushing in the next tick - scheduleCallback(ImmediatePriority, flushSyncCallbacks); + scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); throw error; } finally { setCurrentUpdatePriority(previousUpdatePriority); @@ -3501,7 +3471,7 @@ function group() { if (nativeConsoleLog === null) { nativeConsoleLog = nativeConsole.log; - nativeConsole.log = log$1; + nativeConsole.log = log; } } @@ -3519,7 +3489,7 @@ function groupEnd() { } } -function log$1() { +function log() { if (printedGroupIndex < pendingGroupArgs.length - 1) { for (var i = printedGroupIndex + 1; i < pendingGroupArgs.length; i++) { var groupArgs = pendingGroupArgs[i]; @@ -3575,7 +3545,7 @@ function logComponentSuspended(componentName, wakeable) { if (enableDebugTracing) { var id = getWakeableID(wakeable); var display = wakeable.displayName || wakeable; - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " suspended", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -3584,7 +3554,7 @@ function logComponentSuspended(componentName, wakeable) { ); wakeable.then( function () { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " resolved", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -3593,7 +3563,7 @@ function logComponentSuspended(componentName, wakeable) { ); }, function () { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " rejected", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -3665,7 +3635,7 @@ function logRenderStopped() { function logForceUpdateScheduled(componentName, lane) { { if (enableDebugTracing) { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " forced update %c(" + @@ -3681,7 +3651,7 @@ function logForceUpdateScheduled(componentName, lane) { function logStateUpdateScheduled(componentName, lane, payloadOrAction) { { if (enableDebugTracing) { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " updated state %c(" + @@ -3704,43 +3674,6 @@ function isRootDehydrated(root) { return currentState.isDehydrated; } -// Intentionally not using it yet to derisk the initial implementation, because -// the way we push/pop these values is a bit unusual. If there's a mistake, I'd -// rather the ids be wrong than crash the whole reconciler. - -var forkStack = []; -var forkStackIndex = 0; -var treeForkProvider = null; -var treeForkCount = 0; -var idStack = []; -var idStackIndex = 0; -var treeContextProvider = null; -var treeContextId = 1; -var treeContextOverflow = ""; - -function popTreeContext(workInProgress) { - // Restore the previous values. - // This is a bit more complicated than other context-like modules in Fiber - // because the same Fiber may appear on the stack multiple times and for - // different reasons. We have to keep popping until the work-in-progress is - // no longer at the top of the stack. - while (workInProgress === treeForkProvider) { - treeForkProvider = forkStack[--forkStackIndex]; - forkStack[forkStackIndex] = null; - treeForkCount = forkStack[--forkStackIndex]; - forkStack[forkStackIndex] = null; - } - - while (workInProgress === treeContextProvider) { - treeContextProvider = idStack[--idStackIndex]; - idStack[idStackIndex] = null; - treeContextOverflow = idStack[--idStackIndex]; - idStack[idStackIndex] = null; - treeContextId = idStack[--idStackIndex]; - idStack[idStackIndex] = null; - } -} - var contextStackCursor = createCursor(null); var contextFiberStackCursor = createCursor(null); var rootInstanceStackCursor = createCursor(null); @@ -3795,7 +3728,7 @@ function getHostContext() { function pushHostContext(fiber) { var context = requiredContext(contextStackCursor.current); - var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique. + var nextContext = getChildHostContext(); // Don't push this Fiber's context unless it's unique. if (context === nextContext) { return; @@ -3829,16 +3762,6 @@ function didSuspendOrErrorWhileHydratingDEV() { } } -function reenterHydrationStateFromDehydratedSuspenseInstance( - fiber, - suspenseInstance, - treeContext -) { - { - return false; - } -} - function prepareToHydrateHostInstance(fiber, hostContext) { { throw new Error( @@ -3855,7 +3778,6 @@ function prepareToHydrateHostTextInstance(fiber) { "This error is likely caused by a bug in React. Please file an issue." ); } - var shouldUpdate = hydrateTextInstance(); } function prepareToHydrateHostSuspenseInstance(fiber) { @@ -3941,7 +3863,7 @@ function getConcurrentlyUpdatedLanes() { return concurrentlyUpdatedLanes; } -function enqueueUpdate(fiber, queue, update, lane) { +function enqueueUpdate$1(fiber, queue, update, lane) { // Don't update the `childLanes` on the return path yet. If we already in // the middle of rendering, wait until after it has completed. concurrentQueues[concurrentQueuesIndex++] = fiber; @@ -3963,7 +3885,7 @@ function enqueueUpdate(fiber, queue, update, lane) { function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); return getRootForUpdatedFiber(fiber); } function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { @@ -3973,7 +3895,7 @@ function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { var lane = NoLane; var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); // Usually we can rely on the upcoming render phase to process the concurrent + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); // Usually we can rely on the upcoming render phase to process the concurrent // queue. However, since this is a bail out, we're not scheduling any work // here. So the update we just queued will leak until something else happens // to schedule work (if ever). @@ -3990,11 +3912,11 @@ function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { function enqueueConcurrentClassUpdate(fiber, queue, update, lane) { var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); return getRootForUpdatedFiber(fiber); } function enqueueConcurrentRenderForLane(fiber, lane) { - enqueueUpdate(fiber, null, null, lane); + enqueueUpdate$1(fiber, null, null, lane); return getRootForUpdatedFiber(fiber); } // Calling this function outside this module should only be done for backwards // compatibility and should always be accompanied by a warning. @@ -4102,7 +4024,7 @@ function detectUpdateOnUnmountedFiber(sourceFiber, parent) { if ( alternate === null && - (parent.flags & (Placement | Hydrating)) !== NoFlags + (parent.flags & (Placement | Hydrating)) !== NoFlags$1 ) { warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); } @@ -4166,7 +4088,7 @@ function createUpdate(eventTime, lane) { }; return update; } -function enqueueUpdate$1(fiber, update, lane) { +function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (updateQueue === null) { @@ -4722,9 +4644,6 @@ function shallowEqual(objA, objB) { } function describeFiber(fiber) { - var owner = fiber._debugOwner ? fiber._debugOwner.type : null; - var source = fiber._debugSource; - switch (fiber.tag) { case HostHoistable: case HostSingleton: @@ -4773,7 +4692,7 @@ function getStackByFiberInDevAndProd(workInProgress) { } } -var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; var current = null; var isRendering = false; function getCurrentFiberOwnerNameInDevOrNull() { @@ -4805,14 +4724,14 @@ function getCurrentFiberStackInDev() { function resetCurrentFiber() { { - ReactDebugCurrentFrame$1.getCurrentStack = null; + ReactDebugCurrentFrame.getCurrentStack = null; current = null; isRendering = false; } } function setCurrentFiber(fiber) { { - ReactDebugCurrentFrame$1.getCurrentStack = + ReactDebugCurrentFrame.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; current = fiber; isRendering = false; @@ -6795,7 +6714,7 @@ function findFirstSuspended(row) { // keep track of whether it suspended or not. node.memoizedProps.revealOrder !== undefined ) { - var didSuspend = (node.flags & DidCapture) !== NoFlags; + var didSuspend = (node.flags & DidCapture) !== NoFlags$1; if (didSuspend) { return node; @@ -6825,7 +6744,7 @@ function findFirstSuspended(row) { return null; } -var NoFlags$1 = +var NoFlags = /* */ 0; // Represents whether effect should fire. @@ -6839,7 +6758,7 @@ var Insertion = var Layout = /* */ 4; -var Passive$1 = +var Passive = /* */ 8; @@ -6847,11 +6766,11 @@ var Passive$1 = // This tracks which mutable sources need to be reset after a render. var workInProgressSources = []; -var rendererSigil; +var rendererSigil$1; { // Used to detect multiple renderers using the same mutable source. - rendererSigil = {}; + rendererSigil$1 = {}; } function markSourceAsDirty(mutableSource) { @@ -6884,8 +6803,8 @@ function warnAboutMultipleRenderersDEV(mutableSource) { { { if (mutableSource._currentSecondaryRenderer == null) { - mutableSource._currentSecondaryRenderer = rendererSigil; - } else if (mutableSource._currentSecondaryRenderer !== rendererSigil) { + mutableSource._currentSecondaryRenderer = rendererSigil$1; + } else if (mutableSource._currentSecondaryRenderer !== rendererSigil$1) { error( "Detected multiple renderers concurrently rendering the " + "same mutable source. This is currently unsupported." @@ -6895,7 +6814,7 @@ function warnAboutMultipleRenderersDEV(mutableSource) { } } // Eager reads the version of a mutable source and stores it on the root. -var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; // An error that is thrown (e.g. by `use`) to trigger Suspense. If we +var ReactCurrentActQueue$2 = ReactSharedInternals.ReactCurrentActQueue; // An error that is thrown (e.g. by `use`) to trigger Suspense. If we // detect this is caught by userspace, we'll log a warning in development. var SuspenseException = new Error( @@ -6920,8 +6839,8 @@ function isThenableResolved(thenable) { function noop() {} function trackUsedThenable(thenableState, thenable, index) { - if (ReactCurrentActQueue.current !== null) { - ReactCurrentActQueue.didUsePromise = true; + if (ReactCurrentActQueue$2.current !== null) { + ReactCurrentActQueue$2.didUsePromise = true; } var previous = thenableState[index]; @@ -7053,7 +6972,7 @@ function checkIfUseWrappedInTryCatch() { } var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig; var didWarnAboutMismatchedHooksForComponent; var didWarnUncachedGetSnapshot; var didWarnAboutUseWrappedInTryCatch; @@ -7063,10 +6982,10 @@ var didWarnAboutUseWrappedInTryCatch; didWarnAboutUseWrappedInTryCatch = new Set(); } // These are set right before calling the component. -var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from +var renderLanes$1 = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from // the work-in-progress hook. -var currentlyRenderingFiber = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The +var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The // current hook list is the list that belongs to the current fiber. The // work-in-progress hook list is a new list that will be added to the // work-in-progress fiber. @@ -7147,7 +7066,7 @@ function checkDepsAreArrayDev(deps) { function warnOnHookMismatchInDev(currentHookName) { { - var componentName = getComponentNameFromFiber(currentlyRenderingFiber); + var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1); if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { didWarnAboutMismatchedHooksForComponent.add(componentName); @@ -7255,8 +7174,8 @@ function renderWithHooks( secondArg, nextRenderLanes ) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber = workInProgress; + renderLanes$1 = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; { hookTypesDev = current !== null ? current._debugHookTypes : null; @@ -7371,8 +7290,8 @@ function finishRenderingHooks(current, workInProgress) { // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; - renderLanes = NoLanes; - currentlyRenderingFiber = null; + renderLanes$1 = NoLanes; + currentlyRenderingFiber$1 = null; currentHook = null; workInProgressHook = null; @@ -7541,11 +7460,11 @@ function bailoutHooks(current, workInProgress, lanes) { workInProgress.flags &= ~( MountPassiveDev | MountLayoutDev | - Passive | + Passive$1 | Update ); } else { - workInProgress.flags &= ~(Passive | Update); + workInProgress.flags &= ~(Passive$1 | Update); } current.lanes = removeLanes(current.lanes, lanes); @@ -7571,7 +7490,7 @@ function resetHooksOnUnwind() { // Only reset the updates from the queue if it has a clone. If it does // not have a clone, that means it wasn't processed, and the updates were // scheduled before we entered the render phase. - var hook = currentlyRenderingFiber.memoizedState; + var hook = currentlyRenderingFiber$1.memoizedState; while (hook !== null) { var queue = hook.queue; @@ -7586,8 +7505,8 @@ function resetHooksOnUnwind() { didScheduleRenderPhaseUpdate = false; } - renderLanes = NoLanes; - currentlyRenderingFiber = null; + renderLanes$1 = NoLanes; + currentlyRenderingFiber$1 = null; currentHook = null; workInProgressHook = null; @@ -7613,7 +7532,7 @@ function mountWorkInProgressHook() { if (workInProgressHook === null) { // This is the first hook in the list - currentlyRenderingFiber.memoizedState = workInProgressHook = hook; + currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; } else { // Append to the end of the list workInProgressHook = workInProgressHook.next = hook; @@ -7631,7 +7550,7 @@ function updateWorkInProgressHook() { var nextCurrentHook; if (currentHook === null) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; if (current !== null) { nextCurrentHook = current.memoizedState; @@ -7645,7 +7564,7 @@ function updateWorkInProgressHook() { var nextWorkInProgressHook; if (workInProgressHook === null) { - nextWorkInProgressHook = currentlyRenderingFiber.memoizedState; + nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState; } else { nextWorkInProgressHook = workInProgressHook.next; } @@ -7658,7 +7577,7 @@ function updateWorkInProgressHook() { } else { // Clone from the current hook. if (nextCurrentHook === null) { - var currentFiber = currentlyRenderingFiber.alternate; + var currentFiber = currentlyRenderingFiber$1.alternate; if (currentFiber === null) { // This is the initial render. This branch is reached when the component @@ -7688,7 +7607,7 @@ function updateWorkInProgressHook() { if (workInProgressHook === null) { // This is the first hook in the list. - currentlyRenderingFiber.memoizedState = workInProgressHook = newHook; + currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; } else { // Append to the end of the list. workInProgressHook = workInProgressHook.next = newHook; @@ -7742,14 +7661,14 @@ function use(usable) { function useMemoCache(size) { var memoCache = null; // Fast-path, load memo cache from wip fiber if already prepared - var updateQueue = currentlyRenderingFiber.updateQueue; + var updateQueue = currentlyRenderingFiber$1.updateQueue; if (updateQueue !== null) { memoCache = updateQueue.memoCache; } // Otherwise clone from the current fiber if (memoCache == null) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; if (current !== null) { var currentUpdateQueue = current.updateQueue; @@ -7778,7 +7697,7 @@ function useMemoCache(size) { if (updateQueue === null) { updateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = updateQueue; + currentlyRenderingFiber$1.updateQueue = updateQueue; } updateQueue.memoCache = memoCache; @@ -7832,7 +7751,7 @@ function mountReducer(reducer, initialArg, init) { hook.queue = queue; var dispatch = (queue.dispatch = dispatchReducerAction.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, queue )); return [hook.memoizedState, dispatch]; @@ -7901,7 +7820,7 @@ function updateReducer(reducer, initialArg, init) { var shouldSkipUpdate = isHiddenUpdate ? !isSubsetOfLanes(getWorkInProgressRootRenderLanes(), updateLane) - : !isSubsetOfLanes(renderLanes, updateLane); + : !isSubsetOfLanes(renderLanes$1, updateLane); if (shouldSkipUpdate) { // Priority is insufficient. Skip this update. If this is the first @@ -7924,8 +7843,8 @@ function updateReducer(reducer, initialArg, init) { // TODO: Don't need to accumulate this. Instead, we can remove // renderLanes from the original lanes. - currentlyRenderingFiber.lanes = mergeLanes( - currentlyRenderingFiber.lanes, + currentlyRenderingFiber$1.lanes = mergeLanes( + currentlyRenderingFiber$1.lanes, updateLane ); markSkippedUpdateLanes(updateLane); @@ -8076,7 +7995,7 @@ function readFromUnsubscribedMutableSource(root, source, getSnapshot) { // the source is consistent with the values that we read during the most // recent mutation. isSafeToReadFromSource = isSubsetOfLanes( - renderLanes, + renderLanes$1, root.mutableReadLanes ); @@ -8152,7 +8071,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { var prevGetSnapshot = refs.getSnapshot; var prevSource = memoizedState.source; var prevSubscribe = memoizedState.subscribe; - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; hook.memoizedState = { refs: refs, source: source, @@ -8261,7 +8180,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { }; newQueue.dispatch = setSnapshot = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, newQueue ); stateHook.queue = newQueue; @@ -8292,7 +8211,7 @@ function updateMutableSource(source, getSnapshot, subscribe) { } function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; var hook = mountWorkInProgressHook(); var nextSnapshot; @@ -8327,7 +8246,7 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { ); } - if (!includesBlockingLane(root, renderLanes)) { + if (!includesBlockingLane(root, renderLanes$1)) { pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } } // Read the current snapshot from the store on every render. This breaks the @@ -8349,9 +8268,9 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { // TODO: We can move this to the passive phase once we add a pre-commit // consistency check. See the next comment. - fiber.flags |= Passive; + fiber.flags |= Passive$1; pushEffect( - HasEffect | Passive$1, + HasEffect | Passive, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null @@ -8360,7 +8279,7 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { } function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; var hook = updateWorkInProgressHook(); // Read the current snapshot from the store on every render. This breaks the // normal rules of React, and only works because store updates are // always synchronous. @@ -8404,9 +8323,9 @@ function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { (workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) ) { - fiber.flags |= Passive; + fiber.flags |= Passive$1; pushEffect( - HasEffect | Passive$1, + HasEffect | Passive, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null @@ -8422,7 +8341,7 @@ function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { ); } - if (!includesBlockingLane(root, renderLanes)) { + if (!includesBlockingLane(root, renderLanes$1)) { pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } } @@ -8436,11 +8355,11 @@ function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { getSnapshot: getSnapshot, value: renderedSnapshot }; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.stores = [check]; } else { var stores = componentUpdateQueue.stores; @@ -8519,7 +8438,7 @@ function mountState(initialState) { hook.queue = queue; var dispatch = (queue.dispatch = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, queue )); return [hook.memoizedState, dispatch]; @@ -8542,11 +8461,11 @@ function pushEffect(tag, create, destroy, deps) { // Circular next: null }; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.lastEffect = effect.next = effect; } else { var lastEffect = componentUpdateQueue.lastEffect; @@ -8599,7 +8518,7 @@ function mountRef(initialValue) { if (!hasBeenInitialized) { didCheckForLazyInit = true; lazyInitGetterStack = getCallerStackFrame(); - } else if (currentlyRenderingFiber !== null && !didWarnAboutRead) { + } else if (currentlyRenderingFiber$1 !== null && !didWarnAboutRead) { if ( lazyInitGetterStack === null || lazyInitGetterStack !== getCallerStackFrame() @@ -8611,7 +8530,8 @@ function mountRef(initialValue) { "Reading from a ref during render is only safe if:\n" + "1. The ref value has not been updated, or\n" + "2. The ref holds a lazily-initialized value that is only set once.\n", - getComponentNameFromFiber(currentlyRenderingFiber) || "Unknown" + getComponentNameFromFiber(currentlyRenderingFiber$1) || + "Unknown" ); } } @@ -8620,7 +8540,7 @@ function mountRef(initialValue) { }, set current(value) { - if (currentlyRenderingFiber !== null && !didWarnAboutWrite) { + if (currentlyRenderingFiber$1 !== null && !didWarnAboutWrite) { if (hasBeenInitialized || !didCheckForLazyInit) { didWarnAboutWrite = true; @@ -8628,7 +8548,8 @@ function mountRef(initialValue) { "%s: Unsafe write of a mutable value during render.\n\n" + "Writing to a ref during render is only safe if the ref holds " + "a lazily-initialized value that is only set once.\n", - getComponentNameFromFiber(currentlyRenderingFiber) || "Unknown" + getComponentNameFromFiber(currentlyRenderingFiber$1) || + "Unknown" ); } } @@ -8658,7 +8579,7 @@ function updateRef(initialValue) { function mountEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = mountWorkInProgressHook(); var nextDeps = deps === undefined ? null : deps; - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( HasEffect | hookFlags, create, @@ -8686,7 +8607,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { } } - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( HasEffect | hookFlags, create, @@ -8696,29 +8617,29 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { } function mountEffect(create, deps) { - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { mountEffectImpl( - MountPassiveDev | Passive | PassiveStatic, - Passive$1, + MountPassiveDev | Passive$1 | PassiveStatic, + Passive, create, deps ); } else { - mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps); + mountEffectImpl(Passive$1 | PassiveStatic, Passive, create, deps); } } function updateEffect(create, deps) { - updateEffectImpl(Passive, Passive$1, create, deps); + updateEffectImpl(Passive$1, Passive, create, deps); } function useEffectEventImpl(payload) { - currentlyRenderingFiber.flags |= Update; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + currentlyRenderingFiber$1.flags |= Update; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.events = [payload]; } else { var events = componentUpdateQueue.events; @@ -8779,7 +8700,7 @@ function updateInsertionEffect(create, deps) { function mountLayoutEffect(create, deps) { var fiberFlags = Update | LayoutStatic; - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { fiberFlags |= MountLayoutDev; } @@ -8835,7 +8756,7 @@ function mountImperativeHandle(ref, create, deps) { deps !== null && deps !== undefined ? deps.concat([ref]) : null; var fiberFlags = Update | LayoutStatic; - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { fiberFlags |= MountLayoutDev; } @@ -8968,7 +8889,7 @@ function rerenderDeferredValue(value) { } function updateDeferredValueImpl(hook, prevValue, value) { - var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes); + var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes$1); if (shouldDeferValue) { // This is an urgent update. If the value has changed, keep using the @@ -8976,8 +8897,8 @@ function updateDeferredValueImpl(hook, prevValue, value) { if (!objectIs(value, prevValue)) { // Schedule a deferred render var deferredLane = claimNextTransitionLane(); - currentlyRenderingFiber.lanes = mergeLanes( - currentlyRenderingFiber.lanes, + currentlyRenderingFiber$1.lanes = mergeLanes( + currentlyRenderingFiber$1.lanes, deferredLane ); markSkippedUpdateLanes(deferredLane); // Set this to true to indicate that the rendered value is inconsistent @@ -9015,19 +8936,19 @@ function startTransition(setPending, callback, options) { higherEventPriority(previousPriority, ContinuousEventPriority) ); setPending(true); - var prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = {}; - var currentTransition = ReactCurrentBatchConfig.transition; + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = {}; + var currentTransition = ReactCurrentBatchConfig$2.transition; if (enableTransitionTracing) { if (options !== undefined && options.name !== undefined) { - ReactCurrentBatchConfig.transition.name = options.name; - ReactCurrentBatchConfig.transition.startTime = now(); + ReactCurrentBatchConfig$2.transition.name = options.name; + ReactCurrentBatchConfig$2.transition.startTime = now$1(); } } { - ReactCurrentBatchConfig.transition._updatedFibers = new Set(); + ReactCurrentBatchConfig$2.transition._updatedFibers = new Set(); } try { @@ -9035,7 +8956,7 @@ function startTransition(setPending, callback, options) { callback(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig.transition = prevTransition; + ReactCurrentBatchConfig$2.transition = prevTransition; { if (prevTransition === null && currentTransition._updatedFibers) { @@ -9115,7 +9036,7 @@ function mountRefresh() { var hook = mountWorkInProgressHook(); var refresh = (hook.memoizedState = refreshCache.bind( null, - currentlyRenderingFiber + currentlyRenderingFiber$1 )); return refresh; } @@ -9139,7 +9060,7 @@ function refreshCache(fiber, seedKey, seedValue) { var lane = requestUpdateLane(provider); var eventTime = requestEventTime(); var refreshUpdate = createUpdate(eventTime, lane); - var root = enqueueUpdate$1(provider, refreshUpdate, lane); + var root = enqueueUpdate(provider, refreshUpdate, lane); if (root !== null) { scheduleUpdateOnFiber(root, provider, lane, eventTime); @@ -9292,8 +9213,8 @@ function dispatchSetState(fiber, queue, action) { function isRenderPhaseUpdate(fiber) { var alternate = fiber.alternate; return ( - fiber === currentlyRenderingFiber || - (alternate !== null && alternate === currentlyRenderingFiber) + fiber === currentlyRenderingFiber$1 || + (alternate !== null && alternate === currentlyRenderingFiber$1) ); } @@ -10445,7 +10366,7 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null; } } -var now$1 = Scheduler.unstable_now; +var now = Scheduler.unstable_now; var commitTime = 0; var layoutEffectStartTime = -1; var profilerStartTime = -1; @@ -10499,14 +10420,14 @@ function getCommitTime() { } function recordCommitTime() { - commitTime = now$1(); + commitTime = now(); } function startProfilerTimer(fiber) { - profilerStartTime = now$1(); + profilerStartTime = now(); if (fiber.actualStartTime < 0) { - fiber.actualStartTime = now$1(); + fiber.actualStartTime = now(); } } @@ -10516,7 +10437,7 @@ function stopProfilerTimerIfRunning(fiber) { function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { if (profilerStartTime >= 0) { - var elapsedTime = now$1() - profilerStartTime; + var elapsedTime = now() - profilerStartTime; fiber.actualDuration += elapsedTime; if (overrideBaseTime) { @@ -10529,7 +10450,7 @@ function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { function recordLayoutEffectDuration(fiber) { if (layoutEffectStartTime >= 0) { - var elapsedTime = now$1() - layoutEffectStartTime; + var elapsedTime = now() - layoutEffectStartTime; layoutEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor // Or the root (for the DevTools Profiler to read) @@ -10555,7 +10476,7 @@ function recordLayoutEffectDuration(fiber) { function recordPassiveEffectDuration(fiber) { if (passiveEffectStartTime >= 0) { - var elapsedTime = now$1() - passiveEffectStartTime; + var elapsedTime = now() - passiveEffectStartTime; passiveEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor // Or the root (for the DevTools Profiler to read) @@ -10591,11 +10512,11 @@ function recordPassiveEffectDuration(fiber) { } function startLayoutEffectTimer() { - layoutEffectStartTime = now$1(); + layoutEffectStartTime = now(); } function startPassiveEffectTimer() { - passiveEffectStartTime = now$1(); + passiveEffectStartTime = now(); } function transferActualDuration(fiber) { @@ -10761,7 +10682,7 @@ var classComponentUpdater = { update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -10797,7 +10718,7 @@ var classComponentUpdater = { update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -10833,7 +10754,7 @@ var classComponentUpdater = { update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -11866,11 +11787,6 @@ function logCapturedError(boundary, errorInfo) { // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils. console["error"](combinedMessage); // Don't transform to our wrapper - } else { - // In production, we print the error directly. - // This will include the message, the JS stack, and anything the browser wants to show. - // We pass the error object instead of custom message so that the browser displays the error natively. - console["error"](error); // Don't transform to our wrapper } } catch (e) { // This method must not throw, or React internal state will get messed up. @@ -12065,7 +11981,7 @@ function markSuspenseBoundaryShouldCapture( // prevent a bail out. var update = createUpdate(NoTimestamp, SyncLane); update.tag = ForceUpdate; - enqueueUpdate$1(sourceFiber, update, SyncLane); + enqueueUpdate(sourceFiber, update, SyncLane); } } // The source fiber did not complete. Mark it with Sync priority to // indicate that it still has pending work. @@ -12323,7 +12239,7 @@ function throwException( var instance = workInProgress.stateNode; if ( - (workInProgress.flags & DidCapture) === NoFlags && + (workInProgress.flags & DidCapture) === NoFlags$1 && (typeof ctor.getDerivedStateFromError === "function" || (instance !== null && typeof instance.componentDidCatch === "function" && @@ -12924,7 +12840,7 @@ function updateSimpleMemoComponent( workInProgress, renderLanes ); - } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags$1) { // This is a special case that only exists for legacy mode. // See https://github.com/facebook/react/pull/19216. didReceiveUpdate = true; @@ -12947,7 +12863,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { var nextIsDetached = (workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0; var prevState = current !== null ? current.memoizedState : null; - markRef(current, workInProgress); + markRef$1(current, workInProgress); if ( nextProps.mode === "hidden" || @@ -12955,7 +12871,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextIsDetached ) { // Rendering a hidden tree. - var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags$1; if (didSuspend) { // Something suspended inside a hidden tree @@ -13245,7 +13161,7 @@ function updateTracingMarkerComponent(current, workInProgress, renderLanes) { // boundaries, we need to schedule a passive effect to make sure we call the marker // complete callback. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } else { { @@ -13300,7 +13216,7 @@ function updateProfiler(current, workInProgress, renderLanes) { return workInProgress.child; } -function markRef(current, workInProgress) { +function markRef$1(current, workInProgress) { var ref = workInProgress.ref; if ( @@ -13549,8 +13465,8 @@ function finishClassComponent( renderLanes ) { // Refs should update even if shouldComponentUpdate returns false - markRef(current, workInProgress); - var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags; + markRef$1(current, workInProgress); + var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags$1; if (!shouldUpdate && !didCaptureError) { return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); @@ -13628,17 +13544,6 @@ function finishClassComponent( function pushHostRootContext(workInProgress) { var root = workInProgress.stateNode; - if (root.pendingContext) { - pushTopLevelContextObject( - workInProgress, - root.pendingContext, - root.pendingContext !== root.context - ); - } else if (root.context) { - // Should always be set - pushTopLevelContextObject(workInProgress, root.context); - } - pushHostContainer(workInProgress, root.containerInfo); } @@ -13655,7 +13560,6 @@ function updateHostRoot(current, workInProgress, renderLanes) { cloneUpdateQueue(current, workInProgress); processUpdateQueue(workInProgress, nextProps, null, renderLanes); var nextState = workInProgress.memoizedState; - var root = workInProgress.stateNode; pushRootTransition(workInProgress); if (enableTransitionTracing) { @@ -13686,7 +13590,7 @@ function updateHostRoot(current, workInProgress, renderLanes) { return workInProgress.child; } -function updateHostComponent(current, workInProgress, renderLanes) { +function updateHostComponent$1(current, workInProgress, renderLanes) { pushHostContext(workInProgress); var type = workInProgress.type; @@ -13707,12 +13611,12 @@ function updateHostComponent(current, workInProgress, renderLanes) { workInProgress.flags |= ContentReset; } - markRef(current, workInProgress); + markRef$1(current, workInProgress); reconcileChildren(current, workInProgress, nextChildren, renderLanes); return workInProgress.child; } -function updateHostText(current, workInProgress) { +function updateHostText$1(current, workInProgress) { // immediately after. return null; @@ -14145,7 +14049,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } var showFallback = false; - var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags$1; if (didSuspend || shouldRemainOnFallback(current)) { // Something in this boundary's subtree already suspended. Switch to @@ -14775,16 +14679,10 @@ function updateDehydratedSuspenseComponent( workInProgress.child = current.child; // Register a callback to retry this boundary once the server has sent the result. - var retry = retryDehydratedSuspenseBoundary.bind(null, current); + retryDehydratedSuspenseBoundary.bind(null, current); registerSuspenseInstanceRetry(); return null; } else { - // This is the first attempt. - reenterHydrationStateFromDehydratedSuspenseInstance( - workInProgress, - suspenseInstance, - suspenseState.treeContext - ); var primaryChildren = nextProps.children; var primaryChildFragment = mountSuspensePrimaryChildren( workInProgress, @@ -15149,7 +15047,7 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) { workInProgress.flags |= DidCapture; } else { var didSuspendBefore = - current !== null && (current.flags & DidCapture) !== NoFlags; + current !== null && (current.flags & DidCapture) !== NoFlags$1; if (didSuspendBefore) { // If we previously forced a fallback, we need to schedule work @@ -15557,7 +15455,6 @@ function attemptEarlyBailoutIfNoScheduledUpdate( switch (workInProgress.tag) { case HostRoot: pushHostRootContext(workInProgress); - var root = workInProgress.stateNode; pushRootTransition(workInProgress); if (enableTransitionTracing) { @@ -15576,8 +15473,6 @@ function attemptEarlyBailoutIfNoScheduledUpdate( break; case ClassComponent: { - var Component = workInProgress.type; - break; } @@ -15673,7 +15568,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( } case SuspenseListComponent: { - var didSuspendBefore = (current.flags & DidCapture) !== NoFlags; + var didSuspendBefore = (current.flags & DidCapture) !== NoFlags$1; var _hasChildWork = includesSomeLane( renderLanes, @@ -15779,7 +15674,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } -function beginWork(current, workInProgress, renderLanes) { +function beginWork$1(current, workInProgress, renderLanes) { { if (workInProgress._debugNeedsRemount && current !== null) { // This will restart the begin phase with a new fiber. @@ -15821,7 +15716,7 @@ function beginWork(current, workInProgress, renderLanes) { if ( !hasScheduledUpdateOrContext && // If this is the second pass of an error or suspense boundary, there // may not be work scheduled on `current`, so we check for this flag. - (workInProgress.flags & DidCapture) === NoFlags + (workInProgress.flags & DidCapture) === NoFlags$1 ) { // No pending updates or context. Bail out now. didReceiveUpdate = false; @@ -15832,7 +15727,7 @@ function beginWork(current, workInProgress, renderLanes) { ); } - if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags$1) { // This is a special case that only exists for legacy mode. // See https://github.com/facebook/react/pull/19216. didReceiveUpdate = true; @@ -15920,10 +15815,10 @@ function beginWork(current, workInProgress, renderLanes) { // eslint-disable-next-line no-fallthrough case HostComponent: - return updateHostComponent(current, workInProgress, renderLanes); + return updateHostComponent$1(current, workInProgress, renderLanes); case HostText: - return updateHostText(); + return updateHostText$1(); case SuspenseComponent: return updateSuspenseComponent(current, workInProgress, renderLanes); @@ -16082,21 +15977,21 @@ var renderer2CursorDEV; renderer2CursorDEV = createCursor(null); } -var rendererSigil$1; +var rendererSigil; { // Use this to detect multiple renderers using the same context - rendererSigil$1 = {}; + rendererSigil = {}; } -var currentlyRenderingFiber$1 = null; +var currentlyRenderingFiber = null; var lastContextDependency = null; var lastFullyObservedContext = null; var isDisallowedContextReadInDEV = false; function resetContextDependencies() { // This is called right before React yields execution, to ensure `readContext` // cannot be called outside the render phase. - currentlyRenderingFiber$1 = null; + currentlyRenderingFiber = null; lastContextDependency = null; lastFullyObservedContext = null; @@ -16125,7 +16020,7 @@ function pushProvider(providerFiber, context, nextValue) { if ( context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && - context._currentRenderer2 !== rendererSigil$1 + context._currentRenderer2 !== rendererSigil ) { error( "Detected multiple renderers concurrently rendering the " + @@ -16133,7 +16028,7 @@ function pushProvider(providerFiber, context, nextValue) { ); } - context._currentRenderer2 = rendererSigil$1; + context._currentRenderer2 = rendererSigil; } } } @@ -16174,7 +16069,7 @@ function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { !isSubsetOfLanes(alternate.childLanes, renderLanes) ) { alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); - } + } else; if (node === propagationRoot) { break; @@ -16537,9 +16432,9 @@ function propagateParentContextChanges( while (parent !== null) { if (!isInsidePropagationBailout) { - if ((parent.flags & NeedsPropagation) !== NoFlags) { + if ((parent.flags & NeedsPropagation) !== NoFlags$1) { isInsidePropagationBailout = true; - } else if ((parent.flags & DidPropagateContext) !== NoFlags) { + } else if ((parent.flags & DidPropagateContext) !== NoFlags$1) { break; } } @@ -16631,7 +16526,7 @@ function checkIfContextChanged(currentDependencies) { return false; } function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber$1 = workInProgress; + currentlyRenderingFiber = workInProgress; lastContextDependency = null; lastFullyObservedContext = null; var dependencies = workInProgress.dependencies; @@ -16679,7 +16574,7 @@ function readContext(context) { }; if (lastContextDependency === null) { - if (currentlyRenderingFiber$1 === null) { + if (currentlyRenderingFiber === null) { throw new Error( "Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + @@ -16689,13 +16584,13 @@ function readContext(context) { } // This is the first dependency for this component. Create a new list. lastContextDependency = contextItem; - currentlyRenderingFiber$1.dependencies = { + currentlyRenderingFiber.dependencies = { lanes: NoLanes, firstContext: contextItem }; if (enableLazyContextPropagation) { - currentlyRenderingFiber$1.flags |= NeedsPropagation; + currentlyRenderingFiber.flags |= NeedsPropagation; } } else { // Append a new context item. @@ -16730,7 +16625,7 @@ var AbortControllerLocal = // use dynamic dispatch for CommonJS interop named imports. var scheduleCallback$1 = Scheduler.unstable_scheduleCallback, - NormalPriority$1 = Scheduler.unstable_NormalPriority; + NormalPriority = Scheduler.unstable_NormalPriority; var CacheContext = { $$typeof: REACT_CONTEXT_TYPE, // We don't use Consumer/Provider for Cache components. So we'll cheat. @@ -16785,7 +16680,7 @@ function releaseCache(cache) { } if (cache.refCount === 0) { - scheduleCallback$1(NormalPriority$1, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } @@ -17140,14 +17035,14 @@ function markUpdate(workInProgress) { workInProgress.flags |= Update; } -function markRef$1(workInProgress) { +function markRef(workInProgress) { workInProgress.flags |= Ref | RefStatic; } var appendAllChildren; var updateHostContainer; -var updateHostComponent$1; -var updateHostText$1; +var updateHostComponent; +var updateHostText; { // Mutation mode @@ -17193,7 +17088,7 @@ var updateHostText$1; // Noop }; - updateHostComponent$1 = function (current, workInProgress, type, newProps) { + updateHostComponent = function (current, workInProgress, type, newProps) { // If we have an alternate, that means this is an update and we need to // schedule a side-effect to do the updates. var oldProps = current.memoizedProps; @@ -17203,12 +17098,7 @@ var updateHostText$1; // we won't touch this node even if children changed. return; } // If we get updated because one of our children updated, we don't - // have newProps so we'll have to reuse them. - // TODO: Split the update API as separate for the props vs. children. - // Even better would be if children weren't special cased at all tho. - - var instance = workInProgress.stateNode; - var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host + getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host // component is hitting the resume path. Figure out why. Possibly // related to `hidden`. @@ -17222,7 +17112,7 @@ var updateHostText$1; } }; - updateHostText$1 = function (current, workInProgress, oldText, newText) { + updateHostText = function (current, workInProgress, oldText, newText) { // If the text differs, mark it as an update. All the work in done in commitWork. if (oldText !== newText) { markUpdate(workInProgress); @@ -17305,7 +17195,7 @@ function bubbleProperties(completedWork) { completedWork.alternate !== null && completedWork.alternate.child === completedWork.child; var newChildLanes = NoLanes; - var subtreeFlags = NoFlags; + var subtreeFlags = NoFlags$1; if (!didBailout) { // Bubble up the earliest expiration time. @@ -17452,7 +17342,7 @@ function completeDehydratedSuspenseBoundary( return false; } else { - if ((workInProgress.flags & DidCapture) === NoFlags) { + if ((workInProgress.flags & DidCapture) === NoFlags$1) { // This boundary did not suspend so it's now hydrated and unsuspended. workInProgress.memoizedState = null; } // If nothing suspended, we need to schedule an effect to mark this boundary @@ -17496,11 +17386,6 @@ function completeDehydratedSuspenseBoundary( function completeWork(current, workInProgress, renderLanes) { var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing - // to the current tree provider fiber is just as fast and less error-prone. - // Ideally we would have a special version of the work loop only - // for hydration. - - popTreeContext(workInProgress); switch (workInProgress.tag) { case IndeterminateComponent: @@ -17517,8 +17402,6 @@ function completeWork(current, workInProgress, renderLanes) { return null; case ClassComponent: { - var Component = workInProgress.type; - bubbleProperties(workInProgress); return null; } @@ -17532,7 +17415,7 @@ function completeWork(current, workInProgress, renderLanes) { // which we do in the passive phase if (transitions !== null) { - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -17547,7 +17430,7 @@ function completeWork(current, workInProgress, renderLanes) { if (cache !== previousCache) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } popCacheProvider(workInProgress); @@ -17582,7 +17465,7 @@ function completeWork(current, workInProgress, renderLanes) { if ( // Check if this is a client root !prevState.isDehydrated || // Check if we reverted to client rendering (e.g. due to an error) - (workInProgress.flags & ForceClientRender) !== NoFlags + (workInProgress.flags & ForceClientRender) !== NoFlags$1 ) { // Schedule an effect to clear this container at the start of the // next commit. This handles the case of React rendering into a @@ -17604,11 +17487,11 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); if (enableTransitionTracing) { - if ((workInProgress.subtreeFlags & Visibility) !== NoFlags) { + if ((workInProgress.subtreeFlags & Visibility) !== NoFlags$1) { // If any of our suspense children toggle visibility, this means that // the pending boundaries array needs to be updated, which we only // do in the passive phase. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -17626,10 +17509,10 @@ function completeWork(current, workInProgress, renderLanes) { var _type = workInProgress.type; if (current !== null && workInProgress.stateNode != null) { - updateHostComponent$1(current, workInProgress, _type, newProps); + updateHostComponent(current, workInProgress, _type, newProps); if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } } else { if (!newProps) { @@ -17644,7 +17527,7 @@ function completeWork(current, workInProgress, renderLanes) { return null; } - var _currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context + getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context // "stack" as the parent. Then append children as we go in beginWork // or completeWork depending on whether we want to add them top->down or // bottom->up. Top->down is faster in IE11. @@ -17660,7 +17543,7 @@ function completeWork(current, workInProgress, renderLanes) { markUpdate(workInProgress); } } else { - var _rootContainerInstance = getRootHostContainer(); + getRootHostContainer(); var instance = createInstance(_type, newProps); appendAllChildren(instance, workInProgress, false, false); @@ -17669,7 +17552,7 @@ function completeWork(current, workInProgress, renderLanes) { if (workInProgress.ref !== null) { // If there is a ref on a host node we need to schedule a callback - markRef$1(workInProgress); + markRef(workInProgress); } } @@ -17684,7 +17567,7 @@ function completeWork(current, workInProgress, renderLanes) { var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need // to schedule a side-effect to do the updates. - updateHostText$1(current, workInProgress, oldText, newText); + updateHostText(current, workInProgress, oldText, newText); } else { if (typeof newText !== "string") { if (workInProgress.stateNode === null) { @@ -17695,9 +17578,9 @@ function completeWork(current, workInProgress, renderLanes) { } // This can happen when we abort work. } - var _rootContainerInstance2 = getRootHostContainer(); + getRootHostContainer(); - var _currentHostContext2 = getHostContext(); + getHostContext(); var _wasHydrated3 = popHydrationState(); @@ -17747,7 +17630,7 @@ function completeWork(current, workInProgress, renderLanes) { } // Continue with the normal Suspense path. } - if ((workInProgress.flags & DidCapture) !== NoFlags) { + if ((workInProgress.flags & DidCapture) !== NoFlags$1) { // Something suspended. Re-render with the fallback children. workInProgress.lanes = renderLanes; // Do not reset the effect list. @@ -17785,7 +17668,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache !== _previousCache) { // Run passive effects to retain/release the cache. - offscreenFiber.flags |= Passive; + offscreenFiber.flags |= Passive$1; } } // If the suspended state of the boundary changes, we need to schedule // a passive effect, which is when we process the transitions @@ -17793,7 +17676,7 @@ function completeWork(current, workInProgress, renderLanes) { if (nextDidTimeout !== prevDidTimeout) { if (enableTransitionTracing) { var _offscreenFiber = workInProgress.child; - _offscreenFiber.flags |= Passive; + _offscreenFiber.flags |= Passive$1; } // If the suspended state of the boundary changes, we need to schedule // an effect to toggle the subtree's visibility. When we switch from // fallback -> primary, the inner Offscreen fiber schedules this effect @@ -17853,10 +17736,6 @@ function completeWork(current, workInProgress, renderLanes) { popHostContainer(workInProgress); updateHostContainer(current, workInProgress); - if (current === null) { - preparePortalMount(workInProgress.stateNode.containerInfo); - } - bubbleProperties(workInProgress); return null; @@ -17868,10 +17747,6 @@ function completeWork(current, workInProgress, renderLanes) { return null; case IncompleteClassComponent: { - // Same as class component case. I put it down here so that the tags are - // sequential to ensure this switch is compiled to a jump table. - var _Component = workInProgress.type; - bubbleProperties(workInProgress); return null; } @@ -17887,7 +17762,7 @@ function completeWork(current, workInProgress, renderLanes) { return null; } - var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags$1; var renderedTail = renderState.rendering; if (renderedTail === null) { @@ -17904,7 +17779,7 @@ function completeWork(current, workInProgress, renderLanes) { // findFirstSuspended. var cannotBeSuspended = renderHasNotSuspendedYet() && - (current === null || (current.flags & DidCapture) === NoFlags); + (current === null || (current.flags & DidCapture) === NoFlags$1); if (!cannotBeSuspended) { var row = workInProgress.child; @@ -17938,7 +17813,7 @@ function completeWork(current, workInProgress, renderLanes) { // Reset the effect flags before doing the second pass since that's now invalid. // Reset the child fibers to their original state. - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; resetChildFibers(workInProgress, renderLanes); // Set up the Suspense List Context to force suspense and // immediately rerender the children. @@ -17957,7 +17832,7 @@ function completeWork(current, workInProgress, renderLanes) { } } - if (renderState.tail !== null && now() > getRenderTargetTime()) { + if (renderState.tail !== null && now$1() > getRenderTargetTime()) { // We have already passed our CPU deadline but we still have rows // left in the tail. We'll just give up further attempts to render // the main content and only render fallbacks. @@ -18010,7 +17885,7 @@ function completeWork(current, workInProgress, renderLanes) { // The time it took to render last row is greater than the remaining // time we have to render. So rendering one more row would likely // exceed it. - now() * 2 - renderState.renderingStartTime > + now$1() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane ) { @@ -18059,7 +17934,7 @@ function completeWork(current, workInProgress, renderLanes) { var next = renderState.tail; renderState.rendering = next; renderState.tail = next.sibling; - renderState.renderingStartTime = now(); + renderState.renderingStartTime = now$1(); next.sibling = null; // Restore the context. // TODO: We can probably just avoid popping it instead and only // setting it the first time we go from not suspended to suspended. @@ -18094,7 +17969,7 @@ function completeWork(current, workInProgress, renderLanes) { prepareScopeUpdate(); if (workInProgress.ref !== null) { - markRef$1(workInProgress); + markRef(workInProgress); markUpdate(workInProgress); } } else { @@ -18103,7 +17978,7 @@ function completeWork(current, workInProgress, renderLanes) { } if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } } @@ -18187,7 +18062,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache2 !== _previousCache2) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -18207,7 +18082,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache3 !== _previousCache3) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } popCacheProvider(workInProgress); @@ -18241,16 +18116,8 @@ function completeWork(current, workInProgress, renderLanes) { } function unwindWork(current, workInProgress, renderLanes) { - // Note: This intentionally doesn't check if we're hydrating because comparing - // to the current tree provider fiber is just as fast and less error-prone. - // Ideally we would have a special version of the work loop only - // for hydration. - popTreeContext(workInProgress); - switch (workInProgress.tag) { case ClassComponent: { - var Component = workInProgress.type; - var flags = workInProgress.flags; if (flags & ShouldCapture) { @@ -18267,10 +18134,7 @@ function unwindWork(current, workInProgress, renderLanes) { } case HostRoot: { - var root = workInProgress.stateNode; - { - var cache = workInProgress.memoizedState.cache; popCacheProvider(workInProgress); } @@ -18284,8 +18148,8 @@ function unwindWork(current, workInProgress, renderLanes) { var _flags = workInProgress.flags; if ( - (_flags & ShouldCapture) !== NoFlags && - (_flags & DidCapture) === NoFlags + (_flags & ShouldCapture) !== NoFlags$1 && + (_flags & DidCapture) === NoFlags$1 ) { // There was an error during render that wasn't captured by a suspense // boundary. Do a second pass on the root to unmount the children. @@ -18370,7 +18234,6 @@ function unwindWork(current, workInProgress, renderLanes) { case CacheComponent: { - var _cache = workInProgress.memoizedState.cache; popCacheProvider(workInProgress); } @@ -18391,24 +18254,13 @@ function unwindWork(current, workInProgress, renderLanes) { } function unwindInterruptedWork(current, interruptedWork, renderLanes) { - // Note: This intentionally doesn't check if we're hydrating because comparing - // to the current tree provider fiber is just as fast and less error-prone. - // Ideally we would have a special version of the work loop only - // for hydration. - popTreeContext(interruptedWork); - switch (interruptedWork.tag) { case ClassComponent: { - var childContextTypes = interruptedWork.type.childContextTypes; - break; } case HostRoot: { - var root = interruptedWork.stateNode; - { - var cache = interruptedWork.memoizedState.cache; popCacheProvider(interruptedWork); } @@ -18455,7 +18307,6 @@ function unwindInterruptedWork(current, interruptedWork, renderLanes) { case CacheComponent: { - var _cache2 = interruptedWork.memoizedState.cache; popCacheProvider(interruptedWork); } @@ -18687,7 +18538,7 @@ function safelyCallDestroy(current, nearestMountedAncestor, destroy) { var focusedInstanceHandle = null; var shouldFireAfterActiveInstanceBlur = false; function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = prepareForCommit(root.containerInfo); + focusedInstanceHandle = prepareForCommit(); nextEffect = firstChild; commitBeforeMutationEffects_begin(); // We no longer need to track the active instance fiber @@ -18717,7 +18568,7 @@ function commitBeforeMutationEffects_begin() { var child = fiber.child; if ( - (fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && + (fiber.subtreeFlags & BeforeMutationMask) !== NoFlags$1 && child !== null ) { child.return = fiber; @@ -18770,14 +18621,14 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } } - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { setCurrentFiber(finishedWork); } switch (finishedWork.tag) { case FunctionComponent: { { - if ((flags & Update) !== NoFlags) { + if ((flags & Update) !== NoFlags$1) { commitUseEffectEventMount(finishedWork); } } @@ -18791,7 +18642,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } case ClassComponent: { - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { if (current !== null) { var prevProps = current.memoizedProps; var prevState = current.memoizedState; @@ -18857,13 +18708,6 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } case HostRoot: { - if ((flags & Snapshot) !== NoFlags) { - { - var root = finishedWork.stateNode; - clearContainer(root.containerInfo); - } - } - break; } @@ -18877,7 +18721,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { break; default: { - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { throw new Error( "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue." @@ -18886,7 +18730,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } } - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { resetCurrentFiber(); } } @@ -18923,15 +18767,15 @@ function commitHookEffectListUnmount( if (destroy !== undefined) { if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectUnmountStarted(finishedWork); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectUnmountStarted(finishedWork); } } { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(true); } } @@ -18939,15 +18783,15 @@ function commitHookEffectListUnmount( safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(false); } } if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectUnmountStopped(); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectUnmountStopped(); } } @@ -18970,9 +18814,9 @@ function commitHookEffectListMount(flags, finishedWork) { do { if ((effect.tag & flags) === flags) { if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectMountStarted(finishedWork); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectMountStarted(finishedWork); } } // Mount @@ -18980,7 +18824,7 @@ function commitHookEffectListMount(flags, finishedWork) { var create = effect.create; { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(true); } } @@ -18988,15 +18832,15 @@ function commitHookEffectListMount(flags, finishedWork) { effect.destroy = create(); { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(false); } } if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectMountStopped(); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectMountStopped(); } } @@ -19007,9 +18851,9 @@ function commitHookEffectListMount(flags, finishedWork) { if (destroy !== undefined && typeof destroy !== "function") { var hookName = void 0; - if ((effect.tag & Layout) !== NoFlags) { + if ((effect.tag & Layout) !== NoFlags$1) { hookName = "useLayoutEffect"; - } else if ((effect.tag & Insertion) !== NoFlags) { + } else if ((effect.tag & Insertion) !== NoFlags$1) { hookName = "useInsertionEffect"; } else { hookName = "useEffect"; @@ -19074,7 +18918,7 @@ function commitUseEffectEventMount(finishedWork) { function commitPassiveEffectDurations(finishedRoot, finishedWork) { if (getExecutionContext() & CommitContext) { // Only Profilers with work in their subtree will have an Update effect scheduled. - if ((finishedWork.flags & Update) !== NoFlags) { + if ((finishedWork.flags & Update) !== NoFlags$1) { switch (finishedWork.tag) { case Profiler: { var passiveEffectDuration = @@ -19526,7 +19370,7 @@ function commitLayoutEffectOnFiber( // effects that were unmounted when the Offscreen subtree was // hidden. So this is a superset of the normal commitLayoutEffects. var includeWorkInProgressEffects = - (finishedWork.subtreeFlags & LayoutMask) !== NoFlags; + (finishedWork.subtreeFlags & LayoutMask) !== NoFlags$1; recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, @@ -19997,13 +19841,6 @@ function detachFiberAfterEffects(fiber) { fiber.child = null; fiber.deletions = null; fiber.sibling = null; // The `stateNode` is cyclical because on host nodes it points to the host - // tree, which has its own pointers to children, parents, and siblings. - // The other host nodes also point back to fibers, so we should detach that - // one, too. - - if (fiber.tag === HostComponent) { - var hostInstance = fiber.stateNode; - } fiber.stateNode = null; @@ -20350,12 +20187,9 @@ function commitDeletionEffectsOnFiber( { if (hostParent !== null) { if (hostParentIsContainer) { - clearSuspenseBoundaryFromContainer( - hostParent, - deletedFiber.stateNode - ); + clearSuspenseBoundaryFromContainer(); } else { - clearSuspenseBoundary(hostParent, deletedFiber.stateNode); + clearSuspenseBoundary(); } } } @@ -20402,13 +20236,13 @@ function commitDeletionEffectsOnFiber( tag = _effect.tag; if (destroy !== undefined) { - if ((tag & Insertion) !== NoFlags$1) { + if ((tag & Insertion) !== NoFlags) { safelyCallDestroy( deletedFiber, nearestMountedAncestor, destroy ); - } else if ((tag & Layout) !== NoFlags$1) { + } else if ((tag & Layout) !== NoFlags) { if (enableSchedulingProfiler) { markComponentLayoutEffectUnmountStarted(deletedFiber); } @@ -20595,7 +20429,7 @@ function detachOffscreenInstance(instance) { ); } - if ((instance._pendingVisibility & OffscreenDetached) !== NoFlags) { + if ((instance._pendingVisibility & OffscreenDetached) !== NoFlags$1) { // The instance is already detached, this is a noop. return; } // TODO: There is an opportunity to optimise this by not entering commit phase @@ -20617,7 +20451,7 @@ function attachOffscreenInstance(instance) { ); } - if ((instance._pendingVisibility & OffscreenDetached) === NoFlags) { + if ((instance._pendingVisibility & OffscreenDetached) === NoFlags$1) { // The instance is already attached, this is a noop. return; } @@ -21074,7 +20908,6 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { } if (flags & Update) { - var scopeInstance = finishedWork.stateNode; prepareScopeUpdate(); } } @@ -21367,7 +21200,7 @@ function recursivelyTraverseReappearLayoutEffects( // node was reused. var childShouldIncludeWorkInProgressEffects = includeWorkInProgressEffects && - (parentFiber.subtreeFlags & LayoutMask) !== NoFlags; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) + (parentFiber.subtreeFlags & LayoutMask) !== NoFlags$1; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) var prevDebugFiber = getCurrentFiber(); var child = parentFiber.child; @@ -21614,8 +21447,8 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { - commitHookPassiveMountEffects(finishedWork, Passive$1 | HasEffect); + if (flags & Passive$1) { + commitHookPassiveMountEffects(finishedWork, Passive | HasEffect); } break; @@ -21629,7 +21462,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { { var previousCache = null; @@ -21693,7 +21526,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { var current = finishedWork.alternate; var instance = finishedWork.stateNode; commitOffscreenPassiveMountEffects(current, finishedWork, instance); @@ -21758,7 +21591,7 @@ function commitPassiveMountOnFiber( // the initial render. _instance3._visibility |= OffscreenPassiveEffectsConnected; var includeWorkInProgressEffects = - (finishedWork.subtreeFlags & PassiveMask) !== NoFlags; + (finishedWork.subtreeFlags & PassiveMask) !== NoFlags$1; recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -21769,7 +21602,7 @@ function commitPassiveMountOnFiber( } } - if (flags & Passive) { + if (flags & Passive$1) { var _current = finishedWork.alternate; commitOffscreenPassiveMountEffects(_current, finishedWork, _instance3); } @@ -21785,7 +21618,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current2 = finishedWork.alternate; commitCachePassiveMountEffect(_current2, finishedWork); @@ -21803,7 +21636,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { commitTracingMarkerPassiveMountEffect(finishedWork); } @@ -21836,7 +21669,7 @@ function recursivelyTraverseReconnectPassiveEffects( // node was reused. var childShouldIncludeWorkInProgressEffects = includeWorkInProgressEffects && - (parentFiber.subtreeFlags & PassiveMask) !== NoFlags; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) + (parentFiber.subtreeFlags & PassiveMask) !== NoFlags$1; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) var prevDebugFiber = getCurrentFiber(); var child = parentFiber.child; @@ -21878,7 +21711,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); // TODO: Check for PassiveStatic flag - commitHookPassiveMountEffects(finishedWork, Passive$1); + commitHookPassiveMountEffects(finishedWork, Passive); break; } // Unlike commitPassiveMountOnFiber, we don't need to handle HostRoot @@ -21898,7 +21731,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var current = finishedWork.alternate; var instance = finishedWork.stateNode; @@ -21966,7 +21799,7 @@ function reconnectPassiveEffects( ); } - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current3 = finishedWork.alternate; commitOffscreenPassiveMountEffects(_current3, finishedWork, _instance4); @@ -21984,7 +21817,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current4 = finishedWork.alternate; commitCachePassiveMountEffect(_current4, finishedWork); @@ -22003,7 +21836,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { commitTracingMarkerPassiveMountEffect(finishedWork); } @@ -22064,7 +21897,7 @@ function commitAtomicPassiveEffects( case OffscreenComponent: { recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var current = finishedWork.alternate; var instance = finishedWork.stateNode; @@ -22077,7 +21910,7 @@ function commitAtomicPassiveEffects( case CacheComponent: { recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current5 = finishedWork.alternate; commitCachePassiveMountEffect(_current5, finishedWork); @@ -22157,7 +21990,7 @@ function recursivelyTraversePassiveUnmountEffects(parentFiber) { // before the children effects have fired. var deletions = parentFiber.deletions; - if ((parentFiber.flags & ChildDeletion) !== NoFlags) { + if ((parentFiber.flags & ChildDeletion) !== NoFlags$1) { if (deletions !== null) { for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i]; // TODO: Convert this to use recursion @@ -22195,11 +22028,11 @@ function commitPassiveUnmountOnFiber(finishedWork) { case SimpleMemoComponent: { recursivelyTraversePassiveUnmountEffects(finishedWork); - if (finishedWork.flags & Passive) { + if (finishedWork.flags & Passive$1) { commitHookPassiveUnmountEffects( finishedWork, finishedWork.return, - Passive$1 | HasEffect + Passive | HasEffect ); } @@ -22243,7 +22076,7 @@ function recursivelyTraverseDisconnectPassiveEffects(parentFiber) { // before the children effects have fired. var deletions = parentFiber.deletions; - if ((parentFiber.flags & ChildDeletion) !== NoFlags) { + if ((parentFiber.flags & ChildDeletion) !== NoFlags$1) { if (deletions !== null) { for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i]; // TODO: Convert this to use recursion @@ -22281,7 +22114,7 @@ function disconnectPassiveEffect(finishedWork) { commitHookPassiveUnmountEffects( finishedWork, finishedWork.return, - Passive$1 + Passive ); // When disconnecting passive effects, we fire the effects in the same // order as during a deletiong: parent before child @@ -22366,11 +22199,7 @@ function commitPassiveUnmountInsideDeletedTreeOnFiber( case FunctionComponent: case ForwardRef: case SimpleMemoComponent: { - commitHookPassiveUnmountEffects( - current, - nearestMountedAncestor, - Passive$1 - ); + commitHookPassiveUnmountEffects(current, nearestMountedAncestor, Passive); break; } // TODO: run passive unmount effects when unmounting a root. @@ -22533,7 +22362,7 @@ function invokePassiveEffectMountInDEV(fiber) { case ForwardRef: case SimpleMemoComponent: { try { - commitHookEffectListMount(Passive$1 | HasEffect, fiber); + commitHookEffectListMount(Passive | HasEffect, fiber); } catch (error) { captureCommitPhaseError(fiber, fiber.return, error); } @@ -22583,11 +22412,7 @@ function invokePassiveEffectUnmountInDEV(fiber) { case ForwardRef: case SimpleMemoComponent: { try { - commitHookEffectListUnmount( - Passive$1 | HasEffect, - fiber, - fiber.return - ); + commitHookEffectListUnmount(Passive | HasEffect, fiber, fiber.return); } catch (error) { captureCommitPhaseError(fiber, fiber.return, error); } @@ -22618,19 +22443,13 @@ var DefaultCacheDispatcher = { getCacheForType: getCacheForType }; -var COMPONENT_TYPE = 0; -var HAS_PSEUDO_CLASS_TYPE = 1; -var ROLE_TYPE = 2; -var TEST_NAME_TYPE = 3; -var TEXT_TYPE = 4; - if (typeof Symbol === "function" && Symbol.for) { var symbolFor = Symbol.for; - COMPONENT_TYPE = symbolFor("selector.component"); - HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"); - ROLE_TYPE = symbolFor("selector.role"); - TEST_NAME_TYPE = symbolFor("selector.test_id"); - TEXT_TYPE = symbolFor("selector.text"); + symbolFor("selector.component"); + symbolFor("selector.has_pseudo_class"); + symbolFor("selector.role"); + symbolFor("selector.test_id"); + symbolFor("selector.text"); } var ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue; @@ -22640,10 +22459,10 @@ function isLegacyActEnvironment(fiber) { // act environment whenever `jest` is defined, but you can still turn off // spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly // to false. - var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global - typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name] - ? IS_REACT_ACT_ENVIRONMENT - : undefined; // $FlowFixMe - Flow doesn't know about jest + // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name] + ? IS_REACT_ACT_ENVIRONMENT + : undefined; // $FlowFixMe - Flow doesn't know about jest return warnsIfNotActing; } } @@ -22670,12 +22489,12 @@ function isConcurrentActEnvironment() { } var ceil = Math.ceil; -var PossiblyWeakMap$2 = typeof WeakMap === "function" ? WeakMap : Map; -var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, +var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, - ReactCurrentActQueue$2 = ReactSharedInternals.ReactCurrentActQueue; + ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; var NoContext = /* */ 0; @@ -22728,7 +22547,7 @@ var workInProgressRootDidAttachPingListener = false; // A contextual version of // Most things in the work loop should deal with workInProgressRootRenderLanes. // Most things in begin/complete phases should deal with renderLanes. -var renderLanes$1 = NoLanes; // Whether to root completed, errored, suspended, etc. +var renderLanes = NoLanes; // Whether to root completed, errored, suspended, etc. var workInProgressRootExitStatus = RootInProgress; // A fatal error, if one is thrown @@ -22906,7 +22725,7 @@ function addTransitionCompleteCallbackToPendingTransition(transition) { } function resetRenderTimer() { - workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS; + workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; } function getRenderTargetTime() { @@ -22948,7 +22767,7 @@ function getWorkInProgressRootRenderLanes() { function requestEventTime() { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { // We're inside React, so it's fine to read the actual time. - return now(); + return now$1(); } // We're not inside React, so we may be in the middle of a browser event. if (currentEventTime !== NoTimestamp) { @@ -22956,7 +22775,7 @@ function requestEventTime() { return currentEventTime; } // This is the first update since React yielded. Compute a new start time. - currentEventTime = now(); + currentEventTime = now$1(); return currentEventTime; } function requestUpdateLane(fiber) { @@ -22985,8 +22804,8 @@ function requestUpdateLane(fiber) { var isTransition = requestCurrentTransition() !== NoTransition; if (isTransition) { - if (ReactCurrentBatchConfig$2.transition !== null) { - var transition = ReactCurrentBatchConfig$2.transition; + if (ReactCurrentBatchConfig.transition !== null) { + var transition = ReactCurrentBatchConfig.transition; if (!transition._updatedFibers) { transition._updatedFibers = new Set(); @@ -23064,7 +22883,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { // The incoming update might unblock the current render. Interrupt the // current attempt and restart from the top. prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } // Mark that the root has a pending update. markRootUpdated(root, lane, eventTime); @@ -23117,11 +22936,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { } if (enableTransitionTracing) { - var transition = ReactCurrentBatchConfig$2.transition; + var transition = ReactCurrentBatchConfig.transition; if (transition !== null && transition.name != null) { if (transition.startTime === -1) { - transition.startTime = now(); + transition.startTime = now$1(); } addTransitionToLanesMap(root, transition, lane); @@ -23151,7 +22970,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { // effect of interrupting the current render and switching to the update. // TODO: Make sure this doesn't override pings that happen while we've // already started rendering. - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } } @@ -23161,7 +22980,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. - !ReactCurrentActQueue$2.isBatchingLegacy + !ReactCurrentActQueue.isBatchingLegacy ) { // Flush the synchronous work now, unless we're already working or inside // a batch. This is intentionally inside scheduleUpdateOnFiber instead of @@ -23203,7 +23022,7 @@ function ensureRootIsScheduled(root, currentTime) { if (nextLanes === NoLanes) { // Special case: There's nothing to work on. if (existingCallbackNode !== null) { - cancelCallback$1(existingCallbackNode); + cancelCallback(existingCallbackNode); } root.callbackNode = null; @@ -23220,7 +23039,7 @@ function ensureRootIsScheduled(root, currentTime) { // Scheduler task, rather than an `act` task, cancel it and re-scheduled // on the `act` queue. !( - ReactCurrentActQueue$2.current !== null && + ReactCurrentActQueue.current !== null && existingCallbackNode !== fakeActCallbackNode ) ) { @@ -23243,7 +23062,7 @@ function ensureRootIsScheduled(root, currentTime) { if (existingCallbackNode != null) { // Cancel the existing callback. We'll schedule a new one below. - cancelCallback$1(existingCallbackNode); + cancelCallback(existingCallbackNode); } // Schedule a new callback. var newCallbackNode; @@ -23252,8 +23071,8 @@ function ensureRootIsScheduled(root, currentTime) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { - if (ReactCurrentActQueue$2.isBatchingLegacy !== null) { - ReactCurrentActQueue$2.didScheduleLegacyUpdate = true; + if (ReactCurrentActQueue.isBatchingLegacy !== null) { + ReactCurrentActQueue.didScheduleLegacyUpdate = true; } scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)); @@ -23263,7 +23082,7 @@ function ensureRootIsScheduled(root, currentTime) { { // Flush the queue in an Immediate task. - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); + scheduleCallback(ImmediatePriority, flushSyncCallbacks); } newCallbackNode = null; @@ -23280,7 +23099,7 @@ function ensureRootIsScheduled(root, currentTime) { break; case DefaultEventPriority: - schedulerPriorityLevel = NormalPriority; + schedulerPriorityLevel = NormalPriority$1; break; case IdleEventPriority: @@ -23288,11 +23107,11 @@ function ensureRootIsScheduled(root, currentTime) { break; default: - schedulerPriorityLevel = NormalPriority; + schedulerPriorityLevel = NormalPriority$1; break; } - newCallbackNode = scheduleCallback$2( + newCallbackNode = scheduleCallback( schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root) ); @@ -23380,8 +23199,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (exitStatus === RootFatalErrored) { var fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw fatalError; } @@ -23389,7 +23208,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { // The render unwound without completing the tree. This happens in special // cases where need to exit the current render without producing a // consistent tree or committing. - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); } else { // The render completed. // Check if this render may have yielded to a concurrent event, and if so, @@ -23430,8 +23249,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (exitStatus === RootFatalErrored) { var _fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw _fatalError; } // FIXME: Need to check for RootDidNotComplete again. The factoring here // isn't ideal. @@ -23444,7 +23263,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } } - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if (root.callbackNode === originalCallbackNode) { // The task node scheduled for this root is the same one that's @@ -23497,7 +23316,7 @@ function recoverFromConcurrentError( rootWorkInProgress.flags |= ForceClientRender; { - errorHydratingContainer(root.containerInfo); + errorHydratingContainer(); } } @@ -23578,7 +23397,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { } case RootSuspended: { - markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we + markRootSuspended(root, lanes); // We have an acceptable loading state. We need to figure out if we // should immediately commit it or wait a bit. if ( @@ -23588,7 +23407,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { // This render only included retries, no updates. Throttle committing // retries so that we don't show too many loading states too quickly. var msUntilTimeout = - globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time. + globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$1(); // Don't bother with a very short suspense time. if (msUntilTimeout > 10) { var nextLanes = getNextLanes(root, NoLanes); @@ -23622,7 +23441,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { } case RootSuspendedWithDelay: { - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if (includesOnlyTransitions(lanes)) { // This is a transition, so we should exit without committing a @@ -23640,7 +23459,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { // Consider removing. var mostRecentEventTime = getMostRecentEventTime(root, lanes); var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now() - eventTimeMs; + var timeElapsedMs = now$1() - eventTimeMs; var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. @@ -23746,7 +23565,7 @@ function isRenderConsistentWithExternalStores(finishedWork) { return true; } -function markRootSuspended$1(root, suspendedLanes) { +function markRootSuspended(root, suspendedLanes) { // When suspending, we should always exclude lanes that were pinged or (more // rarely, since we try to avoid it) updated during the render phase. // TODO: Lol maybe there's a better way to factor this besides this @@ -23756,7 +23575,7 @@ function markRootSuspended$1(root, suspendedLanes) { suspendedLanes, workInProgressRootInterleavedUpdatedLanes ); - markRootSuspended(root, suspendedLanes); + markRootSuspended$1(root, suspendedLanes); } // This is the entry point for synchronous tasks that don't go // through Scheduler @@ -23774,7 +23593,7 @@ function performSyncWorkOnRoot(root) { if (!includesSyncLane(lanes)) { // There's no remaining sync work left. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return null; } @@ -23804,8 +23623,8 @@ function performSyncWorkOnRoot(root) { if (exitStatus === RootFatalErrored) { var fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw fatalError; } @@ -23813,8 +23632,8 @@ function performSyncWorkOnRoot(root) { // The render unwound without completing the tree. This happens in special // cases where need to exit the current render without producing a // consistent tree or committing. - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); return null; } // We now have a consistent tree. Because this is a sync render, we // will commit it even if something suspended. @@ -23829,7 +23648,7 @@ function performSyncWorkOnRoot(root) { ); // Before exiting, make sure there's a callback scheduled for the next // pending level. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return null; } function getExecutionContext() { @@ -23853,11 +23672,11 @@ function flushSync(fn) { var prevExecutionContext = executionContext; executionContext |= BatchedContext; - var prevTransition = ReactCurrentBatchConfig$2.transition; + var prevTransition = ReactCurrentBatchConfig.transition; var previousPriority = getCurrentUpdatePriority(); try { - ReactCurrentBatchConfig$2.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); if (fn) { @@ -23867,7 +23686,7 @@ function flushSync(fn) { } } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$2.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch. // Note that this will happen even if batchedUpdates is higher up // the stack. @@ -23886,10 +23705,10 @@ function isInvalidExecutionContextForEventFunction() { // performance because this function will get inlined regardless function setRenderLanes(subtreeRenderLanes) { - renderLanes$1 = subtreeRenderLanes; + renderLanes = subtreeRenderLanes; } function getRenderLanes() { - return renderLanes$1; + return renderLanes; } function resetWorkInProgressStack() { @@ -23933,7 +23752,7 @@ function prepareFreshStack(root, lanes) { workInProgressRoot = root; var rootWorkInProgress = createWorkInProgress(root.current, null); workInProgress = rootWorkInProgress; - workInProgressRootRenderLanes = renderLanes$1 = lanes; + workInProgressRootRenderLanes = renderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; workInProgressRootDidAttachPingListener = false; @@ -23976,7 +23795,7 @@ function handleThrow(root, thrownValue) { // when React is executing user code. resetHooksAfterThrow(); resetCurrentFiber(); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; if (thrownValue === SuspenseException) { // This is a special type of exception used for Suspense. For historical @@ -24090,8 +23909,8 @@ function shouldAttemptToSuspendUntilDataResolves() { } function pushDispatcher(container) { - var prevDispatcher = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = ContextOnlyDispatcher; if (prevDispatcher === null) { // The React isomorphic package does not include a default dispatcher. @@ -24104,7 +23923,7 @@ function pushDispatcher(container) { } function popDispatcher(prevDispatcher) { - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; } function pushCacheDispatcher() { @@ -24122,7 +23941,7 @@ function popCacheDispatcher(prevCacheDispatcher) { } function markCommitTimeOfFallback() { - globalMostRecentFallbackTime = now(); + globalMostRecentFallbackTime = now$1(); } function markSkippedUpdateLanes(lane) { workInProgressRootSkippedLanes = mergeLanes( @@ -24154,7 +23973,7 @@ function renderDidSuspendDelayIfPossible() { // TODO: Consider unwinding immediately, using the // SuspendedOnHydration mechanism. // $FlowFixMe[incompatible-call] need null check workInProgressRoot - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes); } } function renderDidError(error) { @@ -24181,7 +24000,7 @@ function renderHasNotSuspendedYet() { function renderRootSync(root, lanes) { var prevExecutionContext = executionContext; executionContext |= RenderContext; - var prevDispatcher = pushDispatcher(root.containerInfo); + var prevDispatcher = pushDispatcher(); var prevCacheDispatcher = pushCacheDispatcher(); // If the root or lanes have changed, throw out the existing stack // and prepare a fresh one. Otherwise we'll continue where we left off. @@ -24302,7 +24121,7 @@ function workLoopSync() { function renderRootConcurrent(root, lanes) { var prevExecutionContext = executionContext; executionContext |= RenderContext; - var prevDispatcher = pushDispatcher(root.containerInfo); + var prevDispatcher = pushDispatcher(); var prevCacheDispatcher = pushCacheDispatcher(); // If the root or lanes have changed, throw out the existing stack // and prepare a fresh one. Otherwise we'll continue where we left off. @@ -24375,7 +24194,7 @@ function renderRootConcurrent(root, lanes) { // have added a listener until right here. var onResolution = function () { - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); }; thenable.then(onResolution, onResolution); @@ -24495,10 +24314,10 @@ function performUnitOfWork(unitOfWork) { if ((unitOfWork.mode & ProfileMode) !== NoMode) { startProfilerTimer(unitOfWork); - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true); } else { - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); } resetCurrentFiber(); @@ -24511,7 +24330,7 @@ function performUnitOfWork(unitOfWork) { workInProgress = next; } - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function replaySuspendedUnitOfWork(unitOfWork) { @@ -24584,9 +24403,9 @@ function replaySuspendedUnitOfWork(unitOfWork) { unwindInterruptedWork(current, unitOfWork); unitOfWork = workInProgress = resetWorkInProgress( unitOfWork, - renderLanes$1 + renderLanes ); - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); break; } } @@ -24606,7 +24425,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { workInProgress = next; } - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { @@ -24669,15 +24488,15 @@ function completeUnitOfWork(unitOfWork) { var current = completedWork.alternate; var returnFiber = completedWork.return; // Check if the work completed or if something threw. - if ((completedWork.flags & Incomplete) === NoFlags) { + if ((completedWork.flags & Incomplete) === NoFlags$1) { setCurrentFiber(completedWork); var next = void 0; if ((completedWork.mode & ProfileMode) === NoMode) { - next = completeWork(current, completedWork, renderLanes$1); + next = completeWork(current, completedWork, renderLanes); } else { startProfilerTimer(completedWork); - next = completeWork(current, completedWork, renderLanes$1); // Update render duration assuming we didn't error. + next = completeWork(current, completedWork, renderLanes); // Update render duration assuming we didn't error. stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); } @@ -24724,7 +24543,7 @@ function completeUnitOfWork(unitOfWork) { if (returnFiber !== null) { // Mark the parent fiber as incomplete and clear its subtree flags. returnFiber.flags |= Incomplete; - returnFiber.subtreeFlags = NoFlags; + returnFiber.subtreeFlags = NoFlags$1; returnFiber.deletions = null; } else { // We've unwound all the way to the root. @@ -24757,10 +24576,10 @@ function commitRoot(root, recoverableErrors, transitions) { // TODO: This no longer makes any sense. We already wrap the mutation and // layout phases. Should be able to remove. var previousUpdateLanePriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig$2.transition; + var prevTransition = ReactCurrentBatchConfig.transition; try { - ReactCurrentBatchConfig$2.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); commitRootImpl( root, @@ -24769,7 +24588,7 @@ function commitRoot(root, recoverableErrors, transitions) { previousUpdateLanePriority ); } finally { - ReactCurrentBatchConfig$2.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; setCurrentUpdatePriority(previousUpdateLanePriority); } @@ -24868,8 +24687,8 @@ function commitRootImpl( // They're redundant. if ( - (finishedWork.subtreeFlags & PassiveMask) !== NoFlags || - (finishedWork.flags & PassiveMask) !== NoFlags + (finishedWork.subtreeFlags & PassiveMask) !== NoFlags$1 || + (finishedWork.flags & PassiveMask) !== NoFlags$1 ) { if (!rootDoesHavePassiveEffects) { rootDoesHavePassiveEffects = true; @@ -24881,7 +24700,7 @@ function commitRootImpl( // with setTimeout pendingPassiveTransitions = transitions; - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); // This render triggered passive effects: release the root cache pool // *after* passive effects fire to avoid freeing a cache pool that may // be referenced by a node in the tree (HostRoot, Cache boundary etc) @@ -24898,31 +24717,28 @@ function commitRootImpl( var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== - NoFlags; + NoFlags$1; var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== - NoFlags; + NoFlags$1; if (subtreeHasEffects || rootHasEffect) { - var prevTransition = ReactCurrentBatchConfig$2.transition; - ReactCurrentBatchConfig$2.transition = null; + var prevTransition = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = null; var previousPriority = getCurrentUpdatePriority(); setCurrentUpdatePriority(DiscreteEventPriority); var prevExecutionContext = executionContext; executionContext |= CommitContext; // Reset this to null before calling lifecycles - ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass + ReactCurrentOwner.current = null; // The commit phase is broken into several sub-phases. We do a separate pass // of the effect list for each phase: all mutation effects come before all // layout effects, and so on. // The first phase a "before mutation" phase. We use this phase to read the // state of the host tree right before we mutate it. This is where // getSnapshotBeforeUpdate is called. - var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects( - root, - finishedWork - ); + commitBeforeMutationEffects(root, finishedWork); { // Mark the current commit time to be shared by all Profilers in this @@ -24937,8 +24753,6 @@ function commitRootImpl( } // The next phase is the mutation phase, where we mutate the host tree. commitMutationEffects(root, finishedWork, lanes); - - resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after // the mutation phase, so that the previous tree is still current during // componentWillUnmount, but before the layout phase, so that the finished // work is current during componentDidMount/Update. @@ -24978,7 +24792,7 @@ function commitRootImpl( executionContext = prevExecutionContext; // Reset the priority to the previous non-sync value. setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$2.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; } else { // No effects. root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were @@ -25041,7 +24855,7 @@ function commitRootImpl( } // additional work on this root is scheduled. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if (recoverableErrors !== null) { // There were errors during this render, but recovered from them without @@ -25106,19 +24920,6 @@ function commitRootImpl( markCommitStopped(); } - if (enableTransitionTracing) { - // We process transitions during passive effects. However, passive effects can be - // processed synchronously during the commit phase as well as asynchronously after - // paint. At the end of the commit phase, we schedule a callback that will be called - // after the next paint. If the transitions have already been processed (passive - // effect phase happened synchronously), we will schedule a callback to process - // the transitions. However, if we don't have any pending transition callbacks, this - // means that the transitions have yet to be processed (passive effects processed after paint) - // so we will store the end time of paint so that we can process the transitions - // and then call the callback via the correct end time. - var prevRootTransitionCallbacks = root.transitionCallbacks; - } - return null; } @@ -25180,16 +24981,16 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = NoLanes; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); var priority = lowerEventPriority(DefaultEventPriority, renderPriority); - var prevTransition = ReactCurrentBatchConfig$2.transition; + var prevTransition = ReactCurrentBatchConfig.transition; var previousPriority = getCurrentUpdatePriority(); try { - ReactCurrentBatchConfig$2.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(priority); return flushPassiveEffectsImpl(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$2.transition = prevTransition; // Once passive effects have run for the tree - giving components a + ReactCurrentBatchConfig.transition = prevTransition; // Once passive effects have run for the tree - giving components a // chance to retain cache instances they use - release the pooled // cache at the root (if there is one) @@ -25205,7 +25006,7 @@ function enqueuePendingPassiveProfilerEffect(fiber) { if (!rootDoesHavePassiveEffects) { rootDoesHavePassiveEffects = true; - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; }); @@ -25289,7 +25090,7 @@ function flushPassiveEffectsImpl() { ) { currentPendingTransitionCallbacks = null; currentEndTime = null; - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, prevEndTime, @@ -25354,7 +25155,7 @@ var onUncaughtError = prepareToThrowUncaughtError; function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { var errorInfo = createCapturedValueAtFiber(error, sourceFiber); var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane); - var root = enqueueUpdate$1(rootFiber, update, SyncLane); + var root = enqueueUpdate(rootFiber, update, SyncLane); var eventTime = requestEventTime(); if (root !== null) { @@ -25399,7 +25200,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) { ) { var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber); var update = createClassErrorUpdate(fiber, errorInfo, SyncLane); - var root = enqueueUpdate$1(fiber, update, SyncLane); + var root = enqueueUpdate(fiber, update, SyncLane); var eventTime = requestEventTime(); if (root !== null) { @@ -25447,7 +25248,7 @@ function attachPingListener(root, wakeable, lanes) { var threadIDs; if (pingCache === null) { - pingCache = root.pingCache = new PossiblyWeakMap$2(); + pingCache = root.pingCache = new PossiblyWeakMap(); threadIDs = new Set(); pingCache.set(wakeable, threadIDs); } else { @@ -25504,7 +25305,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { workInProgressRootExitStatus === RootSuspendedWithDelay || (workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && - now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) + now$1() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) ) { // Force a restart from the root by unwinding the stack. Unless this is // being called from the render phase, because that would cause a crash. @@ -25694,11 +25495,11 @@ function invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) { if ( current !== subtreeRoot && current.child != null && - primarySubtreeFlag !== NoFlags + primarySubtreeFlag !== NoFlags$1 ) { current = current.child; } else { - if ((current.flags & fiberFlags) !== NoFlags) { + if ((current.flags & fiberFlags) !== NoFlags$1) { invokeEffectFn(current); } @@ -25771,12 +25572,12 @@ function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { } } } -var beginWork$1; +var beginWork; if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { var dummyFiber = null; - beginWork$1 = function (current, unitOfWork, lanes) { + beginWork = function (current, unitOfWork, lanes) { // If a component throws an error, we replay it again in a synchronously // dispatched event, so that the debugger will treat it as an uncaught // error See ReactErrorUtils for more information. @@ -25788,7 +25589,7 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { ); try { - return beginWork(current, unitOfWork, lanes); + return beginWork$1(current, unitOfWork, lanes); } catch (originalError) { if ( didSuspendOrErrorWhileHydratingDEV() || @@ -25815,7 +25616,14 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { startProfilerTimer(unitOfWork); } // Run beginWork again. - invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes); + invokeGuardedCallback( + null, + beginWork$1, + null, + current, + unitOfWork, + lanes + ); if (hasCaughtError()) { var replayError = clearCaughtError(); @@ -25838,7 +25646,7 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { } }; } else { - beginWork$1 = beginWork; + beginWork = beginWork$1; } var didWarnAboutUpdateInRender = false; @@ -25911,32 +25719,32 @@ function restorePendingUpdaters(root, lanes) { } var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot] -function scheduleCallback$2(priorityLevel, callback) { +function scheduleCallback(priorityLevel, callback) { { // If we're currently inside an `act` scope, bypass Scheduler and push to // the `act` queue instead. - var actQueue = ReactCurrentActQueue$2.current; + var actQueue = ReactCurrentActQueue.current; if (actQueue !== null) { actQueue.push(callback); return fakeActCallbackNode; } else { - return scheduleCallback(priorityLevel, callback); + return scheduleCallback$2(priorityLevel, callback); } } } -function cancelCallback$1(callbackNode) { +function cancelCallback(callbackNode) { if (callbackNode === fakeActCallbackNode) { return; } // In production, always call Scheduler. This function will be stripped out. - return cancelCallback(callbackNode); + return cancelCallback$1(callbackNode); } function shouldForceFlushFallbacksInDEV() { // Never force flush in production. This function should get stripped out. - return ReactCurrentActQueue$2.current !== null; + return ReactCurrentActQueue.current !== null; } function warnIfUpdatesNotWrappedWithActDEV(fiber) { @@ -25970,7 +25778,7 @@ function warnIfUpdatesNotWrappedWithActDEV(fiber) { } } - if (ReactCurrentActQueue$2.current === null) { + if (ReactCurrentActQueue.current === null) { var previousFiber = current; try { @@ -26005,7 +25813,7 @@ function warnIfSuspenseResolutionNotWrappedWithActDEV(root) { if ( root.tag !== LegacyRoot && isConcurrentActEnvironment() && - ReactCurrentActQueue$2.current === null + ReactCurrentActQueue.current === null ) { error( "A suspended resource finished loading inside a test, but the event " + @@ -26511,8 +26319,8 @@ function FiberNode(tag, pendingProps, key, mode) { this.dependencies = null; this.mode = mode; // Effects - this.flags = NoFlags; - this.subtreeFlags = NoFlags; + this.flags = NoFlags$1; + this.subtreeFlags = NoFlags$1; this.deletions = null; this.lanes = NoLanes; this.childLanes = NoLanes; @@ -26574,7 +26382,7 @@ var createFiber = function (tag, pendingProps, key, mode) { return new FiberNode(tag, pendingProps, key, mode); }; -function shouldConstruct$1(Component) { +function shouldConstruct(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } @@ -26582,13 +26390,13 @@ function shouldConstruct$1(Component) { function isSimpleFunctionComponent(type) { return ( typeof type === "function" && - !shouldConstruct$1(type) && + !shouldConstruct(type) && type.defaultProps === undefined ); } function resolveLazyComponentTag(Component) { if (typeof Component === "function") { - return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent; + return shouldConstruct(Component) ? ClassComponent : FunctionComponent; } else if (Component !== undefined && Component !== null) { var $$typeof = Component.$$typeof; @@ -26638,9 +26446,9 @@ function createWorkInProgress(current, pendingProps) { workInProgress.type = current.type; // We already have an alternate. // Reset the effect tag. - workInProgress.flags = NoFlags; // The effects are no longer valid. + workInProgress.flags = NoFlags$1; // The effects are no longer valid. - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.deletions = null; { @@ -26723,7 +26531,7 @@ function resetWorkInProgress(workInProgress, renderLanes) { workInProgress.childLanes = NoLanes; workInProgress.lanes = renderLanes; workInProgress.child = null; - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.memoizedProps = null; workInProgress.memoizedState = null; workInProgress.updateQueue = null; @@ -26741,7 +26549,7 @@ function resetWorkInProgress(workInProgress, renderLanes) { workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.deletions = null; workInProgress.memoizedProps = current.memoizedProps; workInProgress.memoizedState = current.memoizedState; @@ -26817,7 +26625,7 @@ function createFiberFromTypeAndProps( var resolvedType = type; if (typeof type === "function") { - if (shouldConstruct$1(type)) { + if (shouldConstruct(type)) { fiberTag = ClassComponent; { @@ -27429,7 +27237,7 @@ function updateContainer(element, container, parentComponent, callback) { update.callback = callback; } - var root = enqueueUpdate$1(current$1, update, lane); + var root = enqueueUpdate(current$1, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, current$1, lane, eventTime); diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js deleted file mode 100644 index 5171431211..0000000000 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ /dev/null @@ -1,9903 +0,0 @@ -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @noflow - * @nolint - * @preventMunge - * @preserve-invariant-messages - */ - -"use strict"; -var React = require("react"), - Transform = require("art/core/transform"), - Mode$1 = require("art/modes/current"), - Scheduler = require("scheduler"), - FastNoSideEffects = require("art/modes/fast-noSideEffects"); -function _extends() { - _extends = - Object.assign || - function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i], - key; - for (key in source) - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } - return target; - }; - return _extends.apply(this, arguments); -} -function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; -} -function _assertThisInitialized(self) { - if (void 0 === self) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return self; -} -var assign = Object.assign; -function formatProdErrorMessage(code) { - for ( - var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code, - i = 1; - i < arguments.length; - i++ - ) - url += "&args[]=" + encodeURIComponent(arguments[i]); - return ( - "Minified React error #" + - code + - "; visit " + - url + - " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." - ); -} -var ReactSharedInternals = - React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, - dynamicFeatureFlags = require("ReactFeatureFlags"), - deferRenderPhaseUpdateToNextBatch = - dynamicFeatureFlags.deferRenderPhaseUpdateToNextBatch, - enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - skipUnmountedBoundaries = dynamicFeatureFlags.skipUnmountedBoundaries, - enableUseRefAccessWarning = dynamicFeatureFlags.enableUseRefAccessWarning, - disableNativeComponentFrames = - dynamicFeatureFlags.disableNativeComponentFrames, - disableSchedulerTimeoutInWorkLoop = - dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableLazyContextPropagation = - dynamicFeatureFlags.enableLazyContextPropagation, - enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - REACT_ELEMENT_TYPE = Symbol.for("react.element"), - 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_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_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_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_CACHE_TYPE = Symbol.for("react.cache"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for( - "react.default_value" - ), - 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; -} -function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) return 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_CACHE_TYPE: - return "Cache"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch (type.$$typeof) { - case REACT_CONTEXT_TYPE: - return (type.displayName || "Context") + ".Consumer"; - case REACT_PROVIDER_TYPE: - return (type._context.displayName || "Context") + ".Provider"; - 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) { - break; - } - case REACT_SERVER_CONTEXT_TYPE: - return (type.displayName || type._globalName) + ".Provider"; - } - 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 17: - case 2: - 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 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 assertIsMounted(fiber) { - if (getNearestMountedFiber(fiber) !== fiber) - throw Error(formatProdErrorMessage(188)); -} -function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) { - alternate = getNearestMountedFiber(fiber); - if (null === alternate) throw Error(formatProdErrorMessage(188)); - 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(formatProdErrorMessage(188)); - } - if (a.return !== b.return) (a = parentA), (b = parentB); - else { - for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { - if (child$0 === a) { - didFindChild = !0; - a = parentA; - b = parentB; - break; - } - if (child$0 === b) { - didFindChild = !0; - b = parentA; - a = parentB; - break; - } - child$0 = child$0.sibling; - } - if (!didFindChild) { - for (child$0 = parentB.child; child$0; ) { - if (child$0 === a) { - didFindChild = !0; - a = parentB; - b = parentA; - break; - } - if (child$0 === b) { - didFindChild = !0; - b = parentB; - a = parentA; - break; - } - child$0 = child$0.sibling; - } - if (!didFindChild) throw Error(formatProdErrorMessage(189)); - } - } - if (a.alternate !== b) throw Error(formatProdErrorMessage(190)); - } - if (3 !== a.tag) throw Error(formatProdErrorMessage(188)); - return a.stateNode.current === a ? fiber : alternate; -} -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; -} -var isArrayImpl = Array.isArray, - TYPES = { - CLIPPING_RECTANGLE: "ClippingRectangle", - GROUP: "Group", - SHAPE: "Shape", - TEXT: "Text" - }, - EVENT_TYPES = { - onClick: "click", - onMouseMove: "mousemove", - onMouseOver: "mouseover", - onMouseOut: "mouseout", - onMouseUp: "mouseup", - onMouseDown: "mousedown" - }; -function childrenAsString(children) { - return children - ? "string" === typeof children - ? children - : children.length - ? children.join("") - : "" - : ""; -} -var scheduleCallback = Scheduler.unstable_scheduleCallback, - cancelCallback = Scheduler.unstable_cancelCallback, - shouldYield = Scheduler.unstable_shouldYield, - requestPaint = Scheduler.unstable_requestPaint, - now = Scheduler.unstable_now, - ImmediatePriority = Scheduler.unstable_ImmediatePriority, - UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, - NormalPriority = Scheduler.unstable_NormalPriority, - IdlePriority = Scheduler.unstable_IdlePriority, - rendererID = null, - injectedHook = null; -function onCommitRoot(root) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) - try { - injectedHook.onCommitFiberRoot( - rendererID, - root, - void 0, - 128 === (root.current.flags & 128) - ); - } catch (err) {} -} -var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, - log = Math.log, - LN2 = Math.LN2; -function clz32Fallback(x) { - x >>>= 0; - return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; -} -var nextTransitionLane = 128, - nextRetryLane = 8388608; -function getHighestPriorityLanes(lanes) { - if (enableUnifiedSyncLane) { - var pendingSyncLanes = lanes & 42; - if (0 !== pendingSyncLanes) return pendingSyncLanes; - } - switch (lanes & -lanes) { - case 1: - return 1; - case 2: - return 2; - case 4: - return 4; - case 8: - return 8; - case 16: - return 16; - case 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: - case 4194304: - return lanes & 8388480; - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return lanes & 125829120; - case 134217728: - return 134217728; - case 268435456: - return 268435456; - case 536870912: - return 536870912; - case 1073741824: - return 1073741824; - default: - return lanes; - } -} -function getNextLanes(root, wipLanes) { - var pendingLanes = root.pendingLanes; - if (0 === pendingLanes) return 0; - var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - nonIdlePendingLanes = pendingLanes & 268435455; - if (0 !== nonIdlePendingLanes) { - var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; - 0 !== nonIdleUnblockedLanes - ? (nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes && - (nextLanes = getHighestPriorityLanes(pingedLanes))); - } else - (nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes && - (nextLanes = getHighestPriorityLanes(pingedLanes)); - if (0 === nextLanes) return 0; - if ( - 0 !== wipLanes && - wipLanes !== nextLanes && - 0 === (wipLanes & suspendedLanes) && - ((suspendedLanes = nextLanes & -nextLanes), - (pingedLanes = wipLanes & -wipLanes), - suspendedLanes >= pingedLanes || - (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) - ) - return wipLanes; - 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 8) && - (nextLanes |= pendingLanes & 32); - wipLanes = root.entangledLanes; - if (0 !== wipLanes) - for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) - (pendingLanes = 31 - clz32(wipLanes)), - (suspendedLanes = 1 << pendingLanes), - (nextLanes |= root[pendingLanes]), - (wipLanes &= ~suspendedLanes); - return nextLanes; -} -function computeExpirationTime(lane, currentTime) { - switch (lane) { - case 1: - case 2: - case 4: - case 8: - return currentTime + 250; - 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: - case 4194304: - return currentTime + 5e3; - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return -1; - case 134217728: - case 268435456: - case 536870912: - case 1073741824: - return -1; - default: - return -1; - } -} -function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { - if (root.errorRecoveryDisabledLanes & originallyAttemptedLanes) return 0; - root = root.pendingLanes & -1073741825; - return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; -} -function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); -} -function claimNextTransitionLane() { - var lane = nextTransitionLane; - nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); - return lane; -} -function createLaneMap(initial) { - for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); - return laneMap; -} -function markRootUpdated(root, updateLane, eventTime) { - root.pendingLanes |= updateLane; - 536870912 !== updateLane && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); - root = root.eventTimes; - updateLane = 31 - clz32(updateLane); - root[updateLane] = eventTime; -} -function markRootFinished(root, remainingLanes) { - var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; - root.pendingLanes = remainingLanes; - root.suspendedLanes = 0; - root.pingedLanes = 0; - root.expiredLanes &= remainingLanes; - root.mutableReadLanes &= remainingLanes; - root.entangledLanes &= remainingLanes; - root.errorRecoveryDisabledLanes &= remainingLanes; - remainingLanes = root.entanglements; - var eventTimes = root.eventTimes, - expirationTimes = root.expirationTimes; - for (root = root.hiddenUpdates; 0 < noLongerPendingLanes; ) { - var index$5 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$5; - remainingLanes[index$5] = 0; - eventTimes[index$5] = -1; - expirationTimes[index$5] = -1; - var hiddenUpdatesForLane = root[index$5]; - if (null !== hiddenUpdatesForLane) - for ( - root[index$5] = null, index$5 = 0; - index$5 < hiddenUpdatesForLane.length; - index$5++ - ) { - var update = hiddenUpdatesForLane[index$5]; - null !== update && (update.lane &= -1073741825); - } - noLongerPendingLanes &= ~lane; - } -} -function markRootEntangled(root, entangledLanes) { - var rootEntangledLanes = (root.entangledLanes |= entangledLanes); - for (root = root.entanglements; rootEntangledLanes; ) { - 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$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; - } - return 0 === transitionsForLanes.length ? null : transitionsForLanes; -} -function clearTransitionsForLanes(root, lanes) { - if (enableTransitionTracing) - for (; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - null !== root.transitionLanes[index$9] && - (root.transitionLanes[index$9] = null); - lanes &= ~lane; - } -} -var currentUpdatePriority = 0; -function lanesToEventPriority(lanes) { - lanes &= -lanes; - return 2 < lanes - ? 8 < lanes - ? 0 !== (lanes & 268435455) - ? 32 - : 536870912 - : 8 - : 2; -} -function shim() { - throw Error(formatProdErrorMessage(305)); -} -function shim$1() { - throw Error(formatProdErrorMessage(357)); -} -var pooledTransform = new Transform(), - NO_CONTEXT = {}, - UPDATE_SIGNAL = {}; -function createEventHandler(instance) { - return function (event) { - var listener = instance._listeners[event.type]; - listener && - ("function" === typeof listener - ? listener.call(instance, event) - : listener.handleEvent && listener.handleEvent(event)); - }; -} -function destroyEventListeners(instance) { - if (instance._subscriptions) - for (var type in instance._subscriptions) instance._subscriptions[type](); - instance._subscriptions = null; - instance._listeners = null; -} -function applyClippingRectangleProps(instance, props) { - applyNodeProps( - instance, - props, - 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {} - ); - instance.width = props.width; - instance.height = props.height; -} -function applyGroupProps(instance, props) { - applyNodeProps( - instance, - props, - 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {} - ); - instance.width = props.width; - instance.height = props.height; -} -function applyNodeProps(instance, props) { - var prevProps = - 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}; - var JSCompiler_inline_result = - null != props.scaleX ? props.scaleX : null != props.scale ? props.scale : 1; - var JSCompiler_inline_result$jscomp$0 = - null != props.scaleY ? props.scaleY : null != props.scale ? props.scale : 1; - pooledTransform - .transformTo(1, 0, 0, 1, 0, 0) - .move(props.x || 0, props.y || 0) - .rotate(props.rotation || 0, props.originX, props.originY) - .scale( - JSCompiler_inline_result, - JSCompiler_inline_result$jscomp$0, - props.originX, - props.originY - ); - null != props.transform && pooledTransform.transform(props.transform); - (instance.xx === pooledTransform.xx && - instance.yx === pooledTransform.yx && - instance.xy === pooledTransform.xy && - instance.yy === pooledTransform.yy && - instance.x === pooledTransform.x && - instance.y === pooledTransform.y) || - instance.transformTo(pooledTransform); - (props.cursor === prevProps.cursor && props.title === prevProps.title) || - instance.indicate(props.cursor, props.title); - instance.blend && - props.opacity !== prevProps.opacity && - instance.blend(null == props.opacity ? 1 : props.opacity); - props.visible !== prevProps.visible && - (null == props.visible || props.visible - ? instance.show() - : instance.hide()); - for (var type in EVENT_TYPES) - (prevProps = instance), - (JSCompiler_inline_result = EVENT_TYPES[type]), - (JSCompiler_inline_result$jscomp$0 = props[type]), - prevProps._listeners || - ((prevProps._listeners = {}), (prevProps._subscriptions = {})), - (prevProps._listeners[JSCompiler_inline_result] = - JSCompiler_inline_result$jscomp$0) - ? prevProps._subscriptions[JSCompiler_inline_result] || - (prevProps._subscriptions[JSCompiler_inline_result] = - prevProps.subscribe( - JSCompiler_inline_result, - createEventHandler(prevProps), - prevProps - )) - : prevProps._subscriptions[JSCompiler_inline_result] && - (prevProps._subscriptions[JSCompiler_inline_result](), - delete prevProps._subscriptions[JSCompiler_inline_result]); -} -function applyRenderableNodeProps(instance, props) { - var prevProps = - 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}; - applyNodeProps(instance, props, prevProps); - prevProps.fill !== props.fill && - (props.fill && props.fill.applyFill - ? props.fill.applyFill(instance) - : instance.fill(props.fill)); - (prevProps.stroke === props.stroke && - prevProps.strokeWidth === props.strokeWidth && - prevProps.strokeCap === props.strokeCap && - prevProps.strokeJoin === props.strokeJoin && - prevProps.strokeDash === props.strokeDash) || - instance.stroke( - props.stroke, - props.strokeWidth, - props.strokeCap, - props.strokeJoin, - props.strokeDash - ); -} -function applyShapeProps(instance, props) { - var prevProps = - 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}; - applyRenderableNodeProps(instance, props, prevProps); - var path = props.d || childrenAsString(props.children), - prevDelta = instance._prevDelta; - if ( - path !== instance._prevPath || - path.delta !== prevDelta || - prevProps.height !== props.height || - prevProps.width !== props.width - ) - instance.draw(path, props.width, props.height), - (instance._prevDelta = path.delta), - (instance._prevPath = path); -} -function applyTextProps(instance, props) { - var prevProps = - 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}; - applyRenderableNodeProps(instance, props, prevProps); - var string = props.children, - JSCompiler_temp; - if (!(JSCompiler_temp = instance._currentString !== string)) { - JSCompiler_temp = props.font; - var newFont = prevProps.font; - JSCompiler_temp = - JSCompiler_temp === newFont - ? !0 - : "string" === typeof newFont || "string" === typeof JSCompiler_temp - ? !1 - : newFont.fontSize === JSCompiler_temp.fontSize && - newFont.fontStyle === JSCompiler_temp.fontStyle && - newFont.fontVariant === JSCompiler_temp.fontVariant && - newFont.fontWeight === JSCompiler_temp.fontWeight && - 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); -} -var scheduleTimeout = setTimeout, - cancelTimeout = clearTimeout; -function shouldSetTextContent(type, props) { - return ( - "string" === typeof props.children || "number" === typeof props.children - ); -} -var prefix; -function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - } - return "\n" + prefix + name; -} -var reentry = !1; -function describeNativeComponentFrame(fn, construct) { - if (disableNativeComponentFrames || !fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - if (construct) - if ( - ((construct = function () { - throw Error(); - }), - Object.defineProperty(construct.prototype, "props", { - set: function () { - throw Error(); - } - }), - "object" === typeof Reflect && Reflect.construct) - ) { - try { - Reflect.construct(construct, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], construct); - } else { - try { - construct.call(); - } catch (x$10) { - control = x$10; - } - fn.call(construct.prototype); - } - else { - try { - throw Error(); - } catch (x$11) { - control = x$11; - } - fn(); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) { - for ( - var sampleLines = sample.stack.split("\n"), - controlLines = control.stack.split("\n"), - s = sampleLines.length - 1, - c = controlLines.length - 1; - 1 <= s && 0 <= c && sampleLines[s] !== controlLines[c]; - - ) - c--; - for (; 1 <= s && 0 <= c; s--, c--) - if (sampleLines[s] !== controlLines[c]) { - if (1 !== s || 1 !== c) { - do - if ((s--, c--, 0 > c || sampleLines[s] !== controlLines[c])) { - var frame = "\n" + sampleLines[s].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= s && 0 <= c); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (fn = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(fn) - : ""; -} -var hasOwnProperty = Object.prototype.hasOwnProperty, - valueStack = [], - index = -1; -function createCursor(defaultValue) { - return { current: defaultValue }; -} -function pop(cursor) { - 0 > index || - ((cursor.current = valueStack[index]), (valueStack[index] = null), index--); -} -function push(cursor, value) { - index++; - valueStack[index] = cursor.current; - cursor.current = value; -} -var emptyContextObject = {}, - contextStackCursor = createCursor(emptyContextObject), - didPerformWorkStackCursor = createCursor(!1), - previousContext = emptyContextObject; -function getMaskedContext(workInProgress, unmaskedContext) { - var contextTypes = workInProgress.type.contextTypes; - if (!contextTypes) return emptyContextObject; - var instance = workInProgress.stateNode; - if ( - instance && - instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext - ) - return instance.__reactInternalMemoizedMaskedChildContext; - var context = {}, - key; - for (key in contextTypes) context[key] = unmaskedContext[key]; - instance && - ((workInProgress = workInProgress.stateNode), - (workInProgress.__reactInternalMemoizedUnmaskedChildContext = - unmaskedContext), - (workInProgress.__reactInternalMemoizedMaskedChildContext = context)); - return context; -} -function isContextProvider(type) { - type = type.childContextTypes; - return null !== type && void 0 !== type; -} -function popContext() { - pop(didPerformWorkStackCursor); - pop(contextStackCursor); -} -function pushTopLevelContextObject(fiber, context, didChange) { - if (contextStackCursor.current !== emptyContextObject) - throw Error(formatProdErrorMessage(168)); - push(contextStackCursor, context); - push(didPerformWorkStackCursor, didChange); -} -function processChildContext(fiber, type, parentContext) { - var instance = fiber.stateNode; - type = type.childContextTypes; - if ("function" !== typeof instance.getChildContext) return parentContext; - instance = instance.getChildContext(); - for (var contextKey in instance) - if (!(contextKey in type)) - throw Error( - formatProdErrorMessage( - 108, - getComponentNameFromFiber(fiber) || "Unknown", - contextKey - ) - ); - return assign({}, parentContext, instance); -} -function pushContextProvider(workInProgress) { - workInProgress = - ((workInProgress = workInProgress.stateNode) && - workInProgress.__reactInternalMemoizedMergedChildContext) || - emptyContextObject; - previousContext = contextStackCursor.current; - push(contextStackCursor, workInProgress); - push(didPerformWorkStackCursor, didPerformWorkStackCursor.current); - return !0; -} -function invalidateContextProvider(workInProgress, type, didChange) { - var instance = workInProgress.stateNode; - if (!instance) throw Error(formatProdErrorMessage(169)); - didChange - ? ((workInProgress = processChildContext( - workInProgress, - type, - previousContext - )), - (instance.__reactInternalMemoizedMergedChildContext = workInProgress), - pop(didPerformWorkStackCursor), - pop(contextStackCursor), - push(contextStackCursor, workInProgress)) - : pop(didPerformWorkStackCursor); - push(didPerformWorkStackCursor, didChange); -} -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, - syncQueue = null, - includesLegacySyncCallbacks = !1, - isFlushingSyncQueue = !1; -function flushSyncCallbacks() { - if (!isFlushingSyncQueue && null !== syncQueue) { - isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 2; i < queue.length; i++) { - var callback = queue[i]; - do callback = callback(!0); - while (null !== callback); - } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw ( - (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback(ImmediatePriority, flushSyncCallbacks), - error) - ); - } finally { - (currentUpdatePriority = previousUpdatePriority), - (isFlushingSyncQueue = !1); - } - } - return null; -} -var forkStack = [], - forkStackIndex = 0, - treeForkProvider = null, - idStack = [], - idStackIndex = 0, - treeContextProvider = null; -function popTreeContext(workInProgress) { - for (; workInProgress === treeForkProvider; ) - (treeForkProvider = forkStack[--forkStackIndex]), - (forkStack[forkStackIndex] = null), - --forkStackIndex, - (forkStack[forkStackIndex] = null); - for (; workInProgress === treeContextProvider; ) - (treeContextProvider = idStack[--idStackIndex]), - (idStack[idStackIndex] = null), - --idStackIndex, - (idStack[idStackIndex] = null), - --idStackIndex, - (idStack[idStackIndex] = null); -} -var contextStackCursor$1 = createCursor(null), - contextFiberStackCursor = createCursor(null), - rootInstanceStackCursor = createCursor(null); -function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance); - push(contextFiberStackCursor, fiber); - push(contextStackCursor$1, null); - pop(contextStackCursor$1); - push(contextStackCursor$1, NO_CONTEXT); -} -function popHostContainer() { - pop(contextStackCursor$1); - pop(contextFiberStackCursor); - pop(rootInstanceStackCursor); -} -function pushHostContext(fiber) { - contextStackCursor$1.current !== NO_CONTEXT && - (push(contextFiberStackCursor, fiber), - push(contextStackCursor$1, NO_CONTEXT)); -} -function popHostContext(fiber) { - contextFiberStackCursor.current === fiber && - (pop(contextStackCursor$1), pop(contextFiberStackCursor)); -} -var hydrationErrors = null, - concurrentQueues = [], - concurrentQueuesIndex = 0, - concurrentlyUpdatedLanes = 0; -function finishQueueingConcurrentUpdates() { - for ( - var endIndex = concurrentQueuesIndex, - i = (concurrentlyUpdatedLanes = concurrentQueuesIndex = 0); - i < endIndex; - - ) { - var fiber = concurrentQueues[i]; - concurrentQueues[i++] = null; - var queue = concurrentQueues[i]; - concurrentQueues[i++] = null; - var update = concurrentQueues[i]; - concurrentQueues[i++] = null; - var lane = concurrentQueues[i]; - concurrentQueues[i++] = null; - if (null !== queue && null !== update) { - var pending = queue.pending; - null === pending - ? (update.next = update) - : ((update.next = pending.next), (pending.next = update)); - queue.pending = update; - } - 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); - } -} -function enqueueUpdate(fiber, queue, update, lane) { - concurrentQueues[concurrentQueuesIndex++] = fiber; - concurrentQueues[concurrentQueuesIndex++] = queue; - concurrentQueues[concurrentQueuesIndex++] = update; - concurrentQueues[concurrentQueuesIndex++] = lane; - concurrentlyUpdatedLanes |= lane; - fiber.lanes |= lane; - fiber = fiber.alternate; - null !== fiber && (fiber.lanes |= lane); -} -function enqueueConcurrentRenderForLane(fiber, lane) { - enqueueUpdate(fiber, null, null, lane); - return getRootForUpdatedFiber(fiber); -} -function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { - sourceFiber.lanes |= lane; - var alternate = sourceFiber.alternate; - null !== alternate && (alternate.lanes |= lane); - for (var isHidden = !1, parent = sourceFiber.return; null !== parent; ) - (parent.childLanes |= lane), - (alternate = parent.alternate), - null !== alternate && (alternate.childLanes |= lane), - 22 === parent.tag && - ((sourceFiber = parent.stateNode), - null === sourceFiber || sourceFiber._visibility & 1 || (isHidden = !0)), - (sourceFiber = parent), - (parent = parent.return); - isHidden && - null !== update && - 3 === sourceFiber.tag && - ((parent = sourceFiber.stateNode), - (isHidden = 31 - clz32(lane)), - (parent = parent.hiddenUpdates), - (sourceFiber = parent[isHidden]), - null === sourceFiber - ? (parent[isHidden] = [update]) - : sourceFiber.push(update), - (update.lane = lane | 1073741824)); -} -function getRootForUpdatedFiber(sourceFiber) { - if (50 < nestedUpdateCount) - throw ( - ((nestedUpdateCount = 0), - (rootWithNestedUpdates = null), - Error(formatProdErrorMessage(185))) - ); - for (var parent = sourceFiber.return; null !== parent; ) - (sourceFiber = parent), (parent = sourceFiber.return); - return 3 === sourceFiber.tag ? sourceFiber.stateNode : null; -} -var hasForceUpdate = !1; -function initializeUpdateQueue(fiber) { - fiber.updateQueue = { - baseState: fiber.memoizedState, - firstBaseUpdate: null, - lastBaseUpdate: null, - shared: { pending: null, lanes: 0, hiddenCallbacks: null }, - callbacks: null - }; -} -function cloneUpdateQueue(current, workInProgress) { - current = current.updateQueue; - workInProgress.updateQueue === current && - (workInProgress.updateQueue = { - baseState: current.baseState, - firstBaseUpdate: current.firstBaseUpdate, - lastBaseUpdate: current.lastBaseUpdate, - shared: current.shared, - callbacks: null - }); -} -function createUpdate(eventTime, lane) { - return { - eventTime: eventTime, - lane: lane, - tag: 0, - payload: null, - callback: null, - next: null - }; -} -function enqueueUpdate$1(fiber, update, lane) { - var updateQueue = fiber.updateQueue; - if (null === updateQueue) return null; - updateQueue = updateQueue.shared; - if ( - (deferRenderPhaseUpdateToNextBatch && 0 !== (fiber.mode & 1)) || - 0 === (executionContext & 2) - ) - return ( - enqueueUpdate(fiber, updateQueue, update, lane), - getRootForUpdatedFiber(fiber) - ); - var pending = updateQueue.pending; - null === pending - ? (update.next = update) - : ((update.next = pending.next), (pending.next = update)); - updateQueue.pending = update; - update = getRootForUpdatedFiber(fiber); - markUpdateLaneFromFiberToRoot(fiber, null, lane); - return update; -} -function entangleTransitions(root, fiber, lane) { - fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { - var queueLanes = fiber.lanes; - queueLanes &= root.pendingLanes; - lane |= queueLanes; - fiber.lanes = lane; - markRootEntangled(root, lane); - } -} -function enqueueCapturedUpdate(workInProgress, capturedUpdate) { - var queue = workInProgress.updateQueue, - current = workInProgress.alternate; - if ( - null !== current && - ((current = current.updateQueue), queue === current) - ) { - var newFirst = null, - newLast = null; - queue = queue.firstBaseUpdate; - if (null !== queue) { - do { - var clone = { - eventTime: queue.eventTime, - lane: queue.lane, - tag: queue.tag, - payload: queue.payload, - callback: null, - next: null - }; - null === newLast - ? (newFirst = newLast = clone) - : (newLast = newLast.next = clone); - queue = queue.next; - } while (null !== queue); - null === newLast - ? (newFirst = newLast = capturedUpdate) - : (newLast = newLast.next = capturedUpdate); - } else newFirst = newLast = capturedUpdate; - queue = { - baseState: current.baseState, - firstBaseUpdate: newFirst, - lastBaseUpdate: newLast, - shared: current.shared, - callbacks: current.callbacks - }; - workInProgress.updateQueue = queue; - return; - } - workInProgress = queue.lastBaseUpdate; - null === workInProgress - ? (queue.firstBaseUpdate = capturedUpdate) - : (workInProgress.next = capturedUpdate); - queue.lastBaseUpdate = capturedUpdate; -} -function processUpdateQueue( - workInProgress$jscomp$0, - props, - instance, - renderLanes -) { - var queue = workInProgress$jscomp$0.updateQueue; - hasForceUpdate = !1; - var firstBaseUpdate = queue.firstBaseUpdate, - lastBaseUpdate = queue.lastBaseUpdate, - pendingQueue = queue.shared.pending; - if (null !== pendingQueue) { - queue.shared.pending = null; - var lastPendingUpdate = pendingQueue, - firstPendingUpdate = lastPendingUpdate.next; - lastPendingUpdate.next = null; - null === lastBaseUpdate - ? (firstBaseUpdate = firstPendingUpdate) - : (lastBaseUpdate.next = firstPendingUpdate); - lastBaseUpdate = lastPendingUpdate; - var current = workInProgress$jscomp$0.alternate; - null !== current && - ((current = current.updateQueue), - (pendingQueue = current.lastBaseUpdate), - pendingQueue !== lastBaseUpdate && - (null === pendingQueue - ? (current.firstBaseUpdate = firstPendingUpdate) - : (pendingQueue.next = firstPendingUpdate), - (current.lastBaseUpdate = lastPendingUpdate))); - } - if (null !== firstBaseUpdate) { - var newState = queue.baseState; - lastBaseUpdate = 0; - current = firstPendingUpdate = lastPendingUpdate = null; - pendingQueue = firstBaseUpdate; - do { - var updateEventTime = pendingQueue.eventTime, - updateLane = pendingQueue.lane & -1073741825, - isHiddenUpdate = updateLane !== pendingQueue.lane; - if ( - isHiddenUpdate - ? (workInProgressRootRenderLanes & updateLane) === updateLane - : (renderLanes & updateLane) === updateLane - ) { - null !== current && - (current = current.next = - { - eventTime: updateEventTime, - lane: 0, - tag: pendingQueue.tag, - payload: pendingQueue.payload, - callback: null, - next: null - }); - a: { - var workInProgress = workInProgress$jscomp$0, - update = pendingQueue; - updateLane = props; - updateEventTime = instance; - switch (update.tag) { - case 1: - workInProgress = update.payload; - if ("function" === typeof workInProgress) { - newState = workInProgress.call( - updateEventTime, - newState, - updateLane - ); - break a; - } - newState = workInProgress; - break a; - case 3: - workInProgress.flags = (workInProgress.flags & -65537) | 128; - case 0: - workInProgress = update.payload; - updateLane = - "function" === typeof workInProgress - ? workInProgress.call(updateEventTime, newState, updateLane) - : workInProgress; - if (null === updateLane || void 0 === updateLane) break a; - newState = assign({}, newState, updateLane); - break a; - case 2: - hasForceUpdate = !0; - } - } - updateLane = pendingQueue.callback; - null !== updateLane && - ((workInProgress$jscomp$0.flags |= 64), - isHiddenUpdate && (workInProgress$jscomp$0.flags |= 8192), - (isHiddenUpdate = queue.callbacks), - null === isHiddenUpdate - ? (queue.callbacks = [updateLane]) - : isHiddenUpdate.push(updateLane)); - } else - (isHiddenUpdate = { - eventTime: updateEventTime, - lane: updateLane, - tag: pendingQueue.tag, - payload: pendingQueue.payload, - callback: pendingQueue.callback, - next: null - }), - null === current - ? ((firstPendingUpdate = current = isHiddenUpdate), - (lastPendingUpdate = newState)) - : (current = current.next = isHiddenUpdate), - (lastBaseUpdate |= updateLane); - pendingQueue = pendingQueue.next; - if (null === pendingQueue) - if (((pendingQueue = queue.shared.pending), null === pendingQueue)) - break; - else - (isHiddenUpdate = pendingQueue), - (pendingQueue = isHiddenUpdate.next), - (isHiddenUpdate.next = null), - (queue.lastBaseUpdate = isHiddenUpdate), - (queue.shared.pending = null); - } while (1); - null === current && (lastPendingUpdate = newState); - queue.baseState = lastPendingUpdate; - queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current; - null === firstBaseUpdate && (queue.shared.lanes = 0); - workInProgressRootSkippedLanes |= lastBaseUpdate; - workInProgress$jscomp$0.lanes = lastBaseUpdate; - workInProgress$jscomp$0.memoizedState = newState; - } -} -function callCallback(callback, context) { - if ("function" !== typeof callback) - throw Error(formatProdErrorMessage(191, callback)); - callback.call(context); -} -function commitCallbacks(updateQueue, context) { - var callbacks = updateQueue.callbacks; - if (null !== callbacks) - for ( - updateQueue.callbacks = null, updateQueue = 0; - updateQueue < callbacks.length; - updateQueue++ - ) - callCallback(callbacks[updateQueue], context); -} -function shallowEqual(objA, objB) { - if (objectIs(objA, objB)) return !0; - if ( - "object" !== typeof objA || - null === objA || - "object" !== typeof objB || - null === objB - ) - return !1; - var keysA = Object.keys(objA), - keysB = Object.keys(objB); - if (keysA.length !== keysB.length) return !1; - for (keysB = 0; keysB < keysA.length; keysB++) { - var currentKey = keysA[keysB]; - if ( - !hasOwnProperty.call(objB, currentKey) || - !objectIs(objA[currentKey], objB[currentKey]) - ) - return !1; - } - 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 2: - case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; - case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); - case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; - default: - return ""; - } -} -function coerceRef(returnFiber, current, element) { - returnFiber = element.ref; - if ( - null !== returnFiber && - "function" !== typeof returnFiber && - "object" !== typeof returnFiber - ) { - if (element._owner) { - element = element._owner; - if (element) { - if (1 !== element.tag) throw Error(formatProdErrorMessage(309)); - var inst = element.stateNode; - } - if (!inst) throw Error(formatProdErrorMessage(147, returnFiber)); - var resolvedInst = inst, - stringRef = "" + returnFiber; - if ( - null !== current && - null !== current.ref && - "function" === typeof current.ref && - current.ref._stringRef === stringRef - ) - return current.ref; - current = function (value) { - var refs = resolvedInst.refs; - null === value ? delete refs[stringRef] : (refs[stringRef] = value); - }; - current._stringRef = stringRef; - return current; - } - if ("string" !== typeof returnFiber) - throw Error(formatProdErrorMessage(284)); - if (!element._owner) throw Error(formatProdErrorMessage(290, returnFiber)); - } - return returnFiber; -} -function throwOnInvalidObjectType(returnFiber, newChild) { - returnFiber = Object.prototype.toString.call(newChild); - throw Error( - formatProdErrorMessage( - 31, - "[object Object]" === returnFiber - ? "object with keys {" + Object.keys(newChild).join(", ") + "}" - : returnFiber - ) - ); -} -function resolveLazy(lazyType) { - var init = lazyType._init; - return init(lazyType._payload); -} -function createChildReconciler(shouldTrackSideEffects) { - function deleteChild(returnFiber, childToDelete) { - if (shouldTrackSideEffects) { - var deletions = returnFiber.deletions; - null === deletions - ? ((returnFiber.deletions = [childToDelete]), (returnFiber.flags |= 16)) - : deletions.push(childToDelete); - } - } - function deleteRemainingChildren(returnFiber, currentFirstChild) { - if (!shouldTrackSideEffects) return null; - for (; null !== currentFirstChild; ) - deleteChild(returnFiber, currentFirstChild), - (currentFirstChild = currentFirstChild.sibling); - return null; - } - function mapRemainingChildren(returnFiber, currentFirstChild) { - for (returnFiber = new Map(); null !== currentFirstChild; ) - null !== currentFirstChild.key - ? returnFiber.set(currentFirstChild.key, currentFirstChild) - : returnFiber.set(currentFirstChild.index, currentFirstChild), - (currentFirstChild = currentFirstChild.sibling); - return returnFiber; - } - function useFiber(fiber, pendingProps) { - fiber = createWorkInProgress(fiber, pendingProps); - fiber.index = 0; - fiber.sibling = null; - return fiber; - } - function placeChild(newFiber, lastPlacedIndex, newIndex) { - newFiber.index = newIndex; - if (!shouldTrackSideEffects) - return (newFiber.flags |= 1048576), lastPlacedIndex; - newIndex = newFiber.alternate; - if (null !== newIndex) - return ( - (newIndex = newIndex.index), - newIndex < lastPlacedIndex - ? ((newFiber.flags |= 16777218), lastPlacedIndex) - : newIndex - ); - newFiber.flags |= 16777218; - return lastPlacedIndex; - } - function placeSingleChild(newFiber) { - shouldTrackSideEffects && - null === newFiber.alternate && - (newFiber.flags |= 16777218); - return newFiber; - } - function updateTextNode(returnFiber, current, textContent, lanes) { - if (null === current || 6 !== current.tag) - return ( - (current = createFiberFromText(textContent, returnFiber.mode, lanes)), - (current.return = returnFiber), - current - ); - current = useFiber(current, textContent); - current.return = returnFiber; - return current; - } - function updateElement(returnFiber, current, element, lanes) { - var elementType = element.type; - if (elementType === REACT_FRAGMENT_TYPE) - return updateFragment( - returnFiber, - current, - element.props.children, - lanes, - element.key - ); - if ( - null !== current && - (current.elementType === elementType || - ("object" === typeof elementType && - null !== elementType && - elementType.$$typeof === REACT_LAZY_TYPE && - resolveLazy(elementType) === current.type)) - ) - return ( - (lanes = useFiber(current, element.props)), - (lanes.ref = coerceRef(returnFiber, current, element)), - (lanes.return = returnFiber), - lanes - ); - lanes = createFiberFromTypeAndProps( - element.type, - element.key, - element.props, - null, - returnFiber.mode, - lanes - ); - lanes.ref = coerceRef(returnFiber, current, element); - lanes.return = returnFiber; - return lanes; - } - function updatePortal(returnFiber, current, portal, lanes) { - if ( - null === current || - 4 !== current.tag || - current.stateNode.containerInfo !== portal.containerInfo || - current.stateNode.implementation !== portal.implementation - ) - return ( - (current = createFiberFromPortal(portal, returnFiber.mode, lanes)), - (current.return = returnFiber), - current - ); - current = useFiber(current, portal.children || []); - current.return = returnFiber; - return current; - } - function updateFragment(returnFiber, current, fragment, lanes, key) { - if (null === current || 7 !== current.tag) - return ( - (current = createFiberFromFragment( - fragment, - returnFiber.mode, - lanes, - key - )), - (current.return = returnFiber), - current - ); - current = useFiber(current, fragment); - current.return = returnFiber; - return current; - } - function createChild(returnFiber, newChild, lanes) { - if ( - ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild - ) - return ( - (newChild = createFiberFromText( - "" + newChild, - returnFiber.mode, - lanes - )), - (newChild.return = returnFiber), - newChild - ); - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return ( - (lanes = createFiberFromTypeAndProps( - newChild.type, - newChild.key, - newChild.props, - null, - returnFiber.mode, - lanes - )), - (lanes.ref = coerceRef(returnFiber, null, newChild)), - (lanes.return = returnFiber), - lanes - ); - case REACT_PORTAL_TYPE: - return ( - (newChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - )), - (newChild.return = returnFiber), - newChild - ); - case REACT_LAZY_TYPE: - var init = newChild._init; - return createChild(returnFiber, init(newChild._payload), lanes); - } - if (isArrayImpl(newChild) || getIteratorFn(newChild)) - return ( - (newChild = createFiberFromFragment( - newChild, - returnFiber.mode, - lanes, - null - )), - (newChild.return = returnFiber), - newChild - ); - throwOnInvalidObjectType(returnFiber, newChild); - } - return null; - } - function updateSlot(returnFiber, oldFiber, newChild, lanes) { - var key = null !== oldFiber ? oldFiber.key : null; - if ( - ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild - ) - return null !== key - ? null - : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return newChild.key === key - ? updateElement(returnFiber, oldFiber, newChild, lanes) - : null; - case REACT_PORTAL_TYPE: - return newChild.key === key - ? updatePortal(returnFiber, oldFiber, newChild, lanes) - : null; - case REACT_LAZY_TYPE: - return ( - (key = newChild._init), - updateSlot(returnFiber, oldFiber, key(newChild._payload), lanes) - ); - } - if (isArrayImpl(newChild) || getIteratorFn(newChild)) - return null !== key - ? null - : updateFragment(returnFiber, oldFiber, newChild, lanes, null); - throwOnInvalidObjectType(returnFiber, newChild); - } - return null; - } - function updateFromMap( - existingChildren, - returnFiber, - newIdx, - newChild, - lanes - ) { - if ( - ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild - ) - return ( - (existingChildren = existingChildren.get(newIdx) || null), - updateTextNode(returnFiber, existingChildren, "" + newChild, lanes) - ); - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return ( - (existingChildren = - existingChildren.get( - null === newChild.key ? newIdx : newChild.key - ) || null), - updateElement(returnFiber, existingChildren, newChild, lanes) - ); - case REACT_PORTAL_TYPE: - return ( - (existingChildren = - existingChildren.get( - null === newChild.key ? newIdx : newChild.key - ) || null), - updatePortal(returnFiber, existingChildren, newChild, lanes) - ); - case REACT_LAZY_TYPE: - var init = newChild._init; - return updateFromMap( - existingChildren, - returnFiber, - newIdx, - init(newChild._payload), - lanes - ); - } - if (isArrayImpl(newChild) || getIteratorFn(newChild)) - return ( - (existingChildren = existingChildren.get(newIdx) || null), - updateFragment(returnFiber, existingChildren, newChild, lanes, null) - ); - throwOnInvalidObjectType(returnFiber, newChild); - } - return null; - } - function reconcileChildrenArray( - returnFiber, - currentFirstChild, - newChildren, - lanes - ) { - for ( - var resultingFirstChild = null, - previousNewFiber = null, - oldFiber = currentFirstChild, - newIdx = (currentFirstChild = 0), - nextOldFiber = null; - null !== oldFiber && newIdx < newChildren.length; - newIdx++ - ) { - oldFiber.index > newIdx - ? ((nextOldFiber = oldFiber), (oldFiber = null)) - : (nextOldFiber = oldFiber.sibling); - var newFiber = updateSlot( - returnFiber, - oldFiber, - newChildren[newIdx], - lanes - ); - if (null === newFiber) { - null === oldFiber && (oldFiber = nextOldFiber); - break; - } - shouldTrackSideEffects && - oldFiber && - null === newFiber.alternate && - deleteChild(returnFiber, oldFiber); - currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); - null === previousNewFiber - ? (resultingFirstChild = newFiber) - : (previousNewFiber.sibling = newFiber); - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - if (newIdx === newChildren.length) - return ( - deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild - ); - if (null === oldFiber) { - for (; newIdx < newChildren.length; newIdx++) - (oldFiber = createChild(returnFiber, newChildren[newIdx], lanes)), - null !== oldFiber && - ((currentFirstChild = placeChild( - oldFiber, - currentFirstChild, - newIdx - )), - null === previousNewFiber - ? (resultingFirstChild = oldFiber) - : (previousNewFiber.sibling = oldFiber), - (previousNewFiber = oldFiber)); - return resultingFirstChild; - } - for ( - oldFiber = mapRemainingChildren(returnFiber, oldFiber); - newIdx < newChildren.length; - newIdx++ - ) - (nextOldFiber = updateFromMap( - oldFiber, - returnFiber, - newIdx, - newChildren[newIdx], - lanes - )), - null !== nextOldFiber && - (shouldTrackSideEffects && - null !== nextOldFiber.alternate && - oldFiber.delete( - null === nextOldFiber.key ? newIdx : nextOldFiber.key - ), - (currentFirstChild = placeChild( - nextOldFiber, - currentFirstChild, - newIdx - )), - null === previousNewFiber - ? (resultingFirstChild = nextOldFiber) - : (previousNewFiber.sibling = nextOldFiber), - (previousNewFiber = nextOldFiber)); - shouldTrackSideEffects && - oldFiber.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - return resultingFirstChild; - } - function reconcileChildrenIterator( - returnFiber, - currentFirstChild, - newChildrenIterable, - lanes - ) { - var iteratorFn = getIteratorFn(newChildrenIterable); - if ("function" !== typeof iteratorFn) - throw Error(formatProdErrorMessage(150)); - newChildrenIterable = iteratorFn.call(newChildrenIterable); - if (null == newChildrenIterable) throw Error(formatProdErrorMessage(151)); - for ( - var previousNewFiber = (iteratorFn = null), - oldFiber = currentFirstChild, - newIdx = (currentFirstChild = 0), - nextOldFiber = null, - step = newChildrenIterable.next(); - null !== oldFiber && !step.done; - newIdx++, step = newChildrenIterable.next() - ) { - oldFiber.index > newIdx - ? ((nextOldFiber = oldFiber), (oldFiber = null)) - : (nextOldFiber = oldFiber.sibling); - var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); - if (null === newFiber) { - null === oldFiber && (oldFiber = nextOldFiber); - break; - } - shouldTrackSideEffects && - oldFiber && - null === newFiber.alternate && - deleteChild(returnFiber, oldFiber); - currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); - null === previousNewFiber - ? (iteratorFn = newFiber) - : (previousNewFiber.sibling = newFiber); - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - if (step.done) - return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; - if (null === oldFiber) { - for (; !step.done; newIdx++, step = newChildrenIterable.next()) - (step = createChild(returnFiber, step.value, lanes)), - null !== step && - ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)), - null === previousNewFiber - ? (iteratorFn = step) - : (previousNewFiber.sibling = step), - (previousNewFiber = step)); - return iteratorFn; - } - for ( - oldFiber = mapRemainingChildren(returnFiber, oldFiber); - !step.done; - newIdx++, step = newChildrenIterable.next() - ) - (step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes)), - null !== step && - (shouldTrackSideEffects && - null !== step.alternate && - oldFiber.delete(null === step.key ? newIdx : step.key), - (currentFirstChild = placeChild(step, currentFirstChild, newIdx)), - null === previousNewFiber - ? (iteratorFn = step) - : (previousNewFiber.sibling = step), - (previousNewFiber = step)); - shouldTrackSideEffects && - oldFiber.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - return iteratorFn; - } - function reconcileChildFibers( - returnFiber, - currentFirstChild, - newChild, - lanes - ) { - "object" === typeof newChild && - null !== newChild && - newChild.type === REACT_FRAGMENT_TYPE && - null === newChild.key && - (newChild = newChild.props.children); - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { - key = newChild.type; - if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } - } else if ( - child.elementType === key || - ("object" === typeof key && - null !== key && - key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) - ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - currentFirstChild.ref = coerceRef( - returnFiber, - child, - newChild - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } - deleteRemainingChildren(returnFiber, child); - break; - } else deleteChild(returnFiber, child); - child = child.sibling; - } - newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( - newChild.props.children, - returnFiber.mode, - lanes, - newChild.key - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) - : ((lanes = createFiberFromTypeAndProps( - newChild.type, - newChild.key, - newChild.props, - null, - returnFiber.mode, - lanes - )), - (lanes.ref = coerceRef( - returnFiber, - currentFirstChild, - newChild - )), - (lanes.return = returnFiber), - (returnFiber = lanes)); - } - return placeSingleChild(returnFiber); - case REACT_PORTAL_TYPE: - a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) - if ( - 4 === currentFirstChild.tag && - currentFirstChild.stateNode.containerInfo === - newChild.containerInfo && - currentFirstChild.stateNode.implementation === - newChild.implementation - ) { - deleteRemainingChildren( - returnFiber, - currentFirstChild.sibling - ); - currentFirstChild = useFiber( - currentFirstChild, - newChild.children || [] - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } else { - deleteRemainingChildren(returnFiber, currentFirstChild); - break; - } - else deleteChild(returnFiber, currentFirstChild); - currentFirstChild = currentFirstChild.sibling; - } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - } - return placeSingleChild(returnFiber); - case REACT_LAZY_TYPE: - return ( - (child = newChild._init), - reconcileChildFibers( - returnFiber, - currentFirstChild, - child(newChild._payload), - lanes - ) - ); - } - if (isArrayImpl(newChild)) - return reconcileChildrenArray( - returnFiber, - currentFirstChild, - newChild, - lanes - ); - if (getIteratorFn(newChild)) - return reconcileChildrenIterator( - returnFiber, - currentFirstChild, - newChild, - lanes - ); - throwOnInvalidObjectType(returnFiber, newChild); - } - return ("string" === typeof newChild && "" !== newChild) || - "number" === typeof newChild - ? ((newChild = "" + newChild), - null !== currentFirstChild && 6 === currentFirstChild.tag - ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) - : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), - placeSingleChild(returnFiber)) - : deleteRemainingChildren(returnFiber, currentFirstChild); - } - return reconcileChildFibers; -} -var reconcileChildFibers = createChildReconciler(!0), - mountChildFibers = createChildReconciler(!1), - currentTreeHiddenStackCursor = createCursor(null), - prevRenderLanesStackCursor = createCursor(0); -function pushHiddenContext(fiber, context) { - fiber = renderLanes$1; - push(prevRenderLanesStackCursor, fiber); - push(currentTreeHiddenStackCursor, context); - renderLanes$1 = fiber | context.baseLanes; -} -function reuseHiddenContextOnStack() { - push(prevRenderLanesStackCursor, renderLanes$1); - push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current); -} -function popHiddenContext() { - renderLanes$1 = prevRenderLanesStackCursor.current; - pop(currentTreeHiddenStackCursor); - pop(prevRenderLanesStackCursor); -} -var suspenseHandlerStackCursor = createCursor(null), - shellBoundary = null; -function pushPrimaryTreeSuspenseHandler(handler) { - var current = handler.alternate; - !0 !== handler.pendingProps.unstable_avoidThisFallback || - (null !== current && null === currentTreeHiddenStackCursor.current) - ? (push(suspenseHandlerStackCursor, handler), - null === shellBoundary && - (null === current || null !== currentTreeHiddenStackCursor.current - ? (shellBoundary = handler) - : null !== current.memoizedState && (shellBoundary = handler))) - : null === shellBoundary - ? push(suspenseHandlerStackCursor, handler) - : push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current); -} -function pushOffscreenSuspenseHandler(fiber) { - if (22 === fiber.tag) { - if ((push(suspenseHandlerStackCursor, fiber), null === shellBoundary)) { - var current = fiber.alternate; - null !== current && - null !== current.memoizedState && - (shellBoundary = fiber); - } - } else reuseSuspenseHandlerOnStack(); -} -function reuseSuspenseHandlerOnStack() { - push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current); -} -function popSuspenseHandler(fiber) { - pop(suspenseHandlerStackCursor); - shellBoundary === fiber && (shellBoundary = null); -} -var suspenseStackCursor = createCursor(0); -function findFirstSuspended(row) { - for (var node = row; null !== node; ) { - if (13 === node.tag) { - var state = node.memoizedState; - if (null !== state && (null === state.dehydrated || shim() || shim())) - return node; - } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { - if (0 !== (node.flags & 128)) return node; - } else if (null !== node.child) { - node.child.return = node; - node = node.child; - continue; - } - if (node === row) break; - for (; null === node.sibling; ) { - if (null === node.return || node.return === row) return null; - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } - return null; -} -var workInProgressSources = []; -function resetWorkInProgressVersions() { - for (var i = 0; i < workInProgressSources.length; i++) - workInProgressSources[i]._workInProgressVersionSecondary = null; - workInProgressSources.length = 0; -} -var SuspenseException = Error(formatProdErrorMessage(460)); -function isThenableResolved(thenable) { - thenable = thenable.status; - return "fulfilled" === thenable || "rejected" === thenable; -} -function noop() {} -function trackUsedThenable(thenableState, thenable, index) { - index = thenableState[index]; - void 0 === index - ? thenableState.push(thenable) - : index !== thenable && (thenable.then(noop, noop), (thenable = index)); - switch (thenable.status) { - case "fulfilled": - return thenable.value; - case "rejected": - throw thenable.reason; - default: - "string" === typeof thenable.status - ? thenable.then(noop, noop) - : ((thenableState = thenable), - (thenableState.status = "pending"), - thenableState.then( - function (fulfilledValue) { - if ("pending" === thenable.status) { - var fulfilledThenable = thenable; - fulfilledThenable.status = "fulfilled"; - fulfilledThenable.value = fulfilledValue; - } - }, - function (error) { - if ("pending" === thenable.status) { - var rejectedThenable = thenable; - rejectedThenable.status = "rejected"; - rejectedThenable.reason = error; - } - } - )); - switch (thenable.status) { - case "fulfilled": - return thenable.value; - case "rejected": - throw thenable.reason; - } - suspendedThenable = thenable; - throw SuspenseException; - } -} -var suspendedThenable = null, - ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, - renderLanes = 0, - currentlyRenderingFiber = null, - currentHook = null, - workInProgressHook = null, - didScheduleRenderPhaseUpdate = !1, - didScheduleRenderPhaseUpdateDuringThisPass = !1, - shouldDoubleInvokeUserFnsInHooksDEV = !1, - thenableIndexCounter = 0, - thenableState = null, - globalClientIdCounter = 0; -function throwInvalidHookError() { - throw Error(formatProdErrorMessage(321)); -} -function areHookInputsEqual(nextDeps, prevDeps) { - if (null === prevDeps) return !1; - for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) - if (!objectIs(nextDeps[i], prevDeps[i])) return !1; - return !0; -} -function renderWithHooks( - current, - workInProgress, - Component, - props, - secondArg, - nextRenderLanes -) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber = workInProgress; - workInProgress.memoizedState = null; - workInProgress.updateQueue = null; - workInProgress.lanes = 0; - ReactCurrentDispatcher$1.current = - null === current || null === current.memoizedState - ? HooksDispatcherOnMount - : HooksDispatcherOnUpdate; - shouldDoubleInvokeUserFnsInHooksDEV = !1; - nextRenderLanes = Component(props, secondArg); - shouldDoubleInvokeUserFnsInHooksDEV = !1; - didScheduleRenderPhaseUpdateDuringThisPass && - (nextRenderLanes = renderWithHooksAgain( - workInProgress, - Component, - props, - secondArg - )); - finishRenderingHooks(current); - return nextRenderLanes; -} -function finishRenderingHooks(current) { - ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; - didScheduleRenderPhaseUpdate = !1; - thenableIndexCounter = 0; - thenableState = null; - if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300)); - enableLazyContextPropagation && - null !== current && - !didReceiveUpdate && - ((current = current.dependencies), - null !== current && - checkIfContextChanged(current) && - (didReceiveUpdate = !0)); -} -function renderWithHooksAgain(workInProgress, Component, props, secondArg) { - var numberOfReRenders = 0; - do { - didScheduleRenderPhaseUpdateDuringThisPass = !1; - thenableIndexCounter = 0; - if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301)); - numberOfReRenders += 1; - workInProgressHook = currentHook = null; - workInProgress.updateQueue = null; - ReactCurrentDispatcher$1.current = HooksDispatcherOnRerender; - var children = Component(props, secondArg); - } while (didScheduleRenderPhaseUpdateDuringThisPass); - return children; -} -function bailoutHooks(current, workInProgress, lanes) { - workInProgress.updateQueue = current.updateQueue; - workInProgress.flags &= -2053; - current.lanes &= ~lanes; -} -function resetHooksOnUnwind() { - if (didScheduleRenderPhaseUpdate) { - for (var hook = currentlyRenderingFiber.memoizedState; null !== hook; ) { - var queue = hook.queue; - null !== queue && (queue.pending = null); - hook = hook.next; - } - didScheduleRenderPhaseUpdate = !1; - } - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; - didScheduleRenderPhaseUpdateDuringThisPass = !1; - thenableIndexCounter = 0; - thenableState = null; -} -function mountWorkInProgressHook() { - var hook = { - memoizedState: null, - baseState: null, - baseQueue: null, - queue: null, - next: null - }; - null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = hook) - : (workInProgressHook = workInProgressHook.next = hook); - return workInProgressHook; -} -function updateWorkInProgressHook() { - if (null === currentHook) { - var nextCurrentHook = currentlyRenderingFiber.alternate; - nextCurrentHook = - null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; - } else nextCurrentHook = currentHook.next; - var nextWorkInProgressHook = - null === workInProgressHook - ? currentlyRenderingFiber.memoizedState - : workInProgressHook.next; - if (null !== nextWorkInProgressHook) - (workInProgressHook = nextWorkInProgressHook), - (currentHook = nextCurrentHook); - else { - if (null === nextCurrentHook) - if (null === currentlyRenderingFiber.alternate) - nextCurrentHook = { - memoizedState: null, - baseState: null, - baseQueue: null, - queue: null, - next: null - }; - else throw Error(formatProdErrorMessage(310)); - currentHook = nextCurrentHook; - nextCurrentHook = { - memoizedState: currentHook.memoizedState, - baseState: currentHook.baseState, - baseQueue: currentHook.baseQueue, - queue: currentHook.queue, - next: null - }; - null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = - nextCurrentHook) - : (workInProgressHook = workInProgressHook.next = nextCurrentHook); - } - return workInProgressHook; -} -var createFunctionComponentUpdateQueue; -createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; -}; -function use(usable) { - if (null !== usable && "object" === typeof usable) { - if ("function" === typeof usable.then) { - var index$29 = thenableIndexCounter; - thenableIndexCounter += 1; - null === thenableState && (thenableState = []); - return trackUsedThenable(thenableState, usable, index$29); - } - if ( - usable.$$typeof === REACT_CONTEXT_TYPE || - usable.$$typeof === REACT_SERVER_CONTEXT_TYPE - ) - return readContext(usable); - } - throw Error(formatProdErrorMessage(438, String(usable))); -} -function useMemoCache(size) { - var memoCache = null, - updateQueue = currentlyRenderingFiber.updateQueue; - null !== updateQueue && (memoCache = updateQueue.memoCache); - if (null == memoCache) { - var current = currentlyRenderingFiber.alternate; - null !== current && - ((current = current.updateQueue), - null !== current && - ((current = current.memoCache), - null != current && - (memoCache = { - data: current.data.map(function (array) { - return array.slice(); - }), - index: 0 - }))); - } - null == memoCache && (memoCache = { data: [], index: 0 }); - null === updateQueue && - ((updateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = updateQueue)); - updateQueue.memoCache = memoCache; - updateQueue = memoCache.data[memoCache.index]; - if (void 0 === updateQueue) - for ( - updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0; - current < size; - current++ - ) - updateQueue[current] = REACT_MEMO_CACHE_SENTINEL; - memoCache.index++; - return updateQueue; -} -function basicStateReducer(state, action) { - return "function" === typeof action ? action(state) : action; -} -function updateReducer(reducer) { - var hook = updateWorkInProgressHook(), - queue = hook.queue; - if (null === queue) throw Error(formatProdErrorMessage(311)); - queue.lastRenderedReducer = reducer; - var current = currentHook, - baseQueue = current.baseQueue, - pendingQueue = queue.pending; - if (null !== pendingQueue) { - if (null !== baseQueue) { - var baseFirst = baseQueue.next; - baseQueue.next = pendingQueue.next; - pendingQueue.next = baseFirst; - } - current.baseQueue = baseQueue = pendingQueue; - queue.pending = null; - } - if (null !== baseQueue) { - pendingQueue = baseQueue.next; - current = current.baseState; - var newBaseQueueFirst = (baseFirst = null), - newBaseQueueLast = null, - update = pendingQueue; - do { - var updateLane = update.lane & -1073741825; - if ( - updateLane !== update.lane - ? (workInProgressRootRenderLanes & updateLane) === updateLane - : (renderLanes & updateLane) === updateLane - ) - null !== newBaseQueueLast && - (newBaseQueueLast = newBaseQueueLast.next = - { - lane: 0, - action: update.action, - hasEagerState: update.hasEagerState, - eagerState: update.eagerState, - next: null - }), - (updateLane = update.action), - shouldDoubleInvokeUserFnsInHooksDEV && reducer(current, updateLane), - (current = update.hasEagerState - ? update.eagerState - : reducer(current, updateLane)); - else { - var clone = { - lane: updateLane, - action: update.action, - hasEagerState: update.hasEagerState, - eagerState: update.eagerState, - next: null - }; - null === newBaseQueueLast - ? ((newBaseQueueFirst = newBaseQueueLast = clone), - (baseFirst = current)) - : (newBaseQueueLast = newBaseQueueLast.next = clone); - currentlyRenderingFiber.lanes |= updateLane; - workInProgressRootSkippedLanes |= updateLane; - } - update = update.next; - } while (null !== update && update !== pendingQueue); - null === newBaseQueueLast - ? (baseFirst = current) - : (newBaseQueueLast.next = newBaseQueueFirst); - objectIs(current, hook.memoizedState) || (didReceiveUpdate = !0); - hook.memoizedState = current; - hook.baseState = baseFirst; - hook.baseQueue = newBaseQueueLast; - queue.lastRenderedState = current; - } - null === baseQueue && (queue.lanes = 0); - return [hook.memoizedState, queue.dispatch]; -} -function rerenderReducer(reducer) { - var hook = updateWorkInProgressHook(), - queue = hook.queue; - if (null === queue) throw Error(formatProdErrorMessage(311)); - queue.lastRenderedReducer = reducer; - var dispatch = queue.dispatch, - lastRenderPhaseUpdate = queue.pending, - newState = hook.memoizedState; - if (null !== lastRenderPhaseUpdate) { - queue.pending = null; - var update = (lastRenderPhaseUpdate = lastRenderPhaseUpdate.next); - do (newState = reducer(newState, update.action)), (update = update.next); - while (update !== lastRenderPhaseUpdate); - objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); - hook.memoizedState = newState; - null === hook.baseQueue && (hook.baseState = newState); - queue.lastRenderedState = newState; - } - return [newState, dispatch]; -} -function readFromUnsubscribedMutableSource(root, source, getSnapshot) { - var getVersion = source._getVersion; - getVersion = getVersion(source._source); - var JSCompiler_inline_result = source._workInProgressVersionSecondary; - if (null !== JSCompiler_inline_result) - root = JSCompiler_inline_result === getVersion; - else if ( - ((root = root.mutableReadLanes), (root = (renderLanes & root) === root)) - ) - (source._workInProgressVersionSecondary = getVersion), - workInProgressSources.push(source); - if (root) return getSnapshot(source._source); - workInProgressSources.push(source); - throw Error(formatProdErrorMessage(350)); -} -function useMutableSource(hook, source, getSnapshot, subscribe) { - var root = workInProgressRoot; - if (null === root) throw Error(formatProdErrorMessage(349)); - var getVersion = source._getVersion, - version = getVersion(source._source), - dispatcher = ReactCurrentDispatcher$1.current, - _dispatcher$useState = dispatcher.useState(function () { - return readFromUnsubscribedMutableSource(root, source, getSnapshot); - }), - setSnapshot = _dispatcher$useState[1], - snapshot = _dispatcher$useState[0]; - _dispatcher$useState = workInProgressHook; - var memoizedState = hook.memoizedState, - refs = memoizedState.refs, - prevGetSnapshot = refs.getSnapshot, - prevSource = memoizedState.source; - memoizedState = memoizedState.subscribe; - var fiber = currentlyRenderingFiber; - hook.memoizedState = { refs: refs, source: source, subscribe: subscribe }; - dispatcher.useEffect( - function () { - refs.getSnapshot = getSnapshot; - refs.setSnapshot = setSnapshot; - var maybeNewVersion = getVersion(source._source); - objectIs(version, maybeNewVersion) || - ((maybeNewVersion = getSnapshot(source._source)), - objectIs(snapshot, maybeNewVersion) || - (setSnapshot(maybeNewVersion), - (maybeNewVersion = requestUpdateLane(fiber)), - (root.mutableReadLanes |= maybeNewVersion & root.pendingLanes)), - markRootEntangled(root, root.mutableReadLanes)); - }, - [getSnapshot, source, subscribe] - ); - dispatcher.useEffect( - function () { - return subscribe(source._source, function () { - var latestGetSnapshot = refs.getSnapshot, - latestSetSnapshot = refs.setSnapshot; - try { - latestSetSnapshot(latestGetSnapshot(source._source)); - var lane = requestUpdateLane(fiber); - root.mutableReadLanes |= lane & root.pendingLanes; - } catch (error) { - latestSetSnapshot(function () { - throw error; - }); - } - }); - }, - [source, subscribe] - ); - (objectIs(prevGetSnapshot, getSnapshot) && - objectIs(prevSource, source) && - objectIs(memoizedState, subscribe)) || - ((hook = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: basicStateReducer, - lastRenderedState: snapshot - }), - (hook.dispatch = setSnapshot = - dispatchSetState.bind(null, currentlyRenderingFiber, hook)), - (_dispatcher$useState.queue = hook), - (_dispatcher$useState.baseQueue = null), - (snapshot = readFromUnsubscribedMutableSource(root, source, getSnapshot)), - (_dispatcher$useState.memoizedState = _dispatcher$useState.baseState = - snapshot)); - return snapshot; -} -function updateMutableSource(source, getSnapshot, subscribe) { - var hook = updateWorkInProgressHook(); - return useMutableSource(hook, source, getSnapshot, subscribe); -} -function updateSyncExternalStore(subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber, - hook = updateWorkInProgressHook(), - nextSnapshot = getSnapshot(), - snapshotChanged = !objectIs( - (currentHook || hook).memoizedState, - nextSnapshot - ); - snapshotChanged && - ((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0)); - hook = hook.queue; - updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [ - subscribe - ]); - if ( - hook.getSnapshot !== getSnapshot || - snapshotChanged || - (null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1) - ) { - fiber.flags |= 2048; - pushEffect( - 9, - updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot), - void 0, - null - ); - subscribe = workInProgressRoot; - if (null === subscribe) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(subscribe, renderLanes) || - pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); - } - return nextSnapshot; -} -function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { - fiber.flags |= 16384; - fiber = { getSnapshot: getSnapshot, value: renderedSnapshot }; - getSnapshot = currentlyRenderingFiber.updateQueue; - null === getSnapshot - ? ((getSnapshot = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = getSnapshot), - (getSnapshot.stores = [fiber])) - : ((renderedSnapshot = getSnapshot.stores), - null === renderedSnapshot - ? (getSnapshot.stores = [fiber]) - : renderedSnapshot.push(fiber)); -} -function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { - inst.value = nextSnapshot; - inst.getSnapshot = getSnapshot; - checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); -} -function subscribeToStore(fiber, inst, subscribe) { - return subscribe(function () { - checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); - }); -} -function checkIfSnapshotChanged(inst) { - var latestGetSnapshot = inst.getSnapshot; - inst = inst.value; - try { - var nextValue = latestGetSnapshot(); - return !objectIs(inst, nextValue); - } catch (error) { - return !0; - } -} -function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 2); - null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); -} -function mountState(initialState) { - var hook = mountWorkInProgressHook(); - "function" === typeof initialState && (initialState = initialState()); - hook.memoizedState = hook.baseState = initialState; - initialState = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: basicStateReducer, - lastRenderedState: initialState - }; - hook.queue = initialState; - initialState = initialState.dispatch = dispatchSetState.bind( - null, - currentlyRenderingFiber, - initialState - ); - return [hook.memoizedState, initialState]; -} -function pushEffect(tag, create, destroy, deps) { - tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null }; - create = currentlyRenderingFiber.updateQueue; - null === create - ? ((create = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = create), - (create.lastEffect = tag.next = tag)) - : ((destroy = create.lastEffect), - null === destroy - ? (create.lastEffect = tag.next = tag) - : ((deps = destroy.next), - (destroy.next = tag), - (tag.next = deps), - (create.lastEffect = tag))); - return tag; -} -function updateRef() { - return updateWorkInProgressHook().memoizedState; -} -function mountEffectImpl(fiberFlags, hookFlags, create, deps) { - var hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= fiberFlags; - hook.memoizedState = pushEffect( - 1 | hookFlags, - create, - void 0, - void 0 === deps ? null : deps - ); -} -function updateEffectImpl(fiberFlags, hookFlags, create, deps) { - var hook = updateWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - var destroy = void 0; - if (null !== currentHook) { - var prevEffect = currentHook.memoizedState; - destroy = prevEffect.destroy; - if (null !== deps && areHookInputsEqual(deps, prevEffect.deps)) { - hook.memoizedState = pushEffect(hookFlags, create, destroy, deps); - return; - } - } - currentlyRenderingFiber.flags |= fiberFlags; - hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); -} -function mountEffect(create, deps) { - mountEffectImpl(8390656, 8, create, deps); -} -function updateEffect(create, deps) { - updateEffectImpl(2048, 8, create, deps); -} -function useEffectEventImpl(payload) { - currentlyRenderingFiber.flags |= 4; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; - if (null === componentUpdateQueue) - (componentUpdateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = componentUpdateQueue), - (componentUpdateQueue.events = [payload]); - else { - var events = componentUpdateQueue.events; - null === events - ? (componentUpdateQueue.events = [payload]) - : events.push(payload); - } -} -function updateEvent(callback) { - var ref = updateWorkInProgressHook().memoizedState; - useEffectEventImpl({ ref: ref, nextImpl: callback }); - return function () { - if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; -} -function updateInsertionEffect(create, deps) { - return updateEffectImpl(4, 2, create, deps); -} -function updateLayoutEffect(create, deps) { - return updateEffectImpl(4, 4, create, deps); -} -function imperativeHandleEffect(create, ref) { - if ("function" === typeof ref) - return ( - (create = create()), - ref(create), - function () { - ref(null); - } - ); - if (null !== ref && void 0 !== ref) - return ( - (create = create()), - (ref.current = create), - function () { - ref.current = null; - } - ); -} -function updateImperativeHandle(ref, create, deps) { - deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; - updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); -} -function mountDebugValue() {} -function updateCallback(callback, deps) { - var hook = updateWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - var prevState = hook.memoizedState; - if ( - null !== prevState && - null !== deps && - areHookInputsEqual(deps, prevState[1]) - ) - return prevState[0]; - hook.memoizedState = [callback, deps]; - return callback; -} -function updateMemo(nextCreate, deps) { - var hook = updateWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - var prevState = hook.memoizedState; - if ( - null !== prevState && - null !== deps && - areHookInputsEqual(deps, prevState[1]) - ) - return prevState[0]; - shouldDoubleInvokeUserFnsInHooksDEV && nextCreate(); - nextCreate = nextCreate(); - hook.memoizedState = [nextCreate, deps]; - return nextCreate; -} -function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 42)) - return ( - hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), - (hook.memoizedState = value) - ); - objectIs(value, prevValue) || - ((value = claimNextTransitionLane()), - (currentlyRenderingFiber.lanes |= value), - (workInProgressRootSkippedLanes |= value), - (hook.baseState = !0)); - return prevValue; -} -function startTransition(setPending, callback, options) { - var previousPriority = currentUpdatePriority; - currentUpdatePriority = - 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; - setPending(!0); - var prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = {}; - enableTransitionTracing && - void 0 !== options && - void 0 !== options.name && - ((ReactCurrentBatchConfig.transition.name = options.name), - (ReactCurrentBatchConfig.transition.startTime = now())); - try { - setPending(!1), callback(); - } finally { - (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig.transition = prevTransition); - } -} -function updateId() { - return updateWorkInProgressHook().memoizedState; -} -function updateRefresh() { - return updateWorkInProgressHook().memoizedState; -} -function refreshCache(fiber, seedKey, seedValue) { - for (var provider = fiber.return; null !== provider; ) { - switch (provider.tag) { - case 24: - case 3: - var lane = requestUpdateLane(provider), - eventTime = requestEventTime(); - fiber = createUpdate(eventTime, lane); - var root = enqueueUpdate$1(provider, fiber, lane); - null !== root && - (scheduleUpdateOnFiber(root, provider, lane, eventTime), - entangleTransitions(root, provider, lane)); - provider = createCache(); - null !== seedKey && - void 0 !== seedKey && - null !== root && - provider.data.set(seedKey, seedValue); - fiber.payload = { cache: provider }; - return; - } - provider = provider.return; - } -} -function dispatchReducerAction(fiber, queue, action) { - var lane = requestUpdateLane(fiber); - action = { - lane: lane, - action: action, - hasEagerState: !1, - eagerState: null, - next: null - }; - if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, action); - else if ( - (enqueueUpdate(fiber, queue, action, lane), - (action = getRootForUpdatedFiber(fiber)), - null !== action) - ) { - var eventTime = requestEventTime(); - scheduleUpdateOnFiber(action, fiber, lane, eventTime); - entangleTransitionUpdate(action, queue, lane); - } -} -function dispatchSetState(fiber, queue, action) { - var lane = requestUpdateLane(fiber), - update = { - lane: lane, - action: action, - hasEagerState: !1, - eagerState: null, - next: null - }; - if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update); - else { - var alternate = fiber.alternate; - if ( - 0 === fiber.lanes && - (null === alternate || 0 === alternate.lanes) && - ((alternate = queue.lastRenderedReducer), null !== alternate) - ) - try { - var currentState = queue.lastRenderedState, - eagerState = alternate(currentState, action); - update.hasEagerState = !0; - update.eagerState = eagerState; - if (objectIs(eagerState, currentState)) { - enqueueUpdate(fiber, queue, update, 0); - null === workInProgressRoot && finishQueueingConcurrentUpdates(); - return; - } - } catch (error) { - } finally { - } - enqueueUpdate(fiber, queue, update, lane); - action = getRootForUpdatedFiber(fiber); - null !== action && - ((update = requestEventTime()), - scheduleUpdateOnFiber(action, fiber, lane, update), - entangleTransitionUpdate(action, queue, lane)); - } -} -function isRenderPhaseUpdate(fiber) { - var alternate = fiber.alternate; - return ( - fiber === currentlyRenderingFiber || - (null !== alternate && alternate === currentlyRenderingFiber) - ); -} -function enqueueRenderPhaseUpdate(queue, update) { - didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = - !0; - var pending = queue.pending; - null === pending - ? (update.next = update) - : ((update.next = pending.next), (pending.next = update)); - queue.pending = update; -} -function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 8388480)) { - var queueLanes = queue.lanes; - queueLanes &= root.pendingLanes; - lane |= queueLanes; - queue.lanes = lane; - markRootEntangled(root, lane); - } -} -var ContextOnlyDispatcher = { - readContext: readContext, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useMutableSource: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError -}; -ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; -ContextOnlyDispatcher.use = throwInvalidHookError; -ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; -ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; -var HooksDispatcherOnMount = { - readContext: readContext, - useCallback: function (callback, deps) { - mountWorkInProgressHook().memoizedState = [ - callback, - void 0 === deps ? null : deps - ]; - return callback; - }, - useContext: readContext, - useEffect: mountEffect, - useImperativeHandle: function (ref, create, deps) { - deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; - mountEffectImpl( - 4194308, - 4, - imperativeHandleEffect.bind(null, create, ref), - deps - ); - }, - useLayoutEffect: function (create, deps) { - return mountEffectImpl(4194308, 4, create, deps); - }, - useInsertionEffect: function (create, deps) { - mountEffectImpl(4, 2, create, deps); - }, - useMemo: function (nextCreate, deps) { - var hook = mountWorkInProgressHook(); - deps = void 0 === deps ? null : deps; - shouldDoubleInvokeUserFnsInHooksDEV && nextCreate(); - nextCreate = nextCreate(); - hook.memoizedState = [nextCreate, deps]; - return nextCreate; - }, - useReducer: function (reducer, initialArg, init) { - var hook = mountWorkInProgressHook(); - initialArg = void 0 !== init ? init(initialArg) : initialArg; - hook.memoizedState = hook.baseState = initialArg; - reducer = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: reducer, - lastRenderedState: initialArg - }; - hook.queue = reducer; - reducer = reducer.dispatch = dispatchReducerAction.bind( - null, - currentlyRenderingFiber, - reducer - ); - return [hook.memoizedState, reducer]; - }, - useRef: function (initialValue) { - var hook = mountWorkInProgressHook(); - if (enableUseRefAccessWarning) - return ( - (initialValue = { current: initialValue }), - (hook.memoizedState = initialValue) - ); - initialValue = { current: initialValue }; - return (hook.memoizedState = initialValue); - }, - useState: mountState, - useDebugValue: mountDebugValue, - useDeferredValue: function (value) { - return (mountWorkInProgressHook().memoizedState = value); - }, - useTransition: function () { - var _mountState = mountState(!1), - isPending = _mountState[0]; - _mountState = startTransition.bind(null, _mountState[1]); - mountWorkInProgressHook().memoizedState = _mountState; - return [isPending, _mountState]; - }, - useMutableSource: function (source, getSnapshot, subscribe) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = { - refs: { getSnapshot: getSnapshot, setSnapshot: null }, - source: source, - subscribe: subscribe - }; - return useMutableSource(hook, source, getSnapshot, subscribe); - }, - useSyncExternalStore: function (subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber, - hook = mountWorkInProgressHook(); - var nextSnapshot = getSnapshot(); - var root = workInProgressRoot; - if (null === root) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root, renderLanes) || - pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); - hook.memoizedState = nextSnapshot; - root = { value: nextSnapshot, getSnapshot: getSnapshot }; - hook.queue = root; - mountEffect(subscribeToStore.bind(null, fiber, root, subscribe), [ - subscribe - ]); - fiber.flags |= 2048; - pushEffect( - 9, - updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot), - void 0, - null - ); - return nextSnapshot; - }, - useId: function () { - var hook = mountWorkInProgressHook(), - identifierPrefix = workInProgressRoot.identifierPrefix, - globalClientId = globalClientIdCounter++; - identifierPrefix = - ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; - return (hook.memoizedState = identifierPrefix); - }, - useCacheRefresh: function () { - return (mountWorkInProgressHook().memoizedState = refreshCache.bind( - null, - currentlyRenderingFiber - )); - } -}; -HooksDispatcherOnMount.use = use; -HooksDispatcherOnMount.useMemoCache = useMemoCache; -HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; -}; -var HooksDispatcherOnUpdate = { - readContext: readContext, - useCallback: updateCallback, - useContext: readContext, - useEffect: updateEffect, - useImperativeHandle: updateImperativeHandle, - useInsertionEffect: updateInsertionEffect, - useLayoutEffect: updateLayoutEffect, - useMemo: updateMemo, - useReducer: updateReducer, - useRef: updateRef, - useState: function () { - return updateReducer(basicStateReducer); - }, - useDebugValue: mountDebugValue, - useDeferredValue: function (value) { - var hook = updateWorkInProgressHook(); - return updateDeferredValueImpl(hook, currentHook.memoizedState, value); - }, - useTransition: function () { - var isPending = updateReducer(basicStateReducer)[0], - start = updateWorkInProgressHook().memoizedState; - return [isPending, start]; - }, - useMutableSource: updateMutableSource, - useSyncExternalStore: updateSyncExternalStore, - useId: updateId -}; -HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; -HooksDispatcherOnUpdate.useMemoCache = useMemoCache; -HooksDispatcherOnUpdate.use = use; -HooksDispatcherOnUpdate.useEffectEvent = updateEvent; -var HooksDispatcherOnRerender = { - readContext: readContext, - useCallback: updateCallback, - useContext: readContext, - useEffect: updateEffect, - useImperativeHandle: updateImperativeHandle, - useInsertionEffect: updateInsertionEffect, - useLayoutEffect: updateLayoutEffect, - useMemo: updateMemo, - useReducer: rerenderReducer, - useRef: updateRef, - useState: function () { - return rerenderReducer(basicStateReducer); - }, - useDebugValue: mountDebugValue, - useDeferredValue: function (value) { - var hook = updateWorkInProgressHook(); - return null === currentHook - ? (hook.memoizedState = value) - : updateDeferredValueImpl(hook, currentHook.memoizedState, value); - }, - useTransition: function () { - var isPending = rerenderReducer(basicStateReducer)[0], - start = updateWorkInProgressHook().memoizedState; - return [isPending, start]; - }, - useMutableSource: updateMutableSource, - useSyncExternalStore: updateSyncExternalStore, - useId: updateId -}; -HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; -HooksDispatcherOnRerender.use = use; -HooksDispatcherOnRerender.useMemoCache = useMemoCache; -HooksDispatcherOnRerender.useEffectEvent = updateEvent; -function resolveDefaultProps(Component, baseProps) { - if (Component && Component.defaultProps) { - baseProps = assign({}, baseProps); - Component = Component.defaultProps; - for (var propName in Component) - void 0 === baseProps[propName] && - (baseProps[propName] = Component[propName]); - return baseProps; - } - return baseProps; -} -function applyDerivedStateFromProps( - workInProgress, - ctor, - getDerivedStateFromProps, - nextProps -) { - ctor = workInProgress.memoizedState; - getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor); - getDerivedStateFromProps = - null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps - ? ctor - : assign({}, ctor, getDerivedStateFromProps); - workInProgress.memoizedState = getDerivedStateFromProps; - 0 === workInProgress.lanes && - (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 eventTime = requestEventTime(), - lane = requestUpdateLane(inst), - update = createUpdate(eventTime, lane); - update.payload = payload; - void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); - null !== payload && - (scheduleUpdateOnFiber(payload, inst, lane, eventTime), - entangleTransitions(payload, inst, lane)); - }, - enqueueReplaceState: function (inst, payload, callback) { - inst = inst._reactInternals; - var eventTime = requestEventTime(), - lane = requestUpdateLane(inst), - update = createUpdate(eventTime, lane); - update.tag = 1; - update.payload = payload; - void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); - null !== payload && - (scheduleUpdateOnFiber(payload, inst, lane, eventTime), - entangleTransitions(payload, inst, lane)); - }, - enqueueForceUpdate: function (inst, callback) { - inst = inst._reactInternals; - var eventTime = requestEventTime(), - lane = requestUpdateLane(inst), - update = createUpdate(eventTime, lane); - update.tag = 2; - void 0 !== callback && null !== callback && (update.callback = callback); - callback = enqueueUpdate$1(inst, update, lane); - null !== callback && - (scheduleUpdateOnFiber(callback, inst, lane, eventTime), - entangleTransitions(callback, inst, lane)); - } -}; -function checkShouldComponentUpdate( - workInProgress, - ctor, - oldProps, - newProps, - oldState, - newState, - nextContext -) { - workInProgress = workInProgress.stateNode; - return "function" === typeof workInProgress.shouldComponentUpdate - ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) - : ctor.prototype && ctor.prototype.isPureReactComponent - ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) - : !0; -} -function constructClassInstance(workInProgress, ctor, props) { - var isLegacyContextConsumer = !1, - unmaskedContext = emptyContextObject; - var context = ctor.contextType; - "object" === typeof context && null !== context - ? (context = readContext(context)) - : ((unmaskedContext = isContextProvider(ctor) - ? previousContext - : contextStackCursor.current), - (isLegacyContextConsumer = ctor.contextTypes), - (context = (isLegacyContextConsumer = - null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer) - ? getMaskedContext(workInProgress, unmaskedContext) - : emptyContextObject)); - ctor = new ctor(props, context); - workInProgress.memoizedState = - null !== ctor.state && void 0 !== ctor.state ? ctor.state : null; - ctor.updater = classComponentUpdater; - workInProgress.stateNode = ctor; - ctor._reactInternals = workInProgress; - isLegacyContextConsumer && - ((workInProgress = workInProgress.stateNode), - (workInProgress.__reactInternalMemoizedUnmaskedChildContext = - unmaskedContext), - (workInProgress.__reactInternalMemoizedMaskedChildContext = context)); - return ctor; -} -function callComponentWillReceiveProps( - workInProgress, - instance, - newProps, - nextContext -) { - workInProgress = instance.state; - "function" === typeof instance.componentWillReceiveProps && - instance.componentWillReceiveProps(newProps, nextContext); - "function" === typeof instance.UNSAFE_componentWillReceiveProps && - instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); - instance.state !== workInProgress && - classComponentUpdater.enqueueReplaceState(instance, instance.state, null); -} -function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { - var instance = workInProgress.stateNode; - instance.props = newProps; - instance.state = workInProgress.memoizedState; - instance.refs = {}; - initializeUpdateQueue(workInProgress); - var contextType = ctor.contextType; - "object" === typeof contextType && null !== contextType - ? (instance.context = readContext(contextType)) - : ((contextType = isContextProvider(ctor) - ? previousContext - : contextStackCursor.current), - (instance.context = getMaskedContext(workInProgress, contextType))); - instance.state = workInProgress.memoizedState; - contextType = ctor.getDerivedStateFromProps; - "function" === typeof contextType && - (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps), - (instance.state = workInProgress.memoizedState)); - "function" === typeof ctor.getDerivedStateFromProps || - "function" === typeof instance.getSnapshotBeforeUpdate || - ("function" !== typeof instance.UNSAFE_componentWillMount && - "function" !== typeof instance.componentWillMount) || - ((ctor = instance.state), - "function" === typeof instance.componentWillMount && - instance.componentWillMount(), - "function" === typeof instance.UNSAFE_componentWillMount && - instance.UNSAFE_componentWillMount(), - ctor !== instance.state && - classComponentUpdater.enqueueReplaceState(instance, instance.state, null), - processUpdateQueue(workInProgress, newProps, instance, renderLanes), - (instance.state = workInProgress.memoizedState)); - "function" === typeof instance.componentDidMount && - (workInProgress.flags |= 4194308); -} -function createCapturedValueAtFiber(value, source) { - try { - var info = "", - node = source; - do (info += describeFiber(node)), (node = node.return); - while (node); - var JSCompiler_inline_result = info; - } catch (x) { - JSCompiler_inline_result = - "\nError generating stack: " + x.message + "\n" + x.stack; - } - return { - value: value, - source: source, - stack: JSCompiler_inline_result, - digest: null - }; -} -function createCapturedValue(value, digest, stack) { - return { - value: value, - source: null, - stack: null != stack ? stack : null, - digest: null != digest ? digest : null - }; -} -var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); -if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) - throw Error(formatProdErrorMessage(320)); -function logCapturedError(boundary, errorInfo) { - try { - !1 !== - ReactFiberErrorDialogWWW.showErrorDialog({ - componentStack: null !== errorInfo.stack ? errorInfo.stack : "", - error: errorInfo.value, - errorBoundary: - null !== boundary && 1 === boundary.tag ? boundary.stateNode : null - }) && console.error(errorInfo.value); - } catch (e) { - setTimeout(function () { - throw e; - }); - } -} -function createRootErrorUpdate(fiber, errorInfo, lane) { - lane = createUpdate(-1, lane); - lane.tag = 3; - lane.payload = { element: null }; - var error = errorInfo.value; - lane.callback = function () { - hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error)); - logCapturedError(fiber, errorInfo); - }; - return lane; -} -function createClassErrorUpdate(fiber, errorInfo, lane) { - lane = createUpdate(-1, lane); - lane.tag = 3; - var getDerivedStateFromError = fiber.type.getDerivedStateFromError; - if ("function" === typeof getDerivedStateFromError) { - var error = errorInfo.value; - lane.payload = function () { - return getDerivedStateFromError(error); - }; - lane.callback = function () { - logCapturedError(fiber, errorInfo); - }; - } - var inst = fiber.stateNode; - null !== inst && - "function" === typeof inst.componentDidCatch && - (lane.callback = function () { - logCapturedError(fiber, errorInfo); - "function" !== typeof getDerivedStateFromError && - (null === legacyErrorBoundariesThatAlreadyFailed - ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this])) - : legacyErrorBoundariesThatAlreadyFailed.add(this)); - var stack = errorInfo.stack; - this.componentDidCatch(errorInfo.value, { - componentStack: null !== stack ? stack : "" - }); - }); - return lane; -} -function processTransitionCallbacks(pendingTransitions, endTime, callbacks) { - if (enableTransitionTracing && null !== pendingTransitions) { - var transitionStart = pendingTransitions.transitionStart, - onTransitionStart = callbacks.onTransitionStart; - null !== transitionStart && - null != onTransitionStart && - transitionStart.forEach(function (transition) { - return onTransitionStart(transition.name, transition.startTime); - }); - transitionStart = pendingTransitions.markerProgress; - var onMarkerProgress = callbacks.onMarkerProgress; - null != onMarkerProgress && - null !== transitionStart && - transitionStart.forEach(function (markerInstance, markerName) { - if (null !== markerInstance.transitions) { - var pending = - null !== markerInstance.pendingBoundaries - ? Array.from(markerInstance.pendingBoundaries.values()) - : []; - markerInstance.transitions.forEach(function (transition) { - onMarkerProgress( - transition.name, - markerName, - transition.startTime, - endTime, - pending - ); - }); - } - }); - transitionStart = pendingTransitions.markerComplete; - var onMarkerComplete = callbacks.onMarkerComplete; - null !== transitionStart && - null != onMarkerComplete && - transitionStart.forEach(function (transitions, markerName) { - transitions.forEach(function (transition) { - onMarkerComplete( - transition.name, - markerName, - transition.startTime, - endTime - ); - }); - }); - transitionStart = pendingTransitions.markerIncomplete; - var onMarkerIncomplete = callbacks.onMarkerIncomplete; - null != onMarkerIncomplete && - null !== transitionStart && - transitionStart.forEach(function (_ref, markerName) { - var aborts = _ref.aborts; - _ref.transitions.forEach(function (transition) { - var filteredAborts = []; - aborts.forEach(function (abort) { - switch (abort.reason) { - case "marker": - filteredAborts.push({ - type: "marker", - name: abort.name, - endTime: endTime - }); - break; - case "suspense": - filteredAborts.push({ - type: "suspense", - name: abort.name, - endTime: endTime - }); - } - }); - 0 < filteredAborts.length && - onMarkerIncomplete( - transition.name, - markerName, - transition.startTime, - filteredAborts - ); - }); - }); - transitionStart = pendingTransitions.transitionProgress; - var onTransitionProgress = callbacks.onTransitionProgress; - null != onTransitionProgress && - null !== transitionStart && - transitionStart.forEach(function (pending, transition) { - onTransitionProgress( - transition.name, - transition.startTime, - endTime, - Array.from(pending.values()) - ); - }); - pendingTransitions = pendingTransitions.transitionComplete; - var onTransitionComplete = callbacks.onTransitionComplete; - null !== pendingTransitions && - null != onTransitionComplete && - pendingTransitions.forEach(function (transition) { - return onTransitionComplete( - transition.name, - transition.startTime, - endTime - ); - }); - } -} -var markerInstanceStack = createCursor(null); -function pushRootMarkerInstance(workInProgress) { - if (enableTransitionTracing) { - var transitions = workInProgressTransitions, - root = workInProgress.stateNode; - null !== transitions && - transitions.forEach(function (transition) { - if (!root.incompleteTransitions.has(transition)) { - var markerInstance = { - tag: 0, - transitions: new Set([transition]), - pendingBoundaries: null, - aborts: null, - name: null - }; - root.incompleteTransitions.set(transition, markerInstance); - } - }); - var markerInstances = []; - root.incompleteTransitions.forEach(function (markerInstance) { - markerInstances.push(markerInstance); - }); - push(markerInstanceStack, markerInstances); - } -} -function pushMarkerInstance(workInProgress, markerInstance) { - enableTransitionTracing && - (null === markerInstanceStack.current - ? push(markerInstanceStack, [markerInstance]) - : push( - markerInstanceStack, - markerInstanceStack.current.concat(markerInstance) - )); -} -var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, - SelectiveHydrationException = Error(formatProdErrorMessage(461)), - didReceiveUpdate = !1; -function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { - workInProgress.child = - null === current - ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) - : reconcileChildFibers( - workInProgress, - current.child, - nextChildren, - renderLanes - ); -} -function updateForwardRef( - current, - workInProgress, - Component, - nextProps, - renderLanes -) { - Component = Component.render; - var ref = workInProgress.ref; - prepareToReadContext(workInProgress, renderLanes); - nextProps = renderWithHooks( - current, - workInProgress, - Component, - nextProps, - ref, - renderLanes - ); - if (null !== current && !didReceiveUpdate) - return ( - bailoutHooks(current, workInProgress, renderLanes), - bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) - ); - workInProgress.flags |= 1; - reconcileChildren(current, workInProgress, nextProps, renderLanes); - return workInProgress.child; -} -function updateMemoComponent( - current, - workInProgress, - Component, - nextProps, - renderLanes -) { - if (null === current) { - var type = Component.type; - if ( - "function" === typeof type && - !shouldConstruct(type) && - void 0 === type.defaultProps && - null === Component.compare && - void 0 === Component.defaultProps - ) - return ( - (workInProgress.tag = 15), - (workInProgress.type = type), - updateSimpleMemoComponent( - current, - workInProgress, - type, - nextProps, - renderLanes - ) - ); - current = createFiberFromTypeAndProps( - Component.type, - null, - nextProps, - workInProgress, - workInProgress.mode, - renderLanes - ); - current.ref = workInProgress.ref; - current.return = workInProgress; - return (workInProgress.child = current); - } - type = current.child; - if (!checkScheduledUpdateOrContext(current, renderLanes)) { - var prevProps = type.memoizedProps; - Component = Component.compare; - Component = null !== Component ? Component : shallowEqual; - if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); - } - workInProgress.flags |= 1; - current = createWorkInProgress(type, nextProps); - current.ref = workInProgress.ref; - current.return = workInProgress; - return (workInProgress.child = current); -} -function updateSimpleMemoComponent( - current, - workInProgress, - Component, - nextProps, - renderLanes -) { - if (null !== current) { - var prevProps = current.memoizedProps; - if ( - shallowEqual(prevProps, nextProps) && - current.ref === workInProgress.ref - ) - if ( - ((didReceiveUpdate = !1), - (workInProgress.pendingProps = nextProps = prevProps), - checkScheduledUpdateOrContext(current, renderLanes)) - ) - 0 !== (current.flags & 131072) && (didReceiveUpdate = !0); - else - return ( - (workInProgress.lanes = current.lanes), - bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) - ); - } - return updateFunctionComponent( - current, - workInProgress, - Component, - nextProps, - renderLanes - ); -} -function updateOffscreenComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps, - nextChildren = nextProps.children, - nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), - prevState = null !== current ? current.memoizedState : null; - markRef(current, workInProgress); - if ( - "hidden" === nextProps.mode || - "unstable-defer-without-hiding" === nextProps.mode || - nextIsDetached - ) { - if (0 !== (workInProgress.flags & 128)) { - nextChildren = - null !== prevState ? prevState.baseLanes | renderLanes : renderLanes; - if (null !== current) { - prevState = workInProgress.child = current.child; - for (nextProps = 0; null !== prevState; ) - (nextProps = nextProps | prevState.lanes | prevState.childLanes), - (prevState = prevState.sibling); - workInProgress.childLanes = nextProps & ~nextChildren; - } else (workInProgress.childLanes = 0), (workInProgress.child = null); - return deferHiddenOffscreenComponent( - current, - workInProgress, - nextChildren, - renderLanes - ); - } - if (0 === (workInProgress.mode & 1)) - (workInProgress.memoizedState = { baseLanes: 0, cachePool: null }), - null !== current && pushTransition(workInProgress, null, null), - reuseHiddenContextOnStack(), - pushOffscreenSuspenseHandler(workInProgress); - else if (0 !== (renderLanes & 1073741824)) - (workInProgress.memoizedState = { baseLanes: 0, cachePool: null }), - null !== current && - pushTransition( - workInProgress, - null !== prevState ? prevState.cachePool : null, - null - ), - null !== prevState - ? pushHiddenContext(workInProgress, prevState) - : reuseHiddenContextOnStack(), - pushOffscreenSuspenseHandler(workInProgress); - else - return ( - (workInProgress.lanes = workInProgress.childLanes = 1073741824), - deferHiddenOffscreenComponent( - current, - workInProgress, - null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, - renderLanes - ) - ); - } else if (null !== prevState) { - nextProps = prevState.cachePool; - nextIsDetached = null; - if (enableTransitionTracing) { - var instance = workInProgress.stateNode; - null !== instance && - null != instance._transitions && - (nextIsDetached = Array.from(instance._transitions)); - } - pushTransition(workInProgress, nextProps, nextIsDetached); - pushHiddenContext(workInProgress, prevState); - reuseSuspenseHandlerOnStack(); - workInProgress.memoizedState = null; - } else - null !== current && pushTransition(workInProgress, null, null), - reuseHiddenContextOnStack(), - reuseSuspenseHandlerOnStack(); - reconcileChildren(current, workInProgress, nextChildren, renderLanes); - return workInProgress.child; -} -function deferHiddenOffscreenComponent( - current, - workInProgress, - nextBaseLanes, - renderLanes -) { - var JSCompiler_inline_result = peekCacheFromPool(); - JSCompiler_inline_result = - null === JSCompiler_inline_result - ? null - : { parent: CacheContext._currentValue2, pool: JSCompiler_inline_result }; - workInProgress.memoizedState = { - baseLanes: nextBaseLanes, - cachePool: JSCompiler_inline_result - }; - null !== current && pushTransition(workInProgress, null, null); - reuseHiddenContextOnStack(); - pushOffscreenSuspenseHandler(workInProgress); - enableLazyContextPropagation && - null !== current && - propagateParentContextChanges(current, workInProgress, renderLanes, !0); - return null; -} -function markRef(current, workInProgress) { - var ref = workInProgress.ref; - if ( - (null === current && null !== ref) || - (null !== current && current.ref !== ref) - ) - (workInProgress.flags |= 512), (workInProgress.flags |= 2097152); -} -function updateFunctionComponent( - current, - workInProgress, - Component, - nextProps, - renderLanes -) { - var context = isContextProvider(Component) - ? previousContext - : contextStackCursor.current; - context = getMaskedContext(workInProgress, context); - prepareToReadContext(workInProgress, renderLanes); - Component = renderWithHooks( - current, - workInProgress, - Component, - nextProps, - context, - renderLanes - ); - if (null !== current && !didReceiveUpdate) - return ( - bailoutHooks(current, workInProgress, renderLanes), - bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) - ); - workInProgress.flags |= 1; - reconcileChildren(current, workInProgress, Component, renderLanes); - return workInProgress.child; -} -function replayFunctionComponent( - current, - workInProgress, - nextProps, - Component, - renderLanes -) { - var context = isContextProvider(Component) - ? previousContext - : contextStackCursor.current; - context = getMaskedContext(workInProgress, context); - prepareToReadContext(workInProgress, renderLanes); - nextProps = renderWithHooksAgain( - workInProgress, - Component, - nextProps, - context - ); - finishRenderingHooks(current); - if (null !== current && !didReceiveUpdate) - return ( - bailoutHooks(current, workInProgress, renderLanes), - bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) - ); - workInProgress.flags |= 1; - reconcileChildren(current, workInProgress, nextProps, renderLanes); - return workInProgress.child; -} -function updateClassComponent( - current, - workInProgress, - Component, - nextProps, - renderLanes -) { - if (isContextProvider(Component)) { - var hasContext = !0; - pushContextProvider(workInProgress); - } else hasContext = !1; - prepareToReadContext(workInProgress, renderLanes); - if (null === workInProgress.stateNode) - resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), - constructClassInstance(workInProgress, Component, nextProps), - mountClassInstance(workInProgress, Component, nextProps, renderLanes), - (nextProps = !0); - else if (null === current) { - var instance = workInProgress.stateNode, - oldProps = workInProgress.memoizedProps; - instance.props = oldProps; - var oldContext = instance.context, - contextType = Component.contextType; - "object" === typeof contextType && null !== contextType - ? (contextType = readContext(contextType)) - : ((contextType = isContextProvider(Component) - ? previousContext - : contextStackCursor.current), - (contextType = getMaskedContext(workInProgress, contextType))); - var getDerivedStateFromProps = Component.getDerivedStateFromProps, - hasNewLifecycles = - "function" === typeof getDerivedStateFromProps || - "function" === typeof instance.getSnapshotBeforeUpdate; - hasNewLifecycles || - ("function" !== typeof instance.UNSAFE_componentWillReceiveProps && - "function" !== typeof instance.componentWillReceiveProps) || - ((oldProps !== nextProps || oldContext !== contextType) && - callComponentWillReceiveProps( - workInProgress, - instance, - nextProps, - contextType - )); - hasForceUpdate = !1; - var oldState = workInProgress.memoizedState; - instance.state = oldState; - processUpdateQueue(workInProgress, nextProps, instance, renderLanes); - oldContext = workInProgress.memoizedState; - oldProps !== nextProps || - oldState !== oldContext || - didPerformWorkStackCursor.current || - hasForceUpdate - ? ("function" === typeof getDerivedStateFromProps && - (applyDerivedStateFromProps( - workInProgress, - Component, - getDerivedStateFromProps, - nextProps - ), - (oldContext = workInProgress.memoizedState)), - (oldProps = - hasForceUpdate || - checkShouldComponentUpdate( - workInProgress, - Component, - oldProps, - nextProps, - oldState, - oldContext, - contextType - )) - ? (hasNewLifecycles || - ("function" !== typeof instance.UNSAFE_componentWillMount && - "function" !== typeof instance.componentWillMount) || - ("function" === typeof instance.componentWillMount && - instance.componentWillMount(), - "function" === typeof instance.UNSAFE_componentWillMount && - instance.UNSAFE_componentWillMount()), - "function" === typeof instance.componentDidMount && - (workInProgress.flags |= 4194308)) - : ("function" === typeof instance.componentDidMount && - (workInProgress.flags |= 4194308), - (workInProgress.memoizedProps = nextProps), - (workInProgress.memoizedState = oldContext)), - (instance.props = nextProps), - (instance.state = oldContext), - (instance.context = contextType), - (nextProps = oldProps)) - : ("function" === typeof instance.componentDidMount && - (workInProgress.flags |= 4194308), - (nextProps = !1)); - } else { - instance = workInProgress.stateNode; - cloneUpdateQueue(current, workInProgress); - oldProps = workInProgress.memoizedProps; - contextType = - workInProgress.type === workInProgress.elementType - ? oldProps - : resolveDefaultProps(workInProgress.type, oldProps); - instance.props = contextType; - hasNewLifecycles = workInProgress.pendingProps; - oldState = instance.context; - oldContext = Component.contextType; - "object" === typeof oldContext && null !== oldContext - ? (oldContext = readContext(oldContext)) - : ((oldContext = isContextProvider(Component) - ? previousContext - : contextStackCursor.current), - (oldContext = getMaskedContext(workInProgress, oldContext))); - var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps; - (getDerivedStateFromProps = - "function" === typeof getDerivedStateFromProps$jscomp$0 || - "function" === typeof instance.getSnapshotBeforeUpdate) || - ("function" !== typeof instance.UNSAFE_componentWillReceiveProps && - "function" !== typeof instance.componentWillReceiveProps) || - ((oldProps !== hasNewLifecycles || oldState !== oldContext) && - callComponentWillReceiveProps( - workInProgress, - instance, - nextProps, - oldContext - )); - hasForceUpdate = !1; - oldState = workInProgress.memoizedState; - instance.state = oldState; - processUpdateQueue(workInProgress, nextProps, instance, renderLanes); - var newState = workInProgress.memoizedState; - oldProps !== hasNewLifecycles || - oldState !== newState || - didPerformWorkStackCursor.current || - hasForceUpdate || - (enableLazyContextPropagation && - null !== current && - null !== current.dependencies && - checkIfContextChanged(current.dependencies)) - ? ("function" === typeof getDerivedStateFromProps$jscomp$0 && - (applyDerivedStateFromProps( - workInProgress, - Component, - getDerivedStateFromProps$jscomp$0, - nextProps - ), - (newState = workInProgress.memoizedState)), - (contextType = - hasForceUpdate || - checkShouldComponentUpdate( - workInProgress, - Component, - contextType, - nextProps, - oldState, - newState, - oldContext - ) || - (enableLazyContextPropagation && - null !== current && - null !== current.dependencies && - checkIfContextChanged(current.dependencies))) - ? (getDerivedStateFromProps || - ("function" !== typeof instance.UNSAFE_componentWillUpdate && - "function" !== typeof instance.componentWillUpdate) || - ("function" === typeof instance.componentWillUpdate && - instance.componentWillUpdate(nextProps, newState, oldContext), - "function" === typeof instance.UNSAFE_componentWillUpdate && - instance.UNSAFE_componentWillUpdate( - nextProps, - newState, - oldContext - )), - "function" === typeof instance.componentDidUpdate && - (workInProgress.flags |= 4), - "function" === typeof instance.getSnapshotBeforeUpdate && - (workInProgress.flags |= 1024)) - : ("function" !== typeof instance.componentDidUpdate || - (oldProps === current.memoizedProps && - oldState === current.memoizedState) || - (workInProgress.flags |= 4), - "function" !== typeof instance.getSnapshotBeforeUpdate || - (oldProps === current.memoizedProps && - oldState === current.memoizedState) || - (workInProgress.flags |= 1024), - (workInProgress.memoizedProps = nextProps), - (workInProgress.memoizedState = newState)), - (instance.props = nextProps), - (instance.state = newState), - (instance.context = oldContext), - (nextProps = contextType)) - : ("function" !== typeof instance.componentDidUpdate || - (oldProps === current.memoizedProps && - oldState === current.memoizedState) || - (workInProgress.flags |= 4), - "function" !== typeof instance.getSnapshotBeforeUpdate || - (oldProps === current.memoizedProps && - oldState === current.memoizedState) || - (workInProgress.flags |= 1024), - (nextProps = !1)); - } - return finishClassComponent( - current, - workInProgress, - Component, - nextProps, - hasContext, - renderLanes - ); -} -function finishClassComponent( - current, - workInProgress, - Component, - shouldUpdate, - hasContext, - renderLanes -) { - markRef(current, workInProgress); - var didCaptureError = 0 !== (workInProgress.flags & 128); - if (!shouldUpdate && !didCaptureError) - return ( - hasContext && invalidateContextProvider(workInProgress, Component, !1), - bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) - ); - shouldUpdate = workInProgress.stateNode; - ReactCurrentOwner$1.current = workInProgress; - var nextChildren = - didCaptureError && "function" !== typeof Component.getDerivedStateFromError - ? null - : shouldUpdate.render(); - workInProgress.flags |= 1; - null !== current && didCaptureError - ? ((workInProgress.child = reconcileChildFibers( - workInProgress, - current.child, - null, - renderLanes - )), - (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - nextChildren, - renderLanes - ))) - : reconcileChildren(current, workInProgress, nextChildren, renderLanes); - workInProgress.memoizedState = shouldUpdate.state; - hasContext && invalidateContextProvider(workInProgress, Component, !0); - return workInProgress.child; -} -function pushHostRootContext(workInProgress) { - var root = workInProgress.stateNode; - root.pendingContext - ? pushTopLevelContextObject( - workInProgress, - root.pendingContext, - root.pendingContext !== root.context - ) - : root.context && - pushTopLevelContextObject(workInProgress, root.context, !1); - pushHostContainer(workInProgress, root.containerInfo); -} -var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 }; -function mountSuspenseOffscreenState(renderLanes) { - return { baseLanes: renderLanes, cachePool: getSuspendedCache() }; -} -function updateSuspenseComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps, - showFallback = !1, - didSuspend = 0 !== (workInProgress.flags & 128), - JSCompiler_temp; - (JSCompiler_temp = didSuspend) || - (JSCompiler_temp = - null !== current && null === current.memoizedState - ? !1 - : 0 !== (suspenseStackCursor.current & 2)); - JSCompiler_temp && ((showFallback = !0), (workInProgress.flags &= -129)); - if (null === current) { - current = nextProps.children; - didSuspend = nextProps.fallback; - if (showFallback) - return ( - reuseSuspenseHandlerOnStack(), - (current = mountSuspenseFallbackChildren( - workInProgress, - current, - didSuspend, - renderLanes - )), - (nextProps = workInProgress.child), - (nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (workInProgress.memoizedState = SUSPENDED_MARKER), - enableTransitionTracing && - ((workInProgress = enableTransitionTracing - ? transitionStack.current - : null), - null !== workInProgress && - ((renderLanes = enableTransitionTracing - ? markerInstanceStack.current - : null), - (showFallback = nextProps.updateQueue), - null === showFallback - ? (nextProps.updateQueue = { - transitions: workInProgress, - markerInstances: renderLanes, - wakeables: null - }) - : ((showFallback.transitions = workInProgress), - (showFallback.markerInstances = renderLanes)))), - current - ); - if ("number" === typeof nextProps.unstable_expectedLoadTime) - return ( - reuseSuspenseHandlerOnStack(), - (current = mountSuspenseFallbackChildren( - workInProgress, - current, - didSuspend, - renderLanes - )), - (workInProgress.child.memoizedState = - mountSuspenseOffscreenState(renderLanes)), - (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 8388608), - current - ); - pushPrimaryTreeSuspenseHandler(workInProgress); - return mountSuspensePrimaryChildren(workInProgress, current); - } - JSCompiler_temp = current.memoizedState; - if (null !== JSCompiler_temp) { - var dehydrated = JSCompiler_temp.dehydrated; - if (null !== dehydrated) - return updateDehydratedSuspenseComponent( - current, - workInProgress, - didSuspend, - nextProps, - dehydrated, - JSCompiler_temp, - renderLanes - ); - } - if (showFallback) { - reuseSuspenseHandlerOnStack(); - showFallback = nextProps.fallback; - didSuspend = workInProgress.mode; - JSCompiler_temp = current.child; - dehydrated = JSCompiler_temp.sibling; - var primaryChildProps = { mode: "hidden", children: nextProps.children }; - 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp - ? ((nextProps = workInProgress.child), - (nextProps.childLanes = 0), - (nextProps.pendingProps = primaryChildProps), - (workInProgress.deletions = null)) - : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), - (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 14680064)); - null !== dehydrated - ? (showFallback = createWorkInProgress(dehydrated, showFallback)) - : ((showFallback = createFiberFromFragment( - showFallback, - didSuspend, - renderLanes, - null - )), - (showFallback.flags |= 2)); - showFallback.return = workInProgress; - nextProps.return = workInProgress; - nextProps.sibling = showFallback; - workInProgress.child = nextProps; - nextProps = showFallback; - showFallback = workInProgress.child; - didSuspend = current.child.memoizedState; - null === didSuspend - ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) - : ((JSCompiler_temp = didSuspend.cachePool), - null !== JSCompiler_temp - ? ((dehydrated = CacheContext._currentValue2), - (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated - ? { parent: dehydrated, pool: dehydrated } - : JSCompiler_temp)) - : (JSCompiler_temp = getSuspendedCache()), - (didSuspend = { - baseLanes: didSuspend.baseLanes | renderLanes, - cachePool: JSCompiler_temp - })); - showFallback.memoizedState = didSuspend; - enableTransitionTracing && - ((didSuspend = enableTransitionTracing ? transitionStack.current : null), - null !== didSuspend && - ((JSCompiler_temp = enableTransitionTracing - ? markerInstanceStack.current - : null), - (dehydrated = showFallback.updateQueue), - (primaryChildProps = current.updateQueue), - null === dehydrated - ? (showFallback.updateQueue = { - transitions: didSuspend, - markerInstances: JSCompiler_temp, - wakeables: null - }) - : dehydrated === primaryChildProps - ? (showFallback.updateQueue = { - transitions: didSuspend, - markerInstances: JSCompiler_temp, - wakeables: - null !== primaryChildProps ? primaryChildProps.wakeables : null - }) - : ((dehydrated.transitions = didSuspend), - (dehydrated.markerInstances = JSCompiler_temp)))); - showFallback.childLanes = current.childLanes & ~renderLanes; - workInProgress.memoizedState = SUSPENDED_MARKER; - return nextProps; - } - pushPrimaryTreeSuspenseHandler(workInProgress); - showFallback = current.child; - current = showFallback.sibling; - nextProps = createWorkInProgress(showFallback, { - mode: "visible", - children: nextProps.children - }); - 0 === (workInProgress.mode & 1) && (nextProps.lanes = renderLanes); - nextProps.return = workInProgress; - nextProps.sibling = null; - null !== current && - ((renderLanes = workInProgress.deletions), - null === renderLanes - ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : renderLanes.push(current)); - workInProgress.child = nextProps; - workInProgress.memoizedState = null; - return nextProps; -} -function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { - primaryChildren = createFiberFromOffscreen( - { mode: "visible", children: primaryChildren }, - workInProgress.mode, - 0, - null - ); - primaryChildren.return = workInProgress; - return (workInProgress.child = primaryChildren); -} -function mountSuspenseFallbackChildren( - workInProgress, - primaryChildren, - fallbackChildren, - renderLanes -) { - var mode = workInProgress.mode, - progressedPrimaryFragment = workInProgress.child; - primaryChildren = { mode: "hidden", children: primaryChildren }; - 0 === (mode & 1) && null !== progressedPrimaryFragment - ? ((progressedPrimaryFragment.childLanes = 0), - (progressedPrimaryFragment.pendingProps = primaryChildren)) - : (progressedPrimaryFragment = createFiberFromOffscreen( - primaryChildren, - mode, - 0, - null - )); - fallbackChildren = createFiberFromFragment( - fallbackChildren, - mode, - renderLanes, - null - ); - progressedPrimaryFragment.return = workInProgress; - fallbackChildren.return = workInProgress; - progressedPrimaryFragment.sibling = fallbackChildren; - workInProgress.child = progressedPrimaryFragment; - return fallbackChildren; -} -function retrySuspenseComponentWithoutHydrating( - current, - workInProgress, - renderLanes, - recoverableError -) { - null !== recoverableError && - (null === hydrationErrors - ? (hydrationErrors = [recoverableError]) - : hydrationErrors.push(recoverableError)); - reconcileChildFibers(workInProgress, current.child, null, renderLanes); - current = mountSuspensePrimaryChildren( - workInProgress, - workInProgress.pendingProps.children - ); - current.flags |= 2; - workInProgress.memoizedState = null; - return current; -} -function updateDehydratedSuspenseComponent( - current, - workInProgress, - didSuspend, - nextProps, - suspenseInstance, - suspenseState, - renderLanes -) { - if (didSuspend) { - if (workInProgress.flags & 256) - return ( - pushPrimaryTreeSuspenseHandler(workInProgress), - (workInProgress.flags &= -257), - (suspenseState = createCapturedValue( - Error(formatProdErrorMessage(422)) - )), - retrySuspenseComponentWithoutHydrating( - current, - workInProgress, - renderLanes, - suspenseState - ) - ); - if (null !== workInProgress.memoizedState) - return ( - reuseSuspenseHandlerOnStack(), - (workInProgress.child = current.child), - (workInProgress.flags |= 128), - null - ); - reuseSuspenseHandlerOnStack(); - suspenseState = nextProps.fallback; - didSuspend = workInProgress.mode; - nextProps = createFiberFromOffscreen( - { mode: "visible", children: nextProps.children }, - didSuspend, - 0, - null - ); - suspenseState = createFiberFromFragment( - suspenseState, - didSuspend, - renderLanes, - null - ); - suspenseState.flags |= 2; - nextProps.return = workInProgress; - suspenseState.return = workInProgress; - nextProps.sibling = suspenseState; - workInProgress.child = nextProps; - 0 !== (workInProgress.mode & 1) && - reconcileChildFibers(workInProgress, current.child, null, renderLanes); - workInProgress.child.memoizedState = - mountSuspenseOffscreenState(renderLanes); - workInProgress.memoizedState = SUSPENDED_MARKER; - return suspenseState; - } - pushPrimaryTreeSuspenseHandler(workInProgress); - if (0 === (workInProgress.mode & 1)) - return retrySuspenseComponentWithoutHydrating( - current, - workInProgress, - renderLanes, - null - ); - if (shim()) - return ( - (suspenseState = shim().digest), - (nextProps = Error(formatProdErrorMessage(419))), - (nextProps.digest = suspenseState), - (suspenseState = createCapturedValue(nextProps, suspenseState, void 0)), - retrySuspenseComponentWithoutHydrating( - current, - workInProgress, - renderLanes, - suspenseState - ) - ); - enableLazyContextPropagation && - !didReceiveUpdate && - propagateParentContextChanges(current, workInProgress, renderLanes, !1); - didSuspend = 0 !== (renderLanes & current.childLanes); - if (didReceiveUpdate || didSuspend) { - nextProps = workInProgressRoot; - if (null !== nextProps) { - didSuspend = renderLanes & -renderLanes; - if (enableUnifiedSyncLane && 0 !== (didSuspend & 42)) didSuspend = 1; - else - switch (didSuspend) { - case 2: - didSuspend = 1; - break; - case 8: - didSuspend = 4; - break; - case 32: - didSuspend = 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: - case 67108864: - didSuspend = 64; - break; - case 536870912: - didSuspend = 268435456; - break; - default: - didSuspend = 0; - } - didSuspend = - 0 !== (didSuspend & (nextProps.suspendedLanes | renderLanes)) - ? 0 - : didSuspend; - if (0 !== didSuspend && didSuspend !== suspenseState.retryLane) - throw ( - ((suspenseState.retryLane = didSuspend), - enqueueConcurrentRenderForLane(current, didSuspend), - scheduleUpdateOnFiber(nextProps, current, didSuspend, -1), - SelectiveHydrationException) - ); - } - renderDidSuspendDelayIfPossible(); - return retrySuspenseComponentWithoutHydrating( - current, - workInProgress, - renderLanes, - null - ); - } - if (shim()) - return ( - (workInProgress.flags |= 128), - (workInProgress.child = current.child), - retryDehydratedSuspenseBoundary.bind(null, current), - shim(), - null - ); - current = mountSuspensePrimaryChildren(workInProgress, nextProps.children); - current.flags |= 4096; - return current; -} -function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { - fiber.lanes |= renderLanes; - var alternate = fiber.alternate; - null !== alternate && (alternate.lanes |= renderLanes); - scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); -} -function initSuspenseListRenderState( - workInProgress, - isBackwards, - tail, - lastContentRow, - tailMode -) { - var renderState = workInProgress.memoizedState; - null === renderState - ? (workInProgress.memoizedState = { - isBackwards: isBackwards, - rendering: null, - renderingStartTime: 0, - last: lastContentRow, - tail: tail, - tailMode: tailMode - }) - : ((renderState.isBackwards = isBackwards), - (renderState.rendering = null), - (renderState.renderingStartTime = 0), - (renderState.last = lastContentRow), - (renderState.tail = tail), - (renderState.tailMode = tailMode)); -} -function updateSuspenseListComponent(current, workInProgress, renderLanes) { - var nextProps = workInProgress.pendingProps, - revealOrder = nextProps.revealOrder, - tailMode = nextProps.tail; - reconcileChildren(current, workInProgress, nextProps.children, renderLanes); - nextProps = suspenseStackCursor.current; - if (0 !== (nextProps & 2)) - (nextProps = (nextProps & 1) | 2), (workInProgress.flags |= 128); - else { - if (null !== current && 0 !== (current.flags & 128)) - a: for (current = workInProgress.child; null !== current; ) { - if (13 === current.tag) - null !== current.memoizedState && - scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress); - else if (19 === current.tag) - scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress); - else if (null !== current.child) { - current.child.return = current; - current = current.child; - continue; - } - if (current === workInProgress) break a; - for (; null === current.sibling; ) { - if (null === current.return || current.return === workInProgress) - break a; - current = current.return; - } - current.sibling.return = current.return; - current = current.sibling; - } - nextProps &= 1; - } - push(suspenseStackCursor, nextProps); - if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null; - else - switch (revealOrder) { - case "forwards": - renderLanes = workInProgress.child; - for (revealOrder = null; null !== renderLanes; ) - (current = renderLanes.alternate), - null !== current && - null === findFirstSuspended(current) && - (revealOrder = renderLanes), - (renderLanes = renderLanes.sibling); - renderLanes = revealOrder; - null === renderLanes - ? ((revealOrder = workInProgress.child), - (workInProgress.child = null)) - : ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null)); - initSuspenseListRenderState( - workInProgress, - !1, - revealOrder, - renderLanes, - tailMode - ); - break; - case "backwards": - renderLanes = null; - revealOrder = workInProgress.child; - for (workInProgress.child = null; null !== revealOrder; ) { - current = revealOrder.alternate; - if (null !== current && null === findFirstSuspended(current)) { - workInProgress.child = revealOrder; - break; - } - current = revealOrder.sibling; - revealOrder.sibling = renderLanes; - renderLanes = revealOrder; - revealOrder = current; - } - initSuspenseListRenderState( - workInProgress, - !0, - renderLanes, - null, - tailMode - ); - break; - case "together": - initSuspenseListRenderState(workInProgress, !1, null, null, void 0); - break; - default: - workInProgress.memoizedState = null; - } - return workInProgress.child; -} -function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) { - 0 === (workInProgress.mode & 1) && - null !== current && - ((current.alternate = null), - (workInProgress.alternate = null), - (workInProgress.flags |= 2)); -} -function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { - null !== current && (workInProgress.dependencies = current.dependencies); - workInProgressRootSkippedLanes |= workInProgress.lanes; - if (0 === (renderLanes & workInProgress.childLanes)) - if (enableLazyContextPropagation && null !== current) { - if ( - (propagateParentContextChanges( - current, - workInProgress, - renderLanes, - !1 - ), - 0 === (renderLanes & workInProgress.childLanes)) - ) - return null; - } else return null; - if (null !== current && workInProgress.child !== current.child) - throw Error(formatProdErrorMessage(153)); - if (null !== workInProgress.child) { - current = workInProgress.child; - renderLanes = createWorkInProgress(current, current.pendingProps); - workInProgress.child = renderLanes; - for (renderLanes.return = workInProgress; null !== current.sibling; ) - (current = current.sibling), - (renderLanes = renderLanes.sibling = - createWorkInProgress(current, current.pendingProps)), - (renderLanes.return = workInProgress); - renderLanes.sibling = null; - } - return workInProgress.child; -} -function checkScheduledUpdateOrContext(current, renderLanes) { - return 0 !== (current.lanes & renderLanes) || - (enableLazyContextPropagation && - ((current = current.dependencies), - null !== current && checkIfContextChanged(current))) - ? !0 - : !1; -} -function attemptEarlyBailoutIfNoScheduledUpdate( - current, - workInProgress, - renderLanes -) { - switch (workInProgress.tag) { - case 3: - pushHostRootContext(workInProgress); - enableTransitionTracing && - push(transitionStack, workInProgressTransitions); - enableTransitionTracing && pushRootMarkerInstance(workInProgress); - pushProvider(workInProgress, CacheContext, current.memoizedState.cache); - break; - case 27: - case 5: - pushHostContext(workInProgress); - break; - case 1: - isContextProvider(workInProgress.type) && - pushContextProvider(workInProgress); - break; - case 4: - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); - break; - case 10: - pushProvider( - workInProgress, - workInProgress.type._context, - workInProgress.memoizedProps.value - ); - break; - case 13: - var state = workInProgress.memoizedState; - if (null !== state) { - if (null !== state.dehydrated) - return ( - pushPrimaryTreeSuspenseHandler(workInProgress), - (workInProgress.flags |= 128), - null - ); - if (0 !== (renderLanes & workInProgress.child.childLanes)) - return updateSuspenseComponent(current, workInProgress, renderLanes); - pushPrimaryTreeSuspenseHandler(workInProgress); - current = bailoutOnAlreadyFinishedWork( - current, - workInProgress, - renderLanes - ); - return null !== current ? current.sibling : null; - } - pushPrimaryTreeSuspenseHandler(workInProgress); - break; - case 19: - var didSuspendBefore = 0 !== (current.flags & 128); - state = 0 !== (renderLanes & workInProgress.childLanes); - enableLazyContextPropagation && - !state && - (propagateParentContextChanges( - current, - workInProgress, - renderLanes, - !1 - ), - (state = 0 !== (renderLanes & workInProgress.childLanes))); - if (didSuspendBefore) { - if (state) - return updateSuspenseListComponent( - current, - workInProgress, - renderLanes - ); - workInProgress.flags |= 128; - } - didSuspendBefore = workInProgress.memoizedState; - null !== didSuspendBefore && - ((didSuspendBefore.rendering = null), - (didSuspendBefore.tail = null), - (didSuspendBefore.lastEffect = null)); - push(suspenseStackCursor, suspenseStackCursor.current); - if (state) break; - else return null; - case 22: - case 23: - return ( - (workInProgress.lanes = 0), - updateOffscreenComponent(current, workInProgress, renderLanes) - ); - case 24: - pushProvider(workInProgress, CacheContext, current.memoizedState.cache); - break; - case 25: - enableTransitionTracing && - ((state = workInProgress.stateNode), - null !== state && pushMarkerInstance(workInProgress, state)); - } - return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); -} -var valueCursor = createCursor(null), - currentlyRenderingFiber$1 = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber$1 = - null; -} -function pushProvider(providerFiber, context, nextValue) { - push(valueCursor, context._currentValue2); - context._currentValue2 = nextValue; -} -function popProvider(context) { - var currentValue = valueCursor.current; - context._currentValue2 = - currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED - ? context._defaultValue - : currentValue; - pop(valueCursor); -} -function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { - for (; null !== parent; ) { - var alternate = parent.alternate; - (parent.childLanes & renderLanes) !== renderLanes - ? ((parent.childLanes |= renderLanes), - null !== alternate && (alternate.childLanes |= renderLanes)) - : null !== alternate && - (alternate.childLanes & renderLanes) !== renderLanes && - (alternate.childLanes |= renderLanes); - if (parent === propagationRoot) break; - parent = parent.return; - } -} -function propagateContextChange(workInProgress, context, renderLanes) { - if (enableLazyContextPropagation) - propagateContextChanges(workInProgress, [context], renderLanes, !0); - else if (!enableLazyContextPropagation) { - var fiber = workInProgress.child; - null !== fiber && (fiber.return = workInProgress); - for (; null !== fiber; ) { - var list = fiber.dependencies; - if (null !== list) { - var nextFiber = fiber.child; - for (var dependency = list.firstContext; null !== dependency; ) { - if (dependency.context === context) { - if (1 === fiber.tag) { - dependency = createUpdate(-1, renderLanes & -renderLanes); - dependency.tag = 2; - var updateQueue = fiber.updateQueue; - if (null !== updateQueue) { - updateQueue = updateQueue.shared; - var pending = updateQueue.pending; - null === pending - ? (dependency.next = dependency) - : ((dependency.next = pending.next), - (pending.next = dependency)); - updateQueue.pending = dependency; - } - } - fiber.lanes |= renderLanes; - dependency = fiber.alternate; - null !== dependency && (dependency.lanes |= renderLanes); - scheduleContextWorkOnParentPath( - fiber.return, - renderLanes, - workInProgress - ); - list.lanes |= renderLanes; - break; - } - dependency = dependency.next; - } - } else if (10 === fiber.tag) - nextFiber = fiber.type === workInProgress.type ? null : fiber.child; - else if (18 === fiber.tag) { - nextFiber = fiber.return; - if (null === nextFiber) throw Error(formatProdErrorMessage(341)); - nextFiber.lanes |= renderLanes; - list = nextFiber.alternate; - null !== list && (list.lanes |= renderLanes); - scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress); - nextFiber = fiber.sibling; - } else nextFiber = fiber.child; - if (null !== nextFiber) nextFiber.return = fiber; - else - for (nextFiber = fiber; null !== nextFiber; ) { - if (nextFiber === workInProgress) { - nextFiber = null; - break; - } - fiber = nextFiber.sibling; - if (null !== fiber) { - fiber.return = nextFiber.return; - nextFiber = fiber; - break; - } - nextFiber = nextFiber.return; - } - fiber = nextFiber; - } - } -} -function propagateContextChanges( - workInProgress, - contexts, - renderLanes, - forcePropagateEntireTree -) { - if (enableLazyContextPropagation) { - var fiber = workInProgress.child; - null !== fiber && (fiber.return = workInProgress); - for (; null !== fiber; ) { - var list = fiber.dependencies; - if (null !== list) { - var nextFiber = fiber.child; - list = list.firstContext; - a: for (; null !== list; ) { - var dependency = list; - list = fiber; - for (var i = 0; i < contexts.length; i++) - if (dependency.context === contexts[i]) { - list.lanes |= renderLanes; - dependency = list.alternate; - null !== dependency && (dependency.lanes |= renderLanes); - scheduleContextWorkOnParentPath( - list.return, - renderLanes, - workInProgress - ); - forcePropagateEntireTree || (nextFiber = null); - break a; - } - list = dependency.next; - } - } else if (18 === fiber.tag) { - nextFiber = fiber.return; - if (null === nextFiber) throw Error(formatProdErrorMessage(341)); - nextFiber.lanes |= renderLanes; - list = nextFiber.alternate; - null !== list && (list.lanes |= renderLanes); - scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress); - nextFiber = null; - } else nextFiber = fiber.child; - if (null !== nextFiber) nextFiber.return = fiber; - else - for (nextFiber = fiber; null !== nextFiber; ) { - if (nextFiber === workInProgress) { - nextFiber = null; - break; - } - fiber = nextFiber.sibling; - if (null !== fiber) { - fiber.return = nextFiber.return; - nextFiber = fiber; - break; - } - nextFiber = nextFiber.return; - } - fiber = nextFiber; - } - } -} -function propagateParentContextChanges( - current, - workInProgress, - renderLanes, - forcePropagateEntireTree -) { - if (enableLazyContextPropagation) { - current = null; - for ( - var parent = workInProgress, isInsidePropagationBailout = !1; - null !== parent; - - ) { - if (!isInsidePropagationBailout) - if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0; - else if (0 !== (parent.flags & 262144)) break; - if (10 === parent.tag) { - var currentParent = parent.alternate; - if (null === currentParent) throw Error(formatProdErrorMessage(387)); - currentParent = currentParent.memoizedProps; - if (null !== currentParent) { - var context = parent.type._context; - objectIs(parent.pendingProps.value, currentParent.value) || - (null !== current ? current.push(context) : (current = [context])); - } - } - parent = parent.return; - } - null !== current && - propagateContextChanges( - workInProgress, - current, - renderLanes, - forcePropagateEntireTree - ); - workInProgress.flags |= 262144; - } -} -function checkIfContextChanged(currentDependencies) { - if (!enableLazyContextPropagation) return !1; - for ( - currentDependencies = currentDependencies.firstContext; - null !== currentDependencies; - - ) { - if ( - !objectIs( - currentDependencies.context._currentValue2, - currentDependencies.memoizedValue - ) - ) - return !0; - currentDependencies = currentDependencies.next; - } - return !1; -} -function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber$1 = workInProgress; - lastFullyObservedContext = lastContextDependency = null; - workInProgress = workInProgress.dependencies; - null !== workInProgress && - (enableLazyContextPropagation - ? (workInProgress.firstContext = null) - : null !== workInProgress.firstContext && - (0 !== (workInProgress.lanes & renderLanes) && (didReceiveUpdate = !0), - (workInProgress.firstContext = null))); -} -function readContext(context) { - var value = context._currentValue2; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === currentlyRenderingFiber$1) - throw Error(formatProdErrorMessage(308)); - lastContextDependency = context; - currentlyRenderingFiber$1.dependencies = { - lanes: 0, - firstContext: context - }; - enableLazyContextPropagation && - (currentlyRenderingFiber$1.flags |= 524288); - } else lastContextDependency = lastContextDependency.next = context; - return value; -} -var AbortControllerLocal = - "undefined" !== typeof AbortController - ? AbortController - : function () { - var listeners = [], - signal = (this.signal = { - aborted: !1, - addEventListener: function (type, listener) { - listeners.push(listener); - } - }); - this.abort = function () { - signal.aborted = !0; - listeners.forEach(function (listener) { - return listener(); - }); - }; - }, - scheduleCallback$1 = Scheduler.unstable_scheduleCallback, - NormalPriority$1 = Scheduler.unstable_NormalPriority, - CacheContext = { - $$typeof: REACT_CONTEXT_TYPE, - Consumer: null, - Provider: null, - _currentValue: null, - _currentValue2: null, - _threadCount: 0, - _defaultValue: null, - _globalName: null - }; -function createCache() { - return { - controller: new AbortControllerLocal(), - data: new Map(), - refCount: 0 - }; -} -function releaseCache(cache) { - cache.refCount--; - 0 === cache.refCount && - scheduleCallback$1(NormalPriority$1, function () { - cache.controller.abort(); - }); -} -var ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, - resumedCache = createCursor(null), - transitionStack = createCursor(null); -function peekCacheFromPool() { - var cacheResumedFromPreviousRender = resumedCache.current; - return null !== cacheResumedFromPreviousRender - ? cacheResumedFromPreviousRender - : workInProgressRoot.pooledCache; -} -function pushTransition( - offscreenWorkInProgress, - prevCachePool, - newTransitions -) { - null === prevCachePool - ? push(resumedCache, resumedCache.current) - : push(resumedCache, prevCachePool.pool); - enableTransitionTracing && - (null === transitionStack.current - ? push(transitionStack, newTransitions) - : null === newTransitions - ? push(transitionStack, transitionStack.current) - : push(transitionStack, transitionStack.current.concat(newTransitions))); -} -function popTransition(workInProgress, current) { - null !== current && - (enableTransitionTracing && pop(transitionStack), pop(resumedCache)); -} -function getSuspendedCache() { - var cacheFromPool = peekCacheFromPool(); - return null === cacheFromPool - ? null - : { parent: CacheContext._currentValue2, pool: cacheFromPool }; -} -var emptyObject = {}; -function collectScopedNodesFromChildren( - startingChild, - fn$jscomp$0, - scopedNodes$jscomp$0 -) { - for (; null !== startingChild; ) { - var node = startingChild, - fn = fn$jscomp$0, - scopedNodes = scopedNodes$jscomp$0; - if (5 === node.tag) { - var type = node.type, - memoizedProps = node.memoizedProps, - instance = node.stateNode; - null !== instance && - !0 === fn(type, memoizedProps || emptyObject, instance) && - scopedNodes.push(instance); - } - type = node.child; - isFiberSuspenseAndTimedOut(node) && (type = node.child.sibling.child); - null !== type && collectScopedNodesFromChildren(type, fn, scopedNodes); - startingChild = startingChild.sibling; - } -} -function collectFirstScopedNodeFromChildren(startingChild, fn$jscomp$0) { - for (; null !== startingChild; ) { - a: { - var JSCompiler_inline_result = startingChild; - var fn = fn$jscomp$0; - if (5 === JSCompiler_inline_result.tag) { - var type = JSCompiler_inline_result.type, - memoizedProps = JSCompiler_inline_result.memoizedProps, - instance = JSCompiler_inline_result.stateNode; - if (null !== instance && !0 === fn(type, memoizedProps, instance)) { - JSCompiler_inline_result = instance; - break a; - } - } - type = JSCompiler_inline_result.child; - isFiberSuspenseAndTimedOut(JSCompiler_inline_result) && - (type = JSCompiler_inline_result.child.sibling.child); - JSCompiler_inline_result = - null !== type ? collectFirstScopedNodeFromChildren(type, fn) : null; - } - if (null !== JSCompiler_inline_result) return JSCompiler_inline_result; - startingChild = startingChild.sibling; - } - return null; -} -function collectNearestChildContextValues( - startingChild, - context$jscomp$0, - childContextValues$jscomp$0 -) { - for (; null !== startingChild; ) { - var node = startingChild, - context = context$jscomp$0, - childContextValues = childContextValues$jscomp$0; - if (10 === node.tag && node.type._context === context) - childContextValues.push(node.memoizedProps.value); - else { - var child = node.child; - isFiberSuspenseAndTimedOut(node) && (child = node.child.sibling.child); - null !== child && - collectNearestChildContextValues(child, context, childContextValues); - } - startingChild = startingChild.sibling; - } -} -function DO_NOT_USE_queryAllNodes(fn) { - var currentFiber = shim$1(); - if (null === currentFiber) return null; - currentFiber = currentFiber.child; - var scopedNodes = []; - null !== currentFiber && - collectScopedNodesFromChildren(currentFiber, fn, scopedNodes); - return 0 === scopedNodes.length ? null : scopedNodes; -} -function DO_NOT_USE_queryFirstNode(fn) { - var currentFiber = shim$1(); - if (null === currentFiber) return null; - currentFiber = currentFiber.child; - return null !== currentFiber - ? collectFirstScopedNodeFromChildren(currentFiber, fn) - : null; -} -function containsNode() { - throw Error(formatProdErrorMessage(248)); -} -function getChildContextValues(context) { - var currentFiber = shim$1(); - if (null === currentFiber) return []; - currentFiber = currentFiber.child; - var childContextValues = []; - null !== currentFiber && - collectNearestChildContextValues(currentFiber, context, childContextValues); - return childContextValues; -} -var appendAllChildren, - updateHostContainer, - updateHostComponent$1, - updateHostText$1; -appendAllChildren = function (parent, workInProgress) { - for (var node = workInProgress.child; null !== node; ) { - if (5 === node.tag || 6 === node.tag) { - var parentInstance = parent, - child = node.stateNode; - if ("string" === typeof child) throw Error(formatProdErrorMessage(216)); - child.inject(parentInstance); - } else if (4 !== node.tag && null !== node.child) { - node.child.return = node; - node = node.child; - continue; - } - if (node === workInProgress) break; - for (; null === node.sibling; ) { - if (null === node.return || node.return === workInProgress) return; - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } -}; -updateHostContainer = function () {}; -updateHostComponent$1 = function (current, workInProgress, type, newProps) { - current.memoizedProps !== newProps && - (workInProgress.updateQueue = UPDATE_SIGNAL) && - (workInProgress.flags |= 4); -}; -updateHostText$1 = function (current, workInProgress, oldText, newText) { - oldText !== newText && (workInProgress.flags |= 4); -}; -function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { - switch (renderState.tailMode) { - case "hidden": - hasRenderedATailFallback = renderState.tail; - for (var lastTailNode = null; null !== hasRenderedATailFallback; ) - null !== hasRenderedATailFallback.alternate && - (lastTailNode = hasRenderedATailFallback), - (hasRenderedATailFallback = hasRenderedATailFallback.sibling); - null === lastTailNode - ? (renderState.tail = null) - : (lastTailNode.sibling = null); - break; - case "collapsed": - lastTailNode = renderState.tail; - for (var lastTailNode$73 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$73 = lastTailNode), - (lastTailNode = lastTailNode.sibling); - null === lastTailNode$73 - ? hasRenderedATailFallback || null === renderState.tail - ? (renderState.tail = null) - : (renderState.tail.sibling = null) - : (lastTailNode$73.sibling = null); - } -} -function bubbleProperties(completedWork) { - var didBailout = - null !== completedWork.alternate && - completedWork.alternate.child === completedWork.child, - newChildLanes = 0, - subtreeFlags = 0; - if (didBailout) - for (var child$74 = completedWork.child; null !== child$74; ) - (newChildLanes |= child$74.lanes | child$74.childLanes), - (subtreeFlags |= child$74.subtreeFlags & 14680064), - (subtreeFlags |= child$74.flags & 14680064), - (child$74.return = completedWork), - (child$74 = child$74.sibling); - else - for (child$74 = completedWork.child; null !== child$74; ) - (newChildLanes |= child$74.lanes | child$74.childLanes), - (subtreeFlags |= child$74.subtreeFlags), - (subtreeFlags |= child$74.flags), - (child$74.return = completedWork), - (child$74 = child$74.sibling); - completedWork.subtreeFlags |= subtreeFlags; - completedWork.childLanes = newChildLanes; - return didBailout; -} -function completeWork(current, workInProgress, renderLanes) { - var newProps = workInProgress.pendingProps; - popTreeContext(workInProgress); - switch (workInProgress.tag) { - case 2: - case 16: - case 15: - case 0: - case 11: - case 7: - case 8: - case 12: - case 9: - case 14: - return bubbleProperties(workInProgress), null; - case 1: - return ( - isContextProvider(workInProgress.type) && popContext(), - bubbleProperties(workInProgress), - null - ); - case 3: - return ( - (renderLanes = workInProgress.stateNode), - enableTransitionTracing && - null !== workInProgressTransitions && - (workInProgress.flags |= 2048), - (newProps = null), - null !== current && (newProps = current.memoizedState.cache), - workInProgress.memoizedState.cache !== newProps && - (workInProgress.flags |= 2048), - popProvider(CacheContext), - enableTransitionTracing && - enableTransitionTracing && - pop(markerInstanceStack), - enableTransitionTracing && pop(transitionStack), - popHostContainer(), - pop(didPerformWorkStackCursor), - pop(contextStackCursor), - resetWorkInProgressVersions(), - renderLanes.pendingContext && - ((renderLanes.context = renderLanes.pendingContext), - (renderLanes.pendingContext = null)), - (null !== current && null !== current.child) || - null === current || - (current.memoizedState.isDehydrated && - 0 === (workInProgress.flags & 256)) || - ((workInProgress.flags |= 1024), - null !== hydrationErrors && - (queueRecoverableErrors(hydrationErrors), - (hydrationErrors = null))), - updateHostContainer(current, workInProgress), - bubbleProperties(workInProgress), - enableTransitionTracing && - 0 !== (workInProgress.subtreeFlags & 8192) && - (workInProgress.flags |= 2048), - null - ); - case 26: - case 27: - case 5: - popHostContext(workInProgress); - renderLanes = workInProgress.type; - if (null !== current && null != workInProgress.stateNode) - updateHostComponent$1(current, workInProgress, renderLanes, newProps), - current.ref !== workInProgress.ref && - (workInProgress.flags |= 2097664); - else { - if (!newProps) { - if (null === workInProgress.stateNode) - throw Error(formatProdErrorMessage(166)); - bubbleProperties(workInProgress); - return null; - } - switch (renderLanes) { - case TYPES.CLIPPING_RECTANGLE: - var instance = Mode$1.ClippingRectangle(); - instance._applyProps = applyClippingRectangleProps; - break; - case TYPES.GROUP: - instance = Mode$1.Group(); - instance._applyProps = applyGroupProps; - break; - case TYPES.SHAPE: - instance = Mode$1.Shape(); - instance._applyProps = applyShapeProps; - break; - case TYPES.TEXT: - (instance = Mode$1.Text( - newProps.children, - newProps.font, - newProps.alignment, - newProps.path - )), - (instance._applyProps = applyTextProps); - } - if (!instance) throw Error(formatProdErrorMessage(217, renderLanes)); - instance._applyProps(instance, newProps); - current = instance; - appendAllChildren(current, workInProgress, !1, !1); - workInProgress.stateNode = current; - null !== workInProgress.ref && (workInProgress.flags |= 2097664); - } - bubbleProperties(workInProgress); - return null; - case 6: - if (current && null != workInProgress.stateNode) - updateHostText$1( - current, - workInProgress, - current.memoizedProps, - newProps - ); - else { - if ("string" !== typeof newProps && null === workInProgress.stateNode) - throw Error(formatProdErrorMessage(166)); - workInProgress.stateNode = newProps; - } - bubbleProperties(workInProgress); - return null; - case 13: - popSuspenseHandler(workInProgress); - newProps = workInProgress.memoizedState; - if ( - null === current || - (null !== current.memoizedState && - null !== current.memoizedState.dehydrated) - ) { - if (null !== newProps && null !== newProps.dehydrated) { - if (null === current) { - throw Error(formatProdErrorMessage(318)); - throw Error(formatProdErrorMessage(344)); - } - 0 === (workInProgress.flags & 128) && - (workInProgress.memoizedState = null); - workInProgress.flags |= 4; - bubbleProperties(workInProgress); - instance = !1; - } else - null !== hydrationErrors && - (queueRecoverableErrors(hydrationErrors), (hydrationErrors = null)), - (instance = !0); - if (!instance) - return workInProgress.flags & 65536 ? workInProgress : null; - } - if (0 !== (workInProgress.flags & 128)) - return (workInProgress.lanes = renderLanes), workInProgress; - renderLanes = null !== newProps; - current = null !== current && null !== current.memoizedState; - if (renderLanes) { - newProps = workInProgress.child; - instance = null; - null !== newProps.alternate && - null !== newProps.alternate.memoizedState && - null !== newProps.alternate.memoizedState.cachePool && - (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$78 = null; - null !== newProps.memoizedState && - null !== newProps.memoizedState.cachePool && - (cache$78 = newProps.memoizedState.cachePool.pool); - cache$78 !== instance && (newProps.flags |= 2048); - } - renderLanes !== current && - (enableTransitionTracing && (workInProgress.child.flags |= 2048), - renderLanes && (workInProgress.child.flags |= 8192)); - null !== workInProgress.updateQueue && (workInProgress.flags |= 4); - null !== workInProgress.updateQueue && - null != workInProgress.memoizedProps.suspenseCallback && - (workInProgress.flags |= 4); - bubbleProperties(workInProgress); - return null; - case 4: - return ( - popHostContainer(), - updateHostContainer(current, workInProgress), - bubbleProperties(workInProgress), - null - ); - case 10: - return ( - popProvider(workInProgress.type._context), - bubbleProperties(workInProgress), - null - ); - case 17: - return ( - isContextProvider(workInProgress.type) && popContext(), - bubbleProperties(workInProgress), - null - ); - case 19: - pop(suspenseStackCursor); - instance = workInProgress.memoizedState; - if (null === instance) return bubbleProperties(workInProgress), null; - newProps = 0 !== (workInProgress.flags & 128); - cache$78 = instance.rendering; - if (null === cache$78) - if (newProps) cutOffTailIfNeeded(instance, !1); - else { - if ( - 0 !== workInProgressRootExitStatus || - (null !== current && 0 !== (current.flags & 128)) - ) - for (current = workInProgress.child; null !== current; ) { - cache$78 = findFirstSuspended(current); - if (null !== cache$78) { - workInProgress.flags |= 128; - cutOffTailIfNeeded(instance, !1); - current = cache$78.updateQueue; - null !== current && - ((workInProgress.updateQueue = current), - (workInProgress.flags |= 4)); - workInProgress.subtreeFlags = 0; - current = renderLanes; - for (renderLanes = workInProgress.child; null !== renderLanes; ) - resetWorkInProgress(renderLanes, current), - (renderLanes = renderLanes.sibling); - push( - suspenseStackCursor, - (suspenseStackCursor.current & 1) | 2 - ); - return workInProgress.child; - } - current = current.sibling; - } - null !== instance.tail && - now() > workInProgressRootRenderTargetTime && - ((workInProgress.flags |= 128), - (newProps = !0), - cutOffTailIfNeeded(instance, !1), - (workInProgress.lanes = 8388608)); - } - else { - if (!newProps) - if (((current = findFirstSuspended(cache$78)), null !== current)) { - if ( - ((workInProgress.flags |= 128), - (newProps = !0), - (current = current.updateQueue), - null !== current && - ((workInProgress.updateQueue = current), - (workInProgress.flags |= 4)), - cutOffTailIfNeeded(instance, !0), - null === instance.tail && - "hidden" === instance.tailMode && - !cache$78.alternate) - ) - return bubbleProperties(workInProgress), null; - } else - 2 * now() - instance.renderingStartTime > - workInProgressRootRenderTargetTime && - 1073741824 !== renderLanes && - ((workInProgress.flags |= 128), - (newProps = !0), - cutOffTailIfNeeded(instance, !1), - (workInProgress.lanes = 8388608)); - instance.isBackwards - ? ((cache$78.sibling = workInProgress.child), - (workInProgress.child = cache$78)) - : ((current = instance.last), - null !== current - ? (current.sibling = cache$78) - : (workInProgress.child = cache$78), - (instance.last = cache$78)); - } - if (null !== instance.tail) - return ( - (workInProgress = instance.tail), - (instance.rendering = workInProgress), - (instance.tail = workInProgress.sibling), - (instance.renderingStartTime = now()), - (workInProgress.sibling = null), - (current = suspenseStackCursor.current), - push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1), - workInProgress - ); - bubbleProperties(workInProgress); - return null; - case 21: - return ( - null === current - ? ((workInProgress.stateNode = { - DO_NOT_USE_queryAllNodes: DO_NOT_USE_queryAllNodes, - DO_NOT_USE_queryFirstNode: DO_NOT_USE_queryFirstNode, - containsNode: containsNode, - getChildContextValues: getChildContextValues - }), - shim$1(), - null !== workInProgress.ref && - ((workInProgress.flags |= 2097664), (workInProgress.flags |= 4))) - : (null !== workInProgress.ref && (workInProgress.flags |= 4), - current.ref !== workInProgress.ref && - (workInProgress.flags |= 2097664)), - bubbleProperties(workInProgress), - null - ); - case 22: - case 23: - return ( - popSuspenseHandler(workInProgress), - popHiddenContext(), - (newProps = null !== workInProgress.memoizedState), - 23 !== workInProgress.tag && - (null !== current - ? (null !== current.memoizedState) !== newProps && - (workInProgress.flags |= 8192) - : newProps && (workInProgress.flags |= 8192)), - newProps && 0 !== (workInProgress.mode & 1) - ? 0 !== (renderLanes & 1073741824) && - 0 === (workInProgress.flags & 128) && - (bubbleProperties(workInProgress), - 23 !== workInProgress.tag && - workInProgress.subtreeFlags & 6 && - (workInProgress.flags |= 8192)) - : bubbleProperties(workInProgress), - null !== workInProgress.updateQueue && (workInProgress.flags |= 4), - (renderLanes = null), - null !== current && - null !== current.memoizedState && - null !== current.memoizedState.cachePool && - (renderLanes = current.memoizedState.cachePool.pool), - (newProps = null), - null !== workInProgress.memoizedState && - null !== workInProgress.memoizedState.cachePool && - (newProps = workInProgress.memoizedState.cachePool.pool), - newProps !== renderLanes && (workInProgress.flags |= 2048), - popTransition(workInProgress, current), - null - ); - case 24: - return ( - (renderLanes = null), - null !== current && (renderLanes = current.memoizedState.cache), - workInProgress.memoizedState.cache !== renderLanes && - (workInProgress.flags |= 2048), - popProvider(CacheContext), - bubbleProperties(workInProgress), - null - ); - case 25: - return ( - enableTransitionTracing && - (null !== workInProgress.stateNode && - enableTransitionTracing && - pop(markerInstanceStack), - bubbleProperties(workInProgress)), - null - ); - } - throw Error(formatProdErrorMessage(156, workInProgress.tag)); -} -function unwindWork(current, workInProgress) { - popTreeContext(workInProgress); - switch (workInProgress.tag) { - case 1: - return ( - isContextProvider(workInProgress.type) && popContext(), - (current = workInProgress.flags), - current & 65536 - ? ((workInProgress.flags = (current & -65537) | 128), workInProgress) - : null - ); - case 3: - return ( - popProvider(CacheContext), - enableTransitionTracing && - enableTransitionTracing && - pop(markerInstanceStack), - enableTransitionTracing && pop(transitionStack), - popHostContainer(), - pop(didPerformWorkStackCursor), - pop(contextStackCursor), - resetWorkInProgressVersions(), - (current = workInProgress.flags), - 0 !== (current & 65536) && 0 === (current & 128) - ? ((workInProgress.flags = (current & -65537) | 128), workInProgress) - : null - ); - case 26: - case 27: - case 5: - return popHostContext(workInProgress), null; - case 13: - popSuspenseHandler(workInProgress); - current = workInProgress.memoizedState; - if ( - null !== current && - null !== current.dehydrated && - null === workInProgress.alternate - ) - throw Error(formatProdErrorMessage(340)); - current = workInProgress.flags; - return current & 65536 - ? ((workInProgress.flags = (current & -65537) | 128), workInProgress) - : null; - case 19: - return pop(suspenseStackCursor), null; - case 4: - return popHostContainer(), null; - case 10: - return popProvider(workInProgress.type._context), null; - case 22: - case 23: - return ( - popSuspenseHandler(workInProgress), - popHiddenContext(), - popTransition(workInProgress, current), - (current = workInProgress.flags), - current & 65536 - ? ((workInProgress.flags = (current & -65537) | 128), workInProgress) - : null - ); - case 24: - return popProvider(CacheContext), null; - case 25: - return ( - enableTransitionTracing && - null !== workInProgress.stateNode && - enableTransitionTracing && - pop(markerInstanceStack), - null - ); - default: - return null; - } -} -function unwindInterruptedWork(current, interruptedWork) { - popTreeContext(interruptedWork); - switch (interruptedWork.tag) { - case 1: - current = interruptedWork.type.childContextTypes; - null !== current && void 0 !== current && popContext(); - break; - case 3: - popProvider(CacheContext); - enableTransitionTracing && - enableTransitionTracing && - pop(markerInstanceStack); - enableTransitionTracing && pop(transitionStack); - popHostContainer(); - pop(didPerformWorkStackCursor); - pop(contextStackCursor); - resetWorkInProgressVersions(); - break; - case 26: - case 27: - case 5: - popHostContext(interruptedWork); - break; - case 4: - popHostContainer(); - break; - case 13: - popSuspenseHandler(interruptedWork); - break; - case 19: - pop(suspenseStackCursor); - break; - case 10: - popProvider(interruptedWork.type._context); - break; - case 22: - case 23: - popSuspenseHandler(interruptedWork); - popHiddenContext(); - popTransition(interruptedWork, current); - break; - case 24: - popProvider(CacheContext); - break; - case 25: - enableTransitionTracing && - null !== interruptedWork.stateNode && - enableTransitionTracing && - pop(markerInstanceStack); - } -} -if ("function" !== typeof require("ReactFbErrorUtils").invokeGuardedCallback) - throw Error(formatProdErrorMessage(255)); -var offscreenSubtreeIsHidden = !1, - offscreenSubtreeWasHidden = !1, - PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, - nextEffect = null; -function safelyAttachRef(current, nearestMountedAncestor) { - try { - var ref = current.ref; - if (null !== ref) { - var instance = current.stateNode; - switch (current.tag) { - case 26: - case 27: - case 5: - var instanceToUse = instance; - break; - default: - instanceToUse = instance; - } - 21 === current.tag && (instanceToUse = instance); - "function" === typeof ref - ? (current.refCleanup = ref(instanceToUse)) - : (ref.current = instanceToUse); - } - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); - } -} -function safelyDetachRef(current, nearestMountedAncestor) { - var ref = current.ref, - refCleanup = current.refCleanup; - if (null !== ref) - if ("function" === typeof refCleanup) - try { - refCleanup(); - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); - } finally { - (current.refCleanup = null), - (current = current.alternate), - null != current && (current.refCleanup = null); - } - else if ("function" === typeof ref) - try { - ref(null); - } catch (error$96) { - captureCommitPhaseError(current, nearestMountedAncestor, error$96); - } - else ref.current = null; -} -function safelyCallDestroy(current, nearestMountedAncestor, destroy) { - try { - destroy(); - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); - } -} -var focusedInstanceHandle = null, - shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = null; - for (nextEffect = firstChild; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.deletions; - if (null !== firstChild) - for (var i = 0; i < firstChild.length; i++) - doesFiberContain(firstChild[i], focusedInstanceHandle) && - (shouldFireAfterActiveInstanceBlur = !0); - firstChild = root.child; - if (0 !== (root.subtreeFlags & 9236) && null !== firstChild) - (firstChild.return = root), (nextEffect = firstChild); - else - for (; null !== nextEffect; ) { - root = nextEffect; - try { - var current = root.alternate, - flags = root.flags; - if ( - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle - ) { - var JSCompiler_temp; - if ((JSCompiler_temp = 13 === root.tag)) - a: { - if (null !== current) { - var oldState = current.memoizedState; - if (null === oldState || null !== oldState.dehydrated) { - var newState = root.memoizedState; - JSCompiler_temp = - null !== newState && null === newState.dehydrated; - break a; - } - } - JSCompiler_temp = !1; - } - JSCompiler_temp && - doesFiberContain(root, focusedInstanceHandle) && - (shouldFireAfterActiveInstanceBlur = !0); - } - switch (root.tag) { - case 0: - if (0 !== (flags & 4)) { - var updateQueue = root.updateQueue, - eventPayloads = - null !== updateQueue ? updateQueue.events : null; - if (null !== eventPayloads) - for ( - firstChild = 0; - firstChild < eventPayloads.length; - firstChild++ - ) { - var _eventPayloads$ii = eventPayloads[firstChild]; - _eventPayloads$ii.ref.impl = _eventPayloads$ii.nextImpl; - } - } - break; - case 11: - case 15: - break; - case 1: - if (0 !== (flags & 1024) && null !== current) { - var prevProps = current.memoizedProps, - prevState = current.memoizedState, - instance = root.stateNode, - snapshot = instance.getSnapshotBeforeUpdate( - root.elementType === root.type - ? prevProps - : resolveDefaultProps(root.type, prevProps), - prevState - ); - instance.__reactInternalSnapshotBeforeUpdate = snapshot; - } - break; - case 3: - break; - case 5: - case 26: - case 27: - case 6: - case 4: - case 17: - break; - default: - if (0 !== (flags & 1024)) - throw Error(formatProdErrorMessage(163)); - } - } catch (error) { - captureCommitPhaseError(root, root.return, error); - } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; - } - nextEffect = root.return; - } - } - current = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return current; -} -function commitHookEffectListUnmount( - flags, - finishedWork, - nearestMountedAncestor -) { - var updateQueue = finishedWork.updateQueue; - updateQueue = null !== updateQueue ? updateQueue.lastEffect : null; - if (null !== updateQueue) { - var effect = (updateQueue = updateQueue.next); - do { - if ((effect.tag & flags) === flags) { - var destroy = effect.destroy; - effect.destroy = void 0; - void 0 !== destroy && - safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); - } - effect = effect.next; - } while (effect !== updateQueue); - } -} -function commitHookEffectListMount(flags, finishedWork) { - finishedWork = finishedWork.updateQueue; - finishedWork = null !== finishedWork ? finishedWork.lastEffect : null; - if (null !== finishedWork) { - var effect = (finishedWork = finishedWork.next); - do { - if ((effect.tag & flags) === flags) { - var create = effect.create; - effect.destroy = create(); - } - effect = effect.next; - } while (effect !== finishedWork); - } -} -function commitHookLayoutEffects(finishedWork, hookFlags) { - try { - commitHookEffectListMount(hookFlags, finishedWork); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } -} -function commitClassCallbacks(finishedWork) { - var updateQueue = finishedWork.updateQueue; - if (null !== updateQueue) { - var instance = finishedWork.stateNode; - try { - commitCallbacks(updateQueue, instance); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } -} -function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { - var flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 15: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 4 && commitHookLayoutEffects(finishedWork, 5); - break; - case 1: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - if (flags & 4) - if (((finishedRoot = finishedWork.stateNode), null === current)) - try { - finishedRoot.componentDidMount(); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - else { - var prevProps = - finishedWork.elementType === finishedWork.type - ? current.memoizedProps - : resolveDefaultProps(finishedWork.type, current.memoizedProps); - current = current.memoizedState; - try { - finishedRoot.componentDidUpdate( - prevProps, - current, - finishedRoot.__reactInternalSnapshotBeforeUpdate - ); - } catch (error$97) { - captureCommitPhaseError( - finishedWork, - finishedWork.return, - error$97 - ); - } - } - flags & 64 && commitClassCallbacks(finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; - case 3: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - if (flags & 64 && ((flags = finishedWork.updateQueue), null !== flags)) { - finishedRoot = null; - if (null !== finishedWork.child) - switch (finishedWork.child.tag) { - case 27: - case 5: - finishedRoot = finishedWork.child.stateNode; - break; - case 1: - finishedRoot = finishedWork.child.stateNode; - } - try { - commitCallbacks(flags, finishedRoot); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } - break; - case 26: - case 27: - case 5: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; - case 12: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - break; - case 13: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - break; - case 22: - if (0 !== (finishedWork.mode & 1)) { - if ( - ((prevProps = - null !== finishedWork.memoizedState || offscreenSubtreeIsHidden), - !prevProps) - ) { - current = - (null !== current && null !== current.memoizedState) || - offscreenSubtreeWasHidden; - var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, - prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = prevProps; - (offscreenSubtreeWasHidden = current) && - !prevOffscreenSubtreeWasHidden - ? recursivelyTraverseReappearLayoutEffects( - finishedRoot, - finishedWork, - 0 !== (finishedWork.subtreeFlags & 8772) - ) - : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; - offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; - } - } else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && - ("manual" === finishedWork.memoizedProps.mode - ? safelyAttachRef(finishedWork, finishedWork.return) - : safelyDetachRef(finishedWork, finishedWork.return)); - break; - default: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - } -} -function abortRootTransitions( - root, - abort, - deletedTransitions, - deletedOffscreenInstance -) { - if (enableTransitionTracing) { - var rootTransitions = root.incompleteTransitions; - deletedTransitions.forEach(function (transition) { - rootTransitions.has(transition) && - ((transition = rootTransitions.get(transition)), - null === transition.aborts && (transition.aborts = []), - transition.aborts.push(abort), - null !== deletedOffscreenInstance && - null !== transition.pendingBoundaries && - transition.pendingBoundaries.has(deletedOffscreenInstance) && - transition.pendingBoundaries.delete(deletedOffscreenInstance)); - }); - } -} -function abortTracingMarkerTransitions( - abortedFiber, - abort, - deletedTransitions, - deletedOffscreenInstance, - isInDeletedTree -) { - if (enableTransitionTracing) { - var markerInstance = abortedFiber.stateNode, - markerTransitions = markerInstance.transitions, - pendingBoundaries = markerInstance.pendingBoundaries; - null !== markerTransitions && - deletedTransitions.forEach(function (transition) { - if ( - null !== abortedFiber && - markerTransitions.has(transition) && - (null === markerInstance.aborts || - !markerInstance.aborts.includes(abort)) && - null !== markerInstance.transitions - ) { - if (null === markerInstance.aborts) { - markerInstance.aborts = [abort]; - transition = abortedFiber.memoizedProps.name; - var transitions = markerInstance.transitions, - aborts = markerInstance.aborts; - enableTransitionTracing && - (null === currentPendingTransitionCallbacks && - (currentPendingTransitionCallbacks = { - transitionStart: null, - transitionProgress: null, - transitionComplete: null, - markerProgress: null, - markerIncomplete: new Map(), - markerComplete: null - }), - null === currentPendingTransitionCallbacks.markerIncomplete && - (currentPendingTransitionCallbacks.markerIncomplete = - new Map()), - currentPendingTransitionCallbacks.markerIncomplete.set( - transition, - { transitions: transitions, aborts: aborts } - )); - } else markerInstance.aborts.push(abort); - null !== deletedOffscreenInstance && - !isInDeletedTree && - null !== pendingBoundaries && - pendingBoundaries.has(deletedOffscreenInstance) && - (pendingBoundaries.delete(deletedOffscreenInstance), - addMarkerProgressCallbackToPendingTransition( - abortedFiber.memoizedProps.name, - deletedTransitions, - pendingBoundaries - )); - } - }); - } -} -function abortParentMarkerTransitionsForDeletedFiber( - abortedFiber, - abort, - deletedTransitions, - deletedOffscreenInstance, - isInDeletedTree -) { - if (enableTransitionTracing) - for (; null !== abortedFiber; ) { - switch (abortedFiber.tag) { - case 25: - abortTracingMarkerTransitions( - abortedFiber, - abort, - deletedTransitions, - deletedOffscreenInstance, - isInDeletedTree - ); - break; - case 3: - abortRootTransitions( - abortedFiber.stateNode, - abort, - deletedTransitions, - deletedOffscreenInstance - ); - } - abortedFiber = abortedFiber.return; - } -} -function commitTransitionProgress(offscreenFiber) { - if (enableTransitionTracing) { - var offscreenInstance = offscreenFiber.stateNode, - prevState = null, - previousFiber = offscreenFiber.alternate; - null !== previousFiber && - null !== previousFiber.memoizedState && - (prevState = previousFiber.memoizedState); - prevState = null !== prevState; - previousFiber = null !== offscreenFiber.memoizedState; - var pendingMarkers = offscreenInstance._pendingMarkers, - name = null; - offscreenFiber = offscreenFiber.return; - null !== offscreenFiber && - 13 === offscreenFiber.tag && - offscreenFiber.memoizedProps.unstable_name && - (name = offscreenFiber.memoizedProps.unstable_name); - !prevState && previousFiber - ? null !== pendingMarkers && - pendingMarkers.forEach(function (markerInstance) { - var pendingBoundaries = markerInstance.pendingBoundaries, - transitions = markerInstance.transitions, - markerName = markerInstance.name; - null === pendingBoundaries || - pendingBoundaries.has(offscreenInstance) || - (pendingBoundaries.set(offscreenInstance, { name: name }), - null !== transitions && - (1 === markerInstance.tag && null !== markerName - ? addMarkerProgressCallbackToPendingTransition( - markerName, - transitions, - pendingBoundaries - ) - : 0 === markerInstance.tag && - transitions.forEach(function (transition) { - addTransitionProgressCallbackToPendingTransition( - transition, - pendingBoundaries - ); - }))); - }) - : prevState && - !previousFiber && - null !== pendingMarkers && - pendingMarkers.forEach(function (markerInstance) { - var pendingBoundaries = markerInstance.pendingBoundaries, - transitions = markerInstance.transitions, - markerName = markerInstance.name; - null !== pendingBoundaries && - pendingBoundaries.has(offscreenInstance) && - (pendingBoundaries.delete(offscreenInstance), - null !== transitions && - (1 === markerInstance.tag && null !== markerName - ? (addMarkerProgressCallbackToPendingTransition( - markerName, - transitions, - pendingBoundaries - ), - 0 === pendingBoundaries.size && - (null === markerInstance.aborts && - addMarkerCompleteCallbackToPendingTransition( - markerName, - transitions - ), - (markerInstance.transitions = null), - (markerInstance.pendingBoundaries = null), - (markerInstance.aborts = null))) - : 0 === markerInstance.tag && - transitions.forEach(function (transition) { - addTransitionProgressCallbackToPendingTransition( - transition, - pendingBoundaries - ); - }))); - }); - } -} -function detachFiberAfterEffects(fiber) { - var alternate = fiber.alternate; - null !== alternate && - ((fiber.alternate = null), detachFiberAfterEffects(alternate)); - fiber.child = null; - fiber.deletions = null; - fiber.sibling = null; - fiber.stateNode = null; - fiber.return = null; - fiber.dependencies = null; - fiber.memoizedProps = null; - fiber.memoizedState = null; - fiber.pendingProps = null; - fiber.stateNode = null; - fiber.updateQueue = null; -} -function isHostParent(fiber) { - return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag; -} -function getHostSibling(fiber) { - a: for (;;) { - for (; null === fiber.sibling; ) { - if (null === fiber.return || isHostParent(fiber.return)) return null; - fiber = fiber.return; - } - fiber.sibling.return = fiber.return; - for ( - fiber = fiber.sibling; - 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; - - ) { - if (fiber.flags & 2) continue a; - if (null === fiber.child || 4 === fiber.tag) continue a; - else (fiber.child.return = fiber), (fiber = fiber.child); - } - if (!(fiber.flags & 2)) return fiber.stateNode; - } -} -function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { - var tag = node.tag; - if (5 === tag || 6 === tag) - if (((node = node.stateNode), before)) { - if (node === before) throw Error(formatProdErrorMessage(218)); - node.injectBefore(before); - } else node.parentNode === parent && node.eject(), node.inject(parent); - else if (4 !== tag && ((node = node.child), null !== node)) - for ( - insertOrAppendPlacementNodeIntoContainer(node, before, parent), - node = node.sibling; - null !== node; - - ) - insertOrAppendPlacementNodeIntoContainer(node, before, parent), - (node = node.sibling); -} -function insertOrAppendPlacementNode(node, before, parent) { - var tag = node.tag; - if (5 === tag || 6 === tag) - if (((node = node.stateNode), before)) { - if (node === before) throw Error(formatProdErrorMessage(218)); - node.injectBefore(before); - } else node.parentNode === parent && node.eject(), node.inject(parent); - else if (4 !== tag && ((node = node.child), null !== node)) - for ( - insertOrAppendPlacementNode(node, before, parent), node = node.sibling; - null !== node; - - ) - insertOrAppendPlacementNode(node, before, parent), (node = node.sibling); -} -var hostParent = null, - hostParentIsContainer = !1; -function recursivelyTraverseDeletionEffects( - finishedRoot, - nearestMountedAncestor, - parent -) { - for (parent = parent.child; null !== parent; ) - commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), - (parent = parent.sibling); -} -function commitDeletionEffectsOnFiber( - finishedRoot, - nearestMountedAncestor, - deletedFiber -) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) - try { - injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); - } catch (err) {} - switch (deletedFiber.tag) { - case 26: - case 27: - case 5: - offscreenSubtreeWasHidden || - safelyDetachRef(deletedFiber, nearestMountedAncestor); - case 6: - var prevHostParent = hostParent, - prevHostParentIsContainer = hostParentIsContainer; - hostParent = null; - recursivelyTraverseDeletionEffects( - finishedRoot, - nearestMountedAncestor, - deletedFiber - ); - hostParent = prevHostParent; - hostParentIsContainer = prevHostParentIsContainer; - null !== hostParent && - ((deletedFiber = deletedFiber.stateNode), - destroyEventListeners(deletedFiber), - deletedFiber.eject()); - break; - case 18: - finishedRoot = finishedRoot.hydrationCallbacks; - null !== finishedRoot && - (finishedRoot = finishedRoot.onDeleted) && - finishedRoot(deletedFiber.stateNode); - null !== hostParent && shim(hostParent, deletedFiber.stateNode); - break; - case 4: - prevHostParent = hostParent; - prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode.containerInfo; - hostParentIsContainer = !0; - recursivelyTraverseDeletionEffects( - finishedRoot, - nearestMountedAncestor, - deletedFiber - ); - hostParent = prevHostParent; - hostParentIsContainer = prevHostParentIsContainer; - break; - case 0: - case 11: - case 14: - case 15: - if ( - !offscreenSubtreeWasHidden && - ((prevHostParent = deletedFiber.updateQueue), - null !== prevHostParent && - ((prevHostParent = prevHostParent.lastEffect), - null !== prevHostParent)) - ) { - prevHostParentIsContainer = prevHostParent = prevHostParent.next; - do { - var _effect = prevHostParentIsContainer, - destroy = _effect.destroy; - _effect = _effect.tag; - void 0 !== destroy && - (0 !== (_effect & 2) - ? safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy) - : 0 !== (_effect & 4) && - safelyCallDestroy( - deletedFiber, - nearestMountedAncestor, - destroy - )); - prevHostParentIsContainer = prevHostParentIsContainer.next; - } while (prevHostParentIsContainer !== prevHostParent); - } - recursivelyTraverseDeletionEffects( - finishedRoot, - nearestMountedAncestor, - deletedFiber - ); - break; - case 1: - if ( - !offscreenSubtreeWasHidden && - (safelyDetachRef(deletedFiber, nearestMountedAncestor), - (prevHostParent = deletedFiber.stateNode), - "function" === typeof prevHostParent.componentWillUnmount) - ) - try { - (prevHostParent.props = deletedFiber.memoizedProps), - (prevHostParent.state = deletedFiber.memoizedState), - prevHostParent.componentWillUnmount(); - } catch (error) { - captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); - } - recursivelyTraverseDeletionEffects( - finishedRoot, - nearestMountedAncestor, - deletedFiber - ); - break; - case 21: - safelyDetachRef(deletedFiber, nearestMountedAncestor); - recursivelyTraverseDeletionEffects( - finishedRoot, - nearestMountedAncestor, - deletedFiber - ); - break; - case 22: - safelyDetachRef(deletedFiber, nearestMountedAncestor); - deletedFiber.mode & 1 - ? ((offscreenSubtreeWasHidden = - (prevHostParent = offscreenSubtreeWasHidden) || - null !== deletedFiber.memoizedState), - recursivelyTraverseDeletionEffects( - finishedRoot, - nearestMountedAncestor, - deletedFiber - ), - (offscreenSubtreeWasHidden = prevHostParent)) - : recursivelyTraverseDeletionEffects( - finishedRoot, - nearestMountedAncestor, - deletedFiber - ); - break; - default: - recursivelyTraverseDeletionEffects( - finishedRoot, - nearestMountedAncestor, - deletedFiber - ); - } -} -function getRetryCache(finishedWork) { - switch (finishedWork.tag) { - case 13: - case 19: - var retryCache = finishedWork.stateNode; - null === retryCache && - (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); - return retryCache; - case 22: - return ( - (finishedWork = finishedWork.stateNode), - (retryCache = finishedWork._retryCache), - null === retryCache && - (retryCache = finishedWork._retryCache = new PossiblyWeakSet()), - retryCache - ); - default: - throw Error(formatProdErrorMessage(435, finishedWork.tag)); - } -} -function detachOffscreenInstance(instance) { - var fiber = instance._current; - if (null === fiber) throw Error(formatProdErrorMessage(456)); - if (0 === (instance._pendingVisibility & 2)) { - var root = enqueueConcurrentRenderForLane(fiber, 2); - null !== root && - ((instance._pendingVisibility |= 2), - scheduleUpdateOnFiber(root, fiber, 2, -1)); - } -} -function attachOffscreenInstance(instance) { - var fiber = instance._current; - if (null === fiber) throw Error(formatProdErrorMessage(456)); - if (0 !== (instance._pendingVisibility & 2)) { - var root = enqueueConcurrentRenderForLane(fiber, 2); - null !== root && - ((instance._pendingVisibility &= -3), - scheduleUpdateOnFiber(root, fiber, 2, -1)); - } -} -function attachSuspenseRetryListeners(finishedWork, wakeables) { - var retryCache = getRetryCache(finishedWork); - wakeables.forEach(function (wakeable) { - var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); - retryCache.has(wakeable) || - (retryCache.add(wakeable), wakeable.then(retry, retry)); - }); -} -function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { - var deletions = parentFiber.deletions; - if (null !== deletions) - for (var i = 0; i < deletions.length; i++) { - var childToDelete = deletions[i]; - try { - var root = root$jscomp$0, - returnFiber = parentFiber, - parent = returnFiber; - a: for (; null !== parent; ) { - switch (parent.tag) { - case 27: - case 5: - hostParent = parent.stateNode; - hostParentIsContainer = !1; - break a; - case 3: - hostParent = parent.stateNode.containerInfo; - hostParentIsContainer = !0; - break a; - case 4: - hostParent = parent.stateNode.containerInfo; - hostParentIsContainer = !0; - break a; - } - parent = parent.return; - } - if (null === hostParent) throw Error(formatProdErrorMessage(160)); - commitDeletionEffectsOnFiber(root, returnFiber, childToDelete); - hostParent = null; - hostParentIsContainer = !1; - var alternate = childToDelete.alternate; - null !== alternate && (alternate.return = null); - childToDelete.return = null; - } catch (error) { - captureCommitPhaseError(childToDelete, parentFiber, error); - } - } - if (parentFiber.subtreeFlags & 12854) - for (parentFiber = parentFiber.child; null !== parentFiber; ) - commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), - (parentFiber = parentFiber.sibling); -} -function commitMutationEffectsOnFiber(finishedWork, root) { - var current = finishedWork.alternate, - flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 14: - case 15: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & 4) { - try { - commitHookEffectListUnmount(3, finishedWork, finishedWork.return), - commitHookEffectListMount(3, finishedWork); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - try { - commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$105) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$105); - } - } - break; - case 1: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - flags & 512 && - null !== current && - safelyDetachRef(current, current.return); - flags & 64 && - offscreenSubtreeIsHidden && - ((finishedWork = finishedWork.updateQueue), - null !== finishedWork && - ((flags = finishedWork.callbacks), - null !== flags && - ((current = finishedWork.shared.hiddenCallbacks), - (finishedWork.shared.hiddenCallbacks = - null === current ? flags : current.concat(flags))))); - break; - case 26: - case 27: - case 5: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - flags & 512 && - null !== current && - safelyDetachRef(current, current.return); - if (flags & 4 && ((flags = finishedWork.stateNode), null != flags)) { - var newProps = finishedWork.memoizedProps; - current = null !== current ? current.memoizedProps : newProps; - var updatePayload = finishedWork.updateQueue; - finishedWork.updateQueue = null; - if (null !== updatePayload) - try { - flags._applyProps(flags, newProps, current); - } catch (error$108) { - captureCommitPhaseError( - finishedWork, - finishedWork.return, - error$108 - ); - } - } - break; - case 6: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - if (flags & 4 && null === finishedWork.stateNode) - throw Error(formatProdErrorMessage(162)); - break; - case 3: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - break; - case 4: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - break; - case 13: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - current = finishedWork.child; - current.flags & 8192 && - null !== current.memoizedState && - (null === current.alternate || - null === current.alternate.memoizedState) && - (globalMostRecentFallbackTime = now()); - if (flags & 4) { - try { - if (null !== finishedWork.memoizedState) { - var suspenseCallback = finishedWork.memoizedProps.suspenseCallback; - if ("function" === typeof suspenseCallback) { - var wakeables = finishedWork.updateQueue; - null !== wakeables && suspenseCallback(new Set(wakeables)); - } - } - } catch (error$110) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$110); - } - flags = finishedWork.updateQueue; - null !== flags && - ((finishedWork.updateQueue = null), - attachSuspenseRetryListeners(finishedWork, flags)); - } - break; - case 22: - flags & 512 && - null !== current && - safelyDetachRef(current, current.return); - suspenseCallback = null !== finishedWork.memoizedState; - wakeables = null !== current && null !== current.memoizedState; - if (finishedWork.mode & 1) { - var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, - prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = - prevOffscreenSubtreeIsHidden || suspenseCallback; - offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wakeables; - recursivelyTraverseMutationEffects(root, finishedWork); - offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; - } else recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - root = finishedWork.stateNode; - root._current = finishedWork; - root._visibility &= -3; - root._visibility |= root._pendingVisibility & 2; - if ( - flags & 8192 && - ((root._visibility = suspenseCallback - ? root._visibility & -2 - : root._visibility | 1), - suspenseCallback && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - wakeables || - root || - (0 !== (finishedWork.mode & 1) && - recursivelyTraverseDisappearLayoutEffects(finishedWork))), - null === finishedWork.memoizedProps || - "manual" !== finishedWork.memoizedProps.mode) - ) - a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag) { - if (null === current) { - current = root; - try { - (newProps = root.stateNode), - suspenseCallback - ? newProps.hide() - : ((updatePayload = root.memoizedProps), - (null == updatePayload.visible || - updatePayload.visible) && - root.stateNode.show()); - } catch (error) { - captureCommitPhaseError( - finishedWork, - finishedWork.return, - error - ); - } - } - } else if ( - 6 !== root.tag && - ((22 !== root.tag && 23 !== root.tag) || - null === root.memoizedState || - root === finishedWork) && - null !== root.child - ) { - root.child.return = root; - root = root.child; - continue; - } - if (root === finishedWork) break a; - for (; null === root.sibling; ) { - if (null === root.return || root.return === finishedWork) break a; - current === root && (current = null); - root = root.return; - } - current === root && (current = null); - root.sibling.return = root.return; - root = root.sibling; - } - flags & 4 && - ((flags = finishedWork.updateQueue), - null !== flags && - ((current = flags.wakeables), - null !== current && - ((flags.wakeables = null), - attachSuspenseRetryListeners(finishedWork, current)))); - break; - case 19: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - flags & 4 && - ((flags = finishedWork.updateQueue), - null !== flags && - ((finishedWork.updateQueue = null), - attachSuspenseRetryListeners(finishedWork, flags))); - break; - case 21: - recursivelyTraverseMutationEffects(root, finishedWork); - commitReconciliationEffects(finishedWork); - flags & 512 && - (null !== current && safelyDetachRef(finishedWork, finishedWork.return), - safelyAttachRef(finishedWork, finishedWork.return)); - flags & 4 && shim$1(); - break; - default: - recursivelyTraverseMutationEffects(root, finishedWork), - commitReconciliationEffects(finishedWork); - } -} -function commitReconciliationEffects(finishedWork) { - var flags = finishedWork.flags; - if (flags & 2) { - try { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var JSCompiler_inline_result = parent; - break a; - } - parent = parent.return; - } - throw Error(formatProdErrorMessage(160)); - } - switch (JSCompiler_inline_result.tag) { - case 27: - case 5: - var parent$jscomp$0 = JSCompiler_inline_result.stateNode; - JSCompiler_inline_result.flags & 32 && - (JSCompiler_inline_result.flags &= -33); - var before = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); - break; - case 3: - case 4: - var parent$100 = JSCompiler_inline_result.stateNode.containerInfo, - before$101 = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - before$101, - parent$100 - ); - break; - default: - throw Error(formatProdErrorMessage(161)); - } - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - finishedWork.flags &= -3; - } - flags & 4096 && (finishedWork.flags &= -4097); -} -function recursivelyTraverseLayoutEffects(root, parentFiber) { - if (parentFiber.subtreeFlags & 8772) - for (parentFiber = parentFiber.child; null !== parentFiber; ) - commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber), - (parentFiber = parentFiber.sibling); -} -function recursivelyTraverseDisappearLayoutEffects(parentFiber) { - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var finishedWork = parentFiber; - switch (finishedWork.tag) { - case 0: - case 11: - case 14: - case 15: - commitHookEffectListUnmount(4, finishedWork, finishedWork.return); - recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - case 1: - safelyDetachRef(finishedWork, finishedWork.return); - var instance = finishedWork.stateNode; - if ("function" === typeof instance.componentWillUnmount) { - var current = finishedWork, - nearestMountedAncestor = finishedWork.return; - try { - var current$jscomp$0 = current; - instance.props = current$jscomp$0.memoizedProps; - instance.state = current$jscomp$0.memoizedState; - instance.componentWillUnmount(); - } catch (error) { - captureCommitPhaseError(current, nearestMountedAncestor, error); - } - } - recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - case 26: - case 27: - case 5: - safelyDetachRef(finishedWork, finishedWork.return); - recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - case 22: - safelyDetachRef(finishedWork, finishedWork.return); - null === finishedWork.memoizedState && - recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - default: - recursivelyTraverseDisappearLayoutEffects(finishedWork); - } - parentFiber = parentFiber.sibling; - } -} -function recursivelyTraverseReappearLayoutEffects( - finishedRoot$jscomp$0, - parentFiber, - includeWorkInProgressEffects -) { - includeWorkInProgressEffects = - includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var finishedRoot = finishedRoot$jscomp$0, - finishedWork = parentFiber, - flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 15: - recursivelyTraverseReappearLayoutEffects( - finishedRoot, - finishedWork, - includeWorkInProgressEffects - ); - commitHookLayoutEffects(finishedWork, 4); - break; - case 1: - recursivelyTraverseReappearLayoutEffects( - finishedRoot, - finishedWork, - includeWorkInProgressEffects - ); - var instance = finishedWork.stateNode; - if ("function" === typeof instance.componentDidMount) - try { - instance.componentDidMount(); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - finishedRoot = finishedWork.updateQueue; - if (null !== finishedRoot) { - var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks; - if (null !== hiddenCallbacks) - for ( - finishedRoot.shared.hiddenCallbacks = null, finishedRoot = 0; - finishedRoot < hiddenCallbacks.length; - finishedRoot++ - ) - callCallback(hiddenCallbacks[finishedRoot], instance); - } - includeWorkInProgressEffects && - flags & 64 && - commitClassCallbacks(finishedWork); - safelyAttachRef(finishedWork, finishedWork.return); - break; - case 26: - case 27: - case 5: - recursivelyTraverseReappearLayoutEffects( - finishedRoot, - finishedWork, - includeWorkInProgressEffects - ); - safelyAttachRef(finishedWork, finishedWork.return); - break; - case 12: - recursivelyTraverseReappearLayoutEffects( - finishedRoot, - finishedWork, - includeWorkInProgressEffects - ); - break; - case 13: - recursivelyTraverseReappearLayoutEffects( - finishedRoot, - finishedWork, - includeWorkInProgressEffects - ); - break; - case 22: - null === finishedWork.memoizedState && - recursivelyTraverseReappearLayoutEffects( - finishedRoot, - finishedWork, - includeWorkInProgressEffects - ); - safelyAttachRef(finishedWork, finishedWork.return); - break; - default: - recursivelyTraverseReappearLayoutEffects( - finishedRoot, - finishedWork, - includeWorkInProgressEffects - ); - } - parentFiber = parentFiber.sibling; - } -} -function commitHookPassiveMountEffects(finishedWork, hookFlags) { - try { - commitHookEffectListMount(hookFlags, finishedWork); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } -} -function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { - var previousCache = null; - null !== current && - null !== current.memoizedState && - null !== current.memoizedState.cachePool && - (previousCache = current.memoizedState.cachePool.pool); - current = null; - null !== finishedWork.memoizedState && - null !== finishedWork.memoizedState.cachePool && - (current = finishedWork.memoizedState.cachePool.pool); - current !== previousCache && - (null != current && current.refCount++, - null != previousCache && releaseCache(previousCache)); - if (enableTransitionTracing) { - current = finishedWork.updateQueue; - previousCache = null !== finishedWork.memoizedState; - if (null !== current) { - if (previousCache) { - var transitions = current.transitions; - null !== transitions && - transitions.forEach(function (transition) { - null === instance._transitions && - (instance._transitions = new Set()); - instance._transitions.add(transition); - }); - current = current.markerInstances; - null !== current && - current.forEach(function (markerInstance) { - var markerTransitions = markerInstance.transitions; - null !== markerTransitions && - markerTransitions.forEach(function (transition) { - null === instance._transitions - ? (instance._transitions = new Set()) - : instance._transitions.has(transition) && - (null === markerInstance.pendingBoundaries && - (markerInstance.pendingBoundaries = new Map()), - null === instance._pendingMarkers && - (instance._pendingMarkers = new Set()), - instance._pendingMarkers.add(markerInstance)); - }); - }); - } - finishedWork.updateQueue = null; - } - commitTransitionProgress(finishedWork); - previousCache || - ((instance._transitions = null), (instance._pendingMarkers = null)); - } -} -function commitCachePassiveMountEffect(current, finishedWork) { - current = null; - null !== finishedWork.alternate && - (current = finishedWork.alternate.memoizedState.cache); - finishedWork = finishedWork.memoizedState.cache; - finishedWork !== current && - (finishedWork.refCount++, null != current && releaseCache(current)); -} -function commitTracingMarkerPassiveMountEffect(finishedWork) { - var instance = finishedWork.stateNode; - null !== instance.transitions && - null === instance.pendingBoundaries && - (addMarkerCompleteCallbackToPendingTransition( - finishedWork.memoizedProps.name, - instance.transitions - ), - (instance.transitions = null), - (instance.pendingBoundaries = null), - (instance.aborts = null), - (instance.name = null)); -} -function recursivelyTraversePassiveMountEffects( - root, - parentFiber, - committedLanes, - committedTransitions -) { - if (parentFiber.subtreeFlags & 10256) - for (parentFiber = parentFiber.child; null !== parentFiber; ) - commitPassiveMountOnFiber( - root, - parentFiber, - committedLanes, - committedTransitions - ), - (parentFiber = parentFiber.sibling); -} -function commitPassiveMountOnFiber( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions -) { - var flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 15: - recursivelyTraversePassiveMountEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions - ); - flags & 2048 && commitHookPassiveMountEffects(finishedWork, 9); - break; - case 3: - recursivelyTraversePassiveMountEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions - ); - if (flags & 2048) { - flags = null; - null !== finishedWork.alternate && - (flags = finishedWork.alternate.memoizedState.cache); - var nextCache = finishedWork.memoizedState.cache; - nextCache !== flags && - (nextCache.refCount++, null != flags && releaseCache(flags)); - if (enableTransitionTracing) { - var incompleteTransitions = - finishedWork.stateNode.incompleteTransitions; - null !== committedTransitions && - (committedTransitions.forEach(function (transition) { - enableTransitionTracing && - (null === currentPendingTransitionCallbacks && - (currentPendingTransitionCallbacks = { - transitionStart: [], - transitionProgress: null, - transitionComplete: null, - markerProgress: null, - markerIncomplete: null, - markerComplete: null - }), - null === currentPendingTransitionCallbacks.transitionStart && - (currentPendingTransitionCallbacks.transitionStart = []), - currentPendingTransitionCallbacks.transitionStart.push( - transition - )); - }), - clearTransitionsForLanes(finishedRoot, committedLanes)); - incompleteTransitions.forEach(function (markerInstance, transition) { - var pendingBoundaries = markerInstance.pendingBoundaries; - if (null === pendingBoundaries || 0 === pendingBoundaries.size) - null === markerInstance.aborts && - enableTransitionTracing && - (null === currentPendingTransitionCallbacks && - (currentPendingTransitionCallbacks = { - transitionStart: null, - transitionProgress: null, - transitionComplete: [], - markerProgress: null, - markerIncomplete: null, - markerComplete: null - }), - null === currentPendingTransitionCallbacks.transitionComplete && - (currentPendingTransitionCallbacks.transitionComplete = []), - currentPendingTransitionCallbacks.transitionComplete.push( - transition - )), - incompleteTransitions.delete(transition); - }); - clearTransitionsForLanes(finishedRoot, committedLanes); - } - } - break; - case 23: - recursivelyTraversePassiveMountEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions - ); - flags & 2048 && - commitOffscreenPassiveMountEffects( - finishedWork.alternate, - finishedWork, - finishedWork.stateNode - ); - break; - case 22: - nextCache = finishedWork.stateNode; - null !== finishedWork.memoizedState - ? nextCache._visibility & 4 - ? recursivelyTraversePassiveMountEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions - ) - : finishedWork.mode & 1 - ? recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork) - : ((nextCache._visibility |= 4), - recursivelyTraversePassiveMountEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions - )) - : nextCache._visibility & 4 - ? recursivelyTraversePassiveMountEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions - ) - : ((nextCache._visibility |= 4), - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - 0 !== (finishedWork.subtreeFlags & 10256) - )); - flags & 2048 && - commitOffscreenPassiveMountEffects( - finishedWork.alternate, - finishedWork, - nextCache - ); - break; - case 24: - recursivelyTraversePassiveMountEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions - ); - flags & 2048 && - commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); - break; - case 25: - if (enableTransitionTracing) { - recursivelyTraversePassiveMountEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions - ); - flags & 2048 && commitTracingMarkerPassiveMountEffect(finishedWork); - break; - } - default: - recursivelyTraversePassiveMountEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions - ); - } -} -function recursivelyTraverseReconnectPassiveEffects( - finishedRoot$jscomp$0, - parentFiber, - committedLanes$jscomp$0, - committedTransitions$jscomp$0, - includeWorkInProgressEffects -) { - includeWorkInProgressEffects = - includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 10256); - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var finishedRoot = finishedRoot$jscomp$0, - finishedWork = parentFiber, - committedLanes = committedLanes$jscomp$0, - committedTransitions = committedTransitions$jscomp$0, - flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 15: - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ); - commitHookPassiveMountEffects(finishedWork, 8); - break; - case 23: - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ); - includeWorkInProgressEffects && - flags & 2048 && - commitOffscreenPassiveMountEffects( - finishedWork.alternate, - finishedWork, - finishedWork.stateNode - ); - break; - case 22: - var instance$119 = finishedWork.stateNode; - null !== finishedWork.memoizedState - ? instance$119._visibility & 4 - ? recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ) - : finishedWork.mode & 1 - ? recursivelyTraverseAtomicPassiveEffects( - finishedRoot, - finishedWork - ) - : ((instance$119._visibility |= 4), - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - )) - : ((instance$119._visibility |= 4), - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - )); - includeWorkInProgressEffects && - flags & 2048 && - commitOffscreenPassiveMountEffects( - finishedWork.alternate, - finishedWork, - instance$119 - ); - break; - case 24: - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ); - includeWorkInProgressEffects && - flags & 2048 && - commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); - break; - case 25: - if (enableTransitionTracing) { - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ); - includeWorkInProgressEffects && - flags & 2048 && - commitTracingMarkerPassiveMountEffect(finishedWork); - break; - } - default: - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ); - } - parentFiber = parentFiber.sibling; - } -} -function recursivelyTraverseAtomicPassiveEffects( - finishedRoot$jscomp$0, - parentFiber -) { - if (parentFiber.subtreeFlags & 10256) - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var finishedRoot = finishedRoot$jscomp$0, - finishedWork = parentFiber, - flags = finishedWork.flags; - switch (finishedWork.tag) { - case 22: - recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - flags & 2048 && - commitOffscreenPassiveMountEffects( - finishedWork.alternate, - finishedWork, - finishedWork.stateNode - ); - break; - case 24: - recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - flags & 2048 && - commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); - break; - default: - recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - } - parentFiber = parentFiber.sibling; - } -} -function detachAlternateSiblings(parentFiber) { - var previousFiber = parentFiber.alternate; - if ( - null !== previousFiber && - ((parentFiber = previousFiber.child), null !== parentFiber) - ) { - previousFiber.child = null; - do - (previousFiber = parentFiber.sibling), - (parentFiber.sibling = null), - (parentFiber = previousFiber); - while (null !== parentFiber); - } -} -function recursivelyTraversePassiveUnmountEffects(parentFiber) { - var deletions = parentFiber.deletions; - if (0 !== (parentFiber.flags & 16)) { - if (null !== deletions) - for (var i = 0; i < deletions.length; i++) { - var childToDelete = deletions[i]; - nextEffect = childToDelete; - commitPassiveUnmountEffectsInsideOfDeletedTree_begin( - childToDelete, - parentFiber - ); - } - detachAlternateSiblings(parentFiber); - } - if (parentFiber.subtreeFlags & 10256) - for (parentFiber = parentFiber.child; null !== parentFiber; ) - commitPassiveUnmountOnFiber(parentFiber), - (parentFiber = parentFiber.sibling); -} -function commitPassiveUnmountOnFiber(finishedWork) { - switch (finishedWork.tag) { - case 0: - case 11: - case 15: - recursivelyTraversePassiveUnmountEffects(finishedWork); - finishedWork.flags & 2048 && - commitHookEffectListUnmount(9, finishedWork, finishedWork.return); - break; - case 22: - var instance = finishedWork.stateNode; - null !== finishedWork.memoizedState && - instance._visibility & 4 && - (null === finishedWork.return || 13 !== finishedWork.return.tag) - ? ((instance._visibility &= -5), - recursivelyTraverseDisconnectPassiveEffects(finishedWork)) - : recursivelyTraversePassiveUnmountEffects(finishedWork); - break; - default: - recursivelyTraversePassiveUnmountEffects(finishedWork); - } -} -function recursivelyTraverseDisconnectPassiveEffects(parentFiber) { - var deletions = parentFiber.deletions; - if (0 !== (parentFiber.flags & 16)) { - if (null !== deletions) - for (var i = 0; i < deletions.length; i++) { - var childToDelete = deletions[i]; - nextEffect = childToDelete; - commitPassiveUnmountEffectsInsideOfDeletedTree_begin( - childToDelete, - parentFiber - ); - } - detachAlternateSiblings(parentFiber); - } - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - deletions = parentFiber; - switch (deletions.tag) { - case 0: - case 11: - case 15: - commitHookEffectListUnmount(8, deletions, deletions.return); - recursivelyTraverseDisconnectPassiveEffects(deletions); - break; - case 22: - i = deletions.stateNode; - i._visibility & 4 && - ((i._visibility &= -5), - recursivelyTraverseDisconnectPassiveEffects(deletions)); - break; - default: - recursivelyTraverseDisconnectPassiveEffects(deletions); - } - parentFiber = parentFiber.sibling; - } -} -function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( - deletedSubtreeRoot, - nearestMountedAncestor$jscomp$0 -) { - for (; null !== nextEffect; ) { - var fiber = nextEffect, - nearestMountedAncestor = nearestMountedAncestor$jscomp$0; - switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListUnmount(8, fiber, nearestMountedAncestor); - break; - case 23: - case 22: - null !== fiber.memoizedState && - null !== fiber.memoizedState.cachePool && - ((nearestMountedAncestor = fiber.memoizedState.cachePool.pool), - null != nearestMountedAncestor && nearestMountedAncestor.refCount++); - break; - case 13: - if (enableTransitionTracing) { - var offscreenFiber = fiber.child, - instance = offscreenFiber.stateNode, - transitions = instance._transitions; - if (null !== transitions) { - var abortReason = { - reason: "suspense", - name: fiber.memoizedProps.unstable_name || null - }; - if ( - null === fiber.memoizedState || - null === fiber.memoizedState.dehydrated - ) - abortParentMarkerTransitionsForDeletedFiber( - offscreenFiber, - abortReason, - transitions, - instance, - !0 - ), - null !== nearestMountedAncestor && - abortParentMarkerTransitionsForDeletedFiber( - nearestMountedAncestor, - abortReason, - transitions, - instance, - !1 - ); - } - } - break; - case 24: - releaseCache(fiber.memoizedState.cache); - break; - case 25: - enableTransitionTracing && - ((offscreenFiber = fiber.stateNode.transitions), - null !== offscreenFiber && - ((instance = { reason: "marker", name: fiber.memoizedProps.name }), - abortParentMarkerTransitionsForDeletedFiber( - fiber, - instance, - offscreenFiber, - null, - !0 - ), - null !== nearestMountedAncestor && - abortParentMarkerTransitionsForDeletedFiber( - nearestMountedAncestor, - instance, - offscreenFiber, - null, - !1 - ))); - } - nearestMountedAncestor = fiber.child; - if (null !== nearestMountedAncestor) - (nearestMountedAncestor.return = fiber), - (nextEffect = nearestMountedAncestor); - else - a: for (fiber = deletedSubtreeRoot; null !== nextEffect; ) { - nearestMountedAncestor = nextEffect; - offscreenFiber = nearestMountedAncestor.sibling; - instance = nearestMountedAncestor.return; - detachFiberAfterEffects(nearestMountedAncestor); - if (nearestMountedAncestor === fiber) { - nextEffect = null; - break a; - } - if (null !== offscreenFiber) { - offscreenFiber.return = instance; - nextEffect = offscreenFiber; - break a; - } - nextEffect = instance; - } - } -} -var DefaultCacheDispatcher = { - getCacheSignal: function () { - return readContext(CacheContext).controller.signal; - }, - getCacheForType: function (resourceType) { - var cache = readContext(CacheContext), - cacheForType = cache.data.get(resourceType); - void 0 === cacheForType && - ((cacheForType = resourceType()), - cache.data.set(resourceType, cacheForType)); - return cacheForType; - } - }, - ceil = Math.ceil, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, - ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, - executionContext = 0, - workInProgressRoot = null, - workInProgress = null, - workInProgressRootRenderLanes = 0, - workInProgressSuspendedReason = 0, - workInProgressThrownValue = null, - workInProgressRootDidAttachPingListener = !1, - renderLanes$1 = 0, - workInProgressRootExitStatus = 0, - workInProgressRootFatalError = null, - workInProgressRootSkippedLanes = 0, - workInProgressRootInterleavedUpdatedLanes = 0, - workInProgressRootPingedLanes = 0, - workInProgressRootConcurrentErrors = null, - workInProgressRootRecoverableErrors = null, - globalMostRecentFallbackTime = 0, - workInProgressRootRenderTargetTime = Infinity, - workInProgressTransitions = null, - currentPendingTransitionCallbacks = null, - currentEndTime = null; -function addMarkerProgressCallbackToPendingTransition( - markerName, - transitions, - pendingBoundaries -) { - enableTransitionTracing && - (null === currentPendingTransitionCallbacks && - (currentPendingTransitionCallbacks = { - transitionStart: null, - transitionProgress: null, - transitionComplete: null, - markerProgress: new Map(), - markerIncomplete: null, - markerComplete: null - }), - null === currentPendingTransitionCallbacks.markerProgress && - (currentPendingTransitionCallbacks.markerProgress = new Map()), - currentPendingTransitionCallbacks.markerProgress.set(markerName, { - pendingBoundaries: pendingBoundaries, - transitions: transitions - })); -} -function addMarkerCompleteCallbackToPendingTransition(markerName, transitions) { - enableTransitionTracing && - (null === currentPendingTransitionCallbacks && - (currentPendingTransitionCallbacks = { - transitionStart: null, - transitionProgress: null, - transitionComplete: null, - markerProgress: null, - markerIncomplete: null, - markerComplete: new Map() - }), - null === currentPendingTransitionCallbacks.markerComplete && - (currentPendingTransitionCallbacks.markerComplete = new Map()), - currentPendingTransitionCallbacks.markerComplete.set( - markerName, - transitions - )); -} -function addTransitionProgressCallbackToPendingTransition( - transition, - boundaries -) { - enableTransitionTracing && - (null === currentPendingTransitionCallbacks && - (currentPendingTransitionCallbacks = { - transitionStart: null, - transitionProgress: new Map(), - transitionComplete: null, - markerProgress: null, - markerIncomplete: null, - markerComplete: null - }), - null === currentPendingTransitionCallbacks.transitionProgress && - (currentPendingTransitionCallbacks.transitionProgress = new Map()), - currentPendingTransitionCallbacks.transitionProgress.set( - transition, - boundaries - )); -} -var hasUncaughtError = !1, - firstUncaughtError = null, - legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, - rootWithPendingPassiveEffects = null, - pendingPassiveEffectsLanes = 0, - pendingPassiveEffectsRemainingLanes = 0, - pendingPassiveTransitions = null, - nestedUpdateCount = 0, - rootWithNestedUpdates = null, - currentEventTime = -1, - currentEventTransitionLane = 0; -function requestEventTime() { - return 0 !== (executionContext & 6) - ? now() - : -1 !== currentEventTime - ? currentEventTime - : (currentEventTime = now()); -} -function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 2; - if ( - !deferRenderPhaseUpdateToNextBatch && - 0 !== (executionContext & 2) && - 0 !== workInProgressRootRenderLanes - ) - return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; - if (null !== ReactCurrentBatchConfig$1.transition) - return ( - 0 === currentEventTransitionLane && - (currentEventTransitionLane = claimNextTransitionLane()), - currentEventTransitionLane - ); - fiber = currentUpdatePriority; - return 0 !== fiber ? fiber : 32; -} -function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { - 2 === workInProgressSuspendedReason && - root === workInProgressRoot && - (prepareFreshStack(root, 0), - markRootSuspended$1(root, workInProgressRootRenderLanes)); - markRootUpdated(root, lane, eventTime); - if (0 === (executionContext & 2) || root !== workInProgressRoot) { - if (enableTransitionTracing) { - var transition = ReactCurrentBatchConfig$2.transition; - if ( - null !== transition && - null != transition.name && - (-1 === transition.startTime && (transition.startTime = now()), - enableTransitionTracing) - ) { - var transitionLanesMap = root.transitionLanes, - index$7 = 31 - clz32(lane), - transitions = transitionLanesMap[index$7]; - null === transitions && (transitions = new Set()); - transitions.add(transition); - transitionLanesMap[index$7] = transitions; - } - } - if (root === workInProgressRoot) { - if (deferRenderPhaseUpdateToNextBatch || 0 === (executionContext & 2)) - workInProgressRootInterleavedUpdatedLanes |= lane; - 4 === workInProgressRootExitStatus && - markRootSuspended$1(root, workInProgressRootRenderLanes); - } - ensureRootIsScheduled(root, eventTime); - 2 === lane && - 0 === executionContext && - 0 === (fiber.mode & 1) && - ((workInProgressRootRenderTargetTime = now() + 500), - includesLegacySyncCallbacks && flushSyncCallbacks()); - } -} -function ensureRootIsScheduled(root, currentTime) { - for ( - var existingCallbackNode = root.callbackNode, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -125829121; - 0 < lanes; - - ) { - var index$3 = 31 - clz32(lanes), - lane = 1 << index$3, - expirationTime = expirationTimes[index$3]; - if (-1 === expirationTime) { - if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$3] = computeExpirationTime(lane, currentTime); - } else expirationTime <= currentTime && (root.expiredLanes |= lane); - lanes &= ~lane; - } - suspendedLanes = getNextLanes( - root, - root === workInProgressRoot ? workInProgressRootRenderLanes : 0 - ); - if (0 === suspendedLanes) - null !== existingCallbackNode && cancelCallback(existingCallbackNode), - (root.callbackNode = null), - (root.callbackPriority = 0); - else if ( - ((currentTime = suspendedLanes & -suspendedLanes), - root.callbackPriority !== currentTime) - ) { - null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (0 !== (currentTime & 3)) - 0 === root.tag - ? ((existingCallbackNode = performSyncWorkOnRoot.bind(null, root)), - (includesLegacySyncCallbacks = !0), - null === syncQueue - ? (syncQueue = [existingCallbackNode]) - : syncQueue.push(existingCallbackNode)) - : ((existingCallbackNode = performSyncWorkOnRoot.bind(null, root)), - null === syncQueue - ? (syncQueue = [existingCallbackNode]) - : syncQueue.push(existingCallbackNode)), - scheduleCallback(ImmediatePriority, flushSyncCallbacks), - (existingCallbackNode = null); - else { - switch (lanesToEventPriority(suspendedLanes)) { - case 2: - existingCallbackNode = ImmediatePriority; - break; - case 8: - existingCallbackNode = UserBlockingPriority; - break; - case 32: - existingCallbackNode = NormalPriority; - break; - case 536870912: - existingCallbackNode = IdlePriority; - break; - default: - existingCallbackNode = NormalPriority; - } - existingCallbackNode = scheduleCallback$2( - existingCallbackNode, - performConcurrentWorkOnRoot.bind(null, root) - ); - } - root.callbackPriority = currentTime; - root.callbackNode = existingCallbackNode; - } -} -function performConcurrentWorkOnRoot(root, didTimeout) { - currentEventTime = -1; - currentEventTransitionLane = 0; - if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var originalCallbackNode = root.callbackNode; - if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) - return null; - var lanes = getNextLanes( - root, - root === workInProgressRoot ? workInProgressRootRenderLanes : 0 - ); - if (0 === lanes) return null; - didTimeout = - includesBlockingLane(root, lanes) || - 0 !== (lanes & root.expiredLanes) || - (!disableSchedulerTimeoutInWorkLoop && didTimeout) - ? renderRootSync(root, lanes) - : renderRootConcurrent(root, lanes); - if (0 !== didTimeout) { - if (2 === didTimeout) { - var originallyAttemptedLanes = lanes, - errorRetryLanes = getLanesToRetrySynchronouslyOnError( - root, - originallyAttemptedLanes - ); - 0 !== errorRetryLanes && - ((lanes = errorRetryLanes), - (didTimeout = recoverFromConcurrentError( - root, - originallyAttemptedLanes, - errorRetryLanes - ))); - } - if (1 === didTimeout) - throw ( - ((originalCallbackNode = workInProgressRootFatalError), - prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), - ensureRootIsScheduled(root, now()), - originalCallbackNode) - ); - if (6 === didTimeout) markRootSuspended$1(root, lanes); - else { - errorRetryLanes = !includesBlockingLane(root, lanes); - originallyAttemptedLanes = root.current.alternate; - if ( - errorRetryLanes && - !isRenderConsistentWithExternalStores(originallyAttemptedLanes) - ) { - didTimeout = renderRootSync(root, lanes); - if (2 === didTimeout) { - errorRetryLanes = lanes; - var errorRetryLanes$128 = getLanesToRetrySynchronouslyOnError( - root, - errorRetryLanes - ); - 0 !== errorRetryLanes$128 && - ((lanes = errorRetryLanes$128), - (didTimeout = recoverFromConcurrentError( - root, - errorRetryLanes, - errorRetryLanes$128 - ))); - } - if (1 === didTimeout) - throw ( - ((originalCallbackNode = workInProgressRootFatalError), - prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), - ensureRootIsScheduled(root, now()), - originalCallbackNode) - ); - } - root.finishedWork = originallyAttemptedLanes; - root.finishedLanes = lanes; - switch (didTimeout) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 2: - commitRoot( - root, - workInProgressRootRecoverableErrors, - workInProgressTransitions - ); - break; - case 3: - markRootSuspended$1(root, lanes); - if ( - (lanes & 125829120) === lanes && - ((lanes = globalMostRecentFallbackTime + 500 - now()), 10 < lanes) - ) { - if (0 !== getNextLanes(root, 0)) break; - root.timeoutHandle = scheduleTimeout( - commitRoot.bind( - null, - root, - workInProgressRootRecoverableErrors, - workInProgressTransitions - ), - lanes - ); - break; - } - commitRoot( - root, - workInProgressRootRecoverableErrors, - workInProgressTransitions - ); - break; - case 4: - markRootSuspended$1(root, lanes); - if ((lanes & 8388480) === lanes) break; - didTimeout = root.eventTimes; - for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$128 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$128), - (errorRetryLanes$128 = didTimeout[errorRetryLanes$128]), - errorRetryLanes$128 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$128), - (lanes &= ~errorRetryLanes); - lanes = originallyAttemptedLanes; - lanes = now() - lanes; - lanes = - (120 > lanes - ? 120 - : 480 > lanes - ? 480 - : 1080 > lanes - ? 1080 - : 1920 > lanes - ? 1920 - : 3e3 > lanes - ? 3e3 - : 4320 > lanes - ? 4320 - : 1960 * ceil(lanes / 1960)) - lanes; - if (10 < lanes) { - root.timeoutHandle = scheduleTimeout( - commitRoot.bind( - null, - root, - workInProgressRootRecoverableErrors, - workInProgressTransitions - ), - lanes - ); - break; - } - commitRoot( - root, - workInProgressRootRecoverableErrors, - workInProgressTransitions - ); - break; - case 5: - commitRoot( - root, - workInProgressRootRecoverableErrors, - workInProgressTransitions - ); - break; - default: - throw Error(formatProdErrorMessage(329)); - } - } - } - ensureRootIsScheduled(root, now()); - return root.callbackNode === originalCallbackNode - ? 2 === workInProgressSuspendedReason && workInProgressRoot === root - ? ((root.callbackPriority = 0), (root.callbackNode = null)) - : performConcurrentWorkOnRoot.bind(null, root) - : null; -} -function recoverFromConcurrentError( - root, - originallyAttemptedLanes, - errorRetryLanes -) { - var errorsFromFirstAttempt = workInProgressRootConcurrentErrors, - JSCompiler_inline_result; - (JSCompiler_inline_result = root.current.memoizedState.isDehydrated) && - (prepareFreshStack(root, errorRetryLanes).flags |= 256); - errorRetryLanes = renderRootSync(root, errorRetryLanes); - if (2 !== errorRetryLanes) { - if (workInProgressRootDidAttachPingListener && !JSCompiler_inline_result) - return ( - (root.errorRecoveryDisabledLanes |= originallyAttemptedLanes), - (workInProgressRootInterleavedUpdatedLanes |= originallyAttemptedLanes), - 4 - ); - root = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorsFromFirstAttempt; - null !== root && queueRecoverableErrors(root); - } - return errorRetryLanes; -} -function queueRecoverableErrors(errors) { - null === workInProgressRootRecoverableErrors - ? (workInProgressRootRecoverableErrors = errors) - : workInProgressRootRecoverableErrors.push.apply( - workInProgressRootRecoverableErrors, - errors - ); -} -function isRenderConsistentWithExternalStores(finishedWork) { - for (var node = finishedWork; ; ) { - if (node.flags & 16384) { - var updateQueue = node.updateQueue; - if ( - null !== updateQueue && - ((updateQueue = updateQueue.stores), null !== updateQueue) - ) - for (var i = 0; i < updateQueue.length; i++) { - var check = updateQueue[i], - getSnapshot = check.getSnapshot; - check = check.value; - try { - if (!objectIs(getSnapshot(), check)) return !1; - } catch (error) { - return !1; - } - } - } - updateQueue = node.child; - if (node.subtreeFlags & 16384 && null !== updateQueue) - (updateQueue.return = node), (node = updateQueue); - else { - if (node === finishedWork) break; - for (; null === node.sibling; ) { - if (null === node.return || node.return === finishedWork) return !0; - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } - } - return !0; -} -function markRootSuspended$1(root, suspendedLanes) { - suspendedLanes &= ~workInProgressRootPingedLanes; - suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; - root.suspendedLanes |= suspendedLanes; - root.pingedLanes &= ~suspendedLanes; - for (root = root.expirationTimes; 0 < suspendedLanes; ) { - var index$4 = 31 - clz32(suspendedLanes), - lane = 1 << index$4; - root[index$4] = -1; - suspendedLanes &= ~lane; - } -} -function performSyncWorkOnRoot(root) { - if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - flushPassiveEffects(); - var lanes = getNextLanes(root, 0); - if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; - var exitStatus = renderRootSync(root, lanes); - if (0 !== root.tag && 2 === exitStatus) { - var originallyAttemptedLanes = lanes, - errorRetryLanes = getLanesToRetrySynchronouslyOnError( - root, - originallyAttemptedLanes - ); - 0 !== errorRetryLanes && - ((lanes = errorRetryLanes), - (exitStatus = recoverFromConcurrentError( - root, - originallyAttemptedLanes, - errorRetryLanes - ))); - } - if (1 === exitStatus) - throw ( - ((exitStatus = workInProgressRootFatalError), - prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), - ensureRootIsScheduled(root, now()), - exitStatus) - ); - if (6 === exitStatus) - return ( - markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), null - ); - root.finishedWork = root.current.alternate; - root.finishedLanes = lanes; - commitRoot( - root, - workInProgressRootRecoverableErrors, - workInProgressTransitions - ); - ensureRootIsScheduled(root, now()); - return null; -} -function resetWorkInProgressStack() { - if (null !== workInProgress) { - if (0 === workInProgressSuspendedReason) - var interruptedWork = workInProgress.return; - else - resetContextDependencies(), - resetHooksOnUnwind(), - (interruptedWork = workInProgress); - for (; null !== interruptedWork; ) - unwindInterruptedWork(interruptedWork.alternate, interruptedWork), - (interruptedWork = interruptedWork.return); - workInProgress = null; - } -} -function prepareFreshStack(root, lanes) { - root.finishedWork = null; - root.finishedLanes = 0; - var timeoutHandle = root.timeoutHandle; - -1 !== timeoutHandle && - ((root.timeoutHandle = -1), cancelTimeout(timeoutHandle)); - resetWorkInProgressStack(); - workInProgressRoot = root; - workInProgress = root = createWorkInProgress(root.current, null); - workInProgressRootRenderLanes = renderLanes$1 = lanes; - workInProgressSuspendedReason = 0; - workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = !1; - workInProgressRootExitStatus = 0; - workInProgressRootFatalError = null; - workInProgressRootPingedLanes = - workInProgressRootInterleavedUpdatedLanes = - workInProgressRootSkippedLanes = - 0; - workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = - null; - finishQueueingConcurrentUpdates(); - return root; -} -function handleThrow(root, thrownValue) { - ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - ReactCurrentOwner$2.current = null; - if (thrownValue === SuspenseException) { - if (null === suspendedThenable) throw Error(formatProdErrorMessage(459)); - root = suspendedThenable; - suspendedThenable = null; - thrownValue = root; - workInProgressSuspendedReason = shouldAttemptToSuspendUntilDataResolves() - ? 2 - : 3; - } else - workInProgressSuspendedReason = - thrownValue === SelectiveHydrationException - ? 6 - : null !== thrownValue && - "object" === typeof thrownValue && - "function" === typeof thrownValue.then - ? 4 - : 1; - workInProgressThrownValue = thrownValue; - null === workInProgress && - ((workInProgressRootExitStatus = 1), - (workInProgressRootFatalError = thrownValue)); -} -function shouldAttemptToSuspendUntilDataResolves() { - if ( - 0 !== (workInProgressRootSkippedLanes & 268435455) || - 0 !== (workInProgressRootInterleavedUpdatedLanes & 268435455) - ) - return !1; - if ( - (workInProgressRootRenderLanes & 8388480) === - workInProgressRootRenderLanes - ) - return null === shellBoundary; - var handler = suspenseHandlerStackCursor.current; - return null !== handler && - (workInProgressRootRenderLanes & 125829120) === - workInProgressRootRenderLanes - ? handler === shellBoundary - : !1; -} -function pushDispatcher() { - var prevDispatcher = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; - return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; -} -function pushCacheDispatcher() { - var prevCacheDispatcher = ReactCurrentCache.current; - ReactCurrentCache.current = DefaultCacheDispatcher; - return prevCacheDispatcher; -} -function renderDidSuspendDelayIfPossible() { - workInProgressRootExitStatus = 4; - null === workInProgressRoot || - (0 === (workInProgressRootSkippedLanes & 268435455) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) || - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); -} -function renderRootSync(root, lanes) { - var prevExecutionContext = executionContext; - executionContext |= 2; - var prevDispatcher = pushDispatcher(root.containerInfo), - prevCacheDispatcher = pushCacheDispatcher(); - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) - (workInProgressTransitions = getTransitionsForLanes(root, lanes)), - prepareFreshStack(root, lanes); - a: do - try { - if (0 !== workInProgressSuspendedReason && null !== workInProgress) { - lanes = workInProgress; - var thrownValue = workInProgressThrownValue; - switch (workInProgressSuspendedReason) { - case 6: - resetWorkInProgressStack(); - workInProgressRootExitStatus = 6; - break a; - default: - (workInProgressSuspendedReason = 0), - (workInProgressThrownValue = null), - unwindSuspendedUnitOfWork(lanes, thrownValue); - } - } - workLoopSync(); - break; - } catch (thrownValue$131) { - handleThrow(root, thrownValue$131); - } - while (1); - resetContextDependencies(); - executionContext = prevExecutionContext; - ReactCurrentDispatcher$2.current = prevDispatcher; - ReactCurrentCache.current = prevCacheDispatcher; - if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; -} -function workLoopSync() { - for (; null !== workInProgress; ) performUnitOfWork(workInProgress); -} -function renderRootConcurrent(root, lanes) { - var prevExecutionContext = executionContext; - executionContext |= 2; - var prevDispatcher = pushDispatcher(root.containerInfo), - prevCacheDispatcher = pushCacheDispatcher(); - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) - (workInProgressTransitions = getTransitionsForLanes(root, lanes)), - (workInProgressRootRenderTargetTime = now() + 500), - prepareFreshStack(root, lanes); - a: do - try { - if (0 !== workInProgressSuspendedReason && null !== workInProgress) { - lanes = workInProgress; - var thrownValue = workInProgressThrownValue; - switch (workInProgressSuspendedReason) { - case 1: - workInProgressSuspendedReason = 0; - workInProgressThrownValue = null; - unwindSuspendedUnitOfWork(lanes, thrownValue); - break; - case 2: - if (isThenableResolved(thrownValue)) { - workInProgressSuspendedReason = 0; - workInProgressThrownValue = null; - replaySuspendedUnitOfWork(lanes); - break; - } - lanes = function () { - ensureRootIsScheduled(root, now()); - }; - thrownValue.then(lanes, lanes); - break a; - case 3: - workInProgressSuspendedReason = 5; - break a; - case 5: - isThenableResolved(thrownValue) - ? ((workInProgressSuspendedReason = 0), - (workInProgressThrownValue = null), - replaySuspendedUnitOfWork(lanes)) - : ((workInProgressSuspendedReason = 0), - (workInProgressThrownValue = null), - unwindSuspendedUnitOfWork(lanes, thrownValue)); - break; - case 4: - workInProgressSuspendedReason = 0; - workInProgressThrownValue = null; - unwindSuspendedUnitOfWork(lanes, thrownValue); - break; - case 6: - resetWorkInProgressStack(); - workInProgressRootExitStatus = 6; - break a; - default: - throw Error(formatProdErrorMessage(462)); - } - } - workLoopConcurrent(); - break; - } catch (thrownValue$133) { - handleThrow(root, thrownValue$133); - } - while (1); - resetContextDependencies(); - ReactCurrentDispatcher$2.current = prevDispatcher; - ReactCurrentCache.current = prevCacheDispatcher; - executionContext = prevExecutionContext; - if (null !== workInProgress) return 0; - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; -} -function workLoopConcurrent() { - for (; null !== workInProgress && !shouldYield(); ) - performUnitOfWork(workInProgress); -} -function performUnitOfWork(unitOfWork) { - var next = beginWork$1(unitOfWork.alternate, unitOfWork, renderLanes$1); - unitOfWork.memoizedProps = unitOfWork.pendingProps; - null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); - ReactCurrentOwner$2.current = null; -} -function replaySuspendedUnitOfWork(unitOfWork) { - var current = unitOfWork.alternate; - switch (unitOfWork.tag) { - case 2: - unitOfWork.tag = 0; - case 0: - case 11: - var Component = unitOfWork.type, - unresolvedProps = unitOfWork.pendingProps; - unresolvedProps = - unitOfWork.elementType === Component - ? unresolvedProps - : resolveDefaultProps(Component, unresolvedProps); - current = replayFunctionComponent( - current, - unitOfWork, - unresolvedProps, - Component, - workInProgressRootRenderLanes - ); - break; - case 15: - current = replayFunctionComponent( - current, - unitOfWork, - unitOfWork.pendingProps, - unitOfWork.type, - workInProgressRootRenderLanes - ); - break; - default: - resetContextDependencies(), - resetHooksOnUnwind(), - unwindInterruptedWork(current, unitOfWork), - (unitOfWork = workInProgress = - resetWorkInProgress(unitOfWork, renderLanes$1)), - (current = beginWork$1(current, unitOfWork, renderLanes$1)); - } - unitOfWork.memoizedProps = unitOfWork.pendingProps; - null === current - ? completeUnitOfWork(unitOfWork) - : (workInProgress = current); - ReactCurrentOwner$2.current = null; -} -function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { - resetContextDependencies(); - resetHooksOnUnwind(); - var returnFiber = unitOfWork.return; - if (null === returnFiber || null === workInProgressRoot) - (workInProgressRootExitStatus = 1), - (workInProgressRootFatalError = thrownValue), - (workInProgress = null); - else { - try { - a: { - var root = workInProgressRoot, - value = thrownValue; - thrownValue = workInProgressRootRenderLanes; - unitOfWork.flags |= 32768; - if ( - null !== value && - "object" === typeof value && - "function" === typeof value.then - ) { - var wakeable = value; - if (enableLazyContextPropagation) { - var currentSourceFiber = unitOfWork.alternate; - null !== currentSourceFiber && - propagateParentContextChanges( - currentSourceFiber, - unitOfWork, - thrownValue, - !0 - ); - } - var tag = unitOfWork.tag; - if ( - 0 === (unitOfWork.mode & 1) && - (0 === tag || 11 === tag || 15 === tag) - ) { - var currentSource = unitOfWork.alternate; - currentSource - ? ((unitOfWork.updateQueue = currentSource.updateQueue), - (unitOfWork.memoizedState = currentSource.memoizedState), - (unitOfWork.lanes = currentSource.lanes)) - : ((unitOfWork.updateQueue = null), - (unitOfWork.memoizedState = null)); - } - var suspenseBoundary = suspenseHandlerStackCursor.current; - if (null !== suspenseBoundary) { - switch (suspenseBoundary.tag) { - case 13: - unitOfWork.mode & 1 && - (null === shellBoundary - ? renderDidSuspendDelayIfPossible() - : null === suspenseBoundary.alternate && - 0 === workInProgressRootExitStatus && - (workInProgressRootExitStatus = 3)); - suspenseBoundary.flags &= -257; - if (0 === (suspenseBoundary.mode & 1)) - if (suspenseBoundary === returnFiber) - suspenseBoundary.flags |= 65536; - else { - suspenseBoundary.flags |= 128; - unitOfWork.flags |= 131072; - unitOfWork.flags &= -52805; - if (1 === unitOfWork.tag) - if (null === unitOfWork.alternate) unitOfWork.tag = 17; - else { - var update = createUpdate(-1, 2); - update.tag = 2; - enqueueUpdate$1(unitOfWork, update, 2); - } - unitOfWork.lanes |= 2; - } - else - (suspenseBoundary.flags |= 65536), - (suspenseBoundary.lanes = thrownValue); - var wakeables = suspenseBoundary.updateQueue; - null === wakeables - ? (suspenseBoundary.updateQueue = new Set([wakeable])) - : wakeables.add(wakeable); - break; - case 22: - if (suspenseBoundary.mode & 1) { - suspenseBoundary.flags |= 65536; - var offscreenQueue = suspenseBoundary.updateQueue; - if (null === offscreenQueue) { - var newOffscreenQueue = { - transitions: null, - markerInstances: null, - wakeables: new Set([wakeable]) - }; - suspenseBoundary.updateQueue = newOffscreenQueue; - } else { - var wakeables$35 = offscreenQueue.wakeables; - null === wakeables$35 - ? (offscreenQueue.wakeables = new Set([wakeable])) - : wakeables$35.add(wakeable); - } - break; - } - default: - throw Error(formatProdErrorMessage(435, suspenseBoundary.tag)); - } - suspenseBoundary.mode & 1 && - attachPingListener(root, wakeable, thrownValue); - break a; - } else if (1 === root.tag) { - attachPingListener(root, wakeable, thrownValue); - renderDidSuspendDelayIfPossible(); - break a; - } else value = Error(formatProdErrorMessage(426)); - } - root = value = createCapturedValueAtFiber(value, unitOfWork); - 4 !== workInProgressRootExitStatus && - (workInProgressRootExitStatus = 2); - null === workInProgressRootConcurrentErrors - ? (workInProgressRootConcurrentErrors = [root]) - : workInProgressRootConcurrentErrors.push(root); - root = returnFiber; - do { - switch (root.tag) { - case 3: - var errorInfo = value; - root.flags |= 65536; - thrownValue &= -thrownValue; - root.lanes |= thrownValue; - var update$jscomp$0 = createRootErrorUpdate( - root, - errorInfo, - thrownValue - ); - enqueueCapturedUpdate(root, update$jscomp$0); - break a; - case 1: - currentSourceFiber = value; - var ctor = root.type, - instance = root.stateNode; - if ( - 0 === (root.flags & 128) && - ("function" === typeof ctor.getDerivedStateFromError || - (null !== instance && - "function" === typeof instance.componentDidCatch && - (null === legacyErrorBoundariesThatAlreadyFailed || - !legacyErrorBoundariesThatAlreadyFailed.has(instance)))) - ) { - root.flags |= 65536; - update$jscomp$0 = thrownValue & -thrownValue; - root.lanes |= update$jscomp$0; - errorInfo = createClassErrorUpdate( - root, - currentSourceFiber, - update$jscomp$0 - ); - enqueueCapturedUpdate(root, errorInfo); - break a; - } - } - root = root.return; - } while (null !== root); - } - } catch (error) { - throw ((workInProgress = returnFiber), error); - } - completeUnitOfWork(unitOfWork); - } -} -function completeUnitOfWork(unitOfWork) { - var completedWork = unitOfWork; - do { - var current = completedWork.alternate; - unitOfWork = completedWork.return; - if (0 === (completedWork.flags & 32768)) { - if ( - ((current = completeWork(current, completedWork, renderLanes$1)), - null !== current) - ) { - workInProgress = current; - return; - } - } else { - current = unwindWork(current, completedWork); - if (null !== current) { - current.flags &= 16383; - workInProgress = current; - return; - } - if (null !== unitOfWork) - (unitOfWork.flags |= 32768), - (unitOfWork.subtreeFlags = 0), - (unitOfWork.deletions = null); - else { - workInProgressRootExitStatus = 6; - workInProgress = null; - return; - } - } - completedWork = completedWork.sibling; - if (null !== completedWork) { - workInProgress = completedWork; - return; - } - workInProgress = completedWork = unitOfWork; - } while (null !== completedWork); - 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); -} -function commitRoot(root, recoverableErrors, transitions) { - var previousUpdateLanePriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig$2.transition; - try { - (ReactCurrentBatchConfig$2.transition = null), - (currentUpdatePriority = 2), - commitRootImpl( - root, - recoverableErrors, - transitions, - previousUpdateLanePriority - ); - } finally { - (ReactCurrentBatchConfig$2.transition = prevTransition), - (currentUpdatePriority = previousUpdateLanePriority); - } - return null; -} -function commitRootImpl( - root, - recoverableErrors, - transitions, - renderPriorityLevel -) { - do flushPassiveEffects(); - while (null !== rootWithPendingPassiveEffects); - if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var finishedWork = root.finishedWork, - lanes = root.finishedLanes; - if (null === finishedWork) return null; - root.finishedWork = null; - root.finishedLanes = 0; - if (finishedWork === root.current) throw Error(formatProdErrorMessage(177)); - root.callbackNode = null; - root.callbackPriority = 0; - var remainingLanes = finishedWork.lanes | finishedWork.childLanes; - remainingLanes |= concurrentlyUpdatedLanes; - markRootFinished(root, remainingLanes); - root === workInProgressRoot && - ((workInProgress = workInProgressRoot = null), - (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback$2(NormalPriority, function () { - flushPassiveEffects(); - return null; - })); - transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactCurrentBatchConfig$2.transition; - ReactCurrentBatchConfig$2.transition = null; - var previousPriority = currentUpdatePriority; - currentUpdatePriority = 2; - var prevExecutionContext = executionContext; - executionContext |= 4; - ReactCurrentOwner$2.current = null; - commitBeforeMutationEffects(root, finishedWork); - commitMutationEffectsOnFiber(finishedWork, root); - root.current = finishedWork; - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); - requestPaint(); - executionContext = prevExecutionContext; - currentUpdatePriority = previousPriority; - ReactCurrentBatchConfig$2.transition = transitions; - } else root.current = finishedWork; - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), - (rootWithPendingPassiveEffects = root), - (pendingPassiveEffectsLanes = lanes)) - : releaseRootPooledCache(root, remainingLanes); - remainingLanes = root.pendingLanes; - 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); - onCommitRoot(finishedWork.stateNode, renderPriorityLevel); - ensureRootIsScheduled(root, now()); - if (null !== recoverableErrors) - for ( - renderPriorityLevel = root.onRecoverableError, finishedWork = 0; - finishedWork < recoverableErrors.length; - finishedWork++ - ) - (lanes = recoverableErrors[finishedWork]), - (remainingLanes = { - digest: lanes.digest, - componentStack: lanes.stack - }), - renderPriorityLevel(lanes.value, remainingLanes); - if (hasUncaughtError) - throw ( - ((hasUncaughtError = !1), - (root = firstUncaughtError), - (firstUncaughtError = null), - root) - ); - 0 !== (pendingPassiveEffectsLanes & 3) && - 0 !== root.tag && - flushPassiveEffects(); - remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 3) - ? root === rootWithNestedUpdates - ? nestedUpdateCount++ - : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) - : (nestedUpdateCount = 0); - flushSyncCallbacks(); - return null; -} -function releaseRootPooledCache(root, remainingLanes) { - 0 === (root.pooledCacheLanes &= remainingLanes) && - ((remainingLanes = root.pooledCache), - null != remainingLanes && - ((root.pooledCache = null), releaseCache(remainingLanes))); -} -function flushPassiveEffects() { - if (null !== rootWithPendingPassiveEffects) { - var root = rootWithPendingPassiveEffects, - remainingLanes = pendingPassiveEffectsRemainingLanes; - pendingPassiveEffectsRemainingLanes = 0; - var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 32 > renderPriority ? 32 : renderPriority; - var prevTransition = ReactCurrentBatchConfig$2.transition, - previousPriority = currentUpdatePriority; - try { - return ( - (ReactCurrentBatchConfig$2.transition = null), - (currentUpdatePriority = renderPriority), - flushPassiveEffectsImpl() - ); - } finally { - (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$2.transition = prevTransition), - releaseRootPooledCache(root, remainingLanes); - } - } - return !1; -} -function flushPassiveEffectsImpl() { - if (null === rootWithPendingPassiveEffects) return !1; - var transitions = pendingPassiveTransitions; - pendingPassiveTransitions = null; - var root = rootWithPendingPassiveEffects, - lanes = pendingPassiveEffectsLanes; - rootWithPendingPassiveEffects = null; - pendingPassiveEffectsLanes = 0; - if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(331)); - var prevExecutionContext = executionContext; - executionContext |= 4; - commitPassiveUnmountOnFiber(root.current); - commitPassiveMountOnFiber(root, root.current, lanes, transitions); - executionContext = prevExecutionContext; - flushSyncCallbacks(); - if (enableTransitionTracing) { - var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, - prevRootTransitionCallbacks = root.transitionCallbacks, - prevEndTime = currentEndTime; - null !== prevPendingTransitionCallbacks && - null !== prevRootTransitionCallbacks && - null !== prevEndTime && - ((currentEndTime = currentPendingTransitionCallbacks = null), - scheduleCallback$2(IdlePriority, function () { - processTransitionCallbacks( - prevPendingTransitionCallbacks, - prevEndTime, - prevRootTransitionCallbacks - ); - })); - } - if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) - try { - injectedHook.onPostCommitFiberRoot(rendererID, root); - } catch (err) {} - return !0; -} -function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { - sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); - sourceFiber = requestEventTime(); - null !== rootFiber && - (markRootUpdated(rootFiber, 2, sourceFiber), - ensureRootIsScheduled(rootFiber, sourceFiber)); -} -function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { - if (3 === sourceFiber.tag) - captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error); - else - for ( - nearestMountedAncestor = skipUnmountedBoundaries - ? nearestMountedAncestor - : sourceFiber.return; - null !== nearestMountedAncestor; - - ) { - if (3 === nearestMountedAncestor.tag) { - captureCommitPhaseErrorOnRoot( - nearestMountedAncestor, - sourceFiber, - error - ); - break; - } else if (1 === nearestMountedAncestor.tag) { - var instance = nearestMountedAncestor.stateNode; - if ( - "function" === - typeof nearestMountedAncestor.type.getDerivedStateFromError || - ("function" === typeof instance.componentDidCatch && - (null === legacyErrorBoundariesThatAlreadyFailed || - !legacyErrorBoundariesThatAlreadyFailed.has(instance))) - ) { - sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createClassErrorUpdate( - nearestMountedAncestor, - sourceFiber, - 2 - ); - nearestMountedAncestor = enqueueUpdate$1( - nearestMountedAncestor, - sourceFiber, - 2 - ); - sourceFiber = requestEventTime(); - null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), - ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); - break; - } - } - nearestMountedAncestor = nearestMountedAncestor.return; - } -} -function attachPingListener(root, wakeable, lanes) { - var pingCache = root.pingCache; - if (null === pingCache) { - pingCache = root.pingCache = new PossiblyWeakMap(); - var threadIDs = new Set(); - pingCache.set(wakeable, threadIDs); - } else - (threadIDs = pingCache.get(wakeable)), - void 0 === threadIDs && - ((threadIDs = new Set()), pingCache.set(wakeable, threadIDs)); - threadIDs.has(lanes) || - ((workInProgressRootDidAttachPingListener = !0), - threadIDs.add(lanes), - (root = pingSuspendedRoot.bind(null, root, wakeable, lanes)), - wakeable.then(root, root)); -} -function pingSuspendedRoot(root, wakeable, pingedLanes) { - var pingCache = root.pingCache; - null !== pingCache && pingCache.delete(wakeable); - wakeable = requestEventTime(); - root.pingedLanes |= root.suspendedLanes & pingedLanes; - workInProgressRoot === root && - (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && - (4 === workInProgressRootExitStatus || - (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 125829120) === - workInProgressRootRenderLanes && - 500 > now() - globalMostRecentFallbackTime) - ? 0 === (executionContext & 2) && prepareFreshStack(root, 0) - : (workInProgressRootPingedLanes |= pingedLanes)); - ensureRootIsScheduled(root, wakeable); -} -function retryTimedOutBoundary(boundaryFiber, retryLane) { - 0 === retryLane && - (0 === (boundaryFiber.mode & 1) - ? (retryLane = 2) - : ((retryLane = nextRetryLane), - (nextRetryLane <<= 1), - 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); - var eventTime = requestEventTime(); - boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); - null !== boundaryFiber && - (markRootUpdated(boundaryFiber, retryLane, eventTime), - ensureRootIsScheduled(boundaryFiber, eventTime)); -} -function retryDehydratedSuspenseBoundary(boundaryFiber) { - var suspenseState = boundaryFiber.memoizedState, - retryLane = 0; - null !== suspenseState && (retryLane = suspenseState.retryLane); - retryTimedOutBoundary(boundaryFiber, retryLane); -} -function resolveRetryWakeable(boundaryFiber, wakeable) { - var retryLane = 0; - switch (boundaryFiber.tag) { - case 13: - var retryCache = boundaryFiber.stateNode; - var suspenseState = boundaryFiber.memoizedState; - null !== suspenseState && (retryLane = suspenseState.retryLane); - break; - case 19: - retryCache = boundaryFiber.stateNode; - break; - case 22: - retryCache = boundaryFiber.stateNode._retryCache; - break; - default: - throw Error(formatProdErrorMessage(314)); - } - null !== retryCache && retryCache.delete(wakeable); - retryTimedOutBoundary(boundaryFiber, retryLane); -} -var beginWork$1; -beginWork$1 = function (current, workInProgress, renderLanes) { - if (null !== current) - if ( - current.memoizedProps !== workInProgress.pendingProps || - didPerformWorkStackCursor.current - ) - didReceiveUpdate = !0; - else { - if ( - !checkScheduledUpdateOrContext(current, renderLanes) && - 0 === (workInProgress.flags & 128) - ) - return ( - (didReceiveUpdate = !1), - attemptEarlyBailoutIfNoScheduledUpdate( - current, - workInProgress, - renderLanes - ) - ); - didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; - } - else didReceiveUpdate = !1; - workInProgress.lanes = 0; - switch (workInProgress.tag) { - case 2: - var Component = workInProgress.type; - resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); - current = workInProgress.pendingProps; - var context = getMaskedContext( - workInProgress, - contextStackCursor.current - ); - prepareToReadContext(workInProgress, renderLanes); - current = renderWithHooks( - null, - workInProgress, - Component, - current, - context, - renderLanes - ); - workInProgress.flags |= 1; - workInProgress.tag = 0; - reconcileChildren(null, workInProgress, current, renderLanes); - workInProgress = workInProgress.child; - return workInProgress; - case 16: - Component = workInProgress.elementType; - a: { - resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); - current = workInProgress.pendingProps; - context = Component._init; - Component = context(Component._payload); - workInProgress.type = Component; - context = workInProgress.tag = resolveLazyComponentTag(Component); - current = resolveDefaultProps(Component, current); - switch (context) { - case 0: - workInProgress = updateFunctionComponent( - null, - workInProgress, - Component, - current, - renderLanes - ); - break a; - case 1: - workInProgress = updateClassComponent( - null, - workInProgress, - Component, - current, - renderLanes - ); - break a; - case 11: - workInProgress = updateForwardRef( - null, - workInProgress, - Component, - current, - renderLanes - ); - break a; - case 14: - workInProgress = updateMemoComponent( - null, - workInProgress, - Component, - resolveDefaultProps(Component.type, current), - renderLanes - ); - break a; - } - throw Error(formatProdErrorMessage(306, Component, "")); - } - return workInProgress; - case 0: - return ( - (Component = workInProgress.type), - (context = workInProgress.pendingProps), - (context = - workInProgress.elementType === Component - ? context - : resolveDefaultProps(Component, context)), - updateFunctionComponent( - current, - workInProgress, - Component, - context, - renderLanes - ) - ); - case 1: - return ( - (Component = workInProgress.type), - (context = workInProgress.pendingProps), - (context = - workInProgress.elementType === Component - ? context - : resolveDefaultProps(Component, context)), - updateClassComponent( - current, - workInProgress, - Component, - context, - renderLanes - ) - ); - case 3: - pushHostRootContext(workInProgress); - if (null === current) throw Error(formatProdErrorMessage(387)); - var nextProps = workInProgress.pendingProps; - context = workInProgress.memoizedState; - Component = context.element; - cloneUpdateQueue(current, workInProgress); - processUpdateQueue(workInProgress, nextProps, null, renderLanes); - nextProps = workInProgress.memoizedState; - enableTransitionTracing && - push(transitionStack, workInProgressTransitions); - enableTransitionTracing && pushRootMarkerInstance(workInProgress); - var nextCache = nextProps.cache; - pushProvider(workInProgress, CacheContext, nextCache); - nextCache !== context.cache && - propagateContextChange(workInProgress, CacheContext, renderLanes); - context = nextProps.element; - context === Component - ? (workInProgress = bailoutOnAlreadyFinishedWork( - current, - workInProgress, - renderLanes - )) - : (reconcileChildren(current, workInProgress, context, renderLanes), - (workInProgress = workInProgress.child)); - return workInProgress; - case 26: - case 27: - case 5: - return ( - pushHostContext(workInProgress), - (Component = workInProgress.type), - (context = workInProgress.pendingProps), - (nextProps = null !== current ? current.memoizedProps : null), - (nextCache = context.children), - shouldSetTextContent(Component, context) - ? (nextCache = null) - : null !== nextProps && - shouldSetTextContent(Component, nextProps) && - (workInProgress.flags |= 32), - markRef(current, workInProgress), - reconcileChildren(current, workInProgress, nextCache, renderLanes), - workInProgress.child - ); - case 6: - return null; - case 13: - return updateSuspenseComponent(current, workInProgress, renderLanes); - case 4: - return ( - pushHostContainer( - workInProgress, - workInProgress.stateNode.containerInfo - ), - (Component = workInProgress.pendingProps), - null === current - ? (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - Component, - renderLanes - )) - : reconcileChildren(current, workInProgress, Component, renderLanes), - workInProgress.child - ); - case 11: - return ( - (Component = workInProgress.type), - (context = workInProgress.pendingProps), - (context = - workInProgress.elementType === Component - ? context - : resolveDefaultProps(Component, context)), - updateForwardRef( - current, - workInProgress, - Component, - context, - renderLanes - ) - ); - case 7: - return ( - reconcileChildren( - current, - workInProgress, - workInProgress.pendingProps, - renderLanes - ), - workInProgress.child - ); - case 8: - return ( - reconcileChildren( - current, - workInProgress, - workInProgress.pendingProps.children, - renderLanes - ), - workInProgress.child - ); - case 12: - return ( - reconcileChildren( - current, - workInProgress, - workInProgress.pendingProps.children, - renderLanes - ), - workInProgress.child - ); - case 10: - a: { - Component = workInProgress.type._context; - context = workInProgress.pendingProps; - nextProps = workInProgress.memoizedProps; - nextCache = context.value; - pushProvider(workInProgress, Component, nextCache); - if (!enableLazyContextPropagation && null !== nextProps) - if (objectIs(nextProps.value, nextCache)) { - if ( - nextProps.children === context.children && - !didPerformWorkStackCursor.current - ) { - workInProgress = bailoutOnAlreadyFinishedWork( - current, - workInProgress, - renderLanes - ); - break a; - } - } else propagateContextChange(workInProgress, Component, renderLanes); - reconcileChildren( - current, - workInProgress, - context.children, - renderLanes - ); - workInProgress = workInProgress.child; - } - return workInProgress; - case 9: - return ( - (context = workInProgress.type), - (Component = workInProgress.pendingProps.children), - prepareToReadContext(workInProgress, renderLanes), - (context = readContext(context)), - (Component = Component(context)), - (workInProgress.flags |= 1), - reconcileChildren(current, workInProgress, Component, renderLanes), - workInProgress.child - ); - case 14: - return ( - (Component = workInProgress.type), - (context = resolveDefaultProps(Component, workInProgress.pendingProps)), - (context = resolveDefaultProps(Component.type, context)), - updateMemoComponent( - current, - workInProgress, - Component, - context, - renderLanes - ) - ); - case 15: - return updateSimpleMemoComponent( - current, - workInProgress, - workInProgress.type, - workInProgress.pendingProps, - renderLanes - ); - case 17: - return ( - (Component = workInProgress.type), - (context = workInProgress.pendingProps), - (context = - workInProgress.elementType === Component - ? context - : resolveDefaultProps(Component, context)), - resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress), - (workInProgress.tag = 1), - isContextProvider(Component) - ? ((current = !0), pushContextProvider(workInProgress)) - : (current = !1), - prepareToReadContext(workInProgress, renderLanes), - constructClassInstance(workInProgress, Component, context), - mountClassInstance(workInProgress, Component, context, renderLanes), - finishClassComponent( - null, - workInProgress, - Component, - !0, - current, - renderLanes - ) - ); - case 19: - return updateSuspenseListComponent(current, workInProgress, renderLanes); - case 21: - return ( - reconcileChildren( - current, - workInProgress, - workInProgress.pendingProps.children, - renderLanes - ), - workInProgress.child - ); - case 22: - return updateOffscreenComponent(current, workInProgress, renderLanes); - case 23: - return updateOffscreenComponent(current, workInProgress, renderLanes); - case 24: - return ( - prepareToReadContext(workInProgress, renderLanes), - (Component = readContext(CacheContext)), - null === current - ? ((context = peekCacheFromPool()), - null === context && - ((context = workInProgressRoot), - (nextProps = createCache()), - (context.pooledCache = nextProps), - nextProps.refCount++, - null !== nextProps && (context.pooledCacheLanes |= renderLanes), - (context = nextProps)), - (workInProgress.memoizedState = { - parent: Component, - cache: context - }), - initializeUpdateQueue(workInProgress), - pushProvider(workInProgress, CacheContext, context)) - : (0 !== (current.lanes & renderLanes) && - (cloneUpdateQueue(current, workInProgress), - processUpdateQueue(workInProgress, null, null, renderLanes)), - (context = current.memoizedState), - (nextProps = workInProgress.memoizedState), - context.parent !== Component - ? ((context = { parent: Component, cache: Component }), - (workInProgress.memoizedState = context), - 0 === workInProgress.lanes && - (workInProgress.memoizedState = - workInProgress.updateQueue.baseState = - context), - pushProvider(workInProgress, CacheContext, Component)) - : ((Component = nextProps.cache), - pushProvider(workInProgress, CacheContext, Component), - Component !== context.cache && - propagateContextChange( - workInProgress, - CacheContext, - renderLanes - ))), - reconcileChildren( - current, - workInProgress, - workInProgress.pendingProps.children, - renderLanes - ), - workInProgress.child - ); - case 25: - if (enableTransitionTracing) - return ( - enableTransitionTracing - ? (null === current && - ((Component = enableTransitionTracing - ? transitionStack.current - : null), - null !== Component && - ((Component = { - tag: 1, - transitions: new Set(Component), - pendingBoundaries: null, - name: workInProgress.pendingProps.name, - aborts: null - }), - (workInProgress.stateNode = Component), - (workInProgress.flags |= 2048))), - (Component = workInProgress.stateNode), - null !== Component && - pushMarkerInstance(workInProgress, Component), - reconcileChildren( - current, - workInProgress, - workInProgress.pendingProps.children, - renderLanes - ), - (workInProgress = workInProgress.child)) - : (workInProgress = null), - workInProgress - ); - } - throw Error(formatProdErrorMessage(156, workInProgress.tag)); -}; -function scheduleCallback$2(priorityLevel, callback) { - return scheduleCallback(priorityLevel, callback); -} -function FiberNode(tag, pendingProps, key, mode) { - this.tag = tag; - this.key = key; - this.sibling = - this.child = - this.return = - this.stateNode = - this.type = - this.elementType = - null; - this.index = 0; - this.refCleanup = this.ref = null; - this.pendingProps = pendingProps; - this.dependencies = - this.memoizedState = - this.updateQueue = - this.memoizedProps = - null; - this.mode = mode; - this.subtreeFlags = this.flags = 0; - this.deletions = null; - this.childLanes = this.lanes = 0; - this.alternate = null; -} -function createFiber(tag, pendingProps, key, mode) { - return new FiberNode(tag, pendingProps, key, mode); -} -function shouldConstruct(Component) { - Component = Component.prototype; - return !(!Component || !Component.isReactComponent); -} -function resolveLazyComponentTag(Component) { - if ("function" === typeof Component) - return shouldConstruct(Component) ? 1 : 0; - if (void 0 !== Component && null !== Component) { - Component = Component.$$typeof; - if (Component === REACT_FORWARD_REF_TYPE) return 11; - if (Component === REACT_MEMO_TYPE) return 14; - } - return 2; -} -function createWorkInProgress(current, pendingProps) { - var workInProgress = current.alternate; - null === workInProgress - ? ((workInProgress = createFiber( - current.tag, - pendingProps, - current.key, - current.mode - )), - (workInProgress.elementType = current.elementType), - (workInProgress.type = current.type), - (workInProgress.stateNode = current.stateNode), - (workInProgress.alternate = current), - (current.alternate = workInProgress)) - : ((workInProgress.pendingProps = pendingProps), - (workInProgress.type = current.type), - (workInProgress.flags = 0), - (workInProgress.subtreeFlags = 0), - (workInProgress.deletions = null)); - workInProgress.flags = current.flags & 14680064; - workInProgress.childLanes = current.childLanes; - workInProgress.lanes = current.lanes; - workInProgress.child = current.child; - workInProgress.memoizedProps = current.memoizedProps; - workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; - pendingProps = current.dependencies; - workInProgress.dependencies = - null === pendingProps - ? null - : { lanes: pendingProps.lanes, firstContext: pendingProps.firstContext }; - workInProgress.sibling = current.sibling; - workInProgress.index = current.index; - workInProgress.ref = current.ref; - workInProgress.refCleanup = current.refCleanup; - return workInProgress; -} -function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 14680066; - var current = workInProgress.alternate; - null === current - ? ((workInProgress.childLanes = 0), - (workInProgress.lanes = renderLanes), - (workInProgress.child = null), - (workInProgress.subtreeFlags = 0), - (workInProgress.memoizedProps = null), - (workInProgress.memoizedState = null), - (workInProgress.updateQueue = null), - (workInProgress.dependencies = null), - (workInProgress.stateNode = null)) - : ((workInProgress.childLanes = current.childLanes), - (workInProgress.lanes = current.lanes), - (workInProgress.child = current.child), - (workInProgress.subtreeFlags = 0), - (workInProgress.deletions = null), - (workInProgress.memoizedProps = current.memoizedProps), - (workInProgress.memoizedState = current.memoizedState), - (workInProgress.updateQueue = current.updateQueue), - (workInProgress.type = current.type), - (renderLanes = current.dependencies), - (workInProgress.dependencies = - null === renderLanes - ? null - : { - lanes: renderLanes.lanes, - firstContext: renderLanes.firstContext - })); - return workInProgress; -} -function createFiberFromTypeAndProps( - type, - key, - pendingProps, - owner, - mode, - lanes -) { - var fiberTag = 2; - owner = type; - if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1); - else if ("string" === typeof type) fiberTag = 5; - else - a: switch (type) { - case REACT_FRAGMENT_TYPE: - return createFiberFromFragment(pendingProps.children, mode, lanes, key); - case REACT_STRICT_MODE_TYPE: - fiberTag = 8; - mode |= 8; - 0 !== (mode & 1) && (mode |= 16); - break; - case REACT_PROFILER_TYPE: - return ( - (type = createFiber(12, pendingProps, key, mode | 2)), - (type.elementType = REACT_PROFILER_TYPE), - (type.lanes = lanes), - type - ); - case REACT_SUSPENSE_TYPE: - return ( - (type = createFiber(13, pendingProps, key, mode)), - (type.elementType = REACT_SUSPENSE_TYPE), - (type.lanes = lanes), - type - ); - case REACT_SUSPENSE_LIST_TYPE: - return ( - (type = createFiber(19, pendingProps, key, mode)), - (type.elementType = REACT_SUSPENSE_LIST_TYPE), - (type.lanes = lanes), - type - ); - case REACT_OFFSCREEN_TYPE: - return createFiberFromOffscreen(pendingProps, mode, lanes, key); - case REACT_LEGACY_HIDDEN_TYPE: - return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); - case REACT_SCOPE_TYPE: - return ( - (pendingProps = createFiber(21, pendingProps, key, mode)), - (pendingProps.type = type), - (pendingProps.elementType = type), - (pendingProps.lanes = lanes), - pendingProps - ); - case REACT_CACHE_TYPE: - return ( - (type = createFiber(24, pendingProps, key, mode)), - (type.elementType = REACT_CACHE_TYPE), - (type.lanes = lanes), - type - ); - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) - return ( - (type = createFiber(25, pendingProps, key, mode)), - (type.elementType = REACT_TRACING_MARKER_TYPE), - (type.lanes = lanes), - (type.stateNode = { - tag: 1, - transitions: null, - pendingBoundaries: null, - aborts: null, - name: pendingProps.name - }), - type - ); - case REACT_DEBUG_TRACING_MODE_TYPE: - if (enableDebugTracing) { - fiberTag = 8; - mode |= 4; - break; - } - default: - if ("object" === typeof type && null !== type) - switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - fiberTag = 10; - break a; - case REACT_CONTEXT_TYPE: - fiberTag = 9; - break a; - case REACT_FORWARD_REF_TYPE: - fiberTag = 11; - break a; - case REACT_MEMO_TYPE: - fiberTag = 14; - break a; - case REACT_LAZY_TYPE: - fiberTag = 16; - owner = null; - break a; - } - throw Error( - formatProdErrorMessage(130, null == type ? type : typeof type, "") - ); - } - pendingProps = createFiber(fiberTag, pendingProps, key, mode); - pendingProps.elementType = type; - pendingProps.type = owner; - pendingProps.lanes = lanes; - return pendingProps; -} -function createFiberFromFragment(elements, mode, lanes, key) { - elements = createFiber(7, elements, key, mode); - elements.lanes = lanes; - return elements; -} -function createFiberFromOffscreen(pendingProps, mode, lanes, key) { - pendingProps = createFiber(22, pendingProps, key, mode); - pendingProps.elementType = REACT_OFFSCREEN_TYPE; - pendingProps.lanes = lanes; - var primaryChildInstance = { - _visibility: 1, - _pendingVisibility: 1, - _pendingMarkers: null, - _retryCache: null, - _transitions: null, - _current: null, - detach: function () { - return detachOffscreenInstance(primaryChildInstance); - }, - attach: function () { - return attachOffscreenInstance(primaryChildInstance); - } - }; - pendingProps.stateNode = primaryChildInstance; - return pendingProps; -} -function createFiberFromLegacyHidden(pendingProps, mode, lanes, key) { - pendingProps = createFiber(23, pendingProps, key, mode); - pendingProps.elementType = REACT_LEGACY_HIDDEN_TYPE; - pendingProps.lanes = lanes; - var instance = { - _visibility: 1, - _pendingVisibility: 1, - _pendingMarkers: null, - _transitions: null, - _retryCache: null, - _current: null, - detach: function () { - return detachOffscreenInstance(instance); - }, - attach: function () { - return attachOffscreenInstance(instance); - } - }; - pendingProps.stateNode = instance; - return pendingProps; -} -function createFiberFromText(content, mode, lanes) { - content = createFiber(6, content, null, mode); - content.lanes = lanes; - return content; -} -function createFiberFromPortal(portal, mode, lanes) { - mode = createFiber( - 4, - null !== portal.children ? portal.children : [], - portal.key, - mode - ); - mode.lanes = lanes; - mode.stateNode = { - containerInfo: portal.containerInfo, - pendingChildren: null, - implementation: portal.implementation - }; - return mode; -} -function FiberRootNode( - containerInfo, - tag, - hydrate, - identifierPrefix, - onRecoverableError -) { - this.tag = tag; - this.containerInfo = containerInfo; - this.finishedWork = - this.pingCache = - this.current = - this.pendingChildren = - null; - this.timeoutHandle = -1; - this.callbackNode = this.pendingContext = this.context = null; - this.callbackPriority = 0; - this.eventTimes = createLaneMap(0); - this.expirationTimes = createLaneMap(-1); - this.entangledLanes = - this.errorRecoveryDisabledLanes = - this.finishedLanes = - this.mutableReadLanes = - this.expiredLanes = - this.pingedLanes = - this.suspendedLanes = - this.pendingLanes = - 0; - this.entanglements = createLaneMap(0); - this.hiddenUpdates = createLaneMap(null); - this.identifierPrefix = identifierPrefix; - this.onRecoverableError = onRecoverableError; - this.pooledCache = null; - this.pooledCacheLanes = 0; - this.hydrationCallbacks = null; - this.incompleteTransitions = new Map(); - if (enableTransitionTracing) - for ( - this.transitionCallbacks = null, - containerInfo = this.transitionLanes = [], - tag = 0; - 31 > tag; - tag++ - ) - containerInfo.push(null); -} -function updateContainer(element, container, parentComponent, callback) { - var current = container.current, - eventTime = requestEventTime(), - lane = requestUpdateLane(current); - 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) { - case 3: - JSCompiler_inline_result = - JSCompiler_inline_result.stateNode.context; - break b; - case 1: - if (isContextProvider(JSCompiler_inline_result.type)) { - JSCompiler_inline_result = - JSCompiler_inline_result.stateNode - .__reactInternalMemoizedMergedChildContext; - break b; - } - } - JSCompiler_inline_result = JSCompiler_inline_result.return; - } while (null !== JSCompiler_inline_result); - throw Error(formatProdErrorMessage(171)); - } - if (1 === parentComponent.tag) { - var Component = parentComponent.type; - if (isContextProvider(Component)) { - parentComponent = processChildContext( - parentComponent, - Component, - JSCompiler_inline_result - ); - break a; - } - } - parentComponent = JSCompiler_inline_result; - } else parentComponent = emptyContextObject; - null === container.context - ? (container.context = parentComponent) - : (container.pendingContext = parentComponent); - container = createUpdate(eventTime, lane); - container.payload = { element: element }; - callback = void 0 === callback ? null : callback; - null !== callback && (container.callback = callback); - element = enqueueUpdate$1(current, container, lane); - null !== element && - (scheduleUpdateOnFiber(element, current, lane, eventTime), - entangleTransitions(element, current, lane)); - return lane; -} -function emptyFindFiberByHostInstance() { - return null; -} -Mode$1.setCurrent(FastNoSideEffects); -var slice = Array.prototype.slice, - LinearGradient = (function () { - function LinearGradient(stops, x1, y1, x2, y2) { - this._args = slice.call(arguments); - } - LinearGradient.prototype.applyFill = function (node) { - node.fillLinear.apply(node, this._args); - }; - return LinearGradient; - })(), - RadialGradient = (function () { - function RadialGradient(stops, fx, fy, rx, ry, cx, cy) { - this._args = slice.call(arguments); - } - RadialGradient.prototype.applyFill = function (node) { - node.fillRadial.apply(node, this._args); - }; - return RadialGradient; - })(), - Pattern = (function () { - function Pattern(url, width, height, left, top) { - this._args = slice.call(arguments); - } - Pattern.prototype.applyFill = function (node) { - node.fillImage.apply(node, this._args); - }; - return Pattern; - })(), - Surface = (function (_React$Component) { - function Surface() { - return _React$Component.apply(this, arguments) || this; - } - _inheritsLoose(Surface, _React$Component); - var _proto4 = Surface.prototype; - _proto4.componentDidMount = function () { - var _this$props = this.props; - this._surface = Mode$1.Surface( - +_this$props.width, - +_this$props.height, - this._tagRef - ); - _this$props = new FiberRootNode(this._surface, 0, !1, "", void 0); - _this$props.hydrationCallbacks = null; - enableTransitionTracing && (_this$props.transitionCallbacks = void 0); - var JSCompiler_inline_result = createFiber(3, null, null, 0); - _this$props.current = JSCompiler_inline_result; - JSCompiler_inline_result.stateNode = _this$props; - var initialCache = createCache(); - initialCache.refCount++; - _this$props.pooledCache = initialCache; - initialCache.refCount++; - JSCompiler_inline_result.memoizedState = { - element: null, - isDehydrated: !1, - cache: initialCache - }; - initializeUpdateQueue(JSCompiler_inline_result); - this._mountNode = _this$props; - updateContainer(this.props.children, this._mountNode, this); - }; - _proto4.componentDidUpdate = function (prevProps) { - var props = this.props; - (props.height === prevProps.height && props.width === prevProps.width) || - this._surface.resize(+props.width, +props.height); - updateContainer(this.props.children, this._mountNode, this); - this._surface.render && this._surface.render(); - }; - _proto4.componentWillUnmount = function () { - updateContainer(null, this._mountNode, this); - }; - _proto4.render = function () { - var $jscomp$this = this, - props = this.props; - return React.createElement(Mode$1.Surface.tagName, { - ref: function (ref) { - return ($jscomp$this._tagRef = ref); - }, - accessKey: props.accessKey, - className: props.className, - draggable: props.draggable, - role: props.role, - style: props.style, - tabIndex: props.tabIndex, - title: props.title - }); - }; - return Surface; - })(React.Component), - Text = (function (_React$Component2) { - function Text(props) { - var _this = _React$Component2.call(this, props) || this; - ["height", "width", "x", "y"].forEach(function (key) { - Object.defineProperty(_assertThisInitialized(_this), key, { - get: function () { - return this._text ? this._text[key] : void 0; - } - }); - }); - return _this; - } - _inheritsLoose(Text, _React$Component2); - Text.prototype.render = function () { - var $jscomp$this = this; - return React.createElement( - TYPES.TEXT, - _extends({}, this.props, { - ref: function (t) { - return ($jscomp$this._text = t); - } - }), - childrenAsString(this.props.children) - ); - }; - return Text; - })(React.Component), - devToolsConfig$jscomp$inline_1147 = { - findFiberByHostInstance: function () { - return null; - }, - bundleType: 0, - version: "18.3.0-www-classic-bc38a3dfa-20230220", - rendererPackageName: "react-art" - }; -var internals$jscomp$inline_1318 = { - bundleType: devToolsConfig$jscomp$inline_1147.bundleType, - version: devToolsConfig$jscomp$inline_1147.version, - rendererPackageName: devToolsConfig$jscomp$inline_1147.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1147.rendererConfig, - overrideHookState: null, - overrideHookStateDeletePath: null, - overrideHookStateRenamePath: null, - overrideProps: null, - overridePropsDeletePath: null, - overridePropsRenamePath: null, - setErrorHandler: null, - setSuspenseHandler: null, - scheduleUpdate: null, - currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, - findHostInstanceByFiber: function (fiber) { - fiber = findCurrentFiberUsingSlowPath(fiber); - fiber = null !== fiber ? findCurrentHostFiberImpl(fiber) : null; - return null === fiber ? null : fiber.stateNode; - }, - findFiberByHostInstance: - devToolsConfig$jscomp$inline_1147.findFiberByHostInstance || - emptyFindFiberByHostInstance, - findHostInstancesForRefresh: null, - scheduleRefresh: null, - scheduleRoot: null, - setRefreshHandler: null, - getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-bc38a3dfa-20230220" -}; -if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1319 = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if ( - !hook$jscomp$inline_1319.isDisabled && - hook$jscomp$inline_1319.supportsFiber - ) - try { - (rendererID = hook$jscomp$inline_1319.inject( - internals$jscomp$inline_1318 - )), - (injectedHook = hook$jscomp$inline_1319); - } catch (err) {} -} -var Path = Mode$1.Path; -exports.Transform = Transform; -exports.ClippingRectangle = TYPES.CLIPPING_RECTANGLE; -exports.Group = TYPES.GROUP; -exports.LinearGradient = LinearGradient; -exports.Path = Path; -exports.Pattern = Pattern; -exports.RadialGradient = RadialGradient; -exports.Shape = TYPES.SHAPE; -exports.Surface = Surface; -exports.Text = Text; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 5275463e0a..83968dda57 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -247,14 +247,14 @@ function childrenAsString(children) { : "" : ""; } -var scheduleCallback = Scheduler.unstable_scheduleCallback, - cancelCallback = Scheduler.unstable_cancelCallback, +var scheduleCallback$2 = Scheduler.unstable_scheduleCallback, + cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, now = Scheduler.unstable_now, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, - NormalPriority = Scheduler.unstable_NormalPriority, + NormalPriority$1 = Scheduler.unstable_NormalPriority, IdlePriority = Scheduler.unstable_IdlePriority, rendererID = null, injectedHook = null; @@ -518,10 +518,10 @@ function lanesToEventPriority(lanes) { : 8 : 2; } -function shim() { +function shim$1() { throw Error(formatProdErrorMessage(305)); } -function shim$1() { +function shim() { throw Error(formatProdErrorMessage(357)); } var pooledTransform = new Transform(), @@ -812,7 +812,7 @@ function flushSyncCallbacks() { } catch (error) { throw ( (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback(ImmediatePriority, flushSyncCallbacks), + scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), error) ); } finally { @@ -822,26 +822,6 @@ function flushSyncCallbacks() { } return null; } -var forkStack = [], - forkStackIndex = 0, - treeForkProvider = null, - idStack = [], - idStackIndex = 0, - treeContextProvider = null; -function popTreeContext(workInProgress) { - for (; workInProgress === treeForkProvider; ) - (treeForkProvider = forkStack[--forkStackIndex]), - (forkStack[forkStackIndex] = null), - --forkStackIndex, - (forkStack[forkStackIndex] = null); - for (; workInProgress === treeContextProvider; ) - (treeContextProvider = idStack[--idStackIndex]), - (idStack[idStackIndex] = null), - --idStackIndex, - (idStack[idStackIndex] = null), - --idStackIndex, - (idStack[idStackIndex] = null); -} var contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null); @@ -895,7 +875,7 @@ function finishQueueingConcurrentUpdates() { 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); } } -function enqueueUpdate(fiber, queue, update, lane) { +function enqueueUpdate$1(fiber, queue, update, lane) { concurrentQueues[concurrentQueuesIndex++] = fiber; concurrentQueues[concurrentQueuesIndex++] = queue; concurrentQueues[concurrentQueuesIndex++] = update; @@ -906,7 +886,7 @@ function enqueueUpdate(fiber, queue, update, lane) { null !== fiber && (fiber.lanes |= lane); } function enqueueConcurrentRenderForLane(fiber, lane) { - enqueueUpdate(fiber, null, null, lane); + enqueueUpdate$1(fiber, null, null, lane); return getRootForUpdatedFiber(fiber); } function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { @@ -976,7 +956,7 @@ function createUpdate(eventTime, lane) { next: null }; } -function enqueueUpdate$1(fiber, update, lane) { +function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (null === updateQueue) return null; updateQueue = updateQueue.shared; @@ -985,7 +965,7 @@ function enqueueUpdate$1(fiber, update, lane) { 0 === (executionContext & 2) ) return ( - enqueueUpdate(fiber, updateQueue, update, lane), + enqueueUpdate$1(fiber, updateQueue, update, lane), getRootForUpdatedFiber(fiber) ); var pending = updateQueue.pending; @@ -1907,17 +1887,17 @@ var reconcileChildFibers = createChildReconciler(!0), currentTreeHiddenStackCursor = createCursor(null), prevRenderLanesStackCursor = createCursor(0); function pushHiddenContext(fiber, context) { - fiber = renderLanes$1; + fiber = renderLanes; push(prevRenderLanesStackCursor, fiber); push(currentTreeHiddenStackCursor, context); - renderLanes$1 = fiber | context.baseLanes; + renderLanes = fiber | context.baseLanes; } function reuseHiddenContextOnStack() { - push(prevRenderLanesStackCursor, renderLanes$1); + push(prevRenderLanesStackCursor, renderLanes); push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current); } function popHiddenContext() { - renderLanes$1 = prevRenderLanesStackCursor.current; + renderLanes = prevRenderLanesStackCursor.current; pop(currentTreeHiddenStackCursor); pop(prevRenderLanesStackCursor); } @@ -1958,7 +1938,7 @@ function findFirstSuspended(row) { for (var node = row; null !== node; ) { if (13 === node.tag) { var state = node.memoizedState; - if (null !== state && (null === state.dehydrated || shim() || shim())) + if (null !== state && (null === state.dehydrated || shim$1() || shim$1())) return node; } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { if (0 !== (node.flags & 128)) return node; @@ -2032,9 +2012,9 @@ function trackUsedThenable(thenableState, thenable, index) { } var suspendedThenable = null, ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, - renderLanes = 0, - currentlyRenderingFiber = null, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + renderLanes$1 = 0, + currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, @@ -2060,8 +2040,8 @@ function renderWithHooks( secondArg, nextRenderLanes ) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber = workInProgress; + renderLanes$1 = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; workInProgress.memoizedState = null; workInProgress.updateQueue = null; workInProgress.lanes = 0; @@ -2085,8 +2065,8 @@ function renderWithHooks( function finishRenderingHooks(current) { ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; + renderLanes$1 = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdate = !1; thenableIndexCounter = 0; thenableState = null; @@ -2120,15 +2100,15 @@ function bailoutHooks(current, workInProgress, lanes) { } function resetHooksOnUnwind() { if (didScheduleRenderPhaseUpdate) { - for (var hook = currentlyRenderingFiber.memoizedState; null !== hook; ) { + for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook; ) { var queue = hook.queue; null !== queue && (queue.pending = null); hook = hook.next; } didScheduleRenderPhaseUpdate = !1; } - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; + renderLanes$1 = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdateDuringThisPass = !1; thenableIndexCounter = 0; thenableState = null; @@ -2142,26 +2122,26 @@ function mountWorkInProgressHook() { next: null }; null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = hook) + ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook) : (workInProgressHook = workInProgressHook.next = hook); return workInProgressHook; } function updateWorkInProgressHook() { if (null === currentHook) { - var nextCurrentHook = currentlyRenderingFiber.alternate; + var nextCurrentHook = currentlyRenderingFiber$1.alternate; nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; } else nextCurrentHook = currentHook.next; var nextWorkInProgressHook = null === workInProgressHook - ? currentlyRenderingFiber.memoizedState + ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; if (null !== nextWorkInProgressHook) (workInProgressHook = nextWorkInProgressHook), (currentHook = nextCurrentHook); else { if (null === nextCurrentHook) - if (null === currentlyRenderingFiber.alternate) + if (null === currentlyRenderingFiber$1.alternate) nextCurrentHook = { memoizedState: null, baseState: null, @@ -2179,7 +2159,7 @@ function updateWorkInProgressHook() { next: null }; null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = + ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook) : (workInProgressHook = workInProgressHook.next = nextCurrentHook); } @@ -2207,10 +2187,10 @@ function use(usable) { } function useMemoCache(size) { var memoCache = null, - updateQueue = currentlyRenderingFiber.updateQueue; + updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; null !== current && ((current = current.updateQueue), null !== current && @@ -2226,7 +2206,7 @@ function useMemoCache(size) { null == memoCache && (memoCache = { data: [], index: 0 }); null === updateQueue && ((updateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = updateQueue)); + (currentlyRenderingFiber$1.updateQueue = updateQueue)); updateQueue.memoCache = memoCache; updateQueue = memoCache.data[memoCache.index]; if (void 0 === updateQueue) @@ -2270,7 +2250,7 @@ function updateReducer(reducer) { if ( updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane - : (renderLanes & updateLane) === updateLane + : (renderLanes$1 & updateLane) === updateLane ) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = @@ -2298,7 +2278,7 @@ function updateReducer(reducer) { ? ((newBaseQueueFirst = newBaseQueueLast = clone), (baseFirst = current)) : (newBaseQueueLast = newBaseQueueLast.next = clone); - currentlyRenderingFiber.lanes |= updateLane; + currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } update = update.next; @@ -2342,7 +2322,7 @@ function readFromUnsubscribedMutableSource(root, source, getSnapshot) { if (null !== JSCompiler_inline_result) root = JSCompiler_inline_result === getVersion; else if ( - ((root = root.mutableReadLanes), (root = (renderLanes & root) === root)) + ((root = root.mutableReadLanes), (root = (renderLanes$1 & root) === root)) ) (source._workInProgressVersionSecondary = getVersion), workInProgressSources.push(source); @@ -2367,7 +2347,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { prevGetSnapshot = refs.getSnapshot, prevSource = memoizedState.source; memoizedState = memoizedState.subscribe; - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; hook.memoizedState = { refs: refs, source: source, subscribe: subscribe }; dispatcher.useEffect( function () { @@ -2413,7 +2393,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { lastRenderedState: snapshot }), (hook.dispatch = setSnapshot = - dispatchSetState.bind(null, currentlyRenderingFiber, hook)), + dispatchSetState.bind(null, currentlyRenderingFiber$1, hook)), (_dispatcher$useState.queue = hook), (_dispatcher$useState.baseQueue = null), (snapshot = readFromUnsubscribedMutableSource(root, source, getSnapshot)), @@ -2426,7 +2406,7 @@ function updateMutableSource(source, getSnapshot, subscribe) { return useMutableSource(hook, source, getSnapshot, subscribe); } function updateSyncExternalStore(subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber, + var fiber = currentlyRenderingFiber$1, hook = updateWorkInProgressHook(), nextSnapshot = getSnapshot(), snapshotChanged = !objectIs( @@ -2453,7 +2433,7 @@ function updateSyncExternalStore(subscribe, getSnapshot) { ); subscribe = workInProgressRoot; if (null === subscribe) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(subscribe, renderLanes) || + includesBlockingLane(subscribe, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } return nextSnapshot; @@ -2461,10 +2441,10 @@ function updateSyncExternalStore(subscribe, getSnapshot) { function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { fiber.flags |= 16384; fiber = { getSnapshot: getSnapshot, value: renderedSnapshot }; - getSnapshot = currentlyRenderingFiber.updateQueue; + getSnapshot = currentlyRenderingFiber$1.updateQueue; null === getSnapshot ? ((getSnapshot = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = getSnapshot), + (currentlyRenderingFiber$1.updateQueue = getSnapshot), (getSnapshot.stores = [fiber])) : ((renderedSnapshot = getSnapshot.stores), null === renderedSnapshot @@ -2509,17 +2489,17 @@ function mountState(initialState) { hook.queue = initialState; initialState = initialState.dispatch = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, initialState ); return [hook.memoizedState, initialState]; } function pushEffect(tag, create, destroy, deps) { tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null }; - create = currentlyRenderingFiber.updateQueue; + create = currentlyRenderingFiber$1.updateQueue; null === create ? ((create = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = create), + (currentlyRenderingFiber$1.updateQueue = create), (create.lastEffect = tag.next = tag)) : ((destroy = create.lastEffect), null === destroy @@ -2535,7 +2515,7 @@ function updateRef() { } function mountEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( 1 | hookFlags, create, @@ -2555,7 +2535,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { return; } } - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); } function mountEffect(create, deps) { @@ -2565,11 +2545,11 @@ function updateEffect(create, deps) { updateEffectImpl(2048, 8, create, deps); } function useEffectEventImpl(payload) { - currentlyRenderingFiber.flags |= 4; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + currentlyRenderingFiber$1.flags |= 4; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (null === componentUpdateQueue) (componentUpdateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = componentUpdateQueue), + (currentlyRenderingFiber$1.updateQueue = componentUpdateQueue), (componentUpdateQueue.events = [payload]); else { var events = componentUpdateQueue.events; @@ -2644,14 +2624,14 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 42)) + if (0 === (renderLanes$1 & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) ); objectIs(value, prevValue) || ((value = claimNextTransitionLane()), - (currentlyRenderingFiber.lanes |= value), + (currentlyRenderingFiber$1.lanes |= value), (workInProgressRootSkippedLanes |= value), (hook.baseState = !0)); return prevValue; @@ -2661,18 +2641,18 @@ function startTransition(setPending, callback, options) { currentUpdatePriority = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); - var prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = {}; + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = {}; enableTransitionTracing && void 0 !== options && void 0 !== options.name && - ((ReactCurrentBatchConfig.transition.name = options.name), - (ReactCurrentBatchConfig.transition.startTime = now())); + ((ReactCurrentBatchConfig$2.transition.name = options.name), + (ReactCurrentBatchConfig$2.transition.startTime = now())); try { setPending(!1), callback(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig.transition = prevTransition); + (ReactCurrentBatchConfig$2.transition = prevTransition); } } function updateId() { @@ -2689,7 +2669,7 @@ function refreshCache(fiber, seedKey, seedValue) { var lane = requestUpdateLane(provider), eventTime = requestEventTime(); fiber = createUpdate(eventTime, lane); - var root = enqueueUpdate$1(provider, fiber, lane); + var root = enqueueUpdate(provider, fiber, lane); null !== root && (scheduleUpdateOnFiber(root, provider, lane, eventTime), entangleTransitions(root, provider, lane)); @@ -2715,7 +2695,7 @@ function dispatchReducerAction(fiber, queue, action) { }; if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, action); else if ( - (enqueueUpdate(fiber, queue, action, lane), + (enqueueUpdate$1(fiber, queue, action, lane), (action = getRootForUpdatedFiber(fiber)), null !== action) ) { @@ -2747,14 +2727,14 @@ function dispatchSetState(fiber, queue, action) { update.hasEagerState = !0; update.eagerState = eagerState; if (objectIs(eagerState, currentState)) { - enqueueUpdate(fiber, queue, update, 0); + enqueueUpdate$1(fiber, queue, update, 0); null === workInProgressRoot && finishQueueingConcurrentUpdates(); return; } } catch (error) { } finally { } - enqueueUpdate(fiber, queue, update, lane); + enqueueUpdate$1(fiber, queue, update, lane); action = getRootForUpdatedFiber(fiber); null !== action && ((update = requestEventTime()), @@ -2765,8 +2745,8 @@ function dispatchSetState(fiber, queue, action) { function isRenderPhaseUpdate(fiber) { var alternate = fiber.alternate; return ( - fiber === currentlyRenderingFiber || - (null !== alternate && alternate === currentlyRenderingFiber) + fiber === currentlyRenderingFiber$1 || + (null !== alternate && alternate === currentlyRenderingFiber$1) ); } function enqueueRenderPhaseUpdate(queue, update) { @@ -2858,7 +2838,7 @@ var HooksDispatcherOnMount = { hook.queue = reducer; reducer = reducer.dispatch = dispatchReducerAction.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, reducer ); return [hook.memoizedState, reducer]; @@ -2895,12 +2875,12 @@ var HooksDispatcherOnMount = { return useMutableSource(hook, source, getSnapshot, subscribe); }, useSyncExternalStore: function (subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber, + var fiber = currentlyRenderingFiber$1, hook = mountWorkInProgressHook(); var nextSnapshot = getSnapshot(); var root = workInProgressRoot; if (null === root) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root, renderLanes) || + includesBlockingLane(root, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); hook.memoizedState = nextSnapshot; root = { value: nextSnapshot, getSnapshot: getSnapshot }; @@ -2928,7 +2908,7 @@ var HooksDispatcherOnMount = { useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, - currentlyRenderingFiber + currentlyRenderingFiber$1 )); } }; @@ -3049,7 +3029,7 @@ var classComponentUpdater = { update = createUpdate(eventTime, lane); update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); + payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); @@ -3062,7 +3042,7 @@ var classComponentUpdater = { update.tag = 1; update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); + payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); @@ -3074,7 +3054,7 @@ var classComponentUpdater = { update = createUpdate(eventTime, lane); update.tag = 2; void 0 !== callback && null !== callback && (update.callback = callback); - callback = enqueueUpdate$1(inst, update, lane); + callback = enqueueUpdate(inst, update, lane); null !== callback && (scheduleUpdateOnFiber(callback, inst, lane, eventTime), entangleTransitions(callback, inst, lane)); @@ -3509,7 +3489,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef(current, workInProgress); + markRef$1(current, workInProgress); if ( "hidden" === nextProps.mode || "unstable-defer-without-hiding" === nextProps.mode || @@ -3602,7 +3582,7 @@ function deferHiddenOffscreenComponent( propagateParentContextChanges(current, workInProgress, renderLanes, !0); return null; } -function markRef(current, workInProgress) { +function markRef$1(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -3861,7 +3841,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef(current, workInProgress); + markRef$1(current, workInProgress); hasContext = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !hasContext) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); @@ -4186,9 +4166,9 @@ function updateDehydratedSuspenseComponent( renderLanes, null ); - if (shim()) + if (shim$1()) return ( - (suspenseState = shim().digest), + (suspenseState = shim$1().digest), (nextProps = Error(formatProdErrorMessage(419))), (nextProps.digest = suspenseState), (suspenseState = createCapturedValue(nextProps, suspenseState, void 0)), @@ -4267,12 +4247,12 @@ function updateDehydratedSuspenseComponent( null ); } - if (shim()) + if (shim$1()) return ( (workInProgress.flags |= 128), (workInProgress.child = current.child), retryDehydratedSuspenseBoundary.bind(null, current), - shim(), + shim$1(), null ); current = mountSuspensePrimaryChildren(workInProgress, nextProps.children); @@ -4536,13 +4516,13 @@ function attemptEarlyBailoutIfNoScheduledUpdate( return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } var valueCursor = createCursor(null), - currentlyRenderingFiber$1 = null, + currentlyRenderingFiber = null, lastContextDependency = null, lastFullyObservedContext = null; function resetContextDependencies() { lastFullyObservedContext = lastContextDependency = - currentlyRenderingFiber$1 = + currentlyRenderingFiber = null; } function pushProvider(providerFiber, context, nextValue) { @@ -4756,7 +4736,7 @@ function checkIfContextChanged(currentDependencies) { return !1; } function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber$1 = workInProgress; + currentlyRenderingFiber = workInProgress; lastFullyObservedContext = lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && @@ -4773,15 +4753,14 @@ function readContext(context) { ((context = { context: context, memoizedValue: value, next: null }), null === lastContextDependency) ) { - if (null === currentlyRenderingFiber$1) + if (null === currentlyRenderingFiber) throw Error(formatProdErrorMessage(308)); lastContextDependency = context; - currentlyRenderingFiber$1.dependencies = { + currentlyRenderingFiber.dependencies = { lanes: 0, firstContext: context }; - enableLazyContextPropagation && - (currentlyRenderingFiber$1.flags |= 524288); + enableLazyContextPropagation && (currentlyRenderingFiber.flags |= 524288); } else lastContextDependency = lastContextDependency.next = context; return value; } @@ -4804,7 +4783,7 @@ var AbortControllerLocal = }; }, scheduleCallback$1 = Scheduler.unstable_scheduleCallback, - NormalPriority$1 = Scheduler.unstable_NormalPriority, + NormalPriority = Scheduler.unstable_NormalPriority, CacheContext = { $$typeof: REACT_CONTEXT_TYPE, Consumer: null, @@ -4825,7 +4804,7 @@ function createCache() { function releaseCache(cache) { cache.refCount--; 0 === cache.refCount && - scheduleCallback$1(NormalPriority$1, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } @@ -4933,7 +4912,7 @@ function collectNearestChildContextValues( } } function DO_NOT_USE_queryAllNodes(fn) { - var currentFiber = shim$1(); + var currentFiber = shim(); if (null === currentFiber) return null; currentFiber = currentFiber.child; var scopedNodes = []; @@ -4942,7 +4921,7 @@ function DO_NOT_USE_queryAllNodes(fn) { return 0 === scopedNodes.length ? null : scopedNodes; } function DO_NOT_USE_queryFirstNode(fn) { - var currentFiber = shim$1(); + var currentFiber = shim(); if (null === currentFiber) return null; currentFiber = currentFiber.child; return null !== currentFiber @@ -4953,7 +4932,7 @@ function containsNode() { throw Error(formatProdErrorMessage(248)); } function getChildContextValues(context) { - var currentFiber = shim$1(); + var currentFiber = shim(); if (null === currentFiber) return []; currentFiber = currentFiber.child; var childContextValues = []; @@ -4961,10 +4940,7 @@ function getChildContextValues(context) { collectNearestChildContextValues(currentFiber, context, childContextValues); return childContextValues; } -var appendAllChildren, - updateHostContainer, - updateHostComponent$1, - updateHostText$1; +var appendAllChildren, updateHostContainer, updateHostComponent, updateHostText; appendAllChildren = function (parent, workInProgress) { for (var node = workInProgress.child; null !== node; ) { if (5 === node.tag || 6 === node.tag) { @@ -4987,12 +4963,12 @@ appendAllChildren = function (parent, workInProgress) { } }; updateHostContainer = function () {}; -updateHostComponent$1 = function (current, workInProgress, type, newProps) { +updateHostComponent = function (current, workInProgress, type, newProps) { current.memoizedProps !== newProps && (workInProgress.updateQueue = UPDATE_SIGNAL) && (workInProgress.flags |= 4); }; -updateHostText$1 = function (current, workInProgress, oldText, newText) { +updateHostText = function (current, workInProgress, oldText, newText) { oldText !== newText && (workInProgress.flags |= 4); }; function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { @@ -5045,7 +5021,6 @@ function bubbleProperties(completedWork) { } function completeWork(current, workInProgress, renderLanes) { var newProps = workInProgress.pendingProps; - popTreeContext(workInProgress); switch (workInProgress.tag) { case 2: case 16: @@ -5101,7 +5076,7 @@ function completeWork(current, workInProgress, renderLanes) { popHostContext(workInProgress); renderLanes = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - updateHostComponent$1(current, workInProgress, renderLanes, newProps), + updateHostComponent(current, workInProgress, renderLanes, newProps), current.ref !== workInProgress.ref && (workInProgress.flags |= 2097664); else { @@ -5144,7 +5119,7 @@ function completeWork(current, workInProgress, renderLanes) { return null; case 6: if (current && null != workInProgress.stateNode) - updateHostText$1( + updateHostText( current, workInProgress, current.memoizedProps, @@ -5320,7 +5295,7 @@ function completeWork(current, workInProgress, renderLanes) { containsNode: containsNode, getChildContextValues: getChildContextValues }), - shim$1(), + shim(), null !== workInProgress.ref && ((workInProgress.flags |= 2097664), (workInProgress.flags |= 4))) : (null !== workInProgress.ref && (workInProgress.flags |= 4), @@ -5385,7 +5360,6 @@ function completeWork(current, workInProgress, renderLanes) { throw Error(formatProdErrorMessage(156, workInProgress.tag)); } function unwindWork(current, workInProgress) { - popTreeContext(workInProgress); switch (workInProgress.tag) { case 1: return ( @@ -5457,7 +5431,6 @@ function unwindWork(current, workInProgress) { } } function unwindInterruptedWork(current, interruptedWork) { - popTreeContext(interruptedWork); switch (interruptedWork.tag) { case 3: popProvider(CacheContext); @@ -5547,8 +5520,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$96) { - captureCommitPhaseError(current, nearestMountedAncestor, error$96); + } catch (error$93) { + captureCommitPhaseError(current, nearestMountedAncestor, error$93); } else ref.current = null; } @@ -5747,11 +5720,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$97) { + } catch (error$94) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$97 + error$94 ); } } @@ -6125,7 +6098,7 @@ function commitDeletionEffectsOnFiber( null !== finishedRoot && (finishedRoot = finishedRoot.onDeleted) && finishedRoot(deletedFiber.stateNode); - null !== hostParent && shim(hostParent, deletedFiber.stateNode); + null !== hostParent && shim$1(); break; case 4: prevHostParent = hostParent; @@ -6338,8 +6311,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$105) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$105); + } catch (error$102) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$102); } } break; @@ -6375,11 +6348,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null !== updatePayload) try { flags._applyProps(flags, newProps, current); - } catch (error$108) { + } catch (error$105) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$108 + error$105 ); } } @@ -6416,8 +6389,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$110) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$110); + } catch (error$107) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$107); } flags = finishedWork.updateQueue; null !== flags && @@ -6525,7 +6498,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags & 512 && (null !== current && safelyDetachRef(finishedWork, finishedWork.return), safelyAttachRef(finishedWork, finishedWork.return)); - flags & 4 && shim$1(); + flags & 4 && shim(); break; default: recursivelyTraverseMutationEffects(root, finishedWork), @@ -6557,12 +6530,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$100 = JSCompiler_inline_result.stateNode.containerInfo, - before$101 = getHostSibling(finishedWork); + var parent$97 = JSCompiler_inline_result.stateNode.containerInfo, + before$98 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$101, - parent$100 + before$98, + parent$97 ); break; default: @@ -7023,9 +6996,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$119 = finishedWork.stateNode; + var instance$116 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$119._visibility & 4 + ? instance$116._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7038,7 +7011,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$119._visibility |= 4), + : ((instance$116._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7046,7 +7019,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$119._visibility |= 4), + : ((instance$116._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7059,7 +7032,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$119 + instance$116 ); break; case 24: @@ -7334,10 +7307,10 @@ var DefaultCacheDispatcher = { }, ceil = Math.ceil, PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, - ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, executionContext = 0, workInProgressRoot = null, workInProgress = null, @@ -7345,7 +7318,7 @@ var DefaultCacheDispatcher = { workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidAttachPingListener = !1, - renderLanes$1 = 0, + renderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootSkippedLanes = 0, @@ -7459,11 +7432,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { 2 === workInProgressSuspendedReason && root === workInProgressRoot && (prepareFreshStack(root, 0), - markRootSuspended$1(root, workInProgressRootRenderLanes)); + markRootSuspended(root, workInProgressRootRenderLanes)); markRootUpdated(root, lane, eventTime); if (0 === (executionContext & 2) || root !== workInProgressRoot) { if (enableTransitionTracing) { - var transition = ReactCurrentBatchConfig$2.transition; + var transition = ReactCurrentBatchConfig.transition; if ( null !== transition && null != transition.name && @@ -7482,7 +7455,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { if (deferRenderPhaseUpdateToNextBatch || 0 === (executionContext & 2)) workInProgressRootInterleavedUpdatedLanes |= lane; 4 === workInProgressRootExitStatus && - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); 2 === lane && @@ -7516,14 +7489,14 @@ function ensureRootIsScheduled(root, currentTime) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === suspendedLanes) - null !== existingCallbackNode && cancelCallback(existingCallbackNode), + null !== existingCallbackNode && cancelCallback$1(existingCallbackNode), (root.callbackNode = null), (root.callbackPriority = 0); else if ( ((currentTime = suspendedLanes & -suspendedLanes), root.callbackPriority !== currentTime) ) { - null != existingCallbackNode && cancelCallback(existingCallbackNode); + null != existingCallbackNode && cancelCallback$1(existingCallbackNode); if (0 !== (currentTime & 3)) 0 === root.tag ? ((existingCallbackNode = performSyncWorkOnRoot.bind(null, root)), @@ -7535,7 +7508,7 @@ function ensureRootIsScheduled(root, currentTime) { null === syncQueue ? (syncQueue = [existingCallbackNode]) : syncQueue.push(existingCallbackNode)), - scheduleCallback(ImmediatePriority, flushSyncCallbacks), + scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), (existingCallbackNode = null); else { switch (lanesToEventPriority(suspendedLanes)) { @@ -7546,15 +7519,15 @@ function ensureRootIsScheduled(root, currentTime) { existingCallbackNode = UserBlockingPriority; break; case 32: - existingCallbackNode = NormalPriority; + existingCallbackNode = NormalPriority$1; break; case 536870912: existingCallbackNode = IdlePriority; break; default: - existingCallbackNode = NormalPriority; + existingCallbackNode = NormalPriority$1; } - existingCallbackNode = scheduleCallback$2( + existingCallbackNode = scheduleCallback( existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root) ); @@ -7600,11 +7573,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), originalCallbackNode) ); - if (6 === didTimeout) markRootSuspended$1(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); originallyAttemptedLanes = root.current.alternate; @@ -7615,23 +7588,23 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$128 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$125 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$128 && - ((lanes = errorRetryLanes$128), + 0 !== errorRetryLanes$125 && + ((lanes = errorRetryLanes$125), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$128 + errorRetryLanes$125 ))); } if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), originalCallbackNode) ); @@ -7650,7 +7623,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ); break; case 3: - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && ((lanes = globalMostRecentFallbackTime + 500 - now()), 10 < lanes) @@ -7674,15 +7647,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ); break; case 4: - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$128 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$128), - (errorRetryLanes$128 = didTimeout[errorRetryLanes$128]), - errorRetryLanes$128 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$128), + (errorRetryLanes$125 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$125), + (errorRetryLanes$125 = didTimeout[errorRetryLanes$125]), + errorRetryLanes$125 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$125), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now() - lanes; @@ -7802,7 +7775,7 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended$1(root, suspendedLanes) { +function markRootSuspended(root, suspendedLanes) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; @@ -7838,13 +7811,13 @@ function performSyncWorkOnRoot(root) { throw ( ((exitStatus = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), exitStatus) ); if (6 === exitStatus) return ( - markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), null + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), null ); root.finishedWork = root.current.alternate; root.finishedLanes = lanes; @@ -7879,7 +7852,7 @@ function prepareFreshStack(root, lanes) { resetWorkInProgressStack(); workInProgressRoot = root; workInProgress = root = createWorkInProgress(root.current, null); - workInProgressRootRenderLanes = renderLanes$1 = lanes; + workInProgressRootRenderLanes = renderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; workInProgressRootDidAttachPingListener = !1; @@ -7896,7 +7869,7 @@ function prepareFreshStack(root, lanes) { } function handleThrow(root, thrownValue) { ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; if (thrownValue === SuspenseException) { if (null === suspendedThenable) throw Error(formatProdErrorMessage(459)); root = suspendedThenable; @@ -7938,8 +7911,8 @@ function shouldAttemptToSuspendUntilDataResolves() { : !1; } function pushDispatcher() { - var prevDispatcher = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = ContextOnlyDispatcher; return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; } function pushCacheDispatcher() { @@ -7952,12 +7925,12 @@ function renderDidSuspendDelayIfPossible() { null === workInProgressRoot || (0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) || - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes); } function renderRootSync(root, lanes) { var prevExecutionContext = executionContext; executionContext |= 2; - var prevDispatcher = pushDispatcher(root.containerInfo), + var prevDispatcher = pushDispatcher(), prevCacheDispatcher = pushCacheDispatcher(); if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) (workInProgressTransitions = getTransitionsForLanes(root, lanes)), @@ -7980,13 +7953,13 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$131) { - handleThrow(root, thrownValue$131); + } catch (thrownValue$128) { + handleThrow(root, thrownValue$128); } while (1); resetContextDependencies(); executionContext = prevExecutionContext; - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; ReactCurrentCache.current = prevCacheDispatcher; if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); workInProgressRoot = null; @@ -8000,7 +7973,7 @@ function workLoopSync() { function renderRootConcurrent(root, lanes) { var prevExecutionContext = executionContext; executionContext |= 2; - var prevDispatcher = pushDispatcher(root.containerInfo), + var prevDispatcher = pushDispatcher(), prevCacheDispatcher = pushCacheDispatcher(); if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) (workInProgressTransitions = getTransitionsForLanes(root, lanes)), @@ -8056,12 +8029,12 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$133) { - handleThrow(root, thrownValue$133); + } catch (thrownValue$130) { + handleThrow(root, thrownValue$130); } while (1); resetContextDependencies(); - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; ReactCurrentCache.current = prevCacheDispatcher; executionContext = prevExecutionContext; if (null !== workInProgress) return 0; @@ -8075,10 +8048,10 @@ function workLoopConcurrent() { performUnitOfWork(workInProgress); } function performUnitOfWork(unitOfWork) { - var next = beginWork$1(unitOfWork.alternate, unitOfWork, renderLanes$1); + var next = beginWork(unitOfWork.alternate, unitOfWork, renderLanes); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function replaySuspendedUnitOfWork(unitOfWork) { var current = unitOfWork.alternate; @@ -8115,14 +8088,14 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetHooksOnUnwind(), unwindInterruptedWork(current, unitOfWork), (unitOfWork = workInProgress = - resetWorkInProgress(unitOfWork, renderLanes$1)), - (current = beginWork$1(current, unitOfWork, renderLanes$1)); + resetWorkInProgress(unitOfWork, renderLanes)), + (current = beginWork(current, unitOfWork, renderLanes)); } unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) : (workInProgress = current); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { resetContextDependencies(); @@ -8191,7 +8164,7 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { else { var update = createUpdate(-1, 2); update.tag = 2; - enqueueUpdate$1(unitOfWork, update, 2); + enqueueUpdate(unitOfWork, update, 2); } unitOfWork.lanes |= 2; } @@ -8295,7 +8268,7 @@ function completeUnitOfWork(unitOfWork) { unitOfWork = completedWork.return; if (0 === (completedWork.flags & 32768)) { if ( - ((current = completeWork(current, completedWork, renderLanes$1)), + ((current = completeWork(current, completedWork, renderLanes)), null !== current) ) { workInProgress = current; @@ -8329,9 +8302,9 @@ function completeUnitOfWork(unitOfWork) { } function commitRoot(root, recoverableErrors, transitions) { var previousUpdateLanePriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig$2.transition; + prevTransition = ReactCurrentBatchConfig.transition; try { - (ReactCurrentBatchConfig$2.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), commitRootImpl( root, @@ -8340,7 +8313,7 @@ function commitRoot(root, recoverableErrors, transitions) { previousUpdateLanePriority ); } finally { - (ReactCurrentBatchConfig$2.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (currentUpdatePriority = previousUpdateLanePriority); } return null; @@ -8374,19 +8347,19 @@ function commitRootImpl( ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = remainingLanes), (pendingPassiveTransitions = transitions), - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; })); transitions = 0 !== (finishedWork.flags & 15990); if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactCurrentBatchConfig$2.transition; - ReactCurrentBatchConfig$2.transition = null; + transitions = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = null; var previousPriority = currentUpdatePriority; currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; commitBeforeMutationEffects(root, finishedWork); commitMutationEffectsOnFiber(finishedWork, root); root.current = finishedWork; @@ -8394,7 +8367,7 @@ function commitRootImpl( requestPaint(); executionContext = prevExecutionContext; currentUpdatePriority = previousPriority; - ReactCurrentBatchConfig$2.transition = transitions; + ReactCurrentBatchConfig.transition = transitions; } else root.current = finishedWork; rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), @@ -8449,17 +8422,17 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); renderPriority = 32 > renderPriority ? 32 : renderPriority; - var prevTransition = ReactCurrentBatchConfig$2.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { return ( - (ReactCurrentBatchConfig$2.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = renderPriority), flushPassiveEffectsImpl() ); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$2.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), releaseRootPooledCache(root, remainingLanes); } } @@ -8488,7 +8461,7 @@ function flushPassiveEffectsImpl() { null !== prevRootTransitionCallbacks && null !== prevEndTime && ((currentEndTime = currentPendingTransitionCallbacks = null), - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, prevEndTime, @@ -8505,7 +8478,7 @@ function flushPassiveEffectsImpl() { function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && (markRootUpdated(rootFiber, 2, sourceFiber), @@ -8544,7 +8517,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber, 2 ); - nearestMountedAncestor = enqueueUpdate$1( + nearestMountedAncestor = enqueueUpdate( nearestMountedAncestor, sourceFiber, 2 @@ -8630,8 +8603,8 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { null !== retryCache && retryCache.delete(wakeable); retryTimedOutBoundary(boundaryFiber, retryLane); } -var beginWork$1; -beginWork$1 = function (current, workInProgress, renderLanes) { +var beginWork; +beginWork = function (current, workInProgress, renderLanes) { if (null !== current) if (current.memoizedProps !== workInProgress.pendingProps) didReceiveUpdate = !0; @@ -8794,7 +8767,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { : null !== nextProps && shouldSetTextContent(Component, nextProps) && (workInProgress.flags |= 32), - markRef(current, workInProgress), + markRef$1(current, workInProgress), reconcileChildren(current, workInProgress, nextCache, renderLanes), workInProgress.child ); @@ -9030,8 +9003,8 @@ beginWork$1 = function (current, workInProgress, renderLanes) { } throw Error(formatProdErrorMessage(156, workInProgress.tag)); }; -function scheduleCallback$2(priorityLevel, callback) { - return scheduleCallback(priorityLevel, callback); +function scheduleCallback(priorityLevel, callback) { + return scheduleCallback$2(priorityLevel, callback); } function FiberNode(tag, pendingProps, key, mode) { this.tag = tag; @@ -9379,7 +9352,7 @@ function updateContainer(element, container, parentComponent, callback) { container.payload = { element: element }; callback = void 0 === callback ? null : callback; null !== callback && (container.callback = callback); - element = enqueueUpdate$1(parentComponent, container, lane); + element = enqueueUpdate(parentComponent, container, lane); null !== element && (scheduleUpdateOnFiber(element, parentComponent, lane, eventTime), entangleTransitions(element, parentComponent, lane)); @@ -9504,19 +9477,19 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component), - devToolsConfig$jscomp$inline_1136 = { + devToolsConfig$jscomp$inline_1107 = { findFiberByHostInstance: function () { return null; }, bundleType: 0, - version: "18.3.0-www-modern-bc38a3dfa-20230220", + version: "18.3.0-www-modern-6b6d0617e-20230220", rendererPackageName: "react-art" }; -var internals$jscomp$inline_1309 = { - bundleType: devToolsConfig$jscomp$inline_1136.bundleType, - version: devToolsConfig$jscomp$inline_1136.version, - rendererPackageName: devToolsConfig$jscomp$inline_1136.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1136.rendererConfig, +var internals$jscomp$inline_1277 = { + bundleType: devToolsConfig$jscomp$inline_1107.bundleType, + version: devToolsConfig$jscomp$inline_1107.version, + rendererPackageName: devToolsConfig$jscomp$inline_1107.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1107.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -9533,26 +9506,26 @@ var internals$jscomp$inline_1309 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1136.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1107.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-bc38a3dfa-20230220" + reconcilerVersion: "18.3.0-next-6b6d0617e-20230220" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1310 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1278 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1310.isDisabled && - hook$jscomp$inline_1310.supportsFiber + !hook$jscomp$inline_1278.isDisabled && + hook$jscomp$inline_1278.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1310.inject( - internals$jscomp$inline_1309 + (rendererID = hook$jscomp$inline_1278.inject( + internals$jscomp$inline_1277 )), - (injectedHook = hook$jscomp$inline_1310); + (injectedHook = hook$jscomp$inline_1278); } catch (err) {} } var Path = Mode$1.Path; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 358e772e96..8e41a719bd 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -39,8 +39,6 @@ var disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, - disableSchedulerTimeoutBasedOnReactExpirationTime = - dynamicFeatureFlags.disableSchedulerTimeoutBasedOnReactExpirationTime, replayFailedUnitOfWorkWithInvokeGuardedCallback = dynamicFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback, enableFilterEmptyStringAttributesDOM = @@ -240,7 +238,7 @@ function getIteratorFn(maybeIterable) { return null; } -function getWrappedName(outerType, innerType, wrapperName) { +function getWrappedName$1(outerType, innerType, wrapperName) { var displayName = outerType.displayName; if (displayName) { @@ -253,7 +251,7 @@ function getWrappedName(outerType, innerType, wrapperName) { : wrapperName; } // Keep in sync with react-reconciler/getComponentNameFromFiber -function getContextName(type) { +function getContextName$1(type) { return type.displayName || "Context"; } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead. @@ -315,14 +313,14 @@ function getComponentNameFromType(type) { switch (type.$$typeof) { case REACT_CONTEXT_TYPE: var context = type; - return getContextName(context) + ".Consumer"; + return getContextName$1(context) + ".Consumer"; case REACT_PROVIDER_TYPE: var provider = type; - return getContextName(provider._context) + ".Provider"; + return getContextName$1(provider._context) + ".Provider"; case REACT_FORWARD_REF_TYPE: - return getWrappedName(type, type.render, "ForwardRef"); + return getWrappedName$1(type, type.render, "ForwardRef"); case REACT_MEMO_TYPE: var outerName = type.displayName || null; @@ -357,7 +355,7 @@ function getComponentNameFromType(type) { return null; } -function getWrappedName$1(outerType, innerType, wrapperName) { +function getWrappedName(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ""; return ( outerType.displayName || @@ -365,7 +363,7 @@ function getWrappedName$1(outerType, innerType, wrapperName) { ); } // Keep in sync with shared/getComponentNameFromType -function getContextName$1(type) { +function getContextName(type) { return type.displayName || "Context"; } @@ -379,17 +377,17 @@ function getComponentNameFromFiber(fiber) { case ContextConsumer: var context = type; - return getContextName$1(context) + ".Consumer"; + return getContextName(context) + ".Consumer"; case ContextProvider: var provider = type; - return getContextName$1(provider._context) + ".Provider"; + return getContextName(provider._context) + ".Provider"; case DehydratedFragment: return "DehydratedFragment"; case ForwardRef: - return getWrappedName$1(type, type.render, "ForwardRef"); + return getWrappedName(type, type.render, "ForwardRef"); case Fragment: return "Fragment"; @@ -464,7 +462,7 @@ function getComponentNameFromFiber(fiber) { return null; } -var NoFlags = +var NoFlags$1 = /* */ 0; var PerformedWork = @@ -505,7 +503,7 @@ var Ref = var Snapshot = /* */ 1024; -var Passive = +var Passive$1 = /* */ 2048; /* Used by Hydrating: 0b000000000000001000000000000; */ @@ -517,7 +515,7 @@ var StoreConsistency = /* */ 16384; var LifecycleEffectMask = - Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit) + Passive$1 | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit) var HostEffectMask = /* */ @@ -585,13 +583,13 @@ var MutationMask = Visibility; var LayoutMask = Update | Callback | Ref | Visibility; // TODO: Split into PassiveMountMask and PassiveUnmountMask -var PassiveMask = Passive | Visibility | ChildDeletion; // Union of tags that don't get reset on clones. +var PassiveMask = Passive$1 | Visibility | ChildDeletion; // Union of tags that don't get reset on clones. // This allows certain concepts to persist without recalculating them, // e.g. whether a subtree contains passive effects or portals. var StaticMask = LayoutStatic | PassiveStatic | RefStatic; -var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; +var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner; function getNearestMountedFiber(fiber) { var node = fiber; var nearestMounted = fiber; @@ -604,7 +602,7 @@ function getNearestMountedFiber(fiber) { do { node = nextNode; - if ((node.flags & (Placement | Hydrating)) !== NoFlags) { + if ((node.flags & (Placement | Hydrating)) !== NoFlags$1) { // This is an insertion or in-progress hydration. The nearest possible // mounted fiber is the parent but we need to continue to figure out // if that one is still mounted. @@ -655,7 +653,7 @@ function isFiberMounted(fiber) { } function isMounted(component) { { - var owner = ReactCurrentOwner.current; + var owner = ReactCurrentOwner$3.current; if (owner !== null && owner.tag === ClassComponent) { var ownerFiber = owner; @@ -989,7 +987,7 @@ var registrationNameDependencies = {}; /** * Mapping from lowercase registration names to the properly cased version, * used to warn in the case of missing event handlers. Available - * only in true. + * only in __DEV__. * @type {Object} */ @@ -2194,7 +2192,7 @@ function reenableLogs() { } } -var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; +var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher; var prefix; function describeBuiltInComponentFrame(name, source, ownerFn) { { @@ -2215,8 +2213,8 @@ var reentry = false; var componentFrameCache; { - var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; - componentFrameCache = new PossiblyWeakMap(); + var PossiblyWeakMap$2 = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap$2(); } function describeNativeComponentFrame(fn, construct) { @@ -2241,10 +2239,10 @@ function describeNativeComponentFrame(fn, construct) { var previousDispatcher; { - previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function + previousDispatcher = ReactCurrentDispatcher$2.current; // Set the dispatcher in DEV because this might be call in the render function // for warnings. - ReactCurrentDispatcher.current = null; + ReactCurrentDispatcher$2.current = null; disableLogs(); } @@ -2358,7 +2356,7 @@ function describeNativeComponentFrame(fn, construct) { reentry = false; { - ReactCurrentDispatcher.current = previousDispatcher; + ReactCurrentDispatcher$2.current = previousDispatcher; reenableLogs(); } @@ -2388,7 +2386,7 @@ function describeFunctionComponentFrame(fn, source, ownerFn) { } } -function shouldConstruct(Component) { +function shouldConstruct$1(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } @@ -2400,7 +2398,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { if (typeof type === "function") { { - return describeNativeComponentFrame(type, shouldConstruct(type)); + return describeNativeComponentFrame(type, shouldConstruct$1(type)); } } @@ -2446,9 +2444,6 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { } function describeFiber(fiber) { - var owner = fiber._debugOwner ? fiber._debugOwner.type : null; - var source = fiber._debugSource; - switch (fiber.tag) { case HostHoistable: case HostSingleton: @@ -2497,7 +2492,7 @@ function getStackByFiberInDevAndProd(workInProgress) { } } -var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; var current = null; var isRendering = false; function getCurrentFiberOwnerNameInDevOrNull() { @@ -2529,14 +2524,14 @@ function getCurrentFiberStackInDev() { function resetCurrentFiber() { { - ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFrame$1.getCurrentStack = null; current = null; isRendering = false; } } function setCurrentFiber(fiber) { { - ReactDebugCurrentFrame.getCurrentStack = + ReactDebugCurrentFrame$1.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; current = fiber; isRendering = false; @@ -2777,7 +2772,7 @@ function getActiveElement(doc) { } } -var didWarnValueDefaultValue = false; +var didWarnValueDefaultValue$1 = false; var didWarnCheckedDefaultChecked = false; var didWarnControlledToUncontrolled = false; var didWarnUncontrolledToControlled = false; @@ -2803,7 +2798,7 @@ function isControlled(props) { * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html */ -function getHostProps(element, props) { +function getHostProps$2(element, props) { var node = element; var checked = props.checked; var hostProps = assign({}, props, { @@ -2814,7 +2809,7 @@ function getHostProps(element, props) { }); return hostProps; } -function initWrapperState(element, props) { +function initWrapperState$2(element, props) { { checkControlledValueProps("input", props); @@ -2840,7 +2835,7 @@ function initWrapperState(element, props) { if ( props.value !== undefined && props.defaultValue !== undefined && - !didWarnValueDefaultValue + !didWarnValueDefaultValue$1 ) { error( "%s contains an input of type %s with both value and defaultValue props. " + @@ -2853,7 +2848,7 @@ function initWrapperState(element, props) { props.type ); - didWarnValueDefaultValue = true; + didWarnValueDefaultValue$1 = true; } } @@ -2876,7 +2871,7 @@ function updateChecked(element, props) { setValueForProperty(node, "checked", checked, false); } } -function updateWrapper(element, props) { +function updateWrapper$1(element, props) { var node = element; { @@ -2976,7 +2971,7 @@ function updateWrapper(element, props) { } } } -function postMountWrapper(element, props, isHydrating) { +function postMountWrapper$3(element, props, isHydrating) { var node = element; // Do not assign value if it is already set. This prevents user text input // from being lost during SSR hydration. @@ -3079,9 +3074,9 @@ function postMountWrapper(element, props, isHydrating) { node.name = name; } } -function restoreControlledState(element, props) { +function restoreControlledState$3(element, props) { var node = element; - updateWrapper(node, props); + updateWrapper$1(node, props); updateNamedCousins(node, props); } @@ -3133,7 +3128,7 @@ function updateNamedCousins(rootNode, props) { // was previously checked to update will cause it to be come re-checked // as appropriate. - updateWrapper(otherNode, otherProps); + updateWrapper$1(otherNode, otherProps); } } } // In Chrome, assigning defaultValue to certain input types triggers input validation. @@ -3211,7 +3206,7 @@ function validateProps(element, props) { } } } -function postMountWrapper$1(element, props) { +function postMountWrapper$2(element, props) { // value="" should make a value attribute (#6219) if (props.value != null) { element.setAttribute("value", toString(getToStringValue(props.value))); @@ -3224,10 +3219,10 @@ function isArray(a) { return isArrayImpl(a); } -var didWarnValueDefaultValue$1; +var didWarnValueDefaultValue; { - didWarnValueDefaultValue$1 = false; + didWarnValueDefaultValue = false; } function getDeclarationErrorAddendum() { @@ -3364,7 +3359,7 @@ function initWrapperState$1(element, props) { if ( props.value !== undefined && props.defaultValue !== undefined && - !didWarnValueDefaultValue$1 + !didWarnValueDefaultValue ) { error( "Select elements must be either controlled or uncontrolled " + @@ -3374,11 +3369,11 @@ function initWrapperState$1(element, props) { "https://reactjs.org/link/controlled-components" ); - didWarnValueDefaultValue$1 = true; + didWarnValueDefaultValue = true; } } } -function postMountWrapper$2(element, props) { +function postMountWrapper$1(element, props) { var node = element; node.multiple = !!props.multiple; var value = props.value; @@ -3407,7 +3402,7 @@ function postUpdateWrapper(element, props) { } } } -function restoreControlledState$1(element, props) { +function restoreControlledState$2(element, props) { var node = element; var value = props.value; @@ -3433,7 +3428,7 @@ var didWarnValDefaultVal = false; * `defaultValue` if specified, or the children content (deprecated). */ -function getHostProps$2(element, props) { +function getHostProps(element, props) { var node = element; if (props.dangerouslySetInnerHTML != null) { @@ -3455,7 +3450,7 @@ function getHostProps$2(element, props) { return hostProps; } -function initWrapperState$2(element, props) { +function initWrapperState(element, props) { var node = element; { @@ -3524,7 +3519,7 @@ function initWrapperState$2(element, props) { initialValue: getToStringValue(initialValue) }; } -function updateWrapper$1(element, props) { +function updateWrapper(element, props) { var node = element; var value = getToStringValue(props.value); var defaultValue = getToStringValue(props.defaultValue); @@ -3547,7 +3542,7 @@ function updateWrapper$1(element, props) { node.defaultValue = toString(defaultValue); } } -function postMountWrapper$3(element, props) { +function postMountWrapper(element, props) { var node = element; // This is in postMount because we need access to the DOM node, which is not // available until after the component has mounted. @@ -3562,9 +3557,9 @@ function postMountWrapper$3(element, props) { } } } -function restoreControlledState$2(element, props) { +function restoreControlledState$1(element, props) { // DOM component is still mounted; update - updateWrapper$1(element, props); + updateWrapper(element, props); } var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml"; @@ -3998,7 +3993,7 @@ function dangerousStyleValue(name, value, isCustomProperty) { } var uppercasePattern = /([A-Z])/g; -var msPattern = /^ms-/; +var msPattern$1 = /^ms-/; /** * Hyphenates a camelcased CSS property name, for example: * @@ -4017,7 +4012,7 @@ function hyphenateStyleName(name) { return name .replace(uppercasePattern, "-$1") .toLowerCase() - .replace(msPattern, "-ms-"); + .replace(msPattern$1, "-ms-"); } var warnValidStyle = function () {}; @@ -4025,7 +4020,7 @@ var warnValidStyle = function () {}; { // 'msTransform' is correct, but the other prefixes should be capitalized var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; - var msPattern$1 = /^-ms-/; + var msPattern = /^-ms-/; var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon var badStyleValueWithSemicolonPattern = /;\s*$/; @@ -4052,7 +4047,7 @@ var warnValidStyle = function () {}; name, // As Andi Smith suggests // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix // is converted to lowercase `ms`. - camelize(name.replace(msPattern$1, "ms-")) + camelize(name.replace(msPattern, "ms-")) ); }; @@ -4319,7 +4314,7 @@ var voidElementTags = assign( omittedCloseTags ); -var HTML = "__html"; +var HTML$1 = "__html"; function assertValidProps(tag, props) { if (!props) { @@ -4345,7 +4340,7 @@ function assertValidProps(tag, props) { if ( typeof props.dangerouslySetInnerHTML !== "object" || - !(HTML in props.dangerouslySetInnerHTML) + !(HTML$1 in props.dangerouslySetInnerHTML) ) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + @@ -4960,17 +4955,20 @@ var ariaProperties = { "aria-setsize": 0 }; -var warnedProperties = {}; -var rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); -var rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); +var warnedProperties$1 = {}; +var rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); +var rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); -function validateProperty(tagName, name) { +function validateProperty$1(tagName, name) { { - if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) { + if ( + hasOwnProperty.call(warnedProperties$1, name) && + warnedProperties$1[name] + ) { return true; } - if (rARIACamel.test(name)) { + if (rARIACamel$1.test(name)) { var ariaName = "aria-" + name.slice(4).toLowerCase(); var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName @@ -4983,7 +4981,7 @@ function validateProperty(tagName, name) { name ); - warnedProperties[name] = true; + warnedProperties$1[name] = true; return true; } // aria-* attributes should be lowercase; suggest the lowercase version. @@ -4994,12 +4992,12 @@ function validateProperty(tagName, name) { correctName ); - warnedProperties[name] = true; + warnedProperties$1[name] = true; return true; } } - if (rARIA.test(name)) { + if (rARIA$1.test(name)) { var lowerCasedName = name.toLowerCase(); var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName @@ -5007,7 +5005,7 @@ function validateProperty(tagName, name) { // DOM properties, then it is an invalid aria-* attribute. if (standardName == null) { - warnedProperties[name] = true; + warnedProperties$1[name] = true; return false; } // aria-* attributes should be lowercase; suggest the lowercase version. @@ -5018,7 +5016,7 @@ function validateProperty(tagName, name) { standardName ); - warnedProperties[name] = true; + warnedProperties$1[name] = true; return true; } } @@ -5032,7 +5030,7 @@ function warnInvalidARIAProps(type, props) { var invalidProps = []; for (var key in props) { - var isValid = validateProperty(type, key); + var isValid = validateProperty$1(type, key); if (!isValid) { invalidProps.push(key); @@ -5063,7 +5061,7 @@ function warnInvalidARIAProps(type, props) { } } -function validateProperties(type, props) { +function validateProperties$2(type, props) { if (isCustomComponent(type, props)) { return; } @@ -5100,20 +5098,17 @@ function validateProperties$1(type, props) { } } -var validateProperty$1 = function () {}; +var validateProperty = function () {}; { - var warnedProperties$1 = {}; + var warnedProperties = {}; var EVENT_NAME_REGEX = /^on./; var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; - var rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); - var rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); + var rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); + var rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); - validateProperty$1 = function (tagName, name, value, eventRegistry) { - if ( - hasOwnProperty.call(warnedProperties$1, name) && - warnedProperties$1[name] - ) { + validateProperty = function (tagName, name, value, eventRegistry) { + if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) { return true; } @@ -5126,7 +5121,7 @@ var validateProperty$1 = function () {}; "are not needed/supported by React." ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } // We can't rely on the event system being injected on the server. @@ -5152,14 +5147,14 @@ var validateProperty$1 = function () {}; registrationName ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } if (EVENT_NAME_REGEX.test(name)) { error("Unknown event handler property `%s`. It will be ignored.", name); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } } else if (EVENT_NAME_REGEX.test(name)) { @@ -5174,11 +5169,11 @@ var validateProperty$1 = function () {}; ); } - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } // Let the ARIA attribute hook validate ARIA attributes - if (rARIA$1.test(name) || rARIACamel$1.test(name)) { + if (rARIA.test(name) || rARIACamel.test(name)) { return true; } @@ -5188,7 +5183,7 @@ var validateProperty$1 = function () {}; "For more information, lookup documentation on `dangerouslySetInnerHTML`." ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -5198,7 +5193,7 @@ var validateProperty$1 = function () {}; "Pass individual `aria-` attributes instead." ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -5214,7 +5209,7 @@ var validateProperty$1 = function () {}; typeof value ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -5225,7 +5220,7 @@ var validateProperty$1 = function () {}; name ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -5242,7 +5237,7 @@ var validateProperty$1 = function () {}; standardName ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } } else if (!isReserved && name !== lowerCasedName) { @@ -5258,7 +5253,7 @@ var validateProperty$1 = function () {}; lowerCasedName ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -5294,7 +5289,7 @@ var validateProperty$1 = function () {}; ); } - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } // Now that we've validated casing, do not validate // data types for reserved props @@ -5304,7 +5299,7 @@ var validateProperty$1 = function () {}; } // Warn when a known attribute is a bad type if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { - warnedProperties$1[name] = true; + warnedProperties[name] = true; return false; } // Warn when passing the strings 'false' or 'true' into a boolean prop @@ -5326,7 +5321,7 @@ var validateProperty$1 = function () {}; value ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -5339,7 +5334,7 @@ var warnUnknownProperties = function (type, props, eventRegistry) { var unknownProps = []; for (var key in props) { - var isValid = validateProperty$1(type, key, props[key], eventRegistry); + var isValid = validateProperty(type, key, props[key], eventRegistry); if (!isValid) { unknownProps.push(key); @@ -5372,7 +5367,7 @@ var warnUnknownProperties = function (type, props, eventRegistry) { } }; -function validateProperties$2(type, props, eventRegistry) { +function validateProperties(type, props, eventRegistry) { if (isCustomComponent(type, props)) { return; } @@ -5384,11 +5379,11 @@ var didWarnInvalidHydration = false; var didWarnScriptTags = false; var DANGEROUSLY_SET_INNER_HTML = "dangerouslySetInnerHTML"; var SUPPRESS_CONTENT_EDITABLE_WARNING = "suppressContentEditableWarning"; -var SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning"; +var SUPPRESS_HYDRATION_WARNING$1 = "suppressHydrationWarning"; var AUTOFOCUS = "autoFocus"; var CHILDREN = "children"; -var STYLE = "style"; -var HTML$1 = "__html"; +var STYLE$1 = "style"; +var HTML = "__html"; var warnedUnknownTags; var validatePropertiesInDevelopment; var warnForPropDifference; @@ -5410,9 +5405,9 @@ var normalizeHTML; }; validatePropertiesInDevelopment = function (type, props) { - validateProperties(type, props); + validateProperties$2(type, props); validateProperties$1(type, props); - validateProperties$2(type, props, { + validateProperties(type, props, { registrationNameDependencies: registrationNameDependencies, possibleRegistrationNames: possibleRegistrationNames }); @@ -5557,7 +5552,7 @@ function getOwnerDocumentFromRootContainer(rootContainerElement) { : rootContainerElement.ownerDocument; } -function noop() {} +function noop$1() {} function trapClickOnNonInteractiveElement(node) { // Mobile Safari does not fire properly bubble click events on @@ -5569,7 +5564,7 @@ function trapClickOnNonInteractiveElement(node) { // bookkeeping for it. Not sure if we need to clear it when the listener is // removed. // TODO: Only do this for the relevant Safaris maybe? - node.onclick = noop; + node.onclick = noop$1; } function setInitialDOMProperties( @@ -5585,7 +5580,7 @@ function setInitialDOMProperties( var nextProp = nextProps[propKey]; - if (propKey === STYLE) { + if (propKey === STYLE$1) { { if (nextProp) { // Freeze the next style object so that we can assume it won't be @@ -5596,7 +5591,7 @@ function setInitialDOMProperties( setValueForStyles(domElement, nextProp); } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { - var nextHtml = nextProp ? nextProp[HTML$1] : undefined; + var nextHtml = nextProp ? nextProp[HTML] : undefined; if (nextHtml != null) { setInnerHTML(domElement, nextHtml); @@ -5622,7 +5617,7 @@ function setInitialDOMProperties( } } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || - propKey === SUPPRESS_HYDRATION_WARNING + propKey === SUPPRESS_HYDRATION_WARNING$1 ); else if (propKey === AUTOFOCUS); else if (registrationNameDependencies.hasOwnProperty(propKey)) { @@ -5652,7 +5647,7 @@ function updateDOMProperties( var propKey = updatePayload[i]; var propValue = updatePayload[i + 1]; - if (propKey === STYLE) { + if (propKey === STYLE$1) { setValueForStyles(domElement, propValue); } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { setInnerHTML(domElement, propValue); @@ -5837,8 +5832,8 @@ function setInitialProperties(domElement, tag, rawProps) { break; case "input": - initWrapperState(domElement, rawProps); - props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble + initWrapperState$2(domElement, rawProps); + props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble // listeners still fire for the invalid event. listenToNonDelegatedEvent("invalid", domElement); @@ -5858,8 +5853,8 @@ function setInitialProperties(domElement, tag, rawProps) { break; case "textarea": - initWrapperState$2(domElement, rawProps); - props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble + initWrapperState(domElement, rawProps); + props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble // listeners still fire for the invalid event. listenToNonDelegatedEvent("invalid", domElement); @@ -5877,22 +5872,22 @@ function setInitialProperties(domElement, tag, rawProps) { // TODO: Make sure we check if this is still unmounted or do any clean // up necessary since we never stop tracking anymore. track(domElement); - postMountWrapper(domElement, rawProps, false); + postMountWrapper$3(domElement, rawProps, false); break; case "textarea": // TODO: Make sure we check if this is still unmounted or do any clean // up necessary since we never stop tracking anymore. track(domElement); - postMountWrapper$3(domElement); + postMountWrapper(domElement); break; case "option": - postMountWrapper$1(domElement, rawProps); + postMountWrapper$2(domElement, rawProps); break; case "select": - postMountWrapper$2(domElement, rawProps); + postMountWrapper$1(domElement, rawProps); break; default: @@ -5916,8 +5911,8 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { switch (tag) { case "input": - lastProps = getHostProps(domElement, lastRawProps); - nextProps = getHostProps(domElement, nextRawProps); + lastProps = getHostProps$2(domElement, lastRawProps); + nextProps = getHostProps$2(domElement, nextRawProps); updatePayload = []; break; @@ -5928,8 +5923,8 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { break; case "textarea": - lastProps = getHostProps$2(domElement, lastRawProps); - nextProps = getHostProps$2(domElement, nextRawProps); + lastProps = getHostProps(domElement, lastRawProps); + nextProps = getHostProps(domElement, nextRawProps); updatePayload = []; break; @@ -5962,7 +5957,7 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { continue; } - if (propKey === STYLE) { + if (propKey === STYLE$1) { var lastStyle = lastProps[propKey]; for (styleName in lastStyle) { @@ -5977,7 +5972,7 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN); else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || - propKey === SUPPRESS_HYDRATION_WARNING + propKey === SUPPRESS_HYDRATION_WARNING$1 ); else if (propKey === AUTOFOCUS); else if (registrationNameDependencies.hasOwnProperty(propKey)) { @@ -6006,7 +6001,7 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { continue; } - if (propKey === STYLE) { + if (propKey === STYLE$1) { { if (nextProp) { // Freeze the next style object so that we can assume it won't be @@ -6055,8 +6050,8 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { styleUpdates = nextProp; } } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { - var nextHtml = nextProp ? nextProp[HTML$1] : undefined; - var lastHtml = lastProp ? lastProp[HTML$1] : undefined; + var nextHtml = nextProp ? nextProp[HTML] : undefined; + var lastHtml = lastProp ? lastProp[HTML] : undefined; if (nextHtml != null) { if (lastHtml !== nextHtml) { @@ -6069,7 +6064,7 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { } } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || - propKey === SUPPRESS_HYDRATION_WARNING + propKey === SUPPRESS_HYDRATION_WARNING$1 ); else if (registrationNameDependencies.hasOwnProperty(propKey)) { if (nextProp != null) { @@ -6098,10 +6093,10 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { if (styleUpdates) { { - validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]); + validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE$1]); } - (updatePayload = updatePayload || []).push(STYLE, styleUpdates); + (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates); } return updatePayload; @@ -6141,11 +6136,11 @@ function updateProperties( // Update the wrapper around inputs *after* updating props. This has to // happen after `updateDOMProperties`. Otherwise HTML5 input validations // raise warnings and prevent the new value from being assigned. - updateWrapper(domElement, nextRawProps); + updateWrapper$1(domElement, nextRawProps); break; case "textarea": - updateWrapper$1(domElement, nextRawProps); + updateWrapper(domElement, nextRawProps); break; case "select": @@ -6230,7 +6225,7 @@ function diffHydratedProperties( break; case "input": - initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble + initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble // listeners still fire for the invalid event. listenToNonDelegatedEvent("invalid", domElement); @@ -6248,7 +6243,7 @@ function diffHydratedProperties( break; case "textarea": - initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble + initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble // listeners still fire for the invalid event. listenToNonDelegatedEvent("invalid", domElement); @@ -6305,7 +6300,7 @@ function diffHydratedProperties( // TODO: Should we use domElement.firstChild.nodeValue to compare? if (typeof nextProp === "string") { if (domElement.textContent !== nextProp) { - if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) { + if (rawProps[SUPPRESS_HYDRATION_WARNING$1] !== true) { checkForUnmatchedText( domElement.textContent, nextProp, @@ -6318,7 +6313,7 @@ function diffHydratedProperties( } } else if (typeof nextProp === "number") { if (domElement.textContent !== "" + nextProp) { - if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) { + if (rawProps[SUPPRESS_HYDRATION_WARNING$1] !== true) { checkForUnmatchedText( domElement.textContent, nextProp, @@ -6352,10 +6347,10 @@ function diffHydratedProperties( ? null : getPropertyInfo(propKey); - if (rawProps[SUPPRESS_HYDRATION_WARNING] === true); + if (rawProps[SUPPRESS_HYDRATION_WARNING$1] === true); else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || - propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated + propKey === SUPPRESS_HYDRATION_WARNING$1 || // Controlled attributes are not validated // TODO: Only ignore them on controlled tags. propKey === "value" || propKey === "checked" || @@ -6363,7 +6358,7 @@ function diffHydratedProperties( ); else if (propKey === DANGEROUSLY_SET_INNER_HTML) { var serverHTML = domElement.innerHTML; - var nextHtml = nextProp ? nextProp[HTML$1] : undefined; + var nextHtml = nextProp ? nextProp[HTML] : undefined; if (nextHtml != null) { var expectedHTML = normalizeHTML(domElement, nextHtml); @@ -6372,7 +6367,7 @@ function diffHydratedProperties( warnForPropDifference(propKey, serverHTML, expectedHTML); } } - } else if (propKey === STYLE) { + } else if (propKey === STYLE$1) { // $FlowFixMe - Should be inferred as not undefined. extraAttributeNames.delete(propKey); @@ -6494,7 +6489,7 @@ function diffHydratedProperties( if ( // $FlowFixMe - Should be inferred as not undefined. extraAttributeNames.size > 0 && - rawProps[SUPPRESS_HYDRATION_WARNING] !== true + rawProps[SUPPRESS_HYDRATION_WARNING$1] !== true ) { // $FlowFixMe - Should be inferred as not undefined. warnForExtraAttributes(extraAttributeNames); @@ -6507,14 +6502,14 @@ function diffHydratedProperties( // TODO: Make sure we check if this is still unmounted or do any clean // up necessary since we never stop tracking anymore. track(domElement); - postMountWrapper(domElement, rawProps, true); + postMountWrapper$3(domElement, rawProps, true); break; case "textarea": // TODO: Make sure we check if this is still unmounted or do any clean // up necessary since we never stop tracking anymore. track(domElement); - postMountWrapper$3(domElement); + postMountWrapper(domElement); break; case "select": @@ -6609,18 +6604,18 @@ function warnForInsertedHydratedText(parentNode, text) { ); } } -function restoreControlledState$3(domElement, tag, props) { +function restoreControlledState(domElement, tag, props) { switch (tag) { case "input": - restoreControlledState(domElement, props); + restoreControlledState$3(domElement, props); return; case "textarea": - restoreControlledState$2(domElement, props); + restoreControlledState$1(domElement, props); return; case "select": - restoreControlledState$1(domElement, props); + restoreControlledState$2(domElement, props); return; } } @@ -6890,7 +6885,7 @@ function isTextNode(node) { return node && node.nodeType === TEXT_NODE; } -function containsNode(outerNode, innerNode) { +function containsNode$1(outerNode, innerNode) { if (!outerNode || !innerNode) { return false; } else if (outerNode === innerNode) { @@ -6898,7 +6893,7 @@ function containsNode(outerNode, innerNode) { } else if (isTextNode(outerNode)) { return false; } else if (isTextNode(innerNode)) { - return containsNode(outerNode, innerNode.parentNode); + return containsNode$1(outerNode, innerNode.parentNode); } else if ("contains" in outerNode) { return outerNode.contains(innerNode); } else if (outerNode.compareDocumentPosition) { @@ -6912,7 +6907,7 @@ function isInDocument(node) { return ( node && node.ownerDocument && - containsNode(node.ownerDocument.documentElement, node) + containsNode$1(node.ownerDocument.documentElement, node) ); } @@ -6979,7 +6974,7 @@ function getSelectionInformation() { return { focusedElem: focusedElem, selectionRange: hasSelectionCapabilities(focusedElem) - ? getSelection(focusedElem) + ? getSelection$1(focusedElem) : null }; } @@ -7033,7 +7028,7 @@ function restoreSelection(priorSelectionInformation) { * -@return {start: selectionStart, end: selectionEnd} */ -function getSelection(input) { +function getSelection$1(input) { var selection; if ("selectionStart" in input) { @@ -7572,15 +7567,15 @@ var updatedAncestorInfoDev = function () {}; } // This module only exists as an ESM wrapper around the external CommonJS -var scheduleCallback = Scheduler.unstable_scheduleCallback; -var cancelCallback = Scheduler.unstable_cancelCallback; +var scheduleCallback$2 = Scheduler.unstable_scheduleCallback; +var cancelCallback$1 = Scheduler.unstable_cancelCallback; var shouldYield = Scheduler.unstable_shouldYield; var requestPaint = Scheduler.unstable_requestPaint; -var now = Scheduler.unstable_now; +var now$1 = Scheduler.unstable_now; var getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel; var ImmediatePriority = Scheduler.unstable_ImmediatePriority; var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority; -var NormalPriority = Scheduler.unstable_NormalPriority; +var NormalPriority$1 = Scheduler.unstable_NormalPriority; var LowPriority = Scheduler.unstable_LowPriority; var IdlePriority = Scheduler.unstable_IdlePriority; // this doesn't actually exist on the scheduler, but it *does* // on scheduler/unstable_mock, which we'll need for internal testing @@ -7667,7 +7662,7 @@ function onScheduleRoot(root, children) { } } } -function onCommitRoot(root, eventPriority) { +function onCommitRoot$1(root, eventPriority) { if (injectedHook && typeof injectedHook.onCommitFiberRoot === "function") { try { var didError = (root.current.flags & DidCapture) === DidCapture; @@ -7685,7 +7680,7 @@ function onCommitRoot(root, eventPriority) { break; case DefaultEventPriority: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; break; case IdleEventPriority: @@ -7693,7 +7688,7 @@ function onCommitRoot(root, eventPriority) { break; default: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; break; } @@ -7703,8 +7698,6 @@ function onCommitRoot(root, eventPriority) { schedulerPriority, didError ); - } else { - injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError); } } catch (err) { { @@ -8074,7 +8067,7 @@ var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. // Based on: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32 -var log = Math.log; +var log$1 = Math.log; var LN2 = Math.LN2; function clz32Fallback(x) { @@ -8084,7 +8077,7 @@ function clz32Fallback(x) { return 32; } - return (31 - ((log(asUint) / LN2) | 0)) | 0; + return (31 - ((log$1(asUint) / LN2) | 0)) | 0; } // If those values are changed that package should be rebuilt and redeployed. @@ -8744,7 +8737,7 @@ function markRootUpdated(root, updateLane, eventTime) { eventTimes[index] = eventTime; } -function markRootSuspended(root, suspendedLanes) { +function markRootSuspended$1(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times. @@ -9021,7 +9014,7 @@ var ContinuousEventPriority = InputContinuousLane; var DefaultEventPriority = DefaultLane; var IdleEventPriority = IdleLane; var currentUpdatePriority = NoLane; -function getCurrentUpdatePriority() { +function getCurrentUpdatePriority$1() { return currentUpdatePriority; } function setCurrentUpdatePriority(newPriority) { @@ -9305,7 +9298,7 @@ function push(cursor, value, fiber) { cursor.current = value; } -var contextStackCursor = createCursor(null); +var contextStackCursor$1 = createCursor(null); var contextFiberStackCursor = createCursor(null); var rootInstanceStackCursor = createCursor(null); @@ -9343,26 +9336,26 @@ function pushHostContainer(fiber, nextRootInstance) { // whether getRootHostContext() throws somewhere in renderer code or not. // So we push an empty value first. This lets us safely unwind on errors. - push(contextStackCursor, null, fiber); + push(contextStackCursor$1, null, fiber); var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it. - pop(contextStackCursor, fiber); - push(contextStackCursor, nextRootContext, fiber); + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, nextRootContext, fiber); } function popHostContainer(fiber) { - pop(contextStackCursor, fiber); + pop(contextStackCursor$1, fiber); pop(contextFiberStackCursor, fiber); pop(rootInstanceStackCursor, fiber); } function getHostContext() { - var context = requiredContext(contextStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); return context; } function pushHostContext(fiber) { - var context = requiredContext(contextStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique. if (context === nextContext) { @@ -9371,7 +9364,7 @@ function pushHostContext(fiber) { // This enables us to pop only Fibers that provide unique contexts. push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor, nextContext, fiber); + push(contextStackCursor$1, nextContext, fiber); } function popHostContext(fiber) { @@ -9381,11 +9374,11 @@ function popHostContext(fiber) { return; } - pop(contextStackCursor, fiber); + pop(contextStackCursor$1, fiber); pop(contextFiberStackCursor, fiber); } -var Dispatcher = Internals.Dispatcher; +var Dispatcher$1 = Internals.Dispatcher; // In the future this may need to change, especially when modules / scripts are supported // It is valid to preload even when we aren't actively rendering. For cases where Float functions are // called when there is no rendering we track the last used document. It is not safe to insert @@ -9399,19 +9392,19 @@ var previousDispatcher = null; function prepareToRenderResources(rootContainer) { var rootNode = getHoistableRoot(rootContainer); lastCurrentDocument = getDocumentFromRoot(rootNode); - previousDispatcher = Dispatcher.current; - Dispatcher.current = ReactDOMClientDispatcher; + previousDispatcher = Dispatcher$1.current; + Dispatcher$1.current = ReactDOMClientDispatcher; } function cleanupAfterRenderResources() { - Dispatcher.current = previousDispatcher; + Dispatcher$1.current = previousDispatcher; previousDispatcher = null; } // We want this to be the default dispatcher on ReactDOMSharedInternals but we don't want to mutate // internals in Module scope. Instead we export it and Internals will import it. There is already a cycle // from Internals -> ReactDOM -> FloatClient -> Internals so this doesn't introduce a new one. var ReactDOMClientDispatcher = { - preload: preload, - preinit: preinit + preload: preload$1, + preinit: preinit$1 }; // global maps of Resources var preloadPropsMap = new Map(); // getRootNode is missing from IE and old jsdom versions @@ -9455,7 +9448,7 @@ function getDocumentFromRoot(root) { // ReactDOM.Preload // -------------------------------------- -function preload(href, options) { +function preload$1(href, options) { { validatePreloadArguments(href, options); } @@ -9517,7 +9510,7 @@ function preloadPropsFromPreloadOptions(href, as, options) { // ReactDOM.preinit // -------------------------------------- -function preinit(href, options) { +function preinit$1(href, options) { { validatePreinitArguments(href, options); } @@ -10310,12 +10303,12 @@ function escapeSelectorAttributeValueInsideDoubleQuotes(value) { ); } -var SUPPRESS_HYDRATION_WARNING$1 = "suppressHydrationWarning"; +var SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning"; var SUSPENSE_START_DATA = "$"; var SUSPENSE_END_DATA = "/$"; var SUSPENSE_PENDING_START_DATA = "$?"; var SUSPENSE_FALLBACK_START_DATA = "$!"; -var STYLE$1 = "style"; +var STYLE = "style"; var eventsEnabled = null; var selectionInformation = null; function getRootHostContext(rootContainerInstance) { @@ -10553,7 +10546,7 @@ var localRequestAnimationFrame = typeof requestAnimationFrame === "function" ? requestAnimationFrame : scheduleTimeout; -function getInstanceFromNode(node) { +function getInstanceFromNode$1(node) { return getClosestInstanceFromNode(node) || null; } function preparePortalMount(portalInstance) { @@ -10757,7 +10750,7 @@ function clearSuspenseBoundaryFromContainer(container, suspenseInstance) { clearSuspenseBoundary(container.parentNode, suspenseInstance); } else if (container.nodeType === ELEMENT_NODE) { clearSuspenseBoundary(container, suspenseInstance); - } // Retry if any event replaying was blocked on this. + } else; // Retry if any event replaying was blocked on this. retryIfBlockedOn(container); } @@ -10778,7 +10771,7 @@ function hideTextInstance(textInstance) { } function unhideInstance(instance, props) { instance = instance; - var styleProp = props[STYLE$1]; + var styleProp = props[STYLE]; var display = styleProp !== undefined && styleProp !== null && @@ -11073,10 +11066,6 @@ function hydrateTextInstance( shouldWarnDev ) { precacheFiberNode(internalInstanceHandle, textInstance); // TODO: Temporary hack to check if we're in a concurrent root. We can delete - // when the legacy root API is removed. - - var isConcurrentMode = - (internalInstanceHandle.mode & ConcurrentMode) !== NoMode; return diffHydratedText(textInstance, text); } function hydrateSuspenseInstance(suspenseInstance, internalInstanceHandle) { @@ -11178,7 +11167,7 @@ function didNotMatchHydratedTextInstance( isConcurrentMode, shouldWarnDev ) { - if (parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) { + if (parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { checkForUnmatchedText( textInstance.nodeValue, text, @@ -11220,10 +11209,7 @@ function didNotHydrateInstance( isConcurrentMode ) { { - if ( - isConcurrentMode || - parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true - ) { + if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { if (instance.nodeType === ELEMENT_NODE) { warnForDeletedHydratableElement(parentInstance, instance); } else if (instance.nodeType === COMMENT_NODE); @@ -11280,10 +11266,7 @@ function didNotFindHydratableInstance( isConcurrentMode ) { { - if ( - isConcurrentMode || - parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true - ) { + if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { warnForInsertedHydratedElement(parentInstance, type); } } @@ -11296,10 +11279,7 @@ function didNotFindHydratableTextInstance( isConcurrentMode ) { { - if ( - isConcurrentMode || - parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true - ) { + if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { warnForInsertedHydratedText(parentInstance, text); } } @@ -11571,7 +11551,7 @@ function acquireSingletonInstance( internalInstanceHandle ) { { - var currentInstanceHandle = getInstanceFromNode$1(instance); + var currentInstanceHandle = getInstanceFromNode(instance); if (currentInstanceHandle) { var tagName = instance.tagName.toLowerCase(); @@ -11773,7 +11753,7 @@ function getClosestInstanceFromNode(targetNode) { * instance, or null if the node was not rendered by this React. */ -function getInstanceFromNode$1(node) { +function getInstanceFromNode(node) { var inst = node[internalInstanceKey] || node[internalContainerInstanceKey]; if (inst) { @@ -11887,7 +11867,7 @@ var restoreQueue = null; function restoreStateOfTarget(target) { // We perform this translation at the end of the event loop so that we // always receive the correct fiber here - var internalInstance = getInstanceFromNode$1(target); + var internalInstance = getInstanceFromNode(target); if (!internalInstance) { // Unmounted @@ -11976,7 +11956,7 @@ function finishEventHandler() { } } -function batchedUpdates(fn, a, b) { +function batchedUpdates$1(fn, a, b) { if (isInsideEventHandler) { // If we are currently inside another batch, we need to wait until it // fully completes before restoring state. @@ -12918,7 +12898,7 @@ var useFallbackCompositionData = var SPACEBAR_CODE = 32; var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); -function registerEvents() { +function registerEvents$3() { registerTwoPhaseEvent("onBeforeInput", [ "compositionend", "keypress", @@ -13302,7 +13282,7 @@ function extractBeforeInputEvent( * `composition` event types. */ -function extractEvents( +function extractEvents$5( dispatchQueue, domEventName, targetInst, @@ -13393,7 +13373,7 @@ function isEventSupported(eventNameSuffix) { return isSupported; } -function registerEvents$1() { +function registerEvents$2() { registerTwoPhaseEvent("onChange", [ "change", "click", @@ -13434,8 +13414,8 @@ function createAndAccumulateChangeEvent( * For IE shims */ -var activeElement = null; -var activeElementInst = null; +var activeElement$1 = null; +var activeElementInst$1 = null; /** * SECTION: handle `change` event */ @@ -13451,7 +13431,7 @@ function manualDispatchChangeEvent(nativeEvent) { var dispatchQueue = []; createAndAccumulateChangeEvent( dispatchQueue, - activeElementInst, + activeElementInst$1, nativeEvent, getEventTarget(nativeEvent) ); // If change and propertychange bubbled, we'd just bind to it like all the @@ -13466,7 +13446,7 @@ function manualDispatchChangeEvent(nativeEvent) { // the component is rerendered and the value reverted before all the event // handlers can run. See https://github.com/facebook/react/issues/708. - batchedUpdates(runEventInBatch, dispatchQueue); + batchedUpdates$1(runEventInBatch, dispatchQueue); } function runEventInBatch(dispatchQueue) { @@ -13506,9 +13486,9 @@ if (canUseDOM) { */ function startWatchingForValueChange(target, targetInst) { - activeElement = target; - activeElementInst = targetInst; - activeElement.attachEvent("onpropertychange", handlePropertyChange); + activeElement$1 = target; + activeElementInst$1 = targetInst; + activeElement$1.attachEvent("onpropertychange", handlePropertyChange); } /** * (For IE <=9) Removes the event listeners from the currently-tracked element, @@ -13516,13 +13496,13 @@ function startWatchingForValueChange(target, targetInst) { */ function stopWatchingForValueChange() { - if (!activeElement) { + if (!activeElement$1) { return; } - activeElement.detachEvent("onpropertychange", handlePropertyChange); - activeElement = null; - activeElementInst = null; + activeElement$1.detachEvent("onpropertychange", handlePropertyChange); + activeElement$1 = null; + activeElementInst$1 = null; } /** * (For IE <=9) Handles a propertychange event, sending a `change` event if @@ -13535,7 +13515,7 @@ function handlePropertyChange(nativeEvent) { return; } - if (getInstIfValueChanged(activeElementInst)) { + if (getInstIfValueChanged(activeElementInst$1)) { manualDispatchChangeEvent(nativeEvent); } } @@ -13575,7 +13555,7 @@ function getTargetInstForInputEventPolyfill(domEventName, targetInst) { // keystroke if user does a key repeat (it'll be a little delayed: right // before the second keystroke). Other input methods (e.g., paste) seem to // fire selectionchange normally. - return getInstIfValueChanged(activeElementInst); + return getInstIfValueChanged(activeElementInst$1); } } /** @@ -13629,7 +13609,7 @@ function handleControlledInputBlur(node) { * - select */ -function extractEvents$1( +function extractEvents$4( dispatchQueue, domEventName, targetInst, @@ -13683,7 +13663,7 @@ function extractEvents$1( } } -function registerEvents$2() { +function registerEvents$1() { registerDirectEvent("onMouseEnter", ["mouseout", "mouseover"]); registerDirectEvent("onMouseLeave", ["mouseout", "mouseover"]); registerDirectEvent("onPointerEnter", ["pointerout", "pointerover"]); @@ -13697,7 +13677,7 @@ function registerEvents$2() { * the `mouseover` top-level event. */ -function extractEvents$2( +function extractEvents$3( dispatchQueue, domEventName, targetInst, @@ -13881,7 +13861,7 @@ function shallowEqual(objA, objB) { var skipSelectionChangeEvent = canUseDOM && "documentMode" in document && document.documentMode <= 11; -function registerEvents$3() { +function registerEvents() { registerTwoPhaseEvent("onSelect", [ "focusout", "contextmenu", @@ -13895,8 +13875,8 @@ function registerEvents$3() { ]); } -var activeElement$1 = null; -var activeElementInst$1 = null; +var activeElement = null; +var activeElementInst = null; var lastSelection = null; var mouseDown = false; /** @@ -13906,7 +13886,7 @@ var mouseDown = false; * two identical selections on the same node will return identical objects. */ -function getSelection$1(node) { +function getSelection(node) { if ("selectionStart" in node && hasSelectionCapabilities(node)) { return { start: node.selectionStart, @@ -13951,20 +13931,17 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { if ( mouseDown || - activeElement$1 == null || - activeElement$1 !== getActiveElement(doc) + activeElement == null || + activeElement !== getActiveElement(doc) ) { return; } // Only fire when selection has actually changed. - var currentSelection = getSelection$1(activeElement$1); + var currentSelection = getSelection(activeElement); if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { lastSelection = currentSelection; - var listeners = accumulateTwoPhaseListeners( - activeElementInst$1, - "onSelect" - ); + var listeners = accumulateTwoPhaseListeners(activeElementInst, "onSelect"); if (listeners.length > 0) { var event = new SyntheticEvent( @@ -13978,7 +13955,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { event: event, listeners: listeners }); - event.target = activeElement$1; + event.target = activeElement; } } } @@ -13997,7 +13974,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { * - Fires after user input. */ -function extractEvents$3( +function extractEvents$2( dispatchQueue, domEventName, targetInst, @@ -14015,16 +13992,16 @@ function extractEvents$3( isTextInputElement(targetNode) || targetNode.contentEditable === "true" ) { - activeElement$1 = targetNode; - activeElementInst$1 = targetInst; + activeElement = targetNode; + activeElementInst = targetInst; lastSelection = null; } break; case "focusout": - activeElement$1 = null; - activeElementInst$1 = null; + activeElement = null; + activeElementInst = null; lastSelection = null; break; // Don't fire the event while the user is dragging. This matches the @@ -14189,7 +14166,7 @@ function registerSimpleEvents() { registerSimpleEvent(TRANSITION_END, "onTransitionEnd"); } -function extractEvents$4( +function extractEvents$1( dispatchQueue, domEventName, targetInst, @@ -14380,12 +14357,12 @@ function extractEvents$4( } registerSimpleEvents(); -registerEvents$2(); registerEvents$1(); -registerEvents$3(); +registerEvents$2(); registerEvents(); +registerEvents$3(); -function extractEvents$5( +function extractEvents( dispatchQueue, domEventName, targetInst, @@ -14400,7 +14377,7 @@ function extractEvents$5( // should probably be inlined somewhere and have its logic // be core the to event system. This would potentially allow // us to ship builds of React without the polyfilled plugins below. - extractEvents$4( + extractEvents$1( dispatchQueue, domEventName, targetInst, @@ -14429,28 +14406,28 @@ function extractEvents$5( // can't foresee right now. if (shouldProcessPolyfillPlugins) { - extractEvents$2( + extractEvents$3( dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget ); - extractEvents$1( + extractEvents$4( dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget ); - extractEvents$3( + extractEvents$2( dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget ); - extractEvents( + extractEvents$5( dispatchQueue, domEventName, targetInst, @@ -14562,7 +14539,7 @@ function dispatchEventsForPlugins( ) { var nativeEventTarget = getEventTarget(nativeEvent); var dispatchQueue = []; - extractEvents$5( + extractEvents( dispatchQueue, domEventName, targetInst, @@ -14919,7 +14896,7 @@ function dispatchEventForPluginEventSystem( } } - batchedUpdates(function () { + batchedUpdates$1(function () { return dispatchEventsForPlugins( domEventName, eventSystemFlags, @@ -15296,24 +15273,24 @@ var _attemptSynchronousHydration; function setAttemptSynchronousHydration(fn) { _attemptSynchronousHydration = fn; } -function attemptSynchronousHydration(fiber) { +function attemptSynchronousHydration$1(fiber) { _attemptSynchronousHydration(fiber); } -var attemptDiscreteHydration; +var attemptDiscreteHydration$1; function setAttemptDiscreteHydration(fn) { - attemptDiscreteHydration = fn; + attemptDiscreteHydration$1 = fn; } -var attemptContinuousHydration; +var attemptContinuousHydration$1; function setAttemptContinuousHydration(fn) { - attemptContinuousHydration = fn; + attemptContinuousHydration$1 = fn; } -var attemptHydrationAtCurrentPriority; +var attemptHydrationAtCurrentPriority$1; function setAttemptHydrationAtCurrentPriority(fn) { - attemptHydrationAtCurrentPriority = fn; + attemptHydrationAtCurrentPriority$1 = fn; } -var getCurrentUpdatePriority$1; +var getCurrentUpdatePriority; function setGetCurrentUpdatePriority(fn) { - getCurrentUpdatePriority$1 = fn; + getCurrentUpdatePriority = fn; } var attemptHydrationAtPriority; function setAttemptHydrationAtPriority(fn) { @@ -15411,13 +15388,13 @@ function queueDiscreteEvent( // If this was the first discrete event, we might be able to // synchronously unblock it so that preventDefault still works. while (queuedEvent.blockedOn !== null) { - var fiber = getInstanceFromNode$1(queuedEvent.blockedOn); + var fiber = getInstanceFromNode(queuedEvent.blockedOn); if (fiber === null) { break; } - attemptSynchronousHydration(fiber); + attemptSynchronousHydration$1(fiber); if (queuedEvent.blockedOn === null) { // We got unblocked by hydration. Let's try again. @@ -15488,11 +15465,11 @@ function accumulateOrCreateContinuousQueuedReplayableEvent( ); if (blockedOn !== null) { - var fiber = getInstanceFromNode$1(blockedOn); + var fiber = getInstanceFromNode(blockedOn); if (fiber !== null) { // Attempt to increase the priority of this target. - attemptContinuousHydration(fiber); + attemptContinuousHydration$1(fiber); } } @@ -15623,7 +15600,7 @@ function attemptExplicitHydrationTarget(queuedTarget) { // Increase its priority. queuedTarget.blockedOn = instance; attemptHydrationAtPriority(queuedTarget.priority, function () { - attemptHydrationAtCurrentPriority(nearestMounted); + attemptHydrationAtCurrentPriority$1(nearestMounted); }); return; } @@ -15647,7 +15624,7 @@ function queueExplicitHydrationTarget(target) { // TODO: This will read the priority if it's dispatched by the React // event system but not native events. Should read window.event.type, like // we do for updates (getCurrentEventPriority). - var updatePriority = getCurrentUpdatePriority$1(); + var updatePriority = getCurrentUpdatePriority(); var queuedTarget = { blockedOn: null, target: target, @@ -15713,10 +15690,10 @@ function attemptReplayContinuousQueuedEvent(queuedEvent) { } } else { // We're still blocked. Try again later. - var fiber = getInstanceFromNode$1(nextBlockedOn); + var fiber = getInstanceFromNode(nextBlockedOn); if (fiber !== null) { - attemptContinuousHydration(fiber); + attemptContinuousHydration$1(fiber); } queuedEvent.blockedOn = nextBlockedOn; @@ -15747,10 +15724,10 @@ function replayUnblockedEvents() { // We're still blocked. // Increase the priority of this boundary to unblock // the next discrete event. - var fiber = getInstanceFromNode$1(nextDiscreteEvent.blockedOn); + var fiber = getInstanceFromNode(nextDiscreteEvent.blockedOn); if (fiber !== null) { - attemptDiscreteHydration(fiber); + attemptDiscreteHydration$1(fiber); } break; @@ -15889,7 +15866,7 @@ function retryIfBlockedOn(unblocked) { } } -var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; // TODO: can we stop exporting these? +var ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig; // TODO: can we stop exporting these? var _enabled = true; // This is exported in FB builds for use by legacy FB layer infra. // We'd like to remove this but it's not clear if this is safe. @@ -15937,16 +15914,16 @@ function dispatchDiscreteEvent( container, nativeEvent ) { - var previousPriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + var previousPriority = getCurrentUpdatePriority$1(); + var prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { setCurrentUpdatePriority(DiscreteEventPriority); dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig.transition = prevTransition; + ReactCurrentBatchConfig$3.transition = prevTransition; } } @@ -15956,16 +15933,16 @@ function dispatchContinuousEvent( container, nativeEvent ) { - var previousPriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + var previousPriority = getCurrentUpdatePriority$1(); + var prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { setCurrentUpdatePriority(ContinuousEventPriority); dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig.transition = prevTransition; + ReactCurrentBatchConfig$3.transition = prevTransition; } } @@ -16135,10 +16112,10 @@ function dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEve isDiscreteEventThatRequiresHydration(domEventName) ) { while (blockedOn !== null) { - var fiber = getInstanceFromNode$1(blockedOn); + var fiber = getInstanceFromNode(blockedOn); if (fiber !== null) { - attemptSynchronousHydration(fiber); + attemptSynchronousHydration$1(fiber); } var nextBlockedOn = findInstanceBlockingEvent( @@ -16341,7 +16318,7 @@ function getEventPriority(domEventName) { case UserBlockingPriority: return ContinuousEventPriority; - case NormalPriority: + case NormalPriority$1: case LowPriority: // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration. return DefaultEventPriority; @@ -16360,7 +16337,7 @@ function getEventPriority(domEventName) { } var loggedTypeFailures = {}; -var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; function setCurrentlyValidatingElement(element) { { @@ -16371,9 +16348,9 @@ function setCurrentlyValidatingElement(element) { element._source, owner ? owner.type : null ); - ReactDebugCurrentFrame$1.setExtraStackFrame(stack); + ReactDebugCurrentFrame.setExtraStackFrame(stack); } else { - ReactDebugCurrentFrame$1.setExtraStackFrame(null); + ReactDebugCurrentFrame.setExtraStackFrame(null); } } } @@ -16471,7 +16448,7 @@ var emptyContextObject = {}; Object.freeze(emptyContextObject); } // A cursor to the current merged context object on the stack. -var contextStackCursor$1 = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed. +var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed. var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack. // We use this to get access to the parent context after we have already @@ -16493,7 +16470,7 @@ function getUnmaskedContext( return previousContext; } - return contextStackCursor$1.current; + return contextStackCursor.current; } } @@ -16561,27 +16538,27 @@ function isContextProvider(type) { function popContext(fiber) { { pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor$1, fiber); + pop(contextStackCursor, fiber); } } function popTopLevelContextObject(fiber) { { pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor$1, fiber); + pop(contextStackCursor, fiber); } } function pushTopLevelContextObject(fiber, context, didChange) { { - if (contextStackCursor$1.current !== emptyContextObject) { + if (contextStackCursor.current !== emptyContextObject) { throw new Error( "Unexpected context found on stack. " + "This error is likely caused by a bug in React. Please file an issue." ); } - push(contextStackCursor$1, context, fiber); + push(contextStackCursor, context, fiber); push(didPerformWorkStackCursor, didChange, fiber); } } @@ -16645,8 +16622,8 @@ function pushContextProvider(workInProgress) { emptyContextObject; // Remember the parent context so we can merge with it later. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates. - previousContext = contextStackCursor$1.current; - push(contextStackCursor$1, memoizedMergedChildContext, workInProgress); + previousContext = contextStackCursor.current; + push(contextStackCursor, memoizedMergedChildContext, workInProgress); push( didPerformWorkStackCursor, didPerformWorkStackCursor.current, @@ -16680,9 +16657,9 @@ function invalidateContextProvider(workInProgress, type, didChange) { // It is important to unwind the context in the reverse order. pop(didPerformWorkStackCursor, workInProgress); - pop(contextStackCursor$1, workInProgress); // Now push the new context and mark that it has changed. + pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed. - push(contextStackCursor$1, mergedContext, workInProgress); + push(contextStackCursor, mergedContext, workInProgress); push(didPerformWorkStackCursor, didChange, workInProgress); } else { pop(didPerformWorkStackCursor, workInProgress); @@ -16784,7 +16761,7 @@ function flushSyncCallbacks() { // Prevent re-entrance. isFlushingSyncQueue = true; var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority(); + var previousUpdatePriority = getCurrentUpdatePriority$1(); try { var isSync = true; @@ -16811,7 +16788,7 @@ function flushSyncCallbacks() { syncQueue = syncQueue.slice(i + 1); } // Resume flushing in the next tick - scheduleCallback(ImmediatePriority, flushSyncCallbacks); + scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); throw error; } finally { setCurrentUpdatePriority(previousUpdatePriority); @@ -16844,7 +16821,7 @@ function group() { if (nativeConsoleLog === null) { nativeConsoleLog = nativeConsole.log; - nativeConsole.log = log$1; + nativeConsole.log = log; } } @@ -16862,7 +16839,7 @@ function groupEnd() { } } -function log$1() { +function log() { if (printedGroupIndex < pendingGroupArgs.length - 1) { for (var i = printedGroupIndex + 1; i < pendingGroupArgs.length; i++) { var groupArgs = pendingGroupArgs[i]; @@ -16918,7 +16895,7 @@ function logComponentSuspended(componentName, wakeable) { if (enableDebugTracing) { var id = getWakeableID(wakeable); var display = wakeable.displayName || wakeable; - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " suspended", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -16927,7 +16904,7 @@ function logComponentSuspended(componentName, wakeable) { ); wakeable.then( function () { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " resolved", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -16936,7 +16913,7 @@ function logComponentSuspended(componentName, wakeable) { ); }, function () { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " rejected", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -17008,7 +16985,7 @@ function logRenderStopped() { function logForceUpdateScheduled(componentName, lane) { { if (enableDebugTracing) { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " forced update %c(" + @@ -17024,7 +17001,7 @@ function logForceUpdateScheduled(componentName, lane) { function logStateUpdateScheduled(componentName, lane, payloadOrAction) { { if (enableDebugTracing) { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " updated state %c(" + @@ -17054,7 +17031,7 @@ var treeContextId = 1; var treeContextOverflow = ""; function isForkedChild(workInProgress) { warnIfNotHydrating(); - return (workInProgress.flags & Forked) !== NoFlags; + return (workInProgress.flags & Forked) !== NoFlags$1; } function getForksAtLevel(workInProgress) { warnIfNotHydrating(); @@ -17352,7 +17329,6 @@ function warnNonhydratedInstance(returnFiber, fiber) { case HostSingleton: case HostComponent: var type = fiber.type; - var props = fiber.pendingProps; didNotFindHydratableInstanceWithinContainer(parentContainer, type); break; @@ -17420,7 +17396,6 @@ function warnNonhydratedInstance(returnFiber, fiber) { case HostSingleton: case HostComponent: var _type2 = fiber.type; - var _props2 = fiber.pendingProps; didNotFindHydratableInstanceWithinSuspenseInstance( _parentInstance, _type2 @@ -17455,7 +17430,6 @@ function tryHydrate(fiber, nextInstance) { // you can find it inlined in claimHydratableSingleton case HostComponent: { var type = fiber.type; - var props = fiber.pendingProps; var instance = canHydrateInstance(nextInstance, type); if (instance !== null) { @@ -17519,7 +17493,7 @@ function tryHydrate(fiber, nextInstance) { function shouldClientRenderOnMismatch(fiber) { return ( (fiber.mode & ConcurrentMode) !== NoMode && - (fiber.flags & DidCapture) === NoFlags + (fiber.flags & DidCapture) === NoFlags$1 ); } @@ -17876,7 +17850,7 @@ function getConcurrentlyUpdatedLanes() { return concurrentlyUpdatedLanes; } -function enqueueUpdate(fiber, queue, update, lane) { +function enqueueUpdate$1(fiber, queue, update, lane) { // Don't update the `childLanes` on the return path yet. If we already in // the middle of rendering, wait until after it has completed. concurrentQueues[concurrentQueuesIndex++] = fiber; @@ -17898,7 +17872,7 @@ function enqueueUpdate(fiber, queue, update, lane) { function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); return getRootForUpdatedFiber(fiber); } function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { @@ -17908,7 +17882,7 @@ function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { var lane = NoLane; var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); // Usually we can rely on the upcoming render phase to process the concurrent + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); // Usually we can rely on the upcoming render phase to process the concurrent // queue. However, since this is a bail out, we're not scheduling any work // here. So the update we just queued will leak until something else happens // to schedule work (if ever). @@ -17925,11 +17899,11 @@ function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { function enqueueConcurrentClassUpdate(fiber, queue, update, lane) { var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); return getRootForUpdatedFiber(fiber); } function enqueueConcurrentRenderForLane(fiber, lane) { - enqueueUpdate(fiber, null, null, lane); + enqueueUpdate$1(fiber, null, null, lane); return getRootForUpdatedFiber(fiber); } // Calling this function outside this module should only be done for backwards // compatibility and should always be accompanied by a warning. @@ -18037,7 +18011,7 @@ function detectUpdateOnUnmountedFiber(sourceFiber, parent) { if ( alternate === null && - (parent.flags & (Placement | Hydrating)) !== NoFlags + (parent.flags & (Placement | Hydrating)) !== NoFlags$1 ) { warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); } @@ -18101,7 +18075,7 @@ function createUpdate(eventTime, lane) { }; return update; } -function enqueueUpdate$1(fiber, update, lane) { +function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (updateQueue === null) { @@ -20536,7 +20510,7 @@ function findFirstSuspended(row) { // keep track of whether it suspended or not. node.memoizedProps.revealOrder !== undefined ) { - var didSuspend = (node.flags & DidCapture) !== NoFlags; + var didSuspend = (node.flags & DidCapture) !== NoFlags$1; if (didSuspend) { return node; @@ -20566,7 +20540,7 @@ function findFirstSuspended(row) { return null; } -var NoFlags$1 = +var NoFlags = /* */ 0; // Represents whether effect should fire. @@ -20580,7 +20554,7 @@ var Insertion = var Layout = /* */ 4; -var Passive$1 = +var Passive = /* */ 8; @@ -20588,11 +20562,11 @@ var Passive$1 = // This tracks which mutable sources need to be reset after a render. var workInProgressSources = []; -var rendererSigil; +var rendererSigil$1; { // Used to detect multiple renderers using the same mutable source. - rendererSigil = {}; + rendererSigil$1 = {}; } function markSourceAsDirty(mutableSource) { @@ -20625,8 +20599,8 @@ function warnAboutMultipleRenderersDEV(mutableSource) { { { if (mutableSource._currentPrimaryRenderer == null) { - mutableSource._currentPrimaryRenderer = rendererSigil; - } else if (mutableSource._currentPrimaryRenderer !== rendererSigil) { + mutableSource._currentPrimaryRenderer = rendererSigil$1; + } else if (mutableSource._currentPrimaryRenderer !== rendererSigil$1) { error( "Detected multiple renderers concurrently rendering the " + "same mutable source. This is currently unsupported." @@ -20651,7 +20625,7 @@ function registerMutableSourceForHydration(root, mutableSource) { } } -var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; // An error that is thrown (e.g. by `use`) to trigger Suspense. If we +var ReactCurrentActQueue$2 = ReactSharedInternals.ReactCurrentActQueue; // An error that is thrown (e.g. by `use`) to trigger Suspense. If we // detect this is caught by userspace, we'll log a warning in development. var SuspenseException = new Error( @@ -20673,11 +20647,11 @@ function isThenableResolved(thenable) { return status === "fulfilled" || status === "rejected"; } -function noop$1() {} +function noop() {} function trackUsedThenable(thenableState, thenable, index) { - if (ReactCurrentActQueue.current !== null) { - ReactCurrentActQueue.didUsePromise = true; + if (ReactCurrentActQueue$2.current !== null) { + ReactCurrentActQueue$2.didUsePromise = true; } var previous = thenableState[index]; @@ -20690,7 +20664,7 @@ function trackUsedThenable(thenableState, thenable, index) { // they represent the same value, because components are idempotent. // Avoid an unhandled rejection errors for the Promises that we'll // intentionally ignore. - thenable.then(noop$1, noop$1); + thenable.then(noop, noop); thenable = previous; } } // We use an expando to track the status and result of a thenable so that we @@ -20718,7 +20692,7 @@ function trackUsedThenable(thenableState, thenable, index) { // some custom userspace implementation. We treat it as "pending". // Attach a dummy listener, to ensure that any lazy initialization can // happen. Flight lazily parses JSON when the value is actually awaited. - thenable.then(noop$1, noop$1); + thenable.then(noop, noop); } else { var pendingThenable = thenable; pendingThenable.status = "pending"; @@ -20809,7 +20783,7 @@ function checkIfUseWrappedInTryCatch() { } var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig; + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig; var didWarnAboutMismatchedHooksForComponent; var didWarnUncachedGetSnapshot; var didWarnAboutUseWrappedInTryCatch; @@ -20819,10 +20793,10 @@ var didWarnAboutUseWrappedInTryCatch; didWarnAboutUseWrappedInTryCatch = new Set(); } // These are set right before calling the component. -var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from +var renderLanes$1 = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from // the work-in-progress hook. -var currentlyRenderingFiber = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The +var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The // current hook list is the list that belongs to the current fiber. The // work-in-progress hook list is a new list that will be added to the // work-in-progress fiber. @@ -20905,7 +20879,7 @@ function checkDepsAreArrayDev(deps) { function warnOnHookMismatchInDev(currentHookName) { { - var componentName = getComponentNameFromFiber(currentlyRenderingFiber); + var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1); if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { didWarnAboutMismatchedHooksForComponent.add(componentName); @@ -21013,8 +20987,8 @@ function renderWithHooks( secondArg, nextRenderLanes ) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber = workInProgress; + renderLanes$1 = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; { hookTypesDev = current !== null ? current._debugHookTypes : null; @@ -21129,8 +21103,8 @@ function finishRenderingHooks(current, workInProgress) { // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; - renderLanes = NoLanes; - currentlyRenderingFiber = null; + renderLanes$1 = NoLanes; + currentlyRenderingFiber$1 = null; currentHook = null; workInProgressHook = null; @@ -21308,11 +21282,11 @@ function bailoutHooks(current, workInProgress, lanes) { workInProgress.flags &= ~( MountPassiveDev | MountLayoutDev | - Passive | + Passive$1 | Update ); } else { - workInProgress.flags &= ~(Passive | Update); + workInProgress.flags &= ~(Passive$1 | Update); } current.lanes = removeLanes(current.lanes, lanes); @@ -21338,7 +21312,7 @@ function resetHooksOnUnwind() { // Only reset the updates from the queue if it has a clone. If it does // not have a clone, that means it wasn't processed, and the updates were // scheduled before we entered the render phase. - var hook = currentlyRenderingFiber.memoizedState; + var hook = currentlyRenderingFiber$1.memoizedState; while (hook !== null) { var queue = hook.queue; @@ -21353,8 +21327,8 @@ function resetHooksOnUnwind() { didScheduleRenderPhaseUpdate = false; } - renderLanes = NoLanes; - currentlyRenderingFiber = null; + renderLanes$1 = NoLanes; + currentlyRenderingFiber$1 = null; currentHook = null; workInProgressHook = null; @@ -21381,7 +21355,7 @@ function mountWorkInProgressHook() { if (workInProgressHook === null) { // This is the first hook in the list - currentlyRenderingFiber.memoizedState = workInProgressHook = hook; + currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; } else { // Append to the end of the list workInProgressHook = workInProgressHook.next = hook; @@ -21399,7 +21373,7 @@ function updateWorkInProgressHook() { var nextCurrentHook; if (currentHook === null) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; if (current !== null) { nextCurrentHook = current.memoizedState; @@ -21413,7 +21387,7 @@ function updateWorkInProgressHook() { var nextWorkInProgressHook; if (workInProgressHook === null) { - nextWorkInProgressHook = currentlyRenderingFiber.memoizedState; + nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState; } else { nextWorkInProgressHook = workInProgressHook.next; } @@ -21426,7 +21400,7 @@ function updateWorkInProgressHook() { } else { // Clone from the current hook. if (nextCurrentHook === null) { - var currentFiber = currentlyRenderingFiber.alternate; + var currentFiber = currentlyRenderingFiber$1.alternate; if (currentFiber === null) { // This is the initial render. This branch is reached when the component @@ -21456,7 +21430,7 @@ function updateWorkInProgressHook() { if (workInProgressHook === null) { // This is the first hook in the list. - currentlyRenderingFiber.memoizedState = workInProgressHook = newHook; + currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; } else { // Append to the end of the list. workInProgressHook = workInProgressHook.next = newHook; @@ -21510,14 +21484,14 @@ function use(usable) { function useMemoCache(size) { var memoCache = null; // Fast-path, load memo cache from wip fiber if already prepared - var updateQueue = currentlyRenderingFiber.updateQueue; + var updateQueue = currentlyRenderingFiber$1.updateQueue; if (updateQueue !== null) { memoCache = updateQueue.memoCache; } // Otherwise clone from the current fiber if (memoCache == null) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; if (current !== null) { var currentUpdateQueue = current.updateQueue; @@ -21546,7 +21520,7 @@ function useMemoCache(size) { if (updateQueue === null) { updateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = updateQueue; + currentlyRenderingFiber$1.updateQueue = updateQueue; } updateQueue.memoCache = memoCache; @@ -21600,7 +21574,7 @@ function mountReducer(reducer, initialArg, init) { hook.queue = queue; var dispatch = (queue.dispatch = dispatchReducerAction.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, queue )); return [hook.memoizedState, dispatch]; @@ -21669,7 +21643,7 @@ function updateReducer(reducer, initialArg, init) { var shouldSkipUpdate = isHiddenUpdate ? !isSubsetOfLanes(getWorkInProgressRootRenderLanes(), updateLane) - : !isSubsetOfLanes(renderLanes, updateLane); + : !isSubsetOfLanes(renderLanes$1, updateLane); if (shouldSkipUpdate) { // Priority is insufficient. Skip this update. If this is the first @@ -21692,8 +21666,8 @@ function updateReducer(reducer, initialArg, init) { // TODO: Don't need to accumulate this. Instead, we can remove // renderLanes from the original lanes. - currentlyRenderingFiber.lanes = mergeLanes( - currentlyRenderingFiber.lanes, + currentlyRenderingFiber$1.lanes = mergeLanes( + currentlyRenderingFiber$1.lanes, updateLane ); markSkippedUpdateLanes(updateLane); @@ -21844,7 +21818,7 @@ function readFromUnsubscribedMutableSource(root, source, getSnapshot) { // the source is consistent with the values that we read during the most // recent mutation. isSafeToReadFromSource = isSubsetOfLanes( - renderLanes, + renderLanes$1, root.mutableReadLanes ); @@ -21920,7 +21894,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { var prevGetSnapshot = refs.getSnapshot; var prevSource = memoizedState.source; var prevSubscribe = memoizedState.subscribe; - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; hook.memoizedState = { refs: refs, source: source, @@ -22029,7 +22003,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { }; newQueue.dispatch = setSnapshot = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, newQueue ); stateHook.queue = newQueue; @@ -22060,7 +22034,7 @@ function updateMutableSource(source, getSnapshot, subscribe) { } function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; var hook = mountWorkInProgressHook(); var nextSnapshot; var isHydrating = getIsHydrating(); @@ -22117,7 +22091,7 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { ); } - if (!includesBlockingLane(root, renderLanes)) { + if (!includesBlockingLane(root, renderLanes$1)) { pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } } // Read the current snapshot from the store on every render. This breaks the @@ -22139,9 +22113,9 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { // TODO: We can move this to the passive phase once we add a pre-commit // consistency check. See the next comment. - fiber.flags |= Passive; + fiber.flags |= Passive$1; pushEffect( - HasEffect | Passive$1, + HasEffect | Passive, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null @@ -22150,7 +22124,7 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { } function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; var hook = updateWorkInProgressHook(); // Read the current snapshot from the store on every render. This breaks the // normal rules of React, and only works because store updates are // always synchronous. @@ -22194,9 +22168,9 @@ function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { (workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) ) { - fiber.flags |= Passive; + fiber.flags |= Passive$1; pushEffect( - HasEffect | Passive$1, + HasEffect | Passive, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null @@ -22212,7 +22186,7 @@ function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { ); } - if (!includesBlockingLane(root, renderLanes)) { + if (!includesBlockingLane(root, renderLanes$1)) { pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } } @@ -22226,11 +22200,11 @@ function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { getSnapshot: getSnapshot, value: renderedSnapshot }; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.stores = [check]; } else { var stores = componentUpdateQueue.stores; @@ -22309,7 +22283,7 @@ function mountState(initialState) { hook.queue = queue; var dispatch = (queue.dispatch = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, queue )); return [hook.memoizedState, dispatch]; @@ -22332,11 +22306,11 @@ function pushEffect(tag, create, destroy, deps) { // Circular next: null }; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.lastEffect = effect.next = effect; } else { var lastEffect = componentUpdateQueue.lastEffect; @@ -22389,7 +22363,7 @@ function mountRef(initialValue) { if (!hasBeenInitialized) { didCheckForLazyInit = true; lazyInitGetterStack = getCallerStackFrame(); - } else if (currentlyRenderingFiber !== null && !didWarnAboutRead) { + } else if (currentlyRenderingFiber$1 !== null && !didWarnAboutRead) { if ( lazyInitGetterStack === null || lazyInitGetterStack !== getCallerStackFrame() @@ -22401,7 +22375,8 @@ function mountRef(initialValue) { "Reading from a ref during render is only safe if:\n" + "1. The ref value has not been updated, or\n" + "2. The ref holds a lazily-initialized value that is only set once.\n", - getComponentNameFromFiber(currentlyRenderingFiber) || "Unknown" + getComponentNameFromFiber(currentlyRenderingFiber$1) || + "Unknown" ); } } @@ -22410,7 +22385,7 @@ function mountRef(initialValue) { }, set current(value) { - if (currentlyRenderingFiber !== null && !didWarnAboutWrite) { + if (currentlyRenderingFiber$1 !== null && !didWarnAboutWrite) { if (hasBeenInitialized || !didCheckForLazyInit) { didWarnAboutWrite = true; @@ -22418,7 +22393,8 @@ function mountRef(initialValue) { "%s: Unsafe write of a mutable value during render.\n\n" + "Writing to a ref during render is only safe if the ref holds " + "a lazily-initialized value that is only set once.\n", - getComponentNameFromFiber(currentlyRenderingFiber) || "Unknown" + getComponentNameFromFiber(currentlyRenderingFiber$1) || + "Unknown" ); } } @@ -22448,7 +22424,7 @@ function updateRef(initialValue) { function mountEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = mountWorkInProgressHook(); var nextDeps = deps === undefined ? null : deps; - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( HasEffect | hookFlags, create, @@ -22476,7 +22452,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { } } - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( HasEffect | hookFlags, create, @@ -22486,29 +22462,29 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { } function mountEffect(create, deps) { - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { mountEffectImpl( - MountPassiveDev | Passive | PassiveStatic, - Passive$1, + MountPassiveDev | Passive$1 | PassiveStatic, + Passive, create, deps ); } else { - mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps); + mountEffectImpl(Passive$1 | PassiveStatic, Passive, create, deps); } } function updateEffect(create, deps) { - updateEffectImpl(Passive, Passive$1, create, deps); + updateEffectImpl(Passive$1, Passive, create, deps); } function useEffectEventImpl(payload) { - currentlyRenderingFiber.flags |= Update; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + currentlyRenderingFiber$1.flags |= Update; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.events = [payload]; } else { var events = componentUpdateQueue.events; @@ -22569,7 +22545,7 @@ function updateInsertionEffect(create, deps) { function mountLayoutEffect(create, deps) { var fiberFlags = Update | LayoutStatic; - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { fiberFlags |= MountLayoutDev; } @@ -22625,7 +22601,7 @@ function mountImperativeHandle(ref, create, deps) { deps !== null && deps !== undefined ? deps.concat([ref]) : null; var fiberFlags = Update | LayoutStatic; - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { fiberFlags |= MountLayoutDev; } @@ -22758,7 +22734,7 @@ function rerenderDeferredValue(value) { } function updateDeferredValueImpl(hook, prevValue, value) { - var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes); + var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes$1); if (shouldDeferValue) { // This is an urgent update. If the value has changed, keep using the @@ -22766,8 +22742,8 @@ function updateDeferredValueImpl(hook, prevValue, value) { if (!objectIs(value, prevValue)) { // Schedule a deferred render var deferredLane = claimNextTransitionLane(); - currentlyRenderingFiber.lanes = mergeLanes( - currentlyRenderingFiber.lanes, + currentlyRenderingFiber$1.lanes = mergeLanes( + currentlyRenderingFiber$1.lanes, deferredLane ); markSkippedUpdateLanes(deferredLane); // Set this to true to indicate that the rendered value is inconsistent @@ -22800,24 +22776,24 @@ function updateDeferredValueImpl(hook, prevValue, value) { } function startTransition(setPending, callback, options) { - var previousPriority = getCurrentUpdatePriority(); + var previousPriority = getCurrentUpdatePriority$1(); setCurrentUpdatePriority( higherEventPriority(previousPriority, ContinuousEventPriority) ); setPending(true); - var prevTransition = ReactCurrentBatchConfig$1.transition; - ReactCurrentBatchConfig$1.transition = {}; - var currentTransition = ReactCurrentBatchConfig$1.transition; + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = {}; + var currentTransition = ReactCurrentBatchConfig$2.transition; if (enableTransitionTracing) { if (options !== undefined && options.name !== undefined) { - ReactCurrentBatchConfig$1.transition.name = options.name; - ReactCurrentBatchConfig$1.transition.startTime = now(); + ReactCurrentBatchConfig$2.transition.name = options.name; + ReactCurrentBatchConfig$2.transition.startTime = now$1(); } } { - ReactCurrentBatchConfig$1.transition._updatedFibers = new Set(); + ReactCurrentBatchConfig$2.transition._updatedFibers = new Set(); } try { @@ -22825,7 +22801,7 @@ function startTransition(setPending, callback, options) { callback(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$1.transition = prevTransition; + ReactCurrentBatchConfig$2.transition = prevTransition; { if (prevTransition === null && currentTransition._updatedFibers) { @@ -22919,7 +22895,7 @@ function mountRefresh() { var hook = mountWorkInProgressHook(); var refresh = (hook.memoizedState = refreshCache.bind( null, - currentlyRenderingFiber + currentlyRenderingFiber$1 )); return refresh; } @@ -22943,7 +22919,7 @@ function refreshCache(fiber, seedKey, seedValue) { var lane = requestUpdateLane(provider); var eventTime = requestEventTime(); var refreshUpdate = createUpdate(eventTime, lane); - var root = enqueueUpdate$1(provider, refreshUpdate, lane); + var root = enqueueUpdate(provider, refreshUpdate, lane); if (root !== null) { scheduleUpdateOnFiber(root, provider, lane, eventTime); @@ -23096,8 +23072,8 @@ function dispatchSetState(fiber, queue, action) { function isRenderPhaseUpdate(fiber) { var alternate = fiber.alternate; return ( - fiber === currentlyRenderingFiber || - (alternate !== null && alternate === currentlyRenderingFiber) + fiber === currentlyRenderingFiber$1 || + (alternate !== null && alternate === currentlyRenderingFiber$1) ); } @@ -24249,7 +24225,7 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null; } } -var now$1 = Scheduler.unstable_now; +var now = Scheduler.unstable_now; var commitTime = 0; var layoutEffectStartTime = -1; var profilerStartTime = -1; @@ -24303,14 +24279,14 @@ function getCommitTime() { } function recordCommitTime() { - commitTime = now$1(); + commitTime = now(); } function startProfilerTimer(fiber) { - profilerStartTime = now$1(); + profilerStartTime = now(); if (fiber.actualStartTime < 0) { - fiber.actualStartTime = now$1(); + fiber.actualStartTime = now(); } } @@ -24320,7 +24296,7 @@ function stopProfilerTimerIfRunning(fiber) { function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { if (profilerStartTime >= 0) { - var elapsedTime = now$1() - profilerStartTime; + var elapsedTime = now() - profilerStartTime; fiber.actualDuration += elapsedTime; if (overrideBaseTime) { @@ -24333,7 +24309,7 @@ function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { function recordLayoutEffectDuration(fiber) { if (layoutEffectStartTime >= 0) { - var elapsedTime = now$1() - layoutEffectStartTime; + var elapsedTime = now() - layoutEffectStartTime; layoutEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor // Or the root (for the DevTools Profiler to read) @@ -24359,7 +24335,7 @@ function recordLayoutEffectDuration(fiber) { function recordPassiveEffectDuration(fiber) { if (passiveEffectStartTime >= 0) { - var elapsedTime = now$1() - passiveEffectStartTime; + var elapsedTime = now() - passiveEffectStartTime; passiveEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor // Or the root (for the DevTools Profiler to read) @@ -24395,11 +24371,11 @@ function recordPassiveEffectDuration(fiber) { } function startLayoutEffectTimer() { - layoutEffectStartTime = now$1(); + layoutEffectStartTime = now(); } function startPassiveEffectTimer() { - passiveEffectStartTime = now$1(); + passiveEffectStartTime = now(); } function transferActualDuration(fiber) { @@ -24440,7 +24416,7 @@ var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate; var didWarnAboutLegacyLifecyclesAndDerivedState; var didWarnAboutUndefinedDerivedState; var warnOnUndefinedDerivedState; -var warnOnInvalidCallback; +var warnOnInvalidCallback$1; var didWarnAboutDirectlyAssigningPropsToState; var didWarnAboutContextTypeAndContextTypes; var didWarnAboutInvalidateContextType; @@ -24456,7 +24432,7 @@ var didWarnAboutInvalidateContextType; didWarnAboutInvalidateContextType = new Set(); var didWarnOnInvalidCallback = new Set(); - warnOnInvalidCallback = function (callback, callerName) { + warnOnInvalidCallback$1 = function (callback, callerName) { if (callback === null || typeof callback === "function") { return; } @@ -24561,13 +24537,13 @@ var classComponentUpdater = { if (callback !== undefined && callback !== null) { { - warnOnInvalidCallback(callback, "setState"); + warnOnInvalidCallback$1(callback, "setState"); } update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -24597,13 +24573,13 @@ var classComponentUpdater = { if (callback !== undefined && callback !== null) { { - warnOnInvalidCallback(callback, "replaceState"); + warnOnInvalidCallback$1(callback, "replaceState"); } update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -24633,13 +24609,13 @@ var classComponentUpdater = { if (callback !== undefined && callback !== null) { { - warnOnInvalidCallback(callback, "forceUpdate"); + warnOnInvalidCallback$1(callback, "forceUpdate"); } update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -25704,11 +25680,6 @@ function logCapturedError(boundary, errorInfo) { // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils. console["error"](combinedMessage); // Don't transform to our wrapper - } else { - // In production, we print the error directly. - // This will include the message, the JS stack, and anything the browser wants to show. - // We pass the error object instead of custom message so that the browser displays the error natively. - console["error"](error); // Don't transform to our wrapper } } catch (e) { // This method must not throw, or React internal state will get messed up. @@ -25903,7 +25874,7 @@ function markSuspenseBoundaryShouldCapture( // prevent a bail out. var update = createUpdate(NoTimestamp, SyncLane); update.tag = ForceUpdate; - enqueueUpdate$1(sourceFiber, update, SyncLane); + enqueueUpdate(sourceFiber, update, SyncLane); } } // The source fiber did not complete. Mark it with Sync priority to // indicate that it still has pending work. @@ -26150,7 +26121,7 @@ function throwException( // and render it again without hydration. if (_suspenseBoundary !== null) { - if ((_suspenseBoundary.flags & ShouldCapture) === NoFlags) { + if ((_suspenseBoundary.flags & ShouldCapture) === NoFlags$1) { // Set a flag to indicate that we should try rendering the normal // children again, not the fallback. _suspenseBoundary.flags |= ForceClientRender; @@ -26197,7 +26168,7 @@ function throwException( var instance = workInProgress.stateNode; if ( - (workInProgress.flags & DidCapture) === NoFlags && + (workInProgress.flags & DidCapture) === NoFlags$1 && (typeof ctor.getDerivedStateFromError === "function" || (instance !== null && typeof instance.componentDidCatch === "function" && @@ -26427,7 +26398,7 @@ function getMarkerInstances() { return null; } -var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; // A special exception that's used to unwind the stack when an update flows +var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner; // A special exception that's used to unwind the stack when an update flows // into a dehydrated boundary. var SelectiveHydrationException = new Error( @@ -26556,7 +26527,7 @@ function updateForwardRef( } { - ReactCurrentOwner$1.current = workInProgress; + ReactCurrentOwner$2.current = workInProgress; setIsRendering(true); nextChildren = renderWithHooks( current, @@ -26804,7 +26775,7 @@ function updateSimpleMemoComponent( workInProgress, renderLanes ); - } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags$1) { // This is a special case that only exists for legacy mode. // See https://github.com/facebook/react/pull/19216. didReceiveUpdate = true; @@ -26827,7 +26798,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { var nextIsDetached = (workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0; var prevState = current !== null ? current.memoizedState : null; - markRef(current, workInProgress); + markRef$1(current, workInProgress); if ( nextProps.mode === "hidden" || @@ -26835,7 +26806,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextIsDetached ) { // Rendering a hidden tree. - var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags$1; if (didSuspend) { // Something suspended inside a hidden tree @@ -27125,7 +27096,7 @@ function updateTracingMarkerComponent(current, workInProgress, renderLanes) { // boundaries, we need to schedule a passive effect to make sure we call the marker // complete callback. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } else { { @@ -27180,7 +27151,7 @@ function updateProfiler(current, workInProgress, renderLanes) { return workInProgress.child; } -function markRef(current, workInProgress) { +function markRef$1(current, workInProgress) { var ref = workInProgress.ref; if ( @@ -27233,7 +27204,7 @@ function updateFunctionComponent( } { - ReactCurrentOwner$1.current = workInProgress; + ReactCurrentOwner$2.current = workInProgress; setIsRendering(true); nextChildren = renderWithHooks( current, @@ -27451,8 +27422,8 @@ function finishClassComponent( renderLanes ) { // Refs should update even if shouldComponentUpdate returns false - markRef(current, workInProgress); - var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags; + markRef$1(current, workInProgress); + var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags$1; if (!shouldUpdate && !didCaptureError) { // Context providers should defer to sCU for rendering @@ -27465,7 +27436,7 @@ function finishClassComponent( var instance = workInProgress.stateNode; // Rerender - ReactCurrentOwner$1.current = workInProgress; + ReactCurrentOwner$2.current = workInProgress; var nextChildren; if ( @@ -27703,7 +27674,7 @@ function mountHostRootWithoutHydrating( return workInProgress.child; } -function updateHostComponent(current, workInProgress, renderLanes) { +function updateHostComponent$1(current, workInProgress, renderLanes) { pushHostContext(workInProgress); if (current === null) { @@ -27728,13 +27699,13 @@ function updateHostComponent(current, workInProgress, renderLanes) { workInProgress.flags |= ContentReset; } - markRef(current, workInProgress); + markRef$1(current, workInProgress); reconcileChildren(current, workInProgress, nextChildren, renderLanes); return workInProgress.child; } function updateHostHoistable(current, workInProgress, renderLanes) { - markRef(current, workInProgress); + markRef$1(current, workInProgress); var currentProps = current === null ? null : current.memoizedProps; var resource = (workInProgress.memoizedState = getResource( workInProgress.type, @@ -27785,11 +27756,11 @@ function updateHostSingleton(current, workInProgress, renderLanes) { reconcileChildren(current, workInProgress, nextChildren, renderLanes); } - markRef(current, workInProgress); + markRef$1(current, workInProgress); return workInProgress.child; } -function updateHostText(current, workInProgress) { +function updateHostText$1(current, workInProgress) { if (current === null) { tryToClaimNextHydratableInstance(workInProgress); } // Nothing to do here. This is terminal. We'll do the completion step @@ -27998,7 +27969,7 @@ function mountIndeterminateComponent( } setIsRendering(true); - ReactCurrentOwner$1.current = workInProgress; + ReactCurrentOwner$2.current = workInProgress; value = renderWithHooks( null, workInProgress, @@ -28227,7 +28198,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } var showFallback = false; - var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags$1; if (didSuspend || shouldRemainOnFallback(current)) { // Something in this boundary's subtree already suspended. Switch to @@ -29306,7 +29277,7 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) { workInProgress.flags |= DidCapture; } else { var didSuspendBefore = - current !== null && (current.flags & DidCapture) !== NoFlags; + current !== null && (current.flags & DidCapture) !== NoFlags$1; if (didSuspendBefore) { // If we previously forced a fallback, we need to schedule work @@ -29546,7 +29517,7 @@ function updateContextConsumer(current, workInProgress, renderLanes) { var newChildren; { - ReactCurrentOwner$1.current = workInProgress; + ReactCurrentOwner$2.current = workInProgress; setIsRendering(true); newChildren = render(newValue); setIsRendering(false); @@ -29714,7 +29685,6 @@ function attemptEarlyBailoutIfNoScheduledUpdate( switch (workInProgress.tag) { case HostRoot: pushHostRootContext(workInProgress); - var root = workInProgress.stateNode; pushRootTransition(workInProgress); if (enableTransitionTracing) { @@ -29836,7 +29806,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( } case SuspenseListComponent: { - var didSuspendBefore = (current.flags & DidCapture) !== NoFlags; + var didSuspendBefore = (current.flags & DidCapture) !== NoFlags$1; var _hasChildWork = includesSomeLane( renderLanes, @@ -29942,7 +29912,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } -function beginWork(current, workInProgress, renderLanes) { +function beginWork$1(current, workInProgress, renderLanes) { { if (workInProgress._debugNeedsRemount && current !== null) { // This will restart the begin phase with a new fiber. @@ -29984,7 +29954,7 @@ function beginWork(current, workInProgress, renderLanes) { if ( !hasScheduledUpdateOrContext && // If this is the second pass of an error or suspense boundary, there // may not be work scheduled on `current`, so we check for this flag. - (workInProgress.flags & DidCapture) === NoFlags + (workInProgress.flags & DidCapture) === NoFlags$1 ) { // No pending updates or context. Bail out now. didReceiveUpdate = false; @@ -29995,7 +29965,7 @@ function beginWork(current, workInProgress, renderLanes) { ); } - if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags$1) { // This is a special case that only exists for legacy mode. // See https://github.com/facebook/react/pull/19216. didReceiveUpdate = true; @@ -30102,10 +30072,10 @@ function beginWork(current, workInProgress, renderLanes) { // eslint-disable-next-line no-fallthrough case HostComponent: - return updateHostComponent(current, workInProgress, renderLanes); + return updateHostComponent$1(current, workInProgress, renderLanes); case HostText: - return updateHostText(current, workInProgress); + return updateHostText$1(current, workInProgress); case SuspenseComponent: return updateSuspenseComponent(current, workInProgress, renderLanes); @@ -30263,21 +30233,21 @@ var rendererCursorDEV; rendererCursorDEV = createCursor(null); } -var rendererSigil$1; +var rendererSigil; { // Use this to detect multiple renderers using the same context - rendererSigil$1 = {}; + rendererSigil = {}; } -var currentlyRenderingFiber$1 = null; +var currentlyRenderingFiber = null; var lastContextDependency = null; var lastFullyObservedContext = null; var isDisallowedContextReadInDEV = false; function resetContextDependencies() { // This is called right before React yields execution, to ensure `readContext` // cannot be called outside the render phase. - currentlyRenderingFiber$1 = null; + currentlyRenderingFiber = null; lastContextDependency = null; lastFullyObservedContext = null; @@ -30306,7 +30276,7 @@ function pushProvider(providerFiber, context, nextValue) { if ( context._currentRenderer !== undefined && context._currentRenderer !== null && - context._currentRenderer !== rendererSigil$1 + context._currentRenderer !== rendererSigil ) { error( "Detected multiple renderers concurrently rendering the " + @@ -30314,7 +30284,7 @@ function pushProvider(providerFiber, context, nextValue) { ); } - context._currentRenderer = rendererSigil$1; + context._currentRenderer = rendererSigil; } } } @@ -30355,7 +30325,7 @@ function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { !isSubsetOfLanes(alternate.childLanes, renderLanes) ) { alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); - } + } else; if (node === propagationRoot) { break; @@ -30718,9 +30688,9 @@ function propagateParentContextChanges( while (parent !== null) { if (!isInsidePropagationBailout) { - if ((parent.flags & NeedsPropagation) !== NoFlags) { + if ((parent.flags & NeedsPropagation) !== NoFlags$1) { isInsidePropagationBailout = true; - } else if ((parent.flags & DidPropagateContext) !== NoFlags) { + } else if ((parent.flags & DidPropagateContext) !== NoFlags$1) { break; } } @@ -30812,7 +30782,7 @@ function checkIfContextChanged(currentDependencies) { return false; } function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber$1 = workInProgress; + currentlyRenderingFiber = workInProgress; lastContextDependency = null; lastFullyObservedContext = null; var dependencies = workInProgress.dependencies; @@ -30860,7 +30830,7 @@ function readContext(context) { }; if (lastContextDependency === null) { - if (currentlyRenderingFiber$1 === null) { + if (currentlyRenderingFiber === null) { throw new Error( "Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + @@ -30870,13 +30840,13 @@ function readContext(context) { } // This is the first dependency for this component. Create a new list. lastContextDependency = contextItem; - currentlyRenderingFiber$1.dependencies = { + currentlyRenderingFiber.dependencies = { lanes: NoLanes, firstContext: contextItem }; if (enableLazyContextPropagation) { - currentlyRenderingFiber$1.flags |= NeedsPropagation; + currentlyRenderingFiber.flags |= NeedsPropagation; } } else { // Append a new context item. @@ -30911,7 +30881,7 @@ var AbortControllerLocal = // use dynamic dispatch for CommonJS interop named imports. var scheduleCallback$1 = Scheduler.unstable_scheduleCallback, - NormalPriority$1 = Scheduler.unstable_NormalPriority; + NormalPriority = Scheduler.unstable_NormalPriority; var CacheContext = { $$typeof: REACT_CONTEXT_TYPE, // We don't use Consumer/Provider for Cache components. So we'll cheat. @@ -30966,7 +30936,7 @@ function releaseCache(cache) { } if (cache.refCount === 0) { - scheduleCallback$1(NormalPriority$1, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } @@ -30978,10 +30948,10 @@ function popCacheProvider(workInProgress, cache) { popProvider(CacheContext, workInProgress); } -var ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig; +var ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig; var NoTransition = null; function requestCurrentTransition() { - return ReactCurrentBatchConfig$2.transition; + return ReactCurrentBatchConfig$1.transition; } // When retrying a Suspense/Offscreen boundary, we restore the cache that was // used during the previous render by placing it here, on the stack. @@ -31275,8 +31245,8 @@ function DO_NOT_USE_queryFirstNode(fn) { return null; } -function containsNode$1(node) { - var fiber = getInstanceFromNode(node); +function containsNode(node) { + var fiber = getInstanceFromNode$1(node); while (fiber !== null) { if (fiber.tag === ScopeComponent && fiber.stateNode === this) { @@ -31310,7 +31280,7 @@ function createScopeInstance() { return { DO_NOT_USE_queryAllNodes: DO_NOT_USE_queryAllNodes, DO_NOT_USE_queryFirstNode: DO_NOT_USE_queryFirstNode, - containsNode: containsNode$1, + containsNode: containsNode, getChildContextValues: getChildContextValues }; } @@ -31321,14 +31291,14 @@ function markUpdate(workInProgress) { workInProgress.flags |= Update; } -function markRef$1(workInProgress) { +function markRef(workInProgress) { workInProgress.flags |= Ref | RefStatic; } var appendAllChildren; var updateHostContainer; -var updateHostComponent$1; -var updateHostText$1; +var updateHostComponent; +var updateHostText; { // Mutation mode @@ -31374,7 +31344,7 @@ var updateHostText$1; // Noop }; - updateHostComponent$1 = function (current, workInProgress, type, newProps) { + updateHostComponent = function (current, workInProgress, type, newProps) { // If we have an alternate, that means this is an update and we need to // schedule a side-effect to do the updates. var oldProps = current.memoizedProps; @@ -31409,7 +31379,7 @@ var updateHostText$1; } }; - updateHostText$1 = function (current, workInProgress, oldText, newText) { + updateHostText = function (current, workInProgress, oldText, newText) { // If the text differs, mark it as an update. All the work in done in commitWork. if (oldText !== newText) { markUpdate(workInProgress); @@ -31498,7 +31468,7 @@ function bubbleProperties(completedWork) { completedWork.alternate !== null && completedWork.alternate.child === completedWork.child; var newChildLanes = NoLanes; - var subtreeFlags = NoFlags; + var subtreeFlags = NoFlags$1; if (!didBailout) { // Bubble up the earliest expiration time. @@ -31613,7 +31583,7 @@ function completeDehydratedSuspenseBoundary( if ( hasUnhydratedTailNodes() && (workInProgress.mode & ConcurrentMode) !== NoMode && - (workInProgress.flags & DidCapture) === NoFlags + (workInProgress.flags & DidCapture) === NoFlags$1 ) { warnIfUnhydratedTailNodes(workInProgress); resetHydrationState(); @@ -31660,7 +31630,7 @@ function completeDehydratedSuspenseBoundary( // state since we're now exiting out of it. popHydrationState doesn't do that for us. resetHydrationState(); - if ((workInProgress.flags & DidCapture) === NoFlags) { + if ((workInProgress.flags & DidCapture) === NoFlags$1) { // This boundary did not suspend so it's now hydrated and unsuspended. workInProgress.memoizedState = null; } // If nothing suspended, we need to schedule an effect to mark this boundary @@ -31744,7 +31714,7 @@ function completeWork(current, workInProgress, renderLanes) { // which we do in the passive phase if (transitions !== null) { - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -31759,7 +31729,7 @@ function completeWork(current, workInProgress, renderLanes) { if (cache !== previousCache) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } popCacheProvider(workInProgress); @@ -31795,7 +31765,7 @@ function completeWork(current, workInProgress, renderLanes) { if ( // Check if this is a client root !prevState.isDehydrated || // Check if we reverted to client rendering (e.g. due to an error) - (workInProgress.flags & ForceClientRender) !== NoFlags + (workInProgress.flags & ForceClientRender) !== NoFlags$1 ) { // Schedule an effect to clear this container at the start of the // next commit. This handles the case of React rendering into a @@ -31817,11 +31787,11 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); if (enableTransitionTracing) { - if ((workInProgress.subtreeFlags & Visibility) !== NoFlags) { + if ((workInProgress.subtreeFlags & Visibility) !== NoFlags$1) { // If any of our suspense children toggle visibility, this means that // the pending boundaries array needs to be updated, which we only // do in the passive phase. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -31833,7 +31803,7 @@ function completeWork(current, workInProgress, renderLanes) { var currentRef = current ? current.ref : null; if (currentRef !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } if ( @@ -31847,7 +31817,7 @@ function completeWork(current, workInProgress, renderLanes) { // We may have props to update on the Hoistable instance. We use the // updateHostComponent path becuase it produces the update queue // we need for Hoistables - updateHostComponent$1( + updateHostComponent( current, workInProgress, workInProgress.type, @@ -31868,10 +31838,10 @@ function completeWork(current, workInProgress, renderLanes) { var type = workInProgress.type; if (current !== null && workInProgress.stateNode != null) { - updateHostComponent$1(current, workInProgress, type, newProps); + updateHostComponent(current, workInProgress, type, newProps); if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } } else { if (!newProps) { @@ -31908,7 +31878,7 @@ function completeWork(current, workInProgress, renderLanes) { if (workInProgress.ref !== null) { // If there is a ref on a host node we need to schedule a callback - markRef$1(workInProgress); + markRef(workInProgress); } } @@ -31923,10 +31893,10 @@ function completeWork(current, workInProgress, renderLanes) { var _type = workInProgress.type; if (current !== null && workInProgress.stateNode != null) { - updateHostComponent$1(current, workInProgress, _type, newProps); + updateHostComponent(current, workInProgress, _type, newProps); if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } } else { if (!newProps) { @@ -31980,7 +31950,7 @@ function completeWork(current, workInProgress, renderLanes) { if (workInProgress.ref !== null) { // If there is a ref on a host node we need to schedule a callback - markRef$1(workInProgress); + markRef(workInProgress); } } @@ -31995,7 +31965,7 @@ function completeWork(current, workInProgress, renderLanes) { var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need // to schedule a side-effect to do the updates. - updateHostText$1(current, workInProgress, oldText, newText); + updateHostText(current, workInProgress, oldText, newText); } else { if (typeof newText !== "string") { if (workInProgress.stateNode === null) { @@ -32063,7 +32033,7 @@ function completeWork(current, workInProgress, renderLanes) { } // Continue with the normal Suspense path. } - if ((workInProgress.flags & DidCapture) !== NoFlags) { + if ((workInProgress.flags & DidCapture) !== NoFlags$1) { // Something suspended. Re-render with the fallback children. workInProgress.lanes = renderLanes; // Do not reset the effect list. @@ -32101,7 +32071,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache !== _previousCache) { // Run passive effects to retain/release the cache. - offscreenFiber.flags |= Passive; + offscreenFiber.flags |= Passive$1; } } // If the suspended state of the boundary changes, we need to schedule // a passive effect, which is when we process the transitions @@ -32109,7 +32079,7 @@ function completeWork(current, workInProgress, renderLanes) { if (nextDidTimeout !== prevDidTimeout) { if (enableTransitionTracing) { var _offscreenFiber = workInProgress.child; - _offscreenFiber.flags |= Passive; + _offscreenFiber.flags |= Passive$1; } // If the suspended state of the boundary changes, we need to schedule // an effect to toggle the subtree's visibility. When we switch from // fallback -> primary, the inner Offscreen fiber schedules this effect @@ -32207,7 +32177,7 @@ function completeWork(current, workInProgress, renderLanes) { return null; } - var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags$1; var renderedTail = renderState.rendering; if (renderedTail === null) { @@ -32224,7 +32194,7 @@ function completeWork(current, workInProgress, renderLanes) { // findFirstSuspended. var cannotBeSuspended = renderHasNotSuspendedYet() && - (current === null || (current.flags & DidCapture) === NoFlags); + (current === null || (current.flags & DidCapture) === NoFlags$1); if (!cannotBeSuspended) { var row = workInProgress.child; @@ -32258,7 +32228,7 @@ function completeWork(current, workInProgress, renderLanes) { // Reset the effect flags before doing the second pass since that's now invalid. // Reset the child fibers to their original state. - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; resetChildFibers(workInProgress, renderLanes); // Set up the Suspense List Context to force suspense and // immediately rerender the children. @@ -32277,7 +32247,7 @@ function completeWork(current, workInProgress, renderLanes) { } } - if (renderState.tail !== null && now() > getRenderTargetTime()) { + if (renderState.tail !== null && now$1() > getRenderTargetTime()) { // We have already passed our CPU deadline but we still have rows // left in the tail. We'll just give up further attempts to render // the main content and only render fallbacks. @@ -32330,7 +32300,7 @@ function completeWork(current, workInProgress, renderLanes) { // The time it took to render last row is greater than the remaining // time we have to render. So rendering one more row would likely // exceed it. - now() * 2 - renderState.renderingStartTime > + now$1() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane ) { @@ -32379,7 +32349,7 @@ function completeWork(current, workInProgress, renderLanes) { var next = renderState.tail; renderState.rendering = next; renderState.tail = next.sibling; - renderState.renderingStartTime = now(); + renderState.renderingStartTime = now$1(); next.sibling = null; // Restore the context. // TODO: We can probably just avoid popping it instead and only // setting it the first time we go from not suspended to suspended. @@ -32414,7 +32384,7 @@ function completeWork(current, workInProgress, renderLanes) { prepareScopeUpdate(scopeInstance, workInProgress); if (workInProgress.ref !== null) { - markRef$1(workInProgress); + markRef(workInProgress); markUpdate(workInProgress); } } else { @@ -32423,7 +32393,7 @@ function completeWork(current, workInProgress, renderLanes) { } if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } } @@ -32507,7 +32477,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache2 !== _previousCache2) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -32527,7 +32497,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache3 !== _previousCache3) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } popCacheProvider(workInProgress); @@ -32591,10 +32561,7 @@ function unwindWork(current, workInProgress, renderLanes) { } case HostRoot: { - var root = workInProgress.stateNode; - { - var cache = workInProgress.memoizedState.cache; popCacheProvider(workInProgress); } @@ -32609,8 +32576,8 @@ function unwindWork(current, workInProgress, renderLanes) { var _flags = workInProgress.flags; if ( - (_flags & ShouldCapture) !== NoFlags && - (_flags & DidCapture) === NoFlags + (_flags & ShouldCapture) !== NoFlags$1 && + (_flags & DidCapture) === NoFlags$1 ) { // There was an error during render that wasn't captured by a suspense // boundary. Do a second pass on the root to unmount the children. @@ -32697,7 +32664,6 @@ function unwindWork(current, workInProgress, renderLanes) { case CacheComponent: { - var _cache = workInProgress.memoizedState.cache; popCacheProvider(workInProgress); } @@ -32736,10 +32702,7 @@ function unwindInterruptedWork(current, interruptedWork, renderLanes) { } case HostRoot: { - var root = interruptedWork.stateNode; - { - var cache = interruptedWork.memoizedState.cache; popCacheProvider(interruptedWork); } @@ -32787,7 +32750,6 @@ function unwindInterruptedWork(current, interruptedWork, renderLanes) { case CacheComponent: { - var _cache2 = interruptedWork.memoizedState.cache; popCacheProvider(interruptedWork); } @@ -32951,7 +32913,7 @@ function safelyCallDestroy(current, nearestMountedAncestor, destroy) { var focusedInstanceHandle = null; var shouldFireAfterActiveInstanceBlur = false; function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = prepareForCommit(root.containerInfo); + focusedInstanceHandle = prepareForCommit(); nextEffect = firstChild; commitBeforeMutationEffects_begin(); // We no longer need to track the active instance fiber @@ -32981,7 +32943,7 @@ function commitBeforeMutationEffects_begin() { var child = fiber.child; if ( - (fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && + (fiber.subtreeFlags & BeforeMutationMask) !== NoFlags$1 && child !== null ) { child.return = fiber; @@ -33035,14 +32997,14 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } } - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { setCurrentFiber(finishedWork); } switch (finishedWork.tag) { case FunctionComponent: { { - if ((flags & Update) !== NoFlags) { + if ((flags & Update) !== NoFlags$1) { commitUseEffectEventMount(finishedWork); } } @@ -33056,7 +33018,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } case ClassComponent: { - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { if (current !== null) { var prevProps = current.memoizedProps; var prevState = current.memoizedState; @@ -33122,7 +33084,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } case HostRoot: { - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { { var root = finishedWork.stateNode; clearContainer(root.containerInfo); @@ -33142,7 +33104,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { break; default: { - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { throw new Error( "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue." @@ -33151,7 +33113,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } } - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { resetCurrentFiber(); } } @@ -33189,15 +33151,15 @@ function commitHookEffectListUnmount( if (destroy !== undefined) { if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectUnmountStarted(finishedWork); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectUnmountStarted(finishedWork); } } { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(true); } } @@ -33205,15 +33167,15 @@ function commitHookEffectListUnmount( safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(false); } } if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectUnmountStopped(); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectUnmountStopped(); } } @@ -33236,9 +33198,9 @@ function commitHookEffectListMount(flags, finishedWork) { do { if ((effect.tag & flags) === flags) { if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectMountStarted(finishedWork); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectMountStarted(finishedWork); } } // Mount @@ -33246,7 +33208,7 @@ function commitHookEffectListMount(flags, finishedWork) { var create = effect.create; { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(true); } } @@ -33254,15 +33216,15 @@ function commitHookEffectListMount(flags, finishedWork) { effect.destroy = create(); { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(false); } } if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectMountStopped(); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectMountStopped(); } } @@ -33273,9 +33235,9 @@ function commitHookEffectListMount(flags, finishedWork) { if (destroy !== undefined && typeof destroy !== "function") { var hookName = void 0; - if ((effect.tag & Layout) !== NoFlags) { + if ((effect.tag & Layout) !== NoFlags$1) { hookName = "useLayoutEffect"; - } else if ((effect.tag & Insertion) !== NoFlags) { + } else if ((effect.tag & Insertion) !== NoFlags$1) { hookName = "useInsertionEffect"; } else { hookName = "useEffect"; @@ -33340,7 +33302,7 @@ function commitUseEffectEventMount(finishedWork) { function commitPassiveEffectDurations(finishedRoot, finishedWork) { if (getExecutionContext() & CommitContext) { // Only Profilers with work in their subtree will have an Update effect scheduled. - if ((finishedWork.flags & Update) !== NoFlags) { + if ((finishedWork.flags & Update) !== NoFlags$1) { switch (finishedWork.tag) { case Profiler: { var passiveEffectDuration = @@ -33806,7 +33768,7 @@ function commitLayoutEffectOnFiber( // effects that were unmounted when the Offscreen subtree was // hidden. So this is a superset of the normal commitLayoutEffects. var includeWorkInProgressEffects = - (finishedWork.subtreeFlags & LayoutMask) !== NoFlags; + (finishedWork.subtreeFlags & LayoutMask) !== NoFlags$1; recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, @@ -34755,13 +34717,13 @@ function commitDeletionEffectsOnFiber( tag = _effect.tag; if (destroy !== undefined) { - if ((tag & Insertion) !== NoFlags$1) { + if ((tag & Insertion) !== NoFlags) { safelyCallDestroy( deletedFiber, nearestMountedAncestor, destroy ); - } else if ((tag & Layout) !== NoFlags$1) { + } else if ((tag & Layout) !== NoFlags) { if (enableSchedulingProfiler) { markComponentLayoutEffectUnmountStarted(deletedFiber); } @@ -34984,7 +34946,7 @@ function detachOffscreenInstance(instance) { ); } - if ((instance._pendingVisibility & OffscreenDetached) !== NoFlags) { + if ((instance._pendingVisibility & OffscreenDetached) !== NoFlags$1) { // The instance is already detached, this is a noop. return; } // TODO: There is an opportunity to optimise this by not entering commit phase @@ -35006,7 +34968,7 @@ function attachOffscreenInstance(instance) { ); } - if ((instance._pendingVisibility & OffscreenDetached) === NoFlags) { + if ((instance._pendingVisibility & OffscreenDetached) === NoFlags$1) { // The instance is already attached, this is a noop. return; } @@ -35905,7 +35867,7 @@ function recursivelyTraverseReappearLayoutEffects( // node was reused. var childShouldIncludeWorkInProgressEffects = includeWorkInProgressEffects && - (parentFiber.subtreeFlags & LayoutMask) !== NoFlags; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) + (parentFiber.subtreeFlags & LayoutMask) !== NoFlags$1; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) var prevDebugFiber = getCurrentFiber(); var child = parentFiber.child; @@ -36152,8 +36114,8 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { - commitHookPassiveMountEffects(finishedWork, Passive$1 | HasEffect); + if (flags & Passive$1) { + commitHookPassiveMountEffects(finishedWork, Passive | HasEffect); } break; @@ -36167,7 +36129,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { { var previousCache = null; @@ -36231,7 +36193,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { var current = finishedWork.alternate; var instance = finishedWork.stateNode; commitOffscreenPassiveMountEffects(current, finishedWork, instance); @@ -36296,7 +36258,7 @@ function commitPassiveMountOnFiber( // the initial render. _instance3._visibility |= OffscreenPassiveEffectsConnected; var includeWorkInProgressEffects = - (finishedWork.subtreeFlags & PassiveMask) !== NoFlags; + (finishedWork.subtreeFlags & PassiveMask) !== NoFlags$1; recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -36307,7 +36269,7 @@ function commitPassiveMountOnFiber( } } - if (flags & Passive) { + if (flags & Passive$1) { var _current = finishedWork.alternate; commitOffscreenPassiveMountEffects(_current, finishedWork, _instance3); } @@ -36323,7 +36285,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current2 = finishedWork.alternate; commitCachePassiveMountEffect(_current2, finishedWork); @@ -36341,7 +36303,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { commitTracingMarkerPassiveMountEffect(finishedWork); } @@ -36374,7 +36336,7 @@ function recursivelyTraverseReconnectPassiveEffects( // node was reused. var childShouldIncludeWorkInProgressEffects = includeWorkInProgressEffects && - (parentFiber.subtreeFlags & PassiveMask) !== NoFlags; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) + (parentFiber.subtreeFlags & PassiveMask) !== NoFlags$1; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) var prevDebugFiber = getCurrentFiber(); var child = parentFiber.child; @@ -36416,7 +36378,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); // TODO: Check for PassiveStatic flag - commitHookPassiveMountEffects(finishedWork, Passive$1); + commitHookPassiveMountEffects(finishedWork, Passive); break; } // Unlike commitPassiveMountOnFiber, we don't need to handle HostRoot @@ -36436,7 +36398,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var current = finishedWork.alternate; var instance = finishedWork.stateNode; @@ -36504,7 +36466,7 @@ function reconnectPassiveEffects( ); } - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current3 = finishedWork.alternate; commitOffscreenPassiveMountEffects(_current3, finishedWork, _instance4); @@ -36522,7 +36484,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current4 = finishedWork.alternate; commitCachePassiveMountEffect(_current4, finishedWork); @@ -36541,7 +36503,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { commitTracingMarkerPassiveMountEffect(finishedWork); } @@ -36602,7 +36564,7 @@ function commitAtomicPassiveEffects( case OffscreenComponent: { recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var current = finishedWork.alternate; var instance = finishedWork.stateNode; @@ -36615,7 +36577,7 @@ function commitAtomicPassiveEffects( case CacheComponent: { recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current5 = finishedWork.alternate; commitCachePassiveMountEffect(_current5, finishedWork); @@ -36695,7 +36657,7 @@ function recursivelyTraversePassiveUnmountEffects(parentFiber) { // before the children effects have fired. var deletions = parentFiber.deletions; - if ((parentFiber.flags & ChildDeletion) !== NoFlags) { + if ((parentFiber.flags & ChildDeletion) !== NoFlags$1) { if (deletions !== null) { for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i]; // TODO: Convert this to use recursion @@ -36733,11 +36695,11 @@ function commitPassiveUnmountOnFiber(finishedWork) { case SimpleMemoComponent: { recursivelyTraversePassiveUnmountEffects(finishedWork); - if (finishedWork.flags & Passive) { + if (finishedWork.flags & Passive$1) { commitHookPassiveUnmountEffects( finishedWork, finishedWork.return, - Passive$1 | HasEffect + Passive | HasEffect ); } @@ -36781,7 +36743,7 @@ function recursivelyTraverseDisconnectPassiveEffects(parentFiber) { // before the children effects have fired. var deletions = parentFiber.deletions; - if ((parentFiber.flags & ChildDeletion) !== NoFlags) { + if ((parentFiber.flags & ChildDeletion) !== NoFlags$1) { if (deletions !== null) { for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i]; // TODO: Convert this to use recursion @@ -36819,7 +36781,7 @@ function disconnectPassiveEffect(finishedWork) { commitHookPassiveUnmountEffects( finishedWork, finishedWork.return, - Passive$1 + Passive ); // When disconnecting passive effects, we fire the effects in the same // order as during a deletiong: parent before child @@ -36904,11 +36866,7 @@ function commitPassiveUnmountInsideDeletedTreeOnFiber( case FunctionComponent: case ForwardRef: case SimpleMemoComponent: { - commitHookPassiveUnmountEffects( - current, - nearestMountedAncestor, - Passive$1 - ); + commitHookPassiveUnmountEffects(current, nearestMountedAncestor, Passive); break; } // TODO: run passive unmount effects when unmounting a root. @@ -37071,7 +37029,7 @@ function invokePassiveEffectMountInDEV(fiber) { case ForwardRef: case SimpleMemoComponent: { try { - commitHookEffectListMount(Passive$1 | HasEffect, fiber); + commitHookEffectListMount(Passive | HasEffect, fiber); } catch (error) { captureCommitPhaseError(fiber, fiber.return, error); } @@ -37121,11 +37079,7 @@ function invokePassiveEffectUnmountInDEV(fiber) { case ForwardRef: case SimpleMemoComponent: { try { - commitHookEffectListUnmount( - Passive$1 | HasEffect, - fiber, - fiber.return - ); + commitHookEffectListUnmount(Passive | HasEffect, fiber, fiber.return); } catch (error) { captureCommitPhaseError(fiber, fiber.return, error); } @@ -37156,22 +37110,16 @@ var DefaultCacheDispatcher = { getCacheForType: getCacheForType }; -var COMPONENT_TYPE = 0; -var HAS_PSEUDO_CLASS_TYPE = 1; -var ROLE_TYPE = 2; -var TEST_NAME_TYPE = 3; -var TEXT_TYPE = 4; - if (typeof Symbol === "function" && Symbol.for) { var symbolFor = Symbol.for; - COMPONENT_TYPE = symbolFor("selector.component"); - HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"); - ROLE_TYPE = symbolFor("selector.role"); - TEST_NAME_TYPE = symbolFor("selector.test_id"); - TEXT_TYPE = symbolFor("selector.text"); + symbolFor("selector.component"); + symbolFor("selector.has_pseudo_class"); + symbolFor("selector.role"); + symbolFor("selector.test_id"); + symbolFor("selector.text"); } var commitHooks = []; -function onCommitRoot$1() { +function onCommitRoot() { { commitHooks.forEach(function (commitHook) { return commitHook(); @@ -37236,12 +37184,12 @@ function schedulePostPaintCallback(callback) { } var ceil = Math.ceil; -var PossiblyWeakMap$2 = typeof WeakMap === "function" ? WeakMap : Map; -var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, +var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig, - ReactCurrentActQueue$2 = ReactSharedInternals.ReactCurrentActQueue; + ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; var NoContext = /* */ 0; @@ -37294,7 +37242,7 @@ var workInProgressRootDidAttachPingListener = false; // A contextual version of // Most things in the work loop should deal with workInProgressRootRenderLanes. // Most things in begin/complete phases should deal with renderLanes. -var renderLanes$1 = NoLanes; // Whether to root completed, errored, suspended, etc. +var renderLanes = NoLanes; // Whether to root completed, errored, suspended, etc. var workInProgressRootExitStatus = RootInProgress; // A fatal error, if one is thrown @@ -37472,7 +37420,7 @@ function addTransitionCompleteCallbackToPendingTransition(transition) { } function resetRenderTimer() { - workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS; + workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; } function getRenderTargetTime() { @@ -37514,7 +37462,7 @@ function getWorkInProgressRootRenderLanes() { function requestEventTime() { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { // We're inside React, so it's fine to read the actual time. - return now(); + return now$1(); } // We're not inside React, so we may be in the middle of a browser event. if (currentEventTime !== NoTimestamp) { @@ -37522,7 +37470,7 @@ function requestEventTime() { return currentEventTime; } // This is the first update since React yielded. Compute a new start time. - currentEventTime = now(); + currentEventTime = now$1(); return currentEventTime; } function requestUpdateLane(fiber) { @@ -37551,8 +37499,8 @@ function requestUpdateLane(fiber) { var isTransition = requestCurrentTransition() !== NoTransition; if (isTransition) { - if (ReactCurrentBatchConfig$3.transition !== null) { - var transition = ReactCurrentBatchConfig$3.transition; + if (ReactCurrentBatchConfig.transition !== null) { + var transition = ReactCurrentBatchConfig.transition; if (!transition._updatedFibers) { transition._updatedFibers = new Set(); @@ -37580,7 +37528,7 @@ function requestUpdateLane(fiber) { // use that directly. // TODO: Move this type conversion to the event priority module. - var updateLane = getCurrentUpdatePriority(); + var updateLane = getCurrentUpdatePriority$1(); if (updateLane !== NoLane) { return updateLane; @@ -37630,7 +37578,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { // The incoming update might unblock the current render. Interrupt the // current attempt and restart from the top. prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } // Mark that the root has a pending update. markRootUpdated(root, lane, eventTime); @@ -37683,11 +37631,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { } if (enableTransitionTracing) { - var transition = ReactCurrentBatchConfig$3.transition; + var transition = ReactCurrentBatchConfig.transition; if (transition !== null && transition.name != null) { if (transition.startTime === -1) { - transition.startTime = now(); + transition.startTime = now$1(); } addTransitionToLanesMap(root, transition, lane); @@ -37717,7 +37665,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { // effect of interrupting the current render and switching to the update. // TODO: Make sure this doesn't override pings that happen while we've // already started rendering. - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } } @@ -37727,7 +37675,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. - !ReactCurrentActQueue$2.isBatchingLegacy + !ReactCurrentActQueue.isBatchingLegacy ) { // Flush the synchronous work now, unless we're already working or inside // a batch. This is intentionally inside scheduleUpdateOnFiber instead of @@ -37784,7 +37732,7 @@ function ensureRootIsScheduled(root, currentTime) { if (nextLanes === NoLanes) { // Special case: There's nothing to work on. if (existingCallbackNode !== null) { - cancelCallback$1(existingCallbackNode); + cancelCallback(existingCallbackNode); } root.callbackNode = null; @@ -37801,7 +37749,7 @@ function ensureRootIsScheduled(root, currentTime) { // Scheduler task, rather than an `act` task, cancel it and re-scheduled // on the `act` queue. !( - ReactCurrentActQueue$2.current !== null && + ReactCurrentActQueue.current !== null && existingCallbackNode !== fakeActCallbackNode ) ) { @@ -37824,7 +37772,7 @@ function ensureRootIsScheduled(root, currentTime) { if (existingCallbackNode != null) { // Cancel the existing callback. We'll schedule a new one below. - cancelCallback$1(existingCallbackNode); + cancelCallback(existingCallbackNode); } // Schedule a new callback. var newCallbackNode; @@ -37833,8 +37781,8 @@ function ensureRootIsScheduled(root, currentTime) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { - if (ReactCurrentActQueue$2.isBatchingLegacy !== null) { - ReactCurrentActQueue$2.didScheduleLegacyUpdate = true; + if (ReactCurrentActQueue.isBatchingLegacy !== null) { + ReactCurrentActQueue.didScheduleLegacyUpdate = true; } scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)); @@ -37844,11 +37792,11 @@ function ensureRootIsScheduled(root, currentTime) { { // Flush the queue in a microtask. - if (ReactCurrentActQueue$2.current !== null) { + if (ReactCurrentActQueue.current !== null) { // Inside `act`, use our internal `act` queue so that these get flushed // at the end of the current scope even when using the sync version // of `act`. - ReactCurrentActQueue$2.current.push(flushSyncCallbacks); + ReactCurrentActQueue.current.push(flushSyncCallbacks); } else { scheduleMicrotask(function () { // In Safari, appending an iframe forces microtasks to run. @@ -37881,7 +37829,7 @@ function ensureRootIsScheduled(root, currentTime) { break; case DefaultEventPriority: - schedulerPriorityLevel = NormalPriority; + schedulerPriorityLevel = NormalPriority$1; break; case IdleEventPriority: @@ -37889,11 +37837,11 @@ function ensureRootIsScheduled(root, currentTime) { break; default: - schedulerPriorityLevel = NormalPriority; + schedulerPriorityLevel = NormalPriority$1; break; } - newCallbackNode = scheduleCallback$2( + newCallbackNode = scheduleCallback( schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root) ); @@ -37981,8 +37929,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (exitStatus === RootFatalErrored) { var fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw fatalError; } @@ -37990,7 +37938,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { // The render unwound without completing the tree. This happens in special // cases where need to exit the current render without producing a // consistent tree or committing. - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); } else { // The render completed. // Check if this render may have yielded to a concurrent event, and if so, @@ -38031,8 +37979,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (exitStatus === RootFatalErrored) { var _fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw _fatalError; } // FIXME: Need to check for RootDidNotComplete again. The factoring here // isn't ideal. @@ -38045,7 +37993,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } } - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if (root.callbackNode === originalCallbackNode) { // The task node scheduled for this root is the same one that's @@ -38179,7 +38127,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { } case RootSuspended: { - markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we + markRootSuspended(root, lanes); // We have an acceptable loading state. We need to figure out if we // should immediately commit it or wait a bit. if ( @@ -38189,7 +38137,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { // This render only included retries, no updates. Throttle committing // retries so that we don't show too many loading states too quickly. var msUntilTimeout = - globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time. + globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$1(); // Don't bother with a very short suspense time. if (msUntilTimeout > 10) { var nextLanes = getNextLanes(root, NoLanes); @@ -38223,7 +38171,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { } case RootSuspendedWithDelay: { - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if (includesOnlyTransitions(lanes)) { // This is a transition, so we should exit without committing a @@ -38241,7 +38189,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { // Consider removing. var mostRecentEventTime = getMostRecentEventTime(root, lanes); var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now() - eventTimeMs; + var timeElapsedMs = now$1() - eventTimeMs; var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. @@ -38347,7 +38295,7 @@ function isRenderConsistentWithExternalStores(finishedWork) { return true; } -function markRootSuspended$1(root, suspendedLanes) { +function markRootSuspended(root, suspendedLanes) { // When suspending, we should always exclude lanes that were pinged or (more // rarely, since we try to avoid it) updated during the render phase. // TODO: Lol maybe there's a better way to factor this besides this @@ -38357,7 +38305,7 @@ function markRootSuspended$1(root, suspendedLanes) { suspendedLanes, workInProgressRootInterleavedUpdatedLanes ); - markRootSuspended(root, suspendedLanes); + markRootSuspended$1(root, suspendedLanes); } // This is the entry point for synchronous tasks that don't go // through Scheduler @@ -38375,7 +38323,7 @@ function performSyncWorkOnRoot(root) { if (!includesSyncLane(lanes)) { // There's no remaining sync work left. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return null; } @@ -38405,8 +38353,8 @@ function performSyncWorkOnRoot(root) { if (exitStatus === RootFatalErrored) { var fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw fatalError; } @@ -38414,8 +38362,8 @@ function performSyncWorkOnRoot(root) { // The render unwound without completing the tree. This happens in special // cases where need to exit the current render without producing a // consistent tree or committing. - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); return null; } // We now have a consistent tree. Because this is a sync render, we // will commit it even if something suspended. @@ -38430,14 +38378,14 @@ function performSyncWorkOnRoot(root) { ); // Before exiting, make sure there's a callback scheduled for the next // pending level. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return null; } function flushRoot(root, lanes) { if (lanes !== NoLanes) { markRootEntangled(root, mergeLanes(lanes, SyncLane)); - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if ((executionContext & (RenderContext | CommitContext)) === NoContext) { resetRenderTimer(); @@ -38448,7 +38396,7 @@ function flushRoot(root, lanes) { function getExecutionContext() { return executionContext; } -function batchedUpdates$1(fn, a) { +function batchedUpdates(fn, a) { var prevExecutionContext = executionContext; executionContext |= BatchedContext; @@ -38460,7 +38408,7 @@ function batchedUpdates$1(fn, a) { if ( executionContext === NoContext && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. - !ReactCurrentActQueue$2.isBatchingLegacy + !ReactCurrentActQueue.isBatchingLegacy ) { resetRenderTimer(); flushSyncCallbacksOnlyInLegacyMode(); @@ -38468,16 +38416,16 @@ function batchedUpdates$1(fn, a) { } } function discreteUpdates(fn, a, b, c, d) { - var previousPriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig$3.transition; + var previousPriority = getCurrentUpdatePriority$1(); + var prevTransition = ReactCurrentBatchConfig.transition; try { - ReactCurrentBatchConfig$3.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); return fn(a, b, c, d); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$3.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; if (executionContext === NoContext) { resetRenderTimer(); @@ -38489,7 +38437,7 @@ function discreteUpdates(fn, a, b, c, d) { // eslint-disable-next-line no-redeclare // eslint-disable-next-line no-redeclare -function flushSync(fn) { +function flushSync$1(fn) { // In legacy mode, we flush pending passive effects at the beginning of the // next event, not at the end of the previous one. if ( @@ -38502,11 +38450,11 @@ function flushSync(fn) { var prevExecutionContext = executionContext; executionContext |= BatchedContext; - var prevTransition = ReactCurrentBatchConfig$3.transition; - var previousPriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig.transition; + var previousPriority = getCurrentUpdatePriority$1(); try { - ReactCurrentBatchConfig$3.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); if (fn) { @@ -38516,7 +38464,7 @@ function flushSync(fn) { } } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$3.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch. // Note that this will happen even if batchedUpdates is higher up // the stack. @@ -38538,16 +38486,16 @@ function isInvalidExecutionContextForEventFunction() { function flushControlled(fn) { var prevExecutionContext = executionContext; executionContext |= BatchedContext; - var prevTransition = ReactCurrentBatchConfig$3.transition; - var previousPriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig.transition; + var previousPriority = getCurrentUpdatePriority$1(); try { - ReactCurrentBatchConfig$3.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); fn(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$3.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; executionContext = prevExecutionContext; if (executionContext === NoContext) { @@ -38562,10 +38510,10 @@ function flushControlled(fn) { // performance because this function will get inlined regardless function setRenderLanes(subtreeRenderLanes) { - renderLanes$1 = subtreeRenderLanes; + renderLanes = subtreeRenderLanes; } function getRenderLanes() { - return renderLanes$1; + return renderLanes; } function resetWorkInProgressStack() { @@ -38609,7 +38557,7 @@ function prepareFreshStack(root, lanes) { workInProgressRoot = root; var rootWorkInProgress = createWorkInProgress(root.current, null); workInProgress = rootWorkInProgress; - workInProgressRootRenderLanes = renderLanes$1 = lanes; + workInProgressRootRenderLanes = renderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; workInProgressRootDidAttachPingListener = false; @@ -38652,7 +38600,7 @@ function handleThrow(root, thrownValue) { // when React is executing user code. resetHooksAfterThrow(); resetCurrentFiber(); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner$1.current = null; if (thrownValue === SuspenseException) { // This is a special type of exception used for Suspense. For historical @@ -38767,8 +38715,8 @@ function shouldAttemptToSuspendUntilDataResolves() { function pushDispatcher(container) { prepareRendererToRender(container); - var prevDispatcher = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = ContextOnlyDispatcher; if (prevDispatcher === null) { // The React isomorphic package does not include a default dispatcher. @@ -38782,7 +38730,7 @@ function pushDispatcher(container) { function popDispatcher(prevDispatcher) { resetRendererAfterRender(); - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; } function pushCacheDispatcher() { @@ -38800,7 +38748,7 @@ function popCacheDispatcher(prevCacheDispatcher) { } function markCommitTimeOfFallback() { - globalMostRecentFallbackTime = now(); + globalMostRecentFallbackTime = now$1(); } function markSkippedUpdateLanes(lane) { workInProgressRootSkippedLanes = mergeLanes( @@ -38832,7 +38780,7 @@ function renderDidSuspendDelayIfPossible() { // TODO: Consider unwinding immediately, using the // SuspendedOnHydration mechanism. // $FlowFixMe[incompatible-call] need null check workInProgressRoot - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes); } } function renderDidError(error) { @@ -39053,7 +39001,7 @@ function renderRootConcurrent(root, lanes) { // have added a listener until right here. var onResolution = function () { - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); }; thenable.then(onResolution, onResolution); @@ -39173,10 +39121,10 @@ function performUnitOfWork(unitOfWork) { if ((unitOfWork.mode & ProfileMode) !== NoMode) { startProfilerTimer(unitOfWork); - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true); } else { - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); } resetCurrentFiber(); @@ -39189,7 +39137,7 @@ function performUnitOfWork(unitOfWork) { workInProgress = next; } - ReactCurrentOwner$2.current = null; + ReactCurrentOwner$1.current = null; } function replaySuspendedUnitOfWork(unitOfWork) { @@ -39262,9 +39210,9 @@ function replaySuspendedUnitOfWork(unitOfWork) { unwindInterruptedWork(current, unitOfWork); unitOfWork = workInProgress = resetWorkInProgress( unitOfWork, - renderLanes$1 + renderLanes ); - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); break; } } @@ -39284,7 +39232,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { workInProgress = next; } - ReactCurrentOwner$2.current = null; + ReactCurrentOwner$1.current = null; } function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { @@ -39347,15 +39295,15 @@ function completeUnitOfWork(unitOfWork) { var current = completedWork.alternate; var returnFiber = completedWork.return; // Check if the work completed or if something threw. - if ((completedWork.flags & Incomplete) === NoFlags) { + if ((completedWork.flags & Incomplete) === NoFlags$1) { setCurrentFiber(completedWork); var next = void 0; if ((completedWork.mode & ProfileMode) === NoMode) { - next = completeWork(current, completedWork, renderLanes$1); + next = completeWork(current, completedWork, renderLanes); } else { startProfilerTimer(completedWork); - next = completeWork(current, completedWork, renderLanes$1); // Update render duration assuming we didn't error. + next = completeWork(current, completedWork, renderLanes); // Update render duration assuming we didn't error. stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); } @@ -39402,7 +39350,7 @@ function completeUnitOfWork(unitOfWork) { if (returnFiber !== null) { // Mark the parent fiber as incomplete and clear its subtree flags. returnFiber.flags |= Incomplete; - returnFiber.subtreeFlags = NoFlags; + returnFiber.subtreeFlags = NoFlags$1; returnFiber.deletions = null; } else { // We've unwound all the way to the root. @@ -39434,11 +39382,11 @@ function completeUnitOfWork(unitOfWork) { function commitRoot(root, recoverableErrors, transitions) { // TODO: This no longer makes any sense. We already wrap the mutation and // layout phases. Should be able to remove. - var previousUpdateLanePriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig$3.transition; + var previousUpdateLanePriority = getCurrentUpdatePriority$1(); + var prevTransition = ReactCurrentBatchConfig.transition; try { - ReactCurrentBatchConfig$3.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); commitRootImpl( root, @@ -39447,7 +39395,7 @@ function commitRoot(root, recoverableErrors, transitions) { previousUpdateLanePriority ); } finally { - ReactCurrentBatchConfig$3.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; setCurrentUpdatePriority(previousUpdateLanePriority); } @@ -39546,8 +39494,8 @@ function commitRootImpl( // They're redundant. if ( - (finishedWork.subtreeFlags & PassiveMask) !== NoFlags || - (finishedWork.flags & PassiveMask) !== NoFlags + (finishedWork.subtreeFlags & PassiveMask) !== NoFlags$1 || + (finishedWork.flags & PassiveMask) !== NoFlags$1 ) { if (!rootDoesHavePassiveEffects) { rootDoesHavePassiveEffects = true; @@ -39559,7 +39507,7 @@ function commitRootImpl( // with setTimeout pendingPassiveTransitions = transitions; - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); // This render triggered passive effects: release the root cache pool // *after* passive effects fire to avoid freeing a cache pool that may // be referenced by a node in the tree (HostRoot, Cache boundary etc) @@ -39576,21 +39524,21 @@ function commitRootImpl( var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== - NoFlags; + NoFlags$1; var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== - NoFlags; + NoFlags$1; if (subtreeHasEffects || rootHasEffect) { - var prevTransition = ReactCurrentBatchConfig$3.transition; - ReactCurrentBatchConfig$3.transition = null; - var previousPriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = null; + var previousPriority = getCurrentUpdatePriority$1(); setCurrentUpdatePriority(DiscreteEventPriority); var prevExecutionContext = executionContext; executionContext |= CommitContext; // Reset this to null before calling lifecycles - ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass + ReactCurrentOwner$1.current = null; // The commit phase is broken into several sub-phases. We do a separate pass // of the effect list for each phase: all mutation effects come before all // layout effects, and so on. // The first phase a "before mutation" phase. We use this phase to read the @@ -39622,7 +39570,7 @@ function commitRootImpl( } } - resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after + resetAfterCommit(); // The work-in-progress tree is now the current tree. This must come after // the mutation phase, so that the previous tree is still current during // componentWillUnmount, but before the layout phase, so that the finished // work is current during componentDidMount/Update. @@ -39662,7 +39610,7 @@ function commitRootImpl( executionContext = prevExecutionContext; // Reset the priority to the previous non-sync value. setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$3.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; } else { // No effects. root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were @@ -39716,7 +39664,7 @@ function commitRootImpl( } } - onCommitRoot(finishedWork.stateNode, renderPriorityLevel); + onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel); { if (isDevToolsPresent) { @@ -39725,11 +39673,11 @@ function commitRootImpl( } { - onCommitRoot$1(); + onCommitRoot(); } // Always call this before exiting `commitRoot`, to ensure that any // additional work on this root is scheduled. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if (recoverableErrors !== null) { // There were errors during this render, but recovered from them without @@ -39812,7 +39760,7 @@ function commitRootImpl( if (prevPendingTransitionCallbacks !== null) { currentPendingTransitionCallbacks = null; - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, endTime, @@ -39887,16 +39835,16 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = NoLanes; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); var priority = lowerEventPriority(DefaultEventPriority, renderPriority); - var prevTransition = ReactCurrentBatchConfig$3.transition; - var previousPriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig.transition; + var previousPriority = getCurrentUpdatePriority$1(); try { - ReactCurrentBatchConfig$3.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(priority); return flushPassiveEffectsImpl(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$3.transition = prevTransition; // Once passive effects have run for the tree - giving components a + ReactCurrentBatchConfig.transition = prevTransition; // Once passive effects have run for the tree - giving components a // chance to retain cache instances they use - release the pooled // cache at the root (if there is one) @@ -39912,7 +39860,7 @@ function enqueuePendingPassiveProfilerEffect(fiber) { if (!rootDoesHavePassiveEffects) { rootDoesHavePassiveEffects = true; - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; }); @@ -39996,7 +39944,7 @@ function flushPassiveEffectsImpl() { ) { currentPendingTransitionCallbacks = null; currentEndTime = null; - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, prevEndTime, @@ -40061,7 +40009,7 @@ var onUncaughtError = prepareToThrowUncaughtError; function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { var errorInfo = createCapturedValueAtFiber(error, sourceFiber); var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane); - var root = enqueueUpdate$1(rootFiber, update, SyncLane); + var root = enqueueUpdate(rootFiber, update, SyncLane); var eventTime = requestEventTime(); if (root !== null) { @@ -40106,7 +40054,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) { ) { var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber); var update = createClassErrorUpdate(fiber, errorInfo, SyncLane); - var root = enqueueUpdate$1(fiber, update, SyncLane); + var root = enqueueUpdate(fiber, update, SyncLane); var eventTime = requestEventTime(); if (root !== null) { @@ -40154,7 +40102,7 @@ function attachPingListener(root, wakeable, lanes) { var threadIDs; if (pingCache === null) { - pingCache = root.pingCache = new PossiblyWeakMap$2(); + pingCache = root.pingCache = new PossiblyWeakMap(); threadIDs = new Set(); pingCache.set(wakeable, threadIDs); } else { @@ -40211,7 +40159,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { workInProgressRootExitStatus === RootSuspendedWithDelay || (workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && - now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) + now$1() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) ) { // Force a restart from the root by unwinding the stack. Unless this is // being called from the render phase, because that would cause a crash. @@ -40401,11 +40349,11 @@ function invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) { if ( current !== subtreeRoot && current.child != null && - primarySubtreeFlag !== NoFlags + primarySubtreeFlag !== NoFlags$1 ) { current = current.child; } else { - if ((current.flags & fiberFlags) !== NoFlags) { + if ((current.flags & fiberFlags) !== NoFlags$1) { invokeEffectFn(current); } @@ -40478,12 +40426,12 @@ function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { } } } -var beginWork$1; +var beginWork; if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { var dummyFiber = null; - beginWork$1 = function (current, unitOfWork, lanes) { + beginWork = function (current, unitOfWork, lanes) { // If a component throws an error, we replay it again in a synchronously // dispatched event, so that the debugger will treat it as an uncaught // error See ReactErrorUtils for more information. @@ -40495,7 +40443,7 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { ); try { - return beginWork(current, unitOfWork, lanes); + return beginWork$1(current, unitOfWork, lanes); } catch (originalError) { if ( didSuspendOrErrorWhileHydratingDEV() || @@ -40522,7 +40470,14 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { startProfilerTimer(unitOfWork); } // Run beginWork again. - invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes); + invokeGuardedCallback( + null, + beginWork$1, + null, + current, + unitOfWork, + lanes + ); if (hasCaughtError()) { var replayError = clearCaughtError(); @@ -40545,7 +40500,7 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { } }; } else { - beginWork$1 = beginWork; + beginWork = beginWork$1; } var didWarnAboutUpdateInRender = false; @@ -40618,32 +40573,32 @@ function restorePendingUpdaters(root, lanes) { } var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot] -function scheduleCallback$2(priorityLevel, callback) { +function scheduleCallback(priorityLevel, callback) { { // If we're currently inside an `act` scope, bypass Scheduler and push to // the `act` queue instead. - var actQueue = ReactCurrentActQueue$2.current; + var actQueue = ReactCurrentActQueue.current; if (actQueue !== null) { actQueue.push(callback); return fakeActCallbackNode; } else { - return scheduleCallback(priorityLevel, callback); + return scheduleCallback$2(priorityLevel, callback); } } } -function cancelCallback$1(callbackNode) { +function cancelCallback(callbackNode) { if (callbackNode === fakeActCallbackNode) { return; } // In production, always call Scheduler. This function will be stripped out. - return cancelCallback(callbackNode); + return cancelCallback$1(callbackNode); } function shouldForceFlushFallbacksInDEV() { // Never force flush in production. This function should get stripped out. - return ReactCurrentActQueue$2.current !== null; + return ReactCurrentActQueue.current !== null; } function warnIfUpdatesNotWrappedWithActDEV(fiber) { @@ -40677,7 +40632,7 @@ function warnIfUpdatesNotWrappedWithActDEV(fiber) { } } - if (ReactCurrentActQueue$2.current === null) { + if (ReactCurrentActQueue.current === null) { var previousFiber = current; try { @@ -40712,7 +40667,7 @@ function warnIfSuspenseResolutionNotWrappedWithActDEV(root) { if ( root.tag !== LegacyRoot && isConcurrentActEnvironment() && - ReactCurrentActQueue$2.current === null + ReactCurrentActQueue.current === null ) { error( "A suspended resource finished loading inside a test, but the event " + @@ -40918,7 +40873,7 @@ var scheduleRefresh = function (root, update) { var staleFamilies = update.staleFamilies, updatedFamilies = update.updatedFamilies; flushPassiveEffects(); - flushSync(function () { + flushSync$1(function () { scheduleFibersWithFamiliesRecursively( root.current, updatedFamilies, @@ -40937,7 +40892,7 @@ var scheduleRoot = function (root, element) { } flushPassiveEffects(); - flushSync(function () { + flushSync$1(function () { updateContainer(element, root, null, null); }); } @@ -41222,8 +41177,8 @@ function FiberNode(tag, pendingProps, key, mode) { this.dependencies = null; this.mode = mode; // Effects - this.flags = NoFlags; - this.subtreeFlags = NoFlags; + this.flags = NoFlags$1; + this.subtreeFlags = NoFlags$1; this.deletions = null; this.lanes = NoLanes; this.childLanes = NoLanes; @@ -41285,7 +41240,7 @@ var createFiber = function (tag, pendingProps, key, mode) { return new FiberNode(tag, pendingProps, key, mode); }; -function shouldConstruct$1(Component) { +function shouldConstruct(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } @@ -41293,13 +41248,13 @@ function shouldConstruct$1(Component) { function isSimpleFunctionComponent(type) { return ( typeof type === "function" && - !shouldConstruct$1(type) && + !shouldConstruct(type) && type.defaultProps === undefined ); } function resolveLazyComponentTag(Component) { if (typeof Component === "function") { - return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent; + return shouldConstruct(Component) ? ClassComponent : FunctionComponent; } else if (Component !== undefined && Component !== null) { var $$typeof = Component.$$typeof; @@ -41349,9 +41304,9 @@ function createWorkInProgress(current, pendingProps) { workInProgress.type = current.type; // We already have an alternate. // Reset the effect tag. - workInProgress.flags = NoFlags; // The effects are no longer valid. + workInProgress.flags = NoFlags$1; // The effects are no longer valid. - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.deletions = null; { @@ -41434,7 +41389,7 @@ function resetWorkInProgress(workInProgress, renderLanes) { workInProgress.childLanes = NoLanes; workInProgress.lanes = renderLanes; workInProgress.child = null; - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.memoizedProps = null; workInProgress.memoizedState = null; workInProgress.updateQueue = null; @@ -41452,7 +41407,7 @@ function resetWorkInProgress(workInProgress, renderLanes) { workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.deletions = null; workInProgress.memoizedProps = current.memoizedProps; workInProgress.memoizedState = current.memoizedState; @@ -41528,7 +41483,7 @@ function createFiberFromTypeAndProps( var resolvedType = type; if (typeof type === "function") { - if (shouldConstruct$1(type)) { + if (shouldConstruct(type)) { fiberTag = ClassComponent; { @@ -42050,9 +42005,9 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-bc38a3dfa-20230220"; +var ReactVersion = "18.3.0-www-classic-6b6d0617e-20230220"; -function createPortal( +function createPortal$1( children, containerInfo, // TODO: figure out the API for cross-renderer implementation. implementation @@ -42237,7 +42192,7 @@ function createHydrationContainer( var update = createUpdate(eventTime, lane); update.callback = callback !== undefined && callback !== null ? callback : null; - enqueueUpdate$1(current, update, lane); + enqueueUpdate(current, update, lane); scheduleInitialHydrationOnRoot(root, lane, eventTime); return root; } @@ -42298,7 +42253,7 @@ function updateContainer(element, container, parentComponent, callback) { update.callback = callback; } - var root = enqueueUpdate$1(current$1, update, lane); + var root = enqueueUpdate(current$1, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, current$1, lane, eventTime); @@ -42323,7 +42278,7 @@ function getPublicRootInstance(container) { return containerFiber.child.stateNode; } } -function attemptSynchronousHydration$1(fiber) { +function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case HostRoot: { var root = fiber.stateNode; @@ -42338,7 +42293,7 @@ function attemptSynchronousHydration$1(fiber) { } case SuspenseComponent: { - flushSync(function () { + flushSync$1(function () { var root = enqueueConcurrentRenderForLane(fiber, SyncLane); if (root !== null) { @@ -42376,7 +42331,7 @@ function markRetryLaneIfNotHydrated(fiber, retryLane) { } } -function attemptDiscreteHydration$1(fiber) { +function attemptDiscreteHydration(fiber) { if (fiber.tag !== SuspenseComponent) { // We ignore HostRoots here because we can't increase // their priority and they should not suspend on I/O, @@ -42395,7 +42350,7 @@ function attemptDiscreteHydration$1(fiber) { markRetryLaneIfNotHydrated(fiber, lane); } -function attemptContinuousHydration$1(fiber) { +function attemptContinuousHydration(fiber) { if (fiber.tag !== SuspenseComponent) { // We ignore HostRoots here because we can't increase // their priority and they should not suspend on I/O, @@ -42414,7 +42369,7 @@ function attemptContinuousHydration$1(fiber) { markRetryLaneIfNotHydrated(fiber, lane); } -function attemptHydrationAtCurrentPriority$1(fiber) { +function attemptHydrationAtCurrentPriority(fiber) { if (fiber.tag !== SuspenseComponent) { // We ignore HostRoots here because we can't increase // their priority other than synchronously flush it. @@ -42740,7 +42695,7 @@ function injectIntoDevTools(devToolsConfig) { }); } -var Dispatcher$1 = Internals.Dispatcher; +var Dispatcher = Internals.Dispatcher; /* global reportError */ var defaultOnRecoverableError = @@ -42782,8 +42737,6 @@ ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = // $Flo "one argument." ); } - - var container = root.containerInfo; } updateContainer(children, root, null, null); @@ -42816,14 +42769,14 @@ ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = // $F } } - flushSync(function () { + flushSync$1(function () { updateContainer(null, root, null, null); }); unmarkContainerAsRoot(container); } }; -function createRoot(container, options) { +function createRoot$1(container, options) { if (!isValidContainer(container)) { throw new Error("createRoot(...): Target container is not a DOM element."); } @@ -42893,7 +42846,7 @@ function createRoot(container, options) { { // Set the default dispatcher to the client dispatcher - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; } var rootContainerElement = @@ -42914,7 +42867,7 @@ function scheduleHydration(target) { } // $FlowFixMe[prop-missing] found when upgrading Flow ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = scheduleHydration; -function hydrateRoot(container, initialChildren, options) { +function hydrateRoot$1(container, initialChildren, options) { if (!isValidContainer(container)) { throw new Error("hydrateRoot(...): Target container is not a DOM element."); } @@ -42978,7 +42931,7 @@ function hydrateRoot(container, initialChildren, options) { { // Set the default dispatcher to the client dispatcher - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; } // This can't be a comment node since hydration doesn't work on comment nodes anyway. listenToAllSupportedEvents(container); @@ -43034,7 +42987,7 @@ function warnIfReactDOMContainerInDEV(container) { } } -var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner; +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; var topLevelUpdateWarnings; { @@ -43058,7 +43011,7 @@ var topLevelUpdateWarnings; var isRootRenderedBySomeReact = !!container._reactRootContainer; var rootEl = getReactRootElementInContainer(container); - var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl)); + var hasNonRootReactChild = !!(rootEl && getInstanceFromNode(rootEl)); if (hasNonRootReactChild && !isRootRenderedBySomeReact) { error( @@ -43123,7 +43076,7 @@ function legacyCreateRootFromDOMContainer( container.nodeType === COMMENT_NODE ? container.parentNode : container; // $FlowFixMe[incompatible-call] listenToAllSupportedEvents(rootContainerElement); - flushSync(); + flushSync$1(); return root; } else { // First clear any existing content. @@ -43158,14 +43111,14 @@ function legacyCreateRootFromDOMContainer( listenToAllSupportedEvents(_rootContainerElement); // Initial mount should not be batched. - flushSync(function () { + flushSync$1(function () { updateContainer(initialChildren, _root, parentComponent, callback); }); return _root; } } -function warnOnInvalidCallback$1(callback, callerName) { +function warnOnInvalidCallback(callback, callerName) { { if (callback !== null && typeof callback !== "function") { error( @@ -43187,7 +43140,7 @@ function legacyRenderSubtreeIntoContainer( ) { { topLevelUpdateWarnings(container); - warnOnInvalidCallback$1(callback === undefined ? null : callback, "render"); + warnOnInvalidCallback(callback === undefined ? null : callback, "render"); } var maybeRoot = container._reactRootContainer; @@ -43222,7 +43175,7 @@ function legacyRenderSubtreeIntoContainer( function findDOMNode(componentOrElement) { { - var owner = ReactCurrentOwner$3.current; + var owner = ReactCurrentOwner.current; if (owner !== null && owner.stateNode !== null) { var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender; @@ -43380,7 +43333,7 @@ function unmountComponentAtNode(container) { if (container._reactRootContainer) { { var rootEl = getReactRootElementInContainer(container); - var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl); + var renderedByDifferentReact = rootEl && !getInstanceFromNode(rootEl); if (renderedByDifferentReact) { error( @@ -43390,7 +43343,7 @@ function unmountComponentAtNode(container) { } } // Unmount should not be batched. - flushSync(function () { + flushSync$1(function () { legacyRenderSubtreeIntoContainer( null, null, @@ -43410,7 +43363,7 @@ function unmountComponentAtNode(container) { { var _rootEl = getReactRootElementInContainer(container); - var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl)); // Check if the container itself is a React root node. + var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode(_rootEl)); // Check if the container itself is a React root node. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && @@ -43536,7 +43489,7 @@ function createEventHandle(type, options) { } } -function preinit$1() { +function preinit() { var dispatcher = Internals.Dispatcher.current; if (dispatcher) { @@ -43545,7 +43498,7 @@ function preinit$1() { // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. } -function preload$1() { +function preload() { var dispatcher = Internals.Dispatcher.current; if (dispatcher) { @@ -43555,11 +43508,11 @@ function preload$1() { // so we favor silent bailout over warning or erroring. } -setAttemptSynchronousHydration(attemptSynchronousHydration$1); -setAttemptDiscreteHydration(attemptDiscreteHydration$1); -setAttemptContinuousHydration(attemptContinuousHydration$1); -setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1); -setGetCurrentUpdatePriority(getCurrentUpdatePriority); +setAttemptSynchronousHydration(attemptSynchronousHydration); +setAttemptDiscreteHydration(attemptDiscreteHydration); +setAttemptContinuousHydration(attemptContinuousHydration); +setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority); +setGetCurrentUpdatePriority(getCurrentUpdatePriority$1); setAttemptHydrationAtPriority(runWithPriority); { @@ -43579,10 +43532,10 @@ setAttemptHydrationAtPriority(runWithPriority); } } -setRestoreImplementation(restoreControlledState$3); -setBatchingImplementation(batchedUpdates$1, discreteUpdates, flushSync); +setRestoreImplementation(restoreControlledState); +setBatchingImplementation(batchedUpdates, discreteUpdates, flushSync$1); -function createPortal$1(children, container) { +function createPortal(children, container) { var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; @@ -43591,7 +43544,7 @@ function createPortal$1(children, container) { } // TODO: pass ReactDOM portal implementation as third argument // $FlowFixMe The Flow type is opaque but there's no way to actually create it. - return createPortal(children, container, null, key); + return createPortal$1(children, container, null, key); } function renderSubtreeIntoContainer( @@ -43608,7 +43561,7 @@ function renderSubtreeIntoContainer( ); } -function createRoot$1(container, options) { +function createRoot(container, options) { { if (!Internals.usingClientEntryPoint && !false) { error( @@ -43618,10 +43571,10 @@ function createRoot$1(container, options) { } } - return createRoot(container, options); + return createRoot$1(container, options); } -function hydrateRoot$1(container, initialChildren, options) { +function hydrateRoot(container, initialChildren, options) { { if (!Internals.usingClientEntryPoint && !false) { error( @@ -43631,13 +43584,13 @@ function hydrateRoot$1(container, initialChildren, options) { } } - return hydrateRoot(container, initialChildren, options); + return hydrateRoot$1(container, initialChildren, options); } // Overload the definition to the two valid signatures. // Warning, this opts-out of checking the function body. // eslint-disable-next-line no-redeclare // eslint-disable-next-line no-redeclare -function flushSync$1(fn) { +function flushSync(fn) { { if (isAlreadyRendering()) { error( @@ -43648,17 +43601,17 @@ function flushSync$1(fn) { } } - return flushSync(fn); + return flushSync$1(fn); } // This is an array for better minification. Internals.Events = [ - getInstanceFromNode$1, + getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, - batchedUpdates$1 + batchedUpdates ]; var foundDevTools = injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, @@ -43701,17 +43654,17 @@ assign(Internals, { }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; -exports.createPortal = createPortal$1; -exports.createRoot = createRoot$1; +exports.createPortal = createPortal; +exports.createRoot = createRoot; exports.findDOMNode = findDOMNode; -exports.flushSync = flushSync$1; +exports.flushSync = flushSync; exports.hydrate = hydrate; -exports.hydrateRoot = hydrateRoot$1; -exports.preinit = preinit$1; -exports.preload = preload$1; +exports.hydrateRoot = hydrateRoot; +exports.preinit = preinit; +exports.preload = preload; exports.render = render; exports.unmountComponentAtNode = unmountComponentAtNode; -exports.unstable_batchedUpdates = batchedUpdates$1; +exports.unstable_batchedUpdates = batchedUpdates; exports.unstable_createEventHandle = createEventHandle; exports.unstable_flushControlled = flushControlled; exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer; diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 6c0848c46c..44a198af1c 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -143,8 +143,6 @@ var disableInputAttributeSyncing = dynamicFeatureFlags.disableInputAttributeSyncing, enableTrustedTypesIntegration = dynamicFeatureFlags.enableTrustedTypesIntegration, - disableSchedulerTimeoutBasedOnReactExpirationTime = - dynamicFeatureFlags.disableSchedulerTimeoutBasedOnReactExpirationTime, replayFailedUnitOfWorkWithInvokeGuardedCallback = dynamicFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback, enableFilterEmptyStringAttributesDOM = @@ -306,7 +304,7 @@ function getClosestInstanceFromNode(targetNode) { * instance, or null if the node was not rendered by this React. */ -function getInstanceFromNode(node) { +function getInstanceFromNode$1(node) { var inst = node[internalInstanceKey] || node[internalContainerInstanceKey]; if (inst) { @@ -427,7 +425,7 @@ var registrationNameDependencies = {}; /** * Mapping from lowercase registration names to the properly cased version, * used to warn in the case of missing event handlers. Available - * only in true. + * only in __DEV__. * @type {Object} */ @@ -1637,7 +1635,7 @@ function reenableLogs() { } } -var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; +var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher; var prefix; function describeBuiltInComponentFrame(name, source, ownerFn) { { @@ -1658,8 +1656,8 @@ var reentry = false; var componentFrameCache; { - var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; - componentFrameCache = new PossiblyWeakMap(); + var PossiblyWeakMap$2 = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap$2(); } function describeNativeComponentFrame(fn, construct) { @@ -1684,10 +1682,10 @@ function describeNativeComponentFrame(fn, construct) { var previousDispatcher; { - previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function + previousDispatcher = ReactCurrentDispatcher$2.current; // Set the dispatcher in DEV because this might be call in the render function // for warnings. - ReactCurrentDispatcher.current = null; + ReactCurrentDispatcher$2.current = null; disableLogs(); } @@ -1801,7 +1799,7 @@ function describeNativeComponentFrame(fn, construct) { reentry = false; { - ReactCurrentDispatcher.current = previousDispatcher; + ReactCurrentDispatcher$2.current = previousDispatcher; reenableLogs(); } @@ -1831,7 +1829,7 @@ function describeFunctionComponentFrame(fn, source, ownerFn) { } } -function shouldConstruct(Component) { +function shouldConstruct$1(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } @@ -1843,7 +1841,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { if (typeof type === "function") { { - return describeNativeComponentFrame(type, shouldConstruct(type)); + return describeNativeComponentFrame(type, shouldConstruct$1(type)); } } @@ -1889,9 +1887,6 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { } function describeFiber(fiber) { - var owner = fiber._debugOwner ? fiber._debugOwner.type : null; - var source = fiber._debugSource; - switch (fiber.tag) { case HostHoistable: case HostSingleton: @@ -1940,7 +1935,7 @@ function getStackByFiberInDevAndProd(workInProgress) { } } -function getWrappedName(outerType, innerType, wrapperName) { +function getWrappedName$1(outerType, innerType, wrapperName) { var displayName = outerType.displayName; if (displayName) { @@ -1953,7 +1948,7 @@ function getWrappedName(outerType, innerType, wrapperName) { : wrapperName; } // Keep in sync with react-reconciler/getComponentNameFromFiber -function getContextName(type) { +function getContextName$1(type) { return type.displayName || "Context"; } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead. @@ -2015,14 +2010,14 @@ function getComponentNameFromType(type) { switch (type.$$typeof) { case REACT_CONTEXT_TYPE: var context = type; - return getContextName(context) + ".Consumer"; + return getContextName$1(context) + ".Consumer"; case REACT_PROVIDER_TYPE: var provider = type; - return getContextName(provider._context) + ".Provider"; + return getContextName$1(provider._context) + ".Provider"; case REACT_FORWARD_REF_TYPE: - return getWrappedName(type, type.render, "ForwardRef"); + return getWrappedName$1(type, type.render, "ForwardRef"); case REACT_MEMO_TYPE: var outerName = type.displayName || null; @@ -2057,7 +2052,7 @@ function getComponentNameFromType(type) { return null; } -function getWrappedName$1(outerType, innerType, wrapperName) { +function getWrappedName(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ""; return ( outerType.displayName || @@ -2065,7 +2060,7 @@ function getWrappedName$1(outerType, innerType, wrapperName) { ); } // Keep in sync with shared/getComponentNameFromType -function getContextName$1(type) { +function getContextName(type) { return type.displayName || "Context"; } @@ -2079,17 +2074,17 @@ function getComponentNameFromFiber(fiber) { case ContextConsumer: var context = type; - return getContextName$1(context) + ".Consumer"; + return getContextName(context) + ".Consumer"; case ContextProvider: var provider = type; - return getContextName$1(provider._context) + ".Provider"; + return getContextName(provider._context) + ".Provider"; case DehydratedFragment: return "DehydratedFragment"; case ForwardRef: - return getWrappedName$1(type, type.render, "ForwardRef"); + return getWrappedName(type, type.render, "ForwardRef"); case Fragment: return "Fragment"; @@ -2164,7 +2159,7 @@ function getComponentNameFromFiber(fiber) { return null; } -var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; var current = null; var isRendering = false; function getCurrentFiberOwnerNameInDevOrNull() { @@ -2196,14 +2191,14 @@ function getCurrentFiberStackInDev() { function resetCurrentFiber() { { - ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFrame$1.getCurrentStack = null; current = null; isRendering = false; } } function setCurrentFiber(fiber) { { - ReactDebugCurrentFrame.getCurrentStack = + ReactDebugCurrentFrame$1.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; current = fiber; isRendering = false; @@ -2444,7 +2439,7 @@ function getActiveElement(doc) { } } -var didWarnValueDefaultValue = false; +var didWarnValueDefaultValue$1 = false; var didWarnCheckedDefaultChecked = false; var didWarnControlledToUncontrolled = false; var didWarnUncontrolledToControlled = false; @@ -2470,7 +2465,7 @@ function isControlled(props) { * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html */ -function getHostProps(element, props) { +function getHostProps$2(element, props) { var node = element; var checked = props.checked; var hostProps = assign({}, props, { @@ -2481,7 +2476,7 @@ function getHostProps(element, props) { }); return hostProps; } -function initWrapperState(element, props) { +function initWrapperState$2(element, props) { { checkControlledValueProps("input", props); @@ -2507,7 +2502,7 @@ function initWrapperState(element, props) { if ( props.value !== undefined && props.defaultValue !== undefined && - !didWarnValueDefaultValue + !didWarnValueDefaultValue$1 ) { error( "%s contains an input of type %s with both value and defaultValue props. " + @@ -2520,7 +2515,7 @@ function initWrapperState(element, props) { props.type ); - didWarnValueDefaultValue = true; + didWarnValueDefaultValue$1 = true; } } @@ -2543,7 +2538,7 @@ function updateChecked(element, props) { setValueForProperty(node, "checked", checked, false); } } -function updateWrapper(element, props) { +function updateWrapper$1(element, props) { var node = element; { @@ -2643,7 +2638,7 @@ function updateWrapper(element, props) { } } } -function postMountWrapper(element, props, isHydrating) { +function postMountWrapper$3(element, props, isHydrating) { var node = element; // Do not assign value if it is already set. This prevents user text input // from being lost during SSR hydration. @@ -2746,9 +2741,9 @@ function postMountWrapper(element, props, isHydrating) { node.name = name; } } -function restoreControlledState(element, props) { +function restoreControlledState$3(element, props) { var node = element; - updateWrapper(node, props); + updateWrapper$1(node, props); updateNamedCousins(node, props); } @@ -2800,7 +2795,7 @@ function updateNamedCousins(rootNode, props) { // was previously checked to update will cause it to be come re-checked // as appropriate. - updateWrapper(otherNode, otherProps); + updateWrapper$1(otherNode, otherProps); } } } // In Chrome, assigning defaultValue to certain input types triggers input validation. @@ -2878,7 +2873,7 @@ function validateProps(element, props) { } } } -function postMountWrapper$1(element, props) { +function postMountWrapper$2(element, props) { // value="" should make a value attribute (#6219) if (props.value != null) { element.setAttribute("value", toString(getToStringValue(props.value))); @@ -2891,10 +2886,10 @@ function isArray(a) { return isArrayImpl(a); } -var didWarnValueDefaultValue$1; +var didWarnValueDefaultValue; { - didWarnValueDefaultValue$1 = false; + didWarnValueDefaultValue = false; } function getDeclarationErrorAddendum() { @@ -3031,7 +3026,7 @@ function initWrapperState$1(element, props) { if ( props.value !== undefined && props.defaultValue !== undefined && - !didWarnValueDefaultValue$1 + !didWarnValueDefaultValue ) { error( "Select elements must be either controlled or uncontrolled " + @@ -3041,11 +3036,11 @@ function initWrapperState$1(element, props) { "https://reactjs.org/link/controlled-components" ); - didWarnValueDefaultValue$1 = true; + didWarnValueDefaultValue = true; } } } -function postMountWrapper$2(element, props) { +function postMountWrapper$1(element, props) { var node = element; node.multiple = !!props.multiple; var value = props.value; @@ -3074,7 +3069,7 @@ function postUpdateWrapper(element, props) { } } } -function restoreControlledState$1(element, props) { +function restoreControlledState$2(element, props) { var node = element; var value = props.value; @@ -3100,7 +3095,7 @@ var didWarnValDefaultVal = false; * `defaultValue` if specified, or the children content (deprecated). */ -function getHostProps$2(element, props) { +function getHostProps(element, props) { var node = element; if (props.dangerouslySetInnerHTML != null) { @@ -3122,7 +3117,7 @@ function getHostProps$2(element, props) { return hostProps; } -function initWrapperState$2(element, props) { +function initWrapperState(element, props) { var node = element; { @@ -3173,7 +3168,7 @@ function initWrapperState$2(element, props) { initialValue: getToStringValue(initialValue) }; } -function updateWrapper$1(element, props) { +function updateWrapper(element, props) { var node = element; var value = getToStringValue(props.value); var defaultValue = getToStringValue(props.defaultValue); @@ -3196,7 +3191,7 @@ function updateWrapper$1(element, props) { node.defaultValue = toString(defaultValue); } } -function postMountWrapper$3(element, props) { +function postMountWrapper(element, props) { var node = element; // This is in postMount because we need access to the DOM node, which is not // available until after the component has mounted. @@ -3211,9 +3206,9 @@ function postMountWrapper$3(element, props) { } } } -function restoreControlledState$2(element, props) { +function restoreControlledState$1(element, props) { // DOM component is still mounted; update - updateWrapper$1(element, props); + updateWrapper(element, props); } var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml"; @@ -3657,7 +3652,7 @@ function dangerousStyleValue(name, value, isCustomProperty) { } var uppercasePattern = /([A-Z])/g; -var msPattern = /^ms-/; +var msPattern$1 = /^ms-/; /** * Hyphenates a camelcased CSS property name, for example: * @@ -3676,7 +3671,7 @@ function hyphenateStyleName(name) { return name .replace(uppercasePattern, "-$1") .toLowerCase() - .replace(msPattern, "-ms-"); + .replace(msPattern$1, "-ms-"); } var warnValidStyle = function () {}; @@ -3684,7 +3679,7 @@ var warnValidStyle = function () {}; { // 'msTransform' is correct, but the other prefixes should be capitalized var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; - var msPattern$1 = /^-ms-/; + var msPattern = /^-ms-/; var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon var badStyleValueWithSemicolonPattern = /;\s*$/; @@ -3711,7 +3706,7 @@ var warnValidStyle = function () {}; name, // As Andi Smith suggests // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix // is converted to lowercase `ms`. - camelize(name.replace(msPattern$1, "ms-")) + camelize(name.replace(msPattern, "ms-")) ); }; @@ -3978,7 +3973,7 @@ var voidElementTags = assign( omittedCloseTags ); -var HTML = "__html"; +var HTML$1 = "__html"; function assertValidProps(tag, props) { if (!props) { @@ -4004,7 +3999,7 @@ function assertValidProps(tag, props) { if ( typeof props.dangerouslySetInnerHTML !== "object" || - !(HTML in props.dangerouslySetInnerHTML) + !(HTML$1 in props.dangerouslySetInnerHTML) ) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + @@ -4619,17 +4614,20 @@ var ariaProperties = { "aria-setsize": 0 }; -var warnedProperties = {}; -var rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); -var rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); +var warnedProperties$1 = {}; +var rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); +var rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); -function validateProperty(tagName, name) { +function validateProperty$1(tagName, name) { { - if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) { + if ( + hasOwnProperty.call(warnedProperties$1, name) && + warnedProperties$1[name] + ) { return true; } - if (rARIACamel.test(name)) { + if (rARIACamel$1.test(name)) { var ariaName = "aria-" + name.slice(4).toLowerCase(); var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName @@ -4642,7 +4640,7 @@ function validateProperty(tagName, name) { name ); - warnedProperties[name] = true; + warnedProperties$1[name] = true; return true; } // aria-* attributes should be lowercase; suggest the lowercase version. @@ -4653,12 +4651,12 @@ function validateProperty(tagName, name) { correctName ); - warnedProperties[name] = true; + warnedProperties$1[name] = true; return true; } } - if (rARIA.test(name)) { + if (rARIA$1.test(name)) { var lowerCasedName = name.toLowerCase(); var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName @@ -4666,7 +4664,7 @@ function validateProperty(tagName, name) { // DOM properties, then it is an invalid aria-* attribute. if (standardName == null) { - warnedProperties[name] = true; + warnedProperties$1[name] = true; return false; } // aria-* attributes should be lowercase; suggest the lowercase version. @@ -4677,7 +4675,7 @@ function validateProperty(tagName, name) { standardName ); - warnedProperties[name] = true; + warnedProperties$1[name] = true; return true; } } @@ -4691,7 +4689,7 @@ function warnInvalidARIAProps(type, props) { var invalidProps = []; for (var key in props) { - var isValid = validateProperty(type, key); + var isValid = validateProperty$1(type, key); if (!isValid) { invalidProps.push(key); @@ -4722,7 +4720,7 @@ function warnInvalidARIAProps(type, props) { } } -function validateProperties(type, props) { +function validateProperties$2(type, props) { if (isCustomComponent(type, props)) { return; } @@ -4759,20 +4757,17 @@ function validateProperties$1(type, props) { } } -var validateProperty$1 = function () {}; +var validateProperty = function () {}; { - var warnedProperties$1 = {}; + var warnedProperties = {}; var EVENT_NAME_REGEX = /^on./; var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; - var rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); - var rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); + var rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); + var rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); - validateProperty$1 = function (tagName, name, value, eventRegistry) { - if ( - hasOwnProperty.call(warnedProperties$1, name) && - warnedProperties$1[name] - ) { + validateProperty = function (tagName, name, value, eventRegistry) { + if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) { return true; } @@ -4785,7 +4780,7 @@ var validateProperty$1 = function () {}; "are not needed/supported by React." ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } // We can't rely on the event system being injected on the server. @@ -4811,14 +4806,14 @@ var validateProperty$1 = function () {}; registrationName ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } if (EVENT_NAME_REGEX.test(name)) { error("Unknown event handler property `%s`. It will be ignored.", name); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } } else if (EVENT_NAME_REGEX.test(name)) { @@ -4833,11 +4828,11 @@ var validateProperty$1 = function () {}; ); } - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } // Let the ARIA attribute hook validate ARIA attributes - if (rARIA$1.test(name) || rARIACamel$1.test(name)) { + if (rARIA.test(name) || rARIACamel.test(name)) { return true; } @@ -4847,7 +4842,7 @@ var validateProperty$1 = function () {}; "For more information, lookup documentation on `dangerouslySetInnerHTML`." ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -4857,7 +4852,7 @@ var validateProperty$1 = function () {}; "Pass individual `aria-` attributes instead." ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -4873,7 +4868,7 @@ var validateProperty$1 = function () {}; typeof value ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -4884,7 +4879,7 @@ var validateProperty$1 = function () {}; name ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -4901,7 +4896,7 @@ var validateProperty$1 = function () {}; standardName ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } } else if (!isReserved && name !== lowerCasedName) { @@ -4917,7 +4912,7 @@ var validateProperty$1 = function () {}; lowerCasedName ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -4953,7 +4948,7 @@ var validateProperty$1 = function () {}; ); } - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } // Now that we've validated casing, do not validate // data types for reserved props @@ -4963,7 +4958,7 @@ var validateProperty$1 = function () {}; } // Warn when a known attribute is a bad type if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { - warnedProperties$1[name] = true; + warnedProperties[name] = true; return false; } // Warn when passing the strings 'false' or 'true' into a boolean prop @@ -4985,7 +4980,7 @@ var validateProperty$1 = function () {}; value ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -4998,7 +4993,7 @@ var warnUnknownProperties = function (type, props, eventRegistry) { var unknownProps = []; for (var key in props) { - var isValid = validateProperty$1(type, key, props[key], eventRegistry); + var isValid = validateProperty(type, key, props[key], eventRegistry); if (!isValid) { unknownProps.push(key); @@ -5031,7 +5026,7 @@ var warnUnknownProperties = function (type, props, eventRegistry) { } }; -function validateProperties$2(type, props, eventRegistry) { +function validateProperties(type, props, eventRegistry) { if (isCustomComponent(type, props)) { return; } @@ -5112,7 +5107,7 @@ var restoreQueue = null; function restoreStateOfTarget(target) { // We perform this translation at the end of the event loop so that we // always receive the correct fiber here - var internalInstance = getInstanceFromNode(target); + var internalInstance = getInstanceFromNode$1(target); if (!internalInstance) { // Unmounted @@ -5201,7 +5196,7 @@ function finishEventHandler() { } } -function batchedUpdates(fn, a, b) { +function batchedUpdates$1(fn, a, b) { if (isInsideEventHandler) { // If we are currently inside another batch, we need to wait until it // fully completes before restoring state. @@ -5445,7 +5440,7 @@ function set(key, value) { key._reactInternals = value; } -var NoFlags = +var NoFlags$1 = /* */ 0; var PerformedWork = @@ -5486,7 +5481,7 @@ var Ref = var Snapshot = /* */ 1024; -var Passive = +var Passive$1 = /* */ 2048; /* Used by Hydrating: 0b000000000000001000000000000; */ @@ -5498,7 +5493,7 @@ var StoreConsistency = /* */ 16384; var LifecycleEffectMask = - Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit) + Passive$1 | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit) var HostEffectMask = /* */ @@ -5566,13 +5561,13 @@ var MutationMask = Visibility; var LayoutMask = Update | Callback | Ref | Visibility; // TODO: Split into PassiveMountMask and PassiveUnmountMask -var PassiveMask = Passive | Visibility | ChildDeletion; // Union of tags that don't get reset on clones. +var PassiveMask = Passive$1 | Visibility | ChildDeletion; // Union of tags that don't get reset on clones. // This allows certain concepts to persist without recalculating them, // e.g. whether a subtree contains passive effects or portals. var StaticMask = LayoutStatic | PassiveStatic | RefStatic; -var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; +var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner; function getNearestMountedFiber(fiber) { var node = fiber; var nearestMounted = fiber; @@ -5585,7 +5580,7 @@ function getNearestMountedFiber(fiber) { do { node = nextNode; - if ((node.flags & (Placement | Hydrating)) !== NoFlags) { + if ((node.flags & (Placement | Hydrating)) !== NoFlags$1) { // This is an insertion or in-progress hydration. The nearest possible // mounted fiber is the parent but we need to continue to figure out // if that one is still mounted. @@ -5633,7 +5628,7 @@ function getContainerFromFiber(fiber) { } function isMounted(component) { { - var owner = ReactCurrentOwner.current; + var owner = ReactCurrentOwner$2.current; if (owner !== null && owner.tag === ClassComponent) { var ownerFiber = owner; @@ -5886,15 +5881,15 @@ function doesFiberContain(parentFiber, childFiber) { } // This module only exists as an ESM wrapper around the external CommonJS -var scheduleCallback = Scheduler.unstable_scheduleCallback; -var cancelCallback = Scheduler.unstable_cancelCallback; +var scheduleCallback$2 = Scheduler.unstable_scheduleCallback; +var cancelCallback$1 = Scheduler.unstable_cancelCallback; var shouldYield = Scheduler.unstable_shouldYield; var requestPaint = Scheduler.unstable_requestPaint; -var now = Scheduler.unstable_now; +var now$1 = Scheduler.unstable_now; var getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel; var ImmediatePriority = Scheduler.unstable_ImmediatePriority; var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority; -var NormalPriority = Scheduler.unstable_NormalPriority; +var NormalPriority$1 = Scheduler.unstable_NormalPriority; var LowPriority = Scheduler.unstable_LowPriority; var IdlePriority = Scheduler.unstable_IdlePriority; // this doesn't actually exist on the scheduler, but it *does* // on scheduler/unstable_mock, which we'll need for internal testing @@ -5981,7 +5976,7 @@ function onScheduleRoot(root, children) { } } } -function onCommitRoot(root, eventPriority) { +function onCommitRoot$1(root, eventPriority) { if (injectedHook && typeof injectedHook.onCommitFiberRoot === "function") { try { var didError = (root.current.flags & DidCapture) === DidCapture; @@ -5999,7 +5994,7 @@ function onCommitRoot(root, eventPriority) { break; case DefaultEventPriority: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; break; case IdleEventPriority: @@ -6007,7 +6002,7 @@ function onCommitRoot(root, eventPriority) { break; default: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; break; } @@ -6017,8 +6012,6 @@ function onCommitRoot(root, eventPriority) { schedulerPriority, didError ); - } else { - injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError); } } catch (err) { { @@ -6388,7 +6381,7 @@ var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. // Based on: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32 -var log = Math.log; +var log$1 = Math.log; var LN2 = Math.LN2; function clz32Fallback(x) { @@ -6398,7 +6391,7 @@ function clz32Fallback(x) { return 32; } - return (31 - ((log(asUint) / LN2) | 0)) | 0; + return (31 - ((log$1(asUint) / LN2) | 0)) | 0; } // If those values are changed that package should be rebuilt and redeployed. @@ -7058,7 +7051,7 @@ function markRootUpdated(root, updateLane, eventTime) { eventTimes[index] = eventTime; } -function markRootSuspended(root, suspendedLanes) { +function markRootSuspended$1(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times. @@ -7335,7 +7328,7 @@ var ContinuousEventPriority = InputContinuousLane; var DefaultEventPriority = DefaultLane; var IdleEventPriority = IdleLane; var currentUpdatePriority = NoLane; -function getCurrentUpdatePriority() { +function getCurrentUpdatePriority$1() { return currentUpdatePriority; } function setCurrentUpdatePriority(newPriority) { @@ -7391,24 +7384,24 @@ var _attemptSynchronousHydration; function setAttemptSynchronousHydration(fn) { _attemptSynchronousHydration = fn; } -function attemptSynchronousHydration(fiber) { +function attemptSynchronousHydration$1(fiber) { _attemptSynchronousHydration(fiber); } -var attemptDiscreteHydration; +var attemptDiscreteHydration$1; function setAttemptDiscreteHydration(fn) { - attemptDiscreteHydration = fn; + attemptDiscreteHydration$1 = fn; } -var attemptContinuousHydration; +var attemptContinuousHydration$1; function setAttemptContinuousHydration(fn) { - attemptContinuousHydration = fn; + attemptContinuousHydration$1 = fn; } -var attemptHydrationAtCurrentPriority; +var attemptHydrationAtCurrentPriority$1; function setAttemptHydrationAtCurrentPriority(fn) { - attemptHydrationAtCurrentPriority = fn; + attemptHydrationAtCurrentPriority$1 = fn; } -var getCurrentUpdatePriority$1; +var getCurrentUpdatePriority; function setGetCurrentUpdatePriority(fn) { - getCurrentUpdatePriority$1 = fn; + getCurrentUpdatePriority = fn; } var attemptHydrationAtPriority; function setAttemptHydrationAtPriority(fn) { @@ -7506,13 +7499,13 @@ function queueDiscreteEvent( // If this was the first discrete event, we might be able to // synchronously unblock it so that preventDefault still works. while (queuedEvent.blockedOn !== null) { - var fiber = getInstanceFromNode(queuedEvent.blockedOn); + var fiber = getInstanceFromNode$1(queuedEvent.blockedOn); if (fiber === null) { break; } - attemptSynchronousHydration(fiber); + attemptSynchronousHydration$1(fiber); if (queuedEvent.blockedOn === null) { // We got unblocked by hydration. Let's try again. @@ -7583,11 +7576,11 @@ function accumulateOrCreateContinuousQueuedReplayableEvent( ); if (blockedOn !== null) { - var fiber = getInstanceFromNode(blockedOn); + var fiber = getInstanceFromNode$1(blockedOn); if (fiber !== null) { // Attempt to increase the priority of this target. - attemptContinuousHydration(fiber); + attemptContinuousHydration$1(fiber); } } @@ -7718,7 +7711,7 @@ function attemptExplicitHydrationTarget(queuedTarget) { // Increase its priority. queuedTarget.blockedOn = instance; attemptHydrationAtPriority(queuedTarget.priority, function () { - attemptHydrationAtCurrentPriority(nearestMounted); + attemptHydrationAtCurrentPriority$1(nearestMounted); }); return; } @@ -7742,7 +7735,7 @@ function queueExplicitHydrationTarget(target) { // TODO: This will read the priority if it's dispatched by the React // event system but not native events. Should read window.event.type, like // we do for updates (getCurrentEventPriority). - var updatePriority = getCurrentUpdatePriority$1(); + var updatePriority = getCurrentUpdatePriority(); var queuedTarget = { blockedOn: null, target: target, @@ -7808,10 +7801,10 @@ function attemptReplayContinuousQueuedEvent(queuedEvent) { } } else { // We're still blocked. Try again later. - var fiber = getInstanceFromNode(nextBlockedOn); + var fiber = getInstanceFromNode$1(nextBlockedOn); if (fiber !== null) { - attemptContinuousHydration(fiber); + attemptContinuousHydration$1(fiber); } queuedEvent.blockedOn = nextBlockedOn; @@ -7842,10 +7835,10 @@ function replayUnblockedEvents() { // We're still blocked. // Increase the priority of this boundary to unblock // the next discrete event. - var fiber = getInstanceFromNode(nextDiscreteEvent.blockedOn); + var fiber = getInstanceFromNode$1(nextDiscreteEvent.blockedOn); if (fiber !== null) { - attemptDiscreteHydration(fiber); + attemptDiscreteHydration$1(fiber); } break; @@ -7984,7 +7977,7 @@ function retryIfBlockedOn(unblocked) { } } -var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; // TODO: can we stop exporting these? +var ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig; // TODO: can we stop exporting these? var _enabled = true; // This is exported in FB builds for use by legacy FB layer infra. // We'd like to remove this but it's not clear if this is safe. @@ -8032,16 +8025,16 @@ function dispatchDiscreteEvent( container, nativeEvent ) { - var previousPriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + var previousPriority = getCurrentUpdatePriority$1(); + var prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { setCurrentUpdatePriority(DiscreteEventPriority); dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig.transition = prevTransition; + ReactCurrentBatchConfig$3.transition = prevTransition; } } @@ -8051,16 +8044,16 @@ function dispatchContinuousEvent( container, nativeEvent ) { - var previousPriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + var previousPriority = getCurrentUpdatePriority$1(); + var prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { setCurrentUpdatePriority(ContinuousEventPriority); dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig.transition = prevTransition; + ReactCurrentBatchConfig$3.transition = prevTransition; } } @@ -8230,10 +8223,10 @@ function dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEve isDiscreteEventThatRequiresHydration(domEventName) ) { while (blockedOn !== null) { - var fiber = getInstanceFromNode(blockedOn); + var fiber = getInstanceFromNode$1(blockedOn); if (fiber !== null) { - attemptSynchronousHydration(fiber); + attemptSynchronousHydration$1(fiber); } var nextBlockedOn = findInstanceBlockingEvent( @@ -8436,7 +8429,7 @@ function getEventPriority(domEventName) { case UserBlockingPriority: return ContinuousEventPriority; - case NormalPriority: + case NormalPriority$1: case LowPriority: // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration. return DefaultEventPriority; @@ -9165,7 +9158,7 @@ var useFallbackCompositionData = var SPACEBAR_CODE = 32; var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); -function registerEvents() { +function registerEvents$3() { registerTwoPhaseEvent("onBeforeInput", [ "compositionend", "keypress", @@ -9549,7 +9542,7 @@ function extractBeforeInputEvent( * `composition` event types. */ -function extractEvents( +function extractEvents$5( dispatchQueue, domEventName, targetInst, @@ -9640,7 +9633,7 @@ function isEventSupported(eventNameSuffix) { return isSupported; } -function registerEvents$1() { +function registerEvents$2() { registerTwoPhaseEvent("onChange", [ "change", "click", @@ -9681,8 +9674,8 @@ function createAndAccumulateChangeEvent( * For IE shims */ -var activeElement = null; -var activeElementInst = null; +var activeElement$1 = null; +var activeElementInst$1 = null; /** * SECTION: handle `change` event */ @@ -9698,7 +9691,7 @@ function manualDispatchChangeEvent(nativeEvent) { var dispatchQueue = []; createAndAccumulateChangeEvent( dispatchQueue, - activeElementInst, + activeElementInst$1, nativeEvent, getEventTarget(nativeEvent) ); // If change and propertychange bubbled, we'd just bind to it like all the @@ -9713,7 +9706,7 @@ function manualDispatchChangeEvent(nativeEvent) { // the component is rerendered and the value reverted before all the event // handlers can run. See https://github.com/facebook/react/issues/708. - batchedUpdates(runEventInBatch, dispatchQueue); + batchedUpdates$1(runEventInBatch, dispatchQueue); } function runEventInBatch(dispatchQueue) { @@ -9753,9 +9746,9 @@ if (canUseDOM) { */ function startWatchingForValueChange(target, targetInst) { - activeElement = target; - activeElementInst = targetInst; - activeElement.attachEvent("onpropertychange", handlePropertyChange); + activeElement$1 = target; + activeElementInst$1 = targetInst; + activeElement$1.attachEvent("onpropertychange", handlePropertyChange); } /** * (For IE <=9) Removes the event listeners from the currently-tracked element, @@ -9763,13 +9756,13 @@ function startWatchingForValueChange(target, targetInst) { */ function stopWatchingForValueChange() { - if (!activeElement) { + if (!activeElement$1) { return; } - activeElement.detachEvent("onpropertychange", handlePropertyChange); - activeElement = null; - activeElementInst = null; + activeElement$1.detachEvent("onpropertychange", handlePropertyChange); + activeElement$1 = null; + activeElementInst$1 = null; } /** * (For IE <=9) Handles a propertychange event, sending a `change` event if @@ -9782,7 +9775,7 @@ function handlePropertyChange(nativeEvent) { return; } - if (getInstIfValueChanged(activeElementInst)) { + if (getInstIfValueChanged(activeElementInst$1)) { manualDispatchChangeEvent(nativeEvent); } } @@ -9822,7 +9815,7 @@ function getTargetInstForInputEventPolyfill(domEventName, targetInst) { // keystroke if user does a key repeat (it'll be a little delayed: right // before the second keystroke). Other input methods (e.g., paste) seem to // fire selectionchange normally. - return getInstIfValueChanged(activeElementInst); + return getInstIfValueChanged(activeElementInst$1); } } /** @@ -9876,7 +9869,7 @@ function handleControlledInputBlur(node) { * - select */ -function extractEvents$1( +function extractEvents$4( dispatchQueue, domEventName, targetInst, @@ -9930,7 +9923,7 @@ function extractEvents$1( } } -function registerEvents$2() { +function registerEvents$1() { registerDirectEvent("onMouseEnter", ["mouseout", "mouseover"]); registerDirectEvent("onMouseLeave", ["mouseout", "mouseover"]); registerDirectEvent("onPointerEnter", ["pointerout", "pointerover"]); @@ -9944,7 +9937,7 @@ function registerEvents$2() { * the `mouseover` top-level event. */ -function extractEvents$2( +function extractEvents$3( dispatchQueue, domEventName, targetInst, @@ -10390,7 +10383,7 @@ function isTextNode(node) { return node && node.nodeType === TEXT_NODE; } -function containsNode(outerNode, innerNode) { +function containsNode$1(outerNode, innerNode) { if (!outerNode || !innerNode) { return false; } else if (outerNode === innerNode) { @@ -10398,7 +10391,7 @@ function containsNode(outerNode, innerNode) { } else if (isTextNode(outerNode)) { return false; } else if (isTextNode(innerNode)) { - return containsNode(outerNode, innerNode.parentNode); + return containsNode$1(outerNode, innerNode.parentNode); } else if ("contains" in outerNode) { return outerNode.contains(innerNode); } else if (outerNode.compareDocumentPosition) { @@ -10412,7 +10405,7 @@ function isInDocument(node) { return ( node && node.ownerDocument && - containsNode(node.ownerDocument.documentElement, node) + containsNode$1(node.ownerDocument.documentElement, node) ); } @@ -10479,7 +10472,7 @@ function getSelectionInformation() { return { focusedElem: focusedElem, selectionRange: hasSelectionCapabilities(focusedElem) - ? getSelection(focusedElem) + ? getSelection$1(focusedElem) : null }; } @@ -10533,7 +10526,7 @@ function restoreSelection(priorSelectionInformation) { * -@return {start: selectionStart, end: selectionEnd} */ -function getSelection(input) { +function getSelection$1(input) { var selection; if ("selectionStart" in input) { @@ -10580,7 +10573,7 @@ function setSelection(input, offsets) { var skipSelectionChangeEvent = canUseDOM && "documentMode" in document && document.documentMode <= 11; -function registerEvents$3() { +function registerEvents() { registerTwoPhaseEvent("onSelect", [ "focusout", "contextmenu", @@ -10594,8 +10587,8 @@ function registerEvents$3() { ]); } -var activeElement$1 = null; -var activeElementInst$1 = null; +var activeElement = null; +var activeElementInst = null; var lastSelection = null; var mouseDown = false; /** @@ -10605,7 +10598,7 @@ var mouseDown = false; * two identical selections on the same node will return identical objects. */ -function getSelection$1(node) { +function getSelection(node) { if ("selectionStart" in node && hasSelectionCapabilities(node)) { return { start: node.selectionStart, @@ -10650,20 +10643,17 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { if ( mouseDown || - activeElement$1 == null || - activeElement$1 !== getActiveElement(doc) + activeElement == null || + activeElement !== getActiveElement(doc) ) { return; } // Only fire when selection has actually changed. - var currentSelection = getSelection$1(activeElement$1); + var currentSelection = getSelection(activeElement); if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { lastSelection = currentSelection; - var listeners = accumulateTwoPhaseListeners( - activeElementInst$1, - "onSelect" - ); + var listeners = accumulateTwoPhaseListeners(activeElementInst, "onSelect"); if (listeners.length > 0) { var event = new SyntheticEvent( @@ -10677,7 +10667,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { event: event, listeners: listeners }); - event.target = activeElement$1; + event.target = activeElement; } } } @@ -10696,7 +10686,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { * - Fires after user input. */ -function extractEvents$3( +function extractEvents$2( dispatchQueue, domEventName, targetInst, @@ -10714,16 +10704,16 @@ function extractEvents$3( isTextInputElement(targetNode) || targetNode.contentEditable === "true" ) { - activeElement$1 = targetNode; - activeElementInst$1 = targetInst; + activeElement = targetNode; + activeElementInst = targetInst; lastSelection = null; } break; case "focusout": - activeElement$1 = null; - activeElementInst$1 = null; + activeElement = null; + activeElementInst = null; lastSelection = null; break; // Don't fire the event while the user is dragging. This matches the @@ -10888,7 +10878,7 @@ function registerSimpleEvents() { registerSimpleEvent(TRANSITION_END, "onTransitionEnd"); } -function extractEvents$4( +function extractEvents$1( dispatchQueue, domEventName, targetInst, @@ -11079,12 +11069,12 @@ function extractEvents$4( } registerSimpleEvents(); -registerEvents$2(); registerEvents$1(); -registerEvents$3(); +registerEvents$2(); registerEvents(); +registerEvents$3(); -function extractEvents$5( +function extractEvents( dispatchQueue, domEventName, targetInst, @@ -11099,7 +11089,7 @@ function extractEvents$5( // should probably be inlined somewhere and have its logic // be core the to event system. This would potentially allow // us to ship builds of React without the polyfilled plugins below. - extractEvents$4( + extractEvents$1( dispatchQueue, domEventName, targetInst, @@ -11128,28 +11118,28 @@ function extractEvents$5( // can't foresee right now. if (shouldProcessPolyfillPlugins) { - extractEvents$2( + extractEvents$3( dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget ); - extractEvents$1( + extractEvents$4( dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget ); - extractEvents$3( + extractEvents$2( dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget ); - extractEvents( + extractEvents$5( dispatchQueue, domEventName, targetInst, @@ -11261,7 +11251,7 @@ function dispatchEventsForPlugins( ) { var nativeEventTarget = getEventTarget(nativeEvent); var dispatchQueue = []; - extractEvents$5( + extractEvents( dispatchQueue, domEventName, targetInst, @@ -11623,7 +11613,7 @@ function dispatchEventForPluginEventSystem( } } - batchedUpdates(function () { + batchedUpdates$1(function () { return dispatchEventsForPlugins( domEventName, eventSystemFlags, @@ -11991,11 +11981,11 @@ var didWarnInvalidHydration = false; var didWarnScriptTags = false; var DANGEROUSLY_SET_INNER_HTML = "dangerouslySetInnerHTML"; var SUPPRESS_CONTENT_EDITABLE_WARNING = "suppressContentEditableWarning"; -var SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning"; +var SUPPRESS_HYDRATION_WARNING$1 = "suppressHydrationWarning"; var AUTOFOCUS = "autoFocus"; var CHILDREN = "children"; -var STYLE = "style"; -var HTML$1 = "__html"; +var STYLE$1 = "style"; +var HTML = "__html"; var warnedUnknownTags; var validatePropertiesInDevelopment; var warnForPropDifference; @@ -12017,9 +12007,9 @@ var normalizeHTML; }; validatePropertiesInDevelopment = function (type, props) { - validateProperties(type, props); + validateProperties$2(type, props); validateProperties$1(type, props); - validateProperties$2(type, props, { + validateProperties(type, props, { registrationNameDependencies: registrationNameDependencies, possibleRegistrationNames: possibleRegistrationNames }); @@ -12164,7 +12154,7 @@ function getOwnerDocumentFromRootContainer(rootContainerElement) { : rootContainerElement.ownerDocument; } -function noop() {} +function noop$1() {} function trapClickOnNonInteractiveElement(node) { // Mobile Safari does not fire properly bubble click events on @@ -12176,7 +12166,7 @@ function trapClickOnNonInteractiveElement(node) { // bookkeeping for it. Not sure if we need to clear it when the listener is // removed. // TODO: Only do this for the relevant Safaris maybe? - node.onclick = noop; + node.onclick = noop$1; } function setInitialDOMProperties( @@ -12192,7 +12182,7 @@ function setInitialDOMProperties( var nextProp = nextProps[propKey]; - if (propKey === STYLE) { + if (propKey === STYLE$1) { { if (nextProp) { // Freeze the next style object so that we can assume it won't be @@ -12203,7 +12193,7 @@ function setInitialDOMProperties( setValueForStyles(domElement, nextProp); } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { - var nextHtml = nextProp ? nextProp[HTML$1] : undefined; + var nextHtml = nextProp ? nextProp[HTML] : undefined; if (nextHtml != null) { setInnerHTML(domElement, nextHtml); @@ -12229,7 +12219,7 @@ function setInitialDOMProperties( } } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || - propKey === SUPPRESS_HYDRATION_WARNING + propKey === SUPPRESS_HYDRATION_WARNING$1 ); else if (propKey === AUTOFOCUS); else if (registrationNameDependencies.hasOwnProperty(propKey)) { @@ -12259,7 +12249,7 @@ function updateDOMProperties( var propKey = updatePayload[i]; var propValue = updatePayload[i + 1]; - if (propKey === STYLE) { + if (propKey === STYLE$1) { setValueForStyles(domElement, propValue); } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { setInnerHTML(domElement, propValue); @@ -12444,8 +12434,8 @@ function setInitialProperties(domElement, tag, rawProps) { break; case "input": - initWrapperState(domElement, rawProps); - props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble + initWrapperState$2(domElement, rawProps); + props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble // listeners still fire for the invalid event. listenToNonDelegatedEvent("invalid", domElement); @@ -12465,8 +12455,8 @@ function setInitialProperties(domElement, tag, rawProps) { break; case "textarea": - initWrapperState$2(domElement, rawProps); - props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble + initWrapperState(domElement, rawProps); + props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble // listeners still fire for the invalid event. listenToNonDelegatedEvent("invalid", domElement); @@ -12484,22 +12474,22 @@ function setInitialProperties(domElement, tag, rawProps) { // TODO: Make sure we check if this is still unmounted or do any clean // up necessary since we never stop tracking anymore. track(domElement); - postMountWrapper(domElement, rawProps, false); + postMountWrapper$3(domElement, rawProps, false); break; case "textarea": // TODO: Make sure we check if this is still unmounted or do any clean // up necessary since we never stop tracking anymore. track(domElement); - postMountWrapper$3(domElement); + postMountWrapper(domElement); break; case "option": - postMountWrapper$1(domElement, rawProps); + postMountWrapper$2(domElement, rawProps); break; case "select": - postMountWrapper$2(domElement, rawProps); + postMountWrapper$1(domElement, rawProps); break; default: @@ -12523,8 +12513,8 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { switch (tag) { case "input": - lastProps = getHostProps(domElement, lastRawProps); - nextProps = getHostProps(domElement, nextRawProps); + lastProps = getHostProps$2(domElement, lastRawProps); + nextProps = getHostProps$2(domElement, nextRawProps); updatePayload = []; break; @@ -12535,8 +12525,8 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { break; case "textarea": - lastProps = getHostProps$2(domElement, lastRawProps); - nextProps = getHostProps$2(domElement, nextRawProps); + lastProps = getHostProps(domElement, lastRawProps); + nextProps = getHostProps(domElement, nextRawProps); updatePayload = []; break; @@ -12569,7 +12559,7 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { continue; } - if (propKey === STYLE) { + if (propKey === STYLE$1) { var lastStyle = lastProps[propKey]; for (styleName in lastStyle) { @@ -12584,7 +12574,7 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN); else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || - propKey === SUPPRESS_HYDRATION_WARNING + propKey === SUPPRESS_HYDRATION_WARNING$1 ); else if (propKey === AUTOFOCUS); else if (registrationNameDependencies.hasOwnProperty(propKey)) { @@ -12613,7 +12603,7 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { continue; } - if (propKey === STYLE) { + if (propKey === STYLE$1) { { if (nextProp) { // Freeze the next style object so that we can assume it won't be @@ -12662,8 +12652,8 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { styleUpdates = nextProp; } } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { - var nextHtml = nextProp ? nextProp[HTML$1] : undefined; - var lastHtml = lastProp ? lastProp[HTML$1] : undefined; + var nextHtml = nextProp ? nextProp[HTML] : undefined; + var lastHtml = lastProp ? lastProp[HTML] : undefined; if (nextHtml != null) { if (lastHtml !== nextHtml) { @@ -12676,7 +12666,7 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { } } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || - propKey === SUPPRESS_HYDRATION_WARNING + propKey === SUPPRESS_HYDRATION_WARNING$1 ); else if (registrationNameDependencies.hasOwnProperty(propKey)) { if (nextProp != null) { @@ -12705,10 +12695,10 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps) { if (styleUpdates) { { - validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]); + validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE$1]); } - (updatePayload = updatePayload || []).push(STYLE, styleUpdates); + (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates); } return updatePayload; @@ -12748,11 +12738,11 @@ function updateProperties( // Update the wrapper around inputs *after* updating props. This has to // happen after `updateDOMProperties`. Otherwise HTML5 input validations // raise warnings and prevent the new value from being assigned. - updateWrapper(domElement, nextRawProps); + updateWrapper$1(domElement, nextRawProps); break; case "textarea": - updateWrapper$1(domElement, nextRawProps); + updateWrapper(domElement, nextRawProps); break; case "select": @@ -12837,7 +12827,7 @@ function diffHydratedProperties( break; case "input": - initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble + initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble // listeners still fire for the invalid event. listenToNonDelegatedEvent("invalid", domElement); @@ -12855,7 +12845,7 @@ function diffHydratedProperties( break; case "textarea": - initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble + initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble // listeners still fire for the invalid event. listenToNonDelegatedEvent("invalid", domElement); @@ -12912,7 +12902,7 @@ function diffHydratedProperties( // TODO: Should we use domElement.firstChild.nodeValue to compare? if (typeof nextProp === "string") { if (domElement.textContent !== nextProp) { - if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) { + if (rawProps[SUPPRESS_HYDRATION_WARNING$1] !== true) { checkForUnmatchedText( domElement.textContent, nextProp, @@ -12925,7 +12915,7 @@ function diffHydratedProperties( } } else if (typeof nextProp === "number") { if (domElement.textContent !== "" + nextProp) { - if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) { + if (rawProps[SUPPRESS_HYDRATION_WARNING$1] !== true) { checkForUnmatchedText( domElement.textContent, nextProp, @@ -12959,10 +12949,10 @@ function diffHydratedProperties( ? null : getPropertyInfo(propKey); - if (rawProps[SUPPRESS_HYDRATION_WARNING] === true); + if (rawProps[SUPPRESS_HYDRATION_WARNING$1] === true); else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || - propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated + propKey === SUPPRESS_HYDRATION_WARNING$1 || // Controlled attributes are not validated // TODO: Only ignore them on controlled tags. propKey === "value" || propKey === "checked" || @@ -12970,7 +12960,7 @@ function diffHydratedProperties( ); else if (propKey === DANGEROUSLY_SET_INNER_HTML) { var serverHTML = domElement.innerHTML; - var nextHtml = nextProp ? nextProp[HTML$1] : undefined; + var nextHtml = nextProp ? nextProp[HTML] : undefined; if (nextHtml != null) { var expectedHTML = normalizeHTML(domElement, nextHtml); @@ -12979,7 +12969,7 @@ function diffHydratedProperties( warnForPropDifference(propKey, serverHTML, expectedHTML); } } - } else if (propKey === STYLE) { + } else if (propKey === STYLE$1) { // $FlowFixMe - Should be inferred as not undefined. extraAttributeNames.delete(propKey); @@ -13101,7 +13091,7 @@ function diffHydratedProperties( if ( // $FlowFixMe - Should be inferred as not undefined. extraAttributeNames.size > 0 && - rawProps[SUPPRESS_HYDRATION_WARNING] !== true + rawProps[SUPPRESS_HYDRATION_WARNING$1] !== true ) { // $FlowFixMe - Should be inferred as not undefined. warnForExtraAttributes(extraAttributeNames); @@ -13114,14 +13104,14 @@ function diffHydratedProperties( // TODO: Make sure we check if this is still unmounted or do any clean // up necessary since we never stop tracking anymore. track(domElement); - postMountWrapper(domElement, rawProps, true); + postMountWrapper$3(domElement, rawProps, true); break; case "textarea": // TODO: Make sure we check if this is still unmounted or do any clean // up necessary since we never stop tracking anymore. track(domElement); - postMountWrapper$3(domElement); + postMountWrapper(domElement); break; case "select": @@ -13216,18 +13206,18 @@ function warnForInsertedHydratedText(parentNode, text) { ); } } -function restoreControlledState$3(domElement, tag, props) { +function restoreControlledState(domElement, tag, props) { switch (tag) { case "input": - restoreControlledState(domElement, props); + restoreControlledState$3(domElement, props); return; case "textarea": - restoreControlledState$2(domElement, props); + restoreControlledState$1(domElement, props); return; case "select": - restoreControlledState$1(domElement, props); + restoreControlledState$2(domElement, props); return; } } @@ -14039,7 +14029,7 @@ function popHostContext(fiber) { pop(contextFiberStackCursor, fiber); } -var Dispatcher = Internals.Dispatcher; +var Dispatcher$1 = Internals.Dispatcher; // In the future this may need to change, especially when modules / scripts are supported // It is valid to preload even when we aren't actively rendering. For cases where Float functions are // called when there is no rendering we track the last used document. It is not safe to insert @@ -14053,19 +14043,19 @@ var previousDispatcher = null; function prepareToRenderResources(rootContainer) { var rootNode = getHoistableRoot(rootContainer); lastCurrentDocument = getDocumentFromRoot(rootNode); - previousDispatcher = Dispatcher.current; - Dispatcher.current = ReactDOMClientDispatcher; + previousDispatcher = Dispatcher$1.current; + Dispatcher$1.current = ReactDOMClientDispatcher; } function cleanupAfterRenderResources() { - Dispatcher.current = previousDispatcher; + Dispatcher$1.current = previousDispatcher; previousDispatcher = null; } // We want this to be the default dispatcher on ReactDOMSharedInternals but we don't want to mutate // internals in Module scope. Instead we export it and Internals will import it. There is already a cycle // from Internals -> ReactDOM -> FloatClient -> Internals so this doesn't introduce a new one. var ReactDOMClientDispatcher = { - preload: preload, - preinit: preinit + preload: preload$1, + preinit: preinit$1 }; // global maps of Resources var preloadPropsMap = new Map(); // getRootNode is missing from IE and old jsdom versions @@ -14109,7 +14099,7 @@ function getDocumentFromRoot(root) { // ReactDOM.Preload // -------------------------------------- -function preload(href, options) { +function preload$1(href, options) { { validatePreloadArguments(href, options); } @@ -14171,7 +14161,7 @@ function preloadPropsFromPreloadOptions(href, as, options) { // ReactDOM.preinit // -------------------------------------- -function preinit(href, options) { +function preinit$1(href, options) { { validatePreinitArguments(href, options); } @@ -14964,12 +14954,12 @@ function escapeSelectorAttributeValueInsideDoubleQuotes(value) { ); } -var SUPPRESS_HYDRATION_WARNING$1 = "suppressHydrationWarning"; +var SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning"; var SUSPENSE_START_DATA = "$"; var SUSPENSE_END_DATA = "/$"; var SUSPENSE_PENDING_START_DATA = "$?"; var SUSPENSE_FALLBACK_START_DATA = "$!"; -var STYLE$1 = "style"; +var STYLE = "style"; var eventsEnabled = null; var selectionInformation = null; function getRootHostContext(rootContainerInstance) { @@ -15207,7 +15197,7 @@ var localRequestAnimationFrame = typeof requestAnimationFrame === "function" ? requestAnimationFrame : scheduleTimeout; -function getInstanceFromNode$1(node) { +function getInstanceFromNode(node) { return getClosestInstanceFromNode(node) || null; } function preparePortalMount(portalInstance) { @@ -15411,7 +15401,7 @@ function clearSuspenseBoundaryFromContainer(container, suspenseInstance) { clearSuspenseBoundary(container.parentNode, suspenseInstance); } else if (container.nodeType === ELEMENT_NODE) { clearSuspenseBoundary(container, suspenseInstance); - } // Retry if any event replaying was blocked on this. + } else; // Retry if any event replaying was blocked on this. retryIfBlockedOn(container); } @@ -15432,7 +15422,7 @@ function hideTextInstance(textInstance) { } function unhideInstance(instance, props) { instance = instance; - var styleProp = props[STYLE$1]; + var styleProp = props[STYLE]; var display = styleProp !== undefined && styleProp !== null && @@ -15727,10 +15717,6 @@ function hydrateTextInstance( shouldWarnDev ) { precacheFiberNode(internalInstanceHandle, textInstance); // TODO: Temporary hack to check if we're in a concurrent root. We can delete - // when the legacy root API is removed. - - var isConcurrentMode = - (internalInstanceHandle.mode & ConcurrentMode) !== NoMode; return diffHydratedText(textInstance, text); } function hydrateSuspenseInstance(suspenseInstance, internalInstanceHandle) { @@ -15832,7 +15818,7 @@ function didNotMatchHydratedTextInstance( isConcurrentMode, shouldWarnDev ) { - if (parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) { + if (parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { checkForUnmatchedText( textInstance.nodeValue, text, @@ -15874,10 +15860,7 @@ function didNotHydrateInstance( isConcurrentMode ) { { - if ( - isConcurrentMode || - parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true - ) { + if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { if (instance.nodeType === ELEMENT_NODE) { warnForDeletedHydratableElement(parentInstance, instance); } else if (instance.nodeType === COMMENT_NODE); @@ -15934,10 +15917,7 @@ function didNotFindHydratableInstance( isConcurrentMode ) { { - if ( - isConcurrentMode || - parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true - ) { + if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { warnForInsertedHydratedElement(parentInstance, type); } } @@ -15950,10 +15930,7 @@ function didNotFindHydratableTextInstance( isConcurrentMode ) { { - if ( - isConcurrentMode || - parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true - ) { + if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { warnForInsertedHydratedText(parentInstance, text); } } @@ -16225,7 +16202,7 @@ function acquireSingletonInstance( internalInstanceHandle ) { { - var currentInstanceHandle = getInstanceFromNode(instance); + var currentInstanceHandle = getInstanceFromNode$1(instance); if (currentInstanceHandle) { var tagName = instance.tagName.toLowerCase(); @@ -16301,7 +16278,7 @@ function clearSingleton(instance) { } var loggedTypeFailures = {}; -var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; function setCurrentlyValidatingElement(element) { { @@ -16312,9 +16289,9 @@ function setCurrentlyValidatingElement(element) { element._source, owner ? owner.type : null ); - ReactDebugCurrentFrame$1.setExtraStackFrame(stack); + ReactDebugCurrentFrame.setExtraStackFrame(stack); } else { - ReactDebugCurrentFrame$1.setExtraStackFrame(null); + ReactDebugCurrentFrame.setExtraStackFrame(null); } } } @@ -16418,12 +16395,6 @@ function isContextProvider(type) { } } -function pushTopLevelContextObject(fiber, context, didChange) { - { - return; - } -} - function processChildContext(fiber, type, parentContext) { { return parentContext; @@ -16490,7 +16461,7 @@ function flushSyncCallbacks() { // Prevent re-entrance. isFlushingSyncQueue = true; var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority(); + var previousUpdatePriority = getCurrentUpdatePriority$1(); try { var isSync = true; @@ -16517,7 +16488,7 @@ function flushSyncCallbacks() { syncQueue = syncQueue.slice(i + 1); } // Resume flushing in the next tick - scheduleCallback(ImmediatePriority, flushSyncCallbacks); + scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); throw error; } finally { setCurrentUpdatePriority(previousUpdatePriority); @@ -16550,7 +16521,7 @@ function group() { if (nativeConsoleLog === null) { nativeConsoleLog = nativeConsole.log; - nativeConsole.log = log$1; + nativeConsole.log = log; } } @@ -16568,7 +16539,7 @@ function groupEnd() { } } -function log$1() { +function log() { if (printedGroupIndex < pendingGroupArgs.length - 1) { for (var i = printedGroupIndex + 1; i < pendingGroupArgs.length; i++) { var groupArgs = pendingGroupArgs[i]; @@ -16624,7 +16595,7 @@ function logComponentSuspended(componentName, wakeable) { if (enableDebugTracing) { var id = getWakeableID(wakeable); var display = wakeable.displayName || wakeable; - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " suspended", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -16633,7 +16604,7 @@ function logComponentSuspended(componentName, wakeable) { ); wakeable.then( function () { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " resolved", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -16642,7 +16613,7 @@ function logComponentSuspended(componentName, wakeable) { ); }, function () { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " rejected", REACT_LOGO_STYLE, "color: #80366d; font-weight: bold;", @@ -16714,7 +16685,7 @@ function logRenderStopped() { function logForceUpdateScheduled(componentName, lane) { { if (enableDebugTracing) { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " forced update %c(" + @@ -16730,7 +16701,7 @@ function logForceUpdateScheduled(componentName, lane) { function logStateUpdateScheduled(componentName, lane, payloadOrAction) { { if (enableDebugTracing) { - log$1( + log( "%c\u269B\uFE0F%c " + componentName + " updated state %c(" + @@ -16760,7 +16731,7 @@ var treeContextId = 1; var treeContextOverflow = ""; function isForkedChild(workInProgress) { warnIfNotHydrating(); - return (workInProgress.flags & Forked) !== NoFlags; + return (workInProgress.flags & Forked) !== NoFlags$1; } function getForksAtLevel(workInProgress) { warnIfNotHydrating(); @@ -17058,7 +17029,6 @@ function warnNonhydratedInstance(returnFiber, fiber) { case HostSingleton: case HostComponent: var type = fiber.type; - var props = fiber.pendingProps; didNotFindHydratableInstanceWithinContainer(parentContainer, type); break; @@ -17126,7 +17096,6 @@ function warnNonhydratedInstance(returnFiber, fiber) { case HostSingleton: case HostComponent: var _type2 = fiber.type; - var _props2 = fiber.pendingProps; didNotFindHydratableInstanceWithinSuspenseInstance( _parentInstance, _type2 @@ -17161,7 +17130,6 @@ function tryHydrate(fiber, nextInstance) { // you can find it inlined in claimHydratableSingleton case HostComponent: { var type = fiber.type; - var props = fiber.pendingProps; var instance = canHydrateInstance(nextInstance, type); if (instance !== null) { @@ -17225,7 +17193,7 @@ function tryHydrate(fiber, nextInstance) { function shouldClientRenderOnMismatch(fiber) { return ( (fiber.mode & ConcurrentMode) !== NoMode && - (fiber.flags & DidCapture) === NoFlags + (fiber.flags & DidCapture) === NoFlags$1 ); } @@ -17582,7 +17550,7 @@ function getConcurrentlyUpdatedLanes() { return concurrentlyUpdatedLanes; } -function enqueueUpdate(fiber, queue, update, lane) { +function enqueueUpdate$1(fiber, queue, update, lane) { // Don't update the `childLanes` on the return path yet. If we already in // the middle of rendering, wait until after it has completed. concurrentQueues[concurrentQueuesIndex++] = fiber; @@ -17604,7 +17572,7 @@ function enqueueUpdate(fiber, queue, update, lane) { function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); return getRootForUpdatedFiber(fiber); } function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { @@ -17614,7 +17582,7 @@ function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { var lane = NoLane; var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); // Usually we can rely on the upcoming render phase to process the concurrent + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); // Usually we can rely on the upcoming render phase to process the concurrent // queue. However, since this is a bail out, we're not scheduling any work // here. So the update we just queued will leak until something else happens // to schedule work (if ever). @@ -17631,11 +17599,11 @@ function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update) { function enqueueConcurrentClassUpdate(fiber, queue, update, lane) { var concurrentQueue = queue; var concurrentUpdate = update; - enqueueUpdate(fiber, concurrentQueue, concurrentUpdate, lane); + enqueueUpdate$1(fiber, concurrentQueue, concurrentUpdate, lane); return getRootForUpdatedFiber(fiber); } function enqueueConcurrentRenderForLane(fiber, lane) { - enqueueUpdate(fiber, null, null, lane); + enqueueUpdate$1(fiber, null, null, lane); return getRootForUpdatedFiber(fiber); } // Calling this function outside this module should only be done for backwards // compatibility and should always be accompanied by a warning. @@ -17743,7 +17711,7 @@ function detectUpdateOnUnmountedFiber(sourceFiber, parent) { if ( alternate === null && - (parent.flags & (Placement | Hydrating)) !== NoFlags + (parent.flags & (Placement | Hydrating)) !== NoFlags$1 ) { warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); } @@ -17807,7 +17775,7 @@ function createUpdate(eventTime, lane) { }; return update; } -function enqueueUpdate$1(fiber, update, lane) { +function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (updateQueue === null) { @@ -20242,7 +20210,7 @@ function findFirstSuspended(row) { // keep track of whether it suspended or not. node.memoizedProps.revealOrder !== undefined ) { - var didSuspend = (node.flags & DidCapture) !== NoFlags; + var didSuspend = (node.flags & DidCapture) !== NoFlags$1; if (didSuspend) { return node; @@ -20272,7 +20240,7 @@ function findFirstSuspended(row) { return null; } -var NoFlags$1 = +var NoFlags = /* */ 0; // Represents whether effect should fire. @@ -20286,7 +20254,7 @@ var Insertion = var Layout = /* */ 4; -var Passive$1 = +var Passive = /* */ 8; @@ -20294,11 +20262,11 @@ var Passive$1 = // This tracks which mutable sources need to be reset after a render. var workInProgressSources = []; -var rendererSigil; +var rendererSigil$1; { // Used to detect multiple renderers using the same mutable source. - rendererSigil = {}; + rendererSigil$1 = {}; } function markSourceAsDirty(mutableSource) { @@ -20331,8 +20299,8 @@ function warnAboutMultipleRenderersDEV(mutableSource) { { { if (mutableSource._currentPrimaryRenderer == null) { - mutableSource._currentPrimaryRenderer = rendererSigil; - } else if (mutableSource._currentPrimaryRenderer !== rendererSigil) { + mutableSource._currentPrimaryRenderer = rendererSigil$1; + } else if (mutableSource._currentPrimaryRenderer !== rendererSigil$1) { error( "Detected multiple renderers concurrently rendering the " + "same mutable source. This is currently unsupported." @@ -20357,7 +20325,7 @@ function registerMutableSourceForHydration(root, mutableSource) { } } -var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; // An error that is thrown (e.g. by `use`) to trigger Suspense. If we +var ReactCurrentActQueue$2 = ReactSharedInternals.ReactCurrentActQueue; // An error that is thrown (e.g. by `use`) to trigger Suspense. If we // detect this is caught by userspace, we'll log a warning in development. var SuspenseException = new Error( @@ -20379,11 +20347,11 @@ function isThenableResolved(thenable) { return status === "fulfilled" || status === "rejected"; } -function noop$1() {} +function noop() {} function trackUsedThenable(thenableState, thenable, index) { - if (ReactCurrentActQueue.current !== null) { - ReactCurrentActQueue.didUsePromise = true; + if (ReactCurrentActQueue$2.current !== null) { + ReactCurrentActQueue$2.didUsePromise = true; } var previous = thenableState[index]; @@ -20396,7 +20364,7 @@ function trackUsedThenable(thenableState, thenable, index) { // they represent the same value, because components are idempotent. // Avoid an unhandled rejection errors for the Promises that we'll // intentionally ignore. - thenable.then(noop$1, noop$1); + thenable.then(noop, noop); thenable = previous; } } // We use an expando to track the status and result of a thenable so that we @@ -20424,7 +20392,7 @@ function trackUsedThenable(thenableState, thenable, index) { // some custom userspace implementation. We treat it as "pending". // Attach a dummy listener, to ensure that any lazy initialization can // happen. Flight lazily parses JSON when the value is actually awaited. - thenable.then(noop$1, noop$1); + thenable.then(noop, noop); } else { var pendingThenable = thenable; pendingThenable.status = "pending"; @@ -20515,7 +20483,7 @@ function checkIfUseWrappedInTryCatch() { } var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig; + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig; var didWarnAboutMismatchedHooksForComponent; var didWarnUncachedGetSnapshot; var didWarnAboutUseWrappedInTryCatch; @@ -20525,10 +20493,10 @@ var didWarnAboutUseWrappedInTryCatch; didWarnAboutUseWrappedInTryCatch = new Set(); } // These are set right before calling the component. -var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from +var renderLanes$1 = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from // the work-in-progress hook. -var currentlyRenderingFiber = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The +var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The // current hook list is the list that belongs to the current fiber. The // work-in-progress hook list is a new list that will be added to the // work-in-progress fiber. @@ -20611,7 +20579,7 @@ function checkDepsAreArrayDev(deps) { function warnOnHookMismatchInDev(currentHookName) { { - var componentName = getComponentNameFromFiber(currentlyRenderingFiber); + var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1); if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { didWarnAboutMismatchedHooksForComponent.add(componentName); @@ -20719,8 +20687,8 @@ function renderWithHooks( secondArg, nextRenderLanes ) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber = workInProgress; + renderLanes$1 = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; { hookTypesDev = current !== null ? current._debugHookTypes : null; @@ -20835,8 +20803,8 @@ function finishRenderingHooks(current, workInProgress) { // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; - renderLanes = NoLanes; - currentlyRenderingFiber = null; + renderLanes$1 = NoLanes; + currentlyRenderingFiber$1 = null; currentHook = null; workInProgressHook = null; @@ -21014,11 +20982,11 @@ function bailoutHooks(current, workInProgress, lanes) { workInProgress.flags &= ~( MountPassiveDev | MountLayoutDev | - Passive | + Passive$1 | Update ); } else { - workInProgress.flags &= ~(Passive | Update); + workInProgress.flags &= ~(Passive$1 | Update); } current.lanes = removeLanes(current.lanes, lanes); @@ -21044,7 +21012,7 @@ function resetHooksOnUnwind() { // Only reset the updates from the queue if it has a clone. If it does // not have a clone, that means it wasn't processed, and the updates were // scheduled before we entered the render phase. - var hook = currentlyRenderingFiber.memoizedState; + var hook = currentlyRenderingFiber$1.memoizedState; while (hook !== null) { var queue = hook.queue; @@ -21059,8 +21027,8 @@ function resetHooksOnUnwind() { didScheduleRenderPhaseUpdate = false; } - renderLanes = NoLanes; - currentlyRenderingFiber = null; + renderLanes$1 = NoLanes; + currentlyRenderingFiber$1 = null; currentHook = null; workInProgressHook = null; @@ -21087,7 +21055,7 @@ function mountWorkInProgressHook() { if (workInProgressHook === null) { // This is the first hook in the list - currentlyRenderingFiber.memoizedState = workInProgressHook = hook; + currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; } else { // Append to the end of the list workInProgressHook = workInProgressHook.next = hook; @@ -21105,7 +21073,7 @@ function updateWorkInProgressHook() { var nextCurrentHook; if (currentHook === null) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; if (current !== null) { nextCurrentHook = current.memoizedState; @@ -21119,7 +21087,7 @@ function updateWorkInProgressHook() { var nextWorkInProgressHook; if (workInProgressHook === null) { - nextWorkInProgressHook = currentlyRenderingFiber.memoizedState; + nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState; } else { nextWorkInProgressHook = workInProgressHook.next; } @@ -21132,7 +21100,7 @@ function updateWorkInProgressHook() { } else { // Clone from the current hook. if (nextCurrentHook === null) { - var currentFiber = currentlyRenderingFiber.alternate; + var currentFiber = currentlyRenderingFiber$1.alternate; if (currentFiber === null) { // This is the initial render. This branch is reached when the component @@ -21162,7 +21130,7 @@ function updateWorkInProgressHook() { if (workInProgressHook === null) { // This is the first hook in the list. - currentlyRenderingFiber.memoizedState = workInProgressHook = newHook; + currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; } else { // Append to the end of the list. workInProgressHook = workInProgressHook.next = newHook; @@ -21216,14 +21184,14 @@ function use(usable) { function useMemoCache(size) { var memoCache = null; // Fast-path, load memo cache from wip fiber if already prepared - var updateQueue = currentlyRenderingFiber.updateQueue; + var updateQueue = currentlyRenderingFiber$1.updateQueue; if (updateQueue !== null) { memoCache = updateQueue.memoCache; } // Otherwise clone from the current fiber if (memoCache == null) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; if (current !== null) { var currentUpdateQueue = current.updateQueue; @@ -21252,7 +21220,7 @@ function useMemoCache(size) { if (updateQueue === null) { updateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = updateQueue; + currentlyRenderingFiber$1.updateQueue = updateQueue; } updateQueue.memoCache = memoCache; @@ -21306,7 +21274,7 @@ function mountReducer(reducer, initialArg, init) { hook.queue = queue; var dispatch = (queue.dispatch = dispatchReducerAction.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, queue )); return [hook.memoizedState, dispatch]; @@ -21375,7 +21343,7 @@ function updateReducer(reducer, initialArg, init) { var shouldSkipUpdate = isHiddenUpdate ? !isSubsetOfLanes(getWorkInProgressRootRenderLanes(), updateLane) - : !isSubsetOfLanes(renderLanes, updateLane); + : !isSubsetOfLanes(renderLanes$1, updateLane); if (shouldSkipUpdate) { // Priority is insufficient. Skip this update. If this is the first @@ -21398,8 +21366,8 @@ function updateReducer(reducer, initialArg, init) { // TODO: Don't need to accumulate this. Instead, we can remove // renderLanes from the original lanes. - currentlyRenderingFiber.lanes = mergeLanes( - currentlyRenderingFiber.lanes, + currentlyRenderingFiber$1.lanes = mergeLanes( + currentlyRenderingFiber$1.lanes, updateLane ); markSkippedUpdateLanes(updateLane); @@ -21550,7 +21518,7 @@ function readFromUnsubscribedMutableSource(root, source, getSnapshot) { // the source is consistent with the values that we read during the most // recent mutation. isSafeToReadFromSource = isSubsetOfLanes( - renderLanes, + renderLanes$1, root.mutableReadLanes ); @@ -21626,7 +21594,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { var prevGetSnapshot = refs.getSnapshot; var prevSource = memoizedState.source; var prevSubscribe = memoizedState.subscribe; - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; hook.memoizedState = { refs: refs, source: source, @@ -21735,7 +21703,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { }; newQueue.dispatch = setSnapshot = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, newQueue ); stateHook.queue = newQueue; @@ -21766,7 +21734,7 @@ function updateMutableSource(source, getSnapshot, subscribe) { } function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; var hook = mountWorkInProgressHook(); var nextSnapshot; var isHydrating = getIsHydrating(); @@ -21823,7 +21791,7 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { ); } - if (!includesBlockingLane(root, renderLanes)) { + if (!includesBlockingLane(root, renderLanes$1)) { pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } } // Read the current snapshot from the store on every render. This breaks the @@ -21845,9 +21813,9 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { // TODO: We can move this to the passive phase once we add a pre-commit // consistency check. See the next comment. - fiber.flags |= Passive; + fiber.flags |= Passive$1; pushEffect( - HasEffect | Passive$1, + HasEffect | Passive, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null @@ -21856,7 +21824,7 @@ function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { } function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; var hook = updateWorkInProgressHook(); // Read the current snapshot from the store on every render. This breaks the // normal rules of React, and only works because store updates are // always synchronous. @@ -21900,9 +21868,9 @@ function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { (workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) ) { - fiber.flags |= Passive; + fiber.flags |= Passive$1; pushEffect( - HasEffect | Passive$1, + HasEffect | Passive, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null @@ -21918,7 +21886,7 @@ function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { ); } - if (!includesBlockingLane(root, renderLanes)) { + if (!includesBlockingLane(root, renderLanes$1)) { pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } } @@ -21932,11 +21900,11 @@ function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { getSnapshot: getSnapshot, value: renderedSnapshot }; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.stores = [check]; } else { var stores = componentUpdateQueue.stores; @@ -22015,7 +21983,7 @@ function mountState(initialState) { hook.queue = queue; var dispatch = (queue.dispatch = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, queue )); return [hook.memoizedState, dispatch]; @@ -22038,11 +22006,11 @@ function pushEffect(tag, create, destroy, deps) { // Circular next: null }; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.lastEffect = effect.next = effect; } else { var lastEffect = componentUpdateQueue.lastEffect; @@ -22095,7 +22063,7 @@ function mountRef(initialValue) { if (!hasBeenInitialized) { didCheckForLazyInit = true; lazyInitGetterStack = getCallerStackFrame(); - } else if (currentlyRenderingFiber !== null && !didWarnAboutRead) { + } else if (currentlyRenderingFiber$1 !== null && !didWarnAboutRead) { if ( lazyInitGetterStack === null || lazyInitGetterStack !== getCallerStackFrame() @@ -22107,7 +22075,8 @@ function mountRef(initialValue) { "Reading from a ref during render is only safe if:\n" + "1. The ref value has not been updated, or\n" + "2. The ref holds a lazily-initialized value that is only set once.\n", - getComponentNameFromFiber(currentlyRenderingFiber) || "Unknown" + getComponentNameFromFiber(currentlyRenderingFiber$1) || + "Unknown" ); } } @@ -22116,7 +22085,7 @@ function mountRef(initialValue) { }, set current(value) { - if (currentlyRenderingFiber !== null && !didWarnAboutWrite) { + if (currentlyRenderingFiber$1 !== null && !didWarnAboutWrite) { if (hasBeenInitialized || !didCheckForLazyInit) { didWarnAboutWrite = true; @@ -22124,7 +22093,8 @@ function mountRef(initialValue) { "%s: Unsafe write of a mutable value during render.\n\n" + "Writing to a ref during render is only safe if the ref holds " + "a lazily-initialized value that is only set once.\n", - getComponentNameFromFiber(currentlyRenderingFiber) || "Unknown" + getComponentNameFromFiber(currentlyRenderingFiber$1) || + "Unknown" ); } } @@ -22154,7 +22124,7 @@ function updateRef(initialValue) { function mountEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = mountWorkInProgressHook(); var nextDeps = deps === undefined ? null : deps; - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( HasEffect | hookFlags, create, @@ -22182,7 +22152,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { } } - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( HasEffect | hookFlags, create, @@ -22192,29 +22162,29 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { } function mountEffect(create, deps) { - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { mountEffectImpl( - MountPassiveDev | Passive | PassiveStatic, - Passive$1, + MountPassiveDev | Passive$1 | PassiveStatic, + Passive, create, deps ); } else { - mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps); + mountEffectImpl(Passive$1 | PassiveStatic, Passive, create, deps); } } function updateEffect(create, deps) { - updateEffectImpl(Passive, Passive$1, create, deps); + updateEffectImpl(Passive$1, Passive, create, deps); } function useEffectEventImpl(payload) { - currentlyRenderingFiber.flags |= Update; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + currentlyRenderingFiber$1.flags |= Update; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (componentUpdateQueue === null) { componentUpdateQueue = createFunctionComponentUpdateQueue(); - currentlyRenderingFiber.updateQueue = componentUpdateQueue; + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; componentUpdateQueue.events = [payload]; } else { var events = componentUpdateQueue.events; @@ -22275,7 +22245,7 @@ function updateInsertionEffect(create, deps) { function mountLayoutEffect(create, deps) { var fiberFlags = Update | LayoutStatic; - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { fiberFlags |= MountLayoutDev; } @@ -22331,7 +22301,7 @@ function mountImperativeHandle(ref, create, deps) { deps !== null && deps !== undefined ? deps.concat([ref]) : null; var fiberFlags = Update | LayoutStatic; - if ((currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode) { + if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) { fiberFlags |= MountLayoutDev; } @@ -22464,7 +22434,7 @@ function rerenderDeferredValue(value) { } function updateDeferredValueImpl(hook, prevValue, value) { - var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes); + var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes$1); if (shouldDeferValue) { // This is an urgent update. If the value has changed, keep using the @@ -22472,8 +22442,8 @@ function updateDeferredValueImpl(hook, prevValue, value) { if (!objectIs(value, prevValue)) { // Schedule a deferred render var deferredLane = claimNextTransitionLane(); - currentlyRenderingFiber.lanes = mergeLanes( - currentlyRenderingFiber.lanes, + currentlyRenderingFiber$1.lanes = mergeLanes( + currentlyRenderingFiber$1.lanes, deferredLane ); markSkippedUpdateLanes(deferredLane); // Set this to true to indicate that the rendered value is inconsistent @@ -22506,24 +22476,24 @@ function updateDeferredValueImpl(hook, prevValue, value) { } function startTransition(setPending, callback, options) { - var previousPriority = getCurrentUpdatePriority(); + var previousPriority = getCurrentUpdatePriority$1(); setCurrentUpdatePriority( higherEventPriority(previousPriority, ContinuousEventPriority) ); setPending(true); - var prevTransition = ReactCurrentBatchConfig$1.transition; - ReactCurrentBatchConfig$1.transition = {}; - var currentTransition = ReactCurrentBatchConfig$1.transition; + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = {}; + var currentTransition = ReactCurrentBatchConfig$2.transition; if (enableTransitionTracing) { if (options !== undefined && options.name !== undefined) { - ReactCurrentBatchConfig$1.transition.name = options.name; - ReactCurrentBatchConfig$1.transition.startTime = now(); + ReactCurrentBatchConfig$2.transition.name = options.name; + ReactCurrentBatchConfig$2.transition.startTime = now$1(); } } { - ReactCurrentBatchConfig$1.transition._updatedFibers = new Set(); + ReactCurrentBatchConfig$2.transition._updatedFibers = new Set(); } try { @@ -22531,7 +22501,7 @@ function startTransition(setPending, callback, options) { callback(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$1.transition = prevTransition; + ReactCurrentBatchConfig$2.transition = prevTransition; { if (prevTransition === null && currentTransition._updatedFibers) { @@ -22625,7 +22595,7 @@ function mountRefresh() { var hook = mountWorkInProgressHook(); var refresh = (hook.memoizedState = refreshCache.bind( null, - currentlyRenderingFiber + currentlyRenderingFiber$1 )); return refresh; } @@ -22649,7 +22619,7 @@ function refreshCache(fiber, seedKey, seedValue) { var lane = requestUpdateLane(provider); var eventTime = requestEventTime(); var refreshUpdate = createUpdate(eventTime, lane); - var root = enqueueUpdate$1(provider, refreshUpdate, lane); + var root = enqueueUpdate(provider, refreshUpdate, lane); if (root !== null) { scheduleUpdateOnFiber(root, provider, lane, eventTime); @@ -22802,8 +22772,8 @@ function dispatchSetState(fiber, queue, action) { function isRenderPhaseUpdate(fiber) { var alternate = fiber.alternate; return ( - fiber === currentlyRenderingFiber || - (alternate !== null && alternate === currentlyRenderingFiber) + fiber === currentlyRenderingFiber$1 || + (alternate !== null && alternate === currentlyRenderingFiber$1) ); } @@ -23955,7 +23925,7 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null; } } -var now$1 = Scheduler.unstable_now; +var now = Scheduler.unstable_now; var commitTime = 0; var layoutEffectStartTime = -1; var profilerStartTime = -1; @@ -24009,14 +23979,14 @@ function getCommitTime() { } function recordCommitTime() { - commitTime = now$1(); + commitTime = now(); } function startProfilerTimer(fiber) { - profilerStartTime = now$1(); + profilerStartTime = now(); if (fiber.actualStartTime < 0) { - fiber.actualStartTime = now$1(); + fiber.actualStartTime = now(); } } @@ -24026,7 +23996,7 @@ function stopProfilerTimerIfRunning(fiber) { function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { if (profilerStartTime >= 0) { - var elapsedTime = now$1() - profilerStartTime; + var elapsedTime = now() - profilerStartTime; fiber.actualDuration += elapsedTime; if (overrideBaseTime) { @@ -24039,7 +24009,7 @@ function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { function recordLayoutEffectDuration(fiber) { if (layoutEffectStartTime >= 0) { - var elapsedTime = now$1() - layoutEffectStartTime; + var elapsedTime = now() - layoutEffectStartTime; layoutEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor // Or the root (for the DevTools Profiler to read) @@ -24065,7 +24035,7 @@ function recordLayoutEffectDuration(fiber) { function recordPassiveEffectDuration(fiber) { if (passiveEffectStartTime >= 0) { - var elapsedTime = now$1() - passiveEffectStartTime; + var elapsedTime = now() - passiveEffectStartTime; passiveEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor // Or the root (for the DevTools Profiler to read) @@ -24101,11 +24071,11 @@ function recordPassiveEffectDuration(fiber) { } function startLayoutEffectTimer() { - layoutEffectStartTime = now$1(); + layoutEffectStartTime = now(); } function startPassiveEffectTimer() { - passiveEffectStartTime = now$1(); + passiveEffectStartTime = now(); } function transferActualDuration(fiber) { @@ -24271,7 +24241,7 @@ var classComponentUpdater = { update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -24307,7 +24277,7 @@ var classComponentUpdater = { update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -24343,7 +24313,7 @@ var classComponentUpdater = { update.callback = callback; } - var root = enqueueUpdate$1(fiber, update, lane); + var root = enqueueUpdate(fiber, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, fiber, lane, eventTime); @@ -25376,11 +25346,6 @@ function logCapturedError(boundary, errorInfo) { // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils. console["error"](combinedMessage); // Don't transform to our wrapper - } else { - // In production, we print the error directly. - // This will include the message, the JS stack, and anything the browser wants to show. - // We pass the error object instead of custom message so that the browser displays the error natively. - console["error"](error); // Don't transform to our wrapper } } catch (e) { // This method must not throw, or React internal state will get messed up. @@ -25575,7 +25540,7 @@ function markSuspenseBoundaryShouldCapture( // prevent a bail out. var update = createUpdate(NoTimestamp, SyncLane); update.tag = ForceUpdate; - enqueueUpdate$1(sourceFiber, update, SyncLane); + enqueueUpdate(sourceFiber, update, SyncLane); } } // The source fiber did not complete. Mark it with Sync priority to // indicate that it still has pending work. @@ -25822,7 +25787,7 @@ function throwException( // and render it again without hydration. if (_suspenseBoundary !== null) { - if ((_suspenseBoundary.flags & ShouldCapture) === NoFlags) { + if ((_suspenseBoundary.flags & ShouldCapture) === NoFlags$1) { // Set a flag to indicate that we should try rendering the normal // children again, not the fallback. _suspenseBoundary.flags |= ForceClientRender; @@ -25869,7 +25834,7 @@ function throwException( var instance = workInProgress.stateNode; if ( - (workInProgress.flags & DidCapture) === NoFlags && + (workInProgress.flags & DidCapture) === NoFlags$1 && (typeof ctor.getDerivedStateFromError === "function" || (instance !== null && typeof instance.componentDidCatch === "function" && @@ -26476,7 +26441,7 @@ function updateSimpleMemoComponent( workInProgress, renderLanes ); - } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags$1) { // This is a special case that only exists for legacy mode. // See https://github.com/facebook/react/pull/19216. didReceiveUpdate = true; @@ -26499,7 +26464,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { var nextIsDetached = (workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0; var prevState = current !== null ? current.memoizedState : null; - markRef(current, workInProgress); + markRef$1(current, workInProgress); if ( nextProps.mode === "hidden" || @@ -26507,7 +26472,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextIsDetached ) { // Rendering a hidden tree. - var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags$1; if (didSuspend) { // Something suspended inside a hidden tree @@ -26797,7 +26762,7 @@ function updateTracingMarkerComponent(current, workInProgress, renderLanes) { // boundaries, we need to schedule a passive effect to make sure we call the marker // complete callback. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } else { { @@ -26852,7 +26817,7 @@ function updateProfiler(current, workInProgress, renderLanes) { return workInProgress.child; } -function markRef(current, workInProgress) { +function markRef$1(current, workInProgress) { var ref = workInProgress.ref; if ( @@ -27112,8 +27077,8 @@ function finishClassComponent( renderLanes ) { // Refs should update even if shouldComponentUpdate returns false - markRef(current, workInProgress); - var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags; + markRef$1(current, workInProgress); + var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags$1; if (!shouldUpdate && !didCaptureError) { return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); @@ -27191,17 +27156,6 @@ function finishClassComponent( function pushHostRootContext(workInProgress) { var root = workInProgress.stateNode; - if (root.pendingContext) { - pushTopLevelContextObject( - workInProgress, - root.pendingContext, - root.pendingContext !== root.context - ); - } else if (root.context) { - // Should always be set - pushTopLevelContextObject(workInProgress, root.context); - } - pushHostContainer(workInProgress, root.containerInfo); } @@ -27355,7 +27309,7 @@ function mountHostRootWithoutHydrating( return workInProgress.child; } -function updateHostComponent(current, workInProgress, renderLanes) { +function updateHostComponent$1(current, workInProgress, renderLanes) { pushHostContext(workInProgress); if (current === null) { @@ -27380,13 +27334,13 @@ function updateHostComponent(current, workInProgress, renderLanes) { workInProgress.flags |= ContentReset; } - markRef(current, workInProgress); + markRef$1(current, workInProgress); reconcileChildren(current, workInProgress, nextChildren, renderLanes); return workInProgress.child; } function updateHostHoistable(current, workInProgress, renderLanes) { - markRef(current, workInProgress); + markRef$1(current, workInProgress); var currentProps = current === null ? null : current.memoizedProps; var resource = (workInProgress.memoizedState = getResource( workInProgress.type, @@ -27437,11 +27391,11 @@ function updateHostSingleton(current, workInProgress, renderLanes) { reconcileChildren(current, workInProgress, nextChildren, renderLanes); } - markRef(current, workInProgress); + markRef$1(current, workInProgress); return workInProgress.child; } -function updateHostText(current, workInProgress) { +function updateHostText$1(current, workInProgress) { if (current === null) { tryToClaimNextHydratableInstance(workInProgress); } // Nothing to do here. This is terminal. We'll do the completion step @@ -27883,7 +27837,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } var showFallback = false; - var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags$1; if (didSuspend || shouldRemainOnFallback(current)) { // Something in this boundary's subtree already suspended. Switch to @@ -28962,7 +28916,7 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) { workInProgress.flags |= DidCapture; } else { var didSuspendBefore = - current !== null && (current.flags & DidCapture) !== NoFlags; + current !== null && (current.flags & DidCapture) !== NoFlags$1; if (didSuspendBefore) { // If we previously forced a fallback, we need to schedule work @@ -29370,7 +29324,6 @@ function attemptEarlyBailoutIfNoScheduledUpdate( switch (workInProgress.tag) { case HostRoot: pushHostRootContext(workInProgress); - var root = workInProgress.stateNode; pushRootTransition(workInProgress); if (enableTransitionTracing) { @@ -29391,8 +29344,6 @@ function attemptEarlyBailoutIfNoScheduledUpdate( break; case ClassComponent: { - var Component = workInProgress.type; - break; } @@ -29488,7 +29439,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( } case SuspenseListComponent: { - var didSuspendBefore = (current.flags & DidCapture) !== NoFlags; + var didSuspendBefore = (current.flags & DidCapture) !== NoFlags$1; var _hasChildWork = includesSomeLane( renderLanes, @@ -29594,7 +29545,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } -function beginWork(current, workInProgress, renderLanes) { +function beginWork$1(current, workInProgress, renderLanes) { { if (workInProgress._debugNeedsRemount && current !== null) { // This will restart the begin phase with a new fiber. @@ -29636,7 +29587,7 @@ function beginWork(current, workInProgress, renderLanes) { if ( !hasScheduledUpdateOrContext && // If this is the second pass of an error or suspense boundary, there // may not be work scheduled on `current`, so we check for this flag. - (workInProgress.flags & DidCapture) === NoFlags + (workInProgress.flags & DidCapture) === NoFlags$1 ) { // No pending updates or context. Bail out now. didReceiveUpdate = false; @@ -29647,7 +29598,7 @@ function beginWork(current, workInProgress, renderLanes) { ); } - if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags$1) { // This is a special case that only exists for legacy mode. // See https://github.com/facebook/react/pull/19216. didReceiveUpdate = true; @@ -29754,10 +29705,10 @@ function beginWork(current, workInProgress, renderLanes) { // eslint-disable-next-line no-fallthrough case HostComponent: - return updateHostComponent(current, workInProgress, renderLanes); + return updateHostComponent$1(current, workInProgress, renderLanes); case HostText: - return updateHostText(current, workInProgress); + return updateHostText$1(current, workInProgress); case SuspenseComponent: return updateSuspenseComponent(current, workInProgress, renderLanes); @@ -29915,21 +29866,21 @@ var rendererCursorDEV; rendererCursorDEV = createCursor(null); } -var rendererSigil$1; +var rendererSigil; { // Use this to detect multiple renderers using the same context - rendererSigil$1 = {}; + rendererSigil = {}; } -var currentlyRenderingFiber$1 = null; +var currentlyRenderingFiber = null; var lastContextDependency = null; var lastFullyObservedContext = null; var isDisallowedContextReadInDEV = false; function resetContextDependencies() { // This is called right before React yields execution, to ensure `readContext` // cannot be called outside the render phase. - currentlyRenderingFiber$1 = null; + currentlyRenderingFiber = null; lastContextDependency = null; lastFullyObservedContext = null; @@ -29958,7 +29909,7 @@ function pushProvider(providerFiber, context, nextValue) { if ( context._currentRenderer !== undefined && context._currentRenderer !== null && - context._currentRenderer !== rendererSigil$1 + context._currentRenderer !== rendererSigil ) { error( "Detected multiple renderers concurrently rendering the " + @@ -29966,7 +29917,7 @@ function pushProvider(providerFiber, context, nextValue) { ); } - context._currentRenderer = rendererSigil$1; + context._currentRenderer = rendererSigil; } } } @@ -30007,7 +29958,7 @@ function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { !isSubsetOfLanes(alternate.childLanes, renderLanes) ) { alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes); - } + } else; if (node === propagationRoot) { break; @@ -30370,9 +30321,9 @@ function propagateParentContextChanges( while (parent !== null) { if (!isInsidePropagationBailout) { - if ((parent.flags & NeedsPropagation) !== NoFlags) { + if ((parent.flags & NeedsPropagation) !== NoFlags$1) { isInsidePropagationBailout = true; - } else if ((parent.flags & DidPropagateContext) !== NoFlags) { + } else if ((parent.flags & DidPropagateContext) !== NoFlags$1) { break; } } @@ -30464,7 +30415,7 @@ function checkIfContextChanged(currentDependencies) { return false; } function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber$1 = workInProgress; + currentlyRenderingFiber = workInProgress; lastContextDependency = null; lastFullyObservedContext = null; var dependencies = workInProgress.dependencies; @@ -30512,7 +30463,7 @@ function readContext(context) { }; if (lastContextDependency === null) { - if (currentlyRenderingFiber$1 === null) { + if (currentlyRenderingFiber === null) { throw new Error( "Context can only be read while React is rendering. " + "In classes, you can read it in the render method or getDerivedStateFromProps. " + @@ -30522,13 +30473,13 @@ function readContext(context) { } // This is the first dependency for this component. Create a new list. lastContextDependency = contextItem; - currentlyRenderingFiber$1.dependencies = { + currentlyRenderingFiber.dependencies = { lanes: NoLanes, firstContext: contextItem }; if (enableLazyContextPropagation) { - currentlyRenderingFiber$1.flags |= NeedsPropagation; + currentlyRenderingFiber.flags |= NeedsPropagation; } } else { // Append a new context item. @@ -30563,7 +30514,7 @@ var AbortControllerLocal = // use dynamic dispatch for CommonJS interop named imports. var scheduleCallback$1 = Scheduler.unstable_scheduleCallback, - NormalPriority$1 = Scheduler.unstable_NormalPriority; + NormalPriority = Scheduler.unstable_NormalPriority; var CacheContext = { $$typeof: REACT_CONTEXT_TYPE, // We don't use Consumer/Provider for Cache components. So we'll cheat. @@ -30618,7 +30569,7 @@ function releaseCache(cache) { } if (cache.refCount === 0) { - scheduleCallback$1(NormalPriority$1, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } @@ -30630,10 +30581,10 @@ function popCacheProvider(workInProgress, cache) { popProvider(CacheContext, workInProgress); } -var ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig; +var ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig; var NoTransition = null; function requestCurrentTransition() { - return ReactCurrentBatchConfig$2.transition; + return ReactCurrentBatchConfig$1.transition; } // When retrying a Suspense/Offscreen boundary, we restore the cache that was // used during the previous render by placing it here, on the stack. @@ -30927,8 +30878,8 @@ function DO_NOT_USE_queryFirstNode(fn) { return null; } -function containsNode$1(node) { - var fiber = getInstanceFromNode$1(node); +function containsNode(node) { + var fiber = getInstanceFromNode(node); while (fiber !== null) { if (fiber.tag === ScopeComponent && fiber.stateNode === this) { @@ -30962,7 +30913,7 @@ function createScopeInstance() { return { DO_NOT_USE_queryAllNodes: DO_NOT_USE_queryAllNodes, DO_NOT_USE_queryFirstNode: DO_NOT_USE_queryFirstNode, - containsNode: containsNode$1, + containsNode: containsNode, getChildContextValues: getChildContextValues }; } @@ -30973,14 +30924,14 @@ function markUpdate(workInProgress) { workInProgress.flags |= Update; } -function markRef$1(workInProgress) { +function markRef(workInProgress) { workInProgress.flags |= Ref | RefStatic; } var appendAllChildren; var updateHostContainer; -var updateHostComponent$1; -var updateHostText$1; +var updateHostComponent; +var updateHostText; { // Mutation mode @@ -31026,7 +30977,7 @@ var updateHostText$1; // Noop }; - updateHostComponent$1 = function (current, workInProgress, type, newProps) { + updateHostComponent = function (current, workInProgress, type, newProps) { // If we have an alternate, that means this is an update and we need to // schedule a side-effect to do the updates. var oldProps = current.memoizedProps; @@ -31061,7 +31012,7 @@ var updateHostText$1; } }; - updateHostText$1 = function (current, workInProgress, oldText, newText) { + updateHostText = function (current, workInProgress, oldText, newText) { // If the text differs, mark it as an update. All the work in done in commitWork. if (oldText !== newText) { markUpdate(workInProgress); @@ -31150,7 +31101,7 @@ function bubbleProperties(completedWork) { completedWork.alternate !== null && completedWork.alternate.child === completedWork.child; var newChildLanes = NoLanes; - var subtreeFlags = NoFlags; + var subtreeFlags = NoFlags$1; if (!didBailout) { // Bubble up the earliest expiration time. @@ -31265,7 +31216,7 @@ function completeDehydratedSuspenseBoundary( if ( hasUnhydratedTailNodes() && (workInProgress.mode & ConcurrentMode) !== NoMode && - (workInProgress.flags & DidCapture) === NoFlags + (workInProgress.flags & DidCapture) === NoFlags$1 ) { warnIfUnhydratedTailNodes(workInProgress); resetHydrationState(); @@ -31312,7 +31263,7 @@ function completeDehydratedSuspenseBoundary( // state since we're now exiting out of it. popHydrationState doesn't do that for us. resetHydrationState(); - if ((workInProgress.flags & DidCapture) === NoFlags) { + if ((workInProgress.flags & DidCapture) === NoFlags$1) { // This boundary did not suspend so it's now hydrated and unsuspended. workInProgress.memoizedState = null; } // If nothing suspended, we need to schedule an effect to mark this boundary @@ -31377,8 +31328,6 @@ function completeWork(current, workInProgress, renderLanes) { return null; case ClassComponent: { - var Component = workInProgress.type; - bubbleProperties(workInProgress); return null; } @@ -31392,7 +31341,7 @@ function completeWork(current, workInProgress, renderLanes) { // which we do in the passive phase if (transitions !== null) { - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -31407,7 +31356,7 @@ function completeWork(current, workInProgress, renderLanes) { if (cache !== previousCache) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } popCacheProvider(workInProgress); @@ -31442,7 +31391,7 @@ function completeWork(current, workInProgress, renderLanes) { if ( // Check if this is a client root !prevState.isDehydrated || // Check if we reverted to client rendering (e.g. due to an error) - (workInProgress.flags & ForceClientRender) !== NoFlags + (workInProgress.flags & ForceClientRender) !== NoFlags$1 ) { // Schedule an effect to clear this container at the start of the // next commit. This handles the case of React rendering into a @@ -31464,11 +31413,11 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); if (enableTransitionTracing) { - if ((workInProgress.subtreeFlags & Visibility) !== NoFlags) { + if ((workInProgress.subtreeFlags & Visibility) !== NoFlags$1) { // If any of our suspense children toggle visibility, this means that // the pending boundaries array needs to be updated, which we only // do in the passive phase. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -31480,7 +31429,7 @@ function completeWork(current, workInProgress, renderLanes) { var currentRef = current ? current.ref : null; if (currentRef !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } if ( @@ -31494,7 +31443,7 @@ function completeWork(current, workInProgress, renderLanes) { // We may have props to update on the Hoistable instance. We use the // updateHostComponent path becuase it produces the update queue // we need for Hoistables - updateHostComponent$1( + updateHostComponent( current, workInProgress, workInProgress.type, @@ -31515,10 +31464,10 @@ function completeWork(current, workInProgress, renderLanes) { var type = workInProgress.type; if (current !== null && workInProgress.stateNode != null) { - updateHostComponent$1(current, workInProgress, type, newProps); + updateHostComponent(current, workInProgress, type, newProps); if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } } else { if (!newProps) { @@ -31555,7 +31504,7 @@ function completeWork(current, workInProgress, renderLanes) { if (workInProgress.ref !== null) { // If there is a ref on a host node we need to schedule a callback - markRef$1(workInProgress); + markRef(workInProgress); } } @@ -31570,10 +31519,10 @@ function completeWork(current, workInProgress, renderLanes) { var _type = workInProgress.type; if (current !== null && workInProgress.stateNode != null) { - updateHostComponent$1(current, workInProgress, _type, newProps); + updateHostComponent(current, workInProgress, _type, newProps); if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } } else { if (!newProps) { @@ -31627,7 +31576,7 @@ function completeWork(current, workInProgress, renderLanes) { if (workInProgress.ref !== null) { // If there is a ref on a host node we need to schedule a callback - markRef$1(workInProgress); + markRef(workInProgress); } } @@ -31642,7 +31591,7 @@ function completeWork(current, workInProgress, renderLanes) { var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need // to schedule a side-effect to do the updates. - updateHostText$1(current, workInProgress, oldText, newText); + updateHostText(current, workInProgress, oldText, newText); } else { if (typeof newText !== "string") { if (workInProgress.stateNode === null) { @@ -31710,7 +31659,7 @@ function completeWork(current, workInProgress, renderLanes) { } // Continue with the normal Suspense path. } - if ((workInProgress.flags & DidCapture) !== NoFlags) { + if ((workInProgress.flags & DidCapture) !== NoFlags$1) { // Something suspended. Re-render with the fallback children. workInProgress.lanes = renderLanes; // Do not reset the effect list. @@ -31748,7 +31697,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache !== _previousCache) { // Run passive effects to retain/release the cache. - offscreenFiber.flags |= Passive; + offscreenFiber.flags |= Passive$1; } } // If the suspended state of the boundary changes, we need to schedule // a passive effect, which is when we process the transitions @@ -31756,7 +31705,7 @@ function completeWork(current, workInProgress, renderLanes) { if (nextDidTimeout !== prevDidTimeout) { if (enableTransitionTracing) { var _offscreenFiber = workInProgress.child; - _offscreenFiber.flags |= Passive; + _offscreenFiber.flags |= Passive$1; } // If the suspended state of the boundary changes, we need to schedule // an effect to toggle the subtree's visibility. When we switch from // fallback -> primary, the inner Offscreen fiber schedules this effect @@ -31831,10 +31780,6 @@ function completeWork(current, workInProgress, renderLanes) { return null; case IncompleteClassComponent: { - // Same as class component case. I put it down here so that the tags are - // sequential to ensure this switch is compiled to a jump table. - var _Component = workInProgress.type; - bubbleProperties(workInProgress); return null; } @@ -31850,7 +31795,7 @@ function completeWork(current, workInProgress, renderLanes) { return null; } - var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags; + var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags$1; var renderedTail = renderState.rendering; if (renderedTail === null) { @@ -31867,7 +31812,7 @@ function completeWork(current, workInProgress, renderLanes) { // findFirstSuspended. var cannotBeSuspended = renderHasNotSuspendedYet() && - (current === null || (current.flags & DidCapture) === NoFlags); + (current === null || (current.flags & DidCapture) === NoFlags$1); if (!cannotBeSuspended) { var row = workInProgress.child; @@ -31901,7 +31846,7 @@ function completeWork(current, workInProgress, renderLanes) { // Reset the effect flags before doing the second pass since that's now invalid. // Reset the child fibers to their original state. - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; resetChildFibers(workInProgress, renderLanes); // Set up the Suspense List Context to force suspense and // immediately rerender the children. @@ -31920,7 +31865,7 @@ function completeWork(current, workInProgress, renderLanes) { } } - if (renderState.tail !== null && now() > getRenderTargetTime()) { + if (renderState.tail !== null && now$1() > getRenderTargetTime()) { // We have already passed our CPU deadline but we still have rows // left in the tail. We'll just give up further attempts to render // the main content and only render fallbacks. @@ -31973,7 +31918,7 @@ function completeWork(current, workInProgress, renderLanes) { // The time it took to render last row is greater than the remaining // time we have to render. So rendering one more row would likely // exceed it. - now() * 2 - renderState.renderingStartTime > + now$1() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane ) { @@ -32022,7 +31967,7 @@ function completeWork(current, workInProgress, renderLanes) { var next = renderState.tail; renderState.rendering = next; renderState.tail = next.sibling; - renderState.renderingStartTime = now(); + renderState.renderingStartTime = now$1(); next.sibling = null; // Restore the context. // TODO: We can probably just avoid popping it instead and only // setting it the first time we go from not suspended to suspended. @@ -32057,7 +32002,7 @@ function completeWork(current, workInProgress, renderLanes) { prepareScopeUpdate(scopeInstance, workInProgress); if (workInProgress.ref !== null) { - markRef$1(workInProgress); + markRef(workInProgress); markUpdate(workInProgress); } } else { @@ -32066,7 +32011,7 @@ function completeWork(current, workInProgress, renderLanes) { } if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); + markRef(workInProgress); } } @@ -32150,7 +32095,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache2 !== _previousCache2) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } } @@ -32170,7 +32115,7 @@ function completeWork(current, workInProgress, renderLanes) { if (_cache3 !== _previousCache3) { // Run passive effects to retain/release the cache. - workInProgress.flags |= Passive; + workInProgress.flags |= Passive$1; } popCacheProvider(workInProgress); @@ -32212,8 +32157,6 @@ function unwindWork(current, workInProgress, renderLanes) { switch (workInProgress.tag) { case ClassComponent: { - var Component = workInProgress.type; - var flags = workInProgress.flags; if (flags & ShouldCapture) { @@ -32230,10 +32173,7 @@ function unwindWork(current, workInProgress, renderLanes) { } case HostRoot: { - var root = workInProgress.stateNode; - { - var cache = workInProgress.memoizedState.cache; popCacheProvider(workInProgress); } @@ -32247,8 +32187,8 @@ function unwindWork(current, workInProgress, renderLanes) { var _flags = workInProgress.flags; if ( - (_flags & ShouldCapture) !== NoFlags && - (_flags & DidCapture) === NoFlags + (_flags & ShouldCapture) !== NoFlags$1 && + (_flags & DidCapture) === NoFlags$1 ) { // There was an error during render that wasn't captured by a suspense // boundary. Do a second pass on the root to unmount the children. @@ -32335,7 +32275,6 @@ function unwindWork(current, workInProgress, renderLanes) { case CacheComponent: { - var _cache = workInProgress.memoizedState.cache; popCacheProvider(workInProgress); } @@ -32364,16 +32303,11 @@ function unwindInterruptedWork(current, interruptedWork, renderLanes) { switch (interruptedWork.tag) { case ClassComponent: { - var childContextTypes = interruptedWork.type.childContextTypes; - break; } case HostRoot: { - var root = interruptedWork.stateNode; - { - var cache = interruptedWork.memoizedState.cache; popCacheProvider(interruptedWork); } @@ -32420,7 +32354,6 @@ function unwindInterruptedWork(current, interruptedWork, renderLanes) { case CacheComponent: { - var _cache2 = interruptedWork.memoizedState.cache; popCacheProvider(interruptedWork); } @@ -32584,7 +32517,7 @@ function safelyCallDestroy(current, nearestMountedAncestor, destroy) { var focusedInstanceHandle = null; var shouldFireAfterActiveInstanceBlur = false; function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = prepareForCommit(root.containerInfo); + focusedInstanceHandle = prepareForCommit(); nextEffect = firstChild; commitBeforeMutationEffects_begin(); // We no longer need to track the active instance fiber @@ -32614,7 +32547,7 @@ function commitBeforeMutationEffects_begin() { var child = fiber.child; if ( - (fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && + (fiber.subtreeFlags & BeforeMutationMask) !== NoFlags$1 && child !== null ) { child.return = fiber; @@ -32668,14 +32601,14 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } } - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { setCurrentFiber(finishedWork); } switch (finishedWork.tag) { case FunctionComponent: { { - if ((flags & Update) !== NoFlags) { + if ((flags & Update) !== NoFlags$1) { commitUseEffectEventMount(finishedWork); } } @@ -32689,7 +32622,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } case ClassComponent: { - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { if (current !== null) { var prevProps = current.memoizedProps; var prevState = current.memoizedState; @@ -32755,7 +32688,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } case HostRoot: { - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { { var root = finishedWork.stateNode; clearContainer(root.containerInfo); @@ -32775,7 +32708,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { break; default: { - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { throw new Error( "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue." @@ -32784,7 +32717,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) { } } - if ((flags & Snapshot) !== NoFlags) { + if ((flags & Snapshot) !== NoFlags$1) { resetCurrentFiber(); } } @@ -32822,15 +32755,15 @@ function commitHookEffectListUnmount( if (destroy !== undefined) { if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectUnmountStarted(finishedWork); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectUnmountStarted(finishedWork); } } { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(true); } } @@ -32838,15 +32771,15 @@ function commitHookEffectListUnmount( safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(false); } } if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectUnmountStopped(); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectUnmountStopped(); } } @@ -32869,9 +32802,9 @@ function commitHookEffectListMount(flags, finishedWork) { do { if ((effect.tag & flags) === flags) { if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectMountStarted(finishedWork); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectMountStarted(finishedWork); } } // Mount @@ -32879,7 +32812,7 @@ function commitHookEffectListMount(flags, finishedWork) { var create = effect.create; { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(true); } } @@ -32887,15 +32820,15 @@ function commitHookEffectListMount(flags, finishedWork) { effect.destroy = create(); { - if ((flags & Insertion) !== NoFlags$1) { + if ((flags & Insertion) !== NoFlags) { setIsRunningInsertionEffect(false); } } if (enableSchedulingProfiler) { - if ((flags & Passive$1) !== NoFlags$1) { + if ((flags & Passive) !== NoFlags) { markComponentPassiveEffectMountStopped(); - } else if ((flags & Layout) !== NoFlags$1) { + } else if ((flags & Layout) !== NoFlags) { markComponentLayoutEffectMountStopped(); } } @@ -32906,9 +32839,9 @@ function commitHookEffectListMount(flags, finishedWork) { if (destroy !== undefined && typeof destroy !== "function") { var hookName = void 0; - if ((effect.tag & Layout) !== NoFlags) { + if ((effect.tag & Layout) !== NoFlags$1) { hookName = "useLayoutEffect"; - } else if ((effect.tag & Insertion) !== NoFlags) { + } else if ((effect.tag & Insertion) !== NoFlags$1) { hookName = "useInsertionEffect"; } else { hookName = "useEffect"; @@ -32973,7 +32906,7 @@ function commitUseEffectEventMount(finishedWork) { function commitPassiveEffectDurations(finishedRoot, finishedWork) { if (getExecutionContext() & CommitContext) { // Only Profilers with work in their subtree will have an Update effect scheduled. - if ((finishedWork.flags & Update) !== NoFlags) { + if ((finishedWork.flags & Update) !== NoFlags$1) { switch (finishedWork.tag) { case Profiler: { var passiveEffectDuration = @@ -33439,7 +33372,7 @@ function commitLayoutEffectOnFiber( // effects that were unmounted when the Offscreen subtree was // hidden. So this is a superset of the normal commitLayoutEffects. var includeWorkInProgressEffects = - (finishedWork.subtreeFlags & LayoutMask) !== NoFlags; + (finishedWork.subtreeFlags & LayoutMask) !== NoFlags$1; recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, @@ -34388,13 +34321,13 @@ function commitDeletionEffectsOnFiber( tag = _effect.tag; if (destroy !== undefined) { - if ((tag & Insertion) !== NoFlags$1) { + if ((tag & Insertion) !== NoFlags) { safelyCallDestroy( deletedFiber, nearestMountedAncestor, destroy ); - } else if ((tag & Layout) !== NoFlags$1) { + } else if ((tag & Layout) !== NoFlags) { if (enableSchedulingProfiler) { markComponentLayoutEffectUnmountStarted(deletedFiber); } @@ -34617,7 +34550,7 @@ function detachOffscreenInstance(instance) { ); } - if ((instance._pendingVisibility & OffscreenDetached) !== NoFlags) { + if ((instance._pendingVisibility & OffscreenDetached) !== NoFlags$1) { // The instance is already detached, this is a noop. return; } // TODO: There is an opportunity to optimise this by not entering commit phase @@ -34639,7 +34572,7 @@ function attachOffscreenInstance(instance) { ); } - if ((instance._pendingVisibility & OffscreenDetached) === NoFlags) { + if ((instance._pendingVisibility & OffscreenDetached) === NoFlags$1) { // The instance is already attached, this is a noop. return; } @@ -35538,7 +35471,7 @@ function recursivelyTraverseReappearLayoutEffects( // node was reused. var childShouldIncludeWorkInProgressEffects = includeWorkInProgressEffects && - (parentFiber.subtreeFlags & LayoutMask) !== NoFlags; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) + (parentFiber.subtreeFlags & LayoutMask) !== NoFlags$1; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) var prevDebugFiber = getCurrentFiber(); var child = parentFiber.child; @@ -35785,8 +35718,8 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { - commitHookPassiveMountEffects(finishedWork, Passive$1 | HasEffect); + if (flags & Passive$1) { + commitHookPassiveMountEffects(finishedWork, Passive | HasEffect); } break; @@ -35800,7 +35733,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { { var previousCache = null; @@ -35864,7 +35797,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { var current = finishedWork.alternate; var instance = finishedWork.stateNode; commitOffscreenPassiveMountEffects(current, finishedWork, instance); @@ -35929,7 +35862,7 @@ function commitPassiveMountOnFiber( // the initial render. _instance3._visibility |= OffscreenPassiveEffectsConnected; var includeWorkInProgressEffects = - (finishedWork.subtreeFlags & PassiveMask) !== NoFlags; + (finishedWork.subtreeFlags & PassiveMask) !== NoFlags$1; recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -35940,7 +35873,7 @@ function commitPassiveMountOnFiber( } } - if (flags & Passive) { + if (flags & Passive$1) { var _current = finishedWork.alternate; commitOffscreenPassiveMountEffects(_current, finishedWork, _instance3); } @@ -35956,7 +35889,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current2 = finishedWork.alternate; commitCachePassiveMountEffect(_current2, finishedWork); @@ -35974,7 +35907,7 @@ function commitPassiveMountOnFiber( committedTransitions ); - if (flags & Passive) { + if (flags & Passive$1) { commitTracingMarkerPassiveMountEffect(finishedWork); } @@ -36007,7 +35940,7 @@ function recursivelyTraverseReconnectPassiveEffects( // node was reused. var childShouldIncludeWorkInProgressEffects = includeWorkInProgressEffects && - (parentFiber.subtreeFlags & PassiveMask) !== NoFlags; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) + (parentFiber.subtreeFlags & PassiveMask) !== NoFlags$1; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) var prevDebugFiber = getCurrentFiber(); var child = parentFiber.child; @@ -36049,7 +35982,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); // TODO: Check for PassiveStatic flag - commitHookPassiveMountEffects(finishedWork, Passive$1); + commitHookPassiveMountEffects(finishedWork, Passive); break; } // Unlike commitPassiveMountOnFiber, we don't need to handle HostRoot @@ -36069,7 +36002,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var current = finishedWork.alternate; var instance = finishedWork.stateNode; @@ -36137,7 +36070,7 @@ function reconnectPassiveEffects( ); } - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current3 = finishedWork.alternate; commitOffscreenPassiveMountEffects(_current3, finishedWork, _instance4); @@ -36155,7 +36088,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current4 = finishedWork.alternate; commitCachePassiveMountEffect(_current4, finishedWork); @@ -36174,7 +36107,7 @@ function reconnectPassiveEffects( includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & Passive) { + if (includeWorkInProgressEffects && flags & Passive$1) { commitTracingMarkerPassiveMountEffect(finishedWork); } @@ -36235,7 +36168,7 @@ function commitAtomicPassiveEffects( case OffscreenComponent: { recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var current = finishedWork.alternate; var instance = finishedWork.stateNode; @@ -36248,7 +36181,7 @@ function commitAtomicPassiveEffects( case CacheComponent: { recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); - if (flags & Passive) { + if (flags & Passive$1) { // TODO: Pass `current` as argument to this function var _current5 = finishedWork.alternate; commitCachePassiveMountEffect(_current5, finishedWork); @@ -36328,7 +36261,7 @@ function recursivelyTraversePassiveUnmountEffects(parentFiber) { // before the children effects have fired. var deletions = parentFiber.deletions; - if ((parentFiber.flags & ChildDeletion) !== NoFlags) { + if ((parentFiber.flags & ChildDeletion) !== NoFlags$1) { if (deletions !== null) { for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i]; // TODO: Convert this to use recursion @@ -36366,11 +36299,11 @@ function commitPassiveUnmountOnFiber(finishedWork) { case SimpleMemoComponent: { recursivelyTraversePassiveUnmountEffects(finishedWork); - if (finishedWork.flags & Passive) { + if (finishedWork.flags & Passive$1) { commitHookPassiveUnmountEffects( finishedWork, finishedWork.return, - Passive$1 | HasEffect + Passive | HasEffect ); } @@ -36414,7 +36347,7 @@ function recursivelyTraverseDisconnectPassiveEffects(parentFiber) { // before the children effects have fired. var deletions = parentFiber.deletions; - if ((parentFiber.flags & ChildDeletion) !== NoFlags) { + if ((parentFiber.flags & ChildDeletion) !== NoFlags$1) { if (deletions !== null) { for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i]; // TODO: Convert this to use recursion @@ -36452,7 +36385,7 @@ function disconnectPassiveEffect(finishedWork) { commitHookPassiveUnmountEffects( finishedWork, finishedWork.return, - Passive$1 + Passive ); // When disconnecting passive effects, we fire the effects in the same // order as during a deletiong: parent before child @@ -36537,11 +36470,7 @@ function commitPassiveUnmountInsideDeletedTreeOnFiber( case FunctionComponent: case ForwardRef: case SimpleMemoComponent: { - commitHookPassiveUnmountEffects( - current, - nearestMountedAncestor, - Passive$1 - ); + commitHookPassiveUnmountEffects(current, nearestMountedAncestor, Passive); break; } // TODO: run passive unmount effects when unmounting a root. @@ -36704,7 +36633,7 @@ function invokePassiveEffectMountInDEV(fiber) { case ForwardRef: case SimpleMemoComponent: { try { - commitHookEffectListMount(Passive$1 | HasEffect, fiber); + commitHookEffectListMount(Passive | HasEffect, fiber); } catch (error) { captureCommitPhaseError(fiber, fiber.return, error); } @@ -36754,11 +36683,7 @@ function invokePassiveEffectUnmountInDEV(fiber) { case ForwardRef: case SimpleMemoComponent: { try { - commitHookEffectListUnmount( - Passive$1 | HasEffect, - fiber, - fiber.return - ); + commitHookEffectListUnmount(Passive | HasEffect, fiber, fiber.return); } catch (error) { captureCommitPhaseError(fiber, fiber.return, error); } @@ -36789,22 +36714,16 @@ var DefaultCacheDispatcher = { getCacheForType: getCacheForType }; -var COMPONENT_TYPE = 0; -var HAS_PSEUDO_CLASS_TYPE = 1; -var ROLE_TYPE = 2; -var TEST_NAME_TYPE = 3; -var TEXT_TYPE = 4; - if (typeof Symbol === "function" && Symbol.for) { var symbolFor = Symbol.for; - COMPONENT_TYPE = symbolFor("selector.component"); - HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"); - ROLE_TYPE = symbolFor("selector.role"); - TEST_NAME_TYPE = symbolFor("selector.test_id"); - TEXT_TYPE = symbolFor("selector.text"); + symbolFor("selector.component"); + symbolFor("selector.has_pseudo_class"); + symbolFor("selector.role"); + symbolFor("selector.test_id"); + symbolFor("selector.text"); } var commitHooks = []; -function onCommitRoot$1() { +function onCommitRoot() { { commitHooks.forEach(function (commitHook) { return commitHook(); @@ -36869,12 +36788,12 @@ function schedulePostPaintCallback(callback) { } var ceil = Math.ceil; -var PossiblyWeakMap$2 = typeof WeakMap === "function" ? WeakMap : Map; -var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, +var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig, - ReactCurrentActQueue$2 = ReactSharedInternals.ReactCurrentActQueue; + ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; var NoContext = /* */ 0; @@ -36927,7 +36846,7 @@ var workInProgressRootDidAttachPingListener = false; // A contextual version of // Most things in the work loop should deal with workInProgressRootRenderLanes. // Most things in begin/complete phases should deal with renderLanes. -var renderLanes$1 = NoLanes; // Whether to root completed, errored, suspended, etc. +var renderLanes = NoLanes; // Whether to root completed, errored, suspended, etc. var workInProgressRootExitStatus = RootInProgress; // A fatal error, if one is thrown @@ -37105,7 +37024,7 @@ function addTransitionCompleteCallbackToPendingTransition(transition) { } function resetRenderTimer() { - workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS; + workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; } function getRenderTargetTime() { @@ -37147,7 +37066,7 @@ function getWorkInProgressRootRenderLanes() { function requestEventTime() { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { // We're inside React, so it's fine to read the actual time. - return now(); + return now$1(); } // We're not inside React, so we may be in the middle of a browser event. if (currentEventTime !== NoTimestamp) { @@ -37155,7 +37074,7 @@ function requestEventTime() { return currentEventTime; } // This is the first update since React yielded. Compute a new start time. - currentEventTime = now(); + currentEventTime = now$1(); return currentEventTime; } function requestUpdateLane(fiber) { @@ -37184,8 +37103,8 @@ function requestUpdateLane(fiber) { var isTransition = requestCurrentTransition() !== NoTransition; if (isTransition) { - if (ReactCurrentBatchConfig$3.transition !== null) { - var transition = ReactCurrentBatchConfig$3.transition; + if (ReactCurrentBatchConfig.transition !== null) { + var transition = ReactCurrentBatchConfig.transition; if (!transition._updatedFibers) { transition._updatedFibers = new Set(); @@ -37213,7 +37132,7 @@ function requestUpdateLane(fiber) { // use that directly. // TODO: Move this type conversion to the event priority module. - var updateLane = getCurrentUpdatePriority(); + var updateLane = getCurrentUpdatePriority$1(); if (updateLane !== NoLane) { return updateLane; @@ -37263,7 +37182,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { // The incoming update might unblock the current render. Interrupt the // current attempt and restart from the top. prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } // Mark that the root has a pending update. markRootUpdated(root, lane, eventTime); @@ -37316,11 +37235,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { } if (enableTransitionTracing) { - var transition = ReactCurrentBatchConfig$3.transition; + var transition = ReactCurrentBatchConfig.transition; if (transition !== null && transition.name != null) { if (transition.startTime === -1) { - transition.startTime = now(); + transition.startTime = now$1(); } addTransitionToLanesMap(root, transition, lane); @@ -37350,7 +37269,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { // effect of interrupting the current render and switching to the update. // TODO: Make sure this doesn't override pings that happen while we've // already started rendering. - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } } @@ -37360,7 +37279,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. - !ReactCurrentActQueue$2.isBatchingLegacy + !ReactCurrentActQueue.isBatchingLegacy ) { // Flush the synchronous work now, unless we're already working or inside // a batch. This is intentionally inside scheduleUpdateOnFiber instead of @@ -37417,7 +37336,7 @@ function ensureRootIsScheduled(root, currentTime) { if (nextLanes === NoLanes) { // Special case: There's nothing to work on. if (existingCallbackNode !== null) { - cancelCallback$1(existingCallbackNode); + cancelCallback(existingCallbackNode); } root.callbackNode = null; @@ -37434,7 +37353,7 @@ function ensureRootIsScheduled(root, currentTime) { // Scheduler task, rather than an `act` task, cancel it and re-scheduled // on the `act` queue. !( - ReactCurrentActQueue$2.current !== null && + ReactCurrentActQueue.current !== null && existingCallbackNode !== fakeActCallbackNode ) ) { @@ -37457,7 +37376,7 @@ function ensureRootIsScheduled(root, currentTime) { if (existingCallbackNode != null) { // Cancel the existing callback. We'll schedule a new one below. - cancelCallback$1(existingCallbackNode); + cancelCallback(existingCallbackNode); } // Schedule a new callback. var newCallbackNode; @@ -37466,8 +37385,8 @@ function ensureRootIsScheduled(root, currentTime) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { - if (ReactCurrentActQueue$2.isBatchingLegacy !== null) { - ReactCurrentActQueue$2.didScheduleLegacyUpdate = true; + if (ReactCurrentActQueue.isBatchingLegacy !== null) { + ReactCurrentActQueue.didScheduleLegacyUpdate = true; } scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)); @@ -37477,11 +37396,11 @@ function ensureRootIsScheduled(root, currentTime) { { // Flush the queue in a microtask. - if (ReactCurrentActQueue$2.current !== null) { + if (ReactCurrentActQueue.current !== null) { // Inside `act`, use our internal `act` queue so that these get flushed // at the end of the current scope even when using the sync version // of `act`. - ReactCurrentActQueue$2.current.push(flushSyncCallbacks); + ReactCurrentActQueue.current.push(flushSyncCallbacks); } else { scheduleMicrotask(function () { // In Safari, appending an iframe forces microtasks to run. @@ -37514,7 +37433,7 @@ function ensureRootIsScheduled(root, currentTime) { break; case DefaultEventPriority: - schedulerPriorityLevel = NormalPriority; + schedulerPriorityLevel = NormalPriority$1; break; case IdleEventPriority: @@ -37522,11 +37441,11 @@ function ensureRootIsScheduled(root, currentTime) { break; default: - schedulerPriorityLevel = NormalPriority; + schedulerPriorityLevel = NormalPriority$1; break; } - newCallbackNode = scheduleCallback$2( + newCallbackNode = scheduleCallback( schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root) ); @@ -37614,8 +37533,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (exitStatus === RootFatalErrored) { var fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw fatalError; } @@ -37623,7 +37542,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { // The render unwound without completing the tree. This happens in special // cases where need to exit the current render without producing a // consistent tree or committing. - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); } else { // The render completed. // Check if this render may have yielded to a concurrent event, and if so, @@ -37664,8 +37583,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (exitStatus === RootFatalErrored) { var _fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw _fatalError; } // FIXME: Need to check for RootDidNotComplete again. The factoring here // isn't ideal. @@ -37678,7 +37597,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } } - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if (root.callbackNode === originalCallbackNode) { // The task node scheduled for this root is the same one that's @@ -37812,7 +37731,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { } case RootSuspended: { - markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we + markRootSuspended(root, lanes); // We have an acceptable loading state. We need to figure out if we // should immediately commit it or wait a bit. if ( @@ -37822,7 +37741,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { // This render only included retries, no updates. Throttle committing // retries so that we don't show too many loading states too quickly. var msUntilTimeout = - globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time. + globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$1(); // Don't bother with a very short suspense time. if (msUntilTimeout > 10) { var nextLanes = getNextLanes(root, NoLanes); @@ -37856,7 +37775,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { } case RootSuspendedWithDelay: { - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if (includesOnlyTransitions(lanes)) { // This is a transition, so we should exit without committing a @@ -37874,7 +37793,7 @@ function finishConcurrentRender(root, exitStatus, lanes) { // Consider removing. var mostRecentEventTime = getMostRecentEventTime(root, lanes); var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now() - eventTimeMs; + var timeElapsedMs = now$1() - eventTimeMs; var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time. @@ -37980,7 +37899,7 @@ function isRenderConsistentWithExternalStores(finishedWork) { return true; } -function markRootSuspended$1(root, suspendedLanes) { +function markRootSuspended(root, suspendedLanes) { // When suspending, we should always exclude lanes that were pinged or (more // rarely, since we try to avoid it) updated during the render phase. // TODO: Lol maybe there's a better way to factor this besides this @@ -37990,7 +37909,7 @@ function markRootSuspended$1(root, suspendedLanes) { suspendedLanes, workInProgressRootInterleavedUpdatedLanes ); - markRootSuspended(root, suspendedLanes); + markRootSuspended$1(root, suspendedLanes); } // This is the entry point for synchronous tasks that don't go // through Scheduler @@ -38008,7 +37927,7 @@ function performSyncWorkOnRoot(root) { if (!includesSyncLane(lanes)) { // There's no remaining sync work left. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return null; } @@ -38038,8 +37957,8 @@ function performSyncWorkOnRoot(root) { if (exitStatus === RootFatalErrored) { var fatalError = workInProgressRootFatalError; prepareFreshStack(root, NoLanes); - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); throw fatalError; } @@ -38047,8 +37966,8 @@ function performSyncWorkOnRoot(root) { // The render unwound without completing the tree. This happens in special // cases where need to exit the current render without producing a // consistent tree or committing. - markRootSuspended$1(root, lanes); - ensureRootIsScheduled(root, now()); + markRootSuspended(root, lanes); + ensureRootIsScheduled(root, now$1()); return null; } // We now have a consistent tree. Because this is a sync render, we // will commit it even if something suspended. @@ -38063,14 +37982,14 @@ function performSyncWorkOnRoot(root) { ); // Before exiting, make sure there's a callback scheduled for the next // pending level. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return null; } function flushRoot(root, lanes) { if (lanes !== NoLanes) { markRootEntangled(root, mergeLanes(lanes, SyncLane)); - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if ((executionContext & (RenderContext | CommitContext)) === NoContext) { resetRenderTimer(); @@ -38081,7 +38000,7 @@ function flushRoot(root, lanes) { function getExecutionContext() { return executionContext; } -function batchedUpdates$1(fn, a) { +function batchedUpdates(fn, a) { var prevExecutionContext = executionContext; executionContext |= BatchedContext; @@ -38093,7 +38012,7 @@ function batchedUpdates$1(fn, a) { if ( executionContext === NoContext && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. - !ReactCurrentActQueue$2.isBatchingLegacy + !ReactCurrentActQueue.isBatchingLegacy ) { resetRenderTimer(); flushSyncCallbacksOnlyInLegacyMode(); @@ -38101,16 +38020,16 @@ function batchedUpdates$1(fn, a) { } } function discreteUpdates(fn, a, b, c, d) { - var previousPriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig$3.transition; + var previousPriority = getCurrentUpdatePriority$1(); + var prevTransition = ReactCurrentBatchConfig.transition; try { - ReactCurrentBatchConfig$3.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); return fn(a, b, c, d); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$3.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; if (executionContext === NoContext) { resetRenderTimer(); @@ -38122,7 +38041,7 @@ function discreteUpdates(fn, a, b, c, d) { // eslint-disable-next-line no-redeclare // eslint-disable-next-line no-redeclare -function flushSync(fn) { +function flushSync$1(fn) { // In legacy mode, we flush pending passive effects at the beginning of the // next event, not at the end of the previous one. if ( @@ -38135,11 +38054,11 @@ function flushSync(fn) { var prevExecutionContext = executionContext; executionContext |= BatchedContext; - var prevTransition = ReactCurrentBatchConfig$3.transition; - var previousPriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig.transition; + var previousPriority = getCurrentUpdatePriority$1(); try { - ReactCurrentBatchConfig$3.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); if (fn) { @@ -38149,7 +38068,7 @@ function flushSync(fn) { } } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$3.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch. // Note that this will happen even if batchedUpdates is higher up // the stack. @@ -38171,16 +38090,16 @@ function isInvalidExecutionContextForEventFunction() { function flushControlled(fn) { var prevExecutionContext = executionContext; executionContext |= BatchedContext; - var prevTransition = ReactCurrentBatchConfig$3.transition; - var previousPriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig.transition; + var previousPriority = getCurrentUpdatePriority$1(); try { - ReactCurrentBatchConfig$3.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); fn(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$3.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; executionContext = prevExecutionContext; if (executionContext === NoContext) { @@ -38195,10 +38114,10 @@ function flushControlled(fn) { // performance because this function will get inlined regardless function setRenderLanes(subtreeRenderLanes) { - renderLanes$1 = subtreeRenderLanes; + renderLanes = subtreeRenderLanes; } function getRenderLanes() { - return renderLanes$1; + return renderLanes; } function resetWorkInProgressStack() { @@ -38242,7 +38161,7 @@ function prepareFreshStack(root, lanes) { workInProgressRoot = root; var rootWorkInProgress = createWorkInProgress(root.current, null); workInProgress = rootWorkInProgress; - workInProgressRootRenderLanes = renderLanes$1 = lanes; + workInProgressRootRenderLanes = renderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; workInProgressRootDidAttachPingListener = false; @@ -38285,7 +38204,7 @@ function handleThrow(root, thrownValue) { // when React is executing user code. resetHooksAfterThrow(); resetCurrentFiber(); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; if (thrownValue === SuspenseException) { // This is a special type of exception used for Suspense. For historical @@ -38400,8 +38319,8 @@ function shouldAttemptToSuspendUntilDataResolves() { function pushDispatcher(container) { prepareRendererToRender(container); - var prevDispatcher = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = ContextOnlyDispatcher; if (prevDispatcher === null) { // The React isomorphic package does not include a default dispatcher. @@ -38415,7 +38334,7 @@ function pushDispatcher(container) { function popDispatcher(prevDispatcher) { resetRendererAfterRender(); - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; } function pushCacheDispatcher() { @@ -38433,7 +38352,7 @@ function popCacheDispatcher(prevCacheDispatcher) { } function markCommitTimeOfFallback() { - globalMostRecentFallbackTime = now(); + globalMostRecentFallbackTime = now$1(); } function markSkippedUpdateLanes(lane) { workInProgressRootSkippedLanes = mergeLanes( @@ -38465,7 +38384,7 @@ function renderDidSuspendDelayIfPossible() { // TODO: Consider unwinding immediately, using the // SuspendedOnHydration mechanism. // $FlowFixMe[incompatible-call] need null check workInProgressRoot - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes); } } function renderDidError(error) { @@ -38686,7 +38605,7 @@ function renderRootConcurrent(root, lanes) { // have added a listener until right here. var onResolution = function () { - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); }; thenable.then(onResolution, onResolution); @@ -38806,10 +38725,10 @@ function performUnitOfWork(unitOfWork) { if ((unitOfWork.mode & ProfileMode) !== NoMode) { startProfilerTimer(unitOfWork); - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true); } else { - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); } resetCurrentFiber(); @@ -38822,7 +38741,7 @@ function performUnitOfWork(unitOfWork) { workInProgress = next; } - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function replaySuspendedUnitOfWork(unitOfWork) { @@ -38895,9 +38814,9 @@ function replaySuspendedUnitOfWork(unitOfWork) { unwindInterruptedWork(current, unitOfWork); unitOfWork = workInProgress = resetWorkInProgress( unitOfWork, - renderLanes$1 + renderLanes ); - next = beginWork$1(current, unitOfWork, renderLanes$1); + next = beginWork(current, unitOfWork, renderLanes); break; } } @@ -38917,7 +38836,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { workInProgress = next; } - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { @@ -38980,15 +38899,15 @@ function completeUnitOfWork(unitOfWork) { var current = completedWork.alternate; var returnFiber = completedWork.return; // Check if the work completed or if something threw. - if ((completedWork.flags & Incomplete) === NoFlags) { + if ((completedWork.flags & Incomplete) === NoFlags$1) { setCurrentFiber(completedWork); var next = void 0; if ((completedWork.mode & ProfileMode) === NoMode) { - next = completeWork(current, completedWork, renderLanes$1); + next = completeWork(current, completedWork, renderLanes); } else { startProfilerTimer(completedWork); - next = completeWork(current, completedWork, renderLanes$1); // Update render duration assuming we didn't error. + next = completeWork(current, completedWork, renderLanes); // Update render duration assuming we didn't error. stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); } @@ -39035,7 +38954,7 @@ function completeUnitOfWork(unitOfWork) { if (returnFiber !== null) { // Mark the parent fiber as incomplete and clear its subtree flags. returnFiber.flags |= Incomplete; - returnFiber.subtreeFlags = NoFlags; + returnFiber.subtreeFlags = NoFlags$1; returnFiber.deletions = null; } else { // We've unwound all the way to the root. @@ -39067,11 +38986,11 @@ function completeUnitOfWork(unitOfWork) { function commitRoot(root, recoverableErrors, transitions) { // TODO: This no longer makes any sense. We already wrap the mutation and // layout phases. Should be able to remove. - var previousUpdateLanePriority = getCurrentUpdatePriority(); - var prevTransition = ReactCurrentBatchConfig$3.transition; + var previousUpdateLanePriority = getCurrentUpdatePriority$1(); + var prevTransition = ReactCurrentBatchConfig.transition; try { - ReactCurrentBatchConfig$3.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(DiscreteEventPriority); commitRootImpl( root, @@ -39080,7 +38999,7 @@ function commitRoot(root, recoverableErrors, transitions) { previousUpdateLanePriority ); } finally { - ReactCurrentBatchConfig$3.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; setCurrentUpdatePriority(previousUpdateLanePriority); } @@ -39179,8 +39098,8 @@ function commitRootImpl( // They're redundant. if ( - (finishedWork.subtreeFlags & PassiveMask) !== NoFlags || - (finishedWork.flags & PassiveMask) !== NoFlags + (finishedWork.subtreeFlags & PassiveMask) !== NoFlags$1 || + (finishedWork.flags & PassiveMask) !== NoFlags$1 ) { if (!rootDoesHavePassiveEffects) { rootDoesHavePassiveEffects = true; @@ -39192,7 +39111,7 @@ function commitRootImpl( // with setTimeout pendingPassiveTransitions = transitions; - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); // This render triggered passive effects: release the root cache pool // *after* passive effects fire to avoid freeing a cache pool that may // be referenced by a node in the tree (HostRoot, Cache boundary etc) @@ -39209,21 +39128,21 @@ function commitRootImpl( var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== - NoFlags; + NoFlags$1; var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== - NoFlags; + NoFlags$1; if (subtreeHasEffects || rootHasEffect) { - var prevTransition = ReactCurrentBatchConfig$3.transition; - ReactCurrentBatchConfig$3.transition = null; - var previousPriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = null; + var previousPriority = getCurrentUpdatePriority$1(); setCurrentUpdatePriority(DiscreteEventPriority); var prevExecutionContext = executionContext; executionContext |= CommitContext; // Reset this to null before calling lifecycles - ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass + ReactCurrentOwner.current = null; // The commit phase is broken into several sub-phases. We do a separate pass // of the effect list for each phase: all mutation effects come before all // layout effects, and so on. // The first phase a "before mutation" phase. We use this phase to read the @@ -39255,7 +39174,7 @@ function commitRootImpl( } } - resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after + resetAfterCommit(); // The work-in-progress tree is now the current tree. This must come after // the mutation phase, so that the previous tree is still current during // componentWillUnmount, but before the layout phase, so that the finished // work is current during componentDidMount/Update. @@ -39295,7 +39214,7 @@ function commitRootImpl( executionContext = prevExecutionContext; // Reset the priority to the previous non-sync value. setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$3.transition = prevTransition; + ReactCurrentBatchConfig.transition = prevTransition; } else { // No effects. root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were @@ -39349,7 +39268,7 @@ function commitRootImpl( } } - onCommitRoot(finishedWork.stateNode, renderPriorityLevel); + onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel); { if (isDevToolsPresent) { @@ -39358,11 +39277,11 @@ function commitRootImpl( } { - onCommitRoot$1(); + onCommitRoot(); } // Always call this before exiting `commitRoot`, to ensure that any // additional work on this root is scheduled. - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if (recoverableErrors !== null) { // There were errors during this render, but recovered from them without @@ -39445,7 +39364,7 @@ function commitRootImpl( if (prevPendingTransitionCallbacks !== null) { currentPendingTransitionCallbacks = null; - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, endTime, @@ -39520,16 +39439,16 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = NoLanes; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); var priority = lowerEventPriority(DefaultEventPriority, renderPriority); - var prevTransition = ReactCurrentBatchConfig$3.transition; - var previousPriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig.transition; + var previousPriority = getCurrentUpdatePriority$1(); try { - ReactCurrentBatchConfig$3.transition = null; + ReactCurrentBatchConfig.transition = null; setCurrentUpdatePriority(priority); return flushPassiveEffectsImpl(); } finally { setCurrentUpdatePriority(previousPriority); - ReactCurrentBatchConfig$3.transition = prevTransition; // Once passive effects have run for the tree - giving components a + ReactCurrentBatchConfig.transition = prevTransition; // Once passive effects have run for the tree - giving components a // chance to retain cache instances they use - release the pooled // cache at the root (if there is one) @@ -39545,7 +39464,7 @@ function enqueuePendingPassiveProfilerEffect(fiber) { if (!rootDoesHavePassiveEffects) { rootDoesHavePassiveEffects = true; - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; }); @@ -39629,7 +39548,7 @@ function flushPassiveEffectsImpl() { ) { currentPendingTransitionCallbacks = null; currentEndTime = null; - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, prevEndTime, @@ -39694,7 +39613,7 @@ var onUncaughtError = prepareToThrowUncaughtError; function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { var errorInfo = createCapturedValueAtFiber(error, sourceFiber); var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane); - var root = enqueueUpdate$1(rootFiber, update, SyncLane); + var root = enqueueUpdate(rootFiber, update, SyncLane); var eventTime = requestEventTime(); if (root !== null) { @@ -39739,7 +39658,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) { ) { var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber); var update = createClassErrorUpdate(fiber, errorInfo, SyncLane); - var root = enqueueUpdate$1(fiber, update, SyncLane); + var root = enqueueUpdate(fiber, update, SyncLane); var eventTime = requestEventTime(); if (root !== null) { @@ -39787,7 +39706,7 @@ function attachPingListener(root, wakeable, lanes) { var threadIDs; if (pingCache === null) { - pingCache = root.pingCache = new PossiblyWeakMap$2(); + pingCache = root.pingCache = new PossiblyWeakMap(); threadIDs = new Set(); pingCache.set(wakeable, threadIDs); } else { @@ -39844,7 +39763,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { workInProgressRootExitStatus === RootSuspendedWithDelay || (workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && - now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) + now$1() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) ) { // Force a restart from the root by unwinding the stack. Unless this is // being called from the render phase, because that would cause a crash. @@ -40034,11 +39953,11 @@ function invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) { if ( current !== subtreeRoot && current.child != null && - primarySubtreeFlag !== NoFlags + primarySubtreeFlag !== NoFlags$1 ) { current = current.child; } else { - if ((current.flags & fiberFlags) !== NoFlags) { + if ((current.flags & fiberFlags) !== NoFlags$1) { invokeEffectFn(current); } @@ -40111,12 +40030,12 @@ function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { } } } -var beginWork$1; +var beginWork; if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { var dummyFiber = null; - beginWork$1 = function (current, unitOfWork, lanes) { + beginWork = function (current, unitOfWork, lanes) { // If a component throws an error, we replay it again in a synchronously // dispatched event, so that the debugger will treat it as an uncaught // error See ReactErrorUtils for more information. @@ -40128,7 +40047,7 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { ); try { - return beginWork(current, unitOfWork, lanes); + return beginWork$1(current, unitOfWork, lanes); } catch (originalError) { if ( didSuspendOrErrorWhileHydratingDEV() || @@ -40155,7 +40074,14 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { startProfilerTimer(unitOfWork); } // Run beginWork again. - invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes); + invokeGuardedCallback( + null, + beginWork$1, + null, + current, + unitOfWork, + lanes + ); if (hasCaughtError()) { var replayError = clearCaughtError(); @@ -40178,7 +40104,7 @@ if (replayFailedUnitOfWorkWithInvokeGuardedCallback) { } }; } else { - beginWork$1 = beginWork; + beginWork = beginWork$1; } var didWarnAboutUpdateInRender = false; @@ -40251,32 +40177,32 @@ function restorePendingUpdaters(root, lanes) { } var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot] -function scheduleCallback$2(priorityLevel, callback) { +function scheduleCallback(priorityLevel, callback) { { // If we're currently inside an `act` scope, bypass Scheduler and push to // the `act` queue instead. - var actQueue = ReactCurrentActQueue$2.current; + var actQueue = ReactCurrentActQueue.current; if (actQueue !== null) { actQueue.push(callback); return fakeActCallbackNode; } else { - return scheduleCallback(priorityLevel, callback); + return scheduleCallback$2(priorityLevel, callback); } } } -function cancelCallback$1(callbackNode) { +function cancelCallback(callbackNode) { if (callbackNode === fakeActCallbackNode) { return; } // In production, always call Scheduler. This function will be stripped out. - return cancelCallback(callbackNode); + return cancelCallback$1(callbackNode); } function shouldForceFlushFallbacksInDEV() { // Never force flush in production. This function should get stripped out. - return ReactCurrentActQueue$2.current !== null; + return ReactCurrentActQueue.current !== null; } function warnIfUpdatesNotWrappedWithActDEV(fiber) { @@ -40310,7 +40236,7 @@ function warnIfUpdatesNotWrappedWithActDEV(fiber) { } } - if (ReactCurrentActQueue$2.current === null) { + if (ReactCurrentActQueue.current === null) { var previousFiber = current; try { @@ -40345,7 +40271,7 @@ function warnIfSuspenseResolutionNotWrappedWithActDEV(root) { if ( root.tag !== LegacyRoot && isConcurrentActEnvironment() && - ReactCurrentActQueue$2.current === null + ReactCurrentActQueue.current === null ) { error( "A suspended resource finished loading inside a test, but the event " + @@ -40551,7 +40477,7 @@ var scheduleRefresh = function (root, update) { var staleFamilies = update.staleFamilies, updatedFamilies = update.updatedFamilies; flushPassiveEffects(); - flushSync(function () { + flushSync$1(function () { scheduleFibersWithFamiliesRecursively( root.current, updatedFamilies, @@ -40570,7 +40496,7 @@ var scheduleRoot = function (root, element) { } flushPassiveEffects(); - flushSync(function () { + flushSync$1(function () { updateContainer(element, root, null, null); }); } @@ -40855,8 +40781,8 @@ function FiberNode(tag, pendingProps, key, mode) { this.dependencies = null; this.mode = mode; // Effects - this.flags = NoFlags; - this.subtreeFlags = NoFlags; + this.flags = NoFlags$1; + this.subtreeFlags = NoFlags$1; this.deletions = null; this.lanes = NoLanes; this.childLanes = NoLanes; @@ -40918,7 +40844,7 @@ var createFiber = function (tag, pendingProps, key, mode) { return new FiberNode(tag, pendingProps, key, mode); }; -function shouldConstruct$1(Component) { +function shouldConstruct(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } @@ -40926,13 +40852,13 @@ function shouldConstruct$1(Component) { function isSimpleFunctionComponent(type) { return ( typeof type === "function" && - !shouldConstruct$1(type) && + !shouldConstruct(type) && type.defaultProps === undefined ); } function resolveLazyComponentTag(Component) { if (typeof Component === "function") { - return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent; + return shouldConstruct(Component) ? ClassComponent : FunctionComponent; } else if (Component !== undefined && Component !== null) { var $$typeof = Component.$$typeof; @@ -40982,9 +40908,9 @@ function createWorkInProgress(current, pendingProps) { workInProgress.type = current.type; // We already have an alternate. // Reset the effect tag. - workInProgress.flags = NoFlags; // The effects are no longer valid. + workInProgress.flags = NoFlags$1; // The effects are no longer valid. - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.deletions = null; { @@ -41067,7 +40993,7 @@ function resetWorkInProgress(workInProgress, renderLanes) { workInProgress.childLanes = NoLanes; workInProgress.lanes = renderLanes; workInProgress.child = null; - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.memoizedProps = null; workInProgress.memoizedState = null; workInProgress.updateQueue = null; @@ -41085,7 +41011,7 @@ function resetWorkInProgress(workInProgress, renderLanes) { workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; - workInProgress.subtreeFlags = NoFlags; + workInProgress.subtreeFlags = NoFlags$1; workInProgress.deletions = null; workInProgress.memoizedProps = current.memoizedProps; workInProgress.memoizedState = current.memoizedState; @@ -41161,7 +41087,7 @@ function createFiberFromTypeAndProps( var resolvedType = type; if (typeof type === "function") { - if (shouldConstruct$1(type)) { + if (shouldConstruct(type)) { fiberTag = ClassComponent; { @@ -41683,9 +41609,9 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-bc38a3dfa-20230220"; +var ReactVersion = "18.3.0-www-modern-6b6d0617e-20230220"; -function createPortal( +function createPortal$1( children, containerInfo, // TODO: figure out the API for cross-renderer implementation. implementation @@ -41798,7 +41724,7 @@ function createHydrationContainer( var update = createUpdate(eventTime, lane); update.callback = callback !== undefined && callback !== null ? callback : null; - enqueueUpdate$1(current, update, lane); + enqueueUpdate(current, update, lane); scheduleInitialHydrationOnRoot(root, lane, eventTime); return root; } @@ -41859,7 +41785,7 @@ function updateContainer(element, container, parentComponent, callback) { update.callback = callback; } - var root = enqueueUpdate$1(current$1, update, lane); + var root = enqueueUpdate(current$1, update, lane); if (root !== null) { scheduleUpdateOnFiber(root, current$1, lane, eventTime); @@ -41868,7 +41794,7 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } -function attemptSynchronousHydration$1(fiber) { +function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case HostRoot: { var root = fiber.stateNode; @@ -41883,7 +41809,7 @@ function attemptSynchronousHydration$1(fiber) { } case SuspenseComponent: { - flushSync(function () { + flushSync$1(function () { var root = enqueueConcurrentRenderForLane(fiber, SyncLane); if (root !== null) { @@ -41921,7 +41847,7 @@ function markRetryLaneIfNotHydrated(fiber, retryLane) { } } -function attemptDiscreteHydration$1(fiber) { +function attemptDiscreteHydration(fiber) { if (fiber.tag !== SuspenseComponent) { // We ignore HostRoots here because we can't increase // their priority and they should not suspend on I/O, @@ -41940,7 +41866,7 @@ function attemptDiscreteHydration$1(fiber) { markRetryLaneIfNotHydrated(fiber, lane); } -function attemptContinuousHydration$1(fiber) { +function attemptContinuousHydration(fiber) { if (fiber.tag !== SuspenseComponent) { // We ignore HostRoots here because we can't increase // their priority and they should not suspend on I/O, @@ -41959,7 +41885,7 @@ function attemptContinuousHydration$1(fiber) { markRetryLaneIfNotHydrated(fiber, lane); } -function attemptHydrationAtCurrentPriority$1(fiber) { +function attemptHydrationAtCurrentPriority(fiber) { if (fiber.tag !== SuspenseComponent) { // We ignore HostRoots here because we can't increase // their priority other than synchronously flush it. @@ -42276,7 +42202,7 @@ function injectIntoDevTools(devToolsConfig) { }); } -var Dispatcher$1 = Internals.Dispatcher; +var Dispatcher = Internals.Dispatcher; /* global reportError */ var defaultOnRecoverableError = @@ -42318,8 +42244,6 @@ ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = // $Flo "one argument." ); } - - var container = root.containerInfo; } updateContainer(children, root, null, null); @@ -42352,14 +42276,14 @@ ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = // $F } } - flushSync(function () { + flushSync$1(function () { updateContainer(null, root, null, null); }); unmarkContainerAsRoot(container); } }; -function createRoot(container, options) { +function createRoot$1(container, options) { if (!isValidContainer(container)) { throw new Error("createRoot(...): Target container is not a DOM element."); } @@ -42429,7 +42353,7 @@ function createRoot(container, options) { { // Set the default dispatcher to the client dispatcher - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; } var rootContainerElement = @@ -42450,7 +42374,7 @@ function scheduleHydration(target) { } // $FlowFixMe[prop-missing] found when upgrading Flow ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = scheduleHydration; -function hydrateRoot(container, initialChildren, options) { +function hydrateRoot$1(container, initialChildren, options) { if (!isValidContainer(container)) { throw new Error("hydrateRoot(...): Target container is not a DOM element."); } @@ -42514,7 +42438,7 @@ function hydrateRoot(container, initialChildren, options) { { // Set the default dispatcher to the client dispatcher - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; } // This can't be a comment node since hydration doesn't work on comment nodes anyway. listenToAllSupportedEvents(container); @@ -42558,8 +42482,6 @@ function warnIfReactDOMContainerInDEV(container) { } } -var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner; - function isValidEventTarget(target) { return typeof target.addEventListener === "function"; } @@ -42661,7 +42583,7 @@ function createEventHandle(type, options) { } } -function preinit$1() { +function preinit() { var dispatcher = Internals.Dispatcher.current; if (dispatcher) { @@ -42670,7 +42592,7 @@ function preinit$1() { // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. } -function preload$1() { +function preload() { var dispatcher = Internals.Dispatcher.current; if (dispatcher) { @@ -42680,11 +42602,11 @@ function preload$1() { // so we favor silent bailout over warning or erroring. } -setAttemptSynchronousHydration(attemptSynchronousHydration$1); -setAttemptDiscreteHydration(attemptDiscreteHydration$1); -setAttemptContinuousHydration(attemptContinuousHydration$1); -setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1); -setGetCurrentUpdatePriority(getCurrentUpdatePriority); +setAttemptSynchronousHydration(attemptSynchronousHydration); +setAttemptDiscreteHydration(attemptDiscreteHydration); +setAttemptContinuousHydration(attemptContinuousHydration); +setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority); +setGetCurrentUpdatePriority(getCurrentUpdatePriority$1); setAttemptHydrationAtPriority(runWithPriority); { @@ -42704,10 +42626,10 @@ setAttemptHydrationAtPriority(runWithPriority); } } -setRestoreImplementation(restoreControlledState$3); -setBatchingImplementation(batchedUpdates$1, discreteUpdates, flushSync); +setRestoreImplementation(restoreControlledState); +setBatchingImplementation(batchedUpdates, discreteUpdates, flushSync$1); -function createPortal$1(children, container) { +function createPortal(children, container) { var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; @@ -42716,10 +42638,10 @@ function createPortal$1(children, container) { } // TODO: pass ReactDOM portal implementation as third argument // $FlowFixMe The Flow type is opaque but there's no way to actually create it. - return createPortal(children, container, null, key); + return createPortal$1(children, container, null, key); } -function createRoot$1(container, options) { +function createRoot(container, options) { { if (!Internals.usingClientEntryPoint && !false) { error( @@ -42729,10 +42651,10 @@ function createRoot$1(container, options) { } } - return createRoot(container, options); + return createRoot$1(container, options); } -function hydrateRoot$1(container, initialChildren, options) { +function hydrateRoot(container, initialChildren, options) { { if (!Internals.usingClientEntryPoint && !false) { error( @@ -42742,13 +42664,13 @@ function hydrateRoot$1(container, initialChildren, options) { } } - return hydrateRoot(container, initialChildren, options); + return hydrateRoot$1(container, initialChildren, options); } // Overload the definition to the two valid signatures. // Warning, this opts-out of checking the function body. // eslint-disable-next-line no-redeclare // eslint-disable-next-line no-redeclare -function flushSync$1(fn) { +function flushSync(fn) { { if (isAlreadyRendering()) { error( @@ -42759,17 +42681,17 @@ function flushSync$1(fn) { } } - return flushSync(fn); + return flushSync$1(fn); } // This is an array for better minification. Internals.Events = [ - getInstanceFromNode, + getInstanceFromNode$1, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, - batchedUpdates$1 + batchedUpdates ]; var foundDevTools = injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, @@ -42806,13 +42728,13 @@ var foundDevTools = injectIntoDevTools({ } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; -exports.createPortal = createPortal$1; -exports.createRoot = createRoot$1; -exports.flushSync = flushSync$1; -exports.hydrateRoot = hydrateRoot$1; -exports.preinit = preinit$1; -exports.preload = preload$1; -exports.unstable_batchedUpdates = batchedUpdates$1; +exports.createPortal = createPortal; +exports.createRoot = createRoot; +exports.flushSync = flushSync; +exports.hydrateRoot = hydrateRoot; +exports.preinit = preinit; +exports.preload = preload; +exports.unstable_batchedUpdates = batchedUpdates; exports.unstable_createEventHandle = createEventHandle; exports.unstable_flushControlled = flushControlled; exports.unstable_runWithPriority = runWithPriority; diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index ee8f00687e..c5309d8357 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -899,7 +899,7 @@ function getActiveElement(doc) { return doc.body; } } -function getHostProps(element, props) { +function getHostProps$2(element, props) { var checked = props.checked; return assign({}, props, { defaultChecked: void 0, @@ -908,7 +908,7 @@ function getHostProps(element, props) { checked: null != checked ? checked : element._wrapperState.initialChecked }); } -function initWrapperState(element, props) { +function initWrapperState$2(element, props) { var defaultValue = null == props.defaultValue ? "" : props.defaultValue, JSCompiler_temp_const = null != props.checked ? props.checked : props.defaultChecked; @@ -928,7 +928,7 @@ function updateChecked(element, props) { props = props.checked; null != props && setValueForProperty(element, "checked", props, !1); } -function updateWrapper(element, props) { +function updateWrapper$1(element, props) { updateChecked(element, props); var value = getToStringValue(props.value), type = props.type; @@ -960,7 +960,7 @@ function updateWrapper(element, props) { null != props.defaultChecked && (element.defaultChecked = !!props.defaultChecked); } -function postMountWrapper(element, props, isHydrating) { +function postMountWrapper$3(element, props, isHydrating) { if (props.hasOwnProperty("value") || props.hasOwnProperty("defaultValue")) { var type = props.type; if ( @@ -1022,7 +1022,7 @@ function updateOptions(node, multiple, propValue, setDefaultSelected) { null !== multiple && (multiple.selected = !0); } } -function getHostProps$2(element, props) { +function getHostProps(element, props) { if (null != props.dangerouslySetInnerHTML) throw Error(formatProdErrorMessage(91)); return assign({}, props, { @@ -1031,7 +1031,7 @@ function getHostProps$2(element, props) { children: "" + element._wrapperState.initialValue }); } -function initWrapperState$2(element, props) { +function initWrapperState(element, props) { var initialValue = props.value; if (null == initialValue) { initialValue = props.children; @@ -1049,7 +1049,7 @@ function initWrapperState$2(element, props) { } element._wrapperState = { initialValue: getToStringValue(initialValue) }; } -function updateWrapper$1(element, props) { +function updateWrapper(element, props) { var value = getToStringValue(props.value), defaultValue = getToStringValue(props.defaultValue); null != value && @@ -1060,7 +1060,7 @@ function updateWrapper$1(element, props) { (element.defaultValue = value)); null != defaultValue && (element.defaultValue = "" + defaultValue); } -function postMountWrapper$3(element) { +function postMountWrapper(element) { var textContent = element.textContent; textContent === element._wrapperState.initialValue && "" !== textContent && @@ -1266,7 +1266,7 @@ function normalizeMarkupForTextOrAttribute(markup) { .replace(NORMALIZE_NEWLINES_REGEX, "\n") .replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ""); } -function noop() {} +function noop$1() {} function createElement(type, props, rootContainerElement, parentNamespace) { rootContainerElement = 9 === rootContainerElement.nodeType @@ -1331,8 +1331,8 @@ function setInitialProperties(domElement, tag, rawProps) { props = rawProps; break; case "input": - initWrapperState(domElement, rawProps); - props = getHostProps(domElement, rawProps); + initWrapperState$2(domElement, rawProps); + props = getHostProps$2(domElement, rawProps); listenToNonDelegatedEvent("invalid", domElement); break; case "option": @@ -1344,8 +1344,8 @@ function setInitialProperties(domElement, tag, rawProps) { listenToNonDelegatedEvent("invalid", domElement); break; case "textarea": - initWrapperState$2(domElement, rawProps); - props = getHostProps$2(domElement, rawProps); + initWrapperState(domElement, rawProps); + props = getHostProps(domElement, rawProps); listenToNonDelegatedEvent("invalid", domElement); break; default: @@ -1388,11 +1388,11 @@ function setInitialProperties(domElement, tag, rawProps) { switch (tag) { case "input": track(domElement); - postMountWrapper(domElement, rawProps, !1); + postMountWrapper$3(domElement, rawProps, !1); break; case "textarea": track(domElement); - postMountWrapper$3(domElement); + postMountWrapper(domElement); break; case "option": null != rawProps.value && @@ -1412,7 +1412,7 @@ function setInitialProperties(domElement, tag, rawProps) { ); break; default: - "function" === typeof props.onClick && (domElement.onclick = noop); + "function" === typeof props.onClick && (domElement.onclick = noop$1); } } function updateProperties( @@ -1441,10 +1441,10 @@ function updateProperties( } switch (tag) { case "input": - updateWrapper(domElement, nextRawProps); + updateWrapper$1(domElement, nextRawProps); break; case "textarea": - updateWrapper$1(domElement, nextRawProps); + updateWrapper(domElement, nextRawProps); break; case "select": (updatePayload = domElement._wrapperState.wasMultiple), @@ -1495,14 +1495,14 @@ function getNodeForCharacterOffset(root, offset) { node = getLeafNode(node); } } -function containsNode(outerNode, innerNode) { +function containsNode$1(outerNode, innerNode) { return outerNode && innerNode ? outerNode === innerNode ? !0 : outerNode && 3 === outerNode.nodeType ? !1 : innerNode && 3 === innerNode.nodeType - ? containsNode(outerNode, innerNode.parentNode) + ? containsNode$1(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : outerNode.compareDocumentPosition @@ -1550,7 +1550,7 @@ function restoreSelection(priorSelectionInformation) { curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && - containsNode( + containsNode$1( priorFocusedElem.ownerDocument.documentElement, priorFocusedElem ) @@ -1639,15 +1639,15 @@ function restoreSelection(priorSelectionInformation) { priorSelectionInformation.top); } } -var scheduleCallback = Scheduler.unstable_scheduleCallback, - cancelCallback = Scheduler.unstable_cancelCallback, +var scheduleCallback$2 = Scheduler.unstable_scheduleCallback, + cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, now = Scheduler.unstable_now, getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, - NormalPriority = Scheduler.unstable_NormalPriority, + NormalPriority$1 = Scheduler.unstable_NormalPriority, LowPriority = Scheduler.unstable_LowPriority, IdlePriority = Scheduler.unstable_IdlePriority, rendererID = null, @@ -1958,13 +1958,13 @@ function push(cursor, value) { valueStack[index] = cursor.current; cursor.current = value; } -var contextStackCursor = createCursor(null), +var contextStackCursor$1 = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null); function pushHostContainer(fiber, nextRootInstance) { push(rootInstanceStackCursor, nextRootInstance); push(contextFiberStackCursor, fiber); - push(contextStackCursor, null); + push(contextStackCursor$1, null); fiber = nextRootInstance.nodeType; switch (fiber) { case 9: @@ -1979,29 +1979,29 @@ function pushHostContainer(fiber, nextRootInstance) { (fiber = fiber.tagName), (nextRootInstance = getChildNamespace(nextRootInstance, fiber)); } - pop(contextStackCursor); - push(contextStackCursor, nextRootInstance); + pop(contextStackCursor$1); + push(contextStackCursor$1, nextRootInstance); } function popHostContainer() { - pop(contextStackCursor); + pop(contextStackCursor$1); pop(contextFiberStackCursor); pop(rootInstanceStackCursor); } function pushHostContext(fiber) { - var context = contextStackCursor.current; + var context = contextStackCursor$1.current; var JSCompiler_inline_result = getChildNamespace(context, fiber.type); context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), - push(contextStackCursor, JSCompiler_inline_result)); + push(contextStackCursor$1, JSCompiler_inline_result)); } function popHostContext(fiber) { contextFiberStackCursor.current === fiber && - (pop(contextStackCursor), pop(contextFiberStackCursor)); + (pop(contextStackCursor$1), pop(contextFiberStackCursor)); } -var Dispatcher = Internals.Dispatcher, +var Dispatcher$1 = Internals.Dispatcher, lastCurrentDocument = null, previousDispatcher = null, - ReactDOMClientDispatcher = { preload: preload, preinit: preinit }, + ReactDOMClientDispatcher = { preload: preload$1, preinit: preinit$1 }, preloadPropsMap = new Map(); function getHoistableRoot(container) { return "function" === typeof container.getRootNode @@ -2021,7 +2021,7 @@ function getDocumentForPreloads() { return null; } } -function preload(href, options) { +function preload$1(href, options) { var ownerDocument = getDocumentForPreloads(); if ( "string" === typeof href && @@ -2066,7 +2066,7 @@ function preload(href, options) { ownerDocument.head.appendChild(options))); } } -function preinit(href, options) { +function preinit$1(href, options) { if ( "string" === typeof href && href && @@ -2673,7 +2673,7 @@ function getClosestInstanceFromNode(targetNode) { } return null; } -function getInstanceFromNode$1(node) { +function getInstanceFromNode(node) { if ( (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) ) { @@ -2725,7 +2725,7 @@ var restoreImpl = null, restoreTarget = null, restoreQueue = null; function restoreStateOfTarget(target) { - if ((target = getInstanceFromNode$1(target))) { + if ((target = getInstanceFromNode(target))) { if ("function" !== typeof restoreImpl) throw Error(formatProdErrorMessage(280)); var stateNode = target.stateNode; @@ -2757,7 +2757,7 @@ function batchedUpdatesImpl(fn, bookkeeping) { } function flushSyncImpl() {} var isInsideEventHandler = !1; -function batchedUpdates(fn, a, b) { +function batchedUpdates$1(fn, a, b) { if (isInsideEventHandler) return fn(a, b); isInsideEventHandler = !0; try { @@ -3315,8 +3315,8 @@ function createAndAccumulateChangeEvent( )), dispatchQueue.push({ event: nativeEvent, listeners: inst })); } -var activeElement = null, - activeElementInst = null; +var activeElement$1 = null, + activeElementInst$1 = null; function runEventInBatch(dispatchQueue) { processDispatchQueue(dispatchQueue, 0); } @@ -3329,47 +3329,47 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$253; + var JSCompiler_inline_result$jscomp$248; if (canUseDOM) { - var isSupported$jscomp$inline_480 = "oninput" in document; - if (!isSupported$jscomp$inline_480) { - var element$jscomp$inline_481 = document.createElement("div"); - element$jscomp$inline_481.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_480 = - "function" === typeof element$jscomp$inline_481.oninput; + var isSupported$jscomp$inline_474 = "oninput" in document; + if (!isSupported$jscomp$inline_474) { + var element$jscomp$inline_475 = document.createElement("div"); + element$jscomp$inline_475.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_474 = + "function" === typeof element$jscomp$inline_475.oninput; } - JSCompiler_inline_result$jscomp$253 = isSupported$jscomp$inline_480; - } else JSCompiler_inline_result$jscomp$253 = !1; + JSCompiler_inline_result$jscomp$248 = isSupported$jscomp$inline_474; + } else JSCompiler_inline_result$jscomp$248 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$253 && + JSCompiler_inline_result$jscomp$248 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { - activeElement && - (activeElement.detachEvent("onpropertychange", handlePropertyChange), - (activeElementInst = activeElement = null)); + activeElement$1 && + (activeElement$1.detachEvent("onpropertychange", handlePropertyChange), + (activeElementInst$1 = activeElement$1 = null)); } function handlePropertyChange(nativeEvent) { if ( "value" === nativeEvent.propertyName && - getInstIfValueChanged(activeElementInst) + getInstIfValueChanged(activeElementInst$1) ) { var dispatchQueue = []; createAndAccumulateChangeEvent( dispatchQueue, - activeElementInst, + activeElementInst$1, nativeEvent, getEventTarget(nativeEvent) ); - batchedUpdates(runEventInBatch, dispatchQueue); + batchedUpdates$1(runEventInBatch, dispatchQueue); } } function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { "focusin" === domEventName ? (stopWatchingForValueChange(), - (activeElement = target), - (activeElementInst = targetInst), - activeElement.attachEvent("onpropertychange", handlePropertyChange)) + (activeElement$1 = target), + (activeElementInst$1 = targetInst), + activeElement$1.attachEvent("onpropertychange", handlePropertyChange)) : "focusout" === domEventName && stopWatchingForValueChange(); } function getTargetInstForInputEventPolyfill(domEventName) { @@ -3378,7 +3378,7 @@ function getTargetInstForInputEventPolyfill(domEventName) { "keyup" === domEventName || "keydown" === domEventName ) - return getInstIfValueChanged(activeElementInst); + return getInstIfValueChanged(activeElementInst$1); } function getTargetInstForClickEvent(domEventName, targetInst) { if ("click" === domEventName) return getInstIfValueChanged(targetInst); @@ -3415,8 +3415,8 @@ function shallowEqual(objA, objB) { } var skipSelectionChangeEvent = canUseDOM && "documentMode" in document && 11 >= document.documentMode, - activeElement$1 = null, - activeElementInst$1 = null, + activeElement = null, + activeElementInst = null, lastSelection = null, mouseDown = !1; function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { @@ -3427,9 +3427,9 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { ? nativeEventTarget : nativeEventTarget.ownerDocument; mouseDown || - null == activeElement$1 || - activeElement$1 !== getActiveElement(doc) || - ((doc = activeElement$1), + null == activeElement || + activeElement !== getActiveElement(doc) || + ((doc = activeElement), "selectionStart" in doc && hasSelectionCapabilities(doc) ? (doc = { start: doc.selectionStart, end: doc.selectionEnd }) : ((doc = ( @@ -3444,7 +3444,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { })), (lastSelection && shallowEqual(lastSelection, doc)) || ((lastSelection = doc), - (doc = accumulateTwoPhaseListeners(activeElementInst$1, "onSelect")), + (doc = accumulateTwoPhaseListeners(activeElementInst, "onSelect")), 0 < doc.length && ((nativeEvent = new SyntheticEvent( "onSelect", @@ -3454,7 +3454,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { nativeEventTarget )), dispatchQueue.push({ event: nativeEvent, listeners: doc }), - (nativeEvent.target = activeElement$1)))); + (nativeEvent.target = activeElement)))); } function makePrefixMap(styleProp, eventName) { var prefixes = {}; @@ -3505,19 +3505,19 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_493 = 0; - i$jscomp$inline_493 < simpleEventPluginEvents.length; - i$jscomp$inline_493++ + var i$jscomp$inline_487 = 0; + i$jscomp$inline_487 < simpleEventPluginEvents.length; + i$jscomp$inline_487++ ) { - var eventName$jscomp$inline_494 = - simpleEventPluginEvents[i$jscomp$inline_493], - domEventName$jscomp$inline_495 = eventName$jscomp$inline_494.toLowerCase(), - capitalizedEvent$jscomp$inline_496 = - eventName$jscomp$inline_494[0].toUpperCase() + - eventName$jscomp$inline_494.slice(1); + var eventName$jscomp$inline_488 = + simpleEventPluginEvents[i$jscomp$inline_487], + domEventName$jscomp$inline_489 = eventName$jscomp$inline_488.toLowerCase(), + capitalizedEvent$jscomp$inline_490 = + eventName$jscomp$inline_488[0].toUpperCase() + + eventName$jscomp$inline_488.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_495, - "on" + capitalizedEvent$jscomp$inline_496 + domEventName$jscomp$inline_489, + "on" + capitalizedEvent$jscomp$inline_490 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -3776,7 +3776,7 @@ function dispatchEventForPluginEventSystem( targetInst$jscomp$0 = targetInst$jscomp$0.return; } } - batchedUpdates(function () { + batchedUpdates$1(function () { var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = []; @@ -4090,12 +4090,12 @@ function dispatchEventForPluginEventSystem( isTextInputElement(handleEventFunc) || "true" === handleEventFunc.contentEditable ) - (activeElement$1 = handleEventFunc), - (activeElementInst$1 = targetInst), + (activeElement = handleEventFunc), + (activeElementInst = targetInst), (lastSelection = null); break; case "focusout": - lastSelection = activeElementInst$1 = activeElement$1 = null; + lastSelection = activeElementInst = activeElement = null; break; case "mousedown": mouseDown = !0; @@ -4345,10 +4345,10 @@ function accumulateEventHandleNonManagedNodeListeners( return listeners; } var _attemptSynchronousHydration, - attemptDiscreteHydration, - attemptContinuousHydration, - attemptHydrationAtCurrentPriority, - getCurrentUpdatePriority$1, + attemptDiscreteHydration$1, + attemptContinuousHydration$1, + attemptHydrationAtCurrentPriority$1, + getCurrentUpdatePriority, attemptHydrationAtPriority, hasScheduledReplayAttempt = !1, queuedDiscreteEvents = [], @@ -4397,7 +4397,7 @@ function queueDiscreteEvent( 1 === queuedDiscreteEvents.length) ) for (; null !== blockedOn.blockedOn; ) { - domEventName = getInstanceFromNode$1(blockedOn.blockedOn); + domEventName = getInstanceFromNode(blockedOn.blockedOn); if (null === domEventName) break; _attemptSynchronousHydration(domEventName); if (null === blockedOn.blockedOn) replayUnblockedEvents(); @@ -4448,8 +4448,8 @@ function accumulateOrCreateContinuousQueuedReplayableEvent( nativeEvent )), null !== blockedOn && - ((blockedOn = getInstanceFromNode$1(blockedOn)), - null !== blockedOn && attemptContinuousHydration(blockedOn)), + ((blockedOn = getInstanceFromNode(blockedOn)), + null !== blockedOn && attemptContinuousHydration$1(blockedOn)), existingQueuedEvent ); existingQueuedEvent.eventSystemFlags |= eventSystemFlags; @@ -4548,7 +4548,7 @@ function attemptExplicitHydrationTarget(queuedTarget) { ) { queuedTarget.blockedOn = targetInst; attemptHydrationAtPriority(queuedTarget.priority, function () { - attemptHydrationAtCurrentPriority(nearestMounted); + attemptHydrationAtCurrentPriority$1(nearestMounted); }); return; } @@ -4596,9 +4596,9 @@ function attemptReplayContinuousQueuedEvent(queuedEvent) { (currentReplayingEvent = null); else return ( - (targetContainers = getInstanceFromNode$1(nextBlockedOn)), + (targetContainers = getInstanceFromNode(nextBlockedOn)), null !== targetContainers && - attemptContinuousHydration(targetContainers), + attemptContinuousHydration$1(targetContainers), (queuedEvent.blockedOn = nextBlockedOn), !1 ); @@ -4615,9 +4615,9 @@ function replayUnblockedEvents() { for (; 0 < queuedDiscreteEvents.length; ) { var nextDiscreteEvent = queuedDiscreteEvents[0]; if (null !== nextDiscreteEvent.blockedOn) { - nextDiscreteEvent = getInstanceFromNode$1(nextDiscreteEvent.blockedOn); + nextDiscreteEvent = getInstanceFromNode(nextDiscreteEvent.blockedOn); null !== nextDiscreteEvent && - attemptDiscreteHydration(nextDiscreteEvent); + attemptDiscreteHydration$1(nextDiscreteEvent); break; } for ( @@ -4702,7 +4702,7 @@ function retryIfBlockedOn(unblocked) { attemptExplicitHydrationTarget(i), null === i.blockedOn && queuedExplicitHydrationTargets.shift(); } -var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, +var ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig, _enabled = !0; function createEventListenerWrapperWithPriority( targetContainer, @@ -4733,14 +4733,14 @@ function dispatchDiscreteEvent( nativeEvent ) { var previousPriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig.transition = prevTransition); + (ReactCurrentBatchConfig$3.transition = prevTransition); } } function dispatchContinuousEvent( @@ -4750,14 +4750,14 @@ function dispatchContinuousEvent( nativeEvent ) { var previousPriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig.transition = prevTransition); + (ReactCurrentBatchConfig$3.transition = prevTransition); } } function dispatchEvent( @@ -4799,7 +4799,7 @@ function dispatchEvent( -1 < discreteReplayableEvents.indexOf(domEventName)) ) { for (; null !== blockedOn; ) { - var fiber = getInstanceFromNode$1(blockedOn); + var fiber = getInstanceFromNode(blockedOn); null !== fiber && _attemptSynchronousHydration(fiber); fiber = findInstanceBlockingEvent( domEventName, @@ -5002,7 +5002,7 @@ function getEventPriority(domEventName) { return 2; case UserBlockingPriority: return 8; - case NormalPriority: + case NormalPriority$1: case LowPriority: return 32; case IdlePriority: @@ -5015,7 +5015,7 @@ function getEventPriority(domEventName) { } } var emptyContextObject = {}, - contextStackCursor$1 = createCursor(emptyContextObject), + contextStackCursor = createCursor(emptyContextObject), didPerformWorkStackCursor = createCursor(!1), previousContext = emptyContextObject; function getMaskedContext(workInProgress, unmaskedContext) { @@ -5043,12 +5043,12 @@ function isContextProvider(type) { } function popContext() { pop(didPerformWorkStackCursor); - pop(contextStackCursor$1); + pop(contextStackCursor); } function pushTopLevelContextObject(fiber, context, didChange) { - if (contextStackCursor$1.current !== emptyContextObject) + if (contextStackCursor.current !== emptyContextObject) throw Error(formatProdErrorMessage(168)); - push(contextStackCursor$1, context); + push(contextStackCursor, context); push(didPerformWorkStackCursor, didChange); } function processChildContext(fiber, type, parentContext) { @@ -5072,8 +5072,8 @@ function pushContextProvider(workInProgress) { ((workInProgress = workInProgress.stateNode) && workInProgress.__reactInternalMemoizedMergedChildContext) || emptyContextObject; - previousContext = contextStackCursor$1.current; - push(contextStackCursor$1, workInProgress); + previousContext = contextStackCursor.current; + push(contextStackCursor, workInProgress); push(didPerformWorkStackCursor, didPerformWorkStackCursor.current); return !0; } @@ -5088,8 +5088,8 @@ function invalidateContextProvider(workInProgress, type, didChange) { )), (instance.__reactInternalMemoizedMergedChildContext = workInProgress), pop(didPerformWorkStackCursor), - pop(contextStackCursor$1), - push(contextStackCursor$1, workInProgress)) + pop(contextStackCursor), + push(contextStackCursor, workInProgress)) : pop(didPerformWorkStackCursor); push(didPerformWorkStackCursor, didChange); } @@ -5120,7 +5120,7 @@ function flushSyncCallbacks() { } catch (error) { throw ( (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback(ImmediatePriority, flushSyncCallbacks), + scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), error) ); } finally { @@ -5345,7 +5345,7 @@ function prepareToHydrateHostInstance(fiber) { listenToNonDelegatedEvent("toggle", instance); break; case "input": - initWrapperState(instance, props); + initWrapperState$2(instance, props); listenToNonDelegatedEvent("invalid", instance); break; case "select": @@ -5353,7 +5353,7 @@ function prepareToHydrateHostInstance(fiber) { listenToNonDelegatedEvent("invalid", instance); break; case "textarea": - initWrapperState$2(instance, props), + initWrapperState(instance, props), listenToNonDelegatedEvent("invalid", instance); } assertValidProps(type, props); @@ -5384,17 +5384,17 @@ function prepareToHydrateHostInstance(fiber) { switch (type) { case "input": track(instance); - postMountWrapper(instance, props, !0); + postMountWrapper$3(instance, props, !0); break; case "textarea": track(instance); - postMountWrapper$3(instance); + postMountWrapper(instance); break; case "select": case "option": break; default: - "function" === typeof props.onClick && (instance.onclick = noop); + "function" === typeof props.onClick && (instance.onclick = noop$1); } instance = updatePayload; fiber.updateQueue = instance; @@ -5499,7 +5499,7 @@ function finishQueueingConcurrentUpdates() { 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); } } -function enqueueUpdate(fiber, queue, update, lane) { +function enqueueUpdate$1(fiber, queue, update, lane) { concurrentQueues[concurrentQueuesIndex++] = fiber; concurrentQueues[concurrentQueuesIndex++] = queue; concurrentQueues[concurrentQueuesIndex++] = update; @@ -5510,7 +5510,7 @@ function enqueueUpdate(fiber, queue, update, lane) { null !== fiber && (fiber.lanes |= lane); } function enqueueConcurrentRenderForLane(fiber, lane) { - enqueueUpdate(fiber, null, null, lane); + enqueueUpdate$1(fiber, null, null, lane); return getRootForUpdatedFiber(fiber); } function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { @@ -5580,7 +5580,7 @@ function createUpdate(eventTime, lane) { next: null }; } -function enqueueUpdate$1(fiber, update, lane) { +function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (null === updateQueue) return null; updateQueue = updateQueue.shared; @@ -5589,7 +5589,7 @@ function enqueueUpdate$1(fiber, update, lane) { 0 === (executionContext & 2) ) return ( - enqueueUpdate(fiber, updateQueue, update, lane), + enqueueUpdate$1(fiber, updateQueue, update, lane), getRootForUpdatedFiber(fiber) ); var pending = updateQueue.pending; @@ -6473,17 +6473,17 @@ var reconcileChildFibers = createChildReconciler(!0), currentTreeHiddenStackCursor = createCursor(null), prevRenderLanesStackCursor = createCursor(0); function pushHiddenContext(fiber, context) { - fiber = renderLanes$1; + fiber = renderLanes; push(prevRenderLanesStackCursor, fiber); push(currentTreeHiddenStackCursor, context); - renderLanes$1 = fiber | context.baseLanes; + renderLanes = fiber | context.baseLanes; } function reuseHiddenContextOnStack() { - push(prevRenderLanesStackCursor, renderLanes$1); + push(prevRenderLanesStackCursor, renderLanes); push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current); } function popHiddenContext() { - renderLanes$1 = prevRenderLanesStackCursor.current; + renderLanes = prevRenderLanesStackCursor.current; pop(currentTreeHiddenStackCursor); pop(prevRenderLanesStackCursor); } @@ -6558,12 +6558,12 @@ function isThenableResolved(thenable) { thenable = thenable.status; return "fulfilled" === thenable || "rejected" === thenable; } -function noop$1() {} +function noop() {} function trackUsedThenable(thenableState, thenable, index) { index = thenableState[index]; void 0 === index ? thenableState.push(thenable) - : index !== thenable && (thenable.then(noop$1, noop$1), (thenable = index)); + : index !== thenable && (thenable.then(noop, noop), (thenable = index)); switch (thenable.status) { case "fulfilled": return thenable.value; @@ -6571,7 +6571,7 @@ function trackUsedThenable(thenableState, thenable, index) { throw thenable.reason; default: "string" === typeof thenable.status - ? thenable.then(noop$1, noop$1) + ? thenable.then(noop, noop) : ((thenableState = thenable), (thenableState.status = "pending"), thenableState.then( @@ -6602,9 +6602,9 @@ function trackUsedThenable(thenableState, thenable, index) { } var suspendedThenable = null, ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, - renderLanes = 0, - currentlyRenderingFiber = null, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + renderLanes$1 = 0, + currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, @@ -6631,8 +6631,8 @@ function renderWithHooks( secondArg, nextRenderLanes ) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber = workInProgress; + renderLanes$1 = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; workInProgress.memoizedState = null; workInProgress.updateQueue = null; workInProgress.lanes = 0; @@ -6656,8 +6656,8 @@ function renderWithHooks( function finishRenderingHooks(current) { ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; + renderLanes$1 = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdate = !1; thenableIndexCounter = 0; thenableState = null; @@ -6696,15 +6696,15 @@ function bailoutHooks(current, workInProgress, lanes) { } function resetHooksOnUnwind() { if (didScheduleRenderPhaseUpdate) { - for (var hook = currentlyRenderingFiber.memoizedState; null !== hook; ) { + for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook; ) { var queue = hook.queue; null !== queue && (queue.pending = null); hook = hook.next; } didScheduleRenderPhaseUpdate = !1; } - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; + renderLanes$1 = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdateDuringThisPass = !1; thenableIndexCounter = localIdCounter = 0; thenableState = null; @@ -6718,26 +6718,26 @@ function mountWorkInProgressHook() { next: null }; null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = hook) + ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook) : (workInProgressHook = workInProgressHook.next = hook); return workInProgressHook; } function updateWorkInProgressHook() { if (null === currentHook) { - var nextCurrentHook = currentlyRenderingFiber.alternate; + var nextCurrentHook = currentlyRenderingFiber$1.alternate; nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; } else nextCurrentHook = currentHook.next; var nextWorkInProgressHook = null === workInProgressHook - ? currentlyRenderingFiber.memoizedState + ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; if (null !== nextWorkInProgressHook) (workInProgressHook = nextWorkInProgressHook), (currentHook = nextCurrentHook); else { if (null === nextCurrentHook) - if (null === currentlyRenderingFiber.alternate) + if (null === currentlyRenderingFiber$1.alternate) nextCurrentHook = { memoizedState: null, baseState: null, @@ -6755,7 +6755,7 @@ function updateWorkInProgressHook() { next: null }; null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = + ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook) : (workInProgressHook = workInProgressHook.next = nextCurrentHook); } @@ -6783,10 +6783,10 @@ function use(usable) { } function useMemoCache(size) { var memoCache = null, - updateQueue = currentlyRenderingFiber.updateQueue; + updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; null !== current && ((current = current.updateQueue), null !== current && @@ -6802,7 +6802,7 @@ function useMemoCache(size) { null == memoCache && (memoCache = { data: [], index: 0 }); null === updateQueue && ((updateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = updateQueue)); + (currentlyRenderingFiber$1.updateQueue = updateQueue)); updateQueue.memoCache = memoCache; updateQueue = memoCache.data[memoCache.index]; if (void 0 === updateQueue) @@ -6846,7 +6846,7 @@ function updateReducer(reducer) { if ( updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane - : (renderLanes & updateLane) === updateLane + : (renderLanes$1 & updateLane) === updateLane ) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = @@ -6874,7 +6874,7 @@ function updateReducer(reducer) { ? ((newBaseQueueFirst = newBaseQueueLast = clone), (baseFirst = current)) : (newBaseQueueLast = newBaseQueueLast.next = clone); - currentlyRenderingFiber.lanes |= updateLane; + currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } update = update.next; @@ -6918,7 +6918,7 @@ function readFromUnsubscribedMutableSource(root, source, getSnapshot) { if (null !== JSCompiler_inline_result) root = JSCompiler_inline_result === getVersion; else if ( - ((root = root.mutableReadLanes), (root = (renderLanes & root) === root)) + ((root = root.mutableReadLanes), (root = (renderLanes$1 & root) === root)) ) (source._workInProgressVersionPrimary = getVersion), workInProgressSources.push(source); @@ -6943,7 +6943,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { prevGetSnapshot = refs.getSnapshot, prevSource = memoizedState.source; memoizedState = memoizedState.subscribe; - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; hook.memoizedState = { refs: refs, source: source, subscribe: subscribe }; dispatcher.useEffect( function () { @@ -6989,7 +6989,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { lastRenderedState: snapshot }), (hook.dispatch = setSnapshot = - dispatchSetState.bind(null, currentlyRenderingFiber, hook)), + dispatchSetState.bind(null, currentlyRenderingFiber$1, hook)), (_dispatcher$useState.queue = hook), (_dispatcher$useState.baseQueue = null), (snapshot = readFromUnsubscribedMutableSource(root, source, getSnapshot)), @@ -7002,7 +7002,7 @@ function updateMutableSource(source, getSnapshot, subscribe) { return useMutableSource(hook, source, getSnapshot, subscribe); } function updateSyncExternalStore(subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber, + var fiber = currentlyRenderingFiber$1, hook = updateWorkInProgressHook(), nextSnapshot = getSnapshot(), snapshotChanged = !objectIs( @@ -7029,7 +7029,7 @@ function updateSyncExternalStore(subscribe, getSnapshot) { ); subscribe = workInProgressRoot; if (null === subscribe) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(subscribe, renderLanes) || + includesBlockingLane(subscribe, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } return nextSnapshot; @@ -7037,10 +7037,10 @@ function updateSyncExternalStore(subscribe, getSnapshot) { function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { fiber.flags |= 16384; fiber = { getSnapshot: getSnapshot, value: renderedSnapshot }; - getSnapshot = currentlyRenderingFiber.updateQueue; + getSnapshot = currentlyRenderingFiber$1.updateQueue; null === getSnapshot ? ((getSnapshot = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = getSnapshot), + (currentlyRenderingFiber$1.updateQueue = getSnapshot), (getSnapshot.stores = [fiber])) : ((renderedSnapshot = getSnapshot.stores), null === renderedSnapshot @@ -7085,17 +7085,17 @@ function mountState(initialState) { hook.queue = initialState; initialState = initialState.dispatch = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, initialState ); return [hook.memoizedState, initialState]; } function pushEffect(tag, create, destroy, deps) { tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null }; - create = currentlyRenderingFiber.updateQueue; + create = currentlyRenderingFiber$1.updateQueue; null === create ? ((create = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = create), + (currentlyRenderingFiber$1.updateQueue = create), (create.lastEffect = tag.next = tag)) : ((destroy = create.lastEffect), null === destroy @@ -7111,7 +7111,7 @@ function updateRef() { } function mountEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( 1 | hookFlags, create, @@ -7131,7 +7131,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { return; } } - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); } function mountEffect(create, deps) { @@ -7141,11 +7141,11 @@ function updateEffect(create, deps) { updateEffectImpl(2048, 8, create, deps); } function useEffectEventImpl(payload) { - currentlyRenderingFiber.flags |= 4; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + currentlyRenderingFiber$1.flags |= 4; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (null === componentUpdateQueue) (componentUpdateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = componentUpdateQueue), + (currentlyRenderingFiber$1.updateQueue = componentUpdateQueue), (componentUpdateQueue.events = [payload]); else { var events = componentUpdateQueue.events; @@ -7220,14 +7220,14 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 42)) + if (0 === (renderLanes$1 & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) ); objectIs(value, prevValue) || ((value = claimNextTransitionLane()), - (currentlyRenderingFiber.lanes |= value), + (currentlyRenderingFiber$1.lanes |= value), (workInProgressRootSkippedLanes |= value), (hook.baseState = !0)); return prevValue; @@ -7237,18 +7237,18 @@ function startTransition(setPending, callback, options) { currentUpdatePriority = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); - var prevTransition = ReactCurrentBatchConfig$1.transition; - ReactCurrentBatchConfig$1.transition = {}; + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = {}; enableTransitionTracing && void 0 !== options && void 0 !== options.name && - ((ReactCurrentBatchConfig$1.transition.name = options.name), - (ReactCurrentBatchConfig$1.transition.startTime = now())); + ((ReactCurrentBatchConfig$2.transition.name = options.name), + (ReactCurrentBatchConfig$2.transition.startTime = now())); try { setPending(!1), callback(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$1.transition = prevTransition); + (ReactCurrentBatchConfig$2.transition = prevTransition); } } function updateId() { @@ -7265,7 +7265,7 @@ function refreshCache(fiber, seedKey, seedValue) { var lane = requestUpdateLane(provider), eventTime = requestEventTime(); fiber = createUpdate(eventTime, lane); - var root$83 = enqueueUpdate$1(provider, fiber, lane); + var root$83 = enqueueUpdate(provider, fiber, lane); null !== root$83 && (scheduleUpdateOnFiber(root$83, provider, lane, eventTime), entangleTransitions(root$83, provider, lane)); @@ -7291,7 +7291,7 @@ function dispatchReducerAction(fiber, queue, action) { }; if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, action); else if ( - (enqueueUpdate(fiber, queue, action, lane), + (enqueueUpdate$1(fiber, queue, action, lane), (action = getRootForUpdatedFiber(fiber)), null !== action) ) { @@ -7323,14 +7323,14 @@ function dispatchSetState(fiber, queue, action) { update.hasEagerState = !0; update.eagerState = eagerState; if (objectIs(eagerState, currentState)) { - enqueueUpdate(fiber, queue, update, 0); + enqueueUpdate$1(fiber, queue, update, 0); null === workInProgressRoot && finishQueueingConcurrentUpdates(); return; } } catch (error) { } finally { } - enqueueUpdate(fiber, queue, update, lane); + enqueueUpdate$1(fiber, queue, update, lane); action = getRootForUpdatedFiber(fiber); null !== action && ((update = requestEventTime()), @@ -7341,8 +7341,8 @@ function dispatchSetState(fiber, queue, action) { function isRenderPhaseUpdate(fiber) { var alternate = fiber.alternate; return ( - fiber === currentlyRenderingFiber || - (null !== alternate && alternate === currentlyRenderingFiber) + fiber === currentlyRenderingFiber$1 || + (null !== alternate && alternate === currentlyRenderingFiber$1) ); } function enqueueRenderPhaseUpdate(queue, update) { @@ -7434,7 +7434,7 @@ var HooksDispatcherOnMount = { hook.queue = reducer; reducer = reducer.dispatch = dispatchReducerAction.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, reducer ); return [hook.memoizedState, reducer]; @@ -7471,7 +7471,7 @@ var HooksDispatcherOnMount = { return useMutableSource(hook, source, getSnapshot, subscribe); }, useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber, + var fiber = currentlyRenderingFiber$1, hook = mountWorkInProgressHook(); if (isHydrating) { if (void 0 === getServerSnapshot) @@ -7481,7 +7481,7 @@ var HooksDispatcherOnMount = { getServerSnapshot = getSnapshot(); var root$79 = workInProgressRoot; if (null === root$79) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$79, renderLanes) || + includesBlockingLane(root$79, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; @@ -7534,7 +7534,7 @@ var HooksDispatcherOnMount = { useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, - currentlyRenderingFiber + currentlyRenderingFiber$1 )); } }; @@ -7655,7 +7655,7 @@ var classComponentUpdater = { update = createUpdate(eventTime, lane); update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); + payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); @@ -7668,7 +7668,7 @@ var classComponentUpdater = { update.tag = 1; update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); + payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); @@ -7680,7 +7680,7 @@ var classComponentUpdater = { update = createUpdate(eventTime, lane); update.tag = 2; void 0 !== callback && null !== callback && (update.callback = callback); - callback = enqueueUpdate$1(inst, update, lane); + callback = enqueueUpdate(inst, update, lane); null !== callback && (scheduleUpdateOnFiber(callback, inst, lane, eventTime), entangleTransitions(callback, inst, lane)); @@ -7710,7 +7710,7 @@ function constructClassInstance(workInProgress, ctor, props) { ? (context = readContext(context)) : ((unmaskedContext = isContextProvider(ctor) ? previousContext - : contextStackCursor$1.current), + : contextStackCursor.current), (isLegacyContextConsumer = ctor.contextTypes), (context = (isLegacyContextConsumer = null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer) @@ -7754,7 +7754,7 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { ? (instance.context = readContext(contextType)) : ((contextType = isContextProvider(ctor) ? previousContext - : contextStackCursor$1.current), + : contextStackCursor.current), (instance.context = getMaskedContext(workInProgress, contextType))); instance.state = workInProgress.memoizedState; contextType = ctor.getDerivedStateFromProps; @@ -7880,7 +7880,7 @@ function markSuspenseBoundaryShouldCapture( ? (sourceFiber.tag = 17) : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 2))), + enqueueUpdate(sourceFiber, returnFiber, 2))), (sourceFiber.lanes |= 2)), suspenseBoundary ); @@ -8159,7 +8159,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef(current, workInProgress); + markRef$1(current, workInProgress); if ( "hidden" === nextProps.mode || "unstable-defer-without-hiding" === nextProps.mode || @@ -8252,7 +8252,7 @@ function deferHiddenOffscreenComponent( propagateParentContextChanges(current, workInProgress, renderLanes, !0); return null; } -function markRef(current, workInProgress) { +function markRef$1(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -8269,7 +8269,7 @@ function updateFunctionComponent( ) { var context = isContextProvider(Component) ? previousContext - : contextStackCursor$1.current; + : contextStackCursor.current; context = getMaskedContext(workInProgress, context); prepareToReadContext(workInProgress, renderLanes); Component = renderWithHooks( @@ -8300,7 +8300,7 @@ function replayFunctionComponent( ) { var context = isContextProvider(Component) ? previousContext - : contextStackCursor$1.current; + : contextStackCursor.current; context = getMaskedContext(workInProgress, context); prepareToReadContext(workInProgress, renderLanes); nextProps = renderWithHooksAgain( @@ -8348,7 +8348,7 @@ function updateClassComponent( ? (contextType = readContext(contextType)) : ((contextType = isContextProvider(Component) ? previousContext - : contextStackCursor$1.current), + : contextStackCursor.current), (contextType = getMaskedContext(workInProgress, contextType))); var getDerivedStateFromProps = Component.getDerivedStateFromProps, hasNewLifecycles = @@ -8428,7 +8428,7 @@ function updateClassComponent( ? (oldContext = readContext(oldContext)) : ((oldContext = isContextProvider(Component) ? previousContext - : contextStackCursor$1.current), + : contextStackCursor.current), (oldContext = getMaskedContext(workInProgress, oldContext))); var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps; (getDerivedStateFromProps = @@ -8535,7 +8535,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef(current, workInProgress); + markRef$1(current, workInProgress); var didCaptureError = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !didCaptureError) return ( @@ -9282,13 +9282,13 @@ function attemptEarlyBailoutIfNoScheduledUpdate( return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } var valueCursor = createCursor(null), - currentlyRenderingFiber$1 = null, + currentlyRenderingFiber = null, lastContextDependency = null, lastFullyObservedContext = null; function resetContextDependencies() { lastFullyObservedContext = lastContextDependency = - currentlyRenderingFiber$1 = + currentlyRenderingFiber = null; } function pushProvider(providerFiber, context, nextValue) { @@ -9502,7 +9502,7 @@ function checkIfContextChanged(currentDependencies) { return !1; } function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber$1 = workInProgress; + currentlyRenderingFiber = workInProgress; lastFullyObservedContext = lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && @@ -9519,15 +9519,14 @@ function readContext(context) { ((context = { context: context, memoizedValue: value, next: null }), null === lastContextDependency) ) { - if (null === currentlyRenderingFiber$1) + if (null === currentlyRenderingFiber) throw Error(formatProdErrorMessage(308)); lastContextDependency = context; - currentlyRenderingFiber$1.dependencies = { + currentlyRenderingFiber.dependencies = { lanes: 0, firstContext: context }; - enableLazyContextPropagation && - (currentlyRenderingFiber$1.flags |= 524288); + enableLazyContextPropagation && (currentlyRenderingFiber.flags |= 524288); } else lastContextDependency = lastContextDependency.next = context; return value; } @@ -9550,7 +9549,7 @@ var AbortControllerLocal = }; }, scheduleCallback$1 = Scheduler.unstable_scheduleCallback, - NormalPriority$1 = Scheduler.unstable_NormalPriority, + NormalPriority = Scheduler.unstable_NormalPriority, CacheContext = { $$typeof: REACT_CONTEXT_TYPE, Consumer: null, @@ -9571,11 +9570,11 @@ function createCache() { function releaseCache(cache) { cache.refCount--; 0 === cache.refCount && - scheduleCallback$1(NormalPriority$1, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } -var ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, +var ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, resumedCache = createCursor(null), transitionStack = createCursor(null); function peekCacheFromPool() { @@ -9695,7 +9694,7 @@ function DO_NOT_USE_queryFirstNode(fn) { ? collectFirstScopedNodeFromChildren(currentFiber, fn) : null; } -function containsNode$1(node) { +function containsNode(node) { for (node = getClosestInstanceFromNode(node) || null; null !== node; ) { if (21 === node.tag && node.stateNode === this) return !0; node = node.return; @@ -9714,13 +9713,10 @@ function getChildContextValues(context) { function markUpdate(workInProgress) { workInProgress.flags |= 4; } -function markRef$1(workInProgress) { +function markRef(workInProgress) { workInProgress.flags |= 2097664; } -var appendAllChildren, - updateHostContainer, - updateHostComponent$1, - updateHostText$1; +var appendAllChildren, updateHostContainer, updateHostComponent, updateHostText; appendAllChildren = function (parent, workInProgress) { for (var node = workInProgress.child; null !== node; ) { if (5 === node.tag || 6 === node.tag) parent.appendChild(node.stateNode); @@ -9739,15 +9735,15 @@ appendAllChildren = function (parent, workInProgress) { } }; updateHostContainer = function () {}; -updateHostComponent$1 = function (current, workInProgress, type, newProps) { +updateHostComponent = function (current, workInProgress, type, newProps) { var oldProps = current.memoizedProps; if (oldProps !== newProps) { current = workInProgress.stateNode; var updatePayload = null; switch (type) { case "input": - oldProps = getHostProps(current, oldProps); - newProps = getHostProps(current, newProps); + oldProps = getHostProps$2(current, oldProps); + newProps = getHostProps$2(current, newProps); updatePayload = []; break; case "select": @@ -9756,14 +9752,14 @@ updateHostComponent$1 = function (current, workInProgress, type, newProps) { updatePayload = []; break; case "textarea": - oldProps = getHostProps$2(current, oldProps); - newProps = getHostProps$2(current, newProps); + oldProps = getHostProps(current, oldProps); + newProps = getHostProps(current, newProps); updatePayload = []; break; default: "function" !== typeof oldProps.onClick && "function" === typeof newProps.onClick && - (current.onclick = noop); + (current.onclick = noop$1); } assertValidProps(type, newProps); var styleName; @@ -9855,7 +9851,7 @@ updateHostComponent$1 = function (current, workInProgress, type, newProps) { markUpdate(workInProgress); } }; -updateHostText$1 = function (current, workInProgress, oldText, newText) { +updateHostText = function (current, workInProgress, oldText, newText) { oldText !== newText && markUpdate(workInProgress); }; function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { @@ -9873,14 +9869,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$133 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$133 = lastTailNode), + for (var lastTailNode$132 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$132 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$133 + null === lastTailNode$132 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$133.sibling = null); + : (lastTailNode$132.sibling = null); } } function bubbleProperties(completedWork) { @@ -9890,19 +9886,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$134 = completedWork.child; null !== child$134; ) - (newChildLanes |= child$134.lanes | child$134.childLanes), - (subtreeFlags |= child$134.subtreeFlags & 14680064), - (subtreeFlags |= child$134.flags & 14680064), - (child$134.return = completedWork), - (child$134 = child$134.sibling); + for (var child$133 = completedWork.child; null !== child$133; ) + (newChildLanes |= child$133.lanes | child$133.childLanes), + (subtreeFlags |= child$133.subtreeFlags & 14680064), + (subtreeFlags |= child$133.flags & 14680064), + (child$133.return = completedWork), + (child$133 = child$133.sibling); else - for (child$134 = completedWork.child; null !== child$134; ) - (newChildLanes |= child$134.lanes | child$134.childLanes), - (subtreeFlags |= child$134.subtreeFlags), - (subtreeFlags |= child$134.flags), - (child$134.return = completedWork), - (child$134 = child$134.sibling); + for (child$133 = completedWork.child; null !== child$133; ) + (newChildLanes |= child$133.lanes | child$133.childLanes), + (subtreeFlags |= child$133.subtreeFlags), + (subtreeFlags |= child$133.flags), + (child$133.return = completedWork), + (child$133 = child$133.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -9944,7 +9940,7 @@ function completeWork(current, workInProgress, renderLanes) { enableTransitionTracing && pop(transitionStack); popHostContainer(); pop(didPerformWorkStackCursor); - pop(contextStackCursor$1); + pop(contextStackCursor); resetWorkInProgressVersions(); renderLanes.pendingContext && ((renderLanes.context = renderLanes.pendingContext), @@ -9968,12 +9964,12 @@ function completeWork(current, workInProgress, renderLanes) { case 26: return ( (current ? current.ref : null) !== workInProgress.ref && - markRef$1(workInProgress), + markRef(workInProgress), null === current || current.memoizedState !== workInProgress.memoizedState ? markUpdate(workInProgress) : null === workInProgress.memoizedState && - updateHostComponent$1( + updateHostComponent( current, workInProgress, workInProgress.type, @@ -9987,8 +9983,8 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes = rootInstanceStackCursor.current; var type = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - updateHostComponent$1(current, workInProgress, type, newProps), - current.ref !== workInProgress.ref && markRef$1(workInProgress); + updateHostComponent(current, workInProgress, type, newProps), + current.ref !== workInProgress.ref && markRef(workInProgress); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -9996,7 +9992,7 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); return null; } - current = contextStackCursor.current; + current = contextStackCursor$1.current; popHydrationState(workInProgress) ? prepareToHydrateHostInstance(workInProgress, current) : ((workInProgress.stateNode = resolveSingletonInstance( @@ -10005,7 +10001,7 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes )), markUpdate(workInProgress)); - null !== workInProgress.ref && markRef$1(workInProgress); + null !== workInProgress.ref && markRef(workInProgress); } bubbleProperties(workInProgress); return null; @@ -10013,8 +10009,8 @@ function completeWork(current, workInProgress, renderLanes) { popHostContext(workInProgress); renderLanes = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - updateHostComponent$1(current, workInProgress, renderLanes, newProps), - current.ref !== workInProgress.ref && markRef$1(workInProgress); + updateHostComponent(current, workInProgress, renderLanes, newProps), + current.ref !== workInProgress.ref && markRef(workInProgress); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -10022,7 +10018,7 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); return null; } - current = contextStackCursor.current; + current = contextStackCursor$1.current; if (popHydrationState(workInProgress)) prepareToHydrateHostInstance(workInProgress, current) && markUpdate(workInProgress); @@ -10054,13 +10050,13 @@ function completeWork(current, workInProgress, renderLanes) { } current && markUpdate(workInProgress); } - null !== workInProgress.ref && markRef$1(workInProgress); + null !== workInProgress.ref && markRef(workInProgress); } bubbleProperties(workInProgress); return null; case 6: if (current && null != workInProgress.stateNode) - updateHostText$1( + updateHostText( current, workInProgress, current.memoizedProps, @@ -10151,11 +10147,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$144 = null; + var cache$143 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$144 = newProps.memoizedState.cachePool.pool); - cache$144 !== type && (newProps.flags |= 2048); + (cache$143 = newProps.memoizedState.cachePool.pool); + cache$143 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -10192,8 +10188,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$144 = type.rendering; - if (null === cache$144) + cache$143 = type.rendering; + if (null === cache$143) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10201,11 +10197,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$144 = findFirstSuspended(current); - if (null !== cache$144) { + cache$143 = findFirstSuspended(current); + if (null !== cache$143) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$144.updateQueue; + current = cache$143.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -10231,7 +10227,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$144)), null !== current)) { + if (((current = findFirstSuspended(cache$143)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10242,7 +10238,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$144.alternate && + !cache$143.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10255,13 +10251,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 8388608)); type.isBackwards - ? ((cache$144.sibling = workInProgress.child), - (workInProgress.child = cache$144)) + ? ((cache$143.sibling = workInProgress.child), + (workInProgress.child = cache$143)) : ((current = type.last), null !== current - ? (current.sibling = cache$144) - : (workInProgress.child = cache$144), - (type.last = cache$144)); + ? (current.sibling = cache$143) + : (workInProgress.child = cache$143), + (type.last = cache$143)); } if (null !== type.tail) return ( @@ -10282,15 +10278,15 @@ function completeWork(current, workInProgress, renderLanes) { ? ((current = { DO_NOT_USE_queryAllNodes: DO_NOT_USE_queryAllNodes, DO_NOT_USE_queryFirstNode: DO_NOT_USE_queryFirstNode, - containsNode: containsNode$1, + containsNode: containsNode, getChildContextValues: getChildContextValues }), (workInProgress.stateNode = current), (current[internalInstanceKey] = workInProgress), null !== workInProgress.ref && - (markRef$1(workInProgress), markUpdate(workInProgress))) + (markRef(workInProgress), markUpdate(workInProgress))) : (null !== workInProgress.ref && markUpdate(workInProgress), - current.ref !== workInProgress.ref && markRef$1(workInProgress)), + current.ref !== workInProgress.ref && markRef(workInProgress)), bubbleProperties(workInProgress), null ); @@ -10369,7 +10365,7 @@ function unwindWork(current, workInProgress) { enableTransitionTracing && pop(transitionStack), popHostContainer(), pop(didPerformWorkStackCursor), - pop(contextStackCursor$1), + pop(contextStackCursor), resetWorkInProgressVersions(), (current = workInProgress.flags), 0 !== (current & 65536) && 0 === (current & 128) @@ -10438,7 +10434,7 @@ function unwindInterruptedWork(current, interruptedWork) { enableTransitionTracing && pop(transitionStack); popHostContainer(); pop(didPerformWorkStackCursor); - pop(contextStackCursor$1); + pop(contextStackCursor); resetWorkInProgressVersions(); break; case 26: @@ -10518,8 +10514,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$164) { - captureCommitPhaseError(current, nearestMountedAncestor, error$164); + } catch (error$159) { + captureCommitPhaseError(current, nearestMountedAncestor, error$159); } else ref.current = null; } @@ -10826,11 +10822,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$166) { + } catch (error$161) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$166 + error$161 ); } } @@ -11156,7 +11152,7 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { (parent = parent._reactRootContainer), (null !== parent && void 0 !== parent) || null !== before.onclick || - (before.onclick = noop)); + (before.onclick = noop$1)); else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), @@ -11504,8 +11500,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$179) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$179); + } catch (error$174) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$174); } } break; @@ -11697,11 +11693,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { attributeName ), (propValue[internalPropsKey] = attributeName); - } catch (error$180) { + } catch (error$175) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$180 + error$175 ); } break; @@ -11737,8 +11733,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { propName = finishedWork.stateNode; try { setTextContent(propName, ""); - } catch (error$181) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$181); + } catch (error$176) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$176); } } if ( @@ -11755,8 +11751,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, hoistableRoot, root, current, propName), (flags[internalPropsKey] = propName); - } catch (error$184) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$184); + } catch (error$179) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$179); } break; case 6: @@ -11769,8 +11765,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$185) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$185); + } catch (error$180) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$180); } } break; @@ -11783,8 +11779,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$186) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$186); + } catch (error$181) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$181); } break; case 4: @@ -11814,8 +11810,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$188) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$188); + } catch (error$183) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$183); } current = finishedWork.updateQueue; null !== current && @@ -11893,11 +11889,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = propName ? "" : root.memoizedProps; - } catch (error$169) { + } catch (error$164) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$169 + error$164 ); } } else if ( @@ -11972,21 +11968,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$170 = JSCompiler_inline_result.stateNode; + var parent$165 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$170, ""), + (setTextContent(parent$165, ""), (JSCompiler_inline_result.flags &= -33)); - var before$171 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$171, parent$170); + var before$166 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$166, parent$165); break; case 3: case 4: - var parent$172 = JSCompiler_inline_result.stateNode.containerInfo, - before$173 = getHostSibling(finishedWork); + var parent$167 = JSCompiler_inline_result.stateNode.containerInfo, + before$168 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$173, - parent$172 + before$168, + parent$167 ); break; default: @@ -12456,9 +12452,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$198 = finishedWork.stateNode; + var instance$193 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$198._visibility & 4 + ? instance$193._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12471,7 +12467,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$198._visibility |= 4), + : ((instance$193._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12479,7 +12475,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$198._visibility |= 4), + : ((instance$193._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12492,7 +12488,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$198 + instance$193 ); break; case 24: @@ -12779,10 +12775,10 @@ function schedulePostPaintCallback(callback) { } var ceil = Math.ceil, PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, - ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, executionContext = 0, workInProgressRoot = null, workInProgress = null, @@ -12790,7 +12786,7 @@ var ceil = Math.ceil, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidAttachPingListener = !1, - renderLanes$1 = 0, + renderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootSkippedLanes = 0, @@ -12894,7 +12890,7 @@ function requestUpdateLane(fiber) { 0 !== workInProgressRootRenderLanes ) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; - if (null !== ReactCurrentBatchConfig$2.transition) + if (null !== ReactCurrentBatchConfig$1.transition) return ( 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()), @@ -12910,11 +12906,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { 2 === workInProgressSuspendedReason && root === workInProgressRoot && (prepareFreshStack(root, 0), - markRootSuspended$1(root, workInProgressRootRenderLanes)); + markRootSuspended(root, workInProgressRootRenderLanes)); markRootUpdated(root, lane, eventTime); if (0 === (executionContext & 2) || root !== workInProgressRoot) { if (enableTransitionTracing) { - var transition = ReactCurrentBatchConfig$3.transition; + var transition = ReactCurrentBatchConfig.transition; if ( null !== transition && null != transition.name && @@ -12933,7 +12929,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { if (deferRenderPhaseUpdateToNextBatch || 0 === (executionContext & 2)) workInProgressRootInterleavedUpdatedLanes |= lane; 4 === workInProgressRootExitStatus && - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); 2 === lane && @@ -12950,14 +12946,14 @@ function ensureRootIsScheduled(root, currentTime) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === nextLanes) - null !== existingCallbackNode && cancelCallback(existingCallbackNode), + null !== existingCallbackNode && cancelCallback$1(existingCallbackNode), (root.callbackNode = null), (root.callbackPriority = 0); else if ( ((currentTime = nextLanes & -nextLanes), root.callbackPriority !== currentTime) ) { - null != existingCallbackNode && cancelCallback(existingCallbackNode); + null != existingCallbackNode && cancelCallback$1(existingCallbackNode); if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) @@ -12975,15 +12971,15 @@ function ensureRootIsScheduled(root, currentTime) { existingCallbackNode = UserBlockingPriority; break; case 32: - existingCallbackNode = NormalPriority; + existingCallbackNode = NormalPriority$1; break; case 536870912: existingCallbackNode = IdlePriority; break; default: - existingCallbackNode = NormalPriority; + existingCallbackNode = NormalPriority$1; } - existingCallbackNode = scheduleCallback$2( + existingCallbackNode = scheduleCallback( existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root) ); @@ -13029,11 +13025,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), originalCallbackNode) ); - if (6 === didTimeout) markRootSuspended$1(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); originallyAttemptedLanes = root.current.alternate; @@ -13044,23 +13040,23 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$207 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$202 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$207 && - ((lanes = errorRetryLanes$207), + 0 !== errorRetryLanes$202 && + ((lanes = errorRetryLanes$202), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$207 + errorRetryLanes$202 ))); } if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), originalCallbackNode) ); @@ -13079,7 +13075,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ); break; case 3: - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && ((lanes = globalMostRecentFallbackTime + 500 - now()), 10 < lanes) @@ -13103,15 +13099,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ); break; case 4: - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$207 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$207), - (errorRetryLanes$207 = didTimeout[errorRetryLanes$207]), - errorRetryLanes$207 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$207), + (errorRetryLanes$202 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$202), + (errorRetryLanes$202 = didTimeout[errorRetryLanes$202]), + errorRetryLanes$202 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$202), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now() - lanes; @@ -13230,7 +13226,7 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended$1(root, suspendedLanes) { +function markRootSuspended(root, suspendedLanes) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; @@ -13266,13 +13262,13 @@ function performSyncWorkOnRoot(root) { throw ( ((exitStatus = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), exitStatus) ); if (6 === exitStatus) return ( - markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), null + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), null ); root.finishedWork = root.current.alternate; root.finishedLanes = lanes; @@ -13284,7 +13280,7 @@ function performSyncWorkOnRoot(root) { ensureRootIsScheduled(root, now()); return null; } -function batchedUpdates$1(fn, a) { +function batchedUpdates(fn, a) { var prevExecutionContext = executionContext; executionContext |= 1; try { @@ -13296,25 +13292,25 @@ function batchedUpdates$1(fn, a) { includesLegacySyncCallbacks && flushSyncCallbacks()); } } -function flushSync(fn) { +function flushSync$1(fn) { null !== rootWithPendingPassiveEffects && 0 === rootWithPendingPassiveEffects.tag && 0 === (executionContext & 6) && flushPassiveEffects(); var prevExecutionContext = executionContext; executionContext |= 1; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { if ( - ((ReactCurrentBatchConfig$3.transition = null), + ((ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), fn) ) return fn(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (executionContext = prevExecutionContext), 0 === (executionContext & 6) && flushSyncCallbacks(); } @@ -13342,7 +13338,7 @@ function prepareFreshStack(root, lanes) { resetWorkInProgressStack(); workInProgressRoot = root; workInProgress = root = createWorkInProgress(root.current, null); - workInProgressRootRenderLanes = renderLanes$1 = lanes; + workInProgressRootRenderLanes = renderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; workInProgressRootDidAttachPingListener = !1; @@ -13359,7 +13355,7 @@ function prepareFreshStack(root, lanes) { } function handleThrow(root, thrownValue) { ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; if (thrownValue === SuspenseException) { if (null === suspendedThenable) throw Error(formatProdErrorMessage(459)); root = suspendedThenable; @@ -13403,10 +13399,10 @@ function shouldAttemptToSuspendUntilDataResolves() { function pushDispatcher(container) { container = getHoistableRoot(container); lastCurrentDocument = container.ownerDocument || container; - previousDispatcher = Dispatcher.current; - Dispatcher.current = ReactDOMClientDispatcher; - container = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + previousDispatcher = Dispatcher$1.current; + Dispatcher$1.current = ReactDOMClientDispatcher; + container = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = ContextOnlyDispatcher; return null === container ? ContextOnlyDispatcher : container; } function pushCacheDispatcher() { @@ -13419,7 +13415,7 @@ function renderDidSuspendDelayIfPossible() { null === workInProgressRoot || (0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) || - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes); } function renderRootSync(root, lanes) { var prevExecutionContext = executionContext; @@ -13447,15 +13443,15 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$210) { - handleThrow(root, thrownValue$210); + } catch (thrownValue$205) { + handleThrow(root, thrownValue$205); } while (1); resetContextDependencies(); executionContext = prevExecutionContext; - Dispatcher.current = previousDispatcher; + Dispatcher$1.current = previousDispatcher; previousDispatcher = null; - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; ReactCurrentCache.current = prevCacheDispatcher; if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); workInProgressRoot = null; @@ -13525,14 +13521,14 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$212) { - handleThrow(root, thrownValue$212); + } catch (thrownValue$207) { + handleThrow(root, thrownValue$207); } while (1); resetContextDependencies(); - Dispatcher.current = previousDispatcher; + Dispatcher$1.current = previousDispatcher; previousDispatcher = null; - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; ReactCurrentCache.current = prevCacheDispatcher; executionContext = prevExecutionContext; if (null !== workInProgress) return 0; @@ -13546,10 +13542,10 @@ function workLoopConcurrent() { performUnitOfWork(workInProgress); } function performUnitOfWork(unitOfWork) { - var next = beginWork$1(unitOfWork.alternate, unitOfWork, renderLanes$1); + var next = beginWork(unitOfWork.alternate, unitOfWork, renderLanes); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function replaySuspendedUnitOfWork(unitOfWork) { var current = unitOfWork.alternate; @@ -13586,14 +13582,14 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetHooksOnUnwind(), unwindInterruptedWork(current, unitOfWork), (unitOfWork = workInProgress = - resetWorkInProgress(unitOfWork, renderLanes$1)), - (current = beginWork$1(current, unitOfWork, renderLanes$1)); + resetWorkInProgress(unitOfWork, renderLanes)), + (current = beginWork(current, unitOfWork, renderLanes)); } unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) : (workInProgress = current); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { resetContextDependencies(); @@ -13765,7 +13761,7 @@ function completeUnitOfWork(unitOfWork) { unitOfWork = completedWork.return; if (0 === (completedWork.flags & 32768)) { if ( - ((current = completeWork(current, completedWork, renderLanes$1)), + ((current = completeWork(current, completedWork, renderLanes)), null !== current) ) { workInProgress = current; @@ -13799,9 +13795,9 @@ function completeUnitOfWork(unitOfWork) { } function commitRoot(root, recoverableErrors, transitions) { var previousUpdateLanePriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig$3.transition; + prevTransition = ReactCurrentBatchConfig.transition; try { - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), commitRootImpl( root, @@ -13810,7 +13806,7 @@ function commitRoot(root, recoverableErrors, transitions) { previousUpdateLanePriority ); } finally { - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (currentUpdatePriority = previousUpdateLanePriority); } return null; @@ -13844,25 +13840,25 @@ function commitRootImpl( ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = remainingLanes), (pendingPassiveTransitions = transitions), - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; })); transitions = 0 !== (finishedWork.flags & 15990); if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactCurrentBatchConfig$3.transition; - ReactCurrentBatchConfig$3.transition = null; + transitions = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = null; var previousPriority = currentUpdatePriority; currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; - ReactCurrentOwner$2.current = null; - var shouldFireAfterActiveInstanceBlur$215 = commitBeforeMutationEffects( + ReactCurrentOwner.current = null; + var shouldFireAfterActiveInstanceBlur$210 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$215 && + shouldFireAfterActiveInstanceBlur$210 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -13874,7 +13870,7 @@ function commitRootImpl( requestPaint(); executionContext = prevExecutionContext; currentUpdatePriority = previousPriority; - ReactCurrentBatchConfig$3.transition = transitions; + ReactCurrentBatchConfig.transition = transitions; } else root.current = finishedWork; rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), @@ -13921,7 +13917,7 @@ function commitRootImpl( var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks; null !== prevPendingTransitionCallbacks ? ((currentPendingTransitionCallbacks = null), - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, endTime, @@ -13941,23 +13937,23 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$216 = rootWithPendingPassiveEffects, + var root$211 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); renderPriority = 32 > renderPriority ? 32 : renderPriority; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { return ( - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = renderPriority), flushPassiveEffectsImpl() ); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), - releaseRootPooledCache(root$216, remainingLanes); + (ReactCurrentBatchConfig.transition = prevTransition), + releaseRootPooledCache(root$211, remainingLanes); } } return !1; @@ -13985,7 +13981,7 @@ function flushPassiveEffectsImpl() { null !== prevRootTransitionCallbacks && null !== prevEndTime && ((currentEndTime = currentPendingTransitionCallbacks = null), - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, prevEndTime, @@ -14002,7 +13998,7 @@ function flushPassiveEffectsImpl() { function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && (markRootUpdated(rootFiber, 2, sourceFiber), @@ -14041,7 +14037,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber, 2 ); - nearestMountedAncestor = enqueueUpdate$1( + nearestMountedAncestor = enqueueUpdate( nearestMountedAncestor, sourceFiber, 2 @@ -14127,8 +14123,8 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { null !== retryCache && retryCache.delete(wakeable); retryTimedOutBoundary(boundaryFiber, retryLane); } -var beginWork$1; -beginWork$1 = function (current, workInProgress, renderLanes) { +var beginWork; +beginWork = function (current, workInProgress, renderLanes) { if (null !== current) if ( current.memoizedProps !== workInProgress.pendingProps || @@ -14163,7 +14159,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { current = workInProgress.pendingProps; var context = getMaskedContext( workInProgress, - contextStackCursor$1.current + contextStackCursor.current ); prepareToReadContext(workInProgress, renderLanes); current = renderWithHooks( @@ -14360,7 +14356,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { return workInProgress; case 26: return ( - markRef(current, workInProgress), + markRef$1(current, workInProgress), (renderLanes = workInProgress.memoizedState = getResource( workInProgress.type, @@ -14407,7 +14403,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { Component, renderLanes )), - markRef(current, workInProgress), + markRef$1(current, workInProgress), workInProgress.child ); case 5: @@ -14423,7 +14419,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { : null !== prevState && shouldSetTextContent(Component, prevState) && (workInProgress.flags |= 32), - markRef(current, workInProgress), + markRef$1(current, workInProgress), reconcileChildren(current, workInProgress, root, renderLanes), workInProgress.child ); @@ -14682,8 +14678,8 @@ beginWork$1 = function (current, workInProgress, renderLanes) { } throw Error(formatProdErrorMessage(156, workInProgress.tag)); }; -function scheduleCallback$2(priorityLevel, callback) { - return scheduleCallback(priorityLevel, callback); +function scheduleCallback(priorityLevel, callback) { + return scheduleCallback$2(priorityLevel, callback); } function FiberNode(tag, pendingProps, key, mode) { this.tag = tag; @@ -14810,7 +14806,7 @@ function createFiberFromTypeAndProps( fiberTag = isHostHoistableType( type, pendingProps, - contextStackCursor.current + contextStackCursor$1.current ) ? 26 : "html" === type || "head" === type || "body" === type @@ -15074,7 +15070,7 @@ function createFiberRoot( initializeUpdateQueue(isStrictMode); return containerInfo; } -function createPortal(children, containerInfo, implementation) { +function createPortal$1(children, containerInfo, implementation) { var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { @@ -15154,7 +15150,7 @@ function createHydrationContainer( isStrictMode = createUpdate(tag, hydrationCallbacks); isStrictMode.callback = void 0 !== callback && null !== callback ? callback : null; - enqueueUpdate$1(containerInfo, isStrictMode, hydrationCallbacks); + enqueueUpdate(containerInfo, isStrictMode, hydrationCallbacks); initialChildren.current.lanes = hydrationCallbacks; markRootUpdated(initialChildren, hydrationCallbacks, tag); ensureRootIsScheduled(initialChildren, tag); @@ -15172,7 +15168,7 @@ function updateContainer(element, container, parentComponent, callback) { container.payload = { element: element }; callback = void 0 === callback ? null : callback; null !== callback && (container.callback = callback); - element = enqueueUpdate$1(current, container, lane); + element = enqueueUpdate(current, container, lane); null !== element && (scheduleUpdateOnFiber(element, current, lane, eventTime), entangleTransitions(element, current, lane)); @@ -15203,7 +15199,7 @@ function markRetryLaneIfNotHydrated(fiber, retryLane) { function emptyFindFiberByHostInstance() { return null; } -var Dispatcher$1 = Internals.Dispatcher, +var Dispatcher = Internals.Dispatcher, defaultOnRecoverableError = "function" === typeof reportError ? reportError @@ -15225,7 +15221,7 @@ ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = if (null !== root) { this._internalRoot = null; var container = root.containerInfo; - flushSync(function () { + flushSync$1(function () { updateContainer(null, root, null, null); }); container[internalContainerInstanceKey] = null; @@ -15236,7 +15232,7 @@ function ReactDOMHydrationRoot(internalRoot) { } ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { if (target) { - var updatePriority = getCurrentUpdatePriority$1(); + var updatePriority = getCurrentUpdatePriority(); target = { blockedOn: null, target: target, priority: updatePriority }; for ( var i = 0; @@ -15281,11 +15277,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$219); + var instance = getPublicRootInstance(root$214); originalCallback.call(instance); }; } - var root$219 = createHydrationContainer( + var root$214 = createHydrationContainer( initialChildren, callback, container, @@ -15297,23 +15293,23 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$219; - container[internalContainerInstanceKey] = root$219.current; + container._reactRootContainer = root$214; + container[internalContainerInstanceKey] = root$214.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); - flushSync(); - return root$219; + flushSync$1(); + return root$214; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$220 = callback; + var originalCallback$215 = callback; callback = function () { - var instance = getPublicRootInstance(root$221); - originalCallback$220.call(instance); + var instance = getPublicRootInstance(root$216); + originalCallback$215.call(instance); }; } - var root$221 = createFiberRoot( + var root$216 = createFiberRoot( container, 0, !1, @@ -15325,15 +15321,15 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$221; - container[internalContainerInstanceKey] = root$221.current; + container._reactRootContainer = root$216; + container[internalContainerInstanceKey] = root$216.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); - flushSync(function () { - updateContainer(initialChildren, root$221, parentComponent, callback); + flushSync$1(function () { + updateContainer(initialChildren, root$216, parentComponent, callback); }); - return root$221; + return root$216; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -15387,18 +15383,18 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { _attemptSynchronousHydration = function (fiber) { switch (fiber.tag) { case 3: - var root$218 = fiber.stateNode; - if (root$218.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$218.pendingLanes); + var root$213 = fiber.stateNode; + if (root$213.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$213.pendingLanes); 0 !== lanes && - (markRootEntangled(root$218, lanes | 2), - ensureRootIsScheduled(root$218, now()), + (markRootEntangled(root$213, lanes | 2), + ensureRootIsScheduled(root$213, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); } break; case 13: - flushSync(function () { + flushSync$1(function () { var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); @@ -15408,7 +15404,7 @@ _attemptSynchronousHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 2); } }; -attemptDiscreteHydration = function (fiber) { +attemptDiscreteHydration$1 = function (fiber) { if (13 === fiber.tag) { var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { @@ -15418,7 +15414,7 @@ attemptDiscreteHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 2); } }; -attemptContinuousHydration = function (fiber) { +attemptContinuousHydration$1 = function (fiber) { if (13 === fiber.tag) { var root = enqueueConcurrentRenderForLane(fiber, 134217728); if (null !== root) { @@ -15428,7 +15424,7 @@ attemptContinuousHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 134217728); } }; -attemptHydrationAtCurrentPriority = function (fiber) { +attemptHydrationAtCurrentPriority$1 = function (fiber) { if (13 === fiber.tag) { var lane = requestUpdateLane(fiber), root = enqueueConcurrentRenderForLane(fiber, lane); @@ -15439,14 +15435,14 @@ attemptHydrationAtCurrentPriority = function (fiber) { markRetryLaneIfNotHydrated(fiber, lane); } }; -getCurrentUpdatePriority$1 = function () { +getCurrentUpdatePriority = function () { return currentUpdatePriority; }; attemptHydrationAtPriority = runWithPriority; restoreImpl = function (domElement, tag, props) { switch (tag) { case "input": - updateWrapper(domElement, props); + updateWrapper$1(domElement, props); tag = props.name; if ("radio" === props.type && null != tag) { for (props = domElement; props.parentNode; ) props = props.parentNode; @@ -15459,40 +15455,40 @@ restoreImpl = function (domElement, tag, props) { var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) throw Error(formatProdErrorMessage(90)); updateValueIfChanged(otherNode); - updateWrapper(otherNode, otherProps); + updateWrapper$1(otherNode, otherProps); } } } break; case "textarea": - updateWrapper$1(domElement, props); + updateWrapper(domElement, props); break; case "select": (tag = props.value), null != tag && updateOptions(domElement, !!props.multiple, tag, !1); } }; -batchedUpdatesImpl = batchedUpdates$1; -flushSyncImpl = flushSync; +batchedUpdatesImpl = batchedUpdates; +flushSyncImpl = flushSync$1; Internals.Events = [ - getInstanceFromNode$1, + getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, - batchedUpdates$1 + batchedUpdates ]; -var devToolsConfig$jscomp$inline_1743 = { +var devToolsConfig$jscomp$inline_1731 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-bc38a3dfa-20230220", + version: "18.3.0-www-classic-6b6d0617e-20230220", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2106 = { - bundleType: devToolsConfig$jscomp$inline_1743.bundleType, - version: devToolsConfig$jscomp$inline_1743.version, - rendererPackageName: devToolsConfig$jscomp$inline_1743.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1743.rendererConfig, +var internals$jscomp$inline_2096 = { + bundleType: devToolsConfig$jscomp$inline_1731.bundleType, + version: devToolsConfig$jscomp$inline_1731.version, + rendererPackageName: devToolsConfig$jscomp$inline_1731.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1731.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15508,26 +15504,26 @@ var internals$jscomp$inline_2106 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1743.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1731.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-bc38a3dfa-20230220" + reconcilerVersion: "18.3.0-next-6b6d0617e-20230220" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2107 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2097 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2107.isDisabled && - hook$jscomp$inline_2107.supportsFiber + !hook$jscomp$inline_2097.isDisabled && + hook$jscomp$inline_2097.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2107.inject( - internals$jscomp$inline_2106 + (rendererID = hook$jscomp$inline_2097.inject( + internals$jscomp$inline_2096 )), - (injectedHook = hook$jscomp$inline_2107); + (injectedHook = hook$jscomp$inline_2097); } catch (err) {} } assign(Internals, { @@ -15542,7 +15538,7 @@ exports.createPortal = function (children, container) { var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; if (!isValidContainer(container)) throw Error(formatProdErrorMessage(200)); - return createPortal(children, container, null, key); + return createPortal$1(children, container, null, key); }; exports.createRoot = function (container, options) { if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299)); @@ -15575,7 +15571,7 @@ exports.createRoot = function (container, options) { transitionCallbacks ); container[internalContainerInstanceKey] = options.current; - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); @@ -15597,7 +15593,7 @@ exports.findDOMNode = function (componentOrElement) { return componentOrElement; }; exports.flushSync = function (fn) { - return flushSync(fn); + return flushSync$1(fn); }; exports.hydrate = function (element, container, callback) { if (!isValidContainerLegacy(container)) @@ -15642,7 +15638,7 @@ exports.hydrateRoot = function (container, initialChildren, options) { transitionCallbacks ); container[internalContainerInstanceKey] = initialChildren.current; - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; listenToAllSupportedEvents(container); if (mutableSources) for (container = 0; container < mutableSources.length; container++) @@ -15683,7 +15679,7 @@ exports.unmountComponentAtNode = function (container) { if (!isValidContainerLegacy(container)) throw Error(formatProdErrorMessage(40)); return container._reactRootContainer - ? (flushSync(function () { + ? (flushSync$1(function () { legacyRenderSubtreeIntoContainer( null, null, @@ -15698,7 +15694,7 @@ exports.unmountComponentAtNode = function (container) { !0) : !1; }; -exports.unstable_batchedUpdates = batchedUpdates$1; +exports.unstable_batchedUpdates = batchedUpdates; exports.unstable_createEventHandle = function (type, options) { function eventHandle(target, callback) { if ("function" !== typeof callback) @@ -15731,15 +15727,15 @@ exports.unstable_createEventHandle = function (type, options) { exports.unstable_flushControlled = function (fn) { var prevExecutionContext = executionContext; executionContext |= 1; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (executionContext = prevExecutionContext), 0 === executionContext && (resetRenderTimer(), flushSyncCallbacks()); } @@ -15763,4 +15759,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-bc38a3dfa-20230220"; +exports.version = "18.3.0-next-6b6d0617e-20230220"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 2a1fdbb9b5..494546ad4e 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -14,8 +14,8 @@ Modernizr 3.0.0pre (Custom Build) | MIT */ "use strict"; -var React = require("react"), - Scheduler = require("scheduler"), +var Scheduler = require("scheduler"), + React = require("react"), Internals = { usingClientEntryPoint: !1, Events: null, @@ -108,7 +108,7 @@ function getClosestInstanceFromNode(targetNode) { } return null; } -function getInstanceFromNode(node) { +function getInstanceFromNode$1(node) { if ( (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) ) { @@ -744,7 +744,7 @@ function getActiveElement(doc) { return doc.body; } } -function getHostProps(element, props) { +function getHostProps$2(element, props) { var checked = props.checked; return assign({}, props, { defaultChecked: void 0, @@ -753,7 +753,7 @@ function getHostProps(element, props) { checked: null != checked ? checked : element._wrapperState.initialChecked }); } -function initWrapperState(element, props) { +function initWrapperState$2(element, props) { var defaultValue = null == props.defaultValue ? "" : props.defaultValue, JSCompiler_temp_const = null != props.checked ? props.checked : props.defaultChecked; @@ -773,7 +773,7 @@ function updateChecked(element, props) { props = props.checked; null != props && setValueForProperty(element, "checked", props, !1); } -function updateWrapper(element, props) { +function updateWrapper$1(element, props) { updateChecked(element, props); var value = getToStringValue(props.value), type = props.type; @@ -805,7 +805,7 @@ function updateWrapper(element, props) { null != props.defaultChecked && (element.defaultChecked = !!props.defaultChecked); } -function postMountWrapper(element, props, isHydrating) { +function postMountWrapper$3(element, props, isHydrating) { if (props.hasOwnProperty("value") || props.hasOwnProperty("defaultValue")) { var type = props.type; if ( @@ -867,7 +867,7 @@ function updateOptions(node, multiple, propValue, setDefaultSelected) { null !== multiple && (multiple.selected = !0); } } -function getHostProps$2(element, props) { +function getHostProps(element, props) { if (null != props.dangerouslySetInnerHTML) throw Error(formatProdErrorMessage(91)); return assign({}, props, { @@ -876,7 +876,7 @@ function getHostProps$2(element, props) { children: "" + element._wrapperState.initialValue }); } -function initWrapperState$2(element, props) { +function initWrapperState(element, props) { var initialValue = props.value; null == initialValue && ((props = props.defaultValue), @@ -884,7 +884,7 @@ function initWrapperState$2(element, props) { (initialValue = props)); element._wrapperState = { initialValue: getToStringValue(initialValue) }; } -function updateWrapper$1(element, props) { +function updateWrapper(element, props) { var value = getToStringValue(props.value), defaultValue = getToStringValue(props.defaultValue); null != value && @@ -895,7 +895,7 @@ function updateWrapper$1(element, props) { (element.defaultValue = value)); null != defaultValue && (element.defaultValue = "" + defaultValue); } -function postMountWrapper$3(element) { +function postMountWrapper(element) { var textContent = element.textContent; textContent === element._wrapperState.initialValue && "" !== textContent && @@ -1105,7 +1105,7 @@ var restoreImpl = null, restoreTarget = null, restoreQueue = null; function restoreStateOfTarget(target) { - if ((target = getInstanceFromNode(target))) { + if ((target = getInstanceFromNode$1(target))) { if ("function" !== typeof restoreImpl) throw Error(formatProdErrorMessage(280)); var stateNode = target.stateNode; @@ -1137,7 +1137,7 @@ function batchedUpdatesImpl(fn, bookkeeping) { } function flushSyncImpl() {} var isInsideEventHandler = !1; -function batchedUpdates(fn, a, b) { +function batchedUpdates$1(fn, a, b) { if (isInsideEventHandler) return fn(a, b); isInsideEventHandler = !0; try { @@ -1370,15 +1370,15 @@ function doesFiberContain(parentFiber, childFiber) { } return !1; } -var scheduleCallback = Scheduler.unstable_scheduleCallback, - cancelCallback = Scheduler.unstable_cancelCallback, +var scheduleCallback$2 = Scheduler.unstable_scheduleCallback, + cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, now = Scheduler.unstable_now, getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, - NormalPriority = Scheduler.unstable_NormalPriority, + NormalPriority$1 = Scheduler.unstable_NormalPriority, LowPriority = Scheduler.unstable_LowPriority, IdlePriority = Scheduler.unstable_IdlePriority, rendererID = null, @@ -1671,10 +1671,10 @@ function lanesToEventPriority(lanes) { : 2; } var _attemptSynchronousHydration, - attemptDiscreteHydration, - attemptContinuousHydration, - attemptHydrationAtCurrentPriority, - getCurrentUpdatePriority$1, + attemptDiscreteHydration$1, + attemptContinuousHydration$1, + attemptHydrationAtCurrentPriority$1, + getCurrentUpdatePriority, attemptHydrationAtPriority, hasScheduledReplayAttempt = !1, queuedDiscreteEvents = [], @@ -1723,7 +1723,7 @@ function queueDiscreteEvent( 1 === queuedDiscreteEvents.length) ) for (; null !== blockedOn.blockedOn; ) { - domEventName = getInstanceFromNode(blockedOn.blockedOn); + domEventName = getInstanceFromNode$1(blockedOn.blockedOn); if (null === domEventName) break; _attemptSynchronousHydration(domEventName); if (null === blockedOn.blockedOn) replayUnblockedEvents(); @@ -1774,8 +1774,8 @@ function accumulateOrCreateContinuousQueuedReplayableEvent( nativeEvent )), null !== blockedOn && - ((blockedOn = getInstanceFromNode(blockedOn)), - null !== blockedOn && attemptContinuousHydration(blockedOn)), + ((blockedOn = getInstanceFromNode$1(blockedOn)), + null !== blockedOn && attemptContinuousHydration$1(blockedOn)), existingQueuedEvent ); existingQueuedEvent.eventSystemFlags |= eventSystemFlags; @@ -1874,7 +1874,7 @@ function attemptExplicitHydrationTarget(queuedTarget) { ) { queuedTarget.blockedOn = targetInst; attemptHydrationAtPriority(queuedTarget.priority, function () { - attemptHydrationAtCurrentPriority(nearestMounted); + attemptHydrationAtCurrentPriority$1(nearestMounted); }); return; } @@ -1922,9 +1922,9 @@ function attemptReplayContinuousQueuedEvent(queuedEvent) { (currentReplayingEvent = null); else return ( - (targetContainers = getInstanceFromNode(nextBlockedOn)), + (targetContainers = getInstanceFromNode$1(nextBlockedOn)), null !== targetContainers && - attemptContinuousHydration(targetContainers), + attemptContinuousHydration$1(targetContainers), (queuedEvent.blockedOn = nextBlockedOn), !1 ); @@ -1941,9 +1941,9 @@ function replayUnblockedEvents() { for (; 0 < queuedDiscreteEvents.length; ) { var nextDiscreteEvent = queuedDiscreteEvents[0]; if (null !== nextDiscreteEvent.blockedOn) { - nextDiscreteEvent = getInstanceFromNode(nextDiscreteEvent.blockedOn); + nextDiscreteEvent = getInstanceFromNode$1(nextDiscreteEvent.blockedOn); null !== nextDiscreteEvent && - attemptDiscreteHydration(nextDiscreteEvent); + attemptDiscreteHydration$1(nextDiscreteEvent); break; } for ( @@ -2028,7 +2028,7 @@ function retryIfBlockedOn(unblocked) { attemptExplicitHydrationTarget(i), null === i.blockedOn && queuedExplicitHydrationTargets.shift(); } -var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, +var ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig, _enabled = !0; function createEventListenerWrapperWithPriority( targetContainer, @@ -2059,14 +2059,14 @@ function dispatchDiscreteEvent( nativeEvent ) { var previousPriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig.transition = prevTransition); + (ReactCurrentBatchConfig$3.transition = prevTransition); } } function dispatchContinuousEvent( @@ -2076,14 +2076,14 @@ function dispatchContinuousEvent( nativeEvent ) { var previousPriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig.transition = prevTransition); + (ReactCurrentBatchConfig$3.transition = prevTransition); } } function dispatchEvent( @@ -2125,7 +2125,7 @@ function dispatchEvent( -1 < discreteReplayableEvents.indexOf(domEventName)) ) { for (; null !== blockedOn; ) { - var fiber = getInstanceFromNode(blockedOn); + var fiber = getInstanceFromNode$1(blockedOn); null !== fiber && _attemptSynchronousHydration(fiber); fiber = findInstanceBlockingEvent( domEventName, @@ -2328,7 +2328,7 @@ function getEventPriority(domEventName) { return 2; case UserBlockingPriority: return 8; - case NormalPriority: + case NormalPriority$1: case LowPriority: return 32; case IdlePriority: @@ -2819,8 +2819,8 @@ function createAndAccumulateChangeEvent( )), dispatchQueue.push({ event: nativeEvent, listeners: inst })); } -var activeElement = null, - activeElementInst = null; +var activeElement$1 = null, + activeElementInst$1 = null; function runEventInBatch(dispatchQueue) { processDispatchQueue(dispatchQueue, 0); } @@ -2833,47 +2833,47 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$238; + var JSCompiler_inline_result$jscomp$232; if (canUseDOM) { - var isSupported$jscomp$inline_394 = "oninput" in document; - if (!isSupported$jscomp$inline_394) { - var element$jscomp$inline_395 = document.createElement("div"); - element$jscomp$inline_395.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_394 = - "function" === typeof element$jscomp$inline_395.oninput; + var isSupported$jscomp$inline_387 = "oninput" in document; + if (!isSupported$jscomp$inline_387) { + var element$jscomp$inline_388 = document.createElement("div"); + element$jscomp$inline_388.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_387 = + "function" === typeof element$jscomp$inline_388.oninput; } - JSCompiler_inline_result$jscomp$238 = isSupported$jscomp$inline_394; - } else JSCompiler_inline_result$jscomp$238 = !1; + JSCompiler_inline_result$jscomp$232 = isSupported$jscomp$inline_387; + } else JSCompiler_inline_result$jscomp$232 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$238 && + JSCompiler_inline_result$jscomp$232 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { - activeElement && - (activeElement.detachEvent("onpropertychange", handlePropertyChange), - (activeElementInst = activeElement = null)); + activeElement$1 && + (activeElement$1.detachEvent("onpropertychange", handlePropertyChange), + (activeElementInst$1 = activeElement$1 = null)); } function handlePropertyChange(nativeEvent) { if ( "value" === nativeEvent.propertyName && - getInstIfValueChanged(activeElementInst) + getInstIfValueChanged(activeElementInst$1) ) { var dispatchQueue = []; createAndAccumulateChangeEvent( dispatchQueue, - activeElementInst, + activeElementInst$1, nativeEvent, getEventTarget(nativeEvent) ); - batchedUpdates(runEventInBatch, dispatchQueue); + batchedUpdates$1(runEventInBatch, dispatchQueue); } } function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { "focusin" === domEventName ? (stopWatchingForValueChange(), - (activeElement = target), - (activeElementInst = targetInst), - activeElement.attachEvent("onpropertychange", handlePropertyChange)) + (activeElement$1 = target), + (activeElementInst$1 = targetInst), + activeElement$1.attachEvent("onpropertychange", handlePropertyChange)) : "focusout" === domEventName && stopWatchingForValueChange(); } function getTargetInstForInputEventPolyfill(domEventName) { @@ -2882,7 +2882,7 @@ function getTargetInstForInputEventPolyfill(domEventName) { "keyup" === domEventName || "keydown" === domEventName ) - return getInstIfValueChanged(activeElementInst); + return getInstIfValueChanged(activeElementInst$1); } function getTargetInstForClickEvent(domEventName, targetInst) { if ("click" === domEventName) return getInstIfValueChanged(targetInst); @@ -2944,14 +2944,14 @@ function getNodeForCharacterOffset(root, offset) { node = getLeafNode(node); } } -function containsNode(outerNode, innerNode) { +function containsNode$1(outerNode, innerNode) { return outerNode && innerNode ? outerNode === innerNode ? !0 : outerNode && 3 === outerNode.nodeType ? !1 : innerNode && 3 === innerNode.nodeType - ? containsNode(outerNode, innerNode.parentNode) + ? containsNode$1(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : outerNode.compareDocumentPosition @@ -2999,7 +2999,7 @@ function restoreSelection(priorSelectionInformation) { curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && - containsNode( + containsNode$1( priorFocusedElem.ownerDocument.documentElement, priorFocusedElem ) @@ -3090,8 +3090,8 @@ function restoreSelection(priorSelectionInformation) { } var skipSelectionChangeEvent = canUseDOM && "documentMode" in document && 11 >= document.documentMode, - activeElement$1 = null, - activeElementInst$1 = null, + activeElement = null, + activeElementInst = null, lastSelection = null, mouseDown = !1; function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { @@ -3102,9 +3102,9 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { ? nativeEventTarget : nativeEventTarget.ownerDocument; mouseDown || - null == activeElement$1 || - activeElement$1 !== getActiveElement(doc) || - ((doc = activeElement$1), + null == activeElement || + activeElement !== getActiveElement(doc) || + ((doc = activeElement), "selectionStart" in doc && hasSelectionCapabilities(doc) ? (doc = { start: doc.selectionStart, end: doc.selectionEnd }) : ((doc = ( @@ -3119,7 +3119,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { })), (lastSelection && shallowEqual(lastSelection, doc)) || ((lastSelection = doc), - (doc = accumulateTwoPhaseListeners(activeElementInst$1, "onSelect")), + (doc = accumulateTwoPhaseListeners(activeElementInst, "onSelect")), 0 < doc.length && ((nativeEvent = new SyntheticEvent( "onSelect", @@ -3129,7 +3129,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { nativeEventTarget )), dispatchQueue.push({ event: nativeEvent, listeners: doc }), - (nativeEvent.target = activeElement$1)))); + (nativeEvent.target = activeElement)))); } function makePrefixMap(styleProp, eventName) { var prefixes = {}; @@ -3180,19 +3180,19 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_435 = 0; - i$jscomp$inline_435 < simpleEventPluginEvents.length; - i$jscomp$inline_435++ + var i$jscomp$inline_428 = 0; + i$jscomp$inline_428 < simpleEventPluginEvents.length; + i$jscomp$inline_428++ ) { - var eventName$jscomp$inline_436 = - simpleEventPluginEvents[i$jscomp$inline_435], - domEventName$jscomp$inline_437 = eventName$jscomp$inline_436.toLowerCase(), - capitalizedEvent$jscomp$inline_438 = - eventName$jscomp$inline_436[0].toUpperCase() + - eventName$jscomp$inline_436.slice(1); + var eventName$jscomp$inline_429 = + simpleEventPluginEvents[i$jscomp$inline_428], + domEventName$jscomp$inline_430 = eventName$jscomp$inline_429.toLowerCase(), + capitalizedEvent$jscomp$inline_431 = + eventName$jscomp$inline_429[0].toUpperCase() + + eventName$jscomp$inline_429.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_437, - "on" + capitalizedEvent$jscomp$inline_438 + domEventName$jscomp$inline_430, + "on" + capitalizedEvent$jscomp$inline_431 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -3451,7 +3451,7 @@ function dispatchEventForPluginEventSystem( targetInst$jscomp$0 = targetInst$jscomp$0.return; } } - batchedUpdates(function () { + batchedUpdates$1(function () { var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = []; @@ -3765,12 +3765,12 @@ function dispatchEventForPluginEventSystem( isTextInputElement(handleEventFunc) || "true" === handleEventFunc.contentEditable ) - (activeElement$1 = handleEventFunc), - (activeElementInst$1 = targetInst), + (activeElement = handleEventFunc), + (activeElementInst = targetInst), (lastSelection = null); break; case "focusout": - lastSelection = activeElementInst$1 = activeElement$1 = null; + lastSelection = activeElementInst = activeElement = null; break; case "mousedown": mouseDown = !0; @@ -4026,7 +4026,7 @@ function normalizeMarkupForTextOrAttribute(markup) { .replace(NORMALIZE_NEWLINES_REGEX, "\n") .replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ""); } -function noop() {} +function noop$1() {} function createElement(type, props, rootContainerElement, parentNamespace) { rootContainerElement = 9 === rootContainerElement.nodeType @@ -4091,8 +4091,8 @@ function setInitialProperties(domElement, tag, rawProps) { props = rawProps; break; case "input": - initWrapperState(domElement, rawProps); - props = getHostProps(domElement, rawProps); + initWrapperState$2(domElement, rawProps); + props = getHostProps$2(domElement, rawProps); listenToNonDelegatedEvent("invalid", domElement); break; case "option": @@ -4104,8 +4104,8 @@ function setInitialProperties(domElement, tag, rawProps) { listenToNonDelegatedEvent("invalid", domElement); break; case "textarea": - initWrapperState$2(domElement, rawProps); - props = getHostProps$2(domElement, rawProps); + initWrapperState(domElement, rawProps); + props = getHostProps(domElement, rawProps); listenToNonDelegatedEvent("invalid", domElement); break; default: @@ -4148,11 +4148,11 @@ function setInitialProperties(domElement, tag, rawProps) { switch (tag) { case "input": track(domElement); - postMountWrapper(domElement, rawProps, !1); + postMountWrapper$3(domElement, rawProps, !1); break; case "textarea": track(domElement); - postMountWrapper$3(domElement); + postMountWrapper(domElement); break; case "option": null != rawProps.value && @@ -4172,7 +4172,7 @@ function setInitialProperties(domElement, tag, rawProps) { ); break; default: - "function" === typeof props.onClick && (domElement.onclick = noop); + "function" === typeof props.onClick && (domElement.onclick = noop$1); } } function updateProperties( @@ -4201,10 +4201,10 @@ function updateProperties( } switch (tag) { case "input": - updateWrapper(domElement, nextRawProps); + updateWrapper$1(domElement, nextRawProps); break; case "textarea": - updateWrapper$1(domElement, nextRawProps); + updateWrapper(domElement, nextRawProps); break; case "select": (updatePayload = domElement._wrapperState.wasMultiple), @@ -4282,10 +4282,10 @@ function popHostContext(fiber) { contextFiberStackCursor.current === fiber && (pop(contextStackCursor), pop(contextFiberStackCursor)); } -var Dispatcher = Internals.Dispatcher, +var Dispatcher$1 = Internals.Dispatcher, lastCurrentDocument = null, previousDispatcher = null, - ReactDOMClientDispatcher = { preload: preload, preinit: preinit }, + ReactDOMClientDispatcher = { preload: preload$1, preinit: preinit$1 }, preloadPropsMap = new Map(); function getHoistableRoot(container) { return "function" === typeof container.getRootNode @@ -4305,7 +4305,7 @@ function getDocumentForPreloads() { return null; } } -function preload(href, options) { +function preload$1(href, options) { var ownerDocument = getDocumentForPreloads(); if ( "string" === typeof href && @@ -4350,7 +4350,7 @@ function preload(href, options) { ownerDocument.head.appendChild(options))); } } -function preinit(href, options) { +function preinit$1(href, options) { if ( "string" === typeof href && href && @@ -4926,7 +4926,7 @@ function flushSyncCallbacks() { } catch (error) { throw ( (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback(ImmediatePriority, flushSyncCallbacks), + scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), error) ); } finally { @@ -5151,7 +5151,7 @@ function prepareToHydrateHostInstance(fiber) { listenToNonDelegatedEvent("toggle", instance); break; case "input": - initWrapperState(instance, props); + initWrapperState$2(instance, props); listenToNonDelegatedEvent("invalid", instance); break; case "select": @@ -5159,7 +5159,7 @@ function prepareToHydrateHostInstance(fiber) { listenToNonDelegatedEvent("invalid", instance); break; case "textarea": - initWrapperState$2(instance, props), + initWrapperState(instance, props), listenToNonDelegatedEvent("invalid", instance); } assertValidProps(type, props); @@ -5190,17 +5190,17 @@ function prepareToHydrateHostInstance(fiber) { switch (type) { case "input": track(instance); - postMountWrapper(instance, props, !0); + postMountWrapper$3(instance, props, !0); break; case "textarea": track(instance); - postMountWrapper$3(instance); + postMountWrapper(instance); break; case "select": case "option": break; default: - "function" === typeof props.onClick && (instance.onclick = noop); + "function" === typeof props.onClick && (instance.onclick = noop$1); } instance = updatePayload; fiber.updateQueue = instance; @@ -5305,7 +5305,7 @@ function finishQueueingConcurrentUpdates() { 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); } } -function enqueueUpdate(fiber, queue, update, lane) { +function enqueueUpdate$1(fiber, queue, update, lane) { concurrentQueues[concurrentQueuesIndex++] = fiber; concurrentQueues[concurrentQueuesIndex++] = queue; concurrentQueues[concurrentQueuesIndex++] = update; @@ -5316,7 +5316,7 @@ function enqueueUpdate(fiber, queue, update, lane) { null !== fiber && (fiber.lanes |= lane); } function enqueueConcurrentRenderForLane(fiber, lane) { - enqueueUpdate(fiber, null, null, lane); + enqueueUpdate$1(fiber, null, null, lane); return getRootForUpdatedFiber(fiber); } function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { @@ -5386,7 +5386,7 @@ function createUpdate(eventTime, lane) { next: null }; } -function enqueueUpdate$1(fiber, update, lane) { +function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (null === updateQueue) return null; updateQueue = updateQueue.shared; @@ -5395,7 +5395,7 @@ function enqueueUpdate$1(fiber, update, lane) { 0 === (executionContext & 2) ) return ( - enqueueUpdate(fiber, updateQueue, update, lane), + enqueueUpdate$1(fiber, updateQueue, update, lane), getRootForUpdatedFiber(fiber) ); var pending = updateQueue.pending; @@ -6279,17 +6279,17 @@ var reconcileChildFibers = createChildReconciler(!0), currentTreeHiddenStackCursor = createCursor(null), prevRenderLanesStackCursor = createCursor(0); function pushHiddenContext(fiber, context) { - fiber = renderLanes$1; + fiber = renderLanes; push(prevRenderLanesStackCursor, fiber); push(currentTreeHiddenStackCursor, context); - renderLanes$1 = fiber | context.baseLanes; + renderLanes = fiber | context.baseLanes; } function reuseHiddenContextOnStack() { - push(prevRenderLanesStackCursor, renderLanes$1); + push(prevRenderLanesStackCursor, renderLanes); push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current); } function popHiddenContext() { - renderLanes$1 = prevRenderLanesStackCursor.current; + renderLanes = prevRenderLanesStackCursor.current; pop(currentTreeHiddenStackCursor); pop(prevRenderLanesStackCursor); } @@ -6364,12 +6364,12 @@ function isThenableResolved(thenable) { thenable = thenable.status; return "fulfilled" === thenable || "rejected" === thenable; } -function noop$1() {} +function noop() {} function trackUsedThenable(thenableState, thenable, index) { index = thenableState[index]; void 0 === index ? thenableState.push(thenable) - : index !== thenable && (thenable.then(noop$1, noop$1), (thenable = index)); + : index !== thenable && (thenable.then(noop, noop), (thenable = index)); switch (thenable.status) { case "fulfilled": return thenable.value; @@ -6377,7 +6377,7 @@ function trackUsedThenable(thenableState, thenable, index) { throw thenable.reason; default: "string" === typeof thenable.status - ? thenable.then(noop$1, noop$1) + ? thenable.then(noop, noop) : ((thenableState = thenable), (thenableState.status = "pending"), thenableState.then( @@ -6408,9 +6408,9 @@ function trackUsedThenable(thenableState, thenable, index) { } var suspendedThenable = null, ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, - renderLanes = 0, - currentlyRenderingFiber = null, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + renderLanes$1 = 0, + currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, @@ -6437,8 +6437,8 @@ function renderWithHooks( secondArg, nextRenderLanes ) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber = workInProgress; + renderLanes$1 = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; workInProgress.memoizedState = null; workInProgress.updateQueue = null; workInProgress.lanes = 0; @@ -6462,8 +6462,8 @@ function renderWithHooks( function finishRenderingHooks(current) { ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; + renderLanes$1 = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdate = !1; thenableIndexCounter = 0; thenableState = null; @@ -6502,15 +6502,15 @@ function bailoutHooks(current, workInProgress, lanes) { } function resetHooksOnUnwind() { if (didScheduleRenderPhaseUpdate) { - for (var hook = currentlyRenderingFiber.memoizedState; null !== hook; ) { + for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook; ) { var queue = hook.queue; null !== queue && (queue.pending = null); hook = hook.next; } didScheduleRenderPhaseUpdate = !1; } - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; + renderLanes$1 = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdateDuringThisPass = !1; thenableIndexCounter = localIdCounter = 0; thenableState = null; @@ -6524,26 +6524,26 @@ function mountWorkInProgressHook() { next: null }; null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = hook) + ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook) : (workInProgressHook = workInProgressHook.next = hook); return workInProgressHook; } function updateWorkInProgressHook() { if (null === currentHook) { - var nextCurrentHook = currentlyRenderingFiber.alternate; + var nextCurrentHook = currentlyRenderingFiber$1.alternate; nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; } else nextCurrentHook = currentHook.next; var nextWorkInProgressHook = null === workInProgressHook - ? currentlyRenderingFiber.memoizedState + ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; if (null !== nextWorkInProgressHook) (workInProgressHook = nextWorkInProgressHook), (currentHook = nextCurrentHook); else { if (null === nextCurrentHook) - if (null === currentlyRenderingFiber.alternate) + if (null === currentlyRenderingFiber$1.alternate) nextCurrentHook = { memoizedState: null, baseState: null, @@ -6561,7 +6561,7 @@ function updateWorkInProgressHook() { next: null }; null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = + ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook) : (workInProgressHook = workInProgressHook.next = nextCurrentHook); } @@ -6589,10 +6589,10 @@ function use(usable) { } function useMemoCache(size) { var memoCache = null, - updateQueue = currentlyRenderingFiber.updateQueue; + updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; null !== current && ((current = current.updateQueue), null !== current && @@ -6608,7 +6608,7 @@ function useMemoCache(size) { null == memoCache && (memoCache = { data: [], index: 0 }); null === updateQueue && ((updateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = updateQueue)); + (currentlyRenderingFiber$1.updateQueue = updateQueue)); updateQueue.memoCache = memoCache; updateQueue = memoCache.data[memoCache.index]; if (void 0 === updateQueue) @@ -6652,7 +6652,7 @@ function updateReducer(reducer) { if ( updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane - : (renderLanes & updateLane) === updateLane + : (renderLanes$1 & updateLane) === updateLane ) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = @@ -6680,7 +6680,7 @@ function updateReducer(reducer) { ? ((newBaseQueueFirst = newBaseQueueLast = clone), (baseFirst = current)) : (newBaseQueueLast = newBaseQueueLast.next = clone); - currentlyRenderingFiber.lanes |= updateLane; + currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } update = update.next; @@ -6724,7 +6724,7 @@ function readFromUnsubscribedMutableSource(root, source, getSnapshot) { if (null !== JSCompiler_inline_result) root = JSCompiler_inline_result === getVersion; else if ( - ((root = root.mutableReadLanes), (root = (renderLanes & root) === root)) + ((root = root.mutableReadLanes), (root = (renderLanes$1 & root) === root)) ) (source._workInProgressVersionPrimary = getVersion), workInProgressSources.push(source); @@ -6749,7 +6749,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { prevGetSnapshot = refs.getSnapshot, prevSource = memoizedState.source; memoizedState = memoizedState.subscribe; - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; hook.memoizedState = { refs: refs, source: source, subscribe: subscribe }; dispatcher.useEffect( function () { @@ -6795,7 +6795,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { lastRenderedState: snapshot }), (hook.dispatch = setSnapshot = - dispatchSetState.bind(null, currentlyRenderingFiber, hook)), + dispatchSetState.bind(null, currentlyRenderingFiber$1, hook)), (_dispatcher$useState.queue = hook), (_dispatcher$useState.baseQueue = null), (snapshot = readFromUnsubscribedMutableSource(root, source, getSnapshot)), @@ -6808,7 +6808,7 @@ function updateMutableSource(source, getSnapshot, subscribe) { return useMutableSource(hook, source, getSnapshot, subscribe); } function updateSyncExternalStore(subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber, + var fiber = currentlyRenderingFiber$1, hook = updateWorkInProgressHook(), nextSnapshot = getSnapshot(), snapshotChanged = !objectIs( @@ -6835,7 +6835,7 @@ function updateSyncExternalStore(subscribe, getSnapshot) { ); subscribe = workInProgressRoot; if (null === subscribe) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(subscribe, renderLanes) || + includesBlockingLane(subscribe, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } return nextSnapshot; @@ -6843,10 +6843,10 @@ function updateSyncExternalStore(subscribe, getSnapshot) { function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { fiber.flags |= 16384; fiber = { getSnapshot: getSnapshot, value: renderedSnapshot }; - getSnapshot = currentlyRenderingFiber.updateQueue; + getSnapshot = currentlyRenderingFiber$1.updateQueue; null === getSnapshot ? ((getSnapshot = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = getSnapshot), + (currentlyRenderingFiber$1.updateQueue = getSnapshot), (getSnapshot.stores = [fiber])) : ((renderedSnapshot = getSnapshot.stores), null === renderedSnapshot @@ -6891,17 +6891,17 @@ function mountState(initialState) { hook.queue = initialState; initialState = initialState.dispatch = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, initialState ); return [hook.memoizedState, initialState]; } function pushEffect(tag, create, destroy, deps) { tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null }; - create = currentlyRenderingFiber.updateQueue; + create = currentlyRenderingFiber$1.updateQueue; null === create ? ((create = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = create), + (currentlyRenderingFiber$1.updateQueue = create), (create.lastEffect = tag.next = tag)) : ((destroy = create.lastEffect), null === destroy @@ -6917,7 +6917,7 @@ function updateRef() { } function mountEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( 1 | hookFlags, create, @@ -6937,7 +6937,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { return; } } - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); } function mountEffect(create, deps) { @@ -6947,11 +6947,11 @@ function updateEffect(create, deps) { updateEffectImpl(2048, 8, create, deps); } function useEffectEventImpl(payload) { - currentlyRenderingFiber.flags |= 4; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + currentlyRenderingFiber$1.flags |= 4; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (null === componentUpdateQueue) (componentUpdateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = componentUpdateQueue), + (currentlyRenderingFiber$1.updateQueue = componentUpdateQueue), (componentUpdateQueue.events = [payload]); else { var events = componentUpdateQueue.events; @@ -7026,14 +7026,14 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 42)) + if (0 === (renderLanes$1 & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) ); objectIs(value, prevValue) || ((value = claimNextTransitionLane()), - (currentlyRenderingFiber.lanes |= value), + (currentlyRenderingFiber$1.lanes |= value), (workInProgressRootSkippedLanes |= value), (hook.baseState = !0)); return prevValue; @@ -7043,18 +7043,18 @@ function startTransition(setPending, callback, options) { currentUpdatePriority = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); - var prevTransition = ReactCurrentBatchConfig$1.transition; - ReactCurrentBatchConfig$1.transition = {}; + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = {}; enableTransitionTracing && void 0 !== options && void 0 !== options.name && - ((ReactCurrentBatchConfig$1.transition.name = options.name), - (ReactCurrentBatchConfig$1.transition.startTime = now())); + ((ReactCurrentBatchConfig$2.transition.name = options.name), + (ReactCurrentBatchConfig$2.transition.startTime = now())); try { setPending(!1), callback(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$1.transition = prevTransition); + (ReactCurrentBatchConfig$2.transition = prevTransition); } } function updateId() { @@ -7071,7 +7071,7 @@ function refreshCache(fiber, seedKey, seedValue) { var lane = requestUpdateLane(provider), eventTime = requestEventTime(); fiber = createUpdate(eventTime, lane); - var root$84 = enqueueUpdate$1(provider, fiber, lane); + var root$84 = enqueueUpdate(provider, fiber, lane); null !== root$84 && (scheduleUpdateOnFiber(root$84, provider, lane, eventTime), entangleTransitions(root$84, provider, lane)); @@ -7097,7 +7097,7 @@ function dispatchReducerAction(fiber, queue, action) { }; if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, action); else if ( - (enqueueUpdate(fiber, queue, action, lane), + (enqueueUpdate$1(fiber, queue, action, lane), (action = getRootForUpdatedFiber(fiber)), null !== action) ) { @@ -7129,14 +7129,14 @@ function dispatchSetState(fiber, queue, action) { update.hasEagerState = !0; update.eagerState = eagerState; if (objectIs(eagerState, currentState)) { - enqueueUpdate(fiber, queue, update, 0); + enqueueUpdate$1(fiber, queue, update, 0); null === workInProgressRoot && finishQueueingConcurrentUpdates(); return; } } catch (error) { } finally { } - enqueueUpdate(fiber, queue, update, lane); + enqueueUpdate$1(fiber, queue, update, lane); action = getRootForUpdatedFiber(fiber); null !== action && ((update = requestEventTime()), @@ -7147,8 +7147,8 @@ function dispatchSetState(fiber, queue, action) { function isRenderPhaseUpdate(fiber) { var alternate = fiber.alternate; return ( - fiber === currentlyRenderingFiber || - (null !== alternate && alternate === currentlyRenderingFiber) + fiber === currentlyRenderingFiber$1 || + (null !== alternate && alternate === currentlyRenderingFiber$1) ); } function enqueueRenderPhaseUpdate(queue, update) { @@ -7240,7 +7240,7 @@ var HooksDispatcherOnMount = { hook.queue = reducer; reducer = reducer.dispatch = dispatchReducerAction.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, reducer ); return [hook.memoizedState, reducer]; @@ -7277,7 +7277,7 @@ var HooksDispatcherOnMount = { return useMutableSource(hook, source, getSnapshot, subscribe); }, useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber, + var fiber = currentlyRenderingFiber$1, hook = mountWorkInProgressHook(); if (isHydrating) { if (void 0 === getServerSnapshot) @@ -7287,7 +7287,7 @@ var HooksDispatcherOnMount = { getServerSnapshot = getSnapshot(); var root$80 = workInProgressRoot; if (null === root$80) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$80, renderLanes) || + includesBlockingLane(root$80, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; @@ -7340,7 +7340,7 @@ var HooksDispatcherOnMount = { useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, - currentlyRenderingFiber + currentlyRenderingFiber$1 )); } }; @@ -7461,7 +7461,7 @@ var classComponentUpdater = { update = createUpdate(eventTime, lane); update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); + payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); @@ -7474,7 +7474,7 @@ var classComponentUpdater = { update.tag = 1; update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); + payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); @@ -7486,7 +7486,7 @@ var classComponentUpdater = { update = createUpdate(eventTime, lane); update.tag = 2; void 0 !== callback && null !== callback && (update.callback = callback); - callback = enqueueUpdate$1(inst, update, lane); + callback = enqueueUpdate(inst, update, lane); null !== callback && (scheduleUpdateOnFiber(callback, inst, lane, eventTime), entangleTransitions(callback, inst, lane)); @@ -7671,7 +7671,7 @@ function markSuspenseBoundaryShouldCapture( ? (sourceFiber.tag = 17) : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 2))), + enqueueUpdate(sourceFiber, returnFiber, 2))), (sourceFiber.lanes |= 2)), suspenseBoundary ); @@ -7950,7 +7950,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef(current, workInProgress); + markRef$1(current, workInProgress); if ( "hidden" === nextProps.mode || "unstable-defer-without-hiding" === nextProps.mode || @@ -8043,7 +8043,7 @@ function deferHiddenOffscreenComponent( propagateParentContextChanges(current, workInProgress, renderLanes, !0); return null; } -function markRef(current, workInProgress) { +function markRef$1(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -8306,7 +8306,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef(current, workInProgress); + markRef$1(current, workInProgress); hasContext = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !hasContext) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); @@ -9033,13 +9033,13 @@ function attemptEarlyBailoutIfNoScheduledUpdate( return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } var valueCursor = createCursor(null), - currentlyRenderingFiber$1 = null, + currentlyRenderingFiber = null, lastContextDependency = null, lastFullyObservedContext = null; function resetContextDependencies() { lastFullyObservedContext = lastContextDependency = - currentlyRenderingFiber$1 = + currentlyRenderingFiber = null; } function pushProvider(providerFiber, context, nextValue) { @@ -9253,7 +9253,7 @@ function checkIfContextChanged(currentDependencies) { return !1; } function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber$1 = workInProgress; + currentlyRenderingFiber = workInProgress; lastFullyObservedContext = lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && @@ -9270,15 +9270,14 @@ function readContext(context) { ((context = { context: context, memoizedValue: value, next: null }), null === lastContextDependency) ) { - if (null === currentlyRenderingFiber$1) + if (null === currentlyRenderingFiber) throw Error(formatProdErrorMessage(308)); lastContextDependency = context; - currentlyRenderingFiber$1.dependencies = { + currentlyRenderingFiber.dependencies = { lanes: 0, firstContext: context }; - enableLazyContextPropagation && - (currentlyRenderingFiber$1.flags |= 524288); + enableLazyContextPropagation && (currentlyRenderingFiber.flags |= 524288); } else lastContextDependency = lastContextDependency.next = context; return value; } @@ -9301,7 +9300,7 @@ var AbortControllerLocal = }; }, scheduleCallback$1 = Scheduler.unstable_scheduleCallback, - NormalPriority$1 = Scheduler.unstable_NormalPriority, + NormalPriority = Scheduler.unstable_NormalPriority, CacheContext = { $$typeof: REACT_CONTEXT_TYPE, Consumer: null, @@ -9322,11 +9321,11 @@ function createCache() { function releaseCache(cache) { cache.refCount--; 0 === cache.refCount && - scheduleCallback$1(NormalPriority$1, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } -var ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, +var ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, resumedCache = createCursor(null), transitionStack = createCursor(null); function peekCacheFromPool() { @@ -9446,7 +9445,7 @@ function DO_NOT_USE_queryFirstNode(fn) { ? collectFirstScopedNodeFromChildren(currentFiber, fn) : null; } -function containsNode$1(node) { +function containsNode(node) { for (node = getClosestInstanceFromNode(node) || null; null !== node; ) { if (21 === node.tag && node.stateNode === this) return !0; node = node.return; @@ -9465,13 +9464,10 @@ function getChildContextValues(context) { function markUpdate(workInProgress) { workInProgress.flags |= 4; } -function markRef$1(workInProgress) { +function markRef(workInProgress) { workInProgress.flags |= 2097664; } -var appendAllChildren, - updateHostContainer, - updateHostComponent$1, - updateHostText$1; +var appendAllChildren, updateHostContainer, updateHostComponent, updateHostText; appendAllChildren = function (parent, workInProgress) { for (var node = workInProgress.child; null !== node; ) { if (5 === node.tag || 6 === node.tag) parent.appendChild(node.stateNode); @@ -9490,15 +9486,15 @@ appendAllChildren = function (parent, workInProgress) { } }; updateHostContainer = function () {}; -updateHostComponent$1 = function (current, workInProgress, type, newProps) { +updateHostComponent = function (current, workInProgress, type, newProps) { var oldProps = current.memoizedProps; if (oldProps !== newProps) { current = workInProgress.stateNode; var updatePayload = null; switch (type) { case "input": - oldProps = getHostProps(current, oldProps); - newProps = getHostProps(current, newProps); + oldProps = getHostProps$2(current, oldProps); + newProps = getHostProps$2(current, newProps); updatePayload = []; break; case "select": @@ -9507,14 +9503,14 @@ updateHostComponent$1 = function (current, workInProgress, type, newProps) { updatePayload = []; break; case "textarea": - oldProps = getHostProps$2(current, oldProps); - newProps = getHostProps$2(current, newProps); + oldProps = getHostProps(current, oldProps); + newProps = getHostProps(current, newProps); updatePayload = []; break; default: "function" !== typeof oldProps.onClick && "function" === typeof newProps.onClick && - (current.onclick = noop); + (current.onclick = noop$1); } assertValidProps(type, newProps); var styleName; @@ -9606,7 +9602,7 @@ updateHostComponent$1 = function (current, workInProgress, type, newProps) { markUpdate(workInProgress); } }; -updateHostText$1 = function (current, workInProgress, oldText, newText) { +updateHostText = function (current, workInProgress, oldText, newText) { oldText !== newText && markUpdate(workInProgress); }; function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { @@ -9624,14 +9620,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$134 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$134 = lastTailNode), + for (var lastTailNode$133 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$133 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$134 + null === lastTailNode$133 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$134.sibling = null); + : (lastTailNode$133.sibling = null); } } function bubbleProperties(completedWork) { @@ -9641,19 +9637,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$135 = completedWork.child; null !== child$135; ) - (newChildLanes |= child$135.lanes | child$135.childLanes), - (subtreeFlags |= child$135.subtreeFlags & 14680064), - (subtreeFlags |= child$135.flags & 14680064), - (child$135.return = completedWork), - (child$135 = child$135.sibling); + for (var child$134 = completedWork.child; null !== child$134; ) + (newChildLanes |= child$134.lanes | child$134.childLanes), + (subtreeFlags |= child$134.subtreeFlags & 14680064), + (subtreeFlags |= child$134.flags & 14680064), + (child$134.return = completedWork), + (child$134 = child$134.sibling); else - for (child$135 = completedWork.child; null !== child$135; ) - (newChildLanes |= child$135.lanes | child$135.childLanes), - (subtreeFlags |= child$135.subtreeFlags), - (subtreeFlags |= child$135.flags), - (child$135.return = completedWork), - (child$135 = child$135.sibling); + for (child$134 = completedWork.child; null !== child$134; ) + (newChildLanes |= child$134.lanes | child$134.childLanes), + (subtreeFlags |= child$134.subtreeFlags), + (subtreeFlags |= child$134.flags), + (child$134.return = completedWork), + (child$134 = child$134.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -9713,12 +9709,12 @@ function completeWork(current, workInProgress, renderLanes) { case 26: return ( (current ? current.ref : null) !== workInProgress.ref && - markRef$1(workInProgress), + markRef(workInProgress), null === current || current.memoizedState !== workInProgress.memoizedState ? markUpdate(workInProgress) : null === workInProgress.memoizedState && - updateHostComponent$1( + updateHostComponent( current, workInProgress, workInProgress.type, @@ -9732,8 +9728,8 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes = rootInstanceStackCursor.current; var type = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - updateHostComponent$1(current, workInProgress, type, newProps), - current.ref !== workInProgress.ref && markRef$1(workInProgress); + updateHostComponent(current, workInProgress, type, newProps), + current.ref !== workInProgress.ref && markRef(workInProgress); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -9750,7 +9746,7 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes )), markUpdate(workInProgress)); - null !== workInProgress.ref && markRef$1(workInProgress); + null !== workInProgress.ref && markRef(workInProgress); } bubbleProperties(workInProgress); return null; @@ -9758,8 +9754,8 @@ function completeWork(current, workInProgress, renderLanes) { popHostContext(workInProgress); renderLanes = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - updateHostComponent$1(current, workInProgress, renderLanes, newProps), - current.ref !== workInProgress.ref && markRef$1(workInProgress); + updateHostComponent(current, workInProgress, renderLanes, newProps), + current.ref !== workInProgress.ref && markRef(workInProgress); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -9799,13 +9795,13 @@ function completeWork(current, workInProgress, renderLanes) { } current && markUpdate(workInProgress); } - null !== workInProgress.ref && markRef$1(workInProgress); + null !== workInProgress.ref && markRef(workInProgress); } bubbleProperties(workInProgress); return null; case 6: if (current && null != workInProgress.stateNode) - updateHostText$1( + updateHostText( current, workInProgress, current.memoizedProps, @@ -9896,11 +9892,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$145 = null; + var cache$144 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$145 = newProps.memoizedState.cachePool.pool); - cache$145 !== type && (newProps.flags |= 2048); + (cache$144 = newProps.memoizedState.cachePool.pool); + cache$144 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -9933,8 +9929,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$145 = type.rendering; - if (null === cache$145) + cache$144 = type.rendering; + if (null === cache$144) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -9942,11 +9938,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$145 = findFirstSuspended(current); - if (null !== cache$145) { + cache$144 = findFirstSuspended(current); + if (null !== cache$144) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$145.updateQueue; + current = cache$144.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -9972,7 +9968,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$145)), null !== current)) { + if (((current = findFirstSuspended(cache$144)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -9983,7 +9979,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$145.alternate && + !cache$144.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -9996,13 +9992,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 8388608)); type.isBackwards - ? ((cache$145.sibling = workInProgress.child), - (workInProgress.child = cache$145)) + ? ((cache$144.sibling = workInProgress.child), + (workInProgress.child = cache$144)) : ((current = type.last), null !== current - ? (current.sibling = cache$145) - : (workInProgress.child = cache$145), - (type.last = cache$145)); + ? (current.sibling = cache$144) + : (workInProgress.child = cache$144), + (type.last = cache$144)); } if (null !== type.tail) return ( @@ -10023,15 +10019,15 @@ function completeWork(current, workInProgress, renderLanes) { ? ((current = { DO_NOT_USE_queryAllNodes: DO_NOT_USE_queryAllNodes, DO_NOT_USE_queryFirstNode: DO_NOT_USE_queryFirstNode, - containsNode: containsNode$1, + containsNode: containsNode, getChildContextValues: getChildContextValues }), (workInProgress.stateNode = current), (current[internalInstanceKey] = workInProgress), null !== workInProgress.ref && - (markRef$1(workInProgress), markUpdate(workInProgress))) + (markRef(workInProgress), markUpdate(workInProgress))) : (null !== workInProgress.ref && markUpdate(workInProgress), - current.ref !== workInProgress.ref && markRef$1(workInProgress)), + current.ref !== workInProgress.ref && markRef(workInProgress)), bubbleProperties(workInProgress), null ); @@ -10250,8 +10246,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$165) { - captureCommitPhaseError(current, nearestMountedAncestor, error$165); + } catch (error$159) { + captureCommitPhaseError(current, nearestMountedAncestor, error$159); } else ref.current = null; } @@ -10571,11 +10567,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$167) { + } catch (error$161) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$167 + error$161 ); } } @@ -10901,7 +10897,7 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { (parent = parent._reactRootContainer), (null !== parent && void 0 !== parent) || null !== before.onclick || - (before.onclick = noop)); + (before.onclick = noop$1)); else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), @@ -11249,8 +11245,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$180) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$180); + } catch (error$174) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$174); } } break; @@ -11442,11 +11438,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { attributeName ), (propValue[internalPropsKey] = attributeName); - } catch (error$181) { + } catch (error$175) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$181 + error$175 ); } break; @@ -11482,8 +11478,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { propName = finishedWork.stateNode; try { setTextContent(propName, ""); - } catch (error$182) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$182); + } catch (error$176) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$176); } } if ( @@ -11500,8 +11496,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, hoistableRoot, root, current, propName), (flags[internalPropsKey] = propName); - } catch (error$185) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$185); + } catch (error$179) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$179); } break; case 6: @@ -11514,8 +11510,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$186) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$186); + } catch (error$180) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$180); } } break; @@ -11528,8 +11524,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$187) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$187); + } catch (error$181) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$181); } break; case 4: @@ -11559,8 +11555,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$189) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$189); + } catch (error$183) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$183); } current = finishedWork.updateQueue; null !== current && @@ -11638,11 +11634,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = propName ? "" : root.memoizedProps; - } catch (error$170) { + } catch (error$164) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$170 + error$164 ); } } else if ( @@ -11717,21 +11713,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$171 = JSCompiler_inline_result.stateNode; + var parent$165 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$171, ""), + (setTextContent(parent$165, ""), (JSCompiler_inline_result.flags &= -33)); - var before$172 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$172, parent$171); + var before$166 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$166, parent$165); break; case 3: case 4: - var parent$173 = JSCompiler_inline_result.stateNode.containerInfo, - before$174 = getHostSibling(finishedWork); + var parent$167 = JSCompiler_inline_result.stateNode.containerInfo, + before$168 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$174, - parent$173 + before$168, + parent$167 ); break; default: @@ -12201,9 +12197,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$199 = finishedWork.stateNode; + var instance$193 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$199._visibility & 4 + ? instance$193._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12216,7 +12212,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$199._visibility |= 4), + : ((instance$193._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12224,7 +12220,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$199._visibility |= 4), + : ((instance$193._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12237,7 +12233,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$199 + instance$193 ); break; case 24: @@ -12524,10 +12520,10 @@ function schedulePostPaintCallback(callback) { } var ceil = Math.ceil, PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, - ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, executionContext = 0, workInProgressRoot = null, workInProgress = null, @@ -12535,7 +12531,7 @@ var ceil = Math.ceil, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidAttachPingListener = !1, - renderLanes$1 = 0, + renderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootSkippedLanes = 0, @@ -12639,7 +12635,7 @@ function requestUpdateLane(fiber) { 0 !== workInProgressRootRenderLanes ) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; - if (null !== ReactCurrentBatchConfig$2.transition) + if (null !== ReactCurrentBatchConfig$1.transition) return ( 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()), @@ -12655,11 +12651,11 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { 2 === workInProgressSuspendedReason && root === workInProgressRoot && (prepareFreshStack(root, 0), - markRootSuspended$1(root, workInProgressRootRenderLanes)); + markRootSuspended(root, workInProgressRootRenderLanes)); markRootUpdated(root, lane, eventTime); if (0 === (executionContext & 2) || root !== workInProgressRoot) { if (enableTransitionTracing) { - var transition = ReactCurrentBatchConfig$3.transition; + var transition = ReactCurrentBatchConfig.transition; if ( null !== transition && null != transition.name && @@ -12678,7 +12674,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { if (deferRenderPhaseUpdateToNextBatch || 0 === (executionContext & 2)) workInProgressRootInterleavedUpdatedLanes |= lane; 4 === workInProgressRootExitStatus && - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); 2 === lane && @@ -12695,14 +12691,14 @@ function ensureRootIsScheduled(root, currentTime) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === nextLanes) - null !== existingCallbackNode && cancelCallback(existingCallbackNode), + null !== existingCallbackNode && cancelCallback$1(existingCallbackNode), (root.callbackNode = null), (root.callbackPriority = 0); else if ( ((currentTime = nextLanes & -nextLanes), root.callbackPriority !== currentTime) ) { - null != existingCallbackNode && cancelCallback(existingCallbackNode); + null != existingCallbackNode && cancelCallback$1(existingCallbackNode); if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) @@ -12720,15 +12716,15 @@ function ensureRootIsScheduled(root, currentTime) { existingCallbackNode = UserBlockingPriority; break; case 32: - existingCallbackNode = NormalPriority; + existingCallbackNode = NormalPriority$1; break; case 536870912: existingCallbackNode = IdlePriority; break; default: - existingCallbackNode = NormalPriority; + existingCallbackNode = NormalPriority$1; } - existingCallbackNode = scheduleCallback$2( + existingCallbackNode = scheduleCallback( existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root) ); @@ -12774,11 +12770,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), originalCallbackNode) ); - if (6 === didTimeout) markRootSuspended$1(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); originallyAttemptedLanes = root.current.alternate; @@ -12789,23 +12785,23 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$208 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$202 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$208 && - ((lanes = errorRetryLanes$208), + 0 !== errorRetryLanes$202 && + ((lanes = errorRetryLanes$202), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$208 + errorRetryLanes$202 ))); } if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), originalCallbackNode) ); @@ -12824,7 +12820,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ); break; case 3: - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && ((lanes = globalMostRecentFallbackTime + 500 - now()), 10 < lanes) @@ -12848,15 +12844,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ); break; case 4: - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$208 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$208), - (errorRetryLanes$208 = didTimeout[errorRetryLanes$208]), - errorRetryLanes$208 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$208), + (errorRetryLanes$202 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$202), + (errorRetryLanes$202 = didTimeout[errorRetryLanes$202]), + errorRetryLanes$202 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$202), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now() - lanes; @@ -12975,7 +12971,7 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended$1(root, suspendedLanes) { +function markRootSuspended(root, suspendedLanes) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; @@ -13011,13 +13007,13 @@ function performSyncWorkOnRoot(root) { throw ( ((exitStatus = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), exitStatus) ); if (6 === exitStatus) return ( - markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), null + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now()), null ); root.finishedWork = root.current.alternate; root.finishedLanes = lanes; @@ -13029,7 +13025,7 @@ function performSyncWorkOnRoot(root) { ensureRootIsScheduled(root, now()); return null; } -function batchedUpdates$1(fn, a) { +function batchedUpdates(fn, a) { var prevExecutionContext = executionContext; executionContext |= 1; try { @@ -13041,25 +13037,25 @@ function batchedUpdates$1(fn, a) { includesLegacySyncCallbacks && flushSyncCallbacks()); } } -function flushSync(fn) { +function flushSync$1(fn) { null !== rootWithPendingPassiveEffects && 0 === rootWithPendingPassiveEffects.tag && 0 === (executionContext & 6) && flushPassiveEffects(); var prevExecutionContext = executionContext; executionContext |= 1; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { if ( - ((ReactCurrentBatchConfig$3.transition = null), + ((ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), fn) ) return fn(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (executionContext = prevExecutionContext), 0 === (executionContext & 6) && flushSyncCallbacks(); } @@ -13087,7 +13083,7 @@ function prepareFreshStack(root, lanes) { resetWorkInProgressStack(); workInProgressRoot = root; workInProgress = root = createWorkInProgress(root.current, null); - workInProgressRootRenderLanes = renderLanes$1 = lanes; + workInProgressRootRenderLanes = renderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; workInProgressRootDidAttachPingListener = !1; @@ -13104,7 +13100,7 @@ function prepareFreshStack(root, lanes) { } function handleThrow(root, thrownValue) { ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; if (thrownValue === SuspenseException) { if (null === suspendedThenable) throw Error(formatProdErrorMessage(459)); root = suspendedThenable; @@ -13148,10 +13144,10 @@ function shouldAttemptToSuspendUntilDataResolves() { function pushDispatcher(container) { container = getHoistableRoot(container); lastCurrentDocument = container.ownerDocument || container; - previousDispatcher = Dispatcher.current; - Dispatcher.current = ReactDOMClientDispatcher; - container = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + previousDispatcher = Dispatcher$1.current; + Dispatcher$1.current = ReactDOMClientDispatcher; + container = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = ContextOnlyDispatcher; return null === container ? ContextOnlyDispatcher : container; } function pushCacheDispatcher() { @@ -13164,7 +13160,7 @@ function renderDidSuspendDelayIfPossible() { null === workInProgressRoot || (0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) || - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes); } function renderRootSync(root, lanes) { var prevExecutionContext = executionContext; @@ -13192,15 +13188,15 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$211) { - handleThrow(root, thrownValue$211); + } catch (thrownValue$205) { + handleThrow(root, thrownValue$205); } while (1); resetContextDependencies(); executionContext = prevExecutionContext; - Dispatcher.current = previousDispatcher; + Dispatcher$1.current = previousDispatcher; previousDispatcher = null; - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; ReactCurrentCache.current = prevCacheDispatcher; if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); workInProgressRoot = null; @@ -13270,14 +13266,14 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$213) { - handleThrow(root, thrownValue$213); + } catch (thrownValue$207) { + handleThrow(root, thrownValue$207); } while (1); resetContextDependencies(); - Dispatcher.current = previousDispatcher; + Dispatcher$1.current = previousDispatcher; previousDispatcher = null; - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; ReactCurrentCache.current = prevCacheDispatcher; executionContext = prevExecutionContext; if (null !== workInProgress) return 0; @@ -13291,10 +13287,10 @@ function workLoopConcurrent() { performUnitOfWork(workInProgress); } function performUnitOfWork(unitOfWork) { - var next = beginWork$1(unitOfWork.alternate, unitOfWork, renderLanes$1); + var next = beginWork(unitOfWork.alternate, unitOfWork, renderLanes); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function replaySuspendedUnitOfWork(unitOfWork) { var current = unitOfWork.alternate; @@ -13331,14 +13327,14 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetHooksOnUnwind(), unwindInterruptedWork(current, unitOfWork), (unitOfWork = workInProgress = - resetWorkInProgress(unitOfWork, renderLanes$1)), - (current = beginWork$1(current, unitOfWork, renderLanes$1)); + resetWorkInProgress(unitOfWork, renderLanes)), + (current = beginWork(current, unitOfWork, renderLanes)); } unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) : (workInProgress = current); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { resetContextDependencies(); @@ -13510,7 +13506,7 @@ function completeUnitOfWork(unitOfWork) { unitOfWork = completedWork.return; if (0 === (completedWork.flags & 32768)) { if ( - ((current = completeWork(current, completedWork, renderLanes$1)), + ((current = completeWork(current, completedWork, renderLanes)), null !== current) ) { workInProgress = current; @@ -13544,9 +13540,9 @@ function completeUnitOfWork(unitOfWork) { } function commitRoot(root, recoverableErrors, transitions) { var previousUpdateLanePriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig$3.transition; + prevTransition = ReactCurrentBatchConfig.transition; try { - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), commitRootImpl( root, @@ -13555,7 +13551,7 @@ function commitRoot(root, recoverableErrors, transitions) { previousUpdateLanePriority ); } finally { - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (currentUpdatePriority = previousUpdateLanePriority); } return null; @@ -13589,25 +13585,25 @@ function commitRootImpl( ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = remainingLanes), (pendingPassiveTransitions = transitions), - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; })); transitions = 0 !== (finishedWork.flags & 15990); if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactCurrentBatchConfig$3.transition; - ReactCurrentBatchConfig$3.transition = null; + transitions = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = null; var previousPriority = currentUpdatePriority; currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; - ReactCurrentOwner$2.current = null; - var shouldFireAfterActiveInstanceBlur$216 = commitBeforeMutationEffects( + ReactCurrentOwner.current = null; + var shouldFireAfterActiveInstanceBlur$210 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$216 && + shouldFireAfterActiveInstanceBlur$210 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -13619,7 +13615,7 @@ function commitRootImpl( requestPaint(); executionContext = prevExecutionContext; currentUpdatePriority = previousPriority; - ReactCurrentBatchConfig$3.transition = transitions; + ReactCurrentBatchConfig.transition = transitions; } else root.current = finishedWork; rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), @@ -13666,7 +13662,7 @@ function commitRootImpl( var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks; null !== prevPendingTransitionCallbacks ? ((currentPendingTransitionCallbacks = null), - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, endTime, @@ -13686,23 +13682,23 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$217 = rootWithPendingPassiveEffects, + var root$211 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); renderPriority = 32 > renderPriority ? 32 : renderPriority; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { return ( - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = renderPriority), flushPassiveEffectsImpl() ); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), - releaseRootPooledCache(root$217, remainingLanes); + (ReactCurrentBatchConfig.transition = prevTransition), + releaseRootPooledCache(root$211, remainingLanes); } } return !1; @@ -13730,7 +13726,7 @@ function flushPassiveEffectsImpl() { null !== prevRootTransitionCallbacks && null !== prevEndTime && ((currentEndTime = currentPendingTransitionCallbacks = null), - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, prevEndTime, @@ -13747,7 +13743,7 @@ function flushPassiveEffectsImpl() { function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && (markRootUpdated(rootFiber, 2, sourceFiber), @@ -13786,7 +13782,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber, 2 ); - nearestMountedAncestor = enqueueUpdate$1( + nearestMountedAncestor = enqueueUpdate( nearestMountedAncestor, sourceFiber, 2 @@ -13872,8 +13868,8 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { null !== retryCache && retryCache.delete(wakeable); retryTimedOutBoundary(boundaryFiber, retryLane); } -var beginWork$1; -beginWork$1 = function (current, workInProgress, renderLanes) { +var beginWork; +beginWork = function (current, workInProgress, renderLanes) { if (null !== current) if (current.memoizedProps !== workInProgress.pendingProps) didReceiveUpdate = !0; @@ -14100,7 +14096,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { return workInProgress; case 26: return ( - markRef(current, workInProgress), + markRef$1(current, workInProgress), (renderLanes = workInProgress.memoizedState = getResource( workInProgress.type, @@ -14147,7 +14143,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { Component, renderLanes )), - markRef(current, workInProgress), + markRef$1(current, workInProgress), workInProgress.child ); case 5: @@ -14163,7 +14159,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { : null !== prevState && shouldSetTextContent(Component, prevState) && (workInProgress.flags |= 32), - markRef(current, workInProgress), + markRef$1(current, workInProgress), reconcileChildren(current, workInProgress, root, renderLanes), workInProgress.child ); @@ -14402,8 +14398,8 @@ beginWork$1 = function (current, workInProgress, renderLanes) { } throw Error(formatProdErrorMessage(156, workInProgress.tag)); }; -function scheduleCallback$2(priorityLevel, callback) { - return scheduleCallback(priorityLevel, callback); +function scheduleCallback(priorityLevel, callback) { + return scheduleCallback$2(priorityLevel, callback); } function FiberNode(tag, pendingProps, key, mode) { this.tag = tag; @@ -14794,7 +14790,7 @@ function createFiberRoot( initializeUpdateQueue(isStrictMode); return containerInfo; } -function createPortal(children, containerInfo, implementation) { +function createPortal$1(children, containerInfo, implementation) { var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { @@ -14816,7 +14812,7 @@ function updateContainer(element, container, parentComponent, callback) { container.payload = { element: element }; callback = void 0 === callback ? null : callback; null !== callback && (container.callback = callback); - element = enqueueUpdate$1(parentComponent, container, lane); + element = enqueueUpdate(parentComponent, container, lane); null !== element && (scheduleUpdateOnFiber(element, parentComponent, lane, eventTime), entangleTransitions(element, parentComponent, lane)); @@ -14836,7 +14832,7 @@ function markRetryLaneIfNotHydrated(fiber, retryLane) { function emptyFindFiberByHostInstance() { return null; } -var Dispatcher$1 = Internals.Dispatcher, +var Dispatcher = Internals.Dispatcher, defaultOnRecoverableError = "function" === typeof reportError ? reportError @@ -14858,7 +14854,7 @@ ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = if (null !== root) { this._internalRoot = null; var container = root.containerInfo; - flushSync(function () { + flushSync$1(function () { updateContainer(null, root, null, null); }); container[internalContainerInstanceKey] = null; @@ -14869,7 +14865,7 @@ function ReactDOMHydrationRoot(internalRoot) { } ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { if (target) { - var updatePriority = getCurrentUpdatePriority$1(); + var updatePriority = getCurrentUpdatePriority(); target = { blockedOn: null, target: target, priority: updatePriority }; for ( var i = 0; @@ -14916,18 +14912,18 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { _attemptSynchronousHydration = function (fiber) { switch (fiber.tag) { case 3: - var root$219 = fiber.stateNode; - if (root$219.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$219.pendingLanes); + var root$213 = fiber.stateNode; + if (root$213.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$213.pendingLanes); 0 !== lanes && - (markRootEntangled(root$219, lanes | 2), - ensureRootIsScheduled(root$219, now()), + (markRootEntangled(root$213, lanes | 2), + ensureRootIsScheduled(root$213, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); } break; case 13: - flushSync(function () { + flushSync$1(function () { var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); @@ -14937,7 +14933,7 @@ _attemptSynchronousHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 2); } }; -attemptDiscreteHydration = function (fiber) { +attemptDiscreteHydration$1 = function (fiber) { if (13 === fiber.tag) { var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { @@ -14947,7 +14943,7 @@ attemptDiscreteHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 2); } }; -attemptContinuousHydration = function (fiber) { +attemptContinuousHydration$1 = function (fiber) { if (13 === fiber.tag) { var root = enqueueConcurrentRenderForLane(fiber, 134217728); if (null !== root) { @@ -14957,7 +14953,7 @@ attemptContinuousHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 134217728); } }; -attemptHydrationAtCurrentPriority = function (fiber) { +attemptHydrationAtCurrentPriority$1 = function (fiber) { if (13 === fiber.tag) { var lane = requestUpdateLane(fiber), root = enqueueConcurrentRenderForLane(fiber, lane); @@ -14968,14 +14964,14 @@ attemptHydrationAtCurrentPriority = function (fiber) { markRetryLaneIfNotHydrated(fiber, lane); } }; -getCurrentUpdatePriority$1 = function () { +getCurrentUpdatePriority = function () { return currentUpdatePriority; }; attemptHydrationAtPriority = runWithPriority; restoreImpl = function (domElement, tag, props) { switch (tag) { case "input": - updateWrapper(domElement, props); + updateWrapper$1(domElement, props); tag = props.name; if ("radio" === props.type && null != tag) { for (props = domElement; props.parentNode; ) props = props.parentNode; @@ -14988,40 +14984,40 @@ restoreImpl = function (domElement, tag, props) { var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) throw Error(formatProdErrorMessage(90)); updateValueIfChanged(otherNode); - updateWrapper(otherNode, otherProps); + updateWrapper$1(otherNode, otherProps); } } } break; case "textarea": - updateWrapper$1(domElement, props); + updateWrapper(domElement, props); break; case "select": (tag = props.value), null != tag && updateOptions(domElement, !!props.multiple, tag, !1); } }; -batchedUpdatesImpl = batchedUpdates$1; -flushSyncImpl = flushSync; +batchedUpdatesImpl = batchedUpdates; +flushSyncImpl = flushSync$1; Internals.Events = [ - getInstanceFromNode, + getInstanceFromNode$1, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, - batchedUpdates$1 + batchedUpdates ]; -var devToolsConfig$jscomp$inline_1711 = { +var devToolsConfig$jscomp$inline_1690 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-bc38a3dfa-20230220", + version: "18.3.0-www-modern-6b6d0617e-20230220", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2081 = { - bundleType: devToolsConfig$jscomp$inline_1711.bundleType, - version: devToolsConfig$jscomp$inline_1711.version, - rendererPackageName: devToolsConfig$jscomp$inline_1711.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1711.rendererConfig, +var internals$jscomp$inline_2060 = { + bundleType: devToolsConfig$jscomp$inline_1690.bundleType, + version: devToolsConfig$jscomp$inline_1690.version, + rendererPackageName: devToolsConfig$jscomp$inline_1690.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1690.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15038,26 +15034,26 @@ var internals$jscomp$inline_2081 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1711.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1690.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-bc38a3dfa-20230220" + reconcilerVersion: "18.3.0-next-6b6d0617e-20230220" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2082 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2061 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2082.isDisabled && - hook$jscomp$inline_2082.supportsFiber + !hook$jscomp$inline_2061.isDisabled && + hook$jscomp$inline_2061.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2082.inject( - internals$jscomp$inline_2081 + (rendererID = hook$jscomp$inline_2061.inject( + internals$jscomp$inline_2060 )), - (injectedHook = hook$jscomp$inline_2082); + (injectedHook = hook$jscomp$inline_2061); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; @@ -15065,7 +15061,7 @@ exports.createPortal = function (children, container) { var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; if (!isValidContainer(container)) throw Error(formatProdErrorMessage(200)); - return createPortal(children, container, null, key); + return createPortal$1(children, container, null, key); }; exports.createRoot = function (container, options) { if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299)); @@ -15098,14 +15094,14 @@ exports.createRoot = function (container, options) { transitionCallbacks ); container[internalContainerInstanceKey] = options.current; - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); return new ReactDOMRoot(options); }; exports.flushSync = function (fn) { - return flushSync(fn); + return flushSync$1(fn); }; exports.hydrateRoot = function (container, initialChildren, options) { if (!isValidContainer(container)) throw Error(formatProdErrorMessage(405)); @@ -15147,11 +15143,7 @@ exports.hydrateRoot = function (container, initialChildren, options) { concurrentUpdatesByDefaultOverride ); identifierPrefix.callback = null; - enqueueUpdate$1( - options, - identifierPrefix, - concurrentUpdatesByDefaultOverride - ); + enqueueUpdate(options, identifierPrefix, concurrentUpdatesByDefaultOverride); initialChildren.current.lanes = concurrentUpdatesByDefaultOverride; markRootUpdated( initialChildren, @@ -15160,7 +15152,7 @@ exports.hydrateRoot = function (container, initialChildren, options) { ); ensureRootIsScheduled(initialChildren, isStrictMode); container[internalContainerInstanceKey] = initialChildren.current; - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; listenToAllSupportedEvents(container); if (mutableSources) for (container = 0; container < mutableSources.length; container++) @@ -15186,7 +15178,7 @@ exports.preload = function () { var dispatcher = Internals.Dispatcher.current; dispatcher && dispatcher.preload.apply(this, arguments); }; -exports.unstable_batchedUpdates = batchedUpdates$1; +exports.unstable_batchedUpdates = batchedUpdates; exports.unstable_createEventHandle = function (type, options) { function eventHandle(target, callback) { if ("function" !== typeof callback) @@ -15219,18 +15211,18 @@ exports.unstable_createEventHandle = function (type, options) { exports.unstable_flushControlled = function (fn) { var prevExecutionContext = executionContext; executionContext |= 1; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (executionContext = prevExecutionContext), 0 === executionContext && (resetRenderTimer(), flushSyncCallbacks()); } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-bc38a3dfa-20230220"; +exports.version = "18.3.0-next-6b6d0617e-20230220"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index a6478aefe7..0e2018d0fa 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -913,7 +913,7 @@ function getActiveElement(doc) { return doc.body; } } -function getHostProps(element, props) { +function getHostProps$2(element, props) { var checked = props.checked; return assign({}, props, { defaultChecked: void 0, @@ -922,7 +922,7 @@ function getHostProps(element, props) { checked: null != checked ? checked : element._wrapperState.initialChecked }); } -function initWrapperState(element, props) { +function initWrapperState$2(element, props) { var defaultValue = null == props.defaultValue ? "" : props.defaultValue, JSCompiler_temp_const = null != props.checked ? props.checked : props.defaultChecked; @@ -942,7 +942,7 @@ function updateChecked(element, props) { props = props.checked; null != props && setValueForProperty(element, "checked", props, !1); } -function updateWrapper(element, props) { +function updateWrapper$1(element, props) { updateChecked(element, props); var value = getToStringValue(props.value), type = props.type; @@ -974,7 +974,7 @@ function updateWrapper(element, props) { null != props.defaultChecked && (element.defaultChecked = !!props.defaultChecked); } -function postMountWrapper(element, props, isHydrating) { +function postMountWrapper$3(element, props, isHydrating) { if (props.hasOwnProperty("value") || props.hasOwnProperty("defaultValue")) { var type = props.type; if ( @@ -1036,7 +1036,7 @@ function updateOptions(node, multiple, propValue, setDefaultSelected) { null !== multiple && (multiple.selected = !0); } } -function getHostProps$2(element, props) { +function getHostProps(element, props) { if (null != props.dangerouslySetInnerHTML) throw Error(formatProdErrorMessage(91)); return assign({}, props, { @@ -1045,7 +1045,7 @@ function getHostProps$2(element, props) { children: "" + element._wrapperState.initialValue }); } -function initWrapperState$2(element, props) { +function initWrapperState(element, props) { var initialValue = props.value; if (null == initialValue) { initialValue = props.children; @@ -1063,7 +1063,7 @@ function initWrapperState$2(element, props) { } element._wrapperState = { initialValue: getToStringValue(initialValue) }; } -function updateWrapper$1(element, props) { +function updateWrapper(element, props) { var value = getToStringValue(props.value), defaultValue = getToStringValue(props.defaultValue); null != value && @@ -1074,7 +1074,7 @@ function updateWrapper$1(element, props) { (element.defaultValue = value)); null != defaultValue && (element.defaultValue = "" + defaultValue); } -function postMountWrapper$3(element) { +function postMountWrapper(element) { var textContent = element.textContent; textContent === element._wrapperState.initialValue && "" !== textContent && @@ -1280,7 +1280,7 @@ function normalizeMarkupForTextOrAttribute(markup) { .replace(NORMALIZE_NEWLINES_REGEX, "\n") .replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ""); } -function noop() {} +function noop$1() {} function createElement(type, props, rootContainerElement, parentNamespace) { rootContainerElement = 9 === rootContainerElement.nodeType @@ -1345,8 +1345,8 @@ function setInitialProperties(domElement, tag, rawProps) { props = rawProps; break; case "input": - initWrapperState(domElement, rawProps); - props = getHostProps(domElement, rawProps); + initWrapperState$2(domElement, rawProps); + props = getHostProps$2(domElement, rawProps); listenToNonDelegatedEvent("invalid", domElement); break; case "option": @@ -1358,8 +1358,8 @@ function setInitialProperties(domElement, tag, rawProps) { listenToNonDelegatedEvent("invalid", domElement); break; case "textarea": - initWrapperState$2(domElement, rawProps); - props = getHostProps$2(domElement, rawProps); + initWrapperState(domElement, rawProps); + props = getHostProps(domElement, rawProps); listenToNonDelegatedEvent("invalid", domElement); break; default: @@ -1402,11 +1402,11 @@ function setInitialProperties(domElement, tag, rawProps) { switch (tag) { case "input": track(domElement); - postMountWrapper(domElement, rawProps, !1); + postMountWrapper$3(domElement, rawProps, !1); break; case "textarea": track(domElement); - postMountWrapper$3(domElement); + postMountWrapper(domElement); break; case "option": null != rawProps.value && @@ -1426,7 +1426,7 @@ function setInitialProperties(domElement, tag, rawProps) { ); break; default: - "function" === typeof props.onClick && (domElement.onclick = noop); + "function" === typeof props.onClick && (domElement.onclick = noop$1); } } function updateProperties( @@ -1455,10 +1455,10 @@ function updateProperties( } switch (tag) { case "input": - updateWrapper(domElement, nextRawProps); + updateWrapper$1(domElement, nextRawProps); break; case "textarea": - updateWrapper$1(domElement, nextRawProps); + updateWrapper(domElement, nextRawProps); break; case "select": (updatePayload = domElement._wrapperState.wasMultiple), @@ -1509,14 +1509,14 @@ function getNodeForCharacterOffset(root, offset) { node = getLeafNode(node); } } -function containsNode(outerNode, innerNode) { +function containsNode$1(outerNode, innerNode) { return outerNode && innerNode ? outerNode === innerNode ? !0 : outerNode && 3 === outerNode.nodeType ? !1 : innerNode && 3 === innerNode.nodeType - ? containsNode(outerNode, innerNode.parentNode) + ? containsNode$1(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : outerNode.compareDocumentPosition @@ -1564,7 +1564,7 @@ function restoreSelection(priorSelectionInformation) { curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && - containsNode( + containsNode$1( priorFocusedElem.ownerDocument.documentElement, priorFocusedElem ) @@ -1653,15 +1653,15 @@ function restoreSelection(priorSelectionInformation) { priorSelectionInformation.top); } } -var scheduleCallback = Scheduler.unstable_scheduleCallback, - cancelCallback = Scheduler.unstable_cancelCallback, +var scheduleCallback$2 = Scheduler.unstable_scheduleCallback, + cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, - now = Scheduler.unstable_now, + now$1 = Scheduler.unstable_now, getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, - NormalPriority = Scheduler.unstable_NormalPriority, + NormalPriority$1 = Scheduler.unstable_NormalPriority, LowPriority = Scheduler.unstable_LowPriority, IdlePriority = Scheduler.unstable_IdlePriority, rendererID = null, @@ -1680,13 +1680,13 @@ function onCommitRoot(root, eventPriority) { schedulerPriority = UserBlockingPriority; break; case 32: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; break; case 536870912: schedulerPriority = IdlePriority; break; default: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; } injectedHook.onCommitFiberRoot( rendererID, @@ -2106,13 +2106,13 @@ function push(cursor, value) { valueStack[index] = cursor.current; cursor.current = value; } -var contextStackCursor = createCursor(null), +var contextStackCursor$1 = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null); function pushHostContainer(fiber, nextRootInstance) { push(rootInstanceStackCursor, nextRootInstance); push(contextFiberStackCursor, fiber); - push(contextStackCursor, null); + push(contextStackCursor$1, null); fiber = nextRootInstance.nodeType; switch (fiber) { case 9: @@ -2127,29 +2127,29 @@ function pushHostContainer(fiber, nextRootInstance) { (fiber = fiber.tagName), (nextRootInstance = getChildNamespace(nextRootInstance, fiber)); } - pop(contextStackCursor); - push(contextStackCursor, nextRootInstance); + pop(contextStackCursor$1); + push(contextStackCursor$1, nextRootInstance); } function popHostContainer() { - pop(contextStackCursor); + pop(contextStackCursor$1); pop(contextFiberStackCursor); pop(rootInstanceStackCursor); } function pushHostContext(fiber) { - var context = contextStackCursor.current; + var context = contextStackCursor$1.current; var JSCompiler_inline_result = getChildNamespace(context, fiber.type); context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), - push(contextStackCursor, JSCompiler_inline_result)); + push(contextStackCursor$1, JSCompiler_inline_result)); } function popHostContext(fiber) { contextFiberStackCursor.current === fiber && - (pop(contextStackCursor), pop(contextFiberStackCursor)); + (pop(contextStackCursor$1), pop(contextFiberStackCursor)); } -var Dispatcher = Internals.Dispatcher, +var Dispatcher$1 = Internals.Dispatcher, lastCurrentDocument = null, previousDispatcher = null, - ReactDOMClientDispatcher = { preload: preload, preinit: preinit }, + ReactDOMClientDispatcher = { preload: preload$1, preinit: preinit$1 }, preloadPropsMap = new Map(); function getHoistableRoot(container) { return "function" === typeof container.getRootNode @@ -2169,7 +2169,7 @@ function getDocumentForPreloads() { return null; } } -function preload(href, options) { +function preload$1(href, options) { var ownerDocument = getDocumentForPreloads(); if ( "string" === typeof href && @@ -2214,7 +2214,7 @@ function preload(href, options) { ownerDocument.head.appendChild(options))); } } -function preinit(href, options) { +function preinit$1(href, options) { if ( "string" === typeof href && href && @@ -2821,7 +2821,7 @@ function getClosestInstanceFromNode(targetNode) { } return null; } -function getInstanceFromNode$1(node) { +function getInstanceFromNode(node) { if ( (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) ) { @@ -2873,7 +2873,7 @@ var restoreImpl = null, restoreTarget = null, restoreQueue = null; function restoreStateOfTarget(target) { - if ((target = getInstanceFromNode$1(target))) { + if ((target = getInstanceFromNode(target))) { if ("function" !== typeof restoreImpl) throw Error(formatProdErrorMessage(280)); var stateNode = target.stateNode; @@ -2905,7 +2905,7 @@ function batchedUpdatesImpl(fn, bookkeeping) { } function flushSyncImpl() {} var isInsideEventHandler = !1; -function batchedUpdates(fn, a, b) { +function batchedUpdates$1(fn, a, b) { if (isInsideEventHandler) return fn(a, b); isInsideEventHandler = !0; try { @@ -3463,8 +3463,8 @@ function createAndAccumulateChangeEvent( )), dispatchQueue.push({ event: nativeEvent, listeners: inst })); } -var activeElement = null, - activeElementInst = null; +var activeElement$1 = null, + activeElementInst$1 = null; function runEventInBatch(dispatchQueue) { processDispatchQueue(dispatchQueue, 0); } @@ -3477,47 +3477,47 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$274; + var JSCompiler_inline_result$jscomp$269; if (canUseDOM) { - var isSupported$jscomp$inline_501 = "oninput" in document; - if (!isSupported$jscomp$inline_501) { - var element$jscomp$inline_502 = document.createElement("div"); - element$jscomp$inline_502.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_501 = - "function" === typeof element$jscomp$inline_502.oninput; + var isSupported$jscomp$inline_495 = "oninput" in document; + if (!isSupported$jscomp$inline_495) { + var element$jscomp$inline_496 = document.createElement("div"); + element$jscomp$inline_496.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_495 = + "function" === typeof element$jscomp$inline_496.oninput; } - JSCompiler_inline_result$jscomp$274 = isSupported$jscomp$inline_501; - } else JSCompiler_inline_result$jscomp$274 = !1; + JSCompiler_inline_result$jscomp$269 = isSupported$jscomp$inline_495; + } else JSCompiler_inline_result$jscomp$269 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$274 && + JSCompiler_inline_result$jscomp$269 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { - activeElement && - (activeElement.detachEvent("onpropertychange", handlePropertyChange), - (activeElementInst = activeElement = null)); + activeElement$1 && + (activeElement$1.detachEvent("onpropertychange", handlePropertyChange), + (activeElementInst$1 = activeElement$1 = null)); } function handlePropertyChange(nativeEvent) { if ( "value" === nativeEvent.propertyName && - getInstIfValueChanged(activeElementInst) + getInstIfValueChanged(activeElementInst$1) ) { var dispatchQueue = []; createAndAccumulateChangeEvent( dispatchQueue, - activeElementInst, + activeElementInst$1, nativeEvent, getEventTarget(nativeEvent) ); - batchedUpdates(runEventInBatch, dispatchQueue); + batchedUpdates$1(runEventInBatch, dispatchQueue); } } function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { "focusin" === domEventName ? (stopWatchingForValueChange(), - (activeElement = target), - (activeElementInst = targetInst), - activeElement.attachEvent("onpropertychange", handlePropertyChange)) + (activeElement$1 = target), + (activeElementInst$1 = targetInst), + activeElement$1.attachEvent("onpropertychange", handlePropertyChange)) : "focusout" === domEventName && stopWatchingForValueChange(); } function getTargetInstForInputEventPolyfill(domEventName) { @@ -3526,7 +3526,7 @@ function getTargetInstForInputEventPolyfill(domEventName) { "keyup" === domEventName || "keydown" === domEventName ) - return getInstIfValueChanged(activeElementInst); + return getInstIfValueChanged(activeElementInst$1); } function getTargetInstForClickEvent(domEventName, targetInst) { if ("click" === domEventName) return getInstIfValueChanged(targetInst); @@ -3563,8 +3563,8 @@ function shallowEqual(objA, objB) { } var skipSelectionChangeEvent = canUseDOM && "documentMode" in document && 11 >= document.documentMode, - activeElement$1 = null, - activeElementInst$1 = null, + activeElement = null, + activeElementInst = null, lastSelection = null, mouseDown = !1; function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { @@ -3575,9 +3575,9 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { ? nativeEventTarget : nativeEventTarget.ownerDocument; mouseDown || - null == activeElement$1 || - activeElement$1 !== getActiveElement(doc) || - ((doc = activeElement$1), + null == activeElement || + activeElement !== getActiveElement(doc) || + ((doc = activeElement), "selectionStart" in doc && hasSelectionCapabilities(doc) ? (doc = { start: doc.selectionStart, end: doc.selectionEnd }) : ((doc = ( @@ -3592,7 +3592,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { })), (lastSelection && shallowEqual(lastSelection, doc)) || ((lastSelection = doc), - (doc = accumulateTwoPhaseListeners(activeElementInst$1, "onSelect")), + (doc = accumulateTwoPhaseListeners(activeElementInst, "onSelect")), 0 < doc.length && ((nativeEvent = new SyntheticEvent( "onSelect", @@ -3602,7 +3602,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { nativeEventTarget )), dispatchQueue.push({ event: nativeEvent, listeners: doc }), - (nativeEvent.target = activeElement$1)))); + (nativeEvent.target = activeElement)))); } function makePrefixMap(styleProp, eventName) { var prefixes = {}; @@ -3653,19 +3653,19 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_514 = 0; - i$jscomp$inline_514 < simpleEventPluginEvents.length; - i$jscomp$inline_514++ + var i$jscomp$inline_508 = 0; + i$jscomp$inline_508 < simpleEventPluginEvents.length; + i$jscomp$inline_508++ ) { - var eventName$jscomp$inline_515 = - simpleEventPluginEvents[i$jscomp$inline_514], - domEventName$jscomp$inline_516 = eventName$jscomp$inline_515.toLowerCase(), - capitalizedEvent$jscomp$inline_517 = - eventName$jscomp$inline_515[0].toUpperCase() + - eventName$jscomp$inline_515.slice(1); + var eventName$jscomp$inline_509 = + simpleEventPluginEvents[i$jscomp$inline_508], + domEventName$jscomp$inline_510 = eventName$jscomp$inline_509.toLowerCase(), + capitalizedEvent$jscomp$inline_511 = + eventName$jscomp$inline_509[0].toUpperCase() + + eventName$jscomp$inline_509.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_516, - "on" + capitalizedEvent$jscomp$inline_517 + domEventName$jscomp$inline_510, + "on" + capitalizedEvent$jscomp$inline_511 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -3924,7 +3924,7 @@ function dispatchEventForPluginEventSystem( targetInst$jscomp$0 = targetInst$jscomp$0.return; } } - batchedUpdates(function () { + batchedUpdates$1(function () { var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = []; @@ -4238,12 +4238,12 @@ function dispatchEventForPluginEventSystem( isTextInputElement(handleEventFunc) || "true" === handleEventFunc.contentEditable ) - (activeElement$1 = handleEventFunc), - (activeElementInst$1 = targetInst), + (activeElement = handleEventFunc), + (activeElementInst = targetInst), (lastSelection = null); break; case "focusout": - lastSelection = activeElementInst$1 = activeElement$1 = null; + lastSelection = activeElementInst = activeElement = null; break; case "mousedown": mouseDown = !0; @@ -4493,10 +4493,10 @@ function accumulateEventHandleNonManagedNodeListeners( return listeners; } var _attemptSynchronousHydration, - attemptDiscreteHydration, - attemptContinuousHydration, - attemptHydrationAtCurrentPriority, - getCurrentUpdatePriority$1, + attemptDiscreteHydration$1, + attemptContinuousHydration$1, + attemptHydrationAtCurrentPriority$1, + getCurrentUpdatePriority, attemptHydrationAtPriority, hasScheduledReplayAttempt = !1, queuedDiscreteEvents = [], @@ -4545,7 +4545,7 @@ function queueDiscreteEvent( 1 === queuedDiscreteEvents.length) ) for (; null !== blockedOn.blockedOn; ) { - domEventName = getInstanceFromNode$1(blockedOn.blockedOn); + domEventName = getInstanceFromNode(blockedOn.blockedOn); if (null === domEventName) break; _attemptSynchronousHydration(domEventName); if (null === blockedOn.blockedOn) replayUnblockedEvents(); @@ -4596,8 +4596,8 @@ function accumulateOrCreateContinuousQueuedReplayableEvent( nativeEvent )), null !== blockedOn && - ((blockedOn = getInstanceFromNode$1(blockedOn)), - null !== blockedOn && attemptContinuousHydration(blockedOn)), + ((blockedOn = getInstanceFromNode(blockedOn)), + null !== blockedOn && attemptContinuousHydration$1(blockedOn)), existingQueuedEvent ); existingQueuedEvent.eventSystemFlags |= eventSystemFlags; @@ -4696,7 +4696,7 @@ function attemptExplicitHydrationTarget(queuedTarget) { ) { queuedTarget.blockedOn = targetInst; attemptHydrationAtPriority(queuedTarget.priority, function () { - attemptHydrationAtCurrentPriority(nearestMounted); + attemptHydrationAtCurrentPriority$1(nearestMounted); }); return; } @@ -4744,9 +4744,9 @@ function attemptReplayContinuousQueuedEvent(queuedEvent) { (currentReplayingEvent = null); else return ( - (targetContainers = getInstanceFromNode$1(nextBlockedOn)), + (targetContainers = getInstanceFromNode(nextBlockedOn)), null !== targetContainers && - attemptContinuousHydration(targetContainers), + attemptContinuousHydration$1(targetContainers), (queuedEvent.blockedOn = nextBlockedOn), !1 ); @@ -4763,9 +4763,9 @@ function replayUnblockedEvents() { for (; 0 < queuedDiscreteEvents.length; ) { var nextDiscreteEvent = queuedDiscreteEvents[0]; if (null !== nextDiscreteEvent.blockedOn) { - nextDiscreteEvent = getInstanceFromNode$1(nextDiscreteEvent.blockedOn); + nextDiscreteEvent = getInstanceFromNode(nextDiscreteEvent.blockedOn); null !== nextDiscreteEvent && - attemptDiscreteHydration(nextDiscreteEvent); + attemptDiscreteHydration$1(nextDiscreteEvent); break; } for ( @@ -4850,7 +4850,7 @@ function retryIfBlockedOn(unblocked) { attemptExplicitHydrationTarget(i), null === i.blockedOn && queuedExplicitHydrationTargets.shift(); } -var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, +var ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig, _enabled = !0; function createEventListenerWrapperWithPriority( targetContainer, @@ -4881,14 +4881,14 @@ function dispatchDiscreteEvent( nativeEvent ) { var previousPriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig.transition = prevTransition); + (ReactCurrentBatchConfig$3.transition = prevTransition); } } function dispatchContinuousEvent( @@ -4898,14 +4898,14 @@ function dispatchContinuousEvent( nativeEvent ) { var previousPriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig.transition = prevTransition); + (ReactCurrentBatchConfig$3.transition = prevTransition); } } function dispatchEvent( @@ -4947,7 +4947,7 @@ function dispatchEvent( -1 < discreteReplayableEvents.indexOf(domEventName)) ) { for (; null !== blockedOn; ) { - var fiber = getInstanceFromNode$1(blockedOn); + var fiber = getInstanceFromNode(blockedOn); null !== fiber && _attemptSynchronousHydration(fiber); fiber = findInstanceBlockingEvent( domEventName, @@ -5150,7 +5150,7 @@ function getEventPriority(domEventName) { return 2; case UserBlockingPriority: return 8; - case NormalPriority: + case NormalPriority$1: case LowPriority: return 32; case IdlePriority: @@ -5163,7 +5163,7 @@ function getEventPriority(domEventName) { } } var emptyContextObject = {}, - contextStackCursor$1 = createCursor(emptyContextObject), + contextStackCursor = createCursor(emptyContextObject), didPerformWorkStackCursor = createCursor(!1), previousContext = emptyContextObject; function getMaskedContext(workInProgress, unmaskedContext) { @@ -5191,12 +5191,12 @@ function isContextProvider(type) { } function popContext() { pop(didPerformWorkStackCursor); - pop(contextStackCursor$1); + pop(contextStackCursor); } function pushTopLevelContextObject(fiber, context, didChange) { - if (contextStackCursor$1.current !== emptyContextObject) + if (contextStackCursor.current !== emptyContextObject) throw Error(formatProdErrorMessage(168)); - push(contextStackCursor$1, context); + push(contextStackCursor, context); push(didPerformWorkStackCursor, didChange); } function processChildContext(fiber, type, parentContext) { @@ -5220,8 +5220,8 @@ function pushContextProvider(workInProgress) { ((workInProgress = workInProgress.stateNode) && workInProgress.__reactInternalMemoizedMergedChildContext) || emptyContextObject; - previousContext = contextStackCursor$1.current; - push(contextStackCursor$1, workInProgress); + previousContext = contextStackCursor.current; + push(contextStackCursor, workInProgress); push(didPerformWorkStackCursor, didPerformWorkStackCursor.current); return !0; } @@ -5236,8 +5236,8 @@ function invalidateContextProvider(workInProgress, type, didChange) { )), (instance.__reactInternalMemoizedMergedChildContext = workInProgress), pop(didPerformWorkStackCursor), - pop(contextStackCursor$1), - push(contextStackCursor$1, workInProgress)) + pop(contextStackCursor), + push(contextStackCursor, workInProgress)) : pop(didPerformWorkStackCursor); push(didPerformWorkStackCursor, didChange); } @@ -5268,7 +5268,7 @@ function flushSyncCallbacks() { } catch (error) { throw ( (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback(ImmediatePriority, flushSyncCallbacks), + scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), error) ); } finally { @@ -5493,7 +5493,7 @@ function prepareToHydrateHostInstance(fiber) { listenToNonDelegatedEvent("toggle", instance); break; case "input": - initWrapperState(instance, props); + initWrapperState$2(instance, props); listenToNonDelegatedEvent("invalid", instance); break; case "select": @@ -5501,7 +5501,7 @@ function prepareToHydrateHostInstance(fiber) { listenToNonDelegatedEvent("invalid", instance); break; case "textarea": - initWrapperState$2(instance, props), + initWrapperState(instance, props), listenToNonDelegatedEvent("invalid", instance); } assertValidProps(type, props); @@ -5532,17 +5532,17 @@ function prepareToHydrateHostInstance(fiber) { switch (type) { case "input": track(instance); - postMountWrapper(instance, props, !0); + postMountWrapper$3(instance, props, !0); break; case "textarea": track(instance); - postMountWrapper$3(instance); + postMountWrapper(instance); break; case "select": case "option": break; default: - "function" === typeof props.onClick && (instance.onclick = noop); + "function" === typeof props.onClick && (instance.onclick = noop$1); } instance = updatePayload; fiber.updateQueue = instance; @@ -5647,7 +5647,7 @@ function finishQueueingConcurrentUpdates() { 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); } } -function enqueueUpdate(fiber, queue, update, lane) { +function enqueueUpdate$1(fiber, queue, update, lane) { concurrentQueues[concurrentQueuesIndex++] = fiber; concurrentQueues[concurrentQueuesIndex++] = queue; concurrentQueues[concurrentQueuesIndex++] = update; @@ -5658,7 +5658,7 @@ function enqueueUpdate(fiber, queue, update, lane) { null !== fiber && (fiber.lanes |= lane); } function enqueueConcurrentRenderForLane(fiber, lane) { - enqueueUpdate(fiber, null, null, lane); + enqueueUpdate$1(fiber, null, null, lane); return getRootForUpdatedFiber(fiber); } function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { @@ -5728,7 +5728,7 @@ function createUpdate(eventTime, lane) { next: null }; } -function enqueueUpdate$1(fiber, update, lane) { +function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (null === updateQueue) return null; updateQueue = updateQueue.shared; @@ -5737,7 +5737,7 @@ function enqueueUpdate$1(fiber, update, lane) { 0 === (executionContext & 2) ) return ( - enqueueUpdate(fiber, updateQueue, update, lane), + enqueueUpdate$1(fiber, updateQueue, update, lane), getRootForUpdatedFiber(fiber) ); var pending = updateQueue.pending; @@ -6621,17 +6621,17 @@ var reconcileChildFibers = createChildReconciler(!0), currentTreeHiddenStackCursor = createCursor(null), prevRenderLanesStackCursor = createCursor(0); function pushHiddenContext(fiber, context) { - fiber = renderLanes$1; + fiber = renderLanes; push(prevRenderLanesStackCursor, fiber); push(currentTreeHiddenStackCursor, context); - renderLanes$1 = fiber | context.baseLanes; + renderLanes = fiber | context.baseLanes; } function reuseHiddenContextOnStack() { - push(prevRenderLanesStackCursor, renderLanes$1); + push(prevRenderLanesStackCursor, renderLanes); push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current); } function popHiddenContext() { - renderLanes$1 = prevRenderLanesStackCursor.current; + renderLanes = prevRenderLanesStackCursor.current; pop(currentTreeHiddenStackCursor); pop(prevRenderLanesStackCursor); } @@ -6706,12 +6706,12 @@ function isThenableResolved(thenable) { thenable = thenable.status; return "fulfilled" === thenable || "rejected" === thenable; } -function noop$1() {} +function noop() {} function trackUsedThenable(thenableState, thenable, index) { index = thenableState[index]; void 0 === index ? thenableState.push(thenable) - : index !== thenable && (thenable.then(noop$1, noop$1), (thenable = index)); + : index !== thenable && (thenable.then(noop, noop), (thenable = index)); switch (thenable.status) { case "fulfilled": return thenable.value; @@ -6719,7 +6719,7 @@ function trackUsedThenable(thenableState, thenable, index) { throw thenable.reason; default: "string" === typeof thenable.status - ? thenable.then(noop$1, noop$1) + ? thenable.then(noop, noop) : ((thenableState = thenable), (thenableState.status = "pending"), thenableState.then( @@ -6750,9 +6750,9 @@ function trackUsedThenable(thenableState, thenable, index) { } var suspendedThenable = null, ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, - renderLanes = 0, - currentlyRenderingFiber = null, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + renderLanes$1 = 0, + currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, @@ -6779,8 +6779,8 @@ function renderWithHooks( secondArg, nextRenderLanes ) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber = workInProgress; + renderLanes$1 = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; workInProgress.memoizedState = null; workInProgress.updateQueue = null; workInProgress.lanes = 0; @@ -6804,8 +6804,8 @@ function renderWithHooks( function finishRenderingHooks(current) { ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; + renderLanes$1 = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdate = !1; thenableIndexCounter = 0; thenableState = null; @@ -6844,15 +6844,15 @@ function bailoutHooks(current, workInProgress, lanes) { } function resetHooksOnUnwind() { if (didScheduleRenderPhaseUpdate) { - for (var hook = currentlyRenderingFiber.memoizedState; null !== hook; ) { + for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook; ) { var queue = hook.queue; null !== queue && (queue.pending = null); hook = hook.next; } didScheduleRenderPhaseUpdate = !1; } - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; + renderLanes$1 = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdateDuringThisPass = !1; thenableIndexCounter = localIdCounter = 0; thenableState = null; @@ -6866,26 +6866,26 @@ function mountWorkInProgressHook() { next: null }; null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = hook) + ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook) : (workInProgressHook = workInProgressHook.next = hook); return workInProgressHook; } function updateWorkInProgressHook() { if (null === currentHook) { - var nextCurrentHook = currentlyRenderingFiber.alternate; + var nextCurrentHook = currentlyRenderingFiber$1.alternate; nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; } else nextCurrentHook = currentHook.next; var nextWorkInProgressHook = null === workInProgressHook - ? currentlyRenderingFiber.memoizedState + ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; if (null !== nextWorkInProgressHook) (workInProgressHook = nextWorkInProgressHook), (currentHook = nextCurrentHook); else { if (null === nextCurrentHook) - if (null === currentlyRenderingFiber.alternate) + if (null === currentlyRenderingFiber$1.alternate) nextCurrentHook = { memoizedState: null, baseState: null, @@ -6903,7 +6903,7 @@ function updateWorkInProgressHook() { next: null }; null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = + ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook) : (workInProgressHook = workInProgressHook.next = nextCurrentHook); } @@ -6931,10 +6931,10 @@ function use(usable) { } function useMemoCache(size) { var memoCache = null, - updateQueue = currentlyRenderingFiber.updateQueue; + updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; null !== current && ((current = current.updateQueue), null !== current && @@ -6950,7 +6950,7 @@ function useMemoCache(size) { null == memoCache && (memoCache = { data: [], index: 0 }); null === updateQueue && ((updateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = updateQueue)); + (currentlyRenderingFiber$1.updateQueue = updateQueue)); updateQueue.memoCache = memoCache; updateQueue = memoCache.data[memoCache.index]; if (void 0 === updateQueue) @@ -6994,7 +6994,7 @@ function updateReducer(reducer) { if ( updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane - : (renderLanes & updateLane) === updateLane + : (renderLanes$1 & updateLane) === updateLane ) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = @@ -7022,7 +7022,7 @@ function updateReducer(reducer) { ? ((newBaseQueueFirst = newBaseQueueLast = clone), (baseFirst = current)) : (newBaseQueueLast = newBaseQueueLast.next = clone); - currentlyRenderingFiber.lanes |= updateLane; + currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } update = update.next; @@ -7066,7 +7066,7 @@ function readFromUnsubscribedMutableSource(root, source, getSnapshot) { if (null !== JSCompiler_inline_result) root = JSCompiler_inline_result === getVersion; else if ( - ((root = root.mutableReadLanes), (root = (renderLanes & root) === root)) + ((root = root.mutableReadLanes), (root = (renderLanes$1 & root) === root)) ) (source._workInProgressVersionPrimary = getVersion), workInProgressSources.push(source); @@ -7091,7 +7091,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { prevGetSnapshot = refs.getSnapshot, prevSource = memoizedState.source; memoizedState = memoizedState.subscribe; - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; hook.memoizedState = { refs: refs, source: source, subscribe: subscribe }; dispatcher.useEffect( function () { @@ -7137,7 +7137,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { lastRenderedState: snapshot }), (hook.dispatch = setSnapshot = - dispatchSetState.bind(null, currentlyRenderingFiber, hook)), + dispatchSetState.bind(null, currentlyRenderingFiber$1, hook)), (_dispatcher$useState.queue = hook), (_dispatcher$useState.baseQueue = null), (snapshot = readFromUnsubscribedMutableSource(root, source, getSnapshot)), @@ -7150,7 +7150,7 @@ function updateMutableSource(source, getSnapshot, subscribe) { return useMutableSource(hook, source, getSnapshot, subscribe); } function updateSyncExternalStore(subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber, + var fiber = currentlyRenderingFiber$1, hook = updateWorkInProgressHook(), nextSnapshot = getSnapshot(), snapshotChanged = !objectIs( @@ -7177,7 +7177,7 @@ function updateSyncExternalStore(subscribe, getSnapshot) { ); subscribe = workInProgressRoot; if (null === subscribe) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(subscribe, renderLanes) || + includesBlockingLane(subscribe, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } return nextSnapshot; @@ -7185,10 +7185,10 @@ function updateSyncExternalStore(subscribe, getSnapshot) { function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { fiber.flags |= 16384; fiber = { getSnapshot: getSnapshot, value: renderedSnapshot }; - getSnapshot = currentlyRenderingFiber.updateQueue; + getSnapshot = currentlyRenderingFiber$1.updateQueue; null === getSnapshot ? ((getSnapshot = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = getSnapshot), + (currentlyRenderingFiber$1.updateQueue = getSnapshot), (getSnapshot.stores = [fiber])) : ((renderedSnapshot = getSnapshot.stores), null === renderedSnapshot @@ -7233,17 +7233,17 @@ function mountState(initialState) { hook.queue = initialState; initialState = initialState.dispatch = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, initialState ); return [hook.memoizedState, initialState]; } function pushEffect(tag, create, destroy, deps) { tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null }; - create = currentlyRenderingFiber.updateQueue; + create = currentlyRenderingFiber$1.updateQueue; null === create ? ((create = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = create), + (currentlyRenderingFiber$1.updateQueue = create), (create.lastEffect = tag.next = tag)) : ((destroy = create.lastEffect), null === destroy @@ -7259,7 +7259,7 @@ function updateRef() { } function mountEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( 1 | hookFlags, create, @@ -7279,7 +7279,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { return; } } - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); } function mountEffect(create, deps) { @@ -7289,11 +7289,11 @@ function updateEffect(create, deps) { updateEffectImpl(2048, 8, create, deps); } function useEffectEventImpl(payload) { - currentlyRenderingFiber.flags |= 4; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + currentlyRenderingFiber$1.flags |= 4; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (null === componentUpdateQueue) (componentUpdateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = componentUpdateQueue), + (currentlyRenderingFiber$1.updateQueue = componentUpdateQueue), (componentUpdateQueue.events = [payload]); else { var events = componentUpdateQueue.events; @@ -7368,14 +7368,14 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 42)) + if (0 === (renderLanes$1 & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) ); objectIs(value, prevValue) || ((value = claimNextTransitionLane()), - (currentlyRenderingFiber.lanes |= value), + (currentlyRenderingFiber$1.lanes |= value), (workInProgressRootSkippedLanes |= value), (hook.baseState = !0)); return prevValue; @@ -7385,18 +7385,18 @@ function startTransition(setPending, callback, options) { currentUpdatePriority = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); - var prevTransition = ReactCurrentBatchConfig$1.transition; - ReactCurrentBatchConfig$1.transition = {}; + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = {}; enableTransitionTracing && void 0 !== options && void 0 !== options.name && - ((ReactCurrentBatchConfig$1.transition.name = options.name), - (ReactCurrentBatchConfig$1.transition.startTime = now())); + ((ReactCurrentBatchConfig$2.transition.name = options.name), + (ReactCurrentBatchConfig$2.transition.startTime = now$1())); try { setPending(!1), callback(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$1.transition = prevTransition); + (ReactCurrentBatchConfig$2.transition = prevTransition); } } function updateId() { @@ -7413,7 +7413,7 @@ function refreshCache(fiber, seedKey, seedValue) { var lane = requestUpdateLane(provider), eventTime = requestEventTime(); fiber = createUpdate(eventTime, lane); - var root$86 = enqueueUpdate$1(provider, fiber, lane); + var root$86 = enqueueUpdate(provider, fiber, lane); null !== root$86 && (scheduleUpdateOnFiber(root$86, provider, lane, eventTime), entangleTransitions(root$86, provider, lane)); @@ -7439,7 +7439,7 @@ function dispatchReducerAction(fiber, queue, action) { }; if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, action); else if ( - (enqueueUpdate(fiber, queue, action, lane), + (enqueueUpdate$1(fiber, queue, action, lane), (action = getRootForUpdatedFiber(fiber)), null !== action) ) { @@ -7472,14 +7472,14 @@ function dispatchSetState(fiber, queue, action) { update.hasEagerState = !0; update.eagerState = eagerState; if (objectIs(eagerState, currentState)) { - enqueueUpdate(fiber, queue, update, 0); + enqueueUpdate$1(fiber, queue, update, 0); null === workInProgressRoot && finishQueueingConcurrentUpdates(); return; } } catch (error) { } finally { } - enqueueUpdate(fiber, queue, update, lane); + enqueueUpdate$1(fiber, queue, update, lane); action = getRootForUpdatedFiber(fiber); null !== action && ((update = requestEventTime()), @@ -7491,8 +7491,8 @@ function dispatchSetState(fiber, queue, action) { function isRenderPhaseUpdate(fiber) { var alternate = fiber.alternate; return ( - fiber === currentlyRenderingFiber || - (null !== alternate && alternate === currentlyRenderingFiber) + fiber === currentlyRenderingFiber$1 || + (null !== alternate && alternate === currentlyRenderingFiber$1) ); } function enqueueRenderPhaseUpdate(queue, update) { @@ -7584,7 +7584,7 @@ var HooksDispatcherOnMount = { hook.queue = reducer; reducer = reducer.dispatch = dispatchReducerAction.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, reducer ); return [hook.memoizedState, reducer]; @@ -7621,7 +7621,7 @@ var HooksDispatcherOnMount = { return useMutableSource(hook, source, getSnapshot, subscribe); }, useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber, + var fiber = currentlyRenderingFiber$1, hook = mountWorkInProgressHook(); if (isHydrating) { if (void 0 === getServerSnapshot) @@ -7631,7 +7631,7 @@ var HooksDispatcherOnMount = { getServerSnapshot = getSnapshot(); var root$82 = workInProgressRoot; if (null === root$82) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$82, renderLanes) || + includesBlockingLane(root$82, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; @@ -7684,7 +7684,7 @@ var HooksDispatcherOnMount = { useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, - currentlyRenderingFiber + currentlyRenderingFiber$1 )); } }; @@ -7765,7 +7765,7 @@ HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.use = use; HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; -var now$1 = Scheduler.unstable_now, +var now = Scheduler.unstable_now, commitTime = 0, layoutEffectStartTime = -1, profilerStartTime = -1, @@ -7773,12 +7773,12 @@ var now$1 = Scheduler.unstable_now, currentUpdateIsNested = !1, nestedUpdateScheduled = !1; function startProfilerTimer(fiber) { - profilerStartTime = now$1(); - 0 > fiber.actualStartTime && (fiber.actualStartTime = now$1()); + profilerStartTime = now(); + 0 > fiber.actualStartTime && (fiber.actualStartTime = now()); } function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { if (0 <= profilerStartTime) { - var elapsedTime = now$1() - profilerStartTime; + var elapsedTime = now() - profilerStartTime; fiber.actualDuration += elapsedTime; overrideBaseTime && (fiber.selfBaseDuration = elapsedTime); profilerStartTime = -1; @@ -7786,7 +7786,7 @@ function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { } function recordLayoutEffectDuration(fiber) { if (0 <= layoutEffectStartTime) { - var elapsedTime = now$1() - layoutEffectStartTime; + var elapsedTime = now() - layoutEffectStartTime; layoutEffectStartTime = -1; for (fiber = fiber.return; null !== fiber; ) { switch (fiber.tag) { @@ -7803,7 +7803,7 @@ function recordLayoutEffectDuration(fiber) { } function recordPassiveEffectDuration(fiber) { if (0 <= passiveEffectStartTime) { - var elapsedTime = now$1() - passiveEffectStartTime; + var elapsedTime = now() - passiveEffectStartTime; passiveEffectStartTime = -1; for (fiber = fiber.return; null !== fiber; ) { switch (fiber.tag) { @@ -7821,7 +7821,7 @@ function recordPassiveEffectDuration(fiber) { } } function startLayoutEffectTimer() { - layoutEffectStartTime = now$1(); + layoutEffectStartTime = now(); } function transferActualDuration(fiber) { for (var child = fiber.child; child; ) @@ -7867,7 +7867,7 @@ var classComponentUpdater = { update = createUpdate(eventTime, lane); update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); + payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); @@ -7881,7 +7881,7 @@ var classComponentUpdater = { update.tag = 1; update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); + payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); @@ -7894,7 +7894,7 @@ var classComponentUpdater = { update = createUpdate(eventTime, lane); update.tag = 2; void 0 !== callback && null !== callback && (update.callback = callback); - callback = enqueueUpdate$1(inst, update, lane); + callback = enqueueUpdate(inst, update, lane); null !== callback && (scheduleUpdateOnFiber(callback, inst, lane, eventTime), entangleTransitions(callback, inst, lane)); @@ -7929,7 +7929,7 @@ function constructClassInstance(workInProgress, ctor, props) { ? (context = readContext(context)) : ((unmaskedContext = isContextProvider(ctor) ? previousContext - : contextStackCursor$1.current), + : contextStackCursor.current), (isLegacyContextConsumer = ctor.contextTypes), (context = (isLegacyContextConsumer = null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer) @@ -7973,7 +7973,7 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { ? (instance.context = readContext(contextType)) : ((contextType = isContextProvider(ctor) ? previousContext - : contextStackCursor$1.current), + : contextStackCursor.current), (instance.context = getMaskedContext(workInProgress, contextType))); instance.state = workInProgress.memoizedState; contextType = ctor.getDerivedStateFromProps; @@ -8099,7 +8099,7 @@ function markSuspenseBoundaryShouldCapture( ? (sourceFiber.tag = 17) : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 2))), + enqueueUpdate(sourceFiber, returnFiber, 2))), (sourceFiber.lanes |= 2)), suspenseBoundary ); @@ -8380,7 +8380,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef(current, workInProgress); + markRef$1(current, workInProgress); if ( "hidden" === nextProps.mode || "unstable-defer-without-hiding" === nextProps.mode || @@ -8473,7 +8473,7 @@ function deferHiddenOffscreenComponent( propagateParentContextChanges(current, workInProgress, renderLanes, !0); return null; } -function markRef(current, workInProgress) { +function markRef$1(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -8490,7 +8490,7 @@ function updateFunctionComponent( ) { var context = isContextProvider(Component) ? previousContext - : contextStackCursor$1.current; + : contextStackCursor.current; context = getMaskedContext(workInProgress, context); prepareToReadContext(workInProgress, renderLanes); enableSchedulingProfiler && markComponentRenderStarted(workInProgress); @@ -8523,7 +8523,7 @@ function replayFunctionComponent( ) { var context = isContextProvider(Component) ? previousContext - : contextStackCursor$1.current; + : contextStackCursor.current; context = getMaskedContext(workInProgress, context); prepareToReadContext(workInProgress, renderLanes); enableSchedulingProfiler && markComponentRenderStarted(workInProgress); @@ -8573,7 +8573,7 @@ function updateClassComponent( ? (contextType = readContext(contextType)) : ((contextType = isContextProvider(Component) ? previousContext - : contextStackCursor$1.current), + : contextStackCursor.current), (contextType = getMaskedContext(workInProgress, contextType))); var getDerivedStateFromProps = Component.getDerivedStateFromProps, hasNewLifecycles = @@ -8653,7 +8653,7 @@ function updateClassComponent( ? (oldContext = readContext(oldContext)) : ((oldContext = isContextProvider(Component) ? previousContext - : contextStackCursor$1.current), + : contextStackCursor.current), (oldContext = getMaskedContext(workInProgress, oldContext))); var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps; (getDerivedStateFromProps = @@ -8760,7 +8760,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef(current, workInProgress); + markRef$1(current, workInProgress); var didCaptureError = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !didCaptureError) return ( @@ -9532,13 +9532,13 @@ function attemptEarlyBailoutIfNoScheduledUpdate( return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } var valueCursor = createCursor(null), - currentlyRenderingFiber$1 = null, + currentlyRenderingFiber = null, lastContextDependency = null, lastFullyObservedContext = null; function resetContextDependencies() { lastFullyObservedContext = lastContextDependency = - currentlyRenderingFiber$1 = + currentlyRenderingFiber = null; } function pushProvider(providerFiber, context, nextValue) { @@ -9752,7 +9752,7 @@ function checkIfContextChanged(currentDependencies) { return !1; } function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber$1 = workInProgress; + currentlyRenderingFiber = workInProgress; lastFullyObservedContext = lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && @@ -9769,15 +9769,14 @@ function readContext(context) { ((context = { context: context, memoizedValue: value, next: null }), null === lastContextDependency) ) { - if (null === currentlyRenderingFiber$1) + if (null === currentlyRenderingFiber) throw Error(formatProdErrorMessage(308)); lastContextDependency = context; - currentlyRenderingFiber$1.dependencies = { + currentlyRenderingFiber.dependencies = { lanes: 0, firstContext: context }; - enableLazyContextPropagation && - (currentlyRenderingFiber$1.flags |= 524288); + enableLazyContextPropagation && (currentlyRenderingFiber.flags |= 524288); } else lastContextDependency = lastContextDependency.next = context; return value; } @@ -9800,7 +9799,7 @@ var AbortControllerLocal = }; }, scheduleCallback$1 = Scheduler.unstable_scheduleCallback, - NormalPriority$1 = Scheduler.unstable_NormalPriority, + NormalPriority = Scheduler.unstable_NormalPriority, CacheContext = { $$typeof: REACT_CONTEXT_TYPE, Consumer: null, @@ -9821,11 +9820,11 @@ function createCache() { function releaseCache(cache) { cache.refCount--; 0 === cache.refCount && - scheduleCallback$1(NormalPriority$1, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } -var ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, +var ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, resumedCache = createCursor(null), transitionStack = createCursor(null); function peekCacheFromPool() { @@ -9945,7 +9944,7 @@ function DO_NOT_USE_queryFirstNode(fn) { ? collectFirstScopedNodeFromChildren(currentFiber, fn) : null; } -function containsNode$1(node) { +function containsNode(node) { for (node = getClosestInstanceFromNode(node) || null; null !== node; ) { if (21 === node.tag && node.stateNode === this) return !0; node = node.return; @@ -9964,13 +9963,10 @@ function getChildContextValues(context) { function markUpdate(workInProgress) { workInProgress.flags |= 4; } -function markRef$1(workInProgress) { +function markRef(workInProgress) { workInProgress.flags |= 2097664; } -var appendAllChildren, - updateHostContainer, - updateHostComponent$1, - updateHostText$1; +var appendAllChildren, updateHostContainer, updateHostComponent, updateHostText; appendAllChildren = function (parent, workInProgress) { for (var node = workInProgress.child; null !== node; ) { if (5 === node.tag || 6 === node.tag) parent.appendChild(node.stateNode); @@ -9989,15 +9985,15 @@ appendAllChildren = function (parent, workInProgress) { } }; updateHostContainer = function () {}; -updateHostComponent$1 = function (current, workInProgress, type, newProps) { +updateHostComponent = function (current, workInProgress, type, newProps) { var oldProps = current.memoizedProps; if (oldProps !== newProps) { current = workInProgress.stateNode; var updatePayload = null; switch (type) { case "input": - oldProps = getHostProps(current, oldProps); - newProps = getHostProps(current, newProps); + oldProps = getHostProps$2(current, oldProps); + newProps = getHostProps$2(current, newProps); updatePayload = []; break; case "select": @@ -10006,14 +10002,14 @@ updateHostComponent$1 = function (current, workInProgress, type, newProps) { updatePayload = []; break; case "textarea": - oldProps = getHostProps$2(current, oldProps); - newProps = getHostProps$2(current, newProps); + oldProps = getHostProps(current, oldProps); + newProps = getHostProps(current, newProps); updatePayload = []; break; default: "function" !== typeof oldProps.onClick && "function" === typeof newProps.onClick && - (current.onclick = noop); + (current.onclick = noop$1); } assertValidProps(type, newProps); var styleName; @@ -10105,7 +10101,7 @@ updateHostComponent$1 = function (current, workInProgress, type, newProps) { markUpdate(workInProgress); } }; -updateHostText$1 = function (current, workInProgress, oldText, newText) { +updateHostText = function (current, workInProgress, oldText, newText) { oldText !== newText && markUpdate(workInProgress); }; function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { @@ -10123,14 +10119,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$139 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$139 = lastTailNode), + for (var lastTailNode$138 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$138 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$139 + null === lastTailNode$138 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$139.sibling = null); + : (lastTailNode$138.sibling = null); } } function bubbleProperties(completedWork) { @@ -10142,53 +10138,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$141 = completedWork.selfBaseDuration, - child$142 = completedWork.child; - null !== child$142; + var treeBaseDuration$140 = completedWork.selfBaseDuration, + child$141 = completedWork.child; + null !== child$141; ) - (newChildLanes |= child$142.lanes | child$142.childLanes), - (subtreeFlags |= child$142.subtreeFlags & 14680064), - (subtreeFlags |= child$142.flags & 14680064), - (treeBaseDuration$141 += child$142.treeBaseDuration), - (child$142 = child$142.sibling); - completedWork.treeBaseDuration = treeBaseDuration$141; + (newChildLanes |= child$141.lanes | child$141.childLanes), + (subtreeFlags |= child$141.subtreeFlags & 14680064), + (subtreeFlags |= child$141.flags & 14680064), + (treeBaseDuration$140 += child$141.treeBaseDuration), + (child$141 = child$141.sibling); + completedWork.treeBaseDuration = treeBaseDuration$140; } else for ( - treeBaseDuration$141 = completedWork.child; - null !== treeBaseDuration$141; + treeBaseDuration$140 = completedWork.child; + null !== treeBaseDuration$140; ) (newChildLanes |= - treeBaseDuration$141.lanes | treeBaseDuration$141.childLanes), - (subtreeFlags |= treeBaseDuration$141.subtreeFlags & 14680064), - (subtreeFlags |= treeBaseDuration$141.flags & 14680064), - (treeBaseDuration$141.return = completedWork), - (treeBaseDuration$141 = treeBaseDuration$141.sibling); + treeBaseDuration$140.lanes | treeBaseDuration$140.childLanes), + (subtreeFlags |= treeBaseDuration$140.subtreeFlags & 14680064), + (subtreeFlags |= treeBaseDuration$140.flags & 14680064), + (treeBaseDuration$140.return = completedWork), + (treeBaseDuration$140 = treeBaseDuration$140.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$141 = completedWork.actualDuration; - child$142 = completedWork.selfBaseDuration; + treeBaseDuration$140 = completedWork.actualDuration; + child$141 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$141 += child.actualDuration), - (child$142 += child.treeBaseDuration), + (treeBaseDuration$140 += child.actualDuration), + (child$141 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$141; - completedWork.treeBaseDuration = child$142; + completedWork.actualDuration = treeBaseDuration$140; + completedWork.treeBaseDuration = child$141; } else for ( - treeBaseDuration$141 = completedWork.child; - null !== treeBaseDuration$141; + treeBaseDuration$140 = completedWork.child; + null !== treeBaseDuration$140; ) (newChildLanes |= - treeBaseDuration$141.lanes | treeBaseDuration$141.childLanes), - (subtreeFlags |= treeBaseDuration$141.subtreeFlags), - (subtreeFlags |= treeBaseDuration$141.flags), - (treeBaseDuration$141.return = completedWork), - (treeBaseDuration$141 = treeBaseDuration$141.sibling); + treeBaseDuration$140.lanes | treeBaseDuration$140.childLanes), + (subtreeFlags |= treeBaseDuration$140.subtreeFlags), + (subtreeFlags |= treeBaseDuration$140.flags), + (treeBaseDuration$140.return = completedWork), + (treeBaseDuration$140 = treeBaseDuration$140.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10230,7 +10226,7 @@ function completeWork(current, workInProgress, renderLanes) { enableTransitionTracing && pop(transitionStack); popHostContainer(); pop(didPerformWorkStackCursor); - pop(contextStackCursor$1); + pop(contextStackCursor); resetWorkInProgressVersions(); renderLanes.pendingContext && ((renderLanes.context = renderLanes.pendingContext), @@ -10254,12 +10250,12 @@ function completeWork(current, workInProgress, renderLanes) { case 26: return ( (current ? current.ref : null) !== workInProgress.ref && - markRef$1(workInProgress), + markRef(workInProgress), null === current || current.memoizedState !== workInProgress.memoizedState ? markUpdate(workInProgress) : null === workInProgress.memoizedState && - updateHostComponent$1( + updateHostComponent( current, workInProgress, workInProgress.type, @@ -10273,8 +10269,8 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes = rootInstanceStackCursor.current; var type = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - updateHostComponent$1(current, workInProgress, type, newProps), - current.ref !== workInProgress.ref && markRef$1(workInProgress); + updateHostComponent(current, workInProgress, type, newProps), + current.ref !== workInProgress.ref && markRef(workInProgress); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -10282,7 +10278,7 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); return null; } - current = contextStackCursor.current; + current = contextStackCursor$1.current; popHydrationState(workInProgress) ? prepareToHydrateHostInstance(workInProgress, current) : ((workInProgress.stateNode = resolveSingletonInstance( @@ -10291,7 +10287,7 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes )), markUpdate(workInProgress)); - null !== workInProgress.ref && markRef$1(workInProgress); + null !== workInProgress.ref && markRef(workInProgress); } bubbleProperties(workInProgress); return null; @@ -10299,8 +10295,8 @@ function completeWork(current, workInProgress, renderLanes) { popHostContext(workInProgress); renderLanes = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - updateHostComponent$1(current, workInProgress, renderLanes, newProps), - current.ref !== workInProgress.ref && markRef$1(workInProgress); + updateHostComponent(current, workInProgress, renderLanes, newProps), + current.ref !== workInProgress.ref && markRef(workInProgress); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -10308,7 +10304,7 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); return null; } - current = contextStackCursor.current; + current = contextStackCursor$1.current; if (popHydrationState(workInProgress)) prepareToHydrateHostInstance(workInProgress, current) && markUpdate(workInProgress); @@ -10340,13 +10336,13 @@ function completeWork(current, workInProgress, renderLanes) { } current && markUpdate(workInProgress); } - null !== workInProgress.ref && markRef$1(workInProgress); + null !== workInProgress.ref && markRef(workInProgress); } bubbleProperties(workInProgress); return null; case 6: if (current && null != workInProgress.stateNode) - updateHostText$1( + updateHostText( current, workInProgress, current.memoizedProps, @@ -10453,11 +10449,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$155 = null; + var cache$154 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$155 = newProps.memoizedState.cachePool.pool); - cache$155 !== type && (newProps.flags |= 2048); + (cache$154 = newProps.memoizedState.cachePool.pool); + cache$154 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -10499,8 +10495,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$155 = type.rendering; - if (null === cache$155) + cache$154 = type.rendering; + if (null === cache$154) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10508,11 +10504,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$155 = findFirstSuspended(current); - if (null !== cache$155) { + cache$154 = findFirstSuspended(current); + if (null !== cache$154) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$155.updateQueue; + current = cache$154.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -10530,7 +10526,7 @@ function completeWork(current, workInProgress, renderLanes) { current = current.sibling; } null !== type.tail && - now() > workInProgressRootRenderTargetTime && + now$1() > workInProgressRootRenderTargetTime && ((workInProgress.flags |= 128), (newProps = !0), cutOffTailIfNeeded(type, !1), @@ -10538,7 +10534,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$155)), null !== current)) { + if (((current = findFirstSuspended(cache$154)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10549,12 +10545,12 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$155.alternate && + !cache$154.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; } else - 2 * now() - type.renderingStartTime > + 2 * now$1() - type.renderingStartTime > workInProgressRootRenderTargetTime && 1073741824 !== renderLanes && ((workInProgress.flags |= 128), @@ -10562,20 +10558,20 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 8388608)); type.isBackwards - ? ((cache$155.sibling = workInProgress.child), - (workInProgress.child = cache$155)) + ? ((cache$154.sibling = workInProgress.child), + (workInProgress.child = cache$154)) : ((current = type.last), null !== current - ? (current.sibling = cache$155) - : (workInProgress.child = cache$155), - (type.last = cache$155)); + ? (current.sibling = cache$154) + : (workInProgress.child = cache$154), + (type.last = cache$154)); } if (null !== type.tail) return ( (workInProgress = type.tail), (type.rendering = workInProgress), (type.tail = workInProgress.sibling), - (type.renderingStartTime = now()), + (type.renderingStartTime = now$1()), (workInProgress.sibling = null), (current = suspenseStackCursor.current), push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1), @@ -10589,15 +10585,15 @@ function completeWork(current, workInProgress, renderLanes) { ? ((current = { DO_NOT_USE_queryAllNodes: DO_NOT_USE_queryAllNodes, DO_NOT_USE_queryFirstNode: DO_NOT_USE_queryFirstNode, - containsNode: containsNode$1, + containsNode: containsNode, getChildContextValues: getChildContextValues }), (workInProgress.stateNode = current), (current[internalInstanceKey] = workInProgress), null !== workInProgress.ref && - (markRef$1(workInProgress), markUpdate(workInProgress))) + (markRef(workInProgress), markUpdate(workInProgress))) : (null !== workInProgress.ref && markUpdate(workInProgress), - current.ref !== workInProgress.ref && markRef$1(workInProgress)), + current.ref !== workInProgress.ref && markRef(workInProgress)), bubbleProperties(workInProgress), null ); @@ -10679,7 +10675,7 @@ function unwindWork(current, workInProgress) { enableTransitionTracing && pop(transitionStack), popHostContainer(), pop(didPerformWorkStackCursor), - pop(contextStackCursor$1), + pop(contextStackCursor), resetWorkInProgressVersions(), (current = workInProgress.flags), 0 !== (current & 65536) && 0 === (current & 128) @@ -10754,7 +10750,7 @@ function unwindInterruptedWork(current, interruptedWork) { enableTransitionTracing && pop(transitionStack); popHostContainer(); pop(didPerformWorkStackCursor); - pop(contextStackCursor$1); + pop(contextStackCursor); resetWorkInProgressVersions(); break; case 26: @@ -10868,8 +10864,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$175) { - captureCommitPhaseError(current, nearestMountedAncestor, error$175); + } catch (error$170) { + captureCommitPhaseError(current, nearestMountedAncestor, error$170); } else ref.current = null; } @@ -11167,11 +11163,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$177 = commitTime, + var commitTime$172 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$177); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$172); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -11198,8 +11194,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$179) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$179); + } catch (error$174) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$174); } } function commitClassCallbacks(finishedWork) { @@ -11298,11 +11294,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$180) { + } catch (error$175) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$180 + error$175 ); } else { @@ -11319,11 +11315,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$181) { + } catch (error$176) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$181 + error$176 ); } recordLayoutEffectDuration(finishedWork); @@ -11334,11 +11330,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$182) { + } catch (error$177) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$182 + error$177 ); } } @@ -11665,7 +11661,7 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { (parent = parent._reactRootContainer), (null !== parent && void 0 !== parent) || null !== before.onclick || - (before.onclick = noop)); + (before.onclick = noop$1)); else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), @@ -12037,22 +12033,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$197) { + } catch (error$192) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$197 + error$192 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$198) { + } catch (error$193) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$198 + error$193 ); } } @@ -12245,11 +12241,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { attributeName ), (propValue[internalPropsKey] = attributeName); - } catch (error$199) { + } catch (error$194) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$199 + error$194 ); } break; @@ -12285,8 +12281,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { propName = finishedWork.stateNode; try { setTextContent(propName, ""); - } catch (error$200) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$200); + } catch (error$195) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$195); } } if ( @@ -12303,8 +12299,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, hoistableRoot, root, current, propName), (flags[internalPropsKey] = propName); - } catch (error$203) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$203); + } catch (error$198) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$198); } break; case 6: @@ -12317,8 +12313,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$204) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$204); + } catch (error$199) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$199); } } break; @@ -12331,8 +12327,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$205) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$205); + } catch (error$200) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$200); } break; case 4: @@ -12352,7 +12348,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== current.memoizedState && (null === current.alternate || null === current.alternate.memoizedState) && - (globalMostRecentFallbackTime = now()); + (globalMostRecentFallbackTime = now$1()); if (flags & 4) { try { if (null !== finishedWork.memoizedState) { @@ -12362,8 +12358,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$207) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$207); + } catch (error$202) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$202); } current = finishedWork.updateQueue; null !== current && @@ -12441,11 +12437,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = propName ? "" : root.memoizedProps; - } catch (error$187) { + } catch (error$182) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$187 + error$182 ); } } else if ( @@ -12520,21 +12516,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$188 = JSCompiler_inline_result.stateNode; + var parent$183 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$188, ""), + (setTextContent(parent$183, ""), (JSCompiler_inline_result.flags &= -33)); - var before$189 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$189, parent$188); + var before$184 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$184, parent$183); break; case 3: case 4: - var parent$190 = JSCompiler_inline_result.stateNode.containerInfo, - before$191 = getHostSibling(finishedWork); + var parent$185 = JSCompiler_inline_result.stateNode.containerInfo, + before$186 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$191, - parent$190 + before$186, + parent$185 ); break; default: @@ -12716,7 +12712,7 @@ function recursivelyTraverseReappearLayoutEffects( } function commitHookPassiveMountEffects(finishedWork, hookFlags) { if (shouldProfile(finishedWork)) { - passiveEffectStartTime = now$1(); + passiveEffectStartTime = now(); try { commitHookEffectListMount(hookFlags, finishedWork); } catch (error) { @@ -12726,8 +12722,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$213) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$213); + } catch (error$208) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$208); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -13026,9 +13022,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$218 = finishedWork.stateNode; + var instance$213 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$218._visibility & 4 + ? instance$213._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -13041,7 +13037,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$218._visibility |= 4), + : ((instance$213._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -13049,7 +13045,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$218._visibility |= 4), + : ((instance$213._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -13062,7 +13058,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$218 + instance$213 ); break; case 24: @@ -13153,7 +13149,7 @@ function commitHookPassiveUnmountEffects( hookFlags ) { shouldProfile(finishedWork) - ? ((passiveEffectStartTime = now$1()), + ? ((passiveEffectStartTime = now()), commitHookEffectListUnmount( hookFlags, finishedWork, @@ -13368,10 +13364,10 @@ function schedulePostPaintCallback(callback) { } var ceil = Math.ceil, PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, - ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, executionContext = 0, workInProgressRoot = null, workInProgress = null, @@ -13379,7 +13375,7 @@ var ceil = Math.ceil, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidAttachPingListener = !1, - renderLanes$1 = 0, + renderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootSkippedLanes = 0, @@ -13454,7 +13450,7 @@ function addTransitionProgressCallbackToPendingTransition( )); } function resetRenderTimer() { - workInProgressRootRenderTargetTime = now() + 500; + workInProgressRootRenderTargetTime = now$1() + 500; } var hasUncaughtError = !1, firstUncaughtError = null, @@ -13472,10 +13468,10 @@ var hasUncaughtError = !1, currentEventTransitionLane = 0; function requestEventTime() { return 0 !== (executionContext & 6) - ? now() + ? now$1() : -1 !== currentEventTime ? currentEventTime - : (currentEventTime = now()); + : (currentEventTime = now$1()); } function requestUpdateLane(fiber) { if (0 === (fiber.mode & 1)) return 2; @@ -13485,7 +13481,7 @@ function requestUpdateLane(fiber) { 0 !== workInProgressRootRenderLanes ) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; - if (null !== ReactCurrentBatchConfig$2.transition) + if (null !== ReactCurrentBatchConfig$1.transition) return ( 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()), @@ -13501,7 +13497,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { 2 === workInProgressSuspendedReason && root === workInProgressRoot && (prepareFreshStack(root, 0), - markRootSuspended$1(root, workInProgressRootRenderLanes)); + markRootSuspended(root, workInProgressRootRenderLanes)); markRootUpdated(root, lane, eventTime); if (0 === (executionContext & 2) || root !== workInProgressRoot) { isDevToolsPresent && addFiberToLanesMap(root, fiber, lane); @@ -13523,10 +13519,10 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { } if ( enableTransitionTracing && - ((current = ReactCurrentBatchConfig$3.transition), + ((current = ReactCurrentBatchConfig.transition), null !== current && null != current.name && - (-1 === current.startTime && (current.startTime = now()), + (-1 === current.startTime && (current.startTime = now$1()), enableTransitionTracing)) ) { id = root.transitionLanes; @@ -13540,7 +13536,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { if (deferRenderPhaseUpdateToNextBatch || 0 === (executionContext & 2)) workInProgressRootInterleavedUpdatedLanes |= lane; 4 === workInProgressRootExitStatus && - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); 2 === lane && @@ -13557,14 +13553,14 @@ function ensureRootIsScheduled(root, currentTime) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === nextLanes) - null !== existingCallbackNode && cancelCallback(existingCallbackNode), + null !== existingCallbackNode && cancelCallback$1(existingCallbackNode), (root.callbackNode = null), (root.callbackPriority = 0); else if ( ((currentTime = nextLanes & -nextLanes), root.callbackPriority !== currentTime) ) { - null != existingCallbackNode && cancelCallback(existingCallbackNode); + null != existingCallbackNode && cancelCallback$1(existingCallbackNode); if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) @@ -13582,15 +13578,15 @@ function ensureRootIsScheduled(root, currentTime) { existingCallbackNode = UserBlockingPriority; break; case 32: - existingCallbackNode = NormalPriority; + existingCallbackNode = NormalPriority$1; break; case 536870912: existingCallbackNode = IdlePriority; break; default: - existingCallbackNode = NormalPriority; + existingCallbackNode = NormalPriority$1; } - existingCallbackNode = scheduleCallback$2( + existingCallbackNode = scheduleCallback( existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root) ); @@ -13637,11 +13633,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), - ensureRootIsScheduled(root, now()), + markRootSuspended(root, lanes), + ensureRootIsScheduled(root, now$1()), originalCallbackNode) ); - if (6 === didTimeout) markRootSuspended$1(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); originallyAttemptedLanes = root.current.alternate; @@ -13652,24 +13648,24 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$227 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$222 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$227 && - ((lanes = errorRetryLanes$227), + 0 !== errorRetryLanes$222 && + ((lanes = errorRetryLanes$222), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$227 + errorRetryLanes$222 ))); } if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), - ensureRootIsScheduled(root, now()), + markRootSuspended(root, lanes), + ensureRootIsScheduled(root, now$1()), originalCallbackNode) ); } @@ -13687,10 +13683,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ); break; case 3: - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && - ((lanes = globalMostRecentFallbackTime + 500 - now()), 10 < lanes) + ((lanes = globalMostRecentFallbackTime + 500 - now$1()), 10 < lanes) ) { if (0 !== getNextLanes(root, 0)) break; root.timeoutHandle = scheduleTimeout( @@ -13711,18 +13707,18 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ); break; case 4: - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$227 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$227), - (errorRetryLanes$227 = didTimeout[errorRetryLanes$227]), - errorRetryLanes$227 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$227), + (errorRetryLanes$222 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$222), + (errorRetryLanes$222 = didTimeout[errorRetryLanes$222]), + errorRetryLanes$222 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$222), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; - lanes = now() - lanes; + lanes = now$1() - lanes; lanes = (120 > lanes ? 120 @@ -13767,7 +13763,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } } } - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return root.callbackNode === originalCallbackNode ? 2 === workInProgressSuspendedReason && workInProgressRoot === root ? ((root.callbackPriority = 0), (root.callbackNode = null)) @@ -13838,7 +13834,7 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended$1(root, suspendedLanes) { +function markRootSuspended(root, suspendedLanes) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; @@ -13856,7 +13852,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now$1()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -13876,13 +13872,13 @@ function performSyncWorkOnRoot(root) { throw ( ((exitStatus = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), - ensureRootIsScheduled(root, now()), + markRootSuspended(root, lanes), + ensureRootIsScheduled(root, now$1()), exitStatus) ); if (6 === exitStatus) return ( - markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), null + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now$1()), null ); root.finishedWork = root.current.alternate; root.finishedLanes = lanes; @@ -13891,10 +13887,10 @@ function performSyncWorkOnRoot(root) { workInProgressRootRecoverableErrors, workInProgressTransitions ); - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return null; } -function batchedUpdates$1(fn, a) { +function batchedUpdates(fn, a) { var prevExecutionContext = executionContext; executionContext |= 1; try { @@ -13906,25 +13902,25 @@ function batchedUpdates$1(fn, a) { includesLegacySyncCallbacks && flushSyncCallbacks()); } } -function flushSync(fn) { +function flushSync$1(fn) { null !== rootWithPendingPassiveEffects && 0 === rootWithPendingPassiveEffects.tag && 0 === (executionContext & 6) && flushPassiveEffects(); var prevExecutionContext = executionContext; executionContext |= 1; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { if ( - ((ReactCurrentBatchConfig$3.transition = null), + ((ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), fn) ) return fn(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (executionContext = prevExecutionContext), 0 === (executionContext & 6) && flushSyncCallbacks(); } @@ -13952,7 +13948,7 @@ function prepareFreshStack(root, lanes) { resetWorkInProgressStack(); workInProgressRoot = root; workInProgress = root = createWorkInProgress(root.current, null); - workInProgressRootRenderLanes = renderLanes$1 = lanes; + workInProgressRootRenderLanes = renderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; workInProgressRootDidAttachPingListener = !1; @@ -13969,7 +13965,7 @@ function prepareFreshStack(root, lanes) { } function handleThrow(root, thrownValue) { ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; if (thrownValue === SuspenseException) { if (null === suspendedThenable) throw Error(formatProdErrorMessage(459)); thrownValue = suspendedThenable; @@ -14034,10 +14030,10 @@ function shouldAttemptToSuspendUntilDataResolves() { function pushDispatcher(container) { container = getHoistableRoot(container); lastCurrentDocument = container.ownerDocument || container; - previousDispatcher = Dispatcher.current; - Dispatcher.current = ReactDOMClientDispatcher; - container = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + previousDispatcher = Dispatcher$1.current; + Dispatcher$1.current = ReactDOMClientDispatcher; + container = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = ContextOnlyDispatcher; return null === container ? ContextOnlyDispatcher : container; } function pushCacheDispatcher() { @@ -14050,7 +14046,7 @@ function renderDidSuspendDelayIfPossible() { null === workInProgressRoot || (0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) || - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes); } function renderRootSync(root, lanes) { var prevExecutionContext = executionContext; @@ -14088,15 +14084,15 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$230) { - handleThrow(root, thrownValue$230); + } catch (thrownValue$225) { + handleThrow(root, thrownValue$225); } while (1); resetContextDependencies(); executionContext = prevExecutionContext; - Dispatcher.current = previousDispatcher; + Dispatcher$1.current = previousDispatcher; previousDispatcher = null; - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; ReactCurrentCache.current = prevCacheDispatcher; if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); enableSchedulingProfiler && markRenderStopped(); @@ -14147,7 +14143,7 @@ function renderRootConcurrent(root, lanes) { break; } lanes = function () { - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); }; memoizedUpdaters.then(lanes, lanes); break a; @@ -14177,14 +14173,14 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$232) { - handleThrow(root, thrownValue$232); + } catch (thrownValue$227) { + handleThrow(root, thrownValue$227); } while (1); resetContextDependencies(); - Dispatcher.current = previousDispatcher; + Dispatcher$1.current = previousDispatcher; previousDispatcher = null; - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; ReactCurrentCache.current = prevCacheDispatcher; executionContext = prevExecutionContext; if (null !== workInProgress) @@ -14210,14 +14206,14 @@ function performUnitOfWork(unitOfWork) { var current = unitOfWork.alternate; 0 !== (unitOfWork.mode & 2) ? (startProfilerTimer(unitOfWork), - (current = beginWork$1(current, unitOfWork, renderLanes$1)), + (current = beginWork(current, unitOfWork, renderLanes)), stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !0)) - : (current = beginWork$1(current, unitOfWork, renderLanes$1)); + : (current = beginWork(current, unitOfWork, renderLanes)); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) : (workInProgress = current); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function replaySuspendedUnitOfWork(unitOfWork) { var current = unitOfWork.alternate, @@ -14256,15 +14252,15 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetHooksOnUnwind(), unwindInterruptedWork(current, unitOfWork), (unitOfWork = workInProgress = - resetWorkInProgress(unitOfWork, renderLanes$1)), - (current = beginWork$1(current, unitOfWork, renderLanes$1)); + resetWorkInProgress(unitOfWork, renderLanes)), + (current = beginWork(current, unitOfWork, renderLanes)); } isProfilingMode && stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !0); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) : (workInProgress = current); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { resetContextDependencies(); @@ -14438,9 +14434,9 @@ function completeUnitOfWork(unitOfWork) { if (0 === (completedWork.flags & 32768)) { if ( (0 === (completedWork.mode & 2) - ? (current = completeWork(current, completedWork, renderLanes$1)) + ? (current = completeWork(current, completedWork, renderLanes)) : (startProfilerTimer(completedWork), - (current = completeWork(current, completedWork, renderLanes$1)), + (current = completeWork(current, completedWork, renderLanes)), stopProfilerTimerIfRunningAndRecordDelta(completedWork, !1)), null !== current) ) { @@ -14482,9 +14478,9 @@ function completeUnitOfWork(unitOfWork) { } function commitRoot(root, recoverableErrors, transitions) { var previousUpdateLanePriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig$3.transition; + prevTransition = ReactCurrentBatchConfig.transition; try { - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), commitRootImpl( root, @@ -14493,7 +14489,7 @@ function commitRoot(root, recoverableErrors, transitions) { previousUpdateLanePriority ); } finally { - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (currentUpdatePriority = previousUpdateLanePriority); } return null; @@ -14533,28 +14529,28 @@ function commitRootImpl( ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = remainingLanes), (pendingPassiveTransitions = transitions), - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; })); transitions = 0 !== (finishedWork.flags & 15990); if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactCurrentBatchConfig$3.transition; - ReactCurrentBatchConfig$3.transition = null; + transitions = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = null; var previousPriority = currentUpdatePriority; currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; - ReactCurrentOwner$2.current = null; - var shouldFireAfterActiveInstanceBlur$235 = commitBeforeMutationEffects( + ReactCurrentOwner.current = null; + var shouldFireAfterActiveInstanceBlur$230 = commitBeforeMutationEffects( root, finishedWork ); - commitTime = now$1(); + commitTime = now(); enableProfilerNestedUpdateScheduledHook && (rootCommittingMutationOrLayoutEffects = root); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$235 && + shouldFireAfterActiveInstanceBlur$230 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -14578,8 +14574,8 @@ function commitRootImpl( requestPaint(); executionContext = prevExecutionContext; currentUpdatePriority = previousPriority; - ReactCurrentBatchConfig$3.transition = transitions; - } else (root.current = finishedWork), (commitTime = now$1()); + ReactCurrentBatchConfig.transition = transitions; + } else (root.current = finishedWork), (commitTime = now()); rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -14589,7 +14585,7 @@ function commitRootImpl( 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -14628,7 +14624,7 @@ function commitRootImpl( var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks; null !== prevPendingTransitionCallbacks ? ((currentPendingTransitionCallbacks = null), - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, endTime, @@ -14648,23 +14644,23 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$236 = rootWithPendingPassiveEffects, + var root$231 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); renderPriority = 32 > renderPriority ? 32 : renderPriority; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { return ( - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = renderPriority), flushPassiveEffectsImpl() ); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), - releaseRootPooledCache(root$236, remainingLanes); + (ReactCurrentBatchConfig.transition = prevTransition), + releaseRootPooledCache(root$231, remainingLanes); } } return !1; @@ -14673,7 +14669,7 @@ function enqueuePendingPassiveProfilerEffect(fiber) { pendingPassiveProfilerEffects.push(fiber); rootDoesHavePassiveEffects || ((rootDoesHavePassiveEffects = !0), - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; })); @@ -14715,7 +14711,7 @@ function flushPassiveEffectsImpl() { null !== prevRootTransitionCallbacks && null !== prevEndTime && ((currentEndTime = currentPendingTransitionCallbacks = null), - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, prevEndTime, @@ -14735,7 +14731,7 @@ function flushPassiveEffectsImpl() { function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && (markRootUpdated(rootFiber, 2, sourceFiber), @@ -14774,7 +14770,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber, 2 ); - nearestMountedAncestor = enqueueUpdate$1( + nearestMountedAncestor = enqueueUpdate( nearestMountedAncestor, sourceFiber, 2 @@ -14817,7 +14813,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && - 500 > now() - globalMostRecentFallbackTime) + 500 > now$1() - globalMostRecentFallbackTime) ? 0 === (executionContext & 2) && prepareFreshStack(root, 0) : (workInProgressRootPingedLanes |= pingedLanes)); ensureRootIsScheduled(root, wakeable); @@ -14861,8 +14857,8 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { null !== retryCache && retryCache.delete(wakeable); retryTimedOutBoundary(boundaryFiber, retryLane); } -var beginWork$1; -beginWork$1 = function (current, workInProgress, renderLanes) { +var beginWork; +beginWork = function (current, workInProgress, renderLanes) { if (null !== current) if ( current.memoizedProps !== workInProgress.pendingProps || @@ -14897,7 +14893,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { current = workInProgress.pendingProps; var context = getMaskedContext( workInProgress, - contextStackCursor$1.current + contextStackCursor.current ); prepareToReadContext(workInProgress, renderLanes); enableSchedulingProfiler && markComponentRenderStarted(workInProgress); @@ -15096,7 +15092,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { return workInProgress; case 26: return ( - markRef(current, workInProgress), + markRef$1(current, workInProgress), (renderLanes = workInProgress.memoizedState = getResource( workInProgress.type, @@ -15143,7 +15139,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { Component, renderLanes )), - markRef(current, workInProgress), + markRef$1(current, workInProgress), workInProgress.child ); case 5: @@ -15159,7 +15155,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { : null !== prevState && shouldSetTextContent(Component, prevState) && (workInProgress.flags |= 32), - markRef(current, workInProgress), + markRef$1(current, workInProgress), reconcileChildren(current, workInProgress, root, renderLanes), workInProgress.child ); @@ -15430,8 +15426,8 @@ function restorePendingUpdaters(root, lanes) { addFiberToLanesMap(root, schedulingFiber, lanes); }); } -function scheduleCallback$2(priorityLevel, callback) { - return scheduleCallback(priorityLevel, callback); +function scheduleCallback(priorityLevel, callback) { + return scheduleCallback$2(priorityLevel, callback); } function FiberNode(tag, pendingProps, key, mode) { this.tag = tag; @@ -15569,7 +15565,7 @@ function createFiberFromTypeAndProps( fiberTag = isHostHoistableType( type, pendingProps, - contextStackCursor.current + contextStackCursor$1.current ) ? 26 : "html" === type || "head" === type || "body" === type @@ -15839,7 +15835,7 @@ function createFiberRoot( initializeUpdateQueue(isStrictMode); return containerInfo; } -function createPortal(children, containerInfo, implementation) { +function createPortal$1(children, containerInfo, implementation) { var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { @@ -15919,7 +15915,7 @@ function createHydrationContainer( isStrictMode = createUpdate(tag, hydrationCallbacks); isStrictMode.callback = void 0 !== callback && null !== callback ? callback : null; - enqueueUpdate$1(containerInfo, isStrictMode, hydrationCallbacks); + enqueueUpdate(containerInfo, isStrictMode, hydrationCallbacks); initialChildren.current.lanes = hydrationCallbacks; markRootUpdated(initialChildren, hydrationCallbacks, tag); ensureRootIsScheduled(initialChildren, tag); @@ -15942,7 +15938,7 @@ function updateContainer(element, container, parentComponent, callback) { container.payload = { element: element }; callback = void 0 === callback ? null : callback; null !== callback && (container.callback = callback); - element = enqueueUpdate$1(current, container, lane); + element = enqueueUpdate(current, container, lane); null !== element && (scheduleUpdateOnFiber(element, current, lane, eventTime), entangleTransitions(element, current, lane)); @@ -15973,7 +15969,7 @@ function markRetryLaneIfNotHydrated(fiber, retryLane) { function emptyFindFiberByHostInstance() { return null; } -var Dispatcher$1 = Internals.Dispatcher, +var Dispatcher = Internals.Dispatcher, defaultOnRecoverableError = "function" === typeof reportError ? reportError @@ -15995,7 +15991,7 @@ ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = if (null !== root) { this._internalRoot = null; var container = root.containerInfo; - flushSync(function () { + flushSync$1(function () { updateContainer(null, root, null, null); }); container[internalContainerInstanceKey] = null; @@ -16006,7 +16002,7 @@ function ReactDOMHydrationRoot(internalRoot) { } ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { if (target) { - var updatePriority = getCurrentUpdatePriority$1(); + var updatePriority = getCurrentUpdatePriority(); target = { blockedOn: null, target: target, priority: updatePriority }; for ( var i = 0; @@ -16051,11 +16047,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$240); + var instance = getPublicRootInstance(root$235); originalCallback.call(instance); }; } - var root$240 = createHydrationContainer( + var root$235 = createHydrationContainer( initialChildren, callback, container, @@ -16067,23 +16063,23 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$240; - container[internalContainerInstanceKey] = root$240.current; + container._reactRootContainer = root$235; + container[internalContainerInstanceKey] = root$235.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); - flushSync(); - return root$240; + flushSync$1(); + return root$235; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$241 = callback; + var originalCallback$236 = callback; callback = function () { - var instance = getPublicRootInstance(root$242); - originalCallback$241.call(instance); + var instance = getPublicRootInstance(root$237); + originalCallback$236.call(instance); }; } - var root$242 = createFiberRoot( + var root$237 = createFiberRoot( container, 0, !1, @@ -16095,15 +16091,15 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$242; - container[internalContainerInstanceKey] = root$242.current; + container._reactRootContainer = root$237; + container[internalContainerInstanceKey] = root$237.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); - flushSync(function () { - updateContainer(initialChildren, root$242, parentComponent, callback); + flushSync$1(function () { + updateContainer(initialChildren, root$237, parentComponent, callback); }); - return root$242; + return root$237; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -16157,18 +16153,18 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { _attemptSynchronousHydration = function (fiber) { switch (fiber.tag) { case 3: - var root$239 = fiber.stateNode; - if (root$239.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$239.pendingLanes); + var root$234 = fiber.stateNode; + if (root$234.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$234.pendingLanes); 0 !== lanes && - (markRootEntangled(root$239, lanes | 2), - ensureRootIsScheduled(root$239, now()), + (markRootEntangled(root$234, lanes | 2), + ensureRootIsScheduled(root$234, now$1()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); } break; case 13: - flushSync(function () { + flushSync$1(function () { var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); @@ -16178,7 +16174,7 @@ _attemptSynchronousHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 2); } }; -attemptDiscreteHydration = function (fiber) { +attemptDiscreteHydration$1 = function (fiber) { if (13 === fiber.tag) { var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { @@ -16188,7 +16184,7 @@ attemptDiscreteHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 2); } }; -attemptContinuousHydration = function (fiber) { +attemptContinuousHydration$1 = function (fiber) { if (13 === fiber.tag) { var root = enqueueConcurrentRenderForLane(fiber, 134217728); if (null !== root) { @@ -16198,7 +16194,7 @@ attemptContinuousHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 134217728); } }; -attemptHydrationAtCurrentPriority = function (fiber) { +attemptHydrationAtCurrentPriority$1 = function (fiber) { if (13 === fiber.tag) { var lane = requestUpdateLane(fiber), root = enqueueConcurrentRenderForLane(fiber, lane); @@ -16209,14 +16205,14 @@ attemptHydrationAtCurrentPriority = function (fiber) { markRetryLaneIfNotHydrated(fiber, lane); } }; -getCurrentUpdatePriority$1 = function () { +getCurrentUpdatePriority = function () { return currentUpdatePriority; }; attemptHydrationAtPriority = runWithPriority; restoreImpl = function (domElement, tag, props) { switch (tag) { case "input": - updateWrapper(domElement, props); + updateWrapper$1(domElement, props); tag = props.name; if ("radio" === props.type && null != tag) { for (props = domElement; props.parentNode; ) props = props.parentNode; @@ -16229,33 +16225,33 @@ restoreImpl = function (domElement, tag, props) { var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) throw Error(formatProdErrorMessage(90)); updateValueIfChanged(otherNode); - updateWrapper(otherNode, otherProps); + updateWrapper$1(otherNode, otherProps); } } } break; case "textarea": - updateWrapper$1(domElement, props); + updateWrapper(domElement, props); break; case "select": (tag = props.value), null != tag && updateOptions(domElement, !!props.multiple, tag, !1); } }; -batchedUpdatesImpl = batchedUpdates$1; -flushSyncImpl = flushSync; +batchedUpdatesImpl = batchedUpdates; +flushSyncImpl = flushSync$1; Internals.Events = [ - getInstanceFromNode$1, + getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, - batchedUpdates$1 + batchedUpdates ]; -var devToolsConfig$jscomp$inline_1817 = { +var devToolsConfig$jscomp$inline_1811 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-bc38a3dfa-20230220", + version: "18.3.0-www-classic-6b6d0617e-20230220", rendererPackageName: "react-dom" }; (function (internals) { @@ -16273,10 +16269,10 @@ var devToolsConfig$jscomp$inline_1817 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1817.bundleType, - version: devToolsConfig$jscomp$inline_1817.version, - rendererPackageName: devToolsConfig$jscomp$inline_1817.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1817.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1811.bundleType, + version: devToolsConfig$jscomp$inline_1811.version, + rendererPackageName: devToolsConfig$jscomp$inline_1811.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1811.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16292,14 +16288,14 @@ var devToolsConfig$jscomp$inline_1817 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1817.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1811.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-bc38a3dfa-20230220" + reconcilerVersion: "18.3.0-next-6b6d0617e-20230220" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -16313,7 +16309,7 @@ exports.createPortal = function (children, container) { var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; if (!isValidContainer(container)) throw Error(formatProdErrorMessage(200)); - return createPortal(children, container, null, key); + return createPortal$1(children, container, null, key); }; exports.createRoot = function (container, options) { if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299)); @@ -16346,7 +16342,7 @@ exports.createRoot = function (container, options) { transitionCallbacks ); container[internalContainerInstanceKey] = options.current; - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); @@ -16368,7 +16364,7 @@ exports.findDOMNode = function (componentOrElement) { return componentOrElement; }; exports.flushSync = function (fn) { - return flushSync(fn); + return flushSync$1(fn); }; exports.hydrate = function (element, container, callback) { if (!isValidContainerLegacy(container)) @@ -16413,7 +16409,7 @@ exports.hydrateRoot = function (container, initialChildren, options) { transitionCallbacks ); container[internalContainerInstanceKey] = initialChildren.current; - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; listenToAllSupportedEvents(container); if (mutableSources) for (container = 0; container < mutableSources.length; container++) @@ -16454,7 +16450,7 @@ exports.unmountComponentAtNode = function (container) { if (!isValidContainerLegacy(container)) throw Error(formatProdErrorMessage(40)); return container._reactRootContainer - ? (flushSync(function () { + ? (flushSync$1(function () { legacyRenderSubtreeIntoContainer( null, null, @@ -16469,7 +16465,7 @@ exports.unmountComponentAtNode = function (container) { !0) : !1; }; -exports.unstable_batchedUpdates = batchedUpdates$1; +exports.unstable_batchedUpdates = batchedUpdates; exports.unstable_createEventHandle = function (type, options) { function eventHandle(target, callback) { if ("function" !== typeof callback) @@ -16502,15 +16498,15 @@ exports.unstable_createEventHandle = function (type, options) { exports.unstable_flushControlled = function (fn) { var prevExecutionContext = executionContext; executionContext |= 1; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (executionContext = prevExecutionContext), 0 === executionContext && (resetRenderTimer(), flushSyncCallbacks()); } @@ -16534,7 +16530,7 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-bc38a3dfa-20230220"; +exports.version = "18.3.0-next-6b6d0617e-20230220"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index d0f1844903..5ab956d418 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -25,8 +25,8 @@ if ( Modernizr 3.0.0pre (Custom Build) | MIT */ "use strict"; -var React = require("react"), - Scheduler = require("scheduler"), +var Scheduler = require("scheduler"), + React = require("react"), Internals = { usingClientEntryPoint: !1, Events: null, @@ -122,7 +122,7 @@ function getClosestInstanceFromNode(targetNode) { } return null; } -function getInstanceFromNode(node) { +function getInstanceFromNode$1(node) { if ( (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) ) { @@ -758,7 +758,7 @@ function getActiveElement(doc) { return doc.body; } } -function getHostProps(element, props) { +function getHostProps$2(element, props) { var checked = props.checked; return assign({}, props, { defaultChecked: void 0, @@ -767,7 +767,7 @@ function getHostProps(element, props) { checked: null != checked ? checked : element._wrapperState.initialChecked }); } -function initWrapperState(element, props) { +function initWrapperState$2(element, props) { var defaultValue = null == props.defaultValue ? "" : props.defaultValue, JSCompiler_temp_const = null != props.checked ? props.checked : props.defaultChecked; @@ -787,7 +787,7 @@ function updateChecked(element, props) { props = props.checked; null != props && setValueForProperty(element, "checked", props, !1); } -function updateWrapper(element, props) { +function updateWrapper$1(element, props) { updateChecked(element, props); var value = getToStringValue(props.value), type = props.type; @@ -819,7 +819,7 @@ function updateWrapper(element, props) { null != props.defaultChecked && (element.defaultChecked = !!props.defaultChecked); } -function postMountWrapper(element, props, isHydrating) { +function postMountWrapper$3(element, props, isHydrating) { if (props.hasOwnProperty("value") || props.hasOwnProperty("defaultValue")) { var type = props.type; if ( @@ -881,7 +881,7 @@ function updateOptions(node, multiple, propValue, setDefaultSelected) { null !== multiple && (multiple.selected = !0); } } -function getHostProps$2(element, props) { +function getHostProps(element, props) { if (null != props.dangerouslySetInnerHTML) throw Error(formatProdErrorMessage(91)); return assign({}, props, { @@ -890,7 +890,7 @@ function getHostProps$2(element, props) { children: "" + element._wrapperState.initialValue }); } -function initWrapperState$2(element, props) { +function initWrapperState(element, props) { var initialValue = props.value; null == initialValue && ((props = props.defaultValue), @@ -898,7 +898,7 @@ function initWrapperState$2(element, props) { (initialValue = props)); element._wrapperState = { initialValue: getToStringValue(initialValue) }; } -function updateWrapper$1(element, props) { +function updateWrapper(element, props) { var value = getToStringValue(props.value), defaultValue = getToStringValue(props.defaultValue); null != value && @@ -909,7 +909,7 @@ function updateWrapper$1(element, props) { (element.defaultValue = value)); null != defaultValue && (element.defaultValue = "" + defaultValue); } -function postMountWrapper$3(element) { +function postMountWrapper(element) { var textContent = element.textContent; textContent === element._wrapperState.initialValue && "" !== textContent && @@ -1119,7 +1119,7 @@ var restoreImpl = null, restoreTarget = null, restoreQueue = null; function restoreStateOfTarget(target) { - if ((target = getInstanceFromNode(target))) { + if ((target = getInstanceFromNode$1(target))) { if ("function" !== typeof restoreImpl) throw Error(formatProdErrorMessage(280)); var stateNode = target.stateNode; @@ -1151,7 +1151,7 @@ function batchedUpdatesImpl(fn, bookkeeping) { } function flushSyncImpl() {} var isInsideEventHandler = !1; -function batchedUpdates(fn, a, b) { +function batchedUpdates$1(fn, a, b) { if (isInsideEventHandler) return fn(a, b); isInsideEventHandler = !0; try { @@ -1384,15 +1384,15 @@ function doesFiberContain(parentFiber, childFiber) { } return !1; } -var scheduleCallback = Scheduler.unstable_scheduleCallback, - cancelCallback = Scheduler.unstable_cancelCallback, +var scheduleCallback$2 = Scheduler.unstable_scheduleCallback, + cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, - now = Scheduler.unstable_now, + now$1 = Scheduler.unstable_now, getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, - NormalPriority = Scheduler.unstable_NormalPriority, + NormalPriority$1 = Scheduler.unstable_NormalPriority, LowPriority = Scheduler.unstable_LowPriority, IdlePriority = Scheduler.unstable_IdlePriority, rendererID = null, @@ -1411,13 +1411,13 @@ function onCommitRoot(root, eventPriority) { schedulerPriority = UserBlockingPriority; break; case 32: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; break; case 536870912: schedulerPriority = IdlePriority; break; default: - schedulerPriority = NormalPriority; + schedulerPriority = NormalPriority$1; } injectedHook.onCommitFiberRoot( rendererID, @@ -1815,10 +1815,10 @@ function lanesToEventPriority(lanes) { : 2; } var _attemptSynchronousHydration, - attemptDiscreteHydration, - attemptContinuousHydration, - attemptHydrationAtCurrentPriority, - getCurrentUpdatePriority$1, + attemptDiscreteHydration$1, + attemptContinuousHydration$1, + attemptHydrationAtCurrentPriority$1, + getCurrentUpdatePriority, attemptHydrationAtPriority, hasScheduledReplayAttempt = !1, queuedDiscreteEvents = [], @@ -1867,7 +1867,7 @@ function queueDiscreteEvent( 1 === queuedDiscreteEvents.length) ) for (; null !== blockedOn.blockedOn; ) { - domEventName = getInstanceFromNode(blockedOn.blockedOn); + domEventName = getInstanceFromNode$1(blockedOn.blockedOn); if (null === domEventName) break; _attemptSynchronousHydration(domEventName); if (null === blockedOn.blockedOn) replayUnblockedEvents(); @@ -1918,8 +1918,8 @@ function accumulateOrCreateContinuousQueuedReplayableEvent( nativeEvent )), null !== blockedOn && - ((blockedOn = getInstanceFromNode(blockedOn)), - null !== blockedOn && attemptContinuousHydration(blockedOn)), + ((blockedOn = getInstanceFromNode$1(blockedOn)), + null !== blockedOn && attemptContinuousHydration$1(blockedOn)), existingQueuedEvent ); existingQueuedEvent.eventSystemFlags |= eventSystemFlags; @@ -2018,7 +2018,7 @@ function attemptExplicitHydrationTarget(queuedTarget) { ) { queuedTarget.blockedOn = targetInst; attemptHydrationAtPriority(queuedTarget.priority, function () { - attemptHydrationAtCurrentPriority(nearestMounted); + attemptHydrationAtCurrentPriority$1(nearestMounted); }); return; } @@ -2066,9 +2066,9 @@ function attemptReplayContinuousQueuedEvent(queuedEvent) { (currentReplayingEvent = null); else return ( - (targetContainers = getInstanceFromNode(nextBlockedOn)), + (targetContainers = getInstanceFromNode$1(nextBlockedOn)), null !== targetContainers && - attemptContinuousHydration(targetContainers), + attemptContinuousHydration$1(targetContainers), (queuedEvent.blockedOn = nextBlockedOn), !1 ); @@ -2085,9 +2085,9 @@ function replayUnblockedEvents() { for (; 0 < queuedDiscreteEvents.length; ) { var nextDiscreteEvent = queuedDiscreteEvents[0]; if (null !== nextDiscreteEvent.blockedOn) { - nextDiscreteEvent = getInstanceFromNode(nextDiscreteEvent.blockedOn); + nextDiscreteEvent = getInstanceFromNode$1(nextDiscreteEvent.blockedOn); null !== nextDiscreteEvent && - attemptDiscreteHydration(nextDiscreteEvent); + attemptDiscreteHydration$1(nextDiscreteEvent); break; } for ( @@ -2172,7 +2172,7 @@ function retryIfBlockedOn(unblocked) { attemptExplicitHydrationTarget(i), null === i.blockedOn && queuedExplicitHydrationTargets.shift(); } -var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, +var ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig, _enabled = !0; function createEventListenerWrapperWithPriority( targetContainer, @@ -2203,14 +2203,14 @@ function dispatchDiscreteEvent( nativeEvent ) { var previousPriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig.transition = prevTransition); + (ReactCurrentBatchConfig$3.transition = prevTransition); } } function dispatchContinuousEvent( @@ -2220,14 +2220,14 @@ function dispatchContinuousEvent( nativeEvent ) { var previousPriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = null; + prevTransition = ReactCurrentBatchConfig$3.transition; + ReactCurrentBatchConfig$3.transition = null; try { (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig.transition = prevTransition); + (ReactCurrentBatchConfig$3.transition = prevTransition); } } function dispatchEvent( @@ -2269,7 +2269,7 @@ function dispatchEvent( -1 < discreteReplayableEvents.indexOf(domEventName)) ) { for (; null !== blockedOn; ) { - var fiber = getInstanceFromNode(blockedOn); + var fiber = getInstanceFromNode$1(blockedOn); null !== fiber && _attemptSynchronousHydration(fiber); fiber = findInstanceBlockingEvent( domEventName, @@ -2472,7 +2472,7 @@ function getEventPriority(domEventName) { return 2; case UserBlockingPriority: return 8; - case NormalPriority: + case NormalPriority$1: case LowPriority: return 32; case IdlePriority: @@ -2963,8 +2963,8 @@ function createAndAccumulateChangeEvent( )), dispatchQueue.push({ event: nativeEvent, listeners: inst })); } -var activeElement = null, - activeElementInst = null; +var activeElement$1 = null, + activeElementInst$1 = null; function runEventInBatch(dispatchQueue) { processDispatchQueue(dispatchQueue, 0); } @@ -2977,47 +2977,47 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$259; + var JSCompiler_inline_result$jscomp$253; if (canUseDOM) { - var isSupported$jscomp$inline_415 = "oninput" in document; - if (!isSupported$jscomp$inline_415) { - var element$jscomp$inline_416 = document.createElement("div"); - element$jscomp$inline_416.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_415 = - "function" === typeof element$jscomp$inline_416.oninput; - } - JSCompiler_inline_result$jscomp$259 = isSupported$jscomp$inline_415; - } else JSCompiler_inline_result$jscomp$259 = !1; + var isSupported$jscomp$inline_408 = "oninput" in document; + if (!isSupported$jscomp$inline_408) { + var element$jscomp$inline_409 = document.createElement("div"); + element$jscomp$inline_409.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_408 = + "function" === typeof element$jscomp$inline_409.oninput; + } + JSCompiler_inline_result$jscomp$253 = isSupported$jscomp$inline_408; + } else JSCompiler_inline_result$jscomp$253 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$259 && + JSCompiler_inline_result$jscomp$253 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { - activeElement && - (activeElement.detachEvent("onpropertychange", handlePropertyChange), - (activeElementInst = activeElement = null)); + activeElement$1 && + (activeElement$1.detachEvent("onpropertychange", handlePropertyChange), + (activeElementInst$1 = activeElement$1 = null)); } function handlePropertyChange(nativeEvent) { if ( "value" === nativeEvent.propertyName && - getInstIfValueChanged(activeElementInst) + getInstIfValueChanged(activeElementInst$1) ) { var dispatchQueue = []; createAndAccumulateChangeEvent( dispatchQueue, - activeElementInst, + activeElementInst$1, nativeEvent, getEventTarget(nativeEvent) ); - batchedUpdates(runEventInBatch, dispatchQueue); + batchedUpdates$1(runEventInBatch, dispatchQueue); } } function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { "focusin" === domEventName ? (stopWatchingForValueChange(), - (activeElement = target), - (activeElementInst = targetInst), - activeElement.attachEvent("onpropertychange", handlePropertyChange)) + (activeElement$1 = target), + (activeElementInst$1 = targetInst), + activeElement$1.attachEvent("onpropertychange", handlePropertyChange)) : "focusout" === domEventName && stopWatchingForValueChange(); } function getTargetInstForInputEventPolyfill(domEventName) { @@ -3026,7 +3026,7 @@ function getTargetInstForInputEventPolyfill(domEventName) { "keyup" === domEventName || "keydown" === domEventName ) - return getInstIfValueChanged(activeElementInst); + return getInstIfValueChanged(activeElementInst$1); } function getTargetInstForClickEvent(domEventName, targetInst) { if ("click" === domEventName) return getInstIfValueChanged(targetInst); @@ -3088,14 +3088,14 @@ function getNodeForCharacterOffset(root, offset) { node = getLeafNode(node); } } -function containsNode(outerNode, innerNode) { +function containsNode$1(outerNode, innerNode) { return outerNode && innerNode ? outerNode === innerNode ? !0 : outerNode && 3 === outerNode.nodeType ? !1 : innerNode && 3 === innerNode.nodeType - ? containsNode(outerNode, innerNode.parentNode) + ? containsNode$1(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : outerNode.compareDocumentPosition @@ -3143,7 +3143,7 @@ function restoreSelection(priorSelectionInformation) { curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && - containsNode( + containsNode$1( priorFocusedElem.ownerDocument.documentElement, priorFocusedElem ) @@ -3234,8 +3234,8 @@ function restoreSelection(priorSelectionInformation) { } var skipSelectionChangeEvent = canUseDOM && "documentMode" in document && 11 >= document.documentMode, - activeElement$1 = null, - activeElementInst$1 = null, + activeElement = null, + activeElementInst = null, lastSelection = null, mouseDown = !1; function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { @@ -3246,9 +3246,9 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { ? nativeEventTarget : nativeEventTarget.ownerDocument; mouseDown || - null == activeElement$1 || - activeElement$1 !== getActiveElement(doc) || - ((doc = activeElement$1), + null == activeElement || + activeElement !== getActiveElement(doc) || + ((doc = activeElement), "selectionStart" in doc && hasSelectionCapabilities(doc) ? (doc = { start: doc.selectionStart, end: doc.selectionEnd }) : ((doc = ( @@ -3263,7 +3263,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { })), (lastSelection && shallowEqual(lastSelection, doc)) || ((lastSelection = doc), - (doc = accumulateTwoPhaseListeners(activeElementInst$1, "onSelect")), + (doc = accumulateTwoPhaseListeners(activeElementInst, "onSelect")), 0 < doc.length && ((nativeEvent = new SyntheticEvent( "onSelect", @@ -3273,7 +3273,7 @@ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { nativeEventTarget )), dispatchQueue.push({ event: nativeEvent, listeners: doc }), - (nativeEvent.target = activeElement$1)))); + (nativeEvent.target = activeElement)))); } function makePrefixMap(styleProp, eventName) { var prefixes = {}; @@ -3324,19 +3324,19 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_456 = 0; - i$jscomp$inline_456 < simpleEventPluginEvents.length; - i$jscomp$inline_456++ + var i$jscomp$inline_449 = 0; + i$jscomp$inline_449 < simpleEventPluginEvents.length; + i$jscomp$inline_449++ ) { - var eventName$jscomp$inline_457 = - simpleEventPluginEvents[i$jscomp$inline_456], - domEventName$jscomp$inline_458 = eventName$jscomp$inline_457.toLowerCase(), - capitalizedEvent$jscomp$inline_459 = - eventName$jscomp$inline_457[0].toUpperCase() + - eventName$jscomp$inline_457.slice(1); + var eventName$jscomp$inline_450 = + simpleEventPluginEvents[i$jscomp$inline_449], + domEventName$jscomp$inline_451 = eventName$jscomp$inline_450.toLowerCase(), + capitalizedEvent$jscomp$inline_452 = + eventName$jscomp$inline_450[0].toUpperCase() + + eventName$jscomp$inline_450.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_458, - "on" + capitalizedEvent$jscomp$inline_459 + domEventName$jscomp$inline_451, + "on" + capitalizedEvent$jscomp$inline_452 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -3595,7 +3595,7 @@ function dispatchEventForPluginEventSystem( targetInst$jscomp$0 = targetInst$jscomp$0.return; } } - batchedUpdates(function () { + batchedUpdates$1(function () { var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = []; @@ -3909,12 +3909,12 @@ function dispatchEventForPluginEventSystem( isTextInputElement(handleEventFunc) || "true" === handleEventFunc.contentEditable ) - (activeElement$1 = handleEventFunc), - (activeElementInst$1 = targetInst), + (activeElement = handleEventFunc), + (activeElementInst = targetInst), (lastSelection = null); break; case "focusout": - lastSelection = activeElementInst$1 = activeElement$1 = null; + lastSelection = activeElementInst = activeElement = null; break; case "mousedown": mouseDown = !0; @@ -4170,7 +4170,7 @@ function normalizeMarkupForTextOrAttribute(markup) { .replace(NORMALIZE_NEWLINES_REGEX, "\n") .replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ""); } -function noop() {} +function noop$1() {} function createElement(type, props, rootContainerElement, parentNamespace) { rootContainerElement = 9 === rootContainerElement.nodeType @@ -4235,8 +4235,8 @@ function setInitialProperties(domElement, tag, rawProps) { props = rawProps; break; case "input": - initWrapperState(domElement, rawProps); - props = getHostProps(domElement, rawProps); + initWrapperState$2(domElement, rawProps); + props = getHostProps$2(domElement, rawProps); listenToNonDelegatedEvent("invalid", domElement); break; case "option": @@ -4248,8 +4248,8 @@ function setInitialProperties(domElement, tag, rawProps) { listenToNonDelegatedEvent("invalid", domElement); break; case "textarea": - initWrapperState$2(domElement, rawProps); - props = getHostProps$2(domElement, rawProps); + initWrapperState(domElement, rawProps); + props = getHostProps(domElement, rawProps); listenToNonDelegatedEvent("invalid", domElement); break; default: @@ -4292,11 +4292,11 @@ function setInitialProperties(domElement, tag, rawProps) { switch (tag) { case "input": track(domElement); - postMountWrapper(domElement, rawProps, !1); + postMountWrapper$3(domElement, rawProps, !1); break; case "textarea": track(domElement); - postMountWrapper$3(domElement); + postMountWrapper(domElement); break; case "option": null != rawProps.value && @@ -4316,7 +4316,7 @@ function setInitialProperties(domElement, tag, rawProps) { ); break; default: - "function" === typeof props.onClick && (domElement.onclick = noop); + "function" === typeof props.onClick && (domElement.onclick = noop$1); } } function updateProperties( @@ -4345,10 +4345,10 @@ function updateProperties( } switch (tag) { case "input": - updateWrapper(domElement, nextRawProps); + updateWrapper$1(domElement, nextRawProps); break; case "textarea": - updateWrapper$1(domElement, nextRawProps); + updateWrapper(domElement, nextRawProps); break; case "select": (updatePayload = domElement._wrapperState.wasMultiple), @@ -4426,10 +4426,10 @@ function popHostContext(fiber) { contextFiberStackCursor.current === fiber && (pop(contextStackCursor), pop(contextFiberStackCursor)); } -var Dispatcher = Internals.Dispatcher, +var Dispatcher$1 = Internals.Dispatcher, lastCurrentDocument = null, previousDispatcher = null, - ReactDOMClientDispatcher = { preload: preload, preinit: preinit }, + ReactDOMClientDispatcher = { preload: preload$1, preinit: preinit$1 }, preloadPropsMap = new Map(); function getHoistableRoot(container) { return "function" === typeof container.getRootNode @@ -4449,7 +4449,7 @@ function getDocumentForPreloads() { return null; } } -function preload(href, options) { +function preload$1(href, options) { var ownerDocument = getDocumentForPreloads(); if ( "string" === typeof href && @@ -4494,7 +4494,7 @@ function preload(href, options) { ownerDocument.head.appendChild(options))); } } -function preinit(href, options) { +function preinit$1(href, options) { if ( "string" === typeof href && href && @@ -5070,7 +5070,7 @@ function flushSyncCallbacks() { } catch (error) { throw ( (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback(ImmediatePriority, flushSyncCallbacks), + scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), error) ); } finally { @@ -5295,7 +5295,7 @@ function prepareToHydrateHostInstance(fiber) { listenToNonDelegatedEvent("toggle", instance); break; case "input": - initWrapperState(instance, props); + initWrapperState$2(instance, props); listenToNonDelegatedEvent("invalid", instance); break; case "select": @@ -5303,7 +5303,7 @@ function prepareToHydrateHostInstance(fiber) { listenToNonDelegatedEvent("invalid", instance); break; case "textarea": - initWrapperState$2(instance, props), + initWrapperState(instance, props), listenToNonDelegatedEvent("invalid", instance); } assertValidProps(type, props); @@ -5334,17 +5334,17 @@ function prepareToHydrateHostInstance(fiber) { switch (type) { case "input": track(instance); - postMountWrapper(instance, props, !0); + postMountWrapper$3(instance, props, !0); break; case "textarea": track(instance); - postMountWrapper$3(instance); + postMountWrapper(instance); break; case "select": case "option": break; default: - "function" === typeof props.onClick && (instance.onclick = noop); + "function" === typeof props.onClick && (instance.onclick = noop$1); } instance = updatePayload; fiber.updateQueue = instance; @@ -5449,7 +5449,7 @@ function finishQueueingConcurrentUpdates() { 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); } } -function enqueueUpdate(fiber, queue, update, lane) { +function enqueueUpdate$1(fiber, queue, update, lane) { concurrentQueues[concurrentQueuesIndex++] = fiber; concurrentQueues[concurrentQueuesIndex++] = queue; concurrentQueues[concurrentQueuesIndex++] = update; @@ -5460,7 +5460,7 @@ function enqueueUpdate(fiber, queue, update, lane) { null !== fiber && (fiber.lanes |= lane); } function enqueueConcurrentRenderForLane(fiber, lane) { - enqueueUpdate(fiber, null, null, lane); + enqueueUpdate$1(fiber, null, null, lane); return getRootForUpdatedFiber(fiber); } function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { @@ -5530,7 +5530,7 @@ function createUpdate(eventTime, lane) { next: null }; } -function enqueueUpdate$1(fiber, update, lane) { +function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (null === updateQueue) return null; updateQueue = updateQueue.shared; @@ -5539,7 +5539,7 @@ function enqueueUpdate$1(fiber, update, lane) { 0 === (executionContext & 2) ) return ( - enqueueUpdate(fiber, updateQueue, update, lane), + enqueueUpdate$1(fiber, updateQueue, update, lane), getRootForUpdatedFiber(fiber) ); var pending = updateQueue.pending; @@ -6423,17 +6423,17 @@ var reconcileChildFibers = createChildReconciler(!0), currentTreeHiddenStackCursor = createCursor(null), prevRenderLanesStackCursor = createCursor(0); function pushHiddenContext(fiber, context) { - fiber = renderLanes$1; + fiber = renderLanes; push(prevRenderLanesStackCursor, fiber); push(currentTreeHiddenStackCursor, context); - renderLanes$1 = fiber | context.baseLanes; + renderLanes = fiber | context.baseLanes; } function reuseHiddenContextOnStack() { - push(prevRenderLanesStackCursor, renderLanes$1); + push(prevRenderLanesStackCursor, renderLanes); push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current); } function popHiddenContext() { - renderLanes$1 = prevRenderLanesStackCursor.current; + renderLanes = prevRenderLanesStackCursor.current; pop(currentTreeHiddenStackCursor); pop(prevRenderLanesStackCursor); } @@ -6508,12 +6508,12 @@ function isThenableResolved(thenable) { thenable = thenable.status; return "fulfilled" === thenable || "rejected" === thenable; } -function noop$1() {} +function noop() {} function trackUsedThenable(thenableState, thenable, index) { index = thenableState[index]; void 0 === index ? thenableState.push(thenable) - : index !== thenable && (thenable.then(noop$1, noop$1), (thenable = index)); + : index !== thenable && (thenable.then(noop, noop), (thenable = index)); switch (thenable.status) { case "fulfilled": return thenable.value; @@ -6521,7 +6521,7 @@ function trackUsedThenable(thenableState, thenable, index) { throw thenable.reason; default: "string" === typeof thenable.status - ? thenable.then(noop$1, noop$1) + ? thenable.then(noop, noop) : ((thenableState = thenable), (thenableState.status = "pending"), thenableState.then( @@ -6552,9 +6552,9 @@ function trackUsedThenable(thenableState, thenable, index) { } var suspendedThenable = null, ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, - ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, - renderLanes = 0, - currentlyRenderingFiber = null, + ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, + renderLanes$1 = 0, + currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, @@ -6581,8 +6581,8 @@ function renderWithHooks( secondArg, nextRenderLanes ) { - renderLanes = nextRenderLanes; - currentlyRenderingFiber = workInProgress; + renderLanes$1 = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress; workInProgress.memoizedState = null; workInProgress.updateQueue = null; workInProgress.lanes = 0; @@ -6606,8 +6606,8 @@ function renderWithHooks( function finishRenderingHooks(current) { ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; + renderLanes$1 = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdate = !1; thenableIndexCounter = 0; thenableState = null; @@ -6646,15 +6646,15 @@ function bailoutHooks(current, workInProgress, lanes) { } function resetHooksOnUnwind() { if (didScheduleRenderPhaseUpdate) { - for (var hook = currentlyRenderingFiber.memoizedState; null !== hook; ) { + for (var hook = currentlyRenderingFiber$1.memoizedState; null !== hook; ) { var queue = hook.queue; null !== queue && (queue.pending = null); hook = hook.next; } didScheduleRenderPhaseUpdate = !1; } - renderLanes = 0; - workInProgressHook = currentHook = currentlyRenderingFiber = null; + renderLanes$1 = 0; + workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdateDuringThisPass = !1; thenableIndexCounter = localIdCounter = 0; thenableState = null; @@ -6668,26 +6668,26 @@ function mountWorkInProgressHook() { next: null }; null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = hook) + ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook) : (workInProgressHook = workInProgressHook.next = hook); return workInProgressHook; } function updateWorkInProgressHook() { if (null === currentHook) { - var nextCurrentHook = currentlyRenderingFiber.alternate; + var nextCurrentHook = currentlyRenderingFiber$1.alternate; nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; } else nextCurrentHook = currentHook.next; var nextWorkInProgressHook = null === workInProgressHook - ? currentlyRenderingFiber.memoizedState + ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; if (null !== nextWorkInProgressHook) (workInProgressHook = nextWorkInProgressHook), (currentHook = nextCurrentHook); else { if (null === nextCurrentHook) - if (null === currentlyRenderingFiber.alternate) + if (null === currentlyRenderingFiber$1.alternate) nextCurrentHook = { memoizedState: null, baseState: null, @@ -6705,7 +6705,7 @@ function updateWorkInProgressHook() { next: null }; null === workInProgressHook - ? (currentlyRenderingFiber.memoizedState = workInProgressHook = + ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook) : (workInProgressHook = workInProgressHook.next = nextCurrentHook); } @@ -6733,10 +6733,10 @@ function use(usable) { } function useMemoCache(size) { var memoCache = null, - updateQueue = currentlyRenderingFiber.updateQueue; + updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current = currentlyRenderingFiber.alternate; + var current = currentlyRenderingFiber$1.alternate; null !== current && ((current = current.updateQueue), null !== current && @@ -6752,7 +6752,7 @@ function useMemoCache(size) { null == memoCache && (memoCache = { data: [], index: 0 }); null === updateQueue && ((updateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = updateQueue)); + (currentlyRenderingFiber$1.updateQueue = updateQueue)); updateQueue.memoCache = memoCache; updateQueue = memoCache.data[memoCache.index]; if (void 0 === updateQueue) @@ -6796,7 +6796,7 @@ function updateReducer(reducer) { if ( updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane - : (renderLanes & updateLane) === updateLane + : (renderLanes$1 & updateLane) === updateLane ) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = @@ -6824,7 +6824,7 @@ function updateReducer(reducer) { ? ((newBaseQueueFirst = newBaseQueueLast = clone), (baseFirst = current)) : (newBaseQueueLast = newBaseQueueLast.next = clone); - currentlyRenderingFiber.lanes |= updateLane; + currentlyRenderingFiber$1.lanes |= updateLane; workInProgressRootSkippedLanes |= updateLane; } update = update.next; @@ -6868,7 +6868,7 @@ function readFromUnsubscribedMutableSource(root, source, getSnapshot) { if (null !== JSCompiler_inline_result) root = JSCompiler_inline_result === getVersion; else if ( - ((root = root.mutableReadLanes), (root = (renderLanes & root) === root)) + ((root = root.mutableReadLanes), (root = (renderLanes$1 & root) === root)) ) (source._workInProgressVersionPrimary = getVersion), workInProgressSources.push(source); @@ -6893,7 +6893,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { prevGetSnapshot = refs.getSnapshot, prevSource = memoizedState.source; memoizedState = memoizedState.subscribe; - var fiber = currentlyRenderingFiber; + var fiber = currentlyRenderingFiber$1; hook.memoizedState = { refs: refs, source: source, subscribe: subscribe }; dispatcher.useEffect( function () { @@ -6939,7 +6939,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) { lastRenderedState: snapshot }), (hook.dispatch = setSnapshot = - dispatchSetState.bind(null, currentlyRenderingFiber, hook)), + dispatchSetState.bind(null, currentlyRenderingFiber$1, hook)), (_dispatcher$useState.queue = hook), (_dispatcher$useState.baseQueue = null), (snapshot = readFromUnsubscribedMutableSource(root, source, getSnapshot)), @@ -6952,7 +6952,7 @@ function updateMutableSource(source, getSnapshot, subscribe) { return useMutableSource(hook, source, getSnapshot, subscribe); } function updateSyncExternalStore(subscribe, getSnapshot) { - var fiber = currentlyRenderingFiber, + var fiber = currentlyRenderingFiber$1, hook = updateWorkInProgressHook(), nextSnapshot = getSnapshot(), snapshotChanged = !objectIs( @@ -6979,7 +6979,7 @@ function updateSyncExternalStore(subscribe, getSnapshot) { ); subscribe = workInProgressRoot; if (null === subscribe) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(subscribe, renderLanes) || + includesBlockingLane(subscribe, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); } return nextSnapshot; @@ -6987,10 +6987,10 @@ function updateSyncExternalStore(subscribe, getSnapshot) { function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { fiber.flags |= 16384; fiber = { getSnapshot: getSnapshot, value: renderedSnapshot }; - getSnapshot = currentlyRenderingFiber.updateQueue; + getSnapshot = currentlyRenderingFiber$1.updateQueue; null === getSnapshot ? ((getSnapshot = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = getSnapshot), + (currentlyRenderingFiber$1.updateQueue = getSnapshot), (getSnapshot.stores = [fiber])) : ((renderedSnapshot = getSnapshot.stores), null === renderedSnapshot @@ -7035,17 +7035,17 @@ function mountState(initialState) { hook.queue = initialState; initialState = initialState.dispatch = dispatchSetState.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, initialState ); return [hook.memoizedState, initialState]; } function pushEffect(tag, create, destroy, deps) { tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null }; - create = currentlyRenderingFiber.updateQueue; + create = currentlyRenderingFiber$1.updateQueue; null === create ? ((create = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = create), + (currentlyRenderingFiber$1.updateQueue = create), (create.lastEffect = tag.next = tag)) : ((destroy = create.lastEffect), null === destroy @@ -7061,7 +7061,7 @@ function updateRef() { } function mountEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( 1 | hookFlags, create, @@ -7081,7 +7081,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) { return; } } - currentlyRenderingFiber.flags |= fiberFlags; + currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps); } function mountEffect(create, deps) { @@ -7091,11 +7091,11 @@ function updateEffect(create, deps) { updateEffectImpl(2048, 8, create, deps); } function useEffectEventImpl(payload) { - currentlyRenderingFiber.flags |= 4; - var componentUpdateQueue = currentlyRenderingFiber.updateQueue; + currentlyRenderingFiber$1.flags |= 4; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; if (null === componentUpdateQueue) (componentUpdateQueue = createFunctionComponentUpdateQueue()), - (currentlyRenderingFiber.updateQueue = componentUpdateQueue), + (currentlyRenderingFiber$1.updateQueue = componentUpdateQueue), (componentUpdateQueue.events = [payload]); else { var events = componentUpdateQueue.events; @@ -7170,14 +7170,14 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 42)) + if (0 === (renderLanes$1 & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) ); objectIs(value, prevValue) || ((value = claimNextTransitionLane()), - (currentlyRenderingFiber.lanes |= value), + (currentlyRenderingFiber$1.lanes |= value), (workInProgressRootSkippedLanes |= value), (hook.baseState = !0)); return prevValue; @@ -7187,18 +7187,18 @@ function startTransition(setPending, callback, options) { currentUpdatePriority = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); - var prevTransition = ReactCurrentBatchConfig$1.transition; - ReactCurrentBatchConfig$1.transition = {}; + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = {}; enableTransitionTracing && void 0 !== options && void 0 !== options.name && - ((ReactCurrentBatchConfig$1.transition.name = options.name), - (ReactCurrentBatchConfig$1.transition.startTime = now())); + ((ReactCurrentBatchConfig$2.transition.name = options.name), + (ReactCurrentBatchConfig$2.transition.startTime = now$1())); try { setPending(!1), callback(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$1.transition = prevTransition); + (ReactCurrentBatchConfig$2.transition = prevTransition); } } function updateId() { @@ -7215,7 +7215,7 @@ function refreshCache(fiber, seedKey, seedValue) { var lane = requestUpdateLane(provider), eventTime = requestEventTime(); fiber = createUpdate(eventTime, lane); - var root$87 = enqueueUpdate$1(provider, fiber, lane); + var root$87 = enqueueUpdate(provider, fiber, lane); null !== root$87 && (scheduleUpdateOnFiber(root$87, provider, lane, eventTime), entangleTransitions(root$87, provider, lane)); @@ -7241,7 +7241,7 @@ function dispatchReducerAction(fiber, queue, action) { }; if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, action); else if ( - (enqueueUpdate(fiber, queue, action, lane), + (enqueueUpdate$1(fiber, queue, action, lane), (action = getRootForUpdatedFiber(fiber)), null !== action) ) { @@ -7274,14 +7274,14 @@ function dispatchSetState(fiber, queue, action) { update.hasEagerState = !0; update.eagerState = eagerState; if (objectIs(eagerState, currentState)) { - enqueueUpdate(fiber, queue, update, 0); + enqueueUpdate$1(fiber, queue, update, 0); null === workInProgressRoot && finishQueueingConcurrentUpdates(); return; } } catch (error) { } finally { } - enqueueUpdate(fiber, queue, update, lane); + enqueueUpdate$1(fiber, queue, update, lane); action = getRootForUpdatedFiber(fiber); null !== action && ((update = requestEventTime()), @@ -7293,8 +7293,8 @@ function dispatchSetState(fiber, queue, action) { function isRenderPhaseUpdate(fiber) { var alternate = fiber.alternate; return ( - fiber === currentlyRenderingFiber || - (null !== alternate && alternate === currentlyRenderingFiber) + fiber === currentlyRenderingFiber$1 || + (null !== alternate && alternate === currentlyRenderingFiber$1) ); } function enqueueRenderPhaseUpdate(queue, update) { @@ -7386,7 +7386,7 @@ var HooksDispatcherOnMount = { hook.queue = reducer; reducer = reducer.dispatch = dispatchReducerAction.bind( null, - currentlyRenderingFiber, + currentlyRenderingFiber$1, reducer ); return [hook.memoizedState, reducer]; @@ -7423,7 +7423,7 @@ var HooksDispatcherOnMount = { return useMutableSource(hook, source, getSnapshot, subscribe); }, useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) { - var fiber = currentlyRenderingFiber, + var fiber = currentlyRenderingFiber$1, hook = mountWorkInProgressHook(); if (isHydrating) { if (void 0 === getServerSnapshot) @@ -7433,7 +7433,7 @@ var HooksDispatcherOnMount = { getServerSnapshot = getSnapshot(); var root$83 = workInProgressRoot; if (null === root$83) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$83, renderLanes) || + includesBlockingLane(root$83, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; @@ -7486,7 +7486,7 @@ var HooksDispatcherOnMount = { useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, - currentlyRenderingFiber + currentlyRenderingFiber$1 )); } }; @@ -7567,7 +7567,7 @@ HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.use = use; HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; -var now$1 = Scheduler.unstable_now, +var now = Scheduler.unstable_now, commitTime = 0, layoutEffectStartTime = -1, profilerStartTime = -1, @@ -7575,12 +7575,12 @@ var now$1 = Scheduler.unstable_now, currentUpdateIsNested = !1, nestedUpdateScheduled = !1; function startProfilerTimer(fiber) { - profilerStartTime = now$1(); - 0 > fiber.actualStartTime && (fiber.actualStartTime = now$1()); + profilerStartTime = now(); + 0 > fiber.actualStartTime && (fiber.actualStartTime = now()); } function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { if (0 <= profilerStartTime) { - var elapsedTime = now$1() - profilerStartTime; + var elapsedTime = now() - profilerStartTime; fiber.actualDuration += elapsedTime; overrideBaseTime && (fiber.selfBaseDuration = elapsedTime); profilerStartTime = -1; @@ -7588,7 +7588,7 @@ function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { } function recordLayoutEffectDuration(fiber) { if (0 <= layoutEffectStartTime) { - var elapsedTime = now$1() - layoutEffectStartTime; + var elapsedTime = now() - layoutEffectStartTime; layoutEffectStartTime = -1; for (fiber = fiber.return; null !== fiber; ) { switch (fiber.tag) { @@ -7605,7 +7605,7 @@ function recordLayoutEffectDuration(fiber) { } function recordPassiveEffectDuration(fiber) { if (0 <= passiveEffectStartTime) { - var elapsedTime = now$1() - passiveEffectStartTime; + var elapsedTime = now() - passiveEffectStartTime; passiveEffectStartTime = -1; for (fiber = fiber.return; null !== fiber; ) { switch (fiber.tag) { @@ -7623,7 +7623,7 @@ function recordPassiveEffectDuration(fiber) { } } function startLayoutEffectTimer() { - layoutEffectStartTime = now$1(); + layoutEffectStartTime = now(); } function transferActualDuration(fiber) { for (var child = fiber.child; child; ) @@ -7669,7 +7669,7 @@ var classComponentUpdater = { update = createUpdate(eventTime, lane); update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); + payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); @@ -7683,7 +7683,7 @@ var classComponentUpdater = { update.tag = 1; update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); - payload = enqueueUpdate$1(inst, update, lane); + payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane, eventTime), entangleTransitions(payload, inst, lane)); @@ -7696,7 +7696,7 @@ var classComponentUpdater = { update = createUpdate(eventTime, lane); update.tag = 2; void 0 !== callback && null !== callback && (update.callback = callback); - callback = enqueueUpdate$1(inst, update, lane); + callback = enqueueUpdate(inst, update, lane); null !== callback && (scheduleUpdateOnFiber(callback, inst, lane, eventTime), entangleTransitions(callback, inst, lane)); @@ -7886,7 +7886,7 @@ function markSuspenseBoundaryShouldCapture( ? (sourceFiber.tag = 17) : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 2))), + enqueueUpdate(sourceFiber, returnFiber, 2))), (sourceFiber.lanes |= 2)), suspenseBoundary ); @@ -8167,7 +8167,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef(current, workInProgress); + markRef$1(current, workInProgress); if ( "hidden" === nextProps.mode || "unstable-defer-without-hiding" === nextProps.mode || @@ -8260,7 +8260,7 @@ function deferHiddenOffscreenComponent( propagateParentContextChanges(current, workInProgress, renderLanes, !0); return null; } -function markRef(current, workInProgress) { +function markRef$1(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -8527,7 +8527,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef(current, workInProgress); + markRef$1(current, workInProgress); hasContext = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !hasContext) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); @@ -9273,13 +9273,13 @@ function attemptEarlyBailoutIfNoScheduledUpdate( return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } var valueCursor = createCursor(null), - currentlyRenderingFiber$1 = null, + currentlyRenderingFiber = null, lastContextDependency = null, lastFullyObservedContext = null; function resetContextDependencies() { lastFullyObservedContext = lastContextDependency = - currentlyRenderingFiber$1 = + currentlyRenderingFiber = null; } function pushProvider(providerFiber, context, nextValue) { @@ -9493,7 +9493,7 @@ function checkIfContextChanged(currentDependencies) { return !1; } function prepareToReadContext(workInProgress, renderLanes) { - currentlyRenderingFiber$1 = workInProgress; + currentlyRenderingFiber = workInProgress; lastFullyObservedContext = lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && @@ -9510,15 +9510,14 @@ function readContext(context) { ((context = { context: context, memoizedValue: value, next: null }), null === lastContextDependency) ) { - if (null === currentlyRenderingFiber$1) + if (null === currentlyRenderingFiber) throw Error(formatProdErrorMessage(308)); lastContextDependency = context; - currentlyRenderingFiber$1.dependencies = { + currentlyRenderingFiber.dependencies = { lanes: 0, firstContext: context }; - enableLazyContextPropagation && - (currentlyRenderingFiber$1.flags |= 524288); + enableLazyContextPropagation && (currentlyRenderingFiber.flags |= 524288); } else lastContextDependency = lastContextDependency.next = context; return value; } @@ -9541,7 +9540,7 @@ var AbortControllerLocal = }; }, scheduleCallback$1 = Scheduler.unstable_scheduleCallback, - NormalPriority$1 = Scheduler.unstable_NormalPriority, + NormalPriority = Scheduler.unstable_NormalPriority, CacheContext = { $$typeof: REACT_CONTEXT_TYPE, Consumer: null, @@ -9562,11 +9561,11 @@ function createCache() { function releaseCache(cache) { cache.refCount--; 0 === cache.refCount && - scheduleCallback$1(NormalPriority$1, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } -var ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, +var ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, resumedCache = createCursor(null), transitionStack = createCursor(null); function peekCacheFromPool() { @@ -9686,7 +9685,7 @@ function DO_NOT_USE_queryFirstNode(fn) { ? collectFirstScopedNodeFromChildren(currentFiber, fn) : null; } -function containsNode$1(node) { +function containsNode(node) { for (node = getClosestInstanceFromNode(node) || null; null !== node; ) { if (21 === node.tag && node.stateNode === this) return !0; node = node.return; @@ -9705,13 +9704,10 @@ function getChildContextValues(context) { function markUpdate(workInProgress) { workInProgress.flags |= 4; } -function markRef$1(workInProgress) { +function markRef(workInProgress) { workInProgress.flags |= 2097664; } -var appendAllChildren, - updateHostContainer, - updateHostComponent$1, - updateHostText$1; +var appendAllChildren, updateHostContainer, updateHostComponent, updateHostText; appendAllChildren = function (parent, workInProgress) { for (var node = workInProgress.child; null !== node; ) { if (5 === node.tag || 6 === node.tag) parent.appendChild(node.stateNode); @@ -9730,15 +9726,15 @@ appendAllChildren = function (parent, workInProgress) { } }; updateHostContainer = function () {}; -updateHostComponent$1 = function (current, workInProgress, type, newProps) { +updateHostComponent = function (current, workInProgress, type, newProps) { var oldProps = current.memoizedProps; if (oldProps !== newProps) { current = workInProgress.stateNode; var updatePayload = null; switch (type) { case "input": - oldProps = getHostProps(current, oldProps); - newProps = getHostProps(current, newProps); + oldProps = getHostProps$2(current, oldProps); + newProps = getHostProps$2(current, newProps); updatePayload = []; break; case "select": @@ -9747,14 +9743,14 @@ updateHostComponent$1 = function (current, workInProgress, type, newProps) { updatePayload = []; break; case "textarea": - oldProps = getHostProps$2(current, oldProps); - newProps = getHostProps$2(current, newProps); + oldProps = getHostProps(current, oldProps); + newProps = getHostProps(current, newProps); updatePayload = []; break; default: "function" !== typeof oldProps.onClick && "function" === typeof newProps.onClick && - (current.onclick = noop); + (current.onclick = noop$1); } assertValidProps(type, newProps); var styleName; @@ -9846,7 +9842,7 @@ updateHostComponent$1 = function (current, workInProgress, type, newProps) { markUpdate(workInProgress); } }; -updateHostText$1 = function (current, workInProgress, oldText, newText) { +updateHostText = function (current, workInProgress, oldText, newText) { oldText !== newText && markUpdate(workInProgress); }; function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { @@ -9864,14 +9860,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$140 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$140 = lastTailNode), + for (var lastTailNode$139 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$139 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$140 + null === lastTailNode$139 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$140.sibling = null); + : (lastTailNode$139.sibling = null); } } function bubbleProperties(completedWork) { @@ -9883,53 +9879,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$142 = completedWork.selfBaseDuration, - child$143 = completedWork.child; - null !== child$143; + var treeBaseDuration$141 = completedWork.selfBaseDuration, + child$142 = completedWork.child; + null !== child$142; ) - (newChildLanes |= child$143.lanes | child$143.childLanes), - (subtreeFlags |= child$143.subtreeFlags & 14680064), - (subtreeFlags |= child$143.flags & 14680064), - (treeBaseDuration$142 += child$143.treeBaseDuration), - (child$143 = child$143.sibling); - completedWork.treeBaseDuration = treeBaseDuration$142; + (newChildLanes |= child$142.lanes | child$142.childLanes), + (subtreeFlags |= child$142.subtreeFlags & 14680064), + (subtreeFlags |= child$142.flags & 14680064), + (treeBaseDuration$141 += child$142.treeBaseDuration), + (child$142 = child$142.sibling); + completedWork.treeBaseDuration = treeBaseDuration$141; } else for ( - treeBaseDuration$142 = completedWork.child; - null !== treeBaseDuration$142; + treeBaseDuration$141 = completedWork.child; + null !== treeBaseDuration$141; ) (newChildLanes |= - treeBaseDuration$142.lanes | treeBaseDuration$142.childLanes), - (subtreeFlags |= treeBaseDuration$142.subtreeFlags & 14680064), - (subtreeFlags |= treeBaseDuration$142.flags & 14680064), - (treeBaseDuration$142.return = completedWork), - (treeBaseDuration$142 = treeBaseDuration$142.sibling); + treeBaseDuration$141.lanes | treeBaseDuration$141.childLanes), + (subtreeFlags |= treeBaseDuration$141.subtreeFlags & 14680064), + (subtreeFlags |= treeBaseDuration$141.flags & 14680064), + (treeBaseDuration$141.return = completedWork), + (treeBaseDuration$141 = treeBaseDuration$141.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$142 = completedWork.actualDuration; - child$143 = completedWork.selfBaseDuration; + treeBaseDuration$141 = completedWork.actualDuration; + child$142 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$142 += child.actualDuration), - (child$143 += child.treeBaseDuration), + (treeBaseDuration$141 += child.actualDuration), + (child$142 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$142; - completedWork.treeBaseDuration = child$143; + completedWork.actualDuration = treeBaseDuration$141; + completedWork.treeBaseDuration = child$142; } else for ( - treeBaseDuration$142 = completedWork.child; - null !== treeBaseDuration$142; + treeBaseDuration$141 = completedWork.child; + null !== treeBaseDuration$141; ) (newChildLanes |= - treeBaseDuration$142.lanes | treeBaseDuration$142.childLanes), - (subtreeFlags |= treeBaseDuration$142.subtreeFlags), - (subtreeFlags |= treeBaseDuration$142.flags), - (treeBaseDuration$142.return = completedWork), - (treeBaseDuration$142 = treeBaseDuration$142.sibling); + treeBaseDuration$141.lanes | treeBaseDuration$141.childLanes), + (subtreeFlags |= treeBaseDuration$141.subtreeFlags), + (subtreeFlags |= treeBaseDuration$141.flags), + (treeBaseDuration$141.return = completedWork), + (treeBaseDuration$141 = treeBaseDuration$141.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -9989,12 +9985,12 @@ function completeWork(current, workInProgress, renderLanes) { case 26: return ( (current ? current.ref : null) !== workInProgress.ref && - markRef$1(workInProgress), + markRef(workInProgress), null === current || current.memoizedState !== workInProgress.memoizedState ? markUpdate(workInProgress) : null === workInProgress.memoizedState && - updateHostComponent$1( + updateHostComponent( current, workInProgress, workInProgress.type, @@ -10008,8 +10004,8 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes = rootInstanceStackCursor.current; var type = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - updateHostComponent$1(current, workInProgress, type, newProps), - current.ref !== workInProgress.ref && markRef$1(workInProgress); + updateHostComponent(current, workInProgress, type, newProps), + current.ref !== workInProgress.ref && markRef(workInProgress); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -10026,7 +10022,7 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes )), markUpdate(workInProgress)); - null !== workInProgress.ref && markRef$1(workInProgress); + null !== workInProgress.ref && markRef(workInProgress); } bubbleProperties(workInProgress); return null; @@ -10034,8 +10030,8 @@ function completeWork(current, workInProgress, renderLanes) { popHostContext(workInProgress); renderLanes = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - updateHostComponent$1(current, workInProgress, renderLanes, newProps), - current.ref !== workInProgress.ref && markRef$1(workInProgress); + updateHostComponent(current, workInProgress, renderLanes, newProps), + current.ref !== workInProgress.ref && markRef(workInProgress); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -10075,13 +10071,13 @@ function completeWork(current, workInProgress, renderLanes) { } current && markUpdate(workInProgress); } - null !== workInProgress.ref && markRef$1(workInProgress); + null !== workInProgress.ref && markRef(workInProgress); } bubbleProperties(workInProgress); return null; case 6: if (current && null != workInProgress.stateNode) - updateHostText$1( + updateHostText( current, workInProgress, current.memoizedProps, @@ -10188,11 +10184,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$156 = null; + var cache$155 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$156 = newProps.memoizedState.cachePool.pool); - cache$156 !== type && (newProps.flags |= 2048); + (cache$155 = newProps.memoizedState.cachePool.pool); + cache$155 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -10230,8 +10226,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$156 = type.rendering; - if (null === cache$156) + cache$155 = type.rendering; + if (null === cache$155) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10239,11 +10235,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$156 = findFirstSuspended(current); - if (null !== cache$156) { + cache$155 = findFirstSuspended(current); + if (null !== cache$155) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$156.updateQueue; + current = cache$155.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -10261,7 +10257,7 @@ function completeWork(current, workInProgress, renderLanes) { current = current.sibling; } null !== type.tail && - now() > workInProgressRootRenderTargetTime && + now$1() > workInProgressRootRenderTargetTime && ((workInProgress.flags |= 128), (newProps = !0), cutOffTailIfNeeded(type, !1), @@ -10269,7 +10265,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$156)), null !== current)) { + if (((current = findFirstSuspended(cache$155)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10280,12 +10276,12 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$156.alternate && + !cache$155.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; } else - 2 * now() - type.renderingStartTime > + 2 * now$1() - type.renderingStartTime > workInProgressRootRenderTargetTime && 1073741824 !== renderLanes && ((workInProgress.flags |= 128), @@ -10293,20 +10289,20 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 8388608)); type.isBackwards - ? ((cache$156.sibling = workInProgress.child), - (workInProgress.child = cache$156)) + ? ((cache$155.sibling = workInProgress.child), + (workInProgress.child = cache$155)) : ((current = type.last), null !== current - ? (current.sibling = cache$156) - : (workInProgress.child = cache$156), - (type.last = cache$156)); + ? (current.sibling = cache$155) + : (workInProgress.child = cache$155), + (type.last = cache$155)); } if (null !== type.tail) return ( (workInProgress = type.tail), (type.rendering = workInProgress), (type.tail = workInProgress.sibling), - (type.renderingStartTime = now()), + (type.renderingStartTime = now$1()), (workInProgress.sibling = null), (current = suspenseStackCursor.current), push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1), @@ -10320,15 +10316,15 @@ function completeWork(current, workInProgress, renderLanes) { ? ((current = { DO_NOT_USE_queryAllNodes: DO_NOT_USE_queryAllNodes, DO_NOT_USE_queryFirstNode: DO_NOT_USE_queryFirstNode, - containsNode: containsNode$1, + containsNode: containsNode, getChildContextValues: getChildContextValues }), (workInProgress.stateNode = current), (current[internalInstanceKey] = workInProgress), null !== workInProgress.ref && - (markRef$1(workInProgress), markUpdate(workInProgress))) + (markRef(workInProgress), markUpdate(workInProgress))) : (null !== workInProgress.ref && markUpdate(workInProgress), - current.ref !== workInProgress.ref && markRef$1(workInProgress)), + current.ref !== workInProgress.ref && markRef(workInProgress)), bubbleProperties(workInProgress), null ); @@ -10590,8 +10586,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$176) { - captureCommitPhaseError(current, nearestMountedAncestor, error$176); + } catch (error$170) { + captureCommitPhaseError(current, nearestMountedAncestor, error$170); } else ref.current = null; } @@ -10902,11 +10898,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$178 = commitTime, + var commitTime$172 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$178); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$172); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -10933,8 +10929,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$180) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$180); + } catch (error$174) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$174); } } function commitClassCallbacks(finishedWork) { @@ -11033,11 +11029,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$181) { + } catch (error$175) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$181 + error$175 ); } else { @@ -11054,11 +11050,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$182) { + } catch (error$176) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$182 + error$176 ); } recordLayoutEffectDuration(finishedWork); @@ -11069,11 +11065,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$183) { + } catch (error$177) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$183 + error$177 ); } } @@ -11400,7 +11396,7 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { (parent = parent._reactRootContainer), (null !== parent && void 0 !== parent) || null !== before.onclick || - (before.onclick = noop)); + (before.onclick = noop$1)); else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), @@ -11772,22 +11768,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$198) { + } catch (error$192) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$198 + error$192 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$199) { + } catch (error$193) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$199 + error$193 ); } } @@ -11980,11 +11976,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { attributeName ), (propValue[internalPropsKey] = attributeName); - } catch (error$200) { + } catch (error$194) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$200 + error$194 ); } break; @@ -12020,8 +12016,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { propName = finishedWork.stateNode; try { setTextContent(propName, ""); - } catch (error$201) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$201); + } catch (error$195) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$195); } } if ( @@ -12038,8 +12034,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, hoistableRoot, root, current, propName), (flags[internalPropsKey] = propName); - } catch (error$204) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$204); + } catch (error$198) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$198); } break; case 6: @@ -12052,8 +12048,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$205) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$205); + } catch (error$199) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$199); } } break; @@ -12066,8 +12062,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$206) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$206); + } catch (error$200) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$200); } break; case 4: @@ -12087,7 +12083,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== current.memoizedState && (null === current.alternate || null === current.alternate.memoizedState) && - (globalMostRecentFallbackTime = now()); + (globalMostRecentFallbackTime = now$1()); if (flags & 4) { try { if (null !== finishedWork.memoizedState) { @@ -12097,8 +12093,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$208) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$208); + } catch (error$202) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$202); } current = finishedWork.updateQueue; null !== current && @@ -12176,11 +12172,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = propName ? "" : root.memoizedProps; - } catch (error$188) { + } catch (error$182) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$188 + error$182 ); } } else if ( @@ -12255,21 +12251,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$189 = JSCompiler_inline_result.stateNode; + var parent$183 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$189, ""), + (setTextContent(parent$183, ""), (JSCompiler_inline_result.flags &= -33)); - var before$190 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$190, parent$189); + var before$184 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$184, parent$183); break; case 3: case 4: - var parent$191 = JSCompiler_inline_result.stateNode.containerInfo, - before$192 = getHostSibling(finishedWork); + var parent$185 = JSCompiler_inline_result.stateNode.containerInfo, + before$186 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$192, - parent$191 + before$186, + parent$185 ); break; default: @@ -12451,7 +12447,7 @@ function recursivelyTraverseReappearLayoutEffects( } function commitHookPassiveMountEffects(finishedWork, hookFlags) { if (shouldProfile(finishedWork)) { - passiveEffectStartTime = now$1(); + passiveEffectStartTime = now(); try { commitHookEffectListMount(hookFlags, finishedWork); } catch (error) { @@ -12461,8 +12457,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$214) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$214); + } catch (error$208) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$208); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -12761,9 +12757,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$219 = finishedWork.stateNode; + var instance$213 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$219._visibility & 4 + ? instance$213._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12776,7 +12772,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$219._visibility |= 4), + : ((instance$213._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12784,7 +12780,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$219._visibility |= 4), + : ((instance$213._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12797,7 +12793,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$219 + instance$213 ); break; case 24: @@ -12888,7 +12884,7 @@ function commitHookPassiveUnmountEffects( hookFlags ) { shouldProfile(finishedWork) - ? ((passiveEffectStartTime = now$1()), + ? ((passiveEffectStartTime = now()), commitHookEffectListUnmount( hookFlags, finishedWork, @@ -13103,10 +13099,10 @@ function schedulePostPaintCallback(callback) { } var ceil = Math.ceil, PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, - ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentCache = ReactSharedInternals.ReactCurrentCache, - ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, - ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig, + ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, + ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, executionContext = 0, workInProgressRoot = null, workInProgress = null, @@ -13114,7 +13110,7 @@ var ceil = Math.ceil, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidAttachPingListener = !1, - renderLanes$1 = 0, + renderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootSkippedLanes = 0, @@ -13189,7 +13185,7 @@ function addTransitionProgressCallbackToPendingTransition( )); } function resetRenderTimer() { - workInProgressRootRenderTargetTime = now() + 500; + workInProgressRootRenderTargetTime = now$1() + 500; } var hasUncaughtError = !1, firstUncaughtError = null, @@ -13207,10 +13203,10 @@ var hasUncaughtError = !1, currentEventTransitionLane = 0; function requestEventTime() { return 0 !== (executionContext & 6) - ? now() + ? now$1() : -1 !== currentEventTime ? currentEventTime - : (currentEventTime = now()); + : (currentEventTime = now$1()); } function requestUpdateLane(fiber) { if (0 === (fiber.mode & 1)) return 2; @@ -13220,7 +13216,7 @@ function requestUpdateLane(fiber) { 0 !== workInProgressRootRenderLanes ) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; - if (null !== ReactCurrentBatchConfig$2.transition) + if (null !== ReactCurrentBatchConfig$1.transition) return ( 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()), @@ -13236,7 +13232,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { 2 === workInProgressSuspendedReason && root === workInProgressRoot && (prepareFreshStack(root, 0), - markRootSuspended$1(root, workInProgressRootRenderLanes)); + markRootSuspended(root, workInProgressRootRenderLanes)); markRootUpdated(root, lane, eventTime); if (0 === (executionContext & 2) || root !== workInProgressRoot) { isDevToolsPresent && addFiberToLanesMap(root, fiber, lane); @@ -13258,10 +13254,10 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { } if ( enableTransitionTracing && - ((current = ReactCurrentBatchConfig$3.transition), + ((current = ReactCurrentBatchConfig.transition), null !== current && null != current.name && - (-1 === current.startTime && (current.startTime = now()), + (-1 === current.startTime && (current.startTime = now$1()), enableTransitionTracing)) ) { id = root.transitionLanes; @@ -13275,7 +13271,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { if (deferRenderPhaseUpdateToNextBatch || 0 === (executionContext & 2)) workInProgressRootInterleavedUpdatedLanes |= lane; 4 === workInProgressRootExitStatus && - markRootSuspended$1(root, workInProgressRootRenderLanes); + markRootSuspended(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); 2 === lane && @@ -13292,14 +13288,14 @@ function ensureRootIsScheduled(root, currentTime) { root === workInProgressRoot ? workInProgressRootRenderLanes : 0 ); if (0 === nextLanes) - null !== existingCallbackNode && cancelCallback(existingCallbackNode), + null !== existingCallbackNode && cancelCallback$1(existingCallbackNode), (root.callbackNode = null), (root.callbackPriority = 0); else if ( ((currentTime = nextLanes & -nextLanes), root.callbackPriority !== currentTime) ) { - null != existingCallbackNode && cancelCallback(existingCallbackNode); + null != existingCallbackNode && cancelCallback$1(existingCallbackNode); if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) @@ -13317,15 +13313,15 @@ function ensureRootIsScheduled(root, currentTime) { existingCallbackNode = UserBlockingPriority; break; case 32: - existingCallbackNode = NormalPriority; + existingCallbackNode = NormalPriority$1; break; case 536870912: existingCallbackNode = IdlePriority; break; default: - existingCallbackNode = NormalPriority; + existingCallbackNode = NormalPriority$1; } - existingCallbackNode = scheduleCallback$2( + existingCallbackNode = scheduleCallback( existingCallbackNode, performConcurrentWorkOnRoot.bind(null, root) ); @@ -13372,11 +13368,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), - ensureRootIsScheduled(root, now()), + markRootSuspended(root, lanes), + ensureRootIsScheduled(root, now$1()), originalCallbackNode) ); - if (6 === didTimeout) markRootSuspended$1(root, lanes); + if (6 === didTimeout) markRootSuspended(root, lanes); else { errorRetryLanes = !includesBlockingLane(root, lanes); originallyAttemptedLanes = root.current.alternate; @@ -13387,24 +13383,24 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$228 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$222 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$228 && - ((lanes = errorRetryLanes$228), + 0 !== errorRetryLanes$222 && + ((lanes = errorRetryLanes$222), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$228 + errorRetryLanes$222 ))); } if (1 === didTimeout) throw ( ((originalCallbackNode = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), - ensureRootIsScheduled(root, now()), + markRootSuspended(root, lanes), + ensureRootIsScheduled(root, now$1()), originalCallbackNode) ); } @@ -13422,10 +13418,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ); break; case 3: - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if ( (lanes & 125829120) === lanes && - ((lanes = globalMostRecentFallbackTime + 500 - now()), 10 < lanes) + ((lanes = globalMostRecentFallbackTime + 500 - now$1()), 10 < lanes) ) { if (0 !== getNextLanes(root, 0)) break; root.timeoutHandle = scheduleTimeout( @@ -13446,18 +13442,18 @@ function performConcurrentWorkOnRoot(root, didTimeout) { ); break; case 4: - markRootSuspended$1(root, lanes); + markRootSuspended(root, lanes); if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$228 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$228), - (errorRetryLanes$228 = didTimeout[errorRetryLanes$228]), - errorRetryLanes$228 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$228), + (errorRetryLanes$222 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$222), + (errorRetryLanes$222 = didTimeout[errorRetryLanes$222]), + errorRetryLanes$222 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$222), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; - lanes = now() - lanes; + lanes = now$1() - lanes; lanes = (120 > lanes ? 120 @@ -13502,7 +13498,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } } } - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return root.callbackNode === originalCallbackNode ? 2 === workInProgressSuspendedReason && workInProgressRoot === root ? ((root.callbackPriority = 0), (root.callbackNode = null)) @@ -13573,7 +13569,7 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended$1(root, suspendedLanes) { +function markRootSuspended(root, suspendedLanes) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; @@ -13591,7 +13587,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now$1()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -13611,13 +13607,13 @@ function performSyncWorkOnRoot(root) { throw ( ((exitStatus = workInProgressRootFatalError), prepareFreshStack(root, 0), - markRootSuspended$1(root, lanes), - ensureRootIsScheduled(root, now()), + markRootSuspended(root, lanes), + ensureRootIsScheduled(root, now$1()), exitStatus) ); if (6 === exitStatus) return ( - markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), null + markRootSuspended(root, lanes), ensureRootIsScheduled(root, now$1()), null ); root.finishedWork = root.current.alternate; root.finishedLanes = lanes; @@ -13626,10 +13622,10 @@ function performSyncWorkOnRoot(root) { workInProgressRootRecoverableErrors, workInProgressTransitions ); - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); return null; } -function batchedUpdates$1(fn, a) { +function batchedUpdates(fn, a) { var prevExecutionContext = executionContext; executionContext |= 1; try { @@ -13641,25 +13637,25 @@ function batchedUpdates$1(fn, a) { includesLegacySyncCallbacks && flushSyncCallbacks()); } } -function flushSync(fn) { +function flushSync$1(fn) { null !== rootWithPendingPassiveEffects && 0 === rootWithPendingPassiveEffects.tag && 0 === (executionContext & 6) && flushPassiveEffects(); var prevExecutionContext = executionContext; executionContext |= 1; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { if ( - ((ReactCurrentBatchConfig$3.transition = null), + ((ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), fn) ) return fn(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (executionContext = prevExecutionContext), 0 === (executionContext & 6) && flushSyncCallbacks(); } @@ -13687,7 +13683,7 @@ function prepareFreshStack(root, lanes) { resetWorkInProgressStack(); workInProgressRoot = root; workInProgress = root = createWorkInProgress(root.current, null); - workInProgressRootRenderLanes = renderLanes$1 = lanes; + workInProgressRootRenderLanes = renderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; workInProgressRootDidAttachPingListener = !1; @@ -13704,7 +13700,7 @@ function prepareFreshStack(root, lanes) { } function handleThrow(root, thrownValue) { ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; if (thrownValue === SuspenseException) { if (null === suspendedThenable) throw Error(formatProdErrorMessage(459)); thrownValue = suspendedThenable; @@ -13769,10 +13765,10 @@ function shouldAttemptToSuspendUntilDataResolves() { function pushDispatcher(container) { container = getHoistableRoot(container); lastCurrentDocument = container.ownerDocument || container; - previousDispatcher = Dispatcher.current; - Dispatcher.current = ReactDOMClientDispatcher; - container = ReactCurrentDispatcher$2.current; - ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + previousDispatcher = Dispatcher$1.current; + Dispatcher$1.current = ReactDOMClientDispatcher; + container = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = ContextOnlyDispatcher; return null === container ? ContextOnlyDispatcher : container; } function pushCacheDispatcher() { @@ -13785,7 +13781,7 @@ function renderDidSuspendDelayIfPossible() { null === workInProgressRoot || (0 === (workInProgressRootSkippedLanes & 268435455) && 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) || - markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes); } function renderRootSync(root, lanes) { var prevExecutionContext = executionContext; @@ -13823,15 +13819,15 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$231) { - handleThrow(root, thrownValue$231); + } catch (thrownValue$225) { + handleThrow(root, thrownValue$225); } while (1); resetContextDependencies(); executionContext = prevExecutionContext; - Dispatcher.current = previousDispatcher; + Dispatcher$1.current = previousDispatcher; previousDispatcher = null; - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; ReactCurrentCache.current = prevCacheDispatcher; if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); enableSchedulingProfiler && markRenderStopped(); @@ -13882,7 +13878,7 @@ function renderRootConcurrent(root, lanes) { break; } lanes = function () { - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); }; memoizedUpdaters.then(lanes, lanes); break a; @@ -13912,14 +13908,14 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$233) { - handleThrow(root, thrownValue$233); + } catch (thrownValue$227) { + handleThrow(root, thrownValue$227); } while (1); resetContextDependencies(); - Dispatcher.current = previousDispatcher; + Dispatcher$1.current = previousDispatcher; previousDispatcher = null; - ReactCurrentDispatcher$2.current = prevDispatcher; + ReactCurrentDispatcher.current = prevDispatcher; ReactCurrentCache.current = prevCacheDispatcher; executionContext = prevExecutionContext; if (null !== workInProgress) @@ -13945,14 +13941,14 @@ function performUnitOfWork(unitOfWork) { var current = unitOfWork.alternate; 0 !== (unitOfWork.mode & 2) ? (startProfilerTimer(unitOfWork), - (current = beginWork$1(current, unitOfWork, renderLanes$1)), + (current = beginWork(current, unitOfWork, renderLanes)), stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !0)) - : (current = beginWork$1(current, unitOfWork, renderLanes$1)); + : (current = beginWork(current, unitOfWork, renderLanes)); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) : (workInProgress = current); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function replaySuspendedUnitOfWork(unitOfWork) { var current = unitOfWork.alternate, @@ -13991,15 +13987,15 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetHooksOnUnwind(), unwindInterruptedWork(current, unitOfWork), (unitOfWork = workInProgress = - resetWorkInProgress(unitOfWork, renderLanes$1)), - (current = beginWork$1(current, unitOfWork, renderLanes$1)); + resetWorkInProgress(unitOfWork, renderLanes)), + (current = beginWork(current, unitOfWork, renderLanes)); } isProfilingMode && stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !0); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) : (workInProgress = current); - ReactCurrentOwner$2.current = null; + ReactCurrentOwner.current = null; } function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { resetContextDependencies(); @@ -14173,9 +14169,9 @@ function completeUnitOfWork(unitOfWork) { if (0 === (completedWork.flags & 32768)) { if ( (0 === (completedWork.mode & 2) - ? (current = completeWork(current, completedWork, renderLanes$1)) + ? (current = completeWork(current, completedWork, renderLanes)) : (startProfilerTimer(completedWork), - (current = completeWork(current, completedWork, renderLanes$1)), + (current = completeWork(current, completedWork, renderLanes)), stopProfilerTimerIfRunningAndRecordDelta(completedWork, !1)), null !== current) ) { @@ -14217,9 +14213,9 @@ function completeUnitOfWork(unitOfWork) { } function commitRoot(root, recoverableErrors, transitions) { var previousUpdateLanePriority = currentUpdatePriority, - prevTransition = ReactCurrentBatchConfig$3.transition; + prevTransition = ReactCurrentBatchConfig.transition; try { - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), commitRootImpl( root, @@ -14228,7 +14224,7 @@ function commitRoot(root, recoverableErrors, transitions) { previousUpdateLanePriority ); } finally { - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (currentUpdatePriority = previousUpdateLanePriority); } return null; @@ -14268,28 +14264,28 @@ function commitRootImpl( ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = remainingLanes), (pendingPassiveTransitions = transitions), - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; })); transitions = 0 !== (finishedWork.flags & 15990); if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactCurrentBatchConfig$3.transition; - ReactCurrentBatchConfig$3.transition = null; + transitions = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = null; var previousPriority = currentUpdatePriority; currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; - ReactCurrentOwner$2.current = null; - var shouldFireAfterActiveInstanceBlur$236 = commitBeforeMutationEffects( + ReactCurrentOwner.current = null; + var shouldFireAfterActiveInstanceBlur$230 = commitBeforeMutationEffects( root, finishedWork ); - commitTime = now$1(); + commitTime = now(); enableProfilerNestedUpdateScheduledHook && (rootCommittingMutationOrLayoutEffects = root); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$236 && + shouldFireAfterActiveInstanceBlur$230 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -14313,8 +14309,8 @@ function commitRootImpl( requestPaint(); executionContext = prevExecutionContext; currentUpdatePriority = previousPriority; - ReactCurrentBatchConfig$3.transition = transitions; - } else (root.current = finishedWork), (commitTime = now$1()); + ReactCurrentBatchConfig.transition = transitions; + } else (root.current = finishedWork), (commitTime = now()); rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -14324,7 +14320,7 @@ function commitRootImpl( 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); - ensureRootIsScheduled(root, now()); + ensureRootIsScheduled(root, now$1()); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -14363,7 +14359,7 @@ function commitRootImpl( var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks; null !== prevPendingTransitionCallbacks ? ((currentPendingTransitionCallbacks = null), - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, endTime, @@ -14383,23 +14379,23 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$237 = rootWithPendingPassiveEffects, + var root$231 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); renderPriority = 32 > renderPriority ? 32 : renderPriority; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { return ( - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = renderPriority), flushPassiveEffectsImpl() ); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), - releaseRootPooledCache(root$237, remainingLanes); + (ReactCurrentBatchConfig.transition = prevTransition), + releaseRootPooledCache(root$231, remainingLanes); } } return !1; @@ -14408,7 +14404,7 @@ function enqueuePendingPassiveProfilerEffect(fiber) { pendingPassiveProfilerEffects.push(fiber); rootDoesHavePassiveEffects || ((rootDoesHavePassiveEffects = !0), - scheduleCallback$2(NormalPriority, function () { + scheduleCallback(NormalPriority$1, function () { flushPassiveEffects(); return null; })); @@ -14450,7 +14446,7 @@ function flushPassiveEffectsImpl() { null !== prevRootTransitionCallbacks && null !== prevEndTime && ((currentEndTime = currentPendingTransitionCallbacks = null), - scheduleCallback$2(IdlePriority, function () { + scheduleCallback(IdlePriority, function () { processTransitionCallbacks( prevPendingTransitionCallbacks, prevEndTime, @@ -14470,7 +14466,7 @@ function flushPassiveEffectsImpl() { function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && (markRootUpdated(rootFiber, 2, sourceFiber), @@ -14509,7 +14505,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber, 2 ); - nearestMountedAncestor = enqueueUpdate$1( + nearestMountedAncestor = enqueueUpdate( nearestMountedAncestor, sourceFiber, 2 @@ -14552,7 +14548,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && - 500 > now() - globalMostRecentFallbackTime) + 500 > now$1() - globalMostRecentFallbackTime) ? 0 === (executionContext & 2) && prepareFreshStack(root, 0) : (workInProgressRootPingedLanes |= pingedLanes)); ensureRootIsScheduled(root, wakeable); @@ -14596,8 +14592,8 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { null !== retryCache && retryCache.delete(wakeable); retryTimedOutBoundary(boundaryFiber, retryLane); } -var beginWork$1; -beginWork$1 = function (current, workInProgress, renderLanes) { +var beginWork; +beginWork = function (current, workInProgress, renderLanes) { if (null !== current) if (current.memoizedProps !== workInProgress.pendingProps) didReceiveUpdate = !0; @@ -14826,7 +14822,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { return workInProgress; case 26: return ( - markRef(current, workInProgress), + markRef$1(current, workInProgress), (renderLanes = workInProgress.memoizedState = getResource( workInProgress.type, @@ -14873,7 +14869,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { Component, renderLanes )), - markRef(current, workInProgress), + markRef$1(current, workInProgress), workInProgress.child ); case 5: @@ -14889,7 +14885,7 @@ beginWork$1 = function (current, workInProgress, renderLanes) { : null !== prevState && shouldSetTextContent(Component, prevState) && (workInProgress.flags |= 32), - markRef(current, workInProgress), + markRef$1(current, workInProgress), reconcileChildren(current, workInProgress, root, renderLanes), workInProgress.child ); @@ -15140,8 +15136,8 @@ function restorePendingUpdaters(root, lanes) { addFiberToLanesMap(root, schedulingFiber, lanes); }); } -function scheduleCallback$2(priorityLevel, callback) { - return scheduleCallback(priorityLevel, callback); +function scheduleCallback(priorityLevel, callback) { + return scheduleCallback$2(priorityLevel, callback); } function FiberNode(tag, pendingProps, key, mode) { this.tag = tag; @@ -15549,7 +15545,7 @@ function createFiberRoot( initializeUpdateQueue(isStrictMode); return containerInfo; } -function createPortal(children, containerInfo, implementation) { +function createPortal$1(children, containerInfo, implementation) { var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { @@ -15576,7 +15572,7 @@ function updateContainer(element, container, parentComponent, callback) { container.payload = { element: element }; callback = void 0 === callback ? null : callback; null !== callback && (container.callback = callback); - element = enqueueUpdate$1(parentComponent, container, lane); + element = enqueueUpdate(parentComponent, container, lane); null !== element && (scheduleUpdateOnFiber(element, parentComponent, lane, eventTime), entangleTransitions(element, parentComponent, lane)); @@ -15596,7 +15592,7 @@ function markRetryLaneIfNotHydrated(fiber, retryLane) { function emptyFindFiberByHostInstance() { return null; } -var Dispatcher$1 = Internals.Dispatcher, +var Dispatcher = Internals.Dispatcher, defaultOnRecoverableError = "function" === typeof reportError ? reportError @@ -15618,7 +15614,7 @@ ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = if (null !== root) { this._internalRoot = null; var container = root.containerInfo; - flushSync(function () { + flushSync$1(function () { updateContainer(null, root, null, null); }); container[internalContainerInstanceKey] = null; @@ -15629,7 +15625,7 @@ function ReactDOMHydrationRoot(internalRoot) { } ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { if (target) { - var updatePriority = getCurrentUpdatePriority$1(); + var updatePriority = getCurrentUpdatePriority(); target = { blockedOn: null, target: target, priority: updatePriority }; for ( var i = 0; @@ -15676,18 +15672,18 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { _attemptSynchronousHydration = function (fiber) { switch (fiber.tag) { case 3: - var root$240 = fiber.stateNode; - if (root$240.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$240.pendingLanes); + var root$234 = fiber.stateNode; + if (root$234.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$234.pendingLanes); 0 !== lanes && - (markRootEntangled(root$240, lanes | 2), - ensureRootIsScheduled(root$240, now()), + (markRootEntangled(root$234, lanes | 2), + ensureRootIsScheduled(root$234, now$1()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); } break; case 13: - flushSync(function () { + flushSync$1(function () { var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); @@ -15697,7 +15693,7 @@ _attemptSynchronousHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 2); } }; -attemptDiscreteHydration = function (fiber) { +attemptDiscreteHydration$1 = function (fiber) { if (13 === fiber.tag) { var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { @@ -15707,7 +15703,7 @@ attemptDiscreteHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 2); } }; -attemptContinuousHydration = function (fiber) { +attemptContinuousHydration$1 = function (fiber) { if (13 === fiber.tag) { var root = enqueueConcurrentRenderForLane(fiber, 134217728); if (null !== root) { @@ -15717,7 +15713,7 @@ attemptContinuousHydration = function (fiber) { markRetryLaneIfNotHydrated(fiber, 134217728); } }; -attemptHydrationAtCurrentPriority = function (fiber) { +attemptHydrationAtCurrentPriority$1 = function (fiber) { if (13 === fiber.tag) { var lane = requestUpdateLane(fiber), root = enqueueConcurrentRenderForLane(fiber, lane); @@ -15728,14 +15724,14 @@ attemptHydrationAtCurrentPriority = function (fiber) { markRetryLaneIfNotHydrated(fiber, lane); } }; -getCurrentUpdatePriority$1 = function () { +getCurrentUpdatePriority = function () { return currentUpdatePriority; }; attemptHydrationAtPriority = runWithPriority; restoreImpl = function (domElement, tag, props) { switch (tag) { case "input": - updateWrapper(domElement, props); + updateWrapper$1(domElement, props); tag = props.name; if ("radio" === props.type && null != tag) { for (props = domElement; props.parentNode; ) props = props.parentNode; @@ -15748,33 +15744,33 @@ restoreImpl = function (domElement, tag, props) { var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) throw Error(formatProdErrorMessage(90)); updateValueIfChanged(otherNode); - updateWrapper(otherNode, otherProps); + updateWrapper$1(otherNode, otherProps); } } } break; case "textarea": - updateWrapper$1(domElement, props); + updateWrapper(domElement, props); break; case "select": (tag = props.value), null != tag && updateOptions(domElement, !!props.multiple, tag, !1); } }; -batchedUpdatesImpl = batchedUpdates$1; -flushSyncImpl = flushSync; +batchedUpdatesImpl = batchedUpdates; +flushSyncImpl = flushSync$1; Internals.Events = [ - getInstanceFromNode, + getInstanceFromNode$1, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, - batchedUpdates$1 + batchedUpdates ]; -var devToolsConfig$jscomp$inline_1785 = { +var devToolsConfig$jscomp$inline_1770 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-bc38a3dfa-20230220", + version: "18.3.0-www-modern-6b6d0617e-20230220", rendererPackageName: "react-dom" }; (function (internals) { @@ -15792,10 +15788,10 @@ var devToolsConfig$jscomp$inline_1785 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1785.bundleType, - version: devToolsConfig$jscomp$inline_1785.version, - rendererPackageName: devToolsConfig$jscomp$inline_1785.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1785.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1770.bundleType, + version: devToolsConfig$jscomp$inline_1770.version, + rendererPackageName: devToolsConfig$jscomp$inline_1770.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1770.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15812,21 +15808,21 @@ var devToolsConfig$jscomp$inline_1785 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1785.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1770.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-bc38a3dfa-20230220" + reconcilerVersion: "18.3.0-next-6b6d0617e-20230220" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function (children, container) { var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; if (!isValidContainer(container)) throw Error(formatProdErrorMessage(200)); - return createPortal(children, container, null, key); + return createPortal$1(children, container, null, key); }; exports.createRoot = function (container, options) { if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299)); @@ -15859,14 +15855,14 @@ exports.createRoot = function (container, options) { transitionCallbacks ); container[internalContainerInstanceKey] = options.current; - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); return new ReactDOMRoot(options); }; exports.flushSync = function (fn) { - return flushSync(fn); + return flushSync$1(fn); }; exports.hydrateRoot = function (container, initialChildren, options) { if (!isValidContainer(container)) throw Error(formatProdErrorMessage(405)); @@ -15908,11 +15904,7 @@ exports.hydrateRoot = function (container, initialChildren, options) { concurrentUpdatesByDefaultOverride ); identifierPrefix.callback = null; - enqueueUpdate$1( - options, - identifierPrefix, - concurrentUpdatesByDefaultOverride - ); + enqueueUpdate(options, identifierPrefix, concurrentUpdatesByDefaultOverride); initialChildren.current.lanes = concurrentUpdatesByDefaultOverride; markRootUpdated( initialChildren, @@ -15921,7 +15913,7 @@ exports.hydrateRoot = function (container, initialChildren, options) { ); ensureRootIsScheduled(initialChildren, isStrictMode); container[internalContainerInstanceKey] = initialChildren.current; - Dispatcher$1.current = ReactDOMClientDispatcher; + Dispatcher.current = ReactDOMClientDispatcher; listenToAllSupportedEvents(container); if (mutableSources) for (container = 0; container < mutableSources.length; container++) @@ -15947,7 +15939,7 @@ exports.preload = function () { var dispatcher = Internals.Dispatcher.current; dispatcher && dispatcher.preload.apply(this, arguments); }; -exports.unstable_batchedUpdates = batchedUpdates$1; +exports.unstable_batchedUpdates = batchedUpdates; exports.unstable_createEventHandle = function (type, options) { function eventHandle(target, callback) { if ("function" !== typeof callback) @@ -15980,21 +15972,21 @@ exports.unstable_createEventHandle = function (type, options) { exports.unstable_flushControlled = function (fn) { var prevExecutionContext = executionContext; executionContext |= 1; - var prevTransition = ReactCurrentBatchConfig$3.transition, + var prevTransition = ReactCurrentBatchConfig.transition, previousPriority = currentUpdatePriority; try { - (ReactCurrentBatchConfig$3.transition = null), + (ReactCurrentBatchConfig.transition = null), (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), - (ReactCurrentBatchConfig$3.transition = prevTransition), + (ReactCurrentBatchConfig.transition = prevTransition), (executionContext = prevExecutionContext), 0 === executionContext && (resetRenderTimer(), flushSyncCallbacks()); } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-bc38a3dfa-20230220"; +exports.version = "18.3.0-next-6b6d0617e-20230220"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 3f5b862188..7d2ca3d151 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-classic-bc38a3dfa-20230220"; +var ReactVersion = "18.3.0-www-classic-6b6d0617e-20230220"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -232,41 +232,15 @@ function checkHtmlStringCoercion(value) { // Re-export dynamic flags from the www version. var dynamicFeatureFlags = require("ReactFeatureFlags"); -var disableInputAttributeSyncing = - dynamicFeatureFlags.disableInputAttributeSyncing, - enableTrustedTypesIntegration = - dynamicFeatureFlags.enableTrustedTypesIntegration, - disableSchedulerTimeoutBasedOnReactExpirationTime = - dynamicFeatureFlags.disableSchedulerTimeoutBasedOnReactExpirationTime, - replayFailedUnitOfWorkWithInvokeGuardedCallback = - dynamicFeatureFlags.replayFailedUnitOfWorkWithInvokeGuardedCallback, - enableFilterEmptyStringAttributesDOM = +var enableFilterEmptyStringAttributesDOM = dynamicFeatureFlags.enableFilterEmptyStringAttributesDOM, - enableLegacyFBSupport = dynamicFeatureFlags.enableLegacyFBSupport, - deferRenderPhaseUpdateToNextBatch = - dynamicFeatureFlags.deferRenderPhaseUpdateToNextBatch, - enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - skipUnmountedBoundaries = dynamicFeatureFlags.skipUnmountedBoundaries, - enableUseRefAccessWarning = dynamicFeatureFlags.enableUseRefAccessWarning, disableNativeComponentFrames = dynamicFeatureFlags.disableNativeComponentFrames, - disableSchedulerTimeoutInWorkLoop = - dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableLazyContextPropagation = - dynamicFeatureFlags.enableLazyContextPropagation, - enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates, - enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane, - enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay = - dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableCustomElementPropertySupport = dynamicFeatureFlags.enableCustomElementPropertySupport; // On WWW, false is used for a new modern build. -var enableProfilerNestedUpdateScheduledHook = - dynamicFeatureFlags.enableProfilerNestedUpdateScheduledHook; var enableFloat = true; -var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; // Note: we'll want to remove this when we to userland implementation. - // $FlowFixMe[method-unbinding] var hasOwnProperty = Object.prototype.hasOwnProperty; @@ -984,17 +958,20 @@ var ariaProperties = { "aria-setsize": 0 }; -var warnedProperties = {}; -var rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); -var rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); +var warnedProperties$1 = {}; +var rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); +var rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); -function validateProperty(tagName, name) { +function validateProperty$1(tagName, name) { { - if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) { + if ( + hasOwnProperty.call(warnedProperties$1, name) && + warnedProperties$1[name] + ) { return true; } - if (rARIACamel.test(name)) { + if (rARIACamel$1.test(name)) { var ariaName = "aria-" + name.slice(4).toLowerCase(); var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName @@ -1007,7 +984,7 @@ function validateProperty(tagName, name) { name ); - warnedProperties[name] = true; + warnedProperties$1[name] = true; return true; } // aria-* attributes should be lowercase; suggest the lowercase version. @@ -1018,12 +995,12 @@ function validateProperty(tagName, name) { correctName ); - warnedProperties[name] = true; + warnedProperties$1[name] = true; return true; } } - if (rARIA.test(name)) { + if (rARIA$1.test(name)) { var lowerCasedName = name.toLowerCase(); var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName @@ -1031,7 +1008,7 @@ function validateProperty(tagName, name) { // DOM properties, then it is an invalid aria-* attribute. if (standardName == null) { - warnedProperties[name] = true; + warnedProperties$1[name] = true; return false; } // aria-* attributes should be lowercase; suggest the lowercase version. @@ -1042,7 +1019,7 @@ function validateProperty(tagName, name) { standardName ); - warnedProperties[name] = true; + warnedProperties$1[name] = true; return true; } } @@ -1056,7 +1033,7 @@ function warnInvalidARIAProps(type, props) { var invalidProps = []; for (var key in props) { - var isValid = validateProperty(type, key); + var isValid = validateProperty$1(type, key); if (!isValid) { invalidProps.push(key); @@ -1087,7 +1064,7 @@ function warnInvalidARIAProps(type, props) { } } -function validateProperties(type, props) { +function validateProperties$2(type, props) { if (isCustomComponent(type, props)) { return; } @@ -1620,20 +1597,17 @@ var possibleStandardNames = { zoomandpan: "zoomAndPan" }; -var validateProperty$1 = function () {}; +var validateProperty = function () {}; { - var warnedProperties$1 = {}; + var warnedProperties = {}; var EVENT_NAME_REGEX = /^on./; var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; - var rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); - var rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); + var rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); + var rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); - validateProperty$1 = function (tagName, name, value, eventRegistry) { - if ( - hasOwnProperty.call(warnedProperties$1, name) && - warnedProperties$1[name] - ) { + validateProperty = function (tagName, name, value, eventRegistry) { + if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) { return true; } @@ -1646,7 +1620,7 @@ var validateProperty$1 = function () {}; "are not needed/supported by React." ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } // We can't rely on the event system being injected on the server. @@ -1672,14 +1646,14 @@ var validateProperty$1 = function () {}; registrationName ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } if (EVENT_NAME_REGEX.test(name)) { error("Unknown event handler property `%s`. It will be ignored.", name); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } } else if (EVENT_NAME_REGEX.test(name)) { @@ -1694,11 +1668,11 @@ var validateProperty$1 = function () {}; ); } - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } // Let the ARIA attribute hook validate ARIA attributes - if (rARIA$1.test(name) || rARIACamel$1.test(name)) { + if (rARIA.test(name) || rARIACamel.test(name)) { return true; } @@ -1708,7 +1682,7 @@ var validateProperty$1 = function () {}; "For more information, lookup documentation on `dangerouslySetInnerHTML`." ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -1718,7 +1692,7 @@ var validateProperty$1 = function () {}; "Pass individual `aria-` attributes instead." ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -1734,7 +1708,7 @@ var validateProperty$1 = function () {}; typeof value ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -1745,7 +1719,7 @@ var validateProperty$1 = function () {}; name ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -1762,7 +1736,7 @@ var validateProperty$1 = function () {}; standardName ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } } else if (!isReserved && name !== lowerCasedName) { @@ -1778,7 +1752,7 @@ var validateProperty$1 = function () {}; lowerCasedName ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -1814,7 +1788,7 @@ var validateProperty$1 = function () {}; ); } - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } // Now that we've validated casing, do not validate // data types for reserved props @@ -1824,7 +1798,7 @@ var validateProperty$1 = function () {}; } // Warn when a known attribute is a bad type if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { - warnedProperties$1[name] = true; + warnedProperties[name] = true; return false; } // Warn when passing the strings 'false' or 'true' into a boolean prop @@ -1846,7 +1820,7 @@ var validateProperty$1 = function () {}; value ); - warnedProperties$1[name] = true; + warnedProperties[name] = true; return true; } @@ -1859,7 +1833,7 @@ var warnUnknownProperties = function (type, props, eventRegistry) { var unknownProps = []; for (var key in props) { - var isValid = validateProperty$1(type, key, props[key], eventRegistry); + var isValid = validateProperty(type, key, props[key], eventRegistry); if (!isValid) { unknownProps.push(key); @@ -1892,7 +1866,7 @@ var warnUnknownProperties = function (type, props, eventRegistry) { } }; -function validateProperties$2(type, props, eventRegistry) { +function validateProperties(type, props, eventRegistry) { if (isCustomComponent(type, props)) { return; } @@ -1905,7 +1879,7 @@ var warnValidStyle = function () {}; { // 'msTransform' is correct, but the other prefixes should be capitalized var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; - var msPattern = /^-ms-/; + var msPattern$1 = /^-ms-/; var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon var badStyleValueWithSemicolonPattern = /;\s*$/; @@ -1932,7 +1906,7 @@ var warnValidStyle = function () {}; name, // As Andi Smith suggests // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix // is converted to lowercase `ms`. - camelize(name.replace(msPattern, "ms-")) + camelize(name.replace(msPattern$1, "ms-")) ); }; @@ -2098,7 +2072,7 @@ function escapeTextForBrowser(text) { } var uppercasePattern = /([A-Z])/g; -var msPattern$1 = /^ms-/; +var msPattern = /^ms-/; /** * Hyphenates a camelcased CSS property name, for example: * @@ -2117,7 +2091,7 @@ function hyphenateStyleName(name) { return name .replace(uppercasePattern, "-$1") .toLowerCase() - .replace(msPattern$1, "-ms-"); + .replace(msPattern, "-ms-"); } // and any newline or tab are filtered out as if they're not part of the URL. @@ -2709,7 +2683,7 @@ var scriptReplacer = function (match, prefix, s, suffix) { // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) -function createResponseState( +function createResponseState$1( identifierPrefix, nonce, bootstrapScriptContent, @@ -2962,7 +2936,7 @@ function encodeHTMLTextNode(text) { } var textSeparator = stringToPrecomputedChunk(""); -function pushTextInstance(target, text, responseState, textEmbedded) { +function pushTextInstance$1(target, text, responseState, textEmbedded) { if (text === "") { // Empty text doesn't have a DOM node representation and the hydration is aware of this. return textEmbedded; @@ -2977,7 +2951,7 @@ function pushTextInstance(target, text, responseState, textEmbedded) { } // Called when Fizz is done with a Segment. Currently the only purpose is to conditionally // emit a text separator when we don't know for sure it is safe to omit -function pushSegmentFinale( +function pushSegmentFinale$1( target, responseState, lastPushedText, @@ -4863,9 +4837,9 @@ function pushStartInstance( textEmbedded ) { { - validateProperties(type, props); + validateProperties$2(type, props); validateProperties$1(type, props); - validateProperties$2(type, props, null); + validateProperties(type, props, null); if ( !props.suppressContentEditableWarning && @@ -5135,7 +5109,7 @@ var clientRenderedSuspenseBoundaryError1C = stringToPrecomputedChunk(' data-stck="'); var clientRenderedSuspenseBoundaryError2 = stringToPrecomputedChunk(">"); -function writeStartCompletedSuspenseBoundary(destination, responseState) { +function writeStartCompletedSuspenseBoundary$1(destination, responseState) { return writeChunkAndReturn(destination, startCompletedSuspenseBoundary); } function writeStartPendingSuspenseBoundary(destination, responseState, id) { @@ -5150,7 +5124,7 @@ function writeStartPendingSuspenseBoundary(destination, responseState, id) { writeChunk(destination, id); return writeChunkAndReturn(destination, startPendingSuspenseBoundary2); } -function writeStartClientRenderedSuspenseBoundary( +function writeStartClientRenderedSuspenseBoundary$1( destination, responseState, errorDigest, @@ -5205,13 +5179,13 @@ function writeStartClientRenderedSuspenseBoundary( ); return result; } -function writeEndCompletedSuspenseBoundary(destination, responseState) { +function writeEndCompletedSuspenseBoundary$1(destination, responseState) { return writeChunkAndReturn(destination, endSuspenseBoundary); } function writeEndPendingSuspenseBoundary(destination, responseState) { return writeChunkAndReturn(destination, endSuspenseBoundary); } -function writeEndClientRenderedSuspenseBoundary(destination, responseState) { +function writeEndClientRenderedSuspenseBoundary$1(destination, responseState) { return writeChunkAndReturn(destination, endSuspenseBoundary); } var startSegmentHTML = stringToPrecomputedChunk('