vlt
Version:
The vlt CLI
1,495 lines (1,488 loc) • 533 kB
JavaScript
var global = globalThis;
import {Buffer} from "node:buffer";
import {setTimeout,clearTimeout,setImmediate,clearImmediate,setInterval,clearInterval} from "node:timers";
import {createRequire as _vlt_createRequire} from "node:module";
var require = _vlt_createRequire(import.meta.filename);
import {
require_emoji_regex
} from "./chunk-3X64PWHW.js";
import {
ViewClass,
stdout
} from "./chunk-I5CBBY6I.js";
import {
emitter
} from "./chunk-3RABDTYN.js";
import {
asError
} from "./chunk-X4RDKJKD.js";
import {
ansi_styles_default,
stripAnsi
} from "./chunk-BNCOU5ZT.js";
import {
__commonJS,
__export,
__require,
__toESM
} from "./chunk-AECDW3EJ.js";
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
var require_react_production_min = __commonJS({
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(exports) {
"use strict";
var l = Symbol.for("react.element");
var n = Symbol.for("react.portal");
var p = Symbol.for("react.fragment");
var q = Symbol.for("react.strict_mode");
var r = Symbol.for("react.profiler");
var t = Symbol.for("react.provider");
var u = Symbol.for("react.context");
var v = Symbol.for("react.forward_ref");
var w = Symbol.for("react.suspense");
var x = Symbol.for("react.memo");
var y = Symbol.for("react.lazy");
var z = Symbol.iterator;
function A(a) {
if (null === a || "object" !== typeof a) return null;
a = z && a[z] || a["@@iterator"];
return "function" === typeof a ? a : null;
}
var B = { isMounted: function() {
return false;
}, enqueueForceUpdate: function() {
}, enqueueReplaceState: function() {
}, enqueueSetState: function() {
} };
var C = Object.assign;
var D = {};
function E(a, b, e) {
this.props = a;
this.context = b;
this.refs = D;
this.updater = e || B;
}
E.prototype.isReactComponent = {};
E.prototype.setState = function(a, b) {
if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
this.updater.enqueueSetState(this, a, b, "setState");
};
E.prototype.forceUpdate = function(a) {
this.updater.enqueueForceUpdate(this, a, "forceUpdate");
};
function F() {
}
F.prototype = E.prototype;
function G(a, b, e) {
this.props = a;
this.context = b;
this.refs = D;
this.updater = e || B;
}
var H = G.prototype = new F();
H.constructor = G;
C(H, E.prototype);
H.isPureReactComponent = true;
var I = Array.isArray;
var J = Object.prototype.hasOwnProperty;
var K = { current: null };
var L = { key: true, ref: true, __self: true, __source: true };
function M(a, b, e) {
var d, c = {}, k = null, h = null;
if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
var g = arguments.length - 2;
if (1 === g) c.children = e;
else if (1 < g) {
for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
c.children = f;
}
if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
}
function N(a, b) {
return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
}
function O(a) {
return "object" === typeof a && null !== a && a.$$typeof === l;
}
function escape2(a) {
var b = { "=": "=0", ":": "=2" };
return "$" + a.replace(/[=:]/g, function(a2) {
return b[a2];
});
}
var P = /\/+/g;
function Q(a, b) {
return "object" === typeof a && null !== a && null != a.key ? escape2("" + a.key) : b.toString(36);
}
function R(a, b, e, d, c) {
var k = typeof a;
if ("undefined" === k || "boolean" === k) a = null;
var h = false;
if (null === a) h = true;
else switch (k) {
case "string":
case "number":
h = true;
break;
case "object":
switch (a.$$typeof) {
case l:
case n:
h = true;
}
}
if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
return a2;
})) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
h = 0;
d = "" === d ? "." : d + ":";
if (I(a)) for (var g = 0; g < a.length; g++) {
k = a[g];
var f = d + Q(k, g);
h += R(k, b, e, f, c);
}
else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done; ) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
return h;
}
function S(a, b, e) {
if (null == a) return a;
var d = [], c = 0;
R(a, d, "", "", function(a2) {
return b.call(e, a2, c++);
});
return d;
}
function T(a) {
if (-1 === a._status) {
var b = a._result;
b = b();
b.then(function(b2) {
if (0 === a._status || -1 === a._status) a._status = 1, a._result = b2;
}, function(b2) {
if (0 === a._status || -1 === a._status) a._status = 2, a._result = b2;
});
-1 === a._status && (a._status = 0, a._result = b);
}
if (1 === a._status) return a._result.default;
throw a._result;
}
var U = { current: null };
var V = { transition: null };
var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
function X() {
throw Error("act(...) is not supported in production builds of React.");
}
exports.Children = { map: S, forEach: function(a, b, e) {
S(a, function() {
b.apply(this, arguments);
}, e);
}, count: function(a) {
var b = 0;
S(a, function() {
b++;
});
return b;
}, toArray: function(a) {
return S(a, function(a2) {
return a2;
}) || [];
}, only: function(a) {
if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
return a;
} };
exports.Component = E;
exports.Fragment = p;
exports.Profiler = r;
exports.PureComponent = G;
exports.StrictMode = q;
exports.Suspense = w;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
exports.act = X;
exports.cloneElement = function(a, b, e) {
if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
if (null != b) {
void 0 !== b.ref && (k = b.ref, h = K.current);
void 0 !== b.key && (c = "" + b.key);
if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
}
var f = arguments.length - 2;
if (1 === f) d.children = e;
else if (1 < f) {
g = Array(f);
for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
d.children = g;
}
return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
};
exports.createContext = function(a) {
a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
a.Provider = { $$typeof: t, _context: a };
return a.Consumer = a;
};
exports.createElement = M;
exports.createFactory = function(a) {
var b = M.bind(null, a);
b.type = a;
return b;
};
exports.createRef = function() {
return { current: null };
};
exports.forwardRef = function(a) {
return { $$typeof: v, render: a };
};
exports.isValidElement = O;
exports.lazy = function(a) {
return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
};
exports.memo = function(a, b) {
return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
};
exports.startTransition = function(a) {
var b = V.transition;
V.transition = {};
try {
a();
} finally {
V.transition = b;
}
};
exports.unstable_act = X;
exports.useCallback = function(a, b) {
return U.current.useCallback(a, b);
};
exports.useContext = function(a) {
return U.current.useContext(a);
};
exports.useDebugValue = function() {
};
exports.useDeferredValue = function(a) {
return U.current.useDeferredValue(a);
};
exports.useEffect = function(a, b) {
return U.current.useEffect(a, b);
};
exports.useId = function() {
return U.current.useId();
};
exports.useImperativeHandle = function(a, b, e) {
return U.current.useImperativeHandle(a, b, e);
};
exports.useInsertionEffect = function(a, b) {
return U.current.useInsertionEffect(a, b);
};
exports.useLayoutEffect = function(a, b) {
return U.current.useLayoutEffect(a, b);
};
exports.useMemo = function(a, b) {
return U.current.useMemo(a, b);
};
exports.useReducer = function(a, b, e) {
return U.current.useReducer(a, b, e);
};
exports.useRef = function(a) {
return U.current.useRef(a);
};
exports.useState = function(a) {
return U.current.useState(a);
};
exports.useSyncExternalStore = function(a, b, e) {
return U.current.useSyncExternalStore(a, b, e);
};
exports.useTransition = function() {
return U.current.useTransition();
};
exports.version = "18.3.1";
}
});
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
var require_react = __commonJS({
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(exports, module) {
"use strict";
if (true) {
module.exports = require_react_production_min();
} else {
module.exports = null;
}
}
});
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
var require_signals = __commonJS({
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module) {
module.exports = [
"SIGABRT",
"SIGALRM",
"SIGHUP",
"SIGINT",
"SIGTERM"
];
if (process.platform !== "win32") {
module.exports.push(
"SIGVTALRM",
"SIGXCPU",
"SIGXFSZ",
"SIGUSR2",
"SIGTRAP",
"SIGSYS",
"SIGQUIT",
"SIGIOT"
// should detect profiler and enable/disable accordingly.
// see #21
// 'SIGPROF'
);
}
if (process.platform === "linux") {
module.exports.push(
"SIGIO",
"SIGPOLL",
"SIGPWR",
"SIGSTKFLT",
"SIGUNUSED"
);
}
}
});
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
var require_signal_exit = __commonJS({
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module) {
var process13 = global.process;
var processOk = function(process14) {
return process14 && typeof process14 === "object" && typeof process14.removeListener === "function" && typeof process14.emit === "function" && typeof process14.reallyExit === "function" && typeof process14.listeners === "function" && typeof process14.kill === "function" && typeof process14.pid === "number" && typeof process14.on === "function";
};
if (!processOk(process13)) {
module.exports = function() {
return function() {
};
};
} else {
assert = __require("node:assert");
signals = require_signals();
isWin = /^win/i.test(process13.platform);
EE = __require("node:events");
if (typeof EE !== "function") {
EE = EE.EventEmitter;
}
if (process13.__signal_exit_emitter__) {
emitter2 = process13.__signal_exit_emitter__;
} else {
emitter2 = process13.__signal_exit_emitter__ = new EE();
emitter2.count = 0;
emitter2.emitted = {};
}
if (!emitter2.infinite) {
emitter2.setMaxListeners(Infinity);
emitter2.infinite = true;
}
module.exports = function(cb, opts) {
if (!processOk(global.process)) {
return function() {
};
}
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
if (loaded === false) {
load();
}
var ev = "exit";
if (opts && opts.alwaysLast) {
ev = "afterexit";
}
var remove = function() {
emitter2.removeListener(ev, cb);
if (emitter2.listeners("exit").length === 0 && emitter2.listeners("afterexit").length === 0) {
unload();
}
};
emitter2.on(ev, cb);
return remove;
};
unload = function unload2() {
if (!loaded || !processOk(global.process)) {
return;
}
loaded = false;
signals.forEach(function(sig) {
try {
process13.removeListener(sig, sigListeners[sig]);
} catch (er) {
}
});
process13.emit = originalProcessEmit;
process13.reallyExit = originalProcessReallyExit;
emitter2.count -= 1;
};
module.exports.unload = unload;
emit = function emit2(event, code, signal) {
if (emitter2.emitted[event]) {
return;
}
emitter2.emitted[event] = true;
emitter2.emit(event, code, signal);
};
sigListeners = {};
signals.forEach(function(sig) {
sigListeners[sig] = function listener() {
if (!processOk(global.process)) {
return;
}
var listeners = process13.listeners(sig);
if (listeners.length === emitter2.count) {
unload();
emit("exit", null, sig);
emit("afterexit", null, sig);
if (isWin && sig === "SIGHUP") {
sig = "SIGINT";
}
process13.kill(process13.pid, sig);
}
};
});
module.exports.signals = function() {
return signals;
};
loaded = false;
load = function load2() {
if (loaded || !processOk(global.process)) {
return;
}
loaded = true;
emitter2.count += 1;
signals = signals.filter(function(sig) {
try {
process13.on(sig, sigListeners[sig]);
return true;
} catch (er) {
return false;
}
});
process13.emit = processEmit;
process13.reallyExit = processReallyExit;
};
module.exports.load = load;
originalProcessReallyExit = process13.reallyExit;
processReallyExit = function processReallyExit2(code) {
if (!processOk(global.process)) {
return;
}
process13.exitCode = code || /* istanbul ignore next */
0;
emit("exit", process13.exitCode, null);
emit("afterexit", process13.exitCode, null);
originalProcessReallyExit.call(process13, process13.exitCode);
};
originalProcessEmit = process13.emit;
processEmit = function processEmit2(ev, arg) {
if (ev === "exit" && processOk(global.process)) {
if (arg !== void 0) {
process13.exitCode = arg;
}
var ret = originalProcessEmit.apply(this, arguments);
emit("exit", process13.exitCode, null);
emit("afterexit", process13.exitCode, null);
return ret;
} else {
return originalProcessEmit.apply(this, arguments);
}
};
}
var assert;
var signals;
var isWin;
var EE;
var emitter2;
var unload;
var emit;
var sigListeners;
var loaded;
var load;
var originalProcessReallyExit;
var processReallyExit;
var originalProcessEmit;
var processEmit;
}
});
// ../../node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.production.min.js
var require_scheduler_production_min = __commonJS({
"../../node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.production.min.js"(exports) {
"use strict";
function f(a, b) {
var c = a.length;
a.push(b);
a: for (; 0 < c; ) {
var d = c - 1 >>> 1, e = a[d];
if (0 < g(e, b)) a[d] = b, a[c] = e, c = d;
else break a;
}
}
function h(a) {
return 0 === a.length ? null : a[0];
}
function k(a) {
if (0 === a.length) return null;
var b = a[0], c = a.pop();
if (c !== b) {
a[0] = c;
a: for (var d = 0, e = a.length, w = e >>> 1; d < w; ) {
var m = 2 * (d + 1) - 1, C = a[m], n = m + 1, x = a[n];
if (0 > g(C, c)) n < e && 0 > g(x, C) ? (a[d] = x, a[n] = c, d = n) : (a[d] = C, a[m] = c, d = m);
else if (n < e && 0 > g(x, c)) a[d] = x, a[n] = c, d = n;
else break a;
}
}
return b;
}
function g(a, b) {
var c = a.sortIndex - b.sortIndex;
return 0 !== c ? c : a.id - b.id;
}
if ("object" === typeof performance && "function" === typeof performance.now) {
l = performance;
exports.unstable_now = function() {
return l.now();
};
} else {
p = Date, q = p.now();
exports.unstable_now = function() {
return p.now() - q;
};
}
var l;
var p;
var q;
var r = [];
var t = [];
var u = 1;
var v = null;
var y = 3;
var z = false;
var A = false;
var B = false;
var D = "function" === typeof setTimeout ? setTimeout : null;
var E = "function" === typeof clearTimeout ? clearTimeout : null;
var F = "undefined" !== typeof setImmediate ? setImmediate : null;
"undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
function G(a) {
for (var b = h(t); null !== b; ) {
if (null === b.callback) k(t);
else if (b.startTime <= a) k(t), b.sortIndex = b.expirationTime, f(r, b);
else break;
b = h(t);
}
}
function H(a) {
B = false;
G(a);
if (!A) if (null !== h(r)) A = true, I(J);
else {
var b = h(t);
null !== b && K(H, b.startTime - a);
}
}
function J(a, b) {
A = false;
B && (B = false, E(L), L = -1);
z = true;
var c = y;
try {
G(b);
for (v = h(r); null !== v && (!(v.expirationTime > b) || a && !M()); ) {
var d = v.callback;
if ("function" === typeof d) {
v.callback = null;
y = v.priorityLevel;
var e = d(v.expirationTime <= b);
b = exports.unstable_now();
"function" === typeof e ? v.callback = e : v === h(r) && k(r);
G(b);
} else k(r);
v = h(r);
}
if (null !== v) var w = true;
else {
var m = h(t);
null !== m && K(H, m.startTime - b);
w = false;
}
return w;
} finally {
v = null, y = c, z = false;
}
}
var N = false;
var O = null;
var L = -1;
var P = 5;
var Q = -1;
function M() {
return exports.unstable_now() - Q < P ? false : true;
}
function R() {
if (null !== O) {
var a = exports.unstable_now();
Q = a;
var b = true;
try {
b = O(true, a);
} finally {
b ? S() : (N = false, O = null);
}
} else N = false;
}
var S;
if ("function" === typeof F) S = function() {
F(R);
};
else if ("undefined" !== typeof MessageChannel) {
T = new MessageChannel(), U = T.port2;
T.port1.onmessage = R;
S = function() {
U.postMessage(null);
};
} else S = function() {
D(R, 0);
};
var T;
var U;
function I(a) {
O = a;
N || (N = true, S());
}
function K(a, b) {
L = D(function() {
a(exports.unstable_now());
}, b);
}
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(a) {
a.callback = null;
};
exports.unstable_continueExecution = function() {
A || z || (A = true, I(J));
};
exports.unstable_forceFrameRate = function(a) {
0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a ? Math.floor(1e3 / a) : 5;
};
exports.unstable_getCurrentPriorityLevel = function() {
return y;
};
exports.unstable_getFirstCallbackNode = function() {
return h(r);
};
exports.unstable_next = function(a) {
switch (y) {
case 1:
case 2:
case 3:
var b = 3;
break;
default:
b = y;
}
var c = y;
y = b;
try {
return a();
} finally {
y = c;
}
};
exports.unstable_pauseExecution = function() {
};
exports.unstable_requestPaint = function() {
};
exports.unstable_runWithPriority = function(a, b) {
switch (a) {
case 1:
case 2:
case 3:
case 4:
case 5:
break;
default:
a = 3;
}
var c = y;
y = a;
try {
return b();
} finally {
y = c;
}
};
exports.unstable_scheduleCallback = function(a, b, c) {
var d = exports.unstable_now();
"object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
switch (a) {
case 1:
var e = -1;
break;
case 2:
e = 250;
break;
case 5:
e = 1073741823;
break;
case 4:
e = 1e4;
break;
default:
e = 5e3;
}
e = c + e;
a = { id: u++, callback: b, priorityLevel: a, startTime: c, expirationTime: e, sortIndex: -1 };
c > d ? (a.sortIndex = c, f(t, a), null === h(r) && a === h(t) && (B ? (E(L), L = -1) : B = true, K(H, c - d))) : (a.sortIndex = e, f(r, a), A || z || (A = true, I(J)));
return a;
};
exports.unstable_shouldYield = M;
exports.unstable_wrapCallback = function(a) {
var b = y;
return function() {
var c = y;
y = b;
try {
return a.apply(this, arguments);
} finally {
y = c;
}
};
};
}
});
// ../../node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/index.js
var require_scheduler = __commonJS({
"../../node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/index.js"(exports, module) {
"use strict";
if (true) {
module.exports = require_scheduler_production_min();
} else {
module.exports = null;
}
}
});
// ../../node_modules/.pnpm/react-reconciler@0.29.2_react@18.3.1/node_modules/react-reconciler/cjs/react-reconciler.production.min.js
var require_react_reconciler_production_min = __commonJS({
"../../node_modules/.pnpm/react-reconciler@0.29.2_react@18.3.1/node_modules/react-reconciler/cjs/react-reconciler.production.min.js"(exports, module) {
module.exports = function $$$reconciler($$$hostConfig) {
var exports2 = {};
"use strict";
var aa = require_react(), ba = require_scheduler(), ca = Object.assign;
function n(a) {
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
var da = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, ea = Symbol.for("react.element"), fa = Symbol.for("react.portal"), ha = Symbol.for("react.fragment"), ia = Symbol.for("react.strict_mode"), ja = Symbol.for("react.profiler"), ka = Symbol.for("react.provider"), la = Symbol.for("react.context"), ma = Symbol.for("react.forward_ref"), na = Symbol.for("react.suspense"), oa = Symbol.for("react.suspense_list"), pa = Symbol.for("react.memo"), qa = Symbol.for("react.lazy");
Symbol.for("react.scope");
Symbol.for("react.debug_trace_mode");
var ra = Symbol.for("react.offscreen");
Symbol.for("react.legacy_hidden");
Symbol.for("react.cache");
Symbol.for("react.tracing_marker");
var sa = Symbol.iterator;
function ta(a) {
if (null === a || "object" !== typeof a) return null;
a = sa && a[sa] || a["@@iterator"];
return "function" === typeof a ? a : null;
}
function ua(a) {
if (null == a) return null;
if ("function" === typeof a) return a.displayName || a.name || null;
if ("string" === typeof a) return a;
switch (a) {
case ha:
return "Fragment";
case fa:
return "Portal";
case ja:
return "Profiler";
case ia:
return "StrictMode";
case na:
return "Suspense";
case oa:
return "SuspenseList";
}
if ("object" === typeof a) switch (a.$$typeof) {
case la:
return (a.displayName || "Context") + ".Consumer";
case ka:
return (a._context.displayName || "Context") + ".Provider";
case ma:
var b = a.render;
a = a.displayName;
a || (a = b.displayName || b.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
return a;
case pa:
return b = a.displayName || null, null !== b ? b : ua(a.type) || "Memo";
case qa:
b = a._payload;
a = a._init;
try {
return ua(a(b));
} catch (c) {
}
}
return null;
}
function va(a) {
var b = a.type;
switch (a.tag) {
case 24:
return "Cache";
case 9:
return (b.displayName || "Context") + ".Consumer";
case 10:
return (b._context.displayName || "Context") + ".Provider";
case 18:
return "DehydratedFragment";
case 11:
return a = b.render, a = a.displayName || a.name || "", b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
case 7:
return "Fragment";
case 5:
return b;
case 4:
return "Portal";
case 3:
return "Root";
case 6:
return "Text";
case 16:
return ua(b);
case 8:
return b === ia ? "StrictMode" : "Mode";
case 22:
return "Offscreen";
case 12:
return "Profiler";
case 21:
return "Scope";
case 13:
return "Suspense";
case 19:
return "SuspenseList";
case 25:
return "TracingMarker";
case 1:
case 0:
case 17:
case 2:
case 14:
case 15:
if ("function" === typeof b) return b.displayName || b.name || null;
if ("string" === typeof b) return b;
}
return null;
}
function wa(a) {
var b = a, c = a;
if (a.alternate) for (; b.return; ) b = b.return;
else {
a = b;
do
b = a, 0 !== (b.flags & 4098) && (c = b.return), a = b.return;
while (a);
}
return 3 === b.tag ? c : null;
}
function xa(a) {
if (wa(a) !== a) throw Error(n(188));
}
function za(a) {
var b = a.alternate;
if (!b) {
b = wa(a);
if (null === b) throw Error(n(188));
return b !== a ? null : a;
}
for (var c = a, d = b; ; ) {
var e = c.return;
if (null === e) break;
var f = e.alternate;
if (null === f) {
d = e.return;
if (null !== d) {
c = d;
continue;
}
break;
}
if (e.child === f.child) {
for (f = e.child; f; ) {
if (f === c) return xa(e), a;
if (f === d) return xa(e), b;
f = f.sibling;
}
throw Error(n(188));
}
if (c.return !== d.return) c = e, d = f;
else {
for (var g = false, h = e.child; h; ) {
if (h === c) {
g = true;
c = e;
d = f;
break;
}
if (h === d) {
g = true;
d = e;
c = f;
break;
}
h = h.sibling;
}
if (!g) {
for (h = f.child; h; ) {
if (h === c) {
g = true;
c = f;
d = e;
break;
}
if (h === d) {
g = true;
d = f;
c = e;
break;
}
h = h.sibling;
}
if (!g) throw Error(n(189));
}
}
if (c.alternate !== d) throw Error(n(190));
}
if (3 !== c.tag) throw Error(n(188));
return c.stateNode.current === c ? a : b;
}
function Aa(a) {
a = za(a);
return null !== a ? Ba(a) : null;
}
function Ba(a) {
if (5 === a.tag || 6 === a.tag) return a;
for (a = a.child; null !== a; ) {
var b = Ba(a);
if (null !== b) return b;
a = a.sibling;
}
return null;
}
function Ca(a) {
if (5 === a.tag || 6 === a.tag) return a;
for (a = a.child; null !== a; ) {
if (4 !== a.tag) {
var b = Ca(a);
if (null !== b) return b;
}
a = a.sibling;
}
return null;
}
var Da = Array.isArray, Ea = $$$hostConfig.getPublicInstance, Fa = $$$hostConfig.getRootHostContext, Ga = $$$hostConfig.getChildHostContext, Ha = $$$hostConfig.prepareForCommit, Ia = $$$hostConfig.resetAfterCommit, Ja = $$$hostConfig.createInstance, Ka = $$$hostConfig.appendInitialChild, La = $$$hostConfig.finalizeInitialChildren, Ma = $$$hostConfig.prepareUpdate, Na = $$$hostConfig.shouldSetTextContent, Oa = $$$hostConfig.createTextInstance, Pa = $$$hostConfig.scheduleTimeout, Qa = $$$hostConfig.cancelTimeout, Ra = $$$hostConfig.noTimeout, Sa = $$$hostConfig.isPrimaryRenderer, Ta = $$$hostConfig.supportsMutation, Ua = $$$hostConfig.supportsPersistence, Va = $$$hostConfig.supportsHydration, Wa = $$$hostConfig.getInstanceFromNode, Xa = $$$hostConfig.preparePortalMount, Ya = $$$hostConfig.getCurrentEventPriority, Za = $$$hostConfig.detachDeletedInstance, $a = $$$hostConfig.supportsMicrotasks, ab = $$$hostConfig.scheduleMicrotask, bb = $$$hostConfig.supportsTestSelectors, cb = $$$hostConfig.findFiberRoot, db = $$$hostConfig.getBoundingRect, eb = $$$hostConfig.getTextContent, fb = $$$hostConfig.isHiddenSubtree, gb = $$$hostConfig.matchAccessibilityRole, hb = $$$hostConfig.setFocusIfFocusable, ib = $$$hostConfig.setupIntersectionObserver, jb = $$$hostConfig.appendChild, kb = $$$hostConfig.appendChildToContainer, lb = $$$hostConfig.commitTextUpdate, mb = $$$hostConfig.commitMount, nb = $$$hostConfig.commitUpdate, ob = $$$hostConfig.insertBefore, pb = $$$hostConfig.insertInContainerBefore, qb = $$$hostConfig.removeChild, rb = $$$hostConfig.removeChildFromContainer, sb = $$$hostConfig.resetTextContent, tb = $$$hostConfig.hideInstance, ub = $$$hostConfig.hideTextInstance, vb = $$$hostConfig.unhideInstance, wb = $$$hostConfig.unhideTextInstance, xb = $$$hostConfig.clearContainer, yb = $$$hostConfig.cloneInstance, zb = $$$hostConfig.createContainerChildSet, Ab = $$$hostConfig.appendChildToContainerChildSet, Bb = $$$hostConfig.finalizeContainerChildren, Cb = $$$hostConfig.replaceContainerChildren, Eb = $$$hostConfig.cloneHiddenInstance, Fb = $$$hostConfig.cloneHiddenTextInstance, Gb = $$$hostConfig.canHydrateInstance, Hb = $$$hostConfig.canHydrateTextInstance, Ib = $$$hostConfig.canHydrateSuspenseInstance, Jb = $$$hostConfig.isSuspenseInstancePending, Kb = $$$hostConfig.isSuspenseInstanceFallback, Lb = $$$hostConfig.getSuspenseInstanceFallbackErrorDetails, Mb = $$$hostConfig.registerSuspenseInstanceRetry, Nb = $$$hostConfig.getNextHydratableSibling, Ob = $$$hostConfig.getFirstHydratableChild, Pb = $$$hostConfig.getFirstHydratableChildWithinContainer, Qb = $$$hostConfig.getFirstHydratableChildWithinSuspenseInstance, Rb = $$$hostConfig.hydrateInstance, Sb = $$$hostConfig.hydrateTextInstance, Tb = $$$hostConfig.hydrateSuspenseInstance, Ub = $$$hostConfig.getNextHydratableInstanceAfterSuspenseInstance, Vb = $$$hostConfig.commitHydratedContainer, Wb = $$$hostConfig.commitHydratedSuspenseInstance, Xb = $$$hostConfig.clearSuspenseBoundary, Yb = $$$hostConfig.clearSuspenseBoundaryFromContainer, Zb = $$$hostConfig.shouldDeleteUnhydratedTailInstances, $b = $$$hostConfig.didNotMatchHydratedContainerTextInstance, ac = $$$hostConfig.didNotMatchHydratedTextInstance, bc;
function cc(a) {
if (void 0 === bc) try {
throw Error();
} catch (c) {
var b = c.stack.trim().match(/\n( *(at )?)/);
bc = b && b[1] || "";
}
return "\n" + bc + a;
}
var dc = false;
function ec(a, b) {
if (!a || dc) return "";
dc = true;
var c = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
if (b) if (b = function() {
throw Error();
}, Object.defineProperty(b.prototype, "props", { set: function() {
throw Error();
} }), "object" === typeof Reflect && Reflect.construct) {
try {
Reflect.construct(b, []);
} catch (l) {
var d = l;
}
Reflect.construct(a, [], b);
} else {
try {
b.call();
} catch (l) {
d = l;
}
a.call(b.prototype);
}
else {
try {
throw Error();
} catch (l) {
d = l;
}
a();
}
} catch (l) {
if (l && d && "string" === typeof l.stack) {
for (var e = l.stack.split("\n"), f = d.stack.split("\n"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h]; ) h--;
for (; 1 <= g && 0 <= h; g--, h--) if (e[g] !== f[h]) {
if (1 !== g || 1 !== h) {
do
if (g--, h--, 0 > h || e[g] !== f[h]) {
var k = "\n" + e[g].replace(" at new ", " at ");
a.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a.displayName));
return k;
}
while (1 <= g && 0 <= h);
}
break;
}
}
} finally {
dc = false, Error.prepareStackTrace = c;
}
return (a = a ? a.displayName || a.name : "") ? cc(a) : "";
}
var fc = Object.prototype.hasOwnProperty, gc = [], hc = -1;
function ic(a) {
return { current: a };
}
function q(a) {
0 > hc || (a.current = gc[hc], gc[hc] = null, hc--);
}
function v(a, b) {
hc++;
gc[hc] = a.current;
a.current = b;
}
var jc = {}, x = ic(jc), z = ic(false), kc = jc;
function mc(a, b) {
var c = a.type.contextTypes;
if (!c) return jc;
var d = a.stateNode;
if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext;
var e = {}, f;
for (f in c) e[f] = b[f];
d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e);
return e;
}
function A(a) {
a = a.childContextTypes;
return null !== a && void 0 !== a;
}
function nc() {
q(z);
q(x);
}
function oc(a, b, c) {
if (x.current !== jc) throw Error(n(168));
v(x, b);
v(z, c);
}
function pc(a, b, c) {
var d = a.stateNode;
b = b.childContextTypes;
if ("function" !== typeof d.getChildContext) return c;
d = d.getChildContext();
for (var e in d) if (!(e in b)) throw Error(n(108, va(a) || "Unknown", e));
return ca({}, c, d);
}
function qc(a) {
a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || jc;
kc = x.current;
v(x, a);
v(z, z.current);
return true;
}
function rc(a, b, c) {
var d = a.stateNode;
if (!d) throw Error(n(169));
c ? (a = pc(a, b, kc), d.__reactInternalMemoizedMergedChildContext = a, q(z), q(x), v(x, a)) : q(z);
v(z, c);
}
var tc = Math.clz32 ? Math.clz32 : sc, uc = Math.log, vc = Math.LN2;
function sc(a) {
a >>>= 0;
return 0 === a ? 32 : 31 - (uc(a) / vc | 0) | 0;
}
var wc = 64, xc = 4194304;
function yc(a) {
switch (a & -a) {
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:
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 a & 4194240;
case 4194304:
case 8388608:
case 16777216:
case 33554432:
case 67108864:
return a & 130023424;
case 134217728:
return 134217728;
case 268435456:
return 268435456;
case 536870912:
return 536870912;
case 1073741824:
return 1073741824;
default:
return a;
}
}
function zc(a, b) {
var c = a.pendingLanes;
if (0 === c) return 0;
var d = 0, e = a.suspendedLanes, f = a.pingedLanes, g = c & 268435455;
if (0 !== g) {
var h = g & ~e;
0 !== h ? d = yc(h) : (f &= g, 0 !== f && (d = yc(f)));
} else g = c & ~e, 0 !== g ? d = yc(g) : 0 !== f && (d = yc(f));
if (0 === d) return 0;
if (0 !== b && b !== d && 0 === (b & e) && (e = d & -d, f = b & -b, e >= f || 16 === e && 0 !== (f & 4194240))) return b;
0 !== (d & 4) && (d |= c & 16);
b = a.entangledLanes;
if (0 !== b) for (a = a.entanglements, b &= d; 0 < b; ) c = 31 - tc(b), e = 1 << c, d |= a[c], b &= ~e;
return d;
}
function Ac(a, b) {
switch (a) {
case 1:
case 2:
case 4:
return b + 250;
case 8:
case 16:
case 32:
case 64:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
return b + 5e3;
case 4194304:
case 8388608:
case 16777216:
case 33554432:
case 67108864:
return -1;
case 134217728:
case 268435456:
case 536870912:
case 1073741824:
return -1;
default:
return -1;
}
}
function Bc(a, b) {
for (var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; 0 < f; ) {
var g = 31 - tc(f), h = 1 << g, k = e[g];
if (-1 === k) {
if (0 === (h & c) || 0 !== (h & d)) e[g] = Ac(h, b);
} else k <= b && (a.expiredLanes |= h);
f &= ~h;
}
}
function Cc(a) {
a = a.pendingLanes & -1073741825;
return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0;
}
function Dc() {
var a = wc;
wc <<= 1;
0 === (wc & 4194240) && (wc = 64);
return a;
}
function Ec(a) {
for (var b = [], c = 0; 31 > c; c++) b.push(a);
return b;
}
function Fc(a, b, c) {
a.pendingLanes |= b;
536870912 !== b && (a.suspendedLanes = 0, a.pingedLanes = 0);
a = a.eventTimes;
b = 31 - tc(b);
a[b] = c;
}
function Gc(a, b) {
var c = a.pendingLanes & ~b;
a.pendingLanes = b;
a.suspendedLanes = 0;
a.pingedLanes = 0;
a.expiredLanes &= b;
a.mutableReadLanes &= b;
a.entangledLanes &= b;
b = a.entanglements;
var d = a.eventTimes;
for (a = a.expirationTimes; 0 < c; ) {
var e = 31 - tc(c), f = 1 << e;
b[e] = 0;
d[e] = -1;
a[e] = -1;
c &= ~f;
}
}
function Hc(a, b) {
var c = a.entangledLanes |= b;
for (a = a.entanglements; c; ) {
var d = 31 - tc(c), e = 1 << d;
e & b | a[d] & b && (a[d] |= b);
c &= ~e;
}
}
var C = 0;
function Ic(a) {
a &= -a;
return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1;
}
var Jc = ba.unstable_scheduleCallback, Kc = ba.unstable_cancelCallback, Lc = ba.unstable_shouldYield, Mc = ba.unstable_requestPaint, D = ba.unstable_now, Nc = ba.unstable_ImmediatePriority, Oc = ba.unstable_UserBlockingPriority, Pc = ba.unstable_NormalPriority, Qc = ba.unstable_IdlePriority, Rc = null, Sc = null;
function Tc(a) {
if (Sc && "function" === typeof Sc.onCommitFiberRoot) try {
Sc.onCommitFiberRoot(Rc, a, void 0, 128 === (a.current.flags & 128));
} catch (b) {
}
}
function Uc(a, b) {
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
}
var Vc = "function" === typeof Object.is ? Object.is : Uc, Wc = null, Xc = false, Yc = false;
function Zc(a) {
null === Wc ? Wc = [a] : Wc.push(a);
}
function $c(a) {
Xc = true;
Zc(a);
}
function ad() {
if (!Yc && null !== Wc) {
Yc = true;
var a = 0, b = C;
try {
var c = Wc;
for (C = 1; a < c.length; a++) {
var d = c[a];
do
d = d(true);
while (null !== d);
}
Wc = null;
Xc = false;
} catch (e) {
throw null !== Wc && (Wc = Wc.slice(a + 1)), Jc(Nc, ad), e;
} finally {
C = b, Yc = false;
}
}
return null;
}
var bd = [], cd = 0, dd = null, ed = 0, fd = [], gd = 0, hd = null, id = 1, jd = "";
function kd(a, b) {
bd[cd++] = ed;
bd[cd++] = dd;
dd = a;
ed = b;
}
function ld(a, b, c) {
fd[gd++] = id;
fd[gd++] = jd;
fd[gd++] = hd;
hd = a;
var d = id;
a = jd;
var e = 32 - tc(d) - 1;
d &= ~(1 << e);
c += 1;
var f = 32 - tc(b) + e;
if (30 < f) {
var g = e - e % 5;
f = (d & (1 << g) - 1).toString(32);
d >>= g;
e -= g;
id = 1 << 32 - tc(b) + e | c << e | d;
jd = f + a;
} else id = 1 << f | c << e | d, jd = a;
}
function md(a) {
null !== a.return && (kd(a, 1), ld(a, 1, 0));
}
function nd(a) {
for (; a === dd; ) dd = bd[--cd], bd[cd] = null, ed = bd[--cd], bd[cd] = null;
for (; a === hd; ) hd = fd[--gd], fd[gd] = null, jd = fd[--gd], fd[gd] = null, id = fd[--gd], fd[gd] = null;
}
var od = null, pd = null, F = false, qd = false, rd = null;
function sd(a, b) {
var c = td(5, null, null, 0);
c.elementType = "DELETED";
c.stateNode = b;
c.return = a;
b = a.deletions;
null === b ? (a.deletions = [c], a.flags |= 16) : b.push(c);
}
function ud(a, b) {
switch (a.tag) {
case 5:
return b = Gb(b, a.type, a.pendingProps), null !== b ? (a.stateNode = b, od = a, pd = Ob(b), true) : false;
case 6:
return b = Hb(b, a.pendingProps), null !== b ? (a.stateNode = b, od = a, pd = null, true) : false;
case 13:
b = Ib(b);
if (null !== b) {
var c = null !== hd ? { id, overflow: jd } : null;
a.memoizedState = { dehydrated: b, treeContext: c, retryLane: 1073741824 };
c = td(18, null, null, 0);
c.stateNode = b;
c.return = a;
a.child = c;
od = a;
pd = null;
return true;
}
return false;
default:
return false;
}
}
function vd(a) {
return 0 !== (a.mode & 1) && 0 === (a.flags & 128);
}
function wd(a) {
if (F) {
var b = pd;
if (b) {
var c = b;
if (!ud(a, b)) {
if (vd(a)) throw Error(n(418));
b = Nb(c);
var d = od;
b && ud(a, b) ? sd(d, c) : (a.flags = a.flags & -4097 | 2, F = false, od = a);
}
} else {
if (vd(a)) throw Error(n(418));
a.flags = a.flags & -4097 | 2;
F = false;
od = a;
}
}
}
function xd(a) {
for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag; ) a = a.return;
od = a;
}
function yd(a) {
if (!Va || a !== od) return false;
if (!F) return xd(a), F = true, false;
if (3 !== a.tag && (5 !== a.tag || Zb(a.type) && !Na(a.type, a.memoizedProps))) {
var b = pd;
if (b) {
if (vd(a)) throw zd(), Error(n(418));
for (; b; ) sd(a, b), b = Nb(b);
}
}
xd(a);
if (13 === a.tag) {
if (!Va) throw Error(n(316));
a = a.memoizedState;
a = null !== a ? a.dehydrated : null;
if (!a) throw Error(n(317));
pd = Ub(a);
} else pd = od ? Nb(a.stateNode) : null;
return true;
}
function zd() {
for (var a = pd; a; ) a = Nb(a);
}
function Ad() {
Va && (pd = od = null, qd = F = false);
}
function Bd(a) {
null === rd ? rd = [a] : rd.push(a);
}
var Cd = da.ReactCurrentBatchConfig;
function Dd(a, b) {
if (Vc(a, b)) return true;
if ("object" !== typeof a || null === a || "object" !== typeof b || null === b) return false;
var c = Object.keys(a), d = Object.keys(b);
if (c.length !== d.length) return false;
for (d = 0; d < c.length; d++) {
var e = c[d];
if (!fc.call(b, e) || !Vc(a[e], b[e])) return false;
}
return true;
}
function Ed(a) {
switch (a.tag) {
case 5:
return cc(a.type);
case 16:
return cc("Lazy");
case 13:
return cc("Suspense");
case 19:
return cc("SuspenseList");
case 0:
case 2:
case 15:
return a = ec(a.type, false), a;
case 11:
return a = ec(a.type.render, false), a;
case 1:
return a = ec(a.type, true), a;
default:
return "";
}
}
function Fd(a, b, c) {
a = c.ref;
if (null !== a && "function" !== typeof a && "object" !== typeof a) {
if (c._owner) {
c = c._owner;
if (c) {
if (1 !== c.tag) throw Error(n(309));
var d = c.stateNode;
}
if (!d) thr