soda-material
Version:
A React(>=18) component library that may follow [Material Design 3](https://m3.material.io/components) (a.k.a. Material You)
1,557 lines (1,554 loc) • 856 kB
JavaScript
import * as ot from "react";
import td, { forwardRef as xt, useRef as vr, useEffect as si, useImperativeHandle as Dv, useState as nn, createElement as _M, useLayoutEffect as Zy, createContext as _w, useContext as hx, useCallback as Hy, useSyncExternalStore as kM } from "react";
function kw(u) {
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
}
var nx = { exports: {} }, xv = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ET;
function DM() {
return ET || (ET = 1, process.env.NODE_ENV !== "production" && function() {
var u = td, c = Symbol.for("react.element"), d = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), T = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), L = Symbol.iterator, Y = "@@iterator";
function G(N) {
if (N === null || typeof N != "object")
return null;
var de = L && N[L] || N[Y];
return typeof de == "function" ? de : null;
}
var X = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function Z(N) {
{
for (var de = arguments.length, Re = new Array(de > 1 ? de - 1 : 0), Je = 1; Je < de; Je++)
Re[Je - 1] = arguments[Je];
re("error", N, Re);
}
}
function re(N, de, Re) {
{
var Je = X.ReactDebugCurrentFrame, mt = Je.getStackAddendum();
mt !== "" && (de += "%s", Re = Re.concat([mt]));
var Ot = Re.map(function(yt) {
return String(yt);
});
Ot.unshift("Warning: " + de), Function.prototype.apply.call(console[N], console, Ot);
}
}
var se = !1, $ = !1, xe = !1, oe = !1, _e = !1, Pe;
Pe = Symbol.for("react.module.reference");
function Qe(N) {
return !!(typeof N == "string" || typeof N == "function" || N === h || N === x || _e || N === S || N === _ || N === A || oe || N === M || se || $ || xe || typeof N == "object" && N !== null && (N.$$typeof === F || N.$$typeof === D || N.$$typeof === m || N.$$typeof === T || N.$$typeof === R || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
N.$$typeof === Pe || N.getModuleId !== void 0));
}
function ge(N, de, Re) {
var Je = N.displayName;
if (Je)
return Je;
var mt = de.displayName || de.name || "";
return mt !== "" ? Re + "(" + mt + ")" : Re;
}
function Ye(N) {
return N.displayName || "Context";
}
function ke(N) {
if (N == null)
return null;
if (typeof N.tag == "number" && Z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof N == "function")
return N.displayName || N.name || null;
if (typeof N == "string")
return N;
switch (N) {
case h:
return "Fragment";
case d:
return "Portal";
case x:
return "Profiler";
case S:
return "StrictMode";
case _:
return "Suspense";
case A:
return "SuspenseList";
}
if (typeof N == "object")
switch (N.$$typeof) {
case T:
var de = N;
return Ye(de) + ".Consumer";
case m:
var Re = N;
return Ye(Re._context) + ".Provider";
case R:
return ge(N, N.render, "ForwardRef");
case D:
var Je = N.displayName || null;
return Je !== null ? Je : ke(N.type) || "Memo";
case F: {
var mt = N, Ot = mt._payload, yt = mt._init;
try {
return ke(yt(Ot));
} catch {
return null;
}
}
}
return null;
}
var Se = Object.assign, tt = 0, Ee, Ke, le, Le, H, ue, ae;
function ne() {
}
ne.__reactDisabledLog = !0;
function me() {
{
if (tt === 0) {
Ee = console.log, Ke = console.info, le = console.warn, Le = console.error, H = console.group, ue = console.groupCollapsed, ae = console.groupEnd;
var N = {
configurable: !0,
enumerable: !0,
value: ne,
writable: !0
};
Object.defineProperties(console, {
info: N,
log: N,
warn: N,
error: N,
group: N,
groupCollapsed: N,
groupEnd: N
});
}
tt++;
}
}
function De() {
{
if (tt--, tt === 0) {
var N = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: Se({}, N, {
value: Ee
}),
info: Se({}, N, {
value: Ke
}),
warn: Se({}, N, {
value: le
}),
error: Se({}, N, {
value: Le
}),
group: Se({}, N, {
value: H
}),
groupCollapsed: Se({}, N, {
value: ue
}),
groupEnd: Se({}, N, {
value: ae
})
});
}
tt < 0 && Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var Te = X.ReactCurrentDispatcher, Oe;
function Ve(N, de, Re) {
{
if (Oe === void 0)
try {
throw Error();
} catch (mt) {
var Je = mt.stack.trim().match(/\n( *(at )?)/);
Oe = Je && Je[1] || "";
}
return `
` + Oe + N;
}
}
var nt = !1, ut;
{
var Tt = typeof WeakMap == "function" ? WeakMap : Map;
ut = new Tt();
}
function ye(N, de) {
if (!N || nt)
return "";
{
var Re = ut.get(N);
if (Re !== void 0)
return Re;
}
var Je;
nt = !0;
var mt = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var Ot;
Ot = Te.current, Te.current = null, me();
try {
if (de) {
var yt = function() {
throw Error();
};
if (Object.defineProperty(yt.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(yt, []);
} catch (Mt) {
Je = Mt;
}
Reflect.construct(N, [], yt);
} else {
try {
yt.call();
} catch (Mt) {
Je = Mt;
}
N.call(yt.prototype);
}
} else {
try {
throw Error();
} catch (Mt) {
Je = Mt;
}
N();
}
} catch (Mt) {
if (Mt && Je && typeof Mt.stack == "string") {
for (var rt = Mt.stack.split(`
`), Pn = Je.stack.split(`
`), an = rt.length - 1, on = Pn.length - 1; an >= 1 && on >= 0 && rt[an] !== Pn[on]; )
on--;
for (; an >= 1 && on >= 0; an--, on--)
if (rt[an] !== Pn[on]) {
if (an !== 1 || on !== 1)
do
if (an--, on--, on < 0 || rt[an] !== Pn[on]) {
var hr = `
` + rt[an].replace(" at new ", " at ");
return N.displayName && hr.includes("<anonymous>") && (hr = hr.replace("<anonymous>", N.displayName)), typeof N == "function" && ut.set(N, hr), hr;
}
while (an >= 1 && on >= 0);
break;
}
}
} finally {
nt = !1, Te.current = Ot, De(), Error.prepareStackTrace = mt;
}
var Ii = N ? N.displayName || N.name : "", ec = Ii ? Ve(Ii) : "";
return typeof N == "function" && ut.set(N, ec), ec;
}
function Dt(N, de, Re) {
return ye(N, !1);
}
function rn(N) {
var de = N.prototype;
return !!(de && de.isReactComponent);
}
function bn(N, de, Re) {
if (N == null)
return "";
if (typeof N == "function")
return ye(N, rn(N));
if (typeof N == "string")
return Ve(N);
switch (N) {
case _:
return Ve("Suspense");
case A:
return Ve("SuspenseList");
}
if (typeof N == "object")
switch (N.$$typeof) {
case R:
return Dt(N.render);
case D:
return bn(N.type, de, Re);
case F: {
var Je = N, mt = Je._payload, Ot = Je._init;
try {
return bn(Ot(mt), de, Re);
} catch {
}
}
}
return "";
}
var ar = Object.prototype.hasOwnProperty, ir = {}, aa = X.ReactDebugCurrentFrame;
function Da(N) {
if (N) {
var de = N._owner, Re = bn(N.type, N._source, de ? de.type : null);
aa.setExtraStackFrame(Re);
} else
aa.setExtraStackFrame(null);
}
function fi(N, de, Re, Je, mt) {
{
var Ot = Function.call.bind(ar);
for (var yt in N)
if (Ot(N, yt)) {
var rt = void 0;
try {
if (typeof N[yt] != "function") {
var Pn = Error((Je || "React class") + ": " + Re + " type `" + yt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof N[yt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw Pn.name = "Invariant Violation", Pn;
}
rt = N[yt](de, yt, Je, Re, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (an) {
rt = an;
}
rt && !(rt instanceof Error) && (Da(mt), Z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Je || "React class", Re, yt, typeof rt), Da(null)), rt instanceof Error && !(rt.message in ir) && (ir[rt.message] = !0, Da(mt), Z("Failed %s type: %s", Re, rt.message), Da(null));
}
}
}
var Wa = Array.isArray;
function Oa(N) {
return Wa(N);
}
function $r(N) {
{
var de = typeof Symbol == "function" && Symbol.toStringTag, Re = de && N[Symbol.toStringTag] || N.constructor.name || "Object";
return Re;
}
}
function Qa(N) {
try {
return Br(N), !1;
} catch {
return !0;
}
}
function Br(N) {
return "" + N;
}
function Na(N) {
if (Qa(N))
return Z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $r(N)), Br(N);
}
var Tn = X.ReactCurrentOwner, Vr = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, $i, Ma, we;
we = {};
function qe(N) {
if (ar.call(N, "ref")) {
var de = Object.getOwnPropertyDescriptor(N, "ref").get;
if (de && de.isReactWarning)
return !1;
}
return N.ref !== void 0;
}
function gt(N) {
if (ar.call(N, "key")) {
var de = Object.getOwnPropertyDescriptor(N, "key").get;
if (de && de.isReactWarning)
return !1;
}
return N.key !== void 0;
}
function Pt(N, de) {
if (typeof N.ref == "string" && Tn.current && de && Tn.current.stateNode !== de) {
var Re = ke(Tn.current.type);
we[Re] || (Z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ke(Tn.current.type), N.ref), we[Re] = !0);
}
}
function cn(N, de) {
{
var Re = function() {
$i || ($i = !0, Z("%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://reactjs.org/link/special-props)", de));
};
Re.isReactWarning = !0, Object.defineProperty(N, "key", {
get: Re,
configurable: !0
});
}
}
function Un(N, de) {
{
var Re = function() {
Ma || (Ma = !0, Z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", de));
};
Re.isReactWarning = !0, Object.defineProperty(N, "ref", {
get: Re,
configurable: !0
});
}
}
var Sn = function(N, de, Re, Je, mt, Ot, yt) {
var rt = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: c,
// Built-in properties that belong on the element
type: N,
key: de,
ref: Re,
props: yt,
// Record the component responsible for creating this element.
_owner: Ot
};
return rt._store = {}, Object.defineProperty(rt._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(rt, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: Je
}), Object.defineProperty(rt, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: mt
}), Object.freeze && (Object.freeze(rt.props), Object.freeze(rt)), rt;
};
function Rr(N, de, Re, Je, mt) {
{
var Ot, yt = {}, rt = null, Pn = null;
Re !== void 0 && (Na(Re), rt = "" + Re), gt(de) && (Na(de.key), rt = "" + de.key), qe(de) && (Pn = de.ref, Pt(de, mt));
for (Ot in de)
ar.call(de, Ot) && !Vr.hasOwnProperty(Ot) && (yt[Ot] = de[Ot]);
if (N && N.defaultProps) {
var an = N.defaultProps;
for (Ot in an)
yt[Ot] === void 0 && (yt[Ot] = an[Ot]);
}
if (rt || Pn) {
var on = typeof N == "function" ? N.displayName || N.name || "Unknown" : N;
rt && cn(yt, on), Pn && Un(yt, on);
}
return Sn(N, rt, Pn, mt, Je, Tn.current, yt);
}
}
var qt = X.ReactCurrentOwner, Ir = X.ReactDebugCurrentFrame;
function Yt(N) {
if (N) {
var de = N._owner, Re = bn(N.type, N._source, de ? de.type : null);
Ir.setExtraStackFrame(Re);
} else
Ir.setExtraStackFrame(null);
}
var Xt;
Xt = !1;
function Tl(N) {
return typeof N == "object" && N !== null && N.$$typeof === c;
}
function Do() {
{
if (qt.current) {
var N = ke(qt.current.type);
if (N)
return `
Check the render method of \`` + N + "`.";
}
return "";
}
}
function wl(N) {
{
if (N !== void 0) {
var de = N.fileName.replace(/^.*[\\\/]/, ""), Re = N.lineNumber;
return `
Check your code at ` + de + ":" + Re + ".";
}
return "";
}
}
var Lu = {};
function Js(N) {
{
var de = Do();
if (!de) {
var Re = typeof N == "string" ? N : N.displayName || N.name;
Re && (de = `
Check the top-level render call using <` + Re + ">.");
}
return de;
}
}
function Oo(N, de) {
{
if (!N._store || N._store.validated || N.key != null)
return;
N._store.validated = !0;
var Re = Js(de);
if (Lu[Re])
return;
Lu[Re] = !0;
var Je = "";
N && N._owner && N._owner !== qt.current && (Je = " It was passed a child from " + ke(N._owner.type) + "."), Yt(N), Z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Re, Je), Yt(null);
}
}
function Rl(N, de) {
{
if (typeof N != "object")
return;
if (Oa(N))
for (var Re = 0; Re < N.length; Re++) {
var Je = N[Re];
Tl(Je) && Oo(Je, de);
}
else if (Tl(N))
N._store && (N._store.validated = !0);
else if (N) {
var mt = G(N);
if (typeof mt == "function" && mt !== N.entries)
for (var Ot = mt.call(N), yt; !(yt = Ot.next()).done; )
Tl(yt.value) && Oo(yt.value, de);
}
}
}
function No(N) {
{
var de = N.type;
if (de == null || typeof de == "string")
return;
var Re;
if (typeof de == "function")
Re = de.propTypes;
else if (typeof de == "object" && (de.$$typeof === R || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
de.$$typeof === D))
Re = de.propTypes;
else
return;
if (Re) {
var Je = ke(de);
fi(Re, N.props, "prop", Je, N);
} else if (de.PropTypes !== void 0 && !Xt) {
Xt = !0;
var mt = ke(de);
Z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", mt || "Unknown");
}
typeof de.getDefaultProps == "function" && !de.getDefaultProps.isReactClassApproved && Z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function _l(N) {
{
for (var de = Object.keys(N.props), Re = 0; Re < de.length; Re++) {
var Je = de[Re];
if (Je !== "children" && Je !== "key") {
Yt(N), Z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Je), Yt(null);
break;
}
}
N.ref !== null && (Yt(N), Z("Invalid attribute `ref` supplied to `React.Fragment`."), Yt(null));
}
}
function Ga(N, de, Re, Je, mt, Ot) {
{
var yt = Qe(N);
if (!yt) {
var rt = "";
(N === void 0 || typeof N == "object" && N !== null && Object.keys(N).length === 0) && (rt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var Pn = wl(mt);
Pn ? rt += Pn : rt += Do();
var an;
N === null ? an = "null" : Oa(N) ? an = "array" : N !== void 0 && N.$$typeof === c ? (an = "<" + (ke(N.type) || "Unknown") + " />", rt = " Did you accidentally export a JSX literal instead of a component?") : an = typeof N, Z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", an, rt);
}
var on = Rr(N, de, Re, mt, Ot);
if (on == null)
return on;
if (yt) {
var hr = de.children;
if (hr !== void 0)
if (Je)
if (Oa(hr)) {
for (var Ii = 0; Ii < hr.length; Ii++)
Rl(hr[Ii], N);
Object.freeze && Object.freeze(hr);
} else
Z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Rl(hr, N);
}
return N === h ? _l(on) : No(on), on;
}
}
function Bi(N, de, Re) {
return Ga(N, de, Re, !0);
}
function Yr(N, de, Re) {
return Ga(N, de, Re, !1);
}
var ja = Yr, Vi = Bi;
xv.Fragment = h, xv.jsx = ja, xv.jsxs = Vi;
}()), xv;
}
var Ev = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var CT;
function OM() {
if (CT)
return Ev;
CT = 1;
var u = td, c = Symbol.for("react.element"), d = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, S = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
function m(T, R, _) {
var A, D = {}, F = null, M = null;
_ !== void 0 && (F = "" + _), R.key !== void 0 && (F = "" + R.key), R.ref !== void 0 && (M = R.ref);
for (A in R)
h.call(R, A) && !x.hasOwnProperty(A) && (D[A] = R[A]);
if (T && T.defaultProps)
for (A in R = T.defaultProps, R)
D[A] === void 0 && (D[A] = R[A]);
return { $$typeof: c, type: T, key: F, ref: M, props: D, _owner: S.current };
}
return Ev.Fragment = d, Ev.jsx = m, Ev.jsxs = m, Ev;
}
process.env.NODE_ENV === "production" ? nx.exports = OM() : nx.exports = DM();
var O = nx.exports;
function Dw(u) {
var c, d, h = "";
if (typeof u == "string" || typeof u == "number")
h += u;
else if (typeof u == "object")
if (Array.isArray(u))
for (c = 0; c < u.length; c++)
u[c] && (d = Dw(u[c])) && (h && (h += " "), h += d);
else
for (c in u)
u[c] && (h && (h += " "), h += c);
return h;
}
function wt() {
for (var u, c, d = 0, h = ""; d < arguments.length; )
(u = arguments[d++]) && (c = Dw(u)) && (h && (h += " "), h += c);
return h;
}
var rx = { exports: {} }, wa = {}, Ly = { exports: {} }, H1 = {};
/**
* @license React
* scheduler.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var bT;
function NM() {
return bT || (bT = 1, function(u) {
process.env.NODE_ENV !== "production" && function() {
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
var c = !1, d = !1, h = 5;
function S(we, qe) {
var gt = we.length;
we.push(qe), T(we, qe, gt);
}
function x(we) {
return we.length === 0 ? null : we[0];
}
function m(we) {
if (we.length === 0)
return null;
var qe = we[0], gt = we.pop();
return gt !== qe && (we[0] = gt, R(we, gt, 0)), qe;
}
function T(we, qe, gt) {
for (var Pt = gt; Pt > 0; ) {
var cn = Pt - 1 >>> 1, Un = we[cn];
if (_(Un, qe) > 0)
we[cn] = qe, we[Pt] = Un, Pt = cn;
else
return;
}
}
function R(we, qe, gt) {
for (var Pt = gt, cn = we.length, Un = cn >>> 1; Pt < Un; ) {
var Sn = (Pt + 1) * 2 - 1, Rr = we[Sn], qt = Sn + 1, Ir = we[qt];
if (_(Rr, qe) < 0)
qt < cn && _(Ir, Rr) < 0 ? (we[Pt] = Ir, we[qt] = qe, Pt = qt) : (we[Pt] = Rr, we[Sn] = qe, Pt = Sn);
else if (qt < cn && _(Ir, qe) < 0)
we[Pt] = Ir, we[qt] = qe, Pt = qt;
else
return;
}
}
function _(we, qe) {
var gt = we.sortIndex - qe.sortIndex;
return gt !== 0 ? gt : we.id - qe.id;
}
var A = 1, D = 2, F = 3, M = 4, L = 5;
function Y(we, qe) {
}
var G = typeof performance == "object" && typeof performance.now == "function";
if (G) {
var X = performance;
u.unstable_now = function() {
return X.now();
};
} else {
var Z = Date, re = Z.now();
u.unstable_now = function() {
return Z.now() - re;
};
}
var se = 1073741823, $ = -1, xe = 250, oe = 5e3, _e = 1e4, Pe = se, Qe = [], ge = [], Ye = 1, ke = null, Se = F, tt = !1, Ee = !1, Ke = !1, le = typeof setTimeout == "function" ? setTimeout : null, Le = typeof clearTimeout == "function" ? clearTimeout : null, H = typeof setImmediate < "u" ? setImmediate : null;
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
function ue(we) {
for (var qe = x(ge); qe !== null; ) {
if (qe.callback === null)
m(ge);
else if (qe.startTime <= we)
m(ge), qe.sortIndex = qe.expirationTime, S(Qe, qe);
else
return;
qe = x(ge);
}
}
function ae(we) {
if (Ke = !1, ue(we), !Ee)
if (x(Qe) !== null)
Ee = !0, Na(ne);
else {
var qe = x(ge);
qe !== null && Tn(ae, qe.startTime - we);
}
}
function ne(we, qe) {
Ee = !1, Ke && (Ke = !1, Vr()), tt = !0;
var gt = Se;
try {
var Pt;
if (!d)
return me(we, qe);
} finally {
ke = null, Se = gt, tt = !1;
}
}
function me(we, qe) {
var gt = qe;
for (ue(gt), ke = x(Qe); ke !== null && !c && !(ke.expirationTime > gt && (!we || Da())); ) {
var Pt = ke.callback;
if (typeof Pt == "function") {
ke.callback = null, Se = ke.priorityLevel;
var cn = ke.expirationTime <= gt, Un = Pt(cn);
gt = u.unstable_now(), typeof Un == "function" ? ke.callback = Un : ke === x(Qe) && m(Qe), ue(gt);
} else
m(Qe);
ke = x(Qe);
}
if (ke !== null)
return !0;
var Sn = x(ge);
return Sn !== null && Tn(ae, Sn.startTime - gt), !1;
}
function De(we, qe) {
switch (we) {
case A:
case D:
case F:
case M:
case L:
break;
default:
we = F;
}
var gt = Se;
Se = we;
try {
return qe();
} finally {
Se = gt;
}
}
function Te(we) {
var qe;
switch (Se) {
case A:
case D:
case F:
qe = F;
break;
default:
qe = Se;
break;
}
var gt = Se;
Se = qe;
try {
return we();
} finally {
Se = gt;
}
}
function Oe(we) {
var qe = Se;
return function() {
var gt = Se;
Se = qe;
try {
return we.apply(this, arguments);
} finally {
Se = gt;
}
};
}
function Ve(we, qe, gt) {
var Pt = u.unstable_now(), cn;
if (typeof gt == "object" && gt !== null) {
var Un = gt.delay;
typeof Un == "number" && Un > 0 ? cn = Pt + Un : cn = Pt;
} else
cn = Pt;
var Sn;
switch (we) {
case A:
Sn = $;
break;
case D:
Sn = xe;
break;
case L:
Sn = Pe;
break;
case M:
Sn = _e;
break;
case F:
default:
Sn = oe;
break;
}
var Rr = cn + Sn, qt = {
id: Ye++,
callback: qe,
priorityLevel: we,
startTime: cn,
expirationTime: Rr,
sortIndex: -1
};
return cn > Pt ? (qt.sortIndex = cn, S(ge, qt), x(Qe) === null && qt === x(ge) && (Ke ? Vr() : Ke = !0, Tn(ae, cn - Pt))) : (qt.sortIndex = Rr, S(Qe, qt), !Ee && !tt && (Ee = !0, Na(ne))), qt;
}
function nt() {
}
function ut() {
!Ee && !tt && (Ee = !0, Na(ne));
}
function Tt() {
return x(Qe);
}
function ye(we) {
we.callback = null;
}
function Dt() {
return Se;
}
var rn = !1, bn = null, ar = -1, ir = h, aa = -1;
function Da() {
var we = u.unstable_now() - aa;
return !(we < ir);
}
function fi() {
}
function Wa(we) {
if (we < 0 || we > 125) {
console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");
return;
}
we > 0 ? ir = Math.floor(1e3 / we) : ir = h;
}
var Oa = function() {
if (bn !== null) {
var we = u.unstable_now();
aa = we;
var qe = !0, gt = !0;
try {
gt = bn(qe, we);
} finally {
gt ? $r() : (rn = !1, bn = null);
}
} else
rn = !1;
}, $r;
if (typeof H == "function")
$r = function() {
H(Oa);
};
else if (typeof MessageChannel < "u") {
var Qa = new MessageChannel(), Br = Qa.port2;
Qa.port1.onmessage = Oa, $r = function() {
Br.postMessage(null);
};
} else
$r = function() {
le(Oa, 0);
};
function Na(we) {
bn = we, rn || (rn = !0, $r());
}
function Tn(we, qe) {
ar = le(function() {
we(u.unstable_now());
}, qe);
}
function Vr() {
Le(ar), ar = -1;
}
var $i = fi, Ma = null;
u.unstable_IdlePriority = L, u.unstable_ImmediatePriority = A, u.unstable_LowPriority = M, u.unstable_NormalPriority = F, u.unstable_Profiling = Ma, u.unstable_UserBlockingPriority = D, u.unstable_cancelCallback = ye, u.unstable_continueExecution = ut, u.unstable_forceFrameRate = Wa, u.unstable_getCurrentPriorityLevel = Dt, u.unstable_getFirstCallbackNode = Tt, u.unstable_next = Te, u.unstable_pauseExecution = nt, u.unstable_requestPaint = $i, u.unstable_runWithPriority = De, u.unstable_scheduleCallback = Ve, u.unstable_shouldYield = Da, u.unstable_wrapCallback = Oe, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}();
}(H1)), H1;
}
var $1 = {};
/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var TT;
function MM() {
return TT || (TT = 1, function(u) {
function c(le, Le) {
var H = le.length;
le.push(Le);
e:
for (; 0 < H; ) {
var ue = H - 1 >>> 1, ae = le[ue];
if (0 < S(ae, Le))
le[ue] = Le, le[H] = ae, H = ue;
else
break e;
}
}
function d(le) {
return le.length === 0 ? null : le[0];
}
function h(le) {
if (le.length === 0)
return null;
var Le = le[0], H = le.pop();
if (H !== Le) {
le[0] = H;
e:
for (var ue = 0, ae = le.length, ne = ae >>> 1; ue < ne; ) {
var me = 2 * (ue + 1) - 1, De = le[me], Te = me + 1, Oe = le[Te];
if (0 > S(De, H))
Te < ae && 0 > S(Oe, De) ? (le[ue] = Oe, le[Te] = H, ue = Te) : (le[ue] = De, le[me] = H, ue = me);
else if (Te < ae && 0 > S(Oe, H))
le[ue] = Oe, le[Te] = H, ue = Te;
else
break e;
}
}
return Le;
}
function S(le, Le) {
var H = le.sortIndex - Le.sortIndex;
return H !== 0 ? H : le.id - Le.id;
}
if (typeof performance == "object" && typeof performance.now == "function") {
var x = performance;
u.unstable_now = function() {
return x.now();
};
} else {
var m = Date, T = m.now();
u.unstable_now = function() {
return m.now() - T;
};
}
var R = [], _ = [], A = 1, D = null, F = 3, M = !1, L = !1, Y = !1, G = typeof setTimeout == "function" ? setTimeout : null, X = typeof clearTimeout == "function" ? clearTimeout : null, Z = typeof setImmediate < "u" ? setImmediate : null;
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
function re(le) {
for (var Le = d(_); Le !== null; ) {
if (Le.callback === null)
h(_);
else if (Le.startTime <= le)
h(_), Le.sortIndex = Le.expirationTime, c(R, Le);
else
break;
Le = d(_);
}
}
function se(le) {
if (Y = !1, re(le), !L)
if (d(R) !== null)
L = !0, Ee($);
else {
var Le = d(_);
Le !== null && Ke(se, Le.startTime - le);
}
}
function $(le, Le) {
L = !1, Y && (Y = !1, X(_e), _e = -1), M = !0;
var H = F;
try {
for (re(Le), D = d(R); D !== null && (!(D.expirationTime > Le) || le && !ge()); ) {
var ue = D.callback;
if (typeof ue == "function") {
D.callback = null, F = D.priorityLevel;
var ae = ue(D.expirationTime <= Le);
Le = u.unstable_now(), typeof ae == "function" ? D.callback = ae : D === d(R) && h(R), re(Le);
} else
h(R);
D = d(R);
}
if (D !== null)
var ne = !0;
else {
var me = d(_);
me !== null && Ke(se, me.startTime - Le), ne = !1;
}
return ne;
} finally {
D = null, F = H, M = !1;
}
}
var xe = !1, oe = null, _e = -1, Pe = 5, Qe = -1;
function ge() {
return !(u.unstable_now() - Qe < Pe);
}
function Ye() {
if (oe !== null) {
var le = u.unstable_now();
Qe = le;
var Le = !0;
try {
Le = oe(!0, le);
} finally {
Le ? ke() : (xe = !1, oe = null);
}
} else
xe = !1;
}
var ke;
if (typeof Z == "function")
ke = function() {
Z(Ye);
};
else if (typeof MessageChannel < "u") {
var Se = new MessageChannel(), tt = Se.port2;
Se.port1.onmessage = Ye, ke = function() {
tt.postMessage(null);
};
} else
ke = function() {
G(Ye, 0);
};
function Ee(le) {
oe = le, xe || (xe = !0, ke());
}
function Ke(le, Le) {
_e = G(function() {
le(u.unstable_now());
}, Le);
}
u.unstable_IdlePriority = 5, u.unstable_ImmediatePriority = 1, u.unstable_LowPriority = 4, u.unstable_NormalPriority = 3, u.unstable_Profiling = null, u.unstable_UserBlockingPriority = 2, u.unstable_cancelCallback = function(le) {
le.callback = null;
}, u.unstable_continueExecution = function() {
L || M || (L = !0, Ee($));
}, u.unstable_forceFrameRate = function(le) {
0 > le || 125 < le ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : Pe = 0 < le ? Math.floor(1e3 / le) : 5;
}, u.unstable_getCurrentPriorityLevel = function() {
return F;
}, u.unstable_getFirstCallbackNode = function() {
return d(R);
}, u.unstable_next = function(le) {
switch (F) {
case 1:
case 2:
case 3:
var Le = 3;
break;
default:
Le = F;
}
var H = F;
F = Le;
try {
return le();
} finally {
F = H;
}
}, u.unstable_pauseExecution = function() {
}, u.unstable_requestPaint = function() {
}, u.unstable_runWithPriority = function(le, Le) {
switch (le) {
case 1:
case 2:
case 3:
case 4:
case 5:
break;
default:
le = 3;
}
var H = F;
F = le;
try {
return Le();
} finally {
F = H;
}
}, u.unstable_scheduleCallback = function(le, Le, H) {
var ue = u.unstable_now();
switch (typeof H == "object" && H !== null ? (H = H.delay, H = typeof H == "number" && 0 < H ? ue + H : ue) : H = ue, le) {
case 1:
var ae = -1;
break;
case 2:
ae = 250;
break;
case 5:
ae = 1073741823;
break;
case 4:
ae = 1e4;
break;
default:
ae = 5e3;
}
return ae = H + ae, le = { id: A++, callback: Le, priorityLevel: le, startTime: H, expirationTime: ae, sortIndex: -1 }, H > ue ? (le.sortIndex = H, c(_, le), d(R) === null && le === d(_) && (Y ? (X(_e), _e = -1) : Y = !0, Ke(se, H - ue))) : (le.sortIndex = ae, c(R, le), L || M || (L = !0, Ee($))), le;
}, u.unstable_shouldYield = ge, u.unstable_wrapCallback = function(le) {
var Le = F;
return function() {
var H = F;
F = Le;
try {
return le.apply(this, arguments);
} finally {
F = H;
}
};
};
}($1)), $1;
}
var wT;
function Ow() {
return wT || (wT = 1, process.env.NODE_ENV === "production" ? Ly.exports = MM() : Ly.exports = NM()), Ly.exports;
}
/**
* @license React
* react-dom.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var RT;
function jM() {
return RT || (RT = 1, process.env.NODE_ENV !== "production" && function() {
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
var u = td, c = Ow(), d = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, h = !1;
function S(e) {
h = e;
}
function x(e) {
if (!h) {
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
a[i - 1] = arguments[i];
T("warn", e, a);
}
}
function m(e) {
if (!h) {
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
a[i - 1] = arguments[i];
T("error", e, a);
}
}
function T(e, t, a) {
{
var i = d.ReactDebugCurrentFrame, l = i.getStackAddendum();
l !== "" && (t += "%s", a = a.concat([l]));
var f = a.map(function(v) {
return String(v);
});
f.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, f);
}
}
var R = 0, _ = 1, A = 2, D = 3, F = 4, M = 5, L = 6, Y = 7, G = 8, X = 9, Z = 10, re = 11, se = 12, $ = 13, xe = 14, oe = 15, _e = 16, Pe = 17, Qe = 18, ge = 19, Ye = 21, ke = 22, Se = 23, tt = 24, Ee = 25, Ke = !0, le = !1, Le = !1, H = !1, ue = !1, ae = !0, ne = !1, me = !1, De = !0, Te = !0, Oe = !0, Ve = /* @__PURE__ */ new Set(), nt = {}, ut = {};
function Tt(e, t) {
ye(e, t), ye(e + "Capture", t);
}
function ye(e, t) {
nt[e] && m("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", e), nt[e] = t;
{
var a = e.toLowerCase();
ut[a] = e, e === "onDoubleClick" && (ut.ondblclick = e);
}
for (var i = 0; i < t.length; i++)
Ve.add(t[i]);
}
var Dt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", rn = Object.prototype.hasOwnProperty;
function bn(e) {
{
var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
return a;
}
}
function ar(e) {
try {
return ir(e), !1;
} catch {
return !0;
}
}
function ir(e) {
return "" + e;
}
function aa(e, t) {
if (ar(e))
return m("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", t, bn(e)), ir(e);
}
function Da(e) {
if (ar(e))
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bn(e)), ir(e);
}
function fi(e, t) {
if (ar(e))
return m("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.", t, bn(e)), ir(e);
}
function Wa(e, t) {
if (ar(e))
return m("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", t, bn(e)), ir(e);
}
function Oa(e) {
if (ar(e))
return m("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", bn(e)), ir(e);
}
function $r(e) {
if (ar(e))
return m("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.", bn(e)), ir(e);
}
var Qa = 0, Br = 1, Na = 2, Tn = 3, Vr = 4, $i = 5, Ma = 6, we = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", qe = we + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", gt = new RegExp("^[" + we + "][" + qe + "]*$"), Pt = {}, cn = {};
function Un(e) {
return rn.call(cn, e) ? !0 : rn.call(Pt, e) ? !1 : gt.test(e) ? (cn[e] = !0, !0) : (Pt[e] = !0, m("Invalid attribute name: `%s`", e), !1);
}
function Sn(e, t, a) {
return t !== null ? t.type === Qa : a ? !1 : e.length > 2 && (e[0] === "o" || e[0] === "O") && (e[1] === "n" || e[1] === "N");
}
function Rr(e, t, a, i) {
if (a !== null && a.type === Qa)
return !1;
switch (typeof t) {
case "function":
case "symbol":
return !0;
case "boolean": {
if (i)
return !1;
if (a !== null)
return !a.acceptsBooleans;
var l = e.toLowerCase().slice(0, 5);
return l !== "data-" && l !== "aria-";
}
default:
return !1;
}
}
function qt(e, t, a, i) {
if (t === null || typeof t > "u" || Rr(e, t, a, i))
return !0;
if (i)
return !1;
if (a !== null)
switch (a.type) {
case Tn:
return !t;
case Vr:
return t === !1;
case $i:
return isNaN(t);
case Ma:
return isNaN(t) || t < 1;
}
return !1;
}
function Ir(e) {
return Xt.hasOwnProperty(e) ? Xt[e] : null;
}
function Yt(e, t, a, i, l, f, v) {
this.acceptsBooleans = t === Na || t === Tn || t === Vr, this.attributeName = i, this.attributeNamespace = l, this.mustUseProperty = a, this.propertyName = e, this.type = t, this.sanitizeURL = f, this.removeEmptyString = v;
}
var Xt = {}, Tl = [
"children",
"dangerouslySetInnerHTML",
// TODO: This prevents the assignment of defaultValue to regular
// elements (not just inputs). Now that ReactDOMInput assigns to the
// defaultValue property -- do we need this?
"defaultValue",
"defaultChecked",
"innerHTML",
"suppressContentEditableWarning",
"suppressHydrationWarning",
"style"
];
Tl.forEach(function(e) {
Xt[e] = new Yt(
e,
Qa,
!1,
// mustUseProperty
e,
// attributeName
null,
// attributeNamespace
!1,
// sanitizeURL
!1
);
}), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
var t = e[0], a = e[1];
Xt[t] = new Yt(
t,
Br,
!1,
// mustUseProperty
a,
// attributeName
null,
// attributeNamespace
!1,
// sanitizeURL
!1
);
}), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
Xt[e] = new Yt(
e,
Na,
!1,
// mustUseProperty
e.toLowerCase(),
// attributeName
null,
// attributeNamespace
!1,
// sanitizeURL
!1
);
}), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
Xt[e] = new Yt(
e,
Na,
!1,
// mustUseProperty
e,
// attributeName
null,
// attributeNamespace
!1,
// sanitizeURL
!1
);
}), [
"allowFullScreen",
"async",
// Note: there is a special case that prevents it from being written to the DOM
// on the client side because the browsers are inconsistent. Instead we call focus().
"autoFocus",
"autoPlay",
"controls",
"default",
"defer",
"disabled",
"disablePictureInPicture",
"disableRemotePlayback",
"formNoValidate",
"hidden",
"loop",
"noModule",
"noValidate",
"open",
"playsInline",
"readOnly",
"required",
"reversed",
"scoped",
"seamless",
// Microdata
"itemScope"
].forEach(function(e) {
Xt[e] = new Yt(
e,
Tn,
!1,
// mustUseProperty
e.toLowerCase(),
// attributeName
null,
// attributeNamespace
!1,
// sanitizeURL
!1
);
}), [
"checked",
// Note: `option.selected` is not updated if `select.multiple` is
// disabled with `removeAttribute`. We have special logic for handling this.
"multiple",
"muted",
"selected"
// NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function(e) {
Xt[e] = new Yt(
e,
Tn,
!0,
// mustUseProperty
e,
// attributeName
null,
// attributeNamespace
!1,
// sanitizeURL
!1
);
}), [
"capture",
"download"
// NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function(e) {
Xt[e] = new Yt(
e,
Vr,
!1,
// mustUseProperty
e,
// attributeName
null,
// attributeNamespace
!1,
// sanitizeURL
!1
);
}), [
"cols",
"rows",
"size",
"span"
// NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function(e) {
Xt[e] = new Yt(
e,
Ma,
!1,
// mustUseProperty
e,
// attributeName
null,
// attributeNamespace
!1,
// sanitizeURL
!1
);
}), ["rowSpan", "start"].forEach(function(e) {
Xt[e] = new Yt(
e,
$i,
!1,
// mustUseProperty
e.toLowerCase(),
// attributeName
null,
// attributeNamespace
!1,
// sanitizeURL
!1
);
});
var Do = /[\-\:]([a-z])/g, wl = function(e) {
return e[1].toUpperCase();
};
[
"accent-height",
"alignment-baseline",
"arabic-form",
"baseline-shift",
"cap-height",
"clip-path",
"clip-rule",
"color-interpolation",
"color-interpolation-filters",
"color-profile",
"color-rendering",
"dominant-baseline",
"enable-background",
"fill-opacity",
"fill-rule",
"flood-color",
"flood-opacity",
"font-family",
"font-size",
"font-size-adjust",
"font-stretch",
"font-style",
"font-variant",
"font-weight",
"glyph-name",
"glyph-orientation-horizontal",
"glyph-orientation-vertical",
"horiz-adv-x",
"horiz-origin-x",
"image-rendering",
"letter-spacing",
"lighting-color",
"marker-end",
"marker-mid",
"marker-start",
"overline-position",
"overline-thickness",
"paint-order",
"panose-1",
"pointer-events",
"rendering-intent",
"shape-rendering",
"stop-color",
"stop-opacity",
"strikethrough-position",
"strikethrough-thickness",
"stroke-dasharray",
"stroke-dashoffset",
"stroke-linecap",
"stroke-linejoin",
"stroke-miterlimit",
"stroke-opacity",
"stroke-width",
"text-anchor",
"text-decoration",
"text-rendering",
"underline-position",
"underline-thickness",
"unico