import { H as w, ad as ae, a3 as Ni, X as Xc, w as on, a5 as vn, lk as Jc, aG as Qc, U as Zc, cC as rl, a4 as Ir, I as cn, ae as hr, af as mr, am as ln, ag as el, ah as tl, aj as al, ai as nl, aC as ol, aD as il, aE as vl, aH as cl, V as ll } from "./56c67d3b.js";
import { useRef as De, useState as Ai, useEffect as sn, useContext as un } from "react";
import "react-dom";
var fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Vr = function(r) {
  return r && r.Math == Math && r;
}, $ = (
  // eslint-disable-next-line es-x/no-global-this -- safe
  Vr(typeof globalThis == "object" && globalThis) || Vr(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
  Vr(typeof self == "object" && self) || Vr(typeof fn == "object" && fn) || // eslint-disable-next-line no-new-func -- fallback
  function() {
    return this;
  }() || Function("return this")()
), $r = {}, E = function(r) {
  try {
    return !!r();
  } catch {
    return !0;
  }
}, sl = E, U = !sl(function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
}), ul = E, be = !ul(function() {
  var r = (function() {
  }).bind();
  return typeof r != "function" || r.hasOwnProperty("prototype");
}), fl = be, Wr = Function.prototype.call, T = fl ? Wr.bind(Wr) : function() {
  return Wr.apply(Wr, arguments);
}, Di = {}, Li = {}.propertyIsEnumerable, Mi = Object.getOwnPropertyDescriptor, $l = Mi && !Li.call({ 1: 2 }, 1);
Di.f = $l ? function(e) {
  var t = Mi(this, e);
  return !!t && t.enumerable;
} : Li;
var Fi = function(r, e) {
  return {
    enumerable: !(r & 1),
    configurable: !(r & 2),
    writable: !(r & 4),
    value: e
  };
}, Ui = be, Bi = Function.prototype, dl = Bi.bind, Ut = Bi.call, pl = Ui && dl.bind(Ut, Ut), m = Ui ? function(r) {
  return r && pl(r);
} : function(r) {
  return r && function() {
    return Ut.apply(r, arguments);
  };
}, Gi = m, yl = Gi({}.toString), gl = Gi("".slice), Nr = function(r) {
  return gl(yl(r), 8, -1);
}, bl = $, hl = m, ml = E, Ol = Nr, Le = bl.Object, Sl = hl("".split), El = ml(function() {
  return !Le("z").propertyIsEnumerable(0);
}) ? function(r) {
  return Ol(r) == "String" ? Sl(r, "") : Le(r);
} : Le, Tl = $, Il = Tl.TypeError, J = function(r) {
  if (r == null)
    throw Il("Can't call method on " + r);
  return r;
}, wl = El, Pl = J, he = function(r) {
  return wl(Pl(r));
}, O = function(r) {
  return typeof r == "function";
}, Rl = O, B = function(r) {
  return typeof r == "object" ? r !== null : Rl(r);
}, Me = $, Cl = O, jl = function(r) {
  return Cl(r) ? r : void 0;
}, G = function(r, e) {
  return arguments.length < 2 ? jl(Me[r]) : Me[r] && Me[r][e];
}, _l = m, ba = _l({}.isPrototypeOf), xl = G, me = xl("navigator", "userAgent") || "", ki = $, Fe = me, $n = ki.process, dn = ki.Deno, pn = $n && $n.versions || dn && dn.version, yn = pn && pn.v8, j, le;
yn && (j = yn.split("."), le = j[0] > 0 && j[0] < 4 ? 1 : +(j[0] + j[1]));
!le && Fe && (j = Fe.match(/Edge\/(\d+)/), (!j || j[1] >= 74) && (j = Fe.match(/Chrome\/(\d+)/), j && (le = +j[1])));
var Ki = le, gn = Ki, Nl = E, Vi = !!Object.getOwnPropertySymbols && !Nl(function() {
  var r = Symbol();
  return !String(r) || !(Object(r) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  !Symbol.sham && gn && gn < 41;
}), Al = Vi, Wi = Al && !Symbol.sham && typeof Symbol.iterator == "symbol", Dl = $, Ll = G, Ml = O, Fl = ba, Ul = Wi, Bl = Dl.Object, Yi = Ul ? function(r) {
  return typeof r == "symbol";
} : function(r) {
  var e = Ll("Symbol");
  return Ml(e) && Fl(e.prototype, Bl(r));
}, Gl = $, kl = Gl.String, Oe = function(r) {
  try {
    return kl(r);
  } catch {
    return "Object";
  }
}, Kl = $, Vl = O, Wl = Oe, Yl = Kl.TypeError, Q = function(r) {
  if (Vl(r))
    return r;
  throw Yl(Wl(r) + " is not a function");
}, Hl = Q, Ar = function(r, e) {
  var t = r[e];
  return t == null ? void 0 : Hl(t);
}, ql = $, Ue = T, Be = O, Ge = B, zl = ql.TypeError, Xl = function(r, e) {
  var t, a;
  if (e === "string" && Be(t = r.toString) && !Ge(a = Ue(t, r)) || Be(t = r.valueOf) && !Ge(a = Ue(t, r)) || e !== "string" && Be(t = r.toString) && !Ge(a = Ue(t, r)))
    return a;
  throw zl("Can't convert object to primitive value");
}, Se = { exports: {} }, bn = $, Jl = Object.defineProperty, ha = function(r, e) {
  try {
    Jl(bn, r, { value: e, configurable: !0, writable: !0 });
  } catch {
    bn[r] = e;
  }
  return e;
}, Ql = $, Zl = ha, hn = "__core-js_shared__", rs = Ql[hn] || Zl(hn, {}), ma = rs, mn = ma;
(Se.exports = function(r, e) {
  return mn[r] || (mn[r] = e !== void 0 ? e : {});
})("versions", []).push({
  version: "3.22.2",
  mode: "global",
  copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
  license: "https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",
  source: "https://github.com/zloirock/core-js"
});
var es = $, ts = J, as = es.Object, Hi = function(r) {
  return as(ts(r));
}, ns = m, os = Hi, is = ns({}.hasOwnProperty), D = Object.hasOwn || function(e, t) {
  return is(os(e), t);
}, vs = m, cs = 0, ls = Math.random(), ss = vs(1 .toString), qi = function(r) {
  return "Symbol(" + (r === void 0 ? "" : r) + ")_" + ss(++cs + ls, 36);
}, us = $, fs = Se.exports, On = D, $s = qi, Sn = Vi, zi = Wi, er = fs("wks"), H = us.Symbol, En = H && H.for, ds = zi ? H : H && H.withoutSetter || $s, S = function(r) {
  if (!On(er, r) || !(Sn || typeof er[r] == "string")) {
    var e = "Symbol." + r;
    Sn && On(H, r) ? er[r] = H[r] : zi && En ? er[r] = En(e) : er[r] = ds(e);
  }
  return er[r];
}, ps = $, ys = T, Tn = B, In = Yi, gs = Ar, bs = Xl, hs = S, ms = ps.TypeError, Os = hs("toPrimitive"), Ss = function(r, e) {
  if (!Tn(r) || In(r))
    return r;
  var t = gs(r, Os), a;
  if (t) {
    if (e === void 0 && (e = "default"), a = ys(t, r, e), !Tn(a) || In(a))
      return a;
    throw ms("Can't convert object to primitive value");
  }
  return e === void 0 && (e = "number"), bs(r, e);
}, Es = Ss, Ts = Yi, Xi = function(r) {
  var e = Es(r, "string");
  return Ts(e) ? e : e + "";
}, Is = $, wn = B, Bt = Is.document, ws = wn(Bt) && wn(Bt.createElement), Oa = function(r) {
  return ws ? Bt.createElement(r) : {};
}, Ps = U, Rs = E, Cs = Oa, Ji = !Ps && !Rs(function() {
  return Object.defineProperty(Cs("div"), "a", {
    get: function() {
      return 7;
    }
  }).a != 7;
}), js = U, _s = T, xs = Di, Ns = Fi, As = he, Ds = Xi, Ls = D, Ms = Ji, Pn = Object.getOwnPropertyDescriptor;
$r.f = js ? Pn : function(e, t) {
  if (e = As(e), t = Ds(t), Ms)
    try {
      return Pn(e, t);
    } catch {
    }
  if (Ls(e, t))
    return Ns(!_s(xs.f, e, t), e[t]);
};
var Z = {}, Fs = U, Us = E, Qi = Fs && Us(function() {
  return Object.defineProperty(function() {
  }, "prototype", {
    value: 42,
    writable: !1
  }).prototype != 42;
}), Zi = $, Bs = B, Gs = Zi.String, ks = Zi.TypeError, I = function(r) {
  if (Bs(r))
    return r;
  throw ks(Gs(r) + " is not an object");
}, Ks = $, Vs = U, Ws = Ji, Ys = Qi, Yr = I, Rn = Xi, Hs = Ks.TypeError, ke = Object.defineProperty, qs = Object.getOwnPropertyDescriptor, Ke = "enumerable", Ve = "configurable", We = "writable";
Z.f = Vs ? Ys ? function(e, t, a) {
  if (Yr(e), t = Rn(t), Yr(a), typeof e == "function" && t === "prototype" && "value" in a && We in a && !a[We]) {
    var n = qs(e, t);
    n && n[We] && (e[t] = a.value, a = {
      configurable: Ve in a ? a[Ve] : n[Ve],
      enumerable: Ke in a ? a[Ke] : n[Ke],
      writable: !1
    });
  }
  return ke(e, t, a);
} : ke : function(e, t, a) {
  if (Yr(e), t = Rn(t), Yr(a), Ws)
    try {
      return ke(e, t, a);
    } catch {
    }
  if ("get" in a || "set" in a)
    throw Hs("Accessors not supported");
  return "value" in a && (e[t] = a.value), e;
};
var zs = U, Xs = Z, Js = Fi, Ee = zs ? function(r, e, t) {
  return Xs.f(r, e, Js(1, t));
} : function(r, e, t) {
  return r[e] = t, r;
}, dr = { exports: {} }, Qs = m, Zs = O, Gt = ma, ru = Qs(Function.toString);
Zs(Gt.inspectSource) || (Gt.inspectSource = function(r) {
  return ru(r);
});
var Te = Gt.inspectSource, eu = $, tu = O, au = Te, Cn = eu.WeakMap, nu = tu(Cn) && /native code/.test(au(Cn)), ou = Se.exports, iu = qi, jn = ou("keys"), rv = function(r) {
  return jn[r] || (jn[r] = iu(r));
}, Sa = {}, vu = nu, ev = $, Ye = m, cu = B, lu = Ee, He = D, qe = ma, su = rv, uu = Sa, _n = "Object already initialized", kt = ev.TypeError, fu = ev.WeakMap, se, jr, ue, $u = function(r) {
  return ue(r) ? jr(r) : se(r, {});
}, du = function(r) {
  return function(e) {
    var t;
    if (!cu(e) || (t = jr(e)).type !== r)
      throw kt("Incompatible receiver, " + r + " required");
    return t;
  };
};
if (vu || qe.state) {
  var k = qe.state || (qe.state = new fu()), pu = Ye(k.get), xn = Ye(k.has), yu = Ye(k.set);
  se = function(r, e) {
    if (xn(k, r))
      throw new kt(_n);
    return e.facade = r, yu(k, r, e), e;
  }, jr = function(r) {
    return pu(k, r) || {};
  }, ue = function(r) {
    return xn(k, r);
  };
} else {
  var tr = su("state");
  uu[tr] = !0, se = function(r, e) {
    if (He(r, tr))
      throw new kt(_n);
    return e.facade = r, lu(r, tr, e), e;
  }, jr = function(r) {
    return He(r, tr) ? r[tr] : {};
  }, ue = function(r) {
    return He(r, tr);
  };
}
var Ea = {
  set: se,
  get: jr,
  has: ue,
  enforce: $u,
  getterFor: du
}, Kt = U, gu = D, tv = Function.prototype, bu = Kt && Object.getOwnPropertyDescriptor, Ta = gu(tv, "name"), hu = Ta && (function() {
}).name === "something", mu = Ta && (!Kt || Kt && bu(tv, "name").configurable), Ou = {
  EXISTS: Ta,
  PROPER: hu,
  CONFIGURABLE: mu
}, Su = $, Nn = O, Eu = D, An = Ee, Tu = ha, Iu = Te, av = Ea, wu = Ou.CONFIGURABLE, Pu = av.get, Ru = av.enforce, Cu = String(String).split("String");
(dr.exports = function(r, e, t, a) {
  var n = a ? !!a.unsafe : !1, o = a ? !!a.enumerable : !1, i = a ? !!a.noTargetGet : !1, v = a && a.name !== void 0 ? a.name : e, s;
  if (Nn(t) && (String(v).slice(0, 7) === "Symbol(" && (v = "[" + String(v).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!Eu(t, "name") || wu && t.name !== v) && An(t, "name", v), s = Ru(t), s.source || (s.source = Cu.join(typeof v == "string" ? v : ""))), r === Su) {
    o ? r[e] = t : Tu(e, t);
    return;
  } else
    n ? !i && r[e] && (o = !0) : delete r[e];
  o ? r[e] = t : An(r, e, t);
})(Function.prototype, "toString", function() {
  return Nn(this) && Pu(this).source || Iu(this);
});
var nv = {}, ju = Math.ceil, _u = Math.floor, Ie = function(r) {
  var e = +r;
  return e !== e || e === 0 ? 0 : (e > 0 ? _u : ju)(e);
}, xu = Ie, Nu = Math.max, Au = Math.min, Du = function(r, e) {
  var t = xu(r);
  return t < 0 ? Nu(t + e, 0) : Au(t, e);
}, Lu = Ie, Mu = Math.min, Dr = function(r) {
  return r > 0 ? Mu(Lu(r), 9007199254740991) : 0;
}, Fu = Dr, ov = function(r) {
  return Fu(r.length);
}, Uu = he, Bu = Du, Gu = ov, Dn = function(r) {
  return function(e, t, a) {
    var n = Uu(e), o = Gu(n), i = Bu(a, o), v;
    if (r && t != t) {
      for (; o > i; )
        if (v = n[i++], v != v)
          return !0;
    } else
      for (; o > i; i++)
        if ((r || i in n) && n[i] === t)
          return r || i || 0;
    return !r && -1;
  };
}, iv = {
  // `Array.prototype.includes` method
  // https://tc39.es/ecma262/#sec-array.prototype.includes
  includes: Dn(!0),
  // `Array.prototype.indexOf` method
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
  indexOf: Dn(!1)
}, ku = m, ze = D, Ku = he, Vu = iv.indexOf, Wu = Sa, Ln = ku([].push), vv = function(r, e) {
  var t = Ku(r), a = 0, n = [], o;
  for (o in t)
    !ze(Wu, o) && ze(t, o) && Ln(n, o);
  for (; e.length > a; )
    ze(t, o = e[a++]) && (~Vu(n, o) || Ln(n, o));
  return n;
}, Ia = [
  "constructor",
  "hasOwnProperty",
  "isPrototypeOf",
  "propertyIsEnumerable",
  "toLocaleString",
  "toString",
  "valueOf"
], Yu = vv, Hu = Ia, qu = Hu.concat("length", "prototype");
nv.f = Object.getOwnPropertyNames || function(e) {
  return Yu(e, qu);
};
var cv = {};
cv.f = Object.getOwnPropertySymbols;
var zu = G, Xu = m, Ju = nv, Qu = cv, Zu = I, rf = Xu([].concat), ef = zu("Reflect", "ownKeys") || function(e) {
  var t = Ju.f(Zu(e)), a = Qu.f;
  return a ? rf(t, a(e)) : t;
}, Mn = D, tf = ef, af = $r, nf = Z, of = function(r, e, t) {
  for (var a = tf(e), n = nf.f, o = af.f, i = 0; i < a.length; i++) {
    var v = a[i];
    !Mn(r, v) && !(t && Mn(t, v)) && n(r, v, o(e, v));
  }
}, vf = E, cf = O, lf = /#|\.prototype\./, Lr = function(r, e) {
  var t = uf[sf(r)];
  return t == $f ? !0 : t == ff ? !1 : cf(e) ? vf(e) : !!e;
}, sf = Lr.normalize = function(r) {
  return String(r).replace(lf, ".").toLowerCase();
}, uf = Lr.data = {}, ff = Lr.NATIVE = "N", $f = Lr.POLYFILL = "P", lv = Lr, Xe = $, df = $r.f, pf = Ee, yf = dr.exports, gf = ha, bf = of, hf = lv, N = function(r, e) {
  var t = r.target, a = r.global, n = r.stat, o, i, v, s, l, c;
  if (a ? i = Xe : n ? i = Xe[t] || gf(t, {}) : i = (Xe[t] || {}).prototype, i)
    for (v in e) {
      if (l = e[v], r.noTargetGet ? (c = df(i, v), s = c && c.value) : s = i[v], o = hf(a ? v : t + (n ? "." : "#") + v, r.forced), !o && s !== void 0) {
        if (typeof l == typeof s)
          continue;
        bf(l, s);
      }
      (r.sham || s && s.sham) && pf(l, "sham", !0), yf(i, v, l, r);
    }
}, mf = Nr, Of = $, wa = mf(Of.process) == "process", Sf = dr.exports, Ef = function(r, e, t) {
  for (var a in e)
    Sf(r, a, e[a], t);
  return r;
}, sv = $, Tf = O, If = sv.String, wf = sv.TypeError, Pf = function(r) {
  if (typeof r == "object" || Tf(r))
    return r;
  throw wf("Can't set " + If(r) + " as a prototype");
}, Rf = m, Cf = I, jf = Pf, _f = Object.setPrototypeOf || ("__proto__" in {} ? function() {
  var r = !1, e = {}, t;
  try {
    t = Rf(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set), t(e, []), r = e instanceof Array;
  } catch {
  }
  return function(n, o) {
    return Cf(n), jf(o), r ? t(n, o) : n.__proto__ = o, n;
  };
}() : void 0), xf = Z.f, Nf = D, Af = S, Fn = Af("toStringTag"), Df = function(r, e, t) {
  r && !t && (r = r.prototype), r && !Nf(r, Fn) && xf(r, Fn, { configurable: !0, value: e });
}, Lf = G, Mf = Z, Ff = S, Uf = U, Un = Ff("species"), Bf = function(r) {
  var e = Lf(r), t = Mf.f;
  Uf && e && !e[Un] && t(e, Un, {
    configurable: !0,
    get: function() {
      return this;
    }
  });
}, Gf = $, kf = ba, Kf = Gf.TypeError, Vf = function(r, e) {
  if (kf(e, r))
    return r;
  throw Kf("Incorrect invocation");
}, Wf = S, Yf = Wf("toStringTag"), uv = {};
uv[Yf] = "z";
var Hf = String(uv) === "[object z]", qf = $, zf = Hf, Xf = O, ne = Nr, Jf = S, Qf = Jf("toStringTag"), Zf = qf.Object, r$ = ne(function() {
  return arguments;
}()) == "Arguments", e$ = function(r, e) {
  try {
    return r[e];
  } catch {
  }
}, Pa = zf ? ne : function(r) {
  var e, t, a;
  return r === void 0 ? "Undefined" : r === null ? "Null" : typeof (t = e$(e = Zf(r), Qf)) == "string" ? t : r$ ? ne(e) : (a = ne(e)) == "Object" && Xf(e.callee) ? "Arguments" : a;
}, t$ = m, a$ = E, fv = O, n$ = Pa, o$ = G, i$ = Te, $v = function() {
}, v$ = [], dv = o$("Reflect", "construct"), Ra = /^\s*(?:class|function)\b/, c$ = t$(Ra.exec), l$ = !Ra.exec($v), Or = function(e) {
  if (!fv(e))
    return !1;
  try {
    return dv($v, v$, e), !0;
  } catch {
    return !1;
  }
}, pv = function(e) {
  if (!fv(e))
    return !1;
  switch (n$(e)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return !1;
  }
  try {
    return l$ || !!c$(Ra, i$(e));
  } catch {
    return !0;
  }
};
pv.sham = !0;
var s$ = !dv || a$(function() {
  var r;
  return Or(Or.call) || !Or(Object) || !Or(function() {
    r = !0;
  }) || r;
}) ? pv : Or, u$ = $, f$ = s$, $$ = Oe, d$ = u$.TypeError, p$ = function(r) {
  if (f$(r))
    return r;
  throw d$($$(r) + " is not a constructor");
}, Bn = I, y$ = p$, g$ = S, b$ = g$("species"), h$ = function(r, e) {
  var t = Bn(r).constructor, a;
  return t === void 0 || (a = Bn(t)[b$]) == null ? e : y$(a);
}, m$ = be, yv = Function.prototype, Gn = yv.apply, kn = yv.call, gv = typeof Reflect == "object" && Reflect.apply || (m$ ? kn.bind(Gn) : function() {
  return kn.apply(Gn, arguments);
}), Kn = m, O$ = Q, S$ = be, E$ = Kn(Kn.bind), Ca = function(r, e) {
  return O$(r), e === void 0 ? r : S$ ? E$(r, e) : function() {
    return r.apply(e, arguments);
  };
}, T$ = G, bv = T$("document", "documentElement"), I$ = m, w$ = I$([].slice), P$ = $, R$ = P$.TypeError, C$ = function(r, e) {
  if (r < e)
    throw R$("Not enough arguments");
  return r;
}, j$ = me, hv = /(?:ipad|iphone|ipod).*applewebkit/i.test(j$), P = $, _$ = gv, x$ = Ca, Vn = O, N$ = D, A$ = E, Wn = bv, D$ = w$, Yn = Oa, L$ = C$, M$ = hv, F$ = wa, Vt = P.setImmediate, Wt = P.clearImmediate, U$ = P.process, Je = P.Dispatch, B$ = P.Function, Hn = P.MessageChannel, G$ = P.String, Qe = 0, Pr = {}, qn = "onreadystatechange", _r, K, Ze, rt;
try {
  _r = P.location;
} catch {
}
var ja = function(r) {
  if (N$(Pr, r)) {
    var e = Pr[r];
    delete Pr[r], e();
  }
}, et = function(r) {
  return function() {
    ja(r);
  };
}, zn = function(r) {
  ja(r.data);
}, Xn = function(r) {
  P.postMessage(G$(r), _r.protocol + "//" + _r.host);
};
(!Vt || !Wt) && (Vt = function(e) {
  L$(arguments.length, 1);
  var t = Vn(e) ? e : B$(e), a = D$(arguments, 1);
  return Pr[++Qe] = function() {
    _$(t, void 0, a);
  }, K(Qe), Qe;
}, Wt = function(e) {
  delete Pr[e];
}, F$ ? K = function(r) {
  U$.nextTick(et(r));
} : Je && Je.now ? K = function(r) {
  Je.now(et(r));
} : Hn && !M$ ? (Ze = new Hn(), rt = Ze.port2, Ze.port1.onmessage = zn, K = x$(rt.postMessage, rt)) : P.addEventListener && Vn(P.postMessage) && !P.importScripts && _r && _r.protocol !== "file:" && !A$(Xn) ? (K = Xn, P.addEventListener("message", zn, !1)) : qn in Yn("script") ? K = function(r) {
  Wn.appendChild(Yn("script"))[qn] = function() {
    Wn.removeChild(this), ja(r);
  };
} : K = function(r) {
  setTimeout(et(r), 0);
});
var mv = {
  set: Vt,
  clear: Wt
}, k$ = me, K$ = $, V$ = /ipad|iphone|ipod/i.test(k$) && K$.Pebble !== void 0, W$ = me, Y$ = /web0s(?!.*chrome)/i.test(W$), z = $, Jn = Ca, H$ = $r.f, tt = mv.set, q$ = hv, z$ = V$, X$ = Y$, at = wa, Qn = z.MutationObserver || z.WebKitMutationObserver, Zn = z.document, ro = z.process, Hr = z.Promise, eo = H$(z, "queueMicrotask"), Ov = eo && eo.value, Sr, W, Rr, vr, nt, ot, qr, to;
Ov || (Sr = function() {
  var r, e;
  for (at && (r = ro.domain) && r.exit(); W; ) {
    e = W.fn, W = W.next;
    try {
      e();
    } catch (t) {
      throw W ? vr() : Rr = void 0, t;
    }
  }
  Rr = void 0, r && r.enter();
}, !q$ && !at && !X$ && Qn && Zn ? (nt = !0, ot = Zn.createTextNode(""), new Qn(Sr).observe(ot, { characterData: !0 }), vr = function() {
  ot.data = nt = !nt;
}) : !z$ && Hr && Hr.resolve ? (qr = Hr.resolve(void 0), qr.constructor = Hr, to = Jn(qr.then, qr), vr = function() {
  to(Sr);
}) : at ? vr = function() {
  ro.nextTick(Sr);
} : (tt = Jn(tt, z), vr = function() {
  tt(Sr);
}));
var J$ = Ov || function(r) {
  var e = { fn: r, next: void 0 };
  Rr && (Rr.next = e), W || (W = e, vr()), Rr = e;
}, Q$ = $, Z$ = function(r, e) {
  var t = Q$.console;
  t && t.error && (arguments.length == 1 ? t.error(r) : t.error(r, e));
}, _a = function(r) {
  try {
    return { error: !1, value: r() };
  } catch (e) {
    return { error: !0, value: e };
  }
}, Sv = function() {
  this.head = null, this.tail = null;
};
Sv.prototype = {
  add: function(r) {
    var e = { item: r, next: null };
    this.head ? this.tail.next = e : this.head = e, this.tail = e;
  },
  get: function() {
    var r = this.head;
    if (r)
      return this.head = r.next, this.tail === r && (this.tail = null), r.item;
  }
};
var rd = Sv, ed = $, we = ed.Promise, td = typeof window == "object" && typeof Deno != "object", ad = $, Cr = we, nd = O, od = lv, id = Te, vd = S, cd = td, ao = Ki;
Cr && Cr.prototype;
var ld = vd("species"), Yt = !1, Ev = nd(ad.PromiseRejectionEvent), sd = od("Promise", function() {
  var r = id(Cr), e = r !== String(Cr);
  if (!e && ao === 66)
    return !0;
  if (ao >= 51 && /native code/.test(r))
    return !1;
  var t = new Cr(function(o) {
    o(1);
  }), a = function(o) {
    o(function() {
    }, function() {
    });
  }, n = t.constructor = {};
  return n[ld] = a, Yt = t.then(function() {
  }) instanceof a, Yt ? !e && cd && !Ev : !0;
}), Mr = {
  CONSTRUCTOR: sd,
  REJECTION_EVENT: Ev,
  SUBCLASSING: Yt
}, pr = {}, no = Q, ud = function(r) {
  var e, t;
  this.promise = new r(function(a, n) {
    if (e !== void 0 || t !== void 0)
      throw TypeError("Bad Promise constructor");
    e = a, t = n;
  }), this.resolve = no(e), this.reject = no(t);
};
pr.f = function(r) {
  return new ud(r);
};
var fd = N, fe = wa, F = $, fr = T, $d = dr.exports, dd = Ef, oo = _f, pd = Df, yd = Bf, gd = Q, oe = O, bd = B, hd = Vf, md = h$, Tv = mv.set, xa = J$, Od = Z$, Sd = _a, Ed = rd, Iv = Ea, $e = we, Na = Mr, wv = pr, Pe = "Promise", Pv = Na.CONSTRUCTOR, Td = Na.REJECTION_EVENT, Id = Na.SUBCLASSING, it = Iv.getterFor(Pe), wd = Iv.set, cr = $e && $e.prototype, Y = $e, zr = cr, Rv = F.TypeError, Ht = F.document, Aa = F.process, qt = wv.f, Pd = qt, Rd = !!(Ht && Ht.createEvent && F.dispatchEvent), Cv = "unhandledrejection", Cd = "rejectionhandled", io = 0, jv = 1, jd = 2, Da = 1, _v = 2, Xr, vo, _d, co, xv = function(r) {
  var e;
  return bd(r) && oe(e = r.then) ? e : !1;
}, Nv = function(r, e) {
  var t = e.value, a = e.state == jv, n = a ? r.ok : r.fail, o = r.resolve, i = r.reject, v = r.domain, s, l, c;
  try {
    n ? (a || (e.rejection === _v && Nd(e), e.rejection = Da), n === !0 ? s = t : (v && v.enter(), s = n(t), v && (v.exit(), c = !0)), s === r.promise ? i(Rv("Promise-chain cycle")) : (l = xv(s)) ? fr(l, s, o, i) : o(s)) : i(t);
  } catch (u) {
    v && !c && v.exit(), i(u);
  }
}, Av = function(r, e) {
  r.notified || (r.notified = !0, xa(function() {
    for (var t = r.reactions, a; a = t.get(); )
      Nv(a, r);
    r.notified = !1, e && !r.rejection && xd(r);
  }));
}, Dv = function(r, e, t) {
  var a, n;
  Rd ? (a = Ht.createEvent("Event"), a.promise = e, a.reason = t, a.initEvent(r, !1, !0), F.dispatchEvent(a)) : a = { promise: e, reason: t }, !Td && (n = F["on" + r]) ? n(a) : r === Cv && Od("Unhandled promise rejection", t);
}, xd = function(r) {
  fr(Tv, F, function() {
    var e = r.facade, t = r.value, a = lo(r), n;
    if (a && (n = Sd(function() {
      fe ? Aa.emit("unhandledRejection", t, e) : Dv(Cv, e, t);
    }), r.rejection = fe || lo(r) ? _v : Da, n.error))
      throw n.value;
  });
}, lo = function(r) {
  return r.rejection !== Da && !r.parent;
}, Nd = function(r) {
  fr(Tv, F, function() {
    var e = r.facade;
    fe ? Aa.emit("rejectionHandled", e) : Dv(Cd, e, r.value);
  });
}, lr = function(r, e, t) {
  return function(a) {
    r(e, a, t);
  };
}, ur = function(r, e, t) {
  r.done || (r.done = !0, t && (r = t), r.value = e, r.state = jd, Av(r, !0));
}, zt = function(r, e, t) {
  if (!r.done) {
    r.done = !0, t && (r = t);
    try {
      if (r.facade === e)
        throw Rv("Promise can't be resolved itself");
      var a = xv(e);
      a ? xa(function() {
        var n = { done: !1 };
        try {
          fr(
            a,
            e,
            lr(zt, n, r),
            lr(ur, n, r)
          );
        } catch (o) {
          ur(n, o, r);
        }
      }) : (r.value = e, r.state = jv, Av(r, !1));
    } catch (n) {
      ur({ done: !1 }, n, r);
    }
  }
};
if (Pv && (Y = function(e) {
  hd(this, zr), gd(e), fr(Xr, this);
  var t = it(this);
  try {
    e(lr(zt, t), lr(ur, t));
  } catch (a) {
    ur(t, a);
  }
}, zr = Y.prototype, Xr = function(e) {
  wd(this, {
    type: Pe,
    done: !1,
    notified: !1,
    parent: !1,
    reactions: new Ed(),
    rejection: !1,
    state: io,
    value: void 0
  });
}, Xr.prototype = dd(zr, {
  // `Promise.prototype.then` method
  // https://tc39.es/ecma262/#sec-promise.prototype.then
  // eslint-disable-next-line unicorn/no-thenable -- safe
  then: function(e, t) {
    var a = it(this), n = qt(md(this, Y));
    return a.parent = !0, n.ok = oe(e) ? e : !0, n.fail = oe(t) && t, n.domain = fe ? Aa.domain : void 0, a.state == io ? a.reactions.add(n) : xa(function() {
      Nv(n, a);
    }), n.promise;
  }
}), vo = function() {
  var r = new Xr(), e = it(r);
  this.promise = r, this.resolve = lr(zt, e), this.reject = lr(ur, e);
}, wv.f = qt = function(r) {
  return r === Y || r === _d ? new vo(r) : Pd(r);
}, oe($e) && cr !== Object.prototype)) {
  co = cr.then, Id || $d(cr, "then", function(e, t) {
    var a = this;
    return new Y(function(n, o) {
      fr(co, a, n, o);
    }).then(e, t);
  }, { unsafe: !0 });
  try {
    delete cr.constructor;
  } catch {
  }
  oo && oo(cr, zr);
}
fd({ global: !0, wrap: !0, forced: Pv }, {
  Promise: Y
});
pd(Y, Pe, !1);
yd(Pe);
var Lv = {}, Ad = S, Dd = Lv, Ld = Ad("iterator"), Md = Array.prototype, Fd = function(r) {
  return r !== void 0 && (Dd.Array === r || Md[Ld] === r);
}, Ud = Pa, so = Ar, Bd = Lv, Gd = S, kd = Gd("iterator"), Mv = function(r) {
  if (r != null)
    return so(r, kd) || so(r, "@@iterator") || Bd[Ud(r)];
}, Kd = $, Vd = T, Wd = Q, Yd = I, Hd = Oe, qd = Mv, zd = Kd.TypeError, Xd = function(r, e) {
  var t = arguments.length < 2 ? qd(r) : e;
  if (Wd(t))
    return Yd(Vd(t, r));
  throw zd(Hd(r) + " is not iterable");
}, Jd = T, uo = I, Qd = Ar, Zd = function(r, e, t) {
  var a, n;
  uo(r);
  try {
    if (a = Qd(r, "return"), !a) {
      if (e === "throw")
        throw t;
      return t;
    }
    a = Jd(a, r);
  } catch (o) {
    n = !0, a = o;
  }
  if (e === "throw")
    throw t;
  if (n)
    throw a;
  return uo(a), t;
}, rp = $, ep = Ca, tp = T, ap = I, np = Oe, op = Fd, ip = ov, fo = ba, vp = Xd, cp = Mv, $o = Zd, lp = rp.TypeError, ie = function(r, e) {
  this.stopped = r, this.result = e;
}, po = ie.prototype, Fv = function(r, e, t) {
  var a = t && t.that, n = !!(t && t.AS_ENTRIES), o = !!(t && t.IS_ITERATOR), i = !!(t && t.INTERRUPTED), v = ep(e, a), s, l, c, u, f, y, d, p = function(g) {
    return s && $o(s, "normal", g), new ie(!0, g);
  }, b = function(g) {
    return n ? (ap(g), i ? v(g[0], g[1], p) : v(g[0], g[1])) : i ? v(g, p) : v(g);
  };
  if (o)
    s = r;
  else {
    if (l = cp(r), !l)
      throw lp(np(r) + " is not iterable");
    if (op(l)) {
      for (c = 0, u = ip(r); u > c; c++)
        if (f = b(r[c]), f && fo(po, f))
          return f;
      return new ie(!1);
    }
    s = vp(r, l);
  }
  for (y = s.next; !(d = tp(y, s)).done; ) {
    try {
      f = b(d.value);
    } catch (g) {
      $o(s, "throw", g);
    }
    if (typeof f == "object" && f && fo(po, f))
      return f;
  }
  return new ie(!1);
}, sp = S, Uv = sp("iterator"), Bv = !1;
try {
  var up = 0, yo = {
    next: function() {
      return { done: !!up++ };
    },
    return: function() {
      Bv = !0;
    }
  };
  yo[Uv] = function() {
    return this;
  }, Array.from(yo, function() {
    throw 2;
  });
} catch {
}
var fp = function(r, e) {
  if (!e && !Bv)
    return !1;
  var t = !1;
  try {
    var a = {};
    a[Uv] = function() {
      return {
        next: function() {
          return { done: t = !0 };
        }
      };
    }, r(a);
  } catch {
  }
  return t;
}, $p = we, dp = fp, pp = Mr.CONSTRUCTOR, Gv = pp || !dp(function(r) {
  $p.all(r).then(void 0, function() {
  });
}), yp = N, gp = T, bp = Q, hp = pr, mp = _a, Op = Fv, Sp = Gv;
yp({ target: "Promise", stat: !0, forced: Sp }, {
  all: function(e) {
    var t = this, a = hp.f(t), n = a.resolve, o = a.reject, i = mp(function() {
      var v = bp(t.resolve), s = [], l = 0, c = 1;
      Op(e, function(u) {
        var f = l++, y = !1;
        c++, gp(v, t, u).then(function(d) {
          y || (y = !0, s[f] = d, --c || n(s));
        }, o);
      }), --c || n(s);
    });
    return i.error && o(i.value), a.promise;
  }
});
var Ep = N, Tp = Mr.CONSTRUCTOR, Xt = we, Ip = G, wp = O, Pp = dr.exports, go = Xt && Xt.prototype;
Ep({ target: "Promise", proto: !0, forced: Tp, real: !0 }, {
  catch: function(r) {
    return this.then(void 0, r);
  }
});
if (wp(Xt)) {
  var bo = Ip("Promise").prototype.catch;
  go.catch !== bo && Pp(go, "catch", bo, { unsafe: !0 });
}
var Rp = N, Cp = T, jp = Q, _p = pr, xp = _a, Np = Fv, Ap = Gv;
Rp({ target: "Promise", stat: !0, forced: Ap }, {
  race: function(e) {
    var t = this, a = _p.f(t), n = a.reject, o = xp(function() {
      var i = jp(t.resolve);
      Np(e, function(v) {
        Cp(i, t, v).then(a.resolve, n);
      });
    });
    return o.error && n(o.value), a.promise;
  }
});
var Dp = N, Lp = T, Mp = pr, Fp = Mr.CONSTRUCTOR;
Dp({ target: "Promise", stat: !0, forced: Fp }, {
  reject: function(e) {
    var t = Mp.f(this);
    return Lp(t.reject, void 0, e), t.promise;
  }
});
var Up = I, Bp = B, Gp = pr, kp = function(r, e) {
  if (Up(r), Bp(e) && e.constructor === r)
    return e;
  var t = Gp.f(r), a = t.resolve;
  return a(e), t.promise;
}, Kp = N, Vp = G, Wp = Mr.CONSTRUCTOR, Yp = kp;
Vp("Promise");
Kp({ target: "Promise", stat: !0, forced: Wp }, {
  resolve: function(e) {
    return Yp(this, e);
  }
});
var Hp = $, qp = Pa, zp = Hp.String, yr = function(r) {
  if (qp(r) === "Symbol")
    throw TypeError("Cannot convert a Symbol value to a string");
  return zp(r);
}, Xp = I, Jp = function() {
  var r = Xp(this), e = "";
  return r.hasIndices && (e += "d"), r.global && (e += "g"), r.ignoreCase && (e += "i"), r.multiline && (e += "m"), r.dotAll && (e += "s"), r.unicode && (e += "u"), r.sticky && (e += "y"), e;
}, La = E, Qp = $, Ma = Qp.RegExp, Fa = La(function() {
  var r = Ma("a", "y");
  return r.lastIndex = 2, r.exec("abcd") != null;
}), Zp = Fa || La(function() {
  return !Ma("a", "y").sticky;
}), ry = Fa || La(function() {
  var r = Ma("^r", "gy");
  return r.lastIndex = 2, r.exec("str") != null;
}), ey = {
  BROKEN_CARET: ry,
  MISSED_STICKY: Zp,
  UNSUPPORTED_Y: Fa
}, kv = {}, ty = vv, ay = Ia, ny = Object.keys || function(e) {
  return ty(e, ay);
}, oy = U, iy = Qi, vy = Z, cy = I, ly = he, sy = ny;
kv.f = oy && !iy ? Object.defineProperties : function(e, t) {
  cy(e);
  for (var a = ly(t), n = sy(t), o = n.length, i = 0, v; o > i; )
    vy.f(e, v = n[i++], a[v]);
  return e;
};
var uy = I, fy = kv, ho = Ia, $y = Sa, dy = bv, py = Oa, yy = rv, mo = ">", Oo = "<", Jt = "prototype", Qt = "script", Kv = yy("IE_PROTO"), vt = function() {
}, Vv = function(r) {
  return Oo + Qt + mo + r + Oo + "/" + Qt + mo;
}, So = function(r) {
  r.write(Vv("")), r.close();
  var e = r.parentWindow.Object;
  return r = null, e;
}, gy = function() {
  var r = py("iframe"), e = "java" + Qt + ":", t;
  return r.style.display = "none", dy.appendChild(r), r.src = String(e), t = r.contentWindow.document, t.open(), t.write(Vv("document.F=Object")), t.close(), t.F;
}, Jr, ve = function() {
  try {
    Jr = new ActiveXObject("htmlfile");
  } catch {
  }
  ve = typeof document < "u" ? document.domain && Jr ? So(Jr) : gy() : So(Jr);
  for (var r = ho.length; r--; )
    delete ve[Jt][ho[r]];
  return ve();
};
$y[Kv] = !0;
var Wv = Object.create || function(e, t) {
  var a;
  return e !== null ? (vt[Jt] = uy(e), a = new vt(), vt[Jt] = null, a[Kv] = e) : a = ve(), t === void 0 ? a : fy.f(a, t);
}, by = E, hy = $, my = hy.RegExp, Oy = by(function() {
  var r = my(".", "s");
  return !(r.dotAll && r.exec(`
`) && r.flags === "s");
}), Sy = E, Ey = $, Ty = Ey.RegExp, Iy = Sy(function() {
  var r = Ty("(?<a>b)", "g");
  return r.exec("b").groups.a !== "b" || "b".replace(r, "$<a>c") !== "bc";
}), sr = T, Re = m, wy = yr, Py = Jp, Ry = ey, Cy = Se.exports, jy = Wv, _y = Ea.get, xy = Oy, Ny = Iy, Ay = Cy("native-string-replace", String.prototype.replace), de = RegExp.prototype.exec, Zt = de, Dy = Re("".charAt), Ly = Re("".indexOf), My = Re("".replace), ct = Re("".slice), ra = function() {
  var r = /a/, e = /b*/g;
  return sr(de, r, "a"), sr(de, e, "a"), r.lastIndex !== 0 || e.lastIndex !== 0;
}(), Yv = Ry.BROKEN_CARET, ea = /()??/.exec("")[1] !== void 0, Fy = ra || ea || Yv || xy || Ny;
Fy && (Zt = function(e) {
  var t = this, a = _y(t), n = wy(e), o = a.raw, i, v, s, l, c, u, f;
  if (o)
    return o.lastIndex = t.lastIndex, i = sr(Zt, o, n), t.lastIndex = o.lastIndex, i;
  var y = a.groups, d = Yv && t.sticky, p = sr(Py, t), b = t.source, g = 0, C = n;
  if (d && (p = My(p, "y", ""), Ly(p, "g") === -1 && (p += "g"), C = ct(n, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && Dy(n, t.lastIndex - 1) !== `
`) && (b = "(?: " + b + ")", C = " " + C, g++), v = new RegExp("^(?:" + b + ")", p)), ea && (v = new RegExp("^" + b + "$(?!\\s)", p)), ra && (s = t.lastIndex), l = sr(de, d ? v : t, C), d ? l ? (l.input = ct(l.input, g), l[0] = ct(l[0], g), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : ra && l && (t.lastIndex = t.global ? l.index + l[0].length : s), ea && l && l.length > 1 && sr(Ay, l[0], v, function() {
    for (c = 1; c < arguments.length - 2; c++)
      arguments[c] === void 0 && (l[c] = void 0);
  }), l && y)
    for (l.groups = u = jy(null), c = 0; c < y.length; c++)
      f = y[c], u[f[0]] = l[f[1]];
  return l;
});
var Ua = Zt, Uy = N, Eo = Ua;
Uy({ target: "RegExp", proto: !0, forced: /./.exec !== Eo }, {
  exec: Eo
});
var To = m, Io = dr.exports, By = Ua, wo = E, Hv = S, Gy = Ee, ky = Hv("species"), lt = RegExp.prototype, qv = function(r, e, t, a) {
  var n = Hv(r), o = !wo(function() {
    var l = {};
    return l[n] = function() {
      return 7;
    }, ""[r](l) != 7;
  }), i = o && !wo(function() {
    var l = !1, c = /a/;
    return r === "split" && (c = {}, c.constructor = {}, c.constructor[ky] = function() {
      return c;
    }, c.flags = "", c[n] = /./[n]), c.exec = function() {
      return l = !0, null;
    }, c[n](""), !l;
  });
  if (!o || !i || t) {
    var v = To(/./[n]), s = e(n, ""[r], function(l, c, u, f, y) {
      var d = To(l), p = c.exec;
      return p === By || p === lt.exec ? o && !y ? { done: !0, value: v(c, u, f) } : { done: !0, value: d(u, c, f) } : { done: !1 };
    });
    Io(String.prototype, r, s[0]), Io(lt, n, s[1]);
  }
  a && Gy(lt[n], "sham", !0);
}, Ba = m, Ky = Ie, Vy = yr, Wy = J, Yy = Ba("".charAt), Po = Ba("".charCodeAt), Hy = Ba("".slice), Ro = function(r) {
  return function(e, t) {
    var a = Vy(Wy(e)), n = Ky(t), o = a.length, i, v;
    return n < 0 || n >= o ? r ? "" : void 0 : (i = Po(a, n), i < 55296 || i > 56319 || n + 1 === o || (v = Po(a, n + 1)) < 56320 || v > 57343 ? r ? Yy(a, n) : i : r ? Hy(a, n, n + 2) : (i - 55296 << 10) + (v - 56320) + 65536);
  };
}, qy = {
  // `String.prototype.codePointAt` method
  // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  codeAt: Ro(!1),
  // `String.prototype.at` method
  // https://github.com/mathiasbynens/String.prototype.at
  charAt: Ro(!0)
}, zy = qy.charAt, zv = function(r, e, t) {
  return e + (t ? zy(r, e).length : 1);
}, Xy = $, Co = T, Jy = I, Qy = O, Zy = Nr, rg = Ua, eg = Xy.TypeError, Xv = function(r, e) {
  var t = r.exec;
  if (Qy(t)) {
    var a = Co(t, r, e);
    return a !== null && Jy(a), a;
  }
  if (Zy(r) === "RegExp")
    return Co(rg, r, e);
  throw eg("RegExp#exec called on incompatible receiver");
}, tg = T, ag = qv, ng = I, og = Dr, st = yr, ig = J, vg = Ar, cg = zv, jo = Xv;
ag("match", function(r, e, t) {
  return [
    // `String.prototype.match` method
    // https://tc39.es/ecma262/#sec-string.prototype.match
    function(n) {
      var o = ig(this), i = n == null ? void 0 : vg(n, r);
      return i ? tg(i, n, o) : new RegExp(n)[r](st(o));
    },
    // `RegExp.prototype[@@match]` method
    // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
    function(a) {
      var n = ng(this), o = st(a), i = t(e, n, o);
      if (i.done)
        return i.value;
      if (!n.global)
        return jo(n, o);
      var v = n.unicode;
      n.lastIndex = 0;
      for (var s = [], l = 0, c; (c = jo(n, o)) !== null; ) {
        var u = st(c[0]);
        s[l] = u, u === "" && (n.lastIndex = cg(o, og(n.lastIndex), v)), l++;
      }
      return l === 0 ? null : s;
    }
  ];
});
var Ga = m, lg = Hi, sg = Math.floor, ut = Ga("".charAt), ug = Ga("".replace), ft = Ga("".slice), fg = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, $g = /\$([$&'`]|\d{1,2})/g, dg = function(r, e, t, a, n, o) {
  var i = t + r.length, v = a.length, s = $g;
  return n !== void 0 && (n = lg(n), s = fg), ug(o, s, function(l, c) {
    var u;
    switch (ut(c, 0)) {
      case "$":
        return "$";
      case "&":
        return r;
      case "`":
        return ft(e, 0, t);
      case "'":
        return ft(e, i);
      case "<":
        u = n[ft(c, 1, -1)];
        break;
      default:
        var f = +c;
        if (f === 0)
          return l;
        if (f > v) {
          var y = sg(f / 10);
          return y === 0 ? l : y <= v ? a[y - 1] === void 0 ? ut(c, 1) : a[y - 1] + ut(c, 1) : l;
        }
        u = a[f - 1];
    }
    return u === void 0 ? "" : u;
  });
}, pg = gv, _o = T, Ce = m, yg = qv, gg = E, bg = I, hg = O, mg = Ie, Og = Dr, ar = yr, Sg = J, Eg = zv, Tg = Ar, Ig = dg, wg = Xv, Pg = S, ta = Pg("replace"), Rg = Math.max, Cg = Math.min, jg = Ce([].concat), $t = Ce([].push), xo = Ce("".indexOf), No = Ce("".slice), _g = function(r) {
  return r === void 0 ? r : String(r);
}, xg = function() {
  return "a".replace(/./, "$0") === "$0";
}(), Ao = function() {
  return /./[ta] ? /./[ta]("a", "$0") === "" : !1;
}(), Ng = !gg(function() {
  var r = /./;
  return r.exec = function() {
    var e = [];
    return e.groups = { a: "7" }, e;
  }, "".replace(r, "$<a>") !== "7";
});
yg("replace", function(r, e, t) {
  var a = Ao ? "$" : "$0";
  return [
    // `String.prototype.replace` method
    // https://tc39.es/ecma262/#sec-string.prototype.replace
    function(o, i) {
      var v = Sg(this), s = o == null ? void 0 : Tg(o, ta);
      return s ? _o(s, o, v, i) : _o(e, ar(v), o, i);
    },
    // `RegExp.prototype[@@replace]` method
    // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
    function(n, o) {
      var i = bg(this), v = ar(n);
      if (typeof o == "string" && xo(o, a) === -1 && xo(o, "$<") === -1) {
        var s = t(e, i, v, o);
        if (s.done)
          return s.value;
      }
      var l = hg(o);
      l || (o = ar(o));
      var c = i.global;
      if (c) {
        var u = i.unicode;
        i.lastIndex = 0;
      }
      for (var f = []; ; ) {
        var y = wg(i, v);
        if (y === null || ($t(f, y), !c))
          break;
        var d = ar(y[0]);
        d === "" && (i.lastIndex = Eg(v, Og(i.lastIndex), u));
      }
      for (var p = "", b = 0, g = 0; g < f.length; g++) {
        y = f[g];
        for (var C = ar(y[0]), br = Rg(Cg(mg(y.index), v.length), 0), xe = [], Ne = 1; Ne < y.length; Ne++)
          $t(xe, _g(y[Ne]));
        var Ae = y.groups;
        if (l) {
          var an = jg([C], xe, br, v);
          Ae !== void 0 && $t(an, Ae);
          var nn = ar(pg(o, void 0, an));
        } else
          nn = Ig(C, v, br, xe, Ae, o);
        br >= b && (p += No(v, b, br) + nn, b = br + C.length);
      }
      return p + No(v, b);
    }
  ];
}, !Ng || !xg || Ao);
var Ag = B, Dg = Nr, Lg = S, Mg = Lg("match"), Fg = function(r) {
  var e;
  return Ag(r) && ((e = r[Mg]) !== void 0 ? !!e : Dg(r) == "RegExp");
}, Ug = $, Bg = Fg, Gg = Ug.TypeError, Jv = function(r) {
  if (Bg(r))
    throw Gg("The method doesn't accept regular expressions");
  return r;
}, kg = S, Kg = kg("match"), Qv = function(r) {
  var e = /./;
  try {
    "/./"[r](e);
  } catch {
    try {
      return e[Kg] = !1, "/./"[r](e);
    } catch {
    }
  }
  return !1;
}, Vg = N, Zv = m, Wg = $r.f, Yg = Dr, Do = yr, Hg = Jv, qg = J, zg = Qv, Lo = Zv("".startsWith), Xg = Zv("".slice), Jg = Math.min, rc = zg("startsWith"), Qg = !rc && !!function() {
  var r = Wg(String.prototype, "startsWith");
  return r && !r.writable;
}();
Vg({ target: "String", proto: !0, forced: !Qg && !rc }, {
  startsWith: function(e) {
    var t = Do(qg(this));
    Hg(e);
    var a = Yg(Jg(arguments.length > 1 ? arguments[1] : void 0, t.length)), n = Do(e);
    return Lo ? Lo(t, n, a) : Xg(t, a, a + n.length) === n;
  }
});
var Zg = S, rb = Wv, eb = Z, aa = Zg("unscopables"), na = Array.prototype;
na[aa] == null && eb.f(na, aa, {
  configurable: !0,
  value: rb(null)
});
var tb = function(r) {
  na[aa][r] = !0;
}, ab = N, nb = iv.includes, ob = tb;
ab({ target: "Array", proto: !0 }, {
  includes: function(e) {
    return nb(this, e, arguments.length > 1 ? arguments[1] : void 0);
  }
});
ob("includes");
var ib = N, ec = m, vb = $r.f, cb = Dr, Mo = yr, lb = Jv, sb = J, ub = Qv, Fo = ec("".endsWith), fb = ec("".slice), $b = Math.min, tc = ub("endsWith"), db = !tc && !!function() {
  var r = vb(String.prototype, "endsWith");
  return r && !r.writable;
}();
ib({ target: "String", proto: !0, forced: !db && !tc }, {
  endsWith: function(e) {
    var t = Mo(sb(this));
    lb(e);
    var a = arguments.length > 1 ? arguments[1] : void 0, n = t.length, o = a === void 0 ? n : $b(cb(a), n), i = Mo(e);
    return Fo ? Fo(t, i, o) : fb(t, o - i.length, o) === i;
  }
});
function pb(r, e, t, a) {
  function n(o) {
    return o instanceof t ? o : new t(function(i) {
      i(o);
    });
  }
  return new (t || (t = Promise))(function(o, i) {
    function v(c) {
      try {
        l(a.next(c));
      } catch (u) {
        i(u);
      }
    }
    function s(c) {
      try {
        l(a.throw(c));
      } catch (u) {
        i(u);
      }
    }
    function l(c) {
      c.done ? o(c.value) : n(c.value).then(v, s);
    }
    l((a = a.apply(r, e || [])).next());
  });
}
const yb = (r) => new Promise((e, t) => {
  try {
    const a = new XMLHttpRequest();
    a.open("GET", r, !0), a.responseType = "blob", a.onload = () => {
      const n = new FileReader();
      n.readAsArrayBuffer(a.response), n.onloadend = () => {
        e(n.result);
      };
    }, a.send();
  } catch {
    t(`error while retrieving file ${r}.`);
  }
}), gb = (r) => {
  if (r) {
    const e = r.src;
    r.src = "about:blank", setTimeout(() => {
      r && (r.src = e);
    }, 100);
  }
}, oa = (r) => {
  const e = r.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
  return e && {
    href: r,
    protocol: e[1],
    host: e[2],
    hostname: e[3],
    port: e[4],
    pathname: e[5],
    search: e[6],
    hash: e[7]
  };
}, bb = (r) => pb(void 0, void 0, void 0, function* () {
  mammoth || console.error("Please install mammoth and make sure mammoth.browser.min.js is loaded.");
  const e = yield yb(r);
  return (yield mammoth.convertToHtml({
    arrayBuffer: e
  })).value;
}), hb = () => {
  let r = null, e = 0;
  return {
    subscribe: (t, a = 3e3, n = 5) => {
      if (ac(t))
        r && clearInterval(r);
      else
        return r = setInterval(() => {
          e++, e >= n && clearInterval(r), gb(t);
        }, a), r;
    },
    unsubscribe: () => {
      r && clearInterval(r);
    }
  };
}, ac = (r) => {
  var e;
  let t = !1;
  try {
    mb() ? t = !(!((e = r == null ? void 0 : r.contentWindow) === null || e === void 0) && e.document) : t = !(r != null && r.contentDocument);
  } catch {
  }
  return t;
}, mb = () => /MSIE (\d+\.\d+);/.test(navigator.userAgent) || navigator.userAgent.indexOf("Trident/") > -1, Uo = (r, e = "google", t = "", a = "") => {
  switch (e) {
    case "google":
      a = "https://docs.google.com/gview?url=%URL%&embedded=true";
      break;
    case "office": {
      a = "https://view.officeapps.live.com/op/embed.aspx?src=%URL%";
      break;
    }
    case "pdf": {
      a = "";
      break;
    }
  }
  const n = e === "google" || e === "office" || e === "url", o = r != null && r.indexOf("/") ? encodeURIComponent(r) : r;
  let i = a ? a.replace("%URL%", o) : r;
  if (t && n && e !== "url") {
    const v = t.startsWith("&") ? "" : "&";
    i = `${i}${v}${t}`;
  }
  return {
    url: i,
    externalViewer: n
  };
}, Ob = (r, e) => {
  const t = oa(r), a = oa(e);
  return t && a ? r.replace(t.port ? `${t.hostname}:${t.port}` : t.hostname, a.port ? `${a.hostname}:${a.port}` : a.hostname) : r;
}, Sb = (r) => {
  const e = oa(r), t = (e == null ? void 0 : e.hostname) || "";
  return ["localhost", "127.0.0.1", "", "::1"].includes(t) || t.startsWith("192.168.") || t.startsWith("10.0.") || t.endsWith(".local");
};
var Bo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Qr = function(r) {
  return r && r.Math == Math && r;
}, h = (
  // eslint-disable-next-line es-x/no-global-this -- safe
  Qr(typeof globalThis == "object" && globalThis) || Qr(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
  Qr(typeof self == "object" && self) || Qr(typeof Bo == "object" && Bo) || // eslint-disable-next-line no-new-func -- fallback
  function() {
    return this;
  }() || Function("return this")()
), A = function(r) {
  try {
    return !!r();
  } catch {
    return !0;
  }
}, Eb = A, nc = !Eb(function() {
  var r = (function() {
  }).bind();
  return typeof r != "function" || r.hasOwnProperty("prototype");
}), oc = nc, ic = Function.prototype, Tb = ic.bind, ia = ic.call, Ib = oc && Tb.bind(ia, ia), x = oc ? function(r) {
  return r && Ib(r);
} : function(r) {
  return r && function() {
    return ia.apply(r, arguments);
  };
}, vc = x, wb = vc({}.toString), Pb = vc("".slice), Rb = function(r) {
  return Pb(wb(r), 8, -1);
}, Cb = h, jb = x, _b = A, xb = Rb, dt = Cb.Object, Nb = jb("".split), cc = _b(function() {
  return !dt("z").propertyIsEnumerable(0);
}) ? function(r) {
  return xb(r) == "String" ? Nb(r, "") : dt(r);
} : dt, Ab = h, Db = Ab.TypeError, lc = function(r) {
  if (r == null)
    throw Db("Can't call method on " + r);
  return r;
}, Lb = cc, Mb = lc, Fr = function(r) {
  return Lb(Mb(r));
}, ka = { exports: {} }, Go = h, Fb = Object.defineProperty, Ka = function(r, e) {
  try {
    Fb(Go, r, { value: e, configurable: !0, writable: !0 });
  } catch {
    Go[r] = e;
  }
  return e;
}, Ub = h, Bb = Ka, ko = "__core-js_shared__", Gb = Ub[ko] || Bb(ko, {}), Va = Gb, Ko = Va;
(ka.exports = function(r, e) {
  return Ko[r] || (Ko[r] = e !== void 0 ? e : {});
})("versions", []).push({
  version: "3.22.2",
  mode: "global",
  copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
  license: "https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",
  source: "https://github.com/zloirock/core-js"
});
var kb = h, Kb = lc, Vb = kb.Object, Wa = function(r) {
  return Vb(Kb(r));
}, Wb = x, Yb = Wa, Hb = Wb({}.hasOwnProperty), L = Object.hasOwn || function(e, t) {
  return Hb(Yb(e), t);
}, qb = x, zb = 0, Xb = Math.random(), Jb = qb(1 .toString), sc = function(r) {
  return "Symbol(" + (r === void 0 ? "" : r) + ")_" + Jb(++zb + Xb, 36);
}, R = function(r) {
  return typeof r == "function";
}, pt = h, Qb = R, Zb = function(r) {
  return Qb(r) ? r : void 0;
}, je = function(r, e) {
  return arguments.length < 2 ? Zb(pt[r]) : pt[r] && pt[r][e];
}, rh = je, eh = rh("navigator", "userAgent") || "", uc = h, yt = eh, Vo = uc.process, Wo = uc.Deno, Yo = Vo && Vo.versions || Wo && Wo.version, Ho = Yo && Yo.v8, _, pe;
Ho && (_ = Ho.split("."), pe = _[0] > 0 && _[0] < 4 ? 1 : +(_[0] + _[1]));
!pe && yt && (_ = yt.match(/Edge\/(\d+)/), (!_ || _[1] >= 74) && (_ = yt.match(/Chrome\/(\d+)/), _ && (pe = +_[1])));
var th = pe, qo = th, ah = A, fc = !!Object.getOwnPropertySymbols && !ah(function() {
  var r = Symbol();
  return !String(r) || !(Object(r) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  !Symbol.sham && qo && qo < 41;
}), nh = fc, $c = nh && !Symbol.sham && typeof Symbol.iterator == "symbol", oh = h, ih = ka.exports, zo = L, vh = sc, Xo = fc, dc = $c, nr = ih("wks"), q = oh.Symbol, Jo = q && q.for, ch = dc ? q : q && q.withoutSetter || vh, gr = function(r) {
  if (!zo(nr, r) || !(Xo || typeof nr[r] == "string")) {
    var e = "Symbol." + r;
    Xo && zo(q, r) ? nr[r] = q[r] : dc && Jo ? nr[r] = Jo(e) : nr[r] = ch(e);
  }
  return nr[r];
}, lh = R, Ur = function(r) {
  return typeof r == "object" ? r !== null : lh(r);
}, pc = h, sh = Ur, uh = pc.String, fh = pc.TypeError, Br = function(r) {
  if (sh(r))
    return r;
  throw fh(uh(r) + " is not an object");
}, yc = {}, $h = A, M = !$h(function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
}), dh = M, ph = A, gc = dh && ph(function() {
  return Object.defineProperty(function() {
  }, "prototype", {
    value: 42,
    writable: !1
  }).prototype != 42;
}), rr = {}, yh = h, Qo = Ur, va = yh.document, gh = Qo(va) && Qo(va.createElement), Ya = function(r) {
  return gh ? va.createElement(r) : {};
}, bh = M, hh = A, mh = Ya, bc = !bh && !hh(function() {
  return Object.defineProperty(mh("div"), "a", {
    get: function() {
      return 7;
    }
  }).a != 7;
}), Oh = nc, Zr = Function.prototype.call, Gr = Oh ? Zr.bind(Zr) : function() {
  return Zr.apply(Zr, arguments);
}, Sh = x, Eh = Sh({}.isPrototypeOf), Th = h, Ih = je, wh = R, Ph = Eh, Rh = $c, Ch = Th.Object, hc = Rh ? function(r) {
  return typeof r == "symbol";
} : function(r) {
  var e = Ih("Symbol");
  return wh(e) && Ph(e.prototype, Ch(r));
}, jh = h, _h = jh.String, xh = function(r) {
  try {
    return _h(r);
  } catch {
    return "Object";
  }
}, Nh = h, Ah = R, Dh = xh, Lh = Nh.TypeError, Mh = function(r) {
  if (Ah(r))
    return r;
  throw Lh(Dh(r) + " is not a function");
}, Fh = Mh, Uh = function(r, e) {
  var t = r[e];
  return t == null ? void 0 : Fh(t);
}, Bh = h, gt = Gr, bt = R, ht = Ur, Gh = Bh.TypeError, kh = function(r, e) {
  var t, a;
  if (e === "string" && bt(t = r.toString) && !ht(a = gt(t, r)) || bt(t = r.valueOf) && !ht(a = gt(t, r)) || e !== "string" && bt(t = r.toString) && !ht(a = gt(t, r)))
    return a;
  throw Gh("Can't convert object to primitive value");
}, Kh = h, Vh = Gr, Zo = Ur, ri = hc, Wh = Uh, Yh = kh, Hh = gr, qh = Kh.TypeError, zh = Hh("toPrimitive"), Xh = function(r, e) {
  if (!Zo(r) || ri(r))
    return r;
  var t = Wh(r, zh), a;
  if (t) {
    if (e === void 0 && (e = "default"), a = Vh(t, r, e), !Zo(a) || ri(a))
      return a;
    throw qh("Can't convert object to primitive value");
  }
  return e === void 0 && (e = "number"), Yh(r, e);
}, Jh = Xh, Qh = hc, mc = function(r) {
  var e = Jh(r, "string");
  return Qh(e) ? e : e + "";
}, Zh = h, r1 = M, e1 = bc, t1 = gc, re = Br, ei = mc, a1 = Zh.TypeError, mt = Object.defineProperty, n1 = Object.getOwnPropertyDescriptor, Ot = "enumerable", St = "configurable", Et = "writable";
rr.f = r1 ? t1 ? function(e, t, a) {
  if (re(e), t = ei(t), re(a), typeof e == "function" && t === "prototype" && "value" in a && Et in a && !a[Et]) {
    var n = n1(e, t);
    n && n[Et] && (e[t] = a.value, a = {
      configurable: St in a ? a[St] : n[St],
      enumerable: Ot in a ? a[Ot] : n[Ot],
      writable: !1
    });
  }
  return mt(e, t, a);
} : mt : function(e, t, a) {
  if (re(e), t = ei(t), re(a), e1)
    try {
      return mt(e, t, a);
    } catch {
    }
  if ("get" in a || "set" in a)
    throw a1("Accessors not supported");
  return "value" in a && (e[t] = a.value), e;
};
var o1 = Math.ceil, i1 = Math.floor, Oc = function(r) {
  var e = +r;
  return e !== e || e === 0 ? 0 : (e > 0 ? i1 : o1)(e);
}, v1 = Oc, c1 = Math.max, l1 = Math.min, s1 = function(r, e) {
  var t = v1(r);
  return t < 0 ? c1(t + e, 0) : l1(t, e);
}, u1 = Oc, f1 = Math.min, $1 = function(r) {
  return r > 0 ? f1(u1(r), 9007199254740991) : 0;
}, d1 = $1, p1 = function(r) {
  return d1(r.length);
}, y1 = Fr, g1 = s1, b1 = p1, ti = function(r) {
  return function(e, t, a) {
    var n = y1(e), o = b1(n), i = g1(a, o), v;
    if (r && t != t) {
      for (; o > i; )
        if (v = n[i++], v != v)
          return !0;
    } else
      for (; o > i; i++)
        if ((r || i in n) && n[i] === t)
          return r || i || 0;
    return !r && -1;
  };
}, h1 = {
  // `Array.prototype.includes` method
  // https://tc39.es/ecma262/#sec-array.prototype.includes
  includes: ti(!0),
  // `Array.prototype.indexOf` method
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
  indexOf: ti(!1)
}, Ha = {}, m1 = x, Tt = L, O1 = Fr, S1 = h1.indexOf, E1 = Ha, ai = m1([].push), Sc = function(r, e) {
  var t = O1(r), a = 0, n = [], o;
  for (o in t)
    !Tt(E1, o) && Tt(t, o) && ai(n, o);
  for (; e.length > a; )
    Tt(t, o = e[a++]) && (~S1(n, o) || ai(n, o));
  return n;
}, qa = [
  "constructor",
  "hasOwnProperty",
  "isPrototypeOf",
  "propertyIsEnumerable",
  "toLocaleString",
  "toString",
  "valueOf"
], T1 = Sc, I1 = qa, Ec = Object.keys || function(e) {
  return T1(e, I1);
}, w1 = M, P1 = gc, R1 = rr, C1 = Br, j1 = Fr, _1 = Ec;
yc.f = w1 && !P1 ? Object.defineProperties : function(e, t) {
  C1(e);
  for (var a = j1(t), n = _1(t), o = n.length, i = 0, v; o > i; )
    R1.f(e, v = n[i++], a[v]);
  return e;
};
var x1 = je, N1 = x1("document", "documentElement"), A1 = ka.exports, D1 = sc, ni = A1("keys"), za = function(r) {
  return ni[r] || (ni[r] = D1(r));
}, L1 = Br, M1 = yc, oi = qa, F1 = Ha, U1 = N1, B1 = Ya, G1 = za, ii = ">", vi = "<", ca = "prototype", la = "script", Tc = G1("IE_PROTO"), It = function() {
}, Ic = function(r) {
  return vi + la + ii + r + vi + "/" + la + ii;
}, ci = function(r) {
  r.write(Ic("")), r.close();
  var e = r.parentWindow.Object;
  return r = null, e;
}, k1 = function() {
  var r = B1("iframe"), e = "java" + la + ":", t;
  return r.style.display = "none", U1.appendChild(r), r.src = String(e), t = r.contentWindow.document, t.open(), t.write(Ic("document.F=Object")), t.close(), t.F;
}, ee, ce = function() {
  try {
    ee = new ActiveXObject("htmlfile");
  } catch {
  }
  ce = typeof document < "u" ? document.domain && ee ? ci(ee) : k1() : ci(ee);
  for (var r = oi.length; r--; )
    delete ce[ca][oi[r]];
  return ce();
};
F1[Tc] = !0;
var wc = Object.create || function(e, t) {
  var a;
  return e !== null ? (It[ca] = L1(e), a = new It(), It[ca] = null, a[Tc] = e) : a = ce(), t === void 0 ? a : M1.f(a, t);
}, K1 = gr, V1 = wc, W1 = rr, sa = K1("unscopables"), ua = Array.prototype;
ua[sa] == null && W1.f(ua, sa, {
  configurable: !0,
  value: V1(null)
});
var Y1 = function(r) {
  ua[sa][r] = !0;
}, Xa = {}, H1 = x, q1 = R, fa = Va, z1 = H1(Function.toString);
q1(fa.inspectSource) || (fa.inspectSource = function(r) {
  return z1(r);
});
var Pc = fa.inspectSource, X1 = h, J1 = R, Q1 = Pc, li = X1.WeakMap, Z1 = J1(li) && /native code/.test(Q1(li)), Ja = function(r, e) {
  return {
    enumerable: !(r & 1),
    configurable: !(r & 2),
    writable: !(r & 4),
    value: e
  };
}, rm = M, em = rr, tm = Ja, kr = rm ? function(r, e, t) {
  return em.f(r, e, tm(1, t));
} : function(r, e, t) {
  return r[e] = t, r;
}, am = Z1, Rc = h, wt = x, nm = Ur, om = kr, Pt = L, Rt = Va, im = za, vm = Ha, si = "Object already initialized", $a = Rc.TypeError, cm = Rc.WeakMap, ye, xr, ge, lm = function(r) {
  return ge(r) ? xr(r) : ye(r, {});
}, sm = function(r) {
  return function(e) {
    var t;
    if (!nm(e) || (t = xr(e)).type !== r)
      throw $a("Incompatible receiver, " + r + " required");
    return t;
  };
};
if (am || Rt.state) {
  var V = Rt.state || (Rt.state = new cm()), um = wt(V.get), ui = wt(V.has), fm = wt(V.set);
  ye = function(r, e) {
    if (ui(V, r))
      throw new $a(si);
    return e.facade = r, fm(V, r, e), e;
  }, xr = function(r) {
    return um(V, r) || {};
  }, ge = function(r) {
    return ui(V, r);
  };
} else {
  var or = im("state");
  vm[or] = !0, ye = function(r, e) {
    if (Pt(r, or))
      throw new $a(si);
    return e.facade = r, om(r, or, e), e;
  }, xr = function(r) {
    return Pt(r, or) ? r[or] : {};
  }, ge = function(r) {
    return Pt(r, or);
  };
}
var Cc = {
  set: ye,
  get: xr,
  has: ge,
  enforce: lm,
  getterFor: sm
}, Qa = {}, Za = {}, jc = {}.propertyIsEnumerable, _c = Object.getOwnPropertyDescriptor, $m = _c && !jc.call({ 1: 2 }, 1);
Za.f = $m ? function(e) {
  var t = _c(this, e);
  return !!t && t.enumerable;
} : jc;
var dm = M, pm = Gr, ym = Za, gm = Ja, bm = Fr, hm = mc, mm = L, Om = bc, fi = Object.getOwnPropertyDescriptor;
Qa.f = dm ? fi : function(e, t) {
  if (e = bm(e), t = hm(t), Om)
    try {
      return fi(e, t);
    } catch {
    }
  if (mm(e, t))
    return gm(!pm(ym.f, e, t), e[t]);
};
var _e = { exports: {} }, da = M, Sm = L, xc = Function.prototype, Em = da && Object.getOwnPropertyDescriptor, rn = Sm(xc, "name"), Tm = rn && (function() {
}).name === "something", Im = rn && (!da || da && Em(xc, "name").configurable), Nc = {
  EXISTS: rn,
  PROPER: Tm,
  CONFIGURABLE: Im
}, wm = h, $i = R, Pm = L, di = kr, Rm = Ka, Cm = Pc, Ac = Cc, jm = Nc.CONFIGURABLE, _m = Ac.get, xm = Ac.enforce, Nm = String(String).split("String");
(_e.exports = function(r, e, t, a) {
  var n = a ? !!a.unsafe : !1, o = a ? !!a.enumerable : !1, i = a ? !!a.noTargetGet : !1, v = a && a.name !== void 0 ? a.name : e, s;
  if ($i(t) && (String(v).slice(0, 7) === "Symbol(" && (v = "[" + String(v).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!Pm(t, "name") || jm && t.name !== v) && di(t, "name", v), s = xm(t), s.source || (s.source = Nm.join(typeof v == "string" ? v : ""))), r === wm) {
    o ? r[e] = t : Rm(e, t);
    return;
  } else
    n ? !i && r[e] && (o = !0) : delete r[e];
  o ? r[e] = t : di(r, e, t);
})(Function.prototype, "toString", function() {
  return $i(this) && _m(this).source || Cm(this);
});
var Dc = {}, Am = Sc, Dm = qa, Lm = Dm.concat("length", "prototype");
Dc.f = Object.getOwnPropertyNames || function(e) {
  return Am(e, Lm);
};
var en = {};
en.f = Object.getOwnPropertySymbols;
var Mm = je, Fm = x, Um = Dc, Bm = en, Gm = Br, km = Fm([].concat), Km = Mm("Reflect", "ownKeys") || function(e) {
  var t = Um.f(Gm(e)), a = Bm.f;
  return a ? km(t, a(e)) : t;
}, pi = L, Vm = Km, Wm = Qa, Ym = rr, Hm = function(r, e, t) {
  for (var a = Vm(e), n = Ym.f, o = Wm.f, i = 0; i < a.length; i++) {
    var v = a[i];
    !pi(r, v) && !(t && pi(t, v)) && n(r, v, o(e, v));
  }
}, qm = A, zm = R, Xm = /#|\.prototype\./, Kr = function(r, e) {
  var t = Qm[Jm(r)];
  return t == rO ? !0 : t == Zm ? !1 : zm(e) ? qm(e) : !!e;
}, Jm = Kr.normalize = function(r) {
  return String(r).replace(Xm, ".").toLowerCase();
}, Qm = Kr.data = {}, Zm = Kr.NATIVE = "N", rO = Kr.POLYFILL = "P", eO = Kr, Ct = h, tO = Qa.f, aO = kr, nO = _e.exports, oO = Ka, iO = Hm, vO = eO, Lc = function(r, e) {
  var t = r.target, a = r.global, n = r.stat, o, i, v, s, l, c;
  if (a ? i = Ct : n ? i = Ct[t] || oO(t, {}) : i = (Ct[t] || {}).prototype, i)
    for (v in e) {
      if (l = e[v], r.noTargetGet ? (c = tO(i, v), s = c && c.value) : s = i[v], o = vO(a ? v : t + (n ? "." : "#") + v, r.forced), !o && s !== void 0) {
        if (typeof l == typeof s)
          continue;
        iO(l, s);
      }
      (r.sham || s && s.sham) && aO(l, "sham", !0), nO(i, v, l, r);
    }
}, cO = A, lO = !cO(function() {
  function r() {
  }
  return r.prototype.constructor = null, Object.getPrototypeOf(new r()) !== r.prototype;
}), sO = h, uO = L, fO = R, $O = Wa, dO = za, pO = lO, yi = dO("IE_PROTO"), pa = sO.Object, yO = pa.prototype, Mc = pO ? pa.getPrototypeOf : function(r) {
  var e = $O(r);
  if (uO(e, yi))
    return e[yi];
  var t = e.constructor;
  return fO(t) && e instanceof t ? t.prototype : e instanceof pa ? yO : null;
}, gO = A, bO = R, gi = Mc, hO = _e.exports, mO = gr, ya = mO("iterator"), Fc = !1, X, jt, _t;
[].keys && (_t = [].keys(), "next" in _t ? (jt = gi(gi(_t)), jt !== Object.prototype && (X = jt)) : Fc = !0);
var OO = X == null || gO(function() {
  var r = {};
  return X[ya].call(r) !== r;
});
OO && (X = {});
bO(X[ya]) || hO(X, ya, function() {
  return this;
});
var Uc = {
  IteratorPrototype: X,
  BUGGY_SAFARI_ITERATORS: Fc
}, SO = rr.f, EO = L, TO = gr, bi = TO("toStringTag"), Bc = function(r, e, t) {
  r && !t && (r = r.prototype), r && !EO(r, bi) && SO(r, bi, { configurable: !0, value: e });
}, IO = Uc.IteratorPrototype, wO = wc, PO = Ja, RO = Bc, CO = Xa, jO = function() {
  return this;
}, _O = function(r, e, t, a) {
  var n = e + " Iterator";
  return r.prototype = wO(IO, { next: PO(+!a, t) }), RO(r, n, !1), CO[n] = jO, r;
}, Gc = h, xO = R, NO = Gc.String, AO = Gc.TypeError, DO = function(r) {
  if (typeof r == "object" || xO(r))
    return r;
  throw AO("Can't set " + NO(r) + " as a prototype");
}, LO = x, MO = Br, FO = DO, UO = Object.setPrototypeOf || ("__proto__" in {} ? function() {
  var r = !1, e = {}, t;
  try {
    t = LO(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set), t(e, []), r = e instanceof Array;
  } catch {
  }
  return function(n, o) {
    return MO(n), FO(o), r ? t(n, o) : n.__proto__ = o, n;
  };
}() : void 0), BO = Lc, GO = Gr, kc = Nc, kO = R, KO = _O, hi = Mc, mi = UO, VO = Bc, WO = kr, xt = _e.exports, YO = gr, HO = Xa, Kc = Uc, qO = kc.PROPER, zO = kc.CONFIGURABLE, Oi = Kc.IteratorPrototype, te = Kc.BUGGY_SAFARI_ITERATORS, Er = YO("iterator"), Si = "keys", Tr = "values", Ei = "entries", XO = function() {
  return this;
}, JO = function(r, e, t, a, n, o, i) {
  KO(t, e, a);
  var v = function(g) {
    if (g === n && f)
      return f;
    if (!te && g in c)
      return c[g];
    switch (g) {
      case Si:
        return function() {
          return new t(this, g);
        };
      case Tr:
        return function() {
          return new t(this, g);
        };
      case Ei:
        return function() {
          return new t(this, g);
        };
    }
    return function() {
      return new t(this);
    };
  }, s = e + " Iterator", l = !1, c = r.prototype, u = c[Er] || c["@@iterator"] || n && c[n], f = !te && u || v(n), y = e == "Array" && c.entries || u, d, p, b;
  if (y && (d = hi(y.call(new r())), d !== Object.prototype && d.next && (hi(d) !== Oi && (mi ? mi(d, Oi) : kO(d[Er]) || xt(d, Er, XO)), VO(d, s, !0))), qO && n == Tr && u && u.name !== Tr && (zO ? WO(c, "name", Tr) : (l = !0, f = function() {
    return GO(u, this);
  })), n)
    if (p = {
      values: v(Tr),
      keys: o ? f : v(Si),
      entries: v(Ei)
    }, i)
      for (b in p)
        (te || l || !(b in c)) && xt(c, b, p[b]);
    else
      BO({ target: e, proto: !0, forced: te || l }, p);
  return c[Er] !== f && xt(c, Er, f, { name: n }), HO[e] = f, p;
}, QO = Fr, tn = Y1, Ti = Xa, Vc = Cc, ZO = rr.f, rS = JO, eS = M, Wc = "Array Iterator", tS = Vc.set, aS = Vc.getterFor(Wc), nS = rS(Array, "Array", function(r, e) {
  tS(this, {
    type: Wc,
    target: QO(r),
    // target
    index: 0,
    // next index
    kind: e
    // kind
  });
}, function() {
  var r = aS(this), e = r.target, t = r.kind, a = r.index++;
  return !e || a >= e.length ? (r.target = void 0, { value: void 0, done: !0 }) : t == "keys" ? { value: a, done: !1 } : t == "values" ? { value: e[a], done: !1 } : { value: [a, e[a]], done: !1 };
}, "values"), Ii = Ti.Arguments = Ti.Array;
tn("keys");
tn("values");
tn("entries");
if (eS && Ii.name !== "values")
  try {
    ZO(Ii, "name", { value: "values" });
  } catch {
  }
var oS = {
  CSSRuleList: 0,
  CSSStyleDeclaration: 0,
  CSSValueList: 0,
  ClientRectList: 0,
  DOMRectList: 0,
  DOMStringList: 0,
  DOMTokenList: 1,
  DataTransferItemList: 0,
  FileList: 0,
  HTMLAllCollection: 0,
  HTMLCollection: 0,
  HTMLFormElement: 0,
  HTMLSelectElement: 0,
  MediaList: 0,
  MimeTypeArray: 0,
  NamedNodeMap: 0,
  NodeList: 1,
  PaintRequestList: 0,
  Plugin: 0,
  PluginArray: 0,
  SVGLengthList: 0,
  SVGNumberList: 0,
  SVGPathSegList: 0,
  SVGPointList: 0,
  SVGStringList: 0,
  SVGTransformList: 0,
  SourceBufferList: 0,
  StyleSheetList: 0,
  TextTrackCueList: 0,
  TextTrackList: 0,
  TouchList: 0
}, iS = Ya, Nt = iS("span").classList, wi = Nt && Nt.constructor && Nt.constructor.prototype, vS = wi === Object.prototype ? void 0 : wi, Pi = h, Yc = oS, cS = vS, wr = nS, At = kr, Hc = gr, Dt = Hc("iterator"), Ri = Hc("toStringTag"), Lt = wr.values, qc = function(r, e) {
  if (r) {
    if (r[Dt] !== Lt)
      try {
        At(r, Dt, Lt);
      } catch {
        r[Dt] = Lt;
      }
    if (r[Ri] || At(r, Ri, e), Yc[e]) {
      for (var t in wr)
        if (r[t] !== wr[t])
          try {
            At(r, t, wr[t]);
          } catch {
            r[t] = wr[t];
          }
    }
  }
};
for (var Mt in Yc)
  qc(Pi[Mt] && Pi[Mt].prototype, Mt);
qc(cS, "DOMTokenList");
var Ci = M, lS = x, sS = Gr, uS = A, Ft = Ec, fS = en, $S = Za, dS = Wa, pS = cc, ir = Object.assign, ji = Object.defineProperty, yS = lS([].concat), gS = !ir || uS(function() {
  if (Ci && ir({ b: 1 }, ir(ji({}, "a", {
    enumerable: !0,
    get: function() {
      ji(this, "b", {
        value: 3,
        enumerable: !1
      });
    }
  }), { b: 2 })).b !== 1)
    return !0;
  var r = {}, e = {}, t = Symbol(), a = "abcdefghijklmnopqrst";
  return r[t] = 7, a.split("").forEach(function(n) {
    e[n] = n;
  }), ir({}, r)[t] != 7 || Ft(ir({}, e)).join("") != a;
}) ? function(e, t) {
  for (var a = dS(e), n = arguments.length, o = 1, i = fS.f, v = $S.f; n > o; )
    for (var s = pS(arguments[o++]), l = i ? yS(Ft(s), i(s)) : Ft(s), c = l.length, u = 0, f; c > u; )
      f = l[u++], (!Ci || sS(v, s, f)) && (a[f] = s[f]);
  return a;
} : ir, bS = Lc, _i = gS;
bS({ target: "Object", stat: !0, forced: Object.assign !== _i }, {
  assign: _i
});
function xi(r, e, t, a) {
  function n(o) {
    return o instanceof t ? o : new t(function(i) {
      i(o);
    });
  }
  return new (t || (t = Promise))(function(o, i) {
    function v(c) {
      try {
        l(a.next(c));
      } catch (u) {
        i(u);
      }
    }
    function s(c) {
      try {
        l(a.throw(c));
      } catch (u) {
        i(u);
      }
    }
    function l(c) {
      c.done ? o(c.value) : n(c.value).then(v, s);
    }
    l((a = a.apply(r, e || [])).next());
  });
}
const hS = {
  // eslint-disable-next-line @typescript-eslint/no-empty-function
  loaded: () => {
  },
  googleCheckContentLoaded: !0,
  googleCheckInterval: 3e3,
  queryParams: "",
  url: "",
  overrideLocalhost: "",
  googleMaxChecks: 5,
  viewer: "google",
  viewerUrl: "",
  style: {
    width: "100%",
    height: "100%"
  },
  className: ""
}, mS = (r) => {
  var e, t, a, n, o;
  const i = De(null), [v, s] = Ai({
    url: "",
    isSwitching: !1,
    externalViewer: !0,
    docHtml: {
      __html: ""
    }
  }), l = De(), c = De(), u = (d) => xi(void 0, void 0, void 0, function* () {
    if (c.current) {
      const p = i.current;
      l && l.current && l.current.unsubscribe(), c.current.viewer === "google" && c.current.googleCheckContentLoaded === !0 && f(p, d.url, c.current.googleCheckInterval, c.current.googleMaxChecks);
    }
  });
  sn(() => {
    let d;
    return v.isSwitching && (s((p) => Object.assign(Object.assign({}, p), {
      isSwitching: !1
    })), d = setTimeout(() => {
      u({
        url: v.url,
        externalViewer: v.externalViewer
      });
    }, 500)), () => {
      d && clearTimeout(d);
    };
  }, [v.isSwitching]), sn(() => {
    c.current = Object.assign(Object.assign({}, hS), r);
    let d = Uo(c.current.url, c.current.viewer, c.current.queryParams, c.current.viewerUrl);
    if (d.externalViewer && c.current.overrideLocalhost && Sb(c.current.url)) {
      const p = Ob(c.current.url, c.current.overrideLocalhost);
      d = Uo(p, c.current.viewer, c.current.queryParams, c.current.viewerUrl);
    }
    if (s({
      url: d.url,
      externalViewer: d.externalViewer,
      isSwitching: !1,
      docHtml: {
        __html: ""
      }
    }), i && i.current) {
      const p = i.current;
      p.src && p.src !== `${window.location.protocol}//${window.location.host}/` && p.src !== d.url ? s((b) => Object.assign(Object.assign({}, b), {
        isSwitching: !0
      })) : u(d);
    } else
      c.current.viewer === "mammoth" && xi(void 0, void 0, void 0, function* () {
        const b = {
          __html: yield bb(d.url)
        };
        s({
          url: "",
          docHtml: b,
          isSwitching: !1,
          externalViewer: !1
        });
      });
    return () => {
      l && l.current && l.current.unsubscribe();
    };
  }, [r]);
  const f = (d, p, b, g) => {
    l.current = hb(), l.current.subscribe(d, b, g);
  }, y = () => {
    c.current && i && i.current !== null && ac(i.current) && (c.current.loaded && c.current.loaded(), l.current && l.current.unsubscribe());
  };
  return v.isSwitching ? null : v.externalViewer ? w("iframe", {
    style: (e = c.current) === null || e === void 0 ? void 0 : e.style,
    className: (t = c.current) === null || t === void 0 ? void 0 : t.className,
    ref: i,
    onLoad: () => {
      y();
    },
    id: "iframe",
    title: "iframe",
    frameBorder: "0",
    src: v.url
  }) : ((a = c.current) === null || a === void 0 ? void 0 : a.viewer) !== "pdf" ? w("div", {
    dangerouslySetInnerHTML: v.docHtml
  }) : v.url ? w("object", Object.assign({
    data: v.url,
    style: (n = c.current) === null || n === void 0 ? void 0 : n.style,
    className: (o = c.current) === null || o === void 0 ? void 0 : o.className,
    type: "application/pdf",
    width: "100%",
    height: "100%"
  }, {
    children: ae("p", {
      children: ["Your browser does not support PDFs.", w("a", Object.assign({
        href: v.url
      }, {
        children: "Download the PDF"
      })), "."]
    })
  })) : null;
}, zc = (r) => ol`
    width: ${il(r.margin)};	
    height: ${vl(r.margin)};	
    margin: ${r.margin};	
    padding: ${r.padding};

    overflow: hidden;
    background: ${r.background};
    border: ${(e) => r.borderWidth ? r.borderWidth : "1px"} solid ${r.border};
    border-radius: calc(min(${r.radius}, 20px));
  `, OS = Ni.div`
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  ${(r) => r.$style && zc(r.$style)}
  ${(r) => r.$animationStyle}
`, SS = Ni.div`
  height: 100%;
  ${(r) => r.$style && zc(r.$style)}
`, ES = (r) => {
  const [e, t] = Ai(!1);
  return /* @__PURE__ */ w(SS, {
    $style: r.style,
    id: "fileViewer",
    onClick: (a) => t(!0),
    onMouseLeave: (a) => t(!1),
    children: /* @__PURE__ */ w(mS, {
      style: {
        pointerEvents: e ? "auto" : "none",
        width: "100%",
        height: "100%"
      },
      url: r.src,
      viewer: "url"
    })
  });
};
let ga = function() {
  const r = {
    src: Xc,
    autoHeight: on(cl, "auto"),
    showVerticalScrollbar: on(ll, !1),
    style: vn(Jc, "style"),
    animationStyle: vn(Qc, "animationStyle")
  };
  return new Zc(r, (e) => rl.isEmpty(e.src) ? /* @__PURE__ */ w(OS, {
    $style: e.style,
    $animationStyle: e.animationStyle,
    children: Ir("fileViewer.invalidURL")
  }) : /* @__PURE__ */ w(ES, {
    src: e.src,
    style: e.style,
    animationStyle: e.animationStyle,
    showVerticalScrollbar: e.showVerticalScrollbar
  })).setPropertyViewFn((e) => /* @__PURE__ */ ae(cn, {
    children: [/* @__PURE__ */ w(hr, {
      name: mr.basic,
      children: e.src.propertyView({
        label: Ir("fileViewer.src"),
        tooltip: /* @__PURE__ */ w("span", {
          children: Ir("fileViewer.srcTooltip")
        })
      })
    }), ["logic", "both"].includes(un(ln).editorModeStatus) && /* @__PURE__ */ w(hr, {
      name: mr.interaction,
      children: el(e)
    }), /* @__PURE__ */ ae(hr, {
      name: mr.layout,
      children: [e.autoHeight.getPropertyView(), !e.autoHeight.getView() && e.showVerticalScrollbar.propertyView({
        label: Ir("prop.showVerticalScrollbar")
      })]
    }), ["layout", "both"].includes(un(ln).editorModeStatus) && /* @__PURE__ */ ae(cn, {
      children: [/* @__PURE__ */ w(hr, {
        name: mr.style,
        children: e.style.getPropertyView()
      }), /* @__PURE__ */ w(hr, {
        name: mr.animationStyle,
        hasTooltip: !0,
        children: e.animationStyle.getPropertyView()
      })]
    })]
  })).build();
}();
ga = class extends ga {
  autoHeight() {
    return this.children.autoHeight.getView();
  }
};
const PS = tl(ga, [new al("src", Ir("fileViewer.srcDesc")), nl]);
export {
  PS as FileViewerComp
};
