Comparing version 19.0.0-canary-a73c3450e-20240329 to 19.0.0-canary-adb717393-20240411
@@ -38,3 +38,2 @@ /** | ||
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); | ||
var REACT_CACHE_TYPE = Symbol.for('react.cache'); | ||
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; | ||
@@ -56,3 +55,3 @@ var FAUX_ITERATOR_SYMBOL = '@@iterator'; | ||
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
@@ -75,4 +74,3 @@ function error(format) { | ||
{ | ||
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; | ||
var stack = ReactDebugCurrentFrame.getStackAddendum(); | ||
var stack = ReactSharedInternals.getStackAddendum(); | ||
@@ -100,14 +98,12 @@ if (stack !== '') { | ||
var enableScopeAPI = false; // Experimental Create Event Handle API. | ||
var enableCacheElement = false; | ||
var enableTransitionTracing = false; // No known bugs, but needs performance testing | ||
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber | ||
// Ready for next major. | ||
// | ||
// Alias __NEXT_MAJOR__ to false for easier skimming. | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
var __NEXT_MAJOR__ = false; // Removes legacy style context | ||
var enableRefAsProp = true; | ||
var enableRenderableContext = __NEXT_MAJOR__; // ----------------------------------------------------------------------------- | ||
var enableRenderableContext = true; // ----------------------------------------------------------------------------- | ||
// stuff. Intended to enable React core members to more easily debug scheduling | ||
@@ -174,7 +170,2 @@ // issues in DEV builds. | ||
case REACT_CACHE_TYPE: | ||
{ | ||
return 'Cache'; | ||
} | ||
} | ||
@@ -192,4 +183,3 @@ | ||
{ | ||
var provider = type; | ||
return getContextName(provider._context) + '.Provider'; | ||
return null; | ||
} | ||
@@ -201,3 +191,3 @@ | ||
{ | ||
return getContextName(context) + '.Consumer'; | ||
return getContextName(context) + '.Provider'; | ||
} | ||
@@ -207,3 +197,4 @@ | ||
{ | ||
return null; | ||
var consumer = type; | ||
return getContextName(consumer._context) + '.Consumer'; | ||
} | ||
@@ -321,3 +312,3 @@ | ||
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) { | ||
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableTransitionTracing ) { | ||
return true; | ||
@@ -327,3 +318,3 @@ } | ||
if (typeof type === 'object' && type !== null) { | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || enableRenderableContext || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || !enableRenderableContext || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
@@ -440,5 +431,4 @@ // we don't know which Flight build this will end up being used | ||
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; | ||
var prefix; | ||
function describeBuiltInComponentFrame(name, ownerFn) { | ||
function describeBuiltInComponentFrame(name) { | ||
{ | ||
@@ -497,9 +487,9 @@ if (prefix === undefined) { | ||
Error.prepareStackTrace = undefined; | ||
var previousDispatcher; | ||
var previousDispatcher = null; | ||
{ | ||
previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function | ||
previousDispatcher = ReactSharedInternals.H; // Set the dispatcher in DEV because this might be call in the render function | ||
// for warnings. | ||
ReactCurrentDispatcher.current = null; | ||
ReactSharedInternals.H = null; | ||
disableLogs(); | ||
@@ -689,3 +679,3 @@ } | ||
{ | ||
ReactCurrentDispatcher.current = previousDispatcher; | ||
ReactSharedInternals.H = previousDispatcher; | ||
reenableLogs(); | ||
@@ -709,3 +699,3 @@ } | ||
} | ||
function describeFunctionComponentFrame(fn, ownerFn) { | ||
function describeFunctionComponentFrame(fn) { | ||
{ | ||
@@ -721,3 +711,3 @@ return describeNativeComponentFrame(fn, false); | ||
function describeUnknownElementTypeFrameInDEV(type, ownerFn) { | ||
function describeUnknownElementTypeFrameInDEV(type) { | ||
@@ -753,3 +743,3 @@ if (type == null) { | ||
// Memo may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(type.type); | ||
@@ -764,3 +754,3 @@ case REACT_LAZY_TYPE: | ||
// Lazy may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(init(payload)); | ||
} catch (x) {} | ||
@@ -774,11 +764,8 @@ } | ||
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; | ||
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference'); | ||
var specialPropKeyWarningShown; | ||
var specialPropRefWarningShown; | ||
var didWarnAboutStringRefs; | ||
var didWarnAboutElementRef; | ||
{ | ||
didWarnAboutStringRefs = {}; | ||
didWarnAboutElementRef = {}; | ||
} | ||
@@ -814,16 +801,2 @@ | ||
function warnIfStringRefCannotBeAutoConverted(config, self) { | ||
{ | ||
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) { | ||
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); | ||
if (!didWarnAboutStringRefs[componentName]) { | ||
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://react.dev/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref); | ||
didWarnAboutStringRefs[componentName] = true; | ||
} | ||
} | ||
} | ||
} | ||
function defineKeyPropWarningGetter(props, displayName) { | ||
@@ -847,19 +820,16 @@ { | ||
function defineRefPropWarningGetter(props, displayName) { | ||
function elementRefGetterWithDeprecationWarning() { | ||
{ | ||
{ | ||
var warnAboutAccessingRef = function () { | ||
if (!specialPropRefWarningShown) { | ||
specialPropRefWarningShown = true; | ||
var componentName = getComponentNameFromType(this.type); | ||
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://react.dev/link/special-props)', displayName); | ||
} | ||
}; | ||
if (!didWarnAboutElementRef[componentName]) { | ||
didWarnAboutElementRef[componentName] = true; | ||
warnAboutAccessingRef.isReactWarning = true; | ||
Object.defineProperty(props, 'ref', { | ||
get: warnAboutAccessingRef, | ||
configurable: true | ||
}); | ||
} | ||
error('Accessing element.ref was removed in React 19. ref is now a ' + 'regular prop. It will be removed from the JSX Element ' + 'type in a future release.'); | ||
} // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
var refProp = this.props.ref; | ||
return refProp !== undefined ? refProp : null; | ||
} | ||
@@ -893,3 +863,11 @@ } | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
var refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -900,4 +878,7 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In dev, make `ref` a non-enumerable property with a warning. It's non- | ||
// enumerable so that test matchers and serializers don't access it and | ||
// trigger the warning. | ||
// | ||
// `ref` will be removed from the element completely in a future release. | ||
element = { | ||
@@ -909,3 +890,2 @@ // This tag allows us to uniquely identify this as a React Element | ||
key: key, | ||
ref: ref, | ||
props: props, | ||
@@ -915,2 +895,27 @@ // Record the component responsible for creating this element. | ||
}; | ||
if (ref !== null) { | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
get: elementRefGetterWithDeprecationWarning | ||
}); | ||
} else { | ||
// Don't warn on access if a ref is not given. This reduces false | ||
// positives in cases where a test serializer uses | ||
// getOwnPropertyDescriptors to compare objects, like Jest does, which is | ||
// a problem because it bypasses non-enumerability. | ||
// | ||
// So unfortunately this will trigger a false positive warning in Jest | ||
// when the diff is printed: | ||
// | ||
// expect(<div ref={ref} />).toEqual(<span ref={ref} />); | ||
// | ||
// A bit sketchy, but this is what we've done for the `props.key` and | ||
// `props.ref` accessors for years, which implies it will be good enough | ||
// for `element.ref`, too. Let's see if anyone complains. | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
value: null | ||
}); | ||
} | ||
} | ||
@@ -1030,5 +1035,2 @@ | ||
var propName; // Reserved names are extracted | ||
var props = {}; | ||
var key = null; | ||
@@ -1058,27 +1060,29 @@ var ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
if (hasValidRef(config)) ; | ||
{ | ||
warnIfStringRefCannotBeAutoConverted(config, self); | ||
} | ||
} // Remaining properties are added to a new props object | ||
var props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
var defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (var propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -1088,3 +1092,3 @@ } | ||
if (key || ref) { | ||
if (key || !enableRefAsProp ) { | ||
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; | ||
@@ -1095,9 +1099,5 @@ | ||
} | ||
if (ref) { | ||
defineRefPropWarningGetter(props, displayName); | ||
} | ||
} | ||
var element = ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); | ||
var element = ReactElement(type, key, ref, self, source, ReactSharedInternals.owner, props); | ||
@@ -1114,4 +1114,4 @@ if (type === REACT_FRAGMENT_TYPE) { | ||
{ | ||
if (ReactCurrentOwner.current) { | ||
var name = getComponentNameFromType(ReactCurrentOwner.current.type); | ||
if (ReactSharedInternals.owner) { | ||
var name = getComponentNameFromType(ReactSharedInternals.owner.type); | ||
@@ -1220,5 +1220,13 @@ if (name) { | ||
if (element && element._owner && element._owner !== ReactCurrentOwner.current) { | ||
// Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; | ||
if (element && element._owner != null && element._owner !== ReactSharedInternals.owner) { | ||
var ownerName = null; | ||
if (typeof element._owner.tag === 'number') { | ||
ownerName = getComponentNameFromType(element._owner.type); | ||
} else if (typeof element._owner.name === 'string') { | ||
ownerName = element._owner.name; | ||
} // Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + ownerName + "."; | ||
} | ||
@@ -1237,7 +1245,6 @@ | ||
if (element) { | ||
var owner = element._owner; | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null); | ||
ReactDebugCurrentFrame.setExtraStackFrame(stack); | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type); | ||
ReactSharedInternals.setExtraStackFrame(stack); | ||
} else { | ||
ReactDebugCurrentFrame.setExtraStackFrame(null); | ||
ReactSharedInternals.setExtraStackFrame(null); | ||
} | ||
@@ -1285,10 +1292,2 @@ } | ||
} | ||
if (fragment.ref !== null) { | ||
setCurrentlyValidatingElement(fragment); | ||
error('Invalid attribute `ref` supplied to `React.Fragment`.'); | ||
setCurrentlyValidatingElement(null); | ||
} | ||
} | ||
@@ -1295,0 +1294,0 @@ } |
@@ -38,3 +38,2 @@ /** | ||
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); | ||
var REACT_CACHE_TYPE = Symbol.for('react.cache'); | ||
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; | ||
@@ -56,3 +55,3 @@ var FAUX_ITERATOR_SYMBOL = '@@iterator'; | ||
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
@@ -75,4 +74,3 @@ function error(format) { | ||
{ | ||
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; | ||
var stack = ReactDebugCurrentFrame.getStackAddendum(); | ||
var stack = ReactSharedInternals.getStackAddendum(); | ||
@@ -100,14 +98,12 @@ if (stack !== '') { | ||
var enableScopeAPI = false; // Experimental Create Event Handle API. | ||
var enableCacheElement = false; | ||
var enableTransitionTracing = false; // No known bugs, but needs performance testing | ||
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber | ||
// Ready for next major. | ||
// | ||
// Alias __NEXT_MAJOR__ to false for easier skimming. | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
var __NEXT_MAJOR__ = false; // Removes legacy style context | ||
var enableRefAsProp = true; | ||
var enableRenderableContext = __NEXT_MAJOR__; // ----------------------------------------------------------------------------- | ||
var enableRenderableContext = true; // ----------------------------------------------------------------------------- | ||
// stuff. Intended to enable React core members to more easily debug scheduling | ||
@@ -174,7 +170,2 @@ // issues in DEV builds. | ||
case REACT_CACHE_TYPE: | ||
{ | ||
return 'Cache'; | ||
} | ||
} | ||
@@ -192,4 +183,3 @@ | ||
{ | ||
var provider = type; | ||
return getContextName(provider._context) + '.Provider'; | ||
return null; | ||
} | ||
@@ -201,3 +191,3 @@ | ||
{ | ||
return getContextName(context) + '.Consumer'; | ||
return getContextName(context) + '.Provider'; | ||
} | ||
@@ -207,3 +197,4 @@ | ||
{ | ||
return null; | ||
var consumer = type; | ||
return getContextName(consumer._context) + '.Consumer'; | ||
} | ||
@@ -321,3 +312,3 @@ | ||
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) { | ||
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableTransitionTracing ) { | ||
return true; | ||
@@ -327,3 +318,3 @@ } | ||
if (typeof type === 'object' && type !== null) { | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || enableRenderableContext || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || !enableRenderableContext || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
@@ -440,5 +431,4 @@ // we don't know which Flight build this will end up being used | ||
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; | ||
var prefix; | ||
function describeBuiltInComponentFrame(name, ownerFn) { | ||
function describeBuiltInComponentFrame(name) { | ||
{ | ||
@@ -497,9 +487,9 @@ if (prefix === undefined) { | ||
Error.prepareStackTrace = undefined; | ||
var previousDispatcher; | ||
var previousDispatcher = null; | ||
{ | ||
previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function | ||
previousDispatcher = ReactSharedInternals.H; // Set the dispatcher in DEV because this might be call in the render function | ||
// for warnings. | ||
ReactCurrentDispatcher.current = null; | ||
ReactSharedInternals.H = null; | ||
disableLogs(); | ||
@@ -689,3 +679,3 @@ } | ||
{ | ||
ReactCurrentDispatcher.current = previousDispatcher; | ||
ReactSharedInternals.H = previousDispatcher; | ||
reenableLogs(); | ||
@@ -709,3 +699,3 @@ } | ||
} | ||
function describeFunctionComponentFrame(fn, ownerFn) { | ||
function describeFunctionComponentFrame(fn) { | ||
{ | ||
@@ -721,3 +711,3 @@ return describeNativeComponentFrame(fn, false); | ||
function describeUnknownElementTypeFrameInDEV(type, ownerFn) { | ||
function describeUnknownElementTypeFrameInDEV(type) { | ||
@@ -753,3 +743,3 @@ if (type == null) { | ||
// Memo may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(type.type); | ||
@@ -764,3 +754,3 @@ case REACT_LAZY_TYPE: | ||
// Lazy may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(init(payload)); | ||
} catch (x) {} | ||
@@ -774,11 +764,8 @@ } | ||
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; | ||
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference'); | ||
var specialPropKeyWarningShown; | ||
var specialPropRefWarningShown; | ||
var didWarnAboutStringRefs; | ||
var didWarnAboutElementRef; | ||
{ | ||
didWarnAboutStringRefs = {}; | ||
didWarnAboutElementRef = {}; | ||
} | ||
@@ -814,16 +801,2 @@ | ||
function warnIfStringRefCannotBeAutoConverted(config, self) { | ||
{ | ||
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) { | ||
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); | ||
if (!didWarnAboutStringRefs[componentName]) { | ||
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://react.dev/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref); | ||
didWarnAboutStringRefs[componentName] = true; | ||
} | ||
} | ||
} | ||
} | ||
function defineKeyPropWarningGetter(props, displayName) { | ||
@@ -847,19 +820,16 @@ { | ||
function defineRefPropWarningGetter(props, displayName) { | ||
function elementRefGetterWithDeprecationWarning() { | ||
{ | ||
{ | ||
var warnAboutAccessingRef = function () { | ||
if (!specialPropRefWarningShown) { | ||
specialPropRefWarningShown = true; | ||
var componentName = getComponentNameFromType(this.type); | ||
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://react.dev/link/special-props)', displayName); | ||
} | ||
}; | ||
if (!didWarnAboutElementRef[componentName]) { | ||
didWarnAboutElementRef[componentName] = true; | ||
warnAboutAccessingRef.isReactWarning = true; | ||
Object.defineProperty(props, 'ref', { | ||
get: warnAboutAccessingRef, | ||
configurable: true | ||
}); | ||
} | ||
error('Accessing element.ref was removed in React 19. ref is now a ' + 'regular prop. It will be removed from the JSX Element ' + 'type in a future release.'); | ||
} // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
var refProp = this.props.ref; | ||
return refProp !== undefined ? refProp : null; | ||
} | ||
@@ -893,3 +863,11 @@ } | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
var refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -900,4 +878,7 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In dev, make `ref` a non-enumerable property with a warning. It's non- | ||
// enumerable so that test matchers and serializers don't access it and | ||
// trigger the warning. | ||
// | ||
// `ref` will be removed from the element completely in a future release. | ||
element = { | ||
@@ -909,3 +890,2 @@ // This tag allows us to uniquely identify this as a React Element | ||
key: key, | ||
ref: ref, | ||
props: props, | ||
@@ -915,2 +895,27 @@ // Record the component responsible for creating this element. | ||
}; | ||
if (ref !== null) { | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
get: elementRefGetterWithDeprecationWarning | ||
}); | ||
} else { | ||
// Don't warn on access if a ref is not given. This reduces false | ||
// positives in cases where a test serializer uses | ||
// getOwnPropertyDescriptors to compare objects, like Jest does, which is | ||
// a problem because it bypasses non-enumerability. | ||
// | ||
// So unfortunately this will trigger a false positive warning in Jest | ||
// when the diff is printed: | ||
// | ||
// expect(<div ref={ref} />).toEqual(<span ref={ref} />); | ||
// | ||
// A bit sketchy, but this is what we've done for the `props.key` and | ||
// `props.ref` accessors for years, which implies it will be good enough | ||
// for `element.ref`, too. Let's see if anyone complains. | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
value: null | ||
}); | ||
} | ||
} | ||
@@ -1054,5 +1059,2 @@ | ||
var propName; // Reserved names are extracted | ||
var props = {}; | ||
var key = null; | ||
@@ -1082,27 +1084,29 @@ var ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
if (hasValidRef(config)) ; | ||
{ | ||
warnIfStringRefCannotBeAutoConverted(config, self); | ||
} | ||
} // Remaining properties are added to a new props object | ||
var props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
var defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (var propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -1112,3 +1116,3 @@ } | ||
if (key || ref) { | ||
if (key || !enableRefAsProp ) { | ||
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; | ||
@@ -1119,9 +1123,5 @@ | ||
} | ||
if (ref) { | ||
defineRefPropWarningGetter(props, displayName); | ||
} | ||
} | ||
var element = ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); | ||
var element = ReactElement(type, key, ref, self, source, ReactSharedInternals.owner, props); | ||
@@ -1138,4 +1138,4 @@ if (type === REACT_FRAGMENT_TYPE) { | ||
{ | ||
if (ReactCurrentOwner.current) { | ||
var name = getComponentNameFromType(ReactCurrentOwner.current.type); | ||
if (ReactSharedInternals.owner) { | ||
var name = getComponentNameFromType(ReactSharedInternals.owner.type); | ||
@@ -1244,5 +1244,13 @@ if (name) { | ||
if (element && element._owner && element._owner !== ReactCurrentOwner.current) { | ||
// Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; | ||
if (element && element._owner != null && element._owner !== ReactSharedInternals.owner) { | ||
var ownerName = null; | ||
if (typeof element._owner.tag === 'number') { | ||
ownerName = getComponentNameFromType(element._owner.type); | ||
} else if (typeof element._owner.name === 'string') { | ||
ownerName = element._owner.name; | ||
} // Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + ownerName + "."; | ||
} | ||
@@ -1261,7 +1269,6 @@ | ||
if (element) { | ||
var owner = element._owner; | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null); | ||
ReactDebugCurrentFrame.setExtraStackFrame(stack); | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type); | ||
ReactSharedInternals.setExtraStackFrame(stack); | ||
} else { | ||
ReactDebugCurrentFrame.setExtraStackFrame(null); | ||
ReactSharedInternals.setExtraStackFrame(null); | ||
} | ||
@@ -1309,10 +1316,2 @@ } | ||
} | ||
if (fragment.ref !== null) { | ||
setCurrentlyValidatingElement(fragment); | ||
error('Invalid attribute `ref` supplied to `React.Fragment`.'); | ||
setCurrentlyValidatingElement(null); | ||
} | ||
} | ||
@@ -1319,0 +1318,0 @@ } |
@@ -22,14 +22,11 @@ /** | ||
const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
// $FlowFixMe[method-unbinding] | ||
const hasOwnProperty = Object.prototype.hasOwnProperty; | ||
const enableRefAsProp = true; | ||
const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
const ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
function hasValidRef(config) { | ||
return config.ref !== undefined; | ||
} | ||
function hasValidKey(config) { | ||
@@ -65,3 +62,11 @@ | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -72,4 +77,3 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In prod, `ref` is a regular property and _owner doesn't exist. | ||
element = { | ||
@@ -82,5 +86,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref, | ||
props, | ||
// Record the component responsible for creating this element. | ||
_owner: owner | ||
props | ||
}; | ||
@@ -100,5 +102,2 @@ } | ||
function jsxProd(type, config, maybeKey) { | ||
let propName; // Reserved names are extracted | ||
const props = {}; | ||
let key = null; | ||
@@ -122,23 +121,27 @@ let ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
} // Remaining properties are added to a new props object | ||
let props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
const defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (const propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -148,3 +151,3 @@ } | ||
return ReactElement(type, key, ref, undefined, undefined, ReactCurrentOwner.current, props); | ||
return ReactElement(type, key, ref, undefined, undefined, ReactSharedInternals.owner, props); | ||
} // While `jsxDEV` should never be called when running in production, we do | ||
@@ -151,0 +154,0 @@ |
@@ -10,5 +10,4 @@ /* | ||
*/ | ||
'use strict';var f=require("react"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner; | ||
function p(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&"key"!==b&&"ref"!==b&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=p;exports.jsxs=p; | ||
'use strict';require("react");var e=Symbol.for("react.element"),f=Symbol.for("react.fragment");function g(h,a,b){var c=null;void 0!==b&&(c=""+b);void 0!==a.key&&(c=""+a.key);if("key"in a){b={};for(var d in a)"key"!==d&&(b[d]=a[d])}else b=a;a=b.ref;return{$$typeof:e,type:h,key:c,ref:void 0!==a?a:null,props:b}}exports.Fragment=f;exports.jsx=g;exports.jsxs=g; | ||
//# sourceMappingURL=react-jsx-runtime.production.min.js.map |
@@ -22,14 +22,11 @@ /** | ||
const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
// $FlowFixMe[method-unbinding] | ||
const hasOwnProperty = Object.prototype.hasOwnProperty; | ||
const enableRefAsProp = true; | ||
const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
const ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
function hasValidRef(config) { | ||
return config.ref !== undefined; | ||
} | ||
function hasValidKey(config) { | ||
@@ -65,3 +62,11 @@ | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -72,4 +77,3 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In prod, `ref` is a regular property and _owner doesn't exist. | ||
element = { | ||
@@ -82,5 +86,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref, | ||
props, | ||
// Record the component responsible for creating this element. | ||
_owner: owner | ||
props | ||
}; | ||
@@ -100,5 +102,2 @@ } | ||
function jsxProd(type, config, maybeKey) { | ||
let propName; // Reserved names are extracted | ||
const props = {}; | ||
let key = null; | ||
@@ -122,23 +121,27 @@ let ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
} // Remaining properties are added to a new props object | ||
let props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
const defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (const propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -148,3 +151,3 @@ } | ||
return ReactElement(type, key, ref, undefined, undefined, ReactCurrentOwner.current, props); | ||
return ReactElement(type, key, ref, undefined, undefined, ReactSharedInternals.owner, props); | ||
} // While `jsxDEV` should never be called when running in production, we do | ||
@@ -151,0 +154,0 @@ |
@@ -10,5 +10,4 @@ /* | ||
*/ | ||
'use strict';var f=require("react"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner; | ||
function p(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&"key"!==b&&"ref"!==b&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=p;exports.jsxs=p; | ||
'use strict';require("react");var e=Symbol.for("react.element"),f=Symbol.for("react.fragment");function g(h,a,b){var c=null;void 0!==b&&(c=""+b);void 0!==a.key&&(c=""+a.key);if("key"in a){b={};for(var d in a)"key"!==d&&(b[d]=a[d])}else b=a;a=b.ref;return{$$typeof:e,type:h,key:c,ref:void 0!==a?a:null,props:b}}exports.Fragment=f;exports.jsx=g;exports.jsxs=g; | ||
//# sourceMappingURL=react-jsx-runtime.profiling.min.js.map |
@@ -38,3 +38,2 @@ /** | ||
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); | ||
var REACT_CACHE_TYPE = Symbol.for('react.cache'); | ||
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; | ||
@@ -56,4 +55,9 @@ var FAUX_ITERATOR_SYMBOL = '@@iterator'; | ||
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var ReactSharedInternalsServer = // $FlowFixMe: It's defined in the one we resolve to. | ||
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
if (!ReactSharedInternalsServer) { | ||
throw new Error('The "react" package in this environment is not configured correctly. ' + 'The "react-server" condition must be enabled in any environment that ' + 'runs React Server Components.'); | ||
} | ||
function error(format) { | ||
@@ -75,4 +79,3 @@ { | ||
{ | ||
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; | ||
var stack = ReactDebugCurrentFrame.getStackAddendum(); | ||
var stack = ReactSharedInternalsServer.getStackAddendum(); | ||
@@ -100,14 +103,12 @@ if (stack !== '') { | ||
var enableScopeAPI = false; // Experimental Create Event Handle API. | ||
var enableCacheElement = false; | ||
var enableTransitionTracing = false; // No known bugs, but needs performance testing | ||
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber | ||
// Ready for next major. | ||
// | ||
// Alias __NEXT_MAJOR__ to false for easier skimming. | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
var __NEXT_MAJOR__ = false; // Removes legacy style context | ||
var enableRefAsProp = true; | ||
var enableRenderableContext = __NEXT_MAJOR__; // ----------------------------------------------------------------------------- | ||
var enableRenderableContext = true; // ----------------------------------------------------------------------------- | ||
// stuff. Intended to enable React core members to more easily debug scheduling | ||
@@ -174,7 +175,2 @@ // issues in DEV builds. | ||
case REACT_CACHE_TYPE: | ||
{ | ||
return 'Cache'; | ||
} | ||
} | ||
@@ -192,4 +188,3 @@ | ||
{ | ||
var provider = type; | ||
return getContextName(provider._context) + '.Provider'; | ||
return null; | ||
} | ||
@@ -201,3 +196,3 @@ | ||
{ | ||
return getContextName(context) + '.Consumer'; | ||
return getContextName(context) + '.Provider'; | ||
} | ||
@@ -207,3 +202,4 @@ | ||
{ | ||
return null; | ||
var consumer = type; | ||
return getContextName(consumer._context) + '.Consumer'; | ||
} | ||
@@ -321,3 +317,3 @@ | ||
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) { | ||
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableTransitionTracing ) { | ||
return true; | ||
@@ -327,3 +323,3 @@ } | ||
if (typeof type === 'object' && type !== null) { | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || enableRenderableContext || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || !enableRenderableContext || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
@@ -440,5 +436,4 @@ // we don't know which Flight build this will end up being used | ||
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; | ||
var prefix; | ||
function describeBuiltInComponentFrame(name, ownerFn) { | ||
function describeBuiltInComponentFrame(name) { | ||
{ | ||
@@ -497,9 +492,9 @@ if (prefix === undefined) { | ||
Error.prepareStackTrace = undefined; | ||
var previousDispatcher; | ||
var previousDispatcher = null; | ||
{ | ||
previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function | ||
previousDispatcher = ReactSharedInternalsServer.H; // Set the dispatcher in DEV because this might be call in the render function | ||
// for warnings. | ||
ReactCurrentDispatcher.current = null; | ||
ReactSharedInternalsServer.H = null; | ||
disableLogs(); | ||
@@ -689,3 +684,3 @@ } | ||
{ | ||
ReactCurrentDispatcher.current = previousDispatcher; | ||
ReactSharedInternalsServer.H = previousDispatcher; | ||
reenableLogs(); | ||
@@ -709,3 +704,3 @@ } | ||
} | ||
function describeFunctionComponentFrame(fn, ownerFn) { | ||
function describeFunctionComponentFrame(fn) { | ||
{ | ||
@@ -721,3 +716,3 @@ return describeNativeComponentFrame(fn, false); | ||
function describeUnknownElementTypeFrameInDEV(type, ownerFn) { | ||
function describeUnknownElementTypeFrameInDEV(type) { | ||
@@ -753,3 +748,3 @@ if (type == null) { | ||
// Memo may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(type.type); | ||
@@ -764,3 +759,3 @@ case REACT_LAZY_TYPE: | ||
// Lazy may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(init(payload)); | ||
} catch (x) {} | ||
@@ -774,11 +769,8 @@ } | ||
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; | ||
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference'); | ||
var specialPropKeyWarningShown; | ||
var specialPropRefWarningShown; | ||
var didWarnAboutStringRefs; | ||
var didWarnAboutElementRef; | ||
{ | ||
didWarnAboutStringRefs = {}; | ||
didWarnAboutElementRef = {}; | ||
} | ||
@@ -814,16 +806,2 @@ | ||
function warnIfStringRefCannotBeAutoConverted(config, self) { | ||
{ | ||
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) { | ||
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); | ||
if (!didWarnAboutStringRefs[componentName]) { | ||
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://react.dev/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref); | ||
didWarnAboutStringRefs[componentName] = true; | ||
} | ||
} | ||
} | ||
} | ||
function defineKeyPropWarningGetter(props, displayName) { | ||
@@ -847,19 +825,16 @@ { | ||
function defineRefPropWarningGetter(props, displayName) { | ||
function elementRefGetterWithDeprecationWarning() { | ||
{ | ||
{ | ||
var warnAboutAccessingRef = function () { | ||
if (!specialPropRefWarningShown) { | ||
specialPropRefWarningShown = true; | ||
var componentName = getComponentNameFromType(this.type); | ||
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://react.dev/link/special-props)', displayName); | ||
} | ||
}; | ||
if (!didWarnAboutElementRef[componentName]) { | ||
didWarnAboutElementRef[componentName] = true; | ||
warnAboutAccessingRef.isReactWarning = true; | ||
Object.defineProperty(props, 'ref', { | ||
get: warnAboutAccessingRef, | ||
configurable: true | ||
}); | ||
} | ||
error('Accessing element.ref was removed in React 19. ref is now a ' + 'regular prop. It will be removed from the JSX Element ' + 'type in a future release.'); | ||
} // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
var refProp = this.props.ref; | ||
return refProp !== undefined ? refProp : null; | ||
} | ||
@@ -893,3 +868,11 @@ } | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
var refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -900,4 +883,7 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In dev, make `ref` a non-enumerable property with a warning. It's non- | ||
// enumerable so that test matchers and serializers don't access it and | ||
// trigger the warning. | ||
// | ||
// `ref` will be removed from the element completely in a future release. | ||
element = { | ||
@@ -909,3 +895,2 @@ // This tag allows us to uniquely identify this as a React Element | ||
key: key, | ||
ref: ref, | ||
props: props, | ||
@@ -915,2 +900,27 @@ // Record the component responsible for creating this element. | ||
}; | ||
if (ref !== null) { | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
get: elementRefGetterWithDeprecationWarning | ||
}); | ||
} else { | ||
// Don't warn on access if a ref is not given. This reduces false | ||
// positives in cases where a test serializer uses | ||
// getOwnPropertyDescriptors to compare objects, like Jest does, which is | ||
// a problem because it bypasses non-enumerability. | ||
// | ||
// So unfortunately this will trigger a false positive warning in Jest | ||
// when the diff is printed: | ||
// | ||
// expect(<div ref={ref} />).toEqual(<span ref={ref} />); | ||
// | ||
// A bit sketchy, but this is what we've done for the `props.key` and | ||
// `props.ref` accessors for years, which implies it will be good enough | ||
// for `element.ref`, too. Let's see if anyone complains. | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
value: null | ||
}); | ||
} | ||
} | ||
@@ -1054,5 +1064,2 @@ | ||
var propName; // Reserved names are extracted | ||
var props = {}; | ||
var key = null; | ||
@@ -1082,27 +1089,29 @@ var ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
if (hasValidRef(config)) ; | ||
{ | ||
warnIfStringRefCannotBeAutoConverted(config, self); | ||
} | ||
} // Remaining properties are added to a new props object | ||
var props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
var defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (var propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -1112,3 +1121,3 @@ } | ||
if (key || ref) { | ||
if (key || !enableRefAsProp ) { | ||
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; | ||
@@ -1119,9 +1128,5 @@ | ||
} | ||
if (ref) { | ||
defineRefPropWarningGetter(props, displayName); | ||
} | ||
} | ||
var element = ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); | ||
var element = ReactElement(type, key, ref, self, source, ReactSharedInternalsServer.owner, props); | ||
@@ -1138,4 +1143,4 @@ if (type === REACT_FRAGMENT_TYPE) { | ||
{ | ||
if (ReactCurrentOwner.current) { | ||
var name = getComponentNameFromType(ReactCurrentOwner.current.type); | ||
if (ReactSharedInternalsServer.owner) { | ||
var name = getComponentNameFromType(ReactSharedInternalsServer.owner.type); | ||
@@ -1244,5 +1249,13 @@ if (name) { | ||
if (element && element._owner && element._owner !== ReactCurrentOwner.current) { | ||
// Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; | ||
if (element && element._owner != null && element._owner !== ReactSharedInternalsServer.owner) { | ||
var ownerName = null; | ||
if (typeof element._owner.tag === 'number') { | ||
ownerName = getComponentNameFromType(element._owner.type); | ||
} else if (typeof element._owner.name === 'string') { | ||
ownerName = element._owner.name; | ||
} // Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + ownerName + "."; | ||
} | ||
@@ -1261,7 +1274,6 @@ | ||
if (element) { | ||
var owner = element._owner; | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null); | ||
ReactDebugCurrentFrame.setExtraStackFrame(stack); | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type); | ||
ReactSharedInternalsServer.setExtraStackFrame(stack); | ||
} else { | ||
ReactDebugCurrentFrame.setExtraStackFrame(null); | ||
ReactSharedInternalsServer.setExtraStackFrame(null); | ||
} | ||
@@ -1309,10 +1321,2 @@ } | ||
} | ||
if (fragment.ref !== null) { | ||
setCurrentlyValidatingElement(fragment); | ||
error('Invalid attribute `ref` supplied to `React.Fragment`.'); | ||
setCurrentlyValidatingElement(null); | ||
} | ||
} | ||
@@ -1319,0 +1323,0 @@ } |
@@ -22,12 +22,14 @@ /** | ||
const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
// $FlowFixMe[method-unbinding] | ||
const hasOwnProperty = Object.prototype.hasOwnProperty; | ||
const enableRefAsProp = true; | ||
const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
const ReactSharedInternalsServer = // $FlowFixMe: It's defined in the one we resolve to. | ||
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
function hasValidRef(config) { | ||
return config.ref !== undefined; | ||
if (!ReactSharedInternalsServer) { | ||
throw new Error('The "react" package in this environment is not configured correctly. ' + 'The "react-server" condition must be enabled in any environment that ' + 'runs React Server Components.'); | ||
} | ||
@@ -65,3 +67,11 @@ | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -72,4 +82,3 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In prod, `ref` is a regular property and _owner doesn't exist. | ||
element = { | ||
@@ -82,5 +91,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref, | ||
props, | ||
// Record the component responsible for creating this element. | ||
_owner: owner | ||
props | ||
}; | ||
@@ -100,5 +107,2 @@ } | ||
function jsxProd(type, config, maybeKey) { | ||
let propName; // Reserved names are extracted | ||
const props = {}; | ||
let key = null; | ||
@@ -122,23 +126,27 @@ let ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
} // Remaining properties are added to a new props object | ||
let props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
const defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (const propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -148,3 +156,3 @@ } | ||
return ReactElement(type, key, ref, undefined, undefined, ReactCurrentOwner.current, props); | ||
return ReactElement(type, key, ref, undefined, undefined, ReactSharedInternalsServer.owner, props); | ||
} // While `jsxDEV` should never be called when running in production, we do | ||
@@ -151,0 +159,0 @@ |
@@ -10,5 +10,5 @@ /* | ||
*/ | ||
'use strict';var f=require("react"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner; | ||
function p(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&"key"!==b&&"ref"!==b&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=p;exports.jsxDEV=void 0;exports.jsxs=p; | ||
'use strict';var e=require("react"),f=Symbol.for("react.element"),g=Symbol.for("react.fragment");if(!e.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'); | ||
function h(k,a,b){var c=null;void 0!==b&&(c=""+b);void 0!==a.key&&(c=""+a.key);if("key"in a){b={};for(var d in a)"key"!==d&&(b[d]=a[d])}else b=a;a=b.ref;return{$$typeof:f,type:k,key:c,ref:void 0!==a?a:null,props:b}}exports.Fragment=g;exports.jsx=h;exports.jsxDEV=void 0;exports.jsxs=h; | ||
//# sourceMappingURL=react-jsx-runtime.react-server.production.min.js.map |
@@ -13,3 +13,3 @@ /** | ||
var ReactVersion = '19.0.0-canary-a73c3450e-20240329'; | ||
var ReactVersion = '19.0.0-canary-adb717393-20240411'; | ||
@@ -25,3 +25,4 @@ // ATTENTION | ||
const REACT_PROFILER_TYPE = Symbol.for('react.profiler'); | ||
const REACT_PROVIDER_TYPE = Symbol.for('react.provider'); // TODO: Delete with enableRenderableContext | ||
const REACT_CONSUMER_TYPE = Symbol.for('react.consumer'); | ||
const REACT_CONTEXT_TYPE = Symbol.for('react.context'); | ||
@@ -224,8 +225,2 @@ const REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); | ||
// ----------------------------------------------------------------------------- | ||
// Ready for next major. | ||
// | ||
// Alias __NEXT_MAJOR__ to false for easier skimming. | ||
// ----------------------------------------------------------------------------- | ||
const __NEXT_MAJOR__ = false; // Removes legacy style context | ||
// as a normal prop instead of stripping it from the props object. | ||
@@ -235,45 +230,8 @@ // Passes `ref` as a normal prop instead of stripping it from the props object | ||
const enableRefAsProp = __NEXT_MAJOR__; | ||
const enableRefAsProp = true; | ||
/** | ||
* Keeps track of the current dispatcher. | ||
*/ | ||
const ReactCurrentDispatcher = { | ||
current: null | ||
}; | ||
/** | ||
* Keeps track of the current Cache dispatcher. | ||
*/ | ||
const ReactCurrentCache = { | ||
current: null | ||
}; | ||
/** | ||
* Keeps track of the current batch's configuration such as how long an update | ||
* should suspend for if it needs to. | ||
*/ | ||
const ReactCurrentBatchConfig = { | ||
transition: null | ||
}; | ||
/** | ||
* Keeps track of the current owner. | ||
* | ||
* The current owner is the component who should own any components that are | ||
* currently being constructed. | ||
*/ | ||
const ReactCurrentOwner$1 = { | ||
/** | ||
* @internal | ||
* @type {ReactComponent} | ||
*/ | ||
current: null | ||
}; | ||
const ReactSharedInternals = { | ||
ReactCurrentDispatcher, | ||
ReactCurrentCache, | ||
ReactCurrentBatchConfig, | ||
ReactCurrentOwner: ReactCurrentOwner$1 | ||
H: null, | ||
C: null, | ||
T: null | ||
}; | ||
@@ -284,4 +242,2 @@ | ||
const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
function hasValidRef(config) { | ||
@@ -322,3 +278,11 @@ | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -329,4 +293,3 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In prod, `ref` is a regular property and _owner doesn't exist. | ||
element = { | ||
@@ -339,5 +302,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref, | ||
props, | ||
// Record the component responsible for creating this element. | ||
_owner: owner | ||
props | ||
}; | ||
@@ -362,7 +323,2 @@ } | ||
if (config != null) { | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
} | ||
@@ -377,3 +333,3 @@ if (hasValidKey(config)) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref') && // Even though we don't use these anymore in the runtime, we don't want | ||
propName !== 'key' && (enableRefAsProp ) && // Even though we don't use these anymore in the runtime, we don't want | ||
// them to appear as props, so in createElement we filter them out. | ||
@@ -383,3 +339,5 @@ // We don't have to do this in the jsx() runtime because the jsx() | ||
propName !== '__self' && propName !== '__source') { | ||
props[propName] = config[propName]; | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -416,26 +374,10 @@ } | ||
const element = ReactElement(type, key, ref, undefined, undefined, ReactCurrentOwner.current, props); | ||
const element = ReactElement(type, key, ref, undefined, undefined, ReactSharedInternals.owner, props); | ||
return element; | ||
} | ||
/** | ||
* Return a function that produces ReactElements of a given type. | ||
* See https://reactjs.org/docs/react-api.html#createfactory | ||
*/ | ||
function createFactory(type) { | ||
const factory = createElement.bind(null, type); // Expose the type on the factory and the prototype so that it can be | ||
// easily accessed on elements. E.g. `<Foo />.type === Foo`. | ||
// This should not be named `constructor` since this may not be the function | ||
// that created the element, and it may not even be a constructor. | ||
// Legacy hook: remove it | ||
factory.type = type; | ||
return factory; | ||
} | ||
function cloneAndReplaceKey(oldElement, newKey) { | ||
return ReactElement(oldElement.type, newKey, // When enableRefAsProp is on, this argument is ignored. This check only | ||
// exists to avoid the `ref` access warning. | ||
oldElement.ref, undefined, undefined, oldElement._owner, oldElement.props); | ||
null , undefined, undefined, undefined , oldElement.props); | ||
} | ||
@@ -457,14 +399,9 @@ /** | ||
let key = element.key; | ||
let ref = element.ref; // Owner will be preserved, unless ref is overridden | ||
let ref = null ; // Owner will be preserved, unless ref is overridden | ||
let owner = element._owner; | ||
let owner = undefined ; | ||
if (config != null) { | ||
if (hasValidRef(config)) { | ||
{ | ||
// Silently steal the ref from the parent. | ||
ref = config.ref; | ||
} | ||
owner = ReactCurrentOwner.current; | ||
owner = ReactSharedInternals.owner; | ||
} | ||
@@ -477,12 +414,5 @@ | ||
let defaultProps; | ||
if (element.type && element.type.defaultProps) { | ||
defaultProps = element.type.defaultProps; | ||
} | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref') && // ...and maybe these, too, though we currently rely on them for | ||
propName !== 'key' && (enableRefAsProp ) && // ...and maybe these, too, though we currently rely on them for | ||
// warnings and debug information in dev. Need to decide if we're OK | ||
@@ -496,8 +426,7 @@ // with dropping them. In the jsx() runtime it's not an issue because | ||
// backwards compatibility. | ||
!(enableRefAsProp )) { | ||
if (config[propName] === undefined && defaultProps !== undefined) { | ||
// Resolve default props | ||
props[propName] = defaultProps[propName]; | ||
} else { | ||
props[propName] = config[propName]; | ||
!(propName === 'ref' && config.ref === undefined)) { | ||
{ | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -668,8 +597,2 @@ } | ||
case 'bigint': | ||
{ | ||
break; | ||
} | ||
// fallthrough for enabled BigInt support | ||
case 'string': | ||
@@ -890,10 +813,7 @@ case 'number': | ||
{ | ||
context.Provider = { | ||
$$typeof: REACT_PROVIDER_TYPE, | ||
context.Provider = context; | ||
context.Consumer = { | ||
$$typeof: REACT_CONSUMER_TYPE, | ||
_context: context | ||
}; | ||
{ | ||
context.Consumer = context; | ||
} | ||
} | ||
@@ -1011,3 +931,3 @@ | ||
return function () { | ||
const dispatcher = ReactCurrentCache.current; | ||
const dispatcher = ReactSharedInternals.C; | ||
@@ -1097,3 +1017,3 @@ if (!dispatcher) { | ||
function resolveDispatcher() { | ||
const dispatcher = ReactCurrentDispatcher.current; | ||
const dispatcher = ReactSharedInternals.H; | ||
// intentionally don't throw our own error because this is in a hot path. | ||
@@ -1217,3 +1137,3 @@ // Also helps ensure this is inlined. | ||
function startTransition(scope, options) { | ||
const prevTransition = ReactCurrentBatchConfig.transition; // Each renderer registers a callback to receive the return value of | ||
const prevTransition = ReactSharedInternals.T; // Each renderer registers a callback to receive the return value of | ||
// the scope function. This is used to implement async actions. | ||
@@ -1225,4 +1145,4 @@ | ||
}; | ||
ReactCurrentBatchConfig.transition = transition; | ||
const currentTransition = ReactCurrentBatchConfig.transition; | ||
ReactSharedInternals.T = transition; | ||
const currentTransition = ReactSharedInternals.T; | ||
@@ -1240,3 +1160,3 @@ { | ||
} finally { | ||
ReactCurrentBatchConfig.transition = prevTransition; | ||
ReactSharedInternals.T = prevTransition; | ||
} | ||
@@ -1269,3 +1189,3 @@ } | ||
exports.Suspense = REACT_SUSPENSE_TYPE; | ||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; | ||
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals; | ||
exports.act = act; | ||
@@ -1276,3 +1196,2 @@ exports.cache = cache; | ||
exports.createElement = createElement; | ||
exports.createFactory = createFactory; | ||
exports.createRef = createRef; | ||
@@ -1279,0 +1198,0 @@ exports.forwardRef = forwardRef; |
@@ -10,24 +10,24 @@ /* | ||
*/ | ||
'use strict';var k=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return"function"===typeof a?a:null} | ||
var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,c){this.props=a;this.context=b;this.refs=D;this.updater=c||B}E.prototype.isReactComponent={}; | ||
E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,c){this.props=a;this.context=b;this.refs=D;this.updater=c||B}var H=G.prototype=new F; | ||
H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J={current:null},K={current:null},L={transition:null},M={ReactCurrentDispatcher:J,ReactCurrentCache:K,ReactCurrentBatchConfig:L,ReactCurrentOwner:{current:null}},N=Object.prototype.hasOwnProperty,O=M.ReactCurrentOwner; | ||
function P(a,b,c){var e,d={},f=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(f=""+b.key),b)N.call(b,e)&&"key"!==e&&"ref"!==e&&"__self"!==e&&"__source"!==e&&(d[e]=b[e]);var l=arguments.length-2;if(1===l)d.children=c;else if(1<l){for(var g=Array(l),m=0;m<l;m++)g[m]=arguments[m+2];d.children=g}if(a&&a.defaultProps)for(e in l=a.defaultProps,l)void 0===d[e]&&(d[e]=l[e]);return{$$typeof:k,type:a,key:f,ref:h,props:d,_owner:O.current}} | ||
function Q(a,b){return{$$typeof:k,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function R(a){return"object"===typeof a&&null!==a&&a.$$typeof===k}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}var S=/\/+/g;function T(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}function U(){} | ||
function V(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(U,U):(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;} | ||
function W(a,b,c,e,d){var f=typeof a;if("undefined"===f||"boolean"===f)a=null;var h=!1;if(null===a)h=!0;else switch(f){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case k:case n:h=!0;break;case y:return h=a._init,W(h(a._payload),b,c,e,d)}}if(h)return d=d(a),h=""===e?"."+T(a,0):e,I(d)?(c="",null!=h&&(c=h.replace(S,"$&/")+"/"),W(d,b,c,"",function(m){return m})):null!=d&&(R(d)&&(d=Q(d,c+(!d.key||a&&a.key===d.key?"":(""+d.key).replace(S,"$&/")+"/")+h)),b.push(d)),1;h=0;var l= | ||
""===e?".":e+":";if(I(a))for(var g=0;g<a.length;g++)e=a[g],f=l+T(e,g),h+=W(e,b,c,f,d);else if(g=A(a),"function"===typeof g)for(a=g.call(a),g=0;!(e=a.next()).done;)e=e.value,f=l+T(e,g++),h+=W(e,b,c,f,d);else if("object"===f){if("function"===typeof a.then)return W(V(a),b,c,e,d);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead."); | ||
}return h}function X(a,b,c){if(null==a)return a;var e=[],d=0;W(a,e,"","",function(f){return b.call(c,f,d++)});return e}function aa(a){if(-1===a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function ba(){return new WeakMap} | ||
function Y(){return{s:0,v:void 0,o:null,p:null}}var Z="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)}; | ||
function ca(){}exports.Children={map:X,forEach:function(a,b,c){X(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;X(a,function(){b++});return b},toArray:function(a){return X(a,function(b){return b})||[]},only:function(a){if(!R(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};exports.Component=E;exports.Fragment=p;exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w; | ||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M;exports.act=function(){throw Error("act(...) is not supported in production builds of React.");}; | ||
exports.cache=function(a){return function(){var b=K.current;if(!b)return a.apply(null,arguments);var c=b.getCacheForType(ba);b=c.get(a);void 0===b&&(b=Y(),c.set(a,b));c=0;for(var e=arguments.length;c<e;c++){var d=arguments[c];if("function"===typeof d||"object"===typeof d&&null!==d){var f=b.o;null===f&&(b.o=f=new WeakMap);b=f.get(d);void 0===b&&(b=Y(),f.set(d,b))}else f=b.p,null===f&&(b.p=f=new Map),b=f.get(d),void 0===b&&(b=Y(),f.set(d,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var h=a.apply(null, | ||
arguments);c=b;c.s=1;return c.v=h}catch(l){throw h=b,h.s=2,h.v=l,l;}}}; | ||
exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var e=C({},a.props),d=a.key,f=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,h=O.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var l=a.type.defaultProps;for(g in b)N.call(b,g)&&"key"!==g&&"ref"!==g&&"__self"!==g&&"__source"!==g&&(e[g]=void 0===b[g]&&void 0!==l?l[g]:b[g])}var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){l=Array(g); | ||
for(var m=0;m<g;m++)l[m]=arguments[m+2];e.children=l}return{$$typeof:k,type:a.type,key:d,ref:f,props:e,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=P;exports.createFactory=function(a){var b=P.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:v,render:a}}; | ||
exports.isValidElement=R;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:aa}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=L.transition,c=new Set;L.transition={_callbacks:c};var e=L.transition;try{var d=a();"object"===typeof d&&null!==d&&"function"===typeof d.then&&(c.forEach(function(f){return f(e,d)}),d.then(ca,Z))}catch(f){Z(f)}finally{L.transition=b}}; | ||
exports.unstable_useCacheRefresh=function(){return J.current.useCacheRefresh()};exports.use=function(a){return J.current.use(a)};exports.useActionState=function(a,b,c){return J.current.useActionState(a,b,c)};exports.useCallback=function(a,b){return J.current.useCallback(a,b)};exports.useContext=function(a){return J.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a,b){return J.current.useDeferredValue(a,b)}; | ||
exports.useEffect=function(a,b){return J.current.useEffect(a,b)};exports.useId=function(){return J.current.useId()};exports.useImperativeHandle=function(a,b,c){return J.current.useImperativeHandle(a,b,c)};exports.useInsertionEffect=function(a,b){return J.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return J.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return J.current.useMemo(a,b)};exports.useOptimistic=function(a,b){return J.current.useOptimistic(a,b)}; | ||
exports.useReducer=function(a,b,c){return J.current.useReducer(a,b,c)};exports.useRef=function(a){return J.current.useRef(a)};exports.useState=function(a){return J.current.useState(a)};exports.useSyncExternalStore=function(a,b,c){return J.current.useSyncExternalStore(a,b,c)};exports.useTransition=function(){return J.current.useTransition()};exports.version="19.0.0-canary-a73c3450e-20240329"; | ||
'use strict';var h=Symbol.for("react.element"),m=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),t=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.iterator;function z(a){if(null===a||"object"!==typeof a)return null;a=y&&a[y]||a["@@iterator"];return"function"===typeof a?a:null} | ||
var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,C={};function D(a,b,c){this.props=a;this.context=b;this.refs=C;this.updater=c||A}D.prototype.isReactComponent={}; | ||
D.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};D.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function E(){}E.prototype=D.prototype;function F(a,b,c){this.props=a;this.context=b;this.refs=C;this.updater=c||A}var G=F.prototype=new E; | ||
G.constructor=F;B(G,D.prototype);G.isPureReactComponent=!0;var H=Array.isArray,I={H:null,C:null,T:null},J=Object.prototype.hasOwnProperty;function K(a,b,c,f,d,g,e){c=e.ref;return{$$typeof:h,type:a,key:b,ref:void 0!==c?c:null,props:e}}function L(a,b){return K(a.type,b,null,void 0,void 0,void 0,a.props)}function M(a){return"object"===typeof a&&null!==a&&a.$$typeof===h}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}var N=/\/+/g; | ||
function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}function P(){} | ||
function Q(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(P,P):(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;} | ||
function R(a,b,c,f,d){var g=typeof a;if("undefined"===g||"boolean"===g)a=null;var e=!1;if(null===a)e=!0;else switch(g){case "bigint":case "string":case "number":e=!0;break;case "object":switch(a.$$typeof){case h:case m:e=!0;break;case x:return e=a._init,R(e(a._payload),b,c,f,d)}}if(e)return d=d(a),e=""===f?"."+O(a,0):f,H(d)?(c="",null!=e&&(c=e.replace(N,"$&/")+"/"),R(d,b,c,"",function(V){return V})):null!=d&&(M(d)&&(d=L(d,c+(!d.key||a&&a.key===d.key?"":(""+d.key).replace(N,"$&/")+"/")+e)),b.push(d)), | ||
1;e=0;var l=""===f?".":f+":";if(H(a))for(var k=0;k<a.length;k++)f=a[k],g=l+O(f,k),e+=R(f,b,c,g,d);else if(k=z(a),"function"===typeof k)for(a=k.call(a),k=0;!(f=a.next()).done;)f=f.value,g=l+O(f,k++),e+=R(f,b,c,g,d);else if("object"===g){if("function"===typeof a.then)return R(Q(a),b,c,f,d);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead."); | ||
}return e}function S(a,b,c){if(null==a)return a;var f=[],d=0;R(a,f,"","",function(g){return b.call(c,g,d++)});return f}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function U(){return new WeakMap} | ||
function W(){return{s:0,v:void 0,o:null,p:null}}var X="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)}; | ||
function Y(){}exports.Children={map:S,forEach:function(a,b,c){S(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(b){return b})||[]},only:function(a){if(!M(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};exports.Component=D;exports.Fragment=n;exports.Profiler=q;exports.PureComponent=F;exports.StrictMode=p;exports.Suspense=v; | ||
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I;exports.act=function(){throw Error("act(...) is not supported in production builds of React.");}; | ||
exports.cache=function(a){return function(){var b=I.C;if(!b)return a.apply(null,arguments);var c=b.getCacheForType(U);b=c.get(a);void 0===b&&(b=W(),c.set(a,b));c=0;for(var f=arguments.length;c<f;c++){var d=arguments[c];if("function"===typeof d||"object"===typeof d&&null!==d){var g=b.o;null===g&&(b.o=g=new WeakMap);b=g.get(d);void 0===b&&(b=W(),g.set(d,b))}else g=b.p,null===g&&(b.p=g=new Map),b=g.get(d),void 0===b&&(b=W(),g.set(d,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var e=a.apply(null, | ||
arguments);c=b;c.s=1;return c.v=e}catch(l){throw e=b,e.s=2,e.v=l,l;}}}; | ||
exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var f=B({},a.props),d=a.key,g=void 0;if(null!=b)for(e in void 0!==b.ref&&(g=I.owner),void 0!==b.key&&(d=""+b.key),b)!J.call(b,e)||"key"===e||"__self"===e||"__source"===e||"ref"===e&&void 0===b.ref||(f[e]=b[e]);var e=arguments.length-2;if(1===e)f.children=c;else if(1<e){for(var l=Array(e),k=0;k<e;k++)l[k]=arguments[k+2];f.children=l}return K(a.type,d,null,void 0,void 0, | ||
g,f)};exports.createContext=function(a){a={$$typeof:t,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider=a;a.Consumer={$$typeof:r,_context:a};return a}; | ||
exports.createElement=function(a,b,c){var f,d={},g=null;if(null!=b)for(f in void 0!==b.key&&(g=""+b.key),b)J.call(b,f)&&"key"!==f&&"__self"!==f&&"__source"!==f&&(d[f]=b[f]);var e=arguments.length-2;if(1===e)d.children=c;else if(1<e){for(var l=Array(e),k=0;k<e;k++)l[k]=arguments[k+2];d.children=l}if(a&&a.defaultProps)for(f in e=a.defaultProps,e)void 0===d[f]&&(d[f]=e[f]);return K(a,g,null,void 0,void 0,I.owner,d)};exports.createRef=function(){return{current:null}}; | ||
exports.forwardRef=function(a){return{$$typeof:u,render:a}};exports.isValidElement=M;exports.lazy=function(a){return{$$typeof:x,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:w,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=I.T,c=new Set;I.T={_callbacks:c};var f=I.T;try{var d=a();"object"===typeof d&&null!==d&&"function"===typeof d.then&&(c.forEach(function(g){return g(f,d)}),d.then(Y,X))}catch(g){X(g)}finally{I.T=b}}; | ||
exports.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()};exports.use=function(a){return I.H.use(a)};exports.useActionState=function(a,b,c){return I.H.useActionState(a,b,c)};exports.useCallback=function(a,b){return I.H.useCallback(a,b)};exports.useContext=function(a){return I.H.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a,b){return I.H.useDeferredValue(a,b)};exports.useEffect=function(a,b){return I.H.useEffect(a,b)};exports.useId=function(){return I.H.useId()}; | ||
exports.useImperativeHandle=function(a,b,c){return I.H.useImperativeHandle(a,b,c)};exports.useInsertionEffect=function(a,b){return I.H.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return I.H.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return I.H.useMemo(a,b)};exports.useOptimistic=function(a,b){return I.H.useOptimistic(a,b)};exports.useReducer=function(a,b,c){return I.H.useReducer(a,b,c)};exports.useRef=function(a){return I.H.useRef(a)};exports.useState=function(a){return I.H.useState(a)}; | ||
exports.useSyncExternalStore=function(a,b,c){return I.H.useSyncExternalStore(a,b,c)};exports.useTransition=function(){return I.H.useTransition()};exports.version="19.0.0-canary-adb717393-20240411"; | ||
//# sourceMappingURL=react.production.min.js.map |
@@ -16,8 +16,2 @@ /** | ||
// ----------------------------------------------------------------------------- | ||
// Ready for next major. | ||
// | ||
// Alias __NEXT_MAJOR__ to false for easier skimming. | ||
// ----------------------------------------------------------------------------- | ||
const __NEXT_MAJOR__ = false; // Removes legacy style context | ||
// as a normal prop instead of stripping it from the props object. | ||
@@ -27,9 +21,7 @@ // Passes `ref` as a normal prop instead of stripping it from the props object | ||
const enableRefAsProp = __NEXT_MAJOR__; | ||
const enableRefAsProp = true; | ||
/** | ||
* Keeps track of the current Cache dispatcher. | ||
*/ | ||
const ReactCurrentCache = { | ||
current: null | ||
const ReactSharedInternals = { | ||
H: null, | ||
C: null | ||
}; | ||
@@ -58,3 +50,3 @@ | ||
const cachedFetch = function fetch(resource, options) { | ||
const dispatcher = ReactCurrentCache.current; | ||
const dispatcher = ReactSharedInternals.C; | ||
@@ -66,4 +58,4 @@ if (!dispatcher) { | ||
if (options && options.signal && options.signal !== dispatcher.getCacheSignal()) { | ||
// If we're passed a signal that is not ours, then we assume that | ||
if (options && options.signal) { | ||
// If we're passed a signal, then we assume that | ||
// someone else controls the lifetime of this object and opts out of | ||
@@ -158,32 +150,2 @@ // caching. It's effectively the opt-out mechanism. | ||
/** | ||
* Keeps track of the current dispatcher. | ||
*/ | ||
const ReactCurrentDispatcher = { | ||
current: null | ||
}; | ||
/** | ||
* Keeps track of the current owner. | ||
* | ||
* The current owner is the component who should own any components that are | ||
* currently being constructed. | ||
*/ | ||
const ReactCurrentOwner$1 = { | ||
/** | ||
* @internal | ||
* @type {ReactComponent} | ||
*/ | ||
current: null | ||
}; | ||
const ReactSharedInternals = { | ||
ReactCurrentDispatcher, | ||
ReactCurrentOwner: ReactCurrentOwner$1 | ||
}; | ||
const ReactServerSharedInternals = { | ||
ReactCurrentCache | ||
}; | ||
// Do not require this module directly! Use normal `invariant` calls with | ||
@@ -244,4 +206,2 @@ // template literal strings. The messages will be replaced with error codes | ||
const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
function hasValidRef(config) { | ||
@@ -282,3 +242,11 @@ | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -289,4 +257,3 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In prod, `ref` is a regular property and _owner doesn't exist. | ||
element = { | ||
@@ -299,5 +266,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref, | ||
props, | ||
// Record the component responsible for creating this element. | ||
_owner: owner | ||
props | ||
}; | ||
@@ -322,7 +287,2 @@ } | ||
if (config != null) { | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
} | ||
@@ -337,3 +297,3 @@ if (hasValidKey(config)) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref') && // Even though we don't use these anymore in the runtime, we don't want | ||
propName !== 'key' && (enableRefAsProp ) && // Even though we don't use these anymore in the runtime, we don't want | ||
// them to appear as props, so in createElement we filter them out. | ||
@@ -343,3 +303,5 @@ // We don't have to do this in the jsx() runtime because the jsx() | ||
propName !== '__self' && propName !== '__source') { | ||
props[propName] = config[propName]; | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -376,3 +338,3 @@ } | ||
const element = ReactElement(type, key, ref, undefined, undefined, ReactCurrentOwner.current, props); | ||
const element = ReactElement(type, key, ref, undefined, undefined, ReactSharedInternals.owner, props); | ||
@@ -384,3 +346,3 @@ return element; | ||
// exists to avoid the `ref` access warning. | ||
oldElement.ref, undefined, undefined, oldElement._owner, oldElement.props); | ||
null , undefined, undefined, undefined , oldElement.props); | ||
} | ||
@@ -402,14 +364,9 @@ /** | ||
let key = element.key; | ||
let ref = element.ref; // Owner will be preserved, unless ref is overridden | ||
let ref = null ; // Owner will be preserved, unless ref is overridden | ||
let owner = element._owner; | ||
let owner = undefined ; | ||
if (config != null) { | ||
if (hasValidRef(config)) { | ||
{ | ||
// Silently steal the ref from the parent. | ||
ref = config.ref; | ||
} | ||
owner = ReactCurrentOwner.current; | ||
owner = ReactSharedInternals.owner; | ||
} | ||
@@ -422,12 +379,5 @@ | ||
let defaultProps; | ||
if (element.type && element.type.defaultProps) { | ||
defaultProps = element.type.defaultProps; | ||
} | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref') && // ...and maybe these, too, though we currently rely on them for | ||
propName !== 'key' && (enableRefAsProp ) && // ...and maybe these, too, though we currently rely on them for | ||
// warnings and debug information in dev. Need to decide if we're OK | ||
@@ -441,8 +391,7 @@ // with dropping them. In the jsx() runtime it's not an issue because | ||
// backwards compatibility. | ||
!(enableRefAsProp )) { | ||
if (config[propName] === undefined && defaultProps !== undefined) { | ||
// Resolve default props | ||
props[propName] = defaultProps[propName]; | ||
} else { | ||
props[propName] = config[propName]; | ||
!(propName === 'ref' && config.ref === undefined)) { | ||
{ | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -613,8 +562,2 @@ } | ||
case 'bigint': | ||
{ | ||
break; | ||
} | ||
// fallthrough for enabled BigInt support | ||
case 'string': | ||
@@ -824,3 +767,3 @@ case 'number': | ||
function resolveDispatcher() { | ||
const dispatcher = ReactCurrentDispatcher.current; | ||
const dispatcher = ReactSharedInternals.H; | ||
// intentionally don't throw our own error because this is in a hot path. | ||
@@ -965,3 +908,3 @@ // Also helps ensure this is inlined. | ||
return function () { | ||
const dispatcher = ReactCurrentCache.current; | ||
const dispatcher = ReactSharedInternals.C; | ||
@@ -1048,10 +991,2 @@ if (!dispatcher) { | ||
/** | ||
* Keeps track of the current batch's configuration such as how long an update | ||
* should suspend for if it needs to. | ||
*/ | ||
const ReactCurrentBatchConfig = { | ||
transition: null | ||
}; | ||
const reportGlobalError = typeof reportError === 'function' ? // In modern browsers, reportError will dispatch an error event, | ||
@@ -1088,3 +1023,3 @@ // emulating an uncaught JavaScript error. | ||
function startTransition(scope, options) { | ||
const prevTransition = ReactCurrentBatchConfig.transition; // Each renderer registers a callback to receive the return value of | ||
const prevTransition = ReactSharedInternals.T; // Each renderer registers a callback to receive the return value of | ||
// the scope function. This is used to implement async actions. | ||
@@ -1096,4 +1031,4 @@ | ||
}; | ||
ReactCurrentBatchConfig.transition = transition; | ||
const currentTransition = ReactCurrentBatchConfig.transition; | ||
ReactSharedInternals.T = transition; | ||
const currentTransition = ReactSharedInternals.T; | ||
@@ -1111,3 +1046,3 @@ { | ||
} finally { | ||
ReactCurrentBatchConfig.transition = prevTransition; | ||
ReactSharedInternals.T = prevTransition; | ||
} | ||
@@ -1119,3 +1054,3 @@ } | ||
var ReactVersion = '19.0.0-canary-a73c3450e-20240329'; | ||
var ReactVersion = '19.0.0-canary-adb717393-20240411'; | ||
@@ -1136,4 +1071,3 @@ // Patch fetch | ||
exports.Suspense = REACT_SUSPENSE_TYPE; | ||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; | ||
exports.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactServerSharedInternals; | ||
exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals; | ||
exports.cache = cache; | ||
@@ -1140,0 +1074,0 @@ exports.cloneElement = cloneElement; |
@@ -10,23 +10,21 @@ /* | ||
*/ | ||
'use strict';var m=Object.assign,n={current:null};function p(){return new Map} | ||
if("function"===typeof fetch){var q=fetch,r=function(a,b){var d=n.current;if(!d||b&&b.signal&&b.signal!==d.getCacheSignal())return q(a,b);if("string"!==typeof a||b){var c="string"===typeof a||a instanceof URL?new Request(a,b):a;if("GET"!==c.method&&"HEAD"!==c.method||c.keepalive)return q(a,b);var e=JSON.stringify([c.method,Array.from(c.headers.entries()),c.mode,c.redirect,c.credentials,c.referrer,c.referrerPolicy,c.integrity]);c=c.url}else e='["GET",[],null,"follow",null,null,null,null]',c=a;var f= | ||
d.getCacheForType(p);d=f.get(c);if(void 0===d)a=q(a,b),f.set(c,[e,a]);else{c=0;for(f=d.length;c<f;c+=2){var g=d[c+1];if(d[c]===e)return a=g,a.then(function(k){return k.clone()})}a=q(a,b);d.push(e,a)}return a.then(function(k){return k.clone()})};m(r,q);try{fetch=r}catch(a){try{globalThis.fetch=r}catch(b){console.warn("React was unable to patch the fetch() function in this environment. Suspensey APIs might not work correctly as a result.")}}} | ||
var t={current:null},u={ReactCurrentDispatcher:t,ReactCurrentOwner:{current:null}},v={ReactCurrentCache:n};function w(a){var b="https://react.dev/errors/"+a;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)b+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."} | ||
var x=Array.isArray,y=Symbol.for("react.element"),z=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),F=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),H=Symbol.iterator;function I(a){if(null===a||"object"!==typeof a)return null;a=H&&a[H]||a["@@iterator"];return"function"===typeof a?a:null}var J=Object.prototype.hasOwnProperty,K=u.ReactCurrentOwner; | ||
function L(a,b){return{$$typeof:y,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function M(a){return"object"===typeof a&&null!==a&&a.$$typeof===y}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(d){return b[d]})}var N=/\/+/g;function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}function P(){} | ||
function Q(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(P,P):(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;} | ||
function R(a,b,d,c,e){var f=typeof a;if("undefined"===f||"boolean"===f)a=null;var g=!1;if(null===a)g=!0;else switch(f){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case y:case z:g=!0;break;case G:return g=a._init,R(g(a._payload),b,d,c,e)}}if(g)return e=e(a),g=""===c?"."+O(a,0):c,x(e)?(d="",null!=g&&(d=g.replace(N,"$&/")+"/"),R(e,b,d,"",function(l){return l})):null!=e&&(M(e)&&(e=L(e,d+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+g)),b.push(e)),1;g=0;var k= | ||
""===c?".":c+":";if(x(a))for(var h=0;h<a.length;h++)c=a[h],f=k+O(c,h),g+=R(c,b,d,f,e);else if(h=I(a),"function"===typeof h)for(a=h.call(a),h=0;!(c=a.next()).done;)c=c.value,f=k+O(c,h++),g+=R(c,b,d,f,e);else if("object"===f){if("function"===typeof a.then)return R(Q(a),b,d,c,e);b=String(a);throw Error(w(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));}return g} | ||
function S(a,b,d){if(null==a)return a;var c=[],e=0;R(a,c,"","",function(f){return b.call(d,f,e++)});return c}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(d){if(0===a._status||-1===a._status)a._status=1,a._result=d},function(d){if(0===a._status||-1===a._status)a._status=2,a._result=d});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function U(){return new WeakMap}function V(){return{s:0,v:void 0,o:null,p:null}} | ||
var W={transition:null},X="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};function Y(){} | ||
exports.Children={map:S,forEach:function(a,b,d){S(a,function(){b.apply(this,arguments)},d)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(b){return b})||[]},only:function(a){if(!M(a))throw Error(w(143));return a}};exports.Fragment=A;exports.Profiler=C;exports.StrictMode=B;exports.Suspense=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u;exports.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=v; | ||
exports.cache=function(a){return function(){var b=n.current;if(!b)return a.apply(null,arguments);var d=b.getCacheForType(U);b=d.get(a);void 0===b&&(b=V(),d.set(a,b));d=0;for(var c=arguments.length;d<c;d++){var e=arguments[d];if("function"===typeof e||"object"===typeof e&&null!==e){var f=b.o;null===f&&(b.o=f=new WeakMap);b=f.get(e);void 0===b&&(b=V(),f.set(e,b))}else f=b.p,null===f&&(b.p=f=new Map),b=f.get(e),void 0===b&&(b=V(),f.set(e,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var g=a.apply(null, | ||
arguments);d=b;d.s=1;return d.v=g}catch(k){throw g=b,g.s=2,g.v=k,k;}}}; | ||
exports.cloneElement=function(a,b,d){if(null===a||void 0===a)throw Error(w(267,a));var c=m({},a.props),e=a.key,f=a.ref,g=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,g=K.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var k=a.type.defaultProps;for(h in b)J.call(b,h)&&"key"!==h&&"ref"!==h&&"__self"!==h&&"__source"!==h&&(c[h]=void 0===b[h]&&void 0!==k?k[h]:b[h])}var h=arguments.length-2;if(1===h)c.children=d;else if(1<h){k=Array(h);for(var l=0;l<h;l++)k[l]=arguments[l+2];c.children= | ||
k}return{$$typeof:y,type:a.type,key:e,ref:f,props:c,_owner:g}}; | ||
exports.createElement=function(a,b,d){var c,e={},f=null,g=null;if(null!=b)for(c in void 0!==b.ref&&(g=b.ref),void 0!==b.key&&(f=""+b.key),b)J.call(b,c)&&"key"!==c&&"ref"!==c&&"__self"!==c&&"__source"!==c&&(e[c]=b[c]);var k=arguments.length-2;if(1===k)e.children=d;else if(1<k){for(var h=Array(k),l=0;l<k;l++)h[l]=arguments[l+2];e.children=h}if(a&&a.defaultProps)for(c in k=a.defaultProps,k)void 0===e[c]&&(e[c]=k[c]);return{$$typeof:y,type:a,key:f,ref:g,props:e,_owner:K.current}};exports.createRef=function(){return{current:null}}; | ||
exports.forwardRef=function(a){return{$$typeof:D,render:a}};exports.isValidElement=M;exports.lazy=function(a){return{$$typeof:G,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:F,type:a,compare:void 0===b?null:b}}; | ||
exports.startTransition=function(a){var b=W.transition,d=new Set;W.transition={_callbacks:d};var c=W.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(d.forEach(function(f){return f(c,e)}),e.then(Y,X))}catch(f){X(f)}finally{W.transition=b}};exports.use=function(a){return t.current.use(a)};exports.useActionState=function(a,b,d){return t.current.useActionState(a,b,d)};exports.useCallback=function(a,b){return t.current.useCallback(a,b)};exports.useDebugValue=function(){}; | ||
exports.useId=function(){return t.current.useId()};exports.useMemo=function(a,b){return t.current.useMemo(a,b)};exports.version="19.0.0-canary-a73c3450e-20240329"; | ||
'use strict';var l=Object.assign,m={H:null,C:null};function n(){return new Map} | ||
if("function"===typeof fetch){var p=fetch,q=function(a,b){var d=m.C;if(!d||b&&b.signal)return p(a,b);if("string"!==typeof a||b){var c="string"===typeof a||a instanceof URL?new Request(a,b):a;if("GET"!==c.method&&"HEAD"!==c.method||c.keepalive)return p(a,b);var e=JSON.stringify([c.method,Array.from(c.headers.entries()),c.mode,c.redirect,c.credentials,c.referrer,c.referrerPolicy,c.integrity]);c=c.url}else e='["GET",[],null,"follow",null,null,null,null]',c=a;var g=d.getCacheForType(n);d=g.get(c);if(void 0=== | ||
d)a=p(a,b),g.set(c,[e,a]);else{c=0;for(g=d.length;c<g;c+=2){var f=d[c+1];if(d[c]===e)return a=f,a.then(function(k){return k.clone()})}a=p(a,b);d.push(e,a)}return a.then(function(k){return k.clone()})};l(q,p);try{fetch=q}catch(a){try{globalThis.fetch=q}catch(b){console.warn("React was unable to patch the fetch() function in this environment. Suspensey APIs might not work correctly as a result.")}}} | ||
function r(a){var b="https://react.dev/errors/"+a;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)b+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."} | ||
var t=Array.isArray,u=Symbol.for("react.element"),v=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),z=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),B=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),D=Symbol.iterator;function E(a){if(null===a||"object"!==typeof a)return null;a=D&&a[D]||a["@@iterator"];return"function"===typeof a?a:null}var F=Object.prototype.hasOwnProperty; | ||
function G(a,b,d,c,e,g,f){d=f.ref;return{$$typeof:u,type:a,key:b,ref:void 0!==d?d:null,props:f}}function H(a,b){return G(a.type,b,null,void 0,void 0,void 0,a.props)}function I(a){return"object"===typeof a&&null!==a&&a.$$typeof===u}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(d){return b[d]})}var J=/\/+/g;function K(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}function L(){} | ||
function M(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(L,L):(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;} | ||
function N(a,b,d,c,e){var g=typeof a;if("undefined"===g||"boolean"===g)a=null;var f=!1;if(null===a)f=!0;else switch(g){case "bigint":case "string":case "number":f=!0;break;case "object":switch(a.$$typeof){case u:case v:f=!0;break;case C:return f=a._init,N(f(a._payload),b,d,c,e)}}if(f)return e=e(a),f=""===c?"."+K(a,0):c,t(e)?(d="",null!=f&&(d=f.replace(J,"$&/")+"/"),N(e,b,d,"",function(R){return R})):null!=e&&(I(e)&&(e=H(e,d+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(J,"$&/")+"/")+f)),b.push(e)), | ||
1;f=0;var k=""===c?".":c+":";if(t(a))for(var h=0;h<a.length;h++)c=a[h],g=k+K(c,h),f+=N(c,b,d,g,e);else if(h=E(a),"function"===typeof h)for(a=h.call(a),h=0;!(c=a.next()).done;)c=c.value,g=k+K(c,h++),f+=N(c,b,d,g,e);else if("object"===g){if("function"===typeof a.then)return N(M(a),b,d,c,e);b=String(a);throw Error(r(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));}return f} | ||
function O(a,b,d){if(null==a)return a;var c=[],e=0;N(a,c,"","",function(g){return b.call(d,g,e++)});return c}function P(a){if(-1===a._status){var b=a._result;b=b();b.then(function(d){if(0===a._status||-1===a._status)a._status=1,a._result=d},function(d){if(0===a._status||-1===a._status)a._status=2,a._result=d});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function Q(){return new WeakMap}function S(){return{s:0,v:void 0,o:null,p:null}} | ||
var T="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};function U(){} | ||
exports.Children={map:O,forEach:function(a,b,d){O(a,function(){b.apply(this,arguments)},d)},count:function(a){var b=0;O(a,function(){b++});return b},toArray:function(a){return O(a,function(b){return b})||[]},only:function(a){if(!I(a))throw Error(r(143));return a}};exports.Fragment=w;exports.Profiler=y;exports.StrictMode=x;exports.Suspense=A;exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=m; | ||
exports.cache=function(a){return function(){var b=m.C;if(!b)return a.apply(null,arguments);var d=b.getCacheForType(Q);b=d.get(a);void 0===b&&(b=S(),d.set(a,b));d=0;for(var c=arguments.length;d<c;d++){var e=arguments[d];if("function"===typeof e||"object"===typeof e&&null!==e){var g=b.o;null===g&&(b.o=g=new WeakMap);b=g.get(e);void 0===b&&(b=S(),g.set(e,b))}else g=b.p,null===g&&(b.p=g=new Map),b=g.get(e),void 0===b&&(b=S(),g.set(e,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var f=a.apply(null, | ||
arguments);d=b;d.s=1;return d.v=f}catch(k){throw f=b,f.s=2,f.v=k,k;}}}; | ||
exports.cloneElement=function(a,b,d){if(null===a||void 0===a)throw Error(r(267,a));var c=l({},a.props),e=a.key,g=void 0;if(null!=b)for(f in void 0!==b.ref&&(g=m.owner),void 0!==b.key&&(e=""+b.key),b)!F.call(b,f)||"key"===f||"__self"===f||"__source"===f||"ref"===f&&void 0===b.ref||(c[f]=b[f]);var f=arguments.length-2;if(1===f)c.children=d;else if(1<f){for(var k=Array(f),h=0;h<f;h++)k[h]=arguments[h+2];c.children=k}return G(a.type,e,null,void 0,void 0,g,c)}; | ||
exports.createElement=function(a,b,d){var c,e={},g=null;if(null!=b)for(c in void 0!==b.key&&(g=""+b.key),b)F.call(b,c)&&"key"!==c&&"__self"!==c&&"__source"!==c&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1<f){for(var k=Array(f),h=0;h<f;h++)k[h]=arguments[h+2];e.children=k}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return G(a,g,null,void 0,void 0,m.owner,e)};exports.createRef=function(){return{current:null}}; | ||
exports.forwardRef=function(a){return{$$typeof:z,render:a}};exports.isValidElement=I;exports.lazy=function(a){return{$$typeof:C,_payload:{_status:-1,_result:a},_init:P}};exports.memo=function(a,b){return{$$typeof:B,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=m.T,d=new Set;m.T={_callbacks:d};var c=m.T;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(d.forEach(function(g){return g(c,e)}),e.then(U,T))}catch(g){T(g)}finally{m.T=b}}; | ||
exports.use=function(a){return m.H.use(a)};exports.useActionState=function(a,b,d){return m.H.useActionState(a,b,d)};exports.useCallback=function(a,b){return m.H.useCallback(a,b)};exports.useDebugValue=function(){};exports.useId=function(){return m.H.useId()};exports.useMemo=function(a,b){return m.H.useMemo(a,b)};exports.version="19.0.0-canary-adb717393-20240411"; | ||
//# sourceMappingURL=react.react-server.production.min.js.map |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "19.0.0-canary-a73c3450e-20240329", | ||
"version": "19.0.0-canary-adb717393-20240411", | ||
"homepage": "https://react.dev/", | ||
@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues", |
@@ -11,26 +11,24 @@ /** | ||
'use strict';(function(){(function(f,A){"object"===typeof exports&&"undefined"!==typeof module?A(exports):"function"===typeof define&&define.amd?define(["exports"],A):(f="undefined"!==typeof globalThis?globalThis:f||self,A(f.React={}))})(this,function(f){function A(a){if(null===a||"object"!==typeof a)return null;a=V&&a[V]||a["@@iterator"];return"function"===typeof a?a:null}function y(a,b,c){this.props=a;this.context=b;this.refs=W;this.updater=c||X}function Y(){}function M(a,b,c){this.props=a;this.context= | ||
b;this.refs=W;this.updater=c||X}function Z(a,b,c){var d,e={},g=null,k=null;if(null!=b)for(d in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)aa.call(b,d)&&"key"!==d&&"ref"!==d&&"__self"!==d&&"__source"!==d&&(e[d]=b[d]);var l=arguments.length-2;if(1===l)e.children=c;else if(1<l){for(var h=Array(l),n=0;n<l;n++)h[n]=arguments[n+2];e.children=h}if(a&&a.defaultProps)for(d in l=a.defaultProps,l)void 0===e[d]&&(e[d]=l[d]);return{$$typeof:B,type:a,key:g,ref:k,props:e,_owner:ba.current}}function sa(a, | ||
b){return{$$typeof:B,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===B}function ta(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?ta(""+a.key):b.toString(36)}function ca(){}function ua(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(ca,ca):(a.status= | ||
"pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;}function z(a,b,c,d,e){var g=typeof a;if("undefined"===g||"boolean"===g)a=null;var k=!1;if(null===a)k=!0;else switch(g){case "string":case "number":k=!0;break;case "object":switch(a.$$typeof){case B:case va:k=!0;break;case da:return k=a._init,z(k(a._payload),b,c, | ||
d,e)}}if(k)return e=e(a),k=""===d?"."+O(a,0):d,ea(e)?(c="",null!=k&&(c=k.replace(fa,"$&/")+"/"),z(e,b,c,"",function(n){return n})):null!=e&&(N(e)&&(e=sa(e,c+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(fa,"$&/")+"/")+k)),b.push(e)),1;k=0;var l=""===d?".":d+":";if(ea(a))for(var h=0;h<a.length;h++)d=a[h],g=l+O(d,h),k+=z(d,b,c,g,e);else if(h=A(a),"function"===typeof h)for(a=h.call(a),h=0;!(d=a.next()).done;)d=d.value,g=l+O(d,h++),k+=z(d,b,c,g,e);else if("object"===g){if("function"===typeof a.then)return z(ua(a), | ||
b,c,d,e);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");}return k}function F(a,b,c){if(null==a)return a;var d=[],e=0;z(a,d,"","",function(g){return b.call(c,g,e++)});return d}function wa(a){if(-1===a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0=== | ||
a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function xa(){return new WeakMap}function P(){return{s:0,v:void 0,o:null,p:null}}function Q(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<G(e,b))a[d]=b,a[c]=e,c=d;else break a}}function r(a){return 0===a.length?null:a[0]}function H(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length, | ||
g=e>>>1;d<g;){var k=2*(d+1)-1,l=a[k],h=k+1,n=a[h];if(0>G(l,c))h<e&&0>G(n,l)?(a[d]=n,a[h]=c,d=h):(a[d]=l,a[k]=c,d=k);else if(h<e&&0>G(n,c))a[d]=n,a[h]=c,d=h;else break a}}return b}function G(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function I(a){for(var b=r(u);null!==b;){if(null===b.callback)H(u);else if(b.startTime<=a)H(u),b.sortIndex=b.expirationTime,Q(t,b);else break;b=r(u)}}function R(a){C=!1;I(a);if(!w)if(null!==r(t))w=!0,S();else{var b=r(u);null!==b&&T(R,b.startTime-a)}}function ha(){return x()- | ||
ia<ja?!1:!0}function S(){J||(J=!0,K())}function T(a,b){D=ka(function(){a(x())},b)}function ya(){}var B=Symbol.for("react.element"),va=Symbol.for("react.portal"),za=Symbol.for("react.fragment"),Aa=Symbol.for("react.strict_mode"),Ba=Symbol.for("react.profiler"),Ca=Symbol.for("react.provider"),Da=Symbol.for("react.context"),Ea=Symbol.for("react.forward_ref"),Fa=Symbol.for("react.suspense"),Ga=Symbol.for("react.memo"),da=Symbol.for("react.lazy"),V=Symbol.iterator,X={isMounted:function(a){return!1},enqueueForceUpdate:function(a, | ||
b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},la=Object.assign,W={};y.prototype.isReactComponent={};y.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};y.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};Y.prototype=y.prototype; | ||
var v=M.prototype=new Y;v.constructor=M;la(v,y.prototype);v.isPureReactComponent=!0;var ea=Array.isArray,m={current:null},ma={current:null},E={transition:null};v={current:null};var aa=Object.prototype.hasOwnProperty,ba=v,fa=/\/+/g;if("object"===typeof performance&&"function"===typeof performance.now){var Ha=performance;var x=function(){return Ha.now()}}else{var na=Date,Ia=na.now();x=function(){return na.now()-Ia}}var t=[],u=[],Ja=1,q=null,p=3,L=!1,w=!1,C=!1,ka="function"===typeof setTimeout?setTimeout: | ||
null,oa="function"===typeof clearTimeout?clearTimeout:null,pa="undefined"!==typeof setImmediate?setImmediate:null,J=!1,D=-1,ja=5,ia=-1,U=function(){if(J){var a=x();ia=a;var b=!0;try{a:{w=!1;C&&(C=!1,oa(D),D=-1);L=!0;var c=p;try{b:{I(a);for(q=r(t);null!==q&&!(q.expirationTime>a&&ha());){var d=q.callback;if("function"===typeof d){q.callback=null;p=q.priorityLevel;var e=d(q.expirationTime<=a);a=x();if("function"===typeof e){q.callback=e;I(a);b=!0;break b}q===r(t)&&H(t);I(a)}else H(t);q=r(t)}if(null!== | ||
q)b=!0;else{var g=r(u);null!==g&&T(R,g.startTime-a);b=!1}}break a}finally{q=null,p=c,L=!1}b=void 0}}finally{b?K():J=!1}}};if("function"===typeof pa)var K=function(){pa(U)};else if("undefined"!==typeof MessageChannel){var qa=new MessageChannel,Ka=qa.port2;qa.port1.onmessage=U;K=function(){Ka.postMessage(null)}}else K=function(){ka(U,0)};v={ReactCurrentDispatcher:m,ReactCurrentCache:ma,ReactCurrentOwner:v,ReactCurrentBatchConfig:E,Scheduler:{__proto__:null,unstable_IdlePriority:5,unstable_ImmediatePriority:1, | ||
unstable_LowPriority:4,unstable_NormalPriority:3,unstable_Profiling:null,unstable_UserBlockingPriority:2,unstable_cancelCallback:function(a){a.callback=null},unstable_continueExecution:function(){w||L||(w=!0,S())},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ja=0<a?Math.floor(1E3/a):5},unstable_getCurrentPriorityLevel:function(){return p},unstable_getFirstCallbackNode:function(){return r(t)}, | ||
unstable_next:function(a){switch(p){case 1:case 2:case 3:var b=3;break;default:b=p}var c=p;p=b;try{return a()}finally{p=c}},get unstable_now(){return x},unstable_pauseExecution:function(){},unstable_requestPaint:function(){},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=p;p=a;try{return b()}finally{p=c}},unstable_scheduleCallback:function(a,b,c){var d=x();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e= | ||
-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:Ja++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,Q(u,a),null===r(t)&&a===r(u)&&(C?(oa(D),D=-1):C=!0,T(R,c-d))):(a.sortIndex=e,Q(t,a),w||L||(w=!0,S()));return a},unstable_shouldYield:ha,unstable_wrapCallback:function(a){var b=p;return function(){var c=p;p=b;try{return a.apply(this,arguments)}finally{p=c}}}}};var ra="function"===typeof reportError?reportError: | ||
function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};f.Children={map:F,forEach:function(a,b,c){F(a,function(){b.apply(this,arguments)},c)},count:function(a){var b= | ||
0;F(a,function(){b++});return b},toArray:function(a){return F(a,function(b){return b})||[]},only:function(a){if(!N(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};f.Component=y;f.Fragment=za;f.Profiler=Ba;f.PureComponent=M;f.StrictMode=Aa;f.Suspense=Fa;f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=v;f.act=function(a){throw Error("act(...) is not supported in production builds of React.");};f.cache=function(a){return function(){var b=ma.current; | ||
if(!b)return a.apply(null,arguments);var c=b.getCacheForType(xa);b=c.get(a);void 0===b&&(b=P(),c.set(a,b));c=0;for(var d=arguments.length;c<d;c++){var e=arguments[c];if("function"===typeof e||"object"===typeof e&&null!==e){var g=b.o;null===g&&(b.o=g=new WeakMap);b=g.get(e);void 0===b&&(b=P(),g.set(e,b))}else g=b.p,null===g&&(b.p=g=new Map),b=g.get(e),void 0===b&&(b=P(),g.set(e,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var k=a.apply(null,arguments);c=b;c.s=1;return c.v=k}catch(l){throw k= | ||
b,k.s=2,k.v=l,l;}}};f.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var d=la({},a.props),e=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=ba.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var l=a.type.defaultProps;for(h in b)aa.call(b,h)&&"key"!==h&&"ref"!==h&&"__self"!==h&&"__source"!==h&&(d[h]=void 0===b[h]&&void 0!==l?l[h]:b[h])}var h=arguments.length-2;if(1===h)d.children=c; | ||
else if(1<h){l=Array(h);for(var n=0;n<h;n++)l[n]=arguments[n+2];d.children=l}return{$$typeof:B,type:a.type,key:e,ref:g,props:d,_owner:k}};f.createContext=function(a){a={$$typeof:Da,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Ca,_context:a};return a.Consumer=a};f.createElement=Z;f.createFactory=function(a){var b=Z.bind(null,a);b.type=a;return b};f.createRef=function(){return{current:null}};f.forwardRef=function(a){return{$$typeof:Ea,render:a}}; | ||
f.isValidElement=N;f.lazy=function(a){return{$$typeof:da,_payload:{_status:-1,_result:a},_init:wa}};f.memo=function(a,b){return{$$typeof:Ga,type:a,compare:void 0===b?null:b}};f.startTransition=function(a,b){b=E.transition;var c=new Set;E.transition={_callbacks:c};var d=E.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(c.forEach(function(g){return g(d,e)}),e.then(ya,ra))}catch(g){ra(g)}finally{E.transition=b}};f.unstable_useCacheRefresh=function(){return m.current.useCacheRefresh()}; | ||
f.use=function(a){return m.current.use(a)};f.useActionState=function(a,b,c){return m.current.useActionState(a,b,c)};f.useCallback=function(a,b){return m.current.useCallback(a,b)};f.useContext=function(a){return m.current.useContext(a)};f.useDebugValue=function(a,b){};f.useDeferredValue=function(a,b){return m.current.useDeferredValue(a,b)};f.useEffect=function(a,b){return m.current.useEffect(a,b)};f.useId=function(){return m.current.useId()};f.useImperativeHandle=function(a,b,c){return m.current.useImperativeHandle(a, | ||
b,c)};f.useInsertionEffect=function(a,b){return m.current.useInsertionEffect(a,b)};f.useLayoutEffect=function(a,b){return m.current.useLayoutEffect(a,b)};f.useMemo=function(a,b){return m.current.useMemo(a,b)};f.useOptimistic=function(a,b){return m.current.useOptimistic(a,b)};f.useReducer=function(a,b,c){return m.current.useReducer(a,b,c)};f.useRef=function(a){return m.current.useRef(a)};f.useState=function(a){return m.current.useState(a)};f.useSyncExternalStore=function(a,b,c){return m.current.useSyncExternalStore(a, | ||
b,c)};f.useTransition=function(){return m.current.useTransition()};f.version="19.0.0-canary-a73c3450e-20240329"})})(); | ||
'use strict';(function(){(function(f,A){"object"===typeof exports&&"undefined"!==typeof module?A(exports):"function"===typeof define&&define.amd?define(["exports"],A):(f="undefined"!==typeof globalThis?globalThis:f||self,A(f.React={}))})(this,function(f){function A(a){if(null===a||"object"!==typeof a)return null;a=U&&a[U]||a["@@iterator"];return"function"===typeof a?a:null}function x(a,b,c){this.props=a;this.context=b;this.refs=V;this.updater=c||W}function X(){}function K(a,b,c){this.props=a;this.context= | ||
b;this.refs=V;this.updater=c||W}function L(a,b,c,d,e,k,g){c=g.ref;return{$$typeof:M,type:a,key:b,ref:void 0!==c?c:null,props:g}}function na(a,b){return L(a.type,b,null,void 0,void 0,void 0,a.props)}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===M}function oa(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?oa(""+a.key):b.toString(36)}function Y(){}function pa(a){switch(a.status){case "fulfilled":return a.value; | ||
case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(Y,Y):(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;}function y(a,b,c,d,e){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var g=!1;if(null===a)g=!0;else switch(k){case "bigint":case "string":case "number":g=!0;break; | ||
case "object":switch(a.$$typeof){case M:case qa:g=!0;break;case Z:return g=a._init,y(g(a._payload),b,c,d,e)}}if(g)return e=e(a),g=""===d?"."+O(a,0):d,aa(e)?(c="",null!=g&&(c=g.replace(ba,"$&/")+"/"),y(e,b,c,"",function(z){return z})):null!=e&&(N(e)&&(e=na(e,c+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(ba,"$&/")+"/")+g)),b.push(e)),1;g=0;var n=""===d?".":d+":";if(aa(a))for(var h=0;h<a.length;h++)d=a[h],k=n+O(d,h),g+=y(d,b,c,k,e);else if(h=A(a),"function"===typeof h)for(a=h.call(a),h=0;!(d=a.next()).done;)d= | ||
d.value,k=n+O(d,h++),g+=y(d,b,c,k,e);else if("object"===k){if("function"===typeof a.then)return y(pa(a),b,c,d,e);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");}return g}function D(a,b,c){if(null==a)return a;var d=[],e=0;y(a,d,"","",function(k){return b.call(c,k,e++)});return d}function ra(a){if(-1===a._status){var b=a._result; | ||
b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function P(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<E(e,b))a[d]=b,a[c]=e,c=d;else break a}}function q(a){return 0===a.length?null:a[0]}function F(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d= | ||
0,e=a.length,k=e>>>1;d<k;){var g=2*(d+1)-1,n=a[g],h=g+1,z=a[h];if(0>E(n,c))h<e&&0>E(z,n)?(a[d]=z,a[h]=c,d=h):(a[d]=n,a[g]=c,d=g);else if(h<e&&0>E(z,c))a[d]=z,a[h]=c,d=h;else break a}}return b}function E(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function G(a){for(var b=q(t);null!==b;){if(null===b.callback)F(t);else if(b.startTime<=a)F(t),b.sortIndex=b.expirationTime,P(r,b);else break;b=q(t)}}function Q(a){B=!1;G(a);if(!v)if(null!==q(r))v=!0,R();else{var b=q(t);null!==b&&S(Q,b.startTime- | ||
a)}}function ca(){return w()-da<ea?!1:!0}function R(){H||(H=!0,I())}function S(a,b){C=fa(function(){a(w())},b)}function sa(){}var M=Symbol.for("react.element"),qa=Symbol.for("react.portal"),ta=Symbol.for("react.fragment"),ua=Symbol.for("react.strict_mode"),va=Symbol.for("react.profiler"),wa=Symbol.for("react.consumer"),xa=Symbol.for("react.context"),ya=Symbol.for("react.forward_ref"),za=Symbol.for("react.suspense"),Aa=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),U=Symbol.iterator,W={isMounted:function(a){return!1}, | ||
enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},ha=Object.assign,V={};x.prototype.isReactComponent={};x.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};x.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a, | ||
"forceUpdate")};X.prototype=x.prototype;var u=K.prototype=new X;u.constructor=K;ha(u,x.prototype);u.isPureReactComponent=!0;var aa=Array.isArray,l={H:null,C:null,T:null},ia=Object.prototype.hasOwnProperty,ba=/\/+/g;if("object"===typeof performance&&"function"===typeof performance.now){var Ba=performance;var w=function(){return Ba.now()}}else{var ja=Date,Ca=ja.now();w=function(){return ja.now()-Ca}}var r=[],t=[],Da=1,p=null,m=3,J=!1,v=!1,B=!1,fa="function"===typeof setTimeout?setTimeout:null,ka="function"=== | ||
typeof clearTimeout?clearTimeout:null,la="undefined"!==typeof setImmediate?setImmediate:null,H=!1,C=-1,ea=5,da=-1,T=function(){if(H){var a=w();da=a;var b=!0;try{a:{v=!1;B&&(B=!1,ka(C),C=-1);J=!0;var c=m;try{b:{G(a);for(p=q(r);null!==p&&!(p.expirationTime>a&&ca());){var d=p.callback;if("function"===typeof d){p.callback=null;m=p.priorityLevel;var e=d(p.expirationTime<=a);a=w();if("function"===typeof e){p.callback=e;G(a);b=!0;break b}p===q(r)&&F(r);G(a)}else F(r);p=q(r)}if(null!==p)b=!0;else{var k=q(t); | ||
null!==k&&S(Q,k.startTime-a);b=!1}}break a}finally{p=null,m=c,J=!1}b=void 0}}finally{b?I():H=!1}}};if("function"===typeof la)var I=function(){la(T)};else if("undefined"!==typeof MessageChannel){u=new MessageChannel;var Ea=u.port2;u.port1.onmessage=T;I=function(){Ea.postMessage(null)}}else I=function(){fa(T,0)};u={H:null,C:null,T:null,Scheduler:{__proto__:null,unstable_IdlePriority:5,unstable_ImmediatePriority:1,unstable_LowPriority:4,unstable_NormalPriority:3,unstable_Profiling:null,unstable_UserBlockingPriority:2, | ||
unstable_cancelCallback:function(a){a.callback=null},unstable_continueExecution:function(){v||J||(v=!0,R())},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ea=0<a?Math.floor(1E3/a):5},unstable_getCurrentPriorityLevel:function(){return m},unstable_getFirstCallbackNode:function(){return q(r)},unstable_next:function(a){switch(m){case 1:case 2:case 3:var b=3;break;default:b= | ||
m}var c=m;m=b;try{return a()}finally{m=c}},get unstable_now(){return w},unstable_pauseExecution:function(){},unstable_requestPaint:function(){},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=m;m=a;try{return b()}finally{m=c}},unstable_scheduleCallback:function(a,b,c){var d=w();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e= | ||
1E4;break;default:e=5E3}e=c+e;a={id:Da++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,P(t,a),null===q(r)&&a===q(t)&&(B?(ka(C),C=-1):B=!0,S(Q,c-d))):(a.sortIndex=e,P(r,a),v||J||(v=!0,R()));return a},unstable_shouldYield:ca,unstable_wrapCallback:function(a){var b=m;return function(){var c=m;m=b;try{return a.apply(this,arguments)}finally{m=c}}}}};var ma="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b= | ||
new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};f.Children={map:D,forEach:function(a,b,c){D(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;D(a,function(){b++});return b},toArray:function(a){return D(a,function(b){return b})|| | ||
[]},only:function(a){if(!N(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};f.Component=x;f.Fragment=ta;f.Profiler=va;f.PureComponent=K;f.StrictMode=ua;f.Suspense=za;f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u;f.act=function(a){throw Error("act(...) is not supported in production builds of React.");};f.cache=function(a){return function(){return a.apply(null,arguments)}};f.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+ | ||
a+".");var d=ha({},a.props),e=a.key,k=void 0;if(null!=b)for(g in void 0!==b.ref&&(k=l.owner),void 0!==b.key&&(e=""+b.key),b)!ia.call(b,g)||"key"===g||"__self"===g||"__source"===g||"ref"===g&&void 0===b.ref||(d[g]=b[g]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var n=Array(g),h=0;h<g;h++)n[h]=arguments[h+2];d.children=n}return L(a.type,e,null,void 0,void 0,k,d)};f.createContext=function(a){a={$$typeof:xa,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null}; | ||
a.Provider=a;a.Consumer={$$typeof:wa,_context:a};return a};f.createElement=function(a,b,c){var d,e={},k=null;if(null!=b)for(d in void 0!==b.key&&(k=""+b.key),b)ia.call(b,d)&&"key"!==d&&"__self"!==d&&"__source"!==d&&(e[d]=b[d]);var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){for(var n=Array(g),h=0;h<g;h++)n[h]=arguments[h+2];e.children=n}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===e[d]&&(e[d]=g[d]);return L(a,k,null,void 0,void 0,l.owner,e)};f.createRef=function(){return{current:null}}; | ||
f.forwardRef=function(a){return{$$typeof:ya,render:a}};f.isValidElement=N;f.lazy=function(a){return{$$typeof:Z,_payload:{_status:-1,_result:a},_init:ra}};f.memo=function(a,b){return{$$typeof:Aa,type:a,compare:void 0===b?null:b}};f.startTransition=function(a,b){b=l.T;var c=new Set;l.T={_callbacks:c};var d=l.T;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(c.forEach(function(k){return k(d,e)}),e.then(sa,ma))}catch(k){ma(k)}finally{l.T=b}};f.unstable_useCacheRefresh=function(){return l.H.useCacheRefresh()}; | ||
f.use=function(a){return l.H.use(a)};f.useActionState=function(a,b,c){return l.H.useActionState(a,b,c)};f.useCallback=function(a,b){return l.H.useCallback(a,b)};f.useContext=function(a){return l.H.useContext(a)};f.useDebugValue=function(a,b){};f.useDeferredValue=function(a,b){return l.H.useDeferredValue(a,b)};f.useEffect=function(a,b){return l.H.useEffect(a,b)};f.useId=function(){return l.H.useId()};f.useImperativeHandle=function(a,b,c){return l.H.useImperativeHandle(a,b,c)};f.useInsertionEffect= | ||
function(a,b){return l.H.useInsertionEffect(a,b)};f.useLayoutEffect=function(a,b){return l.H.useLayoutEffect(a,b)};f.useMemo=function(a,b){return l.H.useMemo(a,b)};f.useOptimistic=function(a,b){return l.H.useOptimistic(a,b)};f.useReducer=function(a,b,c){return l.H.useReducer(a,b,c)};f.useRef=function(a){return l.H.useRef(a)};f.useState=function(a){return l.H.useState(a)};f.useSyncExternalStore=function(a,b,c){return l.H.useSyncExternalStore(a,b,c)};f.useTransition=function(){return l.H.useTransition()}; | ||
f.version="19.0.0-canary-adb717393-20240411"})})(); |
@@ -11,26 +11,24 @@ /** | ||
'use strict';(function(){(function(f,A){"object"===typeof exports&&"undefined"!==typeof module?A(exports):"function"===typeof define&&define.amd?define(["exports"],A):(f="undefined"!==typeof globalThis?globalThis:f||self,A(f.React={}))})(this,function(f){function A(a){if(null===a||"object"!==typeof a)return null;a=V&&a[V]||a["@@iterator"];return"function"===typeof a?a:null}function y(a,b,c){this.props=a;this.context=b;this.refs=W;this.updater=c||X}function Y(){}function M(a,b,c){this.props=a;this.context= | ||
b;this.refs=W;this.updater=c||X}function Z(a,b,c){var d,e={},g=null,k=null;if(null!=b)for(d in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)aa.call(b,d)&&"key"!==d&&"ref"!==d&&"__self"!==d&&"__source"!==d&&(e[d]=b[d]);var l=arguments.length-2;if(1===l)e.children=c;else if(1<l){for(var h=Array(l),n=0;n<l;n++)h[n]=arguments[n+2];e.children=h}if(a&&a.defaultProps)for(d in l=a.defaultProps,l)void 0===e[d]&&(e[d]=l[d]);return{$$typeof:B,type:a,key:g,ref:k,props:e,_owner:ba.current}}function sa(a, | ||
b){return{$$typeof:B,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===B}function ta(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?ta(""+a.key):b.toString(36)}function ca(){}function ua(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(ca,ca):(a.status= | ||
"pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;}function z(a,b,c,d,e){var g=typeof a;if("undefined"===g||"boolean"===g)a=null;var k=!1;if(null===a)k=!0;else switch(g){case "string":case "number":k=!0;break;case "object":switch(a.$$typeof){case B:case va:k=!0;break;case da:return k=a._init,z(k(a._payload),b,c, | ||
d,e)}}if(k)return e=e(a),k=""===d?"."+O(a,0):d,ea(e)?(c="",null!=k&&(c=k.replace(fa,"$&/")+"/"),z(e,b,c,"",function(n){return n})):null!=e&&(N(e)&&(e=sa(e,c+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(fa,"$&/")+"/")+k)),b.push(e)),1;k=0;var l=""===d?".":d+":";if(ea(a))for(var h=0;h<a.length;h++)d=a[h],g=l+O(d,h),k+=z(d,b,c,g,e);else if(h=A(a),"function"===typeof h)for(a=h.call(a),h=0;!(d=a.next()).done;)d=d.value,g=l+O(d,h++),k+=z(d,b,c,g,e);else if("object"===g){if("function"===typeof a.then)return z(ua(a), | ||
b,c,d,e);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");}return k}function F(a,b,c){if(null==a)return a;var d=[],e=0;z(a,d,"","",function(g){return b.call(c,g,e++)});return d}function wa(a){if(-1===a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0=== | ||
a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function xa(){return new WeakMap}function P(){return{s:0,v:void 0,o:null,p:null}}function Q(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<G(e,b))a[d]=b,a[c]=e,c=d;else break a}}function r(a){return 0===a.length?null:a[0]}function H(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length, | ||
g=e>>>1;d<g;){var k=2*(d+1)-1,l=a[k],h=k+1,n=a[h];if(0>G(l,c))h<e&&0>G(n,l)?(a[d]=n,a[h]=c,d=h):(a[d]=l,a[k]=c,d=k);else if(h<e&&0>G(n,c))a[d]=n,a[h]=c,d=h;else break a}}return b}function G(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function I(a){for(var b=r(u);null!==b;){if(null===b.callback)H(u);else if(b.startTime<=a)H(u),b.sortIndex=b.expirationTime,Q(t,b);else break;b=r(u)}}function R(a){C=!1;I(a);if(!w)if(null!==r(t))w=!0,S();else{var b=r(u);null!==b&&T(R,b.startTime-a)}}function ha(){return x()- | ||
ia<ja?!1:!0}function S(){J||(J=!0,K())}function T(a,b){D=ka(function(){a(x())},b)}function ya(){}var B=Symbol.for("react.element"),va=Symbol.for("react.portal"),za=Symbol.for("react.fragment"),Aa=Symbol.for("react.strict_mode"),Ba=Symbol.for("react.profiler"),Ca=Symbol.for("react.provider"),Da=Symbol.for("react.context"),Ea=Symbol.for("react.forward_ref"),Fa=Symbol.for("react.suspense"),Ga=Symbol.for("react.memo"),da=Symbol.for("react.lazy"),V=Symbol.iterator,X={isMounted:function(a){return!1},enqueueForceUpdate:function(a, | ||
b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},la=Object.assign,W={};y.prototype.isReactComponent={};y.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};y.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};Y.prototype=y.prototype; | ||
var v=M.prototype=new Y;v.constructor=M;la(v,y.prototype);v.isPureReactComponent=!0;var ea=Array.isArray,m={current:null},ma={current:null},E={transition:null};v={current:null};var aa=Object.prototype.hasOwnProperty,ba=v,fa=/\/+/g;if("object"===typeof performance&&"function"===typeof performance.now){var Ha=performance;var x=function(){return Ha.now()}}else{var na=Date,Ia=na.now();x=function(){return na.now()-Ia}}var t=[],u=[],Ja=1,q=null,p=3,L=!1,w=!1,C=!1,ka="function"===typeof setTimeout?setTimeout: | ||
null,oa="function"===typeof clearTimeout?clearTimeout:null,pa="undefined"!==typeof setImmediate?setImmediate:null,J=!1,D=-1,ja=5,ia=-1,U=function(){if(J){var a=x();ia=a;var b=!0;try{a:{w=!1;C&&(C=!1,oa(D),D=-1);L=!0;var c=p;try{b:{I(a);for(q=r(t);null!==q&&!(q.expirationTime>a&&ha());){var d=q.callback;if("function"===typeof d){q.callback=null;p=q.priorityLevel;var e=d(q.expirationTime<=a);a=x();if("function"===typeof e){q.callback=e;I(a);b=!0;break b}q===r(t)&&H(t);I(a)}else H(t);q=r(t)}if(null!== | ||
q)b=!0;else{var g=r(u);null!==g&&T(R,g.startTime-a);b=!1}}break a}finally{q=null,p=c,L=!1}b=void 0}}finally{b?K():J=!1}}};if("function"===typeof pa)var K=function(){pa(U)};else if("undefined"!==typeof MessageChannel){var qa=new MessageChannel,Ka=qa.port2;qa.port1.onmessage=U;K=function(){Ka.postMessage(null)}}else K=function(){ka(U,0)};v={ReactCurrentDispatcher:m,ReactCurrentCache:ma,ReactCurrentOwner:v,ReactCurrentBatchConfig:E,Scheduler:{__proto__:null,unstable_IdlePriority:5,unstable_ImmediatePriority:1, | ||
unstable_LowPriority:4,unstable_NormalPriority:3,unstable_Profiling:null,unstable_UserBlockingPriority:2,unstable_cancelCallback:function(a){a.callback=null},unstable_continueExecution:function(){w||L||(w=!0,S())},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ja=0<a?Math.floor(1E3/a):5},unstable_getCurrentPriorityLevel:function(){return p},unstable_getFirstCallbackNode:function(){return r(t)}, | ||
unstable_next:function(a){switch(p){case 1:case 2:case 3:var b=3;break;default:b=p}var c=p;p=b;try{return a()}finally{p=c}},get unstable_now(){return x},unstable_pauseExecution:function(){},unstable_requestPaint:function(){},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=p;p=a;try{return b()}finally{p=c}},unstable_scheduleCallback:function(a,b,c){var d=x();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e= | ||
-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:Ja++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,Q(u,a),null===r(t)&&a===r(u)&&(C?(oa(D),D=-1):C=!0,T(R,c-d))):(a.sortIndex=e,Q(t,a),w||L||(w=!0,S()));return a},unstable_shouldYield:ha,unstable_wrapCallback:function(a){var b=p;return function(){var c=p;p=b;try{return a.apply(this,arguments)}finally{p=c}}}}};var ra="function"===typeof reportError?reportError: | ||
function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};f.Children={map:F,forEach:function(a,b,c){F(a,function(){b.apply(this,arguments)},c)},count:function(a){var b= | ||
0;F(a,function(){b++});return b},toArray:function(a){return F(a,function(b){return b})||[]},only:function(a){if(!N(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};f.Component=y;f.Fragment=za;f.Profiler=Ba;f.PureComponent=M;f.StrictMode=Aa;f.Suspense=Fa;f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=v;f.act=function(a){throw Error("act(...) is not supported in production builds of React.");};f.cache=function(a){return function(){var b=ma.current; | ||
if(!b)return a.apply(null,arguments);var c=b.getCacheForType(xa);b=c.get(a);void 0===b&&(b=P(),c.set(a,b));c=0;for(var d=arguments.length;c<d;c++){var e=arguments[c];if("function"===typeof e||"object"===typeof e&&null!==e){var g=b.o;null===g&&(b.o=g=new WeakMap);b=g.get(e);void 0===b&&(b=P(),g.set(e,b))}else g=b.p,null===g&&(b.p=g=new Map),b=g.get(e),void 0===b&&(b=P(),g.set(e,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var k=a.apply(null,arguments);c=b;c.s=1;return c.v=k}catch(l){throw k= | ||
b,k.s=2,k.v=l,l;}}};f.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var d=la({},a.props),e=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=ba.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var l=a.type.defaultProps;for(h in b)aa.call(b,h)&&"key"!==h&&"ref"!==h&&"__self"!==h&&"__source"!==h&&(d[h]=void 0===b[h]&&void 0!==l?l[h]:b[h])}var h=arguments.length-2;if(1===h)d.children=c; | ||
else if(1<h){l=Array(h);for(var n=0;n<h;n++)l[n]=arguments[n+2];d.children=l}return{$$typeof:B,type:a.type,key:e,ref:g,props:d,_owner:k}};f.createContext=function(a){a={$$typeof:Da,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Ca,_context:a};return a.Consumer=a};f.createElement=Z;f.createFactory=function(a){var b=Z.bind(null,a);b.type=a;return b};f.createRef=function(){return{current:null}};f.forwardRef=function(a){return{$$typeof:Ea,render:a}}; | ||
f.isValidElement=N;f.lazy=function(a){return{$$typeof:da,_payload:{_status:-1,_result:a},_init:wa}};f.memo=function(a,b){return{$$typeof:Ga,type:a,compare:void 0===b?null:b}};f.startTransition=function(a,b){b=E.transition;var c=new Set;E.transition={_callbacks:c};var d=E.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(c.forEach(function(g){return g(d,e)}),e.then(ya,ra))}catch(g){ra(g)}finally{E.transition=b}};f.unstable_useCacheRefresh=function(){return m.current.useCacheRefresh()}; | ||
f.use=function(a){return m.current.use(a)};f.useActionState=function(a,b,c){return m.current.useActionState(a,b,c)};f.useCallback=function(a,b){return m.current.useCallback(a,b)};f.useContext=function(a){return m.current.useContext(a)};f.useDebugValue=function(a,b){};f.useDeferredValue=function(a,b){return m.current.useDeferredValue(a,b)};f.useEffect=function(a,b){return m.current.useEffect(a,b)};f.useId=function(){return m.current.useId()};f.useImperativeHandle=function(a,b,c){return m.current.useImperativeHandle(a, | ||
b,c)};f.useInsertionEffect=function(a,b){return m.current.useInsertionEffect(a,b)};f.useLayoutEffect=function(a,b){return m.current.useLayoutEffect(a,b)};f.useMemo=function(a,b){return m.current.useMemo(a,b)};f.useOptimistic=function(a,b){return m.current.useOptimistic(a,b)};f.useReducer=function(a,b,c){return m.current.useReducer(a,b,c)};f.useRef=function(a){return m.current.useRef(a)};f.useState=function(a){return m.current.useState(a)};f.useSyncExternalStore=function(a,b,c){return m.current.useSyncExternalStore(a, | ||
b,c)};f.useTransition=function(){return m.current.useTransition()};f.version="19.0.0-canary-a73c3450e-20240329"})})(); | ||
'use strict';(function(){(function(f,A){"object"===typeof exports&&"undefined"!==typeof module?A(exports):"function"===typeof define&&define.amd?define(["exports"],A):(f="undefined"!==typeof globalThis?globalThis:f||self,A(f.React={}))})(this,function(f){function A(a){if(null===a||"object"!==typeof a)return null;a=U&&a[U]||a["@@iterator"];return"function"===typeof a?a:null}function x(a,b,c){this.props=a;this.context=b;this.refs=V;this.updater=c||W}function X(){}function K(a,b,c){this.props=a;this.context= | ||
b;this.refs=V;this.updater=c||W}function L(a,b,c,d,e,k,g){c=g.ref;return{$$typeof:M,type:a,key:b,ref:void 0!==c?c:null,props:g}}function na(a,b){return L(a.type,b,null,void 0,void 0,void 0,a.props)}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===M}function oa(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?oa(""+a.key):b.toString(36)}function Y(){}function pa(a){switch(a.status){case "fulfilled":return a.value; | ||
case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(Y,Y):(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;}function y(a,b,c,d,e){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var g=!1;if(null===a)g=!0;else switch(k){case "bigint":case "string":case "number":g=!0;break; | ||
case "object":switch(a.$$typeof){case M:case qa:g=!0;break;case Z:return g=a._init,y(g(a._payload),b,c,d,e)}}if(g)return e=e(a),g=""===d?"."+O(a,0):d,aa(e)?(c="",null!=g&&(c=g.replace(ba,"$&/")+"/"),y(e,b,c,"",function(z){return z})):null!=e&&(N(e)&&(e=na(e,c+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(ba,"$&/")+"/")+g)),b.push(e)),1;g=0;var n=""===d?".":d+":";if(aa(a))for(var h=0;h<a.length;h++)d=a[h],k=n+O(d,h),g+=y(d,b,c,k,e);else if(h=A(a),"function"===typeof h)for(a=h.call(a),h=0;!(d=a.next()).done;)d= | ||
d.value,k=n+O(d,h++),g+=y(d,b,c,k,e);else if("object"===k){if("function"===typeof a.then)return y(pa(a),b,c,d,e);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");}return g}function D(a,b,c){if(null==a)return a;var d=[],e=0;y(a,d,"","",function(k){return b.call(c,k,e++)});return d}function ra(a){if(-1===a._status){var b=a._result; | ||
b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function P(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<E(e,b))a[d]=b,a[c]=e,c=d;else break a}}function q(a){return 0===a.length?null:a[0]}function F(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d= | ||
0,e=a.length,k=e>>>1;d<k;){var g=2*(d+1)-1,n=a[g],h=g+1,z=a[h];if(0>E(n,c))h<e&&0>E(z,n)?(a[d]=z,a[h]=c,d=h):(a[d]=n,a[g]=c,d=g);else if(h<e&&0>E(z,c))a[d]=z,a[h]=c,d=h;else break a}}return b}function E(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function G(a){for(var b=q(t);null!==b;){if(null===b.callback)F(t);else if(b.startTime<=a)F(t),b.sortIndex=b.expirationTime,P(r,b);else break;b=q(t)}}function Q(a){B=!1;G(a);if(!v)if(null!==q(r))v=!0,R();else{var b=q(t);null!==b&&S(Q,b.startTime- | ||
a)}}function ca(){return w()-da<ea?!1:!0}function R(){H||(H=!0,I())}function S(a,b){C=fa(function(){a(w())},b)}function sa(){}var M=Symbol.for("react.element"),qa=Symbol.for("react.portal"),ta=Symbol.for("react.fragment"),ua=Symbol.for("react.strict_mode"),va=Symbol.for("react.profiler"),wa=Symbol.for("react.consumer"),xa=Symbol.for("react.context"),ya=Symbol.for("react.forward_ref"),za=Symbol.for("react.suspense"),Aa=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),U=Symbol.iterator,W={isMounted:function(a){return!1}, | ||
enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},ha=Object.assign,V={};x.prototype.isReactComponent={};x.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};x.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a, | ||
"forceUpdate")};X.prototype=x.prototype;var u=K.prototype=new X;u.constructor=K;ha(u,x.prototype);u.isPureReactComponent=!0;var aa=Array.isArray,l={H:null,C:null,T:null},ia=Object.prototype.hasOwnProperty,ba=/\/+/g;if("object"===typeof performance&&"function"===typeof performance.now){var Ba=performance;var w=function(){return Ba.now()}}else{var ja=Date,Ca=ja.now();w=function(){return ja.now()-Ca}}var r=[],t=[],Da=1,p=null,m=3,J=!1,v=!1,B=!1,fa="function"===typeof setTimeout?setTimeout:null,ka="function"=== | ||
typeof clearTimeout?clearTimeout:null,la="undefined"!==typeof setImmediate?setImmediate:null,H=!1,C=-1,ea=5,da=-1,T=function(){if(H){var a=w();da=a;var b=!0;try{a:{v=!1;B&&(B=!1,ka(C),C=-1);J=!0;var c=m;try{b:{G(a);for(p=q(r);null!==p&&!(p.expirationTime>a&&ca());){var d=p.callback;if("function"===typeof d){p.callback=null;m=p.priorityLevel;var e=d(p.expirationTime<=a);a=w();if("function"===typeof e){p.callback=e;G(a);b=!0;break b}p===q(r)&&F(r);G(a)}else F(r);p=q(r)}if(null!==p)b=!0;else{var k=q(t); | ||
null!==k&&S(Q,k.startTime-a);b=!1}}break a}finally{p=null,m=c,J=!1}b=void 0}}finally{b?I():H=!1}}};if("function"===typeof la)var I=function(){la(T)};else if("undefined"!==typeof MessageChannel){u=new MessageChannel;var Ea=u.port2;u.port1.onmessage=T;I=function(){Ea.postMessage(null)}}else I=function(){fa(T,0)};u={H:null,C:null,T:null,Scheduler:{__proto__:null,unstable_IdlePriority:5,unstable_ImmediatePriority:1,unstable_LowPriority:4,unstable_NormalPriority:3,unstable_Profiling:null,unstable_UserBlockingPriority:2, | ||
unstable_cancelCallback:function(a){a.callback=null},unstable_continueExecution:function(){v||J||(v=!0,R())},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ea=0<a?Math.floor(1E3/a):5},unstable_getCurrentPriorityLevel:function(){return m},unstable_getFirstCallbackNode:function(){return q(r)},unstable_next:function(a){switch(m){case 1:case 2:case 3:var b=3;break;default:b= | ||
m}var c=m;m=b;try{return a()}finally{m=c}},get unstable_now(){return w},unstable_pauseExecution:function(){},unstable_requestPaint:function(){},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=m;m=a;try{return b()}finally{m=c}},unstable_scheduleCallback:function(a,b,c){var d=w();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e= | ||
1E4;break;default:e=5E3}e=c+e;a={id:Da++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,P(t,a),null===q(r)&&a===q(t)&&(B?(ka(C),C=-1):B=!0,S(Q,c-d))):(a.sortIndex=e,P(r,a),v||J||(v=!0,R()));return a},unstable_shouldYield:ca,unstable_wrapCallback:function(a){var b=m;return function(){var c=m;m=b;try{return a.apply(this,arguments)}finally{m=c}}}}};var ma="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b= | ||
new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};f.Children={map:D,forEach:function(a,b,c){D(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;D(a,function(){b++});return b},toArray:function(a){return D(a,function(b){return b})|| | ||
[]},only:function(a){if(!N(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};f.Component=x;f.Fragment=ta;f.Profiler=va;f.PureComponent=K;f.StrictMode=ua;f.Suspense=za;f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u;f.act=function(a){throw Error("act(...) is not supported in production builds of React.");};f.cache=function(a){return function(){return a.apply(null,arguments)}};f.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+ | ||
a+".");var d=ha({},a.props),e=a.key,k=void 0;if(null!=b)for(g in void 0!==b.ref&&(k=l.owner),void 0!==b.key&&(e=""+b.key),b)!ia.call(b,g)||"key"===g||"__self"===g||"__source"===g||"ref"===g&&void 0===b.ref||(d[g]=b[g]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var n=Array(g),h=0;h<g;h++)n[h]=arguments[h+2];d.children=n}return L(a.type,e,null,void 0,void 0,k,d)};f.createContext=function(a){a={$$typeof:xa,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null}; | ||
a.Provider=a;a.Consumer={$$typeof:wa,_context:a};return a};f.createElement=function(a,b,c){var d,e={},k=null;if(null!=b)for(d in void 0!==b.key&&(k=""+b.key),b)ia.call(b,d)&&"key"!==d&&"__self"!==d&&"__source"!==d&&(e[d]=b[d]);var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){for(var n=Array(g),h=0;h<g;h++)n[h]=arguments[h+2];e.children=n}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===e[d]&&(e[d]=g[d]);return L(a,k,null,void 0,void 0,l.owner,e)};f.createRef=function(){return{current:null}}; | ||
f.forwardRef=function(a){return{$$typeof:ya,render:a}};f.isValidElement=N;f.lazy=function(a){return{$$typeof:Z,_payload:{_status:-1,_result:a},_init:ra}};f.memo=function(a,b){return{$$typeof:Aa,type:a,compare:void 0===b?null:b}};f.startTransition=function(a,b){b=l.T;var c=new Set;l.T={_callbacks:c};var d=l.T;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(c.forEach(function(k){return k(d,e)}),e.then(sa,ma))}catch(k){ma(k)}finally{l.T=b}};f.unstable_useCacheRefresh=function(){return l.H.useCacheRefresh()}; | ||
f.use=function(a){return l.H.use(a)};f.useActionState=function(a,b,c){return l.H.useActionState(a,b,c)};f.useCallback=function(a,b){return l.H.useCallback(a,b)};f.useContext=function(a){return l.H.useContext(a)};f.useDebugValue=function(a,b){};f.useDeferredValue=function(a,b){return l.H.useDeferredValue(a,b)};f.useEffect=function(a,b){return l.H.useEffect(a,b)};f.useId=function(){return l.H.useId()};f.useImperativeHandle=function(a,b,c){return l.H.useImperativeHandle(a,b,c)};f.useInsertionEffect= | ||
function(a,b){return l.H.useInsertionEffect(a,b)};f.useLayoutEffect=function(a,b){return l.H.useLayoutEffect(a,b)};f.useMemo=function(a,b){return l.H.useMemo(a,b)};f.useOptimistic=function(a,b){return l.H.useOptimistic(a,b)};f.useReducer=function(a,b,c){return l.H.useReducer(a,b,c)};f.useRef=function(a){return l.H.useRef(a)};f.useState=function(a){return l.H.useState(a)};f.useSyncExternalStore=function(a,b,c){return l.H.useSyncExternalStore(a,b,c)};f.useTransition=function(){return l.H.useTransition()}; | ||
f.version="19.0.0-canary-adb717393-20240411"})})(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
1
596209
13038