solask-voice-sdk
Version:
You can query the blockchain using voice.
1,027 lines (1,025 loc) • 107 kB
JavaScript
import G, { forwardRef as nt, createElement as Oe, useState as Qe, useRef as we } from "react";
import "react-dom";
var ze = { exports: {} }, ce = {};
/**
* @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 et;
function Wt() {
if (et) return ce;
et = 1;
var t = G, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, c = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
function d(i, p, k) {
var y, S = {}, _ = null, P = null;
k !== void 0 && (_ = "" + k), p.key !== void 0 && (_ = "" + p.key), p.ref !== void 0 && (P = p.ref);
for (y in p) n.call(p, y) && !s.hasOwnProperty(y) && (S[y] = p[y]);
if (i && i.defaultProps) for (y in p = i.defaultProps, p) S[y] === void 0 && (S[y] = p[y]);
return { $$typeof: r, type: i, key: _, ref: P, props: S, _owner: c.current };
}
return ce.Fragment = o, ce.jsx = d, ce.jsxs = d, ce;
}
var de = {};
/**
* @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 tt;
function Gt() {
return tt || (tt = 1, process.env.NODE_ENV !== "production" && function() {
var t = G, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), i = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), A = Symbol.iterator, w = "@@iterator";
function h(e) {
if (e === null || typeof e != "object")
return null;
var a = A && e[A] || e[w];
return typeof a == "function" ? a : null;
}
var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function f(e) {
{
for (var a = arguments.length, l = new Array(a > 1 ? a - 1 : 0), u = 1; u < a; u++)
l[u - 1] = arguments[u];
Y("error", e, l);
}
}
function Y(e, a, l) {
{
var u = m.ReactDebugCurrentFrame, x = u.getStackAddendum();
x !== "" && (a += "%s", l = l.concat([x]));
var E = l.map(function(v) {
return String(v);
});
E.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, E);
}
}
var I = !1, $ = !1, K = !1, ge = !1, he = !1, X;
X = Symbol.for("react.module.reference");
function oe(e) {
return !!(typeof e == "string" || typeof e == "function" || e === n || e === s || he || e === c || e === k || e === y || ge || e === P || I || $ || K || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === S || e.$$typeof === d || e.$$typeof === i || e.$$typeof === p || // 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.
e.$$typeof === X || e.getModuleId !== void 0));
}
function ae(e, a, l) {
var u = e.displayName;
if (u)
return u;
var x = a.displayName || a.name || "";
return x !== "" ? l + "(" + x + ")" : l;
}
function R(e) {
return e.displayName || "Context";
}
function M(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
return e.displayName || e.name || null;
if (typeof e == "string")
return e;
switch (e) {
case n:
return "Fragment";
case o:
return "Portal";
case s:
return "Profiler";
case c:
return "StrictMode";
case k:
return "Suspense";
case y:
return "SuspenseList";
}
if (typeof e == "object")
switch (e.$$typeof) {
case i:
var a = e;
return R(a) + ".Consumer";
case d:
var l = e;
return R(l._context) + ".Provider";
case p:
return ae(e, e.render, "ForwardRef");
case S:
var u = e.displayName || null;
return u !== null ? u : M(e.type) || "Memo";
case _: {
var x = e, E = x._payload, v = x._init;
try {
return M(v(E));
} catch {
return null;
}
}
}
return null;
}
var F = Object.assign, D = 0, J, ne, Z, B, se, L, Le;
function Ne() {
}
Ne.__reactDisabledLog = !0;
function gt() {
{
if (D === 0) {
J = console.log, ne = console.info, Z = console.warn, B = console.error, se = console.group, L = console.groupCollapsed, Le = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: Ne,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
D++;
}
}
function ht() {
{
if (D--, D === 0) {
var e = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: F({}, e, {
value: J
}),
info: F({}, e, {
value: ne
}),
warn: F({}, e, {
value: Z
}),
error: F({}, e, {
value: B
}),
group: F({}, e, {
value: se
}),
groupCollapsed: F({}, e, {
value: L
}),
groupEnd: F({}, e, {
value: Le
})
});
}
D < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var ke = m.ReactCurrentDispatcher, Re;
function be(e, a, l) {
{
if (Re === void 0)
try {
throw Error();
} catch (x) {
var u = x.stack.trim().match(/\n( *(at )?)/);
Re = u && u[1] || "";
}
return `
` + Re + e;
}
}
var Ee = !1, me;
{
var bt = typeof WeakMap == "function" ? WeakMap : Map;
me = new bt();
}
function Ye(e, a) {
if (!e || Ee)
return "";
{
var l = me.get(e);
if (l !== void 0)
return l;
}
var u;
Ee = !0;
var x = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var E;
E = ke.current, ke.current = null, gt();
try {
if (a) {
var v = function() {
throw Error();
};
if (Object.defineProperty(v.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(v, []);
} catch (z) {
u = z;
}
Reflect.construct(e, [], v);
} else {
try {
v.call();
} catch (z) {
u = z;
}
e.call(v.prototype);
}
} else {
try {
throw Error();
} catch (z) {
u = z;
}
e();
}
} catch (z) {
if (z && u && typeof z.stack == "string") {
for (var b = z.stack.split(`
`), O = u.stack.split(`
`), T = b.length - 1, j = O.length - 1; T >= 1 && j >= 0 && b[T] !== O[j]; )
j--;
for (; T >= 1 && j >= 0; T--, j--)
if (b[T] !== O[j]) {
if (T !== 1 || j !== 1)
do
if (T--, j--, j < 0 || b[T] !== O[j]) {
var N = `
` + b[T].replace(" at new ", " at ");
return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && me.set(e, N), N;
}
while (T >= 1 && j >= 0);
break;
}
}
} finally {
Ee = !1, ke.current = E, ht(), Error.prepareStackTrace = x;
}
var ee = e ? e.displayName || e.name : "", H = ee ? be(ee) : "";
return typeof e == "function" && me.set(e, H), H;
}
function mt(e, a, l) {
return Ye(e, !1);
}
function vt(e) {
var a = e.prototype;
return !!(a && a.isReactComponent);
}
function ve(e, a, l) {
if (e == null)
return "";
if (typeof e == "function")
return Ye(e, vt(e));
if (typeof e == "string")
return be(e);
switch (e) {
case k:
return be("Suspense");
case y:
return be("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case p:
return mt(e.render);
case S:
return ve(e.type, a, l);
case _: {
var u = e, x = u._payload, E = u._init;
try {
return ve(E(x), a, l);
} catch {
}
}
}
return "";
}
var ie = Object.prototype.hasOwnProperty, $e = {}, We = m.ReactDebugCurrentFrame;
function ye(e) {
if (e) {
var a = e._owner, l = ve(e.type, e._source, a ? a.type : null);
We.setExtraStackFrame(l);
} else
We.setExtraStackFrame(null);
}
function yt(e, a, l, u, x) {
{
var E = Function.call.bind(ie);
for (var v in e)
if (E(e, v)) {
var b = void 0;
try {
if (typeof e[v] != "function") {
var O = Error((u || "React class") + ": " + l + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw O.name = "Invariant Violation", O;
}
b = e[v](a, v, u, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (T) {
b = T;
}
b && !(b instanceof Error) && (ye(x), f("%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).", u || "React class", l, v, typeof b), ye(null)), b instanceof Error && !(b.message in $e) && ($e[b.message] = !0, ye(x), f("Failed %s type: %s", l, b.message), ye(null));
}
}
}
var wt = Array.isArray;
function Ce(e) {
return wt(e);
}
function xt(e) {
{
var a = typeof Symbol == "function" && Symbol.toStringTag, l = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
return l;
}
}
function kt(e) {
try {
return Ge(e), !1;
} catch {
return !0;
}
}
function Ge(e) {
return "" + e;
}
function Ve(e) {
if (kt(e))
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xt(e)), Ge(e);
}
var le = m.ReactCurrentOwner, Rt = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, De, Be, Se;
Se = {};
function Et(e) {
if (ie.call(e, "ref")) {
var a = Object.getOwnPropertyDescriptor(e, "ref").get;
if (a && a.isReactWarning)
return !1;
}
return e.ref !== void 0;
}
function Ct(e) {
if (ie.call(e, "key")) {
var a = Object.getOwnPropertyDescriptor(e, "key").get;
if (a && a.isReactWarning)
return !1;
}
return e.key !== void 0;
}
function St(e, a) {
if (typeof e.ref == "string" && le.current && a && le.current.stateNode !== a) {
var l = M(le.current.type);
Se[l] || (f('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', M(le.current.type), e.ref), Se[l] = !0);
}
}
function _t(e, a) {
{
var l = function() {
De || (De = !0, f("%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)", a));
};
l.isReactWarning = !0, Object.defineProperty(e, "key", {
get: l,
configurable: !0
});
}
}
function Tt(e, a) {
{
var l = function() {
Be || (Be = !0, f("%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)", a));
};
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
get: l,
configurable: !0
});
}
}
var jt = function(e, a, l, u, x, E, v) {
var b = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: r,
// Built-in properties that belong on the element
type: e,
key: a,
ref: l,
props: v,
// Record the component responsible for creating this element.
_owner: E
};
return b._store = {}, Object.defineProperty(b._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(b, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: u
}), Object.defineProperty(b, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: x
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
};
function Pt(e, a, l, u, x) {
{
var E, v = {}, b = null, O = null;
l !== void 0 && (Ve(l), b = "" + l), Ct(a) && (Ve(a.key), b = "" + a.key), Et(a) && (O = a.ref, St(a, x));
for (E in a)
ie.call(a, E) && !Rt.hasOwnProperty(E) && (v[E] = a[E]);
if (e && e.defaultProps) {
var T = e.defaultProps;
for (E in T)
v[E] === void 0 && (v[E] = T[E]);
}
if (b || O) {
var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
b && _t(v, j), O && Tt(v, j);
}
return jt(e, b, O, x, u, le.current, v);
}
}
var _e = m.ReactCurrentOwner, Ue = m.ReactDebugCurrentFrame;
function Q(e) {
if (e) {
var a = e._owner, l = ve(e.type, e._source, a ? a.type : null);
Ue.setExtraStackFrame(l);
} else
Ue.setExtraStackFrame(null);
}
var Te;
Te = !1;
function je(e) {
return typeof e == "object" && e !== null && e.$$typeof === r;
}
function qe() {
{
if (_e.current) {
var e = M(_e.current.type);
if (e)
return `
Check the render method of \`` + e + "`.";
}
return "";
}
}
function At(e) {
return "";
}
var Je = {};
function Ot(e) {
{
var a = qe();
if (!a) {
var l = typeof e == "string" ? e : e.displayName || e.name;
l && (a = `
Check the top-level render call using <` + l + ">.");
}
return a;
}
}
function He(e, a) {
{
if (!e._store || e._store.validated || e.key != null)
return;
e._store.validated = !0;
var l = Ot(a);
if (Je[l])
return;
Je[l] = !0;
var u = "";
e && e._owner && e._owner !== _e.current && (u = " It was passed a child from " + M(e._owner.type) + "."), Q(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, u), Q(null);
}
}
function Ke(e, a) {
{
if (typeof e != "object")
return;
if (Ce(e))
for (var l = 0; l < e.length; l++) {
var u = e[l];
je(u) && He(u, a);
}
else if (je(e))
e._store && (e._store.validated = !0);
else if (e) {
var x = h(e);
if (typeof x == "function" && x !== e.entries)
for (var E = x.call(e), v; !(v = E.next()).done; )
je(v.value) && He(v.value, a);
}
}
}
function zt(e) {
{
var a = e.type;
if (a == null || typeof a == "string")
return;
var l;
if (typeof a == "function")
l = a.propTypes;
else if (typeof a == "object" && (a.$$typeof === p || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
a.$$typeof === S))
l = a.propTypes;
else
return;
if (l) {
var u = M(a);
yt(l, e.props, "prop", u, e);
} else if (a.PropTypes !== void 0 && !Te) {
Te = !0;
var x = M(a);
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
}
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function Mt(e) {
{
for (var a = Object.keys(e.props), l = 0; l < a.length; l++) {
var u = a[l];
if (u !== "children" && u !== "key") {
Q(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Q(null);
break;
}
}
e.ref !== null && (Q(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
}
}
var Xe = {};
function Ze(e, a, l, u, x, E) {
{
var v = oe(e);
if (!v) {
var b = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " 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 O = At();
O ? b += O : b += qe();
var T;
e === null ? T = "null" : Ce(e) ? T = "array" : e !== void 0 && e.$$typeof === r ? (T = "<" + (M(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, b);
}
var j = Pt(e, a, l, x, E);
if (j == null)
return j;
if (v) {
var N = a.children;
if (N !== void 0)
if (u)
if (Ce(N)) {
for (var ee = 0; ee < N.length; ee++)
Ke(N[ee], e);
Object.freeze && Object.freeze(N);
} else
f("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
Ke(N, e);
}
if (ie.call(a, "key")) {
var H = M(e), z = Object.keys(a).filter(function($t) {
return $t !== "key";
}), Pe = z.length > 0 ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!Xe[H + Pe]) {
var Yt = z.length > 0 ? "{" + z.join(": ..., ") + ": ...}" : "{}";
f(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, Pe, H, Yt, H), Xe[H + Pe] = !0;
}
}
return e === n ? Mt(j) : zt(j), j;
}
}
function It(e, a, l) {
return Ze(e, a, l, !0);
}
function Ft(e, a, l) {
return Ze(e, a, l, !1);
}
var Lt = Ft, Nt = It;
de.Fragment = n, de.jsx = Lt, de.jsxs = Nt;
}()), de;
}
process.env.NODE_ENV === "production" ? ze.exports = Wt() : ze.exports = Gt();
var ue = ze.exports;
/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const Vt = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), st = (...t) => t.filter((r, o, n) => !!r && r.trim() !== "" && n.indexOf(r) === o).join(" ").trim();
/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
var Dt = {
xmlns: "http://www.w3.org/2000/svg",
width: 24,
height: 24,
viewBox: "0 0 24 24",
fill: "none",
stroke: "currentColor",
strokeWidth: 2,
strokeLinecap: "round",
strokeLinejoin: "round"
};
/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const Bt = nt(
({
color: t = "currentColor",
size: r = 24,
strokeWidth: o = 2,
absoluteStrokeWidth: n,
className: c = "",
children: s,
iconNode: d,
...i
}, p) => Oe(
"svg",
{
ref: p,
...Dt,
width: r,
height: r,
stroke: t,
strokeWidth: n ? Number(o) * 24 / Number(r) : o,
className: st("lucide", c),
...i
},
[
...d.map(([k, y]) => Oe(k, y)),
...Array.isArray(s) ? s : [s]
]
)
);
/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const it = (t, r) => {
const o = nt(
({ className: n, ...c }, s) => Oe(Bt, {
ref: s,
iconNode: r,
className: st(`lucide-${Vt(t)}`, n),
...c
})
);
return o.displayName = `${t}`, o;
};
/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const Ut = it("MicOff", [
["line", { x1: "2", x2: "22", y1: "2", y2: "22", key: "a6p6uj" }],
["path", { d: "M18.89 13.23A7.12 7.12 0 0 0 19 12v-2", key: "80xlxr" }],
["path", { d: "M5 10v2a7 7 0 0 0 12 5", key: "p2k8kg" }],
["path", { d: "M15 9.34V5a3 3 0 0 0-5.68-1.33", key: "1gzdoj" }],
["path", { d: "M9 9v3a3 3 0 0 0 5.12 2.12", key: "r2i35w" }],
["line", { x1: "12", x2: "12", y1: "19", y2: "22", key: "x3vr5v" }]
]);
/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const qt = it("Mic", [
["path", { d: "M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z", key: "131961" }],
["path", { d: "M19 10v2a7 7 0 0 1-14 0v-2", key: "1vc78b" }],
["line", { x1: "12", x2: "12", y1: "19", y2: "22", key: "x3vr5v" }]
]);
Array(12).fill(0);
G.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, G.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" }));
G.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, G.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" }));
G.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, G.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" }));
G.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, G.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" }));
var Me = 1, Jt = class {
constructor() {
this.subscribe = (t) => (this.subscribers.push(t), () => {
let r = this.subscribers.indexOf(t);
this.subscribers.splice(r, 1);
}), this.publish = (t) => {
this.subscribers.forEach((r) => r(t));
}, this.addToast = (t) => {
this.publish(t), this.toasts = [...this.toasts, t];
}, this.create = (t) => {
var r;
let { message: o, ...n } = t, c = typeof (t == null ? void 0 : t.id) == "number" || ((r = t.id) == null ? void 0 : r.length) > 0 ? t.id : Me++, s = this.toasts.find((i) => i.id === c), d = t.dismissible === void 0 ? !0 : t.dismissible;
return s ? this.toasts = this.toasts.map((i) => i.id === c ? (this.publish({ ...i, ...t, id: c, title: o }), { ...i, ...t, id: c, dismissible: d, title: o }) : i) : this.addToast({ title: o, ...n, dismissible: d, id: c }), c;
}, this.dismiss = (t) => (t || this.toasts.forEach((r) => {
this.subscribers.forEach((o) => o({ id: r.id, dismiss: !0 }));
}), this.subscribers.forEach((r) => r({ id: t, dismiss: !0 })), t), this.message = (t, r) => this.create({ ...r, message: t }), this.error = (t, r) => this.create({ ...r, message: t, type: "error" }), this.success = (t, r) => this.create({ ...r, type: "success", message: t }), this.info = (t, r) => this.create({ ...r, type: "info", message: t }), this.warning = (t, r) => this.create({ ...r, type: "warning", message: t }), this.loading = (t, r) => this.create({ ...r, type: "loading", message: t }), this.promise = (t, r) => {
if (!r) return;
let o;
r.loading !== void 0 && (o = this.create({ ...r, promise: t, type: "loading", message: r.loading, description: typeof r.description != "function" ? r.description : void 0 }));
let n = t instanceof Promise ? t : t(), c = o !== void 0;
return n.then(async (s) => {
if (Kt(s) && !s.ok) {
c = !1;
let d = typeof r.error == "function" ? await r.error(`HTTP error! status: ${s.status}`) : r.error, i = typeof r.description == "function" ? await r.description(`HTTP error! status: ${s.status}`) : r.description;
this.create({ id: o, type: "error", message: d, description: i });
} else if (r.success !== void 0) {
c = !1;
let d = typeof r.success == "function" ? await r.success(s) : r.success, i = typeof r.description == "function" ? await r.description(s) : r.description;
this.create({ id: o, type: "success", message: d, description: i });
}
}).catch(async (s) => {
if (r.error !== void 0) {
c = !1;
let d = typeof r.error == "function" ? await r.error(s) : r.error, i = typeof r.description == "function" ? await r.description(s) : r.description;
this.create({ id: o, type: "error", message: d, description: i });
}
}).finally(() => {
var s;
c && (this.dismiss(o), o = void 0), (s = r.finally) == null || s.call(r);
}), o;
}, this.custom = (t, r) => {
let o = (r == null ? void 0 : r.id) || Me++;
return this.create({ jsx: t(o), id: o, ...r }), o;
}, this.subscribers = [], this.toasts = [];
}
}, W = new Jt(), Ht = (t, r) => {
let o = (r == null ? void 0 : r.id) || Me++;
return W.addToast({ title: t, ...r, id: o }), o;
}, Kt = (t) => t && typeof t == "object" && "ok" in t && typeof t.ok == "boolean" && "status" in t && typeof t.status == "number", Xt = Ht, Zt = () => W.toasts, xe = Object.assign(Xt, { success: W.success, info: W.info, warning: W.warning, error: W.error, custom: W.custom, message: W.message, promise: W.promise, dismiss: W.dismiss, loading: W.loading }, { getHistory: Zt });
function Qt(t, { insertAt: r } = {}) {
if (typeof document > "u") return;
let o = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", r === "top" && o.firstChild ? o.insertBefore(n, o.firstChild) : o.appendChild(n), n.styleSheet ? n.styleSheet.cssText = t : n.appendChild(document.createTextNode(t));
}
Qt(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);
function lt(t) {
var r, o, n = "";
if (typeof t == "string" || typeof t == "number") n += t;
else if (typeof t == "object") if (Array.isArray(t)) {
var c = t.length;
for (r = 0; r < c; r++) t[r] && (o = lt(t[r])) && (n && (n += " "), n += o);
} else for (o in t) t[o] && (n && (n += " "), n += o);
return n;
}
function er() {
for (var t, r, o = 0, n = "", c = arguments.length; o < c; o++) (t = arguments[o]) && (r = lt(t)) && (n && (n += " "), n += r);
return n;
}
const Fe = "-", tr = (t) => {
const r = or(t), {
conflictingClassGroups: o,
conflictingClassGroupModifiers: n
} = t;
return {
getClassGroupId: (d) => {
const i = d.split(Fe);
return i[0] === "" && i.length !== 1 && i.shift(), ct(i, r) || rr(d);
},
getConflictingClassGroupIds: (d, i) => {
const p = o[d] || [];
return i && n[d] ? [...p, ...n[d]] : p;
}
};
}, ct = (t, r) => {
var d;
if (t.length === 0)
return r.classGroupId;
const o = t[0], n = r.nextPart.get(o), c = n ? ct(t.slice(1), n) : void 0;
if (c)
return c;
if (r.validators.length === 0)
return;
const s = t.join(Fe);
return (d = r.validators.find(({
validator: i
}) => i(s))) == null ? void 0 : d.classGroupId;
}, rt = /^\[(.+)\]$/, rr = (t) => {
if (rt.test(t)) {
const r = rt.exec(t)[1], o = r == null ? void 0 : r.substring(0, r.indexOf(":"));
if (o)
return "arbitrary.." + o;
}
}, or = (t) => {
const {
theme: r,
prefix: o
} = t, n = {
nextPart: /* @__PURE__ */ new Map(),
validators: []
};
return nr(Object.entries(t.classGroups), o).forEach(([s, d]) => {
Ie(d, n, s, r);
}), n;
}, Ie = (t, r, o, n) => {
t.forEach((c) => {
if (typeof c == "string") {
const s = c === "" ? r : ot(r, c);
s.classGroupId = o;
return;
}
if (typeof c == "function") {
if (ar(c)) {
Ie(c(n), r, o, n);
return;
}
r.validators.push({
validator: c,
classGroupId: o
});
return;
}
Object.entries(c).forEach(([s, d]) => {
Ie(d, ot(r, s), o, n);
});
});
}, ot = (t, r) => {
let o = t;
return r.split(Fe).forEach((n) => {
o.nextPart.has(n) || o.nextPart.set(n, {
nextPart: /* @__PURE__ */ new Map(),
validators: []
}), o = o.nextPart.get(n);
}), o;
}, ar = (t) => t.isThemeGetter, nr = (t, r) => r ? t.map(([o, n]) => {
const c = n.map((s) => typeof s == "string" ? r + s : typeof s == "object" ? Object.fromEntries(Object.entries(s).map(([d, i]) => [r + d, i])) : s);
return [o, c];
}) : t, sr = (t) => {
if (t < 1)
return {
get: () => {
},
set: () => {
}
};
let r = 0, o = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
const c = (s, d) => {
o.set(s, d), r++, r > t && (r = 0, n = o, o = /* @__PURE__ */ new Map());
};
return {
get(s) {
let d = o.get(s);
if (d !== void 0)
return d;
if ((d = n.get(s)) !== void 0)
return c(s, d), d;
},
set(s, d) {
o.has(s) ? o.set(s, d) : c(s, d);
}
};
}, dt = "!", ir = (t) => {
const {
separator: r,
experimentalParseClassName: o
} = t, n = r.length === 1, c = r[0], s = r.length, d = (i) => {
const p = [];
let k = 0, y = 0, S;
for (let h = 0; h < i.length; h++) {
let m = i[h];
if (k === 0) {
if (m === c && (n || i.slice(h, h + s) === r)) {
p.push(i.slice(y, h)), y = h + s;
continue;
}
if (m === "/") {
S = h;
continue;
}
}
m === "[" ? k++ : m === "]" && k--;
}
const _ = p.length === 0 ? i : i.substring(y), P = _.startsWith(dt), A = P ? _.substring(1) : _, w = S && S > y ? S - y : void 0;
return {
modifiers: p,
hasImportantModifier: P,
baseClassName: A,
maybePostfixModifierPosition: w
};
};
return o ? (i) => o({
className: i,
parseClassName: d
}) : d;
}, lr = (t) => {
if (t.length <= 1)
return t;
const r = [];
let o = [];
return t.forEach((n) => {
n[0] === "[" ? (r.push(...o.sort(), n), o = []) : o.push(n);
}), r.push(...o.sort()), r;
}, cr = (t) => ({
cache: sr(t.cacheSize),
parseClassName: ir(t),
...tr(t)
}), dr = /\s+/, ur = (t, r) => {
const {
parseClassName: o,
getClassGroupId: n,
getConflictingClassGroupIds: c
} = r, s = [], d = t.trim().split(dr);
let i = "";
for (let p = d.length - 1; p >= 0; p -= 1) {
const k = d[p], {
modifiers: y,
hasImportantModifier: S,
baseClassName: _,
maybePostfixModifierPosition: P
} = o(k);
let A = !!P, w = n(A ? _.substring(0, P) : _);
if (!w) {
if (!A) {
i = k + (i.length > 0 ? " " + i : i);
continue;
}
if (w = n(_), !w) {
i = k + (i.length > 0 ? " " + i : i);
continue;
}
A = !1;
}
const h = lr(y).join(":"), m = S ? h + dt : h, f = m + w;
if (s.includes(f))
continue;
s.push(f);
const Y = c(w, A);
for (let I = 0; I < Y.length; ++I) {
const $ = Y[I];
s.push(m + $);
}
i = k + (i.length > 0 ? " " + i : i);
}
return i;
};
function fr() {
let t = 0, r, o, n = "";
for (; t < arguments.length; )
(r = arguments[t++]) && (o = ut(r)) && (n && (n += " "), n += o);
return n;
}
const ut = (t) => {
if (typeof t == "string")
return t;
let r, o = "";
for (let n = 0; n < t.length; n++)
t[n] && (r = ut(t[n])) && (o && (o += " "), o += r);
return o;
};
function pr(t, ...r) {
let o, n, c, s = d;
function d(p) {
const k = r.reduce((y, S) => S(y), t());
return o = cr(k), n = o.cache.get, c = o.cache.set, s = i, i(p);
}
function i(p) {
const k = n(p);
if (k)
return k;
const y = ur(p, o);
return c(p, y), y;
}
return function() {
return s(fr.apply(null, arguments));
};
}
const C = (t) => {
const r = (o) => o[t] || [];
return r.isThemeGetter = !0, r;
}, ft = /^\[(?:([a-z-]+):)?(.+)\]$/i, gr = /^\d+\/\d+$/, hr = /* @__PURE__ */ new Set(["px", "full", "screen"]), br = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, mr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, vr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, yr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, V = (t) => te(t) || hr.has(t) || gr.test(t), U = (t) => re(t, "length", Tr), te = (t) => !!t && !Number.isNaN(Number(t)), Ae = (t) => re(t, "number", te), fe = (t) => !!t && Number.isInteger(Number(t)), xr = (t) => t.endsWith("%") && te(t.slice(0, -1)), g = (t) => ft.test(t), q = (t) => br.test(t), kr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Rr = (t) => re(t, kr, pt), Er = (t)