lr-chatbot 0.24.5 → 0.25.0

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/index.js CHANGED
@@ -608,7 +608,7 @@ Jc.DEFAULT_COMPONENT_STYLE = {
608
608
  };
609
609
  var la = Jc, ke = /* @__PURE__ */ function(t) {
610
610
  return t.ESCAPE = "Escape", t.ENTER = "Enter", t.TAB = "Tab", t.ARROW_UP = "ArrowUp", t.ARROW_DOWN = "ArrowDown", t.ARROW_RIGHT = "ArrowRight", t.ARROW_LEFT = "ArrowLeft", t.BACKSPACE = "Backspace", t.DELETE = "Delete", t.META = "Meta", t.CONTROL = "Control", t;
611
- }(ke || {}), Pr, gn = (Pr = /* @__PURE__ */ k(function t() {
611
+ }(ke || {}), Pr, vn = (Pr = /* @__PURE__ */ k(function t() {
612
612
  w(this, t);
613
613
  }), Pr.IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Pr.IS_CHROMIUM = window.chrome, Pr), Zc = /* @__PURE__ */ function() {
614
614
  function t() {
@@ -674,7 +674,7 @@ var uh = Zc, dh = /* @__PURE__ */ function() {
674
674
  key: "createInputElement",
675
675
  value: function(e) {
676
676
  var n, i, a = document.createElement("div");
677
- return a.id = t.TEXT_INPUT_ID, a.classList.add("text-input-styling", t.PLACEHOLDER_TEXT_CLASS), gn.IS_CHROMIUM && t.preventAutomaticScrollUpOnNewLine(a), typeof (e == null ? void 0 : e.disabled) == "boolean" && e.disabled === !0 ? (a.contentEditable = "false", a.classList.add("text-input-disabled")) : (a.contentEditable = "true", this.addEventListeners(a, e)), Object.assign(a.style, (n = e == null ? void 0 : e.styles) == null ? void 0 : n.text), Object.assign(a.style, (i = e == null ? void 0 : e.placeholder) == null ? void 0 : i.style), a;
677
+ return a.id = t.TEXT_INPUT_ID, a.classList.add("text-input-styling", t.PLACEHOLDER_TEXT_CLASS), vn.IS_CHROMIUM && t.preventAutomaticScrollUpOnNewLine(a), typeof (e == null ? void 0 : e.disabled) == "boolean" && e.disabled === !0 ? (a.contentEditable = "false", a.classList.add("text-input-disabled")) : (a.contentEditable = "true", this.addEventListeners(a, e)), Object.assign(a.style, (n = e == null ? void 0 : e.styles) == null ? void 0 : n.text), Object.assign(a.style, (i = e == null ? void 0 : e.placeholder) == null ? void 0 : i.style), a;
678
678
  }
679
679
  }, {
680
680
  key: "removeTextIfPlaceholder",
@@ -692,7 +692,7 @@ var uh = Zc, dh = /* @__PURE__ */ function() {
692
692
  key: "onFocus",
693
693
  value: function(e) {
694
694
  var n = this;
695
- gn.IS_SAFARI ? setTimeout(function() {
695
+ vn.IS_SAFARI ? setTimeout(function() {
696
696
  n.removeTextIfPlaceholder();
697
697
  }) : this.removeTextIfPlaceholder(), Object.assign(this.elementRef.style, e);
698
698
  }
@@ -740,7 +740,7 @@ var uh = Zc, dh = /* @__PURE__ */ function() {
740
740
  key: "clear",
741
741
  value: function(e) {
742
742
  var n = window.scrollY;
743
- e.classList.contains("text-input-disabled") || (e.textContent = ""), gn.IS_CHROMIUM && window.scrollTo({
743
+ e.classList.contains("text-input-disabled") || (e.textContent = ""), vn.IS_CHROMIUM && window.scrollTo({
744
744
  top: n
745
745
  });
746
746
  }
@@ -1248,7 +1248,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
1248
1248
  var o = i.getElementsByClassName(s);
1249
1249
  Array.from(o || []).forEach(function(l) {
1250
1250
  var c = t.getProcessedStyles(n, l, s);
1251
- vn.applyStylesToElement(l, c), t.applyEvents(l, s);
1251
+ yn.applyStylesToElement(l, c), t.applyEvents(l, s);
1252
1252
  });
1253
1253
  });
1254
1254
  var a = i.getElementsByClassName(bh);
@@ -1257,7 +1257,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
1257
1257
  });
1258
1258
  }
1259
1259
  }]);
1260
- }(), vn = /* @__PURE__ */ function() {
1260
+ }(), yn = /* @__PURE__ */ function() {
1261
1261
  function t() {
1262
1262
  w(this, t);
1263
1263
  }
@@ -1331,7 +1331,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
1331
1331
  key: "overwrite",
1332
1332
  value: function(e, n, i, a) {
1333
1333
  var s = e.messages, o = J.overwriteMessage(s, a, n, i, "html", "html-message");
1334
- return o && (o.bubbleElement.innerHTML = n, vn.apply(e, o.outerContainer), $e.flagHTMLUpdateClass(o.bubbleElement)), o;
1334
+ return o && (o.bubbleElement.innerHTML = n, yn.apply(e, o.outerContainer), $e.flagHTMLUpdateClass(o.bubbleElement)), o;
1335
1335
  }
1336
1336
  // prettier-ignore
1337
1337
  }, {
@@ -1344,7 +1344,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
1344
1344
  s.status = !1;
1345
1345
  }
1346
1346
  var u = t.createElements(e, n, i, o);
1347
- return J.fillEmptyMessageElement(u.bubbleElement, n), vn.apply(e, u.outerContainer), $e.flagHTMLUpdateClass(u.bubbleElement), e.applyCustomStyles(u, i, !1, (l = e.messageStyles) == null ? void 0 : l.html), o || t.addElement(e, u.outerContainer), u;
1347
+ return J.fillEmptyMessageElement(u.bubbleElement, n), yn.apply(e, u.outerContainer), $e.flagHTMLUpdateClass(u.bubbleElement), e.applyCustomStyles(u, i, !1, (l = e.messageStyles) == null ? void 0 : l.html), o || t.addElement(e, u.outerContainer), u;
1348
1348
  }
1349
1349
  }]);
1350
1350
  }(), Fr;
@@ -1407,10 +1407,10 @@ N.blockquote_open = function() {
1407
1407
  `;
1408
1408
  };
1409
1409
  N.blockquote_close = function(t, r) {
1410
- return "</blockquote>" + qt(t, r);
1410
+ return "</blockquote>" + Vt(t, r);
1411
1411
  };
1412
1412
  N.code = function(t, r) {
1413
- return t[r].block ? "<pre><code>" + Pe(t[r].content) + "</code></pre>" + qt(t, r) : "<code>" + Pe(t[r].content) + "</code>";
1413
+ return t[r].block ? "<pre><code>" + Pe(t[r].content) + "</code></pre>" + Vt(t, r) : "<code>" + Pe(t[r].content) + "</code>";
1414
1414
  };
1415
1415
  N.fence = function(t, r, e, n, i) {
1416
1416
  var a = t[r], s = "", o = e.langPrefix, l = "", c, u, d;
@@ -1418,7 +1418,7 @@ N.fence = function(t, r, e, n, i) {
1418
1418
  if (c = a.params.split(/\s+/g), u = c.join(" "), kh(i.rules.fence_custom, c[0])) return i.rules.fence_custom[c[0]](t, r, e, n, i);
1419
1419
  l = Pe(Bt(ar(u))), s = ' class="' + o + l + '"';
1420
1420
  }
1421
- return e.highlight ? d = e.highlight.apply(e.highlight, [a.content].concat(c)) || Pe(a.content) : d = Pe(a.content), "<pre><code" + s + ">" + d + "</code></pre>" + qt(t, r);
1421
+ return e.highlight ? d = e.highlight.apply(e.highlight, [a.content].concat(c)) || Pe(a.content) : d = Pe(a.content), "<pre><code" + s + ">" + d + "</code></pre>" + Vt(t, r);
1422
1422
  };
1423
1423
  N.fence_custom = {};
1424
1424
  N.heading_open = function(t, r) {
@@ -1429,14 +1429,14 @@ N.heading_close = function(t, r) {
1429
1429
  `;
1430
1430
  };
1431
1431
  N.hr = function(t, r, e) {
1432
- return (e.xhtmlOut ? "<hr />" : "<hr>") + qt(t, r);
1432
+ return (e.xhtmlOut ? "<hr />" : "<hr>") + Vt(t, r);
1433
1433
  };
1434
1434
  N.bullet_list_open = function() {
1435
1435
  return `<ul>
1436
1436
  `;
1437
1437
  };
1438
1438
  N.bullet_list_close = function(t, r) {
1439
- return "</ul>" + qt(t, r);
1439
+ return "</ul>" + Vt(t, r);
1440
1440
  };
1441
1441
  N.list_item_open = function() {
1442
1442
  return "<li>";
@@ -1451,14 +1451,14 @@ N.ordered_list_open = function(t, r) {
1451
1451
  `;
1452
1452
  };
1453
1453
  N.ordered_list_close = function(t, r) {
1454
- return "</ol>" + qt(t, r);
1454
+ return "</ol>" + Vt(t, r);
1455
1455
  };
1456
1456
  N.paragraph_open = function(t, r) {
1457
1457
  return t[r].tight ? "" : "<p>";
1458
1458
  };
1459
1459
  N.paragraph_close = function(t, r) {
1460
1460
  var e = !(t[r].tight && r && t[r - 1].type === "inline" && !t[r - 1].content);
1461
- return (t[r].tight ? "" : "</p>") + (e ? qt(t, r) : "");
1461
+ return (t[r].tight ? "" : "</p>") + (e ? Vt(t, r) : "");
1462
1462
  };
1463
1463
  N.link_open = function(t, r, e) {
1464
1464
  var n = t[r].title ? ' title="' + Pe(Bt(t[r].title)) + '"' : "", i = e.linkTarget ? ' target="' + e.linkTarget + '"' : "";
@@ -1632,7 +1632,7 @@ N.dd_close = function() {
1632
1632
  function su(t, r) {
1633
1633
  return ++r >= t.length - 2 ? r : t[r].type === "paragraph_open" && t[r].tight && t[r + 1].type === "inline" && t[r + 1].content.length === 0 && t[r + 2].type === "paragraph_close" && t[r + 2].tight ? su(t, r + 2) : r;
1634
1634
  }
1635
- var qt = N.getBreak = function(t, r) {
1635
+ var Vt = N.getBreak = function(t, r) {
1636
1636
  return r = su(t, r), r < t.length && t[r].type === "list_item_close" ? "" : `
1637
1637
  `;
1638
1638
  };
@@ -1728,24 +1728,24 @@ function Oh(t) {
1728
1728
  children: []
1729
1729
  }) : t.block.parse(t.src, t.options, t.env, t.tokens);
1730
1730
  }
1731
- function Vt(t, r, e, n, i) {
1731
+ function Wt(t, r, e, n, i) {
1732
1732
  this.src = t, this.env = n, this.options = e, this.parser = r, this.tokens = i, this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = [], this.isInLabel = !1, this.linkLevel = 0, this.linkContent = "", this.labelUnmatchedScopes = 0;
1733
1733
  }
1734
- Vt.prototype.pushPending = function() {
1734
+ Wt.prototype.pushPending = function() {
1735
1735
  this.tokens.push({
1736
1736
  type: "text",
1737
1737
  content: this.pending,
1738
1738
  level: this.pendingLevel
1739
1739
  }), this.pending = "";
1740
1740
  };
1741
- Vt.prototype.push = function(t) {
1741
+ Wt.prototype.push = function(t) {
1742
1742
  this.pending && this.pushPending(), this.tokens.push(t), this.pendingLevel = this.level;
1743
1743
  };
1744
- Vt.prototype.cacheSet = function(t, r) {
1744
+ Wt.prototype.cacheSet = function(t, r) {
1745
1745
  for (var e = this.cache.length; e <= t; e++) this.cache.push(0);
1746
1746
  this.cache[t] = r;
1747
1747
  };
1748
- Vt.prototype.cacheGet = function(t) {
1748
+ Wt.prototype.cacheGet = function(t) {
1749
1749
  return t < this.cache.length ? this.cache[t] : 0;
1750
1750
  };
1751
1751
  function sr(t, r) {
@@ -1764,7 +1764,7 @@ function sr(t, r) {
1764
1764
  }
1765
1765
  function Ih(t, r, e, n) {
1766
1766
  var i, a, s, o, l, c;
1767
- if (t.charCodeAt(0) !== 42 || t.charCodeAt(1) !== 91 || t.indexOf("]:") === -1 || (i = new Vt(t, r, e, n, []), a = sr(i, 1), a < 0 || t.charCodeAt(a + 1) !== 58)) return -1;
1767
+ if (t.charCodeAt(0) !== 42 || t.charCodeAt(1) !== 91 || t.indexOf("]:") === -1 || (i = new Wt(t, r, e, n, []), a = sr(i, 1), a < 0 || t.charCodeAt(a + 1) !== 58)) return -1;
1768
1768
  for (o = i.posMax, s = a + 2; s < o && i.src.charCodeAt(s) !== 10; s++) ;
1769
1769
  return l = t.slice(2, a), c = t.slice(a + 2, s).trim(), c.length === 0 ? -1 : (n.abbreviations || (n.abbreviations = {}), z(n.abbreviations[":" + l]) > "u" && (n.abbreviations[":" + l] = c), s);
1770
1770
  }
@@ -1827,7 +1827,7 @@ function cu(t) {
1827
1827
  }
1828
1828
  function Mh(t, r, e, n) {
1829
1829
  var i, a, s, o, l, c, u, d, h;
1830
- if (t.charCodeAt(0) !== 91 || t.indexOf("]:") === -1 || (i = new Vt(t, r, e, n, []), a = sr(i, 0), a < 0 || t.charCodeAt(a + 1) !== 58)) return -1;
1830
+ if (t.charCodeAt(0) !== 91 || t.indexOf("]:") === -1 || (i = new Wt(t, r, e, n, []), a = sr(i, 0), a < 0 || t.charCodeAt(a + 1) !== 58)) return -1;
1831
1831
  for (o = i.posMax, s = a + 2; s < o && (l = i.src.charCodeAt(s), !(l !== 32 && l !== 10)); s++) ;
1832
1832
  if (!ou(i, s)) return -1;
1833
1833
  for (u = i.linkContent, s = i.pos, c = s, s = s + 1; s < o && (l = i.src.charCodeAt(s), !(l !== 32 && l !== 10)); s++) ;
@@ -1953,7 +1953,7 @@ var zh = /['"]/, xo = /['"]/g, qh = /[-\s()\[\]]/, Eo = "’";
1953
1953
  function Ao(t, r) {
1954
1954
  return r < 0 || r >= t.length ? !1 : !qh.test(t[r]);
1955
1955
  }
1956
- function Qt(t, r, e) {
1956
+ function en(t, r, e) {
1957
1957
  return t.substr(0, r) + e + t.substr(r + 1);
1958
1958
  }
1959
1959
  function Vh(t) {
@@ -1965,12 +1965,12 @@ function Vh(t) {
1965
1965
  v.length = p + 1, n = e.content, a = 0, s = n.length;
1966
1966
  e: for (; a < s && (xo.lastIndex = a, i = xo.exec(n), !!i); ) {
1967
1967
  if (l = !Ao(n, i.index - 1), a = i.index + 1, f = i[0] === "'", c = !Ao(n, a), !c && !l) {
1968
- f && (e.content = Qt(e.content, i.index, Eo));
1968
+ f && (e.content = en(e.content, i.index, Eo));
1969
1969
  continue;
1970
1970
  }
1971
1971
  if (d = !c, h = !l, h) {
1972
1972
  for (p = v.length - 1; p >= 0 && (u = v[p], !(v[p].level < o)); p--) if (u.single === f && v[p].level === o) {
1973
- u = v[p], f ? (y[u.token].content = Qt(y[u.token].content, u.pos, t.options.quotes[2]), e.content = Qt(e.content, i.index, t.options.quotes[3])) : (y[u.token].content = Qt(y[u.token].content, u.pos, t.options.quotes[0]), e.content = Qt(e.content, i.index, t.options.quotes[1])), v.length = p;
1973
+ u = v[p], f ? (y[u.token].content = en(y[u.token].content, u.pos, t.options.quotes[2]), e.content = en(e.content, i.index, t.options.quotes[3])) : (y[u.token].content = en(y[u.token].content, u.pos, t.options.quotes[0]), e.content = en(e.content, i.index, t.options.quotes[1])), v.length = p;
1974
1974
  continue e;
1975
1975
  }
1976
1976
  }
@@ -1979,7 +1979,7 @@ function Vh(t) {
1979
1979
  pos: i.index,
1980
1980
  single: f,
1981
1981
  level: o
1982
- }) : h && f && (e.content = Qt(e.content, i.index, Eo));
1982
+ }) : h && f && (e.content = en(e.content, i.index, Eo));
1983
1983
  }
1984
1984
  }
1985
1985
  }
@@ -1994,7 +1994,7 @@ uu.prototype.process = function(t) {
1994
1994
  var r, e, n;
1995
1995
  for (n = this.ruler.getRules(""), r = 0, e = n.length; r < e; r++) n[r](t);
1996
1996
  };
1997
- function Wt(t, r, e, n, i) {
1997
+ function Gt(t, r, e, n, i) {
1998
1998
  var a, s, o, l, c, u, d;
1999
1999
  for (this.src = t, this.parser = r, this.options = e, this.env = n, this.tokens = i, this.bMarks = [], this.eMarks = [], this.tShift = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.parentType = "root", this.ddIndent = -1, this.level = 0, this.result = "", s = this.src, u = 0, d = !1, o = l = u = 0, c = s.length; l < c; l++) {
2000
2000
  if (a = s.charCodeAt(l), !d) if (a === 32) {
@@ -2005,27 +2005,27 @@ function Wt(t, r, e, n, i) {
2005
2005
  }
2006
2006
  this.bMarks.push(s.length), this.eMarks.push(s.length), this.tShift.push(0), this.lineMax = this.bMarks.length - 1;
2007
2007
  }
2008
- Wt.prototype.isEmpty = function(t) {
2008
+ Gt.prototype.isEmpty = function(t) {
2009
2009
  return this.bMarks[t] + this.tShift[t] >= this.eMarks[t];
2010
2010
  };
2011
- Wt.prototype.skipEmptyLines = function(t) {
2011
+ Gt.prototype.skipEmptyLines = function(t) {
2012
2012
  for (var r = this.lineMax; t < r && !(this.bMarks[t] + this.tShift[t] < this.eMarks[t]); t++) ;
2013
2013
  return t;
2014
2014
  };
2015
- Wt.prototype.skipSpaces = function(t) {
2015
+ Gt.prototype.skipSpaces = function(t) {
2016
2016
  for (var r = this.src.length; t < r && this.src.charCodeAt(t) === 32; t++) ;
2017
2017
  return t;
2018
2018
  };
2019
- Wt.prototype.skipChars = function(t, r) {
2019
+ Gt.prototype.skipChars = function(t, r) {
2020
2020
  for (var e = this.src.length; t < e && this.src.charCodeAt(t) === r; t++) ;
2021
2021
  return t;
2022
2022
  };
2023
- Wt.prototype.skipCharsBack = function(t, r, e) {
2023
+ Gt.prototype.skipCharsBack = function(t, r, e) {
2024
2024
  if (t <= e) return t;
2025
2025
  for (; t > e; ) if (r !== this.src.charCodeAt(--t)) return t + 1;
2026
2026
  return t;
2027
2027
  };
2028
- Wt.prototype.getLines = function(t, r, e, n) {
2028
+ Gt.prototype.getLines = function(t, r, e, n) {
2029
2029
  var i, a, s, o, l, c = t;
2030
2030
  if (t >= r) return "";
2031
2031
  if (c + 1 === r) return a = this.bMarks[c] + Math.min(this.tShift[c], e), s = n ? this.eMarks[c] + 1 : this.eMarks[c], this.src.slice(a, s);
@@ -2440,7 +2440,7 @@ xs.prototype.parse = function(t, r, e, n) {
2440
2440
  `), t.indexOf(" ") >= 0 && (t = t.replace(cp, function(o, l) {
2441
2441
  var c;
2442
2442
  return t.charCodeAt(l) === 10 ? (a = l + 1, s = 0, o) : (c = " ".slice((l - a - s) % 4), s = l - a + 1, c);
2443
- })), i = new Wt(t, this, r, e, n), this.tokenize(i, i.line, i.lineMax);
2443
+ })), i = new Gt(t, this, r, e, n), this.tokenize(i, i.line, i.lineMax);
2444
2444
  };
2445
2445
  function hp(t) {
2446
2446
  switch (t) {
@@ -2830,7 +2830,7 @@ Ci.prototype.tokenize = function(t) {
2830
2830
  t.pending && t.pushPending();
2831
2831
  };
2832
2832
  Ci.prototype.parse = function(t, r, e, n) {
2833
- var i = new Vt(t, this, r, e, n);
2833
+ var i = new Wt(t, this, r, e, n);
2834
2834
  this.tokenize(i);
2835
2835
  };
2836
2836
  function Zp(t) {
@@ -3412,7 +3412,7 @@ var Me = pu, ci = /* @__PURE__ */ function() {
3412
3412
  var e, n, i = this._messages.textElementsToText;
3413
3413
  if (!this._endStreamAfterOperation && !(this._fileAdded && !this._elements)) {
3414
3414
  if (!this._elements) throw Error(fe.NO_VALID_STREAM_EVENTS_SENT);
3415
- (e = this._elements.bubbleElement) != null && e.classList.contains(t.MESSAGE_CLASS) && (this._streamType === "text" ? (i[i.length - 1][1] = this._streamedContent, this._message && (this._message.text = this._streamedContent), this._messages.textToSpeech && zr.speak(this._streamedContent, this._messages.textToSpeech)) : this._streamType === "html" && (this._streamedContent === t.HTML_CONTENT_PLACEHOLDER && (this._streamedContent = ((n = this._elements.bubbleElement) == null ? void 0 : n.innerHTML) || ""), this._elements && vn.apply(this._messages, this._elements.outerContainer), this._message && (this._message.html = this._streamedContent)), this._message && this._messages.sendClientUpdate(fu.createMessageContent(this._message), !1), this._hasStreamEnded = !0);
3415
+ (e = this._elements.bubbleElement) != null && e.classList.contains(t.MESSAGE_CLASS) && (this._streamType === "text" ? (i[i.length - 1][1] = this._streamedContent, this._message && (this._message.text = this._streamedContent), this._messages.textToSpeech && zr.speak(this._streamedContent, this._messages.textToSpeech)) : this._streamType === "html" && (this._streamedContent === t.HTML_CONTENT_PLACEHOLDER && (this._streamedContent = ((n = this._elements.bubbleElement) == null ? void 0 : n.innerHTML) || ""), this._elements && yn.apply(this._messages, this._elements.outerContainer), this._message && (this._message.html = this._streamedContent)), this._message && this._messages.sendClientUpdate(fu.createMessageContent(this._message), !1), this._hasStreamEnded = !0);
3416
3416
  }
3417
3417
  }
3418
3418
  }, {
@@ -3870,7 +3870,7 @@ var ye = /* @__PURE__ */ function() {
3870
3870
  }
3871
3871
  if (i.html) {
3872
3872
  n.onOpen();
3873
- var o = vn.splitHTML(i.html);
3873
+ var o = yn.splitHTML(i.html);
3874
3874
  t.populateMessages(o, new yt(e), a, "html");
3875
3875
  }
3876
3876
  }
@@ -5372,7 +5372,7 @@ var Fo = Wn, $o = {
5372
5372
  }
5373
5373
  ],
5374
5374
  use_web_worker: !0
5375
- }, dn = /* @__PURE__ */ function(t) {
5375
+ }, hn = /* @__PURE__ */ function(t) {
5376
5376
  function r(e) {
5377
5377
  var n;
5378
5378
  w(this, r);
@@ -5836,8 +5836,8 @@ var Fo = Wn, $o = {
5836
5836
  }
5837
5837
  }]);
5838
5838
  }(ui);
5839
- dn.GENERIC_ERROR = "Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.", dn.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models", dn.WEB_LLM_NOT_FOUND_ERROR = "WebLLM module not found", dn.DEFAULT_MODEL = "Llama-2-7b-chat-hf-q4f32_1", dn.MODULE_SEARCH_LIMIT_S = 5;
5840
- var Rs = dn, No = /* @__PURE__ */ function() {
5839
+ hn.GENERIC_ERROR = "Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.", hn.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models", hn.WEB_LLM_NOT_FOUND_ERROR = "WebLLM module not found", hn.DEFAULT_MODEL = "Llama-2-7b-chat-hf-q4f32_1", hn.MODULE_SEARCH_LIMIT_S = 5;
5840
+ var Rs = hn, No = /* @__PURE__ */ function() {
5841
5841
  function t() {
5842
5842
  w(this, t);
5843
5843
  }
@@ -5911,7 +5911,7 @@ var Rs = dn, No = /* @__PURE__ */ function() {
5911
5911
  }]);
5912
5912
  }(Oe);
5913
5913
  yu.URL_PREFIX = "https://api-inference.huggingface.co/models/";
5914
- var Gt = yu, Os = /* @__PURE__ */ function(t) {
5914
+ var Kt = yu, Os = /* @__PURE__ */ function(t) {
5915
5915
  function r(e, n, i, a, s, o) {
5916
5916
  var l;
5917
5917
  return w(this, r), l = q(this, r, [e, n, i, a, s, o]), l.isTextInputDisabled = !0, l.canSendMessage = r.canSendFile, l;
@@ -5959,7 +5959,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
5959
5959
  return !!(i != null && i[0]);
5960
5960
  }
5961
5961
  }]);
5962
- }(Gt), vf = /* @__PURE__ */ function(t) {
5962
+ }(Kt), vf = /* @__PURE__ */ function(t) {
5963
5963
  function r(e) {
5964
5964
  w(this, r);
5965
5965
  var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.audioClassification, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
@@ -6370,7 +6370,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
6370
6370
  return n;
6371
6371
  }()
6372
6372
  }]);
6373
- }(Gt), Sf = /* @__PURE__ */ function(t) {
6373
+ }(Kt), Sf = /* @__PURE__ */ function(t) {
6374
6374
  function r(e) {
6375
6375
  var n;
6376
6376
  w(this, r);
@@ -6419,7 +6419,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
6419
6419
  return n;
6420
6420
  }()
6421
6421
  }]);
6422
- }(Gt), Cf = /* @__PURE__ */ function(t) {
6422
+ }(Kt), Cf = /* @__PURE__ */ function(t) {
6423
6423
  function r(e) {
6424
6424
  w(this, r);
6425
6425
  var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.summarization, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
@@ -6454,7 +6454,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
6454
6454
  return n;
6455
6455
  }()
6456
6456
  }]);
6457
- }(Gt), xf = /* @__PURE__ */ function(t) {
6457
+ }(Kt), xf = /* @__PURE__ */ function(t) {
6458
6458
  function r(e) {
6459
6459
  var n, i;
6460
6460
  w(this, r);
@@ -6525,7 +6525,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
6525
6525
  return n;
6526
6526
  }()
6527
6527
  }]);
6528
- }(Gt), Ef = /* @__PURE__ */ function(t) {
6528
+ }(Kt), Ef = /* @__PURE__ */ function(t) {
6529
6529
  function r(e) {
6530
6530
  var n;
6531
6531
  w(this, r);
@@ -6663,7 +6663,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
6663
6663
  return n;
6664
6664
  }()
6665
6665
  }]);
6666
- }(Gt), Tf = /* @__PURE__ */ function(t) {
6666
+ }(Kt), Tf = /* @__PURE__ */ function(t) {
6667
6667
  function r(e) {
6668
6668
  var n;
6669
6669
  w(this, r);
@@ -6791,7 +6791,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
6791
6791
  return n;
6792
6792
  }()
6793
6793
  }]);
6794
- }(Gt), Do = /* @__PURE__ */ function() {
6794
+ }(Kt), Do = /* @__PURE__ */ function() {
6795
6795
  function t() {
6796
6796
  w(this, t);
6797
6797
  }
@@ -6967,7 +6967,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
6967
6967
  return n;
6968
6968
  }()
6969
6969
  }]);
6970
- }(Is), Ae = /* @__PURE__ */ function() {
6970
+ }(Is), Te = /* @__PURE__ */ function() {
6971
6971
  function t() {
6972
6972
  w(this, t);
6973
6973
  }
@@ -7032,7 +7032,7 @@ var Gt = yu, Os = /* @__PURE__ */ function(t) {
7032
7032
  var n, i, a;
7033
7033
  w(this, r);
7034
7034
  var s, o, l, c = JSON.parse(JSON.stringify(e.directConnection)), u = c == null ? void 0 : c.openAI;
7035
- a = q(this, r, [e, Ae.buildKeyVerificationDetails(), Ae.buildHeaders, u]), a.insertKeyPlaceholderText = "OpenAI API Key", a.keyHelpUrl = "https://platform.openai.com/account/api-keys", a.url = "https://api.openai.com/v1/audio/speech", a.permittedErrorPrefixes = ["Invalid"], a.introPanelMarkUp = `
7035
+ a = q(this, r, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, u]), a.insertKeyPlaceholderText = "OpenAI API Key", a.keyHelpUrl = "https://platform.openai.com/account/api-keys", a.url = "https://api.openai.com/v1/audio/speech", a.permittedErrorPrefixes = ["Invalid"], a.introPanelMarkUp = `
7036
7036
  <div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI : Text To Speech</b></div>
7037
7037
  <p>Generate an audio file based on your text input.</p>
7038
7038
  <p>Click <a href="https://platform.openai.com/docs/guides/text-to-speech">here</a> for more information.</p>`;
@@ -7122,7 +7122,7 @@ var Lf = as, Wr = /* @__PURE__ */ function(t) {
7122
7122
  var n, i;
7123
7123
  w(this, r);
7124
7124
  var a, s, o = JSON.parse(JSON.stringify(e.directConnection)), l = o == null ? void 0 : o.openAI;
7125
- i = q(this, r, [e, Ae.buildKeyVerificationDetails(), Ae.buildHeaders, l, {
7125
+ i = q(this, r, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, l, {
7126
7126
  audio: {}
7127
7127
  }]), i.insertKeyPlaceholderText = "OpenAI API Key", i.keyHelpUrl = "https://platform.openai.com/account/api-keys", i.introPanelMarkUp = `
7128
7128
  <div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI : Speech To Text</b></div>
@@ -7918,7 +7918,7 @@ var Df = ku, Bf = /* @__PURE__ */ function(t) {
7918
7918
  for (; ; ) switch (b.prev = b.next) {
7919
7919
  case 0:
7920
7920
  return y = new FormData(), b.abrupt("return", (y.append("purpose", "assistants"), y.append("file", g), new Promise(function(_) {
7921
- _(Ae.directFetch(i, y, "POST", !1));
7921
+ _(Te.directFetch(i, y, "POST", !1));
7922
7922
  })));
7923
7923
  case 2:
7924
7924
  case "end":
@@ -7967,7 +7967,7 @@ var Df = ku, Bf = /* @__PURE__ */ function(t) {
7967
7967
  return s = a.map(function(u) {
7968
7968
  var d = u.fileId;
7969
7969
  return i.url = "https://api.openai.com/v1/files/".concat(d, "/content"), new Promise(function(h) {
7970
- h(Ae.directFetch(i, void 0, "GET", !1));
7970
+ h(Te.directFetch(i, void 0, "GET", !1));
7971
7971
  });
7972
7972
  }), c.next = 3, Promise.all(s);
7973
7973
  case 3:
@@ -8192,7 +8192,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
8192
8192
  var n, i, a;
8193
8193
  w(this, r);
8194
8194
  var s, o, l, c, u, d, h = JSON.parse(JSON.stringify(e.directConnection)), p = h.openAI;
8195
- a = q(this, r, [e, Ae.buildKeyVerificationDetails(), Ae.buildHeaders, p]), a.insertKeyPlaceholderText = "OpenAI API Key", a.keyHelpUrl = "https://platform.openai.com/account/api-keys", a.url = "", a.permittedErrorPrefixes = ["Incorrect", "Please send text"], a.searchedForThreadId = !1, a.config = {}, a.newAssistantDetails = {
8195
+ a = q(this, r, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, p]), a.insertKeyPlaceholderText = "OpenAI API Key", a.keyHelpUrl = "https://platform.openai.com/account/api-keys", a.url = "", a.permittedErrorPrefixes = ["Incorrect", "Please send text"], a.searchedForThreadId = !1, a.config = {}, a.newAssistantDetails = {
8196
8196
  model: "gpt-4"
8197
8197
  }, a.shouldFetchHistory = !1, a.waitingForStreamResponse = !1, a.isSSEStream = !1;
8198
8198
  var f = (s = h.openAI) == null ? void 0 : s.assistant;
@@ -8345,7 +8345,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
8345
8345
  return m().wrap(function(o) {
8346
8346
  for (; ; ) switch (o.prev = o.next) {
8347
8347
  case 0:
8348
- return o.prev = 0, this.url = r.NEW_ASSISTANT_URL, o.next = 4, Ae.directFetch(this, JSON.parse(JSON.stringify(this.newAssistantDetails)), "POST");
8348
+ return o.prev = 0, this.url = r.NEW_ASSISTANT_URL, o.next = 4, Te.directFetch(this, JSON.parse(JSON.stringify(this.newAssistantDetails)), "POST");
8349
8349
  case 4:
8350
8350
  return a = o.sent, o.abrupt("return", (this.config.assistant_id = a.id, this.config.assistant_id));
8351
8351
  case 8:
@@ -8423,7 +8423,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
8423
8423
  l.next = 8;
8424
8424
  break;
8425
8425
  }
8426
- return this.url = "".concat(r.THREAD_PREFIX, "/").concat(this.sessionId, "/runs"), l.next = 4, Ae.directFetch(this, JSON.parse(JSON.stringify(this.rawBody)), "POST");
8426
+ return this.url = "".concat(r.THREAD_PREFIX, "/").concat(this.sessionId, "/runs"), l.next = 4, Te.directFetch(this, JSON.parse(JSON.stringify(this.rawBody)), "POST");
8427
8427
  case 4:
8428
8428
  s = l.sent, this.run_id = s.id, l.next = 9;
8429
8429
  break;
@@ -8448,7 +8448,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
8448
8448
  return m().wrap(function(h) {
8449
8449
  for (; ; ) switch (h.prev = h.next) {
8450
8450
  case 0:
8451
- return s = u.length > 1 && u[1] !== void 0 ? u[1] : !1, this.url = "".concat(r.THREAD_PREFIX, "/").concat(a, "/messages?order=desc"), h.next = 4, Ae.directFetch(this, {}, "GET");
8451
+ return s = u.length > 1 && u[1] !== void 0 ? u[1] : !1, this.url = "".concat(r.THREAD_PREFIX, "/").concat(a, "/messages?order=desc"), h.next = 4, Te.directFetch(this, {}, "GET");
8452
8452
  case 4:
8453
8453
  if (c = h.sent, h.t0 = !s && this.deepChat.responseInterceptor, !h.t0) {
8454
8454
  h.next = 10;
@@ -8574,7 +8574,7 @@ var Lt = ss, Gr = /* @__PURE__ */ function(t) {
8574
8574
  d.next = 19;
8575
8575
  break;
8576
8576
  case 17:
8577
- return d.next = 19, Ae.directFetch(this, {
8577
+ return d.next = 19, Te.directFetch(this, {
8578
8578
  tool_outputs: c
8579
8579
  }, "POST");
8580
8580
  case 19:
@@ -8773,7 +8773,7 @@ var jf = Gr, Kr = /* @__PURE__ */ function(t) {
8773
8773
  }
8774
8774
  }
8775
8775
  };
8776
- n = q(this, r, [e, Ae.buildKeyVerificationDetails(), Ae.buildHeaders, s, o]), n.insertKeyPlaceholderText = "OpenAI API Key", n.keyHelpUrl = "https://platform.openai.com/account/api-keys", n.introPanelMarkUp = `
8776
+ n = q(this, r, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, s, o]), n.insertKeyPlaceholderText = "OpenAI API Key", n.keyHelpUrl = "https://platform.openai.com/account/api-keys", n.introPanelMarkUp = `
8777
8777
  <div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI DALL·E</b></div>
8778
8778
  <p><b>Insert text</b> to generate an image.</p>
8779
8779
  <p><b>Upload 1</b> PNG image to generate its variation and optionally insert text to specify the change.</p>
@@ -8914,7 +8914,7 @@ var Hf = Kr, Uf = /* @__PURE__ */ function(t) {
8914
8914
  var n, i, a;
8915
8915
  w(this, r);
8916
8916
  var s, o, l, c, u = JSON.parse(JSON.stringify(e.directConnection)), d = u.openAI;
8917
- a = q(this, r, [e, Ae.buildKeyVerificationDetails(), Ae.buildHeaders, d]), a.insertKeyPlaceholderText = "OpenAI API Key", a.keyHelpUrl = "https://platform.openai.com/account/api-keys", a.url = "https://api.openai.com/v1/chat/completions", a.permittedErrorPrefixes = ["Incorrect"], a.asyncCallInProgress = !1, a._systemMessage = r.generateSystemMessage("You are a helpful assistant.");
8917
+ a = q(this, r, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, d]), a.insertKeyPlaceholderText = "OpenAI API Key", a.keyHelpUrl = "https://platform.openai.com/account/api-keys", a.url = "https://api.openai.com/v1/chat/completions", a.permittedErrorPrefixes = ["Incorrect"], a.asyncCallInProgress = !1, a._systemMessage = r.generateSystemMessage("You are a helpful assistant.");
8918
8918
  var h = (s = u.openAI) == null ? void 0 : s.chat;
8919
8919
  if (z(h) == "object") {
8920
8920
  h.system_prompt && (a._systemMessage = r.generateSystemMessage(h.system_prompt));
@@ -9670,7 +9670,7 @@ var Gf = /* @__PURE__ */ function() {
9670
9670
  key: "createAudioElement",
9671
9671
  value: function(e, n) {
9672
9672
  var i = document.createElement("audio");
9673
- return i.src = e.src, i.classList.add("audio-player"), i.controls = !0, gn.IS_SAFARI && (i.classList.add("audio-player-safari"), i.classList.add(n === J.USER_ROLE ? "audio-player-safari-right" : "audio-player-safari-left")), i;
9673
+ return i.src = e.src, i.classList.add("audio-player"), i.controls = !0, vn.IS_SAFARI && (i.classList.add("audio-player-safari"), i.classList.add(n === J.USER_ROLE ? "audio-player-safari-right" : "audio-player-safari-left")), i;
9674
9674
  }
9675
9675
  }, {
9676
9676
  key: "addNewAudioMessage",
@@ -9839,7 +9839,7 @@ var Gf = /* @__PURE__ */ function() {
9839
9839
  }, {
9840
9840
  key: "populateIntroPanel",
9841
9841
  value: function(n, i, a) {
9842
- (n || i) && (this._introPanel = new Kf(n, i, a), this._introPanel._elementRef && (vn.apply(this, this._introPanel._elementRef), this.elementRef.appendChild(this._introPanel._elementRef)));
9842
+ (n || i) && (this._introPanel = new Kf(n, i, a), this._introPanel._elementRef && (yn.apply(this, this._introPanel._elementRef), this.elementRef.appendChild(this._introPanel._elementRef)));
9843
9843
  }
9844
9844
  }, {
9845
9845
  key: "addMultipleFiles",
@@ -10497,11 +10497,11 @@ var em = Gn, di = /* @__PURE__ */ function() {
10497
10497
  return n.id = "microphone-icon", n;
10498
10498
  }
10499
10499
  }]);
10500
- }(br), Cu = {}, Ei = {}, Ai = {}, wr = {}, Kt = {};
10501
- Object.defineProperty(Kt, "__esModule", {
10500
+ }(br), Cu = {}, Ei = {}, Ai = {}, wr = {}, Jt = {};
10501
+ Object.defineProperty(Jt, "__esModule", {
10502
10502
  value: !0
10503
10503
  });
10504
- Kt.Text = void 0;
10504
+ Jt.Text = void 0;
10505
10505
  var Ti = /* @__PURE__ */ function() {
10506
10506
  function t() {
10507
10507
  w(this, t);
@@ -10532,7 +10532,7 @@ var Ti = /* @__PURE__ */ function() {
10532
10532
  }
10533
10533
  }]);
10534
10534
  }();
10535
- Kt.Text = Ti;
10535
+ Jt.Text = Ti;
10536
10536
  Ti.FIRST_CHAR_REGEX = /\S/;
10537
10537
  Ti.DOUBLE_LINE = /\n\n/g;
10538
10538
  Ti.ONE_LINE = /\n/g;
@@ -10540,7 +10540,7 @@ Object.defineProperty(wr, "__esModule", {
10540
10540
  value: !0
10541
10541
  });
10542
10542
  wr.Translate = void 0;
10543
- var dm = Kt, hm = /* @__PURE__ */ function() {
10543
+ var dm = Jt, hm = /* @__PURE__ */ function() {
10544
10544
  function t() {
10545
10545
  w(this, t);
10546
10546
  }
@@ -10712,11 +10712,11 @@ var mm = /* @__PURE__ */ function() {
10712
10712
  }]);
10713
10713
  }();
10714
10714
  Sr.AutoScroll = mm;
10715
- var Jt = {};
10716
- Object.defineProperty(Jt, "__esModule", {
10715
+ var Zt = {};
10716
+ Object.defineProperty(Zt, "__esModule", {
10717
10717
  value: !0
10718
10718
  });
10719
- Jt.Elements = void 0;
10719
+ Zt.Elements = void 0;
10720
10720
  var gm = /* @__PURE__ */ function() {
10721
10721
  function t() {
10722
10722
  w(this, t);
@@ -10763,12 +10763,12 @@ var gm = /* @__PURE__ */ function() {
10763
10763
  }
10764
10764
  }]);
10765
10765
  }();
10766
- Jt.Elements = gm;
10767
- var Zt = {};
10768
- Object.defineProperty(Zt, "__esModule", {
10766
+ Zt.Elements = gm;
10767
+ var Yt = {};
10768
+ Object.defineProperty(Yt, "__esModule", {
10769
10769
  value: !0
10770
10770
  });
10771
- Zt.Cursor = void 0;
10771
+ Yt.Cursor = void 0;
10772
10772
  var vm = /* @__PURE__ */ function() {
10773
10773
  function t() {
10774
10774
  w(this, t);
@@ -10847,12 +10847,12 @@ var vm = /* @__PURE__ */ function() {
10847
10847
  }
10848
10848
  }]);
10849
10849
  }();
10850
- Zt.Cursor = vm;
10850
+ Yt.Cursor = vm;
10851
10851
  Object.defineProperty(_r, "__esModule", {
10852
10852
  value: !0
10853
10853
  });
10854
10854
  _r.CommandUtils = void 0;
10855
- var qo = Sr, ym = Jt, bm = An, Vo = Zt, Wo = Kt, wm = /* @__PURE__ */ function() {
10855
+ var qo = Sr, ym = Zt, bm = An, Vo = Yt, Wo = Jt, wm = /* @__PURE__ */ function() {
10856
10856
  function t() {
10857
10857
  w(this, t);
10858
10858
  }
@@ -10947,7 +10947,7 @@ Object.defineProperty(Ii, "__esModule", {
10947
10947
  value: !0
10948
10948
  });
10949
10949
  Ii.Highlight = void 0;
10950
- var km = Jt, Ln = Zt, _m = /* @__PURE__ */ function() {
10950
+ var km = Zt, Ln = Yt, _m = /* @__PURE__ */ function() {
10951
10951
  function t() {
10952
10952
  w(this, t);
10953
10953
  }
@@ -10998,7 +10998,7 @@ Object.defineProperty(Li, "__esModule", {
10998
10998
  value: !0
10999
10999
  });
11000
11000
  Li.Padding = void 0;
11001
- var Sm = Jt, Go = Zt, en = Kt, Cm = /* @__PURE__ */ function() {
11001
+ var Sm = Zt, Go = Yt, tn = Jt, Cm = /* @__PURE__ */ function() {
11002
11002
  function t() {
11003
11003
  w(this, t);
11004
11004
  }
@@ -11007,11 +11007,11 @@ var Sm = Jt, Go = Zt, en = Kt, Cm = /* @__PURE__ */ function() {
11007
11007
  value: function(e, n) {
11008
11008
  if (document.activeElement === n && n.selectionStart !== null) {
11009
11009
  var i = n.selectionStart, a = n.value[i - 1], s = n.selectionEnd === null ? i : n.selectionEnd, o = n.value[s];
11010
- en.Text.isCharDefined(a) && (e.startPadding = " ", e.numberOfSpacesBeforeNewText = 1), en.Text.isCharDefined(o) && (e.endPadding = " ", e.numberOfSpacesAfterNewText = 1), e.isCursorAtEnd = n.value.length === s;
11010
+ tn.Text.isCharDefined(a) && (e.startPadding = " ", e.numberOfSpacesBeforeNewText = 1), tn.Text.isCharDefined(o) && (e.endPadding = " ", e.numberOfSpacesAfterNewText = 1), e.isCursorAtEnd = n.value.length === s;
11011
11011
  return;
11012
11012
  }
11013
11013
  var l = n.value[n.value.length - 1];
11014
- en.Text.isCharDefined(l) && (e.startPadding = " ", e.numberOfSpacesBeforeNewText = 1), e.isCursorAtEnd = !0;
11014
+ tn.Text.isCharDefined(l) && (e.startPadding = " ", e.numberOfSpacesBeforeNewText = 1), e.isCursorAtEnd = !0;
11015
11015
  }
11016
11016
  }, {
11017
11017
  key: "setStateForGenericElement",
@@ -11021,12 +11021,12 @@ var Sm = Jt, Go = Zt, en = Kt, Cm = /* @__PURE__ */ function() {
11021
11021
  var o = window.getSelection();
11022
11022
  if (o != null && o.focusNode) {
11023
11023
  var l = Go.Cursor.getGenericElementCursorOffset(n, o, !0), c = (i = n.textContent) === null || i === void 0 ? void 0 : i[l - 1], u = Go.Cursor.getGenericElementCursorOffset(n, o, !1), d = (a = n.textContent) === null || a === void 0 ? void 0 : a[u];
11024
- en.Text.isCharDefined(c) && (e.startPadding = " "), en.Text.isCharDefined(d) && (e.endPadding = " "), e.isCursorAtEnd = ((s = n.textContent) === null || s === void 0 ? void 0 : s.length) === u;
11024
+ tn.Text.isCharDefined(c) && (e.startPadding = " "), tn.Text.isCharDefined(d) && (e.endPadding = " "), e.isCursorAtEnd = ((s = n.textContent) === null || s === void 0 ? void 0 : s.length) === u;
11025
11025
  return;
11026
11026
  }
11027
11027
  }
11028
11028
  var h = n.innerText.charAt(n.innerText.length - 1);
11029
- en.Text.isCharDefined(h) && (e.startPadding = " "), e.isCursorAtEnd = !0;
11029
+ tn.Text.isCharDefined(h) && (e.startPadding = " "), e.isCursorAtEnd = !0;
11030
11030
  }
11031
11031
  }, {
11032
11032
  key: "setState",
@@ -11054,7 +11054,7 @@ Object.defineProperty(kr, "__esModule", {
11054
11054
  value: !0
11055
11055
  });
11056
11056
  kr.Speech = void 0;
11057
- var Ko = Ri, xm = Oi, Jo = _r, Dr = Sr, fa = Ii, Xe = Jt, ma = Li, Zo = An, Yo = Zt, ga = Kt, Em = /* @__PURE__ */ function() {
11057
+ var Ko = Ri, xm = Oi, Jo = _r, Dr = Sr, fa = Ii, Xe = Zt, ma = Li, Zo = An, Yo = Yt, ga = Jt, Em = /* @__PURE__ */ function() {
11058
11058
  function t() {
11059
11059
  w(this, t), this.finalTranscript = "", this.interimSpan = Xe.Elements.createInterimSpan(), this.finalSpan = Xe.Elements.createGenericSpan(), this.scrollingSpan = Xe.Elements.createGenericSpan(), this.isCursorAtEnd = !1, this.spansPopulated = !1, this.startPadding = "", this.endPadding = "", this.numberOfSpacesBeforeNewText = 0, this.numberOfSpacesAfterNewText = 0, this.isHighlighted = !1, this.primitiveTextRecorded = !1, this.recognizing = !1, this._displayInterimResults = !0, this.insertInCursorLocation = !0, this.autoScroll = !0, this.isRestarting = !1, this.isPaused = !1, this.isWaitingForCommand = !1, this.isTargetInShadow = !1, this.cannotBeStopped = !1, this.resetState();
11060
11060
  }
@@ -11836,7 +11836,7 @@ var Ls = Tu, Ms = /* @__PURE__ */ function() {
11836
11836
  key: "createAnyFileAttachment",
11837
11837
  value: function(e) {
11838
11838
  var n = document.createElement("div");
11839
- n.classList.add("border-bound-attachment"), gn.IS_SAFARI && n.classList.add("border-bound-attachment-safari");
11839
+ n.classList.add("border-bound-attachment"), vn.IS_SAFARI && n.classList.add("border-bound-attachment-safari");
11840
11840
  var i = document.createElement("div");
11841
11841
  i.classList.add("any-file-attachment-text");
11842
11842
  var a = document.createElement("div");
@@ -11926,7 +11926,7 @@ var Ls = Tu, Ms = /* @__PURE__ */ function() {
11926
11926
  key: "createAudioContainer",
11927
11927
  value: function() {
11928
11928
  var n = document.createElement("div");
11929
- return n.classList.add("border-bound-attachment", "audio-attachment-icon-container"), gn.IS_SAFARI && n.classList.add("border-bound-attachment-safari"), n;
11929
+ return n.classList.add("border-bound-attachment", "audio-attachment-icon-container"), vn.IS_SAFARI && n.classList.add("border-bound-attachment-safari"), n;
11930
11930
  }
11931
11931
  }, {
11932
11932
  key: "addAudioElements",
@@ -13143,7 +13143,7 @@ let Lu = class {
13143
13143
  return this.cssText;
13144
13144
  }
13145
13145
  };
13146
- const x = (t) => new Lu(typeof t == "string" ? t : t + "", void 0, $s), Te = (t, ...r) => {
13146
+ const x = (t) => new Lu(typeof t == "string" ? t : t + "", void 0, $s), Re = (t, ...r) => {
13147
13147
  const e = t.length === 1 ? t[0] : r.reduce((n, i, a) => n + ((s) => {
13148
13148
  if (s._$cssResult$ === !0) return s.cssText;
13149
13149
  if (typeof s == "number") return s;
@@ -13196,7 +13196,7 @@ const { is: i0, defineProperty: a0, getOwnPropertyDescriptor: s0, getOwnProperty
13196
13196
  return e;
13197
13197
  } }, ji = (t, r) => !i0(t, r), ul = { attribute: !0, type: String, converter: hi, reflect: !1, hasChanged: ji };
13198
13198
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), wt.litPropertyMetadata ?? (wt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
13199
- let hn = class extends HTMLElement {
13199
+ let pn = class extends HTMLElement {
13200
13200
  static addInitializer(r) {
13201
13201
  this._$Ei(), (this.l ?? (this.l = [])).push(r);
13202
13202
  }
@@ -13394,7 +13394,7 @@ let hn = class extends HTMLElement {
13394
13394
  firstUpdated(r) {
13395
13395
  }
13396
13396
  };
13397
- hn.elementStyles = [], hn.shadowRootOptions = { mode: "open" }, hn[Zn("elementProperties")] = /* @__PURE__ */ new Map(), hn[Zn("finalized")] = /* @__PURE__ */ new Map(), ba == null || ba({ ReactiveElement: hn }), (wt.reactiveElementVersions ?? (wt.reactiveElementVersions = [])).push("2.0.4");
13397
+ pn.elementStyles = [], pn.shadowRootOptions = { mode: "open" }, pn[Zn("elementProperties")] = /* @__PURE__ */ new Map(), pn[Zn("finalized")] = /* @__PURE__ */ new Map(), ba == null || ba({ ReactiveElement: pn }), (wt.reactiveElementVersions ?? (wt.reactiveElementVersions = [])).push("2.0.4");
13398
13398
  /**
13399
13399
  * @license
13400
13400
  * Copyright 2017 Google LLC
@@ -13456,12 +13456,12 @@ class ur {
13456
13456
  return n.innerHTML = r, n;
13457
13457
  }
13458
13458
  }
13459
- function yn(t, r, e = t, n) {
13459
+ function bn(t, r, e = t, n) {
13460
13460
  var s, o;
13461
13461
  if (r === St) return r;
13462
13462
  let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
13463
13463
  const a = cr(r) ? void 0 : r._$litDirective$;
13464
- return (i == null ? void 0 : i.constructor) !== a && ((o = i == null ? void 0 : i._$AO) == null || o.call(i, !1), a === void 0 ? i = void 0 : (i = new a(t), i._$AT(t, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (r = yn(t, i._$AS(t, r.values), i, n)), r;
13464
+ return (i == null ? void 0 : i.constructor) !== a && ((o = i == null ? void 0 : i._$AO) == null || o.call(i, !1), a === void 0 ? i = void 0 : (i = new a(t), i._$AT(t, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (r = bn(t, i._$AS(t, r.values), i, n)), r;
13465
13465
  }
13466
13466
  class f0 {
13467
13467
  constructor(r, e) {
@@ -13511,7 +13511,7 @@ class Cr {
13511
13511
  return this._$AB;
13512
13512
  }
13513
13513
  _$AI(r, e = this) {
13514
- r = yn(this, r, e), cr(r) ? r === oe || r == null || r === "" ? (this._$AH !== oe && this._$AR(), this._$AH = oe) : r !== this._$AH && r !== St && this._(r) : r._$litType$ !== void 0 ? this.$(r) : r.nodeType !== void 0 ? this.T(r) : h0(r) ? this.k(r) : this._(r);
13514
+ r = bn(this, r, e), cr(r) ? r === oe || r == null || r === "" ? (this._$AH !== oe && this._$AR(), this._$AH = oe) : r !== this._$AH && r !== St && this._(r) : r._$litType$ !== void 0 ? this.$(r) : r.nodeType !== void 0 ? this.T(r) : h0(r) ? this.k(r) : this._(r);
13515
13515
  }
13516
13516
  S(r) {
13517
13517
  return this._$AA.parentNode.insertBefore(r, this._$AB);
@@ -13567,11 +13567,11 @@ class Hi {
13567
13567
  _$AI(r, e = this, n, i) {
13568
13568
  const a = this.strings;
13569
13569
  let s = !1;
13570
- if (a === void 0) r = yn(this, r, e, 0), s = !cr(r) || r !== this._$AH && r !== St, s && (this._$AH = r);
13570
+ if (a === void 0) r = bn(this, r, e, 0), s = !cr(r) || r !== this._$AH && r !== St, s && (this._$AH = r);
13571
13571
  else {
13572
13572
  const o = r;
13573
13573
  let l, c;
13574
- for (r = a[0], l = 0; l < a.length - 1; l++) c = yn(this, o[n + l], e, l), c === St && (c = this._$AH[l]), s || (s = !cr(c) || c !== this._$AH[l]), c === oe ? r = oe : r !== oe && (r += (c ?? "") + a[l + 1]), this._$AH[l] = c;
13574
+ for (r = a[0], l = 0; l < a.length - 1; l++) c = bn(this, o[n + l], e, l), c === St && (c = this._$AH[l]), s || (s = !cr(c) || c !== this._$AH[l]), c === oe ? r = oe : r !== oe && (r += (c ?? "") + a[l + 1]), this._$AH[l] = c;
13575
13575
  }
13576
13576
  s && !i && this.j(r);
13577
13577
  }
@@ -13600,7 +13600,7 @@ class v0 extends Hi {
13600
13600
  super(r, e, n, i, a), this.type = 5;
13601
13601
  }
13602
13602
  _$AI(r, e = this) {
13603
- if ((r = yn(this, r, e, 0) ?? oe) === St) return;
13603
+ if ((r = bn(this, r, e, 0) ?? oe) === St) return;
13604
13604
  const n = this._$AH, i = r === oe && n !== oe || r.capture !== n.capture || r.once !== n.once || r.passive !== n.passive, a = r !== oe && (n === oe || i);
13605
13605
  i && this.element.removeEventListener(this.name, this, n), a && this.element.addEventListener(this.name, this, r), this._$AH = r;
13606
13606
  }
@@ -13617,7 +13617,7 @@ class y0 {
13617
13617
  return this._$AM._$AU;
13618
13618
  }
13619
13619
  _$AI(r) {
13620
- yn(this, r);
13620
+ bn(this, r);
13621
13621
  }
13622
13622
  }
13623
13623
  const ka = Yn.litHtmlPolyfillSupport;
@@ -13636,7 +13636,7 @@ const b0 = (t, r, e) => {
13636
13636
  * Copyright 2017 Google LLC
13637
13637
  * SPDX-License-Identifier: BSD-3-Clause
13638
13638
  */
13639
- let Xn = class extends hn {
13639
+ let Xn = class extends pn {
13640
13640
  constructor() {
13641
13641
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
13642
13642
  }
@@ -13666,7 +13666,7 @@ Xn._$litElement$ = !0, Xn.finalized = !0, (qc = globalThis.litElementHydrateSupp
13666
13666
  const _a = globalThis.litElementPolyfillSupport;
13667
13667
  _a == null || _a({ LitElement: Xn });
13668
13668
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.6");
13669
- const w0 = Te`
13669
+ const w0 = Re`
13670
13670
  :host .button {
13671
13671
  --font-family: var(--lr-poppins);
13672
13672
  --font-size: var(--lr-text-14);
@@ -13758,7 +13758,7 @@ const w0 = Te`
13758
13758
  :host([iconPosition='right']) .button {
13759
13759
  flex-direction: row-reverse;
13760
13760
  }
13761
- `, k0 = Te`
13761
+ `, k0 = Re`
13762
13762
  :host([variant='primary']) .button::before {
13763
13763
  position: absolute;
13764
13764
  content: '';
@@ -13967,7 +13967,7 @@ function Z(t) {
13967
13967
  * Copyright 2017 Google LLC
13968
13968
  * SPDX-License-Identifier: BSD-3-Clause
13969
13969
  */
13970
- function Yt(t) {
13970
+ function Xt(t) {
13971
13971
  return Z({ ...t, state: !0, attribute: !1 });
13972
13972
  }
13973
13973
  /**
@@ -13975,7 +13975,7 @@ function Yt(t) {
13975
13975
  * Copyright 2018 Google LLC
13976
13976
  * SPDX-License-Identifier: BSD-3-Clause
13977
13977
  */
13978
- const pn = (t) => t ?? oe;
13978
+ const fn = (t) => t ?? oe;
13979
13979
  /**
13980
13980
  * @license
13981
13981
  * Copyright 2017 Google LLC
@@ -14250,11 +14250,11 @@ function fg(t, r) {
14250
14250
  function Hs() {
14251
14251
  }
14252
14252
  var mg = 4294967295;
14253
- function bn(t) {
14253
+ function wn(t) {
14254
14254
  this.__wrapped__ = t, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = mg, this.__views__ = [];
14255
14255
  }
14256
- bn.prototype = Wi(Hs.prototype);
14257
- bn.prototype.constructor = bn;
14256
+ wn.prototype = Wi(Hs.prototype);
14257
+ wn.prototype.constructor = wn;
14258
14258
  function gg() {
14259
14259
  }
14260
14260
  var Wu = fi ? function(t) {
@@ -14268,11 +14268,11 @@ function bg(t) {
14268
14268
  }
14269
14269
  return r;
14270
14270
  }
14271
- function wn(t, r) {
14271
+ function kn(t, r) {
14272
14272
  this.__wrapped__ = t, this.__actions__ = [], this.__chain__ = !!r, this.__index__ = 0, this.__values__ = void 0;
14273
14273
  }
14274
- wn.prototype = Wi(Hs.prototype);
14275
- wn.prototype.constructor = wn;
14274
+ kn.prototype = Wi(Hs.prototype);
14275
+ kn.prototype.constructor = kn;
14276
14276
  function Us(t, r) {
14277
14277
  var e = -1, n = t.length;
14278
14278
  for (r || (r = Array(n)); ++e < n; )
@@ -14280,26 +14280,26 @@ function Us(t, r) {
14280
14280
  return r;
14281
14281
  }
14282
14282
  function wg(t) {
14283
- if (t instanceof bn)
14283
+ if (t instanceof wn)
14284
14284
  return t.clone();
14285
- var r = new wn(t.__wrapped__, t.__chain__);
14285
+ var r = new kn(t.__wrapped__, t.__chain__);
14286
14286
  return r.__actions__ = Us(t.__actions__), r.__index__ = t.__index__, r.__values__ = t.__values__, r;
14287
14287
  }
14288
14288
  var kg = Object.prototype, _g = kg.hasOwnProperty;
14289
14289
  function mi(t) {
14290
- if (Rt(t) && !it(t) && !(t instanceof bn)) {
14291
- if (t instanceof wn)
14290
+ if (Rt(t) && !it(t) && !(t instanceof wn)) {
14291
+ if (t instanceof kn)
14292
14292
  return t;
14293
14293
  if (_g.call(t, "__wrapped__"))
14294
14294
  return wg(t);
14295
14295
  }
14296
- return new wn(t);
14296
+ return new kn(t);
14297
14297
  }
14298
14298
  mi.prototype = Hs.prototype;
14299
14299
  mi.prototype.constructor = mi;
14300
14300
  function Sg(t) {
14301
14301
  var r = bg(t), e = mi[r];
14302
- if (typeof e != "function" || !(r in bn.prototype))
14302
+ if (typeof e != "function" || !(r in wn.prototype))
14303
14303
  return !1;
14304
14304
  if (t === e)
14305
14305
  return !0;
@@ -15256,7 +15256,7 @@ function D2(t) {
15256
15256
  return Jl[r] ? `#${Jl[r]}` : t;
15257
15257
  }
15258
15258
  const Zl = (t) => t.length === 7 && t[1] === t[2] && t[3] === t[4] && t[5] === t[6] ? `#${t[1]}${t[3]}${t[5]}` : t;
15259
- function tn(t) {
15259
+ function nn(t) {
15260
15260
  const r = t.toString(16);
15261
15261
  return r.length === 1 ? `0${r}` : r;
15262
15262
  }
@@ -15308,9 +15308,9 @@ function pe(t, r, e, n) {
15308
15308
  }
15309
15309
  function Yl(t, r, e) {
15310
15310
  if (typeof t == "number" && typeof r == "number" && typeof e == "number")
15311
- return Zl(`#${tn(t)}${tn(r)}${tn(e)}`);
15311
+ return Zl(`#${nn(t)}${nn(r)}${nn(e)}`);
15312
15312
  if (typeof t == "object" && r === void 0 && e === void 0)
15313
- return Zl(`#${tn(t.red)}${tn(t.green)}${tn(t.blue)}`);
15313
+ return Zl(`#${nn(t.red)}${nn(t.green)}${nn(t.blue)}`);
15314
15314
  throw new tt(6);
15315
15315
  }
15316
15316
  function yi(t) {
@@ -16520,7 +16520,7 @@ const K2 = {
16520
16520
  spacing: ey,
16521
16521
  devices: X2,
16522
16522
  ...ny
16523
- }, ry = (t = "&") => Te`
16523
+ }, ry = (t = "&") => Re`
16524
16524
  &:focus {
16525
16525
  ${x(t)} {
16526
16526
  outline-offset: 3px;
@@ -16532,7 +16532,7 @@ const K2 = {
16532
16532
  }
16533
16533
  }
16534
16534
  }
16535
- `, iy = Te`
16535
+ `, iy = Re`
16536
16536
  :host {
16537
16537
  /* FONTS */
16538
16538
  --lr-poppins: ${x(C.fontFamilies.poppins)};
@@ -17040,7 +17040,7 @@ function md(t, r, e) {
17040
17040
  n !== "__proto__" && n !== "constructor" && (n in t ? typeof t[n] == "string" || t[n] instanceof String || typeof r[n] == "string" || r[n] instanceof String ? e && (t[n] = r[n]) : md(t[n], r[n], e) : t[n] = r[n]);
17041
17041
  return t;
17042
17042
  }
17043
- function nn(t) {
17043
+ function rn(t) {
17044
17044
  return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
17045
17045
  }
17046
17046
  var gy = {
@@ -17396,13 +17396,13 @@ var sc = {}, oc = function(t) {
17396
17396
  for (var aa = 0; aa < He.length; aa++)
17397
17397
  Le.push(He[aa]);
17398
17398
  else this.options.saveMissingTo === "all" ? Le = this.languageUtils.toResolveHierarchy(a.lng || this.language) : Le.push(a.lng || this.language);
17399
- var po = function(Xt, oa, fo) {
17399
+ var po = function(Qt, oa, fo) {
17400
17400
  var mo = B && fo !== b ? fo : ue;
17401
- o.options.missingKeyHandler ? o.options.missingKeyHandler(Xt, p, oa, mo, ve, a) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(Xt, p, oa, mo, ve, a), o.emit("missingKey", Xt, p, oa, b);
17401
+ o.options.missingKeyHandler ? o.options.missingKeyHandler(Qt, p, oa, mo, ve, a) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(Qt, p, oa, mo, ve, a), o.emit("missingKey", Qt, p, oa, b);
17402
17402
  };
17403
17403
  this.options.saveMissing && (this.options.saveMissingPlurals && P ? Le.forEach(function(sa) {
17404
- o.pluralResolver.getSuffixes(sa, a).forEach(function(Xt) {
17405
- po([sa], d + Xt, a["defaultValue".concat(Xt)] || H);
17404
+ o.pluralResolver.getSuffixes(sa, a).forEach(function(Qt) {
17405
+ po([sa], d + Qt, a["defaultValue".concat(Qt)] || H);
17406
17406
  });
17407
17407
  }) : po(Le, d, H));
17408
17408
  }
@@ -17877,7 +17877,7 @@ var Oy = function() {
17877
17877
  escapeValue: !0
17878
17878
  });
17879
17879
  var n = e.interpolation;
17880
- this.escape = n.escape !== void 0 ? n.escape : vy, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? nn(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? nn(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? nn(n.nestingPrefix) : n.nestingPrefixEscaped || nn("$t("), this.nestingSuffix = n.nestingSuffix ? nn(n.nestingSuffix) : n.nestingSuffixEscaped || nn(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
17880
+ this.escape = n.escape !== void 0 ? n.escape : vy, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? rn(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? rn(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? rn(n.nestingPrefix) : n.nestingPrefixEscaped || rn("$t("), this.nestingSuffix = n.nestingSuffix ? rn(n.nestingSuffix) : n.nestingSuffixEscaped || rn(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
17881
17881
  }
17882
17882
  }, {
17883
17883
  key: "reset",
@@ -18031,7 +18031,7 @@ function Iy(t) {
18031
18031
  formatOptions: e
18032
18032
  };
18033
18033
  }
18034
- function rn(t) {
18034
+ function an(t) {
18035
18035
  var r = {};
18036
18036
  return function(n, i, a) {
18037
18037
  var s = i + JSON.stringify(a), o = r[s];
@@ -18042,13 +18042,13 @@ var Ly = function() {
18042
18042
  function t() {
18043
18043
  var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
18044
18044
  ot(this, t), this.logger = nt.create("formatter"), this.options = r, this.formats = {
18045
- number: rn(function(e, n) {
18045
+ number: an(function(e, n) {
18046
18046
  var i = new Intl.NumberFormat(e, dt({}, n));
18047
18047
  return function(a) {
18048
18048
  return i.format(a);
18049
18049
  };
18050
18050
  }),
18051
- currency: rn(function(e, n) {
18051
+ currency: an(function(e, n) {
18052
18052
  var i = new Intl.NumberFormat(e, dt(dt({}, n), {}, {
18053
18053
  style: "currency"
18054
18054
  }));
@@ -18056,19 +18056,19 @@ var Ly = function() {
18056
18056
  return i.format(a);
18057
18057
  };
18058
18058
  }),
18059
- datetime: rn(function(e, n) {
18059
+ datetime: an(function(e, n) {
18060
18060
  var i = new Intl.DateTimeFormat(e, dt({}, n));
18061
18061
  return function(a) {
18062
18062
  return i.format(a);
18063
18063
  };
18064
18064
  }),
18065
- relativetime: rn(function(e, n) {
18065
+ relativetime: an(function(e, n) {
18066
18066
  var i = new Intl.RelativeTimeFormat(e, dt({}, n));
18067
18067
  return function(a) {
18068
18068
  return i.format(a, n.range || "day");
18069
18069
  };
18070
18070
  }),
18071
- list: rn(function(e, n) {
18071
+ list: an(function(e, n) {
18072
18072
  var i = new Intl.ListFormat(e, dt({}, n));
18073
18073
  return function(a) {
18074
18074
  return i.format(a);
@@ -18092,7 +18092,7 @@ var Ly = function() {
18092
18092
  }, {
18093
18093
  key: "addCached",
18094
18094
  value: function(e, n) {
18095
- this.formats[e.toLowerCase().trim()] = rn(n);
18095
+ this.formats[e.toLowerCase().trim()] = an(n);
18096
18096
  }
18097
18097
  }, {
18098
18098
  key: "format",
@@ -18725,7 +18725,7 @@ Se.reloadResources;
18725
18725
  Se.use;
18726
18726
  Se.changeLanguage;
18727
18727
  Se.getFixedT;
18728
- var Re = Se.t;
18728
+ var Ae = Se.t;
18729
18729
  Se.exists;
18730
18730
  Se.setDefaultNamespace;
18731
18731
  Se.hasLoadedNamespace;
@@ -20115,7 +20115,7 @@ function Ec(t) {
20115
20115
  });
20116
20116
  }
20117
20117
  const Ac = (t) => t instanceof Ve ? { ...t } : t;
20118
- function kn(t, r) {
20118
+ function _n(t, r) {
20119
20119
  r = r || {};
20120
20120
  const e = {};
20121
20121
  function n(c, u, d) {
@@ -20255,7 +20255,7 @@ class Dt {
20255
20255
  }
20256
20256
  }
20257
20257
  _request(r, e) {
20258
- typeof r == "string" ? (e = e || {}, e.url = r) : e = r || {}, e = kn(this.defaults, e);
20258
+ typeof r == "string" ? (e = e || {}, e.url = r) : e = r || {}, e = _n(this.defaults, e);
20259
20259
  const { transitional: n, paramsSerializer: i, headers: a } = e;
20260
20260
  n !== void 0 && ms.assertOptions(n, {
20261
20261
  silentJSONParsing: gt.transitional(gt.boolean),
@@ -20314,14 +20314,14 @@ class Dt {
20314
20314
  return u;
20315
20315
  }
20316
20316
  getUri(r) {
20317
- r = kn(this.defaults, r);
20317
+ r = _n(this.defaults, r);
20318
20318
  const e = $d(r.baseURL, r.url);
20319
20319
  return Id(e, r.params, r.paramsSerializer);
20320
20320
  }
20321
20321
  }
20322
20322
  E.forEach(["delete", "get", "head", "options"], function(r) {
20323
20323
  Dt.prototype[r] = function(e, n) {
20324
- return this.request(kn(n || {}, {
20324
+ return this.request(_n(n || {}, {
20325
20325
  method: r,
20326
20326
  url: e,
20327
20327
  data: (n || {}).data
@@ -20331,7 +20331,7 @@ E.forEach(["delete", "get", "head", "options"], function(r) {
20331
20331
  E.forEach(["post", "put", "patch"], function(r) {
20332
20332
  function e(n) {
20333
20333
  return function(a, s, o) {
20334
- return this.request(kn(o || {}, {
20334
+ return this.request(_n(o || {}, {
20335
20335
  method: r,
20336
20336
  headers: n ? {
20337
20337
  "Content-Type": "multipart/form-data"
@@ -20489,7 +20489,7 @@ Object.entries(gs).forEach(([t, r]) => {
20489
20489
  function Bd(t) {
20490
20490
  const r = new Dt(t), e = bd(Dt.prototype.request, r);
20491
20491
  return E.extend(e, Dt.prototype, r, { allOwnKeys: !0 }), E.extend(e, r, null, { allOwnKeys: !0 }), e.create = function(i) {
20492
- return Bd(kn(t, i));
20492
+ return Bd(_n(t, i));
20493
20493
  }, e;
20494
20494
  }
20495
20495
  const j = Bd(Rr);
@@ -20506,7 +20506,7 @@ j.all = function(r) {
20506
20506
  };
20507
20507
  j.spread = g3;
20508
20508
  j.isAxiosError = v3;
20509
- j.mergeConfig = kn;
20509
+ j.mergeConfig = _n;
20510
20510
  j.AxiosHeaders = Ve;
20511
20511
  j.formToJSON = (t) => Pd(E.isHTMLForm(t) ? new FormData(t) : t);
20512
20512
  j.getAdapter = Nd.getAdapter;
@@ -20585,13 +20585,13 @@ const se = (t, r) => {
20585
20585
  var e;
20586
20586
  return j.isAxiosError(t) && ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === r;
20587
20587
  };
20588
- var zn, sn;
20588
+ var zn, on;
20589
20589
  class vs {
20590
20590
  }
20591
20591
  D(vs, "ContentTranslationGet", (zn = class {
20592
- }, D(zn, "isBadRequestProblemDetail", (r) => j.isAxiosError(r) && se(r, 400)), D(zn, "isUnauthorizeProblemDetail", (r) => j.isAxiosError(r) && se(r, 401)), D(zn, "isProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), zn)), D(vs, "ContentReportPost", (sn = class {
20593
- }, D(sn, "isBadRequestProblemDetail", (r) => j.isAxiosError(r) && se(r, 400)), D(sn, "isUnauthorizeProblemDetail", (r) => j.isAxiosError(r) && se(r, 401)), D(sn, "isValidationProblemDetails", (r) => j.isAxiosError(r) && se(r, 422)), D(sn, "isProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), sn));
20594
- const mn = class mn extends ro {
20592
+ }, D(zn, "isBadRequestProblemDetail", (r) => j.isAxiosError(r) && se(r, 400)), D(zn, "isUnauthorizeProblemDetail", (r) => j.isAxiosError(r) && se(r, 401)), D(zn, "isProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), zn)), D(vs, "ContentReportPost", (on = class {
20593
+ }, D(on, "isBadRequestProblemDetail", (r) => j.isAxiosError(r) && se(r, 400)), D(on, "isUnauthorizeProblemDetail", (r) => j.isAxiosError(r) && se(r, 401)), D(on, "isValidationProblemDetails", (r) => j.isAxiosError(r) && se(r, 422)), D(on, "isProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), on));
20594
+ const gn = class gn extends ro {
20595
20595
  constructor() {
20596
20596
  super(...arguments);
20597
20597
  /** ContentService API methods */
@@ -20603,7 +20603,7 @@ const mn = class mn extends ro {
20603
20603
  * @request GET:/api/content/translation
20604
20604
  */
20605
20605
  D(this, "contentTranslationGet", (e, n = {}) => this.request({
20606
- path: mn.Endpoints.contentTranslationGet,
20606
+ path: gn.Endpoints.contentTranslationGet,
20607
20607
  method: "GET",
20608
20608
  query: e,
20609
20609
  ...n
@@ -20616,7 +20616,7 @@ const mn = class mn extends ro {
20616
20616
  * @request POST:/api/content/report
20617
20617
  */
20618
20618
  D(this, "contentReportPost", (e, n = {}) => this.request({
20619
- path: mn.Endpoints.contentReportPost,
20619
+ path: gn.Endpoints.contentReportPost,
20620
20620
  method: "POST",
20621
20621
  body: e,
20622
20622
  type: "multipart/form-data",
@@ -20625,12 +20625,12 @@ const mn = class mn extends ro {
20625
20625
  }
20626
20626
  };
20627
20627
  /** ContentService API static endpoints */
20628
- D(mn, "Endpoints", {
20628
+ D(gn, "Endpoints", {
20629
20629
  contentTranslationGet: "/api/content/translation",
20630
20630
  contentReportPost: "/api/content/report"
20631
20631
  }), /** ContentService API static errors typeguards */
20632
- D(mn, "Errors", vs);
20633
- let ys = mn;
20632
+ D(gn, "Errors", vs);
20633
+ let ys = gn;
20634
20634
  class y3 {
20635
20635
  constructor(r) {
20636
20636
  this.config = r;
@@ -20701,7 +20701,7 @@ const b3 = "fr", w3 = (t) => {
20701
20701
  }) : this.renderElement();
20702
20702
  }
20703
20703
  };
20704
- co.styles = Te`
20704
+ co.styles = Re`
20705
20705
  ${iy}
20706
20706
  `;
20707
20707
  let me = co;
@@ -20726,7 +20726,7 @@ const jd = Symbol.for(""), _3 = (t) => {
20726
20726
  (r = Oc.get(d)) === void 0 && (s.raw = s, Oc.set(d, r = s)), e = o;
20727
20727
  }
20728
20728
  return t(r, ...e);
20729
- }, an = S3(be);
20729
+ }, sn = S3(be);
20730
20730
  function C3(t, r) {
20731
20731
  return function(e, n) {
20732
20732
  const i = new CustomEvent(r, {
@@ -20750,7 +20750,7 @@ function x3(t) {
20750
20750
  });
20751
20751
  };
20752
20752
  }
20753
- const E3 = Te`
20753
+ const E3 = Re`
20754
20754
  @keyframes rotate360 {
20755
20755
  from {
20756
20756
  transform: rotate(0deg);
@@ -20764,7 +20764,7 @@ const E3 = Te`
20764
20764
  vertical-align: middle;
20765
20765
  animation: rotate360 1s linear infinite;
20766
20766
  }
20767
- `, A3 = Te`
20767
+ `, A3 = Re`
20768
20768
  :host {
20769
20769
  display: inline-block;
20770
20770
  transition: fill 0.2s, stroke 0.2s;
@@ -20843,7 +20843,7 @@ let gr = class extends me {
20843
20843
  return be`<lr-icon-spinner
20844
20844
  size=${this.size}
20845
20845
  class="spinner"
20846
- data-cerberus="${pn(this.dataCerberus)}"
20846
+ data-cerberus="${fn(this.dataCerberus)}"
20847
20847
  ></lr-icon-spinner> `;
20848
20848
  }
20849
20849
  };
@@ -20887,23 +20887,23 @@ const ho = class ho extends me {
20887
20887
  const r = !!this.href, e = this.disabled, n = Bu({
20888
20888
  button: this.type === "button",
20889
20889
  "has-content": this._hasDefaultSlot
20890
- }), i = this.loading && this.loadingText ? this.loadingText : an`<slot></slot>`, a = this.icon ? an`<${Rc(`lr-icon-${this.icon}`)} class="icon" size=${this.size}></${Rc(
20890
+ }), i = this.loading && this.loadingText ? this.loadingText : sn`<slot></slot>`, a = this.icon ? sn`<${Rc(`lr-icon-${this.icon}`)} class="icon" size=${this.size}></${Rc(
20891
20891
  `lr-icon-${this.icon}`
20892
- )}>` : null, s = an`<lr-spinner class="loading-spinner" size="${this.size}"></lr-spinner>`, o = an`<slot name="icon">${this.loading ? s : a ?? ""}</slot>
20892
+ )}>` : null, s = sn`<lr-spinner class="loading-spinner" size="${this.size}"></lr-spinner>`, o = sn`<slot name="icon">${this.loading ? s : a ?? ""}</slot>
20893
20893
  <span class="text">${i}</span>`;
20894
- return r ? an`<a
20895
- aria-label="${pn(this.label ?? this.textContent)}"
20894
+ return r ? sn`<a
20895
+ aria-label="${fn(this.label ?? this.textContent)}"
20896
20896
  aria-disabled=${e}
20897
20897
  class=${n}
20898
- href=${pn(this.href)}
20899
- target=${pn(this.target)}
20898
+ href=${fn(this.href)}
20899
+ target=${fn(this.target)}
20900
20900
  role="button"
20901
20901
  part="base"
20902
20902
  @click=${this.handleClick}
20903
20903
  >${o}
20904
- </a>` : an`<button
20905
- aria-label="${pn(this.label ?? this.textContent)}"
20906
- aria-disabled=${pn(e)}
20904
+ </a>` : sn`<button
20905
+ aria-label="${fn(this.label ?? this.textContent)}"
20906
+ aria-disabled=${fn(e)}
20907
20907
  ?disabled=${e}
20908
20908
  class=${n}
20909
20909
  part="base"
@@ -20949,7 +20949,7 @@ Ce([
20949
20949
  Z({ type: String })
20950
20950
  ], we.prototype, "loadingText", 2);
20951
20951
  Ce([
20952
- Yt()
20952
+ Xt()
20953
20953
  ], we.prototype, "textContent", 2);
20954
20954
  Ce([
20955
20955
  x3("lr-click")
@@ -20972,7 +20972,7 @@ Ce([
20972
20972
  Et = Ce([
20973
20973
  Be("lr-button")
20974
20974
  ], Et);
20975
- const M3 = Te`
20975
+ const M3 = Re`
20976
20976
  :host {
20977
20977
  position: absolute;
20978
20978
  display: none;
@@ -21020,7 +21020,7 @@ var P3 = Object.defineProperty, F3 = Object.getOwnPropertyDescriptor, ao = (t, r
21020
21020
  (s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
21021
21021
  return n && i && P3(r, e, i), i;
21022
21022
  };
21023
- let _n = class extends me {
21023
+ let Sn = class extends me {
21024
21024
  constructor() {
21025
21025
  super(...arguments), this.active = !0, this.blurring = !1;
21026
21026
  }
@@ -21032,22 +21032,22 @@ let _n = class extends me {
21032
21032
  `;
21033
21033
  }
21034
21034
  };
21035
- _n.styles = [me.styles, M3];
21035
+ Sn.styles = [me.styles, M3];
21036
21036
  ao([
21037
21037
  Z({ type: Boolean, reflect: !0 })
21038
- ], _n.prototype, "active", 2);
21038
+ ], Sn.prototype, "active", 2);
21039
21039
  ao([
21040
21040
  Z({ type: Boolean, reflect: !0 })
21041
- ], _n.prototype, "blurring", 2);
21042
- _n = ao([
21041
+ ], Sn.prototype, "blurring", 2);
21042
+ Sn = ao([
21043
21043
  Be("lr-dimmer")
21044
- ], _n);
21044
+ ], Sn);
21045
21045
  var $3 = Object.defineProperty, N3 = Object.getOwnPropertyDescriptor, D3 = (t, r, e, n) => {
21046
21046
  for (var i = n > 1 ? void 0 : n ? N3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
21047
21047
  (s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
21048
21048
  return n && i && $3(r, e, i), i;
21049
21049
  };
21050
- let Ic = class extends _n {
21050
+ let Ic = class extends Sn {
21051
21051
  constructor() {
21052
21052
  super(...arguments), this.active = !0;
21053
21053
  }
@@ -21187,7 +21187,7 @@ const Da = /* @__PURE__ */ new WeakMap(), z3 = zi(class extends zd {
21187
21187
  reconnected() {
21188
21188
  this.rt(this.ct);
21189
21189
  }
21190
- }), q3 = Te`
21190
+ }), q3 = Re`
21191
21191
  :host {
21192
21192
  --chat-sticky-offset-right: 100px;
21193
21193
  --chat-sticky-offset-bottom: 5%;
@@ -21565,16 +21565,16 @@ const Da = /* @__PURE__ */ new WeakMap(), z3 = zi(class extends zd {
21565
21565
  }
21566
21566
  `
21567
21567
  };
21568
- var qn, Vn, on, ln, cn, un, qa, Va;
21568
+ var qn, Vn, ln, cn, un, dn, qa, Va;
21569
21569
  class ht {
21570
21570
  }
21571
21571
  D(ht, "ChatbotConversationsGet", (qn = class {
21572
21572
  }, D(qn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(qn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(qn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), qn)), D(ht, "ChatbotConversationsSummaryGet", (Vn = class {
21573
- }, D(Vn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(Vn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(Vn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), Vn)), D(ht, "ChatbotConversationsPost", (on = class {
21574
- }, D(on, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(on, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(on, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(on, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), on)), D(ht, "ChatbotConversationsRatePost", (ln = class {
21575
- }, D(ln, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(ln, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(ln, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(ln, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), ln)), D(ht, "ChatbotConversationsMessagesRatePost", (cn = class {
21576
- }, D(cn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(cn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(cn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(cn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), cn)), D(ht, "ChatbotConversationsInteractionsSummarizePost", (un = class {
21577
- }, D(un, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(un, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(un, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(un, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), un)), D(ht, "ChatbotIntegrationsPost", (qa = class {
21573
+ }, D(Vn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(Vn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(Vn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), Vn)), D(ht, "ChatbotConversationsPost", (ln = class {
21574
+ }, D(ln, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(ln, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(ln, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(ln, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), ln)), D(ht, "ChatbotConversationsRatePost", (cn = class {
21575
+ }, D(cn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(cn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(cn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(cn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), cn)), D(ht, "ChatbotConversationsMessagesRatePost", (un = class {
21576
+ }, D(un, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(un, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(un, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(un, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), un)), D(ht, "ChatbotConversationsInteractionsSummarizePost", (dn = class {
21577
+ }, D(dn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && se(r, 400)), D(dn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && se(r, 404)), D(dn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && se(r, 500)), D(dn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && se(r, 503)), dn)), D(ht, "ChatbotIntegrationsPost", (qa = class {
21578
21578
  }, D(qa, "isUnauthorizedProblemDetails", (r) => j.isAxiosError(r) && se(r, 401)), qa)), D(ht, "ChatbotIntegrationsGet", (Va = class {
21579
21579
  }, D(Va, "isUnauthorizedProblemDetails", (r) => j.isAxiosError(r) && se(r, 401)), Va));
21580
21580
  const Ue = class Ue extends ro {
@@ -21707,7 +21707,7 @@ D(Ue, "Endpoints", {
21707
21707
  chatbotIntegrationsGet: "/api/chatbot/integrations"
21708
21708
  }), /** ChatbotService API static errors typeguards */
21709
21709
  D(Ue, "Errors", ht);
21710
- let Sn = Ue;
21710
+ let zt = Ue;
21711
21711
  const V3 = /* @__PURE__ */ new WeakMap();
21712
21712
  let Lc = 0;
21713
21713
  const Ba = /* @__PURE__ */ new Map(), Mc = /* @__PURE__ */ new WeakSet(), Pc = () => new Promise((t) => requestAnimationFrame(t)), Fc = [{ transform: "translateY(100%) scale(0)", opacity: 0 }], $c = [{ opacity: 0 }], Nc = [{ opacity: 0 }, { opacity: 1 }], Dc = (t, r) => {
@@ -21917,7 +21917,7 @@ class J3 extends y3 {
21917
21917
  getFallbackTranslationsMaps() {
21918
21918
  return {
21919
21919
  "fr-FR": async () => ({
21920
- chatbot: (await import("./chatbot-Bo5XYKzS.js")).default
21920
+ chatbot: (await import("./chatbot-Aqi3JULC.js")).default
21921
21921
  }),
21922
21922
  "pt-PT": async () => {
21923
21923
  throw Error("Not available yet");
@@ -22013,7 +22013,7 @@ function Y3() {
22013
22013
  function so(t) {
22014
22014
  return new Promise((r) => setTimeout(r, t));
22015
22015
  }
22016
- const Hc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"), X3 = Te`
22016
+ const Hc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"), X3 = Re`
22017
22017
  :host {
22018
22018
  position: relative;
22019
22019
  .button-container {
@@ -22209,7 +22209,7 @@ function oo({ context: t, subscribe: r }) {
22209
22209
  });
22210
22210
  };
22211
22211
  }
22212
- const rw = Te``, iw = Te`
22212
+ const rw = Re``, iw = Re`
22213
22213
  :host {
22214
22214
  --media-size: '${x(C.devices.mobile.max)}px';
22215
22215
  --border-color: transparent;
@@ -22271,7 +22271,7 @@ let xn = class extends Cn {
22271
22271
  super.connectedCallback();
22272
22272
  }
22273
22273
  getUrl(t) {
22274
- return Re("chatbot:escalation.url", { context: this.channel, message: t });
22274
+ return Ae("chatbot:escalation.url", { context: this.channel, message: t });
22275
22275
  }
22276
22276
  async handleClick() {
22277
22277
  super.handleClick(), await this.escalate();
@@ -22280,9 +22280,17 @@ let xn = class extends Cn {
22280
22280
  var e;
22281
22281
  let t = "";
22282
22282
  if (this.shouldGetSummary && (e = this.messageContext) != null && e.conversationId) {
22283
+ const n = this.messageContext.conversationId;
22283
22284
  this.loading = !0;
22284
22285
  try {
22285
- await so(200);
22286
+ await new zt({
22287
+ baseURL: this.messageContext.apiUrl,
22288
+ withCredentials: !0,
22289
+ method: "POST"
22290
+ }).chatbotConversationsSummaryGet(n), t = Ae("chatbot:escalation.message", {
22291
+ context: this.channel,
22292
+ conversationId: n
22293
+ }), await so(200);
22286
22294
  } catch {
22287
22295
  } finally {
22288
22296
  this.loading = !1;
@@ -22305,7 +22313,7 @@ ia([
22305
22313
  xn = ia([
22306
22314
  Be("lr-chatbot-escalation-pill")
22307
22315
  ], xn);
22308
- const cw = Te`
22316
+ const cw = Re`
22309
22317
  :host {
22310
22318
  display: flex;
22311
22319
  flex-direction: row;
@@ -22330,7 +22338,7 @@ ut(
22330
22338
  <path xmlns="http://www.w3.org/2000/svg" fillRule="evenodd" clipRule="evenodd" d="M18.614 7.461C17.6102 10.4284 15.9765 12.0067 14.4345 13.4963C14.2886 13.6372 14.1436 13.7773 14 13.9177V24.4999H24.7192L27.2192 14.5H18.5C18.0955 14.5 17.7309 14.2563 17.5761 13.8827C17.4213 13.509 17.5069 13.0789 17.7929 12.7929C17.944 12.6417 18.8204 11.5802 19.2535 10.3467C19.4663 9.74063 19.5429 9.17414 19.4456 8.69003C19.3629 8.27809 19.1413 7.85319 18.614 7.461ZM12 24.4999V14.5H5V24.4999H12ZM12.5885 12.5C12.7527 12.3387 12.9145 12.1816 13.0737 12.027C14.6038 10.5414 15.893 9.28958 16.732 6.78297C16.9137 6.23995 17.3109 5.79477 17.8159 5.56288C18.3387 5.32285 18.9977 5.30998 19.5733 5.69171C20.6253 6.38928 21.2061 7.2989 21.4064 8.29616C21.5995 9.25741 21.4217 10.2086 21.1405 11.0093C20.9517 11.5472 20.7031 12.0537 20.4453 12.5H27.2192C28.5204 12.5 29.4751 13.7227 29.1595 14.985L26.6595 24.985C26.4369 25.8753 25.637 26.4999 24.7192 26.4999H13H5C3.89543 26.4999 3 25.6045 3 24.4999V14.5C3 13.3954 3.89543 12.5 5 12.5H12.5885Z" fill="currentcolor"/>
22331
22339
  `
22332
22340
  );
22333
- const uw = Te`
22341
+ const uw = Re`
22334
22342
  :host .button {
22335
22343
  padding: 10px;
22336
22344
 
@@ -22359,7 +22367,7 @@ var fw = Object.defineProperty, mw = Object.getOwnPropertyDescriptor, Ir = (t, r
22359
22367
  (s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
22360
22368
  return n && i && fw(r, e, i), i;
22361
22369
  };
22362
- let zt = class extends me {
22370
+ let qt = class extends me {
22363
22371
  constructor() {
22364
22372
  var t;
22365
22373
  super(...arguments), this.upActive = !1, this.downActive = !1, this.score = (t = this.messageContext) == null ? void 0 : t.score;
@@ -22378,7 +22386,7 @@ let zt = class extends me {
22378
22386
  var n, i, a;
22379
22387
  if (!((n = this.messageContext) != null && n.apiUrl) || !((i = this.messageContext) != null && i.conversationId) || !((a = this.messageContext) != null && a.messageId))
22380
22388
  throw Error("Missing information to call API on message rating");
22381
- const r = new Sn({
22389
+ const r = new zt({
22382
22390
  baseURL: this.messageContext.apiUrl,
22383
22391
  withCredentials: !0,
22384
22392
  method: "POST"
@@ -22413,23 +22421,23 @@ let zt = class extends me {
22413
22421
  `;
22414
22422
  }
22415
22423
  };
22416
- zt.styles = [me.styles, cw];
22424
+ qt.styles = [me.styles, cw];
22417
22425
  Ir([
22418
22426
  oo({ context: ra })
22419
- ], zt.prototype, "messageContext", 2);
22427
+ ], qt.prototype, "messageContext", 2);
22420
22428
  Ir([
22421
- Yt()
22422
- ], zt.prototype, "upActive", 2);
22429
+ Xt()
22430
+ ], qt.prototype, "upActive", 2);
22423
22431
  Ir([
22424
- Yt()
22425
- ], zt.prototype, "downActive", 2);
22432
+ Xt()
22433
+ ], qt.prototype, "downActive", 2);
22426
22434
  Ir([
22427
- Yt()
22428
- ], zt.prototype, "score", 2);
22429
- zt = Ir([
22435
+ Xt()
22436
+ ], qt.prototype, "score", 2);
22437
+ qt = Ir([
22430
22438
  Be("lr-chatbot-message-rating")
22431
- ], zt);
22432
- const gw = Te`
22439
+ ], qt);
22440
+ const gw = Re`
22433
22441
  :host lr-rating-element {
22434
22442
  margin-left: -2px;
22435
22443
  }
@@ -22441,7 +22449,7 @@ ut(
22441
22449
  <path xmlns="http://www.w3.org/2000/svg" d="M9.87758 19L10.8547 19.2127C10.9296 18.8686 10.818 18.5105 10.5609 18.2698L9.87758 19ZM4.00003 13.5L3.88079 12.5071C3.49477 12.5535 3.17061 12.8194 3.04966 13.1889C2.9287 13.5584 3.03288 13.9645 3.31677 14.2302L4.00003 13.5ZM12.3266 12.5L12.4458 13.4929C12.8079 13.4494 13.1176 13.2123 13.254 12.8741L12.3266 12.5ZM15.7551 4L16.6825 3.62592C16.53 3.24768 16.163 3 15.7551 3C15.3473 3 14.9803 3.24768 14.8277 3.62592L15.7551 4ZM19.1837 12.5L18.2563 12.8741C18.3936 13.2145 18.7063 13.4523 19.071 13.4936L19.1837 12.5ZM28 13.5L28.6537 14.2568C28.9543 13.9971 29.0727 13.5842 28.9554 13.2047C28.8382 12.8252 28.5074 12.5511 28.1127 12.5064L28 13.5ZM21.6327 19L20.979 18.2432C20.7017 18.4827 20.5776 18.8547 20.6556 19.2127L21.6327 19ZM23.5919 28L23.0939 28.8672C23.4368 29.0641 23.8635 29.0405 24.1826 28.8069C24.5016 28.5733 24.6531 28.1737 24.569 27.7873L23.5919 28ZM15.7551 23.5L16.2531 22.6328C15.9447 22.4557 15.5655 22.4557 15.2572 22.6328L15.7551 23.5ZM7.9184 28L6.94128 27.7873C6.85718 28.1737 7.00863 28.5733 7.32768 28.8069C7.64674 29.0405 8.07346 29.0641 8.41636 28.8672L7.9184 28ZM10.5609 18.2698L4.6833 12.7698L3.31677 14.2302L9.19432 19.7302L10.5609 18.2698ZM4.11927 14.4929L12.4458 13.4929L12.2073 11.5071L3.88079 12.5071L4.11927 14.4929ZM13.254 12.8741L16.6825 4.37408L14.8277 3.62592L11.3992 12.1259L13.254 12.8741ZM14.8277 4.37408L18.2563 12.8741L20.1111 12.1259L16.6825 3.62592L14.8277 4.37408ZM19.071 13.4936L27.8873 14.4936L28.1127 12.5064L19.2964 11.5064L19.071 13.4936ZM27.3463 12.7432L20.979 18.2432L22.2864 19.7568L28.6537 14.2568L27.3463 12.7432ZM20.6556 19.2127L22.6148 28.2127L24.569 27.7873L22.6098 18.7873L20.6556 19.2127ZM24.0898 27.1328L16.2531 22.6328L15.2572 24.3672L23.0939 28.8672L24.0898 27.1328ZM15.2572 22.6328L7.42044 27.1328L8.41636 28.8672L16.2531 24.3672L15.2572 22.6328ZM8.89552 28.2127L10.8547 19.2127L8.90047 18.7873L6.94128 27.7873L8.89552 28.2127Z" fill="currentcolor"/>
22442
22450
  `
22443
22451
  );
22444
- const vw = Te`
22452
+ const vw = Re`
22445
22453
  :host lr-icon-star-filled {
22446
22454
  display: inline-block;
22447
22455
  cursor: default;
@@ -22551,7 +22559,7 @@ Lr([
22551
22559
  Z({ type: Boolean })
22552
22560
  ], At.prototype, "submitOnChange", 2);
22553
22561
  Lr([
22554
- Yt()
22562
+ Xt()
22555
22563
  ], At.prototype, "hoveredRating", 2);
22556
22564
  At = Lr([
22557
22565
  Be("lr-rating")
@@ -22569,7 +22577,7 @@ let En = class extends me {
22569
22577
  ), this.rating = 0;
22570
22578
  }
22571
22579
  getConversationId() {
22572
- return localStorage.getItem(fn);
22580
+ return localStorage.getItem(mn);
22573
22581
  }
22574
22582
  async handleSubmit(t) {
22575
22583
  var r, e;
@@ -22579,7 +22587,7 @@ let En = class extends me {
22579
22587
  try {
22580
22588
  const n = t.target;
22581
22589
  if (n) {
22582
- const i = new FormData(n), a = new Sn({
22590
+ const i = new FormData(n), a = new zt({
22583
22591
  baseURL: this.messageContext.apiUrl,
22584
22592
  withCredentials: !0,
22585
22593
  method: "POST"
@@ -22593,7 +22601,7 @@ let En = class extends me {
22593
22601
  action: "addMessage",
22594
22602
  payload: {
22595
22603
  message: {
22596
- html: Re("chatbot:otherQuestionOnConversation")
22604
+ html: Ae("chatbot:otherQuestionOnConversation")
22597
22605
  }
22598
22606
  }
22599
22607
  });
@@ -22615,13 +22623,13 @@ Mr([
22615
22623
  oo({ context: ra })
22616
22624
  ], En.prototype, "messageContext", 2);
22617
22625
  Mr([
22618
- Yt()
22626
+ Xt()
22619
22627
  ], En.prototype, "score", 2);
22620
22628
  Mr([
22621
22629
  Z({ type: String })
22622
22630
  ], En.prototype, "label", 2);
22623
22631
  Mr([
22624
- Yt()
22632
+ Xt()
22625
22633
  ], En.prototype, "rating", 2);
22626
22634
  En = Mr([
22627
22635
  Be("lr-chatbot-conversation-rating")
@@ -22652,7 +22660,7 @@ let Je = class extends me {
22652
22660
 
22653
22661
  ${this.showEscalation ? be`<div class="button-container">
22654
22662
  ${Q3(
22655
- Re("chatbot:escalation.suggestions", {
22663
+ Ae("chatbot:escalation.suggestions", {
22656
22664
  context: Y3() ? "mobile" : ""
22657
22665
  })
22658
22666
  )}
@@ -22710,7 +22718,7 @@ var Aw = Object.defineProperty, Tw = Object.getOwnPropertyDescriptor, Jd = (t) =
22710
22718
  (s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
22711
22719
  return n && i && Aw(r, e, i), i;
22712
22720
  }, Zd = (t, r, e) => r.has(t) || Jd("Cannot " + e), Bn = (t, r, e) => (Zd(t, r, "read from private field"), e ? e.call(t) : r.get(t)), jn = (t, r, e) => r.has(t) ? Jd("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), Hn = (t, r, e, n) => (Zd(t, r, "write to private field"), r.set(t, e), e), ri, ii, ai, si, oi;
22713
- const Yd = "lr.chatbot.broadcast_channel." + document.location.hostname, fn = "lr.chatbot.conversation_id", Un = "lr.chatbot.conversation_state";
22721
+ const Yd = "lr.chatbot.broadcast_channel." + document.location.hostname, mn = "lr.chatbot.conversation_id", Un = "lr.chatbot.conversation_state";
22714
22722
  let Tt = class extends me {
22715
22723
  constructor() {
22716
22724
  super({
@@ -22752,7 +22760,7 @@ let Tt = class extends me {
22752
22760
  Hn(this, oi, t);
22753
22761
  }
22754
22762
  getVersion() {
22755
- return "LR Chatbot - 0.24.5";
22763
+ return "LR Chatbot - 0.25.0";
22756
22764
  }
22757
22765
  async connectedCallback() {
22758
22766
  super.connectedCallback(), this._conversationHistoryTask.run();
@@ -22795,7 +22803,7 @@ let Tt = class extends me {
22795
22803
  this.deepChat = t, this.deepChat && (this.setDeepChatStyle(), this.setDeepChatTranslations(), this.setChatConnection(), await this.setDeepChatHistory());
22796
22804
  }
22797
22805
  getCurrentConversationId() {
22798
- return localStorage.getItem(fn);
22806
+ return localStorage.getItem(mn);
22799
22807
  }
22800
22808
  createConversationHistoryTask() {
22801
22809
  return new vd(this, {
@@ -22810,13 +22818,13 @@ let Tt = class extends me {
22810
22818
  const t = this.getCurrentConversationId();
22811
22819
  if (t)
22812
22820
  try {
22813
- return await new Sn({
22821
+ return await new zt({
22814
22822
  baseURL: this.apiUrl,
22815
22823
  withCredentials: !0,
22816
22824
  method: "GET"
22817
22825
  }).chatbotConversationsGet(t);
22818
22826
  } catch {
22819
- console.error("Error while fetching chatbot conversation history"), localStorage.removeItem(fn);
22827
+ console.error("Error while fetching chatbot conversation history"), localStorage.removeItem(mn);
22820
22828
  }
22821
22829
  }
22822
22830
  setInitialMessages() {
@@ -22825,11 +22833,11 @@ let Tt = class extends me {
22825
22833
  this.deepChat.history = [
22826
22834
  {
22827
22835
  role: "lr",
22828
- html: Re("chatbot:legalInformation")
22836
+ html: Ae("chatbot:legalInformation")
22829
22837
  },
22830
22838
  {
22831
22839
  role: "ai",
22832
- html: Dn({ slot: Re("chatbot:introMessage") })
22840
+ html: Dn({ slot: Ae("chatbot:introMessage") })
22833
22841
  }
22834
22842
  ];
22835
22843
  }
@@ -22858,7 +22866,7 @@ let Tt = class extends me {
22858
22866
  throw Error("Deep Chat should be initialized at this point");
22859
22867
  this.deepChat.textInput = {
22860
22868
  ...this.deepChat.textInput,
22861
- placeholder: { text: Re("chatbot:inputPlaceholder") }
22869
+ placeholder: { text: Ae("chatbot:inputPlaceholder") }
22862
22870
  };
22863
22871
  }
22864
22872
  setDeepChatStyle() {
@@ -22877,7 +22885,7 @@ let Tt = class extends me {
22877
22885
  }, this.deepChat.auxiliaryStyle = et.auxiliaryStyle;
22878
22886
  }
22879
22887
  setConversationTimeout() {
22880
- const t = Number(Re("chatbot:evaluationTimeout"));
22888
+ const t = Number(Ae("chatbot:evaluationTimeout"));
22881
22889
  this.conversationTimeout && clearTimeout(this.conversationTimeout), this.conversationTimeout = setTimeout(() => {
22882
22890
  if (!this._shouldEndConversation) {
22883
22891
  const r = this.getCurrentConversationId();
@@ -22891,7 +22899,7 @@ let Tt = class extends me {
22891
22899
  this.deepChat.connect = {
22892
22900
  handler: async (t, r) => {
22893
22901
  try {
22894
- const e = t.messages[0].text, n = new Sn({
22902
+ const e = t.messages[0].text, n = new zt({
22895
22903
  baseURL: this.apiUrl,
22896
22904
  withCredentials: !0,
22897
22905
  method: "POST"
@@ -22910,7 +22918,7 @@ let Tt = class extends me {
22910
22918
  const s = await n.chatbotConversationsPost(i);
22911
22919
  if (!s.message)
22912
22920
  throw Error();
22913
- s.conversation_id && a === null && localStorage.setItem(fn, s.conversation_id);
22921
+ s.conversation_id && a === null && localStorage.setItem(mn, s.conversation_id);
22914
22922
  const o = Dn({
22915
22923
  apiUrl: this.apiUrl,
22916
22924
  conversationId: s.conversation_id ?? void 0,
@@ -22922,7 +22930,7 @@ let Tt = class extends me {
22922
22930
  this._shouldEndConversation = s.message_status === "end_conversation", this.setConversationTimeout(), this.observeInputChanges(), r.onResponse({ html: o, role: "ai" });
22923
22931
  } catch {
22924
22932
  const n = Dn({
22925
- slot: Re("chatbot:errorMessage")
22933
+ slot: Ae("chatbot:errorMessage")
22926
22934
  });
22927
22935
  r.onResponse({
22928
22936
  html: n
@@ -22951,11 +22959,11 @@ let Tt = class extends me {
22951
22959
  conversationId: t ?? void 0,
22952
22960
  apiUrl: this.apiUrl,
22953
22961
  showConversationRating: !0,
22954
- slot: Re("chatbot:ratingConversation")
22962
+ slot: Ae("chatbot:ratingConversation")
22955
22963
  })
22956
22964
  }), this.conversationTimeout && (clearTimeout(this.conversationTimeout), this.conversationTimeout = void 0);
22957
22965
  const e = this.getCurrentConversationId();
22958
- e && (localStorage.removeItem(fn), localStorage.removeItem(Un), this._broadcastController.send({
22966
+ e && (localStorage.removeItem(mn), localStorage.removeItem(Un), this._broadcastController.send({
22959
22967
  action: "end-conversation",
22960
22968
  payload: { conversationId: e }
22961
22969
  }));
@@ -22994,7 +23002,7 @@ let Tt = class extends me {
22994
23002
  }
22995
23003
  }
22996
23004
  close() {
22997
- (this.opened || this.minimized) && (localStorage.removeItem(fn), localStorage.removeItem(Un), this.opened = !1, this.minimized = !1, this.exitOverlay = !1, this._closeClickCount = 0, this.clearConversation(), this._broadcastController.send({ action: "close" }));
23005
+ (this.opened || this.minimized) && (localStorage.removeItem(mn), localStorage.removeItem(Un), this.opened = !1, this.minimized = !1, this.exitOverlay = !1, this._closeClickCount = 0, this.clearConversation(), this._broadcastController.send({ action: "close" }));
22998
23006
  }
22999
23007
  renderExitOverlay() {
23000
23008
  return be`
@@ -23006,12 +23014,12 @@ let Tt = class extends me {
23006
23014
  id="exit-overlay"
23007
23015
  aria-hidden=${!this.exitOverlay}
23008
23016
  >
23009
- <p>${Re("chatbot:exit.text")}</p>
23017
+ <p>${Ae("chatbot:exit.text")}</p>
23010
23018
  <div>
23011
23019
  <lr-button @click=${this.handleReturnConversation} variant="secondary" size="small"
23012
- >${Re("chatbot:returnToConversation")}</lr-button
23020
+ >${Ae("chatbot:returnToConversation")}</lr-button
23013
23021
  >
23014
- <lr-button size="small" @click=${this.close}>${Re("chatbot:exit.button")}</lr-button>
23022
+ <lr-button size="small" @click=${this.close}>${Ae("chatbot:exit.button")}</lr-button>
23015
23023
  </div>
23016
23024
  </div>
23017
23025
  `;
@@ -23029,7 +23037,7 @@ let Tt = class extends me {
23029
23037
  ${Ur()}
23030
23038
  >
23031
23039
  <div id="chat-wrapper-menu" part="menu">
23032
- <span id="chat-wrapper-menu-title">${Re("chatbot:title")}</span>
23040
+ <span id="chat-wrapper-menu-title">${Ae("chatbot:title")}</span>
23033
23041
  <div id="chat-wrapper-menu-button-container">
23034
23042
  <lr-icon-button
23035
23043
  size="small"
@@ -23073,7 +23081,7 @@ let Tt = class extends me {
23073
23081
  id="chat-minimized"
23074
23082
  @click=${this.open}
23075
23083
  aria-hidden=${!this.minimized}
23076
- aria-label="${Re("chatbot:minimized.ariaLabel")}"
23084
+ aria-label="${Ae("chatbot:minimized.ariaLabel")}"
23077
23085
  aria-expanded=${!this.minimized}
23078
23086
  part="wrapper-minimized"
23079
23087
  ${Ur({
@@ -23082,7 +23090,7 @@ let Tt = class extends me {
23082
23090
  })}
23083
23091
  >
23084
23092
  <lr-icon-chat size="medium"></lr-icon-chat>
23085
- <p id="chat-minimized-text">${Re("chatbot:minimized.label")}</p>
23093
+ <p id="chat-minimized-text">${Ae("chatbot:minimized.label")}</p>
23086
23094
  </div>
23087
23095
  `;
23088
23096
  }
@@ -23117,6 +23125,6 @@ Tt = In([
23117
23125
  export {
23118
23126
  Tt as Chatbot,
23119
23127
  Yd as LR_CHATBOT_BROADCAST_CHANNEL_ID,
23120
- fn as LR_CHATBOT_LOCALSTORAGE_CONVERSATION_ID
23128
+ mn as LR_CHATBOT_LOCALSTORAGE_CONVERSATION_ID
23121
23129
  };
23122
23130
  //# sourceMappingURL=index.js.map