@evelan/jexity-widget 0.18.9 → 0.18.10

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/dist/index.mjs CHANGED
@@ -115,7 +115,7 @@ function Qr(t) {
115
115
  };
116
116
  }
117
117
  function xr(t, e, n, r, i, o, a, l, c, u) {
118
- var d, h, f, p, g, b, x, m, v, S, B, L, N, D, ne, re, ie, H = e.type;
118
+ var d, h, f, p, g, b, x, m, v, S, B, L, M, D, ne, re, ie, H = e.type;
119
119
  if (e.constructor != null) return null;
120
120
  128 & n.__u && (c = !!(32 & n.__u), o = [l = e.__e = n.__e]), (d = k.__b) && d(e);
121
121
  e: if (typeof H == "function") try {
@@ -132,11 +132,11 @@ function xr(t, e, n, r, i, o, a, l, c, u) {
132
132
  h.componentDidUpdate(p, g, b);
133
133
  });
134
134
  }
135
- if (h.context = B, h.props = m, h.__P = t, h.__e = !1, N = k.__r, D = 0, v) {
136
- for (h.state = h.__s, h.__d = !1, N && N(e), d = h.render(h.props, h.state, h.context), ne = 0; ne < h._sb.length; ne++) h.__h.push(h._sb[ne]);
135
+ if (h.context = B, h.props = m, h.__P = t, h.__e = !1, M = k.__r, D = 0, v) {
136
+ for (h.state = h.__s, h.__d = !1, M && M(e), d = h.render(h.props, h.state, h.context), ne = 0; ne < h._sb.length; ne++) h.__h.push(h._sb[ne]);
137
137
  h._sb = [];
138
138
  } else do
139
- h.__d = !1, N && N(e), d = h.render(h.props, h.state, h.context), h.state = h.__s;
139
+ h.__d = !1, M && M(e), d = h.render(h.props, h.state, h.context), h.state = h.__s;
140
140
  while (h.__d && ++D < 25);
141
141
  h.state = h.__s, h.getChildContext != null && (r = Re(Re({}, r), h.getChildContext())), v && !f && h.getSnapshotBeforeUpdate != null && (b = h.getSnapshotBeforeUpdate(p, g)), re = d, d != null && d.type === O && d.key == null && (re = so(d.props.children)), l = io(t, Wt(re) ? re : [re], e, n, r, i, o, a, l, c, u), h.base = e.__e, e.__u &= -161, h.__h.length && a.push(h), x && (h.__E = h.__ = null);
142
142
  } catch (Z) {
@@ -287,7 +287,7 @@ function s(t, e, n, r, i, o) {
287
287
  if (typeof t == "function" && (a = t.defaultProps)) for (l in a) c[l] === void 0 && (c[l] = a[l]);
288
288
  return k.vnode && k.vnode(u), u;
289
289
  }
290
- var Ue, z, Nn, Hr, gt = 0, uo = [], U = k, Wr = U.__b, Kr = U.__r, Gr = U.diffed, Yr = U.__c, Jr = U.unmount, Zr = U.__;
290
+ var Ue, z, Mn, Hr, gt = 0, uo = [], U = k, Wr = U.__b, Kr = U.__r, Gr = U.diffed, Yr = U.__c, Jr = U.unmount, Zr = U.__;
291
291
  function yt(t, e) {
292
292
  U.__h && U.__h(z, t, gt || e), gt = 0;
293
293
  var n = z.__H || (z.__H = { __: [], __h: [] });
@@ -395,15 +395,15 @@ U.__b = function(t) {
395
395
  }, U.__r = function(t) {
396
396
  Kr && Kr(t), Ue = 0;
397
397
  var e = (z = t.__c).__H;
398
- e && (Nn === z ? (e.__h = [], z.__h = [], e.__.forEach(function(n) {
398
+ e && (Mn === z ? (e.__h = [], z.__h = [], e.__.forEach(function(n) {
399
399
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
400
- })) : (e.__h.forEach(ln), e.__h.forEach(Jn), e.__h = [], Ue = 0)), Nn = z;
400
+ })) : (e.__h.forEach(ln), e.__h.forEach(Jn), e.__h = [], Ue = 0)), Mn = z;
401
401
  }, U.diffed = function(t) {
402
402
  Gr && Gr(t);
403
403
  var e = t.__c;
404
404
  e && e.__H && (e.__H.__h.length && (uo.push(e) !== 1 && Hr === U.requestAnimationFrame || ((Hr = U.requestAnimationFrame) || ns)(ts)), e.__H.__.forEach(function(n) {
405
405
  n.u && (n.__H = n.u), n.u = void 0;
406
- })), Nn = z = null;
406
+ })), Mn = z = null;
407
407
  }, U.__c = function(t, e) {
408
408
  e.some(function(n) {
409
409
  try {
@@ -462,14 +462,14 @@ function Zn(t, e) {
462
462
  function xo(t, e) {
463
463
  var n = e(), r = A({ t: { __: n, u: e } }), i = r[0].t, o = r[1];
464
464
  return Kt(function() {
465
- i.__ = n, i.u = e, Mn(i) && o({ t: i });
465
+ i.__ = n, i.u = e, Nn(i) && o({ t: i });
466
466
  }, [t, n, e]), P(function() {
467
- return Mn(i) && o({ t: i }), t(function() {
468
- Mn(i) && o({ t: i });
467
+ return Nn(i) && o({ t: i }), t(function() {
468
+ Nn(i) && o({ t: i });
469
469
  });
470
470
  }, [t]), n;
471
471
  }
472
- function Mn(t) {
472
+ function Nn(t) {
473
473
  var e, n, r = t.u, i = t.__;
474
474
  try {
475
475
  var o = r();
@@ -740,11 +740,11 @@ var Is = function(t, e) {
740
740
  }, Es = function(t, e) {
741
741
  return t(e);
742
742
  }, Ps = O, $s = Tn, wr = { useState: A, useId: fo, useReducer: he, useEffect: P, useLayoutEffect: Kt, useInsertionEffect: wo, useTransition: yo, useDeferredValue: vo, useSyncExternalStore: xo, startTransition: bo, useRef: Ee, useImperativeHandle: ho, useMemo: Y, useCallback: q, useContext: Gt, useDebugValue: po, version: "18.3.1", Children: as, render: xs, hydrate: bs, unmountComponentAtNode: Rs, createPortal: ds, createElement: xe, createContext: Xa, createFactory: js, cloneElement: Ts, createRef: Wa, Fragment: O, isValidElement: Tn, isElement: $s, isFragment: Ss, isMemo: Cs, findDOMNode: As, Component: we, PureComponent: Xn, memo: rs, forwardRef: os, flushSync: Es, unstable_batchedUpdates: Is, StrictMode: Ps, Suspense: cn, SuspenseList: It, lazy: ls, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: _s }, Te = [], me = [], qs = Uint8Array, Ln = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
743
- for (var ct = 0, Ns = Ln.length; ct < Ns; ++ct)
743
+ for (var ct = 0, Ms = Ln.length; ct < Ms; ++ct)
744
744
  Te[ct] = Ln[ct], me[Ln.charCodeAt(ct)] = ct;
745
745
  me[45] = 62;
746
746
  me[95] = 63;
747
- function Ms(t) {
747
+ function Ns(t) {
748
748
  var e = t.length;
749
749
  if (e % 4 > 0)
750
750
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -757,7 +757,7 @@ function Ls(t, e, n) {
757
757
  return (e + n) * 3 / 4 - n;
758
758
  }
759
759
  function zt(t) {
760
- var e, n = Ms(t), r = n[0], i = n[1], o = new qs(Ls(t, r, i)), a = 0, l = i > 0 ? r - 4 : r, c;
760
+ var e, n = Ns(t), r = n[0], i = n[1], o = new qs(Ls(t, r, i)), a = 0, l = i > 0 ? r - 4 : r, c;
761
761
  for (c = 0; c < l; c += 4)
762
762
  e = me[t.charCodeAt(c)] << 18 | me[t.charCodeAt(c + 1)] << 12 | me[t.charCodeAt(c + 2)] << 6 | me[t.charCodeAt(c + 3)], o[a++] = e >> 16 & 255, o[a++] = e >> 8 & 255, o[a++] = e & 255;
763
763
  return i === 2 && (e = me[t.charCodeAt(c)] << 2 | me[t.charCodeAt(c + 1)] >> 4, o[a++] = e & 255), i === 1 && (e = me[t.charCodeAt(c)] << 10 | me[t.charCodeAt(c + 1)] << 4 | me[t.charCodeAt(c + 2)] >> 2, o[a++] = e >> 8 & 255, o[a++] = e & 255), o;
@@ -1470,9 +1470,9 @@ class sl {
1470
1470
  return this.inflightActionsCount;
1471
1471
  }
1472
1472
  }
1473
- const Dt = /* @__PURE__ */ Symbol.for("functionName"), No = /* @__PURE__ */ Symbol.for("toReferencePath");
1473
+ const Dt = /* @__PURE__ */ Symbol.for("functionName"), Mo = /* @__PURE__ */ Symbol.for("toReferencePath");
1474
1474
  function ll(t) {
1475
- return t[No] ?? null;
1475
+ return t[Mo] ?? null;
1476
1476
  }
1477
1477
  function cl(t) {
1478
1478
  return t.startsWith("function://");
@@ -1510,12 +1510,12 @@ function oe(t) {
1510
1510
  function _r(t) {
1511
1511
  return { [Dt]: t };
1512
1512
  }
1513
- function Mo(t = []) {
1513
+ function No(t = []) {
1514
1514
  const e = {
1515
1515
  get(n, r) {
1516
1516
  if (typeof r == "string") {
1517
1517
  const i = [...t, r];
1518
- return Mo(i);
1518
+ return No(i);
1519
1519
  } else if (r === Dt) {
1520
1520
  if (t.length < 2) {
1521
1521
  const a = ["api", ...t].join(".");
@@ -1530,7 +1530,7 @@ function Mo(t = []) {
1530
1530
  };
1531
1531
  return new Proxy({}, e);
1532
1532
  }
1533
- const dl = Mo();
1533
+ const dl = No();
1534
1534
  var hl = Object.defineProperty, pl = (t, e, n) => e in t ? hl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, mn = (t, e, n) => pl(t, typeof e != "symbol" ? e + "" : e, n);
1535
1535
  class Ft {
1536
1536
  constructor(e) {
@@ -1671,10 +1671,10 @@ class le {
1671
1671
  ];
1672
1672
  }
1673
1673
  static fromNumber(e) {
1674
- return isNaN(e) || e < 0 ? mi : e >= xl ? bl : new le(e % Nt | 0, e / Nt | 0);
1674
+ return isNaN(e) || e < 0 ? mi : e >= xl ? bl : new le(e % Mt | 0, e / Mt | 0);
1675
1675
  }
1676
1676
  toString() {
1677
- return (BigInt(this.high) * BigInt(Nt) + BigInt(this.low)).toString();
1677
+ return (BigInt(this.high) * BigInt(Mt) + BigInt(this.low)).toString();
1678
1678
  }
1679
1679
  equals(e) {
1680
1680
  return le.isLong(e) || (e = le.fromValue(e)), this.high >>> 31 === 1 && e.high >>> 31 === 1 ? !1 : this.high === e.high && this.low === e.low;
@@ -1695,7 +1695,7 @@ class le {
1695
1695
  return typeof e == "number" ? le.fromNumber(e) : new le(e.low, e.high);
1696
1696
  }
1697
1697
  }
1698
- const mi = new le(0, 0), gi = 65536, Nt = gi * gi, xl = Nt * Nt, bl = new le(-1, -1);
1698
+ const mi = new le(0, 0), gi = 65536, Mt = gi * gi, xl = Mt * Mt, bl = new le(-1, -1);
1699
1699
  var vl = Object.defineProperty, yl = (t, e, n) => e in t ? vl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, on = (t, e, n) => yl(t, typeof e != "symbol" ? e + "" : e, n);
1700
1700
  class xi {
1701
1701
  constructor(e, n) {
@@ -2293,7 +2293,7 @@ function Oo(t, e) {
2293
2293
  );
2294
2294
  }
2295
2295
  }
2296
- var Nl = Object.defineProperty, Ml = (t, e, n) => e in t ? Nl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, de = (t, e, n) => Ml(t, typeof e != "symbol" ? e + "" : e, n);
2296
+ var Ml = Object.defineProperty, Nl = (t, e, n) => e in t ? Ml(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, de = (t, e, n) => Nl(t, typeof e != "symbol" ? e + "" : e, n);
2297
2297
  const Ll = 480 * 60 * 60 * 1e3, yi = 2;
2298
2298
  class Ol {
2299
2299
  constructor(e, n, r) {
@@ -3941,9 +3941,9 @@ function An() {
3941
3941
  if (De > 1)
3942
3942
  De--;
3943
3943
  else {
3944
- for (var t, e = !1; Mt !== void 0; ) {
3945
- var n = Mt;
3946
- for (Mt = void 0, ir++; n !== void 0; ) {
3944
+ for (var t, e = !1; Nt !== void 0; ) {
3945
+ var n = Nt;
3946
+ for (Nt = void 0, ir++; n !== void 0; ) {
3947
3947
  var r = n.o;
3948
3948
  if (n.o = void 0, n.f &= -3, !(8 & n.f) && Fo(n)) try {
3949
3949
  n.c();
@@ -3975,7 +3975,7 @@ function Bo(t) {
3975
3975
  E = e;
3976
3976
  }
3977
3977
  }
3978
- var Mt = void 0, De = 0, ir = 0, gn = 0;
3978
+ var Nt = void 0, De = 0, ir = 0, gn = 0;
3979
3979
  function Do(t) {
3980
3980
  if (E !== void 0) {
3981
3981
  var e = t.n;
@@ -4053,7 +4053,7 @@ Object.defineProperty(ee.prototype, "value", { get: function() {
4053
4053
  }
4054
4054
  }
4055
4055
  } });
4056
- function M(t, e) {
4056
+ function N(t, e) {
4057
4057
  return new ee(t, e);
4058
4058
  }
4059
4059
  function Fo(t) {
@@ -4166,7 +4166,7 @@ wt.prototype.S = function() {
4166
4166
  return E = this, dc.bind(this, t);
4167
4167
  };
4168
4168
  wt.prototype.N = function() {
4169
- 2 & this.f || (this.f |= 2, this.o = Mt, Mt = this);
4169
+ 2 & this.f || (this.f |= 2, this.o = Nt, Nt = this);
4170
4170
  };
4171
4171
  wt.prototype.d = function() {
4172
4172
  this.f |= 8, 1 & this.f || jr(this);
@@ -4278,7 +4278,7 @@ kt("diffed", function(t, e) {
4278
4278
  t(e);
4279
4279
  });
4280
4280
  function pc(t, e, n, r) {
4281
- var i = e in t && t.ownerSVGElement === void 0, o = M(n);
4281
+ var i = e in t && t.ownerSVGElement === void 0, o = N(n);
4282
4282
  return { o: function(a, l) {
4283
4283
  o.value = a, r = l;
4284
4284
  }, d: Zt(function() {
@@ -4326,7 +4326,7 @@ we.prototype.shouldComponentUpdate = function(t, e) {
4326
4326
  };
4327
4327
  function ft(t, e) {
4328
4328
  return Y(function() {
4329
- return M(t, e);
4329
+ return N(t, e);
4330
4330
  }, []);
4331
4331
  }
4332
4332
  var fc = function(t) {
@@ -4342,7 +4342,7 @@ function mc() {
4342
4342
  function Go() {
4343
4343
  Wo.push(this) === 1 && (k.requestAnimationFrame || fc)(mc);
4344
4344
  }
4345
- const V = M(!1), bn = M(void 0), Xt = "https://jexitychat.de/privacy", en = M(Xt), Sr = M("chip"), Fe = M(void 0), ar = M([]), sr = M([]), Yo = M(null);
4345
+ const V = N(!1), bn = N(void 0), Xt = "https://jexitychat.de/privacy", en = N(Xt), Sr = N("chip"), Fe = N(void 0), ar = N([]), sr = N([]), Yo = N(null);
4346
4346
  function gc(t) {
4347
4347
  return t.replace(/\.convex\.site\b/, ".convex.cloud");
4348
4348
  }
@@ -4643,6 +4643,8 @@ Use it to resume this conversation from any device.`,
4643
4643
  magiclineSubmitting: "Submitting…",
4644
4644
  magiclineSubmitted: "Request submitted",
4645
4645
  magiclineSubmittedDetail: "We’ve received your request and will be in touch shortly.",
4646
+ magiclineTrialSuccessTitle: "Book a trial session",
4647
+ magiclineTrialSuccessDetail: "Done! Your trial session is booked. You'll receive a confirmation email shortly – please check your inbox.",
4646
4648
  magiclineFailed: "Submission failed",
4647
4649
  magiclineFailedDetail: "Something went wrong submitting your request. Please try again.",
4648
4650
  magiclineConsent: "I agree to the processing of my data in accordance with the",
@@ -4745,6 +4747,8 @@ Use it to resume this conversation from any device.`,
4745
4747
  magiclineConfirmRequiredError: "Please confirm all required terms before submitting.",
4746
4748
  magiclineSummaryAddress: "Address",
4747
4749
  magiclineContractSubmitted: "Your membership is confirmed and the studio will be in touch shortly.",
4750
+ magiclineContractSuccessTitle: "Sign up for membership",
4751
+ magiclineContractSuccessDetail: "Welcome aboard! Your membership is all set. Your confirmation email is on its way.",
4748
4752
  magiclineCustomerNumber: "Your customer number: {number}",
4749
4753
  magiclinePriceChangedNotice: "The price has changed. Please review the new price and confirm again.",
4750
4754
  magiclineOfferUnavailableNotice: "That membership is no longer available. Please choose another one.",
@@ -4878,6 +4882,8 @@ Verwenden Sie sie, um diese Unterhaltung auf jedem Gerät fortzusetzen.`,
4878
4882
  magiclineSubmitting: "Wird gesendet…",
4879
4883
  magiclineSubmitted: "Anfrage gesendet",
4880
4884
  magiclineSubmittedDetail: "Wir haben Ihre Anfrage erhalten und melden uns in Kürze bei Ihnen.",
4885
+ magiclineTrialSuccessTitle: "Probetraining buchen",
4886
+ magiclineTrialSuccessDetail: "Geschafft! Dein Probetraining ist gebucht. Du bekommst gleich eine Bestätigung per E-Mail – schau bitte in dein Postfach.",
4881
4887
  magiclineFailed: "Senden fehlgeschlagen",
4882
4888
  magiclineFailedDetail: "Beim Senden Ihrer Anfrage ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",
4883
4889
  magiclineConsent: "Ich stimme der Verarbeitung meiner Daten gemäß der",
@@ -4980,6 +4986,8 @@ Verwenden Sie sie, um diese Unterhaltung auf jedem Gerät fortzusetzen.`,
4980
4986
  magiclineConfirmRequiredError: "Bitte bestätigen Sie alle erforderlichen Bedingungen vor dem Absenden.",
4981
4987
  magiclineSummaryAddress: "Adresse",
4982
4988
  magiclineContractSubmitted: "Ihre Mitgliedschaft ist bestätigt. Das Studio meldet sich in Kürze bei Ihnen.",
4989
+ magiclineContractSuccessTitle: "Mitgliedschaft abschließen",
4990
+ magiclineContractSuccessDetail: "Willkommen an Bord! Deine Mitgliedschaft ist abgeschlossen. Die Bestätigung kommt gleich per E-Mail.",
4983
4991
  magiclineCustomerNumber: "Ihre Kundennummer: {number}",
4984
4992
  magiclinePriceChangedNotice: "Der Preis hat sich geändert. Bitte prüfen Sie den neuen Preis und bestätigen Sie erneut.",
4985
4993
  magiclineOfferUnavailableNotice: "Diese Mitgliedschaft ist nicht mehr verfügbar. Bitte wählen Sie eine andere aus.",
@@ -5002,7 +5010,7 @@ Verwenden Sie sie, um diese Unterhaltung auf jedem Gerät fortzusetzen.`,
5002
5010
  }, Tc = [
5003
5011
  { value: "de", label: "Deutsch", flag: "🇩🇪" },
5004
5012
  { value: "en", label: "English", flag: "🇬🇧" }
5005
- ], Rc = "de", Ac = "jex-locale", qe = M("de"), Ic = { en: Cr, de: Xo };
5013
+ ], Rc = "de", Ac = "jex-locale", qe = N("de"), Ic = { en: Cr, de: Xo };
5006
5014
  function _() {
5007
5015
  return Ic[qe.value] ?? Cr;
5008
5016
  }
@@ -5043,7 +5051,7 @@ function Ec(t) {
5043
5051
  };
5044
5052
  }, [t]);
5045
5053
  }
5046
- const ta = "jex-session-history", na = ta, ra = 3600 * 1e3, ce = M([]), $e = M(null), Tr = or(() => ce.value.length > 0), Lt = M(null);
5054
+ const ta = "jex-session-history", na = ta, ra = 3600 * 1e3, ce = N([]), $e = N(null), Tr = or(() => ce.value.length > 0), Lt = N(null);
5047
5055
  function Pc() {
5048
5056
  return "JEX-" + Math.random().toString(36).slice(2, 8).toUpperCase();
5049
5057
  }
@@ -5073,7 +5081,7 @@ function ji() {
5073
5081
  const t = Pc(), e = Date.now(), n = [...ce.value, { ref: t, startedAt: e, lastActivityAt: e }];
5074
5082
  return ce.value = n, $e.value = t, In(n), t;
5075
5083
  }
5076
- function Nc() {
5084
+ function Mc() {
5077
5085
  $e.value = null;
5078
5086
  }
5079
5087
  function Si(t) {
@@ -5090,14 +5098,14 @@ function Rr(t) {
5090
5098
  );
5091
5099
  ce.value = n, In(n);
5092
5100
  }
5093
- const ue = M(ia());
5101
+ const ue = N(ia());
5094
5102
  function ia() {
5095
5103
  return Tr.value ? [{ id: "home" }] : [{ id: "chat" }];
5096
5104
  }
5097
- function Mc() {
5105
+ function Nc() {
5098
5106
  ue.value = ia();
5099
5107
  }
5100
- const Lc = M("screen");
5108
+ const Lc = N("screen");
5101
5109
  function Xe(t) {
5102
5110
  ue.value = [...ue.value, t];
5103
5111
  }
@@ -5107,7 +5115,7 @@ function yn() {
5107
5115
  function lr(t) {
5108
5116
  ue.value = [...ue.value.slice(0, -1), t];
5109
5117
  }
5110
- const Oc = 6e4, Ut = M(!1), cr = M(!1), ur = /* @__PURE__ */ new Set();
5118
+ const Oc = 6e4, Ut = N(!1), cr = N(!1), ur = /* @__PURE__ */ new Set();
5111
5119
  function zc(t) {
5112
5120
  return ur.add(t), () => {
5113
5121
  ur.delete(t);
@@ -5304,7 +5312,7 @@ function Zc({ radius: t = "full", iconOption: e = "chat", label: n }) {
5304
5312
  }
5305
5313
  );
5306
5314
  }
5307
- const wn = M(!1);
5315
+ const wn = N(!1);
5308
5316
  function Xc(t, e) {
5309
5317
  return e ? `jex-proactive-dismissed:${t}:${e}` : `jex-proactive-dismissed:${t}`;
5310
5318
  }
@@ -5369,7 +5377,7 @@ function nu({ title: t, message: e, guardKey: n }) {
5369
5377
  function ru({ title: t, botName: e, onResetSession: n }) {
5370
5378
  const r = _(), [i, o] = A("");
5371
5379
  function a() {
5372
- Qn(), Lt.value = "fresh", n(), Nc(), Xe({ id: "chat" });
5380
+ Qn(), Lt.value = "fresh", n(), Mc(), Xe({ id: "chat" });
5373
5381
  }
5374
5382
  function l(u) {
5375
5383
  Qn(), Lt.value = "resume", n(), Si(u), Xe({ id: "chat" });
@@ -5475,7 +5483,7 @@ function iu({ title: t }) {
5475
5483
  ] })
5476
5484
  ] });
5477
5485
  }
5478
- const vt = M("");
5486
+ const vt = N("");
5479
5487
  function ou(t) {
5480
5488
  if (!t)
5481
5489
  return;
@@ -5485,7 +5493,7 @@ function ou(t) {
5485
5493
  const n = `@${e} `, r = vt.value;
5486
5494
  r.includes(n) || r.includes(`@${e}`) || (vt.value = r.trimStart() ? `${n}${r.trimStart()}` : n);
5487
5495
  }
5488
- const Vt = M(null), Ii = M(Date.now()), dn = M(!1), Ar = M(!1), Qt = M(!1), kn = M(null);
5496
+ const Vt = N(null), Ii = N(Date.now()), dn = N(!1), Ar = N(!1), Qt = N(!1), kn = N(null);
5489
5497
  function sa() {
5490
5498
  return Sr.value === "explicit" && !Ar.value;
5491
5499
  }
@@ -5498,7 +5506,7 @@ function au() {
5498
5506
  function Ei() {
5499
5507
  Ar.value = !1, Qt.value = !1, kn.value = null;
5500
5508
  }
5501
- const ze = M([]), su = 4, lu = 8 * 1024 * 1024;
5509
+ const ze = N([]), su = 4, lu = 8 * 1024 * 1024;
5502
5510
  function cu() {
5503
5511
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `att-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 11)}`;
5504
5512
  }
@@ -5532,7 +5540,7 @@ function ca(t, e) {
5532
5540
  if (typeof i == "string") {
5533
5541
  const o = [...e, i];
5534
5542
  return ca(t, o);
5535
- } else if (i === No) {
5543
+ } else if (i === Mo) {
5536
5544
  if (e.length < 1) {
5537
5545
  const o = [t, ...e].join(".");
5538
5546
  throw new Error(
@@ -5599,7 +5607,7 @@ function mu() {
5599
5607
  const t = _(), { isActive: e, remainingSeconds: n } = fu();
5600
5608
  return e ? /* @__PURE__ */ s("div", { class: "jex-rate-limit-notice", role: "status", "aria-live": "polite", children: t.errorRateLimited.replace("{seconds}", String(n)) }) : null;
5601
5609
  }
5602
- const ht = M(null);
5610
+ const ht = N(null);
5603
5611
  function gu() {
5604
5612
  const t = _(), e = ht.value;
5605
5613
  if (e === null)
@@ -5848,7 +5856,7 @@ const ku = (t) => t.replace(
5848
5856
  /^([A-Z])|[\s-_]+(\w)/g,
5849
5857
  (e, n, r) => r ? r.toUpperCase() : n.toLowerCase()
5850
5858
  );
5851
- const Ni = (t) => {
5859
+ const Mi = (t) => {
5852
5860
  const e = ku(t);
5853
5861
  return e.charAt(0).toUpperCase() + e.slice(1);
5854
5862
  };
@@ -5899,7 +5907,7 @@ const Cu = (t, e) => {
5899
5907
  ...a,
5900
5908
  iconNode: e,
5901
5909
  class: wu(
5902
- `lucide-${qi(Ni(t))}`,
5910
+ `lucide-${qi(Mi(t))}`,
5903
5911
  `lucide-${qi(t)}`,
5904
5912
  r,
5905
5913
  i
@@ -5907,7 +5915,7 @@ const Cu = (t, e) => {
5907
5915
  },
5908
5916
  o
5909
5917
  );
5910
- return n.displayName = Ni(t), n;
5918
+ return n.displayName = Mi(t), n;
5911
5919
  };
5912
5920
  const Tu = Cu("corner-up-left", [
5913
5921
  ["path", { d: "M20 20v-7a4 4 0 0 0-4-4H4", key: "1nkjon" }],
@@ -5934,8 +5942,8 @@ var Ru = (() => {
5934
5942
  } catch {
5935
5943
  return !1;
5936
5944
  }
5937
- })(), ae = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`), htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}>`) }, Au = /^(?:[ \t]*(?:\n|$))+/, Iu = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Eu = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, tn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Pu = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Er = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ha = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, pa = R(ha).replace(/bull/g, Er).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), $u = R(ha).replace(/bull/g, Er).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Pr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, qu = /^[^\n]+/, $r = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Nu = R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", $r).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Mu = R(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Er).getRegex(), Pn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", qr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Lu = R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", qr).replace("tag", Pn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), fa = R(Pr).replace("hr", tn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Pn).getRegex(), Ou = R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", fa).getRegex(), Nr = { blockquote: Ou, code: Iu, def: Nu, fences: Eu, heading: Pu, hr: tn, html: Lu, lheading: pa, list: Mu, newline: Au, paragraph: fa, table: Je, text: qu }, Mi = R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", tn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Pn).getRegex(), zu = { ...Nr, lheading: $u, table: Mi, paragraph: R(Pr).replace("hr", tn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Mi).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Pn).getRegex() }, Bu = { ...Nr, html: R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", qr).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Je, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: R(Pr).replace("hr", tn).replace("heading", ` *#{1,6} *[^
5938
- ]`).replace("lheading", pa).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Du = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Fu = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ma = /^( {2,}|\\)\n(?!\s*$)/, Uu = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, _t = /[\p{P}\p{S}]/u, $n = /[\s\p{P}\p{S}]/u, Mr = /[^\s\p{P}\p{S}]/u, Vu = R(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, $n).getRegex(), ga = /(?!~)[\p{P}\p{S}]/u, Qu = /(?!~)[\s\p{P}\p{S}]/u, Hu = /(?:[^\s\p{P}\p{S}]|~)/u, Wu = R(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Ru ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), xa = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Ku = R(xa, "u").replace(/punct/g, _t).getRegex(), Gu = R(xa, "u").replace(/punct/g, ga).getRegex(), ba = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Yu = R(ba, "gu").replace(/notPunctSpace/g, Mr).replace(/punctSpace/g, $n).replace(/punct/g, _t).getRegex(), Ju = R(ba, "gu").replace(/notPunctSpace/g, Hu).replace(/punctSpace/g, Qu).replace(/punct/g, ga).getRegex(), Zu = R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Mr).replace(/punctSpace/g, $n).replace(/punct/g, _t).getRegex(), Xu = R(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, _t).getRegex(), ed = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", td = R(ed, "gu").replace(/notPunctSpace/g, Mr).replace(/punctSpace/g, $n).replace(/punct/g, _t).getRegex(), nd = R(/\\(punct)/, "gu").replace(/punct/g, _t).getRegex(), rd = R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), id = R(qr).replace("(?:-->|$)", "-->").getRegex(), od = R("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", id).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), _n = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, ad = R(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", _n).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), va = R(/^!?\[(label)\]\[(ref)\]/).replace("label", _n).replace("ref", $r).getRegex(), ya = R(/^!?\[(ref)\](?:\[\])?/).replace("ref", $r).getRegex(), sd = R("reflink|nolink(?!\\()", "g").replace("reflink", va).replace("nolink", ya).getRegex(), Li = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Lr = { _backpedal: Je, anyPunctuation: nd, autolink: rd, blockSkip: Wu, br: ma, code: Fu, del: Je, delLDelim: Je, delRDelim: Je, emStrongLDelim: Ku, emStrongRDelimAst: Yu, emStrongRDelimUnd: Zu, escape: Du, link: ad, nolink: ya, punctuation: Vu, reflink: va, reflinkSearch: sd, tag: od, text: Uu, url: Je }, ld = { ...Lr, link: R(/^!?\[(label)\]\((.*?)\)/).replace("label", _n).getRegex(), reflink: R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", _n).getRegex() }, dr = { ...Lr, emStrongRDelimAst: Ju, emStrongLDelim: Gu, delLDelim: Xu, delRDelim: td, url: R(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Li).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: R(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Li).getRegex() }, cd = { ...dr, br: R(ma).replace("{2,}", "*").getRegex(), text: R(dr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, sn = { normal: Nr, gfm: zu, pedantic: Bu }, Tt = { normal: Lr, gfm: dr, breaks: cd, pedantic: ld }, ud = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Oi = (t) => ud[t];
5945
+ })(), ae = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`), htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}>`) }, Au = /^(?:[ \t]*(?:\n|$))+/, Iu = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Eu = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, tn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Pu = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Er = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ha = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, pa = R(ha).replace(/bull/g, Er).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), $u = R(ha).replace(/bull/g, Er).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Pr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, qu = /^[^\n]+/, $r = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Mu = R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", $r).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Nu = R(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Er).getRegex(), Pn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", qr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Lu = R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", qr).replace("tag", Pn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), fa = R(Pr).replace("hr", tn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Pn).getRegex(), Ou = R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", fa).getRegex(), Mr = { blockquote: Ou, code: Iu, def: Mu, fences: Eu, heading: Pu, hr: tn, html: Lu, lheading: pa, list: Nu, newline: Au, paragraph: fa, table: Je, text: qu }, Ni = R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", tn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Pn).getRegex(), zu = { ...Mr, lheading: $u, table: Ni, paragraph: R(Pr).replace("hr", tn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ni).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Pn).getRegex() }, Bu = { ...Mr, html: R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", qr).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Je, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: R(Pr).replace("hr", tn).replace("heading", ` *#{1,6} *[^
5946
+ ]`).replace("lheading", pa).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Du = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Fu = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ma = /^( {2,}|\\)\n(?!\s*$)/, Uu = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, _t = /[\p{P}\p{S}]/u, $n = /[\s\p{P}\p{S}]/u, Nr = /[^\s\p{P}\p{S}]/u, Vu = R(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, $n).getRegex(), ga = /(?!~)[\p{P}\p{S}]/u, Qu = /(?!~)[\s\p{P}\p{S}]/u, Hu = /(?:[^\s\p{P}\p{S}]|~)/u, Wu = R(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Ru ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), xa = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Ku = R(xa, "u").replace(/punct/g, _t).getRegex(), Gu = R(xa, "u").replace(/punct/g, ga).getRegex(), ba = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Yu = R(ba, "gu").replace(/notPunctSpace/g, Nr).replace(/punctSpace/g, $n).replace(/punct/g, _t).getRegex(), Ju = R(ba, "gu").replace(/notPunctSpace/g, Hu).replace(/punctSpace/g, Qu).replace(/punct/g, ga).getRegex(), Zu = R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Nr).replace(/punctSpace/g, $n).replace(/punct/g, _t).getRegex(), Xu = R(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, _t).getRegex(), ed = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", td = R(ed, "gu").replace(/notPunctSpace/g, Nr).replace(/punctSpace/g, $n).replace(/punct/g, _t).getRegex(), nd = R(/\\(punct)/, "gu").replace(/punct/g, _t).getRegex(), rd = R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), id = R(qr).replace("(?:-->|$)", "-->").getRegex(), od = R("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", id).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), _n = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, ad = R(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", _n).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), va = R(/^!?\[(label)\]\[(ref)\]/).replace("label", _n).replace("ref", $r).getRegex(), ya = R(/^!?\[(ref)\](?:\[\])?/).replace("ref", $r).getRegex(), sd = R("reflink|nolink(?!\\()", "g").replace("reflink", va).replace("nolink", ya).getRegex(), Li = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Lr = { _backpedal: Je, anyPunctuation: nd, autolink: rd, blockSkip: Wu, br: ma, code: Fu, del: Je, delLDelim: Je, delRDelim: Je, emStrongLDelim: Ku, emStrongRDelimAst: Yu, emStrongRDelimUnd: Zu, escape: Du, link: ad, nolink: ya, punctuation: Vu, reflink: va, reflinkSearch: sd, tag: od, text: Uu, url: Je }, ld = { ...Lr, link: R(/^!?\[(label)\]\((.*?)\)/).replace("label", _n).getRegex(), reflink: R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", _n).getRegex() }, dr = { ...Lr, emStrongRDelimAst: Ju, emStrongLDelim: Gu, delLDelim: Xu, delRDelim: td, url: R(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Li).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: R(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Li).getRegex() }, cd = { ...dr, br: R(ma).replace("{2,}", "*").getRegex(), text: R(dr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, sn = { normal: Mr, gfm: zu, pedantic: Bu }, Tt = { normal: Lr, gfm: dr, breaks: cd, pedantic: ld }, ud = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Oi = (t) => ud[t];
5939
5947
  function Ce(t, e) {
5940
5948
  if (e) {
5941
5949
  if (ae.escapeTest.test(t)) return t.replace(ae.escapeReplace, Oi);
@@ -6104,17 +6112,17 @@ ${d}` : d;
6104
6112
  let b = this.rules.other.nextBulletRegex(g), x = this.rules.other.hrRegex(g), m = this.rules.other.fencesBeginRegex(g), v = this.rules.other.headingBeginRegex(g), S = this.rules.other.htmlBeginRegex(g), B = this.rules.other.blockquoteBeginRegex(g);
6105
6113
  for (; t; ) {
6106
6114
  let L = t.split(`
6107
- `, 1)[0], N;
6108
- if (f = L, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), N = f) : N = f.replace(this.rules.other.tabCharGlobal, " "), m.test(f) || v.test(f) || S.test(f) || B.test(f) || b.test(f) || x.test(f)) break;
6109
- if (N.search(this.rules.other.nonSpaceChar) >= g || !f.trim()) d += `
6110
- ` + N.slice(g);
6115
+ `, 1)[0], M;
6116
+ if (f = L, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), M = f) : M = f.replace(this.rules.other.tabCharGlobal, " "), m.test(f) || v.test(f) || S.test(f) || B.test(f) || b.test(f) || x.test(f)) break;
6117
+ if (M.search(this.rules.other.nonSpaceChar) >= g || !f.trim()) d += `
6118
+ ` + M.slice(g);
6111
6119
  else {
6112
6120
  if (p || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || m.test(h) || v.test(h) || x.test(h)) break;
6113
6121
  d += `
6114
6122
  ` + f;
6115
6123
  }
6116
6124
  p = !f.trim(), u += L + `
6117
- `, t = t.substring(L.length + 1), h = N.slice(g);
6125
+ `, t = t.substring(L.length + 1), h = M.slice(g);
6118
6126
  }
6119
6127
  }
6120
6128
  i.loose || (a ? i.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (a = !0)), i.items.push({ type: "list_item", raw: u, task: !!this.options.gfm && this.rules.other.listIsTask.test(d), loose: !1, text: d, tokens: [] }), i.raw += u;
@@ -7352,16 +7360,16 @@ function qd(t, e, n, r, i) {
7352
7360
  return a;
7353
7361
  }
7354
7362
  }
7355
- function Nd(t, e, n, r) {
7363
+ function Md(t, e, n, r) {
7356
7364
  return e === "PERCENTAGE" ? `-${t}%` : `-${ye(t, n, r)}`;
7357
7365
  }
7358
- const Md = {
7366
+ const Nd = {
7359
7367
  startpaket: "magiclineFeeStarterPackage",
7360
7368
  "starter package": "magiclineFeeStarterPackage",
7361
7369
  trainerpauschale: "magiclineFeeTrainerFee"
7362
7370
  };
7363
7371
  function Ta(t, e) {
7364
- const n = t.trim().toLowerCase(), r = Md[n];
7372
+ const n = t.trim().toLowerCase(), r = Nd[n];
7365
7373
  return r !== void 0 ? e[r] : t;
7366
7374
  }
7367
7375
  function Ld(t, e, n) {
@@ -7546,7 +7554,7 @@ function Vd({
7546
7554
  const f = _(), { plan: p, minimumAge: g, bookingWithoutTrainerAllowed: b, studioZoneId: x } = o, m = Y(
7547
7555
  () => zd(p, b),
7548
7556
  [p, b]
7549
- ), v = r ? Math.max(m.indexOf("slot"), 0) : 0, [S, B] = A(v), [L, N] = A({}), [D, ne] = A(!1), [re, ie] = A(null), H = Y(() => Sa(), []), Z = Math.min(S, m.length - 1), y = m[Z], W = Z === m.length - 1, jt = Z === 0;
7557
+ ), v = r ? Math.max(m.indexOf("slot"), 0) : 0, [S, B] = A(v), [L, M] = A({}), [D, ne] = A(!1), [re, ie] = A(null), H = Y(() => Sa(), []), Z = Math.min(S, m.length - 1), y = m[Z], W = Z === m.length - 1, jt = Z === 0;
7550
7558
  function Ve(Q) {
7551
7559
  const C = {};
7552
7560
  if (Q === "slot")
@@ -7563,23 +7571,23 @@ function Vd({
7563
7571
  function Qe() {
7564
7572
  const Q = Ve(y);
7565
7573
  if (Object.keys(Q).length > 0) {
7566
- N(Q);
7574
+ M(Q);
7567
7575
  return;
7568
7576
  }
7569
- N({}), B((C) => Math.min(C + 1, m.length - 1));
7577
+ M({}), B((C) => Math.min(C + 1, m.length - 1));
7570
7578
  }
7571
7579
  function ot() {
7572
- N({}), ie(null), B((Q) => Math.max(Q - 1, 0));
7580
+ M({}), ie(null), B((Q) => Math.max(Q - 1, 0));
7573
7581
  }
7574
7582
  async function He() {
7575
7583
  if (D)
7576
7584
  return;
7577
7585
  const Q = Ve("confirm");
7578
7586
  if (Object.keys(Q).length > 0) {
7579
- N(Q);
7587
+ M(Q);
7580
7588
  return;
7581
7589
  }
7582
- N({}), ie(null), ne(!0);
7590
+ M({}), ie(null), ne(!0);
7583
7591
  try {
7584
7592
  const C = Zd(p, a);
7585
7593
  await h({
@@ -8349,9 +8357,9 @@ function ah({
8349
8357
  o({ type: "setPersonal", key: w, value: j });
8350
8358
  }, []), B = q((w, j) => {
8351
8359
  o({ type: "setAddress", key: w, value: j });
8352
- }, []), L = q((w, j, Me) => {
8353
- o({ type: "toggleModule", moduleId: w, selected: j, consentAckKey: Me }), o({ type: "dropVoucherAcks" }), l({ type: "CLEAR_VOUCHER" });
8354
- }, []), N = q((w, j) => {
8360
+ }, []), L = q((w, j, Ne) => {
8361
+ o({ type: "toggleModule", moduleId: w, selected: j, consentAckKey: Ne }), o({ type: "dropVoucherAcks" }), l({ type: "CLEAR_VOUCHER" });
8362
+ }, []), M = q((w, j) => {
8355
8363
  o({ type: "setBlockAck", ackKey: w, value: j });
8356
8364
  }, []), D = q((w) => {
8357
8365
  o({ type: "setAccountHolder", value: w });
@@ -8391,23 +8399,23 @@ function ah({
8391
8399
  p({ phase: "idle" });
8392
8400
  }, []), at = q(() => {
8393
8401
  m();
8394
- }, []), ke = c.phase === "ready" && i.termId !== null ? c.terms.find((w) => w.termId === i.termId) ?? null : null, { selectedModuleIds: Q, acknowledgedBlocks: C } = i, { appliedVoucher: fe } = a, Ne = Y(() => {
8402
+ }, []), ke = c.phase === "ready" && i.termId !== null ? c.terms.find((w) => w.termId === i.termId) ?? null : null, { selectedModuleIds: Q, acknowledgedBlocks: C } = i, { appliedVoucher: fe } = a, Me = Y(() => {
8395
8403
  if (ke === null)
8396
8404
  return [];
8397
8405
  const w = /* @__PURE__ */ new Set();
8398
8406
  for (const j of ke.textBlocks)
8399
8407
  j.isConfirmationRequired && w.add(j.ackKey);
8400
8408
  for (const j of Q) {
8401
- const Me = ke.optionalModules.find((We) => We.id === j);
8402
- Me?.consent && w.add(Me.consent.ackKey);
8409
+ const Ne = ke.optionalModules.find((We) => We.id === j);
8410
+ Ne?.consent && w.add(Ne.consent.ackKey);
8403
8411
  }
8404
8412
  if (fe !== null)
8405
8413
  for (const j of fe.textBlocks)
8406
8414
  w.add(j.ackKey);
8407
8415
  return [...w];
8408
8416
  }, [ke, Q, fe]), Ct = Y(
8409
- () => Ne.every((w) => C[w] === !0),
8410
- [Ne, C]
8417
+ () => Me.every((w) => C[w] === !0),
8418
+ [Me, C]
8411
8419
  ), { firstName: te, lastName: _e } = i.personal, { accountHolder: se, accountHolderTouched: st } = i.payment;
8412
8420
  return P(() => {
8413
8421
  st || se !== "" || te.trim() !== "" && _e.trim() !== "" && o({
@@ -8437,8 +8445,8 @@ function ah({
8437
8445
  return;
8438
8446
  }
8439
8447
  let j = !1;
8440
- const Me = d.current;
8441
- p(Me !== null ? { phase: "reloading", pricing: Me } : { phase: "loading" });
8448
+ const Ne = d.current;
8449
+ p(Ne !== null ? { phase: "reloading", pricing: Ne } : { phase: "loading" });
8442
8450
  const We = w.defaultContractStartDate ?? "", qn = {
8443
8451
  sessionId: t,
8444
8452
  visitorId: e,
@@ -8492,7 +8500,7 @@ function ah({
8492
8500
  offersState: c,
8493
8501
  previewState: h,
8494
8502
  selectedTerm: ke,
8495
- requiredAckKeys: Ne,
8503
+ requiredAckKeys: Me,
8496
8504
  allAcknowledged: Ct,
8497
8505
  /**
8498
8506
  * Server-authoritative flag: true only when the server confirmed
@@ -8511,7 +8519,7 @@ function ah({
8511
8519
  setPersonal: S,
8512
8520
  setAddress: B,
8513
8521
  toggleModule: L,
8514
- setBlockAck: N,
8522
+ setBlockAck: M,
8515
8523
  setAccountHolder: D,
8516
8524
  setIban: ne,
8517
8525
  setConsent: re,
@@ -8552,7 +8560,7 @@ function lh({
8552
8560
  appliedVoucher: S,
8553
8561
  appliedVoucherCode: B,
8554
8562
  voucherUnavailable: L,
8555
- setTermId: N,
8563
+ setTermId: M,
8556
8564
  setPersonal: D,
8557
8565
  setAddress: ne,
8558
8566
  toggleModule: re,
@@ -8570,7 +8578,7 @@ function lh({
8570
8578
  commitVoucherApplied: at,
8571
8579
  markVoucherInvalid: ke,
8572
8580
  markVoucherDisabled: Q
8573
- } = u, [C, fe] = A(0), [Ne, Ct] = A({}), [te, _e] = A(!1), [se, st] = A(null), [w, j] = A(null), [Me, We] = A(null), qn = Y(() => Sa(), []);
8581
+ } = u, [C, fe] = A(0), [Me, Ct] = A({}), [te, _e] = A(!1), [se, st] = A(null), [w, j] = A(null), [Ne, We] = A(null), qn = Y(() => Sa(), []);
8574
8582
  if (se !== null && se.status === "succeeded")
8575
8583
  return /* @__PURE__ */ s(Ui, { customerNumber: se.customerNumber });
8576
8584
  if (se !== null && se.status === "failed" && !se.retryable) {
@@ -8607,7 +8615,7 @@ function lh({
8607
8615
  }
8608
8616
  return I === "payment" && (d.payment.accountHolder.trim() === "" && (T.accountHolder = o.magiclineRequiredError), Ed(d.payment.iban) || (T.iban = o.magiclineIbanInvalidError), d.consents.privacy || (T.privacy = o.magiclineConsentError), d.consents.sepa || (T.sepa = o.magiclineConsentError)), T;
8609
8617
  }
8610
- function Na() {
8618
+ function Ma() {
8611
8619
  const I = qa(je);
8612
8620
  if (Object.keys(I).length > 0) {
8613
8621
  Ct(I);
@@ -8617,7 +8625,7 @@ function lh({
8617
8625
  const T = Math.min(lt + 1, F.length - 1);
8618
8626
  F[T] === "review" && Qe(), fe(T);
8619
8627
  }
8620
- function Ma() {
8628
+ function Na() {
8621
8629
  Ct({}), j(null), je === "review" && ot(), fe((I) => Math.max(I - 1, 0));
8622
8630
  }
8623
8631
  function La() {
@@ -8757,7 +8765,7 @@ function lh({
8757
8765
  }
8758
8766
  }
8759
8767
  function Ba() {
8760
- Dr ? Oa() : Na();
8768
+ Dr ? Oa() : Ma();
8761
8769
  }
8762
8770
  const Fr = wh(je, o), Da = m === "applying" || v.trim() !== "" && v.trim() !== (B ?? ""), Fa = je === "review" && (f.phase !== "ready" || !b || Da), Ua = te || Fa;
8763
8771
  return /* @__PURE__ */ s("div", { class: "jex-inline-form jex-magicline-form", children: [
@@ -8783,8 +8791,8 @@ function lh({
8783
8791
  selectedTermId: d.termId,
8784
8792
  widgetLocale: a,
8785
8793
  disabled: te,
8786
- error: Ne.termId,
8787
- onSelect: N,
8794
+ error: Me.termId,
8795
+ onSelect: M,
8788
8796
  onRetry: Ve
8789
8797
  }
8790
8798
  ) : null,
@@ -8796,7 +8804,7 @@ function lh({
8796
8804
  acknowledgedBlocks: d.acknowledgedBlocks,
8797
8805
  widgetLocale: a,
8798
8806
  disabled: te,
8799
- error: Ne.upgrades,
8807
+ error: Me.upgrades,
8800
8808
  onToggle: re,
8801
8809
  onAck: ie
8802
8810
  }
@@ -8805,7 +8813,7 @@ function lh({
8805
8813
  fh,
8806
8814
  {
8807
8815
  personal: d.personal,
8808
- errors: Ne,
8816
+ errors: Me,
8809
8817
  disabled: te,
8810
8818
  setPersonal: D
8811
8819
  }
@@ -8814,7 +8822,7 @@ function lh({
8814
8822
  mh,
8815
8823
  {
8816
8824
  address: d.address,
8817
- errors: Ne,
8825
+ errors: Me,
8818
8826
  disabled: te,
8819
8827
  setAddress: ne
8820
8828
  }
@@ -8824,7 +8832,7 @@ function lh({
8824
8832
  {
8825
8833
  formMessageId: t,
8826
8834
  fields: d,
8827
- errors: Ne,
8835
+ errors: Me,
8828
8836
  privacyUrl: qn,
8829
8837
  disabled: te,
8830
8838
  setAccountHolder: H,
@@ -8848,7 +8856,7 @@ function lh({
8848
8856
  voucherStatus: m,
8849
8857
  draftVoucherCode: v,
8850
8858
  appliedVoucher: S,
8851
- voucherBanner: Me,
8859
+ voucherBanner: Ne,
8852
8860
  onVoucherDraftChange: He,
8853
8861
  onApplyVoucher: () => {
8854
8862
  za();
@@ -8863,7 +8871,7 @@ function lh({
8863
8871
  type: "button",
8864
8872
  class: "jex-magicline-wizard-back",
8865
8873
  disabled: te,
8866
- onClick: Ma,
8874
+ onClick: Na,
8867
8875
  children: o.magiclineWizardBack
8868
8876
  }
8869
8877
  ),
@@ -8886,8 +8894,8 @@ function Ui({ customerNumber: t }) {
8886
8894
  return /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted", children: [
8887
8895
  /* @__PURE__ */ s("span", { class: "jex-inline-form-check", children: "✓" }),
8888
8896
  /* @__PURE__ */ s("div", { children: [
8889
- /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-title", children: e.magiclineSubmitted }),
8890
- /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-detail", children: e.magiclineContractSubmitted }),
8897
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-title", children: e.magiclineContractSuccessTitle }),
8898
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-detail", children: e.magiclineContractSuccessDetail }),
8891
8899
  t !== null && t !== "" ? /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-detail", children: e.magiclineCustomerNumber.replace("{number}", t) }) : null
8892
8900
  ] })
8893
8901
  ] });
@@ -9376,7 +9384,7 @@ function xh({
9376
9384
  /* @__PURE__ */ s("div", { class: "jex-magicline-slots-hint", role: "alert", "aria-live": "polite", children: n.code === "offer_unavailable" ? x.magiclineOfferUnavailableNotice : x.magiclineReviewError }),
9377
9385
  /* @__PURE__ */ s("button", { type: "button", class: "jex-magicline-retry", disabled: i, onClick: l, children: x.magiclineRetry })
9378
9386
  ] });
9379
- const m = n.pricing, v = n.phase === "reloading", S = m.contractVolume, B = `${t.personal.firstName} ${t.personal.lastName}`.trim(), L = t.address, N = [
9387
+ const m = n.pricing, v = n.phase === "reloading", S = m.contractVolume, B = `${t.personal.firstName} ${t.personal.lastName}`.trim(), L = t.address, M = [
9380
9388
  `${L.street} ${L.houseNumber}`.trim(),
9381
9389
  `${L.zipCode} ${L.city}`.trim(),
9382
9390
  x.magiclineCountryStatic
@@ -9408,7 +9416,7 @@ function xh({
9408
9416
  f !== null && f.voucherType === "DISCOUNT" ? /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row jex-magicline-voucher-discount-row", children: [
9409
9417
  /* @__PURE__ */ s("dt", { children: x.magiclineVoucherAppliedDiscount.replace(
9410
9418
  "{discount}",
9411
- Nd(
9419
+ Md(
9412
9420
  f.discountValue,
9413
9421
  f.discountType,
9414
9422
  m.currencyCode,
@@ -9453,7 +9461,7 @@ function xh({
9453
9461
  ] }),
9454
9462
  /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row", children: [
9455
9463
  /* @__PURE__ */ s("dt", { children: x.magiclineSummaryAddress }),
9456
- /* @__PURE__ */ s("dd", { children: N })
9464
+ /* @__PURE__ */ s("dd", { children: M })
9457
9465
  ] }),
9458
9466
  /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row", children: [
9459
9467
  /* @__PURE__ */ s("dt", { children: x.magiclineReviewPayment }),
@@ -9730,8 +9738,8 @@ function _h({ message: t, sessionId: e, visitorId: n }) {
9730
9738
  return /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted", children: [
9731
9739
  /* @__PURE__ */ s("span", { class: "jex-inline-form-check", children: "✓" }),
9732
9740
  /* @__PURE__ */ s("div", { children: [
9733
- /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-title", children: r.magiclineSubmitted }),
9734
- /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-detail", children: r.magiclineSubmittedDetail })
9741
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-title", children: r.magiclineTrialSuccessTitle }),
9742
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-detail", children: r.magiclineTrialSuccessDetail })
9735
9743
  ] })
9736
9744
  ] });
9737
9745
  if (i.status === "failed")
@@ -10137,7 +10145,7 @@ function Ki(t) {
10137
10145
  function Pa(t) {
10138
10146
  return t instanceof pn ? t.data?.code === "UNAUTHORIZED_ORIGIN" : !1;
10139
10147
  }
10140
- function Nh(t = 1e4) {
10148
+ function Mh(t = 1e4) {
10141
10149
  return Fe.value ? Promise.resolve(Fe.value) : new Promise((e) => {
10142
10150
  let n = !1;
10143
10151
  const r = (a) => {
@@ -10149,9 +10157,9 @@ function Nh(t = 1e4) {
10149
10157
  });
10150
10158
  });
10151
10159
  }
10152
- function Mh(t, e) {
10160
+ function Nh(t, e) {
10153
10161
  const n = Ee(null), r = ft(!1), i = ft(!1), o = ft(!1), a = ft(null), l = Yt(pe.functions.chat.public.sessions.createOrResume), c = async (p) => {
10154
- const g = await Nh();
10162
+ const g = await Mh();
10155
10163
  if (!g)
10156
10164
  return console.warn("[JexityChat] No bootstrap token after 10s — session creation blocked."), ht.value = "no-token", null;
10157
10165
  const b = (v) => ({
@@ -10368,9 +10376,9 @@ function Bh({ options: t }) {
10368
10376
  function Dh({ options: t }) {
10369
10377
  const e = wc(t.orgSlug, t.projSlug, t.convexUrl);
10370
10378
  Ec(t.parentOrigin), P(() => {
10371
- qc(), Mc();
10379
+ qc(), Nc();
10372
10380
  }, []);
10373
- const { sessionId: n, visitorId: r, isLoading: i, sessionNotFound: o, resumeFailed: a, isOrgDeleted: l, ensureSession: c, startFresh: u, resetSession: d } = Mh(t.orgSlug, t.projSlug), h = bc(t, e);
10381
+ const { sessionId: n, visitorId: r, isLoading: i, sessionNotFound: o, resumeFailed: a, isOrgDeleted: l, ensureSession: c, startFresh: u, resetSession: d } = Nh(t.orgSlug, t.projSlug), h = bc(t, e);
10374
10382
  P(() => {
10375
10383
  qe.value = ea(h.locale);
10376
10384
  }, [h.locale]), P(() => {
@@ -10386,8 +10394,8 @@ function Dh({ options: t }) {
10386
10394
  if (h.mode !== "embedded")
10387
10395
  try {
10388
10396
  return Fc();
10389
- } catch (N) {
10390
- console.warn("[JexityChat] Idle-lock watcher failed to start:", N);
10397
+ } catch (M) {
10398
+ console.warn("[JexityChat] Idle-lock watcher failed to start:", M);
10391
10399
  return;
10392
10400
  }
10393
10401
  }, [h.mode]);
@@ -10404,7 +10412,7 @@ function Dh({ options: t }) {
10404
10412
  return P(() => {
10405
10413
  if (b || !S || h.proactiveMode === "off" || Ai(L))
10406
10414
  return;
10407
- const N = window.setTimeout(() => {
10415
+ const M = window.setTimeout(() => {
10408
10416
  const D = tu({
10409
10417
  mode: h.proactiveMode,
10410
10418
  isOpen: V.peek(),
@@ -10414,7 +10422,7 @@ function Dh({ options: t }) {
10414
10422
  D === "teaser" ? wn.value = !0 : D === "open" && (V.value = !0);
10415
10423
  }, h.proactiveDelaySeconds * 1e3);
10416
10424
  return () => {
10417
- window.clearTimeout(N);
10425
+ window.clearTimeout(M);
10418
10426
  };
10419
10427
  }, [b, S, h.proactiveMode, h.proactiveDelaySeconds, L]), /* @__PURE__ */ s(
10420
10428
  "div",