@shopify/create-app
Version:
A CLI tool to create a new Shopify app.
30,268 lines • 1.71 MB
JavaScript
import {
execa,
platformAndArch,
require_signal_exit
} from "./chunk-JMC4PKOZ.js";
import {
runWithTimer
} from "./chunk-YYJ6EVI6.js";
import {
AbortError,
AbortSilentError,
BugError,
ExternalError,
cleanSingleStackTracePath
} from "./chunk-LEQAULOW.js";
import {
require_ansi_styles
} from "./chunk-E43EDJOG.js";
import {
treeKill
} from "./chunk-VJHCFG5K.js";
import {
ansi_escapes_default,
appendToTokenItem,
capitalize,
output,
outputContent,
outputDebug,
outputToken,
require_arrayMap,
require_baseFlatten,
require_baseGet,
require_baseIteratee,
require_baseRest,
require_baseUnary,
require_eq,
require_identity,
require_isArray,
require_isArrayLike,
require_isIndex,
require_isObject,
require_isSymbol,
require_keys,
require_memoize,
require_root,
require_supports_color,
require_supports_hyperlinks,
shouldDisplayColors,
source_default,
stripAnsi,
tokenItemToString,
unstyled
} from "./chunk-PK2M5CKS.js";
import {
isCloudEnvironment,
isUnitTest
} from "./chunk-X2X377NR.js";
import {
isTruthy
} from "./chunk-HNIAZN6U.js";
import {
cwd,
delimiter,
dirname
} from "./chunk-C3J4HVUN.js";
import {
require_source_map
} from "./chunk-D6NYWNY2.js";
import {
__commonJS,
__export,
__require,
__toESM,
init_cjs_shims
} from "./chunk-3XNI6LP4.js";
// ../../node_modules/.pnpm/isexe@3.1.5/node_modules/isexe/dist/commonjs/index.min.js
var require_index_min = __commonJS({
"../../node_modules/.pnpm/isexe@3.1.5/node_modules/isexe/dist/commonjs/index.min.js"(exports) {
"use strict";
init_cjs_shims();
var a = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports), _ = a((i) => {
"use strict";
Object.defineProperty(i, "__esModule", { value: !0 }), i.sync = i.isexe = void 0;
var M = __require("node:fs"), x = __require("node:fs/promises"), q = async (t, e = {}) => {
let { ignoreErrors: r = !1 } = e;
try {
return d(await (0, x.stat)(t), e);
} catch (s) {
let n = s;
if (r || n.code === "EACCES") return !1;
throw n;
}
};
i.isexe = q;
var m = (t, e = {}) => {
let { ignoreErrors: r = !1 } = e;
try {
return d((0, M.statSync)(t), e);
} catch (s) {
let n = s;
if (r || n.code === "EACCES") return !1;
throw n;
}
};
i.sync = m;
var d = (t, e) => t.isFile() && A(t, e), A = (t, e) => {
let r = e.uid ?? process.getuid?.(), s = e.groups ?? process.getgroups?.() ?? [], n = e.gid ?? process.getgid?.() ?? s[0];
if (r === void 0 || n === void 0) throw new Error("cannot get uid or gid");
let u = /* @__PURE__ */ new Set([n, ...s]), c = t.mode, S = t.uid, P = t.gid, f = parseInt("100", 8), l = parseInt("010", 8), j = parseInt("001", 8), C = f | l;
return !!(c & j || c & l && u.has(P) || c & f && S === r || c & C && r === 0);
};
}), g = a((o) => {
"use strict";
Object.defineProperty(o, "__esModule", { value: !0 }), o.sync = o.isexe = void 0;
var T = __require("node:fs"), I = __require("node:fs/promises"), D = __require("node:path"), F = async (t, e = {}) => {
let { ignoreErrors: r = !1 } = e;
try {
return y(await (0, I.stat)(t), t, e);
} catch (s) {
let n = s;
if (r || n.code === "EACCES") return !1;
throw n;
}
};
o.isexe = F;
var L = (t, e = {}) => {
let { ignoreErrors: r = !1 } = e;
try {
return y((0, T.statSync)(t), t, e);
} catch (s) {
let n = s;
if (r || n.code === "EACCES") return !1;
throw n;
}
};
o.sync = L;
var B = (t, e) => {
let { pathExt: r = process.env.PATHEXT || "" } = e, s = r.split(D.delimiter);
if (s.indexOf("") !== -1) return !0;
for (let n of s) {
let u = n.toLowerCase(), c = t.substring(t.length - u.length).toLowerCase();
if (u && c === u) return !0;
}
return !1;
}, y = (t, e, r) => t.isFile() && B(e, r);
}), p = a((h) => {
"use strict";
Object.defineProperty(h, "__esModule", { value: !0 });
}), v = exports && exports.__createBinding || (Object.create ? (function(t, e, r, s) {
s === void 0 && (s = r);
var n = Object.getOwnPropertyDescriptor(e, r);
(!n || ("get" in n ? !e.__esModule : n.writable || n.configurable)) && (n = { enumerable: !0, get: function() {
return e[r];
} }), Object.defineProperty(t, s, n);
}) : (function(t, e, r, s) {
s === void 0 && (s = r), t[s] = e[r];
})), G = exports && exports.__setModuleDefault || (Object.create ? (function(t, e) {
Object.defineProperty(t, "default", { enumerable: !0, value: e });
}) : function(t, e) {
t.default = e;
}), w = exports && exports.__importStar || /* @__PURE__ */ (function() {
var t = function(e) {
return t = Object.getOwnPropertyNames || function(r) {
var s = [];
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (s[s.length] = n);
return s;
}, t(e);
};
return function(e) {
if (e && e.__esModule) return e;
var r = {};
if (e != null) for (var s = t(e), n = 0; n < s.length; n++) s[n] !== "default" && v(r, e, s[n]);
return G(r, e), r;
};
})(), X = exports && exports.__exportStar || function(t, e) {
for (var r in t) r !== "default" && !Object.prototype.hasOwnProperty.call(e, r) && v(e, t, r);
};
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.sync = exports.isexe = exports.posix = exports.win32 = void 0;
var E = w(_());
exports.posix = E;
var O = w(g());
exports.win32 = O;
X(p(), exports);
var H = process.env._ISEXE_TEST_PLATFORM_ || process.platform, b = H === "win32" ? O : E;
exports.isexe = b.isexe;
exports.sync = b.sync;
}
});
// ../../node_modules/.pnpm/which@4.0.0/node_modules/which/lib/index.js
var require_lib = __commonJS({
"../../node_modules/.pnpm/which@4.0.0/node_modules/which/lib/index.js"(exports, module) {
init_cjs_shims();
var { isexe, sync: isexeSync } = require_index_min(), { join: join2, delimiter: delimiter2, sep, posix } = __require("path"), isWindows3 = process.platform === "win32", rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? "" : sep}]`.replace(/(\\)/g, "\\$1")), rRel = new RegExp(`^\\.${rSlash.source}`), getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), getPathInfo = (cmd, {
path: optPath = process.env.PATH,
pathExt: optPathExt = process.env.PATHEXT,
delimiter: optDelimiter = delimiter2
}) => {
let pathEnv = cmd.match(rSlash) ? [""] : [
// windows always checks the cwd first
...isWindows3 ? [process.cwd()] : [],
...(optPath || /* istanbul ignore next: very unusual */
"").split(optDelimiter)
];
if (isWindows3) {
let pathExtExe = optPathExt || [".EXE", ".CMD", ".BAT", ".COM"].join(optDelimiter), pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()]);
return cmd.includes(".") && pathExt[0] !== "" && pathExt.unshift(""), { pathEnv, pathExt, pathExtExe };
}
return { pathEnv, pathExt: [""] };
}, getPathPart = (raw, cmd) => {
let pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join2(pathPart, cmd);
}, which2 = async (cmd, opt = {}) => {
let { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt), found = [];
for (let envPart of pathEnv) {
let p = getPathPart(envPart, cmd);
for (let ext of pathExt) {
let withExt = p + ext;
if (await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: !0 })) {
if (!opt.all)
return withExt;
found.push(withExt);
}
}
}
if (opt.all && found.length)
return found;
if (opt.nothrow)
return null;
throw getNotFoundError(cmd);
}, whichSync = (cmd, opt = {}) => {
let { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt), found = [];
for (let pathEnvPart of pathEnv) {
let p = getPathPart(pathEnvPart, cmd);
for (let ext of pathExt) {
let withExt = p + ext;
if (isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: !0 })) {
if (!opt.all)
return withExt;
found.push(withExt);
}
}
}
if (opt.all && found.length)
return found;
if (opt.nothrow)
return null;
throw getNotFoundError(cmd);
};
module.exports = which2;
which2.sync = whichSync;
}
});
// ../../node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react.production.js
var require_react_production = __commonJS({
"../../node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react.production.js"(exports) {
"use strict";
init_cjs_shims();
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
function getIteratorFn(maybeIterable) {
return maybeIterable === null || typeof maybeIterable != "object" ? null : (maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"], typeof maybeIterable == "function" ? maybeIterable : null);
}
var ReactNoopUpdateQueue = {
isMounted: function() {
return !1;
},
enqueueForceUpdate: function() {
},
enqueueReplaceState: function() {
},
enqueueSetState: function() {
}
}, assign = Object.assign, emptyObject = {};
function Component(props, context, updater) {
this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
}
Component.prototype.isReactComponent = {};
Component.prototype.setState = function(partialState, callback) {
if (typeof partialState != "object" && typeof partialState != "function" && partialState != null)
throw Error(
"takes an object of state variables to update or a function which returns an object of state variables."
);
this.updater.enqueueSetState(this, partialState, callback, "setState");
};
Component.prototype.forceUpdate = function(callback) {
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
};
function ComponentDummy() {
}
ComponentDummy.prototype = Component.prototype;
function PureComponent2(props, context, updater) {
this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
}
var pureComponentPrototype = PureComponent2.prototype = new ComponentDummy();
pureComponentPrototype.constructor = PureComponent2;
assign(pureComponentPrototype, Component.prototype);
pureComponentPrototype.isPureReactComponent = !0;
var isArrayImpl = Array.isArray;
function noop4() {
}
var ReactSharedInternals = { H: null, A: null, T: null, S: null }, hasOwnProperty = Object.prototype.hasOwnProperty;
function ReactElement(type, key, props) {
var refProp = props.ref;
return {
$$typeof: REACT_ELEMENT_TYPE,
type,
key,
ref: refProp !== void 0 ? refProp : null,
props
};
}
function cloneAndReplaceKey(oldElement, newKey) {
return ReactElement(oldElement.type, newKey, oldElement.props);
}
function isValidElement(object) {
return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}
function escape2(key) {
var escaperLookup = { "=": "=0", ":": "=2" };
return "$" + key.replace(/[=:]/g, function(match) {
return escaperLookup[match];
});
}
var userProvidedKeyEscapeRegex = /\/+/g;
function getElementKey(element, index) {
return typeof element == "object" && element !== null && element.key != null ? escape2("" + element.key) : index.toString(36);
}
function resolveThenable(thenable) {
switch (thenable.status) {
case "fulfilled":
return thenable.value;
case "rejected":
throw thenable.reason;
default:
switch (typeof thenable.status == "string" ? thenable.then(noop4, noop4) : (thenable.status = "pending", thenable.then(
function(fulfilledValue) {
thenable.status === "pending" && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
},
function(error) {
thenable.status === "pending" && (thenable.status = "rejected", thenable.reason = error);
}
)), thenable.status) {
case "fulfilled":
return thenable.value;
case "rejected":
throw thenable.reason;
}
}
throw thenable;
}
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
var type = typeof children;
(type === "undefined" || type === "boolean") && (children = null);
var invokeCallback = !1;
if (children === null) invokeCallback = !0;
else
switch (type) {
case "bigint":
case "string":
case "number":
invokeCallback = !0;
break;
case "object":
switch (children.$$typeof) {
case REACT_ELEMENT_TYPE:
case REACT_PORTAL_TYPE:
invokeCallback = !0;
break;
case REACT_LAZY_TYPE:
return invokeCallback = children._init, mapIntoArray(
invokeCallback(children._payload),
array,
escapedPrefix,
nameSoFar,
callback
);
}
}
if (invokeCallback)
return callback = callback(children), invokeCallback = nameSoFar === "" ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", invokeCallback != null && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
return c;
})) : callback != null && (isValidElement(callback) && (callback = cloneAndReplaceKey(
callback,
escapedPrefix + (callback.key == null || children && children.key === callback.key ? "" : ("" + callback.key).replace(
userProvidedKeyEscapeRegex,
"$&/"
) + "/") + invokeCallback
)), array.push(callback)), 1;
invokeCallback = 0;
var nextNamePrefix = nameSoFar === "" ? "." : nameSoFar + ":";
if (isArrayImpl(children))
for (var i = 0; i < children.length; i++)
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
nameSoFar,
array,
escapedPrefix,
type,
callback
);
else if (i = getIteratorFn(children), typeof i == "function")
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
nameSoFar,
array,
escapedPrefix,
type,
callback
);
else if (type === "object") {
if (typeof children.then == "function")
return mapIntoArray(
resolveThenable(children),
array,
escapedPrefix,
nameSoFar,
callback
);
throw array = String(children), Error(
"Objects are not valid as a React child (found: " + (array === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
);
}
return invokeCallback;
}
function mapChildren(children, func, context) {
if (children == null) return children;
var result = [], count = 0;
return mapIntoArray(children, result, "", "", function(child) {
return func.call(context, child, count++);
}), result;
}
function lazyInitializer(payload) {
if (payload._status === -1) {
var ctor = payload._result;
ctor = ctor(), ctor.then(
function(moduleObject) {
(payload._status === 0 || payload._status === -1) && (payload._status = 1, payload._result = moduleObject);
},
function(error) {
(payload._status === 0 || payload._status === -1) && (payload._status = 2, payload._result = error);
}
), payload._status === -1 && (payload._status = 0, payload._result = ctor);
}
if (payload._status === 1) return payload._result.default;
throw payload._result;
}
var reportGlobalError = typeof reportError == "function" ? reportError : function(error) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var event = new window.ErrorEvent("error", {
bubbles: !0,
cancelable: !0,
message: typeof error == "object" && error !== null && typeof error.message == "string" ? String(error.message) : String(error),
error
});
if (!window.dispatchEvent(event)) return;
} else if (typeof process == "object" && typeof process.emit == "function") {
process.emit("uncaughtException", error);
return;
}
console.error(error);
}, Children = {
map: mapChildren,
forEach: function(children, forEachFunc, forEachContext) {
mapChildren(
children,
function() {
forEachFunc.apply(this, arguments);
},
forEachContext
);
},
count: function(children) {
var n = 0;
return mapChildren(children, function() {
n++;
}), n;
},
toArray: function(children) {
return mapChildren(children, function(child) {
return child;
}) || [];
},
only: function(children) {
if (!isValidElement(children))
throw Error(
"React.Children.only expected to receive a single React element child."
);
return children;
}
};
exports.Activity = REACT_ACTIVITY_TYPE;
exports.Children = Children;
exports.Component = Component;
exports.Fragment = REACT_FRAGMENT_TYPE;
exports.Profiler = REACT_PROFILER_TYPE;
exports.PureComponent = PureComponent2;
exports.StrictMode = REACT_STRICT_MODE_TYPE;
exports.Suspense = REACT_SUSPENSE_TYPE;
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
exports.__COMPILER_RUNTIME = {
__proto__: null,
c: function(size) {
return ReactSharedInternals.H.useMemoCache(size);
}
};
exports.cache = function(fn) {
return function() {
return fn.apply(null, arguments);
};
};
exports.cacheSignal = function() {
return null;
};
exports.cloneElement = function(element, config, children) {
if (element == null)
throw Error(
"The argument must be a React element, but you passed " + element + "."
);
var props = assign({}, element.props), key = element.key;
if (config != null)
for (propName in config.key !== void 0 && (key = "" + config.key), config)
!hasOwnProperty.call(config, propName) || propName === "key" || propName === "__self" || propName === "__source" || propName === "ref" && config.ref === void 0 || (props[propName] = config[propName]);
var propName = arguments.length - 2;
if (propName === 1) props.children = children;
else if (1 < propName) {
for (var childArray = Array(propName), i = 0; i < propName; i++)
childArray[i] = arguments[i + 2];
props.children = childArray;
}
return ReactElement(element.type, key, props);
};
exports.createContext = function(defaultValue) {
return defaultValue = {
$$typeof: REACT_CONTEXT_TYPE,
_currentValue: defaultValue,
_currentValue2: defaultValue,
_threadCount: 0,
Provider: null,
Consumer: null
}, defaultValue.Provider = defaultValue, defaultValue.Consumer = {
$$typeof: REACT_CONSUMER_TYPE,
_context: defaultValue
}, defaultValue;
};
exports.createElement = function(type, config, children) {
var propName, props = {}, key = null;
if (config != null)
for (propName in config.key !== void 0 && (key = "" + config.key), config)
hasOwnProperty.call(config, propName) && propName !== "key" && propName !== "__self" && propName !== "__source" && (props[propName] = config[propName]);
var childrenLength = arguments.length - 2;
if (childrenLength === 1) props.children = children;
else if (1 < childrenLength) {
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
childArray[i] = arguments[i + 2];
props.children = childArray;
}
if (type && type.defaultProps)
for (propName in childrenLength = type.defaultProps, childrenLength)
props[propName] === void 0 && (props[propName] = childrenLength[propName]);
return ReactElement(type, key, props);
};
exports.createRef = function() {
return { current: null };
};
exports.forwardRef = function(render3) {
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render3 };
};
exports.isValidElement = isValidElement;
exports.lazy = function(ctor) {
return {
$$typeof: REACT_LAZY_TYPE,
_payload: { _status: -1, _result: ctor },
_init: lazyInitializer
};
};
exports.memo = function(type, compare) {
return {
$$typeof: REACT_MEMO_TYPE,
type,
compare: compare === void 0 ? null : compare
};
};
exports.startTransition = function(scope) {
var prevTransition = ReactSharedInternals.T, currentTransition = {};
ReactSharedInternals.T = currentTransition;
try {
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue), typeof returnValue == "object" && returnValue !== null && typeof returnValue.then == "function" && returnValue.then(noop4, reportGlobalError);
} catch (error) {
reportGlobalError(error);
} finally {
prevTransition !== null && currentTransition.types !== null && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
}
};
exports.unstable_useCacheRefresh = function() {
return ReactSharedInternals.H.useCacheRefresh();
};
exports.use = function(usable) {
return ReactSharedInternals.H.use(usable);
};
exports.useActionState = function(action, initialState, permalink) {
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
};
exports.useCallback = function(callback, deps) {
return ReactSharedInternals.H.useCallback(callback, deps);
};
exports.useContext = function(Context) {
return ReactSharedInternals.H.useContext(Context);
};
exports.useDebugValue = function() {
};
exports.useDeferredValue = function(value, initialValue) {
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
};
exports.useEffect = function(create3, deps) {
return ReactSharedInternals.H.useEffect(create3, deps);
};
exports.useEffectEvent = function(callback) {
return ReactSharedInternals.H.useEffectEvent(callback);
};
exports.useId = function() {
return ReactSharedInternals.H.useId();
};
exports.useImperativeHandle = function(ref, create3, deps) {
return ReactSharedInternals.H.useImperativeHandle(ref, create3, deps);
};
exports.useInsertionEffect = function(create3, deps) {
return ReactSharedInternals.H.useInsertionEffect(create3, deps);
};
exports.useLayoutEffect = function(create3, deps) {
return ReactSharedInternals.H.useLayoutEffect(create3, deps);
};
exports.useMemo = function(create3, deps) {
return ReactSharedInternals.H.useMemo(create3, deps);
};
exports.useOptimistic = function(passthrough, reducer2) {
return ReactSharedInternals.H.useOptimistic(passthrough, reducer2);
};
exports.useReducer = function(reducer2, initialArg, init) {
return ReactSharedInternals.H.useReducer(reducer2, initialArg, init);
};
exports.useRef = function(initialValue) {
return ReactSharedInternals.H.useRef(initialValue);
};
exports.useState = function(initialState) {
return ReactSharedInternals.H.useState(initialState);
};
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
return ReactSharedInternals.H.useSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
};
exports.useTransition = function() {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.4";
}
});
// ../../node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react.development.js
var require_react_development = __commonJS({
"../../node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react.development.js"(exports, module) {
"use strict";
init_cjs_shims();
process.env.NODE_ENV !== "production" && (function() {
function defineDeprecationWarning(methodName, info) {
Object.defineProperty(Component.prototype, methodName, {
get: function() {
console.warn(
"%s(...) is deprecated in plain JavaScript React classes. %s",
info[0],
info[1]
);
}
});
}
function getIteratorFn(maybeIterable) {
return maybeIterable === null || typeof maybeIterable != "object" ? null : (maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"], typeof maybeIterable == "function" ? maybeIterable : null);
}
function warnNoop(publicInstance, callerName) {
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
var warningKey = publicInstance + "." + callerName;
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
callerName,
publicInstance
), didWarnStateUpdateForUnmountedComponent[warningKey] = !0);
}
function Component(props, context, updater) {
this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
}
function ComponentDummy() {
}
function PureComponent2(props, context, updater) {
this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
}
function noop4() {
}
function testStringCoercion(value) {
return "" + value;
}
function checkKeyStringCoercion(value) {
try {
testStringCoercion(value);
var JSCompiler_inline_result = !1;
} catch {
JSCompiler_inline_result = !0;
}
if (JSCompiler_inline_result) {
JSCompiler_inline_result = console;
var JSCompiler_temp_const = JSCompiler_inline_result.error, JSCompiler_inline_result$jscomp$0 = typeof Symbol == "function" && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
return JSCompiler_temp_const.call(
JSCompiler_inline_result,
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
JSCompiler_inline_result$jscomp$0
), testStringCoercion(value);
}
}
function getComponentNameFromType(type) {
if (type == null) return null;
if (typeof type == "function")
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
if (typeof type == "string") return type;
switch (type) {
case REACT_FRAGMENT_TYPE:
return "Fragment";
case REACT_PROFILER_TYPE:
return "Profiler";
case REACT_STRICT_MODE_TYPE:
return "StrictMode";
case REACT_SUSPENSE_TYPE:
return "Suspense";
case REACT_SUSPENSE_LIST_TYPE:
return "SuspenseList";
case REACT_ACTIVITY_TYPE:
return "Activity";
}
if (typeof type == "object")
switch (typeof type.tag == "number" && console.error(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
), type.$$typeof) {
case REACT_PORTAL_TYPE:
return "Portal";
case REACT_CONTEXT_TYPE:
return type.displayName || "Context";
case REACT_CONSUMER_TYPE:
return (type._context.displayName || "Context") + ".Consumer";
case REACT_FORWARD_REF_TYPE:
var innerType = type.render;
return type = type.displayName, type || (type = innerType.displayName || innerType.name || "", type = type !== "" ? "ForwardRef(" + type + ")" : "ForwardRef"), type;
case REACT_MEMO_TYPE:
return innerType = type.displayName || null, innerType !== null ? innerType : getComponentNameFromType(type.type) || "Memo";
case REACT_LAZY_TYPE:
innerType = type._payload, type = type._init;
try {
return getComponentNameFromType(type(innerType));
} catch {
}
}
return null;
}
function getTaskName(type) {
if (type === REACT_FRAGMENT_TYPE) return "<>";
if (typeof type == "object" && type !== null && type.$$typeof === REACT_LAZY_TYPE)
return "<...>";
try {
var name = getComponentNameFromType(type);
return name ? "<" + name + ">" : "<...>";
} catch {
return "<...>";
}
}
function getOwner() {
var dispatcher = ReactSharedInternals.A;
return dispatcher === null ? null : dispatcher.getOwner();
}
function UnknownOwner() {
return Error("react-stack-top-frame");
}
function hasValidKey(config) {
if (hasOwnProperty.call(config, "key")) {
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
if (getter && getter.isReactWarning) return !1;
}
return config.key !== void 0;
}
function defineKeyPropWarningGetter(props, displayName) {
function warnAboutAccessingKey() {
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error(
"%s: `key` 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
));
}
warnAboutAccessingKey.isReactWarning = !0, Object.defineProperty(props, "key", {
get: warnAboutAccessingKey,
configurable: !0
});
}
function elementRefGetterWithDeprecationWarning() {
var componentName = getComponentNameFromType(this.type);
return didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.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."
)), componentName = this.props.ref, componentName !== void 0 ? componentName : null;
}
function ReactElement(type, key, props, owner, debugStack, debugTask) {
var refProp = props.ref;
return type = {
$$typeof: REACT_ELEMENT_TYPE,
type,
key,
props,
_owner: owner
}, (refProp !== void 0 ? refProp : null) !== null ? Object.defineProperty(type, "ref", {
enumerable: !1,
get: elementRefGetterWithDeprecationWarning
}) : Object.defineProperty(type, "ref", { enumerable: !1, value: null }), type._store = {}, Object.defineProperty(type._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: 0
}), Object.defineProperty(type, "_debugInfo", {
configurable: !1,
enumerable: !1,
writable: !0,
value: null
}), Object.defineProperty(type, "_debugStack", {
configurable: !1,
enumerable: !1,
writable: !0,
value: debugStack
}), Object.defineProperty(type, "_debugTask", {
configurable: !1,
enumerable: !1,
writable: !0,
value: debugTask
}), Object.freeze && (Object.freeze(type.props), Object.freeze(type)), type;
}
function cloneAndReplaceKey(oldElement, newKey) {
return newKey = ReactElement(
oldElement.type,
newKey,
oldElement.props,
oldElement._owner,
oldElement._debugStack,
oldElement._debugTask
), oldElement._store && (newKey._store.validated = oldElement._store.validated), newKey;
}
function validateChildKeys(node) {
isValidElement(node) ? node._store && (node._store.validated = 1) : typeof node == "object" && node !== null && node.$$typeof === REACT_LAZY_TYPE && (node._payload.status === "fulfilled" ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
}
function isValidElement(object) {
return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}
function escape2(key) {
var escaperLookup = { "=": "=0", ":": "=2" };
return "$" + key.replace(/[=:]/g, function(match) {
return escaperLookup[match];
});
}
function getElementKey(element, index) {
return typeof element == "object" && element !== null && element.key != null ? (checkKeyStringCoercion(element.key), escape2("" + element.key)) : index.toString(36);
}
function resolveThenable(thenable) {
switch (thenable.status) {
case "fulfilled":
return thenable.value;
case "rejected":
throw thenable.reason;
default:
switch (typeof thenable.status == "string" ? thenable.then(noop4, noop4) : (thenable.status = "pending", thenable.then(
function(fulfilledValue) {
thenable.status === "pending" && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
},
function(error) {
thenable.status === "pending" && (thenable.status = "rejected", thenable.reason = error);
}
)), thenable.status) {
case "fulfilled":
return thenable.value;
case "rejected":
throw thenable.reason;
}
}
throw thenable;
}
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
var type = typeof children;
(type === "undefined" || type === "boolean") && (children = null);
var invokeCallback = !1;
if (children === null) invokeCallback = !0;
else
switch (type) {
case "bigint":
case "string":
case "number":
invokeCallback = !0;
break;
case "object":
switch (children.$$typeof) {
case REACT_ELEMENT_TYPE:
case REACT_PORTAL_TYPE:
invokeCallback = !0;
break;
case REACT_LAZY_TYPE:
return invokeCallback = children._init, mapIntoArray(
invokeCallback(children._payload),
array,
escapedPrefix,
nameSoFar,
callback
);
}
}
if (invokeCallback) {
invokeCallback = children, callback = callback(invokeCallback);
var childKey = nameSoFar === "" ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
return isArrayImpl(callback) ? (escapedPrefix = "", childKey != null && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
return c;
})) : callback != null && (isValidElement(callback) && (callback.key != null && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
callback,
escapedPrefix + (callback.key == null || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
userProvidedKeyEscapeRegex,
"$&/"
) + "/") + childKey
), nameSoFar !== "" && invokeCallback != null && isValidElement(invokeCallback) && invokeCallback.key == null && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback)), 1;
}
if (invokeCallback = 0, childKey = nameSoFar === "" ? "." : nameSoFar + ":", isArrayImpl(children))
for (var i = 0; i < children.length; i++)
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
nameSoFar,
array,
escapedPrefix,
type,
callback
);
else if (i = getIteratorFn(children), typeof i == "function")
for (i === children.entries && (didWarnAboutMaps || console.warn(
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
), didWarnAboutMaps = !0), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
nameSoFar,
array,
escapedPrefix,
type,
callback
);
else if (type === "object") {
if (typeof children.then == "function")
return mapIntoArray(
resolveThenable(children),
array,
escapedPrefix,
nameSoFar,
callback
);
throw array = String(children), Error(
"Objects are not valid as a React child (found: " + (array === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
);
}
return invokeCallback;
}
function mapChildren(children, func, context) {
if (children == null) return children;
var result = [], count = 0;
return mapIntoArray(children, result, "", "", function(child) {
return func.call(context, child, count++);
}), result;
}
function lazyInitializer(payload) {
if (payload._status === -1) {
var ioInfo = payload._ioInfo;
ioInfo != null && (ioInfo.start = ioInfo.end = performance.now()), ioInfo = payload._result;
var thenable = ioInfo();
if (thenable.then(
function(moduleObject) {
if (payload._status === 0 || payload._status === -1) {
payload._status = 1, payload._result = moduleObject;
var _ioInfo = payload._ioInfo;
_ioInfo != null && (_ioInfo.end = performance.now()), thenable.status === void 0 && (thenable.status = "fulfilled", thenable.value = moduleObject);
}
},
function(error) {
if (payload._status === 0 || payload._status === -1) {
payload._status = 2, payload._result = error;
var _ioInfo2 = payload._ioInfo;
_ioInfo2 != null && (_ioInfo2.end = performance.now()), thenable.status === void 0 && (thenable.status = "rejected", thenable.reason = error);
}
}
), ioInfo = payload._ioInfo, ioInfo != null) {
ioInfo.value = thenable;
var displayName = thenable.displayName;
typeof displayName == "string" && (ioInfo.name = displayName);
}
payload._status === -1 && (payload._status = 0, payload._result = thenable);
}
if (payload._status === 1)
return ioInfo = payload._result, ioInfo === void 0 && console.error(
`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,
ioInfo
), "default" in ioInfo || console.error(
`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,
ioInfo
), ioInfo.default;
throw payload._result;
}
function resolveDispatcher() {
var dispatcher = ReactSharedInternals.H;
return dispatcher === null && console.error(
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
), dispatcher;
}
function releaseAsyncTransition() {
ReactSharedInternals.asyncTransitions--;
}
function enqueueTask(task) {
if (enqueueTaskImpl === null)
try {
var requireString = ("require" + Math.random()).slice(0, 7);
enqueueTaskImpl = (module && module[requireString]).call(
module,
"timers"
).setImmediate;
} catch {
enqueueTaskImpl = function(callback) {
didWarnAboutMessageChannel === !1 && (didWarnAboutMessageChannel = !0, typeof MessageChannel > "u" && console.error(
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
));
var channel = new MessageChannel();
channel.port1.onmessage = callback, channel.port2.postMessage(void 0);
};
}
return enqueueTaskImpl(task);
}
function aggregateErrors(errors) {
return 1 < errors.length && typeof AggregateError == "function" ? new AggregateError(errors) : errors[0];
}
function popActScope(prevActQueue, prevActScopeDepth) {
prevActScopeDepth !== actScopeDepth - 1 && console.error(
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
), actScopeDepth = prevActScopeDepth;
}
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
var queue = ReactSharedInternals.actQueue;
if (queue !== null)
if (queue.length !== 0)
try {
flushActQueue(queue), enqueueTask(function() {
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
});
return;
} catch (error) {
ReactSharedInternals.thrownErrors.push(error);
}
else ReactSharedInternals.actQueue = null;
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
}
function flushActQueue(queue) {
if (!isFlushing) {
isFlushing = !0;
var i = 0;
try {
for (; i < queue.length; i++) {
var callback = queue[i];
do {
ReactSharedInternals.didUsePromise = !1;
var continuation = callback(!1);
if (continuation !== null) {
if (ReactSharedInternals.didUsePromise) {
queue[i] = callback, queue.splice(0, i);
return;
}
callback = continuation;
} else break;
} while (!0);
}
queue.length = 0;
} catch (error) {
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
} finally {
isFlushing = !1;
}
}
}
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
isMounted: function() {
return !1;
},
enqueueForceUpdate: function(publicInstance) {
warnNoop(publicInstance, "forceUpdate");
},
enqueueReplaceState: function(publicInstance) {
warnNoop(publicInstance, "replaceState");
},
enqueueSetState: function(publicInstance) {
warnNoop(publicInstance, "setState");
}
}, assign = Object.assign, emptyObject = {};
Object.freeze(emptyObject), Component.prototype.isReactComponent = {}, Component.prototype.setState = function(partialState, callback) {
if (typeof partialState != "object" && typeof partialState != "function" && partialState != null)
throw Error(
"takes an object of state variables to update or a function which returns an object of state variables."
);
this.updater.enqueueSetState(this, partialState, callback, "setState");
}, Component.prototype.forceUpdate = function(callback) {
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
};
var deprecatedAPIs = {
isMounted: [
"isMounted",
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
],
replaceState: [
"replaceState",
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
]
};
for (fnName in deprecatedAPIs)
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
ComponentDummy.prototype = Component.prototype, deprecatedAPIs = PureComponent2.prototype = new ComponentDummy(), deprecatedAPIs.constructor = PureComponent2, assign(deprecatedAPIs, Component.prototype), deprecatedAPIs.isPureReactComponent = !0;
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
H: null,
A: null,
T: null,
S: null,
actQueue: null,
asyncTransitions: 0,
isBatchingLegacy: !1,
didScheduleLegacyUpdate: !1,
didUsePromise: !1,
thrownErrors: [],
getCurrentStack: null,
recentlyCreatedOwnerStacks: 0
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
return null;
};
deprecatedAPIs = {
react_stack_bottom_frame: function(callStackForError) {
return callStackForError();
}
};
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime, didWarnAboutElementRef = {}, unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
deprecatedAPIs,
UnknownOwner
)(), unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)), didWarnAboutMaps = !1, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = typeof reportError == "function" ? reportError : function(error) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var event = new window.ErrorEvent("error", {
bubbles: !0,
cancelable: !0,
message: typeof error == "object" && error !== null && typeof error.message == "string" ? String(error.message) : String(error),
error
});
if (!window.dispatchEvent(event)) return;
} else if (typeof process == "object" && typeof process.emit == "function") {
process.emit("uncaughtException", error);
return;
}
console.error(error);
}, didWarnAboutMessageChannel = !1, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = !1, isFlushing = !1, queueSeveralMicrotasks = typeof queueMicrotask == "function" ? function(callback) {
queueMicrotask(function() {
return queueMicrotask(callback);
});
} : enqueueTask;
deprecatedAPIs = Object.freeze({
__proto__: null,
c: function(size) {
return resolveDispatcher().useMemoCache(size);
}
});
var fnName = {
map: mapChildren,
forEach: function(children, forEachFunc, forEachContext) {
mapChildren(
children,
function() {
forEachFunc.apply(this, arguments);
},
forEachContext
);
},
count: function(children) {
var n = 0;
return mapChildren(children, function() {
n++;
}), n;
},
toArray: function(children) {
return mapChildren(children, function(child) {
return child;
}) || [];
},
only: function(children) {
if (!isValidElement(children))
throw Error(
"React.Children.only expected to receive a single React element child."
);
return children;
}
};
exports.Activity = REACT_ACTIVITY_TYPE, exports.Children = fnName, exports.Component = Component, exports.Fragment = REACT_FRAGMENT_TYPE, exports.Profiler = REACT_PROFILER_TYPE, exports.PureComponent = PureComponent2, exports.StrictMode = REACT_STRICT_MODE_TYPE, exports.Suspense = REACT_SUSPENSE_TYPE, exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals, exports.__COMPILER_RUNTIME = deprecatedAPIs, exports.act = function(callback) {
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
actScopeDepth++;
var queue = ReactSharedInternals.actQueue = prevActQueue !== null ? prevActQueue : [], didAwaitActCall = !1;
try {
var result = callback();
} catch (error) {
ReactSharedInternals.thrownErrors.push(error);
}
if (0 < ReactSharedInternals.thrownErrors.length)
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
if (result !== null && typeof result == "object" && typeof result.then == "function") {
var thenable = result;
return queueSeveralMicrotasks(function() {
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = !0, console.error(
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
));
}), {
then: function(resolve, reject) {
didAwaitActCall = !0, thenable.then(
function(returnValue) {
if (popActScope(prevActQueue, prevActScopeDepth), prevActScopeDepth === 0) {
try {
flushActQueue(queue), enqueueTask(function() {
return recursivelyFlushAsyncActWork(
returnValue,
resolve,
reject
);
});
} catch (error$0) {
ReactSharedInternals.thrownErrors.push(error$0);
}
if (0 < ReactSharedInternals.thrownErrors.length) {
var _thrownError = aggregateErrors(
ReactSharedInternals.thrownErrors
);
ReactSharedInternals.thrownErrors.length = 0, reject(_thrownError);
}
} else resolve(returnValue);
},
function(error) {
popActScope(prevActQueue, prevActScopeDepth), 0 < ReactSharedInternals.thrownErrors.length && (error = aggregateErrors(
ReactSharedInternals.thrownErrors
), ReactSharedInternals.thrownErrors.length = 0), reject(error);
}
);
}
};
}
var returnValue$jscomp$0 = result;
if (popActScope(prevActQueue, prevActScopeDepth), prevActScopeDepth === 0 && (flushActQueue(queue), queue.length !== 0 && queueSeveralMicrotasks(function() {
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = !0, console.error(
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
));
}), ReactSharedInternals.actQueue = null), 0 < ReactSharedInternals.thrownErrors.length)
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
return {
then: function(resolve, reject) {
didAwaitActCall = !0, prevActScopeDepth === 0 ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
return recursivelyFlushAsyncActWork(
returnValue$jscomp$0,
resolve,
reject
);
})) : resolve(returnValue$jscomp$0);
}
};
}, exports.cache = function(fn) {
return function() {
return fn.apply(null, arguments);
};
}, exports.cacheSignal = function() {
return null;
}, exports.captureOwnerStack = function() {
var getCurrentStack = ReactSharedInternals.getCurrentStack;
return getCurrentStack === null ? null : getCurrentStack();
}, exports.cloneElement = function(element, config, children) {
if (element == null)
throw Error(
"The argument must be a React element, but you passed " + element + "."
);
var props = assign({}, element.props), key = element.key, owner = element._owner;
if (config != null) {
var JSCompiler_inline_result;
a: {
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
config,
"ref"
).get) && JSCompiler_inline_result.isReactWarning) {
JSCompiler_inline_result = !1;
break a;
}
JSCompiler_inline_result = config.ref !== void 0;
}
JSCompiler_inline_result && (owner = getOwner()), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
for (propName in config)
!hasOwnProperty.call(config, propName) || propName === "key" || propName === "__self" || propName === "__source" || propName === "ref" && config.ref === void 0 || (props[propName] = config[propName]);
}
var propName = arguments.length - 2;
if (propName === 1) props.children = children;
else if (1 < propName) {
JSCompiler_inline_result = Array(propName);
for (var i = 0; i < propName; i++)
JSCompiler_inline_result[i] = arguments[i + 2];
props.children = JSCompiler_inline_result;
}
for (props = ReactElement(
element.type,
key,
props,
owner,
element._debugStack,
element._debugTask
), key = 2; key < arguments.length; key++)
validateChildKeys(arguments[key]);
return props;
}, exports.createContext = function(defaultValue) {
return defaultValue = {
$$typeof: REACT_CONTEXT_TYPE,
_currentValue: defaultValue,
_currentValue2: defaultValue,
_threadCount: 0,
Provider: null,
Consumer: null
}, defaultValue.Provider = defaultValue, defaultValue.Consumer = {
$$typeof: REACT_CONSUMER_TYPE,
_context: defaultValue
}, defaultValue._currentRenderer = null, defaultValue._currentRenderer2 = null, defaultValue;
}, exports.createElement = function(type, config, children) {
for (var i = 2; i < arguments.length; i++)
validateChildKeys(arguments[i]);
i = {};
var key = null;
if (config != null)
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = !0, console.warn(
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
hasOwnProperty.call(config, propName) && propName !== "key" && propName !== "__self" && propName !== "__source" && (i[propName] = config[propName]);
var childrenLength = arguments.length - 2;
if (childrenLength === 1) i.children = children;
else if (1 < childrenLength) {
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
childArray[_i] = arguments[_i + 2];
Object.freeze && Object.freeze(childArray), i.children = childArray;
}
if (type && type.defaultProps)
for (propName in childrenLength = type.defaultProps, childrenLength)
i[propName] === void 0 && (i[propName] = childrenLength[propName]);
key && defineKeyPropWarningGetter(
i,
typeof type == "function" ? type.displayName || type.name || "Unknown" : type
);
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
return ReactElement(
type,
key,
i,
getOwner(),
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
);
}, exports.createRef = function() {
var refObject = { current: null };
return Object.seal(refObject), refObject;
}, exports.forwardRef = function(render3) {
render3 != null && render3.$$typeof === REACT_MEMO_TYPE ? console.error(
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
) : typeof render3 != "function" ? console.error(
"forwardRef requires a render function but was given %s.",
render3 === null ? "null" : typeof render3
) : render3.length !== 0 && render3.length !== 2 && console.error(
"forwardRef render functions accept exactly two parameters: props and ref. %s",
render3.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
), render3 != null && render3.defaultProps != null && console.error(
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
);
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render3 }, ownName;
return Object.defineProperty(elementType, "displayName", {
enumerable: !1,
configurable: !0,
get: function() {
return ownName;
},
set: function(name) {
ownName = name, render3.name || render3.displayName || (Object.defineProperty(render3, "name", { value: name }), render3.displayName = name);
}
}), elementType;
}, exports.isValidElement = isValidElement, exports.lazy = function(ctor) {
ctor = { _status: -1, _result: ctor };
var lazyType = {
$$typeof: REACT_LAZY_TYPE,
_payload: ctor,
_init: lazyInitializer
}, ioInfo = {
name: "lazy",
start: -1,
end: -1,
value: null,
owner: null,
debugStack: Error("react-stack-top-frame"),
debugTask: console.createTask ? console.createTask("lazy()") : null
};
return ctor._ioInfo = ioInfo, lazyType._debugInfo = [{ awaited: ioInfo }], lazyType;
}, exports.memo = function(type, compare) {
type == null && console.error(
"memo: The first argument must be a component. Instead received: %s",
type === null ? "null" : typeof type
), compare = {
$$typeof: REACT_MEMO_TYPE,
type,
compare: compare === void 0 ? null : compare
};
var ownName;
return Object.defineProperty(compare, "displayName", {
enumerable: !1,
configurable: !0,
get: function() {
return ownName;
},
set: function(name) {
ownName = name, type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
}
}), compare;
}, exports.startTransition = function(scope) {
var prevTransition = ReactSharedInternals.T, currentTransition = {};
currentTransition._updatedFibers = /* @__PURE__ */ new Set(), ReactSharedInternals.T = currentTransition;
try {
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue), typeof returnValue == "object" && returnValue !== null && typeof returnValue.then == "function" && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop4, reportGlobalError));
} catch (error) {
reportGlobalError(error);
} finally {
prevTransition === null && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
)), prevTransition !== null && currentTransition.types !== null && (prevTransition.types !== null && prevTransition.types !== currentTransition.types && console.error(
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
}
}, exports.unstable_useCacheRefresh = function() {
return resolveDispatcher().useCacheRefresh();
}, exports.use = function(usable) {
return resolveDispatcher().use(usable);
}, exports.useActionState = function(action, initialState, permalink) {
return resolveDispatcher().useActionState(
action,
initialState,
permalink
);
}, exports.useCallback = function(callback, deps) {
return resolveDispatcher().useCallback(callback, deps);
}, exports.useContext = function(Context) {
var dispatcher = resolveDispatcher();
return Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
), dispatcher.useContext(Context);
}, exports.useDebugValue = function(value, formatterFn) {
return resolveDispatcher().useDebugValue(value, formatterFn);
}, exports.useDeferredValue = function(value, initialValue) {
return resolveDispatcher().useDeferredValue(value, initialValue);
}, exports.useEffect = function(create3, deps) {
return create3 == null && console.warn(
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
), resolveDispatcher().useEffect(create3, deps);
}, exports.useEffectEvent = function(callback) {
return resolveDispatcher().useEffectEvent(callback);
}, exports.useId = function() {
return resolveDispatcher().useId();
}, exports.useImperativeHandle = function(ref, create3, deps) {
return resolveDispatcher().useImperativeHandle(ref, create3, deps);
}, exports.useInsertionEffect = function(create3, deps) {
return create3 == null && console.warn(
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
), resolveDispatcher().useInsertionEffect(create3, deps);
}, exports.useLayoutEffect = function(create3, deps) {
return create3 == null && console.warn(
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
), resolveDispatcher().useLayoutEffect(create3, deps);
}, exports.useMemo = function(create3, deps) {
return resolveDispatcher().useMemo(create3, deps);
}, exports.useOptimistic = function(passthrough, reducer2) {
return resolveDispatcher().useOptimistic(passthrough, reducer2);
}, exports.useReducer = function(reducer2, initialArg, init) {
return resolveDispatcher().useReducer(reducer2, initialArg, init);
}, exports.useRef = function(initialValue) {
return resolveDispatcher().useRef(initialValue);
}, exports.useState = function(initialState) {
return resolveDispatcher().useState(initialState);
}, exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
return resolveDispatcher().useSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
}, exports.useTransition = function() {
return resolveDispatcher().useTransition();
}, exports.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
})();
}
});
// ../../node_modules/.pnpm/react@19.2.4/node_modules/react/index.js
var require_react = __commonJS({
"../../node_modules/.pnpm/react@19.2.4/node_modules/react/index.js"(exports, module) {
"use strict";
init_cjs_shims();
process.env.NODE_ENV === "production" ? module.exports = require_react_production() : module.exports = require_react_development();
}
});
// ../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js
var require_react_reconciler_constants_production = __commonJS({
"../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js"(exports) {
"use strict";
init_cjs_shims();
exports.ConcurrentRoot = 1;
exports.ContinuousEventPriority = 8;
exports.DefaultEventPriority = 32;
exports.DiscreteEventPriority = 2;
exports.IdleEventPriority = 268435456;
exports.LegacyRoot = 0;
exports.NoEventPriority = 0;
}
});
// ../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js
var require_react_reconciler_constants_development = __commonJS({
"../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js"(exports) {
"use strict";
init_cjs_shims();
process.env.NODE_ENV !== "production" && (exports.ConcurrentRoot = 1, exports.ContinuousEventPriority = 8, exports.DefaultEventPriority = 32, exports.DiscreteEventPriority = 2, exports.IdleEventPriority = 268435456, exports.LegacyRoot = 0, exports.NoEventPriority = 0);
}
});
// ../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/constants.js
var require_constants = __commonJS({
"../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/constants.js"(exports, module) {
"use strict";
init_cjs_shims();
process.env.NODE_ENV === "production" ? module.exports = require_react_reconciler_constants_production() : module.exports = require_react_reconciler_constants_development();
}
});
// ../../node_modules/.pnpm/emoji-regex@10.6.0/node_modules/emoji-regex/index.js
var require_emoji_regex = __commonJS({
"../../node_modules/.pnpm/emoji-regex@10.6.0/node_modules/emoji-regex/index.js"(exports, module) {
init_cjs_shims();
module.exports = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21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DE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
}
});
// ../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js
var require_scheduler_production = __commonJS({
"../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js"(exports) {
"use strict";
init_cjs_shims();
function push(heap, node) {
var index = heap.length;
heap.push(node);
a: for (; 0 < index; ) {
var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
if (0 < compare(parent, node))
heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
else break a;
}
}
function peek(heap) {
return heap.length === 0 ? null : heap[0];
}
function pop(heap) {
if (heap.length === 0) return null;
var first = heap[0], last = heap.pop();
if (last !== first) {
heap[0] = last;
a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
if (0 > compare(left, last))
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
else if (rightIndex < length && 0 > compare(right, last))
heap[index] = right, heap[rightIndex] = last, index = rightIndex;
else break a;
}
}
return first;
}
function compare(a, b) {
var diff2 = a.sortIndex - b.sortIndex;
return diff2 !== 0 ? diff2 : a.id - b.id;
}
exports.unstable_now = void 0;
typeof performance == "object" && typeof performance.now == "function" ? (localPerformance = performance, exports.unstable_now = function() {
return localPerformance.now();
}) : (localDate = Date, initialTime = localDate.now(), exports.unstable_now = function() {
return localDate.now() - initialTime;
});
var localPerformance, localDate, initialTime, taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = !1, isHostCallbackScheduled = !1, isHostTimeoutScheduled = !1, needsPaint = !1, localSetTimeout = typeof setTimeout == "function" ? setTimeout : null, localClearTimeout = typeof clearTimeout == "function" ? clearTimeout : null, localSetImmediate = typeof setImmediate < "u" ? setImmediate : null;
function advanceTimers(currentTime2) {
for (var timer = peek(timerQueue); timer !== null; ) {
if (timer.callback === null) pop(timerQueue);
else if (timer.startTime <= currentTime2)
pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
else break;
timer = peek(timerQueue);
}
}
function handleTimeout(currentTime2) {
if (isHostTimeoutScheduled = !1, advanceTimers(currentTime2), !isHostCallbackScheduled)
if (peek(taskQueue) !== null)
isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline());
else {
var firstTimer = peek(timerQueue);
firstTimer !== null && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime2);
}
}
var isMessageLoopRunning = !1, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
function shouldYieldToHost() {
return needsPaint ? !0 : !(exports.unstable_now() - startTime < frameInterval);
}
function performWorkUntilDeadline() {
if (needsPaint = !1, isMessageLoopRunning) {
var currentTime2 = exports.unstable_now();
startTime = currentTime2;
var hasMoreWork = !0;
try {
a: {
isHostCallbackScheduled = !1, isHostTimeoutScheduled && (isHostTimeoutScheduled = !1, localClearTimeout(taskTimeoutID), taskTimeoutID = -1), isPerformingWork = !0;
var previousPriorityLevel = currentPriorityLevel;
try {
b: {
for (advanceTimers(currentTime2), currentTask = peek(taskQueue); currentTask !== null && !(currentTask.expirationTime > currentTime2 && shouldYieldToHost()); ) {
var callback = currentTask.callback;
if (typeof callback == "function") {
currentTask.callback = null, currentPriorityLevel = currentTask.priorityLevel;
var continuationCallback = callback(
currentTask.expirationTime <= currentTime2
);
if (currentTime2 = exports.unstable_now(), typeof continuationCallback == "function") {
currentTask.callback = continuationCallback, advanceTimers(currentTime2), hasMoreWork = !0;
break b;
}
currentTask === peek(taskQueue) && pop(taskQueue), advanceTimers(currentTime2);
} else pop(taskQueue);
currentTask = peek(taskQueue);
}
if (currentTask !== null) hasMoreWork = !0;
else {
var firstTimer = peek(timerQueue);
firstTimer !== null && requestHostTimeout(
handleTimeout,
firstTimer.startTime - currentTime2
), hasMoreWork = !1;
}
}
break a;
} finally {
currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = !1;
}
hasMoreWork = void 0;
}
} finally {
hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = !1;
}
}
}
var schedulePerformWorkUntilDeadline;
typeof localSetImmediate == "function" ? schedulePerformWorkUntilDeadline = function() {
localSetImmediate(performWorkUntilDeadline);
} : typeof MessageChannel < "u" ? (channel = new MessageChannel(), port = channel.port2, channel.port1.onmessage = performWorkUntilDeadline, schedulePerformWorkUntilDeadline = function() {
port.postMessage(null);
}) : schedulePerformWorkUntilDeadline = function() {
localSetTimeout(performWorkUntilDeadline, 0);
};
var channel, port;
function requestHostTimeout(callback, ms) {
taskTimeoutID = localSetTimeout(function() {
callback(exports.unstable_now());
}, ms);
}
exports.unstable_IdlePriority = 5;
exports.unstable_ImmediatePriority = 1;
exports.unstable_LowPriority = 4;
exports.unstable_NormalPriority = 3;
exports.unstable_Profiling = null;
exports.unstable_UserBlockingPriority = 2;
exports.unstable_cancelCallback = function(task) {
task.callback = null;
};
exports.unstable_forceFrameRate = function(fps) {
0 > fps || 125 < fps ? console.error(
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
};
exports.unstable_getCurrentPriorityLevel = function() {
return currentPriorityLevel;
};
exports.unstable_next = function(eventHandler) {
switch (currentPriorityLevel) {
case 1:
case 2:
case 3:
var priorityLevel = 3;
break;
default:
priorityLevel = currentPriorityLevel;
}
var previousPriorityLevel = currentPriorityLevel;
currentPriorityLevel = priorityLevel;
try {
return eventHandler();
} finally {
currentPriorityLevel = previousPriorityLevel;
}
};
exports.unstable_requestPaint = function() {
needsPaint = !0;
};
exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
switch (priorityLevel) {
case 1:
case 2:
case 3:
case 4:
case 5:
break;
default:
priorityLevel = 3;
}
var previousPriorityLevel = currentPriorityLevel;
currentPriorityLevel = priorityLevel;
try {
return eventHandler();
} finally {
currentPriorityLevel = previousPriorityLevel;
}
};
exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
var currentTime2 = exports.unstable_now();
switch (typeof options == "object" && options !== null ? (options = options.delay, options = typeof options == "number" && 0 < options ? currentTime2 + options : currentTime2) : options = currentTime2, priorityLevel) {
case 1:
var timeout = -1;
break;
case 2:
timeout = 250;
break;
case 5:
timeout = 1073741823;
break;
case 4:
timeout = 1e4;
break;
default:
timeout = 5e3;
}
return timeout = options + timeout, priorityLevel = {
id: taskIdCounter++,
callback,
priorityLevel,
startTime: options,
expirationTime: timeout,
sortIndex: -1
}, options > currentTime2 ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), peek(taskQueue) === null && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = !0, requestHostTimeout(handleTimeout, options - currentTime2))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline()))), priorityLevel;
};
exports.unstable_shouldYield = shouldYieldToHost;
exports.unstable_wrapCallback = function(callback) {
var parentPriorityLevel = currentPriorityLevel;
return function() {
var previousPriorityLevel = currentPriorityLevel;
currentPriorityLevel = parentPriorityLevel;
try {
return callback.apply(this, arguments);
} finally {
currentPriorityLevel = previousPriorityLevel;
}
};
};
}
});
// ../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js
var require_scheduler_development = __commonJS({
"../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js"(exports) {
"use strict";
init_cjs_shims();
process.env.NODE_ENV !== "production" && (function() {
function performWorkUntilDeadline() {
if (needsPaint = !1, isMessageLoopRunning) {
var currentTime2 = exports.unstable_now();
startTime = currentTime2;
var hasMoreWork = !0;
try {
a: {
isHostCallbackScheduled = !1, isHostTimeoutScheduled && (isHostTimeoutScheduled = !1, localClearTimeout(taskTimeoutID), taskTimeoutID = -1), isPerformingWork = !0;
var previousPriorityLevel = currentPriorityLevel;
try {
b: {
for (advanceTimers(currentTime2), currentTask = peek(taskQueue); currentTask !== null && !(currentTask.expirationTime > currentTime2 && shouldYieldToHost()); ) {
var callback = currentTask.callback;
if (typeof callback == "function") {
currentTask.callback = null, currentPriorityLevel = currentTask.priorityLevel;
var continuationCallback = callback(
currentTask.expirationTime <= currentTime2
);
if (currentTime2 = exports.unstable_now(), typeof continuationCallback == "function") {
currentTask.callback = continuationCallback, advanceTimers(currentTime2), hasMoreWork = !0;
break b;
}
currentTask === peek(taskQueue) && pop(taskQueue), advanceTimers(currentTime2);
} else pop(taskQueue);
currentTask = peek(taskQueue);
}
if (currentTask !== null) hasMoreWork = !0;
else {
var firstTimer = peek(timerQueue);
firstTimer !== null && requestHostTimeout(
handleTimeout,
firstTimer.startTime - currentTime2
), hasMoreWork = !1;
}
}
break a;
} finally {
currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = !1;
}
hasMoreWork = void 0;
}
} finally {
hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = !1;
}
}
}
function push(heap, node) {
var index = heap.length;
heap.push(node);
a: for (; 0 < index; ) {
var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
if (0 < compare(parent, node))
heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
else break a;
}
}
function peek(heap) {
return heap.length === 0 ? null : heap[0];
}
function pop(heap) {
if (heap.length === 0) return null;
var first = heap[0], last = heap.pop();
if (last !== first) {
heap[0] = last;
a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
if (0 > compare(left, last))
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
else if (rightIndex < length && 0 > compare(right, last))
heap[index] = right, heap[rightIndex] = last, index = rightIndex;
else break a;
}
}
return first;
}
function compare(a, b) {
var diff2 = a.sortIndex - b.sortIndex;
return diff2 !== 0 ? diff2 : a.id - b.id;
}
function advanceTimers(currentTime2) {
for (var timer = peek(timerQueue); timer !== null; ) {
if (timer.callback === null) pop(timerQueue);
else if (timer.startTime <= currentTime2)
pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
else break;
timer = peek(timerQueue);
}
}
function handleTimeout(currentTime2) {
if (isHostTimeoutScheduled = !1, advanceTimers(currentTime2), !isHostCallbackScheduled)
if (peek(taskQueue) !== null)
isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline());
else {
var firstTimer = peek(timerQueue);
firstTimer !== null && requestHostTimeout(
handleTimeout,
firstTimer.startTime - currentTime2
);
}
}
function shouldYieldToHost() {
return needsPaint ? !0 : !(exports.unstable_now() - startTime < frameInterval);
}
function requestHostTimeout(callback, ms) {
taskTimeoutID = localSetTimeout(function() {
callback(exports.unstable_now());
}, ms);
}
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()), exports.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
var localPerformance = performance;
exports.unstable_now = function() {
return localPerformance.now();
};
} else {
var localDate = Date, initialTime = localDate.now();
exports.unstable_now = function() {
return localDate.now() - initialTime;
};
}
var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = !1, isHostCallbackScheduled = !1, isHostTimeoutScheduled = !1, needsPaint = !1, localSetTimeout = typeof setTimeout == "function" ? setTimeout : null, localClearTimeout = typeof clearTimeout == "function" ? clearTimeout : null, localSetImmediate = typeof setImmediate < "u" ? setImmediate : null, isMessageLoopRunning = !1, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
if (typeof localSetImmediate == "function")
var schedulePerformWorkUntilDeadline = function() {
localSetImmediate(performWorkUntilDeadline);
};
else if (typeof MessageChannel < "u") {
var channel = new MessageChannel(), port = channel.port2;
channel.port1.onmessage = performWorkUntilDeadline, schedulePerformWorkUntilDeadline = function() {
port.postMessage(null);
};
} else
schedulePerformWorkUntilDeadline = function() {
localSetTimeout(performWorkUntilDeadline, 0);
};
exports.unstable_IdlePriority = 5, exports.unstable_ImmediatePriority = 1, exports.unstable_LowPriority = 4, exports.unstable_NormalPriority = 3, exports.unstable_Profiling = null, exports.unstable_UserBlockingPriority = 2, exports.unstable_cancelCallback = function(task) {
task.callback = null;
}, exports.unstable_forceFrameRate = function(fps) {
0 > fps || 125 < fps ? console.error(
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
}, exports.unstable_getCurrentPriorityLevel = function() {
return currentPriorityLevel;
}, exports.unstable_next = function(eventHandler) {
switch (currentPriorityLevel) {
case 1:
case 2:
case 3:
var priorityLevel = 3;
break;
default:
priorityLevel = currentPriorityLevel;
}
var previousPriorityLevel = currentPriorityLevel;
currentPriorityLevel = priorityLevel;
try {
return eventHandler();
} finally {
currentPriorityLevel = previousPriorityLevel;
}
}, exports.unstable_requestPaint = function() {
needsPaint = !0;
}, exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
switch (priorityLevel) {
case 1:
case 2:
case 3:
case 4:
case 5:
break;
default:
priorityLevel = 3;
}
var previousPriorityLevel = currentPriorityLevel;
currentPriorityLevel = priorityLevel;
try {
return eventHandler();
} finally {
currentPriorityLevel = previousPriorityLevel;
}
}, exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
var currentTime2 = exports.unstable_now();
switch (typeof options == "object" && options !== null ? (options = options.delay, options = typeof options == "number" && 0 < options ? currentTime2 + options : currentTime2) : options = currentTime2, priorityLevel) {
case 1:
var timeout = -1;
break;
case 2:
timeout = 250;
break;
case 5:
timeout = 1073741823;
break;
case 4:
timeout = 1e4;
break;
default:
timeout = 5e3;
}
return timeout = options + timeout, priorityLevel = {
id: taskIdCounter++,
callback,
priorityLevel,
startTime: options,
expirationTime: timeout,
sortIndex: -1
}, options > currentTime2 ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), peek(taskQueue) === null && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = !0, requestHostTimeout(handleTimeout, options - currentTime2))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline()))), priorityLevel;
}, exports.unstable_shouldYield = shouldYieldToHost, exports.unstable_wrapCallback = function(callback) {
var parentPriorityLevel = currentPriorityLevel;
return function() {
var previousPriorityLevel = currentPriorityLevel;
currentPriorityLevel = parentPriorityLevel;
try {
return callback.apply(this, arguments);
} finally {
currentPriorityLevel = previousPriorityLevel;
}
};
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
})();
}
});
// ../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js
var require_scheduler = __commonJS({
"../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js"(exports, module) {
"use strict";
init_cjs_shims();
process.env.NODE_ENV === "production" ? module.exports = require_scheduler_production() : module.exports = require_scheduler_development();
}
});
// ../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/cjs/react-reconciler.production.js
var require_react_reconciler_production = __commonJS({
"../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/cjs/react-reconciler.production.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = function($$$config) {
function createFiber(tag, pendingProps, key, mode) {
return new FiberNode(tag, pendingProps, key, mode);
}
function noop4() {
}
function formatProdErrorMessage(code) {
var url = "https://react.dev/errors/" + code;
if (1 < arguments.length) {
url += "?args[]=" + encodeURIComponent(arguments[1]);
for (var i = 2; i < arguments.length; i++)
url += "&args[]=" + encodeURIComponent(arguments[i]);
}
return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
function getNearestMountedFiber(fiber) {
var node = fiber, nearestMounted = fiber;
if (fiber.alternate) for (; node.return; ) node = node.return;
else {
fiber = node;
do
node = fiber, (node.flags & 4098) !== 0 && (nearestMounted = node.return), fiber = node.return;
while (fiber);
}
return node.tag === 3 ? nearestMounted : null;
}
function assertIsMounted(fiber) {
if (getNearestMountedFiber(fiber) !== fiber)
throw Error(formatProdErrorMessage(188));
}
function findCurrentFiberUsingSlowPath(fiber) {
var alternate = fiber.alternate;
if (!alternate) {
if (alternate = getNearestMountedFiber(fiber), alternate === null) throw Error(formatProdErrorMessage(188));
return alternate !== fiber ? null : fiber;
}
for (var a = fiber, b = alternate; ; ) {
var parentA = a.return;
if (parentA === null) break;
var parentB = parentA.alternate;
if (parentB === null) {
if (b = parentA.return, b !== null) {
a = b;
continue;
}
break;
}
if (parentA.child === parentB.child) {
for (parentB = parentA.child; parentB; ) {
if (parentB === a) return assertIsMounted(parentA), fiber;
if (parentB === b) return assertIsMounted(parentA), alternate;
parentB = parentB.sibling;
}
throw Error(formatProdErrorMessage(188));
}
if (a.return !== b.return) a = parentA, b = parentB;
else {
for (var didFindChild = !1, child$0 = parentA.child; child$0; ) {
if (child$0 === a) {
didFindChild = !0, a = parentA, b = parentB;
break;
}
if (child$0 === b) {
didFindChild = !0, b = parentA, a = parentB;
break;
}
child$0 = child$0.sibling;
}
if (!didFindChild) {
for (child$0 = parentB.child; child$0; ) {
if (child$0 === a) {
didFindChild = !0, a = parentB, b = parentA;
break;
}
if (child$0 === b) {
didFindChild = !0, b = parentB, a = parentA;
break;
}
child$0 = child$0.sibling;
}
if (!didFindChild) throw Error(formatProdErrorMessage(189));
}
}
if (a.alternate !== b) throw Error(formatProdErrorMessage(190));
}
if (a.tag !== 3) throw Error(formatProdErrorMessage(188));
return a.stateNode.current === a ? fiber : alternate;
}
function findCurrentHostFiberImpl(node) {
var tag = node.tag;
if (tag === 5 || tag === 26 || tag === 27 || tag === 6) return node;
for (node = node.child; node !== null; ) {
if (tag = findCurrentHostFiberImpl(node), tag !== null) return tag;
node = node.sibling;
}
return null;
}
function findCurrentHostFiberWithNoPortalsImpl(node) {
var tag = node.tag;
if (tag === 5 || tag === 26 || tag === 27 || tag === 6) return node;
for (node = node.child; node !== null; ) {
if (node.tag !== 4 && (tag = findCurrentHostFiberWithNoPortalsImpl(node), tag !== null))
return tag;
node = node.sibling;
}
return null;
}
function getIteratorFn(maybeIterable) {
return maybeIterable === null || typeof maybeIterable != "object" ? null : (maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"], typeof maybeIterable == "function" ? maybeIterable : null);
}
function getComponentNameFromType(type) {
if (type == null) return null;
if (typeof type == "function")
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
if (typeof type == "string") return type;
switch (type) {
case REACT_FRAGMENT_TYPE:
return "Fragment";
case REACT_PROFILER_TYPE:
return "Profiler";
case REACT_STRICT_MODE_TYPE:
return "StrictMode";
case REACT_SUSPENSE_TYPE:
return "Suspense";
case REACT_SUSPENSE_LIST_TYPE:
return "SuspenseList";
case REACT_ACTIVITY_TYPE:
return "Activity";
}
if (typeof type == "object")
switch (type.$$typeof) {
case REACT_PORTAL_TYPE:
return "Portal";
case REACT_CONTEXT_TYPE:
return type.displayName || "Context";
case REACT_CONSUMER_TYPE:
return (type._context.displayName || "Context") + ".Consumer";
case REACT_FORWARD_REF_TYPE:
var innerType = type.render;
return type = type.displayName, type || (type = innerType.displayName || innerType.name || "", type = type !== "" ? "ForwardRef(" + type + ")" : "ForwardRef"), type;
case REACT_MEMO_TYPE:
return innerType = type.displayName || null, innerType !== null ? innerType : getComponentNameFromType(type.type) || "Memo";
case REACT_LAZY_TYPE:
innerType = type._payload, type = type._init;
try {
return getComponentNameFromType(type(innerType));
} catch {
}
}
return null;
}
function createCursor(defaultValue) {
return { current: defaultValue };
}
function pop(cursor) {
0 > index$jscomp$0 || (cursor.current = valueStack[index$jscomp$0], valueStack[index$jscomp$0] = null, index$jscomp$0--);
}
function push(cursor, value) {
index$jscomp$0++, valueStack[index$jscomp$0] = cursor.current, cursor.current = value;
}
function clz32Fallback(x) {
return x >>>= 0, x === 0 ? 32 : 31 - (log$1(x) / LN2 | 0) | 0;
}
function getHighestPriorityLanes(lanes) {
var pendingSyncLanes = lanes & 42;
if (pendingSyncLanes !== 0) return pendingSyncLanes;
switch (lanes & -lanes) {
case 1:
return 1;
case 2:
return 2;
case 4:
return 4;
case 8:
return 8;
case 16:
return 16;
case 32:
return 32;
case 64:
return 64;
case 128:
return 128;
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
return lanes & 261888;
case 262144:
case 524288:
case 1048576:
case 2097152:
return lanes & 3932160;
case 4194304:
case 8388608:
case 16777216:
case 33554432:
return lanes & 62914560;
case 67108864:
return 67108864;
case 134217728:
return 134217728;
case 268435456:
return 268435456;
case 536870912:
return 536870912;
case 1073741824:
return 0;
default:
return lanes;
}
}
function getNextLanes(root, wipLanes, rootHasPendingCommit) {
var pendingLanes = root.pendingLanes;
if (pendingLanes === 0) return 0;
var nextLanes = 0, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes;
root = root.warmLanes;
var nonIdlePendingLanes = pendingLanes & 134217727;
return nonIdlePendingLanes !== 0 ? (pendingLanes = nonIdlePendingLanes & ~suspendedLanes, pendingLanes !== 0 ? nextLanes = getHighestPriorityLanes(pendingLanes) : (pingedLanes &= nonIdlePendingLanes, pingedLanes !== 0 ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = nonIdlePendingLanes & ~root, rootHasPendingCommit !== 0 && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))))) : (nonIdlePendingLanes = pendingLanes & ~suspendedLanes, nonIdlePendingLanes !== 0 ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : pingedLanes !== 0 ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = pendingLanes & ~root, rootHasPendingCommit !== 0 && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))), nextLanes === 0 ? 0 : wipLanes !== 0 && wipLanes !== nextLanes && (wipLanes & suspendedLanes) === 0 && (suspendedLanes = nextLanes & -nextLanes, rootHasPendingCommit = wipLanes & -wipLanes, suspendedLanes >= rootHasPendingCommit || suspendedLanes === 32 && (rootHasPendingCommit & 4194048) !== 0) ? wipLanes : nextLanes;
}
function checkIfRootIsPrerendering(root, renderLanes2) {
return (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & renderLanes2) === 0;
}
function computeExpirationTime(lane, currentTime2) {
switch (lane) {
case 1:
case 2:
case 4:
case 8:
case 64:
return currentTime2 + 250;
case 16:
case 32:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
return currentTime2 + 5e3;
case 4194304:
case 8388608:
case 16777216:
case 33554432:
return -1;
case 67108864:
case 134217728:
case 268435456:
case 536870912:
case 1073741824:
return -1;
default:
return -1;
}
}
function claimNextRetryLane() {
var lane = nextRetryLane;
return nextRetryLane <<= 1, (nextRetryLane & 62914560) === 0 && (nextRetryLane = 4194304), lane;
}
function createLaneMap(initial) {
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
return laneMap;
}
function markRootUpdated$1(root, updateLane) {
root.pendingLanes |= updateLane, updateLane !== 268435456 && (root.suspendedLanes = 0, root.pingedLanes = 0, root.warmLanes = 0);
}
function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane, updatedLanes, suspendedRetryLanes) {
var previouslyPendingLanes = root.pendingLanes;
root.pendingLanes = remainingLanes, root.suspendedLanes = 0, root.pingedLanes = 0, root.warmLanes = 0, root.expiredLanes &= remainingLanes, root.entangledLanes &= remainingLanes, root.errorRecoveryDisabledLanes &= remainingLanes, root.shellSuspendCounter = 0;
var entanglements = root.entanglements, expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates;
for (remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) {
var index$5 = 31 - clz32(remainingLanes), lane = 1 << index$5;
entanglements[index$5] = 0, expirationTimes[index$5] = -1;
var hiddenUpdatesForLane = hiddenUpdates[index$5];
if (hiddenUpdatesForLane !== null)
for (hiddenUpdates[index$5] = null, index$5 = 0; index$5 < hiddenUpdatesForLane.length; index$5++) {
var update = hiddenUpdatesForLane[index$5];
update !== null && (update.lane &= -536870913);
}
remainingLanes &= ~lane;
}
spawnedLane !== 0 && markSpawnedDeferredLane(root, spawnedLane, 0), suspendedRetryLanes !== 0 && updatedLanes === 0 && root.tag !== 0 && (root.suspendedLanes |= suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
}
function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
root.pendingLanes |= spawnedLane, root.suspendedLanes &= ~spawnedLane;
var spawnedLaneIndex = 31 - clz32(spawnedLane);
root.entangledLanes |= spawnedLane, root.entanglements[spawnedLaneIndex] = root.entanglements[spawnedLaneIndex] | 1073741824 | entangledLanes & 261930;
}
function markRootEntangled(root, entangledLanes) {
var rootEntangledLanes = root.entangledLanes |= entangledLanes;
for (root = root.entanglements; rootEntangledLanes; ) {
var index$6 = 31 - clz32(rootEntangledLanes), lane = 1 << index$6;
lane & entangledLanes | root[index$6] & entangledLanes && (root[index$6] |= entangledLanes), rootEntangledLanes &= ~lane;
}
}
function getBumpedLaneForHydration(root, renderLanes2) {
var renderLane = renderLanes2 & -renderLanes2;
return renderLane = (renderLane & 42) !== 0 ? 1 : getBumpedLaneForHydrationByLane(renderLane), (renderLane & (root.suspendedLanes | renderLanes2)) !== 0 ? 0 : renderLane;
}
function getBumpedLaneForHydrationByLane(lane) {
switch (lane) {
case 2:
lane = 1;
break;
case 8:
lane = 4;
break;
case 32:
lane = 16;
break;
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
case 4194304:
case 8388608:
case 16777216:
case 33554432:
lane = 128;
break;
case 268435456:
lane = 134217728;
break;
default:
lane = 0;
}
return lane;
}
function lanesToEventPriority(lanes) {
return lanes &= -lanes, 2 < lanes ? 8 < lanes ? (lanes & 134217727) !== 0 ? 32 : 268435456 : 8 : 2;
}
function setIsStrictModeForDevtools(newIsStrictMode) {
if (typeof log == "function" && unstable_setDisableYieldValue(newIsStrictMode), injectedHook && typeof injectedHook.setStrictMode == "function")
try {
injectedHook.setStrictMode(rendererID, newIsStrictMode);
} catch {
}
}
function is(x, y) {
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
}
function describeBuiltInComponentFrame(name) {
if (prefix === void 0)
try {
throw Error();
} catch (x) {
var match = x.stack.trim().match(/\n( *(at )?)/);
prefix = match && match[1] || "", suffix = -1 < x.stack.indexOf(`
at`) ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : "";
}
return `
` + prefix + name + suffix;
}
function describeNativeComponentFrame(fn, construct) {
if (!fn || reentry) return "";
reentry = !0;
var previousPrepareStackTrace = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
var RunInRootFrame = {
DetermineComponentFrameRoot: function() {
try {
if (construct) {
var Fake = function() {
throw Error();
};
if (Object.defineProperty(Fake.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(Fake, []);
} catch (x) {
var control = x;
}
Reflect.construct(fn, [], Fake);
} else {
try {
Fake.call();
} catch (x$8) {
control = x$8;
}
fn.call(Fake.prototype);
}
} else {
try {
throw Error();
} catch (x$9) {
control = x$9;
}
(Fake = fn()) && typeof Fake.catch == "function" && Fake.catch(function() {
});
}
} catch (sample) {
if (sample && control && typeof sample.stack == "string")
return [sample.stack, control.stack];
}
return [null, null];
}
};
RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
var namePropDescriptor = Object.getOwnPropertyDescriptor(
RunInRootFrame.DetermineComponentFrameRoot,
"name"
);
namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty(
RunInRootFrame.DetermineComponentFrameRoot,
"name",
{ value: "DetermineComponentFrameRoot" }
);
var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1];
if (sampleStack && controlStack) {
var sampleLines = sampleStack.split(`
`), controlLines = controlStack.split(`
`);
for (namePropDescriptor = RunInRootFrame = 0; RunInRootFrame < sampleLines.length && !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); )
RunInRootFrame++;
for (; namePropDescriptor < controlLines.length && !controlLines[namePropDescriptor].includes(
"DetermineComponentFrameRoot"
); )
namePropDescriptor++;
if (RunInRootFrame === sampleLines.length || namePropDescriptor === controlLines.length)
for (RunInRootFrame = sampleLines.length - 1, namePropDescriptor = controlLines.length - 1; 1 <= RunInRootFrame && 0 <= namePropDescriptor && sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; )
namePropDescriptor--;
for (; 1 <= RunInRootFrame && 0 <= namePropDescriptor; RunInRootFrame--, namePropDescriptor--)
if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {
if (RunInRootFrame !== 1 || namePropDescriptor !== 1)
do
if (RunInRootFrame--, namePropDescriptor--, 0 > namePropDescriptor || sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {
var frame = `
` + sampleLines[RunInRootFrame].replace(" at new ", " at ");
return fn.displayName && frame.includes("<anonymous>") && (frame = frame.replace("<anonymous>", fn.displayName)), frame;
}
while (1 <= RunInRootFrame && 0 <= namePropDescriptor);
break;
}
}
} finally {
reentry = !1, Error.prepareStackTrace = previousPrepareStackTrace;
}
return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(previousPrepareStackTrace) : "";
}
function describeFiber(fiber, childFiber) {
switch (fiber.tag) {
case 26:
case 27:
case 5:
return describeBuiltInComponentFrame(fiber.type);
case 16:
return describeBuiltInComponentFrame("Lazy");
case 13:
return fiber.child !== childFiber && childFiber !== null ? describeBuiltInComponentFrame("Suspense Fallback") : describeBuiltInComponentFrame("Suspense");
case 19:
return describeBuiltInComponentFrame("SuspenseList");
case 0:
case 15:
return describeNativeComponentFrame(fiber.type, !1);
case 11:
return describeNativeComponentFrame(fiber.type.render, !1);
case 1:
return describeNativeComponentFrame(fiber.type, !0);
case 31:
return describeBuiltInComponentFrame("Activity");
default:
return "";
}
}
function getStackByFiberInDevAndProd(workInProgress2) {
try {
var info = "", previous = null;
do
info += describeFiber(workInProgress2, previous), previous = workInProgress2, workInProgress2 = workInProgress2.return;
while (workInProgress2);
return info;
} catch (x) {
return `
Error generating stack: ` + x.message + `
` + x.stack;
}
}
function createCapturedValueAtFiber(value, source) {
if (typeof value == "object" && value !== null) {
var existing = CapturedStacks.get(value);
return existing !== void 0 ? existing : (source = {
value,
source,
stack: getStackByFiberInDevAndProd(source)
}, CapturedStacks.set(value, source), source);
}
return {
value,
source,
stack: getStackByFiberInDevAndProd(source)
};
}
function pushTreeFork(workInProgress2, totalChildren) {
forkStack[forkStackIndex++] = treeForkCount, forkStack[forkStackIndex++] = treeForkProvider, treeForkProvider = workInProgress2, treeForkCount = totalChildren;
}
function pushTreeId(workInProgress2, totalChildren, index) {
idStack[idStackIndex++] = treeContextId, idStack[idStackIndex++] = treeContextOverflow, idStack[idStackIndex++] = treeContextProvider, treeContextProvider = workInProgress2;
var baseIdWithLeadingBit = treeContextId;
workInProgress2 = treeContextOverflow;
var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
baseIdWithLeadingBit &= ~(1 << baseLength), index += 1;
var length = 32 - clz32(totalChildren) + baseLength;
if (30 < length) {
var numberOfOverflowBits = baseLength - baseLength % 5;
length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32), baseIdWithLeadingBit >>= numberOfOverflowBits, baseLength -= numberOfOverflowBits, treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = length + workInProgress2;
} else
treeContextId = 1 << length | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress2;
}
function pushMaterializedTreeId(workInProgress2) {
workInProgress2.return !== null && (pushTreeFork(workInProgress2, 1), pushTreeId(workInProgress2, 1, 0));
}
function popTreeContext(workInProgress2) {
for (; workInProgress2 === treeForkProvider; )
treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, treeForkCount = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null;
for (; workInProgress2 === treeContextProvider; )
treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextOverflow = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextId = idStack[--idStackIndex], idStack[idStackIndex] = null;
}
function restoreSuspendedTreeContext(workInProgress2, suspendedContext) {
idStack[idStackIndex++] = treeContextId, idStack[idStackIndex++] = treeContextOverflow, idStack[idStackIndex++] = treeContextProvider, treeContextId = suspendedContext.id, treeContextOverflow = suspendedContext.overflow, treeContextProvider = workInProgress2;
}
function pushHostContainer(fiber, nextRootInstance) {
push(rootInstanceStackCursor, nextRootInstance), push(contextFiberStackCursor, fiber), push(contextStackCursor, null), fiber = getRootHostContext(nextRootInstance), pop(contextStackCursor), push(contextStackCursor, fiber);
}
function popHostContainer() {
pop(contextStackCursor), pop(contextFiberStackCursor), pop(rootInstanceStackCursor);
}
function pushHostContext(fiber) {
fiber.memoizedState !== null && push(hostTransitionProviderCursor, fiber);
var context = contextStackCursor.current, nextContext = getChildHostContext(context, fiber.type);
context !== nextContext && (push(contextFiberStackCursor, fiber), push(contextStackCursor, nextContext));
}
function popHostContext(fiber) {
contextFiberStackCursor.current === fiber && (pop(contextStackCursor), pop(contextFiberStackCursor)), hostTransitionProviderCursor.current === fiber && (pop(hostTransitionProviderCursor), isPrimaryRenderer ? HostTransitionContext._currentValue = NotPendingTransition : HostTransitionContext._currentValue2 = NotPendingTransition);
}
function throwOnHydrationMismatch(fiber) {
var error = Error(
formatProdErrorMessage(
418,
1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML",
""
)
);
throw queueHydrationError(createCapturedValueAtFiber(error, fiber)), HydrationMismatchException;
}
function prepareToHydrateHostInstance(fiber, hostContext) {
if (!supportsHydration) throw Error(formatProdErrorMessage(175));
hydrateInstance(
fiber.stateNode,
fiber.type,
fiber.memoizedProps,
hostContext,
fiber
) || throwOnHydrationMismatch(fiber, !0);
}
function popToNextHostParent(fiber) {
for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
switch (hydrationParentFiber.tag) {
case 5:
case 31:
case 13:
rootOrSingletonContext = !1;
return;
case 27:
case 3:
rootOrSingletonContext = !0;
return;
default:
hydrationParentFiber = hydrationParentFiber.return;
}
}
function popHydrationState(fiber) {
if (!supportsHydration || fiber !== hydrationParentFiber) return !1;
if (!isHydrating) return popToNextHostParent(fiber), isHydrating = !0, !1;
var tag = fiber.tag;
if (supportsSingletons ? tag !== 3 && tag !== 27 && (tag !== 5 || shouldDeleteUnhydratedTailInstances(fiber.type) && !shouldSetTextContent(fiber.type, fiber.memoizedProps)) && nextHydratableInstance && throwOnHydrationMismatch(fiber) : tag !== 3 && (tag !== 5 || shouldDeleteUnhydratedTailInstances(fiber.type) && !shouldSetTextContent(fiber.type, fiber.memoizedProps)) && nextHydratableInstance && throwOnHydrationMismatch(fiber), popToNextHostParent(fiber), tag === 13) {
if (!supportsHydration) throw Error(formatProdErrorMessage(316));
if (fiber = fiber.memoizedState, fiber = fiber !== null ? fiber.dehydrated : null, !fiber) throw Error(formatProdErrorMessage(317));
nextHydratableInstance = getNextHydratableInstanceAfterSuspenseInstance(fiber);
} else if (tag === 31) {
if (fiber = fiber.memoizedState, fiber = fiber !== null ? fiber.dehydrated : null, !fiber) throw Error(formatProdErrorMessage(317));
nextHydratableInstance = getNextHydratableInstanceAfterActivityInstance(fiber);
} else
nextHydratableInstance = supportsSingletons && tag === 27 ? getNextHydratableSiblingAfterSingleton(
fiber.type,
nextHydratableInstance
) : hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
return !0;
}
function resetHydrationState() {
supportsHydration && (nextHydratableInstance = hydrationParentFiber = null, isHydrating = !1);
}
function upgradeHydrationErrorsToRecoverable() {
var queuedErrors = hydrationErrors;
return queuedErrors !== null && (workInProgressRootRecoverableErrors === null ? workInProgressRootRecoverableErrors = queuedErrors : workInProgressRootRecoverableErrors.push.apply(
workInProgressRootRecoverableErrors,
queuedErrors
), hydrationErrors = null), queuedErrors;
}
function queueHydrationError(error) {
hydrationErrors === null ? hydrationErrors = [error] : hydrationErrors.push(error);
}
function pushProvider(providerFiber, context, nextValue) {
isPrimaryRenderer ? (push(valueCursor, context._currentValue), context._currentValue = nextValue) : (push(valueCursor, context._currentValue2), context._currentValue2 = nextValue);
}
function popProvider(context) {
var currentValue = valueCursor.current;
isPrimaryRenderer ? context._currentValue = currentValue : context._currentValue2 = currentValue, pop(valueCursor);
}
function scheduleContextWorkOnParentPath(parent, renderLanes2, propagationRoot) {
for (; parent !== null; ) {
var alternate = parent.alternate;
if ((parent.childLanes & renderLanes2) !== renderLanes2 ? (parent.childLanes |= renderLanes2, alternate !== null && (alternate.childLanes |= renderLanes2)) : alternate !== null && (alternate.childLanes & renderLanes2) !== renderLanes2 && (alternate.childLanes |= renderLanes2), parent === propagationRoot) break;
parent = parent.return;
}
}
function propagateContextChanges(workInProgress2, contexts, renderLanes2, forcePropagateEntireTree) {
var fiber = workInProgress2.child;
for (fiber !== null && (fiber.return = workInProgress2); fiber !== null; ) {
var list = fiber.dependencies;
if (list !== null) {
var nextFiber = fiber.child;
list = list.firstContext;
a: for (; list !== null; ) {
var dependency = list;
list = fiber;
for (var i = 0; i < contexts.length; i++)
if (dependency.context === contexts[i]) {
list.lanes |= renderLanes2, dependency = list.alternate, dependency !== null && (dependency.lanes |= renderLanes2), scheduleContextWorkOnParentPath(
list.return,
renderLanes2,
workInProgress2
), forcePropagateEntireTree || (nextFiber = null);
break a;
}
list = dependency.next;
}
} else if (fiber.tag === 18) {
if (nextFiber = fiber.return, nextFiber === null) throw Error(formatProdErrorMessage(341));
nextFiber.lanes |= renderLanes2, list = nextFiber.alternate, list !== null && (list.lanes |= renderLanes2), scheduleContextWorkOnParentPath(nextFiber, renderLanes2, workInProgress2), nextFiber = null;
} else nextFiber = fiber.child;
if (nextFiber !== null) nextFiber.return = fiber;
else
for (nextFiber = fiber; nextFiber !== null; ) {
if (nextFiber === workInProgress2) {
nextFiber = null;
break;
}
if (fiber = nextFiber.sibling, fiber !== null) {
fiber.return = nextFiber.return, nextFiber = fiber;
break;
}
nextFiber = nextFiber.return;
}
fiber = nextFiber;
}
}
function propagateParentContextChanges(current, workInProgress2, renderLanes2, forcePropagateEntireTree) {
current = null;
for (var parent = workInProgress2, isInsidePropagationBailout = !1; parent !== null; ) {
if (!isInsidePropagationBailout) {
if ((parent.flags & 524288) !== 0) isInsidePropagationBailout = !0;
else if ((parent.flags & 262144) !== 0) break;
}
if (parent.tag === 10) {
var currentParent = parent.alternate;
if (currentParent === null) throw Error(formatProdErrorMessage(387));
if (currentParent = currentParent.memoizedProps, currentParent !== null) {
var context = parent.type;
objectIs(parent.pendingProps.value, currentParent.value) || (current !== null ? current.push(context) : current = [context]);
}
} else if (parent === hostTransitionProviderCursor.current) {
if (currentParent = parent.alternate, currentParent === null) throw Error(formatProdErrorMessage(387));
currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (current !== null ? current.push(HostTransitionContext) : current = [HostTransitionContext]);
}
parent = parent.return;
}
current !== null && propagateContextChanges(
workInProgress2,
current,
renderLanes2,
forcePropagateEntireTree
), workInProgress2.flags |= 262144;
}
function checkIfContextChanged(currentDependencies) {
for (currentDependencies = currentDependencies.firstContext; currentDependencies !== null; ) {
var context = currentDependencies.context;
if (!objectIs(
isPrimaryRenderer ? context._currentValue : context._currentValue2,
currentDependencies.memoizedValue
))
return !0;
currentDependencies = currentDependencies.next;
}
return !1;
}
function prepareToReadContext(workInProgress2) {
currentlyRenderingFiber$1 = workInProgress2, lastContextDependency = null, workInProgress2 = workInProgress2.dependencies, workInProgress2 !== null && (workInProgress2.firstContext = null);
}
function readContext(context) {
return readContextForConsumer(currentlyRenderingFiber$1, context);
}
function readContextDuringReconciliation(consumer, context) {
return currentlyRenderingFiber$1 === null && prepareToReadContext(consumer), readContextForConsumer(consumer, context);
}
function readContextForConsumer(consumer, context) {
var value = isPrimaryRenderer ? context._currentValue : context._currentValue2;
if (context = { context, memoizedValue: value, next: null }, lastContextDependency === null) {
if (consumer === null) throw Error(formatProdErrorMessage(308));
lastContextDependency = context, consumer.dependencies = { lanes: 0, firstContext: context }, consumer.flags |= 524288;
} else lastContextDependency = lastContextDependency.next = context;
return value;
}
function createCache() {
return {
controller: new AbortControllerLocal(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
function releaseCache(cache3) {
cache3.refCount--, cache3.refCount === 0 && scheduleCallback$2(NormalPriority, function() {
cache3.controller.abort();
});
}
function noop$1() {
}
function ensureRootIsScheduled(root) {
root !== lastScheduledRoot && root.next === null && (lastScheduledRoot === null ? firstScheduledRoot = lastScheduledRoot = root : lastScheduledRoot = lastScheduledRoot.next = root), mightHavePendingSyncWork = !0, didScheduleMicrotask || (didScheduleMicrotask = !0, scheduleImmediateRootScheduleTask());
}
function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
if (!isFlushingWork && mightHavePendingSyncWork) {
isFlushingWork = !0;
do
for (var didPerformSomeWork = !1, root = firstScheduledRoot; root !== null; ) {
if (!onlyLegacy)
if (syncTransitionLanes !== 0) {
var pendingLanes = root.pendingLanes;
if (pendingLanes === 0) var JSCompiler_inline_result = 0;
else {
var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes;
JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1, JSCompiler_inline_result &= pendingLanes & ~(suspendedLanes & ~pingedLanes), JSCompiler_inline_result = JSCompiler_inline_result & 201326741 ? JSCompiler_inline_result & 201326741 | 1 : JSCompiler_inline_result ? JSCompiler_inline_result | 2 : 0;
}
JSCompiler_inline_result !== 0 && (didPerformSomeWork = !0, performSyncWorkOnRoot(root, JSCompiler_inline_result));
} else
JSCompiler_inline_result = workInProgressRootRenderLanes, JSCompiler_inline_result = getNextLanes(
root,
root === workInProgressRoot ? JSCompiler_inline_result : 0,
root.cancelPendingCommit !== null || root.timeoutHandle !== noTimeout
), (JSCompiler_inline_result & 3) === 0 || checkIfRootIsPrerendering(root, JSCompiler_inline_result) || (didPerformSomeWork = !0, performSyncWorkOnRoot(root, JSCompiler_inline_result));
root = root.next;
}
while (didPerformSomeWork);
isFlushingWork = !1;
}
}
function processRootScheduleInImmediateTask() {
processRootScheduleInMicrotask();
}
function processRootScheduleInMicrotask() {
mightHavePendingSyncWork = didScheduleMicrotask = !1;
var syncTransitionLanes = 0;
currentEventTransitionLane !== 0 && shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane);
for (var currentTime2 = now(), prev = null, root = firstScheduledRoot; root !== null; ) {
var next = root.next, nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime2);
nextLanes === 0 ? (root.next = null, prev === null ? firstScheduledRoot = next : prev.next = next, next === null && (lastScheduledRoot = prev)) : (prev = root, (syncTransitionLanes !== 0 || (nextLanes & 3) !== 0) && (mightHavePendingSyncWork = !0)), root = next;
}
pendingEffectsStatus !== 0 && pendingEffectsStatus !== 5 || flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1), currentEventTransitionLane !== 0 && (currentEventTransitionLane = 0);
}
function scheduleTaskForRootDuringMicrotask(root, currentTime2) {
for (var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes & -62914561; 0 < lanes; ) {
var index$3 = 31 - clz32(lanes), lane = 1 << index$3, expirationTime = expirationTimes[index$3];
expirationTime === -1 ? ((lane & suspendedLanes) === 0 || (lane & pingedLanes) !== 0) && (expirationTimes[index$3] = computeExpirationTime(lane, currentTime2)) : expirationTime <= currentTime2 && (root.expiredLanes |= lane), lanes &= ~lane;
}
if (currentTime2 = workInProgressRoot, suspendedLanes = workInProgressRootRenderLanes, suspendedLanes = getNextLanes(
root,
root === currentTime2 ? suspendedLanes : 0,
root.cancelPendingCommit !== null || root.timeoutHandle !== noTimeout
), pingedLanes = root.callbackNode, suspendedLanes === 0 || root === currentTime2 && (workInProgressSuspendedReason === 2 || workInProgressSuspendedReason === 9) || root.cancelPendingCommit !== null)
return pingedLanes !== null && pingedLanes !== null && cancelCallback$1(pingedLanes), root.callbackNode = null, root.callbackPriority = 0;
if ((suspendedLanes & 3) === 0 || checkIfRootIsPrerendering(root, suspendedLanes)) {
if (currentTime2 = suspendedLanes & -suspendedLanes, currentTime2 === root.callbackPriority) return currentTime2;
switch (pingedLanes !== null && cancelCallback$1(pingedLanes), lanesToEventPriority(suspendedLanes)) {
case 2:
case 8:
suspendedLanes = UserBlockingPriority;
break;
case 32:
suspendedLanes = NormalPriority$1;
break;
case 268435456:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
}
return pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root), suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes), root.callbackPriority = currentTime2, root.callbackNode = suspendedLanes, currentTime2;
}
return pingedLanes !== null && pingedLanes !== null && cancelCallback$1(pingedLanes), root.callbackPriority = 2, root.callbackNode = null, 2;
}
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
if (pendingEffectsStatus !== 0 && pendingEffectsStatus !== 5)
return root.callbackNode = null, root.callbackPriority = 0, null;
var originalCallbackNode = root.callbackNode;
if (flushPendingEffects() && root.callbackNode !== originalCallbackNode)
return null;
var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;
return workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
root,
root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
root.cancelPendingCommit !== null || root.timeoutHandle !== noTimeout
), workInProgressRootRenderLanes$jscomp$0 === 0 ? null : (performWorkOnRoot(root, workInProgressRootRenderLanes$jscomp$0, didTimeout), scheduleTaskForRootDuringMicrotask(root, now()), root.callbackNode != null && root.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root) : null);
}
function performSyncWorkOnRoot(root, lanes) {
if (flushPendingEffects()) return null;
performWorkOnRoot(root, lanes, !0);
}
function scheduleImmediateRootScheduleTask() {
supportsMicrotasks ? scheduleMicrotask(function() {
(executionContext & 6) !== 0 ? scheduleCallback$3(
ImmediatePriority,
processRootScheduleInImmediateTask
) : processRootScheduleInMicrotask();
}) : scheduleCallback$3(
ImmediatePriority,
processRootScheduleInImmediateTask
);
}
function requestTransitionLane() {
if (currentEventTransitionLane === 0) {
var actionScopeLane = currentEntangledLane;
actionScopeLane === 0 && (actionScopeLane = nextTransitionUpdateLane, nextTransitionUpdateLane <<= 1, (nextTransitionUpdateLane & 261888) === 0 && (nextTransitionUpdateLane = 256)), currentEventTransitionLane = actionScopeLane;
}
return currentEventTransitionLane;
}
function entangleAsyncAction(transition, thenable) {
if (currentEntangledListeners === null) {
var entangledListeners = currentEntangledListeners = [];
currentEntangledPendingCount = 0, currentEntangledLane = requestTransitionLane(), currentEntangledActionThenable = {
status: "pending",
value: void 0,
then: function(resolve) {
entangledListeners.push(resolve);
}
};
}
return currentEntangledPendingCount++, thenable.then(pingEngtangledActionScope, pingEngtangledActionScope), thenable;
}
function pingEngtangledActionScope() {
if (--currentEntangledPendingCount === 0 && currentEntangledListeners !== null) {
currentEntangledActionThenable !== null && (currentEntangledActionThenable.status = "fulfilled");
var listeners = currentEntangledListeners;
currentEntangledListeners = null, currentEntangledLane = 0, currentEntangledActionThenable = null;
for (var i = 0; i < listeners.length; i++) (0, listeners[i])();
}
}
function chainThenableValue(thenable, result) {
var listeners = [], thenableWithOverride = {
status: "pending",
value: null,
reason: null,
then: function(resolve) {
listeners.push(resolve);
}
};
return thenable.then(
function() {
thenableWithOverride.status = "fulfilled", thenableWithOverride.value = result;
for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result);
},
function(error) {
for (thenableWithOverride.status = "rejected", thenableWithOverride.reason = error, error = 0; error < listeners.length; error++)
(0, listeners[error])(void 0);
}
), thenableWithOverride;
}
function peekCacheFromPool() {
var cacheResumedFromPreviousRender = resumedCache.current;
return cacheResumedFromPreviousRender !== null ? cacheResumedFromPreviousRender : workInProgressRoot.pooledCache;
}
function pushTransition(offscreenWorkInProgress, prevCachePool) {
prevCachePool === null ? push(resumedCache, resumedCache.current) : push(resumedCache, prevCachePool.pool);
}
function getSuspendedCache() {
var cacheFromPool = peekCacheFromPool();
return cacheFromPool === null ? null : {
parent: isPrimaryRenderer ? CacheContext._currentValue : CacheContext._currentValue2,
pool: cacheFromPool
};
}
function shallowEqual(objA, objB) {
if (objectIs(objA, objB)) return !0;
if (typeof objA != "object" || objA === null || typeof objB != "object" || objB === null)
return !1;
var keysA = Object.keys(objA), keysB = Object.keys(objB);
if (keysA.length !== keysB.length) return !1;
for (keysB = 0; keysB < keysA.length; keysB++) {
var currentKey = keysA[keysB];
if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey]))
return !1;
}
return !0;
}
function isThenableResolved(thenable) {
return thenable = thenable.status, thenable === "fulfilled" || thenable === "rejected";
}
function trackUsedThenable(thenableState2, thenable, index) {
switch (index = thenableState2[index], index === void 0 ? thenableState2.push(thenable) : index !== thenable && (thenable.then(noop$1, noop$1), thenable = index), thenable.status) {
case "fulfilled":
return thenable.value;
case "rejected":
throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2;
default:
if (typeof thenable.status == "string") thenable.then(noop$1, noop$1);
else {
if (thenableState2 = workInProgressRoot, thenableState2 !== null && 100 < thenableState2.shellSuspendCounter)
throw Error(formatProdErrorMessage(482));
thenableState2 = thenable, thenableState2.status = "pending", thenableState2.then(
function(fulfilledValue) {
if (thenable.status === "pending") {
var fulfilledThenable = thenable;
fulfilledThenable.status = "fulfilled", fulfilledThenable.value = fulfilledValue;
}
},
function(error) {
if (thenable.status === "pending") {
var rejectedThenable = thenable;
rejectedThenable.status = "rejected", rejectedThenable.reason = error;
}
}
);
}
switch (thenable.status) {
case "fulfilled":
return thenable.value;
case "rejected":
throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2;
}
throw suspendedThenable = thenable, SuspenseException;
}
}
function resolveLazy(lazyType) {
try {
var init = lazyType._init;
return init(lazyType._payload);
} catch (x) {
throw x !== null && typeof x == "object" && typeof x.then == "function" ? (suspendedThenable = x, SuspenseException) : x;
}
}
function getSuspendedThenable() {
if (suspendedThenable === null) throw Error(formatProdErrorMessage(459));
var thenable = suspendedThenable;
return suspendedThenable = null, thenable;
}
function checkIfUseWrappedInAsyncCatch(rejectedReason) {
if (rejectedReason === SuspenseException || rejectedReason === SuspenseActionException)
throw Error(formatProdErrorMessage(483));
}
function unwrapThenable(thenable) {
var index = thenableIndexCounter$1;
return thenableIndexCounter$1 += 1, thenableState$1 === null && (thenableState$1 = []), trackUsedThenable(thenableState$1, thenable, index);
}
function coerceRef(workInProgress2, element) {
element = element.props.ref, workInProgress2.ref = element !== void 0 ? element : null;
}
function throwOnInvalidObjectTypeImpl(returnFiber, newChild) {
throw newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE ? Error(formatProdErrorMessage(525)) : (returnFiber = Object.prototype.toString.call(newChild), Error(
formatProdErrorMessage(
31,
returnFiber === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber
)
));
}
function createChildReconciler(shouldTrackSideEffects) {
function deleteChild(returnFiber, childToDelete) {
if (shouldTrackSideEffects) {
var deletions = returnFiber.deletions;
deletions === null ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete);
}
}
function deleteRemainingChildren(returnFiber, currentFirstChild) {
if (!shouldTrackSideEffects) return null;
for (; currentFirstChild !== null; )
deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling;
return null;
}
function mapRemainingChildren(currentFirstChild) {
for (var existingChildren = /* @__PURE__ */ new Map(); currentFirstChild !== null; )
currentFirstChild.key !== null ? existingChildren.set(currentFirstChild.key, currentFirstChild) : existingChildren.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling;
return existingChildren;
}
function useFiber(fiber, pendingProps) {
return fiber = createWorkInProgress(fiber, pendingProps), fiber.index = 0, fiber.sibling = null, fiber;
}
function placeChild(newFiber, lastPlacedIndex, newIndex) {
return newFiber.index = newIndex, shouldTrackSideEffects ? (newIndex = newFiber.alternate, newIndex !== null ? (newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 67108866, lastPlacedIndex) : newIndex) : (newFiber.flags |= 67108866, lastPlacedIndex)) : (newFiber.flags |= 1048576, lastPlacedIndex);
}
function placeSingleChild(newFiber) {
return shouldTrackSideEffects && newFiber.alternate === null && (newFiber.flags |= 67108866), newFiber;
}
function updateTextNode(returnFiber, current, textContent, lanes) {
return current === null || current.tag !== 6 ? (current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current) : (current = useFiber(current, textContent), current.return = returnFiber, current);
}
function updateElement(returnFiber, current, element, lanes) {
var elementType = element.type;
return elementType === REACT_FRAGMENT_TYPE ? updateFragment(
returnFiber,
current,
element.props.children,
lanes,
element.key
) : current !== null && (current.elementType === elementType || typeof elementType == "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type) ? (current = useFiber(current, element.props), coerceRef(current, element), current.return = returnFiber, current) : (current = createFiberFromTypeAndProps(
element.type,
element.key,
element.props,
null,
returnFiber.mode,
lanes
), coerceRef(current, element), current.return = returnFiber, current);
}
function updatePortal(returnFiber, current, portal, lanes) {
return current === null || current.tag !== 4 || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation ? (current = createFiberFromPortal(portal, returnFiber.mode, lanes), current.return = returnFiber, current) : (current = useFiber(current, portal.children || []), current.return = returnFiber, current);
}
function updateFragment(returnFiber, current, fragment, lanes, key) {
return current === null || current.tag !== 7 ? (current = createFiberFromFragment(
fragment,
returnFiber.mode,
lanes,
key
), current.return = returnFiber, current) : (current = useFiber(current, fragment), current.return = returnFiber, current);
}
function createChild(returnFiber, newChild, lanes) {
if (typeof newChild == "string" && newChild !== "" || typeof newChild == "number" || typeof newChild == "bigint")
return newChild = createFiberFromText(
"" + newChild,
returnFiber.mode,
lanes
), newChild.return = returnFiber, newChild;
if (typeof newChild == "object" && newChild !== null) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
return lanes = createFiberFromTypeAndProps(
newChild.type,
newChild.key,
newChild.props,
null,
returnFiber.mode,
lanes
), coerceRef(lanes, newChild), lanes.return = returnFiber, lanes;
case REACT_PORTAL_TYPE:
return newChild = createFiberFromPortal(
newChild,
returnFiber.mode,
lanes
), newChild.return = returnFiber, newChild;
case REACT_LAZY_TYPE:
return newChild = resolveLazy(newChild), createChild(returnFiber, newChild, lanes);
}
if (isArrayImpl(newChild) || getIteratorFn(newChild))
return newChild = createFiberFromFragment(
newChild,
returnFiber.mode,
lanes,
null
), newChild.return = returnFiber, newChild;
if (typeof newChild.then == "function")
return createChild(returnFiber, unwrapThenable(newChild), lanes);
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
return createChild(
returnFiber,
readContextDuringReconciliation(returnFiber, newChild),
lanes
);
throwOnInvalidObjectTypeImpl(returnFiber, newChild);
}
return null;
}
function updateSlot(returnFiber, oldFiber, newChild, lanes) {
var key = oldFiber !== null ? oldFiber.key : null;
if (typeof newChild == "string" && newChild !== "" || typeof newChild == "number" || typeof newChild == "bigint")
return key !== null ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes);
if (typeof newChild == "object" && newChild !== null) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null;
case REACT_PORTAL_TYPE:
return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null;
case REACT_LAZY_TYPE:
return newChild = resolveLazy(newChild), updateSlot(returnFiber, oldFiber, newChild, lanes);
}
if (isArrayImpl(newChild) || getIteratorFn(newChild))
return key !== null ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null);
if (typeof newChild.then == "function")
return updateSlot(
returnFiber,
oldFiber,
unwrapThenable(newChild),
lanes
);
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
return updateSlot(
returnFiber,
oldFiber,
readContextDuringReconciliation(returnFiber, newChild),
lanes
);
throwOnInvalidObjectTypeImpl(returnFiber, newChild);
}
return null;
}
function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {
if (typeof newChild == "string" && newChild !== "" || typeof newChild == "number" || typeof newChild == "bigint")
return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes);
if (typeof newChild == "object" && newChild !== null) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
return existingChildren = existingChildren.get(
newChild.key === null ? newIdx : newChild.key
) || null, updateElement(returnFiber, existingChildren, newChild, lanes);
case REACT_PORTAL_TYPE:
return existingChildren = existingChildren.get(
newChild.key === null ? newIdx : newChild.key
) || null, updatePortal(returnFiber, existingChildren, newChild, lanes);
case REACT_LAZY_TYPE:
return newChild = resolveLazy(newChild), updateFromMap(
existingChildren,
returnFiber,
newIdx,
newChild,
lanes
);
}
if (isArrayImpl(newChild) || getIteratorFn(newChild))
return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, lanes, null);
if (typeof newChild.then == "function")
return updateFromMap(
existingChildren,
returnFiber,
newIdx,
unwrapThenable(newChild),
lanes
);
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
return updateFromMap(
existingChildren,
returnFiber,
newIdx,
readContextDuringReconciliation(returnFiber, newChild),
lanes
);
throwOnInvalidObjectTypeImpl(returnFiber, newChild);
}
return null;
}
function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) {
for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling;
var newFiber = updateSlot(
returnFiber,
oldFiber,
newChildren[newIdx],
lanes
);
if (newFiber === null) {
oldFiber === null && (oldFiber = nextOldFiber);
break;
}
shouldTrackSideEffects && oldFiber && newFiber.alternate === null && deleteChild(returnFiber, oldFiber), currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx), previousNewFiber === null ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber, previousNewFiber = newFiber, oldFiber = nextOldFiber;
}
if (newIdx === newChildren.length)
return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
if (oldFiber === null) {
for (; newIdx < newChildren.length; newIdx++)
oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), oldFiber !== null && (currentFirstChild = placeChild(
oldFiber,
currentFirstChild,
newIdx
), previousNewFiber === null ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber);
return isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
}
for (oldFiber = mapRemainingChildren(oldFiber); newIdx < newChildren.length; newIdx++)
nextOldFiber = updateFromMap(
oldFiber,
returnFiber,
newIdx,
newChildren[newIdx],
lanes
), nextOldFiber !== null && (shouldTrackSideEffects && nextOldFiber.alternate !== null && oldFiber.delete(
nextOldFiber.key === null ? newIdx : nextOldFiber.key
), currentFirstChild = placeChild(
nextOldFiber,
currentFirstChild,
newIdx
), previousNewFiber === null ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber);
return shouldTrackSideEffects && oldFiber.forEach(function(child) {
return deleteChild(returnFiber, child);
}), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
}
function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes) {
if (newChildren == null) throw Error(formatProdErrorMessage(151));
for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildren.next(); oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling;
var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);
if (newFiber === null) {
oldFiber === null && (oldFiber = nextOldFiber);
break;
}
shouldTrackSideEffects && oldFiber && newFiber.alternate === null && deleteChild(returnFiber, oldFiber), currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx), previousNewFiber === null ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber, previousNewFiber = newFiber, oldFiber = nextOldFiber;
}
if (step.done)
return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
if (oldFiber === null) {
for (; !step.done; newIdx++, step = newChildren.next())
step = createChild(returnFiber, step.value, lanes), step !== null && (currentFirstChild = placeChild(
step,
currentFirstChild,
newIdx
), previousNewFiber === null ? resultingFirstChild = step : previousNewFiber.sibling = step, previousNewFiber = step);
return isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
}
for (oldFiber = mapRemainingChildren(oldFiber); !step.done; newIdx++, step = newChildren.next())
step = updateFromMap(
oldFiber,
returnFiber,
newIdx,
step.value,
lanes
), step !== null && (shouldTrackSideEffects && step.alternate !== null && oldFiber.delete(step.key === null ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), previousNewFiber === null ? resultingFirstChild = step : previousNewFiber.sibling = step, previousNewFiber = step);
return shouldTrackSideEffects && oldFiber.forEach(function(child) {
return deleteChild(returnFiber, child);
}), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
}
function reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes) {
if (typeof newChild == "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null && (newChild = newChild.props.children), typeof newChild == "object" && newChild !== null) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
a: {
for (var key = newChild.key; currentFirstChild !== null; ) {
if (currentFirstChild.key === key) {
if (key = newChild.type, key === REACT_FRAGMENT_TYPE) {
if (currentFirstChild.tag === 7) {
deleteRemainingChildren(
returnFiber,
currentFirstChild.sibling
), lanes = useFiber(
currentFirstChild,
newChild.props.children
), lanes.return = returnFiber, returnFiber = lanes;
break a;
}
} else if (currentFirstChild.elementType === key || typeof key == "object" && key !== null && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === currentFirstChild.type) {
deleteRemainingChildren(
returnFiber,
currentFirstChild.sibling
), lanes = useFiber(currentFirstChild, newChild.props), coerceRef(lanes, newChild), lanes.return = returnFiber, returnFiber = lanes;
break a;
}
deleteRemainingChildren(returnFiber, currentFirstChild);
break;
} else deleteChild(returnFiber, currentFirstChild);
currentFirstChild = currentFirstChild.sibling;
}
newChild.type === REACT_FRAGMENT_TYPE ? (lanes = createFiberFromFragment(
newChild.props.children,
returnFiber.mode,
lanes,
newChild.key
), lanes.return = returnFiber, returnFiber = lanes) : (lanes = createFiberFromTypeAndProps(
newChild.type,
newChild.key,
newChild.props,
null,
returnFiber.mode,
lanes
), coerceRef(lanes, newChild), lanes.return = returnFiber, returnFiber = lanes);
}
return placeSingleChild(returnFiber);
case REACT_PORTAL_TYPE:
a: {
for (key = newChild.key; currentFirstChild !== null; ) {
if (currentFirstChild.key === key)
if (currentFirstChild.tag === 4 && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) {
deleteRemainingChildren(
returnFiber,
currentFirstChild.sibling
), lanes = useFiber(
currentFirstChild,
newChild.children || []
), lanes.return = returnFiber, returnFiber = lanes;
break a;
} else {
deleteRemainingChildren(returnFiber, currentFirstChild);
break;
}
else deleteChild(returnFiber, currentFirstChild);
currentFirstChild = currentFirstChild.sibling;
}
lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes), lanes.return = returnFiber, returnFiber = lanes;
}
return placeSingleChild(returnFiber);
case REACT_LAZY_TYPE:
return newChild = resolveLazy(newChild), reconcileChildFibersImpl(
returnFiber,
currentFirstChild,
newChild,
lanes
);
}
if (isArrayImpl(newChild))
return reconcileChildrenArray(
returnFiber,
currentFirstChild,
newChild,
lanes
);
if (getIteratorFn(newChild)) {
if (key = getIteratorFn(newChild), typeof key != "function")
throw Error(formatProdErrorMessage(150));
return newChild = key.call(newChild), reconcileChildrenIterator(
returnFiber,
currentFirstChild,
newChild,
lanes
);
}
if (typeof newChild.then == "function")
return reconcileChildFibersImpl(
returnFiber,
currentFirstChild,
unwrapThenable(newChild),
lanes
);
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
return reconcileChildFibersImpl(
returnFiber,
currentFirstChild,
readContextDuringReconciliation(returnFiber, newChild),
lanes
);
throwOnInvalidObjectTypeImpl(returnFiber, newChild);
}
return typeof newChild == "string" && newChild !== "" || typeof newChild == "number" || typeof newChild == "bigint" ? (newChild = "" + newChild, currentFirstChild !== null && currentFirstChild.tag === 6 ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), lanes = useFiber(currentFirstChild, newChild), lanes.return = returnFiber, returnFiber = lanes) : (deleteRemainingChildren(returnFiber, currentFirstChild), lanes = createFiberFromText(newChild, returnFiber.mode, lanes), lanes.return = returnFiber, returnFiber = lanes), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild);
}
return function(returnFiber, currentFirstChild, newChild, lanes) {
try {
thenableIndexCounter$1 = 0;
var firstChildFiber = reconcileChildFibersImpl(
returnFiber,
currentFirstChild,
newChild,
lanes
);
return thenableState$1 = null, firstChildFiber;
} catch (x) {
if (x === SuspenseException || x === SuspenseActionException) throw x;
var fiber = createFiber(29, x, null, returnFiber.mode);
return fiber.lanes = lanes, fiber.return = returnFiber, fiber;
}
};
}
function finishQueueingConcurrentUpdates() {
for (var endIndex = concurrentQueuesIndex, i = concurrentlyUpdatedLanes = concurrentQueuesIndex = 0; i < endIndex; ) {
var fiber = concurrentQueues[i];
concurrentQueues[i++] = null;
var queue = concurrentQueues[i];
concurrentQueues[i++] = null;
var update = concurrentQueues[i];
concurrentQueues[i++] = null;
var lane = concurrentQueues[i];
if (concurrentQueues[i++] = null, queue !== null && update !== null) {
var pending = queue.pending;
pending === null ? update.next = update : (update.next = pending.next, pending.next = update), queue.pending = update;
}
lane !== 0 && markUpdateLaneFromFiberToRoot(fiber, update, lane);
}
}
function enqueueUpdate$1(fiber, queue, update, lane) {
concurrentQueues[concurrentQueuesIndex++] = fiber, concurrentQueues[concurrentQueuesIndex++] = queue, concurrentQueues[concurrentQueuesIndex++] = update, concurrentQueues[concurrentQueuesIndex++] = lane, concurrentlyUpdatedLanes |= lane, fiber.lanes |= lane, fiber = fiber.alternate, fiber !== null && (fiber.lanes |= lane);
}
function enqueueConcurrentHookUpdate(fiber, queue, update, lane) {
return enqueueUpdate$1(fiber, queue, update, lane), getRootForUpdatedFiber(fiber);
}
function enqueueConcurrentRenderForLane(fiber, lane) {
return enqueueUpdate$1(fiber, null, null, lane), getRootForUpdatedFiber(fiber);
}
function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {
sourceFiber.lanes |= lane;
var alternate = sourceFiber.alternate;
alternate !== null && (alternate.lanes |= lane);
for (var isHidden2 = !1, parent = sourceFiber.return; parent !== null; )
parent.childLanes |= lane, alternate = parent.alternate, alternate !== null && (alternate.childLanes |= lane), parent.tag === 22 && (sourceFiber = parent.stateNode, sourceFiber === null || sourceFiber._visibility & 1 || (isHidden2 = !0)), sourceFiber = parent, parent = parent.return;
return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden2 && update !== null && (isHidden2 = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden2], alternate === null ? sourceFiber[isHidden2] = [update] : alternate.push(update), update.lane = lane | 536870912), parent) : null;
}
function getRootForUpdatedFiber(sourceFiber) {
if (50 < nestedUpdateCount)
throw nestedUpdateCount = 0, rootWithNestedUpdates = null, Error(formatProdErrorMessage(185));
for (var parent = sourceFiber.return; parent !== null; )
sourceFiber = parent, parent = sourceFiber.return;
return sourceFiber.tag === 3 ? sourceFiber.stateNode : null;
}
function initializeUpdateQueue(fiber) {
fiber.updateQueue = {
baseState: fiber.memoizedState,
firstBaseUpdate: null,
lastBaseUpdate: null,
shared: { pending: null, lanes: 0, hiddenCallbacks: null },
callbacks: null
};
}
function cloneUpdateQueue(current, workInProgress2) {
current = current.updateQueue, workInProgress2.updateQueue === current && (workInProgress2.updateQueue = {
baseState: current.baseState,
firstBaseUpdate: current.firstBaseUpdate,
lastBaseUpdate: current.lastBaseUpdate,
shared: current.shared,
callbacks: null
});
}
function createUpdate(lane) {
return { lane, tag: 0, payload: null, callback: null, next: null };
}
function enqueueUpdate(fiber, update, lane) {
var updateQueue = fiber.updateQueue;
if (updateQueue === null) return null;
if (updateQueue = updateQueue.shared, (executionContext & 2) !== 0) {
var pending = updateQueue.pending;
return pending === null ? update.next = update : (update.next = pending.next, pending.next = update), updateQueue.pending = update, update = getRootForUpdatedFiber(fiber), markUpdateLaneFromFiberToRoot(fiber, null, lane), update;
}
return enqueueUpdate$1(fiber, updateQueue, update, lane), getRootForUpdatedFiber(fiber);
}
function entangleTransitions(root, fiber, lane) {
if (fiber = fiber.updateQueue, fiber !== null && (fiber = fiber.shared, (lane & 4194048) !== 0)) {
var queueLanes = fiber.lanes;
queueLanes &= root.pendingLanes, lane |= queueLanes, fiber.lanes = lane, markRootEntangled(root, lane);
}
}
function enqueueCapturedUpdate(workInProgress2, capturedUpdate) {
var queue = workInProgress2.updateQueue, current = workInProgress2.alternate;
if (current !== null && (current = current.updateQueue, queue === current)) {
var newFirst = null, newLast = null;
if (queue = queue.firstBaseUpdate, queue !== null) {
do {
var clone = {
lane: queue.lane,
tag: queue.tag,
payload: queue.payload,
callback: null,
next: null
};
newLast === null ? newFirst = newLast = clone : newLast = newLast.next = clone, queue = queue.next;
} while (queue !== null);
newLast === null ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate;
} else newFirst = newLast = capturedUpdate;
queue = {
baseState: current.baseState,
firstBaseUpdate: newFirst,
lastBaseUpdate: newLast,
shared: current.shared,
callbacks: current.callbacks
}, workInProgress2.updateQueue = queue;
return;
}
workInProgress2 = queue.lastBaseUpdate, workInProgress2 === null ? queue.firstBaseUpdate = capturedUpdate : workInProgress2.next = capturedUpdate, queue.lastBaseUpdate = capturedUpdate;
}
function suspendIfUpdateReadFromEntangledAsyncAction() {
if (didReadFromEntangledAsyncAction) {
var entangledActionThenable = currentEntangledActionThenable;
if (entangledActionThenable !== null) throw entangledActionThenable;
}
}
function processUpdateQueue(workInProgress$jscomp$0, props, instance$jscomp$0, renderLanes2) {
didReadFromEntangledAsyncAction = !1;
var queue = workInProgress$jscomp$0.updateQueue;
hasForceUpdate = !1;
var firstBaseUpdate = queue.firstBaseUpdate, lastBaseUpdate = queue.lastBaseUpdate, pendingQueue = queue.shared.pending;
if (pendingQueue !== null) {
queue.shared.pending = null;
var lastPendingUpdate = pendingQueue, firstPendingUpdate = lastPendingUpdate.next;
lastPendingUpdate.next = null, lastBaseUpdate === null ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate, lastBaseUpdate = lastPendingUpdate;
var current = workInProgress$jscomp$0.alternate;
current !== null && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (pendingQueue === null ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate));
}
if (firstBaseUpdate !== null) {
var newState = queue.baseState;
lastBaseUpdate = 0, current = firstPendingUpdate = lastPendingUpdate = null, pendingQueue = firstBaseUpdate;
do {
var updateLane = pendingQueue.lane & -536870913, isHiddenUpdate = updateLane !== pendingQueue.lane;
if (isHiddenUpdate ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes2 & updateLane) === updateLane) {
updateLane !== 0 && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0), current !== null && (current = current.next = {
lane: 0,
tag: pendingQueue.tag,
payload: pendingQueue.payload,
callback: null,
next: null
});
a: {
var workInProgress2 = workInProgress$jscomp$0, update = pendingQueue;
updateLane = props;
var instance = instance$jscomp$0;
switch (update.tag) {
case 1:
if (workInProgress2 = update.payload, typeof workInProgress2 == "function") {
newState = workInProgress2.call(
instance,
newState,
updateLane
);
break a;
}
newState = workInProgress2;
break a;
case 3:
workInProgress2.flags = workInProgress2.flags & -65537 | 128;
case 0:
if (workInProgress2 = update.payload, updateLane = typeof workInProgress2 == "function" ? workInProgress2.call(instance, newState, updateLane) : workInProgress2, updateLane == null) break a;
newState = assign({}, newState, updateLane);
break a;
case 2:
hasForceUpdate = !0;
}
}
updateLane = pendingQueue.callback, updateLane !== null && (workInProgress$jscomp$0.flags |= 64, isHiddenUpdate && (workInProgress$jscomp$0.flags |= 8192), isHiddenUpdate = queue.callbacks, isHiddenUpdate === null ? queue.callbacks = [updateLane] : isHiddenUpdate.push(updateLane));
} else
isHiddenUpdate = {
lane: updateLane,
tag: pendingQueue.tag,
payload: pendingQueue.payload,
callback: pendingQueue.callback,
next: null
}, current === null ? (firstPendingUpdate = current = isHiddenUpdate, lastPendingUpdate = newState) : current = current.next = isHiddenUpdate, lastBaseUpdate |= updateLane;
if (pendingQueue = pendingQueue.next, pendingQueue === null) {
if (pendingQueue = queue.shared.pending, pendingQueue === null)
break;
isHiddenUpdate = pendingQueue, pendingQueue = isHiddenUpdate.next, isHiddenUpdate.next = null, queue.lastBaseUpdate = isHiddenUpdate, queue.shared.pending = null;
}
} while (!0);
current === null && (lastPendingUpdate = newState), queue.baseState = lastPendingUpdate, queue.firstBaseUpdate = firstPendingUpdate, queue.lastBaseUpdate = current, firstBaseUpdate === null && (queue.shared.lanes = 0), workInProgressRootSkippedLanes |= lastBaseUpdate, workInProgress$jscomp$0.lanes = lastBaseUpdate, workInProgress$jscomp$0.memoizedState = newState;
}
}
function callCallback(callback, context) {
if (typeof callback != "function")
throw Error(formatProdErrorMessage(191, callback));
callback.call(context);
}
function commitCallbacks(updateQueue, context) {
var callbacks = updateQueue.callbacks;
if (callbacks !== null)
for (updateQueue.callbacks = null, updateQueue = 0; updateQueue < callbacks.length; updateQueue++)
callCallback(callbacks[updateQueue], context);
}
function pushHiddenContext(fiber, context) {
fiber = entangledRenderLanes, push(prevEntangledRenderLanesCursor, fiber), push(currentTreeHiddenStackCursor, context), entangledRenderLanes = fiber | context.baseLanes;
}
function reuseHiddenContextOnStack() {
push(prevEntangledRenderLanesCursor, entangledRenderLanes), push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current);
}
function popHiddenContext() {
entangledRenderLanes = prevEntangledRenderLanesCursor.current, pop(currentTreeHiddenStackCursor), pop(prevEntangledRenderLanesCursor);
}
function pushPrimaryTreeSuspenseHandler(handler) {
var current = handler.alternate;
push(suspenseStackCursor, suspenseStackCursor.current & 1), push(suspenseHandlerStackCursor, handler), shellBoundary === null && (current === null || currentTreeHiddenStackCursor.current !== null || current.memoizedState !== null) && (shellBoundary = handler);
}
function pushDehydratedActivitySuspenseHandler(fiber) {
push(suspenseStackCursor, suspenseStackCursor.current), push(suspenseHandlerStackCursor, fiber), shellBoundary === null && (shellBoundary = fiber);
}
function pushOffscreenSuspenseHandler(fiber) {
fiber.tag === 22 ? (push(suspenseStackCursor, suspenseStackCursor.current), push(suspenseHandlerStackCursor, fiber), shellBoundary === null && (shellBoundary = fiber)) : reuseSuspenseHandlerOnStack(fiber);
}
function reuseSuspenseHandlerOnStack() {
push(suspenseStackCursor, suspenseStackCursor.current), push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);
}
function popSuspenseHandler(fiber) {
pop(suspenseHandlerStackCursor), shellBoundary === fiber && (shellBoundary = null), pop(suspenseStackCursor);
}
function findFirstSuspended(row) {
for (var node = row; node !== null; ) {
if (node.tag === 13) {
var state = node.memoizedState;
if (state !== null && (state = state.dehydrated, state === null || isSuspenseInstancePending(state) || isSuspenseInstanceFallback(state)))
return node;
} else if (node.tag === 19 && (node.memoizedProps.revealOrder === "forwards" || node.memoizedProps.revealOrder === "backwards" || node.memoizedProps.revealOrder === "unstable_legacy-backwards" || node.memoizedProps.revealOrder === "together")) {
if ((node.flags & 128) !== 0) return node;
} else if (node.child !== null) {
node.child.return = node, node = node.child;
continue;
}
if (node === row) break;
for (; node.sibling === null; ) {
if (node.return === null || node.return === row) return null;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
return null;
}
function throwInvalidHookError() {
throw Error(formatProdErrorMessage(321));
}
function areHookInputsEqual(nextDeps, prevDeps) {
if (prevDeps === null) return !1;
for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)
if (!objectIs(nextDeps[i], prevDeps[i])) return !1;
return !0;
}
function renderWithHooks(current, workInProgress2, Component, props, secondArg, nextRenderLanes) {
return renderLanes = nextRenderLanes, currentlyRenderingFiber = workInProgress2, workInProgress2.memoizedState = null, workInProgress2.updateQueue = null, workInProgress2.lanes = 0, ReactSharedInternals.H = current === null || current.memoizedState === null ? HooksDispatcherOnMount : HooksDispatcherOnUpdate, shouldDoubleInvokeUserFnsInHooksDEV = !1, nextRenderLanes = Component(props, secondArg), shouldDoubleInvokeUserFnsInHooksDEV = !1, didScheduleRenderPhaseUpdateDuringThisPass && (nextRenderLanes = renderWithHooksAgain(
workInProgress2,
Component,
props,
secondArg
)), finishRenderingHooks(current), nextRenderLanes;
}
function finishRenderingHooks(current) {
ReactSharedInternals.H = ContextOnlyDispatcher;
var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
if (renderLanes = 0, workInProgressHook = currentHook = currentlyRenderingFiber = null, didScheduleRenderPhaseUpdate = !1, thenableIndexCounter = 0, thenableState = null, didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));
current === null || didReceiveUpdate || (current = current.dependencies, current !== null && checkIfContextChanged(current) && (didReceiveUpdate = !0));
}
function renderWithHooksAgain(workInProgress2, Component, props, secondArg) {
currentlyRenderingFiber = workInProgress2;
var numberOfReRenders = 0;
do {
if (didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null), thenableIndexCounter = 0, didScheduleRenderPhaseUpdateDuringThisPass = !1, 25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));
if (numberOfReRenders += 1, workInProgressHook = currentHook = null, workInProgress2.updateQueue != null) {
var children = workInProgress2.updateQueue;
children.lastEffect = null, children.events = null, children.stores = null, children.memoCache != null && (children.memoCache.index = 0);
}
ReactSharedInternals.H = HooksDispatcherOnRerender, children = Component(props, secondArg);
} while (didScheduleRenderPhaseUpdateDuringThisPass);
return children;
}
function TransitionAwareHostComponent() {
var dispatcher = ReactSharedInternals.H, maybeThenable = dispatcher.useState()[0];
return maybeThenable = typeof maybeThenable.then == "function" ? useThenable(maybeThenable) : maybeThenable, dispatcher = dispatcher.useState()[0], (currentHook !== null ? currentHook.memoizedState : null) !== dispatcher && (currentlyRenderingFiber.flags |= 1024), maybeThenable;
}
function checkDidRenderIdHook() {
var didRenderIdHook = localIdCounter !== 0;
return localIdCounter = 0, didRenderIdHook;
}
function bailoutHooks(current, workInProgress2, lanes) {
workInProgress2.updateQueue = current.updateQueue, workInProgress2.flags &= -2053, current.lanes &= ~lanes;
}
function resetHooksOnUnwind(workInProgress2) {
if (didScheduleRenderPhaseUpdate) {
for (workInProgress2 = workInProgress2.memoizedState; workInProgress2 !== null; ) {
var queue = workInProgress2.queue;
queue !== null && (queue.pending = null), workInProgress2 = workInProgress2.next;
}
didScheduleRenderPhaseUpdate = !1;
}
renderLanes = 0, workInProgressHook = currentHook = currentlyRenderingFiber = null, didScheduleRenderPhaseUpdateDuringThisPass = !1, thenableIndexCounter = localIdCounter = 0, thenableState = null;
}
function mountWorkInProgressHook() {
var hook = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null
};
return workInProgressHook === null ? currentlyRenderingFiber.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook, workInProgressHook;
}
function updateWorkInProgressHook() {
if (currentHook === null) {
var nextCurrentHook = currentlyRenderingFiber.alternate;
nextCurrentHook = nextCurrentHook !== null ? nextCurrentHook.memoizedState : null;
} else nextCurrentHook = currentHook.next;
var nextWorkInProgressHook = workInProgressHook === null ? currentlyRenderingFiber.memoizedState : workInProgressHook.next;
if (nextWorkInProgressHook !== null)
workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;
else {
if (nextCurrentHook === null)
throw currentlyRenderingFiber.alternate === null ? Error(formatProdErrorMessage(467)) : Error(formatProdErrorMessage(310));
currentHook = nextCurrentHook, nextCurrentHook = {
memoizedState: currentHook.memoizedState,
baseState: currentHook.baseState,
baseQueue: currentHook.baseQueue,
queue: currentHook.queue,
next: null
}, workInProgressHook === null ? currentlyRenderingFiber.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook;
}
return workInProgressHook;
}
function createFunctionComponentUpdateQueue() {
return { lastEffect: null, events: null, stores: null, memoCache: null };
}
function useThenable(thenable) {
var index = thenableIndexCounter;
return thenableIndexCounter += 1, thenableState === null && (thenableState = []), thenable = trackUsedThenable(thenableState, thenable, index), index = currentlyRenderingFiber, (workInProgressHook === null ? index.memoizedState : workInProgressHook.next) === null && (index = index.alternate, ReactSharedInternals.H = index === null || index.memoizedState === null ? HooksDispatcherOnMount : HooksDispatcherOnUpdate), thenable;
}
function use(usable) {
if (usable !== null && typeof usable == "object") {
if (typeof usable.then == "function") return useThenable(usable);
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
}
throw Error(formatProdErrorMessage(438, String(usable)));
}
function useMemoCache(size) {
var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue;
if (updateQueue !== null && (memoCache = updateQueue.memoCache), memoCache == null) {
var current = currentlyRenderingFiber.alternate;
current !== null && (current = current.updateQueue, current !== null && (current = current.memoCache, current != null && (memoCache = {
data: current.data.map(function(array) {
return array.slice();
}),
index: 0
})));
}
if (memoCache == null && (memoCache = { data: [], index: 0 }), updateQueue === null && (updateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = updateQueue), updateQueue.memoCache = memoCache, updateQueue = memoCache.data[memoCache.index], updateQueue === void 0)
for (updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0; current < size; current++)
updateQueue[current] = REACT_MEMO_CACHE_SENTINEL;
return memoCache.index++, updateQueue;
}
function basicStateReducer(state, action) {
return typeof action == "function" ? action(state) : action;
}
function updateReducer(reducer2) {
var hook = updateWorkInProgressHook();
return updateReducerImpl(hook, currentHook, reducer2);
}
function updateReducerImpl(hook, current, reducer2) {
var queue = hook.queue;
if (queue === null) throw Error(formatProdErrorMessage(311));
queue.lastRenderedReducer = reducer2;
var baseQueue = hook.baseQueue, pendingQueue = queue.pending;
if (pendingQueue !== null) {
if (baseQueue !== null) {
var baseFirst = baseQueue.next;
baseQueue.next = pendingQueue.next, pendingQueue.next = baseFirst;
}
current.baseQueue = baseQueue = pendingQueue, queue.pending = null;
}
if (pendingQueue = hook.baseState, baseQueue === null) hook.memoizedState = pendingQueue;
else {
current = baseQueue.next;
var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current, didReadFromEntangledAsyncAction$51 = !1;
do {
var updateLane = update.lane & -536870913;
if (updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) {
var revertLane = update.revertLane;
if (revertLane === 0)
newBaseQueueLast !== null && (newBaseQueueLast = newBaseQueueLast.next = {
lane: 0,
revertLane: 0,
gesture: null,
action: update.action,
hasEagerState: update.hasEagerState,
eagerState: update.eagerState,
next: null
}), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction$51 = !0);
else if ((renderLanes & revertLane) === revertLane) {
update = update.next, revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction$51 = !0);
continue;
} else
updateLane = {
lane: 0,
revertLane: update.revertLane,
gesture: null,
action: update.action,
hasEagerState: update.hasEagerState,
eagerState: update.eagerState,
next: null
}, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane;
updateLane = update.action, shouldDoubleInvokeUserFnsInHooksDEV && reducer2(pendingQueue, updateLane), pendingQueue = update.hasEagerState ? update.eagerState : reducer2(pendingQueue, updateLane);
} else
revertLane = {
lane: updateLane,
revertLane: update.revertLane,
gesture: update.gesture,
action: update.action,
hasEagerState: update.hasEagerState,
eagerState: update.eagerState,
next: null
}, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane, currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane;
update = update.next;
} while (update !== null && update !== current);
if (newBaseQueueLast === null ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst, !objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = !0, didReadFromEntangledAsyncAction$51 && (reducer2 = currentEntangledActionThenable, reducer2 !== null)))
throw reducer2;
hook.memoizedState = pendingQueue, hook.baseState = baseFirst, hook.baseQueue = newBaseQueueLast, queue.lastRenderedState = pendingQueue;
}
return baseQueue === null && (queue.lanes = 0), [hook.memoizedState, queue.dispatch];
}
function rerenderReducer(reducer2) {
var hook = updateWorkInProgressHook(), queue = hook.queue;
if (queue === null) throw Error(formatProdErrorMessage(311));
queue.lastRenderedReducer = reducer2;
var dispatch = queue.dispatch, lastRenderPhaseUpdate = queue.pending, newState = hook.memoizedState;
if (lastRenderPhaseUpdate !== null) {
queue.pending = null;
var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
do
newState = reducer2(newState, update.action), update = update.next;
while (update !== lastRenderPhaseUpdate);
objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0), hook.memoizedState = newState, hook.baseQueue === null && (hook.baseState = newState), queue.lastRenderedState = newState;
}
return [newState, dispatch];
}
function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
var fiber = currentlyRenderingFiber, hook = updateWorkInProgressHook(), isHydrating$jscomp$0 = isHydrating;
if (isHydrating$jscomp$0) {
if (getServerSnapshot === void 0)
throw Error(formatProdErrorMessage(407));
getServerSnapshot = getServerSnapshot();
} else getServerSnapshot = getSnapshot();
var snapshotChanged = !objectIs(
(currentHook || hook).memoizedState,
getServerSnapshot
);
if (snapshotChanged && (hook.memoizedState = getServerSnapshot, didReceiveUpdate = !0), hook = hook.queue, updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
subscribe
]), hook.getSnapshot !== getSnapshot || snapshotChanged || workInProgressHook !== null && workInProgressHook.memoizedState.tag & 1) {
if (fiber.flags |= 2048, pushSimpleEffect(
9,
{ destroy: void 0 },
updateStoreInstance.bind(
null,
fiber,
hook,
getServerSnapshot,
getSnapshot
),
null
), workInProgressRoot === null) throw Error(formatProdErrorMessage(349));
isHydrating$jscomp$0 || (renderLanes & 127) !== 0 || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
}
return getServerSnapshot;
}
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
fiber.flags |= 16384, fiber = { getSnapshot, value: renderedSnapshot }, getSnapshot = currentlyRenderingFiber.updateQueue, getSnapshot === null ? (getSnapshot = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, renderedSnapshot === null ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber));
}
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
inst.value = nextSnapshot, inst.getSnapshot = getSnapshot, checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
}
function subscribeToStore(fiber, inst, subscribe) {
return subscribe(function() {
checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
});
}
function checkIfSnapshotChanged(inst) {
var latestGetSnapshot = inst.getSnapshot;
inst = inst.value;
try {
var nextValue = latestGetSnapshot();
return !objectIs(inst, nextValue);
} catch {
return !0;
}
}
function forceStoreRerender(fiber) {
var root = enqueueConcurrentRenderForLane(fiber, 2);
root !== null && scheduleUpdateOnFiber(root, fiber, 2);
}
function mountStateImpl(initialState) {
var hook = mountWorkInProgressHook();
if (typeof initialState == "function") {
var initialStateInitializer = initialState;
if (initialState = initialStateInitializer(), shouldDoubleInvokeUserFnsInHooksDEV) {
setIsStrictModeForDevtools(!0);
try {
initialStateInitializer();
} finally {
setIsStrictModeForDevtools(!1);
}
}
}
return hook.memoizedState = hook.baseState = initialState, hook.queue = {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: basicStateReducer,
lastRenderedState: initialState
}, hook;
}
function updateOptimisticImpl(hook, current, passthrough, reducer2) {
return hook.baseState = passthrough, updateReducerImpl(
hook,
currentHook,
typeof reducer2 == "function" ? reducer2 : basicStateReducer
);
}
function dispatchActionState(fiber, actionQueue, setPendingState, setState, payload) {
if (isRenderPhaseUpdate(fiber)) throw Error(formatProdErrorMessage(485));
if (fiber = actionQueue.action, fiber !== null) {
var actionNode = {
payload,
action: fiber,
next: null,
isTransition: !0,
status: "pending",
value: null,
reason: null,
listeners: [],
then: function(listener) {
actionNode.listeners.push(listener);
}
};
ReactSharedInternals.T !== null ? setPendingState(!0) : actionNode.isTransition = !1, setState(actionNode), setPendingState = actionQueue.pending, setPendingState === null ? (actionNode.next = actionQueue.pending = actionNode, runActionStateAction(actionQueue, actionNode)) : (actionNode.next = setPendingState.next, actionQueue.pending = setPendingState.next = actionNode);
}
}
function runActionStateAction(actionQueue, node) {
var action = node.action, payload = node.payload, prevState = actionQueue.state;
if (node.isTransition) {
var prevTransition = ReactSharedInternals.T, currentTransition = {};
ReactSharedInternals.T = currentTransition;
try {
var returnValue = action(prevState, payload), onStartTransitionFinish = ReactSharedInternals.S;
onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue), handleActionReturnValue(actionQueue, node, returnValue);
} catch (error) {
onActionError(actionQueue, node, error);
} finally {
prevTransition !== null && currentTransition.types !== null && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
}
} else
try {
prevTransition = action(prevState, payload), handleActionReturnValue(actionQueue, node, prevTransition);
} catch (error$55) {
onActionError(actionQueue, node, error$55);
}
}
function handleActionReturnValue(actionQueue, node, returnValue) {
returnValue !== null && typeof returnValue == "object" && typeof returnValue.then == "function" ? returnValue.then(
function(nextState) {
onActionSuccess(actionQueue, node, nextState);
},
function(error) {
return onActionError(actionQueue, node, error);
}
) : onActionSuccess(actionQueue, node, returnValue);
}
function onActionSuccess(actionQueue, actionNode, nextState) {
actionNode.status = "fulfilled", actionNode.value = nextState, notifyActionListeners(actionNode), actionQueue.state = nextState, actionNode = actionQueue.pending, actionNode !== null && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState)));
}
function onActionError(actionQueue, actionNode, error) {
var last = actionQueue.pending;
if (actionQueue.pending = null, last !== null) {
last = last.next;
do
actionNode.status = "rejected", actionNode.reason = error, notifyActionListeners(actionNode), actionNode = actionNode.next;
while (actionNode !== last);
}
actionQueue.action = null;
}
function notifyActionListeners(actionNode) {
actionNode = actionNode.listeners;
for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])();
}
function actionStateReducer(oldState, newState) {
return newState;
}
function mountActionState(action, initialStateProp) {
if (isHydrating) {
var ssrFormState = workInProgressRoot.formState;
if (ssrFormState !== null) {
a: {
var JSCompiler_inline_result = currentlyRenderingFiber;
if (isHydrating) {
if (nextHydratableInstance) {
var markerInstance = canHydrateFormStateMarker(
nextHydratableInstance,
rootOrSingletonContext
);
if (markerInstance) {
nextHydratableInstance = getNextHydratableSibling(markerInstance), JSCompiler_inline_result = isFormStateMarkerMatching(markerInstance);
break a;
}
}
throwOnHydrationMismatch(JSCompiler_inline_result);
}
JSCompiler_inline_result = !1;
}
JSCompiler_inline_result && (initialStateProp = ssrFormState[0]);
}
}
ssrFormState = mountWorkInProgressHook(), ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp, JSCompiler_inline_result = {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: actionStateReducer,
lastRenderedState: initialStateProp
}, ssrFormState.queue = JSCompiler_inline_result, ssrFormState = dispatchSetState.bind(
null,
currentlyRenderingFiber,
JSCompiler_inline_result
), JSCompiler_inline_result.dispatch = ssrFormState, JSCompiler_inline_result = mountStateImpl(!1);
var setPendingState = dispatchOptimisticSetState.bind(
null,
currentlyRenderingFiber,
!1,
JSCompiler_inline_result.queue
);
return JSCompiler_inline_result = mountWorkInProgressHook(), markerInstance = {
state: initialStateProp,
dispatch: null,
action,
pending: null
}, JSCompiler_inline_result.queue = markerInstance, ssrFormState = dispatchActionState.bind(
null,
currentlyRenderingFiber,
markerInstance,
setPendingState,
ssrFormState
), markerInstance.dispatch = ssrFormState, JSCompiler_inline_result.memoizedState = action, [initialStateProp, ssrFormState, !1];
}
function updateActionState(action) {
var stateHook = updateWorkInProgressHook();
return updateActionStateImpl(stateHook, currentHook, action);
}
function updateActionStateImpl(stateHook, currentStateHook, action) {
if (currentStateHook = updateReducerImpl(
stateHook,
currentStateHook,
actionStateReducer
)[0], stateHook = updateReducer(basicStateReducer)[0], typeof currentStateHook == "object" && currentStateHook !== null && typeof currentStateHook.then == "function")
try {
var state = useThenable(currentStateHook);
} catch (x) {
throw x === SuspenseException ? SuspenseActionException : x;
}
else state = currentStateHook;
currentStateHook = updateWorkInProgressHook();
var actionQueue = currentStateHook.queue, dispatch = actionQueue.dispatch;
return action !== currentStateHook.memoizedState && (currentlyRenderingFiber.flags |= 2048, pushSimpleEffect(
9,
{ destroy: void 0 },
actionStateActionEffect.bind(null, actionQueue, action),
null
)), [state, dispatch, stateHook];
}
function actionStateActionEffect(actionQueue, action) {
actionQueue.action = action;
}
function rerenderActionState(action) {
var stateHook = updateWorkInProgressHook(), currentStateHook = currentHook;
if (currentStateHook !== null)
return updateActionStateImpl(stateHook, currentStateHook, action);
updateWorkInProgressHook(), stateHook = stateHook.memoizedState, currentStateHook = updateWorkInProgressHook();
var dispatch = currentStateHook.queue.dispatch;
return currentStateHook.memoizedState = action, [stateHook, dispatch, !1];
}
function pushSimpleEffect(tag, inst, create3, deps) {
return tag = { tag, create: create3, deps, inst, next: null }, inst = currentlyRenderingFiber.updateQueue, inst === null && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst), create3 = inst.lastEffect, create3 === null ? inst.lastEffect = tag.next = tag : (deps = create3.next, create3.next = tag, tag.next = deps, inst.lastEffect = tag), tag;
}
function updateRef() {
return updateWorkInProgressHook().memoizedState;
}
function mountEffectImpl(fiberFlags, hookFlags, create3, deps) {
var hook = mountWorkInProgressHook();
currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(
1 | hookFlags,
{ destroy: void 0 },
create3,
deps === void 0 ? null : deps
);
}
function updateEffectImpl(fiberFlags, hookFlags, create3, deps) {
var hook = updateWorkInProgressHook();
deps = deps === void 0 ? null : deps;
var inst = hook.memoizedState.inst;
currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create3, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(
1 | hookFlags,
inst,
create3,
deps
));
}
function mountEffect(create3, deps) {
mountEffectImpl(8390656, 8, create3, deps);
}
function updateEffect(create3, deps) {
updateEffectImpl(2048, 8, create3, deps);
}
function useEffectEventImpl(payload) {
currentlyRenderingFiber.flags |= 4;
var componentUpdateQueue = currentlyRenderingFiber.updateQueue;
if (componentUpdateQueue === null)
componentUpdateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = componentUpdateQueue, componentUpdateQueue.events = [payload];
else {
var events = componentUpdateQueue.events;
events === null ? componentUpdateQueue.events = [payload] : events.push(payload);
}
}
function updateEvent(callback) {
var ref = updateWorkInProgressHook().memoizedState;
return useEffectEventImpl({ ref, nextImpl: callback }), function() {
if ((executionContext & 2) !== 0)
throw Error(formatProdErrorMessage(440));
return ref.impl.apply(void 0, arguments);
};
}
function updateInsertionEffect(create3, deps) {
return updateEffectImpl(4, 2, create3, deps);
}
function updateLayoutEffect(create3, deps) {
return updateEffectImpl(4, 4, create3, deps);
}
function imperativeHandleEffect(create3, ref) {
if (typeof ref == "function") {
create3 = create3();
var refCleanup = ref(create3);
return function() {
typeof refCleanup == "function" ? refCleanup() : ref(null);
};
}
if (ref != null)
return create3 = create3(), ref.current = create3, function() {
ref.current = null;
};
}
function updateImperativeHandle(ref, create3, deps) {
deps = deps != null ? deps.concat([ref]) : null, updateEffectImpl(
4,
4,
imperativeHandleEffect.bind(null, create3, ref),
deps
);
}
function mountDebugValue() {
}
function updateCallback(callback, deps) {
var hook = updateWorkInProgressHook();
deps = deps === void 0 ? null : deps;
var prevState = hook.memoizedState;
return deps !== null && areHookInputsEqual(deps, prevState[1]) ? prevState[0] : (hook.memoizedState = [callback, deps], callback);
}
function updateMemo(nextCreate, deps) {
var hook = updateWorkInProgressHook();
deps = deps === void 0 ? null : deps;
var prevState = hook.memoizedState;
if (deps !== null && areHookInputsEqual(deps, prevState[1]))
return prevState[0];
if (prevState = nextCreate(), shouldDoubleInvokeUserFnsInHooksDEV) {
setIsStrictModeForDevtools(!0);
try {
nextCreate();
} finally {
setIsStrictModeForDevtools(!1);
}
}
return hook.memoizedState = [prevState, deps], prevState;
}
function mountDeferredValueImpl(hook, value, initialValue) {
return initialValue === void 0 || (renderLanes & 1073741824) !== 0 && (workInProgressRootRenderLanes & 261930) === 0 ? hook.memoizedState = value : (hook.memoizedState = initialValue, hook = requestDeferredLane(), currentlyRenderingFiber.lanes |= hook, workInProgressRootSkippedLanes |= hook, initialValue);
}
function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
return objectIs(value, prevValue) ? value : currentTreeHiddenStackCursor.current !== null ? (hook = mountDeferredValueImpl(hook, value, initialValue), objectIs(hook, prevValue) || (didReceiveUpdate = !0), hook) : (renderLanes & 42) === 0 || (renderLanes & 1073741824) !== 0 && (workInProgressRootRenderLanes & 261930) === 0 ? (didReceiveUpdate = !0, hook.memoizedState = value) : (hook = requestDeferredLane(), currentlyRenderingFiber.lanes |= hook, workInProgressRootSkippedLanes |= hook, prevValue);
}
function startTransition(fiber, queue, pendingState, finishedState, callback) {
var previousPriority = getCurrentUpdatePriority();
setCurrentUpdatePriority(
previousPriority !== 0 && 8 > previousPriority ? previousPriority : 8
);
var prevTransition = ReactSharedInternals.T, currentTransition = {};
ReactSharedInternals.T = currentTransition, dispatchOptimisticSetState(fiber, !1, queue, pendingState);
try {
var returnValue = callback(), onStartTransitionFinish = ReactSharedInternals.S;
if (onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue), returnValue !== null && typeof returnValue == "object" && typeof returnValue.then == "function") {
var thenableForFinishedState = chainThenableValue(
returnValue,
finishedState
);
dispatchSetStateInternal(
fiber,
queue,
thenableForFinishedState,
requestUpdateLane(fiber)
);
} else
dispatchSetStateInternal(
fiber,
queue,
finishedState,
requestUpdateLane(fiber)
);
} catch (error) {
dispatchSetStateInternal(
fiber,
queue,
{ then: function() {
}, status: "rejected", reason: error },
requestUpdateLane()
);
} finally {
setCurrentUpdatePriority(previousPriority), prevTransition !== null && currentTransition.types !== null && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
}
}
function ensureFormComponentIsStateful(formFiber) {
var existingStateHook = formFiber.memoizedState;
if (existingStateHook !== null) return existingStateHook;
existingStateHook = {
memoizedState: NotPendingTransition,
baseState: NotPendingTransition,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: basicStateReducer,
lastRenderedState: NotPendingTransition
},
next: null
};
var initialResetState = {};
return existingStateHook.next = {
memoizedState: initialResetState,
baseState: initialResetState,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: basicStateReducer,
lastRenderedState: initialResetState
},
next: null
}, formFiber.memoizedState = existingStateHook, formFiber = formFiber.alternate, formFiber !== null && (formFiber.memoizedState = existingStateHook), existingStateHook;
}
function useHostTransitionStatus() {
return readContext(HostTransitionContext);
}
function updateId() {
return updateWorkInProgressHook().memoizedState;
}
function updateRefresh() {
return updateWorkInProgressHook().memoizedState;
}
function refreshCache(fiber) {
for (var provider = fiber.return; provider !== null; ) {
switch (provider.tag) {
case 24:
case 3:
var lane = requestUpdateLane();
fiber = createUpdate(lane);
var root = enqueueUpdate(provider, fiber, lane);
root !== null && (scheduleUpdateOnFiber(root, provider, lane), entangleTransitions(root, provider, lane)), provider = { cache: createCache() }, fiber.payload = provider;
return;
}
provider = provider.return;
}
}
function dispatchReducerAction(fiber, queue, action) {
var lane = requestUpdateLane();
action = {
lane,
revertLane: 0,
gesture: null,
action,
hasEagerState: !1,
eagerState: null,
next: null
}, isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, action) : (action = enqueueConcurrentHookUpdate(fiber, queue, action, lane), action !== null && (scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane)));
}
function dispatchSetState(fiber, queue, action) {
var lane = requestUpdateLane();
dispatchSetStateInternal(fiber, queue, action, lane);
}
function dispatchSetStateInternal(fiber, queue, action, lane) {
var update = {
lane,
revertLane: 0,
gesture: null,
action,
hasEagerState: !1,
eagerState: null,
next: null
};
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
else {
var alternate = fiber.alternate;
if (fiber.lanes === 0 && (alternate === null || alternate.lanes === 0) && (alternate = queue.lastRenderedReducer, alternate !== null))
try {
var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action);
if (update.hasEagerState = !0, update.eagerState = eagerState, objectIs(eagerState, currentState))
return enqueueUpdate$1(fiber, queue, update, 0), workInProgressRoot === null && finishQueueingConcurrentUpdates(), !1;
} catch {
}
if (action = enqueueConcurrentHookUpdate(fiber, queue, update, lane), action !== null)
return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), !0;
}
return !1;
}
function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) {
if (action = {
lane: 2,
revertLane: requestTransitionLane(),
gesture: null,
action,
hasEagerState: !1,
eagerState: null,
next: null
}, isRenderPhaseUpdate(fiber)) {
if (throwIfDuringRender) throw Error(formatProdErrorMessage(479));
} else
throwIfDuringRender = enqueueConcurrentHookUpdate(
fiber,
queue,
action,
2
), throwIfDuringRender !== null && scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2);
}
function isRenderPhaseUpdate(fiber) {
var alternate = fiber.alternate;
return fiber === currentlyRenderingFiber || alternate !== null && alternate === currentlyRenderingFiber;
}
function enqueueRenderPhaseUpdate(queue, update) {
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
var pending = queue.pending;
pending === null ? update.next = update : (update.next = pending.next, pending.next = update), queue.pending = update;
}
function entangleTransitionUpdate(root, queue, lane) {
if ((lane & 4194048) !== 0) {
var queueLanes = queue.lanes;
queueLanes &= root.pendingLanes, lane |= queueLanes, queue.lanes = lane, markRootEntangled(root, lane);
}
}
function applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, nextProps) {
ctor = workInProgress2.memoizedState, getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor), getDerivedStateFromProps = getDerivedStateFromProps == null ? ctor : assign({}, ctor, getDerivedStateFromProps), workInProgress2.memoizedState = getDerivedStateFromProps, workInProgress2.lanes === 0 && (workInProgress2.updateQueue.baseState = getDerivedStateFromProps);
}
function checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) {
return workInProgress2 = workInProgress2.stateNode, typeof workInProgress2.shouldComponentUpdate == "function" ? workInProgress2.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0;
}
function callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext) {
workInProgress2 = instance.state, typeof instance.componentWillReceiveProps == "function" && instance.componentWillReceiveProps(newProps, nextContext), typeof instance.UNSAFE_componentWillReceiveProps == "function" && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext), instance.state !== workInProgress2 && classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
}
function resolveClassComponentProps(Component, baseProps) {
var newProps = baseProps;
if ("ref" in baseProps) {
newProps = {};
for (var propName in baseProps)
propName !== "ref" && (newProps[propName] = baseProps[propName]);
}
if (Component = Component.defaultProps) {
newProps === baseProps && (newProps = assign({}, newProps));
for (var propName$57 in Component)
newProps[propName$57] === void 0 && (newProps[propName$57] = Component[propName$57]);
}
return newProps;
}
function logUncaughtError(root, errorInfo) {
try {
var onUncaughtError = root.onUncaughtError;
onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });
} catch (e) {
setTimeout(function() {
throw e;
});
}
}
function logCaughtError(root, boundary, errorInfo) {
try {
var onCaughtError = root.onCaughtError;
onCaughtError(errorInfo.value, {
componentStack: errorInfo.stack,
errorBoundary: boundary.tag === 1 ? boundary.stateNode : null
});
} catch (e) {
setTimeout(function() {
throw e;
});
}
}
function createRootErrorUpdate(root, errorInfo, lane) {
return lane = createUpdate(lane), lane.tag = 3, lane.payload = { element: null }, lane.callback = function() {
logUncaughtError(root, errorInfo);
}, lane;
}
function createClassErrorUpdate(lane) {
return lane = createUpdate(lane), lane.tag = 3, lane;
}
function initializeClassErrorUpdate(update, root, fiber, errorInfo) {
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
if (typeof getDerivedStateFromError == "function") {
var error = errorInfo.value;
update.payload = function() {
return getDerivedStateFromError(error);
}, update.callback = function() {
logCaughtError(root, fiber, errorInfo);
};
}
var inst = fiber.stateNode;
inst !== null && typeof inst.componentDidCatch == "function" && (update.callback = function() {
logCaughtError(root, fiber, errorInfo), typeof getDerivedStateFromError != "function" && (legacyErrorBoundariesThatAlreadyFailed === null ? legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this));
var stack = errorInfo.stack;
this.componentDidCatch(errorInfo.value, {
componentStack: stack !== null ? stack : ""
});
});
}
function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {
if (sourceFiber.flags |= 32768, value !== null && typeof value == "object" && typeof value.then == "function") {
if (returnFiber = sourceFiber.alternate, returnFiber !== null && propagateParentContextChanges(
returnFiber,
sourceFiber,
rootRenderLanes,
!0
), sourceFiber = suspenseHandlerStackCursor.current, sourceFiber !== null) {
switch (sourceFiber.tag) {
case 31:
case 13:
return shellBoundary === null ? renderDidSuspendDelayIfPossible() : sourceFiber.alternate === null && workInProgressRootExitStatus === 0 && (workInProgressRootExitStatus = 3), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, returnFiber === null ? sourceFiber.updateQueue = /* @__PURE__ */ new Set([value]) : returnFiber.add(value), attachPingListener(root, value, rootRenderLanes)), !1;
case 22:
return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, returnFiber === null ? (returnFiber = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([value])
}, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, sourceFiber === null ? returnFiber.retryQueue = /* @__PURE__ */ new Set([value]) : sourceFiber.add(value)), attachPingListener(root, value, rootRenderLanes)), !1;
}
throw Error(formatProdErrorMessage(435, sourceFiber.tag));
}
return attachPingListener(root, value, rootRenderLanes), renderDidSuspendDelayIfPossible(), !1;
}
if (isHydrating)
return returnFiber = suspenseHandlerStackCursor.current, returnFiber !== null ? ((returnFiber.flags & 65536) === 0 && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && (root = Error(formatProdErrorMessage(422), { cause: value }), queueHydrationError(
createCapturedValueAtFiber(root, sourceFiber)
))) : (value !== HydrationMismatchException && (returnFiber = Error(formatProdErrorMessage(423), {
cause: value
}), queueHydrationError(
createCapturedValueAtFiber(returnFiber, sourceFiber)
)), root = root.current.alternate, root.flags |= 65536, rootRenderLanes &= -rootRenderLanes, root.lanes |= rootRenderLanes, value = createCapturedValueAtFiber(value, sourceFiber), rootRenderLanes = createRootErrorUpdate(
root.stateNode,
value,
rootRenderLanes
), enqueueCapturedUpdate(root, rootRenderLanes), workInProgressRootExitStatus !== 4 && (workInProgressRootExitStatus = 2)), !1;
var wrapperError = Error(formatProdErrorMessage(520), { cause: value });
if (wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber), workInProgressRootConcurrentErrors === null ? workInProgressRootConcurrentErrors = [wrapperError] : workInProgressRootConcurrentErrors.push(wrapperError), workInProgressRootExitStatus !== 4 && (workInProgressRootExitStatus = 2), returnFiber === null) return !0;
value = createCapturedValueAtFiber(value, sourceFiber), sourceFiber = returnFiber;
do {
switch (sourceFiber.tag) {
case 3:
return sourceFiber.flags |= 65536, root = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root, root = createRootErrorUpdate(sourceFiber.stateNode, value, root), enqueueCapturedUpdate(sourceFiber, root), !1;
case 1:
if (returnFiber = sourceFiber.type, wrapperError = sourceFiber.stateNode, (sourceFiber.flags & 128) === 0 && (typeof returnFiber.getDerivedStateFromError == "function" || wrapperError !== null && typeof wrapperError.componentDidCatch == "function" && (legacyErrorBoundariesThatAlreadyFailed === null || !legacyErrorBoundariesThatAlreadyFailed.has(
wrapperError
))))
return sourceFiber.flags |= 65536, rootRenderLanes &= -rootRenderLanes, sourceFiber.lanes |= rootRenderLanes, rootRenderLanes = createClassErrorUpdate(rootRenderLanes), initializeClassErrorUpdate(
rootRenderLanes,
root,
sourceFiber,
value
), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), !1;
}
sourceFiber = sourceFiber.return;
} while (sourceFiber !== null);
return !1;
}
function reconcileChildren(current, workInProgress2, nextChildren, renderLanes2) {
workInProgress2.child = current === null ? mountChildFibers(workInProgress2, null, nextChildren, renderLanes2) : reconcileChildFibers(
workInProgress2,
current.child,
nextChildren,
renderLanes2
);
}
function updateForwardRef(current, workInProgress2, Component, nextProps, renderLanes2) {
Component = Component.render;
var ref = workInProgress2.ref;
if ("ref" in nextProps) {
var propsWithoutRef = {};
for (var key in nextProps)
key !== "ref" && (propsWithoutRef[key] = nextProps[key]);
} else propsWithoutRef = nextProps;
return prepareToReadContext(workInProgress2), nextProps = renderWithHooks(
current,
workInProgress2,
Component,
propsWithoutRef,
ref,
renderLanes2
), key = checkDidRenderIdHook(), current !== null && !didReceiveUpdate ? (bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2)) : (isHydrating && key && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, nextProps, renderLanes2), workInProgress2.child);
}
function updateMemoComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
if (current === null) {
var type = Component.type;
return typeof type == "function" && !shouldConstruct(type) && type.defaultProps === void 0 && Component.compare === null ? (workInProgress2.tag = 15, workInProgress2.type = type, updateSimpleMemoComponent(
current,
workInProgress2,
type,
nextProps,
renderLanes2
)) : (current = createFiberFromTypeAndProps(
Component.type,
null,
nextProps,
workInProgress2,
workInProgress2.mode,
renderLanes2
), current.ref = workInProgress2.ref, current.return = workInProgress2, workInProgress2.child = current);
}
if (type = current.child, !checkScheduledUpdateOrContext(current, renderLanes2)) {
var prevProps = type.memoizedProps;
if (Component = Component.compare, Component = Component !== null ? Component : shallowEqual, Component(prevProps, nextProps) && current.ref === workInProgress2.ref)
return bailoutOnAlreadyFinishedWork(
current,
workInProgress2,
renderLanes2
);
}
return workInProgress2.flags |= 1, current = createWorkInProgress(type, nextProps), current.ref = workInProgress2.ref, current.return = workInProgress2, workInProgress2.child = current;
}
function updateSimpleMemoComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
if (current !== null) {
var prevProps = current.memoizedProps;
if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress2.ref)
if (didReceiveUpdate = !1, workInProgress2.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes2))
(current.flags & 131072) !== 0 && (didReceiveUpdate = !0);
else
return workInProgress2.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
}
return updateFunctionComponent(
current,
workInProgress2,
Component,
nextProps,
renderLanes2
);
}
function updateOffscreenComponent(current, workInProgress2, renderLanes2, nextProps) {
var nextChildren = nextProps.children, prevState = current !== null ? current.memoizedState : null;
if (current === null && workInProgress2.stateNode === null && (workInProgress2.stateNode = {
_visibility: 1,
_pendingMarkers: null,
_retryCache: null,
_transitions: null
}), nextProps.mode === "hidden") {
if ((workInProgress2.flags & 128) !== 0) {
if (prevState = prevState !== null ? prevState.baseLanes | renderLanes2 : renderLanes2, current !== null) {
for (nextProps = workInProgress2.child = current.child, nextChildren = 0; nextProps !== null; )
nextChildren = nextChildren | nextProps.lanes | nextProps.childLanes, nextProps = nextProps.sibling;
nextProps = nextChildren & ~prevState;
} else nextProps = 0, workInProgress2.child = null;
return deferHiddenOffscreenComponent(
current,
workInProgress2,
prevState,
renderLanes2,
nextProps
);
}
if ((renderLanes2 & 536870912) !== 0)
workInProgress2.memoizedState = { baseLanes: 0, cachePool: null }, current !== null && pushTransition(
workInProgress2,
prevState !== null ? prevState.cachePool : null
), prevState !== null ? pushHiddenContext(workInProgress2, prevState) : reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress2);
else
return nextProps = workInProgress2.lanes = 536870912, deferHiddenOffscreenComponent(
current,
workInProgress2,
prevState !== null ? prevState.baseLanes | renderLanes2 : renderLanes2,
renderLanes2,
nextProps
);
} else
prevState !== null ? (pushTransition(workInProgress2, prevState.cachePool), pushHiddenContext(workInProgress2, prevState), reuseSuspenseHandlerOnStack(workInProgress2), workInProgress2.memoizedState = null) : (current !== null && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(), reuseSuspenseHandlerOnStack(workInProgress2));
return reconcileChildren(current, workInProgress2, nextChildren, renderLanes2), workInProgress2.child;
}
function bailoutOffscreenComponent(current, workInProgress2) {
return current !== null && current.tag === 22 || workInProgress2.stateNode !== null || (workInProgress2.stateNode = {
_visibility: 1,
_pendingMarkers: null,
_retryCache: null,
_transitions: null
}), workInProgress2.sibling;
}
function deferHiddenOffscreenComponent(current, workInProgress2, nextBaseLanes, renderLanes2, remainingChildLanes) {
var JSCompiler_inline_result = peekCacheFromPool();
return JSCompiler_inline_result = JSCompiler_inline_result === null ? null : {
parent: isPrimaryRenderer ? CacheContext._currentValue : CacheContext._currentValue2,
pool: JSCompiler_inline_result
}, workInProgress2.memoizedState = {
baseLanes: nextBaseLanes,
cachePool: JSCompiler_inline_result
}, current !== null && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress2), current !== null && propagateParentContextChanges(current, workInProgress2, renderLanes2, !0), workInProgress2.childLanes = remainingChildLanes, null;
}
function mountActivityChildren(workInProgress2, nextProps) {
return nextProps = mountWorkInProgressOffscreenFiber(
{ mode: nextProps.mode, children: nextProps.children },
workInProgress2.mode
), nextProps.ref = workInProgress2.ref, workInProgress2.child = nextProps, nextProps.return = workInProgress2, nextProps;
}
function retryActivityComponentWithoutHydrating(current, workInProgress2, renderLanes2) {
return reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), current = mountActivityChildren(
workInProgress2,
workInProgress2.pendingProps
), current.flags |= 2, popSuspenseHandler(workInProgress2), workInProgress2.memoizedState = null, current;
}
function updateActivityComponent(current, workInProgress2, renderLanes2) {
var nextProps = workInProgress2.pendingProps, didSuspend = (workInProgress2.flags & 128) !== 0;
if (workInProgress2.flags &= -129, current === null) {
if (isHydrating) {
if (nextProps.mode === "hidden")
return current = mountActivityChildren(workInProgress2, nextProps), workInProgress2.lanes = 536870912, bailoutOffscreenComponent(null, current);
if (pushDehydratedActivitySuspenseHandler(workInProgress2), (current = nextHydratableInstance) ? (current = canHydrateActivityInstance(
current,
rootOrSingletonContext
), current !== null && (workInProgress2.memoizedState = {
dehydrated: current,
treeContext: treeContextProvider !== null ? { id: treeContextId, overflow: treeContextOverflow } : null,
retryLane: 536870912,
hydrationErrors: null
}, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null, current === null) throw throwOnHydrationMismatch(workInProgress2);
return workInProgress2.lanes = 536870912, null;
}
return mountActivityChildren(workInProgress2, nextProps);
}
var prevState = current.memoizedState;
if (prevState !== null) {
var dehydrated = prevState.dehydrated;
if (pushDehydratedActivitySuspenseHandler(workInProgress2), didSuspend)
if (workInProgress2.flags & 256)
workInProgress2.flags &= -257, workInProgress2 = retryActivityComponentWithoutHydrating(
current,
workInProgress2,
renderLanes2
);
else if (workInProgress2.memoizedState !== null)
workInProgress2.child = current.child, workInProgress2.flags |= 128, workInProgress2 = null;
else throw Error(formatProdErrorMessage(558));
else if (didReceiveUpdate || propagateParentContextChanges(
current,
workInProgress2,
renderLanes2,
!1
), didSuspend = (renderLanes2 & current.childLanes) !== 0, didReceiveUpdate || didSuspend) {
if (nextProps = workInProgressRoot, nextProps !== null && (dehydrated = getBumpedLaneForHydration(nextProps, renderLanes2), dehydrated !== 0 && dehydrated !== prevState.retryLane))
throw prevState.retryLane = dehydrated, enqueueConcurrentRenderForLane(current, dehydrated), scheduleUpdateOnFiber(nextProps, current, dehydrated), SelectiveHydrationException;
renderDidSuspendDelayIfPossible(), workInProgress2 = retryActivityComponentWithoutHydrating(
current,
workInProgress2,
renderLanes2
);
} else
current = prevState.treeContext, supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinActivityInstance(dehydrated), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, current !== null && restoreSuspendedTreeContext(workInProgress2, current)), workInProgress2 = mountActivityChildren(workInProgress2, nextProps), workInProgress2.flags |= 4096;
return workInProgress2;
}
return current = createWorkInProgress(current.child, {
mode: nextProps.mode,
children: nextProps.children
}), current.ref = workInProgress2.ref, workInProgress2.child = current, current.return = workInProgress2, current;
}
function markRef(current, workInProgress2) {
var ref = workInProgress2.ref;
if (ref === null)
current !== null && current.ref !== null && (workInProgress2.flags |= 4194816);
else {
if (typeof ref != "function" && typeof ref != "object")
throw Error(formatProdErrorMessage(284));
(current === null || current.ref !== ref) && (workInProgress2.flags |= 4194816);
}
}
function updateFunctionComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
return prepareToReadContext(workInProgress2), Component = renderWithHooks(
current,
workInProgress2,
Component,
nextProps,
void 0,
renderLanes2
), nextProps = checkDidRenderIdHook(), current !== null && !didReceiveUpdate ? (bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2)) : (isHydrating && nextProps && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, Component, renderLanes2), workInProgress2.child);
}
function replayFunctionComponent(current, workInProgress2, nextProps, Component, secondArg, renderLanes2) {
return prepareToReadContext(workInProgress2), workInProgress2.updateQueue = null, nextProps = renderWithHooksAgain(
workInProgress2,
Component,
nextProps,
secondArg
), finishRenderingHooks(current), Component = checkDidRenderIdHook(), current !== null && !didReceiveUpdate ? (bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2)) : (isHydrating && Component && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, nextProps, renderLanes2), workInProgress2.child);
}
function updateClassComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
if (prepareToReadContext(workInProgress2), workInProgress2.stateNode === null) {
var context = emptyContextObject, contextType = Component.contextType;
typeof contextType == "object" && contextType !== null && (context = readContext(contextType)), context = new Component(nextProps, context), workInProgress2.memoizedState = context.state !== null && context.state !== void 0 ? context.state : null, context.updater = classComponentUpdater, workInProgress2.stateNode = context, context._reactInternals = workInProgress2, context = workInProgress2.stateNode, context.props = nextProps, context.state = workInProgress2.memoizedState, context.refs = {}, initializeUpdateQueue(workInProgress2), contextType = Component.contextType, context.context = typeof contextType == "object" && contextType !== null ? readContext(contextType) : emptyContextObject, context.state = workInProgress2.memoizedState, contextType = Component.getDerivedStateFromProps, typeof contextType == "function" && (applyDerivedStateFromProps(
workInProgress2,
Component,
contextType,
nextProps
), context.state = workInProgress2.memoizedState), typeof Component.getDerivedStateFromProps == "function" || typeof context.getSnapshotBeforeUpdate == "function" || typeof context.UNSAFE_componentWillMount != "function" && typeof context.componentWillMount != "function" || (contextType = context.state, typeof context.componentWillMount == "function" && context.componentWillMount(), typeof context.UNSAFE_componentWillMount == "function" && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(
context,
context.state,
null
), processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress2.memoizedState), typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308), nextProps = !0;
} else if (current === null) {
context = workInProgress2.stateNode;
var unresolvedOldProps = workInProgress2.memoizedProps, oldProps = resolveClassComponentProps(Component, unresolvedOldProps);
context.props = oldProps;
var oldContext = context.context, contextType$jscomp$0 = Component.contextType;
contextType = emptyContextObject, typeof contextType$jscomp$0 == "object" && contextType$jscomp$0 !== null && (contextType = readContext(contextType$jscomp$0));
var getDerivedStateFromProps = Component.getDerivedStateFromProps;
contextType$jscomp$0 = typeof getDerivedStateFromProps == "function" || typeof context.getSnapshotBeforeUpdate == "function", unresolvedOldProps = workInProgress2.pendingProps !== unresolvedOldProps, contextType$jscomp$0 || typeof context.UNSAFE_componentWillReceiveProps != "function" && typeof context.componentWillReceiveProps != "function" || (unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps(
workInProgress2,
context,
nextProps,
contextType
), hasForceUpdate = !1;
var oldState = workInProgress2.memoizedState;
context.state = oldState, processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), oldContext = workInProgress2.memoizedState, unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? (typeof getDerivedStateFromProps == "function" && (applyDerivedStateFromProps(
workInProgress2,
Component,
getDerivedStateFromProps,
nextProps
), oldContext = workInProgress2.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(
workInProgress2,
Component,
oldProps,
nextProps,
oldState,
oldContext,
contextType
)) ? (contextType$jscomp$0 || typeof context.UNSAFE_componentWillMount != "function" && typeof context.componentWillMount != "function" || (typeof context.componentWillMount == "function" && context.componentWillMount(), typeof context.UNSAFE_componentWillMount == "function" && context.UNSAFE_componentWillMount()), typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308)) : (typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = oldContext), context.props = nextProps, context.state = oldContext, context.context = contextType, nextProps = oldProps) : (typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308), nextProps = !1);
} else {
context = workInProgress2.stateNode, cloneUpdateQueue(current, workInProgress2), contextType = workInProgress2.memoizedProps, contextType$jscomp$0 = resolveClassComponentProps(Component, contextType), context.props = contextType$jscomp$0, getDerivedStateFromProps = workInProgress2.pendingProps, oldState = context.context, oldContext = Component.contextType, oldProps = emptyContextObject, typeof oldContext == "object" && oldContext !== null && (oldProps = readContext(oldContext)), unresolvedOldProps = Component.getDerivedStateFromProps, (oldContext = typeof unresolvedOldProps == "function" || typeof context.getSnapshotBeforeUpdate == "function") || typeof context.UNSAFE_componentWillReceiveProps != "function" && typeof context.componentWillReceiveProps != "function" || (contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps(
workInProgress2,
context,
nextProps,
oldProps
), hasForceUpdate = !1, oldState = workInProgress2.memoizedState, context.state = oldState, processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction();
var newState = workInProgress2.memoizedState;
contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || current !== null && current.dependencies !== null && checkIfContextChanged(current.dependencies) ? (typeof unresolvedOldProps == "function" && (applyDerivedStateFromProps(
workInProgress2,
Component,
unresolvedOldProps,
nextProps
), newState = workInProgress2.memoizedState), (contextType$jscomp$0 = hasForceUpdate || checkShouldComponentUpdate(
workInProgress2,
Component,
contextType$jscomp$0,
nextProps,
oldState,
newState,
oldProps
) || current !== null && current.dependencies !== null && checkIfContextChanged(current.dependencies)) ? (oldContext || typeof context.UNSAFE_componentWillUpdate != "function" && typeof context.componentWillUpdate != "function" || (typeof context.componentWillUpdate == "function" && context.componentWillUpdate(nextProps, newState, oldProps), typeof context.UNSAFE_componentWillUpdate == "function" && context.UNSAFE_componentWillUpdate(
nextProps,
newState,
oldProps
)), typeof context.componentDidUpdate == "function" && (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate == "function" && (workInProgress2.flags |= 1024)) : (typeof context.componentDidUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = newState), context.props = nextProps, context.state = newState, context.context = oldProps, nextProps = contextType$jscomp$0) : (typeof context.componentDidUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), nextProps = !1);
}
return context = nextProps, markRef(current, workInProgress2), nextProps = (workInProgress2.flags & 128) !== 0, context || nextProps ? (context = workInProgress2.stateNode, Component = nextProps && typeof Component.getDerivedStateFromError != "function" ? null : context.render(), workInProgress2.flags |= 1, current !== null && nextProps ? (workInProgress2.child = reconcileChildFibers(
workInProgress2,
current.child,
null,
renderLanes2
), workInProgress2.child = reconcileChildFibers(
workInProgress2,
null,
Component,
renderLanes2
)) : reconcileChildren(current, workInProgress2, Component, renderLanes2), workInProgress2.memoizedState = context.state, current = workInProgress2.child) : current = bailoutOnAlreadyFinishedWork(
current,
workInProgress2,
renderLanes2
), current;
}
function mountHostRootWithoutHydrating(current, workInProgress2, nextChildren, renderLanes2) {
return resetHydrationState(), workInProgress2.flags |= 256, reconcileChildren(current, workInProgress2, nextChildren, renderLanes2), workInProgress2.child;
}
function mountSuspenseOffscreenState(renderLanes2) {
return { baseLanes: renderLanes2, cachePool: getSuspendedCache() };
}
function getRemainingWorkInPrimaryTree(current, primaryTreeDidDefer, renderLanes2) {
return current = current !== null ? current.childLanes & ~renderLanes2 : 0, primaryTreeDidDefer && (current |= workInProgressDeferredLane), current;
}
function updateSuspenseComponent(current, workInProgress2, renderLanes2) {
var nextProps = workInProgress2.pendingProps, showFallback = !1, didSuspend = (workInProgress2.flags & 128) !== 0, JSCompiler_temp;
if ((JSCompiler_temp = didSuspend) || (JSCompiler_temp = current !== null && current.memoizedState === null ? !1 : (suspenseStackCursor.current & 2) !== 0), JSCompiler_temp && (showFallback = !0, workInProgress2.flags &= -129), JSCompiler_temp = (workInProgress2.flags & 32) !== 0, workInProgress2.flags &= -33, current === null) {
if (isHydrating) {
if (showFallback ? pushPrimaryTreeSuspenseHandler(workInProgress2) : reuseSuspenseHandlerOnStack(workInProgress2), (current = nextHydratableInstance) ? (current = canHydrateSuspenseInstance(
current,
rootOrSingletonContext
), current !== null && (workInProgress2.memoizedState = {
dehydrated: current,
treeContext: treeContextProvider !== null ? { id: treeContextId, overflow: treeContextOverflow } : null,
retryLane: 536870912,
hydrationErrors: null
}, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null, current === null) throw throwOnHydrationMismatch(workInProgress2);
return isSuspenseInstanceFallback(current) ? workInProgress2.lanes = 32 : workInProgress2.lanes = 536870912, null;
}
var nextPrimaryChildren = nextProps.children;
return nextProps = nextProps.fallback, showFallback ? (reuseSuspenseHandlerOnStack(workInProgress2), showFallback = workInProgress2.mode, nextPrimaryChildren = mountWorkInProgressOffscreenFiber(
{ mode: "hidden", children: nextPrimaryChildren },
showFallback
), nextProps = createFiberFromFragment(
nextProps,
showFallback,
renderLanes2,
null
), nextPrimaryChildren.return = workInProgress2, nextProps.return = workInProgress2, nextPrimaryChildren.sibling = nextProps, workInProgress2.child = nextPrimaryChildren, nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
current,
JSCompiler_temp,
renderLanes2
), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps)) : (pushPrimaryTreeSuspenseHandler(workInProgress2), mountSuspensePrimaryChildren(workInProgress2, nextPrimaryChildren));
}
var prevState = current.memoizedState;
if (prevState !== null && (nextPrimaryChildren = prevState.dehydrated, nextPrimaryChildren !== null)) {
if (didSuspend)
workInProgress2.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags &= -257, workInProgress2 = retrySuspenseComponentWithoutHydrating(
current,
workInProgress2,
renderLanes2
)) : workInProgress2.memoizedState !== null ? (reuseSuspenseHandlerOnStack(workInProgress2), workInProgress2.child = current.child, workInProgress2.flags |= 128, workInProgress2 = null) : (reuseSuspenseHandlerOnStack(workInProgress2), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress2.mode, nextProps = mountWorkInProgressOffscreenFiber(
{ mode: "visible", children: nextProps.children },
showFallback
), nextPrimaryChildren = createFiberFromFragment(
nextPrimaryChildren,
showFallback,
renderLanes2,
null
), nextPrimaryChildren.flags |= 2, nextProps.return = workInProgress2, nextPrimaryChildren.return = workInProgress2, nextProps.sibling = nextPrimaryChildren, workInProgress2.child = nextProps, reconcileChildFibers(
workInProgress2,
current.child,
null,
renderLanes2
), nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
current,
JSCompiler_temp,
renderLanes2
), workInProgress2.memoizedState = SUSPENDED_MARKER, workInProgress2 = bailoutOffscreenComponent(null, nextProps));
else if (pushPrimaryTreeSuspenseHandler(workInProgress2), isSuspenseInstanceFallback(nextPrimaryChildren))
JSCompiler_temp = getSuspenseInstanceFallbackErrorDetails(nextPrimaryChildren).digest, nextProps = Error(formatProdErrorMessage(419)), nextProps.stack = "", nextProps.digest = JSCompiler_temp, queueHydrationError({ value: nextProps, source: null, stack: null }), workInProgress2 = retrySuspenseComponentWithoutHydrating(
current,
workInProgress2,
renderLanes2
);
else if (didReceiveUpdate || propagateParentContextChanges(
current,
workInProgress2,
renderLanes2,
!1
), JSCompiler_temp = (renderLanes2 & current.childLanes) !== 0, didReceiveUpdate || JSCompiler_temp) {
if (JSCompiler_temp = workInProgressRoot, JSCompiler_temp !== null && (nextProps = getBumpedLaneForHydration(
JSCompiler_temp,
renderLanes2
), nextProps !== 0 && nextProps !== prevState.retryLane))
throw prevState.retryLane = nextProps, enqueueConcurrentRenderForLane(current, nextProps), scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), SelectiveHydrationException;
isSuspenseInstancePending(nextPrimaryChildren) || renderDidSuspendDelayIfPossible(), workInProgress2 = retrySuspenseComponentWithoutHydrating(
current,
workInProgress2,
renderLanes2
);
} else
isSuspenseInstancePending(nextPrimaryChildren) ? (workInProgress2.flags |= 192, workInProgress2.child = current.child, workInProgress2 = null) : (current = prevState.treeContext, supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinSuspenseInstance(
nextPrimaryChildren
), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, current !== null && restoreSuspendedTreeContext(workInProgress2, current)), workInProgress2 = mountSuspensePrimaryChildren(
workInProgress2,
nextProps.children
), workInProgress2.flags |= 4096);
return workInProgress2;
}
return showFallback ? (reuseSuspenseHandlerOnStack(workInProgress2), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress2.mode, prevState = current.child, didSuspend = prevState.sibling, nextProps = createWorkInProgress(prevState, {
mode: "hidden",
children: nextProps.children
}), nextProps.subtreeFlags = prevState.subtreeFlags & 65011712, didSuspend !== null ? nextPrimaryChildren = createWorkInProgress(
didSuspend,
nextPrimaryChildren
) : (nextPrimaryChildren = createFiberFromFragment(
nextPrimaryChildren,
showFallback,
renderLanes2,
null
), nextPrimaryChildren.flags |= 2), nextPrimaryChildren.return = workInProgress2, nextProps.return = workInProgress2, nextProps.sibling = nextPrimaryChildren, workInProgress2.child = nextProps, bailoutOffscreenComponent(null, nextProps), nextProps = workInProgress2.child, nextPrimaryChildren = current.child.memoizedState, nextPrimaryChildren === null ? nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes2) : (showFallback = nextPrimaryChildren.cachePool, showFallback !== null ? (prevState = isPrimaryRenderer ? CacheContext._currentValue : CacheContext._currentValue2, showFallback = showFallback.parent !== prevState ? { parent: prevState, pool: prevState } : showFallback) : showFallback = getSuspendedCache(), nextPrimaryChildren = {
baseLanes: nextPrimaryChildren.baseLanes | renderLanes2,
cachePool: showFallback
}), nextProps.memoizedState = nextPrimaryChildren, nextProps.childLanes = getRemainingWorkInPrimaryTree(
current,
JSCompiler_temp,
renderLanes2
), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current.child, nextProps)) : (pushPrimaryTreeSuspenseHandler(workInProgress2), renderLanes2 = current.child, current = renderLanes2.sibling, renderLanes2 = createWorkInProgress(renderLanes2, {
mode: "visible",
children: nextProps.children
}), renderLanes2.return = workInProgress2, renderLanes2.sibling = null, current !== null && (JSCompiler_temp = workInProgress2.deletions, JSCompiler_temp === null ? (workInProgress2.deletions = [current], workInProgress2.flags |= 16) : JSCompiler_temp.push(current)), workInProgress2.child = renderLanes2, workInProgress2.memoizedState = null, renderLanes2);
}
function mountSuspensePrimaryChildren(workInProgress2, primaryChildren) {
return primaryChildren = mountWorkInProgressOffscreenFiber(
{ mode: "visible", children: primaryChildren },
workInProgress2.mode
), primaryChildren.return = workInProgress2, workInProgress2.child = primaryChildren;
}
function mountWorkInProgressOffscreenFiber(offscreenProps, mode) {
return offscreenProps = createFiber(22, offscreenProps, null, mode), offscreenProps.lanes = 0, offscreenProps;
}
function retrySuspenseComponentWithoutHydrating(current, workInProgress2, renderLanes2) {
return reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), current = mountSuspensePrimaryChildren(
workInProgress2,
workInProgress2.pendingProps.children
), current.flags |= 2, workInProgress2.memoizedState = null, current;
}
function scheduleSuspenseWorkOnFiber(fiber, renderLanes2, propagationRoot) {
fiber.lanes |= renderLanes2;
var alternate = fiber.alternate;
alternate !== null && (alternate.lanes |= renderLanes2), scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot);
}
function initSuspenseListRenderState(workInProgress2, isBackwards, tail, lastContentRow, tailMode, treeForkCount2) {
var renderState = workInProgress2.memoizedState;
renderState === null ? workInProgress2.memoizedState = {
isBackwards,
rendering: null,
renderingStartTime: 0,
last: lastContentRow,
tail,
tailMode,
treeForkCount: treeForkCount2
} : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount2);
}
function updateSuspenseListComponent(current, workInProgress2, renderLanes2) {
var nextProps = workInProgress2.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail;
nextProps = nextProps.children;
var suspenseContext = suspenseStackCursor.current, shouldForceFallback = (suspenseContext & 2) !== 0;
if (shouldForceFallback ? (suspenseContext = suspenseContext & 1 | 2, workInProgress2.flags |= 128) : suspenseContext &= 1, push(suspenseStackCursor, suspenseContext), reconcileChildren(current, workInProgress2, nextProps, renderLanes2), nextProps = isHydrating ? treeForkCount : 0, !shouldForceFallback && current !== null && (current.flags & 128) !== 0)
a: for (current = workInProgress2.child; current !== null; ) {
if (current.tag === 13)
current.memoizedState !== null && scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
else if (current.tag === 19)
scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
else if (current.child !== null) {
current.child.return = current, current = current.child;
continue;
}
if (current === workInProgress2) break a;
for (; current.sibling === null; ) {
if (current.return === null || current.return === workInProgress2)
break a;
current = current.return;
}
current.sibling.return = current.return, current = current.sibling;
}
switch (revealOrder) {
case "forwards":
for (renderLanes2 = workInProgress2.child, revealOrder = null; renderLanes2 !== null; )
current = renderLanes2.alternate, current !== null && findFirstSuspended(current) === null && (revealOrder = renderLanes2), renderLanes2 = renderLanes2.sibling;
renderLanes2 = revealOrder, renderLanes2 === null ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null), initSuspenseListRenderState(
workInProgress2,
!1,
revealOrder,
renderLanes2,
tailMode,
nextProps
);
break;
case "backwards":
case "unstable_legacy-backwards":
for (renderLanes2 = null, revealOrder = workInProgress2.child, workInProgress2.child = null; revealOrder !== null; ) {
if (current = revealOrder.alternate, current !== null && findFirstSuspended(current) === null) {
workInProgress2.child = revealOrder;
break;
}
current = revealOrder.sibling, revealOrder.sibling = renderLanes2, renderLanes2 = revealOrder, revealOrder = current;
}
initSuspenseListRenderState(
workInProgress2,
!0,
renderLanes2,
null,
tailMode,
nextProps
);
break;
case "together":
initSuspenseListRenderState(
workInProgress2,
!1,
null,
null,
void 0,
nextProps
);
break;
default:
workInProgress2.memoizedState = null;
}
return workInProgress2.child;
}
function bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2) {
if (current !== null && (workInProgress2.dependencies = current.dependencies), workInProgressRootSkippedLanes |= workInProgress2.lanes, (renderLanes2 & workInProgress2.childLanes) === 0)
if (current !== null) {
if (propagateParentContextChanges(
current,
workInProgress2,
renderLanes2,
!1
), (renderLanes2 & workInProgress2.childLanes) === 0)
return null;
} else return null;
if (current !== null && workInProgress2.child !== current.child)
throw Error(formatProdErrorMessage(153));
if (workInProgress2.child !== null) {
for (current = workInProgress2.child, renderLanes2 = createWorkInProgress(current, current.pendingProps), workInProgress2.child = renderLanes2, renderLanes2.return = workInProgress2; current.sibling !== null; )
current = current.sibling, renderLanes2 = renderLanes2.sibling = createWorkInProgress(current, current.pendingProps), renderLanes2.return = workInProgress2;
renderLanes2.sibling = null;
}
return workInProgress2.child;
}
function checkScheduledUpdateOrContext(current, renderLanes2) {
return (current.lanes & renderLanes2) !== 0 ? !0 : (current = current.dependencies, !!(current !== null && checkIfContextChanged(current)));
}
function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress2, renderLanes2) {
switch (workInProgress2.tag) {
case 3:
pushHostContainer(
workInProgress2,
workInProgress2.stateNode.containerInfo
), pushProvider(workInProgress2, CacheContext, current.memoizedState.cache), resetHydrationState();
break;
case 27:
case 5:
pushHostContext(workInProgress2);
break;
case 4:
pushHostContainer(
workInProgress2,
workInProgress2.stateNode.containerInfo
);
break;
case 10:
pushProvider(
workInProgress2,
workInProgress2.type,
workInProgress2.memoizedProps.value
);
break;
case 31:
if (workInProgress2.memoizedState !== null)
return workInProgress2.flags |= 128, pushDehydratedActivitySuspenseHandler(workInProgress2), null;
break;
case 13:
var state$82 = workInProgress2.memoizedState;
if (state$82 !== null)
return state$82.dehydrated !== null ? (pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags |= 128, null) : (renderLanes2 & workInProgress2.child.childLanes) !== 0 ? updateSuspenseComponent(
current,
workInProgress2,
renderLanes2
) : (pushPrimaryTreeSuspenseHandler(workInProgress2), current = bailoutOnAlreadyFinishedWork(
current,
workInProgress2,
renderLanes2
), current !== null ? current.sibling : null);
pushPrimaryTreeSuspenseHandler(workInProgress2);
break;
case 19:
var didSuspendBefore = (current.flags & 128) !== 0;
if (state$82 = (renderLanes2 & workInProgress2.childLanes) !== 0, state$82 || (propagateParentContextChanges(
current,
workInProgress2,
renderLanes2,
!1
), state$82 = (renderLanes2 & workInProgress2.childLanes) !== 0), didSuspendBefore) {
if (state$82)
return updateSuspenseListComponent(
current,
workInProgress2,
renderLanes2
);
workInProgress2.flags |= 128;
}
if (didSuspendBefore = workInProgress2.memoizedState, didSuspendBefore !== null && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null), push(suspenseStackCursor, suspenseStackCursor.current), state$82) break;
return null;
case 22:
return workInProgress2.lanes = 0, updateOffscreenComponent(
current,
workInProgress2,
renderLanes2,
workInProgress2.pendingProps
);
case 24:
pushProvider(workInProgress2, CacheContext, current.memoizedState.cache);
}
return bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
}
function beginWork(current, workInProgress2, renderLanes2) {
if (current !== null)
if (current.memoizedProps !== workInProgress2.pendingProps)
didReceiveUpdate = !0;
else {
if (!checkScheduledUpdateOrContext(current, renderLanes2) && (workInProgress2.flags & 128) === 0)
return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(
current,
workInProgress2,
renderLanes2
);
didReceiveUpdate = (current.flags & 131072) !== 0;
}
else
didReceiveUpdate = !1, isHydrating && (workInProgress2.flags & 1048576) !== 0 && pushTreeId(workInProgress2, treeForkCount, workInProgress2.index);
switch (workInProgress2.lanes = 0, workInProgress2.tag) {
case 16:
a: {
var props = workInProgress2.pendingProps;
if (current = resolveLazy(workInProgress2.elementType), workInProgress2.type = current, typeof current == "function")
shouldConstruct(current) ? (props = resolveClassComponentProps(current, props), workInProgress2.tag = 1, workInProgress2 = updateClassComponent(
null,
workInProgress2,
current,
props,
renderLanes2
)) : (workInProgress2.tag = 0, workInProgress2 = updateFunctionComponent(
null,
workInProgress2,
current,
props,
renderLanes2
));
else {
if (current != null) {
var $$typeof = current.$$typeof;
if ($$typeof === REACT_FORWARD_REF_TYPE) {
workInProgress2.tag = 11, workInProgress2 = updateForwardRef(
null,
workInProgress2,
current,
props,
renderLanes2
);
break a;
} else if ($$typeof === REACT_MEMO_TYPE) {
workInProgress2.tag = 14, workInProgress2 = updateMemoComponent(
null,
workInProgress2,
current,
props,
renderLanes2
);
break a;
}
}
throw workInProgress2 = getComponentNameFromType(current) || current, Error(formatProdErrorMessage(306, workInProgress2, ""));
}
}
return workInProgress2;
case 0:
return updateFunctionComponent(
current,
workInProgress2,
workInProgress2.type,
workInProgress2.pendingProps,
renderLanes2
);
case 1:
return props = workInProgress2.type, $$typeof = resolveClassComponentProps(
props,
workInProgress2.pendingProps
), updateClassComponent(
current,
workInProgress2,
props,
$$typeof,
renderLanes2
);
case 3:
a: {
if (pushHostContainer(
workInProgress2,
workInProgress2.stateNode.containerInfo
), current === null) throw Error(formatProdErrorMessage(387));
var nextProps = workInProgress2.pendingProps;
$$typeof = workInProgress2.memoizedState, props = $$typeof.element, cloneUpdateQueue(current, workInProgress2), processUpdateQueue(workInProgress2, nextProps, null, renderLanes2);
var nextState = workInProgress2.memoizedState;
if (nextProps = nextState.cache, pushProvider(workInProgress2, CacheContext, nextProps), nextProps !== $$typeof.cache && propagateContextChanges(
workInProgress2,
[CacheContext],
renderLanes2,
!0
), suspendIfUpdateReadFromEntangledAsyncAction(), nextProps = nextState.element, supportsHydration && $$typeof.isDehydrated)
if ($$typeof = {
element: nextProps,
isDehydrated: !1,
cache: nextState.cache
}, workInProgress2.updateQueue.baseState = $$typeof, workInProgress2.memoizedState = $$typeof, workInProgress2.flags & 256) {
workInProgress2 = mountHostRootWithoutHydrating(
current,
workInProgress2,
nextProps,
renderLanes2
);
break a;
} else if (nextProps !== props) {
props = createCapturedValueAtFiber(
Error(formatProdErrorMessage(424)),
workInProgress2
), queueHydrationError(props), workInProgress2 = mountHostRootWithoutHydrating(
current,
workInProgress2,
nextProps,
renderLanes2
);
break a;
} else
for (supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinContainer(
workInProgress2.stateNode.containerInfo
), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !0), renderLanes2 = mountChildFibers(
workInProgress2,
null,
nextProps,
renderLanes2
), workInProgress2.child = renderLanes2; renderLanes2; )
renderLanes2.flags = renderLanes2.flags & -3 | 4096, renderLanes2 = renderLanes2.sibling;
else {
if (resetHydrationState(), nextProps === props) {
workInProgress2 = bailoutOnAlreadyFinishedWork(
current,
workInProgress2,
renderLanes2
);
break a;
}
reconcileChildren(current, workInProgress2, nextProps, renderLanes2);
}
workInProgress2 = workInProgress2.child;
}
return workInProgress2;
case 26:
if (supportsResources)
return markRef(current, workInProgress2), current === null ? (renderLanes2 = getResource(
workInProgress2.type,
null,
workInProgress2.pendingProps,
null
)) ? workInProgress2.memoizedState = renderLanes2 : isHydrating || (workInProgress2.stateNode = createHoistableInstance(
workInProgress2.type,
workInProgress2.pendingProps,
rootInstanceStackCursor.current,
workInProgress2
)) : workInProgress2.memoizedState = getResource(
workInProgress2.type,
current.memoizedProps,
workInProgress2.pendingProps,
current.memoizedState
), null;
case 27:
if (supportsSingletons)
return pushHostContext(workInProgress2), current === null && supportsSingletons && isHydrating && (props = workInProgress2.stateNode = resolveSingletonInstance(
workInProgress2.type,
workInProgress2.pendingProps,
rootInstanceStackCursor.current,
contextStackCursor.current,
!1
), hydrationParentFiber = workInProgress2, rootOrSingletonContext = !0, nextHydratableInstance = getFirstHydratableChildWithinSingleton(
workInProgress2.type,
props,
nextHydratableInstance
)), reconcileChildren(
current,
workInProgress2,
workInProgress2.pendingProps.children,
renderLanes2
), markRef(current, workInProgress2), current === null && (workInProgress2.flags |= 4194304), workInProgress2.child;
case 5:
return current === null && isHydrating && (validateHydratableInstance(
workInProgress2.type,
workInProgress2.pendingProps,
contextStackCursor.current
), ($$typeof = props = nextHydratableInstance) && (props = canHydrateInstance(
props,
workInProgress2.type,
workInProgress2.pendingProps,
rootOrSingletonContext
), props !== null ? (workInProgress2.stateNode = props, hydrationParentFiber = workInProgress2, nextHydratableInstance = getFirstHydratableChild(props), rootOrSingletonContext = !1, $$typeof = !0) : $$typeof = !1), $$typeof || throwOnHydrationMismatch(workInProgress2)), pushHostContext(workInProgress2), $$typeof = workInProgress2.type, nextProps = workInProgress2.pendingProps, nextState = current !== null ? current.memoizedProps : null, props = nextProps.children, shouldSetTextContent($$typeof, nextProps) ? props = null : nextState !== null && shouldSetTextContent($$typeof, nextState) && (workInProgress2.flags |= 32), workInProgress2.memoizedState !== null && ($$typeof = renderWithHooks(
current,
workInProgress2,
TransitionAwareHostComponent,
null,
null,
renderLanes2
), isPrimaryRenderer ? HostTransitionContext._currentValue = $$typeof : HostTransitionContext._currentValue2 = $$typeof), markRef(current, workInProgress2), reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
case 6:
return current === null && isHydrating && (validateHydratableTextInstance(
workInProgress2.pendingProps,
contextStackCursor.current
), (current = renderLanes2 = nextHydratableInstance) && (renderLanes2 = canHydrateTextInstance(
renderLanes2,
workInProgress2.pendingProps,
rootOrSingletonContext
), renderLanes2 !== null ? (workInProgress2.stateNode = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null, current = !0) : current = !1), current || throwOnHydrationMismatch(workInProgress2)), null;
case 13:
return updateSuspenseComponent(current, workInProgress2, renderLanes2);
case 4:
return pushHostContainer(
workInProgress2,
workInProgress2.stateNode.containerInfo
), props = workInProgress2.pendingProps, current === null ? workInProgress2.child = reconcileChildFibers(
workInProgress2,
null,
props,
renderLanes2
) : reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
case 11:
return updateForwardRef(
current,
workInProgress2,
workInProgress2.type,
workInProgress2.pendingProps,
renderLanes2
);
case 7:
return reconcileChildren(
current,
workInProgress2,
workInProgress2.pendingProps,
renderLanes2
), workInProgress2.child;
case 8:
return reconcileChildren(
current,
workInProgress2,
workInProgress2.pendingProps.children,
renderLanes2
), workInProgress2.child;
case 12:
return reconcileChildren(
current,
workInProgress2,
workInProgress2.pendingProps.children,
renderLanes2
), workInProgress2.child;
case 10:
return props = workInProgress2.pendingProps, pushProvider(workInProgress2, workInProgress2.type, props.value), reconcileChildren(
current,
workInProgress2,
props.children,
renderLanes2
), workInProgress2.child;
case 9:
return $$typeof = workInProgress2.type._context, props = workInProgress2.pendingProps.children, prepareToReadContext(workInProgress2), $$typeof = readContext($$typeof), props = props($$typeof), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
case 14:
return updateMemoComponent(
current,
workInProgress2,
workInProgress2.type,
workInProgress2.pendingProps,
renderLanes2
);
case 15:
return updateSimpleMemoComponent(
current,
workInProgress2,
workInProgress2.type,
workInProgress2.pendingProps,
renderLanes2
);
case 19:
return updateSuspenseListComponent(
current,
workInProgress2,
renderLanes2
);
case 31:
return updateActivityComponent(current, workInProgress2, renderLanes2);
case 22:
return updateOffscreenComponent(
current,
workInProgress2,
renderLanes2,
workInProgress2.pendingProps
);
case 24:
return prepareToReadContext(workInProgress2), props = readContext(CacheContext), current === null ? ($$typeof = peekCacheFromPool(), $$typeof === null && ($$typeof = workInProgressRoot, nextProps = createCache(), $$typeof.pooledCache = nextProps, nextProps.refCount++, nextProps !== null && ($$typeof.pooledCacheLanes |= renderLanes2), $$typeof = nextProps), workInProgress2.memoizedState = {
parent: props,
cache: $$typeof
}, initializeUpdateQueue(workInProgress2), pushProvider(workInProgress2, CacheContext, $$typeof)) : ((current.lanes & renderLanes2) !== 0 && (cloneUpdateQueue(current, workInProgress2), processUpdateQueue(workInProgress2, null, null, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction()), $$typeof = current.memoizedState, nextProps = workInProgress2.memoizedState, $$typeof.parent !== props ? ($$typeof = { parent: props, cache: props }, workInProgress2.memoizedState = $$typeof, workInProgress2.lanes === 0 && (workInProgress2.memoizedState = workInProgress2.updateQueue.baseState = $$typeof), pushProvider(workInProgress2, CacheContext, props)) : (props = nextProps.cache, pushProvider(workInProgress2, CacheContext, props), props !== $$typeof.cache && propagateContextChanges(
workInProgress2,
[CacheContext],
renderLanes2,
!0
))), reconcileChildren(
current,
workInProgress2,
workInProgress2.pendingProps.children,
renderLanes2
), workInProgress2.child;
case 29:
throw workInProgress2.pendingProps;
}
throw Error(formatProdErrorMessage(156, workInProgress2.tag));
}
function markUpdate(workInProgress2) {
workInProgress2.flags |= 4;
}
function markCloned(workInProgress2) {
supportsPersistence && (workInProgress2.flags |= 8);
}
function doesRequireClone(current, completedWork) {
if (current !== null && current.child === completedWork.child) return !1;
if ((completedWork.flags & 16) !== 0) return !0;
for (current = completedWork.child; current !== null; ) {
if ((current.flags & 8218) !== 0 || (current.subtreeFlags & 8218) !== 0)
return !0;
current = current.sibling;
}
return !1;
}
function appendAllChildren(parent, workInProgress2, needsVisibilityToggle, isHidden2) {
if (supportsMutation)
for (needsVisibilityToggle = workInProgress2.child; needsVisibilityToggle !== null; ) {
if (needsVisibilityToggle.tag === 5 || needsVisibilityToggle.tag === 6)
appendInitialChild(parent, needsVisibilityToggle.stateNode);
else if (!(needsVisibilityToggle.tag === 4 || supportsSingletons && needsVisibilityToggle.tag === 27) && needsVisibilityToggle.child !== null) {
needsVisibilityToggle.child.return = needsVisibilityToggle, needsVisibilityToggle = needsVisibilityToggle.child;
continue;
}
if (needsVisibilityToggle === workInProgress2) break;
for (; needsVisibilityToggle.sibling === null; ) {
if (needsVisibilityToggle.return === null || needsVisibilityToggle.return === workInProgress2)
return;
needsVisibilityToggle = needsVisibilityToggle.return;
}
needsVisibilityToggle.sibling.return = needsVisibilityToggle.return, needsVisibilityToggle = needsVisibilityToggle.sibling;
}
else if (supportsPersistence)
for (var node$85 = workInProgress2.child; node$85 !== null; ) {
if (node$85.tag === 5) {
var instance = node$85.stateNode;
needsVisibilityToggle && isHidden2 && (instance = cloneHiddenInstance(
instance,
node$85.type,
node$85.memoizedProps
)), appendInitialChild(parent, instance);
} else if (node$85.tag === 6)
instance = node$85.stateNode, needsVisibilityToggle && isHidden2 && (instance = cloneHiddenTextInstance(
instance,
node$85.memoizedProps
)), appendInitialChild(parent, instance);
else if (node$85.tag !== 4) {
if (node$85.tag === 22 && node$85.memoizedState !== null)
instance = node$85.child, instance !== null && (instance.return = node$85), appendAllChildren(parent, node$85, !0, !0);
else if (node$85.child !== null) {
node$85.child.return = node$85, node$85 = node$85.child;
continue;
}
}
if (node$85 === workInProgress2) break;
for (; node$85.sibling === null; ) {
if (node$85.return === null || node$85.return === workInProgress2)
return;
node$85 = node$85.return;
}
node$85.sibling.return = node$85.return, node$85 = node$85.sibling;
}
}
function appendAllChildrenToContainer(containerChildSet, workInProgress2, needsVisibilityToggle, isHidden2) {
var hasOffscreenComponentChild = !1;
if (supportsPersistence)
for (var node = workInProgress2.child; node !== null; ) {
if (node.tag === 5) {
var instance = node.stateNode;
needsVisibilityToggle && isHidden2 && (instance = cloneHiddenInstance(
instance,
node.type,
node.memoizedProps
)), appendChildToContainerChildSet(containerChildSet, instance);
} else if (node.tag === 6)
instance = node.stateNode, needsVisibilityToggle && isHidden2 && (instance = cloneHiddenTextInstance(
instance,
node.memoizedProps
)), appendChildToContainerChildSet(containerChildSet, instance);
else if (node.tag !== 4) {
if (node.tag === 22 && node.memoizedState !== null)
hasOffscreenComponentChild = node.child, hasOffscreenComponentChild !== null && (hasOffscreenComponentChild.return = node), appendAllChildrenToContainer(containerChildSet, node, !0, !0), hasOffscreenComponentChild = !0;
else if (node.child !== null) {
node.child.return = node, node = node.child;
continue;
}
}
if (node === workInProgress2) break;
for (; node.sibling === null; ) {
if (node.return === null || node.return === workInProgress2)
return hasOffscreenComponentChild;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
return hasOffscreenComponentChild;
}
function updateHostContainer(current, workInProgress2) {
if (supportsPersistence && doesRequireClone(current, workInProgress2)) {
current = workInProgress2.stateNode;
var container = current.containerInfo, newChildSet = createContainerChildSet();
appendAllChildrenToContainer(newChildSet, workInProgress2, !1, !1), current.pendingChildren = newChildSet, markUpdate(workInProgress2), finalizeContainerChildren(container, newChildSet);
}
}
function updateHostComponent(current, workInProgress2, type, newProps) {
if (supportsMutation)
current.memoizedProps !== newProps && markUpdate(workInProgress2);
else if (supportsPersistence) {
var currentInstance = current.stateNode, oldProps$88 = current.memoizedProps;
if ((current = doesRequireClone(current, workInProgress2)) || oldProps$88 !== newProps) {
var currentHostContext = contextStackCursor.current;
oldProps$88 = cloneInstance(
currentInstance,
type,
oldProps$88,
newProps,
!current,
null
), oldProps$88 === currentInstance ? workInProgress2.stateNode = currentInstance : (markCloned(workInProgress2), finalizeInitialChildren(
oldProps$88,
type,
newProps,
currentHostContext
) && markUpdate(workInProgress2), workInProgress2.stateNode = oldProps$88, current && appendAllChildren(oldProps$88, workInProgress2, !1, !1));
} else workInProgress2.stateNode = currentInstance;
}
}
function preloadInstanceAndSuspendIfNeeded(workInProgress2, type, oldProps, newProps, renderLanes2) {
if ((workInProgress2.mode & 32) !== 0 && (oldProps === null ? maySuspendCommit(type, newProps) : maySuspendCommitOnUpdate(type, oldProps, newProps))) {
if (workInProgress2.flags |= 16777216, (renderLanes2 & 335544128) === renderLanes2 || maySuspendCommitInSyncRender(type, newProps))
if (preloadInstance(workInProgress2.stateNode, type, newProps))
workInProgress2.flags |= 8192;
else if (shouldRemainOnPreviousScreen()) workInProgress2.flags |= 8192;
else
throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
} else workInProgress2.flags &= -16777217;
}
function preloadResourceAndSuspendIfNeeded(workInProgress2, resource) {
if (mayResourceSuspendCommit(resource)) {
if (workInProgress2.flags |= 16777216, !preloadResource(resource))
if (shouldRemainOnPreviousScreen()) workInProgress2.flags |= 8192;
else
throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
} else workInProgress2.flags &= -16777217;
}
function scheduleRetryEffect(workInProgress2, retryQueue) {
retryQueue !== null && (workInProgress2.flags |= 4), workInProgress2.flags & 16384 && (retryQueue = workInProgress2.tag !== 22 ? claimNextRetryLane() : 536870912, workInProgress2.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue);
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
if (!isHydrating)
switch (renderState.tailMode) {
case "hidden":
hasRenderedATailFallback = renderState.tail;
for (var lastTailNode = null; hasRenderedATailFallback !== null; )
hasRenderedATailFallback.alternate !== null && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling;
lastTailNode === null ? renderState.tail = null : lastTailNode.sibling = null;
break;
case "collapsed":
lastTailNode = renderState.tail;
for (var lastTailNode$90 = null; lastTailNode !== null; )
lastTailNode.alternate !== null && (lastTailNode$90 = lastTailNode), lastTailNode = lastTailNode.sibling;
lastTailNode$90 === null ? hasRenderedATailFallback || renderState.tail === null ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode$90.sibling = null;
}
}
function bubbleProperties(completedWork) {
var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0;
if (didBailout)
for (var child$91 = completedWork.child; child$91 !== null; )
newChildLanes |= child$91.lanes | child$91.childLanes, subtreeFlags |= child$91.subtreeFlags & 65011712, subtreeFlags |= child$91.flags & 65011712, child$91.return = completedWork, child$91 = child$91.sibling;
else
for (child$91 = completedWork.child; child$91 !== null; )
newChildLanes |= child$91.lanes | child$91.childLanes, subtreeFlags |= child$91.subtreeFlags, subtreeFlags |= child$91.flags, child$91.return = completedWork, child$91 = child$91.sibling;
return completedWork.subtreeFlags |= subtreeFlags, completedWork.childLanes = newChildLanes, didBailout;
}
function completeWork(current, workInProgress2, renderLanes2) {
var newProps = workInProgress2.pendingProps;
switch (popTreeContext(workInProgress2), workInProgress2.tag) {
case 16:
case 15:
case 0:
case 11:
case 7:
case 8:
case 12:
case 9:
case 14:
return bubbleProperties(workInProgress2), null;
case 1:
return bubbleProperties(workInProgress2), null;
case 3:
return renderLanes2 = workInProgress2.stateNode, newProps = null, current !== null && (newProps = current.memoizedState.cache), workInProgress2.memoizedState.cache !== newProps && (workInProgress2.flags |= 2048), popProvider(CacheContext), popHostContainer(), renderLanes2.pendingContext && (renderLanes2.context = renderLanes2.pendingContext, renderLanes2.pendingContext = null), (current === null || current.child === null) && (popHydrationState(workInProgress2) ? markUpdate(workInProgress2) : current === null || current.memoizedState.isDehydrated && (workInProgress2.flags & 256) === 0 || (workInProgress2.flags |= 1024, upgradeHydrationErrorsToRecoverable())), updateHostContainer(current, workInProgress2), bubbleProperties(workInProgress2), null;
case 26:
if (supportsResources) {
var type = workInProgress2.type, nextResource = workInProgress2.memoizedState;
return current === null ? (markUpdate(workInProgress2), nextResource !== null ? (bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(
workInProgress2,
nextResource
)) : (bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
workInProgress2,
type,
null,
newProps,
renderLanes2
))) : nextResource ? nextResource !== current.memoizedState ? (markUpdate(workInProgress2), bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(
workInProgress2,
nextResource
)) : (bubbleProperties(workInProgress2), workInProgress2.flags &= -16777217) : (nextResource = current.memoizedProps, supportsMutation ? nextResource !== newProps && markUpdate(workInProgress2) : updateHostComponent(
current,
workInProgress2,
type,
newProps
), bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
workInProgress2,
type,
nextResource,
newProps,
renderLanes2
)), null;
}
case 27:
if (supportsSingletons) {
if (popHostContext(workInProgress2), renderLanes2 = rootInstanceStackCursor.current, type = workInProgress2.type, current !== null && workInProgress2.stateNode != null)
supportsMutation ? current.memoizedProps !== newProps && markUpdate(workInProgress2) : updateHostComponent(current, workInProgress2, type, newProps);
else {
if (!newProps) {
if (workInProgress2.stateNode === null)
throw Error(formatProdErrorMessage(166));
return bubbleProperties(workInProgress2), null;
}
current = contextStackCursor.current, popHydrationState(workInProgress2) ? prepareToHydrateHostInstance(workInProgress2, current) : (current = resolveSingletonInstance(
type,
newProps,
renderLanes2,
current,
!0
), workInProgress2.stateNode = current, markUpdate(workInProgress2));
}
return bubbleProperties(workInProgress2), null;
}
case 5:
if (popHostContext(workInProgress2), type = workInProgress2.type, current !== null && workInProgress2.stateNode != null)
updateHostComponent(current, workInProgress2, type, newProps);
else {
if (!newProps) {
if (workInProgress2.stateNode === null)
throw Error(formatProdErrorMessage(166));
return bubbleProperties(workInProgress2), null;
}
if (nextResource = contextStackCursor.current, popHydrationState(workInProgress2))
prepareToHydrateHostInstance(workInProgress2, nextResource), finalizeHydratedChildren(
workInProgress2.stateNode,
type,
newProps,
nextResource
) && (workInProgress2.flags |= 64);
else {
var instance$101 = createInstance(
type,
newProps,
rootInstanceStackCursor.current,
nextResource,
workInProgress2
);
markCloned(workInProgress2), appendAllChildren(instance$101, workInProgress2, !1, !1), workInProgress2.stateNode = instance$101, finalizeInitialChildren(
instance$101,
type,
newProps,
nextResource
) && markUpdate(workInProgress2);
}
}
return bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
workInProgress2,
workInProgress2.type,
current === null ? null : current.memoizedProps,
workInProgress2.pendingProps,
renderLanes2
), null;
case 6:
if (current && workInProgress2.stateNode != null)
renderLanes2 = current.memoizedProps, supportsMutation ? renderLanes2 !== newProps && markUpdate(workInProgress2) : supportsPersistence && (renderLanes2 !== newProps ? (current = rootInstanceStackCursor.current, renderLanes2 = contextStackCursor.current, markCloned(workInProgress2), workInProgress2.stateNode = createTextInstance(
newProps,
current,
renderLanes2,
workInProgress2
)) : workInProgress2.stateNode = current.stateNode);
else {
if (typeof newProps != "string" && workInProgress2.stateNode === null)
throw Error(formatProdErrorMessage(166));
if (current = rootInstanceStackCursor.current, renderLanes2 = contextStackCursor.current, popHydrationState(workInProgress2)) {
if (!supportsHydration) throw Error(formatProdErrorMessage(176));
if (current = workInProgress2.stateNode, renderLanes2 = workInProgress2.memoizedProps, newProps = null, type = hydrationParentFiber, type !== null)
switch (type.tag) {
case 27:
case 5:
newProps = type.memoizedProps;
}
hydrateTextInstance(
current,
renderLanes2,
workInProgress2,
newProps
) || throwOnHydrationMismatch(workInProgress2, !0);
} else
markCloned(workInProgress2), workInProgress2.stateNode = createTextInstance(
newProps,
current,
renderLanes2,
workInProgress2
);
}
return bubbleProperties(workInProgress2), null;
case 31:
if (renderLanes2 = workInProgress2.memoizedState, current === null || current.memoizedState !== null) {
if (newProps = popHydrationState(workInProgress2), renderLanes2 !== null) {
if (current === null) {
if (!newProps) throw Error(formatProdErrorMessage(318));
if (!supportsHydration) throw Error(formatProdErrorMessage(556));
if (current = workInProgress2.memoizedState, current = current !== null ? current.dehydrated : null, !current) throw Error(formatProdErrorMessage(557));
hydrateActivityInstance(current, workInProgress2);
} else
resetHydrationState(), (workInProgress2.flags & 128) === 0 && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
bubbleProperties(workInProgress2), current = !1;
} else
renderLanes2 = upgradeHydrationErrorsToRecoverable(), current !== null && current.memoizedState !== null && (current.memoizedState.hydrationErrors = renderLanes2), current = !0;
if (!current)
return workInProgress2.flags & 256 ? (popSuspenseHandler(workInProgress2), workInProgress2) : (popSuspenseHandler(workInProgress2), null);
if ((workInProgress2.flags & 128) !== 0)
throw Error(formatProdErrorMessage(558));
}
return bubbleProperties(workInProgress2), null;
case 13:
if (newProps = workInProgress2.memoizedState, current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) {
if (type = popHydrationState(workInProgress2), newProps !== null && newProps.dehydrated !== null) {
if (current === null) {
if (!type) throw Error(formatProdErrorMessage(318));
if (!supportsHydration) throw Error(formatProdErrorMessage(344));
if (type = workInProgress2.memoizedState, type = type !== null ? type.dehydrated : null, !type) throw Error(formatProdErrorMessage(317));
hydrateSuspenseInstance(type, workInProgress2);
} else
resetHydrationState(), (workInProgress2.flags & 128) === 0 && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
bubbleProperties(workInProgress2), type = !1;
} else
type = upgradeHydrationErrorsToRecoverable(), current !== null && current.memoizedState !== null && (current.memoizedState.hydrationErrors = type), type = !0;
if (!type)
return workInProgress2.flags & 256 ? (popSuspenseHandler(workInProgress2), workInProgress2) : (popSuspenseHandler(workInProgress2), null);
}
return popSuspenseHandler(workInProgress2), (workInProgress2.flags & 128) !== 0 ? (workInProgress2.lanes = renderLanes2, workInProgress2) : (renderLanes2 = newProps !== null, current = current !== null && current.memoizedState !== null, renderLanes2 && (newProps = workInProgress2.child, type = null, newProps.alternate !== null && newProps.alternate.memoizedState !== null && newProps.alternate.memoizedState.cachePool !== null && (type = newProps.alternate.memoizedState.cachePool.pool), nextResource = null, newProps.memoizedState !== null && newProps.memoizedState.cachePool !== null && (nextResource = newProps.memoizedState.cachePool.pool), nextResource !== type && (newProps.flags |= 2048)), renderLanes2 !== current && renderLanes2 && (workInProgress2.child.flags |= 8192), scheduleRetryEffect(workInProgress2, workInProgress2.updateQueue), bubbleProperties(workInProgress2), null);
case 4:
return popHostContainer(), updateHostContainer(current, workInProgress2), current === null && preparePortalMount(workInProgress2.stateNode.containerInfo), bubbleProperties(workInProgress2), null;
case 10:
return popProvider(workInProgress2.type), bubbleProperties(workInProgress2), null;
case 19:
if (pop(suspenseStackCursor), newProps = workInProgress2.memoizedState, newProps === null) return bubbleProperties(workInProgress2), null;
if (type = (workInProgress2.flags & 128) !== 0, nextResource = newProps.rendering, nextResource === null)
if (type) cutOffTailIfNeeded(newProps, !1);
else {
if (workInProgressRootExitStatus !== 0 || current !== null && (current.flags & 128) !== 0)
for (current = workInProgress2.child; current !== null; ) {
if (nextResource = findFirstSuspended(current), nextResource !== null) {
for (workInProgress2.flags |= 128, cutOffTailIfNeeded(newProps, !1), current = nextResource.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), workInProgress2.subtreeFlags = 0, current = renderLanes2, renderLanes2 = workInProgress2.child; renderLanes2 !== null; )
resetWorkInProgress(renderLanes2, current), renderLanes2 = renderLanes2.sibling;
return push(
suspenseStackCursor,
suspenseStackCursor.current & 1 | 2
), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), workInProgress2.child;
}
current = current.sibling;
}
newProps.tail !== null && now() > workInProgressRootRenderTargetTime && (workInProgress2.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress2.lanes = 4194304);
}
else {
if (!type)
if (current = findFirstSuspended(nextResource), current !== null) {
if (workInProgress2.flags |= 128, type = !0, current = current.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), cutOffTailIfNeeded(newProps, !0), newProps.tail === null && newProps.tailMode === "hidden" && !nextResource.alternate && !isHydrating)
return bubbleProperties(workInProgress2), null;
} else
2 * now() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && renderLanes2 !== 536870912 && (workInProgress2.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress2.lanes = 4194304);
newProps.isBackwards ? (nextResource.sibling = workInProgress2.child, workInProgress2.child = nextResource) : (current = newProps.last, current !== null ? current.sibling = nextResource : workInProgress2.child = nextResource, newProps.last = nextResource);
}
return newProps.tail !== null ? (current = newProps.tail, newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now(), current.sibling = null, renderLanes2 = suspenseStackCursor.current, push(
suspenseStackCursor,
type ? renderLanes2 & 1 | 2 : renderLanes2 & 1
), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), current) : (bubbleProperties(workInProgress2), null);
case 22:
case 23:
return popSuspenseHandler(workInProgress2), popHiddenContext(), newProps = workInProgress2.memoizedState !== null, current !== null ? current.memoizedState !== null !== newProps && (workInProgress2.flags |= 8192) : newProps && (workInProgress2.flags |= 8192), newProps ? (renderLanes2 & 536870912) !== 0 && (workInProgress2.flags & 128) === 0 && (bubbleProperties(workInProgress2), workInProgress2.subtreeFlags & 6 && (workInProgress2.flags |= 8192)) : bubbleProperties(workInProgress2), renderLanes2 = workInProgress2.updateQueue, renderLanes2 !== null && scheduleRetryEffect(workInProgress2, renderLanes2.retryQueue), renderLanes2 = null, current !== null && current.memoizedState !== null && current.memoizedState.cachePool !== null && (renderLanes2 = current.memoizedState.cachePool.pool), newProps = null, workInProgress2.memoizedState !== null && workInProgress2.memoizedState.cachePool !== null && (newProps = workInProgress2.memoizedState.cachePool.pool), newProps !== renderLanes2 && (workInProgress2.flags |= 2048), current !== null && pop(resumedCache), null;
case 24:
return renderLanes2 = null, current !== null && (renderLanes2 = current.memoizedState.cache), workInProgress2.memoizedState.cache !== renderLanes2 && (workInProgress2.flags |= 2048), popProvider(CacheContext), bubbleProperties(workInProgress2), null;
case 25:
return null;
case 30:
return null;
}
throw Error(formatProdErrorMessage(156, workInProgress2.tag));
}
function unwindWork(current, workInProgress2) {
switch (popTreeContext(workInProgress2), workInProgress2.tag) {
case 1:
return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
case 3:
return popProvider(CacheContext), popHostContainer(), current = workInProgress2.flags, (current & 65536) !== 0 && (current & 128) === 0 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
case 26:
case 27:
case 5:
return popHostContext(workInProgress2), null;
case 31:
if (workInProgress2.memoizedState !== null) {
if (popSuspenseHandler(workInProgress2), workInProgress2.alternate === null)
throw Error(formatProdErrorMessage(340));
resetHydrationState();
}
return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
case 13:
if (popSuspenseHandler(workInProgress2), current = workInProgress2.memoizedState, current !== null && current.dehydrated !== null) {
if (workInProgress2.alternate === null)
throw Error(formatProdErrorMessage(340));
resetHydrationState();
}
return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
case 19:
return pop(suspenseStackCursor), null;
case 4:
return popHostContainer(), null;
case 10:
return popProvider(workInProgress2.type), null;
case 22:
case 23:
return popSuspenseHandler(workInProgress2), popHiddenContext(), current !== null && pop(resumedCache), current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
case 24:
return popProvider(CacheContext), null;
case 25:
return null;
default:
return null;
}
}
function unwindInterruptedWork(current, interruptedWork) {
switch (popTreeContext(interruptedWork), interruptedWork.tag) {
case 3:
popProvider(CacheContext), popHostContainer();
break;
case 26:
case 27:
case 5:
popHostContext(interruptedWork);
break;
case 4:
popHostContainer();
break;
case 31:
interruptedWork.memoizedState !== null && popSuspenseHandler(interruptedWork);
break;
case 13:
popSuspenseHandler(interruptedWork);
break;
case 19:
pop(suspenseStackCursor);
break;
case 10:
popProvider(interruptedWork.type);
break;
case 22:
case 23:
popSuspenseHandler(interruptedWork), popHiddenContext(), current !== null && pop(resumedCache);
break;
case 24:
popProvider(CacheContext);
}
}
function commitHookEffectListMount(flags, finishedWork) {
try {
var updateQueue = finishedWork.updateQueue, lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
if (lastEffect !== null) {
var firstEffect = lastEffect.next;
updateQueue = firstEffect;
do {
if ((updateQueue.tag & flags) === flags) {
lastEffect = void 0;
var create3 = updateQueue.create, inst = updateQueue.inst;
lastEffect = create3(), inst.destroy = lastEffect;
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
}
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor$jscomp$0) {
try {
var updateQueue = finishedWork.updateQueue, lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
if (lastEffect !== null) {
var firstEffect = lastEffect.next;
updateQueue = firstEffect;
do {
if ((updateQueue.tag & flags) === flags) {
var inst = updateQueue.inst, destroy = inst.destroy;
if (destroy !== void 0) {
inst.destroy = void 0, lastEffect = finishedWork;
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0, destroy_ = destroy;
try {
destroy_();
} catch (error) {
captureCommitPhaseError(
lastEffect,
nearestMountedAncestor,
error
);
}
}
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
}
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitClassCallbacks(finishedWork) {
var updateQueue = finishedWork.updateQueue;
if (updateQueue !== null) {
var instance = finishedWork.stateNode;
try {
commitCallbacks(updateQueue, instance);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
}
function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) {
instance.props = resolveClassComponentProps(
current.type,
current.memoizedProps
), instance.state = current.memoizedState;
try {
instance.componentWillUnmount();
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
}
function safelyAttachRef(current, nearestMountedAncestor) {
try {
var ref = current.ref;
if (ref !== null) {
switch (current.tag) {
case 26:
case 27:
case 5:
var instanceToUse = getPublicInstance(current.stateNode);
break;
case 30:
instanceToUse = current.stateNode;
break;
default:
instanceToUse = current.stateNode;
}
typeof ref == "function" ? current.refCleanup = ref(instanceToUse) : ref.current = instanceToUse;
}
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
}
function safelyDetachRef(current, nearestMountedAncestor) {
var ref = current.ref, refCleanup = current.refCleanup;
if (ref !== null)
if (typeof refCleanup == "function")
try {
refCleanup();
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
} finally {
current.refCleanup = null, current = current.alternate, current != null && (current.refCleanup = null);
}
else if (typeof ref == "function")
try {
ref(null);
} catch (error$124) {
captureCommitPhaseError(current, nearestMountedAncestor, error$124);
}
else ref.current = null;
}
function commitHostMount(finishedWork) {
var type = finishedWork.type, props = finishedWork.memoizedProps, instance = finishedWork.stateNode;
try {
commitMount(instance, type, props, finishedWork);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHostUpdate(finishedWork, newProps, oldProps) {
try {
commitUpdate(
finishedWork.stateNode,
finishedWork.type,
oldProps,
newProps,
finishedWork
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function isHostParent(fiber) {
return fiber.tag === 5 || fiber.tag === 3 || (supportsResources ? fiber.tag === 26 : !1) || (supportsSingletons ? fiber.tag === 27 && isSingletonScope(fiber.type) : !1) || fiber.tag === 4;
}
function getHostSibling(fiber) {
a: for (; ; ) {
for (; fiber.sibling === null; ) {
if (fiber.return === null || isHostParent(fiber.return)) return null;
fiber = fiber.return;
}
for (fiber.sibling.return = fiber.return, fiber = fiber.sibling; fiber.tag !== 5 && fiber.tag !== 6 && fiber.tag !== 18; ) {
if (supportsSingletons && fiber.tag === 27 && isSingletonScope(fiber.type) || fiber.flags & 2 || fiber.child === null || fiber.tag === 4) continue a;
fiber.child.return = fiber, fiber = fiber.child;
}
if (!(fiber.flags & 2)) return fiber.stateNode;
}
}
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
var tag = node.tag;
if (tag === 5 || tag === 6)
node = node.stateNode, before ? insertInContainerBefore(parent, node, before) : appendChildToContainer(parent, node);
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode, before = null), node = node.child, node !== null))
for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; node !== null; )
insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling;
}
function insertOrAppendPlacementNode(node, before, parent) {
var tag = node.tag;
if (tag === 5 || tag === 6)
node = node.stateNode, before ? insertBefore(parent, node, before) : appendChild(parent, node);
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, node !== null))
for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling; node !== null; )
insertOrAppendPlacementNode(node, before, parent), node = node.sibling;
}
function commitHostPortalContainerChildren(portal, finishedWork, pendingChildren) {
portal = portal.containerInfo;
try {
replaceContainerChildren(portal, pendingChildren);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHostSingletonAcquisition(finishedWork) {
var singleton = finishedWork.stateNode, props = finishedWork.memoizedProps;
try {
acquireSingletonInstance(
finishedWork.type,
props,
singleton,
finishedWork
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitBeforeMutationEffects(root, firstChild) {
for (prepareForCommit(root.containerInfo), nextEffect = firstChild; nextEffect !== null; )
if (root = nextEffect, firstChild = root.child, (root.subtreeFlags & 1028) !== 0 && firstChild !== null)
firstChild.return = root, nextEffect = firstChild;
else
for (; nextEffect !== null; ) {
root = nextEffect;
var current = root.alternate;
switch (firstChild = root.flags, root.tag) {
case 0:
if ((firstChild & 4) !== 0 && (firstChild = root.updateQueue, firstChild = firstChild !== null ? firstChild.events : null, firstChild !== null))
for (var ii = 0; ii < firstChild.length; ii++) {
var _eventPayloads$ii = firstChild[ii];
_eventPayloads$ii.ref.impl = _eventPayloads$ii.nextImpl;
}
break;
case 11:
case 15:
break;
case 1:
if ((firstChild & 1024) !== 0 && current !== null) {
firstChild = void 0, ii = root, _eventPayloads$ii = current.memoizedProps, current = current.memoizedState;
var instance = ii.stateNode;
try {
var resolvedPrevProps = resolveClassComponentProps(
ii.type,
_eventPayloads$ii
);
firstChild = instance.getSnapshotBeforeUpdate(
resolvedPrevProps,
current
), instance.__reactInternalSnapshotBeforeUpdate = firstChild;
} catch (error) {
captureCommitPhaseError(ii, ii.return, error);
}
}
break;
case 3:
(firstChild & 1024) !== 0 && supportsMutation && clearContainer(root.stateNode.containerInfo);
break;
case 5:
case 26:
case 27:
case 6:
case 4:
case 17:
break;
default:
if ((firstChild & 1024) !== 0)
throw Error(formatProdErrorMessage(163));
}
if (firstChild = root.sibling, firstChild !== null) {
firstChild.return = root.return, nextEffect = firstChild;
break;
}
nextEffect = root.return;
}
}
function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
var flags = finishedWork.flags;
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), flags & 4 && commitHookEffectListMount(5, finishedWork);
break;
case 1:
if (recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), flags & 4)
if (finishedRoot = finishedWork.stateNode, current === null)
try {
finishedRoot.componentDidMount();
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
else {
var prevProps = resolveClassComponentProps(
finishedWork.type,
current.memoizedProps
);
current = current.memoizedState;
try {
finishedRoot.componentDidUpdate(
prevProps,
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
);
} catch (error$123) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error$123
);
}
}
flags & 64 && commitClassCallbacks(finishedWork), flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 3:
if (recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), flags & 64 && (flags = finishedWork.updateQueue, flags !== null)) {
if (finishedRoot = null, finishedWork.child !== null)
switch (finishedWork.child.tag) {
case 27:
case 5:
finishedRoot = getPublicInstance(finishedWork.child.stateNode);
break;
case 1:
finishedRoot = finishedWork.child.stateNode;
}
try {
commitCallbacks(flags, finishedRoot);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
break;
case 27:
supportsSingletons && current === null && flags & 4 && commitHostSingletonAcquisition(finishedWork);
case 26:
case 5:
if (recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), current === null) {
if (flags & 4) commitHostMount(finishedWork);
else if (flags & 64) {
finishedRoot = finishedWork.type, current = finishedWork.memoizedProps, prevProps = finishedWork.stateNode;
try {
commitHydratedInstance(
prevProps,
finishedRoot,
current,
finishedWork
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
}
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
break;
case 31:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork);
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork), flags & 64 && (flags = finishedWork.memoizedState, flags !== null && (flags = flags.dehydrated, flags !== null && (finishedWork = retryDehydratedSuspenseBoundary.bind(
null,
finishedWork
), registerSuspenseInstanceRetry(flags, finishedWork))));
break;
case 22:
if (flags = finishedWork.memoizedState !== null || offscreenSubtreeIsHidden, !flags) {
current = current !== null && current.memoizedState !== null || offscreenSubtreeWasHidden, prevProps = offscreenSubtreeIsHidden;
var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
offscreenSubtreeIsHidden = flags, (offscreenSubtreeWasHidden = current) && !prevOffscreenSubtreeWasHidden ? recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
(finishedWork.subtreeFlags & 8772) !== 0
) : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), offscreenSubtreeIsHidden = prevProps, offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
}
break;
case 30:
break;
default:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
}
}
function detachFiberAfterEffects(fiber) {
var alternate = fiber.alternate;
alternate !== null && (fiber.alternate = null, detachFiberAfterEffects(alternate)), fiber.child = null, fiber.deletions = null, fiber.sibling = null, fiber.tag === 5 && (alternate = fiber.stateNode, alternate !== null && detachDeletedInstance(alternate)), fiber.stateNode = null, fiber.return = null, fiber.dependencies = null, fiber.memoizedProps = null, fiber.memoizedState = null, fiber.pendingProps = null, fiber.stateNode = null, fiber.updateQueue = null;
}
function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) {
for (parent = parent.child; parent !== null; )
commitDeletionEffectsOnFiber(
finishedRoot,
nearestMountedAncestor,
parent
), parent = parent.sibling;
}
function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) {
if (injectedHook && typeof injectedHook.onCommitFiberUnmount == "function")
try {
injectedHook.onCommitFiberUnmount(rendererID, deletedFiber);
} catch {
}
switch (deletedFiber.tag) {
case 26:
if (supportsResources) {
offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor), recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
), deletedFiber.memoizedState ? releaseResource(deletedFiber.memoizedState) : deletedFiber.stateNode && unmountHoistable(deletedFiber.stateNode);
break;
}
case 27:
if (supportsSingletons) {
offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor);
var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer;
isSingletonScope(deletedFiber.type) && (hostParent = deletedFiber.stateNode, hostParentIsContainer = !1), recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
), releaseSingletonInstance(deletedFiber.stateNode), hostParent = prevHostParent, hostParentIsContainer = prevHostParentIsContainer;
break;
}
case 5:
offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor);
case 6:
if (supportsMutation) {
if (prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer, hostParent = null, recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
), hostParent = prevHostParent, hostParentIsContainer = prevHostParentIsContainer, hostParent !== null)
if (hostParentIsContainer)
try {
removeChildFromContainer(hostParent, deletedFiber.stateNode);
} catch (error) {
captureCommitPhaseError(
deletedFiber,
nearestMountedAncestor,
error
);
}
else
try {
removeChild(hostParent, deletedFiber.stateNode);
} catch (error) {
captureCommitPhaseError(
deletedFiber,
nearestMountedAncestor,
error
);
}
} else
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
);
break;
case 18:
supportsMutation && hostParent !== null && (hostParentIsContainer ? clearSuspenseBoundaryFromContainer(
hostParent,
deletedFiber.stateNode
) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode));
break;
case 4:
supportsMutation ? (prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer, hostParent = deletedFiber.stateNode.containerInfo, hostParentIsContainer = !0, recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
), hostParent = prevHostParent, hostParentIsContainer = prevHostParentIsContainer) : (supportsPersistence && commitHostPortalContainerChildren(
deletedFiber.stateNode,
deletedFiber,
createContainerChildSet()
), recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
));
break;
case 0:
case 11:
case 14:
case 15:
commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor), offscreenSubtreeWasHidden || commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor), recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
);
break;
case 1:
offscreenSubtreeWasHidden || (safelyDetachRef(deletedFiber, nearestMountedAncestor), prevHostParent = deletedFiber.stateNode, typeof prevHostParent.componentWillUnmount == "function" && safelyCallComponentWillUnmount(
deletedFiber,
nearestMountedAncestor,
prevHostParent
)), recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
);
break;
case 21:
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
);
break;
case 22:
offscreenSubtreeWasHidden = (prevHostParent = offscreenSubtreeWasHidden) || deletedFiber.memoizedState !== null, recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
), offscreenSubtreeWasHidden = prevHostParent;
break;
default:
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
);
}
}
function commitActivityHydrationCallbacks(finishedRoot, finishedWork) {
if (supportsHydration && finishedWork.memoizedState === null && (finishedRoot = finishedWork.alternate, finishedRoot !== null && (finishedRoot = finishedRoot.memoizedState, finishedRoot !== null))) {
finishedRoot = finishedRoot.dehydrated;
try {
commitHydratedActivityInstance(finishedRoot);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
}
function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
if (supportsHydration && finishedWork.memoizedState === null && (finishedRoot = finishedWork.alternate, finishedRoot !== null && (finishedRoot = finishedRoot.memoizedState, finishedRoot !== null && (finishedRoot = finishedRoot.dehydrated, finishedRoot !== null))))
try {
commitHydratedSuspenseInstance(finishedRoot);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function getRetryCache(finishedWork) {
switch (finishedWork.tag) {
case 31:
case 13:
case 19:
var retryCache = finishedWork.stateNode;
return retryCache === null && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()), retryCache;
case 22:
return finishedWork = finishedWork.stateNode, retryCache = finishedWork._retryCache, retryCache === null && (retryCache = finishedWork._retryCache = new PossiblyWeakSet()), retryCache;
default:
throw Error(formatProdErrorMessage(435, finishedWork.tag));
}
}
function attachSuspenseRetryListeners(finishedWork, wakeables) {
var retryCache = getRetryCache(finishedWork);
wakeables.forEach(function(wakeable) {
if (!retryCache.has(wakeable)) {
retryCache.add(wakeable);
var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);
wakeable.then(retry, retry);
}
});
}
function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
var deletions = parentFiber.deletions;
if (deletions !== null)
for (var i = 0; i < deletions.length; i++) {
var childToDelete = deletions[i], root = root$jscomp$0, returnFiber = parentFiber;
if (supportsMutation) {
var parent = returnFiber;
a: for (; parent !== null; ) {
switch (parent.tag) {
case 27:
if (supportsSingletons) {
if (isSingletonScope(parent.type)) {
hostParent = parent.stateNode, hostParentIsContainer = !1;
break a;
}
break;
}
case 5:
hostParent = parent.stateNode, hostParentIsContainer = !1;
break a;
case 3:
case 4:
hostParent = parent.stateNode.containerInfo, hostParentIsContainer = !0;
break a;
}
parent = parent.return;
}
if (hostParent === null) throw Error(formatProdErrorMessage(160));
commitDeletionEffectsOnFiber(root, returnFiber, childToDelete), hostParent = null, hostParentIsContainer = !1;
} else commitDeletionEffectsOnFiber(root, returnFiber, childToDelete);
root = childToDelete.alternate, root !== null && (root.return = null), childToDelete.return = null;
}
if (parentFiber.subtreeFlags & 13886)
for (parentFiber = parentFiber.child; parentFiber !== null; )
commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling;
}
function commitMutationEffectsOnFiber(finishedWork, root) {
var current = finishedWork.alternate, flags = finishedWork.flags;
switch (finishedWork.tag) {
case 0:
case 11:
case 14:
case 15:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 4 && (commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork), commitHookEffectListUnmount(5, finishedWork, finishedWork.return));
break;
case 1:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 512 && (offscreenSubtreeWasHidden || current === null || safelyDetachRef(current, current.return)), flags & 64 && offscreenSubtreeIsHidden && (finishedWork = finishedWork.updateQueue, finishedWork !== null && (flags = finishedWork.callbacks, flags !== null && (current = finishedWork.shared.hiddenCallbacks, finishedWork.shared.hiddenCallbacks = current === null ? flags : current.concat(flags))));
break;
case 26:
if (supportsResources) {
var hoistableRoot = currentHoistableRoot;
if (recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 512 && (offscreenSubtreeWasHidden || current === null || safelyDetachRef(current, current.return)), flags & 4) {
flags = current !== null ? current.memoizedState : null;
var newResource = finishedWork.memoizedState;
current === null ? newResource === null ? finishedWork.stateNode === null ? finishedWork.stateNode = hydrateHoistable(
hoistableRoot,
finishedWork.type,
finishedWork.memoizedProps,
finishedWork
) : mountHoistable(
hoistableRoot,
finishedWork.type,
finishedWork.stateNode
) : finishedWork.stateNode = acquireResource(
hoistableRoot,
newResource,
finishedWork.memoizedProps
) : flags !== newResource ? (flags === null ? current.stateNode !== null && unmountHoistable(current.stateNode) : releaseResource(flags), newResource === null ? mountHoistable(
hoistableRoot,
finishedWork.type,
finishedWork.stateNode
) : acquireResource(
hoistableRoot,
newResource,
finishedWork.memoizedProps
)) : newResource === null && finishedWork.stateNode !== null && commitHostUpdate(
finishedWork,
finishedWork.memoizedProps,
current.memoizedProps
);
}
break;
}
case 27:
if (supportsSingletons) {
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 512 && (offscreenSubtreeWasHidden || current === null || safelyDetachRef(current, current.return)), current !== null && flags & 4 && commitHostUpdate(
finishedWork,
finishedWork.memoizedProps,
current.memoizedProps
);
break;
}
case 5:
if (recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 512 && (offscreenSubtreeWasHidden || current === null || safelyDetachRef(current, current.return)), supportsMutation) {
if (finishedWork.flags & 32) {
hoistableRoot = finishedWork.stateNode;
try {
resetTextContent(hoistableRoot);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
flags & 4 && finishedWork.stateNode != null && (hoistableRoot = finishedWork.memoizedProps, commitHostUpdate(
finishedWork,
hoistableRoot,
current !== null ? current.memoizedProps : hoistableRoot
)), flags & 1024 && (needsFormReset = !0);
} else
supportsPersistence && finishedWork.alternate !== null && (finishedWork.alternate.stateNode = finishedWork.stateNode);
break;
case 6:
if (recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 4 && supportsMutation) {
if (finishedWork.stateNode === null)
throw Error(formatProdErrorMessage(162));
flags = finishedWork.memoizedProps, current = current !== null ? current.memoizedProps : flags, hoistableRoot = finishedWork.stateNode;
try {
commitTextUpdate(hoistableRoot, current, flags);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
break;
case 3:
if (supportsResources ? (prepareToCommitHoistables(), hoistableRoot = currentHoistableRoot, currentHoistableRoot = getHoistableRoot(root.containerInfo), recursivelyTraverseMutationEffects(root, finishedWork), currentHoistableRoot = hoistableRoot) : recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 4) {
if (supportsMutation && supportsHydration && current !== null && current.memoizedState.isDehydrated)
try {
commitHydratedContainer(root.containerInfo);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
if (supportsPersistence) {
flags = root.containerInfo, current = root.pendingChildren;
try {
replaceContainerChildren(flags, current);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
}
needsFormReset && (needsFormReset = !1, recursivelyResetForms(finishedWork));
break;
case 4:
supportsResources ? (current = currentHoistableRoot, currentHoistableRoot = getHoistableRoot(
finishedWork.stateNode.containerInfo
), recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), currentHoistableRoot = current) : (recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork)), flags & 4 && supportsPersistence && commitHostPortalContainerChildren(
finishedWork.stateNode,
finishedWork,
finishedWork.stateNode.pendingChildren
);
break;
case 12:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork);
break;
case 31:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags)));
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), finishedWork.child.flags & 8192 && finishedWork.memoizedState !== null != (current !== null && current.memoizedState !== null) && (globalMostRecentFallbackTime = now()), flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags)));
break;
case 22:
hoistableRoot = finishedWork.memoizedState !== null;
var wasHidden = current !== null && current.memoizedState !== null, prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
if (offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot, offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden, recursivelyTraverseMutationEffects(root, finishedWork), offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden, offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden, commitReconciliationEffects(finishedWork), flags & 8192 && (root = finishedWork.stateNode, root._visibility = hoistableRoot ? root._visibility & -2 : root._visibility | 1, hoistableRoot && (current === null || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), supportsMutation)) {
a: if (current = null, supportsMutation)
for (root = finishedWork; ; ) {
if (root.tag === 5 || supportsResources && root.tag === 26) {
if (current === null) {
wasHidden = current = root;
try {
newResource = wasHidden.stateNode, hoistableRoot ? hideInstance(newResource) : unhideInstance(
wasHidden.stateNode,
wasHidden.memoizedProps
);
} catch (error) {
captureCommitPhaseError(wasHidden, wasHidden.return, error);
}
}
} else if (root.tag === 6) {
if (current === null) {
wasHidden = root;
try {
var instance = wasHidden.stateNode;
hoistableRoot ? hideTextInstance(instance) : unhideTextInstance(instance, wasHidden.memoizedProps);
} catch (error) {
captureCommitPhaseError(wasHidden, wasHidden.return, error);
}
}
} else if (root.tag === 18) {
if (current === null) {
wasHidden = root;
try {
var instance$jscomp$0 = wasHidden.stateNode;
hoistableRoot ? hideDehydratedBoundary(instance$jscomp$0) : unhideDehydratedBoundary(wasHidden.stateNode);
} catch (error) {
captureCommitPhaseError(wasHidden, wasHidden.return, error);
}
}
} else if ((root.tag !== 22 && root.tag !== 23 || root.memoizedState === null || root === finishedWork) && root.child !== null) {
root.child.return = root, root = root.child;
continue;
}
if (root === finishedWork) break a;
for (; root.sibling === null; ) {
if (root.return === null || root.return === finishedWork)
break a;
current === root && (current = null), root = root.return;
}
current === root && (current = null), root.sibling.return = root.return, root = root.sibling;
}
}
flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (current = flags.retryQueue, current !== null && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current))));
break;
case 19:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags)));
break;
case 30:
break;
case 21:
break;
default:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork);
}
}
function commitReconciliationEffects(finishedWork) {
var flags = finishedWork.flags;
if (flags & 2) {
try {
for (var hostParentFiber, parentFiber = finishedWork.return; parentFiber !== null; ) {
if (isHostParent(parentFiber)) {
hostParentFiber = parentFiber;
break;
}
parentFiber = parentFiber.return;
}
if (supportsMutation) {
if (hostParentFiber == null) throw Error(formatProdErrorMessage(160));
switch (hostParentFiber.tag) {
case 27:
if (supportsSingletons) {
var parent = hostParentFiber.stateNode, before = getHostSibling(finishedWork);
insertOrAppendPlacementNode(finishedWork, before, parent);
break;
}
case 5:
var parent$125 = hostParentFiber.stateNode;
hostParentFiber.flags & 32 && (resetTextContent(parent$125), hostParentFiber.flags &= -33);
var before$126 = getHostSibling(finishedWork);
insertOrAppendPlacementNode(finishedWork, before$126, parent$125);
break;
case 3:
case 4:
var parent$127 = hostParentFiber.stateNode.containerInfo, before$128 = getHostSibling(finishedWork);
insertOrAppendPlacementNodeIntoContainer(
finishedWork,
before$128,
parent$127
);
break;
default:
throw Error(formatProdErrorMessage(161));
}
}
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
finishedWork.flags &= -3;
}
flags & 4096 && (finishedWork.flags &= -4097);
}
function recursivelyResetForms(parentFiber) {
if (parentFiber.subtreeFlags & 1024)
for (parentFiber = parentFiber.child; parentFiber !== null; ) {
var fiber = parentFiber;
recursivelyResetForms(fiber), fiber.tag === 5 && fiber.flags & 1024 && resetFormInstance(fiber.stateNode), parentFiber = parentFiber.sibling;
}
}
function recursivelyTraverseLayoutEffects(root, parentFiber) {
if (parentFiber.subtreeFlags & 8772)
for (parentFiber = parentFiber.child; parentFiber !== null; )
commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber), parentFiber = parentFiber.sibling;
}
function recursivelyTraverseDisappearLayoutEffects(parentFiber) {
for (parentFiber = parentFiber.child; parentFiber !== null; ) {
var finishedWork = parentFiber;
switch (finishedWork.tag) {
case 0:
case 11:
case 14:
case 15:
commitHookEffectListUnmount(4, finishedWork, finishedWork.return), recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 1:
safelyDetachRef(finishedWork, finishedWork.return);
var instance = finishedWork.stateNode;
typeof instance.componentWillUnmount == "function" && safelyCallComponentWillUnmount(
finishedWork,
finishedWork.return,
instance
), recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 27:
supportsSingletons && releaseSingletonInstance(finishedWork.stateNode);
case 26:
case 5:
safelyDetachRef(finishedWork, finishedWork.return), recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 22:
finishedWork.memoizedState === null && recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 30:
recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
default:
recursivelyTraverseDisappearLayoutEffects(finishedWork);
}
parentFiber = parentFiber.sibling;
}
}
function recursivelyTraverseReappearLayoutEffects(finishedRoot$jscomp$0, parentFiber, includeWorkInProgressEffects) {
for (includeWorkInProgressEffects = includeWorkInProgressEffects && (parentFiber.subtreeFlags & 8772) !== 0, parentFiber = parentFiber.child; parentFiber !== null; ) {
var current = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags;
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), commitHookEffectListMount(4, finishedWork);
break;
case 1:
if (recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), current = finishedWork, finishedRoot = current.stateNode, typeof finishedRoot.componentDidMount == "function")
try {
finishedRoot.componentDidMount();
} catch (error) {
captureCommitPhaseError(current, current.return, error);
}
if (current = finishedWork, finishedRoot = current.updateQueue, finishedRoot !== null) {
var instance = current.stateNode;
try {
var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks;
if (hiddenCallbacks !== null)
for (finishedRoot.shared.hiddenCallbacks = null, finishedRoot = 0; finishedRoot < hiddenCallbacks.length; finishedRoot++)
callCallback(hiddenCallbacks[finishedRoot], instance);
} catch (error) {
captureCommitPhaseError(current, current.return, error);
}
}
includeWorkInProgressEffects && flags & 64 && commitClassCallbacks(finishedWork), safelyAttachRef(finishedWork, finishedWork.return);
break;
case 27:
supportsSingletons && commitHostSingletonAcquisition(finishedWork);
case 26:
case 5:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), includeWorkInProgressEffects && current === null && flags & 4 && commitHostMount(finishedWork), safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
break;
case 31:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), includeWorkInProgressEffects && flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork);
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), includeWorkInProgressEffects && flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
break;
case 22:
finishedWork.memoizedState === null && recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), safelyAttachRef(finishedWork, finishedWork.return);
break;
case 30:
break;
default:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
}
parentFiber = parentFiber.sibling;
}
}
function commitOffscreenPassiveMountEffects(current, finishedWork) {
var previousCache = null;
current !== null && current.memoizedState !== null && current.memoizedState.cachePool !== null && (previousCache = current.memoizedState.cachePool.pool), current = null, finishedWork.memoizedState !== null && finishedWork.memoizedState.cachePool !== null && (current = finishedWork.memoizedState.cachePool.pool), current !== previousCache && (current != null && current.refCount++, previousCache != null && releaseCache(previousCache));
}
function commitCachePassiveMountEffect(current, finishedWork) {
current = null, finishedWork.alternate !== null && (current = finishedWork.alternate.memoizedState.cache), finishedWork = finishedWork.memoizedState.cache, finishedWork !== current && (finishedWork.refCount++, current != null && releaseCache(current));
}
function recursivelyTraversePassiveMountEffects(root, parentFiber, committedLanes, committedTransitions) {
if (parentFiber.subtreeFlags & 10256)
for (parentFiber = parentFiber.child; parentFiber !== null; )
commitPassiveMountOnFiber(
root,
parentFiber,
committedLanes,
committedTransitions
), parentFiber = parentFiber.sibling;
}
function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) {
var flags = finishedWork.flags;
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
), flags & 2048 && commitHookEffectListMount(9, finishedWork);
break;
case 1:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 3:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
), flags & 2048 && (finishedRoot = null, finishedWork.alternate !== null && (finishedRoot = finishedWork.alternate.memoizedState.cache), finishedWork = finishedWork.memoizedState.cache, finishedWork !== finishedRoot && (finishedWork.refCount++, finishedRoot != null && releaseCache(finishedRoot)));
break;
case 12:
if (flags & 2048) {
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
), finishedRoot = finishedWork.stateNode;
try {
var _finishedWork$memoize2 = finishedWork.memoizedProps, id = _finishedWork$memoize2.id, onPostCommit = _finishedWork$memoize2.onPostCommit;
typeof onPostCommit == "function" && onPostCommit(
id,
finishedWork.alternate === null ? "mount" : "update",
finishedRoot.passiveEffectDuration,
-0
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
} else
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 31:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 13:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
break;
case 22:
_finishedWork$memoize2 = finishedWork.stateNode, id = finishedWork.alternate, finishedWork.memoizedState !== null ? _finishedWork$memoize2._visibility & 2 ? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
) : recursivelyTraverseAtomicPassiveEffects(
finishedRoot,
finishedWork
) : _finishedWork$memoize2._visibility & 2 ? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
) : (_finishedWork$memoize2._visibility |= 2, recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
(finishedWork.subtreeFlags & 10256) !== 0 || !1
)), flags & 2048 && commitOffscreenPassiveMountEffects(id, finishedWork);
break;
case 24:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
), flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);
break;
default:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
}
}
function recursivelyTraverseReconnectPassiveEffects(finishedRoot$jscomp$0, parentFiber, committedLanes$jscomp$0, committedTransitions$jscomp$0, includeWorkInProgressEffects) {
for (includeWorkInProgressEffects = includeWorkInProgressEffects && ((parentFiber.subtreeFlags & 10256) !== 0 || !1), parentFiber = parentFiber.child; parentFiber !== null; ) {
var finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, committedLanes = committedLanes$jscomp$0, committedTransitions = committedTransitions$jscomp$0, flags = finishedWork.flags;
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects
), commitHookEffectListMount(8, finishedWork);
break;
case 23:
break;
case 22:
var instance = finishedWork.stateNode;
finishedWork.memoizedState !== null ? instance._visibility & 2 ? recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects
) : recursivelyTraverseAtomicPassiveEffects(
finishedRoot,
finishedWork
) : (instance._visibility |= 2, recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects
)), includeWorkInProgressEffects && flags & 2048 && commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork
);
break;
case 24:
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects
), includeWorkInProgressEffects && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);
break;
default:
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects
);
}
parentFiber = parentFiber.sibling;
}
}
function recursivelyTraverseAtomicPassiveEffects(finishedRoot$jscomp$0, parentFiber) {
if (parentFiber.subtreeFlags & 10256)
for (parentFiber = parentFiber.child; parentFiber !== null; ) {
var finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags;
switch (finishedWork.tag) {
case 22:
recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork), flags & 2048 && commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork
);
break;
case 24:
recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork), flags & 2048 && commitCachePassiveMountEffect(
finishedWork.alternate,
finishedWork
);
break;
default:
recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);
}
parentFiber = parentFiber.sibling;
}
}
function recursivelyAccumulateSuspenseyCommit(parentFiber, committedLanes, suspendedState) {
if (parentFiber.subtreeFlags & suspenseyCommitFlag)
for (parentFiber = parentFiber.child; parentFiber !== null; )
accumulateSuspenseyCommitOnFiber(
parentFiber,
committedLanes,
suspendedState
), parentFiber = parentFiber.sibling;
}
function accumulateSuspenseyCommitOnFiber(fiber, committedLanes, suspendedState) {
switch (fiber.tag) {
case 26:
if (recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
), fiber.flags & suspenseyCommitFlag)
if (fiber.memoizedState !== null)
suspendResource(
suspendedState,
currentHoistableRoot,
fiber.memoizedState,
fiber.memoizedProps
);
else {
var instance = fiber.stateNode, type = fiber.type;
fiber = fiber.memoizedProps, ((committedLanes & 335544128) === committedLanes || maySuspendCommitInSyncRender(type, fiber)) && suspendInstance(suspendedState, instance, type, fiber);
}
break;
case 5:
recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
), fiber.flags & suspenseyCommitFlag && (instance = fiber.stateNode, type = fiber.type, fiber = fiber.memoizedProps, ((committedLanes & 335544128) === committedLanes || maySuspendCommitInSyncRender(type, fiber)) && suspendInstance(suspendedState, instance, type, fiber));
break;
case 3:
case 4:
supportsResources ? (instance = currentHoistableRoot, currentHoistableRoot = getHoistableRoot(
fiber.stateNode.containerInfo
), recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
), currentHoistableRoot = instance) : recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
);
break;
case 22:
fiber.memoizedState === null && (instance = fiber.alternate, instance !== null && instance.memoizedState !== null ? (instance = suspenseyCommitFlag, suspenseyCommitFlag = 16777216, recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
), suspenseyCommitFlag = instance) : recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
));
break;
default:
recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
);
}
}
function detachAlternateSiblings(parentFiber) {
var previousFiber = parentFiber.alternate;
if (previousFiber !== null && (parentFiber = previousFiber.child, parentFiber !== null)) {
previousFiber.child = null;
do
previousFiber = parentFiber.sibling, parentFiber.sibling = null, parentFiber = previousFiber;
while (parentFiber !== null);
}
}
function recursivelyTraversePassiveUnmountEffects(parentFiber) {
var deletions = parentFiber.deletions;
if ((parentFiber.flags & 16) !== 0) {
if (deletions !== null)
for (var i = 0; i < deletions.length; i++) {
var childToDelete = deletions[i];
nextEffect = childToDelete, commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
childToDelete,
parentFiber
);
}
detachAlternateSiblings(parentFiber);
}
if (parentFiber.subtreeFlags & 10256)
for (parentFiber = parentFiber.child; parentFiber !== null; )
commitPassiveUnmountOnFiber(parentFiber), parentFiber = parentFiber.sibling;
}
function commitPassiveUnmountOnFiber(finishedWork) {
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
recursivelyTraversePassiveUnmountEffects(finishedWork), finishedWork.flags & 2048 && commitHookEffectListUnmount(9, finishedWork, finishedWork.return);
break;
case 3:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 12:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 22:
var instance = finishedWork.stateNode;
finishedWork.memoizedState !== null && instance._visibility & 2 && (finishedWork.return === null || finishedWork.return.tag !== 13) ? (instance._visibility &= -3, recursivelyTraverseDisconnectPassiveEffects(finishedWork)) : recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
default:
recursivelyTraversePassiveUnmountEffects(finishedWork);
}
}
function recursivelyTraverseDisconnectPassiveEffects(parentFiber) {
var deletions = parentFiber.deletions;
if ((parentFiber.flags & 16) !== 0) {
if (deletions !== null)
for (var i = 0; i < deletions.length; i++) {
var childToDelete = deletions[i];
nextEffect = childToDelete, commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
childToDelete,
parentFiber
);
}
detachAlternateSiblings(parentFiber);
}
for (parentFiber = parentFiber.child; parentFiber !== null; ) {
switch (deletions = parentFiber, deletions.tag) {
case 0:
case 11:
case 15:
commitHookEffectListUnmount(8, deletions, deletions.return), recursivelyTraverseDisconnectPassiveEffects(deletions);
break;
case 22:
i = deletions.stateNode, i._visibility & 2 && (i._visibility &= -3, recursivelyTraverseDisconnectPassiveEffects(deletions));
break;
default:
recursivelyTraverseDisconnectPassiveEffects(deletions);
}
parentFiber = parentFiber.sibling;
}
}
function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) {
for (; nextEffect !== null; ) {
var fiber = nextEffect;
switch (fiber.tag) {
case 0:
case 11:
case 15:
commitHookEffectListUnmount(8, fiber, nearestMountedAncestor);
break;
case 23:
case 22:
if (fiber.memoizedState !== null && fiber.memoizedState.cachePool !== null) {
var cache3 = fiber.memoizedState.cachePool.pool;
cache3 != null && cache3.refCount++;
}
break;
case 24:
releaseCache(fiber.memoizedState.cache);
}
if (cache3 = fiber.child, cache3 !== null) cache3.return = fiber, nextEffect = cache3;
else
a: for (fiber = deletedSubtreeRoot; nextEffect !== null; ) {
cache3 = nextEffect;
var sibling = cache3.sibling, returnFiber = cache3.return;
if (detachFiberAfterEffects(cache3), cache3 === fiber) {
nextEffect = null;
break a;
}
if (sibling !== null) {
sibling.return = returnFiber, nextEffect = sibling;
break a;
}
nextEffect = returnFiber;
}
}
}
function findFiberRootForHostRoot(hostRoot) {
var maybeFiber = getInstanceFromNode(hostRoot);
if (maybeFiber != null) {
if (typeof maybeFiber.memoizedProps["data-testname"] != "string")
throw Error(formatProdErrorMessage(364));
return maybeFiber;
}
if (hostRoot = findFiberRoot(hostRoot), hostRoot === null) throw Error(formatProdErrorMessage(362));
return hostRoot.stateNode.current;
}
function matchSelector(fiber$jscomp$0, selector) {
var tag = fiber$jscomp$0.tag;
switch (selector.$$typeof) {
case COMPONENT_TYPE:
if (fiber$jscomp$0.type === selector.value) return !0;
break;
case HAS_PSEUDO_CLASS_TYPE:
a: {
for (selector = selector.value, fiber$jscomp$0 = [fiber$jscomp$0, 0], tag = 0; tag < fiber$jscomp$0.length; ) {
var fiber = fiber$jscomp$0[tag++], tag$jscomp$0 = fiber.tag, selectorIndex = fiber$jscomp$0[tag++], selector$jscomp$0 = selector[selectorIndex];
if (tag$jscomp$0 !== 5 && tag$jscomp$0 !== 26 && tag$jscomp$0 !== 27 || !isHiddenSubtree(fiber)) {
for (; selector$jscomp$0 != null && matchSelector(fiber, selector$jscomp$0); )
selectorIndex++, selector$jscomp$0 = selector[selectorIndex];
if (selectorIndex === selector.length) {
selector = !0;
break a;
} else
for (fiber = fiber.child; fiber !== null; )
fiber$jscomp$0.push(fiber, selectorIndex), fiber = fiber.sibling;
}
}
selector = !1;
}
return selector;
case ROLE_TYPE:
if ((tag === 5 || tag === 26 || tag === 27) && matchAccessibilityRole(fiber$jscomp$0.stateNode, selector.value))
return !0;
break;
case TEXT_TYPE:
if ((tag === 5 || tag === 6 || tag === 26 || tag === 27) && (fiber$jscomp$0 = getTextContent(fiber$jscomp$0), fiber$jscomp$0 !== null && 0 <= fiber$jscomp$0.indexOf(selector.value)))
return !0;
break;
case TEST_NAME_TYPE:
if ((tag === 5 || tag === 26 || tag === 27) && (fiber$jscomp$0 = fiber$jscomp$0.memoizedProps["data-testname"], typeof fiber$jscomp$0 == "string" && fiber$jscomp$0.toLowerCase() === selector.value.toLowerCase()))
return !0;
break;
default:
throw Error(formatProdErrorMessage(365));
}
return !1;
}
function selectorToString(selector) {
switch (selector.$$typeof) {
case COMPONENT_TYPE:
return "<" + (getComponentNameFromType(selector.value) || "Unknown") + ">";
case HAS_PSEUDO_CLASS_TYPE:
return ":has(" + (selectorToString(selector) || "") + ")";
case ROLE_TYPE:
return '[role="' + selector.value + '"]';
case TEXT_TYPE:
return '"' + selector.value + '"';
case TEST_NAME_TYPE:
return '[data-testname="' + selector.value + '"]';
default:
throw Error(formatProdErrorMessage(365));
}
}
function findPaths(root, selectors) {
var matchingFibers = [];
root = [root, 0];
for (var index = 0; index < root.length; ) {
var fiber = root[index++], tag = fiber.tag, selectorIndex = root[index++], selector = selectors[selectorIndex];
if (tag !== 5 && tag !== 26 && tag !== 27 || !isHiddenSubtree(fiber)) {
for (; selector != null && matchSelector(fiber, selector); )
selectorIndex++, selector = selectors[selectorIndex];
if (selectorIndex === selectors.length) matchingFibers.push(fiber);
else
for (fiber = fiber.child; fiber !== null; )
root.push(fiber, selectorIndex), fiber = fiber.sibling;
}
}
return matchingFibers;
}
function findAllNodes(hostRoot, selectors) {
if (!supportsTestSelectors) throw Error(formatProdErrorMessage(363));
hostRoot = findFiberRootForHostRoot(hostRoot), hostRoot = findPaths(hostRoot, selectors), selectors = [], hostRoot = Array.from(hostRoot);
for (var index = 0; index < hostRoot.length; ) {
var node = hostRoot[index++], tag = node.tag;
if (tag === 5 || tag === 26 || tag === 27)
isHiddenSubtree(node) || selectors.push(node.stateNode);
else
for (node = node.child; node !== null; )
hostRoot.push(node), node = node.sibling;
}
return selectors;
}
function requestUpdateLane() {
return (executionContext & 2) !== 0 && workInProgressRootRenderLanes !== 0 ? workInProgressRootRenderLanes & -workInProgressRootRenderLanes : ReactSharedInternals.T !== null ? requestTransitionLane() : resolveUpdatePriority();
}
function requestDeferredLane() {
if (workInProgressDeferredLane === 0)
if ((workInProgressRootRenderLanes & 536870912) === 0 || isHydrating) {
var lane = nextTransitionDeferredLane;
nextTransitionDeferredLane <<= 1, (nextTransitionDeferredLane & 3932160) === 0 && (nextTransitionDeferredLane = 262144), workInProgressDeferredLane = lane;
} else workInProgressDeferredLane = 536870912;
return lane = suspenseHandlerStackCursor.current, lane !== null && (lane.flags |= 32), workInProgressDeferredLane;
}
function scheduleUpdateOnFiber(root, fiber, lane) {
(root === workInProgressRoot && (workInProgressSuspendedReason === 2 || workInProgressSuspendedReason === 9) || root.cancelPendingCommit !== null) && (prepareFreshStack(root, 0), markRootSuspended(
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
!1
)), markRootUpdated$1(root, lane), ((executionContext & 2) === 0 || root !== workInProgressRoot) && (root === workInProgressRoot && ((executionContext & 2) === 0 && (workInProgressRootInterleavedUpdatedLanes |= lane), workInProgressRootExitStatus === 4 && markRootSuspended(
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
!1
)), ensureRootIsScheduled(root));
}
function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
if ((executionContext & 6) !== 0) throw Error(formatProdErrorMessage(327));
var shouldTimeSlice = !forceSync && (lanes & 127) === 0 && (lanes & root$jscomp$0.expiredLanes) === 0 || checkIfRootIsPrerendering(root$jscomp$0, lanes), exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, !0), renderWasConcurrent = shouldTimeSlice;
do {
if (exitStatus === 0) {
workInProgressRootIsPrerendering && !shouldTimeSlice && markRootSuspended(root$jscomp$0, lanes, 0, !1);
break;
} else {
if (forceSync = root$jscomp$0.current.alternate, renderWasConcurrent && !isRenderConsistentWithExternalStores(forceSync)) {
exitStatus = renderRootSync(root$jscomp$0, lanes, !1), renderWasConcurrent = !1;
continue;
}
if (exitStatus === 2) {
if (renderWasConcurrent = lanes, root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
var JSCompiler_inline_result = 0;
else
JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913, JSCompiler_inline_result = JSCompiler_inline_result !== 0 ? JSCompiler_inline_result : JSCompiler_inline_result & 536870912 ? 536870912 : 0;
if (JSCompiler_inline_result !== 0) {
lanes = JSCompiler_inline_result;
a: {
var root = root$jscomp$0;
exitStatus = workInProgressRootConcurrentErrors;
var wasRootDehydrated = supportsHydration && root.current.memoizedState.isDehydrated;
if (wasRootDehydrated && (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256), JSCompiler_inline_result = renderRootSync(
root,
JSCompiler_inline_result,
!1
), JSCompiler_inline_result !== 2) {
if (workInProgressRootDidAttachPingListener && !wasRootDehydrated) {
root.errorRecoveryDisabledLanes |= renderWasConcurrent, workInProgressRootInterleavedUpdatedLanes |= renderWasConcurrent, exitStatus = 4;
break a;
}
renderWasConcurrent = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = exitStatus, renderWasConcurrent !== null && (workInProgressRootRecoverableErrors === null ? workInProgressRootRecoverableErrors = renderWasConcurrent : workInProgressRootRecoverableErrors.push.apply(
workInProgressRootRecoverableErrors,
renderWasConcurrent
));
}
exitStatus = JSCompiler_inline_result;
}
if (renderWasConcurrent = !1, exitStatus !== 2) continue;
}
}
if (exitStatus === 1) {
prepareFreshStack(root$jscomp$0, 0), markRootSuspended(root$jscomp$0, lanes, 0, !0);
break;
}
a: {
switch (shouldTimeSlice = root$jscomp$0, renderWasConcurrent = exitStatus, renderWasConcurrent) {
case 0:
case 1:
throw Error(formatProdErrorMessage(345));
case 4:
if ((lanes & 4194048) !== lanes) break;
case 6:
markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
);
break a;
case 2:
workInProgressRootRecoverableErrors = null;
break;
case 3:
case 5:
break;
default:
throw Error(formatProdErrorMessage(329));
}
if ((lanes & 62914560) === lanes && (exitStatus = globalMostRecentFallbackTime + 300 - now(), 10 < exitStatus)) {
if (markRootSuspended(
shouldTimeSlice,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
), getNextLanes(shouldTimeSlice, 0, !0) !== 0) break a;
pendingEffectsLanes = lanes, shouldTimeSlice.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
renderWasConcurrent,
"Throttled",
-0,
0
),
exitStatus
);
break a;
}
commitRootWhenReady(
shouldTimeSlice,
forceSync,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
renderWasConcurrent,
null,
-0,
0
);
}
}
break;
} while (!0);
ensureRootIsScheduled(root$jscomp$0);
}
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) {
if (root.timeoutHandle = noTimeout, suspendedCommitReason = finishedWork.subtreeFlags, suspendedCommitReason & 8192 || (suspendedCommitReason & 16785408) === 16785408) {
suspendedCommitReason = startSuspendingCommit(), accumulateSuspenseyCommitOnFiber(
finishedWork,
lanes,
suspendedCommitReason
);
var timeoutOffset = (lanes & 62914560) === lanes ? globalMostRecentFallbackTime - now() : (lanes & 4194048) === lanes ? globalMostRecentTransitionTime - now() : 0;
if (timeoutOffset = waitForCommitToBeReady(
suspendedCommitReason,
timeoutOffset
), timeoutOffset !== null) {
pendingEffectsLanes = lanes, root.cancelPendingCommit = timeoutOffset(
commitRoot.bind(
null,
root,
finishedWork,
lanes,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate,
spawnedLane,
updatedLanes,
suspendedRetryLanes,
exitStatus,
suspendedCommitReason,
null,
completedRenderStartTime,
completedRenderEndTime
)
), markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);
return;
}
}
commitRoot(
root,
finishedWork,
lanes,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate,
spawnedLane,
updatedLanes,
suspendedRetryLanes
);
}
function isRenderConsistentWithExternalStores(finishedWork) {
for (var node = finishedWork; ; ) {
var tag = node.tag;
if ((tag === 0 || tag === 11 || tag === 15) && node.flags & 16384 && (tag = node.updateQueue, tag !== null && (tag = tag.stores, tag !== null)))
for (var i = 0; i < tag.length; i++) {
var check2 = tag[i], getSnapshot = check2.getSnapshot;
check2 = check2.value;
try {
if (!objectIs(getSnapshot(), check2)) return !1;
} catch {
return !1;
}
}
if (tag = node.child, node.subtreeFlags & 16384 && tag !== null)
tag.return = node, node = tag;
else {
if (node === finishedWork) break;
for (; node.sibling === null; ) {
if (node.return === null || node.return === finishedWork) return !0;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
}
return !0;
}
function markRootSuspended(root, suspendedLanes, spawnedLane, didAttemptEntireTree) {
suspendedLanes &= ~workInProgressRootPingedLanes, suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes, root.suspendedLanes |= suspendedLanes, root.pingedLanes &= ~suspendedLanes, didAttemptEntireTree && (root.warmLanes |= suspendedLanes), didAttemptEntireTree = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index$4 = 31 - clz32(lanes), lane = 1 << index$4;
didAttemptEntireTree[index$4] = -1, lanes &= ~lane;
}
spawnedLane !== 0 && markSpawnedDeferredLane(root, spawnedLane, suspendedLanes);
}
function flushSyncWork() {
return (executionContext & 6) === 0 ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0;
}
function resetWorkInProgressStack() {
if (workInProgress !== null) {
if (workInProgressSuspendedReason === 0)
var interruptedWork = workInProgress.return;
else
interruptedWork = workInProgress, lastContextDependency = currentlyRenderingFiber$1 = null, resetHooksOnUnwind(interruptedWork), thenableState$1 = null, thenableIndexCounter$1 = 0, interruptedWork = workInProgress;
for (; interruptedWork !== null; )
unwindInterruptedWork(interruptedWork.alternate, interruptedWork), interruptedWork = interruptedWork.return;
workInProgress = null;
}
}
function prepareFreshStack(root, lanes) {
var timeoutHandle = root.timeoutHandle;
timeoutHandle !== noTimeout && (root.timeoutHandle = noTimeout, cancelTimeout(timeoutHandle)), timeoutHandle = root.cancelPendingCommit, timeoutHandle !== null && (root.cancelPendingCommit = null, timeoutHandle()), pendingEffectsLanes = 0, resetWorkInProgressStack(), workInProgressRoot = root, workInProgress = timeoutHandle = createWorkInProgress(root.current, null), workInProgressRootRenderLanes = lanes, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes), workInProgressRootDidAttachPingListener = !1, workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = workInProgressRootExitStatus = 0, workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, (lanes & 8) !== 0 && (lanes |= lanes & 32);
var allEntangledLanes = root.entangledLanes;
if (allEntangledLanes !== 0)
for (root = root.entanglements, allEntangledLanes &= lanes; 0 < allEntangledLanes; ) {
var index$2 = 31 - clz32(allEntangledLanes), lane = 1 << index$2;
lanes |= root[index$2], allEntangledLanes &= ~lane;
}
return entangledRenderLanes = lanes, finishQueueingConcurrentUpdates(), timeoutHandle;
}
function handleThrow(root, thrownValue) {
currentlyRenderingFiber = null, ReactSharedInternals.H = ContextOnlyDispatcher, thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 3) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 4) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? 8 : thrownValue !== null && typeof thrownValue == "object" && typeof thrownValue.then == "function" ? 6 : 1, workInProgressThrownValue = thrownValue, workInProgress === null && (workInProgressRootExitStatus = 1, logUncaughtError(
root,
createCapturedValueAtFiber(thrownValue, root.current)
));
}
function shouldRemainOnPreviousScreen() {
var handler = suspenseHandlerStackCursor.current;
return handler === null ? !0 : (workInProgressRootRenderLanes & 4194048) === workInProgressRootRenderLanes ? shellBoundary === null : (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes || (workInProgressRootRenderLanes & 536870912) !== 0 ? handler === shellBoundary : !1;
}
function pushDispatcher() {
var prevDispatcher = ReactSharedInternals.H;
return ReactSharedInternals.H = ContextOnlyDispatcher, prevDispatcher === null ? ContextOnlyDispatcher : prevDispatcher;
}
function pushAsyncDispatcher() {
var prevAsyncDispatcher = ReactSharedInternals.A;
return ReactSharedInternals.A = DefaultAsyncDispatcher, prevAsyncDispatcher;
}
function renderDidSuspendDelayIfPossible() {
workInProgressRootExitStatus = 4, workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && suspenseHandlerStackCursor.current !== null || (workInProgressRootIsPrerendering = !0), (workInProgressRootSkippedLanes & 134217727) === 0 && (workInProgressRootInterleavedUpdatedLanes & 134217727) === 0 || workInProgressRoot === null || markRootSuspended(
workInProgressRoot,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
!1
);
}
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
var prevExecutionContext = executionContext;
executionContext |= 2;
var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher();
(workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) && (workInProgressTransitions = null, prepareFreshStack(root, lanes)), lanes = !1;
var exitStatus = workInProgressRootExitStatus;
a: do
try {
if (workInProgressSuspendedReason !== 0 && workInProgress !== null) {
var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue;
switch (workInProgressSuspendedReason) {
case 8:
resetWorkInProgressStack(), exitStatus = 6;
break a;
case 3:
case 2:
case 9:
case 6:
suspenseHandlerStackCursor.current === null && (lanes = !0);
var reason = workInProgressSuspendedReason;
if (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason), shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
exitStatus = 0;
break a;
}
break;
default:
reason = workInProgressSuspendedReason, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
}
}
workLoopSync(), exitStatus = workInProgressRootExitStatus;
break;
} catch (thrownValue$152) {
handleThrow(root, thrownValue$152);
}
while (!0);
return lanes && root.shellSuspendCounter++, lastContextDependency = currentlyRenderingFiber$1 = null, executionContext = prevExecutionContext, ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, workInProgress === null && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates()), exitStatus;
}
function workLoopSync() {
for (; workInProgress !== null; ) performUnitOfWork(workInProgress);
}
function renderRootConcurrent(root, lanes) {
var prevExecutionContext = executionContext;
executionContext |= 2;
var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher();
workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes ? (workInProgressTransitions = null, workInProgressRootRenderTargetTime = now() + 500, prepareFreshStack(root, lanes)) : workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
root,
lanes
);
a: do
try {
if (workInProgressSuspendedReason !== 0 && workInProgress !== null) {
lanes = workInProgress;
var thrownValue = workInProgressThrownValue;
b: switch (workInProgressSuspendedReason) {
case 1:
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, lanes, thrownValue, 1);
break;
case 2:
case 9:
if (isThenableResolved(thrownValue)) {
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes);
break;
}
lanes = function() {
workInProgressSuspendedReason !== 2 && workInProgressSuspendedReason !== 9 || workInProgressRoot !== root || (workInProgressSuspendedReason = 7), ensureRootIsScheduled(root);
}, thrownValue.then(lanes, lanes);
break a;
case 3:
workInProgressSuspendedReason = 7;
break a;
case 4:
workInProgressSuspendedReason = 5;
break a;
case 7:
isThenableResolved(thrownValue) ? (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, lanes, thrownValue, 7));
break;
case 5:
var resource = null;
switch (workInProgress.tag) {
case 26:
resource = workInProgress.memoizedState;
case 5:
case 27:
var hostFiber = workInProgress, type = hostFiber.type, props = hostFiber.pendingProps;
if (resource ? preloadResource(resource) : preloadInstance(hostFiber.stateNode, type, props)) {
workInProgressSuspendedReason = 0, workInProgressThrownValue = null;
var sibling = hostFiber.sibling;
if (sibling !== null) workInProgress = sibling;
else {
var returnFiber = hostFiber.return;
returnFiber !== null ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null;
}
break b;
}
}
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, lanes, thrownValue, 5);
break;
case 6:
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, lanes, thrownValue, 6);
break;
case 8:
resetWorkInProgressStack(), workInProgressRootExitStatus = 6;
break a;
default:
throw Error(formatProdErrorMessage(462));
}
}
workLoopConcurrentByScheduler();
break;
} catch (thrownValue$154) {
handleThrow(root, thrownValue$154);
}
while (!0);
return lastContextDependency = currentlyRenderingFiber$1 = null, ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, executionContext = prevExecutionContext, workInProgress !== null ? 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates(), workInProgressRootExitStatus);
}
function workLoopConcurrentByScheduler() {
for (; workInProgress !== null && !shouldYield(); )
performUnitOfWork(workInProgress);
}
function performUnitOfWork(unitOfWork) {
var next = beginWork(
unitOfWork.alternate,
unitOfWork,
entangledRenderLanes
);
unitOfWork.memoizedProps = unitOfWork.pendingProps, next === null ? completeUnitOfWork(unitOfWork) : workInProgress = next;
}
function replaySuspendedUnitOfWork(unitOfWork) {
var next = unitOfWork, current = next.alternate;
switch (next.tag) {
case 15:
case 0:
next = replayFunctionComponent(
current,
next,
next.pendingProps,
next.type,
void 0,
workInProgressRootRenderLanes
);
break;
case 11:
next = replayFunctionComponent(
current,
next,
next.pendingProps,
next.type.render,
next.ref,
workInProgressRootRenderLanes
);
break;
case 5:
resetHooksOnUnwind(next);
default:
unwindInterruptedWork(current, next), next = workInProgress = resetWorkInProgress(next, entangledRenderLanes), next = beginWork(current, next, entangledRenderLanes);
}
unitOfWork.memoizedProps = unitOfWork.pendingProps, next === null ? completeUnitOfWork(unitOfWork) : workInProgress = next;
}
function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, suspendedReason) {
lastContextDependency = currentlyRenderingFiber$1 = null, resetHooksOnUnwind(unitOfWork), thenableState$1 = null, thenableIndexCounter$1 = 0;
var returnFiber = unitOfWork.return;
try {
if (throwException(
root,
returnFiber,
unitOfWork,
thrownValue,
workInProgressRootRenderLanes
)) {
workInProgressRootExitStatus = 1, logUncaughtError(
root,
createCapturedValueAtFiber(thrownValue, root.current)
), workInProgress = null;
return;
}
} catch (error) {
if (returnFiber !== null) throw workInProgress = returnFiber, error;
workInProgressRootExitStatus = 1, logUncaughtError(
root,
createCapturedValueAtFiber(thrownValue, root.current)
), workInProgress = null;
return;
}
unitOfWork.flags & 32768 ? (isHydrating || suspendedReason === 1 ? root = !0 : workInProgressRootIsPrerendering || (workInProgressRootRenderLanes & 536870912) !== 0 ? root = !1 : (workInProgressRootDidSkipSuspendedSiblings = root = !0, (suspendedReason === 2 || suspendedReason === 9 || suspendedReason === 3 || suspendedReason === 6) && (suspendedReason = suspenseHandlerStackCursor.current, suspendedReason !== null && suspendedReason.tag === 13 && (suspendedReason.flags |= 16384))), unwindUnitOfWork(unitOfWork, root)) : completeUnitOfWork(unitOfWork);
}
function completeUnitOfWork(unitOfWork) {
var completedWork = unitOfWork;
do {
if ((completedWork.flags & 32768) !== 0) {
unwindUnitOfWork(
completedWork,
workInProgressRootDidSkipSuspendedSiblings
);
return;
}
unitOfWork = completedWork.return;
var next = completeWork(
completedWork.alternate,
completedWork,
entangledRenderLanes
);
if (next !== null) {
workInProgress = next;
return;
}
if (completedWork = completedWork.sibling, completedWork !== null) {
workInProgress = completedWork;
return;
}
workInProgress = completedWork = unitOfWork;
} while (completedWork !== null);
workInProgressRootExitStatus === 0 && (workInProgressRootExitStatus = 5);
}
function unwindUnitOfWork(unitOfWork, skipSiblings) {
do {
var next = unwindWork(unitOfWork.alternate, unitOfWork);
if (next !== null) {
next.flags &= 32767, workInProgress = next;
return;
}
if (next = unitOfWork.return, next !== null && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null), !skipSiblings && (unitOfWork = unitOfWork.sibling, unitOfWork !== null)) {
workInProgress = unitOfWork;
return;
}
workInProgress = unitOfWork = next;
} while (unitOfWork !== null);
workInProgressRootExitStatus = 6, workInProgress = null;
}
function commitRoot(root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes) {
root.cancelPendingCommit = null;
do
flushPendingEffects();
while (pendingEffectsStatus !== 0);
if ((executionContext & 6) !== 0) throw Error(formatProdErrorMessage(327));
if (finishedWork !== null) {
if (finishedWork === root.current)
throw Error(formatProdErrorMessage(177));
if (didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes, didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes, markRootFinished(
root,
lanes,
didIncludeRenderPhaseUpdate,
spawnedLane,
updatedLanes,
suspendedRetryLanes
), root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0), pendingFinishedWork = finishedWork, pendingEffectsRoot = root, pendingEffectsLanes = lanes, pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate, pendingPassiveTransitions = transitions, pendingRecoverableErrors = recoverableErrors, (finishedWork.subtreeFlags & 10256) !== 0 || (finishedWork.flags & 10256) !== 0 ? (root.callbackNode = null, root.callbackPriority = 0, scheduleCallback(NormalPriority$1, function() {
return flushPassiveEffects(), null;
})) : (root.callbackNode = null, root.callbackPriority = 0), recoverableErrors = (finishedWork.flags & 13878) !== 0, (finishedWork.subtreeFlags & 13878) !== 0 || recoverableErrors) {
recoverableErrors = ReactSharedInternals.T, ReactSharedInternals.T = null, transitions = getCurrentUpdatePriority(), setCurrentUpdatePriority(2), spawnedLane = executionContext, executionContext |= 4;
try {
commitBeforeMutationEffects(root, finishedWork, lanes);
} finally {
executionContext = spawnedLane, setCurrentUpdatePriority(transitions), ReactSharedInternals.T = recoverableErrors;
}
}
pendingEffectsStatus = 1, flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork();
}
}
function flushMutationEffects() {
if (pendingEffectsStatus === 1) {
pendingEffectsStatus = 0;
var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootMutationHasEffect = (finishedWork.flags & 13878) !== 0;
if ((finishedWork.subtreeFlags & 13878) !== 0 || rootMutationHasEffect) {
rootMutationHasEffect = ReactSharedInternals.T, ReactSharedInternals.T = null;
var previousPriority = getCurrentUpdatePriority();
setCurrentUpdatePriority(2);
var prevExecutionContext = executionContext;
executionContext |= 4;
try {
commitMutationEffectsOnFiber(finishedWork, root), resetAfterCommit(root.containerInfo);
} finally {
executionContext = prevExecutionContext, setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = rootMutationHasEffect;
}
}
root.current = finishedWork, pendingEffectsStatus = 2;
}
}
function flushLayoutEffects() {
if (pendingEffectsStatus === 2) {
pendingEffectsStatus = 0;
var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootHasLayoutEffect = (finishedWork.flags & 8772) !== 0;
if ((finishedWork.subtreeFlags & 8772) !== 0 || rootHasLayoutEffect) {
rootHasLayoutEffect = ReactSharedInternals.T, ReactSharedInternals.T = null;
var previousPriority = getCurrentUpdatePriority();
setCurrentUpdatePriority(2);
var prevExecutionContext = executionContext;
executionContext |= 4;
try {
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
} finally {
executionContext = prevExecutionContext, setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = rootHasLayoutEffect;
}
}
pendingEffectsStatus = 3;
}
}
function flushSpawnedWork() {
if (pendingEffectsStatus === 4 || pendingEffectsStatus === 3) {
pendingEffectsStatus = 0, requestPaint();
var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, recoverableErrors = pendingRecoverableErrors;
(finishedWork.subtreeFlags & 10256) !== 0 || (finishedWork.flags & 10256) !== 0 ? pendingEffectsStatus = 5 : (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(root, root.pendingLanes));
var remainingLanes = root.pendingLanes;
if (remainingLanes === 0 && (legacyErrorBoundariesThatAlreadyFailed = null), lanesToEventPriority(lanes), finishedWork = finishedWork.stateNode, injectedHook && typeof injectedHook.onCommitFiberRoot == "function")
try {
injectedHook.onCommitFiberRoot(
rendererID,
finishedWork,
void 0,
(finishedWork.current.flags & 128) === 128
);
} catch {
}
if (recoverableErrors !== null) {
finishedWork = ReactSharedInternals.T, remainingLanes = getCurrentUpdatePriority(), setCurrentUpdatePriority(2), ReactSharedInternals.T = null;
try {
for (var onRecoverableError = root.onRecoverableError, i = 0; i < recoverableErrors.length; i++) {
var recoverableError = recoverableErrors[i];
onRecoverableError(recoverableError.value, {
componentStack: recoverableError.stack
});
}
} finally {
ReactSharedInternals.T = finishedWork, setCurrentUpdatePriority(remainingLanes);
}
}
(pendingEffectsLanes & 3) !== 0 && flushPendingEffects(), ensureRootIsScheduled(root), remainingLanes = root.pendingLanes, (lanes & 261930) !== 0 && (remainingLanes & 42) !== 0 ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0, supportsHydration && flushHydrationEvents(), flushSyncWorkAcrossRoots_impl(0, !1);
}
}
function releaseRootPooledCache(root, remainingLanes) {
(root.pooledCacheLanes &= remainingLanes) === 0 && (remainingLanes = root.pooledCache, remainingLanes != null && (root.pooledCache = null, releaseCache(remainingLanes)));
}
function flushPendingEffects() {
return flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork(), flushPassiveEffects();
}
function flushPassiveEffects() {
if (pendingEffectsStatus !== 5) return !1;
var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes;
pendingEffectsRemainingLanes = 0;
var renderPriority = lanesToEventPriority(pendingEffectsLanes), priority = 32 > renderPriority ? 32 : renderPriority;
renderPriority = ReactSharedInternals.T;
var previousPriority = getCurrentUpdatePriority();
try {
setCurrentUpdatePriority(priority), ReactSharedInternals.T = null, priority = pendingPassiveTransitions, pendingPassiveTransitions = null;
var root$jscomp$0 = pendingEffectsRoot, lanes = pendingEffectsLanes;
if (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, pendingEffectsLanes = 0, (executionContext & 6) !== 0)
throw Error(formatProdErrorMessage(331));
var prevExecutionContext = executionContext;
if (executionContext |= 4, commitPassiveUnmountOnFiber(root$jscomp$0.current), commitPassiveMountOnFiber(
root$jscomp$0,
root$jscomp$0.current,
lanes,
priority
), executionContext = prevExecutionContext, flushSyncWorkAcrossRoots_impl(0, !1), injectedHook && typeof injectedHook.onPostCommitFiberRoot == "function")
try {
injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);
} catch {
}
return !0;
} finally {
setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = renderPriority, releaseRootPooledCache(root, remainingLanes);
}
}
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
sourceFiber = createCapturedValueAtFiber(error, sourceFiber), sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2), rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2), rootFiber !== null && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));
}
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
if (sourceFiber.tag === 3)
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
else
for (; nearestMountedAncestor !== null; ) {
if (nearestMountedAncestor.tag === 3) {
captureCommitPhaseErrorOnRoot(
nearestMountedAncestor,
sourceFiber,
error
);
break;
} else if (nearestMountedAncestor.tag === 1) {
var instance = nearestMountedAncestor.stateNode;
if (typeof nearestMountedAncestor.type.getDerivedStateFromError == "function" || typeof instance.componentDidCatch == "function" && (legacyErrorBoundariesThatAlreadyFailed === null || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) {
sourceFiber = createCapturedValueAtFiber(error, sourceFiber), error = createClassErrorUpdate(2), instance = enqueueUpdate(nearestMountedAncestor, error, 2), instance !== null && (initializeClassErrorUpdate(
error,
instance,
nearestMountedAncestor,
sourceFiber
), markRootUpdated$1(instance, 2), ensureRootIsScheduled(instance));
break;
}
}
nearestMountedAncestor = nearestMountedAncestor.return;
}
}
function attachPingListener(root, wakeable, lanes) {
var pingCache = root.pingCache;
if (pingCache === null) {
pingCache = root.pingCache = new PossiblyWeakMap();
var threadIDs = /* @__PURE__ */ new Set();
pingCache.set(wakeable, threadIDs);
} else
threadIDs = pingCache.get(wakeable), threadIDs === void 0 && (threadIDs = /* @__PURE__ */ new Set(), pingCache.set(wakeable, threadIDs));
threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = !0, threadIDs.add(lanes), root = pingSuspendedRoot.bind(null, root, wakeable, lanes), wakeable.then(root, root));
}
function pingSuspendedRoot(root, wakeable, pingedLanes) {
var pingCache = root.pingCache;
pingCache !== null && pingCache.delete(wakeable), root.pingedLanes |= root.suspendedLanes & pingedLanes, root.warmLanes &= ~pingedLanes, workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (workInProgressRootExitStatus === 4 || workInProgressRootExitStatus === 3 && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && 300 > now() - globalMostRecentFallbackTime ? (executionContext & 2) === 0 && prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0)), ensureRootIsScheduled(root);
}
function retryTimedOutBoundary(boundaryFiber, retryLane) {
retryLane === 0 && (retryLane = claimNextRetryLane()), boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane), boundaryFiber !== null && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber));
}
function retryDehydratedSuspenseBoundary(boundaryFiber) {
var suspenseState = boundaryFiber.memoizedState, retryLane = 0;
suspenseState !== null && (retryLane = suspenseState.retryLane), retryTimedOutBoundary(boundaryFiber, retryLane);
}
function resolveRetryWakeable(boundaryFiber, wakeable) {
var retryLane = 0;
switch (boundaryFiber.tag) {
case 31:
case 13:
var retryCache = boundaryFiber.stateNode, suspenseState = boundaryFiber.memoizedState;
suspenseState !== null && (retryLane = suspenseState.retryLane);
break;
case 19:
retryCache = boundaryFiber.stateNode;
break;
case 22:
retryCache = boundaryFiber.stateNode._retryCache;
break;
default:
throw Error(formatProdErrorMessage(314));
}
retryCache !== null && retryCache.delete(wakeable), retryTimedOutBoundary(boundaryFiber, retryLane);
}
function scheduleCallback(priorityLevel, callback) {
return scheduleCallback$3(priorityLevel, callback);
}
function FiberNode(tag, pendingProps, key, mode) {
this.tag = tag, this.key = key, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = pendingProps, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = mode, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
}
function shouldConstruct(Component) {
return Component = Component.prototype, !(!Component || !Component.isReactComponent);
}
function createWorkInProgress(current, pendingProps) {
var workInProgress2 = current.alternate;
return workInProgress2 === null ? (workInProgress2 = createFiber(
current.tag,
pendingProps,
current.key,
current.mode
), workInProgress2.elementType = current.elementType, workInProgress2.type = current.type, workInProgress2.stateNode = current.stateNode, workInProgress2.alternate = current, current.alternate = workInProgress2) : (workInProgress2.pendingProps = pendingProps, workInProgress2.type = current.type, workInProgress2.flags = 0, workInProgress2.subtreeFlags = 0, workInProgress2.deletions = null), workInProgress2.flags = current.flags & 65011712, workInProgress2.childLanes = current.childLanes, workInProgress2.lanes = current.lanes, workInProgress2.child = current.child, workInProgress2.memoizedProps = current.memoizedProps, workInProgress2.memoizedState = current.memoizedState, workInProgress2.updateQueue = current.updateQueue, pendingProps = current.dependencies, workInProgress2.dependencies = pendingProps === null ? null : {
lanes: pendingProps.lanes,
firstContext: pendingProps.firstContext
}, workInProgress2.sibling = current.sibling, workInProgress2.index = current.index, workInProgress2.ref = current.ref, workInProgress2.refCleanup = current.refCleanup, workInProgress2;
}
function resetWorkInProgress(workInProgress2, renderLanes2) {
workInProgress2.flags &= 65011714;
var current = workInProgress2.alternate;
return current === null ? (workInProgress2.childLanes = 0, workInProgress2.lanes = renderLanes2, workInProgress2.child = null, workInProgress2.subtreeFlags = 0, workInProgress2.memoizedProps = null, workInProgress2.memoizedState = null, workInProgress2.updateQueue = null, workInProgress2.dependencies = null, workInProgress2.stateNode = null) : (workInProgress2.childLanes = current.childLanes, workInProgress2.lanes = current.lanes, workInProgress2.child = current.child, workInProgress2.subtreeFlags = 0, workInProgress2.deletions = null, workInProgress2.memoizedProps = current.memoizedProps, workInProgress2.memoizedState = current.memoizedState, workInProgress2.updateQueue = current.updateQueue, workInProgress2.type = current.type, renderLanes2 = current.dependencies, workInProgress2.dependencies = renderLanes2 === null ? null : {
lanes: renderLanes2.lanes,
firstContext: renderLanes2.firstContext
}), workInProgress2;
}
function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) {
var fiberTag = 0;
if (owner = type, typeof type == "function") shouldConstruct(type) && (fiberTag = 1);
else if (typeof type == "string")
fiberTag = supportsResources && supportsSingletons ? isHostHoistableType(type, pendingProps, contextStackCursor.current) ? 26 : isHostSingletonType(type) ? 27 : 5 : supportsResources ? isHostHoistableType(
type,
pendingProps,
contextStackCursor.current
) ? 26 : 5 : supportsSingletons && isHostSingletonType(type) ? 27 : 5;
else
a: switch (type) {
case REACT_ACTIVITY_TYPE:
return type = createFiber(31, pendingProps, key, mode), type.elementType = REACT_ACTIVITY_TYPE, type.lanes = lanes, type;
case REACT_FRAGMENT_TYPE:
return createFiberFromFragment(
pendingProps.children,
mode,
lanes,
key
);
case REACT_STRICT_MODE_TYPE:
fiberTag = 8, mode |= 24;
break;
case REACT_PROFILER_TYPE:
return type = createFiber(12, pendingProps, key, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type;
case REACT_SUSPENSE_TYPE:
return type = createFiber(13, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type;
case REACT_SUSPENSE_LIST_TYPE:
return type = createFiber(19, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type;
default:
if (typeof type == "object" && type !== null)
switch (type.$$typeof) {
case REACT_CONTEXT_TYPE:
fiberTag = 10;
break a;
case REACT_CONSUMER_TYPE:
fiberTag = 9;
break a;
case REACT_FORWARD_REF_TYPE:
fiberTag = 11;
break a;
case REACT_MEMO_TYPE:
fiberTag = 14;
break a;
case REACT_LAZY_TYPE:
fiberTag = 16, owner = null;
break a;
}
fiberTag = 29, pendingProps = Error(
formatProdErrorMessage(
130,
type === null ? "null" : typeof type,
""
)
), owner = null;
}
return key = createFiber(fiberTag, pendingProps, key, mode), key.elementType = type, key.type = owner, key.lanes = lanes, key;
}
function createFiberFromFragment(elements, mode, lanes, key) {
return elements = createFiber(7, elements, key, mode), elements.lanes = lanes, elements;
}
function createFiberFromText(content, mode, lanes) {
return content = createFiber(6, content, null, mode), content.lanes = lanes, content;
}
function createFiberFromDehydratedFragment(dehydratedNode) {
var fiber = createFiber(18, null, null, 0);
return fiber.stateNode = dehydratedNode, fiber;
}
function createFiberFromPortal(portal, mode, lanes) {
return mode = createFiber(
4,
portal.children !== null ? portal.children : [],
portal.key,
mode
), mode.lanes = lanes, mode.stateNode = {
containerInfo: portal.containerInfo,
pendingChildren: null,
implementation: portal.implementation
}, mode;
}
function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, formState) {
this.tag = 1, this.containerInfo = containerInfo, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = noTimeout, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = createLaneMap(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = createLaneMap(0), this.hiddenUpdates = createLaneMap(null), this.identifierPrefix = identifierPrefix, this.onUncaughtError = onUncaughtError, this.onCaughtError = onCaughtError, this.onRecoverableError = onRecoverableError, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = formState, this.incompleteTransitions = /* @__PURE__ */ new Map();
}
function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, identifierPrefix, formState, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator) {
return containerInfo = new FiberRootNode(
containerInfo,
tag,
hydrate,
identifierPrefix,
onUncaughtError,
onCaughtError,
onRecoverableError,
onDefaultTransitionIndicator,
formState
), tag = 1, isStrictMode === !0 && (tag |= 24), isStrictMode = createFiber(3, null, null, tag), containerInfo.current = isStrictMode, isStrictMode.stateNode = containerInfo, tag = createCache(), tag.refCount++, containerInfo.pooledCache = tag, tag.refCount++, isStrictMode.memoizedState = {
element: initialChildren,
isDehydrated: hydrate,
cache: tag
}, initializeUpdateQueue(isStrictMode), containerInfo;
}
function getContextForSubtree(parentComponent) {
return parentComponent ? (parentComponent = emptyContextObject, parentComponent) : emptyContextObject;
}
function findHostInstance(component) {
var fiber = component._reactInternals;
if (fiber === void 0)
throw typeof component.render == "function" ? Error(formatProdErrorMessage(188)) : (component = Object.keys(component).join(","), Error(formatProdErrorMessage(268, component)));
return component = findCurrentFiberUsingSlowPath(fiber), component = component !== null ? findCurrentHostFiberImpl(component) : null, component === null ? null : getPublicInstance(component.stateNode);
}
function updateContainerImpl(rootFiber, lane, element, container, parentComponent, callback) {
parentComponent = getContextForSubtree(parentComponent), container.context === null ? container.context = parentComponent : container.pendingContext = parentComponent, container = createUpdate(lane), container.payload = { element }, callback = callback === void 0 ? null : callback, callback !== null && (container.callback = callback), element = enqueueUpdate(rootFiber, container, lane), element !== null && (scheduleUpdateOnFiber(element, rootFiber, lane), entangleTransitions(element, rootFiber, lane));
}
function markRetryLaneImpl(fiber, retryLane) {
if (fiber = fiber.memoizedState, fiber !== null && fiber.dehydrated !== null) {
var a = fiber.retryLane;
fiber.retryLane = a !== 0 && a < retryLane ? a : retryLane;
}
}
function markRetryLaneIfNotHydrated(fiber, retryLane) {
markRetryLaneImpl(fiber, retryLane), (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);
}
var exports2 = {}, React43 = require_react(), Scheduler2 = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React43.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
$$$config.cloneMutableInstance;
var appendInitialChild = $$$config.appendInitialChild, finalizeInitialChildren = $$$config.finalizeInitialChildren, shouldSetTextContent = $$$config.shouldSetTextContent, createTextInstance = $$$config.createTextInstance;
$$$config.cloneMutableTextInstance;
var scheduleTimeout = $$$config.scheduleTimeout, cancelTimeout = $$$config.cancelTimeout, noTimeout = $$$config.noTimeout, isPrimaryRenderer = $$$config.isPrimaryRenderer;
$$$config.warnsIfNotActing;
var supportsMutation = $$$config.supportsMutation, supportsPersistence = $$$config.supportsPersistence, supportsHydration = $$$config.supportsHydration, getInstanceFromNode = $$$config.getInstanceFromNode;
$$$config.beforeActiveInstanceBlur;
var preparePortalMount = $$$config.preparePortalMount;
$$$config.prepareScopeUpdate, $$$config.getInstanceFromScope;
var setCurrentUpdatePriority = $$$config.setCurrentUpdatePriority, getCurrentUpdatePriority = $$$config.getCurrentUpdatePriority, resolveUpdatePriority = $$$config.resolveUpdatePriority;
$$$config.trackSchedulerEvent, $$$config.resolveEventType, $$$config.resolveEventTimeStamp;
var shouldAttemptEagerTransition = $$$config.shouldAttemptEagerTransition, detachDeletedInstance = $$$config.detachDeletedInstance;
$$$config.requestPostPaintCallback;
var maySuspendCommit = $$$config.maySuspendCommit, maySuspendCommitOnUpdate = $$$config.maySuspendCommitOnUpdate, maySuspendCommitInSyncRender = $$$config.maySuspendCommitInSyncRender, preloadInstance = $$$config.preloadInstance, startSuspendingCommit = $$$config.startSuspendingCommit, suspendInstance = $$$config.suspendInstance;
$$$config.suspendOnActiveViewTransition;
var waitForCommitToBeReady = $$$config.waitForCommitToBeReady;
$$$config.getSuspendedCommitReason;
var NotPendingTransition = $$$config.NotPendingTransition, HostTransitionContext = $$$config.HostTransitionContext, resetFormInstance = $$$config.resetFormInstance;
$$$config.bindToConsole;
var supportsMicrotasks = $$$config.supportsMicrotasks, scheduleMicrotask = $$$config.scheduleMicrotask, supportsTestSelectors = $$$config.supportsTestSelectors, findFiberRoot = $$$config.findFiberRoot, getBoundingRect = $$$config.getBoundingRect, getTextContent = $$$config.getTextContent, isHiddenSubtree = $$$config.isHiddenSubtree, matchAccessibilityRole = $$$config.matchAccessibilityRole, setFocusIfFocusable = $$$config.setFocusIfFocusable, setupIntersectionObserver = $$$config.setupIntersectionObserver, appendChild = $$$config.appendChild, appendChildToContainer = $$$config.appendChildToContainer, commitTextUpdate = $$$config.commitTextUpdate, commitMount = $$$config.commitMount, commitUpdate = $$$config.commitUpdate, insertBefore = $$$config.insertBefore, insertInContainerBefore = $$$config.insertInContainerBefore, removeChild = $$$config.removeChild, removeChildFromContainer = $$$config.removeChildFromContainer, resetTextContent = $$$config.resetTextContent, hideInstance = $$$config.hideInstance, hideTextInstance = $$$config.hideTextInstance, unhideInstance = $$$config.unhideInstance, unhideTextInstance = $$$config.unhideTextInstance;
$$$config.cancelViewTransitionName, $$$config.cancelRootViewTransitionName, $$$config.restoreRootViewTransitionName, $$$config.cloneRootViewTransitionContainer, $$$config.removeRootViewTransitionClone, $$$config.measureClonedInstance, $$$config.hasInstanceChanged, $$$config.hasInstanceAffectedParent, $$$config.startViewTransition, $$$config.startGestureTransition, $$$config.stopViewTransition, $$$config.getCurrentGestureOffset, $$$config.createViewTransitionInstance;
var clearContainer = $$$config.clearContainer;
$$$config.createFragmentInstance, $$$config.updateFragmentInstanceFiber, $$$config.commitNewChildToFragmentInstance, $$$config.deleteChildFromFragmentInstance;
var cloneInstance = $$$config.cloneInstance, createContainerChildSet = $$$config.createContainerChildSet, appendChildToContainerChildSet = $$$config.appendChildToContainerChildSet, finalizeContainerChildren = $$$config.finalizeContainerChildren, replaceContainerChildren = $$$config.replaceContainerChildren, cloneHiddenInstance = $$$config.cloneHiddenInstance, cloneHiddenTextInstance = $$$config.cloneHiddenTextInstance, isSuspenseInstancePending = $$$config.isSuspenseInstancePending, isSuspenseInstanceFallback = $$$config.isSuspenseInstanceFallback, getSuspenseInstanceFallbackErrorDetails = $$$config.getSuspenseInstanceFallbackErrorDetails, registerSuspenseInstanceRetry = $$$config.registerSuspenseInstanceRetry, canHydrateFormStateMarker = $$$config.canHydrateFormStateMarker, isFormStateMarkerMatching = $$$config.isFormStateMarkerMatching, getNextHydratableSibling = $$$config.getNextHydratableSibling, getNextHydratableSiblingAfterSingleton = $$$config.getNextHydratableSiblingAfterSingleton, getFirstHydratableChild = $$$config.getFirstHydratableChild, getFirstHydratableChildWithinContainer = $$$config.getFirstHydratableChildWithinContainer, getFirstHydratableChildWithinActivityInstance = $$$config.getFirstHydratableChildWithinActivityInstance, getFirstHydratableChildWithinSuspenseInstance = $$$config.getFirstHydratableChildWithinSuspenseInstance, getFirstHydratableChildWithinSingleton = $$$config.getFirstHydratableChildWithinSingleton, canHydrateInstance = $$$config.canHydrateInstance, canHydrateTextInstance = $$$config.canHydrateTextInstance, canHydrateActivityInstance = $$$config.canHydrateActivityInstance, canHydrateSuspenseInstance = $$$config.canHydrateSuspenseInstance, hydrateInstance = $$$config.hydrateInstance, hydrateTextInstance = $$$config.hydrateTextInstance, hydrateActivityInstance = $$$config.hydrateActivityInstance, hydrateSuspenseInstance = $$$config.hydrateSuspenseInstance, getNextHydratableInstanceAfterActivityInstance = $$$config.getNextHydratableInstanceAfterActivityInstance, getNextHydratableInstanceAfterSuspenseInstance = $$$config.getNextHydratableInstanceAfterSuspenseInstance, commitHydratedInstance = $$$config.commitHydratedInstance, commitHydratedContainer = $$$config.commitHydratedContainer, commitHydratedActivityInstance = $$$config.commitHydratedActivityInstance, commitHydratedSuspenseInstance = $$$config.commitHydratedSuspenseInstance, finalizeHydratedChildren = $$$config.finalizeHydratedChildren, flushHydrationEvents = $$$config.flushHydrationEvents;
$$$config.clearActivityBoundary;
var clearSuspenseBoundary = $$$config.clearSuspenseBoundary;
$$$config.clearActivityBoundaryFromContainer;
var clearSuspenseBoundaryFromContainer = $$$config.clearSuspenseBoundaryFromContainer, hideDehydratedBoundary = $$$config.hideDehydratedBoundary, unhideDehydratedBoundary = $$$config.unhideDehydratedBoundary, shouldDeleteUnhydratedTailInstances = $$$config.shouldDeleteUnhydratedTailInstances;
$$$config.diffHydratedPropsForDevWarnings, $$$config.diffHydratedTextForDevWarnings, $$$config.describeHydratableInstanceForDevWarnings;
var validateHydratableInstance = $$$config.validateHydratableInstance, validateHydratableTextInstance = $$$config.validateHydratableTextInstance, supportsResources = $$$config.supportsResources, isHostHoistableType = $$$config.isHostHoistableType, getHoistableRoot = $$$config.getHoistableRoot, getResource = $$$config.getResource, acquireResource = $$$config.acquireResource, releaseResource = $$$config.releaseResource, hydrateHoistable = $$$config.hydrateHoistable, mountHoistable = $$$config.mountHoistable, unmountHoistable = $$$config.unmountHoistable, createHoistableInstance = $$$config.createHoistableInstance, prepareToCommitHoistables = $$$config.prepareToCommitHoistables, mayResourceSuspendCommit = $$$config.mayResourceSuspendCommit, preloadResource = $$$config.preloadResource, suspendResource = $$$config.suspendResource, supportsSingletons = $$$config.supportsSingletons, resolveSingletonInstance = $$$config.resolveSingletonInstance, acquireSingletonInstance = $$$config.acquireSingletonInstance, releaseSingletonInstance = $$$config.releaseSingletonInstance, isHostSingletonType = $$$config.isHostSingletonType, isSingletonScope = $$$config.isSingletonScope, valueStack = [], index$jscomp$0 = -1, emptyContextObject = {}, clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log$1 = Math.log, LN2 = Math.LN2, nextTransitionUpdateLane = 256, nextTransitionDeferredLane = 262144, nextRetryLane = 4194304, scheduleCallback$3 = Scheduler2.unstable_scheduleCallback, cancelCallback$1 = Scheduler2.unstable_cancelCallback, shouldYield = Scheduler2.unstable_shouldYield, requestPaint = Scheduler2.unstable_requestPaint, now = Scheduler2.unstable_now, ImmediatePriority = Scheduler2.unstable_ImmediatePriority, UserBlockingPriority = Scheduler2.unstable_UserBlockingPriority, NormalPriority$1 = Scheduler2.unstable_NormalPriority, IdlePriority = Scheduler2.unstable_IdlePriority, log = Scheduler2.log, unstable_setDisableYieldValue = Scheduler2.unstable_setDisableYieldValue, rendererID = null, injectedHook = null, objectIs = typeof Object.is == "function" ? Object.is : is, reportGlobalError = typeof reportError == "function" ? reportError : function(error) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var event = new window.ErrorEvent("error", {
bubbles: !0,
cancelable: !0,
message: typeof error == "object" && error !== null && typeof error.message == "string" ? String(error.message) : String(error),
error
});
if (!window.dispatchEvent(event)) return;
} else if (typeof process == "object" && typeof process.emit == "function") {
process.emit("uncaughtException", error);
return;
}
console.error(error);
}, hasOwnProperty = Object.prototype.hasOwnProperty, prefix, suffix, reentry = !1, CapturedStacks = /* @__PURE__ */ new WeakMap(), forkStack = [], forkStackIndex = 0, treeForkProvider = null, treeForkCount = 0, idStack = [], idStackIndex = 0, treeContextProvider = null, treeContextId = 1, treeContextOverflow = "", contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), hydrationParentFiber = null, nextHydratableInstance = null, isHydrating = !1, hydrationErrors = null, rootOrSingletonContext = !1, HydrationMismatchException = Error(formatProdErrorMessage(519)), valueCursor = createCursor(null), currentlyRenderingFiber$1 = null, lastContextDependency = null, AbortControllerLocal = typeof AbortController < "u" ? AbortController : function() {
var listeners = [], signal = this.signal = {
aborted: !1,
addEventListener: function(type, listener) {
listeners.push(listener);
}
};
this.abort = function() {
signal.aborted = !0, listeners.forEach(function(listener) {
return listener();
});
};
}, scheduleCallback$2 = Scheduler2.unstable_scheduleCallback, NormalPriority = Scheduler2.unstable_NormalPriority, CacheContext = {
$$typeof: REACT_CONTEXT_TYPE,
Consumer: null,
Provider: null,
_currentValue: null,
_currentValue2: null,
_threadCount: 0
}, firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = !1, mightHavePendingSyncWork = !1, isFlushingWork = !1, currentEventTransitionLane = 0, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S;
ReactSharedInternals.S = function(transition, returnValue) {
globalMostRecentTransitionTime = now(), typeof returnValue == "object" && returnValue !== null && typeof returnValue.then == "function" && entangleAsyncAction(transition, returnValue), prevOnStartTransitionFinish !== null && prevOnStartTransitionFinish(transition, returnValue);
};
var resumedCache = createCursor(null), SuspenseException = Error(formatProdErrorMessage(460)), SuspenseyCommitException = Error(formatProdErrorMessage(474)), SuspenseActionException = Error(formatProdErrorMessage(542)), noopSuspenseyCommitThenable = { then: function() {
} }, suspendedThenable = null, thenableState$1 = null, thenableIndexCounter$1 = 0, reconcileChildFibers = createChildReconciler(!0), mountChildFibers = createChildReconciler(!1), concurrentQueues = [], concurrentQueuesIndex = 0, concurrentlyUpdatedLanes = 0, hasForceUpdate = !1, didReadFromEntangledAsyncAction = !1, currentTreeHiddenStackCursor = createCursor(null), prevEntangledRenderLanesCursor = createCursor(0), suspenseHandlerStackCursor = createCursor(null), shellBoundary = null, suspenseStackCursor = createCursor(0), renderLanes = 0, currentlyRenderingFiber = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1, shouldDoubleInvokeUserFnsInHooksDEV = !1, localIdCounter = 0, thenableIndexCounter = 0, thenableState = null, globalClientIdCounter = 0, ContextOnlyDispatcher = {
readContext,
use,
useCallback: throwInvalidHookError,
useContext: throwInvalidHookError,
useEffect: throwInvalidHookError,
useImperativeHandle: throwInvalidHookError,
useLayoutEffect: throwInvalidHookError,
useInsertionEffect: throwInvalidHookError,
useMemo: throwInvalidHookError,
useReducer: throwInvalidHookError,
useRef: throwInvalidHookError,
useState: throwInvalidHookError,
useDebugValue: throwInvalidHookError,
useDeferredValue: throwInvalidHookError,
useTransition: throwInvalidHookError,
useSyncExternalStore: throwInvalidHookError,
useId: throwInvalidHookError,
useHostTransitionStatus: throwInvalidHookError,
useFormState: throwInvalidHookError,
useActionState: throwInvalidHookError,
useOptimistic: throwInvalidHookError,
useMemoCache: throwInvalidHookError,
useCacheRefresh: throwInvalidHookError
};
ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError;
var HooksDispatcherOnMount = {
readContext,
use,
useCallback: function(callback, deps) {
return mountWorkInProgressHook().memoizedState = [
callback,
deps === void 0 ? null : deps
], callback;
},
useContext: readContext,
useEffect: mountEffect,
useImperativeHandle: function(ref, create3, deps) {
deps = deps != null ? deps.concat([ref]) : null, mountEffectImpl(
4194308,
4,
imperativeHandleEffect.bind(null, create3, ref),
deps
);
},
useLayoutEffect: function(create3, deps) {
return mountEffectImpl(4194308, 4, create3, deps);
},
useInsertionEffect: function(create3, deps) {
mountEffectImpl(4, 2, create3, deps);
},
useMemo: function(nextCreate, deps) {
var hook = mountWorkInProgressHook();
deps = deps === void 0 ? null : deps;
var nextValue = nextCreate();
if (shouldDoubleInvokeUserFnsInHooksDEV) {
setIsStrictModeForDevtools(!0);
try {
nextCreate();
} finally {
setIsStrictModeForDevtools(!1);
}
}
return hook.memoizedState = [nextValue, deps], nextValue;
},
useReducer: function(reducer2, initialArg, init) {
var hook = mountWorkInProgressHook();
if (init !== void 0) {
var initialState = init(initialArg);
if (shouldDoubleInvokeUserFnsInHooksDEV) {
setIsStrictModeForDevtools(!0);
try {
init(initialArg);
} finally {
setIsStrictModeForDevtools(!1);
}
}
} else initialState = initialArg;
return hook.memoizedState = hook.baseState = initialState, reducer2 = {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: reducer2,
lastRenderedState: initialState
}, hook.queue = reducer2, reducer2 = reducer2.dispatch = dispatchReducerAction.bind(
null,
currentlyRenderingFiber,
reducer2
), [hook.memoizedState, reducer2];
},
useRef: function(initialValue) {
var hook = mountWorkInProgressHook();
return initialValue = { current: initialValue }, hook.memoizedState = initialValue;
},
useState: function(initialState) {
initialState = mountStateImpl(initialState);
var queue = initialState.queue, dispatch = dispatchSetState.bind(
null,
currentlyRenderingFiber,
queue
);
return queue.dispatch = dispatch, [initialState.memoizedState, dispatch];
},
useDebugValue: mountDebugValue,
useDeferredValue: function(value, initialValue) {
var hook = mountWorkInProgressHook();
return mountDeferredValueImpl(hook, value, initialValue);
},
useTransition: function() {
var stateHook = mountStateImpl(!1);
return stateHook = startTransition.bind(
null,
currentlyRenderingFiber,
stateHook.queue,
!0,
!1
), mountWorkInProgressHook().memoizedState = stateHook, [!1, stateHook];
},
useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) {
var fiber = currentlyRenderingFiber, hook = mountWorkInProgressHook();
if (isHydrating) {
if (getServerSnapshot === void 0)
throw Error(formatProdErrorMessage(407));
getServerSnapshot = getServerSnapshot();
} else {
if (getServerSnapshot = getSnapshot(), workInProgressRoot === null)
throw Error(formatProdErrorMessage(349));
(workInProgressRootRenderLanes & 127) !== 0 || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
}
hook.memoizedState = getServerSnapshot;
var inst = { value: getServerSnapshot, getSnapshot };
return hook.queue = inst, mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [
subscribe
]), fiber.flags |= 2048, pushSimpleEffect(
9,
{ destroy: void 0 },
updateStoreInstance.bind(
null,
fiber,
inst,
getServerSnapshot,
getSnapshot
),
null
), getServerSnapshot;
},
useId: function() {
var hook = mountWorkInProgressHook(), identifierPrefix = workInProgressRoot.identifierPrefix;
if (isHydrating) {
var JSCompiler_inline_result = treeContextOverflow, idWithLeadingBit = treeContextId;
JSCompiler_inline_result = (idWithLeadingBit & ~(1 << 32 - clz32(idWithLeadingBit) - 1)).toString(32) + JSCompiler_inline_result, identifierPrefix = "_" + identifierPrefix + "R_" + JSCompiler_inline_result, JSCompiler_inline_result = localIdCounter++, 0 < JSCompiler_inline_result && (identifierPrefix += "H" + JSCompiler_inline_result.toString(32)), identifierPrefix += "_";
} else
JSCompiler_inline_result = globalClientIdCounter++, identifierPrefix = "_" + identifierPrefix + "r_" + JSCompiler_inline_result.toString(32) + "_";
return hook.memoizedState = identifierPrefix;
},
useHostTransitionStatus,
useFormState: mountActionState,
useActionState: mountActionState,
useOptimistic: function(passthrough) {
var hook = mountWorkInProgressHook();
hook.memoizedState = hook.baseState = passthrough;
var queue = {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: null,
lastRenderedState: null
};
return hook.queue = queue, hook = dispatchOptimisticSetState.bind(
null,
currentlyRenderingFiber,
!0,
queue
), queue.dispatch = hook, [passthrough, hook];
},
useMemoCache,
useCacheRefresh: function() {
return mountWorkInProgressHook().memoizedState = refreshCache.bind(
null,
currentlyRenderingFiber
);
},
useEffectEvent: function(callback) {
var hook = mountWorkInProgressHook(), ref = { impl: callback };
return hook.memoizedState = ref, function() {
if ((executionContext & 2) !== 0)
throw Error(formatProdErrorMessage(440));
return ref.impl.apply(void 0, arguments);
};
}
}, HooksDispatcherOnUpdate = {
readContext,
use,
useCallback: updateCallback,
useContext: readContext,
useEffect: updateEffect,
useImperativeHandle: updateImperativeHandle,
useInsertionEffect: updateInsertionEffect,
useLayoutEffect: updateLayoutEffect,
useMemo: updateMemo,
useReducer: updateReducer,
useRef: updateRef,
useState: function() {
return updateReducer(basicStateReducer);
},
useDebugValue: mountDebugValue,
useDeferredValue: function(value, initialValue) {
var hook = updateWorkInProgressHook();
return updateDeferredValueImpl(
hook,
currentHook.memoizedState,
value,
initialValue
);
},
useTransition: function() {
var booleanOrThenable = updateReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState;
return [
typeof booleanOrThenable == "boolean" ? booleanOrThenable : useThenable(booleanOrThenable),
start
];
},
useSyncExternalStore: updateSyncExternalStore,
useId: updateId,
useHostTransitionStatus,
useFormState: updateActionState,
useActionState: updateActionState,
useOptimistic: function(passthrough, reducer2) {
var hook = updateWorkInProgressHook();
return updateOptimisticImpl(hook, currentHook, passthrough, reducer2);
},
useMemoCache,
useCacheRefresh: updateRefresh
};
HooksDispatcherOnUpdate.useEffectEvent = updateEvent;
var HooksDispatcherOnRerender = {
readContext,
use,
useCallback: updateCallback,
useContext: readContext,
useEffect: updateEffect,
useImperativeHandle: updateImperativeHandle,
useInsertionEffect: updateInsertionEffect,
useLayoutEffect: updateLayoutEffect,
useMemo: updateMemo,
useReducer: rerenderReducer,
useRef: updateRef,
useState: function() {
return rerenderReducer(basicStateReducer);
},
useDebugValue: mountDebugValue,
useDeferredValue: function(value, initialValue) {
var hook = updateWorkInProgressHook();
return currentHook === null ? mountDeferredValueImpl(hook, value, initialValue) : updateDeferredValueImpl(
hook,
currentHook.memoizedState,
value,
initialValue
);
},
useTransition: function() {
var booleanOrThenable = rerenderReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState;
return [
typeof booleanOrThenable == "boolean" ? booleanOrThenable : useThenable(booleanOrThenable),
start
];
},
useSyncExternalStore: updateSyncExternalStore,
useId: updateId,
useHostTransitionStatus,
useFormState: rerenderActionState,
useActionState: rerenderActionState,
useOptimistic: function(passthrough, reducer2) {
var hook = updateWorkInProgressHook();
return currentHook !== null ? updateOptimisticImpl(hook, currentHook, passthrough, reducer2) : (hook.baseState = passthrough, [passthrough, hook.queue.dispatch]);
},
useMemoCache,
useCacheRefresh: updateRefresh
};
HooksDispatcherOnRerender.useEffectEvent = updateEvent;
var classComponentUpdater = {
enqueueSetState: function(inst, payload, callback) {
inst = inst._reactInternals;
var lane = requestUpdateLane(), update = createUpdate(lane);
update.payload = payload, callback != null && (update.callback = callback), payload = enqueueUpdate(inst, update, lane), payload !== null && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
},
enqueueReplaceState: function(inst, payload, callback) {
inst = inst._reactInternals;
var lane = requestUpdateLane(), update = createUpdate(lane);
update.tag = 1, update.payload = payload, callback != null && (update.callback = callback), payload = enqueueUpdate(inst, update, lane), payload !== null && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
},
enqueueForceUpdate: function(inst, callback) {
inst = inst._reactInternals;
var lane = requestUpdateLane(), update = createUpdate(lane);
update.tag = 2, callback != null && (update.callback = callback), callback = enqueueUpdate(inst, update, lane), callback !== null && (scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane));
}
}, SelectiveHydrationException = Error(formatProdErrorMessage(461)), didReceiveUpdate = !1, SUSPENDED_MARKER = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
}, offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, PossiblyWeakSet = typeof WeakSet == "function" ? WeakSet : Set, nextEffect = null, hostParent = null, hostParentIsContainer = !1, currentHoistableRoot = null, suspenseyCommitFlag = 8192, DefaultAsyncDispatcher = {
getCacheForType: function(resourceType) {
var cache3 = readContext(CacheContext), cacheForType = cache3.data.get(resourceType);
return cacheForType === void 0 && (cacheForType = resourceType(), cache3.data.set(resourceType, cacheForType)), cacheForType;
},
cacheSignal: function() {
return readContext(CacheContext).controller.signal;
}
}, COMPONENT_TYPE = 0, HAS_PSEUDO_CLASS_TYPE = 1, ROLE_TYPE = 2, TEST_NAME_TYPE = 3, TEXT_TYPE = 4;
if (typeof Symbol == "function" && Symbol.for) {
var symbolFor = Symbol.for;
COMPONENT_TYPE = symbolFor("selector.component"), HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"), ROLE_TYPE = symbolFor("selector.role"), TEST_NAME_TYPE = symbolFor("selector.test_id"), TEXT_TYPE = symbolFor("selector.text");
}
var PossiblyWeakMap = typeof WeakMap == "function" ? WeakMap : Map, executionContext = 0, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootSkippedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0, workInProgressRootPingedLanes = 0, workInProgressDeferredLane = 0, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, globalMostRecentFallbackTime = 0, globalMostRecentTransitionTime = 0, workInProgressRootRenderTargetTime = 1 / 0, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, pendingEffectsLanes = 0, pendingEffectsRemainingLanes = 0, pendingPassiveTransitions = null, pendingRecoverableErrors = null, nestedUpdateCount = 0, rootWithNestedUpdates = null;
return exports2.attemptContinuousHydration = function(fiber) {
if (fiber.tag === 13 || fiber.tag === 31) {
var root = enqueueConcurrentRenderForLane(fiber, 67108864);
root !== null && scheduleUpdateOnFiber(root, fiber, 67108864), markRetryLaneIfNotHydrated(fiber, 67108864);
}
}, exports2.attemptHydrationAtCurrentPriority = function(fiber) {
if (fiber.tag === 13 || fiber.tag === 31) {
var lane = requestUpdateLane();
lane = getBumpedLaneForHydrationByLane(lane);
var root = enqueueConcurrentRenderForLane(fiber, lane);
root !== null && scheduleUpdateOnFiber(root, fiber, lane), markRetryLaneIfNotHydrated(fiber, lane);
}
}, exports2.attemptSynchronousHydration = function(fiber) {
switch (fiber.tag) {
case 3:
if (fiber = fiber.stateNode, fiber.current.memoizedState.isDehydrated) {
var lanes = getHighestPriorityLanes(fiber.pendingLanes);
if (lanes !== 0) {
for (fiber.pendingLanes |= 2, fiber.entangledLanes |= 2; lanes; ) {
var lane = 1 << 31 - clz32(lanes);
fiber.entanglements[1] |= lane, lanes &= ~lane;
}
ensureRootIsScheduled(fiber), (executionContext & 6) === 0 && (workInProgressRootRenderTargetTime = now() + 500, flushSyncWorkAcrossRoots_impl(0, !1));
}
}
break;
case 31:
case 13:
lanes = enqueueConcurrentRenderForLane(fiber, 2), lanes !== null && scheduleUpdateOnFiber(lanes, fiber, 2), flushSyncWork(), markRetryLaneIfNotHydrated(fiber, 2);
}
}, exports2.batchedUpdates = function(fn, a) {
return fn(a);
}, exports2.createComponentSelector = function(component) {
return { $$typeof: COMPONENT_TYPE, value: component };
}, exports2.createContainer = function(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator) {
return createFiberRoot(
containerInfo,
tag,
!1,
null,
hydrationCallbacks,
isStrictMode,
identifierPrefix,
null,
onUncaughtError,
onCaughtError,
onRecoverableError,
onDefaultTransitionIndicator
);
}, exports2.createHasPseudoClassSelector = function(selectors) {
return { $$typeof: HAS_PSEUDO_CLASS_TYPE, value: selectors };
}, exports2.createHydrationContainer = function(initialChildren, callback, containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, transitionCallbacks, formState) {
return initialChildren = createFiberRoot(
containerInfo,
tag,
!0,
initialChildren,
hydrationCallbacks,
isStrictMode,
identifierPrefix,
formState,
onUncaughtError,
onCaughtError,
onRecoverableError,
onDefaultTransitionIndicator
), initialChildren.context = getContextForSubtree(null), containerInfo = initialChildren.current, tag = requestUpdateLane(), tag = getBumpedLaneForHydrationByLane(tag), hydrationCallbacks = createUpdate(tag), hydrationCallbacks.callback = callback ?? null, enqueueUpdate(containerInfo, hydrationCallbacks, tag), callback = tag, initialChildren.current.lanes = callback, markRootUpdated$1(initialChildren, callback), ensureRootIsScheduled(initialChildren), initialChildren;
}, exports2.createPortal = function(children, containerInfo, implementation) {
var key = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
return {
$$typeof: REACT_PORTAL_TYPE,
key: key == null ? null : "" + key,
children,
containerInfo,
implementation
};
}, exports2.createRoleSelector = function(role) {
return { $$typeof: ROLE_TYPE, value: role };
}, exports2.createTestNameSelector = function(id) {
return { $$typeof: TEST_NAME_TYPE, value: id };
}, exports2.createTextSelector = function(text) {
return { $$typeof: TEXT_TYPE, value: text };
}, exports2.defaultOnCaughtError = function(error) {
console.error(error);
}, exports2.defaultOnRecoverableError = function(error) {
reportGlobalError(error);
}, exports2.defaultOnUncaughtError = function(error) {
reportGlobalError(error);
}, exports2.deferredUpdates = function(fn) {
var prevTransition = ReactSharedInternals.T, previousPriority = getCurrentUpdatePriority();
try {
return setCurrentUpdatePriority(32), ReactSharedInternals.T = null, fn();
} finally {
setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = prevTransition;
}
}, exports2.discreteUpdates = function(fn, a, b, c, d) {
var prevTransition = ReactSharedInternals.T, previousPriority = getCurrentUpdatePriority();
try {
return setCurrentUpdatePriority(2), ReactSharedInternals.T = null, fn(a, b, c, d);
} finally {
setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = prevTransition, executionContext === 0 && (workInProgressRootRenderTargetTime = now() + 500);
}
}, exports2.findAllNodes = findAllNodes, exports2.findBoundingRects = function(hostRoot, selectors) {
if (!supportsTestSelectors) throw Error(formatProdErrorMessage(363));
selectors = findAllNodes(hostRoot, selectors), hostRoot = [];
for (var i = 0; i < selectors.length; i++)
hostRoot.push(getBoundingRect(selectors[i]));
for (selectors = hostRoot.length - 1; 0 < selectors; selectors--) {
i = hostRoot[selectors];
for (var targetLeft = i.x, targetRight = targetLeft + i.width, targetTop = i.y, targetBottom = targetTop + i.height, j = selectors - 1; 0 <= j; j--)
if (selectors !== j) {
var otherRect = hostRoot[j], otherLeft = otherRect.x, otherRight = otherLeft + otherRect.width, otherTop = otherRect.y, otherBottom = otherTop + otherRect.height;
if (targetLeft >= otherLeft && targetTop >= otherTop && targetRight <= otherRight && targetBottom <= otherBottom) {
hostRoot.splice(selectors, 1);
break;
} else if (targetLeft !== otherLeft || i.width !== otherRect.width || otherBottom < targetTop || otherTop > targetBottom) {
if (!(targetTop !== otherTop || i.height !== otherRect.height || otherRight < targetLeft || otherLeft > targetRight)) {
otherLeft > targetLeft && (otherRect.width += otherLeft - targetLeft, otherRect.x = targetLeft), otherRight < targetRight && (otherRect.width = targetRight - otherLeft), hostRoot.splice(selectors, 1);
break;
}
} else {
otherTop > targetTop && (otherRect.height += otherTop - targetTop, otherRect.y = targetTop), otherBottom < targetBottom && (otherRect.height = targetBottom - otherTop), hostRoot.splice(selectors, 1);
break;
}
}
}
return hostRoot;
}, exports2.findHostInstance = findHostInstance, exports2.findHostInstanceWithNoPortals = function(fiber) {
return fiber = findCurrentFiberUsingSlowPath(fiber), fiber = fiber !== null ? findCurrentHostFiberWithNoPortalsImpl(fiber) : null, fiber === null ? null : getPublicInstance(fiber.stateNode);
}, exports2.findHostInstanceWithWarning = function(component) {
return findHostInstance(component);
}, exports2.flushPassiveEffects = flushPendingEffects, exports2.flushSyncFromReconciler = function(fn) {
var prevExecutionContext = executionContext;
executionContext |= 1;
var prevTransition = ReactSharedInternals.T, previousPriority = getCurrentUpdatePriority();
try {
if (setCurrentUpdatePriority(2), ReactSharedInternals.T = null, fn)
return fn();
} finally {
setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = prevTransition, executionContext = prevExecutionContext, (executionContext & 6) === 0 && flushSyncWorkAcrossRoots_impl(0, !1);
}
}, exports2.flushSyncWork = flushSyncWork, exports2.focusWithin = function(hostRoot, selectors) {
if (!supportsTestSelectors) throw Error(formatProdErrorMessage(363));
for (hostRoot = findFiberRootForHostRoot(hostRoot), selectors = findPaths(hostRoot, selectors), selectors = Array.from(selectors), hostRoot = 0; hostRoot < selectors.length; ) {
var fiber = selectors[hostRoot++], tag = fiber.tag;
if (!isHiddenSubtree(fiber)) {
if ((tag === 5 || tag === 26 || tag === 27) && setFocusIfFocusable(fiber.stateNode))
return !0;
for (fiber = fiber.child; fiber !== null; )
selectors.push(fiber), fiber = fiber.sibling;
}
}
return !1;
}, exports2.getFindAllNodesFailureDescription = function(hostRoot, selectors) {
if (!supportsTestSelectors) throw Error(formatProdErrorMessage(363));
var maxSelectorIndex = 0, matchedNames = [];
hostRoot = [findFiberRootForHostRoot(hostRoot), 0];
for (var index = 0; index < hostRoot.length; ) {
var fiber = hostRoot[index++], tag = fiber.tag, selectorIndex = hostRoot[index++], selector = selectors[selectorIndex];
if ((tag !== 5 && tag !== 26 && tag !== 27 || !isHiddenSubtree(fiber)) && (matchSelector(fiber, selector) && (matchedNames.push(selectorToString(selector)), selectorIndex++, selectorIndex > maxSelectorIndex && (maxSelectorIndex = selectorIndex)), selectorIndex < selectors.length))
for (fiber = fiber.child; fiber !== null; )
hostRoot.push(fiber, selectorIndex), fiber = fiber.sibling;
}
if (maxSelectorIndex < selectors.length) {
for (hostRoot = []; maxSelectorIndex < selectors.length; maxSelectorIndex++)
hostRoot.push(selectorToString(selectors[maxSelectorIndex]));
return `findAllNodes was able to match part of the selector:
` + (matchedNames.join(" > ") + `
No matching component was found for:
`) + hostRoot.join(" > ");
}
return null;
}, exports2.getPublicRootInstance = function(container) {
if (container = container.current, !container.child) return null;
switch (container.child.tag) {
case 27:
case 5:
return getPublicInstance(container.child.stateNode);
default:
return container.child.stateNode;
}
}, exports2.injectIntoDevTools = function() {
var internals = {
bundleType: 0,
version: rendererVersion,
rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0"
};
if (extraDevToolsConfig !== null && (internals.rendererConfig = extraDevToolsConfig), typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u") internals = !1;
else {
var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (hook.isDisabled || !hook.supportsFiber) internals = !0;
else {
try {
rendererID = hook.inject(internals), injectedHook = hook;
} catch {
}
internals = !!hook.checkDCE;
}
}
return internals;
}, exports2.isAlreadyRendering = function() {
return (executionContext & 6) !== 0;
}, exports2.observeVisibleRects = function(hostRoot, selectors, callback, options) {
if (!supportsTestSelectors) throw Error(formatProdErrorMessage(363));
hostRoot = findAllNodes(hostRoot, selectors);
var disconnect = setupIntersectionObserver(
hostRoot,
callback,
options
).disconnect;
return {
disconnect: function() {
disconnect();
}
};
}, exports2.shouldError = function() {
return null;
}, exports2.shouldSuspend = function() {
return !1;
}, exports2.startHostTransition = function(formFiber, pendingState, action, formData) {
if (formFiber.tag !== 5) throw Error(formatProdErrorMessage(476));
var queue = ensureFormComponentIsStateful(formFiber).queue;
startTransition(
formFiber,
queue,
pendingState,
NotPendingTransition,
action === null ? noop4 : function() {
var stateHook = ensureFormComponentIsStateful(formFiber);
return stateHook.next === null && (stateHook = formFiber.alternate.memoizedState), dispatchSetStateInternal(
formFiber,
stateHook.next.queue,
{},
requestUpdateLane()
), action(formData);
}
);
}, exports2.updateContainer = function(element, container, parentComponent, callback) {
var current = container.current, lane = requestUpdateLane();
return updateContainerImpl(
current,
lane,
element,
container,
parentComponent,
callback
), lane;
}, exports2.updateContainerSync = function(element, container, parentComponent, callback) {
return updateContainerImpl(
container.current,
2,
element,
container,
parentComponent,
callback
), 2;
}, exports2;
};
module.exports.default = module.exports;
Object.defineProperty(module.exports, "__esModule", { value: !0 });
}
});
// ../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/cjs/react-reconciler.development.js
var require_react_reconciler_development = __commonJS({
"../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/cjs/react-reconciler.development.js"(exports, module) {
"use strict";
init_cjs_shims();
process.env.NODE_ENV !== "production" && (module.exports = function($$$config) {
function findHook(fiber, id) {
for (fiber = fiber.memoizedState; fiber !== null && 0 < id; )
fiber = fiber.next, id--;
return fiber;
}
function copyWithSetImpl(obj, path, index, value) {
if (index >= path.length) return value;
var key = path[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
return updated[key] = copyWithSetImpl(obj[key], path, index + 1, value), updated;
}
function copyWithRename(obj, oldPath, newPath) {
if (oldPath.length !== newPath.length)
console.warn("copyWithRename() expects paths of the same length");
else {
for (var i = 0; i < newPath.length - 1; i++)
if (oldPath[i] !== newPath[i]) {
console.warn(
"copyWithRename() expects paths to be the same except for the deepest key"
);
return;
}
return copyWithRenameImpl(obj, oldPath, newPath, 0);
}
}
function copyWithRenameImpl(obj, oldPath, newPath, index) {
var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
return index + 1 === oldPath.length ? (updated[newPath[index]] = updated[oldKey], isArrayImpl(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl(
obj[oldKey],
oldPath,
newPath,
index + 1
), updated;
}
function copyWithDeleteImpl(obj, path, index) {
var key = path[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
return index + 1 === path.length ? (isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated) : (updated[key] = copyWithDeleteImpl(obj[key], path, index + 1), updated);
}
function shouldSuspendImpl() {
return !1;
}
function shouldErrorImpl() {
return null;
}
function createFiber(tag, pendingProps, key, mode) {
return new FiberNode(tag, pendingProps, key, mode);
}
function scheduleRoot(root, element) {
root.context === emptyContextObject && (updateContainerSync(element, root, null, null), flushSyncWork());
}
function scheduleRefresh(root, update) {
if (resolveFamily !== null) {
var staleFamilies = update.staleFamilies;
update = update.updatedFamilies, flushPendingEffects(), scheduleFibersWithFamiliesRecursively(
root.current,
update,
staleFamilies
), flushSyncWork();
}
}
function setRefreshHandler(handler) {
resolveFamily = handler;
}
function warnInvalidHookAccess() {
console.error(
"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"
);
}
function warnInvalidContextAccess() {
console.error(
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."
);
}
function noop4() {
}
function warnForMissingKey() {
}
function setToSortedString(set) {
var array = [];
return set.forEach(function(value) {
array.push(value);
}), array.sort().join(", ");
}
function getNearestMountedFiber(fiber) {
var node = fiber, nearestMounted = fiber;
if (fiber.alternate) for (; node.return; ) node = node.return;
else {
fiber = node;
do
node = fiber, (node.flags & 4098) !== 0 && (nearestMounted = node.return), fiber = node.return;
while (fiber);
}
return node.tag === 3 ? nearestMounted : null;
}
function assertIsMounted(fiber) {
if (getNearestMountedFiber(fiber) !== fiber)
throw Error("Unable to find node on an unmounted component.");
}
function findCurrentFiberUsingSlowPath(fiber) {
var alternate = fiber.alternate;
if (!alternate) {
if (alternate = getNearestMountedFiber(fiber), alternate === null)
throw Error("Unable to find node on an unmounted component.");
return alternate !== fiber ? null : fiber;
}
for (var a = fiber, b = alternate; ; ) {
var parentA = a.return;
if (parentA === null) break;
var parentB = parentA.alternate;
if (parentB === null) {
if (b = parentA.return, b !== null) {
a = b;
continue;
}
break;
}
if (parentA.child === parentB.child) {
for (parentB = parentA.child; parentB; ) {
if (parentB === a) return assertIsMounted(parentA), fiber;
if (parentB === b) return assertIsMounted(parentA), alternate;
parentB = parentB.sibling;
}
throw Error("Unable to find node on an unmounted component.");
}
if (a.return !== b.return) a = parentA, b = parentB;
else {
for (var didFindChild = !1, _child = parentA.child; _child; ) {
if (_child === a) {
didFindChild = !0, a = parentA, b = parentB;
break;
}
if (_child === b) {
didFindChild = !0, b = parentA, a = parentB;
break;
}
_child = _child.sibling;
}
if (!didFindChild) {
for (_child = parentB.child; _child; ) {
if (_child === a) {
didFindChild = !0, a = parentB, b = parentA;
break;
}
if (_child === b) {
didFindChild = !0, b = parentB, a = parentA;
break;
}
_child = _child.sibling;
}
if (!didFindChild)
throw Error(
"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."
);
}
}
if (a.alternate !== b)
throw Error(
"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."
);
}
if (a.tag !== 3)
throw Error("Unable to find node on an unmounted component.");
return a.stateNode.current === a ? fiber : alternate;
}
function findCurrentHostFiber(parent) {
return parent = findCurrentFiberUsingSlowPath(parent), parent !== null ? findCurrentHostFiberImpl(parent) : null;
}
function findCurrentHostFiberImpl(node) {
var tag = node.tag;
if (tag === 5 || tag === 26 || tag === 27 || tag === 6) return node;
for (node = node.child; node !== null; ) {
if (tag = findCurrentHostFiberImpl(node), tag !== null) return tag;
node = node.sibling;
}
return null;
}
function findCurrentHostFiberWithNoPortalsImpl(node) {
var tag = node.tag;
if (tag === 5 || tag === 26 || tag === 27 || tag === 6) return node;
for (node = node.child; node !== null; ) {
if (node.tag !== 4 && (tag = findCurrentHostFiberWithNoPortalsImpl(node), tag !== null))
return tag;
node = node.sibling;
}
return null;
}
function getIteratorFn(maybeIterable) {
return maybeIterable === null || typeof maybeIterable != "object" ? null : (maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"], typeof maybeIterable == "function" ? maybeIterable : null);
}
function getComponentNameFromType(type) {
if (type == null) return null;
if (typeof type == "function")
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
if (typeof type == "string") return type;
switch (type) {
case REACT_FRAGMENT_TYPE:
return "Fragment";
case REACT_PROFILER_TYPE:
return "Profiler";
case REACT_STRICT_MODE_TYPE:
return "StrictMode";
case REACT_SUSPENSE_TYPE:
return "Suspense";
case REACT_SUSPENSE_LIST_TYPE:
return "SuspenseList";
case REACT_ACTIVITY_TYPE:
return "Activity";
}
if (typeof type == "object")
switch (typeof type.tag == "number" && console.error(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
), type.$$typeof) {
case REACT_PORTAL_TYPE:
return "Portal";
case REACT_CONTEXT_TYPE:
return type.displayName || "Context";
case REACT_CONSUMER_TYPE:
return (type._context.displayName || "Context") + ".Consumer";
case REACT_FORWARD_REF_TYPE:
var innerType = type.render;
return type = type.displayName, type || (type = innerType.displayName || innerType.name || "", type = type !== "" ? "ForwardRef(" + type + ")" : "ForwardRef"), type;
case REACT_MEMO_TYPE:
return innerType = type.displayName || null, innerType !== null ? innerType : getComponentNameFromType(type.type) || "Memo";
case REACT_LAZY_TYPE:
innerType = type._payload, type = type._init;
try {
return getComponentNameFromType(type(innerType));
} catch {
}
}
return null;
}
function getComponentNameFromFiber(fiber) {
var type = fiber.type;
switch (fiber.tag) {
case 31:
return "Activity";
case 24:
return "Cache";
case 9:
return (type._context.displayName || "Context") + ".Consumer";
case 10:
return type.displayName || "Context";
case 18:
return "DehydratedFragment";
case 11:
return fiber = type.render, fiber = fiber.displayName || fiber.name || "", type.displayName || (fiber !== "" ? "ForwardRef(" + fiber + ")" : "ForwardRef");
case 7:
return "Fragment";
case 26:
case 27:
case 5:
return type;
case 4:
return "Portal";
case 3:
return "Root";
case 6:
return "Text";
case 16:
return getComponentNameFromType(type);
case 8:
return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode";
case 22:
return "Offscreen";
case 12:
return "Profiler";
case 21:
return "Scope";
case 13:
return "Suspense";
case 19:
return "SuspenseList";
case 25:
return "TracingMarker";
case 1:
case 0:
case 14:
case 15:
if (typeof type == "function")
return type.displayName || type.name || null;
if (typeof type == "string") return type;
break;
case 29:
if (type = fiber._debugInfo, type != null) {
for (var i = type.length - 1; 0 <= i; i--)
if (typeof type[i].name == "string") return type[i].name;
}
if (fiber.return !== null)
return getComponentNameFromFiber(fiber.return);
}
return null;
}
function createCursor(defaultValue) {
return { current: defaultValue };
}
function pop(cursor, fiber) {
0 > index$jscomp$0 ? console.error("Unexpected pop.") : (fiber !== fiberStack[index$jscomp$0] && console.error("Unexpected Fiber popped."), cursor.current = valueStack[index$jscomp$0], valueStack[index$jscomp$0] = null, fiberStack[index$jscomp$0] = null, index$jscomp$0--);
}
function push(cursor, value, fiber) {
index$jscomp$0++, valueStack[index$jscomp$0] = cursor.current, fiberStack[index$jscomp$0] = fiber, cursor.current = value;
}
function clz32Fallback(x) {
return x >>>= 0, x === 0 ? 32 : 31 - (log$1(x) / LN2 | 0) | 0;
}
function getHighestPriorityLanes(lanes) {
var pendingSyncLanes = lanes & 42;
if (pendingSyncLanes !== 0) return pendingSyncLanes;
switch (lanes & -lanes) {
case 1:
return 1;
case 2:
return 2;
case 4:
return 4;
case 8:
return 8;
case 16:
return 16;
case 32:
return 32;
case 64:
return 64;
case 128:
return 128;
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
return lanes & 261888;
case 262144:
case 524288:
case 1048576:
case 2097152:
return lanes & 3932160;
case 4194304:
case 8388608:
case 16777216:
case 33554432:
return lanes & 62914560;
case 67108864:
return 67108864;
case 134217728:
return 134217728;
case 268435456:
return 268435456;
case 536870912:
return 536870912;
case 1073741824:
return 0;
default:
return console.error(
"Should have found matching lanes. This is a bug in React."
), lanes;
}
}
function getNextLanes(root, wipLanes, rootHasPendingCommit) {
var pendingLanes = root.pendingLanes;
if (pendingLanes === 0) return 0;
var nextLanes = 0, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes;
root = root.warmLanes;
var nonIdlePendingLanes = pendingLanes & 134217727;
return nonIdlePendingLanes !== 0 ? (pendingLanes = nonIdlePendingLanes & ~suspendedLanes, pendingLanes !== 0 ? nextLanes = getHighestPriorityLanes(pendingLanes) : (pingedLanes &= nonIdlePendingLanes, pingedLanes !== 0 ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = nonIdlePendingLanes & ~root, rootHasPendingCommit !== 0 && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))))) : (nonIdlePendingLanes = pendingLanes & ~suspendedLanes, nonIdlePendingLanes !== 0 ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : pingedLanes !== 0 ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = pendingLanes & ~root, rootHasPendingCommit !== 0 && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))), nextLanes === 0 ? 0 : wipLanes !== 0 && wipLanes !== nextLanes && (wipLanes & suspendedLanes) === 0 && (suspendedLanes = nextLanes & -nextLanes, rootHasPendingCommit = wipLanes & -wipLanes, suspendedLanes >= rootHasPendingCommit || suspendedLanes === 32 && (rootHasPendingCommit & 4194048) !== 0) ? wipLanes : nextLanes;
}
function checkIfRootIsPrerendering(root, renderLanes2) {
return (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & renderLanes2) === 0;
}
function computeExpirationTime(lane, currentTime2) {
switch (lane) {
case 1:
case 2:
case 4:
case 8:
case 64:
return currentTime2 + 250;
case 16:
case 32:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
return currentTime2 + 5e3;
case 4194304:
case 8388608:
case 16777216:
case 33554432:
return -1;
case 67108864:
case 134217728:
case 268435456:
case 536870912:
case 1073741824:
return -1;
default:
return console.error(
"Should have found matching lanes. This is a bug in React."
), -1;
}
}
function claimNextRetryLane() {
var lane = nextRetryLane;
return nextRetryLane <<= 1, (nextRetryLane & 62914560) === 0 && (nextRetryLane = 4194304), lane;
}
function createLaneMap(initial) {
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
return laneMap;
}
function markRootUpdated$1(root, updateLane) {
root.pendingLanes |= updateLane, updateLane !== 268435456 && (root.suspendedLanes = 0, root.pingedLanes = 0, root.warmLanes = 0);
}
function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane, updatedLanes, suspendedRetryLanes) {
var previouslyPendingLanes = root.pendingLanes;
root.pendingLanes = remainingLanes, root.suspendedLanes = 0, root.pingedLanes = 0, root.warmLanes = 0, root.expiredLanes &= remainingLanes, root.entangledLanes &= remainingLanes, root.errorRecoveryDisabledLanes &= remainingLanes, root.shellSuspendCounter = 0;
var entanglements = root.entanglements, expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates;
for (remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) {
var index = 31 - clz32(remainingLanes), lane = 1 << index;
entanglements[index] = 0, expirationTimes[index] = -1;
var hiddenUpdatesForLane = hiddenUpdates[index];
if (hiddenUpdatesForLane !== null)
for (hiddenUpdates[index] = null, index = 0; index < hiddenUpdatesForLane.length; index++) {
var update = hiddenUpdatesForLane[index];
update !== null && (update.lane &= -536870913);
}
remainingLanes &= ~lane;
}
spawnedLane !== 0 && markSpawnedDeferredLane(root, spawnedLane, 0), suspendedRetryLanes !== 0 && updatedLanes === 0 && root.tag !== 0 && (root.suspendedLanes |= suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
}
function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
root.pendingLanes |= spawnedLane, root.suspendedLanes &= ~spawnedLane;
var spawnedLaneIndex = 31 - clz32(spawnedLane);
root.entangledLanes |= spawnedLane, root.entanglements[spawnedLaneIndex] = root.entanglements[spawnedLaneIndex] | 1073741824 | entangledLanes & 261930;
}
function markRootEntangled(root, entangledLanes) {
var rootEntangledLanes = root.entangledLanes |= entangledLanes;
for (root = root.entanglements; rootEntangledLanes; ) {
var index = 31 - clz32(rootEntangledLanes), lane = 1 << index;
lane & entangledLanes | root[index] & entangledLanes && (root[index] |= entangledLanes), rootEntangledLanes &= ~lane;
}
}
function getBumpedLaneForHydration(root, renderLanes2) {
var renderLane = renderLanes2 & -renderLanes2;
return renderLane = (renderLane & 42) !== 0 ? 1 : getBumpedLaneForHydrationByLane(renderLane), (renderLane & (root.suspendedLanes | renderLanes2)) !== 0 ? 0 : renderLane;
}
function getBumpedLaneForHydrationByLane(lane) {
switch (lane) {
case 2:
lane = 1;
break;
case 8:
lane = 4;
break;
case 32:
lane = 16;
break;
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
case 4194304:
case 8388608:
case 16777216:
case 33554432:
lane = 128;
break;
case 268435456:
lane = 134217728;
break;
default:
lane = 0;
}
return lane;
}
function addFiberToLanesMap(root, fiber, lanes) {
if (isDevToolsPresent)
for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) {
var index = 31 - clz32(lanes), lane = 1 << index;
root[index].add(fiber), lanes &= ~lane;
}
}
function movePendingFibersToMemoized(root, lanes) {
if (isDevToolsPresent)
for (var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, memoizedUpdaters = root.memoizedUpdaters; 0 < lanes; ) {
var index = 31 - clz32(lanes);
root = 1 << index, index = pendingUpdatersLaneMap[index], 0 < index.size && (index.forEach(function(fiber) {
var alternate = fiber.alternate;
alternate !== null && memoizedUpdaters.has(alternate) || memoizedUpdaters.add(fiber);
}), index.clear()), lanes &= ~root;
}
}
function lanesToEventPriority(lanes) {
return lanes &= -lanes, 2 < lanes ? 8 < lanes ? (lanes & 134217727) !== 0 ? 32 : 268435456 : 8 : 2;
}
function injectInternals(internals) {
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u") return !1;
var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (hook.isDisabled) return !0;
if (!hook.supportsFiber)
return console.error(
"The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"
), !0;
try {
rendererID = hook.inject(internals), injectedHook = hook;
} catch (err) {
console.error("React instrumentation encountered an error: %o.", err);
}
return !!hook.checkDCE;
}
function setIsStrictModeForDevtools(newIsStrictMode) {
if (typeof log == "function" && unstable_setDisableYieldValue(newIsStrictMode), injectedHook && typeof injectedHook.setStrictMode == "function")
try {
injectedHook.setStrictMode(rendererID, newIsStrictMode);
} catch (err) {
hasLoggedError || (hasLoggedError = !0, console.error(
"React instrumentation encountered an error: %o",
err
));
}
}
function is(x, y) {
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
}
function getArrayKind(array) {
for (var kind = 0, i = 0; i < array.length; i++) {
var value = array[i];
if (typeof value == "object" && value !== null)
if (isArrayImpl(value) && value.length === 2 && typeof value[0] == "string") {
if (kind !== 0 && kind !== 3) return 1;
kind = 3;
} else return 1;
else {
if (typeof value == "function" || typeof value == "string" && 50 < value.length || kind !== 0 && kind !== 2)
return 1;
kind = 2;
}
}
return kind;
}
function addObjectToProperties(object, properties, indent, prefix2) {
for (var key in object)
hasOwnProperty.call(object, key) && key[0] !== "_" && addValueToProperties(key, object[key], properties, indent, prefix2);
}
function addValueToProperties(propertyName, value, properties, indent, prefix2) {
switch (typeof value) {
case "object":
if (value === null) {
value = "null";
break;
} else {
if (value.$$typeof === REACT_ELEMENT_TYPE) {
var typeName = getComponentNameFromType(value.type) || "\u2026", key = value.key;
value = value.props;
var propsKeys = Object.keys(value), propsLength = propsKeys.length;
if (key == null && propsLength === 0) {
value = "<" + typeName + " />";
break;
}
if (3 > indent || propsLength === 1 && propsKeys[0] === "children" && key == null) {
value = "<" + typeName + " \u2026 />";
break;
}
properties.push([
prefix2 + "\xA0\xA0".repeat(indent) + propertyName,
"<" + typeName
]), key !== null && addValueToProperties(
"key",
key,
properties,
indent + 1,
prefix2
), propertyName = !1;
for (var propKey in value)
propKey === "children" ? value.children != null && (!isArrayImpl(value.children) || 0 < value.children.length) && (propertyName = !0) : hasOwnProperty.call(value, propKey) && propKey[0] !== "_" && addValueToProperties(
propKey,
value[propKey],
properties,
indent + 1,
prefix2
);
properties.push([
"",
propertyName ? ">\u2026</" + typeName + ">" : "/>"
]);
return;
}
if (typeName = Object.prototype.toString.call(value), typeName = typeName.slice(8, typeName.length - 1), typeName === "Array") {
if (propKey = getArrayKind(value), propKey === 2 || propKey === 0) {
value = JSON.stringify(value);
break;
} else if (propKey === 3) {
for (properties.push([
prefix2 + "\xA0\xA0".repeat(indent) + propertyName,
""
]), propertyName = 0; propertyName < value.length; propertyName++)
typeName = value[propertyName], addValueToProperties(
typeName[0],
typeName[1],
properties,
indent + 1,
prefix2
);
return;
}
}
if (typeName === "Promise") {
if (value.status === "fulfilled") {
if (typeName = properties.length, addValueToProperties(
propertyName,
value.value,
properties,
indent,
prefix2
), properties.length > typeName) {
properties = properties[typeName], properties[1] = "Promise<" + (properties[1] || "Object") + ">";
return;
}
} else if (value.status === "rejected" && (typeName = properties.length, addValueToProperties(
propertyName,
value.reason,
properties,
indent,
prefix2
), properties.length > typeName)) {
properties = properties[typeName], properties[1] = "Rejected Promise<" + properties[1] + ">";
return;
}
properties.push([
"\xA0\xA0".repeat(indent) + propertyName,
"Promise"
]);
return;
}
typeName === "Object" && (propKey = Object.getPrototypeOf(value)) && typeof propKey.constructor == "function" && (typeName = propKey.constructor.name), properties.push([
prefix2 + "\xA0\xA0".repeat(indent) + propertyName,
typeName === "Object" ? 3 > indent ? "" : "\u2026" : typeName
]), 3 > indent && addObjectToProperties(value, properties, indent + 1, prefix2);
return;
}
case "function":
value = value.name === "" ? "() => {}" : value.name + "() {}";
break;
case "string":
value = value === "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects." ? "\u2026" : JSON.stringify(value);
break;
case "undefined":
value = "undefined";
break;
case "boolean":
value = value ? "true" : "false";
break;
default:
value = String(value);
}
properties.push([
prefix2 + "\xA0\xA0".repeat(indent) + propertyName,
value
]);
}
function addObjectDiffToProperties(prev, next, properties, indent) {
var isDeeplyEqual = !0;
for (key in prev)
key in next || (properties.push([
"\u2013\xA0" + "\xA0\xA0".repeat(indent) + key,
"\u2026"
]), isDeeplyEqual = !1);
for (var _key in next)
if (_key in prev) {
var key = prev[_key], nextValue = next[_key];
if (key !== nextValue) {
if (indent === 0 && _key === "children")
isDeeplyEqual = "\xA0\xA0".repeat(indent) + _key, properties.push(
["\u2013\xA0" + isDeeplyEqual, "\u2026"],
["+\xA0" + isDeeplyEqual, "\u2026"]
);
else {
if (!(3 <= indent)) {
if (typeof key == "object" && typeof nextValue == "object" && key !== null && nextValue !== null && key.$$typeof === nextValue.$$typeof)
if (nextValue.$$typeof === REACT_ELEMENT_TYPE) {
if (key.type === nextValue.type && key.key === nextValue.key) {
key = getComponentNameFromType(nextValue.type) || "\u2026", isDeeplyEqual = "\xA0\xA0".repeat(indent) + _key, key = "<" + key + " \u2026 />", properties.push(
["\u2013\xA0" + isDeeplyEqual, key],
["+\xA0" + isDeeplyEqual, key]
), isDeeplyEqual = !1;
continue;
}
} else {
var prevKind = Object.prototype.toString.call(key), nextKind = Object.prototype.toString.call(nextValue);
if (prevKind === nextKind && (nextKind === "[object Object]" || nextKind === "[object Array]")) {
prevKind = [
"\u2007\xA0" + "\xA0\xA0".repeat(indent) + _key,
nextKind === "[object Array]" ? "Array" : ""
], properties.push(prevKind), nextKind = properties.length, addObjectDiffToProperties(
key,
nextValue,
properties,
indent + 1
) ? nextKind === properties.length && (prevKind[1] = "Referentially unequal but deeply equal objects. Consider memoization.") : isDeeplyEqual = !1;
continue;
}
}
else if (typeof key == "function" && typeof nextValue == "function" && key.name === nextValue.name && key.length === nextValue.length && (prevKind = Function.prototype.toString.call(key), nextKind = Function.prototype.toString.call(nextValue), prevKind === nextKind)) {
key = nextValue.name === "" ? "() => {}" : nextValue.name + "() {}", properties.push([
"\u2007\xA0" + "\xA0\xA0".repeat(indent) + _key,
key + " Referentially unequal function closure. Consider memoization."
]);
continue;
}
}
addValueToProperties(
_key,
key,
properties,
indent,
"\u2013\xA0"
), addValueToProperties(
_key,
nextValue,
properties,
indent,
"+\xA0"
);
}
isDeeplyEqual = !1;
}
} else
properties.push([
"+\xA0" + "\xA0\xA0".repeat(indent) + _key,
"\u2026"
]), isDeeplyEqual = !1;
return isDeeplyEqual;
}
function setCurrentTrackFromLanes(lanes) {
currentTrack = lanes & 63 ? "Blocking" : lanes & 64 ? "Gesture" : lanes & 4194176 ? "Transition" : lanes & 62914560 ? "Suspense" : lanes & 2080374784 ? "Idle" : "Other";
}
function logComponentTrigger(fiber, startTime, endTime, trigger) {
supportsUserTiming && (reusableComponentOptions.start = startTime, reusableComponentOptions.end = endTime, reusableComponentDevToolDetails.color = "warning", reusableComponentDevToolDetails.tooltipText = trigger, reusableComponentDevToolDetails.properties = null, (fiber = fiber._debugTask) ? fiber.run(
performance.measure.bind(
performance,
trigger,
reusableComponentOptions
)
) : performance.measure(trigger, reusableComponentOptions));
}
function logComponentReappeared(fiber, startTime, endTime) {
logComponentTrigger(fiber, startTime, endTime, "Reconnect");
}
function logComponentRender(fiber, startTime, endTime, wasHydrated, committedLanes) {
var name = getComponentNameFromFiber(fiber);
if (name !== null && supportsUserTiming) {
var alternate = fiber.alternate, selfTime = fiber.actualDuration;
if (alternate === null || alternate.child !== fiber.child)
for (var child = fiber.child; child !== null; child = child.sibling)
selfTime -= child.actualDuration;
wasHydrated = 0.5 > selfTime ? wasHydrated ? "tertiary-light" : "primary-light" : 10 > selfTime ? wasHydrated ? "tertiary" : "primary" : 100 > selfTime ? wasHydrated ? "tertiary-dark" : "primary-dark" : "error";
var props = fiber.memoizedProps;
selfTime = fiber._debugTask, props !== null && alternate !== null && alternate.memoizedProps !== props ? (child = [resuableChangedPropsEntry], props = addObjectDiffToProperties(
alternate.memoizedProps,
props,
child,
0
), 1 < child.length && (props && !alreadyWarnedForDeepEquality && (alternate.lanes & committedLanes) === 0 && 100 < fiber.actualDuration ? (alreadyWarnedForDeepEquality = !0, child[0] = reusableDeeplyEqualPropsEntry, reusableComponentDevToolDetails.color = "warning", reusableComponentDevToolDetails.tooltipText = "This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.") : (reusableComponentDevToolDetails.color = wasHydrated, reusableComponentDevToolDetails.tooltipText = name), reusableComponentDevToolDetails.properties = child, reusableComponentOptions.start = startTime, reusableComponentOptions.end = endTime, selfTime != null ? selfTime.run(
performance.measure.bind(
performance,
"\u200B" + name,
reusableComponentOptions
)
) : performance.measure(
"\u200B" + name,
reusableComponentOptions
))) : selfTime != null ? selfTime.run(
console.timeStamp.bind(
console,
name,
startTime,
endTime,
"Components \u269B",
void 0,
wasHydrated
)
) : console.timeStamp(
name,
startTime,
endTime,
"Components \u269B",
void 0,
wasHydrated
);
}
}
function logComponentErrored(fiber, startTime, endTime, errors) {
if (supportsUserTiming) {
var name = getComponentNameFromFiber(fiber);
if (name !== null) {
for (var debugTask = null, properties = [], i = 0; i < errors.length; i++) {
var capturedValue = errors[i];
debugTask == null && capturedValue.source !== null && (debugTask = capturedValue.source._debugTask), capturedValue = capturedValue.value, properties.push([
"Error",
typeof capturedValue == "object" && capturedValue !== null && typeof capturedValue.message == "string" ? String(capturedValue.message) : String(capturedValue)
]);
}
fiber.key !== null && addValueToProperties("key", fiber.key, properties, 0, ""), fiber.memoizedProps !== null && addObjectToProperties(fiber.memoizedProps, properties, 0, ""), debugTask == null && (debugTask = fiber._debugTask), fiber = {
start: startTime,
end: endTime,
detail: {
devtools: {
color: "error",
track: "Components \u269B",
tooltipText: fiber.tag === 13 ? "Hydration failed" : "Error boundary caught an error",
properties
}
}
}, debugTask ? debugTask.run(
performance.measure.bind(performance, "\u200B" + name, fiber)
) : performance.measure("\u200B" + name, fiber);
}
}
}
function logComponentEffect(fiber, startTime, endTime, selfTime, errors) {
if (errors !== null) {
if (supportsUserTiming) {
var name = getComponentNameFromFiber(fiber);
if (name !== null) {
selfTime = [];
for (var i = 0; i < errors.length; i++) {
var error = errors[i].value;
selfTime.push([
"Error",
typeof error == "object" && error !== null && typeof error.message == "string" ? String(error.message) : String(error)
]);
}
fiber.key !== null && addValueToProperties("key", fiber.key, selfTime, 0, ""), fiber.memoizedProps !== null && addObjectToProperties(fiber.memoizedProps, selfTime, 0, ""), startTime = {
start: startTime,
end: endTime,
detail: {
devtools: {
color: "error",
track: "Components \u269B",
tooltipText: "A lifecycle or effect errored",
properties: selfTime
}
}
}, (fiber = fiber._debugTask) ? fiber.run(
performance.measure.bind(
performance,
"\u200B" + name,
startTime
)
) : performance.measure("\u200B" + name, startTime);
}
}
} else
name = getComponentNameFromFiber(fiber), name !== null && supportsUserTiming && (errors = 1 > selfTime ? "secondary-light" : 100 > selfTime ? "secondary" : 500 > selfTime ? "secondary-dark" : "error", (fiber = fiber._debugTask) ? fiber.run(
console.timeStamp.bind(
console,
name,
startTime,
endTime,
"Components \u269B",
void 0,
errors
)
) : console.timeStamp(
name,
startTime,
endTime,
"Components \u269B",
void 0,
errors
));
}
function logRenderPhase(startTime, endTime, lanes, debugTask) {
if (supportsUserTiming && !(endTime <= startTime)) {
var color = (lanes & 738197653) === lanes ? "tertiary-dark" : "primary-dark";
lanes = (lanes & 536870912) === lanes ? "Prepared" : (lanes & 201326741) === lanes ? "Hydrated" : "Render", debugTask ? debugTask.run(
console.timeStamp.bind(
console,
lanes,
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
color
)
) : console.timeStamp(
lanes,
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
color
);
}
}
function logSuspendedRenderPhase(startTime, endTime, lanes, debugTask) {
!supportsUserTiming || endTime <= startTime || (lanes = (lanes & 738197653) === lanes ? "tertiary-dark" : "primary-dark", debugTask ? debugTask.run(
console.timeStamp.bind(
console,
"Prewarm",
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
lanes
)
) : console.timeStamp(
"Prewarm",
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
lanes
));
}
function logSuspendedWithDelayPhase(startTime, endTime, lanes, debugTask) {
!supportsUserTiming || endTime <= startTime || (lanes = (lanes & 738197653) === lanes ? "tertiary-dark" : "primary-dark", debugTask ? debugTask.run(
console.timeStamp.bind(
console,
"Suspended",
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
lanes
)
) : console.timeStamp(
"Suspended",
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
lanes
));
}
function logRecoveredRenderPhase(startTime, endTime, lanes, recoverableErrors, hydrationFailed, debugTask) {
if (supportsUserTiming && !(endTime <= startTime)) {
lanes = [];
for (var i = 0; i < recoverableErrors.length; i++) {
var error = recoverableErrors[i].value;
lanes.push([
"Recoverable Error",
typeof error == "object" && error !== null && typeof error.message == "string" ? String(error.message) : String(error)
]);
}
startTime = {
start: startTime,
end: endTime,
detail: {
devtools: {
color: "primary-dark",
track: currentTrack,
trackGroup: "Scheduler \u269B",
tooltipText: hydrationFailed ? "Hydration Failed" : "Recovered after Error",
properties: lanes
}
}
}, debugTask ? debugTask.run(
performance.measure.bind(performance, "Recovered", startTime)
) : performance.measure("Recovered", startTime);
}
}
function logErroredRenderPhase(startTime, endTime, lanes, debugTask) {
!supportsUserTiming || endTime <= startTime || (debugTask ? debugTask.run(
console.timeStamp.bind(
console,
"Errored",
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
"error"
)
) : console.timeStamp(
"Errored",
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
"error"
));
}
function logSuspendedCommitPhase(startTime, endTime, reason, debugTask) {
!supportsUserTiming || endTime <= startTime || (debugTask ? debugTask.run(
console.timeStamp.bind(
console,
reason,
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
"secondary-light"
)
) : console.timeStamp(
reason,
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
"secondary-light"
));
}
function logCommitErrored(startTime, endTime, errors, passive, debugTask) {
if (supportsUserTiming && !(endTime <= startTime)) {
for (var properties = [], i = 0; i < errors.length; i++) {
var error = errors[i].value;
properties.push([
"Error",
typeof error == "object" && error !== null && typeof error.message == "string" ? String(error.message) : String(error)
]);
}
startTime = {
start: startTime,
end: endTime,
detail: {
devtools: {
color: "error",
track: currentTrack,
trackGroup: "Scheduler \u269B",
tooltipText: passive ? "Remaining Effects Errored" : "Commit Errored",
properties
}
}
}, debugTask ? debugTask.run(
performance.measure.bind(performance, "Errored", startTime)
) : performance.measure("Errored", startTime);
}
}
function disabledLog() {
}
function disableLogs() {
if (disabledDepth === 0) {
prevLog = console.log, prevInfo = console.info, prevWarn = console.warn, prevError = console.error, prevGroup = console.group, prevGroupCollapsed = console.groupCollapsed, prevGroupEnd = console.groupEnd;
var props = {
configurable: !0,
enumerable: !0,
value: disabledLog,
writable: !0
};
Object.defineProperties(console, {
info: props,
log: props,
warn: props,
error: props,
group: props,
groupCollapsed: props,
groupEnd: props
});
}
disabledDepth++;
}
function reenableLogs() {
if (disabledDepth--, disabledDepth === 0) {
var props = { configurable: !0, enumerable: !0, writable: !0 };
Object.defineProperties(console, {
log: assign({}, props, { value: prevLog }),
info: assign({}, props, { value: prevInfo }),
warn: assign({}, props, { value: prevWarn }),
error: assign({}, props, { value: prevError }),
group: assign({}, props, { value: prevGroup }),
groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
groupEnd: assign({}, props, { value: prevGroupEnd })
});
}
0 > disabledDepth && console.error(
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
);
}
function formatOwnerStack(error) {
var prevPrepareStackTrace = Error.prepareStackTrace;
if (Error.prepareStackTrace = void 0, error = error.stack, Error.prepareStackTrace = prevPrepareStackTrace, error.startsWith(`Error: react-stack-top-frame
`) && (error = error.slice(29)), prevPrepareStackTrace = error.indexOf(`
`), prevPrepareStackTrace !== -1 && (error = error.slice(prevPrepareStackTrace + 1)), prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame"), prevPrepareStackTrace !== -1 && (prevPrepareStackTrace = error.lastIndexOf(
`
`,
prevPrepareStackTrace
)), prevPrepareStackTrace !== -1)
error = error.slice(0, prevPrepareStackTrace);
else return "";
return error;
}
function describeBuiltInComponentFrame(name) {
if (prefix === void 0)
try {
throw Error();
} catch (x) {
var match = x.stack.trim().match(/\n( *(at )?)/);
prefix = match && match[1] || "", suffix = -1 < x.stack.indexOf(`
at`) ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : "";
}
return `
` + prefix + name + suffix;
}
function describeNativeComponentFrame(fn, construct) {
if (!fn || reentry) return "";
var frame = componentFrameCache.get(fn);
if (frame !== void 0) return frame;
reentry = !0, frame = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
var previousDispatcher = null;
previousDispatcher = ReactSharedInternals.H, ReactSharedInternals.H = null, disableLogs();
try {
var RunInRootFrame = {
DetermineComponentFrameRoot: function() {
try {
if (construct) {
var Fake = function() {
throw Error();
};
if (Object.defineProperty(Fake.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(Fake, []);
} catch (x) {
var control = x;
}
Reflect.construct(fn, [], Fake);
} else {
try {
Fake.call();
} catch (x$0) {
control = x$0;
}
fn.call(Fake.prototype);
}
} else {
try {
throw Error();
} catch (x$1) {
control = x$1;
}
(Fake = fn()) && typeof Fake.catch == "function" && Fake.catch(function() {
});
}
} catch (sample) {
if (sample && control && typeof sample.stack == "string")
return [sample.stack, control.stack];
}
return [null, null];
}
};
RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
var namePropDescriptor = Object.getOwnPropertyDescriptor(
RunInRootFrame.DetermineComponentFrameRoot,
"name"
);
namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty(
RunInRootFrame.DetermineComponentFrameRoot,
"name",
{ value: "DetermineComponentFrameRoot" }
);
var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1];
if (sampleStack && controlStack) {
var sampleLines = sampleStack.split(`
`), controlLines = controlStack.split(`
`);
for (_RunInRootFrame$Deter = namePropDescriptor = 0; namePropDescriptor < sampleLines.length && !sampleLines[namePropDescriptor].includes(
"DetermineComponentFrameRoot"
); )
namePropDescriptor++;
for (; _RunInRootFrame$Deter < controlLines.length && !controlLines[_RunInRootFrame$Deter].includes(
"DetermineComponentFrameRoot"
); )
_RunInRootFrame$Deter++;
if (namePropDescriptor === sampleLines.length || _RunInRootFrame$Deter === controlLines.length)
for (namePropDescriptor = sampleLines.length - 1, _RunInRootFrame$Deter = controlLines.length - 1; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter && sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]; )
_RunInRootFrame$Deter--;
for (; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; namePropDescriptor--, _RunInRootFrame$Deter--)
if (sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) {
if (namePropDescriptor !== 1 || _RunInRootFrame$Deter !== 1)
do
if (namePropDescriptor--, _RunInRootFrame$Deter--, 0 > _RunInRootFrame$Deter || sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) {
var _frame = `
` + sampleLines[namePropDescriptor].replace(
" at new ",
" at "
);
return fn.displayName && _frame.includes("<anonymous>") && (_frame = _frame.replace("<anonymous>", fn.displayName)), typeof fn == "function" && componentFrameCache.set(fn, _frame), _frame;
}
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
break;
}
}
} finally {
reentry = !1, ReactSharedInternals.H = previousDispatcher, reenableLogs(), Error.prepareStackTrace = frame;
}
return sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(sampleLines) : "", typeof fn == "function" && componentFrameCache.set(fn, sampleLines), sampleLines;
}
function describeFiber(fiber, childFiber) {
switch (fiber.tag) {
case 26:
case 27:
case 5:
return describeBuiltInComponentFrame(fiber.type);
case 16:
return describeBuiltInComponentFrame("Lazy");
case 13:
return fiber.child !== childFiber && childFiber !== null ? describeBuiltInComponentFrame("Suspense Fallback") : describeBuiltInComponentFrame("Suspense");
case 19:
return describeBuiltInComponentFrame("SuspenseList");
case 0:
case 15:
return describeNativeComponentFrame(fiber.type, !1);
case 11:
return describeNativeComponentFrame(fiber.type.render, !1);
case 1:
return describeNativeComponentFrame(fiber.type, !0);
case 31:
return describeBuiltInComponentFrame("Activity");
default:
return "";
}
}
function getStackByFiberInDevAndProd(workInProgress2) {
try {
var info = "", previous = null;
do {
info += describeFiber(workInProgress2, previous);
var debugInfo = workInProgress2._debugInfo;
if (debugInfo)
for (var i = debugInfo.length - 1; 0 <= i; i--) {
var entry = debugInfo[i];
if (typeof entry.name == "string") {
var JSCompiler_temp_const = info;
a: {
var name = entry.name, env2 = entry.env, location = entry.debugLocation;
if (location != null) {
var childStack = formatOwnerStack(location), idx = childStack.lastIndexOf(`
`), lastLine = idx === -1 ? childStack : childStack.slice(idx + 1);
if (lastLine.indexOf(name) !== -1) {
var JSCompiler_inline_result = `
` + lastLine;
break a;
}
}
JSCompiler_inline_result = describeBuiltInComponentFrame(
name + (env2 ? " [" + env2 + "]" : "")
);
}
info = JSCompiler_temp_const + JSCompiler_inline_result;
}
}
previous = workInProgress2, workInProgress2 = workInProgress2.return;
} while (workInProgress2);
return info;
} catch (x) {
return `
Error generating stack: ` + x.message + `
` + x.stack;
}
}
function describeFunctionComponentFrameWithoutLineNumber(fn) {
return (fn = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(fn) : "";
}
function createCapturedValueAtFiber(value, source) {
if (typeof value == "object" && value !== null) {
var existing = CapturedStacks.get(value);
return existing !== void 0 ? existing : (source = {
value,
source,
stack: getStackByFiberInDevAndProd(source)
}, CapturedStacks.set(value, source), source);
}
return {
value,
source,
stack: getStackByFiberInDevAndProd(source)
};
}
function pushTreeFork(workInProgress2, totalChildren) {
warnIfNotHydrating(), forkStack[forkStackIndex++] = treeForkCount, forkStack[forkStackIndex++] = treeForkProvider, treeForkProvider = workInProgress2, treeForkCount = totalChildren;
}
function pushTreeId(workInProgress2, totalChildren, index) {
warnIfNotHydrating(), idStack[idStackIndex++] = treeContextId, idStack[idStackIndex++] = treeContextOverflow, idStack[idStackIndex++] = treeContextProvider, treeContextProvider = workInProgress2;
var baseIdWithLeadingBit = treeContextId;
workInProgress2 = treeContextOverflow;
var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
baseIdWithLeadingBit &= ~(1 << baseLength), index += 1;
var length = 32 - clz32(totalChildren) + baseLength;
if (30 < length) {
var numberOfOverflowBits = baseLength - baseLength % 5;
length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32), baseIdWithLeadingBit >>= numberOfOverflowBits, baseLength -= numberOfOverflowBits, treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = length + workInProgress2;
} else
treeContextId = 1 << length | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress2;
}
function pushMaterializedTreeId(workInProgress2) {
warnIfNotHydrating(), workInProgress2.return !== null && (pushTreeFork(workInProgress2, 1), pushTreeId(workInProgress2, 1, 0));
}
function popTreeContext(workInProgress2) {
for (; workInProgress2 === treeForkProvider; )
treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, treeForkCount = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null;
for (; workInProgress2 === treeContextProvider; )
treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextOverflow = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextId = idStack[--idStackIndex], idStack[idStackIndex] = null;
}
function getSuspendedTreeContext() {
return warnIfNotHydrating(), treeContextProvider !== null ? { id: treeContextId, overflow: treeContextOverflow } : null;
}
function restoreSuspendedTreeContext(workInProgress2, suspendedContext) {
warnIfNotHydrating(), idStack[idStackIndex++] = treeContextId, idStack[idStackIndex++] = treeContextOverflow, idStack[idStackIndex++] = treeContextProvider, treeContextId = suspendedContext.id, treeContextOverflow = suspendedContext.overflow, treeContextProvider = workInProgress2;
}
function warnIfNotHydrating() {
isHydrating || console.error(
"Expected to be hydrating. This is a bug in React. Please file an issue."
);
}
function requiredContext(c) {
return c === null && console.error(
"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."
), c;
}
function pushHostContainer(fiber, nextRootInstance) {
push(rootInstanceStackCursor, nextRootInstance, fiber), push(contextFiberStackCursor, fiber, fiber), push(contextStackCursor, null, fiber), nextRootInstance = getRootHostContext(nextRootInstance), pop(contextStackCursor, fiber), push(contextStackCursor, nextRootInstance, fiber);
}
function popHostContainer(fiber) {
pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber), pop(rootInstanceStackCursor, fiber);
}
function getHostContext() {
return requiredContext(contextStackCursor.current);
}
function pushHostContext(fiber) {
fiber.memoizedState !== null && push(hostTransitionProviderCursor, fiber, fiber);
var context = requiredContext(contextStackCursor.current), nextContext = getChildHostContext(context, fiber.type);
context !== nextContext && (push(contextFiberStackCursor, fiber, fiber), push(contextStackCursor, nextContext, fiber));
}
function popHostContext(fiber) {
contextFiberStackCursor.current === fiber && (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber)), hostTransitionProviderCursor.current === fiber && (pop(hostTransitionProviderCursor, fiber), isPrimaryRenderer ? HostTransitionContext._currentValue = NotPendingTransition : HostTransitionContext._currentValue2 = NotPendingTransition);
}
function findNotableNode(node, indent) {
return node.serverProps === void 0 && node.serverTail.length === 0 && node.children.length === 1 && 3 < node.distanceFromLeaf && node.distanceFromLeaf > 15 - indent ? findNotableNode(node.children[0], indent) : node;
}
function indentation(indent) {
return " " + " ".repeat(indent);
}
function added(indent) {
return "+ " + " ".repeat(indent);
}
function removed(indent) {
return "- " + " ".repeat(indent);
}
function describeFiberType(fiber) {
switch (fiber.tag) {
case 26:
case 27:
case 5:
return fiber.type;
case 16:
return "Lazy";
case 31:
return "Activity";
case 13:
return "Suspense";
case 19:
return "SuspenseList";
case 0:
case 15:
return fiber = fiber.type, fiber.displayName || fiber.name || null;
case 11:
return fiber = fiber.type.render, fiber.displayName || fiber.name || null;
case 1:
return fiber = fiber.type, fiber.displayName || fiber.name || null;
default:
return null;
}
}
function describeTextNode(content, maxLength) {
return needsEscaping.test(content) ? (content = JSON.stringify(content), content.length > maxLength - 2 ? 8 > maxLength ? '{"..."}' : "{" + content.slice(0, maxLength - 7) + '..."}' : "{" + content + "}") : content.length > maxLength ? 5 > maxLength ? '{"..."}' : content.slice(0, maxLength - 3) + "..." : content;
}
function describeTextDiff(clientText, serverProps, indent) {
var maxLength = 120 - 2 * indent;
if (serverProps === null)
return added(indent) + describeTextNode(clientText, maxLength) + `
`;
if (typeof serverProps == "string") {
for (var firstDiff = 0; firstDiff < serverProps.length && firstDiff < clientText.length && serverProps.charCodeAt(firstDiff) === clientText.charCodeAt(firstDiff); firstDiff++) ;
return firstDiff > maxLength - 8 && 10 < firstDiff && (clientText = "..." + clientText.slice(firstDiff - 8), serverProps = "..." + serverProps.slice(firstDiff - 8)), added(indent) + describeTextNode(clientText, maxLength) + `
` + removed(indent) + describeTextNode(serverProps, maxLength) + `
`;
}
return indentation(indent) + describeTextNode(clientText, maxLength) + `
`;
}
function objectName(object) {
return Object.prototype.toString.call(object).replace(/^\[object (.*)\]$/, function(m, p0) {
return p0;
});
}
function describeValue(value, maxLength) {
switch (typeof value) {
case "string":
return value = JSON.stringify(value), value.length > maxLength ? 5 > maxLength ? '"..."' : value.slice(0, maxLength - 4) + '..."' : value;
case "object":
if (value === null) return "null";
if (isArrayImpl(value)) return "[...]";
if (value.$$typeof === REACT_ELEMENT_TYPE)
return (maxLength = getComponentNameFromType(value.type)) ? "<" + maxLength + ">" : "<...>";
var name = objectName(value);
if (name === "Object") {
name = "", maxLength -= 2;
for (var propName in value)
if (value.hasOwnProperty(propName)) {
var jsonPropName = JSON.stringify(propName);
if (jsonPropName !== '"' + propName + '"' && (propName = jsonPropName), maxLength -= propName.length - 2, jsonPropName = describeValue(
value[propName],
15 > maxLength ? maxLength : 15
), maxLength -= jsonPropName.length, 0 > maxLength) {
name += name === "" ? "..." : ", ...";
break;
}
name += (name === "" ? "" : ",") + propName + ":" + jsonPropName;
}
return "{" + name + "}";
}
return name;
case "function":
return (maxLength = value.displayName || value.name) ? "function " + maxLength : "function";
default:
return String(value);
}
}
function describePropValue(value, maxLength) {
return typeof value != "string" || needsEscaping.test(value) ? "{" + describeValue(value, maxLength - 2) + "}" : value.length > maxLength - 2 ? 5 > maxLength ? '"..."' : '"' + value.slice(0, maxLength - 5) + '..."' : '"' + value + '"';
}
function describeExpandedElement(type, props, rowPrefix) {
var remainingRowLength = 120 - rowPrefix.length - type.length, properties = [], propName;
for (propName in props)
if (props.hasOwnProperty(propName) && propName !== "children") {
var propValue = describePropValue(
props[propName],
120 - rowPrefix.length - propName.length - 1
);
remainingRowLength -= propName.length + propValue.length + 2, properties.push(propName + "=" + propValue);
}
return properties.length === 0 ? rowPrefix + "<" + type + `>
` : 0 < remainingRowLength ? rowPrefix + "<" + type + " " + properties.join(" ") + `>
` : rowPrefix + "<" + type + `
` + rowPrefix + " " + properties.join(`
` + rowPrefix + " ") + `
` + rowPrefix + `>
`;
}
function describePropertiesDiff(clientObject, serverObject, indent) {
var properties = "", remainingServerProperties = assign({}, serverObject), propName;
for (propName in clientObject)
if (clientObject.hasOwnProperty(propName)) {
delete remainingServerProperties[propName];
var maxLength = 120 - 2 * indent - propName.length - 2, clientPropValue = describeValue(clientObject[propName], maxLength);
serverObject.hasOwnProperty(propName) ? (maxLength = describeValue(serverObject[propName], maxLength), properties += added(indent) + propName + ": " + clientPropValue + `
`, properties += removed(indent) + propName + ": " + maxLength + `
`) : properties += added(indent) + propName + ": " + clientPropValue + `
`;
}
for (var _propName in remainingServerProperties)
remainingServerProperties.hasOwnProperty(_propName) && (clientObject = describeValue(
remainingServerProperties[_propName],
120 - 2 * indent - _propName.length - 2
), properties += removed(indent) + _propName + ": " + clientObject + `
`);
return properties;
}
function describeElementDiff(type, clientProps, serverProps, indent) {
var content = "", serverPropNames = /* @__PURE__ */ new Map();
for (propName$jscomp$0 in serverProps)
serverProps.hasOwnProperty(propName$jscomp$0) && serverPropNames.set(
propName$jscomp$0.toLowerCase(),
propName$jscomp$0
);
if (serverPropNames.size === 1 && serverPropNames.has("children"))
content += describeExpandedElement(
type,
clientProps,
indentation(indent)
);
else {
for (var _propName2 in clientProps)
if (clientProps.hasOwnProperty(_propName2) && _propName2 !== "children") {
var maxLength$jscomp$0 = 120 - 2 * (indent + 1) - _propName2.length - 1, serverPropName = serverPropNames.get(_propName2.toLowerCase());
if (serverPropName !== void 0) {
serverPropNames.delete(_propName2.toLowerCase());
var propName$jscomp$0 = clientProps[_propName2];
serverPropName = serverProps[serverPropName];
var clientPropValue = describePropValue(
propName$jscomp$0,
maxLength$jscomp$0
);
maxLength$jscomp$0 = describePropValue(
serverPropName,
maxLength$jscomp$0
), typeof propName$jscomp$0 == "object" && propName$jscomp$0 !== null && typeof serverPropName == "object" && serverPropName !== null && objectName(propName$jscomp$0) === "Object" && objectName(serverPropName) === "Object" && (2 < Object.keys(propName$jscomp$0).length || 2 < Object.keys(serverPropName).length || -1 < clientPropValue.indexOf("...") || -1 < maxLength$jscomp$0.indexOf("...")) ? content += indentation(indent + 1) + _propName2 + `={{
` + describePropertiesDiff(
propName$jscomp$0,
serverPropName,
indent + 2
) + indentation(indent + 1) + `}}
` : (content += added(indent + 1) + _propName2 + "=" + clientPropValue + `
`, content += removed(indent + 1) + _propName2 + "=" + maxLength$jscomp$0 + `
`);
} else
content += indentation(indent + 1) + _propName2 + "=" + describePropValue(clientProps[_propName2], maxLength$jscomp$0) + `
`;
}
serverPropNames.forEach(function(propName) {
if (propName !== "children") {
var maxLength = 120 - 2 * (indent + 1) - propName.length - 1;
content += removed(indent + 1) + propName + "=" + describePropValue(serverProps[propName], maxLength) + `
`;
}
}), content = content === "" ? indentation(indent) + "<" + type + `>
` : indentation(indent) + "<" + type + `
` + content + indentation(indent) + `>
`;
}
return type = serverProps.children, clientProps = clientProps.children, typeof type == "string" || typeof type == "number" || typeof type == "bigint" ? (serverPropNames = "", (typeof clientProps == "string" || typeof clientProps == "number" || typeof clientProps == "bigint") && (serverPropNames = "" + clientProps), content += describeTextDiff(serverPropNames, "" + type, indent + 1)) : (typeof clientProps == "string" || typeof clientProps == "number" || typeof clientProps == "bigint") && (content = type == null ? content + describeTextDiff("" + clientProps, null, indent + 1) : content + describeTextDiff("" + clientProps, void 0, indent + 1)), content;
}
function describeSiblingFiber(fiber, indent) {
var type = describeFiberType(fiber);
if (type === null) {
for (type = "", fiber = fiber.child; fiber; )
type += describeSiblingFiber(fiber, indent), fiber = fiber.sibling;
return type;
}
return indentation(indent) + "<" + type + `>
`;
}
function describeNode(node, indent) {
var skipToNode = findNotableNode(node, indent);
if (skipToNode !== node && (node.children.length !== 1 || node.children[0] !== skipToNode))
return indentation(indent) + `...
` + describeNode(skipToNode, indent + 1);
skipToNode = "";
var debugInfo = node.fiber._debugInfo;
if (debugInfo)
for (var i = 0; i < debugInfo.length; i++) {
var serverComponentName = debugInfo[i].name;
typeof serverComponentName == "string" && (skipToNode += indentation(indent) + "<" + serverComponentName + `>
`, indent++);
}
if (debugInfo = "", i = node.fiber.pendingProps, node.fiber.tag === 6)
debugInfo = describeTextDiff(i, node.serverProps, indent), indent++;
else if (serverComponentName = describeFiberType(node.fiber), serverComponentName !== null)
if (node.serverProps === void 0) {
debugInfo = indent;
var maxLength = 120 - 2 * debugInfo - serverComponentName.length - 2, content = "";
for (propName in i)
if (i.hasOwnProperty(propName) && propName !== "children") {
var propValue = describePropValue(i[propName], 15);
if (maxLength -= propName.length + propValue.length + 2, 0 > maxLength) {
content += " ...";
break;
}
content += " " + propName + "=" + propValue;
}
debugInfo = indentation(debugInfo) + "<" + serverComponentName + content + `>
`, indent++;
} else
node.serverProps === null ? (debugInfo = describeExpandedElement(
serverComponentName,
i,
added(indent)
), indent++) : typeof node.serverProps == "string" ? console.error(
"Should not have matched a non HostText fiber to a Text node. This is a bug in React."
) : (debugInfo = describeElementDiff(
serverComponentName,
i,
node.serverProps,
indent
), indent++);
var propName = "";
for (i = node.fiber.child, serverComponentName = 0; i && serverComponentName < node.children.length; )
maxLength = node.children[serverComponentName], maxLength.fiber === i ? (propName += describeNode(maxLength, indent), serverComponentName++) : propName += describeSiblingFiber(i, indent), i = i.sibling;
for (i && 0 < node.children.length && (propName += indentation(indent) + `...
`), i = node.serverTail, node.serverProps === null && indent--, node = 0; node < i.length; node++)
serverComponentName = i[node], propName = typeof serverComponentName == "string" ? propName + (removed(indent) + describeTextNode(serverComponentName, 120 - 2 * indent) + `
`) : propName + describeExpandedElement(
serverComponentName.type,
serverComponentName.props,
removed(indent)
);
return skipToNode + debugInfo + propName;
}
function describeDiff(rootNode) {
try {
return `
` + describeNode(rootNode, 0);
} catch {
return "";
}
}
function getCurrentFiberStackInDev() {
if (current === null) return "";
var workInProgress2 = current;
try {
var info = "";
switch (workInProgress2.tag === 6 && (workInProgress2 = workInProgress2.return), workInProgress2.tag) {
case 26:
case 27:
case 5:
info += describeBuiltInComponentFrame(workInProgress2.type);
break;
case 13:
info += describeBuiltInComponentFrame("Suspense");
break;
case 19:
info += describeBuiltInComponentFrame("SuspenseList");
break;
case 31:
info += describeBuiltInComponentFrame("Activity");
break;
case 30:
case 0:
case 15:
case 1:
workInProgress2._debugOwner || info !== "" || (info += describeFunctionComponentFrameWithoutLineNumber(
workInProgress2.type
));
break;
case 11:
workInProgress2._debugOwner || info !== "" || (info += describeFunctionComponentFrameWithoutLineNumber(
workInProgress2.type.render
));
}
for (; workInProgress2; )
if (typeof workInProgress2.tag == "number") {
var fiber = workInProgress2;
workInProgress2 = fiber._debugOwner;
var debugStack = fiber._debugStack;
if (workInProgress2 && debugStack) {
var formattedStack = formatOwnerStack(debugStack);
formattedStack !== "" && (info += `
` + formattedStack);
}
} else if (workInProgress2.debugStack != null) {
var ownerStack = workInProgress2.debugStack;
(workInProgress2 = workInProgress2.owner) && ownerStack && (info += `
` + formatOwnerStack(ownerStack));
} else break;
var JSCompiler_inline_result = info;
} catch (x) {
JSCompiler_inline_result = `
Error generating stack: ` + x.message + `
` + x.stack;
}
return JSCompiler_inline_result;
}
function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) {
var previousFiber = current;
setCurrentFiber(fiber);
try {
return fiber !== null && fiber._debugTask ? fiber._debugTask.run(
callback.bind(null, arg0, arg1, arg2, arg3, arg4)
) : callback(arg0, arg1, arg2, arg3, arg4);
} finally {
setCurrentFiber(previousFiber);
}
throw Error(
"runWithFiberInDEV should never be called in production. This is a bug in React."
);
}
function setCurrentFiber(fiber) {
ReactSharedInternals.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev, isRendering = !1, current = fiber;
}
function buildHydrationDiffNode(fiber, distanceFromLeaf) {
if (fiber.return === null) {
if (hydrationDiffRootDEV === null)
hydrationDiffRootDEV = {
fiber,
children: [],
serverProps: void 0,
serverTail: [],
distanceFromLeaf
};
else {
if (hydrationDiffRootDEV.fiber !== fiber)
throw Error(
"Saw multiple hydration diff roots in a pass. This is a bug in React."
);
hydrationDiffRootDEV.distanceFromLeaf > distanceFromLeaf && (hydrationDiffRootDEV.distanceFromLeaf = distanceFromLeaf);
}
return hydrationDiffRootDEV;
}
var siblings = buildHydrationDiffNode(
fiber.return,
distanceFromLeaf + 1
).children;
return 0 < siblings.length && siblings[siblings.length - 1].fiber === fiber ? (siblings = siblings[siblings.length - 1], siblings.distanceFromLeaf > distanceFromLeaf && (siblings.distanceFromLeaf = distanceFromLeaf), siblings) : (distanceFromLeaf = {
fiber,
children: [],
serverProps: void 0,
serverTail: [],
distanceFromLeaf
}, siblings.push(distanceFromLeaf), distanceFromLeaf);
}
function warnIfHydrating() {
isHydrating && console.error(
"We should not be hydrating here. This is a bug in React. Please file a bug."
);
}
function warnNonHydratedInstance(fiber, rejectedCandidate) {
didSuspendOrErrorDEV || (fiber = buildHydrationDiffNode(fiber, 0), fiber.serverProps = null, rejectedCandidate !== null && (rejectedCandidate = describeHydratableInstanceForDevWarnings(rejectedCandidate), fiber.serverTail.push(rejectedCandidate)));
}
function throwOnHydrationMismatch(fiber) {
var fromText = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : !1, diff2 = "", diffRoot = hydrationDiffRootDEV;
throw diffRoot !== null && (hydrationDiffRootDEV = null, diff2 = describeDiff(diffRoot)), queueHydrationError(
createCapturedValueAtFiber(
Error(
"Hydration failed because the server rendered " + (fromText ? "text" : "HTML") + ` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
- A server/client branch \`if (typeof window !== 'undefined')\`.
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
https://react.dev/link/hydration-mismatch` + diff2
),
fiber
)
), HydrationMismatchException;
}
function prepareToHydrateHostInstance(fiber, hostContext) {
if (!supportsHydration)
throw Error(
"Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."
);
hydrateInstance(
fiber.stateNode,
fiber.type,
fiber.memoizedProps,
hostContext,
fiber
) || throwOnHydrationMismatch(fiber, !0);
}
function popToNextHostParent(fiber) {
for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
switch (hydrationParentFiber.tag) {
case 5:
case 31:
case 13:
rootOrSingletonContext = !1;
return;
case 27:
case 3:
rootOrSingletonContext = !0;
return;
default:
hydrationParentFiber = hydrationParentFiber.return;
}
}
function popHydrationState(fiber) {
if (!supportsHydration || fiber !== hydrationParentFiber) return !1;
if (!isHydrating)
return popToNextHostParent(fiber), isHydrating = !0, !1;
var tag = fiber.tag;
if (supportsSingletons ? tag !== 3 && tag !== 27 && (tag !== 5 || shouldDeleteUnhydratedTailInstances(fiber.type) && !shouldSetTextContent(fiber.type, fiber.memoizedProps)) && nextHydratableInstance && (warnIfUnhydratedTailNodes(fiber), throwOnHydrationMismatch(fiber)) : tag !== 3 && (tag !== 5 || shouldDeleteUnhydratedTailInstances(fiber.type) && !shouldSetTextContent(fiber.type, fiber.memoizedProps)) && nextHydratableInstance && (warnIfUnhydratedTailNodes(fiber), throwOnHydrationMismatch(fiber)), popToNextHostParent(fiber), tag === 13) {
if (!supportsHydration)
throw Error(
"Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."
);
if (fiber = fiber.memoizedState, fiber = fiber !== null ? fiber.dehydrated : null, !fiber)
throw Error(
"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."
);
nextHydratableInstance = getNextHydratableInstanceAfterSuspenseInstance(fiber);
} else if (tag === 31) {
if (fiber = fiber.memoizedState, fiber = fiber !== null ? fiber.dehydrated : null, !fiber)
throw Error(
"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."
);
nextHydratableInstance = getNextHydratableInstanceAfterActivityInstance(fiber);
} else
nextHydratableInstance = supportsSingletons && tag === 27 ? getNextHydratableSiblingAfterSingleton(
fiber.type,
nextHydratableInstance
) : hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
return !0;
}
function warnIfUnhydratedTailNodes(fiber) {
for (var nextInstance = nextHydratableInstance; nextInstance; ) {
var diffNode = buildHydrationDiffNode(fiber, 0), description = describeHydratableInstanceForDevWarnings(nextInstance);
diffNode.serverTail.push(description), nextInstance = description.type === "Suspense" ? getNextHydratableInstanceAfterSuspenseInstance(nextInstance) : getNextHydratableSibling(nextInstance);
}
}
function resetHydrationState() {
supportsHydration && (nextHydratableInstance = hydrationParentFiber = null, didSuspendOrErrorDEV = isHydrating = !1);
}
function upgradeHydrationErrorsToRecoverable() {
var queuedErrors = hydrationErrors;
return queuedErrors !== null && (workInProgressRootRecoverableErrors === null ? workInProgressRootRecoverableErrors = queuedErrors : workInProgressRootRecoverableErrors.push.apply(
workInProgressRootRecoverableErrors,
queuedErrors
), hydrationErrors = null), queuedErrors;
}
function queueHydrationError(error) {
hydrationErrors === null ? hydrationErrors = [error] : hydrationErrors.push(error);
}
function emitPendingHydrationWarnings() {
var diffRoot = hydrationDiffRootDEV;
if (diffRoot !== null) {
hydrationDiffRootDEV = null;
for (var diff2 = describeDiff(diffRoot); 0 < diffRoot.children.length; )
diffRoot = diffRoot.children[0];
runWithFiberInDEV(diffRoot.fiber, function() {
console.error(
`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
- A server/client branch \`if (typeof window !== 'undefined')\`.
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
%s%s`,
"https://react.dev/link/hydration-mismatch",
diff2
);
});
}
}
function resetContextDependencies() {
lastContextDependency = currentlyRenderingFiber$1 = null, isDisallowedContextReadInDEV = !1;
}
function pushProvider(providerFiber, context, nextValue) {
isPrimaryRenderer ? (push(valueCursor, context._currentValue, providerFiber), context._currentValue = nextValue, push(rendererCursorDEV, context._currentRenderer, providerFiber), context._currentRenderer !== void 0 && context._currentRenderer !== null && context._currentRenderer !== rendererSigil && console.error(
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
), context._currentRenderer = rendererSigil) : (push(valueCursor, context._currentValue2, providerFiber), context._currentValue2 = nextValue, push(renderer2CursorDEV, context._currentRenderer2, providerFiber), context._currentRenderer2 !== void 0 && context._currentRenderer2 !== null && context._currentRenderer2 !== rendererSigil && console.error(
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
), context._currentRenderer2 = rendererSigil);
}
function popProvider(context, providerFiber) {
var currentValue = valueCursor.current;
isPrimaryRenderer ? (context._currentValue = currentValue, currentValue = rendererCursorDEV.current, pop(rendererCursorDEV, providerFiber), context._currentRenderer = currentValue) : (context._currentValue2 = currentValue, currentValue = renderer2CursorDEV.current, pop(renderer2CursorDEV, providerFiber), context._currentRenderer2 = currentValue), pop(valueCursor, providerFiber);
}
function scheduleContextWorkOnParentPath(parent, renderLanes2, propagationRoot) {
for (; parent !== null; ) {
var alternate = parent.alternate;
if ((parent.childLanes & renderLanes2) !== renderLanes2 ? (parent.childLanes |= renderLanes2, alternate !== null && (alternate.childLanes |= renderLanes2)) : alternate !== null && (alternate.childLanes & renderLanes2) !== renderLanes2 && (alternate.childLanes |= renderLanes2), parent === propagationRoot) break;
parent = parent.return;
}
parent !== propagationRoot && console.error(
"Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue."
);
}
function propagateContextChanges(workInProgress2, contexts, renderLanes2, forcePropagateEntireTree) {
var fiber = workInProgress2.child;
for (fiber !== null && (fiber.return = workInProgress2); fiber !== null; ) {
var list = fiber.dependencies;
if (list !== null) {
var nextFiber = fiber.child;
list = list.firstContext;
a: for (; list !== null; ) {
var dependency = list;
list = fiber;
for (var i = 0; i < contexts.length; i++)
if (dependency.context === contexts[i]) {
list.lanes |= renderLanes2, dependency = list.alternate, dependency !== null && (dependency.lanes |= renderLanes2), scheduleContextWorkOnParentPath(
list.return,
renderLanes2,
workInProgress2
), forcePropagateEntireTree || (nextFiber = null);
break a;
}
list = dependency.next;
}
} else if (fiber.tag === 18) {
if (nextFiber = fiber.return, nextFiber === null)
throw Error(
"We just came from a parent so we must have had a parent. This is a bug in React."
);
nextFiber.lanes |= renderLanes2, list = nextFiber.alternate, list !== null && (list.lanes |= renderLanes2), scheduleContextWorkOnParentPath(
nextFiber,
renderLanes2,
workInProgress2
), nextFiber = null;
} else nextFiber = fiber.child;
if (nextFiber !== null) nextFiber.return = fiber;
else
for (nextFiber = fiber; nextFiber !== null; ) {
if (nextFiber === workInProgress2) {
nextFiber = null;
break;
}
if (fiber = nextFiber.sibling, fiber !== null) {
fiber.return = nextFiber.return, nextFiber = fiber;
break;
}
nextFiber = nextFiber.return;
}
fiber = nextFiber;
}
}
function propagateParentContextChanges(current2, workInProgress2, renderLanes2, forcePropagateEntireTree) {
current2 = null;
for (var parent = workInProgress2, isInsidePropagationBailout = !1; parent !== null; ) {
if (!isInsidePropagationBailout) {
if ((parent.flags & 524288) !== 0) isInsidePropagationBailout = !0;
else if ((parent.flags & 262144) !== 0) break;
}
if (parent.tag === 10) {
var currentParent = parent.alternate;
if (currentParent === null)
throw Error("Should have a current fiber. This is a bug in React.");
if (currentParent = currentParent.memoizedProps, currentParent !== null) {
var context = parent.type;
objectIs(parent.pendingProps.value, currentParent.value) || (current2 !== null ? current2.push(context) : current2 = [context]);
}
} else if (parent === hostTransitionProviderCursor.current) {
if (currentParent = parent.alternate, currentParent === null)
throw Error("Should have a current fiber. This is a bug in React.");
currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (current2 !== null ? current2.push(HostTransitionContext) : current2 = [HostTransitionContext]);
}
parent = parent.return;
}
current2 !== null && propagateContextChanges(
workInProgress2,
current2,
renderLanes2,
forcePropagateEntireTree
), workInProgress2.flags |= 262144;
}
function checkIfContextChanged(currentDependencies) {
for (currentDependencies = currentDependencies.firstContext; currentDependencies !== null; ) {
var context = currentDependencies.context;
if (!objectIs(
isPrimaryRenderer ? context._currentValue : context._currentValue2,
currentDependencies.memoizedValue
))
return !0;
currentDependencies = currentDependencies.next;
}
return !1;
}
function prepareToReadContext(workInProgress2) {
currentlyRenderingFiber$1 = workInProgress2, lastContextDependency = null, workInProgress2 = workInProgress2.dependencies, workInProgress2 !== null && (workInProgress2.firstContext = null);
}
function readContext(context) {
return isDisallowedContextReadInDEV && console.error(
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."
), readContextForConsumer(currentlyRenderingFiber$1, context);
}
function readContextDuringReconciliation(consumer, context) {
return currentlyRenderingFiber$1 === null && prepareToReadContext(consumer), readContextForConsumer(consumer, context);
}
function readContextForConsumer(consumer, context) {
var value = isPrimaryRenderer ? context._currentValue : context._currentValue2;
if (context = { context, memoizedValue: value, next: null }, lastContextDependency === null) {
if (consumer === null)
throw Error(
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."
);
lastContextDependency = context, consumer.dependencies = {
lanes: 0,
firstContext: context,
_debugThenableState: null
}, consumer.flags |= 524288;
} else lastContextDependency = lastContextDependency.next = context;
return value;
}
function createCache() {
return {
controller: new AbortControllerLocal(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
function retainCache(cache3) {
cache3.controller.signal.aborted && console.warn(
"A cache instance was retained after it was already freed. This likely indicates a bug in React."
), cache3.refCount++;
}
function releaseCache(cache3) {
cache3.refCount--, 0 > cache3.refCount && console.warn(
"A cache instance was released after it was already freed. This likely indicates a bug in React."
), cache3.refCount === 0 && scheduleCallback$2(NormalPriority, function() {
cache3.controller.abort();
});
}
function startUpdateTimerByLane(lane, method, fiber) {
(lane & 127) !== 0 ? 0 > blockingUpdateTime && (blockingUpdateTime = now(), blockingUpdateTask = createTask(method), blockingUpdateMethodName = method, fiber != null && (blockingUpdateComponentName = getComponentNameFromFiber(fiber)), isAlreadyRendering() && (componentEffectSpawnedUpdate = !0, blockingUpdateType = 1), lane = resolveEventTimeStamp(), method = resolveEventType2(), lane !== blockingEventRepeatTime || method !== blockingEventType ? blockingEventRepeatTime = -1.1 : method !== null && (blockingUpdateType = 1), blockingEventTime = lane, blockingEventType = method) : (lane & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionUpdateTime = now(), transitionUpdateTask = createTask(method), transitionUpdateMethodName = method, fiber != null && (transitionUpdateComponentName = getComponentNameFromFiber(fiber)), 0 > transitionStartTime) && (lane = resolveEventTimeStamp(), method = resolveEventType2(), (lane !== transitionEventRepeatTime || method !== transitionEventType) && (transitionEventRepeatTime = -1.1), transitionEventTime = lane, transitionEventType = method);
}
function startHostActionTimer(fiber) {
if (0 > blockingUpdateTime) {
blockingUpdateTime = now(), blockingUpdateTask = fiber._debugTask != null ? fiber._debugTask : null, isAlreadyRendering() && (blockingUpdateType = 1);
var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType2();
newEventTime !== blockingEventRepeatTime || newEventType !== blockingEventType ? blockingEventRepeatTime = -1.1 : newEventType !== null && (blockingUpdateType = 1), blockingEventTime = newEventTime, blockingEventType = newEventType;
}
0 > transitionUpdateTime && (transitionUpdateTime = now(), transitionUpdateTask = fiber._debugTask != null ? fiber._debugTask : null, 0 > transitionStartTime) && (fiber = resolveEventTimeStamp(), newEventTime = resolveEventType2(), (fiber !== transitionEventRepeatTime || newEventTime !== transitionEventType) && (transitionEventRepeatTime = -1.1), transitionEventTime = fiber, transitionEventType = newEventTime);
}
function pushNestedEffectDurations() {
var prevEffectDuration = profilerEffectDuration;
return profilerEffectDuration = 0, prevEffectDuration;
}
function popNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
return profilerEffectDuration = prevEffectDuration, elapsedTime;
}
function bubbleNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
return profilerEffectDuration += prevEffectDuration, elapsedTime;
}
function resetComponentEffectTimers() {
componentEffectEndTime = componentEffectStartTime = -1.1;
}
function pushComponentEffectStart() {
var prevEffectStart = componentEffectStartTime;
return componentEffectStartTime = -1.1, prevEffectStart;
}
function popComponentEffectStart(prevEffectStart) {
0 <= prevEffectStart && (componentEffectStartTime = prevEffectStart);
}
function pushComponentEffectDuration() {
var prevEffectDuration = componentEffectDuration;
return componentEffectDuration = -0, prevEffectDuration;
}
function popComponentEffectDuration(prevEffectDuration) {
0 <= prevEffectDuration && (componentEffectDuration = prevEffectDuration);
}
function pushComponentEffectErrors() {
var prevErrors = componentEffectErrors;
return componentEffectErrors = null, prevErrors;
}
function pushComponentEffectDidSpawnUpdate() {
var prev = componentEffectSpawnedUpdate;
return componentEffectSpawnedUpdate = !1, prev;
}
function startProfilerTimer(fiber) {
profilerStartTime = now(), 0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
}
function stopProfilerTimerIfRunningAndRecordDuration(fiber) {
if (0 <= profilerStartTime) {
var elapsedTime = now() - profilerStartTime;
fiber.actualDuration += elapsedTime, fiber.selfBaseDuration = elapsedTime, profilerStartTime = -1;
}
}
function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber) {
if (0 <= profilerStartTime) {
var elapsedTime = now() - profilerStartTime;
fiber.actualDuration += elapsedTime, profilerStartTime = -1;
}
}
function recordEffectDuration() {
if (0 <= profilerStartTime) {
var endTime = now(), elapsedTime = endTime - profilerStartTime;
profilerStartTime = -1, profilerEffectDuration += elapsedTime, componentEffectDuration += elapsedTime, componentEffectEndTime = endTime;
}
}
function recordEffectError(errorInfo) {
componentEffectErrors === null && (componentEffectErrors = []), componentEffectErrors.push(errorInfo), commitErrors === null && (commitErrors = []), commitErrors.push(errorInfo);
}
function startEffectTimer() {
profilerStartTime = now(), 0 > componentEffectStartTime && (componentEffectStartTime = profilerStartTime);
}
function transferActualDuration(fiber) {
for (var child = fiber.child; child; )
fiber.actualDuration += child.actualDuration, child = child.sibling;
}
function noop$1() {
}
function ensureRootIsScheduled(root) {
root !== lastScheduledRoot && root.next === null && (lastScheduledRoot === null ? firstScheduledRoot = lastScheduledRoot = root : lastScheduledRoot = lastScheduledRoot.next = root), mightHavePendingSyncWork = !0, ReactSharedInternals.actQueue !== null ? didScheduleMicrotask_act || (didScheduleMicrotask_act = !0, scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || (didScheduleMicrotask = !0, scheduleImmediateRootScheduleTask());
}
function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
if (!isFlushingWork && mightHavePendingSyncWork) {
isFlushingWork = !0;
do
for (var didPerformSomeWork = !1, root = firstScheduledRoot; root !== null; ) {
if (!onlyLegacy)
if (syncTransitionLanes !== 0) {
var pendingLanes = root.pendingLanes;
if (pendingLanes === 0) var nextLanes = 0;
else {
var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes;
nextLanes = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1, nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes), nextLanes = nextLanes & 201326741 ? nextLanes & 201326741 | 1 : nextLanes ? nextLanes | 2 : 0;
}
nextLanes !== 0 && (didPerformSomeWork = !0, performSyncWorkOnRoot(root, nextLanes));
} else
nextLanes = workInProgressRootRenderLanes, nextLanes = getNextLanes(
root,
root === workInProgressRoot ? nextLanes : 0,
root.cancelPendingCommit !== null || root.timeoutHandle !== noTimeout
), (nextLanes & 3) === 0 || checkIfRootIsPrerendering(root, nextLanes) || (didPerformSomeWork = !0, performSyncWorkOnRoot(root, nextLanes));
root = root.next;
}
while (didPerformSomeWork);
isFlushingWork = !1;
}
}
function processRootScheduleInImmediateTask() {
trackSchedulerEvent(), processRootScheduleInMicrotask();
}
function processRootScheduleInMicrotask() {
mightHavePendingSyncWork = didScheduleMicrotask_act = didScheduleMicrotask = !1;
var syncTransitionLanes = 0;
currentEventTransitionLane !== 0 && shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane);
for (var currentTime2 = now$1(), prev = null, root = firstScheduledRoot; root !== null; ) {
var next = root.next, nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime2);
nextLanes === 0 ? (root.next = null, prev === null ? firstScheduledRoot = next : prev.next = next, next === null && (lastScheduledRoot = prev)) : (prev = root, (syncTransitionLanes !== 0 || (nextLanes & 3) !== 0) && (mightHavePendingSyncWork = !0)), root = next;
}
pendingEffectsStatus !== NO_PENDING_EFFECTS && pendingEffectsStatus !== PENDING_PASSIVE_PHASE || flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1), currentEventTransitionLane !== 0 && (currentEventTransitionLane = 0);
}
function scheduleTaskForRootDuringMicrotask(root, currentTime2) {
for (var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes & -62914561; 0 < lanes; ) {
var index = 31 - clz32(lanes), lane = 1 << index, expirationTime = expirationTimes[index];
expirationTime === -1 ? ((lane & suspendedLanes) === 0 || (lane & pingedLanes) !== 0) && (expirationTimes[index] = computeExpirationTime(lane, currentTime2)) : expirationTime <= currentTime2 && (root.expiredLanes |= lane), lanes &= ~lane;
}
if (currentTime2 = workInProgressRoot, suspendedLanes = workInProgressRootRenderLanes, suspendedLanes = getNextLanes(
root,
root === currentTime2 ? suspendedLanes : 0,
root.cancelPendingCommit !== null || root.timeoutHandle !== noTimeout
), pingedLanes = root.callbackNode, suspendedLanes === 0 || root === currentTime2 && (workInProgressSuspendedReason === SuspendedOnData || workInProgressSuspendedReason === SuspendedOnAction) || root.cancelPendingCommit !== null)
return pingedLanes !== null && cancelCallback(pingedLanes), root.callbackNode = null, root.callbackPriority = 0;
if ((suspendedLanes & 3) === 0 || checkIfRootIsPrerendering(root, suspendedLanes)) {
if (currentTime2 = suspendedLanes & -suspendedLanes, currentTime2 !== root.callbackPriority || ReactSharedInternals.actQueue !== null && pingedLanes !== fakeActCallbackNode$1)
cancelCallback(pingedLanes);
else return currentTime2;
switch (lanesToEventPriority(suspendedLanes)) {
case 2:
case 8:
suspendedLanes = UserBlockingPriority;
break;
case 32:
suspendedLanes = NormalPriority$1;
break;
case 268435456:
suspendedLanes = IdlePriority;
break;
default:
suspendedLanes = NormalPriority$1;
}
return pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root), ReactSharedInternals.actQueue !== null ? (ReactSharedInternals.actQueue.push(pingedLanes), suspendedLanes = fakeActCallbackNode$1) : suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes), root.callbackPriority = currentTime2, root.callbackNode = suspendedLanes, currentTime2;
}
return pingedLanes !== null && cancelCallback(pingedLanes), root.callbackPriority = 2, root.callbackNode = null, 2;
}
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
if (nestedUpdateScheduled = currentUpdateIsNested = !1, trackSchedulerEvent(), pendingEffectsStatus !== NO_PENDING_EFFECTS && pendingEffectsStatus !== PENDING_PASSIVE_PHASE)
return root.callbackNode = null, root.callbackPriority = 0, null;
var originalCallbackNode = root.callbackNode;
if (pendingDelayedCommitReason === IMMEDIATE_COMMIT && (pendingDelayedCommitReason = DELAYED_PASSIVE_COMMIT), flushPendingEffects() && root.callbackNode !== originalCallbackNode)
return null;
var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;
return workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
root,
root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
root.cancelPendingCommit !== null || root.timeoutHandle !== noTimeout
), workInProgressRootRenderLanes$jscomp$0 === 0 ? null : (performWorkOnRoot(
root,
workInProgressRootRenderLanes$jscomp$0,
didTimeout
), scheduleTaskForRootDuringMicrotask(root, now$1()), root.callbackNode != null && root.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root) : null);
}
function performSyncWorkOnRoot(root, lanes) {
if (flushPendingEffects()) return null;
currentUpdateIsNested = nestedUpdateScheduled, nestedUpdateScheduled = !1, performWorkOnRoot(root, lanes, !0);
}
function cancelCallback(callbackNode) {
callbackNode !== fakeActCallbackNode$1 && callbackNode !== null && cancelCallback$1(callbackNode);
}
function scheduleImmediateRootScheduleTask() {
ReactSharedInternals.actQueue !== null && ReactSharedInternals.actQueue.push(function() {
return processRootScheduleInMicrotask(), null;
}), supportsMicrotasks ? scheduleMicrotask(function() {
(executionContext & (RenderContext | CommitContext)) !== NoContext ? scheduleCallback$3(
ImmediatePriority,
processRootScheduleInImmediateTask
) : processRootScheduleInMicrotask();
}) : scheduleCallback$3(
ImmediatePriority,
processRootScheduleInImmediateTask
);
}
function requestTransitionLane() {
if (currentEventTransitionLane === 0) {
var actionScopeLane = currentEntangledLane;
actionScopeLane === 0 && (actionScopeLane = nextTransitionUpdateLane, nextTransitionUpdateLane <<= 1, (nextTransitionUpdateLane & 261888) === 0 && (nextTransitionUpdateLane = 256)), currentEventTransitionLane = actionScopeLane;
}
return currentEventTransitionLane;
}
function entangleAsyncAction(transition, thenable) {
if (currentEntangledListeners === null) {
var entangledListeners = currentEntangledListeners = [];
currentEntangledPendingCount = 0, currentEntangledLane = requestTransitionLane(), currentEntangledActionThenable = {
status: "pending",
value: void 0,
then: function(resolve) {
entangledListeners.push(resolve);
}
};
}
return currentEntangledPendingCount++, thenable.then(pingEngtangledActionScope, pingEngtangledActionScope), thenable;
}
function pingEngtangledActionScope() {
if (--currentEntangledPendingCount === 0 && (-1 < transitionUpdateTime || (transitionStartTime = -1.1), currentEntangledListeners !== null)) {
currentEntangledActionThenable !== null && (currentEntangledActionThenable.status = "fulfilled");
var listeners = currentEntangledListeners;
currentEntangledListeners = null, currentEntangledLane = 0, currentEntangledActionThenable = null;
for (var i = 0; i < listeners.length; i++) (0, listeners[i])();
}
}
function chainThenableValue(thenable, result) {
var listeners = [], thenableWithOverride = {
status: "pending",
value: null,
reason: null,
then: function(resolve) {
listeners.push(resolve);
}
};
return thenable.then(
function() {
thenableWithOverride.status = "fulfilled", thenableWithOverride.value = result;
for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result);
},
function(error) {
for (thenableWithOverride.status = "rejected", thenableWithOverride.reason = error, error = 0; error < listeners.length; error++)
(0, listeners[error])(void 0);
}
), thenableWithOverride;
}
function peekCacheFromPool() {
var cacheResumedFromPreviousRender = resumedCache.current;
return cacheResumedFromPreviousRender !== null ? cacheResumedFromPreviousRender : workInProgressRoot.pooledCache;
}
function pushTransition(offscreenWorkInProgress, prevCachePool) {
prevCachePool === null ? push(resumedCache, resumedCache.current, offscreenWorkInProgress) : push(resumedCache, prevCachePool.pool, offscreenWorkInProgress);
}
function getSuspendedCache() {
var cacheFromPool = peekCacheFromPool();
return cacheFromPool === null ? null : {
parent: isPrimaryRenderer ? CacheContext._currentValue : CacheContext._currentValue2,
pool: cacheFromPool
};
}
function shallowEqual(objA, objB) {
if (objectIs(objA, objB)) return !0;
if (typeof objA != "object" || objA === null || typeof objB != "object" || objB === null)
return !1;
var keysA = Object.keys(objA), keysB = Object.keys(objB);
if (keysA.length !== keysB.length) return !1;
for (keysB = 0; keysB < keysA.length; keysB++) {
var currentKey = keysA[keysB];
if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey]))
return !1;
}
return !0;
}
function createThenableState() {
return { didWarnAboutUncachedPromise: !1, thenables: [] };
}
function isThenableResolved(thenable) {
return thenable = thenable.status, thenable === "fulfilled" || thenable === "rejected";
}
function trackUsedThenable(thenableState2, thenable, index) {
ReactSharedInternals.actQueue !== null && (ReactSharedInternals.didUsePromise = !0);
var trackedThenables = thenableState2.thenables;
if (index = trackedThenables[index], index === void 0 ? trackedThenables.push(thenable) : index !== thenable && (thenableState2.didWarnAboutUncachedPromise || (thenableState2.didWarnAboutUncachedPromise = !0, console.error(
"A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework."
)), thenable.then(noop$1, noop$1), thenable = index), thenable._debugInfo === void 0) {
thenableState2 = performance.now(), trackedThenables = thenable.displayName;
var ioInfo = {
name: typeof trackedThenables == "string" ? trackedThenables : "Promise",
start: thenableState2,
end: thenableState2,
value: thenable
};
thenable._debugInfo = [{ awaited: ioInfo }], thenable.status !== "fulfilled" && thenable.status !== "rejected" && (thenableState2 = function() {
ioInfo.end = performance.now();
}, thenable.then(thenableState2, thenableState2));
}
switch (thenable.status) {
case "fulfilled":
return thenable.value;
case "rejected":
throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2;
default:
if (typeof thenable.status == "string")
thenable.then(noop$1, noop$1);
else {
if (thenableState2 = workInProgressRoot, thenableState2 !== null && 100 < thenableState2.shellSuspendCounter)
throw Error(
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
);
thenableState2 = thenable, thenableState2.status = "pending", thenableState2.then(
function(fulfilledValue) {
if (thenable.status === "pending") {
var fulfilledThenable = thenable;
fulfilledThenable.status = "fulfilled", fulfilledThenable.value = fulfilledValue;
}
},
function(error) {
if (thenable.status === "pending") {
var rejectedThenable = thenable;
rejectedThenable.status = "rejected", rejectedThenable.reason = error;
}
}
);
}
switch (thenable.status) {
case "fulfilled":
return thenable.value;
case "rejected":
throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2;
}
throw suspendedThenable = thenable, needsToResetSuspendedThenableDEV = !0, SuspenseException;
}
}
function resolveLazy(lazyType) {
try {
return callLazyInitInDEV(lazyType);
} catch (x) {
throw x !== null && typeof x == "object" && typeof x.then == "function" ? (suspendedThenable = x, needsToResetSuspendedThenableDEV = !0, SuspenseException) : x;
}
}
function getSuspendedThenable() {
if (suspendedThenable === null)
throw Error(
"Expected a suspended thenable. This is a bug in React. Please file an issue."
);
var thenable = suspendedThenable;
return suspendedThenable = null, needsToResetSuspendedThenableDEV = !1, thenable;
}
function checkIfUseWrappedInAsyncCatch(rejectedReason) {
if (rejectedReason === SuspenseException || rejectedReason === SuspenseActionException)
throw Error(
"Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
);
}
function pushDebugInfo(debugInfo) {
var previousDebugInfo = currentDebugInfo;
return debugInfo != null && (currentDebugInfo = previousDebugInfo === null ? debugInfo : previousDebugInfo.concat(debugInfo)), previousDebugInfo;
}
function getCurrentDebugTask() {
var debugInfo = currentDebugInfo;
if (debugInfo != null) {
for (var i = debugInfo.length - 1; 0 <= i; i--)
if (debugInfo[i].name != null) {
var debugTask = debugInfo[i].debugTask;
if (debugTask != null) return debugTask;
}
}
return null;
}
function validateFragmentProps(element, fiber, returnFiber) {
for (var keys = Object.keys(element.props), i = 0; i < keys.length; i++) {
var key = keys[i];
if (key !== "children" && key !== "key") {
fiber === null && (fiber = createFiberFromElement(element, returnFiber.mode, 0), fiber._debugInfo = currentDebugInfo, fiber.return = returnFiber), runWithFiberInDEV(
fiber,
function(erroredKey) {
console.error(
"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
erroredKey
);
},
key
);
break;
}
}
}
function unwrapThenable(thenable) {
var index = thenableIndexCounter$1;
return thenableIndexCounter$1 += 1, thenableState$1 === null && (thenableState$1 = createThenableState()), trackUsedThenable(thenableState$1, thenable, index);
}
function coerceRef(workInProgress2, element) {
element = element.props.ref, workInProgress2.ref = element !== void 0 ? element : null;
}
function throwOnInvalidObjectTypeImpl(returnFiber, newChild) {
throw newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE ? Error(
`A React Element from an older version of React was rendered. This is not supported. It can happen if:
- Multiple copies of the "react" package is used.
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
- A compiler tries to "inline" JSX instead of using the runtime.`
) : (returnFiber = Object.prototype.toString.call(newChild), Error(
"Objects are not valid as a React child (found: " + (returnFiber === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber) + "). If you meant to render a collection of children, use an array instead."
));
}
function throwOnInvalidObjectType(returnFiber, newChild) {
var debugTask = getCurrentDebugTask();
debugTask !== null ? debugTask.run(
throwOnInvalidObjectTypeImpl.bind(null, returnFiber, newChild)
) : throwOnInvalidObjectTypeImpl(returnFiber, newChild);
}
function warnOnFunctionTypeImpl(returnFiber, invalidChild) {
var parentName = getComponentNameFromFiber(returnFiber) || "Component";
ownerHasFunctionTypeWarning[parentName] || (ownerHasFunctionTypeWarning[parentName] = !0, invalidChild = invalidChild.displayName || invalidChild.name || "Component", returnFiber.tag === 3 ? console.error(
`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
root.render(%s)`,
invalidChild,
invalidChild,
invalidChild
) : console.error(
`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
<%s>{%s}</%s>`,
invalidChild,
invalidChild,
parentName,
invalidChild,
parentName
));
}
function warnOnFunctionType(returnFiber, invalidChild) {
var debugTask = getCurrentDebugTask();
debugTask !== null ? debugTask.run(
warnOnFunctionTypeImpl.bind(null, returnFiber, invalidChild)
) : warnOnFunctionTypeImpl(returnFiber, invalidChild);
}
function warnOnSymbolTypeImpl(returnFiber, invalidChild) {
var parentName = getComponentNameFromFiber(returnFiber) || "Component";
ownerHasSymbolTypeWarning[parentName] || (ownerHasSymbolTypeWarning[parentName] = !0, invalidChild = String(invalidChild), returnFiber.tag === 3 ? console.error(
`Symbols are not valid as a React child.
root.render(%s)`,
invalidChild
) : console.error(
`Symbols are not valid as a React child.
<%s>%s</%s>`,
parentName,
invalidChild,
parentName
));
}
function warnOnSymbolType(returnFiber, invalidChild) {
var debugTask = getCurrentDebugTask();
debugTask !== null ? debugTask.run(
warnOnSymbolTypeImpl.bind(null, returnFiber, invalidChild)
) : warnOnSymbolTypeImpl(returnFiber, invalidChild);
}
function createChildReconciler(shouldTrackSideEffects) {
function deleteChild(returnFiber, childToDelete) {
if (shouldTrackSideEffects) {
var deletions = returnFiber.deletions;
deletions === null ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete);
}
}
function deleteRemainingChildren(returnFiber, currentFirstChild) {
if (!shouldTrackSideEffects) return null;
for (; currentFirstChild !== null; )
deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling;
return null;
}
function mapRemainingChildren(currentFirstChild) {
for (var existingChildren = /* @__PURE__ */ new Map(); currentFirstChild !== null; )
currentFirstChild.key !== null ? existingChildren.set(currentFirstChild.key, currentFirstChild) : existingChildren.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling;
return existingChildren;
}
function useFiber(fiber, pendingProps) {
return fiber = createWorkInProgress(fiber, pendingProps), fiber.index = 0, fiber.sibling = null, fiber;
}
function placeChild(newFiber, lastPlacedIndex, newIndex) {
return newFiber.index = newIndex, shouldTrackSideEffects ? (newIndex = newFiber.alternate, newIndex !== null ? (newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 67108866, lastPlacedIndex) : newIndex) : (newFiber.flags |= 67108866, lastPlacedIndex)) : (newFiber.flags |= 1048576, lastPlacedIndex);
}
function placeSingleChild(newFiber) {
return shouldTrackSideEffects && newFiber.alternate === null && (newFiber.flags |= 67108866), newFiber;
}
function updateTextNode(returnFiber, current2, textContent, lanes) {
return current2 === null || current2.tag !== 6 ? (current2 = createFiberFromText(
textContent,
returnFiber.mode,
lanes
), current2.return = returnFiber, current2._debugOwner = returnFiber, current2._debugTask = returnFiber._debugTask, current2._debugInfo = currentDebugInfo, current2) : (current2 = useFiber(current2, textContent), current2.return = returnFiber, current2._debugInfo = currentDebugInfo, current2);
}
function updateElement(returnFiber, current2, element, lanes) {
var elementType = element.type;
return elementType === REACT_FRAGMENT_TYPE ? (current2 = updateFragment(
returnFiber,
current2,
element.props.children,
lanes,
element.key
), validateFragmentProps(element, current2, returnFiber), current2) : current2 !== null && (current2.elementType === elementType || isCompatibleFamilyForHotReloading(current2, element) || typeof elementType == "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current2.type) ? (current2 = useFiber(current2, element.props), coerceRef(current2, element), current2.return = returnFiber, current2._debugOwner = element._owner, current2._debugInfo = currentDebugInfo, current2) : (current2 = createFiberFromElement(element, returnFiber.mode, lanes), coerceRef(current2, element), current2.return = returnFiber, current2._debugInfo = currentDebugInfo, current2);
}
function updatePortal(returnFiber, current2, portal, lanes) {
return current2 === null || current2.tag !== 4 || current2.stateNode.containerInfo !== portal.containerInfo || current2.stateNode.implementation !== portal.implementation ? (current2 = createFiberFromPortal(portal, returnFiber.mode, lanes), current2.return = returnFiber, current2._debugInfo = currentDebugInfo, current2) : (current2 = useFiber(current2, portal.children || []), current2.return = returnFiber, current2._debugInfo = currentDebugInfo, current2);
}
function updateFragment(returnFiber, current2, fragment, lanes, key) {
return current2 === null || current2.tag !== 7 ? (current2 = createFiberFromFragment(
fragment,
returnFiber.mode,
lanes,
key
), current2.return = returnFiber, current2._debugOwner = returnFiber, current2._debugTask = returnFiber._debugTask, current2._debugInfo = currentDebugInfo, current2) : (current2 = useFiber(current2, fragment), current2.return = returnFiber, current2._debugInfo = currentDebugInfo, current2);
}
function createChild(returnFiber, newChild, lanes) {
if (typeof newChild == "string" && newChild !== "" || typeof newChild == "number" || typeof newChild == "bigint")
return newChild = createFiberFromText(
"" + newChild,
returnFiber.mode,
lanes
), newChild.return = returnFiber, newChild._debugOwner = returnFiber, newChild._debugTask = returnFiber._debugTask, newChild._debugInfo = currentDebugInfo, newChild;
if (typeof newChild == "object" && newChild !== null) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
return lanes = createFiberFromElement(
newChild,
returnFiber.mode,
lanes
), coerceRef(lanes, newChild), lanes.return = returnFiber, returnFiber = pushDebugInfo(newChild._debugInfo), lanes._debugInfo = currentDebugInfo, currentDebugInfo = returnFiber, lanes;
case REACT_PORTAL_TYPE:
return newChild = createFiberFromPortal(
newChild,
returnFiber.mode,
lanes
), newChild.return = returnFiber, newChild._debugInfo = currentDebugInfo, newChild;
case REACT_LAZY_TYPE:
var _prevDebugInfo = pushDebugInfo(newChild._debugInfo);
return newChild = resolveLazy(newChild), returnFiber = createChild(returnFiber, newChild, lanes), currentDebugInfo = _prevDebugInfo, returnFiber;
}
if (isArrayImpl(newChild) || getIteratorFn(newChild))
return lanes = createFiberFromFragment(
newChild,
returnFiber.mode,
lanes,
null
), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, returnFiber = pushDebugInfo(newChild._debugInfo), lanes._debugInfo = currentDebugInfo, currentDebugInfo = returnFiber, lanes;
if (typeof newChild.then == "function")
return _prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = createChild(
returnFiber,
unwrapThenable(newChild),
lanes
), currentDebugInfo = _prevDebugInfo, returnFiber;
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
return createChild(
returnFiber,
readContextDuringReconciliation(returnFiber, newChild),
lanes
);
throwOnInvalidObjectType(returnFiber, newChild);
}
return typeof newChild == "function" && warnOnFunctionType(returnFiber, newChild), typeof newChild == "symbol" && warnOnSymbolType(returnFiber, newChild), null;
}
function updateSlot(returnFiber, oldFiber, newChild, lanes) {
var key = oldFiber !== null ? oldFiber.key : null;
if (typeof newChild == "string" && newChild !== "" || typeof newChild == "number" || typeof newChild == "bigint")
return key !== null ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes);
if (typeof newChild == "object" && newChild !== null) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
return newChild.key === key ? (key = pushDebugInfo(newChild._debugInfo), returnFiber = updateElement(
returnFiber,
oldFiber,
newChild,
lanes
), currentDebugInfo = key, returnFiber) : null;
case REACT_PORTAL_TYPE:
return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null;
case REACT_LAZY_TYPE:
return key = pushDebugInfo(newChild._debugInfo), newChild = resolveLazy(newChild), returnFiber = updateSlot(
returnFiber,
oldFiber,
newChild,
lanes
), currentDebugInfo = key, returnFiber;
}
if (isArrayImpl(newChild) || getIteratorFn(newChild))
return key !== null ? null : (key = pushDebugInfo(newChild._debugInfo), returnFiber = updateFragment(
returnFiber,
oldFiber,
newChild,
lanes,
null
), currentDebugInfo = key, returnFiber);
if (typeof newChild.then == "function")
return key = pushDebugInfo(newChild._debugInfo), returnFiber = updateSlot(
returnFiber,
oldFiber,
unwrapThenable(newChild),
lanes
), currentDebugInfo = key, returnFiber;
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
return updateSlot(
returnFiber,
oldFiber,
readContextDuringReconciliation(returnFiber, newChild),
lanes
);
throwOnInvalidObjectType(returnFiber, newChild);
}
return typeof newChild == "function" && warnOnFunctionType(returnFiber, newChild), typeof newChild == "symbol" && warnOnSymbolType(returnFiber, newChild), null;
}
function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {
if (typeof newChild == "string" && newChild !== "" || typeof newChild == "number" || typeof newChild == "bigint")
return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes);
if (typeof newChild == "object" && newChild !== null) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
return newIdx = existingChildren.get(
newChild.key === null ? newIdx : newChild.key
) || null, existingChildren = pushDebugInfo(newChild._debugInfo), returnFiber = updateElement(
returnFiber,
newIdx,
newChild,
lanes
), currentDebugInfo = existingChildren, returnFiber;
case REACT_PORTAL_TYPE:
return existingChildren = existingChildren.get(
newChild.key === null ? newIdx : newChild.key
) || null, updatePortal(returnFiber, existingChildren, newChild, lanes);
case REACT_LAZY_TYPE:
var _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo);
return newChild = resolveLazy(newChild), returnFiber = updateFromMap(
existingChildren,
returnFiber,
newIdx,
newChild,
lanes
), currentDebugInfo = _prevDebugInfo7, returnFiber;
}
if (isArrayImpl(newChild) || getIteratorFn(newChild))
return newIdx = existingChildren.get(newIdx) || null, existingChildren = pushDebugInfo(newChild._debugInfo), returnFiber = updateFragment(
returnFiber,
newIdx,
newChild,
lanes,
null
), currentDebugInfo = existingChildren, returnFiber;
if (typeof newChild.then == "function")
return _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo), returnFiber = updateFromMap(
existingChildren,
returnFiber,
newIdx,
unwrapThenable(newChild),
lanes
), currentDebugInfo = _prevDebugInfo7, returnFiber;
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
return updateFromMap(
existingChildren,
returnFiber,
newIdx,
readContextDuringReconciliation(returnFiber, newChild),
lanes
);
throwOnInvalidObjectType(returnFiber, newChild);
}
return typeof newChild == "function" && warnOnFunctionType(returnFiber, newChild), typeof newChild == "symbol" && warnOnSymbolType(returnFiber, newChild), null;
}
function warnOnInvalidKey(returnFiber, workInProgress2, child, knownKeys) {
if (typeof child != "object" || child === null) return knownKeys;
switch (child.$$typeof) {
case REACT_ELEMENT_TYPE:
case REACT_PORTAL_TYPE:
warnForMissingKey(returnFiber, workInProgress2, child);
var key = child.key;
if (typeof key != "string") break;
if (knownKeys === null) {
knownKeys = /* @__PURE__ */ new Set(), knownKeys.add(key);
break;
}
if (!knownKeys.has(key)) {
knownKeys.add(key);
break;
}
runWithFiberInDEV(workInProgress2, function() {
console.error(
"Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",
key
);
});
break;
case REACT_LAZY_TYPE:
child = resolveLazy(child), warnOnInvalidKey(returnFiber, workInProgress2, child, knownKeys);
}
return knownKeys;
}
function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) {
for (var knownKeys = null, resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling;
var newFiber = updateSlot(
returnFiber,
oldFiber,
newChildren[newIdx],
lanes
);
if (newFiber === null) {
oldFiber === null && (oldFiber = nextOldFiber);
break;
}
knownKeys = warnOnInvalidKey(
returnFiber,
newFiber,
newChildren[newIdx],
knownKeys
), shouldTrackSideEffects && oldFiber && newFiber.alternate === null && deleteChild(returnFiber, oldFiber), currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx), previousNewFiber === null ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber, previousNewFiber = newFiber, oldFiber = nextOldFiber;
}
if (newIdx === newChildren.length)
return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
if (oldFiber === null) {
for (; newIdx < newChildren.length; newIdx++)
oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), oldFiber !== null && (knownKeys = warnOnInvalidKey(
returnFiber,
oldFiber,
newChildren[newIdx],
knownKeys
), currentFirstChild = placeChild(
oldFiber,
currentFirstChild,
newIdx
), previousNewFiber === null ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber);
return isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
}
for (oldFiber = mapRemainingChildren(oldFiber); newIdx < newChildren.length; newIdx++)
nextOldFiber = updateFromMap(
oldFiber,
returnFiber,
newIdx,
newChildren[newIdx],
lanes
), nextOldFiber !== null && (knownKeys = warnOnInvalidKey(
returnFiber,
nextOldFiber,
newChildren[newIdx],
knownKeys
), shouldTrackSideEffects && nextOldFiber.alternate !== null && oldFiber.delete(
nextOldFiber.key === null ? newIdx : nextOldFiber.key
), currentFirstChild = placeChild(
nextOldFiber,
currentFirstChild,
newIdx
), previousNewFiber === null ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber);
return shouldTrackSideEffects && oldFiber.forEach(function(child) {
return deleteChild(returnFiber, child);
}), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
}
function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes) {
if (newChildren == null)
throw Error("An iterable object provided no iterator.");
for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, knownKeys = null, step = newChildren.next(); oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling;
var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);
if (newFiber === null) {
oldFiber === null && (oldFiber = nextOldFiber);
break;
}
knownKeys = warnOnInvalidKey(
returnFiber,
newFiber,
step.value,
knownKeys
), shouldTrackSideEffects && oldFiber && newFiber.alternate === null && deleteChild(returnFiber, oldFiber), currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx), previousNewFiber === null ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber, previousNewFiber = newFiber, oldFiber = nextOldFiber;
}
if (step.done)
return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
if (oldFiber === null) {
for (; !step.done; newIdx++, step = newChildren.next())
oldFiber = createChild(returnFiber, step.value, lanes), oldFiber !== null && (knownKeys = warnOnInvalidKey(
returnFiber,
oldFiber,
step.value,
knownKeys
), currentFirstChild = placeChild(
oldFiber,
currentFirstChild,
newIdx
), previousNewFiber === null ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber);
return isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
}
for (oldFiber = mapRemainingChildren(oldFiber); !step.done; newIdx++, step = newChildren.next())
nextOldFiber = updateFromMap(
oldFiber,
returnFiber,
newIdx,
step.value,
lanes
), nextOldFiber !== null && (knownKeys = warnOnInvalidKey(
returnFiber,
nextOldFiber,
step.value,
knownKeys
), shouldTrackSideEffects && nextOldFiber.alternate !== null && oldFiber.delete(
nextOldFiber.key === null ? newIdx : nextOldFiber.key
), currentFirstChild = placeChild(
nextOldFiber,
currentFirstChild,
newIdx
), previousNewFiber === null ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber);
return shouldTrackSideEffects && oldFiber.forEach(function(child) {
return deleteChild(returnFiber, child);
}), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
}
function reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes) {
if (typeof newChild == "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null && (validateFragmentProps(newChild, null, returnFiber), newChild = newChild.props.children), typeof newChild == "object" && newChild !== null) {
switch (newChild.$$typeof) {
case REACT_ELEMENT_TYPE:
var prevDebugInfo = pushDebugInfo(newChild._debugInfo);
a: {
for (var key = newChild.key; currentFirstChild !== null; ) {
if (currentFirstChild.key === key) {
if (key = newChild.type, key === REACT_FRAGMENT_TYPE) {
if (currentFirstChild.tag === 7) {
deleteRemainingChildren(
returnFiber,
currentFirstChild.sibling
), lanes = useFiber(
currentFirstChild,
newChild.props.children
), lanes.return = returnFiber, lanes._debugOwner = newChild._owner, lanes._debugInfo = currentDebugInfo, validateFragmentProps(newChild, lanes, returnFiber), returnFiber = lanes;
break a;
}
} else if (currentFirstChild.elementType === key || isCompatibleFamilyForHotReloading(
currentFirstChild,
newChild
) || typeof key == "object" && key !== null && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === currentFirstChild.type) {
deleteRemainingChildren(
returnFiber,
currentFirstChild.sibling
), lanes = useFiber(currentFirstChild, newChild.props), coerceRef(lanes, newChild), lanes.return = returnFiber, lanes._debugOwner = newChild._owner, lanes._debugInfo = currentDebugInfo, returnFiber = lanes;
break a;
}
deleteRemainingChildren(returnFiber, currentFirstChild);
break;
} else deleteChild(returnFiber, currentFirstChild);
currentFirstChild = currentFirstChild.sibling;
}
newChild.type === REACT_FRAGMENT_TYPE ? (lanes = createFiberFromFragment(
newChild.props.children,
returnFiber.mode,
lanes,
newChild.key
), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, lanes._debugInfo = currentDebugInfo, validateFragmentProps(newChild, lanes, returnFiber), returnFiber = lanes) : (lanes = createFiberFromElement(
newChild,
returnFiber.mode,
lanes
), coerceRef(lanes, newChild), lanes.return = returnFiber, lanes._debugInfo = currentDebugInfo, returnFiber = lanes);
}
return returnFiber = placeSingleChild(returnFiber), currentDebugInfo = prevDebugInfo, returnFiber;
case REACT_PORTAL_TYPE:
a: {
for (prevDebugInfo = newChild, newChild = prevDebugInfo.key; currentFirstChild !== null; ) {
if (currentFirstChild.key === newChild)
if (currentFirstChild.tag === 4 && currentFirstChild.stateNode.containerInfo === prevDebugInfo.containerInfo && currentFirstChild.stateNode.implementation === prevDebugInfo.implementation) {
deleteRemainingChildren(
returnFiber,
currentFirstChild.sibling
), lanes = useFiber(
currentFirstChild,
prevDebugInfo.children || []
), lanes.return = returnFiber, returnFiber = lanes;
break a;
} else {
deleteRemainingChildren(returnFiber, currentFirstChild);
break;
}
else deleteChild(returnFiber, currentFirstChild);
currentFirstChild = currentFirstChild.sibling;
}
lanes = createFiberFromPortal(
prevDebugInfo,
returnFiber.mode,
lanes
), lanes.return = returnFiber, returnFiber = lanes;
}
return placeSingleChild(returnFiber);
case REACT_LAZY_TYPE:
return prevDebugInfo = pushDebugInfo(newChild._debugInfo), newChild = resolveLazy(newChild), returnFiber = reconcileChildFibersImpl(
returnFiber,
currentFirstChild,
newChild,
lanes
), currentDebugInfo = prevDebugInfo, returnFiber;
}
if (isArrayImpl(newChild))
return prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = reconcileChildrenArray(
returnFiber,
currentFirstChild,
newChild,
lanes
), currentDebugInfo = prevDebugInfo, returnFiber;
if (getIteratorFn(newChild)) {
if (prevDebugInfo = pushDebugInfo(newChild._debugInfo), key = getIteratorFn(newChild), typeof key != "function")
throw Error(
"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."
);
var newChildren = key.call(newChild);
return newChildren === newChild ? (returnFiber.tag !== 0 || Object.prototype.toString.call(returnFiber.type) !== "[object GeneratorFunction]" || Object.prototype.toString.call(newChildren) !== "[object Generator]") && (didWarnAboutGenerators || console.error(
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
), didWarnAboutGenerators = !0) : newChild.entries !== key || didWarnAboutMaps || (console.error(
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
), didWarnAboutMaps = !0), returnFiber = reconcileChildrenIterator(
returnFiber,
currentFirstChild,
newChildren,
lanes
), currentDebugInfo = prevDebugInfo, returnFiber;
}
if (typeof newChild.then == "function")
return prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = reconcileChildFibersImpl(
returnFiber,
currentFirstChild,
unwrapThenable(newChild),
lanes
), currentDebugInfo = prevDebugInfo, returnFiber;
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
return reconcileChildFibersImpl(
returnFiber,
currentFirstChild,
readContextDuringReconciliation(returnFiber, newChild),
lanes
);
throwOnInvalidObjectType(returnFiber, newChild);
}
return typeof newChild == "string" && newChild !== "" || typeof newChild == "number" || typeof newChild == "bigint" ? (prevDebugInfo = "" + newChild, currentFirstChild !== null && currentFirstChild.tag === 6 ? (deleteRemainingChildren(
returnFiber,
currentFirstChild.sibling
), lanes = useFiber(currentFirstChild, prevDebugInfo), lanes.return = returnFiber, returnFiber = lanes) : (deleteRemainingChildren(returnFiber, currentFirstChild), lanes = createFiberFromText(
prevDebugInfo,
returnFiber.mode,
lanes
), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, lanes._debugInfo = currentDebugInfo, returnFiber = lanes), placeSingleChild(returnFiber)) : (typeof newChild == "function" && warnOnFunctionType(returnFiber, newChild), typeof newChild == "symbol" && warnOnSymbolType(returnFiber, newChild), deleteRemainingChildren(returnFiber, currentFirstChild));
}
return function(returnFiber, currentFirstChild, newChild, lanes) {
var prevDebugInfo = currentDebugInfo;
currentDebugInfo = null;
try {
thenableIndexCounter$1 = 0;
var firstChildFiber = reconcileChildFibersImpl(
returnFiber,
currentFirstChild,
newChild,
lanes
);
return thenableState$1 = null, firstChildFiber;
} catch (x) {
if (x === SuspenseException || x === SuspenseActionException) throw x;
var fiber = createFiber(29, x, null, returnFiber.mode);
fiber.lanes = lanes, fiber.return = returnFiber;
var debugInfo = fiber._debugInfo = currentDebugInfo;
if (fiber._debugOwner = returnFiber._debugOwner, fiber._debugTask = returnFiber._debugTask, debugInfo != null) {
for (var i = debugInfo.length - 1; 0 <= i; i--)
if (typeof debugInfo[i].stack == "string") {
fiber._debugOwner = debugInfo[i], fiber._debugTask = debugInfo[i].debugTask;
break;
}
}
return fiber;
} finally {
currentDebugInfo = prevDebugInfo;
}
};
}
function validateSuspenseListNestedChild(childSlot, index) {
var isAnArray = isArrayImpl(childSlot);
return childSlot = !isAnArray && typeof getIteratorFn(childSlot) == "function", isAnArray || childSlot ? (isAnArray = isAnArray ? "array" : "iterable", console.error(
"A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",
isAnArray,
index,
isAnArray
), !1) : !0;
}
function finishQueueingConcurrentUpdates() {
for (var endIndex = concurrentQueuesIndex, i = concurrentlyUpdatedLanes = concurrentQueuesIndex = 0; i < endIndex; ) {
var fiber = concurrentQueues[i];
concurrentQueues[i++] = null;
var queue = concurrentQueues[i];
concurrentQueues[i++] = null;
var update = concurrentQueues[i];
concurrentQueues[i++] = null;
var lane = concurrentQueues[i];
if (concurrentQueues[i++] = null, queue !== null && update !== null) {
var pending = queue.pending;
pending === null ? update.next = update : (update.next = pending.next, pending.next = update), queue.pending = update;
}
lane !== 0 && markUpdateLaneFromFiberToRoot(fiber, update, lane);
}
}
function enqueueUpdate$1(fiber, queue, update, lane) {
concurrentQueues[concurrentQueuesIndex++] = fiber, concurrentQueues[concurrentQueuesIndex++] = queue, concurrentQueues[concurrentQueuesIndex++] = update, concurrentQueues[concurrentQueuesIndex++] = lane, concurrentlyUpdatedLanes |= lane, fiber.lanes |= lane, fiber = fiber.alternate, fiber !== null && (fiber.lanes |= lane);
}
function enqueueConcurrentHookUpdate(fiber, queue, update, lane) {
return enqueueUpdate$1(fiber, queue, update, lane), getRootForUpdatedFiber(fiber);
}
function enqueueConcurrentRenderForLane(fiber, lane) {
return enqueueUpdate$1(fiber, null, null, lane), getRootForUpdatedFiber(fiber);
}
function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {
sourceFiber.lanes |= lane;
var alternate = sourceFiber.alternate;
alternate !== null && (alternate.lanes |= lane);
for (var isHidden2 = !1, parent = sourceFiber.return; parent !== null; )
parent.childLanes |= lane, alternate = parent.alternate, alternate !== null && (alternate.childLanes |= lane), parent.tag === 22 && (sourceFiber = parent.stateNode, sourceFiber === null || sourceFiber._visibility & OffscreenVisible || (isHidden2 = !0)), sourceFiber = parent, parent = parent.return;
return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden2 && update !== null && (isHidden2 = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden2], alternate === null ? sourceFiber[isHidden2] = [update] : alternate.push(update), update.lane = lane | 536870912), parent) : null;
}
function getRootForUpdatedFiber(sourceFiber) {
if (nestedUpdateCount > NESTED_UPDATE_LIMIT)
throw nestedPassiveUpdateCount = nestedUpdateCount = 0, rootWithPassiveNestedUpdates = rootWithNestedUpdates = null, Error(
"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."
);
nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT && (nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null, console.error(
"Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."
)), sourceFiber.alternate === null && (sourceFiber.flags & 4098) !== 0 && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
for (var node = sourceFiber, parent = node.return; parent !== null; )
node.alternate === null && (node.flags & 4098) !== 0 && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber), node = parent, parent = node.return;
return node.tag === 3 ? node.stateNode : null;
}
function initializeUpdateQueue(fiber) {
fiber.updateQueue = {
baseState: fiber.memoizedState,
firstBaseUpdate: null,
lastBaseUpdate: null,
shared: { pending: null, lanes: 0, hiddenCallbacks: null },
callbacks: null
};
}
function cloneUpdateQueue(current2, workInProgress2) {
current2 = current2.updateQueue, workInProgress2.updateQueue === current2 && (workInProgress2.updateQueue = {
baseState: current2.baseState,
firstBaseUpdate: current2.firstBaseUpdate,
lastBaseUpdate: current2.lastBaseUpdate,
shared: current2.shared,
callbacks: null
});
}
function createUpdate(lane) {
return {
lane,
tag: UpdateState,
payload: null,
callback: null,
next: null
};
}
function enqueueUpdate(fiber, update, lane) {
var updateQueue = fiber.updateQueue;
if (updateQueue === null) return null;
if (updateQueue = updateQueue.shared, currentlyProcessingQueue === updateQueue && !didWarnUpdateInsideUpdate) {
var componentName2 = getComponentNameFromFiber(fiber);
console.error(
`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
Please update the following component: %s`,
componentName2
), didWarnUpdateInsideUpdate = !0;
}
return (executionContext & RenderContext) !== NoContext ? (componentName2 = updateQueue.pending, componentName2 === null ? update.next = update : (update.next = componentName2.next, componentName2.next = update), updateQueue.pending = update, update = getRootForUpdatedFiber(fiber), markUpdateLaneFromFiberToRoot(fiber, null, lane), update) : (enqueueUpdate$1(fiber, updateQueue, update, lane), getRootForUpdatedFiber(fiber));
}
function entangleTransitions(root, fiber, lane) {
if (fiber = fiber.updateQueue, fiber !== null && (fiber = fiber.shared, (lane & 4194048) !== 0)) {
var queueLanes = fiber.lanes;
queueLanes &= root.pendingLanes, lane |= queueLanes, fiber.lanes = lane, markRootEntangled(root, lane);
}
}
function enqueueCapturedUpdate(workInProgress2, capturedUpdate) {
var queue = workInProgress2.updateQueue, current2 = workInProgress2.alternate;
if (current2 !== null && (current2 = current2.updateQueue, queue === current2)) {
var newFirst = null, newLast = null;
if (queue = queue.firstBaseUpdate, queue !== null) {
do {
var clone = {
lane: queue.lane,
tag: queue.tag,
payload: queue.payload,
callback: null,
next: null
};
newLast === null ? newFirst = newLast = clone : newLast = newLast.next = clone, queue = queue.next;
} while (queue !== null);
newLast === null ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate;
} else newFirst = newLast = capturedUpdate;
queue = {
baseState: current2.baseState,
firstBaseUpdate: newFirst,
lastBaseUpdate: newLast,
shared: current2.shared,
callbacks: current2.callbacks
}, workInProgress2.updateQueue = queue;
return;
}
workInProgress2 = queue.lastBaseUpdate, workInProgress2 === null ? queue.firstBaseUpdate = capturedUpdate : workInProgress2.next = capturedUpdate, queue.lastBaseUpdate = capturedUpdate;
}
function suspendIfUpdateReadFromEntangledAsyncAction() {
if (didReadFromEntangledAsyncAction) {
var entangledActionThenable = currentEntangledActionThenable;
if (entangledActionThenable !== null) throw entangledActionThenable;
}
}
function processUpdateQueue(workInProgress2, props, instance$jscomp$0, renderLanes2) {
didReadFromEntangledAsyncAction = !1;
var queue = workInProgress2.updateQueue;
hasForceUpdate = !1, currentlyProcessingQueue = queue.shared;
var firstBaseUpdate = queue.firstBaseUpdate, lastBaseUpdate = queue.lastBaseUpdate, pendingQueue = queue.shared.pending;
if (pendingQueue !== null) {
queue.shared.pending = null;
var lastPendingUpdate = pendingQueue, firstPendingUpdate = lastPendingUpdate.next;
lastPendingUpdate.next = null, lastBaseUpdate === null ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate, lastBaseUpdate = lastPendingUpdate;
var current2 = workInProgress2.alternate;
current2 !== null && (current2 = current2.updateQueue, pendingQueue = current2.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (pendingQueue === null ? current2.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current2.lastBaseUpdate = lastPendingUpdate));
}
if (firstBaseUpdate !== null) {
var newState = queue.baseState;
lastBaseUpdate = 0, current2 = firstPendingUpdate = lastPendingUpdate = null, pendingQueue = firstBaseUpdate;
do {
var updateLane = pendingQueue.lane & -536870913, isHiddenUpdate = updateLane !== pendingQueue.lane;
if (isHiddenUpdate ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes2 & updateLane) === updateLane) {
updateLane !== 0 && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0), current2 !== null && (current2 = current2.next = {
lane: 0,
tag: pendingQueue.tag,
payload: pendingQueue.payload,
callback: null,
next: null
});
a: {
updateLane = workInProgress2;
var partialState = pendingQueue, nextProps = props, instance = instance$jscomp$0;
switch (partialState.tag) {
case ReplaceState:
if (partialState = partialState.payload, typeof partialState == "function") {
isDisallowedContextReadInDEV = !0;
var nextState = partialState.call(
instance,
newState,
nextProps
);
if (updateLane.mode & 8) {
setIsStrictModeForDevtools(!0);
try {
partialState.call(instance, newState, nextProps);
} finally {
setIsStrictModeForDevtools(!1);
}
}
isDisallowedContextReadInDEV = !1, newState = nextState;
break a;
}
newState = partialState;
break a;
case CaptureUpdate:
updateLane.flags = updateLane.flags & -65537 | 128;
case UpdateState:
if (nextState = partialState.payload, typeof nextState == "function") {
if (isDisallowedContextReadInDEV = !0, partialState = nextState.call(
instance,
newState,
nextProps
), updateLane.mode & 8) {
setIsStrictModeForDevtools(!0);
try {
nextState.call(instance, newState, nextProps);
} finally {
setIsStrictModeForDevtools(!1);
}
}
isDisallowedContextReadInDEV = !1;
} else partialState = nextState;
if (partialState == null) break a;
newState = assign({}, newState, partialState);
break a;
case ForceUpdate:
hasForceUpdate = !0;
}
}
updateLane = pendingQueue.callback, updateLane !== null && (workInProgress2.flags |= 64, isHiddenUpdate && (workInProgress2.flags |= 8192), isHiddenUpdate = queue.callbacks, isHiddenUpdate === null ? queue.callbacks = [updateLane] : isHiddenUpdate.push(updateLane));
} else
isHiddenUpdate = {
lane: updateLane,
tag: pendingQueue.tag,
payload: pendingQueue.payload,
callback: pendingQueue.callback,
next: null
}, current2 === null ? (firstPendingUpdate = current2 = isHiddenUpdate, lastPendingUpdate = newState) : current2 = current2.next = isHiddenUpdate, lastBaseUpdate |= updateLane;
if (pendingQueue = pendingQueue.next, pendingQueue === null) {
if (pendingQueue = queue.shared.pending, pendingQueue === null)
break;
isHiddenUpdate = pendingQueue, pendingQueue = isHiddenUpdate.next, isHiddenUpdate.next = null, queue.lastBaseUpdate = isHiddenUpdate, queue.shared.pending = null;
}
} while (!0);
current2 === null && (lastPendingUpdate = newState), queue.baseState = lastPendingUpdate, queue.firstBaseUpdate = firstPendingUpdate, queue.lastBaseUpdate = current2, firstBaseUpdate === null && (queue.shared.lanes = 0), workInProgressRootSkippedLanes |= lastBaseUpdate, workInProgress2.lanes = lastBaseUpdate, workInProgress2.memoizedState = newState;
}
currentlyProcessingQueue = null;
}
function callCallback(callback, context) {
if (typeof callback != "function")
throw Error(
"Invalid argument passed as callback. Expected a function. Instead received: " + callback
);
callback.call(context);
}
function commitHiddenCallbacks(updateQueue, context) {
var hiddenCallbacks = updateQueue.shared.hiddenCallbacks;
if (hiddenCallbacks !== null)
for (updateQueue.shared.hiddenCallbacks = null, updateQueue = 0; updateQueue < hiddenCallbacks.length; updateQueue++)
callCallback(hiddenCallbacks[updateQueue], context);
}
function commitCallbacks(updateQueue, context) {
var callbacks = updateQueue.callbacks;
if (callbacks !== null)
for (updateQueue.callbacks = null, updateQueue = 0; updateQueue < callbacks.length; updateQueue++)
callCallback(callbacks[updateQueue], context);
}
function pushHiddenContext(fiber, context) {
var prevEntangledRenderLanes = entangledRenderLanes;
push(prevEntangledRenderLanesCursor, prevEntangledRenderLanes, fiber), push(currentTreeHiddenStackCursor, context, fiber), entangledRenderLanes = prevEntangledRenderLanes | context.baseLanes;
}
function reuseHiddenContextOnStack(fiber) {
push(prevEntangledRenderLanesCursor, entangledRenderLanes, fiber), push(
currentTreeHiddenStackCursor,
currentTreeHiddenStackCursor.current,
fiber
);
}
function popHiddenContext(fiber) {
entangledRenderLanes = prevEntangledRenderLanesCursor.current, pop(currentTreeHiddenStackCursor, fiber), pop(prevEntangledRenderLanesCursor, fiber);
}
function pushPrimaryTreeSuspenseHandler(handler) {
var current2 = handler.alternate;
push(
suspenseStackCursor,
suspenseStackCursor.current & SubtreeSuspenseContextMask,
handler
), push(suspenseHandlerStackCursor, handler, handler), shellBoundary === null && (current2 === null || currentTreeHiddenStackCursor.current !== null || current2.memoizedState !== null) && (shellBoundary = handler);
}
function pushDehydratedActivitySuspenseHandler(fiber) {
push(suspenseStackCursor, suspenseStackCursor.current, fiber), push(suspenseHandlerStackCursor, fiber, fiber), shellBoundary === null && (shellBoundary = fiber);
}
function pushOffscreenSuspenseHandler(fiber) {
fiber.tag === 22 ? (push(suspenseStackCursor, suspenseStackCursor.current, fiber), push(suspenseHandlerStackCursor, fiber, fiber), shellBoundary === null && (shellBoundary = fiber)) : reuseSuspenseHandlerOnStack(fiber);
}
function reuseSuspenseHandlerOnStack(fiber) {
push(suspenseStackCursor, suspenseStackCursor.current, fiber), push(
suspenseHandlerStackCursor,
suspenseHandlerStackCursor.current,
fiber
);
}
function popSuspenseHandler(fiber) {
pop(suspenseHandlerStackCursor, fiber), shellBoundary === fiber && (shellBoundary = null), pop(suspenseStackCursor, fiber);
}
function findFirstSuspended(row) {
for (var node = row; node !== null; ) {
if (node.tag === 13) {
var state = node.memoizedState;
if (state !== null && (state = state.dehydrated, state === null || isSuspenseInstancePending(state) || isSuspenseInstanceFallback(state)))
return node;
} else if (node.tag === 19 && (node.memoizedProps.revealOrder === "forwards" || node.memoizedProps.revealOrder === "backwards" || node.memoizedProps.revealOrder === "unstable_legacy-backwards" || node.memoizedProps.revealOrder === "together")) {
if ((node.flags & 128) !== 0) return node;
} else if (node.child !== null) {
node.child.return = node, node = node.child;
continue;
}
if (node === row) break;
for (; node.sibling === null; ) {
if (node.return === null || node.return === row) return null;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
return null;
}
function mountHookTypesDev() {
var hookName = currentHookNameInDev;
hookTypesDev === null ? hookTypesDev = [hookName] : hookTypesDev.push(hookName);
}
function updateHookTypesDev() {
var hookName = currentHookNameInDev;
if (hookTypesDev !== null && (hookTypesUpdateIndexDev++, hookTypesDev[hookTypesUpdateIndexDev] !== hookName)) {
var componentName2 = getComponentNameFromFiber(currentlyRenderingFiber);
if (!didWarnAboutMismatchedHooksForComponent.has(componentName2) && (didWarnAboutMismatchedHooksForComponent.add(componentName2), hookTypesDev !== null)) {
for (var table = "", i = 0; i <= hookTypesUpdateIndexDev; i++) {
var oldHookName = hookTypesDev[i], newHookName = i === hookTypesUpdateIndexDev ? hookName : oldHookName;
for (oldHookName = i + 1 + ". " + oldHookName; 30 > oldHookName.length; )
oldHookName += " ";
oldHookName += newHookName + `
`, table += oldHookName;
}
console.error(
`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
Previous render Next render
------------------------------------------------------
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,
componentName2,
table
);
}
}
}
function checkDepsAreArrayDev(deps) {
deps == null || isArrayImpl(deps) || console.error(
"%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",
currentHookNameInDev,
typeof deps
);
}
function warnOnUseFormStateInDev() {
var componentName2 = getComponentNameFromFiber(currentlyRenderingFiber);
didWarnAboutUseFormState.has(componentName2) || (didWarnAboutUseFormState.add(componentName2), console.error(
"ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",
componentName2
));
}
function throwInvalidHookError() {
throw Error(
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
);
}
function areHookInputsEqual(nextDeps, prevDeps) {
if (ignorePreviousDependencies) return !1;
if (prevDeps === null)
return console.error(
"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",
currentHookNameInDev
), !1;
nextDeps.length !== prevDeps.length && console.error(
`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,
currentHookNameInDev,
"[" + prevDeps.join(", ") + "]",
"[" + nextDeps.join(", ") + "]"
);
for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)
if (!objectIs(nextDeps[i], prevDeps[i])) return !1;
return !0;
}
function renderWithHooks(current2, workInProgress2, Component, props, secondArg, nextRenderLanes) {
renderLanes = nextRenderLanes, currentlyRenderingFiber = workInProgress2, hookTypesDev = current2 !== null ? current2._debugHookTypes : null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = current2 !== null && current2.type !== workInProgress2.type, (Object.prototype.toString.call(Component) === "[object AsyncFunction]" || Object.prototype.toString.call(Component) === "[object AsyncGeneratorFunction]") && (nextRenderLanes = getComponentNameFromFiber(currentlyRenderingFiber), didWarnAboutAsyncClientComponent.has(nextRenderLanes) || (didWarnAboutAsyncClientComponent.add(nextRenderLanes), console.error(
"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",
nextRenderLanes === null ? "An unknown Component" : "<" + nextRenderLanes + ">"
))), workInProgress2.memoizedState = null, workInProgress2.updateQueue = null, workInProgress2.lanes = 0, ReactSharedInternals.H = current2 !== null && current2.memoizedState !== null ? HooksDispatcherOnUpdateInDEV : hookTypesDev !== null ? HooksDispatcherOnMountWithHookTypesInDEV : HooksDispatcherOnMountInDEV, shouldDoubleInvokeUserFnsInHooksDEV = nextRenderLanes = (workInProgress2.mode & 8) !== NoMode;
var children = callComponentInDEV(Component, props, secondArg);
if (shouldDoubleInvokeUserFnsInHooksDEV = !1, didScheduleRenderPhaseUpdateDuringThisPass && (children = renderWithHooksAgain(
workInProgress2,
Component,
props,
secondArg
)), nextRenderLanes) {
setIsStrictModeForDevtools(!0);
try {
children = renderWithHooksAgain(
workInProgress2,
Component,
props,
secondArg
);
} finally {
setIsStrictModeForDevtools(!1);
}
}
return finishRenderingHooks(current2, workInProgress2), children;
}
function finishRenderingHooks(current2, workInProgress2) {
workInProgress2._debugHookTypes = hookTypesDev, workInProgress2.dependencies === null ? thenableState !== null && (workInProgress2.dependencies = {
lanes: 0,
firstContext: null,
_debugThenableState: thenableState
}) : workInProgress2.dependencies._debugThenableState = thenableState, ReactSharedInternals.H = ContextOnlyDispatcher;
var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
if (renderLanes = 0, hookTypesDev = currentHookNameInDev = workInProgressHook = currentHook = currentlyRenderingFiber = null, hookTypesUpdateIndexDev = -1, current2 !== null && (current2.flags & 65011712) !== (workInProgress2.flags & 65011712) && console.error(
"Internal React error: Expected static flag was missing. Please notify the React team."
), didScheduleRenderPhaseUpdate = !1, thenableIndexCounter = 0, thenableState = null, didRenderTooFewHooks)
throw Error(
"Rendered fewer hooks than expected. This may be caused by an accidental early return statement."
);
current2 === null || didReceiveUpdate || (current2 = current2.dependencies, current2 !== null && checkIfContextChanged(current2) && (didReceiveUpdate = !0)), needsToResetSuspendedThenableDEV ? (needsToResetSuspendedThenableDEV = !1, current2 = !0) : current2 = !1, current2 && (workInProgress2 = getComponentNameFromFiber(workInProgress2) || "Unknown", didWarnAboutUseWrappedInTryCatch.has(workInProgress2) || didWarnAboutAsyncClientComponent.has(workInProgress2) || (didWarnAboutUseWrappedInTryCatch.add(workInProgress2), console.error(
"`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary."
)));
}
function renderWithHooksAgain(workInProgress2, Component, props, secondArg) {
currentlyRenderingFiber = workInProgress2;
var numberOfReRenders = 0;
do {
if (didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null), thenableIndexCounter = 0, didScheduleRenderPhaseUpdateDuringThisPass = !1, numberOfReRenders >= RE_RENDER_LIMIT)
throw Error(
"Too many re-renders. React limits the number of renders to prevent an infinite loop."
);
if (numberOfReRenders += 1, ignorePreviousDependencies = !1, workInProgressHook = currentHook = null, workInProgress2.updateQueue != null) {
var children = workInProgress2.updateQueue;
children.lastEffect = null, children.events = null, children.stores = null, children.memoCache != null && (children.memoCache.index = 0);
}
hookTypesUpdateIndexDev = -1, ReactSharedInternals.H = HooksDispatcherOnRerenderInDEV, children = callComponentInDEV(Component, props, secondArg);
} while (didScheduleRenderPhaseUpdateDuringThisPass);
return children;
}
function TransitionAwareHostComponent() {
var dispatcher = ReactSharedInternals.H, maybeThenable = dispatcher.useState()[0];
return maybeThenable = typeof maybeThenable.then == "function" ? useThenable(maybeThenable) : maybeThenable, dispatcher = dispatcher.useState()[0], (currentHook !== null ? currentHook.memoizedState : null) !== dispatcher && (currentlyRenderingFiber.flags |= 1024), maybeThenable;
}
function checkDidRenderIdHook() {
var didRenderIdHook = localIdCounter !== 0;
return localIdCounter = 0, didRenderIdHook;
}
function bailoutHooks(current2, workInProgress2, lanes) {
workInProgress2.updateQueue = current2.updateQueue, workInProgress2.flags = (workInProgress2.mode & 16) !== NoMode ? workInProgress2.flags & -402655237 : workInProgress2.flags & -2053, current2.lanes &= ~lanes;
}
function resetHooksOnUnwind(workInProgress2) {
if (didScheduleRenderPhaseUpdate) {
for (workInProgress2 = workInProgress2.memoizedState; workInProgress2 !== null; ) {
var queue = workInProgress2.queue;
queue !== null && (queue.pending = null), workInProgress2 = workInProgress2.next;
}
didScheduleRenderPhaseUpdate = !1;
}
renderLanes = 0, hookTypesDev = workInProgressHook = currentHook = currentlyRenderingFiber = null, hookTypesUpdateIndexDev = -1, currentHookNameInDev = null, didScheduleRenderPhaseUpdateDuringThisPass = !1, thenableIndexCounter = localIdCounter = 0, thenableState = null;
}
function mountWorkInProgressHook() {
var hook = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null
};
return workInProgressHook === null ? currentlyRenderingFiber.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook, workInProgressHook;
}
function updateWorkInProgressHook() {
if (currentHook === null) {
var nextCurrentHook = currentlyRenderingFiber.alternate;
nextCurrentHook = nextCurrentHook !== null ? nextCurrentHook.memoizedState : null;
} else nextCurrentHook = currentHook.next;
var nextWorkInProgressHook = workInProgressHook === null ? currentlyRenderingFiber.memoizedState : workInProgressHook.next;
if (nextWorkInProgressHook !== null)
workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;
else {
if (nextCurrentHook === null)
throw currentlyRenderingFiber.alternate === null ? Error(
"Update hook called on initial render. This is likely a bug in React. Please file an issue."
) : Error("Rendered more hooks than during the previous render.");
currentHook = nextCurrentHook, nextCurrentHook = {
memoizedState: currentHook.memoizedState,
baseState: currentHook.baseState,
baseQueue: currentHook.baseQueue,
queue: currentHook.queue,
next: null
}, workInProgressHook === null ? currentlyRenderingFiber.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook;
}
return workInProgressHook;
}
function createFunctionComponentUpdateQueue() {
return { lastEffect: null, events: null, stores: null, memoCache: null };
}
function useThenable(thenable) {
var index = thenableIndexCounter;
return thenableIndexCounter += 1, thenableState === null && (thenableState = createThenableState()), thenable = trackUsedThenable(thenableState, thenable, index), index = currentlyRenderingFiber, (workInProgressHook === null ? index.memoizedState : workInProgressHook.next) === null && (index = index.alternate, ReactSharedInternals.H = index !== null && index.memoizedState !== null ? HooksDispatcherOnUpdateInDEV : HooksDispatcherOnMountInDEV), thenable;
}
function use(usable) {
if (usable !== null && typeof usable == "object") {
if (typeof usable.then == "function") return useThenable(usable);
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
}
throw Error("An unsupported type was passed to use(): " + String(usable));
}
function useMemoCache(size) {
var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue;
if (updateQueue !== null && (memoCache = updateQueue.memoCache), memoCache == null) {
var current2 = currentlyRenderingFiber.alternate;
current2 !== null && (current2 = current2.updateQueue, current2 !== null && (current2 = current2.memoCache, current2 != null && (memoCache = {
data: current2.data.map(function(array) {
return array.slice();
}),
index: 0
})));
}
if (memoCache == null && (memoCache = { data: [], index: 0 }), updateQueue === null && (updateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = updateQueue), updateQueue.memoCache = memoCache, updateQueue = memoCache.data[memoCache.index], updateQueue === void 0 || ignorePreviousDependencies)
for (updateQueue = memoCache.data[memoCache.index] = Array(size), current2 = 0; current2 < size; current2++)
updateQueue[current2] = REACT_MEMO_CACHE_SENTINEL;
else
updateQueue.length !== size && console.error(
"Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",
updateQueue.length,
size
);
return memoCache.index++, updateQueue;
}
function basicStateReducer(state, action) {
return typeof action == "function" ? action(state) : action;
}
function mountReducer(reducer2, initialArg, init) {
var hook = mountWorkInProgressHook();
if (init !== void 0) {
var initialState = init(initialArg);
if (shouldDoubleInvokeUserFnsInHooksDEV) {
setIsStrictModeForDevtools(!0);
try {
init(initialArg);
} finally {
setIsStrictModeForDevtools(!1);
}
}
} else initialState = initialArg;
return hook.memoizedState = hook.baseState = initialState, reducer2 = {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: reducer2,
lastRenderedState: initialState
}, hook.queue = reducer2, reducer2 = reducer2.dispatch = dispatchReducerAction.bind(
null,
currentlyRenderingFiber,
reducer2
), [hook.memoizedState, reducer2];
}
function updateReducer(reducer2) {
var hook = updateWorkInProgressHook();
return updateReducerImpl(hook, currentHook, reducer2);
}
function updateReducerImpl(hook, current2, reducer2) {
var queue = hook.queue;
if (queue === null)
throw Error(
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
);
queue.lastRenderedReducer = reducer2;
var baseQueue = hook.baseQueue, pendingQueue = queue.pending;
if (pendingQueue !== null) {
if (baseQueue !== null) {
var baseFirst = baseQueue.next;
baseQueue.next = pendingQueue.next, pendingQueue.next = baseFirst;
}
current2.baseQueue !== baseQueue && console.error(
"Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."
), current2.baseQueue = baseQueue = pendingQueue, queue.pending = null;
}
if (pendingQueue = hook.baseState, baseQueue === null) hook.memoizedState = pendingQueue;
else {
current2 = baseQueue.next;
var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current2, didReadFromEntangledAsyncAction2 = !1;
do {
var updateLane = update.lane & -536870913;
if (updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) {
var revertLane = update.revertLane;
if (revertLane === 0)
newBaseQueueLast !== null && (newBaseQueueLast = newBaseQueueLast.next = {
lane: 0,
revertLane: 0,
gesture: null,
action: update.action,
hasEagerState: update.hasEagerState,
eagerState: update.eagerState,
next: null
}), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = !0);
else if ((renderLanes & revertLane) === revertLane) {
update = update.next, revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = !0);
continue;
} else
updateLane = {
lane: 0,
revertLane: update.revertLane,
gesture: null,
action: update.action,
hasEagerState: update.hasEagerState,
eagerState: update.eagerState,
next: null
}, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane;
updateLane = update.action, shouldDoubleInvokeUserFnsInHooksDEV && reducer2(pendingQueue, updateLane), pendingQueue = update.hasEagerState ? update.eagerState : reducer2(pendingQueue, updateLane);
} else
revertLane = {
lane: updateLane,
revertLane: update.revertLane,
gesture: update.gesture,
action: update.action,
hasEagerState: update.hasEagerState,
eagerState: update.eagerState,
next: null
}, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane, currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane;
update = update.next;
} while (update !== null && update !== current2);
if (newBaseQueueLast === null ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst, !objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = !0, didReadFromEntangledAsyncAction2 && (reducer2 = currentEntangledActionThenable, reducer2 !== null)))
throw reducer2;
hook.memoizedState = pendingQueue, hook.baseState = baseFirst, hook.baseQueue = newBaseQueueLast, queue.lastRenderedState = pendingQueue;
}
return baseQueue === null && (queue.lanes = 0), [hook.memoizedState, queue.dispatch];
}
function rerenderReducer(reducer2) {
var hook = updateWorkInProgressHook(), queue = hook.queue;
if (queue === null)
throw Error(
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
);
queue.lastRenderedReducer = reducer2;
var dispatch = queue.dispatch, lastRenderPhaseUpdate = queue.pending, newState = hook.memoizedState;
if (lastRenderPhaseUpdate !== null) {
queue.pending = null;
var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
do
newState = reducer2(newState, update.action), update = update.next;
while (update !== lastRenderPhaseUpdate);
objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0), hook.memoizedState = newState, hook.baseQueue === null && (hook.baseState = newState), queue.lastRenderedState = newState;
}
return [newState, dispatch];
}
function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
var fiber = currentlyRenderingFiber, hook = mountWorkInProgressHook();
if (isHydrating) {
if (getServerSnapshot === void 0)
throw Error(
"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
);
var nextSnapshot = getServerSnapshot();
didWarnUncachedGetSnapshot || nextSnapshot === getServerSnapshot() || (console.error(
"The result of getServerSnapshot should be cached to avoid an infinite loop"
), didWarnUncachedGetSnapshot = !0);
} else {
if (nextSnapshot = getSnapshot(), didWarnUncachedGetSnapshot || (getServerSnapshot = getSnapshot(), objectIs(nextSnapshot, getServerSnapshot) || (console.error(
"The result of getSnapshot should be cached to avoid an infinite loop"
), didWarnUncachedGetSnapshot = !0)), workInProgressRoot === null)
throw Error(
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
);
(workInProgressRootRenderLanes & 127) !== 0 || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
}
return hook.memoizedState = nextSnapshot, getServerSnapshot = { value: nextSnapshot, getSnapshot }, hook.queue = getServerSnapshot, mountEffect(
subscribeToStore.bind(null, fiber, getServerSnapshot, subscribe),
[subscribe]
), fiber.flags |= 2048, pushSimpleEffect(
HasEffect | Passive,
{ destroy: void 0 },
updateStoreInstance.bind(
null,
fiber,
getServerSnapshot,
nextSnapshot,
getSnapshot
),
null
), nextSnapshot;
}
function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
var fiber = currentlyRenderingFiber, hook = updateWorkInProgressHook(), isHydrating$jscomp$0 = isHydrating;
if (isHydrating$jscomp$0) {
if (getServerSnapshot === void 0)
throw Error(
"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
);
getServerSnapshot = getServerSnapshot();
} else if (getServerSnapshot = getSnapshot(), !didWarnUncachedGetSnapshot) {
var cachedSnapshot = getSnapshot();
objectIs(getServerSnapshot, cachedSnapshot) || (console.error(
"The result of getSnapshot should be cached to avoid an infinite loop"
), didWarnUncachedGetSnapshot = !0);
}
(cachedSnapshot = !objectIs(
(currentHook || hook).memoizedState,
getServerSnapshot
)) && (hook.memoizedState = getServerSnapshot, didReceiveUpdate = !0), hook = hook.queue;
var create3 = subscribeToStore.bind(null, fiber, hook, subscribe);
if (updateEffectImpl(2048, Passive, create3, [subscribe]), hook.getSnapshot !== getSnapshot || cachedSnapshot || workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {
if (fiber.flags |= 2048, pushSimpleEffect(
HasEffect | Passive,
{ destroy: void 0 },
updateStoreInstance.bind(
null,
fiber,
hook,
getServerSnapshot,
getSnapshot
),
null
), workInProgressRoot === null)
throw Error(
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
);
isHydrating$jscomp$0 || (renderLanes & 127) !== 0 || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
}
return getServerSnapshot;
}
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
fiber.flags |= 16384, fiber = { getSnapshot, value: renderedSnapshot }, getSnapshot = currentlyRenderingFiber.updateQueue, getSnapshot === null ? (getSnapshot = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, renderedSnapshot === null ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber));
}
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
inst.value = nextSnapshot, inst.getSnapshot = getSnapshot, checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
}
function subscribeToStore(fiber, inst, subscribe) {
return subscribe(function() {
checkIfSnapshotChanged(inst) && (startUpdateTimerByLane(2, "updateSyncExternalStore()", fiber), forceStoreRerender(fiber));
});
}
function checkIfSnapshotChanged(inst) {
var latestGetSnapshot = inst.getSnapshot;
inst = inst.value;
try {
var nextValue = latestGetSnapshot();
return !objectIs(inst, nextValue);
} catch {
return !0;
}
}
function forceStoreRerender(fiber) {
var root = enqueueConcurrentRenderForLane(fiber, 2);
root !== null && scheduleUpdateOnFiber(root, fiber, 2);
}
function mountStateImpl(initialState) {
var hook = mountWorkInProgressHook();
if (typeof initialState == "function") {
var initialStateInitializer = initialState;
if (initialState = initialStateInitializer(), shouldDoubleInvokeUserFnsInHooksDEV) {
setIsStrictModeForDevtools(!0);
try {
initialStateInitializer();
} finally {
setIsStrictModeForDevtools(!1);
}
}
}
return hook.memoizedState = hook.baseState = initialState, hook.queue = {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: basicStateReducer,
lastRenderedState: initialState
}, hook;
}
function mountState(initialState) {
initialState = mountStateImpl(initialState);
var queue = initialState.queue, dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue);
return queue.dispatch = dispatch, [initialState.memoizedState, dispatch];
}
function mountOptimistic(passthrough) {
var hook = mountWorkInProgressHook();
hook.memoizedState = hook.baseState = passthrough;
var queue = {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: null,
lastRenderedState: null
};
return hook.queue = queue, hook = dispatchOptimisticSetState.bind(
null,
currentlyRenderingFiber,
!0,
queue
), queue.dispatch = hook, [passthrough, hook];
}
function updateOptimistic(passthrough, reducer2) {
var hook = updateWorkInProgressHook();
return updateOptimisticImpl(hook, currentHook, passthrough, reducer2);
}
function updateOptimisticImpl(hook, current2, passthrough, reducer2) {
return hook.baseState = passthrough, updateReducerImpl(
hook,
currentHook,
typeof reducer2 == "function" ? reducer2 : basicStateReducer
);
}
function rerenderOptimistic(passthrough, reducer2) {
var hook = updateWorkInProgressHook();
return currentHook !== null ? updateOptimisticImpl(hook, currentHook, passthrough, reducer2) : (hook.baseState = passthrough, [passthrough, hook.queue.dispatch]);
}
function dispatchActionState(fiber, actionQueue, setPendingState, setState, payload) {
if (isRenderPhaseUpdate(fiber))
throw Error("Cannot update form state while rendering.");
if (fiber = actionQueue.action, fiber !== null) {
var actionNode = {
payload,
action: fiber,
next: null,
isTransition: !0,
status: "pending",
value: null,
reason: null,
listeners: [],
then: function(listener) {
actionNode.listeners.push(listener);
}
};
ReactSharedInternals.T !== null ? setPendingState(!0) : actionNode.isTransition = !1, setState(actionNode), setPendingState = actionQueue.pending, setPendingState === null ? (actionNode.next = actionQueue.pending = actionNode, runActionStateAction(actionQueue, actionNode)) : (actionNode.next = setPendingState.next, actionQueue.pending = setPendingState.next = actionNode);
}
}
function runActionStateAction(actionQueue, node) {
var action = node.action, payload = node.payload, prevState = actionQueue.state;
if (node.isTransition) {
var prevTransition = ReactSharedInternals.T, currentTransition = {};
currentTransition._updatedFibers = /* @__PURE__ */ new Set(), ReactSharedInternals.T = currentTransition;
try {
var returnValue = action(prevState, payload), onStartTransitionFinish = ReactSharedInternals.S;
onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue), handleActionReturnValue(actionQueue, node, returnValue);
} catch (error) {
onActionError(actionQueue, node, error);
} finally {
prevTransition !== null && currentTransition.types !== null && (prevTransition.types !== null && prevTransition.types !== currentTransition.types && console.error(
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition, prevTransition === null && currentTransition._updatedFibers && (actionQueue = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < actionQueue && console.warn(
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
));
}
} else
try {
currentTransition = action(prevState, payload), handleActionReturnValue(actionQueue, node, currentTransition);
} catch (error$2) {
onActionError(actionQueue, node, error$2);
}
}
function handleActionReturnValue(actionQueue, node, returnValue) {
returnValue !== null && typeof returnValue == "object" && typeof returnValue.then == "function" ? (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(
function(nextState) {
onActionSuccess(actionQueue, node, nextState);
},
function(error) {
return onActionError(actionQueue, node, error);
}
), node.isTransition || console.error(
"An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop."
)) : onActionSuccess(actionQueue, node, returnValue);
}
function onActionSuccess(actionQueue, actionNode, nextState) {
actionNode.status = "fulfilled", actionNode.value = nextState, notifyActionListeners(actionNode), actionQueue.state = nextState, actionNode = actionQueue.pending, actionNode !== null && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState)));
}
function onActionError(actionQueue, actionNode, error) {
var last = actionQueue.pending;
if (actionQueue.pending = null, last !== null) {
last = last.next;
do
actionNode.status = "rejected", actionNode.reason = error, notifyActionListeners(actionNode), actionNode = actionNode.next;
while (actionNode !== last);
}
actionQueue.action = null;
}
function notifyActionListeners(actionNode) {
actionNode = actionNode.listeners;
for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])();
}
function actionStateReducer(oldState, newState) {
return newState;
}
function mountActionState(action, initialStateProp) {
if (isHydrating) {
var ssrFormState = workInProgressRoot.formState;
if (ssrFormState !== null) {
a: {
var isMatching = currentlyRenderingFiber;
if (isHydrating) {
if (nextHydratableInstance) {
var markerInstance = canHydrateFormStateMarker(
nextHydratableInstance,
rootOrSingletonContext
);
if (markerInstance) {
nextHydratableInstance = getNextHydratableSibling(markerInstance), isMatching = isFormStateMarkerMatching(markerInstance);
break a;
}
}
throwOnHydrationMismatch(isMatching);
}
isMatching = !1;
}
isMatching && (initialStateProp = ssrFormState[0]);
}
}
ssrFormState = mountWorkInProgressHook(), ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp, isMatching = {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: actionStateReducer,
lastRenderedState: initialStateProp
}, ssrFormState.queue = isMatching, ssrFormState = dispatchSetState.bind(
null,
currentlyRenderingFiber,
isMatching
), isMatching.dispatch = ssrFormState, isMatching = mountStateImpl(!1);
var setPendingState = dispatchOptimisticSetState.bind(
null,
currentlyRenderingFiber,
!1,
isMatching.queue
);
return isMatching = mountWorkInProgressHook(), markerInstance = {
state: initialStateProp,
dispatch: null,
action,
pending: null
}, isMatching.queue = markerInstance, ssrFormState = dispatchActionState.bind(
null,
currentlyRenderingFiber,
markerInstance,
setPendingState,
ssrFormState
), markerInstance.dispatch = ssrFormState, isMatching.memoizedState = action, [initialStateProp, ssrFormState, !1];
}
function updateActionState(action) {
var stateHook = updateWorkInProgressHook();
return updateActionStateImpl(stateHook, currentHook, action);
}
function updateActionStateImpl(stateHook, currentStateHook, action) {
if (currentStateHook = updateReducerImpl(
stateHook,
currentStateHook,
actionStateReducer
)[0], stateHook = updateReducer(basicStateReducer)[0], typeof currentStateHook == "object" && currentStateHook !== null && typeof currentStateHook.then == "function")
try {
var state = useThenable(currentStateHook);
} catch (x) {
throw x === SuspenseException ? SuspenseActionException : x;
}
else state = currentStateHook;
currentStateHook = updateWorkInProgressHook();
var actionQueue = currentStateHook.queue, dispatch = actionQueue.dispatch;
return action !== currentStateHook.memoizedState && (currentlyRenderingFiber.flags |= 2048, pushSimpleEffect(
HasEffect | Passive,
{ destroy: void 0 },
actionStateActionEffect.bind(null, actionQueue, action),
null
)), [state, dispatch, stateHook];
}
function actionStateActionEffect(actionQueue, action) {
actionQueue.action = action;
}
function rerenderActionState(action) {
var stateHook = updateWorkInProgressHook(), currentStateHook = currentHook;
if (currentStateHook !== null)
return updateActionStateImpl(stateHook, currentStateHook, action);
updateWorkInProgressHook(), stateHook = stateHook.memoizedState, currentStateHook = updateWorkInProgressHook();
var dispatch = currentStateHook.queue.dispatch;
return currentStateHook.memoizedState = action, [stateHook, dispatch, !1];
}
function pushSimpleEffect(tag, inst, create3, deps) {
return tag = { tag, create: create3, deps, inst, next: null }, inst = currentlyRenderingFiber.updateQueue, inst === null && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst), create3 = inst.lastEffect, create3 === null ? inst.lastEffect = tag.next = tag : (deps = create3.next, create3.next = tag, tag.next = deps, inst.lastEffect = tag), tag;
}
function mountRef(initialValue) {
var hook = mountWorkInProgressHook();
return initialValue = { current: initialValue }, hook.memoizedState = initialValue;
}
function mountEffectImpl(fiberFlags, hookFlags, create3, deps) {
var hook = mountWorkInProgressHook();
currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(
HasEffect | hookFlags,
{ destroy: void 0 },
create3,
deps === void 0 ? null : deps
);
}
function updateEffectImpl(fiberFlags, hookFlags, create3, deps) {
var hook = updateWorkInProgressHook();
deps = deps === void 0 ? null : deps;
var inst = hook.memoizedState.inst;
currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create3, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(
HasEffect | hookFlags,
inst,
create3,
deps
));
}
function mountEffect(create3, deps) {
(currentlyRenderingFiber.mode & 16) !== NoMode ? mountEffectImpl(276826112, Passive, create3, deps) : mountEffectImpl(8390656, Passive, create3, deps);
}
function useEffectEventImpl(payload) {
currentlyRenderingFiber.flags |= 4;
var componentUpdateQueue = currentlyRenderingFiber.updateQueue;
if (componentUpdateQueue === null)
componentUpdateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = componentUpdateQueue, componentUpdateQueue.events = [payload];
else {
var events = componentUpdateQueue.events;
events === null ? componentUpdateQueue.events = [payload] : events.push(payload);
}
}
function mountEvent(callback) {
var hook = mountWorkInProgressHook(), ref = { impl: callback };
return hook.memoizedState = ref, function() {
if ((executionContext & RenderContext) !== NoContext)
throw Error(
"A function wrapped in useEffectEvent can't be called during rendering."
);
return ref.impl.apply(void 0, arguments);
};
}
function updateEvent(callback) {
var ref = updateWorkInProgressHook().memoizedState;
return useEffectEventImpl({ ref, nextImpl: callback }), function() {
if ((executionContext & RenderContext) !== NoContext)
throw Error(
"A function wrapped in useEffectEvent can't be called during rendering."
);
return ref.impl.apply(void 0, arguments);
};
}
function mountLayoutEffect(create3, deps) {
var fiberFlags = 4194308;
return (currentlyRenderingFiber.mode & 16) !== NoMode && (fiberFlags |= 134217728), mountEffectImpl(fiberFlags, Layout, create3, deps);
}
function imperativeHandleEffect(create3, ref) {
if (typeof ref == "function") {
create3 = create3();
var refCleanup = ref(create3);
return function() {
typeof refCleanup == "function" ? refCleanup() : ref(null);
};
}
if (ref != null)
return ref.hasOwnProperty("current") || console.error(
"Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.",
"an object with keys {" + Object.keys(ref).join(", ") + "}"
), create3 = create3(), ref.current = create3, function() {
ref.current = null;
};
}
function mountImperativeHandle(ref, create3, deps) {
typeof create3 != "function" && console.error(
"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",
create3 !== null ? typeof create3 : "null"
), deps = deps != null ? deps.concat([ref]) : null;
var fiberFlags = 4194308;
(currentlyRenderingFiber.mode & 16) !== NoMode && (fiberFlags |= 134217728), mountEffectImpl(
fiberFlags,
Layout,
imperativeHandleEffect.bind(null, create3, ref),
deps
);
}
function updateImperativeHandle(ref, create3, deps) {
typeof create3 != "function" && console.error(
"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",
create3 !== null ? typeof create3 : "null"
), deps = deps != null ? deps.concat([ref]) : null, updateEffectImpl(
4,
Layout,
imperativeHandleEffect.bind(null, create3, ref),
deps
);
}
function mountCallback(callback, deps) {
return mountWorkInProgressHook().memoizedState = [
callback,
deps === void 0 ? null : deps
], callback;
}
function updateCallback(callback, deps) {
var hook = updateWorkInProgressHook();
deps = deps === void 0 ? null : deps;
var prevState = hook.memoizedState;
return deps !== null && areHookInputsEqual(deps, prevState[1]) ? prevState[0] : (hook.memoizedState = [callback, deps], callback);
}
function mountMemo(nextCreate, deps) {
var hook = mountWorkInProgressHook();
deps = deps === void 0 ? null : deps;
var nextValue = nextCreate();
if (shouldDoubleInvokeUserFnsInHooksDEV) {
setIsStrictModeForDevtools(!0);
try {
nextCreate();
} finally {
setIsStrictModeForDevtools(!1);
}
}
return hook.memoizedState = [nextValue, deps], nextValue;
}
function updateMemo(nextCreate, deps) {
var hook = updateWorkInProgressHook();
deps = deps === void 0 ? null : deps;
var prevState = hook.memoizedState;
if (deps !== null && areHookInputsEqual(deps, prevState[1]))
return prevState[0];
if (prevState = nextCreate(), shouldDoubleInvokeUserFnsInHooksDEV) {
setIsStrictModeForDevtools(!0);
try {
nextCreate();
} finally {
setIsStrictModeForDevtools(!1);
}
}
return hook.memoizedState = [prevState, deps], prevState;
}
function mountDeferredValue(value, initialValue) {
var hook = mountWorkInProgressHook();
return mountDeferredValueImpl(hook, value, initialValue);
}
function updateDeferredValue(value, initialValue) {
var hook = updateWorkInProgressHook();
return updateDeferredValueImpl(
hook,
currentHook.memoizedState,
value,
initialValue
);
}
function rerenderDeferredValue(value, initialValue) {
var hook = updateWorkInProgressHook();
return currentHook === null ? mountDeferredValueImpl(hook, value, initialValue) : updateDeferredValueImpl(
hook,
currentHook.memoizedState,
value,
initialValue
);
}
function mountDeferredValueImpl(hook, value, initialValue) {
return initialValue === void 0 || (renderLanes & 1073741824) !== 0 && (workInProgressRootRenderLanes & 261930) === 0 ? hook.memoizedState = value : (hook.memoizedState = initialValue, hook = requestDeferredLane(), currentlyRenderingFiber.lanes |= hook, workInProgressRootSkippedLanes |= hook, initialValue);
}
function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
return objectIs(value, prevValue) ? value : currentTreeHiddenStackCursor.current !== null ? (hook = mountDeferredValueImpl(hook, value, initialValue), objectIs(hook, prevValue) || (didReceiveUpdate = !0), hook) : (renderLanes & 42) === 0 || (renderLanes & 1073741824) !== 0 && (workInProgressRootRenderLanes & 261930) === 0 ? (didReceiveUpdate = !0, hook.memoizedState = value) : (hook = requestDeferredLane(), currentlyRenderingFiber.lanes |= hook, workInProgressRootSkippedLanes |= hook, prevValue);
}
function releaseAsyncTransition() {
ReactSharedInternals.asyncTransitions--;
}
function startTransition(fiber, queue, pendingState, finishedState, callback) {
var previousPriority = getCurrentUpdatePriority();
setCurrentUpdatePriority(
previousPriority !== 0 && 8 > previousPriority ? previousPriority : 8
);
var prevTransition = ReactSharedInternals.T, currentTransition = {};
currentTransition._updatedFibers = /* @__PURE__ */ new Set(), ReactSharedInternals.T = currentTransition, dispatchOptimisticSetState(fiber, !1, queue, pendingState);
try {
var returnValue = callback(), onStartTransitionFinish = ReactSharedInternals.S;
if (onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue), returnValue !== null && typeof returnValue == "object" && typeof returnValue.then == "function") {
ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition);
var thenableForFinishedState = chainThenableValue(
returnValue,
finishedState
);
dispatchSetStateInternal(
fiber,
queue,
thenableForFinishedState,
requestUpdateLane(fiber)
);
} else
dispatchSetStateInternal(
fiber,
queue,
finishedState,
requestUpdateLane(fiber)
);
} catch (error) {
dispatchSetStateInternal(
fiber,
queue,
{ then: function() {
}, status: "rejected", reason: error },
requestUpdateLane(fiber)
);
} finally {
setCurrentUpdatePriority(previousPriority), prevTransition !== null && currentTransition.types !== null && (prevTransition.types !== null && prevTransition.types !== currentTransition.types && console.error(
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition, prevTransition === null && currentTransition._updatedFibers && (fiber = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < fiber && console.warn(
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
));
}
}
function ensureFormComponentIsStateful(formFiber) {
var existingStateHook = formFiber.memoizedState;
if (existingStateHook !== null) return existingStateHook;
existingStateHook = {
memoizedState: NotPendingTransition,
baseState: NotPendingTransition,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: basicStateReducer,
lastRenderedState: NotPendingTransition
},
next: null
};
var initialResetState = {};
return existingStateHook.next = {
memoizedState: initialResetState,
baseState: initialResetState,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: basicStateReducer,
lastRenderedState: initialResetState
},
next: null
}, formFiber.memoizedState = existingStateHook, formFiber = formFiber.alternate, formFiber !== null && (formFiber.memoizedState = existingStateHook), existingStateHook;
}
function mountTransition() {
var stateHook = mountStateImpl(!1);
return stateHook = startTransition.bind(
null,
currentlyRenderingFiber,
stateHook.queue,
!0,
!1
), mountWorkInProgressHook().memoizedState = stateHook, [!1, stateHook];
}
function updateTransition() {
var booleanOrThenable = updateReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState;
return [
typeof booleanOrThenable == "boolean" ? booleanOrThenable : useThenable(booleanOrThenable),
start
];
}
function rerenderTransition() {
var booleanOrThenable = rerenderReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState;
return [
typeof booleanOrThenable == "boolean" ? booleanOrThenable : useThenable(booleanOrThenable),
start
];
}
function useHostTransitionStatus() {
return readContext(HostTransitionContext);
}
function mountId() {
var hook = mountWorkInProgressHook(), identifierPrefix = workInProgressRoot.identifierPrefix;
if (isHydrating) {
var treeId = treeContextOverflow, idWithLeadingBit = treeContextId;
treeId = (idWithLeadingBit & ~(1 << 32 - clz32(idWithLeadingBit) - 1)).toString(32) + treeId, identifierPrefix = "_" + identifierPrefix + "R_" + treeId, treeId = localIdCounter++, 0 < treeId && (identifierPrefix += "H" + treeId.toString(32)), identifierPrefix += "_";
} else
treeId = globalClientIdCounter++, identifierPrefix = "_" + identifierPrefix + "r_" + treeId.toString(32) + "_";
return hook.memoizedState = identifierPrefix;
}
function mountRefresh() {
return mountWorkInProgressHook().memoizedState = refreshCache.bind(
null,
currentlyRenderingFiber
);
}
function refreshCache(fiber, seedKey) {
for (var provider = fiber.return; provider !== null; ) {
switch (provider.tag) {
case 24:
case 3:
var lane = requestUpdateLane(provider), refreshUpdate = createUpdate(lane), root = enqueueUpdate(provider, refreshUpdate, lane);
root !== null && (startUpdateTimerByLane(lane, "refresh()", fiber), scheduleUpdateOnFiber(root, provider, lane), entangleTransitions(root, provider, lane)), fiber = createCache(), seedKey != null && root !== null && console.error(
"The seed argument is not enabled outside experimental channels."
), refreshUpdate.payload = { cache: fiber };
return;
}
provider = provider.return;
}
}
function dispatchReducerAction(fiber, queue, action) {
var args = arguments;
typeof args[3] == "function" && console.error(
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
), args = requestUpdateLane(fiber);
var update = {
lane: args,
revertLane: 0,
gesture: null,
action,
hasEagerState: !1,
eagerState: null,
next: null
};
isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, update) : (update = enqueueConcurrentHookUpdate(fiber, queue, update, args), update !== null && (startUpdateTimerByLane(args, "dispatch()", fiber), scheduleUpdateOnFiber(update, fiber, args), entangleTransitionUpdate(update, queue, args)));
}
function dispatchSetState(fiber, queue, action) {
var args = arguments;
typeof args[3] == "function" && console.error(
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
), args = requestUpdateLane(fiber), dispatchSetStateInternal(fiber, queue, action, args) && startUpdateTimerByLane(args, "setState()", fiber);
}
function dispatchSetStateInternal(fiber, queue, action, lane) {
var update = {
lane,
revertLane: 0,
gesture: null,
action,
hasEagerState: !1,
eagerState: null,
next: null
};
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
else {
var alternate = fiber.alternate;
if (fiber.lanes === 0 && (alternate === null || alternate.lanes === 0) && (alternate = queue.lastRenderedReducer, alternate !== null)) {
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action);
if (update.hasEagerState = !0, update.eagerState = eagerState, objectIs(eagerState, currentState))
return enqueueUpdate$1(fiber, queue, update, 0), workInProgressRoot === null && finishQueueingConcurrentUpdates(), !1;
} catch {
} finally {
ReactSharedInternals.H = prevDispatcher;
}
}
if (action = enqueueConcurrentHookUpdate(fiber, queue, update, lane), action !== null)
return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), !0;
}
return !1;
}
function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) {
if (ReactSharedInternals.T === null && currentEntangledLane === 0 && console.error(
"An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."
), action = {
lane: 2,
revertLane: requestTransitionLane(),
gesture: null,
action,
hasEagerState: !1,
eagerState: null,
next: null
}, isRenderPhaseUpdate(fiber)) {
if (throwIfDuringRender)
throw Error("Cannot update optimistic state while rendering.");
console.error("Cannot call startTransition while rendering.");
} else
throwIfDuringRender = enqueueConcurrentHookUpdate(
fiber,
queue,
action,
2
), throwIfDuringRender !== null && (startUpdateTimerByLane(2, "setOptimistic()", fiber), scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2));
}
function isRenderPhaseUpdate(fiber) {
var alternate = fiber.alternate;
return fiber === currentlyRenderingFiber || alternate !== null && alternate === currentlyRenderingFiber;
}
function enqueueRenderPhaseUpdate(queue, update) {
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
var pending = queue.pending;
pending === null ? update.next = update : (update.next = pending.next, pending.next = update), queue.pending = update;
}
function entangleTransitionUpdate(root, queue, lane) {
if ((lane & 4194048) !== 0) {
var queueLanes = queue.lanes;
queueLanes &= root.pendingLanes, lane |= queueLanes, queue.lanes = lane, markRootEntangled(root, lane);
}
}
function warnOnInvalidCallback(callback) {
if (callback !== null && typeof callback != "function") {
var key = String(callback);
didWarnOnInvalidCallback.has(key) || (didWarnOnInvalidCallback.add(key), console.error(
"Expected the last optional `callback` argument to be a function. Instead received: %s.",
callback
));
}
}
function applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, nextProps) {
var prevState = workInProgress2.memoizedState, partialState = getDerivedStateFromProps(nextProps, prevState);
if (workInProgress2.mode & 8) {
setIsStrictModeForDevtools(!0);
try {
partialState = getDerivedStateFromProps(nextProps, prevState);
} finally {
setIsStrictModeForDevtools(!1);
}
}
partialState === void 0 && (ctor = getComponentNameFromType(ctor) || "Component", didWarnAboutUndefinedDerivedState.has(ctor) || (didWarnAboutUndefinedDerivedState.add(ctor), console.error(
"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
ctor
))), prevState = partialState == null ? prevState : assign({}, prevState, partialState), workInProgress2.memoizedState = prevState, workInProgress2.lanes === 0 && (workInProgress2.updateQueue.baseState = prevState);
}
function checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) {
var instance = workInProgress2.stateNode;
if (typeof instance.shouldComponentUpdate == "function") {
if (oldProps = instance.shouldComponentUpdate(
newProps,
newState,
nextContext
), workInProgress2.mode & 8) {
setIsStrictModeForDevtools(!0);
try {
oldProps = instance.shouldComponentUpdate(
newProps,
newState,
nextContext
);
} finally {
setIsStrictModeForDevtools(!1);
}
}
return oldProps === void 0 && console.error(
"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",
getComponentNameFromType(ctor) || "Component"
), oldProps;
}
return ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0;
}
function callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext) {
var oldState = instance.state;
typeof instance.componentWillReceiveProps == "function" && instance.componentWillReceiveProps(newProps, nextContext), typeof instance.UNSAFE_componentWillReceiveProps == "function" && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext), instance.state !== oldState && (workInProgress2 = getComponentNameFromFiber(workInProgress2) || "Component", didWarnAboutStateAssignmentForComponent.has(workInProgress2) || (didWarnAboutStateAssignmentForComponent.add(workInProgress2), console.error(
"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
workInProgress2
)), classComponentUpdater.enqueueReplaceState(
instance,
instance.state,
null
));
}
function resolveClassComponentProps(Component, baseProps) {
var newProps = baseProps;
if ("ref" in baseProps) {
newProps = {};
for (var propName in baseProps)
propName !== "ref" && (newProps[propName] = baseProps[propName]);
}
if (Component = Component.defaultProps) {
newProps === baseProps && (newProps = assign({}, newProps));
for (var _propName in Component)
newProps[_propName] === void 0 && (newProps[_propName] = Component[_propName]);
}
return newProps;
}
function logUncaughtError(root, errorInfo) {
try {
componentName = errorInfo.source ? getComponentNameFromFiber(errorInfo.source) : null, errorBoundaryName = null;
var error = errorInfo.value;
if (ReactSharedInternals.actQueue !== null)
ReactSharedInternals.thrownErrors.push(error);
else {
var onUncaughtError = root.onUncaughtError;
onUncaughtError(error, { componentStack: errorInfo.stack });
}
} catch (e) {
setTimeout(function() {
throw e;
});
}
}
function logCaughtError(root, boundary, errorInfo) {
try {
componentName = errorInfo.source ? getComponentNameFromFiber(errorInfo.source) : null, errorBoundaryName = getComponentNameFromFiber(boundary);
var onCaughtError = root.onCaughtError;
onCaughtError(errorInfo.value, {
componentStack: errorInfo.stack,
errorBoundary: boundary.tag === 1 ? boundary.stateNode : null
});
} catch (e) {
setTimeout(function() {
throw e;
});
}
}
function createRootErrorUpdate(root, errorInfo, lane) {
return lane = createUpdate(lane), lane.tag = CaptureUpdate, lane.payload = { element: null }, lane.callback = function() {
runWithFiberInDEV(errorInfo.source, logUncaughtError, root, errorInfo);
}, lane;
}
function createClassErrorUpdate(lane) {
return lane = createUpdate(lane), lane.tag = CaptureUpdate, lane;
}
function initializeClassErrorUpdate(update, root, fiber, errorInfo) {
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
if (typeof getDerivedStateFromError == "function") {
var error = errorInfo.value;
update.payload = function() {
return getDerivedStateFromError(error);
}, update.callback = function() {
markFailedErrorBoundaryForHotReloading(fiber), runWithFiberInDEV(
errorInfo.source,
logCaughtError,
root,
fiber,
errorInfo
);
};
}
var inst = fiber.stateNode;
inst !== null && typeof inst.componentDidCatch == "function" && (update.callback = function() {
markFailedErrorBoundaryForHotReloading(fiber), runWithFiberInDEV(
errorInfo.source,
logCaughtError,
root,
fiber,
errorInfo
), typeof getDerivedStateFromError != "function" && (legacyErrorBoundariesThatAlreadyFailed === null ? legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this)), callComponentDidCatchInDEV(this, errorInfo), typeof getDerivedStateFromError == "function" || (fiber.lanes & 2) === 0 && console.error(
"%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",
getComponentNameFromFiber(fiber) || "Unknown"
);
});
}
function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {
if (sourceFiber.flags |= 32768, isDevToolsPresent && restorePendingUpdaters(root, rootRenderLanes), value !== null && typeof value == "object" && typeof value.then == "function") {
if (returnFiber = sourceFiber.alternate, returnFiber !== null && propagateParentContextChanges(
returnFiber,
sourceFiber,
rootRenderLanes,
!0
), isHydrating && (didSuspendOrErrorDEV = !0), sourceFiber = suspenseHandlerStackCursor.current, sourceFiber !== null) {
switch (sourceFiber.tag) {
case 31:
case 13:
return shellBoundary === null ? renderDidSuspendDelayIfPossible() : sourceFiber.alternate === null && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootSuspended), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, returnFiber === null ? sourceFiber.updateQueue = /* @__PURE__ */ new Set([value]) : returnFiber.add(value), attachPingListener(root, value, rootRenderLanes)), !1;
case 22:
return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, returnFiber === null ? (returnFiber = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([value])
}, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, sourceFiber === null ? returnFiber.retryQueue = /* @__PURE__ */ new Set([value]) : sourceFiber.add(value)), attachPingListener(root, value, rootRenderLanes)), !1;
}
throw Error(
"Unexpected Suspense handler tag (" + sourceFiber.tag + "). This is a bug in React."
);
}
return attachPingListener(root, value, rootRenderLanes), renderDidSuspendDelayIfPossible(), !1;
}
if (isHydrating)
return didSuspendOrErrorDEV = !0, returnFiber = suspenseHandlerStackCursor.current, returnFiber !== null ? ((returnFiber.flags & 65536) === 0 && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && queueHydrationError(
createCapturedValueAtFiber(
Error(
"There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",
{ cause: value }
),
sourceFiber
)
)) : (value !== HydrationMismatchException && queueHydrationError(
createCapturedValueAtFiber(
Error(
"There was an error while hydrating but React was able to recover by instead client rendering the entire root.",
{ cause: value }
),
sourceFiber
)
), root = root.current.alternate, root.flags |= 65536, rootRenderLanes &= -rootRenderLanes, root.lanes |= rootRenderLanes, value = createCapturedValueAtFiber(value, sourceFiber), rootRenderLanes = createRootErrorUpdate(
root.stateNode,
value,
rootRenderLanes
), enqueueCapturedUpdate(root, rootRenderLanes), workInProgressRootExitStatus !== RootSuspendedWithDelay && (workInProgressRootExitStatus = RootErrored)), !1;
var error = createCapturedValueAtFiber(
Error(
"There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",
{ cause: value }
),
sourceFiber
);
if (workInProgressRootConcurrentErrors === null ? workInProgressRootConcurrentErrors = [error] : workInProgressRootConcurrentErrors.push(error), workInProgressRootExitStatus !== RootSuspendedWithDelay && (workInProgressRootExitStatus = RootErrored), returnFiber === null) return !0;
value = createCapturedValueAtFiber(value, sourceFiber), sourceFiber = returnFiber;
do {
switch (sourceFiber.tag) {
case 3:
return sourceFiber.flags |= 65536, root = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root, root = createRootErrorUpdate(
sourceFiber.stateNode,
value,
root
), enqueueCapturedUpdate(sourceFiber, root), !1;
case 1:
if (returnFiber = sourceFiber.type, error = sourceFiber.stateNode, (sourceFiber.flags & 128) === 0 && (typeof returnFiber.getDerivedStateFromError == "function" || error !== null && typeof error.componentDidCatch == "function" && (legacyErrorBoundariesThatAlreadyFailed === null || !legacyErrorBoundariesThatAlreadyFailed.has(error))))
return sourceFiber.flags |= 65536, rootRenderLanes &= -rootRenderLanes, sourceFiber.lanes |= rootRenderLanes, rootRenderLanes = createClassErrorUpdate(rootRenderLanes), initializeClassErrorUpdate(
rootRenderLanes,
root,
sourceFiber,
value
), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), !1;
}
sourceFiber = sourceFiber.return;
} while (sourceFiber !== null);
return !1;
}
function reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2) {
workInProgress2.child = current2 === null ? mountChildFibers(workInProgress2, null, nextChildren, renderLanes2) : reconcileChildFibers(
workInProgress2,
current2.child,
nextChildren,
renderLanes2
);
}
function updateForwardRef(current2, workInProgress2, Component, nextProps, renderLanes2) {
Component = Component.render;
var ref = workInProgress2.ref;
if ("ref" in nextProps) {
var propsWithoutRef = {};
for (var key in nextProps)
key !== "ref" && (propsWithoutRef[key] = nextProps[key]);
} else propsWithoutRef = nextProps;
return prepareToReadContext(workInProgress2), nextProps = renderWithHooks(
current2,
workInProgress2,
Component,
propsWithoutRef,
ref,
renderLanes2
), key = checkDidRenderIdHook(), current2 !== null && !didReceiveUpdate ? (bailoutHooks(current2, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2)) : (isHydrating && key && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current2, workInProgress2, nextProps, renderLanes2), workInProgress2.child);
}
function updateMemoComponent(current2, workInProgress2, Component, nextProps, renderLanes2) {
if (current2 === null) {
var type = Component.type;
return typeof type == "function" && !shouldConstruct(type) && type.defaultProps === void 0 && Component.compare === null ? (Component = resolveFunctionForHotReloading(type), workInProgress2.tag = 15, workInProgress2.type = Component, validateFunctionComponentInDev(workInProgress2, type), updateSimpleMemoComponent(
current2,
workInProgress2,
Component,
nextProps,
renderLanes2
)) : (current2 = createFiberFromTypeAndProps(
Component.type,
null,
nextProps,
workInProgress2,
workInProgress2.mode,
renderLanes2
), current2.ref = workInProgress2.ref, current2.return = workInProgress2, workInProgress2.child = current2);
}
if (type = current2.child, !checkScheduledUpdateOrContext(current2, renderLanes2)) {
var prevProps = type.memoizedProps;
if (Component = Component.compare, Component = Component !== null ? Component : shallowEqual, Component(prevProps, nextProps) && current2.ref === workInProgress2.ref)
return bailoutOnAlreadyFinishedWork(
current2,
workInProgress2,
renderLanes2
);
}
return workInProgress2.flags |= 1, current2 = createWorkInProgress(type, nextProps), current2.ref = workInProgress2.ref, current2.return = workInProgress2, workInProgress2.child = current2;
}
function updateSimpleMemoComponent(current2, workInProgress2, Component, nextProps, renderLanes2) {
if (current2 !== null) {
var prevProps = current2.memoizedProps;
if (shallowEqual(prevProps, nextProps) && current2.ref === workInProgress2.ref && workInProgress2.type === current2.type)
if (didReceiveUpdate = !1, workInProgress2.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current2, renderLanes2))
(current2.flags & 131072) !== 0 && (didReceiveUpdate = !0);
else
return workInProgress2.lanes = current2.lanes, bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2);
}
return updateFunctionComponent(
current2,
workInProgress2,
Component,
nextProps,
renderLanes2
);
}
function updateOffscreenComponent(current2, workInProgress2, renderLanes2, nextProps) {
var nextChildren = nextProps.children, prevState = current2 !== null ? current2.memoizedState : null;
if (current2 === null && workInProgress2.stateNode === null && (workInProgress2.stateNode = {
_visibility: OffscreenVisible,
_pendingMarkers: null,
_retryCache: null,
_transitions: null
}), nextProps.mode === "hidden") {
if ((workInProgress2.flags & 128) !== 0) {
if (prevState = prevState !== null ? prevState.baseLanes | renderLanes2 : renderLanes2, current2 !== null) {
for (nextProps = workInProgress2.child = current2.child, nextChildren = 0; nextProps !== null; )
nextChildren = nextChildren | nextProps.lanes | nextProps.childLanes, nextProps = nextProps.sibling;
nextProps = nextChildren & ~prevState;
} else nextProps = 0, workInProgress2.child = null;
return deferHiddenOffscreenComponent(
current2,
workInProgress2,
prevState,
renderLanes2,
nextProps
);
}
if ((renderLanes2 & 536870912) !== 0)
workInProgress2.memoizedState = { baseLanes: 0, cachePool: null }, current2 !== null && pushTransition(
workInProgress2,
prevState !== null ? prevState.cachePool : null
), prevState !== null ? pushHiddenContext(workInProgress2, prevState) : reuseHiddenContextOnStack(workInProgress2), pushOffscreenSuspenseHandler(workInProgress2);
else
return nextProps = workInProgress2.lanes = 536870912, deferHiddenOffscreenComponent(
current2,
workInProgress2,
prevState !== null ? prevState.baseLanes | renderLanes2 : renderLanes2,
renderLanes2,
nextProps
);
} else
prevState !== null ? (pushTransition(workInProgress2, prevState.cachePool), pushHiddenContext(workInProgress2, prevState), reuseSuspenseHandlerOnStack(workInProgress2), workInProgress2.memoizedState = null) : (current2 !== null && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(workInProgress2), reuseSuspenseHandlerOnStack(workInProgress2));
return reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2), workInProgress2.child;
}
function bailoutOffscreenComponent(current2, workInProgress2) {
return current2 !== null && current2.tag === 22 || workInProgress2.stateNode !== null || (workInProgress2.stateNode = {
_visibility: OffscreenVisible,
_pendingMarkers: null,
_retryCache: null,
_transitions: null
}), workInProgress2.sibling;
}
function deferHiddenOffscreenComponent(current2, workInProgress2, nextBaseLanes, renderLanes2, remainingChildLanes) {
var JSCompiler_inline_result = peekCacheFromPool();
return JSCompiler_inline_result = JSCompiler_inline_result === null ? null : {
parent: isPrimaryRenderer ? CacheContext._currentValue : CacheContext._currentValue2,
pool: JSCompiler_inline_result
}, workInProgress2.memoizedState = {
baseLanes: nextBaseLanes,
cachePool: JSCompiler_inline_result
}, current2 !== null && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(workInProgress2), pushOffscreenSuspenseHandler(workInProgress2), current2 !== null && propagateParentContextChanges(current2, workInProgress2, renderLanes2, !0), workInProgress2.childLanes = remainingChildLanes, null;
}
function mountActivityChildren(workInProgress2, nextProps) {
var hiddenProp = nextProps.hidden;
return hiddenProp !== void 0 && console.error(
`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
- <Activity %s>
+ <Activity %s>`,
hiddenProp === !0 ? "hidden" : hiddenProp === !1 ? "hidden={false}" : "hidden={...}",
hiddenProp ? 'mode="hidden"' : 'mode="visible"'
), nextProps = mountWorkInProgressOffscreenFiber(
{ mode: nextProps.mode, children: nextProps.children },
workInProgress2.mode
), nextProps.ref = workInProgress2.ref, workInProgress2.child = nextProps, nextProps.return = workInProgress2, nextProps;
}
function retryActivityComponentWithoutHydrating(current2, workInProgress2, renderLanes2) {
return reconcileChildFibers(workInProgress2, current2.child, null, renderLanes2), current2 = mountActivityChildren(
workInProgress2,
workInProgress2.pendingProps
), current2.flags |= 2, popSuspenseHandler(workInProgress2), workInProgress2.memoizedState = null, current2;
}
function updateActivityComponent(current2, workInProgress2, renderLanes2) {
var nextProps = workInProgress2.pendingProps, didSuspend = (workInProgress2.flags & 128) !== 0;
if (workInProgress2.flags &= -129, current2 === null) {
if (isHydrating) {
if (nextProps.mode === "hidden")
return current2 = mountActivityChildren(workInProgress2, nextProps), workInProgress2.lanes = 536870912, bailoutOffscreenComponent(null, current2);
if (pushDehydratedActivitySuspenseHandler(workInProgress2), (current2 = nextHydratableInstance) ? (renderLanes2 = canHydrateActivityInstance(
current2,
rootOrSingletonContext
), renderLanes2 !== null && (nextProps = {
dehydrated: renderLanes2,
treeContext: getSuspendedTreeContext(),
retryLane: 536870912,
hydrationErrors: null
}, workInProgress2.memoizedState = nextProps, nextProps = createFiberFromDehydratedFragment(renderLanes2), nextProps.return = workInProgress2, workInProgress2.child = nextProps, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : renderLanes2 = null, renderLanes2 === null)
throw warnNonHydratedInstance(workInProgress2, current2), throwOnHydrationMismatch(workInProgress2);
return workInProgress2.lanes = 536870912, null;
}
return mountActivityChildren(workInProgress2, nextProps);
}
var prevState = current2.memoizedState;
if (prevState !== null) {
var activityInstance = prevState.dehydrated;
if (pushDehydratedActivitySuspenseHandler(workInProgress2), didSuspend)
if (workInProgress2.flags & 256)
workInProgress2.flags &= -257, workInProgress2 = retryActivityComponentWithoutHydrating(
current2,
workInProgress2,
renderLanes2
);
else if (workInProgress2.memoizedState !== null)
workInProgress2.child = current2.child, workInProgress2.flags |= 128, workInProgress2 = null;
else
throw Error(
"Client rendering an Activity suspended it again. This is a bug in React."
);
else if (warnIfHydrating(), (renderLanes2 & 536870912) !== 0 && markRenderDerivedCause(workInProgress2), didReceiveUpdate || propagateParentContextChanges(
current2,
workInProgress2,
renderLanes2,
!1
), didSuspend = (renderLanes2 & current2.childLanes) !== 0, didReceiveUpdate || didSuspend) {
if (nextProps = workInProgressRoot, nextProps !== null && (activityInstance = getBumpedLaneForHydration(
nextProps,
renderLanes2
), activityInstance !== 0 && activityInstance !== prevState.retryLane))
throw prevState.retryLane = activityInstance, enqueueConcurrentRenderForLane(current2, activityInstance), scheduleUpdateOnFiber(nextProps, current2, activityInstance), SelectiveHydrationException;
renderDidSuspendDelayIfPossible(), workInProgress2 = retryActivityComponentWithoutHydrating(
current2,
workInProgress2,
renderLanes2
);
} else
current2 = prevState.treeContext, supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinActivityInstance(
activityInstance
), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, didSuspendOrErrorDEV = !1, hydrationDiffRootDEV = null, rootOrSingletonContext = !1, current2 !== null && restoreSuspendedTreeContext(workInProgress2, current2)), workInProgress2 = mountActivityChildren(workInProgress2, nextProps), workInProgress2.flags |= 4096;
return workInProgress2;
}
return prevState = current2.child, nextProps = { mode: nextProps.mode, children: nextProps.children }, (renderLanes2 & 536870912) !== 0 && (renderLanes2 & current2.lanes) !== 0 && markRenderDerivedCause(workInProgress2), current2 = createWorkInProgress(prevState, nextProps), current2.ref = workInProgress2.ref, workInProgress2.child = current2, current2.return = workInProgress2, current2;
}
function markRef(current2, workInProgress2) {
var ref = workInProgress2.ref;
if (ref === null)
current2 !== null && current2.ref !== null && (workInProgress2.flags |= 4194816);
else {
if (typeof ref != "function" && typeof ref != "object")
throw Error(
"Expected ref to be a function, an object returned by React.createRef(), or undefined/null."
);
(current2 === null || current2.ref !== ref) && (workInProgress2.flags |= 4194816);
}
}
function updateFunctionComponent(current2, workInProgress2, Component, nextProps, renderLanes2) {
if (Component.prototype && typeof Component.prototype.render == "function") {
var componentName2 = getComponentNameFromType(Component) || "Unknown";
didWarnAboutBadClass[componentName2] || (console.error(
"The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",
componentName2,
componentName2
), didWarnAboutBadClass[componentName2] = !0);
}
return workInProgress2.mode & 8 && ReactStrictModeWarnings.recordLegacyContextWarning(
workInProgress2,
null
), current2 === null && (validateFunctionComponentInDev(workInProgress2, workInProgress2.type), Component.contextTypes && (componentName2 = getComponentNameFromType(Component) || "Unknown", didWarnAboutContextTypes[componentName2] || (didWarnAboutContextTypes[componentName2] = !0, console.error(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName2
)))), prepareToReadContext(workInProgress2), Component = renderWithHooks(
current2,
workInProgress2,
Component,
nextProps,
void 0,
renderLanes2
), nextProps = checkDidRenderIdHook(), current2 !== null && !didReceiveUpdate ? (bailoutHooks(current2, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2)) : (isHydrating && nextProps && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current2, workInProgress2, Component, renderLanes2), workInProgress2.child);
}
function replayFunctionComponent(current2, workInProgress2, nextProps, Component, secondArg, renderLanes2) {
return prepareToReadContext(workInProgress2), hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = current2 !== null && current2.type !== workInProgress2.type, workInProgress2.updateQueue = null, nextProps = renderWithHooksAgain(
workInProgress2,
Component,
nextProps,
secondArg
), finishRenderingHooks(current2, workInProgress2), Component = checkDidRenderIdHook(), current2 !== null && !didReceiveUpdate ? (bailoutHooks(current2, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2)) : (isHydrating && Component && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current2, workInProgress2, nextProps, renderLanes2), workInProgress2.child);
}
function updateClassComponent(current2, workInProgress2, Component, nextProps, renderLanes2) {
switch (shouldErrorImpl(workInProgress2)) {
case !1:
var _instance = workInProgress2.stateNode, state = new workInProgress2.type(
workInProgress2.memoizedProps,
_instance.context
).state;
_instance.updater.enqueueSetState(_instance, state, null);
break;
case !0:
workInProgress2.flags |= 128, workInProgress2.flags |= 65536, _instance = Error("Simulated error coming from DevTools");
var lane = renderLanes2 & -renderLanes2;
if (workInProgress2.lanes |= lane, state = workInProgressRoot, state === null)
throw Error(
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
);
lane = createClassErrorUpdate(lane), initializeClassErrorUpdate(
lane,
state,
workInProgress2,
createCapturedValueAtFiber(_instance, workInProgress2)
), enqueueCapturedUpdate(workInProgress2, lane);
}
if (prepareToReadContext(workInProgress2), workInProgress2.stateNode === null) {
if (state = emptyContextObject, _instance = Component.contextType, "contextType" in Component && _instance !== null && (_instance === void 0 || _instance.$$typeof !== REACT_CONTEXT_TYPE) && !didWarnAboutInvalidateContextType.has(Component) && (didWarnAboutInvalidateContextType.add(Component), lane = _instance === void 0 ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : typeof _instance != "object" ? " However, it is set to a " + typeof _instance + "." : _instance.$$typeof === REACT_CONSUMER_TYPE ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(_instance).join(", ") + "}.", console.error(
"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",
getComponentNameFromType(Component) || "Component",
lane
)), typeof _instance == "object" && _instance !== null && (state = readContext(_instance)), _instance = new Component(nextProps, state), workInProgress2.mode & 8) {
setIsStrictModeForDevtools(!0);
try {
_instance = new Component(nextProps, state);
} finally {
setIsStrictModeForDevtools(!1);
}
}
if (state = workInProgress2.memoizedState = _instance.state !== null && _instance.state !== void 0 ? _instance.state : null, _instance.updater = classComponentUpdater, workInProgress2.stateNode = _instance, _instance._reactInternals = workInProgress2, _instance._reactInternalInstance = fakeInternalInstance, typeof Component.getDerivedStateFromProps == "function" && state === null && (state = getComponentNameFromType(Component) || "Component", didWarnAboutUninitializedState.has(state) || (didWarnAboutUninitializedState.add(state), console.error(
"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",
state,
_instance.state === null ? "null" : "undefined",
state
))), typeof Component.getDerivedStateFromProps == "function" || typeof _instance.getSnapshotBeforeUpdate == "function") {
var foundWillUpdateName = lane = state = null;
if (typeof _instance.componentWillMount == "function" && _instance.componentWillMount.__suppressDeprecationWarning !== !0 ? state = "componentWillMount" : typeof _instance.UNSAFE_componentWillMount == "function" && (state = "UNSAFE_componentWillMount"), typeof _instance.componentWillReceiveProps == "function" && _instance.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? lane = "componentWillReceiveProps" : typeof _instance.UNSAFE_componentWillReceiveProps == "function" && (lane = "UNSAFE_componentWillReceiveProps"), typeof _instance.componentWillUpdate == "function" && _instance.componentWillUpdate.__suppressDeprecationWarning !== !0 ? foundWillUpdateName = "componentWillUpdate" : typeof _instance.UNSAFE_componentWillUpdate == "function" && (foundWillUpdateName = "UNSAFE_componentWillUpdate"), state !== null || lane !== null || foundWillUpdateName !== null) {
_instance = getComponentNameFromType(Component) || "Component";
var newApiName = typeof Component.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
didWarnAboutLegacyLifecyclesAndDerivedState.has(_instance) || (didWarnAboutLegacyLifecyclesAndDerivedState.add(_instance), console.error(
`Unsafe legacy lifecycles will not be called for components using new component APIs.
%s uses %s but also contains the following legacy lifecycles:%s%s%s
The above lifecycles should be removed. Learn more about this warning here:
https://react.dev/link/unsafe-component-lifecycles`,
_instance,
newApiName,
state !== null ? `
` + state : "",
lane !== null ? `
` + lane : "",
foundWillUpdateName !== null ? `
` + foundWillUpdateName : ""
));
}
}
_instance = workInProgress2.stateNode, state = getComponentNameFromType(Component) || "Component", _instance.render || (Component.prototype && typeof Component.prototype.render == "function" ? console.error(
"No `render` method found on the %s instance: did you accidentally return an object from the constructor?",
state
) : console.error(
"No `render` method found on the %s instance: you may have forgotten to define `render`.",
state
)), !_instance.getInitialState || _instance.getInitialState.isReactClassApproved || _instance.state || console.error(
"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",
state
), _instance.getDefaultProps && !_instance.getDefaultProps.isReactClassApproved && console.error(
"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",
state
), _instance.contextType && console.error(
"contextType was defined as an instance property on %s. Use a static property to define contextType instead.",
state
), Component.childContextTypes && !didWarnAboutChildContextTypes.has(Component) && (didWarnAboutChildContextTypes.add(Component), console.error(
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
state
)), Component.contextTypes && !didWarnAboutContextTypes$1.has(Component) && (didWarnAboutContextTypes$1.add(Component), console.error(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
state
)), typeof _instance.componentShouldUpdate == "function" && console.error(
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
state
), Component.prototype && Component.prototype.isPureReactComponent && typeof _instance.shouldComponentUpdate < "u" && console.error(
"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",
getComponentNameFromType(Component) || "A pure component"
), typeof _instance.componentDidUnmount == "function" && console.error(
"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",
state
), typeof _instance.componentDidReceiveProps == "function" && console.error(
"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",
state
), typeof _instance.componentWillRecieveProps == "function" && console.error(
"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",
state
), typeof _instance.UNSAFE_componentWillRecieveProps == "function" && console.error(
"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",
state
), lane = _instance.props !== nextProps, _instance.props !== void 0 && lane && console.error(
"When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",
state
), _instance.defaultProps && console.error(
"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",
state,
state
), typeof _instance.getSnapshotBeforeUpdate != "function" || typeof _instance.componentDidUpdate == "function" || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(Component) || (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(Component), console.error(
"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",
getComponentNameFromType(Component)
)), typeof _instance.getDerivedStateFromProps == "function" && console.error(
"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
state
), typeof _instance.getDerivedStateFromError == "function" && console.error(
"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
state
), typeof Component.getSnapshotBeforeUpdate == "function" && console.error(
"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",
state
), (lane = _instance.state) && (typeof lane != "object" || isArrayImpl(lane)) && console.error("%s.state: must be set to an object or null", state), typeof _instance.getChildContext == "function" && typeof Component.childContextTypes != "object" && console.error(
"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",
state
), _instance = workInProgress2.stateNode, _instance.props = nextProps, _instance.state = workInProgress2.memoizedState, _instance.refs = {}, initializeUpdateQueue(workInProgress2), state = Component.contextType, _instance.context = typeof state == "object" && state !== null ? readContext(state) : emptyContextObject, _instance.state === nextProps && (state = getComponentNameFromType(Component) || "Component", didWarnAboutDirectlyAssigningPropsToState.has(state) || (didWarnAboutDirectlyAssigningPropsToState.add(state), console.error(
"%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",
state
))), workInProgress2.mode & 8 && ReactStrictModeWarnings.recordLegacyContextWarning(
workInProgress2,
_instance
), ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(
workInProgress2,
_instance
), _instance.state = workInProgress2.memoizedState, state = Component.getDerivedStateFromProps, typeof state == "function" && (applyDerivedStateFromProps(
workInProgress2,
Component,
state,
nextProps
), _instance.state = workInProgress2.memoizedState), typeof Component.getDerivedStateFromProps == "function" || typeof _instance.getSnapshotBeforeUpdate == "function" || typeof _instance.UNSAFE_componentWillMount != "function" && typeof _instance.componentWillMount != "function" || (state = _instance.state, typeof _instance.componentWillMount == "function" && _instance.componentWillMount(), typeof _instance.UNSAFE_componentWillMount == "function" && _instance.UNSAFE_componentWillMount(), state !== _instance.state && (console.error(
"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
getComponentNameFromFiber(workInProgress2) || "Component"
), classComponentUpdater.enqueueReplaceState(
_instance,
_instance.state,
null
)), processUpdateQueue(workInProgress2, nextProps, _instance, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), _instance.state = workInProgress2.memoizedState), typeof _instance.componentDidMount == "function" && (workInProgress2.flags |= 4194308), (workInProgress2.mode & 16) !== NoMode && (workInProgress2.flags |= 134217728), _instance = !0;
} else if (current2 === null) {
_instance = workInProgress2.stateNode;
var unresolvedOldProps = workInProgress2.memoizedProps;
lane = resolveClassComponentProps(Component, unresolvedOldProps), _instance.props = lane;
var oldContext = _instance.context;
foundWillUpdateName = Component.contextType, state = emptyContextObject, typeof foundWillUpdateName == "object" && foundWillUpdateName !== null && (state = readContext(foundWillUpdateName)), newApiName = Component.getDerivedStateFromProps, foundWillUpdateName = typeof newApiName == "function" || typeof _instance.getSnapshotBeforeUpdate == "function", unresolvedOldProps = workInProgress2.pendingProps !== unresolvedOldProps, foundWillUpdateName || typeof _instance.UNSAFE_componentWillReceiveProps != "function" && typeof _instance.componentWillReceiveProps != "function" || (unresolvedOldProps || oldContext !== state) && callComponentWillReceiveProps(
workInProgress2,
_instance,
nextProps,
state
), hasForceUpdate = !1;
var oldState = workInProgress2.memoizedState;
_instance.state = oldState, processUpdateQueue(workInProgress2, nextProps, _instance, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), oldContext = workInProgress2.memoizedState, unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? (typeof newApiName == "function" && (applyDerivedStateFromProps(
workInProgress2,
Component,
newApiName,
nextProps
), oldContext = workInProgress2.memoizedState), (lane = hasForceUpdate || checkShouldComponentUpdate(
workInProgress2,
Component,
lane,
nextProps,
oldState,
oldContext,
state
)) ? (foundWillUpdateName || typeof _instance.UNSAFE_componentWillMount != "function" && typeof _instance.componentWillMount != "function" || (typeof _instance.componentWillMount == "function" && _instance.componentWillMount(), typeof _instance.UNSAFE_componentWillMount == "function" && _instance.UNSAFE_componentWillMount()), typeof _instance.componentDidMount == "function" && (workInProgress2.flags |= 4194308), (workInProgress2.mode & 16) !== NoMode && (workInProgress2.flags |= 134217728)) : (typeof _instance.componentDidMount == "function" && (workInProgress2.flags |= 4194308), (workInProgress2.mode & 16) !== NoMode && (workInProgress2.flags |= 134217728), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = oldContext), _instance.props = nextProps, _instance.state = oldContext, _instance.context = state, _instance = lane) : (typeof _instance.componentDidMount == "function" && (workInProgress2.flags |= 4194308), (workInProgress2.mode & 16) !== NoMode && (workInProgress2.flags |= 134217728), _instance = !1);
} else {
_instance = workInProgress2.stateNode, cloneUpdateQueue(current2, workInProgress2), state = workInProgress2.memoizedProps, foundWillUpdateName = resolveClassComponentProps(Component, state), _instance.props = foundWillUpdateName, newApiName = workInProgress2.pendingProps, oldState = _instance.context, oldContext = Component.contextType, lane = emptyContextObject, typeof oldContext == "object" && oldContext !== null && (lane = readContext(oldContext)), unresolvedOldProps = Component.getDerivedStateFromProps, (oldContext = typeof unresolvedOldProps == "function" || typeof _instance.getSnapshotBeforeUpdate == "function") || typeof _instance.UNSAFE_componentWillReceiveProps != "function" && typeof _instance.componentWillReceiveProps != "function" || (state !== newApiName || oldState !== lane) && callComponentWillReceiveProps(
workInProgress2,
_instance,
nextProps,
lane
), hasForceUpdate = !1, oldState = workInProgress2.memoizedState, _instance.state = oldState, processUpdateQueue(workInProgress2, nextProps, _instance, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction();
var newState = workInProgress2.memoizedState;
state !== newApiName || oldState !== newState || hasForceUpdate || current2 !== null && current2.dependencies !== null && checkIfContextChanged(current2.dependencies) ? (typeof unresolvedOldProps == "function" && (applyDerivedStateFromProps(
workInProgress2,
Component,
unresolvedOldProps,
nextProps
), newState = workInProgress2.memoizedState), (foundWillUpdateName = hasForceUpdate || checkShouldComponentUpdate(
workInProgress2,
Component,
foundWillUpdateName,
nextProps,
oldState,
newState,
lane
) || current2 !== null && current2.dependencies !== null && checkIfContextChanged(current2.dependencies)) ? (oldContext || typeof _instance.UNSAFE_componentWillUpdate != "function" && typeof _instance.componentWillUpdate != "function" || (typeof _instance.componentWillUpdate == "function" && _instance.componentWillUpdate(nextProps, newState, lane), typeof _instance.UNSAFE_componentWillUpdate == "function" && _instance.UNSAFE_componentWillUpdate(
nextProps,
newState,
lane
)), typeof _instance.componentDidUpdate == "function" && (workInProgress2.flags |= 4), typeof _instance.getSnapshotBeforeUpdate == "function" && (workInProgress2.flags |= 1024)) : (typeof _instance.componentDidUpdate != "function" || state === current2.memoizedProps && oldState === current2.memoizedState || (workInProgress2.flags |= 4), typeof _instance.getSnapshotBeforeUpdate != "function" || state === current2.memoizedProps && oldState === current2.memoizedState || (workInProgress2.flags |= 1024), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = newState), _instance.props = nextProps, _instance.state = newState, _instance.context = lane, _instance = foundWillUpdateName) : (typeof _instance.componentDidUpdate != "function" || state === current2.memoizedProps && oldState === current2.memoizedState || (workInProgress2.flags |= 4), typeof _instance.getSnapshotBeforeUpdate != "function" || state === current2.memoizedProps && oldState === current2.memoizedState || (workInProgress2.flags |= 1024), _instance = !1);
}
if (lane = _instance, markRef(current2, workInProgress2), state = (workInProgress2.flags & 128) !== 0, lane || state) {
if (lane = workInProgress2.stateNode, setCurrentFiber(workInProgress2), state && typeof Component.getDerivedStateFromError != "function")
Component = null, profilerStartTime = -1;
else if (Component = callRenderInDEV(lane), workInProgress2.mode & 8) {
setIsStrictModeForDevtools(!0);
try {
callRenderInDEV(lane);
} finally {
setIsStrictModeForDevtools(!1);
}
}
workInProgress2.flags |= 1, current2 !== null && state ? (workInProgress2.child = reconcileChildFibers(
workInProgress2,
current2.child,
null,
renderLanes2
), workInProgress2.child = reconcileChildFibers(
workInProgress2,
null,
Component,
renderLanes2
)) : reconcileChildren(current2, workInProgress2, Component, renderLanes2), workInProgress2.memoizedState = lane.state, current2 = workInProgress2.child;
} else
current2 = bailoutOnAlreadyFinishedWork(
current2,
workInProgress2,
renderLanes2
);
return renderLanes2 = workInProgress2.stateNode, _instance && renderLanes2.props !== nextProps && (didWarnAboutReassigningProps || console.error(
"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",
getComponentNameFromFiber(workInProgress2) || "a component"
), didWarnAboutReassigningProps = !0), current2;
}
function mountHostRootWithoutHydrating(current2, workInProgress2, nextChildren, renderLanes2) {
return resetHydrationState(), workInProgress2.flags |= 256, reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2), workInProgress2.child;
}
function validateFunctionComponentInDev(workInProgress2, Component) {
Component && Component.childContextTypes && console.error(
`childContextTypes cannot be defined on a function component.
%s.childContextTypes = ...`,
Component.displayName || Component.name || "Component"
), typeof Component.getDerivedStateFromProps == "function" && (workInProgress2 = getComponentNameFromType(Component) || "Unknown", didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress2] || (console.error(
"%s: Function components do not support getDerivedStateFromProps.",
workInProgress2
), didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress2] = !0)), typeof Component.contextType == "object" && Component.contextType !== null && (Component = getComponentNameFromType(Component) || "Unknown", didWarnAboutContextTypeOnFunctionComponent[Component] || (console.error(
"%s: Function components do not support contextType.",
Component
), didWarnAboutContextTypeOnFunctionComponent[Component] = !0));
}
function mountSuspenseOffscreenState(renderLanes2) {
return { baseLanes: renderLanes2, cachePool: getSuspendedCache() };
}
function getRemainingWorkInPrimaryTree(current2, primaryTreeDidDefer, renderLanes2) {
return current2 = current2 !== null ? current2.childLanes & ~renderLanes2 : 0, primaryTreeDidDefer && (current2 |= workInProgressDeferredLane), current2;
}
function updateSuspenseComponent(current2, workInProgress2, renderLanes2) {
var nextProps = workInProgress2.pendingProps;
shouldSuspendImpl(workInProgress2) && (workInProgress2.flags |= 128);
var showFallback = !1, didSuspend = (workInProgress2.flags & 128) !== 0, JSCompiler_temp;
if ((JSCompiler_temp = didSuspend) || (JSCompiler_temp = current2 !== null && current2.memoizedState === null ? !1 : (suspenseStackCursor.current & ForceSuspenseFallback) !== 0), JSCompiler_temp && (showFallback = !0, workInProgress2.flags &= -129), JSCompiler_temp = (workInProgress2.flags & 32) !== 0, workInProgress2.flags &= -33, current2 === null) {
if (isHydrating) {
if (showFallback ? pushPrimaryTreeSuspenseHandler(workInProgress2) : reuseSuspenseHandlerOnStack(workInProgress2), (current2 = nextHydratableInstance) ? (renderLanes2 = canHydrateSuspenseInstance(
current2,
rootOrSingletonContext
), renderLanes2 !== null && (JSCompiler_temp = {
dehydrated: renderLanes2,
treeContext: getSuspendedTreeContext(),
retryLane: 536870912,
hydrationErrors: null
}, workInProgress2.memoizedState = JSCompiler_temp, JSCompiler_temp = createFiberFromDehydratedFragment(renderLanes2), JSCompiler_temp.return = workInProgress2, workInProgress2.child = JSCompiler_temp, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : renderLanes2 = null, renderLanes2 === null)
throw warnNonHydratedInstance(workInProgress2, current2), throwOnHydrationMismatch(workInProgress2);
return isSuspenseInstanceFallback(renderLanes2) ? workInProgress2.lanes = 32 : workInProgress2.lanes = 536870912, null;
}
var nextPrimaryChildren = nextProps.children;
return nextProps = nextProps.fallback, showFallback ? (reuseSuspenseHandlerOnStack(workInProgress2), showFallback = workInProgress2.mode, nextPrimaryChildren = mountWorkInProgressOffscreenFiber(
{ mode: "hidden", children: nextPrimaryChildren },
showFallback
), nextProps = createFiberFromFragment(
nextProps,
showFallback,
renderLanes2,
null
), nextPrimaryChildren.return = workInProgress2, nextProps.return = workInProgress2, nextPrimaryChildren.sibling = nextProps, workInProgress2.child = nextPrimaryChildren, nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
current2,
JSCompiler_temp,
renderLanes2
), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps)) : (pushPrimaryTreeSuspenseHandler(workInProgress2), mountSuspensePrimaryChildren(
workInProgress2,
nextPrimaryChildren
));
}
var prevState = current2.memoizedState;
if (prevState !== null && (nextPrimaryChildren = prevState.dehydrated, nextPrimaryChildren !== null)) {
if (didSuspend)
workInProgress2.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags &= -257, workInProgress2 = retrySuspenseComponentWithoutHydrating(
current2,
workInProgress2,
renderLanes2
)) : workInProgress2.memoizedState !== null ? (reuseSuspenseHandlerOnStack(workInProgress2), workInProgress2.child = current2.child, workInProgress2.flags |= 128, workInProgress2 = null) : (reuseSuspenseHandlerOnStack(workInProgress2), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress2.mode, nextProps = mountWorkInProgressOffscreenFiber(
{ mode: "visible", children: nextProps.children },
showFallback
), nextPrimaryChildren = createFiberFromFragment(
nextPrimaryChildren,
showFallback,
renderLanes2,
null
), nextPrimaryChildren.flags |= 2, nextProps.return = workInProgress2, nextPrimaryChildren.return = workInProgress2, nextProps.sibling = nextPrimaryChildren, workInProgress2.child = nextProps, reconcileChildFibers(
workInProgress2,
current2.child,
null,
renderLanes2
), nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
current2,
JSCompiler_temp,
renderLanes2
), workInProgress2.memoizedState = SUSPENDED_MARKER, workInProgress2 = bailoutOffscreenComponent(null, nextProps));
else if (pushPrimaryTreeSuspenseHandler(workInProgress2), warnIfHydrating(), (renderLanes2 & 536870912) !== 0 && markRenderDerivedCause(workInProgress2), isSuspenseInstanceFallback(nextPrimaryChildren))
showFallback = getSuspenseInstanceFallbackErrorDetails(nextPrimaryChildren), JSCompiler_temp = showFallback.digest, nextPrimaryChildren = showFallback.message, nextProps = showFallback.stack, showFallback = showFallback.componentStack, nextPrimaryChildren = Error(nextPrimaryChildren || "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."), nextPrimaryChildren.stack = nextProps || "", nextPrimaryChildren.digest = JSCompiler_temp, JSCompiler_temp = showFallback === void 0 ? null : showFallback, nextProps = {
value: nextPrimaryChildren,
source: null,
stack: JSCompiler_temp
}, typeof JSCompiler_temp == "string" && CapturedStacks.set(nextPrimaryChildren, nextProps), queueHydrationError(nextProps), workInProgress2 = retrySuspenseComponentWithoutHydrating(
current2,
workInProgress2,
renderLanes2
);
else if (didReceiveUpdate || propagateParentContextChanges(
current2,
workInProgress2,
renderLanes2,
!1
), JSCompiler_temp = (renderLanes2 & current2.childLanes) !== 0, didReceiveUpdate || JSCompiler_temp) {
if (JSCompiler_temp = workInProgressRoot, JSCompiler_temp !== null && (nextProps = getBumpedLaneForHydration(
JSCompiler_temp,
renderLanes2
), nextProps !== 0 && nextProps !== prevState.retryLane))
throw prevState.retryLane = nextProps, enqueueConcurrentRenderForLane(current2, nextProps), scheduleUpdateOnFiber(JSCompiler_temp, current2, nextProps), SelectiveHydrationException;
isSuspenseInstancePending(nextPrimaryChildren) || renderDidSuspendDelayIfPossible(), workInProgress2 = retrySuspenseComponentWithoutHydrating(
current2,
workInProgress2,
renderLanes2
);
} else
isSuspenseInstancePending(nextPrimaryChildren) ? (workInProgress2.flags |= 192, workInProgress2.child = current2.child, workInProgress2 = null) : (current2 = prevState.treeContext, supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinSuspenseInstance(
nextPrimaryChildren
), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, didSuspendOrErrorDEV = !1, hydrationDiffRootDEV = null, rootOrSingletonContext = !1, current2 !== null && restoreSuspendedTreeContext(workInProgress2, current2)), workInProgress2 = mountSuspensePrimaryChildren(
workInProgress2,
nextProps.children
), workInProgress2.flags |= 4096);
return workInProgress2;
}
return showFallback ? (reuseSuspenseHandlerOnStack(workInProgress2), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress2.mode, prevState = current2.child, didSuspend = prevState.sibling, nextProps = createWorkInProgress(prevState, {
mode: "hidden",
children: nextProps.children
}), nextProps.subtreeFlags = prevState.subtreeFlags & 65011712, didSuspend !== null ? nextPrimaryChildren = createWorkInProgress(
didSuspend,
nextPrimaryChildren
) : (nextPrimaryChildren = createFiberFromFragment(
nextPrimaryChildren,
showFallback,
renderLanes2,
null
), nextPrimaryChildren.flags |= 2), nextPrimaryChildren.return = workInProgress2, nextProps.return = workInProgress2, nextProps.sibling = nextPrimaryChildren, workInProgress2.child = nextProps, bailoutOffscreenComponent(null, nextProps), nextProps = workInProgress2.child, nextPrimaryChildren = current2.child.memoizedState, nextPrimaryChildren === null ? nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes2) : (showFallback = nextPrimaryChildren.cachePool, showFallback !== null ? (prevState = isPrimaryRenderer ? CacheContext._currentValue : CacheContext._currentValue2, showFallback = showFallback.parent !== prevState ? { parent: prevState, pool: prevState } : showFallback) : showFallback = getSuspendedCache(), nextPrimaryChildren = {
baseLanes: nextPrimaryChildren.baseLanes | renderLanes2,
cachePool: showFallback
}), nextProps.memoizedState = nextPrimaryChildren, nextProps.childLanes = getRemainingWorkInPrimaryTree(
current2,
JSCompiler_temp,
renderLanes2
), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current2.child, nextProps)) : (prevState !== null && (renderLanes2 & 62914560) === renderLanes2 && (renderLanes2 & current2.lanes) !== 0 && markRenderDerivedCause(workInProgress2), pushPrimaryTreeSuspenseHandler(workInProgress2), renderLanes2 = current2.child, current2 = renderLanes2.sibling, renderLanes2 = createWorkInProgress(renderLanes2, {
mode: "visible",
children: nextProps.children
}), renderLanes2.return = workInProgress2, renderLanes2.sibling = null, current2 !== null && (JSCompiler_temp = workInProgress2.deletions, JSCompiler_temp === null ? (workInProgress2.deletions = [current2], workInProgress2.flags |= 16) : JSCompiler_temp.push(current2)), workInProgress2.child = renderLanes2, workInProgress2.memoizedState = null, renderLanes2);
}
function mountSuspensePrimaryChildren(workInProgress2, primaryChildren) {
return primaryChildren = mountWorkInProgressOffscreenFiber(
{ mode: "visible", children: primaryChildren },
workInProgress2.mode
), primaryChildren.return = workInProgress2, workInProgress2.child = primaryChildren;
}
function mountWorkInProgressOffscreenFiber(offscreenProps, mode) {
return offscreenProps = createFiber(22, offscreenProps, null, mode), offscreenProps.lanes = 0, offscreenProps;
}
function retrySuspenseComponentWithoutHydrating(current2, workInProgress2, renderLanes2) {
return reconcileChildFibers(workInProgress2, current2.child, null, renderLanes2), current2 = mountSuspensePrimaryChildren(
workInProgress2,
workInProgress2.pendingProps.children
), current2.flags |= 2, workInProgress2.memoizedState = null, current2;
}
function scheduleSuspenseWorkOnFiber(fiber, renderLanes2, propagationRoot) {
fiber.lanes |= renderLanes2;
var alternate = fiber.alternate;
alternate !== null && (alternate.lanes |= renderLanes2), scheduleContextWorkOnParentPath(
fiber.return,
renderLanes2,
propagationRoot
);
}
function initSuspenseListRenderState(workInProgress2, isBackwards, tail, lastContentRow, tailMode, treeForkCount2) {
var renderState = workInProgress2.memoizedState;
renderState === null ? workInProgress2.memoizedState = {
isBackwards,
rendering: null,
renderingStartTime: 0,
last: lastContentRow,
tail,
tailMode,
treeForkCount: treeForkCount2
} : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount2);
}
function updateSuspenseListComponent(current2, workInProgress2, renderLanes2) {
var nextProps = workInProgress2.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail, newChildren = nextProps.children, suspenseContext = suspenseStackCursor.current;
if ((nextProps = (suspenseContext & ForceSuspenseFallback) !== 0) ? (suspenseContext = suspenseContext & SubtreeSuspenseContextMask | ForceSuspenseFallback, workInProgress2.flags |= 128) : suspenseContext &= SubtreeSuspenseContextMask, push(suspenseStackCursor, suspenseContext, workInProgress2), suspenseContext = revealOrder ?? "null", revealOrder !== "forwards" && revealOrder !== "unstable_legacy-backwards" && revealOrder !== "together" && revealOrder !== "independent" && !didWarnAboutRevealOrder[suspenseContext])
if (didWarnAboutRevealOrder[suspenseContext] = !0, revealOrder == null)
console.error(
'The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".'
);
else if (revealOrder === "backwards")
console.error(
'The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.'
);
else if (typeof revealOrder == "string")
switch (revealOrder.toLowerCase()) {
case "together":
case "forwards":
case "backwards":
case "independent":
console.error(
'"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',
revealOrder,
revealOrder.toLowerCase()
);
break;
case "forward":
case "backward":
console.error(
'"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',
revealOrder,
revealOrder.toLowerCase()
);
break;
default:
console.error(
'"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',
revealOrder
);
}
else
console.error(
'%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',
revealOrder
);
suspenseContext = tailMode ?? "null", didWarnAboutTailOptions[suspenseContext] || (tailMode == null ? (revealOrder === "forwards" || revealOrder === "backwards" || revealOrder === "unstable_legacy-backwards") && (didWarnAboutTailOptions[suspenseContext] = !0, console.error(
'The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".'
)) : tailMode !== "visible" && tailMode !== "collapsed" && tailMode !== "hidden" ? (didWarnAboutTailOptions[suspenseContext] = !0, console.error(
'"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',
tailMode
)) : revealOrder !== "forwards" && revealOrder !== "backwards" && revealOrder !== "unstable_legacy-backwards" && (didWarnAboutTailOptions[suspenseContext] = !0, console.error(
'<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',
tailMode
)));
a: if ((revealOrder === "forwards" || revealOrder === "backwards" || revealOrder === "unstable_legacy-backwards") && newChildren !== void 0 && newChildren !== null && newChildren !== !1)
if (isArrayImpl(newChildren)) {
for (suspenseContext = 0; suspenseContext < newChildren.length; suspenseContext++)
if (!validateSuspenseListNestedChild(
newChildren[suspenseContext],
suspenseContext
))
break a;
} else if (suspenseContext = getIteratorFn(newChildren), typeof suspenseContext == "function") {
if (suspenseContext = suspenseContext.call(newChildren))
for (var step = suspenseContext.next(), _i = 0; !step.done; step = suspenseContext.next()) {
if (!validateSuspenseListNestedChild(step.value, _i)) break a;
_i++;
}
} else
console.error(
'A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',
revealOrder
);
if (reconcileChildren(current2, workInProgress2, newChildren, renderLanes2), isHydrating ? (warnIfNotHydrating(), newChildren = treeForkCount) : newChildren = 0, !nextProps && current2 !== null && (current2.flags & 128) !== 0)
a: for (current2 = workInProgress2.child; current2 !== null; ) {
if (current2.tag === 13)
current2.memoizedState !== null && scheduleSuspenseWorkOnFiber(current2, renderLanes2, workInProgress2);
else if (current2.tag === 19)
scheduleSuspenseWorkOnFiber(current2, renderLanes2, workInProgress2);
else if (current2.child !== null) {
current2.child.return = current2, current2 = current2.child;
continue;
}
if (current2 === workInProgress2) break a;
for (; current2.sibling === null; ) {
if (current2.return === null || current2.return === workInProgress2)
break a;
current2 = current2.return;
}
current2.sibling.return = current2.return, current2 = current2.sibling;
}
switch (revealOrder) {
case "forwards":
for (renderLanes2 = workInProgress2.child, revealOrder = null; renderLanes2 !== null; )
current2 = renderLanes2.alternate, current2 !== null && findFirstSuspended(current2) === null && (revealOrder = renderLanes2), renderLanes2 = renderLanes2.sibling;
renderLanes2 = revealOrder, renderLanes2 === null ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null), initSuspenseListRenderState(
workInProgress2,
!1,
revealOrder,
renderLanes2,
tailMode,
newChildren
);
break;
case "backwards":
case "unstable_legacy-backwards":
for (renderLanes2 = null, revealOrder = workInProgress2.child, workInProgress2.child = null; revealOrder !== null; ) {
if (current2 = revealOrder.alternate, current2 !== null && findFirstSuspended(current2) === null) {
workInProgress2.child = revealOrder;
break;
}
current2 = revealOrder.sibling, revealOrder.sibling = renderLanes2, renderLanes2 = revealOrder, revealOrder = current2;
}
initSuspenseListRenderState(
workInProgress2,
!0,
renderLanes2,
null,
tailMode,
newChildren
);
break;
case "together":
initSuspenseListRenderState(
workInProgress2,
!1,
null,
null,
void 0,
newChildren
);
break;
default:
workInProgress2.memoizedState = null;
}
return workInProgress2.child;
}
function bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2) {
if (current2 !== null && (workInProgress2.dependencies = current2.dependencies), profilerStartTime = -1, workInProgressRootSkippedLanes |= workInProgress2.lanes, (renderLanes2 & workInProgress2.childLanes) === 0)
if (current2 !== null) {
if (propagateParentContextChanges(
current2,
workInProgress2,
renderLanes2,
!1
), (renderLanes2 & workInProgress2.childLanes) === 0)
return null;
} else return null;
if (current2 !== null && workInProgress2.child !== current2.child)
throw Error("Resuming work not yet implemented.");
if (workInProgress2.child !== null) {
for (current2 = workInProgress2.child, renderLanes2 = createWorkInProgress(current2, current2.pendingProps), workInProgress2.child = renderLanes2, renderLanes2.return = workInProgress2; current2.sibling !== null; )
current2 = current2.sibling, renderLanes2 = renderLanes2.sibling = createWorkInProgress(current2, current2.pendingProps), renderLanes2.return = workInProgress2;
renderLanes2.sibling = null;
}
return workInProgress2.child;
}
function checkScheduledUpdateOrContext(current2, renderLanes2) {
return (current2.lanes & renderLanes2) !== 0 ? !0 : (current2 = current2.dependencies, !!(current2 !== null && checkIfContextChanged(current2)));
}
function attemptEarlyBailoutIfNoScheduledUpdate(current2, workInProgress2, renderLanes2) {
switch (workInProgress2.tag) {
case 3:
pushHostContainer(
workInProgress2,
workInProgress2.stateNode.containerInfo
), pushProvider(
workInProgress2,
CacheContext,
current2.memoizedState.cache
), resetHydrationState();
break;
case 27:
case 5:
pushHostContext(workInProgress2);
break;
case 4:
pushHostContainer(
workInProgress2,
workInProgress2.stateNode.containerInfo
);
break;
case 10:
pushProvider(
workInProgress2,
workInProgress2.type,
workInProgress2.memoizedProps.value
);
break;
case 12:
(renderLanes2 & workInProgress2.childLanes) !== 0 && (workInProgress2.flags |= 4), workInProgress2.flags |= 2048;
var stateNode = workInProgress2.stateNode;
stateNode.effectDuration = -0, stateNode.passiveEffectDuration = -0;
break;
case 31:
if (workInProgress2.memoizedState !== null)
return workInProgress2.flags |= 128, pushDehydratedActivitySuspenseHandler(workInProgress2), null;
break;
case 13:
if (stateNode = workInProgress2.memoizedState, stateNode !== null)
return stateNode.dehydrated !== null ? (pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags |= 128, null) : (renderLanes2 & workInProgress2.child.childLanes) !== 0 ? updateSuspenseComponent(
current2,
workInProgress2,
renderLanes2
) : (pushPrimaryTreeSuspenseHandler(workInProgress2), current2 = bailoutOnAlreadyFinishedWork(
current2,
workInProgress2,
renderLanes2
), current2 !== null ? current2.sibling : null);
pushPrimaryTreeSuspenseHandler(workInProgress2);
break;
case 19:
var didSuspendBefore = (current2.flags & 128) !== 0;
if (stateNode = (renderLanes2 & workInProgress2.childLanes) !== 0, stateNode || (propagateParentContextChanges(
current2,
workInProgress2,
renderLanes2,
!1
), stateNode = (renderLanes2 & workInProgress2.childLanes) !== 0), didSuspendBefore) {
if (stateNode)
return updateSuspenseListComponent(
current2,
workInProgress2,
renderLanes2
);
workInProgress2.flags |= 128;
}
if (didSuspendBefore = workInProgress2.memoizedState, didSuspendBefore !== null && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null), push(
suspenseStackCursor,
suspenseStackCursor.current,
workInProgress2
), stateNode) break;
return null;
case 22:
return workInProgress2.lanes = 0, updateOffscreenComponent(
current2,
workInProgress2,
renderLanes2,
workInProgress2.pendingProps
);
case 24:
pushProvider(
workInProgress2,
CacheContext,
current2.memoizedState.cache
);
}
return bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2);
}
function beginWork(current2, workInProgress2, renderLanes2) {
if (workInProgress2._debugNeedsRemount && current2 !== null) {
renderLanes2 = createFiberFromTypeAndProps(
workInProgress2.type,
workInProgress2.key,
workInProgress2.pendingProps,
workInProgress2._debugOwner || null,
workInProgress2.mode,
workInProgress2.lanes
), renderLanes2._debugStack = workInProgress2._debugStack, renderLanes2._debugTask = workInProgress2._debugTask;
var returnFiber = workInProgress2.return;
if (returnFiber === null) throw Error("Cannot swap the root fiber.");
if (current2.alternate = null, workInProgress2.alternate = null, renderLanes2.index = workInProgress2.index, renderLanes2.sibling = workInProgress2.sibling, renderLanes2.return = workInProgress2.return, renderLanes2.ref = workInProgress2.ref, renderLanes2._debugInfo = workInProgress2._debugInfo, workInProgress2 === returnFiber.child)
returnFiber.child = renderLanes2;
else {
var prevSibling = returnFiber.child;
if (prevSibling === null)
throw Error("Expected parent to have a child.");
for (; prevSibling.sibling !== workInProgress2; )
if (prevSibling = prevSibling.sibling, prevSibling === null)
throw Error("Expected to find the previous sibling.");
prevSibling.sibling = renderLanes2;
}
return workInProgress2 = returnFiber.deletions, workInProgress2 === null ? (returnFiber.deletions = [current2], returnFiber.flags |= 16) : workInProgress2.push(current2), renderLanes2.flags |= 2, renderLanes2;
}
if (current2 !== null)
if (current2.memoizedProps !== workInProgress2.pendingProps || workInProgress2.type !== current2.type)
didReceiveUpdate = !0;
else {
if (!checkScheduledUpdateOrContext(current2, renderLanes2) && (workInProgress2.flags & 128) === 0)
return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(
current2,
workInProgress2,
renderLanes2
);
didReceiveUpdate = (current2.flags & 131072) !== 0;
}
else
didReceiveUpdate = !1, (returnFiber = isHydrating) && (warnIfNotHydrating(), returnFiber = (workInProgress2.flags & 1048576) !== 0), returnFiber && (returnFiber = workInProgress2.index, warnIfNotHydrating(), pushTreeId(workInProgress2, treeForkCount, returnFiber));
switch (workInProgress2.lanes = 0, workInProgress2.tag) {
case 16:
a: if (returnFiber = workInProgress2.pendingProps, current2 = resolveLazy(workInProgress2.elementType), workInProgress2.type = current2, typeof current2 == "function")
shouldConstruct(current2) ? (returnFiber = resolveClassComponentProps(
current2,
returnFiber
), workInProgress2.tag = 1, workInProgress2.type = current2 = resolveFunctionForHotReloading(current2), workInProgress2 = updateClassComponent(
null,
workInProgress2,
current2,
returnFiber,
renderLanes2
)) : (workInProgress2.tag = 0, validateFunctionComponentInDev(workInProgress2, current2), workInProgress2.type = current2 = resolveFunctionForHotReloading(current2), workInProgress2 = updateFunctionComponent(
null,
workInProgress2,
current2,
returnFiber,
renderLanes2
));
else {
if (current2 != null) {
if (prevSibling = current2.$$typeof, prevSibling === REACT_FORWARD_REF_TYPE) {
workInProgress2.tag = 11, workInProgress2.type = current2 = resolveForwardRefForHotReloading(current2), workInProgress2 = updateForwardRef(
null,
workInProgress2,
current2,
returnFiber,
renderLanes2
);
break a;
} else if (prevSibling === REACT_MEMO_TYPE) {
workInProgress2.tag = 14, workInProgress2 = updateMemoComponent(
null,
workInProgress2,
current2,
returnFiber,
renderLanes2
);
break a;
}
}
throw workInProgress2 = "", current2 !== null && typeof current2 == "object" && current2.$$typeof === REACT_LAZY_TYPE && (workInProgress2 = " Did you wrap a component in React.lazy() more than once?"), current2 = getComponentNameFromType(current2) || current2, Error(
"Element type is invalid. Received a promise that resolves to: " + current2 + ". Lazy element type must resolve to a class or function." + workInProgress2
);
}
return workInProgress2;
case 0:
return updateFunctionComponent(
current2,
workInProgress2,
workInProgress2.type,
workInProgress2.pendingProps,
renderLanes2
);
case 1:
return returnFiber = workInProgress2.type, prevSibling = resolveClassComponentProps(
returnFiber,
workInProgress2.pendingProps
), updateClassComponent(
current2,
workInProgress2,
returnFiber,
prevSibling,
renderLanes2
);
case 3:
a: {
if (pushHostContainer(
workInProgress2,
workInProgress2.stateNode.containerInfo
), current2 === null)
throw Error(
"Should have a current fiber. This is a bug in React."
);
var nextProps = workInProgress2.pendingProps;
prevSibling = workInProgress2.memoizedState, returnFiber = prevSibling.element, cloneUpdateQueue(current2, workInProgress2), processUpdateQueue(workInProgress2, nextProps, null, renderLanes2);
var nextState = workInProgress2.memoizedState;
if (nextProps = nextState.cache, pushProvider(workInProgress2, CacheContext, nextProps), nextProps !== prevSibling.cache && propagateContextChanges(
workInProgress2,
[CacheContext],
renderLanes2,
!0
), suspendIfUpdateReadFromEntangledAsyncAction(), nextProps = nextState.element, supportsHydration && prevSibling.isDehydrated)
if (prevSibling = {
element: nextProps,
isDehydrated: !1,
cache: nextState.cache
}, workInProgress2.updateQueue.baseState = prevSibling, workInProgress2.memoizedState = prevSibling, workInProgress2.flags & 256) {
workInProgress2 = mountHostRootWithoutHydrating(
current2,
workInProgress2,
nextProps,
renderLanes2
);
break a;
} else if (nextProps !== returnFiber) {
returnFiber = createCapturedValueAtFiber(
Error(
"This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."
),
workInProgress2
), queueHydrationError(returnFiber), workInProgress2 = mountHostRootWithoutHydrating(
current2,
workInProgress2,
nextProps,
renderLanes2
);
break a;
} else
for (supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinContainer(
workInProgress2.stateNode.containerInfo
), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, didSuspendOrErrorDEV = !1, hydrationDiffRootDEV = null, rootOrSingletonContext = !0), current2 = mountChildFibers(
workInProgress2,
null,
nextProps,
renderLanes2
), workInProgress2.child = current2; current2; )
current2.flags = current2.flags & -3 | 4096, current2 = current2.sibling;
else {
if (resetHydrationState(), nextProps === returnFiber) {
workInProgress2 = bailoutOnAlreadyFinishedWork(
current2,
workInProgress2,
renderLanes2
);
break a;
}
reconcileChildren(
current2,
workInProgress2,
nextProps,
renderLanes2
);
}
workInProgress2 = workInProgress2.child;
}
return workInProgress2;
case 26:
if (supportsResources)
return markRef(current2, workInProgress2), current2 === null ? (current2 = getResource(
workInProgress2.type,
null,
workInProgress2.pendingProps,
null
)) ? workInProgress2.memoizedState = current2 : isHydrating || (workInProgress2.stateNode = createHoistableInstance(
workInProgress2.type,
workInProgress2.pendingProps,
requiredContext(rootInstanceStackCursor.current),
workInProgress2
)) : workInProgress2.memoizedState = getResource(
workInProgress2.type,
current2.memoizedProps,
workInProgress2.pendingProps,
current2.memoizedState
), null;
case 27:
if (supportsSingletons)
return pushHostContext(workInProgress2), current2 === null && supportsSingletons && isHydrating && (prevSibling = requiredContext(
rootInstanceStackCursor.current
), returnFiber = getHostContext(), prevSibling = workInProgress2.stateNode = resolveSingletonInstance(
workInProgress2.type,
workInProgress2.pendingProps,
prevSibling,
returnFiber,
!1
), didSuspendOrErrorDEV || (returnFiber = diffHydratedPropsForDevWarnings(
prevSibling,
workInProgress2.type,
workInProgress2.pendingProps,
returnFiber
), returnFiber !== null && (buildHydrationDiffNode(workInProgress2, 0).serverProps = returnFiber)), hydrationParentFiber = workInProgress2, rootOrSingletonContext = !0, nextHydratableInstance = getFirstHydratableChildWithinSingleton(
workInProgress2.type,
prevSibling,
nextHydratableInstance
)), reconcileChildren(
current2,
workInProgress2,
workInProgress2.pendingProps.children,
renderLanes2
), markRef(current2, workInProgress2), current2 === null && (workInProgress2.flags |= 4194304), workInProgress2.child;
case 5:
return current2 === null && isHydrating && (nextProps = getHostContext(), returnFiber = validateHydratableInstance(
workInProgress2.type,
workInProgress2.pendingProps,
nextProps
), prevSibling = nextHydratableInstance, (nextState = !prevSibling) || (nextState = canHydrateInstance(
prevSibling,
workInProgress2.type,
workInProgress2.pendingProps,
rootOrSingletonContext
), nextState !== null ? (workInProgress2.stateNode = nextState, didSuspendOrErrorDEV || (nextProps = diffHydratedPropsForDevWarnings(
nextState,
workInProgress2.type,
workInProgress2.pendingProps,
nextProps
), nextProps !== null && (buildHydrationDiffNode(workInProgress2, 0).serverProps = nextProps)), hydrationParentFiber = workInProgress2, nextHydratableInstance = getFirstHydratableChild(nextState), rootOrSingletonContext = !1, nextProps = !0) : nextProps = !1, nextState = !nextProps), nextState && (returnFiber && warnNonHydratedInstance(workInProgress2, prevSibling), throwOnHydrationMismatch(workInProgress2))), pushHostContext(workInProgress2), prevSibling = workInProgress2.type, nextProps = workInProgress2.pendingProps, nextState = current2 !== null ? current2.memoizedProps : null, returnFiber = nextProps.children, shouldSetTextContent(prevSibling, nextProps) ? returnFiber = null : nextState !== null && shouldSetTextContent(prevSibling, nextState) && (workInProgress2.flags |= 32), workInProgress2.memoizedState !== null && (prevSibling = renderWithHooks(
current2,
workInProgress2,
TransitionAwareHostComponent,
null,
null,
renderLanes2
), isPrimaryRenderer ? HostTransitionContext._currentValue = prevSibling : HostTransitionContext._currentValue2 = prevSibling), markRef(current2, workInProgress2), reconcileChildren(
current2,
workInProgress2,
returnFiber,
renderLanes2
), workInProgress2.child;
case 6:
return current2 === null && isHydrating && (current2 = workInProgress2.pendingProps, renderLanes2 = getHostContext(), current2 = validateHydratableTextInstance(current2, renderLanes2), renderLanes2 = nextHydratableInstance, (returnFiber = !renderLanes2) || (returnFiber = canHydrateTextInstance(
renderLanes2,
workInProgress2.pendingProps,
rootOrSingletonContext
), returnFiber !== null ? (workInProgress2.stateNode = returnFiber, hydrationParentFiber = workInProgress2, nextHydratableInstance = null, returnFiber = !0) : returnFiber = !1, returnFiber = !returnFiber), returnFiber && (current2 && warnNonHydratedInstance(workInProgress2, renderLanes2), throwOnHydrationMismatch(workInProgress2))), null;
case 13:
return updateSuspenseComponent(current2, workInProgress2, renderLanes2);
case 4:
return pushHostContainer(
workInProgress2,
workInProgress2.stateNode.containerInfo
), returnFiber = workInProgress2.pendingProps, current2 === null ? workInProgress2.child = reconcileChildFibers(
workInProgress2,
null,
returnFiber,
renderLanes2
) : reconcileChildren(
current2,
workInProgress2,
returnFiber,
renderLanes2
), workInProgress2.child;
case 11:
return updateForwardRef(
current2,
workInProgress2,
workInProgress2.type,
workInProgress2.pendingProps,
renderLanes2
);
case 7:
return reconcileChildren(
current2,
workInProgress2,
workInProgress2.pendingProps,
renderLanes2
), workInProgress2.child;
case 8:
return reconcileChildren(
current2,
workInProgress2,
workInProgress2.pendingProps.children,
renderLanes2
), workInProgress2.child;
case 12:
return workInProgress2.flags |= 4, workInProgress2.flags |= 2048, returnFiber = workInProgress2.stateNode, returnFiber.effectDuration = -0, returnFiber.passiveEffectDuration = -0, reconcileChildren(
current2,
workInProgress2,
workInProgress2.pendingProps.children,
renderLanes2
), workInProgress2.child;
case 10:
return returnFiber = workInProgress2.type, prevSibling = workInProgress2.pendingProps, nextProps = prevSibling.value, "value" in prevSibling || hasWarnedAboutUsingNoValuePropOnContextProvider || (hasWarnedAboutUsingNoValuePropOnContextProvider = !0, console.error(
"The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"
)), pushProvider(workInProgress2, returnFiber, nextProps), reconcileChildren(
current2,
workInProgress2,
prevSibling.children,
renderLanes2
), workInProgress2.child;
case 9:
return prevSibling = workInProgress2.type._context, returnFiber = workInProgress2.pendingProps.children, typeof returnFiber != "function" && console.error(
"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
), prepareToReadContext(workInProgress2), prevSibling = readContext(prevSibling), returnFiber = callComponentInDEV(
returnFiber,
prevSibling,
void 0
), workInProgress2.flags |= 1, reconcileChildren(
current2,
workInProgress2,
returnFiber,
renderLanes2
), workInProgress2.child;
case 14:
return updateMemoComponent(
current2,
workInProgress2,
workInProgress2.type,
workInProgress2.pendingProps,
renderLanes2
);
case 15:
return updateSimpleMemoComponent(
current2,
workInProgress2,
workInProgress2.type,
workInProgress2.pendingProps,
renderLanes2
);
case 19:
return updateSuspenseListComponent(
current2,
workInProgress2,
renderLanes2
);
case 31:
return updateActivityComponent(current2, workInProgress2, renderLanes2);
case 22:
return updateOffscreenComponent(
current2,
workInProgress2,
renderLanes2,
workInProgress2.pendingProps
);
case 24:
return prepareToReadContext(workInProgress2), returnFiber = readContext(CacheContext), current2 === null ? (prevSibling = peekCacheFromPool(), prevSibling === null && (prevSibling = workInProgressRoot, nextProps = createCache(), prevSibling.pooledCache = nextProps, retainCache(nextProps), nextProps !== null && (prevSibling.pooledCacheLanes |= renderLanes2), prevSibling = nextProps), workInProgress2.memoizedState = {
parent: returnFiber,
cache: prevSibling
}, initializeUpdateQueue(workInProgress2), pushProvider(workInProgress2, CacheContext, prevSibling)) : ((current2.lanes & renderLanes2) !== 0 && (cloneUpdateQueue(current2, workInProgress2), processUpdateQueue(workInProgress2, null, null, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction()), prevSibling = current2.memoizedState, nextProps = workInProgress2.memoizedState, prevSibling.parent !== returnFiber ? (prevSibling = {
parent: returnFiber,
cache: returnFiber
}, workInProgress2.memoizedState = prevSibling, workInProgress2.lanes === 0 && (workInProgress2.memoizedState = workInProgress2.updateQueue.baseState = prevSibling), pushProvider(workInProgress2, CacheContext, returnFiber)) : (returnFiber = nextProps.cache, pushProvider(workInProgress2, CacheContext, returnFiber), returnFiber !== prevSibling.cache && propagateContextChanges(
workInProgress2,
[CacheContext],
renderLanes2,
!0
))), reconcileChildren(
current2,
workInProgress2,
workInProgress2.pendingProps.children,
renderLanes2
), workInProgress2.child;
case 29:
throw workInProgress2.pendingProps;
}
throw Error(
"Unknown unit of work tag (" + workInProgress2.tag + "). This error is likely caused by a bug in React. Please file an issue."
);
}
function markUpdate(workInProgress2) {
workInProgress2.flags |= 4;
}
function markCloned(workInProgress2) {
supportsPersistence && (workInProgress2.flags |= 8);
}
function doesRequireClone(current2, completedWork) {
if (current2 !== null && current2.child === completedWork.child) return !1;
if ((completedWork.flags & 16) !== 0) return !0;
for (current2 = completedWork.child; current2 !== null; ) {
if ((current2.flags & 8218) !== 0 || (current2.subtreeFlags & 8218) !== 0)
return !0;
current2 = current2.sibling;
}
return !1;
}
function appendAllChildren(parent, workInProgress2, needsVisibilityToggle, isHidden2) {
if (supportsMutation)
for (needsVisibilityToggle = workInProgress2.child; needsVisibilityToggle !== null; ) {
if (needsVisibilityToggle.tag === 5 || needsVisibilityToggle.tag === 6)
appendInitialChild(parent, needsVisibilityToggle.stateNode);
else if (!(needsVisibilityToggle.tag === 4 || supportsSingletons && needsVisibilityToggle.tag === 27) && needsVisibilityToggle.child !== null) {
needsVisibilityToggle.child.return = needsVisibilityToggle, needsVisibilityToggle = needsVisibilityToggle.child;
continue;
}
if (needsVisibilityToggle === workInProgress2) break;
for (; needsVisibilityToggle.sibling === null; ) {
if (needsVisibilityToggle.return === null || needsVisibilityToggle.return === workInProgress2)
return;
needsVisibilityToggle = needsVisibilityToggle.return;
}
needsVisibilityToggle.sibling.return = needsVisibilityToggle.return, needsVisibilityToggle = needsVisibilityToggle.sibling;
}
else if (supportsPersistence)
for (var _node = workInProgress2.child; _node !== null; ) {
if (_node.tag === 5) {
var instance = _node.stateNode;
needsVisibilityToggle && isHidden2 && (instance = cloneHiddenInstance(
instance,
_node.type,
_node.memoizedProps
)), appendInitialChild(parent, instance);
} else if (_node.tag === 6)
instance = _node.stateNode, needsVisibilityToggle && isHidden2 && (instance = cloneHiddenTextInstance(
instance,
_node.memoizedProps
)), appendInitialChild(parent, instance);
else if (_node.tag !== 4) {
if (_node.tag === 22 && _node.memoizedState !== null)
instance = _node.child, instance !== null && (instance.return = _node), appendAllChildren(parent, _node, !0, !0);
else if (_node.child !== null) {
_node.child.return = _node, _node = _node.child;
continue;
}
}
if (_node === workInProgress2) break;
for (; _node.sibling === null; ) {
if (_node.return === null || _node.return === workInProgress2)
return;
_node = _node.return;
}
_node.sibling.return = _node.return, _node = _node.sibling;
}
}
function appendAllChildrenToContainer(containerChildSet, workInProgress2, needsVisibilityToggle, isHidden2) {
var hasOffscreenComponentChild = !1;
if (supportsPersistence)
for (var node = workInProgress2.child; node !== null; ) {
if (node.tag === 5) {
var instance = node.stateNode;
needsVisibilityToggle && isHidden2 && (instance = cloneHiddenInstance(
instance,
node.type,
node.memoizedProps
)), appendChildToContainerChildSet(containerChildSet, instance);
} else if (node.tag === 6)
instance = node.stateNode, needsVisibilityToggle && isHidden2 && (instance = cloneHiddenTextInstance(
instance,
node.memoizedProps
)), appendChildToContainerChildSet(containerChildSet, instance);
else if (node.tag !== 4) {
if (node.tag === 22 && node.memoizedState !== null)
hasOffscreenComponentChild = node.child, hasOffscreenComponentChild !== null && (hasOffscreenComponentChild.return = node), appendAllChildrenToContainer(containerChildSet, node, !0, !0), hasOffscreenComponentChild = !0;
else if (node.child !== null) {
node.child.return = node, node = node.child;
continue;
}
}
if (node === workInProgress2) break;
for (; node.sibling === null; ) {
if (node.return === null || node.return === workInProgress2)
return hasOffscreenComponentChild;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
return hasOffscreenComponentChild;
}
function updateHostContainer(current2, workInProgress2) {
if (supportsPersistence && doesRequireClone(current2, workInProgress2)) {
current2 = workInProgress2.stateNode;
var container = current2.containerInfo, newChildSet = createContainerChildSet();
appendAllChildrenToContainer(newChildSet, workInProgress2, !1, !1), current2.pendingChildren = newChildSet, markUpdate(workInProgress2), finalizeContainerChildren(container, newChildSet);
}
}
function updateHostComponent(current2, workInProgress2, type, newProps) {
if (supportsMutation)
current2.memoizedProps !== newProps && markUpdate(workInProgress2);
else if (supportsPersistence) {
var currentInstance = current2.stateNode, _oldProps = current2.memoizedProps;
if ((current2 = doesRequireClone(current2, workInProgress2)) || _oldProps !== newProps) {
var currentHostContext = getHostContext();
_oldProps = cloneInstance(
currentInstance,
type,
_oldProps,
newProps,
!current2,
null
), _oldProps === currentInstance ? workInProgress2.stateNode = currentInstance : (markCloned(workInProgress2), finalizeInitialChildren(
_oldProps,
type,
newProps,
currentHostContext
) && markUpdate(workInProgress2), workInProgress2.stateNode = _oldProps, current2 && appendAllChildren(_oldProps, workInProgress2, !1, !1));
} else workInProgress2.stateNode = currentInstance;
}
}
function preloadInstanceAndSuspendIfNeeded(workInProgress2, type, oldProps, newProps, renderLanes2) {
if ((workInProgress2.mode & 32) !== NoMode && (oldProps === null ? maySuspendCommit(type, newProps) : maySuspendCommitOnUpdate(type, oldProps, newProps))) {
if (workInProgress2.flags |= 16777216, (renderLanes2 & 335544128) === renderLanes2 || maySuspendCommitInSyncRender(type, newProps))
if (preloadInstance(workInProgress2.stateNode, type, newProps))
workInProgress2.flags |= 8192;
else if (shouldRemainOnPreviousScreen()) workInProgress2.flags |= 8192;
else
throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
} else workInProgress2.flags &= -16777217;
}
function preloadResourceAndSuspendIfNeeded(workInProgress2, resource) {
if (mayResourceSuspendCommit(resource)) {
if (workInProgress2.flags |= 16777216, !preloadResource(resource))
if (shouldRemainOnPreviousScreen()) workInProgress2.flags |= 8192;
else
throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
} else workInProgress2.flags &= -16777217;
}
function scheduleRetryEffect(workInProgress2, retryQueue) {
retryQueue !== null && (workInProgress2.flags |= 4), workInProgress2.flags & 16384 && (retryQueue = workInProgress2.tag !== 22 ? claimNextRetryLane() : 536870912, workInProgress2.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue);
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
if (!isHydrating)
switch (renderState.tailMode) {
case "hidden":
hasRenderedATailFallback = renderState.tail;
for (var lastTailNode = null; hasRenderedATailFallback !== null; )
hasRenderedATailFallback.alternate !== null && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling;
lastTailNode === null ? renderState.tail = null : lastTailNode.sibling = null;
break;
case "collapsed":
lastTailNode = renderState.tail;
for (var _lastTailNode = null; lastTailNode !== null; )
lastTailNode.alternate !== null && (_lastTailNode = lastTailNode), lastTailNode = lastTailNode.sibling;
_lastTailNode === null ? hasRenderedATailFallback || renderState.tail === null ? renderState.tail = null : renderState.tail.sibling = null : _lastTailNode.sibling = null;
}
}
function bubbleProperties(completedWork) {
var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0;
if (didBailout)
if ((completedWork.mode & 2) !== NoMode) {
for (var _treeBaseDuration = completedWork.selfBaseDuration, _child2 = completedWork.child; _child2 !== null; )
newChildLanes |= _child2.lanes | _child2.childLanes, subtreeFlags |= _child2.subtreeFlags & 65011712, subtreeFlags |= _child2.flags & 65011712, _treeBaseDuration += _child2.treeBaseDuration, _child2 = _child2.sibling;
completedWork.treeBaseDuration = _treeBaseDuration;
} else
for (_treeBaseDuration = completedWork.child; _treeBaseDuration !== null; )
newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes, subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712, subtreeFlags |= _treeBaseDuration.flags & 65011712, _treeBaseDuration.return = completedWork, _treeBaseDuration = _treeBaseDuration.sibling;
else if ((completedWork.mode & 2) !== NoMode) {
_treeBaseDuration = completedWork.actualDuration, _child2 = completedWork.selfBaseDuration;
for (var child = completedWork.child; child !== null; )
newChildLanes |= child.lanes | child.childLanes, subtreeFlags |= child.subtreeFlags, subtreeFlags |= child.flags, _treeBaseDuration += child.actualDuration, _child2 += child.treeBaseDuration, child = child.sibling;
completedWork.actualDuration = _treeBaseDuration, completedWork.treeBaseDuration = _child2;
} else
for (_treeBaseDuration = completedWork.child; _treeBaseDuration !== null; )
newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes, subtreeFlags |= _treeBaseDuration.subtreeFlags, subtreeFlags |= _treeBaseDuration.flags, _treeBaseDuration.return = completedWork, _treeBaseDuration = _treeBaseDuration.sibling;
return completedWork.subtreeFlags |= subtreeFlags, completedWork.childLanes = newChildLanes, didBailout;
}
function completeWork(current2, workInProgress2, renderLanes2) {
var newProps = workInProgress2.pendingProps;
switch (popTreeContext(workInProgress2), workInProgress2.tag) {
case 16:
case 15:
case 0:
case 11:
case 7:
case 8:
case 12:
case 9:
case 14:
return bubbleProperties(workInProgress2), null;
case 1:
return bubbleProperties(workInProgress2), null;
case 3:
return renderLanes2 = workInProgress2.stateNode, newProps = null, current2 !== null && (newProps = current2.memoizedState.cache), workInProgress2.memoizedState.cache !== newProps && (workInProgress2.flags |= 2048), popProvider(CacheContext, workInProgress2), popHostContainer(workInProgress2), renderLanes2.pendingContext && (renderLanes2.context = renderLanes2.pendingContext, renderLanes2.pendingContext = null), (current2 === null || current2.child === null) && (popHydrationState(workInProgress2) ? (emitPendingHydrationWarnings(), markUpdate(workInProgress2)) : current2 === null || current2.memoizedState.isDehydrated && (workInProgress2.flags & 256) === 0 || (workInProgress2.flags |= 1024, upgradeHydrationErrorsToRecoverable())), updateHostContainer(current2, workInProgress2), bubbleProperties(workInProgress2), null;
case 26:
if (supportsResources) {
var type = workInProgress2.type, nextResource = workInProgress2.memoizedState;
return current2 === null ? (markUpdate(workInProgress2), nextResource !== null ? (bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(
workInProgress2,
nextResource
)) : (bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
workInProgress2,
type,
null,
newProps,
renderLanes2
))) : nextResource ? nextResource !== current2.memoizedState ? (markUpdate(workInProgress2), bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(
workInProgress2,
nextResource
)) : (bubbleProperties(workInProgress2), workInProgress2.flags &= -16777217) : (nextResource = current2.memoizedProps, supportsMutation ? nextResource !== newProps && markUpdate(workInProgress2) : updateHostComponent(
current2,
workInProgress2,
type,
newProps
), bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
workInProgress2,
type,
nextResource,
newProps,
renderLanes2
)), null;
}
case 27:
if (supportsSingletons) {
if (popHostContext(workInProgress2), renderLanes2 = requiredContext(rootInstanceStackCursor.current), type = workInProgress2.type, current2 !== null && workInProgress2.stateNode != null)
supportsMutation ? current2.memoizedProps !== newProps && markUpdate(workInProgress2) : updateHostComponent(current2, workInProgress2, type, newProps);
else {
if (!newProps) {
if (workInProgress2.stateNode === null)
throw Error(
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
);
return bubbleProperties(workInProgress2), null;
}
current2 = getHostContext(), popHydrationState(workInProgress2) ? prepareToHydrateHostInstance(workInProgress2, current2) : (current2 = resolveSingletonInstance(
type,
newProps,
renderLanes2,
current2,
!0
), workInProgress2.stateNode = current2, markUpdate(workInProgress2));
}
return bubbleProperties(workInProgress2), null;
}
case 5:
if (popHostContext(workInProgress2), type = workInProgress2.type, current2 !== null && workInProgress2.stateNode != null)
updateHostComponent(current2, workInProgress2, type, newProps);
else {
if (!newProps) {
if (workInProgress2.stateNode === null)
throw Error(
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
);
return bubbleProperties(workInProgress2), null;
}
if (nextResource = getHostContext(), popHydrationState(workInProgress2))
prepareToHydrateHostInstance(workInProgress2, nextResource), finalizeHydratedChildren(
workInProgress2.stateNode,
type,
newProps,
nextResource
) && (workInProgress2.flags |= 64);
else {
var _rootContainerInstance = requiredContext(
rootInstanceStackCursor.current
);
_rootContainerInstance = createInstance(
type,
newProps,
_rootContainerInstance,
nextResource,
workInProgress2
), markCloned(workInProgress2), appendAllChildren(_rootContainerInstance, workInProgress2, !1, !1), workInProgress2.stateNode = _rootContainerInstance, finalizeInitialChildren(
_rootContainerInstance,
type,
newProps,
nextResource
) && markUpdate(workInProgress2);
}
}
return bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
workInProgress2,
workInProgress2.type,
current2 === null ? null : current2.memoizedProps,
workInProgress2.pendingProps,
renderLanes2
), null;
case 6:
if (current2 && workInProgress2.stateNode != null)
renderLanes2 = current2.memoizedProps, supportsMutation ? renderLanes2 !== newProps && markUpdate(workInProgress2) : supportsPersistence && (renderLanes2 !== newProps ? (current2 = requiredContext(
rootInstanceStackCursor.current
), renderLanes2 = getHostContext(), markCloned(workInProgress2), workInProgress2.stateNode = createTextInstance(
newProps,
current2,
renderLanes2,
workInProgress2
)) : workInProgress2.stateNode = current2.stateNode);
else {
if (typeof newProps != "string" && workInProgress2.stateNode === null)
throw Error(
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
);
if (current2 = requiredContext(rootInstanceStackCursor.current), renderLanes2 = getHostContext(), popHydrationState(workInProgress2)) {
if (!supportsHydration)
throw Error(
"Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."
);
if (current2 = workInProgress2.stateNode, renderLanes2 = workInProgress2.memoizedProps, type = !didSuspendOrErrorDEV, newProps = null, nextResource = hydrationParentFiber, nextResource !== null)
switch (nextResource.tag) {
case 3:
type && (type = diffHydratedTextForDevWarnings(
current2,
renderLanes2,
newProps
), type !== null && (buildHydrationDiffNode(workInProgress2, 0).serverProps = type));
break;
case 27:
case 5:
newProps = nextResource.memoizedProps, type && (type = diffHydratedTextForDevWarnings(
current2,
renderLanes2,
newProps
), type !== null && (buildHydrationDiffNode(
workInProgress2,
0
).serverProps = type));
}
hydrateTextInstance(
current2,
renderLanes2,
workInProgress2,
newProps
) || throwOnHydrationMismatch(workInProgress2, !0);
} else
markCloned(workInProgress2), workInProgress2.stateNode = createTextInstance(
newProps,
current2,
renderLanes2,
workInProgress2
);
}
return bubbleProperties(workInProgress2), null;
case 31:
if (renderLanes2 = workInProgress2.memoizedState, current2 === null || current2.memoizedState !== null) {
if (newProps = popHydrationState(workInProgress2), renderLanes2 !== null) {
if (current2 === null) {
if (!newProps)
throw Error(
"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."
);
if (!supportsHydration)
throw Error(
"Expected prepareToHydrateHostActivityInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."
);
if (current2 = workInProgress2.memoizedState, current2 = current2 !== null ? current2.dehydrated : null, !current2)
throw Error(
"Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue."
);
hydrateActivityInstance(current2, workInProgress2), bubbleProperties(workInProgress2), (workInProgress2.mode & 2) !== NoMode && renderLanes2 !== null && (current2 = workInProgress2.child, current2 !== null && (workInProgress2.treeBaseDuration -= current2.treeBaseDuration));
} else
emitPendingHydrationWarnings(), resetHydrationState(), (workInProgress2.flags & 128) === 0 && (renderLanes2 = workInProgress2.memoizedState = null), workInProgress2.flags |= 4, bubbleProperties(workInProgress2), (workInProgress2.mode & 2) !== NoMode && renderLanes2 !== null && (current2 = workInProgress2.child, current2 !== null && (workInProgress2.treeBaseDuration -= current2.treeBaseDuration));
current2 = !1;
} else
renderLanes2 = upgradeHydrationErrorsToRecoverable(), current2 !== null && current2.memoizedState !== null && (current2.memoizedState.hydrationErrors = renderLanes2), current2 = !0;
if (!current2)
return workInProgress2.flags & 256 ? (popSuspenseHandler(workInProgress2), workInProgress2) : (popSuspenseHandler(workInProgress2), null);
if ((workInProgress2.flags & 128) !== 0)
throw Error(
"Client rendering an Activity suspended it again. This is a bug in React."
);
}
return bubbleProperties(workInProgress2), null;
case 13:
if (newProps = workInProgress2.memoizedState, current2 === null || current2.memoizedState !== null && current2.memoizedState.dehydrated !== null) {
if (type = newProps, nextResource = popHydrationState(workInProgress2), type !== null && type.dehydrated !== null) {
if (current2 === null) {
if (!nextResource)
throw Error(
"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."
);
if (!supportsHydration)
throw Error(
"Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."
);
if (nextResource = workInProgress2.memoizedState, nextResource = nextResource !== null ? nextResource.dehydrated : null, !nextResource)
throw Error(
"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."
);
hydrateSuspenseInstance(nextResource, workInProgress2), bubbleProperties(workInProgress2), (workInProgress2.mode & 2) !== NoMode && type !== null && (type = workInProgress2.child, type !== null && (workInProgress2.treeBaseDuration -= type.treeBaseDuration));
} else
emitPendingHydrationWarnings(), resetHydrationState(), (workInProgress2.flags & 128) === 0 && (type = workInProgress2.memoizedState = null), workInProgress2.flags |= 4, bubbleProperties(workInProgress2), (workInProgress2.mode & 2) !== NoMode && type !== null && (type = workInProgress2.child, type !== null && (workInProgress2.treeBaseDuration -= type.treeBaseDuration));
type = !1;
} else
type = upgradeHydrationErrorsToRecoverable(), current2 !== null && current2.memoizedState !== null && (current2.memoizedState.hydrationErrors = type), type = !0;
if (!type)
return workInProgress2.flags & 256 ? (popSuspenseHandler(workInProgress2), workInProgress2) : (popSuspenseHandler(workInProgress2), null);
}
return popSuspenseHandler(workInProgress2), (workInProgress2.flags & 128) !== 0 ? (workInProgress2.lanes = renderLanes2, (workInProgress2.mode & 2) !== NoMode && transferActualDuration(workInProgress2), workInProgress2) : (renderLanes2 = newProps !== null, current2 = current2 !== null && current2.memoizedState !== null, renderLanes2 && (newProps = workInProgress2.child, type = null, newProps.alternate !== null && newProps.alternate.memoizedState !== null && newProps.alternate.memoizedState.cachePool !== null && (type = newProps.alternate.memoizedState.cachePool.pool), nextResource = null, newProps.memoizedState !== null && newProps.memoizedState.cachePool !== null && (nextResource = newProps.memoizedState.cachePool.pool), nextResource !== type && (newProps.flags |= 2048)), renderLanes2 !== current2 && renderLanes2 && (workInProgress2.child.flags |= 8192), scheduleRetryEffect(workInProgress2, workInProgress2.updateQueue), bubbleProperties(workInProgress2), (workInProgress2.mode & 2) !== NoMode && renderLanes2 && (current2 = workInProgress2.child, current2 !== null && (workInProgress2.treeBaseDuration -= current2.treeBaseDuration)), null);
case 4:
return popHostContainer(workInProgress2), updateHostContainer(current2, workInProgress2), current2 === null && preparePortalMount(workInProgress2.stateNode.containerInfo), bubbleProperties(workInProgress2), null;
case 10:
return popProvider(workInProgress2.type, workInProgress2), bubbleProperties(workInProgress2), null;
case 19:
if (pop(suspenseStackCursor, workInProgress2), newProps = workInProgress2.memoizedState, newProps === null) return bubbleProperties(workInProgress2), null;
if (type = (workInProgress2.flags & 128) !== 0, nextResource = newProps.rendering, nextResource === null)
if (type) cutOffTailIfNeeded(newProps, !1);
else {
if (workInProgressRootExitStatus !== RootInProgress || current2 !== null && (current2.flags & 128) !== 0)
for (current2 = workInProgress2.child; current2 !== null; ) {
if (nextResource = findFirstSuspended(current2), nextResource !== null) {
for (workInProgress2.flags |= 128, cutOffTailIfNeeded(newProps, !1), current2 = nextResource.updateQueue, workInProgress2.updateQueue = current2, scheduleRetryEffect(workInProgress2, current2), workInProgress2.subtreeFlags = 0, current2 = renderLanes2, renderLanes2 = workInProgress2.child; renderLanes2 !== null; )
resetWorkInProgress(renderLanes2, current2), renderLanes2 = renderLanes2.sibling;
return push(
suspenseStackCursor,
suspenseStackCursor.current & SubtreeSuspenseContextMask | ForceSuspenseFallback,
workInProgress2
), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), workInProgress2.child;
}
current2 = current2.sibling;
}
newProps.tail !== null && now$1() > workInProgressRootRenderTargetTime && (workInProgress2.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress2.lanes = 4194304);
}
else {
if (!type)
if (current2 = findFirstSuspended(nextResource), current2 !== null) {
if (workInProgress2.flags |= 128, type = !0, current2 = current2.updateQueue, workInProgress2.updateQueue = current2, scheduleRetryEffect(workInProgress2, current2), cutOffTailIfNeeded(newProps, !0), newProps.tail === null && newProps.tailMode === "hidden" && !nextResource.alternate && !isHydrating)
return bubbleProperties(workInProgress2), null;
} else
2 * now$1() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && renderLanes2 !== 536870912 && (workInProgress2.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress2.lanes = 4194304);
newProps.isBackwards ? (nextResource.sibling = workInProgress2.child, workInProgress2.child = nextResource) : (current2 = newProps.last, current2 !== null ? current2.sibling = nextResource : workInProgress2.child = nextResource, newProps.last = nextResource);
}
return newProps.tail !== null ? (current2 = newProps.tail, newProps.rendering = current2, newProps.tail = current2.sibling, newProps.renderingStartTime = now$1(), current2.sibling = null, renderLanes2 = suspenseStackCursor.current, renderLanes2 = type ? renderLanes2 & SubtreeSuspenseContextMask | ForceSuspenseFallback : renderLanes2 & SubtreeSuspenseContextMask, push(suspenseStackCursor, renderLanes2, workInProgress2), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), current2) : (bubbleProperties(workInProgress2), null);
case 22:
case 23:
return popSuspenseHandler(workInProgress2), popHiddenContext(workInProgress2), newProps = workInProgress2.memoizedState !== null, current2 !== null ? current2.memoizedState !== null !== newProps && (workInProgress2.flags |= 8192) : newProps && (workInProgress2.flags |= 8192), newProps ? (renderLanes2 & 536870912) !== 0 && (workInProgress2.flags & 128) === 0 && (bubbleProperties(workInProgress2), workInProgress2.subtreeFlags & 6 && (workInProgress2.flags |= 8192)) : bubbleProperties(workInProgress2), renderLanes2 = workInProgress2.updateQueue, renderLanes2 !== null && scheduleRetryEffect(workInProgress2, renderLanes2.retryQueue), renderLanes2 = null, current2 !== null && current2.memoizedState !== null && current2.memoizedState.cachePool !== null && (renderLanes2 = current2.memoizedState.cachePool.pool), newProps = null, workInProgress2.memoizedState !== null && workInProgress2.memoizedState.cachePool !== null && (newProps = workInProgress2.memoizedState.cachePool.pool), newProps !== renderLanes2 && (workInProgress2.flags |= 2048), current2 !== null && pop(resumedCache, workInProgress2), null;
case 24:
return renderLanes2 = null, current2 !== null && (renderLanes2 = current2.memoizedState.cache), workInProgress2.memoizedState.cache !== renderLanes2 && (workInProgress2.flags |= 2048), popProvider(CacheContext, workInProgress2), bubbleProperties(workInProgress2), null;
case 25:
return null;
case 30:
return null;
}
throw Error(
"Unknown unit of work tag (" + workInProgress2.tag + "). This error is likely caused by a bug in React. Please file an issue."
);
}
function unwindWork(current2, workInProgress2) {
switch (popTreeContext(workInProgress2), workInProgress2.tag) {
case 1:
return current2 = workInProgress2.flags, current2 & 65536 ? (workInProgress2.flags = current2 & -65537 | 128, (workInProgress2.mode & 2) !== NoMode && transferActualDuration(workInProgress2), workInProgress2) : null;
case 3:
return popProvider(CacheContext, workInProgress2), popHostContainer(workInProgress2), current2 = workInProgress2.flags, (current2 & 65536) !== 0 && (current2 & 128) === 0 ? (workInProgress2.flags = current2 & -65537 | 128, workInProgress2) : null;
case 26:
case 27:
case 5:
return popHostContext(workInProgress2), null;
case 31:
if (workInProgress2.memoizedState !== null) {
if (popSuspenseHandler(workInProgress2), workInProgress2.alternate === null)
throw Error(
"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."
);
resetHydrationState();
}
return current2 = workInProgress2.flags, current2 & 65536 ? (workInProgress2.flags = current2 & -65537 | 128, (workInProgress2.mode & 2) !== NoMode && transferActualDuration(workInProgress2), workInProgress2) : null;
case 13:
if (popSuspenseHandler(workInProgress2), current2 = workInProgress2.memoizedState, current2 !== null && current2.dehydrated !== null) {
if (workInProgress2.alternate === null)
throw Error(
"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."
);
resetHydrationState();
}
return current2 = workInProgress2.flags, current2 & 65536 ? (workInProgress2.flags = current2 & -65537 | 128, (workInProgress2.mode & 2) !== NoMode && transferActualDuration(workInProgress2), workInProgress2) : null;
case 19:
return pop(suspenseStackCursor, workInProgress2), null;
case 4:
return popHostContainer(workInProgress2), null;
case 10:
return popProvider(workInProgress2.type, workInProgress2), null;
case 22:
case 23:
return popSuspenseHandler(workInProgress2), popHiddenContext(workInProgress2), current2 !== null && pop(resumedCache, workInProgress2), current2 = workInProgress2.flags, current2 & 65536 ? (workInProgress2.flags = current2 & -65537 | 128, (workInProgress2.mode & 2) !== NoMode && transferActualDuration(workInProgress2), workInProgress2) : null;
case 24:
return popProvider(CacheContext, workInProgress2), null;
case 25:
return null;
default:
return null;
}
}
function unwindInterruptedWork(current2, interruptedWork) {
switch (popTreeContext(interruptedWork), interruptedWork.tag) {
case 3:
popProvider(CacheContext, interruptedWork), popHostContainer(interruptedWork);
break;
case 26:
case 27:
case 5:
popHostContext(interruptedWork);
break;
case 4:
popHostContainer(interruptedWork);
break;
case 31:
interruptedWork.memoizedState !== null && popSuspenseHandler(interruptedWork);
break;
case 13:
popSuspenseHandler(interruptedWork);
break;
case 19:
pop(suspenseStackCursor, interruptedWork);
break;
case 10:
popProvider(interruptedWork.type, interruptedWork);
break;
case 22:
case 23:
popSuspenseHandler(interruptedWork), popHiddenContext(interruptedWork), current2 !== null && pop(resumedCache, interruptedWork);
break;
case 24:
popProvider(CacheContext, interruptedWork);
}
}
function shouldProfile(current2) {
return (current2.mode & 2) !== NoMode;
}
function commitHookLayoutEffects(finishedWork, hookFlags) {
shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListMount(hookFlags, finishedWork), recordEffectDuration()) : commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookLayoutUnmountEffects(finishedWork, nearestMountedAncestor, hookFlags) {
shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
), recordEffectDuration()) : commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
);
}
function commitHookEffectListMount(flags, finishedWork) {
try {
var updateQueue = finishedWork.updateQueue, lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
if (lastEffect !== null) {
var firstEffect = lastEffect.next;
updateQueue = firstEffect;
do {
if ((updateQueue.tag & flags) === flags && (lastEffect = void 0, (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !0), lastEffect = runWithFiberInDEV(
finishedWork,
callCreateInDEV,
updateQueue
), (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !1), lastEffect !== void 0 && typeof lastEffect != "function")) {
var hookName = void 0;
hookName = (updateQueue.tag & Layout) !== 0 ? "useLayoutEffect" : (updateQueue.tag & Insertion) !== 0 ? "useInsertionEffect" : "useEffect";
var addendum = void 0;
addendum = lastEffect === null ? " You returned null. If your effect does not require clean up, return undefined (or nothing)." : typeof lastEffect.then == "function" ? `
It looks like you wrote ` + hookName + `(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
` + hookName + `(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching` : " You returned: " + lastEffect, runWithFiberInDEV(
finishedWork,
function(n, a) {
console.error(
"%s must not return anything besides a function, which is used for clean-up.%s",
n,
a
);
},
hookName,
addendum
);
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
}
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) {
try {
var updateQueue = finishedWork.updateQueue, lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
if (lastEffect !== null) {
var firstEffect = lastEffect.next;
updateQueue = firstEffect;
do {
if ((updateQueue.tag & flags) === flags) {
var inst = updateQueue.inst, destroy = inst.destroy;
destroy !== void 0 && (inst.destroy = void 0, (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !0), lastEffect = finishedWork, runWithFiberInDEV(
lastEffect,
callDestroyInDEV,
lastEffect,
nearestMountedAncestor,
destroy
), (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !1));
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
}
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHookPassiveMountEffects(finishedWork, hookFlags) {
shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListMount(hookFlags, finishedWork), recordEffectDuration()) : commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookPassiveUnmountEffects(finishedWork, nearestMountedAncestor, hookFlags) {
shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
), recordEffectDuration()) : commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
);
}
function commitClassCallbacks(finishedWork) {
var updateQueue = finishedWork.updateQueue;
if (updateQueue !== null) {
var instance = finishedWork.stateNode;
finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (instance.props !== finishedWork.memoizedProps && console.error(
"Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
), instance.state !== finishedWork.memoizedState && console.error(
"Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
));
try {
runWithFiberInDEV(
finishedWork,
commitCallbacks,
updateQueue,
instance
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
}
function callGetSnapshotBeforeUpdates(instance, prevProps, prevState) {
return instance.getSnapshotBeforeUpdate(prevProps, prevState);
}
function commitClassSnapshot(finishedWork, current2) {
var prevProps = current2.memoizedProps, prevState = current2.memoizedState;
current2 = finishedWork.stateNode, finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (current2.props !== finishedWork.memoizedProps && console.error(
"Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
), current2.state !== finishedWork.memoizedState && console.error(
"Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
));
try {
var resolvedPrevProps = resolveClassComponentProps(
finishedWork.type,
prevProps
), snapshot = runWithFiberInDEV(
finishedWork,
callGetSnapshotBeforeUpdates,
current2,
resolvedPrevProps,
prevState
);
prevProps = didWarnAboutUndefinedSnapshotBeforeUpdate, snapshot !== void 0 || prevProps.has(finishedWork.type) || (prevProps.add(finishedWork.type), runWithFiberInDEV(finishedWork, function() {
console.error(
"%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",
getComponentNameFromFiber(finishedWork)
);
})), current2.__reactInternalSnapshotBeforeUpdate = snapshot;
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function safelyCallComponentWillUnmount(current2, nearestMountedAncestor, instance) {
instance.props = resolveClassComponentProps(
current2.type,
current2.memoizedProps
), instance.state = current2.memoizedState, shouldProfile(current2) ? (startEffectTimer(), runWithFiberInDEV(
current2,
callComponentWillUnmountInDEV,
current2,
nearestMountedAncestor,
instance
), recordEffectDuration()) : runWithFiberInDEV(
current2,
callComponentWillUnmountInDEV,
current2,
nearestMountedAncestor,
instance
);
}
function commitAttachRef(finishedWork) {
var ref = finishedWork.ref;
if (ref !== null) {
switch (finishedWork.tag) {
case 26:
case 27:
case 5:
var instanceToUse = getPublicInstance(finishedWork.stateNode);
break;
case 30:
instanceToUse = finishedWork.stateNode;
break;
default:
instanceToUse = finishedWork.stateNode;
}
if (typeof ref == "function")
if (shouldProfile(finishedWork))
try {
startEffectTimer(), finishedWork.refCleanup = ref(instanceToUse);
} finally {
recordEffectDuration();
}
else finishedWork.refCleanup = ref(instanceToUse);
else
typeof ref == "string" ? console.error("String refs are no longer supported.") : ref.hasOwnProperty("current") || console.error(
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
getComponentNameFromFiber(finishedWork)
), ref.current = instanceToUse;
}
}
function safelyAttachRef(current2, nearestMountedAncestor) {
try {
runWithFiberInDEV(current2, commitAttachRef, current2);
} catch (error) {
captureCommitPhaseError(current2, nearestMountedAncestor, error);
}
}
function safelyDetachRef(current2, nearestMountedAncestor) {
var ref = current2.ref, refCleanup = current2.refCleanup;
if (ref !== null)
if (typeof refCleanup == "function")
try {
if (shouldProfile(current2))
try {
startEffectTimer(), runWithFiberInDEV(current2, refCleanup);
} finally {
recordEffectDuration(current2);
}
else runWithFiberInDEV(current2, refCleanup);
} catch (error) {
captureCommitPhaseError(current2, nearestMountedAncestor, error);
} finally {
current2.refCleanup = null, current2 = current2.alternate, current2 != null && (current2.refCleanup = null);
}
else if (typeof ref == "function")
try {
if (shouldProfile(current2))
try {
startEffectTimer(), runWithFiberInDEV(current2, ref, null);
} finally {
recordEffectDuration(current2);
}
else runWithFiberInDEV(current2, ref, null);
} catch (error$3) {
captureCommitPhaseError(current2, nearestMountedAncestor, error$3);
}
else ref.current = null;
}
function commitProfiler(finishedWork, current2, commitStartTime2, effectDuration) {
var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id, onCommit = _finishedWork$memoize.onCommit;
_finishedWork$memoize = _finishedWork$memoize.onRender, current2 = current2 === null ? "mount" : "update", currentUpdateIsNested && (current2 = "nested-update"), typeof _finishedWork$memoize == "function" && _finishedWork$memoize(
id,
current2,
finishedWork.actualDuration,
finishedWork.treeBaseDuration,
finishedWork.actualStartTime,
commitStartTime2
), typeof onCommit == "function" && onCommit(id, current2, effectDuration, commitStartTime2);
}
function commitProfilerPostCommitImpl(finishedWork, current2, commitStartTime2, passiveEffectDuration) {
var _finishedWork$memoize2 = finishedWork.memoizedProps;
finishedWork = _finishedWork$memoize2.id, _finishedWork$memoize2 = _finishedWork$memoize2.onPostCommit, current2 = current2 === null ? "mount" : "update", currentUpdateIsNested && (current2 = "nested-update"), typeof _finishedWork$memoize2 == "function" && _finishedWork$memoize2(
finishedWork,
current2,
passiveEffectDuration,
commitStartTime2
);
}
function commitHostMount(finishedWork) {
var type = finishedWork.type, props = finishedWork.memoizedProps, instance = finishedWork.stateNode;
try {
runWithFiberInDEV(
finishedWork,
commitMount,
instance,
type,
props,
finishedWork
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHostUpdate(finishedWork, newProps, oldProps) {
try {
runWithFiberInDEV(
finishedWork,
commitUpdate,
finishedWork.stateNode,
finishedWork.type,
oldProps,
newProps,
finishedWork
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function isHostParent(fiber) {
return fiber.tag === 5 || fiber.tag === 3 || (supportsResources ? fiber.tag === 26 : !1) || (supportsSingletons ? fiber.tag === 27 && isSingletonScope(fiber.type) : !1) || fiber.tag === 4;
}
function getHostSibling(fiber) {
a: for (; ; ) {
for (; fiber.sibling === null; ) {
if (fiber.return === null || isHostParent(fiber.return)) return null;
fiber = fiber.return;
}
for (fiber.sibling.return = fiber.return, fiber = fiber.sibling; fiber.tag !== 5 && fiber.tag !== 6 && fiber.tag !== 18; ) {
if (supportsSingletons && fiber.tag === 27 && isSingletonScope(fiber.type) || fiber.flags & 2 || fiber.child === null || fiber.tag === 4) continue a;
fiber.child.return = fiber, fiber = fiber.child;
}
if (!(fiber.flags & 2)) return fiber.stateNode;
}
}
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
var tag = node.tag;
if (tag === 5 || tag === 6)
node = node.stateNode, before ? insertInContainerBefore(parent, node, before) : appendChildToContainer(parent, node);
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode, before = null), node = node.child, node !== null))
for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; node !== null; )
insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling;
}
function insertOrAppendPlacementNode(node, before, parent) {
var tag = node.tag;
if (tag === 5 || tag === 6)
node = node.stateNode, before ? insertBefore(parent, node, before) : appendChild(parent, node);
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, node !== null))
for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling; node !== null; )
insertOrAppendPlacementNode(node, before, parent), node = node.sibling;
}
function commitPlacement(finishedWork) {
for (var hostParentFiber, parentFiber = finishedWork.return; parentFiber !== null; ) {
if (isHostParent(parentFiber)) {
hostParentFiber = parentFiber;
break;
}
parentFiber = parentFiber.return;
}
if (supportsMutation) {
if (hostParentFiber == null)
throw Error(
"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."
);
switch (hostParentFiber.tag) {
case 27:
if (supportsSingletons) {
hostParentFiber = hostParentFiber.stateNode, parentFiber = getHostSibling(finishedWork), insertOrAppendPlacementNode(
finishedWork,
parentFiber,
hostParentFiber
);
break;
}
case 5:
parentFiber = hostParentFiber.stateNode, hostParentFiber.flags & 32 && (resetTextContent(parentFiber), hostParentFiber.flags &= -33), hostParentFiber = getHostSibling(finishedWork), insertOrAppendPlacementNode(
finishedWork,
hostParentFiber,
parentFiber
);
break;
case 3:
case 4:
hostParentFiber = hostParentFiber.stateNode.containerInfo, parentFiber = getHostSibling(finishedWork), insertOrAppendPlacementNodeIntoContainer(
finishedWork,
parentFiber,
hostParentFiber
);
break;
default:
throw Error(
"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."
);
}
}
}
function commitHostPortalContainerChildren(portal, finishedWork, pendingChildren) {
portal = portal.containerInfo;
try {
runWithFiberInDEV(
finishedWork,
replaceContainerChildren,
portal,
pendingChildren
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHostSingletonAcquisition(finishedWork) {
var singleton = finishedWork.stateNode, props = finishedWork.memoizedProps;
try {
runWithFiberInDEV(
finishedWork,
acquireSingletonInstance,
finishedWork.type,
props,
singleton,
finishedWork
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function isHydratingParent(current2, finishedWork) {
return finishedWork.tag === 31 ? (finishedWork = finishedWork.memoizedState, current2.memoizedState !== null && finishedWork === null) : finishedWork.tag === 13 ? (current2 = current2.memoizedState, finishedWork = finishedWork.memoizedState, current2 !== null && current2.dehydrated !== null && (finishedWork === null || finishedWork.dehydrated === null)) : finishedWork.tag === 3 ? current2.memoizedState.isDehydrated && (finishedWork.flags & 256) === 0 : !1;
}
function commitBeforeMutationEffects(root, firstChild) {
for (prepareForCommit(root.containerInfo), nextEffect = firstChild; nextEffect !== null; )
if (root = nextEffect, firstChild = root.child, (root.subtreeFlags & 1028) !== 0 && firstChild !== null)
firstChild.return = root, nextEffect = firstChild;
else
for (; nextEffect !== null; ) {
firstChild = root = nextEffect;
var current2 = firstChild.alternate, flags = firstChild.flags;
switch (firstChild.tag) {
case 0:
if ((flags & 4) !== 0 && (firstChild = firstChild.updateQueue, firstChild = firstChild !== null ? firstChild.events : null, firstChild !== null))
for (current2 = 0; current2 < firstChild.length; current2++)
flags = firstChild[current2], flags.ref.impl = flags.nextImpl;
break;
case 11:
case 15:
break;
case 1:
(flags & 1024) !== 0 && current2 !== null && commitClassSnapshot(firstChild, current2);
break;
case 3:
(flags & 1024) !== 0 && supportsMutation && clearContainer(firstChild.stateNode.containerInfo);
break;
case 5:
case 26:
case 27:
case 6:
case 4:
case 17:
break;
default:
if ((flags & 1024) !== 0)
throw Error(
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
);
}
if (firstChild = root.sibling, firstChild !== null) {
firstChild.return = root.return, nextEffect = firstChild;
break;
}
nextEffect = root.return;
}
}
function commitLayoutEffectOnFiber(finishedRoot, current2, finishedWork) {
var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(), flags = finishedWork.flags;
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), flags & 4 && commitHookLayoutEffects(finishedWork, Layout | HasEffect);
break;
case 1:
if (recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), flags & 4)
if (finishedRoot = finishedWork.stateNode, current2 === null)
finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (finishedRoot.props !== finishedWork.memoizedProps && console.error(
"Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
), finishedRoot.state !== finishedWork.memoizedState && console.error(
"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
)), shouldProfile(finishedWork) ? (startEffectTimer(), runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
finishedWork,
finishedRoot
), recordEffectDuration()) : runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
finishedWork,
finishedRoot
);
else {
var prevProps = resolveClassComponentProps(
finishedWork.type,
current2.memoizedProps
);
current2 = current2.memoizedState, finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (finishedRoot.props !== finishedWork.memoizedProps && console.error(
"Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
), finishedRoot.state !== finishedWork.memoizedState && console.error(
"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
)), shouldProfile(finishedWork) ? (startEffectTimer(), runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
finishedWork,
finishedRoot,
prevProps,
current2,
finishedRoot.__reactInternalSnapshotBeforeUpdate
), recordEffectDuration()) : runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
finishedWork,
finishedRoot,
prevProps,
current2,
finishedRoot.__reactInternalSnapshotBeforeUpdate
);
}
flags & 64 && commitClassCallbacks(finishedWork), flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 3:
if (current2 = pushNestedEffectDurations(), recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), flags & 64 && (flags = finishedWork.updateQueue, flags !== null)) {
if (prevProps = null, finishedWork.child !== null)
switch (finishedWork.child.tag) {
case 27:
case 5:
prevProps = getPublicInstance(finishedWork.child.stateNode);
break;
case 1:
prevProps = finishedWork.child.stateNode;
}
try {
runWithFiberInDEV(
finishedWork,
commitCallbacks,
flags,
prevProps
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
finishedRoot.effectDuration += popNestedEffectDurations(current2);
break;
case 27:
supportsSingletons && current2 === null && flags & 4 && commitHostSingletonAcquisition(finishedWork);
case 26:
case 5:
if (recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), current2 === null) {
if (flags & 4) commitHostMount(finishedWork);
else if (flags & 64) {
finishedRoot = finishedWork.type, current2 = finishedWork.memoizedProps, prevProps = finishedWork.stateNode;
try {
runWithFiberInDEV(
finishedWork,
commitHydratedInstance,
prevProps,
finishedRoot,
current2,
finishedWork
);
} catch (error) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error
);
}
}
}
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
if (flags & 4) {
flags = pushNestedEffectDurations(), recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), finishedRoot = finishedWork.stateNode, finishedRoot.effectDuration += bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
commitProfiler,
finishedWork,
current2,
commitStartTime,
finishedRoot.effectDuration
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
} else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
break;
case 31:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork);
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork), flags & 64 && (finishedRoot = finishedWork.memoizedState, finishedRoot !== null && (finishedRoot = finishedRoot.dehydrated, finishedRoot !== null && (flags = retryDehydratedSuspenseBoundary.bind(
null,
finishedWork
), registerSuspenseInstanceRetry(finishedRoot, flags))));
break;
case 22:
if (flags = finishedWork.memoizedState !== null || offscreenSubtreeIsHidden, !flags) {
current2 = current2 !== null && current2.memoizedState !== null || offscreenSubtreeWasHidden, prevProps = offscreenSubtreeIsHidden;
var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
offscreenSubtreeIsHidden = flags, (offscreenSubtreeWasHidden = current2) && !prevOffscreenSubtreeWasHidden ? (recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
(finishedWork.subtreeFlags & 8772) !== 0
), (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentReappeared(
finishedWork,
componentEffectStartTime,
componentEffectEndTime
)) : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), offscreenSubtreeIsHidden = prevProps, offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
}
break;
case 30:
break;
default:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
}
(finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && ((componentEffectSpawnedUpdate || 0.05 < componentEffectDuration) && logComponentEffect(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
componentEffectDuration,
componentEffectErrors
), finishedWork.alternate === null && finishedWork.return !== null && finishedWork.return.alternate !== null && 0.05 < componentEffectEndTime - componentEffectStartTime && (isHydratingParent(
finishedWork.return.alternate,
finishedWork.return
) || logComponentTrigger(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
"Mount"
))), popComponentEffectStart(prevEffectStart), popComponentEffectDuration(prevEffectDuration), componentEffectErrors = prevEffectErrors, componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate;
}
function detachFiberAfterEffects(fiber) {
var alternate = fiber.alternate;
alternate !== null && (fiber.alternate = null, detachFiberAfterEffects(alternate)), fiber.child = null, fiber.deletions = null, fiber.sibling = null, fiber.tag === 5 && (alternate = fiber.stateNode, alternate !== null && detachDeletedInstance(alternate)), fiber.stateNode = null, fiber._debugOwner = null, fiber.return = null, fiber.dependencies = null, fiber.memoizedProps = null, fiber.memoizedState = null, fiber.pendingProps = null, fiber.stateNode = null, fiber.updateQueue = null;
}
function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) {
for (parent = parent.child; parent !== null; )
commitDeletionEffectsOnFiber(
finishedRoot,
nearestMountedAncestor,
parent
), parent = parent.sibling;
}
function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) {
if (injectedHook && typeof injectedHook.onCommitFiberUnmount == "function")
try {
injectedHook.onCommitFiberUnmount(rendererID, deletedFiber);
} catch (err) {
hasLoggedError || (hasLoggedError = !0, console.error(
"React instrumentation encountered an error: %o",
err
));
}
var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate();
switch (deletedFiber.tag) {
case 26:
if (supportsResources) {
offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor), recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
), deletedFiber.memoizedState ? releaseResource(deletedFiber.memoizedState) : deletedFiber.stateNode && unmountHoistable(deletedFiber.stateNode);
break;
}
case 27:
if (supportsSingletons) {
offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor);
var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer;
isSingletonScope(deletedFiber.type) && (hostParent = deletedFiber.stateNode, hostParentIsContainer = !1), recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
), runWithFiberInDEV(
deletedFiber,
releaseSingletonInstance,
deletedFiber.stateNode
), hostParent = prevHostParent, hostParentIsContainer = prevHostParentIsContainer;
break;
}
case 5:
offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor);
case 6:
if (supportsMutation) {
if (prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer, hostParent = null, recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
), hostParent = prevHostParent, hostParentIsContainer = prevHostParentIsContainer, hostParent !== null)
if (hostParentIsContainer)
try {
runWithFiberInDEV(
deletedFiber,
removeChildFromContainer,
hostParent,
deletedFiber.stateNode
);
} catch (error) {
captureCommitPhaseError(
deletedFiber,
nearestMountedAncestor,
error
);
}
else
try {
runWithFiberInDEV(
deletedFiber,
removeChild,
hostParent,
deletedFiber.stateNode
);
} catch (error) {
captureCommitPhaseError(
deletedFiber,
nearestMountedAncestor,
error
);
}
} else
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
);
break;
case 18:
supportsMutation && hostParent !== null && (hostParentIsContainer ? clearSuspenseBoundaryFromContainer(
hostParent,
deletedFiber.stateNode
) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode));
break;
case 4:
supportsMutation ? (prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer, hostParent = deletedFiber.stateNode.containerInfo, hostParentIsContainer = !0, recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
), hostParent = prevHostParent, hostParentIsContainer = prevHostParentIsContainer) : (supportsPersistence && commitHostPortalContainerChildren(
deletedFiber.stateNode,
deletedFiber,
createContainerChildSet()
), recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
));
break;
case 0:
case 11:
case 14:
case 15:
commitHookEffectListUnmount(
Insertion,
deletedFiber,
nearestMountedAncestor
), offscreenSubtreeWasHidden || commitHookLayoutUnmountEffects(
deletedFiber,
nearestMountedAncestor,
Layout
), recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
);
break;
case 1:
offscreenSubtreeWasHidden || (safelyDetachRef(deletedFiber, nearestMountedAncestor), prevHostParent = deletedFiber.stateNode, typeof prevHostParent.componentWillUnmount == "function" && safelyCallComponentWillUnmount(
deletedFiber,
nearestMountedAncestor,
prevHostParent
)), recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
);
break;
case 21:
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
);
break;
case 22:
offscreenSubtreeWasHidden = (prevHostParent = offscreenSubtreeWasHidden) || deletedFiber.memoizedState !== null, recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
), offscreenSubtreeWasHidden = prevHostParent;
break;
default:
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
deletedFiber
);
}
(deletedFiber.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || 0.05 < componentEffectDuration) && logComponentEffect(
deletedFiber,
componentEffectStartTime,
componentEffectEndTime,
componentEffectDuration,
componentEffectErrors
), popComponentEffectStart(prevEffectStart), popComponentEffectDuration(prevEffectDuration), componentEffectErrors = prevEffectErrors, componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate;
}
function commitActivityHydrationCallbacks(finishedRoot, finishedWork) {
if (supportsHydration && finishedWork.memoizedState === null && (finishedRoot = finishedWork.alternate, finishedRoot !== null && (finishedRoot = finishedRoot.memoizedState, finishedRoot !== null))) {
finishedRoot = finishedRoot.dehydrated;
try {
runWithFiberInDEV(
finishedWork,
commitHydratedActivityInstance,
finishedRoot
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
}
function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
if (supportsHydration && finishedWork.memoizedState === null && (finishedRoot = finishedWork.alternate, finishedRoot !== null && (finishedRoot = finishedRoot.memoizedState, finishedRoot !== null && (finishedRoot = finishedRoot.dehydrated, finishedRoot !== null))))
try {
runWithFiberInDEV(
finishedWork,
commitHydratedSuspenseInstance,
finishedRoot
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function getRetryCache(finishedWork) {
switch (finishedWork.tag) {
case 31:
case 13:
case 19:
var retryCache = finishedWork.stateNode;
return retryCache === null && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()), retryCache;
case 22:
return finishedWork = finishedWork.stateNode, retryCache = finishedWork._retryCache, retryCache === null && (retryCache = finishedWork._retryCache = new PossiblyWeakSet()), retryCache;
default:
throw Error(
"Unexpected Suspense handler tag (" + finishedWork.tag + "). This is a bug in React."
);
}
}
function attachSuspenseRetryListeners(finishedWork, wakeables) {
var retryCache = getRetryCache(finishedWork);
wakeables.forEach(function(wakeable) {
if (!retryCache.has(wakeable)) {
if (retryCache.add(wakeable), isDevToolsPresent)
if (inProgressLanes !== null && inProgressRoot !== null)
restorePendingUpdaters(inProgressRoot, inProgressLanes);
else
throw Error(
"Expected finished root and lanes to be set. This is a bug in React."
);
var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);
wakeable.then(retry, retry);
}
});
}
function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
var deletions = parentFiber.deletions;
if (deletions !== null)
for (var i = 0; i < deletions.length; i++) {
var root = root$jscomp$0, returnFiber = parentFiber, deletedFiber = deletions[i], prevEffectStart = pushComponentEffectStart();
if (supportsMutation) {
var parent = returnFiber;
a: for (; parent !== null; ) {
switch (parent.tag) {
case 27:
if (supportsSingletons) {
if (isSingletonScope(parent.type)) {
hostParent = parent.stateNode, hostParentIsContainer = !1;
break a;
}
break;
}
case 5:
hostParent = parent.stateNode, hostParentIsContainer = !1;
break a;
case 3:
case 4:
hostParent = parent.stateNode.containerInfo, hostParentIsContainer = !0;
break a;
}
parent = parent.return;
}
if (hostParent === null)
throw Error(
"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."
);
commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber), hostParent = null, hostParentIsContainer = !1;
} else commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber);
(deletedFiber.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(
deletedFiber,
componentEffectStartTime,
componentEffectEndTime,
"Unmount"
), popComponentEffectStart(prevEffectStart), root = deletedFiber, returnFiber = root.alternate, returnFiber !== null && (returnFiber.return = null), root.return = null;
}
if (parentFiber.subtreeFlags & 13886)
for (parentFiber = parentFiber.child; parentFiber !== null; )
commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling;
}
function commitMutationEffectsOnFiber(finishedWork, root) {
var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(), current2 = finishedWork.alternate, flags = finishedWork.flags;
switch (finishedWork.tag) {
case 0:
case 11:
case 14:
case 15:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 4 && (commitHookEffectListUnmount(
Insertion | HasEffect,
finishedWork,
finishedWork.return
), commitHookEffectListMount(Insertion | HasEffect, finishedWork), commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout | HasEffect
));
break;
case 1:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 512 && (offscreenSubtreeWasHidden || current2 === null || safelyDetachRef(current2, current2.return)), flags & 64 && offscreenSubtreeIsHidden && (flags = finishedWork.updateQueue, flags !== null && (current2 = flags.callbacks, current2 !== null && (root = flags.shared.hiddenCallbacks, flags.shared.hiddenCallbacks = root === null ? current2 : root.concat(current2))));
break;
case 26:
if (supportsResources) {
var hoistableRoot = currentHoistableRoot;
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 512 && (offscreenSubtreeWasHidden || current2 === null || safelyDetachRef(current2, current2.return)), flags & 4 && (flags = current2 !== null ? current2.memoizedState : null, root = finishedWork.memoizedState, current2 === null ? root === null ? finishedWork.stateNode === null ? finishedWork.stateNode = hydrateHoistable(
hoistableRoot,
finishedWork.type,
finishedWork.memoizedProps,
finishedWork
) : mountHoistable(
hoistableRoot,
finishedWork.type,
finishedWork.stateNode
) : finishedWork.stateNode = acquireResource(
hoistableRoot,
root,
finishedWork.memoizedProps
) : flags !== root ? (flags === null ? current2.stateNode !== null && unmountHoistable(current2.stateNode) : releaseResource(flags), root === null ? mountHoistable(
hoistableRoot,
finishedWork.type,
finishedWork.stateNode
) : acquireResource(
hoistableRoot,
root,
finishedWork.memoizedProps
)) : root === null && finishedWork.stateNode !== null && commitHostUpdate(
finishedWork,
finishedWork.memoizedProps,
current2.memoizedProps
));
break;
}
case 27:
if (supportsSingletons) {
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 512 && (offscreenSubtreeWasHidden || current2 === null || safelyDetachRef(current2, current2.return)), current2 !== null && flags & 4 && commitHostUpdate(
finishedWork,
finishedWork.memoizedProps,
current2.memoizedProps
);
break;
}
case 5:
if (recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 512 && (offscreenSubtreeWasHidden || current2 === null || safelyDetachRef(current2, current2.return)), supportsMutation) {
if (finishedWork.flags & 32) {
root = finishedWork.stateNode;
try {
runWithFiberInDEV(finishedWork, resetTextContent, root);
} catch (error) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error
);
}
}
flags & 4 && finishedWork.stateNode != null && (root = finishedWork.memoizedProps, commitHostUpdate(
finishedWork,
root,
current2 !== null ? current2.memoizedProps : root
)), flags & 1024 && (needsFormReset = !0, finishedWork.type !== "form" && console.error(
"Unexpected host component type. Expected a form. This is a bug in React."
));
} else
supportsPersistence && finishedWork.alternate !== null && (finishedWork.alternate.stateNode = finishedWork.stateNode);
break;
case 6:
if (recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 4 && supportsMutation) {
if (finishedWork.stateNode === null)
throw Error(
"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."
);
flags = finishedWork.memoizedProps, current2 = current2 !== null ? current2.memoizedProps : flags, root = finishedWork.stateNode;
try {
runWithFiberInDEV(
finishedWork,
commitTextUpdate,
root,
current2,
flags
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
break;
case 3:
if (hoistableRoot = pushNestedEffectDurations(), supportsResources) {
prepareToCommitHoistables();
var previousHoistableRoot = currentHoistableRoot;
currentHoistableRoot = getHoistableRoot(root.containerInfo), recursivelyTraverseMutationEffects(root, finishedWork), currentHoistableRoot = previousHoistableRoot;
} else recursivelyTraverseMutationEffects(root, finishedWork);
if (commitReconciliationEffects(finishedWork), flags & 4) {
if (supportsMutation && supportsHydration && current2 !== null && current2.memoizedState.isDehydrated)
try {
runWithFiberInDEV(
finishedWork,
commitHydratedContainer,
root.containerInfo
);
} catch (error) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error
);
}
if (supportsPersistence) {
flags = root.containerInfo, current2 = root.pendingChildren;
try {
runWithFiberInDEV(
finishedWork,
replaceContainerChildren,
flags,
current2
);
} catch (error) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error
);
}
}
}
needsFormReset && (needsFormReset = !1, recursivelyResetForms(finishedWork)), root.effectDuration += popNestedEffectDurations(hoistableRoot);
break;
case 4:
supportsResources ? (current2 = currentHoistableRoot, currentHoistableRoot = getHoistableRoot(
finishedWork.stateNode.containerInfo
), recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), currentHoistableRoot = current2) : (recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork)), flags & 4 && supportsPersistence && commitHostPortalContainerChildren(
finishedWork.stateNode,
finishedWork,
finishedWork.stateNode.pendingChildren
);
break;
case 12:
flags = pushNestedEffectDurations(), recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), finishedWork.stateNode.effectDuration += bubbleNestedEffectDurations(flags);
break;
case 31:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags)));
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), finishedWork.child.flags & 8192 && finishedWork.memoizedState !== null != (current2 !== null && current2.memoizedState !== null) && (globalMostRecentFallbackTime = now$1()), flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags)));
break;
case 22:
hoistableRoot = finishedWork.memoizedState !== null;
var wasHidden = current2 !== null && current2.memoizedState !== null, prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
if (offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot, offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden, recursivelyTraverseMutationEffects(root, finishedWork), offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden, offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden, wasHidden && !hoistableRoot && !prevOffscreenSubtreeIsHidden && !prevOffscreenSubtreeWasHidden && (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentReappeared(
finishedWork,
componentEffectStartTime,
componentEffectEndTime
), commitReconciliationEffects(finishedWork), flags & 8192 && (root = finishedWork.stateNode, root._visibility = hoistableRoot ? root._visibility & ~OffscreenVisible : root._visibility | OffscreenVisible, !hoistableRoot || current2 === null || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || (recursivelyTraverseDisappearLayoutEffects(finishedWork), (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
"Disconnect"
)), supportsMutation)) {
a: if (current2 = null, supportsMutation)
for (root = finishedWork; ; ) {
if (root.tag === 5 || supportsResources && root.tag === 26) {
if (current2 === null) {
wasHidden = current2 = root;
try {
previousHoistableRoot = wasHidden.stateNode, hoistableRoot ? runWithFiberInDEV(
wasHidden,
hideInstance,
previousHoistableRoot
) : runWithFiberInDEV(
wasHidden,
unhideInstance,
wasHidden.stateNode,
wasHidden.memoizedProps
);
} catch (error) {
captureCommitPhaseError(
wasHidden,
wasHidden.return,
error
);
}
}
} else if (root.tag === 6) {
if (current2 === null) {
wasHidden = root;
try {
var instance = wasHidden.stateNode;
hoistableRoot ? runWithFiberInDEV(
wasHidden,
hideTextInstance,
instance
) : runWithFiberInDEV(
wasHidden,
unhideTextInstance,
instance,
wasHidden.memoizedProps
);
} catch (error) {
captureCommitPhaseError(
wasHidden,
wasHidden.return,
error
);
}
}
} else if (root.tag === 18) {
if (current2 === null) {
wasHidden = root;
try {
var instance$jscomp$0 = wasHidden.stateNode;
hoistableRoot ? runWithFiberInDEV(
wasHidden,
hideDehydratedBoundary,
instance$jscomp$0
) : runWithFiberInDEV(
wasHidden,
unhideDehydratedBoundary,
wasHidden.stateNode
);
} catch (error) {
captureCommitPhaseError(
wasHidden,
wasHidden.return,
error
);
}
}
} else if ((root.tag !== 22 && root.tag !== 23 || root.memoizedState === null || root === finishedWork) && root.child !== null) {
root.child.return = root, root = root.child;
continue;
}
if (root === finishedWork) break a;
for (; root.sibling === null; ) {
if (root.return === null || root.return === finishedWork)
break a;
current2 === root && (current2 = null), root = root.return;
}
current2 === root && (current2 = null), root.sibling.return = root.return, root = root.sibling;
}
}
flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (current2 = flags.retryQueue, current2 !== null && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current2))));
break;
case 19:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags)));
break;
case 30:
break;
case 21:
break;
default:
recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork);
}
(finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && ((componentEffectSpawnedUpdate || 0.05 < componentEffectDuration) && logComponentEffect(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
componentEffectDuration,
componentEffectErrors
), finishedWork.alternate === null && finishedWork.return !== null && finishedWork.return.alternate !== null && 0.05 < componentEffectEndTime - componentEffectStartTime && (isHydratingParent(
finishedWork.return.alternate,
finishedWork.return
) || logComponentTrigger(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
"Mount"
))), popComponentEffectStart(prevEffectStart), popComponentEffectDuration(prevEffectDuration), componentEffectErrors = prevEffectErrors, componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate;
}
function commitReconciliationEffects(finishedWork) {
var flags = finishedWork.flags;
if (flags & 2) {
try {
runWithFiberInDEV(finishedWork, commitPlacement, finishedWork);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
finishedWork.flags &= -3;
}
flags & 4096 && (finishedWork.flags &= -4097);
}
function recursivelyResetForms(parentFiber) {
if (parentFiber.subtreeFlags & 1024)
for (parentFiber = parentFiber.child; parentFiber !== null; ) {
var fiber = parentFiber;
recursivelyResetForms(fiber), fiber.tag === 5 && fiber.flags & 1024 && resetFormInstance(fiber.stateNode), parentFiber = parentFiber.sibling;
}
}
function recursivelyTraverseLayoutEffects(root, parentFiber) {
if (parentFiber.subtreeFlags & 8772)
for (parentFiber = parentFiber.child; parentFiber !== null; )
commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber), parentFiber = parentFiber.sibling;
}
function disappearLayoutEffects(finishedWork) {
var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate();
switch (finishedWork.tag) {
case 0:
case 11:
case 14:
case 15:
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout
), recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 1:
safelyDetachRef(finishedWork, finishedWork.return);
var instance = finishedWork.stateNode;
typeof instance.componentWillUnmount == "function" && safelyCallComponentWillUnmount(
finishedWork,
finishedWork.return,
instance
), recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 27:
supportsSingletons && runWithFiberInDEV(
finishedWork,
releaseSingletonInstance,
finishedWork.stateNode
);
case 26:
case 5:
safelyDetachRef(finishedWork, finishedWork.return), recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 22:
finishedWork.memoizedState === null && recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 30:
recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
default:
recursivelyTraverseDisappearLayoutEffects(finishedWork);
}
(finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || 0.05 < componentEffectDuration) && logComponentEffect(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
componentEffectDuration,
componentEffectErrors
), popComponentEffectStart(prevEffectStart), popComponentEffectDuration(prevEffectDuration), componentEffectErrors = prevEffectErrors, componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate;
}
function recursivelyTraverseDisappearLayoutEffects(parentFiber) {
for (parentFiber = parentFiber.child; parentFiber !== null; )
disappearLayoutEffects(parentFiber), parentFiber = parentFiber.sibling;
}
function reappearLayoutEffects(finishedRoot, current2, finishedWork, includeWorkInProgressEffects) {
var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(), flags = finishedWork.flags;
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), commitHookLayoutEffects(finishedWork, Layout);
break;
case 1:
if (recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), current2 = finishedWork.stateNode, typeof current2.componentDidMount == "function" && runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
finishedWork,
current2
), current2 = finishedWork.updateQueue, current2 !== null) {
finishedRoot = finishedWork.stateNode;
try {
runWithFiberInDEV(
finishedWork,
commitHiddenCallbacks,
current2,
finishedRoot
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
includeWorkInProgressEffects && flags & 64 && commitClassCallbacks(finishedWork), safelyAttachRef(finishedWork, finishedWork.return);
break;
case 27:
supportsSingletons && commitHostSingletonAcquisition(finishedWork);
case 26:
case 5:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), includeWorkInProgressEffects && current2 === null && flags & 4 && commitHostMount(finishedWork), safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
if (includeWorkInProgressEffects && flags & 4) {
flags = pushNestedEffectDurations(), recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), includeWorkInProgressEffects = finishedWork.stateNode, includeWorkInProgressEffects.effectDuration += bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
commitProfiler,
finishedWork,
current2,
commitStartTime,
includeWorkInProgressEffects.effectDuration
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
} else
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
break;
case 31:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), includeWorkInProgressEffects && flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork);
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), includeWorkInProgressEffects && flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
break;
case 22:
finishedWork.memoizedState === null && recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
), safelyAttachRef(finishedWork, finishedWork.return);
break;
case 30:
break;
default:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
}
(finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || 0.05 < componentEffectDuration) && logComponentEffect(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
componentEffectDuration,
componentEffectErrors
), popComponentEffectStart(prevEffectStart), popComponentEffectDuration(prevEffectDuration), componentEffectErrors = prevEffectErrors, componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate;
}
function recursivelyTraverseReappearLayoutEffects(finishedRoot, parentFiber, includeWorkInProgressEffects) {
for (includeWorkInProgressEffects = includeWorkInProgressEffects && (parentFiber.subtreeFlags & 8772) !== 0, parentFiber = parentFiber.child; parentFiber !== null; )
reappearLayoutEffects(
finishedRoot,
parentFiber.alternate,
parentFiber,
includeWorkInProgressEffects
), parentFiber = parentFiber.sibling;
}
function commitOffscreenPassiveMountEffects(current2, finishedWork) {
var previousCache = null;
current2 !== null && current2.memoizedState !== null && current2.memoizedState.cachePool !== null && (previousCache = current2.memoizedState.cachePool.pool), current2 = null, finishedWork.memoizedState !== null && finishedWork.memoizedState.cachePool !== null && (current2 = finishedWork.memoizedState.cachePool.pool), current2 !== previousCache && (current2 != null && retainCache(current2), previousCache != null && releaseCache(previousCache));
}
function commitCachePassiveMountEffect(current2, finishedWork) {
current2 = null, finishedWork.alternate !== null && (current2 = finishedWork.alternate.memoizedState.cache), finishedWork = finishedWork.memoizedState.cache, finishedWork !== current2 && (retainCache(finishedWork), current2 != null && releaseCache(current2));
}
function recursivelyTraversePassiveMountEffects(root, parentFiber, committedLanes, committedTransitions, endTime) {
if (parentFiber.subtreeFlags & 10256 || parentFiber.actualDuration !== 0 && (parentFiber.alternate === null || parentFiber.alternate.child !== parentFiber.child))
for (parentFiber = parentFiber.child; parentFiber !== null; ) {
var nextSibling = parentFiber.sibling;
commitPassiveMountOnFiber(
root,
parentFiber,
committedLanes,
committedTransitions,
nextSibling !== null ? nextSibling.actualStartTime : endTime
), parentFiber = nextSibling;
}
}
function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime) {
var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(), prevDeepEquality = alreadyWarnedForDeepEquality, flags = finishedWork.flags;
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
(finishedWork.mode & 2) !== NoMode && 0 < finishedWork.actualStartTime && (finishedWork.flags & 1) !== 0 && logComponentRender(
finishedWork,
finishedWork.actualStartTime,
endTime,
inHydratedSubtree,
committedLanes
), recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
), flags & 2048 && commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
break;
case 1:
(finishedWork.mode & 2) !== NoMode && 0 < finishedWork.actualStartTime && ((finishedWork.flags & 128) !== 0 ? logComponentErrored(
finishedWork,
finishedWork.actualStartTime,
endTime,
[]
) : (finishedWork.flags & 1) !== 0 && logComponentRender(
finishedWork,
finishedWork.actualStartTime,
endTime,
inHydratedSubtree,
committedLanes
)), recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
);
break;
case 3:
var prevProfilerEffectDuration = pushNestedEffectDurations(), wasInHydratedSubtree = inHydratedSubtree;
inHydratedSubtree = finishedWork.alternate !== null && finishedWork.alternate.memoizedState.isDehydrated && (finishedWork.flags & 256) === 0, recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
), inHydratedSubtree = wasInHydratedSubtree, flags & 2048 && (committedLanes = null, finishedWork.alternate !== null && (committedLanes = finishedWork.alternate.memoizedState.cache), committedTransitions = finishedWork.memoizedState.cache, committedTransitions !== committedLanes && (retainCache(committedTransitions), committedLanes != null && releaseCache(committedLanes))), finishedRoot.passiveEffectDuration += popNestedEffectDurations(
prevProfilerEffectDuration
);
break;
case 12:
if (flags & 2048) {
flags = pushNestedEffectDurations(), recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
), finishedRoot = finishedWork.stateNode, finishedRoot.passiveEffectDuration += bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
commitProfilerPostCommitImpl,
finishedWork,
finishedWork.alternate,
commitStartTime,
finishedRoot.passiveEffectDuration
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
} else
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
);
break;
case 31:
flags = inHydratedSubtree, prevProfilerEffectDuration = finishedWork.alternate !== null ? finishedWork.alternate.memoizedState : null, wasInHydratedSubtree = finishedWork.memoizedState, prevProfilerEffectDuration !== null && wasInHydratedSubtree === null ? (wasInHydratedSubtree = finishedWork.deletions, wasInHydratedSubtree !== null && 0 < wasInHydratedSubtree.length && wasInHydratedSubtree[0].tag === 18 ? (inHydratedSubtree = !1, prevProfilerEffectDuration = prevProfilerEffectDuration.hydrationErrors, prevProfilerEffectDuration !== null && logComponentErrored(
finishedWork,
finishedWork.actualStartTime,
endTime,
prevProfilerEffectDuration
)) : inHydratedSubtree = !0) : inHydratedSubtree = !1, recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
), inHydratedSubtree = flags;
break;
case 13:
flags = inHydratedSubtree, prevProfilerEffectDuration = finishedWork.alternate !== null ? finishedWork.alternate.memoizedState : null, wasInHydratedSubtree = finishedWork.memoizedState, prevProfilerEffectDuration === null || prevProfilerEffectDuration.dehydrated === null || wasInHydratedSubtree !== null && wasInHydratedSubtree.dehydrated !== null ? inHydratedSubtree = !1 : (wasInHydratedSubtree = finishedWork.deletions, wasInHydratedSubtree !== null && 0 < wasInHydratedSubtree.length && wasInHydratedSubtree[0].tag === 18 ? (inHydratedSubtree = !1, prevProfilerEffectDuration = prevProfilerEffectDuration.hydrationErrors, prevProfilerEffectDuration !== null && logComponentErrored(
finishedWork,
finishedWork.actualStartTime,
endTime,
prevProfilerEffectDuration
)) : inHydratedSubtree = !0), recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
), inHydratedSubtree = flags;
break;
case 23:
break;
case 22:
wasInHydratedSubtree = finishedWork.stateNode, prevProfilerEffectDuration = finishedWork.alternate, finishedWork.memoizedState !== null ? wasInHydratedSubtree._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
) : recursivelyTraverseAtomicPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
) : wasInHydratedSubtree._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
) : (wasInHydratedSubtree._visibility |= OffscreenPassiveEffectsConnected, recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
(finishedWork.subtreeFlags & 10256) !== 0 || finishedWork.actualDuration !== 0 && (finishedWork.alternate === null || finishedWork.alternate.child !== finishedWork.child),
endTime
), (finishedWork.mode & 2) === NoMode || inHydratedSubtree || (finishedRoot = finishedWork.actualStartTime, 0 <= finishedRoot && 0.05 < endTime - finishedRoot && logComponentReappeared(finishedWork, finishedRoot, endTime), 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentReappeared(
finishedWork,
componentEffectStartTime,
componentEffectEndTime
))), flags & 2048 && commitOffscreenPassiveMountEffects(
prevProfilerEffectDuration,
finishedWork
);
break;
case 24:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
), flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);
break;
default:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
);
}
(finishedWork.mode & 2) !== NoMode && ((finishedRoot = !inHydratedSubtree && finishedWork.alternate === null && finishedWork.return !== null && finishedWork.return.alternate !== null) && (committedLanes = finishedWork.actualStartTime, 0 <= committedLanes && 0.05 < endTime - committedLanes && logComponentTrigger(
finishedWork,
committedLanes,
endTime,
"Mount"
)), 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && ((componentEffectSpawnedUpdate || 0.05 < componentEffectDuration) && logComponentEffect(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
componentEffectDuration,
componentEffectErrors
), finishedRoot && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
"Mount"
))), popComponentEffectStart(prevEffectStart), popComponentEffectDuration(prevEffectDuration), componentEffectErrors = prevEffectErrors, componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate, alreadyWarnedForDeepEquality = prevDeepEquality;
}
function recursivelyTraverseReconnectPassiveEffects(finishedRoot, parentFiber, committedLanes, committedTransitions, includeWorkInProgressEffects, endTime) {
for (includeWorkInProgressEffects = includeWorkInProgressEffects && ((parentFiber.subtreeFlags & 10256) !== 0 || parentFiber.actualDuration !== 0 && (parentFiber.alternate === null || parentFiber.alternate.child !== parentFiber.child)), parentFiber = parentFiber.child; parentFiber !== null; ) {
var nextSibling = parentFiber.sibling;
reconnectPassiveEffects(
finishedRoot,
parentFiber,
committedLanes,
committedTransitions,
includeWorkInProgressEffects,
nextSibling !== null ? nextSibling.actualStartTime : endTime
), parentFiber = nextSibling;
}
}
function reconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects, endTime) {
var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(), prevDeepEquality = alreadyWarnedForDeepEquality;
includeWorkInProgressEffects && (finishedWork.mode & 2) !== NoMode && 0 < finishedWork.actualStartTime && (finishedWork.flags & 1) !== 0 && logComponentRender(
finishedWork,
finishedWork.actualStartTime,
endTime,
inHydratedSubtree,
committedLanes
);
var flags = finishedWork.flags;
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects,
endTime
), commitHookPassiveMountEffects(finishedWork, Passive);
break;
case 23:
break;
case 22:
var _instance2 = finishedWork.stateNode;
finishedWork.memoizedState !== null ? _instance2._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects,
endTime
) : recursivelyTraverseAtomicPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
endTime
) : (_instance2._visibility |= OffscreenPassiveEffectsConnected, recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects,
endTime
)), includeWorkInProgressEffects && flags & 2048 && commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork
);
break;
case 24:
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects,
endTime
), includeWorkInProgressEffects && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);
break;
default:
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions,
includeWorkInProgressEffects,
endTime
);
}
(finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || 0.05 < componentEffectDuration) && logComponentEffect(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
componentEffectDuration,
componentEffectErrors
), popComponentEffectStart(prevEffectStart), popComponentEffectDuration(prevEffectDuration), componentEffectErrors = prevEffectErrors, componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate, alreadyWarnedForDeepEquality = prevDeepEquality;
}
function recursivelyTraverseAtomicPassiveEffects(finishedRoot$jscomp$0, parentFiber, committedLanes$jscomp$0, committedTransitions$jscomp$0, endTime$jscomp$0) {
if (parentFiber.subtreeFlags & 10256 || parentFiber.actualDuration !== 0 && (parentFiber.alternate === null || parentFiber.alternate.child !== parentFiber.child))
for (var child = parentFiber.child; child !== null; ) {
parentFiber = child.sibling;
var finishedRoot = finishedRoot$jscomp$0, committedLanes = committedLanes$jscomp$0, committedTransitions = committedTransitions$jscomp$0, endTime = parentFiber !== null ? parentFiber.actualStartTime : endTime$jscomp$0, prevDeepEquality = alreadyWarnedForDeepEquality;
(child.mode & 2) !== NoMode && 0 < child.actualStartTime && (child.flags & 1) !== 0 && logComponentRender(
child,
child.actualStartTime,
endTime,
inHydratedSubtree,
committedLanes
);
var flags = child.flags;
switch (child.tag) {
case 22:
recursivelyTraverseAtomicPassiveEffects(
finishedRoot,
child,
committedLanes,
committedTransitions,
endTime
), flags & 2048 && commitOffscreenPassiveMountEffects(child.alternate, child);
break;
case 24:
recursivelyTraverseAtomicPassiveEffects(
finishedRoot,
child,
committedLanes,
committedTransitions,
endTime
), flags & 2048 && commitCachePassiveMountEffect(child.alternate, child);
break;
default:
recursivelyTraverseAtomicPassiveEffects(
finishedRoot,
child,
committedLanes,
committedTransitions,
endTime
);
}
alreadyWarnedForDeepEquality = prevDeepEquality, child = parentFiber;
}
}
function recursivelyAccumulateSuspenseyCommit(parentFiber, committedLanes, suspendedState) {
if (parentFiber.subtreeFlags & suspenseyCommitFlag)
for (parentFiber = parentFiber.child; parentFiber !== null; )
accumulateSuspenseyCommitOnFiber(
parentFiber,
committedLanes,
suspendedState
), parentFiber = parentFiber.sibling;
}
function accumulateSuspenseyCommitOnFiber(fiber, committedLanes, suspendedState) {
switch (fiber.tag) {
case 26:
if (recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
), fiber.flags & suspenseyCommitFlag)
if (fiber.memoizedState !== null)
suspendResource(
suspendedState,
currentHoistableRoot,
fiber.memoizedState,
fiber.memoizedProps
);
else {
var instance = fiber.stateNode, type = fiber.type;
fiber = fiber.memoizedProps, ((committedLanes & 335544128) === committedLanes || maySuspendCommitInSyncRender(type, fiber)) && suspendInstance(suspendedState, instance, type, fiber);
}
break;
case 5:
recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
), fiber.flags & suspenseyCommitFlag && (instance = fiber.stateNode, type = fiber.type, fiber = fiber.memoizedProps, ((committedLanes & 335544128) === committedLanes || maySuspendCommitInSyncRender(type, fiber)) && suspendInstance(suspendedState, instance, type, fiber));
break;
case 3:
case 4:
supportsResources ? (instance = currentHoistableRoot, currentHoistableRoot = getHoistableRoot(
fiber.stateNode.containerInfo
), recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
), currentHoistableRoot = instance) : recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
);
break;
case 22:
fiber.memoizedState === null && (instance = fiber.alternate, instance !== null && instance.memoizedState !== null ? (instance = suspenseyCommitFlag, suspenseyCommitFlag = 16777216, recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
), suspenseyCommitFlag = instance) : recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
));
break;
default:
recursivelyAccumulateSuspenseyCommit(
fiber,
committedLanes,
suspendedState
);
}
}
function detachAlternateSiblings(parentFiber) {
var previousFiber = parentFiber.alternate;
if (previousFiber !== null && (parentFiber = previousFiber.child, parentFiber !== null)) {
previousFiber.child = null;
do
previousFiber = parentFiber.sibling, parentFiber.sibling = null, parentFiber = previousFiber;
while (parentFiber !== null);
}
}
function recursivelyTraversePassiveUnmountEffects(parentFiber) {
var deletions = parentFiber.deletions;
if ((parentFiber.flags & 16) !== 0) {
if (deletions !== null)
for (var i = 0; i < deletions.length; i++) {
var childToDelete = deletions[i], prevEffectStart = pushComponentEffectStart();
nextEffect = childToDelete, commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
childToDelete,
parentFiber
), (childToDelete.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(
childToDelete,
componentEffectStartTime,
componentEffectEndTime,
"Unmount"
), popComponentEffectStart(prevEffectStart);
}
detachAlternateSiblings(parentFiber);
}
if (parentFiber.subtreeFlags & 10256)
for (parentFiber = parentFiber.child; parentFiber !== null; )
commitPassiveUnmountOnFiber(parentFiber), parentFiber = parentFiber.sibling;
}
function commitPassiveUnmountOnFiber(finishedWork) {
var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate();
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
recursivelyTraversePassiveUnmountEffects(finishedWork), finishedWork.flags & 2048 && commitHookPassiveUnmountEffects(
finishedWork,
finishedWork.return,
Passive | HasEffect
);
break;
case 3:
var prevProfilerEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork), finishedWork.stateNode.passiveEffectDuration += popNestedEffectDurations(prevProfilerEffectDuration);
break;
case 12:
prevProfilerEffectDuration = pushNestedEffectDurations(), recursivelyTraversePassiveUnmountEffects(finishedWork), finishedWork.stateNode.passiveEffectDuration += bubbleNestedEffectDurations(prevProfilerEffectDuration);
break;
case 22:
prevProfilerEffectDuration = finishedWork.stateNode, finishedWork.memoizedState !== null && prevProfilerEffectDuration._visibility & OffscreenPassiveEffectsConnected && (finishedWork.return === null || finishedWork.return.tag !== 13) ? (prevProfilerEffectDuration._visibility &= ~OffscreenPassiveEffectsConnected, recursivelyTraverseDisconnectPassiveEffects(finishedWork), (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
"Disconnect"
)) : recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
default:
recursivelyTraversePassiveUnmountEffects(finishedWork);
}
(finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || 0.05 < componentEffectDuration) && logComponentEffect(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
componentEffectDuration,
componentEffectErrors
), popComponentEffectStart(prevEffectStart), popComponentEffectDuration(prevEffectDuration), componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate, componentEffectErrors = prevEffectErrors;
}
function recursivelyTraverseDisconnectPassiveEffects(parentFiber) {
var deletions = parentFiber.deletions;
if ((parentFiber.flags & 16) !== 0) {
if (deletions !== null)
for (var i = 0; i < deletions.length; i++) {
var childToDelete = deletions[i], prevEffectStart = pushComponentEffectStart();
nextEffect = childToDelete, commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
childToDelete,
parentFiber
), (childToDelete.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(
childToDelete,
componentEffectStartTime,
componentEffectEndTime,
"Unmount"
), popComponentEffectStart(prevEffectStart);
}
detachAlternateSiblings(parentFiber);
}
for (parentFiber = parentFiber.child; parentFiber !== null; )
disconnectPassiveEffect(parentFiber), parentFiber = parentFiber.sibling;
}
function disconnectPassiveEffect(finishedWork) {
var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate();
switch (finishedWork.tag) {
case 0:
case 11:
case 15:
commitHookPassiveUnmountEffects(
finishedWork,
finishedWork.return,
Passive
), recursivelyTraverseDisconnectPassiveEffects(finishedWork);
break;
case 22:
var instance = finishedWork.stateNode;
instance._visibility & OffscreenPassiveEffectsConnected && (instance._visibility &= ~OffscreenPassiveEffectsConnected, recursivelyTraverseDisconnectPassiveEffects(finishedWork));
break;
default:
recursivelyTraverseDisconnectPassiveEffects(finishedWork);
}
(finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || 0.05 < componentEffectDuration) && logComponentEffect(
finishedWork,
componentEffectStartTime,
componentEffectEndTime,
componentEffectDuration,
componentEffectErrors
), popComponentEffectStart(prevEffectStart), popComponentEffectDuration(prevEffectDuration), componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate, componentEffectErrors = prevEffectErrors;
}
function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor$jscomp$0) {
for (; nextEffect !== null; ) {
var fiber = nextEffect, current2 = fiber, nearestMountedAncestor = nearestMountedAncestor$jscomp$0, prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate();
switch (current2.tag) {
case 0:
case 11:
case 15:
commitHookPassiveUnmountEffects(
current2,
nearestMountedAncestor,
Passive
);
break;
case 23:
case 22:
current2.memoizedState !== null && current2.memoizedState.cachePool !== null && (nearestMountedAncestor = current2.memoizedState.cachePool.pool, nearestMountedAncestor != null && retainCache(nearestMountedAncestor));
break;
case 24:
releaseCache(current2.memoizedState.cache);
}
if ((current2.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || 0.05 < componentEffectDuration) && logComponentEffect(
current2,
componentEffectStartTime,
componentEffectEndTime,
componentEffectDuration,
componentEffectErrors
), popComponentEffectStart(prevEffectStart), popComponentEffectDuration(prevEffectDuration), componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate, componentEffectErrors = prevEffectErrors, current2 = fiber.child, current2 !== null) current2.return = fiber, nextEffect = current2;
else
a: for (fiber = deletedSubtreeRoot; nextEffect !== null; ) {
if (current2 = nextEffect, prevEffectStart = current2.sibling, prevEffectDuration = current2.return, detachFiberAfterEffects(current2), current2 === fiber) {
nextEffect = null;
break a;
}
if (prevEffectStart !== null) {
prevEffectStart.return = prevEffectDuration, nextEffect = prevEffectStart;
break a;
}
nextEffect = prevEffectDuration;
}
}
}
function findFiberRootForHostRoot(hostRoot) {
var maybeFiber = getInstanceFromNode(hostRoot);
if (maybeFiber != null) {
if (typeof maybeFiber.memoizedProps["data-testname"] != "string")
throw Error(
"Invalid host root specified. Should be either a React container or a node with a testname attribute."
);
return maybeFiber;
}
if (hostRoot = findFiberRoot(hostRoot), hostRoot === null)
throw Error(
"Could not find React container within specified host subtree."
);
return hostRoot.stateNode.current;
}
function matchSelector(fiber$jscomp$0, selector) {
var tag = fiber$jscomp$0.tag;
switch (selector.$$typeof) {
case COMPONENT_TYPE:
if (fiber$jscomp$0.type === selector.value) return !0;
break;
case HAS_PSEUDO_CLASS_TYPE:
a: {
for (selector = selector.value, fiber$jscomp$0 = [fiber$jscomp$0, 0], tag = 0; tag < fiber$jscomp$0.length; ) {
var fiber = fiber$jscomp$0[tag++], tag$jscomp$0 = fiber.tag, selectorIndex = fiber$jscomp$0[tag++], selector$jscomp$0 = selector[selectorIndex];
if (tag$jscomp$0 !== 5 && tag$jscomp$0 !== 26 && tag$jscomp$0 !== 27 || !isHiddenSubtree(fiber)) {
for (; selector$jscomp$0 != null && matchSelector(fiber, selector$jscomp$0); )
selectorIndex++, selector$jscomp$0 = selector[selectorIndex];
if (selectorIndex === selector.length) {
selector = !0;
break a;
} else
for (fiber = fiber.child; fiber !== null; )
fiber$jscomp$0.push(fiber, selectorIndex), fiber = fiber.sibling;
}
}
selector = !1;
}
return selector;
case ROLE_TYPE:
if ((tag === 5 || tag === 26 || tag === 27) && matchAccessibilityRole(fiber$jscomp$0.stateNode, selector.value))
return !0;
break;
case TEXT_TYPE:
if ((tag === 5 || tag === 6 || tag === 26 || tag === 27) && (fiber$jscomp$0 = getTextContent(fiber$jscomp$0), fiber$jscomp$0 !== null && 0 <= fiber$jscomp$0.indexOf(selector.value)))
return !0;
break;
case TEST_NAME_TYPE:
if ((tag === 5 || tag === 26 || tag === 27) && (fiber$jscomp$0 = fiber$jscomp$0.memoizedProps["data-testname"], typeof fiber$jscomp$0 == "string" && fiber$jscomp$0.toLowerCase() === selector.value.toLowerCase()))
return !0;
break;
default:
throw Error("Invalid selector type specified.");
}
return !1;
}
function selectorToString(selector) {
switch (selector.$$typeof) {
case COMPONENT_TYPE:
return "<" + (getComponentNameFromType(selector.value) || "Unknown") + ">";
case HAS_PSEUDO_CLASS_TYPE:
return ":has(" + (selectorToString(selector) || "") + ")";
case ROLE_TYPE:
return '[role="' + selector.value + '"]';
case TEXT_TYPE:
return '"' + selector.value + '"';
case TEST_NAME_TYPE:
return '[data-testname="' + selector.value + '"]';
default:
throw Error("Invalid selector type specified.");
}
}
function findPaths(root, selectors) {
var matchingFibers = [];
root = [root, 0];
for (var index = 0; index < root.length; ) {
var fiber = root[index++], tag = fiber.tag, selectorIndex = root[index++], selector = selectors[selectorIndex];
if (tag !== 5 && tag !== 26 && tag !== 27 || !isHiddenSubtree(fiber)) {
for (; selector != null && matchSelector(fiber, selector); )
selectorIndex++, selector = selectors[selectorIndex];
if (selectorIndex === selectors.length) matchingFibers.push(fiber);
else
for (fiber = fiber.child; fiber !== null; )
root.push(fiber, selectorIndex), fiber = fiber.sibling;
}
}
return matchingFibers;
}
function findAllNodes(hostRoot, selectors) {
if (!supportsTestSelectors)
throw Error("Test selector API is not supported by this renderer.");
hostRoot = findFiberRootForHostRoot(hostRoot), hostRoot = findPaths(hostRoot, selectors), selectors = [], hostRoot = Array.from(hostRoot);
for (var index = 0; index < hostRoot.length; ) {
var node = hostRoot[index++], tag = node.tag;
if (tag === 5 || tag === 26 || tag === 27)
isHiddenSubtree(node) || selectors.push(node.stateNode);
else
for (node = node.child; node !== null; )
hostRoot.push(node), node = node.sibling;
}
return selectors;
}
function onCommitRoot() {
supportsTestSelectors && commitHooks.forEach(function(commitHook) {
return commitHook();
});
}
function isConcurrentActEnvironment() {
var isReactActEnvironmentGlobal = typeof IS_REACT_ACT_ENVIRONMENT < "u" ? IS_REACT_ACT_ENVIRONMENT : void 0;
return isReactActEnvironmentGlobal || ReactSharedInternals.actQueue === null || console.error(
"The current testing environment is not configured to support act(...)"
), isReactActEnvironmentGlobal;
}
function requestUpdateLane(fiber) {
if ((executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== 0)
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
var transition = ReactSharedInternals.T;
return transition !== null ? (transition._updatedFibers || (transition._updatedFibers = /* @__PURE__ */ new Set()), transition._updatedFibers.add(fiber), requestTransitionLane()) : resolveUpdatePriority();
}
function requestDeferredLane() {
if (workInProgressDeferredLane === 0)
if ((workInProgressRootRenderLanes & 536870912) === 0 || isHydrating) {
var lane = nextTransitionDeferredLane;
nextTransitionDeferredLane <<= 1, (nextTransitionDeferredLane & 3932160) === 0 && (nextTransitionDeferredLane = 262144), workInProgressDeferredLane = lane;
} else workInProgressDeferredLane = 536870912;
return lane = suspenseHandlerStackCursor.current, lane !== null && (lane.flags |= 32), workInProgressDeferredLane;
}
function scheduleUpdateOnFiber(root, fiber, lane) {
if (isRunningInsertionEffect && console.error("useInsertionEffect must not schedule updates."), isFlushingPassiveEffects && (didScheduleUpdateDuringPassiveEffects = !0), (root === workInProgressRoot && (workInProgressSuspendedReason === SuspendedOnData || workInProgressSuspendedReason === SuspendedOnAction) || root.cancelPendingCommit !== null) && (prepareFreshStack(root, 0), markRootSuspended(
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
!1
)), markRootUpdated$1(root, lane), (executionContext & RenderContext) !== NoContext && root === workInProgressRoot) {
if (isRendering)
switch (fiber.tag) {
case 0:
case 11:
case 15:
root = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown", didWarnAboutUpdateInRenderForAnotherComponent.has(root) || (didWarnAboutUpdateInRenderForAnotherComponent.add(root), fiber = getComponentNameFromFiber(fiber) || "Unknown", console.error(
"Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",
fiber,
root,
root
));
break;
case 1:
didWarnAboutUpdateInRender || (console.error(
"Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."
), didWarnAboutUpdateInRender = !0);
}
} else
isDevToolsPresent && addFiberToLanesMap(root, fiber, lane), warnIfUpdatesNotWrappedWithActDEV(fiber), root === workInProgressRoot && ((executionContext & RenderContext) === NoContext && (workInProgressRootInterleavedUpdatedLanes |= lane), workInProgressRootExitStatus === RootSuspendedWithDelay && markRootSuspended(
root,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
!1
)), ensureRootIsScheduled(root);
}
function performWorkOnRoot(root, lanes, forceSync) {
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
throw Error("Should not already be working.");
if (workInProgressRootRenderLanes !== 0 && workInProgress !== null) {
var yieldedFiber = workInProgress, yieldEndTime = now$1();
switch (yieldReason) {
case SuspendedOnImmediate:
case SuspendedOnData:
var startTime = yieldStartTime;
supportsUserTiming && ((yieldedFiber = yieldedFiber._debugTask) ? yieldedFiber.run(
console.timeStamp.bind(
console,
"Suspended",
startTime,
yieldEndTime,
"Components \u269B",
void 0,
"primary-light"
)
) : console.timeStamp(
"Suspended",
startTime,
yieldEndTime,
"Components \u269B",
void 0,
"primary-light"
));
break;
case SuspendedOnAction:
startTime = yieldStartTime, supportsUserTiming && ((yieldedFiber = yieldedFiber._debugTask) ? yieldedFiber.run(
console.timeStamp.bind(
console,
"Action",
startTime,
yieldEndTime,
"Components \u269B",
void 0,
"primary-light"
)
) : console.timeStamp(
"Action",
startTime,
yieldEndTime,
"Components \u269B",
void 0,
"primary-light"
));
break;
default:
supportsUserTiming && (yieldedFiber = yieldEndTime - yieldStartTime, 3 > yieldedFiber || console.timeStamp(
"Blocked",
yieldStartTime,
yieldEndTime,
"Components \u269B",
void 0,
5 > yieldedFiber ? "primary-light" : 10 > yieldedFiber ? "primary" : 100 > yieldedFiber ? "primary-dark" : "error"
));
}
}
startTime = (forceSync = !forceSync && (lanes & 127) === 0 && (lanes & root.expiredLanes) === 0 || checkIfRootIsPrerendering(root, lanes)) ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes, !0);
var renderWasConcurrent = forceSync;
do {
if (startTime === RootInProgress) {
workInProgressRootIsPrerendering && !forceSync && markRootSuspended(root, lanes, 0, !1), lanes = workInProgressSuspendedReason, yieldStartTime = now(), yieldReason = lanes;
break;
} else {
if (yieldedFiber = now$1(), yieldEndTime = root.current.alternate, renderWasConcurrent && !isRenderConsistentWithExternalStores(yieldEndTime)) {
setCurrentTrackFromLanes(lanes), yieldEndTime = renderStartTime, startTime = yieldedFiber, !supportsUserTiming || startTime <= yieldEndTime || (workInProgressUpdateTask ? workInProgressUpdateTask.run(
console.timeStamp.bind(
console,
"Teared Render",
yieldEndTime,
startTime,
currentTrack,
"Scheduler \u269B",
"error"
)
) : console.timeStamp(
"Teared Render",
yieldEndTime,
startTime,
currentTrack,
"Scheduler \u269B",
"error"
)), finalizeRender(lanes, yieldedFiber), startTime = renderRootSync(root, lanes, !1), renderWasConcurrent = !1;
continue;
}
if (startTime === RootErrored) {
if (renderWasConcurrent = lanes, root.errorRecoveryDisabledLanes & renderWasConcurrent)
var errorRetryLanes = 0;
else
errorRetryLanes = root.pendingLanes & -536870913, errorRetryLanes = errorRetryLanes !== 0 ? errorRetryLanes : errorRetryLanes & 536870912 ? 536870912 : 0;
if (errorRetryLanes !== 0) {
setCurrentTrackFromLanes(lanes), logErroredRenderPhase(
renderStartTime,
yieldedFiber,
lanes,
workInProgressUpdateTask
), finalizeRender(lanes, yieldedFiber), lanes = errorRetryLanes;
a: {
yieldedFiber = root, startTime = renderWasConcurrent, renderWasConcurrent = workInProgressRootConcurrentErrors;
var wasRootDehydrated = supportsHydration && yieldedFiber.current.memoizedState.isDehydrated;
if (wasRootDehydrated && (prepareFreshStack(yieldedFiber, errorRetryLanes).flags |= 256), errorRetryLanes = renderRootSync(
yieldedFiber,
errorRetryLanes,
!1
), errorRetryLanes !== RootErrored) {
if (workInProgressRootDidAttachPingListener && !wasRootDehydrated) {
yieldedFiber.errorRecoveryDisabledLanes |= startTime, workInProgressRootInterleavedUpdatedLanes |= startTime, startTime = RootSuspendedWithDelay;
break a;
}
yieldedFiber = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = renderWasConcurrent, yieldedFiber !== null && (workInProgressRootRecoverableErrors === null ? workInProgressRootRecoverableErrors = yieldedFiber : workInProgressRootRecoverableErrors.push.apply(
workInProgressRootRecoverableErrors,
yieldedFiber
));
}
startTime = errorRetryLanes;
}
if (renderWasConcurrent = !1, startTime !== RootErrored) continue;
yieldedFiber = now$1();
}
}
if (startTime === RootFatalErrored) {
setCurrentTrackFromLanes(lanes), logErroredRenderPhase(
renderStartTime,
yieldedFiber,
lanes,
workInProgressUpdateTask
), finalizeRender(lanes, yieldedFiber), prepareFreshStack(root, 0), markRootSuspended(root, lanes, 0, !0);
break;
}
a: {
switch (forceSync = root, startTime) {
case RootInProgress:
case RootFatalErrored:
throw Error("Root did not complete. This is a bug in React.");
case RootSuspendedWithDelay:
if ((lanes & 4194048) !== lanes) break;
case RootSuspendedAtTheShell:
setCurrentTrackFromLanes(lanes), logSuspendedRenderPhase(
renderStartTime,
yieldedFiber,
lanes,
workInProgressUpdateTask
), finalizeRender(lanes, yieldedFiber), yieldEndTime = lanes, (yieldEndTime & 127) !== 0 ? blockingSuspendedTime = yieldedFiber : (yieldEndTime & 4194048) !== 0 && (transitionSuspendedTime = yieldedFiber), markRootSuspended(
forceSync,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
);
break a;
case RootErrored:
workInProgressRootRecoverableErrors = null;
break;
case RootSuspended:
case RootCompleted:
break;
default:
throw Error("Unknown root exit status.");
}
if (ReactSharedInternals.actQueue !== null)
commitRoot(
forceSync,
yieldEndTime,
lanes,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
startTime,
null,
null,
renderStartTime,
yieldedFiber
);
else {
if ((lanes & 62914560) === lanes && (renderWasConcurrent = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$1(), 10 < renderWasConcurrent)) {
if (markRootSuspended(
forceSync,
lanes,
workInProgressDeferredLane,
!workInProgressRootDidSkipSuspendedSiblings
), getNextLanes(forceSync, 0, !0) !== 0) break a;
pendingEffectsLanes = lanes, forceSync.timeoutHandle = scheduleTimeout(
commitRootWhenReady.bind(
null,
forceSync,
yieldEndTime,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
startTime,
"Throttled",
renderStartTime,
yieldedFiber
),
renderWasConcurrent
);
break a;
}
commitRootWhenReady(
forceSync,
yieldEndTime,
workInProgressRootRecoverableErrors,
workInProgressTransitions,
workInProgressRootDidIncludeRecursiveRenderUpdate,
lanes,
workInProgressDeferredLane,
workInProgressRootInterleavedUpdatedLanes,
workInProgressSuspendedRetryLanes,
workInProgressRootDidSkipSuspendedSiblings,
startTime,
null,
renderStartTime,
yieldedFiber
);
}
}
}
break;
} while (!0);
ensureRootIsScheduled(root);
}
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) {
root.timeoutHandle = noTimeout;
var subtreeFlags = finishedWork.subtreeFlags, suspendedState = null;
if ((subtreeFlags & 8192 || (subtreeFlags & 16785408) === 16785408) && (suspendedState = startSuspendingCommit(), accumulateSuspenseyCommitOnFiber(finishedWork, lanes, suspendedState), subtreeFlags = (lanes & 62914560) === lanes ? globalMostRecentFallbackTime - now$1() : (lanes & 4194048) === lanes ? globalMostRecentTransitionTime - now$1() : 0, subtreeFlags = waitForCommitToBeReady(suspendedState, subtreeFlags), subtreeFlags !== null)) {
pendingEffectsLanes = lanes, root.cancelPendingCommit = subtreeFlags(
commitRoot.bind(
null,
root,
finishedWork,
lanes,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate,
spawnedLane,
updatedLanes,
suspendedRetryLanes,
exitStatus,
suspendedState,
getSuspendedCommitReason(suspendedState, root.containerInfo),
completedRenderStartTime,
completedRenderEndTime
)
), markRootSuspended(
root,
lanes,
spawnedLane,
!didSkipSuspendedSiblings
);
return;
}
commitRoot(
root,
finishedWork,
lanes,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate,
spawnedLane,
updatedLanes,
suspendedRetryLanes,
exitStatus,
suspendedState,
suspendedCommitReason,
completedRenderStartTime,
completedRenderEndTime
);
}
function isRenderConsistentWithExternalStores(finishedWork) {
for (var node = finishedWork; ; ) {
var tag = node.tag;
if ((tag === 0 || tag === 11 || tag === 15) && node.flags & 16384 && (tag = node.updateQueue, tag !== null && (tag = tag.stores, tag !== null)))
for (var i = 0; i < tag.length; i++) {
var check2 = tag[i], getSnapshot = check2.getSnapshot;
check2 = check2.value;
try {
if (!objectIs(getSnapshot(), check2)) return !1;
} catch {
return !1;
}
}
if (tag = node.child, node.subtreeFlags & 16384 && tag !== null)
tag.return = node, node = tag;
else {
if (node === finishedWork) break;
for (; node.sibling === null; ) {
if (node.return === null || node.return === finishedWork) return !0;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
}
return !0;
}
function markRootSuspended(root, suspendedLanes, spawnedLane, didAttemptEntireTree) {
suspendedLanes &= ~workInProgressRootPingedLanes, suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes, root.suspendedLanes |= suspendedLanes, root.pingedLanes &= ~suspendedLanes, didAttemptEntireTree && (root.warmLanes |= suspendedLanes), didAttemptEntireTree = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index = 31 - clz32(lanes), lane = 1 << index;
didAttemptEntireTree[index] = -1, lanes &= ~lane;
}
spawnedLane !== 0 && markSpawnedDeferredLane(root, spawnedLane, suspendedLanes);
}
function flushSyncWork() {
return (executionContext & (RenderContext | CommitContext)) === NoContext ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0;
}
function isAlreadyRendering() {
return (executionContext & (RenderContext | CommitContext)) !== NoContext;
}
function resetWorkInProgressStack() {
if (workInProgress !== null) {
if (workInProgressSuspendedReason === NotSuspended)
var interruptedWork = workInProgress.return;
else
interruptedWork = workInProgress, resetContextDependencies(), resetHooksOnUnwind(interruptedWork), thenableState$1 = null, thenableIndexCounter$1 = 0, interruptedWork = workInProgress;
for (; interruptedWork !== null; )
unwindInterruptedWork(interruptedWork.alternate, interruptedWork), interruptedWork = interruptedWork.return;
workInProgress = null;
}
}
function finalizeRender(lanes, finalizationTime) {
(lanes & 127) !== 0 && (blockingClampTime = finalizationTime), (lanes & 4194048) !== 0 && (transitionClampTime = finalizationTime);
}
function prepareFreshStack(root, lanes) {
supportsUserTiming && (console.timeStamp(
"Blocking Track",
3e-3,
3e-3,
"Blocking",
"Scheduler \u269B",
"primary-light"
), console.timeStamp(
"Transition Track",
3e-3,
3e-3,
"Transition",
"Scheduler \u269B",
"primary-light"
), console.timeStamp(
"Suspense Track",
3e-3,
3e-3,
"Suspense",
"Scheduler \u269B",
"primary-light"
), console.timeStamp(
"Idle Track",
3e-3,
3e-3,
"Idle",
"Scheduler \u269B",
"primary-light"
));
var previousRenderStartTime = renderStartTime;
if (renderStartTime = now(), workInProgressRootRenderLanes !== 0 && 0 < previousRenderStartTime) {
if (setCurrentTrackFromLanes(workInProgressRootRenderLanes), workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootSuspendedWithDelay)
logSuspendedRenderPhase(
previousRenderStartTime,
renderStartTime,
lanes,
workInProgressUpdateTask
);
else {
var endTime = renderStartTime, debugTask = workInProgressUpdateTask;
if (supportsUserTiming && !(endTime <= previousRenderStartTime)) {
var color = (lanes & 738197653) === lanes ? "tertiary-dark" : "primary-dark", label = (lanes & 536870912) === lanes ? "Prewarm" : (lanes & 201326741) === lanes ? "Interrupted Hydration" : "Interrupted Render";
debugTask ? debugTask.run(
console.timeStamp.bind(
console,
label,
previousRenderStartTime,
endTime,
currentTrack,
"Scheduler \u269B",
color
)
) : console.timeStamp(
label,
previousRenderStartTime,
endTime,
currentTrack,
"Scheduler \u269B",
color
);
}
}
finalizeRender(workInProgressRootRenderLanes, renderStartTime);
}
if (previousRenderStartTime = workInProgressUpdateTask, workInProgressUpdateTask = null, (lanes & 127) !== 0) {
workInProgressUpdateTask = blockingUpdateTask, debugTask = 0 <= blockingUpdateTime && blockingUpdateTime < blockingClampTime ? blockingClampTime : blockingUpdateTime, endTime = 0 <= blockingEventTime && blockingEventTime < blockingClampTime ? blockingClampTime : blockingEventTime, color = 0 <= endTime ? endTime : 0 <= debugTask ? debugTask : renderStartTime, 0 <= blockingSuspendedTime && (setCurrentTrackFromLanes(2), logSuspendedWithDelayPhase(
blockingSuspendedTime,
color,
lanes,
previousRenderStartTime
)), previousRenderStartTime = debugTask;
var eventTime = endTime, eventType = blockingEventType, eventIsRepeat = 0 < blockingEventRepeatTime, isSpawnedUpdate = blockingUpdateType === 1, isPingedUpdate = blockingUpdateType === 2;
if (debugTask = renderStartTime, endTime = blockingUpdateTask, color = blockingUpdateMethodName, label = blockingUpdateComponentName, supportsUserTiming) {
if (currentTrack = "Blocking", 0 < previousRenderStartTime ? previousRenderStartTime > debugTask && (previousRenderStartTime = debugTask) : previousRenderStartTime = debugTask, 0 < eventTime ? eventTime > previousRenderStartTime && (eventTime = previousRenderStartTime) : eventTime = previousRenderStartTime, eventType !== null && previousRenderStartTime > eventTime) {
var color$jscomp$0 = eventIsRepeat ? "secondary-light" : "warning";
endTime ? endTime.run(
console.timeStamp.bind(
console,
eventIsRepeat ? "Consecutive" : "Event: " + eventType,
eventTime,
previousRenderStartTime,
currentTrack,
"Scheduler \u269B",
color$jscomp$0
)
) : console.timeStamp(
eventIsRepeat ? "Consecutive" : "Event: " + eventType,
eventTime,
previousRenderStartTime,
currentTrack,
"Scheduler \u269B",
color$jscomp$0
);
}
debugTask > previousRenderStartTime && (eventTime = isSpawnedUpdate ? "error" : (lanes & 738197653) === lanes ? "tertiary-light" : "primary-light", isSpawnedUpdate = isPingedUpdate ? "Promise Resolved" : isSpawnedUpdate ? "Cascading Update" : 5 < debugTask - previousRenderStartTime ? "Update Blocked" : "Update", isPingedUpdate = [], label != null && isPingedUpdate.push(["Component name", label]), color != null && isPingedUpdate.push(["Method name", color]), previousRenderStartTime = {
start: previousRenderStartTime,
end: debugTask,
detail: {
devtools: {
properties: isPingedUpdate,
track: currentTrack,
trackGroup: "Scheduler \u269B",
color: eventTime
}
}
}, endTime ? endTime.run(
performance.measure.bind(
performance,
isSpawnedUpdate,
previousRenderStartTime
)
) : performance.measure(isSpawnedUpdate, previousRenderStartTime));
}
blockingUpdateTime = -1.1, blockingUpdateType = 0, blockingUpdateComponentName = blockingUpdateMethodName = null, blockingSuspendedTime = -1.1, blockingEventRepeatTime = blockingEventTime, blockingEventTime = -1.1, blockingClampTime = now();
}
if ((lanes & 4194048) !== 0 && (workInProgressUpdateTask = transitionUpdateTask, debugTask = 0 <= transitionStartTime && transitionStartTime < transitionClampTime ? transitionClampTime : transitionStartTime, previousRenderStartTime = 0 <= transitionUpdateTime && transitionUpdateTime < transitionClampTime ? transitionClampTime : transitionUpdateTime, endTime = 0 <= transitionEventTime && transitionEventTime < transitionClampTime ? transitionClampTime : transitionEventTime, color = 0 <= endTime ? endTime : 0 <= previousRenderStartTime ? previousRenderStartTime : renderStartTime, 0 <= transitionSuspendedTime && (setCurrentTrackFromLanes(256), logSuspendedWithDelayPhase(
transitionSuspendedTime,
color,
lanes,
workInProgressUpdateTask
)), isPingedUpdate = endTime, eventTime = transitionEventType, eventType = 0 < transitionEventRepeatTime, eventIsRepeat = transitionUpdateType === 2, color = renderStartTime, endTime = transitionUpdateTask, label = transitionUpdateMethodName, isSpawnedUpdate = transitionUpdateComponentName, supportsUserTiming && (currentTrack = "Transition", 0 < previousRenderStartTime ? previousRenderStartTime > color && (previousRenderStartTime = color) : previousRenderStartTime = color, 0 < debugTask ? debugTask > previousRenderStartTime && (debugTask = previousRenderStartTime) : debugTask = previousRenderStartTime, 0 < isPingedUpdate ? isPingedUpdate > debugTask && (isPingedUpdate = debugTask) : isPingedUpdate = debugTask, debugTask > isPingedUpdate && eventTime !== null && (color$jscomp$0 = eventType ? "secondary-light" : "warning", endTime ? endTime.run(
console.timeStamp.bind(
console,
eventType ? "Consecutive" : "Event: " + eventTime,
isPingedUpdate,
debugTask,
currentTrack,
"Scheduler \u269B",
color$jscomp$0
)
) : console.timeStamp(
eventType ? "Consecutive" : "Event: " + eventTime,
isPingedUpdate,
debugTask,
currentTrack,
"Scheduler \u269B",
color$jscomp$0
)), previousRenderStartTime > debugTask && (endTime ? endTime.run(
console.timeStamp.bind(
console,
"Action",
debugTask,
previousRenderStartTime,
currentTrack,
"Scheduler \u269B",
"primary-dark"
)
) : console.timeStamp(
"Action",
debugTask,
previousRenderStartTime,
currentTrack,
"Scheduler \u269B",
"primary-dark"
)), color > previousRenderStartTime && (debugTask = eventIsRepeat ? "Promise Resolved" : 5 < color - previousRenderStartTime ? "Update Blocked" : "Update", isPingedUpdate = [], isSpawnedUpdate != null && isPingedUpdate.push(["Component name", isSpawnedUpdate]), label != null && isPingedUpdate.push(["Method name", label]), previousRenderStartTime = {
start: previousRenderStartTime,
end: color,
detail: {
devtools: {
properties: isPingedUpdate,
track: currentTrack,
trackGroup: "Scheduler \u269B",
color: "primary-light"
}
}
}, endTime ? endTime.run(
performance.measure.bind(
performance,
debugTask,
previousRenderStartTime
)
) : performance.measure(debugTask, previousRenderStartTime))), transitionUpdateTime = transitionStartTime = -1.1, transitionUpdateType = 0, transitionSuspendedTime = -1.1, transitionEventRepeatTime = transitionEventTime, transitionEventTime = -1.1, transitionClampTime = now()), previousRenderStartTime = root.timeoutHandle, previousRenderStartTime !== noTimeout && (root.timeoutHandle = noTimeout, cancelTimeout(previousRenderStartTime)), previousRenderStartTime = root.cancelPendingCommit, previousRenderStartTime !== null && (root.cancelPendingCommit = null, previousRenderStartTime()), pendingEffectsLanes = 0, resetWorkInProgressStack(), workInProgressRoot = root, workInProgress = previousRenderStartTime = createWorkInProgress(
root.current,
null
), workInProgressRootRenderLanes = lanes, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes), workInProgressRootDidAttachPingListener = !1, workInProgressRootExitStatus = RootInProgress, workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0, workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, (lanes & 8) !== 0 && (lanes |= lanes & 32), endTime = root.entangledLanes, endTime !== 0)
for (root = root.entanglements, endTime &= lanes; 0 < endTime; )
debugTask = 31 - clz32(endTime), color = 1 << debugTask, lanes |= root[debugTask], endTime &= ~color;
return entangledRenderLanes = lanes, finishQueueingConcurrentUpdates(), root = getCurrentTime(), 1e3 < root - lastResetTime && (ReactSharedInternals.recentlyCreatedOwnerStacks = 0, lastResetTime = root), ReactStrictModeWarnings.discardPendingWarnings(), previousRenderStartTime;
}
function handleThrow(root, thrownValue) {
currentlyRenderingFiber = null, ReactSharedInternals.H = ContextOnlyDispatcher, ReactSharedInternals.getCurrentStack = null, isRendering = !1, current = null, thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = SuspendedOnImmediate) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = SuspendedOnInstance) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? SuspendedOnHydration : thrownValue !== null && typeof thrownValue == "object" && typeof thrownValue.then == "function" ? SuspendedOnDeprecatedThrowPromise : SuspendedOnError, workInProgressThrownValue = thrownValue;
var erroredWork = workInProgress;
erroredWork === null ? (workInProgressRootExitStatus = RootFatalErrored, logUncaughtError(
root,
createCapturedValueAtFiber(thrownValue, root.current)
)) : erroredWork.mode & 2 && stopProfilerTimerIfRunningAndRecordDuration(erroredWork);
}
function shouldRemainOnPreviousScreen() {
var handler = suspenseHandlerStackCursor.current;
return handler === null ? !0 : (workInProgressRootRenderLanes & 4194048) === workInProgressRootRenderLanes ? shellBoundary === null : (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes || (workInProgressRootRenderLanes & 536870912) !== 0 ? handler === shellBoundary : !1;
}
function pushDispatcher() {
var prevDispatcher = ReactSharedInternals.H;
return ReactSharedInternals.H = ContextOnlyDispatcher, prevDispatcher === null ? ContextOnlyDispatcher : prevDispatcher;
}
function pushAsyncDispatcher() {
var prevAsyncDispatcher = ReactSharedInternals.A;
return ReactSharedInternals.A = DefaultAsyncDispatcher, prevAsyncDispatcher;
}
function markRenderDerivedCause(fiber) {
workInProgressUpdateTask === null && (workInProgressUpdateTask = fiber._debugTask == null ? null : fiber._debugTask);
}
function renderDidSuspendDelayIfPossible() {
workInProgressRootExitStatus = RootSuspendedWithDelay, workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && suspenseHandlerStackCursor.current !== null || (workInProgressRootIsPrerendering = !0), (workInProgressRootSkippedLanes & 134217727) === 0 && (workInProgressRootInterleavedUpdatedLanes & 134217727) === 0 || workInProgressRoot === null || markRootSuspended(
workInProgressRoot,
workInProgressRootRenderLanes,
workInProgressDeferredLane,
!1
);
}
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
var prevExecutionContext = executionContext;
executionContext |= RenderContext;
var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher();
if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
if (isDevToolsPresent) {
var memoizedUpdaters = root.memoizedUpdaters;
0 < memoizedUpdaters.size && (restorePendingUpdaters(root, workInProgressRootRenderLanes), memoizedUpdaters.clear()), movePendingFibersToMemoized(root, lanes);
}
workInProgressTransitions = null, prepareFreshStack(root, lanes);
}
lanes = !1, memoizedUpdaters = workInProgressRootExitStatus;
a: do
try {
if (workInProgressSuspendedReason !== NotSuspended && workInProgress !== null) {
var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue;
switch (workInProgressSuspendedReason) {
case SuspendedOnHydration:
resetWorkInProgressStack(), memoizedUpdaters = RootSuspendedAtTheShell;
break a;
case SuspendedOnImmediate:
case SuspendedOnData:
case SuspendedOnAction:
case SuspendedOnDeprecatedThrowPromise:
suspenseHandlerStackCursor.current === null && (lanes = !0);
var reason = workInProgressSuspendedReason;
if (workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason), shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
memoizedUpdaters = RootInProgress;
break a;
}
break;
default:
reason = workInProgressSuspendedReason, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
}
}
workLoopSync(), memoizedUpdaters = workInProgressRootExitStatus;
break;
} catch (thrownValue$4) {
handleThrow(root, thrownValue$4);
}
while (!0);
return lanes && root.shellSuspendCounter++, resetContextDependencies(), executionContext = prevExecutionContext, ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, workInProgress === null && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates()), memoizedUpdaters;
}
function workLoopSync() {
for (; workInProgress !== null; ) performUnitOfWork(workInProgress);
}
function renderRootConcurrent(root, lanes) {
var prevExecutionContext = executionContext;
executionContext |= RenderContext;
var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher();
if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
if (isDevToolsPresent) {
var memoizedUpdaters = root.memoizedUpdaters;
0 < memoizedUpdaters.size && (restorePendingUpdaters(root, workInProgressRootRenderLanes), memoizedUpdaters.clear()), movePendingFibersToMemoized(root, lanes);
}
workInProgressTransitions = null, workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS, prepareFreshStack(root, lanes);
} else
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
root,
lanes
);
a: do
try {
if (workInProgressSuspendedReason !== NotSuspended && workInProgress !== null)
b: switch (lanes = workInProgress, memoizedUpdaters = workInProgressThrownValue, workInProgressSuspendedReason) {
case SuspendedOnError:
workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(
root,
lanes,
memoizedUpdaters,
SuspendedOnError
);
break;
case SuspendedOnData:
case SuspendedOnAction:
if (isThenableResolved(memoizedUpdaters)) {
workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes);
break;
}
lanes = function() {
workInProgressSuspendedReason !== SuspendedOnData && workInProgressSuspendedReason !== SuspendedOnAction || workInProgressRoot !== root || (workInProgressSuspendedReason = SuspendedAndReadyToContinue), ensureRootIsScheduled(root);
}, memoizedUpdaters.then(lanes, lanes);
break a;
case SuspendedOnImmediate:
workInProgressSuspendedReason = SuspendedAndReadyToContinue;
break a;
case SuspendedOnInstance:
workInProgressSuspendedReason = SuspendedOnInstanceAndReadyToContinue;
break a;
case SuspendedAndReadyToContinue:
isThenableResolved(memoizedUpdaters) ? (workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(
root,
lanes,
memoizedUpdaters,
SuspendedAndReadyToContinue
));
break;
case SuspendedOnInstanceAndReadyToContinue:
var resource = null;
switch (workInProgress.tag) {
case 26:
resource = workInProgress.memoizedState;
case 5:
case 27:
var hostFiber = workInProgress, type = hostFiber.type, props = hostFiber.pendingProps;
if (resource ? preloadResource(resource) : preloadInstance(hostFiber.stateNode, type, props)) {
workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null;
var sibling = hostFiber.sibling;
if (sibling !== null) workInProgress = sibling;
else {
var returnFiber = hostFiber.return;
returnFiber !== null ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null;
}
break b;
}
break;
default:
console.error(
"Unexpected type of fiber triggered a suspensey commit. This is a bug in React."
);
}
workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(
root,
lanes,
memoizedUpdaters,
SuspendedOnInstanceAndReadyToContinue
);
break;
case SuspendedOnDeprecatedThrowPromise:
workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(
root,
lanes,
memoizedUpdaters,
SuspendedOnDeprecatedThrowPromise
);
break;
case SuspendedOnHydration:
resetWorkInProgressStack(), workInProgressRootExitStatus = RootSuspendedAtTheShell;
break a;
default:
throw Error(
"Unexpected SuspendedReason. This is a bug in React."
);
}
ReactSharedInternals.actQueue !== null ? workLoopSync() : workLoopConcurrentByScheduler();
break;
} catch (thrownValue$5) {
handleThrow(root, thrownValue$5);
}
while (!0);
return resetContextDependencies(), ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, executionContext = prevExecutionContext, workInProgress !== null ? RootInProgress : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates(), workInProgressRootExitStatus);
}
function workLoopConcurrentByScheduler() {
for (; workInProgress !== null && !shouldYield(); )
performUnitOfWork(workInProgress);
}
function performUnitOfWork(unitOfWork) {
var current2 = unitOfWork.alternate;
(unitOfWork.mode & 2) !== NoMode ? (startProfilerTimer(unitOfWork), current2 = runWithFiberInDEV(
unitOfWork,
beginWork,
current2,
unitOfWork,
entangledRenderLanes
), stopProfilerTimerIfRunningAndRecordDuration(unitOfWork)) : current2 = runWithFiberInDEV(
unitOfWork,
beginWork,
current2,
unitOfWork,
entangledRenderLanes
), unitOfWork.memoizedProps = unitOfWork.pendingProps, current2 === null ? completeUnitOfWork(unitOfWork) : workInProgress = current2;
}
function replaySuspendedUnitOfWork(unitOfWork) {
var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork);
unitOfWork.memoizedProps = unitOfWork.pendingProps, next === null ? completeUnitOfWork(unitOfWork) : workInProgress = next;
}
function replayBeginWork(unitOfWork) {
var current2 = unitOfWork.alternate, isProfilingMode = (unitOfWork.mode & 2) !== NoMode;
switch (isProfilingMode && startProfilerTimer(unitOfWork), unitOfWork.tag) {
case 15:
case 0:
current2 = replayFunctionComponent(
current2,
unitOfWork,
unitOfWork.pendingProps,
unitOfWork.type,
void 0,
workInProgressRootRenderLanes
);
break;
case 11:
current2 = replayFunctionComponent(
current2,
unitOfWork,
unitOfWork.pendingProps,
unitOfWork.type.render,
unitOfWork.ref,
workInProgressRootRenderLanes
);
break;
case 5:
resetHooksOnUnwind(unitOfWork);
default:
unwindInterruptedWork(current2, unitOfWork), unitOfWork = workInProgress = resetWorkInProgress(unitOfWork, entangledRenderLanes), current2 = beginWork(current2, unitOfWork, entangledRenderLanes);
}
return isProfilingMode && stopProfilerTimerIfRunningAndRecordDuration(unitOfWork), current2;
}
function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, suspendedReason) {
resetContextDependencies(), resetHooksOnUnwind(unitOfWork), thenableState$1 = null, thenableIndexCounter$1 = 0;
var returnFiber = unitOfWork.return;
try {
if (throwException(
root,
returnFiber,
unitOfWork,
thrownValue,
workInProgressRootRenderLanes
)) {
workInProgressRootExitStatus = RootFatalErrored, logUncaughtError(
root,
createCapturedValueAtFiber(thrownValue, root.current)
), workInProgress = null;
return;
}
} catch (error) {
if (returnFiber !== null) throw workInProgress = returnFiber, error;
workInProgressRootExitStatus = RootFatalErrored, logUncaughtError(
root,
createCapturedValueAtFiber(thrownValue, root.current)
), workInProgress = null;
return;
}
unitOfWork.flags & 32768 ? (isHydrating || suspendedReason === SuspendedOnError ? root = !0 : workInProgressRootIsPrerendering || (workInProgressRootRenderLanes & 536870912) !== 0 ? root = !1 : (workInProgressRootDidSkipSuspendedSiblings = root = !0, (suspendedReason === SuspendedOnData || suspendedReason === SuspendedOnAction || suspendedReason === SuspendedOnImmediate || suspendedReason === SuspendedOnDeprecatedThrowPromise) && (suspendedReason = suspenseHandlerStackCursor.current, suspendedReason !== null && suspendedReason.tag === 13 && (suspendedReason.flags |= 16384))), unwindUnitOfWork(unitOfWork, root)) : completeUnitOfWork(unitOfWork);
}
function completeUnitOfWork(unitOfWork) {
var completedWork = unitOfWork;
do {
if ((completedWork.flags & 32768) !== 0) {
unwindUnitOfWork(
completedWork,
workInProgressRootDidSkipSuspendedSiblings
);
return;
}
var current2 = completedWork.alternate;
if (unitOfWork = completedWork.return, startProfilerTimer(completedWork), current2 = runWithFiberInDEV(
completedWork,
completeWork,
current2,
completedWork,
entangledRenderLanes
), (completedWork.mode & 2) !== NoMode && stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork), current2 !== null) {
workInProgress = current2;
return;
}
if (completedWork = completedWork.sibling, completedWork !== null) {
workInProgress = completedWork;
return;
}
workInProgress = completedWork = unitOfWork;
} while (completedWork !== null);
workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted);
}
function unwindUnitOfWork(unitOfWork, skipSiblings) {
do {
var next = unwindWork(unitOfWork.alternate, unitOfWork);
if (next !== null) {
next.flags &= 32767, workInProgress = next;
return;
}
if ((unitOfWork.mode & 2) !== NoMode) {
stopProfilerTimerIfRunningAndRecordIncompleteDuration(unitOfWork), next = unitOfWork.actualDuration;
for (var child = unitOfWork.child; child !== null; )
next += child.actualDuration, child = child.sibling;
unitOfWork.actualDuration = next;
}
if (next = unitOfWork.return, next !== null && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null), !skipSiblings && (unitOfWork = unitOfWork.sibling, unitOfWork !== null)) {
workInProgress = unitOfWork;
return;
}
workInProgress = unitOfWork = next;
} while (unitOfWork !== null);
workInProgressRootExitStatus = RootSuspendedAtTheShell, workInProgress = null;
}
function commitRoot(root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes, exitStatus, suspendedState, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) {
root.cancelPendingCommit = null;
do
flushPendingEffects();
while (pendingEffectsStatus !== NO_PENDING_EFFECTS);
if (ReactStrictModeWarnings.flushLegacyContextWarning(), ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(), (executionContext & (RenderContext | CommitContext)) !== NoContext)
throw Error("Should not already be working.");
if (setCurrentTrackFromLanes(lanes), exitStatus === RootErrored ? logErroredRenderPhase(
completedRenderStartTime,
completedRenderEndTime,
lanes,
workInProgressUpdateTask
) : recoverableErrors !== null ? logRecoveredRenderPhase(
completedRenderStartTime,
completedRenderEndTime,
lanes,
recoverableErrors,
finishedWork !== null && finishedWork.alternate !== null && finishedWork.alternate.memoizedState.isDehydrated && (finishedWork.flags & 256) !== 0,
workInProgressUpdateTask
) : logRenderPhase(
completedRenderStartTime,
completedRenderEndTime,
lanes,
workInProgressUpdateTask
), finishedWork !== null) {
if (lanes === 0 && console.error(
"finishedLanes should not be empty during a commit. This is a bug in React."
), finishedWork === root.current)
throw Error(
"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
);
if (didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes, didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes, markRootFinished(
root,
lanes,
didIncludeRenderPhaseUpdate,
spawnedLane,
updatedLanes,
suspendedRetryLanes
), root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0), pendingFinishedWork = finishedWork, pendingEffectsRoot = root, pendingEffectsLanes = lanes, pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate, pendingPassiveTransitions = transitions, pendingRecoverableErrors = recoverableErrors, pendingEffectsRenderEndTime = completedRenderEndTime, pendingSuspendedCommitReason = suspendedCommitReason, pendingDelayedCommitReason = IMMEDIATE_COMMIT, pendingSuspendedViewTransitionReason = null, finishedWork.actualDuration !== 0 || (finishedWork.subtreeFlags & 10256) !== 0 || (finishedWork.flags & 10256) !== 0 ? (root.callbackNode = null, root.callbackPriority = 0, scheduleCallback(NormalPriority$1, function() {
return trackSchedulerEvent(), pendingDelayedCommitReason === IMMEDIATE_COMMIT && (pendingDelayedCommitReason = DELAYED_PASSIVE_COMMIT), flushPassiveEffects(), null;
})) : (root.callbackNode = null, root.callbackPriority = 0), commitErrors = null, commitStartTime = now(), suspendedCommitReason !== null && logSuspendedCommitPhase(
completedRenderEndTime,
commitStartTime,
suspendedCommitReason,
workInProgressUpdateTask
), recoverableErrors = (finishedWork.flags & 13878) !== 0, (finishedWork.subtreeFlags & 13878) !== 0 || recoverableErrors) {
recoverableErrors = ReactSharedInternals.T, ReactSharedInternals.T = null, transitions = getCurrentUpdatePriority(), setCurrentUpdatePriority(2), spawnedLane = executionContext, executionContext |= CommitContext;
try {
commitBeforeMutationEffects(root, finishedWork, lanes);
} finally {
executionContext = spawnedLane, setCurrentUpdatePriority(transitions), ReactSharedInternals.T = recoverableErrors;
}
}
pendingEffectsStatus = PENDING_MUTATION_PHASE, flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork();
}
}
function flushMutationEffects() {
if (pendingEffectsStatus === PENDING_MUTATION_PHASE) {
pendingEffectsStatus = NO_PENDING_EFFECTS;
var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootMutationHasEffect = (finishedWork.flags & 13878) !== 0;
if ((finishedWork.subtreeFlags & 13878) !== 0 || rootMutationHasEffect) {
rootMutationHasEffect = ReactSharedInternals.T, ReactSharedInternals.T = null;
var previousPriority = getCurrentUpdatePriority();
setCurrentUpdatePriority(2);
var prevExecutionContext = executionContext;
executionContext |= CommitContext;
try {
inProgressLanes = lanes, inProgressRoot = root, resetComponentEffectTimers(), commitMutationEffectsOnFiber(finishedWork, root), inProgressRoot = inProgressLanes = null, resetAfterCommit(root.containerInfo);
} finally {
executionContext = prevExecutionContext, setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = rootMutationHasEffect;
}
}
root.current = finishedWork, pendingEffectsStatus = PENDING_LAYOUT_PHASE;
}
}
function flushLayoutEffects() {
if (pendingEffectsStatus === PENDING_LAYOUT_PHASE) {
pendingEffectsStatus = NO_PENDING_EFFECTS;
var suspendedViewTransitionReason = pendingSuspendedViewTransitionReason;
if (suspendedViewTransitionReason !== null) {
commitStartTime = now();
var startTime = commitEndTime, endTime = commitStartTime;
!supportsUserTiming || endTime <= startTime || (animatingTask ? animatingTask.run(
console.timeStamp.bind(
console,
suspendedViewTransitionReason,
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
"secondary-light"
)
) : console.timeStamp(
suspendedViewTransitionReason,
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
"secondary-light"
));
}
suspendedViewTransitionReason = pendingEffectsRoot, startTime = pendingFinishedWork, endTime = pendingEffectsLanes;
var rootHasLayoutEffect = (startTime.flags & 8772) !== 0;
if ((startTime.subtreeFlags & 8772) !== 0 || rootHasLayoutEffect) {
rootHasLayoutEffect = ReactSharedInternals.T, ReactSharedInternals.T = null;
var _previousPriority = getCurrentUpdatePriority();
setCurrentUpdatePriority(2);
var _prevExecutionContext = executionContext;
executionContext |= CommitContext;
try {
inProgressLanes = endTime, inProgressRoot = suspendedViewTransitionReason, resetComponentEffectTimers(), commitLayoutEffectOnFiber(
suspendedViewTransitionReason,
startTime.alternate,
startTime
), inProgressRoot = inProgressLanes = null;
} finally {
executionContext = _prevExecutionContext, setCurrentUpdatePriority(_previousPriority), ReactSharedInternals.T = rootHasLayoutEffect;
}
}
suspendedViewTransitionReason = pendingEffectsRenderEndTime, startTime = pendingSuspendedCommitReason, commitEndTime = now(), suspendedViewTransitionReason = startTime === null ? suspendedViewTransitionReason : commitStartTime, startTime = commitEndTime, endTime = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT, rootHasLayoutEffect = workInProgressUpdateTask, commitErrors !== null ? logCommitErrored(
suspendedViewTransitionReason,
startTime,
commitErrors,
!1,
rootHasLayoutEffect
) : !supportsUserTiming || startTime <= suspendedViewTransitionReason || (rootHasLayoutEffect ? rootHasLayoutEffect.run(
console.timeStamp.bind(
console,
endTime ? "Commit Interrupted View Transition" : "Commit",
suspendedViewTransitionReason,
startTime,
currentTrack,
"Scheduler \u269B",
endTime ? "error" : "secondary-dark"
)
) : console.timeStamp(
endTime ? "Commit Interrupted View Transition" : "Commit",
suspendedViewTransitionReason,
startTime,
currentTrack,
"Scheduler \u269B",
endTime ? "error" : "secondary-dark"
)), pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE;
}
}
function flushSpawnedWork() {
if (pendingEffectsStatus === PENDING_SPAWNED_WORK || pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE) {
if (pendingEffectsStatus === PENDING_SPAWNED_WORK) {
var startViewTransitionStartTime = commitEndTime;
commitEndTime = now();
var endTime = commitEndTime, abortedViewTransition = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT;
!supportsUserTiming || endTime <= startViewTransitionStartTime || (animatingTask ? animatingTask.run(
console.timeStamp.bind(
console,
abortedViewTransition ? "Interrupted View Transition" : "Starting Animation",
startViewTransitionStartTime,
endTime,
currentTrack,
"Scheduler \u269B",
abortedViewTransition ? "error" : "secondary-light"
)
) : console.timeStamp(
abortedViewTransition ? "Interrupted View Transition" : "Starting Animation",
startViewTransitionStartTime,
endTime,
currentTrack,
"Scheduler \u269B",
abortedViewTransition ? " error" : "secondary-light"
)), pendingDelayedCommitReason !== ABORTED_VIEW_TRANSITION_COMMIT && (pendingDelayedCommitReason = ANIMATION_STARTED_COMMIT);
}
pendingEffectsStatus = NO_PENDING_EFFECTS, requestPaint(), startViewTransitionStartTime = pendingEffectsRoot;
var finishedWork = pendingFinishedWork;
endTime = pendingEffectsLanes, abortedViewTransition = pendingRecoverableErrors;
var rootDidHavePassiveEffects = finishedWork.actualDuration !== 0 || (finishedWork.subtreeFlags & 10256) !== 0 || (finishedWork.flags & 10256) !== 0;
rootDidHavePassiveEffects ? pendingEffectsStatus = PENDING_PASSIVE_PHASE : (pendingEffectsStatus = NO_PENDING_EFFECTS, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(
startViewTransitionStartTime,
startViewTransitionStartTime.pendingLanes
), nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null);
var remainingLanes = startViewTransitionStartTime.pendingLanes;
if (remainingLanes === 0 && (legacyErrorBoundariesThatAlreadyFailed = null), rootDidHavePassiveEffects || commitDoubleInvokeEffectsInDEV(startViewTransitionStartTime), remainingLanes = lanesToEventPriority(endTime), finishedWork = finishedWork.stateNode, injectedHook && typeof injectedHook.onCommitFiberRoot == "function")
try {
var didError = (finishedWork.current.flags & 128) === 128;
switch (remainingLanes) {
case 2:
var schedulerPriority = ImmediatePriority;
break;
case 8:
schedulerPriority = UserBlockingPriority;
break;
case 32:
schedulerPriority = NormalPriority$1;
break;
case 268435456:
schedulerPriority = IdlePriority;
break;
default:
schedulerPriority = NormalPriority$1;
}
injectedHook.onCommitFiberRoot(
rendererID,
finishedWork,
schedulerPriority,
didError
);
} catch (err) {
hasLoggedError || (hasLoggedError = !0, console.error(
"React instrumentation encountered an error: %o",
err
));
}
if (isDevToolsPresent && startViewTransitionStartTime.memoizedUpdaters.clear(), onCommitRoot(), abortedViewTransition !== null) {
didError = ReactSharedInternals.T, schedulerPriority = getCurrentUpdatePriority(), setCurrentUpdatePriority(2), ReactSharedInternals.T = null;
try {
var onRecoverableError = startViewTransitionStartTime.onRecoverableError;
for (finishedWork = 0; finishedWork < abortedViewTransition.length; finishedWork++) {
var recoverableError = abortedViewTransition[finishedWork], errorInfo = makeErrorInfo(recoverableError.stack);
runWithFiberInDEV(
recoverableError.source,
onRecoverableError,
recoverableError.value,
errorInfo
);
}
} finally {
ReactSharedInternals.T = didError, setCurrentUpdatePriority(schedulerPriority);
}
}
(pendingEffectsLanes & 3) !== 0 && flushPendingEffects(), ensureRootIsScheduled(startViewTransitionStartTime), remainingLanes = startViewTransitionStartTime.pendingLanes, (endTime & 261930) !== 0 && (remainingLanes & 42) !== 0 ? (nestedUpdateScheduled = !0, startViewTransitionStartTime === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = startViewTransitionStartTime)) : nestedUpdateCount = 0, rootDidHavePassiveEffects || finalizeRender(endTime, commitEndTime), supportsHydration && flushHydrationEvents(), flushSyncWorkAcrossRoots_impl(0, !1);
}
}
function makeErrorInfo(componentStack) {
return componentStack = { componentStack }, Object.defineProperty(componentStack, "digest", {
get: function() {
console.error(
'You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.'
);
}
}), componentStack;
}
function releaseRootPooledCache(root, remainingLanes) {
(root.pooledCacheLanes &= remainingLanes) === 0 && (remainingLanes = root.pooledCache, remainingLanes != null && (root.pooledCache = null, releaseCache(remainingLanes)));
}
function flushPendingEffects() {
return flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork(), flushPassiveEffects();
}
function flushPassiveEffects() {
if (pendingEffectsStatus !== PENDING_PASSIVE_PHASE) return !1;
var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes;
pendingEffectsRemainingLanes = 0;
var renderPriority = lanesToEventPriority(pendingEffectsLanes), priority = 32 > renderPriority ? 32 : renderPriority;
renderPriority = ReactSharedInternals.T;
var previousPriority = getCurrentUpdatePriority();
try {
setCurrentUpdatePriority(priority), ReactSharedInternals.T = null;
var transitions = pendingPassiveTransitions;
pendingPassiveTransitions = null, priority = pendingEffectsRoot;
var lanes = pendingEffectsLanes;
if (pendingEffectsStatus = NO_PENDING_EFFECTS, pendingFinishedWork = pendingEffectsRoot = null, pendingEffectsLanes = 0, (executionContext & (RenderContext | CommitContext)) !== NoContext)
throw Error("Cannot flush passive effects while already rendering.");
setCurrentTrackFromLanes(lanes), isFlushingPassiveEffects = !0, didScheduleUpdateDuringPassiveEffects = !1;
var passiveEffectStartTime = 0;
if (commitErrors = null, passiveEffectStartTime = now$1(), pendingDelayedCommitReason === ANIMATION_STARTED_COMMIT) {
var startTime = commitEndTime, endTime = passiveEffectStartTime;
!supportsUserTiming || endTime <= startTime || (animatingTask ? animatingTask.run(
console.timeStamp.bind(
console,
"Animating",
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
"secondary-dark"
)
) : console.timeStamp(
"Animating",
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
"secondary-dark"
));
} else {
startTime = commitEndTime, endTime = passiveEffectStartTime;
var delayedUntilPaint = pendingDelayedCommitReason === DELAYED_PASSIVE_COMMIT;
!supportsUserTiming || endTime <= startTime || (workInProgressUpdateTask ? workInProgressUpdateTask.run(
console.timeStamp.bind(
console,
delayedUntilPaint ? "Waiting for Paint" : "Waiting",
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
"secondary-light"
)
) : console.timeStamp(
delayedUntilPaint ? "Waiting for Paint" : "Waiting",
startTime,
endTime,
currentTrack,
"Scheduler \u269B",
"secondary-light"
));
}
startTime = executionContext, executionContext |= CommitContext;
var finishedWork = priority.current;
resetComponentEffectTimers(), commitPassiveUnmountOnFiber(finishedWork);
var finishedWork$jscomp$0 = priority.current;
finishedWork = pendingEffectsRenderEndTime, resetComponentEffectTimers(), commitPassiveMountOnFiber(
priority,
finishedWork$jscomp$0,
lanes,
transitions,
finishedWork
), commitDoubleInvokeEffectsInDEV(priority), executionContext = startTime;
var passiveEffectsEndTime = now$1();
if (finishedWork$jscomp$0 = passiveEffectStartTime, finishedWork = workInProgressUpdateTask, commitErrors !== null ? logCommitErrored(
finishedWork$jscomp$0,
passiveEffectsEndTime,
commitErrors,
!0,
finishedWork
) : !supportsUserTiming || passiveEffectsEndTime <= finishedWork$jscomp$0 || (finishedWork ? finishedWork.run(
console.timeStamp.bind(
console,
"Remaining Effects",
finishedWork$jscomp$0,
passiveEffectsEndTime,
currentTrack,
"Scheduler \u269B",
"secondary-dark"
)
) : console.timeStamp(
"Remaining Effects",
finishedWork$jscomp$0,
passiveEffectsEndTime,
currentTrack,
"Scheduler \u269B",
"secondary-dark"
)), finalizeRender(lanes, passiveEffectsEndTime), flushSyncWorkAcrossRoots_impl(0, !1), didScheduleUpdateDuringPassiveEffects ? priority === rootWithPassiveNestedUpdates ? nestedPassiveUpdateCount++ : (nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = priority) : nestedPassiveUpdateCount = 0, didScheduleUpdateDuringPassiveEffects = isFlushingPassiveEffects = !1, injectedHook && typeof injectedHook.onPostCommitFiberRoot == "function")
try {
injectedHook.onPostCommitFiberRoot(rendererID, priority);
} catch (err) {
hasLoggedError || (hasLoggedError = !0, console.error(
"React instrumentation encountered an error: %o",
err
));
}
var stateNode = priority.current.stateNode;
return stateNode.effectDuration = 0, stateNode.passiveEffectDuration = 0, !0;
} finally {
setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = renderPriority, releaseRootPooledCache(root, remainingLanes);
}
}
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
sourceFiber = createCapturedValueAtFiber(error, sourceFiber), recordEffectError(sourceFiber), sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2), rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2), rootFiber !== null && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));
}
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
if (isRunningInsertionEffect = !1, sourceFiber.tag === 3)
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
else {
for (; nearestMountedAncestor !== null; ) {
if (nearestMountedAncestor.tag === 3) {
captureCommitPhaseErrorOnRoot(
nearestMountedAncestor,
sourceFiber,
error
);
return;
}
if (nearestMountedAncestor.tag === 1) {
var instance = nearestMountedAncestor.stateNode;
if (typeof nearestMountedAncestor.type.getDerivedStateFromError == "function" || typeof instance.componentDidCatch == "function" && (legacyErrorBoundariesThatAlreadyFailed === null || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) {
sourceFiber = createCapturedValueAtFiber(error, sourceFiber), recordEffectError(sourceFiber), error = createClassErrorUpdate(2), instance = enqueueUpdate(nearestMountedAncestor, error, 2), instance !== null && (initializeClassErrorUpdate(
error,
instance,
nearestMountedAncestor,
sourceFiber
), markRootUpdated$1(instance, 2), ensureRootIsScheduled(instance));
return;
}
}
nearestMountedAncestor = nearestMountedAncestor.return;
}
console.error(
`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
Error message:
%s`,
error
);
}
}
function attachPingListener(root, wakeable, lanes) {
var pingCache = root.pingCache;
if (pingCache === null) {
pingCache = root.pingCache = new PossiblyWeakMap();
var threadIDs = /* @__PURE__ */ new Set();
pingCache.set(wakeable, threadIDs);
} else
threadIDs = pingCache.get(wakeable), threadIDs === void 0 && (threadIDs = /* @__PURE__ */ new Set(), pingCache.set(wakeable, threadIDs));
threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = !0, threadIDs.add(lanes), pingCache = pingSuspendedRoot.bind(null, root, wakeable, lanes), isDevToolsPresent && restorePendingUpdaters(root, lanes), wakeable.then(pingCache, pingCache));
}
function pingSuspendedRoot(root, wakeable, pingedLanes) {
var pingCache = root.pingCache;
pingCache !== null && pingCache.delete(wakeable), root.pingedLanes |= root.suspendedLanes & pingedLanes, root.warmLanes &= ~pingedLanes, (pingedLanes & 127) !== 0 ? 0 > blockingUpdateTime && (blockingClampTime = blockingUpdateTime = now(), blockingUpdateTask = createTask("Promise Resolved"), blockingUpdateType = 2) : (pingedLanes & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionClampTime = transitionUpdateTime = now(), transitionUpdateTask = createTask("Promise Resolved"), transitionUpdateType = 2), isConcurrentActEnvironment() && ReactSharedInternals.actQueue === null && console.error(
`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
When testing, code that resolves suspended data should be wrapped into act(...):
act(() => {
/* finish loading suspended data */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`
), workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && now$1() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS ? (executionContext & RenderContext) === NoContext && prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0)), ensureRootIsScheduled(root);
}
function retryTimedOutBoundary(boundaryFiber, retryLane) {
retryLane === 0 && (retryLane = claimNextRetryLane()), boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane), boundaryFiber !== null && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber));
}
function retryDehydratedSuspenseBoundary(boundaryFiber) {
var suspenseState = boundaryFiber.memoizedState, retryLane = 0;
suspenseState !== null && (retryLane = suspenseState.retryLane), retryTimedOutBoundary(boundaryFiber, retryLane);
}
function resolveRetryWakeable(boundaryFiber, wakeable) {
var retryLane = 0;
switch (boundaryFiber.tag) {
case 31:
case 13:
var retryCache = boundaryFiber.stateNode, suspenseState = boundaryFiber.memoizedState;
suspenseState !== null && (retryLane = suspenseState.retryLane);
break;
case 19:
retryCache = boundaryFiber.stateNode;
break;
case 22:
retryCache = boundaryFiber.stateNode._retryCache;
break;
default:
throw Error(
"Pinged unknown suspense boundary type. This is probably a bug in React."
);
}
retryCache !== null && retryCache.delete(wakeable), retryTimedOutBoundary(boundaryFiber, retryLane);
}
function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root$jscomp$0, parentFiber, isInStrictMode) {
if ((parentFiber.subtreeFlags & 67117056) !== 0)
for (parentFiber = parentFiber.child; parentFiber !== null; ) {
var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE;
isStrictModeFiber = isInStrictMode || isStrictModeFiber, fiber.tag !== 22 ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV(
fiber,
doubleInvokeEffectsOnFiber,
root,
fiber
) : recursivelyTraverseAndDoubleInvokeEffectsInDEV(
root,
fiber,
isStrictModeFiber
) : fiber.memoizedState === null && (isStrictModeFiber && fiber.flags & 8192 ? runWithFiberInDEV(
fiber,
doubleInvokeEffectsOnFiber,
root,
fiber
) : fiber.subtreeFlags & 67108864 && runWithFiberInDEV(
fiber,
recursivelyTraverseAndDoubleInvokeEffectsInDEV,
root,
fiber,
isStrictModeFiber
)), parentFiber = parentFiber.sibling;
}
}
function doubleInvokeEffectsOnFiber(root, fiber) {
setIsStrictModeForDevtools(!0);
try {
disappearLayoutEffects(fiber), disconnectPassiveEffect(fiber), reappearLayoutEffects(root, fiber.alternate, fiber, !1), reconnectPassiveEffects(root, fiber, 0, null, !1, 0);
} finally {
setIsStrictModeForDevtools(!1);
}
}
function commitDoubleInvokeEffectsInDEV(root) {
var doubleInvokeEffects = !0;
root.current.mode & 24 || (doubleInvokeEffects = !1), recursivelyTraverseAndDoubleInvokeEffectsInDEV(
root,
root.current,
doubleInvokeEffects
);
}
function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {
if ((executionContext & RenderContext) === NoContext) {
var tag = fiber.tag;
if (tag === 3 || tag === 1 || tag === 0 || tag === 11 || tag === 14 || tag === 15) {
if (tag = getComponentNameFromFiber(fiber) || "ReactComponent", didWarnStateUpdateForNotYetMountedComponent !== null) {
if (didWarnStateUpdateForNotYetMountedComponent.has(tag)) return;
didWarnStateUpdateForNotYetMountedComponent.add(tag);
} else didWarnStateUpdateForNotYetMountedComponent = /* @__PURE__ */ new Set([tag]);
runWithFiberInDEV(fiber, function() {
console.error(
"Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead."
);
});
}
}
}
function restorePendingUpdaters(root, lanes) {
isDevToolsPresent && root.memoizedUpdaters.forEach(function(schedulingFiber) {
addFiberToLanesMap(root, schedulingFiber, lanes);
});
}
function scheduleCallback(priorityLevel, callback) {
var actQueue = ReactSharedInternals.actQueue;
return actQueue !== null ? (actQueue.push(callback), fakeActCallbackNode) : scheduleCallback$3(priorityLevel, callback);
}
function warnIfUpdatesNotWrappedWithActDEV(fiber) {
isConcurrentActEnvironment() && ReactSharedInternals.actQueue === null && runWithFiberInDEV(fiber, function() {
console.error(
`An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,
getComponentNameFromFiber(fiber)
);
});
}
function resolveFunctionForHotReloading(type) {
if (resolveFamily === null) return type;
var family = resolveFamily(type);
return family === void 0 ? type : family.current;
}
function resolveForwardRefForHotReloading(type) {
if (resolveFamily === null) return type;
var family = resolveFamily(type);
return family === void 0 ? type != null && typeof type.render == "function" && (family = resolveFunctionForHotReloading(type.render), type.render !== family) ? (family = { $$typeof: REACT_FORWARD_REF_TYPE, render: family }, type.displayName !== void 0 && (family.displayName = type.displayName), family) : type : family.current;
}
function isCompatibleFamilyForHotReloading(fiber, element) {
if (resolveFamily === null) return !1;
var prevType = fiber.elementType;
element = element.type;
var needsCompareFamilies = !1, $$typeofNextType = typeof element == "object" && element !== null ? element.$$typeof : null;
switch (fiber.tag) {
case 1:
typeof element == "function" && (needsCompareFamilies = !0);
break;
case 0:
(typeof element == "function" || $$typeofNextType === REACT_LAZY_TYPE) && (needsCompareFamilies = !0);
break;
case 11:
($$typeofNextType === REACT_FORWARD_REF_TYPE || $$typeofNextType === REACT_LAZY_TYPE) && (needsCompareFamilies = !0);
break;
case 14:
case 15:
($$typeofNextType === REACT_MEMO_TYPE || $$typeofNextType === REACT_LAZY_TYPE) && (needsCompareFamilies = !0);
break;
default:
return !1;
}
return !!(needsCompareFamilies && (fiber = resolveFamily(prevType), fiber !== void 0 && fiber === resolveFamily(element)));
}
function markFailedErrorBoundaryForHotReloading(fiber) {
resolveFamily !== null && typeof WeakSet == "function" && (failedBoundaries === null && (failedBoundaries = /* @__PURE__ */ new WeakSet()), failedBoundaries.add(fiber));
}
function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
do {
var _fiber = fiber, alternate = _fiber.alternate, child = _fiber.child, sibling = _fiber.sibling, tag = _fiber.tag;
_fiber = _fiber.type;
var candidateType = null;
switch (tag) {
case 0:
case 15:
case 1:
candidateType = _fiber;
break;
case 11:
candidateType = _fiber.render;
}
if (resolveFamily === null)
throw Error("Expected resolveFamily to be set during hot reload.");
var needsRender = !1;
if (_fiber = !1, candidateType !== null && (candidateType = resolveFamily(candidateType), candidateType !== void 0 && (staleFamilies.has(candidateType) ? _fiber = !0 : updatedFamilies.has(candidateType) && (tag === 1 ? _fiber = !0 : needsRender = !0))), failedBoundaries !== null && (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) && (_fiber = !0), _fiber && (fiber._debugNeedsRemount = !0), (_fiber || needsRender) && (alternate = enqueueConcurrentRenderForLane(fiber, 2), alternate !== null && scheduleUpdateOnFiber(alternate, fiber, 2)), child === null || _fiber || scheduleFibersWithFamiliesRecursively(
child,
updatedFamilies,
staleFamilies
), sibling === null) break;
fiber = sibling;
} while (!0);
}
function FiberNode(tag, pendingProps, key, mode) {
this.tag = tag, this.key = key, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = pendingProps, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = mode, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null, this.actualDuration = -0, this.actualStartTime = -1.1, this.treeBaseDuration = this.selfBaseDuration = -0, this._debugTask = this._debugStack = this._debugOwner = this._debugInfo = null, this._debugNeedsRemount = !1, this._debugHookTypes = null, hasBadMapPolyfill || typeof Object.preventExtensions != "function" || Object.preventExtensions(this);
}
function shouldConstruct(Component) {
return Component = Component.prototype, !(!Component || !Component.isReactComponent);
}
function createWorkInProgress(current2, pendingProps) {
var workInProgress2 = current2.alternate;
switch (workInProgress2 === null ? (workInProgress2 = createFiber(
current2.tag,
pendingProps,
current2.key,
current2.mode
), workInProgress2.elementType = current2.elementType, workInProgress2.type = current2.type, workInProgress2.stateNode = current2.stateNode, workInProgress2._debugOwner = current2._debugOwner, workInProgress2._debugStack = current2._debugStack, workInProgress2._debugTask = current2._debugTask, workInProgress2._debugHookTypes = current2._debugHookTypes, workInProgress2.alternate = current2, current2.alternate = workInProgress2) : (workInProgress2.pendingProps = pendingProps, workInProgress2.type = current2.type, workInProgress2.flags = 0, workInProgress2.subtreeFlags = 0, workInProgress2.deletions = null, workInProgress2.actualDuration = -0, workInProgress2.actualStartTime = -1.1), workInProgress2.flags = current2.flags & 65011712, workInProgress2.childLanes = current2.childLanes, workInProgress2.lanes = current2.lanes, workInProgress2.child = current2.child, workInProgress2.memoizedProps = current2.memoizedProps, workInProgress2.memoizedState = current2.memoizedState, workInProgress2.updateQueue = current2.updateQueue, pendingProps = current2.dependencies, workInProgress2.dependencies = pendingProps === null ? null : {
lanes: pendingProps.lanes,
firstContext: pendingProps.firstContext,
_debugThenableState: pendingProps._debugThenableState
}, workInProgress2.sibling = current2.sibling, workInProgress2.index = current2.index, workInProgress2.ref = current2.ref, workInProgress2.refCleanup = current2.refCleanup, workInProgress2.selfBaseDuration = current2.selfBaseDuration, workInProgress2.treeBaseDuration = current2.treeBaseDuration, workInProgress2._debugInfo = current2._debugInfo, workInProgress2._debugNeedsRemount = current2._debugNeedsRemount, workInProgress2.tag) {
case 0:
case 15:
workInProgress2.type = resolveFunctionForHotReloading(current2.type);
break;
case 1:
workInProgress2.type = resolveFunctionForHotReloading(current2.type);
break;
case 11:
workInProgress2.type = resolveForwardRefForHotReloading(current2.type);
}
return workInProgress2;
}
function resetWorkInProgress(workInProgress2, renderLanes2) {
workInProgress2.flags &= 65011714;
var current2 = workInProgress2.alternate;
return current2 === null ? (workInProgress2.childLanes = 0, workInProgress2.lanes = renderLanes2, workInProgress2.child = null, workInProgress2.subtreeFlags = 0, workInProgress2.memoizedProps = null, workInProgress2.memoizedState = null, workInProgress2.updateQueue = null, workInProgress2.dependencies = null, workInProgress2.stateNode = null, workInProgress2.selfBaseDuration = 0, workInProgress2.treeBaseDuration = 0) : (workInProgress2.childLanes = current2.childLanes, workInProgress2.lanes = current2.lanes, workInProgress2.child = current2.child, workInProgress2.subtreeFlags = 0, workInProgress2.deletions = null, workInProgress2.memoizedProps = current2.memoizedProps, workInProgress2.memoizedState = current2.memoizedState, workInProgress2.updateQueue = current2.updateQueue, workInProgress2.type = current2.type, renderLanes2 = current2.dependencies, workInProgress2.dependencies = renderLanes2 === null ? null : {
lanes: renderLanes2.lanes,
firstContext: renderLanes2.firstContext,
_debugThenableState: renderLanes2._debugThenableState
}, workInProgress2.selfBaseDuration = current2.selfBaseDuration, workInProgress2.treeBaseDuration = current2.treeBaseDuration), workInProgress2;
}
function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) {
var fiberTag = 0, resolvedType = type;
if (typeof type == "function")
shouldConstruct(type) && (fiberTag = 1), resolvedType = resolveFunctionForHotReloading(resolvedType);
else if (typeof type == "string")
supportsResources && supportsSingletons ? (fiberTag = getHostContext(), fiberTag = isHostHoistableType(type, pendingProps, fiberTag) ? 26 : isHostSingletonType(type) ? 27 : 5) : supportsResources ? (fiberTag = getHostContext(), fiberTag = isHostHoistableType(type, pendingProps, fiberTag) ? 26 : 5) : fiberTag = supportsSingletons && isHostSingletonType(type) ? 27 : 5;
else
a: switch (type) {
case REACT_ACTIVITY_TYPE:
return key = createFiber(31, pendingProps, key, mode), key.elementType = REACT_ACTIVITY_TYPE, key.lanes = lanes, key;
case REACT_FRAGMENT_TYPE:
return createFiberFromFragment(
pendingProps.children,
mode,
lanes,
key
);
case REACT_STRICT_MODE_TYPE:
fiberTag = 8, mode |= 24;
break;
case REACT_PROFILER_TYPE:
return type = pendingProps, owner = mode, typeof type.id != "string" && console.error(
'Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',
typeof type.id
), key = createFiber(12, type, key, owner | 2), key.elementType = REACT_PROFILER_TYPE, key.lanes = lanes, key.stateNode = { effectDuration: 0, passiveEffectDuration: 0 }, key;
case REACT_SUSPENSE_TYPE:
return key = createFiber(13, pendingProps, key, mode), key.elementType = REACT_SUSPENSE_TYPE, key.lanes = lanes, key;
case REACT_SUSPENSE_LIST_TYPE:
return key = createFiber(19, pendingProps, key, mode), key.elementType = REACT_SUSPENSE_LIST_TYPE, key.lanes = lanes, key;
default:
if (typeof type == "object" && type !== null)
switch (type.$$typeof) {
case REACT_CONTEXT_TYPE:
fiberTag = 10;
break a;
case REACT_CONSUMER_TYPE:
fiberTag = 9;
break a;
case REACT_FORWARD_REF_TYPE:
fiberTag = 11, resolvedType = resolveForwardRefForHotReloading(resolvedType);
break a;
case REACT_MEMO_TYPE:
fiberTag = 14;
break a;
case REACT_LAZY_TYPE:
fiberTag = 16, resolvedType = null;
break a;
}
resolvedType = "", (type === void 0 || typeof type == "object" && type !== null && Object.keys(type).length === 0) && (resolvedType += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), type === null ? pendingProps = "null" : isArrayImpl(type) ? pendingProps = "array" : type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE ? (pendingProps = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", resolvedType = " Did you accidentally export a JSX literal instead of a component?") : pendingProps = typeof type, fiberTag = owner ? typeof owner.tag == "number" ? getComponentNameFromFiber(owner) : typeof owner.name == "string" ? owner.name : null : null, fiberTag && (resolvedType += `
Check the render method of \`` + fiberTag + "`."), fiberTag = 29, pendingProps = Error(
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (pendingProps + "." + resolvedType)
), resolvedType = null;
}
return key = createFiber(fiberTag, pendingProps, key, mode), key.elementType = type, key.type = resolvedType, key.lanes = lanes, key._debugOwner = owner, key;
}
function createFiberFromElement(element, mode, lanes) {
return mode = createFiberFromTypeAndProps(
element.type,
element.key,
element.props,
element._owner,
mode,
lanes
), mode._debugOwner = element._owner, mode._debugStack = element._debugStack, mode._debugTask = element._debugTask, mode;
}
function createFiberFromFragment(elements, mode, lanes, key) {
return elements = createFiber(7, elements, key, mode), elements.lanes = lanes, elements;
}
function createFiberFromText(content, mode, lanes) {
return content = createFiber(6, content, null, mode), content.lanes = lanes, content;
}
function createFiberFromDehydratedFragment(dehydratedNode) {
var fiber = createFiber(18, null, null, NoMode);
return fiber.stateNode = dehydratedNode, fiber;
}
function createFiberFromPortal(portal, mode, lanes) {
return mode = createFiber(
4,
portal.children !== null ? portal.children : [],
portal.key,
mode
), mode.lanes = lanes, mode.stateNode = {
containerInfo: portal.containerInfo,
pendingChildren: null,
implementation: portal.implementation
}, mode;
}
function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, formState) {
for (this.tag = 1, this.containerInfo = containerInfo, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = noTimeout, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = createLaneMap(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = createLaneMap(0), this.hiddenUpdates = createLaneMap(null), this.identifierPrefix = identifierPrefix, this.onUncaughtError = onUncaughtError, this.onCaughtError = onCaughtError, this.onRecoverableError = onRecoverableError, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = formState, this.incompleteTransitions = /* @__PURE__ */ new Map(), this.passiveEffectDuration = this.effectDuration = -0, this.memoizedUpdaters = /* @__PURE__ */ new Set(), containerInfo = this.pendingUpdatersLaneMap = [], tag = 0; 31 > tag; tag++) containerInfo.push(/* @__PURE__ */ new Set());
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
}
function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, identifierPrefix, formState, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator) {
return containerInfo = new FiberRootNode(
containerInfo,
tag,
hydrate,
identifierPrefix,
onUncaughtError,
onCaughtError,
onRecoverableError,
onDefaultTransitionIndicator,
formState
), tag = 1, isStrictMode === !0 && (tag |= 24), isStrictMode = createFiber(3, null, null, tag | 2), containerInfo.current = isStrictMode, isStrictMode.stateNode = containerInfo, tag = createCache(), retainCache(tag), containerInfo.pooledCache = tag, retainCache(tag), isStrictMode.memoizedState = {
element: initialChildren,
isDehydrated: hydrate,
cache: tag
}, initializeUpdateQueue(isStrictMode), containerInfo;
}
function testStringCoercion(value) {
return "" + value;
}
function getContextForSubtree(parentComponent) {
return parentComponent ? (parentComponent = emptyContextObject, parentComponent) : emptyContextObject;
}
function updateContainerSync(element, container, parentComponent, callback) {
return updateContainerImpl(
container.current,
2,
element,
container,
parentComponent,
callback
), 2;
}
function updateContainerImpl(rootFiber, lane, element, container, parentComponent, callback) {
if (injectedHook && typeof injectedHook.onScheduleFiberRoot == "function")
try {
injectedHook.onScheduleFiberRoot(rendererID, container, element);
} catch (err) {
hasLoggedError || (hasLoggedError = !0, console.error(
"React instrumentation encountered an error: %o",
err
));
}
parentComponent = getContextForSubtree(parentComponent), container.context === null ? container.context = parentComponent : container.pendingContext = parentComponent, isRendering && current !== null && !didWarnAboutNestedUpdates && (didWarnAboutNestedUpdates = !0, console.error(
`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
Check the render method of %s.`,
getComponentNameFromFiber(current) || "Unknown"
)), container = createUpdate(lane), container.payload = { element }, callback = callback === void 0 ? null : callback, callback !== null && (typeof callback != "function" && console.error(
"Expected the last optional `callback` argument to be a function. Instead received: %s.",
callback
), container.callback = callback), element = enqueueUpdate(rootFiber, container, lane), element !== null && (startUpdateTimerByLane(lane, "root.render()", null), scheduleUpdateOnFiber(element, rootFiber, lane), entangleTransitions(element, rootFiber, lane));
}
function markRetryLaneImpl(fiber, retryLane) {
if (fiber = fiber.memoizedState, fiber !== null && fiber.dehydrated !== null) {
var a = fiber.retryLane;
fiber.retryLane = a !== 0 && a < retryLane ? a : retryLane;
}
}
function markRetryLaneIfNotHydrated(fiber, retryLane) {
markRetryLaneImpl(fiber, retryLane), (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);
}
function getCurrentFiberForDevTools() {
return current;
}
var exports2 = {}, React43 = require_react(), Scheduler2 = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React43.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
$$$config.cloneMutableInstance;
var appendInitialChild = $$$config.appendInitialChild, finalizeInitialChildren = $$$config.finalizeInitialChildren, shouldSetTextContent = $$$config.shouldSetTextContent, createTextInstance = $$$config.createTextInstance;
$$$config.cloneMutableTextInstance;
var scheduleTimeout = $$$config.scheduleTimeout, cancelTimeout = $$$config.cancelTimeout, noTimeout = $$$config.noTimeout, isPrimaryRenderer = $$$config.isPrimaryRenderer;
$$$config.warnsIfNotActing;
var supportsMutation = $$$config.supportsMutation, supportsPersistence = $$$config.supportsPersistence, supportsHydration = $$$config.supportsHydration, getInstanceFromNode = $$$config.getInstanceFromNode;
$$$config.beforeActiveInstanceBlur;
var preparePortalMount = $$$config.preparePortalMount;
$$$config.prepareScopeUpdate, $$$config.getInstanceFromScope;
var setCurrentUpdatePriority = $$$config.setCurrentUpdatePriority, getCurrentUpdatePriority = $$$config.getCurrentUpdatePriority, resolveUpdatePriority = $$$config.resolveUpdatePriority, trackSchedulerEvent = $$$config.trackSchedulerEvent, resolveEventType2 = $$$config.resolveEventType, resolveEventTimeStamp = $$$config.resolveEventTimeStamp, shouldAttemptEagerTransition = $$$config.shouldAttemptEagerTransition, detachDeletedInstance = $$$config.detachDeletedInstance;
$$$config.requestPostPaintCallback;
var maySuspendCommit = $$$config.maySuspendCommit, maySuspendCommitOnUpdate = $$$config.maySuspendCommitOnUpdate, maySuspendCommitInSyncRender = $$$config.maySuspendCommitInSyncRender, preloadInstance = $$$config.preloadInstance, startSuspendingCommit = $$$config.startSuspendingCommit, suspendInstance = $$$config.suspendInstance;
$$$config.suspendOnActiveViewTransition;
var waitForCommitToBeReady = $$$config.waitForCommitToBeReady, getSuspendedCommitReason = $$$config.getSuspendedCommitReason, NotPendingTransition = $$$config.NotPendingTransition, HostTransitionContext = $$$config.HostTransitionContext, resetFormInstance = $$$config.resetFormInstance, bindToConsole = $$$config.bindToConsole, supportsMicrotasks = $$$config.supportsMicrotasks, scheduleMicrotask = $$$config.scheduleMicrotask, supportsTestSelectors = $$$config.supportsTestSelectors, findFiberRoot = $$$config.findFiberRoot, getBoundingRect = $$$config.getBoundingRect, getTextContent = $$$config.getTextContent, isHiddenSubtree = $$$config.isHiddenSubtree, matchAccessibilityRole = $$$config.matchAccessibilityRole, setFocusIfFocusable = $$$config.setFocusIfFocusable, setupIntersectionObserver = $$$config.setupIntersectionObserver, appendChild = $$$config.appendChild, appendChildToContainer = $$$config.appendChildToContainer, commitTextUpdate = $$$config.commitTextUpdate, commitMount = $$$config.commitMount, commitUpdate = $$$config.commitUpdate, insertBefore = $$$config.insertBefore, insertInContainerBefore = $$$config.insertInContainerBefore, removeChild = $$$config.removeChild, removeChildFromContainer = $$$config.removeChildFromContainer, resetTextContent = $$$config.resetTextContent, hideInstance = $$$config.hideInstance, hideTextInstance = $$$config.hideTextInstance, unhideInstance = $$$config.unhideInstance, unhideTextInstance = $$$config.unhideTextInstance;
$$$config.cancelViewTransitionName, $$$config.cancelRootViewTransitionName, $$$config.restoreRootViewTransitionName, $$$config.cloneRootViewTransitionContainer, $$$config.removeRootViewTransitionClone, $$$config.measureClonedInstance, $$$config.hasInstanceChanged, $$$config.hasInstanceAffectedParent, $$$config.startViewTransition, $$$config.startGestureTransition, $$$config.stopViewTransition, $$$config.getCurrentGestureOffset, $$$config.createViewTransitionInstance;
var clearContainer = $$$config.clearContainer;
$$$config.createFragmentInstance, $$$config.updateFragmentInstanceFiber, $$$config.commitNewChildToFragmentInstance, $$$config.deleteChildFromFragmentInstance;
var cloneInstance = $$$config.cloneInstance, createContainerChildSet = $$$config.createContainerChildSet, appendChildToContainerChildSet = $$$config.appendChildToContainerChildSet, finalizeContainerChildren = $$$config.finalizeContainerChildren, replaceContainerChildren = $$$config.replaceContainerChildren, cloneHiddenInstance = $$$config.cloneHiddenInstance, cloneHiddenTextInstance = $$$config.cloneHiddenTextInstance, isSuspenseInstancePending = $$$config.isSuspenseInstancePending, isSuspenseInstanceFallback = $$$config.isSuspenseInstanceFallback, getSuspenseInstanceFallbackErrorDetails = $$$config.getSuspenseInstanceFallbackErrorDetails, registerSuspenseInstanceRetry = $$$config.registerSuspenseInstanceRetry, canHydrateFormStateMarker = $$$config.canHydrateFormStateMarker, isFormStateMarkerMatching = $$$config.isFormStateMarkerMatching, getNextHydratableSibling = $$$config.getNextHydratableSibling, getNextHydratableSiblingAfterSingleton = $$$config.getNextHydratableSiblingAfterSingleton, getFirstHydratableChild = $$$config.getFirstHydratableChild, getFirstHydratableChildWithinContainer = $$$config.getFirstHydratableChildWithinContainer, getFirstHydratableChildWithinActivityInstance = $$$config.getFirstHydratableChildWithinActivityInstance, getFirstHydratableChildWithinSuspenseInstance = $$$config.getFirstHydratableChildWithinSuspenseInstance, getFirstHydratableChildWithinSingleton = $$$config.getFirstHydratableChildWithinSingleton, canHydrateInstance = $$$config.canHydrateInstance, canHydrateTextInstance = $$$config.canHydrateTextInstance, canHydrateActivityInstance = $$$config.canHydrateActivityInstance, canHydrateSuspenseInstance = $$$config.canHydrateSuspenseInstance, hydrateInstance = $$$config.hydrateInstance, hydrateTextInstance = $$$config.hydrateTextInstance, hydrateActivityInstance = $$$config.hydrateActivityInstance, hydrateSuspenseInstance = $$$config.hydrateSuspenseInstance, getNextHydratableInstanceAfterActivityInstance = $$$config.getNextHydratableInstanceAfterActivityInstance, getNextHydratableInstanceAfterSuspenseInstance = $$$config.getNextHydratableInstanceAfterSuspenseInstance, commitHydratedInstance = $$$config.commitHydratedInstance, commitHydratedContainer = $$$config.commitHydratedContainer, commitHydratedActivityInstance = $$$config.commitHydratedActivityInstance, commitHydratedSuspenseInstance = $$$config.commitHydratedSuspenseInstance, finalizeHydratedChildren = $$$config.finalizeHydratedChildren, flushHydrationEvents = $$$config.flushHydrationEvents;
$$$config.clearActivityBoundary;
var clearSuspenseBoundary = $$$config.clearSuspenseBoundary;
$$$config.clearActivityBoundaryFromContainer;
var clearSuspenseBoundaryFromContainer = $$$config.clearSuspenseBoundaryFromContainer, hideDehydratedBoundary = $$$config.hideDehydratedBoundary, unhideDehydratedBoundary = $$$config.unhideDehydratedBoundary, shouldDeleteUnhydratedTailInstances = $$$config.shouldDeleteUnhydratedTailInstances, diffHydratedPropsForDevWarnings = $$$config.diffHydratedPropsForDevWarnings, diffHydratedTextForDevWarnings = $$$config.diffHydratedTextForDevWarnings, describeHydratableInstanceForDevWarnings = $$$config.describeHydratableInstanceForDevWarnings, validateHydratableInstance = $$$config.validateHydratableInstance, validateHydratableTextInstance = $$$config.validateHydratableTextInstance, supportsResources = $$$config.supportsResources, isHostHoistableType = $$$config.isHostHoistableType, getHoistableRoot = $$$config.getHoistableRoot, getResource = $$$config.getResource, acquireResource = $$$config.acquireResource, releaseResource = $$$config.releaseResource, hydrateHoistable = $$$config.hydrateHoistable, mountHoistable = $$$config.mountHoistable, unmountHoistable = $$$config.unmountHoistable, createHoistableInstance = $$$config.createHoistableInstance, prepareToCommitHoistables = $$$config.prepareToCommitHoistables, mayResourceSuspendCommit = $$$config.mayResourceSuspendCommit, preloadResource = $$$config.preloadResource, suspendResource = $$$config.suspendResource, supportsSingletons = $$$config.supportsSingletons, resolveSingletonInstance = $$$config.resolveSingletonInstance, acquireSingletonInstance = $$$config.acquireSingletonInstance, releaseSingletonInstance = $$$config.releaseSingletonInstance, isHostSingletonType = $$$config.isHostSingletonType, isSingletonScope = $$$config.isSingletonScope, valueStack = [], fiberStack = [], index$jscomp$0 = -1, emptyContextObject = {};
Object.freeze(emptyContextObject);
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log$1 = Math.log, LN2 = Math.LN2, nextTransitionUpdateLane = 256, nextTransitionDeferredLane = 262144, nextRetryLane = 4194304, scheduleCallback$3 = Scheduler2.unstable_scheduleCallback, cancelCallback$1 = Scheduler2.unstable_cancelCallback, shouldYield = Scheduler2.unstable_shouldYield, requestPaint = Scheduler2.unstable_requestPaint, now$1 = Scheduler2.unstable_now, ImmediatePriority = Scheduler2.unstable_ImmediatePriority, UserBlockingPriority = Scheduler2.unstable_UserBlockingPriority, NormalPriority$1 = Scheduler2.unstable_NormalPriority, IdlePriority = Scheduler2.unstable_IdlePriority, log = Scheduler2.log, unstable_setDisableYieldValue = Scheduler2.unstable_setDisableYieldValue, rendererID = null, injectedHook = null, hasLoggedError = !1, isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u", lastResetTime = 0;
if (typeof performance == "object" && typeof performance.now == "function")
var localPerformance = performance, getCurrentTime = function() {
return localPerformance.now();
};
else {
var localDate = Date;
getCurrentTime = function() {
return localDate.now();
};
}
var objectIs = typeof Object.is == "function" ? Object.is : is, reportGlobalError = typeof reportError == "function" ? reportError : function(error) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var event = new window.ErrorEvent("error", {
bubbles: !0,
cancelable: !0,
message: typeof error == "object" && error !== null && typeof error.message == "string" ? String(error.message) : String(error),
error
});
if (!window.dispatchEvent(event)) return;
} else if (typeof process == "object" && typeof process.emit == "function") {
process.emit("uncaughtException", error);
return;
}
console.error(error);
}, hasOwnProperty = Object.prototype.hasOwnProperty, supportsUserTiming = typeof console < "u" && typeof console.timeStamp == "function" && typeof performance < "u" && typeof performance.measure == "function", currentTrack = "Blocking", alreadyWarnedForDeepEquality = !1, reusableComponentDevToolDetails = {
color: "primary",
properties: null,
tooltipText: "",
track: "Components \u269B"
}, reusableComponentOptions = {
start: -0,
end: -0,
detail: { devtools: reusableComponentDevToolDetails }
}, resuableChangedPropsEntry = ["Changed Props", ""], reusableDeeplyEqualPropsEntry = [
"Changed Props",
"This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner."
], disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd;
disabledLog.__reactDisabledLog = !0;
var prefix, suffix, reentry = !1, componentFrameCache = new (typeof WeakMap == "function" ? WeakMap : Map)(), CapturedStacks = /* @__PURE__ */ new WeakMap(), forkStack = [], forkStackIndex = 0, treeForkProvider = null, treeForkCount = 0, idStack = [], idStackIndex = 0, treeContextProvider = null, treeContextId = 1, treeContextOverflow = "", contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), needsEscaping = /["'&<>\n\t]|^\s|\s$/, current = null, isRendering = !1, hydrationParentFiber = null, nextHydratableInstance = null, isHydrating = !1, didSuspendOrErrorDEV = !1, hydrationDiffRootDEV = null, hydrationErrors = null, rootOrSingletonContext = !1, HydrationMismatchException = Error(
"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
), NoMode = 0, valueCursor = createCursor(null), rendererCursorDEV = createCursor(null), renderer2CursorDEV = createCursor(null), rendererSigil = {}, currentlyRenderingFiber$1 = null, lastContextDependency = null, isDisallowedContextReadInDEV = !1, AbortControllerLocal = typeof AbortController < "u" ? AbortController : function() {
var listeners = [], signal = this.signal = {
aborted: !1,
addEventListener: function(type, listener) {
listeners.push(listener);
}
};
this.abort = function() {
signal.aborted = !0, listeners.forEach(function(listener) {
return listener();
});
};
}, scheduleCallback$2 = Scheduler2.unstable_scheduleCallback, NormalPriority = Scheduler2.unstable_NormalPriority, CacheContext = {
$$typeof: REACT_CONTEXT_TYPE,
Consumer: null,
Provider: null,
_currentValue: null,
_currentValue2: null,
_threadCount: 0,
_currentRenderer: null,
_currentRenderer2: null
}, now = Scheduler2.unstable_now, createTask = console.createTask ? console.createTask : function() {
return null;
}, renderStartTime = -0, commitStartTime = -0, commitEndTime = -0, commitErrors = null, profilerStartTime = -1.1, profilerEffectDuration = -0, componentEffectDuration = -0, componentEffectStartTime = -1.1, componentEffectEndTime = -1.1, componentEffectErrors = null, componentEffectSpawnedUpdate = !1, blockingClampTime = -0, blockingUpdateTime = -1.1, blockingUpdateTask = null, blockingUpdateType = 0, blockingUpdateMethodName = null, blockingUpdateComponentName = null, blockingEventTime = -1.1, blockingEventType = null, blockingEventRepeatTime = -1.1, blockingSuspendedTime = -1.1, transitionClampTime = -0, transitionStartTime = -1.1, transitionUpdateTime = -1.1, transitionUpdateType = 0, transitionUpdateTask = null, transitionUpdateMethodName = null, transitionUpdateComponentName = null, transitionEventTime = -1.1, transitionEventType = null, transitionEventRepeatTime = -1.1, transitionSuspendedTime = -1.1, animatingTask = null, yieldReason = 0, yieldStartTime = -1.1, currentUpdateIsNested = !1, nestedUpdateScheduled = !1, firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = !1, didScheduleMicrotask_act = !1, mightHavePendingSyncWork = !1, isFlushingWork = !1, currentEventTransitionLane = 0, fakeActCallbackNode$1 = {}, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S;
ReactSharedInternals.S = function(transition, returnValue) {
if (globalMostRecentTransitionTime = now$1(), typeof returnValue == "object" && returnValue !== null && typeof returnValue.then == "function") {
if (0 > transitionStartTime && 0 > transitionUpdateTime) {
transitionStartTime = now();
var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType2();
(newEventTime !== transitionEventRepeatTime || newEventType !== transitionEventType) && (transitionEventRepeatTime = -1.1), transitionEventTime = newEventTime, transitionEventType = newEventType;
}
entangleAsyncAction(transition, returnValue);
}
prevOnStartTransitionFinish !== null && prevOnStartTransitionFinish(transition, returnValue);
};
var resumedCache = createCursor(null), ReactStrictModeWarnings = {
recordUnsafeLifecycleWarnings: function() {
},
flushPendingUnsafeLifecycleWarnings: function() {
},
recordLegacyContextWarning: function() {
},
flushLegacyContextWarning: function() {
},
discardPendingWarnings: function() {
}
}, pendingComponentWillMountWarnings = [], pendingUNSAFE_ComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], pendingUNSAFE_ComponentWillReceivePropsWarnings = [], pendingComponentWillUpdateWarnings = [], pendingUNSAFE_ComponentWillUpdateWarnings = [], didWarnAboutUnsafeLifecycles = /* @__PURE__ */ new Set();
ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function(fiber, instance) {
didWarnAboutUnsafeLifecycles.has(fiber.type) || (typeof instance.componentWillMount == "function" && instance.componentWillMount.__suppressDeprecationWarning !== !0 && pendingComponentWillMountWarnings.push(fiber), fiber.mode & 8 && typeof instance.UNSAFE_componentWillMount == "function" && pendingUNSAFE_ComponentWillMountWarnings.push(fiber), typeof instance.componentWillReceiveProps == "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== !0 && pendingComponentWillReceivePropsWarnings.push(fiber), fiber.mode & 8 && typeof instance.UNSAFE_componentWillReceiveProps == "function" && pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber), typeof instance.componentWillUpdate == "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== !0 && pendingComponentWillUpdateWarnings.push(fiber), fiber.mode & 8 && typeof instance.UNSAFE_componentWillUpdate == "function" && pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber));
}, ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function() {
var componentWillMountUniqueNames = /* @__PURE__ */ new Set();
0 < pendingComponentWillMountWarnings.length && (pendingComponentWillMountWarnings.forEach(function(fiber) {
componentWillMountUniqueNames.add(
getComponentNameFromFiber(fiber) || "Component"
), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingComponentWillMountWarnings = []);
var UNSAFE_componentWillMountUniqueNames = /* @__PURE__ */ new Set();
0 < pendingUNSAFE_ComponentWillMountWarnings.length && (pendingUNSAFE_ComponentWillMountWarnings.forEach(function(fiber) {
UNSAFE_componentWillMountUniqueNames.add(
getComponentNameFromFiber(fiber) || "Component"
), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingUNSAFE_ComponentWillMountWarnings = []);
var componentWillReceivePropsUniqueNames = /* @__PURE__ */ new Set();
0 < pendingComponentWillReceivePropsWarnings.length && (pendingComponentWillReceivePropsWarnings.forEach(function(fiber) {
componentWillReceivePropsUniqueNames.add(
getComponentNameFromFiber(fiber) || "Component"
), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingComponentWillReceivePropsWarnings = []);
var UNSAFE_componentWillReceivePropsUniqueNames = /* @__PURE__ */ new Set();
0 < pendingUNSAFE_ComponentWillReceivePropsWarnings.length && (pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(
function(fiber) {
UNSAFE_componentWillReceivePropsUniqueNames.add(
getComponentNameFromFiber(fiber) || "Component"
), didWarnAboutUnsafeLifecycles.add(fiber.type);
}
), pendingUNSAFE_ComponentWillReceivePropsWarnings = []);
var componentWillUpdateUniqueNames = /* @__PURE__ */ new Set();
0 < pendingComponentWillUpdateWarnings.length && (pendingComponentWillUpdateWarnings.forEach(function(fiber) {
componentWillUpdateUniqueNames.add(
getComponentNameFromFiber(fiber) || "Component"
), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingComponentWillUpdateWarnings = []);
var UNSAFE_componentWillUpdateUniqueNames = /* @__PURE__ */ new Set();
if (0 < pendingUNSAFE_ComponentWillUpdateWarnings.length && (pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function(fiber) {
UNSAFE_componentWillUpdateUniqueNames.add(
getComponentNameFromFiber(fiber) || "Component"
), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingUNSAFE_ComponentWillUpdateWarnings = []), 0 < UNSAFE_componentWillMountUniqueNames.size) {
var sortedNames = setToSortedString(
UNSAFE_componentWillMountUniqueNames
);
console.error(
`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
Please update the following components: %s`,
sortedNames
);
}
0 < UNSAFE_componentWillReceivePropsUniqueNames.size && (sortedNames = setToSortedString(
UNSAFE_componentWillReceivePropsUniqueNames
), console.error(
`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
Please update the following components: %s`,
sortedNames
)), 0 < UNSAFE_componentWillUpdateUniqueNames.size && (sortedNames = setToSortedString(
UNSAFE_componentWillUpdateUniqueNames
), console.error(
`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
Please update the following components: %s`,
sortedNames
)), 0 < componentWillMountUniqueNames.size && (sortedNames = setToSortedString(componentWillMountUniqueNames), console.warn(
`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,
sortedNames
)), 0 < componentWillReceivePropsUniqueNames.size && (sortedNames = setToSortedString(
componentWillReceivePropsUniqueNames
), console.warn(
`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,
sortedNames
)), 0 < componentWillUpdateUniqueNames.size && (sortedNames = setToSortedString(componentWillUpdateUniqueNames), console.warn(
`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,
sortedNames
));
};
var pendingLegacyContextWarning = /* @__PURE__ */ new Map(), didWarnAboutLegacyContext = /* @__PURE__ */ new Set();
ReactStrictModeWarnings.recordLegacyContextWarning = function(fiber, instance) {
for (var strictRoot = null, node = fiber; node !== null; )
node.mode & 8 && (strictRoot = node), node = node.return;
strictRoot === null ? console.error(
"Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."
) : !didWarnAboutLegacyContext.has(fiber.type) && (node = pendingLegacyContextWarning.get(strictRoot), fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext == "function") && (node === void 0 && (node = [], pendingLegacyContextWarning.set(strictRoot, node)), node.push(fiber));
}, ReactStrictModeWarnings.flushLegacyContextWarning = function() {
pendingLegacyContextWarning.forEach(function(fiberArray) {
if (fiberArray.length !== 0) {
var firstFiber = fiberArray[0], uniqueNames = /* @__PURE__ */ new Set();
fiberArray.forEach(function(fiber) {
uniqueNames.add(getComponentNameFromFiber(fiber) || "Component"), didWarnAboutLegacyContext.add(fiber.type);
});
var sortedNames = setToSortedString(uniqueNames);
runWithFiberInDEV(firstFiber, function() {
console.error(
`Legacy context API has been detected within a strict-mode tree.
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
Please update the following components: %s
Learn more about this warning here: https://react.dev/link/legacy-context`,
sortedNames
);
});
}
});
}, ReactStrictModeWarnings.discardPendingWarnings = function() {
pendingComponentWillMountWarnings = [], pendingUNSAFE_ComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], pendingUNSAFE_ComponentWillReceivePropsWarnings = [], pendingComponentWillUpdateWarnings = [], pendingUNSAFE_ComponentWillUpdateWarnings = [], pendingLegacyContextWarning = /* @__PURE__ */ new Map();
};
var callComponent = {
react_stack_bottom_frame: function(Component, props, secondArg) {
var wasRendering = isRendering;
isRendering = !0;
try {
return Component(props, secondArg);
} finally {
isRendering = wasRendering;
}
}
}, callComponentInDEV = callComponent.react_stack_bottom_frame.bind(callComponent), callRender = {
react_stack_bottom_frame: function(instance) {
var wasRendering = isRendering;
isRendering = !0;
try {
return instance.render();
} finally {
isRendering = wasRendering;
}
}
}, callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender), callComponentDidMount = {
react_stack_bottom_frame: function(finishedWork, instance) {
try {
instance.componentDidMount();
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
}, callComponentDidMountInDEV = callComponentDidMount.react_stack_bottom_frame.bind(
callComponentDidMount
), callComponentDidUpdate = {
react_stack_bottom_frame: function(finishedWork, instance, prevProps, prevState, snapshot) {
try {
instance.componentDidUpdate(prevProps, prevState, snapshot);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
}, callComponentDidUpdateInDEV = callComponentDidUpdate.react_stack_bottom_frame.bind(
callComponentDidUpdate
), callComponentDidCatch = {
react_stack_bottom_frame: function(instance, errorInfo) {
var stack = errorInfo.stack;
instance.componentDidCatch(errorInfo.value, {
componentStack: stack !== null ? stack : ""
});
}
}, callComponentDidCatchInDEV = callComponentDidCatch.react_stack_bottom_frame.bind(
callComponentDidCatch
), callComponentWillUnmount = {
react_stack_bottom_frame: function(current2, nearestMountedAncestor, instance) {
try {
instance.componentWillUnmount();
} catch (error) {
captureCommitPhaseError(current2, nearestMountedAncestor, error);
}
}
}, callComponentWillUnmountInDEV = callComponentWillUnmount.react_stack_bottom_frame.bind(
callComponentWillUnmount
), callCreate = {
react_stack_bottom_frame: function(effect) {
var create3 = effect.create;
return effect = effect.inst, create3 = create3(), effect.destroy = create3;
}
}, callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate), callDestroy = {
react_stack_bottom_frame: function(current2, nearestMountedAncestor, destroy) {
try {
destroy();
} catch (error) {
captureCommitPhaseError(current2, nearestMountedAncestor, error);
}
}
}, callDestroyInDEV = callDestroy.react_stack_bottom_frame.bind(callDestroy), callLazyInit = {
react_stack_bottom_frame: function(lazy) {
var init = lazy._init;
return init(lazy._payload);
}
}, callLazyInitInDEV = callLazyInit.react_stack_bottom_frame.bind(callLazyInit), SuspenseException = Error(
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
), SuspenseyCommitException = Error(
"Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
), SuspenseActionException = Error(
"Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."
), noopSuspenseyCommitThenable = {
then: function() {
console.error(
'Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.'
);
}
}, suspendedThenable = null, needsToResetSuspendedThenableDEV = !1, thenableState$1 = null, thenableIndexCounter$1 = 0, currentDebugInfo = null, didWarnAboutMaps, didWarnAboutGenerators = didWarnAboutMaps = !1, ownerHasKeyUseWarning = {}, ownerHasFunctionTypeWarning = {}, ownerHasSymbolTypeWarning = {};
warnForMissingKey = function(returnFiber, workInProgress2, child) {
if (child !== null && typeof child == "object" && child._store && (!child._store.validated && child.key == null || child._store.validated === 2)) {
if (typeof child._store != "object")
throw Error(
"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
);
child._store.validated = 1;
var componentName2 = getComponentNameFromFiber(returnFiber), componentKey = componentName2 || "null";
if (!ownerHasKeyUseWarning[componentKey]) {
ownerHasKeyUseWarning[componentKey] = !0, child = child._owner, returnFiber = returnFiber._debugOwner;
var currentComponentErrorInfo = "";
returnFiber && typeof returnFiber.tag == "number" && (componentKey = getComponentNameFromFiber(returnFiber)) && (currentComponentErrorInfo = `
Check the render method of \`` + componentKey + "`."), currentComponentErrorInfo || componentName2 && (currentComponentErrorInfo = `
Check the top-level render call using <` + componentName2 + ">.");
var childOwnerAppendix = "";
child != null && returnFiber !== child && (componentName2 = null, typeof child.tag == "number" ? componentName2 = getComponentNameFromFiber(child) : typeof child.name == "string" && (componentName2 = child.name), componentName2 && (childOwnerAppendix = " It was passed a child from " + componentName2 + ".")), runWithFiberInDEV(workInProgress2, function() {
console.error(
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
currentComponentErrorInfo,
childOwnerAppendix
);
});
}
}
};
var reconcileChildFibers = createChildReconciler(!0), mountChildFibers = createChildReconciler(!1), OffscreenVisible = 1, OffscreenPassiveEffectsConnected = 2, concurrentQueues = [], concurrentQueuesIndex = 0, concurrentlyUpdatedLanes = 0, UpdateState = 0, ReplaceState = 1, ForceUpdate = 2, CaptureUpdate = 3, hasForceUpdate = !1, didWarnUpdateInsideUpdate = !1, currentlyProcessingQueue = null, didReadFromEntangledAsyncAction = !1, currentTreeHiddenStackCursor = createCursor(null), prevEntangledRenderLanesCursor = createCursor(0), suspenseHandlerStackCursor = createCursor(null), shellBoundary = null, SubtreeSuspenseContextMask = 1, ForceSuspenseFallback = 2, suspenseStackCursor = createCursor(0), NoFlags = 0, HasEffect = 1, Insertion = 2, Layout = 4, Passive = 8, didWarnUncachedGetSnapshot, didWarnAboutMismatchedHooksForComponent = /* @__PURE__ */ new Set(), didWarnAboutUseWrappedInTryCatch = /* @__PURE__ */ new Set(), didWarnAboutAsyncClientComponent = /* @__PURE__ */ new Set(), didWarnAboutUseFormState = /* @__PURE__ */ new Set(), renderLanes = 0, currentlyRenderingFiber = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1, shouldDoubleInvokeUserFnsInHooksDEV = !1, localIdCounter = 0, thenableIndexCounter = 0, thenableState = null, globalClientIdCounter = 0, RE_RENDER_LIMIT = 25, currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = !1, ContextOnlyDispatcher = {
readContext,
use,
useCallback: throwInvalidHookError,
useContext: throwInvalidHookError,
useEffect: throwInvalidHookError,
useImperativeHandle: throwInvalidHookError,
useLayoutEffect: throwInvalidHookError,
useInsertionEffect: throwInvalidHookError,
useMemo: throwInvalidHookError,
useReducer: throwInvalidHookError,
useRef: throwInvalidHookError,
useState: throwInvalidHookError,
useDebugValue: throwInvalidHookError,
useDeferredValue: throwInvalidHookError,
useTransition: throwInvalidHookError,
useSyncExternalStore: throwInvalidHookError,
useId: throwInvalidHookError,
useHostTransitionStatus: throwInvalidHookError,
useFormState: throwInvalidHookError,
useActionState: throwInvalidHookError,
useOptimistic: throwInvalidHookError,
useMemoCache: throwInvalidHookError,
useCacheRefresh: throwInvalidHookError
};
ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError;
var HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, HooksDispatcherOnRerenderInDEV = null, InvalidNestedHooksDispatcherOnMountInDEV = null, InvalidNestedHooksDispatcherOnUpdateInDEV = null, InvalidNestedHooksDispatcherOnRerenderInDEV = null;
HooksDispatcherOnMountInDEV = {
readContext: function(context) {
return readContext(context);
},
use,
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", mountHookTypesDev(), checkDepsAreArrayDev(deps), mountCallback(callback, deps);
},
useContext: function(context) {
return currentHookNameInDev = "useContext", mountHookTypesDev(), readContext(context);
},
useEffect: function(create3, deps) {
return currentHookNameInDev = "useEffect", mountHookTypesDev(), checkDepsAreArrayDev(deps), mountEffect(create3, deps);
},
useImperativeHandle: function(ref, create3, deps) {
return currentHookNameInDev = "useImperativeHandle", mountHookTypesDev(), checkDepsAreArrayDev(deps), mountImperativeHandle(ref, create3, deps);
},
useInsertionEffect: function(create3, deps) {
currentHookNameInDev = "useInsertionEffect", mountHookTypesDev(), checkDepsAreArrayDev(deps), mountEffectImpl(4, Insertion, create3, deps);
},
useLayoutEffect: function(create3, deps) {
return currentHookNameInDev = "useLayoutEffect", mountHookTypesDev(), checkDepsAreArrayDev(deps), mountLayoutEffect(create3, deps);
},
useMemo: function(create3, deps) {
currentHookNameInDev = "useMemo", mountHookTypesDev(), checkDepsAreArrayDev(deps);
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountMemo(create3, deps);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useReducer: function(reducer2, initialArg, init) {
currentHookNameInDev = "useReducer", mountHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountReducer(reducer2, initialArg, init);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useRef: function(initialValue) {
return currentHookNameInDev = "useRef", mountHookTypesDev(), mountRef(initialValue);
},
useState: function(initialState) {
currentHookNameInDev = "useState", mountHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountState(initialState);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useDebugValue: function() {
currentHookNameInDev = "useDebugValue", mountHookTypesDev();
},
useDeferredValue: function(value, initialValue) {
return currentHookNameInDev = "useDeferredValue", mountHookTypesDev(), mountDeferredValue(value, initialValue);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", mountHookTypesDev(), mountTransition();
},
useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) {
return currentHookNameInDev = "useSyncExternalStore", mountHookTypesDev(), mountSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
},
useId: function() {
return currentHookNameInDev = "useId", mountHookTypesDev(), mountId();
},
useFormState: function(action, initialState) {
return currentHookNameInDev = "useFormState", mountHookTypesDev(), warnOnUseFormStateInDev(), mountActionState(action, initialState);
},
useActionState: function(action, initialState) {
return currentHookNameInDev = "useActionState", mountHookTypesDev(), mountActionState(action, initialState);
},
useOptimistic: function(passthrough) {
return currentHookNameInDev = "useOptimistic", mountHookTypesDev(), mountOptimistic(passthrough);
},
useHostTransitionStatus,
useMemoCache,
useCacheRefresh: function() {
return currentHookNameInDev = "useCacheRefresh", mountHookTypesDev(), mountRefresh();
},
useEffectEvent: function(callback) {
return currentHookNameInDev = "useEffectEvent", mountHookTypesDev(), mountEvent(callback);
}
}, HooksDispatcherOnMountWithHookTypesInDEV = {
readContext: function(context) {
return readContext(context);
},
use,
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", updateHookTypesDev(), mountCallback(callback, deps);
},
useContext: function(context) {
return currentHookNameInDev = "useContext", updateHookTypesDev(), readContext(context);
},
useEffect: function(create3, deps) {
return currentHookNameInDev = "useEffect", updateHookTypesDev(), mountEffect(create3, deps);
},
useImperativeHandle: function(ref, create3, deps) {
return currentHookNameInDev = "useImperativeHandle", updateHookTypesDev(), mountImperativeHandle(ref, create3, deps);
},
useInsertionEffect: function(create3, deps) {
currentHookNameInDev = "useInsertionEffect", updateHookTypesDev(), mountEffectImpl(4, Insertion, create3, deps);
},
useLayoutEffect: function(create3, deps) {
return currentHookNameInDev = "useLayoutEffect", updateHookTypesDev(), mountLayoutEffect(create3, deps);
},
useMemo: function(create3, deps) {
currentHookNameInDev = "useMemo", updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountMemo(create3, deps);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useReducer: function(reducer2, initialArg, init) {
currentHookNameInDev = "useReducer", updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountReducer(reducer2, initialArg, init);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useRef: function(initialValue) {
return currentHookNameInDev = "useRef", updateHookTypesDev(), mountRef(initialValue);
},
useState: function(initialState) {
currentHookNameInDev = "useState", updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountState(initialState);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useDebugValue: function() {
currentHookNameInDev = "useDebugValue", updateHookTypesDev();
},
useDeferredValue: function(value, initialValue) {
return currentHookNameInDev = "useDeferredValue", updateHookTypesDev(), mountDeferredValue(value, initialValue);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", updateHookTypesDev(), mountTransition();
},
useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) {
return currentHookNameInDev = "useSyncExternalStore", updateHookTypesDev(), mountSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
},
useId: function() {
return currentHookNameInDev = "useId", updateHookTypesDev(), mountId();
},
useActionState: function(action, initialState) {
return currentHookNameInDev = "useActionState", updateHookTypesDev(), mountActionState(action, initialState);
},
useFormState: function(action, initialState) {
return currentHookNameInDev = "useFormState", updateHookTypesDev(), warnOnUseFormStateInDev(), mountActionState(action, initialState);
},
useOptimistic: function(passthrough) {
return currentHookNameInDev = "useOptimistic", updateHookTypesDev(), mountOptimistic(passthrough);
},
useHostTransitionStatus,
useMemoCache,
useCacheRefresh: function() {
return currentHookNameInDev = "useCacheRefresh", updateHookTypesDev(), mountRefresh();
},
useEffectEvent: function(callback) {
return currentHookNameInDev = "useEffectEvent", updateHookTypesDev(), mountEvent(callback);
}
}, HooksDispatcherOnUpdateInDEV = {
readContext: function(context) {
return readContext(context);
},
use,
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", updateHookTypesDev(), updateCallback(callback, deps);
},
useContext: function(context) {
return currentHookNameInDev = "useContext", updateHookTypesDev(), readContext(context);
},
useEffect: function(create3, deps) {
currentHookNameInDev = "useEffect", updateHookTypesDev(), updateEffectImpl(2048, Passive, create3, deps);
},
useImperativeHandle: function(ref, create3, deps) {
return currentHookNameInDev = "useImperativeHandle", updateHookTypesDev(), updateImperativeHandle(ref, create3, deps);
},
useInsertionEffect: function(create3, deps) {
return currentHookNameInDev = "useInsertionEffect", updateHookTypesDev(), updateEffectImpl(4, Insertion, create3, deps);
},
useLayoutEffect: function(create3, deps) {
return currentHookNameInDev = "useLayoutEffect", updateHookTypesDev(), updateEffectImpl(4, Layout, create3, deps);
},
useMemo: function(create3, deps) {
currentHookNameInDev = "useMemo", updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateMemo(create3, deps);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useReducer: function(reducer2, initialArg, init) {
currentHookNameInDev = "useReducer", updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateReducer(reducer2, initialArg, init);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useRef: function() {
return currentHookNameInDev = "useRef", updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useState: function() {
currentHookNameInDev = "useState", updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateReducer(basicStateReducer);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useDebugValue: function() {
currentHookNameInDev = "useDebugValue", updateHookTypesDev();
},
useDeferredValue: function(value, initialValue) {
return currentHookNameInDev = "useDeferredValue", updateHookTypesDev(), updateDeferredValue(value, initialValue);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", updateHookTypesDev(), updateTransition();
},
useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) {
return currentHookNameInDev = "useSyncExternalStore", updateHookTypesDev(), updateSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
},
useId: function() {
return currentHookNameInDev = "useId", updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useFormState: function(action) {
return currentHookNameInDev = "useFormState", updateHookTypesDev(), warnOnUseFormStateInDev(), updateActionState(action);
},
useActionState: function(action) {
return currentHookNameInDev = "useActionState", updateHookTypesDev(), updateActionState(action);
},
useOptimistic: function(passthrough, reducer2) {
return currentHookNameInDev = "useOptimistic", updateHookTypesDev(), updateOptimistic(passthrough, reducer2);
},
useHostTransitionStatus,
useMemoCache,
useCacheRefresh: function() {
return currentHookNameInDev = "useCacheRefresh", updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useEffectEvent: function(callback) {
return currentHookNameInDev = "useEffectEvent", updateHookTypesDev(), updateEvent(callback);
}
}, HooksDispatcherOnRerenderInDEV = {
readContext: function(context) {
return readContext(context);
},
use,
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", updateHookTypesDev(), updateCallback(callback, deps);
},
useContext: function(context) {
return currentHookNameInDev = "useContext", updateHookTypesDev(), readContext(context);
},
useEffect: function(create3, deps) {
currentHookNameInDev = "useEffect", updateHookTypesDev(), updateEffectImpl(2048, Passive, create3, deps);
},
useImperativeHandle: function(ref, create3, deps) {
return currentHookNameInDev = "useImperativeHandle", updateHookTypesDev(), updateImperativeHandle(ref, create3, deps);
},
useInsertionEffect: function(create3, deps) {
return currentHookNameInDev = "useInsertionEffect", updateHookTypesDev(), updateEffectImpl(4, Insertion, create3, deps);
},
useLayoutEffect: function(create3, deps) {
return currentHookNameInDev = "useLayoutEffect", updateHookTypesDev(), updateEffectImpl(4, Layout, create3, deps);
},
useMemo: function(create3, deps) {
currentHookNameInDev = "useMemo", updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV;
try {
return updateMemo(create3, deps);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useReducer: function(reducer2, initialArg, init) {
currentHookNameInDev = "useReducer", updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV;
try {
return rerenderReducer(reducer2, initialArg, init);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useRef: function() {
return currentHookNameInDev = "useRef", updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useState: function() {
currentHookNameInDev = "useState", updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV;
try {
return rerenderReducer(basicStateReducer);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useDebugValue: function() {
currentHookNameInDev = "useDebugValue", updateHookTypesDev();
},
useDeferredValue: function(value, initialValue) {
return currentHookNameInDev = "useDeferredValue", updateHookTypesDev(), rerenderDeferredValue(value, initialValue);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", updateHookTypesDev(), rerenderTransition();
},
useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) {
return currentHookNameInDev = "useSyncExternalStore", updateHookTypesDev(), updateSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
},
useId: function() {
return currentHookNameInDev = "useId", updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useFormState: function(action) {
return currentHookNameInDev = "useFormState", updateHookTypesDev(), warnOnUseFormStateInDev(), rerenderActionState(action);
},
useActionState: function(action) {
return currentHookNameInDev = "useActionState", updateHookTypesDev(), rerenderActionState(action);
},
useOptimistic: function(passthrough, reducer2) {
return currentHookNameInDev = "useOptimistic", updateHookTypesDev(), rerenderOptimistic(passthrough, reducer2);
},
useHostTransitionStatus,
useMemoCache,
useCacheRefresh: function() {
return currentHookNameInDev = "useCacheRefresh", updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useEffectEvent: function(callback) {
return currentHookNameInDev = "useEffectEvent", updateHookTypesDev(), updateEvent(callback);
}
}, InvalidNestedHooksDispatcherOnMountInDEV = {
readContext: function(context) {
return warnInvalidContextAccess(), readContext(context);
},
use: function(usable) {
return warnInvalidHookAccess(), use(usable);
},
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", warnInvalidHookAccess(), mountHookTypesDev(), mountCallback(callback, deps);
},
useContext: function(context) {
return currentHookNameInDev = "useContext", warnInvalidHookAccess(), mountHookTypesDev(), readContext(context);
},
useEffect: function(create3, deps) {
return currentHookNameInDev = "useEffect", warnInvalidHookAccess(), mountHookTypesDev(), mountEffect(create3, deps);
},
useImperativeHandle: function(ref, create3, deps) {
return currentHookNameInDev = "useImperativeHandle", warnInvalidHookAccess(), mountHookTypesDev(), mountImperativeHandle(ref, create3, deps);
},
useInsertionEffect: function(create3, deps) {
currentHookNameInDev = "useInsertionEffect", warnInvalidHookAccess(), mountHookTypesDev(), mountEffectImpl(4, Insertion, create3, deps);
},
useLayoutEffect: function(create3, deps) {
return currentHookNameInDev = "useLayoutEffect", warnInvalidHookAccess(), mountHookTypesDev(), mountLayoutEffect(create3, deps);
},
useMemo: function(create3, deps) {
currentHookNameInDev = "useMemo", warnInvalidHookAccess(), mountHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountMemo(create3, deps);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useReducer: function(reducer2, initialArg, init) {
currentHookNameInDev = "useReducer", warnInvalidHookAccess(), mountHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountReducer(reducer2, initialArg, init);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useRef: function(initialValue) {
return currentHookNameInDev = "useRef", warnInvalidHookAccess(), mountHookTypesDev(), mountRef(initialValue);
},
useState: function(initialState) {
currentHookNameInDev = "useState", warnInvalidHookAccess(), mountHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountState(initialState);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useDebugValue: function() {
currentHookNameInDev = "useDebugValue", warnInvalidHookAccess(), mountHookTypesDev();
},
useDeferredValue: function(value, initialValue) {
return currentHookNameInDev = "useDeferredValue", warnInvalidHookAccess(), mountHookTypesDev(), mountDeferredValue(value, initialValue);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", warnInvalidHookAccess(), mountHookTypesDev(), mountTransition();
},
useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) {
return currentHookNameInDev = "useSyncExternalStore", warnInvalidHookAccess(), mountHookTypesDev(), mountSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
},
useId: function() {
return currentHookNameInDev = "useId", warnInvalidHookAccess(), mountHookTypesDev(), mountId();
},
useFormState: function(action, initialState) {
return currentHookNameInDev = "useFormState", warnInvalidHookAccess(), mountHookTypesDev(), mountActionState(action, initialState);
},
useActionState: function(action, initialState) {
return currentHookNameInDev = "useActionState", warnInvalidHookAccess(), mountHookTypesDev(), mountActionState(action, initialState);
},
useOptimistic: function(passthrough) {
return currentHookNameInDev = "useOptimistic", warnInvalidHookAccess(), mountHookTypesDev(), mountOptimistic(passthrough);
},
useMemoCache: function(size) {
return warnInvalidHookAccess(), useMemoCache(size);
},
useHostTransitionStatus,
useCacheRefresh: function() {
return currentHookNameInDev = "useCacheRefresh", mountHookTypesDev(), mountRefresh();
},
useEffectEvent: function(callback) {
return currentHookNameInDev = "useEffectEvent", warnInvalidHookAccess(), mountHookTypesDev(), mountEvent(callback);
}
}, InvalidNestedHooksDispatcherOnUpdateInDEV = {
readContext: function(context) {
return warnInvalidContextAccess(), readContext(context);
},
use: function(usable) {
return warnInvalidHookAccess(), use(usable);
},
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", warnInvalidHookAccess(), updateHookTypesDev(), updateCallback(callback, deps);
},
useContext: function(context) {
return currentHookNameInDev = "useContext", warnInvalidHookAccess(), updateHookTypesDev(), readContext(context);
},
useEffect: function(create3, deps) {
currentHookNameInDev = "useEffect", warnInvalidHookAccess(), updateHookTypesDev(), updateEffectImpl(2048, Passive, create3, deps);
},
useImperativeHandle: function(ref, create3, deps) {
return currentHookNameInDev = "useImperativeHandle", warnInvalidHookAccess(), updateHookTypesDev(), updateImperativeHandle(ref, create3, deps);
},
useInsertionEffect: function(create3, deps) {
return currentHookNameInDev = "useInsertionEffect", warnInvalidHookAccess(), updateHookTypesDev(), updateEffectImpl(4, Insertion, create3, deps);
},
useLayoutEffect: function(create3, deps) {
return currentHookNameInDev = "useLayoutEffect", warnInvalidHookAccess(), updateHookTypesDev(), updateEffectImpl(4, Layout, create3, deps);
},
useMemo: function(create3, deps) {
currentHookNameInDev = "useMemo", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateMemo(create3, deps);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useReducer: function(reducer2, initialArg, init) {
currentHookNameInDev = "useReducer", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateReducer(reducer2, initialArg, init);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useRef: function() {
return currentHookNameInDev = "useRef", warnInvalidHookAccess(), updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useState: function() {
currentHookNameInDev = "useState", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateReducer(basicStateReducer);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useDebugValue: function() {
currentHookNameInDev = "useDebugValue", warnInvalidHookAccess(), updateHookTypesDev();
},
useDeferredValue: function(value, initialValue) {
return currentHookNameInDev = "useDeferredValue", warnInvalidHookAccess(), updateHookTypesDev(), updateDeferredValue(value, initialValue);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", warnInvalidHookAccess(), updateHookTypesDev(), updateTransition();
},
useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) {
return currentHookNameInDev = "useSyncExternalStore", warnInvalidHookAccess(), updateHookTypesDev(), updateSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
},
useId: function() {
return currentHookNameInDev = "useId", warnInvalidHookAccess(), updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useFormState: function(action) {
return currentHookNameInDev = "useFormState", warnInvalidHookAccess(), updateHookTypesDev(), updateActionState(action);
},
useActionState: function(action) {
return currentHookNameInDev = "useActionState", warnInvalidHookAccess(), updateHookTypesDev(), updateActionState(action);
},
useOptimistic: function(passthrough, reducer2) {
return currentHookNameInDev = "useOptimistic", warnInvalidHookAccess(), updateHookTypesDev(), updateOptimistic(passthrough, reducer2);
},
useMemoCache: function(size) {
return warnInvalidHookAccess(), useMemoCache(size);
},
useHostTransitionStatus,
useCacheRefresh: function() {
return currentHookNameInDev = "useCacheRefresh", updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useEffectEvent: function(callback) {
return currentHookNameInDev = "useEffectEvent", warnInvalidHookAccess(), updateHookTypesDev(), updateEvent(callback);
}
}, InvalidNestedHooksDispatcherOnRerenderInDEV = {
readContext: function(context) {
return warnInvalidContextAccess(), readContext(context);
},
use: function(usable) {
return warnInvalidHookAccess(), use(usable);
},
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", warnInvalidHookAccess(), updateHookTypesDev(), updateCallback(callback, deps);
},
useContext: function(context) {
return currentHookNameInDev = "useContext", warnInvalidHookAccess(), updateHookTypesDev(), readContext(context);
},
useEffect: function(create3, deps) {
currentHookNameInDev = "useEffect", warnInvalidHookAccess(), updateHookTypesDev(), updateEffectImpl(2048, Passive, create3, deps);
},
useImperativeHandle: function(ref, create3, deps) {
return currentHookNameInDev = "useImperativeHandle", warnInvalidHookAccess(), updateHookTypesDev(), updateImperativeHandle(ref, create3, deps);
},
useInsertionEffect: function(create3, deps) {
return currentHookNameInDev = "useInsertionEffect", warnInvalidHookAccess(), updateHookTypesDev(), updateEffectImpl(4, Insertion, create3, deps);
},
useLayoutEffect: function(create3, deps) {
return currentHookNameInDev = "useLayoutEffect", warnInvalidHookAccess(), updateHookTypesDev(), updateEffectImpl(4, Layout, create3, deps);
},
useMemo: function(create3, deps) {
currentHookNameInDev = "useMemo", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateMemo(create3, deps);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useReducer: function(reducer2, initialArg, init) {
currentHookNameInDev = "useReducer", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return rerenderReducer(reducer2, initialArg, init);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useRef: function() {
return currentHookNameInDev = "useRef", warnInvalidHookAccess(), updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useState: function() {
currentHookNameInDev = "useState", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return rerenderReducer(basicStateReducer);
} finally {
ReactSharedInternals.H = prevDispatcher;
}
},
useDebugValue: function() {
currentHookNameInDev = "useDebugValue", warnInvalidHookAccess(), updateHookTypesDev();
},
useDeferredValue: function(value, initialValue) {
return currentHookNameInDev = "useDeferredValue", warnInvalidHookAccess(), updateHookTypesDev(), rerenderDeferredValue(value, initialValue);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", warnInvalidHookAccess(), updateHookTypesDev(), rerenderTransition();
},
useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) {
return currentHookNameInDev = "useSyncExternalStore", warnInvalidHookAccess(), updateHookTypesDev(), updateSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
},
useId: function() {
return currentHookNameInDev = "useId", warnInvalidHookAccess(), updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useFormState: function(action) {
return currentHookNameInDev = "useFormState", warnInvalidHookAccess(), updateHookTypesDev(), rerenderActionState(action);
},
useActionState: function(action) {
return currentHookNameInDev = "useActionState", warnInvalidHookAccess(), updateHookTypesDev(), rerenderActionState(action);
},
useOptimistic: function(passthrough, reducer2) {
return currentHookNameInDev = "useOptimistic", warnInvalidHookAccess(), updateHookTypesDev(), rerenderOptimistic(passthrough, reducer2);
},
useMemoCache: function(size) {
return warnInvalidHookAccess(), useMemoCache(size);
},
useHostTransitionStatus,
useCacheRefresh: function() {
return currentHookNameInDev = "useCacheRefresh", updateHookTypesDev(), updateWorkInProgressHook().memoizedState;
},
useEffectEvent: function(callback) {
return currentHookNameInDev = "useEffectEvent", warnInvalidHookAccess(), updateHookTypesDev(), updateEvent(callback);
}
};
var fakeInternalInstance = {}, didWarnAboutStateAssignmentForComponent = /* @__PURE__ */ new Set(), didWarnAboutUninitializedState = /* @__PURE__ */ new Set(), didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = /* @__PURE__ */ new Set(), didWarnAboutLegacyLifecyclesAndDerivedState = /* @__PURE__ */ new Set(), didWarnAboutDirectlyAssigningPropsToState = /* @__PURE__ */ new Set(), didWarnAboutUndefinedDerivedState = /* @__PURE__ */ new Set(), didWarnAboutContextTypes$1 = /* @__PURE__ */ new Set(), didWarnAboutChildContextTypes = /* @__PURE__ */ new Set(), didWarnAboutInvalidateContextType = /* @__PURE__ */ new Set(), didWarnOnInvalidCallback = /* @__PURE__ */ new Set();
Object.freeze(fakeInternalInstance);
var classComponentUpdater = {
enqueueSetState: function(inst, payload, callback) {
inst = inst._reactInternals;
var lane = requestUpdateLane(inst), update = createUpdate(lane);
update.payload = payload, callback != null && (warnOnInvalidCallback(callback), update.callback = callback), payload = enqueueUpdate(inst, update, lane), payload !== null && (startUpdateTimerByLane(lane, "this.setState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
},
enqueueReplaceState: function(inst, payload, callback) {
inst = inst._reactInternals;
var lane = requestUpdateLane(inst), update = createUpdate(lane);
update.tag = ReplaceState, update.payload = payload, callback != null && (warnOnInvalidCallback(callback), update.callback = callback), payload = enqueueUpdate(inst, update, lane), payload !== null && (startUpdateTimerByLane(lane, "this.replaceState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
},
enqueueForceUpdate: function(inst, callback) {
inst = inst._reactInternals;
var lane = requestUpdateLane(inst), update = createUpdate(lane);
update.tag = ForceUpdate, callback != null && (warnOnInvalidCallback(callback), update.callback = callback), callback = enqueueUpdate(inst, update, lane), callback !== null && (startUpdateTimerByLane(lane, "this.forceUpdate()", inst), scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane));
}
}, componentName = null, errorBoundaryName = null, SelectiveHydrationException = Error(
"This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."
), didReceiveUpdate = !1, didWarnAboutBadClass = {}, didWarnAboutContextTypeOnFunctionComponent = {}, didWarnAboutContextTypes = {}, didWarnAboutGetDerivedStateOnFunctionComponent = {}, didWarnAboutReassigningProps = !1, didWarnAboutRevealOrder = {}, didWarnAboutTailOptions = {}, SUSPENDED_MARKER = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
}, hasWarnedAboutUsingNoValuePropOnContextProvider = !1, didWarnAboutUndefinedSnapshotBeforeUpdate = null;
didWarnAboutUndefinedSnapshotBeforeUpdate = /* @__PURE__ */ new Set();
var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, PossiblyWeakSet = typeof WeakSet == "function" ? WeakSet : Set, nextEffect = null, inProgressLanes = null, inProgressRoot = null, hostParent = null, hostParentIsContainer = !1, currentHoistableRoot = null, inHydratedSubtree = !1, suspenseyCommitFlag = 8192, DefaultAsyncDispatcher = {
getCacheForType: function(resourceType) {
var cache3 = readContext(CacheContext), cacheForType = cache3.data.get(resourceType);
return cacheForType === void 0 && (cacheForType = resourceType(), cache3.data.set(resourceType, cacheForType)), cacheForType;
},
cacheSignal: function() {
return readContext(CacheContext).controller.signal;
},
getOwner: function() {
return current;
}
}, COMPONENT_TYPE = 0, HAS_PSEUDO_CLASS_TYPE = 1, ROLE_TYPE = 2, TEST_NAME_TYPE = 3, TEXT_TYPE = 4;
if (typeof Symbol == "function" && Symbol.for) {
var symbolFor = Symbol.for;
COMPONENT_TYPE = symbolFor("selector.component"), HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"), ROLE_TYPE = symbolFor("selector.role"), TEST_NAME_TYPE = symbolFor("selector.test_id"), TEXT_TYPE = symbolFor("selector.text");
}
var commitHooks = [], PossiblyWeakMap = typeof WeakMap == "function" ? WeakMap : Map, NoContext = 0, RenderContext = 2, CommitContext = 4, RootInProgress = 0, RootFatalErrored = 1, RootErrored = 2, RootSuspended = 3, RootSuspendedWithDelay = 4, RootSuspendedAtTheShell = 6, RootCompleted = 5, executionContext = NoContext, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, NotSuspended = 0, SuspendedOnError = 1, SuspendedOnData = 2, SuspendedOnImmediate = 3, SuspendedOnInstance = 4, SuspendedOnInstanceAndReadyToContinue = 5, SuspendedOnDeprecatedThrowPromise = 6, SuspendedAndReadyToContinue = 7, SuspendedOnHydration = 8, SuspendedOnAction = 9, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, workInProgressRootSkippedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0, workInProgressRootPingedLanes = 0, workInProgressDeferredLane = 0, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, globalMostRecentFallbackTime = 0, globalMostRecentTransitionTime = 0, FALLBACK_THROTTLE_MS = 300, workInProgressRootRenderTargetTime = 1 / 0, RENDER_TIMEOUT_MS = 500, workInProgressTransitions = null, workInProgressUpdateTask = null, legacyErrorBoundariesThatAlreadyFailed = null, IMMEDIATE_COMMIT = 0, ABORTED_VIEW_TRANSITION_COMMIT = 1, DELAYED_PASSIVE_COMMIT = 2, ANIMATION_STARTED_COMMIT = 3, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, PENDING_LAYOUT_PHASE = 2, PENDING_AFTER_MUTATION_PHASE = 3, PENDING_SPAWNED_WORK = 4, PENDING_PASSIVE_PHASE = 5, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, pendingEffectsLanes = 0, pendingEffectsRemainingLanes = 0, pendingEffectsRenderEndTime = -0, pendingPassiveTransitions = null, pendingRecoverableErrors = null, pendingSuspendedCommitReason = null, pendingDelayedCommitReason = IMMEDIATE_COMMIT, pendingSuspendedViewTransitionReason = null, NESTED_UPDATE_LIMIT = 50, nestedUpdateCount = 0, rootWithNestedUpdates = null, isFlushingPassiveEffects = !1, didScheduleUpdateDuringPassiveEffects = !1, NESTED_PASSIVE_UPDATE_LIMIT = 50, nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null, isRunningInsertionEffect = !1, didWarnStateUpdateForNotYetMountedComponent = null, didWarnAboutUpdateInRender = !1, didWarnAboutUpdateInRenderForAnotherComponent = /* @__PURE__ */ new Set(), fakeActCallbackNode = {}, resolveFamily = null, failedBoundaries = null, hasBadMapPolyfill = !1;
try {
var nonExtensibleObject = Object.preventExtensions({});
} catch {
hasBadMapPolyfill = !0;
}
var didWarnAboutNestedUpdates = !1, didWarnAboutFindNodeInStrictMode = {}, overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, scheduleRetry = null, setErrorHandler = null, setSuspenseHandler = null;
return overrideHookState = function(fiber, id, path, value) {
id = findHook(fiber, id), id !== null && (path = copyWithSetImpl(id.memoizedState, path, 0, value), id.memoizedState = path, id.baseState = path, fiber.memoizedProps = assign({}, fiber.memoizedProps), path = enqueueConcurrentRenderForLane(fiber, 2), path !== null && scheduleUpdateOnFiber(path, fiber, 2));
}, overrideHookStateDeletePath = function(fiber, id, path) {
id = findHook(fiber, id), id !== null && (path = copyWithDeleteImpl(id.memoizedState, path, 0), id.memoizedState = path, id.baseState = path, fiber.memoizedProps = assign({}, fiber.memoizedProps), path = enqueueConcurrentRenderForLane(fiber, 2), path !== null && scheduleUpdateOnFiber(path, fiber, 2));
}, overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) {
id = findHook(fiber, id), id !== null && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), oldPath !== null && scheduleUpdateOnFiber(oldPath, fiber, 2));
}, overrideProps = function(fiber, path, value) {
fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path, 0, value), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), path = enqueueConcurrentRenderForLane(fiber, 2), path !== null && scheduleUpdateOnFiber(path, fiber, 2);
}, overridePropsDeletePath = function(fiber, path) {
fiber.pendingProps = copyWithDeleteImpl(fiber.memoizedProps, path, 0), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), path = enqueueConcurrentRenderForLane(fiber, 2), path !== null && scheduleUpdateOnFiber(path, fiber, 2);
}, overridePropsRenamePath = function(fiber, oldPath, newPath) {
fiber.pendingProps = copyWithRename(
fiber.memoizedProps,
oldPath,
newPath
), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), oldPath !== null && scheduleUpdateOnFiber(oldPath, fiber, 2);
}, scheduleUpdate = function(fiber) {
var root = enqueueConcurrentRenderForLane(fiber, 2);
root !== null && scheduleUpdateOnFiber(root, fiber, 2);
}, scheduleRetry = function(fiber) {
var lane = claimNextRetryLane(), root = enqueueConcurrentRenderForLane(fiber, lane);
root !== null && scheduleUpdateOnFiber(root, fiber, lane);
}, setErrorHandler = function(newShouldErrorImpl) {
shouldErrorImpl = newShouldErrorImpl;
}, setSuspenseHandler = function(newShouldSuspendImpl) {
shouldSuspendImpl = newShouldSuspendImpl;
}, exports2.attemptContinuousHydration = function(fiber) {
if (fiber.tag === 13 || fiber.tag === 31) {
var root = enqueueConcurrentRenderForLane(fiber, 67108864);
root !== null && scheduleUpdateOnFiber(root, fiber, 67108864), markRetryLaneIfNotHydrated(fiber, 67108864);
}
}, exports2.attemptHydrationAtCurrentPriority = function(fiber) {
if (fiber.tag === 13 || fiber.tag === 31) {
var lane = requestUpdateLane(fiber);
lane = getBumpedLaneForHydrationByLane(lane);
var root = enqueueConcurrentRenderForLane(fiber, lane);
root !== null && scheduleUpdateOnFiber(root, fiber, lane), markRetryLaneIfNotHydrated(fiber, lane);
}
}, exports2.attemptSynchronousHydration = function(fiber) {
switch (fiber.tag) {
case 3:
if (fiber = fiber.stateNode, fiber.current.memoizedState.isDehydrated) {
var lanes = getHighestPriorityLanes(fiber.pendingLanes);
if (lanes !== 0) {
for (fiber.pendingLanes |= 2, fiber.entangledLanes |= 2; lanes; ) {
var lane = 1 << 31 - clz32(lanes);
fiber.entanglements[1] |= lane, lanes &= ~lane;
}
ensureRootIsScheduled(fiber), (executionContext & (RenderContext | CommitContext)) === NoContext && (workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS, flushSyncWorkAcrossRoots_impl(0, !1));
}
}
break;
case 31:
case 13:
lanes = enqueueConcurrentRenderForLane(fiber, 2), lanes !== null && scheduleUpdateOnFiber(lanes, fiber, 2), flushSyncWork(), markRetryLaneIfNotHydrated(fiber, 2);
}
}, exports2.batchedUpdates = function(fn, a) {
return fn(a);
}, exports2.createComponentSelector = function(component) {
return { $$typeof: COMPONENT_TYPE, value: component };
}, exports2.createContainer = function(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator) {
return createFiberRoot(
containerInfo,
tag,
!1,
null,
hydrationCallbacks,
isStrictMode,
identifierPrefix,
null,
onUncaughtError,
onCaughtError,
onRecoverableError,
onDefaultTransitionIndicator
);
}, exports2.createHasPseudoClassSelector = function(selectors) {
return { $$typeof: HAS_PSEUDO_CLASS_TYPE, value: selectors };
}, exports2.createHydrationContainer = function(initialChildren, callback, containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, transitionCallbacks, formState) {
return initialChildren = createFiberRoot(
containerInfo,
tag,
!0,
initialChildren,
hydrationCallbacks,
isStrictMode,
identifierPrefix,
formState,
onUncaughtError,
onCaughtError,
onRecoverableError,
onDefaultTransitionIndicator
), initialChildren.context = getContextForSubtree(null), containerInfo = initialChildren.current, tag = requestUpdateLane(containerInfo), tag = getBumpedLaneForHydrationByLane(tag), hydrationCallbacks = createUpdate(tag), hydrationCallbacks.callback = callback ?? null, enqueueUpdate(containerInfo, hydrationCallbacks, tag), startUpdateTimerByLane(tag, "hydrateRoot()", null), callback = tag, initialChildren.current.lanes = callback, markRootUpdated$1(initialChildren, callback), ensureRootIsScheduled(initialChildren), initialChildren;
}, exports2.createPortal = function(children, containerInfo, implementation) {
var key = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
try {
testStringCoercion(key);
var JSCompiler_inline_result = !1;
} catch {
JSCompiler_inline_result = !0;
}
return JSCompiler_inline_result && (console.error(
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
typeof Symbol == "function" && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
), testStringCoercion(key)), {
$$typeof: REACT_PORTAL_TYPE,
key: key == null ? null : "" + key,
children,
containerInfo,
implementation
};
}, exports2.createRoleSelector = function(role) {
return { $$typeof: ROLE_TYPE, value: role };
}, exports2.createTestNameSelector = function(id) {
return { $$typeof: TEST_NAME_TYPE, value: id };
}, exports2.createTextSelector = function(text) {
return { $$typeof: TEXT_TYPE, value: text };
}, exports2.defaultOnCaughtError = function(error) {
var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component." : "The above error occurred in one of your React components.", recreateMessage = "React will try to recreate this component tree from scratch using the error boundary you provided, " + ((errorBoundaryName || "Anonymous") + ".");
typeof error == "object" && error !== null && typeof error.environmentName == "string" ? bindToConsole(
"error",
[`%o
%s
%s
`, error, componentNameMessage, recreateMessage],
error.environmentName
)() : console.error(
`%o
%s
%s
`,
error,
componentNameMessage,
recreateMessage
);
}, exports2.defaultOnRecoverableError = function(error) {
reportGlobalError(error);
}, exports2.defaultOnUncaughtError = function(error) {
reportGlobalError(error), console.warn(
`%s
%s
`,
componentName ? "An error occurred in the <" + componentName + "> component." : "An error occurred in one of your React components.",
`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`
);
}, exports2.deferredUpdates = function(fn) {
var prevTransition = ReactSharedInternals.T, previousPriority = getCurrentUpdatePriority();
try {
return setCurrentUpdatePriority(32), ReactSharedInternals.T = null, fn();
} finally {
setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = prevTransition;
}
}, exports2.discreteUpdates = function(fn, a, b, c, d) {
var prevTransition = ReactSharedInternals.T, previousPriority = getCurrentUpdatePriority();
try {
return setCurrentUpdatePriority(2), ReactSharedInternals.T = null, fn(a, b, c, d);
} finally {
setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = prevTransition, executionContext === NoContext && (workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS);
}
}, exports2.findAllNodes = findAllNodes, exports2.findBoundingRects = function(hostRoot, selectors) {
if (!supportsTestSelectors)
throw Error("Test selector API is not supported by this renderer.");
selectors = findAllNodes(hostRoot, selectors), hostRoot = [];
for (var i = 0; i < selectors.length; i++)
hostRoot.push(getBoundingRect(selectors[i]));
for (selectors = hostRoot.length - 1; 0 < selectors; selectors--) {
i = hostRoot[selectors];
for (var targetLeft = i.x, targetRight = targetLeft + i.width, targetTop = i.y, targetBottom = targetTop + i.height, j = selectors - 1; 0 <= j; j--)
if (selectors !== j) {
var otherRect = hostRoot[j], otherLeft = otherRect.x, otherRight = otherLeft + otherRect.width, otherTop = otherRect.y, otherBottom = otherTop + otherRect.height;
if (targetLeft >= otherLeft && targetTop >= otherTop && targetRight <= otherRight && targetBottom <= otherBottom) {
hostRoot.splice(selectors, 1);
break;
} else if (targetLeft !== otherLeft || i.width !== otherRect.width || otherBottom < targetTop || otherTop > targetBottom) {
if (!(targetTop !== otherTop || i.height !== otherRect.height || otherRight < targetLeft || otherLeft > targetRight)) {
otherLeft > targetLeft && (otherRect.width += otherLeft - targetLeft, otherRect.x = targetLeft), otherRight < targetRight && (otherRect.width = targetRight - otherLeft), hostRoot.splice(selectors, 1);
break;
}
} else {
otherTop > targetTop && (otherRect.height += otherTop - targetTop, otherRect.y = targetTop), otherBottom < targetBottom && (otherRect.height = targetBottom - otherTop), hostRoot.splice(selectors, 1);
break;
}
}
}
return hostRoot;
}, exports2.findHostInstance = function(component) {
var fiber = component._reactInternals;
if (fiber === void 0)
throw typeof component.render == "function" ? Error("Unable to find node on an unmounted component.") : (component = Object.keys(component).join(","), Error(
"Argument appears to not be a ReactComponent. Keys: " + component
));
return component = findCurrentHostFiber(fiber), component === null ? null : getPublicInstance(component.stateNode);
}, exports2.findHostInstanceWithNoPortals = function(fiber) {
return fiber = findCurrentFiberUsingSlowPath(fiber), fiber = fiber !== null ? findCurrentHostFiberWithNoPortalsImpl(fiber) : null, fiber === null ? null : getPublicInstance(fiber.stateNode);
}, exports2.findHostInstanceWithWarning = function(component, methodName) {
var fiber = component._reactInternals;
if (fiber === void 0)
throw typeof component.render == "function" ? Error("Unable to find node on an unmounted component.") : (component = Object.keys(component).join(","), Error(
"Argument appears to not be a ReactComponent. Keys: " + component
));
if (component = findCurrentHostFiber(fiber), component === null) return null;
if (component.mode & 8) {
var componentName2 = getComponentNameFromFiber(fiber) || "Component";
didWarnAboutFindNodeInStrictMode[componentName2] || (didWarnAboutFindNodeInStrictMode[componentName2] = !0, runWithFiberInDEV(component, function() {
fiber.mode & 8 ? console.error(
"%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",
methodName,
methodName,
componentName2
) : console.error(
"%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",
methodName,
methodName,
componentName2
);
}));
}
return getPublicInstance(component.stateNode);
}, exports2.flushPassiveEffects = flushPendingEffects, exports2.flushSyncFromReconciler = function(fn) {
var prevExecutionContext = executionContext;
executionContext |= 1;
var prevTransition = ReactSharedInternals.T, previousPriority = getCurrentUpdatePriority();
try {
if (setCurrentUpdatePriority(2), ReactSharedInternals.T = null, fn)
return fn();
} finally {
setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = prevTransition, executionContext = prevExecutionContext, (executionContext & (RenderContext | CommitContext)) === NoContext && flushSyncWorkAcrossRoots_impl(0, !1);
}
}, exports2.flushSyncWork = flushSyncWork, exports2.focusWithin = function(hostRoot, selectors) {
if (!supportsTestSelectors)
throw Error("Test selector API is not supported by this renderer.");
for (hostRoot = findFiberRootForHostRoot(hostRoot), selectors = findPaths(hostRoot, selectors), selectors = Array.from(selectors), hostRoot = 0; hostRoot < selectors.length; ) {
var fiber = selectors[hostRoot++], tag = fiber.tag;
if (!isHiddenSubtree(fiber)) {
if ((tag === 5 || tag === 26 || tag === 27) && setFocusIfFocusable(fiber.stateNode))
return !0;
for (fiber = fiber.child; fiber !== null; )
selectors.push(fiber), fiber = fiber.sibling;
}
}
return !1;
}, exports2.getFindAllNodesFailureDescription = function(hostRoot, selectors) {
if (!supportsTestSelectors)
throw Error("Test selector API is not supported by this renderer.");
var maxSelectorIndex = 0, matchedNames = [];
hostRoot = [findFiberRootForHostRoot(hostRoot), 0];
for (var index = 0; index < hostRoot.length; ) {
var fiber = hostRoot[index++], tag = fiber.tag, selectorIndex = hostRoot[index++], selector = selectors[selectorIndex];
if ((tag !== 5 && tag !== 26 && tag !== 27 || !isHiddenSubtree(fiber)) && (matchSelector(fiber, selector) && (matchedNames.push(selectorToString(selector)), selectorIndex++, selectorIndex > maxSelectorIndex && (maxSelectorIndex = selectorIndex)), selectorIndex < selectors.length))
for (fiber = fiber.child; fiber !== null; )
hostRoot.push(fiber, selectorIndex), fiber = fiber.sibling;
}
if (maxSelectorIndex < selectors.length) {
for (hostRoot = []; maxSelectorIndex < selectors.length; maxSelectorIndex++)
hostRoot.push(selectorToString(selectors[maxSelectorIndex]));
return `findAllNodes was able to match part of the selector:
` + (matchedNames.join(" > ") + `
No matching component was found for:
`) + hostRoot.join(" > ");
}
return null;
}, exports2.getPublicRootInstance = function(container) {
if (container = container.current, !container.child) return null;
switch (container.child.tag) {
case 27:
case 5:
return getPublicInstance(container.child.stateNode);
default:
return container.child.stateNode;
}
}, exports2.injectIntoDevTools = function() {
var internals = {
bundleType: 1,
version: rendererVersion,
rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0"
};
return extraDevToolsConfig !== null && (internals.rendererConfig = extraDevToolsConfig), internals.overrideHookState = overrideHookState, internals.overrideHookStateDeletePath = overrideHookStateDeletePath, internals.overrideHookStateRenamePath = overrideHookStateRenamePath, internals.overrideProps = overrideProps, internals.overridePropsDeletePath = overridePropsDeletePath, internals.overridePropsRenamePath = overridePropsRenamePath, internals.scheduleUpdate = scheduleUpdate, internals.scheduleRetry = scheduleRetry, internals.setErrorHandler = setErrorHandler, internals.setSuspenseHandler = setSuspenseHandler, internals.scheduleRefresh = scheduleRefresh, internals.scheduleRoot = scheduleRoot, internals.setRefreshHandler = setRefreshHandler, internals.getCurrentFiber = getCurrentFiberForDevTools, injectInternals(internals);
}, exports2.isAlreadyRendering = isAlreadyRendering, exports2.observeVisibleRects = function(hostRoot, selectors, callback, options) {
function commitHook() {
var nextInstanceRoots = findAllNodes(hostRoot, selectors);
instanceRoots.forEach(function(target) {
0 > nextInstanceRoots.indexOf(target) && unobserve(target);
}), nextInstanceRoots.forEach(function(target) {
0 > instanceRoots.indexOf(target) && observe(target);
});
}
if (!supportsTestSelectors)
throw Error("Test selector API is not supported by this renderer.");
var instanceRoots = findAllNodes(hostRoot, selectors);
callback = setupIntersectionObserver(instanceRoots, callback, options);
var disconnect = callback.disconnect, observe = callback.observe, unobserve = callback.unobserve;
return commitHooks.push(commitHook), {
disconnect: function() {
var index = commitHooks.indexOf(commitHook);
0 <= index && commitHooks.splice(index, 1), disconnect();
}
};
}, exports2.shouldError = function(fiber) {
return shouldErrorImpl(fiber);
}, exports2.shouldSuspend = function(fiber) {
return shouldSuspendImpl(fiber);
}, exports2.startHostTransition = function(formFiber, pendingState, action, formData) {
if (formFiber.tag !== 5)
throw Error(
"Expected the form instance to be a HostComponent. This is a bug in React."
);
var queue = ensureFormComponentIsStateful(formFiber).queue;
startHostActionTimer(formFiber), startTransition(
formFiber,
queue,
pendingState,
NotPendingTransition,
action === null ? noop4 : function() {
ReactSharedInternals.T === null && console.error(
"requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition."
);
var stateHook = ensureFormComponentIsStateful(formFiber);
return stateHook.next === null && (stateHook = formFiber.alternate.memoizedState), dispatchSetStateInternal(
formFiber,
stateHook.next.queue,
{},
requestUpdateLane(formFiber)
), action(formData);
}
);
}, exports2.updateContainer = function(element, container, parentComponent, callback) {
var current2 = container.current, lane = requestUpdateLane(current2);
return updateContainerImpl(
current2,
lane,
element,
container,
parentComponent,
callback
), lane;
}, exports2.updateContainerSync = updateContainerSync, exports2;
}, module.exports.default = module.exports, Object.defineProperty(module.exports, "__esModule", { value: !0 }));
}
});
// ../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/index.js
var require_react_reconciler = __commonJS({
"../../node_modules/.pnpm/react-reconciler@0.33.0_react@19.2.4/node_modules/react-reconciler/index.js"(exports, module) {
"use strict";
init_cjs_shims();
process.env.NODE_ENV === "production" ? module.exports = require_react_reconciler_production() : module.exports = require_react_reconciler_development();
}
});
// ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json
var require_boxes = __commonJS({
"../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json"(exports, module) {
module.exports = {
single: {
topLeft: "\u250C",
top: "\u2500",
topRight: "\u2510",
right: "\u2502",
bottomRight: "\u2518",
bottom: "\u2500",
bottomLeft: "\u2514",
left: "\u2502"
},
double: {
topLeft: "\u2554",
top: "\u2550",
topRight: "\u2557",
right: "\u2551",
bottomRight: "\u255D",
bottom: "\u2550",
bottomLeft: "\u255A",
left: "\u2551"
},
round: {
topLeft: "\u256D",
top: "\u2500",
topRight: "\u256E",
right: "\u2502",
bottomRight: "\u256F",
bottom: "\u2500",
bottomLeft: "\u2570",
left: "\u2502"
},
bold: {
topLeft: "\u250F",
top: "\u2501",
topRight: "\u2513",
right: "\u2503",
bottomRight: "\u251B",
bottom: "\u2501",
bottomLeft: "\u2517",
left: "\u2503"
},
singleDouble: {
topLeft: "\u2553",
top: "\u2500",
topRight: "\u2556",
right: "\u2551",
bottomRight: "\u255C",
bottom: "\u2500",
bottomLeft: "\u2559",
left: "\u2551"
},
doubleSingle: {
topLeft: "\u2552",
top: "\u2550",
topRight: "\u2555",
right: "\u2502",
bottomRight: "\u255B",
bottom: "\u2550",
bottomLeft: "\u2558",
left: "\u2502"
},
classic: {
topLeft: "+",
top: "-",
topRight: "+",
right: "|",
bottomRight: "+",
bottom: "-",
bottomLeft: "+",
left: "|"
},
arrow: {
topLeft: "\u2198",
top: "\u2193",
topRight: "\u2199",
right: "\u2190",
bottomRight: "\u2196",
bottom: "\u2191",
bottomLeft: "\u2197",
left: "\u2192"
}
};
}
});
// ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js
var require_cli_boxes = __commonJS({
"../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var cliBoxes2 = require_boxes();
module.exports = cliBoxes2;
module.exports.default = cliBoxes2;
}
});
// ../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js
var require_mimic_fn = __commonJS({
"../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var mimicFn = (to, from) => {
for (let prop of Reflect.ownKeys(from))
Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
return to;
};
module.exports = mimicFn;
module.exports.default = mimicFn;
}
});
// ../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js
var require_onetime = __commonJS({
"../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var mimicFn = require_mimic_fn(), calledFunctions = /* @__PURE__ */ new WeakMap(), onetime2 = (function_, options = {}) => {
if (typeof function_ != "function")
throw new TypeError("Expected a function");
let returnValue, callCount = 0, functionName = function_.displayName || function_.name || "<anonymous>", onetime3 = function(...arguments_) {
if (calledFunctions.set(onetime3, ++callCount), callCount === 1)
returnValue = function_.apply(this, arguments_), function_ = null;
else if (options.throw === !0)
throw new Error(`Function \`${functionName}\` can only be called once`);
return returnValue;
};
return mimicFn(onetime3, function_), calledFunctions.set(onetime3, callCount), onetime3;
};
module.exports = onetime2;
module.exports.default = onetime2;
module.exports.callCount = (function_) => {
if (!calledFunctions.has(function_))
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
return calledFunctions.get(function_);
};
}
});
// ../../node_modules/.pnpm/escape-string-regexp@2.0.0/node_modules/escape-string-regexp/index.js
var require_escape_string_regexp = __commonJS({
"../../node_modules/.pnpm/escape-string-regexp@2.0.0/node_modules/escape-string-regexp/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var matchOperatorsRegex = /[|\\{}()[\]^$+*?.-]/g;
module.exports = (string) => {
if (typeof string != "string")
throw new TypeError("Expected a string");
return string.replace(matchOperatorsRegex, "\\$&");
};
}
});
// ../../node_modules/.pnpm/stack-utils@2.0.6/node_modules/stack-utils/index.js
var require_stack_utils = __commonJS({
"../../node_modules/.pnpm/stack-utils@2.0.6/node_modules/stack-utils/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var escapeStringRegexp2 = require_escape_string_regexp(), cwd3 = typeof process == "object" && process && typeof process.cwd == "function" ? process.cwd() : ".", natives = [].concat(
__require("module").builtinModules,
"bootstrap_node",
"node"
).map((n) => new RegExp(`(?:\\((?:node:)?${n}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${n}(?:\\.js)?:\\d+:\\d+$)`));
natives.push(
/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,
/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,
/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/
);
var StackUtils2 = class _StackUtils {
constructor(opts) {
opts = {
ignoredPackages: [],
...opts
}, "internals" in opts || (opts.internals = _StackUtils.nodeInternals()), "cwd" in opts || (opts.cwd = cwd3), this._cwd = opts.cwd.replace(/\\/g, "/"), this._internals = [].concat(
opts.internals,
ignoredPackagesRegExp(opts.ignoredPackages)
), this._wrapCallSite = opts.wrapCallSite || !1;
}
static nodeInternals() {
return [...natives];
}
clean(stack, indent = 0) {
indent = " ".repeat(indent), Array.isArray(stack) || (stack = stack.split(`
`)), !/^\s*at /.test(stack[0]) && /^\s*at /.test(stack[1]) && (stack = stack.slice(1));
let outdent = !1, lastNonAtLine = null, result = [];
return stack.forEach((st) => {
if (st = st.replace(/\\/g, "/"), this._internals.some((internal) => internal.test(st)))
return;
let isAtLine = /^\s*at /.test(st);
outdent ? st = st.trimEnd().replace(/^(\s+)at /, "$1") : (st = st.trim(), isAtLine && (st = st.slice(3))), st = st.replace(`${this._cwd}/`, ""), st && (isAtLine ? (lastNonAtLine && (result.push(lastNonAtLine), lastNonAtLine = null), result.push(st)) : (outdent = !0, lastNonAtLine = st));
}), result.map((line) => `${indent}${line}
`).join("");
}
captureString(limit, fn = this.captureString) {
typeof limit == "function" && (fn = limit, limit = 1 / 0);
let { stackTraceLimit } = Error;
limit && (Error.stackTraceLimit = limit);
let obj = {};
Error.captureStackTrace(obj, fn);
let { stack } = obj;
return Error.stackTraceLimit = stackTraceLimit, this.clean(stack);
}
capture(limit, fn = this.capture) {
typeof limit == "function" && (fn = limit, limit = 1 / 0);
let { prepareStackTrace, stackTraceLimit } = Error;
Error.prepareStackTrace = (obj2, site) => this._wrapCallSite ? site.map(this._wrapCallSite) : site, limit && (Error.stackTraceLimit = limit);
let obj = {};
Error.captureStackTrace(obj, fn);
let { stack } = obj;
return Object.assign(Error, { prepareStackTrace, stackTraceLimit }), stack;
}
at(fn = this.at) {
let [site] = this.capture(1, fn);
if (!site)
return {};
let res = {
line: site.getLineNumber(),
column: site.getColumnNumber()
};
setFile(res, site.getFileName(), this._cwd), site.isConstructor() && Object.defineProperty(res, "constructor", {
value: !0,
configurable: !0
}), site.isEval() && (res.evalOrigin = site.getEvalOrigin()), site.isNative() && (res.native = !0);
let typename;
try {
typename = site.getTypeName();
} catch {
}
typename && typename !== "Object" && typename !== "[object Object]" && (res.type = typename);
let fname = site.getFunctionName();
fname && (res.function = fname);
let meth = site.getMethodName();
return meth && fname !== meth && (res.method = meth), res;
}
parseLine(line) {
let match = line && line.match(re);
if (!match)
return null;
let ctor = match[1] === "new", fname = match[2], evalOrigin = match[3], evalFile = match[4], evalLine = Number(match[5]), evalCol = Number(match[6]), file = match[7], lnum = match[8], col = match[9], native = match[10] === "native", closeParen = match[11] === ")", method, res = {};
if (lnum && (res.line = Number(lnum)), col && (res.column = Number(col)), closeParen && file) {
let closes = 0;
for (let i = file.length - 1; i > 0; i--)
if (file.charAt(i) === ")")
closes++;
else if (file.charAt(i) === "(" && file.charAt(i - 1) === " " && (closes--, closes === -1 && file.charAt(i - 1) === " ")) {
let before = file.slice(0, i - 1);
file = file.slice(i + 1), fname += ` (${before}`;
break;
}
}
if (fname) {
let methodMatch = fname.match(methodRe);
methodMatch && (fname = methodMatch[1], method = methodMatch[2]);
}
return setFile(res, file, this._cwd), ctor && Object.defineProperty(res, "constructor", {
value: !0,
configurable: !0
}), evalOrigin && (res.evalOrigin = evalOrigin, res.evalLine = evalLine, res.evalColumn = evalCol, res.evalFile = evalFile && evalFile.replace(/\\/g, "/")), native && (res.native = !0), fname && (res.function = fname), method && fname !== method && (res.method = method), res;
}
};
function setFile(result, filename, cwd4) {
filename && (filename = filename.replace(/\\/g, "/"), filename.startsWith(`${cwd4}/`) && (filename = filename.slice(cwd4.length + 1)), result.file = filename);
}
function ignoredPackagesRegExp(ignoredPackages) {
if (ignoredPackages.length === 0)
return [];
let packages = ignoredPackages.map((mod) => escapeStringRegexp2(mod));
return new RegExp(`[/\\\\]node_modules[/\\\\](?:${packages.join("|")})[/\\\\][^:]+:\\d+:\\d+`);
}
var re = new RegExp(
"^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"
), methodRe = /^(.*?) \[as (.*?)\]$/;
module.exports = StackUtils2;
}
});
// ../../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/SyncPromise.js
var require_SyncPromise = __commonJS({
"../../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/SyncPromise.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = class SyncPromise {
constructor(fn) {
try {
fn(
(x) => {
this.setValue(x, !1);
},
// resolve
(x) => {
this.setValue(x, !0);
}
// reject
);
} catch (e) {
this.setValue(e, !0);
}
}
setValue(x, rejected) {
this.val = x instanceof SyncPromise ? x.val : x, this.rejected = rejected || (x instanceof SyncPromise ? x.rejected : !1);
}
static valueFrom(x) {
if (x instanceof SyncPromise) {
if (x.rejected) throw x.val;
return x.val;
} else
return x;
}
then(fn) {
try {
if (!this.rejected) return SyncPromise.resolve(fn(this.val));
} catch (e) {
return SyncPromise.reject(e);
}
return this;
}
catch(fn) {
try {
if (this.rejected) return SyncPromise.resolve(fn(this.val));
} catch (e) {
return SyncPromise.reject(e);
}
return this;
}
static resolve(x) {
return new SyncPromise((resolve) => {
resolve(x);
});
}
static reject(x) {
return new SyncPromise((_, reject) => {
reject(x);
});
}
};
}
});
// ../../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js
var require_path = __commonJS({
"../../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js"(exports, module) {
"use strict";
init_cjs_shims();
var isBrowser2 = typeof window < "u" && window.window === window && window.navigator, cwd3 = isBrowser2 ? window.location.href : process.cwd(), urlRegexp = new RegExp("^((https|http)://)?[a-z0-9A-Z]{3}.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z].com|net|cn|cc (:s[0-9]{1-4})?/$"), path = module.exports = {
concat(a, b) {
let a_endsWithSlash = a[a.length - 1] === "/", b_startsWithSlash = b[0] === "/";
return a + (a_endsWithSlash || b_startsWithSlash ? "" : "/") + (a_endsWithSlash && b_startsWithSlash ? b.substring(1) : b);
},
resolve(x) {
return path.isAbsolute(x) ? path.normalize(x) : path.normalize(path.concat(cwd3, x));
},
normalize(x) {
let output2 = [], skip = 0;
x.split("/").reverse().filter((x2) => x2 !== ".").forEach((x2) => {
x2 === ".." ? skip++ : skip === 0 ? output2.push(x2) : skip--;
});
let result = output2.reverse().join("/");
return (isBrowser2 && result[0] === "/" ? result[1] === "/" ? window.location.protocol : window.location.origin : "") + result;
},
isData: (x) => x.indexOf("data:") === 0,
isURL: (x) => urlRegexp.test(x),
isAbsolute: (x) => x[0] === "/" || /^[^\/]*:/.test(x),
relativeToFile(a, b) {
return path.isData(a) || path.isAbsolute(b) ? path.normalize(b) : path.normalize(path.concat(a.split("/").slice(0, -1).join("/"), b));
}
};
}
});
// ../../node_modules/.pnpm/data-uri-to-buffer@2.0.2/node_modules/data-uri-to-buffer/index.js
var require_data_uri_to_buffer = __commonJS({
"../../node_modules/.pnpm/data-uri-to-buffer@2.0.2/node_modules/data-uri-to-buffer/index.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = dataUriToBuffer;
function dataUriToBuffer(uri) {
if (!/^data\:/i.test(uri))
throw new TypeError(
'`uri` does not appear to be a Data URI (must begin with "data:")'
);
uri = uri.replace(/\r?\n/g, "");
var firstComma = uri.indexOf(",");
if (firstComma === -1 || firstComma <= 4)
throw new TypeError("malformed data: URI");
for (var meta = uri.substring(5, firstComma).split(";"), type = meta[0] || "text/plain", typeFull = type, base64 = !1, charset = "", i = 1; i < meta.length; i++)
meta[i] == "base64" ? base64 = !0 : (typeFull += ";" + meta[i], meta[i].indexOf("charset=") == 0 && (charset = meta[i].substring(8)));
!meta[0] && !charset.length && (typeFull += ";charset=US-ASCII", charset = "US-ASCII");
var data = unescape(uri.substring(firstComma + 1)), encoding = base64 ? "base64" : "ascii", buffer = Buffer.from ? Buffer.from(data, encoding) : new Buffer(data, encoding);
return buffer.type = type, buffer.typeFull = typeFull, buffer.charset = charset, buffer;
}
}
});
// ../../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js
var require_get_source = __commonJS({
"../../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js"(exports, module) {
"use strict";
init_cjs_shims();
var { assign } = Object, isBrowser2 = typeof window < "u" && window.window === window && window.navigator, SourceMapConsumer = require_source_map().SourceMapConsumer, SyncPromise = require_SyncPromise(), path = require_path(), dataURIToBuffer = require_data_uri_to_buffer(), nodeRequire = isBrowser2 ? null : module.require, memoize = (f) => {
let m = (x) => x in m.cache ? m.cache[x] : m.cache[x] = f(x);
return m.forgetEverything = () => {
m.cache = /* @__PURE__ */ Object.create(null);
}, m.cache = /* @__PURE__ */ Object.create(null), m;
};
function impl(fetchFile, sync) {
let PromiseImpl = sync ? SyncPromise : Promise, SourceFileMemoized = memoize((path2) => SourceFile(path2, fetchFile(path2)));
function SourceFile(srcPath, text) {
return text === void 0 ? SourceFileMemoized(path.resolve(srcPath)) : PromiseImpl.resolve(text).then((text2) => {
let file, lines, resolver, _resolve = (loc) => (resolver = resolver || SourceMapResolverFromFetchedFile(file))(loc);
return file = {
path: srcPath,
text: text2,
get lines() {
return lines = lines || text2.split(`
`);
},
resolve(loc) {
let result = _resolve(loc);
if (sync)
try {
return SyncPromise.valueFrom(result);
} catch (e) {
return assign({}, loc, { error: e });
}
else
return Promise.resolve(result);
},
_resolve
};
});
}
function SourceMapResolverFromFetchedFile(file) {
let re = /\u0023 sourceMappingURL=(.+)\n?/g, lastMatch;
for (; ; ) {
let match = re.exec(file.text);
if (match) lastMatch = match;
else break;
}
let url = lastMatch && lastMatch[1], defaultResolver = (loc) => assign({}, loc, {
sourceFile: file,
sourceLine: file.lines[loc.line - 1] || ""
});
return url ? SourceMapResolver(file.path, url, defaultResolver) : defaultResolver;
}
function SourceMapResolver(originalFilePath, sourceMapPath, fallbackResolve) {
let srcFile = sourceMapPath.startsWith("data:") ? SourceFile(originalFilePath, dataURIToBuffer(sourceMapPath).toString()) : SourceFile(path.relativeToFile(originalFilePath, sourceMapPath)), parsedMap = srcFile.then((f) => SourceMapConsumer(JSON.parse(f.text))), sourceFor = memoize(function(filePath) {
return srcFile.then((f) => {
let fullPath = path.relativeToFile(f.path, filePath);
return parsedMap.then((x) => SourceFile(
fullPath,
x.sourceContentFor(
filePath,
!0
/* return null on missing */
) || void 0
));
});
});
return (loc) => parsedMap.then((x) => {
let originalLoc = x.originalPositionFor(loc);
return originalLoc.source ? sourceFor(originalLoc.source).then(
(x2) => x2._resolve(assign({}, loc, {
line: originalLoc.line,
column: originalLoc.column + 1,
name: originalLoc.name
}))
) : fallbackResolve(loc);
}).catch((e) => assign(fallbackResolve(loc), { sourceMapError: e }));
}
return assign(function(path2) {
let file = SourceFile(path2);
if (sync)
try {
return SyncPromise.valueFrom(file);
} catch (e) {
let noFile = {
path: path2,
text: "",
lines: [],
error: e,
resolve(loc) {
return assign({}, loc, { error: e, sourceLine: "", sourceFile: noFile });
}
};
return noFile;
}
return file;
}, {
resetCache: () => SourceFileMemoized.forgetEverything(),
getCache: () => SourceFileMemoized.cache
});
}
module.exports = impl(function(path2) {
return new SyncPromise((resolve) => {
if (isBrowser2) {
let xhr = new XMLHttpRequest();
xhr.open(
"GET",
path2,
!1
/* SYNCHRONOUS XHR FTW :) */
), xhr.send(null), resolve(xhr.responseText);
} else
resolve(nodeRequire("fs").readFileSync(path2, { encoding: "utf8" }));
});
}, !0);
module.exports.async = impl(function(path2) {
return new Promise((resolve, reject) => {
if (isBrowser2) {
let xhr = new XMLHttpRequest();
xhr.open("GET", path2), xhr.onreadystatechange = (event) => {
xhr.readyState === 4 && (xhr.status === 200 ? resolve(xhr.responseText) : reject(new Error(xhr.statusText)));
}, xhr.send(null);
} else
nodeRequire("fs").readFile(path2, { encoding: "utf8" }, (e, x) => {
e ? reject(e) : resolve(x);
});
});
});
}
});
// ../../node_modules/.pnpm/stacktracey@2.2.0/node_modules/stacktracey/impl/partition.js
var require_partition = __commonJS({
"../../node_modules/.pnpm/stacktracey@2.2.0/node_modules/stacktracey/impl/partition.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = (arr_, pred) => {
let arr = arr_ || [], spans = [], span = {
label: void 0,
items: [arr.first]
};
return arr.forEach((x) => {
let label = pred(x);
span.label !== label && span.items.length ? spans.push(span = { label, items: [x] }) : span.items.push(x);
}), spans;
};
}
});
// ../../node_modules/.pnpm/printable-characters@1.0.42/node_modules/printable-characters/build/printable-characters.js
var require_printable_characters = __commonJS({
"../../node_modules/.pnpm/printable-characters@1.0.42/node_modules/printable-characters/build/printable-characters.js"(exports, module) {
"use strict";
init_cjs_shims();
var _slicedToArray = /* @__PURE__ */ (function() {
function sliceIterator(arr, i) {
var _arr = [], _n = !0, _d = !1, _e = void 0;
try {
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
;
} catch (err) {
_d = !0, _e = err;
} finally {
try {
!_n && _i.return && _i.return();
} finally {
if (_d) throw _e;
}
}
return _arr;
}
return function(arr, i) {
if (Array.isArray(arr))
return arr;
if (Symbol.iterator in Object(arr))
return sliceIterator(arr, i);
throw new TypeError("Invalid attempt to destructure non-iterable instance");
};
})(), ansiEscapeCode = "[\x1B\x9B][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]", zeroWidthCharacterExceptNewline = "\0-\b\v-\x1B\x9B\xAD\u200B\u2028\u2029\uFEFF\uFE00-\uFE0F", zeroWidthCharacter = `
` + zeroWidthCharacterExceptNewline, zeroWidthCharactersExceptNewline = new RegExp("(?:" + ansiEscapeCode + ")|[" + zeroWidthCharacterExceptNewline + "]", "g"), zeroWidthCharacters = new RegExp("(?:" + ansiEscapeCode + ")|[" + zeroWidthCharacter + "]", "g"), partition = new RegExp("((?:" + ansiEscapeCode + ")|[ " + zeroWidthCharacter + "])?([^ " + zeroWidthCharacter + "]*)", "g");
module.exports = {
zeroWidthCharacters,
ansiEscapeCodes: new RegExp(ansiEscapeCode, "g"),
strlen: (s) => Array.from(s.replace(zeroWidthCharacters, "")).length,
// Array.from solves the emoji problem as described here: http://blog.jonnew.com/posts/poo-dot-length-equals-two
isBlank: (s) => s.replace(zeroWidthCharacters, "").replace(/\s/g, "").length === 0,
blank: (s) => Array.from(s.replace(zeroWidthCharactersExceptNewline, "")).map((x) => x === " " || x === `
` ? x : " ").join(""),
partition(s) {
for (var m, spans = []; partition.lastIndex !== s.length && (m = partition.exec(s)); )
spans.push([m[1] || "", m[2]]);
return partition.lastIndex = 0, spans;
},
first(s, n) {
let result = "", length = 0;
for (let _ref of module.exports.partition(s)) {
var _ref2 = _slicedToArray(_ref, 2);
let nonPrintable = _ref2[0], printable = _ref2[1], text = Array.from(printable).slice(0, n - length);
result += nonPrintable + text.join(""), length += text.length;
}
return result;
}
};
}
});
// ../../node_modules/.pnpm/as-table@1.0.55/node_modules/as-table/build/as-table.js
var require_as_table = __commonJS({
"../../node_modules/.pnpm/as-table@1.0.55/node_modules/as-table/build/as-table.js"(exports, module) {
"use strict";
init_cjs_shims();
function _toConsumableArray(arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
return arr2;
} else
return Array.from(arr);
}
var O = Object, _require = require_printable_characters(), first = _require.first, strlen = _require.strlen, limit = (s, n) => first(s, n - 1) + "\u2026", asColumns = (rows, cfg_) => {
let zip = (arrs, f) => arrs.reduce((a, b) => b.map((b2, i) => [].concat(_toConsumableArray(a[i] || []), [b2])), []).map((args) => f.apply(void 0, _toConsumableArray(args))), cells = rows.map((r) => r.map((c) => c.replace(/\n/g, "\\n"))), cellWidths = cells.map((r) => r.map(strlen)), maxWidths = zip(cellWidths, Math.max), cfg = O.assign({
delimiter: " ",
minColumnWidths: maxWidths.map((x) => 0),
maxTotalWidth: 0
}, cfg_), delimiterLength = strlen(cfg.delimiter), totalWidth = maxWidths.reduce((a, b) => a + b, 0), relativeWidths = maxWidths.map((w) => w / totalWidth), maxTotalWidth = cfg.maxTotalWidth - delimiterLength * (maxWidths.length - 1), excessWidth = Math.max(0, totalWidth - maxTotalWidth), computedWidths = zip([cfg.minColumnWidths, maxWidths, relativeWidths], (min, max, relative) => Math.max(min, Math.floor(max - excessWidth * relative))), restCellWidths = cellWidths.map((widths) => zip([computedWidths, widths], (a, b) => a - b));
return zip([cells, restCellWidths], (a, b) => zip([a, b], (str, w) => w >= 0 ? cfg.right ? " ".repeat(w) + str : str + " ".repeat(w) : limit(str, strlen(str) + w)).join(cfg.delimiter));
}, asTable = (cfg) => O.assign((arr) => {
var _ref;
if (arr[0] && Array.isArray(arr[0]))
return asColumns(arr.map((r) => r.map((c, i) => c === void 0 ? "" : cfg.print(c, i))), cfg).join(`
`);
let colNames = [].concat(_toConsumableArray(new Set((_ref = []).concat.apply(_ref, _toConsumableArray(arr.map(O.keys)))))), columns = [colNames.map(cfg.title)].concat(_toConsumableArray(arr.map((o) => colNames.map((key) => o[key] === void 0 ? "" : cfg.print(o[key], key))))), lines = asColumns(columns, cfg);
return (cfg.dash ? [lines[0], cfg.dash.repeat(strlen(lines[0]))].concat(_toConsumableArray(lines.slice(1))) : lines).join(`
`);
}, cfg, {
configure: (newConfig) => asTable(O.assign({}, cfg, newConfig))
});
module.exports = asTable({
maxTotalWidth: Number.MAX_SAFE_INTEGER,
print: String,
title: String,
dash: "-",
right: !1
});
}
});
// ../../node_modules/.pnpm/stacktracey@2.2.0/node_modules/stacktracey/stacktracey.js
var require_stacktracey = __commonJS({
"../../node_modules/.pnpm/stacktracey@2.2.0/node_modules/stacktracey/stacktracey.js"(exports, module) {
"use strict";
init_cjs_shims();
var O = Object, isBrowser2 = typeof window < "u" && window.window === window && window.navigator, nodeRequire = isBrowser2 ? null : module.require, lastOf = (x) => x[x.length - 1], getSource = require_get_source(), partition = require_partition(), asTable = require_as_table(), nixSlashes = (x) => x.replace(/\\/g, "/"), pathRoot = isBrowser2 ? window.location.href : nixSlashes(process.cwd()) + "/", StackTracey2 = class _StackTracey {
constructor(input, offset) {
let originalInput = input, isParseableSyntaxError = input && input instanceof SyntaxError && !isBrowser2;
if (input || (input = new Error(), offset = offset === void 0 ? 1 : offset), input instanceof Error && (input = input.stack || ""), typeof input == "string" && (input = this.rawParse(input).slice(offset).map((x) => this.extractEntryMetadata(x))), Array.isArray(input)) {
if (isParseableSyntaxError) {
let rawLines = __require("util").inspect(originalInput).split(`
`), fileLine = rawLines[0].split(":"), line = fileLine.pop(), file = fileLine.join(":");
file && input.unshift({
file: nixSlashes(file),
line,
column: (rawLines[2] || "").indexOf("^") + 1,
sourceLine: rawLines[1],
callee: "(syntax error)",
syntaxError: !0
});
}
this.items = input;
} else
this.items = [];
}
extractEntryMetadata(e) {
let decomposedPath = this.decomposePath(e.file || ""), fileRelative = decomposedPath[0], externalDomain = decomposedPath[1];
return O.assign(e, {
calleeShort: e.calleeShort || lastOf((e.callee || "").split(".")),
fileRelative,
fileShort: this.shortenPath(fileRelative),
fileName: lastOf((e.file || "").split("/")),
thirdParty: this.isThirdParty(fileRelative, externalDomain) && !e.index,
externalDomain
});
}
shortenPath(relativePath) {
return relativePath.replace(/^node_modules\//, "").replace(/^webpack\/bootstrap\//, "").replace(/^__parcel_source_root\//, "");
}
decomposePath(fullPath) {
let result = fullPath;
isBrowser2 && (result = result.replace(pathRoot, ""));
let externalDomainMatch = result.match(/^(http|https)\:\/\/?([^\/]+)\/(.*)/), externalDomain = externalDomainMatch ? externalDomainMatch[2] : void 0;
return result = externalDomainMatch ? externalDomainMatch[3] : result, isBrowser2 || (result = __require("path").relative(pathRoot, result)), [
nixSlashes(result).replace(/^.*\:\/\/?\/?/, ""),
// cut webpack:/// and webpack:/ things
externalDomain
];
}
isThirdParty(relativePath, externalDomain) {
return externalDomain || relativePath[0] === "~" || // webpack-specific heuristic
relativePath[0] === "/" || // external source
relativePath.indexOf("node_modules") === 0 || relativePath.indexOf("webpack/bootstrap") === 0;
}
rawParse(str) {
return (str || "").split(`
`).map((line) => {
line = line.trim();
let callee, fileLineColumn = [], native, planA, planB;
if ((planA = line.match(/at (.+) \(eval at .+ \((.+)\), .+\)/)) || // eval calls
(planA = line.match(/at (.+) \((.+)\)/)) || (planA = line.match(/at (.+) ([^ ]+)/)) || line.slice(0, 3) !== "at " && (planA = line.match(/(.*)@(.*)/)))
callee = planA[1], native = planA[2] === "native", fileLineColumn = (planA[2].match(/(.*):(\d+):(\d+)/) || planA[2].match(/(.*):(\d+)/) || []).slice(1);
else if (planB = line.match(/^(at\s+)*(.+):(\d+):(\d+)/))
fileLineColumn = planB.slice(2);
else
return;
return callee && !fileLineColumn[0] && callee.split(".")[0] === "Array" && (native = !0), {
beforeParse: line,
callee: callee || "",
index: isBrowser2 && fileLineColumn[0] === window.location.href,
native: native || !1,
file: nixSlashes(fileLineColumn[0] || ""),
line: parseInt(fileLineColumn[1] || "", 10) || void 0,
column: parseInt(fileLineColumn[2] || "", 10) || void 0
};
}).filter((x) => x !== void 0);
}
withSourceAt(i) {
return this.items[i] && this.withSource(this.items[i]);
}
withSourceAsyncAt(i) {
return this.items[i] && this.withSourceAsync(this.items[i]);
}
withSource(loc) {
if (this.shouldSkipResolving(loc))
return loc;
{
let resolved = getSource(loc.file || "").resolve(loc);
return resolved.sourceFile ? this.withSourceResolved(loc, resolved) : loc;
}
}
withSourceAsync(loc) {
return this.shouldSkipResolving(loc) ? Promise.resolve(loc) : getSource.async(loc.file || "").then((x) => x.resolve(loc)).then((resolved) => this.withSourceResolved(loc, resolved)).catch((e) => this.withSourceResolved(loc, { error: e, sourceLine: "" }));
}
shouldSkipResolving(loc) {
return loc.sourceFile || loc.error || loc.file && loc.file.indexOf("<") >= 0;
}
withSourceResolved(loc, resolved) {
return resolved.sourceFile && !resolved.sourceFile.error && (resolved.file = nixSlashes(resolved.sourceFile.path), resolved = this.extractEntryMetadata(resolved)), resolved.sourceLine.includes("// @hide") && (resolved.sourceLine = resolved.sourceLine.replace("// @hide", ""), resolved.hide = !0), (resolved.sourceLine.includes("__webpack_require__") || // webpack-specific heuristics
resolved.sourceLine.includes("/******/ ({")) && (resolved.thirdParty = !0), O.assign({ sourceLine: "" }, loc, resolved);
}
withSources() {
return this.map((x) => this.withSource(x));
}
withSourcesAsync() {
return Promise.all(this.items.map((x) => this.withSourceAsync(x))).then((items) => new _StackTracey(items));
}
mergeRepeatedLines() {
return new _StackTracey(
partition(this.items, (e) => e.file + e.line).map(
(group) => group.items.slice(1).reduce((memo2, entry) => (memo2.callee = (memo2.callee || "<anonymous>") + " \u2192 " + (entry.callee || "<anonymous>"), memo2.calleeShort = (memo2.calleeShort || "<anonymous>") + " \u2192 " + (entry.calleeShort || "<anonymous>"), memo2), O.assign({}, group.items[0]))
)
);
}
clean() {
let s = this.withSources().mergeRepeatedLines();
return s.filter(s.isClean.bind(s));
}
cleanAsync() {
return this.withSourcesAsync().then((s) => (s = s.mergeRepeatedLines(), s.filter(s.isClean.bind(s))));
}
isClean(entry, index) {
return index === 0 || !(entry.thirdParty || entry.hide || entry.native);
}
at(i) {
return O.assign({
beforeParse: "",
callee: "<???>",
index: !1,
native: !1,
file: "<???>",
line: 0,
column: 0
}, this.items[i]);
}
asTable(opts) {
let maxColumnWidths = opts && opts.maxColumnWidths || this.maxColumnWidths(), trimEnd = (s, n) => s && (s.length > n ? s.slice(0, n - 1) + "\u2026" : s), trimStart = (s, n) => s && (s.length > n ? "\u2026" + s.slice(-(n - 1)) : s), trimmed = this.map(
(e) => [
"at " + trimEnd(e.calleeShort, maxColumnWidths.callee),
trimStart(e.fileShort && e.fileShort + ":" + e.line || "", maxColumnWidths.file),
trimEnd((e.sourceLine || "").trim() || "", maxColumnWidths.sourceLine)
]
);
return asTable(trimmed.items);
}
maxColumnWidths() {
return {
callee: 30,
file: 60,
sourceLine: 80
};
}
static resetCache() {
getSource.resetCache(), getSource.async.resetCache();
}
static locationsEqual(a, b) {
return a.file === b.file && a.line === b.line && a.column === b.column;
}
};
["map", "filter", "slice", "concat"].forEach((method) => {
StackTracey2.prototype[method] = function() {
return new StackTracey2(this.items[method].apply(this.items, arguments));
};
});
module.exports = StackTracey2;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createBaseFor.js
var require_createBaseFor = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createBaseFor.js"(exports, module) {
init_cjs_shims();
function createBaseFor(fromRight) {
return function(object, iteratee, keysFunc) {
for (var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; length--; ) {
var key = props[fromRight ? length : ++index];
if (iteratee(iterable[key], key, iterable) === !1)
break;
}
return object;
};
}
module.exports = createBaseFor;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseFor.js
var require_baseFor = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseFor.js"(exports, module) {
init_cjs_shims();
var createBaseFor = require_createBaseFor(), baseFor = createBaseFor();
module.exports = baseFor;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseForOwn.js
var require_baseForOwn = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseForOwn.js"(exports, module) {
init_cjs_shims();
var baseFor = require_baseFor(), keys = require_keys();
function baseForOwn(object, iteratee) {
return object && baseFor(object, iteratee, keys);
}
module.exports = baseForOwn;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createBaseEach.js
var require_createBaseEach = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createBaseEach.js"(exports, module) {
init_cjs_shims();
var isArrayLike = require_isArrayLike();
function createBaseEach(eachFunc, fromRight) {
return function(collection, iteratee) {
if (collection == null)
return collection;
if (!isArrayLike(collection))
return eachFunc(collection, iteratee);
for (var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection); (fromRight ? index-- : ++index < length) && iteratee(iterable[index], index, iterable) !== !1; )
;
return collection;
};
}
module.exports = createBaseEach;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseEach.js
var require_baseEach = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseEach.js"(exports, module) {
init_cjs_shims();
var baseForOwn = require_baseForOwn(), createBaseEach = require_createBaseEach(), baseEach = createBaseEach(baseForOwn);
module.exports = baseEach;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseMap.js
var require_baseMap = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseMap.js"(exports, module) {
init_cjs_shims();
var baseEach = require_baseEach(), isArrayLike = require_isArrayLike();
function baseMap(collection, iteratee) {
var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
return baseEach(collection, function(value, key, collection2) {
result[++index] = iteratee(value, key, collection2);
}), result;
}
module.exports = baseMap;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseSortBy.js
var require_baseSortBy = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseSortBy.js"(exports, module) {
init_cjs_shims();
function baseSortBy(array, comparer) {
var length = array.length;
for (array.sort(comparer); length--; )
array[length] = array[length].value;
return array;
}
module.exports = baseSortBy;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_compareAscending.js
var require_compareAscending = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_compareAscending.js"(exports, module) {
init_cjs_shims();
var isSymbol = require_isSymbol();
function compareAscending(value, other) {
if (value !== other) {
var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value), othIsDefined = other !== void 0, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other);
if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive)
return 1;
if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive)
return -1;
}
return 0;
}
module.exports = compareAscending;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_compareMultiple.js
var require_compareMultiple = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_compareMultiple.js"(exports, module) {
init_cjs_shims();
var compareAscending = require_compareAscending();
function compareMultiple(object, other, orders) {
for (var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; ++index < length; ) {
var result = compareAscending(objCriteria[index], othCriteria[index]);
if (result) {
if (index >= ordersLength)
return result;
var order = orders[index];
return result * (order == "desc" ? -1 : 1);
}
}
return object.index - other.index;
}
module.exports = compareMultiple;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseOrderBy.js
var require_baseOrderBy = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseOrderBy.js"(exports, module) {
init_cjs_shims();
var arrayMap = require_arrayMap(), baseGet = require_baseGet(), baseIteratee = require_baseIteratee(), baseMap = require_baseMap(), baseSortBy = require_baseSortBy(), baseUnary = require_baseUnary(), compareMultiple = require_compareMultiple(), identity = require_identity(), isArray = require_isArray();
function baseOrderBy(collection, iteratees, orders) {
iteratees.length ? iteratees = arrayMap(iteratees, function(iteratee) {
return isArray(iteratee) ? function(value) {
return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
} : iteratee;
}) : iteratees = [identity];
var index = -1;
iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
var result = baseMap(collection, function(value, key, collection2) {
var criteria = arrayMap(iteratees, function(iteratee) {
return iteratee(value);
});
return { criteria, index: ++index, value };
});
return baseSortBy(result, function(object, other) {
return compareMultiple(object, other, orders);
});
}
module.exports = baseOrderBy;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isIterateeCall.js
var require_isIterateeCall = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isIterateeCall.js"(exports, module) {
init_cjs_shims();
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require_isIndex(), isObject = require_isObject();
function isIterateeCall(value, index, object) {
if (!isObject(object))
return !1;
var type = typeof index;
return (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) ? eq(object[index], value) : !1;
}
module.exports = isIterateeCall;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/sortBy.js
var require_sortBy = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/sortBy.js"(exports, module) {
init_cjs_shims();
var baseFlatten = require_baseFlatten(), baseOrderBy = require_baseOrderBy(), baseRest = require_baseRest(), isIterateeCall = require_isIterateeCall(), sortBy2 = baseRest(function(collection, iteratees) {
if (collection == null)
return [];
var length = iteratees.length;
return length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1]) ? iteratees = [] : length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2]) && (iteratees = [iteratees[0]]), baseOrderBy(collection, baseFlatten(iteratees, 1), []);
});
module.exports = sortBy2;
}
});
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
var require_util = __commonJS({
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module) {
"use strict";
init_cjs_shims();
var stringReplaceAll = (string, substring, replacer) => {
let index = string.indexOf(substring);
if (index === -1)
return string;
let substringLength = substring.length, endIndex = 0, returnValue = "";
do
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer, endIndex = index + substringLength, index = string.indexOf(substring, endIndex);
while (index !== -1);
return returnValue += string.substr(endIndex), returnValue;
}, stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
let endIndex = 0, returnValue = "";
do {
let gotCR = string[index - 1] === "\r";
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? `\r
` : `
`) + postfix, endIndex = index + 1, index = string.indexOf(`
`, endIndex);
} while (index !== -1);
return returnValue += string.substr(endIndex), returnValue;
};
module.exports = {
stringReplaceAll,
stringEncaseCRLFWithFirstIndex
};
}
});
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js
var require_templates = __commonJS({
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js"(exports, module) {
"use strict";
init_cjs_shims();
var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi, STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g, STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/, ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi, ESCAPES5 = /* @__PURE__ */ new Map([
["n", `
`],
["r", "\r"],
["t", " "],
["b", "\b"],
["f", "\f"],
["v", "\v"],
["0", "\0"],
["\\", "\\"],
["e", "\x1B"],
["a", "\x07"]
]);
function unescape2(c) {
let u = c[0] === "u", bracket = c[1] === "{";
return u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3 ? String.fromCharCode(parseInt(c.slice(1), 16)) : u && bracket ? String.fromCodePoint(parseInt(c.slice(2, -1), 16)) : ESCAPES5.get(c) || c;
}
function parseArguments(name, arguments_) {
let results = [], chunks = arguments_.trim().split(/\s*,\s*/g), matches;
for (let chunk of chunks) {
let number = Number(chunk);
if (!Number.isNaN(number))
results.push(number);
else if (matches = chunk.match(STRING_REGEX))
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape2, character) => escape2 ? unescape2(escape2) : character));
else
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
}
return results;
}
function parseStyle(style) {
STYLE_REGEX.lastIndex = 0;
let results = [], matches;
for (; (matches = STYLE_REGEX.exec(style)) !== null; ) {
let name = matches[1];
if (matches[2]) {
let args = parseArguments(name, matches[2]);
results.push([name].concat(args));
} else
results.push([name]);
}
return results;
}
function buildStyle(chalk, styles3) {
let enabled = {};
for (let layer of styles3)
for (let style of layer.styles)
enabled[style[0]] = layer.inverse ? null : style.slice(1);
let current = chalk;
for (let [styleName, styles4] of Object.entries(enabled))
if (Array.isArray(styles4)) {
if (!(styleName in current))
throw new Error(`Unknown Chalk style: ${styleName}`);
current = styles4.length > 0 ? current[styleName](...styles4) : current[styleName];
}
return current;
}
module.exports = (chalk, temporary) => {
let styles3 = [], chunks = [], chunk = [];
if (temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
if (escapeCharacter)
chunk.push(unescape2(escapeCharacter));
else if (style) {
let string = chunk.join("");
chunk = [], chunks.push(styles3.length === 0 ? string : buildStyle(chalk, styles3)(string)), styles3.push({ inverse, styles: parseStyle(style) });
} else if (close) {
if (styles3.length === 0)
throw new Error("Found extraneous } in Chalk template literal");
chunks.push(buildStyle(chalk, styles3)(chunk.join(""))), chunk = [], styles3.pop();
} else
chunk.push(character);
}), chunks.push(chunk.join("")), styles3.length > 0) {
let errMessage = `Chalk template literal is missing ${styles3.length} closing bracket${styles3.length === 1 ? "" : "s"} (\`}\`)`;
throw new Error(errMessage);
}
return chunks.join("");
};
}
});
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js
var require_source = __commonJS({
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var ansiStyles2 = require_ansi_styles(), { stdout: stdoutColor, stderr: stderrColor } = require_supports_color(), {
stringReplaceAll,
stringEncaseCRLFWithFirstIndex
} = require_util(), { isArray } = Array, levelMapping = [
"ansi",
"ansi",
"ansi256",
"ansi16m"
], styles3 = /* @__PURE__ */ Object.create(null), applyOptions = (object, options = {}) => {
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3))
throw new Error("The `level` option should be an integer from 0 to 3");
let colorLevel = stdoutColor ? stdoutColor.level : 0;
object.level = options.level === void 0 ? colorLevel : options.level;
}, ChalkClass = class {
constructor(options) {
return chalkFactory(options);
}
}, chalkFactory = (options) => {
let chalk2 = {};
return applyOptions(chalk2, options), chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_), Object.setPrototypeOf(chalk2, Chalk.prototype), Object.setPrototypeOf(chalk2.template, chalk2), chalk2.template.constructor = () => {
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
}, chalk2.template.Instance = ChalkClass, chalk2.template;
};
function Chalk(options) {
return chalkFactory(options);
}
for (let [styleName, style] of Object.entries(ansiStyles2))
styles3[styleName] = {
get() {
let builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
return Object.defineProperty(this, styleName, { value: builder }), builder;
}
};
styles3.visible = {
get() {
let builder = createBuilder(this, this._styler, !0);
return Object.defineProperty(this, "visible", { value: builder }), builder;
}
};
var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
for (let model of usedModels)
styles3[model] = {
get() {
let { level } = this;
return function(...arguments_) {
let styler = createStyler(ansiStyles2.color[levelMapping[level]][model](...arguments_), ansiStyles2.color.close, this._styler);
return createBuilder(this, styler, this._isEmpty);
};
}
};
for (let model of usedModels) {
let bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
styles3[bgModel] = {
get() {
let { level } = this;
return function(...arguments_) {
let styler = createStyler(ansiStyles2.bgColor[levelMapping[level]][model](...arguments_), ansiStyles2.bgColor.close, this._styler);
return createBuilder(this, styler, this._isEmpty);
};
}
};
}
var proto = Object.defineProperties(() => {
}, {
...styles3,
level: {
enumerable: !0,
get() {
return this._generator.level;
},
set(level) {
this._generator.level = level;
}
}
}), createStyler = (open, close, parent) => {
let openAll, closeAll;
return parent === void 0 ? (openAll = open, closeAll = close) : (openAll = parent.openAll + open, closeAll = close + parent.closeAll), {
open,
close,
openAll,
closeAll,
parent
};
}, createBuilder = (self2, _styler, _isEmpty) => {
let builder = (...arguments_) => isArray(arguments_[0]) && isArray(arguments_[0].raw) ? applyStyle(builder, chalkTag(builder, ...arguments_)) : applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
return Object.setPrototypeOf(builder, proto), builder._generator = self2, builder._styler = _styler, builder._isEmpty = _isEmpty, builder;
}, applyStyle = (self2, string) => {
if (self2.level <= 0 || !string)
return self2._isEmpty ? "" : string;
let styler = self2._styler;
if (styler === void 0)
return string;
let { openAll, closeAll } = styler;
if (string.indexOf("\x1B") !== -1)
for (; styler !== void 0; )
string = stringReplaceAll(string, styler.close, styler.open), styler = styler.parent;
let lfIndex = string.indexOf(`
`);
return lfIndex !== -1 && (string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex)), openAll + string + closeAll;
}, template, chalkTag = (chalk2, ...strings) => {
let [firstString] = strings;
if (!isArray(firstString) || !isArray(firstString.raw))
return strings.join(" ");
let arguments_ = strings.slice(1), parts = [firstString.raw[0]];
for (let i = 1; i < firstString.length; i++)
parts.push(
String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
String(firstString.raw[i])
);
return template === void 0 && (template = require_templates()), template(chalk2, parts.join(""));
};
Object.defineProperties(Chalk.prototype, styles3);
var chalk = Chalk();
chalk.supportsColor = stdoutColor;
chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
chalk.stderr.supportsColor = stderrColor;
module.exports = chalk;
}
});
// ../../node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/cjs/tinycolor.js
var require_tinycolor = __commonJS({
"../../node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/cjs/tinycolor.js"(exports, module) {
init_cjs_shims();
(function(global, factory) {
typeof exports == "object" && typeof module < "u" ? module.exports = factory() : typeof define == "function" && define.amd ? define(factory) : (global = typeof globalThis < "u" ? globalThis : global || self, global.tinycolor = factory());
})(exports, (function() {
"use strict";
function _typeof(obj) {
"@babel/helpers - typeof";
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
return typeof obj2;
} : function(obj2) {
return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
}, _typeof(obj);
}
var trimLeft = /^\s+/, trimRight = /\s+$/;
function tinycolor(color, opts) {
if (color = color || "", opts = opts || {}, color instanceof tinycolor)
return color;
if (!(this instanceof tinycolor))
return new tinycolor(color, opts);
var rgb = inputToRGB(color);
this._originalInput = color, this._r = rgb.r, this._g = rgb.g, this._b = rgb.b, this._a = rgb.a, this._roundA = Math.round(100 * this._a) / 100, this._format = opts.format || rgb.format, this._gradientType = opts.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = rgb.ok;
}
tinycolor.prototype = {
isDark: function() {
return this.getBrightness() < 128;
},
isLight: function() {
return !this.isDark();
},
isValid: function() {
return this._ok;
},
getOriginalInput: function() {
return this._originalInput;
},
getFormat: function() {
return this._format;
},
getAlpha: function() {
return this._a;
},
getBrightness: function() {
var rgb = this.toRgb();
return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1e3;
},
getLuminance: function() {
var rgb = this.toRgb(), RsRGB, GsRGB, BsRGB, R, G, B;
return RsRGB = rgb.r / 255, GsRGB = rgb.g / 255, BsRGB = rgb.b / 255, RsRGB <= 0.03928 ? R = RsRGB / 12.92 : R = Math.pow((RsRGB + 0.055) / 1.055, 2.4), GsRGB <= 0.03928 ? G = GsRGB / 12.92 : G = Math.pow((GsRGB + 0.055) / 1.055, 2.4), BsRGB <= 0.03928 ? B = BsRGB / 12.92 : B = Math.pow((BsRGB + 0.055) / 1.055, 2.4), 0.2126 * R + 0.7152 * G + 0.0722 * B;
},
setAlpha: function(value) {
return this._a = boundAlpha(value), this._roundA = Math.round(100 * this._a) / 100, this;
},
toHsv: function() {
var hsv = rgbToHsv(this._r, this._g, this._b);
return {
h: hsv.h * 360,
s: hsv.s,
v: hsv.v,
a: this._a
};
},
toHsvString: function() {
var hsv = rgbToHsv(this._r, this._g, this._b), h = Math.round(hsv.h * 360), s = Math.round(hsv.s * 100), v = Math.round(hsv.v * 100);
return this._a == 1 ? "hsv(" + h + ", " + s + "%, " + v + "%)" : "hsva(" + h + ", " + s + "%, " + v + "%, " + this._roundA + ")";
},
toHsl: function() {
var hsl = rgbToHsl(this._r, this._g, this._b);
return {
h: hsl.h * 360,
s: hsl.s,
l: hsl.l,
a: this._a
};
},
toHslString: function() {
var hsl = rgbToHsl(this._r, this._g, this._b), h = Math.round(hsl.h * 360), s = Math.round(hsl.s * 100), l = Math.round(hsl.l * 100);
return this._a == 1 ? "hsl(" + h + ", " + s + "%, " + l + "%)" : "hsla(" + h + ", " + s + "%, " + l + "%, " + this._roundA + ")";
},
toHex: function(allow3Char) {
return rgbToHex(this._r, this._g, this._b, allow3Char);
},
toHexString: function(allow3Char) {
return "#" + this.toHex(allow3Char);
},
toHex8: function(allow4Char) {
return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
},
toHex8String: function(allow4Char) {
return "#" + this.toHex8(allow4Char);
},
toRgb: function() {
return {
r: Math.round(this._r),
g: Math.round(this._g),
b: Math.round(this._b),
a: this._a
};
},
toRgbString: function() {
return this._a == 1 ? "rgb(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ")" : "rgba(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ", " + this._roundA + ")";
},
toPercentageRgb: function() {
return {
r: Math.round(bound01(this._r, 255) * 100) + "%",
g: Math.round(bound01(this._g, 255) * 100) + "%",
b: Math.round(bound01(this._b, 255) * 100) + "%",
a: this._a
};
},
toPercentageRgbString: function() {
return this._a == 1 ? "rgb(" + Math.round(bound01(this._r, 255) * 100) + "%, " + Math.round(bound01(this._g, 255) * 100) + "%, " + Math.round(bound01(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(bound01(this._r, 255) * 100) + "%, " + Math.round(bound01(this._g, 255) * 100) + "%, " + Math.round(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";
},
toName: function() {
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : hexNames[rgbToHex(this._r, this._g, this._b, !0)] || !1;
},
toFilter: function(secondColor) {
var hex8String = "#" + rgbaToArgbHex(this._r, this._g, this._b, this._a), secondHex8String = hex8String, gradientType = this._gradientType ? "GradientType = 1, " : "";
if (secondColor) {
var s = tinycolor(secondColor);
secondHex8String = "#" + rgbaToArgbHex(s._r, s._g, s._b, s._a);
}
return "progid:DXImageTransform.Microsoft.gradient(" + gradientType + "startColorstr=" + hex8String + ",endColorstr=" + secondHex8String + ")";
},
toString: function(format) {
var formatSet = !!format;
format = format || this._format;
var formattedString = !1, hasAlpha = this._a < 1 && this._a >= 0, needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
return needsAlphaFormat ? format === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (format === "rgb" && (formattedString = this.toRgbString()), format === "prgb" && (formattedString = this.toPercentageRgbString()), (format === "hex" || format === "hex6") && (formattedString = this.toHexString()), format === "hex3" && (formattedString = this.toHexString(!0)), format === "hex4" && (formattedString = this.toHex8String(!0)), format === "hex8" && (formattedString = this.toHex8String()), format === "name" && (formattedString = this.toName()), format === "hsl" && (formattedString = this.toHslString()), format === "hsv" && (formattedString = this.toHsvString()), formattedString || this.toHexString());
},
clone: function() {
return tinycolor(this.toString());
},
_applyModification: function(fn, args) {
var color = fn.apply(null, [this].concat([].slice.call(args)));
return this._r = color._r, this._g = color._g, this._b = color._b, this.setAlpha(color._a), this;
},
lighten: function() {
return this._applyModification(_lighten, arguments);
},
brighten: function() {
return this._applyModification(_brighten, arguments);
},
darken: function() {
return this._applyModification(_darken, arguments);
},
desaturate: function() {
return this._applyModification(_desaturate, arguments);
},
saturate: function() {
return this._applyModification(_saturate, arguments);
},
greyscale: function() {
return this._applyModification(_greyscale, arguments);
},
spin: function() {
return this._applyModification(_spin, arguments);
},
_applyCombination: function(fn, args) {
return fn.apply(null, [this].concat([].slice.call(args)));
},
analogous: function() {
return this._applyCombination(_analogous, arguments);
},
complement: function() {
return this._applyCombination(_complement, arguments);
},
monochromatic: function() {
return this._applyCombination(_monochromatic, arguments);
},
splitcomplement: function() {
return this._applyCombination(_splitcomplement, arguments);
},
// Disabled until https://github.com/bgrins/TinyColor/issues/254
// polyad: function (number) {
// return this._applyCombination(polyad, [number]);
// },
triad: function() {
return this._applyCombination(polyad, [3]);
},
tetrad: function() {
return this._applyCombination(polyad, [4]);
}
}, tinycolor.fromRatio = function(color, opts) {
if (_typeof(color) == "object") {
var newColor = {};
for (var i in color)
color.hasOwnProperty(i) && (i === "a" ? newColor[i] = color[i] : newColor[i] = convertToPercentage(color[i]));
color = newColor;
}
return tinycolor(color, opts);
};
function inputToRGB(color) {
var rgb = {
r: 0,
g: 0,
b: 0
}, a = 1, s = null, v = null, l = null, ok = !1, format = !1;
return typeof color == "string" && (color = stringInputToObject(color)), _typeof(color) == "object" && (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b) ? (rgb = rgbToRgb(color.r, color.g, color.b), ok = !0, format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb") : isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v) ? (s = convertToPercentage(color.s), v = convertToPercentage(color.v), rgb = hsvToRgb(color.h, s, v), ok = !0, format = "hsv") : isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l) && (s = convertToPercentage(color.s), l = convertToPercentage(color.l), rgb = hslToRgb(color.h, s, l), ok = !0, format = "hsl"), color.hasOwnProperty("a") && (a = color.a)), a = boundAlpha(a), {
ok,
format: color.format || format,
r: Math.min(255, Math.max(rgb.r, 0)),
g: Math.min(255, Math.max(rgb.g, 0)),
b: Math.min(255, Math.max(rgb.b, 0)),
a
};
}
function rgbToRgb(r, g, b) {
return {
r: bound01(r, 255) * 255,
g: bound01(g, 255) * 255,
b: bound01(b, 255) * 255
};
}
function rgbToHsl(r, g, b) {
r = bound01(r, 255), g = bound01(g, 255), b = bound01(b, 255);
var max = Math.max(r, g, b), min = Math.min(r, g, b), h, s, l = (max + min) / 2;
if (max == min)
h = s = 0;
else {
var d = max - min;
switch (s = l > 0.5 ? d / (2 - max - min) : d / (max + min), max) {
case r:
h = (g - b) / d + (g < b ? 6 : 0);
break;
case g:
h = (b - r) / d + 2;
break;
case b:
h = (r - g) / d + 4;
break;
}
h /= 6;
}
return {
h,
s,
l
};
}
function hslToRgb(h, s, l) {
var r, g, b;
h = bound01(h, 360), s = bound01(s, 100), l = bound01(l, 100);
function hue2rgb(p2, q2, t) {
return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? p2 + (q2 - p2) * 6 * t : t < 1 / 2 ? q2 : t < 2 / 3 ? p2 + (q2 - p2) * (2 / 3 - t) * 6 : p2;
}
if (s === 0)
r = g = b = l;
else {
var q = l < 0.5 ? l * (1 + s) : l + s - l * s, p = 2 * l - q;
r = hue2rgb(p, q, h + 1 / 3), g = hue2rgb(p, q, h), b = hue2rgb(p, q, h - 1 / 3);
}
return {
r: r * 255,
g: g * 255,
b: b * 255
};
}
function rgbToHsv(r, g, b) {
r = bound01(r, 255), g = bound01(g, 255), b = bound01(b, 255);
var max = Math.max(r, g, b), min = Math.min(r, g, b), h, s, v = max, d = max - min;
if (s = max === 0 ? 0 : d / max, max == min)
h = 0;
else {
switch (max) {
case r:
h = (g - b) / d + (g < b ? 6 : 0);
break;
case g:
h = (b - r) / d + 2;
break;
case b:
h = (r - g) / d + 4;
break;
}
h /= 6;
}
return {
h,
s,
v
};
}
function hsvToRgb(h, s, v) {
h = bound01(h, 360) * 6, s = bound01(s, 100), v = bound01(v, 100);
var i = Math.floor(h), f = h - i, p = v * (1 - s), q = v * (1 - f * s), t = v * (1 - (1 - f) * s), mod = i % 6, r = [v, q, p, p, t, v][mod], g = [t, v, v, q, p, p][mod], b = [p, p, t, v, v, q][mod];
return {
r: r * 255,
g: g * 255,
b: b * 255
};
}
function rgbToHex(r, g, b, allow3Char) {
var hex = [pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];
return allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) ? hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) : hex.join("");
}
function rgbaToHex(r, g, b, a, allow4Char) {
var hex = [pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16)), pad2(convertDecimalToHex(a))];
return allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1) ? hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0) : hex.join("");
}
function rgbaToArgbHex(r, g, b, a) {
var hex = [pad2(convertDecimalToHex(a)), pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];
return hex.join("");
}
tinycolor.equals = function(color1, color2) {
return !color1 || !color2 ? !1 : tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
}, tinycolor.random = function() {
return tinycolor.fromRatio({
r: Math.random(),
g: Math.random(),
b: Math.random()
});
};
function _desaturate(color, amount) {
amount = amount === 0 ? 0 : amount || 10;
var hsl = tinycolor(color).toHsl();
return hsl.s -= amount / 100, hsl.s = clamp01(hsl.s), tinycolor(hsl);
}
function _saturate(color, amount) {
amount = amount === 0 ? 0 : amount || 10;
var hsl = tinycolor(color).toHsl();
return hsl.s += amount / 100, hsl.s = clamp01(hsl.s), tinycolor(hsl);
}
function _greyscale(color) {
return tinycolor(color).desaturate(100);
}
function _lighten(color, amount) {
amount = amount === 0 ? 0 : amount || 10;
var hsl = tinycolor(color).toHsl();
return hsl.l += amount / 100, hsl.l = clamp01(hsl.l), tinycolor(hsl);
}
function _brighten(color, amount) {
amount = amount === 0 ? 0 : amount || 10;
var rgb = tinycolor(color).toRgb();
return rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100)))), rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100)))), rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100)))), tinycolor(rgb);
}
function _darken(color, amount) {
amount = amount === 0 ? 0 : amount || 10;
var hsl = tinycolor(color).toHsl();
return hsl.l -= amount / 100, hsl.l = clamp01(hsl.l), tinycolor(hsl);
}
function _spin(color, amount) {
var hsl = tinycolor(color).toHsl(), hue = (hsl.h + amount) % 360;
return hsl.h = hue < 0 ? 360 + hue : hue, tinycolor(hsl);
}
function _complement(color) {
var hsl = tinycolor(color).toHsl();
return hsl.h = (hsl.h + 180) % 360, tinycolor(hsl);
}
function polyad(color, number) {
if (isNaN(number) || number <= 0)
throw new Error("Argument to polyad must be a positive number");
for (var hsl = tinycolor(color).toHsl(), result = [tinycolor(color)], step = 360 / number, i = 1; i < number; i++)
result.push(tinycolor({
h: (hsl.h + i * step) % 360,
s: hsl.s,
l: hsl.l
}));
return result;
}
function _splitcomplement(color) {
var hsl = tinycolor(color).toHsl(), h = hsl.h;
return [tinycolor(color), tinycolor({
h: (h + 72) % 360,
s: hsl.s,
l: hsl.l
}), tinycolor({
h: (h + 216) % 360,
s: hsl.s,
l: hsl.l
})];
}
function _analogous(color, results, slices) {
results = results || 6, slices = slices || 30;
var hsl = tinycolor(color).toHsl(), part = 360 / slices, ret = [tinycolor(color)];
for (hsl.h = (hsl.h - (part * results >> 1) + 720) % 360; --results; )
hsl.h = (hsl.h + part) % 360, ret.push(tinycolor(hsl));
return ret;
}
function _monochromatic(color, results) {
results = results || 6;
for (var hsv = tinycolor(color).toHsv(), h = hsv.h, s = hsv.s, v = hsv.v, ret = [], modification = 1 / results; results--; )
ret.push(tinycolor({
h,
s,
v
})), v = (v + modification) % 1;
return ret;
}
tinycolor.mix = function(color1, color2, amount) {
amount = amount === 0 ? 0 : amount || 50;
var rgb1 = tinycolor(color1).toRgb(), rgb2 = tinycolor(color2).toRgb(), p = amount / 100, rgba = {
r: (rgb2.r - rgb1.r) * p + rgb1.r,
g: (rgb2.g - rgb1.g) * p + rgb1.g,
b: (rgb2.b - rgb1.b) * p + rgb1.b,
a: (rgb2.a - rgb1.a) * p + rgb1.a
};
return tinycolor(rgba);
}, tinycolor.readability = function(color1, color2) {
var c1 = tinycolor(color1), c2 = tinycolor(color2);
return (Math.max(c1.getLuminance(), c2.getLuminance()) + 0.05) / (Math.min(c1.getLuminance(), c2.getLuminance()) + 0.05);
}, tinycolor.isReadable = function(color1, color2, wcag2) {
var readability = tinycolor.readability(color1, color2), wcag2Parms, out;
switch (out = !1, wcag2Parms = validateWCAG2Parms(wcag2), wcag2Parms.level + wcag2Parms.size) {
case "AAsmall":
case "AAAlarge":
out = readability >= 4.5;
break;
case "AAlarge":
out = readability >= 3;
break;
case "AAAsmall":
out = readability >= 7;
break;
}
return out;
}, tinycolor.mostReadable = function(baseColor, colorList, args) {
var bestColor = null, bestScore = 0, readability, includeFallbackColors, level, size;
args = args || {}, includeFallbackColors = args.includeFallbackColors, level = args.level, size = args.size;
for (var i = 0; i < colorList.length; i++)
readability = tinycolor.readability(baseColor, colorList[i]), readability > bestScore && (bestScore = readability, bestColor = tinycolor(colorList[i]));
return tinycolor.isReadable(baseColor, bestColor, {
level,
size
}) || !includeFallbackColors ? bestColor : (args.includeFallbackColors = !1, tinycolor.mostReadable(baseColor, ["#fff", "#000"], args));
};
var names = tinycolor.names = {
aliceblue: "f0f8ff",
antiquewhite: "faebd7",
aqua: "0ff",
aquamarine: "7fffd4",
azure: "f0ffff",
beige: "f5f5dc",
bisque: "ffe4c4",
black: "000",
blanchedalmond: "ffebcd",
blue: "00f",
blueviolet: "8a2be2",
brown: "a52a2a",
burlywood: "deb887",
burntsienna: "ea7e5d",
cadetblue: "5f9ea0",
chartreuse: "7fff00",
chocolate: "d2691e",
coral: "ff7f50",
cornflowerblue: "6495ed",
cornsilk: "fff8dc",
crimson: "dc143c",
cyan: "0ff",
darkblue: "00008b",
darkcyan: "008b8b",
darkgoldenrod: "b8860b",
darkgray: "a9a9a9",
darkgreen: "006400",
darkgrey: "a9a9a9",
darkkhaki: "bdb76b",
darkmagenta: "8b008b",
darkolivegreen: "556b2f",
darkorange: "ff8c00",
darkorchid: "9932cc",
darkred: "8b0000",
darksalmon: "e9967a",
darkseagreen: "8fbc8f",
darkslateblue: "483d8b",
darkslategray: "2f4f4f",
darkslategrey: "2f4f4f",
darkturquoise: "00ced1",
darkviolet: "9400d3",
deeppink: "ff1493",
deepskyblue: "00bfff",
dimgray: "696969",
dimgrey: "696969",
dodgerblue: "1e90ff",
firebrick: "b22222",
floralwhite: "fffaf0",
forestgreen: "228b22",
fuchsia: "f0f",
gainsboro: "dcdcdc",
ghostwhite: "f8f8ff",
gold: "ffd700",
goldenrod: "daa520",
gray: "808080",
green: "008000",
greenyellow: "adff2f",
grey: "808080",
honeydew: "f0fff0",
hotpink: "ff69b4",
indianred: "cd5c5c",
indigo: "4b0082",
ivory: "fffff0",
khaki: "f0e68c",
lavender: "e6e6fa",
lavenderblush: "fff0f5",
lawngreen: "7cfc00",
lemonchiffon: "fffacd",
lightblue: "add8e6",
lightcoral: "f08080",
lightcyan: "e0ffff",
lightgoldenrodyellow: "fafad2",
lightgray: "d3d3d3",
lightgreen: "90ee90",
lightgrey: "d3d3d3",
lightpink: "ffb6c1",
lightsalmon: "ffa07a",
lightseagreen: "20b2aa",
lightskyblue: "87cefa",
lightslategray: "789",
lightslategrey: "789",
lightsteelblue: "b0c4de",
lightyellow: "ffffe0",
lime: "0f0",
limegreen: "32cd32",
linen: "faf0e6",
magenta: "f0f",
maroon: "800000",
mediumaquamarine: "66cdaa",
mediumblue: "0000cd",
mediumorchid: "ba55d3",
mediumpurple: "9370db",
mediumseagreen: "3cb371",
mediumslateblue: "7b68ee",
mediumspringgreen: "00fa9a",
mediumturquoise: "48d1cc",
mediumvioletred: "c71585",
midnightblue: "191970",
mintcream: "f5fffa",
mistyrose: "ffe4e1",
moccasin: "ffe4b5",
navajowhite: "ffdead",
navy: "000080",
oldlace: "fdf5e6",
olive: "808000",
olivedrab: "6b8e23",
orange: "ffa500",
orangered: "ff4500",
orchid: "da70d6",
palegoldenrod: "eee8aa",
palegreen: "98fb98",
paleturquoise: "afeeee",
palevioletred: "db7093",
papayawhip: "ffefd5",
peachpuff: "ffdab9",
peru: "cd853f",
pink: "ffc0cb",
plum: "dda0dd",
powderblue: "b0e0e6",
purple: "800080",
rebeccapurple: "663399",
red: "f00",
rosybrown: "bc8f8f",
royalblue: "4169e1",
saddlebrown: "8b4513",
salmon: "fa8072",
sandybrown: "f4a460",
seagreen: "2e8b57",
seashell: "fff5ee",
sienna: "a0522d",
silver: "c0c0c0",
skyblue: "87ceeb",
slateblue: "6a5acd",
slategray: "708090",
slategrey: "708090",
snow: "fffafa",
springgreen: "00ff7f",
steelblue: "4682b4",
tan: "d2b48c",
teal: "008080",
thistle: "d8bfd8",
tomato: "ff6347",
turquoise: "40e0d0",
violet: "ee82ee",
wheat: "f5deb3",
white: "fff",
whitesmoke: "f5f5f5",
yellow: "ff0",
yellowgreen: "9acd32"
}, hexNames = tinycolor.hexNames = flip(names);
function flip(o) {
var flipped = {};
for (var i in o)
o.hasOwnProperty(i) && (flipped[o[i]] = i);
return flipped;
}
function boundAlpha(a) {
return a = parseFloat(a), (isNaN(a) || a < 0 || a > 1) && (a = 1), a;
}
function bound01(n, max) {
isOnePointZero(n) && (n = "100%");
var processPercent = isPercentage(n);
return n = Math.min(max, Math.max(0, parseFloat(n))), processPercent && (n = parseInt(n * max, 10) / 100), Math.abs(n - max) < 1e-6 ? 1 : n % max / parseFloat(max);
}
function clamp01(val) {
return Math.min(1, Math.max(0, val));
}
function parseIntFromHex(val) {
return parseInt(val, 16);
}
function isOnePointZero(n) {
return typeof n == "string" && n.indexOf(".") != -1 && parseFloat(n) === 1;
}
function isPercentage(n) {
return typeof n == "string" && n.indexOf("%") != -1;
}
function pad2(c) {
return c.length == 1 ? "0" + c : "" + c;
}
function convertToPercentage(n) {
return n <= 1 && (n = n * 100 + "%"), n;
}
function convertDecimalToHex(d) {
return Math.round(parseFloat(d) * 255).toString(16);
}
function convertHexToDecimal(h) {
return parseIntFromHex(h) / 255;
}
var matchers = (function() {
var CSS_INTEGER = "[-\\+]?\\d+%?", CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?", CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")", PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?", PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
return {
CSS_UNIT: new RegExp(CSS_UNIT),
rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
};
})();
function isValidCSSUnit(color) {
return !!matchers.CSS_UNIT.exec(color);
}
function stringInputToObject(color) {
color = color.replace(trimLeft, "").replace(trimRight, "").toLowerCase();
var named = !1;
if (names[color])
color = names[color], named = !0;
else if (color == "transparent")
return {
r: 0,
g: 0,
b: 0,
a: 0,
format: "name"
};
var match;
return (match = matchers.rgb.exec(color)) ? {
r: match[1],
g: match[2],
b: match[3]
} : (match = matchers.rgba.exec(color)) ? {
r: match[1],
g: match[2],
b: match[3],
a: match[4]
} : (match = matchers.hsl.exec(color)) ? {
h: match[1],
s: match[2],
l: match[3]
} : (match = matchers.hsla.exec(color)) ? {
h: match[1],
s: match[2],
l: match[3],
a: match[4]
} : (match = matchers.hsv.exec(color)) ? {
h: match[1],
s: match[2],
v: match[3]
} : (match = matchers.hsva.exec(color)) ? {
h: match[1],
s: match[2],
v: match[3],
a: match[4]
} : (match = matchers.hex8.exec(color)) ? {
r: parseIntFromHex(match[1]),
g: parseIntFromHex(match[2]),
b: parseIntFromHex(match[3]),
a: convertHexToDecimal(match[4]),
format: named ? "name" : "hex8"
} : (match = matchers.hex6.exec(color)) ? {
r: parseIntFromHex(match[1]),
g: parseIntFromHex(match[2]),
b: parseIntFromHex(match[3]),
format: named ? "name" : "hex"
} : (match = matchers.hex4.exec(color)) ? {
r: parseIntFromHex(match[1] + "" + match[1]),
g: parseIntFromHex(match[2] + "" + match[2]),
b: parseIntFromHex(match[3] + "" + match[3]),
a: convertHexToDecimal(match[4] + "" + match[4]),
format: named ? "name" : "hex8"
} : (match = matchers.hex3.exec(color)) ? {
r: parseIntFromHex(match[1] + "" + match[1]),
g: parseIntFromHex(match[2] + "" + match[2]),
b: parseIntFromHex(match[3] + "" + match[3]),
format: named ? "name" : "hex"
} : !1;
}
function validateWCAG2Parms(parms) {
var level, size;
return parms = parms || {
level: "AA",
size: "small"
}, level = (parms.level || "AA").toUpperCase(), size = (parms.size || "small").toLowerCase(), level !== "AA" && level !== "AAA" && (level = "AA"), size !== "small" && size !== "large" && (size = "small"), {
level,
size
};
}
return tinycolor;
}));
}
});
// ../../node_modules/.pnpm/tinygradient@1.1.5/node_modules/tinygradient/index.js
var require_tinygradient = __commonJS({
"../../node_modules/.pnpm/tinygradient@1.1.5/node_modules/tinygradient/index.js"(exports, module) {
init_cjs_shims();
var tinycolor = require_tinycolor(), RGBA_MAX = { r: 256, g: 256, b: 256, a: 1 }, HSVA_MAX = { h: 360, s: 1, v: 1, a: 1 };
function stepize(start, end, steps) {
let step = {};
for (let k in start)
start.hasOwnProperty(k) && (step[k] = steps === 0 ? 0 : (end[k] - start[k]) / steps);
return step;
}
function interpolate(step, start, i, max) {
let color = {};
for (let k in start)
start.hasOwnProperty(k) && (color[k] = step[k] * i + start[k], color[k] = color[k] < 0 ? color[k] + max[k] : max[k] !== 1 ? color[k] % max[k] : color[k]);
return color;
}
function interpolateRgb(stop1, stop2, steps) {
let start = stop1.color.toRgb(), end = stop2.color.toRgb(), step = stepize(start, end, steps), gradient2 = [stop1.color];
for (let i = 1; i < steps; i++) {
let color = interpolate(step, start, i, RGBA_MAX);
gradient2.push(tinycolor(color));
}
return gradient2;
}
function interpolateHsv(stop1, stop2, steps, mode) {
let start = stop1.color.toHsv(), end = stop2.color.toHsv();
if (start.s === 0 || end.s === 0)
return interpolateRgb(stop1, stop2, steps);
let trigonometric;
if (typeof mode == "boolean")
trigonometric = mode;
else {
let trigShortest = start.h < end.h && end.h - start.h < 180 || start.h > end.h && start.h - end.h > 180;
trigonometric = mode === "long" && trigShortest || mode === "short" && !trigShortest;
}
let step = stepize(start, end, steps), gradient2 = [stop1.color], diff2;
start.h <= end.h && !trigonometric || start.h >= end.h && trigonometric ? diff2 = end.h - start.h : trigonometric ? diff2 = 360 - end.h + start.h : diff2 = 360 - start.h + end.h, step.h = Math.pow(-1, trigonometric ? 1 : 0) * Math.abs(diff2) / steps;
for (let i = 1; i < steps; i++) {
let color = interpolate(step, start, i, HSVA_MAX);
gradient2.push(tinycolor(color));
}
return gradient2;
}
function computeSubsteps(stops, steps) {
let l = stops.length;
if (steps = parseInt(steps, 10), isNaN(steps) || steps < 2)
throw new Error("Invalid number of steps (< 2)");
if (steps < l)
throw new Error("Number of steps cannot be inferior to number of stops");
let substeps = [];
for (let i = 1; i < l; i++) {
let step = (steps - 1) * (stops[i].pos - stops[i - 1].pos);
substeps.push(Math.max(1, Math.round(step)));
}
let totalSubsteps = 1;
for (let n = l - 1; n--; ) totalSubsteps += substeps[n];
for (; totalSubsteps !== steps; )
if (totalSubsteps < steps) {
let min = Math.min.apply(null, substeps);
substeps[substeps.indexOf(min)]++, totalSubsteps++;
} else {
let max = Math.max.apply(null, substeps);
substeps[substeps.indexOf(max)]--, totalSubsteps--;
}
return substeps;
}
function computeAt(stops, pos, method, max) {
if (pos < 0 || pos > 1)
throw new Error("Position must be between 0 and 1");
let start, end;
for (let i = 0, l = stops.length; i < l - 1; i++)
if (pos >= stops[i].pos && pos < stops[i + 1].pos) {
start = stops[i], end = stops[i + 1];
break;
}
start || (start = end = stops[stops.length - 1]);
let step = stepize(start.color[method](), end.color[method](), (end.pos - start.pos) * 100), color = interpolate(step, start.color[method](), (pos - start.pos) * 100, max);
return tinycolor(color);
}
var TinyGradient = class _TinyGradient {
/**
* @param {StopInput[]|ColorInput[]} stops
* @returns {TinyGradient}
*/
constructor(stops) {
if (stops.length < 2)
throw new Error("Invalid number of stops (< 2)");
let havingPositions = stops[0].pos !== void 0, l = stops.length, p = -1, lastColorLess = !1;
this.stops = stops.map((stop, i) => {
let hasPosition = stop.pos !== void 0;
if (havingPositions ^ hasPosition)
throw new Error("Cannot mix positionned and not posionned color stops");
if (hasPosition) {
let hasColor = stop.color !== void 0;
if (!hasColor && (lastColorLess || i === 0 || i === l - 1))
throw new Error("Cannot define two consecutive position-only stops");
if (lastColorLess = !hasColor, stop = {
color: hasColor ? tinycolor(stop.color) : null,
colorLess: !hasColor,
pos: stop.pos
}, stop.pos < 0 || stop.pos > 1)
throw new Error("Color stops positions must be between 0 and 1");
if (stop.pos < p)
throw new Error("Color stops positions are not ordered");
p = stop.pos;
} else
stop = {
color: tinycolor(stop.color !== void 0 ? stop.color : stop),
pos: i / (l - 1)
};
return stop;
}), this.stops[0].pos !== 0 && (this.stops.unshift({
color: this.stops[0].color,
pos: 0
}), l++), this.stops[l - 1].pos !== 1 && this.stops.push({
color: this.stops[l - 1].color,
pos: 1
});
}
/**
* Return new instance with reversed stops
* @return {TinyGradient}
*/
reverse() {
let stops = [];
return this.stops.forEach(function(stop) {
stops.push({
color: stop.color,
pos: 1 - stop.pos
});
}), new _TinyGradient(stops.reverse());
}
/**
* Return new instance with looped stops
* @return {TinyGradient}
*/
loop() {
let stops1 = [], stops2 = [];
return this.stops.forEach((stop) => {
stops1.push({
color: stop.color,
pos: stop.pos / 2
});
}), this.stops.slice(0, -1).forEach((stop) => {
stops2.push({
color: stop.color,
pos: 1 - stop.pos / 2
});
}), new _TinyGradient(stops1.concat(stops2.reverse()));
}
/**
* Generate gradient with RGBa interpolation
* @param {number} steps
* @return {tinycolor[]}
*/
rgb(steps) {
let substeps = computeSubsteps(this.stops, steps), gradient2 = [];
this.stops.forEach((stop, i) => {
stop.colorLess && (stop.color = interpolateRgb(this.stops[i - 1], this.stops[i + 1], 2)[1]);
});
for (let i = 0, l = this.stops.length; i < l - 1; i++) {
let rgb = interpolateRgb(this.stops[i], this.stops[i + 1], substeps[i]);
gradient2.splice(gradient2.length, 0, ...rgb);
}
return gradient2.push(this.stops[this.stops.length - 1].color), gradient2;
}
/**
* Generate gradient with HSVa interpolation
* @param {number} steps
* @param {boolean|'long'|'short'} [mode=false]
* - false to step in clockwise
* - true to step in trigonometric order
* - 'short' to use the shortest way
* - 'long' to use the longest way
* @return {tinycolor[]}
*/
hsv(steps, mode) {
let substeps = computeSubsteps(this.stops, steps), gradient2 = [];
this.stops.forEach((stop, i) => {
stop.colorLess && (stop.color = interpolateHsv(this.stops[i - 1], this.stops[i + 1], 2, mode)[1]);
});
for (let i = 0, l = this.stops.length; i < l - 1; i++) {
let hsv = interpolateHsv(this.stops[i], this.stops[i + 1], substeps[i], mode);
gradient2.splice(gradient2.length, 0, ...hsv);
}
return gradient2.push(this.stops[this.stops.length - 1].color), gradient2;
}
/**
* Generate CSS3 command (no prefix) for this gradient
* @param {String} [mode=linear] - 'linear' or 'radial'
* @param {String} [direction] - default is 'to right' or 'ellipse at center'
* @return {String}
*/
css(mode, direction) {
mode = mode || "linear", direction = direction || (mode === "linear" ? "to right" : "ellipse at center");
let css = mode + "-gradient(" + direction;
return this.stops.forEach(function(stop) {
css += ", " + (stop.colorLess ? "" : stop.color.toRgbString() + " ") + stop.pos * 100 + "%";
}), css += ")", css;
}
/**
* Returns the color at specific position with RGBa interpolation
* @param {number} pos, between 0 and 1
* @return {tinycolor}
*/
rgbAt(pos) {
return computeAt(this.stops, pos, "toRgb", RGBA_MAX);
}
/**
* Returns the color at specific position with HSVa interpolation
* @param {number} pos, between 0 and 1
* @return {tinycolor}
*/
hsvAt(pos) {
return computeAt(this.stops, pos, "toHsv", HSVA_MAX);
}
};
module.exports = function(stops) {
if (arguments.length === 1) {
if (!Array.isArray(arguments[0]))
throw new Error('"stops" is not an array');
stops = arguments[0];
} else
stops = Array.prototype.slice.call(arguments);
return new TinyGradient(stops);
};
}
});
// ../../node_modules/.pnpm/gradient-string@2.0.2/node_modules/gradient-string/index.js
var require_gradient_string = __commonJS({
"../../node_modules/.pnpm/gradient-string@2.0.2/node_modules/gradient-string/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var chalk = require_source(), tinygradient = require_tinygradient(), forbiddenChars = /\s/g;
function InitGradient(...args) {
let grad = tinygradient.apply(this, args), ret = (str, opts) => applyGradient(str ? str.toString() : "", grad, opts);
return ret.multiline = (str, opts) => multilineGradient(str ? str.toString() : "", grad, opts), ret;
}
var getColors = (gradient2, options, count) => options.interpolation.toLowerCase() === "hsv" ? gradient2.hsv(count, options.hsvSpin.toLowerCase()) : gradient2.rgb(count);
function applyGradient(str, gradient2, opts) {
let options = validateOptions(opts), colorsCount = Math.max(str.replace(forbiddenChars, "").length, gradient2.stops.length), colors = getColors(gradient2, options, colorsCount), result = "";
for (let s of str)
result += s.match(forbiddenChars) ? s : chalk.hex(colors.shift().toHex())(s);
return result;
}
function multilineGradient(str, gradient2, opts) {
let options = validateOptions(opts), lines = str.split(`
`), maxLength = Math.max.apply(null, lines.map((l) => l.length).concat([gradient2.stops.length])), colors = getColors(gradient2, options, maxLength), results = [];
for (let line of lines) {
let lineColors = colors.slice(0), lineResult = "";
for (let l of line)
lineResult += chalk.hex(lineColors.shift().toHex())(l);
results.push(lineResult);
}
return results.join(`
`);
}
function validateOptions(opts) {
let options = { interpolation: "rgb", hsvSpin: "short", ...opts };
if (opts !== void 0 && typeof opts != "object")
throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof opts}\``);
if (typeof options.interpolation != "string")
throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof options.interpolation}\``);
if (options.interpolation.toLowerCase() === "hsv" && typeof options.hsvSpin != "string")
throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof options.hsvSpin}\``);
return options;
}
var aliases = {
atlas: { colors: ["#feac5e", "#c779d0", "#4bc0c8"], options: {} },
cristal: { colors: ["#bdfff3", "#4ac29a"], options: {} },
teen: { colors: ["#77a1d3", "#79cbca", "#e684ae"], options: {} },
mind: { colors: ["#473b7b", "#3584a7", "#30d2be"], options: {} },
morning: { colors: ["#ff5f6d", "#ffc371"], options: { interpolation: "hsv" } },
vice: { colors: ["#5ee7df", "#b490ca"], options: { interpolation: "hsv" } },
passion: { colors: ["#f43b47", "#453a94"], options: {} },
fruit: { colors: ["#ff4e50", "#f9d423"], options: {} },
instagram: { colors: ["#833ab4", "#fd1d1d", "#fcb045"], options: {} },
retro: { colors: ["#3f51b1", "#5a55ae", "#7b5fac", "#8f6aae", "#a86aa4", "#cc6b8e", "#f18271", "#f3a469", "#f7c978"], options: {} },
summer: { colors: ["#fdbb2d", "#22c1c3"], options: {} },
rainbow: { colors: ["#ff0000", "#ff0100"], options: { interpolation: "hsv", hsvSpin: "long" } },
pastel: { colors: ["#74ebd5", "#74ecd5"], options: { interpolation: "hsv", hsvSpin: "long" } }
};
module.exports = InitGradient;
for (let a in aliases)
module.exports[a] = (str) => new InitGradient(aliases[a].colors)(str, aliases[a].options), module.exports[a].multiline = (str) => new InitGradient(aliases[a].colors).multiline(str, aliases[a].options);
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js
var require_now = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js"(exports, module) {
init_cjs_shims();
var root = require_root(), now = function() {
return root.Date.now();
};
module.exports = now;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js
var require_trimmedEndIndex = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js"(exports, module) {
init_cjs_shims();
var reWhitespace = /\s/;
function trimmedEndIndex(string) {
for (var index = string.length; index-- && reWhitespace.test(string.charAt(index)); )
;
return index;
}
module.exports = trimmedEndIndex;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js
var require_baseTrim = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js"(exports, module) {
init_cjs_shims();
var trimmedEndIndex = require_trimmedEndIndex(), reTrimStart = /^\s+/;
function baseTrim(string) {
return string && string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "");
}
module.exports = baseTrim;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js
var require_toNumber = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js"(exports, module) {
init_cjs_shims();
var baseTrim = require_baseTrim(), isObject = require_isObject(), isSymbol = require_isSymbol(), NAN = NaN, reIsBadHex = /^[-+]0x[0-9a-f]+$/i, reIsBinary = /^0b[01]+$/i, reIsOctal = /^0o[0-7]+$/i, freeParseInt = parseInt;
function toNumber(value) {
if (typeof value == "number")
return value;
if (isSymbol(value))
return NAN;
if (isObject(value)) {
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
value = isObject(other) ? other + "" : other;
}
if (typeof value != "string")
return value === 0 ? value : +value;
value = baseTrim(value);
var isBinary = reIsBinary.test(value);
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
}
module.exports = toNumber;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js
var require_debounce = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js"(exports, module) {
init_cjs_shims();
var isObject = require_isObject(), now = require_now(), toNumber = require_toNumber(), FUNC_ERROR_TEXT = "Expected a function", nativeMax = Math.max, nativeMin = Math.min;
function debounce4(func, wait, options) {
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = !1, maxing = !1, trailing = !0;
if (typeof func != "function")
throw new TypeError(FUNC_ERROR_TEXT);
wait = toNumber(wait) || 0, isObject(options) && (leading = !!options.leading, maxing = "maxWait" in options, maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait, trailing = "trailing" in options ? !!options.trailing : trailing);
function invokeFunc(time) {
var args = lastArgs, thisArg = lastThis;
return lastArgs = lastThis = void 0, lastInvokeTime = time, result = func.apply(thisArg, args), result;
}
function leadingEdge(time) {
return lastInvokeTime = time, timerId = setTimeout(timerExpired, wait), leading ? invokeFunc(time) : result;
}
function remainingWait(time) {
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
}
function shouldInvoke(time) {
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
}
function timerExpired() {
var time = now();
if (shouldInvoke(time))
return trailingEdge(time);
timerId = setTimeout(timerExpired, remainingWait(time));
}
function trailingEdge(time) {
return timerId = void 0, trailing && lastArgs ? invokeFunc(time) : (lastArgs = lastThis = void 0, result);
}
function cancel() {
timerId !== void 0 && clearTimeout(timerId), lastInvokeTime = 0, lastArgs = lastCallTime = lastThis = timerId = void 0;
}
function flush() {
return timerId === void 0 ? result : trailingEdge(now());
}
function debounced() {
var time = now(), isInvoking = shouldInvoke(time);
if (lastArgs = arguments, lastThis = this, lastCallTime = time, isInvoking) {
if (timerId === void 0)
return leadingEdge(lastCallTime);
if (maxing)
return clearTimeout(timerId), timerId = setTimeout(timerExpired, wait), invokeFunc(lastCallTime);
}
return timerId === void 0 && (timerId = setTimeout(timerExpired, wait)), result;
}
return debounced.cancel = cancel, debounced.flush = flush, debounced;
}
module.exports = debounce4;
}
});
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js
var require_throttle = __commonJS({
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"(exports, module) {
init_cjs_shims();
var debounce4 = require_debounce(), isObject = require_isObject(), FUNC_ERROR_TEXT = "Expected a function";
function throttle3(func, wait, options) {
var leading = !0, trailing = !0;
if (typeof func != "function")
throw new TypeError(FUNC_ERROR_TEXT);
return isObject(options) && (leading = "leading" in options ? !!options.leading : leading, trailing = "trailing" in options ? !!options.trailing : trailing), debounce4(func, wait, {
leading,
maxWait: wait,
trailing
});
}
module.exports = throttle3;
}
});
// ../cli-kit/dist/public/node/ui.js
init_cjs_shims();
// ../cli-kit/dist/public/node/system.js
init_cjs_shims();
var import_supports_hyperlinks = __toESM(require_supports_hyperlinks(), 1), import_which = __toESM(require_lib(), 1);
import { fstatSync, existsSync, readFileSync } from "fs";
import { release } from "os";
import { setTimeout as setTimeout2 } from "timers/promises";
var MAX_STDIN_SIZE = 10 * 1024 * 1024;
async function openURL(url) {
if (isCloudEnvironment())
return !1;
let externalOpen = await import("./open-JSCXNUDN.js");
try {
return await externalOpen.default(url), !0;
} catch {
return !1;
}
}
async function captureOutput(command, args, options) {
return (await buildExec(command, args, options)).stdout;
}
async function captureOutputWithExitCode(command, args, options) {
let result = await buildExec(command, args, options, { reject: !1 });
return {
stdout: result.stdout,
stderr: result.stderr,
exitCode: result.exitCode ?? 0
};
}
function parseCommand(command) {
let result = [], current = "", inQuote = null;
for (let char of command)
inQuote ? char === inQuote ? inQuote = null : current += char : char === '"' || char === "'" ? inQuote = char : char === " " || char === " " ? current && (result.push(current), current = "") : current += char;
return current && result.push(current), result;
}
async function captureCommandWithExitCode(command, options) {
let [cmd, ...args] = parseCommand(command);
return cmd ? captureOutputWithExitCode(cmd, args, options) : { stdout: "", stderr: "Empty command", exitCode: 1 };
}
async function execCommand(command, options) {
let [cmd, ...args] = parseCommand(command);
if (!cmd)
throw new AbortError("Empty command");
await exec(cmd, args, options);
}
async function exec(command, args, options) {
if (options) {
let runningOnWindows = platformAndArch().platform === "windows";
options.background = runningOnWindows ? !1 : options.background;
}
let commandProcess = buildExec(command, args, options);
options?.background && commandProcess.unref(), options?.stderr && options.stderr !== "inherit" && commandProcess.stderr?.pipe(options.stderr, { end: !1 }), options?.stdout && options.stdout !== "inherit" && commandProcess.stdout?.pipe(options.stdout, { end: !1 });
let aborted = !1;
options?.signal?.addEventListener("abort", () => {
let pid = commandProcess.pid;
pid && (outputDebug(`Killing process ${pid}: ${command} ${args.join(" ")}`), aborted = !0, treeKill(pid, "SIGTERM"));
});
try {
await commandProcess;
} catch (processError) {
if (aborted)
return;
if (options?.externalErrorHandler)
await options.externalErrorHandler(processError);
else {
let abortError = new ExternalError(processError.message, command, args);
throw abortError.stack = processError.stack, abortError;
}
}
}
function buildExec(command, args, options, execaOptions) {
let env2 = options?.env ?? process.env;
shouldDisplayColors() && (env2.FORCE_COLOR = "1");
let executionCwd = options?.cwd ?? cwd();
checkCommandSafety(command, { cwd: executionCwd });
let backgroundStdio = options?.input === void 0 ? "ignore" : ["pipe", "ignore", "ignore"], commandProcess = execa(command, args, {
env: env2,
cwd: executionCwd,
input: options?.input,
stdio: options?.background ? backgroundStdio : options?.stdio,
stdin: options?.stdin,
stdout: options?.stdout === "inherit" ? "inherit" : void 0,
stderr: options?.stderr === "inherit" ? "inherit" : void 0,
// Setting this to false makes it possible to kill the main process
// and all its sub-processes with Ctrl+C on Windows
windowsHide: !1,
detached: options?.background,
cleanup: !options?.background,
...execaOptions
});
return outputDebug(`Running system process${options?.background ? " in background" : ""}:
\xB7 Command: ${command} ${args.join(" ")}
\xB7 Working directory: ${executionCwd}
`), commandProcess;
}
function checkCommandSafety(command, _options) {
let pathIncludingLocal = `${_options.cwd}${delimiter}${process.env.PATH}`, commandPath = import_which.default.sync(command, {
nothrow: !0,
path: pathIncludingLocal
});
if (commandPath && dirname(commandPath) === _options.cwd) {
let headline = ["Skipped run of unsecure binary", { command }, "found in the current directory."], body = "Please remove that file or review your current PATH.";
throw renderWarning({ headline, body }), new AbortError(headline, body);
}
}
async function sleep(seconds) {
await setTimeout2(1e3 * seconds);
}
function terminalSupportsHyperlinks() {
return import_supports_hyperlinks.default.stdout;
}
function terminalSupportsPrompting() {
return isTruthy(process.env.CI) ? !1 : !!(process.stdin.isTTY && process.stdout.isTTY);
}
function isCI() {
return isTruthy(process.env.CI);
}
async function isWsl(overrides = {}) {
if ((overrides.platform ?? process.platform) !== "linux")
return !1;
let insideContainer = () => overrides.insideContainer ?? isInsideContainer();
if ((overrides.kernelRelease ?? release()).toLowerCase().includes("microsoft"))
return !insideContainer();
try {
return (overrides.procVersion ?? readFileSync("/proc/version", "utf8")).toLowerCase().includes("microsoft") ? !insideContainer() : !1;
} catch {
return !1;
}
}
function isInsideContainer() {
if (existsSync("/run/.containerenv") || existsSync("/.dockerenv"))
return !0;
try {
return readFileSync("/proc/self/cgroup", "utf8").includes("docker");
} catch {
return !1;
}
}
function isStdinPiped() {
try {
let stats = fstatSync(0);
return stats.isFIFO() || stats.isFile() || stats.isSocket();
} catch {
return !1;
}
}
async function readStdinString() {
if (!isStdinPiped())
return;
let data = "", totalSize = 0;
process.stdin.setEncoding("utf8");
for await (let chunk of process.stdin) {
let chunkString = String(chunk);
if (totalSize += Buffer.byteLength(chunkString, "utf8"), totalSize > MAX_STDIN_SIZE)
throw new AbortError("Stdin input exceeded the maximum allowed size.");
data += chunkString;
}
return data.trim();
}
// ../cli-kit/dist/public/node/abort.js
init_cjs_shims();
var AbortController2 = class extends globalThis.AbortController {
}, AbortSignal = globalThis.AbortSignal;
// ../cli-kit/dist/private/node/ui/components/ConcurrentOutput.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui.js
init_cjs_shims();
var import_react29 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/render.js
init_cjs_shims();
import { Stream } from "node:stream";
import process12 from "node:process";
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/ink.js
init_cjs_shims();
var import_react15 = __toESM(require_react(), 1);
import process11 from "node:process";
// ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/index.mjs
init_cjs_shims();
// ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/function/debounce.mjs
init_cjs_shims();
// ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/function/debounce.mjs
init_cjs_shims();
function debounce(func, debounceMs, { signal, edges } = {}) {
let pendingThis, pendingArgs = null, leading = edges != null && edges.includes("leading"), trailing = edges == null || edges.includes("trailing"), invoke = () => {
pendingArgs !== null && (func.apply(pendingThis, pendingArgs), pendingThis = void 0, pendingArgs = null);
}, onTimerEnd = () => {
trailing && invoke(), cancel();
}, timeoutId = null, schedule = () => {
timeoutId != null && clearTimeout(timeoutId), timeoutId = setTimeout(() => {
timeoutId = null, onTimerEnd();
}, debounceMs);
}, cancelTimer = () => {
timeoutId !== null && (clearTimeout(timeoutId), timeoutId = null);
}, cancel = () => {
cancelTimer(), pendingThis = void 0, pendingArgs = null;
}, flush = () => {
invoke();
}, debounced = function(...args) {
if (signal?.aborted)
return;
pendingThis = this, pendingArgs = args;
let isFirstCall = timeoutId == null;
schedule(), leading && isFirstCall && invoke();
};
return debounced.schedule = schedule, debounced.cancel = cancel, debounced.flush = flush, signal?.addEventListener("abort", cancel, { once: !0 }), debounced;
}
// ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/function/debounce.mjs
function debounce2(func, debounceMs = 0, options = {}) {
typeof options != "object" && (options = {});
let { leading = !1, trailing = !0, maxWait } = options, edges = Array(2);
leading && (edges[0] = "leading"), trailing && (edges[1] = "trailing");
let result, pendingAt = null, _debounced = debounce(function(...args) {
result = func.apply(this, args), pendingAt = null;
}, debounceMs, { edges }), debounced = function(...args) {
return maxWait != null && (pendingAt === null && (pendingAt = Date.now()), Date.now() - pendingAt >= maxWait) ? (result = func.apply(this, args), pendingAt = Date.now(), _debounced.cancel(), _debounced.schedule(), result) : (_debounced.apply(this, args), result);
}, flush = () => (_debounced.flush(), result);
return debounced.cancel = _debounced.cancel, debounced.flush = flush, debounced;
}
// ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/function/throttle.mjs
init_cjs_shims();
function throttle(func, throttleMs = 0, options = {}) {
let { leading = !0, trailing = !0 } = options;
return debounce2(func, throttleMs, {
leading,
maxWait: throttleMs,
trailing
});
}
// ../../node_modules/.pnpm/ansi-escapes@7.3.0/node_modules/ansi-escapes/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/ansi-escapes@7.3.0/node_modules/ansi-escapes/base.js
var base_exports = {};
__export(base_exports, {
ConEmu: () => ConEmu,
beep: () => beep,
beginSynchronizedOutput: () => beginSynchronizedOutput,
clearScreen: () => clearScreen,
clearTerminal: () => clearTerminal,
clearViewport: () => clearViewport,
cursorBackward: () => cursorBackward,
cursorDown: () => cursorDown,
cursorForward: () => cursorForward,
cursorGetPosition: () => cursorGetPosition,
cursorHide: () => cursorHide,
cursorLeft: () => cursorLeft,
cursorMove: () => cursorMove,
cursorNextLine: () => cursorNextLine,
cursorPrevLine: () => cursorPrevLine,
cursorRestorePosition: () => cursorRestorePosition,
cursorSavePosition: () => cursorSavePosition,
cursorShow: () => cursorShow,
cursorTo: () => cursorTo,
cursorUp: () => cursorUp,
endSynchronizedOutput: () => endSynchronizedOutput,
enterAlternativeScreen: () => enterAlternativeScreen,
eraseDown: () => eraseDown,
eraseEndLine: () => eraseEndLine,
eraseLine: () => eraseLine,
eraseLines: () => eraseLines,
eraseScreen: () => eraseScreen,
eraseStartLine: () => eraseStartLine,
eraseUp: () => eraseUp,
exitAlternativeScreen: () => exitAlternativeScreen,
iTerm: () => iTerm,
image: () => image,
link: () => link,
scrollDown: () => scrollDown,
scrollUp: () => scrollUp,
setCwd: () => setCwd,
synchronizedOutput: () => synchronizedOutput
});
init_cjs_shims();
import process2 from "node:process";
import os from "node:os";
// ../../node_modules/.pnpm/environment@1.1.0/node_modules/environment/index.js
init_cjs_shims();
var isBrowser = globalThis.window?.document !== void 0, isNode = globalThis.process?.versions?.node !== void 0, isBun = globalThis.process?.versions?.bun !== void 0, isDeno = globalThis.Deno?.version?.deno !== void 0, isElectron = globalThis.process?.versions?.electron !== void 0, isJsDom = globalThis.navigator?.userAgent?.includes("jsdom") === !0, isWebWorker = typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope, isDedicatedWorker = typeof DedicatedWorkerGlobalScope < "u" && globalThis instanceof DedicatedWorkerGlobalScope, isSharedWorker = typeof SharedWorkerGlobalScope < "u" && globalThis instanceof SharedWorkerGlobalScope, isServiceWorker = typeof ServiceWorkerGlobalScope < "u" && globalThis instanceof ServiceWorkerGlobalScope, platform = globalThis.navigator?.userAgentData?.platform, isMacOs = platform === "macOS" || globalThis.navigator?.platform === "MacIntel" || globalThis.navigator?.userAgent?.includes(" Mac ") === !0 || globalThis.process?.platform === "darwin", isWindows = platform === "Windows" || globalThis.navigator?.platform === "Win32" || globalThis.process?.platform === "win32", isLinux = platform === "Linux" || globalThis.navigator?.platform?.startsWith("Linux") === !0 || globalThis.navigator?.userAgent?.includes(" Linux ") === !0 || globalThis.process?.platform === "linux", isIos = platform === "iOS" || globalThis.navigator?.platform === "MacIntel" && globalThis.navigator?.maxTouchPoints > 1 || /iPad|iPhone|iPod/.test(globalThis.navigator?.platform), isAndroid = platform === "Android" || globalThis.navigator?.platform === "Android" || globalThis.navigator?.userAgent?.includes(" Android ") === !0 || globalThis.process?.platform === "android";
// ../../node_modules/.pnpm/ansi-escapes@7.3.0/node_modules/ansi-escapes/base.js
var ESC = "\x1B[", OSC = "\x1B]", BEL = "\x07", SEP = ";", isTerminalApp = !isBrowser && process2.env.TERM_PROGRAM === "Apple_Terminal", isWindows2 = !isBrowser && process2.platform === "win32", isTmux = !isBrowser && (process2.env.TERM?.startsWith("screen") || process2.env.TERM?.startsWith("tmux") || process2.env.TMUX !== void 0), cwdFunction = isBrowser ? () => {
throw new Error("`process.cwd()` only works in Node.js, not the browser.");
} : process2.cwd, wrapOsc = (sequence) => isTmux ? "\x1BPtmux;" + sequence.replaceAll("\x1B", "\x1B\x1B") + "\x1B\\" : sequence, cursorTo = (x, y) => {
if (typeof x != "number")
throw new TypeError("The `x` argument is required");
return typeof y != "number" ? ESC + (x + 1) + "G" : ESC + (y + 1) + SEP + (x + 1) + "H";
}, cursorMove = (x, y) => {
if (typeof x != "number")
throw new TypeError("The `x` argument is required");
let returnValue = "";
return x < 0 ? returnValue += ESC + -x + "D" : x > 0 && (returnValue += ESC + x + "C"), y < 0 ? returnValue += ESC + -y + "A" : y > 0 && (returnValue += ESC + y + "B"), returnValue;
}, cursorUp = (count = 1) => ESC + count + "A", cursorDown = (count = 1) => ESC + count + "B", cursorForward = (count = 1) => ESC + count + "C", cursorBackward = (count = 1) => ESC + count + "D", cursorLeft = ESC + "G", cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s", cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u", cursorGetPosition = ESC + "6n", cursorNextLine = ESC + "E", cursorPrevLine = ESC + "F", cursorHide = ESC + "?25l", cursorShow = ESC + "?25h", eraseLines = (count) => {
let clear = "";
for (let i = 0; i < count; i++)
clear += eraseLine + (i < count - 1 ? cursorUp() : "");
return count && (clear += cursorLeft), clear;
}, eraseEndLine = ESC + "K", eraseStartLine = ESC + "1K", eraseLine = ESC + "2K", eraseDown = ESC + "J", eraseUp = ESC + "1J", eraseScreen = ESC + "2J", scrollUp = ESC + "S", scrollDown = ESC + "T", clearScreen = "\x1Bc", clearViewport = `${eraseScreen}${ESC}H`, isOldWindows = () => {
if (isBrowser || !isWindows2)
return !1;
let parts = os.release().split("."), major = Number(parts[0]), build = Number(parts[2] ?? 0);
return major < 10 || major === 10 && build < 10586;
}, clearTerminal = isOldWindows() ? `${eraseScreen}${ESC}0f` : `${eraseScreen}${ESC}3J${ESC}H`, enterAlternativeScreen = ESC + "?1049h", exitAlternativeScreen = ESC + "?1049l", beginSynchronizedOutput = ESC + "?2026h", endSynchronizedOutput = ESC + "?2026l", synchronizedOutput = (text) => beginSynchronizedOutput + text + endSynchronizedOutput, beep = BEL, link = (text, url) => {
let openLink = wrapOsc(`${OSC}8${SEP}${SEP}${url}${BEL}`), closeLink = wrapOsc(`${OSC}8${SEP}${SEP}${BEL}`);
return openLink + text + closeLink;
}, image = (data, options = {}) => {
let returnValue = `${OSC}1337;File=inline=1`;
options.width && (returnValue += `;width=${options.width}`), options.height && (returnValue += `;height=${options.height}`), options.preserveAspectRatio === !1 && (returnValue += ";preserveAspectRatio=0");
let imageBuffer = Buffer.from(data);
return wrapOsc(returnValue + `;size=${imageBuffer.byteLength}:` + imageBuffer.toString("base64") + BEL);
}, iTerm = {
setCwd: (cwd3 = cwdFunction()) => wrapOsc(`${OSC}50;CurrentDir=${cwd3}${BEL}`),
annotation(message, options = {}) {
let returnValue = `${OSC}1337;`, hasX = options.x !== void 0, hasY = options.y !== void 0;
if ((hasX || hasY) && !(hasX && hasY && options.length !== void 0))
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
return message = message.replaceAll("|", ""), returnValue += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=", options.length > 0 ? returnValue += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|") : returnValue += message, wrapOsc(returnValue + BEL);
}
}, ConEmu = {
setCwd: (cwd3 = cwdFunction()) => wrapOsc(`${OSC}9;9;${cwd3}${BEL}`)
}, setCwd = (cwd3 = cwdFunction()) => iTerm.setCwd(cwd3) + ConEmu.setCwd(cwd3);
// ../../node_modules/.pnpm/is-in-ci@2.0.0/node_modules/is-in-ci/index.js
init_cjs_shims();
import { env } from "node:process";
var check = (key) => key in env && env[key] !== "0" && env[key] !== "false", isInCi = check("CI") || check("CONTINUOUS_INTEGRATION"), is_in_ci_default = isInCi;
// ../../node_modules/.pnpm/auto-bind@5.0.1/node_modules/auto-bind/index.js
init_cjs_shims();
var getAllProperties = (object) => {
let properties = /* @__PURE__ */ new Set();
do
for (let key of Reflect.ownKeys(object))
properties.add([object, key]);
while ((object = Reflect.getPrototypeOf(object)) && object !== Object.prototype);
return properties;
};
function autoBind(self2, { include, exclude } = {}) {
let filter = (key) => {
let match = (pattern) => typeof pattern == "string" ? key === pattern : pattern.test(key);
return include ? include.some(match) : exclude ? !exclude.some(match) : !0;
};
for (let [object, key] of getAllProperties(self2.constructor.prototype)) {
if (key === "constructor" || !filter(key))
continue;
let descriptor = Reflect.getOwnPropertyDescriptor(object, key);
descriptor && typeof descriptor.value == "function" && (self2[key] = self2[key].bind(self2));
}
return self2;
}
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/ink.js
var import_signal_exit2 = __toESM(require_signal_exit(), 1);
// ../../node_modules/.pnpm/patch-console@2.0.0/node_modules/patch-console/dist/index.js
init_cjs_shims();
import { PassThrough } from "node:stream";
var consoleMethods = [
"assert",
"count",
"countReset",
"debug",
"dir",
"dirxml",
"error",
"group",
"groupCollapsed",
"groupEnd",
"info",
"log",
"table",
"time",
"timeEnd",
"timeLog",
"trace",
"warn"
], originalMethods = {}, patchConsole = (callback) => {
let stdout = new PassThrough(), stderr = new PassThrough();
stdout.write = (data) => {
callback("stdout", data);
}, stderr.write = (data) => {
callback("stderr", data);
};
let internalConsole = new console.Console(stdout, stderr);
for (let method of consoleMethods)
originalMethods[method] = console[method], console[method] = internalConsole[method];
return () => {
for (let method of consoleMethods)
console[method] = originalMethods[method];
originalMethods = {};
};
}, dist_default = patchConsole;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/ink.js
var import_constants2 = __toESM(require_constants(), 1);
// ../../node_modules/.pnpm/yoga-layout@3.2.1/node_modules/yoga-layout/dist/src/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/yoga-layout@3.2.1/node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js
init_cjs_shims();
var loadYoga = (() => {
var _scriptDir = import.meta.url;
return (function(loadYoga2) {
loadYoga2 = loadYoga2 || {};
var h;
h || (h = typeof loadYoga2 < "u" ? loadYoga2 : {});
var aa, ca;
h.ready = new Promise(function(a, b) {
aa = a, ca = b;
});
var da = Object.assign({}, h), q = "";
typeof document < "u" && document.currentScript && (q = document.currentScript.src), _scriptDir && (q = _scriptDir), q.indexOf("blob:") !== 0 ? q = q.substr(0, q.replace(/[?#].*/, "").lastIndexOf("/") + 1) : q = "";
var ea = h.print || console.log.bind(console), v = h.printErr || console.warn.bind(console);
Object.assign(h, da), da = null;
var w;
h.wasmBinary && (w = h.wasmBinary);
var noExitRuntime = h.noExitRuntime || !0;
typeof WebAssembly != "object" && x("no native wasm support detected");
var fa, ha = !1;
function z(a, b, c) {
c = b + c;
for (var d = ""; !(b >= c); ) {
var e = a[b++];
if (!e) break;
if (e & 128) {
var f = a[b++] & 63;
if ((e & 224) == 192) d += String.fromCharCode((e & 31) << 6 | f);
else {
var g = a[b++] & 63;
e = (e & 240) == 224 ? (e & 15) << 12 | f << 6 | g : (e & 7) << 18 | f << 12 | g << 6 | a[b++] & 63, 65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));
}
} else d += String.fromCharCode(e);
}
return d;
}
var ia, ja, A, C, ka, D, E, la, ma;
function na() {
var a = fa.buffer;
ia = a, h.HEAP8 = ja = new Int8Array(a), h.HEAP16 = C = new Int16Array(a), h.HEAP32 = D = new Int32Array(a), h.HEAPU8 = A = new Uint8Array(a), h.HEAPU16 = ka = new Uint16Array(a), h.HEAPU32 = E = new Uint32Array(a), h.HEAPF32 = la = new Float32Array(a), h.HEAPF64 = ma = new Float64Array(a);
}
var oa, pa = [], qa = [], ra = [];
function sa() {
var a = h.preRun.shift();
pa.unshift(a);
}
var F = 0, ta = null, G = null;
function x(a) {
throw h.onAbort && h.onAbort(a), a = "Aborted(" + a + ")", v(a), ha = !0, a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info."), ca(a), a;
}
function ua(a) {
return a.startsWith("data:application/octet-stream;base64,");
}
var H;
if (H = "data:application/octet-stream;base64,AGFzbQEAAAABugM3YAF/AGACf38AYAF/AX9gA39/fwBgAn98AGACf38Bf2ADf39/AX9gBH9/f30BfWADf398AGAAAGAEf39/fwBgAX8BfGACf38BfGAFf39/f38Bf2AAAX9gA39/fwF9YAZ/f31/fX8AYAV/f39/fwBgAn9/AX1gBX9/f319AX1gAX8BfWADf35/AX5gB39/f39/f38AYAZ/f39/f38AYAR/f39/AX9gBn9/f319fQF9YAR/f31/AGADf399AX1gBn98f39/fwF/YAR/fHx/AGACf30AYAh/f39/f39/fwBgDX9/f39/f39/f39/f38AYAp/f39/f39/f39/AGAFf39/f38BfGAEfHx/fwF9YA1/fX1/f399fX9/f39/AX9gB39/f319f38AYAJ+fwF/YAN/fX0BfWABfAF8YAN/fHwAYAR/f319AGAHf39/fX19fQF9YA1/fX99f31/fX19fX1/AX9gC39/f39/f399fX19AX9gCH9/f39/f319AGAEf39+fgBgB39/f39/f38Bf2ACfH8BfGAFf398fH8AYAN/f38BfGAEf39/fABgA39/fQBgBn9/fX99fwF/ArUBHgFhAWEAHwFhAWIAAwF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CyAAIAUgAxAmCyAFQYACaiQAC/ICAgJ/AX4CQCACRQ0AIAAgAToAACAAIAJqIgNBAWsgAToAACACQQNJDQAgACABOgACIAAgAToAASADQQNrIAE6AAAgA0ECayABOgAAIAJBB0kNACAAIAE6AAMgA0EEayABOgAAIAJBCUkNACAAQQAgAGtBA3EiBGoiAyABQf8BcUGBgoQIbCIBNgIAIAMgAiAEa0F8cSIEaiICQQRrIAE2AgAgBEEJSQ0AIAMgATYCCCADIAE2AgQgAkEIayABNgIAIAJBDGsgATYCACAEQRlJDQAgAyABNgIYIAMgATYCFCADIAE2AhAgAyABNgIMIAJBEGsgATYCACACQRRrIAE2AgAgAkEYayABNgIAIAJBHGsgATYCACAEIANBBHFBGHIiBGsiAkEgSQ0AIAGtQoGAgIAQfiEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkEgayICQR9LDQALCyAAC4AEAQN/IAJBgARPBEAgACABIAIQFyAADwsgACACaiEDAkAgACABc0EDcUUEQAJAIABBA3FFBEAgACECDAELIAJFBEAgACECDAELIAAhAgNAIAIgAS0AADoAACABQQFqIQEgAkEBaiICQQNxRQ0BIAIgA0kNAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRq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gALIAYoAgwhACAGIAo2AgwgBiAIKAIEIgM2AhAgBiAIKAIINgIUIABFDQAgABAjIAYoAhAhAwsgBiADQQFqNgIQIAYoAgwgA0EDdkH8////AXFqIgAgACgCAEF+IAN3cTYCACABLwAAIQMLIANBB3EgC0EEdHJBCHIhAwsgASADOwAAIAhBEGokAAuPAQIBfwF9IwBBEGsiAyQAIANBCGogAEHoAGogAEHUAEHWACABQf4BcUECRhtqLwEAIgEgAC8BWCABQQdxGxAfQwAAwH8hBAJAAkACQCADLQAMQQFrDgIAAQILIAMqAgghBAwBCyADKgIIIAKUQwrXIzyUIQQLIANBEGokACAEQwAAAACXQwAAAAAgBCAEWxsL2AICBH8BfSMAQSBrIgMkAAJAIAAoAgwiAQRAIAAgACoClAMgACoCmAMgAREnACIFIAVbDQEgA0GqHjYCACAAQQVB2CUgAxAsECQACyADQRBqIAAQMgJAIAMoAhAiAiADKAIUIgFyRQ0AAkADQCABIAIoAuwDIAIoAugDIgJrQQJ1SQRAIAIgAUECdGooAgAiASgC3AMNAyABLwAVIAEtABdBEHRyIgJBgOAAcUGAwABHBEAgAkEIdkEPcSICBH8gAgUgAC0AFUEEdgtBBUYEQCAALQAUQQhxDQQLIAEtAABBAnENAyAEIAEgBBshBAsgA0EQahAuIAMoAhQiASADKAIQIgJyDQEMAwsLEAIACyABIQQLIAMoAhgiAQRAA0AgASgCACECIAEQIyACIgENAAsLIARFBEAgACoCmAMhBQwBCyAEEE4gBCoCoAOSIQULIANBIGokACAFC6EDAQh/AkAgACgC6AMiBSAAKALsAyIHRwRAA0AgACAFKAIAIgIoAuQDRwRAAkAgACgC9AMoAgAiAQRAIAIgACAGIAERBgAiAQ0BC0GIBBAeIgEgAigCEDYCECABIAIpAgg3AgggASACKQIANwIAIAFBFGogAkEUakHoABArGiABQgA3AoABIAFB/ABqIgNBADsBACABQgA3AogBIAFCADcCkAEgAyACQfwAahCgASABQZgBaiACQZgBakHQAhArGiABQQA2AvADIAFCADcC6AMgAigC7AMiAy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MLzQECA38CfSMAQRBrIgMkAEEBIQQgA0EIaiAAQfwAaiIFIAAgAUEBdGpBMmoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyADQRBqJAALDwAgASAAKAIAaiACOQMACw0AIAEgACgCAGorAwALCwAgAARAIAAQIwsLxwECBH8CfSMAQRBrIgIkACACQQhqIABB/ABqIgQgAEEeaiIFLwEAEB9BASEDAkACQCACKgIIIgcgASoCACIGXARAIAcgB1sEQCABLQAEIQEMAgsgBiAGXCEDCyABLQAEIQEgA0UNACACLQAMIAFB/wFxRg0BCyAEIAUgBiABEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyACQRBqJAALlgMCA34CfyAAvSICQjSIp0H/D3EiBEH/D0YEQCAARAAAAAAAAPA/oiIAIACjDwsgAkIBhiIBQoCAgICAgIDw/wBYBEAgAEQAAAAAAAAAAKIgACABQoCAgICAgIDw/wBRGw8LAn4gBEUEQEEAIQQgAkIMhiIBQgBZBEADQCAEQQFrIQQgAUIBhiIBQgBZDQALCyACQQEgBGuthgwBCyACQv////////8Hg0KAgICAgICACIQLIQEgBEH/B0oEQANAAkAgAUKAgICAgICACH0iA0IAUw0AIAMiAUIAUg0AIABEAAAAAAAAAACiDwsgAUIBhiEBIARBAWsiBEH/B0oNAAtB/wchBAsCQCABQoCAgICAgIAIfSIDQgBTDQAgAyIBQgBSDQAgAEQAAAAAAAAAAKIPCyABQv////////8HWARAA0AgBEEBayEEIAFCgICAgICAgARUIQUgAUIBhiEBIAUNAAsLIAJCgICAgICAgICAf4MgAUKAgICAgICACH0gBK1CNIaEIAFBASAEa62IIARBAE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ClAEhAyABQQA2ApQBIAMEQCADEFsLIAEQJyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALIAAoAgQhASAAQQA2AgQgAQRAIAEgASgCACgCBBEAAAsgBkEgaiQAIAAQIwsLtQEBAX8jAEEQayICJAACfyABBEAgASgCACEBQYgEEB4gARBcIAENARogAkH3GTYCACACEHIQJAALQZQ7LQAARQRAQfg6QQM2AgBBiDtCgICAgICAgMA/NwIAQYA7QgA3AgBBlDtBAToAAEH8OkH8Oi0AAEH+AXE6AABB9DpBADYCAEGQO0EANgIAC0GIBBAeQfQ6EFwLIQEgAEIANwIEIAAgATYCACABIAA2AgQgAkEQaiQAIAALGwEBfyAABEAgACgCACIBBEAgARAjCyAAECMLC0kBAn9BBBAeIQFBIBAeIgBBADYCHCAAQoCAgICAgIDAPzcCFCAAQgA3AgwgAEEAOgAIIABBAzYCBCAAQQA2AgAgASAANgIAIAELIAAgAkEFR0EAIAIbRQRAQbgwIAMgBBBJDwsgAyAEEHALIgEBfiABIAKtIAOtQiCGhCAEIAARFQAiBUIgiKckASAFpwuoAQEFfyAAKAJUIgMoAgAhBSADKAIEIgQgACgCFCAAKAIcIgdrIgYgBCAGSRsiBgRAIAUgByAGECsaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECsaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACCwQAQgALBABBAAuKBQIGfgJ/IAEgASgCAEEHakF4cSIBQRBqNgIAIAAhCSABKQMAIQMgASkDCCEGIwBBIGsiCCQAAkAgBkL///////////8AgyIEQoCAgICAgMCAPH0gBEKAgICAgIDA/8MAfVQEQCAGQgSGIANCPIiEIQQgA0L//////////w+DIgNCgYCAgICAgIAIWgRAIARCgYCAgICAgIDAAHwhAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDAELIABFDQAgBUHAACAAa62GIAMgAK0iAoiEIQMgBSACiCEFCyAIIAM3AwAgCCAFNwMIIAgpAwhCBIYgCCkDACIDQjyIhCECIAgpAxAgCCkDGIRCAFKtIANC//////////8Pg4QiA0KBgICAgICAgAhaBEAgAkIBfCECDAELIANCgICAgICAgIAIUg0AIAJCAYMgAnwhAgsgCEEgaiQAIAkgAiAGQoCAgICAgICAgH+DhL85AwALmRgDEn8BfAN+IwBBsARrIgwkACAMQQA2AiwCQCABvSIZQgBTBEBBASERQZkJIRMgAZoiAb0hGQwBCyAEQYAQcQRAQQEhEUGcCSETDAELQZ8JQZoJIARBAXEiERshEyARRSEVCwJAIBlCgICAgICAgPj/AINCgICAgICAgPj/AFEEQCAAQSAgAiARQQNqIgMgBEH//3txECkgACATIBEQJiAAQe0VQdweIAVBIHEiBRtB4RpB4B4gBRsgASABYhtBAxAmIABBICACIAMgBEGAwABzECkgAyACIAIgA0gbIQoMAQsgDEEQaiESAkACfwJAIAEgDEEsahCMASIBIAGgIgFEAAAAAAAAAABiBEAgDCAMKAIsIgZBAWs2AiwgBUEgciIOQeEARw0BDAMLIAVBIHIiDkHhAEYNAiAMKAIsIQlBBiADIANBAEgbDAELIAwgBkEdayIJNgIsIAFEAAAAAAAAsEGiIQFBBiADIANBAEgbCyELIAxBMGpBoAJBACAJQQBOG2oiDSEHA0AgBwJ/IAFEAAAAAAAA8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ASgCACAAaigCAAUgAAsRAwBBEBAeIgAgAykDCDcDCCAAIAMpAwA3AwAgA0EQaiQAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCAALCQAgASAAEQIACwUAQcM7Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwAgAEIANwMIIAALDABBMBAeQQBBMBAqCzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRHgALBQBBvjsLIQAgACABKAIAIAEgASwAC0EASBtBuzsgAigCABAQNgIACyoBAX9BDBAeIgFBADoABCABIAAoAgA2AgggAEEANgIAIAFB2Cc2AgAgAQsFAEG7OwsFAEG4OwshACAAIAEoAgAgASABLAALQQBIG0GkOyACKAIAEBA2AgAL2AEBBH8jAEEgayIDJAAgASgCACIEQfD///8HSQRAAkACQCAEQQtPBEAgBEEPckEBaiIFEB4hBiADIAVBgICAgHhyNgIQIAMgBjYCCCADIAQ2AgwgBCAGaiEFDAELIAMgBDoAEyADQQhqIgYgBGohBSAERQ0BCyAGIAFBBGogBBArGgsgBUEAOgAAIAMgAjYCACADQRhqIANBCGogAyAAEQMAIAMoAhgQHSADKAIYIgAQBiADKAIAEAYgAywAE0EASARAIAMoAggQIwsgA0EgaiQAIAAPCxACAAsqAQF/QQwQHiIBQQA6AAQgASAAKAIANgIIIABBADYCACABQeAmNgIAIAELBQBBpDsLaQECfyMAQRBrIgYkACABIAAoAgQiB0EBdWohASAAKAIAIQAgBiABIAIgAyAEIAUgB0EBcQR/IAEoAgAgAGooAgAFIAALERAAQRAQHiIAIAYpAwg3AwggACAGKQMANwMAIAZBEGokACAACwUAQaA7Cx0AIAAoAgA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AUEDOgAMIAFBgICA/gc2AgggASABKQMINwMAIAAgARBrIAFBEGokAAt6AgN/AX0jAEEQayICJAAgACgCACEDAn0gAbYiBSAFXARAQQAhAEMAAMB/DAELQQBBAiAFQwAAgH9bIAVDAACA/1tyIgQbIQBDAADAfyAFIAQbCyEFIAIgADoADCACIAU4AgggAiACKQMINwMAIAMgAhBrIAJBEGokAAtyAgF9An8jAEEQayIDJAAgACgCACEEIAMCfyABtiICIAJcBEBDAADAfyECQQAMAQtDAADAfyACIAJDAACAf1sgAkMAAID/W3IiABshAiAARQs6AAwgAyACOAIIIAMgAykDCDcDACAEIAMQayADQRBqJAALoAECA38CfQJAIAAoAgAiAEH8AGoiAyAAQRhqIgIvAQAQICIGIAG2IgVbDQAgBSAFWyIERSAGIAZccQ0AAkAgBEUEQCACIAIvAQBB+P8DcTsBAAwBCyADIAIgBUEDEEwLA0AgAC0AACICQQRxDQEgACACQQRyOgAAIAAoAhAiAgRAIAAgAhEAAAsgAEGAgID+BzYCnAEgACgC5AMiAA0ACwsLkAEBAX8CQCAAKAIAIgBBF2otAAAiAkECdkEDcSABQf8BcUYNACAAIAAvABUgAkEQdHIiAjsAFSAAIAJB///PB3EgAUEDcUESdHJBEHY6ABcDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCwuNAQEBfwJAIAAoAgAiAEEXai0AACICQQNxIAFB/wFxRg0AIAAgAC8AFSACQRB0ciICOwAVIAAgAkH///MHcSABQQNxQRB0ckEQdjoAFwNAIAAtAAAiAUEEcQ0BIAAgAUEEcjoAACAAKAIQIgEEQCAAIAERAAALIABBgICA/gc2ApwBIAAoAuQDIgANAAsLC0MBAX8jAEEQayICJAAgACgCACEAIAJBAzoADCACQYCAgP4HNgIIIAIgAikDCDcDACAAIAFB/wFxIAIQZSACQRBqJAALgAECA38BfSMAQRBrIgMkACAAKAIAIQQCfSACtiIGIAZcBEBBACEAQwAAwH8MAQt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BIQMgBCEGQQEhBCAGRQ0ACyABLwB6IgBBB3FFBEAgBS0AekEHcUUNAgsgCCAAECAiCiAHIAUvAHoQICILWw0BIAogClsNACALIAtcDQELIAFBFGogBUEUakHoABArGiABQfwAaiAFQfwAahCgAQNAIAEtAAAiAEEEcQ0BIAEgAEEEcjoAACABKAIQIgAEQCABIAARAAALIAFBgICA/gc2ApwBIAEoAuQDIgENAAsLIAJBEGokAAvGAwEEfyMAQaAEayICJAAgACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALAkAgACgCACIAKALoAyAAKALsA0YEQCAAKALkAw0BIAAgAkEYaiAAKAL0AxBcIgEpAgA3AgAgACABKAIQNgIQIAAgASkCCDcCCCAAQRRqIAFBFGpB6AAQKxogACABKQKMATcCjAEgACABKQKEATcChAEgACABKQJ8NwJ8IAEoApQBIQQgAUEANgKUASAAKAKUASEDIAAgBDYClAEgAwRAIAMQWwsgAEGYAWogAUGYAWpB0AIQKxogACgC6AMiAwRAIAAgAzYC7AMgAxAjCyAAIAEoAugDNgLoAyAAIAEoAuwDNgLsAyAAIAEoAvADNgLwAyABQQA2AvADIAFCADcC6AMgACABKQL8AzcC/AMgACABKQL0AzcC9AMgACABKAKEBDYChAQgASgClAEhACABQQA2ApQBIAAEQCAAEFsLIAJBoARqJAAPCyACQfAcNgIQIABBBUHYJSACQRBqECwQJAALIAJB5hE2AgAgAEEFQdglIAIQLBAkAAsLAEEMEB4gABCiAQsLAEEMEB5BABCiAQsNACAAKAIALQAIQQFxCwoAIAAoAgAoAhQLGQAgAUH/AXEEQBACAAsgACgCACgCEEEBcQsYACAAKAIAIgAgAC0ACEH+AXEgAXI6AAgLJgAgASAAKAIAIgAoAhRHBEAgACABNgIUIAAgACgCDEEBajYCDAsLkgEBAn8jAEEQayICJAAgACgCACEAIAFDAAAAAGAEQCABIAAqAhhcBEAgACABOAIYIAAgACgCDEEBajYCDAsgAkEQai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AAAAAAAQAAAQAEG/LQsBEgBByy0LHhEAAAAAEQAAAAAJEgAAAAAAEgAAEgAAGgAAABoaGgBBgi4LDhoAAAAaGhoAAAAAAAAJAEGzLgsBFABBvy4LFRcAAAAAFwAAAAAJFAAAAAAAFAAAFABB7S4LARYAQfkuCycVAAAAABUAAAAACRYAAAAAABYAABYAADAxMjM0NTY3ODlBQkNERUYAQcQvCwHSAEHsLwsI//////////8AQbAwCwkQIgEAAAAAAAUAQcQwCwHNAEHcMAsKzgAAAM8AAAD8HQBB9DALAQIAQYQxCwj//////////wBByDELAQUAQdQxCwHQAEHsMQsOzgAAANEAAAAIHgAAAAQAQYQyCwEBAEGUMgsF/////woAQdgyCwHT", !ua(H)) {
var va = H;
H = h.locateFile ? h.locateFile(va, q) : q + va;
}
function wa() {
var a = H;
try {
if (a == H && w) return new Uint8Array(w);
if (ua(a)) try {
var b = xa(a.slice(37)), c = new Uint8Array(b.length);
for (a = 0; a < b.length; ++a) c[a] = b.charCodeAt(a);
var d = c;
} catch {
throw Error("Converting base64 string to bytes failed.");
}
else d = void 0;
var e = d;
if (e) return e;
throw "both async and sync fetching of the wasm failed";
} catch (f) {
x(f);
}
}
function ya() {
return w || typeof fetch != "function" ? Promise.resolve().then(function() {
return wa();
}) : fetch(H, { credentials: "same-origin" }).then(function(a) {
if (!a.ok) throw "failed to load wasm binary file at '" + H + "'";
return a.arrayBuffer();
}).catch(function() {
return wa();
});
}
function za(a) {
for (; 0 < a.length; ) a.shift()(h);
}
function Aa(a) {
if (a === void 0) return "_unknown";
a = a.replace(/[^a-zA-Z0-9_]/g, "$");
var b = a.charCodeAt(0);
return 48 <= b && 57 >= b ? "_" + a : a;
}
function Ba(a, b) {
return a = Aa(a), function() {
return b.apply(this, arguments);
};
}
var J = [{}, { value: void 0 }, { value: null }, { value: !0 }, { value: !1 }], Ca = [];
function Da(a) {
var b = Error, c = Ba(a, function(d) {
this.name = a, this.message = d, d = Error(d).stack, d !== void 0 && (this.stack = this.toString() + `
` + d.replace(/^Error(:[^\n]*)?\n/, ""));
});
return c.prototype = Object.create(b.prototype), c.prototype.constructor = c, c.prototype.toString = function() {
return this.message === void 0 ? this.name : this.name + ": " + this.message;
}, c;
}
var K = void 0;
function L(a) {
throw new K(a);
}
var M = (a) => (a || L("Cannot use deleted val. handle = " + a), J[a].value), Ea = (a) => {
switch (a) {
case void 0:
return 1;
case null:
return 2;
case !0:
return 3;
case !1:
return 4;
default:
var b = Ca.length ? Ca.pop() : J.length;
return J[b] = { ga: 1, value: a }, b;
}
}, Fa = void 0, Ga = void 0;
function N(a) {
for (var b = ""; A[a]; ) b += Ga[A[a++]];
return b;
}
var O = [];
function Ha() {
for (; O.length; ) {
var a = O.pop();
a.M.$ = !1, a.delete();
}
}
var P = void 0, Q = {};
function Ia(a, b) {
for (b === void 0 && L("ptr should not be undefined"); a.R; ) b = a.ba(b), a = a.R;
return b;
}
var R = {};
function Ja(a) {
a = Ka(a);
var b = N(a);
return S(a), b;
}
function La(a, b) {
var c = R[a];
return c === void 0 && L(b + " has unknown type " + Ja(a)), c;
}
function Ma() {
}
var Na = !1;
function Oa(a) {
--a.count.value, a.count.value === 0 && (a.T ? a.U.W(a.T) : a.P.N.W(a.O));
}
function Pa(a, b, c) {
return b === c ? a : c.R === void 0 ? null : (a = Pa(a, b, c.R), a === null ? null : c.na(a));
}
var Qa = {};
function Ra(a, b) {
return b = Ia(a, b), Q[b];
}
var Sa = void 0;
function Ta(a) {
throw new Sa(a);
}
function Ua(a, b) {
return b.P && b.O || Ta("makeClassHandle requires ptr and ptrType"), !!b.U != !!b.T && Ta("Both smartPtrType and smartPtr must be specified"), b.count = { value: 1 }, T(Object.create(a, { M: { value: b } }));
}
function T(a) {
return typeof FinalizationRegistry > "u" ? (T = (b) => b, a) : (Na = new FinalizationRegistry((b) => {
Oa(b.M);
}), T = (b) => {
var c = b.M;
return c.T && Na.register(b, { M: c }, b), b;
}, Ma = (b) => {
Na.unregister(b);
}, T(a));
}
var Va = {};
function Wa(a) {
for (; a.length; ) {
var b = a.pop();
a.pop()(b);
}
}
function Xa(a) {
return this.fromWireType(D[a >> 2]);
}
var U = {}, Ya = {};
function V(a, b, c) {
function d(k) {
k = c(k), k.length !== a.length && Ta("Mismatched type converter count");
for (var m = 0; m < a.length; ++m) W(a[m], k[m]);
}
a.forEach(function(k) {
Ya[k] = b;
});
var e = Array(b.length), f = [], g = 0;
b.forEach((k, m) => {
R.hasOwnProperty(k) ? e[m] = R[k] : (f.push(k), U.hasOwnProperty(k) || (U[k] = []), U[k].push(() => {
e[m] = R[k], ++g, g === f.length && d(e);
}));
}), f.length === 0 && d(e);
}
function Za(a) {
switch (a) {
case 1:
return 0;
case 2:
return 1;
case 4:
return 2;
case 8:
return 3;
default:
throw new TypeError("Unknown type size: " + a);
}
}
function W(a, b, c = {}) {
if (!("argPackAdvance" in b)) throw new TypeError("registerType registeredInstance requires argPackAdvance");
var d = b.name;
if (a || L('type "' + d + '" must have a positive integer typeid pointer'), R.hasOwnProperty(a)) {
if (c.ua) return;
L("Cannot register type '" + d + "' twice");
}
R[a] = b, delete Ya[a], U.hasOwnProperty(a) && (b = U[a], delete U[a], b.forEach((e) => e()));
}
function $a(a) {
L(a.M.P.N.name + " instance already deleted");
}
function X() {
}
function ab(a, b, c) {
if (a[b].S === void 0) {
var d = a[b];
a[b] = function() {
return a[b].S.hasOwnProperty(arguments.length) || L("Function '" + c + "' called with an invalid number of arguments (" + arguments.length + ") - expects one of (" + a[b].S + ")!"), a[b].S[arguments.length].apply(this, arguments);
}, a[b].S = [], a[b].S[d.Z] = d;
}
}
function bb(a, b) {
h.hasOwnProperty(a) ? (L("Cannot register public name '" + a + "' twice"), ab(h, a, a), h.hasOwnProperty(void 0) && L("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"), h[a].S[void 0] = b) : h[a] = b;
}
function cb(a, b, c, d, e, f, g, k) {
this.name = a, this.constructor = b, this.X = c, this.W = d, this.R = e, this.pa = f, this.ba = g, this.na = k, this.ja = [];
}
function db(a, b, c) {
for (; b !== c; ) b.ba || L("Expected null or instance of " + c.name + ", got an instance of " + b.name), a = b.ba(a), b = b.R;
return a;
}
function eb(a, b) {
return b === null ? (this.ea && L("null is not a valid " + this.name), 0) : (b.M || L('Cannot pass "' + fb(b) + '" as a ' + this.name), b.M.O || L("Cannot pass deleted object as a pointer of type " + this.name), db(b.M.O, b.M.P.N, this.N));
}
function gb(a, b) {
if (b === null) {
if (this.ea && L("null is not a valid " + this.name), this.da) {
var c = this.fa();
return a !== null && a.push(this.W, c), c;
}
return 0;
}
if (b.M || L('Cannot pass "' + fb(b) + '" as a ' + this.name), b.M.O || L("Cannot pass deleted object as a pointer of type " + this.name), !this.ca && b.M.P.ca && L("Cannot convert argument of type " + (b.M.U ? b.M.U.name : b.M.P.name) + " to parameter type " + this.name), c = db(b.M.O, b.M.P.N, this.N), this.da) switch (b.M.T === void 0 && L("Passing raw pointer to smart pointer is illegal"), this.Ba) {
case 0:
b.M.U === this ? c = b.M.T : L("Cannot convert argument of type " + (b.M.U ? b.M.U.name : b.M.P.name) + " to parameter type " + this.name);
break;
case 1:
c = b.M.T;
break;
case 2:
if (b.M.U === this) c = b.M.T;
else {
var d = b.clone();
c = this.xa(c, Ea(function() {
d.delete();
})), a !== null && a.push(this.W, c);
}
break;
default:
L("Unsupporting sharing policy");
}
return c;
}
function hb(a, b) {
return b === null ? (this.ea && L("null is not a valid " + this.name), 0) : (b.M || L('Cannot pass "' + fb(b) + '" as a ' + this.name), b.M.O || L("Cannot pass deleted object as a pointer of type " + this.name), b.M.P.ca && L("Cannot convert argument of type " + b.M.P.name + " to parameter type " + this.name), db(b.M.O, b.M.P.N, this.N));
}
function Y(a, b, c, d) {
this.name = a, this.N = b, this.ea = c, this.ca = d, this.da = !1, this.W = this.xa = this.fa = this.ka = this.Ba = this.wa = void 0, b.R !== void 0 ? this.toWireType = gb : (this.toWireType = d ? eb : hb, this.V = null);
}
function ib(a, b) {
h.hasOwnProperty(a) || Ta("Replacing nonexistant public symbol"), h[a] = b, h[a].Z = void 0;
}
function jb(a, b) {
var c = [];
return function() {
if (c.length = 0, Object.assign(c, arguments), a.includes("j")) {
var d = h["dynCall_" + a];
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
} else d = oa.get(b).apply(null, c);
return d;
};
}
function Z(a, b) {
a = N(a);
var c = a.includes("j") ? jb(a, b) : oa.get(b);
return typeof c != "function" && L("unknown function pointer with signature " + a + ": " + b), c;
}
var mb = void 0;
function nb(a, b) {
function c(f) {
e[f] || R[f] || (Ya[f] ? Ya[f].forEach(c) : (d.push(f), e[f] = !0));
}
var d = [], e = {};
throw b.forEach(c), new mb(a + ": " + d.map(Ja).join([", "]));
}
function ob(a, b, c, d, e) {
var f = b.length;
2 > f && L("argTypes array size mismatch! Must at least get return value and 'this' types!");
var g = b[1] !== null && c !== null, k = !1;
for (c = 1; c < b.length; ++c) if (b[c] !== null && b[c].V === void 0) {
k = !0;
break;
}
var m = b[0].name !== "void", l = f - 2, n = Array(l), p = [], r = [];
return function() {
if (arguments.length !== l && L("function " + a + " called with " + arguments.length + " arguments, expected " + l + " args!"), r.length = 0, p.length = g ? 2 : 1, p[0] = e, g) {
var u = b[1].toWireType(r, this);
p[1] = u;
}
for (var t = 0; t < l; ++t) n[t] = b[t + 2].toWireType(r, arguments[t]), p.push(n[t]);
if (t = d.apply(null, p), k) Wa(r);
else for (var y = g ? 1 : 2; y < b.length; y++) {
var B = y === 1 ? u : n[y - 2];
b[y].V !== null && b[y].V(B);
}
return u = m ? b[0].fromWireType(t) : void 0, u;
};
}
function pb(a, b) {
for (var c = [], d = 0; d < a; d++) c.push(E[b + 4 * d >> 2]);
return c;
}
function qb(a) {
4 < a && --J[a].ga === 0 && (J[a] = void 0, Ca.push(a));
}
function fb(a) {
if (a === null) return "null";
var b = typeof a;
return b === "object" || b === "array" || b === "function" ? a.toString() : "" + a;
}
function rb(a, b) {
switch (b) {
case 2:
return function(c) {
return this.fromWireType(la[c >> 2]);
};
case 3:
return function(c) {
return this.fromWireType(ma[c >> 3]);
};
default:
throw new TypeError("Unknown float type: " + a);
}
}
function sb(a, b, c) {
switch (b) {
case 0:
return c ? function(d) {
return ja[d];
} : function(d) {
return A[d];
};
case 1:
return c ? function(d) {
return C[d >> 1];
} : function(d) {
return ka[d >> 1];
};
case 2:
return c ? function(d) {
return D[d >> 2];
} : function(d) {
return E[d >> 2];
};
default:
throw new TypeError("Unknown integer type: " + a);
}
}
function tb(a, b) {
for (var c = "", d = 0; !(d >= b / 2); ++d) {
var e = C[a + 2 * d >> 1];
if (e == 0) break;
c += String.fromCharCode(e);
}
return c;
}
function ub(a, b, c) {
if (c === void 0 && (c = 2147483647), 2 > c) return 0;
c -= 2;
var d = b;
c = c < 2 * a.length ? c / 2 : a.length;
for (var e = 0; e < c; ++e) C[b >> 1] = a.charCodeAt(e), b += 2;
return C[b >> 1] = 0, b - d;
}
function vb(a) {
return 2 * a.length;
}
function wb(a, b) {
for (var c = 0, d = ""; !(c >= b / 4); ) {
var e = D[a + 4 * c >> 2];
if (e == 0) break;
++c, 65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
}
return d;
}
function xb(a, b, c) {
if (c === void 0 && (c = 2147483647), 4 > c) return 0;
var d = b;
c = d + c - 4;
for (var e = 0; e < a.length; ++e) {
var f = a.charCodeAt(e);
if (55296 <= f && 57343 >= f) {
var g = a.charCodeAt(++e);
f = 65536 + ((f & 1023) << 10) | g & 1023;
}
if (D[b >> 2] = f, b += 4, b + 4 > c) break;
}
return D[b >> 2] = 0, b - d;
}
function yb(a) {
for (var b = 0, c = 0; c < a.length; ++c) {
var d = a.charCodeAt(c);
55296 <= d && 57343 >= d && ++c, b += 4;
}
return b;
}
var zb = {};
function Ab(a) {
var b = zb[a];
return b === void 0 ? N(a) : b;
}
var Bb = [];
function Cb(a) {
var b = Bb.length;
return Bb.push(a), b;
}
function Db(a, b) {
for (var c = Array(a), d = 0; d < a; ++d) c[d] = La(E[b + 4 * d >> 2], "parameter " + d);
return c;
}
var Eb = [], Fb = [null, [], []];
K = h.BindingError = Da("BindingError"), h.count_emval_handles = function() {
for (var a = 0, b = 5; b < J.length; ++b) J[b] !== void 0 && ++a;
return a;
}, h.get_first_emval = function() {
for (var a = 5; a < J.length; ++a) if (J[a] !== void 0) return J[a];
return null;
}, Fa = h.PureVirtualError = Da("PureVirtualError");
for (var Gb = Array(256), Hb = 0; 256 > Hb; ++Hb) Gb[Hb] = String.fromCharCode(Hb);
Ga = Gb, h.getInheritedInstanceCount = function() {
return Object.keys(Q).length;
}, h.getLiveInheritedInstances = function() {
var a = [], b;
for (b in Q) Q.hasOwnProperty(b) && a.push(Q[b]);
return a;
}, h.flushPendingDeletes = Ha, h.setDelayFunction = function(a) {
P = a, O.length && P && P(Ha);
}, Sa = h.InternalError = Da("InternalError"), X.prototype.isAliasOf = function(a) {
if (!(this instanceof X && a instanceof X)) return !1;
var b = this.M.P.N, c = this.M.O, d = a.M.P.N;
for (a = a.M.O; b.R; ) c = b.ba(c), b = b.R;
for (; d.R; ) a = d.ba(a), d = d.R;
return b === d && c === a;
}, X.prototype.clone = function() {
if (this.M.O || $a(this), this.M.aa) return this.M.count.value += 1, this;
var a = T, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.M;
return a = a(c.call(b, d, { M: { value: { count: e.count, $: e.$, aa: e.aa, O: e.O, P: e.P, T: e.T, U: e.U } } })), a.M.count.value += 1, a.M.$ = !1, a;
}, X.prototype.delete = function() {
this.M.O || $a(this), this.M.$ && !this.M.aa && L("Object already scheduled for deletion"), Ma(this), Oa(this.M), this.M.aa || (this.M.T = void 0, this.M.O = void 0);
}, X.prototype.isDeleted = function() {
return !this.M.O;
}, X.prototype.deleteLater = function() {
return this.M.O || $a(this), this.M.$ && !this.M.aa && L("Object already scheduled for deletion"), O.push(this), O.length === 1 && P && P(Ha), this.M.$ = !0, this;
}, Y.prototype.qa = function(a) {
return this.ka && (a = this.ka(a)), a;
}, Y.prototype.ha = function(a) {
this.W && this.W(a);
}, Y.prototype.argPackAdvance = 8, Y.prototype.readValueFromPointer = Xa, Y.prototype.deleteObject = function(a) {
a !== null && a.delete();
}, Y.prototype.fromWireType = function(a) {
function b() {
return this.da ? Ua(this.N.X, { P: this.wa, O: c, U: this, T: a }) : Ua(this.N.X, { P: this, O: a });
}
var c = this.qa(a);
if (!c) return this.ha(a), null;
var d = Ra(this.N, c);
if (d !== void 0)
return d.M.count.value === 0 ? (d.M.O = c, d.M.T = a, d.clone()) : (d = d.clone(), this.ha(a), d);
if (d = this.N.pa(c), d = Qa[d], !d) return b.call(this);
d = this.ca ? d.la : d.pointerType;
var e = Pa(c, this.N, d.N);
return e === null ? b.call(this) : this.da ? Ua(d.N.X, { P: d, O: e, U: this, T: a }) : Ua(d.N.X, { P: d, O: e });
}, mb = h.UnboundTypeError = Da("UnboundTypeError");
var xa = typeof atob == "function" ? atob : function(a) {
var b = "", c = 0;
a = a.replace(/[^A-Za-z0-9\+\/=]/g, "");
do {
var d = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++)), e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++)), f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++)), g = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(c++));
d = d << 2 | e >> 4, e = (e & 15) << 4 | f >> 2;
var k = (f & 3) << 6 | g;
b += String.fromCharCode(d), f !== 64 && (b += String.fromCharCode(e)), g !== 64 && (b += String.fromCharCode(k));
} while (c < a.length);
return b;
}, Jb = {
l: function(a, b, c, d) {
x("Assertion failed: " + (a ? z(A, a) : "") + ", at: " + [b ? b ? z(A, b) : "" : "unknown filename", c, d ? d ? z(A, d) : "" : "unknown function"]);
},
q: function(a, b, c) {
a = N(a), b = La(b, "wrapper"), c = M(c);
var d = [].slice, e = b.N, f = e.X, g = e.R.X, k = e.R.constructor;
a = Ba(a, function() {
e.R.ja.forEach(function(l) {
if (this[l] === g[l]) throw new Fa("Pure virtual function " + l + " must be implemented in JavaScript");
}.bind(this)), Object.defineProperty(this, "__parent", { value: f }), this.__construct.apply(this, d.call(arguments));
}), f.__construct = function() {
this === f && L("Pass correct 'this' to __construct");
var l = k.implement.apply(void 0, [this].concat(d.call(arguments)));
Ma(l);
var n = l.M;
l.notifyOnDestruction(), n.aa = !0, Object.defineProperties(this, { M: { value: n } }), T(this), l = n.O, l = Ia(e, l), Q.hasOwnProperty(l) ? L("Tried to register registered instance: " + l) : Q[l] = this;
}, f.__destruct = function() {
this === f && L("Pass correct 'this' to __destruct"), Ma(this);
var l = this.M.O;
l = Ia(e, l), Q.hasOwnProperty(l) ? delete Q[l] : L("Tried to unregister unregistered instance: " + l);
}, a.prototype = Object.create(f);
for (var m in c) a.prototype[m] = c[m];
return Ea(a);
},
j: function(a) {
var b = Va[a];
delete Va[a];
var c = b.fa, d = b.W, e = b.ia, f = e.map((g) => g.ta).concat(e.map((g) => g.za));
V([a], f, (g) => {
var k = {};
return e.forEach((m, l) => {
var n = g[l], p = m.ra, r = m.sa, u = g[l + e.length], t = m.ya, y = m.Aa;
k[m.oa] = { read: (B) => n.fromWireType(p(r, B)), write: (B, ba) => {
var I = [];
t(
y,
B,
u.toWireType(I, ba)
), Wa(I);
} };
}), [{ name: b.name, fromWireType: function(m) {
var l = {}, n;
for (n in k) l[n] = k[n].read(m);
return d(m), l;
}, toWireType: function(m, l) {
for (var n in k) if (!(n in l)) throw new TypeError('Missing field: "' + n + '"');
var p = c();
for (n in k) k[n].write(p, l[n]);
return m !== null && m.push(d, p), p;
}, argPackAdvance: 8, readValueFromPointer: Xa, V: d }];
});
},
v: function() {
},
B: function(a, b, c, d, e) {
var f = Za(c);
b = N(b), W(a, {
name: b,
fromWireType: function(g) {
return !!g;
},
toWireType: function(g, k) {
return k ? d : e;
},
argPackAdvance: 8,
readValueFromPointer: function(g) {
if (c === 1) var k = ja;
else if (c === 2) k = C;
else if (c === 4) k = D;
else throw new TypeError("Unknown boolean type size: " + b);
return this.fromWireType(k[g >> f]);
},
V: null
});
},
f: function(a, b, c, d, e, f, g, k, m, l, n, p, r) {
n = N(n), f = Z(e, f), k && (k = Z(g, k)), l && (l = Z(m, l)), r = Z(p, r);
var u = Aa(n);
bb(u, function() {
nb("Cannot construct " + n + " due to unbound types", [d]);
}), V([a, b, c], d ? [d] : [], function(t) {
if (t = t[0], d)
var y = t.N, B = y.X;
else B = X.prototype;
t = Ba(u, function() {
if (Object.getPrototypeOf(this) !== ba) throw new K("Use 'new' to construct " + n);
if (I.Y === void 0) throw new K(n + " has no accessible constructor");
var kb = I.Y[arguments.length];
if (kb === void 0) throw new K("Tried to invoke ctor of " + n + " with invalid number of parameters (" + arguments.length + ") - expected (" + Object.keys(I.Y).toString() + ") parameters instead!");
return kb.apply(this, arguments);
});
var ba = Object.create(B, { constructor: { value: t } });
t.prototype = ba;
var I = new cb(n, t, ba, r, y, f, k, l);
y = new Y(n, I, !0, !1), B = new Y(n + "*", I, !1, !1);
var lb = new Y(n + " const*", I, !1, !0);
return Qa[a] = {
pointerType: B,
la: lb
}, ib(u, t), [y, B, lb];
});
},
d: function(a, b, c, d, e, f, g) {
var k = pb(c, d);
b = N(b), f = Z(e, f), V([], [a], function(m) {
function l() {
nb("Cannot call " + n + " due to unbound types", k);
}
m = m[0];
var n = m.name + "." + b;
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
var p = m.N.constructor;
return p[b] === void 0 ? (l.Z = c - 1, p[b] = l) : (ab(p, b, n), p[b].S[c - 1] = l), V([], k, function(r) {
return r = ob(n, [r[0], null].concat(r.slice(1)), null, f, g), p[b].S === void 0 ? (r.Z = c - 1, p[b] = r) : p[b].S[c - 1] = r, [];
}), [];
});
},
p: function(a, b, c, d, e, f) {
0 < b || x();
var g = pb(
b,
c
);
e = Z(d, e), V([], [a], function(k) {
k = k[0];
var m = "constructor " + k.name;
if (k.N.Y === void 0 && (k.N.Y = []), k.N.Y[b - 1] !== void 0) throw new K("Cannot register multiple constructors with identical number of parameters (" + (b - 1) + ") for class '" + k.name + "'! Overload resolution is currently only performed using the parameter count, not actual type info!");
return k.N.Y[b - 1] = () => {
nb("Cannot construct " + k.name + " due to unbound types", g);
}, V([], g, function(l) {
return l.splice(1, 0, null), k.N.Y[b - 1] = ob(m, l, null, e, f), [];
}), [];
});
},
a: function(a, b, c, d, e, f, g, k) {
var m = pb(c, d);
b = N(b), f = Z(e, f), V([], [a], function(l) {
function n() {
nb("Cannot call " + p + " due to unbound types", m);
}
l = l[0];
var p = l.name + "." + b;
b.startsWith("@@") && (b = Symbol[b.substring(2)]), k && l.N.ja.push(b);
var r = l.N.X, u = r[b];
return u === void 0 || u.S === void 0 && u.className !== l.name && u.Z === c - 2 ? (n.Z = c - 2, n.className = l.name, r[b] = n) : (ab(r, b, p), r[b].S[c - 2] = n), V([], m, function(t) {
return t = ob(p, t, l, f, g), r[b].S === void 0 ? (t.Z = c - 2, r[b] = t) : r[b].S[c - 2] = t, [];
}), [];
});
},
A: function(a, b) {
b = N(b), W(
a,
{ name: b, fromWireType: function(c) {
var d = M(c);
return qb(c), d;
}, toWireType: function(c, d) {
return Ea(d);
}, argPackAdvance: 8, readValueFromPointer: Xa, V: null }
);
},
n: function(a, b, c) {
c = Za(c), b = N(b), W(a, { name: b, fromWireType: function(d) {
return d;
}, toWireType: function(d, e) {
return e;
}, argPackAdvance: 8, readValueFromPointer: rb(b, c), V: null });
},
e: function(a, b, c, d, e) {
b = N(b), e === -1 && (e = 4294967295), e = Za(c);
var f = (k) => k;
if (d === 0) {
var g = 32 - 8 * c;
f = (k) => k << g >>> g;
}
c = b.includes("unsigned") ? function(k, m) {
return m >>> 0;
} : function(k, m) {
return m;
}, W(a, { name: b, fromWireType: f, toWireType: c, argPackAdvance: 8, readValueFromPointer: sb(b, e, d !== 0), V: null });
},
b: function(a, b, c) {
function d(f) {
f >>= 2;
var g = E;
return new e(ia, g[f + 1], g[f]);
}
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array][b];
c = N(c), W(a, { name: c, fromWireType: d, argPackAdvance: 8, readValueFromPointer: d }, { ua: !0 });
},
o: function(a, b) {
b = N(b);
var c = b === "std::string";
W(a, { name: b, fromWireType: function(d) {
var e = E[d >> 2], f = d + 4;
if (c) for (var g = f, k = 0; k <= e; ++k) {
var m = f + k;
if (k == e || A[m] == 0) {
if (g = g ? z(A, g, m - g) : "", l === void 0) var l = g;
else l += "\0", l += g;
g = m + 1;
}
}
else {
for (l = Array(e), k = 0; k < e; ++k) l[k] = String.fromCharCode(A[f + k]);
l = l.join("");
}
return S(d), l;
}, toWireType: function(d, e) {
e instanceof ArrayBuffer && (e = new Uint8Array(e));
var f, g = typeof e == "string";
if (g || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || L("Cannot pass non-string to std::string"), c && g) {
var k = 0;
for (f = 0; f < e.length; ++f) {
var m = e.charCodeAt(f);
127 >= m ? k++ : 2047 >= m ? k += 2 : 55296 <= m && 57343 >= m ? (k += 4, ++f) : k += 3;
}
f = k;
} else f = e.length;
if (k = Ib(4 + f + 1), m = k + 4, E[k >> 2] = f, c && g) {
if (g = m, m = f + 1, f = A, 0 < m) {
m = g + m - 1;
for (var l = 0; l < e.length; ++l) {
var n = e.charCodeAt(l);
if (55296 <= n && 57343 >= n) {
var p = e.charCodeAt(++l);
n = 65536 + ((n & 1023) << 10) | p & 1023;
}
if (127 >= n) {
if (g >= m) break;
f[g++] = n;
} else {
if (2047 >= n) {
if (g + 1 >= m) break;
f[g++] = 192 | n >> 6;
} else {
if (65535 >= n) {
if (g + 2 >= m) break;
f[g++] = 224 | n >> 12;
} else {
if (g + 3 >= m) break;
f[g++] = 240 | n >> 18, f[g++] = 128 | n >> 12 & 63;
}
f[g++] = 128 | n >> 6 & 63;
}
f[g++] = 128 | n & 63;
}
}
f[g] = 0;
}
} else if (g) for (g = 0; g < f; ++g) l = e.charCodeAt(g), 255 < l && (S(m), L("String has UTF-16 code units that do not fit in 8 bits")), A[m + g] = l;
else for (g = 0; g < f; ++g) A[m + g] = e[g];
return d !== null && d.push(S, k), k;
}, argPackAdvance: 8, readValueFromPointer: Xa, V: function(d) {
S(d);
} });
},
i: function(a, b, c) {
if (c = N(c), b === 2)
var d = tb, e = ub, f = vb, g = () => ka, k = 1;
else b === 4 && (d = wb, e = xb, f = yb, g = () => E, k = 2);
W(a, { name: c, fromWireType: function(m) {
for (var l = E[m >> 2], n = g(), p, r = m + 4, u = 0; u <= l; ++u) {
var t = m + 4 + u * b;
(u == l || n[t >> k] == 0) && (r = d(r, t - r), p === void 0 ? p = r : (p += "\0", p += r), r = t + b);
}
return S(m), p;
}, toWireType: function(m, l) {
typeof l != "string" && L("Cannot pass non-string to C++ string type " + c);
var n = f(l), p = Ib(4 + n + b);
return E[p >> 2] = n >> k, e(l, p + 4, n + b), m !== null && m.push(S, p), p;
}, argPackAdvance: 8, readValueFromPointer: Xa, V: function(m) {
S(m);
} });
},
k: function(a, b, c, d, e, f) {
Va[a] = { name: N(b), fa: Z(c, d), W: Z(e, f), ia: [] };
},
h: function(a, b, c, d, e, f, g, k, m, l) {
Va[a].ia.push({ oa: N(b), ta: c, ra: Z(d, e), sa: f, za: g, ya: Z(k, m), Aa: l });
},
C: function(a, b) {
b = N(b), W(a, {
va: !0,
name: b,
argPackAdvance: 0,
fromWireType: function() {
},
toWireType: function() {
}
});
},
s: function(a, b, c, d, e) {
a = Bb[a], b = M(b), c = Ab(c);
var f = [];
return E[d >> 2] = Ea(f), a(b, c, f, e);
},
t: function(a, b, c, d) {
a = Bb[a], b = M(b), c = Ab(c), a(b, c, null, d);
},
g: qb,
m: function(a, b) {
var c = Db(a, b), d = c[0];
b = d.name + "_$" + c.slice(1).map(function(g) {
return g.name;
}).join("_") + "$";
var e = Eb[b];
if (e !== void 0) return e;
var f = Array(a - 1);
return e = Cb((g, k, m, l) => {
for (var n = 0, p = 0; p < a - 1; ++p) f[p] = c[p + 1].readValueFromPointer(l + n), n += c[p + 1].argPackAdvance;
for (g = g[k].apply(
g,
f
), p = 0; p < a - 1; ++p) c[p + 1].ma && c[p + 1].ma(f[p]);
if (!d.va) return d.toWireType(m, g);
}), Eb[b] = e;
},
D: function(a) {
4 < a && (J[a].ga += 1);
},
r: function(a) {
var b = M(a);
Wa(b), qb(a);
},
c: function() {
x("");
},
x: function(a, b, c) {
A.copyWithin(a, b, b + c);
},
w: function(a) {
var b = A.length;
if (a >>>= 0, 2147483648 < a) return !1;
for (var c = 1; 4 >= c; c *= 2) {
var d = b * (1 + 0.2 / c);
d = Math.min(d, a + 100663296);
var e = Math;
d = Math.max(a, d), e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536);
a: {
try {
fa.grow(e - ia.byteLength + 65535 >>> 16), na();
var f = 1;
break a;
} catch {
}
f = void 0;
}
if (f) return !0;
}
return !1;
},
z: function() {
return 52;
},
u: function() {
return 70;
},
y: function(a, b, c, d) {
for (var e = 0, f = 0; f < c; f++) {
var g = E[b >> 2], k = E[b + 4 >> 2];
b += 8;
for (var m = 0; m < k; m++) {
var l = A[g + m], n = Fb[a];
l === 0 || l === 10 ? ((a === 1 ? ea : v)(z(n, 0)), n.length = 0) : n.push(l);
}
e += k;
}
return E[d >> 2] = e, 0;
}
};
(function() {
function a(e) {
h.asm = e.exports, fa = h.asm.E, na(), oa = h.asm.J, qa.unshift(h.asm.F), F--, h.monitorRunDependencies && h.monitorRunDependencies(F), F == 0 && (ta !== null && (clearInterval(ta), ta = null), G && (e = G, G = null, e()));
}
function b(e) {
a(e.instance);
}
function c(e) {
return ya().then(function(f) {
return WebAssembly.instantiate(f, d);
}).then(function(f) {
return f;
}).then(e, function(f) {
v("failed to asynchronously prepare wasm: " + f), x(f);
});
}
var d = { a: Jb };
if (F++, h.monitorRunDependencies && h.monitorRunDependencies(F), h.instantiateWasm) try {
return h.instantiateWasm(
d,
a
);
} catch (e) {
v("Module.instantiateWasm callback failed with error: " + e), ca(e);
}
return (function() {
return w || typeof WebAssembly.instantiateStreaming != "function" || ua(H) || typeof fetch != "function" ? c(b) : fetch(H, { credentials: "same-origin" }).then(function(e) {
return WebAssembly.instantiateStreaming(e, d).then(b, function(f) {
return v("wasm streaming compile failed: " + f), v("falling back to ArrayBuffer instantiation"), c(b);
});
});
})().catch(ca), {};
})(), h.___wasm_call_ctors = function() {
return (h.___wasm_call_ctors = h.asm.F).apply(null, arguments);
};
var Ka = h.___getTypeName = function() {
return (Ka = h.___getTypeName = h.asm.G).apply(null, arguments);
};
h.__embind_initialize_bindings = function() {
return (h.__embind_initialize_bindings = h.asm.H).apply(null, arguments);
};
var Ib = h._malloc = function() {
return (Ib = h._malloc = h.asm.I).apply(null, arguments);
}, S = h._free = function() {
return (S = h._free = h.asm.K).apply(null, arguments);
};
h.dynCall_jiji = function() {
return (h.dynCall_jiji = h.asm.L).apply(null, arguments);
};
var Kb;
G = function Lb() {
Kb || Mb(), Kb || (G = Lb);
};
function Mb() {
function a() {
if (!Kb && (Kb = !0, h.calledRun = !0, !ha)) {
if (za(qa), aa(h), h.onRuntimeInitialized && h.onRuntimeInitialized(), h.postRun) for (typeof h.postRun == "function" && (h.postRun = [h.postRun]); h.postRun.length; ) {
var b = h.postRun.shift();
ra.unshift(b);
}
za(ra);
}
}
if (!(0 < F)) {
if (h.preRun) for (typeof h.preRun == "function" && (h.preRun = [h.preRun]); h.preRun.length; ) sa();
za(pa), 0 < F || (h.setStatus ? (h.setStatus("Running..."), setTimeout(function() {
setTimeout(function() {
h.setStatus("");
}, 1), a();
}, 1)) : a());
}
}
if (h.preInit) for (typeof h.preInit == "function" && (h.preInit = [h.preInit]); 0 < h.preInit.length; ) h.preInit.pop()();
return Mb(), loadYoga2.ready;
});
})(), yoga_wasm_base64_esm_default = loadYoga;
// ../../node_modules/.pnpm/yoga-layout@3.2.1/node_modules/yoga-layout/dist/src/wrapAssembly.js
init_cjs_shims();
// ../../node_modules/.pnpm/yoga-layout@3.2.1/node_modules/yoga-layout/dist/src/generated/YGEnums.js
init_cjs_shims();
var Align = /* @__PURE__ */ (function(Align2) {
return Align2[Align2.Auto = 0] = "Auto", Align2[Align2.FlexStart = 1] = "FlexStart", Align2[Align2.Center = 2] = "Center", Align2[Align2.FlexEnd = 3] = "FlexEnd", Align2[Align2.Stretch = 4] = "Stretch", Align2[Align2.Baseline = 5] = "Baseline", Align2[Align2.SpaceBetween = 6] = "SpaceBetween", Align2[Align2.SpaceAround = 7] = "SpaceAround", Align2[Align2.SpaceEvenly = 8] = "SpaceEvenly", Align2;
})({}), BoxSizing = /* @__PURE__ */ (function(BoxSizing2) {
return BoxSizing2[BoxSizing2.BorderBox = 0] = "BorderBox", BoxSizing2[BoxSizing2.ContentBox = 1] = "ContentBox", BoxSizing2;
})({}), Dimension = /* @__PURE__ */ (function(Dimension2) {
return Dimension2[Dimension2.Width = 0] = "Width", Dimension2[Dimension2.Height = 1] = "Height", Dimension2;
})({}), Direction = /* @__PURE__ */ (function(Direction2) {
return Direction2[Direction2.Inherit = 0] = "Inherit", Direction2[Direction2.LTR = 1] = "LTR", Direction2[Direction2.RTL = 2] = "RTL", Direction2;
})({}), Display = /* @__PURE__ */ (function(Display2) {
return Display2[Display2.Flex = 0] = "Flex", Display2[Display2.None = 1] = "None", Display2[Display2.Contents = 2] = "Contents", Display2;
})({}), Edge = /* @__PURE__ */ (function(Edge2) {
return Edge2[Edge2.Left = 0] = "Left", Edge2[Edge2.Top = 1] = "Top", Edge2[Edge2.Right = 2] = "Right", Edge2[Edge2.Bottom = 3] = "Bottom", Edge2[Edge2.Start = 4] = "Start", Edge2[Edge2.End = 5] = "End", Edge2[Edge2.Horizontal = 6] = "Horizontal", Edge2[Edge2.Vertical = 7] = "Vertical", Edge2[Edge2.All = 8] = "All", Edge2;
})({}), Errata = /* @__PURE__ */ (function(Errata2) {
return Errata2[Errata2.None = 0] = "None", Errata2[Errata2.StretchFlexBasis = 1] = "StretchFlexBasis", Errata2[Errata2.AbsolutePositionWithoutInsetsExcludesPadding = 2] = "AbsolutePositionWithoutInsetsExcludesPadding", Errata2[Errata2.AbsolutePercentAgainstInnerSize = 4] = "AbsolutePercentAgainstInnerSize", Errata2[Errata2.All = 2147483647] = "All", Errata2[Errata2.Classic = 2147483646] = "Classic", Errata2;
})({}), ExperimentalFeature = /* @__PURE__ */ (function(ExperimentalFeature2) {
return ExperimentalFeature2[ExperimentalFeature2.WebFlexBasis = 0] = "WebFlexBasis", ExperimentalFeature2;
})({}), FlexDirection = /* @__PURE__ */ (function(FlexDirection2) {
return FlexDirection2[FlexDirection2.Column = 0] = "Column", FlexDirection2[FlexDirection2.ColumnReverse = 1] = "ColumnReverse", FlexDirection2[FlexDirection2.Row = 2] = "Row", FlexDirection2[FlexDirection2.RowReverse = 3] = "RowReverse", FlexDirection2;
})({}), Gutter = /* @__PURE__ */ (function(Gutter2) {
return Gutter2[Gutter2.Column = 0] = "Column", Gutter2[Gutter2.Row = 1] = "Row", Gutter2[Gutter2.All = 2] = "All", Gutter2;
})({}), Justify = /* @__PURE__ */ (function(Justify2) {
return Justify2[Justify2.FlexStart = 0] = "FlexStart", Justify2[Justify2.Center = 1] = "Center", Justify2[Justify2.FlexEnd = 2] = "FlexEnd", Justify2[Justify2.SpaceBetween = 3] = "SpaceBetween", Justify2[Justify2.SpaceAround = 4] = "SpaceAround", Justify2[Justify2.SpaceEvenly = 5] = "SpaceEvenly", Justify2;
})({}), LogLevel = /* @__PURE__ */ (function(LogLevel2) {
return LogLevel2[LogLevel2.Error = 0] = "Error", LogLevel2[LogLevel2.Warn = 1] = "Warn", LogLevel2[LogLevel2.Info = 2] = "Info", LogLevel2[LogLevel2.Debug = 3] = "Debug", LogLevel2[LogLevel2.Verbose = 4] = "Verbose", LogLevel2[LogLevel2.Fatal = 5] = "Fatal", LogLevel2;
})({}), MeasureMode = /* @__PURE__ */ (function(MeasureMode2) {
return MeasureMode2[MeasureMode2.Undefined = 0] = "Undefined", MeasureMode2[MeasureMode2.Exactly = 1] = "Exactly", MeasureMode2[MeasureMode2.AtMost = 2] = "AtMost", MeasureMode2;
})({}), NodeType = /* @__PURE__ */ (function(NodeType2) {
return NodeType2[NodeType2.Default = 0] = "Default", NodeType2[NodeType2.Text = 1] = "Text", NodeType2;
})({}), Overflow = /* @__PURE__ */ (function(Overflow2) {
return Overflow2[Overflow2.Visible = 0] = "Visible", Overflow2[Overflow2.Hidden = 1] = "Hidden", Overflow2[Overflow2.Scroll = 2] = "Scroll", Overflow2;
})({}), PositionType = /* @__PURE__ */ (function(PositionType2) {
return PositionType2[PositionType2.Static = 0] = "Static", PositionType2[PositionType2.Relative = 1] = "Relative", PositionType2[PositionType2.Absolute = 2] = "Absolute", PositionType2;
})({}), Unit = /* @__PURE__ */ (function(Unit2) {
return Unit2[Unit2.Undefined = 0] = "Undefined", Unit2[Unit2.Point = 1] = "Point", Unit2[Unit2.Percent = 2] = "Percent", Unit2[Unit2.Auto = 3] = "Auto", Unit2;
})({}), Wrap = /* @__PURE__ */ (function(Wrap2) {
return Wrap2[Wrap2.NoWrap = 0] = "NoWrap", Wrap2[Wrap2.Wrap = 1] = "Wrap", Wrap2[Wrap2.WrapReverse = 2] = "WrapReverse", Wrap2;
})({}), constants = {
ALIGN_AUTO: Align.Auto,
ALIGN_FLEX_START: Align.FlexStart,
ALIGN_CENTER: Align.Center,
ALIGN_FLEX_END: Align.FlexEnd,
ALIGN_STRETCH: Align.Stretch,
ALIGN_BASELINE: Align.Baseline,
ALIGN_SPACE_BETWEEN: Align.SpaceBetween,
ALIGN_SPACE_AROUND: Align.SpaceAround,
ALIGN_SPACE_EVENLY: Align.SpaceEvenly,
BOX_SIZING_BORDER_BOX: BoxSizing.BorderBox,
BOX_SIZING_CONTENT_BOX: BoxSizing.ContentBox,
DIMENSION_WIDTH: Dimension.Width,
DIMENSION_HEIGHT: Dimension.Height,
DIRECTION_INHERIT: Direction.Inherit,
DIRECTION_LTR: Direction.LTR,
DIRECTION_RTL: Direction.RTL,
DISPLAY_FLEX: Display.Flex,
DISPLAY_NONE: Display.None,
DISPLAY_CONTENTS: Display.Contents,
EDGE_LEFT: Edge.Left,
EDGE_TOP: Edge.Top,
EDGE_RIGHT: Edge.Right,
EDGE_BOTTOM: Edge.Bottom,
EDGE_START: Edge.Start,
EDGE_END: Edge.End,
EDGE_HORIZONTAL: Edge.Horizontal,
EDGE_VERTICAL: Edge.Vertical,
EDGE_ALL: Edge.All,
ERRATA_NONE: Errata.None,
ERRATA_STRETCH_FLEX_BASIS: Errata.StretchFlexBasis,
ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING: Errata.AbsolutePositionWithoutInsetsExcludesPadding,
ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE: Errata.AbsolutePercentAgainstInnerSize,
ERRATA_ALL: Errata.All,
ERRATA_CLASSIC: Errata.Classic,
EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS: ExperimentalFeature.WebFlexBasis,
FLEX_DIRECTION_COLUMN: FlexDirection.Column,
FLEX_DIRECTION_COLUMN_REVERSE: FlexDirection.ColumnReverse,
FLEX_DIRECTION_ROW: FlexDirection.Row,
FLEX_DIRECTION_ROW_REVERSE: FlexDirection.RowReverse,
GUTTER_COLUMN: Gutter.Column,
GUTTER_ROW: Gutter.Row,
GUTTER_ALL: Gutter.All,
JUSTIFY_FLEX_START: Justify.FlexStart,
JUSTIFY_CENTER: Justify.Center,
JUSTIFY_FLEX_END: Justify.FlexEnd,
JUSTIFY_SPACE_BETWEEN: Justify.SpaceBetween,
JUSTIFY_SPACE_AROUND: Justify.SpaceAround,
JUSTIFY_SPACE_EVENLY: Justify.SpaceEvenly,
LOG_LEVEL_ERROR: LogLevel.Error,
LOG_LEVEL_WARN: LogLevel.Warn,
LOG_LEVEL_INFO: LogLevel.Info,
LOG_LEVEL_DEBUG: LogLevel.Debug,
LOG_LEVEL_VERBOSE: LogLevel.Verbose,
LOG_LEVEL_FATAL: LogLevel.Fatal,
MEASURE_MODE_UNDEFINED: MeasureMode.Undefined,
MEASURE_MODE_EXACTLY: MeasureMode.Exactly,
MEASURE_MODE_AT_MOST: MeasureMode.AtMost,
NODE_TYPE_DEFAULT: NodeType.Default,
NODE_TYPE_TEXT: NodeType.Text,
OVERFLOW_VISIBLE: Overflow.Visible,
OVERFLOW_HIDDEN: Overflow.Hidden,
OVERFLOW_SCROLL: Overflow.Scroll,
POSITION_TYPE_STATIC: PositionType.Static,
POSITION_TYPE_RELATIVE: PositionType.Relative,
POSITION_TYPE_ABSOLUTE: PositionType.Absolute,
UNIT_UNDEFINED: Unit.Undefined,
UNIT_POINT: Unit.Point,
UNIT_PERCENT: Unit.Percent,
UNIT_AUTO: Unit.Auto,
WRAP_NO_WRAP: Wrap.NoWrap,
WRAP_WRAP: Wrap.Wrap,
WRAP_WRAP_REVERSE: Wrap.WrapReverse
}, YGEnums_default = constants;
// ../../node_modules/.pnpm/yoga-layout@3.2.1/node_modules/yoga-layout/dist/src/wrapAssembly.js
function wrapAssembly(lib) {
function patch(prototype, name, fn) {
let original = prototype[name];
prototype[name] = function() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
args[_key] = arguments[_key];
return fn.call(this, original, ...args);
};
}
for (let fnName of ["setPosition", "setMargin", "setFlexBasis", "setWidth", "setHeight", "setMinWidth", "setMinHeight", "setMaxWidth", "setMaxHeight", "setPadding", "setGap"]) {
let methods = {
[Unit.Point]: lib.Node.prototype[fnName],
[Unit.Percent]: lib.Node.prototype[`${fnName}Percent`],
[Unit.Auto]: lib.Node.prototype[`${fnName}Auto`]
};
patch(lib.Node.prototype, fnName, function(original) {
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)
args[_key2 - 1] = arguments[_key2];
let value = args.pop(), unit, asNumber;
if (value === "auto")
unit = Unit.Auto, asNumber = void 0;
else if (typeof value == "object")
unit = value.unit, asNumber = value.valueOf();
else if (unit = typeof value == "string" && value.endsWith("%") ? Unit.Percent : Unit.Point, asNumber = parseFloat(value), value !== void 0 && !Number.isNaN(value) && Number.isNaN(asNumber))
throw new Error(`Invalid value ${value} for ${fnName}`);
if (!methods[unit]) throw new Error(`Failed to execute "${fnName}": Unsupported unit '${value}'`);
return asNumber !== void 0 ? methods[unit].call(this, ...args, asNumber) : methods[unit].call(this, ...args);
});
}
function wrapMeasureFunction(measureFunction) {
return lib.MeasureCallback.implement({
measure: function() {
let {
width,
height
} = measureFunction(...arguments);
return {
width: width ?? NaN,
height: height ?? NaN
};
}
});
}
patch(lib.Node.prototype, "setMeasureFunc", function(original, measureFunc) {
return measureFunc ? original.call(this, wrapMeasureFunction(measureFunc)) : this.unsetMeasureFunc();
});
function wrapDirtiedFunc(dirtiedFunction) {
return lib.DirtiedCallback.implement({
dirtied: dirtiedFunction
});
}
return patch(lib.Node.prototype, "setDirtiedFunc", function(original, dirtiedFunc) {
original.call(this, wrapDirtiedFunc(dirtiedFunc));
}), patch(lib.Config.prototype, "free", function() {
lib.Config.destroy(this);
}), patch(lib.Node, "create", (_, config) => config ? lib.Node.createWithConfig(config) : lib.Node.createDefault()), patch(lib.Node.prototype, "free", function() {
lib.Node.destroy(this);
}), patch(lib.Node.prototype, "freeRecursive", function() {
for (let t = 0, T = this.getChildCount(); t < T; ++t)
this.getChild(0).freeRecursive();
this.free();
}), patch(lib.Node.prototype, "calculateLayout", function(original) {
let width = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : NaN, height = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : NaN, direction = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Direction.LTR;
return original.call(this, width, height, direction);
}), {
Config: lib.Config,
Node: lib.Node,
...YGEnums_default
};
}
// ../../node_modules/.pnpm/yoga-layout@3.2.1/node_modules/yoga-layout/dist/src/index.js
var Yoga = wrapAssembly(await yoga_wasm_base64_esm_default()), src_default = Yoga;
// ../../node_modules/.pnpm/wrap-ansi@9.0.2/node_modules/wrap-ansi/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.js
init_cjs_shims();
// ../../node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.js
init_cjs_shims();
var ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109], fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510], halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518], narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630], wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
// ../../node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.js
init_cjs_shims();
var isInRange = (ranges, codePoint) => {
let low = 0, high = Math.floor(ranges.length / 2) - 1;
for (; low <= high; ) {
let mid = Math.floor((low + high) / 2), i = mid * 2;
if (codePoint < ranges[i])
high = mid - 1;
else if (codePoint > ranges[i + 1])
low = mid + 1;
else
return !0;
}
return !1;
};
// ../../node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.js
var minimumAmbiguousCodePoint = ambiguousRanges[0], maximumAmbiguousCodePoint = ambiguousRanges.at(-1), minimumFullWidthCodePoint = fullwidthRanges[0], maximumFullWidthCodePoint = fullwidthRanges.at(-1), minimumHalfWidthCodePoint = halfwidthRanges[0], maximumHalfWidthCodePoint = halfwidthRanges.at(-1), minimumNarrowCodePoint = narrowRanges[0], maximumNarrowCodePoint = narrowRanges.at(-1), minimumWideCodePoint = wideRanges[0], maximumWideCodePoint = wideRanges.at(-1), commonCjkCodePoint = 19968, [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
function findWideFastPathRange(ranges) {
let fastPathStart = ranges[0], fastPathEnd = ranges[1];
for (let index = 0; index < ranges.length; index += 2) {
let start = ranges[index], end = ranges[index + 1];
if (commonCjkCodePoint >= start && commonCjkCodePoint <= end)
return [start, end];
end - start > fastPathEnd - fastPathStart && (fastPathStart = start, fastPathEnd = end);
}
return [fastPathStart, fastPathEnd];
}
var isAmbiguous = (codePoint) => codePoint < minimumAmbiguousCodePoint || codePoint > maximumAmbiguousCodePoint ? !1 : isInRange(ambiguousRanges, codePoint), isFullWidth = (codePoint) => codePoint < minimumFullWidthCodePoint || codePoint > maximumFullWidthCodePoint ? !1 : isInRange(fullwidthRanges, codePoint);
var isWide = (codePoint) => codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd ? !0 : codePoint < minimumWideCodePoint || codePoint > maximumWideCodePoint ? !1 : isInRange(wideRanges, codePoint);
// ../../node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.js
function validate(codePoint) {
if (!Number.isSafeInteger(codePoint))
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
}
function eastAsianWidth(codePoint, { ambiguousAsWide = !1 } = {}) {
return validate(codePoint), isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint) ? 2 : 1;
}
// ../../node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
var import_emoji_regex = __toESM(require_emoji_regex(), 1), segmenter = new Intl.Segmenter(), defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
function stringWidth(string, options = {}) {
if (typeof string != "string" || string.length === 0)
return 0;
let {
ambiguousIsNarrow = !0,
countAnsiEscapeCodes = !1
} = options;
if (countAnsiEscapeCodes || (string = stripAnsi(string)), string.length === 0)
return 0;
let width = 0, eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
for (let { segment: character } of segmenter.segment(string)) {
let codePoint = character.codePointAt(0);
if (!(codePoint <= 31 || codePoint >= 127 && codePoint <= 159) && !(codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) && !(codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) && !(codePoint >= 55296 && codePoint <= 57343) && !(codePoint >= 65024 && codePoint <= 65039) && !defaultIgnorableCodePointRegex.test(character)) {
if ((0, import_emoji_regex.default)().test(character)) {
width += 2;
continue;
}
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
}
}
return width;
}
// ../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
init_cjs_shims();
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, styles = {
modifier: {
reset: [0, 0],
// 21 isn't widely supported and 22 does the same thing
bold: [1, 22],
dim: [2, 22],
italic: [3, 23],
underline: [4, 24],
overline: [53, 55],
inverse: [7, 27],
hidden: [8, 28],
strikethrough: [9, 29]
},
color: {
black: [30, 39],
red: [31, 39],
green: [32, 39],
yellow: [33, 39],
blue: [34, 39],
magenta: [35, 39],
cyan: [36, 39],
white: [37, 39],
// Bright color
blackBright: [90, 39],
gray: [90, 39],
// Alias of `blackBright`
grey: [90, 39],
// Alias of `blackBright`
redBright: [91, 39],
greenBright: [92, 39],
yellowBright: [93, 39],
blueBright: [94, 39],
magentaBright: [95, 39],
cyanBright: [96, 39],
whiteBright: [97, 39]
},
bgColor: {
bgBlack: [40, 49],
bgRed: [41, 49],
bgGreen: [42, 49],
bgYellow: [43, 49],
bgBlue: [44, 49],
bgMagenta: [45, 49],
bgCyan: [46, 49],
bgWhite: [47, 49],
// Bright color
bgBlackBright: [100, 49],
bgGray: [100, 49],
// Alias of `bgBlackBright`
bgGrey: [100, 49],
// Alias of `bgBlackBright`
bgRedBright: [101, 49],
bgGreenBright: [102, 49],
bgYellowBright: [103, 49],
bgBlueBright: [104, 49],
bgMagentaBright: [105, 49],
bgCyanBright: [106, 49],
bgWhiteBright: [107, 49]
}
}, modifierNames = Object.keys(styles.modifier), foregroundColorNames = Object.keys(styles.color), backgroundColorNames = Object.keys(styles.bgColor), colorNames = [...foregroundColorNames, ...backgroundColorNames];
function assembleStyles() {
let codes = /* @__PURE__ */ new Map();
for (let [groupName, group] of Object.entries(styles)) {
for (let [styleName, style] of Object.entries(group))
styles[styleName] = {
open: `\x1B[${style[0]}m`,
close: `\x1B[${style[1]}m`
}, group[styleName] = styles[styleName], codes.set(style[0], style[1]);
Object.defineProperty(styles, groupName, {
value: group,
enumerable: !1
});
}
return Object.defineProperty(styles, "codes", {
value: codes,
enumerable: !1
}), styles.color.close = "\x1B[39m", styles.bgColor.close = "\x1B[49m", styles.color.ansi = wrapAnsi16(), styles.color.ansi256 = wrapAnsi256(), styles.color.ansi16m = wrapAnsi16m(), styles.bgColor.ansi = wrapAnsi16(10), styles.bgColor.ansi256 = wrapAnsi256(10), styles.bgColor.ansi16m = wrapAnsi16m(10), Object.defineProperties(styles, {
rgbToAnsi256: {
value(red, green, blue) {
return red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
},
enumerable: !1
},
hexToRgb: {
value(hex) {
let matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
if (!matches)
return [0, 0, 0];
let [colorString] = matches;
colorString.length === 3 && (colorString = [...colorString].map((character) => character + character).join(""));
let integer = Number.parseInt(colorString, 16);
return [
/* eslint-disable no-bitwise */
integer >> 16 & 255,
integer >> 8 & 255,
integer & 255
/* eslint-enable no-bitwise */
];
},
enumerable: !1
},
hexToAnsi256: {
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
enumerable: !1
},
ansi256ToAnsi: {
value(code) {
if (code < 8)
return 30 + code;
if (code < 16)
return 90 + (code - 8);
let red, green, blue;
if (code >= 232)
red = ((code - 232) * 10 + 8) / 255, green = red, blue = red;
else {
code -= 16;
let remainder = code % 36;
red = Math.floor(code / 36) / 5, green = Math.floor(remainder / 6) / 5, blue = remainder % 6 / 5;
}
let value = Math.max(red, green, blue) * 2;
if (value === 0)
return 30;
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
return value === 2 && (result += 60), result;
},
enumerable: !1
},
rgbToAnsi: {
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
enumerable: !1
},
hexToAnsi: {
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
enumerable: !1
}
}), styles;
}
var ansiStyles = assembleStyles(), ansi_styles_default = ansiStyles;
// ../../node_modules/.pnpm/wrap-ansi@9.0.2/node_modules/wrap-ansi/index.js
var ESCAPES = /* @__PURE__ */ new Set([
"\x1B",
"\x9B"
]), END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC = "]", ANSI_SGR_TERMINATOR = "m", ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`, wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`, wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`, wordLengths = (string) => string.split(" ").map((character) => stringWidth(character)), wrapWord = (rows, word, columns) => {
let characters = [...word], isInsideEscape = !1, isInsideLinkEscape = !1, visible = stringWidth(stripAnsi(rows.at(-1)));
for (let [index, character] of characters.entries()) {
let characterLength = stringWidth(character);
if (visible + characterLength <= columns ? rows[rows.length - 1] += character : (rows.push(character), visible = 0), ESCAPES.has(character) && (isInsideEscape = !0, isInsideLinkEscape = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("") === ANSI_ESCAPE_LINK), isInsideEscape) {
isInsideLinkEscape ? character === ANSI_ESCAPE_BELL && (isInsideEscape = !1, isInsideLinkEscape = !1) : character === ANSI_SGR_TERMINATOR && (isInsideEscape = !1);
continue;
}
visible += characterLength, visible === columns && index < characters.length - 1 && (rows.push(""), visible = 0);
}
!visible && rows.at(-1).length > 0 && rows.length > 1 && (rows[rows.length - 2] += rows.pop());
}, stringVisibleTrimSpacesRight = (string) => {
let words = string.split(" "), last = words.length;
for (; last > 0 && !(stringWidth(words[last - 1]) > 0); )
last--;
return last === words.length ? string : words.slice(0, last).join(" ") + words.slice(last).join("");
}, exec2 = (string, columns, options = {}) => {
if (options.trim !== !1 && string.trim() === "")
return "";
let returnValue = "", escapeCode, escapeUrl, lengths = wordLengths(string), rows = [""];
for (let [index, word] of string.split(" ").entries()) {
options.trim !== !1 && (rows[rows.length - 1] = rows.at(-1).trimStart());
let rowLength = stringWidth(rows.at(-1));
if (index !== 0 && (rowLength >= columns && (options.wordWrap === !1 || options.trim === !1) && (rows.push(""), rowLength = 0), (rowLength > 0 || options.trim === !1) && (rows[rows.length - 1] += " ", rowLength++)), options.hard && lengths[index] > columns) {
let remainingColumns = columns - rowLength, breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
Math.floor((lengths[index] - 1) / columns) < breaksStartingThisLine && rows.push(""), wrapWord(rows, word, columns);
continue;
}
if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
if (options.wordWrap === !1 && rowLength < columns) {
wrapWord(rows, word, columns);
continue;
}
rows.push("");
}
if (rowLength + lengths[index] > columns && options.wordWrap === !1) {
wrapWord(rows, word, columns);
continue;
}
rows[rows.length - 1] += word;
}
options.trim !== !1 && (rows = rows.map((row) => stringVisibleTrimSpacesRight(row)));
let preString = rows.join(`
`), pre = [...preString], preStringIndex = 0;
for (let [index, character] of pre.entries()) {
if (returnValue += character, ESCAPES.has(character)) {
let { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
if (groups.code !== void 0) {
let code2 = Number.parseFloat(groups.code);
escapeCode = code2 === END_CODE ? void 0 : code2;
} else groups.uri !== void 0 && (escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri);
}
let code = ansi_styles_default.codes.get(Number(escapeCode));
pre[index + 1] === `
` ? (escapeUrl && (returnValue += wrapAnsiHyperlink("")), escapeCode && code && (returnValue += wrapAnsiCode(code))) : character === `
` && (escapeCode && code && (returnValue += wrapAnsiCode(escapeCode)), escapeUrl && (returnValue += wrapAnsiHyperlink(escapeUrl))), preStringIndex += character.length;
}
return returnValue;
};
function wrapAnsi(string, columns, options) {
return String(string).normalize().replaceAll(`\r
`, `
`).split(`
`).map((line) => exec2(line, columns, options)).join(`
`);
}
// ../../node_modules/.pnpm/terminal-size@4.0.1/node_modules/terminal-size/index.js
init_cjs_shims();
import process3 from "node:process";
import { execFileSync } from "node:child_process";
import fs from "node:fs";
import tty from "node:tty";
var defaultColumns = 80, defaultRows = 24, exec3 = (command, arguments_, { shell, env: env2 } = {}) => execFileSync(command, arguments_, {
encoding: "utf8",
stdio: ["ignore", "pipe", "ignore"],
timeout: 500,
shell,
env: env2
}).trim(), create = (columns, rows) => ({
columns: Number.parseInt(columns, 10),
rows: Number.parseInt(rows, 10)
}), createIfNotDefault = (maybeColumns, maybeRows) => {
let { columns, rows } = create(maybeColumns, maybeRows);
if (!(Number.isNaN(columns) || Number.isNaN(rows)) && !(columns === defaultColumns && rows === defaultRows))
return { columns, rows };
}, isForegroundProcess = () => {
if (process3.platform !== "linux")
return !0;
try {
let statContents = fs.readFileSync("/proc/self/stat", "utf8"), closingParenthesisIndex = statContents.lastIndexOf(") ");
if (closingParenthesisIndex === -1)
return !1;
let statFields = statContents.slice(closingParenthesisIndex + 2).trim().split(/\s+/), processGroupId = Number.parseInt(statFields[2], 10), foregroundProcessGroupId = Number.parseInt(statFields[5], 10);
return Number.isNaN(processGroupId) || Number.isNaN(foregroundProcessGroupId) || foregroundProcessGroupId <= 0 ? !1 : processGroupId === foregroundProcessGroupId;
} catch {
return !1;
}
};
function terminalSize() {
let { env: env2, stdout, stderr } = process3;
if (stdout?.columns && stdout?.rows)
return create(stdout.columns, stdout.rows);
if (stderr?.columns && stderr?.rows)
return create(stderr.columns, stderr.rows);
if (env2.COLUMNS && env2.LINES)
return create(env2.COLUMNS, env2.LINES);
let fallback = {
columns: defaultColumns,
rows: defaultRows
};
return process3.platform === "win32" ? tput() ?? fallback : process3.platform === "darwin" ? devTty() ?? tput() ?? fallback : devTty() ?? tput() ?? resize() ?? fallback;
}
var devTty = () => {
try {
let flags = process3.platform === "darwin" ? fs.constants.O_EVTONLY | fs.constants.O_NONBLOCK : fs.constants.O_NONBLOCK, { columns, rows } = tty.WriteStream(fs.openSync("/dev/tty", flags));
return { columns, rows };
} catch {
}
}, tput = () => {
try {
let columns = exec3("tput", ["cols"], { env: { TERM: "dumb", ...process3.env } }), rows = exec3("tput", ["lines"], { env: { TERM: "dumb", ...process3.env } });
if (columns && rows)
return createIfNotDefault(columns, rows);
} catch {
}
}, resize = () => {
try {
if (!isForegroundProcess())
return;
let size = exec3("resize", ["-u"]).match(/\d+/g);
if (size.length === 2)
return createIfNotDefault(size[0], size[1]);
} catch {
}
};
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/utils.js
init_cjs_shims();
import process4 from "node:process";
var isDev = () => process4.env.DEV === "true";
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/reconciler.js
init_cjs_shims();
var import_react_reconciler = __toESM(require_react_reconciler(), 1), import_constants = __toESM(require_constants(), 1), Scheduler = __toESM(require_scheduler(), 1);
var import_react = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/dom.js
init_cjs_shims();
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/measure-text.js
init_cjs_shims();
// ../../node_modules/.pnpm/widest-line@6.0.0/node_modules/widest-line/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.js
init_cjs_shims();
var segmenter2 = new Intl.Segmenter(), zeroWidthClusterRegex = /^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v, leadingNonPrintingRegex = /^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v, rgiEmojiRegex = /^\p{RGI_Emoji}$/v, unqualifiedKeycapRegex = /^[\d#*]\u20E3$/, extendedPictographicRegex = /\p{Extended_Pictographic}/gu;
function isDoubleWidthNonRgiEmojiSequence(segment) {
if (segment.length > 50)
return !1;
if (unqualifiedKeycapRegex.test(segment))
return !0;
if (segment.includes("\u200D")) {
let pictographics = segment.match(extendedPictographicRegex);
return pictographics !== null && pictographics.length >= 2;
}
return !1;
}
function baseVisible(segment) {
return segment.replace(leadingNonPrintingRegex, "");
}
function isZeroWidthCluster(segment) {
return zeroWidthClusterRegex.test(segment);
}
function trailingHalfwidthWidth(segment, eastAsianWidthOptions) {
let extra = 0;
if (segment.length > 1)
for (let char of segment.slice(1))
char >= "\uFF00" && char <= "\uFFEF" && (extra += eastAsianWidth(char.codePointAt(0), eastAsianWidthOptions));
return extra;
}
function stringWidth2(input, options = {}) {
if (typeof input != "string" || input.length === 0)
return 0;
let {
ambiguousIsNarrow = !0,
countAnsiEscapeCodes = !1
} = options, string = input;
if (!countAnsiEscapeCodes && (string.includes("\x1B") || string.includes("\x9B")) && (string = stripAnsi(string)), string.length === 0)
return 0;
if (/^[\u0020-\u007E]*$/.test(string))
return string.length;
let width = 0, eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
for (let { segment } of segmenter2.segment(string)) {
if (isZeroWidthCluster(segment))
continue;
if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
width += 2;
continue;
}
let codePoint = baseVisible(segment).codePointAt(0);
width += eastAsianWidth(codePoint, eastAsianWidthOptions), width += trailingHalfwidthWidth(segment, eastAsianWidthOptions);
}
return width;
}
// ../../node_modules/.pnpm/widest-line@6.0.0/node_modules/widest-line/index.js
function widestLine(string) {
let lineWidth = 0;
for (let line of string.split(`
`))
lineWidth = Math.max(lineWidth, stringWidth2(line));
return lineWidth;
}
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/measure-text.js
var cache = /* @__PURE__ */ new Map(), measureText = (text) => {
if (text.length === 0)
return {
width: 0,
height: 0
};
let cachedDimensions = cache.get(text);
if (cachedDimensions)
return cachedDimensions;
let width = widestLine(text), height = text.split(`
`).length, dimensions = { width, height };
return cache.set(text, dimensions), dimensions;
}, measure_text_default = measureText;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/wrap-text.js
init_cjs_shims();
// ../../node_modules/.pnpm/cli-truncate@5.1.1/node_modules/cli-truncate/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/slice-ansi@7.1.2/node_modules/slice-ansi/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/is-fullwidth-code-point@5.1.0/node_modules/is-fullwidth-code-point/index.js
init_cjs_shims();
function isFullwidthCodePoint(codePoint) {
return Number.isInteger(codePoint) ? isFullWidth(codePoint) || isWide(codePoint) : !1;
}
// ../../node_modules/.pnpm/slice-ansi@7.1.2/node_modules/slice-ansi/index.js
var ESCAPES2 = /* @__PURE__ */ new Set([27, 155]), CODE_POINT_0 = "0".codePointAt(0), CODE_POINT_9 = "9".codePointAt(0), MAX_ANSI_SEQUENCE_LENGTH = 19, endCodesSet = /* @__PURE__ */ new Set(), endCodesMap = /* @__PURE__ */ new Map();
for (let [start, end] of ansi_styles_default.codes)
endCodesSet.add(ansi_styles_default.color.ansi(end)), endCodesMap.set(ansi_styles_default.color.ansi(start), ansi_styles_default.color.ansi(end));
function getEndCode(code) {
if (endCodesSet.has(code))
return code;
if (endCodesMap.has(code))
return endCodesMap.get(code);
code = code.slice(2), code.includes(";") && (code = code[0] + "0");
let returnValue = ansi_styles_default.codes.get(Number.parseInt(code, 10));
return returnValue ? ansi_styles_default.color.ansi(returnValue) : ansi_styles_default.reset.open;
}
function findNumberIndex(string) {
for (let index = 0; index < string.length; index++) {
let codePoint = string.codePointAt(index);
if (codePoint >= CODE_POINT_0 && codePoint <= CODE_POINT_9)
return index;
}
return -1;
}
function parseAnsiCode(string, offset) {
string = string.slice(offset, offset + MAX_ANSI_SEQUENCE_LENGTH);
let startIndex = findNumberIndex(string);
if (startIndex !== -1) {
let endIndex = string.indexOf("m", startIndex);
return endIndex === -1 && (endIndex = string.length), string.slice(0, endIndex + 1);
}
}
function tokenize(string, endCharacter = Number.POSITIVE_INFINITY) {
let returnValue = [], index = 0, visibleCount = 0;
for (; index < string.length; ) {
let codePoint = string.codePointAt(index);
if (ESCAPES2.has(codePoint)) {
let code = parseAnsiCode(string, index);
if (code) {
returnValue.push({
type: "ansi",
code,
endCode: getEndCode(code)
}), index += code.length;
continue;
}
}
let isFullWidth2 = isFullwidthCodePoint(codePoint), character = String.fromCodePoint(codePoint);
if (returnValue.push({
type: "character",
value: character,
isFullWidth: isFullWidth2
}), index += character.length, visibleCount += isFullWidth2 ? 2 : character.length, visibleCount >= endCharacter)
break;
}
return returnValue;
}
function reduceAnsiCodes(codes) {
let returnValue = [];
for (let code of codes)
code.code === ansi_styles_default.reset.open ? returnValue = [] : endCodesSet.has(code.code) ? returnValue = returnValue.filter((returnValueCode) => returnValueCode.endCode !== code.code) : (returnValue = returnValue.filter((returnValueCode) => returnValueCode.endCode !== code.endCode), returnValue.push(code));
return returnValue;
}
function undoAnsiCodes(codes) {
return reduceAnsiCodes(codes).map(({ endCode }) => endCode).reverse().join("");
}
function sliceAnsi(string, start, end) {
let tokens = tokenize(string, end), activeCodes = [], position = 0, returnValue = "", include = !1;
for (let token of tokens) {
if (end !== void 0 && position >= end)
break;
token.type === "ansi" ? (activeCodes.push(token), include && (returnValue += token.code)) : (!include && position >= start && (include = !0, activeCodes = reduceAnsiCodes(activeCodes), returnValue = activeCodes.map(({ code }) => code).join("")), include && (returnValue += token.value), position += token.isFullWidth ? 2 : token.value.length);
}
return returnValue += undoAnsiCodes(activeCodes), returnValue;
}
// ../../node_modules/.pnpm/cli-truncate@5.1.1/node_modules/cli-truncate/index.js
function getIndexOfNearestSpace(string, wantedIndex, shouldSearchRight) {
if (string.charAt(wantedIndex) === " ")
return wantedIndex;
let direction = shouldSearchRight ? 1 : -1;
for (let index = 0; index <= 3; index++) {
let finalIndex = wantedIndex + index * direction;
if (string.charAt(finalIndex) === " ")
return finalIndex;
}
return wantedIndex;
}
function cliTruncate(text, columns, options = {}) {
let {
position = "end",
space = !1,
preferTruncationOnSpace = !1
} = options, { truncationCharacter = "\u2026" } = options;
if (typeof text != "string")
throw new TypeError(`Expected \`input\` to be a string, got ${typeof text}`);
if (typeof columns != "number")
throw new TypeError(`Expected \`columns\` to be a number, got ${typeof columns}`);
if (columns < 1)
return "";
let length = stringWidth2(text);
if (length <= columns)
return text;
if (columns === 1)
return truncationCharacter;
let ANSI = {
ESC: 27,
LEFT_BRACKET: 91,
LETTER_M: 109
}, isSgrParameter = (code) => code >= 48 && code <= 57 || code === 59;
function leadingSgrSpanEndIndex(string) {
let index = 0;
for (; index + 2 < string.length && string.codePointAt(index) === ANSI.ESC && string.codePointAt(index + 1) === ANSI.LEFT_BRACKET; ) {
let j = index + 2;
for (; j < string.length && isSgrParameter(string.codePointAt(j)); )
j++;
if (j < string.length && string.codePointAt(j) === ANSI.LETTER_M) {
index = j + 1;
continue;
}
break;
}
return index;
}
function trailingSgrSpanStartIndex(string) {
let start = string.length;
for (; start > 1 && string.codePointAt(start - 1) === ANSI.LETTER_M; ) {
let j = start - 2;
for (; j >= 0 && isSgrParameter(string.codePointAt(j)); )
j--;
if (j >= 1 && string.codePointAt(j - 1) === ANSI.ESC && string.codePointAt(j) === ANSI.LEFT_BRACKET) {
start = j - 1;
continue;
}
break;
}
return start;
}
function appendWithInheritedStyleFromEnd(visible, suffix) {
let start = trailingSgrSpanStartIndex(visible);
return start === visible.length ? visible + suffix : visible.slice(0, start) + suffix + visible.slice(start);
}
function prependWithInheritedStyleFromStart(prefix, visible) {
let end = leadingSgrSpanEndIndex(visible);
return end === 0 ? prefix + visible : visible.slice(0, end) + prefix + visible.slice(end);
}
if (position === "start") {
if (preferTruncationOnSpace) {
let nearestSpace = getIndexOfNearestSpace(text, length - columns + 1, !0), right2 = sliceAnsi(text, nearestSpace, length).trim();
return prependWithInheritedStyleFromStart(truncationCharacter, right2);
}
space && (truncationCharacter += " ");
let right = sliceAnsi(text, length - columns + stringWidth2(truncationCharacter), length);
return prependWithInheritedStyleFromStart(truncationCharacter, right);
}
if (position === "middle") {
space && (truncationCharacter = ` ${truncationCharacter} `);
let half = Math.floor(columns / 2);
if (preferTruncationOnSpace) {
let spaceNearFirstBreakPoint = getIndexOfNearestSpace(text, half), spaceNearSecondBreakPoint = getIndexOfNearestSpace(text, length - (columns - half) + 1, !0);
return sliceAnsi(text, 0, spaceNearFirstBreakPoint) + truncationCharacter + sliceAnsi(text, spaceNearSecondBreakPoint, length).trim();
}
return sliceAnsi(text, 0, half) + truncationCharacter + sliceAnsi(text, length - (columns - half) + stringWidth2(truncationCharacter), length);
}
if (position === "end") {
if (preferTruncationOnSpace) {
let nearestSpace = getIndexOfNearestSpace(text, columns - 1), left2 = sliceAnsi(text, 0, nearestSpace);
return appendWithInheritedStyleFromEnd(left2, truncationCharacter);
}
space && (truncationCharacter = ` ${truncationCharacter}`);
let left = sliceAnsi(text, 0, columns - stringWidth2(truncationCharacter));
return appendWithInheritedStyleFromEnd(left, truncationCharacter);
}
throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${position}`);
}
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/wrap-text.js
var cache2 = {}, wrapText = (text, maxWidth, wrapType) => {
let cacheKey = text + String(maxWidth) + String(wrapType), cachedText = cache2[cacheKey];
if (cachedText)
return cachedText;
let wrappedText = text;
if (wrapType === "wrap" && (wrappedText = wrapAnsi(text, maxWidth, {
trim: !1,
hard: !0
})), wrapType.startsWith("truncate")) {
let position = "end";
wrapType === "truncate-middle" && (position = "middle"), wrapType === "truncate-start" && (position = "start"), wrappedText = cliTruncate(text, maxWidth, { position });
}
return cache2[cacheKey] = wrappedText, wrappedText;
}, wrap_text_default = wrapText;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/squash-text-nodes.js
init_cjs_shims();
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/sanitize-ansi.js
init_cjs_shims();
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/ansi-tokenizer.js
init_cjs_shims();
var isCsiParameterCharacter = (character) => {
let codePoint = character.codePointAt(0);
return codePoint !== void 0 && codePoint >= 48 && codePoint <= 63;
}, isCsiIntermediateCharacter = (character) => {
let codePoint = character.codePointAt(0);
return codePoint !== void 0 && codePoint >= 32 && codePoint <= 47;
}, isCsiFinalCharacter = (character) => {
let codePoint = character.codePointAt(0);
return codePoint !== void 0 && codePoint >= 64 && codePoint <= 126;
}, isEscapeIntermediateCharacter = (character) => {
let codePoint = character.codePointAt(0);
return codePoint !== void 0 && codePoint >= 32 && codePoint <= 47;
}, isEscapeFinalCharacter = (character) => {
let codePoint = character.codePointAt(0);
return codePoint !== void 0 && codePoint >= 48 && codePoint <= 126;
}, isC1ControlCharacter = (character) => {
let codePoint = character.codePointAt(0);
return codePoint !== void 0 && codePoint >= 128 && codePoint <= 159;
}, readCsiSequence = (text, fromIndex) => {
let index = fromIndex;
for (; index < text.length; ) {
let character = text[index];
if (!isCsiParameterCharacter(character))
break;
index++;
}
let parameterString = text.slice(fromIndex, index), intermediateStartIndex = index;
for (; index < text.length; ) {
let character = text[index];
if (!isCsiIntermediateCharacter(character))
break;
index++;
}
let intermediateString = text.slice(intermediateStartIndex, index), finalCharacter = text[index];
if (!(finalCharacter === void 0 || !isCsiFinalCharacter(finalCharacter)))
return {
endIndex: index + 1,
parameterString,
intermediateString,
finalCharacter
};
}, findControlStringTerminatorIndex = (text, fromIndex, allowBellTerminator) => {
for (let index = fromIndex; index < text.length; index++) {
let character = text[index];
if (allowBellTerminator && character === "\x07" || character === "\x9C")
return index + 1;
if (character === "\x1B") {
let followingCharacter = text[index + 1];
if (followingCharacter === "\x1B") {
index++;
continue;
}
if (followingCharacter === "\\")
return index + 2;
}
}
}, readEscapeSequence = (text, fromIndex) => {
let index = fromIndex;
for (; index < text.length; ) {
let character = text[index];
if (!isEscapeIntermediateCharacter(character))
break;
index++;
}
let intermediateString = text.slice(fromIndex, index), finalCharacter = text[index];
if (!(finalCharacter === void 0 || !isEscapeFinalCharacter(finalCharacter)))
return {
endIndex: index + 1,
intermediateString,
finalCharacter
};
}, getControlStringFromEscapeIntroducer = (character) => {
switch (character) {
case "]":
return { type: "osc", allowBellTerminator: !0 };
case "P":
return { type: "dcs", allowBellTerminator: !1 };
case "^":
return { type: "pm", allowBellTerminator: !1 };
case "_":
return { type: "apc", allowBellTerminator: !1 };
case "X":
return { type: "sos", allowBellTerminator: !1 };
default:
return;
}
}, getControlStringFromC1Introducer = (character) => {
switch (character) {
case "\x9D":
return { type: "osc", allowBellTerminator: !0 };
case "\x90":
return { type: "dcs", allowBellTerminator: !1 };
case "\x9E":
return { type: "pm", allowBellTerminator: !1 };
case "\x9F":
return { type: "apc", allowBellTerminator: !1 };
case "\x98":
return { type: "sos", allowBellTerminator: !1 };
default:
return;
}
}, hasAnsiControlCharacters = (text) => {
if (text.includes("\x1B"))
return !0;
for (let character of text)
if (isC1ControlCharacter(character))
return !0;
return !1;
}, malformedFromIndex = (tokens, text, textStartIndex, fromIndex) => (fromIndex > textStartIndex && tokens.push({ type: "text", value: text.slice(textStartIndex, fromIndex) }), tokens.push({ type: "invalid", value: text.slice(fromIndex) }), tokens), tokenizeAnsi = (text) => {
if (!hasAnsiControlCharacters(text))
return [{ type: "text", value: text }];
let tokens = [], textStartIndex = 0;
for (let index = 0; index < text.length; ) {
let character = text[index];
if (character === void 0)
break;
if (character === "\x1B") {
let followingCharacter = text[index + 1];
if (followingCharacter === void 0)
return malformedFromIndex(tokens, text, textStartIndex, index);
if (followingCharacter === "[") {
let csiSequence = readCsiSequence(text, index + 2);
if (csiSequence === void 0)
return malformedFromIndex(tokens, text, textStartIndex, index);
index > textStartIndex && tokens.push({ type: "text", value: text.slice(textStartIndex, index) }), tokens.push({
type: "csi",
value: text.slice(index, csiSequence.endIndex),
parameterString: csiSequence.parameterString,
intermediateString: csiSequence.intermediateString,
finalCharacter: csiSequence.finalCharacter
}), index = csiSequence.endIndex, textStartIndex = index;
continue;
}
let escapeControlString = getControlStringFromEscapeIntroducer(followingCharacter);
if (escapeControlString !== void 0) {
let controlStringTerminatorIndex = findControlStringTerminatorIndex(text, index + 2, escapeControlString.allowBellTerminator);
if (controlStringTerminatorIndex === void 0)
return malformedFromIndex(tokens, text, textStartIndex, index);
index > textStartIndex && tokens.push({ type: "text", value: text.slice(textStartIndex, index) }), tokens.push({
type: escapeControlString.type,
value: text.slice(index, controlStringTerminatorIndex)
}), index = controlStringTerminatorIndex, textStartIndex = index;
continue;
}
let escapeSequence = readEscapeSequence(text, index + 1);
if (escapeSequence === void 0) {
if (isEscapeIntermediateCharacter(followingCharacter))
return malformedFromIndex(tokens, text, textStartIndex, index);
index > textStartIndex && tokens.push({ type: "text", value: text.slice(textStartIndex, index) }), index++, textStartIndex = index;
continue;
}
index > textStartIndex && tokens.push({ type: "text", value: text.slice(textStartIndex, index) }), tokens.push({
type: "esc",
value: text.slice(index, escapeSequence.endIndex),
intermediateString: escapeSequence.intermediateString,
finalCharacter: escapeSequence.finalCharacter
}), index = escapeSequence.endIndex, textStartIndex = index;
continue;
}
if (character === "\x9B") {
let csiSequence = readCsiSequence(text, index + 1);
if (csiSequence === void 0)
return malformedFromIndex(tokens, text, textStartIndex, index);
index > textStartIndex && tokens.push({ type: "text", value: text.slice(textStartIndex, index) }), tokens.push({
type: "csi",
value: text.slice(index, csiSequence.endIndex),
parameterString: csiSequence.parameterString,
intermediateString: csiSequence.intermediateString,
finalCharacter: csiSequence.finalCharacter
}), index = csiSequence.endIndex, textStartIndex = index;
continue;
}
let c1ControlString = getControlStringFromC1Introducer(character);
if (c1ControlString !== void 0) {
let controlStringTerminatorIndex = findControlStringTerminatorIndex(text, index + 1, c1ControlString.allowBellTerminator);
if (controlStringTerminatorIndex === void 0)
return malformedFromIndex(tokens, text, textStartIndex, index);
index > textStartIndex && tokens.push({ type: "text", value: text.slice(textStartIndex, index) }), tokens.push({
type: c1ControlString.type,
value: text.slice(index, controlStringTerminatorIndex)
}), index = controlStringTerminatorIndex, textStartIndex = index;
continue;
}
if (character === "\x9C") {
index > textStartIndex && tokens.push({ type: "text", value: text.slice(textStartIndex, index) }), tokens.push({ type: "st", value: character }), index++, textStartIndex = index;
continue;
}
if (isC1ControlCharacter(character)) {
index > textStartIndex && tokens.push({ type: "text", value: text.slice(textStartIndex, index) }), tokens.push({ type: "c1", value: character }), index++, textStartIndex = index;
continue;
}
index++;
}
return textStartIndex < text.length && tokens.push({ type: "text", value: text.slice(textStartIndex) }), tokens;
};
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/sanitize-ansi.js
var sgrParametersRegex = /^[\d:;]*$/, sanitizeAnsi = (text) => {
if (!hasAnsiControlCharacters(text))
return text;
let output2 = "";
for (let token of tokenizeAnsi(text)) {
if (token.type === "text" || token.type === "osc") {
output2 += token.value;
continue;
}
token.type === "csi" && token.finalCharacter === "m" && token.intermediateString === "" && sgrParametersRegex.test(token.parameterString) && (output2 += token.value);
}
return output2;
}, sanitize_ansi_default = sanitizeAnsi;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/squash-text-nodes.js
var squashTextNodes = (node) => {
let text = "";
for (let index = 0; index < node.childNodes.length; index++) {
let childNode = node.childNodes[index];
if (childNode === void 0)
continue;
let nodeText = "";
childNode.nodeName === "#text" ? nodeText = childNode.nodeValue : ((childNode.nodeName === "ink-text" || childNode.nodeName === "ink-virtual-text") && (nodeText = squashTextNodes(childNode)), nodeText.length > 0 && typeof childNode.internal_transform == "function" && (nodeText = childNode.internal_transform(nodeText, index))), text += nodeText;
}
return sanitize_ansi_default(text);
}, squash_text_nodes_default = squashTextNodes;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/dom.js
var createNode = (nodeName) => {
let node = {
nodeName,
style: {},
attributes: {},
childNodes: [],
parentNode: void 0,
yogaNode: nodeName === "ink-virtual-text" ? void 0 : src_default.Node.create(),
// eslint-disable-next-line @typescript-eslint/naming-convention
internal_accessibility: {}
};
return nodeName === "ink-text" && node.yogaNode?.setMeasureFunc(measureTextNode.bind(null, node)), node;
}, appendChildNode = (node, childNode) => {
childNode.parentNode && removeChildNode(childNode.parentNode, childNode), childNode.parentNode = node, node.childNodes.push(childNode), childNode.yogaNode && node.yogaNode?.insertChild(childNode.yogaNode, node.yogaNode.getChildCount()), (node.nodeName === "ink-text" || node.nodeName === "ink-virtual-text") && markNodeAsDirty(node);
}, insertBeforeNode = (node, newChildNode, beforeChildNode) => {
newChildNode.parentNode && removeChildNode(newChildNode.parentNode, newChildNode), newChildNode.parentNode = node;
let index = node.childNodes.indexOf(beforeChildNode);
index >= 0 ? (node.childNodes.splice(index, 0, newChildNode), newChildNode.yogaNode && node.yogaNode?.insertChild(newChildNode.yogaNode, index)) : (node.childNodes.push(newChildNode), newChildNode.yogaNode && node.yogaNode?.insertChild(newChildNode.yogaNode, node.yogaNode.getChildCount())), (node.nodeName === "ink-text" || node.nodeName === "ink-virtual-text") && markNodeAsDirty(node);
}, removeChildNode = (node, removeNode) => {
removeNode.yogaNode && removeNode.parentNode?.yogaNode?.removeChild(removeNode.yogaNode), removeNode.parentNode = void 0;
let index = node.childNodes.indexOf(removeNode);
index >= 0 && node.childNodes.splice(index, 1), (node.nodeName === "ink-text" || node.nodeName === "ink-virtual-text") && markNodeAsDirty(node);
}, setAttribute = (node, key, value) => {
if (key === "internal_accessibility") {
node.internal_accessibility = value;
return;
}
node.attributes[key] = value;
}, setStyle = (node, style) => {
node.style = style;
}, createTextNode = (text) => {
let node = {
nodeName: "#text",
nodeValue: text,
yogaNode: void 0,
parentNode: void 0,
style: {}
};
return setTextNodeValue(node, text), node;
}, measureTextNode = function(node, width) {
let text = node.nodeName === "#text" ? node.nodeValue : squash_text_nodes_default(node), dimensions = measure_text_default(text);
if (dimensions.width <= width || dimensions.width >= 1 && width > 0 && width < 1)
return dimensions;
let textWrap = node.style?.textWrap ?? "wrap", wrappedText = wrap_text_default(text, width, textWrap);
return measure_text_default(wrappedText);
}, findClosestYogaNode = (node) => {
if (node?.parentNode)
return node.yogaNode ?? findClosestYogaNode(node.parentNode);
}, markNodeAsDirty = (node) => {
findClosestYogaNode(node)?.markDirty();
}, setTextNodeValue = (node, text) => {
typeof text != "string" && (text = String(text)), node.nodeValue = text, markNodeAsDirty(node);
};
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/styles.js
init_cjs_shims();
var applyPositionStyles = (node, style) => {
"position" in style && node.setPositionType(style.position === "absolute" ? src_default.POSITION_TYPE_ABSOLUTE : src_default.POSITION_TYPE_RELATIVE);
}, applyMarginStyles = (node, style) => {
"margin" in style && node.setMargin(src_default.EDGE_ALL, style.margin ?? 0), "marginX" in style && node.setMargin(src_default.EDGE_HORIZONTAL, style.marginX ?? 0), "marginY" in style && node.setMargin(src_default.EDGE_VERTICAL, style.marginY ?? 0), "marginLeft" in style && node.setMargin(src_default.EDGE_START, style.marginLeft || 0), "marginRight" in style && node.setMargin(src_default.EDGE_END, style.marginRight || 0), "marginTop" in style && node.setMargin(src_default.EDGE_TOP, style.marginTop || 0), "marginBottom" in style && node.setMargin(src_default.EDGE_BOTTOM, style.marginBottom || 0);
}, applyPaddingStyles = (node, style) => {
"padding" in style && node.setPadding(src_default.EDGE_ALL, style.padding ?? 0), "paddingX" in style && node.setPadding(src_default.EDGE_HORIZONTAL, style.paddingX ?? 0), "paddingY" in style && node.setPadding(src_default.EDGE_VERTICAL, style.paddingY ?? 0), "paddingLeft" in style && node.setPadding(src_default.EDGE_LEFT, style.paddingLeft || 0), "paddingRight" in style && node.setPadding(src_default.EDGE_RIGHT, style.paddingRight || 0), "paddingTop" in style && node.setPadding(src_default.EDGE_TOP, style.paddingTop || 0), "paddingBottom" in style && node.setPadding(src_default.EDGE_BOTTOM, style.paddingBottom || 0);
}, applyFlexStyles = (node, style) => {
"flexGrow" in style && node.setFlexGrow(style.flexGrow ?? 0), "flexShrink" in style && node.setFlexShrink(typeof style.flexShrink == "number" ? style.flexShrink : 1), "flexWrap" in style && (style.flexWrap === "nowrap" && node.setFlexWrap(src_default.WRAP_NO_WRAP), style.flexWrap === "wrap" && node.setFlexWrap(src_default.WRAP_WRAP), style.flexWrap === "wrap-reverse" && node.setFlexWrap(src_default.WRAP_WRAP_REVERSE)), "flexDirection" in style && (style.flexDirection === "row" && node.setFlexDirection(src_default.FLEX_DIRECTION_ROW), style.flexDirection === "row-reverse" && node.setFlexDirection(src_default.FLEX_DIRECTION_ROW_REVERSE), style.flexDirection === "column" && node.setFlexDirection(src_default.FLEX_DIRECTION_COLUMN), style.flexDirection === "column-reverse" && node.setFlexDirection(src_default.FLEX_DIRECTION_COLUMN_REVERSE)), "flexBasis" in style && (typeof style.flexBasis == "number" ? node.setFlexBasis(style.flexBasis) : typeof style.flexBasis == "string" ? node.setFlexBasisPercent(Number.parseInt(style.flexBasis, 10)) : node.setFlexBasis(Number.NaN)), "alignItems" in style && ((style.alignItems === "stretch" || !style.alignItems) && node.setAlignItems(src_default.ALIGN_STRETCH), style.alignItems === "flex-start" && node.setAlignItems(src_default.ALIGN_FLEX_START), style.alignItems === "center" && node.setAlignItems(src_default.ALIGN_CENTER), style.alignItems === "flex-end" && node.setAlignItems(src_default.ALIGN_FLEX_END)), "alignSelf" in style && ((style.alignSelf === "auto" || !style.alignSelf) && node.setAlignSelf(src_default.ALIGN_AUTO), style.alignSelf === "flex-start" && node.setAlignSelf(src_default.ALIGN_FLEX_START), style.alignSelf === "center" && node.setAlignSelf(src_default.ALIGN_CENTER), style.alignSelf === "flex-end" && node.setAlignSelf(src_default.ALIGN_FLEX_END)), "justifyContent" in style && ((style.justifyContent === "flex-start" || !style.justifyContent) && node.setJustifyContent(src_default.JUSTIFY_FLEX_START), style.justifyContent === "center" && node.setJustifyContent(src_default.JUSTIFY_CENTER), style.justifyContent === "flex-end" && node.setJustifyContent(src_default.JUSTIFY_FLEX_END), style.justifyContent === "space-between" && node.setJustifyContent(src_default.JUSTIFY_SPACE_BETWEEN), style.justifyContent === "space-around" && node.setJustifyContent(src_default.JUSTIFY_SPACE_AROUND), style.justifyContent === "space-evenly" && node.setJustifyContent(src_default.JUSTIFY_SPACE_EVENLY));
}, applyDimensionStyles = (node, style) => {
"width" in style && (typeof style.width == "number" ? node.setWidth(style.width) : typeof style.width == "string" ? node.setWidthPercent(Number.parseInt(style.width, 10)) : node.setWidthAuto()), "height" in style && (typeof style.height == "number" ? node.setHeight(style.height) : typeof style.height == "string" ? node.setHeightPercent(Number.parseInt(style.height, 10)) : node.setHeightAuto()), "minWidth" in style && (typeof style.minWidth == "string" ? node.setMinWidthPercent(Number.parseInt(style.minWidth, 10)) : node.setMinWidth(style.minWidth ?? 0)), "minHeight" in style && (typeof style.minHeight == "string" ? node.setMinHeightPercent(Number.parseInt(style.minHeight, 10)) : node.setMinHeight(style.minHeight ?? 0));
}, applyDisplayStyles = (node, style) => {
"display" in style && node.setDisplay(style.display === "flex" ? src_default.DISPLAY_FLEX : src_default.DISPLAY_NONE);
}, applyBorderStyles = (node, style) => {
if ("borderStyle" in style) {
let borderWidth = style.borderStyle ? 1 : 0;
style.borderTop !== !1 && node.setBorder(src_default.EDGE_TOP, borderWidth), style.borderBottom !== !1 && node.setBorder(src_default.EDGE_BOTTOM, borderWidth), style.borderLeft !== !1 && node.setBorder(src_default.EDGE_LEFT, borderWidth), style.borderRight !== !1 && node.setBorder(src_default.EDGE_RIGHT, borderWidth);
}
}, applyGapStyles = (node, style) => {
"gap" in style && node.setGap(src_default.GUTTER_ALL, style.gap ?? 0), "columnGap" in style && node.setGap(src_default.GUTTER_COLUMN, style.columnGap ?? 0), "rowGap" in style && node.setGap(src_default.GUTTER_ROW, style.rowGap ?? 0);
}, styles2 = (node, style = {}) => {
applyPositionStyles(node, style), applyMarginStyles(node, style), applyPaddingStyles(node, style), applyFlexStyles(node, style), applyDimensionStyles(node, style), applyDisplayStyles(node, style), applyBorderStyles(node, style), applyGapStyles(node, style);
}, styles_default = styles2;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/reconciler.js
if (isDev())
try {
await import("./devtools-MQLG4C6G.js");
} catch (error) {
if (error.code === "ERR_MODULE_NOT_FOUND")
console.warn(`
The environment variable DEV is set to true, so Ink tried to import \`react-devtools-core\`,
but this failed as it was not installed. Debugging with React Devtools requires it.
To install use this command:
$ npm install --save-dev react-devtools-core
`.trim() + `
`);
else
throw error;
}
var diff = (before, after) => {
if (before === after)
return;
if (!before)
return after;
let changed = {}, isChanged = !1;
for (let key of Object.keys(before))
(!after || !Object.hasOwn(after, key)) && (changed[key] = void 0, isChanged = !0);
if (after)
for (let key of Object.keys(after))
after[key] !== before[key] && (changed[key] = after[key], isChanged = !0);
return isChanged ? changed : void 0;
}, cleanupYogaNode = (node) => {
node?.unsetMeasureFunc(), node?.freeRecursive();
}, currentUpdatePriority = import_constants.NoEventPriority, currentRootNode;
async function loadPackageJson() {
let content = (await import("node:fs")).readFileSync(new URL("../package.json", import.meta.url), "utf8");
return JSON.parse(content);
}
var packageJson = isDev() ? await loadPackageJson() : { name: void 0, version: void 0 }, reconciler_default = (0, import_react_reconciler.default)({
getRootHostContext: () => ({
isInsideText: !1
}),
prepareForCommit: () => null,
preparePortalMount: () => null,
clearContainer: () => !1,
resetAfterCommit(rootNode) {
if (typeof rootNode.onComputeLayout == "function" && rootNode.onComputeLayout(), rootNode.isStaticDirty) {
rootNode.isStaticDirty = !1, typeof rootNode.onImmediateRender == "function" && rootNode.onImmediateRender();
return;
}
typeof rootNode.onRender == "function" && rootNode.onRender();
},
getChildHostContext(parentHostContext, type) {
let previousIsInsideText = parentHostContext.isInsideText, isInsideText = type === "ink-text" || type === "ink-virtual-text";
return previousIsInsideText === isInsideText ? parentHostContext : { isInsideText };
},
shouldSetTextContent: () => !1,
createInstance(originalType, newProps, rootNode, hostContext) {
if (hostContext.isInsideText && originalType === "ink-box")
throw new Error("<Box> can\u2019t be nested inside <Text> component");
let type = originalType === "ink-text" && hostContext.isInsideText ? "ink-virtual-text" : originalType, node = createNode(type);
for (let [key, value] of Object.entries(newProps))
if (key !== "children") {
if (key === "style") {
setStyle(node, value), node.yogaNode && styles_default(node.yogaNode, value);
continue;
}
if (key === "internal_transform") {
node.internal_transform = value;
continue;
}
if (key === "internal_static") {
currentRootNode = rootNode, node.internal_static = !0, rootNode.isStaticDirty = !0, rootNode.staticNode = node;
continue;
}
setAttribute(node, key, value);
}
return node;
},
createTextInstance(text, _root, hostContext) {
if (!hostContext.isInsideText)
throw new Error(`Text string "${text}" must be rendered inside <Text> component`);
return createTextNode(text);
},
resetTextContent() {
},
hideTextInstance(node) {
setTextNodeValue(node, "");
},
unhideTextInstance(node, text) {
setTextNodeValue(node, text);
},
getPublicInstance: (instance) => instance,
hideInstance(node) {
node.yogaNode?.setDisplay(src_default.DISPLAY_NONE);
},
unhideInstance(node) {
node.yogaNode?.setDisplay(src_default.DISPLAY_FLEX);
},
appendInitialChild: appendChildNode,
appendChild: appendChildNode,
insertBefore: insertBeforeNode,
finalizeInitialChildren() {
return !1;
},
isPrimaryRenderer: !0,
supportsMutation: !0,
supportsPersistence: !1,
supportsHydration: !1,
// Scheduler integration for concurrent mode
supportsMicrotasks: !0,
scheduleMicrotask: queueMicrotask,
// @ts-expect-error @types/react-reconciler is outdated and doesn't include scheduleCallback
scheduleCallback: Scheduler.unstable_scheduleCallback,
cancelCallback: Scheduler.unstable_cancelCallback,
shouldYield: Scheduler.unstable_shouldYield,
now: Scheduler.unstable_now,
scheduleTimeout: setTimeout,
cancelTimeout: clearTimeout,
noTimeout: -1,
beforeActiveInstanceBlur() {
},
afterActiveInstanceBlur() {
},
detachDeletedInstance() {
},
getInstanceFromNode: () => null,
prepareScopeUpdate() {
},
getInstanceFromScope: () => null,
appendChildToContainer: appendChildNode,
insertInContainerBefore: insertBeforeNode,
removeChildFromContainer(node, removeNode) {
removeChildNode(node, removeNode), cleanupYogaNode(removeNode.yogaNode);
},
commitUpdate(node, _type, oldProps, newProps) {
currentRootNode && node.internal_static && (currentRootNode.isStaticDirty = !0);
let props = diff(oldProps, newProps), style = diff(oldProps.style, newProps.style);
if (!(!props && !style)) {
if (props)
for (let [key, value] of Object.entries(props)) {
if (key === "style") {
setStyle(node, value);
continue;
}
if (key === "internal_transform") {
node.internal_transform = value;
continue;
}
if (key === "internal_static") {
node.internal_static = !0;
continue;
}
setAttribute(node, key, value);
}
style && node.yogaNode && styles_default(node.yogaNode, style);
}
},
commitTextUpdate(node, _oldText, newText) {
setTextNodeValue(node, newText);
},
removeChild(node, removeNode) {
removeChildNode(node, removeNode), cleanupYogaNode(removeNode.yogaNode);
},
setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
},
getCurrentUpdatePriority: () => currentUpdatePriority,
resolveUpdatePriority() {
return currentUpdatePriority !== import_constants.NoEventPriority ? currentUpdatePriority : import_constants.DefaultEventPriority;
},
maySuspendCommit() {
return !0;
},
// eslint-disable-next-line @typescript-eslint/naming-convention
NotPendingTransition: void 0,
// eslint-disable-next-line @typescript-eslint/naming-convention
HostTransitionContext: (0, import_react.createContext)(null),
resetFormInstance() {
},
requestPostPaintCallback() {
},
shouldAttemptEagerTransition() {
return !1;
},
trackSchedulerEvent() {
},
resolveEventType() {
return null;
},
resolveEventTimeStamp() {
return -1.1;
},
preloadInstance() {
return !0;
},
startSuspendingCommit() {
},
suspendInstance() {
},
waitForCommitToBeReady() {
return null;
},
rendererPackageName: packageJson.name,
rendererVersion: packageJson.version
});
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/renderer.js
init_cjs_shims();
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/render-node-to-output.js
init_cjs_shims();
// ../../node_modules/.pnpm/indent-string@5.0.0/node_modules/indent-string/index.js
init_cjs_shims();
function indentString(string, count = 1, options = {}) {
let {
indent = " ",
includeEmptyLines = !1
} = options;
if (typeof string != "string")
throw new TypeError(
`Expected \`input\` to be a \`string\`, got \`${typeof string}\``
);
if (typeof count != "number")
throw new TypeError(
`Expected \`count\` to be a \`number\`, got \`${typeof count}\``
);
if (count < 0)
throw new RangeError(
`Expected \`count\` to be at least 0, got \`${count}\``
);
if (typeof indent != "string")
throw new TypeError(
`Expected \`options.indent\` to be a \`string\`, got \`${typeof indent}\``
);
if (count === 0)
return string;
let regex = includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
return string.replace(regex, indent.repeat(count));
}
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/get-max-width.js
init_cjs_shims();
var getMaxWidth = (yogaNode) => yogaNode.getComputedWidth() - yogaNode.getComputedPadding(src_default.EDGE_LEFT) - yogaNode.getComputedPadding(src_default.EDGE_RIGHT) - yogaNode.getComputedBorder(src_default.EDGE_LEFT) - yogaNode.getComputedBorder(src_default.EDGE_RIGHT), get_max_width_default = getMaxWidth;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/render-border.js
init_cjs_shims();
var import_cli_boxes = __toESM(require_cli_boxes(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/colorize.js
init_cjs_shims();
var rgbRegex = /^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/, ansiRegex = /^ansi256\(\s?(\d+)\s?\)$/, isNamedColor = (color) => color in source_default, colorize = (str, color, type) => {
if (!color)
return str;
if (isNamedColor(color)) {
if (type === "foreground")
return source_default[color](str);
let methodName = `bg${color[0].toUpperCase() + color.slice(1)}`;
return source_default[methodName](str);
}
if (color.startsWith("#"))
return type === "foreground" ? source_default.hex(color)(str) : source_default.bgHex(color)(str);
if (color.startsWith("ansi256")) {
let matches = ansiRegex.exec(color);
if (!matches)
return str;
let value = Number(matches[1]);
return type === "foreground" ? source_default.ansi256(value)(str) : source_default.bgAnsi256(value)(str);
}
if (color.startsWith("rgb")) {
let matches = rgbRegex.exec(color);
if (!matches)
return str;
let firstValue = Number(matches[1]), secondValue = Number(matches[2]), thirdValue = Number(matches[3]);
return type === "foreground" ? source_default.rgb(firstValue, secondValue, thirdValue)(str) : source_default.bgRgb(firstValue, secondValue, thirdValue)(str);
}
return str;
}, colorize_default = colorize;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/render-border.js
var renderBorder = (x, y, node, output2) => {
if (node.style.borderStyle) {
let width = node.yogaNode.getComputedWidth(), height = node.yogaNode.getComputedHeight(), box = typeof node.style.borderStyle == "string" ? import_cli_boxes.default[node.style.borderStyle] : node.style.borderStyle, topBorderColor = node.style.borderTopColor ?? node.style.borderColor, bottomBorderColor = node.style.borderBottomColor ?? node.style.borderColor, leftBorderColor = node.style.borderLeftColor ?? node.style.borderColor, rightBorderColor = node.style.borderRightColor ?? node.style.borderColor, dimTopBorderColor = node.style.borderTopDimColor ?? node.style.borderDimColor, dimBottomBorderColor = node.style.borderBottomDimColor ?? node.style.borderDimColor, dimLeftBorderColor = node.style.borderLeftDimColor ?? node.style.borderDimColor, dimRightBorderColor = node.style.borderRightDimColor ?? node.style.borderDimColor, showTopBorder = node.style.borderTop !== !1, showBottomBorder = node.style.borderBottom !== !1, showLeftBorder = node.style.borderLeft !== !1, showRightBorder = node.style.borderRight !== !1, contentWidth = width - (showLeftBorder ? 1 : 0) - (showRightBorder ? 1 : 0), topBorder = showTopBorder ? colorize_default((showLeftBorder ? box.topLeft : "") + box.top.repeat(contentWidth) + (showRightBorder ? box.topRight : ""), topBorderColor, "foreground") : void 0;
showTopBorder && dimTopBorderColor && (topBorder = source_default.dim(topBorder));
let verticalBorderHeight = height;
showTopBorder && (verticalBorderHeight -= 1), showBottomBorder && (verticalBorderHeight -= 1);
let leftBorder = (colorize_default(box.left, leftBorderColor, "foreground") + `
`).repeat(verticalBorderHeight);
dimLeftBorderColor && (leftBorder = source_default.dim(leftBorder));
let rightBorder = (colorize_default(box.right, rightBorderColor, "foreground") + `
`).repeat(verticalBorderHeight);
dimRightBorderColor && (rightBorder = source_default.dim(rightBorder));
let bottomBorder = showBottomBorder ? colorize_default((showLeftBorder ? box.bottomLeft : "") + box.bottom.repeat(contentWidth) + (showRightBorder ? box.bottomRight : ""), bottomBorderColor, "foreground") : void 0;
showBottomBorder && dimBottomBorderColor && (bottomBorder = source_default.dim(bottomBorder));
let offsetY = showTopBorder ? 1 : 0;
topBorder && output2.write(x, y, topBorder, { transformers: [] }), showLeftBorder && output2.write(x, y + offsetY, leftBorder, { transformers: [] }), showRightBorder && output2.write(x + width - 1, y + offsetY, rightBorder, {
transformers: []
}), bottomBorder && output2.write(x, y + height - 1, bottomBorder, { transformers: [] });
}
}, render_border_default = renderBorder;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/render-background.js
init_cjs_shims();
var renderBackground = (x, y, node, output2) => {
if (!node.style.backgroundColor)
return;
let width = node.yogaNode.getComputedWidth(), height = node.yogaNode.getComputedHeight(), leftBorderWidth = node.style.borderStyle && node.style.borderLeft !== !1 ? 1 : 0, rightBorderWidth = node.style.borderStyle && node.style.borderRight !== !1 ? 1 : 0, topBorderHeight = node.style.borderStyle && node.style.borderTop !== !1 ? 1 : 0, bottomBorderHeight = node.style.borderStyle && node.style.borderBottom !== !1 ? 1 : 0, contentWidth = width - leftBorderWidth - rightBorderWidth, contentHeight = height - topBorderHeight - bottomBorderHeight;
if (!(contentWidth > 0 && contentHeight > 0))
return;
let backgroundLine = colorize_default(" ".repeat(contentWidth), node.style.backgroundColor, "background");
for (let row = 0; row < contentHeight; row++)
output2.write(x + leftBorderWidth, y + topBorderHeight + row, backgroundLine, { transformers: [] });
}, render_background_default = renderBackground;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/render-node-to-output.js
var applyPaddingToText = (node, text) => {
let yogaNode = node.childNodes[0]?.yogaNode;
if (yogaNode) {
let offsetX = yogaNode.getComputedLeft(), offsetY = yogaNode.getComputedTop();
text = `
`.repeat(offsetY) + indentString(text, offsetX);
}
return text;
}, renderNodeToScreenReaderOutput = (node, options = {}) => {
if (options.skipStaticElements && node.internal_static || node.yogaNode?.getDisplay() === src_default.DISPLAY_NONE)
return "";
let output2 = "";
if (node.nodeName === "ink-text")
output2 = squash_text_nodes_default(node);
else if (node.nodeName === "ink-box" || node.nodeName === "ink-root") {
let separator = node.style.flexDirection === "row" || node.style.flexDirection === "row-reverse" ? " " : `
`;
output2 = (node.style.flexDirection === "row-reverse" || node.style.flexDirection === "column-reverse" ? [...node.childNodes].reverse() : [...node.childNodes]).map((childNode) => renderNodeToScreenReaderOutput(childNode, {
parentRole: node.internal_accessibility?.role,
skipStaticElements: options.skipStaticElements
})).filter(Boolean).join(separator);
}
if (node.internal_accessibility) {
let { role, state } = node.internal_accessibility;
if (state) {
let stateDescription = Object.keys(state).filter((key) => state[key]).join(", ");
stateDescription && (output2 = `(${stateDescription}) ${output2}`);
}
role && role !== options.parentRole && (output2 = `${role}: ${output2}`);
}
return output2;
}, renderNodeToOutput = (node, output2, options) => {
let { offsetX = 0, offsetY = 0, transformers = [], skipStaticElements } = options;
if (skipStaticElements && node.internal_static)
return;
let { yogaNode } = node;
if (yogaNode) {
if (yogaNode.getDisplay() === src_default.DISPLAY_NONE)
return;
let x = offsetX + yogaNode.getComputedLeft(), y = offsetY + yogaNode.getComputedTop(), newTransformers = transformers;
if (typeof node.internal_transform == "function" && (newTransformers = [node.internal_transform, ...transformers]), node.nodeName === "ink-text") {
let text = squash_text_nodes_default(node);
if (text.length > 0) {
let currentWidth = widestLine(text), maxWidth = get_max_width_default(yogaNode);
if (currentWidth > maxWidth) {
let textWrap = node.style.textWrap ?? "wrap";
text = wrap_text_default(text, maxWidth, textWrap);
}
text = applyPaddingToText(node, text), output2.write(x, y, text, { transformers: newTransformers });
}
return;
}
let clipped = !1;
if (node.nodeName === "ink-box") {
render_background_default(x, y, node, output2), render_border_default(x, y, node, output2);
let clipHorizontally = node.style.overflowX === "hidden" || node.style.overflow === "hidden", clipVertically = node.style.overflowY === "hidden" || node.style.overflow === "hidden";
if (clipHorizontally || clipVertically) {
let x1 = clipHorizontally ? x + yogaNode.getComputedBorder(src_default.EDGE_LEFT) : void 0, x2 = clipHorizontally ? x + yogaNode.getComputedWidth() - yogaNode.getComputedBorder(src_default.EDGE_RIGHT) : void 0, y1 = clipVertically ? y + yogaNode.getComputedBorder(src_default.EDGE_TOP) : void 0, y2 = clipVertically ? y + yogaNode.getComputedHeight() - yogaNode.getComputedBorder(src_default.EDGE_BOTTOM) : void 0;
output2.clip({ x1, x2, y1, y2 }), clipped = !0;
}
}
if (node.nodeName === "ink-root" || node.nodeName === "ink-box") {
for (let childNode of node.childNodes)
renderNodeToOutput(childNode, output2, {
offsetX: x,
offsetY: y,
transformers: newTransformers,
skipStaticElements
});
clipped && output2.unclip();
}
}
}, render_node_to_output_default = renderNodeToOutput;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/output.js
init_cjs_shims();
// ../../node_modules/.pnpm/slice-ansi@8.0.0/node_modules/slice-ansi/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/slice-ansi@8.0.0/node_modules/slice-ansi/tokenize-ansi.js
init_cjs_shims();
var ESCAPE_CODE_POINT = 27, C1_DCS_CODE_POINT = 144, C1_SOS_CODE_POINT = 152, C1_CSI_CODE_POINT = 155, C1_ST_CODE_POINT = 156, C1_OSC_CODE_POINT = 157, C1_PM_CODE_POINT = 158, C1_APC_CODE_POINT = 159, ESCAPES3 = /* @__PURE__ */ new Set([
ESCAPE_CODE_POINT,
C1_DCS_CODE_POINT,
C1_SOS_CODE_POINT,
C1_CSI_CODE_POINT,
C1_ST_CODE_POINT,
C1_OSC_CODE_POINT,
C1_PM_CODE_POINT,
C1_APC_CODE_POINT
]), ESCAPE = "\x1B", ANSI_BELL = "\x07", ANSI_CSI2 = "[", ANSI_OSC2 = "]", ANSI_DCS = "P", ANSI_SOS = "X", ANSI_PM = "^", ANSI_APC = "_", ANSI_SGR_TERMINATOR2 = "m", ANSI_OSC_TERMINATOR = "\\", ANSI_STRING_TERMINATOR = `${ESCAPE}${ANSI_OSC_TERMINATOR}`, C1_OSC = "\x9D", C1_STRING_TERMINATOR = "\x9C", ANSI_HYPERLINK_ESC_PREFIX = `${ESCAPE}${ANSI_OSC2}8;`, ANSI_HYPERLINK_C1_PREFIX = `${C1_OSC}8;`, ANSI_HYPERLINK_ESC_CLOSE = `${ANSI_HYPERLINK_ESC_PREFIX};`, ANSI_HYPERLINK_C1_CLOSE = `${ANSI_HYPERLINK_C1_PREFIX};`, CODE_POINT_02 = "0".codePointAt(0), CODE_POINT_92 = "9".codePointAt(0), CODE_POINT_SEMICOLON = ";".codePointAt(0), CODE_POINT_COLON = ":".codePointAt(0), CODE_POINT_CSI_PARAMETER_START = "0".codePointAt(0), CODE_POINT_CSI_PARAMETER_END = "?".codePointAt(0), CODE_POINT_CSI_INTERMEDIATE_START = " ".codePointAt(0), CODE_POINT_CSI_INTERMEDIATE_END = "/".codePointAt(0), CODE_POINT_CSI_FINAL_START = "@".codePointAt(0), CODE_POINT_CSI_FINAL_END = "~".codePointAt(0), REGIONAL_INDICATOR_SYMBOL_LETTER_A = 127462, REGIONAL_INDICATOR_SYMBOL_LETTER_Z = 127487, SGR_RESET_CODE = 0, SGR_EXTENDED_FOREGROUND_CODE = 38, SGR_DEFAULT_FOREGROUND_CODE = 39, SGR_EXTENDED_BACKGROUND_CODE = 48, SGR_DEFAULT_BACKGROUND_CODE = 49, SGR_COLOR_TYPE_ANSI_256 = 5, SGR_COLOR_TYPE_TRUECOLOR = 2, SGR_ANSI_256_FRAGMENT_LENGTH = 3, SGR_TRUECOLOR_FRAGMENT_LENGTH = 5, SGR_ANSI_256_LAST_PARAMETER_OFFSET = 2, SGR_TRUECOLOR_LAST_PARAMETER_OFFSET = 4, VARIATION_SELECTOR_16_CODE_POINT = 65039, COMBINING_ENCLOSING_KEYCAP_CODE_POINT = 8419, EMOJI_PRESENTATION_GRAPHEME_REGEX = /\p{Emoji_Presentation}/u, GRAPHEME_SEGMENTER = new Intl.Segmenter(void 0, { granularity: "grapheme" }), endCodeNumbers = /* @__PURE__ */ new Set();
for (let [, end] of ansi_styles_default.codes)
endCodeNumbers.add(end);
function isSgrParameterCharacter(codePoint) {
return codePoint >= CODE_POINT_02 && codePoint <= CODE_POINT_92 || codePoint === CODE_POINT_SEMICOLON || codePoint === CODE_POINT_COLON;
}
function isCsiParameterCharacter2(codePoint) {
return codePoint >= CODE_POINT_CSI_PARAMETER_START && codePoint <= CODE_POINT_CSI_PARAMETER_END;
}
function isCsiIntermediateCharacter2(codePoint) {
return codePoint >= CODE_POINT_CSI_INTERMEDIATE_START && codePoint <= CODE_POINT_CSI_INTERMEDIATE_END;
}
function isCsiFinalCharacter2(codePoint) {
return codePoint >= CODE_POINT_CSI_FINAL_START && codePoint <= CODE_POINT_CSI_FINAL_END;
}
function isRegionalIndicatorCodePoint(codePoint) {
return codePoint >= REGIONAL_INDICATOR_SYMBOL_LETTER_A && codePoint <= REGIONAL_INDICATOR_SYMBOL_LETTER_Z;
}
function createControlParseResult(code, endIndex) {
return {
token: {
type: "control",
code
},
endIndex
};
}
function isEmojiStyleGrapheme(grapheme) {
if (EMOJI_PRESENTATION_GRAPHEME_REGEX.test(grapheme))
return !0;
for (let character of grapheme) {
let codePoint = character.codePointAt(0);
if (codePoint === VARIATION_SELECTOR_16_CODE_POINT || codePoint === COMBINING_ENCLOSING_KEYCAP_CODE_POINT)
return !0;
}
return !1;
}
function getGraphemeWidth(grapheme) {
let regionalIndicatorCount = 0;
for (let character of grapheme) {
let codePoint = character.codePointAt(0);
if (isFullwidthCodePoint(codePoint))
return 2;
isRegionalIndicatorCodePoint(codePoint) && regionalIndicatorCount++;
}
return regionalIndicatorCount >= 1 || isEmojiStyleGrapheme(grapheme) ? 2 : 1;
}
function getSgrPrefix(code) {
return code.startsWith("\x9B") ? "\x9B" : `${ESCAPE}${ANSI_CSI2}`;
}
function createSgrCode(prefix, values) {
return `${prefix}${values.join(";")}${ANSI_SGR_TERMINATOR2}`;
}
function getSgrFragments(code) {
let fragments = [], sgrPrefix = getSgrPrefix(code), parameterString;
if (code.startsWith(`${ESCAPE}${ANSI_CSI2}`))
parameterString = code.slice(2, -1);
else if (code.startsWith("\x9B"))
parameterString = code.slice(1, -1);
else
return fragments;
let rawCodes = parameterString.length === 0 ? [String(SGR_RESET_CODE)] : parameterString.split(";"), index = 0;
for (; index < rawCodes.length; ) {
let codeNumber = Number.parseInt(rawCodes[index], 10);
if (Number.isNaN(codeNumber)) {
index++;
continue;
}
if (codeNumber === SGR_RESET_CODE) {
fragments.push({ type: "reset" }), index++;
continue;
}
if (codeNumber === SGR_EXTENDED_FOREGROUND_CODE || codeNumber === SGR_EXTENDED_BACKGROUND_CODE) {
let colorType = Number.parseInt(rawCodes[index + 1], 10);
if (colorType === SGR_COLOR_TYPE_ANSI_256 && index + SGR_ANSI_256_LAST_PARAMETER_OFFSET < rawCodes.length) {
let openCode3 = createSgrCode(sgrPrefix, rawCodes.slice(index, index + SGR_ANSI_256_FRAGMENT_LENGTH));
fragments.push({
type: "start",
code: openCode3,
endCode: ansi_styles_default.color.ansi(codeNumber === SGR_EXTENDED_FOREGROUND_CODE ? SGR_DEFAULT_FOREGROUND_CODE : SGR_DEFAULT_BACKGROUND_CODE)
}), index += SGR_ANSI_256_FRAGMENT_LENGTH;
continue;
}
if (colorType === SGR_COLOR_TYPE_TRUECOLOR && index + SGR_TRUECOLOR_LAST_PARAMETER_OFFSET < rawCodes.length) {
let openCode3 = createSgrCode(sgrPrefix, rawCodes.slice(index, index + SGR_TRUECOLOR_FRAGMENT_LENGTH));
fragments.push({
type: "start",
code: openCode3,
endCode: ansi_styles_default.color.ansi(codeNumber === SGR_EXTENDED_FOREGROUND_CODE ? SGR_DEFAULT_FOREGROUND_CODE : SGR_DEFAULT_BACKGROUND_CODE)
}), index += SGR_TRUECOLOR_FRAGMENT_LENGTH;
continue;
}
let openCode2 = createSgrCode(sgrPrefix, [rawCodes[index]]);
fragments.push({
type: "start",
code: openCode2,
endCode: ansi_styles_default.color.ansi(codeNumber === SGR_EXTENDED_FOREGROUND_CODE ? SGR_DEFAULT_FOREGROUND_CODE : SGR_DEFAULT_BACKGROUND_CODE)
}), index++;
continue;
}
if (endCodeNumbers.has(codeNumber)) {
fragments.push({
type: "end",
endCode: ansi_styles_default.color.ansi(codeNumber)
}), index++;
continue;
}
let mappedEndCode = ansi_styles_default.codes.get(codeNumber);
if (mappedEndCode !== void 0) {
let openCode2 = createSgrCode(sgrPrefix, [rawCodes[index]]);
fragments.push({
type: "start",
code: openCode2,
endCode: ansi_styles_default.color.ansi(mappedEndCode)
}), index++;
continue;
}
let openCode = createSgrCode(sgrPrefix, [rawCodes[index]]);
fragments.push({
type: "start",
code: openCode,
endCode: ansi_styles_default.reset.open
}), index++;
}
return fragments.length === 0 && fragments.push({ type: "reset" }), fragments;
}
function parseCsiCode(string, index) {
let escapeCodePoint = string.codePointAt(index), sequenceStartIndex;
if (escapeCodePoint === ESCAPE_CODE_POINT) {
if (string[index + 1] !== ANSI_CSI2)
return;
sequenceStartIndex = index + 2;
} else if (escapeCodePoint === C1_CSI_CODE_POINT)
sequenceStartIndex = index + 1;
else
return;
let hasCanonicalSgrParameters = !0;
for (let sequenceIndex = sequenceStartIndex; sequenceIndex < string.length; sequenceIndex++) {
let codePoint = string.codePointAt(sequenceIndex);
if (isCsiFinalCharacter2(codePoint)) {
let code = string.slice(index, sequenceIndex + 1);
return string[sequenceIndex] !== ANSI_SGR_TERMINATOR2 || !hasCanonicalSgrParameters ? createControlParseResult(code, sequenceIndex + 1) : {
token: {
type: "sgr",
code,
fragments: getSgrFragments(code)
},
endIndex: sequenceIndex + 1
};
}
if (isCsiParameterCharacter2(codePoint)) {
isSgrParameterCharacter(codePoint) || (hasCanonicalSgrParameters = !1);
continue;
}
if (isCsiIntermediateCharacter2(codePoint)) {
hasCanonicalSgrParameters = !1;
continue;
}
let endIndex = sequenceIndex;
return createControlParseResult(string.slice(index, endIndex), endIndex);
}
return createControlParseResult(string.slice(index), string.length);
}
function parseHyperlinkCode(string, index) {
let hyperlinkPrefix, hyperlinkClose, codePoint = string.codePointAt(index);
if (codePoint === ESCAPE_CODE_POINT && string.startsWith(ANSI_HYPERLINK_ESC_PREFIX, index))
hyperlinkPrefix = ANSI_HYPERLINK_ESC_PREFIX, hyperlinkClose = ANSI_HYPERLINK_ESC_CLOSE;
else if (codePoint === C1_OSC_CODE_POINT && string.startsWith(ANSI_HYPERLINK_C1_PREFIX, index))
hyperlinkPrefix = ANSI_HYPERLINK_C1_PREFIX, hyperlinkClose = ANSI_HYPERLINK_C1_CLOSE;
else
return;
let uriStart = string.indexOf(";", index + hyperlinkPrefix.length);
if (uriStart === -1)
return createControlParseResult(string.slice(index), string.length);
for (let sequenceIndex = uriStart + 1; sequenceIndex < string.length; sequenceIndex++) {
let character = string[sequenceIndex];
if (character === ANSI_BELL) {
let code = string.slice(index, sequenceIndex + 1), action = sequenceIndex === uriStart + 1 ? "close" : "open";
return {
token: {
type: "hyperlink",
code,
action,
closePrefix: hyperlinkClose,
terminator: ANSI_BELL
},
endIndex: sequenceIndex + 1
};
}
if (character === ESCAPE && string[sequenceIndex + 1] === ANSI_OSC_TERMINATOR) {
let code = string.slice(index, sequenceIndex + 2), action = sequenceIndex === uriStart + 1 ? "close" : "open";
return {
token: {
type: "hyperlink",
code,
action,
closePrefix: hyperlinkClose,
terminator: ANSI_STRING_TERMINATOR
},
endIndex: sequenceIndex + 2
};
}
if (character === C1_STRING_TERMINATOR) {
let code = string.slice(index, sequenceIndex + 1), action = sequenceIndex === uriStart + 1 ? "close" : "open";
return {
token: {
type: "hyperlink",
code,
action,
closePrefix: hyperlinkClose,
terminator: C1_STRING_TERMINATOR
},
endIndex: sequenceIndex + 1
};
}
}
return createControlParseResult(string.slice(index), string.length);
}
function parseControlStringCode(string, index) {
let codePoint = string.codePointAt(index), sequenceStartIndex, supportsBellTerminator = !1;
switch (codePoint) {
case ESCAPE_CODE_POINT: {
switch (string[index + 1]) {
case ANSI_OSC2: {
sequenceStartIndex = index + 2, supportsBellTerminator = !0;
break;
}
case ANSI_DCS:
case ANSI_SOS:
case ANSI_PM:
case ANSI_APC: {
sequenceStartIndex = index + 2;
break;
}
case ANSI_OSC_TERMINATOR:
return createControlParseResult(ANSI_STRING_TERMINATOR, index + 2);
default:
return;
}
break;
}
case C1_OSC_CODE_POINT: {
sequenceStartIndex = index + 1, supportsBellTerminator = !0;
break;
}
case C1_DCS_CODE_POINT:
case C1_SOS_CODE_POINT:
case C1_PM_CODE_POINT:
case C1_APC_CODE_POINT: {
sequenceStartIndex = index + 1;
break;
}
case C1_ST_CODE_POINT:
return createControlParseResult(C1_STRING_TERMINATOR, index + 1);
default:
return;
}
for (let sequenceIndex = sequenceStartIndex; sequenceIndex < string.length; sequenceIndex++) {
if (supportsBellTerminator && string[sequenceIndex] === ANSI_BELL)
return createControlParseResult(string.slice(index, sequenceIndex + 1), sequenceIndex + 1);
if (string[sequenceIndex] === ESCAPE && string[sequenceIndex + 1] === ANSI_OSC_TERMINATOR)
return createControlParseResult(string.slice(index, sequenceIndex + 2), sequenceIndex + 2);
if (string[sequenceIndex] === C1_STRING_TERMINATOR)
return createControlParseResult(string.slice(index, sequenceIndex + 1), sequenceIndex + 1);
}
return createControlParseResult(string.slice(index), string.length);
}
function parseAnsiCode2(string, index) {
let codePoint = string.codePointAt(index);
if (codePoint === ESCAPE_CODE_POINT || codePoint === C1_OSC_CODE_POINT) {
let hyperlinkCode = parseHyperlinkCode(string, index);
if (hyperlinkCode)
return hyperlinkCode;
}
let controlStringCode = parseControlStringCode(string, index);
return controlStringCode || parseCsiCode(string, index);
}
function appendTrailingAnsiTokens(string, index, tokens) {
for (; index < string.length; ) {
let nextCodePoint = string.codePointAt(index);
if (!ESCAPES3.has(nextCodePoint))
break;
let escapeCode = parseAnsiCode2(string, index);
if (!escapeCode)
break;
tokens.push(escapeCode.token), index = escapeCode.endIndex;
}
return index;
}
function parseCharacterTokenWithRawSegmentation(string, index, graphemeSegments) {
let segment = graphemeSegments.containing(index);
if (!(!segment || segment.index !== index))
return {
token: {
type: "character",
// Intentionally preserve UAX29 behavior (GB3): CRLF is one grapheme cluster.
value: segment.segment,
visibleWidth: getGraphemeWidth(segment.segment),
isGraphemeContinuation: !1
},
endIndex: index + segment.segment.length
};
}
function collectVisibleCharacters(string) {
let visibleCharacters = [], index = 0;
for (; index < string.length; ) {
let codePoint = string.codePointAt(index);
if (ESCAPES3.has(codePoint)) {
let code = parseAnsiCode2(string, index);
if (code) {
index = code.endIndex;
continue;
}
}
let value = String.fromCodePoint(codePoint);
visibleCharacters.push({
value,
visibleWidth: 1,
isGraphemeContinuation: !1
}), index += value.length;
}
return visibleCharacters;
}
function applyGraphemeMetadata(visibleCharacters) {
if (visibleCharacters.length === 0)
return;
let visibleString = visibleCharacters.map(({ value }) => value).join(""), scalarOffsets = [], scalarOffset = 0;
for (let visibleCharacter of visibleCharacters)
scalarOffsets.push(scalarOffset), scalarOffset += visibleCharacter.value.length;
let scalarIndex = 0;
for (let segment of GRAPHEME_SEGMENTER.segment(visibleString)) {
for (; scalarIndex < visibleCharacters.length && scalarOffsets[scalarIndex] < segment.index; )
scalarIndex++;
let graphemeIndex = scalarIndex, isFirstInGrapheme = !0;
for (; graphemeIndex < visibleCharacters.length && scalarOffsets[graphemeIndex] < segment.index + segment.segment.length; )
visibleCharacters[graphemeIndex].visibleWidth = isFirstInGrapheme ? getGraphemeWidth(segment.segment) : 0, visibleCharacters[graphemeIndex].isGraphemeContinuation = !isFirstInGrapheme, isFirstInGrapheme = !1, graphemeIndex++;
scalarIndex = graphemeIndex;
}
}
function tokenizeAnsiWithVisibleSegmentation(string, { endCharacter = Number.POSITIVE_INFINITY } = {}) {
let tokens = [], visibleCharacters = collectVisibleCharacters(string);
applyGraphemeMetadata(visibleCharacters);
let index = 0, visibleCharacterIndex = 0, visibleCount = 0;
for (; index < string.length; ) {
let codePoint = string.codePointAt(index);
if (ESCAPES3.has(codePoint)) {
let code = parseAnsiCode2(string, index);
if (code) {
tokens.push(code.token), index = code.endIndex;
continue;
}
}
let value = String.fromCodePoint(codePoint), visibleCharacter = visibleCharacters[visibleCharacterIndex], visibleWidth = isFullwidthCodePoint(codePoint) ? 2 : value.length;
visibleCharacter && (visibleWidth = visibleCharacter.visibleWidth);
let token = {
type: "character",
value,
visibleWidth,
isGraphemeContinuation: visibleCharacter ? visibleCharacter.isGraphemeContinuation : !1
};
if (tokens.push(token), index += value.length, visibleCharacterIndex++, visibleCount += token.visibleWidth, visibleCount >= endCharacter) {
let nextVisibleCharacter = visibleCharacters[visibleCharacterIndex];
if (!nextVisibleCharacter || !nextVisibleCharacter.isGraphemeContinuation) {
index = appendTrailingAnsiTokens(string, index, tokens);
break;
}
}
}
return tokens;
}
function areValuesInSameGrapheme(leftValue, rightValue) {
let pair = `${leftValue}${rightValue}`, splitIndex = leftValue.length;
for (let segment of GRAPHEME_SEGMENTER.segment(pair)) {
if (segment.index === splitIndex)
return !1;
if (segment.index > splitIndex)
return !0;
}
return !0;
}
function hasAnsiSplitContinuationAhead(string, startIndex, previousVisibleValue, graphemeSegments) {
if (!previousVisibleValue)
return !1;
let index = startIndex, hasAnsiCode = !1;
for (; index < string.length; ) {
let codePoint = string.codePointAt(index);
if (ESCAPES3.has(codePoint)) {
let code = parseAnsiCode2(string, index);
if (code) {
hasAnsiCode = !0, index = code.endIndex;
continue;
}
}
if (!hasAnsiCode)
return !1;
let characterToken = parseCharacterTokenWithRawSegmentation(string, index, graphemeSegments);
return characterToken ? areValuesInSameGrapheme(previousVisibleValue, characterToken.token.value) : !0;
}
return !1;
}
function tokenizeAnsi2(string, { endCharacter = Number.POSITIVE_INFINITY } = {}) {
let tokens = [], graphemeSegments = GRAPHEME_SEGMENTER.segment(string), index = 0, visibleCount = 0, previousVisibleValue, hasAnsiSinceLastVisible = !1;
for (; index < string.length; ) {
let codePoint = string.codePointAt(index);
if (ESCAPES3.has(codePoint)) {
let code = parseAnsiCode2(string, index);
if (code) {
tokens.push(code.token), index = code.endIndex, hasAnsiSinceLastVisible = !0;
continue;
}
}
let characterToken = parseCharacterTokenWithRawSegmentation(string, index, graphemeSegments);
if (!characterToken)
return tokenizeAnsiWithVisibleSegmentation(string, { endCharacter });
if (hasAnsiSinceLastVisible && previousVisibleValue && areValuesInSameGrapheme(previousVisibleValue, characterToken.token.value))
return tokenizeAnsiWithVisibleSegmentation(string, { endCharacter });
if (tokens.push(characterToken.token), index = characterToken.endIndex, visibleCount += characterToken.token.visibleWidth, hasAnsiSinceLastVisible = !1, previousVisibleValue = characterToken.token.value, visibleCount >= endCharacter) {
if (hasAnsiSplitContinuationAhead(string, index, previousVisibleValue, graphemeSegments))
return tokenizeAnsiWithVisibleSegmentation(string, { endCharacter });
index = appendTrailingAnsiTokens(string, index, tokens);
break;
}
}
return tokens;
}
// ../../node_modules/.pnpm/slice-ansi@8.0.0/node_modules/slice-ansi/index.js
function applySgrFragments(activeStyles, fragments) {
for (let fragment of fragments)
switch (fragment.type) {
case "reset": {
activeStyles.clear();
break;
}
case "end": {
activeStyles.delete(fragment.endCode);
break;
}
case "start": {
activeStyles.delete(fragment.endCode), activeStyles.set(fragment.endCode, fragment.code);
break;
}
default:
break;
}
return activeStyles;
}
function undoAnsiCodes2(activeStyles) {
return [...activeStyles.keys()].reverse().join("");
}
function closeHyperlink(hyperlinkToken) {
return `${hyperlinkToken.closePrefix}${hyperlinkToken.terminator}`;
}
function shouldIncludeSgrAfterEnd(token, activeStyles) {
let hasStartFragment = !1, hasClosingEffect = !1;
for (let fragment of token.fragments) {
if (fragment.type === "start") {
hasStartFragment = !0;
continue;
}
if (fragment.type === "reset" && activeStyles.size > 0) {
hasClosingEffect = !0;
continue;
}
fragment.type === "end" && activeStyles.has(fragment.endCode) && (hasClosingEffect = !0);
}
return hasClosingEffect && !hasStartFragment;
}
function applySgrToken({ token, isPastEnd, activeStyles, returnValue, include, activeHyperlink, position }) {
return isPastEnd && !shouldIncludeSgrAfterEnd(token, activeStyles) ? {
activeStyles,
activeHyperlink,
position,
returnValue,
include
} : (activeStyles = applySgrFragments(activeStyles, token.fragments), include && (returnValue += token.code), {
activeStyles,
activeHyperlink,
position,
returnValue,
include
});
}
function applyHyperlinkToken({ token, isPastEnd, activeStyles, activeHyperlink, position, returnValue, include }) {
return isPastEnd && (token.action !== "close" || !activeHyperlink) ? {
activeStyles,
activeHyperlink,
position,
returnValue,
include
} : (token.action === "open" ? activeHyperlink = token : token.action === "close" && (activeHyperlink = void 0), include && (returnValue += token.code), {
activeStyles,
activeHyperlink,
position,
returnValue,
include
});
}
function applyControlToken({ token, isPastEnd, activeStyles, activeHyperlink, position, returnValue, include }) {
return !isPastEnd && include && (returnValue += token.code), {
activeStyles,
activeHyperlink,
position,
returnValue,
include
};
}
function applyCharacterToken({ token, start, activeStyles, activeHyperlink, position, returnValue, include }) {
return !include && position >= start && !token.isGraphemeContinuation && (include = !0, returnValue = [...activeStyles.values()].join(""), activeHyperlink && (returnValue += activeHyperlink.code)), include && (returnValue += token.value), position += token.visibleWidth, {
activeStyles,
activeHyperlink,
position,
returnValue,
include
};
}
var tokenHandlers = {
sgr: applySgrToken,
hyperlink: applyHyperlinkToken,
control: applyControlToken,
character: applyCharacterToken
};
function applyToken(parameters) {
let tokenHandler = tokenHandlers[parameters.token.type];
if (!tokenHandler) {
let {
activeStyles,
activeHyperlink,
position,
returnValue,
include
} = parameters;
return {
activeStyles,
activeHyperlink,
position,
returnValue,
include
};
}
return tokenHandler(parameters);
}
function createHasContinuationAheadMap(tokens) {
let hasContinuationAhead = Array.from({ length: tokens.length }, () => !1), nextCharacterIsContinuation = !1;
for (let tokenIndex = tokens.length - 1; tokenIndex >= 0; tokenIndex--) {
let token = tokens[tokenIndex];
hasContinuationAhead[tokenIndex] = nextCharacterIsContinuation, token.type === "character" && (nextCharacterIsContinuation = !!token.isGraphemeContinuation);
}
return hasContinuationAhead;
}
function sliceAnsi2(string, start, end) {
let tokens = tokenizeAnsi2(string, { endCharacter: end }), hasContinuationAhead = createHasContinuationAheadMap(tokens), activeStyles = /* @__PURE__ */ new Map(), activeHyperlink, position = 0, returnValue = "", include = !1;
for (let [tokenIndex, token] of tokens.entries()) {
let isPastEnd = end !== void 0 && position >= end;
if (isPastEnd && token.type !== "character" && hasContinuationAhead[tokenIndex] && (isPastEnd = !1), isPastEnd && token.type === "character" && !token.isGraphemeContinuation)
break;
({ activeStyles, activeHyperlink, position, returnValue, include } = applyToken({
token,
isPastEnd,
start,
activeStyles,
activeHyperlink,
position,
returnValue,
include
}));
}
return include ? (activeHyperlink && (returnValue += closeHyperlink(activeHyperlink)), returnValue += undoAnsiCodes2(activeStyles), returnValue) : "";
}
// ../../node_modules/.pnpm/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.js
init_cjs_shims();
var ESCAPES4 = /* @__PURE__ */ new Set([27, 155]), CSI = "[".codePointAt(0), OSC2 = "]".codePointAt(0), endCodesSet2 = /* @__PURE__ */ new Set(), endCodesMap2 = /* @__PURE__ */ new Map();
for (let [start, end] of ansi_styles_default.codes)
endCodesSet2.add(ansi_styles_default.color.ansi(end)), endCodesMap2.set(ansi_styles_default.color.ansi(start), ansi_styles_default.color.ansi(end));
var linkCodePrefix = "\x1B]8;", linkCodePrefixCharCodes = linkCodePrefix.split("").map((char) => char.charCodeAt(0)), linkCodeSuffix = "\x07", linkCodeSuffixCharCode = linkCodeSuffix.charCodeAt(0), linkEndCode = `\x1B]8;;${linkCodeSuffix}`;
function getEndCode2(code) {
if (endCodesSet2.has(code))
return code;
if (endCodesMap2.has(code))
return endCodesMap2.get(code);
if (code.startsWith(linkCodePrefix))
return linkEndCode;
if (code = code.slice(2), code.startsWith("38"))
return ansi_styles_default.color.close;
if (code.startsWith("48"))
return ansi_styles_default.bgColor.close;
let ret = ansi_styles_default.codes.get(parseInt(code, 10));
return ret ? ansi_styles_default.color.ansi(ret) : ansi_styles_default.reset.open;
}
function ansiCodesToString(codes) {
return [...new Set(codes.map((code) => code.code))].join("");
}
function isIntensityCode(code) {
return code.code === ansi_styles_default.bold.open || code.code === ansi_styles_default.dim.open;
}
// ../../node_modules/.pnpm/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/diff.js
init_cjs_shims();
// ../../node_modules/.pnpm/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/undo.js
init_cjs_shims();
// ../../node_modules/.pnpm/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/reduce.js
init_cjs_shims();
function reduceAnsiCodes2(codes) {
return reduceAnsiCodesIncremental([], codes);
}
function reduceAnsiCodesIncremental(codes, newCodes) {
let ret = [...codes];
for (let code of newCodes)
code.code === ansi_styles_default.reset.open ? ret = [] : endCodesSet2.has(code.code) ? ret = ret.filter((retCode) => retCode.endCode !== code.code) : isIntensityCode(code) ? ret.find((retCode) => retCode.code === code.code && retCode.endCode === code.endCode) || ret.push(code) : (ret = ret.filter((retCode) => retCode.endCode !== code.endCode), ret.push(code));
return ret;
}
// ../../node_modules/.pnpm/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/undo.js
function undoAnsiCodes3(codes) {
return reduceAnsiCodes2(codes).reverse().map((code) => ({
...code,
code: code.endCode
}));
}
// ../../node_modules/.pnpm/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/diff.js
function diffAnsiCodes(from, to) {
let endCodesInTo = new Set(to.map((code) => code.endCode)), startCodesInTo = new Set(to.map((code) => code.code)), startCodesInFrom = new Set(from.map((code) => code.code));
return [
// Ignore all styles in `from` that are not overwritten or removed by `to`
// Disable all styles in `from` that are removed in `to`
...undoAnsiCodes3(from.filter((code) => isIntensityCode(code) ? !startCodesInTo.has(code.code) : !endCodesInTo.has(code.endCode))),
// Add all styles in `to` that don't exist in `from`
...to.filter((code) => !startCodesInFrom.has(code.code))
];
}
// ../../node_modules/.pnpm/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/styledChars.js
init_cjs_shims();
function styledCharsFromTokens(tokens) {
let codes = [], ret = [];
for (let token of tokens)
token.type === "ansi" ? codes = reduceAnsiCodesIncremental(codes, [token]) : token.type === "char" && ret.push({
...token,
styles: [...codes]
});
return ret;
}
function styledCharsToString(chars) {
let ret = "";
for (let i = 0; i < chars.length; i++) {
let char = chars[i];
i === 0 ? ret += ansiCodesToString(char.styles) : ret += ansiCodesToString(diffAnsiCodes(chars[i - 1].styles, char.styles)), ret += char.value, i === chars.length - 1 && (ret += ansiCodesToString(diffAnsiCodes(char.styles, [])));
}
return ret;
}
// ../../node_modules/.pnpm/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/tokenize.js
init_cjs_shims();
var segmenter3 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
function isFullwidthGrapheme(grapheme, baseCodePoint) {
return !!(isFullwidthCodePoint(baseCodePoint) || grapheme.includes("\uFE0F") || baseCodePoint >= 127462 && baseCodePoint <= 127487);
}
function parseLinkCode(string, offset) {
string = string.slice(offset);
for (let index = 1; index < linkCodePrefixCharCodes.length; index++)
if (string.charCodeAt(index) !== linkCodePrefixCharCodes[index])
return;
let paramsEndIndex = string.indexOf(";", linkCodePrefix.length);
if (paramsEndIndex === -1)
return;
let endIndex = string.indexOf("\x07", paramsEndIndex + 1);
if (endIndex !== -1)
return string.slice(0, endIndex + 1);
}
var CC_0 = 48, CC_9 = 57, CC_SEMI = 59, CC_M = 109;
function findSGRSequenceEndIndex(str) {
for (let index = 2; index < str.length; index++) {
let charCode = str.charCodeAt(index);
if (charCode === CC_M)
return index;
if (charCode !== CC_SEMI && !(charCode >= CC_0 && charCode <= CC_9))
break;
}
return -1;
}
function parseSGRSequence(string, offset) {
string = string.slice(offset);
let endIndex = findSGRSequenceEndIndex(string);
if (endIndex !== -1)
return string.slice(0, endIndex + 1);
}
function splitCompoundSGRSequences(code) {
if (!code.includes(";"))
return [code];
let codeParts = code.slice(2, -1).split(";"), ret = [];
for (let i = 0; i < codeParts.length; i++) {
let rawCode = codeParts[i];
if (rawCode === "38" || rawCode === "48") {
if (i + 2 < codeParts.length && codeParts[i + 1] === "5") {
ret.push(codeParts.slice(i, i + 3).join(";")), i += 2;
continue;
} else if (i + 4 < codeParts.length && codeParts[i + 1] === "2") {
ret.push(codeParts.slice(i, i + 5).join(";")), i += 4;
continue;
}
}
ret.push(rawCode);
}
return ret.map((part) => `\x1B[${part}m`);
}
function tokenize2(str, endChar = Number.POSITIVE_INFINITY) {
let ret = [], visible = 0, codeEndIndex = 0;
for (let { segment, index } of segmenter3.segment(str)) {
if (index < codeEndIndex)
continue;
let codePoint = segment.codePointAt(0);
if (ESCAPES4.has(codePoint)) {
let code, nextCodePoint = str.codePointAt(index + 1);
if (nextCodePoint === OSC2)
code = parseLinkCode(str, index), code && ret.push({
type: "ansi",
code,
endCode: getEndCode2(code)
});
else if (nextCodePoint === CSI && (code = parseSGRSequence(str, index), code)) {
let codes = splitCompoundSGRSequences(code);
for (let individualCode of codes)
ret.push({
type: "ansi",
code: individualCode,
endCode: getEndCode2(individualCode)
});
}
if (code) {
codeEndIndex = index + code.length;
continue;
}
}
let fullWidth = isFullwidthGrapheme(segment, codePoint);
if (ret.push({
type: "char",
value: segment,
fullWidth
}), visible += fullWidth ? 2 : 1, visible >= endChar)
break;
}
return ret;
}
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/output.js
var OutputCaches = class {
widths = /* @__PURE__ */ new Map();
blockWidths = /* @__PURE__ */ new Map();
styledChars = /* @__PURE__ */ new Map();
getStyledChars(line) {
let cached = this.styledChars.get(line);
return cached === void 0 && (cached = styledCharsFromTokens(tokenize2(line)), this.styledChars.set(line, cached)), cached;
}
getStringWidth(text) {
let cached = this.widths.get(text);
return cached === void 0 && (cached = stringWidth2(text), this.widths.set(text, cached)), cached;
}
getWidestLine(text) {
let cached = this.blockWidths.get(text);
if (cached === void 0) {
let lineWidth = 0;
for (let line of text.split(`
`))
lineWidth = Math.max(lineWidth, this.getStringWidth(line));
cached = lineWidth, this.blockWidths.set(text, cached);
}
return cached;
}
}, Output = class {
width;
height;
operations = [];
caches = new OutputCaches();
constructor(options) {
let { width, height } = options;
this.width = width, this.height = height;
}
write(x, y, text, options) {
let { transformers } = options;
text && this.operations.push({
type: "write",
x,
y,
text,
transformers
});
}
clip(clip) {
this.operations.push({
type: "clip",
clip
});
}
unclip() {
this.operations.push({
type: "unclip"
});
}
get() {
let output2 = [];
for (let y = 0; y < this.height; y++) {
let row = [];
for (let x = 0; x < this.width; x++)
row.push({
type: "char",
value: " ",
fullWidth: !1,
styles: []
});
output2.push(row);
}
let clips = [];
for (let operation of this.operations)
if (operation.type === "clip" && clips.push(operation.clip), operation.type === "unclip" && clips.pop(), operation.type === "write") {
let { text, transformers } = operation, { x, y } = operation, lines = text.split(`
`), clip = clips.at(-1);
if (clip) {
let clipHorizontally = typeof clip?.x1 == "number" && typeof clip?.x2 == "number", clipVertically = typeof clip?.y1 == "number" && typeof clip?.y2 == "number";
if (clipHorizontally) {
let width = this.caches.getWidestLine(text);
if (x + width < clip.x1 || x > clip.x2)
continue;
}
if (clipVertically) {
let height = lines.length;
if (y + height < clip.y1 || y > clip.y2)
continue;
}
if (clipHorizontally && (lines = lines.map((line) => {
let from = x < clip.x1 ? clip.x1 - x : 0, width = this.caches.getStringWidth(line), to = x + width > clip.x2 ? clip.x2 - x : width;
return sliceAnsi2(line, from, to);
}), x < clip.x1 && (x = clip.x1)), clipVertically) {
let from = y < clip.y1 ? clip.y1 - y : 0, height = lines.length, to = y + height > clip.y2 ? clip.y2 - y : height;
lines = lines.slice(from, to), y < clip.y1 && (y = clip.y1);
}
}
let offsetY = 0;
for (let [index, line] of lines.entries()) {
let currentLine = output2[y + offsetY];
if (!currentLine)
continue;
for (let transformer of transformers)
line = transformer(line, index);
let characters = this.caches.getStyledChars(line), offsetX = x;
for (let character of characters) {
currentLine[offsetX] = character;
let characterWidth = Math.max(1, this.caches.getStringWidth(character.value));
if (characterWidth > 1)
for (let index2 = 1; index2 < characterWidth; index2++)
currentLine[offsetX + index2] = {
type: "char",
value: "",
fullWidth: !1,
styles: character.styles
};
offsetX += characterWidth;
}
offsetY++;
}
}
return {
output: output2.map((line) => {
let lineWithoutEmptyItems = line.filter((item) => item !== void 0);
return styledCharsToString(lineWithoutEmptyItems).trimEnd();
}).join(`
`),
height: output2.length
};
}
};
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/renderer.js
var renderer = (node, isScreenReaderEnabled) => {
if (node.yogaNode) {
if (isScreenReaderEnabled) {
let output3 = renderNodeToScreenReaderOutput(node, {
skipStaticElements: !0
}), outputHeight2 = output3 === "" ? 0 : output3.split(`
`).length, staticOutput2 = "";
return node.staticNode && (staticOutput2 = renderNodeToScreenReaderOutput(node.staticNode, {
skipStaticElements: !1
})), {
output: output3,
outputHeight: outputHeight2,
staticOutput: staticOutput2 ? `${staticOutput2}
` : ""
};
}
let output2 = new Output({
width: node.yogaNode.getComputedWidth(),
height: node.yogaNode.getComputedHeight()
});
render_node_to_output_default(node, output2, {
skipStaticElements: !0
});
let staticOutput;
node.staticNode?.yogaNode && (staticOutput = new Output({
width: node.staticNode.yogaNode.getComputedWidth(),
height: node.staticNode.yogaNode.getComputedHeight()
}), render_node_to_output_default(node.staticNode, staticOutput, {
skipStaticElements: !1
}));
let { output: generatedOutput, height: outputHeight } = output2.get();
return {
output: generatedOutput,
outputHeight,
// Newline at the end is needed, because static output doesn't have one, so
// interactive output will override last line of static output
staticOutput: staticOutput ? `${staticOutput.get().output}
` : ""
};
}
return {
output: "",
outputHeight: 0,
staticOutput: ""
};
}, renderer_default = renderer;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/log-update.js
init_cjs_shims();
// ../../node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
init_cjs_shims();
import process6 from "node:process";
// ../../node_modules/.pnpm/restore-cursor@4.0.0/node_modules/restore-cursor/index.js
init_cjs_shims();
var import_onetime = __toESM(require_onetime(), 1), import_signal_exit = __toESM(require_signal_exit(), 1);
import process5 from "node:process";
var restoreCursor = (0, import_onetime.default)(() => {
(0, import_signal_exit.default)(() => {
process5.stderr.write("\x1B[?25h");
}, { alwaysLast: !0 });
}), restore_cursor_default = restoreCursor;
// ../../node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
var isHidden = !1, cliCursor = {};
cliCursor.show = (writableStream = process6.stderr) => {
writableStream.isTTY && (isHidden = !1, writableStream.write("\x1B[?25h"));
};
cliCursor.hide = (writableStream = process6.stderr) => {
writableStream.isTTY && (restore_cursor_default(), isHidden = !0, writableStream.write("\x1B[?25l"));
};
cliCursor.toggle = (force, writableStream) => {
force !== void 0 && (isHidden = force), isHidden ? cliCursor.show(writableStream) : cliCursor.hide(writableStream);
};
var cli_cursor_default = cliCursor;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/cursor-helpers.js
init_cjs_shims();
var showCursorEscape = "\x1B[?25h", hideCursorEscape = "\x1B[?25l";
var cursorPositionChanged = (a, b) => a?.x !== b?.x || a?.y !== b?.y, buildCursorSuffix = (visibleLineCount2, cursorPosition) => {
if (!cursorPosition)
return "";
let moveUp = visibleLineCount2 - cursorPosition.y;
return (moveUp > 0 ? base_exports.cursorUp(moveUp) : "") + base_exports.cursorTo(cursorPosition.x) + showCursorEscape;
}, buildReturnToBottom = (previousLineCount, previousCursorPosition) => {
if (!previousCursorPosition)
return "";
let down = previousLineCount - 1 - previousCursorPosition.y;
return (down > 0 ? base_exports.cursorDown(down) : "") + base_exports.cursorTo(0);
}, buildCursorOnlySequence = (input) => {
let hidePrefix = input.cursorWasShown ? hideCursorEscape : "", returnToBottom = buildReturnToBottom(input.previousLineCount, input.previousCursorPosition), cursorSuffix = buildCursorSuffix(input.visibleLineCount, input.cursorPosition);
return hidePrefix + returnToBottom + cursorSuffix;
}, buildReturnToBottomPrefix = (cursorWasShown, previousLineCount, previousCursorPosition) => cursorWasShown ? hideCursorEscape + buildReturnToBottom(previousLineCount, previousCursorPosition) : "";
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/log-update.js
var visibleLineCount = (lines, str) => str.endsWith(`
`) ? lines.length - 1 : lines.length, createStandard = (stream, { showCursor = !1 } = {}) => {
let previousLineCount = 0, previousOutput = "", hasHiddenCursor = !1, cursorPosition, cursorDirty = !1, previousCursorPosition, cursorWasShown = !1, getActiveCursor = () => cursorDirty ? cursorPosition : void 0, hasChanges = (str, activeCursor) => {
let cursorChanged = cursorPositionChanged(activeCursor, previousCursorPosition);
return str !== previousOutput || cursorChanged;
}, render3 = (str) => {
!showCursor && !hasHiddenCursor && (cli_cursor_default.hide(stream), hasHiddenCursor = !0);
let activeCursor = getActiveCursor();
cursorDirty = !1;
let cursorChanged = cursorPositionChanged(activeCursor, previousCursorPosition);
if (!hasChanges(str, activeCursor))
return !1;
let lines = str.split(`
`), visibleCount = visibleLineCount(lines, str), cursorSuffix = buildCursorSuffix(visibleCount, activeCursor);
if (str === previousOutput && cursorChanged)
stream.write(buildCursorOnlySequence({
cursorWasShown,
previousLineCount,
previousCursorPosition,
visibleLineCount: visibleCount,
cursorPosition: activeCursor
}));
else {
previousOutput = str;
let returnPrefix = buildReturnToBottomPrefix(cursorWasShown, previousLineCount, previousCursorPosition);
stream.write(returnPrefix + base_exports.eraseLines(previousLineCount) + str + cursorSuffix), previousLineCount = lines.length;
}
return previousCursorPosition = activeCursor ? { ...activeCursor } : void 0, cursorWasShown = activeCursor !== void 0, !0;
};
return render3.clear = () => {
let prefix = buildReturnToBottomPrefix(cursorWasShown, previousLineCount, previousCursorPosition);
stream.write(prefix + base_exports.eraseLines(previousLineCount)), previousOutput = "", previousLineCount = 0, previousCursorPosition = void 0, cursorWasShown = !1;
}, render3.done = () => {
previousOutput = "", previousLineCount = 0, previousCursorPosition = void 0, cursorWasShown = !1, showCursor || (cli_cursor_default.show(stream), hasHiddenCursor = !1);
}, render3.sync = (str) => {
let activeCursor = cursorDirty ? cursorPosition : void 0;
cursorDirty = !1;
let lines = str.split(`
`);
previousOutput = str, previousLineCount = lines.length, !activeCursor && cursorWasShown && stream.write(hideCursorEscape), activeCursor && stream.write(buildCursorSuffix(visibleLineCount(lines, str), activeCursor)), previousCursorPosition = activeCursor ? { ...activeCursor } : void 0, cursorWasShown = activeCursor !== void 0;
}, render3.setCursorPosition = (position) => {
cursorPosition = position, cursorDirty = !0;
}, render3.isCursorDirty = () => cursorDirty, render3.willRender = (str) => hasChanges(str, getActiveCursor()), render3;
}, createIncremental = (stream, { showCursor = !1 } = {}) => {
let previousLines = [], previousOutput = "", hasHiddenCursor = !1, cursorPosition, cursorDirty = !1, previousCursorPosition, cursorWasShown = !1, getActiveCursor = () => cursorDirty ? cursorPosition : void 0, hasChanges = (str, activeCursor) => {
let cursorChanged = cursorPositionChanged(activeCursor, previousCursorPosition);
return str !== previousOutput || cursorChanged;
}, render3 = (str) => {
!showCursor && !hasHiddenCursor && (cli_cursor_default.hide(stream), hasHiddenCursor = !0);
let activeCursor = getActiveCursor();
cursorDirty = !1;
let cursorChanged = cursorPositionChanged(activeCursor, previousCursorPosition);
if (!hasChanges(str, activeCursor))
return !1;
let nextLines = str.split(`
`), visibleCount = visibleLineCount(nextLines, str), previousVisible = visibleLineCount(previousLines, previousOutput);
if (str === previousOutput && cursorChanged)
return stream.write(buildCursorOnlySequence({
cursorWasShown,
previousLineCount: previousLines.length,
previousCursorPosition,
visibleLineCount: visibleCount,
cursorPosition: activeCursor
})), previousCursorPosition = activeCursor ? { ...activeCursor } : void 0, cursorWasShown = activeCursor !== void 0, !0;
let returnPrefix = buildReturnToBottomPrefix(cursorWasShown, previousLines.length, previousCursorPosition);
if (str === `
` || previousOutput.length === 0) {
let cursorSuffix2 = buildCursorSuffix(visibleCount, activeCursor);
return stream.write(returnPrefix + base_exports.eraseLines(previousLines.length) + str + cursorSuffix2), cursorWasShown = activeCursor !== void 0, previousCursorPosition = activeCursor ? { ...activeCursor } : void 0, previousOutput = str, previousLines = nextLines, !0;
}
let hasTrailingNewline = str.endsWith(`
`), buffer = [];
if (buffer.push(returnPrefix), visibleCount < previousVisible) {
let extraSlot = previousOutput.endsWith(`
`) ? 1 : 0;
buffer.push(base_exports.eraseLines(previousVisible - visibleCount + extraSlot), base_exports.cursorUp(visibleCount));
} else
buffer.push(base_exports.cursorUp(previousVisible - 1));
for (let i = 0; i < visibleCount; i++) {
let isLastLine = i === visibleCount - 1;
if (nextLines[i] === previousLines[i]) {
(!isLastLine || hasTrailingNewline) && buffer.push(base_exports.cursorNextLine);
continue;
}
buffer.push(base_exports.cursorTo(0) + nextLines[i] + base_exports.eraseEndLine + // Don't append newline after the last line when the input
// has no trailing newline (fullscreen mode).
(isLastLine && !hasTrailingNewline ? "" : `
`));
}
let cursorSuffix = buildCursorSuffix(visibleCount, activeCursor);
return buffer.push(cursorSuffix), stream.write(buffer.join("")), cursorWasShown = activeCursor !== void 0, previousCursorPosition = activeCursor ? { ...activeCursor } : void 0, previousOutput = str, previousLines = nextLines, !0;
};
return render3.clear = () => {
let prefix = buildReturnToBottomPrefix(cursorWasShown, previousLines.length, previousCursorPosition);
stream.write(prefix + base_exports.eraseLines(previousLines.length)), previousOutput = "", previousLines = [], previousCursorPosition = void 0, cursorWasShown = !1;
}, render3.done = () => {
previousOutput = "", previousLines = [], previousCursorPosition = void 0, cursorWasShown = !1, showCursor || (cli_cursor_default.show(stream), hasHiddenCursor = !1);
}, render3.sync = (str) => {
let activeCursor = cursorDirty ? cursorPosition : void 0;
cursorDirty = !1;
let lines = str.split(`
`);
previousOutput = str, previousLines = lines, !activeCursor && cursorWasShown && stream.write(hideCursorEscape), activeCursor && stream.write(buildCursorSuffix(visibleLineCount(lines, str), activeCursor)), previousCursorPosition = activeCursor ? { ...activeCursor } : void 0, cursorWasShown = activeCursor !== void 0;
}, render3.setCursorPosition = (position) => {
cursorPosition = position, cursorDirty = !0;
}, render3.isCursorDirty = () => cursorDirty, render3.willRender = (str) => hasChanges(str, getActiveCursor()), render3;
}, create2 = (stream, { showCursor = !1, incremental = !1 } = {}) => incremental ? createIncremental(stream, { showCursor }) : createStandard(stream, { showCursor }), logUpdate = { create: create2 }, log_update_default = logUpdate;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/write-synchronized.js
init_cjs_shims();
var bsu = "\x1B[?2026h", esu = "\x1B[?2026l";
function shouldSynchronize(stream) {
return "isTTY" in stream && stream.isTTY === !0 && !is_in_ci_default;
}
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/instances.js
init_cjs_shims();
var instances = /* @__PURE__ */ new WeakMap(), instances_default = instances;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/App.js
init_cjs_shims();
var import_react14 = __toESM(require_react(), 1);
import { EventEmitter as EventEmitter2 } from "node:events";
import process10 from "node:process";
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/input-parser.js
init_cjs_shims();
var isCsiParameterByte = (byte) => byte >= 48 && byte <= 63, isCsiIntermediateByte = (byte) => byte >= 32 && byte <= 47, isCsiFinalByte = (byte) => byte >= 64 && byte <= 126, parseCsiSequence = (input, startIndex, prefixLength) => {
let csiPayloadStart = startIndex + prefixLength + 1, index = csiPayloadStart;
for (; index < input.length; index++) {
let byte = input.codePointAt(index);
if (byte === void 0)
return "pending";
if (!(isCsiParameterByte(byte) || isCsiIntermediateByte(byte)) && !(byte === 91 && index === csiPayloadStart))
return isCsiFinalByte(byte) ? {
sequence: input.slice(startIndex, index + 1),
nextIndex: index + 1
} : void 0;
}
return "pending";
}, parseSs3Sequence = (input, startIndex, prefixLength) => {
let nextIndex = startIndex + prefixLength + 2;
if (nextIndex > input.length)
return "pending";
let finalByte = input.codePointAt(nextIndex - 1);
if (!(finalByte === void 0 || !isCsiFinalByte(finalByte)))
return {
sequence: input.slice(startIndex, nextIndex),
nextIndex
};
}, parseControlSequence = (input, startIndex, prefixLength) => {
let sequenceType = input[startIndex + prefixLength];
if (sequenceType === void 0)
return "pending";
if (sequenceType === "[")
return parseCsiSequence(input, startIndex, prefixLength);
if (sequenceType === "O")
return parseSs3Sequence(input, startIndex, prefixLength);
}, parseEscapedCodePoint = (input, escapeIndex) => {
let nextCodePoint = input.codePointAt(escapeIndex + 1), nextCodePointLength = nextCodePoint !== void 0 && nextCodePoint > 65535 ? 2 : 1, nextIndex = escapeIndex + 1 + nextCodePointLength;
return {
sequence: input.slice(escapeIndex, nextIndex),
nextIndex
};
}, parseKeypresses = (input) => {
let events = [], index = 0, pendingFrom = (pendingStartIndex) => ({
events,
pending: input.slice(pendingStartIndex)
});
for (; index < input.length; ) {
let escapeIndex = input.indexOf("\x1B", index);
if (escapeIndex === -1)
return events.push(input.slice(index)), {
events,
pending: ""
};
if (escapeIndex > index && events.push(input.slice(index, escapeIndex)), escapeIndex === input.length - 1)
return pendingFrom(escapeIndex);
let parsedSequence = parseControlSequence(input, escapeIndex, 1);
if (parsedSequence === "pending")
return pendingFrom(escapeIndex);
if (parsedSequence) {
events.push(parsedSequence.sequence), index = parsedSequence.nextIndex;
continue;
}
if (input[escapeIndex + 1] === "\x1B") {
if (escapeIndex + 2 >= input.length)
return pendingFrom(escapeIndex);
let doubleEscapeSequence = parseControlSequence(input, escapeIndex, 2);
if (doubleEscapeSequence === "pending")
return pendingFrom(escapeIndex);
if (doubleEscapeSequence) {
events.push(doubleEscapeSequence.sequence), index = doubleEscapeSequence.nextIndex;
continue;
}
events.push(input.slice(escapeIndex, escapeIndex + 2)), index = escapeIndex + 2;
continue;
}
let escapedCodePoint = parseEscapedCodePoint(input, escapeIndex);
events.push(escapedCodePoint.sequence), index = escapedCodePoint.nextIndex;
}
return {
events,
pending: ""
};
}, createInputParser = () => {
let pending = "";
return {
push(chunk) {
let parsedInput = parseKeypresses(pending + chunk);
return pending = parsedInput.pending, parsedInput.events;
},
hasPendingEscape() {
return pending.startsWith("\x1B");
},
flushPendingEscape() {
if (!pending.startsWith("\x1B"))
return;
let pendingEscape = pending;
return pending = "", pendingEscape;
},
reset() {
pending = "";
}
};
};
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/AppContext.js
init_cjs_shims();
var import_react2 = __toESM(require_react(), 1), AppContext = (0, import_react2.createContext)({
exit() {
}
});
AppContext.displayName = "InternalAppContext";
var AppContext_default = AppContext;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/StdinContext.js
init_cjs_shims();
var import_react3 = __toESM(require_react(), 1);
import { EventEmitter } from "node:events";
import process7 from "node:process";
var StdinContext = (0, import_react3.createContext)({
stdin: process7.stdin,
// eslint-disable-next-line @typescript-eslint/naming-convention
internal_eventEmitter: new EventEmitter(),
setRawMode() {
},
isRawModeSupported: !1,
// eslint-disable-next-line @typescript-eslint/naming-convention
internal_exitOnCtrlC: !0
});
StdinContext.displayName = "InternalStdinContext";
var StdinContext_default = StdinContext;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/StdoutContext.js
init_cjs_shims();
var import_react4 = __toESM(require_react(), 1);
import process8 from "node:process";
var StdoutContext = (0, import_react4.createContext)({
stdout: process8.stdout,
write() {
}
});
StdoutContext.displayName = "InternalStdoutContext";
var StdoutContext_default = StdoutContext;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/StderrContext.js
init_cjs_shims();
var import_react5 = __toESM(require_react(), 1);
import process9 from "node:process";
var StderrContext = (0, import_react5.createContext)({
stderr: process9.stderr,
write() {
}
});
StderrContext.displayName = "InternalStderrContext";
var StderrContext_default = StderrContext;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/FocusContext.js
init_cjs_shims();
var import_react6 = __toESM(require_react(), 1), FocusContext = (0, import_react6.createContext)({
activeId: void 0,
add() {
},
remove() {
},
activate() {
},
deactivate() {
},
enableFocus() {
},
disableFocus() {
},
focusNext() {
},
focusPrevious() {
},
focus() {
}
});
FocusContext.displayName = "InternalFocusContext";
var FocusContext_default = FocusContext;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/CursorContext.js
init_cjs_shims();
var import_react7 = __toESM(require_react(), 1), CursorContext = (0, import_react7.createContext)({
setCursorPosition() {
}
});
CursorContext.displayName = "InternalCursorContext";
var CursorContext_default = CursorContext;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/ErrorBoundary.js
init_cjs_shims();
var import_react13 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/ErrorOverview.js
init_cjs_shims();
var import_react12 = __toESM(require_react(), 1), import_stack_utils = __toESM(require_stack_utils(), 1);
import * as fs2 from "node:fs";
import { cwd as cwd2 } from "node:process";
// ../../node_modules/.pnpm/code-excerpt@4.0.0/node_modules/code-excerpt/dist/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/convert-to-spaces@2.0.1/node_modules/convert-to-spaces/dist/index.js
init_cjs_shims();
var convertToSpaces = (input, spaces = 2) => input.replace(/^\t+/gm, ($1) => " ".repeat($1.length * spaces)), dist_default2 = convertToSpaces;
// ../../node_modules/.pnpm/code-excerpt@4.0.0/node_modules/code-excerpt/dist/index.js
var generateLineNumbers = (line, around) => {
let lineNumbers = [], min = line - around, max = line + around;
for (let lineNumber = min; lineNumber <= max; lineNumber++)
lineNumbers.push(lineNumber);
return lineNumbers;
}, codeExcerpt = (source, line, options = {}) => {
var _a;
if (typeof source != "string")
throw new TypeError("Source code is missing.");
if (!line || line < 1)
throw new TypeError("Line number must start from `1`.");
let lines = dist_default2(source).split(/\r?\n/);
if (!(line > lines.length))
return generateLineNumbers(line, (_a = options.around) !== null && _a !== void 0 ? _a : 3).filter((line2) => lines[line2 - 1] !== void 0).map((line2) => ({ line: line2, value: lines[line2 - 1] }));
}, dist_default3 = codeExcerpt;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/Box.js
init_cjs_shims();
var import_react10 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/AccessibilityContext.js
init_cjs_shims();
var import_react8 = __toESM(require_react(), 1), accessibilityContext = (0, import_react8.createContext)({
isScreenReaderEnabled: !1
});
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/BackgroundContext.js
init_cjs_shims();
var import_react9 = __toESM(require_react(), 1), backgroundContext = (0, import_react9.createContext)(void 0);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/Box.js
var Box = (0, import_react10.forwardRef)(({ children, backgroundColor, "aria-label": ariaLabel, "aria-hidden": ariaHidden, "aria-role": role, "aria-state": ariaState, ...style }, ref) => {
let { isScreenReaderEnabled } = (0, import_react10.useContext)(accessibilityContext), label = ariaLabel ? import_react10.default.createElement("ink-text", null, ariaLabel) : void 0;
if (isScreenReaderEnabled && ariaHidden)
return null;
let boxElement = import_react10.default.createElement("ink-box", { ref, style: {
flexWrap: "nowrap",
flexDirection: "row",
flexGrow: 0,
flexShrink: 1,
...style,
backgroundColor,
overflowX: style.overflowX ?? style.overflow ?? "visible",
overflowY: style.overflowY ?? style.overflow ?? "visible"
}, internal_accessibility: {
role,
state: ariaState
} }, isScreenReaderEnabled && label ? label : children);
return backgroundColor ? import_react10.default.createElement(backgroundContext.Provider, { value: backgroundColor }, boxElement) : boxElement;
});
Box.displayName = "Box";
var Box_default = Box;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/Text.js
init_cjs_shims();
var import_react11 = __toESM(require_react(), 1);
function Text({ color, backgroundColor, dimColor = !1, bold = !1, italic = !1, underline = !1, strikethrough = !1, inverse = !1, wrap = "wrap", children, "aria-label": ariaLabel, "aria-hidden": ariaHidden = !1 }) {
let { isScreenReaderEnabled } = (0, import_react11.useContext)(accessibilityContext), inheritedBackgroundColor = (0, import_react11.useContext)(backgroundContext), childrenOrAriaLabel = isScreenReaderEnabled && ariaLabel ? ariaLabel : children;
if (childrenOrAriaLabel == null)
return null;
let transform = (children2) => {
dimColor && (children2 = source_default.dim(children2)), color && (children2 = colorize_default(children2, color, "foreground"));
let effectiveBackgroundColor = backgroundColor ?? inheritedBackgroundColor;
return effectiveBackgroundColor && (children2 = colorize_default(children2, effectiveBackgroundColor, "background")), bold && (children2 = source_default.bold(children2)), italic && (children2 = source_default.italic(children2)), underline && (children2 = source_default.underline(children2)), strikethrough && (children2 = source_default.strikethrough(children2)), inverse && (children2 = source_default.inverse(children2)), children2;
};
return isScreenReaderEnabled && ariaHidden ? null : import_react11.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap }, internal_transform: transform }, isScreenReaderEnabled && ariaLabel ? ariaLabel : children);
}
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/ErrorOverview.js
var cleanupPath = (path) => path?.replace(`file://${cwd2()}/`, ""), stackUtils = new import_stack_utils.default({
cwd: cwd2(),
internals: import_stack_utils.default.nodeInternals()
});
function ErrorOverview({ error }) {
let stack = error.stack ? error.stack.split(`
`).slice(1) : void 0, origin = stack ? stackUtils.parseLine(stack[0]) : void 0, filePath = cleanupPath(origin?.file), excerpt, lineWidth = 0;
if (filePath && origin?.line && fs2.existsSync(filePath)) {
let sourceCode = fs2.readFileSync(filePath, "utf8");
if (excerpt = dist_default3(sourceCode, origin.line), excerpt)
for (let { line } of excerpt)
lineWidth = Math.max(lineWidth, String(line).length);
}
return import_react12.default.createElement(
Box_default,
{ flexDirection: "column", padding: 1 },
import_react12.default.createElement(
Box_default,
null,
import_react12.default.createElement(
Text,
{ backgroundColor: "red", color: "white" },
" ",
"ERROR",
" "
),
import_react12.default.createElement(
Text,
null,
" ",
error.message
)
),
origin && filePath && import_react12.default.createElement(
Box_default,
{ marginTop: 1 },
import_react12.default.createElement(
Text,
{ dimColor: !0 },
filePath,
":",
origin.line,
":",
origin.column
)
),
origin && excerpt && import_react12.default.createElement(Box_default, { marginTop: 1, flexDirection: "column" }, excerpt.map(({ line, value }) => import_react12.default.createElement(
Box_default,
{ key: line },
import_react12.default.createElement(
Box_default,
{ width: lineWidth + 1 },
import_react12.default.createElement(
Text,
{ dimColor: line !== origin.line, backgroundColor: line === origin.line ? "red" : void 0, color: line === origin.line ? "white" : void 0, "aria-label": line === origin.line ? `Line ${line}, error` : `Line ${line}` },
String(line).padStart(lineWidth, " "),
":"
)
),
import_react12.default.createElement(Text, { key: line, backgroundColor: line === origin.line ? "red" : void 0, color: line === origin.line ? "white" : void 0 }, " " + value)
))),
error.stack && import_react12.default.createElement(Box_default, { marginTop: 1, flexDirection: "column" }, error.stack.split(`
`).slice(1).map((line) => {
let parsedLine = stackUtils.parseLine(line);
return parsedLine ? import_react12.default.createElement(
Box_default,
{ key: line },
import_react12.default.createElement(Text, { dimColor: !0 }, "- "),
import_react12.default.createElement(Text, { dimColor: !0, bold: !0 }, parsedLine.function),
import_react12.default.createElement(
Text,
{ dimColor: !0, color: "gray", "aria-label": `at ${cleanupPath(parsedLine.file) ?? ""} line ${parsedLine.line} column ${parsedLine.column}` },
" ",
"(",
cleanupPath(parsedLine.file) ?? "",
":",
parsedLine.line,
":",
parsedLine.column,
")"
)
) : import_react12.default.createElement(
Box_default,
{ key: line },
import_react12.default.createElement(Text, { dimColor: !0 }, "- "),
import_react12.default.createElement(
Text,
{ dimColor: !0, bold: !0 },
line,
"\\t",
" "
)
);
}))
);
}
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/ErrorBoundary.js
var ErrorBoundary = class extends import_react13.PureComponent {
static displayName = "InternalErrorBoundary";
static getDerivedStateFromError(error) {
return { error };
}
state = {
error: void 0
};
componentDidCatch(error) {
this.props.onError(error);
}
render() {
return this.state.error ? import_react13.default.createElement(ErrorOverview, { error: this.state.error }) : this.props.children;
}
};
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/App.js
var tab = " ", shiftTab = "\x1B[Z", escape = "\x1B";
function App({ children, stdin, stdout, stderr, writeToStdout, writeToStderr, exitOnCtrlC, onExit, setCursorPosition }) {
let [isFocusEnabled, setIsFocusEnabled] = (0, import_react14.useState)(!0), [activeFocusId, setActiveFocusId] = (0, import_react14.useState)(void 0), [, setFocusables] = (0, import_react14.useState)([]), focusablesCountRef = (0, import_react14.useRef)(0), rawModeEnabledCount = (0, import_react14.useRef)(0), internal_eventEmitter = (0, import_react14.useRef)(new EventEmitter2());
internal_eventEmitter.current.setMaxListeners(1 / 0);
let readableListenerRef = (0, import_react14.useRef)(void 0), inputParserRef = (0, import_react14.useRef)(createInputParser()), pendingInputFlushRef = (0, import_react14.useRef)(void 0), clearPendingInputFlush = (0, import_react14.useCallback)(() => {
pendingInputFlushRef.current && (clearImmediate(pendingInputFlushRef.current), pendingInputFlushRef.current = void 0);
}, []), isRawModeSupported = stdin.isTTY, detachReadableListener = (0, import_react14.useCallback)(() => {
readableListenerRef.current && (stdin.removeListener("readable", readableListenerRef.current), readableListenerRef.current = void 0);
}, [stdin]), disableRawMode = (0, import_react14.useCallback)(() => {
stdin.setRawMode(!1), detachReadableListener(), stdin.unref(), rawModeEnabledCount.current = 0, inputParserRef.current.reset(), clearPendingInputFlush();
}, [stdin, detachReadableListener, clearPendingInputFlush]), handleExit = (0, import_react14.useCallback)((errorOrResult) => {
isRawModeSupported && rawModeEnabledCount.current > 0 && disableRawMode(), onExit(errorOrResult);
}, [isRawModeSupported, disableRawMode, onExit]), handleInput = (0, import_react14.useCallback)((input) => {
if (input === "" && exitOnCtrlC) {
handleExit();
return;
}
input === escape && setActiveFocusId((currentActiveFocusId) => {
if (!currentActiveFocusId)
return currentActiveFocusId;
});
}, [exitOnCtrlC, handleExit]), emitInput = (0, import_react14.useCallback)((input) => {
handleInput(input), internal_eventEmitter.current.emit("input", input);
}, [handleInput]), schedulePendingInputFlush = (0, import_react14.useCallback)(() => {
clearPendingInputFlush(), pendingInputFlushRef.current = setImmediate(() => {
pendingInputFlushRef.current = void 0;
let pendingEscape = inputParserRef.current.flushPendingEscape();
pendingEscape && emitInput(pendingEscape);
});
}, [clearPendingInputFlush, emitInput]), handleReadable = (0, import_react14.useCallback)(() => {
clearPendingInputFlush();
let chunk;
for (; (chunk = stdin.read()) !== null; ) {
let inputEvents = inputParserRef.current.push(chunk);
for (let input of inputEvents)
emitInput(input);
}
inputParserRef.current.hasPendingEscape() && schedulePendingInputFlush();
}, [stdin, emitInput, clearPendingInputFlush, schedulePendingInputFlush]), handleSetRawMode = (0, import_react14.useCallback)((isEnabled) => {
if (!isRawModeSupported)
throw stdin === process10.stdin ? new Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`) : new Error(`Raw mode is not supported on the stdin provided to Ink.
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);
if (stdin.setEncoding("utf8"), isEnabled) {
rawModeEnabledCount.current === 0 && (stdin.ref(), stdin.setRawMode(!0), readableListenerRef.current = handleReadable, stdin.addListener("readable", handleReadable)), rawModeEnabledCount.current++;
return;
}
rawModeEnabledCount.current !== 0 && --rawModeEnabledCount.current === 0 && disableRawMode();
}, [isRawModeSupported, stdin, handleReadable, disableRawMode]), findNextFocusable = (0, import_react14.useCallback)((currentFocusables, currentActiveFocusId) => {
let activeIndex = currentFocusables.findIndex((focusable) => focusable.id === currentActiveFocusId);
for (let index = activeIndex + 1; index < currentFocusables.length; index++) {
let focusable = currentFocusables[index];
if (focusable?.isActive)
return focusable.id;
}
}, []), findPreviousFocusable = (0, import_react14.useCallback)((currentFocusables, currentActiveFocusId) => {
let activeIndex = currentFocusables.findIndex((focusable) => focusable.id === currentActiveFocusId);
for (let index = activeIndex - 1; index >= 0; index--) {
let focusable = currentFocusables[index];
if (focusable?.isActive)
return focusable.id;
}
}, []), focusNext = (0, import_react14.useCallback)(() => {
setFocusables((currentFocusables) => (setActiveFocusId((currentActiveFocusId) => {
let firstFocusableId = currentFocusables.find((focusable) => focusable.isActive)?.id;
return findNextFocusable(currentFocusables, currentActiveFocusId) ?? firstFocusableId;
}), currentFocusables));
}, [findNextFocusable]), focusPrevious = (0, import_react14.useCallback)(() => {
setFocusables((currentFocusables) => (setActiveFocusId((currentActiveFocusId) => {
let lastFocusableId = currentFocusables.findLast((focusable) => focusable.isActive)?.id;
return findPreviousFocusable(currentFocusables, currentActiveFocusId) ?? lastFocusableId;
}), currentFocusables));
}, [findPreviousFocusable]);
(0, import_react14.useEffect)(() => {
let handleTabNavigation = (input) => {
!isFocusEnabled || focusablesCountRef.current === 0 || (input === tab && focusNext(), input === shiftTab && focusPrevious());
};
internal_eventEmitter.current.on("input", handleTabNavigation);
let emitter = internal_eventEmitter.current;
return () => {
emitter.off("input", handleTabNavigation);
};
}, [isFocusEnabled, focusNext, focusPrevious]);
let enableFocus = (0, import_react14.useCallback)(() => {
setIsFocusEnabled(!0);
}, []), disableFocus = (0, import_react14.useCallback)(() => {
setIsFocusEnabled(!1);
}, []), focus = (0, import_react14.useCallback)((id) => {
setFocusables((currentFocusables) => (currentFocusables.some((focusable) => focusable?.id === id) && setActiveFocusId(id), currentFocusables));
}, []), addFocusable = (0, import_react14.useCallback)((id, { autoFocus }) => {
setFocusables((currentFocusables) => (focusablesCountRef.current = currentFocusables.length + 1, [
...currentFocusables,
{
id,
isActive: !0
}
])), autoFocus && setActiveFocusId((currentActiveFocusId) => currentActiveFocusId || id);
}, []), removeFocusable = (0, import_react14.useCallback)((id) => {
setActiveFocusId((currentActiveFocusId) => {
if (currentActiveFocusId !== id)
return currentActiveFocusId;
}), setFocusables((currentFocusables) => {
let filtered = currentFocusables.filter((focusable) => focusable.id !== id);
return focusablesCountRef.current = filtered.length, filtered;
});
}, []), activateFocusable = (0, import_react14.useCallback)((id) => {
setFocusables((currentFocusables) => currentFocusables.map((focusable) => focusable.id !== id ? focusable : {
id,
isActive: !0
}));
}, []), deactivateFocusable = (0, import_react14.useCallback)((id) => {
setActiveFocusId((currentActiveFocusId) => {
if (currentActiveFocusId !== id)
return currentActiveFocusId;
}), setFocusables((currentFocusables) => currentFocusables.map((focusable) => focusable.id !== id ? focusable : {
id,
isActive: !1
}));
}, []);
(0, import_react14.useEffect)(() => () => {
cli_cursor_default.show(stdout), isRawModeSupported && rawModeEnabledCount.current > 0 && disableRawMode();
}, [stdout, isRawModeSupported, disableRawMode]);
let appContextValue = (0, import_react14.useMemo)(() => ({
exit: handleExit
}), [handleExit]), stdinContextValue = (0, import_react14.useMemo)(() => ({
stdin,
setRawMode: handleSetRawMode,
isRawModeSupported,
// eslint-disable-next-line @typescript-eslint/naming-convention
internal_exitOnCtrlC: exitOnCtrlC,
// eslint-disable-next-line @typescript-eslint/naming-convention
internal_eventEmitter: internal_eventEmitter.current
}), [stdin, handleSetRawMode, isRawModeSupported, exitOnCtrlC]), stdoutContextValue = (0, import_react14.useMemo)(() => ({
stdout,
write: writeToStdout
}), [stdout, writeToStdout]), stderrContextValue = (0, import_react14.useMemo)(() => ({
stderr,
write: writeToStderr
}), [stderr, writeToStderr]), cursorContextValue = (0, import_react14.useMemo)(() => ({
setCursorPosition
}), [setCursorPosition]), focusContextValue = (0, import_react14.useMemo)(() => ({
activeId: activeFocusId,
add: addFocusable,
remove: removeFocusable,
activate: activateFocusable,
deactivate: deactivateFocusable,
enableFocus,
disableFocus,
focusNext,
focusPrevious,
focus
}), [
activeFocusId,
addFocusable,
removeFocusable,
activateFocusable,
deactivateFocusable,
enableFocus,
disableFocus,
focusNext,
focusPrevious,
focus
]);
return import_react14.default.createElement(
AppContext_default.Provider,
{ value: appContextValue },
import_react14.default.createElement(
StdinContext_default.Provider,
{ value: stdinContextValue },
import_react14.default.createElement(
StdoutContext_default.Provider,
{ value: stdoutContextValue },
import_react14.default.createElement(
StderrContext_default.Provider,
{ value: stderrContextValue },
import_react14.default.createElement(
FocusContext_default.Provider,
{ value: focusContextValue },
import_react14.default.createElement(
CursorContext_default.Provider,
{ value: cursorContextValue },
import_react14.default.createElement(ErrorBoundary, { onError: handleExit }, children)
)
)
)
)
)
);
}
App.displayName = "InternalApp";
var App_default = App;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/kitty-keyboard.js
init_cjs_shims();
var kittyFlags = {
disambiguateEscapeCodes: 1,
reportEventTypes: 2,
reportAlternateKeys: 4,
reportAllKeysAsEscapeCodes: 8,
reportAssociatedText: 16
};
function resolveFlags(flags) {
let result = 0;
for (let flag of flags)
result |= kittyFlags[flag];
return result;
}
var kittyModifiers = {
shift: 1,
alt: 2,
ctrl: 4,
super: 8,
hyper: 16,
meta: 32,
capsLock: 64,
numLock: 128
};
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/ink.js
var noop = () => {
}, kittyQueryEscapeByte = 27, kittyQueryOpenBracketByte = 91, kittyQueryQuestionMarkByte = 63, kittyQueryLetterByte = 117, zeroByte = 48, nineByte = 57, isDigitByte = (byte) => byte >= zeroByte && byte <= nineByte, matchKittyQueryResponse = (buffer, startIndex) => {
if (buffer[startIndex] !== kittyQueryEscapeByte || buffer[startIndex + 1] !== kittyQueryOpenBracketByte || buffer[startIndex + 2] !== kittyQueryQuestionMarkByte)
return;
let index = startIndex + 3, digitsStartIndex = index;
for (; index < buffer.length && isDigitByte(buffer[index]); )
index++;
if (index !== digitsStartIndex) {
if (index === buffer.length)
return { state: "partial" };
if (buffer[index] === kittyQueryLetterByte)
return { state: "complete", endIndex: index };
}
}, hasCompleteKittyQueryResponse = (buffer) => {
for (let index = 0; index < buffer.length; index++)
if (matchKittyQueryResponse(buffer, index)?.state === "complete")
return !0;
return !1;
}, stripKittyQueryResponsesAndTrailingPartial = (buffer) => {
let keptBytes = [], index = 0;
for (; index < buffer.length; ) {
let match = matchKittyQueryResponse(buffer, index);
if (match?.state === "complete") {
index = match.endIndex + 1;
continue;
}
if (match?.state === "partial")
break;
keptBytes.push(buffer[index]), index++;
}
return keptBytes;
}, isErrorInput = (value) => value instanceof Error || Object.prototype.toString.call(value) === "[object Error]", Ink = class {
/**
Whether this instance is using concurrent rendering mode.
*/
isConcurrent;
options;
log;
cursorPosition;
throttledLog;
isScreenReaderEnabled;
// Ignore last render after unmounting a tree to prevent empty output before exit
isUnmounted;
isUnmounting;
lastOutput;
lastOutputToRender;
lastOutputHeight;
lastTerminalWidth;
container;
rootNode;
// This variable is used only in debug mode to store full static output
// so that it's rerendered every time, not just new static parts, like in non-debug mode
fullStaticOutput;
exitPromise;
exitResult;
beforeExitHandler;
restoreConsole;
unsubscribeResize;
throttledOnRender;
hasPendingThrottledRender = !1;
kittyProtocolEnabled = !1;
cancelKittyDetection;
constructor(options) {
autoBind(this), this.options = options, this.rootNode = createNode("ink-root"), this.rootNode.onComputeLayout = this.calculateLayout, this.isScreenReaderEnabled = options.isScreenReaderEnabled ?? process11.env.INK_SCREEN_READER === "true";
let unthrottled = options.debug || this.isScreenReaderEnabled, maxFps = options.maxFps ?? 30, renderThrottleMs = maxFps > 0 ? Math.max(1, Math.ceil(1e3 / maxFps)) : 0;
if (unthrottled)
this.rootNode.onRender = this.onRender, this.throttledOnRender = void 0;
else {
let throttled = throttle(this.onRender, renderThrottleMs, {
leading: !0,
trailing: !0
});
this.rootNode.onRender = () => {
this.hasPendingThrottledRender = !0, throttled();
}, this.throttledOnRender = throttled;
}
this.rootNode.onImmediateRender = this.onRender, this.log = log_update_default.create(options.stdout, {
incremental: options.incrementalRendering
}), this.cursorPosition = void 0, this.throttledLog = unthrottled ? this.log : throttle((output2) => {
let shouldWrite = this.log.willRender(output2), sync = shouldSynchronize(this.options.stdout);
sync && shouldWrite && this.options.stdout.write(bsu), this.log(output2), sync && shouldWrite && this.options.stdout.write(esu);
}, void 0, {
leading: !0,
trailing: !0
}), this.isUnmounted = !1, this.isUnmounting = !1, this.isConcurrent = options.concurrent ?? !1, this.lastOutput = "", this.lastOutputToRender = "", this.lastOutputHeight = 0, this.lastTerminalWidth = this.getTerminalWidth(), this.fullStaticOutput = "";
let rootTag = options.concurrent ? import_constants2.ConcurrentRoot : import_constants2.LegacyRoot;
this.container = reconciler_default.createContainer(this.rootNode, rootTag, null, !1, null, "id", () => {
}, () => {
}, () => {
}, () => {
}), this.unsubscribeExit = (0, import_signal_exit2.default)(this.unmount, { alwaysLast: !1 }), isDev() && reconciler_default.injectIntoDevTools(), options.patchConsole && this.patchConsole(), is_in_ci_default || (options.stdout.on("resize", this.resized), this.unsubscribeResize = () => {
options.stdout.off("resize", this.resized);
}), this.initKittyKeyboard();
}
getTerminalWidth = () => this.options.stdout.columns ? this.options.stdout.columns : terminalSize()?.columns ?? 80;
resized = () => {
let currentWidth = this.getTerminalWidth();
currentWidth < this.lastTerminalWidth && (this.log.clear(), this.lastOutput = "", this.lastOutputToRender = ""), this.calculateLayout(), this.onRender(), this.lastTerminalWidth = currentWidth;
};
resolveExitPromise = () => {
};
rejectExitPromise = () => {
};
unsubscribeExit = () => {
};
handleAppExit = (errorOrResult) => {
if (!(this.isUnmounted || this.isUnmounting)) {
if (isErrorInput(errorOrResult)) {
this.unmount(errorOrResult);
return;
}
this.exitResult = errorOrResult, this.unmount();
}
};
setCursorPosition = (position) => {
this.cursorPosition = position, this.log.setCursorPosition(position);
};
restoreLastOutput = () => {
this.log.setCursorPosition(this.cursorPosition), this.log(this.lastOutputToRender || this.lastOutput + `
`);
};
calculateLayout = () => {
let terminalWidth = this.getTerminalWidth();
this.rootNode.yogaNode.setWidth(terminalWidth), this.rootNode.yogaNode.calculateLayout(void 0, void 0, src_default.DIRECTION_LTR);
};
onRender = () => {
if (this.hasPendingThrottledRender = !1, this.isUnmounted)
return;
let startTime = performance.now(), { output: output2, outputHeight, staticOutput } = renderer_default(this.rootNode, this.isScreenReaderEnabled);
this.options.onRender?.({ renderTime: performance.now() - startTime });
let hasStaticOutput = staticOutput && staticOutput !== `
`;
if (this.options.debug) {
hasStaticOutput && (this.fullStaticOutput += staticOutput), this.options.stdout.write(this.fullStaticOutput + output2);
return;
}
if (is_in_ci_default) {
hasStaticOutput && this.options.stdout.write(staticOutput), this.lastOutput = output2, this.lastOutputToRender = output2 + `
`, this.lastOutputHeight = outputHeight;
return;
}
if (this.isScreenReaderEnabled) {
let sync = shouldSynchronize(this.options.stdout);
if (sync && this.options.stdout.write(bsu), hasStaticOutput) {
let erase = this.lastOutputHeight > 0 ? base_exports.eraseLines(this.lastOutputHeight) : "";
this.options.stdout.write(erase + staticOutput), this.lastOutputHeight = 0;
}
if (output2 === this.lastOutput && !hasStaticOutput) {
sync && this.options.stdout.write(esu);
return;
}
let terminalWidth = this.getTerminalWidth(), wrappedOutput = wrapAnsi(output2, terminalWidth, {
trim: !1,
hard: !0
});
if (hasStaticOutput)
this.options.stdout.write(wrappedOutput);
else {
let erase = this.lastOutputHeight > 0 ? base_exports.eraseLines(this.lastOutputHeight) : "";
this.options.stdout.write(erase + wrappedOutput);
}
this.lastOutput = output2, this.lastOutputToRender = wrappedOutput, this.lastOutputHeight = wrappedOutput === "" ? 0 : wrappedOutput.split(`
`).length, sync && this.options.stdout.write(esu);
return;
}
hasStaticOutput && (this.fullStaticOutput += staticOutput);
let outputToRender = this.options.stdout.isTTY && outputHeight >= this.options.stdout.rows ? output2 : output2 + `
`;
if (this.lastOutputHeight >= this.options.stdout.rows) {
let sync = shouldSynchronize(this.options.stdout);
sync && this.options.stdout.write(bsu), this.options.stdout.write(base_exports.clearTerminal + this.fullStaticOutput + output2), this.lastOutput = output2, this.lastOutputToRender = outputToRender, this.lastOutputHeight = outputHeight, this.log.sync(outputToRender), sync && this.options.stdout.write(esu);
return;
}
if (hasStaticOutput) {
let sync = shouldSynchronize(this.options.stdout);
sync && this.options.stdout.write(bsu), this.log.clear(), this.options.stdout.write(staticOutput), this.log(outputToRender), sync && this.options.stdout.write(esu);
} else (output2 !== this.lastOutput || this.log.isCursorDirty()) && this.throttledLog(outputToRender);
this.lastOutput = output2, this.lastOutputToRender = outputToRender, this.lastOutputHeight = outputHeight;
};
render(node) {
let tree = import_react15.default.createElement(
accessibilityContext.Provider,
{ value: { isScreenReaderEnabled: this.isScreenReaderEnabled } },
import_react15.default.createElement(App_default, { stdin: this.options.stdin, stdout: this.options.stdout, stderr: this.options.stderr, exitOnCtrlC: this.options.exitOnCtrlC, writeToStdout: this.writeToStdout, writeToStderr: this.writeToStderr, setCursorPosition: this.setCursorPosition, onExit: this.handleAppExit }, node)
);
this.options.concurrent ? reconciler_default.updateContainer(tree, this.container, null, noop) : (reconciler_default.updateContainerSync(tree, this.container, null, noop), reconciler_default.flushSyncWork());
}
writeToStdout(data) {
if (this.isUnmounted)
return;
if (this.options.debug) {
this.options.stdout.write(data + this.fullStaticOutput + this.lastOutput);
return;
}
if (is_in_ci_default) {
this.options.stdout.write(data);
return;
}
let sync = shouldSynchronize(this.options.stdout);
sync && this.options.stdout.write(bsu), this.log.clear(), this.options.stdout.write(data), this.restoreLastOutput(), sync && this.options.stdout.write(esu);
}
writeToStderr(data) {
if (this.isUnmounted)
return;
if (this.options.debug) {
this.options.stderr.write(data), this.options.stdout.write(this.fullStaticOutput + this.lastOutput);
return;
}
if (is_in_ci_default) {
this.options.stderr.write(data);
return;
}
let sync = shouldSynchronize(this.options.stdout);
sync && this.options.stdout.write(bsu), this.log.clear(), this.options.stderr.write(data), this.restoreLastOutput(), sync && this.options.stdout.write(esu);
}
// eslint-disable-next-line @typescript-eslint/ban-types
unmount(error) {
if (this.isUnmounted || this.isUnmounting)
return;
this.isUnmounting = !0, this.beforeExitHandler && (process11.off("beforeExit", this.beforeExitHandler), this.beforeExitHandler = void 0);
let stdout = this.options.stdout, canWriteToStdout = !stdout.destroyed && !stdout.writableEnded && (stdout.writable ?? !0), settleThrottle = (throttled) => {
typeof throttled.flush == "function" && (canWriteToStdout ? throttled.flush() : typeof throttled.cancel == "function" && throttled.cancel());
};
settleThrottle(this.throttledOnRender ?? {}), canWriteToStdout && (!this.throttledOnRender || !this.hasPendingThrottledRender && this.fullStaticOutput === "") && (this.calculateLayout(), this.onRender()), this.isUnmounted = !0, this.unsubscribeExit(), typeof this.restoreConsole == "function" && this.restoreConsole(), typeof this.unsubscribeResize == "function" && this.unsubscribeResize(), this.cancelKittyDetection && this.cancelKittyDetection();
let throttledLog = this.throttledLog;
if (settleThrottle(throttledLog), canWriteToStdout) {
if (this.kittyProtocolEnabled)
try {
this.options.stdout.write("\x1B[<u");
} catch {
}
is_in_ci_default ? this.options.stdout.write(this.lastOutput + `
`) : this.options.debug || this.log.done();
}
this.kittyProtocolEnabled = !1, this.options.concurrent ? reconciler_default.updateContainer(null, this.container, null, noop) : (reconciler_default.updateContainerSync(null, this.container, null, noop), reconciler_default.flushSyncWork()), instances_default.delete(this.options.stdout);
let { exitResult } = this, resolveOrReject = () => {
isErrorInput(error) ? this.rejectExitPromise(error) : this.resolveExitPromise(exitResult);
}, isProcessExiting = error !== void 0 && !isErrorInput(error), hasWritableState = stdout._writableState !== void 0 || stdout.writableLength !== void 0;
isProcessExiting ? resolveOrReject() : canWriteToStdout && hasWritableState ? this.options.stdout.write("", resolveOrReject) : setImmediate(resolveOrReject);
}
async waitUntilExit() {
return this.exitPromise ||= new Promise((resolve, reject) => {
this.resolveExitPromise = resolve, this.rejectExitPromise = reject;
}), this.beforeExitHandler || (this.beforeExitHandler = () => {
this.unmount();
}, process11.once("beforeExit", this.beforeExitHandler)), this.exitPromise;
}
clear() {
!is_in_ci_default && !this.options.debug && (this.log.clear(), this.log.sync(this.lastOutputToRender || this.lastOutput + `
`));
}
patchConsole() {
this.options.debug || (this.restoreConsole = dist_default((stream, data) => {
stream === "stdout" && this.writeToStdout(data), stream === "stderr" && (data.startsWith("The above error occurred") || this.writeToStderr(data));
}));
}
initKittyKeyboard() {
if (!this.options.kittyKeyboard)
return;
let opts = this.options.kittyKeyboard, mode = opts.mode ?? "auto";
if (mode === "disabled" || !this.options.stdin.isTTY || !this.options.stdout.isTTY)
return;
let flags = opts.flags ?? ["disambiguateEscapeCodes"];
if (mode === "enabled") {
this.enableKittyProtocol(flags);
return;
}
let term = process11.env.TERM ?? "", termProgram = process11.env.TERM_PROGRAM ?? "", isKnownSupportingTerminal = "KITTY_WINDOW_ID" in process11.env || term === "xterm-kitty" || termProgram === "WezTerm" || termProgram === "ghostty";
!is_in_ci_default && isKnownSupportingTerminal && this.confirmKittySupport(flags);
}
confirmKittySupport(flags) {
let { stdin, stdout } = this.options, responseBuffer = [], cleanup = () => {
this.cancelKittyDetection = void 0, clearTimeout(timer), stdin.removeListener("data", onData);
let remaining = stripKittyQueryResponsesAndTrailingPartial(responseBuffer);
responseBuffer = [], remaining.length > 0 && stdin.unshift(Buffer.from(remaining));
}, onData = (data) => {
let chunk = typeof data == "string" ? Buffer.from(data) : data;
for (let byte of chunk)
responseBuffer.push(byte);
hasCompleteKittyQueryResponse(responseBuffer) && (cleanup(), this.isUnmounted || this.enableKittyProtocol(flags));
};
stdin.on("data", onData);
let timer = setTimeout(cleanup, 200);
this.cancelKittyDetection = cleanup, stdout.write("\x1B[?u");
}
enableKittyProtocol(flags) {
this.options.stdout.write(`\x1B[>${resolveFlags(flags)}u`), this.kittyProtocolEnabled = !0;
}
};
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/render.js
var render = (node, options) => {
let inkOptions = {
stdout: process12.stdout,
stdin: process12.stdin,
stderr: process12.stderr,
debug: !1,
exitOnCtrlC: !0,
patchConsole: !0,
maxFps: 30,
incrementalRendering: !1,
concurrent: !1,
...getOptions(options)
}, instance = getInstance(inkOptions.stdout, () => new Ink(inkOptions), inkOptions.concurrent ?? !1);
return instance.render(node), {
rerender: instance.render,
unmount() {
instance.unmount();
},
waitUntilExit: instance.waitUntilExit,
cleanup: () => instances_default.delete(inkOptions.stdout),
clear: instance.clear
};
}, render_default = render, getOptions = (stdout = {}) => stdout instanceof Stream ? {
stdout,
stdin: process12.stdin
} : stdout, getInstance = (stdout, createInstance, concurrent) => {
let instance = instances_default.get(stdout);
return instance ? instance.isConcurrent !== concurrent && console.warn(`Warning: render() was called with concurrent: ${concurrent}, but the existing instance for this stdout uses concurrent: ${instance.isConcurrent}. The concurrent option only takes effect on the first render. Call unmount() first if you need to change the rendering mode.`) : (instance = createInstance(), instances_default.set(stdout, instance)), instance;
};
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/render-to-string.js
init_cjs_shims();
var import_constants3 = __toESM(require_constants(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/Static.js
init_cjs_shims();
var import_react16 = __toESM(require_react(), 1);
function Static(props) {
let { items, children: render3, style: customStyle } = props, [index, setIndex] = (0, import_react16.useState)(0), itemsToRender = (0, import_react16.useMemo)(() => items.slice(index), [items, index]);
(0, import_react16.useLayoutEffect)(() => {
setIndex(items.length);
}, [items.length]);
let children = itemsToRender.map((item, itemIndex) => render3(item, index + itemIndex)), style = (0, import_react16.useMemo)(() => ({
position: "absolute",
flexDirection: "column",
...customStyle
}), [customStyle]);
return import_react16.default.createElement("ink-box", { internal_static: !0, style }, children);
}
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/Transform.js
init_cjs_shims();
var import_react17 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/Newline.js
init_cjs_shims();
var import_react18 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/components/Spacer.js
init_cjs_shims();
var import_react19 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/hooks/use-input.js
init_cjs_shims();
var import_react21 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/parse-keypress.js
init_cjs_shims();
import { Buffer as Buffer2 } from "node:buffer";
var metaKeyCodeRe = /^(?:\x1b)([a-zA-Z0-9])$/, fnKeyRe = /^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/, keyName = {
/* xterm/gnome ESC O letter */
OP: "f1",
OQ: "f2",
OR: "f3",
OS: "f4",
/* xterm/rxvt ESC [ number ~ */
"[11~": "f1",
"[12~": "f2",
"[13~": "f3",
"[14~": "f4",
/* from Cygwin and used in libuv */
"[[A": "f1",
"[[B": "f2",
"[[C": "f3",
"[[D": "f4",
"[[E": "f5",
/* common */
"[15~": "f5",
"[17~": "f6",
"[18~": "f7",
"[19~": "f8",
"[20~": "f9",
"[21~": "f10",
"[23~": "f11",
"[24~": "f12",
/* xterm ESC [ letter */
"[A": "up",
"[B": "down",
"[C": "right",
"[D": "left",
"[E": "clear",
"[F": "end",
"[H": "home",
/* xterm/gnome ESC O letter */
OA: "up",
OB: "down",
OC: "right",
OD: "left",
OE: "clear",
OF: "end",
OH: "home",
/* xterm/rxvt ESC [ number ~ */
"[1~": "home",
"[2~": "insert",
"[3~": "delete",
"[4~": "end",
"[5~": "pageup",
"[6~": "pagedown",
/* putty */
"[[5~": "pageup",
"[[6~": "pagedown",
/* rxvt */
"[7~": "home",
"[8~": "end",
/* rxvt keys with modifiers */
"[a": "up",
"[b": "down",
"[c": "right",
"[d": "left",
"[e": "clear",
"[2$": "insert",
"[3$": "delete",
"[5$": "pageup",
"[6$": "pagedown",
"[7$": "home",
"[8$": "end",
Oa: "up",
Ob: "down",
Oc: "right",
Od: "left",
Oe: "clear",
"[2^": "insert",
"[3^": "delete",
"[5^": "pageup",
"[6^": "pagedown",
"[7^": "home",
"[8^": "end",
/* misc. */
"[Z": "tab"
}, nonAlphanumericKeys = [...Object.values(keyName), "backspace"], isShiftKey = (code) => [
"[a",
"[b",
"[c",
"[d",
"[e",
"[2$",
"[3$",
"[5$",
"[6$",
"[7$",
"[8$",
"[Z"
].includes(code), isCtrlKey = (code) => [
"Oa",
"Ob",
"Oc",
"Od",
"Oe",
"[2^",
"[3^",
"[5^",
"[6^",
"[7^",
"[8^"
].includes(code), kittyKeyRe = /^\x1b\[(\d+)(?:;(\d+)(?::(\d+))?(?:;([\d:]+))?)?u$/, kittySpecialKeyRe = /^\x1b\[(\d+);(\d+):(\d+)([A-Za-z~])$/, kittySpecialLetterKeys = {
A: "up",
B: "down",
C: "right",
D: "left",
E: "clear",
F: "end",
H: "home",
P: "f1",
Q: "f2",
R: "f3",
S: "f4"
}, kittySpecialNumberKeys = {
2: "insert",
3: "delete",
5: "pageup",
6: "pagedown",
7: "home",
8: "end",
11: "f1",
12: "f2",
13: "f3",
14: "f4",
15: "f5",
17: "f6",
18: "f7",
19: "f8",
20: "f9",
21: "f10",
23: "f11",
24: "f12"
}, kittyCodepointNames = {
27: "escape",
// 13 (return) and 32 (space) are handled before this lookup
// in parseKittyKeypress so they can be marked as printable.
9: "tab",
127: "delete",
8: "backspace",
57358: "capslock",
57359: "scrolllock",
57360: "numlock",
57361: "printscreen",
57362: "pause",
57363: "menu",
57376: "f13",
57377: "f14",
57378: "f15",
57379: "f16",
57380: "f17",
57381: "f18",
57382: "f19",
57383: "f20",
57384: "f21",
57385: "f22",
57386: "f23",
57387: "f24",
57388: "f25",
57389: "f26",
57390: "f27",
57391: "f28",
57392: "f29",
57393: "f30",
57394: "f31",
57395: "f32",
57396: "f33",
57397: "f34",
57398: "f35",
57399: "kp0",
57400: "kp1",
57401: "kp2",
57402: "kp3",
57403: "kp4",
57404: "kp5",
57405: "kp6",
57406: "kp7",
57407: "kp8",
57408: "kp9",
57409: "kpdecimal",
57410: "kpdivide",
57411: "kpmultiply",
57412: "kpsubtract",
57413: "kpadd",
57414: "kpenter",
57415: "kpequal",
57416: "kpseparator",
57417: "kpleft",
57418: "kpright",
57419: "kpup",
57420: "kpdown",
57421: "kppageup",
57422: "kppagedown",
57423: "kphome",
57424: "kpend",
57425: "kpinsert",
57426: "kpdelete",
57427: "kpbegin",
57428: "mediaplay",
57429: "mediapause",
57430: "mediaplaypause",
57431: "mediareverse",
57432: "mediastop",
57433: "mediafastforward",
57434: "mediarewind",
57435: "mediatracknext",
57436: "mediatrackprevious",
57437: "mediarecord",
57438: "lowervolume",
57439: "raisevolume",
57440: "mutevolume",
57441: "leftshift",
57442: "leftcontrol",
57443: "leftalt",
57444: "leftsuper",
57445: "lefthyper",
57446: "leftmeta",
57447: "rightshift",
57448: "rightcontrol",
57449: "rightalt",
57450: "rightsuper",
57451: "righthyper",
57452: "rightmeta",
57453: "isoLevel3Shift",
57454: "isoLevel5Shift"
}, isValidCodepoint = (cp) => cp >= 0 && cp <= 1114111 && !(cp >= 55296 && cp <= 57343), safeFromCodePoint = (cp) => isValidCodepoint(cp) ? String.fromCodePoint(cp) : "?";
function resolveEventType(value) {
return value === 3 ? "release" : value === 2 ? "repeat" : "press";
}
function parseKittyModifiers(modifiers) {
return {
ctrl: !!(modifiers & kittyModifiers.ctrl),
shift: !!(modifiers & kittyModifiers.shift),
meta: !!(modifiers & kittyModifiers.meta),
option: !!(modifiers & kittyModifiers.alt),
super: !!(modifiers & kittyModifiers.super),
hyper: !!(modifiers & kittyModifiers.hyper),
capsLock: !!(modifiers & kittyModifiers.capsLock),
numLock: !!(modifiers & kittyModifiers.numLock)
};
}
var parseKittyKeypress = (s) => {
let match = kittyKeyRe.exec(s);
if (!match)
return null;
let codepoint = parseInt(match[1], 10), modifiers = match[2] ? Math.max(0, parseInt(match[2], 10) - 1) : 0, eventType = match[3] ? parseInt(match[3], 10) : 1, textField = match[4];
if (!isValidCodepoint(codepoint))
return null;
let text;
textField && (text = textField.split(":").map((cp) => safeFromCodePoint(parseInt(cp, 10))).join(""));
let name, isPrintable;
return codepoint === 32 ? (name = "space", isPrintable = !0) : codepoint === 13 ? (name = "return", isPrintable = !0) : kittyCodepointNames[codepoint] ? (name = kittyCodepointNames[codepoint], isPrintable = !1) : codepoint >= 1 && codepoint <= 26 ? (name = String.fromCodePoint(codepoint + 96), isPrintable = !1) : (name = safeFromCodePoint(codepoint).toLowerCase(), isPrintable = !0), isPrintable && !text && (text = safeFromCodePoint(codepoint)), {
name,
...parseKittyModifiers(modifiers),
eventType: resolveEventType(eventType),
sequence: s,
raw: s,
isKittyProtocol: !0,
isPrintable,
text
};
}, parseKittySpecialKey = (s) => {
let match = kittySpecialKeyRe.exec(s);
if (!match)
return null;
let number = parseInt(match[1], 10), modifiers = Math.max(0, parseInt(match[2], 10) - 1), eventType = parseInt(match[3], 10), terminator = match[4], name = terminator === "~" ? kittySpecialNumberKeys[number] : kittySpecialLetterKeys[terminator];
return name ? {
name,
...parseKittyModifiers(modifiers),
eventType: resolveEventType(eventType),
sequence: s,
raw: s,
isKittyProtocol: !0,
isPrintable: !1
} : null;
}, parseKeypress = (s = "") => {
let parts;
Buffer2.isBuffer(s) ? s[0] > 127 && s[1] === void 0 ? (s[0] -= 128, s = "\x1B" + String(s)) : s = String(s) : s !== void 0 && typeof s != "string" ? s = String(s) : s || (s = "");
let kittyResult = parseKittyKeypress(s);
if (kittyResult)
return kittyResult;
let kittySpecialResult = parseKittySpecialKey(s);
if (kittySpecialResult)
return kittySpecialResult;
if (kittyKeyRe.test(s))
return {
name: "",
ctrl: !1,
meta: !1,
shift: !1,
option: !1,
sequence: s,
raw: s,
isKittyProtocol: !0,
isPrintable: !1
};
let key = {
name: "",
ctrl: !1,
meta: !1,
shift: !1,
option: !1,
sequence: s,
raw: s
};
if (key.sequence = key.sequence || s || key.name, s === "\r" || s === "\x1B\r")
key.raw = void 0, key.name = "return", key.option = s.length === 2;
else if (s === `
`)
key.name = "enter";
else if (s === " ")
key.name = "tab";
else if (s === "\b" || s === "\x1B\b")
key.name = "backspace", key.meta = s.charAt(0) === "\x1B";
else if (s === "\x7F" || s === "\x1B\x7F")
key.name = "delete", key.meta = s.charAt(0) === "\x1B";
else if (s === "\x1B" || s === "\x1B\x1B")
key.name = "escape", key.meta = s.length === 2;
else if (s === " " || s === "\x1B ")
key.name = "space", key.meta = s.length === 2;
else if (s.length === 1 && s <= "")
key.name = String.fromCharCode(s.charCodeAt(0) + 97 - 1), key.ctrl = !0;
else if (s.length === 1 && s >= "0" && s <= "9")
key.name = "number";
else if (s.length === 1 && s >= "a" && s <= "z")
key.name = s;
else if (s.length === 1 && s >= "A" && s <= "Z")
key.name = s.toLowerCase(), key.shift = !0;
else if (parts = metaKeyCodeRe.exec(s))
key.meta = !0, key.shift = /^[A-Z]$/.test(parts[1]);
else if (parts = fnKeyRe.exec(s)) {
let segs = [...s];
segs[0] === "\x1B" && segs[1] === "\x1B" && (key.option = !0);
let code = [parts[1], parts[2], parts[4], parts[6]].filter(Boolean).join(""), modifier = (parts[3] || parts[5] || 1) - 1;
key.ctrl = !!(modifier & 4), key.meta = !!(modifier & 10), key.shift = !!(modifier & 1), key.code = code, key.name = keyName[code], key.shift = isShiftKey(code) || key.shift, key.ctrl = isCtrlKey(code) || key.ctrl;
}
return key;
}, parse_keypress_default = parseKeypress;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/hooks/use-stdin.js
init_cjs_shims();
var import_react20 = __toESM(require_react(), 1);
var useStdin = () => (0, import_react20.useContext)(StdinContext_default), use_stdin_default = useStdin;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/hooks/use-input.js
var useInput = (inputHandler, options = {}) => {
let { stdin, setRawMode, internal_exitOnCtrlC, internal_eventEmitter } = use_stdin_default();
(0, import_react21.useEffect)(() => {
if (options.isActive !== !1)
return setRawMode(!0), () => {
setRawMode(!1);
};
}, [options.isActive, setRawMode]), (0, import_react21.useEffect)(() => {
if (options.isActive === !1)
return;
let handleData = (data) => {
let keypress2 = parse_keypress_default(data), key = {
upArrow: keypress2.name === "up",
downArrow: keypress2.name === "down",
leftArrow: keypress2.name === "left",
rightArrow: keypress2.name === "right",
pageDown: keypress2.name === "pagedown",
pageUp: keypress2.name === "pageup",
home: keypress2.name === "home",
end: keypress2.name === "end",
return: keypress2.name === "return",
escape: keypress2.name === "escape",
ctrl: keypress2.ctrl,
shift: keypress2.shift,
tab: keypress2.name === "tab",
backspace: keypress2.name === "backspace",
delete: keypress2.name === "delete",
// `parseKeypress` parses \u001B\u001B[A (meta + up arrow) as meta = false
// but with option = true, so we need to take this into account here
// to avoid breaking changes in Ink.
// TODO(vadimdemedes): consider removing this in the next major version.
meta: keypress2.meta || keypress2.name === "escape" || keypress2.option,
// Kitty keyboard protocol modifiers
super: keypress2.super ?? !1,
hyper: keypress2.hyper ?? !1,
capsLock: keypress2.capsLock ?? !1,
numLock: keypress2.numLock ?? !1,
eventType: keypress2.eventType
}, input;
keypress2.isKittyProtocol ? keypress2.isPrintable ? input = keypress2.text ?? keypress2.name : keypress2.ctrl && keypress2.name.length === 1 ? input = keypress2.name : input = "" : keypress2.ctrl ? input = keypress2.name : input = keypress2.sequence, !keypress2.isKittyProtocol && nonAlphanumericKeys.includes(keypress2.name) && (input = ""), input.startsWith("\x1B") && (input = input.slice(1)), input.length === 1 && typeof input[0] == "string" && /[A-Z]/.test(input[0]) && (key.shift = !0), (!(input === "c" && key.ctrl) || !internal_exitOnCtrlC) && reconciler_default.batchedUpdates(() => {
inputHandler(input, key);
});
};
return internal_eventEmitter?.on("input", handleData), () => {
internal_eventEmitter?.removeListener("input", handleData);
};
}, [options.isActive, stdin, internal_exitOnCtrlC, inputHandler]);
}, use_input_default = useInput;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/hooks/use-app.js
init_cjs_shims();
var import_react22 = __toESM(require_react(), 1);
var useApp = () => (0, import_react22.useContext)(AppContext_default), use_app_default = useApp;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/hooks/use-stdout.js
init_cjs_shims();
var import_react23 = __toESM(require_react(), 1);
var useStdout = () => (0, import_react23.useContext)(StdoutContext_default), use_stdout_default = useStdout;
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/hooks/use-stderr.js
init_cjs_shims();
var import_react24 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/hooks/use-focus.js
init_cjs_shims();
var import_react25 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/hooks/use-focus-manager.js
init_cjs_shims();
var import_react26 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js
init_cjs_shims();
var import_react27 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/hooks/use-cursor.js
init_cjs_shims();
var import_react28 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/ink@6.8.0_@types+react@18.3.12_react@19.2.4/node_modules/ink/build/measure-element.js
init_cjs_shims();
var measureElement = (node) => ({
width: node.yogaNode?.getComputedWidth() ?? 0,
height: node.yogaNode?.getComputedHeight() ?? 0
}), measure_element_default = measureElement;
// ../cli-kit/dist/private/node/ui.js
import { EventEmitter as EventEmitter3 } from "events";
var CompletionContext = (0, import_react29.createContext)(null);
function useComplete() {
let complete = (0, import_react29.useContext)(CompletionContext);
if (!complete)
throw new Error("useComplete() called outside InkLifecycleRoot");
return complete;
}
function InkLifecycleRoot({ children }) {
let { exit } = use_app_default(), [exitResult, setExitResult] = (0, import_react29.useState)(null), complete = (0, import_react29.useCallback)((error) => {
setExitResult({ error });
}, []);
return (0, import_react29.useEffect)(() => {
exitResult !== null && exit(exitResult.error);
}, [exitResult, exit]), import_react29.default.createElement(CompletionContext.Provider, { value: complete }, children);
}
function renderOnce(element, { logLevel = "info", renderOptions }) {
let { output: renderedString, unmount } = renderString(element, renderOptions);
return renderedString && output(renderedString, logLevel), unmount(), renderedString;
}
async function render2(element, options) {
let { waitUntilExit } = render_default(import_react29.default.createElement(InkLifecycleRoot, null, element), {
patchConsole: !isUnitTest(),
...options
});
await waitUntilExit();
}
var Stdout = class extends EventEmitter3 {
columns;
rows;
frames = [];
_lastFrame;
constructor(options) {
super(), this.columns = options.columns ?? 80, this.rows = options.rows ?? 80;
}
write = (frame) => {
this.frames.push(frame), frame !== `
` && (this._lastFrame = frame);
};
lastFrame = () => this._lastFrame;
}, renderString = (element, renderOptions) => {
let columns = isUnitTest() ? 80 : process.stdout.columns, stdout = renderOptions?.stdout ?? new Stdout({ columns }), instance = render_default(element, {
stdout,
debug: !0,
exitOnCtrlC: !1,
patchConsole: !1
});
return {
output: stdout.lastFrame(),
unmount: instance.unmount
};
};
function handleCtrlC(input, key, exit = () => {
treeKill(process.pid, "SIGINT");
}) {
input === "c" && key.ctrl && exit();
}
// ../cli-kit/dist/private/node/ui/components/ConcurrentOutput.js
var import_react30 = __toESM(require_react(), 1);
// ../../node_modules/.pnpm/figures@5.0.0/node_modules/figures/index.js
init_cjs_shims();
import process14 from "node:process";
// ../../node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/is-unicode-supported@1.3.0/node_modules/is-unicode-supported/index.js
init_cjs_shims();
import process13 from "node:process";
function isUnicodeSupported() {
return process13.platform !== "win32" ? process13.env.TERM !== "linux" : !!process13.env.CI || !!process13.env.WT_SESSION || !!process13.env.TERMINUS_SUBLIME || process13.env.ConEmuTask === "{cmd::Cmder}" || process13.env.TERM_PROGRAM === "Terminus-Sublime" || process13.env.TERM_PROGRAM === "vscode" || process13.env.TERM === "xterm-256color" || process13.env.TERM === "alacritty" || process13.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
}
// ../../node_modules/.pnpm/figures@5.0.0/node_modules/figures/index.js
var { platform: platform2 } = process14, common = {
square: "\u2588",
squareDarkShade: "\u2593",
squareMediumShade: "\u2592",
squareLightShade: "\u2591",
squareTop: "\u2580",
squareBottom: "\u2584",
squareLeft: "\u258C",
squareRight: "\u2590",
squareCenter: "\u25A0",
bullet: "\u25CF",
dot: "\u2024",
ellipsis: "\u2026",
pointerSmall: "\u203A",
triangleUp: "\u25B2",
triangleUpSmall: "\u25B4",
triangleDown: "\u25BC",
triangleDownSmall: "\u25BE",
triangleLeftSmall: "\u25C2",
triangleRightSmall: "\u25B8",
home: "\u2302",
heart: "\u2665",
musicNote: "\u266A",
musicNoteBeamed: "\u266B",
arrowUp: "\u2191",
arrowDown: "\u2193",
arrowLeft: "\u2190",
arrowRight: "\u2192",
arrowLeftRight: "\u2194",
arrowUpDown: "\u2195",
almostEqual: "\u2248",
notEqual: "\u2260",
lessOrEqual: "\u2264",
greaterOrEqual: "\u2265",
identical: "\u2261",
infinity: "\u221E",
subscriptZero: "\u2080",
subscriptOne: "\u2081",
subscriptTwo: "\u2082",
subscriptThree: "\u2083",
subscriptFour: "\u2084",
subscriptFive: "\u2085",
subscriptSix: "\u2086",
subscriptSeven: "\u2087",
subscriptEight: "\u2088",
subscriptNine: "\u2089",
oneHalf: "\xBD",
oneThird: "\u2153",
oneQuarter: "\xBC",
oneFifth: "\u2155",
oneSixth: "\u2159",
oneEighth: "\u215B",
twoThirds: "\u2154",
twoFifths: "\u2156",
threeQuarters: "\xBE",
threeFifths: "\u2157",
threeEighths: "\u215C",
fourFifths: "\u2158",
fiveSixths: "\u215A",
fiveEighths: "\u215D",
sevenEighths: "\u215E",
line: "\u2500",
lineBold: "\u2501",
lineDouble: "\u2550",
lineDashed0: "\u2504",
lineDashed1: "\u2505",
lineDashed2: "\u2508",
lineDashed3: "\u2509",
lineDashed4: "\u254C",
lineDashed5: "\u254D",
lineDashed6: "\u2574",
lineDashed7: "\u2576",
lineDashed8: "\u2578",
lineDashed9: "\u257A",
lineDashed10: "\u257C",
lineDashed11: "\u257E",
lineDashed12: "\u2212",
lineDashed13: "\u2013",
lineDashed14: "\u2010",
lineDashed15: "\u2043",
lineVertical: "\u2502",
lineVerticalBold: "\u2503",
lineVerticalDouble: "\u2551",
lineVerticalDashed0: "\u2506",
lineVerticalDashed1: "\u2507",
lineVerticalDashed2: "\u250A",
lineVerticalDashed3: "\u250B",
lineVerticalDashed4: "\u254E",
lineVerticalDashed5: "\u254F",
lineVerticalDashed6: "\u2575",
lineVerticalDashed7: "\u2577",
lineVerticalDashed8: "\u2579",
lineVerticalDashed9: "\u257B",
lineVerticalDashed10: "\u257D",
lineVerticalDashed11: "\u257F",
lineDownLeft: "\u2510",
lineDownLeftArc: "\u256E",
lineDownBoldLeftBold: "\u2513",
lineDownBoldLeft: "\u2512",
lineDownLeftBold: "\u2511",
lineDownDoubleLeftDouble: "\u2557",
lineDownDoubleLeft: "\u2556",
lineDownLeftDouble: "\u2555",
lineDownRight: "\u250C",
lineDownRightArc: "\u256D",
lineDownBoldRightBold: "\u250F",
lineDownBoldRight: "\u250E",
lineDownRightBold: "\u250D",
lineDownDoubleRightDouble: "\u2554",
lineDownDoubleRight: "\u2553",
lineDownRightDouble: "\u2552",
lineUpLeft: "\u2518",
lineUpLeftArc: "\u256F",
lineUpBoldLeftBold: "\u251B",
lineUpBoldLeft: "\u251A",
lineUpLeftBold: "\u2519",
lineUpDoubleLeftDouble: "\u255D",
lineUpDoubleLeft: "\u255C",
lineUpLeftDouble: "\u255B",
lineUpRight: "\u2514",
lineUpRightArc: "\u2570",
lineUpBoldRightBold: "\u2517",
lineUpBoldRight: "\u2516",
lineUpRightBold: "\u2515",
lineUpDoubleRightDouble: "\u255A",
lineUpDoubleRight: "\u2559",
lineUpRightDouble: "\u2558",
lineUpDownLeft: "\u2524",
lineUpBoldDownBoldLeftBold: "\u252B",
lineUpBoldDownBoldLeft: "\u2528",
lineUpDownLeftBold: "\u2525",
lineUpBoldDownLeftBold: "\u2529",
lineUpDownBoldLeftBold: "\u252A",
lineUpDownBoldLeft: "\u2527",
lineUpBoldDownLeft: "\u2526",
lineUpDoubleDownDoubleLeftDouble: "\u2563",
lineUpDoubleDownDoubleLeft: "\u2562",
lineUpDownLeftDouble: "\u2561",
lineUpDownRight: "\u251C",
lineUpBoldDownBoldRightBold: "\u2523",
lineUpBoldDownBoldRight: "\u2520",
lineUpDownRightBold: "\u251D",
lineUpBoldDownRightBold: "\u2521",
lineUpDownBoldRightBold: "\u2522",
lineUpDownBoldRight: "\u251F",
lineUpBoldDownRight: "\u251E",
lineUpDoubleDownDoubleRightDouble: "\u2560",
lineUpDoubleDownDoubleRight: "\u255F",
lineUpDownRightDouble: "\u255E",
lineDownLeftRight: "\u252C",
lineDownBoldLeftBoldRightBold: "\u2533",
lineDownLeftBoldRightBold: "\u252F",
lineDownBoldLeftRight: "\u2530",
lineDownBoldLeftBoldRight: "\u2531",
lineDownBoldLeftRightBold: "\u2532",
lineDownLeftRightBold: "\u252E",
lineDownLeftBoldRight: "\u252D",
lineDownDoubleLeftDoubleRightDouble: "\u2566",
lineDownDoubleLeftRight: "\u2565",
lineDownLeftDoubleRightDouble: "\u2564",
lineUpLeftRight: "\u2534",
lineUpBoldLeftBoldRightBold: "\u253B",
lineUpLeftBoldRightBold: "\u2537",
lineUpBoldLeftRight: "\u2538",
lineUpBoldLeftBoldRight: "\u2539",
lineUpBoldLeftRightBold: "\u253A",
lineUpLeftRightBold: "\u2536",
lineUpLeftBoldRight: "\u2535",
lineUpDoubleLeftDoubleRightDouble: "\u2569",
lineUpDoubleLeftRight: "\u2568",
lineUpLeftDoubleRightDouble: "\u2567",
lineUpDownLeftRight: "\u253C",
lineUpBoldDownBoldLeftBoldRightBold: "\u254B",
lineUpDownBoldLeftBoldRightBold: "\u2548",
lineUpBoldDownLeftBoldRightBold: "\u2547",
lineUpBoldDownBoldLeftRightBold: "\u254A",
lineUpBoldDownBoldLeftBoldRight: "\u2549",
lineUpBoldDownLeftRight: "\u2540",
lineUpDownBoldLeftRight: "\u2541",
lineUpDownLeftBoldRight: "\u253D",
lineUpDownLeftRightBold: "\u253E",
lineUpBoldDownBoldLeftRight: "\u2542",
lineUpDownLeftBoldRightBold: "\u253F",
lineUpBoldDownLeftBoldRight: "\u2543",
lineUpBoldDownLeftRightBold: "\u2544",
lineUpDownBoldLeftBoldRight: "\u2545",
lineUpDownBoldLeftRightBold: "\u2546",
lineUpDoubleDownDoubleLeftDoubleRightDouble: "\u256C",
lineUpDoubleDownDoubleLeftRight: "\u256B",
lineUpDownLeftDoubleRightDouble: "\u256A",
lineCross: "\u2573",
lineBackslash: "\u2572",
lineSlash: "\u2571"
}, mainSymbols = {
...common,
// The main symbols for those do not look that good on Ubuntu.
...platform2 === "linux" ? {
circleQuestionMark: "?\u20DD",
questionMarkPrefix: "?\u20DD"
} : {
circleQuestionMark: "?",
questionMarkPrefix: "?"
},
tick: "\u2714",
info: "\u2139",
warning: "\u26A0",
cross: "\u2718",
squareSmall: "\u25FB",
squareSmallFilled: "\u25FC",
circle: "\u25EF",
circleFilled: "\u25C9",
circleDotted: "\u25CC",
circleDouble: "\u25CE",
circleCircle: "\u24DE",
circleCross: "\u24E7",
circlePipe: "\u24BE",
radioOn: "\u25C9",
radioOff: "\u25EF",
checkboxOn: "\u2612",
checkboxOff: "\u2610",
checkboxCircleOn: "\u24E7",
checkboxCircleOff: "\u24BE",
pointer: "\u276F",
triangleUpOutline: "\u25B3",
triangleLeft: "\u25C0",
triangleRight: "\u25B6",
lozenge: "\u25C6",
lozengeOutline: "\u25C7",
hamburger: "\u2630",
smiley: "\u32E1",
mustache: "\u0DF4",
star: "\u2605",
play: "\u25B6",
nodejs: "\u2B22",
oneSeventh: "\u2150",
oneNinth: "\u2151",
oneTenth: "\u2152"
}, fallbackSymbols = {
...common,
tick: "\u221A",
info: "i",
warning: "\u203C",
cross: "\xD7",
squareSmall: "\u25A1",
squareSmallFilled: "\u25A0",
circle: "( )",
circleFilled: "(*)",
circleDotted: "( )",
circleDouble: "( )",
circleCircle: "(\u25CB)",
circleCross: "(\xD7)",
circlePipe: "(\u2502)",
circleQuestionMark: "(?)",
radioOn: "(*)",
radioOff: "( )",
checkboxOn: "[\xD7]",
checkboxOff: "[ ]",
checkboxCircleOn: "(\xD7)",
checkboxCircleOff: "( )",
questionMarkPrefix: "\uFF1F",
pointer: ">",
triangleUpOutline: "\u2206",
triangleLeft: "\u25C4",
triangleRight: "\u25BA",
lozenge: "\u2666",
lozengeOutline: "\u25CA",
hamburger: "\u2261",
smiley: "\u263A",
mustache: "\u250C\u2500\u2510",
star: "\u2736",
play: "\u25BA",
nodejs: "\u2666",
oneSeventh: "1/7",
oneNinth: "1/9",
oneTenth: "1/10"
}, shouldUseMain = isUnicodeSupported(), figures = shouldUseMain ? mainSymbols : fallbackSymbols, figures_default = figures;
// ../cli-kit/dist/private/node/ui/components/ConcurrentOutput.js
import { Writable } from "stream";
import { AsyncLocalStorage } from "node:async_hooks";
function addLeadingZero(number) {
return number < 10 ? `0${number}` : number.toString();
}
function currentTime() {
let currentDateTime = /* @__PURE__ */ new Date(), hours = addLeadingZero(currentDateTime.getHours()), minutes = addLeadingZero(currentDateTime.getMinutes()), seconds = addLeadingZero(currentDateTime.getSeconds());
return `${hours}:${minutes}:${seconds}`;
}
var outputContextStore = new AsyncLocalStorage();
function useConcurrentOutputContext(context, callback) {
return outputContextStore.run(context, callback);
}
var ConcurrentOutput = ({ processes, prefixColumnSize, abortSignal, showTimestamps = !0, keepRunningAfterProcessesResolve = !1, useAlternativeColorPalette = !1 }) => {
let [processOutput, setProcessOutput] = (0, import_react30.useState)([]), [completionResult, setCompletionResult] = (0, import_react30.useState)(null), complete = useComplete(), concurrentColors = (0, import_react30.useMemo)(() => useAlternativeColorPalette ? ["#b994c3", "#e69e19", "#d17a73", "cyan", "magenta", "blue"] : ["yellow", "cyan", "magenta", "green", "blue"], [useAlternativeColorPalette]), calculatedPrefixColumnSize = (0, import_react30.useMemo)(() => {
let columnSize = prefixColumnSize ?? processes.reduce((maxPrefixLength, process15) => Math.max(maxPrefixLength, process15.prefix.length), 0);
return Math.min(columnSize, 25);
}, [processes, prefixColumnSize]), addPrefix = (prefix, prefixes) => {
let index = prefixes.indexOf(prefix);
return index !== -1 ? index : (prefixes.push(prefix), prefixes.length - 1);
}, lineColor = (0, import_react30.useCallback)((index) => {
let colorIndex = index % concurrentColors.length;
return concurrentColors[colorIndex];
}, [concurrentColors]), writableStream = (0, import_react30.useCallback)((process15, prefixes) => new Writable({
write(chunk, _encoding, next) {
let context = outputContextStore.getStore(), prefix = context?.outputPrefix ?? process15.prefix, shouldStripAnsi = context?.stripAnsi ?? !0, log = chunk.toString("utf8").replace(/(\n)$/, ""), index = addPrefix(prefix, prefixes), lines = shouldStripAnsi ? stripAnsi(log).split(/\n/) : log.split(/\n/);
setProcessOutput((previousProcessOutput) => [
...previousProcessOutput,
{
color: lineColor(index),
prefix,
lines
}
]), next();
}
}), [lineColor]), formatPrefix = (prefix) => prefix.length > calculatedPrefixColumnSize ? prefix.substring(0, calculatedPrefixColumnSize) : `${" ".repeat(calculatedPrefixColumnSize - prefix.length)}${prefix}`;
(0, import_react30.useEffect)(() => {
(async () => {
let prefixes = [];
try {
await Promise.all(processes.map(async (process15) => {
let stdout = writableStream(process15, prefixes), stderr = writableStream(process15, prefixes);
await process15.action(stdout, stderr, abortSignal);
})), keepRunningAfterProcessesResolve || setCompletionResult({});
} catch (error) {
keepRunningAfterProcessesResolve || setCompletionResult({ error });
}
})();
}, [abortSignal, processes, writableStream, keepRunningAfterProcessesResolve]), (0, import_react30.useEffect)(() => {
completionResult !== null && complete(completionResult.error);
}, [completionResult, complete]);
let { lineVertical } = figures_default;
return import_react30.default.createElement(Static, { items: processOutput }, (chunk, index) => import_react30.default.createElement(Box_default, { flexDirection: "column", key: index }, chunk.lines.map((line, index2) => import_react30.default.createElement(
Box_default,
{ key: index2, flexDirection: "row" },
import_react30.default.createElement(
Text,
null,
showTimestamps ? import_react30.default.createElement(
Text,
null,
currentTime(),
" ",
lineVertical,
" "
) : null,
import_react30.default.createElement(Text, { color: chunk.color }, formatPrefix(chunk.prefix)),
import_react30.default.createElement(
Text,
null,
" ",
lineVertical,
" ",
line
)
)
))));
};
// ../cli-kit/dist/private/node/ui/alert.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/Alert.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/Banner.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/hooks/use-layout.js
init_cjs_shims();
var import_react31 = __toESM(require_react(), 1), MIN_FULL_WIDTH = 20, MIN_FRACTION_WIDTH = 80;
function useLayout() {
let { stdout } = use_stdout_default(), [layout, setLayout] = (0, import_react31.useState)(calculateLayout(stdout));
return (0, import_react31.useLayoutEffect)(() => {
if (!stdout)
return;
function onResize() {
setLayout(calculateLayout(stdout));
}
return stdout.on("resize", onResize), () => {
stdout.off("resize", onResize);
};
}, []), layout;
}
function calculateLayout(stdout) {
let fullWidth = stdout?.columns ?? MIN_FRACTION_WIDTH, oneThird = fullWidth, twoThirds = fullWidth;
return fullWidth <= MIN_FULL_WIDTH ? (fullWidth = MIN_FULL_WIDTH, oneThird = MIN_FULL_WIDTH, twoThirds = MIN_FULL_WIDTH) : fullWidth > MIN_FRACTION_WIDTH && (oneThird = column({ fullWidth, fraction: [1, 3], minWidth: MIN_FRACTION_WIDTH }), twoThirds = column({ fullWidth, fraction: [2, 3], minWidth: MIN_FRACTION_WIDTH })), {
fullWidth,
oneThird,
twoThirds
};
}
function column({ fullWidth, fraction, minWidth }) {
let fractionedWidth = Math.floor(fullWidth / fraction[1] * fraction[0]);
return fractionedWidth < minWidth ? minWidth : fractionedWidth;
}
// ../cli-kit/dist/private/node/ui/contexts/LinksContext.js
init_cjs_shims();
var import_react32 = __toESM(require_react(), 1), LinksContext = import_react32.default.createContext(null);
// ../cli-kit/dist/private/node/ui/components/Banner.js
var import_react33 = __toESM(require_react(), 1);
function typeToColor(type) {
return {
success: "green",
error: "red",
warning: "yellow",
info: "dim",
external_error: "red"
}[type];
}
var Footnotes = () => {
let linksContext = (0, import_react33.useContext)(LinksContext);
if (linksContext === null || linksContext.links.current === null)
return null;
let links = linksContext.links.current, linkIds = Object.keys(links);
return linkIds.length > 0 ? import_react33.default.createElement(Box_default, { marginBottom: 1, marginTop: -1, flexDirection: "column" }, linkIds.map((id) => {
let line = `[${id}] ${links[id]?.url}`;
return import_react33.default.createElement(
Box_default,
{ key: id, width: line.length },
import_react33.default.createElement(Text, null, line)
);
})) : null;
}, BoxWithBorder = ({ type, children }) => {
let { twoThirds } = useLayout(), links = (0, import_react33.useRef)({});
return import_react33.default.createElement(
LinksContext.Provider,
{ value: {
links,
addLink: (label, url) => {
let id = Object.keys(links.current).find((id2) => links.current[id2].url === url);
if (id)
return id;
let newId = (Object.keys(links.current).length + 1).toString();
return links.current = {
...links.current,
[newId]: { label, url }
}, newId;
}
} },
import_react33.default.createElement(
Box_default,
{ width: twoThirds, marginBottom: 1, borderStyle: "round", flexDirection: "column", borderColor: typeToColor(type) },
import_react33.default.createElement(
Box_default,
{ marginTop: -1, marginLeft: 1 },
import_react33.default.createElement(Text, null, ` ${type.replace(/_/g, " ")} `)
),
import_react33.default.createElement(Box_default, { flexDirection: "column", paddingY: 1, paddingX: 2, gap: 1 }, children)
),
import_react33.default.createElement(Footnotes, null)
);
}, BoxWithTopBottomLines = ({ type, children }) => {
let { twoThirds } = useLayout(), topLineAfterTypeLength = twoThirds - 2 - type.length - 2;
return topLineAfterTypeLength < 0 && (topLineAfterTypeLength = 0), import_react33.default.createElement(
Box_default,
{ flexDirection: "column", marginBottom: 1, gap: 1 },
import_react33.default.createElement(
Text,
null,
import_react33.default.createElement(Text, { color: typeToColor(type) }, "\u2500".repeat(2)),
import_react33.default.createElement(Text, null, ` ${type.replace(/_/g, " ")} `),
import_react33.default.createElement(Text, { color: typeToColor(type) }, "\u2500".repeat(topLineAfterTypeLength))
),
children,
import_react33.default.createElement(Text, { color: typeToColor(type) }, "\u2500".repeat(twoThirds))
);
}, Banner = ({ children, ...props }) => props.type === "external_error" ? import_react33.default.createElement(BoxWithTopBottomLines, props, children) : import_react33.default.createElement(BoxWithBorder, props, children);
// ../cli-kit/dist/private/node/ui/components/Link.js
init_cjs_shims();
var import_react34 = __toESM(require_react(), 1);
var import_supports_hyperlinks2 = __toESM(require_supports_hyperlinks(), 1);
function link2(label, url, linksContext) {
if (!import_supports_hyperlinks2.default.stdout) {
if (linksContext === null)
return url === (label ?? url) ? url : label ? `${label} ${source_default.dim(`( ${url} )`)}` : url;
let linkId = linksContext.addLink(label, url);
return label ? `${label} [${linkId}]` : `[${linkId}]`;
}
return ansi_escapes_default.link(label ?? url, url);
}
var Link = ({ label, url }) => {
let linksContext = (0, import_react34.useContext)(LinksContext);
return import_react34.default.createElement(Text, null, link2(label, url, linksContext));
};
// ../cli-kit/dist/private/node/ui/components/List.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/TokenizedText.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/Command.js
init_cjs_shims();
var import_react35 = __toESM(require_react(), 1), Command = ({ command }) => import_react35.default.createElement(
Text,
{ color: "magentaBright" },
"`",
command,
"`"
);
// ../cli-kit/dist/private/node/ui/components/UserInput.js
init_cjs_shims();
var import_react36 = __toESM(require_react(), 1), UserInput = ({ userInput }) => import_react36.default.createElement(Text, { color: "cyan" }, userInput);
// ../cli-kit/dist/private/node/ui/components/FilePath.js
init_cjs_shims();
var import_react37 = __toESM(require_react(), 1), FilePath = ({ filePath }) => import_react37.default.createElement(Text, { italic: !0 }, filePath);
// ../cli-kit/dist/private/node/ui/components/Subdued.js
init_cjs_shims();
var import_react38 = __toESM(require_react(), 1), Subdued = ({ subdued }) => import_react38.default.createElement(Text, { dimColor: !0 }, subdued);
// ../cli-kit/dist/private/node/ui/components/TokenizedText.js
var import_react39 = __toESM(require_react(), 1);
function tokenToBlock(token) {
return {
display: typeof token != "string" && "list" in token ? "block" : "inline",
value: token
};
}
function splitByDisplayType(acc, item) {
if (item.display === "block")
acc.push([item]);
else {
let last = acc[acc.length - 1];
last && last[0].display === "inline" ? last.push(item) : acc.push([item]);
}
return acc;
}
var InlineBlocks = ({ blocks }) => import_react39.default.createElement(Text, null, blocks.map((block, blockIndex) => import_react39.default.createElement(
Text,
{ key: blockIndex },
blockIndex !== 0 && !(typeof block.value != "string" && "char" in block.value) && import_react39.default.createElement(Text, null, " "),
import_react39.default.createElement(TokenizedText, { item: block.value })
))), MARKDOWN_LINK_REGEX = /\[([^[\]]+)\]\((https?:\/\/[^()<>\s]+)\)|<(https?:\/\/[^<>\s]+)>/g;
function renderStringWithMarkdownLinks(str) {
let matches = Array.from(str.matchAll(MARKDOWN_LINK_REGEX));
if (matches.length === 0)
return import_react39.default.createElement(Text, null, str);
let parts = [], cursor = 0;
return matches.forEach((match, index) => {
let start = match.index;
if (start === void 0)
return;
let end = start + match[0].length;
start > cursor && parts.push(import_react39.default.createElement(Text, { key: `t${index}` }, str.slice(cursor, start)));
let label = match[1], url = match[2] ?? match[3];
url !== void 0 && (parts.push(import_react39.default.createElement(Link, { key: `l${index}`, label, url })), cursor = end);
}), cursor < str.length && parts.push(import_react39.default.createElement(Text, { key: "tail" }, str.slice(cursor))), import_react39.default.createElement(Text, null, parts);
}
var TokenizedText = ({ item }) => {
let linksContext = (0, import_react39.useContext)(LinksContext);
if (typeof item == "string")
return linksContext === null ? import_react39.default.createElement(Text, null, item) : renderStringWithMarkdownLinks(item);
if ("command" in item)
return import_react39.default.createElement(Command, { command: item.command });
if ("link" in item)
return import_react39.default.createElement(Link, { ...item.link });
if ("char" in item)
return import_react39.default.createElement(Text, null, item.char[0]);
if ("userInput" in item)
return import_react39.default.createElement(UserInput, { userInput: item.userInput });
if ("subdued" in item)
return import_react39.default.createElement(Subdued, { subdued: item.subdued });
if ("filePath" in item)
return import_react39.default.createElement(FilePath, { filePath: item.filePath });
if ("list" in item)
return import_react39.default.createElement(List, { ...item.list });
if ("bold" in item)
return import_react39.default.createElement(Text, { bold: !0 }, item.bold);
if ("info" in item)
return import_react39.default.createElement(Text, { color: "blue" }, item.info);
if ("warn" in item)
return import_react39.default.createElement(Text, { color: "yellow" }, item.warn);
if ("error" in item)
return import_react39.default.createElement(Text, { color: "red" }, item.error);
{
let groupedItems = item.map(tokenToBlock).reduce(splitByDisplayType, []);
return groupedItems.length === 1 && groupedItems[0].every((item2) => item2.display === "inline") ? import_react39.default.createElement(InlineBlocks, { blocks: groupedItems[0] }) : import_react39.default.createElement(Box_default, { flexDirection: "column" }, groupedItems.map((items, groupIndex) => items[0].display === "inline" ? import_react39.default.createElement(InlineBlocks, { blocks: items, key: groupIndex }) : import_react39.default.createElement(List, { key: groupIndex, ...items[0].value.list })));
}
};
// ../cli-kit/dist/private/node/ui/components/List.js
var import_react40 = __toESM(require_react(), 1), DOT = "\u2022", List = ({ title, items, margin = !0, ordered = !1, color, bullet = DOT }) => {
function isCustomListItem(item) {
return item.item !== void 0;
}
function resolveListItem(item, index) {
let resolvedItem = {
index,
color,
bullet,
ordered,
item
};
return isCustomListItem(item) ? {
...resolvedItem,
...item
} : resolvedItem;
}
let ListItem = ({ item, color: color2, bullet: bullet2, index, ordered: ordered2 }) => import_react40.default.createElement(
Box_default,
{ key: index, marginLeft: margin ? 2 : 0 },
import_react40.default.createElement(Text, { color: color2 }, ordered2 ? `${index + 1}.` : bullet2),
import_react40.default.createElement(
Box_default,
{ flexGrow: 1, marginLeft: 1 },
import_react40.default.createElement(
Text,
{ color: color2 },
import_react40.default.createElement(TokenizedText, { item })
)
)
);
return import_react40.default.createElement(
Box_default,
{ flexDirection: "column" },
title ? import_react40.default.createElement(
Text,
{ color },
import_react40.default.createElement(TokenizedText, { item: title })
) : null,
items.map(resolveListItem).map(({ index, item, color: color2, bullet: bullet2, ordered: ordered2 }) => import_react40.default.createElement(ListItem, { key: index, item, color: color2, bullet: bullet2, index, ordered: ordered2 }))
);
};
// ../cli-kit/dist/private/node/ui/components/TabularData.js
init_cjs_shims();
var import_react41 = __toESM(require_react(), 1), TabularData = ({ tabularData: data, firstColumnSubdued }) => {
let columnWidths = data.reduce((acc, row) => (row.forEach((cell, index) => {
acc[index] = Math.max(acc[index] ?? 0, unstyled(tokenItemToString(cell)).length);
}), acc), []);
return import_react41.default.createElement(Box_default, { flexDirection: "column" }, data.map((row, index) => import_react41.default.createElement(Box_default, { key: index, flexDirection: "row", gap: 2 }, row.map((cell, index2) => import_react41.default.createElement(
Box_default,
{ key: index2, width: columnWidths[index2] ?? 0, flexShrink: index2 === 0 ? 0 : 1 },
import_react41.default.createElement(TokenizedText, { item: index2 === 0 && firstColumnSubdued && typeof cell == "string" ? { subdued: cell } : cell })
)))));
};
// ../cli-kit/dist/private/node/ui/components/Alert.js
var import_react42 = __toESM(require_react(), 1), Alert = ({ type, headline, body, nextSteps, reference, link: link3, customSections, orderedNextSteps = !1 }) => import_react42.default.createElement(
Banner,
{ type },
headline ? import_react42.default.createElement(
Text,
{ bold: !0 },
import_react42.default.createElement(TokenizedText, { item: headline })
) : null,
body ? import_react42.default.createElement(TokenizedText, { item: body }) : null,
nextSteps && nextSteps.length > 0 ? import_react42.default.createElement(List, { title: "Next steps", items: nextSteps, ordered: orderedNextSteps }) : null,
reference && reference.length > 0 ? import_react42.default.createElement(List, { title: "Reference", items: reference }) : null,
link3 ? import_react42.default.createElement(Link, { url: link3.url, label: link3.label }) : null,
customSections && customSections.length > 0 ? import_react42.default.createElement(Box_default, { flexDirection: "column", gap: 1 }, customSections.map((section, index) => import_react42.default.createElement(
Box_default,
{ key: index, flexDirection: "column" },
section.title ? import_react42.default.createElement(Text, { bold: !0 }, section.title) : null,
typeof section.body == "object" && "tabularData" in section.body ? import_react42.default.createElement(TabularData, { ...section.body }) : import_react42.default.createElement(TokenizedText, { item: section.body })
))) : null
);
// ../cli-kit/dist/private/node/ui/alert.js
var import_react43 = __toESM(require_react(), 1), typeToLogLevel = {
info: "info",
warning: "warn",
success: "info",
error: "error"
};
function alert({ type, headline, body, nextSteps, reference, link: link3, customSections, orderedNextSteps = !1, renderOptions }) {
let { type: alertType, ..._eventProps } = arguments[0];
return renderOnce(import_react43.default.createElement(Alert, { type, headline, body, nextSteps, reference, link: link3, orderedNextSteps, customSections }), { logLevel: typeToLogLevel[type], renderOptions });
}
// ../cli-kit/dist/private/node/ui/components/FatalError.js
init_cjs_shims();
var import_react44 = __toESM(require_react(), 1), import_stacktracey = __toESM(require_stacktracey(), 1), FatalError = ({ error }) => {
let stack, tool;
return error instanceof BugError && (stack = new import_stacktracey.default(error), stack.items.forEach((item) => {
item.file = cleanSingleStackTracePath(item.file);
}), stack = stack.withSources(), stack = stack.filter((entry) => !entry.file.includes("@oclif/core")).map((item) => {
let fileShortComponents = item.fileShort.split("packages/");
return item.fileShort = fileShortComponents.length === 2 ? fileShortComponents[1] : fileShortComponents[0], item;
})), error instanceof ExternalError && (tool = `${error.command} ${error.args.join(" ")}`), import_react44.default.createElement(
Banner,
{ type: tool ? "external_error" : "error" },
tool ? import_react44.default.createElement(
Text,
null,
"Error coming from ",
import_react44.default.createElement(Command, { command: tool })
) : null,
error.formattedMessage ? import_react44.default.createElement(TokenizedText, { item: error.formattedMessage }) : (
// Route plain-string error messages through TokenizedText so that any
// opt-in `[label](url)` / `<url>` markdown the server (or the caller)
// emits is rendered as a footnote-backed Link inside the FatalError
// banner.
import_react44.default.createElement(TokenizedText, { item: error.message })
),
error.tryMessage ? import_react44.default.createElement(TokenizedText, { item: error.tryMessage }) : null,
error.nextSteps && error.nextSteps.length > 0 ? import_react44.default.createElement(List, { title: "Next steps", items: error.nextSteps }) : null,
error.customSections && error.customSections.length > 0 ? import_react44.default.createElement(Box_default, { flexDirection: "column", gap: 1 }, error.customSections.map((section, index) => import_react44.default.createElement(
Box_default,
{ key: index, flexDirection: "column" },
section.title ? import_react44.default.createElement(Text, { bold: !0 }, section.title) : null,
typeof section.body == "object" && "tabularData" in section.body ? import_react44.default.createElement(TabularData, { ...section.body }) : import_react44.default.createElement(TokenizedText, { item: section.body })
))) : null,
stack && stack.items.length !== 0 ? import_react44.default.createElement(
Box_default,
{ flexDirection: "column" },
import_react44.default.createElement(Text, null, "To investigate the issue, examine this stack trace:"),
stack.items.map((item, index) => import_react44.default.createElement(
Box_default,
{ flexDirection: "column", key: index, paddingLeft: 2 },
import_react44.default.createElement(
Text,
null,
"at",
item.calleeShort ? import_react44.default.createElement(Text, { color: "yellow" }, ` ${item.calleeShort}`) : null,
item.fileShort ? ` (${item.fileShort}:${item.line})` : null
),
import_react44.default.createElement(
Box_default,
{ paddingLeft: 2 },
import_react44.default.createElement(Text, { dimColor: !0 }, item.sourceLine?.trim())
)
))
) : null
);
};
// ../cli-kit/dist/private/node/ui/components/Table/Table.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/Table/Row.js
init_cjs_shims();
var import_react45 = __toESM(require_react(), 1);
function join(elements, separator) {
return elements.reduce((elements2, element, index) => elements2.length === 0 ? [element] : [...elements2, separator(index), element], []);
}
var Row = ({ rowKey, columns, data, fillerChar, ignoreColumnColor }) => import_react45.default.createElement(Box_default, { flexDirection: "row" }, ...join(columns.map((column2) => {
let content = data[column2.name], key = `${rowKey}-cell-${column2.name.toString()}`, marginRight = column2.width - unstyled(String(content ?? "")).length;
return import_react45.default.createElement(
Text,
{ key, color: ignoreColumnColor ? void 0 : column2.color },
content,
fillerChar.repeat(marginRight)
);
}), (index) => {
let key = `${rowKey}-horizontal-separator-${index}`;
return import_react45.default.createElement(Text, { key }, " ");
}));
// ../cli-kit/dist/private/node/ui/components/Table/Table.js
var import_react46 = __toESM(require_react(), 1);
function Table({ rows, columns: columnsConfiguration }) {
let columns = Object.entries(columnsConfiguration).map(([key, { header, color }]) => {
let headerWidth = String(header ?? key).length, columnWidths = rows.map((row) => {
let value = row[key];
return value == null ? 0 : unstyled(String(value)).length;
});
return {
name: key,
width: Math.max(...columnWidths, headerWidth),
color
};
}), headings = Object.entries(columnsConfiguration).reduce((headings2, [column2, { header }]) => ({ ...headings2, [column2]: header ?? column2 }), {});
return import_react46.default.createElement(
Box_default,
{ flexDirection: "column" },
import_react46.default.createElement(Row, { rowKey: "heading", fillerChar: " ", columns, data: headings, ignoreColumnColor: !0 }),
import_react46.default.createElement(Row, { rowKey: "separator", fillerChar: "\u2500", columns, data: {}, ignoreColumnColor: !0 }),
rows.map((row, index) => {
let key = `row-${index}`;
return import_react46.default.createElement(
Box_default,
{ flexDirection: "column", key },
import_react46.default.createElement(Row, { rowKey: `data-${key}`, fillerChar: " ", columns, data: row })
);
})
);
}
// ../cli-kit/dist/private/node/ui/components/DangerousConfirmationPrompt.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/TextInput.js
init_cjs_shims();
var import_react47 = __toESM(require_react(), 1);
var TextInput = ({ value: originalValue, defaultValue = "", onChange, placeholder = "", noColor = !shouldDisplayColors(), color = noColor ? void 0 : "cyan", password = !1, focus = !0 }) => {
let [cursorOffset, setCursorOffset] = (0, import_react47.useState)((originalValue || "").length), clampedCursorOffset = Math.min(cursorOffset, (originalValue || "").length);
(0, import_react47.useLayoutEffect)(() => {
clampedCursorOffset !== cursorOffset && setCursorOffset(clampedCursorOffset);
}, [clampedCursorOffset, cursorOffset]);
let value = password ? "*".repeat(originalValue.length) : originalValue, renderedValue, renderPlaceholder = (value2) => source_default.inverse(value2[0]) + source_default.dim(value2.slice(1)), cursorChar = figures_default.square, defaultCursor = import_react47.default.createElement(Text, { backgroundColor: color }, cursorChar), placeholderText = defaultValue.length > 0 ? defaultValue : placeholder.length > 0 ? placeholder : "", renderedPlaceholder = placeholderText.length > 0 ? renderPlaceholder(placeholderText) : defaultCursor;
return renderedValue = value.split("").map((char, index) => index === clampedCursorOffset ? noColor ? cursorChar : source_default.inverse(char) : char).join(""), clampedCursorOffset === value.length && (renderedValue = import_react47.default.createElement(
Text,
null,
renderedValue,
defaultCursor
)), use_input_default((input, key) => {
if (key.upArrow || key.downArrow || key.ctrl && input === "c" || key.shift && key.tab || key.return)
return;
if (key.tab && originalValue.length === 0 && placeholderText) {
onChange(placeholderText), setCursorOffset(placeholderText.length);
return;
}
let nextCursorOffset = clampedCursorOffset, nextValue = originalValue;
key.leftArrow ? clampedCursorOffset > 0 && nextCursorOffset-- : key.rightArrow ? clampedCursorOffset < originalValue.length && nextCursorOffset++ : key.backspace || key.delete ? clampedCursorOffset > 0 && (nextValue = originalValue.slice(0, clampedCursorOffset - 1) + originalValue.slice(clampedCursorOffset, originalValue.length), nextCursorOffset--) : (nextValue = originalValue.slice(0, clampedCursorOffset) + input + originalValue.slice(clampedCursorOffset, originalValue.length), nextCursorOffset += input.length), setCursorOffset(nextCursorOffset), nextValue !== originalValue && onChange(nextValue);
}, { isActive: focus }), import_react47.default.createElement(Text, { color }, value.length > 0 ? renderedValue : renderedPlaceholder);
};
// ../cli-kit/dist/private/node/ui/components/Prompts/InfoTable.js
init_cjs_shims();
var import_react48 = __toESM(require_react(), 1), InfoTable = ({ table }) => {
let sections = Array.isArray(table) ? table : Object.keys(table).map((header) => ({
header,
items: table[header],
color: void 0,
helperText: void 0,
bullet: void 0,
emptyItemsText: void 0
})), headerColumnWidth = Math.max(...sections.map((section) => Math.max(...section.header.split(`
`).map((line) => line.length))));
return import_react48.default.createElement(Box_default, { flexDirection: "column" }, sections.map((section, index) => import_react48.default.createElement(
Box_default,
{ key: index, marginBottom: index === sections.length - 1 ? 0 : 1, flexDirection: "column" },
section.header.length > 0 && import_react48.default.createElement(
Box_default,
{ width: headerColumnWidth + 1 },
import_react48.default.createElement(Text, { color: section.color, bold: !0 }, capitalize(section.header))
),
import_react48.default.createElement(
Box_default,
{ flexGrow: 1, flexDirection: "column", gap: 1 },
section.emptyItemsText && section.items.length === 0 ? import_react48.default.createElement(
Text,
{ color: section.color },
import_react48.default.createElement(TokenizedText, { item: { subdued: section.emptyItemsText } })
) : import_react48.default.createElement(List, { margin: !1, items: section.items, color: section.color, bullet: section.bullet }),
section.helperText ? import_react48.default.createElement(Text, { color: section.color }, section.helperText) : null
)
)));
};
// ../cli-kit/dist/private/node/ui/utilities.js
init_cjs_shims();
function messageWithPunctuation(message) {
let messageToString = tokenItemToString(message);
return messageToString.endsWith("?") || messageToString.endsWith(":") || messageToString.endsWith(".") ? message : appendToTokenItem(message, ":");
}
// ../cli-kit/dist/private/node/ui/hooks/use-abort-signal.js
init_cjs_shims();
var import_react49 = __toESM(require_react(), 1), noop2 = () => Promise.resolve();
function getAbortError(abortSignal) {
return abortSignal?.reason?.name === "AbortError" ? void 0 : abortSignal?.reason;
}
function useAbortSignal(abortSignal, onAbort = noop2) {
let complete = useComplete(), [isAborted, setIsAborted] = (0, import_react49.useState)(!1);
return (0, import_react49.useLayoutEffect)(() => {
abortSignal?.addEventListener("abort", () => {
onAbort(getAbortError(abortSignal)).then(() => setIsAborted(!0)).catch(() => {
});
});
}, []), (0, import_react49.useEffect)(() => {
isAborted && complete(getAbortError(abortSignal));
}, [isAborted]), { isAborted };
}
// ../cli-kit/dist/private/node/ui/hooks/use-prompt.js
init_cjs_shims();
var import_react50 = __toESM(require_react(), 1), PromptState;
(function(PromptState2) {
PromptState2.Idle = "idle", PromptState2.Loading = "loading", PromptState2.Submitted = "submitted", PromptState2.Error = "error", PromptState2.Cancelled = "cancelled";
})(PromptState || (PromptState = {}));
function usePrompt({ initialAnswer }) {
let [promptState, setPromptState] = (0, import_react50.useState)(PromptState.Idle), [answer, setAnswer] = (0, import_react50.useState)(initialAnswer);
return {
promptState,
setPromptState,
answer,
setAnswer
};
}
// ../cli-kit/dist/private/node/ui/components/DangerousConfirmationPrompt.js
var import_react51 = __toESM(require_react(), 1);
var DangerousConfirmationPrompt = ({ message, confirmation, infoTable, warningItem, onSubmit, abortSignal }) => {
let validateAnswer = (0, import_react51.useCallback)((value) => value === confirmation ? void 0 : ["Value must be exactly", { userInput: confirmation }], [confirmation]), { oneThird, twoThirds } = useLayout(), { promptState, setPromptState, answer, setAnswer } = usePrompt({
initialAnswer: ""
}), complete = useComplete(), [error, setError] = (0, import_react51.useState)(void 0), color = promptState === PromptState.Error ? "red" : "cyan", underline = new Array(oneThird - 3).fill("\u2594"), { isAborted } = useAbortSignal(abortSignal);
use_input_default((input, key) => {
if (handleCtrlC(input, key), key.escape && (setPromptState(PromptState.Cancelled), setError(void 0)), key.return) {
let error2 = validateAnswer(answer);
error2 ? (setPromptState(PromptState.Error), setError(error2)) : setPromptState(PromptState.Submitted);
}
}), (0, import_react51.useEffect)(() => {
promptState === PromptState.Submitted ? (onSubmit(!0), complete()) : promptState === PromptState.Cancelled && (onSubmit(!1), complete());
}, [onSubmit, promptState, complete]);
let completed = promptState === PromptState.Submitted || promptState === PromptState.Cancelled;
return isAborted ? null : import_react51.default.createElement(
Box_default,
{ flexDirection: "column", marginBottom: 1, width: twoThirds },
import_react51.default.createElement(
Box_default,
null,
import_react51.default.createElement(
Box_default,
{ marginRight: 2 },
import_react51.default.createElement(Text, null, "?")
),
import_react51.default.createElement(TokenizedText, { item: messageWithPunctuation(message) })
),
completed ? import_react51.default.createElement(CompletedPrompt, { cancelled: promptState === PromptState.Cancelled }) : import_react51.default.createElement(
import_react51.default.Fragment,
null,
import_react51.default.createElement(
Box_default,
{ flexDirection: "column", gap: 1, marginTop: 1, marginLeft: 3 },
infoTable ? import_react51.default.createElement(
Box_default,
{ paddingLeft: 2, borderStyle: "bold", borderLeft: !0, borderRight: !1, borderTop: !1, borderBottom: !1, flexDirection: "column", gap: 1 },
import_react51.default.createElement(InfoTable, { table: infoTable })
) : null,
warningItem ? import_react51.default.createElement(
Box_default,
{ flexDirection: "column" },
import_react51.default.createElement(
Text,
{ color: "red" },
figures_default.warning,
" WARNING"
),
import_react51.default.createElement(TokenizedText, { item: warningItem })
) : null,
import_react51.default.createElement(
Box_default,
null,
import_react51.default.createElement(TokenizedText, { item: ["Type", { userInput: confirmation }, "to confirm, or press Escape to cancel."] })
)
),
import_react51.default.createElement(
Box_default,
{ flexDirection: "column", width: oneThird },
import_react51.default.createElement(
Box_default,
null,
import_react51.default.createElement(
Box_default,
{ marginRight: 2 },
import_react51.default.createElement(Text, { color }, ">")
),
import_react51.default.createElement(
Box_default,
{ flexGrow: 1 },
import_react51.default.createElement(TextInput, { value: answer, onChange: (answer2) => {
setAnswer(answer2), setPromptState(PromptState.Idle);
}, defaultValue: "", color })
)
),
import_react51.default.createElement(
Box_default,
{ marginLeft: 3 },
import_react51.default.createElement(Text, { color }, underline)
),
promptState === PromptState.Error && error ? import_react51.default.createElement(
Box_default,
{ marginLeft: 3 },
import_react51.default.createElement(
Text,
{ color },
import_react51.default.createElement(TokenizedText, { item: error })
)
) : null
)
)
);
}, CompletedPrompt = ({ cancelled }) => import_react51.default.createElement(
Box_default,
null,
import_react51.default.createElement(Box_default, { width: 3 }, cancelled ? import_react51.default.createElement(Text, { color: "red" }, figures_default.cross) : import_react51.default.createElement(Text, { color: "cyan" }, figures_default.tick)),
import_react51.default.createElement(Box_default, { flexGrow: 1 }, cancelled ? import_react51.default.createElement(Text, { color: "red" }, "Cancelled") : import_react51.default.createElement(Text, { color: "cyan" }, "Confirmed"))
);
// ../cli-kit/dist/private/node/ui/components/SelectPrompt.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/SelectInput.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/Scrollbar.js
init_cjs_shims();
var import_react52 = __toESM(require_react(), 1), BACKGROUND_CHAR = "\u2502", SCROLLBOX_CHAR = "\u2551", Scrollbar = ({ containerHeight, visibleListSectionLength, fullListLength, visibleFromIndex, noColor = !shouldDisplayColors() }) => {
let displayArrows = containerHeight >= 4 && noColor, visibleToIndex = visibleFromIndex + visibleListSectionLength - 1, fullHeight = displayArrows ? containerHeight - 2 : containerHeight, scrollboxHeight = Math.min(fullHeight - 1, Math.ceil(Math.min(1, visibleListSectionLength / fullListLength) * fullHeight)), topBuffer;
if (visibleToIndex >= fullListLength - 1)
topBuffer = fullHeight - scrollboxHeight;
else {
let scrollingLength = fullHeight - scrollboxHeight, scrollableIncrements = fullListLength - visibleListSectionLength;
topBuffer = Math.max(
// Never go negative, that causes errors!
0,
Math.min(
// Never have more buffer than filling in all spaces above the scrollbox
fullHeight - scrollboxHeight,
Math.round(visibleFromIndex / scrollableIncrements * scrollingLength)
)
);
}
let bottomBuffer = fullHeight - scrollboxHeight - topBuffer, backgroundChar = noColor ? BACKGROUND_CHAR : " ", scrollboxChar = noColor ? SCROLLBOX_CHAR : " ", bgColor = noColor ? void 0 : "gray", scrollboxColor = noColor ? void 0 : "cyan";
return import_react52.default.createElement(
Box_default,
{ flexDirection: "column" },
displayArrows ? import_react52.default.createElement(Text, null, "\u25B3") : null,
import_react52.default.createElement(
Box_default,
{ width: 1 },
import_react52.default.createElement(Text, { backgroundColor: bgColor }, backgroundChar.repeat(topBuffer))
),
import_react52.default.createElement(
Box_default,
{ width: 1 },
import_react52.default.createElement(Text, { backgroundColor: scrollboxColor }, scrollboxChar.repeat(scrollboxHeight))
),
import_react52.default.createElement(
Box_default,
{ width: 1 },
import_react52.default.createElement(Text, { backgroundColor: bgColor }, backgroundChar.repeat(bottomBuffer))
),
displayArrows ? import_react52.default.createElement(Text, null, "\u25BD") : null
);
};
// ../cli-kit/dist/private/node/ui/hooks/use-select-state.js
init_cjs_shims();
var import_react53 = __toESM(require_react(), 1);
import { isDeepStrictEqual } from "node:util";
var OptionMap = class extends Map {
first;
constructor(options) {
let items = [], firstItem, previous, index = 0;
for (let option of options) {
let item = {
...option,
previous,
next: void 0,
index
};
previous && (previous.next = item), firstItem ??= item, items.push([option.value, item]), index++, previous = item;
}
super(items), this.first = firstItem;
}
}, reducer = (state, action) => {
switch (action.type) {
case "select-next-option": {
if (typeof state.value > "u")
return state;
let item = state.optionMap.get(state.value);
if (!item)
return state;
let next = item.next;
for (; next && next.disabled; )
next = next.next;
if (!next)
return state;
if (!(next.index > state.visibleToIndex))
return {
...state,
value: next.value
};
let nextVisibleToIndex = next.index, nextVisibleFromIndex = nextVisibleToIndex - state.visibleOptionCount + 1;
return {
...state,
value: next.value,
visibleFromIndex: nextVisibleFromIndex,
visibleToIndex: nextVisibleToIndex,
previousValue: state.value
};
}
case "select-previous-option": {
if (typeof state.value > "u")
return state;
let item = state.optionMap.get(state.value);
if (!item)
return state;
let previous = item.previous;
for (; previous && previous.disabled; )
previous = previous.previous;
if (!previous)
return state;
if (!(previous.index < state.visibleFromIndex))
return {
...state,
value: previous.value
};
let nextVisibleFromIndex = previous.index, nextVisibleToIndex = nextVisibleFromIndex + state.visibleOptionCount - 1;
return {
...state,
value: previous.value,
visibleFromIndex: nextVisibleFromIndex,
visibleToIndex: nextVisibleToIndex,
previousValue: state.value
};
}
case "select-option": {
let item = state.optionMap.get(action.option.value);
return item ? {
...state,
value: item.value,
previousValue: state.value
} : state;
}
case "reset":
return action.state;
default:
return state;
}
}, createDefaultState = ({ visibleOptionCount: customVisibleOptionCount, defaultValue, options }) => {
let visibleOptionCount = typeof customVisibleOptionCount == "number" ? Math.min(customVisibleOptionCount, options.length) : options.length, optionMap = new OptionMap(options), defaultOption = typeof defaultValue > "u" ? void 0 : optionMap.get(defaultValue), option = defaultOption && !defaultOption.disabled ? defaultOption : optionMap.first;
for (; option && option.disabled; )
option = option.next;
return {
optionMap,
visibleOptionCount,
visibleFromIndex: 0,
visibleToIndex: visibleOptionCount - 1,
value: option?.value,
previousValue: option?.value
};
}, useSelectState = ({ visibleOptionCount, options, defaultValue }) => {
let [state, dispatch] = (0, import_react53.useReducer)(reducer, { visibleOptionCount, defaultValue, options }, createDefaultState), [lastOptions, setLastOptions] = (0, import_react53.useState)(options), [lastVisibleOptionCount, setLastVisibleOptionCount] = (0, import_react53.useState)(visibleOptionCount);
options !== lastOptions && !isDeepStrictEqual(options, lastOptions) && (dispatch({
type: "reset",
state: createDefaultState({ visibleOptionCount, defaultValue, options })
}), setLastOptions(options)), visibleOptionCount !== lastVisibleOptionCount && (dispatch({
type: "reset",
state: createDefaultState({ visibleOptionCount, defaultValue, options })
}), setLastVisibleOptionCount(visibleOptionCount));
let selectNextOption = (0, import_react53.useCallback)(() => {
dispatch({
type: "select-next-option"
});
}, []), selectPreviousOption = (0, import_react53.useCallback)(() => {
dispatch({
type: "select-previous-option"
});
}, []), selectOption = (0, import_react53.useCallback)(({ option }) => {
dispatch({
type: "select-option",
option
});
}, []), visibleOptions = (0, import_react53.useMemo)(() => options.slice(state.visibleFromIndex), [options, state.visibleFromIndex]);
return {
visibleFromIndex: state.visibleFromIndex,
visibleToIndex: state.visibleToIndex,
value: state.value,
visibleOptions,
selectNextOption,
selectPreviousOption,
selectOption,
previousValue: state.previousValue
};
};
// ../cli-kit/dist/private/node/ui/components/SelectInput.js
var import_react54 = __toESM(require_react(), 1);
var import_sortBy = __toESM(require_sortBy(), 1);
function highlightedLabel(label, term) {
if (!term)
return label;
let regex;
try {
regex = new RegExp(term, "i");
} catch {
return label;
}
return label.replace(regex, (match) => source_default.bold(match));
}
function validateKeys(items) {
if (items.some((item) => (item.key?.length ?? 0) > 1))
throw new Error("SelectInput: Keys must be a single character");
if (!items.every((item) => typeof item.key < "u" && item.key.length > 0))
throw new Error("SelectInput: All items must have keys if one does");
}
function Item({ item, previousItem, isSelected, highlightedTerm, enableShortcuts, items, hasAnyGroup, index }) {
let label = highlightedLabel(item.label, highlightedTerm), title, labelColor;
isSelected ? labelColor = "cyan" : item.disabled && (labelColor = "dim"), (typeof previousItem > "u" || item.group !== previousItem.group) && (title = item.group ?? (hasAnyGroup ? "Other" : void 0));
let showKey = enableShortcuts && item.key && item.key.length > 0;
return import_react54.default.createElement(
Box_default,
{ key: index, flexDirection: "column", marginTop: items.indexOf(item) !== 0 && title ? 1 : 0, minHeight: title ? 2 : 1 },
title ? import_react54.default.createElement(
Box_default,
{ marginLeft: 3 },
import_react54.default.createElement(Text, { bold: !0 }, title)
) : null,
import_react54.default.createElement(
Box_default,
{ key: index, marginLeft: hasAnyGroup ? 3 : 0 },
import_react54.default.createElement(Box_default, { marginRight: 2 }, isSelected ? import_react54.default.createElement(Text, { color: "cyan" }, ">") : import_react54.default.createElement(Text, null, " ")),
import_react54.default.createElement(Text, { wrap: "end", color: labelColor }, showKey ? `(${item.key}) ${label}` : label)
)
);
}
var MAX_AVAILABLE_LINES = 25;
function SelectInput({ items: rawItems, initialItems = rawItems, onChange, enableShortcuts = !0, focus = !0, emptyMessage = "No items to select.", defaultValue, highlightedTerm, loading = !1, errorMessage, hasMorePages = !1, morePagesMessage, availableLines = MAX_AVAILABLE_LINES, onSubmit, inputFixedAreaRef, ref, groupOrder }) {
let noItems = !1;
rawItems.length === 0 && (rawItems = [{ label: emptyMessage, value: null, disabled: !0 }], noItems = !0);
let hasAnyGroup = rawItems.some((item) => typeof item.group < "u"), items = (0, import_sortBy.default)(rawItems, (item) => {
if (!item.group)
return Number.MAX_SAFE_INTEGER + 1;
if (!groupOrder)
return Number.MAX_SAFE_INTEGER;
let index = groupOrder.indexOf(item.group);
return index === -1 ? Number.MAX_SAFE_INTEGER : index;
}), itemsHaveKeys = items.some((item) => typeof item.key < "u" && item.key.length > 0);
itemsHaveKeys && validateKeys(items);
let availableLinesToUse = Math.min(availableLines, MAX_AVAILABLE_LINES);
function maximumLinesLostToGroups(items2) {
let numberOfGroups = new Set(items2.map((item) => item.group).filter((group) => group)).size, maxVisibleGroups = Math.ceil(Math.min((availableLinesToUse + 1) / 3, numberOfGroups + 1));
return numberOfGroups > 0 ? (maxVisibleGroups - 1) * 2 + 1 : 0;
}
let maxLinesLostToGroups = maximumLinesLostToGroups(items), limit = Math.max(2, availableLinesToUse - maxLinesLostToGroups), hasLimit = items.length > limit, state = useSelectState({
visibleOptionCount: limit,
options: items,
defaultValue
});
(0, import_react54.useEffect)(() => {
typeof state.value < "u" && state.previousValue !== state.value && onChange?.(items.find((item) => item.value === state.value));
}, [state.previousValue, state.value, items, onChange]);
let handleArrows = (key) => {
key.upArrow ? state.selectPreviousOption() : key.downArrow && state.selectNextOption();
}, handleShortcuts = (0, import_react54.useCallback)((input) => {
if (state.visibleOptions.map((item) => item.key).includes(input)) {
let itemWithKey = state.visibleOptions.find((item2) => item2.key === input), item = items.find((item2) => item2.value === itemWithKey?.value);
itemWithKey && !itemWithKey.disabled && (onSubmit && item && onSubmit(item), state.selectOption({ option: itemWithKey }));
}
}, [items, onSubmit, state]);
use_input_default((input, key) => {
if (handleCtrlC(input, key), typeof state.value < "u" && key.return) {
let item = items.find((item2) => item2.value === state.value);
item && onSubmit && onSubmit(item);
}
enableShortcuts && input.length > 0 && Object.values(key).every((value) => !value) ? handleShortcuts(input) : handleArrows(key);
}, { isActive: focus });
let { twoThirds } = useLayout();
if (loading)
return import_react54.default.createElement(
Box_default,
{ marginLeft: 3 },
import_react54.default.createElement(Text, { dimColor: !0 }, "Loading...")
);
if (errorMessage && errorMessage.length > 0)
return import_react54.default.createElement(
Box_default,
{ marginLeft: 3 },
import_react54.default.createElement(Text, { color: "red" }, errorMessage)
);
{
let optionsHeight = initialItems.length + maximumLinesLostToGroups(initialItems), sectionHeight = Math.max(hasAnyGroup ? 5 : 2, Math.min(availableLinesToUse, optionsHeight));
return import_react54.default.createElement(
Box_default,
{ flexDirection: "column", ref, gap: 1, width: twoThirds },
import_react54.default.createElement(
Box_default,
{ flexDirection: "row", height: sectionHeight, width: "100%" },
import_react54.default.createElement(Box_default, { flexDirection: "column", overflowY: "hidden", flexGrow: 1 }, state.visibleOptions.map((item, index) => import_react54.default.createElement(Item, { key: index, item, previousItem: state.visibleOptions[index - 1], highlightedTerm, isSelected: item.value === state.value, items: state.visibleOptions, enableShortcuts, hasAnyGroup, index }))),
hasLimit ? import_react54.default.createElement(Scrollbar, { containerHeight: sectionHeight, visibleListSectionLength: limit, fullListLength: items.length, visibleFromIndex: state.visibleFromIndex }) : null
),
import_react54.default.createElement(Box_default, { ref: inputFixedAreaRef }, noItems ? import_react54.default.createElement(
Box_default,
{ marginLeft: 3 },
import_react54.default.createElement(Text, { dimColor: !0 }, "Try again with a different keyword.")
) : import_react54.default.createElement(
Box_default,
{ marginLeft: 3, flexDirection: "column" },
import_react54.default.createElement(Text, { dimColor: !0 }, `Press ${figures_default.arrowUp}${figures_default.arrowDown} arrows to select, enter ${itemsHaveKeys ? "or a shortcut " : ""}to confirm.`),
hasMorePages ? import_react54.default.createElement(
Text,
null,
import_react54.default.createElement(
Text,
{ bold: !0 },
"1-",
items.length,
" of many"
),
morePagesMessage ? ` ${morePagesMessage}` : null
) : null
))
);
}
}
// ../cli-kit/dist/private/node/ui/components/Prompts/PromptLayout.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/Prompts/InfoMessage.js
init_cjs_shims();
var import_react55 = __toESM(require_react(), 1), InfoMessage = ({ message: { title: { color, text: title }, body } }) => import_react55.default.createElement(
Box_default,
{ flexDirection: "column", gap: 1 },
import_react55.default.createElement(
Text,
{ color },
import_react55.default.createElement(TokenizedText, { item: title })
),
import_react55.default.createElement(TokenizedText, { item: body })
);
// ../cli-kit/dist/private/node/ui/components/Prompts/PromptLayout.js
var import_react56 = __toESM(require_react(), 1);
var PromptLayout = ({ message, infoTable, abortSignal, infoMessage, header, state, input, submittedAnswerLabel }) => {
let { stdout } = use_stdout_default(), [wrapperHeight, setWrapperHeight] = (0, import_react56.useState)(0), [promptAreaHeight, setPromptAreaHeight] = (0, import_react56.useState)(0), [inputFixedAreaHeight, setInputFixedAreaHeight] = (0, import_react56.useState)(0), currentAvailableLines = stdout.rows - promptAreaHeight - inputFixedAreaHeight, [availableLines, setAvailableLines] = (0, import_react56.useState)(currentAvailableLines), wrapperRef = (0, import_react56.useCallback)((node) => {
if (node !== null) {
let { height } = measure_element_default(node);
wrapperHeight !== height && setWrapperHeight(height);
}
}, [wrapperHeight]), promptAreaRef = (0, import_react56.useCallback)((node) => {
if (node !== null) {
let { height } = measure_element_default(node);
setPromptAreaHeight(height);
}
}, []), inputFixedAreaRef = (0, import_react56.useCallback)((node) => {
if (node !== null) {
let { height } = measure_element_default(node);
setInputFixedAreaHeight(height + 3);
}
}, []), inputComponent = (0, import_react56.cloneElement)(input, { availableLines, inputFixedAreaRef });
(0, import_react56.useLayoutEffect)(() => {
function onResize() {
let newAvailableLines = stdout.rows - promptAreaHeight - inputFixedAreaHeight;
newAvailableLines !== availableLines && setAvailableLines(newAvailableLines);
}
return onResize(), stdout.on("resize", onResize), () => {
stdout.off("resize", onResize);
};
}, [wrapperHeight, promptAreaHeight, stdout, availableLines, inputFixedAreaHeight]);
let { isAborted } = useAbortSignal(abortSignal), showInfoTable = infoTable && Object.keys(infoTable).length > 0;
return isAborted ? null : import_react56.default.createElement(
Box_default,
{ flexDirection: "column", marginBottom: 1, ref: wrapperRef },
import_react56.default.createElement(
Box_default,
{ ref: promptAreaRef, flexDirection: "column" },
import_react56.default.createElement(
Box_default,
null,
import_react56.default.createElement(
Box_default,
{ marginRight: 2 },
import_react56.default.createElement(Text, null, "?")
),
import_react56.default.createElement(TokenizedText, { item: messageWithPunctuation(message) }),
header
),
(showInfoTable || infoMessage) && state !== PromptState.Submitted ? import_react56.default.createElement(
Box_default,
{ marginTop: 1, marginLeft: 3, paddingLeft: 2, borderStyle: "bold", borderLeft: !0, borderRight: !1, borderTop: !1, borderBottom: !1, flexDirection: "column", gap: 1 },
infoMessage ? import_react56.default.createElement(InfoMessage, { message: infoMessage }) : null,
showInfoTable ? import_react56.default.createElement(InfoTable, { table: infoTable }) : null
) : null
),
state === PromptState.Submitted && submittedAnswerLabel ? import_react56.default.createElement(
Box_default,
null,
import_react56.default.createElement(
Box_default,
{ width: 3 },
import_react56.default.createElement(Text, { color: "cyan" }, figures_default.tick)
),
import_react56.default.createElement(Text, { color: "cyan" }, submittedAnswerLabel)
) : import_react56.default.createElement(Box_default, { marginTop: 1 }, inputComponent)
);
};
// ../cli-kit/dist/private/node/ui/components/SelectPrompt.js
var import_react57 = __toESM(require_react(), 1);
function SelectPrompt({ message, choices, infoTable, infoMessage, onSubmit, defaultValue, abortSignal, groupOrder }) {
if (choices.length === 0)
throw new Error("SelectPrompt requires at least one choice");
let complete = useComplete(), { promptState, setPromptState, answer, setAnswer } = usePrompt({
initialAnswer: void 0
}), submitAnswer = (0, import_react57.useCallback)((answer2) => {
setAnswer(answer2), setPromptState(PromptState.Submitted);
}, [setAnswer, setPromptState]);
return (0, import_react57.useEffect)(() => {
promptState === PromptState.Submitted && answer && (onSubmit(answer.value), complete());
}, [answer, onSubmit, promptState, complete]), import_react57.default.createElement(PromptLayout, { message, state: promptState, submittedAnswerLabel: answer?.label, infoTable, infoMessage, abortSignal, input: import_react57.default.createElement(SelectInput, { defaultValue, items: choices, onSubmit: submitAnswer, groupOrder }) });
}
// ../cli-kit/dist/private/node/ui/components/Tasks.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/LoadingBar.js
init_cjs_shims();
// ../cli-kit/dist/private/node/ui/components/TextAnimation.js
init_cjs_shims();
var import_react58 = __toESM(require_react(), 1), import_gradient_string = __toESM(require_gradient_string(), 1);
function rainbow(text, frame) {
let hue = 5 * frame, leftColor = { h: hue % 360, s: 0.8, v: 1 }, rightColor = { h: (hue + 1) % 360, s: 0.8, v: 1 };
return (0, import_gradient_string.default)(leftColor, rightColor)(text, { interpolation: "hsv", hsvSpin: "long" });
}
function rotated(text, steps) {
let normalizedSteps = steps % text.length, start = text.slice(-normalizedSteps), end = text.slice(0, -normalizedSteps);
return start + end;
}
function truncated(text, maxWidth) {
return maxWidth ? text.slice(0, maxWidth) : text;
}
var TextAnimation = (0, import_react58.memo)(({ text, maxWidth }) => {
let frame = (0, import_react58.useRef)(0), [renderedFrame, setRenderedFrame] = (0, import_react58.useState)(text), timeout = (0, import_react58.useRef)(), { stdout } = use_stdout_default(), [width, setWidth] = (0, import_react58.useState)(maxWidth ?? Math.floor(stdout.columns * 0.66));
(0, import_react58.useLayoutEffect)(() => {
let handleResize = () => {
setWidth(Math.floor(stdout.columns * 0.66));
};
return stdout.on("resize", handleResize), () => {
stdout.off("resize", handleResize);
};
}, [stdout]);
let renderAnimation = (0, import_react58.useCallback)(() => {
let newFrame = frame.current + 1;
frame.current = newFrame, setRenderedFrame(rainbow(truncated(rotated(text, frame.current), width), frame.current)), timeout.current = setTimeout(() => {
renderAnimation();
}, 35);
}, [text, width]);
return (0, import_react58.useLayoutEffect)(() => (renderAnimation(), () => {
clearTimeout(timeout.current);
}), [renderAnimation]), import_react58.default.createElement(Text, null, renderedFrame);
});
TextAnimation.displayName = "TextAnimation";
// ../cli-kit/dist/private/node/ui/components/LoadingBar.js
var import_react59 = __toESM(require_react(), 1);
var loadingBarChar = "\u2580", hillString = "\u2581\u2581\u2582\u2582\u2583\u2583\u2584\u2584\u2585\u2585\u2586\u2586\u2587\u2587\u2588\u2588\u2587\u2587\u2586\u2586\u2585\u2585\u2584\u2584\u2583\u2583\u2582\u2582\u2581\u2581", LoadingBar = ({ title, noColor, noProgressBar }) => {
let { twoThirds } = useLayout(), { stdout } = use_stdout_default(), isTTY2 = !!stdout.isTTY, loadingBar = new Array(twoThirds).fill(loadingBarChar).join("");
return (noColor ?? !shouldDisplayColors()) && (loadingBar = hillString.repeat(Math.ceil(twoThirds / hillString.length))), import_react59.default.createElement(
Box_default,
{ flexDirection: "column" },
isTTY2 && !noProgressBar && import_react59.default.createElement(TextAnimation, { text: loadingBar, maxWidth: twoThirds }),
import_react59.default.createElement(
Text,
null,
title,
" ..."
)
);
};
// ../cli-kit/dist/private/node/ui/hooks/use-async-and-unmount.js
init_cjs_shims();
var import_react60 = __toESM(require_react(), 1);
function useAsyncAndUnmount(asyncFunction, { onFulfilled = () => {
}, onRejected = () => {
} } = {}) {
let complete = useComplete(), [result, setResult] = (0, import_react60.useState)(null);
(0, import_react60.useEffect)(() => {
asyncFunction().then(() => {
onFulfilled(), setResult({});
}).catch((error) => {
onRejected(error), setResult({ error });
});
}, []), (0, import_react60.useEffect)(() => {
result !== null && complete(result.error);
}, [result]);
}
// ../cli-kit/dist/private/node/ui/hooks/use-exit-on-ctrl-c.js
init_cjs_shims();
function useExitOnCtrlC() {
let { isRawModeSupported } = use_stdin_default();
use_input_default((input, key) => {
if (handleCtrlC(input, key), key.return)
return null;
}, { isActive: !!isRawModeSupported });
}
// ../cli-kit/dist/private/node/ui/components/Tasks.js
var import_react61 = __toESM(require_react(), 1), TasksState;
(function(TasksState2) {
TasksState2.Loading = "loading", TasksState2.Success = "success", TasksState2.Failure = "failure";
})(TasksState || (TasksState = {}));
async function runTask(task, ctx) {
task.retryCount = 0, task.errors = [];
let retry = task.retry && task.retry > 0 ? task.retry + 1 : 1;
for (let retries = 1; retries <= retry; retries++)
try {
return task.skip?.(ctx) ? void 0 : await task.task(ctx, task);
} catch (error) {
if (retries === retry)
throw error;
task.errors.push(error), task.retryCount = retries;
}
}
var noop3 = () => {
};
function Tasks({ tasks, silent = isUnitTest(), onComplete = noop3, abortSignal, noColor, noProgressBar = !1 }) {
let [currentTask, setCurrentTask] = (0, import_react61.useState)(tasks[0]), [state, setState] = (0, import_react61.useState)(TasksState.Loading), ctx = (0, import_react61.useRef)({});
useAsyncAndUnmount(async () => {
for (let task of tasks) {
setCurrentTask(task);
let subTasks = await runTask(task, ctx.current);
if (Array.isArray(subTasks) && subTasks.length > 0 && subTasks.every((task2) => "task" in task2))
for (let subTask of subTasks)
setCurrentTask(subTask), await runTask(subTask, ctx.current);
}
}, {
onFulfilled: () => {
setState(TasksState.Success), onComplete(ctx.current);
},
onRejected: () => {
setState(TasksState.Failure);
}
}), useExitOnCtrlC();
let { isAborted } = useAbortSignal(abortSignal);
if (silent)
return null;
let title = typeof currentTask.title == "string" ? currentTask.title : currentTask.title.value;
return state === TasksState.Loading && !isAborted ? import_react61.default.createElement(LoadingBar, { title, noColor, noProgressBar }) : null;
}
// ../cli-kit/dist/private/node/ui/components/TextPrompt.js
init_cjs_shims();
var import_react62 = __toESM(require_react(), 1);
var TextPrompt = ({ message, onSubmit, validate: validate2, defaultValue = "", password = !1, allowEmpty = !1, emptyDisplayedValue = "(empty)", abortSignal, preview, initialAnswer = "" }) => {
if (password && defaultValue)
throw new Error("Can't use defaultValue with password");
let validateAnswer = (0, import_react62.useCallback)((value) => {
if (validate2)
return validate2(value);
if (value.length === 0 && !allowEmpty)
return "Type an answer to the prompt.";
}, [allowEmpty, validate2]), { oneThird } = useLayout(), { promptState, setPromptState, answer, setAnswer } = usePrompt({
initialAnswer
}), answerOrDefault = answer.length > 0 ? answer : defaultValue, displayEmptyValue = answerOrDefault === "", displayedAnswer = displayEmptyValue ? emptyDisplayedValue : answerOrDefault, complete = useComplete(), [error, setError] = (0, import_react62.useState)(void 0), color = promptState === PromptState.Error ? "red" : "cyan", underline = new Array(oneThird - 3).fill("\u2594"), { isAborted } = useAbortSignal(abortSignal);
return use_input_default((input, key) => {
if (handleCtrlC(input, key), key.return) {
let error2 = validateAnswer(answerOrDefault);
error2 ? (setPromptState(PromptState.Error), setError(error2)) : setPromptState(PromptState.Submitted);
}
}), (0, import_react62.useEffect)(() => {
promptState === PromptState.Submitted && (onSubmit(answerOrDefault), complete());
}, [answerOrDefault, onSubmit, promptState, complete]), isAborted ? null : import_react62.default.createElement(
Box_default,
{ flexDirection: "column", marginBottom: 1, width: oneThird },
import_react62.default.createElement(
Box_default,
null,
import_react62.default.createElement(
Box_default,
{ marginRight: 2 },
import_react62.default.createElement(Text, null, "?")
),
import_react62.default.createElement(TokenizedText, { item: messageWithPunctuation(message) })
),
promptState === PromptState.Submitted ? import_react62.default.createElement(
Box_default,
null,
import_react62.default.createElement(
Box_default,
{ width: 3 },
import_react62.default.createElement(Text, { color: "cyan" }, figures_default.tick)
),
import_react62.default.createElement(
Box_default,
{ flexGrow: 1 },
import_react62.default.createElement(Text, { color: "cyan", dimColor: displayEmptyValue }, password ? "*".repeat(answer.length) : displayedAnswer)
)
) : import_react62.default.createElement(
Box_default,
{ flexDirection: "column" },
import_react62.default.createElement(
Box_default,
null,
import_react62.default.createElement(
Box_default,
{ marginRight: 2 },
import_react62.default.createElement(Text, { color }, ">")
),
import_react62.default.createElement(
Box_default,
{ flexGrow: 1 },
import_react62.default.createElement(TextInput, { value: answer, onChange: (answer2) => {
setAnswer(answer2), setPromptState(PromptState.Idle);
}, defaultValue, color, password })
)
),
import_react62.default.createElement(
Box_default,
{ marginLeft: 3 },
import_react62.default.createElement(Text, { color }, underline)
),
promptState === PromptState.Error ? import_react62.default.createElement(
Box_default,
{ marginLeft: 3 },
import_react62.default.createElement(Text, { color }, error)
) : null,
promptState !== PromptState.Error && preview ? import_react62.default.createElement(
Box_default,
{ marginLeft: 3 },
import_react62.default.createElement(TokenizedText, { item: preview(answerOrDefault) })
) : null
)
);
};
// ../cli-kit/dist/private/node/ui/components/AutocompletePrompt.js
init_cjs_shims();
// ../cli-kit/dist/public/common/function.js
init_cjs_shims();
var import_memoize = __toESM(require_memoize()), import_debounce3 = __toESM(require_debounce()), import_throttle2 = __toESM(require_throttle());
function debounce3(func, wait, options) {
return (0, import_debounce3.default)(func, wait, options);
}
function throttle2(func, wait, options) {
return (0, import_throttle2.default)(func, wait, options);
}
// ../cli-kit/dist/private/node/ui/components/AutocompletePrompt.js
var import_react63 = __toESM(require_react(), 1);
var MIN_NUMBER_OF_ITEMS_FOR_SEARCH = 5, DEFAULT_SEARCH_DEBOUNCE_MS = 400;
function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, hasMorePages: initialHasMorePages = !1, abortSignal, infoMessage, groupOrder, searchDebounceMs = DEFAULT_SEARCH_DEBOUNCE_MS }) {
let complete = useComplete(), [searchTerm, setSearchTerm] = (0, import_react63.useState)(""), [searchResults, setSearchResults] = (0, import_react63.useState)(choices), canSearch = choices.length > MIN_NUMBER_OF_ITEMS_FOR_SEARCH, [hasMorePages, setHasMorePages] = (0, import_react63.useState)(initialHasMorePages), { promptState, setPromptState, answer, setAnswer } = usePrompt({
initialAnswer: void 0
}), paginatedSearch = (0, import_react63.useCallback)(async (term) => await search(term), [search]), submitAnswer = (0, import_react63.useCallback)((answer2) => {
promptState === PromptState.Idle && (setAnswer(answer2), setPromptState(PromptState.Submitted));
}, [promptState, setAnswer, setPromptState]);
(0, import_react63.useEffect)(() => {
promptState === PromptState.Submitted && answer && (setSearchTerm(""), onSubmit(answer.value), complete());
}, [answer, onSubmit, promptState, complete]);
let setLoadingWhenSlow = (0, import_react63.useRef)(), searchTermRef = (0, import_react63.useRef)("");
searchTermRef.current = searchTerm;
let choicesRef = (0, import_react63.useRef)(choices);
choicesRef.current = choices;
let initialHasPagesRef = (0, import_react63.useRef)(initialHasMorePages);
initialHasPagesRef.current = initialHasMorePages;
let debounceSearch = import_react63.default.useMemo(() => throttle2((term) => {
setLoadingWhenSlow.current = setTimeout(() => {
setPromptState(PromptState.Loading);
}, 100), paginatedSearch(term).then((result) => {
searchTermRef.current.length === 0 ? (setSearchResults(choicesRef.current), setHasMorePages(initialHasPagesRef.current)) : (setSearchResults(result.data), setHasMorePages(result.meta?.hasNextPage ?? !1)), setPromptState(PromptState.Idle);
}).catch(() => {
setPromptState(PromptState.Error);
}).finally(() => {
clearTimeout(setLoadingWhenSlow.current);
});
}, searchDebounceMs, { leading: !0, trailing: !0 }), [paginatedSearch, setPromptState, searchDebounceMs]);
return import_react63.default.createElement(PromptLayout, { message, state: promptState, infoTable, infoMessage, abortSignal, header: promptState !== PromptState.Submitted && canSearch ? import_react63.default.createElement(
Box_default,
{ marginLeft: 3 },
import_react63.default.createElement(TextInput, { value: searchTerm, onChange: (term) => {
setSearchTerm(term), searchTermRef.current = term, term.length > 0 ? debounceSearch(term) : (debounceSearch.cancel(), setPromptState(PromptState.Idle), setSearchResults(choices));
}, placeholder: "Type to search..." })
) : null, submittedAnswerLabel: answer?.label, input: import_react63.default.createElement(SelectInput, { items: searchResults, initialItems: choices, enableShortcuts: !1, emptyMessage: "No results found.", highlightedTerm: searchTerm, loading: promptState === PromptState.Loading, errorMessage: promptState === PromptState.Error ? "There has been an error while searching. Please try again later." : void 0, hasMorePages, morePagesMessage: "Find what you're looking for by typing its name.", onSubmit: submitAnswer, groupOrder }) });
}
// ../cli-kit/dist/private/node/ui/components/SingleTask.js
init_cjs_shims();
var import_react64 = __toESM(require_react(), 1);
var SingleTask = ({ task, title, onComplete, onAbort, noColor }) => {
let [status, setStatus] = (0, import_react64.useState)(title), [isDone, setIsDone] = (0, import_react64.useState)(!1), [taskResult, setTaskResult] = (0, import_react64.useState)(null), complete = useComplete(), { isRawModeSupported } = use_stdin_default();
return use_input_default((input, key) => {
onAbort ? handleCtrlC(input, key, onAbort) : handleCtrlC(input, key);
}, { isActive: !!isRawModeSupported }), (0, import_react64.useEffect)(() => {
task(setStatus).then((result) => {
setIsDone(!0), onComplete?.(result), setTaskResult({});
}).catch((error) => {
setIsDone(!0), setTaskResult({ error });
});
}, [task, onComplete]), (0, import_react64.useEffect)(() => {
taskResult !== null && complete(taskResult.error);
}, [taskResult, complete]), isDone ? null : import_react64.default.createElement(LoadingBar, { title: status.value, noColor });
};
// ../cli-kit/dist/public/node/ui.js
var import_react65 = __toESM(require_react(), 1), defaultUIDebugOptions = {
skipTTYCheck: !1
};
async function renderConcurrent({ renderOptions, ...props }) {
let abortSignal = props.abortSignal ?? new AbortController2().signal;
return render2(import_react65.default.createElement(ConcurrentOutput, { ...props, abortSignal }), renderOptions);
}
function renderInfo(options) {
return alert({ ...options, type: "info" });
}
function renderSuccess(options) {
return alert({ ...options, type: "success" });
}
function renderWarning(options) {
return alert({ ...options, type: "warning" });
}
function renderError(options) {
return alert({ ...options, type: "error" });
}
function renderFatalError(error, { renderOptions } = {}) {
return renderOnce(import_react65.default.createElement(FatalError, { error }), { logLevel: "error", renderOptions });
}
async function renderSelectPrompt({ renderOptions, isConfirmationPrompt, ...props }, uiDebugOptions = defaultUIDebugOptions) {
return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions), runWithTimer("cmd_all_timing_prompts_ms")(async () => {
let selectedValue;
return await render2(import_react65.default.createElement(SelectPrompt, { ...props, onSubmit: (value) => {
selectedValue = value;
} }), {
...renderOptions,
exitOnCtrlC: !1
}), selectedValue;
});
}
async function renderConfirmationPrompt({ message, infoTable, confirmationMessage = "Yes, confirm", cancellationMessage = "No, cancel", renderOptions, defaultValue = !0, abortSignal, infoMessage }) {
return renderSelectPrompt({
choices: [
{
label: confirmationMessage,
value: !0,
key: "y"
},
{
label: cancellationMessage,
value: !1,
key: "n"
}
],
message,
infoTable,
renderOptions,
defaultValue,
isConfirmationPrompt: !0,
abortSignal,
infoMessage
});
}
async function renderAutocompletePrompt({ renderOptions, ...props }, uiDebugOptions = defaultUIDebugOptions) {
throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions);
let usingDefaultSearch = props.search === void 0, newProps = {
search(term) {
let lowerTerm = term.toLowerCase();
return Promise.resolve({
data: props.choices.filter((item) => item.label.toLowerCase().includes(lowerTerm) || item.group?.toLowerCase().includes(lowerTerm))
});
},
...usingDefaultSearch ? { searchDebounceMs: 0 } : {},
...props
};
return runWithTimer("cmd_all_timing_prompts_ms")(async () => {
let selectedValue;
if (await render2(import_react65.default.createElement(AutocompletePrompt, { ...newProps, onSubmit: (value) => {
selectedValue = value;
} }), {
...renderOptions,
exitOnCtrlC: !1
}), selectedValue === void 0)
throw new Error("Prompt was interrupted before a selection was made. This can happen if the process received a signal, was terminated, or the prompt was aborted.");
return selectedValue;
});
}
function renderTable({ renderOptions, ...props }) {
return renderOnce(import_react65.default.createElement(Table, { ...props }), { renderOptions });
}
async function renderTasks(tasks, { renderOptions, noProgressBar } = {}) {
let taskResult;
return await render2(import_react65.default.createElement(Tasks, { tasks, onComplete: (ctx) => {
taskResult = ctx;
}, noProgressBar }), {
stdout: process.stderr,
...renderOptions,
exitOnCtrlC: !1
}), taskResult;
}
async function renderSingleTask({ title, task, onAbort, renderOptions }) {
let taskResult;
return await render2(import_react65.default.createElement(SingleTask, { title, task, onComplete: (result) => {
taskResult = result;
}, onAbort }), {
stdout: process.stderr,
...renderOptions,
exitOnCtrlC: !1
}), taskResult;
}
async function renderTextPrompt({ renderOptions, ...props }, uiDebugOptions = defaultUIDebugOptions) {
return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions), runWithTimer("cmd_all_timing_prompts_ms")(async () => {
let enteredText = "";
return await render2(import_react65.default.createElement(TextPrompt, { ...props, onSubmit: (value) => {
enteredText = value;
} }), {
...renderOptions,
exitOnCtrlC: !1
}), enteredText;
});
}
async function renderDangerousConfirmationPrompt({ renderOptions, ...props }, uiDebugOptions = defaultUIDebugOptions) {
return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions), runWithTimer("cmd_all_timing_prompts_ms")(async () => {
let confirmed;
return await render2(import_react65.default.createElement(DangerousConfirmationPrompt, { ...props, onSubmit: (value) => {
confirmed = value;
} }), {
...renderOptions,
exitOnCtrlC: !1
}), confirmed;
});
}
var keypress = async (stdin = process.stdin, uiDebugOptions = defaultUIDebugOptions) => (throwInNonTTY({ message: "Press any key" }, uiDebugOptions), runWithTimer("cmd_all_timing_prompts_ms")(() => new Promise((resolve, reject) => {
let handler = (buffer) => {
stdin.setRawMode(!1);
let bytes = Array.from(buffer);
bytes.length && bytes[0] === 3 && (outputDebug("Canceled keypress, User pressed CTRL+C"), reject(new AbortSilentError())), stdin.unref(), process.nextTick(resolve);
};
stdin.setRawMode(!0), stdin.once("data", handler), stdin.ref();
})));
function isTTY({ stdin = void 0, uiDebugOptions = defaultUIDebugOptions } = {}) {
return !!(uiDebugOptions.skipTTYCheck || stdin || terminalSupportsPrompting());
}
function throwInNonTTY({ message, stdin = void 0 }, uiDebugOptions) {
if (isTTY({ stdin, uiDebugOptions }))
return;
let promptText = tokenItemToString(message), errorMessage = `Failed to prompt:
${outputContent`${outputToken.cyan(promptText)}`.value}
This usually happens when running a command non-interactively, for example in a CI environment, or when piping to or from another process.`;
throw new AbortError(errorMessage, "To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.");
}
export {
AbortController2 as AbortController,
require_baseForOwn,
require_lib,
require_stacktracey,
require_react,
Box_default,
Text,
Static,
use_stdin_default,
use_input_default,
use_stdout_default,
measure_element_default,
render2 as render,
handleCtrlC,
figures_default,
useConcurrentOutputContext,
ConcurrentOutput,
Link,
TabularData,
Alert,
useAbortSignal,
require_baseEach,
debounce3 as debounce,
renderConcurrent,
renderInfo,
renderSuccess,
renderWarning,
renderError,
renderFatalError,
renderSelectPrompt,
renderConfirmationPrompt,
renderAutocompletePrompt,
renderTable,
renderTasks,
renderSingleTask,
renderTextPrompt,
renderDangerousConfirmationPrompt,
keypress,
isTTY,
openURL,
captureOutput,
captureOutputWithExitCode,
captureCommandWithExitCode,
execCommand,
exec,
sleep,
terminalSupportsHyperlinks,
terminalSupportsPrompting,
isCI,
isWsl,
isInsideContainer,
isStdinPiped,
readStdinString
};
/*! Bundled license information:
react/cjs/react.production.js:
(**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react/cjs/react.development.js:
(**
* @license React
* react.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react-reconciler/cjs/react-reconciler-constants.production.js:
(**
* @license React
* react-reconciler-constants.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react-reconciler/cjs/react-reconciler-constants.development.js:
(**
* @license React
* react-reconciler-constants.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
scheduler/cjs/scheduler.production.js:
(**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
scheduler/cjs/scheduler.development.js:
(**
* @license React
* scheduler.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react-reconciler/cjs/react-reconciler.production.js:
(**
* @license React
* react-reconciler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react-reconciler/cjs/react-reconciler.development.js:
(**
* @license React
* react-reconciler.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
*/
//# sourceMappingURL=chunk-TGZSJFOF.js.map