UNPKG

@zh-keyboard/react

Version:

基于React的中文虚拟键盘组件

1,488 lines 242 kB
var io = Object.defineProperty; var oo = (a, s, l) => s in a ? io(a, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[s] = l; var _e = (a, s, l) => oo(a, typeof s != "symbol" ? s + "" : s, l); import Un, { useState as je, useCallback as pt, useEffect as Dt, useRef as $e, useLayoutEffect as Bn, useReducer as so, useMemo as Ue } from "react"; import uo from "react-dom"; var co = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function oi(a) { return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a; } var Dn = { exports: {} }, Xt = {}; /** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Ca; function lo() { if (Ca) return Xt; Ca = 1; var a = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment"); function l(h, j, x) { var w = null; if (x !== void 0 && (w = "" + x), j.key !== void 0 && (w = "" + j.key), "key" in j) { x = {}; for (var E in j) E !== "key" && (x[E] = j[E]); } else x = j; return j = x.ref, { $$typeof: a, type: h, key: w, ref: j !== void 0 ? j : null, props: x }; } return Xt.Fragment = s, Xt.jsx = l, Xt.jsxs = l, Xt; } var Qt = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Ta; function fo() { return Ta || (Ta = 1, process.env.NODE_ENV !== "production" && function() { function a(P) { if (P == null) return null; if (typeof P == "function") return P.$$typeof === bt ? null : P.displayName || P.name || null; if (typeof P == "string") return P; switch (P) { case G: return "Fragment"; case re: return "Profiler"; case ne: return "StrictMode"; case ae: return "Suspense"; case de: return "SuspenseList"; case Oe: return "Activity"; } if (typeof P == "object") switch (typeof P.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), P.$$typeof) { case Y: return "Portal"; case Pe: return (P.displayName || "Context") + ".Provider"; case le: return (P._context.displayName || "Context") + ".Consumer"; case ye: var X = P.render; return P = P.displayName, P || (P = X.displayName || X.name || "", P = P !== "" ? "ForwardRef(" + P + ")" : "ForwardRef"), P; case oe: return X = P.displayName || null, X !== null ? X : a(P.type) || "Memo"; case qe: X = P._payload, P = P._init; try { return a(P(X)); } catch { } } return null; } function s(P) { return "" + P; } function l(P) { try { s(P); var X = !1; } catch { X = !0; } if (X) { X = console; var se = X.error, he = typeof Symbol == "function" && Symbol.toStringTag && P[Symbol.toStringTag] || P.constructor.name || "Object"; return se.call( X, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", he ), s(P); } } function h(P) { if (P === G) return "<>"; if (typeof P == "object" && P !== null && P.$$typeof === qe) return "<...>"; try { var X = a(P); return X ? "<" + X + ">" : "<...>"; } catch { return "<...>"; } } function j() { var P = _t.A; return P === null ? null : P.getOwner(); } function x() { return Error("react-stack-top-frame"); } function w(P) { if (Ge.call(P, "key")) { var X = Object.getOwnPropertyDescriptor(P, "key").get; if (X && X.isReactWarning) return !1; } return P.key !== void 0; } function E(P, X) { function se() { wt || (wt = !0, console.error( "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", X )); } se.isReactWarning = !0, Object.defineProperty(P, "key", { get: se, configurable: !0 }); } function T() { var P = a(this.type); return xt[P] || (xt[P] = !0, console.error( "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." )), P = this.props.ref, P !== void 0 ? P : null; } function M(P, X, se, he, Re, Ee, Ie, rt) { return se = Ee.ref, P = { $$typeof: L, type: P, key: X, props: Ee, _owner: Re }, (se !== void 0 ? se : null) !== null ? Object.defineProperty(P, "ref", { enumerable: !1, get: T }) : Object.defineProperty(P, "ref", { enumerable: !1, value: null }), P._store = {}, Object.defineProperty(P._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(P, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty(P, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: Ie }), Object.defineProperty(P, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: rt }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P; } function H(P, X, se, he, Re, Ee, Ie, rt) { var me = X.children; if (me !== void 0) if (he) if (Be(me)) { for (he = 0; he < me.length; he++) F(me[he]); Object.freeze && Object.freeze(me); } else console.error( "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." ); else F(me); if (Ge.call(X, "key")) { me = a(P); var $ = Object.keys(X).filter(function(Et) { return Et !== "key"; }); he = 0 < $.length ? "{key: someKey, " + $.join(": ..., ") + ": ...}" : "{key: someKey}", Le[me + he] || ($ = 0 < $.length ? "{" + $.join(": ..., ") + ": ...}" : "{}", console.error( `A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, he, me, $, me ), Le[me + he] = !0); } if (me = null, se !== void 0 && (l(se), me = "" + se), w(X) && (l(X.key), me = "" + X.key), "key" in X) { se = {}; for (var kt in X) kt !== "key" && (se[kt] = X[kt]); } else se = X; return me && E( se, typeof P == "function" ? P.displayName || P.name || "Unknown" : P ), M( P, me, Ee, Re, j(), se, Ie, rt ); } function F(P) { typeof P == "object" && P !== null && P.$$typeof === L && P._store && (P._store.validated = 1); } var U = Un, L = Symbol.for("react.transitional.element"), Y = Symbol.for("react.portal"), G = Symbol.for("react.fragment"), ne = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), le = Symbol.for("react.consumer"), Pe = Symbol.for("react.context"), ye = Symbol.for("react.forward_ref"), ae = Symbol.for("react.suspense"), de = Symbol.for("react.suspense_list"), oe = Symbol.for("react.memo"), qe = Symbol.for("react.lazy"), Oe = Symbol.for("react.activity"), bt = Symbol.for("react.client.reference"), _t = U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ge = Object.prototype.hasOwnProperty, Be = Array.isArray, Nt = console.createTask ? console.createTask : function() { return null; }; U = { "react-stack-bottom-frame": function(P) { return P(); } }; var wt, xt = {}, on = U["react-stack-bottom-frame"].bind( U, x )(), De = Nt(h(x)), Le = {}; Qt.Fragment = G, Qt.jsx = function(P, X, se, he, Re) { var Ee = 1e4 > _t.recentlyCreatedOwnerStacks++; return H( P, X, se, !1, he, Re, Ee ? Error("react-stack-top-frame") : on, Ee ? Nt(h(P)) : De ); }, Qt.jsxs = function(P, X, se, he, Re) { var Ee = 1e4 > _t.recentlyCreatedOwnerStacks++; return H( P, X, se, !0, he, Re, Ee ? Error("react-stack-top-frame") : on, Ee ? Nt(h(P)) : De ); }; }()), Qt; } var Pa; function ho() { return Pa || (Pa = 1, process.env.NODE_ENV === "production" ? Dn.exports = lo() : Dn.exports = fo()), Dn.exports; } var A = ho(), si = typeof global == "object" && global && global.Object === Object && global, vo = typeof self == "object" && self && self.Object === Object && self, Ve = si || vo || Function("return this")(), Rt = Ve.Symbol, ui = Object.prototype, po = ui.hasOwnProperty, yo = ui.toString, Zt = Rt ? Rt.toStringTag : void 0; function mo(a) { var s = po.call(a, Zt), l = a[Zt]; try { a[Zt] = void 0; var h = !0; } catch { } var j = yo.call(a); return h && (s ? a[Zt] = l : delete a[Zt]), j; } var go = Object.prototype, bo = go.toString; function _o(a) { return bo.call(a); } var wo = "[object Null]", xo = "[object Undefined]", Aa = Rt ? Rt.toStringTag : void 0; function an(a) { return a == null ? a === void 0 ? xo : wo : Aa && Aa in Object(a) ? mo(a) : _o(a); } function tn(a) { return a != null && typeof a == "object"; } var Ln = Array.isArray; function ci(a) { var s = typeof a; return a != null && (s == "object" || s == "function"); } var ko = "[object AsyncFunction]", Eo = "[object Function]", So = "[object GeneratorFunction]", jo = "[object Proxy]"; function li(a) { if (!ci(a)) return !1; var s = an(a); return s == Eo || s == So || s == ko || s == jo; } var Tr = Ve["__core-js_shared__"], Ra = function() { var a = /[^.]+$/.exec(Tr && Tr.keys && Tr.keys.IE_PROTO || ""); return a ? "Symbol(src)_1." + a : ""; }(); function Oo(a) { return !!Ra && Ra in a; } var Co = Function.prototype, To = Co.toString; function mt(a) { if (a != null) { try { return To.call(a); } catch { } try { return a + ""; } catch { } } return ""; } var Po = /[\\^$.*+?()[\]{}|]/g, Ao = /^\[object .+?Constructor\]$/, Ro = Function.prototype, Do = Object.prototype, Io = Ro.toString, No = Do.hasOwnProperty, zo = RegExp( "^" + Io.call(No).replace(Po, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function Ko(a) { if (!ci(a) || Oo(a)) return !1; var s = li(a) ? zo : Ao; return s.test(mt(a)); } function qo(a, s) { return a == null ? void 0 : a[s]; } function It(a, s) { var l = qo(a, s); return Ko(l) ? l : void 0; } var zr = It(Ve, "WeakMap"), Bo = 9007199254740991, Lo = /^(?:0|[1-9]\d*)$/; function Mo(a, s) { var l = typeof a; return s = s ?? Bo, !!s && (l == "number" || l != "symbol" && Lo.test(a)) && a > -1 && a % 1 == 0 && a < s; } function fi(a, s) { return a === s || a !== a && s !== s; } var Fo = 9007199254740991; function hi(a) { return typeof a == "number" && a > -1 && a % 1 == 0 && a <= Fo; } function $o(a) { return a != null && hi(a.length) && !li(a); } var Uo = Object.prototype; function Vo(a) { var s = a && a.constructor, l = typeof s == "function" && s.prototype || Uo; return a === l; } function Ho(a, s) { for (var l = -1, h = Array(a); ++l < a; ) h[l] = s(l); return h; } var Go = "[object Arguments]"; function Da(a) { return tn(a) && an(a) == Go; } var di = Object.prototype, Yo = di.hasOwnProperty, Wo = di.propertyIsEnumerable, Xo = Da(/* @__PURE__ */ function() { return arguments; }()) ? Da : function(a) { return tn(a) && Yo.call(a, "callee") && !Wo.call(a, "callee"); }; function Qo() { return !1; } var vi = typeof exports == "object" && exports && !exports.nodeType && exports, Ia = vi && typeof module == "object" && module && !module.nodeType && module, Zo = Ia && Ia.exports === vi, Na = Zo ? Ve.Buffer : void 0, Jo = Na ? Na.isBuffer : void 0, Kr = Jo || Qo, es = "[object Arguments]", ts = "[object Array]", ns = "[object Boolean]", rs = "[object Date]", as = "[object Error]", is = "[object Function]", os = "[object Map]", ss = "[object Number]", us = "[object Object]", cs = "[object RegExp]", ls = "[object Set]", fs = "[object String]", hs = "[object WeakMap]", ds = "[object ArrayBuffer]", vs = "[object DataView]", ps = "[object Float32Array]", ys = "[object Float64Array]", ms = "[object Int8Array]", gs = "[object Int16Array]", bs = "[object Int32Array]", _s = "[object Uint8Array]", ws = "[object Uint8ClampedArray]", xs = "[object Uint16Array]", ks = "[object Uint32Array]", ce = {}; ce[ps] = ce[ys] = ce[ms] = ce[gs] = ce[bs] = ce[_s] = ce[ws] = ce[xs] = ce[ks] = !0; ce[es] = ce[ts] = ce[ds] = ce[ns] = ce[vs] = ce[rs] = ce[as] = ce[is] = ce[os] = ce[ss] = ce[us] = ce[cs] = ce[ls] = ce[fs] = ce[hs] = !1; function Es(a) { return tn(a) && hi(a.length) && !!ce[an(a)]; } function Ss(a) { return function(s) { return a(s); }; } var pi = typeof exports == "object" && exports && !exports.nodeType && exports, en = pi && typeof module == "object" && module && !module.nodeType && module, js = en && en.exports === pi, Pr = js && si.process, za = function() { try { var a = en && en.require && en.require("util").types; return a || Pr && Pr.binding && Pr.binding("util"); } catch { } }(), Ka = za && za.isTypedArray, yi = Ka ? Ss(Ka) : Es, Os = Object.prototype, Cs = Os.hasOwnProperty; function Ts(a, s) { var l = Ln(a), h = !l && Xo(a), j = !l && !h && Kr(a), x = !l && !h && !j && yi(a), w = l || h || j || x, E = w ? Ho(a.length, String) : [], T = E.length; for (var M in a) Cs.call(a, M) && !(w && // Safari 9 has enumerable `arguments.length` in strict mode. (M == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. j && (M == "offset" || M == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. x && (M == "buffer" || M == "byteLength" || M == "byteOffset") || // Skip index properties. Mo(M, T))) && E.push(M); return E; } function Ps(a, s) { return function(l) { return a(s(l)); }; } var As = Ps(Object.keys, Object), Rs = Object.prototype, Ds = Rs.hasOwnProperty; function Is(a) { if (!Vo(a)) return As(a); var s = []; for (var l in Object(a)) Ds.call(a, l) && l != "constructor" && s.push(l); return s; } function Ns(a) { return $o(a) ? Ts(a) : Is(a); } var nn = It(Object, "create"); function zs() { this.__data__ = nn ? nn(null) : {}, this.size = 0; } function Ks(a) { var s = this.has(a) && delete this.__data__[a]; return this.size -= s ? 1 : 0, s; } var qs = "__lodash_hash_undefined__", Bs = Object.prototype, Ls = Bs.hasOwnProperty; function Ms(a) { var s = this.__data__; if (nn) { var l = s[a]; return l === qs ? void 0 : l; } return Ls.call(s, a) ? s[a] : void 0; } var Fs = Object.prototype, $s = Fs.hasOwnProperty; function Us(a) { var s = this.__data__; return nn ? s[a] !== void 0 : $s.call(s, a); } var Vs = "__lodash_hash_undefined__"; function Hs(a, s) { var l = this.__data__; return this.size += this.has(a) ? 0 : 1, l[a] = nn && s === void 0 ? Vs : s, this; } function yt(a) { var s = -1, l = a == null ? 0 : a.length; for (this.clear(); ++s < l; ) { var h = a[s]; this.set(h[0], h[1]); } } yt.prototype.clear = zs; yt.prototype.delete = Ks; yt.prototype.get = Ms; yt.prototype.has = Us; yt.prototype.set = Hs; function Gs() { this.__data__ = [], this.size = 0; } function Vn(a, s) { for (var l = a.length; l--; ) if (fi(a[l][0], s)) return l; return -1; } var Ys = Array.prototype, Ws = Ys.splice; function Xs(a) { var s = this.__data__, l = Vn(s, a); if (l < 0) return !1; var h = s.length - 1; return l == h ? s.pop() : Ws.call(s, l, 1), --this.size, !0; } function Qs(a) { var s = this.__data__, l = Vn(s, a); return l < 0 ? void 0 : s[l][1]; } function Zs(a) { return Vn(this.__data__, a) > -1; } function Js(a, s) { var l = this.__data__, h = Vn(l, a); return h < 0 ? (++this.size, l.push([a, s])) : l[h][1] = s, this; } function He(a) { var s = -1, l = a == null ? 0 : a.length; for (this.clear(); ++s < l; ) { var h = a[s]; this.set(h[0], h[1]); } } He.prototype.clear = Gs; He.prototype.delete = Xs; He.prototype.get = Qs; He.prototype.has = Zs; He.prototype.set = Js; var rn = It(Ve, "Map"); function eu() { this.size = 0, this.__data__ = { hash: new yt(), map: new (rn || He)(), string: new yt() }; } function tu(a) { var s = typeof a; return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? a !== "__proto__" : a === null; } function Hn(a, s) { var l = a.__data__; return tu(s) ? l[typeof s == "string" ? "string" : "hash"] : l.map; } function nu(a) { var s = Hn(this, a).delete(a); return this.size -= s ? 1 : 0, s; } function ru(a) { return Hn(this, a).get(a); } function au(a) { return Hn(this, a).has(a); } function iu(a, s) { var l = Hn(this, a), h = l.size; return l.set(a, s), this.size += l.size == h ? 0 : 1, this; } function gt(a) { var s = -1, l = a == null ? 0 : a.length; for (this.clear(); ++s < l; ) { var h = a[s]; this.set(h[0], h[1]); } } gt.prototype.clear = eu; gt.prototype.delete = nu; gt.prototype.get = ru; gt.prototype.has = au; gt.prototype.set = iu; function ou(a, s) { for (var l = -1, h = s.length, j = a.length; ++l < h; ) a[j + l] = s[l]; return a; } function su() { this.__data__ = new He(), this.size = 0; } function uu(a) { var s = this.__data__, l = s.delete(a); return this.size = s.size, l; } function cu(a) { return this.__data__.get(a); } function lu(a) { return this.__data__.has(a); } var fu = 200; function hu(a, s) { var l = this.__data__; if (l instanceof He) { var h = l.__data__; if (!rn || h.length < fu - 1) return h.push([a, s]), this.size = ++l.size, this; l = this.__data__ = new gt(h); } return l.set(a, s), this.size = l.size, this; } function nt(a) { var s = this.__data__ = new He(a); this.size = s.size; } nt.prototype.clear = su; nt.prototype.delete = uu; nt.prototype.get = cu; nt.prototype.has = lu; nt.prototype.set = hu; function du(a, s) { for (var l = -1, h = a == null ? 0 : a.length, j = 0, x = []; ++l < h; ) { var w = a[l]; s(w, l, a) && (x[j++] = w); } return x; } function vu() { return []; } var pu = Object.prototype, yu = pu.propertyIsEnumerable, qa = Object.getOwnPropertySymbols, mu = qa ? function(a) { return a == null ? [] : (a = Object(a), du(qa(a), function(s) { return yu.call(a, s); })); } : vu; function gu(a, s, l) { var h = s(a); return Ln(a) ? h : ou(h, l(a)); } function Ba(a) { return gu(a, Ns, mu); } var qr = It(Ve, "DataView"), Br = It(Ve, "Promise"), Lr = It(Ve, "Set"), La = "[object Map]", bu = "[object Object]", Ma = "[object Promise]", Fa = "[object Set]", $a = "[object WeakMap]", Ua = "[object DataView]", _u = mt(qr), wu = mt(rn), xu = mt(Br), ku = mt(Lr), Eu = mt(zr), tt = an; (qr && tt(new qr(new ArrayBuffer(1))) != Ua || rn && tt(new rn()) != La || Br && tt(Br.resolve()) != Ma || Lr && tt(new Lr()) != Fa || zr && tt(new zr()) != $a) && (tt = function(a) { var s = an(a), l = s == bu ? a.constructor : void 0, h = l ? mt(l) : ""; if (h) switch (h) { case _u: return Ua; case wu: return La; case xu: return Ma; case ku: return Fa; case Eu: return $a; } return s; }); var Va = Ve.Uint8Array, Su = "__lodash_hash_undefined__"; function ju(a) { return this.__data__.set(a, Su), this; } function Ou(a) { return this.__data__.has(a); } function Mn(a) { var s = -1, l = a == null ? 0 : a.length; for (this.__data__ = new gt(); ++s < l; ) this.add(a[s]); } Mn.prototype.add = Mn.prototype.push = ju; Mn.prototype.has = Ou; function Cu(a, s) { for (var l = -1, h = a == null ? 0 : a.length; ++l < h; ) if (s(a[l], l, a)) return !0; return !1; } function Tu(a, s) { return a.has(s); } var Pu = 1, Au = 2; function mi(a, s, l, h, j, x) { var w = l & Pu, E = a.length, T = s.length; if (E != T && !(w && T > E)) return !1; var M = x.get(a), H = x.get(s); if (M && H) return M == s && H == a; var F = -1, U = !0, L = l & Au ? new Mn() : void 0; for (x.set(a, s), x.set(s, a); ++F < E; ) { var Y = a[F], G = s[F]; if (h) var ne = w ? h(G, Y, F, s, a, x) : h(Y, G, F, a, s, x); if (ne !== void 0) { if (ne) continue; U = !1; break; } if (L) { if (!Cu(s, function(re, le) { if (!Tu(L, le) && (Y === re || j(Y, re, l, h, x))) return L.push(le); })) { U = !1; break; } } else if (!(Y === G || j(Y, G, l, h, x))) { U = !1; break; } } return x.delete(a), x.delete(s), U; } function Ru(a) { var s = -1, l = Array(a.size); return a.forEach(function(h, j) { l[++s] = [j, h]; }), l; } function Du(a) { var s = -1, l = Array(a.size); return a.forEach(function(h) { l[++s] = h; }), l; } var Iu = 1, Nu = 2, zu = "[object Boolean]", Ku = "[object Date]", qu = "[object Error]", Bu = "[object Map]", Lu = "[object Number]", Mu = "[object RegExp]", Fu = "[object Set]", $u = "[object String]", Uu = "[object Symbol]", Vu = "[object ArrayBuffer]", Hu = "[object DataView]", Ha = Rt ? Rt.prototype : void 0, Ar = Ha ? Ha.valueOf : void 0; function Gu(a, s, l, h, j, x, w) { switch (l) { case Hu: if (a.byteLength != s.byteLength || a.byteOffset != s.byteOffset) return !1; a = a.buffer, s = s.buffer; case Vu: return !(a.byteLength != s.byteLength || !x(new Va(a), new Va(s))); case zu: case Ku: case Lu: return fi(+a, +s); case qu: return a.name == s.name && a.message == s.message; case Mu: case $u: return a == s + ""; case Bu: var E = Ru; case Fu: var T = h & Iu; if (E || (E = Du), a.size != s.size && !T) return !1; var M = w.get(a); if (M) return M == s; h |= Nu, w.set(a, s); var H = mi(E(a), E(s), h, j, x, w); return w.delete(a), H; case Uu: if (Ar) return Ar.call(a) == Ar.call(s); } return !1; } var Yu = 1, Wu = Object.prototype, Xu = Wu.hasOwnProperty; function Qu(a, s, l, h, j, x) { var w = l & Yu, E = Ba(a), T = E.length, M = Ba(s), H = M.length; if (T != H && !w) return !1; for (var F = T; F--; ) { var U = E[F]; if (!(w ? U in s : Xu.call(s, U))) return !1; } var L = x.get(a), Y = x.get(s); if (L && Y) return L == s && Y == a; var G = !0; x.set(a, s), x.set(s, a); for (var ne = w; ++F < T; ) { U = E[F]; var re = a[U], le = s[U]; if (h) var Pe = w ? h(le, re, U, s, a, x) : h(re, le, U, a, s, x); if (!(Pe === void 0 ? re === le || j(re, le, l, h, x) : Pe)) { G = !1; break; } ne || (ne = U == "constructor"); } if (G && !ne) { var ye = a.constructor, ae = s.constructor; ye != ae && "constructor" in a && "constructor" in s && !(typeof ye == "function" && ye instanceof ye && typeof ae == "function" && ae instanceof ae) && (G = !1); } return x.delete(a), x.delete(s), G; } var Zu = 1, Ga = "[object Arguments]", Ya = "[object Array]", In = "[object Object]", Ju = Object.prototype, Wa = Ju.hasOwnProperty; function ec(a, s, l, h, j, x) { var w = Ln(a), E = Ln(s), T = w ? Ya : tt(a), M = E ? Ya : tt(s); T = T == Ga ? In : T, M = M == Ga ? In : M; var H = T == In, F = M == In, U = T == M; if (U && Kr(a)) { if (!Kr(s)) return !1; w = !0, H = !1; } if (U && !H) return x || (x = new nt()), w || yi(a) ? mi(a, s, l, h, j, x) : Gu(a, s, T, l, h, j, x); if (!(l & Zu)) { var L = H && Wa.call(a, "__wrapped__"), Y = F && Wa.call(s, "__wrapped__"); if (L || Y) { var G = L ? a.value() : a, ne = Y ? s.value() : s; return x || (x = new nt()), j(G, ne, l, h, x); } } return U ? (x || (x = new nt()), Qu(a, s, l, h, j, x)) : !1; } function gi(a, s, l, h, j) { return a === s ? !0 : a == null || s == null || !tn(a) && !tn(s) ? a !== a && s !== s : ec(a, s, l, h, gi, j); } function tc(a, s) { return gi(a, s); } /*! js-cookie v3.0.5 | MIT */ function Nn(a) { for (var s = 1; s < arguments.length; s++) { var l = arguments[s]; for (var h in l) a[h] = l[h]; } return a; } var nc = { read: function(a) { return a[0] === '"' && (a = a.slice(1, -1)), a.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent); }, write: function(a) { return encodeURIComponent(a).replace( /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent ); } }; function Mr(a, s) { function l(j, x, w) { if (!(typeof document > "u")) { w = Nn({}, s, w), typeof w.expires == "number" && (w.expires = new Date(Date.now() + w.expires * 864e5)), w.expires && (w.expires = w.expires.toUTCString()), j = encodeURIComponent(j).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape); var E = ""; for (var T in w) w[T] && (E += "; " + T, w[T] !== !0 && (E += "=" + w[T].split(";")[0])); return document.cookie = j + "=" + a.write(x, j) + E; } } function h(j) { if (!(typeof document > "u" || arguments.length && !j)) { for (var x = document.cookie ? document.cookie.split("; ") : [], w = {}, E = 0; E < x.length; E++) { var T = x[E].split("="), M = T.slice(1).join("="); try { var H = decodeURIComponent(T[0]); if (w[H] = a.read(M, H), j === H) break; } catch { } } return j ? w[j] : w; } } return Object.create( { set: l, get: h, remove: function(j, x) { l( j, "", Nn({}, x, { expires: -1 }) ); }, withAttributes: function(j) { return Mr(this.converter, Nn({}, this.attributes, j)); }, withConverter: function(j) { return Mr(Nn({}, this.converter, j), this.attributes); } }, { attributes: { value: Object.freeze(s) }, converter: { value: Object.freeze(a) } } ); } Mr(nc, { path: "/" }); var Rr = { exports: {} }; /*! * screenfull * v5.2.0 - 2021-11-03 * (c) Sindre Sorhus; MIT License */ var Xa; function rc() { return Xa || (Xa = 1, function(a) { (function() { var s = typeof window < "u" && typeof window.document < "u" ? window.document : {}, l = a.exports, h = function() { for (var w, E = [ [ "requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror" ], // New WebKit [ "webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror" ], // Old WebKit [ "webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror" ], [ "mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror" ], [ "msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError" ] ], T = 0, M = E.length, H = {}; T < M; T++) if (w = E[T], w && w[1] in s) { for (T = 0; T < w.length; T++) H[E[0][T]] = w[T]; return H; } return !1; }(), j = { change: h.fullscreenchange, error: h.fullscreenerror }, x = { request: function(w, E) { return new Promise((function(T, M) { var H = (function() { this.off("change", H), T(); }).bind(this); this.on("change", H), w = w || s.documentElement; var F = w[h.requestFullscreen](E); F instanceof Promise && F.then(H).catch(M); }).bind(this)); }, exit: function() { return new Promise((function(w, E) { if (!this.isFullscreen) { w(); return; } var T = (function() { this.off("change", T), w(); }).bind(this); this.on("change", T); var M = s[h.exitFullscreen](); M instanceof Promise && M.then(T).catch(E); }).bind(this)); }, toggle: function(w, E) { return this.isFullscreen ? this.exit() : this.request(w, E); }, onchange: function(w) { this.on("change", w); }, onerror: function(w) { this.on("error", w); }, on: function(w, E) { var T = j[w]; T && s.addEventListener(T, E, !1); }, off: function(w, E) { var T = j[w]; T && s.removeEventListener(T, E, !1); }, raw: h }; if (!h) { l ? a.exports = { isEnabled: !1 } : window.screenfull = { isEnabled: !1 }; return; } Object.defineProperties(x, { isFullscreen: { get: function() { return !!s[h.fullscreenElement]; } }, element: { enumerable: !0, get: function() { return s[h.fullscreenElement]; } }, isEnabled: { enumerable: !0, get: function() { return !!s[h.fullscreenEnabled]; } } }), l ? a.exports = x : window.screenfull = x; })(); }(Rr)), Rr.exports; } rc(); var zn = { exports: {} }, Dr = {}; /** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Qa; function ac() { if (Qa) return Dr; Qa = 1; var a = Un; function s(F, U) { return F === U && (F !== 0 || 1 / F === 1 / U) || F !== F && U !== U; } var l = typeof Object.is == "function" ? Object.is : s, h = a.useState, j = a.useEffect, x = a.useLayoutEffect, w = a.useDebugValue; function E(F, U) { var L = U(), Y = h({ inst: { value: L, getSnapshot: U } }), G = Y[0].inst, ne = Y[1]; return x( function() { G.value = L, G.getSnapshot = U, T(G) && ne({ inst: G }); }, [F, L, U] ), j( function() { return T(G) && ne({ inst: G }), F(function() { T(G) && ne({ inst: G }); }); }, [F] ), w(L), L; } function T(F) { var U = F.getSnapshot; F = F.value; try { var L = U(); return !l(F, L); } catch { return !0; } } function M(F, U) { return U(); } var H = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? M : E; return Dr.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : H, Dr; } var Ir = {}; /** * @license React * use-sync-external-store-shim.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Za; function ic() { return Za || (Za = 1, process.env.NODE_ENV !== "production" && function() { function a(L, Y) { return L === Y && (L !== 0 || 1 / L === 1 / Y) || L !== L && Y !== Y; } function s(L, Y) { H || j.startTransition === void 0 || (H = !0, console.error( "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release." )); var G = Y(); if (!F) { var ne = Y(); x(G, ne) || (console.error( "The result of getSnapshot should be cached to avoid an infinite loop" ), F = !0); } ne = w({ inst: { value: G, getSnapshot: Y } }); var re = ne[0].inst, le = ne[1]; return T( function() { re.value = G, re.getSnapshot = Y, l(re) && le({ inst: re }); }, [L, G, Y] ), E( function() { return l(re) && le({ inst: re }), L(function() { l(re) && le({ inst: re }); }); }, [L] ), M(G), G; } function l(L) { var Y = L.getSnapshot; L = L.value; try { var G = Y(); return !x(L, G); } catch { return !0; } } function h(L, Y) { return Y(); } typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); var j = Un, x = typeof Object.is == "function" ? Object.is : a, w = j.useState, E = j.useEffect, T = j.useLayoutEffect, M = j.useDebugValue, H = !1, F = !1, U = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? h : s; Ir.useSyncExternalStore = j.useSyncExternalStore !== void 0 ? j.useSyncExternalStore : U, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); }()), Ir; } var Ja; function oc() { return Ja || (Ja = 1, process.env.NODE_ENV === "production" ? zn.exports = ac() : zn.exports = ic()), zn.exports; } oc(); var ei, ti; function bi(a) { return typeof a == "function"; } const sc = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test", Vr = typeof window < "u", uc = typeof navigator < "u"; Vr && (!((ti = window) == null || (ei = ti.navigator) == null) && ei.userAgent) && /iP(?:ad|hone|od)/.test(window.navigator.userAgent); const _i = Vr ? Bn : Dt, wi = (a) => { const s = $e(a); return _i(() => { s.current = a; }, [ a ]), s; }; function cc(a, ...s) { a && a.addEventListener && a.addEventListener(...s); } function lc(a, ...s) { a && a.removeEventListener && a.removeEventListener(...s); } const Fr = typeof window < "u" ? window : void 0, Hr = {}; function xi(a, s) { if (!Vr) return; if (!a) return s; let l; return bi(a) ? l = a() : "current" in a ? l = a.current : l = a, l; } const fc = (a) => (a + 1) % 1e6; function hc() { const [, a] = so(fc, 0); return a; } const dc = (a, s, l) => { process.env.NODE_ENV !== "production" && ((!Array.isArray(s) || !s.length) && console.warn("`useCustomCompareEffect` should not be used with no dependencies. Use React.useEffect instead."), typeof l != "function" && console.warn("`useCustomCompareEffect` should be used with depsEqual callback for comparing deps list")); const h = $e(void 0), j = hc(); h.current || (h.current = s), _i(() => { l(s, h.current) || (h.current = s, j()); }), Dt(a, h.current); }, ki = (a, s) => { process.env.NODE_ENV !== "production" && (!Array.isArray(s) || !s.length) && console.warn("`useDeepCompareEffect` should not be used with no dependencies. Use React.useEffect instead."), dc(a, s, tc); }; function Fn(a, s, l, h = Hr) { const j = wi(s); ki(() => { const x = xi(l, Fr); if (!(x && x.addEventListener)) return; const w = (E) => j.current(E); return cc(x, a, w, h), () => { x && x.removeEventListener && lc(x, a, w); }; }, [ a, l, h ]); } const vc = (a) => { sc && (bi(a) || console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof a}".`)), Dt(() => { a == null || a(); }, []); }, pc = () => { const [a, s] = je(null), l = pt(() => { var h; s((h = window) == null ? void 0 : h.document.activeElement); }, []); return Fn("blur", l, Fr, !0), Fn("focus", l, Fr, !0), vc(() => { var h; s((h = window) == null ? void 0 : h.document.activeElement); }), a; }, yc = (a, s, l = Hr) => { const h = wi(s), j = $e(), x = pt(() => { j.current && j.current.disconnect(); }, []); return ki(() => { const w = xi(a); if (w) return j.current = new ResizeObserver(h.current), j.current.observe(w, l), x; }, [ h, x, a, l ]), x; }, Ei = (a, s = Hr) => { const { box: l = "content-box" } = s, [h, j] = je(0), [x, w] = je(0); return yc(a, ([E]) => { const T = l === "border-box" ? E.borderBoxSize : l === "content-box" ? E.contentBoxSize : E.devicePixelContentBoxSize; T ? (j(T.reduce((M, { inlineSize: H }) => M + H, 0)), w(T.reduce((M, { blockSize: H }) => M + H, 0))) : (j(E.contentRect.width), w(E.contentRect.height)); }, s), [ h, x ]; }, Kn = uc ? navigator : void 0; Kn && (Kn.connection || Kn.mozConnection || Kn.webkitConnection); Un.use; var qn = { exports: {} }, mc = qn.exports, ni; function gc() { return ni || (ni = 1, function(a, s) { (function(l, h) { a.exports = h(); })(mc, function() { var l = function(e, t) { return (l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) { n.__proto__ = r; } || function(n, r) { for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]); })(e, t); }, h = function() { return (h = Object.assign || function(e) { for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); return e; }).apply(this, arguments); }; function j(e, t, n) { for (var r, i = 0, o = t.length; i < o; i++) !r && i in t || ((r = r || Array.prototype.slice.call(t, 0, i))[i] = t[i]); return e.concat(r || Array.prototype.slice.call(t)); } var x = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : co, w = Object.keys, E = Array.isArray; function T(e, t) { return typeof t != "object" || w(t).forEach(function(n) { e[n] = t[n]; }), e; } typeof Promise > "u" || x.Promise || (x.Promise = Promise); var M = Object.getPrototypeOf, H = {}.hasOwnProperty; function F(e, t) { return H.call(e, t); } function U(e, t) { typeof t == "function" && (t = t(M(e))), (typeof Reflect > "u" ? w : Reflect.ownKeys)(t).forEach(function(n) { Y(e, n, t[n]); }); } var L = Object.defineProperty; function Y(e, t, n, r) { L(e, t, T(n && F(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, r)); } function G(e) { return { from: function(t) { return e.prototype = Object.create(t.prototype), Y(e.prototype, "constructor", e), { extend: U.bind(null, e.prototype) }; } }; } var ne = Object.getOwnPropertyDescriptor, re = [].slice; function le(e, t, n) { return re.call(e, t, n); } function Pe(e, t) { return t(e); } function ye(e) { if (!e) throw new Error("Assertion Failed"); } function ae(e) { x.setImmediate ? setImmediate(e) : setTimeout(e, 0); } function de(e, t) { if (typeof t == "string" && F(e, t)) return e[t]; if (!t) return e; if (typeof t != "string") { for (var n = [], r = 0, i = t.length; r < i; ++r) { var o = de(e, t[r]); n.push(o); } return n; } var u = t.indexOf("."); if (u !== -1) { var c = e[t.substr(0, u)]; return c == null ? void 0 : de(c, t.substr(u + 1)); } } function oe(e, t, n) { if (e && t !== void 0 && !("isFrozen" in Object && Object.isFrozen(e))) if (typeof t != "string" && "length" in t) { ye(typeof n != "string" && "length" in n); for (var r = 0, i = t.length; r < i; ++r) oe(e, t[r], n[r]); } else { var o, u, c = t.indexOf("."); c !== -1 ? (o = t.substr(0, c), (u = t.substr(c + 1)) === "" ? n === void 0 ? E(e) && !isNaN(parseInt(o)) ? e.splice(o, 1) : delete e[o] : e[o] = n : oe(c = !(c = e[o]) || !F(e, o) ? e[o] = {} : c, u, n)) : n === void 0 ? E(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n; } } function qe(e) { var t, n = {}; for (t in e) F(e, t) && (n[t] = e[t]); return n; } var Oe = [].concat; function bt(e) { return Oe.apply([], e); } var it = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(bt([8, 16, 32, 64].map(function(e) { return ["Int", "Uint", "Float"].map(function(t) { return t + e + "Array"; }); }))).filter(function(e) { return x[e]; }), _t = new Set(it.map(function(e) { return x[e]; })), Ge = null; function Be(e) { return Ge = /* @__PURE__ */ new WeakMap(), e = function t(n) { if (!n || typeof n != "object") return n; var r = Ge.get(n); if (r) return r; if (E(n)) { r = [], Ge.set(n, r); for (var i = 0, o = n.length; i < o; ++i) r.push(t(n[i])); } else if (_t.has(n.constructor)) r = n; else { var u, c = M(n); for (u in r = c === Object.prototype ? {} : Object.create(c), Ge.set(n, r), n) F(n, u) && (r[u] = t(n[u])); } return r; }(e), Ge = null, e; } var Nt = {}.toString; function wt(e) { return Nt.call(e).slice(8, -1); } var xt = typeof Symbol < "u" ? Symbol.iterator : "@@iterator", on = typeof xt == "symbol" ? function(e) { var t; return e != null && (t = e[xt]) && t.apply(e); } : function() { return null; }; function De(e, t) { return t = e.indexOf(t), 0 <= t && e.splice(t, 1), 0 <= t; } var Le = {}; function P(e) { var t, n, r, i; if (arguments.length === 1) { if (E(e)) return e.slice(); if (this === Le && typeof e == "string") return [e]; if (i = on(e)) { for (n = []; !(r = i.next()).done; ) n.push(r.value); return n; } if (e == null) return [e]; if (typeof (t = e.length) != "number") return [e]; for (n = new Array(t); t--; ) n[t] = e[t]; return n; } for (t = arguments.length, n = new Array(t); t--; ) n[t] = arguments[t]; return n; } var X = typeof Symbol < "u" ? function(e) { return e[Symbol.toStringTag] === "AsyncFunction"; } : function() { return !1; }, qt = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], Ae = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(qt), se = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" }; function he(e, t) { this.name = e, this.message = t; } function Re(e, t) { return e + ". Errors: " + Object.keys(t).map(function(n) { return t[n].toString(); }).filter(function(n, r, i) { return i.indexOf(n) === r; }).join(` `); } function Ee(e, t, n, r) { this.failures = t, this.failedKeys = r, this.successCount = n, this.message = Re(e, t); } function Ie(e, t) { this.name = "BulkError", this.failures = Object.keys(t).map(function(n) { return t[n]; }), this.failuresByPos = t, this.message = Re(e, this.failures); } G(he).from(Error).extend({ toString: function() { return this.name + ": " + this.message; } }), G(Ee).from(he), G(Ie).from(he); var rt = Ae.reduce(function(e, t) { return e[t] = t + "Error", e; }, {}), me = he, $ = Ae.reduce(function(e, t) { var n = t + "Error"; function r(i, o) { this.name = n, i ? typeof i == "string" ? (this.message = "".concat(i).concat(o ? ` ` + o : ""), this.inner = o || null) : typeof i == "object" && (this.message = "".concat(i.name, " ").concat(i.message), this.inner = i) : (this.message = se[t] || n, this.inner = null); } return G(r).from(me), e[t] = r, e; }, {}); $.Syntax = SyntaxError, $.Type = TypeError, $.Range = RangeError; var kt = qt.reduce(function(e, t) { return e[t + "Error"] = $[t], e; }, {}), Et = Ae.reduce(function(e, t) { return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = $[t]), e; }, {}); function ie() { } function zt(e) { return e; } function Ti(e, t) { return e == null || e === zt ? t : function(n) { return t(e(n)); }; } function at(e, t) { return function() { e.apply(this, arguments), t.apply(this, arguments); }; } function Pi(e, t) { return e === ie ? t : function() { var n = e.apply(this, arguments); n !== void 0 && (arguments[0] = n); var r = this.onsuccess, i = this.onerror; this.onsuccess = null, this.onerror = null; var o = t.apply(this, arguments); return r && (this.onsuccess = this.onsuccess ? at(r, this.onsuccess) : r), i && (this.onerror = this.onerror ? at(i, this.onerror) : i), o !== void 0 ? o : n; }; } function Ai(e, t) { return e === ie ? t : function() { e.apply(this, arguments); var n = this.onsuccess, r = this.onerror; this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? at(n, this.onsuccess) : n), r && (this.onerror = this.onerror ? at(r, this.onerror) : r); }; } function Ri(e, t) { return e === ie ? t : function(n) { var r = e.apply(this, arguments); T(n, r); var i = this.onsuccess, o = this.onerror; return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), i && (this.onsuccess = this.onsuccess ? at(i, this.onsuccess) : i), o && (this.onerror = this.onerror ? at(o, this.onerror) : o), r === void 0 ? n === void 0 ? void 0 : n : T(r, n); }; } function Di(e, t) { return e === ie ? t : function() { return t.apply(this, arguments) !== !1 && e.apply(this, arguments); }; } function Gn(e, t) { return e === ie ? t : function() { var n = e.apply(this, arguments); if (n && typeof n.then == "function") { for (var r = this, i = arguments.length, o = new Array(i); i--; ) o[i] = arguments[i]; return n.then(function() { return t.apply(r, o); }); } return t.apply(this, arguments); }; } Et.ModifyError = Ee, Et.DexieError = he, Et.BulkError = Ie; var Ne = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href); function Wr(e) { Ne = e; } var Kt = {}, Xr = 100, it = typeof Promise > "u" ? [] : function() { var e = Promise.resolve(); if (typeof crypto > "u" || !crypto.subtle) return [e, M(e), e]; var t = crypto.subtle.digest("SHA-512", new Uint8Array([0])); return [t, M(t), e]; }(), qt = it[0], Ae = it[1], it = it[2], Ae = Ae && Ae.then,