@innovatrics/dot-auto-capture-ui
Version:
Digital onboarding UI
1,210 lines • 116 kB
JavaScript
var So = Object.defineProperty;
var bo = (e, t, n) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var et = (e, t, n) => bo(e, typeof t != "symbol" ? t + "" : t, n);
var Ze, w, dr, ue, bn, _r, hr, pr, rn, Ht, Ut, mr, Ge = {}, gr = [], Eo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
function q(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
function on(e) {
e && e.parentNode && e.parentNode.removeChild(e);
}
function L(e, t, n) {
var r, o, i, a = {};
for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
if (arguments.length > 2 && (a.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) a[i] == null && (a[i] = e.defaultProps[i]);
return Fe(e, a, r, o, null);
}
function Fe(e, t, n, r, o) {
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++dr, __i: -1, __u: 0 };
return o == null && w.vnode != null && w.vnode(i), i;
}
function $o() {
return { current: null };
}
function V(e) {
return e.children;
}
function j(e, t) {
this.props = e, this.context = t;
}
function Ee(e, t) {
if (t == null) return e.__ ? Ee(e.__, e.__i + 1) : null;
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
return typeof e.type == "function" ? Ee(e) : null;
}
function yr(e) {
var t, n;
if ((e = e.__) != null && e.__c != null) {
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
e.__e = e.__c.base = n.__e;
break;
}
return yr(e);
}
}
function zt(e) {
(!e.__d && (e.__d = !0) && ue.push(e) && !_t.__r++ || bn != w.debounceRendering) && ((bn = w.debounceRendering) || _r)(_t);
}
function _t() {
for (var e, t, n, r, o, i, a, s = 1; ue.length; ) ue.length > s && ue.sort(hr), e = ue.shift(), s = ue.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = q({}, r)).__v = r.__v + 1, w.vnode && w.vnode(n), an(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? Ee(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, wr(i, n, a), n.__e != o && yr(n)));
_t.__r = 0;
}
function vr(e, t, n, r, o, i, a, s, l, u, d) {
var c, _, f, p, y, v, m = r && r.__k || gr, g = t.length;
for (l = ko(n, t, m, l, g), c = 0; c < g; c++) (f = n.__k[c]) != null && (_ = f.__i == -1 ? Ge : m[f.__i] || Ge, f.__i = c, v = an(e, f, _, o, i, a, s, l, u, d), p = f.__e, f.ref && _.ref != f.ref && (_.ref && sn(_.ref, null, f), d.push(f.ref, f.__c || p, f)), y == null && p != null && (y = p), 4 & f.__u || _.__k === f.__k ? l = Cr(f, l, e) : typeof f.type == "function" && v !== void 0 ? l = v : p && (l = p.nextSibling), f.__u &= -7);
return n.__e = y, l;
}
function ko(e, t, n, r, o) {
var i, a, s, l, u, d = n.length, c = d, _ = 0;
for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (l = i + _, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? Fe(null, a, null, null, null) : Ye(a) ? Fe(V, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? Fe(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, s = null, (u = a.__i = No(a, n, l, c)) != -1 && (c--, (s = n[u]) && (s.__u |= 2)), s == null || s.__v == null ? (u == -1 && (o > d ? _-- : o < d && _++), typeof a.type != "function" && (a.__u |= 4)) : u != l && (u == l - 1 ? _-- : u == l + 1 ? _++ : (u > l ? _-- : _++, a.__u |= 4))) : e.__k[i] = null;
if (c) for (i = 0; i < d; i++) (s = n[i]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = Ee(s)), br(s, s));
return r;
}
function Cr(e, t, n) {
var r, o;
if (typeof e.type == "function") {
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Cr(r[o], t, n));
return t;
}
e.__e != t && (t && e.type && !n.contains(t) && (t = Ee(e)), n.insertBefore(e.__e, t || null), t = e.__e);
do
t = t && t.nextSibling;
while (t != null && t.nodeType == 8);
return t;
}
function ee(e, t) {
return t = t || [], e == null || typeof e == "boolean" || (Ye(e) ? e.some(function(n) {
ee(n, t);
}) : t.push(e)), t;
}
function No(e, t, n, r) {
var o, i, a = e.key, s = e.type, l = t[n];
if (l === null && e.key == null || l && a == l.key && s == l.type && (2 & l.__u) == 0) return n;
if (r > (l != null && (2 & l.__u) == 0 ? 1 : 0)) for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) {
if (o >= 0) {
if ((l = t[o]) && (2 & l.__u) == 0 && a == l.key && s == l.type) return o;
o--;
}
if (i < t.length) {
if ((l = t[i]) && (2 & l.__u) == 0 && a == l.key && s == l.type) return i;
i++;
}
}
return -1;
}
function En(e, t, n) {
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || Eo.test(t) ? n : n + "px";
}
function tt(e, t, n, r, o) {
var i;
e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
else {
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || En(e.style, t, "");
if (n) for (t in n) r && n[t] == r[t] || En(e.style, t, n[t]);
}
else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(pr, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = rn, e.addEventListener(t, i ? Ut : Ht, i)) : e.removeEventListener(t, i ? Ut : Ht, i);
else {
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
e[t] = n ?? "";
break e;
} catch {
}
typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
}
}
function $n(e) {
return function(t) {
if (this.l) {
var n = this.l[t.type + e];
if (t.t == null) t.t = rn++;
else if (t.t < n.u) return;
return n(w.event ? w.event(t) : t);
}
};
}
function an(e, t, n, r, o, i, a, s, l, u) {
var d, c, _, f, p, y, v, m, g, k, E, x, b, C, D, H, Re, U = t.type;
if (t.constructor != null) return null;
128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (d = w.__b) && d(t);
e: if (typeof U == "function") try {
if (m = t.props, g = "prototype" in U && U.prototype.render, k = (d = U.contextType) && r[d.__c], E = d ? k ? k.props.value : d.__ : r, n.__c ? v = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new U(m, E) : (t.__c = c = new j(m, E), c.constructor = U, c.render = To), k && k.sub(c), c.props = m, c.state || (c.state = {}), c.context = E, c.__n = r, _ = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && U.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = q({}, c.__s)), q(c.__s, U.getDerivedStateFromProps(m, c.__s))), f = c.props, p = c.state, c.__v = t, _) g && U.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
else {
if (g && U.getDerivedStateFromProps == null && m !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, E), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, E) === !1 || t.__v == n.__v) {
for (t.__v != n.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(ce) {
ce && (ce.__ = t);
}), x = 0; x < c._sb.length; x++) c.__h.push(c._sb[x]);
c._sb = [], c.__h.length && a.push(c);
break e;
}
c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, E), g && c.componentDidUpdate != null && c.__h.push(function() {
c.componentDidUpdate(f, p, y);
});
}
if (c.context = E, c.props = m, c.__P = e, c.__e = !1, b = w.__r, C = 0, g) {
for (c.state = c.__s, c.__d = !1, b && b(t), d = c.render(c.props, c.state, c.context), D = 0; D < c._sb.length; D++) c.__h.push(c._sb[D]);
c._sb = [];
} else do
c.__d = !1, b && b(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
while (c.__d && ++C < 25);
c.state = c.__s, c.getChildContext != null && (r = q(q({}, r), c.getChildContext())), g && !_ && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, p)), H = d, d != null && d.type === V && d.key == null && (H = Sr(d.props.children)), s = vr(e, Ye(H) ? H : [H], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), v && (c.__E = c.__ = null);
} catch (ce) {
if (t.__v = null, l || i != null) if (ce.then) {
for (t.__u |= l ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
i[i.indexOf(s)] = null, t.__e = s;
} else for (Re = i.length; Re--; ) on(i[Re]);
else t.__e = n.__e, t.__k = n.__k;
w.__e(ce, t, n);
}
else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = xo(n.__e, t, n, r, o, i, a, l, u);
return (d = w.diffed) && d(t), 128 & t.__u ? void 0 : s;
}
function wr(e, t, n) {
for (var r = 0; r < n.length; r++) sn(n[r], n[++r], n[++r]);
w.__c && w.__c(t, e), e.some(function(o) {
try {
e = o.__h, o.__h = [], e.some(function(i) {
i.call(o);
});
} catch (i) {
w.__e(i, o.__v);
}
});
}
function Sr(e) {
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(Sr) : q({}, e);
}
function xo(e, t, n, r, o, i, a, s, l) {
var u, d, c, _, f, p, y, v = n.props, m = t.props, g = t.type;
if (g == "svg" ? o = "http://www.w3.org/2000/svg" : g == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!g && (g ? f.localName == g : f.nodeType == 3)) {
e = f, i[u] = null;
break;
}
}
if (e == null) {
if (g == null) return document.createTextNode(m);
e = document.createElementNS(o, g, m.is && m), s && (w.__m && w.__m(t, i), s = !1), i = null;
}
if (g == null) v === m || s && e.data == m || (e.data = m);
else {
if (i = i && Ze.call(e.childNodes), v = n.props || Ge, !s && i != null) for (v = {}, u = 0; u < e.attributes.length; u++) v[(f = e.attributes[u]).name] = f.value;
for (u in v) if (f = v[u], u != "children") {
if (u == "dangerouslySetInnerHTML") c = f;
else if (!(u in m)) {
if (u == "value" && "defaultValue" in m || u == "checked" && "defaultChecked" in m) continue;
tt(e, u, null, f, o);
}
}
for (u in m) f = m[u], u == "children" ? _ = f : u == "dangerouslySetInnerHTML" ? d = f : u == "value" ? p = f : u == "checked" ? y = f : s && typeof f != "function" || v[u] === f || tt(e, u, f, v[u], o);
if (d) s || c && (d.__html == c.__html || d.__html == e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
else if (c && (e.innerHTML = ""), vr(t.type == "template" ? e.content : e, Ye(_) ? _ : [_], t, n, r, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Ee(n, 0), s, l), i != null) for (u = i.length; u--; ) on(i[u]);
s || (u = "value", g == "progress" && p == null ? e.removeAttribute("value") : p != null && (p !== e[u] || g == "progress" && !p || g == "option" && p != v[u]) && tt(e, u, p, v[u], o), u = "checked", y != null && y != e[u] && tt(e, u, y, v[u], o));
}
return e;
}
function sn(e, t, n) {
try {
if (typeof e == "function") {
var r = typeof e.__u == "function";
r && e.__u(), r && t == null || (e.__u = e(t));
} else e.current = t;
} catch (o) {
w.__e(o, n);
}
}
function br(e, t, n) {
var r, o;
if (w.unmount && w.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || sn(r, null, t)), (r = e.__c) != null) {
if (r.componentWillUnmount) try {
r.componentWillUnmount();
} catch (i) {
w.__e(i, t);
}
r.base = r.__P = null;
}
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && br(r[o], t, n || typeof e.type != "function");
n || on(e.__e), e.__c = e.__ = e.__e = void 0;
}
function To(e, t, n) {
return this.constructor(e, n);
}
function ae(e, t, n) {
var r, o, i, a;
t == document && (t = document.documentElement), w.__ && w.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], an(t, e = (!r && n || t).__k = L(V, null, [e]), o || Ge, Ge, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ze.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), wr(i, e, a);
}
function cn(e, t) {
ae(e, t, cn);
}
function ln(e, t, n) {
var r, o, i, a, s = q({}, e.props);
for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : s[i] = t[i] == null && a != null ? a[i] : t[i];
return arguments.length > 2 && (s.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), Fe(e.type, s, r || e.key, o || e.ref, null);
}
function Er(e) {
function t(n) {
var r, o;
return this.getChildContext || (r = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
return o;
}, this.componentWillUnmount = function() {
r = null;
}, this.shouldComponentUpdate = function(i) {
this.props.value != i.value && r.forEach(function(a) {
a.__e = !0, zt(a);
});
}, this.sub = function(i) {
r.add(i);
var a = i.componentWillUnmount;
i.componentWillUnmount = function() {
r && r.delete(i), a && a.call(i);
};
}), n.children;
}
return t.__c = "__cC" + mr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
return n.children(r);
}).contextType = t, t;
}
Ze = gr.slice, w = { __e: function(e, t, n, r) {
for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), a = o.__d), a) return o.__E = o;
} catch (s) {
e = s;
}
throw e;
} }, dr = 0, j.prototype.setState = function(e, t) {
var n;
n = this.__s != null && this.__s != this.state ? this.__s : this.__s = q({}, this.state), typeof e == "function" && (e = e(q({}, n), this.props)), e && q(n, e), e != null && this.__v && (t && this._sb.push(t), zt(this));
}, j.prototype.forceUpdate = function(e) {
this.__v && (this.__e = !0, e && this.__h.push(e), zt(this));
}, j.prototype.render = V, ue = [], _r = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, hr = function(e, t) {
return e.__v.__b - t.__v.__b;
}, _t.__r = 0, pr = /(PointerCapture)$|Capture$/i, rn = 0, Ht = $n(!1), Ut = $n(!0), mr = 0;
function un() {
return (un = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}).apply(this, arguments);
}
var Oo = ["context", "children"];
function Io(e) {
this.getChildContext = function() {
return e.context;
};
var t = e.children, n = function(r, o) {
if (r == null) return {};
var i, a, s = {}, l = Object.keys(r);
for (a = 0; a < l.length; a++) o.indexOf(i = l[a]) >= 0 || (s[i] = r[i]);
return s;
}(e, Oo);
return ln(t, n);
}
function Ao() {
var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
this.dispatchEvent(e), this._vdom = L(Io, un({}, this._props, { context: e.detail.context }), function t(n, r) {
if (n.nodeType === 3) return n.data;
if (n.nodeType !== 1) return null;
var o = [], i = {}, a = 0, s = n.attributes, l = n.childNodes;
for (a = s.length; a--; ) s[a].name !== "slot" && (i[s[a].name] = s[a].value, i[$r(s[a].name)] = s[a].value);
for (a = l.length; a--; ) {
var u = t(l[a], null), d = l[a].slot;
d ? i[d] = L(kn, { name: d }, u) : o[a] = u;
}
var c = r ? L(kn, null, o) : o;
return L(r || n.nodeName.toLowerCase(), i, c);
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? cn : ae)(this._vdom, this._root);
}
function $r(e) {
return e.replace(/-(\w)/g, function(t, n) {
return n ? n.toUpperCase() : "";
});
}
function Ro(e, t, n) {
if (this._vdom) {
var r = {};
r[e] = n = n ?? void 0, r[$r(e)] = n, this._vdom = ln(this._vdom, r), ae(this._vdom, this._root);
}
}
function Po() {
ae(this._vdom = null, this._root);
}
function kn(e, t) {
var n = this;
return L("slot", un({}, e, { ref: function(r) {
r ? (n.ref = r, n._listener || (n._listener = function(o) {
o.stopPropagation(), o.detail.context = t;
}, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
} }));
}
function Lo(e, t, n, r) {
function o() {
var i = Reflect.construct(HTMLElement, [], o);
return i._vdomComponent = e, i._root = i, i;
}
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Ao, o.prototype.attributeChangedCallback = Ro, o.prototype.disconnectedCallback = Po, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
Object.defineProperty(o.prototype, i, { get: function() {
return this._vdom.props[i];
}, set: function(a) {
this._vdom ? this.attributeChangedCallback(i, null, a) : (this._props || (this._props = {}), this._props[i] = a, this.connectedCallback());
var s = typeof a;
a != null && s !== "string" && s !== "boolean" && s !== "number" || this.setAttribute(i, a);
} });
}), customElements.define(t, o);
}
var Do = 0;
function h(e, t, n, r, o, i) {
t || (t = {});
var a, s, l = t;
if ("ref" in l) for (s in l = {}, t) s == "ref" ? a = t[s] : l[s] = t[s];
var u = { type: e, props: l, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Do, __i: -1, __u: 0, __source: o, __self: i };
if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]);
return w.vnode && w.vnode(u), u;
}
const Nn = {
SWITCH_CAMERA: "switch-camera",
TOGGLE_MIRROR: "toggle-mirror"
};
var kr = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", e.CONTROL = "document-auto-capture:control", e.DETECTED_DOCUMENT_CHANGED = "document-auto-capture:detected-document-changed", e.DOCUMENT_DETECTION = "document-auto-capture:document-detection", e.INSTRUCTION_CHANGED = "document-auto-capture:instruction-changed", e.INSTRUCTION_ESCALATED = "document-auto-capture:instruction-escalated", e.STATE_CHANGED = "document-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "document-auto-capture:video-element-size", e))(kr || {}), _e = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "palm-capture:camera-props-changed", e.CONTROL = "palm-capture:control", e.DETECTED_PALM_CHANGED = "palm-capture:detected-palm-changed", e.INSTRUCTION_CHANGED = "palm-capture:instruction-changed", e.STATE_CHANGED = "palm-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "palm-capture:video-element-size", e))(_e || {});
const Y = {
LOADING: "LOADING",
ERROR: "ERROR",
WAITING: "WAITING",
RUNNING: "RUNNING"
}, W = {
CANDIDATE_SELECTION: "candidate_selection",
PALM_CENTERING: "palm_centering",
PALM_NOT_PRESENT: "palm_not_present",
PALM_TOO_FAR: "palm_too_far",
PALM_TOO_CLOSE: "palm_too_close",
SHARPNESS_TOO_LOW: "sharpness_too_low",
BRIGHTNESS_TOO_LOW: "brightness_too_low",
BRIGHTNESS_TOO_HIGH: "brightness_too_high",
DEVICE_PITCHED: "device_pitched"
};
var se, O, It, xn, $e = 0, Nr = [], I = w, Tn = I.__b, On = I.__r, In = I.diffed, An = I.__c, Rn = I.unmount, Pn = I.__;
function Oe(e, t) {
I.__h && I.__h(O, e, $e || t), $e = 0;
var n = O.__H || (O.__H = { __: [], __h: [] });
return e >= n.__.length && n.__.push({}), n.__[e];
}
function B(e) {
return $e = 1, fn(Or, e);
}
function fn(e, t, n) {
var r = Oe(se++, 2);
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Or(void 0, t), function(s) {
var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, s);
l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
}], r.__c = O, !O.__f)) {
var o = function(s, l, u) {
if (!r.__c.__H) return !0;
var d = r.__c.__H.__.filter(function(_) {
return !!_.__c;
});
if (d.every(function(_) {
return !_.__N;
})) return !i || i.call(this, s, l, u);
var c = r.__c.props !== s;
return d.forEach(function(_) {
if (_.__N) {
var f = _.__[0];
_.__ = _.__N, _.__N = void 0, f !== _.__[0] && (c = !0);
}
}), i && i.call(this, s, l, u) || c;
};
O.__f = !0;
var i = O.shouldComponentUpdate, a = O.componentWillUpdate;
O.componentWillUpdate = function(s, l, u) {
if (this.__e) {
var d = i;
i = void 0, o(s, l, u), i = d;
}
a && a.call(this, s, l, u);
}, O.shouldComponentUpdate = o;
}
return r.__N || r.__;
}
function ne(e, t) {
var n = Oe(se++, 3);
!I.__s && dn(n.__H, t) && (n.__ = e, n.u = t, O.__H.__h.push(n));
}
function Ie(e, t) {
var n = Oe(se++, 4);
!I.__s && dn(n.__H, t) && (n.__ = e, n.u = t, O.__h.push(n));
}
function qe(e) {
return $e = 5, te(function() {
return { current: e };
}, []);
}
function xr(e, t, n) {
$e = 6, Ie(function() {
if (typeof e == "function") {
var r = e(t());
return function() {
e(null), r && typeof r == "function" && r();
};
}
if (e) return e.current = t(), function() {
return e.current = null;
};
}, n == null ? n : n.concat(e));
}
function te(e, t) {
var n = Oe(se++, 7);
return dn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
}
function he(e, t) {
return $e = 8, te(function() {
return e;
}, t);
}
function Xe(e) {
var t = O.context[e.__c], n = Oe(se++, 9);
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(O)), t.props.value) : e.__;
}
function ht(e, t) {
I.useDebugValue && I.useDebugValue(t ? t(e) : e);
}
function Tr() {
var e = Oe(se++, 11);
if (!e.__) {
for (var t = O.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
var n = t.__m || (t.__m = [0, 0]);
e.__ = "P" + n[0] + "-" + n[1]++;
}
return e.__;
}
function Mo() {
for (var e; e = Nr.shift(); ) if (e.__P && e.__H) try {
e.__H.__h.forEach(at), e.__H.__h.forEach(Bt), e.__H.__h = [];
} catch (t) {
e.__H.__h = [], I.__e(t, e.__v);
}
}
I.__b = function(e) {
O = null, Tn && Tn(e);
}, I.__ = function(e, t) {
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Pn && Pn(e, t);
}, I.__r = function(e) {
On && On(e), se = 0;
var t = (O = e.__c).__H;
t && (It === O ? (t.__h = [], O.__h = [], t.__.forEach(function(n) {
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
})) : (t.__h.forEach(at), t.__h.forEach(Bt), t.__h = [], se = 0)), It = O;
}, I.diffed = function(e) {
In && In(e);
var t = e.__c;
t && t.__H && (t.__H.__h.length && (Nr.push(t) !== 1 && xn === I.requestAnimationFrame || ((xn = I.requestAnimationFrame) || Ho)(Mo)), t.__H.__.forEach(function(n) {
n.u && (n.__H = n.u), n.u = void 0;
})), It = O = null;
}, I.__c = function(e, t) {
t.some(function(n) {
try {
n.__h.forEach(at), n.__h = n.__h.filter(function(r) {
return !r.__ || Bt(r);
});
} catch (r) {
t.some(function(o) {
o.__h && (o.__h = []);
}), t = [], I.__e(r, n.__v);
}
}), An && An(e, t);
}, I.unmount = function(e) {
Rn && Rn(e);
var t, n = e.__c;
n && n.__H && (n.__H.__.forEach(function(r) {
try {
at(r);
} catch (o) {
t = o;
}
}), n.__H = void 0, t && I.__e(t, n.__v));
};
var Ln = typeof requestAnimationFrame == "function";
function Ho(e) {
var t, n = function() {
clearTimeout(r), Ln && cancelAnimationFrame(t), setTimeout(e);
}, r = setTimeout(n, 100);
Ln && (t = requestAnimationFrame(n));
}
function at(e) {
var t = O, n = e.__c;
typeof n == "function" && (e.__c = void 0, n()), O = t;
}
function Bt(e) {
var t = O;
e.__c = e.__(), O = t;
}
function dn(e, t) {
return !e || e.length !== t.length || t.some(function(n, r) {
return n !== e[r];
});
}
function Or(e, t) {
return typeof t == "function" ? t(e) : t;
}
var P = function() {
return P = Object.assign || function(t) {
for (var n, r = 1, o = arguments.length; r < o; r++) {
n = arguments[r];
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
}
return t;
}, P.apply(this, arguments);
};
function ge(e, t, n) {
if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
return e.concat(i || Array.prototype.slice.call(t));
}
function Uo(e) {
var t = /* @__PURE__ */ Object.create(null);
return function(n) {
return t[n] === void 0 && (t[n] = e(n)), t[n];
};
}
var zo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Bo = /* @__PURE__ */ Uo(
function(e) {
return zo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
);
function Ir(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
function Ft(e, t) {
for (var n in e) if (n !== "__source" && !(n in t)) return !0;
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
return !1;
}
function Ar(e, t) {
var n = t(), r = B({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
return Ie(function() {
o.__ = n, o.u = t, At(o) && i({ t: o });
}, [e, n, t]), ne(function() {
return At(o) && i({ t: o }), e(function() {
At(o) && i({ t: o });
});
}, [e]), n;
}
function At(e) {
var t, n, r = e.u, o = e.__;
try {
var i = r();
return !((t = o) === (n = i) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
} catch {
return !0;
}
}
function Rr(e) {
e();
}
function Pr(e) {
return e;
}
function Lr() {
return [!1, Rr];
}
var Dr = Ie;
function Wt(e, t) {
this.props = e, this.context = t;
}
function Fo(e, t) {
function n(o) {
var i = this.props.ref, a = i == o.ref;
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Ft(this.props, o);
}
function r(o) {
return this.shouldComponentUpdate = n, L(e, o);
}
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
}
(Wt.prototype = new j()).isPureReactComponent = !0, Wt.prototype.shouldComponentUpdate = function(e, t) {
return Ft(this.props, e) || Ft(this.state, t);
};
var Dn = w.__b;
w.__b = function(e) {
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Dn && Dn(e);
};
var Wo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
function jo(e) {
function t(n) {
var r = Ir({}, n);
return delete r.ref, e(r, n.ref || null);
}
return t.$$typeof = Wo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
}
var Mn = function(e, t) {
return e == null ? null : ee(ee(e).map(t));
}, Go = { map: Mn, forEach: Mn, count: function(e) {
return e ? ee(e).length : 0;
}, only: function(e) {
var t = ee(e);
if (t.length !== 1) throw "Children.only";
return t[0];
}, toArray: ee }, Vo = w.__e;
w.__e = function(e, t, n, r) {
if (e.then) {
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
}
Vo(e, t, n, r);
};
var Hn = w.unmount;
function Mr(e, t, n) {
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
typeof r.__c == "function" && r.__c();
}), e.__c.__H = null), (e = Ir({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
return Mr(r, t, n);
})), e;
}
function Hr(e, t, n) {
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
return Hr(r, t, n);
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
}
function st() {
this.__u = 0, this.o = null, this.__b = null;
}
function Ur(e) {
var t = e.__.__c;
return t && t.__a && t.__a(e);
}
function Zo(e) {
var t, n, r;
function o(i) {
if (t || (t = e()).then(function(a) {
n = a.default || a;
}, function(a) {
r = a;
}), r) throw r;
if (!n) throw t;
return L(n, i);
}
return o.displayName = "Lazy", o.__f = !0, o;
}
function He() {
this.i = null, this.l = null;
}
w.unmount = function(e) {
var t = e.__c;
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Hn && Hn(e);
}, (st.prototype = new j()).__c = function(e, t) {
var n = t.__c, r = this;
r.o == null && (r.o = []), r.o.push(n);
var o = Ur(r.__v), i = !1, a = function() {
i || (i = !0, n.__R = null, o ? o(s) : s());
};
n.__R = a;
var s = function() {
if (!--r.__u) {
if (r.state.__a) {
var l = r.state.__a;
r.__v.__k[0] = Hr(l, l.__c.__P, l.__c.__O);
}
var u;
for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
}
};
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a);
}, st.prototype.componentWillUnmount = function() {
this.o = [];
}, st.prototype.render = function(e, t) {
if (this.__b) {
if (this.__v.__k) {
var n = document.createElement("div"), r = this.__v.__k[0].__c;
this.__v.__k[0] = Mr(this.__b, n, r.__O = r.__P);
}
this.__b = null;
}
var o = t.__a && L(V, null, e.fallback);
return o && (o.__u &= -33), [L(V, null, t.__a ? null : e.children), o];
};
var Un = function(e, t, n) {
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
for (; n.length > 3; ) n.pop()();
if (n[1] < n[0]) break;
e.i = n = n[2];
}
};
function Yo(e) {
return this.getChildContext = function() {
return e.context;
}, e.children;
}
function qo(e) {
var t = this, n = e.h;
if (t.componentWillUnmount = function() {
ae(null, t.v), t.v = null, t.h = null;
}, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
return !0;
}, appendChild: function(o) {
this.childNodes.push(o), t.h.appendChild(o);
}, insertBefore: function(o, i) {
this.childNodes.push(o), t.h.insertBefore(o, i);
}, removeChild: function(o) {
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
} };
}
ae(L(Yo, { context: t.context }, e.__v), t.v);
}
function Xo(e, t) {
var n = L(qo, { __v: e, h: t });
return n.containerInfo = t, n;
}
(He.prototype = new j()).__a = function(e) {
var t = this, n = Ur(t.__v), r = t.l.get(e);
return r[0]++, function(o) {
var i = function() {
t.props.revealOrder ? (r.push(o), Un(t, e, r)) : o();
};
n ? n(i) : i();
};
}, He.prototype.render = function(e) {
this.i = null, this.l = /* @__PURE__ */ new Map();
var t = ee(e.children);
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
return e.children;
}, He.prototype.componentDidUpdate = He.prototype.componentDidMount = function() {
var e = this;
this.l.forEach(function(t, n) {
Un(e, n, t);
});
};
var zr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ko = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Jo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Qo = /[A-Z0-9]/g, ei = typeof document < "u", ti = function(e) {
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
};
function ni(e, t, n) {
return t.__k == null && (t.textContent = ""), ae(e, t), typeof n == "function" && n(), e ? e.__c : null;
}
function ri(e, t, n) {
return cn(e, t), typeof n == "function" && n(), e ? e.__c : null;
}
j.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
Object.defineProperty(j.prototype, e, { configurable: !0, get: function() {
return this["UNSAFE_" + e];
}, set: function(t) {
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
} });
});
var zn = w.event;
function oi() {
}
function ii() {
return this.cancelBubble;
}
function ai() {
return this.defaultPrevented;
}
w.event = function(e) {
return zn && (e = zn(e)), e.persist = oi, e.isPropagationStopped = ii, e.isDefaultPrevented = ai, e.nativeEvent = e;
};
var _n, si = { enumerable: !1, configurable: !0, get: function() {
return this.class;
} }, Bn = w.vnode;
w.vnode = function(e) {
typeof e.type == "string" && function(t) {
var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
for (var a in n) {
var s = n[a];
if (!(a === "value" && "defaultValue" in n && s == null || ei && a === "children" && r === "noscript" || a === "class" || a === "className")) {
var l = a.toLowerCase();
a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : l === "translate" && s === "no" ? s = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? a = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || ti(n.type) ? l === "onfocus" ? a = "onfocusin" : l === "onblur" ? a = "onfocusout" : Jo.test(a) && (a = l) : l = a = "oninput" : i && Ko.test(a) ? a = a.replace(Qo, "-$&").toLowerCase() : s === null && (s = void 0), l === "oninput" && o[a = l] && (a = "oninputCapture"), o[a] = s;
}
}
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ee(n.children).forEach(function(u) {
u.props.selected = o.value.indexOf(u.props.value) != -1;
})), r == "select" && o.defaultValue != null && (o.value = ee(n.children).forEach(function(u) {
u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", si)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
}(e), e.$$typeof = zr, Bn && Bn(e);
};
var Fn = w.__r;
w.__r = function(e) {
Fn && Fn(e), _n = e.__c;
};
var Wn = w.diffed;
w.diffed = function(e) {
Wn && Wn(e);
var t = e.props, n = e.__e;
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), _n = null;
};
var ci = { ReactCurrentDispatcher: { current: { readContext: function(e) {
return _n.__n[e.__c].props.value;
}, useCallback: he, useContext: Xe, useDebugValue: ht, useDeferredValue: Pr, useEffect: ne, useId: Tr, useImperativeHandle: xr, useInsertionEffect: Dr, useLayoutEffect: Ie, useMemo: te, useReducer: fn, useRef: qe, useState: B, useSyncExternalStore: Ar, useTransition: Lr } } };
function li(e) {
return L.bind(null, e);
}
function vt(e) {
return !!e && e.$$typeof === zr;
}
function ui(e) {
return vt(e) && e.type === V;
}
function fi(e) {
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
}
function di(e) {
return vt(e) ? ln.apply(null, arguments) : e;
}
function _i(e) {
return !!e.__k && (ae(null, e), !0);
}
function hi(e) {
return e && (e.base || e.nodeType === 1 && e) || null;
}
var pi = function(e, t) {
return e(t);
}, mi = function(e, t) {
return e(t);
}, gi = V, yi = vt, re = { useState: B, useId: Tr, useReducer: fn, useEffect: ne, useLayoutEffect: Ie, useInsertionEffect: Dr, useTransition: Lr, useDeferredValue: Pr, useSyncExternalStore: Ar, startTransition: Rr, useRef: qe, useImperativeHandle: xr, useMemo: te, useCallback: he, useContext: Xe, useDebugValue: ht, version: "18.3.1", Children: Go, render: ni, hydrate: ri, unmountComponentAtNode: _i, createPortal: Xo, createElement: L, createContext: Er, createFactory: li, cloneElement: di, createRef: $o, Fragment: V, isValidElement: vt, isElement: yi, isFragment: ui, isMemo: fi, findDOMNode: hi, Component: j, PureComponent: Wt, memo: Fo, forwardRef: jo, flushSync: mi, unstable_batchedUpdates: pi, StrictMode: gi, Suspense: st, SuspenseList: He, lazy: Zo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ci };
function vi(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Rt, jn;
function Ci() {
return jn || (jn = 1, Rt = function(t, n, r, o) {
var i = r ? r.call(o, t, n) : void 0;
if (i !== void 0)
return !!i;
if (t === n)
return !0;
if (typeof t != "object" || !t || typeof n != "object" || !n)
return !1;
var a = Object.keys(t), s = Object.keys(n);
if (a.length !== s.length)
return !1;
for (var l = Object.prototype.hasOwnProperty.bind(n), u = 0; u < a.length; u++) {
var d = a[u];
if (!l(d))
return !1;
var c = t[d], _ = n[d];
if (i = r ? r.call(o, c, _, d) : void 0, i === !1 || i === void 0 && c !== _)
return !1;
}
return !0;
}), Rt;
}
var wi = Ci();
const Si = /* @__PURE__ */ vi(wi);
var T = "-ms-", We = "-moz-", N = "-webkit-", Br = "comm", Ct = "rule", hn = "decl", bi = "@import", Fr = "@keyframes", Ei = "@layer", Wr = Math.abs, pn = String.fromCharCode, jt = Object.assign;
function $i(e, t) {
return R(e, 0) ^ 45 ? (((t << 2 ^ R(e, 0)) << 2 ^ R(e, 1)) << 2 ^ R(e, 2)) << 2 ^ R(e, 3) : 0;
}
function jr(e) {
return e.trim();
}
function J(e, t) {
return (e = t.exec(e)) ? e[0] : e;
}
function S(e, t, n) {
return e.replace(t, n);
}
function ct(e, t, n) {
return e.indexOf(t, n);
}
function R(e, t) {
return e.charCodeAt(t) | 0;
}
function ke(e, t, n) {
return e.slice(t, n);
}
function Z(e) {
return e.length;
}
function Gr(e) {
return e.length;
}
function Ue(e, t) {
return t.push(e), e;
}
function ki(e, t) {
return e.map(t).join("");
}
function Gn(e, t) {
return e.filter(function(n) {
return !J(n, t);
});
}
var wt = 1, Ne = 1, Vr = 0, F = 0, A = 0, Ae = "";
function St(e, t, n, r, o, i, a, s) {
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: wt, column: Ne, length: a, return: "", siblings: s };
}
function ie(e, t) {
return jt(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
}
function Se(e) {
for (; e.root; )
e = ie(e.root, { children: [e] });
Ue(e, e.siblings);
}
function Ni() {
return A;
}
function xi() {
return A = F > 0 ? R(Ae, --F) : 0, Ne--, A === 10 && (Ne = 1, wt--), A;
}
function G() {
return A = F < Vr ? R(Ae, F++) : 0, Ne++, A === 10 && (Ne = 1, wt++), A;
}
function pe() {
return R(Ae, F);
}
function lt() {
return F;
}
function bt(e, t) {
return ke(Ae, e, t);
}
function Gt(e) {
switch (e) {
// \0 \t \n \r \s whitespace token
case 0:
case 9:
case 10:
case 13:
case 32:
return 5;
// ! + , / > @ ~ isolate token
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
// ; { } breakpoint token
case 59:
case 123:
case 125:
return 4;
// : accompanied token
case 58:
return 3;
// " ' ( [ opening delimit token
case 34:
case 39:
case 40:
case 91:
return 2;
// ) ] closing delimit token
case 41:
case 93:
return 1;
}
return 0;
}
function Ti(e) {
return wt = Ne = 1, Vr = Z(Ae = e), F = 0, [];
}
function Oi(e) {
return Ae = "", e;
}
function Pt(e) {
return jr(bt(F - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function Ii(e) {
for (; (A = pe()) && A < 33; )
G();
return Gt(e) > 2 || Gt(A) > 3 ? "" : " ";
}
function Ai(e, t) {
for (; --t && G() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
;
return bt(e, lt() + (t < 6 && pe() == 32 && G() == 32));
}
function Vt(e) {
for (; G(); )
switch (A) {
// ] ) " '
case e:
return F;
// " '
case 34:
case 39:
e !== 34 && e !== 39 && Vt(A);
break;
// (
case 40:
e === 41 && Vt(e);
break;
// \
case 92:
G();
break;
}
return F;
}
function Ri(e, t) {
for (; G() && e + A !== 57; )
if (e + A === 84 && pe() === 47)
break;
return "/*" + bt(t, F - 1) + "*" + pn(e === 47 ? e : G());
}
function Pi(e) {
for (; !Gt(pe()); )
G();
return bt(e, F);
}
function Li(e) {
return Oi(ut("", null, null, null, [""], e = Ti(e), 0, [0], e));
}
function ut(e, t, n, r, o, i, a, s, l) {
for (var u = 0, d = 0, c = a, _ = 0, f = 0, p = 0, y = 1, v = 1, m = 1, g = 0, k = "", E = o, x = i, b = r, C = k; v; )
switch (p = g, g = G()) {
// (
case 40:
if (p != 108 && R(C, c - 1) == 58) {
ct(C += S(Pt(g), "&", "&\f"), "&\f", Wr(u ? s[u - 1] : 0)) != -1 && (m = -1);
break;
}
// " ' [
case 34:
case 39:
case 91:
C += Pt(g);
break;
// \t \n \r \s
case 9:
case 10:
case 13:
case 32:
C += Ii(p);
break;
// \
case 92:
C += Ai(lt() - 1, 7);
continue;
// /
case 47:
switch (pe()) {
case 42:
case 47:
Ue(Di(Ri(G(), lt()), t, n, l), l);
break;
default:
C += "/";
}
break;
// {
case 123 * y:
s[u++] = Z(C) * m;
// } ; \0
case 125 * y:
case 59:
case 0:
switch (g) {
// \0 }
case 0:
case 125:
v = 0;
// ;
case 59 + d:
m == -1 && (C = S(C, /\f/g, "")), f > 0 && Z(C) - c && Ue(f > 32 ? Zn(C + ";", r, n, c - 1, l) : Zn(S(C, " ", "") + ";", r, n, c - 2, l), l);
break;
// @ ;
case 59:
C += ";";
// { rule/at-rule
default:
if (Ue(b = Vn(C, t, n, u, d, o, s, k, E = [], x = [], c, i), i), g === 123)
if (d === 0)
ut(C, t, b, b, E, i, c, s, x);
else
switch (_ === 99 && R(C, 3) === 110 ? 100 : _) {
// d l m s
case 100:
case 108:
case 109:
case 115:
ut(e, b, b, r && Ue(Vn(e, b, b, 0, 0, o, s, k, o, E = [], c, x), x), o, x, c, s, r ? E : x);
break;
default:
ut(C, b, b, b, [""], x, 0, s, x);
}
}
u = d = f = 0, y = m = 1, k = C = "", c = a;
break;
// :
case 58:
c = 1 + Z(C), f = p;
default:
if (y < 1) {
if (g == 123)
--y;
else if (g == 125 && y++ == 0 && xi() == 125)
continue;
}
switch (C += pn(g), g * y) {
// &
case 38:
m = d > 0 ? 1 : (C += "\f", -1);
break;
// ,
case 44:
s[u++] = (Z(C) - 1) * m, m = 1;
break;
// @
case 64:
pe() === 45 && (C += Pt(G())), _ = pe(), d = c = Z(k = C += Pi(lt())), g++;
break;
// -
case 45:
p === 45 && Z(C) == 2 && (y = 0);
}
}
return i;
}
function Vn(e, t, n, r, o, i, a, s, l, u, d, c) {
for (var _ = o - 1, f = o === 0 ? i : [""], p = Gr(f), y = 0, v = 0, m = 0; y < r; ++y)
for (var g = 0, k = ke(e, _ + 1, _ = Wr(v = a[y])), E = e; g < p; ++g)
(E = jr(v > 0 ? f[g] + " " + k : S(k, /&\f/g, f[g]))) && (l[m++] = E);
return St(e, t, n, o === 0 ? Ct : s, l, u, d, c);
}
function Di(e, t, n, r) {
return St(e, t, n, Br, pn(Ni()), ke(e, 2, -2), 0, r);
}
function Zn(e, t, n, r, o) {
return St(e, t, n, hn, ke(e, 0, r), ke(e, r + 1, -1), r, o);
}
function Zr(e, t, n) {
switch ($i(e, t)) {
// color-adjust
case 5103:
return N + "print-" + e + e;
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
case 5737:
case 4201:
case 3177:
case 3433:
case 1641:
case 4457:
case 2921:
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
case 5572:
case 6356:
case 5844:
case 3191:
case 6645:
case 3005:
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
case 6391:
case 5879:
case 5623:
case 6135:
case 4599:
case 4855:
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
case 4215:
case 6389:
case 5109:
case 5365:
case 5621:
ca