@evelan/jexity-widget 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { createContext as Gi, useState as Ki, useRef as Pt, useEffect as Yi, createElement as Mn, useContext as Xi } from "react";
1
+ import { createContext as Gi, useState as Ki, useRef as Pt, useEffect as Xi, createElement as Mn, useContext as Yi } from "react";
2
2
  const $r = Gi(null);
3
- function Sc(t) {
3
+ function Cc(t) {
4
4
  const { children: e, ...n } = t, [r, i] = Ki(!1), s = Pt(null), o = Pt(null), l = Pt(null), a = n.mode === "embedded";
5
- Yi(() => {
5
+ Xi(() => {
6
6
  let d = !1;
7
- return Promise.resolve().then(() => wc).then(
7
+ return Promise.resolve().then(() => jc).then(
8
8
  (h) => {
9
9
  if (d)
10
10
  return;
@@ -40,13 +40,13 @@ function Sc(t) {
40
40
  }) : e
41
41
  );
42
42
  }
43
- function Cc() {
44
- const t = Xi($r);
43
+ function Rc() {
44
+ const t = Yi($r);
45
45
  if (!t)
46
46
  throw new Error("useJexityChat must be used within a <JexityChatProvider>");
47
47
  return t;
48
48
  }
49
- var et, x, Er, qr, ce, Ln, Pr, Mr, Lr, hn, Wt, Ht, Or, He = {}, Nr = [], es = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, tt = Array.isArray;
49
+ var et, x, Er, qr, ce, Ln, Pr, Mr, Lr, hn, Wt, Ht, Or, Je = {}, Nr = [], es = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, tt = Array.isArray;
50
50
  function ee(t, e) {
51
51
  for (var n in e) t[n] = e[n];
52
52
  return t;
@@ -58,9 +58,9 @@ function B(t, e, n) {
58
58
  var r, i, s, o = {};
59
59
  for (s in e) s == "key" ? r = e[s] : s == "ref" ? i = e[s] : o[s] = e[s];
60
60
  if (arguments.length > 2 && (o.children = arguments.length > 3 ? et.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null) for (s in t.defaultProps) o[s] === void 0 && (o[s] = t.defaultProps[s]);
61
- return Be(t, o, r, i, null);
61
+ return De(t, o, r, i, null);
62
62
  }
63
- function Be(t, e, n, r, i) {
63
+ function De(t, e, n, r, i) {
64
64
  var s = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i ?? ++Er, __i: -1, __u: 0 };
65
65
  return i == null && x.vnode != null && x.vnode(s), s;
66
66
  }
@@ -73,10 +73,10 @@ function z(t) {
73
73
  function H(t, e) {
74
74
  this.props = t, this.context = e;
75
75
  }
76
- function Ce(t, e) {
77
- if (e == null) return t.__ ? Ce(t.__, t.__i + 1) : null;
76
+ function Re(t, e) {
77
+ if (e == null) return t.__ ? Re(t.__, t.__i + 1) : null;
78
78
  for (var n; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) return n.__e;
79
- return typeof t.type == "function" ? Ce(t) : null;
79
+ return typeof t.type == "function" ? Re(t) : null;
80
80
  }
81
81
  function zr(t) {
82
82
  var e, n;
@@ -92,18 +92,18 @@ function Jt(t) {
92
92
  (!t.__d && (t.__d = !0) && ce.push(t) && !gt.__r++ || Ln != x.debounceRendering) && ((Ln = x.debounceRendering) || Pr)(gt);
93
93
  }
94
94
  function gt() {
95
- for (var t, e, n, r, i, s, o, l = 1; ce.length; ) ce.length > l && ce.sort(Mr), t = ce.shift(), l = ce.length, t.__d && (n = void 0, r = void 0, i = (r = (e = t).__v).__e, s = [], o = [], e.__P && ((n = ee({}, r)).__v = r.__v + 1, x.vnode && x.vnode(n), pn(e.__P, n, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [i] : null, s, i ?? Ce(r), !!(32 & r.__u), o), n.__v = r.__v, n.__.__k[n.__i] = n, Br(s, n, o), r.__e = r.__ = null, n.__e != i && zr(n)));
95
+ for (var t, e, n, r, i, s, o, l = 1; ce.length; ) ce.length > l && ce.sort(Mr), t = ce.shift(), l = ce.length, t.__d && (n = void 0, r = void 0, i = (r = (e = t).__v).__e, s = [], o = [], e.__P && ((n = ee({}, r)).__v = r.__v + 1, x.vnode && x.vnode(n), pn(e.__P, n, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [i] : null, s, i ?? Re(r), !!(32 & r.__u), o), n.__v = r.__v, n.__.__k[n.__i] = n, Br(s, n, o), r.__e = r.__ = null, n.__e != i && zr(n)));
96
96
  gt.__r = 0;
97
97
  }
98
98
  function Qr(t, e, n, r, i, s, o, l, a, c, d) {
99
99
  var h, p, f, g, m, b, v, k = r && r.__k || Nr, $ = e.length;
100
- for (a = ns(n, e, k, a, $), h = 0; h < $; h++) (f = n.__k[h]) != null && (p = f.__i == -1 ? He : k[f.__i] || He, f.__i = h, b = pn(t, f, p, i, s, o, l, a, c, d), g = f.__e, f.ref && p.ref != f.ref && (p.ref && fn(p.ref, null, f), d.push(f.ref, f.__c || g, f)), m == null && g != null && (m = g), (v = !!(4 & f.__u)) || p.__k === f.__k ? a = Fr(f, a, t, v) : typeof f.type == "function" && b !== void 0 ? a = b : g && (a = g.nextSibling), f.__u &= -7);
100
+ for (a = ns(n, e, k, a, $), h = 0; h < $; h++) (f = n.__k[h]) != null && (p = f.__i == -1 ? Je : k[f.__i] || Je, f.__i = h, b = pn(t, f, p, i, s, o, l, a, c, d), g = f.__e, f.ref && p.ref != f.ref && (p.ref && fn(p.ref, null, f), d.push(f.ref, f.__c || g, f)), m == null && g != null && (m = g), (v = !!(4 & f.__u)) || p.__k === f.__k ? a = Fr(f, a, t, v) : typeof f.type == "function" && b !== void 0 ? a = b : g && (a = g.nextSibling), f.__u &= -7);
101
101
  return n.__e = m, a;
102
102
  }
103
103
  function ns(t, e, n, r, i) {
104
104
  var s, o, l, a, c, d = n.length, h = d, p = 0;
105
- for (t.__k = new Array(i), s = 0; s < i; s++) (o = e[s]) != null && typeof o != "boolean" && typeof o != "function" ? (a = s + p, (o = t.__k[s] = typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Be(null, o, null, null, null) : tt(o) ? Be(z, { children: o }, null, null, null) : o.constructor == null && o.__b > 0 ? Be(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = t, o.__b = t.__b + 1, l = null, (c = o.__i = rs(o, n, a, h)) != -1 && (h--, (l = n[c]) && (l.__u |= 2)), l == null || l.__v == null ? (c == -1 && (i > d ? p-- : i < d && p++), typeof o.type != "function" && (o.__u |= 4)) : c != a && (c == a - 1 ? p-- : c == a + 1 ? p++ : (c > a ? p-- : p++, o.__u |= 4))) : t.__k[s] = null;
106
- if (h) for (s = 0; s < d; s++) (l = n[s]) != null && (2 & l.__u) == 0 && (l.__e == r && (r = Ce(l)), Vr(l, l));
105
+ for (t.__k = new Array(i), s = 0; s < i; s++) (o = e[s]) != null && typeof o != "boolean" && typeof o != "function" ? (a = s + p, (o = t.__k[s] = typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? De(null, o, null, null, null) : tt(o) ? De(z, { children: o }, null, null, null) : o.constructor == null && o.__b > 0 ? De(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = t, o.__b = t.__b + 1, l = null, (c = o.__i = rs(o, n, a, h)) != -1 && (h--, (l = n[c]) && (l.__u |= 2)), l == null || l.__v == null ? (c == -1 && (i > d ? p-- : i < d && p++), typeof o.type != "function" && (o.__u |= 4)) : c != a && (c == a - 1 ? p-- : c == a + 1 ? p++ : (c > a ? p-- : p++, o.__u |= 4))) : t.__k[s] = null;
106
+ if (h) for (s = 0; s < d; s++) (l = n[s]) != null && (2 & l.__u) == 0 && (l.__e == r && (r = Re(l)), Vr(l, l));
107
107
  return r;
108
108
  }
109
109
  function Fr(t, e, n, r) {
@@ -112,7 +112,7 @@ function Fr(t, e, n, r) {
112
112
  for (i = t.__k, s = 0; i && s < i.length; s++) i[s] && (i[s].__ = t, e = Fr(i[s], e, n, r));
113
113
  return e;
114
114
  }
115
- t.__e != e && (r && (e && t.type && !e.parentNode && (e = Ce(t)), n.insertBefore(t.__e, e || null)), e = t.__e);
115
+ t.__e != e && (r && (e && t.type && !e.parentNode && (e = Re(t)), n.insertBefore(t.__e, e || null)), e = t.__e);
116
116
  do
117
117
  e = e && e.nextSibling;
118
118
  while (e != null && e.nodeType == 8);
@@ -163,15 +163,15 @@ function Nn(t) {
163
163
  };
164
164
  }
165
165
  function pn(t, e, n, r, i, s, o, l, a, c) {
166
- var d, h, p, f, g, m, b, v, k, $, Z, se, V, Pn, ot, Pe, qt, G = e.type;
166
+ var d, h, p, f, g, m, b, v, k, $, Z, se, V, Pn, ot, Me, qt, G = e.type;
167
167
  if (e.constructor != null) return null;
168
168
  128 & n.__u && (a = !!(32 & n.__u), s = [l = e.__e = n.__e]), (d = x.__b) && d(e);
169
169
  e: if (typeof G == "function") try {
170
170
  if (v = e.props, k = "prototype" in G && G.prototype.render, $ = (d = G.contextType) && r[d.__c], Z = d ? $ ? $.props.value : d.__ : r, n.__c ? b = (h = e.__c = n.__c).__ = h.__E : (k ? e.__c = h = new G(v, Z) : (e.__c = h = new H(v, Z), h.constructor = G, h.render = ss), $ && $.sub(h), h.props = v, h.state || (h.state = {}), h.context = Z, h.__n = r, p = h.__d = !0, h.__h = [], h._sb = []), k && h.__s == null && (h.__s = h.state), k && G.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = ee({}, h.__s)), ee(h.__s, G.getDerivedStateFromProps(v, h.__s))), f = h.props, g = h.state, h.__v = e, p) k && G.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), k && h.componentDidMount != null && h.__h.push(h.componentDidMount);
171
171
  else {
172
172
  if (k && G.getDerivedStateFromProps == null && v !== f && h.componentWillReceiveProps != null && h.componentWillReceiveProps(v, Z), !h.__e && h.shouldComponentUpdate != null && h.shouldComponentUpdate(v, h.__s, Z) === !1 || e.__v == n.__v) {
173
- for (e.__v != n.__v && (h.props = v, h.state = h.__s, h.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(ve) {
174
- ve && (ve.__ = e);
173
+ for (e.__v != n.__v && (h.props = v, h.state = h.__s, h.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(ke) {
174
+ ke && (ke.__ = e);
175
175
  }), se = 0; se < h._sb.length; se++) h.__h.push(h._sb[se]);
176
176
  h._sb = [], h.__h.length && o.push(h);
177
177
  break e;
@@ -186,17 +186,17 @@ function pn(t, e, n, r, i, s, o, l, a, c) {
186
186
  } else do
187
187
  h.__d = !1, V && V(e), d = h.render(h.props, h.state, h.context), h.state = h.__s;
188
188
  while (h.__d && ++Pn < 25);
189
- h.state = h.__s, h.getChildContext != null && (r = ee(ee({}, r), h.getChildContext())), k && !p && h.getSnapshotBeforeUpdate != null && (m = h.getSnapshotBeforeUpdate(f, g)), Pe = d, d != null && d.type === z && d.key == null && (Pe = Dr(d.props.children)), l = Qr(t, tt(Pe) ? Pe : [Pe], e, n, r, i, s, o, l, a, c), h.base = e.__e, e.__u &= -161, h.__h.length && o.push(h), b && (h.__E = h.__ = null);
190
- } catch (ve) {
191
- if (e.__v = null, a || s != null) if (ve.then) {
189
+ h.state = h.__s, h.getChildContext != null && (r = ee(ee({}, r), h.getChildContext())), k && !p && h.getSnapshotBeforeUpdate != null && (m = h.getSnapshotBeforeUpdate(f, g)), Me = d, d != null && d.type === z && d.key == null && (Me = Dr(d.props.children)), l = Qr(t, tt(Me) ? Me : [Me], e, n, r, i, s, o, l, a, c), h.base = e.__e, e.__u &= -161, h.__h.length && o.push(h), b && (h.__E = h.__ = null);
190
+ } catch (ke) {
191
+ if (e.__v = null, a || s != null) if (ke.then) {
192
192
  for (e.__u |= a ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
193
193
  s[s.indexOf(l)] = null, e.__e = l;
194
194
  } else {
195
195
  for (qt = s.length; qt--; ) dn(s[qt]);
196
196
  Zt(e);
197
197
  }
198
- else e.__e = n.__e, e.__k = n.__k, ve.then || Zt(e);
199
- x.__e(ve, e, n);
198
+ else e.__e = n.__e, e.__k = n.__k, ke.then || Zt(e);
199
+ x.__e(ke, e, n);
200
200
  }
201
201
  else s == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : l = e.__e = is(n.__e, e, n, r, i, s, o, a, c);
202
202
  return (d = x.diffed) && d(e), 128 & e.__u ? void 0 : l;
@@ -233,7 +233,7 @@ function is(t, e, n, r, i, s, o, l, a) {
233
233
  }
234
234
  if (k == null) b === v || l && t.data == v || (t.data = v);
235
235
  else {
236
- if (s = s && et.call(t.childNodes), b = n.props || He, !l && s != null) for (b = {}, c = 0; c < t.attributes.length; c++) b[(f = t.attributes[c]).name] = f.value;
236
+ if (s = s && et.call(t.childNodes), b = n.props || Je, !l && s != null) for (b = {}, c = 0; c < t.attributes.length; c++) b[(f = t.attributes[c]).name] = f.value;
237
237
  for (c in b) if (f = b[c], c != "children") {
238
238
  if (c == "dangerouslySetInnerHTML") h = f;
239
239
  else if (!(c in v)) {
@@ -243,7 +243,7 @@ function is(t, e, n, r, i, s, o, l, a) {
243
243
  }
244
244
  for (c in v) f = v[c], c == "children" ? p = f : c == "dangerouslySetInnerHTML" ? d = f : c == "value" ? g = f : c == "checked" ? m = f : l && typeof f != "function" || b[c] === f || at(t, c, f, b[c], i);
245
245
  if (d) l || h && (d.__html == h.__html || d.__html == t.innerHTML) || (t.innerHTML = d.__html), e.__k = [];
246
- else if (h && (t.innerHTML = ""), Qr(e.type == "template" ? t.content : t, tt(p) ? p : [p], e, n, r, k == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, s, o, s ? s[0] : n.__k && Ce(n, 0), l, a), s != null) for (c = s.length; c--; ) dn(s[c]);
246
+ else if (h && (t.innerHTML = ""), Qr(e.type == "template" ? t.content : t, tt(p) ? p : [p], e, n, r, k == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, s, o, s ? s[0] : n.__k && Re(n, 0), l, a), s != null) for (c = s.length; c--; ) dn(s[c]);
247
247
  l || (c = "value", k == "progress" && g == null ? t.removeAttribute("value") : g != null && (g !== t[c] || k == "progress" && !g || k == "option" && g != b[c]) && at(t, c, g, b[c], i), c = "checked", m != null && m != t[c] && at(t, c, m, b[c], i));
248
248
  }
249
249
  return t;
@@ -274,17 +274,17 @@ function Vr(t, e, n) {
274
274
  function ss(t, e, n) {
275
275
  return this.constructor(t, n);
276
276
  }
277
- function pe(t, e, n) {
277
+ function fe(t, e, n) {
278
278
  var r, i, s, o;
279
- e == document && (e = document.documentElement), x.__ && x.__(t, e), i = (r = typeof n == "function") ? null : n && n.__k || e.__k, s = [], o = [], pn(e, t = (!r && n || e).__k = B(z, null, [t]), i || He, He, e.namespaceURI, !r && n ? [n] : i ? null : e.firstChild ? et.call(e.childNodes) : null, s, !r && n ? n : i ? i.__e : e.firstChild, r, o), Br(s, t, o);
279
+ e == document && (e = document.documentElement), x.__ && x.__(t, e), i = (r = typeof n == "function") ? null : n && n.__k || e.__k, s = [], o = [], pn(e, t = (!r && n || e).__k = B(z, null, [t]), i || Je, Je, e.namespaceURI, !r && n ? [n] : i ? null : e.firstChild ? et.call(e.childNodes) : null, s, !r && n ? n : i ? i.__e : e.firstChild, r, o), Br(s, t, o);
280
280
  }
281
281
  function Ur(t, e) {
282
- pe(t, e, Ur);
282
+ fe(t, e, Ur);
283
283
  }
284
284
  function os(t, e, n) {
285
285
  var r, i, s, o, l = ee({}, t.props);
286
286
  for (s in t.type && t.type.defaultProps && (o = t.type.defaultProps), e) s == "key" ? r = e[s] : s == "ref" ? i = e[s] : l[s] = e[s] === void 0 && o != null ? o[s] : e[s];
287
- return arguments.length > 2 && (l.children = arguments.length > 3 ? et.call(arguments, 2) : n), Be(t.type, l, r || t.key, i || t.ref, null);
287
+ return arguments.length > 2 && (l.children = arguments.length > 3 ? et.call(arguments, 2) : n), De(t.type, l, r || t.key, i || t.ref, null);
288
288
  }
289
289
  function as(t) {
290
290
  function e(n) {
@@ -335,17 +335,17 @@ function u(t, e, n, r, i, s) {
335
335
  if (typeof t == "function" && (o = t.defaultProps)) for (l in o) a[l] === void 0 && (a[l] = o[l]);
336
336
  return x.vnode && x.vnode(c), c;
337
337
  }
338
- var le, j, Mt, zn, Re = 0, Wr = [], S = x, Qn = S.__b, Fn = S.__r, Bn = S.diffed, Dn = S.__c, Vn = S.unmount, Un = S.__;
339
- function Ie(t, e) {
340
- S.__h && S.__h(j, t, Re || e), Re = 0;
338
+ var le, j, Mt, zn, Te = 0, Wr = [], S = x, Qn = S.__b, Fn = S.__r, Bn = S.diffed, Dn = S.__c, Vn = S.unmount, Un = S.__;
339
+ function $e(t, e) {
340
+ S.__h && S.__h(j, t, Te || e), Te = 0;
341
341
  var n = j.__H || (j.__H = { __: [], __h: [] });
342
342
  return t >= n.__.length && n.__.push({}), n.__[t];
343
343
  }
344
344
  function C(t) {
345
- return Re = 1, gn(Gr, t);
345
+ return Te = 1, gn(Gr, t);
346
346
  }
347
347
  function gn(t, e, n) {
348
- var r = Ie(le++, 2);
348
+ var r = $e(le++, 2);
349
349
  if (r.t = t, !r.__c && (r.__ = [n ? n(e) : Gr(void 0, e), function(l) {
350
350
  var a = r.__N ? r.__N[0] : r.__[0], c = r.t(a, l);
351
351
  a !== c && (r.__N = [c, r.__[1]], r.__c.setState({}));
@@ -379,20 +379,20 @@ function gn(t, e, n) {
379
379
  return r.__N || r.__;
380
380
  }
381
381
  function A(t, e) {
382
- var n = Ie(le++, 3);
382
+ var n = $e(le++, 3);
383
383
  !S.__s && mn(n.__H, e) && (n.__ = t, n.u = e, j.__H.__h.push(n));
384
384
  }
385
385
  function nt(t, e) {
386
- var n = Ie(le++, 4);
386
+ var n = $e(le++, 4);
387
387
  !S.__s && mn(n.__H, e) && (n.__ = t, n.u = e, j.__h.push(n));
388
388
  }
389
- function fe(t) {
390
- return Re = 5, D(function() {
389
+ function ge(t) {
390
+ return Te = 5, D(function() {
391
391
  return { current: t };
392
392
  }, []);
393
393
  }
394
394
  function Hr(t, e, n) {
395
- Re = 6, nt(function() {
395
+ Te = 6, nt(function() {
396
396
  if (typeof t == "function") {
397
397
  var r = t(e());
398
398
  return function() {
@@ -405,23 +405,23 @@ function Hr(t, e, n) {
405
405
  }, n == null ? n : n.concat(t));
406
406
  }
407
407
  function D(t, e) {
408
- var n = Ie(le++, 7);
408
+ var n = $e(le++, 7);
409
409
  return mn(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
410
410
  }
411
- function Se(t, e) {
412
- return Re = 8, D(function() {
411
+ function Ce(t, e) {
412
+ return Te = 8, D(function() {
413
413
  return t;
414
414
  }, e);
415
415
  }
416
416
  function Ct(t) {
417
- var e = j.context[t.__c], n = Ie(le++, 9);
417
+ var e = j.context[t.__c], n = $e(le++, 9);
418
418
  return n.c = t, e ? (n.__ == null && (n.__ = !0, e.sub(j)), e.props.value) : t.__;
419
419
  }
420
420
  function Jr(t, e) {
421
421
  S.useDebugValue && S.useDebugValue(e ? e(t) : t);
422
422
  }
423
423
  function Zr() {
424
- var t = Ie(le++, 11);
424
+ var t = $e(le++, 11);
425
425
  if (!t.__) {
426
426
  for (var e = j.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__;
427
427
  var n = e.__m || (e.__m = [0, 0]);
@@ -507,7 +507,7 @@ function Kt(t, e) {
507
507
  for (var r in e) if (r !== "__source" && t[r] !== e[r]) return !0;
508
508
  return !1;
509
509
  }
510
- function Yr(t, e) {
510
+ function Xr(t, e) {
511
511
  var n = e(), r = C({ t: { __: n, u: e } }), i = r[0].t, s = r[1];
512
512
  return nt(function() {
513
513
  i.__ = n, i.u = e, Lt(i) && s({ t: i });
@@ -526,17 +526,17 @@ function Lt(t) {
526
526
  return !0;
527
527
  }
528
528
  }
529
- function Xr(t) {
529
+ function Yr(t) {
530
530
  t();
531
531
  }
532
532
  function ei(t) {
533
533
  return t;
534
534
  }
535
535
  function ti() {
536
- return [!1, Xr];
536
+ return [!1, Yr];
537
537
  }
538
538
  var ni = nt;
539
- function Yt(t, e) {
539
+ function Xt(t, e) {
540
540
  this.props = t, this.context = e;
541
541
  }
542
542
  function hs(t, e) {
@@ -549,7 +549,7 @@ function hs(t, e) {
549
549
  }
550
550
  return r.displayName = "Memo(" + (t.displayName || t.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = t, r;
551
551
  }
552
- (Yt.prototype = new H()).isPureReactComponent = !0, Yt.prototype.shouldComponentUpdate = function(t, e) {
552
+ (Xt.prototype = new H()).isPureReactComponent = !0, Xt.prototype.shouldComponentUpdate = function(t, e) {
553
553
  return Kt(this.props, t) || Kt(this.state, e);
554
554
  };
555
555
  var Hn = x.__b;
@@ -612,7 +612,7 @@ function ms(t) {
612
612
  }
613
613
  return i.displayName = "Lazy", i.__f = !0, i;
614
614
  }
615
- function Ne() {
615
+ function ze() {
616
616
  this.i = null, this.l = null;
617
617
  }
618
618
  x.unmount = function(t) {
@@ -664,7 +664,7 @@ function xs(t) {
664
664
  function bs(t) {
665
665
  var e = this, n = t.h;
666
666
  if (e.componentWillUnmount = function() {
667
- pe(null, e.v), e.v = null, e.h = null;
667
+ fe(null, e.v), e.v = null, e.h = null;
668
668
  }, e.h && e.h !== n && e.componentWillUnmount(), !e.v) {
669
669
  for (var r = e.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
670
670
  e.h = n, e.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
@@ -675,13 +675,13 @@ function bs(t) {
675
675
  this.childNodes.splice(this.childNodes.indexOf(i) >>> 1, 1), e.h.removeChild(i);
676
676
  } };
677
677
  }
678
- pe(B(xs, { context: e.context }, t.__v), e.v);
678
+ fe(B(xs, { context: e.context }, t.__v), e.v);
679
679
  }
680
680
  function ys(t, e) {
681
681
  var n = B(bs, { __v: t, h: e });
682
682
  return n.containerInfo = e, n;
683
683
  }
684
- (Ne.prototype = new H()).__a = function(t) {
684
+ (ze.prototype = new H()).__a = function(t) {
685
685
  var e = this, n = si(e.__v), r = e.l.get(t);
686
686
  return r[0]++, function(i) {
687
687
  var s = function() {
@@ -689,13 +689,13 @@ function ys(t, e) {
689
689
  };
690
690
  n ? n(s) : s();
691
691
  };
692
- }, Ne.prototype.render = function(t) {
692
+ }, ze.prototype.render = function(t) {
693
693
  this.i = null, this.l = /* @__PURE__ */ new Map();
694
694
  var e = te(t.children);
695
695
  t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
696
696
  for (var n = e.length; n--; ) this.l.set(e[n], this.i = [1, 0, this.i]);
697
697
  return t.children;
698
- }, Ne.prototype.componentDidUpdate = Ne.prototype.componentDidMount = function() {
698
+ }, ze.prototype.componentDidUpdate = ze.prototype.componentDidMount = function() {
699
699
  var t = this;
700
700
  this.l.forEach(function(e, n) {
701
701
  Gn(t, n, e);
@@ -705,7 +705,7 @@ var oi = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.
705
705
  return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
706
706
  };
707
707
  function Ss(t, e, n) {
708
- return e.__k == null && (e.textContent = ""), pe(t, e), typeof n == "function" && n(), t ? t.__c : null;
708
+ return e.__k == null && (e.textContent = ""), fe(t, e), typeof n == "function" && n(), t ? t.__c : null;
709
709
  }
710
710
  function Cs(t, e, n) {
711
711
  return Ur(t, e), typeof n == "function" && n(), t ? t.__c : null;
@@ -731,7 +731,7 @@ x.event = function(t) {
731
731
  };
732
732
  var xn, Is = { enumerable: !1, configurable: !0, get: function() {
733
733
  return this.class;
734
- } }, Yn = x.vnode;
734
+ } }, Xn = x.vnode;
735
735
  x.vnode = function(t) {
736
736
  typeof t.type == "string" && (function(e) {
737
737
  var n = e.props, r = e.type, i = {}, s = r.indexOf("-") === -1;
@@ -747,11 +747,11 @@ x.vnode = function(t) {
747
747
  })), r == "select" && i.defaultValue != null && (i.value = te(n.children).forEach(function(c) {
748
748
  c.props.selected = i.multiple ? i.defaultValue.indexOf(c.props.value) != -1 : i.defaultValue == c.props.value;
749
749
  })), n.class && !n.className ? (i.class = n.class, Object.defineProperty(i, "className", Is)) : (n.className && !n.class || n.class && n.className) && (i.class = i.className = n.className), e.props = i;
750
- })(t), t.$$typeof = oi, Yn && Yn(t);
750
+ })(t), t.$$typeof = oi, Xn && Xn(t);
751
751
  };
752
- var Xn = x.__r;
752
+ var Yn = x.__r;
753
753
  x.__r = function(t) {
754
- Xn && Xn(t), xn = t.__c;
754
+ Yn && Yn(t), xn = t.__c;
755
755
  };
756
756
  var er = x.diffed;
757
757
  x.diffed = function(t) {
@@ -761,7 +761,7 @@ x.diffed = function(t) {
761
761
  };
762
762
  var $s = { ReactCurrentDispatcher: { current: { readContext: function(t) {
763
763
  return xn.__n[t.__c].props.value;
764
- }, useCallback: Se, useContext: Ct, useDebugValue: Jr, useDeferredValue: ei, useEffect: A, useId: Zr, useImperativeHandle: Hr, useInsertionEffect: ni, useLayoutEffect: nt, useMemo: D, useReducer: gn, useRef: fe, useState: C, useSyncExternalStore: Yr, useTransition: ti } } };
764
+ }, useCallback: Ce, useContext: Ct, useDebugValue: Jr, useDeferredValue: ei, useEffect: A, useId: Zr, useImperativeHandle: Hr, useInsertionEffect: ni, useLayoutEffect: nt, useMemo: D, useReducer: gn, useRef: ge, useState: C, useSyncExternalStore: Xr, useTransition: ti } } };
765
765
  function Es(t) {
766
766
  return B.bind(null, t);
767
767
  }
@@ -778,7 +778,7 @@ function Ms(t) {
778
778
  return Rt(t) ? os.apply(null, arguments) : t;
779
779
  }
780
780
  function Ls(t) {
781
- return !!t.__k && (pe(null, t), !0);
781
+ return !!t.__k && (fe(null, t), !0);
782
782
  }
783
783
  function Os(t) {
784
784
  return t && (t.base || t.nodeType === 1 && t) || null;
@@ -787,9 +787,9 @@ var Ns = function(t, e) {
787
787
  return t(e);
788
788
  }, zs = function(t, e) {
789
789
  return t(e);
790
- }, Qs = z, Fs = Rt, bn = { useState: C, useId: Zr, useReducer: gn, useEffect: A, useLayoutEffect: nt, useInsertionEffect: ni, useTransition: ti, useDeferredValue: ei, useSyncExternalStore: Yr, startTransition: Xr, useRef: fe, useImperativeHandle: Hr, useMemo: D, useCallback: Se, useContext: Ct, useDebugValue: Jr, version: "18.3.1", Children: fs, render: Ss, hydrate: Cs, unmountComponentAtNode: Ls, createPortal: ys, createElement: B, createContext: as, createFactory: Es, cloneElement: Ms, createRef: ts, Fragment: z, isValidElement: Rt, isElement: Fs, isFragment: qs, isMemo: Ps, findDOMNode: Os, Component: H, PureComponent: Yt, memo: hs, forwardRef: ps, flushSync: zs, unstable_batchedUpdates: Ns, StrictMode: Qs, Suspense: pt, SuspenseList: Ne, lazy: ms, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: $s }, X = [], F = [], Bs = Uint8Array, Ot = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
791
- for (var ke = 0, Ds = Ot.length; ke < Ds; ++ke)
792
- X[ke] = Ot[ke], F[Ot.charCodeAt(ke)] = ke;
790
+ }, Qs = z, Fs = Rt, bn = { useState: C, useId: Zr, useReducer: gn, useEffect: A, useLayoutEffect: nt, useInsertionEffect: ni, useTransition: ti, useDeferredValue: ei, useSyncExternalStore: Xr, startTransition: Yr, useRef: ge, useImperativeHandle: Hr, useMemo: D, useCallback: Ce, useContext: Ct, useDebugValue: Jr, version: "18.3.1", Children: fs, render: Ss, hydrate: Cs, unmountComponentAtNode: Ls, createPortal: ys, createElement: B, createContext: as, createFactory: Es, cloneElement: Ms, createRef: ts, Fragment: z, isValidElement: Rt, isElement: Fs, isFragment: qs, isMemo: Ps, findDOMNode: Os, Component: H, PureComponent: Xt, memo: hs, forwardRef: ps, flushSync: zs, unstable_batchedUpdates: Ns, StrictMode: Qs, Suspense: pt, SuspenseList: ze, lazy: ms, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: $s }, Y = [], F = [], Bs = Uint8Array, Ot = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
791
+ for (var _e = 0, Ds = Ot.length; _e < Ds; ++_e)
792
+ Y[_e] = Ot[_e], F[Ot.charCodeAt(_e)] = _e;
793
793
  F[45] = 62;
794
794
  F[95] = 63;
795
795
  function Vs(t) {
@@ -804,21 +804,21 @@ function Vs(t) {
804
804
  function Us(t, e, n) {
805
805
  return (e + n) * 3 / 4 - n;
806
806
  }
807
- function Je(t) {
807
+ function Ze(t) {
808
808
  var e, n = Vs(t), r = n[0], i = n[1], s = new Bs(Us(t, r, i)), o = 0, l = i > 0 ? r - 4 : r, a;
809
809
  for (a = 0; a < l; a += 4)
810
810
  e = F[t.charCodeAt(a)] << 18 | F[t.charCodeAt(a + 1)] << 12 | F[t.charCodeAt(a + 2)] << 6 | F[t.charCodeAt(a + 3)], s[o++] = e >> 16 & 255, s[o++] = e >> 8 & 255, s[o++] = e & 255;
811
811
  return i === 2 && (e = F[t.charCodeAt(a)] << 2 | F[t.charCodeAt(a + 1)] >> 4, s[o++] = e & 255), i === 1 && (e = F[t.charCodeAt(a)] << 10 | F[t.charCodeAt(a + 1)] << 4 | F[t.charCodeAt(a + 2)] >> 2, s[o++] = e >> 8 & 255, s[o++] = e & 255), s;
812
812
  }
813
813
  function Ws(t) {
814
- return X[t >> 18 & 63] + X[t >> 12 & 63] + X[t >> 6 & 63] + X[t & 63];
814
+ return Y[t >> 18 & 63] + Y[t >> 12 & 63] + Y[t >> 6 & 63] + Y[t & 63];
815
815
  }
816
816
  function Hs(t, e, n) {
817
817
  for (var r, i = [], s = e; s < n; s += 3)
818
818
  r = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (t[s + 2] & 255), i.push(Ws(r));
819
819
  return i.join("");
820
820
  }
821
- function Ze(t) {
821
+ function Ge(t) {
822
822
  for (var e, n = t.length, r = n % 3, i = [], s = 16383, o = 0, l = n - r; o < l; o += s)
823
823
  i.push(
824
824
  Hs(
@@ -827,8 +827,8 @@ function Ze(t) {
827
827
  o + s > l ? l : o + s
828
828
  )
829
829
  );
830
- return r === 1 ? (e = t[n - 1], i.push(X[e >> 2] + X[e << 4 & 63] + "==")) : r === 2 && (e = (t[n - 2] << 8) + t[n - 1], i.push(
831
- X[e >> 10] + X[e >> 4 & 63] + X[e << 2 & 63] + "="
830
+ return r === 1 ? (e = t[n - 1], i.push(Y[e >> 2] + Y[e << 4 & 63] + "==")) : r === 2 && (e = (t[n - 2] << 8) + t[n - 1], i.push(
831
+ Y[e >> 10] + Y[e >> 4 & 63] + Y[e << 2 & 63] + "="
832
832
  )), i.join("");
833
833
  }
834
834
  function ie(t) {
@@ -871,48 +871,48 @@ function ai(t) {
871
871
  n?.constructor?.name === "Object";
872
872
  return e && r;
873
873
  }
874
- const li = !0, Te = BigInt("-9223372036854775808"), yn = BigInt("9223372036854775807"), Xt = BigInt("0"), Zs = BigInt("8"), Gs = BigInt("256");
874
+ const li = !0, Ae = BigInt("-9223372036854775808"), yn = BigInt("9223372036854775807"), Yt = BigInt("0"), Zs = BigInt("8"), Gs = BigInt("256");
875
875
  function ci(t) {
876
876
  return Number.isNaN(t) || !Number.isFinite(t) || Object.is(t, -0);
877
877
  }
878
878
  function Ks(t) {
879
- t < Xt && (t -= Te + Te);
879
+ t < Yt && (t -= Ae + Ae);
880
880
  let e = t.toString(16);
881
881
  e.length % 2 === 1 && (e = "0" + e);
882
882
  const n = new Uint8Array(new ArrayBuffer(8));
883
883
  let r = 0;
884
884
  for (const i of e.match(/.{2}/g).reverse())
885
885
  n.set([parseInt(i, 16)], r++), t >>= Zs;
886
- return Ze(n);
886
+ return Ge(n);
887
887
  }
888
- function Ys(t) {
889
- const e = Je(t);
888
+ function Xs(t) {
889
+ const e = Ze(t);
890
890
  if (e.byteLength !== 8)
891
891
  throw new Error(
892
892
  `Received ${e.byteLength} bytes, expected 8 for $integer`
893
893
  );
894
- let n = Xt, r = Xt;
894
+ let n = Yt, r = Yt;
895
895
  for (const i of e)
896
896
  n += BigInt(i) * Gs ** r, r++;
897
- return n > yn && (n += Te + Te), n;
897
+ return n > yn && (n += Ae + Ae), n;
898
898
  }
899
- function Xs(t) {
900
- if (t < Te || yn < t)
899
+ function Ys(t) {
900
+ if (t < Ae || yn < t)
901
901
  throw new Error(
902
902
  `BigInt ${t} does not fit into a 64-bit signed integer.`
903
903
  );
904
904
  const e = new ArrayBuffer(8);
905
- return new DataView(e).setBigInt64(0, t, !0), Ze(new Uint8Array(e));
905
+ return new DataView(e).setBigInt64(0, t, !0), Ge(new Uint8Array(e));
906
906
  }
907
907
  function eo(t) {
908
- const e = Je(t);
908
+ const e = Ze(t);
909
909
  if (e.byteLength !== 8)
910
910
  throw new Error(
911
911
  `Received ${e.byteLength} bytes, expected 8 for $integer`
912
912
  );
913
913
  return new DataView(e.buffer).getBigInt64(0, !0);
914
914
  }
915
- const to = DataView.prototype.setBigInt64 ? Xs : Ks, no = DataView.prototype.getBigInt64 ? eo : Ys, tr = 1024;
915
+ const to = DataView.prototype.setBigInt64 ? Ys : Ks, no = DataView.prototype.getBigInt64 ? eo : Xs, tr = 1024;
916
916
  function ui(t) {
917
917
  if (t.length > tr)
918
918
  throw new Error(
@@ -928,11 +928,11 @@ function ui(t) {
928
928
  );
929
929
  }
930
930
  }
931
- function Ae(t) {
931
+ function Ie(t) {
932
932
  if (t === null || typeof t == "boolean" || typeof t == "number" || typeof t == "string")
933
933
  return t;
934
934
  if (Array.isArray(t))
935
- return t.map((r) => Ae(r));
935
+ return t.map((r) => Ie(r));
936
936
  if (typeof t != "object")
937
937
  throw new Error(`Unexpected type of ${t}`);
938
938
  const e = Object.entries(t);
@@ -941,7 +941,7 @@ function Ae(t) {
941
941
  if (r === "$bytes") {
942
942
  if (typeof t.$bytes != "string")
943
943
  throw new Error(`Malformed $bytes field on ${t}`);
944
- return Je(t.$bytes).buffer;
944
+ return Ze(t.$bytes).buffer;
945
945
  }
946
946
  if (r === "$integer") {
947
947
  if (typeof t.$integer != "string")
@@ -951,7 +951,7 @@ function Ae(t) {
951
951
  if (r === "$float") {
952
952
  if (typeof t.$float != "string")
953
953
  throw new Error(`Malformed $float field on ${t}`);
954
- const i = Je(t.$float);
954
+ const i = Ze(t.$float);
955
955
  if (i.byteLength !== 8)
956
956
  throw new Error(
957
957
  `Received ${i.byteLength} bytes, expected 8 for $float`
@@ -972,11 +972,11 @@ function Ae(t) {
972
972
  }
973
973
  const n = {};
974
974
  for (const [r, i] of Object.entries(t))
975
- ui(r), n[r] = Ae(i);
975
+ ui(r), n[r] = Ie(i);
976
976
  return n;
977
977
  }
978
978
  const nr = 16384;
979
- function De(t) {
979
+ function Ve(t) {
980
980
  const e = JSON.stringify(t, (n, r) => r === void 0 ? "undefined" : typeof r == "bigint" ? `${r.toString()}n` : r);
981
981
  if (e.length > nr) {
982
982
  const n = "[...truncated]";
@@ -988,7 +988,7 @@ function De(t) {
988
988
  }
989
989
  function en(t, e, n, r) {
990
990
  if (t === void 0) {
991
- const o = n && ` (present at path ${n} in original object ${De(
991
+ const o = n && ` (present at path ${n} in original object ${Ve(
992
992
  e
993
993
  )})`;
994
994
  throw new Error(
@@ -998,7 +998,7 @@ function en(t, e, n, r) {
998
998
  if (t === null)
999
999
  return t;
1000
1000
  if (typeof t == "bigint") {
1001
- if (t < Te || yn < t)
1001
+ if (t < Ae || yn < t)
1002
1002
  throw new Error(
1003
1003
  `BigInt ${t} does not fit into a 64-bit signed integer.`
1004
1004
  );
@@ -1007,13 +1007,13 @@ function en(t, e, n, r) {
1007
1007
  if (typeof t == "number")
1008
1008
  if (ci(t)) {
1009
1009
  const o = new ArrayBuffer(8);
1010
- return new DataView(o).setFloat64(0, t, li), { $float: Ze(new Uint8Array(o)) };
1010
+ return new DataView(o).setFloat64(0, t, li), { $float: Ge(new Uint8Array(o)) };
1011
1011
  } else
1012
1012
  return t;
1013
1013
  if (typeof t == "boolean" || typeof t == "string")
1014
1014
  return t;
1015
1015
  if (t instanceof ArrayBuffer)
1016
- return { $bytes: Ze(new Uint8Array(t)) };
1016
+ return { $bytes: Ge(new Uint8Array(t)) };
1017
1017
  if (Array.isArray(t))
1018
1018
  return t.map(
1019
1019
  (o, l) => en(o, e, n + `[${l}]`)
@@ -1039,11 +1039,11 @@ function en(t, e, n, r) {
1039
1039
  return i;
1040
1040
  }
1041
1041
  function Nt(t, e, n, r) {
1042
- return t ? `${e}${De(
1042
+ return t ? `${e}${Ve(
1043
1043
  n
1044
- )} is not a supported Convex type (present at path ${t} in original object ${De(
1044
+ )} is not a supported Convex type (present at path ${t} in original object ${Ve(
1045
1045
  r
1046
- )}). To learn about Convex's supported types, see https://docs.convex.dev/using/types.` : `${e}${De(
1046
+ )}). To learn about Convex's supported types, see https://docs.convex.dev/using/types.` : `${e}${Ve(
1047
1047
  n
1048
1048
  )} is not a supported Convex type.`;
1049
1049
  }
@@ -1054,13 +1054,13 @@ var ro = Object.defineProperty, io = (t, e, n) => e in t ? ro(t, e, { enumerable
1054
1054
  const so = /* @__PURE__ */ Symbol.for("ConvexError");
1055
1055
  class tn extends (ir = Error, rr = so, ir) {
1056
1056
  constructor(e) {
1057
- super(typeof e == "string" ? e : De(e)), zt(this, "name", "ConvexError"), zt(this, "data"), zt(this, rr, !0), this.data = e;
1057
+ super(typeof e == "string" ? e : Ve(e)), zt(this, "name", "ConvexError"), zt(this, "data"), zt(this, rr, !0), this.data = e;
1058
1058
  }
1059
1059
  }
1060
1060
  const hi = () => Array.from({ length: 4 }, () => 0);
1061
1061
  hi();
1062
1062
  hi();
1063
- const sr = "1.38.0";
1063
+ const sr = "1.39.1";
1064
1064
  var oo = Object.defineProperty, ao = (t, e, n) => e in t ? oo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, or = (t, e, n) => ao(t, typeof e != "symbol" ? e + "" : e, n);
1065
1065
  const lo = "color:rgb(0, 145, 255)";
1066
1066
  function di(t) {
@@ -1148,21 +1148,21 @@ function co(t, e) {
1148
1148
  const n = `[CONVEX FATAL ERROR] ${e}`;
1149
1149
  return t.error(n), new Error(n);
1150
1150
  }
1151
- function je(t, e, n) {
1151
+ function Se(t, e, n) {
1152
1152
  return `[CONVEX ${di(t)}(${e})] ${n.errorMessage}
1153
1153
  Called by client`;
1154
1154
  }
1155
1155
  function nn(t, e) {
1156
1156
  return e.data = t.errorData, e;
1157
1157
  }
1158
- function ge(t) {
1158
+ function me(t) {
1159
1159
  const e = t.split(":");
1160
1160
  let n, r;
1161
1161
  return e.length === 1 ? (n = e[0], r = "default") : (n = e.slice(0, e.length - 1).join(":"), r = e[e.length - 1]), n.endsWith(".js") && (n = n.slice(0, -3)), `${n}:${r}`;
1162
1162
  }
1163
1163
  function he(t, e) {
1164
1164
  return JSON.stringify({
1165
- udfPath: ge(t),
1165
+ udfPath: me(t),
1166
1166
  args: ne(e)
1167
1167
  });
1168
1168
  }
@@ -1170,7 +1170,7 @@ function ar(t, e, n) {
1170
1170
  const { initialNumItems: r, id: i } = n;
1171
1171
  return JSON.stringify({
1172
1172
  type: "paginated",
1173
- udfPath: ge(t),
1173
+ udfPath: me(t),
1174
1174
  args: ne(e),
1175
1175
  options: ne({ initialNumItems: r, id: i })
1176
1176
  });
@@ -1187,7 +1187,7 @@ class po {
1187
1187
  this.outstandingAuthOlderThanRestart = !1;
1188
1188
  }
1189
1189
  subscribe(e, n, r, i) {
1190
- const s = ge(e), o = he(s, n), l = this.querySet.get(o);
1190
+ const s = me(e), o = he(s, n), l = this.querySet.get(o);
1191
1191
  if (l !== void 0)
1192
1192
  return l.numSubscribers += 1, {
1193
1193
  queryToken: o,
@@ -1246,7 +1246,7 @@ class po {
1246
1246
  }
1247
1247
  }
1248
1248
  queryId(e, n) {
1249
- const r = ge(e), i = he(r, n), s = this.querySet.get(i);
1249
+ const r = me(e), i = he(r, n), s = this.querySet.get(i);
1250
1250
  return s !== void 0 ? s.id : null;
1251
1251
  }
1252
1252
  isCurrentOrNewerAuthVersion(e) {
@@ -1415,14 +1415,14 @@ class mo {
1415
1415
  o = {
1416
1416
  success: !0,
1417
1417
  logLines: e.logLines,
1418
- value: Ae(e.result)
1418
+ value: Ie(e.result)
1419
1419
  }, l = () => s.onResult(o);
1420
1420
  else {
1421
1421
  const a = e.result, { errorData: c } = e;
1422
1422
  mt(this.logger, "error", r, i, a), o = {
1423
1423
  success: !1,
1424
1424
  errorMessage: a,
1425
- errorData: c !== void 0 ? Ae(c) : void 0,
1425
+ errorData: c !== void 0 ? Ie(c) : void 0,
1426
1426
  logLines: e.logLines
1427
1427
  }, l = () => s.onResult(o);
1428
1428
  }
@@ -1518,7 +1518,7 @@ class mo {
1518
1518
  return this.inflightActionsCount;
1519
1519
  }
1520
1520
  }
1521
- const Ge = /* @__PURE__ */ Symbol.for("functionName"), mi = /* @__PURE__ */ Symbol.for("toReferencePath");
1521
+ const Ke = /* @__PURE__ */ Symbol.for("functionName"), mi = /* @__PURE__ */ Symbol.for("toReferencePath");
1522
1522
  function xo(t) {
1523
1523
  return t[mi] ?? null;
1524
1524
  }
@@ -1529,8 +1529,8 @@ function yo(t) {
1529
1529
  let e;
1530
1530
  if (typeof t == "string")
1531
1531
  bo(t) ? e = { functionHandle: t } : e = { name: t };
1532
- else if (t[Ge])
1533
- e = { name: t[Ge] };
1532
+ else if (t[Ke])
1533
+ e = { name: t[Ke] };
1534
1534
  else {
1535
1535
  const n = xo(t);
1536
1536
  if (!n)
@@ -1550,13 +1550,13 @@ function L(t) {
1550
1550
  `Expected function reference like "api.file.func" or "internal.file.func", but received ${JSON.stringify(e)}`
1551
1551
  );
1552
1552
  if (typeof t == "string") return t;
1553
- const n = t[Ge];
1553
+ const n = t[Ke];
1554
1554
  if (!n)
1555
1555
  throw new Error(`${t} is not a functionReference`);
1556
1556
  return n;
1557
1557
  }
1558
1558
  function xi(t) {
1559
- return { [Ge]: t };
1559
+ return { [Ke]: t };
1560
1560
  }
1561
1561
  function bi(t = []) {
1562
1562
  const e = {
@@ -1564,7 +1564,7 @@ function bi(t = []) {
1564
1564
  if (typeof r == "string") {
1565
1565
  const i = [...t, r];
1566
1566
  return bi(i);
1567
- } else if (r === Ge) {
1567
+ } else if (r === Ke) {
1568
1568
  if (t.length < 2) {
1569
1569
  const o = ["api", ...t].join(".");
1570
1570
  throw new Error(
@@ -1580,7 +1580,7 @@ function bi(t = []) {
1580
1580
  }
1581
1581
  const vo = bi();
1582
1582
  var ko = Object.defineProperty, _o = (t, e, n) => e in t ? ko(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, xt = (t, e, n) => _o(t, typeof e != "symbol" ? e + "" : e, n);
1583
- class Ke {
1583
+ class Xe {
1584
1584
  constructor(e) {
1585
1585
  xt(this, "queryResults"), xt(this, "modifiedQueries"), this.queryResults = e, this.modifiedQueries = [];
1586
1586
  }
@@ -1589,14 +1589,14 @@ class Ke {
1589
1589
  he(i, r)
1590
1590
  );
1591
1591
  if (s !== void 0)
1592
- return Ke.queryValue(s.result);
1592
+ return Xe.queryValue(s.result);
1593
1593
  }
1594
1594
  getAllQueries(e) {
1595
1595
  const n = [], r = L(e);
1596
1596
  for (const i of this.queryResults.values())
1597
- i.udfPath === ge(r) && n.push({
1597
+ i.udfPath === me(r) && n.push({
1598
1598
  args: i.args,
1599
- value: Ke.queryValue(i.result)
1599
+ value: Xe.queryValue(i.result)
1600
1600
  });
1601
1601
  return n;
1602
1602
  }
@@ -1632,7 +1632,7 @@ class wo {
1632
1632
  this.optimisticUpdates = this.optimisticUpdates.filter((o) => !n.has(o.mutationId));
1633
1633
  const r = this.queryResults;
1634
1634
  this.queryResults = new Map(e);
1635
- const i = new Ke(this.queryResults);
1635
+ const i = new Xe(this.queryResults);
1636
1636
  for (const o of this.optimisticUpdates)
1637
1637
  o.update(i);
1638
1638
  const s = [];
@@ -1647,7 +1647,7 @@ class wo {
1647
1647
  update: e,
1648
1648
  mutationId: n
1649
1649
  });
1650
- const r = new Ke(this.queryResults);
1650
+ const r = new Xe(this.queryResults);
1651
1651
  return e(r), r.modifiedQueries;
1652
1652
  }
1653
1653
  /**
@@ -1672,10 +1672,10 @@ class wo {
1672
1672
  throw r.errorData !== void 0 ? nn(
1673
1673
  r,
1674
1674
  new tn(
1675
- je("query", n.udfPath, r)
1675
+ Se("query", n.udfPath, r)
1676
1676
  )
1677
1677
  ) : new Error(
1678
- je("query", n.udfPath, r)
1678
+ Se("query", n.udfPath, r)
1679
1679
  );
1680
1680
  }
1681
1681
  }
@@ -1719,10 +1719,10 @@ class M {
1719
1719
  ];
1720
1720
  }
1721
1721
  static fromNumber(e) {
1722
- return isNaN(e) || e < 0 ? Co : e >= Ro ? To : new M(e % Ve | 0, e / Ve | 0);
1722
+ return isNaN(e) || e < 0 ? Co : e >= Ro ? To : new M(e % Ue | 0, e / Ue | 0);
1723
1723
  }
1724
1724
  toString() {
1725
- return (BigInt(this.high) * BigInt(Ve) + BigInt(this.low)).toString();
1725
+ return (BigInt(this.high) * BigInt(Ue) + BigInt(this.low)).toString();
1726
1726
  }
1727
1727
  equals(e) {
1728
1728
  return M.isLong(e) || (e = M.fromValue(e)), this.high >>> 31 === 1 && e.high >>> 31 === 1 ? !1 : this.high === e.high && this.low === e.low;
@@ -1743,7 +1743,7 @@ class M {
1743
1743
  return typeof e == "number" ? M.fromNumber(e) : new M(e.low, e.high);
1744
1744
  }
1745
1745
  }
1746
- const Co = new M(0, 0), lr = 65536, Ve = lr * lr, Ro = Ve * Ve, To = new M(-1, -1);
1746
+ const Co = new M(0, 0), lr = 65536, Ue = lr * lr, Ro = Ue * Ue, To = new M(-1, -1);
1747
1747
  var Ao = Object.defineProperty, Io = (t, e, n) => e in t ? Ao(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ct = (t, e, n) => Io(t, typeof e != "symbol" ? e + "" : e, n);
1748
1748
  class cr {
1749
1749
  constructor(e, n) {
@@ -1762,7 +1762,7 @@ class cr {
1762
1762
  if (i)
1763
1763
  for (const o of r.logLines)
1764
1764
  mt(this.logger, "info", "query", i, o);
1765
- const s = Ae(r.value ?? null);
1765
+ const s = Ie(r.value ?? null);
1766
1766
  this.remoteQuerySet.set(r.queryId, {
1767
1767
  success: !0,
1768
1768
  value: s,
@@ -1779,7 +1779,7 @@ class cr {
1779
1779
  this.remoteQuerySet.set(r.queryId, {
1780
1780
  success: !1,
1781
1781
  errorMessage: r.errorMessage,
1782
- errorData: s !== void 0 ? Ae(s) : void 0,
1782
+ errorData: s !== void 0 ? Ie(s) : void 0,
1783
1783
  logLines: r.logLines
1784
1784
  });
1785
1785
  break;
@@ -1801,12 +1801,12 @@ class cr {
1801
1801
  }
1802
1802
  }
1803
1803
  function Ft(t) {
1804
- const e = Je(t);
1804
+ const e = Ze(t);
1805
1805
  return M.fromBytesLE(Array.from(e));
1806
1806
  }
1807
1807
  function $o(t) {
1808
1808
  const e = new Uint8Array(t.toBytesLE());
1809
- return Ze(e);
1809
+ return Ge(e);
1810
1810
  }
1811
1811
  function ur(t) {
1812
1812
  switch (t.type) {
@@ -1850,11 +1850,11 @@ function Eo(t) {
1850
1850
  var qo = Object.defineProperty, Po = (t, e, n) => e in t ? qo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, R = (t, e, n) => Po(t, typeof e != "symbol" ? e + "" : e, n);
1851
1851
  const Mo = 1e3, Lo = 1001, Oo = 1005, No = 4040;
1852
1852
  let ft;
1853
- function we() {
1853
+ function je() {
1854
1854
  return ft === void 0 && (ft = Date.now()), typeof performance > "u" || !performance.now ? Date.now() : Math.round(ft + performance.now());
1855
1855
  }
1856
1856
  function hr() {
1857
- return `t=${Math.round((we() - ft) / 100) / 10}s`;
1857
+ return `t=${Math.round((je() - ft) / 100) / 10}s`;
1858
1858
  }
1859
1859
  const yi = {
1860
1860
  // A known error, e.g. during a restart or push
@@ -1949,7 +1949,7 @@ class Qo {
1949
1949
  }), this.resetServerInactivityTimeout(), this.socket.paused === "no" && (this._hasEverConnected = !0, this.onOpen({
1950
1950
  connectionCount: this.connectionCount,
1951
1951
  lastCloseReason: this.lastCloseReason,
1952
- clientTs: we()
1952
+ clientTs: je()
1953
1953
  })), this.lastCloseReason !== "InitialConnect" && (this.lastCloseReason ? this.logger.log(
1954
1954
  "WebSocket reconnected at",
1955
1955
  hr(),
@@ -2047,7 +2047,7 @@ class Qo {
2047
2047
  this.scheduledReconnect && (clearTimeout(this.scheduledReconnect.timeout), this.scheduledReconnect = null), this.socket = { state: "disconnected" };
2048
2048
  const n = this.nextBackoff(e);
2049
2049
  this.markConnectionStateDirty(), this.logger.log(`Attempting reconnect in ${Math.round(n)}ms`);
2050
- const r = we(), i = setTimeout(() => {
2050
+ const r = je(), i = setTimeout(() => {
2051
2051
  this.scheduledReconnect?.timeout === i && (this.scheduledReconnect = null, this.connect());
2052
2052
  }, n);
2053
2053
  this.scheduledReconnect = {
@@ -2204,7 +2204,7 @@ class Qo {
2204
2204
  }
2205
2205
  let e = null;
2206
2206
  if (this.scheduledReconnect) {
2207
- const n = we() - this.scheduledReconnect.scheduledAt;
2207
+ const n = je() - this.scheduledReconnect.scheduledAt;
2208
2208
  e = Math.max(0, this.scheduledReconnect.backoffMs - n), this._logVerbose(
2209
2209
  `would have waited ${Math.round(e)}ms more (backoff was ${Math.round(this.scheduledReconnect.backoffMs)}ms, elapsed ${Math.round(n)}ms)`
2210
2210
  ), clearTimeout(this.scheduledReconnect.timeout), this.scheduledReconnect = null, this._logVerbose("canceled scheduled reconnect");
@@ -2223,7 +2223,7 @@ class Qo {
2223
2223
  this.socket.paused === "uninitialized" ? (this.socket = { ...this.socket, paused: "no" }, this._hasEverConnected = !0, this.onOpen({
2224
2224
  connectionCount: this.connectionCount,
2225
2225
  lastCloseReason: this.lastCloseReason,
2226
- clientTs: we()
2226
+ clientTs: je()
2227
2227
  })) : this.socket.paused === "yes" && (this.socket = { ...this.socket, paused: "no" }, this.onResume());
2228
2228
  return;
2229
2229
  case "terminated":
@@ -2258,7 +2258,7 @@ class Qo {
2258
2258
  }) {
2259
2259
  if (e.clientClockSkew === void 0 || e.serverTs === void 0)
2260
2260
  return;
2261
- const r = we() - // client time now
2261
+ const r = je() - // client time now
2262
2262
  // clientClockSkew = (server time + upstream latency) - client time
2263
2263
  // clientClockSkew is "how many milliseconds behind (slow) is the client clock"
2264
2264
  // but the latency of the Connect message inflates this, making it appear further behind
@@ -2285,9 +2285,9 @@ function Bo() {
2285
2285
  return (t === "x" ? e : e & 3 | 8).toString(16);
2286
2286
  });
2287
2287
  }
2288
- class ze extends Error {
2288
+ class Qe extends Error {
2289
2289
  }
2290
- ze.prototype.name = "InvalidTokenError";
2290
+ Qe.prototype.name = "InvalidTokenError";
2291
2291
  function Do(t) {
2292
2292
  return decodeURIComponent(
2293
2293
  atob(t).replace(/(.)/g, (e, n) => {
@@ -2318,25 +2318,25 @@ function Vo(t) {
2318
2318
  }
2319
2319
  function vi(t, e) {
2320
2320
  if (typeof t != "string")
2321
- throw new ze("Invalid token specified: must be a string");
2321
+ throw new Qe("Invalid token specified: must be a string");
2322
2322
  e || (e = {});
2323
2323
  const n = e.header === !0 ? 0 : 1, r = t.split(".")[n];
2324
2324
  if (typeof r != "string")
2325
- throw new ze(
2325
+ throw new Qe(
2326
2326
  `Invalid token specified: missing part #${n + 1}`
2327
2327
  );
2328
2328
  let i;
2329
2329
  try {
2330
2330
  i = Vo(r);
2331
2331
  } catch (s) {
2332
- throw new ze(
2332
+ throw new Qe(
2333
2333
  `Invalid token specified: invalid base64 for part #${n + 1} (${s.message})`
2334
2334
  );
2335
2335
  }
2336
2336
  try {
2337
2337
  return JSON.parse(i);
2338
2338
  } catch (s) {
2339
- throw new ze(
2339
+ throw new Qe(
2340
2340
  `Invalid token specified: invalid json for part #${n + 1} (${s.message})`
2341
2341
  );
2342
2342
  }
@@ -2550,7 +2550,7 @@ function Ko(t) {
2550
2550
  startTime: t.startTime
2551
2551
  };
2552
2552
  }
2553
- function Yo(t) {
2553
+ function Xo(t) {
2554
2554
  if (typeof performance > "u" || !performance.getEntriesByName)
2555
2555
  return [];
2556
2556
  const e = [];
@@ -2560,7 +2560,7 @@ function Yo(t) {
2560
2560
  }
2561
2561
  return e.map(Ko);
2562
2562
  }
2563
- var Xo = Object.defineProperty, ea = (t, e, n) => e in t ? Xo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, T = (t, e, n) => ea(t, typeof e != "symbol" ? e + "" : e, n);
2563
+ var Yo = Object.defineProperty, ea = (t, e, n) => e in t ? Yo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, T = (t, e, n) => ea(t, typeof e != "symbol" ? e + "" : e, n);
2564
2564
  class ta {
2565
2565
  /**
2566
2566
  * @param address - The url of your Convex deployment, often provided
@@ -2969,9 +2969,9 @@ class ta {
2969
2969
  throw i.errorData !== void 0 ? nn(
2970
2970
  i,
2971
2971
  new tn(
2972
- je("mutation", e, i)
2972
+ Se("mutation", e, i)
2973
2973
  )
2974
- ) : new Error(je("mutation", e, i));
2974
+ ) : new Error(Se("mutation", e, i));
2975
2975
  return i.value;
2976
2976
  }
2977
2977
  /**
@@ -3052,8 +3052,8 @@ class ta {
3052
3052
  if (!r.success)
3053
3053
  throw r.errorData !== void 0 ? nn(
3054
3054
  r,
3055
- new tn(je("action", e, r))
3056
- ) : new Error(je("action", e, r));
3055
+ new tn(Se("action", e, r))
3056
+ ) : new Error(Se("action", e, r));
3057
3057
  return r.value;
3058
3058
  }
3059
3059
  /**
@@ -3109,7 +3109,7 @@ class ta {
3109
3109
  */
3110
3110
  reportMarks() {
3111
3111
  if (this.debug) {
3112
- const e = Yo(this.sessionId);
3112
+ const e = Xo(this.sessionId);
3113
3113
  this.webSocketManager.sendMessage({
3114
3114
  type: "Event",
3115
3115
  eventType: "ClientConnect",
@@ -3162,7 +3162,7 @@ class ia {
3162
3162
  * @returns Object with paginatedQueryToken and unsubscribe function
3163
3163
  */
3164
3164
  subscribe(e, n, r) {
3165
- const i = ge(e), s = ar(
3165
+ const i = me(e), s = ar(
3166
3166
  i,
3167
3167
  n,
3168
3168
  r
@@ -3193,7 +3193,7 @@ class ia {
3193
3193
  * Throws an error when one of the pages has errored.
3194
3194
  */
3195
3195
  localQueryResult(e, n, r) {
3196
- const i = ge(e), s = ar(
3196
+ const i = me(e), s = ar(
3197
3197
  i,
3198
3198
  n,
3199
3199
  r
@@ -3951,9 +3951,9 @@ function Tt() {
3951
3951
  if (ae > 1)
3952
3952
  ae--;
3953
3953
  else {
3954
- for (var t, e = !1; Ue !== void 0; ) {
3955
- var n = Ue;
3956
- for (Ue = void 0, rn++; n !== void 0; ) {
3954
+ for (var t, e = !1; We !== void 0; ) {
3955
+ var n = We;
3956
+ for (We = void 0, rn++; n !== void 0; ) {
3957
3957
  var r = n.o;
3958
3958
  if (n.o = void 0, n.f &= -3, !(8 & n.f) && ji(n)) try {
3959
3959
  n.c();
@@ -3985,7 +3985,7 @@ function _i(t) {
3985
3985
  _ = e;
3986
3986
  }
3987
3987
  }
3988
- var Ue = void 0, ae = 0, rn = 0, bt = 0;
3988
+ var We = void 0, ae = 0, rn = 0, bt = 0;
3989
3989
  function wi(t) {
3990
3990
  if (_ !== void 0) {
3991
3991
  var e = t.n;
@@ -4086,11 +4086,11 @@ function Ci(t) {
4086
4086
  }
4087
4087
  t.s = n;
4088
4088
  }
4089
- function be(t, e) {
4089
+ function ye(t, e) {
4090
4090
  I.call(this, void 0), this.x = t, this.s = void 0, this.g = bt - 1, this.f = 4, this.W = e?.watched, this.Z = e?.unwatched, this.name = e?.name;
4091
4091
  }
4092
- be.prototype = new I();
4093
- be.prototype.h = function() {
4092
+ ye.prototype = new I();
4093
+ ye.prototype.h = function() {
4094
4094
  if (this.f &= -3, 1 & this.f) return !1;
4095
4095
  if ((36 & this.f) == 32 || (this.f &= -5, this.g === bt)) return !0;
4096
4096
  if (this.g = bt, this.f |= 1, this.i > 0 && !ji(this))
@@ -4105,33 +4105,33 @@ be.prototype.h = function() {
4105
4105
  }
4106
4106
  return _ = t, Ci(this), this.f &= -2, !0;
4107
4107
  };
4108
- be.prototype.S = function(t) {
4108
+ ye.prototype.S = function(t) {
4109
4109
  if (this.t === void 0) {
4110
4110
  this.f |= 36;
4111
4111
  for (var e = this.s; e !== void 0; e = e.n) e.S.S(e);
4112
4112
  }
4113
4113
  I.prototype.S.call(this, t);
4114
4114
  };
4115
- be.prototype.U = function(t) {
4115
+ ye.prototype.U = function(t) {
4116
4116
  if (this.t !== void 0 && (I.prototype.U.call(this, t), this.t === void 0)) {
4117
4117
  this.f &= -33;
4118
4118
  for (var e = this.s; e !== void 0; e = e.n) e.S.U(e);
4119
4119
  }
4120
4120
  };
4121
- be.prototype.N = function() {
4121
+ ye.prototype.N = function() {
4122
4122
  if (!(2 & this.f)) {
4123
4123
  this.f |= 6;
4124
4124
  for (var t = this.t; t !== void 0; t = t.x) t.t.N();
4125
4125
  }
4126
4126
  };
4127
- Object.defineProperty(be.prototype, "value", { get: function() {
4127
+ Object.defineProperty(ye.prototype, "value", { get: function() {
4128
4128
  if (1 & this.f) throw new Error("Cycle detected");
4129
4129
  var t = wi(this);
4130
4130
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f) throw this.v;
4131
4131
  return this.v;
4132
4132
  } });
4133
4133
  function yt(t, e) {
4134
- return new be(t, e);
4134
+ return new ye(t, e);
4135
4135
  }
4136
4136
  function Ri(t) {
4137
4137
  var e = t.u;
@@ -4156,10 +4156,10 @@ function va(t) {
4156
4156
  if (_ !== this) throw new Error("Out-of-order effect");
4157
4157
  Ci(this), _ = t, this.f &= -2, 8 & this.f && kn(this), Tt();
4158
4158
  }
4159
- function $e(t, e) {
4159
+ function Ee(t, e) {
4160
4160
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32, this.name = e?.name;
4161
4161
  }
4162
- $e.prototype.c = function() {
4162
+ Ee.prototype.c = function() {
4163
4163
  var t = this.S();
4164
4164
  try {
4165
4165
  if (8 & this.f || this.x === void 0) return;
@@ -4169,23 +4169,23 @@ $e.prototype.c = function() {
4169
4169
  t();
4170
4170
  }
4171
4171
  };
4172
- $e.prototype.S = function() {
4172
+ Ee.prototype.S = function() {
4173
4173
  if (1 & this.f) throw new Error("Cycle detected");
4174
4174
  this.f |= 1, this.f &= -9, Ri(this), Si(this), ae++;
4175
4175
  var t = _;
4176
4176
  return _ = this, va.bind(this, t);
4177
4177
  };
4178
- $e.prototype.N = function() {
4179
- 2 & this.f || (this.f |= 2, this.o = Ue, Ue = this);
4178
+ Ee.prototype.N = function() {
4179
+ 2 & this.f || (this.f |= 2, this.o = We, We = this);
4180
4180
  };
4181
- $e.prototype.d = function() {
4181
+ Ee.prototype.d = function() {
4182
4182
  this.f |= 8, 1 & this.f || kn(this);
4183
4183
  };
4184
- $e.prototype.dispose = function() {
4184
+ Ee.prototype.dispose = function() {
4185
4185
  this.d();
4186
4186
  };
4187
4187
  function it(t, e) {
4188
- var n = new $e(t, e);
4188
+ var n = new Ee(t, e);
4189
4189
  try {
4190
4190
  n.c();
4191
4191
  } catch (i) {
@@ -4198,7 +4198,7 @@ var Ti, At, ut, ka = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__
4198
4198
  it(function() {
4199
4199
  Ti = this.N;
4200
4200
  })();
4201
- function Ee(t, e) {
4201
+ function qe(t, e) {
4202
4202
  x[t] = e.bind(null, x[t] || function() {
4203
4203
  });
4204
4204
  }
@@ -4210,7 +4210,7 @@ function vt(t) {
4210
4210
  ut = t && t.S();
4211
4211
  }
4212
4212
  function Ii(t) {
4213
- var e = this, n = t.data, r = Qe(n);
4213
+ var e = this, n = t.data, r = Fe(n);
4214
4214
  r.value = n;
4215
4215
  var i = D(function() {
4216
4216
  for (var l = e, a = e.__v; a = a.__; ) if (a.__c) {
@@ -4238,7 +4238,7 @@ Ii.displayName = "ReactiveTextNode";
4238
4238
  Object.defineProperties(I.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Ii }, props: { configurable: !0, get: function() {
4239
4239
  return { data: this };
4240
4240
  } }, __b: { configurable: !0, value: 1 } });
4241
- Ee("__b", function(t, e) {
4241
+ qe("__b", function(t, e) {
4242
4242
  if (typeof e.type == "string") {
4243
4243
  var n, r = e.props;
4244
4244
  for (var i in r) if (i !== "children") {
@@ -4248,7 +4248,7 @@ Ee("__b", function(t, e) {
4248
4248
  }
4249
4249
  t(e);
4250
4250
  });
4251
- Ee("__r", function(t, e) {
4251
+ qe("__r", function(t, e) {
4252
4252
  if (t(e), e.type !== z) {
4253
4253
  vt();
4254
4254
  var n, r = e.__c;
@@ -4263,10 +4263,10 @@ Ee("__r", function(t, e) {
4263
4263
  }, typeof e.type == "function" ? e.type.displayName || e.type.name : ""))), At = r, vt(n);
4264
4264
  }
4265
4265
  });
4266
- Ee("__e", function(t, e, n, r) {
4266
+ qe("__e", function(t, e, n, r) {
4267
4267
  vt(), At = void 0, t(e, n, r);
4268
4268
  });
4269
- Ee("diffed", function(t, e) {
4269
+ qe("diffed", function(t, e) {
4270
4270
  vt(), At = void 0;
4271
4271
  var n;
4272
4272
  if (typeof e.type == "string" && (n = e.__e)) {
@@ -4297,7 +4297,7 @@ function _a(t, e, n, r) {
4297
4297
  r[e] !== o && (r[e] = o, i ? t[e] = o : o != null && (o !== !1 || e[4] === "-") ? t.setAttribute(e, o) : t.removeAttribute(e));
4298
4298
  }) };
4299
4299
  }
4300
- Ee("unmount", function(t, e) {
4300
+ qe("unmount", function(t, e) {
4301
4301
  if (typeof e.type == "string") {
4302
4302
  var n = e.__e;
4303
4303
  if (n) {
@@ -4319,7 +4319,7 @@ Ee("unmount", function(t, e) {
4319
4319
  }
4320
4320
  t(e);
4321
4321
  });
4322
- Ee("__h", function(t, e, n, r) {
4322
+ qe("__h", function(t, e, n, r) {
4323
4323
  (r < 3 || r === 9) && (e.__$f |= 2), t(e, n, r);
4324
4324
  });
4325
4325
  H.prototype.shouldComponentUpdate = function(t, e) {
@@ -4334,13 +4334,13 @@ H.prototype.shouldComponentUpdate = function(t, e) {
4334
4334
  for (var l in this.props) if (!(l in t)) return !0;
4335
4335
  return !1;
4336
4336
  };
4337
- function Qe(t, e) {
4337
+ function Fe(t, e) {
4338
4338
  return D(function() {
4339
4339
  return O(t, e);
4340
4340
  }, []);
4341
4341
  }
4342
4342
  function wa(t, e) {
4343
- var n = fe(t);
4343
+ var n = ge(t);
4344
4344
  return n.current = t, At.__$f |= 4, D(function() {
4345
4345
  return yt(function() {
4346
4346
  return n.current();
@@ -4360,7 +4360,7 @@ function Sa() {
4360
4360
  function $i() {
4361
4361
  Ai.push(this) === 1 && (x.requestAnimationFrame || ja)(Sa);
4362
4362
  }
4363
- const E = O(!1), kt = O(void 0), Ye = O(void 0);
4363
+ const E = O(!1), kt = O(void 0), de = O(void 0);
4364
4364
  function Ca(t) {
4365
4365
  return t.replace(/\.convex\.site\b/, ".convex.cloud");
4366
4366
  }
@@ -4446,7 +4446,7 @@ function $a(t, e, n, r) {
4446
4446
  const l = await Ia(t, s, e);
4447
4447
  if (!o)
4448
4448
  if (l.ok)
4449
- Ye.value = l.token;
4449
+ de.value = l.token;
4450
4450
  else {
4451
4451
  const a = e ? `project '${t}/${e}'` : `org '${t}'`;
4452
4452
  l.error === "unauthorized" ? console.error(
@@ -4634,7 +4634,7 @@ function Oa(t) {
4634
4634
  };
4635
4635
  }, [t]);
4636
4636
  }
4637
- const Mi = "jex-session-history", Na = 900 * 1e3, J = O([]), Xe = O(null), Li = yt(() => J.value.length > 0), We = O(null);
4637
+ const Mi = "jex-session-history", Na = 900 * 1e3, J = O([]), Ye = O(null), Li = yt(() => J.value.length > 0), He = O(null);
4638
4638
  function za() {
4639
4639
  return "JEX-" + Math.random().toString(36).slice(2, 8).toUpperCase();
4640
4640
  }
@@ -4658,17 +4658,17 @@ function It(t) {
4658
4658
  }
4659
4659
  function Fa() {
4660
4660
  const t = Date.now(), e = Qa(t);
4661
- J.value = e, It(e), Xe.value = e.length > 0 ? e[e.length - 1].ref : null;
4661
+ J.value = e, It(e), Ye.value = e.length > 0 ? e[e.length - 1].ref : null;
4662
4662
  }
4663
4663
  function gr() {
4664
4664
  const t = za(), e = Date.now(), n = [...J.value, { ref: t, startedAt: e, lastActivityAt: e }];
4665
- return J.value = n, Xe.value = t, It(n), t;
4665
+ return J.value = n, Ye.value = t, It(n), t;
4666
4666
  }
4667
4667
  function mr(t) {
4668
4668
  const e = Date.now(), n = J.value.map(
4669
4669
  (r) => r.ref === t ? { ...r, lastActivityAt: e } : r
4670
4670
  );
4671
- J.value = n, Xe.value = t, It(n);
4671
+ J.value = n, Ye.value = t, It(n);
4672
4672
  }
4673
4673
  function wn(t) {
4674
4674
  if (!t)
@@ -4686,7 +4686,7 @@ function Ba() {
4686
4686
  N.value = Oi();
4687
4687
  }
4688
4688
  const Da = O("screen");
4689
- function de(t) {
4689
+ function pe(t) {
4690
4690
  N.value = [...N.value, t];
4691
4691
  }
4692
4692
  function _t() {
@@ -4820,15 +4820,15 @@ function Ga({ radius: t = "full", iconOption: e = "chat", label: n }) {
4820
4820
  function Ka({ title: t, onStartFresh: e, onResetSession: n }) {
4821
4821
  const r = P(), [i, s] = C("");
4822
4822
  function o() {
4823
- We.value = "fresh", e(), de({ id: "chat" });
4823
+ He.value = "fresh", e(), pe({ id: "chat" });
4824
4824
  }
4825
4825
  function l(c) {
4826
- We.value = "resume", n(), mr(c), de({ id: "chat" });
4826
+ He.value = "resume", n(), mr(c), pe({ id: "chat" });
4827
4827
  }
4828
4828
  function a(c) {
4829
4829
  c.preventDefault();
4830
4830
  const d = i.trim().toUpperCase();
4831
- d && (We.value = "resume", n(), mr(d), de({ id: "chat" }));
4831
+ d && (He.value = "resume", n(), mr(d), pe({ id: "chat" }));
4832
4832
  }
4833
4833
  return /* @__PURE__ */ u("div", { class: "jex-home", children: [
4834
4834
  /* @__PURE__ */ u("div", { class: "jex-home-hero", children: [
@@ -4887,7 +4887,7 @@ function Ka({ title: t, onStartFresh: e, onResetSession: n }) {
4887
4887
  ] })
4888
4888
  ] });
4889
4889
  }
4890
- function Ya({ title: t }) {
4890
+ function Xa({ title: t }) {
4891
4891
  const e = P();
4892
4892
  return /* @__PURE__ */ u("div", { class: "jex-selection", children: [
4893
4893
  /* @__PURE__ */ u("h2", { class: "jex-selection-title", children: e.howCanWeHelp }),
@@ -4896,7 +4896,7 @@ function Ya({ title: t }) {
4896
4896
  "button",
4897
4897
  {
4898
4898
  class: "jex-selection-option",
4899
- onClick: () => de({ id: "chat" }),
4899
+ onClick: () => pe({ id: "chat" }),
4900
4900
  children: [
4901
4901
  /* @__PURE__ */ u("span", { class: "jex-selection-icon", children: "💬" }),
4902
4902
  /* @__PURE__ */ u("span", { class: "jex-selection-label", children: e.chatWith.replace("{title}", t) }),
@@ -4908,7 +4908,7 @@ function Ya({ title: t }) {
4908
4908
  "button",
4909
4909
  {
4910
4910
  class: "jex-selection-option",
4911
- onClick: () => de({ id: "form" }),
4911
+ onClick: () => pe({ id: "form" }),
4912
4912
  children: [
4913
4913
  /* @__PURE__ */ u("span", { class: "jex-selection-icon", children: "📝" }),
4914
4914
  /* @__PURE__ */ u("span", { class: "jex-selection-label", children: e.submitTicket }),
@@ -4939,8 +4939,8 @@ function zi(t, e) {
4939
4939
  };
4940
4940
  return new Proxy({}, n);
4941
4941
  }
4942
- const Xa = () => zi("components", []), me = vo;
4943
- Xa();
4942
+ const Ya = () => zi("components", []), xe = vo;
4943
+ Ya();
4944
4944
  const el = (...t) => t.filter((e, n, r) => !!e && e.trim() !== "" && r.indexOf(e) === n).join(" ").trim(), yr = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), tl = (t) => t.replace(
4945
4945
  /^([A-Z])|[\s-_]+(\w)/g,
4946
4946
  (e, n, r) => r ? r.toUpperCase() : n.toLowerCase()
@@ -5009,9 +5009,9 @@ const rl = (t) => {
5009
5009
  function Sn() {
5010
5010
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
5011
5011
  }
5012
- var ye = Sn();
5012
+ var ve = Sn();
5013
5013
  function Qi(t) {
5014
- ye = t;
5014
+ ve = t;
5015
5015
  }
5016
5016
  var ue = { exec: () => null };
5017
5017
  function y(t, e = "") {
@@ -5028,8 +5028,8 @@ var al = (() => {
5028
5028
  return !1;
5029
5029
  }
5030
5030
  })(), q = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`), htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}>`) }, ll = /^(?:[ \t]*(?:\n|$))+/, cl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ul = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, st = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, hl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Cn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Fi = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Bi = y(Fi).replace(/bull/g, Cn).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(), dl = y(Fi).replace(/bull/g, Cn).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(), Rn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, pl = /^[^\n]+/, Tn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, fl = y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Tn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), gl = y(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Cn).getRegex(), $t = "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", An = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ml = y("^ {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", An).replace("tag", $t).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Di = y(Rn).replace("hr", st).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex(), xl = y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Di).getRegex(), In = { blockquote: xl, code: cl, def: fl, fences: ul, heading: hl, hr: st, html: ml, lheading: Bi, list: gl, newline: ll, paragraph: Di, table: ue, text: pl }, kr = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", st).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", $t).getRegex(), bl = { ...In, lheading: dl, table: kr, paragraph: y(Rn).replace("hr", st).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", kr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex() }, yl = { ...In, html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", An).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: ue, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: y(Rn).replace("hr", st).replace("heading", ` *#{1,6} *[^
5031
- ]`).replace("lheading", Bi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, vl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, kl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Vi = /^( {2,}|\\)\n(?!\s*$)/, _l = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, qe = /[\p{P}\p{S}]/u, Et = /[\s\p{P}\p{S}]/u, $n = /[^\s\p{P}\p{S}]/u, wl = y(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Et).getRegex(), Ui = /(?!~)[\p{P}\p{S}]/u, jl = /(?!~)[\s\p{P}\p{S}]/u, Sl = /(?:[^\s\p{P}\p{S}]|~)/u, Cl = y(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", al ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Wi = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Rl = y(Wi, "u").replace(/punct/g, qe).getRegex(), Tl = y(Wi, "u").replace(/punct/g, Ui).getRegex(), Hi = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Al = y(Hi, "gu").replace(/notPunctSpace/g, $n).replace(/punctSpace/g, Et).replace(/punct/g, qe).getRegex(), Il = y(Hi, "gu").replace(/notPunctSpace/g, Sl).replace(/punctSpace/g, jl).replace(/punct/g, Ui).getRegex(), $l = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, $n).replace(/punctSpace/g, Et).replace(/punct/g, qe).getRegex(), El = y(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, qe).getRegex(), ql = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Pl = y(ql, "gu").replace(/notPunctSpace/g, $n).replace(/punctSpace/g, Et).replace(/punct/g, qe).getRegex(), Ml = y(/\\(punct)/, "gu").replace(/punct/g, qe).getRegex(), Ll = y(/^<(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(), Ol = y(An).replace("(?:-->|$)", "-->").getRegex(), Nl = y("^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", Ol).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), wt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, zl = y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", wt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ji = y(/^!?\[(label)\]\[(ref)\]/).replace("label", wt).replace("ref", Tn).getRegex(), Zi = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", Tn).getRegex(), Ql = y("reflink|nolink(?!\\()", "g").replace("reflink", Ji).replace("nolink", Zi).getRegex(), _r = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, En = { _backpedal: ue, anyPunctuation: Ml, autolink: Ll, blockSkip: Cl, br: Vi, code: kl, del: ue, delLDelim: ue, delRDelim: ue, emStrongLDelim: Rl, emStrongRDelimAst: Al, emStrongRDelimUnd: $l, escape: vl, link: zl, nolink: Zi, punctuation: wl, reflink: Ji, reflinkSearch: Ql, tag: Nl, text: _l, url: ue }, Fl = { ...En, link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", wt).getRegex(), reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", wt).getRegex() }, on = { ...En, emStrongRDelimAst: Il, emStrongLDelim: Tl, delLDelim: El, delRDelim: Pl, url: y(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", _r).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: y(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", _r).getRegex() }, Bl = { ...on, br: y(Vi).replace("{2,}", "*").getRegex(), text: y(on.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, ht = { normal: In, gfm: bl, pedantic: yl }, Me = { normal: En, gfm: on, breaks: Bl, pedantic: Fl }, Dl = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, wr = (t) => Dl[t];
5032
- function Y(t, e) {
5031
+ ]`).replace("lheading", Bi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, vl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, kl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Vi = /^( {2,}|\\)\n(?!\s*$)/, _l = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Pe = /[\p{P}\p{S}]/u, Et = /[\s\p{P}\p{S}]/u, $n = /[^\s\p{P}\p{S}]/u, wl = y(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Et).getRegex(), Ui = /(?!~)[\p{P}\p{S}]/u, jl = /(?!~)[\s\p{P}\p{S}]/u, Sl = /(?:[^\s\p{P}\p{S}]|~)/u, Cl = y(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", al ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Wi = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Rl = y(Wi, "u").replace(/punct/g, Pe).getRegex(), Tl = y(Wi, "u").replace(/punct/g, Ui).getRegex(), Hi = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Al = y(Hi, "gu").replace(/notPunctSpace/g, $n).replace(/punctSpace/g, Et).replace(/punct/g, Pe).getRegex(), Il = y(Hi, "gu").replace(/notPunctSpace/g, Sl).replace(/punctSpace/g, jl).replace(/punct/g, Ui).getRegex(), $l = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, $n).replace(/punctSpace/g, Et).replace(/punct/g, Pe).getRegex(), El = y(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Pe).getRegex(), ql = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Pl = y(ql, "gu").replace(/notPunctSpace/g, $n).replace(/punctSpace/g, Et).replace(/punct/g, Pe).getRegex(), Ml = y(/\\(punct)/, "gu").replace(/punct/g, Pe).getRegex(), Ll = y(/^<(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(), Ol = y(An).replace("(?:-->|$)", "-->").getRegex(), Nl = y("^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", Ol).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), wt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, zl = y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", wt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ji = y(/^!?\[(label)\]\[(ref)\]/).replace("label", wt).replace("ref", Tn).getRegex(), Zi = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", Tn).getRegex(), Ql = y("reflink|nolink(?!\\()", "g").replace("reflink", Ji).replace("nolink", Zi).getRegex(), _r = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, En = { _backpedal: ue, anyPunctuation: Ml, autolink: Ll, blockSkip: Cl, br: Vi, code: kl, del: ue, delLDelim: ue, delRDelim: ue, emStrongLDelim: Rl, emStrongRDelimAst: Al, emStrongRDelimUnd: $l, escape: vl, link: zl, nolink: Zi, punctuation: wl, reflink: Ji, reflinkSearch: Ql, tag: Nl, text: _l, url: ue }, Fl = { ...En, link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", wt).getRegex(), reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", wt).getRegex() }, on = { ...En, emStrongRDelimAst: Il, emStrongLDelim: Tl, delLDelim: El, delRDelim: Pl, url: y(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", _r).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: y(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", _r).getRegex() }, Bl = { ...on, br: y(Vi).replace("{2,}", "*").getRegex(), text: y(on.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, ht = { normal: In, gfm: bl, pedantic: yl }, Le = { normal: En, gfm: on, breaks: Bl, pedantic: Fl }, Dl = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, wr = (t) => Dl[t];
5032
+ function X(t, e) {
5033
5033
  if (e) {
5034
5034
  if (q.escapeTest.test(t)) return t.replace(q.escapeReplace, wr);
5035
5035
  } else if (q.escapeTestNoEncode.test(t)) return t.replace(q.escapeReplaceNoEncode, wr);
@@ -5054,7 +5054,7 @@ function Sr(t, e) {
5054
5054
  for (; i < r.length; i++) r[i] = r[i].trim().replace(q.slashPipe, "|");
5055
5055
  return r;
5056
5056
  }
5057
- function Le(t, e, n) {
5057
+ function Oe(t, e, n) {
5058
5058
  let r = t.length;
5059
5059
  if (r === 0) return "";
5060
5060
  let i = 0;
@@ -5102,7 +5102,7 @@ var jt = class {
5102
5102
  rules;
5103
5103
  lexer;
5104
5104
  constructor(t) {
5105
- this.options = t || ye;
5105
+ this.options = t || ve;
5106
5106
  }
5107
5107
  space(t) {
5108
5108
  let e = this.rules.block.newline.exec(t);
@@ -5112,7 +5112,7 @@ var jt = class {
5112
5112
  let e = this.rules.block.code.exec(t);
5113
5113
  if (e) {
5114
5114
  let n = e[0].replace(this.rules.other.codeRemoveIndent, "");
5115
- return { type: "code", raw: e[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : Le(n, `
5115
+ return { type: "code", raw: e[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : Oe(n, `
5116
5116
  `) };
5117
5117
  }
5118
5118
  }
@@ -5128,7 +5128,7 @@ var jt = class {
5128
5128
  if (e) {
5129
5129
  let n = e[2].trim();
5130
5130
  if (this.rules.other.endingHash.test(n)) {
5131
- let r = Le(n, "#");
5131
+ let r = Oe(n, "#");
5132
5132
  (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
5133
5133
  }
5134
5134
  return { type: "heading", raw: e[0], depth: e[1].length, text: n, tokens: this.lexer.inline(n) };
@@ -5136,13 +5136,13 @@ var jt = class {
5136
5136
  }
5137
5137
  hr(t) {
5138
5138
  let e = this.rules.block.hr.exec(t);
5139
- if (e) return { type: "hr", raw: Le(e[0], `
5139
+ if (e) return { type: "hr", raw: Oe(e[0], `
5140
5140
  `) };
5141
5141
  }
5142
5142
  blockquote(t) {
5143
5143
  let e = this.rules.block.blockquote.exec(t);
5144
5144
  if (e) {
5145
- let n = Le(e[0], `
5145
+ let n = Oe(e[0], `
5146
5146
  `).split(`
5147
5147
  `), r = "", i = "", s = [];
5148
5148
  for (; n.length > 0; ) {
@@ -5299,7 +5299,7 @@ ${d}` : d;
5299
5299
  let n = e[2].trim();
5300
5300
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
5301
5301
  if (!this.rules.other.endAngleBracket.test(n)) return;
5302
- let s = Le(n.slice(0, -1), "\\");
5302
+ let s = Oe(n.slice(0, -1), "\\");
5303
5303
  if ((n.length - s.length) % 2 === 0) return;
5304
5304
  } else {
5305
5305
  let s = Vl(e[2], "()");
@@ -5417,12 +5417,12 @@ ${d}` : d;
5417
5417
  inlineQueue;
5418
5418
  tokenizer;
5419
5419
  constructor(e) {
5420
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ye, this.options.tokenizer = this.options.tokenizer || new jt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
5421
- let n = { other: q, block: ht.normal, inline: Me.normal };
5422
- this.options.pedantic ? (n.block = ht.pedantic, n.inline = Me.pedantic) : this.options.gfm && (n.block = ht.gfm, this.options.breaks ? n.inline = Me.breaks : n.inline = Me.gfm), this.tokenizer.rules = n;
5420
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ve, this.options.tokenizer = this.options.tokenizer || new jt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
5421
+ let n = { other: q, block: ht.normal, inline: Le.normal };
5422
+ this.options.pedantic ? (n.block = ht.pedantic, n.inline = Le.pedantic) : this.options.gfm && (n.block = ht.gfm, this.options.breaks ? n.inline = Le.breaks : n.inline = Le.gfm), this.tokenizer.rules = n;
5423
5423
  }
5424
5424
  static get rules() {
5425
- return { block: ht, inline: Me };
5425
+ return { block: ht, inline: Le };
5426
5426
  }
5427
5427
  static lex(e, n) {
5428
5428
  return new an(n).lex(e);
@@ -5622,7 +5622,7 @@ ${d}` : d;
5622
5622
  options;
5623
5623
  parser;
5624
5624
  constructor(t) {
5625
- this.options = t || ye;
5625
+ this.options = t || ve;
5626
5626
  }
5627
5627
  space(t) {
5628
5628
  return "";
@@ -5630,8 +5630,8 @@ ${d}` : d;
5630
5630
  code({ text: t, lang: e, escaped: n }) {
5631
5631
  let r = (e || "").match(q.notSpaceStart)?.[0], i = t.replace(q.endingNewline, "") + `
5632
5632
  `;
5633
- return r ? '<pre><code class="language-' + Y(r) + '">' + (n ? i : Y(i, !0)) + `</code></pre>
5634
- ` : "<pre><code>" + (n ? i : Y(i, !0)) + `</code></pre>
5633
+ return r ? '<pre><code class="language-' + X(r) + '">' + (n ? i : X(i, !0)) + `</code></pre>
5634
+ ` : "<pre><code>" + (n ? i : X(i, !0)) + `</code></pre>
5635
5635
  `;
5636
5636
  }
5637
5637
  blockquote({ tokens: t }) {
@@ -5709,7 +5709,7 @@ ${t}</tr>
5709
5709
  return `<em>${this.parser.parseInline(t)}</em>`;
5710
5710
  }
5711
5711
  codespan({ text: t }) {
5712
- return `<code>${Y(t, !0)}</code>`;
5712
+ return `<code>${X(t, !0)}</code>`;
5713
5713
  }
5714
5714
  br(t) {
5715
5715
  return "<br>";
@@ -5722,18 +5722,18 @@ ${t}</tr>
5722
5722
  if (i === null) return r;
5723
5723
  t = i;
5724
5724
  let s = '<a href="' + t + '"';
5725
- return e && (s += ' title="' + Y(e) + '"'), s += ">" + r + "</a>", s;
5725
+ return e && (s += ' title="' + X(e) + '"'), s += ">" + r + "</a>", s;
5726
5726
  }
5727
5727
  image({ href: t, title: e, text: n, tokens: r }) {
5728
5728
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
5729
5729
  let i = jr(t);
5730
- if (i === null) return Y(n);
5730
+ if (i === null) return X(n);
5731
5731
  t = i;
5732
- let s = `<img src="${t}" alt="${Y(n)}"`;
5733
- return e && (s += ` title="${Y(e)}"`), s += ">", s;
5732
+ let s = `<img src="${t}" alt="${X(n)}"`;
5733
+ return e && (s += ` title="${X(e)}"`), s += ">", s;
5734
5734
  }
5735
5735
  text(t) {
5736
- return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : Y(t.text);
5736
+ return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : X(t.text);
5737
5737
  }
5738
5738
  }, qn = class {
5739
5739
  strong({ text: t }) {
@@ -5771,7 +5771,7 @@ ${t}</tr>
5771
5771
  renderer;
5772
5772
  textRenderer;
5773
5773
  constructor(e) {
5774
- this.options = e || ye, this.options.renderer = this.options.renderer || new St(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new qn();
5774
+ this.options = e || ve, this.options.renderer = this.options.renderer || new St(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new qn();
5775
5775
  }
5776
5776
  static parse(e, n) {
5777
5777
  return new ln(n).parse(e);
@@ -5917,11 +5917,11 @@ ${t}</tr>
5917
5917
  }
5918
5918
  return r;
5919
5919
  }
5920
- }, Fe = class {
5920
+ }, Be = class {
5921
5921
  options;
5922
5922
  block;
5923
5923
  constructor(t) {
5924
- this.options = t || ye;
5924
+ this.options = t || ve;
5925
5925
  }
5926
5926
  static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
5927
5927
  static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
@@ -5953,7 +5953,7 @@ ${t}</tr>
5953
5953
  TextRenderer = qn;
5954
5954
  Lexer = U;
5955
5955
  Tokenizer = jt;
5956
- Hooks = Fe;
5956
+ Hooks = Be;
5957
5957
  constructor(...t) {
5958
5958
  this.use(...t);
5959
5959
  }
@@ -6027,13 +6027,13 @@ ${t}</tr>
6027
6027
  r.tokenizer = i;
6028
6028
  }
6029
6029
  if (n.hooks) {
6030
- let i = this.defaults.hooks || new Fe();
6030
+ let i = this.defaults.hooks || new Be();
6031
6031
  for (let s in n.hooks) {
6032
6032
  if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
6033
6033
  if (["options", "block"].includes(s)) continue;
6034
6034
  let o = s, l = n.hooks[o], a = i[o];
6035
- Fe.passThroughHooks.has(s) ? i[o] = (c) => {
6036
- if (this.defaults.async && Fe.passThroughHooksRespectAsync.has(s)) return (async () => {
6035
+ Be.passThroughHooks.has(s) ? i[o] = (c) => {
6036
+ if (this.defaults.async && Be.passThroughHooksRespectAsync.has(s)) return (async () => {
6037
6037
  let h = await l.call(i, c);
6038
6038
  return a.call(i, h);
6039
6039
  })();
@@ -6096,29 +6096,29 @@ ${t}</tr>
6096
6096
  return (n) => {
6097
6097
  if (n.message += `
6098
6098
  Please report this to https://github.com/markedjs/marked.`, t) {
6099
- let r = "<p>An error occurred:</p><pre>" + Y(n.message + "", !0) + "</pre>";
6099
+ let r = "<p>An error occurred:</p><pre>" + X(n.message + "", !0) + "</pre>";
6100
6100
  return e ? Promise.resolve(r) : r;
6101
6101
  }
6102
6102
  if (e) return Promise.reject(n);
6103
6103
  throw n;
6104
6104
  };
6105
6105
  }
6106
- }, xe = new Hl();
6106
+ }, be = new Hl();
6107
6107
  function w(t, e) {
6108
- return xe.parse(t, e);
6108
+ return be.parse(t, e);
6109
6109
  }
6110
6110
  w.options = w.setOptions = function(t) {
6111
- return xe.setOptions(t), w.defaults = xe.defaults, Qi(w.defaults), w;
6111
+ return be.setOptions(t), w.defaults = be.defaults, Qi(w.defaults), w;
6112
6112
  };
6113
6113
  w.getDefaults = Sn;
6114
- w.defaults = ye;
6114
+ w.defaults = ve;
6115
6115
  w.use = function(...t) {
6116
- return xe.use(...t), w.defaults = xe.defaults, Qi(w.defaults), w;
6116
+ return be.use(...t), w.defaults = be.defaults, Qi(w.defaults), w;
6117
6117
  };
6118
6118
  w.walkTokens = function(t, e) {
6119
- return xe.walkTokens(t, e);
6119
+ return be.walkTokens(t, e);
6120
6120
  };
6121
- w.parseInline = xe.parseInline;
6121
+ w.parseInline = be.parseInline;
6122
6122
  w.Parser = W;
6123
6123
  w.parser = W.parse;
6124
6124
  w.Renderer = St;
@@ -6126,7 +6126,7 @@ w.TextRenderer = qn;
6126
6126
  w.Lexer = U;
6127
6127
  w.lexer = U.lex;
6128
6128
  w.Tokenizer = jt;
6129
- w.Hooks = Fe;
6129
+ w.Hooks = Be;
6130
6130
  w.parse = w;
6131
6131
  w.options;
6132
6132
  w.setOptions;
@@ -6162,8 +6162,8 @@ function Gl(t) {
6162
6162
  const e = t.trim().split(/\s+/).filter(Boolean);
6163
6163
  return e.length === 0 ? "?" : e.map((n) => n[0]).join("").slice(0, 2).toUpperCase();
6164
6164
  }
6165
- function _e({ text: t, streaming: e, error: n, authorId: r, authorName: i, authorImage: s, botAvatarUrl: o }) {
6166
- const l = !!r, [a, c] = C(!1), d = Se(() => c(!0), []), h = [
6165
+ function we({ text: t, streaming: e, error: n, authorId: r, authorName: i, authorImage: s, botAvatarUrl: o }) {
6166
+ const l = !!r, [a, c] = C(!1), d = Ce(() => c(!0), []), h = [
6167
6167
  "jex-message bot",
6168
6168
  n ? "jex-message-error" : ""
6169
6169
  ].filter(Boolean).join(" ");
@@ -6196,7 +6196,7 @@ function _e({ text: t, streaming: e, error: n, authorId: r, authorName: i, autho
6196
6196
  function Kl({ text: t }) {
6197
6197
  return /* @__PURE__ */ u("div", { class: "jex-message user", children: t });
6198
6198
  }
6199
- function Yl({ message: t, sessionId: e, visitorId: n }) {
6199
+ function Xl({ message: t, sessionId: e, visitorId: n }) {
6200
6200
  const r = P();
6201
6201
  return t.formData ? /* @__PURE__ */ u("div", { class: "jex-inline-form-submitted", children: [
6202
6202
  /* @__PURE__ */ u("span", { class: "jex-inline-form-check", children: "✓" }),
@@ -6209,7 +6209,7 @@ function Yl({ message: t, sessionId: e, visitorId: n }) {
6209
6209
  ] })
6210
6210
  ] })
6211
6211
  ] }) : /* @__PURE__ */ u("div", { class: "jex-message-row bot", children: /* @__PURE__ */ u(
6212
- Xl,
6212
+ Yl,
6213
6213
  {
6214
6214
  messageId: t._id,
6215
6215
  sessionId: e,
@@ -6217,8 +6217,8 @@ function Yl({ message: t, sessionId: e, visitorId: n }) {
6217
6217
  }
6218
6218
  ) });
6219
6219
  }
6220
- function Xl({ messageId: t, sessionId: e, visitorId: n }) {
6221
- const r = P(), [i, s] = C(""), [o, l] = C(""), [a, c] = C(!1), d = rt(me.functions.chat.public.helpdesk.submitEscalation);
6220
+ function Yl({ messageId: t, sessionId: e, visitorId: n }) {
6221
+ const r = P(), [i, s] = C(""), [o, l] = C(""), [a, c] = C(!1), d = rt(xe.functions.chat.public.helpdesk.submitEscalation);
6222
6222
  async function h(p) {
6223
6223
  if (p.preventDefault(), !a) {
6224
6224
  c(!0);
@@ -6349,7 +6349,7 @@ function Tr(t) {
6349
6349
  return t.replace(ic, "");
6350
6350
  }
6351
6351
  function sc({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r, onStartFresh: i, sessionId: s, visitorId: o }) {
6352
- const l = P(), a = fe(null), [c, d] = C(null), h = fe(null);
6352
+ const l = P(), a = ge(null), [c, d] = C(null), h = ge(null);
6353
6353
  return A(() => {
6354
6354
  if (!o || !t || t.length === 0)
6355
6355
  return;
@@ -6358,7 +6358,7 @@ function sc({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r
6358
6358
  }, [t, o]), A(() => {
6359
6359
  a.current?.scrollIntoView({ behavior: "smooth" });
6360
6360
  }, [t?.length, t?.at(-1)?.content]), /* @__PURE__ */ u("div", { class: "jex-chat-messages", children: [
6361
- /* @__PURE__ */ u(_e, { text: e }),
6361
+ /* @__PURE__ */ u(we, { text: e }),
6362
6362
  n && r && i ? /* @__PURE__ */ u("div", { class: "jex-session-prompt", children: [
6363
6363
  /* @__PURE__ */ u("div", { class: "jex-session-prompt-text", children: l.sessionNotFoundPrompt }),
6364
6364
  /* @__PURE__ */ u(
@@ -6375,7 +6375,7 @@ function sc({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r
6375
6375
  ] }) : n ? /* @__PURE__ */ u("div", { class: "jex-session-notice", children: l.sessionNotFound }) : null,
6376
6376
  t?.map((p) => {
6377
6377
  if (p.contentType === "human-notice")
6378
- return /* @__PURE__ */ u(_e, { text: p.content }, p._id);
6378
+ return /* @__PURE__ */ u(we, { text: p.content }, p._id);
6379
6379
  if (p.contentType === "escalation-form" && s && o)
6380
6380
  return Da.value === "screen" && !p.formData ? c === p._id ? null : /* @__PURE__ */ u("div", { class: "jex-inline-form jex-inline-form-card", children: [
6381
6381
  /* @__PURE__ */ u("div", { class: "jex-inline-form-title", children: l.escalationPromptTitle }),
@@ -6386,7 +6386,7 @@ function sc({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r
6386
6386
  class: "jex-form-submit",
6387
6387
  type: "button",
6388
6388
  onClick: () => {
6389
- de({ id: "escalation-form", formMessageId: p._id, sessionId: s, visitorId: o });
6389
+ pe({ id: "escalation-form", formMessageId: p._id, sessionId: s, visitorId: o });
6390
6390
  },
6391
6391
  children: l.escalationPromptSubmit
6392
6392
  }
@@ -6402,9 +6402,9 @@ function sc({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r
6402
6402
  children: l.escalationSkip
6403
6403
  }
6404
6404
  )
6405
- ] }, p._id) : /* @__PURE__ */ u(Yl, { message: p, sessionId: s, visitorId: o }, p._id);
6405
+ ] }, p._id) : /* @__PURE__ */ u(Xl, { message: p, sessionId: s, visitorId: o }, p._id);
6406
6406
  if (p.contentType === "escalation-confirm")
6407
- return /* @__PURE__ */ u(_e, { text: p.content }, p._id);
6407
+ return /* @__PURE__ */ u(we, { text: p.content }, p._id);
6408
6408
  if (p.role === "user")
6409
6409
  return /* @__PURE__ */ u(Kl, { text: p.content }, p._id);
6410
6410
  const f = {
@@ -6412,8 +6412,8 @@ function sc({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r
6412
6412
  authorName: p.authorName,
6413
6413
  authorImage: p.authorImage
6414
6414
  };
6415
- return p.status === "streaming" && p.content === "" ? /* @__PURE__ */ u(rc, {}, p._id) : p.status === "streaming" ? /* @__PURE__ */ u(_e, { text: Tr(p.content), streaming: !0, ...f }, p._id) : p.status === "error" ? /* @__PURE__ */ u(
6416
- _e,
6415
+ return p.status === "streaming" && p.content === "" ? /* @__PURE__ */ u(rc, {}, p._id) : p.status === "streaming" ? /* @__PURE__ */ u(we, { text: Tr(p.content), streaming: !0, ...f }, p._id) : p.status === "error" ? /* @__PURE__ */ u(
6416
+ we,
6417
6417
  {
6418
6418
  text: p.errorMessage ?? `${l.somethingWentWrong}. ${l.tryAgain}.`,
6419
6419
  error: !0,
@@ -6421,7 +6421,7 @@ function sc({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r
6421
6421
  },
6422
6422
  p._id
6423
6423
  ) : /* @__PURE__ */ u("div", { children: [
6424
- /* @__PURE__ */ u(_e, { text: Tr(p.content), ...f }),
6424
+ /* @__PURE__ */ u(we, { text: Tr(p.content), ...f }),
6425
6425
  p.sources && p.sources.length > 0 ? /* @__PURE__ */ u(tc, { sources: p.sources }) : null
6426
6426
  ] }, p._id);
6427
6427
  }),
@@ -6454,7 +6454,7 @@ function ac() {
6454
6454
  }, [oe.value]), oe.value === null ? null : /* @__PURE__ */ u("div", { class: "jex-rate-limit-notice", role: "status", "aria-live": "polite", children: t.errorRateLimited.replace("{seconds}", String(e.value)) });
6455
6455
  }
6456
6456
  function lc({ sessionId: t, visitorId: e, isLoading: n, isStreaming: r, sessionStatus: i, ensureSession: s, onStartFresh: o }) {
6457
- const l = P(), a = cn, c = rt(me.functions.chat.public.conversations.send), d = oe.value !== null && oe.value > Date.now(), h = n || r || d;
6457
+ const l = P(), a = cn, c = rt(xe.functions.chat.public.conversations.send), d = oe.value !== null && oe.value > Date.now(), h = n || r || d;
6458
6458
  if (i === "resolved")
6459
6459
  return /* @__PURE__ */ u("div", { class: "jex-chat-input-resolved", children: [
6460
6460
  /* @__PURE__ */ u("div", { class: "jex-resolved-notice", children: l.sessionResolved }),
@@ -6535,19 +6535,19 @@ function un({ message: t }) {
6535
6535
  }
6536
6536
  function cc({ greeting: t, orgSlug: e, projSlug: n, sessionId: r, visitorId: i, isLoading: s, sessionNotFound: o, resumeFailed: l, isOrgDeleted: a, ensureSession: c, startFresh: d }) {
6537
6537
  const h = P(), p = fr(
6538
- me.functions.chat.public.conversations.listBySession,
6538
+ xe.functions.chat.public.conversations.listBySession,
6539
6539
  r && i ? { sessionId: r, visitorId: i } : "skip"
6540
6540
  ), f = fr(
6541
- me.functions.chat.public.sessions.getSessionStatus,
6541
+ xe.functions.chat.public.sessions.getSessionStatus,
6542
6542
  r && i ? { sessionId: r, visitorId: i } : "skip"
6543
- ), g = r !== null && p === void 0, m = p?.some(($) => $.status === "streaming") ?? !1, b = fe(
6543
+ ), g = r !== null && p === void 0, m = p?.some(($) => $.status === "streaming") ?? !1, b = ge(
6544
6544
  (() => {
6545
- const $ = We.peek();
6545
+ const $ = He.peek();
6546
6546
  return $ !== null ? $ : Li.peek() ? "resume" : "fresh";
6547
6547
  })()
6548
6548
  ).current;
6549
6549
  return A(() => {
6550
- We.value = null;
6550
+ He.value = null;
6551
6551
  }, []), A(() => {
6552
6552
  c();
6553
6553
  }, [c]), A(() => {
@@ -6580,7 +6580,7 @@ function cc({ greeting: t, orgSlug: e, projSlug: n, sessionId: r, visitorId: i,
6580
6580
  ] });
6581
6581
  }
6582
6582
  function uc({ formMessageId: t, sessionId: e, visitorId: n }) {
6583
- const r = P(), [i, s] = C(""), [o, l] = C(""), a = rt(me.functions.chat.public.helpdesk.submitEscalation), [c, d] = C(!1), [h, p] = C(null);
6583
+ const r = P(), [i, s] = C(""), [o, l] = C(""), a = rt(xe.functions.chat.public.helpdesk.submitEscalation), [c, d] = C(!1), [h, p] = C(null);
6584
6584
  async function f(g) {
6585
6585
  g.preventDefault(), d(!0), p(null);
6586
6586
  try {
@@ -6730,7 +6730,7 @@ function Ar({ greeting: t, title: e, orgSlug: n, projSlug: r, sessionId: i, visi
6730
6730
  );
6731
6731
  return /* @__PURE__ */ u("div", { class: "jex-screen-container", children: [
6732
6732
  g.id === "home" && /* @__PURE__ */ u(Ka, { greeting: t, title: e, onStartFresh: h, onResetSession: p }),
6733
- g.id === "selection" && /* @__PURE__ */ u(Ya, { title: e }),
6733
+ g.id === "selection" && /* @__PURE__ */ u(Xa, { title: e }),
6734
6734
  g.id === "form" && /* @__PURE__ */ u(hc, {}),
6735
6735
  g.id === "escalation-form" && /* @__PURE__ */ u(
6736
6736
  uc,
@@ -6768,11 +6768,23 @@ function Ar({ greeting: t, title: e, orgSlug: n, projSlug: r, sessionId: i, visi
6768
6768
  )
6769
6769
  ] });
6770
6770
  }
6771
- function fc(t, e) {
6772
- const n = fe(null), r = Qe(!1), i = Qe(!1), s = Qe(!1), o = Qe(null), l = rt(me.functions.chat.public.sessions.createOrResume), a = async (f) => {
6773
- const g = Ye.value;
6771
+ function fc(t = 1e4) {
6772
+ return de.value ? Promise.resolve(de.value) : new Promise((e) => {
6773
+ let n = !1;
6774
+ const r = (o) => {
6775
+ n || (n = !0, clearTimeout(i), s(), e(o));
6776
+ }, i = setTimeout(() => {
6777
+ r(null);
6778
+ }, t), s = de.subscribe((o) => {
6779
+ o && r(o);
6780
+ });
6781
+ });
6782
+ }
6783
+ function gc(t, e) {
6784
+ const n = ge(null), r = Fe(!1), i = Fe(!1), s = Fe(!1), o = Fe(null), l = rt(xe.functions.chat.public.sessions.createOrResume), a = async (f) => {
6785
+ const g = await fc();
6774
6786
  if (!g)
6775
- return console.warn("[JexityChat] No bootstrap token — session creation blocked."), null;
6787
+ return console.warn("[JexityChat] No bootstrap token after 10s — session creation blocked."), null;
6776
6788
  const m = await l({
6777
6789
  orgSlug: t,
6778
6790
  ...e ? { projSlug: e } : {},
@@ -6783,13 +6795,13 @@ function fc(t, e) {
6783
6795
  o.value = m.status;
6784
6796
  const b = { sessionId: m.sessionId, visitorId: f };
6785
6797
  return n.current = b, { session: b, result: m };
6786
- }, c = Se(async () => {
6798
+ }, c = Ce(async () => {
6787
6799
  if (n.current)
6788
6800
  return n.current;
6789
6801
  if (s.value)
6790
6802
  return null;
6791
6803
  r.value = !0;
6792
- const f = Xe.value !== null, g = Xe.value ?? gr();
6804
+ const f = Ye.value !== null, g = Ye.value ?? gr();
6793
6805
  try {
6794
6806
  const m = await a(g);
6795
6807
  return m ? (f && m.result.isNew && (i.value = !0, s.value = !0), m.session) : null;
@@ -6798,9 +6810,9 @@ function fc(t, e) {
6798
6810
  } finally {
6799
6811
  r.value = !1;
6800
6812
  }
6801
- }, [t, e, l, r, i, s]), d = Se(() => {
6813
+ }, [t, e, l, r, i, s]), d = Ce(() => {
6802
6814
  n.current = null, i.value = !1, s.value = !1;
6803
- }, [i, s]), h = Se(async () => {
6815
+ }, [i, s]), h = Ce(async () => {
6804
6816
  n.current = null, s.value = !1, i.value = !1;
6805
6817
  const f = gr();
6806
6818
  r.value = !0;
@@ -6826,18 +6838,18 @@ function fc(t, e) {
6826
6838
  };
6827
6839
  }
6828
6840
  function Ir({ sessionId: t, visitorId: e }) {
6829
- const n = P(), [r, i] = C(!1), [s, o] = C(null), l = rt(me.functions.chat.public.helpdesk.createEscalationRequest);
6841
+ const n = P(), [r, i] = C(!1), [s, o] = C(null), l = rt(xe.functions.chat.public.helpdesk.createEscalationRequest);
6830
6842
  async function a() {
6831
6843
  if (!t || !e)
6832
6844
  return;
6833
- const c = Ye.value;
6845
+ const c = de.value;
6834
6846
  if (c) {
6835
6847
  i(!0), o(null);
6836
6848
  try {
6837
6849
  const d = await l({ sessionId: t, visitorId: e, bootstrapToken: c });
6838
6850
  if (d.skipForm)
6839
6851
  return;
6840
- de({ id: "escalation-form", formMessageId: d.formMessageId, sessionId: t, visitorId: e });
6852
+ pe({ id: "escalation-form", formMessageId: d.formMessageId, sessionId: t, visitorId: e });
6841
6853
  } catch (d) {
6842
6854
  const h = d instanceof Error ? d.message : String(d);
6843
6855
  o(/RATE_LIMITED|Too many/.test(h) ? n.handoffRateLimited : n.handoffFailed);
@@ -6864,13 +6876,13 @@ function Ir({ sessionId: t, visitorId: e }) {
6864
6876
  s && /* @__PURE__ */ u("div", { class: "jex-handoff-error", role: "alert", children: s })
6865
6877
  ] });
6866
6878
  }
6867
- function gc({ options: t }) {
6879
+ function mc({ options: t }) {
6868
6880
  $a(t.orgSlug, t.projSlug, t.bootstrapToken, t.convexUrl);
6869
6881
  const e = Aa(t.orgSlug, t.projSlug, t.convexUrl);
6870
6882
  Oa(t.parentOrigin), A(() => {
6871
6883
  Fa(), Ba();
6872
6884
  }, []);
6873
- const { sessionId: n, visitorId: r, isLoading: i, sessionNotFound: s, resumeFailed: o, isOrgDeleted: l, ensureSession: a, startFresh: c, resetSession: d } = fc(t.orgSlug, t.projSlug), h = Ra(t, e);
6885
+ const { sessionId: n, visitorId: r, isLoading: i, sessionNotFound: s, resumeFailed: o, isOrgDeleted: l, ensureSession: a, startFresh: c, resetSession: d } = gc(t.orgSlug, t.projSlug), h = Ra(t, e);
6874
6886
  A(() => {
6875
6887
  _n.value = Pi(h.locale);
6876
6888
  }, [h.locale]);
@@ -6957,34 +6969,34 @@ function gc({ options: t }) {
6957
6969
  }
6958
6970
  );
6959
6971
  }
6960
- const mc = '.jex-widget{--jex-primary: #115A62;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-radius: .75rem;--jex-font-family: "Inter", system-ui, -apple-system, sans-serif;--jex-font-size: 14px;--jex-window-width: 380px;--jex-window-height: 600px;--jex-shadow: 0 16px 48px -12px rgba(13, 127, 138, .25), 0 4px 16px rgba(0, 0, 0, .08);pointer-events:auto;--jex-bg-trigger: var(--jex-primary);--jex-bg-header: var(--jex-primary);--jex-bg-msg-user: var(--jex-primary);--jex-bg-send-btn: var(--jex-primary);--jex-bg-window: rgba(255, 255, 255, .95);--jex-bg-msg-bot: #f1f5f9;--jex-bg-input: rgba(247, 253, 253, .6);--jex-text-header: #ffffff;--jex-text-msg-user: #ffffff;--jex-text-msg-bot: #0f172a;--jex-text-main: #0f172a;--jex-text-muted: #64748b;--jex-bg-avatar-agent: #d1fae5;--jex-text-avatar-agent: #065f46;--jex-border-window: rgba(226, 232, 240, .8);--jex-border-input: rgba(203, 213, 225, .8);--jex-bg-glass: var(--jex-bg-window);--jex-border-glass: var(--jex-border-window);font-family:var(--jex-font-family);-webkit-font-smoothing:antialiased}.dark .jex-widget,.jex-widget.dark{--jex-primary: #1cb0bf;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-bg-window: rgba(10, 15, 26, .95);--jex-bg-msg-bot: #233146;--jex-bg-input: rgba(10, 15, 26, .6);--jex-text-msg-bot: #f8fafc;--jex-text-main: #f8fafc;--jex-text-muted: #94a3b8;--jex-border-window: rgba(30, 41, 59, .8);--jex-border-input: rgba(51, 65, 85, .9);--jex-bg-avatar-agent: #064e3b;--jex-text-avatar-agent: #6ee7b7;--jex-bg-error: #3b1318;--jex-border-error: #5c1d24;--jex-text-error: #fca5a5}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light){--jex-primary: #1cb0bf;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-bg-window: rgba(10, 15, 26, .95);--jex-bg-msg-bot: #233146;--jex-bg-input: rgba(10, 15, 26, .6);--jex-text-msg-bot: #f8fafc;--jex-text-main: #f8fafc;--jex-text-muted: #94a3b8;--jex-border-window: rgba(30, 41, 59, .8);--jex-border-input: rgba(51, 65, 85, .9);--jex-bg-error: #3b1318;--jex-border-error: #5c1d24;--jex-text-error: #fca5a5}}.jex-widget *{box-sizing:border-box;margin:0;padding:0}.jex-container{position:fixed;bottom:24px;right:24px;display:flex;flex-direction:column;align-items:flex-end;gap:16px;z-index:9999}.jex-container.jex-pos-left{right:auto;left:24px;align-items:flex-start}:host(.jex-mode-embedded){display:block;width:100%;height:100%}:host(.jex-mode-embedded) .jex-widget{width:100%;height:100%}.jex-embedded{display:flex;flex-direction:column;width:100%;height:100%;background:var(--jex-bg-window);border:1px solid var(--jex-border-window);overflow:hidden}.jex-embedded .jex-screen-container{flex:1;overflow:hidden;display:flex;flex-direction:column}.jex-floating-button{height:56px;min-width:56px;padding:0;background:var(--jex-bg-trigger);color:var(--jex-text-header);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--jex-shadow);transition:transform .3s cubic-bezier(.175,.885,.32,1.275),background .2s,width .3s ease,border-radius .3s ease}.jex-floating-button.jex-has-label{min-width:110px;padding:0 20px}.jex-fab-inner{display:flex;align-items:center;gap:12px}.jex-fab-label{font-size:15px;font-weight:600;white-space:nowrap}.jex-floating-button:hover{transform:scale(1.1);background:var(--jex-primary-hover)}.jex-floating-button:active{transform:scale(.95)}.jex-chat-window{width:var(--jex-window-width);height:var(--jex-window-height);max-height:calc(100vh - 120px);background:var(--jex-bg-window);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid var(--jex-border-window);border-radius:calc(var(--jex-radius) * 2);box-shadow:var(--jex-shadow);display:flex;flex-direction:column;overflow:hidden;animation:jexSlideUp .4s cubic-bezier(.16,1,.3,1);transform-origin:bottom right}@keyframes jexSlideUp{0%{opacity:0;transform:scale(.8) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}.jex-chat-header{padding:20px;background:var(--jex-bg-header);color:var(--jex-text-header);display:flex;align-items:center;gap:12px;flex-shrink:0}.jex-header-info h3{font-size:16px;font-weight:600;color:var(--jex-text-header);margin:0}.jex-header-info p{font-size:12px;opacity:.8;color:var(--jex-text-header);margin:0}.jex-header-right{margin-left:auto;display:flex;align-items:center}.jex-header-handoff{background:transparent;border:1px solid currentColor;border-radius:999px;padding:4px 10px;font-size:12px;color:inherit;cursor:pointer}.jex-header-handoff:disabled{opacity:.5;cursor:not-allowed}.jex-handoff-error{position:absolute;top:100%;right:8px;background:#fee;color:#b00;padding:4px 8px;font-size:12px;border-radius:4px}.jex-header-back{background:none;border:none;color:var(--jex-text-header);cursor:pointer;padding:4px;display:flex;align-items:center;opacity:.8;transition:opacity .2s;flex-shrink:0}.jex-header-back:hover{opacity:1}.jex-screen-container{flex:1;overflow:hidden;display:flex;flex-direction:column}.jex-home{flex:1;display:flex;flex-direction:column;padding:24px;gap:20px;overflow-y:auto}.jex-home-hero{display:flex;align-items:center;gap:14px;animation:jexFadeIn .4s ease both}.jex-home-avatar{position:relative;width:48px;height:48px;border-radius:14px;background:var(--jex-primary);color:var(--jex-text-header);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 12px color-mix(in srgb,var(--jex-primary) 30%,transparent)}.jex-home-status-dot{position:absolute;bottom:-2px;right:-2px;width:14px;height:14px;border-radius:50%;background:#22c55e;border:2.5px solid var(--jex-bg-window);animation:jexPulse 2s ease-in-out infinite}@keyframes jexPulse{0%,to{box-shadow:0 0 #22c55e66}50%{box-shadow:0 0 0 6px #22c55e00}}.jex-home-hero-text{display:flex;flex-direction:column;gap:2px;min-width:0}.jex-home-title{font-size:17px;font-weight:700;color:var(--jex-text-main);margin:0;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jex-home-status{font-size:12px;font-weight:500;color:#22c55e;letter-spacing:.02em}.jex-home-greeting{background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);border-radius:4px 16px 16px;padding:16px 18px;font-size:14px;line-height:1.55;color:var(--jex-text-main);animation:jexFadeIn .4s .1s ease both}.jex-home-greeting p{margin:0}@keyframes jexFadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.jex-home-actions{display:flex;flex-direction:column;gap:10px;animation:jexFadeIn .4s .2s ease both}.jex-home-start-btn{background:var(--jex-bg-send-btn);color:var(--jex-text-header);border:none;border-radius:12px;padding:14px 20px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s,transform .15s,box-shadow .2s;width:100%;box-shadow:0 2px 8px color-mix(in srgb,var(--jex-primary) 25%,transparent)}.jex-home-start-btn:hover{background:var(--jex-primary-hover);transform:translateY(-1px);box-shadow:0 4px 16px color-mix(in srgb,var(--jex-primary) 35%,transparent)}.jex-home-start-btn:active{transform:translateY(0);box-shadow:0 1px 4px color-mix(in srgb,var(--jex-primary) 20%,transparent)}.jex-home-resume-card{display:flex;flex-direction:column;gap:8px;width:100%;text-align:left;padding:16px 18px;border-radius:14px;border:1.5px solid var(--jex-primary);background:color-mix(in srgb,var(--jex-primary) 6%,var(--jex-bg-window));cursor:pointer;font-family:inherit;transition:background .2s,border-color .2s,transform .15s,box-shadow .2s;box-shadow:0 2px 8px color-mix(in srgb,var(--jex-primary) 12%,transparent)}.jex-home-resume-card:hover{background:color-mix(in srgb,var(--jex-primary) 10%,var(--jex-bg-window));transform:translateY(-1px);box-shadow:0 4px 16px color-mix(in srgb,var(--jex-primary) 20%,transparent)}.jex-home-resume-card:active{transform:translateY(0)}.jex-home-resume-top{display:flex;align-items:center;justify-content:space-between}.jex-home-resume-label{font-size:14px;font-weight:600;color:var(--jex-primary)}.jex-home-resume-arrow{color:var(--jex-primary);opacity:.6;transition:opacity .2s,transform .2s}.jex-home-resume-card:hover .jex-home-resume-arrow{opacity:1;transform:translate(2px)}.jex-home-resume-ref{font-family:ui-monospace,Cascadia Code,Fira Code,monospace;font-size:13px;font-weight:600;letter-spacing:.06em;color:var(--jex-text-muted)}.jex-home-history{display:flex;flex-direction:column;gap:8px}.jex-home-resume-meta{font-size:11px;opacity:.7;margin-top:4px}.jex-home-new-btn{background:transparent;color:var(--jex-text-muted);border:1px solid var(--jex-border-input);border-radius:12px;padding:12px 20px;font-size:14px;font-weight:500;cursor:pointer;font-family:inherit;transition:color .2s,border-color .2s,background .2s;width:100%}.jex-home-new-btn:hover{color:var(--jex-text-main);border-color:var(--jex-text-muted);background:color-mix(in srgb,var(--jex-primary) 3%,transparent)}.jex-session-ref{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);border-radius:8px;font-size:12px}.jex-session-ref-label{color:var(--jex-text-muted);font-weight:500}.jex-session-ref-code{color:var(--jex-primary);font-weight:700;font-family:ui-monospace,Cascadia Code,monospace;letter-spacing:.05em}.jex-chat-messages{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.jex-message-row{display:flex;align-items:flex-end;gap:8px;max-width:85%}.jex-message-row.bot{align-self:flex-start}.jex-message-content{flex:1;min-width:0}.jex-avatar{width:24px;height:24px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:12px;margin-bottom:2px}.jex-avatar-bot{background:var(--jex-bg-msg-bot);color:var(--jex-primary)}.jex-avatar-agent{background:var(--jex-bg-avatar-agent)}.jex-avatar-img{width:100%;height:100%;border-radius:50%;object-fit:cover}.jex-avatar-initials{font-size:9px;font-weight:700;color:var(--jex-text-avatar-agent)}.jex-message-author-row{display:flex;align-items:center;gap:6px;margin-top:2px;padding-left:4px}.jex-message-author{font-size:10px;color:var(--jex-text-muted)}.jex-reply-tag-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;border-radius:4px;background:transparent;color:var(--jex-text-muted, #6b7280);cursor:pointer;transition:background .15s,color .15s}.jex-reply-tag-btn:hover{background:#0000000f;color:var(--jex-primary, #115A62)}.jex-reply-tag-btn:focus-visible{outline:2px solid var(--jex-primary, #115A62);outline-offset:1px}.jex-message{padding:12px 16px;border-radius:18px;font-size:14px;line-height:1.4}.jex-message.bot{background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);color:var(--jex-text-msg-bot);border-bottom-left-radius:4px}.jex-message.user{align-self:flex-end;max-width:80%;background:var(--jex-bg-msg-user);color:var(--jex-text-msg-user);border-bottom-right-radius:4px}.jex-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 16px}.jex-typing span{width:8px;height:8px;border-radius:50%;background:var(--jex-text-muted);animation:jexTypingDot 1.2s infinite ease-in-out}.jex-typing span:nth-child(2){animation-delay:.2s}.jex-typing span:nth-child(3){animation-delay:.4s}@keyframes jexTypingDot{0%,80%,to{transform:scale(.8);opacity:.4}40%{transform:scale(1);opacity:1}}.jex-md{word-break:break-word;overflow-wrap:anywhere}.jex-md p{margin:0 0 8px}.jex-md p:last-child{margin-bottom:0}.jex-md strong{font-weight:600}.jex-md em{font-style:italic}.jex-md ul,.jex-md ol{margin:0 0 8px;padding-left:20px}.jex-md ul:last-child,.jex-md ol:last-child{margin-bottom:0}.jex-md ul{list-style-type:disc}.jex-md ol{list-style-type:decimal}.jex-md li{margin-bottom:2px}.jex-md li:last-child{margin-bottom:0}.jex-md a{color:var(--jex-primary);text-decoration:underline;text-underline-offset:2px}.jex-md a:hover{opacity:.8}.jex-md code{background:#00000014;padding:1px 5px;border-radius:4px;font-size:.9em;font-family:ui-monospace,Cascadia Code,Fira Code,monospace}.jex-md pre{background:#0000000f;border-radius:8px;padding:10px 12px;margin:0 0 8px;overflow-x:auto;font-size:.85em}.jex-md pre:last-child{margin-bottom:0}.jex-md pre code{background:none;padding:0;border-radius:0;font-size:inherit}.jex-md h1,.jex-md h2,.jex-md h3,.jex-md h4{font-weight:600;margin:8px 0 4px}.jex-md h1:first-child,.jex-md h2:first-child,.jex-md h3:first-child,.jex-md h4:first-child{margin-top:0}.jex-md h3{font-size:1em}.jex-md h4{font-size:.95em}.jex-md hr{border:none;border-top:1px solid var(--jex-border-window);margin:8px 0}.jex-md blockquote{border-left:3px solid var(--jex-primary);margin:0 0 8px;padding:4px 12px;color:var(--jex-text-muted)}.jex-md blockquote:last-child{margin-bottom:0}.dark .jex-md code,.jex-widget.dark .jex-md code{background:#ffffff1a}.dark .jex-md pre,.jex-widget.dark .jex-md pre{background:#ffffff14}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-md code{background:#ffffff1a}:host:not(.light) .jex-widget:not(.light) .jex-md pre{background:#ffffff14}}.jex-streaming-cursor:after{content:"◊";margin-left:2px;animation:jexBlinkCursor .8s ease-in-out infinite}@keyframes jexBlinkCursor{0%,to{opacity:1}50%{opacity:0}}.jex-session-notice{align-self:center;text-align:center;padding:8px 16px;margin:8px 0;font-size:12px;color:var(--jex-text-muted);background:var(--jex-bg-input, #f1f5f9);border-radius:8px;line-height:1.4}.jex-message-error{background:var(--jex-bg-error, #fef2f2)!important;border-color:var(--jex-border-error, #fecaca)!important;color:var(--jex-text-error, #991b1b)!important}.jex-chat-input{padding:16px;border-top:1px solid var(--jex-border-window);display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}.jex-rate-limit-notice{flex:1 0 100%;order:-1;margin-bottom:8px;padding:8px 12px;border-radius:10px;background:var(--jex-bg-msg-bot, #f1f5f9);color:var(--jex-text-muted, #64748b);font-size:12px;line-height:1.4;text-align:center}.jex-chat-input input{flex:1;background:var(--jex-bg-input);border:1px solid var(--jex-border-input);border-radius:12px;padding:10px 14px;color:var(--jex-text-main);outline:none;font-family:inherit;font-size:14px}.jex-chat-input input:focus{border-color:var(--jex-primary)}.jex-send-btn{background:var(--jex-bg-send-btn);color:var(--jex-text-header);border:none;border-radius:12px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s cubic-bezier(.175,.885,.32,1.275);flex-shrink:0}.jex-send-btn:hover{transform:scale(1.05);background:var(--jex-primary-hover)}.jex-send-btn:active{transform:scale(.95)}.jex-widget-footer{display:flex;align-items:center;justify-content:center;padding:8px 16px;border-top:1px solid var(--jex-border-glass);background:#00000005;flex-shrink:0}.jex-widget.dark .jex-widget-footer{background:#ffffff05}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-widget-footer{background:#ffffff05}}.jex-branding{display:flex;align-items:center;gap:6px;text-decoration:none;color:var(--jex-text-muted);font-size:11px;font-weight:500;transition:color .2s}.jex-branding:hover{color:var(--jex-text-main)}.jex-branding-icon{color:var(--jex-primary)}.jex-branding span strong{font-weight:700;color:var(--jex-text-main)}.jex-locale-select-wrapper{position:relative;display:flex;align-items:center}.jex-locale-select{appearance:none;-webkit-appearance:none;background:transparent;border:1px solid transparent;padding:4px 20px 4px 6px;border-radius:6px;font-family:inherit;font-size:11px;font-weight:600;color:var(--jex-text-muted);background-color:transparent;cursor:pointer;outline:none;transition:all .2s ease}.jex-locale-select option{background-color:#fff;color:#0f172a}.jex-locale-select:hover,.jex-locale-select:focus-visible{color:var(--jex-text-main);background:#0000000a}.jex-widget.dark .jex-locale-select:hover,.jex-widget.dark .jex-locale-select:focus-visible{background:#ffffff0d}.jex-widget.dark .jex-locale-select option{background-color:#0f172a;color:#f8fafc}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-locale-select:hover,:host:not(.light) .jex-widget:not(.light) .jex-locale-select:focus-visible{background:#ffffff0d}:host:not(.light) .jex-widget:not(.light) .jex-locale-select option{background-color:#0f172a;color:#f8fafc}}.jex-locale-select:focus-visible{border-color:var(--jex-primary)}.jex-locale-chevron{position:absolute;right:4px;pointer-events:none;color:var(--jex-text-muted);transition:color .2s ease}.jex-locale-select-wrapper:hover .jex-locale-chevron{color:var(--jex-text-main)}.jex-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--jex-bg-window, #fff);z-index:10;padding:24px;text-align:center}.jex-loading-spinner{width:32px;height:32px;border:3px solid var(--jex-border-input, #e2e8f0);border-top-color:var(--jex-primary, #115A62);border-radius:50%;animation:jex-spin .7s linear infinite}@keyframes jex-spin{to{transform:rotate(360deg)}}.jex-loading-message{font-size:14px;color:var(--jex-text-muted, #64748b)}.jex-error-message{font-size:14px;color:var(--jex-text-main, #334155)}.jex-error-actions{display:flex;gap:8px}.jex-error-retry,.jex-error-back{padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:none}.jex-error-retry{background:var(--jex-primary, #115A62);color:#fff}.jex-error-back{background:transparent;color:var(--jex-text-muted, #64748b);border:1px solid var(--jex-border-input, #e2e8f0)}.jex-selection{display:flex;flex-direction:column;gap:12px;padding:24px 16px;height:100%}.jex-selection-title{font-size:16px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0 0 8px}.jex-selection-options{display:flex;flex-direction:column;gap:10px}.jex-selection-option{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:16px;border-radius:12px;border:1px solid var(--jex-border-window, #e2e8f0);background:transparent;cursor:pointer;text-align:left;transition:border-color .15s ease,background .15s ease}.jex-selection-option:hover{border-color:var(--jex-primary, #115A62);background:color-mix(in srgb,var(--jex-primary, #115A62) 5%,transparent)}.jex-selection-icon{font-size:20px}.jex-selection-label{font-size:14px;font-weight:600;color:var(--jex-text-main, #0f172a)}.jex-selection-sub{font-size:12px;color:var(--jex-text-muted, #64748b)}.jex-form-screen{display:flex;flex-direction:column;padding:20px 16px;height:100%;overflow-y:auto}.jex-form-title{font-size:16px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0 0 16px}.jex-form{display:flex;flex-direction:column;gap:10px}.jex-form-input,.jex-form-textarea{padding:10px 12px;border-radius:8px;border:1px solid var(--jex-border-input, #e2e8f0);font-size:14px;background:transparent;color:var(--jex-text-main, #0f172a);outline:none}.jex-form-input:focus,.jex-form-textarea:focus{border-color:var(--jex-primary, #115A62)}.jex-form-textarea{min-height:80px;resize:vertical}.jex-form-submit{padding:10px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:14px;font-weight:600;cursor:pointer;margin-top:4px}.jex-inline-form{display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--jex-bg-msg-bot, #f1f5f9);border:1px solid var(--jex-border-input, #e2e8f0);border-radius:var(--jex-radius, .75rem);width:100%}.jex-inline-form-title{font-weight:600;font-size:15px;color:var(--jex-text-main, #0f172a);margin:0}.jex-inline-form-subtitle{font-size:13px;color:var(--jex-text-muted, #64748b);line-height:1.4;margin:0 0 4px}.jex-inline-form-consent{font-size:11px;color:var(--jex-text-muted, #64748b);line-height:1.3;margin-top:4px;text-align:center}.jex-inline-form .jex-form-submit:disabled{opacity:.7;cursor:not-allowed}.jex-escalation-subtitle{font-size:13px;color:var(--jex-text-muted, #64748b);line-height:1.45;margin:0 0 8px}.jex-escalation-skip{padding:8px 12px;border:none;background:transparent;color:var(--jex-text-muted, #64748b);font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:2px;text-align:center}.jex-escalation-skip:hover{color:var(--jex-text-main, #0f172a)}.jex-inline-form-card{position:relative;padding:14px;gap:8px}.jex-inline-form-dismiss{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:50%;border:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-window, #fff);color:var(--jex-text-muted, #64748b);font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1}.jex-inline-form-dismiss:hover{background:var(--jex-bg-msg-bot, #f1f5f9);color:var(--jex-text-main, #0f172a)}.jex-inline-form-submitted{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--jex-bg-msg-bot, #f1f5f9);border:1px solid var(--jex-border-input, #e2e8f0);border-radius:var(--jex-radius, .75rem);width:100%}.jex-inline-form-check{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--jex-primary) 15%,transparent);color:var(--jex-primary, #115A62);font-size:14px;font-weight:700;flex-shrink:0}.jex-inline-form-submitted-title{font-weight:600;font-size:var(--jex-font-size, 14px);color:var(--jex-text-main, #0f172a)}.jex-inline-form-submitted-detail{font-size:12px;color:var(--jex-text-muted, #64748b);margin-top:2px}.jex-escalation-confirm{border-left:3px solid var(--jex-primary, #115A62);padding-left:8px}.jex-session-prompt{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 16px;margin:8px 0;text-align:center}.jex-session-prompt-text{font-size:13px;color:var(--jex-text-muted, #64748b)}.jex-session-prompt-btn{padding:8px 16px;border-radius:8px;border:1px solid var(--jex-primary, #115A62);background:transparent;color:var(--jex-primary, #115A62);font-size:13px;font-weight:600;cursor:pointer}.jex-session-prompt-btn:hover{background:color-mix(in srgb,var(--jex-primary) 10%,transparent)}.jex-chat-input-resolved{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 16px;border-top:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-msg-bot, #f1f5f9);text-align:center}.jex-resolved-notice{font-size:13px;font-weight:500;color:var(--jex-text-muted, #64748b)}.jex-resolved-new-btn{padding:10px 20px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:13px;font-weight:600;cursor:pointer;width:100%}.jex-resolved-new-btn:hover{opacity:.9}.jex-confirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:32px 24px;height:100%;text-align:center}.jex-confirmation-icon{width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--jex-primary, #115A62) 15%,transparent);color:var(--jex-primary, #115A62);font-size:22px;display:flex;align-items:center;justify-content:center}.jex-confirmation-title{font-size:18px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0}.jex-confirmation-body{font-size:13px;color:var(--jex-text-muted, #64748b);margin:0}.jex-confirmation-ref{font-size:20px;font-weight:700;letter-spacing:.05em;color:var(--jex-primary, #115A62);background:color-mix(in srgb,var(--jex-primary, #115A62) 10%,transparent);padding:10px 20px;border-radius:10px}.jex-confirmation-hint{font-size:12px;color:var(--jex-text-muted, #64748b);margin:0}.jex-confirmation-done{margin-top:8px;padding:10px 28px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:14px;font-weight:600;cursor:pointer}.jex-home-lookup-link{background:none;border:none;font-size:12px;color:var(--jex-text-muted, #64748b);cursor:pointer;text-decoration:underline;padding:0;align-self:center}.jex-home-lookup{display:flex;gap:8px;width:100%;animation:jexFadeIn .4s .1s ease both}.jex-home-lookup-input{flex:1;padding:10px 14px;border-radius:10px;border:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-input);color:var(--jex-text-main);font-size:13px;font-family:ui-monospace,Cascadia Code,Fira Code,monospace;letter-spacing:.04em;outline:none;transition:border-color .2s}.jex-home-lookup-input::placeholder{font-family:inherit;letter-spacing:.04em;color:var(--jex-text-muted);opacity:.7}.jex-home-lookup-input:focus{border-color:var(--jex-primary, #115A62)}.jex-home-lookup-submit{padding:10px 16px;border-radius:10px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s,opacity .2s;flex-shrink:0}.jex-home-lookup-submit:hover:not(:disabled){background:var(--jex-primary-hover)}.jex-home-lookup-submit:disabled{opacity:.4;cursor:default}.jex-sources-row{margin-top:6px;margin-left:32px;display:flex;flex-direction:column;gap:6px}.jex-sources-toggle{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;background:transparent;border:none;border-radius:6px;cursor:pointer;font-size:11px;color:var(--jex-text-muted, #6b7280);font-family:inherit;align-self:flex-start;transition:background .15s,color .15s}.jex-sources-toggle:hover{background:#0000000a;color:inherit}.jex-sources-icon{font-size:12px;line-height:1}.jex-sources-chevron{display:inline-block;font-size:10px;transition:transform .15s}.jex-sources-chevron--open{transform:rotate(180deg)}.jex-sources-pills{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.jex-source-pill{display:inline-flex;align-items:center;gap:6px;max-width:240px;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.1);background:#0000000a;color:var(--jex-text-muted, #6b7280);font-size:11px;text-decoration:none;cursor:pointer;transition:background .15s,color .15s}.jex-source-pill:hover{background:#00000014;color:inherit}.jex-source-id{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:4px;background:var(--jex-primary, #115A62);color:#fff;font-size:10px;font-weight:600;line-height:1;flex-shrink:0;font-variant-numeric:tabular-nums}.jex-source-type{font-size:10px;flex-shrink:0}.jex-source-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.jex-source-score{opacity:.6;flex-shrink:0;font-variant-numeric:tabular-nums}';
6961
- function xc(t) {
6972
+ const xc = '.jex-widget{--jex-primary: #115A62;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-radius: .75rem;--jex-font-family: "Inter", system-ui, -apple-system, sans-serif;--jex-font-size: 14px;--jex-window-width: 380px;--jex-window-height: 600px;--jex-shadow: 0 16px 48px -12px rgba(13, 127, 138, .25), 0 4px 16px rgba(0, 0, 0, .08);pointer-events:auto;--jex-bg-trigger: var(--jex-primary);--jex-bg-header: var(--jex-primary);--jex-bg-msg-user: var(--jex-primary);--jex-bg-send-btn: var(--jex-primary);--jex-bg-window: rgba(255, 255, 255, .95);--jex-bg-msg-bot: #f1f5f9;--jex-bg-input: rgba(247, 253, 253, .6);--jex-text-header: #ffffff;--jex-text-msg-user: #ffffff;--jex-text-msg-bot: #0f172a;--jex-text-main: #0f172a;--jex-text-muted: #64748b;--jex-bg-avatar-agent: #d1fae5;--jex-text-avatar-agent: #065f46;--jex-border-window: rgba(226, 232, 240, .8);--jex-border-input: rgba(203, 213, 225, .8);--jex-bg-glass: var(--jex-bg-window);--jex-border-glass: var(--jex-border-window);font-family:var(--jex-font-family);-webkit-font-smoothing:antialiased}.dark .jex-widget,.jex-widget.dark{--jex-primary: #1cb0bf;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-bg-window: rgba(10, 15, 26, .95);--jex-bg-msg-bot: #233146;--jex-bg-input: rgba(10, 15, 26, .6);--jex-text-msg-bot: #f8fafc;--jex-text-main: #f8fafc;--jex-text-muted: #94a3b8;--jex-border-window: rgba(30, 41, 59, .8);--jex-border-input: rgba(51, 65, 85, .9);--jex-bg-avatar-agent: #064e3b;--jex-text-avatar-agent: #6ee7b7;--jex-bg-error: #3b1318;--jex-border-error: #5c1d24;--jex-text-error: #fca5a5}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light){--jex-primary: #1cb0bf;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-bg-window: rgba(10, 15, 26, .95);--jex-bg-msg-bot: #233146;--jex-bg-input: rgba(10, 15, 26, .6);--jex-text-msg-bot: #f8fafc;--jex-text-main: #f8fafc;--jex-text-muted: #94a3b8;--jex-border-window: rgba(30, 41, 59, .8);--jex-border-input: rgba(51, 65, 85, .9);--jex-bg-error: #3b1318;--jex-border-error: #5c1d24;--jex-text-error: #fca5a5}}.jex-widget *{box-sizing:border-box;margin:0;padding:0}.jex-container{position:fixed;bottom:24px;right:24px;display:flex;flex-direction:column;align-items:flex-end;gap:16px;z-index:9999}.jex-container.jex-pos-left{right:auto;left:24px;align-items:flex-start}:host(.jex-mode-embedded){display:block;width:100%;height:100%}:host(.jex-mode-embedded) .jex-widget{width:100%;height:100%}.jex-embedded{display:flex;flex-direction:column;width:100%;height:100%;background:var(--jex-bg-window);border:1px solid var(--jex-border-window);overflow:hidden}.jex-embedded .jex-screen-container{flex:1;overflow:hidden;display:flex;flex-direction:column}.jex-floating-button{height:56px;min-width:56px;padding:0;background:var(--jex-bg-trigger);color:var(--jex-text-header);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--jex-shadow);transition:transform .3s cubic-bezier(.175,.885,.32,1.275),background .2s,width .3s ease,border-radius .3s ease}.jex-floating-button.jex-has-label{min-width:110px;padding:0 20px}.jex-fab-inner{display:flex;align-items:center;gap:12px}.jex-fab-label{font-size:15px;font-weight:600;white-space:nowrap}.jex-floating-button:hover{transform:scale(1.1);background:var(--jex-primary-hover)}.jex-floating-button:active{transform:scale(.95)}.jex-chat-window{width:var(--jex-window-width);height:var(--jex-window-height);max-height:calc(100vh - 120px);background:var(--jex-bg-window);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid var(--jex-border-window);border-radius:calc(var(--jex-radius) * 2);box-shadow:var(--jex-shadow);display:flex;flex-direction:column;overflow:hidden;animation:jexSlideUp .4s cubic-bezier(.16,1,.3,1);transform-origin:bottom right}@keyframes jexSlideUp{0%{opacity:0;transform:scale(.8) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}.jex-chat-header{padding:20px;background:var(--jex-bg-header);color:var(--jex-text-header);display:flex;align-items:center;gap:12px;flex-shrink:0}.jex-header-info h3{font-size:16px;font-weight:600;color:var(--jex-text-header);margin:0}.jex-header-info p{font-size:12px;opacity:.8;color:var(--jex-text-header);margin:0}.jex-header-right{margin-left:auto;display:flex;align-items:center}.jex-header-handoff{background:transparent;border:1px solid currentColor;border-radius:999px;padding:4px 10px;font-size:12px;color:inherit;cursor:pointer}.jex-header-handoff:disabled{opacity:.5;cursor:not-allowed}.jex-handoff-error{position:absolute;top:100%;right:8px;background:#fee;color:#b00;padding:4px 8px;font-size:12px;border-radius:4px}.jex-header-back{background:none;border:none;color:var(--jex-text-header);cursor:pointer;padding:4px;display:flex;align-items:center;opacity:.8;transition:opacity .2s;flex-shrink:0}.jex-header-back:hover{opacity:1}.jex-screen-container{flex:1;overflow:hidden;display:flex;flex-direction:column}.jex-home{flex:1;display:flex;flex-direction:column;padding:24px;gap:20px;overflow-y:auto}.jex-home-hero{display:flex;align-items:center;gap:14px;animation:jexFadeIn .4s ease both}.jex-home-avatar{position:relative;width:48px;height:48px;border-radius:14px;background:var(--jex-primary);color:var(--jex-text-header);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 12px color-mix(in srgb,var(--jex-primary) 30%,transparent)}.jex-home-status-dot{position:absolute;bottom:-2px;right:-2px;width:14px;height:14px;border-radius:50%;background:#22c55e;border:2.5px solid var(--jex-bg-window);animation:jexPulse 2s ease-in-out infinite}@keyframes jexPulse{0%,to{box-shadow:0 0 #22c55e66}50%{box-shadow:0 0 0 6px #22c55e00}}.jex-home-hero-text{display:flex;flex-direction:column;gap:2px;min-width:0}.jex-home-title{font-size:17px;font-weight:700;color:var(--jex-text-main);margin:0;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jex-home-status{font-size:12px;font-weight:500;color:#22c55e;letter-spacing:.02em}.jex-home-greeting{background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);border-radius:4px 16px 16px;padding:16px 18px;font-size:14px;line-height:1.55;color:var(--jex-text-main);animation:jexFadeIn .4s .1s ease both}.jex-home-greeting p{margin:0}@keyframes jexFadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.jex-home-actions{display:flex;flex-direction:column;gap:10px;animation:jexFadeIn .4s .2s ease both}.jex-home-start-btn{background:var(--jex-bg-send-btn);color:var(--jex-text-header);border:none;border-radius:12px;padding:14px 20px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s,transform .15s,box-shadow .2s;width:100%;box-shadow:0 2px 8px color-mix(in srgb,var(--jex-primary) 25%,transparent)}.jex-home-start-btn:hover{background:var(--jex-primary-hover);transform:translateY(-1px);box-shadow:0 4px 16px color-mix(in srgb,var(--jex-primary) 35%,transparent)}.jex-home-start-btn:active{transform:translateY(0);box-shadow:0 1px 4px color-mix(in srgb,var(--jex-primary) 20%,transparent)}.jex-home-resume-card{display:flex;flex-direction:column;gap:8px;width:100%;text-align:left;padding:16px 18px;border-radius:14px;border:1.5px solid var(--jex-primary);background:color-mix(in srgb,var(--jex-primary) 6%,var(--jex-bg-window));cursor:pointer;font-family:inherit;transition:background .2s,border-color .2s,transform .15s,box-shadow .2s;box-shadow:0 2px 8px color-mix(in srgb,var(--jex-primary) 12%,transparent)}.jex-home-resume-card:hover{background:color-mix(in srgb,var(--jex-primary) 10%,var(--jex-bg-window));transform:translateY(-1px);box-shadow:0 4px 16px color-mix(in srgb,var(--jex-primary) 20%,transparent)}.jex-home-resume-card:active{transform:translateY(0)}.jex-home-resume-top{display:flex;align-items:center;justify-content:space-between}.jex-home-resume-label{font-size:14px;font-weight:600;color:var(--jex-primary)}.jex-home-resume-arrow{color:var(--jex-primary);opacity:.6;transition:opacity .2s,transform .2s}.jex-home-resume-card:hover .jex-home-resume-arrow{opacity:1;transform:translate(2px)}.jex-home-resume-ref{font-family:ui-monospace,Cascadia Code,Fira Code,monospace;font-size:13px;font-weight:600;letter-spacing:.06em;color:var(--jex-text-muted)}.jex-home-history{display:flex;flex-direction:column;gap:8px}.jex-home-resume-meta{font-size:11px;opacity:.7;margin-top:4px}.jex-home-new-btn{background:transparent;color:var(--jex-text-muted);border:1px solid var(--jex-border-input);border-radius:12px;padding:12px 20px;font-size:14px;font-weight:500;cursor:pointer;font-family:inherit;transition:color .2s,border-color .2s,background .2s;width:100%}.jex-home-new-btn:hover{color:var(--jex-text-main);border-color:var(--jex-text-muted);background:color-mix(in srgb,var(--jex-primary) 3%,transparent)}.jex-session-ref{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);border-radius:8px;font-size:12px}.jex-session-ref-label{color:var(--jex-text-muted);font-weight:500}.jex-session-ref-code{color:var(--jex-primary);font-weight:700;font-family:ui-monospace,Cascadia Code,monospace;letter-spacing:.05em}.jex-chat-messages{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.jex-message-row{display:flex;align-items:flex-end;gap:8px;max-width:85%}.jex-message-row.bot{align-self:flex-start}.jex-message-content{flex:1;min-width:0}.jex-avatar{width:24px;height:24px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:12px;margin-bottom:2px}.jex-avatar-bot{background:var(--jex-bg-msg-bot);color:var(--jex-primary)}.jex-avatar-agent{background:var(--jex-bg-avatar-agent)}.jex-avatar-img{width:100%;height:100%;border-radius:50%;object-fit:cover}.jex-avatar-initials{font-size:9px;font-weight:700;color:var(--jex-text-avatar-agent)}.jex-message-author-row{display:flex;align-items:center;gap:6px;margin-top:2px;padding-left:4px}.jex-message-author{font-size:10px;color:var(--jex-text-muted)}.jex-reply-tag-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;border-radius:4px;background:transparent;color:var(--jex-text-muted, #6b7280);cursor:pointer;transition:background .15s,color .15s}.jex-reply-tag-btn:hover{background:#0000000f;color:var(--jex-primary, #115A62)}.jex-reply-tag-btn:focus-visible{outline:2px solid var(--jex-primary, #115A62);outline-offset:1px}.jex-message{padding:12px 16px;border-radius:18px;font-size:14px;line-height:1.4}.jex-message.bot{background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);color:var(--jex-text-msg-bot);border-bottom-left-radius:4px}.jex-message.user{align-self:flex-end;max-width:80%;background:var(--jex-bg-msg-user);color:var(--jex-text-msg-user);border-bottom-right-radius:4px}.jex-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 16px}.jex-typing span{width:8px;height:8px;border-radius:50%;background:var(--jex-text-muted);animation:jexTypingDot 1.2s infinite ease-in-out}.jex-typing span:nth-child(2){animation-delay:.2s}.jex-typing span:nth-child(3){animation-delay:.4s}@keyframes jexTypingDot{0%,80%,to{transform:scale(.8);opacity:.4}40%{transform:scale(1);opacity:1}}.jex-md{word-break:break-word;overflow-wrap:anywhere}.jex-md p{margin:0 0 8px}.jex-md p:last-child{margin-bottom:0}.jex-md strong{font-weight:600}.jex-md em{font-style:italic}.jex-md ul,.jex-md ol{margin:0 0 8px;padding-left:20px}.jex-md ul:last-child,.jex-md ol:last-child{margin-bottom:0}.jex-md ul{list-style-type:disc}.jex-md ol{list-style-type:decimal}.jex-md li{margin-bottom:2px}.jex-md li:last-child{margin-bottom:0}.jex-md a{color:var(--jex-primary);text-decoration:underline;text-underline-offset:2px}.jex-md a:hover{opacity:.8}.jex-md code{background:#00000014;padding:1px 5px;border-radius:4px;font-size:.9em;font-family:ui-monospace,Cascadia Code,Fira Code,monospace}.jex-md pre{background:#0000000f;border-radius:8px;padding:10px 12px;margin:0 0 8px;overflow-x:auto;font-size:.85em}.jex-md pre:last-child{margin-bottom:0}.jex-md pre code{background:none;padding:0;border-radius:0;font-size:inherit}.jex-md h1,.jex-md h2,.jex-md h3,.jex-md h4{font-weight:600;margin:8px 0 4px}.jex-md h1:first-child,.jex-md h2:first-child,.jex-md h3:first-child,.jex-md h4:first-child{margin-top:0}.jex-md h3{font-size:1em}.jex-md h4{font-size:.95em}.jex-md hr{border:none;border-top:1px solid var(--jex-border-window);margin:8px 0}.jex-md blockquote{border-left:3px solid var(--jex-primary);margin:0 0 8px;padding:4px 12px;color:var(--jex-text-muted)}.jex-md blockquote:last-child{margin-bottom:0}.dark .jex-md code,.jex-widget.dark .jex-md code{background:#ffffff1a}.dark .jex-md pre,.jex-widget.dark .jex-md pre{background:#ffffff14}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-md code{background:#ffffff1a}:host:not(.light) .jex-widget:not(.light) .jex-md pre{background:#ffffff14}}.jex-streaming-cursor:after{content:"◊";margin-left:2px;animation:jexBlinkCursor .8s ease-in-out infinite}@keyframes jexBlinkCursor{0%,to{opacity:1}50%{opacity:0}}.jex-session-notice{align-self:center;text-align:center;padding:8px 16px;margin:8px 0;font-size:12px;color:var(--jex-text-muted);background:var(--jex-bg-input, #f1f5f9);border-radius:8px;line-height:1.4}.jex-message-error{background:var(--jex-bg-error, #fef2f2)!important;border-color:var(--jex-border-error, #fecaca)!important;color:var(--jex-text-error, #991b1b)!important}.jex-chat-input{padding:16px;border-top:1px solid var(--jex-border-window);display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}.jex-rate-limit-notice{flex:1 0 100%;order:-1;margin-bottom:8px;padding:8px 12px;border-radius:10px;background:var(--jex-bg-msg-bot, #f1f5f9);color:var(--jex-text-muted, #64748b);font-size:12px;line-height:1.4;text-align:center}.jex-chat-input input{flex:1;background:var(--jex-bg-input);border:1px solid var(--jex-border-input);border-radius:12px;padding:10px 14px;color:var(--jex-text-main);outline:none;font-family:inherit;font-size:14px}.jex-chat-input input:focus{border-color:var(--jex-primary)}.jex-send-btn{background:var(--jex-bg-send-btn);color:var(--jex-text-header);border:none;border-radius:12px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s cubic-bezier(.175,.885,.32,1.275);flex-shrink:0}.jex-send-btn:hover{transform:scale(1.05);background:var(--jex-primary-hover)}.jex-send-btn:active{transform:scale(.95)}.jex-widget-footer{display:flex;align-items:center;justify-content:center;padding:8px 16px;border-top:1px solid var(--jex-border-glass);background:#00000005;flex-shrink:0}.jex-widget.dark .jex-widget-footer{background:#ffffff05}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-widget-footer{background:#ffffff05}}.jex-branding{display:flex;align-items:center;gap:6px;text-decoration:none;color:var(--jex-text-muted);font-size:11px;font-weight:500;transition:color .2s}.jex-branding:hover{color:var(--jex-text-main)}.jex-branding-icon{color:var(--jex-primary)}.jex-branding span strong{font-weight:700;color:var(--jex-text-main)}.jex-locale-select-wrapper{position:relative;display:flex;align-items:center}.jex-locale-select{appearance:none;-webkit-appearance:none;background:transparent;border:1px solid transparent;padding:4px 20px 4px 6px;border-radius:6px;font-family:inherit;font-size:11px;font-weight:600;color:var(--jex-text-muted);background-color:transparent;cursor:pointer;outline:none;transition:all .2s ease}.jex-locale-select option{background-color:#fff;color:#0f172a}.jex-locale-select:hover,.jex-locale-select:focus-visible{color:var(--jex-text-main);background:#0000000a}.jex-widget.dark .jex-locale-select:hover,.jex-widget.dark .jex-locale-select:focus-visible{background:#ffffff0d}.jex-widget.dark .jex-locale-select option{background-color:#0f172a;color:#f8fafc}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-locale-select:hover,:host:not(.light) .jex-widget:not(.light) .jex-locale-select:focus-visible{background:#ffffff0d}:host:not(.light) .jex-widget:not(.light) .jex-locale-select option{background-color:#0f172a;color:#f8fafc}}.jex-locale-select:focus-visible{border-color:var(--jex-primary)}.jex-locale-chevron{position:absolute;right:4px;pointer-events:none;color:var(--jex-text-muted);transition:color .2s ease}.jex-locale-select-wrapper:hover .jex-locale-chevron{color:var(--jex-text-main)}.jex-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--jex-bg-window, #fff);z-index:10;padding:24px;text-align:center}.jex-loading-spinner{width:32px;height:32px;border:3px solid var(--jex-border-input, #e2e8f0);border-top-color:var(--jex-primary, #115A62);border-radius:50%;animation:jex-spin .7s linear infinite}@keyframes jex-spin{to{transform:rotate(360deg)}}.jex-loading-message{font-size:14px;color:var(--jex-text-muted, #64748b)}.jex-error-message{font-size:14px;color:var(--jex-text-main, #334155)}.jex-error-actions{display:flex;gap:8px}.jex-error-retry,.jex-error-back{padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:none}.jex-error-retry{background:var(--jex-primary, #115A62);color:#fff}.jex-error-back{background:transparent;color:var(--jex-text-muted, #64748b);border:1px solid var(--jex-border-input, #e2e8f0)}.jex-selection{display:flex;flex-direction:column;gap:12px;padding:24px 16px;height:100%}.jex-selection-title{font-size:16px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0 0 8px}.jex-selection-options{display:flex;flex-direction:column;gap:10px}.jex-selection-option{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:16px;border-radius:12px;border:1px solid var(--jex-border-window, #e2e8f0);background:transparent;cursor:pointer;text-align:left;transition:border-color .15s ease,background .15s ease}.jex-selection-option:hover{border-color:var(--jex-primary, #115A62);background:color-mix(in srgb,var(--jex-primary, #115A62) 5%,transparent)}.jex-selection-icon{font-size:20px}.jex-selection-label{font-size:14px;font-weight:600;color:var(--jex-text-main, #0f172a)}.jex-selection-sub{font-size:12px;color:var(--jex-text-muted, #64748b)}.jex-form-screen{display:flex;flex-direction:column;padding:20px 16px;height:100%;overflow-y:auto}.jex-form-title{font-size:16px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0 0 16px}.jex-form{display:flex;flex-direction:column;gap:10px}.jex-form-input,.jex-form-textarea{padding:10px 12px;border-radius:8px;border:1px solid var(--jex-border-input, #e2e8f0);font-size:14px;background:transparent;color:var(--jex-text-main, #0f172a);outline:none}.jex-form-input:focus,.jex-form-textarea:focus{border-color:var(--jex-primary, #115A62)}.jex-form-textarea{min-height:80px;resize:vertical}.jex-form-submit{padding:10px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:14px;font-weight:600;cursor:pointer;margin-top:4px}.jex-inline-form{display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--jex-bg-msg-bot, #f1f5f9);border:1px solid var(--jex-border-input, #e2e8f0);border-radius:var(--jex-radius, .75rem);width:100%}.jex-inline-form-title{font-weight:600;font-size:15px;color:var(--jex-text-main, #0f172a);margin:0}.jex-inline-form-subtitle{font-size:13px;color:var(--jex-text-muted, #64748b);line-height:1.4;margin:0 0 4px}.jex-inline-form-consent{font-size:11px;color:var(--jex-text-muted, #64748b);line-height:1.3;margin-top:4px;text-align:center}.jex-inline-form .jex-form-submit:disabled{opacity:.7;cursor:not-allowed}.jex-escalation-subtitle{font-size:13px;color:var(--jex-text-muted, #64748b);line-height:1.45;margin:0 0 8px}.jex-escalation-skip{padding:8px 12px;border:none;background:transparent;color:var(--jex-text-muted, #64748b);font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:2px;text-align:center}.jex-escalation-skip:hover{color:var(--jex-text-main, #0f172a)}.jex-inline-form-card{position:relative;padding:14px;gap:8px}.jex-inline-form-dismiss{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:50%;border:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-window, #fff);color:var(--jex-text-muted, #64748b);font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1}.jex-inline-form-dismiss:hover{background:var(--jex-bg-msg-bot, #f1f5f9);color:var(--jex-text-main, #0f172a)}.jex-inline-form-submitted{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--jex-bg-msg-bot, #f1f5f9);border:1px solid var(--jex-border-input, #e2e8f0);border-radius:var(--jex-radius, .75rem);width:100%}.jex-inline-form-check{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--jex-primary) 15%,transparent);color:var(--jex-primary, #115A62);font-size:14px;font-weight:700;flex-shrink:0}.jex-inline-form-submitted-title{font-weight:600;font-size:var(--jex-font-size, 14px);color:var(--jex-text-main, #0f172a)}.jex-inline-form-submitted-detail{font-size:12px;color:var(--jex-text-muted, #64748b);margin-top:2px}.jex-escalation-confirm{border-left:3px solid var(--jex-primary, #115A62);padding-left:8px}.jex-session-prompt{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 16px;margin:8px 0;text-align:center}.jex-session-prompt-text{font-size:13px;color:var(--jex-text-muted, #64748b)}.jex-session-prompt-btn{padding:8px 16px;border-radius:8px;border:1px solid var(--jex-primary, #115A62);background:transparent;color:var(--jex-primary, #115A62);font-size:13px;font-weight:600;cursor:pointer}.jex-session-prompt-btn:hover{background:color-mix(in srgb,var(--jex-primary) 10%,transparent)}.jex-chat-input-resolved{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 16px;border-top:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-msg-bot, #f1f5f9);text-align:center}.jex-resolved-notice{font-size:13px;font-weight:500;color:var(--jex-text-muted, #64748b)}.jex-resolved-new-btn{padding:10px 20px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:13px;font-weight:600;cursor:pointer;width:100%}.jex-resolved-new-btn:hover{opacity:.9}.jex-confirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:32px 24px;height:100%;text-align:center}.jex-confirmation-icon{width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--jex-primary, #115A62) 15%,transparent);color:var(--jex-primary, #115A62);font-size:22px;display:flex;align-items:center;justify-content:center}.jex-confirmation-title{font-size:18px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0}.jex-confirmation-body{font-size:13px;color:var(--jex-text-muted, #64748b);margin:0}.jex-confirmation-ref{font-size:20px;font-weight:700;letter-spacing:.05em;color:var(--jex-primary, #115A62);background:color-mix(in srgb,var(--jex-primary, #115A62) 10%,transparent);padding:10px 20px;border-radius:10px}.jex-confirmation-hint{font-size:12px;color:var(--jex-text-muted, #64748b);margin:0}.jex-confirmation-done{margin-top:8px;padding:10px 28px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:14px;font-weight:600;cursor:pointer}.jex-home-lookup-link{background:none;border:none;font-size:12px;color:var(--jex-text-muted, #64748b);cursor:pointer;text-decoration:underline;padding:0;align-self:center}.jex-home-lookup{display:flex;gap:8px;width:100%;animation:jexFadeIn .4s .1s ease both}.jex-home-lookup-input{flex:1;padding:10px 14px;border-radius:10px;border:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-input);color:var(--jex-text-main);font-size:13px;font-family:ui-monospace,Cascadia Code,Fira Code,monospace;letter-spacing:.04em;outline:none;transition:border-color .2s}.jex-home-lookup-input::placeholder{font-family:inherit;letter-spacing:.04em;color:var(--jex-text-muted);opacity:.7}.jex-home-lookup-input:focus{border-color:var(--jex-primary, #115A62)}.jex-home-lookup-submit{padding:10px 16px;border-radius:10px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s,opacity .2s;flex-shrink:0}.jex-home-lookup-submit:hover:not(:disabled){background:var(--jex-primary-hover)}.jex-home-lookup-submit:disabled{opacity:.4;cursor:default}.jex-sources-row{margin-top:6px;margin-left:32px;display:flex;flex-direction:column;gap:6px}.jex-sources-toggle{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;background:transparent;border:none;border-radius:6px;cursor:pointer;font-size:11px;color:var(--jex-text-muted, #6b7280);font-family:inherit;align-self:flex-start;transition:background .15s,color .15s}.jex-sources-toggle:hover{background:#0000000a;color:inherit}.jex-sources-icon{font-size:12px;line-height:1}.jex-sources-chevron{display:inline-block;font-size:10px;transition:transform .15s}.jex-sources-chevron--open{transform:rotate(180deg)}.jex-sources-pills{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.jex-source-pill{display:inline-flex;align-items:center;gap:6px;max-width:240px;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.1);background:#0000000a;color:var(--jex-text-muted, #6b7280);font-size:11px;text-decoration:none;cursor:pointer;transition:background .15s,color .15s}.jex-source-pill:hover{background:#00000014;color:inherit}.jex-source-id{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:4px;background:var(--jex-primary, #115A62);color:#fff;font-size:10px;font-weight:600;line-height:1;flex-shrink:0;font-variant-numeric:tabular-nums}.jex-source-type{font-size:10px;flex-shrink:0}.jex-source-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.jex-source-score{opacity:.6;flex-shrink:0;font-variant-numeric:tabular-nums}';
6973
+ function bc(t) {
6962
6974
  const e = document.createElement("style");
6963
- e.textContent = mc, t.appendChild(e);
6975
+ e.textContent = xc, t.appendChild(e);
6964
6976
  }
6965
- const bc = "https://festive-mouse-978.eu-west-1.convex.cloud";
6977
+ const yc = "https://festive-mouse-978.eu-west-1.convex.cloud";
6966
6978
  let Ut = null;
6967
- function yc(t) {
6968
- const e = t ?? bc;
6979
+ function vc(t) {
6980
+ const e = t ?? yc;
6969
6981
  if (!e)
6970
6982
  throw new Error("[jexity] No Convex URL — set VITE_CONVEX_URL at build time or data-convex-url on the script tag");
6971
6983
  return Ut || (Ut = new ca(Ca(e))), Ut;
6972
6984
  }
6973
- function vc(t, e) {
6985
+ function kc(t, e) {
6974
6986
  const n = t.shadowRoot ?? t.attachShadow({ mode: "open" });
6975
6987
  for (; n.firstChild; )
6976
6988
  n.removeChild(n.firstChild);
6977
- xc(n), kt.value = e.source, Ye.value = e.bootstrapToken, N.value = [{ id: "home" }], e.mode === "embedded" && (t.classList.add("jex-mode-embedded"), E.value = !0);
6989
+ bc(n), kt.value = e.source, de.value = e.bootstrapToken, N.value = [{ id: "home" }], e.mode === "embedded" && (t.classList.add("jex-mode-embedded"), E.value = !0);
6978
6990
  const r = document.createElement("div");
6979
- return e.mode === "embedded" && (r.style.cssText = "width:100%;height:100%"), n.appendChild(r), pe(
6980
- /* @__PURE__ */ u(ha, { client: yc(e.convexUrl), children: /* @__PURE__ */ u(gc, { options: e }) }),
6991
+ return e.mode === "embedded" && (r.style.cssText = "width:100%;height:100%"), n.appendChild(r), fe(
6992
+ /* @__PURE__ */ u(ha, { client: vc(e.convexUrl), children: /* @__PURE__ */ u(mc, { options: e }) }),
6981
6993
  r
6982
6994
  ), function() {
6983
- pe(null, r), E.value = !1, kt.value = void 0, Ye.value = void 0, N.value = [{ id: "home" }];
6995
+ fe(null, r), E.value = !1, kt.value = void 0, de.value = void 0, N.value = [{ id: "home" }];
6984
6996
  };
6985
6997
  }
6986
- function kc(t, e, n) {
6987
- const r = vc(t, e), i = /* @__PURE__ */ new Set(), s = E.subscribe((o) => {
6998
+ function _c(t, e, n) {
6999
+ const r = kc(t, e), i = /* @__PURE__ */ new Set(), s = E.subscribe((o) => {
6988
7000
  for (const l of i)
6989
7001
  l(o);
6990
7002
  });
@@ -7011,22 +7023,22 @@ function kc(t, e, n) {
7011
7023
  }
7012
7024
  };
7013
7025
  }
7014
- let Oe = null;
7015
- function _c(t) {
7016
- Oe && Oe.shutdown();
7026
+ let Ne = null;
7027
+ function wc(t) {
7028
+ Ne && Ne.shutdown();
7017
7029
  let e;
7018
7030
  t.container ? e = typeof t.container == "string" ? document.querySelector(t.container) : t.container : (e = document.createElement("div"), e.id = "jexity-chat-widget", document.body.appendChild(e));
7019
- const n = kc(e, t, () => {
7020
- t.container || e.remove(), Oe === n && (Oe = null);
7031
+ const n = _c(e, t, () => {
7032
+ t.container || e.remove(), Ne === n && (Ne = null);
7021
7033
  });
7022
- return Oe = n, n;
7034
+ return Ne = n, n;
7023
7035
  }
7024
- const wc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7036
+ const jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7025
7037
  __proto__: null,
7026
- JexityChat: _c
7038
+ JexityChat: wc
7027
7039
  }, Symbol.toStringTag, { value: "Module" }));
7028
7040
  export {
7029
- Sc as JexityChatProvider,
7030
- Cc as useJexityChat
7041
+ Cc as JexityChatProvider,
7042
+ Rc as useJexityChat
7031
7043
  };
7032
7044
  //# sourceMappingURL=react.mjs.map