@anam-ai/agent-widget 0.1.0-alpha.3 → 0.1.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var $e, k, hi, fi, Ee, Ht, pi, _i, Ei, At, mt, gt, Me = {}, mi = [], an = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, rt = Array.isArray;
1
+ var $e, k, hi, fi, Ee, Ht, pi, _i, Ei, At, mt, gt, Ue = {}, mi = [], an = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, rt = Array.isArray;
2
2
  function ie(t, e) {
3
3
  for (var n in e) t[n] = e[n];
4
4
  return t;
@@ -45,9 +45,9 @@ function Xe() {
45
45
  Xe.__r = 0;
46
46
  }
47
47
  function vi(t, e, n, o, c, a, u, l, g, p, _) {
48
- var d, S, m, y, b, A, w, I = o && o.__k || mi, R = e.length;
49
- for (g = ln(n, e, I, g, R), d = 0; d < R; d++) (m = n.__k[d]) != null && (S = m.__i == -1 ? Me : I[m.__i] || Me, m.__i = d, A = Rt(t, m, S, c, a, u, l, g, p, _), y = m.__e, m.ref && S.ref != m.ref && (S.ref && Nt(S.ref, null, m), _.push(m.ref, m.__c || y, m)), b == null && y != null && (b = y), (w = !!(4 & m.__u)) || S.__k === m.__k ? g = yi(m, g, t, w) : typeof m.type == "function" && A !== void 0 ? g = A : y && (g = y.nextSibling), m.__u &= -7);
50
- return n.__e = b, g;
48
+ var d, S, m, y, A, b, w, I = o && o.__k || mi, R = e.length;
49
+ for (g = ln(n, e, I, g, R), d = 0; d < R; d++) (m = n.__k[d]) != null && (S = m.__i == -1 ? Ue : I[m.__i] || Ue, m.__i = d, b = Rt(t, m, S, c, a, u, l, g, p, _), y = m.__e, m.ref && S.ref != m.ref && (S.ref && Nt(S.ref, null, m), _.push(m.ref, m.__c || y, m)), A == null && y != null && (A = y), (w = !!(4 & m.__u)) || S.__k === m.__k ? g = yi(m, g, t, w) : typeof m.type == "function" && b !== void 0 ? g = b : y && (g = y.nextSibling), m.__u &= -7);
50
+ return n.__e = A, g;
51
51
  }
52
52
  function ln(t, e, n, o, c) {
53
53
  var a, u, l, g, p, _ = n.length, d = _, S = 0;
@@ -107,30 +107,30 @@ function qt(t) {
107
107
  };
108
108
  }
109
109
  function Rt(t, e, n, o, c, a, u, l, g, p) {
110
- var _, d, S, m, y, b, A, w, I, R, M, x, Z, H, ae, ne, re, Q = e.type;
110
+ var _, d, S, m, y, A, b, w, I, R, U, x, Z, H, ae, ne, re, Q = e.type;
111
111
  if (e.constructor !== void 0) return null;
112
112
  128 & n.__u && (g = !!(32 & n.__u), a = [l = e.__e = n.__e]), (_ = k.__b) && _(e);
113
113
  e: if (typeof Q == "function") try {
114
- if (w = e.props, I = "prototype" in Q && Q.prototype.render, R = (_ = Q.contextType) && o[_.__c], M = _ ? R ? R.props.value : _.__ : o, n.__c ? A = (d = e.__c = n.__c).__ = d.__E : (I ? e.__c = d = new Q(w, M) : (e.__c = d = new Oe(w, M), d.constructor = Q, d.render = dn), R && R.sub(d), d.state || (d.state = {}), d.__n = o, S = d.__d = !0, d.__h = [], d._sb = []), I && d.__s == null && (d.__s = d.state), I && Q.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = ie({}, d.__s)), ie(d.__s, Q.getDerivedStateFromProps(w, d.__s))), m = d.props, y = d.state, d.__v = e, S) I && Q.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), I && d.componentDidMount != null && d.__h.push(d.componentDidMount);
114
+ if (w = e.props, I = "prototype" in Q && Q.prototype.render, R = (_ = Q.contextType) && o[_.__c], U = _ ? R ? R.props.value : _.__ : o, n.__c ? b = (d = e.__c = n.__c).__ = d.__E : (I ? e.__c = d = new Q(w, U) : (e.__c = d = new Oe(w, U), d.constructor = Q, d.render = dn), R && R.sub(d), d.state || (d.state = {}), d.__n = o, S = d.__d = !0, d.__h = [], d._sb = []), I && d.__s == null && (d.__s = d.state), I && Q.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = ie({}, d.__s)), ie(d.__s, Q.getDerivedStateFromProps(w, d.__s))), m = d.props, y = d.state, d.__v = e, S) I && Q.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), I && d.componentDidMount != null && d.__h.push(d.componentDidMount);
115
115
  else {
116
- if (I && Q.getDerivedStateFromProps == null && w !== m && d.componentWillReceiveProps != null && d.componentWillReceiveProps(w, M), e.__v == n.__v || !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(w, d.__s, M) === !1) {
116
+ if (I && Q.getDerivedStateFromProps == null && w !== m && d.componentWillReceiveProps != null && d.componentWillReceiveProps(w, U), e.__v == n.__v || !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(w, d.__s, U) === !1) {
117
117
  for (e.__v != n.__v && (d.props = w, d.state = d.__s, d.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(le) {
118
118
  le && (le.__ = e);
119
119
  }), x = 0; x < d._sb.length; x++) d.__h.push(d._sb[x]);
120
120
  d._sb = [], d.__h.length && u.push(d);
121
121
  break e;
122
122
  }
123
- d.componentWillUpdate != null && d.componentWillUpdate(w, d.__s, M), I && d.componentDidUpdate != null && d.__h.push(function() {
124
- d.componentDidUpdate(m, y, b);
123
+ d.componentWillUpdate != null && d.componentWillUpdate(w, d.__s, U), I && d.componentDidUpdate != null && d.__h.push(function() {
124
+ d.componentDidUpdate(m, y, A);
125
125
  });
126
126
  }
127
- if (d.context = M, d.props = w, d.__P = t, d.__e = !1, Z = k.__r, H = 0, I) {
127
+ if (d.context = U, d.props = w, d.__P = t, d.__e = !1, Z = k.__r, H = 0, I) {
128
128
  for (d.state = d.__s, d.__d = !1, Z && Z(e), _ = d.render(d.props, d.state, d.context), ae = 0; ae < d._sb.length; ae++) d.__h.push(d._sb[ae]);
129
129
  d._sb = [];
130
130
  } else do
131
131
  d.__d = !1, Z && Z(e), _ = d.render(d.props, d.state, d.context), d.state = d.__s;
132
132
  while (d.__d && ++H < 25);
133
- d.state = d.__s, d.getChildContext != null && (o = ie(ie({}, o), d.getChildContext())), I && !S && d.getSnapshotBeforeUpdate != null && (b = d.getSnapshotBeforeUpdate(m, y)), ne = _, _ != null && _.type === oe && _.key == null && (ne = wi(_.props.children)), l = vi(t, rt(ne) ? ne : [ne], e, n, o, c, a, u, l, g, p), d.base = e.__e, e.__u &= -161, d.__h.length && u.push(d), A && (d.__E = d.__ = null);
133
+ d.state = d.__s, d.getChildContext != null && (o = ie(ie({}, o), d.getChildContext())), I && !S && d.getSnapshotBeforeUpdate != null && (A = d.getSnapshotBeforeUpdate(m, y)), ne = _, _ != null && _.type === oe && _.key == null && (ne = wi(_.props.children)), l = vi(t, rt(ne) ? ne : [ne], e, n, o, c, a, u, l, g, p), d.base = e.__e, e.__u &= -161, d.__h.length && u.push(d), b && (d.__E = d.__ = null);
134
134
  } catch (le) {
135
135
  if (e.__v = null, g || a != null) if (le.then) {
136
136
  for (e.__u |= g ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
@@ -164,7 +164,7 @@ function wi(t) {
164
164
  return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : rt(t) ? t.map(wi) : ie({}, t);
165
165
  }
166
166
  function un(t, e, n, o, c, a, u, l, g) {
167
- var p, _, d, S, m, y, b, A = n.props || Me, w = e.props, I = e.type;
167
+ var p, _, d, S, m, y, A, b = n.props || Ue, w = e.props, I = e.type;
168
168
  if (I == "svg" ? c = "http://www.w3.org/2000/svg" : I == "math" ? c = "http://www.w3.org/1998/Math/MathML" : c || (c = "http://www.w3.org/1999/xhtml"), a != null) {
169
169
  for (p = 0; p < a.length; p++) if ((m = a[p]) && "setAttribute" in m == !!I && (I ? m.localName == I : m.nodeType == 3)) {
170
170
  t = m, a[p] = null;
@@ -175,20 +175,20 @@ function un(t, e, n, o, c, a, u, l, g) {
175
175
  if (I == null) return document.createTextNode(w);
176
176
  t = document.createElementNS(c, I, w.is && w), l && (k.__m && k.__m(e, a), l = !1), a = null;
177
177
  }
178
- if (I == null) A === w || l && t.data == w || (t.data = w);
178
+ if (I == null) b === w || l && t.data == w || (t.data = w);
179
179
  else {
180
- if (a = a && $e.call(t.childNodes), !l && a != null) for (A = {}, p = 0; p < t.attributes.length; p++) A[(m = t.attributes[p]).name] = m.value;
181
- for (p in A) if (m = A[p], p != "children") {
180
+ if (a = a && $e.call(t.childNodes), !l && a != null) for (b = {}, p = 0; p < t.attributes.length; p++) b[(m = t.attributes[p]).name] = m.value;
181
+ for (p in b) if (m = b[p], p != "children") {
182
182
  if (p == "dangerouslySetInnerHTML") d = m;
183
183
  else if (!(p in w)) {
184
184
  if (p == "value" && "defaultValue" in w || p == "checked" && "defaultChecked" in w) continue;
185
185
  je(t, p, null, m, c);
186
186
  }
187
187
  }
188
- for (p in w) m = w[p], p == "children" ? S = m : p == "dangerouslySetInnerHTML" ? _ = m : p == "value" ? y = m : p == "checked" ? b = m : l && typeof m != "function" || A[p] === m || je(t, p, m, A[p], c);
188
+ for (p in w) m = w[p], p == "children" ? S = m : p == "dangerouslySetInnerHTML" ? _ = m : p == "value" ? y = m : p == "checked" ? A = m : l && typeof m != "function" || b[p] === m || je(t, p, m, b[p], c);
189
189
  if (_) l || d && (_.__html == d.__html || _.__html == t.innerHTML) || (t.innerHTML = _.__html), e.__k = [];
190
190
  else if (d && (t.innerHTML = ""), vi(e.type == "template" ? t.content : t, rt(S) ? S : [S], e, n, o, I == "foreignObject" ? "http://www.w3.org/1999/xhtml" : c, a, u, a ? a[0] : n.__k && be(n, 0), l, g), a != null) for (p = a.length; p--; ) Tt(a[p]);
191
- l || (p = "value", I == "progress" && y == null ? t.removeAttribute("value") : y != null && (y !== t[p] || I == "progress" && !y || I == "option" && y != A[p]) && je(t, p, y, A[p], c), p = "checked", b != null && b != t[p] && je(t, p, b, A[p], c));
191
+ l || (p = "value", I == "progress" && y == null ? t.removeAttribute("value") : y != null && (y !== t[p] || I == "progress" && !y || I == "option" && y != b[p]) && je(t, p, y, b[p], c), p = "checked", A != null && A != t[p] && je(t, p, A, b[p], c));
192
192
  }
193
193
  return t;
194
194
  }
@@ -220,7 +220,7 @@ function dn(t, e, n) {
220
220
  }
221
221
  function ot(t, e, n) {
222
222
  var o, c, a, u;
223
- e == document && (e = document.documentElement), k.__ && k.__(t, e), c = (o = typeof n == "function") ? null : n && n.__k || e.__k, a = [], u = [], Rt(e, t = (!o && n || e).__k = Ce(oe, null, [t]), c || Me, Me, e.namespaceURI, !o && n ? [n] : c ? null : e.firstChild ? $e.call(e.childNodes) : null, a, !o && n ? n : c ? c.__e : e.firstChild, o, u), Si(a, t, u);
223
+ e == document && (e = document.documentElement), k.__ && k.__(t, e), c = (o = typeof n == "function") ? null : n && n.__k || e.__k, a = [], u = [], Rt(e, t = (!o && n || e).__k = Ce(oe, null, [t]), c || Ue, Ue, e.namespaceURI, !o && n ? [n] : c ? null : e.firstChild ? $e.call(e.childNodes) : null, a, !o && n ? n : c ? c.__e : e.firstChild, o, u), Si(a, t, u);
224
224
  }
225
225
  function Ii(t, e) {
226
226
  ot(t, e, Ii);
@@ -334,7 +334,7 @@ function C(t, e, n, o, c, a) {
334
334
  if (typeof t == "function" && (u = t.defaultProps)) for (l in u) g[l] === void 0 && (g[l] = u[l]);
335
335
  return k.vnode && k.vnode(p), p;
336
336
  }
337
- var Ue, P, ft, Kt, Be = 0, Ni = [], F = k, Jt = F.__b, Xt = F.__r, Zt = F.diffed, Qt = F.__c, ei = F.unmount, ti = F.__;
337
+ var Me, P, ft, Jt, Be = 0, Ni = [], F = k, Kt = F.__b, Xt = F.__r, Zt = F.diffed, Qt = F.__c, ei = F.unmount, ti = F.__;
338
338
  function xt(t, e) {
339
339
  F.__h && F.__h(P, t, Be || e), Be = 0;
340
340
  var n = P.__H || (P.__H = { __: [], __h: [] });
@@ -344,7 +344,7 @@ function Ye(t) {
344
344
  return Be = 1, yn(Oi, t);
345
345
  }
346
346
  function yn(t, e, n) {
347
- var o = xt(Ue++, 2);
347
+ var o = xt(Me++, 2);
348
348
  if (o.t = t, !o.__c && (o.__ = [Oi(void 0, e), function(l) {
349
349
  var g = o.__N ? o.__N[0] : o.__[0], p = o.t(g, l);
350
350
  g !== p && (o.__N = [p, o.__[1]], o.__c.setState({}));
@@ -378,7 +378,7 @@ function yn(t, e, n) {
378
378
  return o.__N || o.__;
379
379
  }
380
380
  function yt(t, e) {
381
- var n = xt(Ue++, 3);
381
+ var n = xt(Me++, 3);
382
382
  !F.__s && xi(n.__H, e) && (n.__ = t, n.u = e, P.__H.__h.push(n));
383
383
  }
384
384
  function Qe(t) {
@@ -387,7 +387,7 @@ function Qe(t) {
387
387
  }, []);
388
388
  }
389
389
  function Ie(t, e) {
390
- var n = xt(Ue++, 7);
390
+ var n = xt(Me++, 7);
391
391
  return xi(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
392
392
  }
393
393
  function He(t, e) {
@@ -397,31 +397,31 @@ function He(t, e) {
397
397
  }
398
398
  function Sn() {
399
399
  for (var t; t = Ni.shift(); ) if (t.__P && t.__H) try {
400
- t.__H.__h.forEach(Ke), t.__H.__h.forEach(St), t.__H.__h = [];
400
+ t.__H.__h.forEach(Je), t.__H.__h.forEach(St), t.__H.__h = [];
401
401
  } catch (e) {
402
402
  t.__H.__h = [], F.__e(e, t.__v);
403
403
  }
404
404
  }
405
405
  F.__b = function(t) {
406
- P = null, Jt && Jt(t);
406
+ P = null, Kt && Kt(t);
407
407
  }, F.__ = function(t, e) {
408
408
  t && e.__k && e.__k.__m && (t.__m = e.__k.__m), ti && ti(t, e);
409
409
  }, F.__r = function(t) {
410
- Xt && Xt(t), Ue = 0;
410
+ Xt && Xt(t), Me = 0;
411
411
  var e = (P = t.__c).__H;
412
412
  e && (ft === P ? (e.__h = [], P.__h = [], e.__.forEach(function(n) {
413
413
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
414
- })) : (e.__h.forEach(Ke), e.__h.forEach(St), e.__h = [], Ue = 0)), ft = P;
414
+ })) : (e.__h.forEach(Je), e.__h.forEach(St), e.__h = [], Me = 0)), ft = P;
415
415
  }, F.diffed = function(t) {
416
416
  Zt && Zt(t);
417
417
  var e = t.__c;
418
- e && e.__H && (e.__H.__h.length && (Ni.push(e) !== 1 && Kt === F.requestAnimationFrame || ((Kt = F.requestAnimationFrame) || wn)(Sn)), e.__H.__.forEach(function(n) {
418
+ e && e.__H && (e.__H.__h.length && (Ni.push(e) !== 1 && Jt === F.requestAnimationFrame || ((Jt = F.requestAnimationFrame) || wn)(Sn)), e.__H.__.forEach(function(n) {
419
419
  n.u && (n.__H = n.u), n.u = void 0;
420
420
  })), ft = P = null;
421
421
  }, F.__c = function(t, e) {
422
422
  e.some(function(n) {
423
423
  try {
424
- n.__h.forEach(Ke), n.__h = n.__h.filter(function(o) {
424
+ n.__h.forEach(Je), n.__h = n.__h.filter(function(o) {
425
425
  return !o.__ || St(o);
426
426
  });
427
427
  } catch (o) {
@@ -435,7 +435,7 @@ F.__b = function(t) {
435
435
  var e, n = t.__c;
436
436
  n && n.__H && (n.__H.__.forEach(function(o) {
437
437
  try {
438
- Ke(o);
438
+ Je(o);
439
439
  } catch (c) {
440
440
  e = c;
441
441
  }
@@ -448,7 +448,7 @@ function wn(t) {
448
448
  }, o = setTimeout(n, 35);
449
449
  ii && (e = requestAnimationFrame(n));
450
450
  }
451
- function Ke(t) {
451
+ function Je(t) {
452
452
  var e = P, n = t.__c;
453
453
  typeof n == "function" && (t.__c = void 0, n()), P = e;
454
454
  }
@@ -473,7 +473,7 @@ function st() {
473
473
  var n = ke;
474
474
  for (ke = void 0, wt++; n !== void 0; ) {
475
475
  var o = n.o;
476
- if (n.o = void 0, n.f &= -3, !(8 & n.f) && Mi(n)) try {
476
+ if (n.o = void 0, n.f &= -3, !(8 & n.f) && Ui(n)) try {
477
477
  n.c();
478
478
  } catch (c) {
479
479
  e || (t = c, e = !0);
@@ -584,11 +584,11 @@ Object.defineProperty(j.prototype, "value", { get: function() {
584
584
  function Y(t, e) {
585
585
  return new j(t, e);
586
586
  }
587
- function Mi(t) {
587
+ function Ui(t) {
588
588
  for (var e = t.s; e !== void 0; e = e.n) if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i) return !0;
589
589
  return !1;
590
590
  }
591
- function Ui(t) {
591
+ function Mi(t) {
592
592
  for (var e = t.s; e !== void 0; e = e.n) {
593
593
  var n = e.S.n;
594
594
  if (n !== void 0 && (e.r = n), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -611,11 +611,11 @@ ge.prototype = new j();
611
611
  ge.prototype.h = function() {
612
612
  if (this.f &= -3, 1 & this.f) return !1;
613
613
  if ((36 & this.f) == 32 || (this.f &= -5, this.g === et)) return !0;
614
- if (this.g = et, this.f |= 1, this.i > 0 && !Mi(this))
614
+ if (this.g = et, this.f |= 1, this.i > 0 && !Ui(this))
615
615
  return this.f &= -2, !0;
616
616
  var t = O;
617
617
  try {
618
- Ui(this), O = this;
618
+ Mi(this), O = this;
619
619
  var e = this.x();
620
620
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
621
621
  } catch (n) {
@@ -689,7 +689,7 @@ Ae.prototype.c = function() {
689
689
  };
690
690
  Ae.prototype.S = function() {
691
691
  if (1 & this.f) throw new Error("Cycle detected");
692
- this.f |= 1, this.f &= -9, Li(this), Ui(this), pe++;
692
+ this.f |= 1, this.f &= -9, Li(this), Mi(this), pe++;
693
693
  var t = O;
694
694
  return O = this, bn.bind(this, t);
695
695
  };
@@ -920,38 +920,38 @@ function On() {
920
920
  var y = m.length;
921
921
  if (y % 4 > 0)
922
922
  throw new Error("Invalid string. Length must be a multiple of 4");
923
- var b = m.indexOf("=");
924
- b === -1 && (b = y);
925
- var A = b === y ? 0 : 4 - b % 4;
926
- return [b, A];
923
+ var A = m.indexOf("=");
924
+ A === -1 && (A = y);
925
+ var b = A === y ? 0 : 4 - A % 4;
926
+ return [A, b];
927
927
  }
928
928
  function l(m) {
929
- var y = u(m), b = y[0], A = y[1];
930
- return (b + A) * 3 / 4 - A;
929
+ var y = u(m), A = y[0], b = y[1];
930
+ return (A + b) * 3 / 4 - b;
931
931
  }
932
- function g(m, y, b) {
933
- return (y + b) * 3 / 4 - b;
932
+ function g(m, y, A) {
933
+ return (y + A) * 3 / 4 - A;
934
934
  }
935
935
  function p(m) {
936
- var y, b = u(m), A = b[0], w = b[1], I = new n(g(m, A, w)), R = 0, M = w > 0 ? A - 4 : A, x;
937
- for (x = 0; x < M; x += 4)
936
+ var y, A = u(m), b = A[0], w = A[1], I = new n(g(m, b, w)), R = 0, U = w > 0 ? b - 4 : b, x;
937
+ for (x = 0; x < U; x += 4)
938
938
  y = e[m.charCodeAt(x)] << 18 | e[m.charCodeAt(x + 1)] << 12 | e[m.charCodeAt(x + 2)] << 6 | e[m.charCodeAt(x + 3)], I[R++] = y >> 16 & 255, I[R++] = y >> 8 & 255, I[R++] = y & 255;
939
939
  return w === 2 && (y = e[m.charCodeAt(x)] << 2 | e[m.charCodeAt(x + 1)] >> 4, I[R++] = y & 255), w === 1 && (y = e[m.charCodeAt(x)] << 10 | e[m.charCodeAt(x + 1)] << 4 | e[m.charCodeAt(x + 2)] >> 2, I[R++] = y >> 8 & 255, I[R++] = y & 255), I;
940
940
  }
941
941
  function _(m) {
942
942
  return t[m >> 18 & 63] + t[m >> 12 & 63] + t[m >> 6 & 63] + t[m & 63];
943
943
  }
944
- function d(m, y, b) {
945
- for (var A, w = [], I = y; I < b; I += 3)
946
- A = (m[I] << 16 & 16711680) + (m[I + 1] << 8 & 65280) + (m[I + 2] & 255), w.push(_(A));
944
+ function d(m, y, A) {
945
+ for (var b, w = [], I = y; I < A; I += 3)
946
+ b = (m[I] << 16 & 16711680) + (m[I + 1] << 8 & 65280) + (m[I + 2] & 255), w.push(_(b));
947
947
  return w.join("");
948
948
  }
949
949
  function S(m) {
950
- for (var y, b = m.length, A = b % 3, w = [], I = 16383, R = 0, M = b - A; R < M; R += I)
951
- w.push(d(m, R, R + I > M ? M : R + I));
952
- return A === 1 ? (y = m[b - 1], w.push(
950
+ for (var y, A = m.length, b = A % 3, w = [], I = 16383, R = 0, U = A - b; R < U; R += I)
951
+ w.push(d(m, R, R + I > U ? U : R + I));
952
+ return b === 1 ? (y = m[A - 1], w.push(
953
953
  t[y >> 2] + t[y << 4 & 63] + "=="
954
- )) : A === 2 && (y = (m[b - 2] << 8) + m[b - 1], w.push(
954
+ )) : b === 2 && (y = (m[A - 2] << 8) + m[A - 1], w.push(
955
955
  t[y >> 10] + t[y >> 4 & 63] + t[y << 2 & 63] + "="
956
956
  )), w.join("");
957
957
  }
@@ -975,12 +975,12 @@ function kn() {
975
975
  }
976
976
  return (m ? -1 : 1) * u * Math.pow(2, a - o);
977
977
  }, qe.write = function(t, e, n, o, c, a) {
978
- var u, l, g, p = a * 8 - c - 1, _ = (1 << p) - 1, d = _ >> 1, S = c === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = o ? 0 : a - 1, y = o ? 1 : -1, b = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
978
+ var u, l, g, p = a * 8 - c - 1, _ = (1 << p) - 1, d = _ >> 1, S = c === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = o ? 0 : a - 1, y = o ? 1 : -1, A = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
979
979
  for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (l = isNaN(e) ? 1 : 0, u = _) : (u = Math.floor(Math.log(e) / Math.LN2), e * (g = Math.pow(2, -u)) < 1 && (u--, g *= 2), u + d >= 1 ? e += S / g : e += S * Math.pow(2, 1 - d), e * g >= 2 && (u++, g /= 2), u + d >= _ ? (l = 0, u = _) : u + d >= 1 ? (l = (e * g - 1) * Math.pow(2, c), u = u + d) : (l = e * Math.pow(2, d - 1) * Math.pow(2, c), u = 0)); c >= 8; t[n + m] = l & 255, m += y, l /= 256, c -= 8)
980
980
  ;
981
981
  for (u = u << c | l, p += c; p > 0; t[n + m] = u & 255, m += y, u /= 256, p -= 8)
982
982
  ;
983
- t[n + m - y] |= b * 128;
983
+ t[n + m - y] |= A * 128;
984
984
  }), qe;
985
985
  }
986
986
  var si;
@@ -1042,7 +1042,7 @@ function Dn() {
1042
1042
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof s
1043
1043
  );
1044
1044
  if (ee(s, ArrayBuffer) || s && ee(s.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ee(s, SharedArrayBuffer) || s && ee(s.buffer, SharedArrayBuffer)))
1045
- return b(s, i, r);
1045
+ return A(s, i, r);
1046
1046
  if (typeof s == "number")
1047
1047
  throw new TypeError(
1048
1048
  'The "value" argument must not be of type number. Received type number'
@@ -1050,7 +1050,7 @@ function Dn() {
1050
1050
  const h = s.valueOf && s.valueOf();
1051
1051
  if (h != null && h !== s)
1052
1052
  return l.from(h, i, r);
1053
- const f = A(s);
1053
+ const f = b(s);
1054
1054
  if (f) return f;
1055
1055
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof s[Symbol.toPrimitive] == "function")
1056
1056
  return l.from(s[Symbol.toPrimitive]("string"), i, r);
@@ -1098,11 +1098,11 @@ function Dn() {
1098
1098
  function y(s) {
1099
1099
  if (ee(s, Uint8Array)) {
1100
1100
  const i = new Uint8Array(s);
1101
- return b(i.buffer, i.byteOffset, i.byteLength);
1101
+ return A(i.buffer, i.byteOffset, i.byteLength);
1102
1102
  }
1103
1103
  return m(s);
1104
1104
  }
1105
- function b(s, i, r) {
1105
+ function A(s, i, r) {
1106
1106
  if (i < 0 || s.byteLength < i)
1107
1107
  throw new RangeError('"offset" is outside of buffer bounds');
1108
1108
  if (s.byteLength < i + (r || 0))
@@ -1110,7 +1110,7 @@ function Dn() {
1110
1110
  let h;
1111
1111
  return i === void 0 && r === void 0 ? h = new Uint8Array(s) : r === void 0 ? h = new Uint8Array(s, i) : h = new Uint8Array(s, i, r), Object.setPrototypeOf(h, l.prototype), h;
1112
1112
  }
1113
- function A(s) {
1113
+ function b(s) {
1114
1114
  if (l.isBuffer(s)) {
1115
1115
  const i = w(s.length) | 0, r = u(i);
1116
1116
  return r.length === 0 || s.copy(r, 0, 0, i), r;
@@ -1224,7 +1224,7 @@ function Dn() {
1224
1224
  }
1225
1225
  }
1226
1226
  l.byteLength = R;
1227
- function M(s, i, r) {
1227
+ function U(s, i, r) {
1228
1228
  let h = !1;
1229
1229
  if ((i === void 0 || i < 0) && (i = 0), i > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0, i >>>= 0, r <= i))
1230
1230
  return "";
@@ -1234,12 +1234,12 @@ function Dn() {
1234
1234
  return Xi(this, i, r);
1235
1235
  case "utf8":
1236
1236
  case "utf-8":
1237
- return Mt(this, i, r);
1237
+ return Ut(this, i, r);
1238
1238
  case "ascii":
1239
- return Ki(this, i, r);
1239
+ return Ji(this, i, r);
1240
1240
  case "latin1":
1241
1241
  case "binary":
1242
- return Ji(this, i, r);
1242
+ return Ki(this, i, r);
1243
1243
  case "base64":
1244
1244
  return qi(this, i, r);
1245
1245
  case "ucs2":
@@ -1280,7 +1280,7 @@ function Dn() {
1280
1280
  return this;
1281
1281
  }, l.prototype.toString = function() {
1282
1282
  const i = this.length;
1283
- return i === 0 ? "" : arguments.length === 0 ? Mt(this, 0, i) : M.apply(this, arguments);
1283
+ return i === 0 ? "" : arguments.length === 0 ? Ut(this, 0, i) : U.apply(this, arguments);
1284
1284
  }, l.prototype.toLocaleString = l.prototype.toString, l.prototype.equals = function(i) {
1285
1285
  if (!l.isBuffer(i)) throw new TypeError("Argument must be a Buffer");
1286
1286
  return this === i ? !0 : l.compare(this, i) === 0;
@@ -1303,10 +1303,10 @@ function Dn() {
1303
1303
  return 1;
1304
1304
  if (r >>>= 0, h >>>= 0, f >>>= 0, E >>>= 0, this === i) return 0;
1305
1305
  let v = E - f, T = h - r;
1306
- const B = Math.min(v, T), U = this.slice(f, E), L = i.slice(r, h);
1306
+ const B = Math.min(v, T), M = this.slice(f, E), L = i.slice(r, h);
1307
1307
  for (let D = 0; D < B; ++D)
1308
- if (U[D] !== L[D]) {
1309
- v = U[D], T = L[D];
1308
+ if (M[D] !== L[D]) {
1309
+ v = M[D], T = L[D];
1310
1310
  break;
1311
1311
  }
1312
1312
  return v < T ? -1 : T < v ? 1 : 0;
@@ -1335,23 +1335,23 @@ function Dn() {
1335
1335
  function B(L, D) {
1336
1336
  return E === 1 ? L[D] : L.readUInt16BE(D * E);
1337
1337
  }
1338
- let U;
1338
+ let M;
1339
1339
  if (f) {
1340
1340
  let L = -1;
1341
- for (U = r; U < v; U++)
1342
- if (B(s, U) === B(i, L === -1 ? 0 : U - L)) {
1343
- if (L === -1 && (L = U), U - L + 1 === T) return L * E;
1341
+ for (M = r; M < v; M++)
1342
+ if (B(s, M) === B(i, L === -1 ? 0 : M - L)) {
1343
+ if (L === -1 && (L = M), M - L + 1 === T) return L * E;
1344
1344
  } else
1345
- L !== -1 && (U -= U - L), L = -1;
1345
+ L !== -1 && (M -= M - L), L = -1;
1346
1346
  } else
1347
- for (r + T > v && (r = v - T), U = r; U >= 0; U--) {
1347
+ for (r + T > v && (r = v - T), M = r; M >= 0; M--) {
1348
1348
  let L = !0;
1349
1349
  for (let D = 0; D < T; D++)
1350
- if (B(s, U + D) !== B(i, D)) {
1350
+ if (B(s, M + D) !== B(i, D)) {
1351
1351
  L = !1;
1352
1352
  break;
1353
1353
  }
1354
- if (L) return U;
1354
+ if (L) return M;
1355
1355
  }
1356
1356
  return -1;
1357
1357
  }
@@ -1435,7 +1435,7 @@ function Dn() {
1435
1435
  function qi(s, i, r) {
1436
1436
  return i === 0 && r === s.length ? e.fromByteArray(s) : e.fromByteArray(s.slice(i, r));
1437
1437
  }
1438
- function Mt(s, i, r) {
1438
+ function Ut(s, i, r) {
1439
1439
  r = Math.min(s.length, r);
1440
1440
  const h = [];
1441
1441
  let f = i;
@@ -1443,7 +1443,7 @@ function Dn() {
1443
1443
  const E = s[f];
1444
1444
  let v = null, T = E > 239 ? 4 : E > 223 ? 3 : E > 191 ? 2 : 1;
1445
1445
  if (f + T <= r) {
1446
- let B, U, L, D;
1446
+ let B, M, L, D;
1447
1447
  switch (T) {
1448
1448
  case 1:
1449
1449
  E < 128 && (v = E);
@@ -1452,37 +1452,37 @@ function Dn() {
1452
1452
  B = s[f + 1], (B & 192) === 128 && (D = (E & 31) << 6 | B & 63, D > 127 && (v = D));
1453
1453
  break;
1454
1454
  case 3:
1455
- B = s[f + 1], U = s[f + 2], (B & 192) === 128 && (U & 192) === 128 && (D = (E & 15) << 12 | (B & 63) << 6 | U & 63, D > 2047 && (D < 55296 || D > 57343) && (v = D));
1455
+ B = s[f + 1], M = s[f + 2], (B & 192) === 128 && (M & 192) === 128 && (D = (E & 15) << 12 | (B & 63) << 6 | M & 63, D > 2047 && (D < 55296 || D > 57343) && (v = D));
1456
1456
  break;
1457
1457
  case 4:
1458
- B = s[f + 1], U = s[f + 2], L = s[f + 3], (B & 192) === 128 && (U & 192) === 128 && (L & 192) === 128 && (D = (E & 15) << 18 | (B & 63) << 12 | (U & 63) << 6 | L & 63, D > 65535 && D < 1114112 && (v = D));
1458
+ B = s[f + 1], M = s[f + 2], L = s[f + 3], (B & 192) === 128 && (M & 192) === 128 && (L & 192) === 128 && (D = (E & 15) << 18 | (B & 63) << 12 | (M & 63) << 6 | L & 63, D > 65535 && D < 1114112 && (v = D));
1459
1459
  }
1460
1460
  }
1461
1461
  v === null ? (v = 65533, T = 1) : v > 65535 && (v -= 65536, h.push(v >>> 10 & 1023 | 55296), v = 56320 | v & 1023), h.push(v), f += T;
1462
1462
  }
1463
1463
  return Yi(h);
1464
1464
  }
1465
- const Ut = 4096;
1465
+ const Mt = 4096;
1466
1466
  function Yi(s) {
1467
1467
  const i = s.length;
1468
- if (i <= Ut)
1468
+ if (i <= Mt)
1469
1469
  return String.fromCharCode.apply(String, s);
1470
1470
  let r = "", h = 0;
1471
1471
  for (; h < i; )
1472
1472
  r += String.fromCharCode.apply(
1473
1473
  String,
1474
- s.slice(h, h += Ut)
1474
+ s.slice(h, h += Mt)
1475
1475
  );
1476
1476
  return r;
1477
1477
  }
1478
- function Ki(s, i, r) {
1478
+ function Ji(s, i, r) {
1479
1479
  let h = "";
1480
1480
  r = Math.min(s.length, r);
1481
1481
  for (let f = i; f < r; ++f)
1482
1482
  h += String.fromCharCode(s[f] & 127);
1483
1483
  return h;
1484
1484
  }
1485
- function Ji(s, i, r) {
1485
+ function Ki(s, i, r) {
1486
1486
  let h = "";
1487
1487
  r = Math.min(s.length, r);
1488
1488
  for (let f = i; f < r; ++f)
@@ -1924,8 +1924,8 @@ function Dn() {
1924
1924
  }
1925
1925
  })(_t)), _t;
1926
1926
  }
1927
- var Mn = Dn();
1928
- const Un = "https://api.anam.ai", Bn = "/v1", ji = {
1927
+ var Un = Dn();
1928
+ const Mn = "https://api.anam.ai", Bn = "/v1", ji = {
1929
1929
  client: "js-sdk",
1930
1930
  version: "4.8.0"
1931
1931
  };
@@ -2007,13 +2007,13 @@ const Se = (t) => {
2007
2007
  issues: []
2008
2008
  }, l = ((n = a["inbound-rtp"]) === null || n === void 0 ? void 0 : n.filter((d) => d.kind === "video")) || [];
2009
2009
  l.length > 0 && (u.personaVideoStream = [], l.forEach((d) => {
2010
- var S, m, y, b, A;
2010
+ var S, m, y, A, b;
2011
2011
  const w = {
2012
2012
  framesReceived: (S = d.framesReceived) !== null && S !== void 0 ? S : "unknown",
2013
2013
  framesDropped: (m = d.framesDropped) !== null && m !== void 0 ? m : "unknown",
2014
2014
  framesPerSecond: (y = d.framesPerSecond) !== null && y !== void 0 ? y : "unknown",
2015
- packetsReceived: (b = d.packetsReceived) !== null && b !== void 0 ? b : "unknown",
2016
- packetsLost: (A = d.packetsLost) !== null && A !== void 0 ? A : "unknown",
2015
+ packetsReceived: (A = d.packetsReceived) !== null && A !== void 0 ? A : "unknown",
2016
+ packetsLost: (b = d.packetsLost) !== null && b !== void 0 ? b : "unknown",
2017
2017
  resolution: d.frameWidth && d.frameHeight ? `${d.frameWidth}x${d.frameHeight}` : void 0,
2018
2018
  jitter: d.jitter !== void 0 ? d.jitter : void 0
2019
2019
  };
@@ -2022,14 +2022,14 @@ const Se = (t) => {
2022
2022
  const g = ((o = a["inbound-rtp"]) === null || o === void 0 ? void 0 : o.filter((d) => d.kind === "audio")) || [];
2023
2023
  g.length > 0 && (u.personaAudioStream = [], g.forEach((d) => {
2024
2024
  var S, m, y;
2025
- const b = {
2025
+ const A = {
2026
2026
  packetsReceived: (S = d.packetsReceived) !== null && S !== void 0 ? S : "unknown",
2027
2027
  packetsLost: (m = d.packetsLost) !== null && m !== void 0 ? m : "unknown",
2028
2028
  audioLevel: (y = d.audioLevel) !== null && y !== void 0 ? y : "unknown",
2029
2029
  jitter: d.jitter !== void 0 ? d.jitter : void 0,
2030
2030
  totalAudioEnergy: d.totalAudioEnergy !== void 0 ? d.totalAudioEnergy : void 0
2031
2031
  };
2032
- u.personaAudioStream.push(b);
2032
+ u.personaAudioStream.push(A);
2033
2033
  }));
2034
2034
  const p = ((c = a["outbound-rtp"]) === null || c === void 0 ? void 0 : c.filter((d) => d.kind === "audio")) || [];
2035
2035
  p.length > 0 && (u.userAudioInput = [], p.forEach((d) => {
@@ -2127,10 +2127,10 @@ var N;
2127
2127
  (function(t) {
2128
2128
  t.MESSAGE_HISTORY_UPDATED = "MESSAGE_HISTORY_UPDATED", t.MESSAGE_STREAM_EVENT_RECEIVED = "MESSAGE_STREAM_EVENT_RECEIVED", t.CONNECTION_ESTABLISHED = "CONNECTION_ESTABLISHED", t.CONNECTION_CLOSED = "CONNECTION_CLOSED", t.INPUT_AUDIO_STREAM_STARTED = "INPUT_AUDIO_STREAM_STARTED", t.VIDEO_STREAM_STARTED = "VIDEO_STREAM_STARTED", t.VIDEO_PLAY_STARTED = "VIDEO_PLAY_STARTED", t.AUDIO_STREAM_STARTED = "AUDIO_STREAM_STARTED", t.TALK_STREAM_INTERRUPTED = "TALK_STREAM_INTERRUPTED", t.SESSION_READY = "SESSION_READY", t.SERVER_WARNING = "SERVER_WARNING", t.MIC_PERMISSION_PENDING = "MIC_PERMISSION_PENDING", t.MIC_PERMISSION_GRANTED = "MIC_PERMISSION_GRANTED", t.MIC_PERMISSION_DENIED = "MIC_PERMISSION_DENIED", t.INPUT_AUDIO_DEVICE_CHANGED = "INPUT_AUDIO_DEVICE_CHANGED", t.CLIENT_TOOL_EVENT_RECEIVED = "CLIENT_TOOL_EVENT_RECEIVED", t.REASONING_HISTORY_UPDATED = "REASONING_HISTORY_UPDATED", t.REASONING_STREAM_EVENT_RECEIVED = "REASONING_STREAM_EVENT_RECEIVED";
2129
2129
  })(N || (N = {}));
2130
- var J;
2130
+ var K;
2131
2131
  (function(t) {
2132
2132
  t.WEB_SOCKET_OPEN = "WEB_SOCKET_OPEN", t.SIGNAL_MESSAGE_RECEIVED = "SIGNAL_MESSAGE_RECEIVED", t.WEBRTC_CHAT_MESSAGE_RECEIVED = "WEBRTC_CHAT_MESSAGE_RECEIVED", t.WEBRTC_CLIENT_TOOL_EVENT_RECEIVED = "WEBRTC_CLIENT_TOOL_EVENT_RECEIVED", t.WEBRTC_REASONING_TEXT_MESSAGE_RECEIVED = "WEBRTC_REASONING_TEXT_MESSAGE_RECEIVED";
2133
- })(J || (J = {}));
2133
+ })(K || (K = {}));
2134
2134
  var _e;
2135
2135
  (function(t) {
2136
2136
  t.NORMAL = "CONNECTION_CLOSED_CODE_NORMAL", t.MICROPHONE_PERMISSION_DENIED = "CONNECTION_CLOSED_CODE_MICROPHONE_PERMISSION_DENIED", t.SIGNALLING_CLIENT_CONNECTION_FAILURE = "CONNECTION_CLOSED_CODE_SIGNALLING_CLIENT_CONNECTION_FAILURE", t.WEBRTC_FAILURE = "CONNECTION_CLOSED_CODE_WEBRTC_FAILURE", t.SERVER_CLOSED_CONNECTION = "CONNECTION_CLOSED_CODE_SERVER_CLOSED_CONNECTION";
@@ -2215,13 +2215,13 @@ class zn {
2215
2215
  if (this.heartbeatIntervalSeconds = d || Hn, this.maxWsReconnectionAttempts = S || Wn, !m.baseUrl)
2216
2216
  throw new Error("Signalling Client: baseUrl is required");
2217
2217
  if (!((u = this.apiGatewayConfig) === null || u === void 0) && u.enabled && (!((l = this.apiGatewayConfig) === null || l === void 0) && l.baseUrl)) {
2218
- const y = new URL(this.apiGatewayConfig.baseUrl), b = (g = this.apiGatewayConfig.wsPath) !== null && g !== void 0 ? g : "/ws";
2219
- y.protocol = y.protocol.replace("http", "ws"), y.pathname = b, this.url = y;
2220
- const A = m.protocol || "https", w = A === "http" ? "ws" : "wss", I = `${A}://${m.baseUrl}`, R = (p = m.signallingPath) !== null && p !== void 0 ? p : "/ws", M = new URL(I);
2221
- M.protocol = w === "ws" ? "ws:" : "wss:", m.port && (M.port = m.port), M.pathname = R, M.searchParams.append("session_id", e), this.url.searchParams.append("target_url", M.href);
2218
+ const y = new URL(this.apiGatewayConfig.baseUrl), A = (g = this.apiGatewayConfig.wsPath) !== null && g !== void 0 ? g : "/ws";
2219
+ y.protocol = y.protocol.replace("http", "ws"), y.pathname = A, this.url = y;
2220
+ const b = m.protocol || "https", w = b === "http" ? "ws" : "wss", I = `${b}://${m.baseUrl}`, R = (p = m.signallingPath) !== null && p !== void 0 ? p : "/ws", U = new URL(I);
2221
+ U.protocol = w === "ws" ? "ws:" : "wss:", m.port && (U.port = m.port), U.pathname = R, U.searchParams.append("session_id", e), this.url.searchParams.append("target_url", U.href);
2222
2222
  } else {
2223
- const b = `${m.protocol || "https"}://${m.baseUrl}`;
2224
- this.url = new URL(b), this.url.protocol = m.protocol === "http" ? "ws:" : "wss:", m.port && (this.url.port = m.port), this.url.pathname = (_ = m.signallingPath) !== null && _ !== void 0 ? _ : "/ws", this.url.searchParams.append("session_id", e);
2223
+ const A = `${m.protocol || "https"}://${m.baseUrl}`;
2224
+ this.url = new URL(A), this.url.protocol = m.protocol === "http" ? "ws:" : "wss:", m.port && (this.url.port = m.port), this.url.pathname = (_ = m.signallingPath) !== null && _ !== void 0 ? _ : "/ws", this.url.searchParams.append("session_id", e);
2225
2225
  }
2226
2226
  }
2227
2227
  stop() {
@@ -2299,7 +2299,7 @@ class zn {
2299
2299
  if (!this.socket)
2300
2300
  throw new Error("SignallingClient - onOpen: socket is null");
2301
2301
  try {
2302
- this.wsConnectionAttempts = 0, this.flushSendingBuffer(), this.socket.onmessage = this.onMessage.bind(this), this.startSendingHeartBeats(), this.internalEventEmitter.emit(J.WEB_SOCKET_OPEN);
2302
+ this.wsConnectionAttempts = 0, this.flushSendingBuffer(), this.socket.onmessage = this.onMessage.bind(this), this.startSendingHeartBeats(), this.internalEventEmitter.emit(K.WEB_SOCKET_OPEN);
2303
2303
  } catch (e) {
2304
2304
  console.error("SignallingClient - onOpen: error in onOpen", e), this.publicEventEmitter.emit(N.CONNECTION_CLOSED, _e.SIGNALLING_CLIENT_CONNECTION_FAILURE);
2305
2305
  }
@@ -2325,7 +2325,7 @@ class zn {
2325
2325
  onMessage(e) {
2326
2326
  return we(this, void 0, void 0, function* () {
2327
2327
  const n = JSON.parse(e.data);
2328
- this.internalEventEmitter.emit(J.SIGNAL_MESSAGE_RECEIVED, n);
2328
+ this.internalEventEmitter.emit(K.SIGNAL_MESSAGE_RECEIVED, n);
2329
2329
  });
2330
2330
  }
2331
2331
  startSendingHeartBeats() {
@@ -2377,7 +2377,7 @@ class Yn {
2377
2377
  constructor(e, n, o) {
2378
2378
  if (!e && !n)
2379
2379
  throw new Error("Either sessionToken or apiKey must be provided");
2380
- this.sessionToken = e || null, this.apiKey = n || null, this.baseUrl = o?.baseUrl || Un, this.apiVersion = o?.apiVersion || Bn, this.apiGatewayConfig = o?.apiGateway || void 0;
2380
+ this.sessionToken = e || null, this.apiKey = n || null, this.baseUrl = o?.baseUrl || Mn, this.apiVersion = o?.apiVersion || Bn, this.apiGatewayConfig = o?.apiGateway || void 0;
2381
2381
  }
2382
2382
  /**
2383
2383
  * Builds URL and headers for a request, applying API Gateway configuration if enabled
@@ -2466,7 +2466,7 @@ class Yn {
2466
2466
  return `${this.baseUrl}${this.apiVersion}`;
2467
2467
  }
2468
2468
  }
2469
- var Kn = function(t, e, n, o) {
2469
+ var Jn = function(t, e, n, o) {
2470
2470
  function c(a) {
2471
2471
  return a instanceof n ? a : new n(function(u) {
2472
2472
  u(a);
@@ -2493,12 +2493,12 @@ var Kn = function(t, e, n, o) {
2493
2493
  p((o = o.apply(t, e || [])).next());
2494
2494
  });
2495
2495
  };
2496
- class Jn {
2496
+ class Kn {
2497
2497
  constructor(e, n, o) {
2498
2498
  this.baseUrl = e, this.sessionId = n, this.apiGatewayConfig = o;
2499
2499
  }
2500
2500
  sendTalkCommand(e) {
2501
- return Kn(this, void 0, void 0, function* () {
2501
+ return Jn(this, void 0, void 0, function* () {
2502
2502
  var n, o;
2503
2503
  try {
2504
2504
  let c, a = {
@@ -2544,7 +2544,7 @@ class Xn {
2544
2544
  }
2545
2545
  class Zn {
2546
2546
  constructor(e, n) {
2547
- this.messages = [], this.publicEventEmitter = e, this.internalEventEmitter = n, this.internalEventEmitter.addListener(J.WEBRTC_CHAT_MESSAGE_RECEIVED, this.processWebRtcTextMessageEvent.bind(this));
2547
+ this.messages = [], this.publicEventEmitter = e, this.internalEventEmitter = n, this.internalEventEmitter.addListener(K.WEBRTC_CHAT_MESSAGE_RECEIVED, this.processWebRtcTextMessageEvent.bind(this));
2548
2548
  }
2549
2549
  webRtcTextMessageEventToMessageStreamEvent(e) {
2550
2550
  return {
@@ -2643,10 +2643,10 @@ var Et = function(t, e, n, o) {
2643
2643
  };
2644
2644
  class er {
2645
2645
  constructor(e, n, o) {
2646
- this.state = z.UNSTARTED, this.correlationId = e, this.internalEventEmitter = n, this.signallingClient = o, this.internalEventEmitter.addListener(J.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this));
2646
+ this.state = z.UNSTARTED, this.correlationId = e, this.internalEventEmitter = n, this.signallingClient = o, this.internalEventEmitter.addListener(K.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this));
2647
2647
  }
2648
2648
  onDeactivate() {
2649
- this.internalEventEmitter.removeListener(J.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this));
2649
+ this.internalEventEmitter.removeListener(K.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this));
2650
2650
  }
2651
2651
  onSignalMessage(e) {
2652
2652
  return Et(this, void 0, void 0, function* () {
@@ -2695,7 +2695,7 @@ class er {
2695
2695
  return this.state;
2696
2696
  }
2697
2697
  }
2698
- var K = function(t, e, n, o) {
2698
+ var J = function(t, e, n, o) {
2699
2699
  function c(a) {
2700
2700
  return a instanceof n ? a : new n(function(u) {
2701
2701
  u(a);
@@ -2731,7 +2731,7 @@ class rr {
2731
2731
  permissionState: fe.NOT_REQUESTED
2732
2732
  }, this.successMetricPoller = null, this.successMetricFired = !1, this.showPeerConnectionStatsReport = !1, this.peerConnectionStatsReportOutputFormat = "console", this.statsCollectionInterval = null, this.agentAudioInputStream = null, this.publicEventEmitter = o, this.internalEventEmitter = c, this.apiGatewayConfig = n.apiGateway;
2733
2733
  const { inputAudio: p } = n;
2734
- this.inputAudioState = p.inputAudioState, n.inputAudio.userProvidedMediaStream && (this.inputAudioStream = n.inputAudio.userProvidedMediaStream), this.disableInputAudio = n.inputAudio.disableInputAudio === !0, this.internalEventEmitter.addListener(J.WEB_SOCKET_OPEN, this.onSignallingClientConnected.bind(this)), this.internalEventEmitter.addListener(J.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this)), this.iceServers = n.iceServers, this.signallingClient = new zn(e, n.signalling, this.publicEventEmitter, this.internalEventEmitter, this.apiGatewayConfig), this.engineApiRestClient = new Jn(n.engine.baseUrl, e, this.apiGatewayConfig), this.audioDeviceId = n.inputAudio.audioDeviceId, this.showPeerConnectionStatsReport = (u = (a = n.metrics) === null || a === void 0 ? void 0 : a.showPeerConnectionStatsReport) !== null && u !== void 0 ? u : !1, this.peerConnectionStatsReportOutputFormat = (g = (l = n.metrics) === null || l === void 0 ? void 0 : l.peerConnectionStatsReportOutputFormat) !== null && g !== void 0 ? g : "console";
2734
+ this.inputAudioState = p.inputAudioState, n.inputAudio.userProvidedMediaStream && (this.inputAudioStream = n.inputAudio.userProvidedMediaStream), this.disableInputAudio = n.inputAudio.disableInputAudio === !0, this.internalEventEmitter.addListener(K.WEB_SOCKET_OPEN, this.onSignallingClientConnected.bind(this)), this.internalEventEmitter.addListener(K.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this)), this.iceServers = n.iceServers, this.signallingClient = new zn(e, n.signalling, this.publicEventEmitter, this.internalEventEmitter, this.apiGatewayConfig), this.engineApiRestClient = new Kn(n.engine.baseUrl, e, this.apiGatewayConfig), this.audioDeviceId = n.inputAudio.audioDeviceId, this.showPeerConnectionStatsReport = (u = (a = n.metrics) === null || a === void 0 ? void 0 : a.showPeerConnectionStatsReport) !== null && u !== void 0 ? u : !1, this.peerConnectionStatsReportOutputFormat = (g = (l = n.metrics) === null || l === void 0 ? void 0 : l.peerConnectionStatsReportOutputFormat) !== null && g !== void 0 ? g : "console";
2735
2735
  }
2736
2736
  onInputAudioStateChange(e, n) {
2737
2737
  e.isMuted !== n.isMuted && (n.isMuted ? this.muteAllAudioTracks() : this.unmuteAllAudioTracks());
@@ -2749,7 +2749,7 @@ class rr {
2749
2749
  });
2750
2750
  }
2751
2751
  startStatsCollection() {
2752
- this.statsCollectionInterval || (this.statsCollectionInterval = setInterval(() => K(this, void 0, void 0, function* () {
2752
+ this.statsCollectionInterval || (this.statsCollectionInterval = setInterval(() => J(this, void 0, void 0, function* () {
2753
2753
  if (!(!this.peerConnection || !this.dataChannel || this.dataChannel.readyState !== "open"))
2754
2754
  try {
2755
2755
  const e = yield this.peerConnection.getStats();
@@ -2776,7 +2776,7 @@ class rr {
2776
2776
  const e = setTimeout(() => {
2777
2777
  this.successMetricPoller && (console.warn("No video frames received, there is a problem with the connection."), clearInterval(this.successMetricPoller), this.successMetricPoller = null);
2778
2778
  }, tr);
2779
- this.successMetricPoller = setInterval(() => K(this, void 0, void 0, function* () {
2779
+ this.successMetricPoller = setInterval(() => J(this, void 0, void 0, function* () {
2780
2780
  if (!this.peerConnection || this.successMetricFired) {
2781
2781
  this.successMetricPoller && clearInterval(this.successMetricPoller), clearTimeout(e);
2782
2782
  return;
@@ -2807,7 +2807,7 @@ class rr {
2807
2807
  return this.peerConnection;
2808
2808
  }
2809
2809
  changeAudioInputDevice(e) {
2810
- return K(this, void 0, void 0, function* () {
2810
+ return J(this, void 0, void 0, function* () {
2811
2811
  if (!this.peerConnection)
2812
2812
  throw new Error("StreamingClient - changeAudioInputDevice: peer connection is not initialized. Start streaming first.");
2813
2813
  if (e == null)
@@ -2863,12 +2863,12 @@ class rr {
2863
2863
  }
2864
2864
  }
2865
2865
  stopConnection() {
2866
- return K(this, void 0, void 0, function* () {
2866
+ return J(this, void 0, void 0, function* () {
2867
2867
  yield this.shutdown();
2868
2868
  });
2869
2869
  }
2870
2870
  sendTalkCommand(e) {
2871
- return K(this, void 0, void 0, function* () {
2871
+ return J(this, void 0, void 0, function* () {
2872
2872
  if (!this.peerConnection)
2873
2873
  throw new Error("StreamingClient - sendTalkCommand: peer connection is null");
2874
2874
  yield this.engineApiRestClient.sendTalkCommand(e);
@@ -2884,7 +2884,7 @@ class rr {
2884
2884
  return this.agentAudioInputStream;
2885
2885
  }
2886
2886
  initPeerConnection() {
2887
- return K(this, void 0, void 0, function* () {
2887
+ return J(this, void 0, void 0, function* () {
2888
2888
  this.peerConnection = new RTCPeerConnection({
2889
2889
  iceServers: this.iceServers,
2890
2890
  iceCandidatePoolSize: nr
@@ -2894,7 +2894,7 @@ class rr {
2894
2894
  });
2895
2895
  }
2896
2896
  onSignalMessage(e) {
2897
- return K(this, void 0, void 0, function* () {
2897
+ return J(this, void 0, void 0, function* () {
2898
2898
  if (!this.peerConnection) {
2899
2899
  console.error("StreamingClient - onSignalMessage: peerConnection is not initialized");
2900
2900
  return;
@@ -2932,7 +2932,7 @@ class rr {
2932
2932
  });
2933
2933
  }
2934
2934
  onSignallingClientConnected() {
2935
- return K(this, void 0, void 0, function* () {
2935
+ return J(this, void 0, void 0, function* () {
2936
2936
  if (!this.peerConnection)
2937
2937
  try {
2938
2938
  yield this.initPeerConnectionAndSendOffer();
@@ -2986,7 +2986,7 @@ class rr {
2986
2986
  * Set up the data channels for sending and receiving messages
2987
2987
  */
2988
2988
  setupDataChannels() {
2989
- return K(this, void 0, void 0, function* () {
2989
+ return J(this, void 0, void 0, function* () {
2990
2990
  if (!this.peerConnection) {
2991
2991
  console.error("StreamingClient - setupDataChannels: peer connection is not initialized");
2992
2992
  return;
@@ -3004,16 +3004,16 @@ class rr {
3004
3004
  const o = JSON.parse(n.data);
3005
3005
  switch (o.messageType) {
3006
3006
  case De.SPEECH_TEXT:
3007
- this.internalEventEmitter.emit(J.WEBRTC_CHAT_MESSAGE_RECEIVED, o.data);
3007
+ this.internalEventEmitter.emit(K.WEBRTC_CHAT_MESSAGE_RECEIVED, o.data);
3008
3008
  break;
3009
3009
  case De.CLIENT_TOOL_EVENT:
3010
3010
  const c = o.data;
3011
- this.internalEventEmitter.emit(J.WEBRTC_CLIENT_TOOL_EVENT_RECEIVED, c);
3011
+ this.internalEventEmitter.emit(K.WEBRTC_CLIENT_TOOL_EVENT_RECEIVED, c);
3012
3012
  const a = or.WebRTCClientToolEventToClientToolEvent(c);
3013
3013
  this.publicEventEmitter.emit(N.CLIENT_TOOL_EVENT_RECEIVED, a);
3014
3014
  break;
3015
3015
  case De.REASONING_TEXT:
3016
- this.internalEventEmitter.emit(J.WEBRTC_REASONING_TEXT_MESSAGE_RECEIVED, o.data);
3016
+ this.internalEventEmitter.emit(K.WEBRTC_REASONING_TEXT_MESSAGE_RECEIVED, o.data);
3017
3017
  break;
3018
3018
  // Unknown message types are silently ignored to maintain forward compatibility
3019
3019
  default:
@@ -3029,7 +3029,7 @@ class rr {
3029
3029
  * Request microphone permission asynchronously without blocking connection
3030
3030
  */
3031
3031
  requestMicrophonePermissionAsync() {
3032
- return K(this, void 0, void 0, function* () {
3032
+ return J(this, void 0, void 0, function* () {
3033
3033
  if (this.inputAudioState.permissionState !== fe.PENDING) {
3034
3034
  this.inputAudioState = Object.assign(Object.assign({}, this.inputAudioState), { permissionState: fe.PENDING }), this.publicEventEmitter.emit(N.MIC_PERMISSION_PENDING);
3035
3035
  try {
@@ -3053,7 +3053,7 @@ class rr {
3053
3053
  * Set up audio track and add it to the peer connection using replaceTrack
3054
3054
  */
3055
3055
  setupAudioTrack() {
3056
- return K(this, void 0, void 0, function* () {
3056
+ return J(this, void 0, void 0, function* () {
3057
3057
  if (!this.peerConnection || !this.inputAudioStream)
3058
3058
  return;
3059
3059
  if (!this.inputAudioStream.getAudioTracks().length) {
@@ -3077,7 +3077,7 @@ class rr {
3077
3077
  });
3078
3078
  }
3079
3079
  initPeerConnectionAndSendOffer() {
3080
- return K(this, void 0, void 0, function* () {
3080
+ return J(this, void 0, void 0, function* () {
3081
3081
  if (yield this.initPeerConnection(), !this.peerConnection) {
3082
3082
  console.error("StreamingClient - initPeerConnectionAndSendOffer: peer connection is not initialized");
3083
3083
  return;
@@ -3094,7 +3094,7 @@ class rr {
3094
3094
  });
3095
3095
  }
3096
3096
  shutdown() {
3097
- return K(this, void 0, void 0, function* () {
3097
+ return J(this, void 0, void 0, function* () {
3098
3098
  var e;
3099
3099
  if (this.showPeerConnectionStatsReport) {
3100
3100
  const n = yield (e = this.peerConnection) === null || e === void 0 ? void 0 : e.getStats();
@@ -3142,7 +3142,7 @@ class or {
3142
3142
  }
3143
3143
  class sr {
3144
3144
  constructor(e, n) {
3145
- this.reasoning_messages = [], this.publicEventEmitter = e, this.internalEventEmitter = n, this.internalEventEmitter.addListener(J.WEBRTC_REASONING_TEXT_MESSAGE_RECEIVED, this.processWebRtcReasoningTextMessageEvent.bind(this));
3145
+ this.reasoning_messages = [], this.publicEventEmitter = e, this.internalEventEmitter = n, this.internalEventEmitter.addListener(K.WEBRTC_REASONING_TEXT_MESSAGE_RECEIVED, this.processWebRtcReasoningTextMessageEvent.bind(this));
3146
3146
  }
3147
3147
  webRtcTextMessageEventToReasoningStreamEvent(e) {
3148
3148
  return {
@@ -3209,7 +3209,7 @@ class ar {
3209
3209
  }
3210
3210
  decodeJwt(e) {
3211
3211
  try {
3212
- const n = e.split(".")[1], o = Mn.Buffer.from(n, "base64").toString("utf8");
3212
+ const n = e.split(".")[1], o = Un.Buffer.from(n, "base64").toString("utf8");
3213
3213
  return JSON.parse(o);
3214
3214
  } catch {
3215
3215
  throw new Error("Invalid session token format");
@@ -3256,7 +3256,7 @@ class ar {
3256
3256
  startSession(e) {
3257
3257
  return ue(this, void 0, void 0, function* () {
3258
3258
  var n, o, c, a, u, l, g, p, _, d, S, m;
3259
- const y = this.personaConfig, b = this.buildStartSessionOptionsForClient(), A = yield this.apiClient.startSession(y, b), { sessionId: w, clientConfig: I, engineHost: R, engineProtocol: M, signallingEndpoint: x } = A, { heartbeatIntervalSeconds: Z, maxWsReconnectionAttempts: H, iceServers: ae } = I;
3259
+ const y = this.personaConfig, A = this.buildStartSessionOptionsForClient(), b = yield this.apiClient.startSession(y, A), { sessionId: w, clientConfig: I, engineHost: R, engineProtocol: U, signallingEndpoint: x } = b, { heartbeatIntervalSeconds: Z, maxWsReconnectionAttempts: H, iceServers: ae } = I;
3260
3260
  this.sessionId = w, Se({
3261
3261
  sessionId: this.sessionId
3262
3262
  });
@@ -3264,14 +3264,14 @@ class ar {
3264
3264
  try {
3265
3265
  this.streamingClient = new rr(w, {
3266
3266
  engine: {
3267
- baseUrl: `${M}://${R}`
3267
+ baseUrl: `${U}://${R}`
3268
3268
  },
3269
3269
  signalling: {
3270
3270
  heartbeatIntervalSeconds: Z,
3271
3271
  maxWsReconnectionAttempts: H,
3272
3272
  url: {
3273
3273
  baseUrl: R,
3274
- protocol: M,
3274
+ protocol: U,
3275
3275
  signallingPath: x
3276
3276
  }
3277
3277
  },
@@ -3486,7 +3486,7 @@ class ar {
3486
3486
  return this.sessionId;
3487
3487
  }
3488
3488
  }
3489
- const lr = (t, e) => new ar(t, void 0, e), cr = "https://api.anam.ai", X = Y(null), te = Y("idle"), Le = Y(!1), Je = Y(!1), at = Y([]), Pe = Y(null), nt = Y(null), lt = Y(null), ct = Y(null), Dt = Y(null), ci = Y(!1), Fe = Y(!1);
3489
+ const lr = (t, e) => new ar(t, void 0, e), cr = "https://api.anam.ai", X = Y(null), te = Y("idle"), Le = Y(!1), Ke = Y(!1), at = Y([]), Pe = Y(null), nt = Y(null), lt = Y(null), ct = Y(null), Dt = Y(null), ci = Y(!1), Fe = Y(!1);
3490
3490
  function ur(t, e) {
3491
3491
  return e === 401 || e === 403 ? "This agent is not authorized. Check your agent ID." : e === 404 ? "Agent not found. Check your agent ID." : e === 429 ? "Too many requests. Please wait a moment." : e && e >= 500 ? "Server error. Please try again later." : t instanceof TypeError && t.message === "Failed to fetch" ? "Unable to connect. Check your network connection." : t instanceof Error && t.message.length < 80 ? t.message : "Something went wrong. Please try again.";
3492
3492
  }
@@ -3562,7 +3562,7 @@ function pr(t) {
3562
3562
  !X.value || te.value !== "connected" || X.value.sendUserMessage(t);
3563
3563
  }
3564
3564
  function _r() {
3565
- X.value && (Je.value ? (X.value.unmuteInputAudio(), Je.value = !1) : (X.value.muteInputAudio(), Je.value = !0));
3565
+ X.value && (Ke.value ? (X.value.unmuteInputAudio(), Ke.value = !1) : (X.value.muteInputAudio(), Ke.value = !0));
3566
3566
  }
3567
3567
  function Er() {
3568
3568
  Fe.value = !0;
@@ -3576,7 +3576,7 @@ function gr(t, e) {
3576
3576
  return {
3577
3577
  connectionStatus: te,
3578
3578
  isStreaming: Le,
3579
- isMuted: Je,
3579
+ isMuted: Ke,
3580
3580
  messages: at,
3581
3581
  error: Pe,
3582
3582
  sessionId: nt,
@@ -3636,9 +3636,9 @@ function br({
3636
3636
  displayCta: c,
3637
3637
  onCollapse: a
3638
3638
  }) {
3639
- const u = Qe(null), [l, g] = Ye(""), [p, _] = Ye(null), [d, S] = Ye(!1), m = Qe(null), y = e.connectionStatus.value === "connected", b = e.connectionStatus.value === "connecting", A = e.connectionStatus.value === "error", w = e.isStreaming.value, I = !b && !y && !A, R = He(async () => {
3639
+ const u = Qe(null), [l, g] = Ye(""), [p, _] = Ye(null), [d, S] = Ye(!1), m = Qe(null), y = e.connectionStatus.value === "connected", A = e.connectionStatus.value === "connecting", b = e.connectionStatus.value === "error", w = e.isStreaming.value, I = !A && !y && !b, R = He(async () => {
3640
3640
  n.current && await e.startSession(n.current);
3641
- }, []), M = He(async () => {
3641
+ }, []), U = He(async () => {
3642
3642
  await e.stopSession();
3643
3643
  }, []), x = He(() => {
3644
3644
  if (!l.trim()) return;
@@ -3680,11 +3680,11 @@ function br({
3680
3680
  /* @__PURE__ */ C("span", { children: "Agent not configured" })
3681
3681
  ] })
3682
3682
  )),
3683
- b && /* @__PURE__ */ C("div", { class: "anam-overlay-loading", children: [
3683
+ A && /* @__PURE__ */ C("div", { class: "anam-overlay-loading", children: [
3684
3684
  /* @__PURE__ */ C("span", { class: "anam-spinner" }),
3685
3685
  /* @__PURE__ */ C("span", { children: "Starting your conversation..." })
3686
3686
  ] }),
3687
- A && /* @__PURE__ */ C("div", { class: "anam-overlay-error", children: [
3687
+ b && /* @__PURE__ */ C("div", { class: "anam-overlay-error", children: [
3688
3688
  /* @__PURE__ */ C("div", { class: "anam-overlay-error-text", children: e.error.value || "Something went wrong" }),
3689
3689
  /* @__PURE__ */ C("button", { class: "anam-retry-btn", onClick: R, children: "Try Again" })
3690
3690
  ] }),
@@ -3730,7 +3730,7 @@ function br({
3730
3730
  "button",
3731
3731
  {
3732
3732
  class: "anam-ctl-btn anam-ctl-end",
3733
- onClick: M,
3733
+ onClick: U,
3734
3734
  "aria-label": "End call",
3735
3735
  children: /* @__PURE__ */ C(Ir, {})
3736
3736
  }
@@ -3748,11 +3748,16 @@ function Ar(t) {
3748
3748
  } catch (I) {
3749
3749
  console.warn("[AnamWidget] Invalid override-config JSON:", I);
3750
3750
  }
3751
- const A = o.serverConfig.value, w = A ? It({ ...We }, A) : { ...We };
3751
+ const b = o.serverConfig.value, w = b ? It({ ...We }, b) : { ...We };
3752
3752
  return w.mode === "orb" && (w.layout = "fixed"), w;
3753
3753
  }, [t["override-config"], o.serverConfig.value]);
3754
3754
  yt(() => {
3755
3755
  if (t["override-config"]) {
3756
+ try {
3757
+ const b = JSON.parse(t["override-config"]);
3758
+ b.avatarImageUrl && (o.avatarThumbnailUrl.value = b.avatarImageUrl), b.personaName && (o.personaName.value = b.personaName);
3759
+ } catch {
3760
+ }
3756
3761
  o.skipFetch();
3757
3762
  return;
3758
3763
  }
@@ -3763,8 +3768,8 @@ function Ar(t) {
3763
3768
  [c.styles.backgroundColor, c.styles.textColor]
3764
3769
  ), g = Ie(() => {
3765
3770
  if (c.layout !== "fixed") return "";
3766
- const A = xn(c.position);
3767
- return Object.entries(A).map(([w, I]) => `${w}: ${I}`).join("; ");
3771
+ const b = xn(c.position);
3772
+ return Object.entries(b).map(([w, I]) => `${w}: ${I}`).join("; ");
3768
3773
  }, [c.layout, c.position]), p = [l, g].filter(Boolean).join("; "), _ = Qe(!1), d = () => {
3769
3774
  n.value = !0, _.current = !1, setTimeout(() => {
3770
3775
  e.current && o.startSession(e.current);
@@ -3775,7 +3780,7 @@ function Ar(t) {
3775
3780
  (y === "connecting" || y === "connected") && (_.current = !0), yt(() => {
3776
3781
  m && n.value && y === "idle" && _.current && (_.current = !1, n.value = !1);
3777
3782
  }, [y]);
3778
- const b = m ? n.value : !0;
3783
+ const A = m ? n.value : !0;
3779
3784
  return o.isReady.value ? /* @__PURE__ */ C(oe, { children: [
3780
3785
  /* @__PURE__ */ C("style", { children: ui }),
3781
3786
  /* @__PURE__ */ C(
@@ -3795,7 +3800,7 @@ function Ar(t) {
3795
3800
  children: a ? /* @__PURE__ */ C("img", { src: a, alt: "Avatar" }) : /* @__PURE__ */ C(bt, {})
3796
3801
  }
3797
3802
  ),
3798
- b && /* @__PURE__ */ C(
3803
+ A && /* @__PURE__ */ C(
3799
3804
  br,
3800
3805
  {
3801
3806
  config: c,