@spscommerce/max 0.10.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -416,7 +416,7 @@ function Ev() {
416
416
  __self: !0,
417
417
  __source: !0
418
418
  }, G0, W0;
419
- function f0($) {
419
+ function M0($) {
420
420
  if (C0.call($, "ref")) {
421
421
  var v0 = Object.getOwnPropertyDescriptor($, "ref").get;
422
422
  if (v0 && v0.isReactWarning)
@@ -489,7 +489,7 @@ function Ev() {
489
489
  function K1($, v0, B0, Y0, h1) {
490
490
  {
491
491
  var O1, A1 = {}, M1 = null, l2 = null;
492
- B0 !== void 0 && (o0(B0), M1 = "" + B0), V0(v0) && (o0(v0.key), M1 = "" + v0.key), f0(v0) && (l2 = v0.ref, n1(v0, h1));
492
+ B0 !== void 0 && (o0(B0), M1 = "" + B0), V0(v0) && (o0(v0.key), M1 = "" + v0.key), M0(v0) && (l2 = v0.ref, n1(v0, h1));
493
493
  for (O1 in v0)
494
494
  C0.call(v0, O1) && !H0.hasOwnProperty(O1) && (A1[O1] = v0[O1]);
495
495
  if ($ && $.defaultProps) {
@@ -8110,7 +8110,7 @@ const Uf = i0.createContext({
8110
8110
  token: null,
8111
8111
  env: "",
8112
8112
  currentApp: null
8113
- }), is = () => i0.useContext(Uf), U2 = {
8113
+ }), is = () => i0.useContext(Uf), T2 = {
8114
8114
  debug: (...e) => {
8115
8115
  },
8116
8116
  info: (...e) => {
@@ -8195,7 +8195,7 @@ function QS(e, t, o = {}) {
8195
8195
  const D0 = await e.fetchUsageStatus(H.acting_entity.org_user_id);
8196
8196
  return w(D0.status), D0.status;
8197
8197
  } catch (D0) {
8198
- U2.error(D0);
8198
+ T2.error(D0);
8199
8199
  }
8200
8200
  }, [H, e, w, g0]), u0 = h.useCallback(
8201
8201
  async (I0, D0, N0) => {
@@ -8207,8 +8207,8 @@ function QS(e, t, o = {}) {
8207
8207
  return !1;
8208
8208
  W(!0), G(), s(!1), O([]);
8209
8209
  const m0 = D();
8210
- u((f0) => [
8211
- ...f0,
8210
+ u((M0) => [
8211
+ ...M0,
8212
8212
  {
8213
8213
  role: "user",
8214
8214
  content: j(I0),
@@ -8227,8 +8227,8 @@ function QS(e, t, o = {}) {
8227
8227
  D0,
8228
8228
  W0
8229
8229
  ), await X();
8230
- } catch (f0) {
8231
- U2.error(f0), U(), s(!0);
8230
+ } catch (M0) {
8231
+ T2.error(M0), U(), s(!0);
8232
8232
  }
8233
8233
  return !0;
8234
8234
  }
@@ -8265,7 +8265,7 @@ function QS(e, t, o = {}) {
8265
8265
  try {
8266
8266
  await u0(B, !1);
8267
8267
  } catch (I0) {
8268
- U2.error(I0);
8268
+ T2.error(I0);
8269
8269
  }
8270
8270
  }, [u0, B]), L0 = h.useCallback(
8271
8271
  async (I0, D0) => {
@@ -8290,7 +8290,7 @@ function QS(e, t, o = {}) {
8290
8290
  }), D0 = s0(I0.results), N0 = h0(D0);
8291
8291
  u((o0) => [...N0, ...o0]), T(I0.next);
8292
8292
  } catch (I0) {
8293
- U2.error("Error loading older messages:", I0);
8293
+ T2.error("Error loading older messages:", I0);
8294
8294
  } finally {
8295
8295
  z(!1);
8296
8296
  }
@@ -8301,7 +8301,7 @@ function QS(e, t, o = {}) {
8301
8301
  if (N)
8302
8302
  return (await e.fetchConversationMessages(N)).results.find((N0) => N0.id === I0);
8303
8303
  } catch (D0) {
8304
- U2.error("Error fetching message", D0);
8304
+ T2.error("Error fetching message", D0);
8305
8305
  return;
8306
8306
  }
8307
8307
  },
@@ -8321,7 +8321,7 @@ function QS(e, t, o = {}) {
8321
8321
  try {
8322
8322
  await e.postFeedback(I0, D0, N0);
8323
8323
  } catch (o0) {
8324
- U2.error(o0);
8324
+ T2.error(o0);
8325
8325
  }
8326
8326
  },
8327
8327
  [e]
@@ -8842,14 +8842,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", xq
8842
8842
  hasStandardBrowserWebWorkerEnv: Nq,
8843
8843
  navigator: m3,
8844
8844
  origin: xq
8845
- }, Symbol.toStringTag, { value: "Module" })), I2 = {
8845
+ }, Symbol.toStringTag, { value: "Module" })), N2 = {
8846
8846
  ...Dq,
8847
8847
  ...Tq
8848
8848
  };
8849
8849
  function Pq(e, t) {
8850
- return Cc(e, new I2.classes.URLSearchParams(), {
8850
+ return Cc(e, new N2.classes.URLSearchParams(), {
8851
8851
  visitor: function(o, n, s, a) {
8852
- return I2.isNode && b0.isBuffer(o) ? (this.append(n, o.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
8852
+ return N2.isNode && b0.isBuffer(o) ? (this.append(n, o.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
8853
8853
  },
8854
8854
  ...t
8855
8855
  });
@@ -8944,8 +8944,8 @@ const Ha = {
8944
8944
  maxContentLength: -1,
8945
8945
  maxBodyLength: -1,
8946
8946
  env: {
8947
- FormData: I2.classes.FormData,
8948
- Blob: I2.classes.Blob
8947
+ FormData: N2.classes.FormData,
8948
+ Blob: N2.classes.Blob
8949
8949
  },
8950
8950
  validateStatus: function(t) {
8951
8951
  return t >= 200 && t < 300;
@@ -9245,10 +9245,10 @@ const Wi = (e, t, o = 3) => {
9245
9245
  total: e,
9246
9246
  loaded: n
9247
9247
  }), t[1]];
9248
- }, vb = (e) => (...t) => b0.asap(() => e(...t)), $q = I2.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (o) => (o = new URL(o, I2.origin), e.protocol === o.protocol && e.host === o.host && (t || e.port === o.port)))(
9249
- new URL(I2.origin),
9250
- I2.navigator && /(msie|trident)/i.test(I2.navigator.userAgent)
9251
- ) : () => !0, ey = I2.hasStandardBrowserEnv ? (
9248
+ }, vb = (e) => (...t) => b0.asap(() => e(...t)), $q = N2.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (o) => (o = new URL(o, N2.origin), e.protocol === o.protocol && e.host === o.host && (t || e.port === o.port)))(
9249
+ new URL(N2.origin),
9250
+ N2.navigator && /(msie|trident)/i.test(N2.navigator.userAgent)
9251
+ ) : () => !0, ey = N2.hasStandardBrowserEnv ? (
9252
9252
  // Standard browser envs support document.cookie
9253
9253
  {
9254
9254
  write(e, t, o, n, s, a) {
@@ -9357,7 +9357,7 @@ const p_ = (e) => {
9357
9357
  "Authorization",
9358
9358
  "Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
9359
9359
  ), b0.isFormData(o)) {
9360
- if (I2.hasStandardBrowserEnv || I2.hasStandardBrowserWebWorkerEnv)
9360
+ if (N2.hasStandardBrowserEnv || N2.hasStandardBrowserWebWorkerEnv)
9361
9361
  r.setContentType(void 0);
9362
9362
  else if (b0.isFunction(o.getHeaders)) {
9363
9363
  const c = o.getHeaders(), l = ["content-type", "content-length"];
@@ -9366,7 +9366,7 @@ const p_ = (e) => {
9366
9366
  });
9367
9367
  }
9368
9368
  }
9369
- if (I2.hasStandardBrowserEnv && (n && b0.isFunction(n) && (n = n(t)), n || n !== !1 && $q(t.url))) {
9369
+ if (N2.hasStandardBrowserEnv && (n && b0.isFunction(n) && (n = n(t)), n || n !== !1 && $q(t.url))) {
9370
9370
  const c = s && a && ey.read(a);
9371
9371
  c && r.set(s, c);
9372
9372
  }
@@ -9423,7 +9423,7 @@ const p_ = (e) => {
9423
9423
  O && (n(!E || E.type ? new ls(null, e, O) : E), O.abort(), O = null);
9424
9424
  }, s.cancelToken && s.cancelToken.subscribe(p), s.signal && (s.signal.aborted ? p() : s.signal.addEventListener("abort", p)));
9425
9425
  const C = Xq(s.url);
9426
- if (C && I2.protocols.indexOf(C) === -1) {
9426
+ if (C && N2.protocols.indexOf(C) === -1) {
9427
9427
  n(new p1("Unsupported protocol " + C + ":", p1.ERR_BAD_REQUEST, e));
9428
9428
  return;
9429
9429
  }
@@ -9530,7 +9530,7 @@ const p_ = (e) => {
9530
9530
  return !1;
9531
9531
  const i = s && Lr(qb), c = s && (typeof yb == "function" ? /* @__PURE__ */ ((f) => (A) => f.encode(A))(new yb()) : async (f) => new Uint8Array(await new o(f).arrayBuffer())), l = a && i && Rb(() => {
9532
9532
  let f = !1;
9533
- const A = new o(I2.origin, {
9533
+ const A = new o(N2.origin, {
9534
9534
  body: new qb(),
9535
9535
  method: "POST",
9536
9536
  get duplex() {
@@ -9555,7 +9555,7 @@ const p_ = (e) => {
9555
9555
  if (b0.isBlob(f))
9556
9556
  return f.size;
9557
9557
  if (b0.isSpecCompliantForm(f))
9558
- return (await new o(I2.origin, {
9558
+ return (await new o(N2.origin, {
9559
9559
  method: "POST",
9560
9560
  body: f
9561
9561
  }).arrayBuffer()).byteLength;
@@ -10111,7 +10111,7 @@ class _y {
10111
10111
  constructor(t, o) {
10112
10112
  this.environment = t, this.token = o || "", this.environment === "local" ? (this.url = "https://localhost:8000", this.urlWs = "wss://localhost:8000/v1/messages") : this.environment === "prod" ? (this.url = "https://api.spscommerce.com/max", this.urlWs = "wss://api.spscommerce.com/max/v1/messages") : (this.url = "https://integration.api.spscommerce.com/max", this.urlWs = "wss://integration.api.spscommerce.com/max/v1/messages"), this.axios = u2.create({
10113
10113
  baseURL: this.url
10114
- }), this.axios.interceptors.request.use((n) => (this.token && (n.headers.Authorization = `Bearer ${this.token}`), n)), U2.debug(`env=${this.environment} url=${this.url}`), U2.debug("AgentApiService initialized", {
10114
+ }), this.axios.interceptors.request.use((n) => (this.token && (n.headers.Authorization = `Bearer ${this.token}`), n)), T2.debug(`env=${this.environment} url=${this.url}`), T2.debug("AgentApiService initialized", {
10115
10115
  environment: this.environment,
10116
10116
  url: this.url,
10117
10117
  urlWs: this.urlWs,
@@ -10202,12 +10202,12 @@ class _y {
10202
10202
  document.dispatchEvent(A), u.close(), c(0);
10203
10203
  }
10204
10204
  } catch (f) {
10205
- u.close(), U2.error("Error parsing JSON data:", f);
10205
+ u.close(), T2.error("Error parsing JSON data:", f);
10206
10206
  }
10207
10207
  }, u.onerror = (M) => {
10208
- u.close(), U2.error("WebSocket error observed:", M), l();
10208
+ u.close(), T2.error("WebSocket error observed:", M), l();
10209
10209
  }, u.onclose = (M) => {
10210
- U2.debug(`WebSocket is closed now. Code: ${M.code}, Reason: ${M.reason}`);
10210
+ T2.debug(`WebSocket is closed now. Code: ${M.code}, Reason: ${M.reason}`);
10211
10211
  };
10212
10212
  });
10213
10213
  }
@@ -10629,7 +10629,7 @@ function Fy(e, t, o) {
10629
10629
  function Rc(e) {
10630
10630
  return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
10631
10631
  }
10632
- var x2 = 0, Ct = 1, je = 2, _2 = 3, qe = 4, kt = 5, Wo = 6, Qy = 7, Hy = 8;
10632
+ var D2 = 0, Ct = 1, je = 2, _2 = 3, qe = 4, kt = 5, Wo = 6, Qy = 7, Hy = 8;
10633
10633
  J0("Y", 0, 0, function() {
10634
10634
  var e = this.year();
10635
10635
  return e <= 9999 ? Ge(e, 4) : "+" + e;
@@ -10645,15 +10645,15 @@ F0("YY", e2, pe);
10645
10645
  F0("YYYY", od, td);
10646
10646
  F0("YYYYY", Sc, Ec);
10647
10647
  F0("YYYYYY", Sc, Ec);
10648
- H1(["YYYYY", "YYYYYY"], x2);
10648
+ H1(["YYYYY", "YYYYYY"], D2);
10649
10649
  H1("YYYY", function(e, t) {
10650
- t[x2] = e.length === 2 ? x0.parseTwoDigitYear(e) : m1(e);
10650
+ t[D2] = e.length === 2 ? x0.parseTwoDigitYear(e) : m1(e);
10651
10651
  });
10652
10652
  H1("YY", function(e, t) {
10653
- t[x2] = x0.parseTwoDigitYear(e);
10653
+ t[D2] = x0.parseTwoDigitYear(e);
10654
10654
  });
10655
10655
  H1("Y", function(e, t) {
10656
- t[x2] = parseInt(e, 10);
10656
+ t[D2] = parseInt(e, 10);
10657
10657
  });
10658
10658
  function oa(e) {
10659
10659
  return Rc(e) ? 366 : 365;
@@ -11240,7 +11240,7 @@ function xR() {
11240
11240
  }
11241
11241
  function ld(e) {
11242
11242
  var t, o = e._a;
11243
- return o && b1(e).overflow === -2 && (t = o[Ct] < 0 || o[Ct] > 11 ? Ct : o[je] < 1 || o[je] > sd(o[x2], o[Ct]) ? je : o[_2] < 0 || o[_2] > 24 || o[_2] === 24 && (o[qe] !== 0 || o[kt] !== 0 || o[Wo] !== 0) ? _2 : o[qe] < 0 || o[qe] > 59 ? qe : o[kt] < 0 || o[kt] > 59 ? kt : o[Wo] < 0 || o[Wo] > 999 ? Wo : -1, b1(e)._overflowDayOfYear && (t < x2 || t > je) && (t = je), b1(e)._overflowWeeks && t === -1 && (t = Qy), b1(e)._overflowWeekday && t === -1 && (t = Hy), b1(e).overflow = t), e;
11243
+ return o && b1(e).overflow === -2 && (t = o[Ct] < 0 || o[Ct] > 11 ? Ct : o[je] < 1 || o[je] > sd(o[D2], o[Ct]) ? je : o[_2] < 0 || o[_2] > 24 || o[_2] === 24 && (o[qe] !== 0 || o[kt] !== 0 || o[Wo] !== 0) ? _2 : o[qe] < 0 || o[qe] > 59 ? qe : o[kt] < 0 || o[kt] > 59 ? kt : o[Wo] < 0 || o[Wo] > 999 ? Wo : -1, b1(e)._overflowDayOfYear && (t < D2 || t > je) && (t = je), b1(e)._overflowWeeks && t === -1 && (t = Qy), b1(e)._overflowWeekday && t === -1 && (t = Hy), b1(e).overflow = t), e;
11244
11244
  }
11245
11245
  var DR = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, PR = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, FR = /Z|[+-]\d\d(?::?\d\d)?/, Ir = [
11246
11246
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -11405,7 +11405,7 @@ function ZR(e) {
11405
11405
  function pd(e) {
11406
11406
  var t, o, n = [], s, a, r;
11407
11407
  if (!e._d) {
11408
- for (s = ZR(e), e._w && e._a[je] == null && e._a[Ct] == null && JR(e), e._dayOfYear != null && (r = wn(e._a[x2], s[x2]), (e._dayOfYear > oa(r) || e._dayOfYear === 0) && (b1(e)._overflowDayOfYear = !0), o = ma(r, 0, e._dayOfYear), e._a[Ct] = o.getUTCMonth(), e._a[je] = o.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
11408
+ for (s = ZR(e), e._w && e._a[je] == null && e._a[Ct] == null && JR(e), e._dayOfYear != null && (r = wn(e._a[D2], s[D2]), (e._dayOfYear > oa(r) || e._dayOfYear === 0) && (b1(e)._overflowDayOfYear = !0), o = ma(r, 0, e._dayOfYear), e._a[Ct] = o.getUTCMonth(), e._a[je] = o.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
11409
11409
  e._a[t] = n[t] = s[t];
11410
11410
  for (; t < 7; t++)
11411
11411
  e._a[t] = n[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
@@ -11419,9 +11419,9 @@ function JR(e) {
11419
11419
  var t, o, n, s, a, r, i, c, l;
11420
11420
  t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, r = 4, o = wn(
11421
11421
  t.GG,
11422
- e._a[x2],
11422
+ e._a[D2],
11423
11423
  Oa($1(), 1, 4).year
11424
- ), n = wn(t.W, 1), s = wn(t.E, 1), (s < 1 || s > 7) && (c = !0)) : (a = e._locale._week.dow, r = e._locale._week.doy, l = Oa($1(), a, r), o = wn(t.gg, e._a[x2], l.year), n = wn(t.w, l.week), t.d != null ? (s = t.d, (s < 0 || s > 6) && (c = !0)) : t.e != null ? (s = t.e + a, (t.e < 0 || t.e > 6) && (c = !0)) : s = a), n < 1 || n > yt(o, a, r) ? b1(e)._overflowWeeks = !0 : c != null ? b1(e)._overflowWeekday = !0 : (i = B_(o, n, s, a, r), e._a[x2] = i.year, e._dayOfYear = i.dayOfYear);
11424
+ ), n = wn(t.W, 1), s = wn(t.E, 1), (s < 1 || s > 7) && (c = !0)) : (a = e._locale._week.dow, r = e._locale._week.doy, l = Oa($1(), a, r), o = wn(t.gg, e._a[D2], l.year), n = wn(t.w, l.week), t.d != null ? (s = t.d, (s < 0 || s > 6) && (c = !0)) : t.e != null ? (s = t.e + a, (t.e < 0 || t.e > 6) && (c = !0)) : s = a), n < 1 || n > yt(o, a, r) ? b1(e)._overflowWeeks = !0 : c != null ? b1(e)._overflowWeekday = !0 : (i = B_(o, n, s, a, r), e._a[D2] = i.year, e._dayOfYear = i.dayOfYear);
11425
11425
  }
11426
11426
  x0.ISO_8601 = function() {
11427
11427
  };
@@ -11446,7 +11446,7 @@ function dd(e) {
11446
11446
  e._locale,
11447
11447
  e._a[_2],
11448
11448
  e._meridiem
11449
- ), l = b1(e).era, l !== null && (e._a[x2] = e._locale.erasConvertYear(l, e._a[x2])), pd(e), ld(e);
11449
+ ), l = b1(e).era, l !== null && (e._a[D2] = e._locale.erasConvertYear(l, e._a[D2])), pd(e), ld(e);
11450
11450
  }
11451
11451
  function $R(e, t, o) {
11452
11452
  var n;
@@ -12097,10 +12097,10 @@ F0("yy", ps);
12097
12097
  F0("yyy", ps);
12098
12098
  F0("yyyy", ps);
12099
12099
  F0("yo", OW);
12100
- H1(["y", "yy", "yyy", "yyyy"], x2);
12100
+ H1(["y", "yy", "yyy", "yyyy"], D2);
12101
12101
  H1(["yo"], function(e, t, o, n) {
12102
12102
  var s;
12103
- o._locale._eraYearOrdinalRegex && (s = e.match(o._locale._eraYearOrdinalRegex)), o._locale.eraYearOrdinalParse ? t[x2] = o._locale.eraYearOrdinalParse(e, s) : t[x2] = parseInt(e, 10);
12103
+ o._locale._eraYearOrdinalRegex && (s = e.match(o._locale._eraYearOrdinalRegex)), o._locale.eraYearOrdinalParse ? t[D2] = o._locale.eraYearOrdinalParse(e, s) : t[D2] = parseInt(e, 10);
12104
12104
  });
12105
12105
  function lW(e, t) {
12106
12106
  var o, n, s, a = this._eras || Wt("en")._eras;
@@ -17156,11 +17156,11 @@ const Ja = h.forwardRef((e, t) => {
17156
17156
  r && "sps-option-list__options--tall"
17157
17157
  ), W0 = h.useCallback(() => {
17158
17158
  z0 || (d0(!0), T0.current && T0.current.focus(), k0(-1), Q && Q(!0));
17159
- }, [z0, Q]), f0 = h.useCallback(() => {
17159
+ }, [z0, Q]), M0 = h.useCallback(() => {
17160
17160
  z0 && (d0(!1), k0(-1), Q && Q(!1));
17161
17161
  }, [z0, Q]), V0 = h.useCallback((Q0, X0) => {
17162
- X0 || Q0 && !Q0.disabled && (typeof Q0.value == "function" ? (Q0.value(), A && A()) : typeof q == "function" && q(Q0.value), T || f0());
17163
- }, [q, f0]), n1 = h.useCallback(
17162
+ X0 || Q0 && !Q0.disabled && (typeof Q0.value == "function" ? (Q0.value(), A && A()) : typeof q == "function" && q(Q0.value), T || M0());
17163
+ }, [q, M0]), n1 = h.useCallback(
17164
17164
  (Q0, X0, B1) => {
17165
17165
  Q0.stopPropagation(), V0(X0, B1);
17166
17166
  },
@@ -17171,7 +17171,7 @@ const Ja = h.forwardRef((e, t) => {
17171
17171
  switch (Q0.key) {
17172
17172
  case "Tab":
17173
17173
  case "Escape":
17174
- f0();
17174
+ M0();
17175
17175
  break;
17176
17176
  case "Enter":
17177
17177
  if (l0 > -1) {
@@ -17198,7 +17198,7 @@ const Ja = h.forwardRef((e, t) => {
17198
17198
  W0();
17199
17199
  }
17200
17200
  }, [
17201
- f0,
17201
+ M0,
17202
17202
  W0,
17203
17203
  l0,
17204
17204
  V0,
@@ -17218,7 +17218,7 @@ const Ja = h.forwardRef((e, t) => {
17218
17218
  }, [o0]), K1 = h.useCallback((Q0) => {
17219
17219
  Q0 && (ZI.includes(Q0.key) ? z1(Q0) : nA.includes(Q0.key) && !p && d1(Q0));
17220
17220
  }, [
17221
- f0,
17221
+ M0,
17222
17222
  W0,
17223
17223
  l0,
17224
17224
  V0,
@@ -20705,7 +20705,7 @@ var oD = function(e) {
20705
20705
  impact: g,
20706
20706
  scrollJumpRequest: O
20707
20707
  };
20708
- }, Q2 = function(e) {
20708
+ }, H2 = function(e) {
20709
20709
  var t = e.subject.active;
20710
20710
  return t || (process.env.NODE_ENV !== "production" ? n0(!1, "Cannot get clipped area from droppable") : n0()), t;
20711
20711
  }, aD = function(e) {
@@ -20719,32 +20719,32 @@ var oD = function(e) {
20719
20719
  }).filter(function(d) {
20720
20720
  return !!d.subject.active;
20721
20721
  }).filter(function(d) {
20722
- return qA(a.frame)(Q2(d));
20722
+ return qA(a.frame)(H2(d));
20723
20723
  }).filter(function(d) {
20724
- var u = Q2(d);
20724
+ var u = H2(d);
20725
20725
  return t ? r[i.crossAxisEnd] < u[i.crossAxisEnd] : u[i.crossAxisStart] < r[i.crossAxisStart];
20726
20726
  }).filter(function(d) {
20727
- var u = Q2(d), M = ge(u[i.start], u[i.end]);
20727
+ var u = H2(d), M = ge(u[i.start], u[i.end]);
20728
20728
  return c(u[i.start]) || c(u[i.end]) || M(r[i.start]) || M(r[i.end]);
20729
20729
  }).sort(function(d, u) {
20730
- var M = Q2(d)[i.crossAxisStart], f = Q2(u)[i.crossAxisStart];
20730
+ var M = H2(d)[i.crossAxisStart], f = H2(u)[i.crossAxisStart];
20731
20731
  return t ? M - f : f - M;
20732
20732
  }).filter(function(d, u, M) {
20733
- return Q2(d)[i.crossAxisStart] === Q2(M[0])[i.crossAxisStart];
20733
+ return H2(d)[i.crossAxisStart] === H2(M[0])[i.crossAxisStart];
20734
20734
  });
20735
20735
  if (!l.length)
20736
20736
  return null;
20737
20737
  if (l.length === 1)
20738
20738
  return l[0];
20739
20739
  var p = l.filter(function(d) {
20740
- var u = ge(Q2(d)[i.start], Q2(d)[i.end]);
20740
+ var u = ge(H2(d)[i.start], H2(d)[i.end]);
20741
20741
  return u(o[i.line]);
20742
20742
  });
20743
20743
  return p.length === 1 ? p[0] : p.length > 1 ? p.sort(function(d, u) {
20744
- return Q2(d)[i.start] - Q2(u)[i.start];
20744
+ return H2(d)[i.start] - H2(u)[i.start];
20745
20745
  })[0] : l.sort(function(d, u) {
20746
- var M = tM(o, oM(Q2(d))), f = tM(o, oM(Q2(u)));
20747
- return M !== f ? M - f : Q2(d)[i.start] - Q2(u)[i.start];
20746
+ var M = tM(o, oM(H2(d))), f = tM(o, oM(H2(u)));
20747
+ return M !== f ? M - f : H2(d)[i.start] - H2(u)[i.start];
20748
20748
  })[0];
20749
20749
  }, iM = function(e, t) {
20750
20750
  var o = e.page.borderBox.center;
@@ -26361,7 +26361,7 @@ function qM(e) {
26361
26361
  );
26362
26362
  return h.useEffect(() => o(A0.toMoment(e)), [e]), t;
26363
26363
  }
26364
- const yM = h2 || _d, H2 = "sps-datepicker__calendar";
26364
+ const yM = h2 || _d, V2 = "sps-datepicker__calendar";
26365
26365
  function Ds({
26366
26366
  maxDate: e,
26367
26367
  selectedDate: t,
@@ -26439,18 +26439,18 @@ function Kc(e) {
26439
26439
  A(A0.nextMonth({ ...f, date: 15 })), p && g(A0.nextMonth({ ...O, date: 15 }));
26440
26440
  }
26441
26441
  function B(v) {
26442
- v.target && v.target.classList.contains(`${H2}-day`) ? p && v.target.classList.contains(`${O.month}`) ? z({
26442
+ v.target && v.target.classList.contains(`${V2}-day`) ? p && v.target.classList.contains(`${O.month}`) ? z({
26443
26443
  ...O,
26444
26444
  date: Number(v.target.textContent)
26445
26445
  }) : z({
26446
26446
  ...f,
26447
26447
  date: Number(v.target.textContent)
26448
- }) : (!v.target || !v.target.classList.contains(`${H2}-row`)) && z(void 0);
26448
+ }) : (!v.target || !v.target.classList.contains(`${V2}-row`)) && z(void 0);
26449
26449
  }
26450
26450
  function Q(v, H = !1) {
26451
- const x = `${H2}-day`;
26451
+ const x = `${V2}-day`;
26452
26452
  return c0(
26453
- `${H2}-cell`,
26453
+ `${V2}-cell`,
26454
26454
  v && f && v.month === f.month && !H && x,
26455
26455
  p && v.month === O.month && H && x,
26456
26456
  A0.isSameDate(C, v) && `${x}--current-day`,
@@ -26484,10 +26484,10 @@ function Kc(e) {
26484
26484
  v && f && v.month === f.month && A0.isInRange(v, [a, s]) !== !1 && r(v), v && p && O && v.month === O.month && A0.isInRange(v, [a, s]) !== !1 && r(v);
26485
26485
  }
26486
26486
  const I = c0(
26487
- H2,
26487
+ V2,
26488
26488
  o
26489
26489
  );
26490
- return f ? /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("div", { "data-testid": `${d}`, className: I, ...u, onMouseOver: B }, /* @__PURE__ */ h.createElement("div", { className: `${H2}-head` }, /* @__PURE__ */ h.createElement(
26490
+ return f ? /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("div", { "data-testid": `${d}`, className: I, ...u, onMouseOver: B }, /* @__PURE__ */ h.createElement("div", { className: `${V2}-head` }, /* @__PURE__ */ h.createElement(
26491
26491
  "button",
26492
26492
  {
26493
26493
  "data-testid": `${d}_prev_month`,
@@ -26499,7 +26499,7 @@ function Kc(e) {
26499
26499
  onClick: N
26500
26500
  },
26501
26501
  /* @__PURE__ */ h.createElement("i", { className: "sps-icon sps-icon-chevron-left" })
26502
- ), /* @__PURE__ */ h.createElement("span", { className: `${H2}-head-label` }, /* @__PURE__ */ h.createElement("span", { className: `${H2}-head-label-month` }, E ? E.format("MMMM") : ""), /* @__PURE__ */ h.createElement("span", { className: `${H2}-head-label-year` }, f.year)), !p && /* @__PURE__ */ h.createElement(
26502
+ ), /* @__PURE__ */ h.createElement("span", { className: `${V2}-head-label` }, /* @__PURE__ */ h.createElement("span", { className: `${V2}-head-label-month` }, E ? E.format("MMMM") : ""), /* @__PURE__ */ h.createElement("span", { className: `${V2}-head-label-year` }, f.year)), !p && /* @__PURE__ */ h.createElement(
26503
26503
  "button",
26504
26504
  {
26505
26505
  type: "button",
@@ -26511,7 +26511,7 @@ function Kc(e) {
26511
26511
  onClick: q
26512
26512
  },
26513
26513
  /* @__PURE__ */ h.createElement("i", { className: "sps-icon sps-icon-chevron-right" })
26514
- )), /* @__PURE__ */ h.createElement("div", { className: `${H2}-body` }, /* @__PURE__ */ h.createElement("div", { className: "sps-datepicker__calendar-row" }, yM.weekdaysShort().map((v) => /* @__PURE__ */ h.createElement("div", { key: v, className: "sps-datepicker__calendar-header-cell" }, v))), W.map((v, H) => /* @__PURE__ */ h.createElement("div", { key: H, className: "sps-datepicker__calendar-row" }, v.map((x, Y) => /* @__PURE__ */ h.createElement(
26514
+ )), /* @__PURE__ */ h.createElement("div", { className: `${V2}-body` }, /* @__PURE__ */ h.createElement("div", { className: "sps-datepicker__calendar-row" }, yM.weekdaysShort().map((v) => /* @__PURE__ */ h.createElement("div", { key: v, className: "sps-datepicker__calendar-header-cell" }, v))), W.map((v, H) => /* @__PURE__ */ h.createElement("div", { key: H, className: "sps-datepicker__calendar-row" }, v.map((x, Y) => /* @__PURE__ */ h.createElement(
26515
26515
  "div",
26516
26516
  {
26517
26517
  key: Y,
@@ -26520,7 +26520,7 @@ function Kc(e) {
26520
26520
  "data-testid": `${d}_${A0.toString(x)}`
26521
26521
  },
26522
26522
  x ? x.date : ""
26523
- )))))), p && /* @__PURE__ */ h.createElement("div", { "data-testid": `${d}`, className: I, ...u, onMouseOver: B }, /* @__PURE__ */ h.createElement("div", { className: `${H2}-head` }, /* @__PURE__ */ h.createElement("span", { className: `${H2}-head-label` }, /* @__PURE__ */ h.createElement("span", { className: `${H2}-head-label-month` }, L ? L.format("MMMM") : ""), /* @__PURE__ */ h.createElement("span", { className: `${H2}-head-label-year` }, O.year)), /* @__PURE__ */ h.createElement(
26523
+ )))))), p && /* @__PURE__ */ h.createElement("div", { "data-testid": `${d}`, className: I, ...u, onMouseOver: B }, /* @__PURE__ */ h.createElement("div", { className: `${V2}-head` }, /* @__PURE__ */ h.createElement("span", { className: `${V2}-head-label` }, /* @__PURE__ */ h.createElement("span", { className: `${V2}-head-label-month` }, L ? L.format("MMMM") : ""), /* @__PURE__ */ h.createElement("span", { className: `${V2}-head-label-year` }, O.year)), /* @__PURE__ */ h.createElement(
26524
26524
  "button",
26525
26525
  {
26526
26526
  type: "button",
@@ -26532,7 +26532,7 @@ function Kc(e) {
26532
26532
  onClick: q
26533
26533
  },
26534
26534
  /* @__PURE__ */ h.createElement("i", { className: "sps-icon sps-icon-chevron-right" })
26535
- )), /* @__PURE__ */ h.createElement("div", { className: `${H2}-body` }, /* @__PURE__ */ h.createElement("div", { className: "sps-datepicker__calendar-row" }, yM.weekdaysShort().map((v) => /* @__PURE__ */ h.createElement("div", { key: v, className: "sps-datepicker__calendar-header-cell" }, v))), T.map((v, H) => /* @__PURE__ */ h.createElement("div", { key: H, className: "sps-datepicker__calendar-row" }, v.map((x, Y) => /* @__PURE__ */ h.createElement(
26535
+ )), /* @__PURE__ */ h.createElement("div", { className: `${V2}-body` }, /* @__PURE__ */ h.createElement("div", { className: "sps-datepicker__calendar-row" }, yM.weekdaysShort().map((v) => /* @__PURE__ */ h.createElement("div", { key: v, className: "sps-datepicker__calendar-header-cell" }, v))), T.map((v, H) => /* @__PURE__ */ h.createElement("div", { key: H, className: "sps-datepicker__calendar-row" }, v.map((x, Y) => /* @__PURE__ */ h.createElement(
26536
26536
  "div",
26537
26537
  {
26538
26538
  key: Y,
@@ -27939,15 +27939,15 @@ function kH({
27939
27939
  h.useEffect(() => {
27940
27940
  j(xM(i, A) || null);
27941
27941
  }, [A]);
27942
- function z0(f0) {
27943
- o && (o.setValue(f0), o.markAsDirty()), r && r(f0);
27942
+ function z0(M0) {
27943
+ o && (o.setValue(M0), o.markAsDirty()), r && r(M0);
27944
27944
  }
27945
- function d0(f0) {
27946
- return f0 && (/^datepicker\./.test(f0.label) ? g(f0.label) : f0.label);
27945
+ function d0(M0) {
27946
+ return M0 && (/^datepicker\./.test(M0.label) ? g(M0.label) : M0.label);
27947
27947
  }
27948
27948
  const g0 = d0(U) === "Before", X = d0(U) === "After";
27949
- function u0(f0) {
27950
- const V0 = c || [], n1 = A0.toMoment(f0);
27949
+ function u0(M0) {
27950
+ const V0 = c || [], n1 = A0.toMoment(M0);
27951
27951
  let a1;
27952
27952
  if (g0)
27953
27953
  a1 = [null, n1], k0(!0), O?.(d0(U));
@@ -27971,13 +27971,13 @@ function kH({
27971
27971
  }
27972
27972
  z0(a1);
27973
27973
  }
27974
- function h0(f0) {
27975
- I(f0.target.value), U !== null && (j(null), O?.(null));
27974
+ function h0(M0) {
27975
+ I(M0.target.value), U !== null && (j(null), O?.(null));
27976
27976
  }
27977
- function C0(f0) {
27978
- A0.validateTimeString(f0.target.value, p) && (Y(f0.target.value), U !== null && (j(null), O?.(null)));
27977
+ function C0(M0) {
27978
+ A0.validateTimeString(M0.target.value, p) && (Y(M0.target.value), U !== null && (j(null), O?.(null)));
27979
27979
  }
27980
- function L0(f0, V0, n1) {
27980
+ function L0(M0, V0, n1) {
27981
27981
  const a1 = w, z1 = V0 ?? x, d1 = e0;
27982
27982
  if (a1 === B[0] && z1 === B[1] && d1 === B[2])
27983
27983
  return;
@@ -27995,27 +27995,27 @@ function kH({
27995
27995
  z0(Q0);
27996
27996
  }
27997
27997
  }
27998
- function U0(f0) {
27999
- A0.validateTimeString(f0 ?? x, p) && (Y(
28000
- A0.padIncompleteTimeString(f0 ?? x, p)
28001
- ), setTimeout(() => L0(void 0, f0), 0));
27998
+ function U0(M0) {
27999
+ A0.validateTimeString(M0 ?? x, p) && (Y(
28000
+ A0.padIncompleteTimeString(M0 ?? x, p)
28001
+ ), setTimeout(() => L0(void 0, M0), 0));
28002
28002
  }
28003
- function o1(f0) {
28004
- a0(f0.target.value);
28003
+ function o1(M0) {
28004
+ a0(M0.target.value);
28005
28005
  }
28006
- function K0(f0) {
28007
- A0.validateTimeString(f0, p) && (Y(f0), setTimeout(() => U0(f0), 0));
28006
+ function K0(M0) {
28007
+ A0.validateTimeString(M0, p) && (Y(M0), setTimeout(() => U0(M0), 0));
28008
28008
  }
28009
28009
  h.useEffect(() => {
28010
28010
  e0 !== B[2] && L0();
28011
28011
  }, [e0]);
28012
- function j0(f0) {
28013
- H(f0.target.value);
28012
+ function j0(M0) {
28013
+ H(M0.target.value);
28014
28014
  }
28015
- function T0(f0) {
28016
- A0.validateTimeString(f0.target.value, p) && S(f0.target.value);
28015
+ function T0(M0) {
28016
+ A0.validateTimeString(M0.target.value, p) && S(M0.target.value);
28017
28017
  }
28018
- function I0(f0, V0, n1) {
28018
+ function I0(M0, V0, n1) {
28019
28019
  const a1 = v, z1 = V0 ?? J, d1 = D;
28020
28020
  if (a1 === Q[0] && z1 === Q[1] && d1 === Q[2])
28021
28021
  return;
@@ -28033,16 +28033,16 @@ function kH({
28033
28033
  z0(Q0);
28034
28034
  }
28035
28035
  }
28036
- function D0(f0) {
28037
- A0.validateTimeString(f0 ?? J, p) && (S(
28038
- A0.padIncompleteTimeString(f0 ?? J, p)
28039
- ), setTimeout(() => I0(void 0, f0), 0));
28036
+ function D0(M0) {
28037
+ A0.validateTimeString(M0 ?? J, p) && (S(
28038
+ A0.padIncompleteTimeString(M0 ?? J, p)
28039
+ ), setTimeout(() => I0(void 0, M0), 0));
28040
28040
  }
28041
- function N0(f0) {
28042
- G(f0.target.value);
28041
+ function N0(M0) {
28042
+ G(M0.target.value);
28043
28043
  }
28044
- function o0(f0) {
28045
- A0.validateTimeString(f0, p) && (S(f0), setTimeout(() => D0(f0), 0));
28044
+ function o0(M0) {
28045
+ A0.validateTimeString(M0, p) && (S(M0), setTimeout(() => D0(M0), 0));
28046
28046
  }
28047
28047
  h.useEffect(() => {
28048
28048
  D !== Q[2] && I0();
@@ -28050,7 +28050,7 @@ function kH({
28050
28050
  function m0() {
28051
28051
  z0([null, null]), j(null), O?.(null);
28052
28052
  }
28053
- function H0(f0) {
28053
+ function H0(M0) {
28054
28054
  return function(V0) {
28055
28055
  switch (V0.key) {
28056
28056
  case "Tab":
@@ -28060,37 +28060,37 @@ function kH({
28060
28060
  V0.target.selectionStart === 0 && c && !Array.isArray(c) && m0();
28061
28061
  break;
28062
28062
  case "Enter":
28063
- f0 === "from" ? L0() : f0 === "to" && I0();
28063
+ M0 === "from" ? L0() : M0 === "to" && I0();
28064
28064
  break;
28065
28065
  }
28066
28066
  };
28067
28067
  }
28068
- function G0(f0) {
28069
- if (!f0) {
28068
+ function G0(M0) {
28069
+ if (!M0) {
28070
28070
  j(null), z0([null, null]), O?.(null);
28071
28071
  return;
28072
28072
  }
28073
- j(f0);
28074
- const V0 = A0.createDateTimeRangeFromPreset(f0);
28075
- f0 && d0(f0) === "Before" ? !c || Array.isArray(c) && c[0] && c[1] ? z0([null, null]) : Array.isArray(c) && c[0] ? z0([null, A0.toMoment(A0.createFrom(c[0], d))]) : Array.isArray(c) && c[1] && z0([null, A0.toMoment(A0.createFrom(c[1], d))]) : f0 && d0(f0) === "After" ? !c || Array.isArray(c) && c[0] && c[1] ? z0([null, null]) : Array.isArray(c) && c[0] ? z0([A0.toMoment(A0.createFrom(c[0], d)), null]) : Array.isArray(c) && c[1] && z0([A0.toMoment(A0.createFrom(c[1], d)), null]) : JSON.stringify(c) !== JSON.stringify(V0) && z0([V0[0], V0[1]]), O && f0?.definition !== A && O(typeof f0?.definition == "string" ? f0?.definition : d0(f0));
28073
+ j(M0);
28074
+ const V0 = A0.createDateTimeRangeFromPreset(M0);
28075
+ M0 && d0(M0) === "Before" ? !c || Array.isArray(c) && c[0] && c[1] ? z0([null, null]) : Array.isArray(c) && c[0] ? z0([null, A0.toMoment(A0.createFrom(c[0], d))]) : Array.isArray(c) && c[1] && z0([null, A0.toMoment(A0.createFrom(c[1], d))]) : M0 && d0(M0) === "After" ? !c || Array.isArray(c) && c[0] && c[1] ? z0([null, null]) : Array.isArray(c) && c[0] ? z0([A0.toMoment(A0.createFrom(c[0], d)), null]) : Array.isArray(c) && c[1] && z0([A0.toMoment(A0.createFrom(c[1], d)), null]) : JSON.stringify(c) !== JSON.stringify(V0) && z0([V0[0], V0[1]]), O && M0?.definition !== A && O(typeof M0?.definition == "string" ? M0?.definition : d0(M0));
28076
28076
  }
28077
28077
  h.useEffect(() => {
28078
28078
  c && Array.isArray(c) && !c.length && m0();
28079
28079
  }, [c]), h.useEffect(() => {
28080
28080
  if (c && Array.isArray(c) && Array.isArray(c)) {
28081
28081
  if (c[0] && !c[1]) {
28082
- const f0 = i.find((V0) => d0(V0) === "After");
28083
- f0 && G0(f0);
28082
+ const M0 = i.find((V0) => d0(V0) === "After");
28083
+ M0 && G0(M0);
28084
28084
  } else if (!c[0] && c[1]) {
28085
- const f0 = i.find((V0) => d0(V0) === "Before");
28086
- f0 && G0(f0);
28085
+ const M0 = i.find((V0) => d0(V0) === "Before");
28086
+ M0 && G0(M0);
28087
28087
  } else if (c[0] && c[1]) {
28088
- const f0 = A0.toDateTimeStringRange(
28088
+ const M0 = A0.toDateTimeStringRange(
28089
28089
  c,
28090
28090
  p,
28091
28091
  d
28092
28092
  ), V0 = i.find(
28093
- (n1) => f0 === A0.toDateTimeStringRange(
28093
+ (n1) => M0 === A0.toDateTimeStringRange(
28094
28094
  A0.createDateTimeRangeFromPreset(n1),
28095
28095
  p,
28096
28096
  d
@@ -28289,21 +28289,21 @@ function kH({
28289
28289
  htmlFor: `sps-date-range-picker-${C}__range-custom`
28290
28290
  },
28291
28291
  g("datepicker.preset.custom", { defaultValue: "Custom" })
28292
- )), i.map((f0, V0) => /* @__PURE__ */ h.createElement(
28292
+ )), i.map((M0, V0) => /* @__PURE__ */ h.createElement(
28293
28293
  "div",
28294
28294
  {
28295
- key: d0(f0),
28295
+ key: d0(M0),
28296
28296
  className: "sps-custom-control sps-custom-radio sps-custom-control--no-error"
28297
28297
  },
28298
28298
  /* @__PURE__ */ h.createElement(
28299
28299
  "input",
28300
28300
  {
28301
28301
  type: "radio",
28302
- "data-testid": `${u}_preset_option_${f0.label}`,
28302
+ "data-testid": `${u}_preset_option_${M0.label}`,
28303
28303
  id: `sps-date-range-picker-${C}__range-${V0}`,
28304
28304
  name: `sps-date-range-picker-${C}__range`,
28305
- onChange: () => G0(f0),
28306
- checked: U?.definition ? U.definition === f0.definition : !1,
28305
+ onChange: () => G0(M0),
28306
+ checked: U?.definition ? U.definition === M0.definition : !1,
28307
28307
  className: "sps-custom-control__input"
28308
28308
  }
28309
28309
  ),
@@ -28313,7 +28313,7 @@ function kH({
28313
28313
  className: "sps-custom-control__label",
28314
28314
  htmlFor: `sps-date-range-picker-${C}__range-${V0}`
28315
28315
  },
28316
- d0(f0)
28316
+ d0(M0)
28317
28317
  )
28318
28318
  )))), /* @__PURE__ */ h.createElement(
28319
28319
  Kc,
@@ -28854,7 +28854,7 @@ Arguments: ` + Array.prototype.slice.call(y).join("") + `
28854
28854
  return y.priority - P.priority;
28855
28855
  }), _;
28856
28856
  }
28857
- var N0 = /\d/, o0 = /\d\d/, m0 = /\d{3}/, H0 = /\d{4}/, G0 = /[+-]?\d{6}/, W0 = /\d\d?/, f0 = /\d\d\d\d?/, V0 = /\d\d\d\d\d\d?/, n1 = /\d{1,3}/, a1 = /\d{1,4}/, z1 = /[+-]?\d{1,6}/, d1 = /\d+/, K1 = /[+-]?\d+/, N1 = /Z|[+-]\d\d:?\d\d/gi, i2 = /Z|[+-]\d\d(?::?\d\d)?/gi, m2 = /[+-]?\d+(\.\d{1,3})?/, Q0 = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, X0 = /^[1-9]\d?/, B1 = /^([1-9]\d|\d)/, y2;
28857
+ var N0 = /\d/, o0 = /\d\d/, m0 = /\d{3}/, H0 = /\d{4}/, G0 = /[+-]?\d{6}/, W0 = /\d\d?/, M0 = /\d\d\d\d?/, V0 = /\d\d\d\d\d\d?/, n1 = /\d{1,3}/, a1 = /\d{1,4}/, z1 = /[+-]?\d{1,6}/, d1 = /\d+/, K1 = /[+-]?\d+/, N1 = /Z|[+-]\d\d:?\d\d/gi, i2 = /Z|[+-]\d\d(?::?\d\d)?/gi, m2 = /[+-]?\d+(\.\d{1,3})?/, Q0 = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, X0 = /^[1-9]\d?/, B1 = /^([1-9]\d|\d)/, y2;
28858
28858
  y2 = {};
28859
28859
  function O0(b, _, k) {
28860
28860
  y2[b] = w(_) ? _ : function(y, P) {
@@ -29259,8 +29259,8 @@ Arguments: ` + Array.prototype.slice.call(y).join("") + `
29259
29259
  return this._weekdaysParseExact ? (i(this, "_weekdaysRegex") || Ml.call(this), b ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (i(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Mg), this._weekdaysMinStrictRegex && b ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
29260
29260
  }
29261
29261
  function Ml() {
29262
- function b(F2, ut) {
29263
- return ut.length - F2.length;
29262
+ function b(Q2, ut) {
29263
+ return ut.length - Q2.length;
29264
29264
  }
29265
29265
  var _ = [], k = [], y = [], P = [], t0, _0, P0, r1, g1;
29266
29266
  for (t0 = 0; t0 < 7; t0++)
@@ -29304,7 +29304,7 @@ Arguments: ` + Array.prototype.slice.call(y).join("") + `
29304
29304
  function $u(b, _) {
29305
29305
  return _._meridiemParse;
29306
29306
  }
29307
- O0("a", $u), O0("A", $u), O0("H", W0, B1), O0("h", W0, X0), O0("k", W0, X0), O0("HH", W0, o0), O0("hh", W0, o0), O0("kk", W0, o0), O0("hmm", f0), O0("hmmss", V0), O0("Hmm", f0), O0("Hmmss", V0), c1(["H", "HH"], B0), c1(["k", "kk"], function(b, _, k) {
29307
+ O0("a", $u), O0("A", $u), O0("H", W0, B1), O0("h", W0, X0), O0("k", W0, X0), O0("HH", W0, o0), O0("hh", W0, o0), O0("kk", W0, o0), O0("hmm", M0), O0("hmmss", V0), O0("Hmm", M0), O0("Hmmss", V0), c1(["H", "HH"], B0), c1(["k", "kk"], function(b, _, k) {
29308
29308
  var y = s1(b);
29309
29309
  _[B0] = y === 24 ? 0 : y;
29310
29310
  }), c1(["a", "A"], function(b, _, k) {
@@ -29475,7 +29475,7 @@ Arguments: ` + Array.prototype.slice.call(y).join("") + `
29475
29475
  PST: -480
29476
29476
  };
29477
29477
  function o5(b) {
29478
- var _, k, y = b._i, P = Ng.exec(y) || xg.exec(y), t0, _0, P0, r1, g1 = zr.length, F2 = Al.length;
29478
+ var _, k, y = b._i, P = Ng.exec(y) || xg.exec(y), t0, _0, P0, r1, g1 = zr.length, Q2 = Al.length;
29479
29479
  if (P) {
29480
29480
  for (O(b).iso = !0, _ = 0, k = g1; _ < k; _++)
29481
29481
  if (zr[_][1].exec(P[1])) {
@@ -29487,7 +29487,7 @@ Arguments: ` + Array.prototype.slice.call(y).join("") + `
29487
29487
  return;
29488
29488
  }
29489
29489
  if (P[3]) {
29490
- for (_ = 0, k = F2; _ < k; _++)
29490
+ for (_ = 0, k = Q2; _ < k; _++)
29491
29491
  if (Al[_][1].exec(P[3])) {
29492
29492
  P0 = (P[2] || " ") + Al[_][0];
29493
29493
  break;
@@ -29632,8 +29632,8 @@ Arguments: ` + Array.prototype.slice.call(y).join("") + `
29632
29632
  return;
29633
29633
  }
29634
29634
  b._a = [], O(b).empty = !0;
29635
- var _ = "" + b._i, k, y, P, t0, _0, P0 = _.length, r1 = 0, g1, F2;
29636
- for (P = k0(b._f, b._locale).match(e0) || [], F2 = P.length, k = 0; k < F2; k++)
29635
+ var _ = "" + b._i, k, y, P, t0, _0, P0 = _.length, r1 = 0, g1, Q2;
29636
+ for (P = k0(b._f, b._locale).match(e0) || [], Q2 = P.length, k = 0; k < Q2; k++)
29637
29637
  t0 = P[k], y = (_.match(k1(t0, b)) || [])[0], y && (_0 = _.substr(0, _.indexOf(y)), _0.length > 0 && O(b).unusedInput.push(_0), _ = _.slice(
29638
29638
  _.indexOf(y) + y.length
29639
29639
  ), r1 += y.length), G[t0] ? (y ? O(b).empty = !1 : O(b).unusedTokens.push(t0), dl(t0, y, b)) : b._strict && !y && O(b).unusedTokens.push(t0);
@@ -29751,8 +29751,8 @@ Arguments: ` + Array.prototype.slice.call(y).join("") + `
29751
29751
  return ve(NaN);
29752
29752
  }
29753
29753
  function Ar(b) {
29754
- var _ = T0(b), k = _.year || 0, y = _.quarter || 0, P = _.month || 0, t0 = _.week || _.isoWeek || 0, _0 = _.day || 0, P0 = _.hour || 0, r1 = _.minute || 0, g1 = _.second || 0, F2 = _.millisecond || 0;
29755
- this._isValid = iC(_), this._milliseconds = +F2 + g1 * 1e3 + // 1000
29754
+ var _ = T0(b), k = _.year || 0, y = _.quarter || 0, P = _.month || 0, t0 = _.week || _.isoWeek || 0, _0 = _.day || 0, P0 = _.hour || 0, r1 = _.minute || 0, g1 = _.second || 0, Q2 = _.millisecond || 0;
29755
+ this._isValid = iC(_), this._milliseconds = +Q2 + g1 * 1e3 + // 1000
29756
29756
  r1 * 6e4 + // 1000 * 60
29757
29757
  P0 * 1e3 * 60 * 60, this._days = +_0 + t0 * 7, this._months = +P + y * 3 + k * 12, this._data = {}, this._locale = ct(), this._bubble();
29758
29758
  }
@@ -30687,8 +30687,8 @@ Arguments: ` + Array.prototype.slice.call(y).join("") + `
30687
30687
  return P.relativeTime(_ || 1, !!k, b, y);
30688
30688
  }
30689
30689
  function uv(b, _, k, y) {
30690
- var P = ve(b).abs(), t0 = dt(P.as("s")), _0 = dt(P.as("m")), P0 = dt(P.as("h")), r1 = dt(P.as("d")), g1 = dt(P.as("M")), F2 = dt(P.as("w")), ut = dt(P.as("y")), Qt = t0 <= k.ss && ["s", t0] || t0 < k.s && ["ss", t0] || _0 <= 1 && ["m"] || _0 < k.m && ["mm", _0] || P0 <= 1 && ["h"] || P0 < k.h && ["hh", P0] || r1 <= 1 && ["d"] || r1 < k.d && ["dd", r1];
30691
- return k.w != null && (Qt = Qt || F2 <= 1 && ["w"] || F2 < k.w && ["ww", F2]), Qt = Qt || g1 <= 1 && ["M"] || g1 < k.M && ["MM", g1] || ut <= 1 && ["y"] || ["yy", ut], Qt[2] = _, Qt[3] = +b > 0, Qt[4] = y, dv.apply(null, Qt);
30690
+ var P = ve(b).abs(), t0 = dt(P.as("s")), _0 = dt(P.as("m")), P0 = dt(P.as("h")), r1 = dt(P.as("d")), g1 = dt(P.as("M")), Q2 = dt(P.as("w")), ut = dt(P.as("y")), Qt = t0 <= k.ss && ["s", t0] || t0 < k.s && ["ss", t0] || _0 <= 1 && ["m"] || _0 < k.m && ["mm", _0] || P0 <= 1 && ["h"] || P0 < k.h && ["hh", P0] || r1 <= 1 && ["d"] || r1 < k.d && ["dd", r1];
30691
+ return k.w != null && (Qt = Qt || Q2 <= 1 && ["w"] || Q2 < k.w && ["ww", Q2]), Qt = Qt || g1 <= 1 && ["M"] || g1 < k.M && ["MM", g1] || ut <= 1 && ["y"] || ["yy", ut], Qt[2] = _, Qt[3] = +b > 0, Qt[4] = y, dv.apply(null, Qt);
30692
30692
  }
30693
30693
  function bv(b) {
30694
30694
  return b === void 0 ? dt : typeof b == "function" ? (dt = b, !0) : !1;
@@ -30709,8 +30709,8 @@ Arguments: ` + Array.prototype.slice.call(y).join("") + `
30709
30709
  function Er() {
30710
30710
  if (!this.isValid())
30711
30711
  return this.localeData().invalidDate();
30712
- var b = yl(this._milliseconds) / 1e3, _ = yl(this._days), k = yl(this._months), y, P, t0, _0, P0 = this.asSeconds(), r1, g1, F2, ut;
30713
- return P0 ? (y = j1(b / 60), P = j1(y / 60), b %= 60, y %= 60, t0 = j1(k / 12), k %= 12, _0 = b ? b.toFixed(3).replace(/\.?0+$/, "") : "", r1 = P0 < 0 ? "-" : "", g1 = hn(this._months) !== hn(P0) ? "-" : "", F2 = hn(this._days) !== hn(P0) ? "-" : "", ut = hn(this._milliseconds) !== hn(P0) ? "-" : "", r1 + "P" + (t0 ? g1 + t0 + "Y" : "") + (k ? g1 + k + "M" : "") + (_ ? F2 + _ + "D" : "") + (P || y || b ? "T" : "") + (P ? ut + P + "H" : "") + (y ? ut + y + "M" : "") + (b ? ut + _0 + "S" : "")) : "P0D";
30712
+ var b = yl(this._milliseconds) / 1e3, _ = yl(this._days), k = yl(this._months), y, P, t0, _0, P0 = this.asSeconds(), r1, g1, Q2, ut;
30713
+ return P0 ? (y = j1(b / 60), P = j1(y / 60), b %= 60, y %= 60, t0 = j1(k / 12), k %= 12, _0 = b ? b.toFixed(3).replace(/\.?0+$/, "") : "", r1 = P0 < 0 ? "-" : "", g1 = hn(this._months) !== hn(P0) ? "-" : "", Q2 = hn(this._days) !== hn(P0) ? "-" : "", ut = hn(this._milliseconds) !== hn(P0) ? "-" : "", r1 + "P" + (t0 ? g1 + t0 + "Y" : "") + (k ? g1 + k + "M" : "") + (_ ? Q2 + _ + "D" : "") + (P || y || b ? "T" : "") + (P ? ut + P + "H" : "") + (y ? ut + y + "M" : "") + (b ? ut + _0 + "S" : "")) : "P0D";
30714
30714
  }
30715
30715
  var v1 = Ar.prototype;
30716
30716
  v1.isValid = cC, v1.abs = Fk, v1.add = Qk, v1.subtract = Hk, v1.as = Uk, v1.asMilliseconds = w5, v1.asSeconds = Kk, v1.asMinutes = jk, v1.asHours = Gk, v1.asDays = Yk, v1.asWeeks = Xk, v1.asMonths = Zk, v1.asQuarters = Jk, v1.asYears = $k, v1.valueOf = ev, v1._bubble = Vk, v1.clone = tv, v1.get = ov, v1.milliseconds = nv, v1.seconds = sv, v1.minutes = av, v1.hours = rv, v1.days = iv, v1.weeks = pv, v1.months = cv, v1.years = lv, v1.humanize = Mv, v1.toISOString = Er, v1.toString = Er, v1.toJSON = Er, v1.locale = b5, v1.localeData = M5, v1.toIsoString = q(
@@ -48505,7 +48505,7 @@ function QG(e) {
48505
48505
  }
48506
48506
  var HG = (e) => {
48507
48507
  var t, o, n, s, a, r, i, c, l, p, d;
48508
- let { invert: u, toast: M, unstyled: f, interacting: A, setHeights: O, visibleToasts: g, heights: C, index: E, toasts: W, expanded: L, removeToast: T, defaultRichColors: F, closeButton: z, style: N, cancelButtonStyle: q, actionButtonStyle: B, className: Q = "", descriptionClassName: w = "", duration: I, position: v, gap: H, loadingIcon: x, expandByDefault: Y, classNames: J, icons: S, closeButtonAriaLabel: e0 = "Close toast", pauseWhenPageIsHidden: a0 } = e, [D, G] = i0.useState(null), [U, j] = i0.useState(null), [s0, l0] = i0.useState(!1), [k0, z0] = i0.useState(!1), [d0, g0] = i0.useState(!1), [X, u0] = i0.useState(!1), [h0, C0] = i0.useState(!1), [L0, U0] = i0.useState(0), [o1, K0] = i0.useState(0), j0 = i0.useRef(M.duration || I || _8), T0 = i0.useRef(null), I0 = i0.useRef(null), D0 = E === 0, N0 = E + 1 <= g, o0 = M.type, m0 = M.dismissible !== !1, H0 = M.className || "", G0 = M.descriptionClassName || "", W0 = i0.useMemo(() => C.findIndex((O0) => O0.toastId === M.id) || 0, [C, M.id]), f0 = i0.useMemo(() => {
48508
+ let { invert: u, toast: M, unstyled: f, interacting: A, setHeights: O, visibleToasts: g, heights: C, index: E, toasts: W, expanded: L, removeToast: T, defaultRichColors: F, closeButton: z, style: N, cancelButtonStyle: q, actionButtonStyle: B, className: Q = "", descriptionClassName: w = "", duration: I, position: v, gap: H, loadingIcon: x, expandByDefault: Y, classNames: J, icons: S, closeButtonAriaLabel: e0 = "Close toast", pauseWhenPageIsHidden: a0 } = e, [D, G] = i0.useState(null), [U, j] = i0.useState(null), [s0, l0] = i0.useState(!1), [k0, z0] = i0.useState(!1), [d0, g0] = i0.useState(!1), [X, u0] = i0.useState(!1), [h0, C0] = i0.useState(!1), [L0, U0] = i0.useState(0), [o1, K0] = i0.useState(0), j0 = i0.useRef(M.duration || I || _8), T0 = i0.useRef(null), I0 = i0.useRef(null), D0 = E === 0, N0 = E + 1 <= g, o0 = M.type, m0 = M.dismissible !== !1, H0 = M.className || "", G0 = M.descriptionClassName || "", W0 = i0.useMemo(() => C.findIndex((O0) => O0.toastId === M.id) || 0, [C, M.id]), M0 = i0.useMemo(() => {
48509
48509
  var O0;
48510
48510
  return (O0 = M.closeButton) != null ? O0 : z;
48511
48511
  }, [M.closeButton, z]), V0 = i0.useMemo(() => M.duration || I || _8, [M.duration, I]), n1 = i0.useRef(0), a1 = i0.useRef(0), z1 = i0.useRef(0), d1 = i0.useRef(null), [K1, N1] = v.split("-"), i2 = i0.useMemo(() => C.reduce((O0, k1, P1) => P1 >= W0 ? O0 : O0 + k1.height, 0), [C, W0]), m2 = wG(), Q0 = M.invert || u, X0 = o0 === "loading";
@@ -48572,7 +48572,7 @@ var HG = (e) => {
48572
48572
  !D && (Math.abs(G2) > 1 || Math.abs(s1) > 1) && G(Math.abs(G2) > Math.abs(s1) ? "x" : "y");
48573
48573
  let R2 = { x: 0, y: 0 };
48574
48574
  D === "y" ? (c1.includes("top") || c1.includes("bottom")) && (c1.includes("top") && s1 < 0 || c1.includes("bottom") && s1 > 0) && (R2.y = s1) : D === "x" && (c1.includes("left") || c1.includes("right")) && (c1.includes("left") && G2 < 0 || c1.includes("right") && G2 > 0) && (R2.x = G2), (Math.abs(R2.x) > 0 || Math.abs(R2.y) > 0) && C0(!0), (t2 = I0.current) == null || t2.style.setProperty("--swipe-amount-x", `${R2.x}px`), (j1 = I0.current) == null || j1.style.setProperty("--swipe-amount-y", `${R2.y}px`);
48575
- } }, f0 && !M.jsx ? i0.createElement("button", { "aria-label": e0, "data-disabled": X0, "data-close-button": !0, onClick: X0 || !m0 ? () => {
48575
+ } }, M0 && !M.jsx ? i0.createElement("button", { "aria-label": e0, "data-disabled": X0, "data-close-button": !0, onClick: X0 || !m0 ? () => {
48576
48576
  } : () => {
48577
48577
  var O0;
48578
48578
  B1(), (O0 = M.onDismiss) == null || O0.call(M, M);
@@ -49367,7 +49367,7 @@ function Jm(e, t, o) {
49367
49367
  writable: !0
49368
49368
  }) : e[t] = o, e;
49369
49369
  }
49370
- function T2(e) {
49370
+ function I2(e) {
49371
49371
  for (var t = 1; t < arguments.length; t++) {
49372
49372
  var o = arguments[t] != null ? Object(arguments[t]) : {}, n = Object.keys(o);
49373
49373
  typeof Object.getOwnPropertySymbols == "function" && n.push.apply(n, Object.getOwnPropertySymbols(o).filter(function(s) {
@@ -49489,7 +49489,7 @@ var oY = {
49489
49489
  }, {
49490
49490
  key: "create",
49491
49491
  value: function(o) {
49492
- return new e(this.logger, T2({}, {
49492
+ return new e(this.logger, I2({}, {
49493
49493
  prefix: "".concat(this.prefix, ":").concat(o, ":")
49494
49494
  }, this.options));
49495
49495
  }
@@ -49664,7 +49664,7 @@ var Jc = typeof window < "u" && window.navigator && window.navigator.userAgent &
49664
49664
  }, l = [n, s];
49665
49665
  n.indexOf(".") > -1 && (l = n.split("."), r = a, a = s, s = l[1]), this.addNamespaces(s);
49666
49666
  var p = nc(this.data, l) || {};
49667
- r ? $m(p, a, i) : p = T2({}, p, a), O8(this.data, l, p), c.silent || this.emit("added", n, s, a);
49667
+ r ? $m(p, a, i) : p = I2({}, p, a), O8(this.data, l, p), c.silent || this.emit("added", n, s, a);
49668
49668
  }
49669
49669
  }, {
49670
49670
  key: "removeResourceBundle",
@@ -49679,7 +49679,7 @@ var Jc = typeof window < "u" && window.navigator && window.navigator.userAgent &
49679
49679
  }, {
49680
49680
  key: "getResourceBundle",
49681
49681
  value: function(n, s) {
49682
- return s || (s = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? T2({}, {}, this.getResource(n, s)) : this.getResource(n, s);
49682
+ return s || (s = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? I2({}, {}, this.getResource(n, s)) : this.getResource(n, s);
49683
49683
  }
49684
49684
  }, {
49685
49685
  key: "getDataByLanguage",
@@ -49766,7 +49766,7 @@ var Jc = typeof window < "u" && window.navigator && window.navigator.userAgent &
49766
49766
  for (var B in O)
49767
49767
  if (Object.prototype.hasOwnProperty.call(O, B)) {
49768
49768
  var Q = "".concat(q).concat(i).concat(B);
49769
- N[B] = this.translate(Q, T2({}, s, {
49769
+ N[B] = this.translate(Q, I2({}, s, {
49770
49770
  joinArrays: !1,
49771
49771
  ns: p
49772
49772
  })), N[B] === Q && (N[B] = O[B]);
@@ -49781,7 +49781,7 @@ var Jc = typeof window < "u" && window.navigator && window.navigator.userAgent &
49781
49781
  var J = H && Y !== O && this.options.updateMissing;
49782
49782
  if (I || w || J) {
49783
49783
  if (this.logger.log(J ? "updateKey" : "missingKey", u, d, l, J ? Y : O), i) {
49784
- var S = this.resolve(l, T2({}, s, {
49784
+ var S = this.resolve(l, I2({}, s, {
49785
49785
  keySeparator: !1
49786
49786
  }));
49787
49787
  S && S.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
@@ -49813,8 +49813,8 @@ var Jc = typeof window < "u" && window.navigator && window.navigator.userAgent &
49813
49813
  resolved: r
49814
49814
  });
49815
49815
  else if (!a.skipInterpolation) {
49816
- a.interpolation && this.interpolator.init(T2({}, a, {
49817
- interpolation: T2({}, this.options.interpolation, a.interpolation)
49816
+ a.interpolation && this.interpolator.init(I2({}, a, {
49817
+ interpolation: I2({}, this.options.interpolation, a.interpolation)
49818
49818
  }));
49819
49819
  var l = a.interpolation && a.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, p;
49820
49820
  if (l) {
@@ -49822,7 +49822,7 @@ var Jc = typeof window < "u" && window.navigator && window.navigator.userAgent &
49822
49822
  p = d && d.length;
49823
49823
  }
49824
49824
  var u = a.replace && typeof a.replace != "string" ? a.replace : a;
49825
- if (this.options.interpolation.defaultVariables && (u = T2({}, this.options.interpolation.defaultVariables, u)), n = this.interpolator.interpolate(n, u, a.lng || this.language, a), l) {
49825
+ if (this.options.interpolation.defaultVariables && (u = I2({}, this.options.interpolation.defaultVariables, u)), n = this.interpolator.interpolate(n, u, a.lng || this.language, a), l) {
49826
49826
  var M = n.match(this.interpolator.nestingRegexp), f = M && M.length;
49827
49827
  p < f && (a.nest = !1);
49828
49828
  }
@@ -49833,7 +49833,7 @@ var Jc = typeof window < "u" && window.navigator && window.navigator.userAgent &
49833
49833
  }, a)), a.interpolation && this.interpolator.reset();
49834
49834
  }
49835
49835
  var A = a.postProcess || this.options.postProcess, O = typeof A == "string" ? [A] : A;
49836
- return n != null && O && O.length && a.applyPostProcessor !== !1 && (n = eO.handle(O, n, s, this.options && this.options.postProcessPassResolved ? T2({
49836
+ return n != null && O && O.length && a.applyPostProcessor !== !1 && (n = eO.handle(O, n, s, this.options && this.options.postProcessPassResolved ? I2({
49837
49837
  i18nResolved: r
49838
49838
  }, a) : a, this)), n;
49839
49839
  }
@@ -50279,7 +50279,7 @@ var bY = (function() {
50279
50279
  }, {
50280
50280
  key: "nest",
50281
50281
  value: function(o, n) {
50282
- var s = this, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r, i, c = T2({}, a);
50282
+ var s = this, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r, i, c = I2({}, a);
50283
50283
  c.applyPostProcessor = !1, delete c.defaultValue;
50284
50284
  function l(M, f) {
50285
50285
  var A = this.nestingOptionsSeparator;
@@ -50287,7 +50287,7 @@ var bY = (function() {
50287
50287
  var O = M.split(new RegExp("".concat(A, "[ ]*{"))), g = "{".concat(O[1]);
50288
50288
  M = O[0], g = this.interpolate(g, c), g = g.replace(/'/g, '"');
50289
50289
  try {
50290
- c = JSON.parse(g), f && (c = T2({}, f, c));
50290
+ c = JSON.parse(g), f && (c = I2({}, f, c));
50291
50291
  } catch (C) {
50292
50292
  return this.logger.warn("failed parsing options string in nesting for key ".concat(M), C), "".concat(M).concat(A).concat(g);
50293
50293
  }
@@ -50414,7 +50414,7 @@ var fY = (function(e) {
50414
50414
  this.logger.warn('did not save key "'.concat(a, '" as the namespace "').concat(s, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
50415
50415
  return;
50416
50416
  }
50417
- a == null || a === "" || (this.backend && this.backend.create && this.backend.create(n, s, a, r, null, T2({}, c, {
50417
+ a == null || a === "" || (this.backend && this.backend.create && this.backend.create(n, s, a, r, null, I2({}, c, {
50418
50418
  isUpdate: i
50419
50419
  })), !(!n || !n[0]) && this.store.addResource(n[0], s, a, r));
50420
50420
  }
@@ -50507,7 +50507,7 @@ var zY = (function(e) {
50507
50507
  key: "init",
50508
50508
  value: function() {
50509
50509
  var n = this, s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
50510
- typeof s == "function" && (a = s, s = {}), s.whitelist && !s.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), s.nonExplicitWhitelist && !s.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = T2({}, _Y(), this.options, v8(s)), this.format = this.options.interpolation.format, a || (a = ti);
50510
+ typeof s == "function" && (a = s, s = {}), s.whitelist && !s.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), s.nonExplicitWhitelist && !s.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = I2({}, _Y(), this.options, v8(s)), this.format = this.options.interpolation.format, a || (a = ti);
50511
50511
  function r(f) {
50512
50512
  return f ? typeof f == "function" ? new f() : f : null;
50513
50513
  }
@@ -50636,7 +50636,7 @@ var zY = (function(e) {
50636
50636
  u[M - 2] = arguments[M];
50637
50637
  p = a.options.overloadTranslationOptionHandler([c, l].concat(u));
50638
50638
  } else
50639
- p = T2({}, l);
50639
+ p = I2({}, l);
50640
50640
  return p.lng = p.lng || i.lng, p.lngs = p.lngs || i.lngs, p.ns = p.ns || i.ns, a.t(c, p);
50641
50641
  };
50642
50642
  return typeof n == "string" ? r.lng = n : r.lngs = n, r.ns = s, r;
@@ -50716,12 +50716,12 @@ var zY = (function(e) {
50716
50716
  }, {
50717
50717
  key: "cloneInstance",
50718
50718
  value: function() {
50719
- var n = this, s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ti, r = T2({}, this.options, s, {
50719
+ var n = this, s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ti, r = I2({}, this.options, s, {
50720
50720
  isClone: !0
50721
50721
  }), i = new t(r), c = ["store", "services", "language"];
50722
50722
  return c.forEach(function(l) {
50723
50723
  i[l] = n[l];
50724
- }), i.services = T2({}, this.services), i.services.utils = {
50724
+ }), i.services = I2({}, this.services), i.services.utils = {
50725
50725
  hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
50726
50726
  }, i.translator = new k8(i.services, i.options), i.translator.on("*", function(l) {
50727
50727
  for (var p = arguments.length, d = new Array(p > 1 ? p - 1 : 0), u = 1; u < p; u++)
@@ -50963,7 +50963,7 @@ function PY(e) {
50963
50963
  });
50964
50964
  });
50965
50965
  }
50966
- const FY = "Accurate", QY = "AI-generated guidance only. Please review and verify before acting.", HY = "Back to Chat", VY = "Cancel", UY = "Close", KY = "Collapse", jY = "Conversation Name", GY = "This conversation has been frozen due to a policy violation.", YY = "Status: Frozen", XY = "Conversations", ZY = "Editing conversations is disabled while in Customer View.", JY = "Sending is disabled on conversations you did not initiate.", $Y = "Are you sure you would like to delete {{title}}?", eX = "Delete Conversation", tX = "Error deleting Conversation.", oX = "Conversation successfully deleted.", nX = "Expand", sX = "Feedback", aX = "Provide feedback. Feel free to add specific details.", rX = "Followed Instructions", iX = "Something went wrong while processing your request.", cX = "Please try again in a moment.", lX = "I'm MAX, your AI Assistant. I can help you with questions about retailers, how to use our products, troubleshooting, searching your data, and more. Let me know how I can help.", pX = "Hello", dX = "Helpful", uX = "Inaccurate", bX = "Loading older messages", hX = "Almost there", MX = "You'll need your admin to grant access before you can use this.", fX = "New Chat", _X = "Not helpful", zX = "You are acting on behalf of a customer. Messages sent will not be visible to them.", AX = "Sent to MAX by SPS Customer Support", mX = "MAX is unavailable in the Preprod environment.", OX = "Recent Searches", gX = "Rename", CX = "Rename Conversation", kX = "Error renaming Conversation.", vX = "Conversation successfully renamed.", EX = "I want to flag that this request isn't something I can help with. Repeated requests like this may affect your account.", wX = "Retry", SX = "Save", qX = "Saved Time", yX = "Scroll to bottom", RX = "Show me how you can help", BX = "It's something else...", WX = "Submit", LX = "Switching conversation", TX = "Tell us more", IX = "What can I help you with?", NX = "Thank you for your feedback!", xX = "Too long", DX = "Too short", PX = "You have reached today's usage limit. Please try again tomorrow.", FX = "What should we get done today?", QX = "What orders did I receive this week?", HX = {
50966
+ const FY = "Accurate", QY = "AI-generated guidance only. Please review and verify before acting.", HY = "Back to Chat", VY = "Cancel", UY = "Close", KY = "Collapse", jY = "Conversation Name", GY = "This conversation has been frozen due to a policy violation.", YY = "Status: Frozen", XY = "Conversations", ZY = "Editing conversations is disabled while in Customer View.", JY = "Sending is disabled on conversations you did not initiate.", $Y = "Are you sure you would like to delete {{title}}?", eX = "Delete Conversation", tX = "Error deleting Conversation.", oX = "Conversation successfully deleted.", nX = "Expand", sX = "Feedback", aX = "Provide feedback. Feel free to add specific details.", rX = "Followed Instructions", iX = "Something went wrong while processing your request.", cX = "Please try again in a moment.", lX = "I'm MAX, your AI Assistant. I can help you with questions about retailers, how to use our products, troubleshooting, searching your data, and more. Let me know how I can help.", pX = "Hello", dX = "Helpful", uX = "Inaccurate", bX = "Loading older messages", hX = "Almost there", MX = "You'll need your admin to grant access before you can use this.", fX = "New Chat", _X = "Not helpful", zX = "You are acting on behalf of a customer. Messages sent will not be visible to them.", AX = "Sent to MAX by SPS Customer Support", mX = "MAX is unavailable in the Preprod environment.", OX = "Recent Conversations", gX = "Rename", CX = "Rename Conversation", kX = "Error renaming Conversation.", vX = "Conversation successfully renamed.", EX = "I want to flag that this request isn't something I can help with. Repeated requests like this may affect your account.", wX = "Retry", SX = "Save", qX = "Saved Time", yX = "Scroll to bottom", RX = "Show me how you can help", BX = "It's something else...", WX = "Submit", LX = "Switching conversation", TX = "Tell us more", IX = "What can I help you with?", NX = "Thank you for your feedback!", xX = "Too long", DX = "Too short", PX = "You have reached today's usage limit. Please try again tomorrow.", FX = "What should we get done today?", QX = "What orders did I receive this week?", HX = {
50967
50967
  accurate: FY,
50968
50968
  aiDisclaimer: QY,
50969
50969
  backToChat: HY,
@@ -51000,7 +51000,7 @@ const FY = "Accurate", QY = "AI-generated guidance only. Please review and verif
51000
51000
  oboBannerMessage: zX,
51001
51001
  oboUserMessageLabel: AX,
51002
51002
  preprodErrorMessage: mX,
51003
- recentSearches: OX,
51003
+ recentConversations: OX,
51004
51004
  rename: gX,
51005
51005
  renameConversation: CX,
51006
51006
  renameConversationError: kX,
@@ -51065,7 +51065,7 @@ function JX({
51065
51065
  s("renameConversationSuccess", { defaultValue: "Conversation successfully renamed." })
51066
51066
  ), o()), t(null);
51067
51067
  } catch (p) {
51068
- U2.error(p), Ye.error(s("renameConversationError", { defaultValue: "Error renaming Conversation." })), t(null);
51068
+ T2.error(p), Ye.error(s("renameConversationError", { defaultValue: "Error renaming Conversation." })), t(null);
51069
51069
  }
51070
51070
  }
51071
51071
  const { formValue: c, formMeta: l } = Rd(
@@ -51134,7 +51134,7 @@ function $X({
51134
51134
  s("deleteConversationSuccess", { defaultValue: "Conversation successfully deleted." })
51135
51135
  ), o()), t(null);
51136
51136
  } catch (c) {
51137
- U2.error(c), Ye.error(s("deleteConversationError", { defaultValue: "Error deleting Conversation." })), t(null);
51137
+ T2.error(c), Ye.error(s("deleteConversationError", { defaultValue: "Error deleting Conversation." })), t(null);
51138
51138
  }
51139
51139
  }
51140
51140
  return /* @__PURE__ */ r0.jsxs(
@@ -51187,7 +51187,7 @@ const eZ = ({
51187
51187
  }) => {
51188
51188
  const [r, i] = i0.useState(null), [c, l] = i0.useState(null), { t: p } = an();
51189
51189
  return /* @__PURE__ */ r0.jsxs("div", { className: "conversation-page", children: [
51190
- /* @__PURE__ */ r0.jsx("p", { className: "conversation-page-title", children: p("recentSearches", { defaultValue: "Recent Searches" }) }),
51190
+ /* @__PURE__ */ r0.jsx("p", { className: "conversation-page-title", children: p("recentConversations", { defaultValue: "Recent Conversations" }) }),
51191
51191
  /* @__PURE__ */ r0.jsx("div", { className: "list-content", children: s ? /* @__PURE__ */ r0.jsx(bo, { style: { margin: "auto" } }) : /* @__PURE__ */ r0.jsx(r0.Fragment, { children: e.map((d, u) => /* @__PURE__ */ r0.jsxs(
51192
51192
  "div",
51193
51193
  {
@@ -52287,7 +52287,7 @@ const RZ = ({
52287
52287
  try {
52288
52288
  await navigator.clipboard.writeText(t?.content || ""), A(!0), setTimeout(() => A(!1), 2e3);
52289
52289
  } catch (I) {
52290
- U2.error("Error copying message", I);
52290
+ T2.error("Error copying message", I);
52291
52291
  }
52292
52292
  }
52293
52293
  function w(I) {
@@ -53958,7 +53958,7 @@ function K8(e) {
53958
53958
  function j8(e) {
53959
53959
  return e && typeof e == "number" ? e : 1;
53960
53960
  }
53961
- class D2 extends Error {
53961
+ class P2 extends Error {
53962
53962
  /**
53963
53963
  * Create a message for `reason`.
53964
53964
  *
@@ -54032,19 +54032,19 @@ class D2 extends Error {
54032
54032
  this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = i ? i.column : void 0, this.fatal = void 0, this.file = "", this.message = s, this.line = i ? i.line : void 0, this.name = ia(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = r && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
54033
54033
  }
54034
54034
  }
54035
- D2.prototype.file = "";
54036
- D2.prototype.name = "";
54037
- D2.prototype.reason = "";
54038
- D2.prototype.message = "";
54039
- D2.prototype.stack = "";
54040
- D2.prototype.column = void 0;
54041
- D2.prototype.line = void 0;
54042
- D2.prototype.ancestors = void 0;
54043
- D2.prototype.cause = void 0;
54044
- D2.prototype.fatal = void 0;
54045
- D2.prototype.place = void 0;
54046
- D2.prototype.ruleId = void 0;
54047
- D2.prototype.source = void 0;
54035
+ P2.prototype.file = "";
54036
+ P2.prototype.name = "";
54037
+ P2.prototype.reason = "";
54038
+ P2.prototype.message = "";
54039
+ P2.prototype.stack = "";
54040
+ P2.prototype.column = void 0;
54041
+ P2.prototype.line = void 0;
54042
+ P2.prototype.ancestors = void 0;
54043
+ P2.prototype.cause = void 0;
54044
+ P2.prototype.fatal = void 0;
54045
+ P2.prototype.place = void 0;
54046
+ P2.prototype.ruleId = void 0;
54047
+ P2.prototype.source = void 0;
54048
54048
  const ku = {}.hasOwnProperty, sJ = /* @__PURE__ */ new Map(), aJ = /[A-Z]/g, rJ = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), iJ = /* @__PURE__ */ new Set(["td", "th"]), hO = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
54049
54049
  function cJ(e, t) {
54050
54050
  if (!t || t.Fragment === void 0)
@@ -54267,7 +54267,7 @@ function mJ(e, t) {
54267
54267
  const n = (
54268
54268
  /** @type {Error} */
54269
54269
  o
54270
- ), s = new D2("Cannot parse `style` attribute", {
54270
+ ), s = new P2("Cannot parse `style` attribute", {
54271
54271
  ancestors: e.ancestors,
54272
54272
  cause: n,
54273
54273
  ruleId: "style",
@@ -54308,7 +54308,7 @@ function _O(e, t, o) {
54308
54308
  Ia(e);
54309
54309
  }
54310
54310
  function Ia(e, t) {
54311
- const o = new D2(
54311
+ const o = new P2(
54312
54312
  "Cannot handle MDX estrees without `createEvaluater`",
54313
54313
  {
54314
54314
  ancestors: e.ancestors,
@@ -54452,7 +54452,7 @@ function mO(e, t) {
54452
54452
  function Te(e) {
54453
54453
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
54454
54454
  }
54455
- const K2 = go(/[A-Za-z]/), N2 = go(/[\dA-Za-z]/), SJ = go(/[#-'*+\--9=?A-Z^-~]/);
54455
+ const K2 = go(/[A-Za-z]/), x2 = go(/[\dA-Za-z]/), SJ = go(/[#-'*+\--9=?A-Z^-~]/);
54456
54456
  function ac(e) {
54457
54457
  return (
54458
54458
  // Special whitespace codes (which have negative values), C0 and Control
@@ -54483,7 +54483,7 @@ function As(e) {
54483
54483
  for (; ++o < e.length; ) {
54484
54484
  const a = e.charCodeAt(o);
54485
54485
  let r = "";
54486
- if (a === 37 && N2(e.charCodeAt(o + 1)) && N2(e.charCodeAt(o + 2)))
54486
+ if (a === 37 && x2(e.charCodeAt(o + 1)) && x2(e.charCodeAt(o + 2)))
54487
54487
  s = 2;
54488
54488
  else if (a < 128)
54489
54489
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a)) || (r = String.fromCharCode(a));
@@ -54765,10 +54765,10 @@ function DJ(e, t, o) {
54765
54765
  return K2(M) ? (e.consume(M), r) : M === 64 ? o(M) : l(M);
54766
54766
  }
54767
54767
  function r(M) {
54768
- return M === 43 || M === 45 || M === 46 || N2(M) ? (n = 1, i(M)) : l(M);
54768
+ return M === 43 || M === 45 || M === 46 || x2(M) ? (n = 1, i(M)) : l(M);
54769
54769
  }
54770
54770
  function i(M) {
54771
- return M === 58 ? (e.consume(M), n = 0, c) : (M === 43 || M === 45 || M === 46 || N2(M)) && n++ < 32 ? (e.consume(M), i) : (n = 0, l(M));
54771
+ return M === 58 ? (e.consume(M), n = 0, c) : (M === 43 || M === 45 || M === 46 || x2(M)) && n++ < 32 ? (e.consume(M), i) : (n = 0, l(M));
54772
54772
  }
54773
54773
  function c(M) {
54774
54774
  return M === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(M), e.exit("autolinkMarker"), e.exit("autolink"), t) : M === null || M === 32 || M === 60 || ac(M) ? o(M) : (e.consume(M), c);
@@ -54777,13 +54777,13 @@ function DJ(e, t, o) {
54777
54777
  return M === 64 ? (e.consume(M), p) : SJ(M) ? (e.consume(M), l) : o(M);
54778
54778
  }
54779
54779
  function p(M) {
54780
- return N2(M) ? d(M) : o(M);
54780
+ return x2(M) ? d(M) : o(M);
54781
54781
  }
54782
54782
  function d(M) {
54783
54783
  return M === 46 ? (e.consume(M), n = 0, p) : M === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(M), e.exit("autolinkMarker"), e.exit("autolink"), t) : u(M);
54784
54784
  }
54785
54785
  function u(M) {
54786
- if ((M === 45 || N2(M)) && n++ < 63) {
54786
+ if ((M === 45 || x2(M)) && n++ < 63) {
54787
54787
  const f = M === 45 ? u : d;
54788
54788
  return e.consume(M), f;
54789
54789
  }
@@ -54865,7 +54865,7 @@ function UJ(e, t, o) {
54865
54865
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), c;
54866
54866
  }
54867
54867
  function c(d) {
54868
- return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), l) : (e.enter("characterReferenceValue"), a = 31, r = N2, p(d));
54868
+ return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), l) : (e.enter("characterReferenceValue"), a = 31, r = x2, p(d));
54869
54869
  }
54870
54870
  function l(d) {
54871
54871
  return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, r = qJ, p) : (e.enter("characterReferenceValue"), a = 7, r = A4, p(d));
@@ -54873,7 +54873,7 @@ function UJ(e, t, o) {
54873
54873
  function p(d) {
54874
54874
  if (d === 59 && s) {
54875
54875
  const u = e.exit("characterReferenceValue");
54876
- return r === N2 && !Su(n.sliceSerialize(u)) ? o(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
54876
+ return r === x2 && !Su(n.sliceSerialize(u)) ? o(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
54877
54877
  }
54878
54878
  return r(d) && s++ < a ? (e.consume(d), p) : o(d);
54879
54879
  }
@@ -55625,7 +55625,7 @@ function g$(e, t, o) {
55625
55625
  const G = D === 47, U = r.toLowerCase();
55626
55626
  return !G && !a && t6.includes(U) ? (s = 1, n.interrupt ? t(D) : Q(D)) : _$.includes(r.toLowerCase()) ? (s = 6, G ? (e.consume(D), g) : n.interrupt ? t(D) : Q(D)) : (s = 7, n.interrupt && !n.parser.lazy[n.now().line] ? o(D) : a ? C(D) : E(D));
55627
55627
  }
55628
- return D === 45 || N2(D) ? (e.consume(D), r += String.fromCharCode(D), O) : o(D);
55628
+ return D === 45 || x2(D) ? (e.consume(D), r += String.fromCharCode(D), O) : o(D);
55629
55629
  }
55630
55630
  function g(D) {
55631
55631
  return D === 62 ? (e.consume(D), n.interrupt ? t : Q) : o(D);
@@ -55637,7 +55637,7 @@ function g$(e, t, o) {
55637
55637
  return D === 47 ? (e.consume(D), q) : D === 58 || D === 95 || K2(D) ? (e.consume(D), W) : _1(D) ? (e.consume(D), E) : q(D);
55638
55638
  }
55639
55639
  function W(D) {
55640
- return D === 45 || D === 46 || D === 58 || D === 95 || N2(D) ? (e.consume(D), W) : L(D);
55640
+ return D === 45 || D === 46 || D === 58 || D === 95 || x2(D) ? (e.consume(D), W) : L(D);
55641
55641
  }
55642
55642
  function L(D) {
55643
55643
  return D === 61 ? (e.consume(D), T) : _1(D) ? (e.consume(D), L) : E(D);
@@ -55769,19 +55769,19 @@ function E$(e, t, o) {
55769
55769
  return K2(S) ? (e.consume(S), T) : o(S);
55770
55770
  }
55771
55771
  function T(S) {
55772
- return S === 45 || N2(S) ? (e.consume(S), T) : F(S);
55772
+ return S === 45 || x2(S) ? (e.consume(S), T) : F(S);
55773
55773
  }
55774
55774
  function F(S) {
55775
55775
  return $0(S) ? (r = F, x(S)) : _1(S) ? (e.consume(S), F) : H(S);
55776
55776
  }
55777
55777
  function z(S) {
55778
- return S === 45 || N2(S) ? (e.consume(S), z) : S === 47 || S === 62 || U1(S) ? N(S) : o(S);
55778
+ return S === 45 || x2(S) ? (e.consume(S), z) : S === 47 || S === 62 || U1(S) ? N(S) : o(S);
55779
55779
  }
55780
55780
  function N(S) {
55781
55781
  return S === 47 ? (e.consume(S), H) : S === 58 || S === 95 || K2(S) ? (e.consume(S), q) : $0(S) ? (r = N, x(S)) : _1(S) ? (e.consume(S), N) : H(S);
55782
55782
  }
55783
55783
  function q(S) {
55784
- return S === 45 || S === 46 || S === 58 || S === 95 || N2(S) ? (e.consume(S), q) : B(S);
55784
+ return S === 45 || S === 46 || S === 58 || S === 95 || x2(S) ? (e.consume(S), q) : B(S);
55785
55785
  }
55786
55786
  function B(S) {
55787
55787
  return S === 61 ? (e.consume(S), Q) : $0(S) ? (r = B, x(S)) : _1(S) ? (e.consume(S), B) : N(S);
@@ -56751,18 +56751,18 @@ function C00(e) {
56751
56751
  if (o0[W0][0] === "enter")
56752
56752
  G0.push(W0);
56753
56753
  else {
56754
- const f0 = G0.pop();
56755
- W0 = s(o0, f0, W0);
56754
+ const M0 = G0.pop();
56755
+ W0 = s(o0, M0, W0);
56756
56756
  }
56757
56757
  for (W0 = -1; ++W0 < o0.length; ) {
56758
- const f0 = t[o0[W0][0]];
56759
- yO.call(f0, o0[W0][1].type) && f0[o0[W0][1].type].call(Object.assign({
56758
+ const M0 = t[o0[W0][0]];
56759
+ yO.call(M0, o0[W0][1].type) && M0[o0[W0][1].type].call(Object.assign({
56760
56760
  sliceSerialize: o0[W0][2].sliceSerialize
56761
56761
  }, H0), o0[W0][1]);
56762
56762
  }
56763
56763
  if (H0.tokenStack.length > 0) {
56764
- const f0 = H0.tokenStack[H0.tokenStack.length - 1];
56765
- (f0[1] || s6).call(H0, void 0, f0[0]);
56764
+ const M0 = H0.tokenStack[H0.tokenStack.length - 1];
56765
+ (M0[1] || s6).call(H0, void 0, M0[0]);
56766
56766
  }
56767
56767
  for (m0.position = {
56768
56768
  start: Kt(o0.length > 0 ? o0[0][1].start : {
@@ -56780,7 +56780,7 @@ function C00(e) {
56780
56780
  return m0;
56781
56781
  }
56782
56782
  function s(o0, m0, H0) {
56783
- let G0 = m0 - 1, W0 = -1, f0 = !1, V0, n1, a1, z1;
56783
+ let G0 = m0 - 1, W0 = -1, M0 = !1, V0, n1, a1, z1;
56784
56784
  for (; ++G0 <= H0; ) {
56785
56785
  const d1 = o0[G0];
56786
56786
  switch (d1[1].type) {
@@ -56810,7 +56810,7 @@ function C00(e) {
56810
56810
  const N1 = o0[K1];
56811
56811
  if (N1[1].type === "lineEnding" || N1[1].type === "lineEndingBlank") {
56812
56812
  if (N1[0] === "exit") continue;
56813
- n1 && (o0[n1][1].type = "lineEndingBlank", f0 = !0), N1[1].type = "lineEnding", n1 = K1;
56813
+ n1 && (o0[n1][1].type = "lineEndingBlank", M0 = !0), N1[1].type = "lineEnding", n1 = K1;
56814
56814
  } else if (!(N1[1].type === "linePrefix" || N1[1].type === "blockQuotePrefix" || N1[1].type === "blockQuotePrefixWhitespace" || N1[1].type === "blockQuoteMarker" || N1[1].type === "listItemIndent")) break;
56815
56815
  }
56816
56816
  a1 && (!n1 || a1 < n1) && (V0._spread = !0), V0.end = Object.assign({}, n1 ? o0[n1][1].start : d1[1].end), o0.splice(n1 || G0, 0, ["exit", V0, d1[2]]), G0++, H0++;
@@ -56827,7 +56827,7 @@ function C00(e) {
56827
56827
  }
56828
56828
  }
56829
56829
  }
56830
- return o0[m0][1]._spread = f0, H0;
56830
+ return o0[m0][1]._spread = M0, H0;
56831
56831
  }
56832
56832
  function a(o0, m0) {
56833
56833
  return H0;
@@ -58669,7 +58669,7 @@ class DO {
58669
58669
  * Message.
58670
58670
  */
58671
58671
  message(t, o, n) {
58672
- const s = new D2(
58672
+ const s = new P2(
58673
58673
  // @ts-expect-error: the overloads are fine.
58674
58674
  t,
58675
58675
  o,
@@ -60610,7 +60610,7 @@ function we0(e, t, o) {
60610
60610
  return v4(d) ? (e.consume(d), i) : d === 64 ? (e.consume(d), c) : o(d);
60611
60611
  }
60612
60612
  function c(d) {
60613
- return d === 46 ? e.check(ve0, p, l)(d) : d === 45 || d === 95 || N2(d) ? (a = !0, e.consume(d), c) : p(d);
60613
+ return d === 46 ? e.check(ve0, p, l)(d) : d === 45 || d === 95 || x2(d) ? (a = !0, e.consume(d), c) : p(d);
60614
60614
  }
60615
60615
  function l(d) {
60616
60616
  return e.consume(d), s = !0, c;
@@ -60714,7 +60714,7 @@ function Le0(e, t, o) {
60714
60714
  return e.consume(a), s;
60715
60715
  }
60716
60716
  function s(a) {
60717
- return N2(a) ? o(a) : t(a);
60717
+ return x2(a) ? o(a) : t(a);
60718
60718
  }
60719
60719
  }
60720
60720
  function i9(e) {
@@ -60727,7 +60727,7 @@ function l9(e) {
60727
60727
  return !(e === 47 || v4(e));
60728
60728
  }
60729
60729
  function v4(e) {
60730
- return e === 43 || e === 45 || e === 46 || e === 95 || N2(e);
60730
+ return e === 43 || e === 45 || e === 46 || e === 95 || x2(e);
60731
60731
  }
60732
60732
  function Nu(e) {
60733
60733
  let t = e.length, o = !1;
@@ -61809,10 +61809,10 @@ function M9(e) {
61809
61809
  function f9(e) {
61810
61810
  return e >= 64976 && e <= 65007 || St0.has(e);
61811
61811
  }
61812
- var M0;
61812
+ var f0;
61813
61813
  (function(e) {
61814
61814
  e.controlCharacterInInputStream = "control-character-in-input-stream", e.noncharacterInInputStream = "noncharacter-in-input-stream", e.surrogateInInputStream = "surrogate-in-input-stream", e.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", e.endTagWithAttributes = "end-tag-with-attributes", e.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", e.unexpectedSolidusInTag = "unexpected-solidus-in-tag", e.unexpectedNullCharacter = "unexpected-null-character", e.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", e.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", e.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", e.missingEndTagName = "missing-end-tag-name", e.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", e.unknownNamedCharacterReference = "unknown-named-character-reference", e.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", e.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", e.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", e.eofBeforeTagName = "eof-before-tag-name", e.eofInTag = "eof-in-tag", e.missingAttributeValue = "missing-attribute-value", e.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", e.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", e.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", e.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", e.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", e.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", e.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", e.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", e.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", e.cdataInHtmlContent = "cdata-in-html-content", e.incorrectlyOpenedComment = "incorrectly-opened-comment", e.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", e.eofInDoctype = "eof-in-doctype", e.nestedComment = "nested-comment", e.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", e.eofInComment = "eof-in-comment", e.incorrectlyClosedComment = "incorrectly-closed-comment", e.eofInCdata = "eof-in-cdata", e.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", e.nullCharacterReference = "null-character-reference", e.surrogateCharacterReference = "surrogate-character-reference", e.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", e.controlCharacterReference = "control-character-reference", e.noncharacterCharacterReference = "noncharacter-character-reference", e.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", e.missingDoctypeName = "missing-doctype-name", e.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", e.duplicateAttribute = "duplicate-attribute", e.nonConformingDoctype = "non-conforming-doctype", e.missingDoctype = "missing-doctype", e.misplacedDoctype = "misplaced-doctype", e.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", e.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", e.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", e.openElementsLeftAfterEof = "open-elements-left-after-eof", e.abandonedHeadElementChild = "abandoned-head-element-child", e.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", e.nestedNoscriptInHead = "nested-noscript-in-head", e.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text";
61815
- })(M0 || (M0 = {}));
61815
+ })(f0 || (f0 = {}));
61816
61816
  const Rt0 = 65536;
61817
61817
  class Bt0 {
61818
61818
  constructor(t) {
@@ -61850,7 +61850,7 @@ class Bt0 {
61850
61850
  return this.pos++, this._addGap(), yt0(t, o);
61851
61851
  } else if (!this.lastChunkWritten)
61852
61852
  return this.endOfChunkHit = !0, V.EOF;
61853
- return this._err(M0.surrogateInInputStream), t;
61853
+ return this._err(f0.surrogateInInputStream), t;
61854
61854
  }
61855
61855
  willDropParsedChunk() {
61856
61856
  return this.pos > this.bufferWaterline;
@@ -61888,7 +61888,7 @@ class Bt0 {
61888
61888
  return t === V.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, V.LINE_FEED) : t === V.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, h9(t) && (t = this._processSurrogate(t)), this.handler.onParseError === null || t > 31 && t < 127 || t === V.LINE_FEED || t === V.CARRIAGE_RETURN || t > 159 && t < 64976 || this._checkForProblematicCharacters(t), t);
61889
61889
  }
61890
61890
  _checkForProblematicCharacters(t) {
61891
- M9(t) ? this._err(M0.controlCharacterInInputStream) : f9(t) && this._err(M0.noncharacterInInputStream);
61891
+ M9(t) ? this._err(f0.controlCharacterInInputStream) : f9(t) && this._err(f0.noncharacterInInputStream);
61892
61892
  }
61893
61893
  retreat(t) {
61894
61894
  for (this.pos -= t; this.pos < this.lastGapPos; )
@@ -62458,7 +62458,7 @@ function W6(e) {
62458
62458
  return z9(e) || e === V.SOLIDUS || e === V.GREATER_THAN_SIGN;
62459
62459
  }
62460
62460
  function Kt0(e) {
62461
- return e === V.NULL ? M0.nullCharacterReference : e > 1114111 ? M0.characterReferenceOutsideUnicodeRange : h9(e) ? M0.surrogateCharacterReference : f9(e) ? M0.noncharacterCharacterReference : M9(e) || e === V.CARRIAGE_RETURN ? M0.controlCharacterReference : null;
62461
+ return e === V.NULL ? f0.nullCharacterReference : e > 1114111 ? f0.characterReferenceOutsideUnicodeRange : h9(e) ? f0.surrogateCharacterReference : f9(e) ? f0.noncharacterCharacterReference : M9(e) || e === V.CARRIAGE_RETURN ? f0.controlCharacterReference : null;
62462
62462
  }
62463
62463
  class jt0 {
62464
62464
  constructor(t, o) {
@@ -62466,10 +62466,10 @@ class jt0 {
62466
62466
  this.preprocessor.pos = this.entityStartPos + s - 1, this._flushCodePointConsumedAsCharacterReference(n);
62467
62467
  }, o.onParseError ? {
62468
62468
  missingSemicolonAfterCharacterReference: () => {
62469
- this._err(M0.missingSemicolonAfterCharacterReference, 1);
62469
+ this._err(f0.missingSemicolonAfterCharacterReference, 1);
62470
62470
  },
62471
62471
  absenceOfDigitsInNumericCharacterReference: (n) => {
62472
- this._err(M0.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + n);
62472
+ this._err(f0.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + n);
62473
62473
  },
62474
62474
  validateNumericCharacterReference: (n) => {
62475
62475
  const s = Kt0(n);
@@ -62597,7 +62597,7 @@ class jt0 {
62597
62597
  s[this.currentAttr.name] = this.currentLocation, this._leaveAttrValue();
62598
62598
  }
62599
62599
  } else
62600
- this._err(M0.duplicateAttribute);
62600
+ this._err(f0.duplicateAttribute);
62601
62601
  }
62602
62602
  _leaveAttrValue() {
62603
62603
  this.currentLocation && (this.currentLocation.endLine = this.preprocessor.line, this.currentLocation.endCol = this.preprocessor.col, this.currentLocation.endOffset = this.preprocessor.offset);
@@ -62608,7 +62608,7 @@ class jt0 {
62608
62608
  }
62609
62609
  emitCurrentTagToken() {
62610
62610
  const t = this.currentToken;
62611
- this.prepareToken(t), t.tagID = Os(t.tagName), t.type === f1.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(M0.endTagWithAttributes), t.selfClosing && this._err(M0.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
62611
+ this.prepareToken(t), t.tagID = Os(t.tagName), t.type === f1.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(f0.endTagWithAttributes), t.selfClosing && this._err(f0.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
62612
62612
  }
62613
62613
  emitCurrentComment(t) {
62614
62614
  this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
@@ -62989,7 +62989,7 @@ class jt0 {
62989
62989
  break;
62990
62990
  }
62991
62991
  case V.NULL: {
62992
- this._err(M0.unexpectedNullCharacter), this._emitCodePoint(t);
62992
+ this._err(f0.unexpectedNullCharacter), this._emitCodePoint(t);
62993
62993
  break;
62994
62994
  }
62995
62995
  case V.EOF: {
@@ -63013,7 +63013,7 @@ class jt0 {
63013
63013
  break;
63014
63014
  }
63015
63015
  case V.NULL: {
63016
- this._err(M0.unexpectedNullCharacter), this._emitChars(s2);
63016
+ this._err(f0.unexpectedNullCharacter), this._emitChars(s2);
63017
63017
  break;
63018
63018
  }
63019
63019
  case V.EOF: {
@@ -63033,7 +63033,7 @@ class jt0 {
63033
63033
  break;
63034
63034
  }
63035
63035
  case V.NULL: {
63036
- this._err(M0.unexpectedNullCharacter), this._emitChars(s2);
63036
+ this._err(f0.unexpectedNullCharacter), this._emitChars(s2);
63037
63037
  break;
63038
63038
  }
63039
63039
  case V.EOF: {
@@ -63053,7 +63053,7 @@ class jt0 {
63053
63053
  break;
63054
63054
  }
63055
63055
  case V.NULL: {
63056
- this._err(M0.unexpectedNullCharacter), this._emitChars(s2);
63056
+ this._err(f0.unexpectedNullCharacter), this._emitChars(s2);
63057
63057
  break;
63058
63058
  }
63059
63059
  case V.EOF: {
@@ -63069,7 +63069,7 @@ class jt0 {
63069
63069
  _statePlaintext(t) {
63070
63070
  switch (t) {
63071
63071
  case V.NULL: {
63072
- this._err(M0.unexpectedNullCharacter), this._emitChars(s2);
63072
+ this._err(f0.unexpectedNullCharacter), this._emitChars(s2);
63073
63073
  break;
63074
63074
  }
63075
63075
  case V.EOF: {
@@ -63096,15 +63096,15 @@ class jt0 {
63096
63096
  break;
63097
63097
  }
63098
63098
  case V.QUESTION_MARK: {
63099
- this._err(M0.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = K.BOGUS_COMMENT, this._stateBogusComment(t);
63099
+ this._err(f0.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = K.BOGUS_COMMENT, this._stateBogusComment(t);
63100
63100
  break;
63101
63101
  }
63102
63102
  case V.EOF: {
63103
- this._err(M0.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
63103
+ this._err(f0.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
63104
63104
  break;
63105
63105
  }
63106
63106
  default:
63107
- this._err(M0.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = K.DATA, this._stateData(t);
63107
+ this._err(f0.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = K.DATA, this._stateData(t);
63108
63108
  }
63109
63109
  }
63110
63110
  // End tag open state
@@ -63115,15 +63115,15 @@ class jt0 {
63115
63115
  else
63116
63116
  switch (t) {
63117
63117
  case V.GREATER_THAN_SIGN: {
63118
- this._err(M0.missingEndTagName), this.state = K.DATA;
63118
+ this._err(f0.missingEndTagName), this.state = K.DATA;
63119
63119
  break;
63120
63120
  }
63121
63121
  case V.EOF: {
63122
- this._err(M0.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
63122
+ this._err(f0.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
63123
63123
  break;
63124
63124
  }
63125
63125
  default:
63126
- this._err(M0.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = K.BOGUS_COMMENT, this._stateBogusComment(t);
63126
+ this._err(f0.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = K.BOGUS_COMMENT, this._stateBogusComment(t);
63127
63127
  }
63128
63128
  }
63129
63129
  // Tag name state
@@ -63147,11 +63147,11 @@ class jt0 {
63147
63147
  break;
63148
63148
  }
63149
63149
  case V.NULL: {
63150
- this._err(M0.unexpectedNullCharacter), o.tagName += s2;
63150
+ this._err(f0.unexpectedNullCharacter), o.tagName += s2;
63151
63151
  break;
63152
63152
  }
63153
63153
  case V.EOF: {
63154
- this._err(M0.eofInTag), this._emitEOFToken();
63154
+ this._err(f0.eofInTag), this._emitEOFToken();
63155
63155
  break;
63156
63156
  }
63157
63157
  default:
@@ -63256,11 +63256,11 @@ class jt0 {
63256
63256
  break;
63257
63257
  }
63258
63258
  case V.NULL: {
63259
- this._err(M0.unexpectedNullCharacter), this._emitChars(s2);
63259
+ this._err(f0.unexpectedNullCharacter), this._emitChars(s2);
63260
63260
  break;
63261
63261
  }
63262
63262
  case V.EOF: {
63263
- this._err(M0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63263
+ this._err(f0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63264
63264
  break;
63265
63265
  }
63266
63266
  default:
@@ -63280,11 +63280,11 @@ class jt0 {
63280
63280
  break;
63281
63281
  }
63282
63282
  case V.NULL: {
63283
- this._err(M0.unexpectedNullCharacter), this.state = K.SCRIPT_DATA_ESCAPED, this._emitChars(s2);
63283
+ this._err(f0.unexpectedNullCharacter), this.state = K.SCRIPT_DATA_ESCAPED, this._emitChars(s2);
63284
63284
  break;
63285
63285
  }
63286
63286
  case V.EOF: {
63287
- this._err(M0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63287
+ this._err(f0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63288
63288
  break;
63289
63289
  }
63290
63290
  default:
@@ -63308,11 +63308,11 @@ class jt0 {
63308
63308
  break;
63309
63309
  }
63310
63310
  case V.NULL: {
63311
- this._err(M0.unexpectedNullCharacter), this.state = K.SCRIPT_DATA_ESCAPED, this._emitChars(s2);
63311
+ this._err(f0.unexpectedNullCharacter), this.state = K.SCRIPT_DATA_ESCAPED, this._emitChars(s2);
63312
63312
  break;
63313
63313
  }
63314
63314
  case V.EOF: {
63315
- this._err(M0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63315
+ this._err(f0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63316
63316
  break;
63317
63317
  }
63318
63318
  default:
@@ -63357,11 +63357,11 @@ class jt0 {
63357
63357
  break;
63358
63358
  }
63359
63359
  case V.NULL: {
63360
- this._err(M0.unexpectedNullCharacter), this._emitChars(s2);
63360
+ this._err(f0.unexpectedNullCharacter), this._emitChars(s2);
63361
63361
  break;
63362
63362
  }
63363
63363
  case V.EOF: {
63364
- this._err(M0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63364
+ this._err(f0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63365
63365
  break;
63366
63366
  }
63367
63367
  default:
@@ -63381,11 +63381,11 @@ class jt0 {
63381
63381
  break;
63382
63382
  }
63383
63383
  case V.NULL: {
63384
- this._err(M0.unexpectedNullCharacter), this.state = K.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(s2);
63384
+ this._err(f0.unexpectedNullCharacter), this.state = K.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(s2);
63385
63385
  break;
63386
63386
  }
63387
63387
  case V.EOF: {
63388
- this._err(M0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63388
+ this._err(f0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63389
63389
  break;
63390
63390
  }
63391
63391
  default:
@@ -63409,11 +63409,11 @@ class jt0 {
63409
63409
  break;
63410
63410
  }
63411
63411
  case V.NULL: {
63412
- this._err(M0.unexpectedNullCharacter), this.state = K.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(s2);
63412
+ this._err(f0.unexpectedNullCharacter), this.state = K.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(s2);
63413
63413
  break;
63414
63414
  }
63415
63415
  case V.EOF: {
63416
- this._err(M0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63416
+ this._err(f0.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
63417
63417
  break;
63418
63418
  }
63419
63419
  default:
@@ -63451,7 +63451,7 @@ class jt0 {
63451
63451
  break;
63452
63452
  }
63453
63453
  case V.EQUALS_SIGN: {
63454
- this._err(M0.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = K.ATTRIBUTE_NAME;
63454
+ this._err(f0.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = K.ATTRIBUTE_NAME;
63455
63455
  break;
63456
63456
  }
63457
63457
  default:
@@ -63479,11 +63479,11 @@ class jt0 {
63479
63479
  case V.QUOTATION_MARK:
63480
63480
  case V.APOSTROPHE:
63481
63481
  case V.LESS_THAN_SIGN: {
63482
- this._err(M0.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(t);
63482
+ this._err(f0.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(t);
63483
63483
  break;
63484
63484
  }
63485
63485
  case V.NULL: {
63486
- this._err(M0.unexpectedNullCharacter), this.currentAttr.name += s2;
63486
+ this._err(f0.unexpectedNullCharacter), this.currentAttr.name += s2;
63487
63487
  break;
63488
63488
  }
63489
63489
  default:
@@ -63512,7 +63512,7 @@ class jt0 {
63512
63512
  break;
63513
63513
  }
63514
63514
  case V.EOF: {
63515
- this._err(M0.eofInTag), this._emitEOFToken();
63515
+ this._err(f0.eofInTag), this._emitEOFToken();
63516
63516
  break;
63517
63517
  }
63518
63518
  default:
@@ -63537,7 +63537,7 @@ class jt0 {
63537
63537
  break;
63538
63538
  }
63539
63539
  case V.GREATER_THAN_SIGN: {
63540
- this._err(M0.missingAttributeValue), this.state = K.DATA, this.emitCurrentTagToken();
63540
+ this._err(f0.missingAttributeValue), this.state = K.DATA, this.emitCurrentTagToken();
63541
63541
  break;
63542
63542
  }
63543
63543
  default:
@@ -63557,11 +63557,11 @@ class jt0 {
63557
63557
  break;
63558
63558
  }
63559
63559
  case V.NULL: {
63560
- this._err(M0.unexpectedNullCharacter), this.currentAttr.value += s2;
63560
+ this._err(f0.unexpectedNullCharacter), this.currentAttr.value += s2;
63561
63561
  break;
63562
63562
  }
63563
63563
  case V.EOF: {
63564
- this._err(M0.eofInTag), this._emitEOFToken();
63564
+ this._err(f0.eofInTag), this._emitEOFToken();
63565
63565
  break;
63566
63566
  }
63567
63567
  default:
@@ -63581,11 +63581,11 @@ class jt0 {
63581
63581
  break;
63582
63582
  }
63583
63583
  case V.NULL: {
63584
- this._err(M0.unexpectedNullCharacter), this.currentAttr.value += s2;
63584
+ this._err(f0.unexpectedNullCharacter), this.currentAttr.value += s2;
63585
63585
  break;
63586
63586
  }
63587
63587
  case V.EOF: {
63588
- this._err(M0.eofInTag), this._emitEOFToken();
63588
+ this._err(f0.eofInTag), this._emitEOFToken();
63589
63589
  break;
63590
63590
  }
63591
63591
  default:
@@ -63612,7 +63612,7 @@ class jt0 {
63612
63612
  break;
63613
63613
  }
63614
63614
  case V.NULL: {
63615
- this._err(M0.unexpectedNullCharacter), this.currentAttr.value += s2;
63615
+ this._err(f0.unexpectedNullCharacter), this.currentAttr.value += s2;
63616
63616
  break;
63617
63617
  }
63618
63618
  case V.QUOTATION_MARK:
@@ -63620,11 +63620,11 @@ class jt0 {
63620
63620
  case V.LESS_THAN_SIGN:
63621
63621
  case V.EQUALS_SIGN:
63622
63622
  case V.GRAVE_ACCENT: {
63623
- this._err(M0.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(t);
63623
+ this._err(f0.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(t);
63624
63624
  break;
63625
63625
  }
63626
63626
  case V.EOF: {
63627
- this._err(M0.eofInTag), this._emitEOFToken();
63627
+ this._err(f0.eofInTag), this._emitEOFToken();
63628
63628
  break;
63629
63629
  }
63630
63630
  default:
@@ -63651,11 +63651,11 @@ class jt0 {
63651
63651
  break;
63652
63652
  }
63653
63653
  case V.EOF: {
63654
- this._err(M0.eofInTag), this._emitEOFToken();
63654
+ this._err(f0.eofInTag), this._emitEOFToken();
63655
63655
  break;
63656
63656
  }
63657
63657
  default:
63658
- this._err(M0.missingWhitespaceBetweenAttributes), this.state = K.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
63658
+ this._err(f0.missingWhitespaceBetweenAttributes), this.state = K.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
63659
63659
  }
63660
63660
  }
63661
63661
  // Self-closing start tag state
@@ -63668,11 +63668,11 @@ class jt0 {
63668
63668
  break;
63669
63669
  }
63670
63670
  case V.EOF: {
63671
- this._err(M0.eofInTag), this._emitEOFToken();
63671
+ this._err(f0.eofInTag), this._emitEOFToken();
63672
63672
  break;
63673
63673
  }
63674
63674
  default:
63675
- this._err(M0.unexpectedSolidusInTag), this.state = K.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
63675
+ this._err(f0.unexpectedSolidusInTag), this.state = K.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
63676
63676
  }
63677
63677
  }
63678
63678
  // Bogus comment state
@@ -63689,7 +63689,7 @@ class jt0 {
63689
63689
  break;
63690
63690
  }
63691
63691
  case V.NULL: {
63692
- this._err(M0.unexpectedNullCharacter), o.data += s2;
63692
+ this._err(f0.unexpectedNullCharacter), o.data += s2;
63693
63693
  break;
63694
63694
  }
63695
63695
  default:
@@ -63699,7 +63699,7 @@ class jt0 {
63699
63699
  // Markup declaration open state
63700
63700
  //------------------------------------------------------------------
63701
63701
  _stateMarkupDeclarationOpen(t) {
63702
- this._consumeSequenceIfMatch(Y2.DASH_DASH, !0) ? (this._createCommentToken(Y2.DASH_DASH.length + 1), this.state = K.COMMENT_START) : this._consumeSequenceIfMatch(Y2.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Y2.DOCTYPE.length + 1), this.state = K.DOCTYPE) : this._consumeSequenceIfMatch(Y2.CDATA_START, !0) ? this.inForeignNode ? this.state = K.CDATA_SECTION : (this._err(M0.cdataInHtmlContent), this._createCommentToken(Y2.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = K.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(M0.incorrectlyOpenedComment), this._createCommentToken(2), this.state = K.BOGUS_COMMENT, this._stateBogusComment(t));
63702
+ this._consumeSequenceIfMatch(Y2.DASH_DASH, !0) ? (this._createCommentToken(Y2.DASH_DASH.length + 1), this.state = K.COMMENT_START) : this._consumeSequenceIfMatch(Y2.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Y2.DOCTYPE.length + 1), this.state = K.DOCTYPE) : this._consumeSequenceIfMatch(Y2.CDATA_START, !0) ? this.inForeignNode ? this.state = K.CDATA_SECTION : (this._err(f0.cdataInHtmlContent), this._createCommentToken(Y2.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = K.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(f0.incorrectlyOpenedComment), this._createCommentToken(2), this.state = K.BOGUS_COMMENT, this._stateBogusComment(t));
63703
63703
  }
63704
63704
  // Comment start state
63705
63705
  //------------------------------------------------------------------
@@ -63710,7 +63710,7 @@ class jt0 {
63710
63710
  break;
63711
63711
  }
63712
63712
  case V.GREATER_THAN_SIGN: {
63713
- this._err(M0.abruptClosingOfEmptyComment), this.state = K.DATA;
63713
+ this._err(f0.abruptClosingOfEmptyComment), this.state = K.DATA;
63714
63714
  const o = this.currentToken;
63715
63715
  this.emitCurrentComment(o);
63716
63716
  break;
@@ -63729,11 +63729,11 @@ class jt0 {
63729
63729
  break;
63730
63730
  }
63731
63731
  case V.GREATER_THAN_SIGN: {
63732
- this._err(M0.abruptClosingOfEmptyComment), this.state = K.DATA, this.emitCurrentComment(o);
63732
+ this._err(f0.abruptClosingOfEmptyComment), this.state = K.DATA, this.emitCurrentComment(o);
63733
63733
  break;
63734
63734
  }
63735
63735
  case V.EOF: {
63736
- this._err(M0.eofInComment), this.emitCurrentComment(o), this._emitEOFToken();
63736
+ this._err(f0.eofInComment), this.emitCurrentComment(o), this._emitEOFToken();
63737
63737
  break;
63738
63738
  }
63739
63739
  default:
@@ -63754,11 +63754,11 @@ class jt0 {
63754
63754
  break;
63755
63755
  }
63756
63756
  case V.NULL: {
63757
- this._err(M0.unexpectedNullCharacter), o.data += s2;
63757
+ this._err(f0.unexpectedNullCharacter), o.data += s2;
63758
63758
  break;
63759
63759
  }
63760
63760
  case V.EOF: {
63761
- this._err(M0.eofInComment), this.emitCurrentComment(o), this._emitEOFToken();
63761
+ this._err(f0.eofInComment), this.emitCurrentComment(o), this._emitEOFToken();
63762
63762
  break;
63763
63763
  }
63764
63764
  default:
@@ -63795,7 +63795,7 @@ class jt0 {
63795
63795
  // Comment less-than sign bang dash dash state
63796
63796
  //------------------------------------------------------------------
63797
63797
  _stateCommentLessThanSignBangDashDash(t) {
63798
- t !== V.GREATER_THAN_SIGN && t !== V.EOF && this._err(M0.nestedComment), this.state = K.COMMENT_END, this._stateCommentEnd(t);
63798
+ t !== V.GREATER_THAN_SIGN && t !== V.EOF && this._err(f0.nestedComment), this.state = K.COMMENT_END, this._stateCommentEnd(t);
63799
63799
  }
63800
63800
  // Comment end dash state
63801
63801
  //------------------------------------------------------------------
@@ -63807,7 +63807,7 @@ class jt0 {
63807
63807
  break;
63808
63808
  }
63809
63809
  case V.EOF: {
63810
- this._err(M0.eofInComment), this.emitCurrentComment(o), this._emitEOFToken();
63810
+ this._err(f0.eofInComment), this.emitCurrentComment(o), this._emitEOFToken();
63811
63811
  break;
63812
63812
  }
63813
63813
  default:
@@ -63832,7 +63832,7 @@ class jt0 {
63832
63832
  break;
63833
63833
  }
63834
63834
  case V.EOF: {
63835
- this._err(M0.eofInComment), this.emitCurrentComment(o), this._emitEOFToken();
63835
+ this._err(f0.eofInComment), this.emitCurrentComment(o), this._emitEOFToken();
63836
63836
  break;
63837
63837
  }
63838
63838
  default:
@@ -63849,11 +63849,11 @@ class jt0 {
63849
63849
  break;
63850
63850
  }
63851
63851
  case V.GREATER_THAN_SIGN: {
63852
- this._err(M0.incorrectlyClosedComment), this.state = K.DATA, this.emitCurrentComment(o);
63852
+ this._err(f0.incorrectlyClosedComment), this.state = K.DATA, this.emitCurrentComment(o);
63853
63853
  break;
63854
63854
  }
63855
63855
  case V.EOF: {
63856
- this._err(M0.eofInComment), this.emitCurrentComment(o), this._emitEOFToken();
63856
+ this._err(f0.eofInComment), this.emitCurrentComment(o), this._emitEOFToken();
63857
63857
  break;
63858
63858
  }
63859
63859
  default:
@@ -63876,13 +63876,13 @@ class jt0 {
63876
63876
  break;
63877
63877
  }
63878
63878
  case V.EOF: {
63879
- this._err(M0.eofInDoctype), this._createDoctypeToken(null);
63879
+ this._err(f0.eofInDoctype), this._createDoctypeToken(null);
63880
63880
  const o = this.currentToken;
63881
63881
  o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
63882
63882
  break;
63883
63883
  }
63884
63884
  default:
63885
- this._err(M0.missingWhitespaceBeforeDoctypeName), this.state = K.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
63885
+ this._err(f0.missingWhitespaceBeforeDoctypeName), this.state = K.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
63886
63886
  }
63887
63887
  }
63888
63888
  // Before DOCTYPE name state
@@ -63898,17 +63898,17 @@ class jt0 {
63898
63898
  case V.FORM_FEED:
63899
63899
  break;
63900
63900
  case V.NULL: {
63901
- this._err(M0.unexpectedNullCharacter), this._createDoctypeToken(s2), this.state = K.DOCTYPE_NAME;
63901
+ this._err(f0.unexpectedNullCharacter), this._createDoctypeToken(s2), this.state = K.DOCTYPE_NAME;
63902
63902
  break;
63903
63903
  }
63904
63904
  case V.GREATER_THAN_SIGN: {
63905
- this._err(M0.missingDoctypeName), this._createDoctypeToken(null);
63905
+ this._err(f0.missingDoctypeName), this._createDoctypeToken(null);
63906
63906
  const o = this.currentToken;
63907
63907
  o.forceQuirks = !0, this.emitCurrentDoctype(o), this.state = K.DATA;
63908
63908
  break;
63909
63909
  }
63910
63910
  case V.EOF: {
63911
- this._err(M0.eofInDoctype), this._createDoctypeToken(null);
63911
+ this._err(f0.eofInDoctype), this._createDoctypeToken(null);
63912
63912
  const o = this.currentToken;
63913
63913
  o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
63914
63914
  break;
@@ -63934,11 +63934,11 @@ class jt0 {
63934
63934
  break;
63935
63935
  }
63936
63936
  case V.NULL: {
63937
- this._err(M0.unexpectedNullCharacter), o.name += s2;
63937
+ this._err(f0.unexpectedNullCharacter), o.name += s2;
63938
63938
  break;
63939
63939
  }
63940
63940
  case V.EOF: {
63941
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
63941
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
63942
63942
  break;
63943
63943
  }
63944
63944
  default:
@@ -63960,11 +63960,11 @@ class jt0 {
63960
63960
  break;
63961
63961
  }
63962
63962
  case V.EOF: {
63963
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
63963
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
63964
63964
  break;
63965
63965
  }
63966
63966
  default:
63967
- this._consumeSequenceIfMatch(Y2.PUBLIC, !1) ? this.state = K.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Y2.SYSTEM, !1) ? this.state = K.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(M0.invalidCharacterSequenceAfterDoctypeName), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
63967
+ this._consumeSequenceIfMatch(Y2.PUBLIC, !1) ? this.state = K.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Y2.SYSTEM, !1) ? this.state = K.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(f0.invalidCharacterSequenceAfterDoctypeName), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
63968
63968
  }
63969
63969
  }
63970
63970
  // After DOCTYPE public keyword state
@@ -63980,23 +63980,23 @@ class jt0 {
63980
63980
  break;
63981
63981
  }
63982
63982
  case V.QUOTATION_MARK: {
63983
- this._err(M0.missingWhitespaceAfterDoctypePublicKeyword), o.publicId = "", this.state = K.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
63983
+ this._err(f0.missingWhitespaceAfterDoctypePublicKeyword), o.publicId = "", this.state = K.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
63984
63984
  break;
63985
63985
  }
63986
63986
  case V.APOSTROPHE: {
63987
- this._err(M0.missingWhitespaceAfterDoctypePublicKeyword), o.publicId = "", this.state = K.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
63987
+ this._err(f0.missingWhitespaceAfterDoctypePublicKeyword), o.publicId = "", this.state = K.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
63988
63988
  break;
63989
63989
  }
63990
63990
  case V.GREATER_THAN_SIGN: {
63991
- this._err(M0.missingDoctypePublicIdentifier), o.forceQuirks = !0, this.state = K.DATA, this.emitCurrentDoctype(o);
63991
+ this._err(f0.missingDoctypePublicIdentifier), o.forceQuirks = !0, this.state = K.DATA, this.emitCurrentDoctype(o);
63992
63992
  break;
63993
63993
  }
63994
63994
  case V.EOF: {
63995
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
63995
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
63996
63996
  break;
63997
63997
  }
63998
63998
  default:
63999
- this._err(M0.missingQuoteBeforeDoctypePublicIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
63999
+ this._err(f0.missingQuoteBeforeDoctypePublicIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64000
64000
  }
64001
64001
  }
64002
64002
  // Before DOCTYPE public identifier state
@@ -64018,15 +64018,15 @@ class jt0 {
64018
64018
  break;
64019
64019
  }
64020
64020
  case V.GREATER_THAN_SIGN: {
64021
- this._err(M0.missingDoctypePublicIdentifier), o.forceQuirks = !0, this.state = K.DATA, this.emitCurrentDoctype(o);
64021
+ this._err(f0.missingDoctypePublicIdentifier), o.forceQuirks = !0, this.state = K.DATA, this.emitCurrentDoctype(o);
64022
64022
  break;
64023
64023
  }
64024
64024
  case V.EOF: {
64025
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64025
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64026
64026
  break;
64027
64027
  }
64028
64028
  default:
64029
- this._err(M0.missingQuoteBeforeDoctypePublicIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64029
+ this._err(f0.missingQuoteBeforeDoctypePublicIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64030
64030
  }
64031
64031
  }
64032
64032
  // DOCTYPE public identifier (double-quoted) state
@@ -64039,15 +64039,15 @@ class jt0 {
64039
64039
  break;
64040
64040
  }
64041
64041
  case V.NULL: {
64042
- this._err(M0.unexpectedNullCharacter), o.publicId += s2;
64042
+ this._err(f0.unexpectedNullCharacter), o.publicId += s2;
64043
64043
  break;
64044
64044
  }
64045
64045
  case V.GREATER_THAN_SIGN: {
64046
- this._err(M0.abruptDoctypePublicIdentifier), o.forceQuirks = !0, this.emitCurrentDoctype(o), this.state = K.DATA;
64046
+ this._err(f0.abruptDoctypePublicIdentifier), o.forceQuirks = !0, this.emitCurrentDoctype(o), this.state = K.DATA;
64047
64047
  break;
64048
64048
  }
64049
64049
  case V.EOF: {
64050
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64050
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64051
64051
  break;
64052
64052
  }
64053
64053
  default:
@@ -64064,15 +64064,15 @@ class jt0 {
64064
64064
  break;
64065
64065
  }
64066
64066
  case V.NULL: {
64067
- this._err(M0.unexpectedNullCharacter), o.publicId += s2;
64067
+ this._err(f0.unexpectedNullCharacter), o.publicId += s2;
64068
64068
  break;
64069
64069
  }
64070
64070
  case V.GREATER_THAN_SIGN: {
64071
- this._err(M0.abruptDoctypePublicIdentifier), o.forceQuirks = !0, this.emitCurrentDoctype(o), this.state = K.DATA;
64071
+ this._err(f0.abruptDoctypePublicIdentifier), o.forceQuirks = !0, this.emitCurrentDoctype(o), this.state = K.DATA;
64072
64072
  break;
64073
64073
  }
64074
64074
  case V.EOF: {
64075
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64075
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64076
64076
  break;
64077
64077
  }
64078
64078
  default:
@@ -64096,19 +64096,19 @@ class jt0 {
64096
64096
  break;
64097
64097
  }
64098
64098
  case V.QUOTATION_MARK: {
64099
- this._err(M0.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), o.systemId = "", this.state = K.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
64099
+ this._err(f0.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), o.systemId = "", this.state = K.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
64100
64100
  break;
64101
64101
  }
64102
64102
  case V.APOSTROPHE: {
64103
- this._err(M0.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), o.systemId = "", this.state = K.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
64103
+ this._err(f0.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), o.systemId = "", this.state = K.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
64104
64104
  break;
64105
64105
  }
64106
64106
  case V.EOF: {
64107
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64107
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64108
64108
  break;
64109
64109
  }
64110
64110
  default:
64111
- this._err(M0.missingQuoteBeforeDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64111
+ this._err(f0.missingQuoteBeforeDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64112
64112
  }
64113
64113
  }
64114
64114
  // Between DOCTYPE public and system identifiers state
@@ -64134,11 +64134,11 @@ class jt0 {
64134
64134
  break;
64135
64135
  }
64136
64136
  case V.EOF: {
64137
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64137
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64138
64138
  break;
64139
64139
  }
64140
64140
  default:
64141
- this._err(M0.missingQuoteBeforeDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64141
+ this._err(f0.missingQuoteBeforeDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64142
64142
  }
64143
64143
  }
64144
64144
  // After DOCTYPE system keyword state
@@ -64154,23 +64154,23 @@ class jt0 {
64154
64154
  break;
64155
64155
  }
64156
64156
  case V.QUOTATION_MARK: {
64157
- this._err(M0.missingWhitespaceAfterDoctypeSystemKeyword), o.systemId = "", this.state = K.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
64157
+ this._err(f0.missingWhitespaceAfterDoctypeSystemKeyword), o.systemId = "", this.state = K.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
64158
64158
  break;
64159
64159
  }
64160
64160
  case V.APOSTROPHE: {
64161
- this._err(M0.missingWhitespaceAfterDoctypeSystemKeyword), o.systemId = "", this.state = K.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
64161
+ this._err(f0.missingWhitespaceAfterDoctypeSystemKeyword), o.systemId = "", this.state = K.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
64162
64162
  break;
64163
64163
  }
64164
64164
  case V.GREATER_THAN_SIGN: {
64165
- this._err(M0.missingDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.DATA, this.emitCurrentDoctype(o);
64165
+ this._err(f0.missingDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.DATA, this.emitCurrentDoctype(o);
64166
64166
  break;
64167
64167
  }
64168
64168
  case V.EOF: {
64169
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64169
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64170
64170
  break;
64171
64171
  }
64172
64172
  default:
64173
- this._err(M0.missingQuoteBeforeDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64173
+ this._err(f0.missingQuoteBeforeDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64174
64174
  }
64175
64175
  }
64176
64176
  // Before DOCTYPE system identifier state
@@ -64192,15 +64192,15 @@ class jt0 {
64192
64192
  break;
64193
64193
  }
64194
64194
  case V.GREATER_THAN_SIGN: {
64195
- this._err(M0.missingDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.DATA, this.emitCurrentDoctype(o);
64195
+ this._err(f0.missingDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.DATA, this.emitCurrentDoctype(o);
64196
64196
  break;
64197
64197
  }
64198
64198
  case V.EOF: {
64199
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64199
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64200
64200
  break;
64201
64201
  }
64202
64202
  default:
64203
- this._err(M0.missingQuoteBeforeDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64203
+ this._err(f0.missingQuoteBeforeDoctypeSystemIdentifier), o.forceQuirks = !0, this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64204
64204
  }
64205
64205
  }
64206
64206
  // DOCTYPE system identifier (double-quoted) state
@@ -64213,15 +64213,15 @@ class jt0 {
64213
64213
  break;
64214
64214
  }
64215
64215
  case V.NULL: {
64216
- this._err(M0.unexpectedNullCharacter), o.systemId += s2;
64216
+ this._err(f0.unexpectedNullCharacter), o.systemId += s2;
64217
64217
  break;
64218
64218
  }
64219
64219
  case V.GREATER_THAN_SIGN: {
64220
- this._err(M0.abruptDoctypeSystemIdentifier), o.forceQuirks = !0, this.emitCurrentDoctype(o), this.state = K.DATA;
64220
+ this._err(f0.abruptDoctypeSystemIdentifier), o.forceQuirks = !0, this.emitCurrentDoctype(o), this.state = K.DATA;
64221
64221
  break;
64222
64222
  }
64223
64223
  case V.EOF: {
64224
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64224
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64225
64225
  break;
64226
64226
  }
64227
64227
  default:
@@ -64238,15 +64238,15 @@ class jt0 {
64238
64238
  break;
64239
64239
  }
64240
64240
  case V.NULL: {
64241
- this._err(M0.unexpectedNullCharacter), o.systemId += s2;
64241
+ this._err(f0.unexpectedNullCharacter), o.systemId += s2;
64242
64242
  break;
64243
64243
  }
64244
64244
  case V.GREATER_THAN_SIGN: {
64245
- this._err(M0.abruptDoctypeSystemIdentifier), o.forceQuirks = !0, this.emitCurrentDoctype(o), this.state = K.DATA;
64245
+ this._err(f0.abruptDoctypeSystemIdentifier), o.forceQuirks = !0, this.emitCurrentDoctype(o), this.state = K.DATA;
64246
64246
  break;
64247
64247
  }
64248
64248
  case V.EOF: {
64249
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64249
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64250
64250
  break;
64251
64251
  }
64252
64252
  default:
@@ -64268,11 +64268,11 @@ class jt0 {
64268
64268
  break;
64269
64269
  }
64270
64270
  case V.EOF: {
64271
- this._err(M0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64271
+ this._err(f0.eofInDoctype), o.forceQuirks = !0, this.emitCurrentDoctype(o), this._emitEOFToken();
64272
64272
  break;
64273
64273
  }
64274
64274
  default:
64275
- this._err(M0.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64275
+ this._err(f0.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = K.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
64276
64276
  }
64277
64277
  }
64278
64278
  // Bogus DOCTYPE state
@@ -64285,7 +64285,7 @@ class jt0 {
64285
64285
  break;
64286
64286
  }
64287
64287
  case V.NULL: {
64288
- this._err(M0.unexpectedNullCharacter);
64288
+ this._err(f0.unexpectedNullCharacter);
64289
64289
  break;
64290
64290
  }
64291
64291
  case V.EOF: {
@@ -64303,7 +64303,7 @@ class jt0 {
64303
64303
  break;
64304
64304
  }
64305
64305
  case V.EOF: {
64306
- this._err(M0.eofInCdata), this._emitEOFToken();
64306
+ this._err(f0.eofInCdata), this._emitEOFToken();
64307
64307
  break;
64308
64308
  }
64309
64309
  default:
@@ -64347,7 +64347,7 @@ class jt0 {
64347
64347
  // Ambiguos ampersand state
64348
64348
  //------------------------------------------------------------------
64349
64349
  _stateAmbiguousAmpersand(t) {
64350
- B6(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === V.SEMICOLON && this._err(M0.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
64350
+ B6(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === V.SEMICOLON && this._err(f0.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
64351
64351
  }
64352
64352
  }
64353
64353
  const A9 = /* @__PURE__ */ new Set([m.DD, m.DT, m.LI, m.OPTGROUP, m.OPTION, m.P, m.RB, m.RP, m.RT, m.RTC]), L6 = /* @__PURE__ */ new Set([
@@ -65710,7 +65710,7 @@ class F6 {
65710
65710
  case Z.IN_HEAD:
65711
65711
  case Z.IN_HEAD_NO_SCRIPT:
65712
65712
  case Z.AFTER_HEAD: {
65713
- this._err(t, M0.misplacedDoctype);
65713
+ this._err(t, f0.misplacedDoctype);
65714
65714
  break;
65715
65715
  }
65716
65716
  case Z.IN_TABLE_TEXT: {
@@ -65721,7 +65721,7 @@ class F6 {
65721
65721
  }
65722
65722
  /** @internal */
65723
65723
  onStartTag(t) {
65724
- this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t, M0.nonVoidHtmlElementStartTagWithTrailingSolidus);
65724
+ this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t, f0.nonVoidHtmlElementStartTagWithTrailingSolidus);
65725
65725
  }
65726
65726
  /**
65727
65727
  * Processes a given start tag.
@@ -65765,7 +65765,7 @@ class F6 {
65765
65765
  break;
65766
65766
  }
65767
65767
  case Z.IN_BODY: {
65768
- P2(this, t);
65768
+ F2(this, t);
65769
65769
  break;
65770
65770
  }
65771
65771
  case Z.IN_TABLE: {
@@ -66114,10 +66114,10 @@ function Qu(e, t) {
66114
66114
  function Bo0(e, t) {
66115
66115
  e._setDocumentType(t);
66116
66116
  const o = t.forceQuirks ? Ae.QUIRKS : co0(t);
66117
- io0(t) || e._err(t, M0.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, o), e.insertionMode = Z.BEFORE_HTML;
66117
+ io0(t) || e._err(t, f0.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, o), e.insertionMode = Z.BEFORE_HTML;
66118
66118
  }
66119
66119
  function Us(e, t) {
66120
- e._err(t, M0.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Ae.QUIRKS), e.insertionMode = Z.BEFORE_HTML, e._processToken(t);
66120
+ e._err(t, f0.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Ae.QUIRKS), e.insertionMode = Z.BEFORE_HTML, e._processToken(t);
66121
66121
  }
66122
66122
  function Wo0(e, t) {
66123
66123
  t.tagID === m.HTML ? (e._insertElement(t, E0.HTML), e.insertionMode = Z.BEFORE_HEAD) : la(e, t);
@@ -66132,7 +66132,7 @@ function la(e, t) {
66132
66132
  function To0(e, t) {
66133
66133
  switch (t.tagID) {
66134
66134
  case m.HTML: {
66135
- P2(e, t);
66135
+ F2(e, t);
66136
66136
  break;
66137
66137
  }
66138
66138
  case m.HEAD: {
@@ -66145,7 +66145,7 @@ function To0(e, t) {
66145
66145
  }
66146
66146
  function Io0(e, t) {
66147
66147
  const o = t.tagID;
66148
- o === m.HEAD || o === m.BODY || o === m.HTML || o === m.BR ? pa(e, t) : e._err(t, M0.endTagWithoutMatchingOpenElement);
66148
+ o === m.HEAD || o === m.BODY || o === m.HTML || o === m.BR ? pa(e, t) : e._err(t, f0.endTagWithoutMatchingOpenElement);
66149
66149
  }
66150
66150
  function pa(e, t) {
66151
66151
  e._insertFakeElement(p0.HEAD, m.HEAD), e.headElement = e.openElements.current, e.insertionMode = Z.IN_HEAD, e._processToken(t);
@@ -66153,7 +66153,7 @@ function pa(e, t) {
66153
66153
  function Qe(e, t) {
66154
66154
  switch (t.tagID) {
66155
66155
  case m.HTML: {
66156
- P2(e, t);
66156
+ F2(e, t);
66157
66157
  break;
66158
66158
  }
66159
66159
  case m.BASE:
@@ -66186,7 +66186,7 @@ function Qe(e, t) {
66186
66186
  break;
66187
66187
  }
66188
66188
  case m.HEAD: {
66189
- e._err(t, M0.misplacedStartTagForHeadElement);
66189
+ e._err(t, f0.misplacedStartTagForHeadElement);
66190
66190
  break;
66191
66191
  }
66192
66192
  default:
@@ -66210,11 +66210,11 @@ function No0(e, t) {
66210
66210
  break;
66211
66211
  }
66212
66212
  default:
66213
- e._err(t, M0.endTagWithoutMatchingOpenElement);
66213
+ e._err(t, f0.endTagWithoutMatchingOpenElement);
66214
66214
  }
66215
66215
  }
66216
66216
  function cn(e, t) {
66217
- e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== m.TEMPLATE && e._err(t, M0.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(m.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, M0.endTagWithoutMatchingOpenElement);
66217
+ e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== m.TEMPLATE && e._err(t, f0.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(m.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, f0.endTagWithoutMatchingOpenElement);
66218
66218
  }
66219
66219
  function da(e, t) {
66220
66220
  e.openElements.pop(), e.insertionMode = Z.AFTER_HEAD, e._processToken(t);
@@ -66222,7 +66222,7 @@ function da(e, t) {
66222
66222
  function xo0(e, t) {
66223
66223
  switch (t.tagID) {
66224
66224
  case m.HTML: {
66225
- P2(e, t);
66225
+ F2(e, t);
66226
66226
  break;
66227
66227
  }
66228
66228
  case m.BASEFONT:
@@ -66236,7 +66236,7 @@ function xo0(e, t) {
66236
66236
  break;
66237
66237
  }
66238
66238
  case m.NOSCRIPT: {
66239
- e._err(t, M0.nestedNoscriptInHead);
66239
+ e._err(t, f0.nestedNoscriptInHead);
66240
66240
  break;
66241
66241
  }
66242
66242
  default:
@@ -66254,17 +66254,17 @@ function Do0(e, t) {
66254
66254
  break;
66255
66255
  }
66256
66256
  default:
66257
- e._err(t, M0.endTagWithoutMatchingOpenElement);
66257
+ e._err(t, f0.endTagWithoutMatchingOpenElement);
66258
66258
  }
66259
66259
  }
66260
66260
  function ua(e, t) {
66261
- const o = t.type === f1.EOF ? M0.openElementsLeftAfterEof : M0.disallowedContentInNoscriptInHead;
66261
+ const o = t.type === f1.EOF ? f0.openElementsLeftAfterEof : f0.disallowedContentInNoscriptInHead;
66262
66262
  e._err(t, o), e.openElements.pop(), e.insertionMode = Z.IN_HEAD, e._processToken(t);
66263
66263
  }
66264
66264
  function Po0(e, t) {
66265
66265
  switch (t.tagID) {
66266
66266
  case m.HTML: {
66267
- P2(e, t);
66267
+ F2(e, t);
66268
66268
  break;
66269
66269
  }
66270
66270
  case m.BODY: {
@@ -66285,11 +66285,11 @@ function Po0(e, t) {
66285
66285
  case m.STYLE:
66286
66286
  case m.TEMPLATE:
66287
66287
  case m.TITLE: {
66288
- e._err(t, M0.abandonedHeadElementChild), e.openElements.push(e.headElement, m.HEAD), Qe(e, t), e.openElements.remove(e.headElement);
66288
+ e._err(t, f0.abandonedHeadElementChild), e.openElements.push(e.headElement, m.HEAD), Qe(e, t), e.openElements.remove(e.headElement);
66289
66289
  break;
66290
66290
  }
66291
66291
  case m.HEAD: {
66292
- e._err(t, M0.misplacedStartTagForHeadElement);
66292
+ e._err(t, f0.misplacedStartTagForHeadElement);
66293
66293
  break;
66294
66294
  }
66295
66295
  default:
@@ -66309,7 +66309,7 @@ function Fo0(e, t) {
66309
66309
  break;
66310
66310
  }
66311
66311
  default:
66312
- e._err(t, M0.endTagWithoutMatchingOpenElement);
66312
+ e._err(t, f0.endTagWithoutMatchingOpenElement);
66313
66313
  }
66314
66314
  }
66315
66315
  function ba(e, t) {
@@ -66330,7 +66330,7 @@ function il(e, t) {
66330
66330
  break;
66331
66331
  }
66332
66332
  case f1.START_TAG: {
66333
- P2(e, t);
66333
+ F2(e, t);
66334
66334
  break;
66335
66335
  }
66336
66336
  case f1.END_TAG: {
@@ -66461,7 +66461,7 @@ function Mn0(e, t) {
66461
66461
  function H6(e, t) {
66462
66462
  e._reconstructActiveFormattingElements(), e._insertElement(t, E0.HTML);
66463
66463
  }
66464
- function P2(e, t) {
66464
+ function F2(e, t) {
66465
66465
  switch (t.tagID) {
66466
66466
  case m.I:
66467
66467
  case m.S:
@@ -66829,7 +66829,7 @@ function En0(e, t) {
66829
66829
  t.tagID === m.SCRIPT && ((o = e.scriptHandler) === null || o === void 0 || o.call(e, e.openElements.current)), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
66830
66830
  }
66831
66831
  function wn0(e, t) {
66832
- e._err(t, M0.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
66832
+ e._err(t, f0.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
66833
66833
  }
66834
66834
  function Jp(e, t) {
66835
66835
  if (e.openElements.currentTagId !== void 0 && v9.has(e.openElements.currentTagId))
@@ -66967,7 +66967,7 @@ function Ks(e, t) {
66967
66967
  const L9 = /* @__PURE__ */ new Set([m.CAPTION, m.COL, m.COLGROUP, m.TBODY, m.TD, m.TFOOT, m.TH, m.THEAD, m.TR]);
66968
66968
  function In0(e, t) {
66969
66969
  const o = t.tagID;
66970
- L9.has(o) ? e.openElements.hasInTableScope(m.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(m.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = Z.IN_TABLE, ss(e, t)) : P2(e, t);
66970
+ L9.has(o) ? e.openElements.hasInTableScope(m.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(m.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = Z.IN_TABLE, ss(e, t)) : F2(e, t);
66971
66971
  }
66972
66972
  function Nn0(e, t) {
66973
66973
  const o = t.tagID;
@@ -66995,7 +66995,7 @@ function Nn0(e, t) {
66995
66995
  function Hu(e, t) {
66996
66996
  switch (t.tagID) {
66997
66997
  case m.HTML: {
66998
- P2(e, t);
66998
+ F2(e, t);
66999
66999
  break;
67000
67000
  }
67001
67001
  case m.COL: {
@@ -67130,7 +67130,7 @@ function T9(e, t) {
67130
67130
  }
67131
67131
  function Dn0(e, t) {
67132
67132
  const o = t.tagID;
67133
- L9.has(o) ? (e.openElements.hasInTableScope(m.TD) || e.openElements.hasInTableScope(m.TH)) && (e._closeTableCell(), pl(e, t)) : P2(e, t);
67133
+ L9.has(o) ? (e.openElements.hasInTableScope(m.TD) || e.openElements.hasInTableScope(m.TH)) && (e._closeTableCell(), pl(e, t)) : F2(e, t);
67134
67134
  }
67135
67135
  function Pn0(e, t) {
67136
67136
  const o = t.tagID;
@@ -67161,7 +67161,7 @@ function Pn0(e, t) {
67161
67161
  function I9(e, t) {
67162
67162
  switch (t.tagID) {
67163
67163
  case m.HTML: {
67164
- P2(e, t);
67164
+ F2(e, t);
67165
67165
  break;
67166
67166
  }
67167
67167
  case m.OPTION: {
@@ -67257,7 +67257,7 @@ function Hn0(e, t) {
67257
67257
  break;
67258
67258
  }
67259
67259
  default:
67260
- e.tmplInsertionModeStack[0] = Z.IN_BODY, e.insertionMode = Z.IN_BODY, P2(e, t);
67260
+ e.tmplInsertionModeStack[0] = Z.IN_BODY, e.insertionMode = Z.IN_BODY, F2(e, t);
67261
67261
  }
67262
67262
  }
67263
67263
  function Vn0(e, t) {
@@ -67267,7 +67267,7 @@ function x9(e, t) {
67267
67267
  e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(m.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Qu(e, t);
67268
67268
  }
67269
67269
  function Un0(e, t) {
67270
- t.tagID === m.HTML ? P2(e, t) : dc(e, t);
67270
+ t.tagID === m.HTML ? F2(e, t) : dc(e, t);
67271
67271
  }
67272
67272
  function D9(e, t) {
67273
67273
  var o;
@@ -67286,7 +67286,7 @@ function dc(e, t) {
67286
67286
  function Kn0(e, t) {
67287
67287
  switch (t.tagID) {
67288
67288
  case m.HTML: {
67289
- P2(e, t);
67289
+ F2(e, t);
67290
67290
  break;
67291
67291
  }
67292
67292
  case m.FRAMESET: {
@@ -67309,7 +67309,7 @@ function jn0(e, t) {
67309
67309
  function Gn0(e, t) {
67310
67310
  switch (t.tagID) {
67311
67311
  case m.HTML: {
67312
- P2(e, t);
67312
+ F2(e, t);
67313
67313
  break;
67314
67314
  }
67315
67315
  case m.NOFRAMES: {
@@ -67322,7 +67322,7 @@ function Yn0(e, t) {
67322
67322
  t.tagID === m.HTML && (e.insertionMode = Z.AFTER_AFTER_FRAMESET);
67323
67323
  }
67324
67324
  function Xn0(e, t) {
67325
- t.tagID === m.HTML ? P2(e, t) : ki(e, t);
67325
+ t.tagID === m.HTML ? F2(e, t) : ki(e, t);
67326
67326
  }
67327
67327
  function ki(e, t) {
67328
67328
  e.insertionMode = Z.IN_BODY, il(e, t);
@@ -67330,7 +67330,7 @@ function ki(e, t) {
67330
67330
  function Zn0(e, t) {
67331
67331
  switch (t.tagID) {
67332
67332
  case m.HTML: {
67333
- P2(e, t);
67333
+ F2(e, t);
67334
67334
  break;
67335
67335
  }
67336
67336
  case m.NOFRAMES: {
@@ -67873,20 +67873,20 @@ var Cs0 = W4, ks0 = function(t) {
67873
67873
  Object.keys(Y6).forEach(function(o) {
67874
67874
  t.style.setProperty(o, Y6[o], "important");
67875
67875
  });
67876
- }, X6 = Es0, V2 = null, Z6 = function(t, o) {
67876
+ }, X6 = Es0, U2 = null, Z6 = function(t, o) {
67877
67877
  var n = t.scrollHeight;
67878
67878
  return o.sizingStyle.boxSizing === "border-box" ? n + o.borderSize : n - o.paddingSize;
67879
67879
  };
67880
67880
  function ws0(e, t, o, n) {
67881
- o === void 0 && (o = 1), n === void 0 && (n = 1 / 0), V2 || (V2 = document.createElement("textarea"), V2.setAttribute("tabindex", "-1"), V2.setAttribute("aria-hidden", "true"), X6(V2)), V2.parentNode === null && document.body.appendChild(V2);
67881
+ o === void 0 && (o = 1), n === void 0 && (n = 1 / 0), U2 || (U2 = document.createElement("textarea"), U2.setAttribute("tabindex", "-1"), U2.setAttribute("aria-hidden", "true"), X6(U2)), U2.parentNode === null && document.body.appendChild(U2);
67882
67882
  var s = e.paddingSize, a = e.borderSize, r = e.sizingStyle, i = r.boxSizing;
67883
67883
  Object.keys(r).forEach(function(u) {
67884
67884
  var M = u;
67885
- V2.style[M] = r[M];
67886
- }), X6(V2), V2.value = t;
67887
- var c = Z6(V2, e);
67888
- V2.value = t, c = Z6(V2, e), V2.value = "x";
67889
- var l = V2.scrollHeight - s, p = l * o;
67885
+ U2.style[M] = r[M];
67886
+ }), X6(U2), U2.value = t;
67887
+ var c = Z6(U2, e);
67888
+ U2.value = t, c = Z6(U2, e), U2.value = "x";
67889
+ var l = U2.scrollHeight - s, p = l * o;
67890
67890
  i === "border-box" && (p = p + s + a), c = Math.max(p, c);
67891
67891
  var d = l * n;
67892
67892
  return i === "border-box" && (d = d + s + a), c = Math.min(d, c), [c, l];
@@ -68542,21 +68542,21 @@ function na0({
68542
68542
  fetchUsageStatus: Y,
68543
68543
  doesUserHaveAgentPerms: J
68544
68544
  } = QS(o, e, {
68545
- onConversationIdAssignedByStream: (f0) => {
68546
- A.current = f0;
68545
+ onConversationIdAssignedByStream: (M0) => {
68546
+ A.current = M0;
68547
68547
  }
68548
68548
  }), { t: S } = an(t), [e0, a0] = h.useState(!1), [D, G] = h.useState(!1), [U, j] = h.useState(""), s0 = h.useMemo(
68549
68549
  () => ({
68550
- a({ children: f0, href: V0, ...n1 }) {
68550
+ a({ children: M0, href: V0, ...n1 }) {
68551
68551
  if (typeof V0 != "string" || !V0.trim())
68552
- return /* @__PURE__ */ r0.jsx("span", { children: f0 });
68552
+ return /* @__PURE__ */ r0.jsx("span", { children: M0 });
68553
68553
  if (V0.startsWith("mailto:") || V0.startsWith("#"))
68554
- return /* @__PURE__ */ r0.jsx("a", { href: V0, ...n1, children: f0 });
68554
+ return /* @__PURE__ */ r0.jsx("a", { href: V0, ...n1, children: M0 });
68555
68555
  try {
68556
68556
  const a1 = new URL(V0);
68557
- return a1.protocol !== "http:" && a1.protocol !== "https:" ? /* @__PURE__ */ r0.jsx("span", { children: f0 }) : (Object.values(oa0.COMMERCE_PLATFORM_DOMAINS).includes(a1.origin) && i?.length && a1.searchParams.set("cp.maxChatConversationId", i), /* @__PURE__ */ r0.jsx("a", { href: a1.toString(), ...n1, target: "_blank", rel: "noopener noreferrer", children: f0 }));
68557
+ return a1.protocol !== "http:" && a1.protocol !== "https:" ? /* @__PURE__ */ r0.jsx("span", { children: M0 }) : (Object.values(oa0.COMMERCE_PLATFORM_DOMAINS).includes(a1.origin) && i?.length && a1.searchParams.set("cp.maxChatConversationId", i), /* @__PURE__ */ r0.jsx("a", { href: a1.toString(), ...n1, target: "_blank", rel: "noopener noreferrer", children: M0 }));
68558
68558
  } catch (a1) {
68559
- return U2.warn("Failed to parse URL in agent response", V0, a1), /* @__PURE__ */ r0.jsx("span", { children: f0 });
68559
+ return T2.warn("Failed to parse URL in agent response", V0, a1), /* @__PURE__ */ r0.jsx("span", { children: M0 });
68560
68560
  }
68561
68561
  }
68562
68562
  }),
@@ -68564,14 +68564,14 @@ function na0({
68564
68564
  );
68565
68565
  h.useEffect(() => {
68566
68566
  J();
68567
- const f0 = (n1) => {
68567
+ const M0 = (n1) => {
68568
68568
  M(), q(), N(n1.detail.message, !0);
68569
68569
  }, V0 = (n1) => {
68570
68570
  const { detail: a1 } = n1;
68571
68571
  typeof a1 == "boolean" && u(a1);
68572
68572
  };
68573
- return window.addEventListener("initiateAgentConversation", f0), window.addEventListener("setPreprod", V0), () => {
68574
- window.removeEventListener("initiateAgentConversation", f0), window.removeEventListener("setPreprod", V0);
68573
+ return window.addEventListener("initiateAgentConversation", M0), window.addEventListener("setPreprod", V0), () => {
68574
+ window.removeEventListener("initiateAgentConversation", M0), window.removeEventListener("setPreprod", V0);
68575
68575
  };
68576
68576
  }, [
68577
68577
  J,
@@ -68591,8 +68591,8 @@ function na0({
68591
68591
  }
68592
68592
  }, [i, B]);
68593
68593
  const l0 = h.useCallback(
68594
- async (f0) => {
68595
- f0 && await N(f0, !1);
68594
+ async (M0) => {
68595
+ M0 && await N(M0, !1);
68596
68596
  },
68597
68597
  [N]
68598
68598
  ), {
@@ -68618,20 +68618,20 @@ function na0({
68618
68618
  isLoadingOlderMessages: F,
68619
68619
  loadOlderMessages: T
68620
68620
  }), U0 = u0 === "initial-loading", o1 = u0 === "switch-loading", K0 = h.useCallback(
68621
- (f0, V0) => {
68622
- i !== f0 ? A.current = f0 : A.current = null, C0(), B(f0, V0);
68621
+ (M0, V0) => {
68622
+ i !== M0 ? A.current = M0 : A.current = null, C0(), B(M0, V0);
68623
68623
  },
68624
68624
  [i, B, C0]
68625
68625
  ), j0 = h.useCallback(() => {
68626
- Da.clarity.setEvent("View conversation list"), D || w(), G((f0) => !f0);
68626
+ Da.clarity.setEvent("View conversation list"), D || w(), G((M0) => !M0);
68627
68627
  }, [w, D]), T0 = h.useCallback(() => {
68628
68628
  r(), a0(!1);
68629
68629
  }, [r]), I0 = h.useCallback(() => {
68630
68630
  Da.clarity.setEvent("Start new conversation"), G(!1), q();
68631
68631
  }, [q]), D0 = h.useMemo(() => {
68632
68632
  if (!a || !i) return !1;
68633
- const f0 = Q.find((V0) => V0.id === i);
68634
- return f0 ? f0.initiatedByCurrentUser === !1 : !1;
68633
+ const M0 = Q.find((V0) => V0.id === i);
68634
+ return M0 ? M0.initiatedByCurrentUser === !1 : !1;
68635
68635
  }, [a, i, Q]), N0 = h.useMemo(
68636
68636
  () => a ? /* @__PURE__ */ r0.jsx("div", { className: "obo-banner", children: /* @__PURE__ */ r0.jsx(Ln, { kind: "warning", children: S("oboBannerMessage", {
68637
68637
  defaultValue: "You are acting on behalf of a customer. Messages sent will not be visible to them."
@@ -68758,10 +68758,15 @@ function na0({
68758
68758
  /* @__PURE__ */ r0.jsx(
68759
68759
  Oi,
68760
68760
  {
68761
- onClick: () => N("Please show human customer support options", !1),
68762
- children: S("customerSupportOptions", {
68763
- defaultValue: "Customer Support Options"
68764
- })
68761
+ onClick: () => {
68762
+ const M0 = window.Intercom;
68763
+ if (!M0) {
68764
+ T2.warn("Intercom is not available; unable to start conversation");
68765
+ return;
68766
+ }
68767
+ M0("startConversation"), r();
68768
+ },
68769
+ children: S("liveSupportChat", { defaultValue: "Talk to a Person" })
68765
68770
  }
68766
68771
  )
68767
68772
  ] }),
@@ -68775,25 +68780,25 @@ function na0({
68775
68780
  })
68776
68781
  }
68777
68782
  ),
68778
- W.map((f0, V0) => {
68779
- const n1 = f0.id ?? `msg-${f0.role}-${V0}`;
68780
- return f0.role === "user" ? /* @__PURE__ */ r0.jsx("div", { "data-message-id": f0.id, children: /* @__PURE__ */ r0.jsx(pZ, { isObo: !!(f0.obo && a), children: /* @__PURE__ */ r0.jsx(
68783
+ W.map((M0, V0) => {
68784
+ const n1 = M0.id ?? `msg-${M0.role}-${V0}`;
68785
+ return M0.role === "user" ? /* @__PURE__ */ r0.jsx("div", { "data-message-id": M0.id, children: /* @__PURE__ */ r0.jsx(pZ, { isObo: !!(M0.obo && a), children: /* @__PURE__ */ r0.jsx(
68781
68786
  R4,
68782
68787
  {
68783
- content: f0.content,
68788
+ content: M0.content,
68784
68789
  components: s0
68785
68790
  }
68786
- ) }) }, n1) : /* @__PURE__ */ r0.jsx("div", { "data-message-id": f0.id, children: /* @__PURE__ */ r0.jsx(
68791
+ ) }) }, n1) : /* @__PURE__ */ r0.jsx("div", { "data-message-id": M0.id, children: /* @__PURE__ */ r0.jsx(
68787
68792
  sc,
68788
68793
  {
68789
- message: f0,
68794
+ message: M0,
68790
68795
  sendFeedback: I,
68791
68796
  fetchMessagePair: v,
68792
68797
  handleSendMessage: l0,
68793
68798
  children: /* @__PURE__ */ r0.jsx(
68794
68799
  R4,
68795
68800
  {
68796
- content: f0.content,
68801
+ content: M0.content,
68797
68802
  components: s0,
68798
68803
  useRehypeRaw: !0
68799
68804
  }