@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/react.mjs CHANGED
@@ -47,7 +47,7 @@ function op() {
47
47
  return t;
48
48
  }
49
49
  var Ht, w, Yr, Xr, Je, Qi, eo, to, no, mi, Kn, Gn, io, $t = {}, ro = [], Ya = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Wt = Array.isArray;
50
- function Ie(t, e) {
50
+ function Re(t, e) {
51
51
  for (var n in e) t[n] = e[n];
52
52
  return t;
53
53
  }
@@ -58,9 +58,9 @@ function xe(t, e, n) {
58
58
  var i, r, o, a = {};
59
59
  for (o in e) o == "key" ? i = e[o] : o == "ref" ? r = e[o] : a[o] = e[o];
60
60
  if (arguments.length > 2 && (a.children = arguments.length > 3 ? Ht.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null) for (o in t.defaultProps) a[o] === void 0 && (a[o] = t.defaultProps[o]);
61
- return Pt(t, a, i, r, null);
61
+ return qt(t, a, i, r, null);
62
62
  }
63
- function Pt(t, e, n, i, r) {
63
+ function qt(t, e, n, i, r) {
64
64
  var o = { type: t, props: e, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: r ?? ++Yr, __i: -1, __u: 0 };
65
65
  return r == null && w.vnode != null && w.vnode(o), o;
66
66
  }
@@ -92,17 +92,17 @@ function Jn(t) {
92
92
  (!t.__d && (t.__d = !0) && Je.push(t) && !hn.__r++ || Qi != w.debounceRendering) && ((Qi = w.debounceRendering) || eo)(hn);
93
93
  }
94
94
  function hn() {
95
- for (var t, e, n, i, r, o, a, l = 1; Je.length; ) Je.length > l && Je.sort(to), t = Je.shift(), l = Je.length, t.__d && (n = void 0, i = void 0, r = (i = (e = t).__v).__e, o = [], a = [], e.__P && ((n = Ie({}, i)).__v = i.__v + 1, w.vnode && w.vnode(n), bi(e.__P, n, i, e.__n, e.__P.namespaceURI, 32 & i.__u ? [r] : null, o, r ?? ft(i), !!(32 & i.__u), a), n.__v = i.__v, n.__.__k[n.__i] = n, lo(o, n, a), i.__e = i.__ = null, n.__e != r && oo(n)));
95
+ for (var t, e, n, i, r, o, a, l = 1; Je.length; ) Je.length > l && Je.sort(to), t = Je.shift(), l = Je.length, t.__d && (n = void 0, i = void 0, r = (i = (e = t).__v).__e, o = [], a = [], e.__P && ((n = Re({}, i)).__v = i.__v + 1, w.vnode && w.vnode(n), bi(e.__P, n, i, e.__n, e.__P.namespaceURI, 32 & i.__u ? [r] : null, o, r ?? ft(i), !!(32 & i.__u), a), n.__v = i.__v, n.__.__k[n.__i] = n, lo(o, n, a), i.__e = i.__ = null, n.__e != r && oo(n)));
96
96
  hn.__r = 0;
97
97
  }
98
98
  function ao(t, e, n, i, r, o, a, l, c, u, d) {
99
- var h, g, p, m, v, x, f, b = i && i.__k || ro, T = e.length;
100
- for (c = es(n, e, b, c, T), h = 0; h < T; h++) (p = n.__k[h]) != null && (g = p.__i == -1 ? $t : b[p.__i] || $t, p.__i = h, x = bi(t, p, g, r, o, a, l, c, u, d), m = p.__e, p.ref && g.ref != p.ref && (g.ref && vi(g.ref, null, p), d.push(p.ref, p.__c || m, p)), v == null && m != null && (v = m), (f = !!(4 & p.__u)) || g.__k === p.__k ? c = so(p, c, t, f) : typeof p.type == "function" && x !== void 0 ? c = x : m && (c = m.nextSibling), p.__u &= -7);
99
+ var h, g, p, m, v, x, f, b = i && i.__k || ro, I = e.length;
100
+ for (c = es(n, e, b, c, I), h = 0; h < I; h++) (p = n.__k[h]) != null && (g = p.__i == -1 ? $t : b[p.__i] || $t, p.__i = h, x = bi(t, p, g, r, o, a, l, c, u, d), m = p.__e, p.ref && g.ref != p.ref && (g.ref && vi(g.ref, null, p), d.push(p.ref, p.__c || m, p)), v == null && m != null && (v = m), (f = !!(4 & p.__u)) || g.__k === p.__k ? c = so(p, c, t, f) : typeof p.type == "function" && x !== void 0 ? c = x : m && (c = m.nextSibling), p.__u &= -7);
101
101
  return n.__e = v, c;
102
102
  }
103
103
  function es(t, e, n, i, r) {
104
104
  var o, a, l, c, u, d = n.length, h = d, g = 0;
105
- for (t.__k = new Array(r), o = 0; o < r; o++) (a = e[o]) != null && typeof a != "boolean" && typeof a != "function" ? (c = o + g, (a = t.__k[o] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? Pt(null, a, null, null, null) : Wt(a) ? Pt(O, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? Pt(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = t, a.__b = t.__b + 1, l = null, (u = a.__i = ts(a, n, c, h)) != -1 && (h--, (l = n[u]) && (l.__u |= 2)), l == null || l.__v == null ? (u == -1 && (r > d ? g-- : r < d && g++), typeof a.type != "function" && (a.__u |= 4)) : u != c && (u == c - 1 ? g-- : u == c + 1 ? g++ : (u > c ? g-- : g++, a.__u |= 4))) : t.__k[o] = null;
105
+ for (t.__k = new Array(r), o = 0; o < r; o++) (a = e[o]) != null && typeof a != "boolean" && typeof a != "function" ? (c = o + g, (a = t.__k[o] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? qt(null, a, null, null, null) : Wt(a) ? qt(O, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? qt(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = t, a.__b = t.__b + 1, l = null, (u = a.__i = ts(a, n, c, h)) != -1 && (h--, (l = n[u]) && (l.__u |= 2)), l == null || l.__v == null ? (u == -1 && (r > d ? g-- : r < d && g++), typeof a.type != "function" && (a.__u |= 4)) : u != c && (u == c - 1 ? g-- : u == c + 1 ? g++ : (u > c ? g-- : g++, a.__u |= 4))) : t.__k[o] = null;
106
106
  if (h) for (o = 0; o < d; o++) (l = n[o]) != null && (2 & l.__u) == 0 && (l.__e == i && (i = ft(l)), uo(l, l));
107
107
  return i;
108
108
  }
@@ -163,11 +163,11 @@ function Wi(t) {
163
163
  };
164
164
  }
165
165
  function bi(t, e, n, i, r, o, a, l, c, u) {
166
- var d, h, g, p, m, v, x, f, b, T, z, M, $, Z, ne, ie, re, Q = e.type;
166
+ var d, h, g, p, m, v, x, f, b, I, z, M, $, Z, ne, ie, re, Q = e.type;
167
167
  if (e.constructor != null) return null;
168
168
  128 & n.__u && (c = !!(32 & n.__u), o = [l = e.__e = n.__e]), (d = w.__b) && d(e);
169
169
  e: if (typeof Q == "function") try {
170
- if (f = e.props, b = "prototype" in Q && Q.prototype.render, T = (d = Q.contextType) && i[d.__c], z = d ? T ? T.props.value : d.__ : i, n.__c ? x = (h = e.__c = n.__c).__ = h.__E : (b ? e.__c = h = new Q(f, z) : (e.__c = h = new ke(f, z), h.constructor = Q, h.render = is), T && T.sub(h), h.props = f, h.state || (h.state = {}), h.context = z, h.__n = i, g = h.__d = !0, h.__h = [], h._sb = []), b && h.__s == null && (h.__s = h.state), b && Q.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = Ie({}, h.__s)), Ie(h.__s, Q.getDerivedStateFromProps(f, h.__s))), p = h.props, m = h.state, h.__v = e, g) b && Q.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), b && h.componentDidMount != null && h.__h.push(h.componentDidMount);
170
+ if (f = e.props, b = "prototype" in Q && Q.prototype.render, I = (d = Q.contextType) && i[d.__c], z = d ? I ? I.props.value : d.__ : i, n.__c ? x = (h = e.__c = n.__c).__ = h.__E : (b ? e.__c = h = new Q(f, z) : (e.__c = h = new ke(f, z), h.constructor = Q, h.render = is), I && I.sub(h), h.props = f, h.state || (h.state = {}), h.context = z, h.__n = i, g = h.__d = !0, h.__h = [], h._sb = []), b && h.__s == null && (h.__s = h.state), b && Q.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = Re({}, h.__s)), Re(h.__s, Q.getDerivedStateFromProps(f, h.__s))), p = h.props, m = h.state, h.__v = e, g) b && Q.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), b && h.componentDidMount != null && h.__h.push(h.componentDidMount);
171
171
  else {
172
172
  if (b && Q.getDerivedStateFromProps == null && f !== p && h.componentWillReceiveProps != null && h.componentWillReceiveProps(f, z), !h.__e && h.shouldComponentUpdate != null && h.shouldComponentUpdate(f, h.__s, z) === !1 || e.__v == n.__v) {
173
173
  for (e.__v != n.__v && (h.props = f, h.state = h.__s, h.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(Y) {
@@ -186,7 +186,7 @@ function bi(t, e, n, i, r, o, a, l, c, u) {
186
186
  } else do
187
187
  h.__d = !1, $ && $(e), d = h.render(h.props, h.state, h.context), h.state = h.__s;
188
188
  while (h.__d && ++Z < 25);
189
- h.state = h.__s, h.getChildContext != null && (i = Ie(Ie({}, i), h.getChildContext())), b && !g && h.getSnapshotBeforeUpdate != null && (v = h.getSnapshotBeforeUpdate(p, m)), ie = d, d != null && d.type === O && d.key == null && (ie = co(d.props.children)), l = ao(t, Wt(ie) ? ie : [ie], e, n, i, r, o, a, l, c, u), h.base = e.__e, e.__u &= -161, h.__h.length && a.push(h), x && (h.__E = h.__ = null);
189
+ h.state = h.__s, h.getChildContext != null && (i = Re(Re({}, i), h.getChildContext())), b && !g && h.getSnapshotBeforeUpdate != null && (v = h.getSnapshotBeforeUpdate(p, m)), ie = d, d != null && d.type === O && d.key == null && (ie = co(d.props.children)), l = ao(t, Wt(ie) ? ie : [ie], e, n, i, r, o, a, l, c, u), h.base = e.__e, e.__u &= -161, h.__h.length && a.push(h), x && (h.__E = h.__ = null);
190
190
  } catch (Y) {
191
191
  if (e.__v = null, c || o != null) if (Y.then) {
192
192
  for (e.__u |= c ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
@@ -217,7 +217,7 @@ function lo(t, e, n) {
217
217
  });
218
218
  }
219
219
  function co(t) {
220
- return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Wt(t) ? t.map(co) : Ie({}, t);
220
+ return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Wt(t) ? t.map(co) : Re({}, t);
221
221
  }
222
222
  function ns(t, e, n, i, r, o, a, l, c) {
223
223
  var u, d, h, g, p, m, v, x = n.props, f = e.props, b = e.type;
@@ -282,9 +282,9 @@ function ho(t, e) {
282
282
  et(t, e, ho);
283
283
  }
284
284
  function rs(t, e, n) {
285
- var i, r, o, a, l = Ie({}, t.props);
285
+ var i, r, o, a, l = Re({}, t.props);
286
286
  for (o in t.type && t.type.defaultProps && (a = t.type.defaultProps), e) o == "key" ? i = e[o] : o == "ref" ? r = e[o] : l[o] = e[o] === void 0 && a != null ? a[o] : e[o];
287
- return arguments.length > 2 && (l.children = arguments.length > 3 ? Ht.call(arguments, 2) : n), Pt(t.type, l, i || t.key, r || t.ref, null);
287
+ return arguments.length > 2 && (l.children = arguments.length > 3 ? Ht.call(arguments, 2) : n), qt(t.type, l, i || t.key, r || t.ref, null);
288
288
  }
289
289
  function os(t) {
290
290
  function e(n) {
@@ -320,7 +320,7 @@ Ht = ro.slice, w = { __e: function(t, e, n, i) {
320
320
  return t != null && t.constructor == null;
321
321
  }, ke.prototype.setState = function(t, e) {
322
322
  var n;
323
- n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Ie({}, this.state), typeof t == "function" && (t = t(Ie({}, n), this.props)), t && Ie(n, t), t != null && this.__v && (e && this._sb.push(e), Jn(this));
323
+ n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Re({}, this.state), typeof t == "function" && (t = t(Re({}, n), this.props)), t && Re(n, t), t != null && this.__v && (e && this._sb.push(e), Jn(this));
324
324
  }, ke.prototype.forceUpdate = function(t) {
325
325
  this.__v && (this.__e = !0, t && this.__h.push(t), Jn(this));
326
326
  }, ke.prototype.render = O, Je = [], eo = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, to = function(t, e) {
@@ -341,7 +341,7 @@ function yt(t, e) {
341
341
  var n = D.__H || (D.__H = { __: [], __h: [] });
342
342
  return t >= n.__.length && n.__.push({}), n.__[t];
343
343
  }
344
- function I(t) {
344
+ function R(t) {
345
345
  return mt = 1, he(xo, t);
346
346
  }
347
347
  function he(t, e, n) {
@@ -378,7 +378,7 @@ function he(t, e, n) {
378
378
  }
379
379
  return i.__N || i.__;
380
380
  }
381
- function q(t, e) {
381
+ function P(t, e) {
382
382
  var n = yt(Fe++, 3);
383
383
  !U.__s && yi(n.__H, e) && (n.__ = t, n.u = e, D.__H.__h.push(n));
384
384
  }
@@ -508,10 +508,10 @@ function Xn(t, e) {
508
508
  return !1;
509
509
  }
510
510
  function vo(t, e) {
511
- var n = e(), i = I({ t: { __: n, u: e } }), r = i[0].t, o = i[1];
511
+ var n = e(), i = R({ t: { __: n, u: e } }), r = i[0].t, o = i[1];
512
512
  return Kt(function() {
513
513
  r.__ = n, r.u = e, zn(r) && o({ t: r });
514
- }, [t, n, e]), q(function() {
514
+ }, [t, n, e]), P(function() {
515
515
  return zn(r) && o({ t: r }), t(function() {
516
516
  zn(r) && o({ t: r });
517
517
  });
@@ -701,7 +701,7 @@ function xs(t, e) {
701
701
  or(t, n, e);
702
702
  });
703
703
  };
704
- var Ro = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, bs = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, vs = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ys = /[A-Z0-9]/g, ks = typeof document < "u", ws = function(t) {
704
+ var To = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, bs = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, vs = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ys = /[A-Z0-9]/g, ks = typeof document < "u", ws = function(t) {
705
705
  return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
706
706
  };
707
707
  function js(t, e, n) {
@@ -723,13 +723,13 @@ function Ss() {
723
723
  function Cs() {
724
724
  return this.cancelBubble;
725
725
  }
726
- function Rs() {
726
+ function Ts() {
727
727
  return this.defaultPrevented;
728
728
  }
729
729
  w.event = function(t) {
730
- return ar && (t = ar(t)), t.persist = Ss, t.isPropagationStopped = Cs, t.isDefaultPrevented = Rs, t.nativeEvent = t;
730
+ return ar && (t = ar(t)), t.persist = Ss, t.isPropagationStopped = Cs, t.isDefaultPrevented = Ts, t.nativeEvent = t;
731
731
  };
732
- var ki, Is = { enumerable: !1, configurable: !0, get: function() {
732
+ var ki, Rs = { enumerable: !1, configurable: !0, get: function() {
733
733
  return this.class;
734
734
  } }, sr = w.vnode;
735
735
  w.vnode = function(t) {
@@ -746,8 +746,8 @@ w.vnode = function(t) {
746
746
  u.props.selected = r.value.indexOf(u.props.value) != -1;
747
747
  })), i == "select" && r.defaultValue != null && (r.value = Ae(n.children).forEach(function(u) {
748
748
  u.props.selected = r.multiple ? r.defaultValue.indexOf(u.props.value) != -1 : r.defaultValue == u.props.value;
749
- })), n.class && !n.className ? (r.class = n.class, Object.defineProperty(r, "className", Is)) : (n.className && !n.class || n.class && n.className) && (r.class = r.className = n.className), e.props = r;
750
- })(t), t.$$typeof = Ro, sr && sr(t);
749
+ })), n.class && !n.className ? (r.class = n.class, Object.defineProperty(r, "className", Rs)) : (n.className && !n.class || n.class && n.className) && (r.class = r.className = n.className), e.props = r;
750
+ })(t), t.$$typeof = To, sr && sr(t);
751
751
  };
752
752
  var lr = w.__r;
753
753
  w.__r = function(t) {
@@ -759,23 +759,23 @@ w.diffed = function(t) {
759
759
  var e = t.props, n = t.__e;
760
760
  n != null && t.type === "textarea" && "value" in e && e.value !== n.value && (n.value = e.value == null ? "" : e.value), ki = null;
761
761
  };
762
- var Ts = { ReactCurrentDispatcher: { current: { readContext: function(t) {
762
+ var Is = { ReactCurrentDispatcher: { current: { readContext: function(t) {
763
763
  return ki.__n[t.__c].props.value;
764
- }, useCallback: N, useContext: Gt, useDebugValue: fo, useDeferredValue: ko, useEffect: q, useId: mo, useImperativeHandle: go, useInsertionEffect: jo, useLayoutEffect: Kt, useMemo: G, useReducer: he, useRef: Ee, useState: I, useSyncExternalStore: vo, useTransition: wo } } };
764
+ }, useCallback: N, useContext: Gt, useDebugValue: fo, useDeferredValue: ko, useEffect: P, useId: mo, useImperativeHandle: go, useInsertionEffect: jo, useLayoutEffect: Kt, useMemo: G, useReducer: he, useRef: Ee, useState: R, useSyncExternalStore: vo, useTransition: wo } } };
765
765
  function As(t) {
766
766
  return xe.bind(null, t);
767
767
  }
768
- function Rn(t) {
769
- return !!t && t.$$typeof === Ro;
768
+ function Tn(t) {
769
+ return !!t && t.$$typeof === To;
770
770
  }
771
771
  function Es(t) {
772
- return Rn(t) && t.type === O;
772
+ return Tn(t) && t.type === O;
773
773
  }
774
- function qs(t) {
774
+ function Ps(t) {
775
775
  return !!t && !!t.displayName && (typeof t.displayName == "string" || t.displayName instanceof String) && t.displayName.startsWith("Memo(");
776
776
  }
777
- function Ps(t) {
778
- return Rn(t) ? rs.apply(null, arguments) : t;
777
+ function qs(t) {
778
+ return Tn(t) ? rs.apply(null, arguments) : t;
779
779
  }
780
780
  function Ns(t) {
781
781
  return !!t.__k && (et(null, t), !0);
@@ -787,9 +787,9 @@ var Ls = function(t, e) {
787
787
  return t(e);
788
788
  }, zs = function(t, e) {
789
789
  return t(e);
790
- }, $s = O, Os = Rn, wi = { useState: I, useId: mo, useReducer: he, useEffect: q, useLayoutEffect: Kt, useInsertionEffect: jo, useTransition: wo, useDeferredValue: ko, useSyncExternalStore: vo, startTransition: yo, useRef: Ee, useImperativeHandle: go, useMemo: G, useCallback: N, useContext: Gt, useDebugValue: fo, version: "18.3.1", Children: hs, render: js, hydrate: _s, unmountComponentAtNode: Ns, createPortal: xs, createElement: xe, createContext: os, createFactory: As, cloneElement: Ps, createRef: Xa, Fragment: O, isValidElement: Rn, isElement: Os, isFragment: Es, isMemo: qs, findDOMNode: Ms, Component: ke, PureComponent: ei, memo: cs, forwardRef: ds, flushSync: zs, unstable_batchedUpdates: Ls, StrictMode: $s, Suspense: cn, SuspenseList: At, lazy: gs, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ts }, Re = [], fe = [], Ds = Uint8Array, $n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
790
+ }, $s = O, Os = Tn, wi = { useState: R, useId: mo, useReducer: he, useEffect: P, useLayoutEffect: Kt, useInsertionEffect: jo, useTransition: wo, useDeferredValue: ko, useSyncExternalStore: vo, startTransition: yo, useRef: Ee, useImperativeHandle: go, useMemo: G, useCallback: N, useContext: Gt, useDebugValue: fo, version: "18.3.1", Children: hs, render: js, hydrate: _s, unmountComponentAtNode: Ns, createPortal: xs, createElement: xe, createContext: os, createFactory: As, cloneElement: qs, createRef: Xa, Fragment: O, isValidElement: Tn, isElement: Os, isFragment: Es, isMemo: Ps, findDOMNode: Ms, Component: ke, PureComponent: ei, memo: cs, forwardRef: ds, flushSync: zs, unstable_batchedUpdates: Ls, StrictMode: $s, Suspense: cn, SuspenseList: At, lazy: gs, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Is }, Te = [], fe = [], Ds = Uint8Array, $n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
791
791
  for (var ct = 0, Bs = $n.length; ct < Bs; ++ct)
792
- Re[ct] = $n[ct], fe[$n.charCodeAt(ct)] = ct;
792
+ Te[ct] = $n[ct], fe[$n.charCodeAt(ct)] = ct;
793
793
  fe[45] = 62;
794
794
  fe[95] = 63;
795
795
  function Us(t) {
@@ -811,7 +811,7 @@ function Ot(t) {
811
811
  return r === 2 && (e = fe[t.charCodeAt(c)] << 2 | fe[t.charCodeAt(c + 1)] >> 4, o[a++] = e & 255), r === 1 && (e = fe[t.charCodeAt(c)] << 10 | fe[t.charCodeAt(c + 1)] << 4 | fe[t.charCodeAt(c + 2)] >> 2, o[a++] = e >> 8 & 255, o[a++] = e & 255), o;
812
812
  }
813
813
  function Vs(t) {
814
- return Re[t >> 18 & 63] + Re[t >> 12 & 63] + Re[t >> 6 & 63] + Re[t & 63];
814
+ return Te[t >> 18 & 63] + Te[t >> 12 & 63] + Te[t >> 6 & 63] + Te[t & 63];
815
815
  }
816
816
  function Qs(t, e, n) {
817
817
  for (var i, r = [], o = e; o < n; o += 3)
@@ -827,14 +827,14 @@ function Dt(t) {
827
827
  a + o > l ? l : a + o
828
828
  )
829
829
  );
830
- return i === 1 ? (e = t[n - 1], r.push(Re[e >> 2] + Re[e << 4 & 63] + "==")) : i === 2 && (e = (t[n - 2] << 8) + t[n - 1], r.push(
831
- Re[e >> 10] + Re[e >> 4 & 63] + Re[e << 2 & 63] + "="
830
+ return i === 1 ? (e = t[n - 1], r.push(Te[e >> 2] + Te[e << 4 & 63] + "==")) : i === 2 && (e = (t[n - 2] << 8) + t[n - 1], r.push(
831
+ Te[e >> 10] + Te[e >> 4 & 63] + Te[e << 2 & 63] + "="
832
832
  )), r.join("");
833
833
  }
834
834
  function $e(t) {
835
835
  if (t === void 0)
836
836
  return {};
837
- if (!Io(t))
837
+ if (!Ro(t))
838
838
  throw new Error(
839
839
  `The arguments to a Convex function must be an object. Received: ${t}`
840
840
  );
@@ -865,13 +865,13 @@ function Hs(t) {
865
865
  `Invalid deployment address: "${t}" ends with .convex.site, which is used for HTTP Actions. Convex deployment URLs typically end with .convex.cloud? If you believe this URL is correct, use the \`skipConvexDeploymentUrlCheck\` option to bypass this.`
866
866
  );
867
867
  }
868
- function Io(t) {
868
+ function Ro(t) {
869
869
  const e = typeof t == "object", n = Object.getPrototypeOf(t), i = n === null || n === Object.prototype || // Objects generated from other contexts (e.g. across Node.js `vm` modules) will not satisfy the previous
870
870
  // conditions but are still simple objects.
871
871
  n?.constructor?.name === "Object";
872
872
  return e && i;
873
873
  }
874
- const To = !0, xt = BigInt("-9223372036854775808"), ji = BigInt("9223372036854775807"), ti = BigInt("0"), Ws = BigInt("8"), Ks = BigInt("256");
874
+ const Io = !0, xt = BigInt("-9223372036854775808"), ji = BigInt("9223372036854775807"), ti = BigInt("0"), Ws = BigInt("8"), Ks = BigInt("256");
875
875
  function Ao(t) {
876
876
  return Number.isNaN(t) || !Number.isFinite(t) || Object.is(t, -0);
877
877
  }
@@ -956,7 +956,7 @@ function bt(t) {
956
956
  throw new Error(
957
957
  `Received ${r.byteLength} bytes, expected 8 for $float`
958
958
  );
959
- const o = new DataView(r.buffer).getFloat64(0, To);
959
+ const o = new DataView(r.buffer).getFloat64(0, Io);
960
960
  if (!Ao(o))
961
961
  throw new Error(`Float ${o} should be encoded as a number`);
962
962
  return o;
@@ -1007,7 +1007,7 @@ function ni(t, e, n, i) {
1007
1007
  if (typeof t == "number")
1008
1008
  if (Ao(t)) {
1009
1009
  const a = new ArrayBuffer(8);
1010
- return new DataView(a).setFloat64(0, t, To), { $float: Dt(new Uint8Array(a)) };
1010
+ return new DataView(a).setFloat64(0, t, Io), { $float: Dt(new Uint8Array(a)) };
1011
1011
  } else
1012
1012
  return t;
1013
1013
  if (typeof t == "boolean" || typeof t == "string")
@@ -1026,7 +1026,7 @@ function ni(t, e, n, i) {
1026
1026
  throw new Error(
1027
1027
  On(n, "Map", [...t], e)
1028
1028
  );
1029
- if (!Io(t)) {
1029
+ if (!Ro(t)) {
1030
1030
  const a = t?.constructor?.name, l = a ? `${a} ` : "";
1031
1031
  throw new Error(
1032
1032
  On(n, l, t, e)
@@ -1047,7 +1047,7 @@ function On(t, e, n, i) {
1047
1047
  n
1048
1048
  )} is not a supported Convex type.`;
1049
1049
  }
1050
- function qe(t) {
1050
+ function Pe(t) {
1051
1051
  return ni(t, t, "");
1052
1052
  }
1053
1053
  var tl = Object.defineProperty, nl = (t, e, n) => e in t ? tl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Dn = (t, e, n) => nl(t, typeof e != "symbol" ? e + "" : e, n), hr, pr;
@@ -1057,13 +1057,13 @@ class pn extends (pr = Error, hr = il, pr) {
1057
1057
  super(typeof e == "string" ? e : Nt(e)), Dn(this, "name", "ConvexError"), Dn(this, "data"), Dn(this, hr, !0), this.data = e;
1058
1058
  }
1059
1059
  }
1060
- const qo = () => Array.from({ length: 4 }, () => 0);
1061
- qo();
1062
- qo();
1060
+ const Po = () => Array.from({ length: 4 }, () => 0);
1061
+ Po();
1062
+ Po();
1063
1063
  const gr = "1.42.0";
1064
1064
  var rl = Object.defineProperty, ol = (t, e, n) => e in t ? rl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, fr = (t, e, n) => ol(t, typeof e != "symbol" ? e + "" : e, n);
1065
1065
  const al = "color:rgb(0, 145, 255)";
1066
- function Po(t) {
1066
+ function qo(t) {
1067
1067
  switch (t) {
1068
1068
  case "query":
1069
1069
  return "Q";
@@ -1130,7 +1130,7 @@ function Lo(t) {
1130
1130
  return new No(t);
1131
1131
  }
1132
1132
  function gn(t, e, n, i, r) {
1133
- const o = Po(n);
1133
+ const o = qo(n);
1134
1134
  if (typeof r == "object" && (r = `ConvexError ${JSON.stringify(r.errorData, null, 2)}`), e === "info") {
1135
1135
  const a = r.match(/^\[.*?\] /);
1136
1136
  if (a === null) {
@@ -1149,7 +1149,7 @@ function sl(t, e) {
1149
1149
  return t.error(n), new Error(n);
1150
1150
  }
1151
1151
  function pt(t, e, n) {
1152
- return `[CONVEX ${Po(t)}(${e})] ${n.errorMessage}
1152
+ return `[CONVEX ${qo(t)}(${e})] ${n.errorMessage}
1153
1153
  Called by client`;
1154
1154
  }
1155
1155
  function ii(t, e) {
@@ -1163,7 +1163,7 @@ function tt(t) {
1163
1163
  function Ye(t, e) {
1164
1164
  return JSON.stringify({
1165
1165
  udfPath: tt(t),
1166
- args: qe(e)
1166
+ args: Pe(e)
1167
1167
  });
1168
1168
  }
1169
1169
  function mr(t, e, n) {
@@ -1171,8 +1171,8 @@ function mr(t, e, n) {
1171
1171
  return JSON.stringify({
1172
1172
  type: "paginated",
1173
1173
  udfPath: tt(t),
1174
- args: qe(e),
1175
- options: qe({ initialNumItems: i, id: r })
1174
+ args: Pe(e),
1175
+ options: Pe({ initialNumItems: i, id: r })
1176
1176
  });
1177
1177
  }
1178
1178
  var ll = Object.defineProperty, cl = (t, e, n) => e in t ? ll(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Se = (t, e, n) => cl(t, typeof e != "symbol" ? e + "" : e, n);
@@ -1208,7 +1208,7 @@ class ul {
1208
1208
  type: "Add",
1209
1209
  queryId: c,
1210
1210
  udfPath: o,
1211
- args: [qe(n)],
1211
+ args: [Pe(n)],
1212
1212
  journal: i,
1213
1213
  componentPath: r
1214
1214
  };
@@ -1318,7 +1318,7 @@ class ul {
1318
1318
  type: "Add",
1319
1319
  queryId: r.id,
1320
1320
  udfPath: r.canonicalizedUdfPath,
1321
- args: [qe(r.args)],
1321
+ args: [Pe(r.args)],
1322
1322
  journal: r.journal,
1323
1323
  componentPath: r.componentPath
1324
1324
  };
@@ -1744,7 +1744,7 @@ class le {
1744
1744
  }
1745
1745
  }
1746
1746
  const jl = new le(0, 0), xr = 65536, Mt = xr * xr, _l = Mt * Mt, Sl = new le(-1, -1);
1747
- var Cl = Object.defineProperty, Rl = (t, e, n) => e in t ? Cl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, on = (t, e, n) => Rl(t, typeof e != "symbol" ? e + "" : e, n);
1747
+ var Cl = Object.defineProperty, Tl = (t, e, n) => e in t ? Cl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, on = (t, e, n) => Tl(t, typeof e != "symbol" ? e + "" : e, n);
1748
1748
  class br {
1749
1749
  constructor(e, n) {
1750
1750
  on(this, "version"), on(this, "remoteQuerySet"), on(this, "queryPath"), on(this, "logger"), this.version = { querySet: 0, ts: le.fromNumber(0), identity: 0 }, this.remoteQuerySet = /* @__PURE__ */ new Map(), this.queryPath = e, this.logger = n;
@@ -1804,7 +1804,7 @@ function Un(t) {
1804
1804
  const e = Ot(t);
1805
1805
  return le.fromBytesLE(Array.from(e));
1806
1806
  }
1807
- function Il(t) {
1807
+ function Rl(t) {
1808
1808
  const e = new Uint8Array(t.toBytesLE());
1809
1809
  return Dt(e);
1810
1810
  }
@@ -1832,7 +1832,7 @@ function vr(t) {
1832
1832
  };
1833
1833
  }
1834
1834
  }
1835
- function Tl(t) {
1835
+ function Il(t) {
1836
1836
  switch (t.type) {
1837
1837
  case "Authenticate":
1838
1838
  case "ModifyQuerySet":
@@ -1843,12 +1843,12 @@ function Tl(t) {
1843
1843
  case "Connect":
1844
1844
  return t.maxObservedTimestamp !== void 0 ? {
1845
1845
  ...t,
1846
- maxObservedTimestamp: Il(t.maxObservedTimestamp)
1846
+ maxObservedTimestamp: Rl(t.maxObservedTimestamp)
1847
1847
  } : { ...t, maxObservedTimestamp: void 0 };
1848
1848
  }
1849
1849
  }
1850
1850
  var Al = Object.defineProperty, El = (t, e, n) => e in t ? Al(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, W = (t, e, n) => El(t, typeof e != "symbol" ? e + "" : e, n);
1851
- const ql = 1e3, Pl = 1001, Nl = 1005, Ml = 4040;
1851
+ const Pl = 1e3, ql = 1001, Nl = 1005, Ml = 4040;
1852
1852
  let un;
1853
1853
  function dt() {
1854
1854
  return un === void 0 && (un = Date.now()), typeof performance > "u" || !performance.now ? Date.now() : Math.round(un + performance.now());
@@ -1990,7 +1990,7 @@ class zl {
1990
1990
  }), this.onMessage(r).hasSyncedPastLastReconnect && (this.retries = 0, this.markConnectionStateDirty());
1991
1991
  }
1992
1992
  }, e.onclose = (n) => {
1993
- if (this._logVerbose("begin ws.onclose"), this.transitionChunkBuffer = null, this.lastCloseReason === null && (this.lastCloseReason = n.reason || `closed with code ${n.code}`), n.code !== ql && n.code !== Pl && // This commonly gets fired on mobile apps when the app is backgrounded
1993
+ if (this._logVerbose("begin ws.onclose"), this.transitionChunkBuffer = null, this.lastCloseReason === null && (this.lastCloseReason = n.reason || `closed with code ${n.code}`), n.code !== Pl && n.code !== ql && // This commonly gets fired on mobile apps when the app is backgrounded
1994
1994
  n.code !== Nl && n.code !== Ml) {
1995
1995
  let r = `WebSocket closed with code ${n.code}`;
1996
1996
  n.reason && (r += `: ${n.reason}`), this.logger.log(r), this.onServerDisconnectError && n.reason && this.onServerDisconnectError(r);
@@ -2017,7 +2017,7 @@ class zl {
2017
2017
  } : {}
2018
2018
  };
2019
2019
  if (this.socket.state === "ready" && this.socket.paused === "no") {
2020
- const i = Tl(e), r = JSON.stringify(i);
2020
+ const i = Il(e), r = JSON.stringify(i);
2021
2021
  let o = !1;
2022
2022
  try {
2023
2023
  this.socket.ws.send(r), o = !0;
@@ -3051,7 +3051,7 @@ class Yl {
3051
3051
  requestId: a,
3052
3052
  udfPath: e,
3053
3053
  componentPath: r,
3054
- args: [qe(o)]
3054
+ args: [Pe(o)]
3055
3055
  }, c = this.webSocketManager.sendMessage(l), u = this.requestManager.request(l, c);
3056
3056
  return {
3057
3057
  requestId: a,
@@ -3086,7 +3086,7 @@ class Yl {
3086
3086
  requestId: o,
3087
3087
  udfPath: e,
3088
3088
  componentPath: i,
3089
- args: [qe(r)]
3089
+ args: [Pe(r)]
3090
3090
  }, l = this.webSocketManager.sendMessage(a);
3091
3091
  return this.requestManager.request(a, l);
3092
3092
  }
@@ -3448,7 +3448,7 @@ function nc({
3448
3448
  // It should return an unsubscribe function that removes the handler.
3449
3449
  subscribe: e
3450
3450
  }) {
3451
- const [n, i] = I(() => ({
3451
+ const [n, i] = R(() => ({
3452
3452
  getCurrentValue: t,
3453
3453
  subscribe: e,
3454
3454
  value: t()
@@ -3458,7 +3458,7 @@ function nc({
3458
3458
  getCurrentValue: t,
3459
3459
  subscribe: e,
3460
3460
  value: r
3461
- })), q(() => {
3461
+ })), P(() => {
3462
3462
  let o = !1;
3463
3463
  const a = () => {
3464
3464
  o || i((c) => {
@@ -3804,15 +3804,15 @@ class sc {
3804
3804
  }
3805
3805
  }
3806
3806
  }
3807
- const In = wi.createContext(
3807
+ const Rn = wi.createContext(
3808
3808
  void 0
3809
3809
  // in the future this will be a mocked client for testing
3810
3810
  );
3811
3811
  function lc() {
3812
- return Gt(In);
3812
+ return Gt(Rn);
3813
3813
  }
3814
3814
  const cc = ({ client: t, children: e }) => wi.createElement(
3815
- In.Provider,
3815
+ Rn.Provider,
3816
3816
  { value: t },
3817
3817
  e
3818
3818
  );
@@ -3822,14 +3822,14 @@ function ri(t, ...e) {
3822
3822
  // Stringify args so args that are semantically the same don't trigger a
3823
3823
  // rerender. Saves developers from adding `useMemo` on every args usage.
3824
3824
  // eslint-disable-next-line react-hooks/exhaustive-deps
3825
- [JSON.stringify(qe(i)), o, n]
3825
+ [JSON.stringify(Pe(i)), o, n]
3826
3826
  ), l = gc(a).query;
3827
3827
  if (l instanceof Error)
3828
3828
  throw l;
3829
3829
  return l;
3830
3830
  }
3831
3831
  function Jt(t) {
3832
- const e = typeof t == "string" ? _i(t) : t, n = Gt(In);
3832
+ const e = typeof t == "string" ? _i(t) : t, n = Gt(Rn);
3833
3833
  if (n === void 0)
3834
3834
  throw new Error(
3835
3835
  "Could not find Convex client! `useMutation` must be used in the React component tree under `ConvexProvider`. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app"
@@ -3841,7 +3841,7 @@ function Jt(t) {
3841
3841
  );
3842
3842
  }
3843
3843
  function Zt(t) {
3844
- const e = Gt(In), n = typeof t == "string" ? _i(t) : t;
3844
+ const e = Gt(Rn), n = typeof t == "string" ? _i(t) : t;
3845
3845
  if (e === void 0)
3846
3846
  throw new Error(
3847
3847
  "Could not find Convex client! `useAction` must be used in the React component tree under `ConvexProvider`. Did you forget it? See https://docs.convex.dev/quick-start#set-up-convex-in-your-react-app"
@@ -3875,7 +3875,7 @@ class pc {
3875
3875
  );
3876
3876
  else {
3877
3877
  const a = this.queries[n];
3878
- (oe(i) !== oe(a.query) || JSON.stringify(qe(r)) !== JSON.stringify(qe(a.args)) || JSON.stringify(o) !== JSON.stringify(a.paginationOptions)) && (this.removeQuery(n), this.addQuery(
3878
+ (oe(i) !== oe(a.query) || JSON.stringify(Pe(r)) !== JSON.stringify(Pe(a.args)) || JSON.stringify(o) !== JSON.stringify(a.paginationOptions)) && (this.removeQuery(n), this.addQuery(
3879
3879
  n,
3880
3880
  i,
3881
3881
  r,
@@ -3973,8 +3973,8 @@ function gc(t) {
3973
3973
  return fc(t, n);
3974
3974
  }
3975
3975
  function fc(t, e) {
3976
- const [n] = I(() => new pc(e));
3977
- n.createWatch !== e && n.setCreateWatch(e), q(() => () => n.destroy(), [n]);
3976
+ const [n] = R(() => new pc(e));
3977
+ n.createWatch !== e && n.setCreateWatch(e), P(() => () => n.destroy(), [n]);
3978
3978
  const i = G(
3979
3979
  () => ({
3980
3980
  getCurrentValue: () => n.getLocalResults(t),
@@ -3985,7 +3985,7 @@ function fc(t, e) {
3985
3985
  return nc(i);
3986
3986
  }
3987
3987
  var mc = /* @__PURE__ */ Symbol.for("preact-signals");
3988
- function Tn() {
3988
+ function In() {
3989
3989
  if (Be > 1)
3990
3990
  Be--;
3991
3991
  else {
@@ -4010,7 +4010,7 @@ function xc(t) {
4010
4010
  try {
4011
4011
  return t();
4012
4012
  } finally {
4013
- Tn();
4013
+ In();
4014
4014
  }
4015
4015
  }
4016
4016
  var E = void 0;
@@ -4097,7 +4097,7 @@ Object.defineProperty(ee.prototype, "value", { get: function() {
4097
4097
  try {
4098
4098
  for (var e = this.t; e !== void 0; e = e.x) e.t.N();
4099
4099
  } finally {
4100
- Tn();
4100
+ In();
4101
4101
  }
4102
4102
  }
4103
4103
  } });
@@ -4182,7 +4182,7 @@ function Wo(t) {
4182
4182
  } catch (i) {
4183
4183
  throw t.f &= -2, t.f |= 8, Si(t), i;
4184
4184
  } finally {
4185
- E = n, Tn();
4185
+ E = n, In();
4186
4186
  }
4187
4187
  }
4188
4188
  }
@@ -4192,7 +4192,7 @@ function Si(t) {
4192
4192
  }
4193
4193
  function bc(t) {
4194
4194
  if (E !== this) throw new Error("Out-of-order effect");
4195
- Ho(this), E = t, this.f &= -2, 8 & this.f && Si(this), Tn();
4195
+ Ho(this), E = t, this.f &= -2, 8 & this.f && Si(this), In();
4196
4196
  }
4197
4197
  function kt(t, e) {
4198
4198
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32, this.name = e?.name;
@@ -4448,15 +4448,15 @@ function Sc(t, e) {
4448
4448
  function Cc(t) {
4449
4449
  return t === "explicit" || t === "sheet" ? "explicit" : "chip";
4450
4450
  }
4451
- async function Rc(t, e, n, i) {
4451
+ async function Tc(t, e, n, i) {
4452
4452
  const r = new URL(`${t}/widget/config`);
4453
4453
  r.searchParams.set("orgSlug", e), i && r.searchParams.set("projSlug", i);
4454
4454
  const o = await fetch(r.toString(), { signal: n });
4455
4455
  return o.ok ? o.json() : null;
4456
4456
  }
4457
- function Ic(t, e, n) {
4458
- const [i, r] = I(null);
4459
- return q(() => {
4457
+ function Rc(t, e, n) {
4458
+ const [i, r] = R(null);
4459
+ return P(() => {
4460
4460
  r(null);
4461
4461
  const o = n ?? "https://festive-mouse-978.eu-west-1.convex.cloud", a = o ? Xo(o) : void 0;
4462
4462
  if (!a || !t)
@@ -4464,7 +4464,7 @@ function Ic(t, e, n) {
4464
4464
  const l = new AbortController();
4465
4465
  async function c(u) {
4466
4466
  try {
4467
- const d = await Rc(u, t, l.signal, e);
4467
+ const d = await Tc(u, t, l.signal, e);
4468
4468
  d && r(d);
4469
4469
  } catch (d) {
4470
4470
  if (d instanceof Error && d.name === "AbortError")
@@ -4493,7 +4493,7 @@ async function ea(t, e, n) {
4493
4493
  return { ok: !1, error: "network" };
4494
4494
  }
4495
4495
  }
4496
- function Tc(t, e) {
4496
+ function Ic(t, e) {
4497
4497
  return e.some((n) => n === "/" ? t === "/" : t === n || t.startsWith(n + "/"));
4498
4498
  }
4499
4499
  function jr(t, e) {
@@ -4518,7 +4518,7 @@ function Ac({
4518
4518
  preAllowedUrls: r,
4519
4519
  preExcludedPaths: o
4520
4520
  }) {
4521
- q(() => {
4521
+ P(() => {
4522
4522
  const a = i ?? "https://festive-mouse-978.eu-west-1.convex.cloud", l = a ? Xo(a) : void 0;
4523
4523
  if (!l || !t)
4524
4524
  return;
@@ -4558,18 +4558,18 @@ function Ec() {
4558
4558
  e(...n), vn.forEach((i) => i());
4559
4559
  };
4560
4560
  }
4561
- function qc(t) {
4561
+ function Pc(t) {
4562
4562
  return vn.add(t), window.addEventListener("popstate", t), Ec(), () => {
4563
4563
  vn.delete(t), window.removeEventListener("popstate", t);
4564
4564
  };
4565
4565
  }
4566
- function Pc() {
4566
+ function qc() {
4567
4567
  const t = gt(window.location.href);
4568
- q(() => qc(() => {
4568
+ P(() => Pc(() => {
4569
4569
  t.value = window.location.href;
4570
4570
  }), []);
4571
- const e = si.value, n = li.value, i = new URL(t.value).pathname, r = Tc(i, n);
4572
- return q(() => {
4571
+ const e = si.value, n = li.value, i = new URL(t.value).pathname, r = Ic(i, n);
4572
+ return P(() => {
4573
4573
  r ? console.warn(
4574
4574
  `[JexityChat] Widget hidden — current path is in the exclude list: ${i}`
4575
4575
  ) : e.length > 0 && !e.some((o) => jr(t.value, o)) && console.warn(
@@ -4577,7 +4577,7 @@ function Pc() {
4577
4577
  );
4578
4578
  }, [t.value, e, n]), r ? !1 : e.length === 0 ? !0 : e.some((o) => jr(t.value, o));
4579
4579
  }
4580
- const Ri = {
4580
+ const Ti = {
4581
4581
  title: "Assistant",
4582
4582
  statusOnline: "Online · Responds in seconds",
4583
4583
  inputPlaceholder: "Type a message…",
@@ -4691,6 +4691,8 @@ Use it to resume this conversation from any device.`,
4691
4691
  magiclineSubmitting: "Submitting…",
4692
4692
  magiclineSubmitted: "Request submitted",
4693
4693
  magiclineSubmittedDetail: "We’ve received your request and will be in touch shortly.",
4694
+ magiclineTrialSuccessTitle: "Book a trial session",
4695
+ magiclineTrialSuccessDetail: "Done! Your trial session is booked. You'll receive a confirmation email shortly – please check your inbox.",
4694
4696
  magiclineFailed: "Submission failed",
4695
4697
  magiclineFailedDetail: "Something went wrong submitting your request. Please try again.",
4696
4698
  magiclineConsent: "I agree to the processing of my data in accordance with the",
@@ -4793,6 +4795,8 @@ Use it to resume this conversation from any device.`,
4793
4795
  magiclineConfirmRequiredError: "Please confirm all required terms before submitting.",
4794
4796
  magiclineSummaryAddress: "Address",
4795
4797
  magiclineContractSubmitted: "Your membership is confirmed and the studio will be in touch shortly.",
4798
+ magiclineContractSuccessTitle: "Sign up for membership",
4799
+ magiclineContractSuccessDetail: "Welcome aboard! Your membership is all set. Your confirmation email is on its way.",
4796
4800
  magiclineCustomerNumber: "Your customer number: {number}",
4797
4801
  magiclinePriceChangedNotice: "The price has changed. Please review the new price and confirm again.",
4798
4802
  magiclineOfferUnavailableNotice: "That membership is no longer available. Please choose another one.",
@@ -4926,6 +4930,8 @@ Verwenden Sie sie, um diese Unterhaltung auf jedem Gerät fortzusetzen.`,
4926
4930
  magiclineSubmitting: "Wird gesendet…",
4927
4931
  magiclineSubmitted: "Anfrage gesendet",
4928
4932
  magiclineSubmittedDetail: "Wir haben Ihre Anfrage erhalten und melden uns in Kürze bei Ihnen.",
4933
+ magiclineTrialSuccessTitle: "Probetraining buchen",
4934
+ magiclineTrialSuccessDetail: "Geschafft! Dein Probetraining ist gebucht. Du bekommst gleich eine Bestätigung per E-Mail – schau bitte in dein Postfach.",
4929
4935
  magiclineFailed: "Senden fehlgeschlagen",
4930
4936
  magiclineFailedDetail: "Beim Senden Ihrer Anfrage ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",
4931
4937
  magiclineConsent: "Ich stimme der Verarbeitung meiner Daten gemäß der",
@@ -5028,6 +5034,8 @@ Verwenden Sie sie, um diese Unterhaltung auf jedem Gerät fortzusetzen.`,
5028
5034
  magiclineConfirmRequiredError: "Bitte bestätigen Sie alle erforderlichen Bedingungen vor dem Absenden.",
5029
5035
  magiclineSummaryAddress: "Adresse",
5030
5036
  magiclineContractSubmitted: "Ihre Mitgliedschaft ist bestätigt. Das Studio meldet sich in Kürze bei Ihnen.",
5037
+ magiclineContractSuccessTitle: "Mitgliedschaft abschließen",
5038
+ magiclineContractSuccessDetail: "Willkommen an Bord! Deine Mitgliedschaft ist abgeschlossen. Die Bestätigung kommt gleich per E-Mail.",
5031
5039
  magiclineCustomerNumber: "Ihre Kundennummer: {number}",
5032
5040
  magiclinePriceChangedNotice: "Der Preis hat sich geändert. Bitte prüfen Sie den neuen Preis und bestätigen Sie erneut.",
5033
5041
  magiclineOfferUnavailableNotice: "Diese Mitgliedschaft ist nicht mehr verfügbar. Bitte wählen Sie eine andere aus.",
@@ -5050,9 +5058,9 @@ Verwenden Sie sie, um diese Unterhaltung auf jedem Gerät fortzusetzen.`,
5050
5058
  }, Nc = [
5051
5059
  { value: "de", label: "Deutsch", flag: "🇩🇪" },
5052
5060
  { value: "en", label: "English", flag: "🇬🇧" }
5053
- ], Mc = "de", Lc = "jex-locale", Ne = L("de"), zc = { en: Ri, de: ta };
5061
+ ], Mc = "de", Lc = "jex-locale", Ne = L("de"), zc = { en: Ti, de: ta };
5054
5062
  function j() {
5055
- return zc[Ne.value] ?? Ri;
5063
+ return zc[Ne.value] ?? Ti;
5056
5064
  }
5057
5065
  function Qn(t) {
5058
5066
  if (!t)
@@ -5078,7 +5086,7 @@ function na(t) {
5078
5086
  return Mc;
5079
5087
  }
5080
5088
  function $c(t) {
5081
- q(() => {
5089
+ P(() => {
5082
5090
  function e(n) {
5083
5091
  const i = t ?? window.location.origin;
5084
5092
  if (n.origin !== i || n.data?.type !== "jexity:config")
@@ -5091,7 +5099,7 @@ function $c(t) {
5091
5099
  };
5092
5100
  }, [t]);
5093
5101
  }
5094
- const ia = "jex-session-history", ra = ia, oa = 3600 * 1e3, ce = L([]), Pe = L(null), Ii = ai(() => ce.value.length > 0), zt = L(null);
5102
+ const ia = "jex-session-history", ra = ia, oa = 3600 * 1e3, ce = L([]), qe = L(null), Ri = ai(() => ce.value.length > 0), zt = L(null);
5095
5103
  function Oc() {
5096
5104
  return "JEX-" + Math.random().toString(36).slice(2, 8).toUpperCase();
5097
5105
  }
@@ -5115,22 +5123,22 @@ function An(t) {
5115
5123
  }
5116
5124
  function Bc() {
5117
5125
  const t = Date.now(), e = Dc(t);
5118
- ce.value = e, An(e), Pe.value = e[e.length - 1]?.ref ?? null;
5126
+ ce.value = e, An(e), qe.value = e[e.length - 1]?.ref ?? null;
5119
5127
  }
5120
5128
  function Sr() {
5121
5129
  const t = Oc(), e = Date.now(), n = [...ce.value, { ref: t, startedAt: e, lastActivityAt: e }];
5122
- return ce.value = n, Pe.value = t, An(n), t;
5130
+ return ce.value = n, qe.value = t, An(n), t;
5123
5131
  }
5124
5132
  function Uc() {
5125
- Pe.value = null;
5133
+ qe.value = null;
5126
5134
  }
5127
5135
  function Cr(t) {
5128
5136
  const e = Date.now(), n = ce.value.map(
5129
5137
  (i) => i.ref === t ? { ...i, lastActivityAt: e } : i
5130
5138
  );
5131
- ce.value = n, Pe.value = t, An(n);
5139
+ ce.value = n, qe.value = t, An(n);
5132
5140
  }
5133
- function Ti(t) {
5141
+ function Ii(t) {
5134
5142
  if (!t)
5135
5143
  return;
5136
5144
  const e = Date.now(), n = ce.value.map(
@@ -5140,7 +5148,7 @@ function Ti(t) {
5140
5148
  }
5141
5149
  const ue = L(aa());
5142
5150
  function aa() {
5143
- return Ii.value ? [{ id: "home" }] : [{ id: "chat" }];
5151
+ return Ri.value ? [{ id: "home" }] : [{ id: "chat" }];
5144
5152
  }
5145
5153
  function Fc() {
5146
5154
  ue.value = aa();
@@ -5162,16 +5170,16 @@ function Hc(t) {
5162
5170
  };
5163
5171
  }
5164
5172
  function Wc() {
5165
- const t = Pe.value;
5173
+ const t = qe.value;
5166
5174
  return t ? ce.value.find((e) => e.ref === t)?.lastActivityAt ?? null : null;
5167
5175
  }
5168
5176
  function Kc(t) {
5169
5177
  const e = Wc();
5170
5178
  return e === null ? !1 : Date.now() - e > t;
5171
5179
  }
5172
- function Rr() {
5180
+ function Tr() {
5173
5181
  if (!(Ft.value && ce.value.length === 0)) {
5174
- ce.value = [], Pe.value = null;
5182
+ ce.value = [], qe.value = null;
5175
5183
  try {
5176
5184
  sessionStorage.removeItem(ia);
5177
5185
  } catch (t) {
@@ -5196,11 +5204,11 @@ function Gc(t = oa) {
5196
5204
  e = Date.now();
5197
5205
  return;
5198
5206
  }
5199
- e !== null && Date.now() - e > t && Rr(), e = null;
5207
+ e !== null && Date.now() - e > t && Tr(), e = null;
5200
5208
  };
5201
5209
  document.addEventListener("visibilitychange", n);
5202
5210
  const i = setInterval(() => {
5203
- ui.value || Kc(t) && Rr();
5211
+ ui.value || Kc(t) && Tr();
5204
5212
  }, Qc);
5205
5213
  return () => {
5206
5214
  document.removeEventListener("visibilitychange", n), clearInterval(i), e = null;
@@ -5275,7 +5283,7 @@ function eu({ action: t, showClose: e = !0 }) {
5275
5283
  e && /* @__PURE__ */ s(Xc, {})
5276
5284
  ] });
5277
5285
  }
5278
- function Ir({ title: t, rightAction: e, showClose: n = !0 }) {
5286
+ function Rr({ title: t, rightAction: e, showClose: n = !0 }) {
5279
5287
  return /* @__PURE__ */ s("header", { class: "jex-chat-header", children: [
5280
5288
  /* @__PURE__ */ s(Zc, {}),
5281
5289
  /* @__PURE__ */ s(Yc, { title: t }),
@@ -5285,7 +5293,7 @@ function Ir({ title: t, rightAction: e, showClose: n = !0 }) {
5285
5293
  function tu({ size: t = 14 }) {
5286
5294
  return /* @__PURE__ */ s("svg", { width: t, height: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" }) });
5287
5295
  }
5288
- function Tr() {
5296
+ function Ir() {
5289
5297
  return /* @__PURE__ */ s("div", { class: "jex-widget-footer", children: /* @__PURE__ */ s(
5290
5298
  "a",
5291
5299
  {
@@ -5415,7 +5423,7 @@ function cu({ title: t, message: e, guardKey: n }) {
5415
5423
  );
5416
5424
  }
5417
5425
  function uu({ title: t, botName: e, onResetSession: n }) {
5418
- const i = j(), [r, o] = I("");
5426
+ const i = j(), [r, o] = R("");
5419
5427
  function a() {
5420
5428
  Hn(), zt.value = "fresh", n(), Uc(), Xe({ id: "chat" });
5421
5429
  }
@@ -5543,7 +5551,7 @@ function ua() {
5543
5551
  function pu() {
5544
5552
  Ai.value = !0, Qt.value = !1;
5545
5553
  }
5546
- function qr() {
5554
+ function Pr() {
5547
5555
  Ai.value = !1, Qt.value = !1, wn.value = null;
5548
5556
  }
5549
5557
  const Oe = L([]), gu = 4, fu = 8 * 1024 * 1024;
@@ -5616,7 +5624,7 @@ function ha({ sessionId: t, visitorId: e, ensureSession: n }) {
5616
5624
  visitorId: o.visitorId,
5617
5625
  content: r
5618
5626
  });
5619
- a.ok ? Ti(o.visitorId) : a.reason === "rate_limited" && (Vt.value = Date.now() + a.retryAfterMs);
5627
+ a.ok ? Ii(o.visitorId) : a.reason === "rate_limited" && (Vt.value = Date.now() + a.retryAfterMs);
5620
5628
  } catch (a) {
5621
5629
  console.error("[jexity] Failed to send message:", a);
5622
5630
  }
@@ -5628,7 +5636,7 @@ function ha({ sessionId: t, visitorId: e, ensureSession: n }) {
5628
5636
  }
5629
5637
  function ku() {
5630
5638
  const t = Vt.value, e = Er.value;
5631
- q(() => {
5639
+ P(() => {
5632
5640
  if (t === null)
5633
5641
  return;
5634
5642
  const r = setInterval(() => {
@@ -5661,16 +5669,16 @@ function _u({ size: t = 18 }) {
5661
5669
  /* @__PURE__ */ s("path", { d: "M22 2 15 22 11 13 2 9l20-7z" })
5662
5670
  ] });
5663
5671
  }
5664
- const Pr = 132;
5672
+ const qr = 132;
5665
5673
  function Su({ onSend: t }) {
5666
5674
  const e = Ee(null), n = Ee(null);
5667
- q(() => {
5675
+ P(() => {
5668
5676
  const l = e.current;
5669
5677
  if (!l)
5670
5678
  return;
5671
5679
  l.style.height = "0";
5672
- const c = Math.min(l.scrollHeight, Pr);
5673
- l.style.height = `${c}px`, l.style.overflowY = l.scrollHeight > Pr ? "auto" : "hidden";
5680
+ const c = Math.min(l.scrollHeight, qr);
5681
+ l.style.height = `${c}px`, l.style.overflowY = l.scrollHeight > qr ? "auto" : "hidden";
5674
5682
  }, [vt.value]);
5675
5683
  function i(l) {
5676
5684
  l.key === "Enter" && !l.shiftKey && (l.preventDefault(), t());
@@ -5830,7 +5838,7 @@ function Nr({ variant: t, isOpen: e = !1, onAcknowledge: n }) {
5830
5838
  )
5831
5839
  ] });
5832
5840
  }
5833
- function Ru({
5841
+ function Tu({
5834
5842
  sessionId: t,
5835
5843
  visitorId: e,
5836
5844
  isLoading: n,
@@ -5890,11 +5898,11 @@ function Ru({
5890
5898
  ] })
5891
5899
  ] });
5892
5900
  }
5893
- const Iu = (...t) => t.filter((e, n, i) => !!e && e.trim() !== "" && i.indexOf(e) === n).join(" ").trim(), Mr = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Tu = (t) => t.replace(
5901
+ const Ru = (...t) => t.filter((e, n, i) => !!e && e.trim() !== "" && i.indexOf(e) === n).join(" ").trim(), Mr = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Iu = (t) => t.replace(
5894
5902
  /^([A-Z])|[\s-_]+(\w)/g,
5895
5903
  (e, n, i) => i ? i.toUpperCase() : n.toLowerCase()
5896
5904
  ), Lr = (t) => {
5897
- const e = Tu(t);
5905
+ const e = Iu(t);
5898
5906
  return e.charAt(0).toUpperCase() + e.slice(1);
5899
5907
  };
5900
5908
  var Au = {
@@ -5913,7 +5921,7 @@ const Eu = (t) => {
5913
5921
  if (e.startsWith("aria-") || e === "role" || e === "title")
5914
5922
  return !0;
5915
5923
  return !1;
5916
- }, qu = ({
5924
+ }, Pu = ({
5917
5925
  color: t = "currentColor",
5918
5926
  size: e = 24,
5919
5927
  strokeWidth: n = 2,
@@ -5935,13 +5943,13 @@ const Eu = (t) => {
5935
5943
  ...l
5936
5944
  },
5937
5945
  [...o.map(([c, u]) => xe(c, u)), ...Ae(r)]
5938
- ), Pu = (t, e) => {
5946
+ ), qu = (t, e) => {
5939
5947
  const n = ({ class: i = "", className: r = "", children: o, ...a }) => xe(
5940
- qu,
5948
+ Pu,
5941
5949
  {
5942
5950
  ...a,
5943
5951
  iconNode: e,
5944
- class: Iu(
5952
+ class: Ru(
5945
5953
  `lucide-${Mr(Lr(t))}`,
5946
5954
  `lucide-${Mr(t)}`,
5947
5955
  i,
@@ -5951,7 +5959,7 @@ const Eu = (t) => {
5951
5959
  o
5952
5960
  );
5953
5961
  return n.displayName = Lr(t), n;
5954
- }, Nu = Pu("corner-up-left", [
5962
+ }, Nu = qu("corner-up-left", [
5955
5963
  ["path", { d: "M20 20v-7a4 4 0 0 0-4-4H4", key: "1nkjon" }],
5956
5964
  ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }]
5957
5965
  ]);
@@ -5976,8 +5984,8 @@ var Mu = (() => {
5976
5984
  } catch {
5977
5985
  return !1;
5978
5986
  }
5979
- })(), 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)}}>`) }, Lu = /^(?:[ \t]*(?:\n|$))+/, zu = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, $u = /^ {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+|$)/, Ou = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, qi = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ga = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, fa = S(ga).replace(/bull/g, qi).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(), Du = S(ga).replace(/bull/g, qi).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(), Pi = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Bu = /^[^\n]+/, Ni = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Uu = S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ni).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Fu = S(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, qi).getRegex(), qn = "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", Mi = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Vu = S("^ {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", Mi).replace("tag", qn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ma = S(Pi).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", qn).getRegex(), Qu = S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ma).getRegex(), Li = { blockquote: Qu, code: zu, def: Uu, fences: $u, heading: Ou, hr: tn, html: Vu, lheading: fa, list: Fu, newline: Lu, paragraph: ma, table: Ze, text: Bu }, zr = S("^ *([^\\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", qn).getRegex(), Hu = { ...Li, lheading: Du, table: zr, paragraph: S(Pi).replace("hr", tn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", zr).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", qn).getRegex() }, Wu = { ...Li, html: S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Mi).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: Ze, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: S(Pi).replace("hr", tn).replace("heading", ` *#{1,6} *[^
5980
- ]`).replace("lheading", fa).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ku = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Gu = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xa = /^( {2,}|\\)\n(?!\s*$)/, Ju = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, jt = /[\p{P}\p{S}]/u, Pn = /[\s\p{P}\p{S}]/u, zi = /[^\s\p{P}\p{S}]/u, Zu = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Pn).getRegex(), ba = /(?!~)[\p{P}\p{S}]/u, Yu = /(?!~)[\s\p{P}\p{S}]/u, Xu = /(?:[^\s\p{P}\p{S}]|~)/u, ed = S(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Mu ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), va = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, td = S(va, "u").replace(/punct/g, jt).getRegex(), nd = S(va, "u").replace(/punct/g, ba).getRegex(), ya = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", id = S(ya, "gu").replace(/notPunctSpace/g, zi).replace(/punctSpace/g, Pn).replace(/punct/g, jt).getRegex(), rd = S(ya, "gu").replace(/notPunctSpace/g, Xu).replace(/punctSpace/g, Yu).replace(/punct/g, ba).getRegex(), od = S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, zi).replace(/punctSpace/g, Pn).replace(/punct/g, jt).getRegex(), ad = S(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, jt).getRegex(), sd = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ld = S(sd, "gu").replace(/notPunctSpace/g, zi).replace(/punctSpace/g, Pn).replace(/punct/g, jt).getRegex(), cd = S(/\\(punct)/, "gu").replace(/punct/g, jt).getRegex(), ud = S(/^<(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(), dd = S(Mi).replace("(?:-->|$)", "-->").getRegex(), hd = S("^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", dd).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), jn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, pd = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", jn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ka = S(/^!?\[(label)\]\[(ref)\]/).replace("label", jn).replace("ref", Ni).getRegex(), wa = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ni).getRegex(), gd = S("reflink|nolink(?!\\()", "g").replace("reflink", ka).replace("nolink", wa).getRegex(), $r = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, $i = { _backpedal: Ze, anyPunctuation: cd, autolink: ud, blockSkip: ed, br: xa, code: Gu, del: Ze, delLDelim: Ze, delRDelim: Ze, emStrongLDelim: td, emStrongRDelimAst: id, emStrongRDelimUnd: od, escape: Ku, link: pd, nolink: wa, punctuation: Zu, reflink: ka, reflinkSearch: gd, tag: hd, text: Ju, url: Ze }, fd = { ...$i, link: S(/^!?\[(label)\]\((.*?)\)/).replace("label", jn).getRegex(), reflink: S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", jn).getRegex() }, hi = { ...$i, emStrongRDelimAst: rd, emStrongLDelim: nd, delLDelim: ad, delRDelim: ld, url: S(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", $r).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: S(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", $r).getRegex() }, md = { ...hi, br: S(xa).replace("{2,}", "*").getRegex(), text: S(hi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, sn = { normal: Li, gfm: Hu, pedantic: Wu }, Rt = { normal: $i, gfm: hi, breaks: md, pedantic: fd }, xd = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Or = (t) => xd[t];
5987
+ })(), 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)}}>`) }, Lu = /^(?:[ \t]*(?:\n|$))+/, zu = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, $u = /^ {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+|$)/, Ou = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Pi = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ga = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, fa = S(ga).replace(/bull/g, Pi).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(), Du = S(ga).replace(/bull/g, Pi).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(), qi = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Bu = /^[^\n]+/, Ni = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Uu = S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ni).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Fu = S(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Pi).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", Mi = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Vu = S("^ {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", Mi).replace("tag", Pn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ma = S(qi).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(), Qu = S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ma).getRegex(), Li = { blockquote: Qu, code: zu, def: Uu, fences: $u, heading: Ou, hr: tn, html: Vu, lheading: fa, list: Fu, newline: Lu, paragraph: ma, table: Ze, text: Bu }, zr = S("^ *([^\\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(), Hu = { ...Li, lheading: Du, table: zr, paragraph: S(qi).replace("hr", tn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", zr).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() }, Wu = { ...Li, html: S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Mi).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: Ze, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: S(qi).replace("hr", tn).replace("heading", ` *#{1,6} *[^
5988
+ ]`).replace("lheading", fa).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ku = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Gu = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xa = /^( {2,}|\\)\n(?!\s*$)/, Ju = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, jt = /[\p{P}\p{S}]/u, qn = /[\s\p{P}\p{S}]/u, zi = /[^\s\p{P}\p{S}]/u, Zu = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, qn).getRegex(), ba = /(?!~)[\p{P}\p{S}]/u, Yu = /(?!~)[\s\p{P}\p{S}]/u, Xu = /(?:[^\s\p{P}\p{S}]|~)/u, ed = S(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Mu ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), va = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, td = S(va, "u").replace(/punct/g, jt).getRegex(), nd = S(va, "u").replace(/punct/g, ba).getRegex(), ya = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", id = S(ya, "gu").replace(/notPunctSpace/g, zi).replace(/punctSpace/g, qn).replace(/punct/g, jt).getRegex(), rd = S(ya, "gu").replace(/notPunctSpace/g, Xu).replace(/punctSpace/g, Yu).replace(/punct/g, ba).getRegex(), od = S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, zi).replace(/punctSpace/g, qn).replace(/punct/g, jt).getRegex(), ad = S(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, jt).getRegex(), sd = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ld = S(sd, "gu").replace(/notPunctSpace/g, zi).replace(/punctSpace/g, qn).replace(/punct/g, jt).getRegex(), cd = S(/\\(punct)/, "gu").replace(/punct/g, jt).getRegex(), ud = S(/^<(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(), dd = S(Mi).replace("(?:-->|$)", "-->").getRegex(), hd = S("^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", dd).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), jn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, pd = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", jn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ka = S(/^!?\[(label)\]\[(ref)\]/).replace("label", jn).replace("ref", Ni).getRegex(), wa = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ni).getRegex(), gd = S("reflink|nolink(?!\\()", "g").replace("reflink", ka).replace("nolink", wa).getRegex(), $r = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, $i = { _backpedal: Ze, anyPunctuation: cd, autolink: ud, blockSkip: ed, br: xa, code: Gu, del: Ze, delLDelim: Ze, delRDelim: Ze, emStrongLDelim: td, emStrongRDelimAst: id, emStrongRDelimUnd: od, escape: Ku, link: pd, nolink: wa, punctuation: Zu, reflink: ka, reflinkSearch: gd, tag: hd, text: Ju, url: Ze }, fd = { ...$i, link: S(/^!?\[(label)\]\((.*?)\)/).replace("label", jn).getRegex(), reflink: S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", jn).getRegex() }, hi = { ...$i, emStrongRDelimAst: rd, emStrongLDelim: nd, delLDelim: ad, delRDelim: ld, url: S(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", $r).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: S(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", $r).getRegex() }, md = { ...hi, br: S(xa).replace("{2,}", "*").getRegex(), text: S(hi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, sn = { normal: Li, gfm: Hu, pedantic: Wu }, Tt = { normal: $i, gfm: hi, breaks: md, pedantic: fd }, xd = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Or = (t) => xd[t];
5981
5989
  function Ce(t, e) {
5982
5990
  if (e) {
5983
5991
  if (ae.escapeTest.test(t)) return t.replace(ae.escapeReplace, Or);
@@ -6003,7 +6011,7 @@ function Br(t, e) {
6003
6011
  for (; r < i.length; r++) i[r] = i[r].trim().replace(ae.slashPipe, "|");
6004
6012
  return i;
6005
6013
  }
6006
- function It(t, e, n) {
6014
+ function Rt(t, e, n) {
6007
6015
  let i = t.length;
6008
6016
  if (i === 0) return "";
6009
6017
  let r = 0;
@@ -6061,7 +6069,7 @@ var _n = class {
6061
6069
  let e = this.rules.block.code.exec(t);
6062
6070
  if (e) {
6063
6071
  let n = e[0].replace(this.rules.other.codeRemoveIndent, "");
6064
- return { type: "code", raw: e[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : It(n, `
6072
+ return { type: "code", raw: e[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : Rt(n, `
6065
6073
  `) };
6066
6074
  }
6067
6075
  }
@@ -6077,7 +6085,7 @@ var _n = class {
6077
6085
  if (e) {
6078
6086
  let n = e[2].trim();
6079
6087
  if (this.rules.other.endingHash.test(n)) {
6080
- let i = It(n, "#");
6088
+ let i = Rt(n, "#");
6081
6089
  (this.options.pedantic || !i || this.rules.other.endingSpaceChar.test(i)) && (n = i.trim());
6082
6090
  }
6083
6091
  return { type: "heading", raw: e[0], depth: e[1].length, text: n, tokens: this.lexer.inline(n) };
@@ -6085,13 +6093,13 @@ var _n = class {
6085
6093
  }
6086
6094
  hr(t) {
6087
6095
  let e = this.rules.block.hr.exec(t);
6088
- if (e) return { type: "hr", raw: It(e[0], `
6096
+ if (e) return { type: "hr", raw: Rt(e[0], `
6089
6097
  `) };
6090
6098
  }
6091
6099
  blockquote(t) {
6092
6100
  let e = this.rules.block.blockquote.exec(t);
6093
6101
  if (e) {
6094
- let n = It(e[0], `
6102
+ let n = Rt(e[0], `
6095
6103
  `).split(`
6096
6104
  `), i = "", r = "", o = [];
6097
6105
  for (; n.length > 0; ) {
@@ -6143,11 +6151,11 @@ ${d}` : d;
6143
6151
  `, 1)[0], p = !h.trim(), m = 0;
6144
6152
  if (this.options.pedantic ? (m = 2, d = h.trimStart()) : p ? m = e[1].length + 1 : (m = h.search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, d = h.slice(m), m += e[1].length), p && this.rules.other.blankLine.test(g) && (u += g + `
6145
6153
  `, t = t.substring(g.length + 1), c = !0), !c) {
6146
- let v = this.rules.other.nextBulletRegex(m), x = this.rules.other.hrRegex(m), f = this.rules.other.fencesBeginRegex(m), b = this.rules.other.headingBeginRegex(m), T = this.rules.other.htmlBeginRegex(m), z = this.rules.other.blockquoteBeginRegex(m);
6154
+ let v = this.rules.other.nextBulletRegex(m), x = this.rules.other.hrRegex(m), f = this.rules.other.fencesBeginRegex(m), b = this.rules.other.headingBeginRegex(m), I = this.rules.other.htmlBeginRegex(m), z = this.rules.other.blockquoteBeginRegex(m);
6147
6155
  for (; t; ) {
6148
6156
  let M = t.split(`
6149
6157
  `, 1)[0], $;
6150
- if (g = M, this.options.pedantic ? (g = g.replace(this.rules.other.listReplaceNesting, " "), $ = g) : $ = g.replace(this.rules.other.tabCharGlobal, " "), f.test(g) || b.test(g) || T.test(g) || z.test(g) || v.test(g) || x.test(g)) break;
6158
+ if (g = M, this.options.pedantic ? (g = g.replace(this.rules.other.listReplaceNesting, " "), $ = g) : $ = g.replace(this.rules.other.tabCharGlobal, " "), f.test(g) || b.test(g) || I.test(g) || z.test(g) || v.test(g) || x.test(g)) break;
6151
6159
  if ($.search(this.rules.other.nonSpaceChar) >= m || !g.trim()) d += `
6152
6160
  ` + $.slice(m);
6153
6161
  else {
@@ -6248,7 +6256,7 @@ ${d}` : d;
6248
6256
  let n = e[2].trim();
6249
6257
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
6250
6258
  if (!this.rules.other.endAngleBracket.test(n)) return;
6251
- let o = It(n.slice(0, -1), "\\");
6259
+ let o = Rt(n.slice(0, -1), "\\");
6252
6260
  if ((n.length - o.length) % 2 === 0) return;
6253
6261
  } else {
6254
6262
  let o = bd(e[2], "()");
@@ -6367,11 +6375,11 @@ ${d}` : d;
6367
6375
  tokenizer;
6368
6376
  constructor(e) {
6369
6377
  this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || rt, this.options.tokenizer = this.options.tokenizer || new _n(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
6370
- let n = { other: ae, block: sn.normal, inline: Rt.normal };
6371
- this.options.pedantic ? (n.block = sn.pedantic, n.inline = Rt.pedantic) : this.options.gfm && (n.block = sn.gfm, this.options.breaks ? n.inline = Rt.breaks : n.inline = Rt.gfm), this.tokenizer.rules = n;
6378
+ let n = { other: ae, block: sn.normal, inline: Tt.normal };
6379
+ this.options.pedantic ? (n.block = sn.pedantic, n.inline = Tt.pedantic) : this.options.gfm && (n.block = sn.gfm, this.options.breaks ? n.inline = Tt.breaks : n.inline = Tt.gfm), this.tokenizer.rules = n;
6372
6380
  }
6373
6381
  static get rules() {
6374
- return { block: sn, inline: Rt };
6382
+ return { block: sn, inline: Tt };
6375
6383
  }
6376
6384
  static lex(e, n) {
6377
6385
  return new pi(n).lex(e);
@@ -6866,7 +6874,7 @@ ${t}</tr>
6866
6874
  }
6867
6875
  return i;
6868
6876
  }
6869
- }, qt = class {
6877
+ }, Pt = class {
6870
6878
  options;
6871
6879
  block;
6872
6880
  constructor(t) {
@@ -6902,7 +6910,7 @@ ${t}</tr>
6902
6910
  TextRenderer = Oi;
6903
6911
  Lexer = be;
6904
6912
  Tokenizer = _n;
6905
- Hooks = qt;
6913
+ Hooks = Pt;
6906
6914
  constructor(...t) {
6907
6915
  this.use(...t);
6908
6916
  }
@@ -6976,13 +6984,13 @@ ${t}</tr>
6976
6984
  i.tokenizer = r;
6977
6985
  }
6978
6986
  if (n.hooks) {
6979
- let r = this.defaults.hooks || new qt();
6987
+ let r = this.defaults.hooks || new Pt();
6980
6988
  for (let o in n.hooks) {
6981
6989
  if (!(o in r)) throw new Error(`hook '${o}' does not exist`);
6982
6990
  if (["options", "block"].includes(o)) continue;
6983
6991
  let a = o, l = n.hooks[a], c = r[a];
6984
- qt.passThroughHooks.has(o) ? r[a] = (u) => {
6985
- if (this.defaults.async && qt.passThroughHooksRespectAsync.has(o)) return (async () => {
6992
+ Pt.passThroughHooks.has(o) ? r[a] = (u) => {
6993
+ if (this.defaults.async && Pt.passThroughHooksRespectAsync.has(o)) return (async () => {
6986
6994
  let h = await l.call(r, u);
6987
6995
  return c.call(r, h);
6988
6996
  })();
@@ -7053,38 +7061,38 @@ Please report this to https://github.com/markedjs/marked.`, t) {
7053
7061
  };
7054
7062
  }
7055
7063
  }, nt = new kd();
7056
- function P(t, e) {
7064
+ function q(t, e) {
7057
7065
  return nt.parse(t, e);
7058
7066
  }
7059
- P.options = P.setOptions = function(t) {
7060
- return nt.setOptions(t), P.defaults = nt.defaults, pa(P.defaults), P;
7067
+ q.options = q.setOptions = function(t) {
7068
+ return nt.setOptions(t), q.defaults = nt.defaults, pa(q.defaults), q;
7061
7069
  };
7062
- P.getDefaults = Ei;
7063
- P.defaults = rt;
7064
- P.use = function(...t) {
7065
- return nt.use(...t), P.defaults = nt.defaults, pa(P.defaults), P;
7070
+ q.getDefaults = Ei;
7071
+ q.defaults = rt;
7072
+ q.use = function(...t) {
7073
+ return nt.use(...t), q.defaults = nt.defaults, pa(q.defaults), q;
7066
7074
  };
7067
- P.walkTokens = function(t, e) {
7075
+ q.walkTokens = function(t, e) {
7068
7076
  return nt.walkTokens(t, e);
7069
7077
  };
7070
- P.parseInline = nt.parseInline;
7071
- P.Parser = ve;
7072
- P.parser = ve.parse;
7073
- P.Renderer = Sn;
7074
- P.TextRenderer = Oi;
7075
- P.Lexer = be;
7076
- P.lexer = be.lex;
7077
- P.Tokenizer = _n;
7078
- P.Hooks = qt;
7079
- P.parse = P;
7080
- P.options;
7081
- P.setOptions;
7082
- P.use;
7083
- P.walkTokens;
7084
- P.parseInline;
7078
+ q.parseInline = nt.parseInline;
7079
+ q.Parser = ve;
7080
+ q.parser = ve.parse;
7081
+ q.Renderer = Sn;
7082
+ q.TextRenderer = Oi;
7083
+ q.Lexer = be;
7084
+ q.lexer = be.lex;
7085
+ q.Tokenizer = _n;
7086
+ q.Hooks = Pt;
7087
+ q.parse = q;
7088
+ q.options;
7089
+ q.setOptions;
7090
+ q.use;
7091
+ q.walkTokens;
7092
+ q.parseInline;
7085
7093
  ve.parse;
7086
7094
  be.lex;
7087
- P.setOptions({
7095
+ q.setOptions({
7088
7096
  breaks: !0,
7089
7097
  gfm: !0
7090
7098
  });
@@ -7092,7 +7100,7 @@ function wd({ text: t }) {
7092
7100
  const e = G(() => {
7093
7101
  if (!t)
7094
7102
  return "";
7095
- const n = P.parse(t);
7103
+ const n = q.parse(t);
7096
7104
  return typeof n == "string" ? n : "";
7097
7105
  }, [t]);
7098
7106
  return /* @__PURE__ */ s("div", { class: "jex-md", dangerouslySetInnerHTML: { __html: e } });
@@ -7102,7 +7110,7 @@ function jd(t) {
7102
7110
  return e.length === 0 ? "?" : e.map((n) => n[0]).join("").slice(0, 2).toUpperCase();
7103
7111
  }
7104
7112
  function ut({ text: t, streaming: e, error: n, authorId: i, authorName: r, authorImage: o, botAvatarUrl: a, botName: l }) {
7105
- const c = j(), u = !!i, [d, h] = I(!1), g = N(() => h(!0), []), p = c.replyTo.replace("{name}", r ?? ""), m = u ? r ?? "" : l ?? "", v = [
7113
+ const c = j(), u = !!i, [d, h] = R(!1), g = N(() => h(!0), []), p = c.replyTo.replace("{name}", r ?? ""), m = u ? r ?? "" : l ?? "", v = [
7106
7114
  "jex-message bot",
7107
7115
  n ? "jex-message-error" : ""
7108
7116
  ].filter(Boolean).join(" ");
@@ -7164,7 +7172,7 @@ function Cd({ message: t, sessionId: e, visitorId: n }) {
7164
7172
  ] })
7165
7173
  ] })
7166
7174
  ] }) : /* @__PURE__ */ s("div", { class: "jex-message-row bot", children: /* @__PURE__ */ s(
7167
- Rd,
7175
+ Td,
7168
7176
  {
7169
7177
  messageId: t._id,
7170
7178
  sessionId: e,
@@ -7172,8 +7180,8 @@ function Cd({ message: t, sessionId: e, visitorId: n }) {
7172
7180
  }
7173
7181
  ) });
7174
7182
  }
7175
- function Rd({ messageId: t, sessionId: e, visitorId: n }) {
7176
- const i = j(), [r, o] = I(""), [a, l] = I(""), [c, u] = I(!1), d = en.value, h = /^https?:\/\//i.test(d) ? d : Xt, g = ja();
7183
+ function Td({ messageId: t, sessionId: e, visitorId: n }) {
7184
+ const i = j(), [r, o] = R(""), [a, l] = R(""), [c, u] = R(!1), d = en.value, h = /^https?:\/\//i.test(d) ? d : Xt, g = ja();
7177
7185
  async function p(m) {
7178
7186
  if (m.preventDefault(), !c) {
7179
7187
  u(!0);
@@ -7234,10 +7242,10 @@ function Rd({ messageId: t, sessionId: e, visitorId: n }) {
7234
7242
  ] })
7235
7243
  ] });
7236
7244
  }
7237
- function Id() {
7245
+ function Rd() {
7238
7246
  return Jt(pe.functions.magicline.public.submitForm);
7239
7247
  }
7240
- function Td() {
7248
+ function Id() {
7241
7249
  return Zt(pe.functions.magicline.actions.getTrialConfig);
7242
7250
  }
7243
7251
  function Ad() {
@@ -7249,12 +7257,12 @@ function Ed() {
7249
7257
  function _a() {
7250
7258
  return Zt(pe.functions.magicline.actions.getContractPreview);
7251
7259
  }
7252
- function qd() {
7260
+ function Pd() {
7253
7261
  return Zt(pe.functions.magicline.actions.submitContractCreation);
7254
7262
  }
7255
- const Di = { en: Ri, de: ta }, Pd = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
7263
+ const Di = { en: Ti, de: ta }, qd = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
7256
7264
  function Sa(t) {
7257
- return Pd.test(t.trim());
7265
+ return qd.test(t.trim());
7258
7266
  }
7259
7267
  function Nd(t, e = /* @__PURE__ */ new Date()) {
7260
7268
  const n = t.trim();
@@ -7274,7 +7282,7 @@ function Ca(t = /* @__PURE__ */ new Date()) {
7274
7282
  const e = t.getFullYear(), n = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0");
7275
7283
  return `${e}-${n}-${i}`;
7276
7284
  }
7277
- function Ra() {
7285
+ function Ta() {
7278
7286
  const t = en.value;
7279
7287
  return /^https?:\/\//i.test(t) ? t : Xt;
7280
7288
  }
@@ -7295,11 +7303,11 @@ const Md = {
7295
7303
  FI: 18,
7296
7304
  PT: 25
7297
7305
  }, Ld = 15, zd = 34;
7298
- function Ia(t) {
7306
+ function Ra(t) {
7299
7307
  return t.replace(/\s+/g, "").toUpperCase();
7300
7308
  }
7301
7309
  function $d(t) {
7302
- const e = Ia(t), n = e.slice(0, 2), i = Md[n];
7310
+ const e = Ra(t), n = e.slice(0, 2), i = Md[n];
7303
7311
  if (i !== void 0) {
7304
7312
  if (e.length !== i)
7305
7313
  return !1;
@@ -7324,7 +7332,7 @@ function $d(t) {
7324
7332
  return a === 1;
7325
7333
  }
7326
7334
  function Od(t) {
7327
- const e = Ia(t);
7335
+ const e = Ra(t);
7328
7336
  if (e.length <= 8)
7329
7337
  return e;
7330
7338
  const n = e.slice(0, 4), i = e.slice(-4);
@@ -7402,7 +7410,7 @@ const Fd = {
7402
7410
  "starter package": "magiclineFeeStarterPackage",
7403
7411
  trainerpauschale: "magiclineFeeTrainerFee"
7404
7412
  };
7405
- function Ta(t, e) {
7413
+ function Ia(t, e) {
7406
7414
  const n = t.trim().toLowerCase(), i = Fd[n];
7407
7415
  return i !== void 0 ? e[i] : t;
7408
7416
  }
@@ -7470,7 +7478,7 @@ function Gd({
7470
7478
  sessionId: t,
7471
7479
  visitorId: e
7472
7480
  }) {
7473
- const n = Td(), i = Ad(), [r, o] = he(Kd, Wd), [a, l] = he(
7481
+ const n = Id(), i = Ad(), [r, o] = he(Kd, Wd), [a, l] = he(
7474
7482
  (f, b) => b,
7475
7483
  { phase: "loading" }
7476
7484
  ), [c, u] = he(
@@ -7483,7 +7491,7 @@ function Gd({
7483
7491
  }, []), m = N(() => {
7484
7492
  h();
7485
7493
  }, []);
7486
- q(() => {
7494
+ P(() => {
7487
7495
  let f = !1;
7488
7496
  return (async () => {
7489
7497
  try {
@@ -7511,7 +7519,7 @@ function Gd({
7511
7519
  };
7512
7520
  }, [n, t, e]);
7513
7521
  const v = a.phase === "ready", { trainerRequired: x } = r;
7514
- return q(() => {
7522
+ return P(() => {
7515
7523
  if (!v)
7516
7524
  return;
7517
7525
  let f = !1;
@@ -7522,7 +7530,7 @@ function Gd({
7522
7530
  return;
7523
7531
  b.status === "ok" ? b.slots.length > 0 ? (u({ phase: "ready", slots: b.slots }), o({
7524
7532
  type: "clearSlotIfAbsent",
7525
- available: b.slots.map((T) => T.startDateTime)
7533
+ available: b.slots.map((I) => I.startDateTime)
7526
7534
  })) : u({ phase: "empty" }) : u({ phase: "error" });
7527
7535
  } catch {
7528
7536
  f || u({ phase: "error" });
@@ -7546,7 +7554,7 @@ function Jd({
7546
7554
  slotUnavailable: i = !1,
7547
7555
  retryPending: r = !1
7548
7556
  }) {
7549
- const o = j(), a = Id(), { fields: l, setField: c, setTrainerRequired: u, configState: d, slotsState: h, refetchSlots: g } = Gd({ sessionId: e, visitorId: n });
7557
+ const o = j(), a = Rd(), { fields: l, setField: c, setTrainerRequired: u, configState: d, slotsState: h, refetchSlots: g } = Gd({ sessionId: e, visitorId: n });
7550
7558
  return d.phase === "loading" ? /* @__PURE__ */ s("div", { class: "jex-inline-form jex-magicline-form", children: [
7551
7559
  /* @__PURE__ */ s("div", { class: "jex-inline-form-title", children: o.magiclineTrialTitle }),
7552
7560
  /* @__PURE__ */ s("div", { class: "jex-magicline-slots-hint", children: o.magiclineConfigLoading })
@@ -7588,7 +7596,7 @@ function Zd({
7588
7596
  const g = j(), { plan: p, minimumAge: m, bookingWithoutTrainerAllowed: v, studioZoneId: x } = o, f = G(
7589
7597
  () => Hd(p, v),
7590
7598
  [p, v]
7591
- ), b = i ? Math.max(f.indexOf("slot"), 0) : 0, [T, z] = I(b), [M, $] = I({}), [Z, ne] = I(!1), [ie, re] = I(null), Q = G(() => Ra(), []), Y = Math.min(T, f.length - 1), y = f[Y], H = Y === f.length - 1, _t = Y === 0;
7599
+ ), b = i ? Math.max(f.indexOf("slot"), 0) : 0, [I, z] = R(b), [M, $] = R({}), [Z, ne] = R(!1), [ie, re] = R(null), Q = G(() => Ta(), []), Y = Math.min(I, f.length - 1), y = f[Y], H = Y === f.length - 1, _t = Y === 0;
7592
7600
  function Ve(V) {
7593
7601
  const C = {};
7594
7602
  if (V === "slot")
@@ -7813,7 +7821,7 @@ function Xd({
7813
7821
  },
7814
7822
  children: [
7815
7823
  /* @__PURE__ */ s("option", { value: "", disabled: !0, children: u.magiclineSlotPlaceholder }),
7816
- t.slots.map((d) => /* @__PURE__ */ s("option", { value: d.startDateTime, children: qa(d.startDateTime, Ne.value, n) }, d.startDateTime))
7824
+ t.slots.map((d) => /* @__PURE__ */ s("option", { value: d.startDateTime, children: Pa(d.startDateTime, Ne.value, n) }, d.startDateTime))
7817
7825
  ]
7818
7826
  }
7819
7827
  ) : t.phase === "error" ? (
@@ -8027,7 +8035,7 @@ function nh({
8027
8035
  consentError: o,
8028
8036
  setField: a
8029
8037
  }) {
8030
- const l = j(), c = i.slotId !== "" ? qa(i.slotId, Ne.value, n) : "—", u = `${i.firstName} ${i.lastName}`.trim();
8038
+ const l = j(), c = i.slotId !== "" ? Pa(i.slotId, Ne.value, n) : "—", u = `${i.firstName} ${i.lastName}`.trim();
8031
8039
  return /* @__PURE__ */ s(O, { children: [
8032
8040
  /* @__PURE__ */ s("dl", { class: "jex-magicline-summary", children: [
8033
8041
  /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row", children: [
@@ -8179,7 +8187,7 @@ function oh(t, e) {
8179
8187
  function ah(t, e) {
8180
8188
  return t === "MALE" ? e.magiclineGenderMale : t === "FEMALE" ? e.magiclineGenderFemale : e.magiclineGenderUnisex;
8181
8189
  }
8182
- function qa(t, e, n) {
8190
+ function Pa(t, e, n) {
8183
8191
  const i = e === "de" ? "de-DE" : "en-GB", r = t.match(/\[([^\]]+)\]\s*$/), o = r ? r[1] : n ?? void 0, a = t.replace(/\[[^\]]+\]\s*$/, ""), l = new Date(a);
8184
8192
  if (Number.isNaN(l.getTime()))
8185
8193
  return t;
@@ -8387,7 +8395,7 @@ function ph({
8387
8395
  k.phase === "ready" ? d.current = k.pricing : (k.phase === "idle" || k.phase === "error") && (d.current = null), g(k);
8388
8396
  }, []), [m, v] = he((k) => k + 1, 0), [x, f] = he((k) => k + 1, 0), b = N((k) => {
8389
8397
  o({ type: "setTermId", termId: k }), l({ type: "CLEAR_VOUCHER" });
8390
- }, []), T = N((k, _) => {
8398
+ }, []), I = N((k, _) => {
8391
8399
  o({ type: "setPersonal", key: k, value: _ });
8392
8400
  }, []), z = N((k, _) => {
8393
8401
  o({ type: "setAddress", key: k, value: _ });
@@ -8451,12 +8459,12 @@ function ph({
8451
8459
  () => Me.every((k) => C[k] === !0),
8452
8460
  [Me, C]
8453
8461
  ), { firstName: te, lastName: je } = r.personal, { accountHolder: se, accountHolderTouched: st } = r.payment;
8454
- return q(() => {
8462
+ return P(() => {
8455
8463
  st || se !== "" || te.trim() !== "" && je.trim() !== "" && o({
8456
8464
  type: "prefillAccountHolder",
8457
8465
  value: `${te.trim()} ${je.trim()}`
8458
8466
  });
8459
- }, [te, je, se, st]), q(() => {
8467
+ }, [te, je, se, st]), P(() => {
8460
8468
  let k = !1;
8461
8469
  return u({ phase: "loading" }), (async () => {
8462
8470
  try {
@@ -8470,7 +8478,7 @@ function ph({
8470
8478
  })(), () => {
8471
8479
  k = !0;
8472
8480
  };
8473
- }, [n, t, e, m]), q(() => {
8481
+ }, [n, t, e, m]), P(() => {
8474
8482
  if (x === 0)
8475
8483
  return;
8476
8484
  const k = we;
@@ -8550,7 +8558,7 @@ function ph({
8550
8558
  voucherUnavailable: a.voucherUnavailable,
8551
8559
  // Field actions
8552
8560
  setTermId: b,
8553
- setPersonal: T,
8561
+ setPersonal: I,
8554
8562
  setAddress: z,
8555
8563
  toggleModule: M,
8556
8564
  setBlockAck: $,
@@ -8581,7 +8589,7 @@ function fh({
8581
8589
  projectId: i,
8582
8590
  formStatus: r
8583
8591
  }) {
8584
- const o = j(), a = Ne.value, l = qd(), c = _a(), u = ph({ sessionId: e, visitorId: n }), {
8592
+ const o = j(), a = Ne.value, l = Pd(), c = _a(), u = ph({ sessionId: e, visitorId: n }), {
8585
8593
  fields: d,
8586
8594
  offersState: h,
8587
8595
  previewState: g,
@@ -8591,7 +8599,7 @@ function fh({
8591
8599
  serverAllowVoucherCodes: x,
8592
8600
  voucherStatus: f,
8593
8601
  draftVoucherCode: b,
8594
- appliedVoucher: T,
8602
+ appliedVoucher: I,
8595
8603
  appliedVoucherCode: z,
8596
8604
  voucherUnavailable: M,
8597
8605
  setTermId: $,
@@ -8612,7 +8620,7 @@ function fh({
8612
8620
  commitVoucherApplied: at,
8613
8621
  markVoucherInvalid: we,
8614
8622
  markVoucherDisabled: V
8615
- } = u, [C, ge] = I(0), [Me, Ct] = I({}), [te, je] = I(!1), [se, st] = I(null), [k, _] = I(null), [Le, We] = I(null), Nn = G(() => Ra(), []);
8623
+ } = u, [C, ge] = R(0), [Me, Ct] = R({}), [te, je] = R(!1), [se, st] = R(null), [k, _] = R(null), [Le, We] = R(null), Nn = G(() => Ta(), []);
8616
8624
  if (se !== null && se.status === "succeeded")
8617
8625
  return /* @__PURE__ */ s(Vr, { customerNumber: se.customerNumber });
8618
8626
  if (se !== null && se.status === "failed" && !se.retryable) {
@@ -8625,29 +8633,29 @@ function fh({
8625
8633
  return /* @__PURE__ */ s(Qr, { message: o.magiclineFailedDetail });
8626
8634
  const B = G(() => gh(p), [p]), lt = Math.min(C, B.length - 1), _e = B[lt], Ui = lt === B.length - 1, Ma = lt === 0;
8627
8635
  function La(A) {
8628
- const R = {};
8636
+ const T = {};
8629
8637
  if (A === "offer")
8630
- return d.termId === null && (R.termId = o.magiclineOfferRequiredError), R;
8638
+ return d.termId === null && (T.termId = o.magiclineOfferRequiredError), T;
8631
8639
  if (A === "upgrades") {
8632
8640
  if (p !== null)
8633
8641
  for (const J of d.selectedModuleIds) {
8634
8642
  const Ke = p.optionalModules.find((X) => X.id === J);
8635
8643
  if (Ke?.consent && d.acknowledgedBlocks[Ke.consent.ackKey] !== !0) {
8636
- R.upgrades = o.magiclineUpgradeConsentError;
8644
+ T.upgrades = o.magiclineUpgradeConsentError;
8637
8645
  break;
8638
8646
  }
8639
8647
  }
8640
- return R;
8648
+ return T;
8641
8649
  }
8642
8650
  if (A === "personal") {
8643
8651
  const J = d.personal;
8644
- return J.firstName.trim() === "" && (R.firstName = o.magiclineRequiredError), J.lastName.trim() === "" && (R.lastName = o.magiclineRequiredError), J.email.trim() === "" ? R.email = o.magiclineRequiredError : Sa(J.email) || (R.email = o.magiclineEmailError), J.dateOfBirth.trim() === "" && (R.dateOfBirth = o.magiclineRequiredError), J.gender === "" && (R.gender = o.magiclineRequiredError), J.phone.trim() === "" && (R.phone = o.magiclineRequiredError), R;
8652
+ return J.firstName.trim() === "" && (T.firstName = o.magiclineRequiredError), J.lastName.trim() === "" && (T.lastName = o.magiclineRequiredError), J.email.trim() === "" ? T.email = o.magiclineRequiredError : Sa(J.email) || (T.email = o.magiclineEmailError), J.dateOfBirth.trim() === "" && (T.dateOfBirth = o.magiclineRequiredError), J.gender === "" && (T.gender = o.magiclineRequiredError), J.phone.trim() === "" && (T.phone = o.magiclineRequiredError), T;
8645
8653
  }
8646
8654
  if (A === "address") {
8647
8655
  const J = d.address;
8648
- return J.street.trim() === "" && (R.street = o.magiclineRequiredError), J.houseNumber.trim() === "" && (R.houseNumber = o.magiclineRequiredError), J.zipCode.trim() === "" && (R.zipCode = o.magiclineRequiredError), J.city.trim() === "" && (R.city = o.magiclineRequiredError), R;
8656
+ return J.street.trim() === "" && (T.street = o.magiclineRequiredError), J.houseNumber.trim() === "" && (T.houseNumber = o.magiclineRequiredError), J.zipCode.trim() === "" && (T.zipCode = o.magiclineRequiredError), J.city.trim() === "" && (T.city = o.magiclineRequiredError), T;
8649
8657
  }
8650
- return A === "payment" && (d.payment.accountHolder.trim() === "" && (R.accountHolder = o.magiclineRequiredError), $d(d.payment.iban) || (R.iban = o.magiclineIbanInvalidError), d.consents.privacy || (R.privacy = o.magiclineConsentError), d.consents.sepa || (R.sepa = o.magiclineConsentError)), R;
8658
+ return A === "payment" && (d.payment.accountHolder.trim() === "" && (T.accountHolder = o.magiclineRequiredError), $d(d.payment.iban) || (T.iban = o.magiclineIbanInvalidError), d.consents.privacy || (T.privacy = o.magiclineConsentError), d.consents.sepa || (T.sepa = o.magiclineConsentError)), T;
8651
8659
  }
8652
8660
  function za() {
8653
8661
  const A = La(_e);
@@ -8656,8 +8664,8 @@ function fh({
8656
8664
  return;
8657
8665
  }
8658
8666
  Ct({}), _(null);
8659
- const R = Math.min(lt + 1, B.length - 1);
8660
- B[R] === "review" && Qe(), ge(R);
8667
+ const T = Math.min(lt + 1, B.length - 1);
8668
+ B[T] === "review" && Qe(), ge(T);
8661
8669
  }
8662
8670
  function $a() {
8663
8671
  Ct({}), _(null), _e === "review" && ot(), ge((A) => Math.max(A - 1, 0));
@@ -8698,7 +8706,7 @@ function fh({
8698
8706
  iban: d.payment.iban
8699
8707
  },
8700
8708
  // Only modules still offered by the selected term are sent.
8701
- selectedModuleIds: p.optionalModules.filter((R) => d.selectedModuleIds.includes(R.id)).map((R) => R.id),
8709
+ selectedModuleIds: p.optionalModules.filter((T) => d.selectedModuleIds.includes(T.id)).map((T) => T.id),
8702
8710
  // Required text-block + selected-module consent ackKeys (the submit
8703
8711
  // button is gated on all of these being ticked).
8704
8712
  acknowledgedAckKeys: m,
@@ -8738,7 +8746,7 @@ function fh({
8738
8746
  async function Ba() {
8739
8747
  if (g.phase !== "ready" || p === null || b.trim() === "")
8740
8748
  return;
8741
- const A = b.trim(), R = St();
8749
+ const A = b.trim(), T = St();
8742
8750
  We(null);
8743
8751
  const J = (X) => {
8744
8752
  we(), He(""), We(X);
@@ -8771,7 +8779,7 @@ function fh({
8771
8779
  if (Ge !== null) {
8772
8780
  const Ha = Ge.textBlocks.map((Wa) => Wa.ackKey);
8773
8781
  at({
8774
- requestId: R,
8782
+ requestId: T,
8775
8783
  voucher: Ge,
8776
8784
  appliedCode: b.trim(),
8777
8785
  voucherAckKeys: Ha,
@@ -8801,7 +8809,7 @@ function fh({
8801
8809
  function Ua() {
8802
8810
  Ui ? Da() : za();
8803
8811
  }
8804
- const Fi = Ih(_e, o), Fa = f === "applying" || b.trim() !== "" && b.trim() !== (z ?? ""), Va = _e === "review" && (g.phase !== "ready" || !v || Fa), Qa = te || Va;
8812
+ const Fi = Rh(_e, o), Fa = f === "applying" || b.trim() !== "" && b.trim() !== (z ?? ""), Va = _e === "review" && (g.phase !== "ready" || !v || Fa), Qa = te || Va;
8805
8813
  return /* @__PURE__ */ s("div", { class: "jex-inline-form jex-magicline-form", children: [
8806
8814
  /* @__PURE__ */ s("div", { class: "jex-magicline-wizard-header", children: [
8807
8815
  /* @__PURE__ */ s("div", { class: "jex-inline-form-title", children: o.magiclineContractTitle }),
@@ -8809,10 +8817,10 @@ function fh({
8809
8817
  /* @__PURE__ */ s("span", { class: "jex-magicline-wizard-step-label", children: Fi }),
8810
8818
  /* @__PURE__ */ s("span", { class: "jex-magicline-wizard-counter", children: o.magiclineStepCounter.replace("{n}", String(lt + 1)).replace("{total}", String(B.length)) })
8811
8819
  ] }),
8812
- /* @__PURE__ */ s("div", { class: "jex-magicline-wizard-dots", "aria-hidden": "true", children: B.map((A, R) => /* @__PURE__ */ s(
8820
+ /* @__PURE__ */ s("div", { class: "jex-magicline-wizard-dots", "aria-hidden": "true", children: B.map((A, T) => /* @__PURE__ */ s(
8813
8821
  "span",
8814
8822
  {
8815
- class: R === lt ? "jex-magicline-wizard-dot jex-magicline-wizard-dot-active" : "jex-magicline-wizard-dot"
8823
+ class: T === lt ? "jex-magicline-wizard-dot jex-magicline-wizard-dot-active" : "jex-magicline-wizard-dot"
8816
8824
  },
8817
8825
  A
8818
8826
  )) })
@@ -8889,7 +8897,7 @@ function fh({
8889
8897
  voucherUnavailable: M,
8890
8898
  voucherStatus: f,
8891
8899
  draftVoucherCode: b,
8892
- appliedVoucher: T,
8900
+ appliedVoucher: I,
8893
8901
  voucherBanner: Le,
8894
8902
  onVoucherDraftChange: He,
8895
8903
  onApplyVoucher: () => {
@@ -8928,8 +8936,8 @@ function Vr({ customerNumber: t }) {
8928
8936
  return /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted", children: [
8929
8937
  /* @__PURE__ */ s("span", { class: "jex-inline-form-check", children: "✓" }),
8930
8938
  /* @__PURE__ */ s("div", { children: [
8931
- /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-title", children: e.magiclineSubmitted }),
8932
- /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-detail", children: e.magiclineContractSubmitted }),
8939
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-title", children: e.magiclineContractSuccessTitle }),
8940
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-detail", children: e.magiclineContractSuccessDetail }),
8933
8941
  t !== null && t !== "" ? /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-detail", children: e.magiclineCustomerNumber.replace("{number}", t) }) : null
8934
8942
  ] })
8935
8943
  ] });
@@ -8963,7 +8971,7 @@ function mh({
8963
8971
  ] });
8964
8972
  if (t.phase === "empty")
8965
8973
  return /* @__PURE__ */ s("div", { class: "jex-magicline-slots-hint", role: "alert", "aria-live": "polite", children: l.magiclineNoOffers });
8966
- const c = Rh(t.terms);
8974
+ const c = Th(t.terms);
8967
8975
  return /* @__PURE__ */ s(O, { children: [
8968
8976
  /* @__PURE__ */ s("div", { class: "jex-magicline-radio-group", role: "radiogroup", "aria-label": l.magiclineStepOffer, children: c.map((u) => /* @__PURE__ */ s("div", { class: "jex-magicline-offer-group", children: [
8969
8977
  /* @__PURE__ */ s("div", { class: "jex-magicline-offer-bundle-name", children: u.bundleName }),
@@ -9039,7 +9047,7 @@ function xh({ term: t, checked: e, widgetLocale: n, disabled: i, onSelect: r })
9039
9047
  ye(c.price, t.currencyCode, n)
9040
9048
  ] }) : null,
9041
9049
  u.map((d) => /* @__PURE__ */ s("span", { class: "jex-magicline-offer-term-note", children: [
9042
- Ta(d.name, o),
9050
+ Ia(d.name, o),
9043
9051
  ": ",
9044
9052
  ye(d.price, t.currencyCode, n)
9045
9053
  ] }, d.name)),
@@ -9151,7 +9159,7 @@ function kh({ personal: t, errors: e, disabled: n, setPersonal: i }) {
9151
9159
  return /* @__PURE__ */ s(O, { children: [
9152
9160
  /* @__PURE__ */ s("div", { class: "jex-magicline-row", children: [
9153
9161
  /* @__PURE__ */ s(
9154
- Te,
9162
+ Ie,
9155
9163
  {
9156
9164
  label: r.magiclineFirstName,
9157
9165
  value: t.firstName,
@@ -9165,7 +9173,7 @@ function kh({ personal: t, errors: e, disabled: n, setPersonal: i }) {
9165
9173
  }
9166
9174
  ),
9167
9175
  /* @__PURE__ */ s(
9168
- Te,
9176
+ Ie,
9169
9177
  {
9170
9178
  label: r.magiclineLastName,
9171
9179
  value: t.lastName,
@@ -9180,7 +9188,7 @@ function kh({ personal: t, errors: e, disabled: n, setPersonal: i }) {
9180
9188
  )
9181
9189
  ] }),
9182
9190
  /* @__PURE__ */ s(
9183
- Te,
9191
+ Ie,
9184
9192
  {
9185
9193
  label: r.magiclineEmail,
9186
9194
  type: "email",
@@ -9226,11 +9234,11 @@ function kh({ personal: t, errors: e, disabled: n, setPersonal: i }) {
9226
9234
  onChange: (a) => {
9227
9235
  i("gender", a);
9228
9236
  },
9229
- options: Aa.map((a) => ({ value: a, label: Th(a, r) }))
9237
+ options: Aa.map((a) => ({ value: a, label: Ih(a, r) }))
9230
9238
  }
9231
9239
  ),
9232
9240
  /* @__PURE__ */ s(
9233
- Te,
9241
+ Ie,
9234
9242
  {
9235
9243
  label: r.magiclinePhone,
9236
9244
  type: "tel",
@@ -9251,7 +9259,7 @@ function wh({ address: t, errors: e, disabled: n, setAddress: i }) {
9251
9259
  return /* @__PURE__ */ s(O, { children: [
9252
9260
  /* @__PURE__ */ s("div", { class: "jex-magicline-row", children: [
9253
9261
  /* @__PURE__ */ s(
9254
- Te,
9262
+ Ie,
9255
9263
  {
9256
9264
  label: r.magiclineStreet,
9257
9265
  value: t.street,
@@ -9265,7 +9273,7 @@ function wh({ address: t, errors: e, disabled: n, setAddress: i }) {
9265
9273
  }
9266
9274
  ),
9267
9275
  /* @__PURE__ */ s(
9268
- Te,
9276
+ Ie,
9269
9277
  {
9270
9278
  label: r.magiclineHouseNumber,
9271
9279
  value: t.houseNumber,
@@ -9281,7 +9289,7 @@ function wh({ address: t, errors: e, disabled: n, setAddress: i }) {
9281
9289
  ] }),
9282
9290
  /* @__PURE__ */ s("div", { class: "jex-magicline-row", children: [
9283
9291
  /* @__PURE__ */ s(
9284
- Te,
9292
+ Ie,
9285
9293
  {
9286
9294
  label: r.magiclineZip,
9287
9295
  value: t.zipCode,
@@ -9295,7 +9303,7 @@ function wh({ address: t, errors: e, disabled: n, setAddress: i }) {
9295
9303
  }
9296
9304
  ),
9297
9305
  /* @__PURE__ */ s(
9298
- Te,
9306
+ Ie,
9299
9307
  {
9300
9308
  label: r.magiclineCity,
9301
9309
  value: t.city,
@@ -9328,7 +9336,7 @@ function jh({
9328
9336
  const c = j(), u = `jex-ml-privacy-${t}`, d = `jex-ml-sepa-${t}`;
9329
9337
  return /* @__PURE__ */ s(O, { children: [
9330
9338
  /* @__PURE__ */ s(
9331
- Te,
9339
+ Ie,
9332
9340
  {
9333
9341
  label: c.magiclineAccountHolder,
9334
9342
  value: e.payment.accountHolder,
@@ -9340,7 +9348,7 @@ function jh({
9340
9348
  }
9341
9349
  ),
9342
9350
  /* @__PURE__ */ s(
9343
- Te,
9351
+ Ie,
9344
9352
  {
9345
9353
  label: c.magiclineIban,
9346
9354
  value: e.payment.iban,
@@ -9418,7 +9426,7 @@ function _h({
9418
9426
  /* @__PURE__ */ s("div", { class: "jex-magicline-slots-hint", role: "alert", "aria-live": "polite", children: n.code === "offer_unavailable" ? x.magiclineOfferUnavailableNotice : x.magiclineReviewError }),
9419
9427
  /* @__PURE__ */ s("button", { type: "button", class: "jex-magicline-retry", disabled: r, onClick: l, children: x.magiclineRetry })
9420
9428
  ] });
9421
- const f = n.pricing, b = n.phase === "reloading", T = f.contractVolume, z = `${t.personal.firstName} ${t.personal.lastName}`.trim(), M = t.address, $ = [
9429
+ const f = n.pricing, b = n.phase === "reloading", I = f.contractVolume, z = `${t.personal.firstName} ${t.personal.lastName}`.trim(), M = t.address, $ = [
9422
9430
  `${M.street} ${M.houseNumber}`.trim(),
9423
9431
  `${M.zipCode} ${M.city}`.trim(),
9424
9432
  x.magiclineCountryStatic
@@ -9464,7 +9472,7 @@ function _h({
9464
9472
  /* @__PURE__ */ s("dd", { children: g.remarks })
9465
9473
  ] }) : null,
9466
9474
  f.flatFees.map((y, H) => /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row", children: [
9467
- /* @__PURE__ */ s("dt", { children: Ta(y.name, x) }),
9475
+ /* @__PURE__ */ s("dt", { children: Ia(y.name, x) }),
9468
9476
  /* @__PURE__ */ s("dd", { children: ye(y.price, f.currencyCode, i) })
9469
9477
  ] }, `${y.name}-${H}`)),
9470
9478
  f.preUseCharge > 0 ? /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row", children: [
@@ -9479,9 +9487,9 @@ function _h({
9479
9487
  /* @__PURE__ */ s("dd", { children: ye(y.amount, y.currencyCode, i) })
9480
9488
  ] }, `${y.moduleId}-${H}`))
9481
9489
  ] }) : null,
9482
- T !== null && T.total !== null ? /* @__PURE__ */ s("dl", { class: "jex-magicline-summary jex-magicline-summary-section jex-magicline-summary-totals", children: /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row jex-magicline-summary-total-row", children: [
9490
+ I !== null && I.total !== null ? /* @__PURE__ */ s("dl", { class: "jex-magicline-summary jex-magicline-summary-section jex-magicline-summary-totals", children: /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row jex-magicline-summary-total-row", children: [
9483
9491
  /* @__PURE__ */ s("dt", { children: g !== null && g.voucherType === "DISCOUNT" ? x.magiclineGesamtpreisBeforeDiscount : x.magiclineReviewContractVolume }),
9484
- /* @__PURE__ */ s("dd", { children: ye(T.total, f.currencyCode, i) })
9492
+ /* @__PURE__ */ s("dd", { children: ye(I.total, f.currencyCode, i) })
9485
9493
  ] }) }) : null,
9486
9494
  g !== null && g.voucherType === "CREDIT" ? /* @__PURE__ */ s("div", { class: "jex-magicline-voucher-credit-notice", role: "note", children: x.magiclineVoucherCreditNotice }) : null,
9487
9495
  /* @__PURE__ */ s("dl", { class: "jex-magicline-summary jex-magicline-summary-section", children: [
@@ -9646,7 +9654,7 @@ function Hr({ title: t, text: e, attachmentLabel: n, attachmentUrl: i }) {
9646
9654
  ] })
9647
9655
  ] });
9648
9656
  }
9649
- function Te({
9657
+ function Ie({
9650
9658
  label: t,
9651
9659
  value: e,
9652
9660
  fieldKey: n,
@@ -9714,7 +9722,7 @@ function Ch(t) {
9714
9722
  return t === null ? [] : t.split(`
9715
9723
  `).map((e) => e.replace(/^\s*[-•]\s*/, "").trim()).filter((e) => e !== "");
9716
9724
  }
9717
- function Rh(t) {
9725
+ function Th(t) {
9718
9726
  const e = [], n = /* @__PURE__ */ new Map();
9719
9727
  for (const i of t) {
9720
9728
  let r = n.get(i.bundleId);
@@ -9729,7 +9737,7 @@ function Rh(t) {
9729
9737
  }
9730
9738
  return e;
9731
9739
  }
9732
- function Ih(t, e) {
9740
+ function Rh(t, e) {
9733
9741
  switch (t) {
9734
9742
  case "offer":
9735
9743
  return e.magiclineStepOffer;
@@ -9747,7 +9755,7 @@ function Ih(t, e) {
9747
9755
  return "";
9748
9756
  }
9749
9757
  }
9750
- function Th(t, e) {
9758
+ function Ih(t, e) {
9751
9759
  return t === "MALE" ? e.magiclineGenderMale : t === "FEMALE" ? e.magiclineGenderFemale : e.magiclineGenderUnisex;
9752
9760
  }
9753
9761
  function Ah({ message: t, sessionId: e, visitorId: n }) {
@@ -9772,8 +9780,8 @@ function Ah({ message: t, sessionId: e, visitorId: n }) {
9772
9780
  return /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted", children: [
9773
9781
  /* @__PURE__ */ s("span", { class: "jex-inline-form-check", children: "✓" }),
9774
9782
  /* @__PURE__ */ s("div", { children: [
9775
- /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-title", children: i.magiclineSubmitted }),
9776
- /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-detail", children: i.magiclineSubmittedDetail })
9783
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-title", children: i.magiclineTrialSuccessTitle }),
9784
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-submitted-detail", children: i.magiclineTrialSuccessDetail })
9777
9785
  ] })
9778
9786
  ] });
9779
9787
  if (r.status === "failed")
@@ -9804,8 +9812,8 @@ const Eh = {
9804
9812
  snippet: "💡",
9805
9813
  qa: "❓"
9806
9814
  };
9807
- function qh({ sources: t }) {
9808
- const e = j(), [n, i] = I(!1);
9815
+ function Ph({ sources: t }) {
9816
+ const e = j(), [n, i] = R(!1);
9809
9817
  return t.length === 0 ? null : /* @__PURE__ */ s("div", { class: "jex-sources-row", children: [
9810
9818
  /* @__PURE__ */ s(
9811
9819
  "button",
@@ -9827,7 +9835,7 @@ function qh({ sources: t }) {
9827
9835
  }
9828
9836
  ),
9829
9837
  n ? /* @__PURE__ */ s("div", { class: "jex-sources-pills", children: t.map((r, o) => {
9830
- const a = r.sourceType === "crawl", l = Ph(r), c = a && r.url ? `${r.title}
9838
+ const a = r.sourceType === "crawl", l = qh(r), c = a && r.url ? `${r.title}
9831
9839
  ${r.url}` : r.title, u = /* @__PURE__ */ s(O, { children: [
9832
9840
  typeof r.id == "number" ? /* @__PURE__ */ s("span", { class: "jex-source-id", children: r.id }) : null,
9833
9841
  /* @__PURE__ */ s("span", { class: "jex-source-type", children: Eh[r.sourceType] }),
@@ -9852,7 +9860,7 @@ ${r.url}` : r.title, u = /* @__PURE__ */ s(O, { children: [
9852
9860
  }) }) : null
9853
9861
  ] });
9854
9862
  }
9855
- function Ph(t) {
9863
+ function qh(t) {
9856
9864
  if (t.sourceType === "crawl" && t.url)
9857
9865
  try {
9858
9866
  const e = new URL(t.url);
@@ -9873,13 +9881,13 @@ function Wr(t) {
9873
9881
  return t.replace(Mh, "");
9874
9882
  }
9875
9883
  function Lh({ conversations: t, greeting: e, botName: n, starterQuestions: i, onPickStarter: r, sessionNotFound: o, resumeFailed: a, onStartFresh: l, sessionId: c, visitorId: u }) {
9876
- const d = j(), h = Ee(null), [g, p] = I(null), m = Ee(null);
9877
- q(() => {
9884
+ const d = j(), h = Ee(null), [g, p] = R(null), m = Ee(null);
9885
+ P(() => {
9878
9886
  if (!u || !t || t.length === 0)
9879
9887
  return;
9880
9888
  const f = t[t.length - 1];
9881
- f.role === "assistant" && f.status !== "streaming" && f._id !== m.current && (m.current = f._id, Ti(u));
9882
- }, [t, u]), q(() => {
9889
+ f.role === "assistant" && f.status !== "streaming" && f._id !== m.current && (m.current = f._id, Ii(u));
9890
+ }, [t, u]), P(() => {
9883
9891
  h.current?.scrollIntoView({ behavior: "smooth" });
9884
9892
  }, [t?.length, t?.at(-1)?.content]);
9885
9893
  const v = c === null || t !== void 0 && t.length === 0, x = i.length > 0 && !o && !a && v;
@@ -9909,8 +9917,8 @@ function Lh({ conversations: t, greeting: e, botName: n, starterQuestions: i, on
9909
9917
  ] }) : o ? /* @__PURE__ */ s("div", { class: "jex-session-notice", children: d.sessionNotFound }) : null,
9910
9918
  t?.map((f) => {
9911
9919
  if (f.contentType === "human-notice") {
9912
- const T = f.noticeKind === "agent-joined" ? d.noticeAgentJoined.replace("{name}", f.noticeData?.agentName ?? "") : f.noticeKind === "human-requested" ? d.noticeHumanRequested : f.noticeKind === "human-requested-form" ? d.noticeHumanRequestedForm : f.noticeKind === "message-received" ? d.noticeMessageReceived : f.noticeKind === "agent-handling" ? d.noticeAgentHandling : f.content;
9913
- return /* @__PURE__ */ s(ut, { text: T, botName: n }, f._id);
9920
+ const I = f.noticeKind === "agent-joined" ? d.noticeAgentJoined.replace("{name}", f.noticeData?.agentName ?? "") : f.noticeKind === "human-requested" ? d.noticeHumanRequested : f.noticeKind === "human-requested-form" ? d.noticeHumanRequestedForm : f.noticeKind === "message-received" ? d.noticeMessageReceived : f.noticeKind === "agent-handling" ? d.noticeAgentHandling : f.content;
9921
+ return /* @__PURE__ */ s(ut, { text: I, botName: n }, f._id);
9914
9922
  }
9915
9923
  if (f.contentType === "escalation-form" && c && u)
9916
9924
  return Vc.value === "screen" && !f.formData ? g === f._id ? null : /* @__PURE__ */ s("div", { class: "jex-inline-form jex-inline-form-card", children: [
@@ -9942,8 +9950,8 @@ function Lh({ conversations: t, greeting: e, botName: n, starterQuestions: i, on
9942
9950
  if (f.contentType === "magicline-form" && c && u)
9943
9951
  return /* @__PURE__ */ s(Ah, { message: f, sessionId: c, visitorId: u }, f._id);
9944
9952
  if (f.contentType === "escalation-confirm") {
9945
- const T = f.noticeKind === "escalation-confirmed" ? d.noticeEscalationConfirmed.replace("{name}", f.noticeData?.visitorName ?? "").replace("{email}", f.noticeData?.visitorEmail ?? "").replace("{ref}", f.noticeData?.visitorId ?? "") : f.content;
9946
- return /* @__PURE__ */ s(ut, { text: T, botName: n }, f._id);
9953
+ const I = f.noticeKind === "escalation-confirmed" ? d.noticeEscalationConfirmed.replace("{name}", f.noticeData?.visitorName ?? "").replace("{email}", f.noticeData?.visitorEmail ?? "").replace("{ref}", f.noticeData?.visitorId ?? "") : f.content;
9954
+ return /* @__PURE__ */ s(ut, { text: I, botName: n }, f._id);
9947
9955
  }
9948
9956
  if (f.role === "user")
9949
9957
  return /* @__PURE__ */ s(Sd, { text: f.content }, f._id);
@@ -9963,15 +9971,15 @@ function Lh({ conversations: t, greeting: e, botName: n, starterQuestions: i, on
9963
9971
  f._id
9964
9972
  ) : /* @__PURE__ */ s("div", { children: [
9965
9973
  /* @__PURE__ */ s(ut, { text: Wr(f.content), botName: n, ...b }),
9966
- f.sources && f.sources.length > 0 ? /* @__PURE__ */ s(qh, { sources: f.sources }) : null
9974
+ f.sources && f.sources.length > 0 ? /* @__PURE__ */ s(Ph, { sources: f.sources }) : null
9967
9975
  ] }, f._id);
9968
9976
  }),
9969
9977
  /* @__PURE__ */ s("div", { ref: h })
9970
9978
  ] });
9971
9979
  }
9972
- function Pa({ message: t }) {
9973
- const [e, n] = I(!1);
9974
- return q(() => {
9980
+ function qa({ message: t }) {
9981
+ const [e, n] = R(!1);
9982
+ return P(() => {
9975
9983
  const i = setTimeout(() => {
9976
9984
  n(!0);
9977
9985
  }, 80);
@@ -10002,16 +10010,16 @@ function $h({ greeting: t, botName: e, starterQuestions: n, sessionId: i, visito
10002
10010
  const h = j(), { conversations: g, sessionStatus: p, isLoading: m, isStreaming: v } = zh({ sessionId: i, visitorId: r }), x = ha({ sessionId: i, visitorId: r, ensureSession: u }), f = Ee(
10003
10011
  (() => {
10004
10012
  const b = zt.peek();
10005
- return b !== null ? b : Ii.peek() && Pe.peek() !== null ? "resume" : "fresh";
10013
+ return b !== null ? b : Ri.peek() && qe.peek() !== null ? "resume" : "fresh";
10006
10014
  })()
10007
10015
  ).current;
10008
- return q(() => {
10016
+ return P(() => {
10009
10017
  zt.value = null;
10010
- }, []), q(() => {
10011
- Pe.peek() !== null && u();
10012
- }, [u]), q(() => {
10013
- r && Ti(r);
10014
- }, [r]), c ? /* @__PURE__ */ s("div", { class: "jex-chat-messages", children: /* @__PURE__ */ s("div", { class: "jex-session-notice", children: h.chatNoLongerAvailable }) }) : f === "resume" && (!i || m) ? /* @__PURE__ */ s(Pa, { message: h.resumeConversation }) : /* @__PURE__ */ s(O, { children: [
10018
+ }, []), P(() => {
10019
+ qe.peek() !== null && u();
10020
+ }, [u]), P(() => {
10021
+ r && Ii(r);
10022
+ }, [r]), c ? /* @__PURE__ */ s("div", { class: "jex-chat-messages", children: /* @__PURE__ */ s("div", { class: "jex-session-notice", children: h.chatNoLongerAvailable }) }) : f === "resume" && (!i || m) ? /* @__PURE__ */ s(qa, { message: h.resumeConversation }) : /* @__PURE__ */ s(O, { children: [
10015
10023
  /* @__PURE__ */ s(
10016
10024
  Lh,
10017
10025
  {
@@ -10030,7 +10038,7 @@ function $h({ greeting: t, botName: e, starterQuestions: n, sessionId: i, visito
10030
10038
  }
10031
10039
  ),
10032
10040
  /* @__PURE__ */ s(
10033
- Ru,
10041
+ Tu,
10034
10042
  {
10035
10043
  sessionId: i,
10036
10044
  visitorId: r,
@@ -10044,7 +10052,7 @@ function $h({ greeting: t, botName: e, starterQuestions: n, sessionId: i, visito
10044
10052
  ] });
10045
10053
  }
10046
10054
  function Oh({ formMessageId: t, sessionId: e, visitorId: n }) {
10047
- const i = j(), r = en.value, o = /^https?:\/\//i.test(r) ? r : Xt, [a, l] = I(""), [c, u] = I(""), d = ja(), [h, g] = I(!1), [p, m] = I(null);
10055
+ const i = j(), r = en.value, o = /^https?:\/\//i.test(r) ? r : Xt, [a, l] = R(""), [c, u] = R(""), d = ja(), [h, g] = R(!1), [p, m] = R(null);
10048
10056
  async function v(x) {
10049
10057
  x.preventDefault(), g(!0), m(null);
10050
10058
  try {
@@ -10112,7 +10120,7 @@ function Dh() {
10112
10120
  return Jt(pe.functions.chat.public.helpdesk.createEscalationRequest);
10113
10121
  }
10114
10122
  function Kr({ sessionId: t, visitorId: e, ensureSession: n }) {
10115
- const i = j(), [r, o] = I(!1), [a, l] = I(null), c = Dh();
10123
+ const i = j(), [r, o] = R(!1), [a, l] = R(null), c = Dh();
10116
10124
  async function u() {
10117
10125
  if (!r) {
10118
10126
  o(!0), l(null);
@@ -10212,10 +10220,10 @@ function Fh(t, e) {
10212
10220
  } catch (b) {
10213
10221
  if (!Na(b))
10214
10222
  throw b;
10215
- const T = await Bh();
10216
- if (!T.ok)
10217
- return ht.value = T.reason === "rate_limited" ? "network" : "unauthorized", null;
10218
- x = await l(v(T.token));
10223
+ const I = await Bh();
10224
+ if (!I.ok)
10225
+ return ht.value = I.reason === "rate_limited" ? "network" : "unauthorized", null;
10226
+ x = await l(v(I.token));
10219
10227
  }
10220
10228
  } finally {
10221
10229
  ui.value = !1;
@@ -10229,7 +10237,7 @@ function Fh(t, e) {
10229
10237
  if (o.value)
10230
10238
  return null;
10231
10239
  i.value = !0;
10232
- const p = Pe.value !== null, m = Pe.value ?? Sr();
10240
+ const p = qe.value !== null, m = qe.value ?? Sr();
10233
10241
  try {
10234
10242
  const v = await c(m);
10235
10243
  return v ? (p && v.result.isNew && (r.value = !0, o.value = !0), v.session) : null;
@@ -10239,11 +10247,11 @@ function Fh(t, e) {
10239
10247
  i.value = !1;
10240
10248
  }
10241
10249
  }, [t, e, l, i, r, o]), d = N(() => {
10242
- n.current = null, r.value = !1, o.value = !1, qr();
10250
+ n.current = null, r.value = !1, o.value = !1, Pr();
10243
10251
  }, [r, o]);
10244
- q(() => Hc(d), [d]);
10252
+ P(() => Hc(d), [d]);
10245
10253
  const h = N(async () => {
10246
- n.current = null, o.value = !1, r.value = !1, qr();
10254
+ n.current = null, o.value = !1, r.value = !1, Pr();
10247
10255
  const p = Sr();
10248
10256
  i.value = !0;
10249
10257
  try {
@@ -10268,7 +10276,7 @@ function Fh(t, e) {
10268
10276
  };
10269
10277
  }
10270
10278
  function Vh() {
10271
- const t = j(), [e, n] = I(""), [i, r] = I(""), [o, a] = I("");
10279
+ const t = j(), [e, n] = R(""), [i, r] = R(""), [o, a] = R("");
10272
10280
  async function l(c) {
10273
10281
  c.preventDefault(), ci({ id: "loading", message: t.submittingTicket }), await new Promise((d) => {
10274
10282
  setTimeout(d, 1200);
@@ -10386,7 +10394,7 @@ function Jr({ greeting: t, starterQuestions: e, title: n, botName: i, sessionId:
10386
10394
  startFresh: h
10387
10395
  }
10388
10396
  ),
10389
- m.id === "loading" && /* @__PURE__ */ s(Pa, { message: m.message }),
10397
+ m.id === "loading" && /* @__PURE__ */ s(qa, { message: m.message }),
10390
10398
  m.id === "error" && /* @__PURE__ */ s(
10391
10399
  Hh,
10392
10400
  {
@@ -10405,26 +10413,26 @@ function Wh({ options: t }) {
10405
10413
  convexUrl: t.convexUrl,
10406
10414
  preAllowedUrls: t.allowedUrls ?? [],
10407
10415
  preExcludedPaths: t.excludePaths
10408
- }), Pc() ? /* @__PURE__ */ s(Kh, { options: t }) : null;
10416
+ }), qc() ? /* @__PURE__ */ s(Kh, { options: t }) : null;
10409
10417
  }
10410
10418
  function Kh({ options: t }) {
10411
- const e = Ic(t.orgSlug, t.projSlug, t.convexUrl);
10412
- $c(t.parentOrigin), q(() => {
10419
+ const e = Rc(t.orgSlug, t.projSlug, t.convexUrl);
10420
+ $c(t.parentOrigin), P(() => {
10413
10421
  Bc(), Fc();
10414
10422
  }, []);
10415
10423
  const { sessionId: n, visitorId: i, isLoading: r, sessionNotFound: o, resumeFailed: a, isOrgDeleted: l, ensureSession: c, startFresh: u, resetSession: d } = Fh(t.orgSlug, t.projSlug), h = Sc(t, e);
10416
- q(() => {
10424
+ P(() => {
10417
10425
  Ne.value = na(h.locale);
10418
- }, [h.locale]), q(() => {
10426
+ }, [h.locale]), P(() => {
10419
10427
  en.value = h.privacyPolicyUrl ?? Xt, Ci.value = h.privacyNoticeStyle;
10420
- }, [h.privacyNoticeStyle, h.privacyPolicyUrl]), q(() => {
10428
+ }, [h.privacyNoticeStyle, h.privacyPolicyUrl]), P(() => {
10421
10429
  if (!F.value || h.mode === "embedded" || !window.matchMedia("(max-width: 480px), (pointer: coarse) and (max-width: 768px)").matches)
10422
10430
  return;
10423
10431
  const M = document.documentElement.style.overflow;
10424
10432
  return document.documentElement.style.overflow = "hidden", () => {
10425
10433
  document.documentElement.style.overflow = M;
10426
10434
  };
10427
- }, [F.value, h.mode]), q(() => {
10435
+ }, [F.value, h.mode]), P(() => {
10428
10436
  if (h.mode !== "embedded")
10429
10437
  try {
10430
10438
  return Gc();
@@ -10442,15 +10450,15 @@ function Kh({ options: t }) {
10442
10450
  borderRadius: h.borderRadius,
10443
10451
  windowWidth: h.windowWidth,
10444
10452
  windowHeight: h.windowHeight
10445
- }), v = h.mode === "embedded", x = ue.value, f = x[x.length - 1]?.id === "chat", b = e !== null || v || !!t.parentOrigin, T = b ? m : { ...m, visibility: "hidden" }, z = au(t.orgSlug, t.projSlug);
10446
- return q(() => {
10453
+ }), v = h.mode === "embedded", x = ue.value, f = x[x.length - 1]?.id === "chat", b = e !== null || v || !!t.parentOrigin, I = b ? m : { ...m, visibility: "hidden" }, z = au(t.orgSlug, t.projSlug);
10454
+ return P(() => {
10447
10455
  if (v || !b || h.proactiveMode === "off" || Ar(z))
10448
10456
  return;
10449
10457
  const M = window.setTimeout(() => {
10450
10458
  const $ = lu({
10451
10459
  mode: h.proactiveMode,
10452
10460
  isOpen: F.peek(),
10453
- hasHistory: Ii.peek(),
10461
+ hasHistory: Ri.peek(),
10454
10462
  dismissed: Ar(z)
10455
10463
  });
10456
10464
  $ === "teaser" ? kn.value = !0 : $ === "open" && (F.value = !0);
@@ -10462,10 +10470,10 @@ function Kh({ options: t }) {
10462
10470
  "div",
10463
10471
  {
10464
10472
  class: `jex-widget ${p}`.trim(),
10465
- style: T,
10473
+ style: I,
10466
10474
  children: v ? /* @__PURE__ */ s("div", { class: "jex-embedded", children: [
10467
10475
  /* @__PURE__ */ s(
10468
- Ir,
10476
+ Rr,
10469
10477
  {
10470
10478
  title: h.title,
10471
10479
  rightAction: f ? /* @__PURE__ */ s(Kr, { sessionId: n, visitorId: i, ensureSession: c }) : null,
@@ -10492,11 +10500,11 @@ function Kh({ options: t }) {
10492
10500
  resetSession: d
10493
10501
  }
10494
10502
  ),
10495
- !h.hideBranding && /* @__PURE__ */ s(Tr, {})
10503
+ !h.hideBranding && /* @__PURE__ */ s(Ir, {})
10496
10504
  ] }) : /* @__PURE__ */ s("div", { class: `jex-container${g ? " jex-pos-left" : ""}`, children: [
10497
10505
  F.value && /* @__PURE__ */ s("div", { class: "jex-chat-window", children: [
10498
10506
  /* @__PURE__ */ s(
10499
- Ir,
10507
+ Rr,
10500
10508
  {
10501
10509
  title: h.title,
10502
10510
  rightAction: f ? /* @__PURE__ */ s(Kr, { sessionId: n, visitorId: i, ensureSession: c }) : null
@@ -10522,7 +10530,7 @@ function Kh({ options: t }) {
10522
10530
  resetSession: d
10523
10531
  }
10524
10532
  ),
10525
- !h.hideBranding && /* @__PURE__ */ s(Tr, {})
10533
+ !h.hideBranding && /* @__PURE__ */ s(Ir, {})
10526
10534
  ] }),
10527
10535
  kn.value && !F.value && /* @__PURE__ */ s(cu, { title: h.title, message: h.greeting, guardKey: z }),
10528
10536
  /* @__PURE__ */ s(
@@ -10591,15 +10599,15 @@ function ep(t, e, n) {
10591
10599
  }
10592
10600
  };
10593
10601
  }
10594
- let Tt = null;
10602
+ let It = null;
10595
10603
  function tp(t) {
10596
- Tt && Tt.shutdown();
10604
+ It && It.shutdown();
10597
10605
  let e;
10598
10606
  t.container ? e = typeof t.container == "string" ? document.querySelector(t.container) : t.container : (e = document.createElement("div"), e.id = "jexity-chat-widget", document.body.appendChild(e));
10599
10607
  const n = ep(e, t, () => {
10600
- t.container || e.remove(), Tt === n && (Tt = null);
10608
+ t.container || e.remove(), It === n && (It = null);
10601
10609
  });
10602
- return Tt = n, n;
10610
+ return It = n, n;
10603
10611
  }
10604
10612
  const np = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10605
10613
  __proto__: null,