UNPKG

@innovatrics/dot-auto-capture-ui

Version:
1,203 lines 117 kB
var Ze, v, dr, ue, Sn, pr, _r, hr, on, Bt, Ut, mr, Ge = {}, gr = [], So = /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 an(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] === void 0 && (a[i] = e.defaultProps[i]); return ze(e, a, r, o, null); } function ze(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 && v.vnode != null && v.vnode(i), i; } function Eo() { return { current: null }; } function H(e) { return e.children; } function V(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 Ft(e) { (!e.__d && (e.__d = !0) && ue.push(e) && !pt.__r++ || Sn != v.debounceRendering) && ((Sn = v.debounceRendering) || pr)(pt); } function pt() { for (var e, t, n, r, o, i, a, s = 1; ue.length; ) ue.length > s && ue.sort(_r), e = ue.shift(), s = ue.length, e.__d && (n = void 0, r = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = q({}, r)).__v = r.__v + 1, v.vnode && v.vnode(n), sn(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), r.__e = r.__ = null, n.__e != o && yr(n))); pt.__r = 0; } function vr(e, t, n, r, o, i, a, s, u, l, p) { var c, _, f, h, b, S, m, g = r && r.__k || gr, E = t.length; for (u = $o(n, t, g, u, E), c = 0; c < E; c++) (f = n.__k[c]) != null && (_ = f.__i == -1 ? Ge : g[f.__i] || Ge, f.__i = c, S = sn(e, f, _, o, i, a, s, u, l, p), h = f.__e, f.ref && _.ref != f.ref && (_.ref && cn(_.ref, null, f), p.push(f.ref, f.__c || h, f)), b == null && h != null && (b = h), (m = !!(4 & f.__u)) || _.__k === f.__k ? u = Cr(f, u, e, m) : typeof f.type == "function" && S !== void 0 ? u = S : h && (u = h.nextSibling), f.__u &= -7); return n.__e = b, u; } function $o(e, t, n, r, o) { var i, a, s, u, l, p = n.length, c = p, _ = 0; for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? a = e.__k[i] = ze(null, a, null, null, null) : Ye(a) ? a = e.__k[i] = ze(H, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? a = e.__k[i] = ze(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : e.__k[i] = a, u = i + _, a.__ = e, a.__b = e.__b + 1, s = null, (l = a.__i = ko(a, n, u, c)) != -1 && (c--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (o > p ? _-- : o < p && _++), typeof a.type != "function" && (a.__u |= 4)) : l != u && (l == u - 1 ? _-- : l == u + 1 ? _++ : (l > u ? _-- : _++, a.__u |= 4))) : e.__k[i] = null; if (c) for (i = 0; i < p; i++) (s = n[i]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = Ee(s)), Sr(s, s)); return r; } function Cr(e, t, n, r) { var o, i; if (typeof e.type == "function") { for (o = e.__k, i = 0; o && i < o.length; i++) o[i] && (o[i].__ = e, t = Cr(o[i], t, n, r)); return t; } e.__e != t && (r && (t && e.type && !t.parentNode && (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 ko(e, t, n, r) { var o, i, a, s = e.key, u = e.type, l = t[n], p = l != null && (2 & l.__u) == 0; if (l === null && s == null || p && s == l.key && u == l.type) return n; if (r > (p ? 1 : 0)) { for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) if ((l = t[a = o >= 0 ? o-- : i++]) != null && (2 & l.__u) == 0 && s == l.key && u == l.type) return a; } return -1; } function En(e, t, n) { t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || So.test(t) ? n : n + "px"; } function et(e, t, n, r, o) { var i, a; 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(hr, "$1")), a = t.toLowerCase(), t = a in e || t == "onFocusOut" || t == "onFocusIn" ? a.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = on, e.addEventListener(t, i ? Ut : Bt, i)) : e.removeEventListener(t, i ? Ut : Bt, 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 = on++; else if (t.t < n.u) return; return n(v.event ? v.event(t) : t); } }; } function sn(e, t, n, r, o, i, a, s, u, l) { var p, c, _, f, h, b, S, m, g, E, k, x, w, y, D, U, Ae, F = t.type; if (t.constructor != null) return null; 128 & n.__u && (u = !!(32 & n.__u), i = [s = t.__e = n.__e]), (p = v.__b) && p(t); e: if (typeof F == "function") try { if (m = t.props, g = "prototype" in F && F.prototype.render, E = (p = F.contextType) && r[p.__c], k = p ? E ? E.props.value : p.__ : r, n.__c ? S = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new F(m, k) : (t.__c = c = new V(m, k), c.constructor = F, c.render = xo), E && E.sub(c), c.state || (c.state = {}), c.__n = r, _ = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && F.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = q({}, c.__s)), q(c.__s, F.getDerivedStateFromProps(m, c.__s))), f = c.props, h = c.state, c.__v = t, _) g && F.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount); else { if (g && F.getDerivedStateFromProps == null && m !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, k), t.__v == n.__v || !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, k) === !1) { 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(oe) { oe && (oe.__ = 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, k), g && c.componentDidUpdate != null && c.__h.push(function() { c.componentDidUpdate(f, h, b); }); } if (c.context = k, c.props = m, c.__P = e, c.__e = !1, w = v.__r, y = 0, g) { for (c.state = c.__s, c.__d = !1, w && w(t), p = 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, w && w(t), p = c.render(c.props, c.state, c.context), c.state = c.__s; while (c.__d && ++y < 25); c.state = c.__s, c.getChildContext != null && (r = q(q({}, r), c.getChildContext())), g && !_ && c.getSnapshotBeforeUpdate != null && (b = c.getSnapshotBeforeUpdate(f, h)), U = p, p != null && p.type === H && p.key == null && (U = br(p.props.children)), s = vr(e, Ye(U) ? U : [U], t, n, r, o, i, a, s, u, l), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), S && (c.__E = c.__ = null); } catch (oe) { if (t.__v = null, u || i != null) if (oe.then) { for (t.__u |= u ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling; i[i.indexOf(s)] = null, t.__e = s; } else { for (Ae = i.length; Ae--; ) an(i[Ae]); zt(t); } else t.__e = n.__e, t.__k = n.__k, oe.then || zt(t); v.__e(oe, t, n); } else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = No(n.__e, t, n, r, o, i, a, u, l); return (p = v.diffed) && p(t), 128 & t.__u ? void 0 : s; } function zt(e) { e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(zt); } function wr(e, t, n) { for (var r = 0; r < n.length; r++) cn(n[r], n[++r], n[++r]); v.__c && v.__c(t, e), e.some(function(o) { try { e = o.__h, o.__h = [], e.some(function(i) { i.call(o); }); } catch (i) { v.__e(i, o.__v); } }); } function br(e) { return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(br) : q({}, e); } function No(e, t, n, r, o, i, a, s, u) { var l, p, c, _, f, h, b, S = n.props || Ge, 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 (l = 0; l < i.length; l++) if ((f = i[l]) && "setAttribute" in f == !!g && (g ? f.localName == g : f.nodeType == 3)) { e = f, i[l] = null; break; } } if (e == null) { if (g == null) return document.createTextNode(m); e = document.createElementNS(o, g, m.is && m), s && (v.__m && v.__m(t, i), s = !1), i = null; } if (g == null) S === m || s && e.data == m || (e.data = m); else { if (i = i && Ze.call(e.childNodes), !s && i != null) for (S = {}, l = 0; l < e.attributes.length; l++) S[(f = e.attributes[l]).name] = f.value; for (l in S) if (f = S[l], l != "children") { if (l == "dangerouslySetInnerHTML") c = f; else if (!(l in m)) { if (l == "value" && "defaultValue" in m || l == "checked" && "defaultChecked" in m) continue; et(e, l, null, f, o); } } for (l in m) f = m[l], l == "children" ? _ = f : l == "dangerouslySetInnerHTML" ? p = f : l == "value" ? h = f : l == "checked" ? b = f : s && typeof f != "function" || S[l] === f || et(e, l, f, S[l], o); if (p) s || c && (p.__html == c.__html || p.__html == e.innerHTML) || (e.innerHTML = p.__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, u), i != null) for (l = i.length; l--; ) an(i[l]); s || (l = "value", g == "progress" && h == null ? e.removeAttribute("value") : h != null && (h !== e[l] || g == "progress" && !h || g == "option" && h != S[l]) && et(e, l, h, S[l], o), l = "checked", b != null && b != e[l] && et(e, l, b, S[l], o)); } return e; } function cn(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) { v.__e(o, n); } } function Sr(e, t, n) { var r, o; if (v.unmount && v.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || cn(r, null, t)), (r = e.__c) != null) { if (r.componentWillUnmount) try { r.componentWillUnmount(); } catch (i) { v.__e(i, t); } r.base = r.__P = null; } if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Sr(r[o], t, n || typeof e.type != "function"); n || an(e.__e), e.__c = e.__ = e.__e = void 0; } function xo(e, t, n) { return this.constructor(e, n); } function se(e, t, n) { var r, o, i, a; t == document && (t = document.documentElement), v.__ && v.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], sn(t, e = (!r && n || t).__k = L(H, 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 ln(e, t) { se(e, t, ln); } function un(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] === void 0 && a != null ? a[i] : t[i]; return arguments.length > 2 && (s.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), ze(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, Ft(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, v = { __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, V.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), Ft(this)); }, V.prototype.forceUpdate = function(e) { this.__v && (this.__e = !0, e && this.__h.push(e), Ft(this)); }, V.prototype.render = H, ue = [], pr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, _r = function(e, t) { return e.__v.__b - t.__v.__b; }, pt.__r = 0, hr = /(PointerCapture)$|Capture$/i, on = 0, Bt = $n(!1), Ut = $n(!0), mr = 0; function _t() { return _t = 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; }, _t.apply(this, arguments); } function $r(e, t) { if (e == null) return {}; var n, r, o = {}, i = Object.keys(e); for (r = 0; r < i.length; r++) t.indexOf(n = i[r]) >= 0 || (o[n] = e[n]); return o; } var To = ["context", "children"], Oo = ["useFragment"]; function Io(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 = function() { Ao.call(this, r); }, o.prototype.attributeChangedCallback = Po, o.prototype.disconnectedCallback = Lo, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, e.formAssociated && (o.formAssociated = !0), n.forEach(function(i) { Object.defineProperty(o.prototype, i, { get: function() { return this._vdom ? this._vdom.props[i] : this._props[i]; }, set: function(a) { this._vdom ? this.attributeChangedCallback(i, null, a) : (this._props || (this._props = {}), this._props[i] = a); var s = typeof a; a != null && s !== "string" && s !== "boolean" && s !== "number" || this.setAttribute(i, a); } }); }), customElements.define(t, o), o; } function Ro(e) { this.getChildContext = function() { return e.context; }; var t = e.children, n = $r(e, To); return un(t, n); } function Ao(e) { var t = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 }); this.dispatchEvent(t), this._vdom = L(Ro, _t({}, this._props, { context: t.detail.context }), Nr(this, this._vdomComponent, e)), (this.hasAttribute("hydrate") ? ln : se)(this._vdom, this._root); } function kr(e) { return e.replace(/-(\w)/g, function(t, n) { return n ? n.toUpperCase() : ""; }); } function Po(e, t, n) { if (this._vdom) { var r = {}; r[e] = n = n ?? void 0, r[kr(e)] = n, this._vdom = un(this._vdom, r), se(this._vdom, this._root); } } function Lo() { se(this._vdom = null, this._root); } function kn(e, t) { var n = this, r = e.useFragment, o = $r(e, Oo); return L(r ? H : "slot", _t({}, o, { ref: function(i) { i ? (n.ref = i, n._listener || (n._listener = function(a) { a.stopPropagation(), a.detail.context = t; }, i.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener); } })); } function Nr(e, t, n) { if (e.nodeType === 3) return e.data; if (e.nodeType !== 1) return null; var r = [], o = {}, i = 0, a = e.attributes, s = e.childNodes; for (i = a.length; i--; ) a[i].name !== "slot" && (o[a[i].name] = a[i].value, o[kr(a[i].name)] = a[i].value); for (i = s.length; i--; ) { var u = Nr(s[i], null, n), l = s[i].slot; l ? o[l] = L(kn, { name: l }, u) : r[i] = u; } var p = !(!n || !n.shadow), c = t ? L(kn, { useFragment: !p }, r) : r; return !p && t && (e.innerHTML = ""), L(t || e.nodeName.toLowerCase(), o, c); } var Mo = 0; function d(e, t, n, r, o, i) { t || (t = {}); var a, s, u = t; if ("ref" in u) for (s in u = {}, t) s == "ref" ? a = t[s] : u[s] = t[s]; var l = { type: e, props: u, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Mo, __i: -1, __u: 0, __source: o, __self: i }; if (typeof e == "function" && (a = e.defaultProps)) for (s in a) u[s] === void 0 && (u[s] = a[s]); return v.vnode && v.vnode(l), l; } const Nn = { SWITCH_CAMERA: "switch-camera", TOGGLE_MIRROR: "toggle-mirror" }; var xr = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", e.CONTROL = "document-auto-capture:control", e.DETECTION_CHANGED = "document-auto-capture:detection-changed", 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))(xr || {}), pe = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "palm-capture:camera-props-changed", e.CONTROL = "palm-capture:control", e.DETECTION_CHANGED = "palm-capture:detection-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))(pe || {}); const M = { LOADING: "loading", ERROR: "error", WAITING: "waiting", // TODO: this state may not be needed in the new architecture - consider removing on next major release version RUNNING: "running", COMPLETE: "complete", BLURRED: "blurred" }, j = { 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", TEMPLATE_EXTRACTION_QUALITY_TOO_LOW: "template_extraction_quality_too_low" }; var ce, O, It, xn, $e = 0, Tr = [], I = v, Tn = I.__b, On = I.__r, In = I.diffed, Rn = I.__c, An = 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 W(e) { return $e = 1, fn(Rr, e); } function fn(e, t, n) { var r = Oe(ce++, 2); if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Rr(void 0, t), function(s) { var u = r.__N ? r.__N[0] : r.__[0], l = r.t(u, s); u !== l && (r.__N = [l, r.__[1]], r.__c.setState({})); }], r.__c = O, !O.__f)) { var o = function(s, u, l) { if (!r.__c.__H) return !0; var p = r.__c.__H.__.filter(function(_) { return !!_.__c; }); if (p.every(function(_) { return !_.__N; })) return !i || i.call(this, s, u, l); var c = r.__c.props !== s; return p.forEach(function(_) { if (_.__N) { var f = _.__[0]; _.__ = _.__N, _.__N = void 0, f !== _.__[0] && (c = !0); } }), i && i.call(this, s, u, l) || c; }; O.__f = !0; var i = O.shouldComponentUpdate, a = O.componentWillUpdate; O.componentWillUpdate = function(s, u, l) { if (this.__e) { var p = i; i = void 0, o(s, u, l), i = p; } a && a.call(this, s, u, l); }, O.shouldComponentUpdate = o; } return r.__N || r.__; } function ne(e, t) { var n = Oe(ce++, 3); !I.__s && dn(n.__H, t) && (n.__ = e, n.u = t, O.__H.__h.push(n)); } function Ie(e, t) { var n = Oe(ce++, 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 Or(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(ce++, 7); return dn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__; } function _e(e, t) { return $e = 8, te(function() { return e; }, t); } function Xe(e) { var t = O.context[e.__c], n = Oe(ce++, 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 Ir() { var e = Oe(ce++, 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 Do() { for (var e; e = Tr.shift(); ) if (e.__P && e.__H) try { e.__H.__h.forEach(it), e.__H.__h.forEach(jt), 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), ce = 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(it), t.__h.forEach(jt), t.__h = [], ce = 0)), It = O; }, I.diffed = function(e) { In && In(e); var t = e.__c; t && t.__H && (t.__H.__h.length && (Tr.push(t) !== 1 && xn === I.requestAnimationFrame || ((xn = I.requestAnimationFrame) || Ho)(Do)), 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(it), n.__h = n.__h.filter(function(r) { return !r.__ || jt(r); }); } catch (r) { t.some(function(o) { o.__h && (o.__h = []); }), t = [], I.__e(r, n.__v); } }), Rn && Rn(e, t); }, I.unmount = function(e) { An && An(e); var t, n = e.__c; n && n.__H && (n.__H.__.forEach(function(r) { try { it(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, 35); Ln && (t = requestAnimationFrame(n)); } function it(e) { var t = O, n = e.__c; typeof n == "function" && (e.__c = void 0, n()), O = t; } function jt(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 Rr(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 Bo(e) { var t = /* @__PURE__ */ Object.create(null); return function(n) { return t[n] === void 0 && (t[n] = e(n)), t[n]; }; } var Uo = /^((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)-.*))$/, Fo = /* @__PURE__ */ Bo( function(e) { return Uo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ); function Ar(e, t) { for (var n in t) e[n] = t[n]; return e; } function Wt(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 Pr(e, t) { var n = t(), r = W({ t: { __: n, u: t } }), o = r[0].t, i = r[1]; return Ie(function() { o.__ = n, o.u = t, Rt(o) && i({ t: o }); }, [e, n, t]), ne(function() { return Rt(o) && i({ t: o }), e(function() { Rt(o) && i({ t: o }); }); }, [e]), n; } function Rt(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 Lr(e) { e(); } function Mr(e) { return e; } function Dr() { return [!1, Lr]; } var Hr = Ie; function Gt(e, t) { this.props = e, this.context = t; } function zo(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 : Wt(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.type = e, r; } (Gt.prototype = new V()).isPureReactComponent = !0, Gt.prototype.shouldComponentUpdate = function(e, t) { return Wt(this.props, e) || Wt(this.state, t); }; var Mn = v.__b; v.__b = function(e) { e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Mn && Mn(e); }; var jo = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911; function Wo(e) { function t(n) { var r = Ar({}, n); return delete r.ref, e(r, n.ref || null); } return t.$$typeof = jo, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t; } var Dn = function(e, t) { return e == null ? null : ee(ee(e).map(t)); }, Go = { map: Dn, forEach: Dn, 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 = v.__e; v.__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 = v.unmount; function Br(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 = Ar({}, 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 Br(r, t, n); })), e; } function Ur(e, t, n) { return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) { return Ur(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 at() { this.__u = 0, this.o = null, this.__b = null; } function Fr(e) { var t = e.__.__c; return t && t.__a && t.__a(e); } function Zo(e) { var t, n, r, o = null; function i(a) { if (t || (t = e()).then(function(s) { s && (o = s.default || s), r = !0; }, function(s) { n = s, r = !0; }), n) throw n; if (!r) throw t; return o ? L(o, a) : null; } return i.displayName = "Lazy", i.__f = !0, i; } function He() { this.i = null, this.l = null; } v.unmount = function(e) { var t = e.__c; t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Hn && Hn(e); }, (at.prototype = new V()).__c = function(e, t) { var n = t.__c, r = this; r.o == null && (r.o = []), r.o.push(n); var o = Fr(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 u = r.state.__a; r.__v.__k[0] = Ur(u, u.__c.__P, u.__c.__O); } var l; for (r.setState({ __a: r.__b = null }); l = r.o.pop(); ) l.forceUpdate(); } }; r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a); }, at.prototype.componentWillUnmount = function() { this.o = []; }, at.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] = Br(this.__b, n, r.__O = r.__P); } this.__b = null; } var o = t.__a && L(H, null, e.fallback); return o && (o.__u &= -33), [L(H, null, t.__a ? null : e.children), o]; }; var Bn = 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() { se(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; }, 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); } }; } se(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 V()).__a = function(e) { var t = this, n = Fr(t.__v), r = t.l.get(e); return r[0]++, function(o) { var i = function() { t.props.revealOrder ? (r.push(o), Bn(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) { Bn(e, n, t); }); }; var zr = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ 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]/, Qo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Jo = /[A-Z0-9]/g, ei = typeof document < "u", ti = function(e) { return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e); }; function ni(e, t, n) { return t.__k == null && (t.textContent = ""), se(e, t), typeof n == "function" && n(), e ? e.__c : null; } function ri(e, t, n) { return ln(e, t), typeof n == "function" && n(), e ? e.__c : null; } V.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) { Object.defineProperty(V.prototype, e, { configurable: !0, get: function() { return this["UNSAFE_" + e]; }, set: function(t) { Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t }); } }); }); var Un = v.event; function oi() { } function ii() { return this.cancelBubble; } function ai() { return this.defaultPrevented; } v.event = function(e) { return Un && (e = Un(e)), e.persist = oi, e.isPropagationStopped = ii, e.isDefaultPrevented = ai, e.nativeEvent = e; }; var pn, si = { enumerable: !1, configurable: !0, get: function() { return this.class; } }, Fn = v.vnode; v.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 u = a.toLowerCase(); a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : u === "translate" && s === "no" ? s = !1 : u[0] === "o" && u[1] === "n" ? u === "ondoubleclick" ? a = "ondblclick" : u !== "onchange" || r !== "input" && r !== "textarea" || ti(n.type) ? u === "onfocus" ? a = "onfocusin" : u === "onblur" ? a = "onfocusout" : Qo.test(a) && (a = u) : u = a = "oninput" : i && Ko.test(a) ? a = a.replace(Jo, "-$&").toLowerCase() : s === null && (s = void 0), u === "oninput" && o[a = u] && (a = "oninputCapture"), o[a] = s; } } r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ee(n.children).forEach(function(l) { l.props.selected = o.value.indexOf(l.props.value) != -1; })), r == "select" && o.defaultValue != null && (o.value = ee(n.children).forEach(function(l) { l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.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, Fn && Fn(e); }; var zn = v.__r; v.__r = function(e) { zn && zn(e), pn = e.__c; }; var jn = v.diffed; v.diffed = function(e) { jn && jn(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), pn = null; }; var ci = { ReactCurrentDispatcher: { current: { readContext: function(e) { return pn.__n[e.__c].props.value; }, useCallback: _e, useContext: Xe, useDebugValue: ht, useDeferredValue: Mr, useEffect: ne, useId: Ir, useImperativeHandle: Or, useInsertionEffect: Hr, useLayoutEffect: Ie, useMemo: te, useReducer: fn, useRef: qe, useState: W, useSyncExternalStore: Pr, useTransition: Dr } } }; function li(e) { return L.bind(null, e); } function vt(e) { return !!e && e.$$typeof === zr; } function ui(e) { return vt(e) && e.type === H; } 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) ? un.apply(null, arguments) : e; } function pi(e) { return !!e.__k && (se(null, e), !0); } function _i(e) { return e && (e.base || e.nodeType === 1 && e) || null; } var hi = function(e, t) { return e(t); }, mi = function(e, t) { return e(t); }, gi = H, yi = vt, re = { useState: W, useId: Ir, useReducer: fn, useEffect: ne, useLayoutEffect: Ie, useInsertionEffect: Hr, useTransition: Dr, useDeferredValue: Mr, useSyncExternalStore: Pr, startTransition: Lr, useRef: qe, useImperativeHandle: Or, useMemo: te, useCallback: _e, useContext: Xe, useDebugValue: ht, version: "18.3.1", Children: Go, render: ni, hydrate: ri, unmountComponentAtNode: pi, createPortal: Xo, createElement: L, createContext: Er, createFactory: li, cloneElement: di, createRef: Eo, Fragment: H, isValidElement: vt, isElement: yi, isFragment: ui, isMemo: fi, findDOMNode: _i, Component: V, PureComponent: Gt, memo: zo, forwardRef: Wo, flushSync: mi, unstable_batchedUpdates: hi, StrictMode: gi, Suspense: at, 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 At, Wn; function Ci() { return Wn || (Wn = 1, At = 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 u = Object.prototype.hasOwnProperty.bind(n), l = 0; l < a.length; l++) { var p = a[l]; if (!u(p)) return !1; var c = t[p], _ = n[p]; if (i = r ? r.call(o, c, _, p) : void 0, i === !1 || i === void 0 && c !== _) return !1; } return !0; }), At; } var wi = Ci(); const bi = /* @__PURE__ */ vi(wi); var T = "-ms-", je = "-moz-", N = "-webkit-", jr = "comm", Ct = "rule", _n = "decl", Si = "@import", Wr = "@keyframes", Ei = "@layer", Gr = Math.abs, hn = String.fromCharCode, Vt = Object.assign; function $i(e, t) { return A(e, 0) ^ 45 ? (((t << 2 ^ A(e, 0)) << 2 ^ A(e, 1)) << 2 ^ A(e, 2)) << 2 ^ A(e, 3) : 0; } function Vr(e) { return e.trim(); } function Q(e, t) { return (e = t.exec(e)) ? e[0] : e; } function C(e, t, n) { return e.replace(t, n); } function st(e, t, n) { return e.indexOf(t, n); } function A(e, t) { return e.charCodeAt(t) | 0; } function ke(e, t, n) { return e.slice(t, n); } function Y(e) { return e.length; } function Zr(e) { return e.length; } function Be(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 !Q(n, t); }); } var wt = 1, Ne = 1, Yr = 0, G = 0, R = 0, Re = ""; function bt(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 ae(e, t) { return Vt(bt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t); } function be(e) { for (; e.root; ) e = ae(e.root, { children: [e] }); Be(e, e.siblings); } function Ni() { return R; } function xi() { return R = G > 0 ? A(Re, --G) : 0, Ne--, R === 10 && (Ne = 1, wt--), R; } function Z() { return R = G < Yr ? A(Re, G++) : 0, Ne++, R === 10 && (Ne = 1, wt++), R; } function he() { return A(Re, G); } function ct() { return G; } function St(e, t) { return ke(Re, e, t); } function Zt(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, Yr = Y(Re = e), G = 0, []; } function Oi(e) { return Re = "", e; } function Pt(e) { return Vr(St(G - 1, Yt(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function Ii(e) { for (; (R = he()) && R < 33; ) Z(); return Zt(e) > 2 || Zt(R) > 3 ? "" : " "; } function Ri(e, t) { for (; --t && Z() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); ) ; return St(e, ct() + (t < 6 && he() == 32 && Z() == 32)); } function Yt(e) { for (; Z(); ) switch (R) { // ] ) " ' case e: return G; // " ' case 34: case 39: e !== 34 && e !== 39 && Yt(R); break; // ( case 40: e === 41 && Yt(e); break; // \ case 92: Z(); break; } return G; } function Ai(e, t) { for (; Z() && e + R !== 57; ) if (e + R === 84 && he() === 47) break; return "/*" + St(t, G - 1) + "*" + hn(e === 47 ? e : Z()); } function Pi(e) { for (; !Zt(he()); ) Z(); return St(e, G); } function Li(e) { return Oi(lt("", null, null, null, [""], e = Ti(e), 0, [0], e)); } function lt(e, t, n, r, o, i, a, s, u) { for (var l = 0, p = 0, c = a, _ = 0, f = 0, h = 0, b = 1, S = 1, m = 1, g = 0, E = "", k = o, x = i, w = r, y = E; S; ) switch (h = g, g = Z()) { // ( case 40: if (h != 108 && A(y, c - 1) == 58) { st(y += C(Pt(g), "&", "&\f"), "&\f", Gr(l ? s[l - 1] : 0)) != -1 && (m = -1); break; } // " ' [ case 34: case 39: case 91: y += Pt(g); break; // \t \n \r \s case 9: case 10: case 13: case 32: y += Ii(h); break; // \ case 92: y += Ri(ct() - 1, 7); continue; // / case 47: switch (he()) { case 42: case 47: Be(Mi(Ai(Z(), ct()), t, n, u), u); break; default: y += "/"; } break; // { case 123 * b: s[l++] = Y(y) * m; // } ; \0 case 125 * b: case 59: case 0: switch (g) { // \0 } case 0: case 125: S = 0; // ; case 59 + p: m == -1 && (y = C(y, /\f/g, "")), f > 0 && Y(y) - c && Be(f > 32 ? Zn(y + ";", r, n, c - 1, u) : Zn(C(y, " ", "") + ";", r, n, c - 2, u), u); break; // @ ; case 59: y += ";"; // { rule/at-rule default: if (Be(w = Vn(y, t, n, l, p, o, s, E, k = [], x = [], c, i), i), g === 123) if (p === 0) lt(y, t, w, w, k, i, c, s, x); else switch (_ === 99 && A(y, 3) === 110 ? 100 : _) { // d l m s case 100: case 108: case 109: case 115: lt(e, w, w, r && Be(Vn(e, w, w, 0, 0, o, s, E, o, k = [], c, x), x), o, x, c, s, r ? k : x); break; default: lt(y, w, w, w, [""], x, 0, s, x); } } l = p = f = 0, b = m = 1, E = y = "", c = a; break; // : case 58: c = 1 + Y(y), f = h; default: if (b < 1) { if (g == 123) --b; else if (g == 125 && b++ == 0 && xi() == 125) continue; } switch (y += hn(g), g * b) { // & case 38: m = p > 0 ? 1 : (y += "\f", -1); break; // , case 44: s[l++] = (Y(y) - 1) * m, m = 1; break; // @ case 64: he() === 45 && (y += Pt(Z())), _ = he(), p = c = Y(E = y += Pi(ct())), g++; break; // - case 45: h === 45 && Y(y) == 2 && (b = 0); } } return i; } function Vn(e, t, n, r, o, i, a, s, u, l, p, c) { for (var _ = o - 1, f = o === 0 ? i : [""], h = Zr(f), b = 0, S = 0, m = 0; b < r; ++b) for (var g = 0, E = ke(e, _ + 1, _ = Gr(S = a[b])), k = e; g < h; ++g) (k = Vr(S > 0 ? f[g] + " " + E : C(E, /&\f/g, f[g]))) && (u[m++] = k); return bt(e, t, n, o === 0 ? Ct : s, u, l, p, c); } function Mi(e, t, n, r) { return bt(e, t, n, jr, hn(Ni()), ke(e, 2, -2), 0, r); } function Zn(e, t, n, r, o) { return bt(e, t, n, _n, ke(e, 0, r), ke(e, r + 1, -1), r, o); } function qr(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: