@evelan/jexity-widget 0.27.0-canary.63 → 0.27.0-canary.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var rr, E, ws, ks, It, Go, _s, js, hi, Cr, Bn, Ss, io, Ei, Ii, Ts, Pr = {}, Nr = [], Mc = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ir = Array.isArray;
1
+ var rr, E, ws, ks, It, Go, _s, js, hi, Cr, Bn, Ss, io, Ei, Ii, Ts, Pr = {}, Nr = [], Oc = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ir = Array.isArray;
2
2
  function ft(t, e) {
3
3
  for (var n in e) t[n] = e[n];
4
4
  return t;
@@ -16,7 +16,7 @@ function Un(t, e, n, r, i) {
16
16
  var o = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i ?? ++ws, __i: -1, __u: 0 };
17
17
  return i == null && E.vnode != null && E.vnode(o), o;
18
18
  }
19
- function Oc() {
19
+ function Lc() {
20
20
  return { current: null };
21
21
  }
22
22
  function ee(t) {
@@ -30,7 +30,7 @@ function gn(t, e) {
30
30
  for (var n; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) return n.__e;
31
31
  return typeof t.type == "function" ? gn(t) : null;
32
32
  }
33
- function Lc(t) {
33
+ function $c(t) {
34
34
  if (t.__P && t.__d) {
35
35
  var e = t.__v, n = e.__e, r = [], i = [], o = ft({}, e);
36
36
  o.__v = e.__v + 1, E.vnode && E.vnode(o), ao(t.__P, o, e, t.__n, t.__P.namespaceURI, 32 & e.__u ? [n] : null, r, n ?? gn(e), !!(32 & e.__u), i), o.__v = e.__v, o.__.__k[o.__i] = o, Es(r, o, i), e.__e = e.__ = null, o.__e != n && Cs(o);
@@ -46,20 +46,20 @@ function Pi(t) {
46
46
  }
47
47
  function Mr() {
48
48
  try {
49
- for (var t, e = 1; It.length; ) It.length > e && It.sort(js), t = It.shift(), e = It.length, Lc(t);
49
+ for (var t, e = 1; It.length; ) It.length > e && It.sort(js), t = It.shift(), e = It.length, $c(t);
50
50
  } finally {
51
51
  It.length = Mr.__r = 0;
52
52
  }
53
53
  }
54
- function As(t, e, n, r, i, o, a, l, c, u, h) {
55
- var m, d, p, b, S, y, x, k = r && r.__k || Nr, A = e.length;
56
- for (c = $c(n, e, k, c, A), m = 0; m < A; m++) (p = n.__k[m]) != null && (d = p.__i != -1 && k[p.__i] || Pr, p.__i = m, y = ao(t, p, d, i, o, a, l, c, u, h), b = p.__e, p.ref && d.ref != p.ref && (d.ref && so(d.ref, null, p), h.push(p.ref, p.__c || b, p)), S == null && b != null && (S = b), (x = !!(4 & p.__u)) || d.__k === p.__k ? (c = Rs(p, c, t, x), x && d.__e && (d.__e = null)) : typeof p.type == "function" && y !== void 0 ? c = y : b && (c = b.nextSibling), p.__u &= -7);
54
+ function As(t, e, n, r, i, o, a, l, c, u, d) {
55
+ var m, h, p, b, S, y, x, k = r && r.__k || Nr, A = e.length;
56
+ for (c = Dc(n, e, k, c, A), m = 0; m < A; m++) (p = n.__k[m]) != null && (h = p.__i != -1 && k[p.__i] || Pr, p.__i = m, y = ao(t, p, h, i, o, a, l, c, u, d), b = p.__e, p.ref && h.ref != p.ref && (h.ref && so(h.ref, null, p), d.push(p.ref, p.__c || b, p)), S == null && b != null && (S = b), (x = !!(4 & p.__u)) || h.__k === p.__k ? (c = Rs(p, c, t, x), x && h.__e && (h.__e = null)) : typeof p.type == "function" && y !== void 0 ? c = y : b && (c = b.nextSibling), p.__u &= -7);
57
57
  return n.__e = S, c;
58
58
  }
59
- function $c(t, e, n, r, i) {
60
- var o, a, l, c, u, h = n.length, m = h, d = 0;
61
- for (t.__k = new Array(i), o = 0; o < i; o++) (a = e[o]) != null && typeof a != "boolean" && typeof a != "function" ? (typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? a = t.__k[o] = Un(null, a, null, null, null) : ir(a) ? a = t.__k[o] = Un(ee, { children: a }, null, null, null) : a.constructor === void 0 && a.__b > 0 ? a = t.__k[o] = Un(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : t.__k[o] = a, c = o + d, a.__ = t, a.__b = t.__b + 1, l = null, (u = a.__i = Dc(a, n, c, m)) != -1 && (m--, (l = n[u]) && (l.__u |= 2)), l == null || l.__v == null ? (u == -1 && (i > h ? d-- : i < h && d++), typeof a.type != "function" && (a.__u |= 4)) : u != c && (u == c - 1 ? d-- : u == c + 1 ? d++ : (u > c ? d-- : d++, a.__u |= 4))) : t.__k[o] = null;
62
- if (m) for (o = 0; o < h; o++) (l = n[o]) != null && (2 & l.__u) == 0 && (l.__e == r && (r = gn(l)), Ps(l, l));
59
+ function Dc(t, e, n, r, i) {
60
+ var o, a, l, c, u, d = n.length, m = d, h = 0;
61
+ for (t.__k = new Array(i), o = 0; o < i; o++) (a = e[o]) != null && typeof a != "boolean" && typeof a != "function" ? (typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? a = t.__k[o] = Un(null, a, null, null, null) : ir(a) ? a = t.__k[o] = Un(ee, { children: a }, null, null, null) : a.constructor === void 0 && a.__b > 0 ? a = t.__k[o] = Un(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : t.__k[o] = a, c = o + h, a.__ = t, a.__b = t.__b + 1, l = null, (u = a.__i = qc(a, n, c, m)) != -1 && (m--, (l = n[u]) && (l.__u |= 2)), l == null || l.__v == null ? (u == -1 && (i > d ? h-- : i < d && h++), typeof a.type != "function" && (a.__u |= 4)) : u != c && (u == c - 1 ? h-- : u == c + 1 ? h++ : (u > c ? h-- : h++, a.__u |= 4))) : t.__k[o] = null;
62
+ if (m) for (o = 0; o < d; o++) (l = n[o]) != null && (2 & l.__u) == 0 && (l.__e == r && (r = gn(l)), Ps(l, l));
63
63
  return r;
64
64
  }
65
65
  function Rs(t, e, n, r) {
@@ -79,16 +79,16 @@ function mt(t, e) {
79
79
  mt(n, e);
80
80
  }) : e.push(t)), e;
81
81
  }
82
- function Dc(t, e, n, r) {
83
- var i, o, a, l = t.key, c = t.type, u = e[n], h = u != null && (2 & u.__u) == 0;
84
- if (u === null && l == null || h && l == u.key && c == u.type) return n;
85
- if (r > (h ? 1 : 0)) {
82
+ function qc(t, e, n, r) {
83
+ var i, o, a, l = t.key, c = t.type, u = e[n], d = u != null && (2 & u.__u) == 0;
84
+ if (u === null && l == null || d && l == u.key && c == u.type) return n;
85
+ if (r > (d ? 1 : 0)) {
86
86
  for (i = n - 1, o = n + 1; i >= 0 || o < e.length; ) if ((u = e[a = i >= 0 ? i-- : o++]) != null && (2 & u.__u) == 0 && l == u.key && c == u.type) return a;
87
87
  }
88
88
  return -1;
89
89
  }
90
90
  function Ko(t, e, n) {
91
- e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || Mc.test(e) ? n : n + "px";
91
+ e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || Oc.test(e) ? n : n + "px";
92
92
  }
93
93
  function yr(t, e, n, r, i) {
94
94
  var o, a;
@@ -119,29 +119,29 @@ function Yo(t) {
119
119
  };
120
120
  }
121
121
  function ao(t, e, n, r, i, o, a, l, c, u) {
122
- var h, m, d, p, b, S, y, x, k, A, N, P, I, L, v, ie, D = e.type;
122
+ var d, m, h, p, b, S, y, x, k, A, N, P, I, L, v, ie, D = e.type;
123
123
  if (e.constructor !== void 0) return null;
124
- 128 & n.__u && (c = !!(32 & n.__u), o = [l = e.__e = n.__e]), (h = E.__b) && h(e);
124
+ 128 & n.__u && (c = !!(32 & n.__u), o = [l = e.__e = n.__e]), (d = E.__b) && d(e);
125
125
  e: if (typeof D == "function") {
126
126
  m = a.length;
127
127
  try {
128
- if (k = e.props, A = D.prototype && D.prototype.render, N = (h = D.contextType) && r[h.__c], P = h ? N ? N.props.value : h.__ : r, n.__c ? x = (d = e.__c = n.__c).__ = d.__E : (A ? e.__c = d = new D(k, P) : (e.__c = d = new rt(k, P), d.constructor = D, d.render = zc), N && N.sub(d), d.state || (d.state = {}), d.__n = r, p = d.__d = !0, d.__h = [], d._sb = []), A && d.__s == null && (d.__s = d.state), A && D.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = ft({}, d.__s)), ft(d.__s, D.getDerivedStateFromProps(k, d.__s))), b = d.props, S = d.state, d.__v = e, p) A && D.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), A && d.componentDidMount != null && d.__h.push(d.componentDidMount);
128
+ if (k = e.props, A = D.prototype && D.prototype.render, N = (d = D.contextType) && r[d.__c], P = d ? N ? N.props.value : d.__ : r, n.__c ? x = (h = e.__c = n.__c).__ = h.__E : (A ? e.__c = h = new D(k, P) : (e.__c = h = new rt(k, P), h.constructor = D, h.render = Fc), N && N.sub(h), h.state || (h.state = {}), h.__n = r, p = h.__d = !0, h.__h = [], h._sb = []), A && h.__s == null && (h.__s = h.state), A && D.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = ft({}, h.__s)), ft(h.__s, D.getDerivedStateFromProps(k, h.__s))), b = h.props, S = h.state, h.__v = e, p) A && D.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), A && h.componentDidMount != null && h.__h.push(h.componentDidMount);
129
129
  else {
130
- if (A && D.getDerivedStateFromProps == null && k !== b && d.componentWillReceiveProps != null && d.componentWillReceiveProps(k, P), e.__v == n.__v || !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(k, d.__s, P) === !1) {
131
- e.__v != n.__v && (d.props = k, d.state = d.__s, d.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(K) {
130
+ if (A && D.getDerivedStateFromProps == null && k !== b && h.componentWillReceiveProps != null && h.componentWillReceiveProps(k, P), e.__v == n.__v || !h.__e && h.shouldComponentUpdate != null && h.shouldComponentUpdate(k, h.__s, P) === !1) {
131
+ e.__v != n.__v && (h.props = k, h.state = h.__s, h.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(K) {
132
132
  K && (K.__ = e);
133
- }), Nr.push.apply(d.__h, d._sb), d._sb = [], d.__h.length && a.push(d);
133
+ }), Nr.push.apply(h.__h, h._sb), h._sb = [], h.__h.length && a.push(h);
134
134
  break e;
135
135
  }
136
- d.componentWillUpdate != null && d.componentWillUpdate(k, d.__s, P), A && d.componentDidUpdate != null && d.__h.push(function() {
137
- d.componentDidUpdate(b, S, y);
136
+ h.componentWillUpdate != null && h.componentWillUpdate(k, h.__s, P), A && h.componentDidUpdate != null && h.__h.push(function() {
137
+ h.componentDidUpdate(b, S, y);
138
138
  });
139
139
  }
140
- if (d.context = P, d.props = k, d.__P = t, d.__e = !1, I = E.__r, L = 0, A) d.state = d.__s, d.__d = !1, I && I(e), h = d.render(d.props, d.state, d.context), Nr.push.apply(d.__h, d._sb), d._sb = [];
140
+ if (h.context = P, h.props = k, h.__P = t, h.__e = !1, I = E.__r, L = 0, A) h.state = h.__s, h.__d = !1, I && I(e), d = h.render(h.props, h.state, h.context), Nr.push.apply(h.__h, h._sb), h._sb = [];
141
141
  else do
142
- d.__d = !1, I && I(e), h = d.render(d.props, d.state, d.context), d.state = d.__s;
143
- while (d.__d && ++L < 25);
144
- d.state = d.__s, d.getChildContext != null && (r = ft(ft({}, r), d.getChildContext())), A && !p && d.getSnapshotBeforeUpdate != null && (y = d.getSnapshotBeforeUpdate(b, S)), v = h != null && h.type === ee && h.key == null ? Is(h.props.children) : h, l = As(t, ir(v) ? v : [v], e, n, r, i, o, a, l, c, u), d.base = e.__e, e.__u &= -161, d.__h.length && a.push(d), x && (d.__E = d.__ = null);
142
+ h.__d = !1, I && I(e), d = h.render(h.props, h.state, h.context), h.state = h.__s;
143
+ while (h.__d && ++L < 25);
144
+ h.state = h.__s, h.getChildContext != null && (r = ft(ft({}, r), h.getChildContext())), A && !p && h.getSnapshotBeforeUpdate != null && (y = h.getSnapshotBeforeUpdate(b, S)), v = d != null && d.type === ee && d.key == null ? Is(d.props.children) : d, l = As(t, ir(v) ? v : [v], e, n, r, i, o, a, l, c, u), h.base = e.__e, e.__u &= -161, h.__h.length && a.push(h), x && (h.__E = h.__ = null);
145
145
  } catch (K) {
146
146
  if (a.length = m, e.__v = null, c || o != null) if (K.then) {
147
147
  for (e.__u |= c ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
@@ -153,8 +153,8 @@ function ao(t, e, n, r, i, o, a, l, c, u) {
153
153
  else e.__e = n.__e, !e.__k && n.__k && (e.__k = n.__k), K.then || Ni(e);
154
154
  E.__e(K, e, n);
155
155
  }
156
- } else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : l = e.__e = qc(n.__e, e, n, r, i, o, a, c, u);
157
- return (h = E.diffed) && h(e), 128 & e.__u ? void 0 : l;
156
+ } else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : l = e.__e = zc(n.__e, e, n, r, i, o, a, c, u);
157
+ return (d = E.diffed) && d(e), 128 & e.__u ? void 0 : l;
158
158
  }
159
159
  function Ni(t) {
160
160
  t && (t.__c && (t.__c.__e = !0), t.__k && t.__k.some(Ni));
@@ -174,8 +174,8 @@ function Es(t, e, n) {
174
174
  function Is(t) {
175
175
  return typeof t != "object" || t == null || t.__b > 0 ? t : ir(t) ? t.map(Is) : t.constructor !== void 0 ? null : ft({}, t);
176
176
  }
177
- function qc(t, e, n, r, i, o, a, l, c) {
178
- var u, h, m, d, p, b, S, y = n.props || Pr, x = e.props, k = e.type;
177
+ function zc(t, e, n, r, i, o, a, l, c) {
178
+ var u, d, m, h, p, b, S, y = n.props || Pr, x = e.props, k = e.type;
179
179
  if (k == "svg" ? i = "http://www.w3.org/2000/svg" : k == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i || (i = "http://www.w3.org/1999/xhtml"), o != null) {
180
180
  for (u = 0; u < o.length; u++) if ((p = o[u]) && "setAttribute" in p == !!k && (k ? p.localName == k : p.nodeType == 3)) {
181
181
  t = p, o[u] = null;
@@ -190,9 +190,9 @@ function qc(t, e, n, r, i, o, a, l, c) {
190
190
  else {
191
191
  if (o = k == "textarea" && x.defaultValue != null ? null : o && rr.call(t.childNodes), !l && o != null) for (y = {}, u = 0; u < t.attributes.length; u++) y[(p = t.attributes[u]).name] = p.value;
192
192
  for (u in y) p = y[u], u == "dangerouslySetInnerHTML" ? m = p : u == "children" || u in x || u == "value" && "defaultValue" in x || u == "checked" && "defaultChecked" in x || yr(t, u, null, p, i);
193
- for (u in x) p = x[u], u == "children" ? d = p : u == "dangerouslySetInnerHTML" ? h = p : u == "value" ? b = p : u == "checked" ? S = p : l && typeof p != "function" || y[u] === p || yr(t, u, p, y[u], i);
194
- if (h) l || m && (h.__html == m.__html || h.__html == t.innerHTML) || (t.innerHTML = h.__html), e.__k = [];
195
- else if (m && (t.innerHTML = ""), As(e.type == "template" ? t.content : t, ir(d) ? d : [d], e, n, r, k == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, o, a, o ? o[0] : n.__k && gn(n, 0), l, c), o != null) for (u = o.length; u--; ) oo(o[u]);
193
+ for (u in x) p = x[u], u == "children" ? h = p : u == "dangerouslySetInnerHTML" ? d = p : u == "value" ? b = p : u == "checked" ? S = p : l && typeof p != "function" || y[u] === p || yr(t, u, p, y[u], i);
194
+ if (d) l || m && (d.__html == m.__html || d.__html == t.innerHTML) || (t.innerHTML = d.__html), e.__k = [];
195
+ else if (m && (t.innerHTML = ""), As(e.type == "template" ? t.content : t, ir(h) ? h : [h], e, n, r, k == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, o, a, o ? o[0] : n.__k && gn(n, 0), l, c), o != null) for (u = o.length; u--; ) oo(o[u]);
196
196
  l && k != "textarea" || (u = "value", k == "progress" && b == null ? t.removeAttribute("value") : b != null && (b !== t[u] || k == "progress" && !b || k == "option" && b != y[u]) && yr(t, u, b, y[u], i), u = "checked", S != null && S != t[u] && yr(t, u, S, y[u], i));
197
197
  }
198
198
  return t;
@@ -220,7 +220,7 @@ function Ps(t, e, n) {
220
220
  if (r = t.__k) for (i = 0; i < r.length; i++) r[i] && Ps(r[i], e, n || typeof t.type != "function");
221
221
  n || oo(t.__e), t.__c = t.__ = t.__e = void 0;
222
222
  }
223
- function zc(t, e, n) {
223
+ function Fc(t, e, n) {
224
224
  return this.constructor(t, n);
225
225
  }
226
226
  function Qt(t, e, n) {
@@ -230,12 +230,12 @@ function Qt(t, e, n) {
230
230
  function Ns(t, e) {
231
231
  Qt(t, e, Ns);
232
232
  }
233
- function Fc(t, e, n) {
233
+ function Bc(t, e, n) {
234
234
  var r, i, o, a, l = ft({}, t.props);
235
235
  for (o in t.type && t.type.defaultProps && (a = t.type.defaultProps), e) o == "key" ? r = e[o] : o == "ref" ? i = e[o] : l[o] = e[o] === void 0 && a != null ? a[o] : e[o];
236
236
  return arguments.length > 2 && (l.children = arguments.length > 3 ? rr.call(arguments, 2) : n), Un(t.type, l, r || t.key, i || t.ref, null);
237
237
  }
238
- function Bc(t) {
238
+ function Uc(t) {
239
239
  function e(n) {
240
240
  var r, i;
241
241
  return this.getChildContext || (r = /* @__PURE__ */ new Set(), (i = {})[e.__c] = this, this.getChildContext = function() {
@@ -275,12 +275,12 @@ rr = Nr.slice, E = { __e: function(t, e, n, r) {
275
275
  }, rt.prototype.render = ee, It = [], _s = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, js = function(t, e) {
276
276
  return t.__v.__b - e.__v.__b;
277
277
  }, Mr.__r = 0, hi = Math.random().toString(8), Cr = "__d" + hi, Bn = "__a" + hi, Ss = /(PointerCapture)$|Capture$/i, io = 0, Ei = Yo(!1), Ii = Yo(!0), Ts = 0;
278
- var Uc = 0;
278
+ var Vc = 0;
279
279
  function s(t, e, n, r, i, o) {
280
280
  e || (e = {});
281
281
  var a, l, c = e;
282
282
  if ("ref" in c) for (l in c = {}, e) l == "ref" ? a = e[l] : c[l] = e[l];
283
- var u = { type: t, props: c, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Uc, __i: -1, __u: 0, __source: i, __self: o };
283
+ var u = { type: t, props: c, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Vc, __i: -1, __u: 0, __source: i, __self: o };
284
284
  if (typeof t == "function" && (a = t.defaultProps)) for (l in a) c[l] === void 0 && (c[l] = a[l]);
285
285
  return E.vnode && E.vnode(u), u;
286
286
  }
@@ -301,25 +301,25 @@ function Be(t, e, n) {
301
301
  }], r.__c = te, !te.__f)) {
302
302
  var i = function(l, c, u) {
303
303
  if (!r.__c.__H) return !0;
304
- var h = !1, m = r.__c.props !== l;
304
+ var d = !1, m = r.__c.props !== l;
305
305
  if (r.__c.__H.__.some(function(p) {
306
306
  if (p.__N) {
307
- h = !0;
307
+ d = !0;
308
308
  var b = p.__[0];
309
309
  p.__ = p.__N, p.__N = void 0, b !== p.__[0] && (m = !0);
310
310
  }
311
311
  }), o) {
312
- var d = o.call(this, l, c, u);
313
- return h ? d || m : d;
312
+ var h = o.call(this, l, c, u);
313
+ return d ? h || m : h;
314
314
  }
315
- return !h || m;
315
+ return !d || m;
316
316
  };
317
317
  te.__f = !0;
318
318
  var o = te.shouldComponentUpdate, a = te.componentWillUpdate;
319
319
  te.componentWillUpdate = function(l, c, u) {
320
320
  if (this.__e) {
321
- var h = o;
322
- o = void 0, i(l, c, u), o = h;
321
+ var d = o;
322
+ o = void 0, i(l, c, u), o = d;
323
323
  }
324
324
  a && a.call(this, l, c, u);
325
325
  }, te.shouldComponentUpdate = i;
@@ -400,7 +400,7 @@ se.__b = function(t) {
400
400
  }, se.diffed = function(t) {
401
401
  ea && ea(t);
402
402
  var e = t.__c;
403
- e && e.__H && (e.__H.__h.length && (Ms.push(e) !== 1 && Zo === se.requestAnimationFrame || ((Zo = se.requestAnimationFrame) || Vc)(ia)), e.__H.__.some(function(n) {
403
+ e && e.__H && (e.__H.__h.length && (Ms.push(e) !== 1 && Zo === se.requestAnimationFrame || ((Zo = se.requestAnimationFrame) || Hc)(ia)), e.__H.__.some(function(n) {
404
404
  n.u && (n.__H = n.u, n.u = void 0);
405
405
  })), fi = te = null;
406
406
  }, se.__c = function(t, e) {
@@ -427,7 +427,7 @@ se.__b = function(t) {
427
427
  }), n.__H = void 0, e && se.__e(e, n.__v));
428
428
  };
429
429
  var oa = typeof requestAnimationFrame == "function";
430
- function Vc(t) {
430
+ function Hc(t) {
431
431
  var e, n = function() {
432
432
  clearTimeout(r), oa && cancelAnimationFrame(e), setTimeout(t);
433
433
  }, r = setTimeout(n, 35);
@@ -489,7 +489,7 @@ var Hs = kn;
489
489
  function Li(t, e) {
490
490
  this.props = t, this.context = e;
491
491
  }
492
- function Hc(t, e) {
492
+ function Wc(t, e) {
493
493
  function n(i) {
494
494
  var o = this.props.ref;
495
495
  return o != i.ref && o && (typeof o == "function" ? o(null) : o.current = null), e ? !e(this.props, i) || o != i.ref : Oi(this.props, i);
@@ -506,28 +506,28 @@ var aa = E.__b;
506
506
  E.__b = function(t) {
507
507
  t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), aa && aa(t);
508
508
  };
509
- var Wc = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
510
- function Qc(t) {
509
+ var Qc = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
510
+ function Gc(t) {
511
511
  function e(n) {
512
512
  var r = zs({}, n);
513
513
  return delete r.ref, t(r, n.ref || null);
514
514
  }
515
- return e.$$typeof = Wc, e.render = t, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
515
+ return e.$$typeof = Qc, e.render = t, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
516
516
  }
517
517
  var sa = function(t, e) {
518
518
  return t == null ? null : mt(mt(t).map(e));
519
- }, Gc = { map: sa, forEach: sa, count: function(t) {
519
+ }, Kc = { map: sa, forEach: sa, count: function(t) {
520
520
  return t ? mt(t).length : 0;
521
521
  }, only: function(t) {
522
522
  var e = mt(t);
523
523
  if (e.length !== 1) throw "Children.only";
524
524
  return e[0];
525
- }, toArray: mt }, Kc = E.__e;
525
+ }, toArray: mt }, Yc = E.__e;
526
526
  E.__e = function(t, e, n, r) {
527
527
  if (t.then) {
528
528
  for (var i, o = e; o = o.__; ) if ((i = o.__c) && i.__c) return e.__e == null && (e.__e = n.__e, e.__k = n.__k), i.__c(t, e);
529
529
  }
530
- Kc(t, e, n, r);
530
+ Yc(t, e, n, r);
531
531
  };
532
532
  var la = E.unmount;
533
533
  function Ws(t, e, n) {
@@ -549,7 +549,7 @@ function Gs(t) {
549
549
  var e = t.__ && t.__.__c;
550
550
  return e && e.__a && e.__a(t);
551
551
  }
552
- function Yc(t) {
552
+ function Zc(t) {
553
553
  var e, n, r, i = null;
554
554
  function o(a) {
555
555
  if (e || (e = t()).then(function(l) {
@@ -583,8 +583,8 @@ E.unmount = function(t) {
583
583
  var u = r.state.__a;
584
584
  r.__v.__k[0] = Qs(u, u.__c.__P, u.__c.__O);
585
585
  }
586
- var h;
587
- for (r.setState({ __a: r.__b = null }); h = r.o.pop(); ) h.__P = l, h.forceUpdate();
586
+ var d;
587
+ for (r.setState({ __a: r.__b = null }); d = r.o.pop(); ) d.__P = l, d.forceUpdate();
588
588
  }
589
589
  };
590
590
  r.__u++ || 32 & e.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), t.then(a, a);
@@ -613,12 +613,12 @@ var ca = function(t, e, n) {
613
613
  t.i = n = n[2];
614
614
  }
615
615
  };
616
- function Zc(t) {
616
+ function Jc(t) {
617
617
  return this.getChildContext = function() {
618
618
  return t.context;
619
619
  }, t.children;
620
620
  }
621
- function Jc(t) {
621
+ function Xc(t) {
622
622
  var e = this, n = t.v;
623
623
  if (e.componentWillUnmount = function() {
624
624
  Qt(null, e.h), e.h = null, e.v = null;
@@ -632,10 +632,10 @@ function Jc(t) {
632
632
  this.childNodes.splice(this.childNodes.indexOf(i) >>> 1, 1), e.v.removeChild(i);
633
633
  } };
634
634
  }
635
- Qt(Ye(Zc, { context: e.context }, t.__v), e.h);
635
+ Qt(Ye(Jc, { context: e.context }, t.__v), e.h);
636
636
  }
637
- function Xc(t, e) {
638
- var n = Ye(Jc, { __v: t, v: e });
637
+ function eu(t, e) {
638
+ var n = Ye(Xc, { __v: t, v: e });
639
639
  return n.containerInfo = e, n;
640
640
  }
641
641
  ($n.prototype = new rt()).__a = function(t) {
@@ -658,13 +658,13 @@ function Xc(t, e) {
658
658
  ca(t, n, e);
659
659
  });
660
660
  };
661
- var Ks = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, eu = /^(?: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]/, tu = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, nu = /[A-Z0-9]/g, ru = typeof document < "u", iu = function(t) {
661
+ var Ks = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, tu = /^(?: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]/, nu = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ru = /[A-Z0-9]/g, iu = typeof document < "u", ou = function(t) {
662
662
  return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
663
663
  };
664
- function ou(t, e, n) {
664
+ function au(t, e, n) {
665
665
  return e.__k == null && (e.textContent = ""), Qt(t, e), typeof n == "function" && n(), t ? t.__c : null;
666
666
  }
667
- function au(t, e, n) {
667
+ function su(t, e, n) {
668
668
  return Ns(t, e), typeof n == "function" && n(), t ? t.__c : null;
669
669
  }
670
670
  rt.prototype.isReactComponent = !0, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
@@ -683,7 +683,7 @@ E.event = function(t) {
683
683
  return this.defaultPrevented;
684
684
  }, t.nativeEvent = t;
685
685
  };
686
- var co, su = { configurable: !0, get: function() {
686
+ var co, lu = { configurable: !0, get: function() {
687
687
  return this.class;
688
688
  } }, da = E.vnode;
689
689
  E.vnode = function(t) {
@@ -691,16 +691,16 @@ E.vnode = function(t) {
691
691
  var n = e.props, r = e.type, i = {}, o = r.indexOf("-") == -1;
692
692
  for (var a in n) {
693
693
  var l = n[a];
694
- if (!(a === "value" && "defaultValue" in n && l == null || ru && a === "children" && r === "noscript" || a === "class" || a === "className")) {
694
+ if (!(a === "value" && "defaultValue" in n && l == null || iu && a === "children" && r === "noscript" || a === "class" || a === "className")) {
695
695
  var c = a.toLowerCase();
696
- a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && l === !0 ? l = "" : c === "translate" && l === "no" ? l = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? a = "ondblclick" : c !== "onchange" || r !== "input" && r !== "textarea" || iu(n.type) ? c === "onfocus" ? a = "onfocusin" : c === "onblur" ? a = "onfocusout" : tu.test(a) && (a = c) : c = a = "oninput" : o && eu.test(a) ? a = a.replace(nu, "-$&").toLowerCase() : l === null && (l = void 0), c === "oninput" && i[a = c] && (a = "oninputCapture"), i[a] = l;
696
+ a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && l === !0 ? l = "" : c === "translate" && l === "no" ? l = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? a = "ondblclick" : c !== "onchange" || r !== "input" && r !== "textarea" || ou(n.type) ? c === "onfocus" ? a = "onfocusin" : c === "onblur" ? a = "onfocusout" : nu.test(a) && (a = c) : c = a = "oninput" : o && tu.test(a) ? a = a.replace(ru, "-$&").toLowerCase() : l === null && (l = void 0), c === "oninput" && i[a = c] && (a = "oninputCapture"), i[a] = l;
697
697
  }
698
698
  }
699
699
  r == "select" && (i.multiple && Array.isArray(i.value) && (i.value = mt(n.children).forEach(function(u) {
700
700
  u.props.selected = i.value.indexOf(u.props.value) != -1;
701
701
  })), i.defaultValue != null && (i.value = mt(n.children).forEach(function(u) {
702
702
  u.props.selected = i.multiple ? i.defaultValue.indexOf(u.props.value) != -1 : i.defaultValue == u.props.value;
703
- }))), n.class && !n.className ? (i.class = n.class, Object.defineProperty(i, "className", su)) : n.className && (i.class = i.className = n.className), e.props = i;
703
+ }))), n.class && !n.className ? (i.class = n.class, Object.defineProperty(i, "className", lu)) : n.className && (i.class = i.className = n.className), e.props = i;
704
704
  })(t), t.$$typeof = Ks, da && da(t);
705
705
  };
706
706
  var ha = E.__r;
@@ -713,45 +713,45 @@ E.diffed = function(t) {
713
713
  var e = t.props, n = t.__e;
714
714
  n != null && t.type === "textarea" && "value" in e && e.value !== n.value && (n.value = e.value == null ? "" : e.value), co = null;
715
715
  };
716
- var lu = { ReactCurrentDispatcher: { current: { readContext: function(t) {
716
+ var cu = { ReactCurrentDispatcher: { current: { readContext: function(t) {
717
717
  return co.__n[t.__c].props.value;
718
718
  }, useCallback: Y, useContext: or, useDebugValue: Ls, useDeferredValue: Us, useEffect: M, useId: $s, useImperativeHandle: Os, useInsertionEffect: Hs, useLayoutEffect: kn, useMemo: be, useReducer: Be, useRef: qe, useState: F, useSyncExternalStore: Fs, useTransition: Vs } } };
719
- function cu(t) {
719
+ function uu(t) {
720
720
  return Ye.bind(null, t);
721
721
  }
722
722
  function Yr(t) {
723
723
  return !!t && t.$$typeof === Ks;
724
724
  }
725
- function uu(t) {
726
- return Yr(t) && t.type === ee;
727
- }
728
725
  function du(t) {
729
- return !!t && typeof t.displayName == "string" && t.displayName.indexOf("Memo(") == 0;
726
+ return Yr(t) && t.type === ee;
730
727
  }
731
728
  function hu(t) {
732
- return Yr(t) ? Fc.apply(null, arguments) : t;
729
+ return !!t && typeof t.displayName == "string" && t.displayName.indexOf("Memo(") == 0;
733
730
  }
734
731
  function fu(t) {
735
- return !!t.__k && (Qt(null, t), !0);
732
+ return Yr(t) ? Bc.apply(null, arguments) : t;
736
733
  }
737
734
  function pu(t) {
735
+ return !!t.__k && (Qt(null, t), !0);
736
+ }
737
+ function mu(t) {
738
738
  return t && (t.base || t.nodeType === 1 && t) || null;
739
739
  }
740
- var mu = function(t, e) {
740
+ var gu = function(t, e) {
741
741
  return t(e);
742
- }, gu = function(t, e) {
742
+ }, xu = function(t, e) {
743
743
  var n = E.debounceRendering;
744
744
  E.debounceRendering = function(i) {
745
745
  return i();
746
746
  };
747
747
  var r = t(e);
748
748
  return E.debounceRendering = n, r;
749
- }, xu = Yr, uo = { useState: F, useId: $s, useReducer: Be, useEffect: M, useLayoutEffect: kn, useInsertionEffect: Hs, useTransition: Vs, useDeferredValue: Us, useSyncExternalStore: Fs, startTransition: Bs, useRef: qe, useImperativeHandle: Os, useMemo: be, useCallback: Y, useContext: or, useDebugValue: Ls, version: "18.3.1", Children: Gc, render: ou, hydrate: au, unmountComponentAtNode: fu, createPortal: Xc, createElement: Ye, createContext: Bc, createFactory: cu, cloneElement: hu, createRef: Oc, Fragment: ee, isValidElement: Yr, isElement: xu, isFragment: uu, isMemo: du, findDOMNode: pu, Component: rt, PureComponent: Li, memo: Hc, forwardRef: Qc, flushSync: gu, unstable_batchedUpdates: mu, StrictMode: ee, Suspense: Ar, SuspenseList: $n, lazy: Yc, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: lu }, ht = [], Ge = [], bu = Uint8Array, mi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
750
- for (var sn = 0, yu = mi.length; sn < yu; ++sn)
749
+ }, bu = Yr, uo = { useState: F, useId: $s, useReducer: Be, useEffect: M, useLayoutEffect: kn, useInsertionEffect: Hs, useTransition: Vs, useDeferredValue: Us, useSyncExternalStore: Fs, startTransition: Bs, useRef: qe, useImperativeHandle: Os, useMemo: be, useCallback: Y, useContext: or, useDebugValue: Ls, version: "18.3.1", Children: Kc, render: au, hydrate: su, unmountComponentAtNode: pu, createPortal: eu, createElement: Ye, createContext: Uc, createFactory: uu, cloneElement: fu, createRef: Lc, Fragment: ee, isValidElement: Yr, isElement: bu, isFragment: du, isMemo: hu, findDOMNode: mu, Component: rt, PureComponent: Li, memo: Wc, forwardRef: Gc, flushSync: xu, unstable_batchedUpdates: gu, StrictMode: ee, Suspense: Ar, SuspenseList: $n, lazy: Zc, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: cu }, ht = [], Ge = [], yu = Uint8Array, mi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
750
+ for (var sn = 0, vu = mi.length; sn < vu; ++sn)
751
751
  ht[sn] = mi[sn], Ge[mi.charCodeAt(sn)] = sn;
752
752
  Ge[45] = 62;
753
753
  Ge[95] = 63;
754
- function vu(t) {
754
+ function wu(t) {
755
755
  var e = t.length;
756
756
  if (e % 4 > 0)
757
757
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -760,27 +760,27 @@ function vu(t) {
760
760
  var r = n === e ? 0 : 4 - n % 4;
761
761
  return [n, r];
762
762
  }
763
- function wu(t, e, n) {
763
+ function ku(t, e, n) {
764
764
  return (e + n) * 3 / 4 - n;
765
765
  }
766
766
  function Gn(t) {
767
- var e, n = vu(t), r = n[0], i = n[1], o = new bu(wu(t, r, i)), a = 0, l = i > 0 ? r - 4 : r, c;
767
+ var e, n = wu(t), r = n[0], i = n[1], o = new yu(ku(t, r, i)), a = 0, l = i > 0 ? r - 4 : r, c;
768
768
  for (c = 0; c < l; c += 4)
769
769
  e = Ge[t.charCodeAt(c)] << 18 | Ge[t.charCodeAt(c + 1)] << 12 | Ge[t.charCodeAt(c + 2)] << 6 | Ge[t.charCodeAt(c + 3)], o[a++] = e >> 16 & 255, o[a++] = e >> 8 & 255, o[a++] = e & 255;
770
770
  return i === 2 && (e = Ge[t.charCodeAt(c)] << 2 | Ge[t.charCodeAt(c + 1)] >> 4, o[a++] = e & 255), i === 1 && (e = Ge[t.charCodeAt(c)] << 10 | Ge[t.charCodeAt(c + 1)] << 4 | Ge[t.charCodeAt(c + 2)] >> 2, o[a++] = e >> 8 & 255, o[a++] = e & 255), o;
771
771
  }
772
- function ku(t) {
772
+ function _u(t) {
773
773
  return ht[t >> 18 & 63] + ht[t >> 12 & 63] + ht[t >> 6 & 63] + ht[t & 63];
774
774
  }
775
- function _u(t, e, n) {
775
+ function ju(t, e, n) {
776
776
  for (var r, i = [], o = e; o < n; o += 3)
777
- r = (t[o] << 16 & 16711680) + (t[o + 1] << 8 & 65280) + (t[o + 2] & 255), i.push(ku(r));
777
+ r = (t[o] << 16 & 16711680) + (t[o + 1] << 8 & 65280) + (t[o + 2] & 255), i.push(_u(r));
778
778
  return i.join("");
779
779
  }
780
780
  function Kn(t) {
781
781
  for (var e, n = t.length, r = n % 3, i = [], o = 16383, a = 0, l = n - r; a < l; a += o)
782
782
  i.push(
783
- _u(
783
+ ju(
784
784
  t,
785
785
  a,
786
786
  a + o > l ? l : a + o
@@ -799,7 +799,7 @@ function kt(t) {
799
799
  );
800
800
  return t;
801
801
  }
802
- function ju(t) {
802
+ function Su(t) {
803
803
  if (typeof t > "u")
804
804
  throw new Error(
805
805
  "Client created with undefined deployment address. If you used an environment variable, check that it's set."
@@ -830,7 +830,7 @@ function Ys(t) {
830
830
  n?.constructor?.name === "Object";
831
831
  return e && r;
832
832
  }
833
- const Zs = !0, bn = BigInt("-9223372036854775808"), ho = BigInt("9223372036854775807"), $i = BigInt("0"), Su = BigInt("8"), Tu = BigInt("256"), gi = "This commit timestamp is unresolved: its value is assigned when the mutation commits. Read the document after the mutation completes to get its value.";
833
+ const Zs = !0, bn = BigInt("-9223372036854775808"), ho = BigInt("9223372036854775807"), $i = BigInt("0"), Tu = BigInt("8"), Cu = BigInt("256"), gi = "This commit timestamp is unresolved: its value is assigned when the mutation commits. Read the document after the mutation completes to get its value.";
834
834
  class Js {
835
835
  [Symbol.toPrimitive](e) {
836
836
  if (e === "string")
@@ -847,21 +847,21 @@ class Js {
847
847
  return "[unresolved commit timestamp]";
848
848
  }
849
849
  }
850
- const Cu = new Js();
850
+ const Au = new Js();
851
851
  function Xs(t) {
852
852
  return Number.isNaN(t) || !Number.isFinite(t) || Object.is(t, -0);
853
853
  }
854
- function Au(t) {
854
+ function Ru(t) {
855
855
  t < $i && (t -= bn + bn);
856
856
  let e = t.toString(16);
857
857
  e.length % 2 === 1 && (e = "0" + e);
858
858
  const n = new Uint8Array(new ArrayBuffer(8));
859
859
  let r = 0;
860
860
  for (const i of e.match(/.{2}/g).reverse())
861
- n.set([parseInt(i, 16)], r++), t >>= Su;
861
+ n.set([parseInt(i, 16)], r++), t >>= Tu;
862
862
  return Kn(n);
863
863
  }
864
- function Ru(t) {
864
+ function Eu(t) {
865
865
  const e = Gn(t);
866
866
  if (e.byteLength !== 8)
867
867
  throw new Error(
@@ -869,10 +869,10 @@ function Ru(t) {
869
869
  );
870
870
  let n = $i, r = $i;
871
871
  for (const i of e)
872
- n += BigInt(i) * Tu ** r, r++;
872
+ n += BigInt(i) * Cu ** r, r++;
873
873
  return n > ho && (n += bn + bn), n;
874
874
  }
875
- function Eu(t) {
875
+ function Iu(t) {
876
876
  if (t < bn || ho < t)
877
877
  throw new Error(
878
878
  `BigInt ${t} does not fit into a 64-bit signed integer.`
@@ -880,7 +880,7 @@ function Eu(t) {
880
880
  const e = new ArrayBuffer(8);
881
881
  return new DataView(e).setBigInt64(0, t, !0), Kn(new Uint8Array(e));
882
882
  }
883
- function Iu(t) {
883
+ function Pu(t) {
884
884
  const e = Gn(t);
885
885
  if (e.byteLength !== 8)
886
886
  throw new Error(
@@ -888,7 +888,7 @@ function Iu(t) {
888
888
  );
889
889
  return new DataView(e.buffer).getBigInt64(0, !0);
890
890
  }
891
- const Pu = DataView.prototype.setBigInt64 ? Eu : Au, Nu = DataView.prototype.getBigInt64 ? Iu : Ru, pa = 1024;
891
+ const Nu = DataView.prototype.setBigInt64 ? Iu : Ru, Mu = DataView.prototype.getBigInt64 ? Pu : Eu, pa = 1024;
892
892
  function el(t) {
893
893
  if (t.length > pa)
894
894
  throw new Error(
@@ -922,7 +922,7 @@ function yn(t) {
922
922
  if (r === "$integer") {
923
923
  if (typeof t.$integer != "string")
924
924
  throw new Error(`Malformed $integer field on ${t}`);
925
- return Nu(t.$integer);
925
+ return Mu(t.$integer);
926
926
  }
927
927
  if (r === "$float") {
928
928
  if (typeof t.$float != "string")
@@ -940,7 +940,7 @@ function yn(t) {
940
940
  if (r === "$commitTs") {
941
941
  if (t.$commitTs !== null)
942
942
  throw new Error(`Malformed $commitTs field on ${t}`);
943
- return Cu;
943
+ return Au;
944
944
  }
945
945
  if (r === "$set")
946
946
  throw new Error(
@@ -983,7 +983,7 @@ function Di(t, e, n, r) {
983
983
  throw new Error(
984
984
  `BigInt ${t} does not fit into a 64-bit signed integer.`
985
985
  );
986
- return { $integer: Pu(t) };
986
+ return { $integer: Nu(t) };
987
987
  }
988
988
  if (typeof t == "number")
989
989
  if (Xs(t)) {
@@ -1033,9 +1033,9 @@ function xi(t, e, n, r) {
1033
1033
  function gt(t) {
1034
1034
  return Di(t, t, "");
1035
1035
  }
1036
- var Mu = Object.defineProperty, Ou = (t, e, n) => e in t ? Mu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, bi = (t, e, n) => Ou(t, typeof e != "symbol" ? e + "" : e, n), ga, xa;
1037
- const Lu = /* @__PURE__ */ Symbol.for("ConvexError");
1038
- class Or extends (xa = Error, ga = Lu, xa) {
1036
+ var Ou = Object.defineProperty, Lu = (t, e, n) => e in t ? Ou(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, bi = (t, e, n) => Lu(t, typeof e != "symbol" ? e + "" : e, n), ga, xa;
1037
+ const $u = /* @__PURE__ */ Symbol.for("ConvexError");
1038
+ class Or extends (xa = Error, ga = $u, xa) {
1039
1039
  constructor(e) {
1040
1040
  super(typeof e == "string" ? e : Vn(e)), bi(this, "name", "ConvexError"), bi(this, "data"), bi(this, ga, !0), this.data = e;
1041
1041
  }
@@ -1044,8 +1044,8 @@ const tl = () => Array.from({ length: 4 }, () => 0);
1044
1044
  tl();
1045
1045
  tl();
1046
1046
  const ba = "1.45.0";
1047
- var $u = Object.defineProperty, Du = (t, e, n) => e in t ? $u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ya = (t, e, n) => Du(t, typeof e != "symbol" ? e + "" : e, n);
1048
- const qu = "color:rgb(0, 145, 255)";
1047
+ var Du = Object.defineProperty, qu = (t, e, n) => e in t ? Du(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ya = (t, e, n) => qu(t, typeof e != "symbol" ? e + "" : e, n);
1048
+ const zu = "color:rgb(0, 145, 255)";
1049
1049
  function nl(t) {
1050
1050
  switch (t) {
1051
1051
  case "query":
@@ -1123,11 +1123,11 @@ function Lr(t, e, n, r, i) {
1123
1123
  return;
1124
1124
  }
1125
1125
  const l = i.slice(1, a[0].length - 2), c = i.slice(a[0].length);
1126
- t.log(`%c[CONVEX ${o}(${r})] [${l}]`, qu, c);
1126
+ t.log(`%c[CONVEX ${o}(${r})] [${l}]`, zu, c);
1127
1127
  } else
1128
1128
  t.error(`[CONVEX ${o}(${r})] ${i}`);
1129
1129
  }
1130
- function zu(t, e) {
1130
+ function Fu(t, e) {
1131
1131
  const n = `[CONVEX FATAL ERROR] ${e}`;
1132
1132
  return t.error(n), new Error(n);
1133
1133
  }
@@ -1158,8 +1158,8 @@ function va(t, e, n) {
1158
1158
  options: gt({ initialNumItems: r, id: i })
1159
1159
  });
1160
1160
  }
1161
- var Fu = Object.defineProperty, Bu = (t, e, n) => e in t ? Fu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, lt = (t, e, n) => Bu(t, typeof e != "symbol" ? e + "" : e, n);
1162
- class Uu {
1161
+ var Bu = Object.defineProperty, Uu = (t, e, n) => e in t ? Bu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, lt = (t, e, n) => Uu(t, typeof e != "symbol" ? e + "" : e, n);
1162
+ class Vu {
1163
1163
  constructor() {
1164
1164
  lt(this, "nextQueryId"), lt(this, "querySetVersion"), lt(this, "querySet"), lt(this, "queryIdToToken"), lt(this, "identityVersion"), lt(this, "auth"), lt(this, "outstandingQueriesOlderThanRestart"), lt(this, "outstandingAuthOlderThanRestart"), lt(this, "paused"), lt(this, "pendingQuerySetModifications"), this.nextQueryId = 0, this.querySetVersion = 0, this.identityVersion = 0, this.querySet = /* @__PURE__ */ new Map(), this.queryIdToToken = /* @__PURE__ */ new Map(), this.outstandingQueriesOlderThanRestart = /* @__PURE__ */ new Set(), this.outstandingAuthOlderThanRestart = !1, this.paused = !1, this.pendingQuerySetModifications = /* @__PURE__ */ new Map();
1165
1165
  }
@@ -1187,7 +1187,7 @@ class Uu {
1187
1187
  componentPath: i
1188
1188
  };
1189
1189
  this.querySet.set(a, u), this.queryIdToToken.set(c, a);
1190
- const h = this.querySetVersion, m = this.querySetVersion + 1, d = {
1190
+ const d = this.querySetVersion, m = this.querySetVersion + 1, h = {
1191
1191
  type: "Add",
1192
1192
  queryId: c,
1193
1193
  udfPath: o,
@@ -1195,13 +1195,13 @@ class Uu {
1195
1195
  journal: r,
1196
1196
  componentPath: i
1197
1197
  };
1198
- return this.paused ? this.pendingQuerySetModifications.set(c, d) : this.querySetVersion = m, {
1198
+ return this.paused ? this.pendingQuerySetModifications.set(c, h) : this.querySetVersion = m, {
1199
1199
  queryToken: a,
1200
1200
  modification: {
1201
1201
  type: "ModifyQuerySet",
1202
- baseVersion: h,
1202
+ baseVersion: d,
1203
1203
  newVersion: m,
1204
- modifications: [d]
1204
+ modifications: [h]
1205
1205
  },
1206
1206
  unsubscribe: () => this.removeSubscriber(a)
1207
1207
  };
@@ -1364,8 +1364,8 @@ class Uu {
1364
1364
  }
1365
1365
  }
1366
1366
  }
1367
- var Vu = Object.defineProperty, Hu = (t, e, n) => e in t ? Vu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, vr = (t, e, n) => Hu(t, typeof e != "symbol" ? e + "" : e, n);
1368
- class Wu {
1367
+ var Hu = Object.defineProperty, Wu = (t, e, n) => e in t ? Hu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, vr = (t, e, n) => Wu(t, typeof e != "symbol" ? e + "" : e, n);
1368
+ class Qu {
1369
1369
  constructor(e, n) {
1370
1370
  this.logger = e, this.markConnectionStateDirty = n, vr(this, "inflightRequests"), vr(this, "requestsOlderThanRestart"), vr(this, "inflightMutationsCount", 0), vr(this, "inflightActionsCount", 0), this.inflightRequests = /* @__PURE__ */ new Map(), this.requestsOlderThanRestart = /* @__PURE__ */ new Set();
1371
1371
  }
@@ -1501,21 +1501,21 @@ class Wu {
1501
1501
  return this.inflightActionsCount;
1502
1502
  }
1503
1503
  }
1504
- const Yn = /* @__PURE__ */ Symbol.for("functionName"), Qu = /* @__PURE__ */ Symbol.for("toReferencePath");
1505
- function Gu(t) {
1506
- return t[Qu] ?? null;
1507
- }
1504
+ const Yn = /* @__PURE__ */ Symbol.for("functionName"), Gu = /* @__PURE__ */ Symbol.for("toReferencePath");
1508
1505
  function Ku(t) {
1509
- return t.startsWith("function://");
1506
+ return t[Gu] ?? null;
1510
1507
  }
1511
1508
  function Yu(t) {
1509
+ return t.startsWith("function://");
1510
+ }
1511
+ function Zu(t) {
1512
1512
  let e;
1513
1513
  if (typeof t == "string")
1514
- Ku(t) ? e = { functionHandle: t } : e = { name: t };
1514
+ Yu(t) ? e = { functionHandle: t } : e = { name: t };
1515
1515
  else if (t[Yn])
1516
1516
  e = { name: t[Yn] };
1517
1517
  else {
1518
- const n = Gu(t);
1518
+ const n = Ku(t);
1519
1519
  if (!n)
1520
1520
  throw new Error(`${t} is not a functionReference`);
1521
1521
  e = { reference: n };
@@ -1523,7 +1523,7 @@ function Yu(t) {
1523
1523
  return e;
1524
1524
  }
1525
1525
  function Pe(t) {
1526
- const e = Yu(t);
1526
+ const e = Zu(t);
1527
1527
  if (e.name === void 0)
1528
1528
  throw e.functionHandle !== void 0 ? new Error(
1529
1529
  `Expected function reference like "api.file.func" or "internal.file.func", but received function handle ${e.functionHandle}`
@@ -1562,7 +1562,7 @@ function al(t = []) {
1562
1562
  return new Proxy({}, e);
1563
1563
  }
1564
1564
  al();
1565
- var Zu = Object.defineProperty, Ju = (t, e, n) => e in t ? Zu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, $r = (t, e, n) => Ju(t, typeof e != "symbol" ? e + "" : e, n);
1565
+ var Ju = Object.defineProperty, Xu = (t, e, n) => e in t ? Ju(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, $r = (t, e, n) => Xu(t, typeof e != "symbol" ? e + "" : e, n);
1566
1566
  class Zn {
1567
1567
  constructor(e) {
1568
1568
  $r(this, "queryResults"), $r(this, "modifiedQueries"), this.queryResults = e, this.modifiedQueries = [];
@@ -1604,7 +1604,7 @@ class Zn {
1604
1604
  return e.success ? e.value : void 0;
1605
1605
  }
1606
1606
  }
1607
- class Xu {
1607
+ class ed {
1608
1608
  constructor() {
1609
1609
  $r(this, "queryResults"), $r(this, "optimisticUpdates"), this.queryResults = /* @__PURE__ */ new Map(), this.optimisticUpdates = [];
1610
1610
  }
@@ -1672,7 +1672,7 @@ class Xu {
1672
1672
  return this.queryResults.get(e)?.result?.logLines;
1673
1673
  }
1674
1674
  }
1675
- var ed = Object.defineProperty, td = (t, e, n) => e in t ? ed(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, yi = (t, e, n) => td(t, typeof e != "symbol" ? e + "" : e, n);
1675
+ var td = Object.defineProperty, nd = (t, e, n) => e in t ? td(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, yi = (t, e, n) => nd(t, typeof e != "symbol" ? e + "" : e, n);
1676
1676
  class De {
1677
1677
  constructor(e, n) {
1678
1678
  yi(this, "low"), yi(this, "high"), yi(this, "__isUnsignedLong__"), this.low = e | 0, this.high = n | 0, this.__isUnsignedLong__ = !0;
@@ -1702,7 +1702,7 @@ class De {
1702
1702
  ];
1703
1703
  }
1704
1704
  static fromNumber(e) {
1705
- return isNaN(e) || e < 0 ? wa : e >= nd ? rd : new De(e % Hn | 0, e / Hn | 0);
1705
+ return isNaN(e) || e < 0 ? wa : e >= rd ? id : new De(e % Hn | 0, e / Hn | 0);
1706
1706
  }
1707
1707
  toString() {
1708
1708
  return (BigInt(this.high) * BigInt(Hn) + BigInt(this.low)).toString();
@@ -1726,8 +1726,8 @@ class De {
1726
1726
  return typeof e == "number" ? De.fromNumber(e) : new De(e.low, e.high);
1727
1727
  }
1728
1728
  }
1729
- const wa = new De(0, 0), ka = 65536, Hn = ka * ka, nd = Hn * Hn, rd = new De(-1, -1);
1730
- var id = Object.defineProperty, od = (t, e, n) => e in t ? id(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, wr = (t, e, n) => od(t, typeof e != "symbol" ? e + "" : e, n);
1729
+ const wa = new De(0, 0), ka = 65536, Hn = ka * ka, rd = Hn * Hn, id = new De(-1, -1);
1730
+ var od = Object.defineProperty, ad = (t, e, n) => e in t ? od(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, wr = (t, e, n) => ad(t, typeof e != "symbol" ? e + "" : e, n);
1731
1731
  class _a {
1732
1732
  constructor(e, n) {
1733
1733
  wr(this, "version"), wr(this, "remoteQuerySet"), wr(this, "queryPath"), wr(this, "logger"), this.version = { querySet: 0, ts: De.fromNumber(0), identity: 0 }, this.remoteQuerySet = /* @__PURE__ */ new Map(), this.queryPath = e, this.logger = n;
@@ -1787,7 +1787,7 @@ function vi(t) {
1787
1787
  const e = Gn(t);
1788
1788
  return De.fromBytesLE(Array.from(e));
1789
1789
  }
1790
- function ad(t) {
1790
+ function sd(t) {
1791
1791
  const e = new Uint8Array(t.toBytesLE());
1792
1792
  return Kn(e);
1793
1793
  }
@@ -1815,7 +1815,7 @@ function ja(t) {
1815
1815
  };
1816
1816
  }
1817
1817
  }
1818
- function sd(t) {
1818
+ function ld(t) {
1819
1819
  switch (t.type) {
1820
1820
  case "Authenticate":
1821
1821
  case "ModifyQuerySet":
@@ -1826,12 +1826,12 @@ function sd(t) {
1826
1826
  case "Connect":
1827
1827
  return t.maxObservedTimestamp !== void 0 ? {
1828
1828
  ...t,
1829
- maxObservedTimestamp: ad(t.maxObservedTimestamp)
1829
+ maxObservedTimestamp: sd(t.maxObservedTimestamp)
1830
1830
  } : { ...t, maxObservedTimestamp: void 0 };
1831
1831
  }
1832
1832
  }
1833
- var ld = Object.defineProperty, cd = (t, e, n) => e in t ? ld(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, fe = (t, e, n) => cd(t, typeof e != "symbol" ? e + "" : e, n);
1834
- const ud = 1e3, dd = 1001, hd = 1005, fd = 4040;
1833
+ var cd = Object.defineProperty, ud = (t, e, n) => e in t ? cd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, fe = (t, e, n) => ud(t, typeof e != "symbol" ? e + "" : e, n);
1834
+ const dd = 1e3, hd = 1001, fd = 1005, pd = 4040;
1835
1835
  let Rr;
1836
1836
  function un() {
1837
1837
  return Rr === void 0 && (Rr = Date.now()), typeof performance > "u" || !performance.now ? Date.now() : Math.round(Rr + performance.now());
@@ -1859,7 +1859,7 @@ const sl = {
1859
1859
  SearchIndexTooLarge: { timeout: 3e3 },
1860
1860
  TooManyWritesInTimePeriod: { timeout: 3e3 }
1861
1861
  };
1862
- function pd(t) {
1862
+ function md(t) {
1863
1863
  if (t === void 0) return "Unknown";
1864
1864
  for (const e of Object.keys(
1865
1865
  sl
@@ -1868,7 +1868,7 @@ function pd(t) {
1868
1868
  return e;
1869
1869
  return "Unknown";
1870
1870
  }
1871
- class md {
1871
+ class gd {
1872
1872
  constructor(e, n, r, i, o, a) {
1873
1873
  this.markConnectionStateDirty = o, this.debug = a, fe(this, "socket"), fe(this, "connectionCount"), fe(this, "_hasEverConnected", !1), fe(this, "lastCloseReason"), fe(this, "transitionChunkBuffer", null), fe(this, "defaultInitialBackoff"), fe(this, "maxBackoff"), fe(this, "retries"), fe(this, "serverInactivityThreshold"), fe(this, "reconnectDueToServerInactivityTimeout"), fe(this, "scheduledReconnect", null), fe(this, "networkOnlineHandler", null), fe(this, "pendingNetworkRecoveryInfo", null), fe(this, "uri"), fe(this, "onOpen"), fe(this, "onResume"), fe(this, "onMessage"), fe(this, "webSocketConstructor"), fe(this, "logger"), fe(this, "onServerDisconnectError"), this.webSocketConstructor = r, this.socket = { state: "disconnected" }, this.connectionCount = 0, this.lastCloseReason = "InitialConnect", this.defaultInitialBackoff = 1e3, this.maxBackoff = 16e3, this.retries = 0, this.serverInactivityThreshold = 6e4, this.reconnectDueToServerInactivityTimeout = null, this.uri = e, this.onOpen = n.onOpen, this.onResume = n.onResume, this.onMessage = n.onMessage, this.onServerDisconnectError = n.onServerDisconnectError, this.logger = i, this.setupNetworkListener(), this.connect();
1874
1874
  }
@@ -1973,12 +1973,12 @@ class md {
1973
1973
  transition: i
1974
1974
  }), this.onMessage(i).hasSyncedPastLastReconnect && (this.retries = 0, this.markConnectionStateDirty());
1975
1975
  }, e.onclose = (n) => {
1976
- if (this._logVerbose("begin ws.onclose"), this.transitionChunkBuffer = null, this.lastCloseReason === null && (this.lastCloseReason = n.reason || `closed with code ${n.code}`), n.code !== ud && n.code !== dd && // This commonly gets fired on mobile apps when the app is backgrounded
1977
- n.code !== hd && n.code !== fd) {
1976
+ if (this._logVerbose("begin ws.onclose"), this.transitionChunkBuffer = null, this.lastCloseReason === null && (this.lastCloseReason = n.reason || `closed with code ${n.code}`), n.code !== dd && n.code !== hd && // This commonly gets fired on mobile apps when the app is backgrounded
1977
+ n.code !== fd && n.code !== pd) {
1978
1978
  let i = `WebSocket closed with code ${n.code}`;
1979
1979
  n.reason && (i += `: ${n.reason}`), this.logger.log(i), this.onServerDisconnectError && n.reason && this.onServerDisconnectError(i);
1980
1980
  }
1981
- const r = pd(n.reason);
1981
+ const r = md(n.reason);
1982
1982
  this.scheduleReconnect(r);
1983
1983
  };
1984
1984
  }
@@ -2000,7 +2000,7 @@ class md {
2000
2000
  } : {}
2001
2001
  };
2002
2002
  if (this.socket.state === "ready" && this.socket.paused === "no") {
2003
- const r = sd(e), i = JSON.stringify(r);
2003
+ const r = ld(e), i = JSON.stringify(r);
2004
2004
  let o = !1;
2005
2005
  try {
2006
2006
  this.socket.ws.send(i), o = !0;
@@ -2259,10 +2259,10 @@ class md {
2259
2259
  });
2260
2260
  }
2261
2261
  }
2262
- function gd() {
2263
- return xd();
2264
- }
2265
2262
  function xd() {
2263
+ return bd();
2264
+ }
2265
+ function bd() {
2266
2266
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
2267
2267
  const e = Math.random() * 16 | 0;
2268
2268
  return (t === "x" ? e : e & 3 | 8).toString(16);
@@ -2271,7 +2271,7 @@ function xd() {
2271
2271
  class Dn extends Error {
2272
2272
  }
2273
2273
  Dn.prototype.name = "InvalidTokenError";
2274
- function bd(t) {
2274
+ function yd(t) {
2275
2275
  return decodeURIComponent(
2276
2276
  atob(t).replace(/(.)/g, (e, n) => {
2277
2277
  let r = n.charCodeAt(0).toString(16).toUpperCase();
@@ -2279,7 +2279,7 @@ function bd(t) {
2279
2279
  })
2280
2280
  );
2281
2281
  }
2282
- function yd(t) {
2282
+ function vd(t) {
2283
2283
  let e = t.replace(/-/g, "+").replace(/_/g, "/");
2284
2284
  switch (e.length % 4) {
2285
2285
  case 0:
@@ -2294,7 +2294,7 @@ function yd(t) {
2294
2294
  throw new Error("base64 string is not of the correct length");
2295
2295
  }
2296
2296
  try {
2297
- return bd(e);
2297
+ return yd(e);
2298
2298
  } catch {
2299
2299
  return atob(e);
2300
2300
  }
@@ -2310,7 +2310,7 @@ function ll(t, e) {
2310
2310
  );
2311
2311
  let i;
2312
2312
  try {
2313
- i = yd(r);
2313
+ i = vd(r);
2314
2314
  } catch (o) {
2315
2315
  throw new Dn(
2316
2316
  `Invalid token specified: invalid base64 for part #${n + 1} (${o.message})`
@@ -2324,9 +2324,9 @@ function ll(t, e) {
2324
2324
  );
2325
2325
  }
2326
2326
  }
2327
- var vd = Object.defineProperty, wd = (t, e, n) => e in t ? vd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, $e = (t, e, n) => wd(t, typeof e != "symbol" ? e + "" : e, n);
2328
- const kd = 480 * 60 * 60 * 1e3, Ta = 2;
2329
- class _d {
2327
+ var wd = Object.defineProperty, kd = (t, e, n) => e in t ? wd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, $e = (t, e, n) => kd(t, typeof e != "symbol" ? e + "" : e, n);
2328
+ const _d = 480 * 60 * 60 * 1e3, Ta = 2;
2329
+ class jd {
2330
2330
  constructor(e, n, r) {
2331
2331
  $e(this, "authState", { state: "noAuth" }), $e(this, "configVersion", 0), $e(this, "syncState"), $e(this, "authenticate"), $e(this, "stopSocket"), $e(this, "tryRestartSocket"), $e(this, "pauseSocket"), $e(this, "resumeSocket"), $e(this, "clearAuth"), $e(this, "logger"), $e(this, "refreshTokenLeewaySeconds"), $e(this, "initialAuthTokenReuse"), $e(this, "lastRefreshChange"), $e(this, "tokenConfirmationAttempts", 0), this.syncState = e, this.authenticate = n.authenticate, this.stopSocket = n.stopSocket, this.tryRestartSocket = n.tryRestartSocket, this.pauseSocket = n.pauseSocket, this.resumeSocket = n.resumeSocket, this.clearAuth = n.clearAuth, this.logger = r.logger, this.refreshTokenLeewaySeconds = r.refreshTokenLeewaySeconds, this.initialAuthTokenReuse = r.initialAuthTokenReuse, this.lastRefreshChange = !1;
2332
2332
  }
@@ -2463,12 +2463,12 @@ class _d {
2463
2463
  }
2464
2464
  let l;
2465
2465
  if (n !== void 0) {
2466
- const h = (Date.now() - n) / 1e3;
2467
- l = o - h, l <= 0 && (l = 0);
2466
+ const d = (Date.now() - n) / 1e3;
2467
+ l = o - d, l <= 0 && (l = 0);
2468
2468
  } else
2469
2469
  l = a;
2470
2470
  let c = Math.min(
2471
- kd,
2471
+ _d,
2472
2472
  (l - this.refreshTokenLeewaySeconds) * 1e3
2473
2473
  );
2474
2474
  c <= 0 && (this.logger.warn(
@@ -2539,34 +2539,34 @@ class _d {
2539
2539
  this.logger.logVerbose(`${e} [v${this.configVersion}]`);
2540
2540
  }
2541
2541
  }
2542
- const jd = [
2542
+ const Sd = [
2543
2543
  "convexClientConstructed",
2544
2544
  "convexWebSocketOpen",
2545
2545
  "convexFirstMessageReceived"
2546
2546
  ];
2547
- function Sd(t, e) {
2547
+ function Td(t, e) {
2548
2548
  const n = { sessionId: e };
2549
2549
  typeof performance > "u" || !performance.mark || performance.mark(t, { detail: n });
2550
2550
  }
2551
- function Td(t) {
2551
+ function Cd(t) {
2552
2552
  let e = t.name.slice(6);
2553
2553
  return e = e.charAt(0).toLowerCase() + e.slice(1), {
2554
2554
  name: e,
2555
2555
  startTime: t.startTime
2556
2556
  };
2557
2557
  }
2558
- function Cd(t) {
2558
+ function Ad(t) {
2559
2559
  if (typeof performance > "u" || !performance.getEntriesByName)
2560
2560
  return [];
2561
2561
  const e = [];
2562
- for (const n of jd) {
2562
+ for (const n of Sd) {
2563
2563
  const r = performance.getEntriesByName(n).filter((i) => i.entryType === "mark").filter((i) => i.detail.sessionId === t);
2564
2564
  e.push(...r);
2565
2565
  }
2566
- return e.map(Td);
2566
+ return e.map(Cd);
2567
2567
  }
2568
- var Ad = Object.defineProperty, Rd = (t, e, n) => e in t ? Ad(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, pe = (t, e, n) => Rd(t, typeof e != "symbol" ? e + "" : e, n);
2569
- class Ed {
2568
+ var Rd = Object.defineProperty, Ed = (t, e, n) => e in t ? Rd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, pe = (t, e, n) => Ed(t, typeof e != "symbol" ? e + "" : e, n);
2569
+ class Id {
2570
2570
  /**
2571
2571
  * @param address - The url of your Convex deployment, often provided
2572
2572
  * by an environment variable. E.g. `https://small-mouse-123.convex.cloud`.
@@ -2586,12 +2586,12 @@ class Ed {
2586
2586
  }
2587
2587
  });
2588
2588
  }), pe(this, "mark", (p) => {
2589
- this.debug && Sd(p, this.sessionId);
2589
+ this.debug && Td(p, this.sessionId);
2590
2590
  }), typeof e == "object")
2591
2591
  throw new Error(
2592
2592
  "Passing a ClientConfig object is no longer supported. Pass the URL of the Convex deployment as a string directly."
2593
2593
  );
2594
- r?.skipConvexDeploymentUrlCheck !== !0 && ju(e), r = { ...r };
2594
+ r?.skipConvexDeploymentUrlCheck !== !0 && Su(e), r = { ...r };
2595
2595
  const i = r.authRefreshTokenLeewaySeconds ?? 10;
2596
2596
  let o = r.webSocketConstructor;
2597
2597
  if (!o && typeof WebSocket > "u")
@@ -2610,18 +2610,18 @@ class Ed {
2610
2610
  u = "wss";
2611
2611
  else
2612
2612
  throw new Error(`Unknown parent protocol ${c}`);
2613
- const h = `${u}://${l}/api/${ba}/sync`;
2614
- this.state = new Uu(), this.remoteQuerySet = new _a(
2613
+ const d = `${u}://${l}/api/${ba}/sync`;
2614
+ this.state = new Vu(), this.remoteQuerySet = new _a(
2615
2615
  (p) => this.state.queryPath(p),
2616
2616
  this.logger
2617
- ), this.requestManager = new Wu(
2617
+ ), this.requestManager = new Qu(
2618
2618
  this.logger,
2619
2619
  this.markConnectionStateDirty
2620
2620
  );
2621
2621
  const m = () => {
2622
2622
  this.webSocketManager.pause(), this.state.pause();
2623
2623
  };
2624
- this.authenticationManager = new _d(
2624
+ this.authenticationManager = new jd(
2625
2625
  this.state,
2626
2626
  {
2627
2627
  authenticate: (p) => {
@@ -2641,24 +2641,24 @@ class Ed {
2641
2641
  refreshTokenLeewaySeconds: i,
2642
2642
  initialAuthTokenReuse: r.initialAuthTokenReuse ?? !1
2643
2643
  }
2644
- ), this.optimisticQueryResults = new Xu(), this.addOnTransitionHandler((p) => {
2644
+ ), this.optimisticQueryResults = new ed(), this.addOnTransitionHandler((p) => {
2645
2645
  n(p.queries.map((b) => b.token));
2646
- }), this._nextRequestId = 0, this._sessionId = gd();
2647
- const { unsavedChangesWarning: d } = r;
2646
+ }), this._nextRequestId = 0, this._sessionId = xd();
2647
+ const { unsavedChangesWarning: h } = r;
2648
2648
  if (typeof window > "u" || typeof window.addEventListener > "u") {
2649
- if (d === !0)
2649
+ if (h === !0)
2650
2650
  throw new Error(
2651
2651
  "unsavedChangesWarning requested, but window.addEventListener not found! Remove {unsavedChangesWarning: true} from Convex client options."
2652
2652
  );
2653
- } else d !== !1 && window.addEventListener("beforeunload", (p) => {
2653
+ } else h !== !1 && window.addEventListener("beforeunload", (p) => {
2654
2654
  if (this.requestManager.hasIncompleteRequests()) {
2655
2655
  p.preventDefault();
2656
2656
  const b = "Are you sure you want to leave? Your changes may not be saved.";
2657
2657
  return (p || window.event).returnValue = b, b;
2658
2658
  }
2659
2659
  });
2660
- this.webSocketManager = new md(
2661
- h,
2660
+ this.webSocketManager = new gd(
2661
+ d,
2662
2662
  {
2663
2663
  onOpen: (p) => {
2664
2664
  this.mark("convexWebSocketOpen"), this.webSocketManager.sendMessage({
@@ -2713,7 +2713,7 @@ class Ed {
2713
2713
  break;
2714
2714
  }
2715
2715
  case "FatalError": {
2716
- const b = zu(this.logger, p.error);
2716
+ const b = Fu(this.logger, p.error);
2717
2717
  throw this.webSocketManager.terminate(), b;
2718
2718
  }
2719
2719
  }
@@ -3005,10 +3005,10 @@ class Ed {
3005
3005
  this.tryReportLongDisconnect();
3006
3006
  const a = this.nextRequestId;
3007
3007
  if (this._nextRequestId++, r !== void 0) {
3008
- const h = r.optimisticUpdate;
3009
- if (h !== void 0) {
3008
+ const d = r.optimisticUpdate;
3009
+ if (d !== void 0) {
3010
3010
  const m = (b) => {
3011
- h(
3011
+ d(
3012
3012
  b,
3013
3013
  o
3014
3014
  ) instanceof Promise && this.logger.warn(
@@ -3120,7 +3120,7 @@ class Ed {
3120
3120
  */
3121
3121
  reportMarks() {
3122
3122
  if (this.debug) {
3123
- const e = Cd(this.sessionId);
3123
+ const e = Ad(this.sessionId);
3124
3124
  this.webSocketManager.sendMessage({
3125
3125
  type: "Event",
3126
3126
  eventType: "ClientConnect",
@@ -3157,8 +3157,8 @@ function wi(t) {
3157
3157
  throw new Error(`Not a valid paginated query result: ${t?.toString()}`);
3158
3158
  return t;
3159
3159
  }
3160
- var Id = Object.defineProperty, Pd = (t, e, n) => e in t ? Id(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ca = (t, e, n) => Pd(t, typeof e != "symbol" ? e + "" : e, n);
3161
- class Nd {
3160
+ var Pd = Object.defineProperty, Nd = (t, e, n) => e in t ? Pd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ca = (t, e, n) => Nd(t, typeof e != "symbol" ? e + "" : e, n);
3161
+ class Md {
3162
3162
  constructor(e, n) {
3163
3163
  this.client = e, this.onTransition = n, Ca(this, "paginatedQuerySet", /* @__PURE__ */ new Map()), Ca(this, "lastTransitionTs"), this.lastTransitionTs = De.fromNumber(0), this.client.addOnTransitionHandler(
3164
3164
  (r) => this.onBaseTransition(r)
@@ -3232,8 +3232,8 @@ class Nd {
3232
3232
  o = !0, a = !1;
3233
3233
  continue;
3234
3234
  }
3235
- const h = wi(u);
3236
- i = i.concat(h.page), a = !!h.isDone;
3235
+ const d = wi(u);
3236
+ i = i.concat(d.page), a = !!d.isDone;
3237
3237
  }
3238
3238
  let l;
3239
3239
  return o ? l = i.length === 0 ? "LoadingFirstPage" : "LoadingMore" : a ? l = "Exhausted" : l = "CanLoadMore", {
@@ -3322,12 +3322,12 @@ class Nd {
3322
3322
  processPaginatedQuerySplits(e, n) {
3323
3323
  for (const r of e) {
3324
3324
  const i = this.mustGetPaginatedQuery(r), { ongoingSplits: o, pageKeyToQuery: a, pageKeys: l } = i;
3325
- for (const [c, [u, h]] of o)
3326
- n(a.get(u).queryToken) !== void 0 && n(a.get(h).queryToken) !== void 0 && this.completePaginatedQuerySplit(
3325
+ for (const [c, [u, d]] of o)
3326
+ n(a.get(u).queryToken) !== void 0 && n(a.get(d).queryToken) !== void 0 && this.completePaginatedQuerySplit(
3327
3327
  i,
3328
3328
  c,
3329
3329
  u,
3330
- h
3330
+ d
3331
3331
  );
3332
3332
  for (const c of l) {
3333
3333
  if (o.has(c))
@@ -3335,10 +3335,10 @@ class Nd {
3335
3335
  const u = a.get(c);
3336
3336
  if (!u)
3337
3337
  throw new Error(`No page query for active pageKey ${c}`);
3338
- const h = n(u.queryToken);
3339
- if (!h)
3338
+ const d = n(u.queryToken);
3339
+ if (!d)
3340
3340
  continue;
3341
- const m = wi(h);
3341
+ const m = wi(d);
3342
3342
  m.splitCursor && (m.pageStatus === "SplitRecommended" || m.pageStatus === "SplitRequired" || // This client-driven page splitting condition will change in the future.
3343
3343
  m.page.length > i.options.initialNumItems * 2) && this.splitPaginatedQueryPage(
3344
3344
  i,
@@ -3370,7 +3370,7 @@ class Nd {
3370
3370
  ...u,
3371
3371
  cursor: r
3372
3372
  });
3373
- const h = this.client.subscribe(
3373
+ const d = this.client.subscribe(
3374
3374
  e.canonicalizedUdfPath,
3375
3375
  {
3376
3376
  ...e.args,
@@ -3382,7 +3382,7 @@ class Nd {
3382
3382
  }
3383
3383
  );
3384
3384
  e.pageKeyToQuery.set(l, {
3385
- ...h,
3385
+ ...d,
3386
3386
  cursor: i
3387
3387
  }), e.ongoingSplits.set(n, [a, l]);
3388
3388
  }
@@ -3444,7 +3444,7 @@ class Nd {
3444
3444
  return n;
3445
3445
  }
3446
3446
  }
3447
- function Md({
3447
+ function Od({
3448
3448
  // (Synchronously) returns the current value of our subscription.
3449
3449
  getCurrentValue: t,
3450
3450
  // This function is passed an event handler to attach to the subscription.
@@ -3476,13 +3476,13 @@ function Md({
3476
3476
  };
3477
3477
  }, [t, e]), i;
3478
3478
  }
3479
- var Od = Object.defineProperty, Ld = (t, e, n) => e in t ? Od(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, wt = (t, e, n) => Ld(t, typeof e != "symbol" ? e + "" : e, n);
3480
- const $d = 5e3;
3479
+ var Ld = Object.defineProperty, $d = (t, e, n) => e in t ? Ld(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, wt = (t, e, n) => $d(t, typeof e != "symbol" ? e + "" : e, n);
3480
+ const Dd = 5e3;
3481
3481
  if (typeof uo > "u")
3482
3482
  throw new Error("Required dependency 'react' not found");
3483
3483
  function cl(t, e, n) {
3484
3484
  function r(i) {
3485
- return Bd(i), e.mutation(t, i, {
3485
+ return Ud(i), e.mutation(t, i, {
3486
3486
  optimisticUpdate: n
3487
3487
  });
3488
3488
  }
@@ -3496,12 +3496,12 @@ function cl(t, e, n) {
3496
3496
  return cl(t, e, o);
3497
3497
  }, r;
3498
3498
  }
3499
- function Dd(t, e) {
3499
+ function qd(t, e) {
3500
3500
  return function(n) {
3501
3501
  return e.action(t, n);
3502
3502
  };
3503
3503
  }
3504
- class qd {
3504
+ class zd {
3505
3505
  /**
3506
3506
  * @param address - The url of your Convex deployment, often provided
3507
3507
  * by an environment variable. E.g. `https://small-mouse-123.convex.cloud`.
@@ -3538,13 +3538,13 @@ class qd {
3538
3538
  get sync() {
3539
3539
  if (this.closed)
3540
3540
  throw new Error("ConvexReactClient has already been closed.");
3541
- return this.cachedSync ? this.cachedSync : (this.cachedSync = this.options.baseClient ?? new Ed(
3541
+ return this.cachedSync ? this.cachedSync : (this.cachedSync = this.options.baseClient ?? new Id(
3542
3542
  this.address,
3543
3543
  () => {
3544
3544
  },
3545
3545
  // Use the PaginatedQueryClient's transition instead.
3546
3546
  this.options
3547
- ), this.adminAuth && this.cachedSync.setAdminAuth(this.adminAuth, this.fakeUserIdentity), this.cachedPaginatedQueryClient = new Nd(
3547
+ ), this.adminAuth && this.cachedSync.setAdminAuth(this.adminAuth, this.fakeUserIdentity), this.cachedPaginatedQueryClient = new Md(
3548
3548
  this.cachedSync,
3549
3549
  (e) => this.handleTransition(e)
3550
3550
  ), this.cachedSync);
@@ -3622,8 +3622,8 @@ class qd {
3622
3622
  return u !== void 0 ? u.add(a) : this.listeners.set(l, /* @__PURE__ */ new Set([a])), () => {
3623
3623
  if (this.closed)
3624
3624
  return;
3625
- const h = this.listeners.get(l);
3626
- h.delete(a), h.size === 0 && this.listeners.delete(l), c();
3625
+ const d = this.listeners.get(l);
3626
+ d.delete(a), d.size === 0 && this.listeners.delete(l), c();
3627
3627
  };
3628
3628
  },
3629
3629
  localQueryResult: () => {
@@ -3656,7 +3656,7 @@ class qd {
3656
3656
  * an optional extendSubscriptionFor for how long to subscribe to the query.
3657
3657
  */
3658
3658
  prewarmQuery(e) {
3659
- const n = e.extendSubscriptionFor ?? $d, i = this.watchQuery(e.query, e.args || {}).onUpdate(() => {
3659
+ const n = e.extendSubscriptionFor ?? Dd, i = this.watchQuery(e.query, e.args || {}).onUpdate(() => {
3660
3660
  });
3661
3661
  setTimeout(i, n);
3662
3662
  }
@@ -3811,10 +3811,10 @@ const Zr = uo.createContext(
3811
3811
  void 0
3812
3812
  // in the future this will be a mocked client for testing
3813
3813
  );
3814
- function zd() {
3814
+ function Fd() {
3815
3815
  return or(Zr);
3816
3816
  }
3817
- const Fd = ({ client: t, children: e }) => uo.createElement(
3817
+ const Bd = ({ client: t, children: e }) => uo.createElement(
3818
3818
  Zr.Provider,
3819
3819
  { value: t },
3820
3820
  e
@@ -3826,7 +3826,7 @@ function Jn(t, ...e) {
3826
3826
  // rerender. Saves developers from adding `useMemo` on every args usage.
3827
3827
  // eslint-disable-next-line react-hooks/exhaustive-deps
3828
3828
  [JSON.stringify(gt(r)), o, n]
3829
- ), c = Wd(a).query;
3829
+ ), c = Qd(a).query;
3830
3830
  if (c instanceof Error)
3831
3831
  throw c;
3832
3832
  return c;
@@ -3850,19 +3850,19 @@ function ar(t) {
3850
3850
  "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"
3851
3851
  );
3852
3852
  return be(
3853
- () => Dd(n, e),
3853
+ () => qd(n, e),
3854
3854
  // eslint-disable-next-line react-hooks/exhaustive-deps
3855
3855
  [e, Pe(n)]
3856
3856
  );
3857
3857
  }
3858
- function Bd(t) {
3858
+ function Ud(t) {
3859
3859
  if (typeof t == "object" && t !== null && "bubbles" in t && "persist" in t && "isDefaultPrevented" in t)
3860
3860
  throw new Error(
3861
3861
  "Convex function called with SyntheticEvent object. Did you use a Convex function as an event handler directly? Event handlers like onClick receive an event object as their first argument. These SyntheticEvent objects are not valid Convex values. Try wrapping the function like `const handler = () => myMutation();` and using `handler` in the event handler."
3862
3862
  );
3863
3863
  }
3864
- var Ud = Object.defineProperty, Vd = (t, e, n) => e in t ? Ud(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ki = (t, e, n) => Vd(t, typeof e != "symbol" ? e + "" : e, n);
3865
- class Hd {
3864
+ var Vd = Object.defineProperty, Hd = (t, e, n) => e in t ? Vd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ki = (t, e, n) => Hd(t, typeof e != "symbol" ? e + "" : e, n);
3865
+ class Wd {
3866
3866
  constructor(e) {
3867
3867
  ki(this, "createWatch"), ki(this, "queries"), ki(this, "listeners"), this.createWatch = e, this.queries = {}, this.listeners = /* @__PURE__ */ new Set();
3868
3868
  }
@@ -3963,8 +3963,8 @@ class Hd {
3963
3963
  e();
3964
3964
  }
3965
3965
  }
3966
- function Wd(t) {
3967
- const e = zd();
3966
+ function Qd(t) {
3967
+ const e = Fd();
3968
3968
  if (e === void 0)
3969
3969
  throw new Error(
3970
3970
  "Could not find Convex client! `useQuery` 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"
@@ -3973,10 +3973,10 @@ function Wd(t) {
3973
3973
  journal: o,
3974
3974
  paginationOptions: a
3975
3975
  }) => a ? e.watchPaginatedQuery(r, i, a) : e.watchQuery(r, i, o ? { journal: o } : {}), [e]);
3976
- return Qd(t, n);
3976
+ return Gd(t, n);
3977
3977
  }
3978
- function Qd(t, e) {
3979
- const [n] = F(() => new Hd(e));
3978
+ function Gd(t, e) {
3979
+ const [n] = F(() => new Wd(e));
3980
3980
  n.createWatch !== e && n.setCreateWatch(e), M(() => () => n.destroy(), [n]);
3981
3981
  const r = be(
3982
3982
  () => ({
@@ -3985,9 +3985,9 @@ function Qd(t, e) {
3985
3985
  }),
3986
3986
  [n, t]
3987
3987
  );
3988
- return Md(r);
3988
+ return Od(r);
3989
3989
  }
3990
- var Gd = /* @__PURE__ */ Symbol.for("preact-signals");
3990
+ var Kd = /* @__PURE__ */ Symbol.for("preact-signals");
3991
3991
  function Jr() {
3992
3992
  if (jt > 1)
3993
3993
  jt--;
@@ -4012,9 +4012,9 @@ function Jr() {
4012
4012
  if (Dr = 0, jt--, e) throw t;
4013
4013
  }
4014
4014
  }
4015
- function Kd(t) {
4015
+ function Yd(t) {
4016
4016
  if (jt > 0) return t();
4017
- zi = ++Yd, jt++;
4017
+ zi = ++Zd, jt++;
4018
4018
  try {
4019
4019
  return t();
4020
4020
  } finally {
@@ -4031,7 +4031,7 @@ function Xr(t) {
4031
4031
  re = e;
4032
4032
  }
4033
4033
  }
4034
- var Wn = void 0, jt = 0, Dr = 0, Yd = 0, zi = 0, qr = void 0, zr = 0;
4034
+ var Wn = void 0, jt = 0, Dr = 0, Zd = 0, zi = 0, qr = void 0, zr = 0;
4035
4035
  function ul(t) {
4036
4036
  if (re !== void 0) {
4037
4037
  var e = t.n;
@@ -4044,7 +4044,7 @@ function ul(t) {
4044
4044
  function Te(t, e) {
4045
4045
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0, this.l = 0, this.W = e?.watched, this.Z = e?.unwatched, this.name = e?.name;
4046
4046
  }
4047
- Te.prototype.brand = Gd;
4047
+ Te.prototype.brand = Kd;
4048
4048
  Te.prototype.h = function() {
4049
4049
  return !0;
4050
4050
  };
@@ -4194,7 +4194,7 @@ function po(t) {
4194
4194
  for (var e = t.s; e !== void 0; e = e.n) e.S.U(e);
4195
4195
  t.x = void 0, t.s = void 0, pl(t);
4196
4196
  }
4197
- function Zd(t) {
4197
+ function Jd(t) {
4198
4198
  if (re !== this) throw new Error("Out-of-order effect");
4199
4199
  fl(this), re = t, this.f &= -2, 8 & this.f && po(this), Jr();
4200
4200
  }
@@ -4215,7 +4215,7 @@ _n.prototype.S = function() {
4215
4215
  if (1 & this.f) throw new Error("Cycle detected");
4216
4216
  this.f |= 1, this.f &= -9, pl(this), hl(this), jt++;
4217
4217
  var t = re;
4218
- return re = this, Zd.bind(this, t);
4218
+ return re = this, Jd.bind(this, t);
4219
4219
  };
4220
4220
  _n.prototype.N = function() {
4221
4221
  2 & this.f || (this.f |= 2, this.u = Wn, Wn = this);
@@ -4236,7 +4236,7 @@ function sr(t, e) {
4236
4236
  var r = n.d.bind(n);
4237
4237
  return r[Symbol.dispose] = r, r;
4238
4238
  }
4239
- var ml, kr, Jd = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, gl = [];
4239
+ var ml, kr, Xd = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, gl = [];
4240
4240
  sr(function() {
4241
4241
  ml = this.N;
4242
4242
  })();
@@ -4262,17 +4262,17 @@ function xl(t) {
4262
4262
  var u = Fi(function() {
4263
4263
  var p = r.value.value;
4264
4264
  return p === 0 ? 0 : p === !0 ? "" : p || "";
4265
- }), h = Fi(function() {
4265
+ }), d = Fi(function() {
4266
4266
  return !Array.isArray(u.value) && !ks(u.value);
4267
4267
  }), m = sr(function() {
4268
- if (this.N = bl, h.value) {
4268
+ if (this.N = bl, d.value) {
4269
4269
  var p = u.value;
4270
4270
  l.__v && l.__v.__e && l.__v.__e.nodeType === 3 && (l.__v.__e.data = p);
4271
4271
  }
4272
- }), d = e.__$u.d;
4272
+ }), h = e.__$u.d;
4273
4273
  return e.__$u.d = function() {
4274
- m(), d.call(this);
4275
- }, [h, u];
4274
+ m(), h.call(this);
4275
+ }, [d, u];
4276
4276
  }, []), o = i[0], a = i[1];
4277
4277
  return o.value ? a.peek() : a.value;
4278
4278
  }
@@ -4304,7 +4304,7 @@ jn("__r", function(t, e) {
4304
4304
  }, { name: o }), a.c = i, a;
4305
4305
  })(function() {
4306
4306
  var i;
4307
- Jd && ((i = n.y) == null || i.call(n)), r.__$f |= 1, r.setState({});
4307
+ Xd && ((i = n.y) == null || i.call(n)), r.__$f |= 1, r.setState({});
4308
4308
  }, typeof e.type == "function" ? e.type.displayName || e.type.name : ""))), Fr(n);
4309
4309
  }
4310
4310
  });
@@ -4325,14 +4325,14 @@ jn("diffed", function(t, e) {
4325
4325
  else
4326
4326
  o = {}, n.U = o;
4327
4327
  for (var c in r) {
4328
- var u = o[c], h = r[c];
4329
- u === void 0 ? (u = Xd(n, c, h, i), o[c] = u) : u.o(h, i);
4328
+ var u = o[c], d = r[c];
4329
+ u === void 0 ? (u = eh(n, c, d, i), o[c] = u) : u.o(d, i);
4330
4330
  }
4331
4331
  }
4332
4332
  }
4333
4333
  t(e);
4334
4334
  });
4335
- function Xd(t, e, n, r) {
4335
+ function eh(t, e, n, r) {
4336
4336
  var i = e in t && t.ownerSVGElement === void 0, o = H(n);
4337
4337
  return { o: function(a, l) {
4338
4338
  o.value = a, r = l;
@@ -4364,8 +4364,8 @@ jn("unmount", function(t, e) {
4364
4364
  } else {
4365
4365
  var u = e.__c;
4366
4366
  if (u) {
4367
- var h = u.__$u;
4368
- h && (u.__$u = void 0, h.d());
4367
+ var d = u.__$u;
4368
+ d && (u.__$u = void 0, d.d());
4369
4369
  }
4370
4370
  }
4371
4371
  t(e);
@@ -4390,18 +4390,18 @@ function fn(t, e) {
4390
4390
  return H(t, e);
4391
4391
  }, []);
4392
4392
  }
4393
- var eh = function(t) {
4393
+ var th = function(t) {
4394
4394
  queueMicrotask(function() {
4395
4395
  queueMicrotask(t);
4396
4396
  });
4397
4397
  };
4398
- function th() {
4399
- Kd(function() {
4398
+ function nh() {
4399
+ Yd(function() {
4400
4400
  for (var t; t = gl.shift(); ) ml.call(t);
4401
4401
  });
4402
4402
  }
4403
4403
  function bl() {
4404
- gl.push(this) === 1 && (E.requestAnimationFrame || eh)(th);
4404
+ gl.push(this) === 1 && (E.requestAnimationFrame || th)(nh);
4405
4405
  }
4406
4406
  const le = H(!1), Br = H(void 0), lr = "https://jexitychat.de/privacy", cr = H(lr), mo = H("chip"), Lt = H(void 0), Bi = H([]), Ui = H([]), yl = H(null), Vi = H(!1);
4407
4407
  BigInt("-9223372036854775808");
@@ -4409,14 +4409,14 @@ BigInt("9223372036854775807");
4409
4409
  BigInt("0");
4410
4410
  BigInt("8");
4411
4411
  BigInt("256");
4412
- const nh = /* @__PURE__ */ Symbol.for("functionName"), rh = /* @__PURE__ */ Symbol.for("toReferencePath");
4412
+ const rh = /* @__PURE__ */ Symbol.for("functionName"), ih = /* @__PURE__ */ Symbol.for("toReferencePath");
4413
4413
  function vl(t = []) {
4414
4414
  const e = {
4415
4415
  get(n, r) {
4416
4416
  if (typeof r == "string") {
4417
4417
  const i = [...t, r];
4418
4418
  return vl(i);
4419
- } else if (r === nh) {
4419
+ } else if (r === rh) {
4420
4420
  if (t.length < 2) {
4421
4421
  const a = ["api", ...t].join(".");
4422
4422
  throw new Error(
@@ -4430,14 +4430,14 @@ function vl(t = []) {
4430
4430
  };
4431
4431
  return new Proxy({}, e);
4432
4432
  }
4433
- const ih = vl();
4433
+ const oh = vl();
4434
4434
  function wl(t, e) {
4435
4435
  const n = {
4436
4436
  get(r, i) {
4437
4437
  if (typeof i == "string") {
4438
4438
  const o = [...e, i];
4439
4439
  return wl(t, o);
4440
- } else if (i === rh) {
4440
+ } else if (i === ih) {
4441
4441
  if (e.length < 1) {
4442
4442
  const o = [t, ...e].join(".");
4443
4443
  throw new Error(
@@ -4451,15 +4451,15 @@ function wl(t, e) {
4451
4451
  };
4452
4452
  return new Proxy({}, n);
4453
4453
  }
4454
- const oh = () => wl("components", []), je = ih;
4455
- oh();
4456
- function ah() {
4454
+ const ah = () => wl("components", []), je = oh;
4455
+ ah();
4456
+ function kl() {
4457
4457
  return Jn(je.maintenance.isFrozen, {})?.frozen ?? Vi.value;
4458
4458
  }
4459
4459
  function sh(t) {
4460
4460
  return t.replace(/\.convex\.site\b/, ".convex.cloud");
4461
4461
  }
4462
- function kl(t) {
4462
+ function _l(t) {
4463
4463
  return t.replace(/\.convex\.cloud\b/, ".convex.site");
4464
4464
  }
4465
4465
  function Aa(t) {
@@ -4551,15 +4551,15 @@ function fh(t, e, n, r) {
4551
4551
  if (r !== void 0)
4552
4552
  return;
4553
4553
  o({ config: null, settled: !1 });
4554
- const a = n ?? "https://tame-spider-109.eu-west-1.convex.cloud", l = a ? kl(a) : void 0;
4554
+ const a = n ?? "https://tame-spider-109.eu-west-1.convex.cloud", l = a ? _l(a) : void 0;
4555
4555
  if (!l || !t) {
4556
4556
  o({ config: null, settled: !0 });
4557
4557
  return;
4558
4558
  }
4559
4559
  const c = new AbortController();
4560
- async function u(h) {
4560
+ async function u(d) {
4561
4561
  try {
4562
- const m = await hh(h, t, c.signal, e);
4562
+ const m = await hh(d, t, c.signal, e);
4563
4563
  c.signal.aborted || o({ config: m, settled: !0 });
4564
4564
  } catch (m) {
4565
4565
  if (m instanceof Error && m.name === "AbortError")
@@ -4582,7 +4582,7 @@ const Ra = globalThis.console, me = {
4582
4582
  debug(...t) {
4583
4583
  }
4584
4584
  };
4585
- async function _l(t, e, n) {
4585
+ async function jl(t, e, n) {
4586
4586
  try {
4587
4587
  const r = await fetch(`${e}/widget/bootstrap`, {
4588
4588
  method: "POST",
@@ -4633,22 +4633,22 @@ function mh({
4633
4633
  preMaintenance: a
4634
4634
  }) {
4635
4635
  M(() => {
4636
- const u = r ?? "https://tame-spider-109.eu-west-1.convex.cloud", h = u ? kl(u) : void 0;
4637
- if (!h || !t || (yl.value = { orgSlug: t, projSlug: e, siteUrl: h }, n))
4636
+ const u = r ?? "https://tame-spider-109.eu-west-1.convex.cloud", d = u ? _l(u) : void 0;
4637
+ if (!d || !t || (yl.value = { orgSlug: t, projSlug: e, siteUrl: d }, n))
4638
4638
  return;
4639
4639
  let m = !1;
4640
4640
  return (async () => {
4641
- const d = await _l(t, h, e);
4641
+ const h = await jl(t, d, e);
4642
4642
  if (!m)
4643
- if (d.ok)
4644
- Lt.value = d.token, Bi.value = d.allowedUrls, Ui.value = d.excludePaths, Vi.value = d.maintenance ?? !1;
4643
+ if (h.ok)
4644
+ Lt.value = h.token, Bi.value = h.allowedUrls, Ui.value = h.excludePaths, Vi.value = h.maintenance ?? !1;
4645
4645
  else {
4646
4646
  const p = e ? `project '${t}/${e}'` : `org '${t}'`;
4647
- d.error === "unauthorized" ? me.warn(
4647
+ h.error === "unauthorized" ? me.warn(
4648
4648
  `[JexityChat] Domain not authorized for ${p}. Check the widget's domain rules.`
4649
- ) : d.error === "not_found" ? me.error(`[JexityChat] No active widget config found for ${p}.`) : d.error === "rate_limited" ? me.error(
4650
- `[JexityChat] Bootstrap rate-limited for ${p}. Retry after ${d.retryAfterSec ?? 60}s.`
4651
- ) : me.error(`[JexityChat] Bootstrap failed: ${d.error}`);
4649
+ ) : h.error === "not_found" ? me.error(`[JexityChat] No active widget config found for ${p}.`) : h.error === "rate_limited" ? me.error(
4650
+ `[JexityChat] Bootstrap rate-limited for ${p}. Retry after ${h.retryAfterSec ?? 60}s.`
4651
+ ) : me.error(`[JexityChat] Bootstrap failed: ${h.error}`);
4652
4652
  }
4653
4653
  })(), () => {
4654
4654
  m = !0;
@@ -4775,6 +4775,7 @@ const go = {
4775
4775
  handoffRateLimited: "You requested an agent recently. Please wait before trying again.",
4776
4776
  handoffAvailable: "An agent is available",
4777
4777
  handoffOffline: "No agent online — leave your details",
4778
+ handoffMaintenance: "Paused for maintenance. You can reach an agent again shortly.",
4778
4779
  resumeListLabel: "Continue conversation",
4779
4780
  resumeListTimestamp: "{minutes}m ago",
4780
4781
  pickUpWhereLeftOff: "Pick up where you left off",
@@ -4948,7 +4949,7 @@ Use it to resume this conversation from any device.`,
4948
4949
  waitingTitle: "You’re in the queue",
4949
4950
  waitingSubtitle: "Keep this tab open — we’ll alert you right here the moment someone replies.",
4950
4951
  waitingLeaveEmail: "Rather get an email? Leave your details"
4951
- }, jl = {
4952
+ }, Sl = {
4952
4953
  title: "Assistent",
4953
4954
  statusOnline: "Online · Antwortet in Sekunden",
4954
4955
  inputPlaceholder: "Nachricht eingeben…",
@@ -5028,6 +5029,7 @@ Use it to resume this conversation from any device.`,
5028
5029
  handoffRateLimited: "Sie haben kürzlich einen Mitarbeiter angefragt. Bitte warten Sie.",
5029
5030
  handoffAvailable: "Ein Mitarbeiter ist verfügbar",
5030
5031
  handoffOffline: "Kein Mitarbeiter online — hinterlasse deine Daten",
5032
+ handoffMaintenance: "Wegen Wartungsarbeiten pausiert. Du kannst gleich wieder einen Mitarbeiter erreichen.",
5031
5033
  resumeListLabel: "Unterhaltung fortsetzen",
5032
5034
  resumeListTimestamp: "vor {minutes} Min.",
5033
5035
  pickUpWhereLeftOff: "Da weitermachen, wo Sie aufgehört haben",
@@ -5204,7 +5206,7 @@ Verwenden Sie sie, um diese Unterhaltung auf jedem Gerät fortzusetzen.`,
5204
5206
  }, yh = [
5205
5207
  { value: "de", label: "Deutsch", flag: "🇩🇪" },
5206
5208
  { value: "en", label: "English", flag: "🇬🇧" }
5207
- ], vh = "de", wh = "jex-locale", xt = H("de"), kh = { en: go, de: jl };
5209
+ ], vh = "de", wh = "jex-locale", xt = H("de"), kh = { en: go, de: Sl };
5208
5210
  function R() {
5209
5211
  return kh[xt.value] ?? go;
5210
5212
  }
@@ -5214,7 +5216,7 @@ function _i(t) {
5214
5216
  const e = (t.split("-")[0] ?? "").toLowerCase();
5215
5217
  return yh.some((r) => r.value === e) ? e : null;
5216
5218
  }
5217
- function Sl(t) {
5219
+ function Tl(t) {
5218
5220
  const e = _i(t);
5219
5221
  if (e)
5220
5222
  return e;
@@ -5238,14 +5240,14 @@ function _h(t) {
5238
5240
  if (n.origin !== r || n.data?.type !== "jexity:config")
5239
5241
  return;
5240
5242
  const { locale: i } = n.data.payload;
5241
- i && (xt.value = Sl(i));
5243
+ i && (xt.value = Tl(i));
5242
5244
  }
5243
5245
  return window.addEventListener("message", e), () => {
5244
5246
  window.removeEventListener("message", e);
5245
5247
  };
5246
5248
  }, [t]);
5247
5249
  }
5248
- const Tl = "jex-session-history", Cl = Tl, Al = 1440 * 60 * 1e3, Ae = H([]), Ue = H(null), Pt = H(void 0), Hi = H(!1), xo = Fi(() => Ae.value.length > 0), pn = H(null), jh = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Sh = 6;
5250
+ const Cl = "jex-session-history", Al = Cl, Rl = 1440 * 60 * 1e3, Ae = H([]), Ue = H(null), Pt = H(void 0), Hi = H(!1), xo = Fi(() => Ae.value.length > 0), pn = H(null), jh = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Sh = 6;
5249
5251
  function Th() {
5250
5252
  let t = "";
5251
5253
  const e = new Uint8Array(1);
@@ -5262,18 +5264,18 @@ function Ch(t) {
5262
5264
  if (typeof t == "number" && Number.isFinite(t) && t >= 0)
5263
5265
  return t;
5264
5266
  }
5265
- function Rl(t, e, n) {
5267
+ function El(t, e, n) {
5266
5268
  if (n === null)
5267
5269
  return t;
5268
- const r = typeof n == "number" ? n : Al;
5270
+ const r = typeof n == "number" ? n : Rl;
5269
5271
  return t.filter((i) => e - i.lastActivityAt <= r);
5270
5272
  }
5271
5273
  function Ah(t, e, n, r) {
5272
- return n ? Rl(t, e, r) : t;
5274
+ return n ? El(t, e, r) : t;
5273
5275
  }
5274
5276
  function Rh(t) {
5275
5277
  try {
5276
- const e = sessionStorage.getItem(Cl);
5278
+ const e = sessionStorage.getItem(Al);
5277
5279
  if (!e)
5278
5280
  return Pt.value = void 0, [];
5279
5281
  const n = JSON.parse(e);
@@ -5293,7 +5295,7 @@ function Rh(t) {
5293
5295
  function ur(t) {
5294
5296
  try {
5295
5297
  const e = { v: 1, entries: t, timeoutMs: Pt.value };
5296
- sessionStorage.setItem(Cl, JSON.stringify(e));
5298
+ sessionStorage.setItem(Al, JSON.stringify(e));
5297
5299
  } catch {
5298
5300
  }
5299
5301
  }
@@ -5303,7 +5305,7 @@ function Eh() {
5303
5305
  }
5304
5306
  function Ih(t) {
5305
5307
  Pt.value = t;
5306
- const e = Date.now(), n = Rl(Ae.value, e, t), r = Ue.value !== null && !n.some((i) => i.ref === Ue.value);
5308
+ const e = Date.now(), n = El(Ae.value, e, t), r = Ue.value !== null && !n.some((i) => i.ref === Ue.value);
5307
5309
  return Ae.value = n, r && (Ue.value = null), ur(n), { activeRefPruned: r };
5308
5310
  }
5309
5311
  function Pa() {
@@ -5327,12 +5329,12 @@ function bo(t) {
5327
5329
  );
5328
5330
  Ae.value = n, ur(n);
5329
5331
  }
5330
- const ze = H(El());
5331
- function El() {
5332
+ const ze = H(Il());
5333
+ function Il() {
5332
5334
  return xo.value ? [{ id: "home" }] : [{ id: "home" }, { id: "chat" }];
5333
5335
  }
5334
5336
  function Ph() {
5335
- ze.value = El();
5337
+ ze.value = Il();
5336
5338
  }
5337
5339
  const Nh = H("screen");
5338
5340
  function _t(t) {
@@ -5362,7 +5364,7 @@ function Ki() {
5362
5364
  if (!(Xn.value && Ae.value.length === 0)) {
5363
5365
  Ae.value = [], Ue.value = null;
5364
5366
  try {
5365
- sessionStorage.removeItem(Tl);
5367
+ sessionStorage.removeItem(Cl);
5366
5368
  } catch (t) {
5367
5369
  me.warn("[JexityChat] Idle-lock storage clear failed:", t);
5368
5370
  }
@@ -5378,7 +5380,7 @@ function Ki() {
5378
5380
  function _r() {
5379
5381
  Xn.value && (Xn.value = !1);
5380
5382
  }
5381
- function $h(t = Al) {
5383
+ function $h(t = Rl) {
5382
5384
  let e = document.visibilityState === "hidden" ? Date.now() : null;
5383
5385
  const n = () => {
5384
5386
  if (document.visibilityState === "hidden") {
@@ -5436,7 +5438,7 @@ function qh() {
5436
5438
  function zh({ title: t }) {
5437
5439
  return /* @__PURE__ */ s("div", { class: "jex-header-info", children: /* @__PURE__ */ s("h3", { children: t }) });
5438
5440
  }
5439
- function Il({ size: t = 28 }) {
5441
+ function Pl({ size: t = 28 }) {
5440
5442
  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: [
5441
5443
  /* @__PURE__ */ s("path", { d: "M18 6 6 18" }),
5442
5444
  /* @__PURE__ */ s("path", { d: "m6 6 12 12" })
@@ -5454,7 +5456,7 @@ function Fh() {
5454
5456
  },
5455
5457
  "aria-label": t.closeChatAriaLabel,
5456
5458
  title: t.closeChatAriaLabel,
5457
- children: /* @__PURE__ */ s(Il, { size: 18 })
5459
+ children: /* @__PURE__ */ s(Pl, { size: 18 })
5458
5460
  }
5459
5461
  );
5460
5462
  }
@@ -5492,7 +5494,7 @@ function $a() {
5492
5494
  }
5493
5495
  ) });
5494
5496
  }
5495
- function Pl({ size: t = 28 }) {
5497
+ function Nl({ size: t = 28 }) {
5496
5498
  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: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }) });
5497
5499
  }
5498
5500
  function Vh({ size: t = 24, ...e }) {
@@ -5513,7 +5515,7 @@ function Vh({ size: t = 24, ...e }) {
5513
5515
  );
5514
5516
  }
5515
5517
  const Hh = {
5516
- chat: /* @__PURE__ */ s(Pl, { size: 28 }),
5518
+ chat: /* @__PURE__ */ s(Nl, { size: 28 }),
5517
5519
  bot: /* @__PURE__ */ s(ei, { size: 28 }),
5518
5520
  sparkles: /* @__PURE__ */ s(Vh, { size: 28 })
5519
5521
  }, Wh = {
@@ -5534,7 +5536,7 @@ function Qh({ radius: t = "full", iconOption: e = "chat", label: n }) {
5534
5536
  le.value = !le.value;
5535
5537
  },
5536
5538
  "aria-label": le.value ? r.closeChatAriaLabel : r.openChatAriaLabel,
5537
- children: le.value ? /* @__PURE__ */ s(Il, { size: 28 }) : /* @__PURE__ */ s("div", { class: "jex-fab-inner", children: [
5539
+ children: le.value ? /* @__PURE__ */ s(Pl, { size: 28 }) : /* @__PURE__ */ s("div", { class: "jex-fab-inner", children: [
5538
5540
  Hh[e],
5539
5541
  o && /* @__PURE__ */ s("span", { class: "jex-fab-label", children: i })
5540
5542
  ] })
@@ -5608,16 +5610,16 @@ function Yi(t) {
5608
5610
  vn.value = t, t && (qn.value += 1);
5609
5611
  }
5610
5612
  const qa = 100;
5611
- function Nl(t) {
5613
+ function Ml(t) {
5612
5614
  const e = t.replace(/\s+/g, " ").trim();
5613
5615
  return e.length > qa ? `${e.slice(0, qa)}…` : e;
5614
5616
  }
5615
5617
  const er = H(null), Zi = H(Date.now()), Er = H(!1), vo = H(!1), tr = H(!1), Hr = H(null);
5616
- function Ml() {
5618
+ function Ol() {
5617
5619
  return mo.value === "explicit" && !vo.value;
5618
5620
  }
5619
- function Ol() {
5620
- Ml() && (tr.value = !0);
5621
+ function Ll() {
5622
+ Ol() && (tr.value = !0);
5621
5623
  }
5622
5624
  function Jh() {
5623
5625
  vo.value = !0, tr.value = !1;
@@ -5653,21 +5655,21 @@ function of() {
5653
5655
  URL.revokeObjectURL(t.previewUrl);
5654
5656
  St.value = [];
5655
5657
  }
5656
- function Ll(t) {
5658
+ function $l(t) {
5657
5659
  if (typeof t != "object" || t === null)
5658
5660
  return !1;
5659
5661
  const e = t.data;
5660
5662
  return typeof e != "object" || e === null ? !1 : e.kind === "maintenance";
5661
5663
  }
5662
5664
  const Nt = H(null), nr = H(null);
5663
- function $l() {
5665
+ function Dl() {
5664
5666
  nr.value = null;
5665
5667
  }
5666
- function Dl({ sessionId: t, visitorId: e, ensureSession: n }) {
5668
+ function ql({ sessionId: t, visitorId: e, ensureSession: n }) {
5667
5669
  const r = Yt(je.functions.chat.public.conversations.send);
5668
5670
  return async function(o) {
5669
- if (Ml()) {
5670
- Hr.value = o, Ol();
5671
+ if (Ol()) {
5672
+ Hr.value = o, Ll();
5671
5673
  return;
5672
5674
  }
5673
5675
  if (!Er.value) {
@@ -5688,7 +5690,7 @@ function Dl({ sessionId: t, visitorId: e, ensureSession: n }) {
5688
5690
  });
5689
5691
  c.ok ? bo(a.visitorId) : c.reason === "rate_limited" && (er.value = Date.now() + c.retryAfterMs);
5690
5692
  } catch (c) {
5691
- me.error("[jexity] Failed to send message:", c), Ll(c) && (Nt.value = "maintenance"), mn.value.trim() || (mn.value = o);
5693
+ me.error("[jexity] Failed to send message:", c), $l(c) && (Nt.value = "maintenance"), mn.value.trim() || (mn.value = o);
5692
5694
  }
5693
5695
  } finally {
5694
5696
  Er.value = !1;
@@ -5769,7 +5771,7 @@ function df({ onSend: t }) {
5769
5771
  return { textareaRef: e, fileInputRef: n, onKeyDown: i, onAttachClick: o, onFilesPicked: a, onCardClick: l };
5770
5772
  }
5771
5773
  function hf({ isStreaming: t, disabled: e, inputDisabled: n, onSend: r, onFocus: i }) {
5772
- const o = R(), a = mn, l = St, { textareaRef: c, fileInputRef: u, onKeyDown: h, onAttachClick: m, onFilesPicked: d, onCardClick: p } = df({ onSend: r }), b = a.value.trim().length > 0, S = l.value.length > 0, y = (b || S) && !e;
5774
+ const o = R(), a = mn, l = St, { textareaRef: c, fileInputRef: u, onKeyDown: d, onAttachClick: m, onFilesPicked: h, onCardClick: p } = df({ onSend: r }), b = a.value.trim().length > 0, S = l.value.length > 0, y = (b || S) && !e;
5773
5775
  return /* @__PURE__ */ s("div", { class: "jex-composer-card", onClick: p, children: [
5774
5776
  S && /* @__PURE__ */ s("div", { class: "jex-composer-attachments", role: "list", children: l.value.map((x) => /* @__PURE__ */ s("div", { class: "jex-attachment-chip", role: "listitem", children: [
5775
5777
  /* @__PURE__ */ s("img", { src: x.previewUrl, alt: x.file.name, class: "jex-attachment-thumb" }),
@@ -5801,7 +5803,7 @@ function hf({ isStreaming: t, disabled: e, inputDisabled: n, onSend: r, onFocus:
5801
5803
  onInput: (x) => {
5802
5804
  a.value = x.currentTarget.value;
5803
5805
  },
5804
- onKeyDown: h,
5806
+ onKeyDown: d,
5805
5807
  onFocus: i,
5806
5808
  disabled: n
5807
5809
  }
@@ -5816,7 +5818,7 @@ function hf({ isStreaming: t, disabled: e, inputDisabled: n, onSend: r, onFocus:
5816
5818
  type: "file",
5817
5819
  accept: "image/*",
5818
5820
  multiple: !0,
5819
- onChange: d,
5821
+ onChange: h,
5820
5822
  tabIndex: -1,
5821
5823
  "aria-hidden": "true"
5822
5824
  }
@@ -5913,7 +5915,7 @@ const xf = ({
5913
5915
  },
5914
5916
  [...o.map(([c, u]) => Ye(c, u)), ...mt(i)]
5915
5917
  );
5916
- const ql = (t, e) => {
5918
+ const zl = (t, e) => {
5917
5919
  const n = ({ class: r = "", className: i = "", children: o, ...a }) => Ye(
5918
5920
  xf,
5919
5921
  {
@@ -5930,11 +5932,11 @@ const ql = (t, e) => {
5930
5932
  );
5931
5933
  return n.displayName = Ua(t), n;
5932
5934
  };
5933
- const wo = ql("corner-up-left", [
5935
+ const wo = zl("corner-up-left", [
5934
5936
  ["path", { d: "M20 20v-7a4 4 0 0 0-4-4H4", key: "1nkjon" }],
5935
5937
  ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }]
5936
5938
  ]);
5937
- const bf = ql("x", [
5939
+ const bf = zl("x", [
5938
5940
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
5939
5941
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
5940
5942
  ]);
@@ -5950,7 +5952,7 @@ function yf() {
5950
5952
  n,
5951
5953
  ": "
5952
5954
  ] }),
5953
- Nl(e.content)
5955
+ Ml(e.content)
5954
5956
  ] }),
5955
5957
  /* @__PURE__ */ s(
5956
5958
  "button",
@@ -6024,7 +6026,7 @@ function vf({
6024
6026
  onStartFresh: a,
6025
6027
  maintenance: l = !1
6026
6028
  }) {
6027
- const c = R(), u = mn, h = mo.value, m = Dl({ sessionId: t, visitorId: e, ensureSession: o }), d = er.value !== null && er.value > Zi.value, p = n || r || d || l, b = h === "explicit" && tr.value;
6029
+ const c = R(), u = mn, d = mo.value, m = ql({ sessionId: t, visitorId: e, ensureSession: o }), h = er.value !== null && er.value > Zi.value, p = n || r || h || l, b = d === "explicit" && tr.value;
6028
6030
  function S() {
6029
6031
  Jh();
6030
6032
  const x = Hr.value;
@@ -6052,7 +6054,7 @@ function vf({
6052
6054
  return /* @__PURE__ */ s("div", { class: "jex-chat-input", children: [
6053
6055
  /* @__PURE__ */ s(sf, {}),
6054
6056
  /* @__PURE__ */ s(cf, { maintenance: l }),
6055
- h === "chip" && /* @__PURE__ */ s(Va, { variant: "chip" }),
6057
+ d === "chip" && /* @__PURE__ */ s(Va, { variant: "chip" }),
6056
6058
  /* @__PURE__ */ s(yf, {}),
6057
6059
  /* @__PURE__ */ s("div", { class: `jex-chat-input-composer-gate${b ? " jex-chat-input-composer-gate-open" : ""}`, children: [
6058
6060
  /* @__PURE__ */ s(
@@ -6062,10 +6064,10 @@ function vf({
6062
6064
  disabled: p,
6063
6065
  inputDisabled: n || r || b || l,
6064
6066
  onSend: y,
6065
- onFocus: Ol
6067
+ onFocus: Ll
6066
6068
  }
6067
6069
  ),
6068
- h === "explicit" && /* @__PURE__ */ s(
6070
+ d === "explicit" && /* @__PURE__ */ s(
6069
6071
  Va,
6070
6072
  {
6071
6073
  variant: "explicit",
@@ -6080,7 +6082,7 @@ function ko() {
6080
6082
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
6081
6083
  }
6082
6084
  var Jt = ko();
6083
- function zl(t) {
6085
+ function Fl(t) {
6084
6086
  Jt = t;
6085
6087
  }
6086
6088
  var Ht = { exec: () => null };
@@ -6104,8 +6106,8 @@ var wf = ((t = "") => {
6104
6106
  } catch {
6105
6107
  return !1;
6106
6108
  }
6107
- })(), Ce = { 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: ln((t) => new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: ln((t) => new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: ln((t) => new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)), headingBeginRegex: ln((t) => new RegExp(`^ {0,${t}}#`)), htmlBeginRegex: ln((t) => new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: ln((t) => new RegExp(`^ {0,${t}}>`)) }, kf = /^(?:[ \t]*(?:\n|$))+/, _f = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, jf = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, dr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Sf = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, _o = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Fl = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Bl = V(Fl).replace(/bull/g, _o).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(), Tf = V(Fl).replace(/bull/g, _o).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(), jo = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Cf = /^[^\n]+/, So = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Af = V(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", So).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Rf = V(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, _o).getRegex(), ti = "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", To = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ef = V("^ {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", To).replace("tag", ti).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ul = V(jo).replace("hr", dr).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]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ti).getRegex(), If = V(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ul).getRegex(), Co = { blockquote: If, code: _f, def: Af, fences: jf, heading: Sf, hr: dr, html: Ef, lheading: Bl, list: Rf, newline: kf, paragraph: Ul, table: Ht, text: Cf }, Ha = V("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", dr).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", ti).getRegex(), Pf = { ...Co, lheading: Tf, table: Ha, paragraph: V(jo).replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ha).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ti).getRegex() }, Nf = { ...Co, html: V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", To).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: Ht, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: V(jo).replace("hr", dr).replace("heading", ` *#{1,6} *[^
6108
- ]`).replace("lheading", Bl).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Mf = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Of = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Vl = /^( {2,}|\\)\n(?!\s*$)/, Lf = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Sn = /[\p{P}\p{S}]/u, ni = /[\s\p{P}\p{S}]/u, Ao = /[^\s\p{P}\p{S}]/u, $f = V(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, ni).getRegex(), Hl = /(?!~)[\p{P}\p{S}]/u, Df = /(?!~)[\s\p{P}\p{S}]/u, qf = /(?:[^\s\p{P}\p{S}]|~)/u, zf = V(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", wf ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Wl = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Ff = V(Wl, "u").replace(/punct/g, Sn).getRegex(), Bf = V(Wl, "u").replace(/punct/g, Hl).getRegex(), Ql = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Uf = V(Ql, "gu").replace(/notPunctSpace/g, Ao).replace(/punctSpace/g, ni).replace(/punct/g, Sn).getRegex(), Vf = V(Ql, "gu").replace(/notPunctSpace/g, qf).replace(/punctSpace/g, Df).replace(/punct/g, Hl).getRegex(), Hf = V("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ao).replace(/punctSpace/g, ni).replace(/punct/g, Sn).getRegex(), Wf = V(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Sn).getRegex(), Qf = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Gf = V(Qf, "gu").replace(/notPunctSpace/g, Ao).replace(/punctSpace/g, ni).replace(/punct/g, Sn).getRegex(), Kf = V(/\\(punct)/, "gu").replace(/punct/g, Sn).getRegex(), Yf = V(/^<(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(), Zf = V(To).replace("(?:-->|$)", "-->").getRegex(), Jf = V("^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", Zf).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Wr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Xf = V(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Wr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Gl = V(/^!?\[(label)\]\[(ref)\]/).replace("label", Wr).replace("ref", So).getRegex(), Kl = V(/^!?\[(ref)\](?:\[\])?/).replace("ref", So).getRegex(), ep = V("reflink|nolink(?!\\()", "g").replace("reflink", Gl).replace("nolink", Kl).getRegex(), Wa = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Ro = { _backpedal: Ht, anyPunctuation: Kf, autolink: Yf, blockSkip: zf, br: Vl, code: Of, del: Ht, delLDelim: Ht, delRDelim: Ht, emStrongLDelim: Ff, emStrongRDelimAst: Uf, emStrongRDelimUnd: Hf, escape: Mf, link: Xf, nolink: Kl, punctuation: $f, reflink: Gl, reflinkSearch: ep, tag: Jf, text: Lf, url: Ht }, tp = { ...Ro, link: V(/^!?\[(label)\]\((.*?)\)/).replace("label", Wr).getRegex(), reflink: V(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Wr).getRegex() }, Ji = { ...Ro, emStrongRDelimAst: Vf, emStrongLDelim: Bf, delLDelim: Wf, delRDelim: Gf, url: V(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Wa).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: V(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Wa).getRegex() }, np = { ...Ji, br: V(Vl).replace("{2,}", "*").getRegex(), text: V(Ji.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, jr = { normal: Co, gfm: Pf, pedantic: Nf }, Pn = { normal: Ro, gfm: Ji, breaks: np, pedantic: tp }, rp = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Qa = (t) => rp[t];
6109
+ })(), Ce = { 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: ln((t) => new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: ln((t) => new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: ln((t) => new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)), headingBeginRegex: ln((t) => new RegExp(`^ {0,${t}}#`)), htmlBeginRegex: ln((t) => new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: ln((t) => new RegExp(`^ {0,${t}}>`)) }, kf = /^(?:[ \t]*(?:\n|$))+/, _f = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, jf = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, dr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Sf = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, _o = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Bl = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ul = V(Bl).replace(/bull/g, _o).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(), Tf = V(Bl).replace(/bull/g, _o).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(), jo = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Cf = /^[^\n]+/, So = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Af = V(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", So).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Rf = V(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, _o).getRegex(), ti = "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", To = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ef = V("^ {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", To).replace("tag", ti).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Vl = V(jo).replace("hr", dr).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]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ti).getRegex(), If = V(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Vl).getRegex(), Co = { blockquote: If, code: _f, def: Af, fences: jf, heading: Sf, hr: dr, html: Ef, lheading: Ul, list: Rf, newline: kf, paragraph: Vl, table: Ht, text: Cf }, Ha = V("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", dr).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", ti).getRegex(), Pf = { ...Co, lheading: Tf, table: Ha, paragraph: V(jo).replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ha).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ti).getRegex() }, Nf = { ...Co, html: V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", To).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: Ht, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: V(jo).replace("hr", dr).replace("heading", ` *#{1,6} *[^
6110
+ ]`).replace("lheading", Ul).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Mf = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Of = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Hl = /^( {2,}|\\)\n(?!\s*$)/, Lf = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Sn = /[\p{P}\p{S}]/u, ni = /[\s\p{P}\p{S}]/u, Ao = /[^\s\p{P}\p{S}]/u, $f = V(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, ni).getRegex(), Wl = /(?!~)[\p{P}\p{S}]/u, Df = /(?!~)[\s\p{P}\p{S}]/u, qf = /(?:[^\s\p{P}\p{S}]|~)/u, zf = V(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", wf ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ql = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Ff = V(Ql, "u").replace(/punct/g, Sn).getRegex(), Bf = V(Ql, "u").replace(/punct/g, Wl).getRegex(), Gl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Uf = V(Gl, "gu").replace(/notPunctSpace/g, Ao).replace(/punctSpace/g, ni).replace(/punct/g, Sn).getRegex(), Vf = V(Gl, "gu").replace(/notPunctSpace/g, qf).replace(/punctSpace/g, Df).replace(/punct/g, Wl).getRegex(), Hf = V("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ao).replace(/punctSpace/g, ni).replace(/punct/g, Sn).getRegex(), Wf = V(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Sn).getRegex(), Qf = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Gf = V(Qf, "gu").replace(/notPunctSpace/g, Ao).replace(/punctSpace/g, ni).replace(/punct/g, Sn).getRegex(), Kf = V(/\\(punct)/, "gu").replace(/punct/g, Sn).getRegex(), Yf = V(/^<(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(), Zf = V(To).replace("(?:-->|$)", "-->").getRegex(), Jf = V("^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", Zf).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Wr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Xf = V(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Wr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Kl = V(/^!?\[(label)\]\[(ref)\]/).replace("label", Wr).replace("ref", So).getRegex(), Yl = V(/^!?\[(ref)\](?:\[\])?/).replace("ref", So).getRegex(), ep = V("reflink|nolink(?!\\()", "g").replace("reflink", Kl).replace("nolink", Yl).getRegex(), Wa = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Ro = { _backpedal: Ht, anyPunctuation: Kf, autolink: Yf, blockSkip: zf, br: Hl, code: Of, del: Ht, delLDelim: Ht, delRDelim: Ht, emStrongLDelim: Ff, emStrongRDelimAst: Uf, emStrongRDelimUnd: Hf, escape: Mf, link: Xf, nolink: Yl, punctuation: $f, reflink: Kl, reflinkSearch: ep, tag: Jf, text: Lf, url: Ht }, tp = { ...Ro, link: V(/^!?\[(label)\]\((.*?)\)/).replace("label", Wr).getRegex(), reflink: V(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Wr).getRegex() }, Ji = { ...Ro, emStrongRDelimAst: Vf, emStrongLDelim: Bf, delLDelim: Wf, delRDelim: Gf, url: V(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Wa).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: V(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Wa).getRegex() }, np = { ...Ji, br: V(Hl).replace("{2,}", "*").getRegex(), text: V(Ji.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, jr = { normal: Co, gfm: Pf, pedantic: Nf }, Pn = { normal: Ro, gfm: Ji, breaks: np, pedantic: tp }, rp = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Qa = (t) => rp[t];
6109
6111
  function ut(t, e) {
6110
6112
  if (e) {
6111
6113
  if (Ce.escapeTest.test(t)) return t.replace(Ce.escapeReplace, Qa);
@@ -6236,26 +6238,26 @@ var Qr = class {
6236
6238
  else break;
6237
6239
  n = n.slice(c);
6238
6240
  let u = l.join(`
6239
- `), h = u.replace(this.rules.other.blockquoteSetextReplace, `
6241
+ `), d = u.replace(this.rules.other.blockquoteSetextReplace, `
6240
6242
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
6241
6243
  r = r ? `${r}
6242
6244
  ${u}` : u, i = i ? `${i}
6243
- ${h}` : h;
6245
+ ${d}` : d;
6244
6246
  let m = this.lexer.state.top;
6245
- if (this.lexer.state.top = !0, this.lexer.blockTokens(h, o, !0), this.lexer.state.top = m, n.length === 0) break;
6246
- let d = o.at(-1);
6247
- if (d?.type === "code") break;
6248
- if (d?.type === "blockquote") {
6249
- let p = d, b = p.raw + `
6247
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(d, o, !0), this.lexer.state.top = m, n.length === 0) break;
6248
+ let h = o.at(-1);
6249
+ if (h?.type === "code") break;
6250
+ if (h?.type === "blockquote") {
6251
+ let p = h, b = p.raw + `
6250
6252
  ` + n.join(`
6251
6253
  `), S = this.blockquote(b);
6252
6254
  o[o.length - 1] = S, r = r.substring(0, r.length - p.raw.length) + S.raw, i = i.substring(0, i.length - p.text.length) + S.text;
6253
6255
  break;
6254
- } else if (d?.type === "list") {
6255
- let p = d, b = p.raw + `
6256
+ } else if (h?.type === "list") {
6257
+ let p = h, b = p.raw + `
6256
6258
  ` + n.join(`
6257
6259
  `), S = this.list(b);
6258
- o[o.length - 1] = S, r = r.substring(0, r.length - d.raw.length) + S.raw, i = i.substring(0, i.length - p.raw.length) + S.raw, n = b.substring(o.at(-1).raw.length).split(`
6260
+ o[o.length - 1] = S, r = r.substring(0, r.length - h.raw.length) + S.raw, i = i.substring(0, i.length - p.raw.length) + S.raw, n = b.substring(o.at(-1).raw.length).split(`
6259
6261
  `);
6260
6262
  continue;
6261
6263
  }
@@ -6270,31 +6272,31 @@ ${h}` : h;
6270
6272
  n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
6271
6273
  let o = this.rules.other.listItemRegex(n), a = !1;
6272
6274
  for (; t; ) {
6273
- let c = !1, u = "", h = "";
6275
+ let c = !1, u = "", d = "";
6274
6276
  if (!(e = o.exec(t)) || this.rules.block.hr.test(t)) break;
6275
6277
  u = e[0], t = t.substring(u.length);
6276
6278
  let m = op(e[2].split(`
6277
- `, 1)[0], e[1].length), d = t.split(`
6279
+ `, 1)[0], e[1].length), h = t.split(`
6278
6280
  `, 1)[0], p = !m.trim(), b = 0;
6279
- if (this.options.pedantic ? (b = 2, h = m.trimStart()) : p ? b = e[1].length + 1 : (b = m.search(this.rules.other.nonSpaceChar), b = b > 4 ? 1 : b, h = m.slice(b), b += e[1].length), p && this.rules.other.blankLine.test(d) && (u += d + `
6280
- `, t = t.substring(d.length + 1), c = !0), !c) {
6281
+ if (this.options.pedantic ? (b = 2, d = m.trimStart()) : p ? b = e[1].length + 1 : (b = m.search(this.rules.other.nonSpaceChar), b = b > 4 ? 1 : b, d = m.slice(b), b += e[1].length), p && this.rules.other.blankLine.test(h) && (u += h + `
6282
+ `, t = t.substring(h.length + 1), c = !0), !c) {
6281
6283
  let S = this.rules.other.nextBulletRegex(b), y = this.rules.other.hrRegex(b), x = this.rules.other.fencesBeginRegex(b), k = this.rules.other.headingBeginRegex(b), A = this.rules.other.htmlBeginRegex(b), N = this.rules.other.blockquoteBeginRegex(b);
6282
6284
  for (; t; ) {
6283
6285
  let P = t.split(`
6284
6286
  `, 1)[0], I;
6285
- if (d = P, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), I = d) : I = d.replace(this.rules.other.tabCharGlobal, " "), x.test(d) || k.test(d) || A.test(d) || N.test(d) || S.test(d) || y.test(d)) break;
6286
- if (I.search(this.rules.other.nonSpaceChar) >= b || !d.trim()) h += `
6287
+ if (h = P, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), I = h) : I = h.replace(this.rules.other.tabCharGlobal, " "), x.test(h) || k.test(h) || A.test(h) || N.test(h) || S.test(h) || y.test(h)) break;
6288
+ if (I.search(this.rules.other.nonSpaceChar) >= b || !h.trim()) d += `
6287
6289
  ` + I.slice(b);
6288
6290
  else {
6289
6291
  if (p || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || x.test(m) || k.test(m) || y.test(m)) break;
6290
- h += `
6291
- ` + d;
6292
+ d += `
6293
+ ` + h;
6292
6294
  }
6293
- p = !d.trim(), u += P + `
6295
+ p = !h.trim(), u += P + `
6294
6296
  `, t = t.substring(P.length + 1), m = I.slice(b);
6295
6297
  }
6296
6298
  }
6297
- i.loose || (a ? i.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (a = !0)), i.items.push({ type: "list_item", raw: u, task: !!this.options.gfm && this.rules.other.listIsTask.test(h), loose: !1, text: h, tokens: [] }), i.raw += u;
6299
+ i.loose || (a ? i.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (a = !0)), i.items.push({ type: "list_item", raw: u, task: !!this.options.gfm && this.rules.other.listIsTask.test(d), loose: !1, text: d, tokens: [] }), i.raw += u;
6298
6300
  }
6299
6301
  let l = i.items.at(-1);
6300
6302
  if (l) l.raw = l.raw.trimEnd(), l.text = l.text.trimEnd();
@@ -6309,14 +6311,14 @@ ${h}` : h;
6309
6311
  this.lexer.inlineQueue[m].src = this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask, "");
6310
6312
  break;
6311
6313
  }
6312
- let h = this.rules.other.listTaskCheckbox.exec(c.raw);
6313
- if (h) {
6314
- let m = { type: "checkbox", raw: h[0] + " ", checked: h[0] !== "[ ]" };
6314
+ let d = this.rules.other.listTaskCheckbox.exec(c.raw);
6315
+ if (d) {
6316
+ let m = { type: "checkbox", raw: d[0] + " ", checked: d[0] !== "[ ]" };
6315
6317
  c.checked = m.checked, i.loose ? c.tokens[0] && ["paragraph", "text"].includes(c.tokens[0].type) && "tokens" in c.tokens[0] && c.tokens[0].tokens ? (c.tokens[0].raw = m.raw + c.tokens[0].raw, c.tokens[0].text = m.raw + c.tokens[0].text, c.tokens[0].tokens.unshift(m)) : c.tokens.unshift({ type: "paragraph", raw: m.raw, text: m.raw, tokens: [m] }) : c.tokens.unshift(m);
6316
6318
  }
6317
6319
  } else c.task && (c.task = !1);
6318
6320
  if (!i.loose) {
6319
- let h = c.tokens.filter((d) => d.type === "space"), m = h.length > 0 && h.some((d) => this.rules.other.anyLine.test(d.raw));
6321
+ let d = c.tokens.filter((h) => h.type === "space"), m = d.length > 0 && d.some((h) => this.rules.other.anyLine.test(h.raw));
6320
6322
  i.loose = m;
6321
6323
  }
6322
6324
  }
@@ -6433,13 +6435,13 @@ ${h}` : h;
6433
6435
  }
6434
6436
  if (l -= a, l > 0) continue;
6435
6437
  a = Math.min(a, a + l + c);
6436
- let h = [...r[0]][0].length, m = t.slice(0, i + r.index + h + a);
6438
+ let d = [...r[0]][0].length, m = t.slice(0, i + r.index + d + a);
6437
6439
  if (Math.min(i, a) % 2) {
6438
6440
  let p = m.slice(1, -1);
6439
6441
  return { type: "em", raw: m, text: p, tokens: this.lexer.inlineTokens(p) };
6440
6442
  }
6441
- let d = m.slice(2, -2);
6442
- return { type: "strong", raw: m, text: d, tokens: this.lexer.inlineTokens(d) };
6443
+ let h = m.slice(2, -2);
6444
+ return { type: "strong", raw: m, text: h, tokens: this.lexer.inlineTokens(h) };
6443
6445
  }
6444
6446
  }
6445
6447
  }
@@ -6466,8 +6468,8 @@ ${h}` : h;
6466
6468
  }
6467
6469
  if (l -= a, l > 0) continue;
6468
6470
  a = Math.min(a, a + l);
6469
- let u = [...r[0]][0].length, h = t.slice(0, i + r.index + u + a), m = h.slice(i, -i);
6470
- return { type: "del", raw: h, text: m, tokens: this.lexer.inlineTokens(m) };
6471
+ let u = [...r[0]][0].length, d = t.slice(0, i + r.index + u + a), m = d.slice(i, -i);
6472
+ return { type: "del", raw: d, text: m, tokens: this.lexer.inlineTokens(m) };
6471
6473
  }
6472
6474
  }
6473
6475
  }
@@ -6600,8 +6602,8 @@ ${h}` : h;
6600
6602
  let a = e;
6601
6603
  if (this.options.extensions?.startBlock) {
6602
6604
  let l = 1 / 0, c = e.slice(1), u;
6603
- this.options.extensions.startBlock.forEach((h) => {
6604
- u = h.call({ lexer: this }, c), typeof u == "number" && u >= 0 && (l = Math.min(l, u));
6605
+ this.options.extensions.startBlock.forEach((d) => {
6606
+ u = d.call({ lexer: this }, c), typeof u == "number" && u >= 0 && (l = Math.min(l, u));
6605
6607
  }), l < 1 / 0 && l >= 0 && (a = e.substring(0, l + 1));
6606
6608
  }
6607
6609
  if (this.state.top && (o = this.tokenizer.paragraph(a))) {
@@ -6694,14 +6696,14 @@ ${h}` : h;
6694
6696
  e = e.substring(u.raw.length), n.push(u);
6695
6697
  continue;
6696
6698
  }
6697
- let h = e;
6699
+ let d = e;
6698
6700
  if (this.options.extensions?.startInline) {
6699
- let m = 1 / 0, d = e.slice(1), p;
6701
+ let m = 1 / 0, h = e.slice(1), p;
6700
6702
  this.options.extensions.startInline.forEach((b) => {
6701
- p = b.call({ lexer: this }, d), typeof p == "number" && p >= 0 && (m = Math.min(m, p));
6702
- }), m < 1 / 0 && m >= 0 && (h = e.substring(0, m + 1));
6703
+ p = b.call({ lexer: this }, h), typeof p == "number" && p >= 0 && (m = Math.min(m, p));
6704
+ }), m < 1 / 0 && m >= 0 && (d = e.substring(0, m + 1));
6703
6705
  }
6704
- if (u = this.tokenizer.inlineText(h)) {
6706
+ if (u = this.tokenizer.inlineText(d)) {
6705
6707
  e = e.substring(u.raw.length), u.raw.slice(-1) !== "_" && (l = u.raw.slice(-1)), a = !0;
6706
6708
  let m = n.at(-1);
6707
6709
  m?.type === "text" ? (m.raw += u.raw, m.text += u.text) : n.push(u);
@@ -7108,8 +7110,8 @@ ${t}</tr>
7108
7110
  if (["options", "parser"].includes(o)) continue;
7109
7111
  let a = o, l = n.renderer[a], c = i[a];
7110
7112
  i[a] = (...u) => {
7111
- let h = l.apply(i, u);
7112
- return h === !1 && (h = c.apply(i, u)), h || "";
7113
+ let d = l.apply(i, u);
7114
+ return d === !1 && (d = c.apply(i, u)), d || "";
7113
7115
  };
7114
7116
  }
7115
7117
  r.renderer = i;
@@ -7121,8 +7123,8 @@ ${t}</tr>
7121
7123
  if (["options", "rules", "lexer"].includes(o)) continue;
7122
7124
  let a = o, l = n.tokenizer[a], c = i[a];
7123
7125
  i[a] = (...u) => {
7124
- let h = l.apply(i, u);
7125
- return h === !1 && (h = c.apply(i, u)), h;
7126
+ let d = l.apply(i, u);
7127
+ return d === !1 && (d = c.apply(i, u)), d;
7126
7128
  };
7127
7129
  }
7128
7130
  r.tokenizer = i;
@@ -7138,15 +7140,15 @@ ${t}</tr>
7138
7140
  let m = await l.call(i, u);
7139
7141
  return c.call(i, m);
7140
7142
  })();
7141
- let h = l.call(i, u);
7142
- return c.call(i, h);
7143
+ let d = l.call(i, u);
7144
+ return c.call(i, d);
7143
7145
  } : i[a] = (...u) => {
7144
7146
  if (this.defaults.async) return (async () => {
7145
7147
  let m = await l.apply(i, u);
7146
7148
  return m === !1 && (m = await c.apply(i, u)), m;
7147
7149
  })();
7148
- let h = l.apply(i, u);
7149
- return h === !1 && (h = c.apply(i, u)), h;
7150
+ let d = l.apply(i, u);
7151
+ return d === !1 && (d = c.apply(i, u)), d;
7150
7152
  };
7151
7153
  }
7152
7154
  r.hooks = i;
@@ -7209,12 +7211,12 @@ function G(t, e) {
7209
7211
  return Kt.parse(t, e);
7210
7212
  }
7211
7213
  G.options = G.setOptions = function(t) {
7212
- return Kt.setOptions(t), G.defaults = Kt.defaults, zl(G.defaults), G;
7214
+ return Kt.setOptions(t), G.defaults = Kt.defaults, Fl(G.defaults), G;
7213
7215
  };
7214
7216
  G.getDefaults = ko;
7215
7217
  G.defaults = Jt;
7216
7218
  G.use = function(...t) {
7217
- return Kt.use(...t), G.defaults = Kt.defaults, zl(G.defaults), G;
7219
+ return Kt.use(...t), G.defaults = Kt.defaults, Fl(G.defaults), G;
7218
7220
  };
7219
7221
  G.walkTokens = function(t, e) {
7220
7222
  return Kt.walkTokens(t, e);
@@ -7250,8 +7252,8 @@ function cp(t, e) {
7250
7252
  var r, i, o, a, l = [], c = !0, u = !1;
7251
7253
  try {
7252
7254
  if (o = (n = n.call(t)).next, e !== 0) for (; !(c = (r = o.call(n)).done) && (l.push(r.value), l.length !== e); c = !0) ;
7253
- } catch (h) {
7254
- u = !0, i = h;
7255
+ } catch (d) {
7256
+ u = !0, i = d;
7255
7257
  } finally {
7256
7258
  try {
7257
7259
  if (!c && n.return != null && (a = n.return(), Object(a) !== a)) return;
@@ -7276,8 +7278,8 @@ function hp(t, e) {
7276
7278
  return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ja(t, e) : void 0;
7277
7279
  }
7278
7280
  }
7279
- const Yl = Object.entries, Xa = Object.setPrototypeOf, fp = Object.isFrozen, pp = Object.getPrototypeOf, mp = Object.getOwnPropertyDescriptor;
7280
- let _e = Object.freeze, Se = Object.seal, dn = Object.create, Zl = typeof Reflect < "u" && Reflect, to = Zl.apply, no = Zl.construct;
7281
+ const Zl = Object.entries, Xa = Object.setPrototypeOf, fp = Object.isFrozen, pp = Object.getPrototypeOf, mp = Object.getOwnPropertyDescriptor;
7282
+ let _e = Object.freeze, Se = Object.seal, dn = Object.create, Jl = typeof Reflect < "u" && Reflect, to = Jl.apply, no = Jl.construct;
7281
7283
  _e || (_e = function(e) {
7282
7284
  return e;
7283
7285
  });
@@ -7332,7 +7334,7 @@ function kp(t) {
7332
7334
  }
7333
7335
  function Ie(t) {
7334
7336
  const e = dn(null);
7335
- for (const r of Yl(t)) {
7337
+ for (const r of Zl(t)) {
7336
7338
  var n = dp(r, 2);
7337
7339
  const i = n[0], o = n[1];
7338
7340
  ve(t, i) && (Mt(o) ? e[i] = kp(o) : o && typeof o == "object" && o.constructor === Object ? e[i] = Ie(o) : e[i] = o);
@@ -7449,9 +7451,9 @@ const os = _e(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
7449
7451
  }, Et = function(e, n, r, i) {
7450
7452
  return ve(e, n) && Mt(e[n]) ? U(i.base ? Ie(i.base) : {}, e[n], i.transform) : r;
7451
7453
  };
7452
- function Jl() {
7454
+ function Xl() {
7453
7455
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : qp();
7454
- const e = (j) => Jl(j);
7456
+ const e = (j) => Xl(j);
7455
7457
  if (e.version = "3.4.11", e.removed = [], !t || !t.document || t.document.nodeType !== ct.document || !t.Element)
7456
7458
  return e.isSupported = !1, e;
7457
7459
  let n = t.document;
@@ -7459,7 +7461,7 @@ function Jl() {
7459
7461
  t.DocumentFragment;
7460
7462
  const o = t.HTMLTemplateElement, a = t.Node, l = t.Element, c = t.NodeFilter, u = t.NamedNodeMap;
7461
7463
  u === void 0 && (t.NamedNodeMap || t.MozNamedAttrMap), t.HTMLFormElement;
7462
- const h = t.DOMParser, m = t.trustedTypes, d = l.prototype, p = dt(d, "cloneNode"), b = dt(d, "remove"), S = dt(d, "nextSibling"), y = dt(d, "childNodes"), x = dt(d, "parentNode"), k = dt(d, "shadowRoot"), A = dt(d, "attributes"), N = a && a.prototype ? dt(a.prototype, "nodeType") : null, P = a && a.prototype ? dt(a.prototype, "nodeName") : null;
7464
+ const d = t.DOMParser, m = t.trustedTypes, h = l.prototype, p = dt(h, "cloneNode"), b = dt(h, "remove"), S = dt(h, "nextSibling"), y = dt(h, "childNodes"), x = dt(h, "parentNode"), k = dt(h, "shadowRoot"), A = dt(h, "attributes"), N = a && a.prototype ? dt(a.prototype, "nodeType") : null, P = a && a.prototype ? dt(a.prototype, "nodeName") : null;
7463
7465
  if (typeof o == "function") {
7464
7466
  const j = n.createElement("template");
7465
7467
  j.content && j.content.ownerDocument && (n = j.content.ownerDocument);
@@ -7486,7 +7488,7 @@ function Jl() {
7486
7488
  return ie || (v = zp(m, i), ie = !0), v;
7487
7489
  }, Ne = n, Me = Ne.implementation, it = Ne.createNodeIterator, Tt = Ne.createDocumentFragment, bt = Ne.getElementsByTagName, Dt = r.importNode;
7488
7490
  let X = ds();
7489
- e.isSupported = typeof Yl == "function" && typeof x == "function" && Me && Me.createHTMLDocument !== void 0;
7491
+ e.isSupported = typeof Zl == "function" && typeof x == "function" && Me && Me.createHTMLDocument !== void 0;
7490
7492
  const Ve = Cp, oe = Ap, z = Rp, Oe = Ep, Ze = Ip, qt = Pp, xe = Np, He = Op;
7491
7493
  let we = cs, J = null;
7492
7494
  const zt = U({}, [...os, ...Si, ...Ti, ...Ci, ...as]);
@@ -7571,26 +7573,26 @@ function Jl() {
7571
7573
  let ri = null;
7572
7574
  const Oo = U({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), pr = "http://www.w3.org/1998/Math/MathML", mr = "http://www.w3.org/2000/svg", st = "http://www.w3.org/1999/xhtml";
7573
7575
  let rn = st, ii = !1, oi = null;
7574
- const bc = U({}, [pr, mr, st], ji), Lo = _e(["mi", "mo", "mn", "ms", "mtext"]);
7576
+ const yc = U({}, [pr, mr, st], ji), Lo = _e(["mi", "mo", "mn", "ms", "mtext"]);
7575
7577
  let ai = U({}, Lo);
7576
7578
  const $o = _e(["annotation-xml"]);
7577
7579
  let si = U({}, $o);
7578
- const yc = U({}, ["title", "style", "font", "a", "script"]);
7580
+ const vc = U({}, ["title", "style", "font", "a", "script"]);
7579
7581
  let En = null;
7580
- const vc = ["application/xhtml+xml", "text/html"], wc = "text/html";
7582
+ const wc = ["application/xhtml+xml", "text/html"], kc = "text/html";
7581
7583
  let ue = null, on = null;
7582
- const kc = n.createElement("form"), Do = function(f) {
7584
+ const _c = n.createElement("form"), Do = function(f) {
7583
7585
  return f instanceof RegExp || f instanceof Function;
7584
7586
  }, li = function() {
7585
7587
  let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7586
7588
  if (on && on === f)
7587
7589
  return;
7588
7590
  (!f || typeof f != "object") && (f = {}), f = Ie(f), En = // eslint-disable-next-line unicorn/prefer-includes
7589
- vc.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? wc : f.PARSER_MEDIA_TYPE, ue = En === "application/xhtml+xml" ? ji : Fn, J = Et(f, "ALLOWED_TAGS", zt, {
7591
+ wc.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? kc : f.PARSER_MEDIA_TYPE, ue = En === "application/xhtml+xml" ? ji : Fn, J = Et(f, "ALLOWED_TAGS", zt, {
7590
7592
  transform: ue
7591
7593
  }), w = Et(f, "ALLOWED_ATTR", $, {
7592
7594
  transform: ue
7593
- }), oi = Et(f, "ALLOWED_NAMESPACES", bc, {
7595
+ }), oi = Et(f, "ALLOWED_NAMESPACES", yc, {
7594
7596
  transform: ji
7595
7597
  }), ri = Et(f, "ADD_URI_SAFE_ATTR", Oo, {
7596
7598
  transform: ue,
@@ -7620,20 +7622,20 @@ function Jl() {
7620
7622
  }
7621
7623
  } else f.TRUSTED_TYPES_POLICY === null ? (I = void 0, L = "") : (I === void 0 && (I = Z()), I && typeof L == "string" && (L = ne("")));
7622
7624
  _e && _e(f), on = f;
7623
- }, qo = U({}, [...Si, ...Ti, ...Sp]), zo = U({}, [...Ci, ...Tp]), _c = function(f, g, _) {
7625
+ }, qo = U({}, [...Si, ...Ti, ...Sp]), zo = U({}, [...Ci, ...Tp]), jc = function(f, g, _) {
7624
7626
  return g.namespaceURI === st ? f === "svg" : g.namespaceURI === pr ? f === "svg" && (_ === "annotation-xml" || ai[_]) : !!qo[f];
7625
- }, jc = function(f, g, _) {
7626
- return g.namespaceURI === st ? f === "math" : g.namespaceURI === mr ? f === "math" && si[_] : !!zo[f];
7627
7627
  }, Sc = function(f, g, _) {
7628
- return g.namespaceURI === mr && !si[_] || g.namespaceURI === pr && !ai[_] ? !1 : !zo[f] && (yc[f] || !qo[f]);
7629
- }, Tc = function(f) {
7628
+ return g.namespaceURI === st ? f === "math" : g.namespaceURI === mr ? f === "math" && si[_] : !!zo[f];
7629
+ }, Tc = function(f, g, _) {
7630
+ return g.namespaceURI === mr && !si[_] || g.namespaceURI === pr && !ai[_] ? !1 : !zo[f] && (vc[f] || !qo[f]);
7631
+ }, Cc = function(f) {
7630
7632
  let g = x(f);
7631
7633
  (!g || !g.tagName) && (g = {
7632
7634
  namespaceURI: rn,
7633
7635
  tagName: "template"
7634
7636
  });
7635
7637
  const _ = Fn(f.tagName), C = Fn(g.tagName);
7636
- return oi[f.namespaceURI] ? f.namespaceURI === mr ? _c(_, g, C) : f.namespaceURI === pr ? jc(_, g, C) : f.namespaceURI === st ? Sc(_, g, C) : !!(En === "application/xhtml+xml" && oi[f.namespaceURI]) : !1;
7638
+ return oi[f.namespaceURI] ? f.namespaceURI === mr ? jc(_, g, C) : f.namespaceURI === pr ? Sc(_, g, C) : f.namespaceURI === st ? Tc(_, g, C) : !!(En === "application/xhtml+xml" && oi[f.namespaceURI]) : !1;
7637
7639
  }, At = function(f) {
7638
7640
  cn(e.removed, {
7639
7641
  element: f
@@ -7690,7 +7692,7 @@ function Jl() {
7690
7692
  g.setAttribute(f, "");
7691
7693
  } catch {
7692
7694
  }
7693
- }, Cc = function(f) {
7695
+ }, Ac = function(f) {
7694
7696
  const g = A(f);
7695
7697
  if (g)
7696
7698
  for (let _ = g.length - 1; _ >= 0; --_) {
@@ -7701,11 +7703,11 @@ function Jl() {
7701
7703
  } catch {
7702
7704
  }
7703
7705
  }
7704
- }, Ac = function(f) {
7706
+ }, Rc = function(f) {
7705
7707
  const g = [f];
7706
7708
  for (; g.length > 0; ) {
7707
7709
  const _ = g.pop();
7708
- (N ? N(_) : _.nodeType) === ct.element && Cc(_);
7710
+ (N ? N(_) : _.nodeType) === ct.element && Ac(_);
7709
7711
  const O = y(_);
7710
7712
  if (O)
7711
7713
  for (let Q = O.length - 1; Q >= 0; --Q)
@@ -7723,7 +7725,7 @@ function Jl() {
7723
7725
  const C = I ? ne(f) : f;
7724
7726
  if (rn === st)
7725
7727
  try {
7726
- g = new h().parseFromString(C, En);
7728
+ g = new d().parseFromString(C, En);
7727
7729
  } catch {
7728
7730
  }
7729
7731
  if (!g || !g.documentElement) {
@@ -7810,9 +7812,9 @@ function Jl() {
7810
7812
  _.call(e, f, g, on);
7811
7813
  });
7812
7814
  }
7813
- const Rc = function(f, g) {
7815
+ const Ec = function(f, g) {
7814
7816
  return !!(Ft && f.hasChildNodes() && !In(f.firstElementChild) && ke(us, f.textContent) && ke(us, f.innerHTML) || Ft && f.namespaceURI === st && g === "style" && In(f.firstElementChild) || f.nodeType === ct.processingInstruction || Ft && f.nodeType === ct.comment && ke(Lp, f.data));
7815
- }, Ec = function(f, g) {
7817
+ }, Ic = function(f, g) {
7816
7818
  if (!ae[g] && Wo(g) && (B.tagNameCheck instanceof RegExp && ke(B.tagNameCheck, g) || B.tagNameCheck instanceof Function && B.tagNameCheck(g)))
7817
7819
  return !1;
7818
7820
  if (Je && !We[g]) {
@@ -7833,11 +7835,11 @@ function Jl() {
7833
7835
  if (vt(X.uponSanitizeElement, f, {
7834
7836
  tagName: g,
7835
7837
  allowedTags: J
7836
- }), Rc(f, g))
7838
+ }), Ec(f, g))
7837
7839
  return At(f), !0;
7838
7840
  if (ae[g] || !(Re.tagCheck instanceof Function && Re.tagCheck(g)) && !J[g])
7839
- return Ec(f, g);
7840
- if ((N ? N(f) : f.nodeType) === ct.element && !Tc(f) || (g === "noscript" || g === "noembed" || g === "noframes") && ke($p, f.innerHTML))
7841
+ return Ic(f, g);
7842
+ if ((N ? N(f) : f.nodeType) === ct.element && !Cc(f) || (g === "noscript" || g === "noembed" || g === "noframes") && ke($p, f.innerHTML))
7841
7843
  return At(f), !0;
7842
7844
  if (at && f.nodeType === ct.text) {
7843
7845
  const C = gr(f.textContent);
@@ -7847,7 +7849,7 @@ function Jl() {
7847
7849
  }
7848
7850
  return vt(X.afterSanitizeElements, f, null), !1;
7849
7851
  }, Ho = function(f, g, _) {
7850
- if (ot[g] || W && (g === "id" || g === "name") && (_ in n || _ in kc))
7852
+ if (ot[g] || W && (g === "id" || g === "name") && (_ in n || _ in _c))
7851
7853
  return !1;
7852
7854
  const C = w[g] || Re.attributeCheck instanceof Function && Re.attributeCheck(g, f);
7853
7855
  if (!(Xt && ke(Oe, g))) {
@@ -7874,9 +7876,9 @@ function Jl() {
7874
7876
  }
7875
7877
  }
7876
7878
  return !0;
7877
- }, Ic = U({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Wo = function(f) {
7878
- return !Ic[Fn(f)] && ke(He, f);
7879
- }, Pc = function(f, g, _, C) {
7879
+ }, Pc = U({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Wo = function(f) {
7880
+ return !Pc[Fn(f)] && ke(He, f);
7881
+ }, Nc = function(f, g, _, C) {
7880
7882
  if (I && typeof m == "object" && typeof m.getAttributeType == "function" && !_)
7881
7883
  switch (m.getAttributeType(f, g)) {
7882
7884
  case "TrustedHTML":
@@ -7885,7 +7887,7 @@ function Jl() {
7885
7887
  return T(C);
7886
7888
  }
7887
7889
  return C;
7888
- }, Nc = function(f, g, _, C) {
7890
+ }, Mc = function(f, g, _, C) {
7889
7891
  try {
7890
7892
  _ ? f.setAttributeNS(_, g, C) : f.setAttribute(g, C), xr(f) ? At(f) : es(e.removed);
7891
7893
  } catch {
@@ -7929,7 +7931,7 @@ function Jl() {
7929
7931
  Bt(ye, f);
7930
7932
  continue;
7931
7933
  }
7932
- Ee = Pc(O, Xe, he, Ee), Ee !== di && Nc(f, ye, he, Ee);
7934
+ Ee = Nc(O, Xe, he, Ee), Ee !== di && Mc(f, ye, he, Ee);
7933
7935
  }
7934
7936
  }
7935
7937
  vt(X.afterSanitizeAttributes, f, null);
@@ -8023,7 +8025,7 @@ function Jl() {
8023
8025
  }
8024
8026
  if (Q)
8025
8027
  return Nn(e.removed, (Qe) => {
8026
- Qe.element && Ac(Qe.element);
8028
+ Qe.element && Rc(Qe.element);
8027
8029
  }), at && ci(j), j;
8028
8030
  if (Ct) {
8029
8031
  if (at && ci(g), tn)
@@ -8061,7 +8063,7 @@ function Jl() {
8061
8063
  X = ds();
8062
8064
  }, e;
8063
8065
  }
8064
- var Fp = Jl();
8066
+ var Fp = Xl();
8065
8067
  function Bp(t) {
8066
8068
  return t.trim().split(/\n\s*-{3,}\s*\n/).map((e) => {
8067
8069
  const [n = "", ...r] = e.trim().split(`
@@ -8128,7 +8130,7 @@ function Wp({ text: t }) {
8128
8130
  const e = be(() => Hp(t), [t]);
8129
8131
  return /* @__PURE__ */ s("div", { class: "jex-md", dangerouslySetInnerHTML: { __html: e } });
8130
8132
  }
8131
- function Xl({ onQuote: t }) {
8133
+ function ec({ onQuote: t }) {
8132
8134
  const e = R();
8133
8135
  return /* @__PURE__ */ s(
8134
8136
  "button",
@@ -8153,11 +8155,11 @@ function Gp({ authorLabel: t, content: e, onClick: n }) {
8153
8155
  t,
8154
8156
  ": "
8155
8157
  ] }),
8156
- Nl(e)
8158
+ Ml(e)
8157
8159
  ] })
8158
8160
  ] });
8159
8161
  }
8160
- function ec({ quotes: t, botName: e, yourMessageLabel: n, onQuotedClick: r }) {
8162
+ function tc({ quotes: t, botName: e, yourMessageLabel: n, onQuotedClick: r }) {
8161
8163
  return t.length === 0 ? null : /* @__PURE__ */ s("div", { class: "jex-quoted-list", children: t.map((i) => /* @__PURE__ */ s(
8162
8164
  Gp,
8163
8165
  {
@@ -8174,8 +8176,8 @@ function Kp(t) {
8174
8176
  const e = t.trim().split(/\s+/).filter(Boolean);
8175
8177
  return e.length === 0 ? "?" : e.map((n) => n[0]).join("").slice(0, 2).toUpperCase();
8176
8178
  }
8177
- function Vt({ text: t, streaming: e, error: n, authorId: r, authorName: i, authorImage: o, botAvatarUrl: a, botName: l, onQuote: c, id: u, quoted: h, onQuotedClick: m }) {
8178
- const d = R(), p = !!r, [b, S] = F(!1), y = Y(() => S(!0), []), x = p ? i ?? "" : l ?? "", k = [
8179
+ function Vt({ text: t, streaming: e, error: n, authorId: r, authorName: i, authorImage: o, botAvatarUrl: a, botName: l, onQuote: c, id: u, quoted: d, onQuotedClick: m }) {
8180
+ const h = R(), p = !!r, [b, S] = F(!1), y = Y(() => S(!0), []), x = p ? i ?? "" : l ?? "", k = [
8179
8181
  "jex-message bot",
8180
8182
  n ? "jex-message-error" : ""
8181
8183
  ].filter(Boolean).join(" ");
@@ -8186,17 +8188,17 @@ function Vt({ text: t, streaming: e, error: n, authorId: r, authorName: i, autho
8186
8188
  ] }),
8187
8189
  /* @__PURE__ */ s("div", { class: k, id: u, children: [
8188
8190
  /* @__PURE__ */ s(
8189
- ec,
8191
+ tc,
8190
8192
  {
8191
- quotes: h ?? [],
8193
+ quotes: d ?? [],
8192
8194
  botName: l,
8193
- yourMessageLabel: d.quotedYourMessage,
8195
+ yourMessageLabel: h.quotedYourMessage,
8194
8196
  onQuotedClick: m
8195
8197
  }
8196
8198
  ),
8197
8199
  /* @__PURE__ */ s(Wp, { text: t }),
8198
8200
  e && /* @__PURE__ */ s("span", { class: "jex-streaming-cursor" }),
8199
- c && /* @__PURE__ */ s(Xl, { onQuote: c })
8201
+ c && /* @__PURE__ */ s(ec, { onQuote: c })
8200
8202
  ] })
8201
8203
  ] });
8202
8204
  }
@@ -8233,7 +8235,7 @@ function Jp({ text: t, id: e, onQuote: n, botName: r, quoted: i, onQuotedClick:
8233
8235
  const l = R();
8234
8236
  return /* @__PURE__ */ s("div", { class: "jex-message user", id: e, children: [
8235
8237
  /* @__PURE__ */ s(
8236
- ec,
8238
+ tc,
8237
8239
  {
8238
8240
  quotes: i ?? [],
8239
8241
  botName: r,
@@ -8242,13 +8244,13 @@ function Jp({ text: t, id: e, onQuote: n, botName: r, quoted: i, onQuotedClick:
8242
8244
  }
8243
8245
  ),
8244
8246
  Zp(t, a ?? []),
8245
- n && /* @__PURE__ */ s(Xl, { onQuote: n })
8247
+ n && /* @__PURE__ */ s(ec, { onQuote: n })
8246
8248
  ] });
8247
8249
  }
8248
- function tc() {
8250
+ function nc() {
8249
8251
  return Yt(je.escalations.public.submitEscalation);
8250
8252
  }
8251
- function nc() {
8253
+ function rc() {
8252
8254
  const t = Yt(je.escalations.public.markEscalationWaiting);
8253
8255
  return (e) => {
8254
8256
  nr.value = e, t({ sessionId: e.sessionId, visitorId: e.visitorId }).catch((n) => {
@@ -8279,10 +8281,10 @@ function Xp({ message: t, sessionId: e, visitorId: n, waitingSetAt: r }) {
8279
8281
  ) });
8280
8282
  }
8281
8283
  function em({ messageId: t, sessionId: e, visitorId: n, waitingSetAt: r }) {
8282
- const i = R(), [o, a] = F(""), [l, c] = F(""), [u, h] = F(!1), m = cr.value, d = /^https?:\/\//i.test(m) ? m : lr, p = tc(), b = nc();
8284
+ const i = R(), [o, a] = F(""), [l, c] = F(""), [u, d] = F(!1), m = cr.value, h = /^https?:\/\//i.test(m) ? m : lr, p = nc(), b = rc();
8283
8285
  async function S(y) {
8284
8286
  if (y.preventDefault(), !u) {
8285
- h(!0);
8287
+ d(!0);
8286
8288
  try {
8287
8289
  await p({
8288
8290
  sessionId: e,
@@ -8293,7 +8295,7 @@ function em({ messageId: t, sessionId: e, visitorId: n, waitingSetAt: r }) {
8293
8295
  locale: xt.value
8294
8296
  });
8295
8297
  } catch (x) {
8296
- me.error("[FormMessage] Submit failed:", x), h(!1);
8298
+ me.error("[FormMessage] Submit failed:", x), d(!1);
8297
8299
  }
8298
8300
  }
8299
8301
  }
@@ -8346,7 +8348,7 @@ function em({ messageId: t, sessionId: e, visitorId: n, waitingSetAt: r }) {
8346
8348
  /* @__PURE__ */ s("div", { class: "jex-inline-form-consent", children: [
8347
8349
  i.escalationConsent,
8348
8350
  " ",
8349
- /* @__PURE__ */ s("a", { href: d, target: "_blank", rel: "noopener noreferrer", class: "jex-privacy-notice-link", children: i.escalationPrivacyLinkText }),
8351
+ /* @__PURE__ */ s("a", { href: h, target: "_blank", rel: "noopener noreferrer", class: "jex-privacy-notice-link", children: i.escalationPrivacyLinkText }),
8350
8352
  "."
8351
8353
  ] })
8352
8354
  ] });
@@ -8363,14 +8365,14 @@ function rm() {
8363
8365
  function im() {
8364
8366
  return ar(je.functions.magicline.actions.getRateBundles);
8365
8367
  }
8366
- function rc() {
8368
+ function ic() {
8367
8369
  return ar(je.functions.magicline.actions.getContractPreview);
8368
8370
  }
8369
8371
  function om() {
8370
8372
  return ar(je.functions.magicline.actions.submitContractCreation);
8371
8373
  }
8372
- const Io = { en: go, de: jl }, am = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
8373
- function ic(t) {
8374
+ const Io = { en: go, de: Sl }, am = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
8375
+ function oc(t) {
8374
8376
  return am.test(t.trim());
8375
8377
  }
8376
8378
  function sm(t, e = /* @__PURE__ */ new Date()) {
@@ -8387,11 +8389,11 @@ function sm(t, e = /* @__PURE__ */ new Date()) {
8387
8389
  const c = e.getMonth() + 1 - o;
8388
8390
  return (c < 0 || c === 0 && e.getDate() < a) && (l -= 1), l;
8389
8391
  }
8390
- function oc(t = /* @__PURE__ */ new Date()) {
8392
+ function ac(t = /* @__PURE__ */ new Date()) {
8391
8393
  const e = t.getFullYear(), n = String(t.getMonth() + 1).padStart(2, "0"), r = String(t.getDate()).padStart(2, "0");
8392
8394
  return `${e}-${n}-${r}`;
8393
8395
  }
8394
- function ac() {
8396
+ function sc() {
8395
8397
  const t = cr.value;
8396
8398
  return /^https?:\/\//i.test(t) ? t : lr;
8397
8399
  }
@@ -8412,11 +8414,11 @@ const lm = {
8412
8414
  FI: 18,
8413
8415
  PT: 25
8414
8416
  }, cm = 15, um = 34;
8415
- function sc(t) {
8417
+ function lc(t) {
8416
8418
  return t.replace(/\s+/g, "").toUpperCase();
8417
8419
  }
8418
8420
  function dm(t) {
8419
- const e = sc(t), n = e.slice(0, 2), r = lm[n];
8421
+ const e = lc(t), n = e.slice(0, 2), r = lm[n];
8420
8422
  if (r !== void 0) {
8421
8423
  if (e.length !== r)
8422
8424
  return !1;
@@ -8441,7 +8443,7 @@ function dm(t) {
8441
8443
  return a === 1;
8442
8444
  }
8443
8445
  function hm(t) {
8444
- const e = sc(t);
8446
+ const e = lc(t);
8445
8447
  if (e.length <= 8)
8446
8448
  return e;
8447
8449
  const n = e.slice(0, 4), r = e.slice(-4);
@@ -8519,7 +8521,7 @@ const gm = {
8519
8521
  "starter package": "magiclineFeeStarterPackage",
8520
8522
  trainerpauschale: "magiclineFeeTrainerFee"
8521
8523
  };
8522
- function lc(t, e) {
8524
+ function cc(t, e) {
8523
8525
  const n = t.trim().toLowerCase(), r = gm[n];
8524
8526
  return r !== void 0 ? e[r] : t;
8525
8527
  }
@@ -8533,7 +8535,7 @@ function xm(t, e, n) {
8533
8535
  }
8534
8536
  return "";
8535
8537
  }
8536
- const cc = ["MALE", "FEMALE", "UNISEX"], bm = [
8538
+ const uc = ["MALE", "FEMALE", "UNISEX"], bm = [
8537
8539
  { code: "DE", label: "Germany / Deutschland" },
8538
8540
  { code: "AT", label: "Austria / Österreich" },
8539
8541
  { code: "CH", label: "Switzerland / Schweiz" },
@@ -8593,7 +8595,7 @@ function km({
8593
8595
  ), [c, u] = Be(
8594
8596
  (x, k) => k,
8595
8597
  { phase: "loading" }
8596
- ), [h, m] = Be((x) => x + 1, 0), d = Y((x, k) => {
8598
+ ), [d, m] = Be((x) => x + 1, 0), h = Y((x, k) => {
8597
8599
  o({ type: "set", key: x, value: k });
8598
8600
  }, []), p = Y((x) => {
8599
8601
  o({ type: "setTrainer", trainerRequired: x }), m();
@@ -8647,9 +8649,9 @@ function km({
8647
8649
  })(), () => {
8648
8650
  x = !0;
8649
8651
  };
8650
- }, [S, r, t, e, y, h]), {
8652
+ }, [S, r, t, e, y, d]), {
8651
8653
  fields: i,
8652
- setField: d,
8654
+ setField: h,
8653
8655
  setTrainerRequired: p,
8654
8656
  configState: a,
8655
8657
  slotsState: c,
@@ -8663,13 +8665,13 @@ function _m({
8663
8665
  slotUnavailable: r = !1,
8664
8666
  retryPending: i = !1
8665
8667
  }) {
8666
- const o = R(), a = tm(), { fields: l, setField: c, setTrainerRequired: u, configState: h, slotsState: m, refetchSlots: d } = km({ sessionId: e, visitorId: n });
8667
- return h.phase === "loading" ? /* @__PURE__ */ s("div", { class: "jex-inline-form jex-magicline-form", children: [
8668
+ const o = R(), a = tm(), { fields: l, setField: c, setTrainerRequired: u, configState: d, slotsState: m, refetchSlots: h } = km({ sessionId: e, visitorId: n });
8669
+ return d.phase === "loading" ? /* @__PURE__ */ s("div", { class: "jex-inline-form jex-magicline-form", children: [
8668
8670
  /* @__PURE__ */ s("div", { class: "jex-inline-form-title", children: o.magiclineTrialTitle }),
8669
8671
  /* @__PURE__ */ s("div", { class: "jex-magicline-slots-hint", children: o.magiclineConfigLoading })
8670
- ] }) : h.phase === "error" ? /* @__PURE__ */ s("div", { class: "jex-inline-form jex-magicline-form", children: [
8672
+ ] }) : d.phase === "error" ? /* @__PURE__ */ s("div", { class: "jex-inline-form jex-magicline-form", children: [
8671
8673
  /* @__PURE__ */ s("div", { class: "jex-inline-form-title", children: o.magiclineTrialTitle }),
8672
- /* @__PURE__ */ s("div", { class: "jex-magicline-slots-hint", role: "alert", children: Im(h.code, h.backendMessage, o) })
8674
+ /* @__PURE__ */ s("div", { class: "jex-magicline-slots-hint", role: "alert", children: Im(d.code, d.backendMessage, o) })
8673
8675
  ] }) : /* @__PURE__ */ s(
8674
8676
  jm,
8675
8677
  {
@@ -8678,12 +8680,12 @@ function _m({
8678
8680
  visitorId: n,
8679
8681
  slotUnavailable: r,
8680
8682
  retryPending: i,
8681
- config: h.config,
8683
+ config: d.config,
8682
8684
  fields: l,
8683
8685
  setField: c,
8684
8686
  setTrainerRequired: u,
8685
8687
  slotsState: m,
8686
- refetchSlots: d,
8688
+ refetchSlots: h,
8687
8689
  submitForm: a
8688
8690
  }
8689
8691
  );
@@ -8699,25 +8701,25 @@ function jm({
8699
8701
  setField: l,
8700
8702
  setTrainerRequired: c,
8701
8703
  slotsState: u,
8702
- refetchSlots: h,
8704
+ refetchSlots: d,
8703
8705
  submitForm: m
8704
8706
  }) {
8705
- const d = R(), { plan: p, minimumAge: b, bookingWithoutTrainerAllowed: S, studioZoneId: y } = o, x = be(
8707
+ const h = R(), { plan: p, minimumAge: b, bookingWithoutTrainerAllowed: S, studioZoneId: y } = o, x = be(
8706
8708
  () => ym(p, S),
8707
8709
  [p, S]
8708
- ), k = r ? Math.max(x.indexOf("slot"), 0) : 0, [A, N] = F(k), [P, I] = F({}), [L, v] = F(!1), [ie, D] = F(null), K = be(() => ac(), []), ne = Math.min(A, x.length - 1), T = x[ne] ?? "slot", Z = ne === x.length - 1, Ne = ne === 0;
8710
+ ), k = r ? Math.max(x.indexOf("slot"), 0) : 0, [A, N] = F(k), [P, I] = F({}), [L, v] = F(!1), [ie, D] = F(null), K = be(() => sc(), []), ne = Math.min(A, x.length - 1), T = x[ne] ?? "slot", Z = ne === x.length - 1, Ne = ne === 0;
8709
8711
  function Me(oe) {
8710
8712
  const z = {};
8711
8713
  if (oe === "slot")
8712
- return a.slotId === "" && (z.slotId = d.magiclineSlotRequiredError), z;
8714
+ return a.slotId === "" && (z.slotId = h.magiclineSlotRequiredError), z;
8713
8715
  if (oe === "personal") {
8714
- if (a.firstName.trim() === "" && (z.firstName = d.magiclineRequiredError), a.lastName.trim() === "" && (z.lastName = d.magiclineRequiredError), p.email.visible && p.email.required && a.email.trim() === "" && (z.email = d.magiclineRequiredError), a.email.trim() !== "" && !ic(a.email) && (z.email = d.magiclineEmailError), p.phone.visible && p.phone.required && a.phone.trim() === "" && (z.phone = d.magiclineRequiredError), p.gender.visible && p.gender.required && a.gender === "" && (z.gender = d.magiclineRequiredError), p.dateOfBirth.visible && (p.dateOfBirth.required && a.birthDate.trim() === "" && (z.birthDate = d.magiclineRequiredError), a.birthDate.trim() !== "")) {
8716
+ if (a.firstName.trim() === "" && (z.firstName = h.magiclineRequiredError), a.lastName.trim() === "" && (z.lastName = h.magiclineRequiredError), p.email.visible && p.email.required && a.email.trim() === "" && (z.email = h.magiclineRequiredError), a.email.trim() !== "" && !oc(a.email) && (z.email = h.magiclineEmailError), p.phone.visible && p.phone.required && a.phone.trim() === "" && (z.phone = h.magiclineRequiredError), p.gender.visible && p.gender.required && a.gender === "" && (z.gender = h.magiclineRequiredError), p.dateOfBirth.visible && (p.dateOfBirth.required && a.birthDate.trim() === "" && (z.birthDate = h.magiclineRequiredError), a.birthDate.trim() !== "")) {
8715
8717
  const Oe = sm(a.birthDate);
8716
- Oe !== null && Oe < 0 ? z.birthDate = d.magiclineRequiredError : b > 0 && Oe !== null && Oe < b && (z.birthDate = d.magiclineMinAgeError.replace("{age}", String(b)));
8718
+ Oe !== null && Oe < 0 ? z.birthDate = h.magiclineRequiredError : b > 0 && Oe !== null && Oe < b && (z.birthDate = h.magiclineMinAgeError.replace("{age}", String(b)));
8717
8719
  }
8718
8720
  return z;
8719
8721
  }
8720
- return oe === "address" ? (p.address.visible && p.address.required && (a.street.trim() === "" && (z.street = d.magiclineRequiredError), a.houseNumber.trim() === "" && (z.houseNumber = d.magiclineRequiredError), a.city.trim() === "" && (z.city = d.magiclineRequiredError), a.country === "" && (z.country = d.magiclineRequiredError)), p.zip.visible && p.zip.required && a.zip.trim() === "" && (z.zip = d.magiclineRequiredError), z) : (oe === "confirm" && (a.consent || (z.consent = d.magiclineConsentError)), z);
8722
+ return oe === "address" ? (p.address.visible && p.address.required && (a.street.trim() === "" && (z.street = h.magiclineRequiredError), a.houseNumber.trim() === "" && (z.houseNumber = h.magiclineRequiredError), a.city.trim() === "" && (z.city = h.magiclineRequiredError), a.country === "" && (z.country = h.magiclineRequiredError)), p.zip.visible && p.zip.required && a.zip.trim() === "" && (z.zip = h.magiclineRequiredError), z) : (oe === "confirm" && (a.consent || (z.consent = h.magiclineConsentError)), z);
8721
8723
  }
8722
8724
  function it() {
8723
8725
  const oe = Me(T);
@@ -8749,19 +8751,19 @@ function jm({
8749
8751
  fields: z
8750
8752
  });
8751
8753
  } catch (z) {
8752
- me.error("[TrialSessionBookingForm] Submit failed:", z), D(d.magiclineFailedDetail), v(!1);
8754
+ me.error("[TrialSessionBookingForm] Submit failed:", z), D(h.magiclineFailedDetail), v(!1);
8753
8755
  }
8754
8756
  }
8755
8757
  function Dt() {
8756
8758
  Z ? bt() : it();
8757
8759
  }
8758
- const X = Em(T, d), Ve = `jex-ml-consent-${t}`;
8760
+ const X = Em(T, h), Ve = `jex-ml-consent-${t}`;
8759
8761
  return /* @__PURE__ */ s("div", { class: "jex-inline-form jex-magicline-form", children: [
8760
8762
  /* @__PURE__ */ s("div", { class: "jex-magicline-wizard-header", children: [
8761
- /* @__PURE__ */ s("div", { class: "jex-inline-form-title", children: d.magiclineTrialTitle }),
8763
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-title", children: h.magiclineTrialTitle }),
8762
8764
  /* @__PURE__ */ s("div", { class: "jex-magicline-wizard-progress", children: [
8763
8765
  /* @__PURE__ */ s("span", { class: "jex-magicline-wizard-step-label", children: X }),
8764
- /* @__PURE__ */ s("span", { class: "jex-magicline-wizard-counter", children: d.magiclineStepCounter.replace("{n}", String(ne + 1)).replace("{total}", String(x.length)) })
8766
+ /* @__PURE__ */ s("span", { class: "jex-magicline-wizard-counter", children: h.magiclineStepCounter.replace("{n}", String(ne + 1)).replace("{total}", String(x.length)) })
8765
8767
  ] }),
8766
8768
  /* @__PURE__ */ s("div", { class: "jex-magicline-wizard-dots", "aria-hidden": "true", children: x.map((oe, z) => /* @__PURE__ */ s(
8767
8769
  "span",
@@ -8794,7 +8796,7 @@ function jm({
8794
8796
  onSelect: (oe) => {
8795
8797
  l("slotId", oe);
8796
8798
  },
8797
- onRetry: h
8799
+ onRetry: d
8798
8800
  }
8799
8801
  ) : null,
8800
8802
  T === "personal" ? /* @__PURE__ */ s(
@@ -8838,7 +8840,7 @@ function jm({
8838
8840
  class: "jex-magicline-wizard-back",
8839
8841
  disabled: L,
8840
8842
  onClick: Tt,
8841
- children: d.magiclineWizardBack
8843
+ children: h.magiclineWizardBack
8842
8844
  }
8843
8845
  ),
8844
8846
  /* @__PURE__ */ s(
@@ -8848,7 +8850,7 @@ function jm({
8848
8850
  class: "jex-form-submit jex-magicline-wizard-next",
8849
8851
  disabled: L,
8850
8852
  onClick: Dt,
8851
- children: Z ? L ? d.magiclineSubmitting : d.magiclineSubmit : d.magiclineWizardNext
8853
+ children: Z ? L ? h.magiclineSubmitting : h.magiclineSubmit : h.magiclineWizardNext
8852
8854
  }
8853
8855
  )
8854
8856
  ] })
@@ -8925,12 +8927,12 @@ function Tm({
8925
8927
  required: !0,
8926
8928
  disabled: r,
8927
8929
  "aria-invalid": a !== void 0,
8928
- onChange: (h) => {
8929
- l(h.currentTarget.value);
8930
+ onChange: (d) => {
8931
+ l(d.currentTarget.value);
8930
8932
  },
8931
8933
  children: [
8932
8934
  /* @__PURE__ */ s("option", { value: "", disabled: !0, children: u.magiclineSlotPlaceholder }),
8933
- t.slots.map((h) => /* @__PURE__ */ s("option", { value: h.startDateTime, children: dc(h.startDateTime, xt.value, n) }, h.startDateTime))
8935
+ t.slots.map((d) => /* @__PURE__ */ s("option", { value: d.startDateTime, children: hc(d.startDateTime, xt.value, n) }, d.startDateTime))
8934
8936
  ]
8935
8937
  }
8936
8938
  ) : t.phase === "error" ? (
@@ -8956,7 +8958,7 @@ function Tm({
8956
8958
  ] });
8957
8959
  }
8958
8960
  function Cm({ plan: t, fields: e, errors: n, disabled: r, setField: i }) {
8959
- const o = R(), a = be(() => oc(), []);
8961
+ const o = R(), a = be(() => ac(), []);
8960
8962
  return /* @__PURE__ */ s(ee, { children: [
8961
8963
  /* @__PURE__ */ s("div", { class: "jex-magicline-row", children: [
8962
8964
  /* @__PURE__ */ s(
@@ -9039,7 +9041,7 @@ function Cm({ plan: t, fields: e, errors: n, disabled: r, setField: i }) {
9039
9041
  n.birthDate !== void 0 ? /* @__PURE__ */ s("span", { class: "jex-magicline-error", role: "alert", children: n.birthDate }) : null
9040
9042
  ] }) : null,
9041
9043
  t.gender.visible ? /* @__PURE__ */ s(
9042
- uc,
9044
+ dc,
9043
9045
  {
9044
9046
  label: Ke(o.magiclineGender, t.gender.required, o),
9045
9047
  value: e.gender,
@@ -9050,7 +9052,7 @@ function Cm({ plan: t, fields: e, errors: n, disabled: r, setField: i }) {
9050
9052
  onChange: (l) => {
9051
9053
  i("gender", l);
9052
9054
  },
9053
- options: cc.map((l) => ({ value: l, label: Nm(l, o) }))
9055
+ options: uc.map((l) => ({ value: l, label: Nm(l, o) }))
9054
9056
  }
9055
9057
  ) : null
9056
9058
  ] });
@@ -9104,7 +9106,7 @@ function Am({ plan: t, fields: e, errors: n, disabled: r, setField: i }) {
9104
9106
  }
9105
9107
  ),
9106
9108
  /* @__PURE__ */ s(
9107
- uc,
9109
+ dc,
9108
9110
  {
9109
9111
  label: Ke(o.magiclineCountry, t.address.required, o),
9110
9112
  value: e.country,
@@ -9144,7 +9146,7 @@ function Rm({
9144
9146
  consentError: o,
9145
9147
  setField: a
9146
9148
  }) {
9147
- const l = R(), c = r.slotId !== "" ? dc(r.slotId, xt.value, n) : "—", u = `${r.firstName} ${r.lastName}`.trim();
9149
+ const l = R(), c = r.slotId !== "" ? hc(r.slotId, xt.value, n) : "—", u = `${r.firstName} ${r.lastName}`.trim();
9148
9150
  return /* @__PURE__ */ s(ee, { children: [
9149
9151
  /* @__PURE__ */ s("dl", { class: "jex-magicline-summary", children: [
9150
9152
  /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row", children: [
@@ -9168,8 +9170,8 @@ function Rm({
9168
9170
  placeholder: l.magiclineNote,
9169
9171
  value: r.note,
9170
9172
  disabled: i,
9171
- onInput: (h) => {
9172
- a("note", h.currentTarget.value);
9173
+ onInput: (d) => {
9174
+ a("note", d.currentTarget.value);
9173
9175
  }
9174
9176
  }
9175
9177
  ),
@@ -9182,8 +9184,8 @@ function Rm({
9182
9184
  checked: r.consent,
9183
9185
  disabled: i,
9184
9186
  "aria-invalid": o !== void 0,
9185
- onChange: (h) => {
9186
- a("consent", h.currentTarget.checked);
9187
+ onChange: (d) => {
9188
+ a("consent", d.currentTarget.checked);
9187
9189
  }
9188
9190
  }
9189
9191
  ),
@@ -9229,7 +9231,7 @@ function Ot({
9229
9231
  a !== void 0 ? /* @__PURE__ */ s("span", { id: c, class: "jex-magicline-error", role: "alert", children: a }) : null
9230
9232
  ] });
9231
9233
  }
9232
- function uc({
9234
+ function dc({
9233
9235
  label: t,
9234
9236
  value: e,
9235
9237
  required: n,
@@ -9296,7 +9298,7 @@ function Pm(t, e) {
9296
9298
  function Nm(t, e) {
9297
9299
  return t === "MALE" ? e.magiclineGenderMale : t === "FEMALE" ? e.magiclineGenderFemale : e.magiclineGenderUnisex;
9298
9300
  }
9299
- function dc(t, e, n) {
9301
+ function hc(t, e, n) {
9300
9302
  const r = e === "de" ? "de-DE" : "en-GB", i = t.match(/\[([^\]]+)\]\s*$/), o = i ? i[1] : n ?? void 0, a = t.replace(/\[[^\]]+\]\s*$/, ""), l = new Date(a);
9301
9303
  if (Number.isNaN(l.getTime()))
9302
9304
  return t;
@@ -9322,7 +9324,7 @@ function dc(t, e, n) {
9322
9324
  });
9323
9325
  }
9324
9326
  }
9325
- function hc(t) {
9327
+ function fc(t) {
9326
9328
  const e = qe(t);
9327
9329
  return kn(() => {
9328
9330
  e.current = t;
@@ -9500,14 +9502,14 @@ function zm({
9500
9502
  sessionId: t,
9501
9503
  visitorId: e
9502
9504
  }) {
9503
- const n = im(), r = rc(), [i, o] = Be(qm, Mm), [a, l] = Be(Dm, hs), [c, u] = Be(
9505
+ const n = im(), r = ic(), [i, o] = Be(qm, Mm), [a, l] = Be(Dm, hs), [c, u] = Be(
9504
9506
  (w, $) => $,
9505
9507
  { phase: "loading" }
9506
- ), h = qe(null), [m, d] = Be(
9508
+ ), d = qe(null), [m, h] = Be(
9507
9509
  (w, $) => $,
9508
9510
  { phase: "idle" }
9509
9511
  ), p = Y((w) => {
9510
- w.phase === "ready" ? h.current = w.pricing : (w.phase === "idle" || w.phase === "error") && (h.current = null), d(w);
9512
+ w.phase === "ready" ? d.current = w.pricing : (w.phase === "idle" || w.phase === "error") && (d.current = null), h(w);
9511
9513
  }, []), [b, S] = Be((w) => w + 1, 0), [y, x] = Be((w) => w + 1, 0), k = Y((w) => {
9512
9514
  o({ type: "setTermId", termId: w }), l({ type: "CLEAR_VOUCHER" });
9513
9515
  }, []), A = Y((w, $) => {
@@ -9594,7 +9596,7 @@ function zm({
9594
9596
  w = !0;
9595
9597
  };
9596
9598
  }, [n, t, e, b]);
9597
- const zt = hc(() => {
9599
+ const zt = fc(() => {
9598
9600
  const w = Ve;
9599
9601
  return w ? {
9600
9602
  sessionId: t,
@@ -9629,7 +9631,7 @@ function zm({
9629
9631
  return;
9630
9632
  }
9631
9633
  let $ = !1;
9632
- const B = h.current;
9634
+ const B = d.current;
9633
9635
  return p(B !== null ? { phase: "reloading", pricing: B } : { phase: "loading" }), (async () => {
9634
9636
  try {
9635
9637
  const ae = await r(w);
@@ -9710,10 +9712,10 @@ function Bm({
9710
9712
  projectId: r,
9711
9713
  formStatus: i
9712
9714
  }) {
9713
- const o = R(), a = xt.value, l = om(), c = rc(), u = zm({ sessionId: e, visitorId: n }), {
9714
- fields: h,
9715
+ const o = R(), a = xt.value, l = om(), c = ic(), u = zm({ sessionId: e, visitorId: n }), {
9716
+ fields: d,
9715
9717
  offersState: m,
9716
- previewState: d,
9718
+ previewState: h,
9717
9719
  selectedTerm: p,
9718
9720
  requiredAckKeys: b,
9719
9721
  allAcknowledged: S,
@@ -9741,7 +9743,7 @@ function Bm({
9741
9743
  commitVoucherApplied: X,
9742
9744
  markVoucherInvalid: Ve,
9743
9745
  markVoucherDisabled: oe
9744
- } = u, [z, Oe] = F(0), [Ze, qt] = F({}), [xe, He] = F(!1), [we, J] = F(null), [zt, w] = F(null), [$, B] = F(null), ae = be(() => ac(), []);
9746
+ } = u, [z, Oe] = F(0), [Ze, qt] = F({}), [xe, He] = F(!1), [we, J] = F(null), [zt, w] = F(null), [$, B] = F(null), ae = be(() => sc(), []);
9745
9747
  if (we !== null && we.status === "succeeded")
9746
9748
  return /* @__PURE__ */ s(fs, { customerNumber: we.customerNumber });
9747
9749
  if (we !== null && we.status === "failed" && !we.retryable) {
@@ -9756,12 +9758,12 @@ function Bm({
9756
9758
  function fr(W) {
9757
9759
  const q = {};
9758
9760
  if (W === "offer")
9759
- return h.termId === null && (q.termId = o.magiclineOfferRequiredError), q;
9761
+ return d.termId === null && (q.termId = o.magiclineOfferRequiredError), q;
9760
9762
  if (W === "upgrades") {
9761
9763
  if (p !== null)
9762
- for (const ce of h.selectedModuleIds) {
9764
+ for (const ce of d.selectedModuleIds) {
9763
9765
  const Je = p.optionalModules.find((de) => de.id === ce);
9764
- if (Je?.consent && h.acknowledgedBlocks[Je.consent.ackKey] !== !0) {
9766
+ if (Je?.consent && d.acknowledgedBlocks[Je.consent.ackKey] !== !0) {
9765
9767
  q.upgrades = o.magiclineUpgradeConsentError;
9766
9768
  break;
9767
9769
  }
@@ -9769,14 +9771,14 @@ function Bm({
9769
9771
  return q;
9770
9772
  }
9771
9773
  if (W === "personal") {
9772
- const ce = h.personal;
9773
- return ce.firstName.trim() === "" && (q.firstName = o.magiclineRequiredError), ce.lastName.trim() === "" && (q.lastName = o.magiclineRequiredError), ce.email.trim() === "" ? q.email = o.magiclineRequiredError : ic(ce.email) || (q.email = o.magiclineEmailError), ce.dateOfBirth.trim() === "" && (q.dateOfBirth = o.magiclineRequiredError), ce.gender === "" && (q.gender = o.magiclineRequiredError), ce.phone.trim() === "" && (q.phone = o.magiclineRequiredError), q;
9774
+ const ce = d.personal;
9775
+ return ce.firstName.trim() === "" && (q.firstName = o.magiclineRequiredError), ce.lastName.trim() === "" && (q.lastName = o.magiclineRequiredError), ce.email.trim() === "" ? q.email = o.magiclineRequiredError : oc(ce.email) || (q.email = o.magiclineEmailError), ce.dateOfBirth.trim() === "" && (q.dateOfBirth = o.magiclineRequiredError), ce.gender === "" && (q.gender = o.magiclineRequiredError), ce.phone.trim() === "" && (q.phone = o.magiclineRequiredError), q;
9774
9776
  }
9775
9777
  if (W === "address") {
9776
- const ce = h.address;
9778
+ const ce = d.address;
9777
9779
  return ce.street.trim() === "" && (q.street = o.magiclineRequiredError), ce.houseNumber.trim() === "" && (q.houseNumber = o.magiclineRequiredError), ce.zipCode.trim() === "" && (q.zipCode = o.magiclineRequiredError), ce.city.trim() === "" && (q.city = o.magiclineRequiredError), q;
9778
9780
  }
9779
- return W === "payment" && (h.payment.accountHolder.trim() === "" && (q.accountHolder = o.magiclineRequiredError), dm(h.payment.iban) || (q.iban = o.magiclineIbanInvalidError), h.consents.privacy || (q.privacy = o.magiclineConsentError), h.consents.sepa || (q.sepa = o.magiclineConsentError)), q;
9781
+ return W === "payment" && (d.payment.accountHolder.trim() === "" && (q.accountHolder = o.magiclineRequiredError), dm(d.payment.iban) || (q.iban = o.magiclineIbanInvalidError), d.consents.privacy || (q.privacy = o.magiclineConsentError), d.consents.sepa || (q.sepa = o.magiclineConsentError)), q;
9780
9782
  }
9781
9783
  function at() {
9782
9784
  const W = fr(Fe);
@@ -9795,7 +9797,7 @@ function Bm({
9795
9797
  w(null), it();
9796
9798
  }
9797
9799
  async function Tn() {
9798
- if (!xe && !(d.phase !== "ready" || p === null)) {
9800
+ if (!xe && !(h.phase !== "ready" || p === null)) {
9799
9801
  if (!S) {
9800
9802
  w(o.magiclineConfirmRequiredError);
9801
9803
  return;
@@ -9808,30 +9810,30 @@ function Bm({
9808
9810
  projectId: r,
9809
9811
  formMessageId: t,
9810
9812
  fields: {
9811
- firstname: h.personal.firstName.trim(),
9812
- lastname: h.personal.lastName.trim(),
9813
- email: h.personal.email.trim(),
9814
- phone: h.personal.phone.trim(),
9815
- dateOfBirth: h.personal.dateOfBirth.trim(),
9816
- gender: h.personal.gender,
9817
- street: h.address.street.trim(),
9818
- houseNumber: h.address.houseNumber.trim(),
9819
- zipCode: h.address.zipCode.trim(),
9820
- city: h.address.city.trim(),
9813
+ firstname: d.personal.firstName.trim(),
9814
+ lastname: d.personal.lastName.trim(),
9815
+ email: d.personal.email.trim(),
9816
+ phone: d.personal.phone.trim(),
9817
+ dateOfBirth: d.personal.dateOfBirth.trim(),
9818
+ gender: d.personal.gender,
9819
+ street: d.address.street.trim(),
9820
+ houseNumber: d.address.houseNumber.trim(),
9821
+ zipCode: d.address.zipCode.trim(),
9822
+ city: d.address.city.trim(),
9821
9823
  rateBundleTermId: p.termId,
9822
- privacyConsent: h.consents.privacy,
9823
- sepaConsent: h.consents.sepa
9824
+ privacyConsent: d.consents.privacy,
9825
+ sepaConsent: d.consents.sepa
9824
9826
  },
9825
9827
  bankAccount: {
9826
- accountHolder: h.payment.accountHolder.trim(),
9827
- iban: h.payment.iban
9828
+ accountHolder: d.payment.accountHolder.trim(),
9829
+ iban: d.payment.iban
9828
9830
  },
9829
9831
  // Only modules still offered by the selected term are sent.
9830
- selectedModuleIds: p.optionalModules.filter((q) => h.selectedModuleIds.includes(q.id)).map((q) => q.id),
9832
+ selectedModuleIds: p.optionalModules.filter((q) => d.selectedModuleIds.includes(q.id)).map((q) => q.id),
9831
9833
  // Required text-block + selected-module consent ackKeys (the submit
9832
9834
  // button is gated on all of these being ticked).
9833
9835
  acknowledgedAckKeys: b,
9834
- pricingFingerprint: d.pricing.fingerprint,
9836
+ pricingFingerprint: h.pricing.fingerprint,
9835
9837
  voucherCode: N ?? void 0
9836
9838
  });
9837
9839
  if (W.status === "succeeded") {
@@ -9865,7 +9867,7 @@ function Bm({
9865
9867
  }
9866
9868
  }
9867
9869
  async function Cn() {
9868
- if (d.phase !== "ready" || p === null || k.trim() === "")
9870
+ if (h.phase !== "ready" || p === null || k.trim() === "")
9869
9871
  return;
9870
9872
  const W = k.trim(), q = Dt();
9871
9873
  B(null);
@@ -9879,20 +9881,20 @@ function Bm({
9879
9881
  termId: p.termId,
9880
9882
  startDate: p.defaultContractStartDate ?? "",
9881
9883
  fields: {
9882
- firstname: h.personal.firstName.trim(),
9883
- lastname: h.personal.lastName.trim(),
9884
- email: h.personal.email.trim(),
9885
- dateOfBirth: h.personal.dateOfBirth.trim(),
9886
- gender: h.personal.gender,
9887
- phone: h.personal.phone.trim(),
9888
- street: h.address.street.trim(),
9889
- houseNumber: h.address.houseNumber.trim(),
9890
- zipCode: h.address.zipCode.trim(),
9891
- city: h.address.city.trim()
9884
+ firstname: d.personal.firstName.trim(),
9885
+ lastname: d.personal.lastName.trim(),
9886
+ email: d.personal.email.trim(),
9887
+ dateOfBirth: d.personal.dateOfBirth.trim(),
9888
+ gender: d.personal.gender,
9889
+ phone: d.personal.phone.trim(),
9890
+ street: d.address.street.trim(),
9891
+ houseNumber: d.address.houseNumber.trim(),
9892
+ zipCode: d.address.zipCode.trim(),
9893
+ city: d.address.city.trim()
9892
9894
  },
9893
- selectedModuleIds: p.optionalModules.filter((Le) => h.selectedModuleIds.includes(Le.id)).map((Le) => Le.id),
9894
- privacyConsent: h.consents.privacy,
9895
- sepaConsent: h.consents.sepa,
9895
+ selectedModuleIds: p.optionalModules.filter((Le) => d.selectedModuleIds.includes(Le.id)).map((Le) => Le.id),
9896
+ privacyConsent: d.consents.privacy,
9897
+ sepaConsent: d.consents.sepa,
9896
9898
  voucherCode: k.trim()
9897
9899
  });
9898
9900
  if (de.status === "ok") {
@@ -9930,7 +9932,7 @@ function Bm({
9930
9932
  function An() {
9931
9933
  Xt ? Tn() : at();
9932
9934
  }
9933
- const en = tg(Fe, o), Ct = x === "applying" || k.trim() !== "" && k.trim() !== (N ?? ""), tn = Fe === "review" && (d.phase !== "ready" || !S || Ct), nn = xe || tn;
9935
+ const en = tg(Fe, o), Ct = x === "applying" || k.trim() !== "" && k.trim() !== (N ?? ""), tn = Fe === "review" && (h.phase !== "ready" || !S || Ct), nn = xe || tn;
9934
9936
  return /* @__PURE__ */ s("div", { class: "jex-inline-form jex-magicline-form", children: [
9935
9937
  /* @__PURE__ */ s("div", { class: "jex-magicline-wizard-header", children: [
9936
9938
  /* @__PURE__ */ s("div", { class: "jex-inline-form-title", children: o.magiclineContractTitle }),
@@ -9951,7 +9953,7 @@ function Bm({
9951
9953
  Um,
9952
9954
  {
9953
9955
  offersState: m,
9954
- selectedTermId: h.termId,
9956
+ selectedTermId: d.termId,
9955
9957
  widgetLocale: a,
9956
9958
  disabled: xe,
9957
9959
  error: Ze.termId,
@@ -9963,8 +9965,8 @@ function Bm({
9963
9965
  Wm,
9964
9966
  {
9965
9967
  modules: p.optionalModules,
9966
- selectedModuleIds: h.selectedModuleIds,
9967
- acknowledgedBlocks: h.acknowledgedBlocks,
9968
+ selectedModuleIds: d.selectedModuleIds,
9969
+ acknowledgedBlocks: d.acknowledgedBlocks,
9968
9970
  widgetLocale: a,
9969
9971
  disabled: xe,
9970
9972
  error: Ze.upgrades,
@@ -9975,7 +9977,7 @@ function Bm({
9975
9977
  Fe === "personal" ? /* @__PURE__ */ s(
9976
9978
  Gm,
9977
9979
  {
9978
- personal: h.personal,
9980
+ personal: d.personal,
9979
9981
  errors: Ze,
9980
9982
  disabled: xe,
9981
9983
  setPersonal: L
@@ -9984,7 +9986,7 @@ function Bm({
9984
9986
  Fe === "address" ? /* @__PURE__ */ s(
9985
9987
  Km,
9986
9988
  {
9987
- address: h.address,
9989
+ address: d.address,
9988
9990
  errors: Ze,
9989
9991
  disabled: xe,
9990
9992
  setAddress: v
@@ -9994,7 +9996,7 @@ function Bm({
9994
9996
  Ym,
9995
9997
  {
9996
9998
  formMessageId: t,
9997
- fields: h,
9999
+ fields: d,
9998
10000
  errors: Ze,
9999
10001
  privacyUrl: ae,
10000
10002
  disabled: xe,
@@ -10006,12 +10008,12 @@ function Bm({
10006
10008
  Fe === "review" ? /* @__PURE__ */ s(
10007
10009
  Zm,
10008
10010
  {
10009
- fields: h,
10011
+ fields: d,
10010
10012
  term: p,
10011
- previewState: d,
10013
+ previewState: h,
10012
10014
  widgetLocale: a,
10013
10015
  disabled: xe,
10014
- acknowledgedBlocks: h.acknowledgedBlocks,
10016
+ acknowledgedBlocks: d.acknowledgedBlocks,
10015
10017
  onToggleAck: D,
10016
10018
  onRetry: yt,
10017
10019
  allowVoucherCodes: y,
@@ -10097,16 +10099,16 @@ function Um({
10097
10099
  /* @__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: [
10098
10100
  /* @__PURE__ */ s("div", { class: "jex-magicline-offer-bundle-name", children: u.bundleName }),
10099
10101
  u.bundleDescription !== null ? /* @__PURE__ */ s("div", { class: "jex-magicline-offer-bundle-desc", children: u.bundleDescription }) : null,
10100
- u.terms.map((h) => /* @__PURE__ */ s(
10102
+ u.terms.map((d) => /* @__PURE__ */ s(
10101
10103
  Vm,
10102
10104
  {
10103
- term: h,
10104
- checked: e === h.termId,
10105
+ term: d,
10106
+ checked: e === d.termId,
10105
10107
  widgetLocale: n,
10106
10108
  disabled: r,
10107
10109
  onSelect: o
10108
10110
  },
10109
- h.termId
10111
+ d.termId
10110
10112
  )),
10111
10113
  /* @__PURE__ */ s(
10112
10114
  Hm,
@@ -10120,7 +10122,7 @@ function Um({
10120
10122
  ] });
10121
10123
  }
10122
10124
  function Vm({ term: t, checked: e, widgetLocale: n, disabled: r, onSelect: i }) {
10123
- const o = R(), a = Kr(t.termValue, t.termUnit, n), l = nt(t.price, t.currencyCode, n), c = t.flatFees.find((h) => h.isStarterPackage), u = t.flatFees.filter((h) => !h.isStarterPackage);
10125
+ const o = R(), a = Kr(t.termValue, t.termUnit, n), l = nt(t.price, t.currencyCode, n), c = t.flatFees.find((d) => d.isStarterPackage), u = t.flatFees.filter((d) => !d.isStarterPackage);
10124
10126
  return /* @__PURE__ */ s(
10125
10127
  "label",
10126
10128
  {
@@ -10167,11 +10169,11 @@ function Vm({ term: t, checked: e, widgetLocale: n, disabled: r, onSelect: i })
10167
10169
  " ",
10168
10170
  nt(c.price, t.currencyCode, n)
10169
10171
  ] }) : null,
10170
- u.map((h) => /* @__PURE__ */ s("span", { class: "jex-magicline-offer-term-note", children: [
10171
- lc(h.name, o),
10172
+ u.map((d) => /* @__PURE__ */ s("span", { class: "jex-magicline-offer-term-note", children: [
10173
+ cc(d.name, o),
10172
10174
  ": ",
10173
- nt(h.price, t.currencyCode, n)
10174
- ] }, h.name)),
10175
+ nt(d.price, t.currencyCode, n)
10176
+ ] }, d.name)),
10175
10177
  t.includedModuleNames.length > 0 ? /* @__PURE__ */ s("span", { class: "jex-magicline-offer-term-note", children: [
10176
10178
  o.magiclineIncludedModules,
10177
10179
  ": ",
@@ -10236,7 +10238,7 @@ function Qm({
10236
10238
  t.paymentFrequencyType,
10237
10239
  t.recurringUnit,
10238
10240
  r
10239
- ), u = xm(t.extensionType, t.termExtension, r), h = t.termLabel !== null && t.termLabel !== "" ? t.termLabel : l.magiclineUpgradeOneTime, m = t.consent;
10241
+ ), u = xm(t.extensionType, t.termExtension, r), d = t.termLabel !== null && t.termLabel !== "" ? t.termLabel : l.magiclineUpgradeOneTime, m = t.consent;
10240
10242
  return /* @__PURE__ */ s("div", { class: e ? "jex-magicline-upgrade-card jex-magicline-upgrade-card-active" : "jex-magicline-upgrade-card", children: [
10241
10243
  /* @__PURE__ */ s("label", { class: "jex-magicline-upgrade-head", children: [
10242
10244
  /* @__PURE__ */ s(
@@ -10245,8 +10247,8 @@ function Qm({
10245
10247
  type: "checkbox",
10246
10248
  checked: e,
10247
10249
  disabled: i,
10248
- onChange: (d) => {
10249
- o(t.id, d.currentTarget.checked, m?.ackKey);
10250
+ onChange: (h) => {
10251
+ o(t.id, h.currentTarget.checked, m?.ackKey);
10250
10252
  }
10251
10253
  }
10252
10254
  ),
@@ -10254,7 +10256,7 @@ function Qm({
10254
10256
  /* @__PURE__ */ s("span", { class: "jex-magicline-upgrade-name", children: t.name }),
10255
10257
  t.description !== null && t.description !== "" ? /* @__PURE__ */ s("span", { class: "jex-magicline-upgrade-desc", children: t.description }) : null,
10256
10258
  /* @__PURE__ */ s("span", { class: "jex-magicline-upgrade-price", children: c }),
10257
- /* @__PURE__ */ s("span", { class: "jex-magicline-upgrade-desc", children: h }),
10259
+ /* @__PURE__ */ s("span", { class: "jex-magicline-upgrade-desc", children: d }),
10258
10260
  u !== "" ? /* @__PURE__ */ s("span", { class: "jex-magicline-upgrade-desc", children: u }) : null
10259
10261
  ] }),
10260
10262
  /* @__PURE__ */ s("span", { class: "jex-magicline-upgrade-status", children: e ? l.magiclineUpgradeAdded : l.magiclineUpgradeAdd })
@@ -10276,7 +10278,7 @@ function Qm({
10276
10278
  ] });
10277
10279
  }
10278
10280
  function Gm({ personal: t, errors: e, disabled: n, setPersonal: r }) {
10279
- const i = R(), o = be(() => oc(), []);
10281
+ const i = R(), o = be(() => ac(), []);
10280
10282
  return /* @__PURE__ */ s(ee, { children: [
10281
10283
  /* @__PURE__ */ s("div", { class: "jex-magicline-row", children: [
10282
10284
  /* @__PURE__ */ s(
@@ -10355,7 +10357,7 @@ function Gm({ personal: t, errors: e, disabled: n, setPersonal: r }) {
10355
10357
  onChange: (a) => {
10356
10358
  r("gender", a);
10357
10359
  },
10358
- options: cc.map((a) => ({ value: a, label: ng(a, i) }))
10360
+ options: uc.map((a) => ({ value: a, label: ng(a, i) }))
10359
10361
  }
10360
10362
  ),
10361
10363
  /* @__PURE__ */ s(
@@ -10454,7 +10456,7 @@ function Ym({
10454
10456
  setIban: a,
10455
10457
  setConsent: l
10456
10458
  }) {
10457
- const c = R(), u = `jex-ml-privacy-${t}`, h = `jex-ml-sepa-${t}`;
10459
+ const c = R(), u = `jex-ml-privacy-${t}`, d = `jex-ml-sepa-${t}`;
10458
10460
  return /* @__PURE__ */ s(ee, { children: [
10459
10461
  /* @__PURE__ */ s(
10460
10462
  pt,
@@ -10501,11 +10503,11 @@ function Ym({
10501
10503
  "."
10502
10504
  ] })
10503
10505
  ] }),
10504
- /* @__PURE__ */ s("label", { class: "jex-magicline-consent", for: h, children: [
10506
+ /* @__PURE__ */ s("label", { class: "jex-magicline-consent", for: d, children: [
10505
10507
  /* @__PURE__ */ s(
10506
10508
  "input",
10507
10509
  {
10508
- id: h,
10510
+ id: d,
10509
10511
  type: "checkbox",
10510
10512
  checked: e.consents.sepa,
10511
10513
  disabled: i,
@@ -10532,9 +10534,9 @@ function Zm({
10532
10534
  onRetry: l,
10533
10535
  allowVoucherCodes: c,
10534
10536
  voucherUnavailable: u,
10535
- voucherStatus: h,
10537
+ voucherStatus: d,
10536
10538
  draftVoucherCode: m,
10537
- appliedVoucher: d,
10539
+ appliedVoucher: h,
10538
10540
  voucherBanner: p,
10539
10541
  onVoucherDraftChange: b,
10540
10542
  onApplyVoucher: S
@@ -10551,7 +10553,7 @@ function Zm({
10551
10553
  `${P.street} ${P.houseNumber}`.trim(),
10552
10554
  `${P.zipCode} ${P.city}`.trim(),
10553
10555
  y.magiclineCountryStatic
10554
- ].filter((T) => T !== "").join(", "), L = e !== null ? `${e.bundleName} · ${Kr(e.termValue, e.termUnit, r)}` : "—", v = e !== null ? e.textBlocks.filter((T) => T.isConfirmationRequired) : [], ie = e !== null ? e.textBlocks.filter((T) => !T.isConfirmationRequired) : [], D = e !== null ? e.optionalModules.filter((T) => t.selectedModuleIds.includes(T.id) && T.consent !== null).map((T) => ({ module: T, consent: T.consent })) : [], K = d !== null ? d.textBlocks.filter((T) => T.ackKey.startsWith("voucher:")) : [], ne = c && !u;
10556
+ ].filter((T) => T !== "").join(", "), L = e !== null ? `${e.bundleName} · ${Kr(e.termValue, e.termUnit, r)}` : "—", v = e !== null ? e.textBlocks.filter((T) => T.isConfirmationRequired) : [], ie = e !== null ? e.textBlocks.filter((T) => !T.isConfirmationRequired) : [], D = e !== null ? e.optionalModules.filter((T) => t.selectedModuleIds.includes(T.id) && T.consent !== null).map((T) => ({ module: T, consent: T.consent })) : [], K = h !== null ? h.textBlocks.filter((T) => T.ackKey.startsWith("voucher:")) : [], ne = c && !u;
10555
10557
  return /* @__PURE__ */ s("div", { class: "jex-magicline-review-wrap", children: [
10556
10558
  /* @__PURE__ */ s(
10557
10559
  "div",
@@ -10567,7 +10569,7 @@ function Zm({
10567
10569
  /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row", children: [
10568
10570
  /* @__PURE__ */ s("dt", { children: y.magiclineReviewBasePrice }),
10569
10571
  /* @__PURE__ */ s("dd", { children: [
10570
- d !== null && d.voucherType === "DISCOUNT" ? nt(d.discountedBasePrice, x.currencyCode, r) : nt(x.basePrice, x.currencyCode, r),
10572
+ h !== null && h.voucherType === "DISCOUNT" ? nt(h.discountedBasePrice, x.currencyCode, r) : nt(x.basePrice, x.currencyCode, r),
10571
10573
  " ",
10572
10574
  Po(
10573
10575
  x.paymentFrequency.value,
@@ -10576,24 +10578,24 @@ function Zm({
10576
10578
  )
10577
10579
  ] })
10578
10580
  ] }),
10579
- d !== null && d.voucherType === "DISCOUNT" ? /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row jex-magicline-voucher-discount-row", children: [
10581
+ h !== null && h.voucherType === "DISCOUNT" ? /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row jex-magicline-voucher-discount-row", children: [
10580
10582
  /* @__PURE__ */ s("dt", { children: y.magiclineVoucherAppliedDiscount.replace(
10581
10583
  "{discount}",
10582
10584
  mm(
10583
- d.discountValue,
10584
- d.discountType,
10585
+ h.discountValue,
10586
+ h.discountType,
10585
10587
  x.currencyCode,
10586
10588
  r
10587
10589
  )
10588
10590
  ) }),
10589
10591
  /* @__PURE__ */ s("dd", {})
10590
10592
  ] }) : null,
10591
- d !== null && d.remarks !== null && d.remarks !== "" ? /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row jex-magicline-voucher-remarks-row", children: [
10593
+ h !== null && h.remarks !== null && h.remarks !== "" ? /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row jex-magicline-voucher-remarks-row", children: [
10592
10594
  /* @__PURE__ */ s("dt", { children: y.magiclineVoucherRemarks }),
10593
- /* @__PURE__ */ s("dd", { children: d.remarks })
10595
+ /* @__PURE__ */ s("dd", { children: h.remarks })
10594
10596
  ] }) : null,
10595
10597
  x.flatFees.map((T, Z) => /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row", children: [
10596
- /* @__PURE__ */ s("dt", { children: lc(T.name, y) }),
10598
+ /* @__PURE__ */ s("dt", { children: cc(T.name, y) }),
10597
10599
  /* @__PURE__ */ s("dd", { children: nt(T.price, x.currencyCode, r) })
10598
10600
  ] }, `${T.name}-${Z}`)),
10599
10601
  x.preUseCharge > 0 ? /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row", children: [
@@ -10609,10 +10611,10 @@ function Zm({
10609
10611
  ] }, `${T.moduleId}-${Z}`))
10610
10612
  ] }) : null,
10611
10613
  A !== null && A.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: [
10612
- /* @__PURE__ */ s("dt", { children: d !== null && d.voucherType === "DISCOUNT" ? y.magiclineGesamtpreisBeforeDiscount : y.magiclineReviewContractVolume }),
10614
+ /* @__PURE__ */ s("dt", { children: h !== null && h.voucherType === "DISCOUNT" ? y.magiclineGesamtpreisBeforeDiscount : y.magiclineReviewContractVolume }),
10613
10615
  /* @__PURE__ */ s("dd", { children: nt(A.total, x.currencyCode, r) })
10614
10616
  ] }) }) : null,
10615
- d !== null && d.voucherType === "CREDIT" ? /* @__PURE__ */ s("div", { class: "jex-magicline-voucher-credit-notice", role: "note", children: y.magiclineVoucherCreditNotice }) : null,
10617
+ h !== null && h.voucherType === "CREDIT" ? /* @__PURE__ */ s("div", { class: "jex-magicline-voucher-credit-notice", role: "note", children: y.magiclineVoucherCreditNotice }) : null,
10616
10618
  /* @__PURE__ */ s("dl", { class: "jex-magicline-summary jex-magicline-summary-section", children: [
10617
10619
  /* @__PURE__ */ s("div", { class: "jex-magicline-summary-row", children: [
10618
10620
  /* @__PURE__ */ s("dt", { children: y.magiclineReviewStartsOn }),
@@ -10641,7 +10643,7 @@ function Zm({
10641
10643
  "aria-label": y.magiclineVoucherLabel,
10642
10644
  placeholder: y.magiclineVoucherPlaceholder,
10643
10645
  value: m,
10644
- disabled: i || h === "applying",
10646
+ disabled: i || d === "applying",
10645
10647
  onInput: (T) => {
10646
10648
  b(T.currentTarget.value);
10647
10649
  }
@@ -10652,7 +10654,7 @@ function Zm({
10652
10654
  {
10653
10655
  type: "button",
10654
10656
  class: "jex-magicline-voucher-apply",
10655
- disabled: i || h === "applying" || m.trim() === "",
10657
+ disabled: i || d === "applying" || m.trim() === "",
10656
10658
  onClick: S,
10657
10659
  children: y.magiclineVoucherApply
10658
10660
  }
@@ -10734,14 +10736,14 @@ function ro({
10734
10736
  onToggle: l,
10735
10737
  showRequiredPill: c = !1
10736
10738
  }) {
10737
- const u = R(), h = `jex-ml-ack-${t}`;
10739
+ const u = R(), d = `jex-ml-ack-${t}`;
10738
10740
  return /* @__PURE__ */ s("div", { class: "jex-magicline-consent-region", children: [
10739
10741
  c ? /* @__PURE__ */ s("span", { class: "jex-magicline-required-pill", children: u.magiclineRequired }) : null,
10740
- /* @__PURE__ */ s("label", { class: "jex-magicline-consent", for: h, children: [
10742
+ /* @__PURE__ */ s("label", { class: "jex-magicline-consent", for: d, children: [
10741
10743
  /* @__PURE__ */ s(
10742
10744
  "input",
10743
10745
  {
10744
- id: h,
10746
+ id: d,
10745
10747
  type: "checkbox",
10746
10748
  checked: o,
10747
10749
  disabled: a,
@@ -11026,7 +11028,7 @@ function dg(t) {
11026
11028
  }
11027
11029
  const hg = 6e4;
11028
11030
  function fg({ conversations: t, greeting: e, botName: n, starterQuestions: r, onPickStarter: i, sessionNotFound: o, resumeFailed: a, onStartFresh: l, sessionId: c, visitorId: u }) {
11029
- const h = R(), m = qe(null), [d, p] = F(null), [b, S] = F(() => Date.now()), y = (t ?? []).some(
11031
+ const d = R(), m = qe(null), [h, p] = F(null), [b, S] = F(() => Date.now()), y = (t ?? []).some(
11030
11032
  (v) => v.status === "streaming" && v.content === ""
11031
11033
  );
11032
11034
  M(() => {
@@ -11035,7 +11037,7 @@ function fg({ conversations: t, greeting: e, botName: n, starterQuestions: r, on
11035
11037
  const v = setInterval(() => S(Date.now()), 1e4);
11036
11038
  return () => clearInterval(v);
11037
11039
  }, [y]);
11038
- const x = cg(t), k = dg(t), A = nc(), N = qe(null);
11040
+ const x = cg(t), k = dg(t), A = rc(), N = qe(null);
11039
11041
  M(() => {
11040
11042
  if (!u || !t)
11041
11043
  return;
@@ -11058,7 +11060,7 @@ function fg({ conversations: t, greeting: e, botName: n, starterQuestions: r, on
11058
11060
  }
11059
11061
  ) : null,
11060
11062
  o && a && l ? /* @__PURE__ */ s("div", { class: "jex-session-prompt", children: [
11061
- /* @__PURE__ */ s("div", { class: "jex-session-prompt-text", children: h.sessionNotFoundPrompt }),
11063
+ /* @__PURE__ */ s("div", { class: "jex-session-prompt-text", children: d.sessionNotFoundPrompt }),
11062
11064
  /* @__PURE__ */ s(
11063
11065
  "button",
11064
11066
  {
@@ -11067,19 +11069,19 @@ function fg({ conversations: t, greeting: e, botName: n, starterQuestions: r, on
11067
11069
  onClick: () => {
11068
11070
  l();
11069
11071
  },
11070
- children: h.startNewConversation
11072
+ children: d.startNewConversation
11071
11073
  }
11072
11074
  )
11073
- ] }) : o ? /* @__PURE__ */ s("div", { class: "jex-session-notice", children: h.sessionNotFound }) : null,
11075
+ ] }) : o ? /* @__PURE__ */ s("div", { class: "jex-session-notice", children: d.sessionNotFound }) : null,
11074
11076
  t?.map((v) => {
11075
11077
  if (v.contentType === "human-notice") {
11076
- const K = v.noticeKind === "agent-joined" ? h.noticeAgentJoined.replace("{name}", v.noticeData?.agentName ?? "") : v.noticeKind === "human-requested" ? h.noticeHumanRequested : v.noticeKind === "human-requested-form" ? h.noticeHumanRequestedForm : v.noticeKind === "message-received" ? h.noticeMessageReceived : v.noticeKind === "agent-handling" ? h.noticeAgentHandling : v.noticeKind === "ai-resumed" ? h.noticeAiResumed : v.content;
11078
+ const K = v.noticeKind === "agent-joined" ? d.noticeAgentJoined.replace("{name}", v.noticeData?.agentName ?? "") : v.noticeKind === "human-requested" ? d.noticeHumanRequested : v.noticeKind === "human-requested-form" ? d.noticeHumanRequestedForm : v.noticeKind === "message-received" ? d.noticeMessageReceived : v.noticeKind === "agent-handling" ? d.noticeAgentHandling : v.noticeKind === "ai-resumed" ? d.noticeAiResumed : v.content;
11077
11079
  return /* @__PURE__ */ s(Vt, { text: K, botName: n }, v._id);
11078
11080
  }
11079
11081
  if (v.contentType === "escalation-form" && c && u)
11080
- return Nh.value === "screen" && !v.formData ? d === v._id ? null : /* @__PURE__ */ s("div", { class: "jex-inline-form jex-inline-form-card", children: [
11081
- /* @__PURE__ */ s("div", { class: "jex-inline-form-title", children: h.escalationPromptTitle }),
11082
- /* @__PURE__ */ s("div", { class: "jex-inline-form-subtitle", children: h.escalationPromptSubtitle }),
11082
+ return Nh.value === "screen" && !v.formData ? h === v._id ? null : /* @__PURE__ */ s("div", { class: "jex-inline-form jex-inline-form-card", children: [
11083
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-title", children: d.escalationPromptTitle }),
11084
+ /* @__PURE__ */ s("div", { class: "jex-inline-form-subtitle", children: d.escalationPromptSubtitle }),
11083
11085
  /* @__PURE__ */ s(
11084
11086
  "button",
11085
11087
  {
@@ -11088,7 +11090,7 @@ function fg({ conversations: t, greeting: e, botName: n, starterQuestions: r, on
11088
11090
  onClick: () => {
11089
11091
  _t({ id: "escalation-form", formMessageId: v._id, sessionId: c, visitorId: u, waitingSetAt: x });
11090
11092
  },
11091
- children: h.escalationPromptSubmit
11093
+ children: d.escalationPromptSubmit
11092
11094
  }
11093
11095
  ),
11094
11096
  /* @__PURE__ */ s(
@@ -11099,14 +11101,14 @@ function fg({ conversations: t, greeting: e, botName: n, starterQuestions: r, on
11099
11101
  onClick: () => {
11100
11102
  A({ formMessageId: v._id, sessionId: c, visitorId: u, waitingSetAt: x }), p(v._id);
11101
11103
  },
11102
- children: h.escalationSkip
11104
+ children: d.escalationSkip
11103
11105
  }
11104
11106
  )
11105
11107
  ] }, v._id) : /* @__PURE__ */ s(Xp, { message: v, sessionId: c, visitorId: u, waitingSetAt: x }, v._id);
11106
11108
  if (v.contentType === "magicline-form" && c && u)
11107
11109
  return /* @__PURE__ */ s(rg, { message: v, sessionId: c, visitorId: u }, v._id);
11108
11110
  if (v.contentType === "escalation-confirm") {
11109
- const K = v.noticeKind === "escalation-confirmed" ? h.noticeEscalationConfirmed.replace("{name}", v.noticeData?.visitorName ?? "").replace("{email}", v.noticeData?.visitorEmail ?? "").replace("{ref}", v.noticeData?.visitorId ?? "") : v.content;
11111
+ const K = v.noticeKind === "escalation-confirmed" ? d.noticeEscalationConfirmed.replace("{name}", v.noticeData?.visitorName ?? "").replace("{email}", v.noticeData?.visitorEmail ?? "").replace("{ref}", v.noticeData?.visitorId ?? "") : v.content;
11110
11112
  return /* @__PURE__ */ s(Vt, { text: K, botName: n }, v._id);
11111
11113
  }
11112
11114
  if (v.role === "user") {
@@ -11139,7 +11141,7 @@ function fg({ conversations: t, greeting: e, botName: n, starterQuestions: r, on
11139
11141
  Vt,
11140
11142
  {
11141
11143
  id: `jex-msg-${v._id}`,
11142
- text: `${h.somethingWentWrong}. ${h.tryAgain}.`,
11144
+ text: `${d.somethingWentWrong}. ${d.tryAgain}.`,
11143
11145
  error: !0,
11144
11146
  botName: n,
11145
11147
  ...ie
@@ -11153,7 +11155,7 @@ function fg({ conversations: t, greeting: e, botName: n, starterQuestions: r, on
11153
11155
  Vt,
11154
11156
  {
11155
11157
  id: `jex-msg-${v._id}`,
11156
- text: v.errorMessage ?? `${h.somethingWentWrong}. ${h.tryAgain}.`,
11158
+ text: v.errorMessage ?? `${d.somethingWentWrong}. ${d.tryAgain}.`,
11157
11159
  error: !0,
11158
11160
  botName: n,
11159
11161
  ...ie
@@ -11188,7 +11190,7 @@ function pg() {
11188
11190
  const t = R();
11189
11191
  function e() {
11190
11192
  const n = nr.peek();
11191
- n && ($l(), _t({ id: "escalation-form", formMessageId: n.formMessageId, sessionId: n.sessionId, visitorId: n.visitorId, waitingSetAt: n.waitingSetAt }));
11193
+ n && (Dl(), _t({ id: "escalation-form", formMessageId: n.formMessageId, sessionId: n.sessionId, visitorId: n.visitorId, waitingSetAt: n.waitingSetAt }));
11192
11194
  }
11193
11195
  return /* @__PURE__ */ s("div", { class: "jex-waiting-card", role: "status", "aria-live": "polite", children: [
11194
11196
  /* @__PURE__ */ s("div", { class: "jex-waiting-indicator", "aria-hidden": "true", children: [
@@ -11210,7 +11212,7 @@ function pg() {
11210
11212
  ] })
11211
11213
  ] });
11212
11214
  }
11213
- function fc({ message: t }) {
11215
+ function pc({ message: t }) {
11214
11216
  const [e, n] = F(!1);
11215
11217
  return M(() => {
11216
11218
  const r = setTimeout(() => {
@@ -11338,22 +11340,22 @@ function xg({ sessionId: t, visitorId: e }) {
11338
11340
  function bg() {
11339
11341
  return Yt(je.escalations.public.createEscalationRequest);
11340
11342
  }
11341
- function pc({ sessionId: t, visitorId: e, ensureSession: n, onSkipForm: r }) {
11343
+ function mc({ sessionId: t, visitorId: e, ensureSession: n, onSkipForm: r }) {
11342
11344
  const i = R(), o = bg(), [a, l] = F(!1), [c, u] = F(null);
11343
- async function h() {
11345
+ async function d() {
11344
11346
  if (!a) {
11345
11347
  l(!0), u(null);
11346
11348
  try {
11347
11349
  const m = t && e ? { sessionId: t, visitorId: e } : await n();
11348
11350
  if (!m)
11349
11351
  return;
11350
- const d = Lt.value;
11351
- if (!d)
11352
+ const h = Lt.value;
11353
+ if (!h)
11352
11354
  return;
11353
11355
  const p = await o({
11354
11356
  sessionId: m.sessionId,
11355
11357
  visitorId: m.visitorId,
11356
- bootstrapToken: d,
11358
+ bootstrapToken: h,
11357
11359
  locale: xt.value
11358
11360
  });
11359
11361
  if (p.skipForm) {
@@ -11362,17 +11364,17 @@ function pc({ sessionId: t, visitorId: e, ensureSession: n, onSkipForm: r }) {
11362
11364
  }
11363
11365
  _t({ id: "escalation-form", formMessageId: p.formMessageId, sessionId: m.sessionId, visitorId: m.visitorId, waitingSetAt: p.waitingSetAt });
11364
11366
  } catch (m) {
11365
- const d = m instanceof Error ? m.message : String(m);
11366
- u(/RATE_LIMITED|Too many/.test(d) ? i.handoffRateLimited : i.handoffFailed);
11367
+ const h = m instanceof Error ? m.message : String(m);
11368
+ u(/RATE_LIMITED|Too many/.test(h) ? i.handoffRateLimited : i.handoffFailed);
11367
11369
  } finally {
11368
11370
  l(!1);
11369
11371
  }
11370
11372
  }
11371
11373
  }
11372
- return { requestHuman: h, busy: a, error: c };
11374
+ return { requestHuman: d, busy: a, error: c };
11373
11375
  }
11374
- function yg({ greeting: t, botName: e, starterQuestions: n, sessionId: r, visitorId: i, isLoading: o, sessionNotFound: a, resumeFailed: l, isOrgDeleted: c, ensureSession: u, startFresh: h, maintenance: m }) {
11375
- const d = R(), { conversations: p, sessionStatus: b, isLoading: S, isStreaming: y } = mg({ sessionId: r, visitorId: i });
11376
+ function yg({ greeting: t, botName: e, starterQuestions: n, sessionId: r, visitorId: i, isLoading: o, sessionNotFound: a, resumeFailed: l, isOrgDeleted: c, ensureSession: u, startFresh: d, maintenance: m }) {
11377
+ const h = R(), { conversations: p, sessionStatus: b, isLoading: S, isStreaming: y } = mg({ sessionId: r, visitorId: i });
11376
11378
  gg(p), xg({ sessionId: r, visitorId: i }), M(() => {
11377
11379
  const L = nr.peek();
11378
11380
  if (L === null || !p || p.length === 0)
@@ -11380,14 +11382,14 @@ function yg({ greeting: t, botName: e, starterQuestions: n, sessionId: r, visito
11380
11382
  const { waitingSetAt: v } = L;
11381
11383
  p.some(
11382
11384
  (D) => D._creationTime > v && (D.noticeKind === "agent-joined" || !!D.authorId)
11383
- ) && $l();
11385
+ ) && Dl();
11384
11386
  }, [p]);
11385
- const x = Dl({ sessionId: r, visitorId: i, ensureSession: u }), k = qe(
11387
+ const x = ql({ sessionId: r, visitorId: i, ensureSession: u }), k = qe(
11386
11388
  (() => {
11387
11389
  const L = pn.peek();
11388
11390
  return L !== null ? L : xo.peek() && Ue.peek() !== null ? "resume" : "fresh";
11389
11391
  })()
11390
- ).current, { requestHuman: A, error: N } = pc({ sessionId: r, visitorId: i, ensureSession: u }), P = hc(() => {
11392
+ ).current, { requestHuman: A, error: N } = mc({ sessionId: r, visitorId: i, ensureSession: u }), P = fc(() => {
11391
11393
  A();
11392
11394
  });
11393
11395
  return M(() => {
@@ -11398,7 +11400,7 @@ function yg({ greeting: t, botName: e, starterQuestions: n, sessionId: r, visito
11398
11400
  Ue.peek() !== null && u();
11399
11401
  }, [u]), M(() => {
11400
11402
  i && bo(i);
11401
- }, [i]), c ? /* @__PURE__ */ s("div", { class: "jex-chat-messages", children: /* @__PURE__ */ s("div", { class: "jex-session-notice", children: d.chatNoLongerAvailable }) }) : k === "resume" && !Nt.value && (!r || S) ? /* @__PURE__ */ s(fc, { message: d.resumeConversation }) : /* @__PURE__ */ s(ee, { children: [
11403
+ }, [i]), c ? /* @__PURE__ */ s("div", { class: "jex-chat-messages", children: /* @__PURE__ */ s("div", { class: "jex-session-notice", children: h.chatNoLongerAvailable }) }) : k === "resume" && !Nt.value && (!r || S) ? /* @__PURE__ */ s(pc, { message: h.resumeConversation }) : /* @__PURE__ */ s(ee, { children: [
11402
11404
  /* @__PURE__ */ s(
11403
11405
  fg,
11404
11406
  {
@@ -11411,7 +11413,7 @@ function yg({ greeting: t, botName: e, starterQuestions: n, sessionId: r, visito
11411
11413
  },
11412
11414
  sessionNotFound: a,
11413
11415
  resumeFailed: l,
11414
- onStartFresh: h,
11416
+ onStartFresh: d,
11415
11417
  sessionId: r,
11416
11418
  visitorId: i
11417
11419
  }
@@ -11427,23 +11429,23 @@ function yg({ greeting: t, botName: e, starterQuestions: n, sessionId: r, visito
11427
11429
  isStreaming: y,
11428
11430
  sessionStatus: b,
11429
11431
  ensureSession: u,
11430
- onStartFresh: h,
11432
+ onStartFresh: d,
11431
11433
  maintenance: m
11432
11434
  }
11433
11435
  )
11434
11436
  ] });
11435
11437
  }
11436
- function mc(t) {
11438
+ function gc(t) {
11437
11439
  return Jn(
11438
11440
  je.functions.chat.public.availability.getOrgAvailability,
11439
11441
  t ? { orgSlug: t } : "skip"
11440
11442
  );
11441
11443
  }
11442
- function gc(t) {
11444
+ function xc(t) {
11443
11445
  return t?.anyOnline ? "online" : t?.anyAway ? "away" : "offline";
11444
11446
  }
11445
11447
  function vg({ formMessageId: t, sessionId: e, visitorId: n, orgSlug: r }) {
11446
- const i = R(), o = cr.value, a = /^https?:\/\//i.test(o) ? o : lr, [l, c] = F(""), [u, h] = F(""), m = mc(r), d = m && !m.anyOnline ? i.escalationOfflineSubtitle : i.escalationSubtitle, p = tc(), [b, S] = F(!1), [y, x] = F(null);
11448
+ const i = R(), o = cr.value, a = /^https?:\/\//i.test(o) ? o : lr, [l, c] = F(""), [u, d] = F(""), m = gc(r), h = m && !m.anyOnline ? i.escalationOfflineSubtitle : i.escalationSubtitle, p = nc(), [b, S] = F(!1), [y, x] = F(null);
11447
11449
  async function k(A) {
11448
11450
  A.preventDefault(), S(!0), x(null);
11449
11451
  try {
@@ -11463,7 +11465,7 @@ function vg({ formMessageId: t, sessionId: e, visitorId: n, orgSlug: r }) {
11463
11465
  }
11464
11466
  return /* @__PURE__ */ s("div", { class: "jex-form-screen", children: [
11465
11467
  /* @__PURE__ */ s("h2", { class: "jex-form-title", children: i.escalationFormTitle }),
11466
- /* @__PURE__ */ s("p", { class: "jex-escalation-subtitle", children: d }),
11468
+ /* @__PURE__ */ s("p", { class: "jex-escalation-subtitle", children: h }),
11467
11469
  y && /* @__PURE__ */ s("div", { class: "jex-form-error", role: "alert", children: y }),
11468
11470
  /* @__PURE__ */ s("form", { class: "jex-form", onSubmit: (A) => {
11469
11471
  k(A);
@@ -11490,7 +11492,7 @@ function vg({ formMessageId: t, sessionId: e, visitorId: n, orgSlug: r }) {
11490
11492
  value: u,
11491
11493
  required: !0,
11492
11494
  onInput: (A) => {
11493
- h(A.currentTarget.value);
11495
+ d(A.currentTarget.value);
11494
11496
  }
11495
11497
  }
11496
11498
  ),
@@ -11505,7 +11507,7 @@ function vg({ formMessageId: t, sessionId: e, visitorId: n, orgSlug: r }) {
11505
11507
  ] });
11506
11508
  }
11507
11509
  function bs({ sessionId: t, visitorId: e, ensureSession: n, availability: r }) {
11508
- const i = R(), { requestHuman: o, busy: a, error: l } = pc({ sessionId: t, visitorId: e, ensureSession: n }), c = `jex-presence-dot--${gc(r)}`, u = r ? r.anyOnline ? i.handoffAvailable : i.handoffOffline : i.talkToHuman;
11510
+ const i = R(), { requestHuman: o, busy: a, error: l } = mc({ sessionId: t, visitorId: e, ensureSession: n }), c = kl(), u = `jex-presence-dot--${xc(r)}`, d = c ? i.handoffMaintenance : r ? r.anyOnline ? i.handoffAvailable : i.handoffOffline : i.talkToHuman;
11509
11511
  return /* @__PURE__ */ s(ee, { children: [
11510
11512
  /* @__PURE__ */ s(
11511
11513
  "button",
@@ -11515,9 +11517,9 @@ function bs({ sessionId: t, visitorId: e, ensureSession: n, availability: r }) {
11515
11517
  onClick: () => {
11516
11518
  o();
11517
11519
  },
11518
- disabled: a,
11520
+ disabled: a || c,
11519
11521
  "aria-label": i.talkToHumanAria,
11520
- title: u,
11522
+ title: d,
11521
11523
  children: [
11522
11524
  /* @__PURE__ */ s("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", children: [
11523
11525
  /* @__PURE__ */ s("path", { d: "M3 14v-3a9 9 0 0 1 18 0v3" }),
@@ -11525,7 +11527,7 @@ function bs({ sessionId: t, visitorId: e, ensureSession: n, availability: r }) {
11525
11527
  /* @__PURE__ */ s("path", { d: "M3 14a2 2 0 0 0 2 2h1a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1H3z" }),
11526
11528
  /* @__PURE__ */ s("path", { d: "M21 14v3a4 4 0 0 1-4 4h-3" })
11527
11529
  ] }),
11528
- r !== void 0 && /* @__PURE__ */ s("span", { class: `jex-presence-dot ${c}`, "aria-hidden": "true" })
11530
+ r !== void 0 && /* @__PURE__ */ s("span", { class: `jex-presence-dot ${u}`, "aria-hidden": "true" })
11529
11531
  ]
11530
11532
  }
11531
11533
  ),
@@ -11536,16 +11538,16 @@ async function wg() {
11536
11538
  const t = yl.value;
11537
11539
  if (!t)
11538
11540
  return me.warn("[JexityChat] Bootstrap refresh skipped — inputs missing"), { ok: !1, reason: "no-inputs" };
11539
- const e = await _l(t.orgSlug, t.siteUrl, t.projSlug);
11541
+ const e = await jl(t.orgSlug, t.siteUrl, t.projSlug);
11540
11542
  if (!e.ok)
11541
11543
  return me.warn("[JexityChat] Bootstrap refresh failed:", e.error), { ok: !1, reason: e.error };
11542
11544
  const n = e.token;
11543
11545
  return Lt.value = n, { ok: !0, token: n };
11544
11546
  }
11545
11547
  function ys(t) {
11546
- return Ll(t) ? "maintenance" : xc(t) ? "unauthorized" : t instanceof Error && /network|fetch|failed to fetch/i.test(t.message) ? "network" : "unknown";
11548
+ return $l(t) ? "maintenance" : bc(t) ? "unauthorized" : t instanceof Error && /network|fetch|failed to fetch/i.test(t.message) ? "network" : "unknown";
11547
11549
  }
11548
- function xc(t) {
11550
+ function bc(t) {
11549
11551
  return t instanceof Or ? t.data?.code === "UNAUTHORIZED_ORIGIN" : !1;
11550
11552
  }
11551
11553
  function kg(t = 1e4) {
@@ -11580,7 +11582,7 @@ function _g(t, e) {
11580
11582
  try {
11581
11583
  y = await l(S(b));
11582
11584
  } catch (k) {
11583
- if (!xc(k))
11585
+ if (!bc(k))
11584
11586
  throw k;
11585
11587
  const A = await wg();
11586
11588
  if (!A.ok)
@@ -11608,10 +11610,10 @@ function _g(t, e) {
11608
11610
  } finally {
11609
11611
  r.value = !1;
11610
11612
  }
11611
- }, [c, r, i, o]), h = Y(() => {
11613
+ }, [c, r, i, o]), d = Y(() => {
11612
11614
  n.current = null, i.value = !1, o.value = !1, za(), vn.value = null;
11613
11615
  }, [i, o]);
11614
- M(() => Oh(h), [h]);
11616
+ M(() => Oh(d), [d]);
11615
11617
  const m = Y(async () => {
11616
11618
  n.current = null, o.value = !1, i.value = !1, za(), vn.value = null;
11617
11619
  const p = Pa();
@@ -11623,10 +11625,10 @@ function _g(t, e) {
11623
11625
  } finally {
11624
11626
  r.value = !1;
11625
11627
  }
11626
- }, [c, r, i, o]), d = n.current;
11628
+ }, [c, r, i, o]), h = n.current;
11627
11629
  return {
11628
- sessionId: d?.sessionId ?? null,
11629
- visitorId: d?.visitorId ?? null,
11630
+ sessionId: h?.sessionId ?? null,
11631
+ visitorId: h?.visitorId ?? null,
11630
11632
  isLoading: r.value,
11631
11633
  sessionNotFound: i.value,
11632
11634
  resumeFailed: o.value,
@@ -11634,22 +11636,22 @@ function _g(t, e) {
11634
11636
  isOrgDeleted: a.value === "org_deleted",
11635
11637
  ensureSession: u,
11636
11638
  startFresh: m,
11637
- resetSession: h
11639
+ resetSession: d
11638
11640
  };
11639
11641
  }
11640
11642
  function jg({ botName: t, availability: e, onResetSession: n }) {
11641
- const r = R(), [i, o] = F(""), a = e?.anyOnline === !0, l = gc(e);
11643
+ const r = R(), [i, o] = F(""), a = e?.anyOnline === !0, l = xc(e);
11642
11644
  function c() {
11643
11645
  _r(), pn.value = "escalate", n(), Na(), _t({ id: "chat" });
11644
11646
  }
11645
11647
  function u() {
11646
11648
  _r(), pn.value = "fresh", n(), Na(), _t({ id: "chat" });
11647
11649
  }
11648
- function h(d) {
11649
- _r(), pn.value = "resume", n(), Ma(d), _t({ id: "chat" });
11650
+ function d(h) {
11651
+ _r(), pn.value = "resume", n(), Ma(h), _t({ id: "chat" });
11650
11652
  }
11651
- function m(d) {
11652
- d.preventDefault();
11653
+ function m(h) {
11654
+ h.preventDefault();
11653
11655
  const p = i.trim().toUpperCase();
11654
11656
  p && (_r(), pn.value = "resume", n(), Ma(p), _t({ id: "chat" }));
11655
11657
  }
@@ -11665,7 +11667,7 @@ function jg({ botName: t, availability: e, onResetSession: n }) {
11665
11667
  title: e ? a ? r.handoffAvailable : r.handoffOffline : r.talkToHuman,
11666
11668
  children: [
11667
11669
  /* @__PURE__ */ s("div", { class: "jex-home-avatar", children: [
11668
- /* @__PURE__ */ s(Pl, { size: 24 }),
11670
+ /* @__PURE__ */ s(Nl, { size: 24 }),
11669
11671
  e !== void 0 && /* @__PURE__ */ s("span", { class: `jex-home-status-dot jex-home-status-dot--${l}`, "aria-hidden": "true" })
11670
11672
  ] }),
11671
11673
  /* @__PURE__ */ s("div", { class: "jex-home-hero-text", children: [
@@ -11682,23 +11684,23 @@ function jg({ botName: t, availability: e, onResetSession: n }) {
11682
11684
  /* @__PURE__ */ s("div", { class: "jex-home-actions", children: [
11683
11685
  Ae.value.length > 0 && /* @__PURE__ */ s(ee, { children: [
11684
11686
  /* @__PURE__ */ s("span", { class: "jex-home-section-label", children: r.pickUpWhereLeftOff }),
11685
- /* @__PURE__ */ s("div", { class: "jex-home-history", children: Ae.value.slice().reverse().map((d) => /* @__PURE__ */ s(
11687
+ /* @__PURE__ */ s("div", { class: "jex-home-history", children: Ae.value.slice().reverse().map((h) => /* @__PURE__ */ s(
11686
11688
  "button",
11687
11689
  {
11688
11690
  class: "jex-home-resume-card",
11689
11691
  onClick: () => {
11690
- h(d.ref);
11692
+ d(h.ref);
11691
11693
  },
11692
11694
  children: [
11693
11695
  /* @__PURE__ */ s("div", { class: "jex-home-resume-top", children: [
11694
11696
  /* @__PURE__ */ s("span", { class: "jex-home-resume-label", children: r.resumeListLabel }),
11695
11697
  /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", class: "jex-home-resume-arrow", children: /* @__PURE__ */ s("path", { d: "M6 3l5 5-5 5", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) })
11696
11698
  ] }),
11697
- /* @__PURE__ */ s("span", { class: "jex-home-resume-ref", children: d.ref }),
11698
- /* @__PURE__ */ s("span", { class: "jex-home-resume-meta", children: r.resumeListTimestamp.replace("{minutes}", String(Math.max(1, Math.round((Date.now() - d.lastActivityAt) / 6e4)))) })
11699
+ /* @__PURE__ */ s("span", { class: "jex-home-resume-ref", children: h.ref }),
11700
+ /* @__PURE__ */ s("span", { class: "jex-home-resume-meta", children: r.resumeListTimestamp.replace("{minutes}", String(Math.max(1, Math.round((Date.now() - h.lastActivityAt) / 6e4)))) })
11699
11701
  ]
11700
11702
  },
11701
- d.ref
11703
+ h.ref
11702
11704
  )) })
11703
11705
  ] }),
11704
11706
  /* @__PURE__ */ s("button", { class: "jex-home-new-btn", onClick: u, children: Ae.value.length > 0 ? r.startNewConversation : r.chatWith })
@@ -11713,8 +11715,8 @@ function jg({ botName: t, availability: e, onResetSession: n }) {
11713
11715
  type: "text",
11714
11716
  placeholder: r.referencePlaceholder,
11715
11717
  value: i,
11716
- onInput: (d) => {
11717
- o(d.currentTarget.value);
11718
+ onInput: (h) => {
11719
+ o(h.currentTarget.value);
11718
11720
  }
11719
11721
  }
11720
11722
  ),
@@ -11766,8 +11768,8 @@ function Sg({ title: t }) {
11766
11768
  function Tg() {
11767
11769
  const t = R(), [e, n] = F(""), [r, i] = F(""), [o, a] = F("");
11768
11770
  async function l(c) {
11769
- c.preventDefault(), Wi({ id: "loading", message: t.submittingTicket }), await new Promise((h) => {
11770
- setTimeout(h, 1200);
11771
+ c.preventDefault(), Wi({ id: "loading", message: t.submittingTicket }), await new Promise((d) => {
11772
+ setTimeout(d, 1200);
11771
11773
  });
11772
11774
  const u = "JEX-" + Math.random().toString(36).slice(2, 8).toUpperCase();
11773
11775
  Wi({ id: "confirmation", ref: u });
@@ -11849,7 +11851,7 @@ function Ag({ message: t, onRetry: e, onBack: n }) {
11849
11851
  ] })
11850
11852
  ] });
11851
11853
  }
11852
- function vs({ greeting: t, starterQuestions: e, title: n, botName: r, orgSlug: i, availability: o, sessionId: a, visitorId: l, isLoading: c, sessionNotFound: u, resumeFailed: h, isOrgDeleted: m, ensureSession: d, startFresh: p, resetSession: b, maintenance: S }) {
11854
+ function vs({ greeting: t, starterQuestions: e, title: n, botName: r, orgSlug: i, availability: o, sessionId: a, visitorId: l, isLoading: c, sessionNotFound: u, resumeFailed: d, isOrgDeleted: m, ensureSession: h, startFresh: p, resetSession: b, maintenance: S }) {
11853
11855
  const y = ze.value, x = y[y.length - 1], k = [...y].reverse().find(
11854
11856
  (A) => A.id === "confirmation"
11855
11857
  );
@@ -11878,14 +11880,14 @@ function vs({ greeting: t, starterQuestions: e, title: n, botName: r, orgSlug: i
11878
11880
  visitorId: l,
11879
11881
  isLoading: c,
11880
11882
  sessionNotFound: u,
11881
- resumeFailed: h,
11883
+ resumeFailed: d,
11882
11884
  isOrgDeleted: m,
11883
- ensureSession: d,
11885
+ ensureSession: h,
11884
11886
  startFresh: p,
11885
11887
  maintenance: S
11886
11888
  }
11887
11889
  ),
11888
- x.id === "loading" && /* @__PURE__ */ s(fc, { message: x.message }),
11890
+ x.id === "loading" && /* @__PURE__ */ s(pc, { message: x.message }),
11889
11891
  x.id === "error" && /* @__PURE__ */ s(
11890
11892
  Ag,
11891
11893
  {
@@ -11908,13 +11910,13 @@ function Rg({ options: t }) {
11908
11910
  }), bh() ? /* @__PURE__ */ s(Eg, { options: t }) : null;
11909
11911
  }
11910
11912
  function Eg({ options: t }) {
11911
- const e = ah(), n = fh(t.orgSlug, t.projSlug, t.convexUrl, t.preloadedConfig);
11913
+ const e = kl(), n = fh(t.orgSlug, t.projSlug, t.convexUrl, t.preloadedConfig);
11912
11914
  _h(t.parentOrigin), M(() => (Eh(), Ph(), () => {
11913
11915
  Hi.value = !1;
11914
11916
  }), []);
11915
- const { sessionId: r, visitorId: i, isLoading: o, sessionNotFound: a, resumeFailed: l, isOrgDeleted: c, ensureSession: u, startFresh: h, resetSession: m } = _g(t.orgSlug, t.projSlug), d = mc(t.orgSlug), p = ch(t, n.config), b = Pt.value, S = Hi.value, y = n.config !== null || b !== void 0 || n.settled, x = n.config !== null ? p.sessionTimeoutMs : b !== void 0 ? b : p.sessionTimeoutMs;
11917
+ const { sessionId: r, visitorId: i, isLoading: o, sessionNotFound: a, resumeFailed: l, isOrgDeleted: c, ensureSession: u, startFresh: d, resetSession: m } = _g(t.orgSlug, t.projSlug), h = gc(t.orgSlug), p = ch(t, n.config), b = Pt.value, S = Hi.value, y = n.config !== null || b !== void 0 || n.settled, x = n.config !== null ? p.sessionTimeoutMs : b !== void 0 ? b : p.sessionTimeoutMs;
11916
11918
  M(() => {
11917
- xt.value = Sl(p.locale);
11919
+ xt.value = Tl(p.locale);
11918
11920
  }, [p.locale]), M(() => {
11919
11921
  cr.value = p.privacyPolicyUrl ?? lr, mo.value = p.privacyNoticeStyle;
11920
11922
  }, [p.privacyNoticeStyle, p.privacyPolicyUrl]), M(() => {
@@ -11975,7 +11977,7 @@ function Eg({ options: t }) {
11975
11977
  La,
11976
11978
  {
11977
11979
  title: p.title,
11978
- rightAction: D ? /* @__PURE__ */ s(bs, { sessionId: r, visitorId: i, ensureSession: u, availability: d }) : null,
11980
+ rightAction: D ? /* @__PURE__ */ s(bs, { sessionId: r, visitorId: i, ensureSession: u, availability: h }) : null,
11979
11981
  showClose: !P
11980
11982
  }
11981
11983
  ),
@@ -11988,7 +11990,7 @@ function Eg({ options: t }) {
11988
11990
  botName: p.botName,
11989
11991
  orgSlug: t.orgSlug,
11990
11992
  projSlug: t.projSlug,
11991
- availability: d,
11993
+ availability: h,
11992
11994
  sessionId: r,
11993
11995
  visitorId: i,
11994
11996
  isLoading: o,
@@ -11996,7 +11998,7 @@ function Eg({ options: t }) {
11996
11998
  resumeFailed: l,
11997
11999
  isOrgDeleted: c,
11998
12000
  ensureSession: u,
11999
- startFresh: h,
12001
+ startFresh: d,
12000
12002
  resetSession: m,
12001
12003
  maintenance: e
12002
12004
  }
@@ -12008,7 +12010,7 @@ function Eg({ options: t }) {
12008
12010
  La,
12009
12011
  {
12010
12012
  title: p.title,
12011
- rightAction: D ? /* @__PURE__ */ s(bs, { sessionId: r, visitorId: i, ensureSession: u, availability: d }) : null
12013
+ rightAction: D ? /* @__PURE__ */ s(bs, { sessionId: r, visitorId: i, ensureSession: u, availability: h }) : null
12012
12014
  }
12013
12015
  ),
12014
12016
  /* @__PURE__ */ s(
@@ -12020,7 +12022,7 @@ function Eg({ options: t }) {
12020
12022
  botName: p.botName,
12021
12023
  orgSlug: t.orgSlug,
12022
12024
  projSlug: t.projSlug,
12023
- availability: d,
12025
+ availability: h,
12024
12026
  sessionId: r,
12025
12027
  visitorId: i,
12026
12028
  isLoading: o,
@@ -12028,7 +12030,7 @@ function Eg({ options: t }) {
12028
12030
  resumeFailed: l,
12029
12031
  isOrgDeleted: c,
12030
12032
  ensureSession: u,
12031
- startFresh: h,
12033
+ startFresh: d,
12032
12034
  resetSession: m,
12033
12035
  maintenance: e
12034
12036
  }
@@ -12053,13 +12055,13 @@ function Pg(t) {
12053
12055
  const e = document.createElement("style");
12054
12056
  e.textContent = Ig, t.appendChild(e);
12055
12057
  }
12056
- const Ng = Fd, Mg = "https://tame-spider-109.eu-west-1.convex.cloud";
12058
+ const Ng = Bd, Mg = "https://tame-spider-109.eu-west-1.convex.cloud";
12057
12059
  let Ri = null;
12058
12060
  function Og(t) {
12059
12061
  const e = t ?? Mg;
12060
12062
  if (!e)
12061
12063
  throw new Error("[jexity] No Convex URL — set VITE_CONVEX_URL at build time or data-convex-url on the script tag");
12062
- return Ri || (Ri = new qd(sh(e))), Ri;
12064
+ return Ri || (Ri = new zd(sh(e))), Ri;
12063
12065
  }
12064
12066
  function Lg(t, e) {
12065
12067
  const n = t.shadowRoot ?? t.attachShadow({ mode: "open" });