mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Make enableOwnerStacks dynamic (#31661)
following up on https://github.com/facebook/react/pull/31287, fixing
tests
---------
Co-authored-by: Rick Hanlon <rickhanlonii@fb.com>
DiffTrain build for [a4964987dc](https://github.com/facebook/react/commit/a4964987dc140526702e996223fe7ee293def8ac)
This commit is contained in:
@@ -373,6 +373,21 @@ __DEV__ &&
|
||||
}
|
||||
return "";
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if (
|
||||
"object" === typeof type &&
|
||||
null !== type &&
|
||||
type.$$typeof === REACT_LAZY_TYPE
|
||||
)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
@@ -409,7 +424,16 @@ __DEV__ &&
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(type, key, self, source, owner, props) {
|
||||
function ReactElement(
|
||||
type,
|
||||
key,
|
||||
self,
|
||||
source,
|
||||
owner,
|
||||
props,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
self = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
@@ -437,6 +461,19 @@ __DEV__ &&
|
||||
writable: !0,
|
||||
value: null
|
||||
});
|
||||
enableOwnerStacks &&
|
||||
(Object.defineProperty(type, "_debugStack", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugStack
|
||||
}),
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugTask
|
||||
}));
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
@@ -446,9 +483,12 @@ __DEV__ &&
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self
|
||||
self,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
if (
|
||||
enableOwnerStacks ||
|
||||
"string" === typeof type ||
|
||||
"function" === typeof type ||
|
||||
type === REACT_FRAGMENT_TYPE ||
|
||||
@@ -562,10 +602,21 @@ __DEV__ &&
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
return ReactElement(type, children, self, source, getOwner(), maybeKey);
|
||||
return ReactElement(
|
||||
type,
|
||||
children,
|
||||
self,
|
||||
source,
|
||||
getOwner(),
|
||||
maybeKey,
|
||||
debugStack,
|
||||
debugTask
|
||||
);
|
||||
}
|
||||
function validateChildKeys(node, parentType) {
|
||||
if (
|
||||
if (enableOwnerStacks)
|
||||
isValidElement(node) && node._store && (node._store.validated = 1);
|
||||
else if (
|
||||
"object" === typeof node &&
|
||||
node &&
|
||||
node.$$typeof !== REACT_CLIENT_REFERENCE
|
||||
@@ -601,6 +652,7 @@ __DEV__ &&
|
||||
}
|
||||
function validateExplicitKey(element, parentType) {
|
||||
if (
|
||||
!enableOwnerStacks &&
|
||||
element._store &&
|
||||
!element._store.validated &&
|
||||
null == element.key &&
|
||||
@@ -651,12 +703,13 @@ __DEV__ &&
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing;
|
||||
dynamicFeatureFlags = dynamicFeatureFlags.renameElementSymbol;
|
||||
var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_ELEMENT_TYPE = dynamicFeatureFlags
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
|
||||
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
|
||||
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks;
|
||||
dynamicFeatureFlags = Symbol.for("react.element");
|
||||
var REACT_ELEMENT_TYPE = renameElementSymbol
|
||||
? Symbol.for("react.transitional.element")
|
||||
: REACT_LEGACY_ELEMENT_TYPE,
|
||||
: dynamicFeatureFlags,
|
||||
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
||||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
||||
@@ -699,6 +752,12 @@ __DEV__ &&
|
||||
"function" === typeof WeakMap ? WeakMap : Map
|
||||
)();
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
||||
createTask =
|
||||
enableOwnerStacks && console.createTask
|
||||
? console.createTask
|
||||
: function () {
|
||||
return null;
|
||||
},
|
||||
specialPropKeyWarningShown;
|
||||
var didWarnAboutElementRef = {};
|
||||
var didWarnAboutKeySpread = {},
|
||||
@@ -712,6 +771,15 @@ __DEV__ &&
|
||||
source,
|
||||
self
|
||||
) {
|
||||
return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
enableOwnerStacks ? Error("react-stack-top-frame") : void 0,
|
||||
enableOwnerStacks ? createTask(getTaskName(type)) : void 0
|
||||
);
|
||||
};
|
||||
})();
|
||||
|
||||
@@ -373,6 +373,21 @@ __DEV__ &&
|
||||
}
|
||||
return "";
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if (
|
||||
"object" === typeof type &&
|
||||
null !== type &&
|
||||
type.$$typeof === REACT_LAZY_TYPE
|
||||
)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
@@ -409,7 +424,16 @@ __DEV__ &&
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(type, key, self, source, owner, props) {
|
||||
function ReactElement(
|
||||
type,
|
||||
key,
|
||||
self,
|
||||
source,
|
||||
owner,
|
||||
props,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
self = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
@@ -437,6 +461,19 @@ __DEV__ &&
|
||||
writable: !0,
|
||||
value: null
|
||||
});
|
||||
enableOwnerStacks &&
|
||||
(Object.defineProperty(type, "_debugStack", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugStack
|
||||
}),
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugTask
|
||||
}));
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
@@ -446,9 +483,12 @@ __DEV__ &&
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self
|
||||
self,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
if (
|
||||
enableOwnerStacks ||
|
||||
"string" === typeof type ||
|
||||
"function" === typeof type ||
|
||||
type === REACT_FRAGMENT_TYPE ||
|
||||
@@ -562,10 +602,21 @@ __DEV__ &&
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
return ReactElement(type, children, self, source, getOwner(), maybeKey);
|
||||
return ReactElement(
|
||||
type,
|
||||
children,
|
||||
self,
|
||||
source,
|
||||
getOwner(),
|
||||
maybeKey,
|
||||
debugStack,
|
||||
debugTask
|
||||
);
|
||||
}
|
||||
function validateChildKeys(node, parentType) {
|
||||
if (
|
||||
if (enableOwnerStacks)
|
||||
isValidElement(node) && node._store && (node._store.validated = 1);
|
||||
else if (
|
||||
"object" === typeof node &&
|
||||
node &&
|
||||
node.$$typeof !== REACT_CLIENT_REFERENCE
|
||||
@@ -601,6 +652,7 @@ __DEV__ &&
|
||||
}
|
||||
function validateExplicitKey(element, parentType) {
|
||||
if (
|
||||
!enableOwnerStacks &&
|
||||
element._store &&
|
||||
!element._store.validated &&
|
||||
null == element.key &&
|
||||
@@ -651,12 +703,13 @@ __DEV__ &&
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing;
|
||||
dynamicFeatureFlags = dynamicFeatureFlags.renameElementSymbol;
|
||||
var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_ELEMENT_TYPE = dynamicFeatureFlags
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
|
||||
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
|
||||
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks;
|
||||
dynamicFeatureFlags = Symbol.for("react.element");
|
||||
var REACT_ELEMENT_TYPE = renameElementSymbol
|
||||
? Symbol.for("react.transitional.element")
|
||||
: REACT_LEGACY_ELEMENT_TYPE,
|
||||
: dynamicFeatureFlags,
|
||||
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
||||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
||||
@@ -699,6 +752,12 @@ __DEV__ &&
|
||||
"function" === typeof WeakMap ? WeakMap : Map
|
||||
)();
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
||||
createTask =
|
||||
enableOwnerStacks && console.createTask
|
||||
? console.createTask
|
||||
: function () {
|
||||
return null;
|
||||
},
|
||||
specialPropKeyWarningShown;
|
||||
var didWarnAboutElementRef = {};
|
||||
var didWarnAboutKeySpread = {},
|
||||
@@ -712,6 +771,15 @@ __DEV__ &&
|
||||
source,
|
||||
self
|
||||
) {
|
||||
return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
enableOwnerStacks ? Error("react-stack-top-frame") : void 0,
|
||||
enableOwnerStacks ? createTask(getTaskName(type)) : void 0
|
||||
);
|
||||
};
|
||||
})();
|
||||
|
||||
@@ -1 +1 @@
|
||||
7c4a7c9ddf2f1c8e223565af1256ea201ec0f303
|
||||
a4964987dc140526702e996223fe7ee293def8ac
|
||||
|
||||
@@ -1 +1 @@
|
||||
7c4a7c9ddf2f1c8e223565af1256ea201ec0f303
|
||||
a4964987dc140526702e996223fe7ee293def8ac
|
||||
|
||||
@@ -460,6 +460,21 @@ __DEV__ &&
|
||||
}
|
||||
return "";
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if (
|
||||
"object" === typeof type &&
|
||||
null !== type &&
|
||||
type.$$typeof === REACT_LAZY_TYPE
|
||||
)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
@@ -496,7 +511,16 @@ __DEV__ &&
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(type, key, self, source, owner, props) {
|
||||
function ReactElement(
|
||||
type,
|
||||
key,
|
||||
self,
|
||||
source,
|
||||
owner,
|
||||
props,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
self = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
@@ -524,6 +548,19 @@ __DEV__ &&
|
||||
writable: !0,
|
||||
value: null
|
||||
});
|
||||
enableOwnerStacks &&
|
||||
(Object.defineProperty(type, "_debugStack", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugStack
|
||||
}),
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugTask
|
||||
}));
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
@@ -533,9 +570,11 @@ __DEV__ &&
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self
|
||||
self,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
if (isValidElementType(type)) {
|
||||
if (enableOwnerStacks || isValidElementType(type)) {
|
||||
var children = config.children;
|
||||
if (void 0 !== children)
|
||||
if (isStaticChildren)
|
||||
@@ -624,7 +663,16 @@ __DEV__ &&
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
return ReactElement(type, children, self, source, getOwner(), maybeKey);
|
||||
return ReactElement(
|
||||
type,
|
||||
children,
|
||||
self,
|
||||
source,
|
||||
getOwner(),
|
||||
maybeKey,
|
||||
debugStack,
|
||||
debugTask
|
||||
);
|
||||
}
|
||||
function cloneAndReplaceKey(oldElement, newKey) {
|
||||
newKey = ReactElement(
|
||||
@@ -633,13 +681,17 @@ __DEV__ &&
|
||||
void 0,
|
||||
void 0,
|
||||
oldElement._owner,
|
||||
oldElement.props
|
||||
oldElement.props,
|
||||
enableOwnerStacks ? oldElement._debugStack : void 0,
|
||||
enableOwnerStacks ? oldElement._debugTask : void 0
|
||||
);
|
||||
newKey._store.validated = oldElement._store.validated;
|
||||
return newKey;
|
||||
}
|
||||
function validateChildKeys(node, parentType) {
|
||||
if (
|
||||
if (enableOwnerStacks)
|
||||
isValidElement(node) && node._store && (node._store.validated = 1);
|
||||
else if (
|
||||
"object" === typeof node &&
|
||||
node &&
|
||||
node.$$typeof !== REACT_CLIENT_REFERENCE
|
||||
@@ -670,6 +722,7 @@ __DEV__ &&
|
||||
}
|
||||
function validateExplicitKey(element, parentType) {
|
||||
if (
|
||||
!enableOwnerStacks &&
|
||||
element._store &&
|
||||
!element._store.validated &&
|
||||
null == element.key &&
|
||||
@@ -1046,6 +1099,11 @@ __DEV__ &&
|
||||
}
|
||||
}
|
||||
}
|
||||
function captureOwnerStack() {
|
||||
if (!enableOwnerStacks) return null;
|
||||
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
||||
return null === getCurrentStack ? null : getCurrentStack();
|
||||
}
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
||||
@@ -1059,6 +1117,7 @@ __DEV__ &&
|
||||
enableUseResourceEffectHook =
|
||||
dynamicFeatureFlags.enableUseResourceEffectHook,
|
||||
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
|
||||
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
|
||||
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_ELEMENT_TYPE = renameElementSymbol
|
||||
? Symbol.for("react.transitional.element")
|
||||
@@ -1167,6 +1226,12 @@ __DEV__ &&
|
||||
"function" === typeof WeakMap ? WeakMap : Map
|
||||
)();
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
||||
createTask =
|
||||
enableOwnerStacks && console.createTask
|
||||
? console.createTask
|
||||
: function () {
|
||||
return null;
|
||||
},
|
||||
specialPropKeyWarningShown,
|
||||
didWarnAboutOldJSXRuntime;
|
||||
var didWarnAboutElementRef = {};
|
||||
@@ -1217,42 +1282,45 @@ __DEV__ &&
|
||||
}
|
||||
: enqueueTask,
|
||||
ReactCompilerRuntime = { c: useMemoCache },
|
||||
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(
|
||||
"React.Children.only expected to receive a single React element child."
|
||||
);
|
||||
return children;
|
||||
}
|
||||
},
|
||||
experimental_useResourceEffect = enableUseResourceEffectHook
|
||||
? useResourceEffect
|
||||
: void 0;
|
||||
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(
|
||||
"React.Children.only expected to receive a single React element child."
|
||||
);
|
||||
return children;
|
||||
}
|
||||
};
|
||||
exports.captureOwnerStack = void 0;
|
||||
enableOwnerStacks && (exports.captureOwnerStack = captureOwnerStack);
|
||||
exports.Children = Children;
|
||||
exports.Component = Component;
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.Profiler = REACT_PROFILER_TYPE;
|
||||
@@ -1440,7 +1508,16 @@ __DEV__ &&
|
||||
arguments[JSCompiler_inline_result + 2];
|
||||
props.children = defaultProps;
|
||||
}
|
||||
props = ReactElement(element.type, key, void 0, void 0, owner, props);
|
||||
props = ReactElement(
|
||||
element.type,
|
||||
key,
|
||||
void 0,
|
||||
void 0,
|
||||
owner,
|
||||
props,
|
||||
enableOwnerStacks ? element._debugStack : void 0,
|
||||
enableOwnerStacks ? element._debugTask : void 0
|
||||
);
|
||||
for (key = 2; key < arguments.length; key++)
|
||||
validateChildKeys(arguments[key], props.type);
|
||||
return props;
|
||||
@@ -1516,7 +1593,7 @@ __DEV__ &&
|
||||
return context;
|
||||
};
|
||||
exports.createElement = function (type, config, children) {
|
||||
if (isValidElementType(type))
|
||||
if (enableOwnerStacks || isValidElementType(type))
|
||||
for (var i = 2; i < arguments.length; i++)
|
||||
validateChildKeys(arguments[i], type);
|
||||
else {
|
||||
@@ -1588,7 +1665,16 @@ __DEV__ &&
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
|
||||
return ReactElement(
|
||||
type,
|
||||
typeString,
|
||||
void 0,
|
||||
void 0,
|
||||
getOwner(),
|
||||
i,
|
||||
enableOwnerStacks ? Error("react-stack-top-frame") : void 0,
|
||||
enableOwnerStacks ? createTask(getTaskName(type)) : void 0
|
||||
);
|
||||
};
|
||||
exports.createRef = function () {
|
||||
var refObject = { current: null };
|
||||
@@ -1642,7 +1728,16 @@ __DEV__ &&
|
||||
};
|
||||
exports.isValidElement = isValidElement;
|
||||
exports.jsx = function (type, config, maybeKey, source, self) {
|
||||
return jsxDEVImpl(type, config, maybeKey, !1, source, self);
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
!1,
|
||||
source,
|
||||
self,
|
||||
enableOwnerStacks ? Error("react-stack-top-frame") : void 0,
|
||||
enableOwnerStacks ? createTask(getTaskName(type)) : void 0
|
||||
);
|
||||
};
|
||||
exports.jsxDEV = function (
|
||||
type,
|
||||
@@ -1652,10 +1747,28 @@ __DEV__ &&
|
||||
source,
|
||||
self
|
||||
) {
|
||||
return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
enableOwnerStacks ? Error("react-stack-top-frame") : void 0,
|
||||
enableOwnerStacks ? createTask(getTaskName(type)) : void 0
|
||||
);
|
||||
};
|
||||
exports.jsxs = function (type, config, maybeKey, source, self) {
|
||||
return jsxDEVImpl(type, config, maybeKey, !0, source, self);
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
!0,
|
||||
source,
|
||||
self,
|
||||
enableOwnerStacks ? Error("react-stack-top-frame") : void 0,
|
||||
enableOwnerStacks ? createTask(getTaskName(type)) : void 0
|
||||
);
|
||||
};
|
||||
exports.lazy = function (ctor) {
|
||||
var lazyType = {
|
||||
@@ -1841,7 +1954,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-classic-a4964987-20241211";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -460,6 +460,21 @@ __DEV__ &&
|
||||
}
|
||||
return "";
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if (
|
||||
"object" === typeof type &&
|
||||
null !== type &&
|
||||
type.$$typeof === REACT_LAZY_TYPE
|
||||
)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
@@ -496,7 +511,16 @@ __DEV__ &&
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(type, key, self, source, owner, props) {
|
||||
function ReactElement(
|
||||
type,
|
||||
key,
|
||||
self,
|
||||
source,
|
||||
owner,
|
||||
props,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
self = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
@@ -524,6 +548,19 @@ __DEV__ &&
|
||||
writable: !0,
|
||||
value: null
|
||||
});
|
||||
enableOwnerStacks &&
|
||||
(Object.defineProperty(type, "_debugStack", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugStack
|
||||
}),
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugTask
|
||||
}));
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
@@ -533,9 +570,11 @@ __DEV__ &&
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self
|
||||
self,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
if (isValidElementType(type)) {
|
||||
if (enableOwnerStacks || isValidElementType(type)) {
|
||||
var children = config.children;
|
||||
if (void 0 !== children)
|
||||
if (isStaticChildren)
|
||||
@@ -624,7 +663,16 @@ __DEV__ &&
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
return ReactElement(type, children, self, source, getOwner(), maybeKey);
|
||||
return ReactElement(
|
||||
type,
|
||||
children,
|
||||
self,
|
||||
source,
|
||||
getOwner(),
|
||||
maybeKey,
|
||||
debugStack,
|
||||
debugTask
|
||||
);
|
||||
}
|
||||
function cloneAndReplaceKey(oldElement, newKey) {
|
||||
newKey = ReactElement(
|
||||
@@ -633,13 +681,17 @@ __DEV__ &&
|
||||
void 0,
|
||||
void 0,
|
||||
oldElement._owner,
|
||||
oldElement.props
|
||||
oldElement.props,
|
||||
enableOwnerStacks ? oldElement._debugStack : void 0,
|
||||
enableOwnerStacks ? oldElement._debugTask : void 0
|
||||
);
|
||||
newKey._store.validated = oldElement._store.validated;
|
||||
return newKey;
|
||||
}
|
||||
function validateChildKeys(node, parentType) {
|
||||
if (
|
||||
if (enableOwnerStacks)
|
||||
isValidElement(node) && node._store && (node._store.validated = 1);
|
||||
else if (
|
||||
"object" === typeof node &&
|
||||
node &&
|
||||
node.$$typeof !== REACT_CLIENT_REFERENCE
|
||||
@@ -670,6 +722,7 @@ __DEV__ &&
|
||||
}
|
||||
function validateExplicitKey(element, parentType) {
|
||||
if (
|
||||
!enableOwnerStacks &&
|
||||
element._store &&
|
||||
!element._store.validated &&
|
||||
null == element.key &&
|
||||
@@ -1046,6 +1099,11 @@ __DEV__ &&
|
||||
}
|
||||
}
|
||||
}
|
||||
function captureOwnerStack() {
|
||||
if (!enableOwnerStacks) return null;
|
||||
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
||||
return null === getCurrentStack ? null : getCurrentStack();
|
||||
}
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
||||
@@ -1059,6 +1117,7 @@ __DEV__ &&
|
||||
enableUseResourceEffectHook =
|
||||
dynamicFeatureFlags.enableUseResourceEffectHook,
|
||||
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
|
||||
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
|
||||
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_ELEMENT_TYPE = renameElementSymbol
|
||||
? Symbol.for("react.transitional.element")
|
||||
@@ -1167,6 +1226,12 @@ __DEV__ &&
|
||||
"function" === typeof WeakMap ? WeakMap : Map
|
||||
)();
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
||||
createTask =
|
||||
enableOwnerStacks && console.createTask
|
||||
? console.createTask
|
||||
: function () {
|
||||
return null;
|
||||
},
|
||||
specialPropKeyWarningShown,
|
||||
didWarnAboutOldJSXRuntime;
|
||||
var didWarnAboutElementRef = {};
|
||||
@@ -1217,42 +1282,45 @@ __DEV__ &&
|
||||
}
|
||||
: enqueueTask,
|
||||
ReactCompilerRuntime = { c: useMemoCache },
|
||||
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(
|
||||
"React.Children.only expected to receive a single React element child."
|
||||
);
|
||||
return children;
|
||||
}
|
||||
},
|
||||
experimental_useResourceEffect = enableUseResourceEffectHook
|
||||
? useResourceEffect
|
||||
: void 0;
|
||||
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(
|
||||
"React.Children.only expected to receive a single React element child."
|
||||
);
|
||||
return children;
|
||||
}
|
||||
};
|
||||
exports.captureOwnerStack = void 0;
|
||||
enableOwnerStacks && (exports.captureOwnerStack = captureOwnerStack);
|
||||
exports.Children = Children;
|
||||
exports.Component = Component;
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.Profiler = REACT_PROFILER_TYPE;
|
||||
@@ -1440,7 +1508,16 @@ __DEV__ &&
|
||||
arguments[JSCompiler_inline_result + 2];
|
||||
props.children = defaultProps;
|
||||
}
|
||||
props = ReactElement(element.type, key, void 0, void 0, owner, props);
|
||||
props = ReactElement(
|
||||
element.type,
|
||||
key,
|
||||
void 0,
|
||||
void 0,
|
||||
owner,
|
||||
props,
|
||||
enableOwnerStacks ? element._debugStack : void 0,
|
||||
enableOwnerStacks ? element._debugTask : void 0
|
||||
);
|
||||
for (key = 2; key < arguments.length; key++)
|
||||
validateChildKeys(arguments[key], props.type);
|
||||
return props;
|
||||
@@ -1516,7 +1593,7 @@ __DEV__ &&
|
||||
return context;
|
||||
};
|
||||
exports.createElement = function (type, config, children) {
|
||||
if (isValidElementType(type))
|
||||
if (enableOwnerStacks || isValidElementType(type))
|
||||
for (var i = 2; i < arguments.length; i++)
|
||||
validateChildKeys(arguments[i], type);
|
||||
else {
|
||||
@@ -1588,7 +1665,16 @@ __DEV__ &&
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
|
||||
return ReactElement(
|
||||
type,
|
||||
typeString,
|
||||
void 0,
|
||||
void 0,
|
||||
getOwner(),
|
||||
i,
|
||||
enableOwnerStacks ? Error("react-stack-top-frame") : void 0,
|
||||
enableOwnerStacks ? createTask(getTaskName(type)) : void 0
|
||||
);
|
||||
};
|
||||
exports.createRef = function () {
|
||||
var refObject = { current: null };
|
||||
@@ -1642,7 +1728,16 @@ __DEV__ &&
|
||||
};
|
||||
exports.isValidElement = isValidElement;
|
||||
exports.jsx = function (type, config, maybeKey, source, self) {
|
||||
return jsxDEVImpl(type, config, maybeKey, !1, source, self);
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
!1,
|
||||
source,
|
||||
self,
|
||||
enableOwnerStacks ? Error("react-stack-top-frame") : void 0,
|
||||
enableOwnerStacks ? createTask(getTaskName(type)) : void 0
|
||||
);
|
||||
};
|
||||
exports.jsxDEV = function (
|
||||
type,
|
||||
@@ -1652,10 +1747,28 @@ __DEV__ &&
|
||||
source,
|
||||
self
|
||||
) {
|
||||
return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
enableOwnerStacks ? Error("react-stack-top-frame") : void 0,
|
||||
enableOwnerStacks ? createTask(getTaskName(type)) : void 0
|
||||
);
|
||||
};
|
||||
exports.jsxs = function (type, config, maybeKey, source, self) {
|
||||
return jsxDEVImpl(type, config, maybeKey, !0, source, self);
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
!0,
|
||||
source,
|
||||
self,
|
||||
enableOwnerStacks ? Error("react-stack-top-frame") : void 0,
|
||||
enableOwnerStacks ? createTask(getTaskName(type)) : void 0
|
||||
);
|
||||
};
|
||||
exports.lazy = function (ctor) {
|
||||
var lazyType = {
|
||||
@@ -1841,7 +1954,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-modern-a4964987-20241211";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -420,6 +420,7 @@ exports.cache = function (fn) {
|
||||
return fn.apply(null, arguments);
|
||||
};
|
||||
};
|
||||
exports.captureOwnerStack = void 0;
|
||||
exports.cloneElement = function (element, config, children) {
|
||||
if (null === element || void 0 === element)
|
||||
throw Error(
|
||||
@@ -634,4 +635,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-classic-a4964987-20241211";
|
||||
|
||||
@@ -420,6 +420,7 @@ exports.cache = function (fn) {
|
||||
return fn.apply(null, arguments);
|
||||
};
|
||||
};
|
||||
exports.captureOwnerStack = void 0;
|
||||
exports.cloneElement = function (element, config, children) {
|
||||
if (null === element || void 0 === element)
|
||||
throw Error(
|
||||
@@ -634,4 +635,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-modern-a4964987-20241211";
|
||||
|
||||
@@ -424,6 +424,7 @@ exports.cache = function (fn) {
|
||||
return fn.apply(null, arguments);
|
||||
};
|
||||
};
|
||||
exports.captureOwnerStack = void 0;
|
||||
exports.cloneElement = function (element, config, children) {
|
||||
if (null === element || void 0 === element)
|
||||
throw Error(
|
||||
@@ -638,7 +639,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-classic-a4964987-20241211";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -424,6 +424,7 @@ exports.cache = function (fn) {
|
||||
return fn.apply(null, arguments);
|
||||
};
|
||||
};
|
||||
exports.captureOwnerStack = void 0;
|
||||
exports.cloneElement = function (element, config, children) {
|
||||
if (null === element || void 0 === element)
|
||||
throw Error(
|
||||
@@ -638,7 +639,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-modern-a4964987-20241211";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -536,6 +536,27 @@ __DEV__ &&
|
||||
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
||||
return sampleLines;
|
||||
}
|
||||
function formatOwnerStack(error) {
|
||||
var prevPrepareStackTrace = Error.prepareStackTrace;
|
||||
Error.prepareStackTrace = void 0;
|
||||
error = error.stack;
|
||||
Error.prepareStackTrace = prevPrepareStackTrace;
|
||||
error.startsWith("Error: react-stack-top-frame\n") &&
|
||||
(error = error.slice(29));
|
||||
prevPrepareStackTrace = error.indexOf("\n");
|
||||
-1 !== prevPrepareStackTrace &&
|
||||
(error = error.slice(prevPrepareStackTrace + 1));
|
||||
prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
|
||||
-1 !== prevPrepareStackTrace &&
|
||||
(prevPrepareStackTrace = error.lastIndexOf(
|
||||
"\n",
|
||||
prevPrepareStackTrace
|
||||
));
|
||||
if (-1 !== prevPrepareStackTrace)
|
||||
error = error.slice(0, prevPrepareStackTrace);
|
||||
else return "";
|
||||
return error;
|
||||
}
|
||||
function describeFiber(fiber) {
|
||||
switch (fiber.tag) {
|
||||
case 26:
|
||||
@@ -586,8 +607,71 @@ __DEV__ &&
|
||||
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
}
|
||||
function describeFunctionComponentFrameWithoutLineNumber(fn) {
|
||||
return (fn = fn ? fn.displayName || fn.name : "")
|
||||
? describeBuiltInComponentFrame(fn)
|
||||
: "";
|
||||
}
|
||||
function getOwnerStackByFiberInDev(workInProgress) {
|
||||
if (!enableOwnerStacks) return "";
|
||||
try {
|
||||
var info = "";
|
||||
6 === workInProgress.tag && (workInProgress = workInProgress.return);
|
||||
switch (workInProgress.tag) {
|
||||
case 26:
|
||||
case 27:
|
||||
case 5:
|
||||
info += describeBuiltInComponentFrame(workInProgress.type);
|
||||
break;
|
||||
case 13:
|
||||
info += describeBuiltInComponentFrame("Suspense");
|
||||
break;
|
||||
case 19:
|
||||
info += describeBuiltInComponentFrame("SuspenseList");
|
||||
break;
|
||||
case 0:
|
||||
case 15:
|
||||
case 1:
|
||||
workInProgress._debugOwner ||
|
||||
"" !== info ||
|
||||
(info += describeFunctionComponentFrameWithoutLineNumber(
|
||||
workInProgress.type
|
||||
));
|
||||
break;
|
||||
case 11:
|
||||
workInProgress._debugOwner ||
|
||||
"" !== info ||
|
||||
(info += describeFunctionComponentFrameWithoutLineNumber(
|
||||
workInProgress.type.render
|
||||
));
|
||||
}
|
||||
for (; workInProgress; )
|
||||
if ("number" === typeof workInProgress.tag) {
|
||||
var fiber = workInProgress;
|
||||
workInProgress = fiber._debugOwner;
|
||||
var debugStack = fiber._debugStack;
|
||||
workInProgress &&
|
||||
debugStack &&
|
||||
("string" !== typeof debugStack &&
|
||||
(fiber._debugStack = debugStack = formatOwnerStack(debugStack)),
|
||||
"" !== debugStack && (info += "\n" + debugStack));
|
||||
} else if (null != workInProgress.debugStack) {
|
||||
var ownerStack = workInProgress.debugStack;
|
||||
(workInProgress = workInProgress.owner) &&
|
||||
ownerStack &&
|
||||
(info += "\n" + formatOwnerStack(ownerStack));
|
||||
} else break;
|
||||
return info;
|
||||
} catch (x) {
|
||||
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
}
|
||||
function getCurrentFiberStackInDev() {
|
||||
return null === current ? "" : getStackByFiberInDevAndProd(current);
|
||||
return null === current
|
||||
? ""
|
||||
: enableOwnerStacks
|
||||
? getOwnerStackByFiberInDev(current)
|
||||
: getStackByFiberInDevAndProd(current);
|
||||
}
|
||||
function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) {
|
||||
var previousFiber = current;
|
||||
@@ -596,7 +680,11 @@ __DEV__ &&
|
||||
isRendering = !1;
|
||||
current = fiber;
|
||||
try {
|
||||
return callback(arg0, arg1, arg2, arg3, arg4);
|
||||
return enableOwnerStacks && null !== fiber && fiber._debugTask
|
||||
? fiber._debugTask.run(
|
||||
callback.bind(null, arg0, arg1, arg2, arg3, arg4)
|
||||
)
|
||||
: callback(arg0, arg1, arg2, arg3, arg4);
|
||||
} finally {
|
||||
current = previousFiber;
|
||||
}
|
||||
@@ -4691,6 +4779,7 @@ __DEV__ &&
|
||||
)),
|
||||
(current.return = returnFiber),
|
||||
(current._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (current._debugTask = returnFiber._debugTask),
|
||||
(current._debugInfo = currentDebugInfo),
|
||||
current
|
||||
);
|
||||
@@ -4765,6 +4854,7 @@ __DEV__ &&
|
||||
)),
|
||||
(current.return = returnFiber),
|
||||
(current._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (current._debugTask = returnFiber._debugTask),
|
||||
(current._debugInfo = currentDebugInfo),
|
||||
current
|
||||
);
|
||||
@@ -4787,6 +4877,7 @@ __DEV__ &&
|
||||
)),
|
||||
(newChild.return = returnFiber),
|
||||
(newChild._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (newChild._debugTask = returnFiber._debugTask),
|
||||
(newChild._debugInfo = currentDebugInfo),
|
||||
newChild
|
||||
);
|
||||
@@ -4834,6 +4925,7 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (lanes._debugTask = returnFiber._debugTask),
|
||||
(returnFiber = pushDebugInfo(newChild._debugInfo)),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
(currentDebugInfo = returnFiber),
|
||||
@@ -5363,6 +5455,8 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks &&
|
||||
(lanes._debugTask = returnFiber._debugTask),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
validateFragmentProps(newChild, lanes, returnFiber),
|
||||
(returnFiber = lanes))
|
||||
@@ -5529,6 +5623,8 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks &&
|
||||
(lanes._debugTask = returnFiber._debugTask),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
(returnFiber = lanes)),
|
||||
placeSingleChild(returnFiber)
|
||||
@@ -5558,10 +5654,13 @@ __DEV__ &&
|
||||
fiber.return = returnFiber;
|
||||
var debugInfo = (fiber._debugInfo = currentDebugInfo);
|
||||
fiber._debugOwner = returnFiber._debugOwner;
|
||||
enableOwnerStacks && (fiber._debugTask = returnFiber._debugTask);
|
||||
if (null != debugInfo)
|
||||
for (var i = debugInfo.length - 1; 0 <= i; i--)
|
||||
if ("string" === typeof debugInfo[i].stack) {
|
||||
fiber._debugOwner = debugInfo[i];
|
||||
enableOwnerStacks &&
|
||||
(fiber._debugTask = debugInfo[i].debugTask);
|
||||
break;
|
||||
}
|
||||
return fiber;
|
||||
@@ -8000,6 +8099,9 @@ __DEV__ &&
|
||||
workInProgress.mode,
|
||||
workInProgress.lanes
|
||||
);
|
||||
enableOwnerStacks &&
|
||||
((renderLanes._debugStack = workInProgress._debugStack),
|
||||
(renderLanes._debugTask = workInProgress._debugTask));
|
||||
var returnFiber = workInProgress.return;
|
||||
if (null === returnFiber) throw Error("Cannot swap the root fiber.");
|
||||
current.alternate = null;
|
||||
@@ -14153,6 +14255,7 @@ __DEV__ &&
|
||||
this.actualStartTime = -1.1;
|
||||
this.treeBaseDuration = this.selfBaseDuration = -0;
|
||||
this._debugOwner = this._debugInfo = null;
|
||||
enableOwnerStacks && (this._debugTask = this._debugStack = null);
|
||||
this._debugNeedsRemount = !1;
|
||||
this._debugHookTypes = null;
|
||||
hasBadMapPolyfill ||
|
||||
@@ -14192,10 +14295,11 @@ __DEV__ &&
|
||||
selfBaseDuration: -0,
|
||||
treeBaseDuration: -0,
|
||||
_debugInfo: null,
|
||||
_debugOwner: null,
|
||||
_debugNeedsRemount: !1,
|
||||
_debugHookTypes: null
|
||||
_debugOwner: null
|
||||
};
|
||||
enableOwnerStacks && ((tag._debugStack = null), (tag._debugTask = null));
|
||||
tag._debugNeedsRemount = !1;
|
||||
tag._debugHookTypes = null;
|
||||
hasBadMapPolyfill ||
|
||||
"function" !== typeof Object.preventExtensions ||
|
||||
Object.preventExtensions(tag);
|
||||
@@ -14218,6 +14322,9 @@ __DEV__ &&
|
||||
(workInProgress.type = current.type),
|
||||
(workInProgress.stateNode = current.stateNode),
|
||||
(workInProgress._debugOwner = current._debugOwner),
|
||||
enableOwnerStacks &&
|
||||
((workInProgress._debugStack = current._debugStack),
|
||||
(workInProgress._debugTask = current._debugTask)),
|
||||
(workInProgress._debugHookTypes = current._debugHookTypes),
|
||||
(workInProgress.alternate = current),
|
||||
(current.alternate = workInProgress))
|
||||
@@ -14477,6 +14584,9 @@ __DEV__ &&
|
||||
lanes
|
||||
);
|
||||
mode._debugOwner = element._owner;
|
||||
enableOwnerStacks &&
|
||||
((mode._debugStack = element._debugStack),
|
||||
(mode._debugTask = element._debugTask));
|
||||
return mode;
|
||||
}
|
||||
function createFiberFromFragment(elements, mode, lanes, key) {
|
||||
@@ -14760,6 +14870,7 @@ __DEV__ &&
|
||||
syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs,
|
||||
transitionLaneExpirationMs =
|
||||
dynamicFeatureFlags.transitionLaneExpirationMs,
|
||||
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
|
||||
enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler,
|
||||
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_ELEMENT_TYPE = renameElementSymbol
|
||||
@@ -17126,10 +17237,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-classic-a4964987-20241211",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-classic-a4964987-20241211"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -17163,7 +17274,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-classic-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-classic-a4964987-20241211";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -536,6 +536,27 @@ __DEV__ &&
|
||||
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
||||
return sampleLines;
|
||||
}
|
||||
function formatOwnerStack(error) {
|
||||
var prevPrepareStackTrace = Error.prepareStackTrace;
|
||||
Error.prepareStackTrace = void 0;
|
||||
error = error.stack;
|
||||
Error.prepareStackTrace = prevPrepareStackTrace;
|
||||
error.startsWith("Error: react-stack-top-frame\n") &&
|
||||
(error = error.slice(29));
|
||||
prevPrepareStackTrace = error.indexOf("\n");
|
||||
-1 !== prevPrepareStackTrace &&
|
||||
(error = error.slice(prevPrepareStackTrace + 1));
|
||||
prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
|
||||
-1 !== prevPrepareStackTrace &&
|
||||
(prevPrepareStackTrace = error.lastIndexOf(
|
||||
"\n",
|
||||
prevPrepareStackTrace
|
||||
));
|
||||
if (-1 !== prevPrepareStackTrace)
|
||||
error = error.slice(0, prevPrepareStackTrace);
|
||||
else return "";
|
||||
return error;
|
||||
}
|
||||
function describeFiber(fiber) {
|
||||
switch (fiber.tag) {
|
||||
case 26:
|
||||
@@ -586,8 +607,71 @@ __DEV__ &&
|
||||
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
}
|
||||
function describeFunctionComponentFrameWithoutLineNumber(fn) {
|
||||
return (fn = fn ? fn.displayName || fn.name : "")
|
||||
? describeBuiltInComponentFrame(fn)
|
||||
: "";
|
||||
}
|
||||
function getOwnerStackByFiberInDev(workInProgress) {
|
||||
if (!enableOwnerStacks) return "";
|
||||
try {
|
||||
var info = "";
|
||||
6 === workInProgress.tag && (workInProgress = workInProgress.return);
|
||||
switch (workInProgress.tag) {
|
||||
case 26:
|
||||
case 27:
|
||||
case 5:
|
||||
info += describeBuiltInComponentFrame(workInProgress.type);
|
||||
break;
|
||||
case 13:
|
||||
info += describeBuiltInComponentFrame("Suspense");
|
||||
break;
|
||||
case 19:
|
||||
info += describeBuiltInComponentFrame("SuspenseList");
|
||||
break;
|
||||
case 0:
|
||||
case 15:
|
||||
case 1:
|
||||
workInProgress._debugOwner ||
|
||||
"" !== info ||
|
||||
(info += describeFunctionComponentFrameWithoutLineNumber(
|
||||
workInProgress.type
|
||||
));
|
||||
break;
|
||||
case 11:
|
||||
workInProgress._debugOwner ||
|
||||
"" !== info ||
|
||||
(info += describeFunctionComponentFrameWithoutLineNumber(
|
||||
workInProgress.type.render
|
||||
));
|
||||
}
|
||||
for (; workInProgress; )
|
||||
if ("number" === typeof workInProgress.tag) {
|
||||
var fiber = workInProgress;
|
||||
workInProgress = fiber._debugOwner;
|
||||
var debugStack = fiber._debugStack;
|
||||
workInProgress &&
|
||||
debugStack &&
|
||||
("string" !== typeof debugStack &&
|
||||
(fiber._debugStack = debugStack = formatOwnerStack(debugStack)),
|
||||
"" !== debugStack && (info += "\n" + debugStack));
|
||||
} else if (null != workInProgress.debugStack) {
|
||||
var ownerStack = workInProgress.debugStack;
|
||||
(workInProgress = workInProgress.owner) &&
|
||||
ownerStack &&
|
||||
(info += "\n" + formatOwnerStack(ownerStack));
|
||||
} else break;
|
||||
return info;
|
||||
} catch (x) {
|
||||
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
}
|
||||
function getCurrentFiberStackInDev() {
|
||||
return null === current ? "" : getStackByFiberInDevAndProd(current);
|
||||
return null === current
|
||||
? ""
|
||||
: enableOwnerStacks
|
||||
? getOwnerStackByFiberInDev(current)
|
||||
: getStackByFiberInDevAndProd(current);
|
||||
}
|
||||
function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) {
|
||||
var previousFiber = current;
|
||||
@@ -596,7 +680,11 @@ __DEV__ &&
|
||||
isRendering = !1;
|
||||
current = fiber;
|
||||
try {
|
||||
return callback(arg0, arg1, arg2, arg3, arg4);
|
||||
return enableOwnerStacks && null !== fiber && fiber._debugTask
|
||||
? fiber._debugTask.run(
|
||||
callback.bind(null, arg0, arg1, arg2, arg3, arg4)
|
||||
)
|
||||
: callback(arg0, arg1, arg2, arg3, arg4);
|
||||
} finally {
|
||||
current = previousFiber;
|
||||
}
|
||||
@@ -4583,6 +4671,7 @@ __DEV__ &&
|
||||
)),
|
||||
(current.return = returnFiber),
|
||||
(current._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (current._debugTask = returnFiber._debugTask),
|
||||
(current._debugInfo = currentDebugInfo),
|
||||
current
|
||||
);
|
||||
@@ -4657,6 +4746,7 @@ __DEV__ &&
|
||||
)),
|
||||
(current.return = returnFiber),
|
||||
(current._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (current._debugTask = returnFiber._debugTask),
|
||||
(current._debugInfo = currentDebugInfo),
|
||||
current
|
||||
);
|
||||
@@ -4679,6 +4769,7 @@ __DEV__ &&
|
||||
)),
|
||||
(newChild.return = returnFiber),
|
||||
(newChild._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (newChild._debugTask = returnFiber._debugTask),
|
||||
(newChild._debugInfo = currentDebugInfo),
|
||||
newChild
|
||||
);
|
||||
@@ -4726,6 +4817,7 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (lanes._debugTask = returnFiber._debugTask),
|
||||
(returnFiber = pushDebugInfo(newChild._debugInfo)),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
(currentDebugInfo = returnFiber),
|
||||
@@ -5255,6 +5347,8 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks &&
|
||||
(lanes._debugTask = returnFiber._debugTask),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
validateFragmentProps(newChild, lanes, returnFiber),
|
||||
(returnFiber = lanes))
|
||||
@@ -5421,6 +5515,8 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks &&
|
||||
(lanes._debugTask = returnFiber._debugTask),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
(returnFiber = lanes)),
|
||||
placeSingleChild(returnFiber)
|
||||
@@ -5450,10 +5546,13 @@ __DEV__ &&
|
||||
fiber.return = returnFiber;
|
||||
var debugInfo = (fiber._debugInfo = currentDebugInfo);
|
||||
fiber._debugOwner = returnFiber._debugOwner;
|
||||
enableOwnerStacks && (fiber._debugTask = returnFiber._debugTask);
|
||||
if (null != debugInfo)
|
||||
for (var i = debugInfo.length - 1; 0 <= i; i--)
|
||||
if ("string" === typeof debugInfo[i].stack) {
|
||||
fiber._debugOwner = debugInfo[i];
|
||||
enableOwnerStacks &&
|
||||
(fiber._debugTask = debugInfo[i].debugTask);
|
||||
break;
|
||||
}
|
||||
return fiber;
|
||||
@@ -7816,6 +7915,9 @@ __DEV__ &&
|
||||
workInProgress.mode,
|
||||
workInProgress.lanes
|
||||
);
|
||||
enableOwnerStacks &&
|
||||
((renderLanes._debugStack = workInProgress._debugStack),
|
||||
(renderLanes._debugTask = workInProgress._debugTask));
|
||||
var returnFiber = workInProgress.return;
|
||||
if (null === returnFiber) throw Error("Cannot swap the root fiber.");
|
||||
current.alternate = null;
|
||||
@@ -13953,6 +14055,7 @@ __DEV__ &&
|
||||
this.actualStartTime = -1.1;
|
||||
this.treeBaseDuration = this.selfBaseDuration = -0;
|
||||
this._debugOwner = this._debugInfo = null;
|
||||
enableOwnerStacks && (this._debugTask = this._debugStack = null);
|
||||
this._debugNeedsRemount = !1;
|
||||
this._debugHookTypes = null;
|
||||
hasBadMapPolyfill ||
|
||||
@@ -13992,10 +14095,11 @@ __DEV__ &&
|
||||
selfBaseDuration: -0,
|
||||
treeBaseDuration: -0,
|
||||
_debugInfo: null,
|
||||
_debugOwner: null,
|
||||
_debugNeedsRemount: !1,
|
||||
_debugHookTypes: null
|
||||
_debugOwner: null
|
||||
};
|
||||
enableOwnerStacks && ((tag._debugStack = null), (tag._debugTask = null));
|
||||
tag._debugNeedsRemount = !1;
|
||||
tag._debugHookTypes = null;
|
||||
hasBadMapPolyfill ||
|
||||
"function" !== typeof Object.preventExtensions ||
|
||||
Object.preventExtensions(tag);
|
||||
@@ -14018,6 +14122,9 @@ __DEV__ &&
|
||||
(workInProgress.type = current.type),
|
||||
(workInProgress.stateNode = current.stateNode),
|
||||
(workInProgress._debugOwner = current._debugOwner),
|
||||
enableOwnerStacks &&
|
||||
((workInProgress._debugStack = current._debugStack),
|
||||
(workInProgress._debugTask = current._debugTask)),
|
||||
(workInProgress._debugHookTypes = current._debugHookTypes),
|
||||
(workInProgress.alternate = current),
|
||||
(current.alternate = workInProgress))
|
||||
@@ -14277,6 +14384,9 @@ __DEV__ &&
|
||||
lanes
|
||||
);
|
||||
mode._debugOwner = element._owner;
|
||||
enableOwnerStacks &&
|
||||
((mode._debugStack = element._debugStack),
|
||||
(mode._debugTask = element._debugTask));
|
||||
return mode;
|
||||
}
|
||||
function createFiberFromFragment(elements, mode, lanes, key) {
|
||||
@@ -14517,6 +14627,7 @@ __DEV__ &&
|
||||
syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs,
|
||||
transitionLaneExpirationMs =
|
||||
dynamicFeatureFlags.transitionLaneExpirationMs,
|
||||
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
|
||||
enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler,
|
||||
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_ELEMENT_TYPE = renameElementSymbol
|
||||
@@ -16889,10 +17000,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-modern-a4964987-20241211",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-modern-a4964987-20241211"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -16926,7 +17037,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-modern-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-modern-a4964987-20241211";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -10827,10 +10827,10 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1509 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-classic-a4964987-20241211",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-classic-a4964987-20241211"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1510 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10856,4 +10856,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-classic-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-classic-a4964987-20241211";
|
||||
|
||||
@@ -10543,10 +10543,10 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1488 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-modern-a4964987-20241211",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-modern-a4964987-20241211"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1489 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10572,4 +10572,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-modern-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-modern-a4964987-20241211";
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -17277,14 +17277,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1774 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-7c4a7c9d-20241210" !==
|
||||
"19.0.0-www-classic-a4964987-20241211" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1774
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1774,
|
||||
"19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
"19.0.0-www-classic-a4964987-20241211"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17302,10 +17302,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2315 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-classic-a4964987-20241211",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-classic-a4964987-20241211"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2316 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17668,4 +17668,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-classic-a4964987-20241211";
|
||||
|
||||
@@ -17008,14 +17008,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1764 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-7c4a7c9d-20241210" !==
|
||||
"19.0.0-www-modern-a4964987-20241211" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1764
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1764,
|
||||
"19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
"19.0.0-www-modern-a4964987-20241211"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17033,10 +17033,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2297 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-modern-a4964987-20241211",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-modern-a4964987-20241211"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2298 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17399,4 +17399,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-modern-a4964987-20241211";
|
||||
|
||||
@@ -17966,14 +17966,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1867 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-7c4a7c9d-20241210" !==
|
||||
"19.0.0-www-classic-a4964987-20241211" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1867
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1867,
|
||||
"19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
"19.0.0-www-classic-a4964987-20241211"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17991,10 +17991,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_1869 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-classic-a4964987-20241211",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-classic-a4964987-20241211"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_1869.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -18360,7 +18360,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-classic-a4964987-20241211";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -17696,14 +17696,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1857 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-7c4a7c9d-20241210" !==
|
||||
"19.0.0-www-modern-a4964987-20241211" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1857
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1857,
|
||||
"19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
"19.0.0-www-modern-a4964987-20241211"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17721,10 +17721,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_1859 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-modern-a4964987-20241211",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-modern-a4964987-20241211"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_1859.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -18090,7 +18090,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-modern-a4964987-20241211";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -5910,4 +5910,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-classic-a4964987-20241211";
|
||||
|
||||
@@ -5822,4 +5822,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-modern-a4964987-20241211";
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -17606,14 +17606,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1803 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-7c4a7c9d-20241210" !==
|
||||
"19.0.0-www-classic-a4964987-20241211" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1803
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1803,
|
||||
"19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
"19.0.0-www-classic-a4964987-20241211"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17631,10 +17631,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2349 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-classic-a4964987-20241211",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-classic-a4964987-20241211"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2350 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -18148,4 +18148,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-classic-a4964987-20241211";
|
||||
|
||||
@@ -17337,14 +17337,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1793 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-7c4a7c9d-20241210" !==
|
||||
"19.0.0-www-modern-a4964987-20241211" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1793
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1793,
|
||||
"19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
"19.0.0-www-modern-a4964987-20241211"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17362,10 +17362,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2331 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-modern-a4964987-20241211",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-modern-a4964987-20241211"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2332 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17879,4 +17879,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-modern-a4964987-20241211";
|
||||
|
||||
@@ -510,6 +510,27 @@ __DEV__ &&
|
||||
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
||||
return sampleLines;
|
||||
}
|
||||
function formatOwnerStack(error) {
|
||||
var prevPrepareStackTrace = Error.prepareStackTrace;
|
||||
Error.prepareStackTrace = void 0;
|
||||
error = error.stack;
|
||||
Error.prepareStackTrace = prevPrepareStackTrace;
|
||||
error.startsWith("Error: react-stack-top-frame\n") &&
|
||||
(error = error.slice(29));
|
||||
prevPrepareStackTrace = error.indexOf("\n");
|
||||
-1 !== prevPrepareStackTrace &&
|
||||
(error = error.slice(prevPrepareStackTrace + 1));
|
||||
prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
|
||||
-1 !== prevPrepareStackTrace &&
|
||||
(prevPrepareStackTrace = error.lastIndexOf(
|
||||
"\n",
|
||||
prevPrepareStackTrace
|
||||
));
|
||||
if (-1 !== prevPrepareStackTrace)
|
||||
error = error.slice(0, prevPrepareStackTrace);
|
||||
else return "";
|
||||
return error;
|
||||
}
|
||||
function describeFiber(fiber) {
|
||||
switch (fiber.tag) {
|
||||
case 26:
|
||||
@@ -560,8 +581,71 @@ __DEV__ &&
|
||||
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
}
|
||||
function describeFunctionComponentFrameWithoutLineNumber(fn) {
|
||||
return (fn = fn ? fn.displayName || fn.name : "")
|
||||
? describeBuiltInComponentFrame(fn)
|
||||
: "";
|
||||
}
|
||||
function getOwnerStackByFiberInDev(workInProgress) {
|
||||
if (!enableOwnerStacks) return "";
|
||||
try {
|
||||
var info = "";
|
||||
6 === workInProgress.tag && (workInProgress = workInProgress.return);
|
||||
switch (workInProgress.tag) {
|
||||
case 26:
|
||||
case 27:
|
||||
case 5:
|
||||
info += describeBuiltInComponentFrame(workInProgress.type);
|
||||
break;
|
||||
case 13:
|
||||
info += describeBuiltInComponentFrame("Suspense");
|
||||
break;
|
||||
case 19:
|
||||
info += describeBuiltInComponentFrame("SuspenseList");
|
||||
break;
|
||||
case 0:
|
||||
case 15:
|
||||
case 1:
|
||||
workInProgress._debugOwner ||
|
||||
"" !== info ||
|
||||
(info += describeFunctionComponentFrameWithoutLineNumber(
|
||||
workInProgress.type
|
||||
));
|
||||
break;
|
||||
case 11:
|
||||
workInProgress._debugOwner ||
|
||||
"" !== info ||
|
||||
(info += describeFunctionComponentFrameWithoutLineNumber(
|
||||
workInProgress.type.render
|
||||
));
|
||||
}
|
||||
for (; workInProgress; )
|
||||
if ("number" === typeof workInProgress.tag) {
|
||||
var fiber = workInProgress;
|
||||
workInProgress = fiber._debugOwner;
|
||||
var debugStack = fiber._debugStack;
|
||||
workInProgress &&
|
||||
debugStack &&
|
||||
("string" !== typeof debugStack &&
|
||||
(fiber._debugStack = debugStack = formatOwnerStack(debugStack)),
|
||||
"" !== debugStack && (info += "\n" + debugStack));
|
||||
} else if (null != workInProgress.debugStack) {
|
||||
var ownerStack = workInProgress.debugStack;
|
||||
(workInProgress = workInProgress.owner) &&
|
||||
ownerStack &&
|
||||
(info += "\n" + formatOwnerStack(ownerStack));
|
||||
} else break;
|
||||
return info;
|
||||
} catch (x) {
|
||||
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
}
|
||||
function getCurrentFiberStackInDev() {
|
||||
return null === current ? "" : getStackByFiberInDevAndProd(current);
|
||||
return null === current
|
||||
? ""
|
||||
: enableOwnerStacks
|
||||
? getOwnerStackByFiberInDev(current)
|
||||
: getStackByFiberInDevAndProd(current);
|
||||
}
|
||||
function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) {
|
||||
var previousFiber = current;
|
||||
@@ -570,7 +654,11 @@ __DEV__ &&
|
||||
isRendering = !1;
|
||||
current = fiber;
|
||||
try {
|
||||
return callback(arg0, arg1, arg2, arg3, arg4);
|
||||
return enableOwnerStacks && null !== fiber && fiber._debugTask
|
||||
? fiber._debugTask.run(
|
||||
callback.bind(null, arg0, arg1, arg2, arg3, arg4)
|
||||
)
|
||||
: callback(arg0, arg1, arg2, arg3, arg4);
|
||||
} finally {
|
||||
current = previousFiber;
|
||||
}
|
||||
@@ -4926,6 +5014,7 @@ __DEV__ &&
|
||||
)),
|
||||
(current.return = returnFiber),
|
||||
(current._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (current._debugTask = returnFiber._debugTask),
|
||||
(current._debugInfo = currentDebugInfo),
|
||||
current
|
||||
);
|
||||
@@ -5000,6 +5089,7 @@ __DEV__ &&
|
||||
)),
|
||||
(current.return = returnFiber),
|
||||
(current._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (current._debugTask = returnFiber._debugTask),
|
||||
(current._debugInfo = currentDebugInfo),
|
||||
current
|
||||
);
|
||||
@@ -5022,6 +5112,7 @@ __DEV__ &&
|
||||
)),
|
||||
(newChild.return = returnFiber),
|
||||
(newChild._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (newChild._debugTask = returnFiber._debugTask),
|
||||
(newChild._debugInfo = currentDebugInfo),
|
||||
newChild
|
||||
);
|
||||
@@ -5069,6 +5160,7 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (lanes._debugTask = returnFiber._debugTask),
|
||||
(returnFiber = pushDebugInfo(newChild._debugInfo)),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
(currentDebugInfo = returnFiber),
|
||||
@@ -5606,6 +5698,8 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks &&
|
||||
(lanes._debugTask = returnFiber._debugTask),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
validateFragmentProps(newChild, lanes, returnFiber),
|
||||
(returnFiber = lanes))
|
||||
@@ -5772,6 +5866,8 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks &&
|
||||
(lanes._debugTask = returnFiber._debugTask),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
(returnFiber = lanes)),
|
||||
placeSingleChild(returnFiber)
|
||||
@@ -5801,10 +5897,13 @@ __DEV__ &&
|
||||
fiber.return = returnFiber;
|
||||
var debugInfo = (fiber._debugInfo = currentDebugInfo);
|
||||
fiber._debugOwner = returnFiber._debugOwner;
|
||||
enableOwnerStacks && (fiber._debugTask = returnFiber._debugTask);
|
||||
if (null != debugInfo)
|
||||
for (var i = debugInfo.length - 1; 0 <= i; i--)
|
||||
if ("string" === typeof debugInfo[i].stack) {
|
||||
fiber._debugOwner = debugInfo[i];
|
||||
enableOwnerStacks &&
|
||||
(fiber._debugTask = debugInfo[i].debugTask);
|
||||
break;
|
||||
}
|
||||
return fiber;
|
||||
@@ -8383,6 +8482,9 @@ __DEV__ &&
|
||||
workInProgress.mode,
|
||||
workInProgress.lanes
|
||||
);
|
||||
enableOwnerStacks &&
|
||||
((renderLanes._debugStack = workInProgress._debugStack),
|
||||
(renderLanes._debugTask = workInProgress._debugTask));
|
||||
var returnFiber = workInProgress.return;
|
||||
if (null === returnFiber) throw Error("Cannot swap the root fiber.");
|
||||
current.alternate = null;
|
||||
@@ -15710,6 +15812,7 @@ __DEV__ &&
|
||||
this.actualStartTime = -1.1;
|
||||
this.treeBaseDuration = this.selfBaseDuration = -0;
|
||||
this._debugOwner = this._debugInfo = null;
|
||||
enableOwnerStacks && (this._debugTask = this._debugStack = null);
|
||||
this._debugNeedsRemount = !1;
|
||||
this._debugHookTypes = null;
|
||||
hasBadMapPolyfill ||
|
||||
@@ -15749,10 +15852,11 @@ __DEV__ &&
|
||||
selfBaseDuration: -0,
|
||||
treeBaseDuration: -0,
|
||||
_debugInfo: null,
|
||||
_debugOwner: null,
|
||||
_debugNeedsRemount: !1,
|
||||
_debugHookTypes: null
|
||||
_debugOwner: null
|
||||
};
|
||||
enableOwnerStacks && ((tag._debugStack = null), (tag._debugTask = null));
|
||||
tag._debugNeedsRemount = !1;
|
||||
tag._debugHookTypes = null;
|
||||
hasBadMapPolyfill ||
|
||||
"function" !== typeof Object.preventExtensions ||
|
||||
Object.preventExtensions(tag);
|
||||
@@ -15775,6 +15879,9 @@ __DEV__ &&
|
||||
(workInProgress.type = current.type),
|
||||
(workInProgress.stateNode = current.stateNode),
|
||||
(workInProgress._debugOwner = current._debugOwner),
|
||||
enableOwnerStacks &&
|
||||
((workInProgress._debugStack = current._debugStack),
|
||||
(workInProgress._debugTask = current._debugTask)),
|
||||
(workInProgress._debugHookTypes = current._debugHookTypes),
|
||||
(workInProgress.alternate = current),
|
||||
(current.alternate = workInProgress))
|
||||
@@ -16051,6 +16158,9 @@ __DEV__ &&
|
||||
lanes
|
||||
);
|
||||
mode._debugOwner = element._owner;
|
||||
enableOwnerStacks &&
|
||||
((mode._debugStack = element._debugStack),
|
||||
(mode._debugTask = element._debugTask));
|
||||
return mode;
|
||||
}
|
||||
function createFiberFromFragment(elements, mode, lanes, key) {
|
||||
@@ -16403,6 +16513,7 @@ __DEV__ &&
|
||||
syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs,
|
||||
transitionLaneExpirationMs =
|
||||
dynamicFeatureFlags.transitionLaneExpirationMs,
|
||||
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
|
||||
enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler,
|
||||
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_ELEMENT_TYPE = renameElementSymbol
|
||||
@@ -18980,12 +19091,14 @@ __DEV__ &&
|
||||
recreateMessage =
|
||||
"React will try to recreate this component tree from scratch using the error boundary you provided, " +
|
||||
((errorBoundaryName || "Anonymous") + "."),
|
||||
prevGetCurrentStack = ReactSharedInternals.getCurrentStack,
|
||||
componentStack =
|
||||
prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
|
||||
if (!enableOwnerStacks) {
|
||||
var componentStack =
|
||||
null != errorInfo.componentStack ? errorInfo.componentStack : "";
|
||||
ReactSharedInternals.getCurrentStack = function () {
|
||||
return componentStack;
|
||||
};
|
||||
ReactSharedInternals.getCurrentStack = function () {
|
||||
return componentStack;
|
||||
};
|
||||
}
|
||||
try {
|
||||
"object" === typeof error$1 &&
|
||||
null !== error$1 &&
|
||||
@@ -19007,7 +19120,8 @@ __DEV__ &&
|
||||
recreateMessage
|
||||
);
|
||||
} finally {
|
||||
ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
|
||||
enableOwnerStacks ||
|
||||
(ReactSharedInternals.getCurrentStack = prevGetCurrentStack);
|
||||
}
|
||||
};
|
||||
exports.defaultOnRecoverableError = function (error) {
|
||||
@@ -19018,12 +19132,14 @@ __DEV__ &&
|
||||
error = componentName
|
||||
? "An error occurred in the <" + componentName + "> component."
|
||||
: "An error occurred in one of your React components.";
|
||||
var prevGetCurrentStack = ReactSharedInternals.getCurrentStack,
|
||||
componentStack =
|
||||
var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
|
||||
if (!enableOwnerStacks) {
|
||||
var componentStack =
|
||||
null != errorInfo.componentStack ? errorInfo.componentStack : "";
|
||||
ReactSharedInternals.getCurrentStack = function () {
|
||||
return componentStack;
|
||||
};
|
||||
ReactSharedInternals.getCurrentStack = function () {
|
||||
return componentStack;
|
||||
};
|
||||
}
|
||||
try {
|
||||
warn(
|
||||
"%s\n\n%s\n",
|
||||
@@ -19031,7 +19147,8 @@ __DEV__ &&
|
||||
"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries."
|
||||
);
|
||||
} finally {
|
||||
ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
|
||||
enableOwnerStacks ||
|
||||
(ReactSharedInternals.getCurrentStack = prevGetCurrentStack);
|
||||
}
|
||||
};
|
||||
exports.deferredUpdates = function (fn) {
|
||||
@@ -19278,7 +19395,7 @@ __DEV__ &&
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-classic-a4964987-20241211"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -510,6 +510,27 @@ __DEV__ &&
|
||||
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
||||
return sampleLines;
|
||||
}
|
||||
function formatOwnerStack(error) {
|
||||
var prevPrepareStackTrace = Error.prepareStackTrace;
|
||||
Error.prepareStackTrace = void 0;
|
||||
error = error.stack;
|
||||
Error.prepareStackTrace = prevPrepareStackTrace;
|
||||
error.startsWith("Error: react-stack-top-frame\n") &&
|
||||
(error = error.slice(29));
|
||||
prevPrepareStackTrace = error.indexOf("\n");
|
||||
-1 !== prevPrepareStackTrace &&
|
||||
(error = error.slice(prevPrepareStackTrace + 1));
|
||||
prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
|
||||
-1 !== prevPrepareStackTrace &&
|
||||
(prevPrepareStackTrace = error.lastIndexOf(
|
||||
"\n",
|
||||
prevPrepareStackTrace
|
||||
));
|
||||
if (-1 !== prevPrepareStackTrace)
|
||||
error = error.slice(0, prevPrepareStackTrace);
|
||||
else return "";
|
||||
return error;
|
||||
}
|
||||
function describeFiber(fiber) {
|
||||
switch (fiber.tag) {
|
||||
case 26:
|
||||
@@ -560,8 +581,71 @@ __DEV__ &&
|
||||
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
}
|
||||
function describeFunctionComponentFrameWithoutLineNumber(fn) {
|
||||
return (fn = fn ? fn.displayName || fn.name : "")
|
||||
? describeBuiltInComponentFrame(fn)
|
||||
: "";
|
||||
}
|
||||
function getOwnerStackByFiberInDev(workInProgress) {
|
||||
if (!enableOwnerStacks) return "";
|
||||
try {
|
||||
var info = "";
|
||||
6 === workInProgress.tag && (workInProgress = workInProgress.return);
|
||||
switch (workInProgress.tag) {
|
||||
case 26:
|
||||
case 27:
|
||||
case 5:
|
||||
info += describeBuiltInComponentFrame(workInProgress.type);
|
||||
break;
|
||||
case 13:
|
||||
info += describeBuiltInComponentFrame("Suspense");
|
||||
break;
|
||||
case 19:
|
||||
info += describeBuiltInComponentFrame("SuspenseList");
|
||||
break;
|
||||
case 0:
|
||||
case 15:
|
||||
case 1:
|
||||
workInProgress._debugOwner ||
|
||||
"" !== info ||
|
||||
(info += describeFunctionComponentFrameWithoutLineNumber(
|
||||
workInProgress.type
|
||||
));
|
||||
break;
|
||||
case 11:
|
||||
workInProgress._debugOwner ||
|
||||
"" !== info ||
|
||||
(info += describeFunctionComponentFrameWithoutLineNumber(
|
||||
workInProgress.type.render
|
||||
));
|
||||
}
|
||||
for (; workInProgress; )
|
||||
if ("number" === typeof workInProgress.tag) {
|
||||
var fiber = workInProgress;
|
||||
workInProgress = fiber._debugOwner;
|
||||
var debugStack = fiber._debugStack;
|
||||
workInProgress &&
|
||||
debugStack &&
|
||||
("string" !== typeof debugStack &&
|
||||
(fiber._debugStack = debugStack = formatOwnerStack(debugStack)),
|
||||
"" !== debugStack && (info += "\n" + debugStack));
|
||||
} else if (null != workInProgress.debugStack) {
|
||||
var ownerStack = workInProgress.debugStack;
|
||||
(workInProgress = workInProgress.owner) &&
|
||||
ownerStack &&
|
||||
(info += "\n" + formatOwnerStack(ownerStack));
|
||||
} else break;
|
||||
return info;
|
||||
} catch (x) {
|
||||
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
}
|
||||
function getCurrentFiberStackInDev() {
|
||||
return null === current ? "" : getStackByFiberInDevAndProd(current);
|
||||
return null === current
|
||||
? ""
|
||||
: enableOwnerStacks
|
||||
? getOwnerStackByFiberInDev(current)
|
||||
: getStackByFiberInDevAndProd(current);
|
||||
}
|
||||
function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) {
|
||||
var previousFiber = current;
|
||||
@@ -570,7 +654,11 @@ __DEV__ &&
|
||||
isRendering = !1;
|
||||
current = fiber;
|
||||
try {
|
||||
return callback(arg0, arg1, arg2, arg3, arg4);
|
||||
return enableOwnerStacks && null !== fiber && fiber._debugTask
|
||||
? fiber._debugTask.run(
|
||||
callback.bind(null, arg0, arg1, arg2, arg3, arg4)
|
||||
)
|
||||
: callback(arg0, arg1, arg2, arg3, arg4);
|
||||
} finally {
|
||||
current = previousFiber;
|
||||
}
|
||||
@@ -4832,6 +4920,7 @@ __DEV__ &&
|
||||
)),
|
||||
(current.return = returnFiber),
|
||||
(current._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (current._debugTask = returnFiber._debugTask),
|
||||
(current._debugInfo = currentDebugInfo),
|
||||
current
|
||||
);
|
||||
@@ -4906,6 +4995,7 @@ __DEV__ &&
|
||||
)),
|
||||
(current.return = returnFiber),
|
||||
(current._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (current._debugTask = returnFiber._debugTask),
|
||||
(current._debugInfo = currentDebugInfo),
|
||||
current
|
||||
);
|
||||
@@ -4928,6 +5018,7 @@ __DEV__ &&
|
||||
)),
|
||||
(newChild.return = returnFiber),
|
||||
(newChild._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (newChild._debugTask = returnFiber._debugTask),
|
||||
(newChild._debugInfo = currentDebugInfo),
|
||||
newChild
|
||||
);
|
||||
@@ -4975,6 +5066,7 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks && (lanes._debugTask = returnFiber._debugTask),
|
||||
(returnFiber = pushDebugInfo(newChild._debugInfo)),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
(currentDebugInfo = returnFiber),
|
||||
@@ -5512,6 +5604,8 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks &&
|
||||
(lanes._debugTask = returnFiber._debugTask),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
validateFragmentProps(newChild, lanes, returnFiber),
|
||||
(returnFiber = lanes))
|
||||
@@ -5678,6 +5772,8 @@ __DEV__ &&
|
||||
)),
|
||||
(lanes.return = returnFiber),
|
||||
(lanes._debugOwner = returnFiber),
|
||||
enableOwnerStacks &&
|
||||
(lanes._debugTask = returnFiber._debugTask),
|
||||
(lanes._debugInfo = currentDebugInfo),
|
||||
(returnFiber = lanes)),
|
||||
placeSingleChild(returnFiber)
|
||||
@@ -5707,10 +5803,13 @@ __DEV__ &&
|
||||
fiber.return = returnFiber;
|
||||
var debugInfo = (fiber._debugInfo = currentDebugInfo);
|
||||
fiber._debugOwner = returnFiber._debugOwner;
|
||||
enableOwnerStacks && (fiber._debugTask = returnFiber._debugTask);
|
||||
if (null != debugInfo)
|
||||
for (var i = debugInfo.length - 1; 0 <= i; i--)
|
||||
if ("string" === typeof debugInfo[i].stack) {
|
||||
fiber._debugOwner = debugInfo[i];
|
||||
enableOwnerStacks &&
|
||||
(fiber._debugTask = debugInfo[i].debugTask);
|
||||
break;
|
||||
}
|
||||
return fiber;
|
||||
@@ -8213,6 +8312,9 @@ __DEV__ &&
|
||||
workInProgress.mode,
|
||||
workInProgress.lanes
|
||||
);
|
||||
enableOwnerStacks &&
|
||||
((renderLanes._debugStack = workInProgress._debugStack),
|
||||
(renderLanes._debugTask = workInProgress._debugTask));
|
||||
var returnFiber = workInProgress.return;
|
||||
if (null === returnFiber) throw Error("Cannot swap the root fiber.");
|
||||
current.alternate = null;
|
||||
@@ -15524,6 +15626,7 @@ __DEV__ &&
|
||||
this.actualStartTime = -1.1;
|
||||
this.treeBaseDuration = this.selfBaseDuration = -0;
|
||||
this._debugOwner = this._debugInfo = null;
|
||||
enableOwnerStacks && (this._debugTask = this._debugStack = null);
|
||||
this._debugNeedsRemount = !1;
|
||||
this._debugHookTypes = null;
|
||||
hasBadMapPolyfill ||
|
||||
@@ -15563,10 +15666,11 @@ __DEV__ &&
|
||||
selfBaseDuration: -0,
|
||||
treeBaseDuration: -0,
|
||||
_debugInfo: null,
|
||||
_debugOwner: null,
|
||||
_debugNeedsRemount: !1,
|
||||
_debugHookTypes: null
|
||||
_debugOwner: null
|
||||
};
|
||||
enableOwnerStacks && ((tag._debugStack = null), (tag._debugTask = null));
|
||||
tag._debugNeedsRemount = !1;
|
||||
tag._debugHookTypes = null;
|
||||
hasBadMapPolyfill ||
|
||||
"function" !== typeof Object.preventExtensions ||
|
||||
Object.preventExtensions(tag);
|
||||
@@ -15589,6 +15693,9 @@ __DEV__ &&
|
||||
(workInProgress.type = current.type),
|
||||
(workInProgress.stateNode = current.stateNode),
|
||||
(workInProgress._debugOwner = current._debugOwner),
|
||||
enableOwnerStacks &&
|
||||
((workInProgress._debugStack = current._debugStack),
|
||||
(workInProgress._debugTask = current._debugTask)),
|
||||
(workInProgress._debugHookTypes = current._debugHookTypes),
|
||||
(workInProgress.alternate = current),
|
||||
(current.alternate = workInProgress))
|
||||
@@ -15865,6 +15972,9 @@ __DEV__ &&
|
||||
lanes
|
||||
);
|
||||
mode._debugOwner = element._owner;
|
||||
enableOwnerStacks &&
|
||||
((mode._debugStack = element._debugStack),
|
||||
(mode._debugTask = element._debugTask));
|
||||
return mode;
|
||||
}
|
||||
function createFiberFromFragment(elements, mode, lanes, key) {
|
||||
@@ -16182,6 +16292,7 @@ __DEV__ &&
|
||||
syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs,
|
||||
transitionLaneExpirationMs =
|
||||
dynamicFeatureFlags.transitionLaneExpirationMs,
|
||||
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
|
||||
enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler,
|
||||
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_ELEMENT_TYPE = renameElementSymbol
|
||||
@@ -18754,12 +18865,14 @@ __DEV__ &&
|
||||
recreateMessage =
|
||||
"React will try to recreate this component tree from scratch using the error boundary you provided, " +
|
||||
((errorBoundaryName || "Anonymous") + "."),
|
||||
prevGetCurrentStack = ReactSharedInternals.getCurrentStack,
|
||||
componentStack =
|
||||
prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
|
||||
if (!enableOwnerStacks) {
|
||||
var componentStack =
|
||||
null != errorInfo.componentStack ? errorInfo.componentStack : "";
|
||||
ReactSharedInternals.getCurrentStack = function () {
|
||||
return componentStack;
|
||||
};
|
||||
ReactSharedInternals.getCurrentStack = function () {
|
||||
return componentStack;
|
||||
};
|
||||
}
|
||||
try {
|
||||
"object" === typeof error$1 &&
|
||||
null !== error$1 &&
|
||||
@@ -18781,7 +18894,8 @@ __DEV__ &&
|
||||
recreateMessage
|
||||
);
|
||||
} finally {
|
||||
ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
|
||||
enableOwnerStacks ||
|
||||
(ReactSharedInternals.getCurrentStack = prevGetCurrentStack);
|
||||
}
|
||||
};
|
||||
exports.defaultOnRecoverableError = function (error) {
|
||||
@@ -18792,12 +18906,14 @@ __DEV__ &&
|
||||
error = componentName
|
||||
? "An error occurred in the <" + componentName + "> component."
|
||||
: "An error occurred in one of your React components.";
|
||||
var prevGetCurrentStack = ReactSharedInternals.getCurrentStack,
|
||||
componentStack =
|
||||
var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
|
||||
if (!enableOwnerStacks) {
|
||||
var componentStack =
|
||||
null != errorInfo.componentStack ? errorInfo.componentStack : "";
|
||||
ReactSharedInternals.getCurrentStack = function () {
|
||||
return componentStack;
|
||||
};
|
||||
ReactSharedInternals.getCurrentStack = function () {
|
||||
return componentStack;
|
||||
};
|
||||
}
|
||||
try {
|
||||
warn(
|
||||
"%s\n\n%s\n",
|
||||
@@ -18805,7 +18921,8 @@ __DEV__ &&
|
||||
"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries."
|
||||
);
|
||||
} finally {
|
||||
ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
|
||||
enableOwnerStacks ||
|
||||
(ReactSharedInternals.getCurrentStack = prevGetCurrentStack);
|
||||
}
|
||||
};
|
||||
exports.deferredUpdates = function (fn) {
|
||||
@@ -19052,7 +19169,7 @@ __DEV__ &&
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-modern-a4964987-20241211"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -12851,7 +12851,7 @@ module.exports = function ($$$config) {
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-classic-a4964987-20241211"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -12570,7 +12570,7 @@ module.exports = function ($$$config) {
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-modern-a4964987-20241211"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -15030,10 +15030,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-classic-a4964987-20241211",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-classic-a4964987-20241211"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15168,5 +15168,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-classic-a4964987-20241211";
|
||||
})();
|
||||
|
||||
@@ -15030,10 +15030,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-7c4a7c9d-20241210",
|
||||
version: "19.0.0-www-modern-a4964987-20241211",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210"
|
||||
reconcilerVersion: "19.0.0-www-modern-a4964987-20241211"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15168,5 +15168,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-7c4a7c9d-20241210";
|
||||
exports.version = "19.0.0-www-modern-a4964987-20241211";
|
||||
})();
|
||||
|
||||
@@ -1 +1 @@
|
||||
19.0.0-www-classic-7c4a7c9d-20241210
|
||||
19.0.0-www-classic-a4964987-20241211
|
||||
@@ -1 +1 @@
|
||||
19.0.0-www-modern-7c4a7c9d-20241210
|
||||
19.0.0-www-modern-a4964987-20241211
|
||||
Reference in New Issue
Block a user