@@ -24,4 +24,2 @@ /** | ||
| return "Fragment"; | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_PROFILER_TYPE: | ||
@@ -35,2 +33,4 @@ return "Profiler"; | ||
| return "SuspenseList"; | ||
| case REACT_ACTIVITY_TYPE: | ||
| return "Activity"; | ||
| case REACT_VIEW_TRANSITION_TYPE: | ||
@@ -47,4 +47,6 @@ return "ViewTransition"; | ||
| ) { | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_CONTEXT_TYPE: | ||
| return (type.displayName || "Context") + ".Provider"; | ||
| return type.displayName || "Context"; | ||
| case REACT_CONSUMER_TYPE: | ||
@@ -121,2 +123,5 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
| } | ||
| function UnknownOwner() { | ||
| return Error("react-stack-top-frame"); | ||
| } | ||
| function hasValidKey(config) { | ||
@@ -154,13 +159,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
| } | ||
| function ReactElement( | ||
| type, | ||
| key, | ||
| self, | ||
| source, | ||
| owner, | ||
| props, | ||
| debugStack, | ||
| debugTask | ||
| ) { | ||
| self = props.ref; | ||
| function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
| var refProp = props.ref; | ||
| type = { | ||
@@ -173,3 +169,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
| }; | ||
| null !== (void 0 !== self ? self : null) | ||
| null !== (void 0 !== refProp ? refProp : null) | ||
| ? Object.defineProperty(type, "ref", { | ||
@@ -213,4 +209,2 @@ enumerable: !1, | ||
| isStaticChildren, | ||
| source, | ||
| self, | ||
| debugStack, | ||
@@ -258,5 +252,9 @@ debugTask | ||
| void 0 !== maybeKey && | ||
| (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); | ||
| (maybeKey === REACT_OPTIMISTIC_KEY | ||
| ? (children = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey))); | ||
| hasValidKey(config) && | ||
| (checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
| (config.key === REACT_OPTIMISTIC_KEY | ||
| ? (children = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(config.key), (children = "" + config.key))); | ||
| if ("key" in config) { | ||
@@ -277,6 +275,4 @@ maybeKey = {}; | ||
| children, | ||
| self, | ||
| source, | ||
| maybeKey, | ||
| getOwner(), | ||
| maybeKey, | ||
| debugStack, | ||
@@ -287,8 +283,20 @@ debugTask | ||
| function validateChildKeys(node) { | ||
| "object" === typeof node && | ||
| null !== node && | ||
| node.$$typeof === REACT_ELEMENT_TYPE && | ||
| node._store && | ||
| (node._store.validated = 1); | ||
| isValidElement(node) | ||
| ? node._store && (node._store.validated = 1) | ||
| : "object" === typeof node && | ||
| null !== node && | ||
| node.$$typeof === REACT_LAZY_TYPE && | ||
| ("fulfilled" === node._payload.status | ||
| ? isValidElement(node._payload.value) && | ||
| node._payload.value._store && | ||
| (node._payload.value._store.validated = 1) | ||
| : node._store && (node._store.validated = 1)); | ||
| } | ||
| function isValidElement(object) { | ||
| return ( | ||
| "object" === typeof object && | ||
| null !== object && | ||
| object.$$typeof === REACT_ELEMENT_TYPE | ||
| ); | ||
| } | ||
| var React = require("react"), | ||
@@ -299,5 +307,4 @@ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
| Symbol.for("react.provider"); | ||
| var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
| REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -309,3 +316,5 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
| REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
| REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
| REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
| REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"), | ||
| REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
@@ -315,21 +324,31 @@ ReactSharedInternals = | ||
| hasOwnProperty = Object.prototype.hasOwnProperty, | ||
| isArrayImpl = Array.isArray; | ||
| new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
| var createTask = console.createTask | ||
| isArrayImpl = Array.isArray, | ||
| createTask = console.createTask | ||
| ? console.createTask | ||
| : function () { | ||
| return null; | ||
| }, | ||
| specialPropKeyWarningShown; | ||
| }; | ||
| React = { | ||
| react_stack_bottom_frame: function (callStackForError) { | ||
| return callStackForError(); | ||
| } | ||
| }; | ||
| var specialPropKeyWarningShown; | ||
| var didWarnAboutElementRef = {}; | ||
| var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind( | ||
| React, | ||
| UnknownOwner | ||
| )(); | ||
| var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
| var didWarnAboutKeySpread = {}; | ||
| exports.Fragment = REACT_FRAGMENT_TYPE; | ||
| exports.jsxDEV = function ( | ||
| type, | ||
| config, | ||
| maybeKey, | ||
| isStaticChildren, | ||
| source, | ||
| self | ||
| ) { | ||
| exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) { | ||
| var trackActualOwner = | ||
| 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
| if (trackActualOwner) { | ||
| var previousStackTraceLimit = Error.stackTraceLimit; | ||
| Error.stackTraceLimit = 10; | ||
| var debugStackDEV = Error("react-stack-top-frame"); | ||
| Error.stackTraceLimit = previousStackTraceLimit; | ||
| } else debugStackDEV = unknownOwnerDebugStack; | ||
| return jsxDEVImpl( | ||
@@ -340,8 +359,6 @@ type, | ||
| isStaticChildren, | ||
| source, | ||
| self, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| debugStackDEV, | ||
| trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
| }; | ||
| })(); |
@@ -24,4 +24,2 @@ /** | ||
| return "Fragment"; | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_PROFILER_TYPE: | ||
@@ -35,2 +33,4 @@ return "Profiler"; | ||
| return "SuspenseList"; | ||
| case REACT_ACTIVITY_TYPE: | ||
| return "Activity"; | ||
| case REACT_VIEW_TRANSITION_TYPE: | ||
@@ -47,4 +47,6 @@ return "ViewTransition"; | ||
| ) { | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_CONTEXT_TYPE: | ||
| return (type.displayName || "Context") + ".Provider"; | ||
| return type.displayName || "Context"; | ||
| case REACT_CONSUMER_TYPE: | ||
@@ -121,2 +123,5 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
| } | ||
| function UnknownOwner() { | ||
| return Error("react-stack-top-frame"); | ||
| } | ||
| function hasValidKey(config) { | ||
@@ -154,13 +159,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
| } | ||
| function ReactElement( | ||
| type, | ||
| key, | ||
| self, | ||
| source, | ||
| owner, | ||
| props, | ||
| debugStack, | ||
| debugTask | ||
| ) { | ||
| self = props.ref; | ||
| function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
| var refProp = props.ref; | ||
| type = { | ||
@@ -173,3 +169,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
| }; | ||
| null !== (void 0 !== self ? self : null) | ||
| null !== (void 0 !== refProp ? refProp : null) | ||
| ? Object.defineProperty(type, "ref", { | ||
@@ -213,4 +209,2 @@ enumerable: !1, | ||
| isStaticChildren, | ||
| source, | ||
| self, | ||
| debugStack, | ||
@@ -258,5 +252,9 @@ debugTask | ||
| void 0 !== maybeKey && | ||
| (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); | ||
| (maybeKey === REACT_OPTIMISTIC_KEY | ||
| ? (children = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey))); | ||
| hasValidKey(config) && | ||
| (checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
| (config.key === REACT_OPTIMISTIC_KEY | ||
| ? (children = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(config.key), (children = "" + config.key))); | ||
| if ("key" in config) { | ||
@@ -277,6 +275,4 @@ maybeKey = {}; | ||
| children, | ||
| self, | ||
| source, | ||
| maybeKey, | ||
| getOwner(), | ||
| maybeKey, | ||
| debugStack, | ||
@@ -287,8 +283,20 @@ debugTask | ||
| function validateChildKeys(node) { | ||
| "object" === typeof node && | ||
| null !== node && | ||
| node.$$typeof === REACT_ELEMENT_TYPE && | ||
| node._store && | ||
| (node._store.validated = 1); | ||
| isValidElement(node) | ||
| ? node._store && (node._store.validated = 1) | ||
| : "object" === typeof node && | ||
| null !== node && | ||
| node.$$typeof === REACT_LAZY_TYPE && | ||
| ("fulfilled" === node._payload.status | ||
| ? isValidElement(node._payload.value) && | ||
| node._payload.value._store && | ||
| (node._payload.value._store.validated = 1) | ||
| : node._store && (node._store.validated = 1)); | ||
| } | ||
| function isValidElement(object) { | ||
| return ( | ||
| "object" === typeof object && | ||
| null !== object && | ||
| object.$$typeof === REACT_ELEMENT_TYPE | ||
| ); | ||
| } | ||
| var React = require("react"), | ||
@@ -299,5 +307,4 @@ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
| Symbol.for("react.provider"); | ||
| var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
| REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -309,3 +316,5 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
| REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
| REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
| REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
| REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"), | ||
| REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
@@ -319,14 +328,31 @@ ReactSharedInternalsServer = | ||
| var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
| isArrayImpl = Array.isArray; | ||
| new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
| var createTask = console.createTask | ||
| isArrayImpl = Array.isArray, | ||
| createTask = console.createTask | ||
| ? console.createTask | ||
| : function () { | ||
| return null; | ||
| }, | ||
| specialPropKeyWarningShown; | ||
| }; | ||
| React = { | ||
| react_stack_bottom_frame: function (callStackForError) { | ||
| return callStackForError(); | ||
| } | ||
| }; | ||
| var specialPropKeyWarningShown; | ||
| var didWarnAboutElementRef = {}; | ||
| var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind( | ||
| React, | ||
| UnknownOwner | ||
| )(); | ||
| var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
| var didWarnAboutKeySpread = {}; | ||
| exports.Fragment = REACT_FRAGMENT_TYPE; | ||
| exports.jsx = function (type, config, maybeKey, source, self) { | ||
| exports.jsx = function (type, config, maybeKey) { | ||
| var trackActualOwner = | ||
| 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
| if (trackActualOwner) { | ||
| var previousStackTraceLimit = Error.stackTraceLimit; | ||
| Error.stackTraceLimit = 10; | ||
| var debugStackDEV = Error("react-stack-top-frame"); | ||
| Error.stackTraceLimit = previousStackTraceLimit; | ||
| } else debugStackDEV = unknownOwnerDebugStack; | ||
| return jsxDEVImpl( | ||
@@ -337,16 +363,15 @@ type, | ||
| !1, | ||
| source, | ||
| self, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| debugStackDEV, | ||
| trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
| }; | ||
| exports.jsxDEV = function ( | ||
| type, | ||
| config, | ||
| maybeKey, | ||
| isStaticChildren, | ||
| source, | ||
| self | ||
| ) { | ||
| exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) { | ||
| var trackActualOwner = | ||
| 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
| if (trackActualOwner) { | ||
| var previousStackTraceLimit = Error.stackTraceLimit; | ||
| Error.stackTraceLimit = 10; | ||
| var debugStackDEV = Error("react-stack-top-frame"); | ||
| Error.stackTraceLimit = previousStackTraceLimit; | ||
| } else debugStackDEV = unknownOwnerDebugStack; | ||
| return jsxDEVImpl( | ||
@@ -357,9 +382,15 @@ type, | ||
| isStaticChildren, | ||
| source, | ||
| self, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| debugStackDEV, | ||
| trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
| }; | ||
| exports.jsxs = function (type, config, maybeKey, source, self) { | ||
| exports.jsxs = function (type, config, maybeKey) { | ||
| var trackActualOwner = | ||
| 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
| if (trackActualOwner) { | ||
| var previousStackTraceLimit = Error.stackTraceLimit; | ||
| Error.stackTraceLimit = 10; | ||
| var debugStackDEV = Error("react-stack-top-frame"); | ||
| Error.stackTraceLimit = previousStackTraceLimit; | ||
| } else debugStackDEV = unknownOwnerDebugStack; | ||
| return jsxDEVImpl( | ||
@@ -370,8 +401,6 @@ type, | ||
| !0, | ||
| source, | ||
| self, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| debugStackDEV, | ||
| trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
| }; | ||
| })(); |
@@ -14,3 +14,4 @@ /** | ||
| REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); | ||
| REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), | ||
| REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"); | ||
| if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) | ||
@@ -22,4 +23,10 @@ throw Error( | ||
| var key = null; | ||
| void 0 !== maybeKey && (key = "" + maybeKey); | ||
| void 0 !== config.key && (key = "" + config.key); | ||
| void 0 !== maybeKey && | ||
| (key = | ||
| maybeKey === REACT_OPTIMISTIC_KEY ? REACT_OPTIMISTIC_KEY : "" + maybeKey); | ||
| void 0 !== config.key && | ||
| (key = | ||
| maybeKey === REACT_OPTIMISTIC_KEY | ||
| ? REACT_OPTIMISTIC_KEY | ||
| : "" + config.key); | ||
| if ("key" in config) { | ||
@@ -26,0 +33,0 @@ maybeKey = {}; |
@@ -24,4 +24,2 @@ /** | ||
| return "Fragment"; | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_PROFILER_TYPE: | ||
@@ -35,2 +33,4 @@ return "Profiler"; | ||
| return "SuspenseList"; | ||
| case REACT_ACTIVITY_TYPE: | ||
| return "Activity"; | ||
| case REACT_VIEW_TRANSITION_TYPE: | ||
@@ -47,4 +47,6 @@ return "ViewTransition"; | ||
| ) { | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_CONTEXT_TYPE: | ||
| return (type.displayName || "Context") + ".Provider"; | ||
| return type.displayName || "Context"; | ||
| case REACT_CONSUMER_TYPE: | ||
@@ -121,2 +123,5 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
| } | ||
| function UnknownOwner() { | ||
| return Error("react-stack-top-frame"); | ||
| } | ||
| function hasValidKey(config) { | ||
@@ -154,13 +159,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
| } | ||
| function ReactElement( | ||
| type, | ||
| key, | ||
| self, | ||
| source, | ||
| owner, | ||
| props, | ||
| debugStack, | ||
| debugTask | ||
| ) { | ||
| self = props.ref; | ||
| function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
| var refProp = props.ref; | ||
| type = { | ||
@@ -173,3 +169,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
| }; | ||
| null !== (void 0 !== self ? self : null) | ||
| null !== (void 0 !== refProp ? refProp : null) | ||
| ? Object.defineProperty(type, "ref", { | ||
@@ -213,4 +209,2 @@ enumerable: !1, | ||
| isStaticChildren, | ||
| source, | ||
| self, | ||
| debugStack, | ||
@@ -258,5 +252,9 @@ debugTask | ||
| void 0 !== maybeKey && | ||
| (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); | ||
| (maybeKey === REACT_OPTIMISTIC_KEY | ||
| ? (children = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey))); | ||
| hasValidKey(config) && | ||
| (checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
| (config.key === REACT_OPTIMISTIC_KEY | ||
| ? (children = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(config.key), (children = "" + config.key))); | ||
| if ("key" in config) { | ||
@@ -277,6 +275,4 @@ maybeKey = {}; | ||
| children, | ||
| self, | ||
| source, | ||
| maybeKey, | ||
| getOwner(), | ||
| maybeKey, | ||
| debugStack, | ||
@@ -287,8 +283,20 @@ debugTask | ||
| function validateChildKeys(node) { | ||
| "object" === typeof node && | ||
| null !== node && | ||
| node.$$typeof === REACT_ELEMENT_TYPE && | ||
| node._store && | ||
| (node._store.validated = 1); | ||
| isValidElement(node) | ||
| ? node._store && (node._store.validated = 1) | ||
| : "object" === typeof node && | ||
| null !== node && | ||
| node.$$typeof === REACT_LAZY_TYPE && | ||
| ("fulfilled" === node._payload.status | ||
| ? isValidElement(node._payload.value) && | ||
| node._payload.value._store && | ||
| (node._payload.value._store.validated = 1) | ||
| : node._store && (node._store.validated = 1)); | ||
| } | ||
| function isValidElement(object) { | ||
| return ( | ||
| "object" === typeof object && | ||
| null !== object && | ||
| object.$$typeof === REACT_ELEMENT_TYPE | ||
| ); | ||
| } | ||
| var React = require("react"), | ||
@@ -299,5 +307,4 @@ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
| Symbol.for("react.provider"); | ||
| var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
| REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -309,3 +316,5 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
| REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
| REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
| REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
| REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"), | ||
| REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
@@ -315,14 +324,31 @@ ReactSharedInternals = | ||
| hasOwnProperty = Object.prototype.hasOwnProperty, | ||
| isArrayImpl = Array.isArray; | ||
| new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
| var createTask = console.createTask | ||
| isArrayImpl = Array.isArray, | ||
| createTask = console.createTask | ||
| ? console.createTask | ||
| : function () { | ||
| return null; | ||
| }, | ||
| specialPropKeyWarningShown; | ||
| }; | ||
| React = { | ||
| react_stack_bottom_frame: function (callStackForError) { | ||
| return callStackForError(); | ||
| } | ||
| }; | ||
| var specialPropKeyWarningShown; | ||
| var didWarnAboutElementRef = {}; | ||
| var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind( | ||
| React, | ||
| UnknownOwner | ||
| )(); | ||
| var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
| var didWarnAboutKeySpread = {}; | ||
| exports.Fragment = REACT_FRAGMENT_TYPE; | ||
| exports.jsx = function (type, config, maybeKey, source, self) { | ||
| exports.jsx = function (type, config, maybeKey) { | ||
| var trackActualOwner = | ||
| 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
| if (trackActualOwner) { | ||
| var previousStackTraceLimit = Error.stackTraceLimit; | ||
| Error.stackTraceLimit = 10; | ||
| var debugStackDEV = Error("react-stack-top-frame"); | ||
| Error.stackTraceLimit = previousStackTraceLimit; | ||
| } else debugStackDEV = unknownOwnerDebugStack; | ||
| return jsxDEVImpl( | ||
@@ -333,9 +359,15 @@ type, | ||
| !1, | ||
| source, | ||
| self, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| debugStackDEV, | ||
| trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
| }; | ||
| exports.jsxs = function (type, config, maybeKey, source, self) { | ||
| exports.jsxs = function (type, config, maybeKey) { | ||
| var trackActualOwner = | ||
| 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
| if (trackActualOwner) { | ||
| var previousStackTraceLimit = Error.stackTraceLimit; | ||
| Error.stackTraceLimit = 10; | ||
| var debugStackDEV = Error("react-stack-top-frame"); | ||
| Error.stackTraceLimit = previousStackTraceLimit; | ||
| } else debugStackDEV = unknownOwnerDebugStack; | ||
| return jsxDEVImpl( | ||
@@ -346,8 +378,6 @@ type, | ||
| !0, | ||
| source, | ||
| self, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| debugStackDEV, | ||
| trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
| }; | ||
| })(); |
@@ -13,7 +13,14 @@ /** | ||
| var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); | ||
| REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), | ||
| REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"); | ||
| function jsxProd(type, config, maybeKey) { | ||
| var key = null; | ||
| void 0 !== maybeKey && (key = "" + maybeKey); | ||
| void 0 !== config.key && (key = "" + config.key); | ||
| void 0 !== maybeKey && | ||
| (key = | ||
| maybeKey === REACT_OPTIMISTIC_KEY ? REACT_OPTIMISTIC_KEY : "" + maybeKey); | ||
| void 0 !== config.key && | ||
| (key = | ||
| maybeKey === REACT_OPTIMISTIC_KEY | ||
| ? REACT_OPTIMISTIC_KEY | ||
| : "" + config.key); | ||
| if ("key" in config) { | ||
@@ -20,0 +27,0 @@ maybeKey = {}; |
@@ -13,7 +13,14 @@ /** | ||
| var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); | ||
| REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), | ||
| REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"); | ||
| function jsxProd(type, config, maybeKey) { | ||
| var key = null; | ||
| void 0 !== maybeKey && (key = "" + maybeKey); | ||
| void 0 !== config.key && (key = "" + config.key); | ||
| void 0 !== maybeKey && | ||
| (key = | ||
| maybeKey === REACT_OPTIMISTIC_KEY ? REACT_OPTIMISTIC_KEY : "" + maybeKey); | ||
| void 0 !== config.key && | ||
| (key = | ||
| maybeKey === REACT_OPTIMISTIC_KEY | ||
| ? REACT_OPTIMISTIC_KEY | ||
| : "" + config.key); | ||
| if ("key" in config) { | ||
@@ -20,0 +27,0 @@ maybeKey = {}; |
@@ -24,4 +24,2 @@ /** | ||
| return "Fragment"; | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_PROFILER_TYPE: | ||
@@ -35,2 +33,4 @@ return "Profiler"; | ||
| return "SuspenseList"; | ||
| case REACT_ACTIVITY_TYPE: | ||
| return "Activity"; | ||
| case REACT_VIEW_TRANSITION_TYPE: | ||
@@ -47,4 +47,6 @@ return "ViewTransition"; | ||
| ) { | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_CONTEXT_TYPE: | ||
| return (type.displayName || "Context") + ".Provider"; | ||
| return type.displayName || "Context"; | ||
| case REACT_CONSUMER_TYPE: | ||
@@ -121,2 +123,5 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
| } | ||
| function UnknownOwner() { | ||
| return Error("react-stack-top-frame"); | ||
| } | ||
| function hasValidKey(config) { | ||
@@ -154,13 +159,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
| } | ||
| function ReactElement( | ||
| type, | ||
| key, | ||
| self, | ||
| source, | ||
| owner, | ||
| props, | ||
| debugStack, | ||
| debugTask | ||
| ) { | ||
| self = props.ref; | ||
| function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
| var refProp = props.ref; | ||
| type = { | ||
@@ -173,3 +169,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
| }; | ||
| null !== (void 0 !== self ? self : null) | ||
| null !== (void 0 !== refProp ? refProp : null) | ||
| ? Object.defineProperty(type, "ref", { | ||
@@ -213,4 +209,2 @@ enumerable: !1, | ||
| isStaticChildren, | ||
| source, | ||
| self, | ||
| debugStack, | ||
@@ -258,5 +252,9 @@ debugTask | ||
| void 0 !== maybeKey && | ||
| (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); | ||
| (maybeKey === REACT_OPTIMISTIC_KEY | ||
| ? (children = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey))); | ||
| hasValidKey(config) && | ||
| (checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
| (config.key === REACT_OPTIMISTIC_KEY | ||
| ? (children = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(config.key), (children = "" + config.key))); | ||
| if ("key" in config) { | ||
@@ -277,6 +275,4 @@ maybeKey = {}; | ||
| children, | ||
| self, | ||
| source, | ||
| maybeKey, | ||
| getOwner(), | ||
| maybeKey, | ||
| debugStack, | ||
@@ -287,8 +283,20 @@ debugTask | ||
| function validateChildKeys(node) { | ||
| "object" === typeof node && | ||
| null !== node && | ||
| node.$$typeof === REACT_ELEMENT_TYPE && | ||
| node._store && | ||
| (node._store.validated = 1); | ||
| isValidElement(node) | ||
| ? node._store && (node._store.validated = 1) | ||
| : "object" === typeof node && | ||
| null !== node && | ||
| node.$$typeof === REACT_LAZY_TYPE && | ||
| ("fulfilled" === node._payload.status | ||
| ? isValidElement(node._payload.value) && | ||
| node._payload.value._store && | ||
| (node._payload.value._store.validated = 1) | ||
| : node._store && (node._store.validated = 1)); | ||
| } | ||
| function isValidElement(object) { | ||
| return ( | ||
| "object" === typeof object && | ||
| null !== object && | ||
| object.$$typeof === REACT_ELEMENT_TYPE | ||
| ); | ||
| } | ||
| var React = require("react"), | ||
@@ -299,5 +307,4 @@ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
| Symbol.for("react.provider"); | ||
| var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
| REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -309,3 +316,5 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
| REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
| REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
| REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
| REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"), | ||
| REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
@@ -319,14 +328,31 @@ ReactSharedInternalsServer = | ||
| var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
| isArrayImpl = Array.isArray; | ||
| new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
| var createTask = console.createTask | ||
| isArrayImpl = Array.isArray, | ||
| createTask = console.createTask | ||
| ? console.createTask | ||
| : function () { | ||
| return null; | ||
| }, | ||
| specialPropKeyWarningShown; | ||
| }; | ||
| React = { | ||
| react_stack_bottom_frame: function (callStackForError) { | ||
| return callStackForError(); | ||
| } | ||
| }; | ||
| var specialPropKeyWarningShown; | ||
| var didWarnAboutElementRef = {}; | ||
| var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind( | ||
| React, | ||
| UnknownOwner | ||
| )(); | ||
| var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
| var didWarnAboutKeySpread = {}; | ||
| exports.Fragment = REACT_FRAGMENT_TYPE; | ||
| exports.jsx = function (type, config, maybeKey, source, self) { | ||
| exports.jsx = function (type, config, maybeKey) { | ||
| var trackActualOwner = | ||
| 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
| if (trackActualOwner) { | ||
| var previousStackTraceLimit = Error.stackTraceLimit; | ||
| Error.stackTraceLimit = 10; | ||
| var debugStackDEV = Error("react-stack-top-frame"); | ||
| Error.stackTraceLimit = previousStackTraceLimit; | ||
| } else debugStackDEV = unknownOwnerDebugStack; | ||
| return jsxDEVImpl( | ||
@@ -337,16 +363,15 @@ type, | ||
| !1, | ||
| source, | ||
| self, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| debugStackDEV, | ||
| trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
| }; | ||
| exports.jsxDEV = function ( | ||
| type, | ||
| config, | ||
| maybeKey, | ||
| isStaticChildren, | ||
| source, | ||
| self | ||
| ) { | ||
| exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) { | ||
| var trackActualOwner = | ||
| 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
| if (trackActualOwner) { | ||
| var previousStackTraceLimit = Error.stackTraceLimit; | ||
| Error.stackTraceLimit = 10; | ||
| var debugStackDEV = Error("react-stack-top-frame"); | ||
| Error.stackTraceLimit = previousStackTraceLimit; | ||
| } else debugStackDEV = unknownOwnerDebugStack; | ||
| return jsxDEVImpl( | ||
@@ -357,9 +382,15 @@ type, | ||
| isStaticChildren, | ||
| source, | ||
| self, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| debugStackDEV, | ||
| trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
| }; | ||
| exports.jsxs = function (type, config, maybeKey, source, self) { | ||
| exports.jsxs = function (type, config, maybeKey) { | ||
| var trackActualOwner = | ||
| 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
| if (trackActualOwner) { | ||
| var previousStackTraceLimit = Error.stackTraceLimit; | ||
| Error.stackTraceLimit = 10; | ||
| var debugStackDEV = Error("react-stack-top-frame"); | ||
| Error.stackTraceLimit = previousStackTraceLimit; | ||
| } else debugStackDEV = unknownOwnerDebugStack; | ||
| return jsxDEVImpl( | ||
@@ -370,8 +401,6 @@ type, | ||
| !0, | ||
| source, | ||
| self, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| debugStackDEV, | ||
| trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
| }; | ||
| })(); |
@@ -14,3 +14,4 @@ /** | ||
| REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); | ||
| REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), | ||
| REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"); | ||
| if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) | ||
@@ -22,4 +23,10 @@ throw Error( | ||
| var key = null; | ||
| void 0 !== maybeKey && (key = "" + maybeKey); | ||
| void 0 !== config.key && (key = "" + config.key); | ||
| void 0 !== maybeKey && | ||
| (key = | ||
| maybeKey === REACT_OPTIMISTIC_KEY ? REACT_OPTIMISTIC_KEY : "" + maybeKey); | ||
| void 0 !== config.key && | ||
| (key = | ||
| maybeKey === REACT_OPTIMISTIC_KEY | ||
| ? REACT_OPTIMISTIC_KEY | ||
| : "" + config.key); | ||
| if ("key" in config) { | ||
@@ -26,0 +33,0 @@ maybeKey = {}; |
+272
-158
@@ -60,2 +60,3 @@ /** | ||
| } | ||
| function noop() {} | ||
| function testStringCoercion(value) { | ||
@@ -91,3 +92,3 @@ return "" + value; | ||
| if ("function" === typeof type) | ||
| return type.$$typeof === REACT_CLIENT_REFERENCE$1 | ||
| return type.$$typeof === REACT_CLIENT_REFERENCE | ||
| ? null | ||
@@ -99,4 +100,2 @@ : type.displayName || type.name || null; | ||
| return "Fragment"; | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_PROFILER_TYPE: | ||
@@ -110,2 +109,4 @@ return "Profiler"; | ||
| return "SuspenseList"; | ||
| case REACT_ACTIVITY_TYPE: | ||
| return "Activity"; | ||
| case REACT_VIEW_TRANSITION_TYPE: | ||
@@ -122,4 +123,6 @@ return "ViewTransition"; | ||
| ) { | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_CONTEXT_TYPE: | ||
| return (type.displayName || "Context") + ".Provider"; | ||
| return type.displayName || "Context"; | ||
| case REACT_CONSUMER_TYPE: | ||
@@ -169,2 +172,5 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
| } | ||
| function UnknownOwner() { | ||
| return Error("react-stack-top-frame"); | ||
| } | ||
| function hasValidKey(config) { | ||
@@ -202,13 +208,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
| } | ||
| function ReactElement( | ||
| type, | ||
| key, | ||
| self, | ||
| source, | ||
| owner, | ||
| props, | ||
| debugStack, | ||
| debugTask | ||
| ) { | ||
| self = props.ref; | ||
| function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
| var refProp = props.ref; | ||
| type = { | ||
@@ -221,3 +218,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
| }; | ||
| null !== (void 0 !== self ? self : null) | ||
| null !== (void 0 !== refProp ? refProp : null) | ||
| ? Object.defineProperty(type, "ref", { | ||
@@ -260,6 +257,4 @@ enumerable: !1, | ||
| newKey, | ||
| void 0, | ||
| void 0, | ||
| oldElement.props, | ||
| oldElement._owner, | ||
| oldElement.props, | ||
| oldElement._debugStack, | ||
@@ -272,2 +267,14 @@ oldElement._debugTask | ||
| } | ||
| function validateChildKeys(node) { | ||
| isValidElement(node) | ||
| ? node._store && (node._store.validated = 1) | ||
| : "object" === typeof node && | ||
| null !== node && | ||
| node.$$typeof === REACT_LAZY_TYPE && | ||
| ("fulfilled" === node._payload.status | ||
| ? isValidElement(node._payload.value) && | ||
| node._payload.value._store && | ||
| (node._payload.value._store.validated = 1) | ||
| : node._store && (node._store.validated = 1)); | ||
| } | ||
| function isValidElement(object) { | ||
@@ -290,9 +297,19 @@ return ( | ||
| function getElementKey(element, index) { | ||
| return "object" === typeof element && | ||
| if ( | ||
| "object" === typeof element && | ||
| null !== element && | ||
| null != element.key | ||
| ? (checkKeyStringCoercion(element.key), escape("" + element.key)) | ||
| : index.toString(36); | ||
| ) { | ||
| if (element.key === REACT_OPTIMISTIC_KEY) | ||
| return ( | ||
| console.error( | ||
| "React.Children helpers don't support optimisticKey." | ||
| ), | ||
| index.toString(36) | ||
| ); | ||
| checkKeyStringCoercion(element.key); | ||
| return escape("" + element.key); | ||
| } | ||
| return index.toString(36); | ||
| } | ||
| function noop$1() {} | ||
| function resolveThenable(thenable) { | ||
@@ -307,3 +324,3 @@ switch (thenable.status) { | ||
| ("string" === typeof thenable.status | ||
| ? thenable.then(noop$1, noop$1) | ||
| ? thenable.then(noop, noop) | ||
| : ((thenable.status = "pending"), | ||
@@ -470,31 +487,70 @@ thenable.then( | ||
| if (-1 === payload._status) { | ||
| var ctor = payload._result; | ||
| ctor = ctor(); | ||
| ctor.then( | ||
| var resolveDebugValue = null, | ||
| rejectDebugValue = null, | ||
| ioInfo = payload._ioInfo; | ||
| null != ioInfo && | ||
| ((ioInfo.start = ioInfo.end = performance.now()), | ||
| (ioInfo.value = new Promise(function (resolve, reject) { | ||
| resolveDebugValue = resolve; | ||
| rejectDebugValue = reject; | ||
| }))); | ||
| ioInfo = payload._result; | ||
| var thenable = ioInfo(); | ||
| thenable.then( | ||
| function (moduleObject) { | ||
| if (0 === payload._status || -1 === payload._status) | ||
| (payload._status = 1), (payload._result = moduleObject); | ||
| if (0 === payload._status || -1 === payload._status) { | ||
| payload._status = 1; | ||
| payload._result = moduleObject; | ||
| var _ioInfo = payload._ioInfo; | ||
| if (null != _ioInfo) { | ||
| _ioInfo.end = performance.now(); | ||
| var debugValue = | ||
| null == moduleObject ? void 0 : moduleObject.default; | ||
| resolveDebugValue(debugValue); | ||
| _ioInfo.value.status = "fulfilled"; | ||
| _ioInfo.value.value = debugValue; | ||
| } | ||
| void 0 === thenable.status && | ||
| ((thenable.status = "fulfilled"), | ||
| (thenable.value = moduleObject)); | ||
| } | ||
| }, | ||
| function (error) { | ||
| if (0 === payload._status || -1 === payload._status) | ||
| (payload._status = 2), (payload._result = error); | ||
| if (0 === payload._status || -1 === payload._status) { | ||
| payload._status = 2; | ||
| payload._result = error; | ||
| var _ioInfo2 = payload._ioInfo; | ||
| null != _ioInfo2 && | ||
| ((_ioInfo2.end = performance.now()), | ||
| _ioInfo2.value.then(noop, noop), | ||
| rejectDebugValue(error), | ||
| (_ioInfo2.value.status = "rejected"), | ||
| (_ioInfo2.value.reason = error)); | ||
| void 0 === thenable.status && | ||
| ((thenable.status = "rejected"), (thenable.reason = error)); | ||
| } | ||
| } | ||
| ); | ||
| ioInfo = payload._ioInfo; | ||
| if (null != ioInfo) { | ||
| var displayName = thenable.displayName; | ||
| "string" === typeof displayName && (ioInfo.name = displayName); | ||
| } | ||
| -1 === payload._status && | ||
| ((payload._status = 0), (payload._result = ctor)); | ||
| ((payload._status = 0), (payload._result = thenable)); | ||
| } | ||
| if (1 === payload._status) | ||
| return ( | ||
| (ctor = payload._result), | ||
| void 0 === ctor && | ||
| (ioInfo = payload._result), | ||
| void 0 === ioInfo && | ||
| console.error( | ||
| "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", | ||
| ctor | ||
| ioInfo | ||
| ), | ||
| "default" in ctor || | ||
| "default" in ioInfo || | ||
| console.error( | ||
| "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", | ||
| ctor | ||
| ioInfo | ||
| ), | ||
| ctor.default | ||
| ioInfo.default | ||
| ); | ||
@@ -514,3 +570,60 @@ throw payload._result; | ||
| } | ||
| function noop() {} | ||
| function releaseAsyncTransition() { | ||
| ReactSharedInternals.asyncTransitions--; | ||
| } | ||
| function startTransition(scope) { | ||
| var prevTransition = ReactSharedInternals.T, | ||
| currentTransition = {}; | ||
| currentTransition.types = | ||
| null !== prevTransition ? prevTransition.types : null; | ||
| currentTransition.gesture = null; | ||
| currentTransition._updatedFibers = new Set(); | ||
| ReactSharedInternals.T = currentTransition; | ||
| try { | ||
| var returnValue = scope(), | ||
| onStartTransitionFinish = ReactSharedInternals.S; | ||
| null !== onStartTransitionFinish && | ||
| onStartTransitionFinish(currentTransition, returnValue); | ||
| "object" === typeof returnValue && | ||
| null !== returnValue && | ||
| "function" === typeof returnValue.then && | ||
| (ReactSharedInternals.asyncTransitions++, | ||
| returnValue.then(releaseAsyncTransition, releaseAsyncTransition), | ||
| returnValue.then(noop, reportGlobalError)); | ||
| } catch (error) { | ||
| reportGlobalError(error); | ||
| } finally { | ||
| null === prevTransition && | ||
| currentTransition._updatedFibers && | ||
| ((scope = currentTransition._updatedFibers.size), | ||
| currentTransition._updatedFibers.clear(), | ||
| 10 < scope && | ||
| console.warn( | ||
| "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table." | ||
| )), | ||
| null !== prevTransition && | ||
| null !== currentTransition.types && | ||
| (null !== prevTransition.types && | ||
| prevTransition.types !== currentTransition.types && | ||
| console.error( | ||
| "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React." | ||
| ), | ||
| (prevTransition.types = currentTransition.types)), | ||
| (ReactSharedInternals.T = prevTransition); | ||
| } | ||
| } | ||
| function addTransitionType(type) { | ||
| var transition = ReactSharedInternals.T; | ||
| if (null !== transition) { | ||
| var transitionTypes = transition.types; | ||
| null === transitionTypes | ||
| ? (transition.types = [type]) | ||
| : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type); | ||
| } else | ||
| 0 === ReactSharedInternals.asyncTransitions && | ||
| console.error( | ||
| "addTransitionType can only be called inside a `startTransition()` or `startGestureTransition()` callback. It must be associated with a specific Transition." | ||
| ), | ||
| startTransition(addTransitionType.bind(null, type)); | ||
| } | ||
| function enqueueTask(task) { | ||
@@ -607,5 +720,4 @@ if (null === enqueueTaskImpl) | ||
| REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
| Symbol.for("react.provider"); | ||
| var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
| REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -617,6 +729,6 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
| REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
| REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), | ||
| REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
| REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
| REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
| MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
| REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"), | ||
| didWarnStateUpdateForUnmountedComponent = {}, | ||
@@ -656,12 +768,11 @@ ReactNoopUpdateQueue = { | ||
| var deprecatedAPIs = { | ||
| isMounted: [ | ||
| "isMounted", | ||
| "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks." | ||
| ], | ||
| replaceState: [ | ||
| "replaceState", | ||
| "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)." | ||
| ] | ||
| }, | ||
| fnName; | ||
| isMounted: [ | ||
| "isMounted", | ||
| "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks." | ||
| ], | ||
| replaceState: [ | ||
| "replaceState", | ||
| "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)." | ||
| ] | ||
| }; | ||
| for (fnName in deprecatedAPIs) | ||
@@ -676,3 +787,3 @@ deprecatedAPIs.hasOwnProperty(fnName) && | ||
| var isArrayImpl = Array.isArray, | ||
| REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
| REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
| ReactSharedInternals = { | ||
@@ -683,4 +794,5 @@ H: null, | ||
| S: null, | ||
| V: null, | ||
| G: null, | ||
| actQueue: null, | ||
| asyncTransitions: 0, | ||
| isBatchingLegacy: !1, | ||
@@ -690,15 +802,23 @@ didScheduleLegacyUpdate: !1, | ||
| thrownErrors: [], | ||
| getCurrentStack: null | ||
| getCurrentStack: null, | ||
| recentlyCreatedOwnerStacks: 0 | ||
| }, | ||
| hasOwnProperty = Object.prototype.hasOwnProperty, | ||
| REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); | ||
| new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
| var createTask = console.createTask | ||
| createTask = console.createTask | ||
| ? console.createTask | ||
| : function () { | ||
| return null; | ||
| }, | ||
| specialPropKeyWarningShown, | ||
| didWarnAboutOldJSXRuntime; | ||
| }; | ||
| deprecatedAPIs = { | ||
| react_stack_bottom_frame: function (callStackForError) { | ||
| return callStackForError(); | ||
| } | ||
| }; | ||
| var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime; | ||
| var didWarnAboutElementRef = {}; | ||
| var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind( | ||
| deprecatedAPIs, | ||
| UnknownOwner | ||
| )(); | ||
| var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
| var didWarnAboutMaps = !1, | ||
@@ -754,3 +874,3 @@ userProvidedKeyEscapeRegex = /\/+/g, | ||
| }); | ||
| exports.Children = { | ||
| var fnName = { | ||
| map: mapChildren, | ||
@@ -788,2 +908,4 @@ forEach: function (children, forEachFunc, forEachContext) { | ||
| }; | ||
| exports.Activity = REACT_ACTIVITY_TYPE; | ||
| exports.Children = fnName; | ||
| exports.Component = Component; | ||
@@ -795,2 +917,3 @@ exports.Fragment = REACT_FRAGMENT_TYPE; | ||
| exports.Suspense = REACT_SUSPENSE_TYPE; | ||
| exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
| exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = | ||
@@ -910,2 +1033,3 @@ ReactSharedInternals; | ||
| }; | ||
| exports.addTransitionType = addTransitionType; | ||
| exports.cache = function (fn) { | ||
@@ -916,2 +1040,5 @@ return function () { | ||
| }; | ||
| exports.cacheSignal = function () { | ||
| return null; | ||
| }; | ||
| exports.captureOwnerStack = function () { | ||
@@ -949,3 +1076,5 @@ var getCurrentStack = ReactSharedInternals.getCurrentStack; | ||
| hasValidKey(config) && | ||
| (checkKeyStringCoercion(config.key), (key = "" + config.key)); | ||
| (config.key === REACT_OPTIMISTIC_KEY | ||
| ? (key = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(config.key), (key = "" + config.key))); | ||
| for (propName in config) | ||
@@ -970,6 +1099,4 @@ !hasOwnProperty.call(config, propName) || | ||
| key, | ||
| void 0, | ||
| void 0, | ||
| props, | ||
| owner, | ||
| props, | ||
| element._debugStack, | ||
@@ -979,4 +1106,3 @@ element._debugTask | ||
| for (key = 2; key < arguments.length; key++) | ||
| (owner = arguments[key]), | ||
| isValidElement(owner) && owner._store && (owner._store.validated = 1); | ||
| validateChildKeys(arguments[key]); | ||
| return props; | ||
@@ -1003,9 +1129,7 @@ }; | ||
| exports.createElement = function (type, config, children) { | ||
| for (var i = 2; i < arguments.length; i++) { | ||
| var node = arguments[i]; | ||
| isValidElement(node) && node._store && (node._store.validated = 1); | ||
| } | ||
| for (var i = 2; i < arguments.length; i++) | ||
| validateChildKeys(arguments[i]); | ||
| var propName; | ||
| i = {}; | ||
| node = null; | ||
| var key = null; | ||
| if (null != config) | ||
@@ -1020,3 +1144,5 @@ for (propName in (didWarnAboutOldJSXRuntime || | ||
| hasValidKey(config) && | ||
| (checkKeyStringCoercion(config.key), (node = "" + config.key)), | ||
| (config.key === REACT_OPTIMISTIC_KEY | ||
| ? (key = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(config.key), (key = "" + config.key))), | ||
| config)) | ||
@@ -1043,3 +1169,3 @@ hasOwnProperty.call(config, propName) && | ||
| void 0 === i[propName] && (i[propName] = childrenLength[propName]); | ||
| node && | ||
| key && | ||
| defineKeyPropWarningGetter( | ||
@@ -1051,11 +1177,15 @@ i, | ||
| ); | ||
| (propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) | ||
| ? ((childArray = Error.stackTraceLimit), | ||
| (Error.stackTraceLimit = 10), | ||
| (childrenLength = Error("react-stack-top-frame")), | ||
| (Error.stackTraceLimit = childArray)) | ||
| : (childrenLength = unknownOwnerDebugStack); | ||
| return ReactElement( | ||
| type, | ||
| node, | ||
| void 0, | ||
| void 0, | ||
| key, | ||
| i, | ||
| getOwner(), | ||
| i, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| childrenLength, | ||
| propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
@@ -1068,5 +1198,2 @@ }; | ||
| }; | ||
| exports.experimental_useEffectEvent = function (callback) { | ||
| return resolveDispatcher().useEffectEvent(callback); | ||
| }; | ||
| exports.experimental_useOptimistic = function (passthrough, reducer) { | ||
@@ -1121,27 +1248,23 @@ console.error( | ||
| exports.lazy = function (ctor) { | ||
| return { | ||
| $$typeof: REACT_LAZY_TYPE, | ||
| _payload: { _status: -1, _result: ctor }, | ||
| _init: lazyInitializer | ||
| }; | ||
| ctor = { _status: -1, _result: ctor }; | ||
| var lazyType = { | ||
| $$typeof: REACT_LAZY_TYPE, | ||
| _payload: ctor, | ||
| _init: lazyInitializer | ||
| }, | ||
| ioInfo = { | ||
| name: "lazy", | ||
| start: -1, | ||
| end: -1, | ||
| value: null, | ||
| owner: null, | ||
| debugStack: Error("react-stack-top-frame"), | ||
| debugTask: console.createTask ? console.createTask("lazy()") : null | ||
| }; | ||
| ctor._ioInfo = ioInfo; | ||
| lazyType._debugInfo = [{ awaited: ioInfo }]; | ||
| return lazyType; | ||
| }; | ||
| exports.memo = function (type, compare) { | ||
| "string" === typeof type || | ||
| "function" === typeof type || | ||
| type === REACT_FRAGMENT_TYPE || | ||
| type === REACT_PROFILER_TYPE || | ||
| type === REACT_STRICT_MODE_TYPE || | ||
| type === REACT_SUSPENSE_TYPE || | ||
| type === REACT_SUSPENSE_LIST_TYPE || | ||
| type === REACT_OFFSCREEN_TYPE || | ||
| type === REACT_VIEW_TRANSITION_TYPE || | ||
| ("object" === typeof type && | ||
| null !== type && | ||
| (type.$$typeof === REACT_LAZY_TYPE || | ||
| type.$$typeof === REACT_MEMO_TYPE || | ||
| type.$$typeof === REACT_CONTEXT_TYPE || | ||
| type.$$typeof === REACT_CONSUMER_TYPE || | ||
| type.$$typeof === REACT_FORWARD_REF_TYPE || | ||
| type.$$typeof === REACT_CLIENT_REFERENCE || | ||
| void 0 !== type.getModuleId)) || | ||
| null == type && | ||
| console.error( | ||
@@ -1173,57 +1296,50 @@ "memo: The first argument must be a component. Instead received: %s", | ||
| }; | ||
| exports.startTransition = function (scope) { | ||
| exports.optimisticKey = REACT_OPTIMISTIC_KEY; | ||
| exports.startTransition = startTransition; | ||
| exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
| exports.unstable_getCacheForType = function (resourceType) { | ||
| var dispatcher = ReactSharedInternals.A; | ||
| return dispatcher | ||
| ? dispatcher.getCacheForType(resourceType) | ||
| : resourceType(); | ||
| }; | ||
| exports.unstable_startGestureTransition = function ( | ||
| provider, | ||
| scope, | ||
| options | ||
| ) { | ||
| if (null == provider) | ||
| throw Error( | ||
| "A Timeline is required as the first argument to startGestureTransition." | ||
| ); | ||
| var prevTransition = ReactSharedInternals.T, | ||
| currentTransition = {}; | ||
| currentTransition = { types: null }; | ||
| currentTransition.gesture = provider; | ||
| currentTransition._updatedFibers = new Set(); | ||
| ReactSharedInternals.T = currentTransition; | ||
| currentTransition._updatedFibers = new Set(); | ||
| try { | ||
| var returnValue = scope(), | ||
| onStartTransitionFinish = ReactSharedInternals.S; | ||
| null !== onStartTransitionFinish && | ||
| onStartTransitionFinish(currentTransition, returnValue); | ||
| var returnValue = scope(); | ||
| "object" === typeof returnValue && | ||
| null !== returnValue && | ||
| "function" === typeof returnValue.then && | ||
| returnValue.then(noop, reportGlobalError); | ||
| console.error( | ||
| "Cannot use an async function in startGestureTransition. It must be able to start immediately." | ||
| ); | ||
| var onStartGestureTransitionFinish = ReactSharedInternals.G; | ||
| if (null !== onStartGestureTransitionFinish) | ||
| return onStartGestureTransitionFinish( | ||
| currentTransition, | ||
| provider, | ||
| options | ||
| ); | ||
| } catch (error) { | ||
| reportGlobalError(error); | ||
| } finally { | ||
| null === prevTransition && | ||
| currentTransition._updatedFibers && | ||
| ((scope = currentTransition._updatedFibers.size), | ||
| currentTransition._updatedFibers.clear(), | ||
| 10 < scope && | ||
| console.warn( | ||
| "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table." | ||
| )), | ||
| (ReactSharedInternals.T = prevTransition); | ||
| ReactSharedInternals.T = prevTransition; | ||
| } | ||
| return noop; | ||
| }; | ||
| exports.unstable_Activity = REACT_OFFSCREEN_TYPE; | ||
| exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
| exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
| exports.unstable_addTransitionType = function (type) { | ||
| var pendingTransitionTypes = ReactSharedInternals.V; | ||
| null === pendingTransitionTypes | ||
| ? (ReactSharedInternals.V = [type]) | ||
| : -1 === pendingTransitionTypes.indexOf(type) && | ||
| pendingTransitionTypes.push(type); | ||
| }; | ||
| exports.unstable_getCacheForType = function (resourceType) { | ||
| var dispatcher = ReactSharedInternals.A; | ||
| return dispatcher | ||
| ? dispatcher.getCacheForType(resourceType) | ||
| : resourceType(); | ||
| }; | ||
| exports.unstable_postpone = function (reason) { | ||
| reason = Error(reason); | ||
| reason.$$typeof = REACT_POSTPONE_TYPE; | ||
| throw reason; | ||
| }; | ||
| exports.unstable_useCacheRefresh = function () { | ||
| return resolveDispatcher().useCacheRefresh(); | ||
| }; | ||
| exports.unstable_useSwipeTransition = function (previous, current, next) { | ||
| return resolveDispatcher().useSwipeTransition(previous, current, next); | ||
| }; | ||
| exports.use = function (usable) { | ||
@@ -1256,3 +1372,3 @@ return resolveDispatcher().use(usable); | ||
| }; | ||
| exports.useEffect = function (create, createDeps, update) { | ||
| exports.useEffect = function (create, deps) { | ||
| null == create && | ||
@@ -1262,9 +1378,7 @@ console.warn( | ||
| ); | ||
| var dispatcher = resolveDispatcher(); | ||
| if ("function" === typeof update) | ||
| throw Error( | ||
| "useEffect CRUD overload is not enabled in this build of React." | ||
| ); | ||
| return dispatcher.useEffect(create, createDeps); | ||
| return resolveDispatcher().useEffect(create, deps); | ||
| }; | ||
| exports.useEffectEvent = function (callback) { | ||
| return resolveDispatcher().useEffectEvent(callback); | ||
| }; | ||
| exports.useId = function () { | ||
@@ -1317,3 +1431,3 @@ return resolveDispatcher().useId(); | ||
| }; | ||
| exports.version = "19.1.0-experimental-d55cc79b-20250228"; | ||
| exports.version = "19.3.0-experimental-d5736f09-20260507"; | ||
| "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && | ||
@@ -1320,0 +1434,0 @@ "function" === |
+114
-77
@@ -24,4 +24,3 @@ /** | ||
| REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
| REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), | ||
| REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
| REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
| REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
@@ -36,3 +35,4 @@ MAYBE_ITERATOR_SYMBOL = Symbol.iterator; | ||
| } | ||
| var ReactNoopUpdateQueue = { | ||
| var REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"), | ||
| ReactNoopUpdateQueue = { | ||
| isMounted: function () { | ||
@@ -80,7 +80,8 @@ return !1; | ||
| pureComponentPrototype.isPureReactComponent = !0; | ||
| var isArrayImpl = Array.isArray, | ||
| ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null }, | ||
| var isArrayImpl = Array.isArray; | ||
| function noop() {} | ||
| var ReactSharedInternals = { H: null, A: null, T: null, S: null, G: null }, | ||
| hasOwnProperty = Object.prototype.hasOwnProperty; | ||
| function ReactElement(type, key, self, source, owner, props) { | ||
| self = props.ref; | ||
| function ReactElement(type, key, props) { | ||
| var refProp = props.ref; | ||
| return { | ||
@@ -90,3 +91,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
| key: key, | ||
| ref: void 0 !== self ? self : null, | ||
| ref: void 0 !== refProp ? refProp : null, | ||
| props: props | ||
@@ -96,10 +97,3 @@ }; | ||
| function cloneAndReplaceKey(oldElement, newKey) { | ||
| return ReactElement( | ||
| oldElement.type, | ||
| newKey, | ||
| void 0, | ||
| void 0, | ||
| void 0, | ||
| oldElement.props | ||
| ); | ||
| return ReactElement(oldElement.type, newKey, oldElement.props); | ||
| } | ||
@@ -125,6 +119,7 @@ function isValidElement(object) { | ||
| return "object" === typeof element && null !== element && null != element.key | ||
| ? escape("" + element.key) | ||
| ? element.key === REACT_OPTIMISTIC_KEY | ||
| ? index.toString(36) | ||
| : escape("" + element.key) | ||
| : index.toString(36); | ||
| } | ||
| function noop$1() {} | ||
| function resolveThenable(thenable) { | ||
@@ -139,3 +134,3 @@ switch (thenable.status) { | ||
| ("string" === typeof thenable.status | ||
| ? thenable.then(noop$1, noop$1) | ||
| ? thenable.then(noop, noop) | ||
| : ((thenable.status = "pending"), | ||
@@ -283,15 +278,23 @@ thenable.then( | ||
| if (-1 === payload._status) { | ||
| var ctor = payload._result; | ||
| ctor = ctor(); | ||
| ctor.then( | ||
| var ctor = payload._result, | ||
| thenable = ctor(); | ||
| thenable.then( | ||
| function (moduleObject) { | ||
| if (0 === payload._status || -1 === payload._status) | ||
| (payload._status = 1), (payload._result = moduleObject); | ||
| (payload._status = 1), | ||
| (payload._result = moduleObject), | ||
| void 0 === thenable.status && | ||
| ((thenable.status = "fulfilled"), | ||
| (thenable.value = moduleObject)); | ||
| }, | ||
| function (error) { | ||
| if (0 === payload._status || -1 === payload._status) | ||
| (payload._status = 2), (payload._result = error); | ||
| (payload._status = 2), | ||
| (payload._result = error), | ||
| void 0 === thenable.status && | ||
| ((thenable.status = "rejected"), (thenable.reason = error)); | ||
| } | ||
| ); | ||
| -1 === payload._status && ((payload._status = 0), (payload._result = ctor)); | ||
| -1 === payload._status && | ||
| ((payload._status = 0), (payload._result = thenable)); | ||
| } | ||
@@ -333,4 +336,37 @@ if (1 === payload._status) return payload._result.default; | ||
| }; | ||
| function noop() {} | ||
| exports.Children = { | ||
| function startTransition(scope) { | ||
| var prevTransition = ReactSharedInternals.T, | ||
| currentTransition = {}; | ||
| currentTransition.types = | ||
| null !== prevTransition ? prevTransition.types : null; | ||
| currentTransition.gesture = null; | ||
| ReactSharedInternals.T = currentTransition; | ||
| try { | ||
| var returnValue = scope(), | ||
| onStartTransitionFinish = ReactSharedInternals.S; | ||
| null !== onStartTransitionFinish && | ||
| onStartTransitionFinish(currentTransition, returnValue); | ||
| "object" === typeof returnValue && | ||
| null !== returnValue && | ||
| "function" === typeof returnValue.then && | ||
| returnValue.then(noop, reportGlobalError); | ||
| } catch (error) { | ||
| reportGlobalError(error); | ||
| } finally { | ||
| null !== prevTransition && | ||
| null !== currentTransition.types && | ||
| (prevTransition.types = currentTransition.types), | ||
| (ReactSharedInternals.T = prevTransition); | ||
| } | ||
| } | ||
| function addTransitionType(type) { | ||
| var transition = ReactSharedInternals.T; | ||
| if (null !== transition) { | ||
| var transitionTypes = transition.types; | ||
| null === transitionTypes | ||
| ? (transition.types = [type]) | ||
| : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type); | ||
| } else startTransition(addTransitionType.bind(null, type)); | ||
| } | ||
| var Children = { | ||
| map: mapChildren, | ||
@@ -368,2 +404,4 @@ forEach: function (children, forEachFunc, forEachContext) { | ||
| }; | ||
| exports.Activity = REACT_ACTIVITY_TYPE; | ||
| exports.Children = Children; | ||
| exports.Component = Component; | ||
@@ -375,2 +413,3 @@ exports.Fragment = REACT_FRAGMENT_TYPE; | ||
| exports.Suspense = REACT_SUSPENSE_TYPE; | ||
| exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
| exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = | ||
@@ -384,2 +423,3 @@ ReactSharedInternals; | ||
| }; | ||
| exports.addTransitionType = addTransitionType; | ||
| exports.cache = function (fn) { | ||
@@ -390,2 +430,5 @@ return function () { | ||
| }; | ||
| exports.cacheSignal = function () { | ||
| return null; | ||
| }; | ||
| exports.cloneElement = function (element, config, children) { | ||
@@ -397,7 +440,9 @@ if (null === element || void 0 === element) | ||
| var props = assign({}, element.props), | ||
| key = element.key, | ||
| owner = void 0; | ||
| key = element.key; | ||
| if (null != config) | ||
| for (propName in (void 0 !== config.ref && (owner = void 0), | ||
| void 0 !== config.key && (key = "" + config.key), | ||
| for (propName in (void 0 !== config.key && | ||
| (key = | ||
| config.key === REACT_OPTIMISTIC_KEY | ||
| ? REACT_OPTIMISTIC_KEY | ||
| : "" + config.key), | ||
| config)) | ||
@@ -417,3 +462,3 @@ !hasOwnProperty.call(config, propName) || | ||
| } | ||
| return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
| return ReactElement(element.type, key, props); | ||
| }; | ||
@@ -441,3 +486,8 @@ exports.createContext = function (defaultValue) { | ||
| if (null != config) | ||
| for (propName in (void 0 !== config.key && (key = "" + config.key), config)) | ||
| for (propName in (void 0 !== config.key && | ||
| (key = | ||
| config.key === REACT_OPTIMISTIC_KEY | ||
| ? REACT_OPTIMISTIC_KEY | ||
| : "" + config.key), | ||
| config)) | ||
| hasOwnProperty.call(config, propName) && | ||
@@ -459,3 +509,3 @@ "key" !== propName && | ||
| (props[propName] = childrenLength[propName]); | ||
| return ReactElement(type, key, void 0, void 0, null, props); | ||
| return ReactElement(type, key, props); | ||
| }; | ||
@@ -465,5 +515,2 @@ exports.createRef = function () { | ||
| }; | ||
| exports.experimental_useEffectEvent = function (callback) { | ||
| return ReactSharedInternals.H.useEffectEvent(callback); | ||
| }; | ||
| exports.experimental_useOptimistic = function (passthrough, reducer) { | ||
@@ -490,15 +537,28 @@ return useOptimistic(passthrough, reducer); | ||
| }; | ||
| exports.startTransition = function (scope) { | ||
| exports.optimisticKey = REACT_OPTIMISTIC_KEY; | ||
| exports.startTransition = startTransition; | ||
| exports.unstable_Activity = REACT_ACTIVITY_TYPE; | ||
| exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
| exports.unstable_getCacheForType = function (resourceType) { | ||
| var dispatcher = ReactSharedInternals.A; | ||
| return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType(); | ||
| }; | ||
| exports.unstable_startGestureTransition = function (provider, scope, options) { | ||
| if (null == provider) | ||
| throw Error( | ||
| "A Timeline is required as the first argument to startGestureTransition." | ||
| ); | ||
| var prevTransition = ReactSharedInternals.T, | ||
| currentTransition = {}; | ||
| currentTransition = { types: null }; | ||
| currentTransition.gesture = provider; | ||
| ReactSharedInternals.T = currentTransition; | ||
| try { | ||
| var returnValue = scope(), | ||
| onStartTransitionFinish = ReactSharedInternals.S; | ||
| null !== onStartTransitionFinish && | ||
| onStartTransitionFinish(currentTransition, returnValue); | ||
| "object" === typeof returnValue && | ||
| null !== returnValue && | ||
| "function" === typeof returnValue.then && | ||
| returnValue.then(noop, reportGlobalError); | ||
| scope(); | ||
| var onStartGestureTransitionFinish = ReactSharedInternals.G; | ||
| if (null !== onStartGestureTransitionFinish) | ||
| return onStartGestureTransitionFinish( | ||
| currentTransition, | ||
| provider, | ||
| options | ||
| ); | ||
| } catch (error) { | ||
@@ -509,28 +569,7 @@ reportGlobalError(error); | ||
| } | ||
| return noop; | ||
| }; | ||
| exports.unstable_Activity = REACT_OFFSCREEN_TYPE; | ||
| exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
| exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
| exports.unstable_addTransitionType = function (type) { | ||
| var pendingTransitionTypes = ReactSharedInternals.V; | ||
| null === pendingTransitionTypes | ||
| ? (ReactSharedInternals.V = [type]) | ||
| : -1 === pendingTransitionTypes.indexOf(type) && | ||
| pendingTransitionTypes.push(type); | ||
| }; | ||
| exports.unstable_getCacheForType = function (resourceType) { | ||
| var dispatcher = ReactSharedInternals.A; | ||
| return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType(); | ||
| }; | ||
| exports.unstable_postpone = function (reason) { | ||
| reason = Error(reason); | ||
| reason.$$typeof = REACT_POSTPONE_TYPE; | ||
| throw reason; | ||
| }; | ||
| exports.unstable_useCacheRefresh = function () { | ||
| return ReactSharedInternals.H.useCacheRefresh(); | ||
| }; | ||
| exports.unstable_useSwipeTransition = function (previous, current, next) { | ||
| return ReactSharedInternals.H.useSwipeTransition(previous, current, next); | ||
| }; | ||
| exports.use = function (usable) { | ||
@@ -552,10 +591,8 @@ return ReactSharedInternals.H.use(usable); | ||
| }; | ||
| exports.useEffect = function (create, createDeps, update) { | ||
| var dispatcher = ReactSharedInternals.H; | ||
| if ("function" === typeof update) | ||
| throw Error( | ||
| "useEffect CRUD overload is not enabled in this build of React." | ||
| ); | ||
| return dispatcher.useEffect(create, createDeps); | ||
| exports.useEffect = function (create, deps) { | ||
| return ReactSharedInternals.H.useEffect(create, deps); | ||
| }; | ||
| exports.useEffectEvent = function (callback) { | ||
| return ReactSharedInternals.H.useEffectEvent(callback); | ||
| }; | ||
| exports.useId = function () { | ||
@@ -600,2 +637,2 @@ return ReactSharedInternals.H.useId(); | ||
| }; | ||
| exports.version = "19.1.0-experimental-d55cc79b-20250228"; | ||
| exports.version = "19.3.0-experimental-d5736f09-20260507"; |
@@ -14,2 +14,3 @@ /** | ||
| (function () { | ||
| function noop() {} | ||
| function getIteratorFn(maybeIterable) { | ||
@@ -53,3 +54,3 @@ if (null === maybeIterable || "object" !== typeof maybeIterable) | ||
| if ("function" === typeof type) | ||
| return type.$$typeof === REACT_CLIENT_REFERENCE$1 | ||
| return type.$$typeof === REACT_CLIENT_REFERENCE | ||
| ? null | ||
@@ -61,4 +62,2 @@ : type.displayName || type.name || null; | ||
| return "Fragment"; | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_PROFILER_TYPE: | ||
@@ -72,2 +71,4 @@ return "Profiler"; | ||
| return "SuspenseList"; | ||
| case REACT_ACTIVITY_TYPE: | ||
| return "Activity"; | ||
| case REACT_VIEW_TRANSITION_TYPE: | ||
@@ -84,4 +85,6 @@ return "ViewTransition"; | ||
| ) { | ||
| case REACT_PORTAL_TYPE: | ||
| return "Portal"; | ||
| case REACT_CONTEXT_TYPE: | ||
| return (type.displayName || "Context") + ".Provider"; | ||
| return type.displayName || "Context"; | ||
| case REACT_CONSUMER_TYPE: | ||
@@ -131,2 +134,5 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
| } | ||
| function UnknownOwner() { | ||
| return Error("react-stack-top-frame"); | ||
| } | ||
| function hasValidKey(config) { | ||
@@ -164,13 +170,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
| } | ||
| function ReactElement( | ||
| type, | ||
| key, | ||
| self, | ||
| source, | ||
| owner, | ||
| props, | ||
| debugStack, | ||
| debugTask | ||
| ) { | ||
| self = props.ref; | ||
| function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
| var refProp = props.ref; | ||
| type = { | ||
@@ -183,3 +180,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
| }; | ||
| null !== (void 0 !== self ? self : null) | ||
| null !== (void 0 !== refProp ? refProp : null) | ||
| ? Object.defineProperty(type, "ref", { | ||
@@ -222,6 +219,4 @@ enumerable: !1, | ||
| newKey, | ||
| void 0, | ||
| void 0, | ||
| oldElement.props, | ||
| oldElement._owner, | ||
| oldElement.props, | ||
| oldElement._debugStack, | ||
@@ -234,2 +229,14 @@ oldElement._debugTask | ||
| } | ||
| function validateChildKeys(node) { | ||
| isValidElement(node) | ||
| ? node._store && (node._store.validated = 1) | ||
| : "object" === typeof node && | ||
| null !== node && | ||
| node.$$typeof === REACT_LAZY_TYPE && | ||
| ("fulfilled" === node._payload.status | ||
| ? isValidElement(node._payload.value) && | ||
| node._payload.value._store && | ||
| (node._payload.value._store.validated = 1) | ||
| : node._store && (node._store.validated = 1)); | ||
| } | ||
| function isValidElement(object) { | ||
@@ -252,9 +259,19 @@ return ( | ||
| function getElementKey(element, index) { | ||
| return "object" === typeof element && | ||
| if ( | ||
| "object" === typeof element && | ||
| null !== element && | ||
| null != element.key | ||
| ? (checkKeyStringCoercion(element.key), escape("" + element.key)) | ||
| : index.toString(36); | ||
| ) { | ||
| if (element.key === REACT_OPTIMISTIC_KEY) | ||
| return ( | ||
| console.error( | ||
| "React.Children helpers don't support optimisticKey." | ||
| ), | ||
| index.toString(36) | ||
| ); | ||
| checkKeyStringCoercion(element.key); | ||
| return escape("" + element.key); | ||
| } | ||
| return index.toString(36); | ||
| } | ||
| function noop$1() {} | ||
| function resolveThenable(thenable) { | ||
@@ -269,3 +286,3 @@ switch (thenable.status) { | ||
| ("string" === typeof thenable.status | ||
| ? thenable.then(noop$1, noop$1) | ||
| ? thenable.then(noop, noop) | ||
| : ((thenable.status = "pending"), | ||
@@ -440,31 +457,70 @@ thenable.then( | ||
| if (-1 === payload._status) { | ||
| var ctor = payload._result; | ||
| ctor = ctor(); | ||
| ctor.then( | ||
| var resolveDebugValue = null, | ||
| rejectDebugValue = null, | ||
| ioInfo = payload._ioInfo; | ||
| null != ioInfo && | ||
| ((ioInfo.start = ioInfo.end = performance.now()), | ||
| (ioInfo.value = new Promise(function (resolve, reject) { | ||
| resolveDebugValue = resolve; | ||
| rejectDebugValue = reject; | ||
| }))); | ||
| ioInfo = payload._result; | ||
| var thenable = ioInfo(); | ||
| thenable.then( | ||
| function (moduleObject) { | ||
| if (0 === payload._status || -1 === payload._status) | ||
| (payload._status = 1), (payload._result = moduleObject); | ||
| if (0 === payload._status || -1 === payload._status) { | ||
| payload._status = 1; | ||
| payload._result = moduleObject; | ||
| var _ioInfo = payload._ioInfo; | ||
| if (null != _ioInfo) { | ||
| _ioInfo.end = performance.now(); | ||
| var debugValue = | ||
| null == moduleObject ? void 0 : moduleObject.default; | ||
| resolveDebugValue(debugValue); | ||
| _ioInfo.value.status = "fulfilled"; | ||
| _ioInfo.value.value = debugValue; | ||
| } | ||
| void 0 === thenable.status && | ||
| ((thenable.status = "fulfilled"), | ||
| (thenable.value = moduleObject)); | ||
| } | ||
| }, | ||
| function (error) { | ||
| if (0 === payload._status || -1 === payload._status) | ||
| (payload._status = 2), (payload._result = error); | ||
| if (0 === payload._status || -1 === payload._status) { | ||
| payload._status = 2; | ||
| payload._result = error; | ||
| var _ioInfo2 = payload._ioInfo; | ||
| null != _ioInfo2 && | ||
| ((_ioInfo2.end = performance.now()), | ||
| _ioInfo2.value.then(noop, noop), | ||
| rejectDebugValue(error), | ||
| (_ioInfo2.value.status = "rejected"), | ||
| (_ioInfo2.value.reason = error)); | ||
| void 0 === thenable.status && | ||
| ((thenable.status = "rejected"), (thenable.reason = error)); | ||
| } | ||
| } | ||
| ); | ||
| ioInfo = payload._ioInfo; | ||
| if (null != ioInfo) { | ||
| var displayName = thenable.displayName; | ||
| "string" === typeof displayName && (ioInfo.name = displayName); | ||
| } | ||
| -1 === payload._status && | ||
| ((payload._status = 0), (payload._result = ctor)); | ||
| ((payload._status = 0), (payload._result = thenable)); | ||
| } | ||
| if (1 === payload._status) | ||
| return ( | ||
| (ctor = payload._result), | ||
| void 0 === ctor && | ||
| (ioInfo = payload._result), | ||
| void 0 === ioInfo && | ||
| console.error( | ||
| "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", | ||
| ctor | ||
| ioInfo | ||
| ), | ||
| "default" in ctor || | ||
| "default" in ioInfo || | ||
| console.error( | ||
| "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", | ||
| ctor | ||
| ioInfo | ||
| ), | ||
| ctor.default | ||
| ioInfo.default | ||
| ); | ||
@@ -479,3 +535,5 @@ throw payload._result; | ||
| } | ||
| function noop() {} | ||
| function releaseAsyncTransition() { | ||
| ReactSharedInternals.asyncTransitions--; | ||
| } | ||
| function cleanup(entryValue) { | ||
@@ -503,2 +561,3 @@ var entry = TaintRegistryValues.get(entryValue); | ||
| ReactSharedInternals.getCurrentStack = null; | ||
| ReactSharedInternals.recentlyCreatedOwnerStacks = 0; | ||
| var isArrayImpl = Array.isArray, | ||
@@ -509,5 +568,4 @@ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
| Symbol.for("react.provider"); | ||
| var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
| REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
| REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -519,19 +577,27 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
| REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
| REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), | ||
| REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
| REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
| REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
| MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
| REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
| REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"), | ||
| REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
| hasOwnProperty = Object.prototype.hasOwnProperty, | ||
| assign = Object.assign, | ||
| REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); | ||
| new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
| var createTask = console.createTask | ||
| createTask = console.createTask | ||
| ? console.createTask | ||
| : function () { | ||
| return null; | ||
| }, | ||
| specialPropKeyWarningShown, | ||
| didWarnAboutOldJSXRuntime; | ||
| }; | ||
| TaintRegistryObjects$1 = { | ||
| react_stack_bottom_frame: function (callStackForError) { | ||
| return callStackForError(); | ||
| } | ||
| }; | ||
| var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime; | ||
| var didWarnAboutElementRef = {}; | ||
| var unknownOwnerDebugStack = | ||
| TaintRegistryObjects$1.react_stack_bottom_frame.bind( | ||
| TaintRegistryObjects$1, | ||
| UnknownOwner | ||
| )(); | ||
| var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
| var didWarnAboutMaps = !1, | ||
@@ -581,3 +647,3 @@ userProvidedKeyEscapeRegex = /\/+/g, | ||
| : null; | ||
| exports.Children = { | ||
| TaintRegistryObjects$1 = { | ||
| map: mapChildren, | ||
@@ -615,2 +681,4 @@ forEach: function (children, forEachFunc, forEachContext) { | ||
| }; | ||
| exports.Activity = REACT_ACTIVITY_TYPE; | ||
| exports.Children = TaintRegistryObjects$1; | ||
| exports.Fragment = REACT_FRAGMENT_TYPE; | ||
@@ -620,2 +688,3 @@ exports.Profiler = REACT_PROFILER_TYPE; | ||
| exports.Suspense = REACT_SUSPENSE_TYPE; | ||
| exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
| exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = | ||
@@ -667,2 +736,6 @@ ReactSharedInternals; | ||
| }; | ||
| exports.cacheSignal = function () { | ||
| var dispatcher = ReactSharedInternals.A; | ||
| return dispatcher ? dispatcher.cacheSignal() : null; | ||
| }; | ||
| exports.captureOwnerStack = function () { | ||
@@ -700,3 +773,5 @@ var getCurrentStack = ReactSharedInternals.getCurrentStack; | ||
| hasValidKey(config) && | ||
| (checkKeyStringCoercion(config.key), (key = "" + config.key)); | ||
| (config.key === REACT_OPTIMISTIC_KEY | ||
| ? (key = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(config.key), (key = "" + config.key))); | ||
| for (propName in config) | ||
@@ -721,6 +796,4 @@ !hasOwnProperty.call(config, propName) || | ||
| key, | ||
| void 0, | ||
| void 0, | ||
| props, | ||
| owner, | ||
| props, | ||
| element._debugStack, | ||
@@ -730,14 +803,11 @@ element._debugTask | ||
| for (key = 2; key < arguments.length; key++) | ||
| (owner = arguments[key]), | ||
| isValidElement(owner) && owner._store && (owner._store.validated = 1); | ||
| validateChildKeys(arguments[key]); | ||
| return props; | ||
| }; | ||
| exports.createElement = function (type, config, children) { | ||
| for (var i = 2; i < arguments.length; i++) { | ||
| var node = arguments[i]; | ||
| isValidElement(node) && node._store && (node._store.validated = 1); | ||
| } | ||
| for (var i = 2; i < arguments.length; i++) | ||
| validateChildKeys(arguments[i]); | ||
| var propName; | ||
| i = {}; | ||
| node = null; | ||
| var key = null; | ||
| if (null != config) | ||
@@ -752,3 +822,5 @@ for (propName in (didWarnAboutOldJSXRuntime || | ||
| hasValidKey(config) && | ||
| (checkKeyStringCoercion(config.key), (node = "" + config.key)), | ||
| (config.key === REACT_OPTIMISTIC_KEY | ||
| ? (key = REACT_OPTIMISTIC_KEY) | ||
| : (checkKeyStringCoercion(config.key), (key = "" + config.key))), | ||
| config)) | ||
@@ -775,3 +847,3 @@ hasOwnProperty.call(config, propName) && | ||
| void 0 === i[propName] && (i[propName] = childrenLength[propName]); | ||
| node && | ||
| key && | ||
| defineKeyPropWarningGetter( | ||
@@ -783,11 +855,15 @@ i, | ||
| ); | ||
| (propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) | ||
| ? ((childArray = Error.stackTraceLimit), | ||
| (Error.stackTraceLimit = 10), | ||
| (childrenLength = Error("react-stack-top-frame")), | ||
| (Error.stackTraceLimit = childArray)) | ||
| : (childrenLength = unknownOwnerDebugStack); | ||
| return ReactElement( | ||
| type, | ||
| node, | ||
| void 0, | ||
| void 0, | ||
| key, | ||
| i, | ||
| getOwner(), | ||
| i, | ||
| Error("react-stack-top-frame"), | ||
| createTask(getTaskName(type)) | ||
| childrenLength, | ||
| propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
| ); | ||
@@ -904,27 +980,23 @@ }; | ||
| exports.lazy = function (ctor) { | ||
| return { | ||
| $$typeof: REACT_LAZY_TYPE, | ||
| _payload: { _status: -1, _result: ctor }, | ||
| _init: lazyInitializer | ||
| }; | ||
| ctor = { _status: -1, _result: ctor }; | ||
| var lazyType = { | ||
| $$typeof: REACT_LAZY_TYPE, | ||
| _payload: ctor, | ||
| _init: lazyInitializer | ||
| }, | ||
| ioInfo = { | ||
| name: "lazy", | ||
| start: -1, | ||
| end: -1, | ||
| value: null, | ||
| owner: null, | ||
| debugStack: Error("react-stack-top-frame"), | ||
| debugTask: console.createTask ? console.createTask("lazy()") : null | ||
| }; | ||
| ctor._ioInfo = ioInfo; | ||
| lazyType._debugInfo = [{ awaited: ioInfo }]; | ||
| return lazyType; | ||
| }; | ||
| exports.memo = function (type, compare) { | ||
| "string" === typeof type || | ||
| "function" === typeof type || | ||
| type === REACT_FRAGMENT_TYPE || | ||
| type === REACT_PROFILER_TYPE || | ||
| type === REACT_STRICT_MODE_TYPE || | ||
| type === REACT_SUSPENSE_TYPE || | ||
| type === REACT_SUSPENSE_LIST_TYPE || | ||
| type === REACT_OFFSCREEN_TYPE || | ||
| type === REACT_VIEW_TRANSITION_TYPE || | ||
| ("object" === typeof type && | ||
| null !== type && | ||
| (type.$$typeof === REACT_LAZY_TYPE || | ||
| type.$$typeof === REACT_MEMO_TYPE || | ||
| type.$$typeof === REACT_CONTEXT_TYPE || | ||
| type.$$typeof === REACT_CONSUMER_TYPE || | ||
| type.$$typeof === REACT_FORWARD_REF_TYPE || | ||
| type.$$typeof === REACT_CLIENT_REFERENCE || | ||
| void 0 !== type.getModuleId)) || | ||
| null == type && | ||
| console.error( | ||
@@ -956,7 +1028,11 @@ "memo: The first argument must be a component. Instead received: %s", | ||
| }; | ||
| exports.optimisticKey = REACT_OPTIMISTIC_KEY; | ||
| exports.startTransition = function (scope) { | ||
| var prevTransition = ReactSharedInternals.T, | ||
| currentTransition = {}; | ||
| currentTransition.types = | ||
| null !== prevTransition ? prevTransition.types : null; | ||
| currentTransition.gesture = null; | ||
| currentTransition._updatedFibers = new Set(); | ||
| ReactSharedInternals.T = currentTransition; | ||
| currentTransition._updatedFibers = new Set(); | ||
| try { | ||
@@ -970,3 +1046,5 @@ var returnValue = scope(), | ||
| "function" === typeof returnValue.then && | ||
| returnValue.then(noop, reportGlobalError); | ||
| (ReactSharedInternals.asyncTransitions++, | ||
| returnValue.then(releaseAsyncTransition, releaseAsyncTransition), | ||
| returnValue.then(noop, reportGlobalError)); | ||
| } catch (error) { | ||
@@ -983,2 +1061,10 @@ reportGlobalError(error); | ||
| )), | ||
| null !== prevTransition && | ||
| null !== currentTransition.types && | ||
| (null !== prevTransition.types && | ||
| prevTransition.types !== currentTransition.types && | ||
| console.error( | ||
| "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React." | ||
| ), | ||
| (prevTransition.types = currentTransition.types)), | ||
| (ReactSharedInternals.T = prevTransition); | ||
@@ -988,3 +1074,2 @@ } | ||
| exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
| exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
| exports.unstable_getCacheForType = function (resourceType) { | ||
@@ -996,7 +1081,2 @@ var dispatcher = ReactSharedInternals.A; | ||
| }; | ||
| exports.unstable_postpone = function (reason) { | ||
| reason = Error(reason); | ||
| reason.$$typeof = REACT_POSTPONE_TYPE; | ||
| throw reason; | ||
| }; | ||
| exports.use = function (usable) { | ||
@@ -1017,3 +1097,3 @@ return resolveDispatcher().use(usable); | ||
| }; | ||
| exports.version = "19.1.0-experimental-d55cc79b-20250228"; | ||
| exports.version = "19.3.0-experimental-d5736f09-20260507"; | ||
| })(); |
@@ -39,4 +39,5 @@ /** | ||
| } | ||
| var isArrayImpl = Array.isArray, | ||
| REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| var isArrayImpl = Array.isArray; | ||
| function noop() {} | ||
| var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
| REACT_PORTAL_TYPE = Symbol.for("react.portal"), | ||
@@ -51,3 +52,3 @@ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), | ||
| REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
| REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
| REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
| REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
@@ -62,6 +63,7 @@ MAYBE_ITERATOR_SYMBOL = Symbol.iterator; | ||
| } | ||
| var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
| var REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"), | ||
| hasOwnProperty = Object.prototype.hasOwnProperty, | ||
| assign = Object.assign; | ||
| function ReactElement(type, key, self, source, owner, props) { | ||
| self = props.ref; | ||
| function ReactElement(type, key, props) { | ||
| var refProp = props.ref; | ||
| return { | ||
@@ -71,3 +73,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
| key: key, | ||
| ref: void 0 !== self ? self : null, | ||
| ref: void 0 !== refProp ? refProp : null, | ||
| props: props | ||
@@ -77,10 +79,3 @@ }; | ||
| function cloneAndReplaceKey(oldElement, newKey) { | ||
| return ReactElement( | ||
| oldElement.type, | ||
| newKey, | ||
| void 0, | ||
| void 0, | ||
| void 0, | ||
| oldElement.props | ||
| ); | ||
| return ReactElement(oldElement.type, newKey, oldElement.props); | ||
| } | ||
@@ -106,6 +101,7 @@ function isValidElement(object) { | ||
| return "object" === typeof element && null !== element && null != element.key | ||
| ? escape("" + element.key) | ||
| ? element.key === REACT_OPTIMISTIC_KEY | ||
| ? index.toString(36) | ||
| : escape("" + element.key) | ||
| : index.toString(36); | ||
| } | ||
| function noop$1() {} | ||
| function resolveThenable(thenable) { | ||
@@ -120,3 +116,3 @@ switch (thenable.status) { | ||
| ("string" === typeof thenable.status | ||
| ? thenable.then(noop$1, noop$1) | ||
| ? thenable.then(noop, noop) | ||
| : ((thenable.status = "pending"), | ||
@@ -265,15 +261,23 @@ thenable.then( | ||
| if (-1 === payload._status) { | ||
| var ctor = payload._result; | ||
| ctor = ctor(); | ||
| ctor.then( | ||
| var ctor = payload._result, | ||
| thenable = ctor(); | ||
| thenable.then( | ||
| function (moduleObject) { | ||
| if (0 === payload._status || -1 === payload._status) | ||
| (payload._status = 1), (payload._result = moduleObject); | ||
| (payload._status = 1), | ||
| (payload._result = moduleObject), | ||
| void 0 === thenable.status && | ||
| ((thenable.status = "fulfilled"), | ||
| (thenable.value = moduleObject)); | ||
| }, | ||
| function (error) { | ||
| if (0 === payload._status || -1 === payload._status) | ||
| (payload._status = 2), (payload._result = error); | ||
| (payload._status = 2), | ||
| (payload._result = error), | ||
| void 0 === thenable.status && | ||
| ((thenable.status = "rejected"), (thenable.reason = error)); | ||
| } | ||
| ); | ||
| -1 === payload._status && ((payload._status = 0), (payload._result = ctor)); | ||
| -1 === payload._status && | ||
| ((payload._status = 0), (payload._result = thenable)); | ||
| } | ||
@@ -290,32 +294,31 @@ if (1 === payload._status) return payload._result.default; | ||
| var reportGlobalError = | ||
| "function" === typeof reportError | ||
| ? reportError | ||
| : function (error) { | ||
| if ( | ||
| "object" === typeof window && | ||
| "function" === typeof window.ErrorEvent | ||
| ) { | ||
| var event = new window.ErrorEvent("error", { | ||
| bubbles: !0, | ||
| cancelable: !0, | ||
| message: | ||
| "object" === typeof error && | ||
| null !== error && | ||
| "string" === typeof error.message | ||
| ? String(error.message) | ||
| : String(error), | ||
| error: error | ||
| }); | ||
| if (!window.dispatchEvent(event)) return; | ||
| } else if ( | ||
| "object" === typeof process && | ||
| "function" === typeof process.emit | ||
| ) { | ||
| process.emit("uncaughtException", error); | ||
| return; | ||
| } | ||
| console.error(error); | ||
| }; | ||
| function noop() {} | ||
| var getPrototypeOf = Object.getPrototypeOf, | ||
| "function" === typeof reportError | ||
| ? reportError | ||
| : function (error) { | ||
| if ( | ||
| "object" === typeof window && | ||
| "function" === typeof window.ErrorEvent | ||
| ) { | ||
| var event = new window.ErrorEvent("error", { | ||
| bubbles: !0, | ||
| cancelable: !0, | ||
| message: | ||
| "object" === typeof error && | ||
| null !== error && | ||
| "string" === typeof error.message | ||
| ? String(error.message) | ||
| : String(error), | ||
| error: error | ||
| }); | ||
| if (!window.dispatchEvent(event)) return; | ||
| } else if ( | ||
| "object" === typeof process && | ||
| "function" === typeof process.emit | ||
| ) { | ||
| process.emit("uncaughtException", error); | ||
| return; | ||
| } | ||
| console.error(error); | ||
| }, | ||
| getPrototypeOf = Object.getPrototypeOf, | ||
| TaintRegistryObjects = ReactSharedInternals.TaintRegistryObjects, | ||
@@ -337,35 +340,37 @@ TaintRegistryValues = ReactSharedInternals.TaintRegistryValues, | ||
| var finalizationRegistry = | ||
| "function" === typeof FinalizationRegistry | ||
| ? new FinalizationRegistry(cleanup) | ||
| : null; | ||
| exports.Children = { | ||
| map: mapChildren, | ||
| forEach: function (children, forEachFunc, forEachContext) { | ||
| mapChildren( | ||
| children, | ||
| function () { | ||
| forEachFunc.apply(this, arguments); | ||
| }, | ||
| forEachContext | ||
| ); | ||
| }, | ||
| count: function (children) { | ||
| var n = 0; | ||
| mapChildren(children, function () { | ||
| n++; | ||
| }); | ||
| return n; | ||
| }, | ||
| toArray: function (children) { | ||
| return ( | ||
| mapChildren(children, function (child) { | ||
| return child; | ||
| }) || [] | ||
| ); | ||
| }, | ||
| only: function (children) { | ||
| if (!isValidElement(children)) throw Error(formatProdErrorMessage(143)); | ||
| return children; | ||
| } | ||
| }; | ||
| "function" === typeof FinalizationRegistry | ||
| ? new FinalizationRegistry(cleanup) | ||
| : null, | ||
| Children = { | ||
| map: mapChildren, | ||
| forEach: function (children, forEachFunc, forEachContext) { | ||
| mapChildren( | ||
| children, | ||
| function () { | ||
| forEachFunc.apply(this, arguments); | ||
| }, | ||
| forEachContext | ||
| ); | ||
| }, | ||
| count: function (children) { | ||
| var n = 0; | ||
| mapChildren(children, function () { | ||
| n++; | ||
| }); | ||
| return n; | ||
| }, | ||
| toArray: function (children) { | ||
| return ( | ||
| mapChildren(children, function (child) { | ||
| return child; | ||
| }) || [] | ||
| ); | ||
| }, | ||
| only: function (children) { | ||
| if (!isValidElement(children)) throw Error(formatProdErrorMessage(143)); | ||
| return children; | ||
| } | ||
| }; | ||
| exports.Activity = REACT_ACTIVITY_TYPE; | ||
| exports.Children = Children; | ||
| exports.Fragment = REACT_FRAGMENT_TYPE; | ||
@@ -375,2 +380,3 @@ exports.Profiler = REACT_PROFILER_TYPE; | ||
| exports.Suspense = REACT_SUSPENSE_TYPE; | ||
| exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
| exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = | ||
@@ -418,2 +424,6 @@ ReactSharedInternals; | ||
| }; | ||
| exports.cacheSignal = function () { | ||
| var dispatcher = ReactSharedInternals.A; | ||
| return dispatcher ? dispatcher.cacheSignal() : null; | ||
| }; | ||
| exports.cloneElement = function (element, config, children) { | ||
@@ -423,7 +433,9 @@ if (null === element || void 0 === element) | ||
| var props = assign({}, element.props), | ||
| key = element.key, | ||
| owner = void 0; | ||
| key = element.key; | ||
| if (null != config) | ||
| for (propName in (void 0 !== config.ref && (owner = void 0), | ||
| void 0 !== config.key && (key = "" + config.key), | ||
| for (propName in (void 0 !== config.key && | ||
| (key = | ||
| config.key === REACT_OPTIMISTIC_KEY | ||
| ? REACT_OPTIMISTIC_KEY | ||
| : "" + config.key), | ||
| config)) | ||
@@ -443,3 +455,3 @@ !hasOwnProperty.call(config, propName) || | ||
| } | ||
| return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
| return ReactElement(element.type, key, props); | ||
| }; | ||
@@ -451,3 +463,8 @@ exports.createElement = function (type, config, children) { | ||
| if (null != config) | ||
| for (propName in (void 0 !== config.key && (key = "" + config.key), config)) | ||
| for (propName in (void 0 !== config.key && | ||
| (key = | ||
| config.key === REACT_OPTIMISTIC_KEY | ||
| ? REACT_OPTIMISTIC_KEY | ||
| : "" + config.key), | ||
| config)) | ||
| hasOwnProperty.call(config, propName) && | ||
@@ -469,3 +486,3 @@ "key" !== propName && | ||
| (props[propName] = childrenLength[propName]); | ||
| return ReactElement(type, key, void 0, void 0, null, props); | ||
| return ReactElement(type, key, props); | ||
| }; | ||
@@ -537,5 +554,9 @@ exports.createRef = function () { | ||
| }; | ||
| exports.optimisticKey = REACT_OPTIMISTIC_KEY; | ||
| exports.startTransition = function (scope) { | ||
| var prevTransition = ReactSharedInternals.T, | ||
| currentTransition = {}; | ||
| currentTransition.types = | ||
| null !== prevTransition ? prevTransition.types : null; | ||
| currentTransition.gesture = null; | ||
| ReactSharedInternals.T = currentTransition; | ||
@@ -554,7 +575,9 @@ try { | ||
| } finally { | ||
| ReactSharedInternals.T = prevTransition; | ||
| null !== prevTransition && | ||
| null !== currentTransition.types && | ||
| (prevTransition.types = currentTransition.types), | ||
| (ReactSharedInternals.T = prevTransition); | ||
| } | ||
| }; | ||
| exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
| exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
| exports.unstable_getCacheForType = function (resourceType) { | ||
@@ -564,7 +587,2 @@ var dispatcher = ReactSharedInternals.A; | ||
| }; | ||
| exports.unstable_postpone = function (reason) { | ||
| reason = Error(reason); | ||
| reason.$$typeof = REACT_POSTPONE_TYPE; | ||
| throw reason; | ||
| }; | ||
| exports.use = function (usable) { | ||
@@ -583,2 +601,2 @@ return ReactSharedInternals.H.use(usable); | ||
| }; | ||
| exports.version = "19.1.0-experimental-d55cc79b-20250228"; | ||
| exports.version = "19.3.0-experimental-d5736f09-20260507"; |
+1
-1
@@ -7,3 +7,3 @@ { | ||
| ], | ||
| "version": "0.0.0-experimental-d55cc79b-20250228", | ||
| "version": "0.0.0-experimental-d5736f09-20260507", | ||
| "homepage": "https://react.dev/", | ||
@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
198386
10.35%5450
7.54%0
-100%17
6.25%