lr-chatbot 0.8.0 → 0.9.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.
@@ -2,13 +2,13 @@ var yc = Object.defineProperty;
2
2
  var bc = (n, i, e) => i in n ? yc(n, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[i] = e;
3
3
  var q = (n, i, e) => bc(n, typeof i != "symbol" ? i + "" : i, e);
4
4
  function Fs(n) {
5
- return Sc(n) || kc(n) || Ds(n) || wc();
5
+ return Sc(n) || wc(n) || Ds(n) || kc();
6
6
  }
7
- function wc() {
7
+ function kc() {
8
8
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
9
9
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
10
10
  }
11
- function kc(n) {
11
+ function wc(n) {
12
12
  if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
13
13
  }
14
14
  function Sc(n) {
@@ -184,12 +184,12 @@ function m() {
184
184
  function R(j, N, X, re) {
185
185
  var ce = d(I[j], I, N);
186
186
  if (ce.type !== "throw") {
187
- var Fe = ce.arg, ke = Fe.value;
188
- return ke && D(ke) == "object" && t.call(ke, "__await") ? C.resolve(ke.__await).then(function(Te) {
187
+ var Fe = ce.arg, we = Fe.value;
188
+ return we && D(we) == "object" && t.call(we, "__await") ? C.resolve(we.__await).then(function(Te) {
189
189
  R("next", Te, X, re);
190
190
  }, function(Te) {
191
191
  R("throw", Te, X, re);
192
- }) : C.resolve(ke).then(function(Te) {
192
+ }) : C.resolve(we).then(function(Te) {
193
193
  Fe.value = Te, X(Fe);
194
194
  }, function(Te) {
195
195
  return R("throw", Te, X, re);
@@ -218,7 +218,7 @@ function m() {
218
218
  for (R.method = j, R.arg = N; ; ) {
219
219
  var X = R.delegate;
220
220
  if (X) {
221
- var re = we(X, R);
221
+ var re = ke(X, R);
222
222
  if (re) {
223
223
  if (re === y) continue;
224
224
  return re;
@@ -239,9 +239,9 @@ function m() {
239
239
  }
240
240
  };
241
241
  }
242
- function we(I, C) {
242
+ function ke(I, C) {
243
243
  var R = C.method, P = I.iterator[R];
244
- if (P === n) return C.delegate = null, R === "throw" && I.iterator.return && (C.method = "return", C.arg = n, we(I, C), C.method === "throw") || R !== "return" && (C.method = "throw", C.arg = new TypeError("The iterator does not provide a '" + R + "' method")), y;
244
+ if (P === n) return C.delegate = null, R === "throw" && I.iterator.return && (C.method = "return", C.arg = n, ke(I, C), C.method === "throw") || R !== "return" && (C.method = "throw", C.arg = new TypeError("The iterator does not provide a '" + R + "' method")), y;
245
245
  var j = d(P, I.iterator, C.arg);
246
246
  if (j.type === "throw") return C.method = "throw", C.arg = j.arg, C.delegate = null, y;
247
247
  var N = j.arg;
@@ -312,8 +312,8 @@ function m() {
312
312
  }, dispatchException: function(C) {
313
313
  if (this.done) throw C;
314
314
  var R = this;
315
- function P(Fe, ke) {
316
- return X.type = "throw", X.arg = C, R.next = Fe, ke && (R.method = "next", R.arg = n), !!ke;
315
+ function P(Fe, we) {
316
+ return X.type = "throw", X.arg = C, R.next = Fe, we && (R.method = "next", R.arg = n), !!we;
317
317
  }
318
318
  for (var j = this.tryEntries.length - 1; j >= 0; --j) {
319
319
  var N = this.tryEntries[j], X = N.completion;
@@ -423,7 +423,7 @@ function D(n) {
423
423
  return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
424
424
  }, D(n);
425
425
  }
426
- function w(n, i) {
426
+ function k(n, i) {
427
427
  if (!(n instanceof i))
428
428
  throw new TypeError("Cannot call a class as a function");
429
429
  }
@@ -433,7 +433,7 @@ function Pa(n, i) {
433
433
  t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(n, $s(t.key), t);
434
434
  }
435
435
  }
436
- function k(n, i, e) {
436
+ function w(n, i, e) {
437
437
  return i && Pa(n.prototype, i), e && Pa(n, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
438
438
  }
439
439
  function $s(n) {
@@ -452,9 +452,9 @@ function Ac(n, i) {
452
452
  }
453
453
  var Tc = /* @__PURE__ */ function() {
454
454
  function n() {
455
- w(this, n);
455
+ k(this, n);
456
456
  }
457
- return k(n, null, [{
457
+ return w(n, null, [{
458
458
  key: "render",
459
459
  value: function(e, t) {
460
460
  var r = document.createElement("div");
@@ -463,9 +463,9 @@ var Tc = /* @__PURE__ */ function() {
463
463
  }]);
464
464
  }(), Rc = /* @__PURE__ */ function() {
465
465
  function n() {
466
- w(this, n);
466
+ k(this, n);
467
467
  }
468
- return k(n, null, [{
468
+ return w(n, null, [{
469
469
  key: "onLoad",
470
470
  value: function(e) {
471
471
  e.innerHTML = '<div id="large-loading-ring"></div>';
@@ -489,9 +489,9 @@ var Tc = /* @__PURE__ */ function() {
489
489
  }]);
490
490
  }(), ve = /* @__PURE__ */ function() {
491
491
  function n() {
492
- w(this, n);
492
+ k(this, n);
493
493
  }
494
- return k(n, null, [{
494
+ return w(n, null, [{
495
495
  key: "unsetStyle",
496
496
  value: function(e, t) {
497
497
  var r = Object.keys(t).reduce(function(a, o) {
@@ -550,9 +550,9 @@ var Tc = /* @__PURE__ */ function() {
550
550
  }]);
551
551
  }(), Mi = /* @__PURE__ */ function() {
552
552
  function n() {
553
- w(this, n);
553
+ k(this, n);
554
554
  }
555
- return k(n, null, [{
555
+ return w(n, null, [{
556
556
  key: "attemptAppendStyleSheetToHead",
557
557
  value: function(e) {
558
558
  if (!(e.fontFamily && e.fontFamily !== n.DEFAULT_FONT_FAMILY)) {
@@ -570,9 +570,9 @@ var Tc = /* @__PURE__ */ function() {
570
570
  Mi.FONT_URL = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap", Mi.DEFAULT_FONT_FAMILY = "'Inter', sans-serif, Avenir, Helvetica, Arial";
571
571
  var Bs = Mi, js = /* @__PURE__ */ function() {
572
572
  function n() {
573
- w(this, n);
573
+ k(this, n);
574
574
  }
575
- return k(n, null, [{
575
+ return w(n, null, [{
576
576
  key: "apply",
577
577
  value: function(e, t) {
578
578
  if (t) try {
@@ -616,13 +616,13 @@ js.DEFAULT_COMPONENT_STYLE = {
616
616
  };
617
617
  var ri = js, fe = /* @__PURE__ */ function(n) {
618
618
  return n.ESCAPE = "Escape", n.ENTER = "Enter", n.TAB = "Tab", n.ARROW_UP = "ArrowUp", n.ARROW_DOWN = "ArrowDown", n.ARROW_RIGHT = "ArrowRight", n.ARROW_LEFT = "ArrowLeft", n.BACKSPACE = "Backspace", n.DELETE = "Delete", n.META = "Meta", n.CONTROL = "Control", n;
619
- }(fe || {}), Hn, Vt = (Hn = /* @__PURE__ */ k(function n() {
620
- w(this, n);
619
+ }(fe || {}), Hn, Vt = (Hn = /* @__PURE__ */ w(function n() {
620
+ k(this, n);
621
621
  }), Hn.IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Hn.IS_CHROMIUM = window.chrome, Hn), Us = /* @__PURE__ */ function() {
622
622
  function n() {
623
- w(this, n);
623
+ k(this, n);
624
624
  }
625
- return k(n, null, [{
625
+ return w(n, null, [{
626
626
  key: "add",
627
627
  value: (
628
628
  // prettier-ignore
@@ -657,9 +657,9 @@ var ri = js, fe = /* @__PURE__ */ function(n) {
657
657
  Us.PERMITTED_KEYS = /* @__PURE__ */ new Set([fe.BACKSPACE, fe.DELETE, fe.ARROW_RIGHT, fe.ARROW_LEFT, fe.ARROW_DOWN, fe.ARROW_UP, fe.META, fe.CONTROL, fe.ENTER]);
658
658
  var Oc = Us, Ic = /* @__PURE__ */ function() {
659
659
  function n() {
660
- w(this, n);
660
+ k(this, n);
661
661
  }
662
- return k(n, null, [{
662
+ return w(n, null, [{
663
663
  key: "sanitizePastedTextContent",
664
664
  value: function(e) {
665
665
  var t, r;
@@ -671,14 +671,14 @@ var Oc = Us, Ic = /* @__PURE__ */ function() {
671
671
  }(), Pi = /* @__PURE__ */ function() {
672
672
  function n(i, e, t) {
673
673
  var r = this;
674
- w(this, n);
674
+ k(this, n);
675
675
  var a, o, s, l = n.processConfig(e, i.textInput);
676
676
  this.elementRef = n.createContainerElement((a = l == null ? void 0 : l.styles) == null ? void 0 : a.container), this.inputElementRef = this.createInputElement(l), this._config = l, this.elementRef.appendChild(this.inputElementRef), i.setPlaceholderText = this.setPlaceholderText.bind(this, i), i.setPlaceholderText(((s = (o = i.textInput) == null ? void 0 : o.placeholder) == null ? void 0 : s.text) || "Ask me anything!"), setTimeout(function() {
677
677
  var c;
678
678
  Oc.add(r.inputElementRef, t, (c = i.textInput) == null ? void 0 : c.characterLimit, i._validationHandler);
679
679
  });
680
680
  }
681
- return k(n, [{
681
+ return w(n, [{
682
682
  key: "createInputElement",
683
683
  value: function(e) {
684
684
  var t, r, a = document.createElement("div");
@@ -766,11 +766,11 @@ var Oc = Us, Ic = /* @__PURE__ */ function() {
766
766
  }]);
767
767
  }();
768
768
  Pi.TEXT_INPUT_ID = "text-input", Pi.PLACEHOLDER_TEXT_CLASS = "text-input-placeholder";
769
- var wn = Pi, Hs = /* @__PURE__ */ function() {
769
+ var kn = Pi, Hs = /* @__PURE__ */ function() {
770
770
  function n() {
771
- w(this, n);
771
+ k(this, n);
772
772
  }
773
- return k(n, null, [{
773
+ return w(n, null, [{
774
774
  key: "focusEndOfInput",
775
775
  value: function(e) {
776
776
  var t = document.createRange();
@@ -781,7 +781,7 @@ var wn = Pi, Hs = /* @__PURE__ */ function() {
781
781
  }, {
782
782
  key: "focusFromParentElement",
783
783
  value: function(e) {
784
- var t = e.querySelector("#".concat(wn.TEXT_INPUT_ID));
784
+ var t = e.querySelector("#".concat(kn.TEXT_INPUT_ID));
785
785
  t && n.focusEndOfInput(t);
786
786
  }
787
787
  }]);
@@ -824,9 +824,9 @@ You can also augment them using the responseInterceptor property: https://deepch
824
824
  `.concat(Fa)
825
825
  }, zs = /* @__PURE__ */ function() {
826
826
  function n() {
827
- w(this, n);
827
+ k(this, n);
828
828
  }
829
- return k(n, null, [{
829
+ return w(n, null, [{
830
830
  key: "addElements",
831
831
  value: function(e) {
832
832
  for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
@@ -862,9 +862,9 @@ You can also augment them using the responseInterceptor property: https://deepch
862
862
  zs.CODE_SNIPPET_GENERATION_JUMP = 0.5;
863
863
  var Ee = zs, qs = /* @__PURE__ */ function() {
864
864
  function n() {
865
- w(this, n);
865
+ k(this, n);
866
866
  }
867
- return k(n, null, [{
867
+ return w(n, null, [{
868
868
  key: "speak",
869
869
  value: function(e, t) {
870
870
  if (window.SpeechSynthesisUtterance) {
@@ -892,9 +892,9 @@ var Ee = zs, qs = /* @__PURE__ */ function() {
892
892
  qs.LOAD_VOICES_MS = 200;
893
893
  var Yn = qs, Le = /* @__PURE__ */ function() {
894
894
  function n() {
895
- w(this, n);
895
+ k(this, n);
896
896
  }
897
- return k(n, null, [{
897
+ return w(n, null, [{
898
898
  key: "checkForContainerStyles",
899
899
  value: function(e, t) {
900
900
  var r = e.containerStyle;
@@ -966,9 +966,9 @@ var Yn = qs, Le = /* @__PURE__ */ function() {
966
966
  }]);
967
967
  }(), Fc = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2032%2032'%20xml:space='preserve'%3e%3cpath%20d='M23,30.36H9c-2.404,0-4.36-1.956-4.36-4.36V15c0-2.404,1.956-4.36,4.36-4.36h3.659%20c0.167-1.566,1.415-2.813,2.981-2.981V5.333c-1.131-0.174-2-1.154-2-2.333c0-1.301,1.059-2.36,2.36-2.36%20c1.302,0,2.36,1.059,2.36,2.36c0,1.179-0.869,2.159-2,2.333V7.66c1.566,0.167,2.814,1.415,2.981,2.981H23%20c2.404,0,4.36,1.956,4.36,4.36v11C27.36,28.404,25.404,30.36,23,30.36z%20M9,11.36c-2.007,0-3.64,1.633-3.64,3.64v11%20c0,2.007,1.633,3.64,3.64,3.64h14c2.007,0,3.64-1.633,3.64-3.64V15c0-2.007-1.633-3.64-3.64-3.64H9z%20M13.384,10.64h5.231%20C18.439,9.354,17.334,8.36,16,8.36C14.667,8.36,13.561,9.354,13.384,10.64z%20M16,1.36c-0.904,0-1.64,0.736-1.64,1.64%20S15.096,4.64,16,4.64c0.904,0,1.64-0.736,1.64-1.64S16.904,1.36,16,1.36z%20M20,27.36h-8c-1.301,0-2.36-1.059-2.36-2.36%20s1.059-2.36,2.36-2.36h8c1.302,0,2.36,1.059,2.36,2.36S21.302,27.36,20,27.36z%20M12,23.36c-0.904,0-1.64,0.735-1.64,1.64%20s0.736,1.64,1.64,1.64h8c0.904,0,1.64-0.735,1.64-1.64s-0.735-1.64-1.64-1.64H12z%20M31,23.86h-2c-0.199,0-0.36-0.161-0.36-0.36V15%20c0-0.199,0.161-0.36,0.36-0.36h2c0.199,0,0.36,0.161,0.36,0.36v8.5C31.36,23.699,31.199,23.86,31,23.86z%20M29.36,23.14h1.279v-7.78%20H29.36V23.14z%20M3,23.86H1c-0.199,0-0.36-0.161-0.36-0.36V15c0-0.199,0.161-0.36,0.36-0.36h2c0.199,0,0.36,0.161,0.36,0.36v8.5%20C3.36,23.699,3.199,23.86,3,23.86z%20M1.36,23.14h1.28v-7.78H1.36V23.14z%20M20,20.36c-1.302,0-2.36-1.059-2.36-2.36%20s1.059-2.36,2.36-2.36s2.36,1.059,2.36,2.36C22.36,19.302,21.302,20.36,20,20.36z%20M20,16.36c-0.904,0-1.64,0.736-1.64,1.64%20s0.735,1.64,1.64,1.64s1.64-0.735,1.64-1.64S20.904,16.36,20,16.36z%20M12,20.36c-1.301,0-2.36-1.059-2.36-2.36s1.059-2.36,2.36-2.36%20s2.36,1.059,2.36,2.36C14.36,19.302,13.301,20.36,12,20.36z%20M12,16.36c-0.904,0-1.64,0.736-1.64,1.64s0.736,1.64,1.64,1.64%20s1.64-0.735,1.64-1.64S12.904,16.36,12,16.36z'/%3e%3crect%20style='fill:none;'%20width='32'%20height='32'/%3e%3c/svg%3e", Dc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAMAAAC/MqoPAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////9vX18vLy/Pz86enp4+Li2tnZ1tbWzczM+fn57Ozs4N/f09LS0M/P5uXl7+/v3dzcwtncCAAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAEgAAABIAEbJaz4AAAZNSURBVHja7d3bdtsqEABQYABZSLH9/3+ZpnUsIcF5iOM6PfElNoMHMfPQdq3GmL0GkLhEUqLaUExnOtOZznSmM53pTGc605nOdKYznelMZzrTmV4LXSqllKyJDkob26xWq8Zae/iH0QoWTm9d1xur4WuypQJtTd+5dqn0VjcxzNO5/57mEBvdLo8Oron6aseWOjYOFkVvjQs3DmgyONMuht52EfztP+4hdu0i6LCO808/M8c1lE/fuPGej41uUzgdtoO/75N+2ELJ9I3b3//hPXbiMenm3pR/Jt4USgcLBIp4Bh10gqKVhvLo0klCxeSky96nKcj3siw6pJIL4XsoiQ7apyvMY/V3HHrSRioLopvEhSpTCn2TPEuwKYMOIX0tAxRBf/Hpa+lfSqBv9gi1FPsNfTrMAiVmIE/vJhz61FGnQxRIEYE4vfNYdN8Rp6MlHaHotHTn8ejekaZPAjEmyvQWdZFTtYTpXqCGJ0zvcek9Yfoel76nS0ffv1NMp1ca+pkgyfRCGind4L7OWWc605l+cxjsyhqy9AGbPpClc1/nvl5VX0c/3Alk6RU3+Am7shNZ+h6bvidLr7jBB+zKBrL0irOOudmIUDzTmf5gIP+iEuXtRuTVaEmY/oZLfyNMrzjryPc0gerMTdpVg0tvjJUU6bLPcGOoUv46SLL6Wi8yhLf06C7TUyekI0efRaaYqdFltkeNpPumRPSMDxgBYvSM035FrKAmH72hRW99PrpvSdEHkTEGUvSsK3yKVDkuJ92RohcZaehzzirPpOg+J92Tolfc4Cumx5xVXpGiZ34+ICX6W84qv5GiR5NPbiIpOv6BCoSvSkTX+eiaGP092zINvBOj4x8mSf9FqejvNo/cvpOji19ZbmviL0GPLsYMFzgzCor0+Bv/ePDvSJKOb9dJ5UlnbnEHiHgzv6cdTpJOWuc/u3FEucLDOL75xGtBiefrcwgoC9NDSH/jkH6pAuXmBqPQ9HSUPVdZBH1GGOrMXAQdYxcKZfxAoK+KKBKFLosoEoX+u4giUehz8jlcnAuhp78I46yDYNAd+QLR6K+pr+yvxdBTHyVDubQh0UfSxaHSd0lbvNkVRE87JGOtc+PQd2QLQ6fHhJkKsSh6yg13tO08JPprsgrrXWH0dJd2vH1MLPprot4eXoujpzrdhngiD40ek2y92lggPcnWa8qN1Yz0BFuvZhRl0uOfR0v4Ewuli/Bg4Qr3lArqGdndQ3UPO1EunXYwnelMZzrTmc50pjOd6UxnOtOZznSmM53pTGf6kuj6oedFKV0s3fX6sX1S3bsi6a4PD7+/YAqYeBw6pIB/4qEgOqxdSPbGiim4NRRCbzs3Jj0L4UfXtQXQVRfn5IdA/Bw7RZzurEV6EtdsLeGXkIPuA+K1UoVeA0l62zmN/LqfSSft9KkepmoRuvi3nd5uKNFB9zbbXEANqdr941XO0NJx2v2jdJenpf+/3bvn0ts16ph+sd6hX7dPo2+2cZzE02Ia43bzDHqr+2Evnhz74ZHU30ffbKOeng1/NPV30Ns1gYQnSP2P6e65Pfxc6h02XZqXQCjhJ6kPL6bFo4NrGvAU4UII4SE2P1vQuZkuOxckVfehisF1MjUddN/MZBN+kvq5uf0O/xa66gyNS9ktMWlz44rO1Z8C19i5FPdHzPamXn+F3hryPfxMr78+4F+kq22kO6Rf6fUQt+puuustyWv4rbG3l/duztFB96GYoe1cTBdXMr+nw9qVM6ZfxOvzezff0nXi/ZOndvrR6Zvpm0c3h6nhdb+5iS7tsIim/qXZD9+97/Jf+rpZ5BET1ayv0GUzLhEuhBBjIy/RdVPgndutIRt9nt7p5cKFEEJ3Z+jQFDZL+XnMDXxHB73gxn5s9Kc3d3/pFciFkN/QTSXHJpX5l66gDrkQoP6hL3xsPw39la4qOiV8tH78XeSbue6N9mvWa6J/ybpc1CT1Wnh5Qq9meP8IOKH3ddH7E/ri1iYux/SXDrXR4UiPdck/wUpU+FtPf6/orja6O9KL3l56LOvVxe5Ib2qjN0d6Vbex4ghWlU3bPqI90If66MNng680FNpbJijH6kCvaF3uMzQ3+IrpFerV4Y9dffQdN3im10ivbuImhD3Qq5u4HdZkua8znelMZ/pS4z9CPVKkxowNxgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0wMy0yN1QxNTo0NToxNSswMDowMN1xSg4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMDMtMjdUMTU6NDU6MTUrMDA6MDCsLPKyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==", Vs = /* @__PURE__ */ function() {
968
968
  function n() {
969
- w(this, n);
969
+ k(this, n);
970
970
  }
971
- return k(n, null, [{
971
+ return w(n, null, [{
972
972
  key: "hide",
973
973
  value: function(e) {
974
974
  var t;
@@ -1015,9 +1015,9 @@ var Yn = qs, Le = /* @__PURE__ */ function() {
1015
1015
  Vs.CONTAINER_CLASS = "avatar-container";
1016
1016
  var Da = Vs, Ws = /* @__PURE__ */ function() {
1017
1017
  function n() {
1018
- w(this, n);
1018
+ k(this, n);
1019
1019
  }
1020
- return k(n, null, [{
1020
+ return w(n, null, [{
1021
1021
  key: "hide",
1022
1022
  value: function(e) {
1023
1023
  var t;
@@ -1058,9 +1058,9 @@ var Da = Vs, Ws = /* @__PURE__ */ function() {
1058
1058
  Ws.NAME_CLASS = "name";
1059
1059
  var $a = Ws, Xn = /* @__PURE__ */ function() {
1060
1060
  function n() {
1061
- w(this, n);
1061
+ k(this, n);
1062
1062
  }
1063
- return k(n, null, [{
1063
+ return w(n, null, [{
1064
1064
  key: "getLastElementsByClass",
1065
1065
  value: function(e, t, r) {
1066
1066
  for (var a = function() {
@@ -1145,9 +1145,9 @@ var $a = Ws, Xn = /* @__PURE__ */ function() {
1145
1145
  Xn.AI_ROLE = "ai", Xn.USER_ROLE = "user", Xn.EMPTY_MESSAGE_CLASS = "empty-message";
1146
1146
  var V = Xn, Gs = /* @__PURE__ */ function() {
1147
1147
  function n() {
1148
- w(this, n);
1148
+ k(this, n);
1149
1149
  }
1150
- return k(n, null, [{
1150
+ return w(n, null, [{
1151
1151
  key: "mouseUp",
1152
1152
  value: function(e, t) {
1153
1153
  ve.unsetAllCSSMouseStates(e, t), Object.assign(e.style, t.default), Object.assign(e.style, t.hover);
@@ -1195,9 +1195,9 @@ var V = Xn, Gs = /* @__PURE__ */ function() {
1195
1195
  }
1196
1196
  }, Ba = Object.keys(Ni), fr = /* @__PURE__ */ function() {
1197
1197
  function n() {
1198
- w(this, n);
1198
+ k(this, n);
1199
1199
  }
1200
- return k(n, null, [{
1200
+ return w(n, null, [{
1201
1201
  key: "applySuggestionEvent",
1202
1202
  value: function(e, t) {
1203
1203
  setTimeout(function() {
@@ -1262,9 +1262,9 @@ var V = Xn, Gs = /* @__PURE__ */ function() {
1262
1262
  }]);
1263
1263
  }(), Wt = /* @__PURE__ */ function() {
1264
1264
  function n() {
1265
- w(this, n);
1265
+ k(this, n);
1266
1266
  }
1267
- return k(n, null, [{
1267
+ return w(n, null, [{
1268
1268
  key: "applyStylesToElement",
1269
1269
  value: function(e, t) {
1270
1270
  var r = ve.processStateful(t, {}, {});
@@ -1317,9 +1317,9 @@ var V = Xn, Gs = /* @__PURE__ */ function() {
1317
1317
  }]);
1318
1318
  }(), Fi = /* @__PURE__ */ function() {
1319
1319
  function n() {
1320
- w(this, n);
1320
+ k(this, n);
1321
1321
  }
1322
- return k(n, null, [{
1322
+ return w(n, null, [{
1323
1323
  key: "addElement",
1324
1324
  value: function(e, t) {
1325
1325
  e.elementRef.appendChild(t), e.elementRef.scrollTop = e.elementRef.scrollHeight;
@@ -1370,7 +1370,7 @@ function Js(n) {
1370
1370
  }), n;
1371
1371
  }
1372
1372
  var Hc = /\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
1373
- function kn(n) {
1373
+ function wn(n) {
1374
1374
  return n.indexOf("\\") < 0 ? n : n.replace(Hc, "$1");
1375
1375
  }
1376
1376
  function Zs(n) {
@@ -1389,7 +1389,7 @@ function Vc(n, i) {
1389
1389
  var e = 0, t = Ks(i);
1390
1390
  return i !== t ? t : i.charCodeAt(0) === 35 && qc.test(i) && (e = i[1].toLowerCase() === "x" ? parseInt(i.slice(2), 16) : parseInt(i.slice(1), 10), Zs(e)) ? Di(e) : n;
1391
1391
  }
1392
- function gt(n) {
1392
+ function yt(n) {
1393
1393
  return n.indexOf("&") < 0 ? n : n.replace(zc, Vc);
1394
1394
  }
1395
1395
  var Wc = /[&<>"]/, Gc = /[&<>"]/g, Kc = {
@@ -1410,18 +1410,18 @@ M.blockquote_open = function() {
1410
1410
  `;
1411
1411
  };
1412
1412
  M.blockquote_close = function(n, i) {
1413
- return "</blockquote>" + kt(n, i);
1413
+ return "</blockquote>" + St(n, i);
1414
1414
  };
1415
1415
  M.code = function(n, i) {
1416
- return n[i].block ? "<pre><code>" + _e(n[i].content) + "</code></pre>" + kt(n, i) : "<code>" + _e(n[i].content) + "</code>";
1416
+ return n[i].block ? "<pre><code>" + _e(n[i].content) + "</code></pre>" + St(n, i) : "<code>" + _e(n[i].content) + "</code>";
1417
1417
  };
1418
1418
  M.fence = function(n, i, e, t, r) {
1419
1419
  var a = n[i], o = "", s = e.langPrefix, l = "", c, u, d;
1420
1420
  if (a.params) {
1421
1421
  if (c = a.params.split(/\s+/g), u = c.join(" "), Uc(r.rules.fence_custom, c[0])) return r.rules.fence_custom[c[0]](n, i, e, t, r);
1422
- l = _e(gt(kn(u))), o = ' class="' + s + l + '"';
1422
+ l = _e(yt(wn(u))), o = ' class="' + s + l + '"';
1423
1423
  }
1424
- return e.highlight ? d = e.highlight.apply(e.highlight, [a.content].concat(c)) || _e(a.content) : d = _e(a.content), "<pre><code" + o + ">" + d + "</code></pre>" + kt(n, i);
1424
+ return e.highlight ? d = e.highlight.apply(e.highlight, [a.content].concat(c)) || _e(a.content) : d = _e(a.content), "<pre><code" + o + ">" + d + "</code></pre>" + St(n, i);
1425
1425
  };
1426
1426
  M.fence_custom = {};
1427
1427
  M.heading_open = function(n, i) {
@@ -1432,14 +1432,14 @@ M.heading_close = function(n, i) {
1432
1432
  `;
1433
1433
  };
1434
1434
  M.hr = function(n, i, e) {
1435
- return (e.xhtmlOut ? "<hr />" : "<hr>") + kt(n, i);
1435
+ return (e.xhtmlOut ? "<hr />" : "<hr>") + St(n, i);
1436
1436
  };
1437
1437
  M.bullet_list_open = function() {
1438
1438
  return `<ul>
1439
1439
  `;
1440
1440
  };
1441
1441
  M.bullet_list_close = function(n, i) {
1442
- return "</ul>" + kt(n, i);
1442
+ return "</ul>" + St(n, i);
1443
1443
  };
1444
1444
  M.list_item_open = function() {
1445
1445
  return "<li>";
@@ -1454,24 +1454,24 @@ M.ordered_list_open = function(n, i) {
1454
1454
  `;
1455
1455
  };
1456
1456
  M.ordered_list_close = function(n, i) {
1457
- return "</ol>" + kt(n, i);
1457
+ return "</ol>" + St(n, i);
1458
1458
  };
1459
1459
  M.paragraph_open = function(n, i) {
1460
1460
  return n[i].tight ? "" : "<p>";
1461
1461
  };
1462
1462
  M.paragraph_close = function(n, i) {
1463
1463
  var e = !(n[i].tight && i && n[i - 1].type === "inline" && !n[i - 1].content);
1464
- return (n[i].tight ? "" : "</p>") + (e ? kt(n, i) : "");
1464
+ return (n[i].tight ? "" : "</p>") + (e ? St(n, i) : "");
1465
1465
  };
1466
1466
  M.link_open = function(n, i, e) {
1467
- var t = n[i].title ? ' title="' + _e(gt(n[i].title)) + '"' : "", r = e.linkTarget ? ' target="' + e.linkTarget + '"' : "";
1467
+ var t = n[i].title ? ' title="' + _e(yt(n[i].title)) + '"' : "", r = e.linkTarget ? ' target="' + e.linkTarget + '"' : "";
1468
1468
  return '<a href="' + _e(n[i].href) + '"' + t + r + ">";
1469
1469
  };
1470
1470
  M.link_close = function() {
1471
1471
  return "</a>";
1472
1472
  };
1473
1473
  M.image = function(n, i, e) {
1474
- var t = ' src="' + _e(n[i].src) + '"', r = n[i].title ? ' title="' + _e(gt(n[i].title)) + '"' : "", a = ' alt="' + (n[i].alt ? _e(gt(kn(n[i].alt))) : "") + '"', o = e.xhtmlOut ? " /" : "";
1474
+ var t = ' src="' + _e(n[i].src) + '"', r = n[i].title ? ' title="' + _e(yt(n[i].title)) + '"' : "", a = ' alt="' + (n[i].alt ? _e(yt(wn(n[i].alt))) : "") + '"', o = e.xhtmlOut ? " /" : "";
1475
1475
  return "<img" + t + a + r + o + ">";
1476
1476
  };
1477
1477
  M.table_open = function() {
@@ -1576,7 +1576,7 @@ M.htmltag = function(n, i) {
1576
1576
  return n[i].content;
1577
1577
  };
1578
1578
  M.abbr_open = function(n, i) {
1579
- return '<abbr title="' + _e(gt(n[i].title)) + '">';
1579
+ return '<abbr title="' + _e(yt(n[i].title)) + '">';
1580
1580
  };
1581
1581
  M.abbr_close = function() {
1582
1582
  return "</abbr>";
@@ -1635,7 +1635,7 @@ M.dd_close = function() {
1635
1635
  function Ys(n, i) {
1636
1636
  return ++i >= n.length - 2 ? i : n[i].type === "paragraph_open" && n[i].tight && n[i + 1].type === "inline" && n[i + 1].content.length === 0 && n[i + 2].type === "paragraph_close" && n[i + 2].tight ? Ys(n, i + 2) : i;
1637
1637
  }
1638
- var kt = M.getBreak = function(n, i) {
1638
+ var St = M.getBreak = function(n, i) {
1639
1639
  return i = Ys(n, i), i < n.length && n[i].type === "list_item_close" ? "" : `
1640
1640
  `;
1641
1641
  };
@@ -1731,24 +1731,24 @@ function Zc(n) {
1731
1731
  children: []
1732
1732
  }) : n.block.parse(n.src, n.options, n.env, n.tokens);
1733
1733
  }
1734
- function St(n, i, e, t, r) {
1734
+ function _t(n, i, e, t, r) {
1735
1735
  this.src = n, this.env = t, this.options = e, this.parser = i, this.tokens = r, 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;
1736
1736
  }
1737
- St.prototype.pushPending = function() {
1737
+ _t.prototype.pushPending = function() {
1738
1738
  this.tokens.push({
1739
1739
  type: "text",
1740
1740
  content: this.pending,
1741
1741
  level: this.pendingLevel
1742
1742
  }), this.pending = "";
1743
1743
  };
1744
- St.prototype.push = function(n) {
1744
+ _t.prototype.push = function(n) {
1745
1745
  this.pending && this.pushPending(), this.tokens.push(n), this.pendingLevel = this.level;
1746
1746
  };
1747
- St.prototype.cacheSet = function(n, i) {
1747
+ _t.prototype.cacheSet = function(n, i) {
1748
1748
  for (var e = this.cache.length; e <= n; e++) this.cache.push(0);
1749
1749
  this.cache[n] = i;
1750
1750
  };
1751
- St.prototype.cacheGet = function(n) {
1751
+ _t.prototype.cacheGet = function(n) {
1752
1752
  return n < this.cache.length ? this.cache[n] : 0;
1753
1753
  };
1754
1754
  function Sn(n, i) {
@@ -1767,7 +1767,7 @@ function Sn(n, i) {
1767
1767
  }
1768
1768
  function Yc(n, i, e, t) {
1769
1769
  var r, a, o, s, l, c;
1770
- if (n.charCodeAt(0) !== 42 || n.charCodeAt(1) !== 91 || n.indexOf("]:") === -1 || (r = new St(n, i, e, t, []), a = Sn(r, 1), a < 0 || n.charCodeAt(a + 1) !== 58)) return -1;
1770
+ if (n.charCodeAt(0) !== 42 || n.charCodeAt(1) !== 91 || n.indexOf("]:") === -1 || (r = new _t(n, i, e, t, []), a = Sn(r, 1), a < 0 || n.charCodeAt(a + 1) !== 58)) return -1;
1771
1771
  for (s = r.posMax, o = a + 2; o < s && r.src.charCodeAt(o) !== 10; o++) ;
1772
1772
  return l = n.slice(2, a), c = n.slice(a + 2, o).trim(), c.length === 0 ? -1 : (t.abbreviations || (t.abbreviations = {}), D(t.abbreviations[":" + l]) > "u" && (t.abbreviations[":" + l] = c), o);
1773
1773
  }
@@ -1781,7 +1781,7 @@ function Xc(n) {
1781
1781
  }
1782
1782
  }
1783
1783
  function $i(n) {
1784
- var i = gt(n);
1784
+ var i = yt(n);
1785
1785
  try {
1786
1786
  i = decodeURI(i);
1787
1787
  } catch {
@@ -1793,7 +1793,7 @@ function Xs(n, i) {
1793
1793
  if (n.src.charCodeAt(i) === 60) {
1794
1794
  for (i++; i < o; ) {
1795
1795
  if (e = n.src.charCodeAt(i), e === 10) return !1;
1796
- if (e === 62) return r = $i(kn(n.src.slice(a + 1, i))), n.parser.validateLink(r) ? (n.pos = i + 1, n.linkContent = r, !0) : !1;
1796
+ if (e === 62) return r = $i(wn(n.src.slice(a + 1, i))), n.parser.validateLink(r) ? (n.pos = i + 1, n.linkContent = r, !0) : !1;
1797
1797
  if (e === 92 && i + 1 < o) {
1798
1798
  i += 2;
1799
1799
  continue;
@@ -1810,13 +1810,13 @@ function Xs(n, i) {
1810
1810
  if (e === 40 && (t++, t > 1) || e === 41 && (t--, t < 0)) break;
1811
1811
  i++;
1812
1812
  }
1813
- return a === i || (r = kn(n.src.slice(a, i)), !n.parser.validateLink(r)) ? !1 : (n.linkContent = r, n.pos = i, !0);
1813
+ return a === i || (r = wn(n.src.slice(a, i)), !n.parser.validateLink(r)) ? !1 : (n.linkContent = r, n.pos = i, !0);
1814
1814
  }
1815
1815
  function Qs(n, i) {
1816
1816
  var e, t = i, r = n.posMax, a = n.src.charCodeAt(i);
1817
1817
  if (a !== 34 && a !== 39 && a !== 40) return !1;
1818
1818
  for (i++, a === 40 && (a = 41); i < r; ) {
1819
- if (e = n.src.charCodeAt(i), e === a) return n.pos = i + 1, n.linkContent = kn(n.src.slice(t + 1, i)), !0;
1819
+ if (e = n.src.charCodeAt(i), e === a) return n.pos = i + 1, n.linkContent = wn(n.src.slice(t + 1, i)), !0;
1820
1820
  if (e === 92 && i + 1 < r) {
1821
1821
  i += 2;
1822
1822
  continue;
@@ -1830,7 +1830,7 @@ function el(n) {
1830
1830
  }
1831
1831
  function Qc(n, i, e, t) {
1832
1832
  var r, a, o, s, l, c, u, d, p;
1833
- if (n.charCodeAt(0) !== 91 || n.indexOf("]:") === -1 || (r = new St(n, i, e, t, []), a = Sn(r, 0), a < 0 || n.charCodeAt(a + 1) !== 58)) return -1;
1833
+ if (n.charCodeAt(0) !== 91 || n.indexOf("]:") === -1 || (r = new _t(n, i, e, t, []), a = Sn(r, 0), a < 0 || n.charCodeAt(a + 1) !== 58)) return -1;
1834
1834
  for (s = r.posMax, o = a + 2; o < s && (l = r.src.charCodeAt(o), !(l !== 32 && l !== 10)); o++) ;
1835
1835
  if (!Xs(r, o)) return -1;
1836
1836
  for (u = r.linkContent, o = r.pos, c = o, o = o + 1; o < s && (l = r.src.charCodeAt(o), !(l !== 32 && l !== 10)); o++) ;
@@ -1997,7 +1997,7 @@ tl.prototype.process = function(n) {
1997
1997
  var i, e, t;
1998
1998
  for (t = this.ruler.getRules(""), i = 0, e = t.length; i < e; i++) t[i](n);
1999
1999
  };
2000
- function _t(n, i, e, t, r) {
2000
+ function Et(n, i, e, t, r) {
2001
2001
  var a, o, s, l, c, u, d;
2002
2002
  for (this.src = n, this.parser = i, this.options = e, this.env = t, this.tokens = r, 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 = "", o = this.src, u = 0, d = !1, s = l = u = 0, c = o.length; l < c; l++) {
2003
2003
  if (a = o.charCodeAt(l), !d) if (a === 32) {
@@ -2008,27 +2008,27 @@ function _t(n, i, e, t, r) {
2008
2008
  }
2009
2009
  this.bMarks.push(o.length), this.eMarks.push(o.length), this.tShift.push(0), this.lineMax = this.bMarks.length - 1;
2010
2010
  }
2011
- _t.prototype.isEmpty = function(n) {
2011
+ Et.prototype.isEmpty = function(n) {
2012
2012
  return this.bMarks[n] + this.tShift[n] >= this.eMarks[n];
2013
2013
  };
2014
- _t.prototype.skipEmptyLines = function(n) {
2014
+ Et.prototype.skipEmptyLines = function(n) {
2015
2015
  for (var i = this.lineMax; n < i && !(this.bMarks[n] + this.tShift[n] < this.eMarks[n]); n++) ;
2016
2016
  return n;
2017
2017
  };
2018
- _t.prototype.skipSpaces = function(n) {
2018
+ Et.prototype.skipSpaces = function(n) {
2019
2019
  for (var i = this.src.length; n < i && this.src.charCodeAt(n) === 32; n++) ;
2020
2020
  return n;
2021
2021
  };
2022
- _t.prototype.skipChars = function(n, i) {
2022
+ Et.prototype.skipChars = function(n, i) {
2023
2023
  for (var e = this.src.length; n < e && this.src.charCodeAt(n) === i; n++) ;
2024
2024
  return n;
2025
2025
  };
2026
- _t.prototype.skipCharsBack = function(n, i, e) {
2026
+ Et.prototype.skipCharsBack = function(n, i, e) {
2027
2027
  if (n <= e) return n;
2028
2028
  for (; n > e; ) if (i !== this.src.charCodeAt(--n)) return n + 1;
2029
2029
  return n;
2030
2030
  };
2031
- _t.prototype.getLines = function(n, i, e, t) {
2031
+ Et.prototype.getLines = function(n, i, e, t) {
2032
2032
  var r, a, o, s, l, c = n;
2033
2033
  if (n >= i) return "";
2034
2034
  if (c + 1 === i) return a = this.bMarks[c] + Math.min(this.tShift[c], e), o = t ? this.eMarks[c] + 1 : this.eMarks[c], this.src.slice(a, o);
@@ -2209,7 +2209,7 @@ function bu(n, i, e, t) {
2209
2209
  level: n.level
2210
2210
  })), !0);
2211
2211
  }
2212
- function wu(n, i, e) {
2212
+ function ku(n, i, e) {
2213
2213
  var t, r, a, o = i + 1;
2214
2214
  return o >= e || n.tShift[o] < n.blkIndent || n.tShift[o] - n.blkIndent > 3 || (r = n.bMarks[o] + n.tShift[o], a = n.eMarks[o], r >= a) || (t = n.src.charCodeAt(r), t !== 45 && t !== 61) || (r = n.skipChars(r, t), r = n.skipSpaces(r), r < a) ? !1 : (r = n.bMarks[i] + n.tShift[i], n.line = o + 1, n.tokens.push({
2215
2215
  type: "heading_open",
@@ -2232,7 +2232,7 @@ var nl = {};
2232
2232
  ["article", "aside", "button", "blockquote", "body", "canvas", "caption", "col", "colgroup", "dd", "div", "dl", "dt", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "iframe", "li", "map", "object", "ol", "output", "p", "pre", "progress", "script", "section", "style", "table", "tbody", "td", "textarea", "tfoot", "th", "tr", "thead", "ul", "video"].forEach(function(n) {
2233
2233
  nl[n] = !0;
2234
2234
  });
2235
- var ku = /^<([a-zA-Z]{1,15})[\s\/>]/, Su = /^<\/([a-zA-Z]{1,15})[\s>]/;
2235
+ var wu = /^<([a-zA-Z]{1,15})[\s\/>]/, Su = /^<\/([a-zA-Z]{1,15})[\s>]/;
2236
2236
  function _u(n) {
2237
2237
  var i = n | 32;
2238
2238
  return i >= 97 && i <= 122;
@@ -2245,7 +2245,7 @@ function Eu(n, i, e, t) {
2245
2245
  } else if (r === 47 || _u(r)) {
2246
2246
  if (r === 47) {
2247
2247
  if (a = n.src.slice(s, l).match(Su), !a) return !1;
2248
- } else if (a = n.src.slice(s, l).match(ku), !a) return !1;
2248
+ } else if (a = n.src.slice(s, l).match(wu), !a) return !1;
2249
2249
  if (nl[a[1].toLowerCase()] !== !0) return !1;
2250
2250
  if (t) return !0;
2251
2251
  } else return !1;
@@ -2419,7 +2419,7 @@ function Tu(n, i) {
2419
2419
  level: n.level
2420
2420
  })), !0;
2421
2421
  }
2422
- var Vn = [["code", pu], ["fences", hu, ["paragraph", "blockquote", "list"]], ["blockquote", fu, ["paragraph", "blockquote", "list"]], ["hr", mu, ["paragraph", "blockquote", "list"]], ["list", gu, ["paragraph", "blockquote"]], ["footnote", yu, ["paragraph"]], ["heading", bu, ["paragraph", "blockquote"]], ["lheading", wu], ["htmlblock", Eu, ["paragraph", "blockquote"]], ["table", Cu, ["paragraph"]], ["deflist", Au, ["paragraph"]], ["paragraph", Tu]];
2422
+ var Vn = [["code", pu], ["fences", hu, ["paragraph", "blockquote", "list"]], ["blockquote", fu, ["paragraph", "blockquote", "list"]], ["hr", mu, ["paragraph", "blockquote", "list"]], ["list", gu, ["paragraph", "blockquote"]], ["footnote", yu, ["paragraph"]], ["heading", bu, ["paragraph", "blockquote"]], ["lheading", ku], ["htmlblock", Eu, ["paragraph", "blockquote"]], ["table", Cu, ["paragraph"]], ["deflist", Au, ["paragraph"]], ["paragraph", Tu]];
2423
2423
  function aa() {
2424
2424
  this.ruler = new xe();
2425
2425
  for (var n = 0; n < Vn.length; n++) this.ruler.push(Vn[n][0], Vn[n][1], {
@@ -2443,7 +2443,7 @@ aa.prototype.parse = function(n, i, e, t) {
2443
2443
  `), n.indexOf(" ") >= 0 && (n = n.replace(Ru, function(s, l) {
2444
2444
  var c;
2445
2445
  return n.charCodeAt(l) === 10 ? (a = l + 1, o = 0, s) : (c = " ".slice((l - a - o) % 4), o = l - a + 1, c);
2446
- })), r = new _t(n, this, i, e, t), this.tokenize(r, r.line, r.lineMax);
2446
+ })), r = new Et(n, this, i, e, t), this.tokenize(r, r.line, r.lineMax);
2447
2447
  };
2448
2448
  function Lu(n) {
2449
2449
  switch (n) {
@@ -2833,12 +2833,12 @@ Or.prototype.tokenize = function(n) {
2833
2833
  n.pending && n.pushPending();
2834
2834
  };
2835
2835
  Or.prototype.parse = function(n, i, e, t) {
2836
- var r = new St(n, this, i, e, t);
2836
+ var r = new _t(n, this, i, e, t);
2837
2837
  this.tokenize(r);
2838
2838
  };
2839
2839
  function vd(n) {
2840
2840
  var i = ["vbscript", "javascript", "file", "data"], e = n.trim().toLowerCase();
2841
- return e = gt(e), !(e.indexOf(":") !== -1 && i.indexOf(e.split(":")[0]) !== -1);
2841
+ return e = yt(e), !(e.indexOf(":") !== -1 && i.indexOf(e.split(":")[0]) !== -1);
2842
2842
  }
2843
2843
  var gd = {
2844
2844
  options: {
@@ -2946,7 +2946,7 @@ var gd = {
2946
2946
  rules: ["autolink", "backticks", "emphasis", "entity", "escape", "htmltag", "links", "newline", "text"]
2947
2947
  }
2948
2948
  }
2949
- }, wd = {
2949
+ }, kd = {
2950
2950
  default: gd,
2951
2951
  full: yd,
2952
2952
  commonmark: bd
@@ -2954,50 +2954,50 @@ var gd = {
2954
2954
  function rl(n, i, e) {
2955
2955
  this.src = i, this.env = e, this.options = n.options, this.tokens = [], this.inlineMode = !1, this.inline = n.inline, this.block = n.block, this.renderer = n.renderer, this.typographer = n.typographer;
2956
2956
  }
2957
- function Je(n, i) {
2957
+ function Ze(n, i) {
2958
2958
  typeof n != "string" && (i = n, n = "default"), i && i.linkify != null && console.warn(`linkify option is removed. Use linkify plugin instead:
2959
2959
 
2960
2960
  import Remarkable from 'remarkable';
2961
2961
  import linkify from 'remarkable/linkify';
2962
2962
  new Remarkable().use(linkify)
2963
- `), this.inline = new Or(), this.block = new aa(), this.core = new tl(), this.renderer = new ia(), this.ruler = new xe(), this.options = {}, this.configure(wd[n]), this.set(i || {});
2963
+ `), this.inline = new Or(), this.block = new aa(), this.core = new tl(), this.renderer = new ia(), this.ruler = new xe(), this.options = {}, this.configure(kd[n]), this.set(i || {});
2964
2964
  }
2965
- Je.prototype.set = function(n) {
2965
+ Ze.prototype.set = function(n) {
2966
2966
  Js(this.options, n);
2967
2967
  };
2968
- Je.prototype.configure = function(n) {
2968
+ Ze.prototype.configure = function(n) {
2969
2969
  var i = this;
2970
2970
  if (!n) throw new Error("Wrong `remarkable` preset, check name/content");
2971
2971
  n.options && i.set(n.options), n.components && Object.keys(n.components).forEach(function(e) {
2972
2972
  n.components[e].rules && i[e].ruler.enable(n.components[e].rules, !0);
2973
2973
  });
2974
2974
  };
2975
- Je.prototype.use = function(n, i) {
2975
+ Ze.prototype.use = function(n, i) {
2976
2976
  return n(this, i), this;
2977
2977
  };
2978
- Je.prototype.parse = function(n, i) {
2978
+ Ze.prototype.parse = function(n, i) {
2979
2979
  var e = new rl(this, n, i);
2980
2980
  return this.core.process(e), e.tokens;
2981
2981
  };
2982
- Je.prototype.render = function(n, i) {
2982
+ Ze.prototype.render = function(n, i) {
2983
2983
  return i = i || {}, this.renderer.render(this.parse(n, i), this.options, i);
2984
2984
  };
2985
- Je.prototype.parseInline = function(n, i) {
2985
+ Ze.prototype.parseInline = function(n, i) {
2986
2986
  var e = new rl(this, n, i);
2987
2987
  return e.inlineMode = !0, this.core.process(e), e.tokens;
2988
2988
  };
2989
- Je.prototype.renderInline = function(n, i) {
2989
+ Ze.prototype.renderInline = function(n, i) {
2990
2990
  return i = i || {}, this.renderer.render(this.parseInline(n, i), this.options, i);
2991
2991
  };
2992
2992
  var Bi = /* @__PURE__ */ function() {
2993
2993
  function n() {
2994
- w(this, n);
2994
+ k(this, n);
2995
2995
  }
2996
- return k(n, null, [{
2996
+ return w(n, null, [{
2997
2997
  key: "instantiate",
2998
2998
  value: function() {
2999
2999
  var e = window.hljs;
3000
- return e ? new Je({
3000
+ return e ? new Ze({
3001
3001
  highlight: function(r, a) {
3002
3002
  if (a && e.getLanguage(a)) try {
3003
3003
  return e.highlight(a, r).value;
@@ -3023,7 +3023,7 @@ var Bi = /* @__PURE__ */ function() {
3023
3023
  // set target to open in a new tab
3024
3024
  typographer: !0
3025
3025
  // Enable smartypants and other sweet transforms
3026
- }) : new Je({
3026
+ }) : new Ze({
3027
3027
  breaks: !0,
3028
3028
  linkTarget: "_blank"
3029
3029
  // set target to open in a new tab
@@ -3040,9 +3040,9 @@ var Bi = /* @__PURE__ */ function() {
3040
3040
  }]);
3041
3041
  }(), il = /* @__PURE__ */ function() {
3042
3042
  function n() {
3043
- w(this, n);
3043
+ k(this, n);
3044
3044
  }
3045
- return k(n, null, [{
3045
+ return w(n, null, [{
3046
3046
  key: "addMessage",
3047
3047
  value: function(e, t, r, a) {
3048
3048
  var o;
@@ -3127,9 +3127,9 @@ var Bi = /* @__PURE__ */ function() {
3127
3127
  il.DEFAULT_FILE_NAME = "file";
3128
3128
  var Se = il, mr = /* @__PURE__ */ function() {
3129
3129
  function n() {
3130
- w(this, n);
3130
+ k(this, n);
3131
3131
  }
3132
- return k(n, null, [{
3132
+ return w(n, null, [{
3133
3133
  key: "onMessage",
3134
3134
  value: function(e, t, r) {
3135
3135
  var a, o = JSON.parse(JSON.stringify({
@@ -3166,9 +3166,9 @@ var Se = il, mr = /* @__PURE__ */ function() {
3166
3166
  }]);
3167
3167
  }(), Qn = /* @__PURE__ */ function() {
3168
3168
  function n() {
3169
- w(this, n);
3169
+ k(this, n);
3170
3170
  }
3171
- return k(n, null, [{
3171
+ return w(n, null, [{
3172
3172
  key: "applyCustomStylesToElements",
3173
3173
  value: function(e, t, r) {
3174
3174
  if (r && (Object.assign(e.outerContainer.style, r.outerContainer), Object.assign(e.innerContainer.style, r.innerContainer), Object.assign(e.bubbleElement.style, r.bubble), t)) {
@@ -3214,11 +3214,11 @@ var Se = il, mr = /* @__PURE__ */ function() {
3214
3214
  }(), al = /* @__PURE__ */ function() {
3215
3215
  function n(i) {
3216
3216
  var e = this;
3217
- w(this, n), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = n.createContainerElement(), this.messageStyles = i.messageStyles, this._remarkable = Bi.createNew(), this._avatars = i.avatars, this._names = i.names, this._onMessage = mr.onMessage.bind(this, i), i.htmlClassUtilities && (this.htmlClassUtilities = i.htmlClassUtilities), setTimeout(function() {
3217
+ k(this, n), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = n.createContainerElement(), this.messageStyles = i.messageStyles, this._remarkable = Bi.createNew(), this._avatars = i.avatars, this._names = i.names, this._onMessage = mr.onMessage.bind(this, i), i.htmlClassUtilities && (this.htmlClassUtilities = i.htmlClassUtilities), setTimeout(function() {
3218
3218
  e.submitUserMessage = i.submitUserMessage;
3219
3219
  });
3220
3220
  }
3221
- return k(n, [{
3221
+ return w(n, [{
3222
3222
  key: "addNewTextMessage",
3223
3223
  value: function(e, t, r) {
3224
3224
  if (r != null && r.status) {
@@ -3344,9 +3344,9 @@ var Se = il, mr = /* @__PURE__ */ function() {
3344
3344
  }]);
3345
3345
  }(), ji = /* @__PURE__ */ function() {
3346
3346
  function n(i) {
3347
- w(this, n), this._fileAdded = !1, this._streamedContent = "", this._streamType = "", this._hasStreamEnded = !1, this._messages = i;
3347
+ k(this, n), this._fileAdded = !1, this._streamedContent = "", this._streamType = "", this._hasStreamEnded = !1, this._messages = i;
3348
3348
  }
3349
- return k(n, [{
3349
+ return w(n, [{
3350
3350
  key: "upsertStreamedMessage",
3351
3351
  value: function(e) {
3352
3352
  var t;
@@ -3438,9 +3438,9 @@ var Se = il, mr = /* @__PURE__ */ function() {
3438
3438
  ji.MESSAGE_CLASS = "streamed-message", ji.HTML_CONTENT_PLACEHOLDER = "htmlplaceholder";
3439
3439
  var tt = ji, ol = /* @__PURE__ */ function() {
3440
3440
  function n() {
3441
- w(this, n);
3441
+ k(this, n);
3442
3442
  }
3443
- return k(n, null, [{
3443
+ return w(n, null, [{
3444
3444
  key: "tempRemoveContentHeader",
3445
3445
  value: (
3446
3446
  // need to pass stringifyBody boolean separately as binding is throwing an error for some reason
@@ -3553,7 +3553,7 @@ var tt = ji, ol = /* @__PURE__ */ function() {
3553
3553
  }();
3554
3554
  ol.CONTENT_TYPE = "Content-Type";
3555
3555
  var G = ol;
3556
- function kd(n, i) {
3556
+ function wd(n, i) {
3557
3557
  return Ui.apply(this, arguments);
3558
3558
  }
3559
3559
  function Ui() {
@@ -3680,7 +3680,7 @@ function Ad(n, i) {
3680
3680
  case 4:
3681
3681
  return ie = z.sent, z.next = 7, L(ie);
3682
3682
  case 7:
3683
- return z.next = 9, kd(ie.body, Sd(_d(function(le) {
3683
+ return z.next = 9, wd(ie.body, Sd(_d(function(le) {
3684
3684
  le ? h[Za] = le : delete h[Za];
3685
3685
  }, function(le) {
3686
3686
  y = le;
@@ -3710,9 +3710,9 @@ function Td(n) {
3710
3710
  }
3711
3711
  var he = /* @__PURE__ */ function() {
3712
3712
  function n() {
3713
- w(this, n);
3713
+ k(this, n);
3714
3714
  }
3715
- return k(n, null, [{
3715
+ return w(n, null, [{
3716
3716
  key: "request",
3717
3717
  value: (
3718
3718
  // prettier-ignore
@@ -3901,9 +3901,9 @@ var he = /* @__PURE__ */ function() {
3901
3901
  }]);
3902
3902
  }(), sl = /* @__PURE__ */ function() {
3903
3903
  function n() {
3904
- w(this, n);
3904
+ k(this, n);
3905
3905
  }
3906
- return k(n, null, [{
3906
+ return w(n, null, [{
3907
3907
  key: "generateResponse",
3908
3908
  value: function(e) {
3909
3909
  var t = e.messages[e.messages.length - 1];
@@ -3970,9 +3970,9 @@ var he = /* @__PURE__ */ function() {
3970
3970
  sl.URL = "deep-chat-demo";
3971
3971
  var nt = sl, _n = /* @__PURE__ */ function() {
3972
3972
  function n() {
3973
- w(this, n);
3973
+ k(this, n);
3974
3974
  }
3975
- return k(n, null, [{
3975
+ return w(n, null, [{
3976
3976
  key: "setup",
3977
3977
  value: function(e) {
3978
3978
  e.connectSettings.url !== nt.URL && (e.permittedErrorPrefixes = ["Connection error", "Error in server message"], e.websocket = "pending");
@@ -4134,9 +4134,9 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4134
4134
  }]);
4135
4135
  }(), sa = /* @__PURE__ */ function() {
4136
4136
  function n() {
4137
- w(this, n);
4137
+ k(this, n);
4138
4138
  }
4139
- return k(n, null, [{
4139
+ return w(n, null, [{
4140
4140
  key: "request",
4141
4141
  value: function() {
4142
4142
  var i = _(/* @__PURE__ */ m().mark(function t(r, a, o) {
@@ -4323,9 +4323,9 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4323
4323
  }]);
4324
4324
  }(), ne = /* @__PURE__ */ function() {
4325
4325
  function n() {
4326
- w(this, n);
4326
+ k(this, n);
4327
4327
  }
4328
- return k(n, null, [{
4328
+ return w(n, null, [{
4329
4329
  key: "request",
4330
4330
  value: (
4331
4331
  // prettier-ignore
@@ -4364,7 +4364,7 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4364
4364
  return G.processResponseByType(F);
4365
4365
  }).then(/* @__PURE__ */ function() {
4366
4366
  var F = _(/* @__PURE__ */ m().mark(function Y(U) {
4367
- var ie, te, we, z;
4367
+ var ie, te, ke, z;
4368
4368
  return m().wrap(function(W) {
4369
4369
  for (; ; ) switch (W.prev = W.next) {
4370
4370
  case 0:
@@ -4382,7 +4382,7 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4382
4382
  }
4383
4383
  W.t0 = U;
4384
4384
  case 7:
4385
- return we = W.t0, W.next = 10, r.extractResultData(we, b, h);
4385
+ return ke = W.t0, W.next = 10, r.extractResultData(ke, b, h);
4386
4386
  case 10:
4387
4387
  if (z = W.sent, g) {
4388
4388
  W.next = 13;
@@ -4394,7 +4394,7 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4394
4394
  W.next = 15;
4395
4395
  break;
4396
4396
  }
4397
- throw Error(oe.INVALID_RESPONSE(U, "response", !!r.deepChat.responseInterceptor, we));
4397
+ throw Error(oe.INVALID_RESPONSE(U, "response", !!r.deepChat.responseInterceptor, ke));
4398
4398
  case 15:
4399
4399
  z.makingAnotherRequest || (he.isSimulatable(r.stream, z) ? he.simulate(o, r.streamHandlers, z) : (o.addNewMessage(z), y()));
4400
4400
  case 16:
@@ -4521,9 +4521,9 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4521
4521
  }]);
4522
4522
  }(), la = /* @__PURE__ */ function() {
4523
4523
  function n() {
4524
- w(this, n);
4524
+ k(this, n);
4525
4525
  }
4526
- return k(n, null, [{
4526
+ return w(n, null, [{
4527
4527
  key: "getCharacterLimitMessages",
4528
4528
  value: function(e, t) {
4529
4529
  var r;
@@ -4555,9 +4555,9 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4555
4555
  }]);
4556
4556
  }(), Rd = /* @__PURE__ */ function() {
4557
4557
  function n() {
4558
- w(this, n);
4558
+ k(this, n);
4559
4559
  }
4560
- return k(n, null, [{
4560
+ return w(n, null, [{
4561
4561
  key: "parseConfig",
4562
4562
  value: (
4563
4563
  // prettier-ignore
@@ -4659,11 +4659,11 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4659
4659
  }(), vr = /* @__PURE__ */ function() {
4660
4660
  function n(i, e, t) {
4661
4661
  var r;
4662
- w(this, n);
4662
+ k(this, n);
4663
4663
  var a, o, s, l, c;
4664
4664
  this.rawBody = {}, this.validateKeyProperty = !1, this.canSendMessage = n.canSendMessage, this.connectSettings = {}, this.fileTypes = {}, this.completionsHandlers = {}, this.streamHandlers = {}, this.deepChat = i, this.demo = t, Object.assign(this.rawBody, (a = i.connect) == null ? void 0 : a.additionalBodyProps), this.totalMessagesMaxCharLength = (o = i == null ? void 0 : i.requestBodyLimits) == null ? void 0 : o.totalMessagesMaxCharLength, this.maxMessages = (s = i == null ? void 0 : i.requestBodyLimits) == null ? void 0 : s.maxMessages, Rd.set(i, this, e), i.connect && (this.connectSettings = i.connect), this.demo && ((r = (l = this.connectSettings).url) !== null && r !== void 0 || (l.url = nt.URL)), this.connectSettings.websocket && _n.setup(this), this.stream = ((c = this.deepChat.connect) == null ? void 0 : c.stream) || Le.checkForStream(this.deepChat);
4665
4665
  }
4666
- return k(n, [{
4666
+ return w(n, [{
4667
4667
  key: "verifyKey",
4668
4668
  value: function(e, t) {
4669
4669
  }
@@ -4862,11 +4862,11 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4862
4862
  }(), be = /* @__PURE__ */ function(n) {
4863
4863
  function i(e, t, r, a, o) {
4864
4864
  var s;
4865
- w(this, i);
4865
+ k(this, i);
4866
4866
  var l;
4867
4867
  return s = $(this, i, [e, o]), s.insertKeyPlaceholderText = "API Key", s.keyHelpUrl = "", Object.assign(s.rawBody, (l = e.connect) == null ? void 0 : l.additionalBodyProps), s.keyVerificationDetails = t, s.buildHeadersFunc = r, a && s.setApiKeyProperties(a), s.connectSettings = s.buildConnectSettings(s.key || "", e.connect), s;
4868
4868
  }
4869
- return B(i, n), k(i, [{
4869
+ return B(i, n), w(i, [{
4870
4870
  key: "setApiKeyProperties",
4871
4871
  value: function(t) {
4872
4872
  this.key = t.key, t.validateKeyProperty && (this.validateKeyProperty = t.validateKeyProperty);
@@ -4897,9 +4897,9 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4897
4897
  }]);
4898
4898
  }(vr), Od = /* @__PURE__ */ function() {
4899
4899
  function n() {
4900
- w(this, n);
4900
+ k(this, n);
4901
4901
  }
4902
- return k(n, null, [{
4902
+ return w(n, null, [{
4903
4903
  key: "waitForPropertiesToBeUpdatedBeforeRender",
4904
4904
  value: function(e) {
4905
4905
  e._propUpdated_ = !1, setTimeout(function() {
@@ -4915,12 +4915,12 @@ var nt = sl, _n = /* @__PURE__ */ function() {
4915
4915
  }(), zi = /* @__PURE__ */ function(n) {
4916
4916
  function i() {
4917
4917
  var e;
4918
- return w(this, i), e = $(this, i), e._waitingToRender_ = !1, e._propUpdated_ = !1, Object.keys(i._attributeToProperty_).forEach(function(t) {
4918
+ return k(this, i), e = $(this, i), e._waitingToRender_ = !1, e._propUpdated_ = !1, Object.keys(i._attributeToProperty_).forEach(function(t) {
4919
4919
  var r = i._attributeToProperty_[t];
4920
4920
  e.constructPropertyAccessors(r), e.hasOwnProperty(t) || e.constructPropertyAccessors(r, t);
4921
4921
  }), e;
4922
4922
  }
4923
- return B(i, n), k(i, [{
4923
+ return B(i, n), w(i, [{
4924
4924
  key: "constructPropertyAccessors",
4925
4925
  value: (
4926
4926
  // need to be called here as accessors need to be set for the class instance
@@ -4994,9 +4994,9 @@ var Id = zi, Ld = `<?xml version="1.0" standalone="no"?>
4994
4994
  </svg>
4995
4995
  `, Ce = /* @__PURE__ */ function() {
4996
4996
  function n() {
4997
- w(this, n);
4997
+ k(this, n);
4998
4998
  }
4999
- return k(n, null, [{
4999
+ return w(n, null, [{
5000
5000
  key: "createSVGElement",
5001
5001
  value: function(e) {
5002
5002
  return new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
@@ -5004,9 +5004,9 @@ var Id = zi, Ld = `<?xml version="1.0" standalone="no"?>
5004
5004
  }]);
5005
5005
  }(), ll = /* @__PURE__ */ function() {
5006
5006
  function n() {
5007
- w(this, n);
5007
+ k(this, n);
5008
5008
  }
5009
- return k(n, null, [{
5009
+ return w(n, null, [{
5010
5010
  key: "changeVisibility",
5011
5011
  value: (
5012
5012
  // prettier-ignore
@@ -5036,9 +5036,9 @@ var Id = zi, Ld = `<?xml version="1.0" standalone="no"?>
5036
5036
  ll.VISIBLE_ICON_ID = "visible-icon";
5037
5037
  var Pd = ll, Nd = /* @__PURE__ */ function() {
5038
5038
  function n() {
5039
- w(this, n);
5039
+ k(this, n);
5040
5040
  }
5041
- return k(n, null, [{
5041
+ return w(n, null, [{
5042
5042
  key: "createCautionText",
5043
5043
  value: function() {
5044
5044
  var e = document.createElement("a");
@@ -5154,9 +5154,9 @@ var Pd = ll, Nd = /* @__PURE__ */ function() {
5154
5154
  }]);
5155
5155
  }(), un = /* @__PURE__ */ function() {
5156
5156
  function n() {
5157
- w(this, n);
5157
+ k(this, n);
5158
5158
  }
5159
- return k(n, null, [{
5159
+ return w(n, null, [{
5160
5160
  key: "enableButtons",
5161
5161
  value: function(e, t) {
5162
5162
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
@@ -5358,11 +5358,11 @@ var Ya = un, Xa = {
5358
5358
  }, zt = /* @__PURE__ */ function(n) {
5359
5359
  function i(e) {
5360
5360
  var t;
5361
- w(this, i);
5361
+ k(this, i);
5362
5362
  var r, a;
5363
5363
  return t = $(this, i, [e]), t._isModelLoaded = !1, t._isModelLoading = !1, t._loadOnFirstMessage = !1, t._webModel = {}, t.permittedErrorPrefixes = [i.MULTIPLE_MODELS_ERROR, i.WEB_LLM_NOT_FOUND_ERROR, i.GENERIC_ERROR], t._conversationHistory = [], D(e.webModel) == "object" && (t._webModel = e.webModel), (r = t._webModel.load) != null && r.clearCache && i.clearAllCache(), t.findModelInWindow(e), t.canSendMessage = t.canSubmit.bind(gn(t)), t._chatEl = (a = e.shadowRoot) == null ? void 0 : a.children[0], e.history && i.setUpHistory(t._conversationHistory, e.history), t;
5364
5364
  }
5365
- return B(i, n), k(i, [{
5365
+ return B(i, n), w(i, [{
5366
5366
  key: "setUpMessages",
5367
5367
  value: function(t) {
5368
5368
  var r = this;
@@ -5506,8 +5506,8 @@ var Ya = un, Xa = {
5506
5506
  for (; ; ) switch (U.prev = U.next) {
5507
5507
  case 0:
5508
5508
  return this.scrollToTop(), i.chat = a, this._isModelLoading = !0, v = ((l = this._webModel.introMessage) == null ? void 0 : l.displayed) === !1, y = function(te) {
5509
- var we;
5510
- (we = s._messages) == null || we.addNewMessage({
5509
+ var ke;
5510
+ (ke = s._messages) == null || ke.addNewMessage({
5511
5511
  html: "<div>".concat(te.text, "</div>"),
5512
5512
  overwrite: !0,
5513
5513
  sendUpdate: !1
@@ -5822,9 +5822,9 @@ var Ya = un, Xa = {
5822
5822
  zt.GENERIC_ERROR = "Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.", zt.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models", zt.WEB_LLM_NOT_FOUND_ERROR = "WebLLM module not found", zt.DEFAULT_MODEL = "Llama-2-7b-chat-hf-q4f32_1", zt.MODULE_SEARCH_LIMIT_S = 5;
5823
5823
  var ca = zt, Qa = /* @__PURE__ */ function() {
5824
5824
  function n() {
5825
- w(this, n);
5825
+ k(this, n);
5826
5826
  }
5827
- return k(n, null, [{
5827
+ return w(n, null, [{
5828
5828
  key: "buildHeaders",
5829
5829
  value: function(e) {
5830
5830
  return {
@@ -5853,11 +5853,11 @@ var ca = zt, Qa = /* @__PURE__ */ function() {
5853
5853
  }(), cl = /* @__PURE__ */ function(n) {
5854
5854
  function i(e, t, r, a, o, s) {
5855
5855
  var l;
5856
- return w(this, i), l = $(this, i, [e, Qa.buildKeyVerificationDetails(), Qa.buildHeaders, o, s]), l.insertKeyPlaceholderText = "Hugging Face Token", l.keyHelpUrl = "https://huggingface.co/settings/tokens", l.introPanelMarkUp = `
5856
+ return k(this, i), l = $(this, i, [e, Qa.buildKeyVerificationDetails(), Qa.buildHeaders, o, s]), l.insertKeyPlaceholderText = "Hugging Face Token", l.keyHelpUrl = "https://huggingface.co/settings/tokens", l.introPanelMarkUp = `
5857
5857
  <div style="width: 100%; text-align: center; margin-left: -10px"><b>Hugging Face</b></div>
5858
5858
  <p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>`, l.permittedErrorPrefixes = ["Authorization header"], l.url = "".concat(i.URL_PREFIX).concat(r), l.textInputPlaceholderText = t, D(a) == "object" && (a.model && (l.url = "".concat(i.URL_PREFIX).concat(a.model)), a.options && (l.rawBody.options = a.options), a.parameters && (l.rawBody.parameters = a.parameters)), l;
5859
5859
  }
5860
- return B(i, n), k(i, [{
5860
+ return B(i, n), w(i, [{
5861
5861
  key: "preprocessBody",
5862
5862
  value: function(t, r, a) {
5863
5863
  var o, s = JSON.parse(JSON.stringify(t)), l = r[r.length - 1].text;
@@ -5894,12 +5894,12 @@ var ca = zt, Qa = /* @__PURE__ */ function() {
5894
5894
  }]);
5895
5895
  }(be);
5896
5896
  cl.URL_PREFIX = "https://api-inference.huggingface.co/models/";
5897
- var Et = cl, ua = /* @__PURE__ */ function(n) {
5897
+ var Ct = cl, ua = /* @__PURE__ */ function(n) {
5898
5898
  function i(e, t, r, a, o, s) {
5899
5899
  var l;
5900
- return w(this, i), l = $(this, i, [e, t, r, a, o, s]), l.isTextInputDisabled = !0, l.canSendMessage = i.canSendFile, l;
5900
+ return k(this, i), l = $(this, i, [e, t, r, a, o, s]), l.isTextInputDisabled = !0, l.canSendMessage = i.canSendFile, l;
5901
5901
  }
5902
- return B(i, n), k(i, [{
5902
+ return B(i, n), w(i, [{
5903
5903
  key: "preprocessBody",
5904
5904
  value: function(t, r, a) {
5905
5905
  return a[0];
@@ -5942,15 +5942,15 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
5942
5942
  return !!(r != null && r[0]);
5943
5943
  }
5944
5944
  }]);
5945
- }(Et), Fd = /* @__PURE__ */ function(n) {
5945
+ }(Ct), Fd = /* @__PURE__ */ function(n) {
5946
5946
  function i(e) {
5947
- w(this, i);
5947
+ k(this, i);
5948
5948
  var t, r, a, o = (r = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : r.audioClassification, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
5949
5949
  return $(this, i, [e, "Attach an audio file", "ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition", o, s, {
5950
5950
  audio: {}
5951
5951
  }]);
5952
5952
  }
5953
- return B(i, n), k(i, [{
5953
+ return B(i, n), w(i, [{
5954
5954
  key: "extractPollResultData",
5955
5955
  value: function() {
5956
5956
  var e = _(/* @__PURE__ */ m().mark(function r(a) {
@@ -5989,13 +5989,13 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
5989
5989
  }]);
5990
5990
  }(ua), Dd = /* @__PURE__ */ function(n) {
5991
5991
  function i(e) {
5992
- w(this, i);
5992
+ k(this, i);
5993
5993
  var t, r, a, o = (r = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : r.imageClassification, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
5994
5994
  return $(this, i, [e, "Attach an image file", "google/vit-base-patch16-224", o, s, {
5995
5995
  images: {}
5996
5996
  }]);
5997
5997
  }
5998
- return B(i, n), k(i, [{
5998
+ return B(i, n), w(i, [{
5999
5999
  key: "extractPollResultData",
6000
6000
  value: function() {
6001
6001
  var e = _(/* @__PURE__ */ m().mark(function r(a) {
@@ -6034,9 +6034,9 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6034
6034
  }]);
6035
6035
  }(ua), Rn = "data:image/png;base64,", at = /* @__PURE__ */ function() {
6036
6036
  function n() {
6037
- w(this, n);
6037
+ k(this, n);
6038
6038
  }
6039
- return k(n, null, [{
6039
+ return w(n, null, [{
6040
6040
  key: "buildHeaders",
6041
6041
  value: function(e) {
6042
6042
  return {
@@ -6063,13 +6063,13 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6063
6063
  }(), Ir = /* @__PURE__ */ function(n) {
6064
6064
  function i(e, t, r, a, o) {
6065
6065
  var s;
6066
- return w(this, i), s = $(this, i, [e, t, r, a, o]), s.insertKeyPlaceholderText = "Stability AI API Key", s.keyHelpUrl = "https://platform.stability.ai/docs/getting-started/authentication", s.permittedErrorPrefixes = ["Incorrect", "invalid_"], s;
6066
+ return k(this, i), s = $(this, i, [e, t, r, a, o]), s.insertKeyPlaceholderText = "Stability AI API Key", s.keyHelpUrl = "https://platform.stability.ai/docs/getting-started/authentication", s.permittedErrorPrefixes = ["Incorrect", "invalid_"], s;
6067
6067
  }
6068
- return B(i, n), k(i);
6068
+ return B(i, n), w(i);
6069
6069
  }(be), $d = /* @__PURE__ */ function(n) {
6070
6070
  function i(e) {
6071
6071
  var t;
6072
- w(this, i);
6072
+ k(this, i);
6073
6073
  var r, a = JSON.parse(JSON.stringify(e.directConnection)), o = a == null ? void 0 : a.stabilityAI, s = {
6074
6074
  images: {
6075
6075
  files: {
@@ -6086,7 +6086,7 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6086
6086
  var l = (r = a == null ? void 0 : a.stabilityAI) == null ? void 0 : r.imageToImageUpscale;
6087
6087
  return D(l) == "object" && (l.engine_id && (t.url = "https://api.stability.ai/v1/generation/".concat(l.engine_id, "/image-to-image/upscale")), i.cleanConfig(l), Object.assign(t.rawBody, l)), t.canSendMessage = i.canSendFileMessage, t;
6088
6088
  }
6089
- return B(i, n), k(i, [{
6089
+ return B(i, n), w(i, [{
6090
6090
  key: "createFormDataBody",
6091
6091
  value: function(t, r) {
6092
6092
  var a = new FormData();
@@ -6173,7 +6173,7 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6173
6173
  }(Ir), Bd = /* @__PURE__ */ function(n) {
6174
6174
  function i(e) {
6175
6175
  var t;
6176
- w(this, i);
6176
+ k(this, i);
6177
6177
  var r, a = JSON.parse(JSON.stringify(e.directConnection)), o = a == null ? void 0 : a.stabilityAI, s = {
6178
6178
  images: {
6179
6179
  files: {
@@ -6190,7 +6190,7 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6190
6190
  var l = (r = a == null ? void 0 : a.stabilityAI) == null ? void 0 : r.imageToImageMasking;
6191
6191
  return D(l) == "object" && (l.engine_id && (t.url = "https://api.stability.ai/v1/generation/".concat(l.engine_id, "/image-to-image/masking")), l.weight !== void 0 && l.weight !== null && (t._imageWeight = l.weight), l.mask_source !== void 0 && l.mask_source !== null && (t._maskSource = l.mask_source), i.cleanConfig(l), Object.assign(t.rawBody, l)), t.canSendMessage = i.canSendFileTextMessage, t;
6192
6192
  }
6193
- return B(i, n), k(i, [{
6193
+ return B(i, n), w(i, [{
6194
6194
  key: "createFormDataBody",
6195
6195
  value: function(t, r, a, o) {
6196
6196
  var s = new FormData();
@@ -6276,13 +6276,13 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6276
6276
  }]);
6277
6277
  }(Ir), jd = /* @__PURE__ */ function(n) {
6278
6278
  function i(e) {
6279
- w(this, i);
6279
+ k(this, i);
6280
6280
  var t, r, a, o = (r = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : r.audioSpeechRecognition, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
6281
6281
  return $(this, i, [e, "Attach an audio file", "facebook/wav2vec2-large-960h-lv60-self", o, s, {
6282
6282
  audio: {}
6283
6283
  }]);
6284
6284
  }
6285
- return B(i, n), k(i, [{
6285
+ return B(i, n), w(i, [{
6286
6286
  key: "extractPollResultData",
6287
6287
  value: function() {
6288
6288
  var e = _(/* @__PURE__ */ m().mark(function r(a) {
@@ -6320,11 +6320,11 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6320
6320
  }]);
6321
6321
  }(ua), Ud = /* @__PURE__ */ function(n) {
6322
6322
  function i(e) {
6323
- w(this, i);
6323
+ k(this, i);
6324
6324
  var t, r, a, o = (r = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : r.textGeneration, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
6325
6325
  return $(this, i, [e, "Once upon a time", "gpt2", o, s]);
6326
6326
  }
6327
- return B(i, n), k(i, [{
6327
+ return B(i, n), w(i, [{
6328
6328
  key: "extractResultData",
6329
6329
  value: function() {
6330
6330
  var e = _(/* @__PURE__ */ m().mark(function r(a) {
@@ -6353,14 +6353,14 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6353
6353
  return t;
6354
6354
  }()
6355
6355
  }]);
6356
- }(Et), Hd = /* @__PURE__ */ function(n) {
6356
+ }(Ct), Hd = /* @__PURE__ */ function(n) {
6357
6357
  function i(e) {
6358
6358
  var t;
6359
- w(this, i);
6359
+ k(this, i);
6360
6360
  var r, a, o, s = (a = (r = e.directConnection) == null ? void 0 : r.huggingFace) == null ? void 0 : a.questionAnswer, l = (o = e.directConnection) == null ? void 0 : o.huggingFace;
6361
6361
  return t = $(this, i, [e, "Ask a question", "bert-large-uncased-whole-word-masking-finetuned-squad", s, l]), t.permittedErrorPrefixes = ["Authorization header", "Error in"], t.context = s.context, t;
6362
6362
  }
6363
- return B(i, n), k(i, [{
6363
+ return B(i, n), w(i, [{
6364
6364
  key: "preprocessBody",
6365
6365
  value: function(t, r) {
6366
6366
  var a = r[r.length - 1].text;
@@ -6402,13 +6402,13 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6402
6402
  return t;
6403
6403
  }()
6404
6404
  }]);
6405
- }(Et), zd = /* @__PURE__ */ function(n) {
6405
+ }(Ct), zd = /* @__PURE__ */ function(n) {
6406
6406
  function i(e) {
6407
- w(this, i);
6407
+ k(this, i);
6408
6408
  var t, r, a, o = (r = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : r.summarization, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
6409
6409
  return $(this, i, [e, "Insert text to summarize", "facebook/bart-large-cnn", o, s]);
6410
6410
  }
6411
- return B(i, n), k(i, [{
6411
+ return B(i, n), w(i, [{
6412
6412
  key: "extractResultData",
6413
6413
  value: function() {
6414
6414
  var e = _(/* @__PURE__ */ m().mark(function r(a) {
@@ -6437,14 +6437,14 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6437
6437
  return t;
6438
6438
  }()
6439
6439
  }]);
6440
- }(Et), qd = /* @__PURE__ */ function(n) {
6440
+ }(Ct), qd = /* @__PURE__ */ function(n) {
6441
6441
  function i(e) {
6442
6442
  var t, r;
6443
- w(this, i);
6443
+ k(this, i);
6444
6444
  var a, o, s, l = (o = (a = e.directConnection) == null ? void 0 : a.huggingFace) == null ? void 0 : o.conversation, c = (s = e.directConnection) == null ? void 0 : s.huggingFace;
6445
6445
  return r = $(this, i, [e, "Ask me anything!", "facebook/blenderbot-400M-distill", l, c]), (t = r.maxMessages) !== null && t !== void 0 || (r.maxMessages = -1), r;
6446
6446
  }
6447
- return B(i, n), k(i, [{
6447
+ return B(i, n), w(i, [{
6448
6448
  key: "processMessages",
6449
6449
  value: function(t) {
6450
6450
  var r = t.filter(function(c) {
@@ -6508,10 +6508,10 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6508
6508
  return t;
6509
6509
  }()
6510
6510
  }]);
6511
- }(Et), Vd = /* @__PURE__ */ function(n) {
6511
+ }(Ct), Vd = /* @__PURE__ */ function(n) {
6512
6512
  function i(e) {
6513
6513
  var t;
6514
- w(this, i);
6514
+ k(this, i);
6515
6515
  var r, a = JSON.parse(JSON.stringify(e.directConnection)), o = a.stabilityAI, s = {
6516
6516
  images: {
6517
6517
  files: {
@@ -6527,7 +6527,7 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6527
6527
  var l = (r = a.stabilityAI) == null ? void 0 : r.imageToImage;
6528
6528
  return D(l) == "object" && (l.engine_id && (t.url = "https://api.stability.ai/v1/generation/".concat(l.engine_id, "/text-to-image")), l.weight !== void 0 && l.weight !== null && (t._imageWeight = l.weight), i.cleanConfig(l), Object.assign(t.rawBody, l)), t.canSendMessage = i.canSendFileTextMessage, t;
6529
6529
  }
6530
- return B(i, n), k(i, [{
6530
+ return B(i, n), w(i, [{
6531
6531
  key: "createFormDataBody",
6532
6532
  value: function(t, r, a) {
6533
6533
  var o = new FormData();
@@ -6613,11 +6613,11 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6613
6613
  }]);
6614
6614
  }(Ir), Wd = /* @__PURE__ */ function(n) {
6615
6615
  function i(e) {
6616
- w(this, i);
6616
+ k(this, i);
6617
6617
  var t, r, a, o = (r = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : r.translation, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
6618
6618
  return $(this, i, [e, "Insert text to translate", "Helsinki-NLP/opus-tatoeba-en-ja", o, s]);
6619
6619
  }
6620
- return B(i, n), k(i, [{
6620
+ return B(i, n), w(i, [{
6621
6621
  key: "extractResultData",
6622
6622
  value: function() {
6623
6623
  var e = _(/* @__PURE__ */ m().mark(function r(a) {
@@ -6646,10 +6646,10 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6646
6646
  return t;
6647
6647
  }()
6648
6648
  }]);
6649
- }(Et), Gd = /* @__PURE__ */ function(n) {
6649
+ }(Ct), Gd = /* @__PURE__ */ function(n) {
6650
6650
  function i(e) {
6651
6651
  var t;
6652
- w(this, i);
6652
+ k(this, i);
6653
6653
  var r, a = JSON.parse(JSON.stringify(e.directConnection)), o = a.stabilityAI;
6654
6654
  t = $(this, i, [e, at.buildKeyVerificationDetails(), at.buildHeaders, o]), t.url = "https://api.stability.ai/v1/generation/stable-diffusion-v1-6/text-to-image", t.textInputPlaceholderText = "Describe an image", t.introPanelMarkUp = `
6655
6655
  <div style="width: 100%; text-align: center; margin-left: -10px"><b>Stability AI: Text to Image</b></div>
@@ -6658,7 +6658,7 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6658
6658
  var s = (r = a.stabilityAI) == null ? void 0 : r.textToImage;
6659
6659
  return D(s) == "object" && (s.engine_id && (t.url = "https://api.stability.ai/v1/generation/".concat(s.engine_id, "/text-to-image")), s.weight !== void 0 && s.weight !== null && (t._imageWeight = s.weight), i.cleanConfig(s), Object.assign(t.rawBody, s)), t.canSendMessage = i.canSendTextMessage, t;
6660
6660
  }
6661
- return B(i, n), k(i, [{
6661
+ return B(i, n), w(i, [{
6662
6662
  key: "preprocessBody",
6663
6663
  value: function(t, r) {
6664
6664
  var a = JSON.parse(JSON.stringify(t)), o = {
@@ -6738,14 +6738,14 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6738
6738
  }(Ir), Kd = /* @__PURE__ */ function(n) {
6739
6739
  function i(e) {
6740
6740
  var t;
6741
- w(this, i);
6741
+ k(this, i);
6742
6742
  var r, a, o, s = (a = (r = e.directConnection) == null ? void 0 : r.huggingFace) == null ? void 0 : a.fillMask, l = (o = e.directConnection) == null ? void 0 : o.huggingFace;
6743
6743
  return t = $(this, i, [e, "The goal of life is [MASK].", "bert-base-uncased", s, l]), t.introPanelMarkUp = `
6744
6744
  <div style="width: 100%; text-align: center; margin-left: -10px"><b>Hugging Face</b></div>
6745
6745
  <p>Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].</p>
6746
6746
  <p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>`, t.permittedErrorPrefixes = ["Authorization header", "No mask_token"], t;
6747
6747
  }
6748
- return B(i, n), k(i, [{
6748
+ return B(i, n), w(i, [{
6749
6749
  key: "extractResultData",
6750
6750
  value: function() {
6751
6751
  var e = _(/* @__PURE__ */ m().mark(function r(a) {
@@ -6774,11 +6774,11 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6774
6774
  return t;
6775
6775
  }()
6776
6776
  }]);
6777
- }(Et), eo = /* @__PURE__ */ function() {
6777
+ }(Ct), eo = /* @__PURE__ */ function() {
6778
6778
  function n() {
6779
- w(this, n);
6779
+ k(this, n);
6780
6780
  }
6781
- return k(n, null, [{
6781
+ return w(n, null, [{
6782
6782
  key: "buildHeaders",
6783
6783
  value: function(e) {
6784
6784
  return {
@@ -6810,16 +6810,16 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6810
6810
  }(), da = /* @__PURE__ */ function(n) {
6811
6811
  function i(e, t, r, a, o) {
6812
6812
  var s;
6813
- return w(this, i), s = $(this, i, [e, eo.buildKeyVerificationDetails(), eo.buildHeaders, o]), s.insertKeyPlaceholderText = "Cohere API Key", s.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", s.permittedErrorPrefixes = ["invalid"], s.url = t, s.textInputPlaceholderText = r, a && D(a) == "object" && Object.assign(s.rawBody, a), s;
6813
+ return k(this, i), s = $(this, i, [e, eo.buildKeyVerificationDetails(), eo.buildHeaders, o]), s.insertKeyPlaceholderText = "Cohere API Key", s.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", s.permittedErrorPrefixes = ["invalid"], s.url = t, s.textInputPlaceholderText = r, a && D(a) == "object" && Object.assign(s.rawBody, a), s;
6814
6814
  }
6815
- return B(i, n), k(i);
6815
+ return B(i, n), w(i);
6816
6816
  }(be), Jd = /* @__PURE__ */ function(n) {
6817
6817
  function i(e) {
6818
- w(this, i);
6818
+ k(this, i);
6819
6819
  var t, r, a, o = (r = (t = e.directConnection) == null ? void 0 : t.cohere) == null ? void 0 : r.textGeneration, s = (a = e.directConnection) == null ? void 0 : a.cohere;
6820
6820
  return $(this, i, [e, "https://api.cohere.ai/v1/generate", "Once upon a time", o, s]);
6821
6821
  }
6822
- return B(i, n), k(i, [{
6822
+ return B(i, n), w(i, [{
6823
6823
  key: "preprocessBody",
6824
6824
  value: function(t, r) {
6825
6825
  var a = JSON.parse(JSON.stringify(t)), o = r[r.length - 1].text;
@@ -6884,11 +6884,11 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6884
6884
  }]);
6885
6885
  }(da), Zd = /* @__PURE__ */ function(n) {
6886
6886
  function i(e) {
6887
- w(this, i);
6887
+ k(this, i);
6888
6888
  var t, r, a, o = (r = (t = e.directConnection) == null ? void 0 : t.cohere) == null ? void 0 : r.summarization, s = (a = e.directConnection) == null ? void 0 : a.cohere;
6889
6889
  return $(this, i, [e, "https://api.cohere.ai/v1/summarize", "Insert text to summarize", o, s]);
6890
6890
  }
6891
- return B(i, n), k(i, [{
6891
+ return B(i, n), w(i, [{
6892
6892
  key: "preprocessBody",
6893
6893
  value: function(t, r) {
6894
6894
  var a = JSON.parse(JSON.stringify(t)), o = r[r.length - 1].text;
@@ -6952,9 +6952,9 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
6952
6952
  }]);
6953
6953
  }(da), ye = /* @__PURE__ */ function() {
6954
6954
  function n() {
6955
- w(this, n);
6955
+ k(this, n);
6956
6956
  }
6957
- return k(n, null, [{
6957
+ return w(n, null, [{
6958
6958
  key: "buildHeaders",
6959
6959
  value: function(e) {
6960
6960
  return {
@@ -7013,7 +7013,7 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
7013
7013
  }(), qi = /* @__PURE__ */ function(n) {
7014
7014
  function i(e) {
7015
7015
  var t, r, a;
7016
- w(this, i);
7016
+ k(this, i);
7017
7017
  var o, s, l, c = JSON.parse(JSON.stringify(e.directConnection)), u = c == null ? void 0 : c.openAI;
7018
7018
  a = $(this, i, [e, ye.buildKeyVerificationDetails(), ye.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 = `
7019
7019
  <div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI : Text To Speech</b></div>
@@ -7022,7 +7022,7 @@ var Et = cl, ua = /* @__PURE__ */ function(n) {
7022
7022
  var d = (o = c == null ? void 0 : c.openAI) == null ? void 0 : o.textToSpeech;
7023
7023
  return D(d) == "object" && Object.assign(a.rawBody, d), (t = (s = a.rawBody).model) !== null && t !== void 0 || (s.model = i.DEFAULT_MODEL), (r = (l = a.rawBody).voice) !== null && r !== void 0 || (l.voice = i.DEFAULT_VOIDE), a.textInputPlaceholderText = "Insert text to generate audio", a.rawBody.response_format = "mp3", a;
7024
7024
  }
7025
- return B(i, n), k(i, [{
7025
+ return B(i, n), w(i, [{
7026
7026
  key: "preprocessBody",
7027
7027
  value: function(t, r) {
7028
7028
  var a, o, s = JSON.parse(JSON.stringify(t)), l = (o = (a = r[r.length - 1]) == null ? void 0 : a.text) == null ? void 0 : o.trim();
@@ -7103,7 +7103,7 @@ qi.DEFAULT_MODEL = "tts-1", qi.DEFAULT_VOIDE = "alloy";
7103
7103
  var Yd = qi, er = /* @__PURE__ */ function(n) {
7104
7104
  function i(e) {
7105
7105
  var t, r;
7106
- w(this, i);
7106
+ k(this, i);
7107
7107
  var a, o, s = JSON.parse(JSON.stringify(e.directConnection)), l = s == null ? void 0 : s.openAI;
7108
7108
  r = $(this, i, [e, ye.buildKeyVerificationDetails(), ye.buildHeaders, l, {
7109
7109
  audio: {}
@@ -7115,7 +7115,7 @@ var Yd = qi, er = /* @__PURE__ */ function(n) {
7115
7115
  var c = (a = s == null ? void 0 : s.openAI) == null ? void 0 : a.audio;
7116
7116
  return D(c) == "object" && (r.processConfig(c), i.cleanConfig(c), Object.assign(r.rawBody, c)), (t = (o = r.rawBody).model) !== null && t !== void 0 || (o.model = i.DEFAULT_MODEL), r.rawBody.response_format = "json", r.canSendMessage = i.canSendFileMessage, r;
7117
7117
  }
7118
- return B(i, n), k(i, [{
7118
+ return B(i, n), w(i, [{
7119
7119
  key: "processConfig",
7120
7120
  value: function(t) {
7121
7121
  t != null && t.type && t.type === "translation" && (this._service_url = i.AUDIO_TRANSLATIONS_URL, delete t.language);
@@ -7207,11 +7207,11 @@ var Yd = qi, er = /* @__PURE__ */ function(n) {
7207
7207
  }]);
7208
7208
  }(be);
7209
7209
  er.AUDIO_TRANSCRIPTIONS_URL = "https://api.openai.com/v1/audio/transcriptions", er.AUDIO_TRANSLATIONS_URL = "https://api.openai.com/v1/audio/translations", er.DEFAULT_MODEL = "whisper-1";
7210
- var Xd = er, yt = /* @__PURE__ */ function() {
7210
+ var Xd = er, bt = /* @__PURE__ */ function() {
7211
7211
  function n() {
7212
- w(this, n);
7212
+ k(this, n);
7213
7213
  }
7214
- return k(n, null, [{
7214
+ return w(n, null, [{
7215
7215
  key: "buildTextToSpeechHeaders",
7216
7216
  value: function(e, t) {
7217
7217
  return {
@@ -7310,18 +7310,18 @@ var Xd = er, yt = /* @__PURE__ */ function() {
7310
7310
  }(), Qd = /* @__PURE__ */ function(n) {
7311
7311
  function i(e, t, r, a, o) {
7312
7312
  var s;
7313
- return w(this, i), s = $(this, i, [e, yt.buildLanguageKeyVerificationDetails(r), t, a, o]), s.insertKeyPlaceholderText = "Azure Language Subscription Key", s.keyHelpUrl = // eslint-disable-next-line max-len
7313
+ return k(this, i), s = $(this, i, [e, bt.buildLanguageKeyVerificationDetails(r), t, a, o]), s.insertKeyPlaceholderText = "Azure Language Subscription Key", s.keyHelpUrl = // eslint-disable-next-line max-len
7314
7314
  "https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", s.permittedErrorPrefixes = ["Access"], s;
7315
7315
  }
7316
- return B(i, n), k(i);
7316
+ return B(i, n), w(i);
7317
7317
  }(be), ep = /* @__PURE__ */ function(n) {
7318
7318
  function i(e) {
7319
7319
  var t, r;
7320
- w(this, i);
7320
+ k(this, i);
7321
7321
  var a, o, s, l, c = (o = (a = e.directConnection) == null ? void 0 : a.azure) == null ? void 0 : o.summarization, u = (s = e.directConnection) == null ? void 0 : s.azure;
7322
- return r = $(this, i, [e, yt.buildSummarizationHeader, c.endpoint, u]), r.url = "", r.textInputPlaceholderText = "Insert text to summarize", (t = (l = r.rawBody).language) !== null && t !== void 0 || (l.language = "en"), Object.assign(r.rawBody, c), r.url = "".concat(c.endpoint, "/language/analyze-text/jobs?api-version=2022-10-01-preview"), r;
7322
+ return r = $(this, i, [e, bt.buildSummarizationHeader, c.endpoint, u]), r.url = "", r.textInputPlaceholderText = "Insert text to summarize", (t = (l = r.rawBody).language) !== null && t !== void 0 || (l.language = "en"), Object.assign(r.rawBody, c), r.url = "".concat(c.endpoint, "/language/analyze-text/jobs?api-version=2022-10-01-preview"), r;
7323
7323
  }
7324
- return B(i, n), k(i, [{
7324
+ return B(i, n), w(i, [{
7325
7325
  key: "preprocessBody",
7326
7326
  value: function(t, r) {
7327
7327
  var a = r[r.length - 1].text;
@@ -7455,9 +7455,9 @@ var Xd = er, yt = /* @__PURE__ */ function() {
7455
7455
  }]);
7456
7456
  }(Qd), li = /* @__PURE__ */ function() {
7457
7457
  function n() {
7458
- w(this, n);
7458
+ k(this, n);
7459
7459
  }
7460
- return k(n, null, [{
7460
+ return w(n, null, [{
7461
7461
  key: "poll",
7462
7462
  value: function() {
7463
7463
  var i = _(/* @__PURE__ */ m().mark(function t(r, a) {
@@ -7550,7 +7550,7 @@ var Xd = er, yt = /* @__PURE__ */ function() {
7550
7550
  }(), tp = /* @__PURE__ */ function(n) {
7551
7551
  function i(e) {
7552
7552
  var t;
7553
- w(this, i);
7553
+ k(this, i);
7554
7554
  var r, a = (r = e.directConnection) == null ? void 0 : r.assemblyAI;
7555
7555
  return t = $(this, i, [e, li.buildKeyVerificationDetails(), li.buildHeaders, a, {
7556
7556
  audio: {}
@@ -7561,7 +7561,7 @@ var Xd = er, yt = /* @__PURE__ */ function() {
7561
7561
  Click <a href="https://www.assemblyai.com/docs/Guides/transcribing_an_audio_file#get-started">here</a> for more info.
7562
7562
  </p>`, t.url = "https://api.assemblyai.com/v2/upload", t.isTextInputDisabled = !0, t.textInputPlaceholderText = "Upload an audio file", t.permittedErrorPrefixes = ["Authentication", "Invalid"], t.canSendMessage = i.canFileSendMessage, t;
7563
7563
  }
7564
- return B(i, n), k(i, [{
7564
+ return B(i, n), w(i, [{
7565
7565
  key: "callServiceAPI",
7566
7566
  value: function() {
7567
7567
  var e = _(/* @__PURE__ */ m().mark(function r(a, o, s) {
@@ -7632,23 +7632,23 @@ var Xd = er, yt = /* @__PURE__ */ function() {
7632
7632
  }(be), ul = /* @__PURE__ */ function(n) {
7633
7633
  function i(e, t, r, a, o) {
7634
7634
  var s;
7635
- return w(this, i), s = $(this, i, [e, yt.buildSpeechKeyVerificationDetails(r), t, a, o]), s.insertKeyPlaceholderText = "Azure Speech Subscription Key", s.keyHelpUrl = // eslint-disable-next-line max-len
7635
+ return k(this, i), s = $(this, i, [e, bt.buildSpeechKeyVerificationDetails(r), t, a, o]), s.insertKeyPlaceholderText = "Azure Speech Subscription Key", s.keyHelpUrl = // eslint-disable-next-line max-len
7636
7636
  "https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", s;
7637
7637
  }
7638
- return B(i, n), k(i);
7638
+ return B(i, n), w(i);
7639
7639
  }(be), dl = /* @__PURE__ */ function(n) {
7640
7640
  function i(e) {
7641
7641
  var t, r, a, o;
7642
- w(this, i);
7642
+ k(this, i);
7643
7643
  var s, l, c, u, d, p, h = (l = (s = e.directConnection) == null ? void 0 : s.azure) == null ? void 0 : l.textToSpeech, f = (c = e.directConnection) == null ? void 0 : c.azure;
7644
- return o = $(this, i, [e, yt.buildTextToSpeechHeaders.bind({}, (h == null ? void 0 : h.outputFormat) || "audio-16khz-128kbitrate-mono-mp3"), h.region, f]), o.introPanelMarkUp = `
7644
+ return o = $(this, i, [e, bt.buildTextToSpeechHeaders.bind({}, (h == null ? void 0 : h.outputFormat) || "audio-16khz-128kbitrate-mono-mp3"), h.region, f]), o.introPanelMarkUp = `
7645
7645
  <div style="width: 100%; text-align: center; margin-left: -10px"><b>Azure Text To Speech</b></div>
7646
7646
  <p>Insert text to synthesize it to audio.
7647
7647
  <p>
7648
7648
  Click <a href="`.concat(i.HELP_LINK, `">here</a> for more info.
7649
7649
  </p>`), o.url = "", Object.assign(o.rawBody, h), (t = (u = o.rawBody).lang) !== null && t !== void 0 || (u.lang = "en-US"), (r = (d = o.rawBody).name) !== null && r !== void 0 || (d.name = "en-US-JennyNeural"), (a = (p = o.rawBody).gender) !== null && a !== void 0 || (p.gender = "Female"), o.url = "https://".concat(h.region, ".tts.speech.microsoft.com/cognitiveservices/v1"), o;
7650
7650
  }
7651
- return B(i, n), k(i, [{
7651
+ return B(i, n), w(i, [{
7652
7652
  key: "preprocessBody",
7653
7653
  value: function(t, r) {
7654
7654
  var a = r[r.length - 1].text;
@@ -7720,7 +7720,7 @@ dl.HELP_LINK = // eslint-disable-next-line max-len
7720
7720
  var np = dl, pl = /* @__PURE__ */ function(n) {
7721
7721
  function i(e) {
7722
7722
  var t;
7723
- w(this, i);
7723
+ k(this, i);
7724
7724
  var r, a, o, s = (a = (r = e.directConnection) == null ? void 0 : r.azure) == null ? void 0 : a.speechToText, l = (o = e.directConnection) == null ? void 0 : o.azure, c = {
7725
7725
  audio: {
7726
7726
  files: {
@@ -7728,7 +7728,7 @@ var np = dl, pl = /* @__PURE__ */ function(n) {
7728
7728
  }
7729
7729
  }
7730
7730
  };
7731
- t = $(this, i, [e, yt.buildSpeechToTextHeaders, s.region, l, c]), t.introPanelMarkUp = `
7731
+ t = $(this, i, [e, bt.buildSpeechToTextHeaders, s.region, l, c]), t.introPanelMarkUp = `
7732
7732
  <div style="width: 100%; text-align: center; margin-left: -10px"><b>Azure Speech To Text</b></div>
7733
7733
  <p><b>Upload a .wav or .ogg audio file</b> to transcribe it into text.
7734
7734
  <p>
@@ -7737,7 +7737,7 @@ var np = dl, pl = /* @__PURE__ */ function(n) {
7737
7737
  var u = s.lang || "en-US";
7738
7738
  return t.url = "https://".concat(s.region, ".stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=").concat(u, "&format=detailed"), t.recordAudio = void 0, t;
7739
7739
  }
7740
- return B(i, n), k(i, [{
7740
+ return B(i, n), w(i, [{
7741
7741
  key: "callServiceAPI",
7742
7742
  value: function() {
7743
7743
  var e = _(/* @__PURE__ */ m().mark(function r(a, o, s) {
@@ -7808,12 +7808,12 @@ pl.HELP_LINK = // eslint-disable-next-line max-len
7808
7808
  var rp = pl, ip = /* @__PURE__ */ function(n) {
7809
7809
  function i(e) {
7810
7810
  var t;
7811
- w(this, i);
7811
+ k(this, i);
7812
7812
  var r, a, o, s = (a = (r = e.directConnection) == null ? void 0 : r.azure) == null ? void 0 : a.translation, l = (o = e.directConnection) == null ? void 0 : o.azure;
7813
- return t = $(this, i, [e, yt.buildTranslationKeyVerificationDetails(s.region), yt.buildTranslationHeaders.bind({}, s == null ? void 0 : s.region), l]), t.insertKeyPlaceholderText = "Azure Translate Subscription Key", t.keyHelpUrl = // eslint-disable-next-line max-len
7813
+ return t = $(this, i, [e, bt.buildTranslationKeyVerificationDetails(s.region), bt.buildTranslationHeaders.bind({}, s == null ? void 0 : s.region), l]), t.insertKeyPlaceholderText = "Azure Translate Subscription Key", t.keyHelpUrl = // eslint-disable-next-line max-len
7814
7814
  "https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", t.url = "", t.url = "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=".concat(s.language || "es"), t;
7815
7815
  }
7816
- return B(i, n), k(i, [{
7816
+ return B(i, n), w(i, [{
7817
7817
  key: "preprocessBody",
7818
7818
  value: function(t) {
7819
7819
  var r = t[t.length - 1].text;
@@ -7878,9 +7878,9 @@ var rp = pl, ip = /* @__PURE__ */ function(n) {
7878
7878
  }]);
7879
7879
  }(be), Vi = /* @__PURE__ */ function() {
7880
7880
  function n() {
7881
- w(this, n);
7881
+ k(this, n);
7882
7882
  }
7883
- return k(n, null, [{
7883
+ return w(n, null, [{
7884
7884
  key: "storeFiles",
7885
7885
  value: function() {
7886
7886
  var i = _(/* @__PURE__ */ m().mark(function t(r, a, o) {
@@ -8170,10 +8170,10 @@ var rp = pl, ip = /* @__PURE__ */ function(n) {
8170
8170
  }]);
8171
8171
  }();
8172
8172
  Vi.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", Vi.FUNCTION_TOOL_RESP_ERROR = "Response must contain an array of strings for each individual function/tool_call, see https://deepchat.dev/docs/directConnection/OpenAI/#assistant-functions.";
8173
- var lt = Vi, tr = /* @__PURE__ */ function(n) {
8173
+ var ct = Vi, tr = /* @__PURE__ */ function(n) {
8174
8174
  function i(e) {
8175
8175
  var t, r, a;
8176
- w(this, i);
8176
+ k(this, i);
8177
8177
  var o, s, l, c, u, d, p = JSON.parse(JSON.stringify(e.directConnection)), h = p.openAI;
8178
8178
  a = $(this, i, [e, ye.buildKeyVerificationDetails(), ye.buildHeaders, h]), 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 = {
8179
8179
  model: "gpt-4"
@@ -8188,7 +8188,7 @@ var lt = Vi, tr = /* @__PURE__ */ function(n) {
8188
8188
  } else (c = p.openAI) != null && c.assistant && (p.openAI.assistant = f);
8189
8189
  return (t = (u = a.connectSettings).headers) !== null && t !== void 0 || (u.headers = {}), (r = (d = a.connectSettings.headers)["OpenAI-Beta"]) !== null && r !== void 0 || (d["OpenAI-Beta"] = "assistants=v2"), a.maxMessages = 1, a.isSSEStream = !!(a.stream && (D(a.stream) != "object" || !a.stream.simulation)), a.shouldFetchHistory && a.sessionId && (a.fetchHistory = a.fetchHistoryFunc.bind(a)), a;
8190
8190
  }
8191
- return B(i, n), k(i, [{
8191
+ return B(i, n), w(i, [{
8192
8192
  key: "fetchHistoryFunc",
8193
8193
  value: function() {
8194
8194
  var e = _(/* @__PURE__ */ m().mark(function r() {
@@ -8301,7 +8301,7 @@ var lt = Vi, tr = /* @__PURE__ */ function(n) {
8301
8301
  p.next = 19;
8302
8302
  break;
8303
8303
  }
8304
- return p.next = 16, lt.storeFiles(this, a, s);
8304
+ return p.next = 16, ct.storeFiles(this, a, s);
8305
8305
  case 16:
8306
8306
  p.t1 = p.sent, p.next = 20;
8307
8307
  break;
@@ -8373,7 +8373,7 @@ var lt = Vi, tr = /* @__PURE__ */ function(n) {
8373
8373
  u.next = 6;
8374
8374
  break;
8375
8375
  }
8376
- throw a.error.message.startsWith(lt.FILES_WITH_TEXT_ERROR) ? Error("Please send text with your file(s)") : a.error.message;
8376
+ throw a.error.message.startsWith(ct.FILES_WITH_TEXT_ERROR) ? Error("Please send text with your file(s)") : a.error.message;
8377
8377
  case 6:
8378
8378
  return u.next = 8, this.assignThreadAndRun(a);
8379
8379
  case 8:
@@ -8441,7 +8441,7 @@ var lt = Vi, tr = /* @__PURE__ */ function(n) {
8441
8441
  case 9:
8442
8442
  c = p.sent;
8443
8443
  case 10:
8444
- return p.abrupt("return", lt.processAPIMessages(this, c, o));
8444
+ return p.abrupt("return", ct.processAPIMessages(this, c, o));
8445
8445
  case 11:
8446
8446
  case "end":
8447
8447
  return p.stop();
@@ -8529,7 +8529,7 @@ var lt = Vi, tr = /* @__PURE__ */ function(n) {
8529
8529
  d.next = 5;
8530
8530
  break;
8531
8531
  }
8532
- throw Error(lt.FUNCTION_TOOL_RESP_ERROR);
8532
+ throw Error(ct.FUNCTION_TOOL_RESP_ERROR);
8533
8533
  case 5:
8534
8534
  return d.next = 7, Promise.all(s);
8535
8535
  case 7:
@@ -8539,7 +8539,7 @@ var lt = Vi, tr = /* @__PURE__ */ function(n) {
8539
8539
  d.next = 10;
8540
8540
  break;
8541
8541
  }
8542
- throw Error(lt.FUNCTION_TOOL_RESP_ERROR);
8542
+ throw Error(ct.FUNCTION_TOOL_RESP_ERROR);
8543
8543
  case 10:
8544
8544
  if (c = l.map(function(p, h) {
8545
8545
  return {
@@ -8632,7 +8632,7 @@ var lt = Vi, tr = /* @__PURE__ */ function(n) {
8632
8632
  }
8633
8633
  return p = a.content.find(function(b) {
8634
8634
  return !!b.text;
8635
- }) || a.content[0], h = lt.getFilesAndText.bind(this, this, {
8635
+ }) || a.content[0], h = ct.getFilesAndText.bind(this, this, {
8636
8636
  role: "assistant",
8637
8637
  content: a.content
8638
8638
  }, p), g.abrupt("return", ((s = this.messageStream) == null || s.endStreamAfterFileDownloaded(this.messages, h), {
@@ -8653,7 +8653,7 @@ var lt = Vi, tr = /* @__PURE__ */ function(n) {
8653
8653
  g.next = 13;
8654
8654
  break;
8655
8655
  }
8656
- return g.next = 11, lt.processStreamMessages(this, a.delta.content);
8656
+ return g.next = 11, ct.processStreamMessages(this, a.delta.content);
8657
8657
  case 11:
8658
8658
  return v = g.sent, g.abrupt("return", {
8659
8659
  text: v[0].text,
@@ -8747,7 +8747,7 @@ tr.THREAD_PREFIX = "https://api.openai.com/v1/threads", tr.NEW_ASSISTANT_URL = "
8747
8747
  var ap = tr, nr = /* @__PURE__ */ function(n) {
8748
8748
  function i(e) {
8749
8749
  var t;
8750
- w(this, i);
8750
+ k(this, i);
8751
8751
  var r, a = e.directConnection, o = a == null ? void 0 : a.openAI, s = {
8752
8752
  images: {
8753
8753
  files: {
@@ -8775,7 +8775,7 @@ var ap = tr, nr = /* @__PURE__ */ function(n) {
8775
8775
  }
8776
8776
  return D(l) == "object" && Object.assign(t.rawBody, l), t.canSendMessage = i.canFileSendMessage, t;
8777
8777
  }
8778
- return B(i, n), k(i, [{
8778
+ return B(i, n), w(i, [{
8779
8779
  key: "preprocessBody",
8780
8780
  value: function(t, r) {
8781
8781
  var a = JSON.parse(JSON.stringify(t));
@@ -8895,7 +8895,7 @@ nr.IMAGE_GENERATION_URL = "https://api.openai.com/v1/images/generations", nr.IMA
8895
8895
  var op = nr, sp = /* @__PURE__ */ function(n) {
8896
8896
  function i(e) {
8897
8897
  var t, r, a;
8898
- w(this, i);
8898
+ k(this, i);
8899
8899
  var o, s, l, c, u = JSON.parse(JSON.stringify(e.directConnection)), d = u.openAI;
8900
8900
  a = $(this, i, [e, ye.buildKeyVerificationDetails(), ye.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 = i.generateSystemMessage("You are a helpful assistant.");
8901
8901
  var p = (o = u.openAI) == null ? void 0 : o.chat;
@@ -8906,7 +8906,7 @@ var op = nr, sp = /* @__PURE__ */ function(n) {
8906
8906
  }
8907
8907
  return (t = a.maxMessages) !== null && t !== void 0 || (a.maxMessages = -1), (r = (c = a.rawBody).model) !== null && r !== void 0 || (c.model = "gpt-4o"), a;
8908
8908
  }
8909
- return B(i, n), k(i, [{
8909
+ return B(i, n), w(i, [{
8910
8910
  key: "cleanConfig",
8911
8911
  value: function(t) {
8912
8912
  delete t.system_prompt, delete t.function_handler;
@@ -9141,11 +9141,11 @@ var op = nr, sp = /* @__PURE__ */ function(n) {
9141
9141
  }(be), lp = /* @__PURE__ */ function(n) {
9142
9142
  function i(e) {
9143
9143
  var t, r;
9144
- w(this, i);
9144
+ k(this, i);
9145
9145
  var a, o = JSON.parse(JSON.stringify(e.directConnection)), s = (a = o.cohere) == null ? void 0 : a.chat, l = o.cohere;
9146
9146
  return r = $(this, i, [e, "https://api.cohere.ai/v1/chat", "Ask me anything!", s, l]), D(s) == "object" && Object.assign(r.rawBody, s), (t = r.maxMessages) !== null && t !== void 0 || (r.maxMessages = -1), r;
9147
9147
  }
9148
- return B(i, n), k(i, [{
9148
+ return B(i, n), w(i, [{
9149
9149
  key: "preprocessBody",
9150
9150
  value: function(t, r) {
9151
9151
  var a = JSON.parse(JSON.stringify(t)), o = r.filter(function(s) {
@@ -9214,9 +9214,9 @@ var op = nr, sp = /* @__PURE__ */ function(n) {
9214
9214
  }]);
9215
9215
  }(da), to = /* @__PURE__ */ function() {
9216
9216
  function n() {
9217
- w(this, n);
9217
+ k(this, n);
9218
9218
  }
9219
- return k(n, null, [{
9219
+ return w(n, null, [{
9220
9220
  key: "buildHeaders",
9221
9221
  value: function(e) {
9222
9222
  return {
@@ -9245,11 +9245,11 @@ var op = nr, sp = /* @__PURE__ */ function(n) {
9245
9245
  }(), cp = /* @__PURE__ */ function(n) {
9246
9246
  function i(e) {
9247
9247
  var t, r, a;
9248
- w(this, i);
9248
+ k(this, i);
9249
9249
  var o, s = JSON.parse(JSON.stringify(e.directConnection)).mistral;
9250
9250
  return a = $(this, i, [e, to.buildKeyVerificationDetails(), to.buildHeaders, s]), a.insertKeyPlaceholderText = "Mistral API Key", a.keyHelpUrl = "https://console.mistral.ai/api-keys/", a.url = "https://api.mistral.ai/v1/chat/completions", a.permittedErrorPrefixes = ["invalid"], s && (a.cleanConfig(s), Object.assign(a.rawBody, s)), (t = a.maxMessages) !== null && t !== void 0 || (a.maxMessages = -1), (r = (o = a.rawBody).model) !== null && r !== void 0 || (o.model = "open-mistral-7b"), a;
9251
9251
  }
9252
- return B(i, n), k(i, [{
9252
+ return B(i, n), w(i, [{
9253
9253
  key: "cleanConfig",
9254
9254
  value: function(t) {
9255
9255
  delete t.key;
@@ -9324,9 +9324,9 @@ var op = nr, sp = /* @__PURE__ */ function(n) {
9324
9324
  }]);
9325
9325
  }(be), up = /* @__PURE__ */ function() {
9326
9326
  function n() {
9327
- w(this, n);
9327
+ k(this, n);
9328
9328
  }
9329
- return k(n, null, [{
9329
+ return w(n, null, [{
9330
9330
  key: "create",
9331
9331
  value: (
9332
9332
  // this should only be called when no _activeService is set or is demo as otherwise we don't want to reconnect
@@ -9351,8 +9351,8 @@ var op = nr, sp = /* @__PURE__ */ function(n) {
9351
9351
  }
9352
9352
  )
9353
9353
  }]);
9354
- }(), hl = /* @__PURE__ */ k(function n() {
9355
- w(this, n);
9354
+ }(), hl = /* @__PURE__ */ w(function n() {
9355
+ k(this, n);
9356
9356
  });
9357
9357
  hl.attibutes = {
9358
9358
  string: function(i) {
@@ -9384,9 +9384,9 @@ function J(n) {
9384
9384
  }
9385
9385
  var pp = /* @__PURE__ */ function() {
9386
9386
  function n() {
9387
- w(this, n);
9387
+ k(this, n);
9388
9388
  }
9389
- return k(n, null, [{
9389
+ return w(n, null, [{
9390
9390
  key: "colorToHex",
9391
9391
  value: function(e) {
9392
9392
  var t = document.createElement("div");
@@ -9406,9 +9406,9 @@ var pp = /* @__PURE__ */ function() {
9406
9406
  }]);
9407
9407
  }(), hp = /* @__PURE__ */ function() {
9408
9408
  function n(i, e, t) {
9409
- w(this, n), this._isDisplayed = !1, i ? (this._elementRef = this.createIntroPanelWithChild(i, t), this._isDisplayed = !0) : e && (this._elementRef = this.createInternalIntroPanel(e, t), this._isDisplayed = !0);
9409
+ k(this, n), this._isDisplayed = !1, i ? (this._elementRef = this.createIntroPanelWithChild(i, t), this._isDisplayed = !0) : e && (this._elementRef = this.createInternalIntroPanel(e, t), this._isDisplayed = !0);
9410
9410
  }
9411
- return k(n, [{
9411
+ return w(n, [{
9412
9412
  key: "createIntroPanelWithChild",
9413
9413
  value: function(e, t) {
9414
9414
  var r = n.createIntroPanel(t);
@@ -9439,9 +9439,9 @@ var pp = /* @__PURE__ */ function() {
9439
9439
  }]);
9440
9440
  }(), fp = /* @__PURE__ */ function() {
9441
9441
  function n() {
9442
- w(this, n);
9442
+ k(this, n);
9443
9443
  }
9444
- return k(n, null, [{
9444
+ return w(n, null, [{
9445
9445
  key: "getText",
9446
9446
  value: function(e, t) {
9447
9447
  var r;
@@ -9497,9 +9497,9 @@ var pp = /* @__PURE__ */ function() {
9497
9497
  </g>
9498
9498
  </svg>`, vp = /* @__PURE__ */ function() {
9499
9499
  function n() {
9500
- w(this, n);
9500
+ k(this, n);
9501
9501
  }
9502
- return k(n, null, [{
9502
+ return w(n, null, [{
9503
9503
  key: "createImage",
9504
9504
  value: function(e, t) {
9505
9505
  var r = new Image();
@@ -9568,7 +9568,7 @@ var pp = /* @__PURE__ */ function() {
9568
9568
  }(), gp = /* @__PURE__ */ function(n) {
9569
9569
  function i(e, t, r) {
9570
9570
  var a;
9571
- w(this, i);
9571
+ k(this, i);
9572
9572
  var o, s;
9573
9573
  a = $(this, i, [e]);
9574
9574
  var l = t.permittedErrorPrefixes, c = t.introPanelMarkUp, u = t.demo;
@@ -9582,7 +9582,7 @@ var pp = /* @__PURE__ */ function() {
9582
9582
  a.textToSpeech = d;
9583
9583
  }), t.fetchHistory && a.fetchHistory(t.fetchHistory), a;
9584
9584
  }
9585
- return B(i, n), k(i, [{
9585
+ return B(i, n), w(i, [{
9586
9586
  key: "prepareDemo",
9587
9587
  value: function(t) {
9588
9588
  D(t) == "object" && (t.response && (this.customDemoResponse = t.response), t.displayErrors && (t.displayErrors.default && this.addNewErrorMessage("", ""), t.displayErrors.service && this.addNewErrorMessage("service", ""), t.displayErrors.speechToText && this.addNewErrorMessage("speechToText", "")), t.displayLoadingBubble && this.addLoadingMessage());
@@ -9808,9 +9808,9 @@ var pp = /* @__PURE__ */ function() {
9808
9808
  }]);
9809
9809
  }(al), dn = /* @__PURE__ */ function() {
9810
9810
  function n() {
9811
- w(this, n);
9811
+ k(this, n);
9812
9812
  }
9813
- return k(n, null, [{
9813
+ return w(n, null, [{
9814
9814
  key: "adjustInputPadding",
9815
9815
  value: function(e, t) {
9816
9816
  t["inside-left"].length > 0 && e.classList.add("text-input-inner-left-adjustment"), t["inside-right"].length > 0 && e.classList.add("text-input-inner-right-adjustment");
@@ -9844,9 +9844,9 @@ var pp = /* @__PURE__ */ function() {
9844
9844
  dn.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS = "text-input-container-left-adjustment", dn.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS = "text-input-container-right-adjustment", dn.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS = "text-input-container-left-small-adjustment", dn.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS = "text-input-container-right-small-adjustment";
9845
9845
  var yp = dn, gr = /* @__PURE__ */ function() {
9846
9846
  function n() {
9847
- w(this, n);
9847
+ k(this, n);
9848
9848
  }
9849
- return k(n, null, [{
9849
+ return w(n, null, [{
9850
9850
  key: "create",
9851
9851
  value: function() {
9852
9852
  return Array.from({
@@ -9874,11 +9874,11 @@ var yp = dn, gr = /* @__PURE__ */ function() {
9874
9874
  e[a].appendChild(t), a === 3 && t.classList.add("outside-right");
9875
9875
  }
9876
9876
  }]);
9877
- }(), no = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"], mt = /* @__PURE__ */ function() {
9877
+ }(), no = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"], vt = /* @__PURE__ */ function() {
9878
9878
  function n() {
9879
- w(this, n);
9879
+ k(this, n);
9880
9880
  }
9881
- return k(n, null, [{
9881
+ return w(n, null, [{
9882
9882
  key: "createTextElement",
9883
9883
  value: function(e) {
9884
9884
  var t = document.createElement("div");
@@ -9922,11 +9922,11 @@ var yp = dn, gr = /* @__PURE__ */ function() {
9922
9922
  }(), bp = `<?xml version="1.0" encoding="utf-8"?>
9923
9923
  <svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
9924
9924
  <path d="M16 0c-8.836 0-16 7.163-16 16s7.163 16 16 16c8.837 0 16-7.163 16-16s-7.163-16-16-16zM16 30.032c-7.72 0-14-6.312-14-14.032s6.28-14 14-14 14 6.28 14 14-6.28 14.032-14 14.032zM23 15h-6v-6c0-0.552-0.448-1-1-1s-1 0.448-1 1v6h-6c-0.552 0-1 0.448-1 1s0.448 1 1 1h6v6c0 0.552 0.448 1 1 1s1-0.448 1-1v-6h6c0.552 0 1-0.448 1-1s-0.448-1-1-1z"></path>
9925
- </svg>`, ct = /* @__PURE__ */ function() {
9925
+ </svg>`, ut = /* @__PURE__ */ function() {
9926
9926
  function n() {
9927
- w(this, n);
9927
+ k(this, n);
9928
9928
  }
9929
- return k(n, null, [{
9929
+ return w(n, null, [{
9930
9930
  key: "unsetAllCSS",
9931
9931
  value: function(e, t) {
9932
9932
  var r, a;
@@ -9952,29 +9952,29 @@ var yp = dn, gr = /* @__PURE__ */ function() {
9952
9952
  }]);
9953
9953
  }(), On = /* @__PURE__ */ function() {
9954
9954
  function n(i, e, t, r) {
9955
- w(this, n), this._mouseState = {
9955
+ k(this, n), this._mouseState = {
9956
9956
  state: "default"
9957
9957
  }, this.elementRef = i, this._customStyles = t, this.position = e, this.dropupText = r;
9958
9958
  }
9959
- return k(n, [{
9959
+ return w(n, [{
9960
9960
  key: "buttonMouseLeave",
9961
9961
  value: function(e) {
9962
- this._mouseState.state = "default", e && (ct.unsetAllCSS(this.elementRef, e), ct.setElementsCSS(this.elementRef, e, "default"));
9962
+ this._mouseState.state = "default", e && (ut.unsetAllCSS(this.elementRef, e), ut.setElementsCSS(this.elementRef, e, "default"));
9963
9963
  }
9964
9964
  }, {
9965
9965
  key: "buttonMouseEnter",
9966
9966
  value: function(e) {
9967
- this._mouseState.state = "hover", e && ct.setElementsCSS(this.elementRef, e, "hover");
9967
+ this._mouseState.state = "hover", e && ut.setElementsCSS(this.elementRef, e, "hover");
9968
9968
  }
9969
9969
  }, {
9970
9970
  key: "buttonMouseUp",
9971
9971
  value: function(e) {
9972
- e && ct.unsetActionCSS(this.elementRef, e), this.buttonMouseEnter(e);
9972
+ e && ut.unsetActionCSS(this.elementRef, e), this.buttonMouseEnter(e);
9973
9973
  }
9974
9974
  }, {
9975
9975
  key: "buttonMouseDown",
9976
9976
  value: function(e) {
9977
- this._mouseState.state = "click", e && ct.setElementsCSS(this.elementRef, e, "click");
9977
+ this._mouseState.state = "click", e && ut.setElementsCSS(this.elementRef, e, "click");
9978
9978
  }
9979
9979
  // be careful not to use onclick as that is used for button functionality
9980
9980
  }, {
@@ -9987,7 +9987,7 @@ var yp = dn, gr = /* @__PURE__ */ function() {
9987
9987
  value: function(e) {
9988
9988
  if (this._customStyles) for (var t = 0; t < e.length; t += 1) {
9989
9989
  var r = e[t], a = r && this._customStyles[r];
9990
- a && ct.unsetActionCSS(this.elementRef, a);
9990
+ a && ut.unsetActionCSS(this.elementRef, a);
9991
9991
  }
9992
9992
  }
9993
9993
  }, {
@@ -9996,15 +9996,15 @@ var yp = dn, gr = /* @__PURE__ */ function() {
9996
9996
  if (this._customStyles) {
9997
9997
  t && this.unsetCustomStateStyles(t);
9998
9998
  var r = this._customStyles[e];
9999
- r && ct.setElementCssUpToState(this.elementRef, r, this._mouseState.state), this.setEvents(r);
9999
+ r && ut.setElementCssUpToState(this.elementRef, r, this._mouseState.state), this.setEvents(r);
10000
10000
  }
10001
10001
  }
10002
10002
  }]);
10003
10003
  }(), ro = /* @__PURE__ */ function() {
10004
10004
  function n() {
10005
- w(this, n);
10005
+ k(this, n);
10006
10006
  }
10007
- return k(n, null, [{
10007
+ return w(n, null, [{
10008
10008
  key: "focusItemWhenOnEdge",
10009
10009
  value: function(e, t) {
10010
10010
  var r = t ? e.children[0] : e.children[e.children.length - 1];
@@ -10019,11 +10019,11 @@ var yp = dn, gr = /* @__PURE__ */ function() {
10019
10019
  o ? (e.dispatchEvent(new MouseEvent("mouseleave")), o.dispatchEvent(new MouseEvent("mouseenter"))) : (e.dispatchEvent(new MouseEvent("mouseleave")), n.focusItemWhenOnEdge(t, r));
10020
10020
  }
10021
10021
  }]);
10022
- }(), wp = /* @__PURE__ */ function() {
10022
+ }(), kp = /* @__PURE__ */ function() {
10023
10023
  function n() {
10024
- w(this, n);
10024
+ k(this, n);
10025
10025
  }
10026
- return k(n, null, [{
10026
+ return w(n, null, [{
10027
10027
  key: "addItemEvents",
10028
10028
  value: function(e, t, r, a) {
10029
10029
  Gs.add(t, a), t.addEventListener("click", function() {
@@ -10066,16 +10066,16 @@ var yp = dn, gr = /* @__PURE__ */ function() {
10066
10066
  return n.addItemEvents(e, l, o, c), l;
10067
10067
  }
10068
10068
  }]);
10069
- }(), kp = /* @__PURE__ */ function() {
10069
+ }(), wp = /* @__PURE__ */ function() {
10070
10070
  function n(i, e) {
10071
10071
  var t = this;
10072
- w(this, n);
10072
+ k(this, n);
10073
10073
  var r;
10074
10074
  this._isOpen = !0, this._styles = e, this.elementRef = n.createElement((r = this._styles) == null ? void 0 : r.container), this.close(), setTimeout(function() {
10075
10075
  return t.addWindowEvents(i);
10076
10076
  });
10077
10077
  }
10078
- return k(n, [{
10078
+ return w(n, [{
10079
10079
  key: "open",
10080
10080
  value: function() {
10081
10081
  this.elementRef.style.display = "block", this._isOpen = !0;
@@ -10093,7 +10093,7 @@ var yp = dn, gr = /* @__PURE__ */ function() {
10093
10093
  }, {
10094
10094
  key: "addItem",
10095
10095
  value: function(e) {
10096
- var t = wp.createItem(this, e, this._styles);
10096
+ var t = kp.createItem(this, e, this._styles);
10097
10097
  this.elementRef.appendChild(t);
10098
10098
  }
10099
10099
  // prettier-ignore
@@ -10125,15 +10125,15 @@ var yp = dn, gr = /* @__PURE__ */ function() {
10125
10125
  }(), io = /* @__PURE__ */ function(n) {
10126
10126
  function i(e, t) {
10127
10127
  var r;
10128
- w(this, i);
10128
+ k(this, i);
10129
10129
  var a;
10130
10130
  r = $(this, i, [i.createButtonElement(), void 0, {
10131
10131
  styles: (a = t == null ? void 0 : t.button) == null ? void 0 : a.styles
10132
10132
  }]);
10133
10133
  var o = r.createInnerElements(r._customStyles);
10134
- return r._menu = new kp(e, t == null ? void 0 : t.menu), r.addClickEvent(), r.buttonContainer = i.createButtonContainer(), r.elementRef.appendChild(o.styles), r.buttonContainer.appendChild(r.elementRef), r.elementRef.classList.add("dropup-icon", "upload-file-button"), r.elementRef.children[0].id = "dropup-icon", r.buttonContainer.appendChild(r._menu.elementRef), r.reapplyStateStyle("styles"), r.addContainerEvents(e), r;
10134
+ return r._menu = new wp(e, t == null ? void 0 : t.menu), r.addClickEvent(), r.buttonContainer = i.createButtonContainer(), r.elementRef.appendChild(o.styles), r.buttonContainer.appendChild(r.elementRef), r.elementRef.classList.add("dropup-icon", "upload-file-button"), r.elementRef.children[0].id = "dropup-icon", r.buttonContainer.appendChild(r._menu.elementRef), r.reapplyStateStyle("styles"), r.addContainerEvents(e), r;
10135
10135
  }
10136
- return B(i, n), k(i, [{
10136
+ return B(i, n), w(i, [{
10137
10137
  key: "createInnerElements",
10138
10138
  value: function(t) {
10139
10139
  return {
@@ -10143,7 +10143,7 @@ var yp = dn, gr = /* @__PURE__ */ function() {
10143
10143
  }, {
10144
10144
  key: "createInnerElement",
10145
10145
  value: function(t, r, a) {
10146
- return mt.createSpecificStateElement(this.elementRef, r, a) || t;
10146
+ return vt.createSpecificStateElement(this.elementRef, r, a) || t;
10147
10147
  }
10148
10148
  }, {
10149
10149
  key: "addClickEvent",
@@ -10189,9 +10189,9 @@ var yp = dn, gr = /* @__PURE__ */ function() {
10189
10189
  }]);
10190
10190
  }(On), Sp = /* @__PURE__ */ function() {
10191
10191
  function n() {
10192
- w(this, n);
10192
+ k(this, n);
10193
10193
  }
10194
- return k(n, null, [{
10194
+ return w(n, null, [{
10195
10195
  key: "addToDropup",
10196
10196
  value: (
10197
10197
  // prettier-ignore
@@ -10325,9 +10325,9 @@ var yp = dn, gr = /* @__PURE__ */ function() {
10325
10325
  `, fl = /* @__PURE__ */ function(n) {
10326
10326
  function i(e) {
10327
10327
  var t;
10328
- return w(this, i), (e == null ? void 0 : e.position) === "dropup-menu" && (e.position = "outside-right"), t = $(this, i, [i.createMicrophoneElement(), e == null ? void 0 : e.position, e]), t.isActive = !1, t._innerElements = t.createInnerElements(t._customStyles), t.changeToDefault(), t;
10328
+ return k(this, i), (e == null ? void 0 : e.position) === "dropup-menu" && (e.position = "outside-right"), t = $(this, i, [i.createMicrophoneElement(), e == null ? void 0 : e.position, e]), t.isActive = !1, t._innerElements = t.createInnerElements(t._customStyles), t.changeToDefault(), t;
10329
10329
  }
10330
- return B(i, n), k(i, [{
10330
+ return B(i, n), w(i, [{
10331
10331
  key: "createInnerElements",
10332
10332
  value: function(t) {
10333
10333
  var r = i.createSVGIconElement();
@@ -10342,7 +10342,7 @@ var yp = dn, gr = /* @__PURE__ */ function() {
10342
10342
  }, {
10343
10343
  key: "createInnerElement",
10344
10344
  value: function(t, r, a) {
10345
- return mt.createSpecificStateElement(this.elementRef, r, a) || t;
10345
+ return vt.createSpecificStateElement(this.elementRef, r, a) || t;
10346
10346
  }
10347
10347
  }, {
10348
10348
  key: "changeToActive",
@@ -10393,16 +10393,16 @@ var yp = dn, gr = /* @__PURE__ */ function() {
10393
10393
  return t.id = "microphone-icon", t;
10394
10394
  }
10395
10395
  }]);
10396
- }(On), ml = {}, Lr = {}, Mr = {}, In = {}, Ct = {};
10397
- Object.defineProperty(Ct, "__esModule", {
10396
+ }(On), ml = {}, Lr = {}, Mr = {}, In = {}, xt = {};
10397
+ Object.defineProperty(xt, "__esModule", {
10398
10398
  value: !0
10399
10399
  });
10400
- Ct.Text = void 0;
10400
+ xt.Text = void 0;
10401
10401
  var Pr = /* @__PURE__ */ function() {
10402
10402
  function n() {
10403
- w(this, n);
10403
+ k(this, n);
10404
10404
  }
10405
- return k(n, null, [{
10405
+ return w(n, null, [{
10406
10406
  key: "capitalize",
10407
10407
  value: function(e) {
10408
10408
  return e.replace(n.FIRST_CHAR_REGEX, function(t) {
@@ -10428,7 +10428,7 @@ var Pr = /* @__PURE__ */ function() {
10428
10428
  }
10429
10429
  }]);
10430
10430
  }();
10431
- Ct.Text = Pr;
10431
+ xt.Text = Pr;
10432
10432
  Pr.FIRST_CHAR_REGEX = /\S/;
10433
10433
  Pr.DOUBLE_LINE = /\n\n/g;
10434
10434
  Pr.ONE_LINE = /\n/g;
@@ -10436,11 +10436,11 @@ Object.defineProperty(In, "__esModule", {
10436
10436
  value: !0
10437
10437
  });
10438
10438
  In.Translate = void 0;
10439
- var Rp = Ct, Op = /* @__PURE__ */ function() {
10439
+ var Rp = xt, Op = /* @__PURE__ */ function() {
10440
10440
  function n() {
10441
- w(this, n);
10441
+ k(this, n);
10442
10442
  }
10443
- return k(n, null, [{
10443
+ return w(n, null, [{
10444
10444
  key: "translate",
10445
10445
  value: function(e, t) {
10446
10446
  for (var r = Rp.Text.breakupIntoWordsArr(e), a = 0; a < r.length; a += 1) t[r[a]] && (r[a] = t[r[a]]);
@@ -10455,9 +10455,9 @@ Object.defineProperty(Mr, "__esModule", {
10455
10455
  Mr.WebSpeechTranscript = void 0;
10456
10456
  var ao = In, Ip = /* @__PURE__ */ function() {
10457
10457
  function n() {
10458
- w(this, n);
10458
+ k(this, n);
10459
10459
  }
10460
- return k(n, null, [{
10460
+ return w(n, null, [{
10461
10461
  key: "extract",
10462
10462
  value: function(e, t, r) {
10463
10463
  for (var a = "", o = e.resultIndex; o < e.results.length; ++o) {
@@ -10491,8 +10491,8 @@ Object.defineProperty(Xt, "__esModule", {
10491
10491
  value: !0
10492
10492
  });
10493
10493
  Xt.Browser = void 0;
10494
- var pn = /* @__PURE__ */ k(function n() {
10495
- w(this, n);
10494
+ var pn = /* @__PURE__ */ w(function n() {
10495
+ k(this, n);
10496
10496
  });
10497
10497
  Xt.Browser = pn;
10498
10498
  pn.IS_SAFARI = function() {
@@ -10505,9 +10505,9 @@ Object.defineProperty(Nr, "__esModule", {
10505
10505
  Nr.EventListeners = void 0;
10506
10506
  var vl = /* @__PURE__ */ function() {
10507
10507
  function n() {
10508
- w(this, n);
10508
+ k(this, n);
10509
10509
  }
10510
- return k(n, null, [{
10510
+ return w(n, null, [{
10511
10511
  key: "getElementIfFocusedOnAvailable",
10512
10512
  value: function(e, t) {
10513
10513
  return Array.isArray(e) ? e.find(function(r) {
@@ -10554,9 +10554,9 @@ Object.defineProperty(Fr, "__esModule", {
10554
10554
  Fr.PreResultUtils = void 0;
10555
10555
  var Lp = /* @__PURE__ */ function() {
10556
10556
  function n() {
10557
- w(this, n);
10557
+ k(this, n);
10558
10558
  }
10559
- return k(n, null, [{
10559
+ return w(n, null, [{
10560
10560
  key: "process",
10561
10561
  value: function(e, t, r, a, o) {
10562
10562
  var s = a == null ? void 0 : a(t, r);
@@ -10574,9 +10574,9 @@ Object.defineProperty(Pn, "__esModule", {
10574
10574
  Pn.AutoScroll = void 0;
10575
10575
  var Mp = /* @__PURE__ */ function() {
10576
10576
  function n() {
10577
- w(this, n);
10577
+ k(this, n);
10578
10578
  }
10579
- return k(n, null, [{
10579
+ return w(n, null, [{
10580
10580
  key: "changeStateIfNeeded",
10581
10581
  value: function(e, t) {
10582
10582
  t && !e.isCursorAtEnd && (e.endPadding = "", e.scrollingSpan.innerHTML = "&nbsp;");
@@ -10608,16 +10608,16 @@ var Mp = /* @__PURE__ */ function() {
10608
10608
  }]);
10609
10609
  }();
10610
10610
  Pn.AutoScroll = Mp;
10611
- var xt = {};
10612
- Object.defineProperty(xt, "__esModule", {
10611
+ var At = {};
10612
+ Object.defineProperty(At, "__esModule", {
10613
10613
  value: !0
10614
10614
  });
10615
- xt.Elements = void 0;
10615
+ At.Elements = void 0;
10616
10616
  var Pp = /* @__PURE__ */ function() {
10617
10617
  function n() {
10618
- w(this, n);
10618
+ k(this, n);
10619
10619
  }
10620
- return k(n, null, [{
10620
+ return w(n, null, [{
10621
10621
  key: "isPrimitiveElement",
10622
10622
  value: function(e) {
10623
10623
  return e.tagName === "INPUT" || e.tagName === "TEXTAREA";
@@ -10659,17 +10659,17 @@ var Pp = /* @__PURE__ */ function() {
10659
10659
  }
10660
10660
  }]);
10661
10661
  }();
10662
- xt.Elements = Pp;
10663
- var At = {};
10664
- Object.defineProperty(At, "__esModule", {
10662
+ At.Elements = Pp;
10663
+ var Tt = {};
10664
+ Object.defineProperty(Tt, "__esModule", {
10665
10665
  value: !0
10666
10666
  });
10667
- At.Cursor = void 0;
10667
+ Tt.Cursor = void 0;
10668
10668
  var Np = /* @__PURE__ */ function() {
10669
10669
  function n() {
10670
- w(this, n);
10670
+ k(this, n);
10671
10671
  }
10672
- return k(n, null, [{
10672
+ return w(n, null, [{
10673
10673
  key: "setOffsetForGeneric",
10674
10674
  value: function(e, t) {
10675
10675
  for (var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, a = 0, o = 0; o < e.childNodes.length; o += 1) {
@@ -10743,16 +10743,16 @@ var Np = /* @__PURE__ */ function() {
10743
10743
  }
10744
10744
  }]);
10745
10745
  }();
10746
- At.Cursor = Np;
10746
+ Tt.Cursor = Np;
10747
10747
  Object.defineProperty(Mn, "__esModule", {
10748
10748
  value: !0
10749
10749
  });
10750
10750
  Mn.CommandUtils = void 0;
10751
- var oo = Pn, Fp = xt, Dp = Xt, so = At, lo = Ct, $p = /* @__PURE__ */ function() {
10751
+ var oo = Pn, Fp = At, Dp = Xt, so = Tt, lo = xt, $p = /* @__PURE__ */ function() {
10752
10752
  function n() {
10753
- w(this, n);
10753
+ k(this, n);
10754
10754
  }
10755
- return k(n, null, [{
10755
+ return w(n, null, [{
10756
10756
  key: "processCommand",
10757
10757
  value: function(e, t) {
10758
10758
  return (!t || !t.caseSensitive) && (e = e.toLowerCase()), (t == null ? void 0 : t.substrings) === !1 ? lo.Text.breakupIntoWordsArr(e) : e;
@@ -10843,11 +10843,11 @@ Object.defineProperty(Dr, "__esModule", {
10843
10843
  value: !0
10844
10844
  });
10845
10845
  Dr.Highlight = void 0;
10846
- var Bp = xt, en = At, jp = /* @__PURE__ */ function() {
10846
+ var Bp = At, en = Tt, jp = /* @__PURE__ */ function() {
10847
10847
  function n() {
10848
- w(this, n);
10848
+ k(this, n);
10849
10849
  }
10850
- return k(n, null, [{
10850
+ return w(n, null, [{
10851
10851
  key: "setStateForPrimitive",
10852
10852
  value: function(e, t) {
10853
10853
  var r, a;
@@ -10894,11 +10894,11 @@ Object.defineProperty($r, "__esModule", {
10894
10894
  value: !0
10895
10895
  });
10896
10896
  $r.Padding = void 0;
10897
- var Up = xt, co = At, Mt = Ct, Hp = /* @__PURE__ */ function() {
10897
+ var Up = At, co = Tt, Mt = xt, Hp = /* @__PURE__ */ function() {
10898
10898
  function n() {
10899
- w(this, n);
10899
+ k(this, n);
10900
10900
  }
10901
- return k(n, null, [{
10901
+ return w(n, null, [{
10902
10902
  key: "setStateForPrimitiveElement",
10903
10903
  value: function(e, t) {
10904
10904
  if (document.activeElement === t && t.selectionStart !== null) {
@@ -10950,11 +10950,11 @@ Object.defineProperty(Ln, "__esModule", {
10950
10950
  value: !0
10951
10951
  });
10952
10952
  Ln.Speech = void 0;
10953
- var uo = Nr, zp = Fr, po = Mn, Wn = Pn, ci = Dr, De = xt, ui = $r, ho = Xt, fo = At, di = Ct, qp = /* @__PURE__ */ function() {
10953
+ var uo = Nr, zp = Fr, po = Mn, Wn = Pn, ci = Dr, De = At, ui = $r, ho = Xt, fo = Tt, di = xt, qp = /* @__PURE__ */ function() {
10954
10954
  function n() {
10955
- w(this, n), this.finalTranscript = "", this.interimSpan = De.Elements.createInterimSpan(), this.finalSpan = De.Elements.createGenericSpan(), this.scrollingSpan = De.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();
10955
+ k(this, n), this.finalTranscript = "", this.interimSpan = De.Elements.createInterimSpan(), this.finalSpan = De.Elements.createGenericSpan(), this.scrollingSpan = De.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();
10956
10956
  }
10957
- return k(n, [{
10957
+ return w(n, [{
10958
10958
  key: "prepareBeforeStart",
10959
10959
  value: function(e) {
10960
10960
  var t, r;
@@ -11065,9 +11065,9 @@ Object.defineProperty(Lr, "__esModule", {
11065
11065
  Lr.WebSpeech = void 0;
11066
11066
  var mo = Mr, vo = Xt, Vp = Ln, Wp = /* @__PURE__ */ function(n) {
11067
11067
  function i() {
11068
- return w(this, i), $(this, i);
11068
+ return k(this, i), $(this, i);
11069
11069
  }
11070
- return B(i, n), k(i, [{
11070
+ return B(i, n), w(i, [{
11071
11071
  key: "start",
11072
11072
  value: function(t) {
11073
11073
  var r;
@@ -11130,9 +11130,9 @@ Object.defineProperty(Br, "__esModule", {
11130
11130
  Br.GlobalState = void 0;
11131
11131
  var gl = /* @__PURE__ */ function() {
11132
11132
  function n() {
11133
- w(this, n);
11133
+ k(this, n);
11134
11134
  }
11135
- return k(n, null, [{
11135
+ return w(n, null, [{
11136
11136
  key: "doubleClickDetector",
11137
11137
  value: function() {
11138
11138
  return n.doubleClickPending ? !0 : (n.doubleClickPending = !0, setTimeout(function() {
@@ -11150,9 +11150,9 @@ Object.defineProperty(Ur, "__esModule", {
11150
11150
  Ur.PreventConnectionStop = void 0;
11151
11151
  var Gp = /* @__PURE__ */ function() {
11152
11152
  function n() {
11153
- w(this, n);
11153
+ k(this, n);
11154
11154
  }
11155
- return k(n, null, [{
11155
+ return w(n, null, [{
11156
11156
  key: "applyPrevention",
11157
11157
  value: function(e) {
11158
11158
  clearTimeout(e._manualConnectionStopPrevention), e.cannotBeStopped = !0, e._manualConnectionStopPrevention = setTimeout(function() {
@@ -11179,9 +11179,9 @@ Object.defineProperty(Hr, "__esModule", {
11179
11179
  Hr.AzureSpeechConfig = void 0;
11180
11180
  var pi = zr, Kp = /* @__PURE__ */ function() {
11181
11181
  function n() {
11182
- w(this, n);
11182
+ k(this, n);
11183
11183
  }
11184
- return k(n, null, [{
11184
+ return w(n, null, [{
11185
11185
  key: "validateOptions",
11186
11186
  value: function(e, t) {
11187
11187
  return t ? !t.subscriptionKey && !t.token && !t.retrieveToken ? (e("Please define a 'subscriptionKey', 'token' or 'retrieveToken' property - more info: ".concat(pi.README_URL)), !1) : t.region ? !0 : (e("Please define a 'region' property - more info: ".concat(pi.README_URL)), !1) : (e("Please provide subscription details - more info: ".concat(pi.README_URL)), !1);
@@ -11250,9 +11250,9 @@ Object.defineProperty(qr, "__esModule", {
11250
11250
  qr.StopTimeout = void 0;
11251
11251
  var yl = /* @__PURE__ */ function() {
11252
11252
  function n() {
11253
- w(this, n);
11253
+ k(this, n);
11254
11254
  }
11255
- return k(n, null, [{
11255
+ return w(n, null, [{
11256
11256
  key: "set",
11257
11257
  value: function(e) {
11258
11258
  e.stopTimeout = setTimeout(function() {
@@ -11275,9 +11275,9 @@ Object.defineProperty(Vr, "__esModule", {
11275
11275
  Vr.AzureTranscript = void 0;
11276
11276
  var Jp = In, Zp = /* @__PURE__ */ function() {
11277
11277
  function n() {
11278
- w(this, n);
11278
+ k(this, n);
11279
11279
  }
11280
- return k(n, null, [{
11280
+ return w(n, null, [{
11281
11281
  key: "extract",
11282
11282
  value: (
11283
11283
  // newText is used to only send new text in onResult as finalTranscript is continuously accumulated
@@ -11303,9 +11303,9 @@ jr.Azure = void 0;
11303
11303
  var go = Ur, yo = Hr, hi = qr, bo = Vr, Yp = Ln, Xp = /* @__PURE__ */ function(n) {
11304
11304
  function i() {
11305
11305
  var e;
11306
- return w(this, i), e = $(this, i, arguments), e._newTextPadding = "", e;
11306
+ return k(this, i), e = $(this, i, arguments), e._newTextPadding = "", e;
11307
11307
  }
11308
- return B(i, n), k(i, [{
11308
+ return B(i, n), w(i, [{
11309
11309
  key: "start",
11310
11310
  value: function(t, r) {
11311
11311
  this._newTextPadding = "", this.stopTimeout === void 0 && hi.StopTimeout.reset(this, t == null ? void 0 : t.stopAfterSilenceMs), this.prepareBeforeStart(t), this.startAsync(t), r || go.PreventConnectionStop.applyPrevention(this);
@@ -11453,11 +11453,11 @@ jr.Azure = Xp;
11453
11453
  Object.defineProperty(ml, "__esModule", {
11454
11454
  value: !0
11455
11455
  });
11456
- var wo = Lr, Qp = Mn, Pe = Br, eh = jr, th = /* @__PURE__ */ function() {
11456
+ var ko = Lr, Qp = Mn, Pe = Br, eh = jr, th = /* @__PURE__ */ function() {
11457
11457
  function n() {
11458
- w(this, n);
11458
+ k(this, n);
11459
11459
  }
11460
- return k(n, null, [{
11460
+ return w(n, null, [{
11461
11461
  key: "toggle",
11462
11462
  value: function(e, t) {
11463
11463
  var r, a, o = e.toLocaleLowerCase().trim();
@@ -11466,12 +11466,12 @@ var wo = Lr, Qp = Mn, Pe = Br, eh = jr, th = /* @__PURE__ */ function() {
11466
11466
  }, {
11467
11467
  key: "startWebSpeech",
11468
11468
  value: function(e) {
11469
- n.stop() || (Pe.GlobalState.service = new wo.WebSpeech(), Pe.GlobalState.service.start(e));
11469
+ n.stop() || (Pe.GlobalState.service = new ko.WebSpeech(), Pe.GlobalState.service.start(e));
11470
11470
  }
11471
11471
  }, {
11472
11472
  key: "isWebSpeechSupported",
11473
11473
  value: function() {
11474
- return !!wo.WebSpeech.getAPI();
11474
+ return !!ko.WebSpeech.getAPI();
11475
11475
  }
11476
11476
  }, {
11477
11477
  key: "startAzure",
@@ -11493,9 +11493,9 @@ var wo = Lr, Qp = Mn, Pe = Br, eh = jr, th = /* @__PURE__ */ function() {
11493
11493
  }]);
11494
11494
  }(), rr = ml.default = th, nh = /* @__PURE__ */ function() {
11495
11495
  function n(i, e) {
11496
- w(this, n), this.silenceMS = 2e3, this.stop = !0, typeof e == "boolean" && e === !1 && (this.stop = !1), typeof i == "number" && (this.silenceMS = i);
11496
+ k(this, n), this.silenceMS = 2e3, this.stop = !0, typeof e == "boolean" && e === !1 && (this.stop = !1), typeof i == "number" && (this.silenceMS = i);
11497
11497
  }
11498
- return k(n, [{
11498
+ return w(n, [{
11499
11499
  key: "setSilenceTimeout",
11500
11500
  value: function(e, t) {
11501
11501
  var r = this;
@@ -11523,7 +11523,7 @@ var wo = Lr, Qp = Mn, Pe = Br, eh = jr, th = /* @__PURE__ */ function() {
11523
11523
  }(), bl = /* @__PURE__ */ function(n) {
11524
11524
  function i(e, t, r) {
11525
11525
  var a;
11526
- w(this, i);
11526
+ k(this, i);
11527
11527
  var o = D(e.speechToText) == "object" ? e.speechToText : {};
11528
11528
  a = $(this, i, [o == null ? void 0 : o.button]);
11529
11529
  var s = a.processConfiguration(t, e.speechToText), l = s.serviceName, c = s.processedConfig;
@@ -11536,7 +11536,7 @@ var wo = Lr, Qp = Mn, Pe = Br, eh = jr, th = /* @__PURE__ */ function() {
11536
11536
  a._validationHandler = e._validationHandler;
11537
11537
  }), a;
11538
11538
  }
11539
- return B(i, n), k(i, [{
11539
+ return B(i, n), w(i, [{
11540
11540
  key: "processConfiguration",
11541
11541
  value: function(t, r) {
11542
11542
  var a, o, s, l, c, u, d = D(r) == "object" ? r : {}, p = D(d.webSpeech) == "object" ? d.webSpeech : {}, h = d.azure || {}, f = ee(ee({
@@ -11625,11 +11625,11 @@ bl.MICROPHONE_RESET_TIMEOUT_MS = 300;
11625
11625
  var pa = bl, ha = /* @__PURE__ */ function() {
11626
11626
  function n(i, e, t, r) {
11627
11627
  var a = this;
11628
- w(this, n), this._attachments = [], this._fileCountLimit = 99, this._acceptedFormat = "", e.maxNumberOfFiles && (this._fileCountLimit = e.maxNumberOfFiles), this._toggleContainerDisplay = t, this._fileAttachmentsContainerRef = r, e.acceptedFormats && (this._acceptedFormat = e.acceptedFormats), setTimeout(function() {
11628
+ k(this, n), this._attachments = [], this._fileCountLimit = 99, this._acceptedFormat = "", e.maxNumberOfFiles && (this._fileCountLimit = e.maxNumberOfFiles), this._toggleContainerDisplay = t, this._fileAttachmentsContainerRef = r, e.acceptedFormats && (this._acceptedFormat = e.acceptedFormats), setTimeout(function() {
11629
11629
  a._validationHandler = i._validationHandler;
11630
11630
  });
11631
11631
  }
11632
- return k(n, [{
11632
+ return w(n, [{
11633
11633
  key: "attemptAddFile",
11634
11634
  value: function(e, t) {
11635
11635
  return n.isFileTypeValid(e, this._acceptedFormat) ? (this.addAttachmentBasedOnType(e, t, !0), !0) : !1;
@@ -11749,15 +11749,15 @@ var pa = bl, ha = /* @__PURE__ */ function() {
11749
11749
  <svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
11750
11750
  <title>play</title>
11751
11751
  <path d="M5.92 24.096q0 1.088 0.928 1.728 0.512 0.288 1.088 0.288 0.448 0 0.896-0.224l16.16-8.064q0.48-0.256 0.8-0.736t0.288-1.088-0.288-1.056-0.8-0.736l-16.16-8.064q-0.448-0.224-0.896-0.224-0.544 0-1.088 0.288-0.928 0.608-0.928 1.728v16.16z"></path>
11752
- </svg>`, ko = `<?xml version="1.0" encoding="utf-8"?>
11752
+ </svg>`, wo = `<?xml version="1.0" encoding="utf-8"?>
11753
11753
  <svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
11754
11754
  <title>stop</title>
11755
11755
  <path d="M5.92 24.096q0 0.832 0.576 1.408t1.44 0.608h16.128q0.832 0 1.44-0.608t0.576-1.408v-16.16q0-0.832-0.576-1.44t-1.44-0.576h-16.128q-0.832 0-1.44 0.576t-0.576 1.44v16.16z"></path>
11756
- </svg>`, wl = /* @__PURE__ */ function(n) {
11756
+ </svg>`, kl = /* @__PURE__ */ function(n) {
11757
11757
  function i(e, t, r, a) {
11758
- return w(this, i), $(this, i, [e, t, r, a]);
11758
+ return k(this, i), $(this, i, [e, t, r, a]);
11759
11759
  }
11760
- return B(i, n), k(i, [{
11760
+ return B(i, n), w(i, [{
11761
11761
  key: "createTimer",
11762
11762
  value: function(t, r) {
11763
11763
  var a = this, o = 0, s = r !== void 0 && r < i.TIMER_LIMIT_S ? r : i.TIMER_LIMIT_S;
@@ -11775,7 +11775,7 @@ var pa = bl, ha = /* @__PURE__ */ function() {
11775
11775
  a.classList.add("audio-placeholder-text-3-digits");
11776
11776
  var o = document.createElement("div");
11777
11777
  o.classList.add("file-attachment-text-container", "audio-placeholder-text-3-digits-container"), o.appendChild(a);
11778
- var s = Ce.createSVGElement(ko);
11778
+ var s = Ce.createSVGElement(wo);
11779
11779
  return s.classList.add("attachment-icon", "stop-icon", "not-removable-attachment-icon"), a.textContent = "0:00", this._activePlaceholderTimer = this.createTimer(a, t), r.appendChild(o), this.addPlaceholderAudioAttachmentEvents(r, s, o), r;
11780
11780
  }
11781
11781
  }, {
@@ -11831,7 +11831,7 @@ var pa = bl, ha = /* @__PURE__ */ function() {
11831
11831
  o.src = r;
11832
11832
  var s = Ce.createSVGElement(rh);
11833
11833
  s.classList.add("attachment-icon", "play-icon");
11834
- var l = Ce.createSVGElement(ko);
11834
+ var l = Ce.createSVGElement(wo);
11835
11835
  l.classList.add("attachment-icon", "stop-icon"), a.replaceChildren(s), o.onplay = function() {
11836
11836
  a.replaceChildren(l);
11837
11837
  }, o.onpause = function() {
@@ -11856,12 +11856,12 @@ var pa = bl, ha = /* @__PURE__ */ function() {
11856
11856
  }
11857
11857
  }]);
11858
11858
  }(ha);
11859
- wl.TIMER_LIMIT_S = 5999;
11860
- var Wi = wl, ih = /* @__PURE__ */ function() {
11859
+ kl.TIMER_LIMIT_S = 5999;
11860
+ var Wi = kl, ih = /* @__PURE__ */ function() {
11861
11861
  function n() {
11862
- w(this, n);
11862
+ k(this, n);
11863
11863
  }
11864
- return k(n, null, [{
11864
+ return w(n, null, [{
11865
11865
  key: "create",
11866
11866
  value: (
11867
11867
  // prettier-ignore
@@ -11872,11 +11872,11 @@ var Wi = wl, ih = /* @__PURE__ */ function() {
11872
11872
  }]);
11873
11873
  }(), fa = /* @__PURE__ */ function() {
11874
11874
  function n(i, e, t) {
11875
- w(this, n), this._fileAttachmentsTypes = [], this.elementRef = this.createAttachmentContainer();
11875
+ k(this, n), this._fileAttachmentsTypes = [], this.elementRef = this.createAttachmentContainer();
11876
11876
  var r = D(t) == "object" && !!t.displayFileAttachmentContainer;
11877
11877
  this.toggleContainerDisplay(r), i.appendChild(this.elementRef), e && Object.assign(this.elementRef.style, e);
11878
11878
  }
11879
- return k(n, [{
11879
+ return w(n, [{
11880
11880
  key: "addType",
11881
11881
  value: function(e, t, r) {
11882
11882
  var a = ih.create(e, t, this.toggleContainerDisplay.bind(this), this.elementRef, r);
@@ -11964,11 +11964,11 @@ var Wi = wl, ih = /* @__PURE__ */ function() {
11964
11964
  });
11965
11965
  }
11966
11966
  }]);
11967
- }(), kl = /* @__PURE__ */ function() {
11967
+ }(), wl = /* @__PURE__ */ function() {
11968
11968
  function n(i, e, t) {
11969
- w(this, n), this._isOpen = !1, this._contentRef = n.createModalContent(e, t == null ? void 0 : t.backgroundColor), this._buttonPanel = n.createButtonPanel(t == null ? void 0 : t.backgroundColor), this._elementRef = n.createContainer(this._contentRef, t), this._elementRef.appendChild(this._buttonPanel), i.appendChild(this._elementRef), this._backgroundPanelRef = n.createDarkBackgroundPanel(), i.appendChild(this._backgroundPanelRef), this.addWindowEvents(i);
11969
+ k(this, n), this._isOpen = !1, this._contentRef = n.createModalContent(e, t == null ? void 0 : t.backgroundColor), this._buttonPanel = n.createButtonPanel(t == null ? void 0 : t.backgroundColor), this._elementRef = n.createContainer(this._contentRef, t), this._elementRef.appendChild(this._buttonPanel), i.appendChild(this._elementRef), this._backgroundPanelRef = n.createDarkBackgroundPanel(), i.appendChild(this._backgroundPanelRef), this.addWindowEvents(i);
11970
11970
  }
11971
- return k(n, [{
11971
+ return w(n, [{
11972
11972
  key: "isOpen",
11973
11973
  value: function() {
11974
11974
  return this._isOpen;
@@ -12070,22 +12070,22 @@ var Wi = wl, ih = /* @__PURE__ */ function() {
12070
12070
  }
12071
12071
  }]);
12072
12072
  }();
12073
- kl.MODAL_CLOSE_TIMEOUT_MS = 190;
12074
- var hn = kl, ah = /* @__PURE__ */ function(n) {
12073
+ wl.MODAL_CLOSE_TIMEOUT_MS = 190;
12074
+ var hn = wl, ah = /* @__PURE__ */ function(n) {
12075
12075
  function i(e, t, r, a, o, s) {
12076
12076
  var l;
12077
- w(this, i);
12077
+ k(this, i);
12078
12078
  var c, u, d, p, h, f, v, y, g, b = (c = r == null ? void 0 : r.button) == null ? void 0 : c.position, S = ((p = (d = (u = r == null ? void 0 : r.button) == null ? void 0 : u.styles) == null ? void 0 : d.text) == null ? void 0 : p.content) || s;
12079
12079
  l = $(this, i, [i.createButtonElement(), b, r.button, S]);
12080
12080
  var L = b === "dropup-menu", T = l.createInnerElements(a, o, l._customStyles, L);
12081
12081
  return l._inputElement = i.createInputElement((h = r == null ? void 0 : r.files) == null ? void 0 : h.acceptedFormats), l.addClickEvent(e, r), l.elementRef.replaceChildren(T.styles), l.reapplyStateStyle("styles"), l._fileAttachmentsType = t, l._openModalOnce = ((v = (f = r.files) == null ? void 0 : f.infoModal) == null ? void 0 : v.openModalOnce) === !1 || (g = (y = r.files) == null ? void 0 : y.infoModal) == null ? void 0 : g.openModalOnce, l;
12082
12082
  }
12083
- return B(i, n), k(i, [{
12083
+ return B(i, n), w(i, [{
12084
12084
  key: "createInnerElements",
12085
12085
  value: function(t, r, a) {
12086
12086
  var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, s = i.createSVGIconElement(t, r);
12087
12087
  return {
12088
- styles: mt.createInnerElement(this.elementRef, s, "styles", a, o)
12088
+ styles: vt.createInnerElement(this.elementRef, s, "styles", a, o)
12089
12089
  };
12090
12090
  }
12091
12091
  }, {
@@ -12130,9 +12130,9 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12130
12130
  }]);
12131
12131
  }(On), So = /* @__PURE__ */ function() {
12132
12132
  function n() {
12133
- w(this, n);
12133
+ k(this, n);
12134
12134
  }
12135
- return k(n, null, [{
12135
+ return w(n, null, [{
12136
12136
  key: "create",
12137
12137
  value: function(e, t, r) {
12138
12138
  var a = n.createElement(r);
@@ -12181,9 +12181,9 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12181
12181
  }]);
12182
12182
  }(), oh = /* @__PURE__ */ function() {
12183
12183
  function n() {
12184
- w(this, n);
12184
+ k(this, n);
12185
12185
  }
12186
- return k(n, null, [{
12186
+ return w(n, null, [{
12187
12187
  key: "validate",
12188
12188
  value: (
12189
12189
  // prettier-ignore
@@ -12201,7 +12201,7 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12201
12201
  return m().wrap(function(h) {
12202
12202
  for (; ; ) switch (h.prev = h.next) {
12203
12203
  case 0:
12204
- return l = a.inputElementRef, c = l.classList.contains(wn.PLACEHOLDER_TEXT_CLASS) ? "" : l.textContent, h.next = 3, o.completePlaceholders();
12204
+ return l = a.inputElementRef, c = l.classList.contains(kn.PLACEHOLDER_TEXT_CLASS) ? "" : l.textContent, h.next = 3, o.completePlaceholders();
12205
12205
  case 3:
12206
12206
  return u = o.getAllFileData(), d = u == null ? void 0 : u.map(function(f) {
12207
12207
  return f.file;
@@ -12277,9 +12277,9 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12277
12277
  }]);
12278
12278
  }(), Sl = /* @__PURE__ */ function() {
12279
12279
  function n() {
12280
- w(this, n);
12280
+ k(this, n);
12281
12281
  }
12282
- return k(n, null, [{
12282
+ return w(n, null, [{
12283
12283
  key: "getFileName",
12284
12284
  value: function(e, t) {
12285
12285
  var r = /* @__PURE__ */ new Date(), a = String(r.getHours()).padStart(2, "0"), o = String(r.getMinutes()).padStart(2, "0"), s = String(r.getSeconds()).padStart(2, "0");
@@ -12289,11 +12289,11 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12289
12289
  }(), sh = /* @__PURE__ */ function(n) {
12290
12290
  function i(e, t) {
12291
12291
  var r;
12292
- w(this, i);
12292
+ k(this, i);
12293
12293
  var a, o;
12294
12294
  return r = $(this, i, [t.button]), r._waitingForBrowserApproval = !1, r._audioType = e, r._extension = ((a = t.files) == null ? void 0 : a.format) || "mp3", r._maxDurationSeconds = (o = t.files) == null ? void 0 : o.maxDurationSeconds, r.elementRef.onclick = r.buttonClick.bind(gn(r)), r;
12295
12295
  }
12296
- return B(i, n), k(i, [{
12296
+ return B(i, n), w(i, [{
12297
12297
  key: "buttonClick",
12298
12298
  value: function() {
12299
12299
  this._waitingForBrowserApproval || (this.isActive ? this.stop() : (this._waitingForBrowserApproval = !0, this.record()));
@@ -12346,11 +12346,11 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12346
12346
  <line x1="22" y1="2" x2="11" y2="14"></line>
12347
12347
  <polygon points="22 2 15 22 11 14 2 10 22 2"></polygon>
12348
12348
  </svg>
12349
- `, ut = /* @__PURE__ */ function() {
12349
+ `, dt = /* @__PURE__ */ function() {
12350
12350
  function n() {
12351
- w(this, n);
12351
+ k(this, n);
12352
12352
  }
12353
- return k(n, null, [{
12353
+ return w(n, null, [{
12354
12354
  key: "setPropertyValueIfDoesNotExist",
12355
12355
  value: function(e, t, r) {
12356
12356
  var a, o, s = t[0];
@@ -12380,9 +12380,9 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12380
12380
  }]);
12381
12381
  }(), _o = /* @__PURE__ */ function() {
12382
12382
  function n() {
12383
- w(this, n);
12383
+ k(this, n);
12384
12384
  }
12385
- return k(n, null, [{
12385
+ return w(n, null, [{
12386
12386
  key: "resetSubmit",
12387
12387
  value: function(e, t) {
12388
12388
  t ? e.unsetCustomStateStyles(["loading", "submit"]) : e.unsetCustomStateStyles(["stop", "loading", "submit"]), e.reapplyStateStyle("submit");
@@ -12392,14 +12392,14 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12392
12392
  value: function(e, t) {
12393
12393
  if (e.submit) {
12394
12394
  var r = JSON.parse(JSON.stringify(e[t] || {}));
12395
- ut.overwritePropertyObjectFromAnother(r, e.submit, ["container", "default"]), ut.overwritePropertyObjectFromAnother(r, e.submit, ["text", "styles", "default"]), ut.overwritePropertyObjectFromAnother(r, e.submit, ["svg", "styles", "default"]), e[t] = r;
12395
+ dt.overwritePropertyObjectFromAnother(r, e.submit, ["container", "default"]), dt.overwritePropertyObjectFromAnother(r, e.submit, ["text", "styles", "default"]), dt.overwritePropertyObjectFromAnother(r, e.submit, ["svg", "styles", "default"]), e[t] = r;
12396
12396
  }
12397
12397
  }
12398
12398
  // prettier-ignore
12399
12399
  }, {
12400
12400
  key: "setUpDisabledButton",
12401
12401
  value: function(e) {
12402
- ut.setPropertyValueIfDoesNotExist(e, ["submit", "container", "default", "backgroundColor"], ""), ut.setPropertyValueIfDoesNotExist(e, ["disabled", "container", "default", "backgroundColor"], "unset"), ut.setPropertyValueIfDoesNotExist(e.submit, ["svg", "styles", "default", "filter"], ""), ut.setPropertyValueIfDoesNotExist(e.disabled, ["svg", "styles", "default", "filter"], "brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(5564%) hue-rotate(207deg) brightness(100%) contrast(97%)"), n.overwriteDefaultStyleWithSubmit(e, "disabled");
12402
+ dt.setPropertyValueIfDoesNotExist(e, ["submit", "container", "default", "backgroundColor"], ""), dt.setPropertyValueIfDoesNotExist(e, ["disabled", "container", "default", "backgroundColor"], "unset"), dt.setPropertyValueIfDoesNotExist(e.submit, ["svg", "styles", "default", "filter"], ""), dt.setPropertyValueIfDoesNotExist(e.disabled, ["svg", "styles", "default", "filter"], "brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(5564%) hue-rotate(207deg) brightness(100%) contrast(97%)"), n.overwriteDefaultStyleWithSubmit(e, "disabled");
12403
12403
  }
12404
12404
  }, {
12405
12405
  key: "process",
@@ -12411,7 +12411,7 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12411
12411
  }(), ir = /* @__PURE__ */ function(n) {
12412
12412
  function i(e, t, r, a, o, s) {
12413
12413
  var l;
12414
- w(this, i);
12414
+ k(this, i);
12415
12415
  var c = _o.process(e.submitButtonStyles);
12416
12416
  return l = $(this, i, [i.createButtonContainerElement(), c == null ? void 0 : c.position, c]), l._isSVGLoadingIconOverriden = !1, l.status = {
12417
12417
  requestInProgress: !1,
@@ -12424,7 +12424,7 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12424
12424
  l._validationHandler = e._validationHandler, l.assignHandlers(l._validationHandler), (u = l._validationHandler) == null || u.call(gn(l));
12425
12425
  }), l;
12426
12426
  }
12427
- return B(i, n), k(i, [{
12427
+ return B(i, n), w(i, [{
12428
12428
  key: "createInnerElements",
12429
12429
  value: function() {
12430
12430
  var t = this.createCustomElements(), r = t.submit, a = t.loading, o = t.stop, s = r || i.createSubmitIconElement();
@@ -12438,19 +12438,19 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12438
12438
  }, {
12439
12439
  key: "createCustomElements",
12440
12440
  value: function() {
12441
- var t = this, r = mt.createSpecificStateElement(this.elementRef, "submit", this._customStyles), a = {
12441
+ var t = this, r = vt.createSpecificStateElement(this.elementRef, "submit", this._customStyles), a = {
12442
12442
  loading: void 0,
12443
12443
  stop: void 0
12444
12444
  };
12445
12445
  return Object.keys(a).forEach(function(o) {
12446
- var s = o, l = mt.createCustomElement(s, t._customStyles);
12446
+ var s = o, l = vt.createCustomElement(s, t._customStyles);
12447
12447
  l && (a[s] = l);
12448
12448
  }), a.submit = r, a;
12449
12449
  }
12450
12450
  }, {
12451
12451
  key: "createDisabledIconElement",
12452
12452
  value: function(t) {
12453
- return mt.createCustomElement("disabled", this._customStyles) || t.cloneNode(!0);
12453
+ return vt.createCustomElement("disabled", this._customStyles) || t.cloneNode(!0);
12454
12454
  }
12455
12455
  // prettier-ignore
12456
12456
  }, {
@@ -12500,7 +12500,7 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12500
12500
  case 0:
12501
12501
  return l.next = 2, this._fileAttachments.completePlaceholders();
12502
12502
  case 2:
12503
- a = this._fileAttachments.getAllFileData(), this._inputElementRef.classList.contains(wn.PLACEHOLDER_TEXT_CLASS) ? this.attemptSubmit({
12503
+ a = this._fileAttachments.getAllFileData(), this._inputElementRef.classList.contains(kn.PLACEHOLDER_TEXT_CLASS) ? this.attemptSubmit({
12504
12504
  text: "",
12505
12505
  files: a
12506
12506
  }) : (o = this._inputElementRef.innerText.trim(), this.attemptSubmit({
@@ -12566,7 +12566,7 @@ var hn = kl, ah = /* @__PURE__ */ function(n) {
12566
12566
  case 7:
12567
12567
  return this.changeToLoadingIcon(), f.next = 10, this.addNewMessage(a);
12568
12568
  case 10:
12569
- return this._serviceIO.isWebModel() || this._messages.addLoadingMessage(), wn.clear(this._inputElementRef), u = (l = a.files) == null ? void 0 : l.map(function(v) {
12569
+ return this._serviceIO.isWebModel() || this._messages.addLoadingMessage(), kn.clear(this._inputElementRef), u = (l = a.files) == null ? void 0 : l.map(function(v) {
12570
12570
  return v.file;
12571
12571
  }), d = {
12572
12572
  text: a.text === "" ? void 0 : a.text,
@@ -12701,11 +12701,11 @@ var ch = ir, uh = `<?xml version="1.0" encoding="utf-8"?>
12701
12701
  </svg>`, fh = /* @__PURE__ */ function(n) {
12702
12702
  function i(e, t, r, a) {
12703
12703
  var o;
12704
- w(this, i), o = $(this, i, [e, ["modal-content", "modal-camera-content"], r]), o._stopped = !1, o._format = "image/png", o._canvas = document.createElement("canvas"), o._canvas.classList.add("camera-modal-canvas");
12704
+ k(this, i), o = $(this, i, [e, ["modal-content", "modal-camera-content"], r]), o._stopped = !1, o._format = "image/png", o._canvas = document.createElement("canvas"), o._canvas.classList.add("camera-modal-canvas");
12705
12705
  var s = o.addButtonsAndTheirEvents(t), l = s.captureButton, c = s.submitButton;
12706
12706
  return o._captureButton = l, o._submitButton = c, o._captureIcon = o._captureButton.children[0], o._refreshIcon = Ce.createSVGElement(uh), o._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (a == null ? void 0 : a.format) === "jpeg" && (o._format = "image/jpeg"), a != null && a.dimensions && (o._dimensions = a.dimensions), o._contentRef.appendChild(o._canvas), o.extensionCloseCallback = o.stop, o;
12707
12707
  }
12708
- return B(i, n), k(i, [{
12708
+ return B(i, n), w(i, [{
12709
12709
  key: "addButtonsAndTheirEvents",
12710
12710
  value: function(t) {
12711
12711
  var r = hn.createSVGButton(dh);
@@ -12805,18 +12805,18 @@ var ch = ir, uh = `<?xml version="1.0" encoding="utf-8"?>
12805
12805
  </svg>`, vh = /* @__PURE__ */ function(n) {
12806
12806
  function i(e, t, r) {
12807
12807
  var a;
12808
- w(this, i);
12808
+ k(this, i);
12809
12809
  var o, s, l, c, u = (o = r == null ? void 0 : r.button) == null ? void 0 : o.position, d = ((c = (l = (s = r == null ? void 0 : r.button) == null ? void 0 : s.styles) == null ? void 0 : l.text) == null ? void 0 : c.content) || "Photo";
12810
12810
  a = $(this, i, [i.createButtonElement(), u, (r == null ? void 0 : r.button) || {}, d]);
12811
12811
  var p = a.createInnerElements(a._customStyles, u === "dropup-menu");
12812
12812
  return r && a.addClickEvent(e, t, r.modalContainerStyle, r.files), a.elementRef.classList.add("upload-file-button"), a.elementRef.appendChild(p.styles), a.reapplyStateStyle("styles"), a;
12813
12813
  }
12814
- return B(i, n), k(i, [{
12814
+ return B(i, n), w(i, [{
12815
12815
  key: "createInnerElements",
12816
12816
  value: function(t) {
12817
12817
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
12818
12818
  return {
12819
- styles: mt.createInnerElement(this.elementRef, i.createSVGIconElement(), "styles", t, r)
12819
+ styles: vt.createInnerElement(this.elementRef, i.createSVGIconElement(), "styles", t, r)
12820
12820
  };
12821
12821
  }
12822
12822
  }, {
@@ -12843,8 +12843,8 @@ var ch = ir, uh = `<?xml version="1.0" encoding="utf-8"?>
12843
12843
  }]);
12844
12844
  }(On), gh = /* @__PURE__ */ function() {
12845
12845
  function n(i, e, t, r) {
12846
- w(this, n), this.elementRef = n.createPanelElement(i.inputAreaStyle);
12847
- var a = {}, o = this.createFileUploadComponents(i, t, r, a), s = new wn(i, t, o);
12846
+ k(this, n), this.elementRef = n.createPanelElement(i.inputAreaStyle);
12847
+ var a = {}, o = this.createFileUploadComponents(i, t, r, a), s = new kn(i, t, o);
12848
12848
  i.speechToText && !a.microphone && (a.microphone = {
12849
12849
  button: new pa(i, s, e.addNewErrorMessage.bind(e))
12850
12850
  });
@@ -12853,7 +12853,7 @@ var ch = ir, uh = `<?xml version="1.0" encoding="utf-8"?>
12853
12853
  button: l
12854
12854
  }, n.addElements(this.elementRef, s, a, r, o, i.dropupStyles);
12855
12855
  }
12856
- return k(n, [{
12856
+ return w(n, [{
12857
12857
  key: "createFileUploadComponents",
12858
12858
  value: (
12859
12859
  // prettier-ignore
@@ -12906,9 +12906,9 @@ var ch = ir, uh = `<?xml version="1.0" encoding="utf-8"?>
12906
12906
  }]);
12907
12907
  }(), yh = /* @__PURE__ */ function() {
12908
12908
  function n() {
12909
- w(this, n);
12909
+ k(this, n);
12910
12910
  }
12911
- return k(n, null, [{
12911
+ return w(n, null, [{
12912
12912
  key: "createElements",
12913
12913
  value: function(e, t, r) {
12914
12914
  var a = document.createElement("div");
@@ -12931,13 +12931,13 @@ var ch = ir, uh = `<?xml version="1.0" encoding="utf-8"?>
12931
12931
  Maintainer: @ericwbailey
12932
12932
 
12933
12933
  Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
12934
- */.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.loading-message-text{width:1em;padding:.6em .75em .6em 1.3em}.message-bubble>p:first-child{margin-top:0}.message-bubble>p:last-child{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message-bubble{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.dots-jumping{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:dots-jumping 1.5s infinite linear;bottom:-.75em}@keyframes dots-jumping{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.dots-flashing{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite linear alternate;animation-delay:.5s}.dots-flashing:before,.dots-flashing:after{content:"";display:inline-block;position:absolute;top:0}.dots-flashing:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:0s}.dots-flashing:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:1s}@keyframes dots-flashing{0%{background-color:var(--message-dots-color)}50%,to{background-color:var(--message-dots-color-fade)}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button:hover{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.text-input-placeholder{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}`, wh = Object.defineProperty, Z = function(i, e, t, r) {
12934
+ */.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.loading-message-text{width:1em;padding:.6em .75em .6em 1.3em}.message-bubble>p:first-child{margin-top:0}.message-bubble>p:last-child{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message-bubble{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.dots-jumping{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:dots-jumping 1.5s infinite linear;bottom:-.75em}@keyframes dots-jumping{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.dots-flashing{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite linear alternate;animation-delay:.5s}.dots-flashing:before,.dots-flashing:after{content:"";display:inline-block;position:absolute;top:0}.dots-flashing:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:0s}.dots-flashing:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:1s}@keyframes dots-flashing{0%{background-color:var(--message-dots-color)}50%,to{background-color:var(--message-dots-color-fade)}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button:hover{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.text-input-placeholder{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}`, kh = Object.defineProperty, Z = function(i, e, t, r) {
12935
12935
  for (var a = void 0, o = i.length - 1, s; o >= 0; o--) (s = i[o]) && (a = s(e, t, a) || a);
12936
- return a && wh(e, t, a), a;
12936
+ return a && kh(e, t, a), a;
12937
12937
  }, K = /* @__PURE__ */ function(n) {
12938
12938
  function i() {
12939
12939
  var e;
12940
- return w(this, i), e = $(this, i), e.getMessages = function() {
12940
+ return k(this, i), e = $(this, i), e.getMessages = function() {
12941
12941
  return [];
12942
12942
  }, e.submitUserMessage = function() {
12943
12943
  return console.warn("submitUserMessage failed - please wait for chat view to render before calling this property.");
@@ -12956,7 +12956,7 @@ var ch = ir, uh = `<?xml version="1.0" encoding="utf-8"?>
12956
12956
  e._hasBeenRendered || e.onRender();
12957
12957
  }, 20), e;
12958
12958
  }
12959
- return B(i, n), k(i, [{
12959
+ return B(i, n), w(i, [{
12960
12960
  key: "changeToChatView",
12961
12961
  value: function() {
12962
12962
  this._activeService && (this._activeService.validateKeyProperty = !1), this.onRender();
@@ -13045,7 +13045,7 @@ const x = (n) => new _l(typeof n == "string" ? n : n + "", void 0, va), Nn = (n,
13045
13045
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
13046
13046
  })(r) + n[a + 1], n[0]);
13047
13047
  return new _l(e, n, va);
13048
- }, kh = (n, i) => {
13048
+ }, wh = (n, i) => {
13049
13049
  if (ma) n.adoptedStyleSheets = i.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
13050
13050
  else for (const e of i) {
13051
13051
  const t = document.createElement("style"), r = ar.litNonce;
@@ -13177,7 +13177,7 @@ class qt extends HTMLElement {
13177
13177
  }
13178
13178
  createRenderRoot() {
13179
13179
  const i = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
13180
- return kh(i, this.constructor.elementStyles), i;
13180
+ return wh(i, this.constructor.elementStyles), i;
13181
13181
  }
13182
13182
  connectedCallback() {
13183
13183
  var i;
@@ -13295,9 +13295,9 @@ qt.elementStyles = [], qt.shadowRootOptions = { mode: "open" }, qt[fn("elementPr
13295
13295
  * Copyright 2017 Google LLC
13296
13296
  * SPDX-License-Identifier: BSD-3-Clause
13297
13297
  */
13298
- const mn = globalThis, br = mn.trustedTypes, To = br ? br.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, El = "$lit$", et = `lit$${Math.random().toFixed(9).slice(2)}$`, Cl = "?" + et, Rh = `<${Cl}>`, bt = document, En = () => bt.createComment(""), Cn = (n) => n === null || typeof n != "object" && typeof n != "function", xl = Array.isArray, Oh = (n) => xl(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", mi = `[
13299
- \f\r]`, tn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ro = /-->/g, Oo = />/g, dt = RegExp(`>|${mi}(?:([^\\s"'>=/]+)(${mi}*=${mi}*(?:[^
13300
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Io = /'/g, Lo = /"/g, Al = /^(?:script|style|textarea|title)$/i, Ih = (n) => (i, ...e) => ({ _$litType$: n, strings: i, values: e }), wr = Ih(1), wt = Symbol.for("lit-noChange"), pe = Symbol.for("lit-nothing"), Mo = /* @__PURE__ */ new WeakMap(), ft = bt.createTreeWalker(bt, 129);
13298
+ const mn = globalThis, br = mn.trustedTypes, To = br ? br.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, El = "$lit$", et = `lit$${Math.random().toFixed(9).slice(2)}$`, Cl = "?" + et, Rh = `<${Cl}>`, kt = document, En = () => kt.createComment(""), Cn = (n) => n === null || typeof n != "object" && typeof n != "function", xl = Array.isArray, Oh = (n) => xl(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", mi = `[
13299
+ \f\r]`, tn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ro = /-->/g, Oo = />/g, pt = RegExp(`>|${mi}(?:([^\\s"'>=/]+)(${mi}*=${mi}*(?:[^
13300
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Io = /'/g, Lo = /"/g, Al = /^(?:script|style|textarea|title)$/i, Ih = (n) => (i, ...e) => ({ _$litType$: n, strings: i, values: e }), kr = Ih(1), wt = Symbol.for("lit-noChange"), pe = Symbol.for("lit-nothing"), Mo = /* @__PURE__ */ new WeakMap(), mt = kt.createTreeWalker(kt, 129);
13301
13301
  function Tl(n, i) {
13302
13302
  if (!Array.isArray(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
13303
13303
  return To !== void 0 ? To.createHTML(i) : i;
@@ -13308,8 +13308,8 @@ const Lh = (n, i) => {
13308
13308
  for (let s = 0; s < e; s++) {
13309
13309
  const l = n[s];
13310
13310
  let c, u, d = -1, p = 0;
13311
- for (; p < l.length && (o.lastIndex = p, u = o.exec(l), u !== null); ) p = o.lastIndex, o === tn ? u[1] === "!--" ? o = Ro : u[1] !== void 0 ? o = Oo : u[2] !== void 0 ? (Al.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = dt) : u[3] !== void 0 && (o = dt) : o === dt ? u[0] === ">" ? (o = r ?? tn, d = -1) : u[1] === void 0 ? d = -2 : (d = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? dt : u[3] === '"' ? Lo : Io) : o === Lo || o === Io ? o = dt : o === Ro || o === Oo ? o = tn : (o = dt, r = void 0);
13312
- const h = o === dt && n[s + 1].startsWith("/>") ? " " : "";
13311
+ for (; p < l.length && (o.lastIndex = p, u = o.exec(l), u !== null); ) p = o.lastIndex, o === tn ? u[1] === "!--" ? o = Ro : u[1] !== void 0 ? o = Oo : u[2] !== void 0 ? (Al.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = pt) : u[3] !== void 0 && (o = pt) : o === pt ? u[0] === ">" ? (o = r ?? tn, d = -1) : u[1] === void 0 ? d = -2 : (d = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? pt : u[3] === '"' ? Lo : Io) : o === Lo || o === Io ? o = pt : o === Ro || o === Oo ? o = tn : (o = pt, r = void 0);
13312
+ const h = o === pt && n[s + 1].startsWith("/>") ? " " : "";
13313
13313
  a += o === tn ? l + Rh : d >= 0 ? (t.push(c), l.slice(0, d) + El + l.slice(d) + et + h) : l + et + (d === -2 ? s : h);
13314
13314
  }
13315
13315
  return [Tl(n, a + (n[e] || "<?>") + (i === 2 ? "</svg>" : "")), t];
@@ -13320,11 +13320,11 @@ class xn {
13320
13320
  this.parts = [];
13321
13321
  let a = 0, o = 0;
13322
13322
  const s = i.length - 1, l = this.parts, [c, u] = Lh(i, e);
13323
- if (this.el = xn.createElement(c, t), ft.currentNode = this.el.content, e === 2) {
13323
+ if (this.el = xn.createElement(c, t), mt.currentNode = this.el.content, e === 2) {
13324
13324
  const d = this.el.content.firstChild;
13325
13325
  d.replaceWith(...d.childNodes);
13326
13326
  }
13327
- for (; (r = ft.nextNode()) !== null && l.length < s; ) {
13327
+ for (; (r = mt.nextNode()) !== null && l.length < s; ) {
13328
13328
  if (r.nodeType === 1) {
13329
13329
  if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(El)) {
13330
13330
  const p = u[o++], h = r.getAttribute(d).split(et), f = /([.?@])?(.*)/.exec(p);
@@ -13334,7 +13334,7 @@ class xn {
13334
13334
  const d = r.textContent.split(et), p = d.length - 1;
13335
13335
  if (p > 0) {
13336
13336
  r.textContent = br ? br.emptyScript : "";
13337
- for (let h = 0; h < p; h++) r.append(d[h], En()), ft.nextNode(), l.push({ type: 2, index: ++a });
13337
+ for (let h = 0; h < p; h++) r.append(d[h], En()), mt.nextNode(), l.push({ type: 2, index: ++a });
13338
13338
  r.append(d[p], En());
13339
13339
  }
13340
13340
  }
@@ -13347,7 +13347,7 @@ class xn {
13347
13347
  }
13348
13348
  }
13349
13349
  static createElement(i, e) {
13350
- const t = bt.createElement("template");
13350
+ const t = kt.createElement("template");
13351
13351
  return t.innerHTML = i, t;
13352
13352
  }
13353
13353
  }
@@ -13369,17 +13369,17 @@ class Mh {
13369
13369
  return this._$AM._$AU;
13370
13370
  }
13371
13371
  u(i) {
13372
- const { el: { content: e }, parts: t } = this._$AD, r = ((i == null ? void 0 : i.creationScope) ?? bt).importNode(e, !0);
13373
- ft.currentNode = r;
13374
- let a = ft.nextNode(), o = 0, s = 0, l = t[0];
13372
+ const { el: { content: e }, parts: t } = this._$AD, r = ((i == null ? void 0 : i.creationScope) ?? kt).importNode(e, !0);
13373
+ mt.currentNode = r;
13374
+ let a = mt.nextNode(), o = 0, s = 0, l = t[0];
13375
13375
  for (; l !== void 0; ) {
13376
13376
  if (o === l.index) {
13377
13377
  let c;
13378
13378
  l.type === 2 ? c = new Fn(a, a.nextSibling, this, i) : l.type === 1 ? c = new l.ctor(a, l.name, l.strings, this, i) : l.type === 6 && (c = new Dh(a, this, i)), this._$AV.push(c), l = t[++s];
13379
13379
  }
13380
- o !== (l == null ? void 0 : l.index) && (a = ft.nextNode(), o++);
13380
+ o !== (l == null ? void 0 : l.index) && (a = mt.nextNode(), o++);
13381
13381
  }
13382
- return ft.currentNode = bt, r;
13382
+ return mt.currentNode = kt, r;
13383
13383
  }
13384
13384
  p(i) {
13385
13385
  let e = 0;
@@ -13415,7 +13415,7 @@ class Fn {
13415
13415
  this._$AH !== i && (this._$AR(), this._$AH = this.S(i));
13416
13416
  }
13417
13417
  _(i) {
13418
- this._$AH !== pe && Cn(this._$AH) ? this._$AA.nextSibling.data = i : this.T(bt.createTextNode(i)), this._$AH = i;
13418
+ this._$AH !== pe && Cn(this._$AH) ? this._$AA.nextSibling.data = i : this.T(kt.createTextNode(i)), this._$AH = i;
13419
13419
  }
13420
13420
  $(i) {
13421
13421
  var a;
@@ -13603,7 +13603,7 @@ function se(n) {
13603
13603
  return r.constructor.createProperty(a, o ? { ...t, wrapped: !0 } : t), o ? Object.getOwnPropertyDescriptor(r, a) : void 0;
13604
13604
  })(n, i, e);
13605
13605
  }
13606
- var Uh = typeof global == "object" && global && global.Object === Object && global, Hh = typeof self == "object" && self && self.Object === Object && self, Tt = Uh || Hh || Function("return this")(), kr = Tt.Symbol, Rl = Object.prototype, zh = Rl.hasOwnProperty, qh = Rl.toString, nn = kr ? kr.toStringTag : void 0;
13606
+ var Uh = typeof global == "object" && global && global.Object === Object && global, Hh = typeof self == "object" && self && self.Object === Object && self, Rt = Uh || Hh || Function("return this")(), wr = Rt.Symbol, Rl = Object.prototype, zh = Rl.hasOwnProperty, qh = Rl.toString, nn = wr ? wr.toStringTag : void 0;
13607
13607
  function Vh(n) {
13608
13608
  var i = zh.call(n, nn), e = n[nn];
13609
13609
  try {
@@ -13618,7 +13618,7 @@ var Wh = Object.prototype, Gh = Wh.toString;
13618
13618
  function Kh(n) {
13619
13619
  return Gh.call(n);
13620
13620
  }
13621
- var Jh = "[object Null]", Zh = "[object Undefined]", Po = kr ? kr.toStringTag : void 0;
13621
+ var Jh = "[object Null]", Zh = "[object Undefined]", Po = wr ? wr.toStringTag : void 0;
13622
13622
  function ya(n) {
13623
13623
  return n == null ? n === void 0 ? Zh : Jh : Po && Po in Object(n) ? Vh(n) : Kh(n);
13624
13624
  }
@@ -13683,7 +13683,7 @@ function mf(n) {
13683
13683
  var i = ya(n);
13684
13684
  return i == pf || i == hf || i == df || i == ff;
13685
13685
  }
13686
- var yi = Tt["__core-js_shared__"], $o = function() {
13686
+ var yi = Rt["__core-js_shared__"], $o = function() {
13687
13687
  var n = /[^.]+$/.exec(yi && yi.keys && yi.keys.IE_PROTO || "");
13688
13688
  return n ? "Symbol(src)_1." + n : "";
13689
13689
  }();
@@ -13704,13 +13704,13 @@ function bf(n) {
13704
13704
  }
13705
13705
  return "";
13706
13706
  }
13707
- var wf = /[\\^$.*+?()[\]{}|]/g, kf = /^\[object .+?Constructor\]$/, Sf = Function.prototype, _f = Object.prototype, Ef = Sf.toString, Cf = _f.hasOwnProperty, xf = RegExp(
13708
- "^" + Ef.call(Cf).replace(wf, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
13707
+ var kf = /[\\^$.*+?()[\]{}|]/g, wf = /^\[object .+?Constructor\]$/, Sf = Function.prototype, _f = Object.prototype, Ef = Sf.toString, Cf = _f.hasOwnProperty, xf = RegExp(
13708
+ "^" + Ef.call(Cf).replace(kf, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
13709
13709
  );
13710
13710
  function Af(n) {
13711
13711
  if (!Kt(n) || vf(n))
13712
13712
  return !1;
13713
- var i = mf(n) ? xf : kf;
13713
+ var i = mf(n) ? xf : wf;
13714
13714
  return i.test(bf(n));
13715
13715
  }
13716
13716
  function Tf(n, i) {
@@ -13720,9 +13720,9 @@ function Ll(n, i) {
13720
13720
  var e = Tf(n, i);
13721
13721
  return Af(e) ? e : void 0;
13722
13722
  }
13723
- var Bo = Ll(Tt, "WeakMap"), Sr = Bo && new Bo(), Ml = Sr ? function(n, i) {
13723
+ var Bo = Ll(Rt, "WeakMap"), Sr = Bo && new Bo(), Ml = Sr ? function(n, i) {
13724
13724
  return Sr.set(n, i), n;
13725
- } : Il, jo = Object.create, wa = /* @__PURE__ */ function() {
13725
+ } : Il, jo = Object.create, ka = /* @__PURE__ */ function() {
13726
13726
  function n() {
13727
13727
  }
13728
13728
  return function(i) {
@@ -13756,7 +13756,7 @@ function An(n) {
13756
13756
  case 7:
13757
13757
  return new n(i[0], i[1], i[2], i[3], i[4], i[5], i[6]);
13758
13758
  }
13759
- var e = wa(n.prototype), t = n.apply(e, i);
13759
+ var e = ka(n.prototype), t = n.apply(e, i);
13760
13760
  return Kt(t) ? t : e;
13761
13761
  };
13762
13762
  }
@@ -13764,7 +13764,7 @@ var Rf = 1;
13764
13764
  function Of(n, i, e) {
13765
13765
  var t = i & Rf, r = An(n);
13766
13766
  function a() {
13767
- var o = this && this !== Tt && this instanceof a ? r : n;
13767
+ var o = this && this !== Rt && this instanceof a ? r : n;
13768
13768
  return o.apply(t ? e : this, arguments);
13769
13769
  }
13770
13770
  return a;
@@ -13807,13 +13807,13 @@ function Mf(n, i) {
13807
13807
  n[e] === i && ++t;
13808
13808
  return t;
13809
13809
  }
13810
- function ka() {
13810
+ function wa() {
13811
13811
  }
13812
13812
  var Pf = 4294967295;
13813
13813
  function Jt(n) {
13814
13814
  this.__wrapped__ = n, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = Pf, this.__views__ = [];
13815
13815
  }
13816
- Jt.prototype = wa(ka.prototype);
13816
+ Jt.prototype = ka(wa.prototype);
13817
13817
  Jt.prototype.constructor = Jt;
13818
13818
  function Nf() {
13819
13819
  }
@@ -13831,7 +13831,7 @@ function $f(n) {
13831
13831
  function Zt(n, i) {
13832
13832
  this.__wrapped__ = n, this.__actions__ = [], this.__chain__ = !!i, this.__index__ = 0, this.__values__ = void 0;
13833
13833
  }
13834
- Zt.prototype = wa(ka.prototype);
13834
+ Zt.prototype = ka(wa.prototype);
13835
13835
  Zt.prototype.constructor = Zt;
13836
13836
  function $l(n, i) {
13837
13837
  var e = -1, t = n.length;
@@ -13855,7 +13855,7 @@ function _r(n) {
13855
13855
  }
13856
13856
  return new Zt(n);
13857
13857
  }
13858
- _r.prototype = ka.prototype;
13858
+ _r.prototype = wa.prototype;
13859
13859
  _r.prototype.constructor = _r;
13860
13860
  function Hf(n) {
13861
13861
  var i = $f(n), e = _r[i];
@@ -13961,9 +13961,9 @@ function Ul(n, i, e) {
13961
13961
  var t = i + "";
13962
13962
  return Qf(n, Zf(t, v0(Kf(t), e)));
13963
13963
  }
13964
- var g0 = 1, y0 = 2, b0 = 4, w0 = 8, zo = 32, qo = 64;
13964
+ var g0 = 1, y0 = 2, b0 = 4, k0 = 8, zo = 32, qo = 64;
13965
13965
  function Hl(n, i, e, t, r, a, o, s, l, c) {
13966
- var u = i & w0, d = u ? o : void 0, p = u ? void 0 : o, h = u ? a : void 0, f = u ? void 0 : a;
13966
+ var u = i & k0, d = u ? o : void 0, p = u ? void 0 : o, h = u ? a : void 0, f = u ? void 0 : a;
13967
13967
  i |= u ? zo : qo, i &= ~(u ? qo : zo), i & b0 || (i &= ~(g0 | y0));
13968
13968
  var v = [
13969
13969
  n,
@@ -13983,10 +13983,10 @@ function zl(n) {
13983
13983
  var i = n;
13984
13984
  return i.placeholder;
13985
13985
  }
13986
- var k0 = 9007199254740991, S0 = /^(?:0|[1-9]\d*)$/;
13986
+ var w0 = 9007199254740991, S0 = /^(?:0|[1-9]\d*)$/;
13987
13987
  function _0(n, i) {
13988
13988
  var e = typeof n;
13989
- return i = i ?? k0, !!i && (e == "number" || e != "symbol" && S0.test(n)) && n > -1 && n % 1 == 0 && n < i;
13989
+ return i = i ?? w0, !!i && (e == "number" || e != "symbol" && S0.test(n)) && n > -1 && n % 1 == 0 && n < i;
13990
13990
  }
13991
13991
  var E0 = Math.min;
13992
13992
  function C0(n, i) {
@@ -14028,7 +14028,7 @@ function Sa(n, i, e, t, r, a, o, s, l, c) {
14028
14028
  );
14029
14029
  }
14030
14030
  var Y = d ? e : this, U = p ? Y[n] : n;
14031
- return g = b.length, s ? b = C0(b, s) : f && g > 1 && b.reverse(), u && l < g && (b.length = l), this && this !== Tt && this instanceof y && (U = v || An(U)), U.apply(Y, b);
14031
+ return g = b.length, s ? b = C0(b, s) : f && g > 1 && b.reverse(), u && l < g && (b.length = l), this && this !== Rt && this instanceof y && (U = v || An(U)), U.apply(Y, b);
14032
14032
  }
14033
14033
  return y;
14034
14034
  }
@@ -14051,7 +14051,7 @@ function L0(n, i, e) {
14051
14051
  void 0,
14052
14052
  e - a
14053
14053
  );
14054
- var u = this && this !== Tt && this instanceof r ? t : n;
14054
+ var u = this && this !== Rt && this instanceof r ? t : n;
14055
14055
  return Pl(u, this, o);
14056
14056
  }
14057
14057
  return r;
@@ -14060,7 +14060,7 @@ var M0 = 1;
14060
14060
  function P0(n, i, e, t) {
14061
14061
  var r = i & M0, a = An(n);
14062
14062
  function o() {
14063
- for (var s = -1, l = arguments.length, c = -1, u = t.length, d = Array(u + l), p = this && this !== Tt && this instanceof o ? a : n; ++c < u; )
14063
+ for (var s = -1, l = arguments.length, c = -1, u = t.length, d = Array(u + l), p = this && this !== Rt && this instanceof o ? a : n; ++c < u; )
14064
14064
  d[c] = t[c];
14065
14065
  for (; l--; )
14066
14066
  d[c++] = arguments[++s];
@@ -14081,7 +14081,7 @@ function $0(n, i) {
14081
14081
  }
14082
14082
  return s = i[5], s && (l = n[5], n[5] = l ? Fl(l, s, i[6]) : s, n[6] = l ? Er(n[5], Wo) : i[6]), s = i[7], s && (n[7] = s), t & rn && (n[8] = n[8] == null ? i[8] : D0(n[8], i[8])), n[9] == null && (n[9] = i[9]), n[0] = i[0], n[1] = r, n;
14083
14083
  }
14084
- var B0 = "Expected a function", Jo = 1, j0 = 2, wi = 8, ki = 16, Si = 32, Zo = 64, Yo = Math.max;
14084
+ var B0 = "Expected a function", Jo = 1, j0 = 2, ki = 8, wi = 16, Si = 32, Zo = 64, Yo = Math.max;
14085
14085
  function U0(n, i, e, t, r, a, o, s) {
14086
14086
  var l = i & j0;
14087
14087
  if (!l && typeof n != "function")
@@ -14103,9 +14103,9 @@ function U0(n, i, e, t, r, a, o, s) {
14103
14103
  o,
14104
14104
  s
14105
14105
  ];
14106
- if (p && $0(h, p), n = h[0], i = h[1], e = h[2], t = h[3], r = h[4], s = h[9] = h[9] === void 0 ? l ? 0 : n.length : Yo(h[9] - c, 0), !s && i & (wi | ki) && (i &= ~(wi | ki)), !i || i == Jo)
14106
+ if (p && $0(h, p), n = h[0], i = h[1], e = h[2], t = h[3], r = h[4], s = h[9] = h[9] === void 0 ? l ? 0 : n.length : Yo(h[9] - c, 0), !s && i & (ki | wi) && (i &= ~(ki | wi)), !i || i == Jo)
14107
14107
  var f = Of(n, i, e);
14108
- else i == wi || i == ki ? f = L0(n, i, s) : (i == Si || i == (Jo | Si)) && !r.length ? f = P0(n, i, e, t) : f = Sa.apply(void 0, h);
14108
+ else i == ki || i == wi ? f = L0(n, i, s) : (i == Si || i == (Jo | Si)) && !r.length ? f = P0(n, i, e, t) : f = Sa.apply(void 0, h);
14109
14109
  var v = p ? Ml : jl;
14110
14110
  return Ul(v(f, h), n, i);
14111
14111
  }
@@ -14806,7 +14806,6 @@ const am = {
14806
14806
  font-family: var(--font-family);
14807
14807
  font-size: var(--font-size);
14808
14808
  font-weight: var(--font-weight);
14809
- color: var(--color);
14810
14809
 
14811
14810
  label {
14812
14811
  background-color: var(--background-color);
@@ -14815,6 +14814,7 @@ const am = {
14815
14814
  border: var(--border-size) solid var(--border-color);
14816
14815
  border-radius: 20px;
14817
14816
  transition: all 0.4s ease;
14817
+ display: inline-flex;
14818
14818
  cursor: pointer;
14819
14819
  &[disabled] {
14820
14820
  cursor: not-allowed;
@@ -14831,6 +14831,7 @@ const am = {
14831
14831
  padding: var(--lr-pill-label-padding);
14832
14832
  background: var(--lr-button-primary-background);
14833
14833
  border-radius: 20px;
14834
+ color: var(--color);
14834
14835
  &:hover {
14835
14836
  background: var(--lr-pill-background-hover);
14836
14837
  }
@@ -14842,17 +14843,44 @@ const am = {
14842
14843
  background: var(--lr-pill-background-checked);
14843
14844
  }
14844
14845
  }
14846
+ ::slotted(img) {
14847
+ width: 1rem;
14848
+ }
14849
+ }
14850
+
14851
+ :host::part(label-text) {
14852
+ display: inline-flex;
14853
+ align-items: stretch;
14854
+ gap: 0.5rem;
14845
14855
  }
14856
+
14846
14857
  :host([variant='suggestion']) {
14847
- --color: var(--lr-greys-900);
14848
14858
  --border-size: 2px;
14849
14859
  --border-color: #e4e7ec;
14850
14860
  --font-size: var(--lr-text-12);
14851
14861
  --padding: var(--lr-py-8) var(--lr-px-12);
14862
+ --color: var(--lr-greys-000);
14852
14863
  label {
14853
14864
  --background-color: var(--lr-greys-000);
14865
+ &[checked] {
14866
+ --border-size: 0;
14867
+ --background-color: var(--lr-greys-900);
14868
+ span {
14869
+ --color: var(--lr-greys-000);
14870
+ }
14871
+ }
14872
+ span {
14873
+ --color: var(--lr-greys-900);
14874
+ }
14854
14875
  }
14855
14876
  }
14877
+
14878
+ :host([iconPosition='right'])::part(label-text) {
14879
+ display: inline-flex;
14880
+ align-items: stretch;
14881
+ flex-direction: row-reverse;
14882
+ gap: 0.5rem;
14883
+ }
14856
14884
  `, cm = {
14857
14885
  radius: ql("8px")
14858
14886
  }, um = 8, de = (n) => ql(`${n * um}px`), Gi = {
@@ -15009,59 +15037,64 @@ var pm = Object.defineProperty, hm = Object.getOwnPropertyDescriptor, fm = (n, i
15009
15037
  (o = n[a]) && (r = (t ? o(i, e, r) : o(r)) || r);
15010
15038
  return t && r && pm(i, e, r), r;
15011
15039
  };
15012
- let Ze = class extends vn {
15040
+ let Ye = class extends vn {
15013
15041
  };
15014
- Ze.styles = Nn`
15042
+ Ye.styles = Nn`
15015
15043
  ${dm}
15016
15044
  `;
15017
- Ze = fm([
15045
+ Ye = fm([
15018
15046
  Gr("super-element")
15019
- ], Ze);
15020
- var mm = Object.defineProperty, vm = Object.getOwnPropertyDescriptor, Rt = (n, i, e, t) => {
15047
+ ], Ye);
15048
+ var mm = Object.defineProperty, vm = Object.getOwnPropertyDescriptor, st = (n, i, e, t) => {
15021
15049
  for (var r = t > 1 ? void 0 : t ? vm(i, e) : i, a = n.length - 1, o; a >= 0; a--)
15022
15050
  (o = n[a]) && (r = (t ? o(i, e, r) : o(r)) || r);
15023
15051
  return t && r && mm(i, e, r), r;
15024
15052
  };
15025
- let Ye = class extends Ze {
15053
+ let ze = class extends Ye {
15026
15054
  constructor() {
15027
- super(...arguments), this.label = "", this.size = "small", this.iconPosition = "left", this.disabled = !1, this.variant = "on-dark";
15055
+ super(...arguments), this.label = "", this.size = "small", this.checked = !1, this.iconPosition = "left", this.disabled = !1, this.variant = "on-dark";
15028
15056
  }
15029
15057
  render() {
15030
- return wr`
15031
- <label ?disabled=${this.disabled}>
15032
- <span class="sr-only">
15033
- <input type="hidden" tabindex="0" />
15034
- </span>
15035
- <span aria-label=${this.label}>
15058
+ return kr`
15059
+ <label ?checked=${this.checked} ?disabled=${this.disabled}>
15060
+ <input type="checkbox" ?checked=${this.checked} @change=${this._toggleChecked} tabindex="-1" hidden />
15061
+ <span class="sr-only">${this.label}</span>
15062
+ <span part="label-text" aria-label=${this.label}>
15036
15063
  <slot name="icon"></slot>
15037
15064
  ${this.label}
15038
15065
  </span>
15039
15066
  </label>
15040
15067
  `;
15041
15068
  }
15069
+ _toggleChecked() {
15070
+ this.checked = !this.checked;
15071
+ }
15042
15072
  };
15043
- Ye.styles = [Ze.styles, lm];
15044
- Rt([
15073
+ ze.styles = [Ye.styles, lm];
15074
+ st([
15045
15075
  se({ type: String })
15046
- ], Ye.prototype, "label", 2);
15047
- Rt([
15076
+ ], ze.prototype, "label", 2);
15077
+ st([
15048
15078
  se({ type: String })
15049
- ], Ye.prototype, "size", 2);
15050
- Rt([
15079
+ ], ze.prototype, "size", 2);
15080
+ st([
15051
15081
  se({ type: String })
15052
- ], Ye.prototype, "icon", 2);
15053
- Rt([
15082
+ ], ze.prototype, "icon", 2);
15083
+ st([
15084
+ se({ type: Boolean })
15085
+ ], ze.prototype, "checked", 2);
15086
+ st([
15054
15087
  se({ type: String })
15055
- ], Ye.prototype, "iconPosition", 2);
15056
- Rt([
15088
+ ], ze.prototype, "iconPosition", 2);
15089
+ st([
15057
15090
  se({ type: Boolean })
15058
- ], Ye.prototype, "disabled", 2);
15059
- Rt([
15091
+ ], ze.prototype, "disabled", 2);
15092
+ st([
15060
15093
  se({ type: String })
15061
- ], Ye.prototype, "variant", 2);
15062
- Ye = Rt([
15094
+ ], ze.prototype, "variant", 2);
15095
+ ze = st([
15063
15096
  Gr("lr-pill")
15064
- ], Ye);
15097
+ ], ze);
15065
15098
  const gm = Nn`
15066
15099
  :host .button {
15067
15100
  --font-family: var(--lr-poppins);
@@ -15289,8 +15322,8 @@ const ym = (n) => n ?? pe;
15289
15322
  * Copyright 2017 Google LLC
15290
15323
  * SPDX-License-Identifier: BSD-3-Clause
15291
15324
  */
15292
- const bm = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wm = (n) => (...i) => ({ _$litDirective$: n, values: i });
15293
- class km {
15325
+ const bm = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, km = (n) => (...i) => ({ _$litDirective$: n, values: i });
15326
+ class wm {
15294
15327
  constructor(i) {
15295
15328
  }
15296
15329
  get _$AU() {
@@ -15311,7 +15344,7 @@ class km {
15311
15344
  * Copyright 2018 Google LLC
15312
15345
  * SPDX-License-Identifier: BSD-3-Clause
15313
15346
  */
15314
- const Sm = wm(class extends km {
15347
+ const Sm = km(class extends wm {
15315
15348
  constructor(n) {
15316
15349
  var i;
15317
15350
  if (super(n), n.type !== bm.ATTRIBUTE || n.name !== "class" || ((i = n.strings) == null ? void 0 : i.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
@@ -15335,12 +15368,12 @@ const Sm = wm(class extends km {
15335
15368
  return wt;
15336
15369
  }
15337
15370
  });
15338
- var _m = Object.defineProperty, Em = Object.getOwnPropertyDescriptor, qe = (n, i, e, t) => {
15371
+ var _m = Object.defineProperty, Em = Object.getOwnPropertyDescriptor, Ve = (n, i, e, t) => {
15339
15372
  for (var r = t > 1 ? void 0 : t ? Em(i, e) : i, a = n.length - 1, o; a >= 0; a--)
15340
15373
  (o = n[a]) && (r = (t ? o(i, e, r) : o(r)) || r);
15341
15374
  return t && r && _m(i, e, r), r;
15342
15375
  };
15343
- let Me = class extends Ze {
15376
+ let Me = class extends Ye {
15344
15377
  constructor() {
15345
15378
  super(...arguments), this.label = "", this.disabled = !1, this.variant = "primary", this.size = "small", this.iconPosition = "left", this.buttonType = "button", this.reversed = !1;
15346
15379
  }
@@ -15348,7 +15381,7 @@ let Me = class extends Ze {
15348
15381
  const n = Sm({
15349
15382
  button: this.buttonType === "button"
15350
15383
  });
15351
- return wr`
15384
+ return kr`
15352
15385
  <button
15353
15386
  aria-label="${ym(this.label)}"
15354
15387
  aria-disabled=${this.disabled}
@@ -15363,35 +15396,35 @@ let Me = class extends Ze {
15363
15396
  `;
15364
15397
  }
15365
15398
  };
15366
- Me.styles = [Ze.styles, gm];
15367
- qe([
15399
+ Me.styles = [Ye.styles, gm];
15400
+ Ve([
15368
15401
  se({ type: String })
15369
15402
  ], Me.prototype, "label", 2);
15370
- qe([
15403
+ Ve([
15371
15404
  se({ type: Boolean })
15372
15405
  ], Me.prototype, "disabled", 2);
15373
- qe([
15406
+ Ve([
15374
15407
  se({ type: String })
15375
15408
  ], Me.prototype, "variant", 2);
15376
- qe([
15409
+ Ve([
15377
15410
  se({ type: String })
15378
15411
  ], Me.prototype, "size", 2);
15379
- qe([
15412
+ Ve([
15380
15413
  se({ type: String })
15381
15414
  ], Me.prototype, "icon", 2);
15382
- qe([
15415
+ Ve([
15383
15416
  se({ type: String })
15384
15417
  ], Me.prototype, "iconPosition", 2);
15385
- qe([
15418
+ Ve([
15386
15419
  se({ type: String })
15387
15420
  ], Me.prototype, "buttonType", 2);
15388
- qe([
15421
+ Ve([
15389
15422
  se({ type: Boolean })
15390
15423
  ], Me.prototype, "resetStyle", 2);
15391
- qe([
15424
+ Ve([
15392
15425
  se({ type: Boolean })
15393
15426
  ], Me.prototype, "reversed", 2);
15394
- Me = qe([
15427
+ Me = Ve([
15395
15428
  Gr("lr-button")
15396
15429
  ], Me);
15397
15430
  const Cm = Nn`
@@ -15468,7 +15501,7 @@ const Cm = Nn`
15468
15501
  font-size: 0.9rem;
15469
15502
  font-weight: 600;
15470
15503
  }
15471
- `, pt = {
15504
+ `, ht = {
15472
15505
  avatars: {
15473
15506
  ai: {
15474
15507
  src: new URL("data:image/svg+xml,%3csvg%20width='272'%20height='277'%20viewBox='0%200%20272%20277'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_16_3)'%3e%3cpath%20d='M271.973%2097.8844V227.773C271.973%20241.967%20260.228%20253.476%20245.954%20253.078C232.176%20252.689%20221.389%20241%20221.389%20227.203V97.8844C221.389%2095.814%20223.069%2094.1234%20225.147%2094.1234H235.42C237.497%2094.1234%20239.178%2095.805%20239.178%2097.8844V227.475C239.178%20231.362%20242.331%20235.033%20246.216%20235.277C250.579%20235.548%20254.211%20232.076%20254.211%20227.773V97.8844C254.211%2095.814%20255.892%2094.1234%20257.97%2094.1234H268.242C270.32%2094.1234%20272%2095.805%20272%2097.8844H271.973ZM44.7024%20189.042H3.75833C1.68041%20189.042%200%20190.724%200%20192.803V203.164C0%20205.234%201.68041%20206.916%203.75833%20206.916H15.5212V273.239C15.5212%20275.318%2017.2016%20277%2019.2795%20277H29.1993C31.2682%20277%2032.9576%20275.318%2032.9576%20273.239V206.916H44.7205C46.7894%20206.916%2048.4788%20205.234%2048.4788%20203.155V192.794C48.4788%20190.715%2046.7984%20189.033%2044.7205%20189.033L44.7024%20189.042ZM216.601%20138.468C216.601%20163.484%20196.264%20183.826%20171.275%20183.826H170.679C145.689%20183.826%20125.353%20163.475%20125.353%20138.468C125.353%20113.462%20145.689%2093.1108%20170.679%2093.1108H171.275C196.273%2093.1108%20216.601%20113.462%20216.601%20138.468ZM199.146%20138.468C199.146%20123.099%20186.643%20110.578%20171.275%20110.578H170.661C155.302%20110.578%20142.798%20123.09%20142.798%20138.468C142.798%20153.847%20155.293%20166.35%20170.661%20166.35H171.275C186.634%20166.35%20199.146%20153.847%20199.146%20138.468ZM268.215%20259.199H225.138C223.06%20259.199%20221.38%20260.88%20221.38%20262.96V273.239C221.38%20275.318%20223.06%20277%20225.138%20277H268.215C270.292%20277%20271.973%20275.318%20271.973%20273.239V262.96C271.973%20260.88%20270.292%20259.199%20268.215%20259.199ZM3.75833%2087.9034H24.2123C26.2812%2087.9034%2027.9706%2086.2218%2027.9706%2084.1424V73.863C27.9706%2071.7927%2026.2902%2070.1021%2024.2123%2070.1021H17.7798V3.76096C17.7798%201.68158%2016.0994%200%2014.0215%200H3.75833C1.68041%200%200%201.68158%200%203.76096V84.1514C0%2086.2218%201.68041%2087.9124%203.75833%2087.9124V87.9034ZM239.16%2017.7922H268.215C270.292%2017.7922%20271.973%2016.1106%20271.973%2014.0313V3.76096C271.973%201.68158%20270.292%200%20268.215%200H225.138C223.06%200%20221.38%201.68158%20221.38%203.76096V84.1514C221.38%2086.2218%20223.06%2087.9124%20225.138%2087.9124H268.215C270.292%2087.9124%20271.973%2086.2308%20271.973%2084.1514V73.8721C271.973%2071.8018%20270.292%2070.1111%20268.215%2070.1111H239.16V52.8704H266.823C268.901%2052.8704%20270.582%2051.1888%20270.582%2049.1094V38.8301C270.582%2036.7598%20268.901%2035.0691%20266.823%2035.0691H239.16V17.7922ZM32.9667%2083.1208L57.2874%202.72127C57.7753%201.10297%2059.2659%200%2060.9554%200H73.8837C75.4918%200%2076.9102%201.01257%2077.4342%202.53141L105.206%2082.8857C106.064%2085.3719%20104.221%2087.9666%20101.583%2087.9666H90.8233C89.2242%2087.9666%2087.7967%2086.9541%2087.2727%2085.4352L83.5234%2074.5863C82.9904%2073.0403%2081.5359%2072.0097%2079.9006%2072.0097H57.7301C56.0407%2072.0097%2054.55%2073.1127%2054.0621%2074.731L50.8639%2085.2906C50.3851%2086.8727%2048.9215%2087.9576%2047.2682%2087.9576H36.5353C34.0147%2087.9576%2032.2078%2085.5256%2032.9396%2083.1117L32.9667%2083.1208ZM60.2868%2054.2265H76.4946L68.9238%2032.3207C68.5895%2031.3443%2067.1982%2031.3715%2066.9001%2032.3569L60.2868%2054.2175V54.2265ZM110.681%2084.1514V3.83328C110.681%201.76295%20112.361%200.0723261%20114.439%200.0723261H183.598C200.727%200.0723261%20215.481%2014.0855%20215.58%2031.2178C215.643%2043.034%20209.129%2053.3586%20199.499%2058.7469L214.541%2082.0992C216.149%2084.5944%20214.36%2087.8943%20211.388%2087.8943H199.173C197.899%2087.8943%20196.707%2087.2434%20196.02%2086.1766L180.915%2062.7339H132.219C130.15%2062.7339%20128.461%2064.4155%20128.461%2066.4948V84.1514C128.461%2086.2218%20126.78%2087.9124%20124.702%2087.9124H114.43C112.361%2087.9124%20110.672%2086.2308%20110.672%2084.1514H110.681ZM128.461%2044.9507H184.276C192.388%2044.9507%20198.866%2037.7542%20197.665%2029.4096C196.698%2022.6833%20190.6%2017.8736%20183.797%2017.8736H128.461V44.9507ZM0%20179.061V97.8934C0%2095.814%201.68041%2094.1324%203.75833%2094.1324H76.3591C101.24%2094.1324%20121.396%20114.754%20120.646%20139.815C119.932%20163.936%2099.5234%20182.813%2075.4105%20182.813H3.75833C1.68041%20182.813%200%20181.132%200%20179.052V179.061ZM17.4274%20165.374H75.6996C90.2541%20165.374%20102.667%20154.073%20103.219%20139.508C103.797%20124.202%2091.5279%20111.572%2076.3591%20111.572H17.4274V165.374ZM72.0316%20206.88H211.749C213.827%20206.88%20215.508%20205.198%20215.508%20203.119V192.84C215.508%20190.76%20213.827%20189.079%20211.749%20189.079H58.0192C55.9503%20189.079%2054.2609%20190.76%2054.2609%20192.84V273.23C54.2609%20275.309%2055.9413%20276.991%2058.0192%20276.991H211.749C213.827%20276.991%20215.508%20275.309%20215.508%20273.23V262.951C215.508%20260.871%20213.827%20259.19%20211.749%20259.19H72.0406V241.949H210.412C212.49%20241.949%20214.171%20240.267%20214.171%20238.188V227.909C214.171%20225.829%20212.49%20224.148%20210.412%20224.148H72.0406V206.853L72.0316%20206.88Z'%20fill='%23FF3F52'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_16_3'%3e%3crect%20width='272'%20height='277'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href
@@ -15651,7 +15684,7 @@ function Re(n) {
15651
15684
  return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
15652
15685
  }, Re(n);
15653
15686
  }
15654
- function Ve(n, i) {
15687
+ function We(n, i) {
15655
15688
  if (!(n instanceof i))
15656
15689
  throw new TypeError("Cannot call a class as a function");
15657
15690
  }
@@ -15675,7 +15708,7 @@ function rs(n, i) {
15675
15708
  t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(n, Vl(t.key), t);
15676
15709
  }
15677
15710
  }
15678
- function We(n, i, e) {
15711
+ function Ge(n, i, e) {
15679
15712
  return i && rs(n.prototype, i), e && rs(n, e), Object.defineProperty(n, "prototype", {
15680
15713
  writable: !1
15681
15714
  }), n;
@@ -15710,12 +15743,12 @@ function $n(n, i) {
15710
15743
  throw new TypeError("Derived constructors may only return object or undefined");
15711
15744
  return it(n);
15712
15745
  }
15713
- function ze(n) {
15714
- return ze = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
15746
+ function qe(n) {
15747
+ return qe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
15715
15748
  return e.__proto__ || Object.getPrototypeOf(e);
15716
- }, ze(n);
15749
+ }, qe(n);
15717
15750
  }
15718
- function st(n, i, e) {
15751
+ function lt(n, i, e) {
15719
15752
  return i = Vl(i), i in n ? Object.defineProperty(n, i, {
15720
15753
  value: e,
15721
15754
  enumerable: !0,
@@ -15763,7 +15796,7 @@ function os(n) {
15763
15796
  for (var i = 1; i < arguments.length; i++) {
15764
15797
  var e = arguments[i] != null ? arguments[i] : {};
15765
15798
  i % 2 ? as(Object(e), !0).forEach(function(t) {
15766
- st(n, t, e[t]);
15799
+ lt(n, t, e[t]);
15767
15800
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : as(Object(e)).forEach(function(t) {
15768
15801
  Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(e, t));
15769
15802
  });
@@ -15787,9 +15820,9 @@ var Lm = {
15787
15820
  }, Mm = function() {
15788
15821
  function n(i) {
15789
15822
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
15790
- Ve(this, n), this.init(i, e);
15823
+ We(this, n), this.init(i, e);
15791
15824
  }
15792
- return We(n, [{
15825
+ return Ge(n, [{
15793
15826
  key: "init",
15794
15827
  value: function(e) {
15795
15828
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -15848,9 +15881,9 @@ var Lm = {
15848
15881
  }]), n;
15849
15882
  }(), Ue = new Mm(), ot = function() {
15850
15883
  function n() {
15851
- Ve(this, n), this.observers = {};
15884
+ We(this, n), this.observers = {};
15852
15885
  }
15853
- return We(n, [{
15886
+ return Ge(n, [{
15854
15887
  key: "on",
15855
15888
  value: function(e, t) {
15856
15889
  var r = this;
@@ -16014,7 +16047,7 @@ function Gn(n) {
16014
16047
  for (var i = 1; i < arguments.length; i++) {
16015
16048
  var e = arguments[i] != null ? arguments[i] : {};
16016
16049
  i % 2 ? cs(Object(e), !0).forEach(function(t) {
16017
- st(n, t, e[t]);
16050
+ lt(n, t, e[t]);
16018
16051
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : cs(Object(e)).forEach(function(t) {
16019
16052
  Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(e, t));
16020
16053
  });
@@ -16024,9 +16057,9 @@ function Gn(n) {
16024
16057
  function Um(n) {
16025
16058
  var i = Hm();
16026
16059
  return function() {
16027
- var t = ze(n), r;
16060
+ var t = qe(n), r;
16028
16061
  if (i) {
16029
- var a = ze(this).constructor;
16062
+ var a = qe(this).constructor;
16030
16063
  r = Reflect.construct(t, arguments, a);
16031
16064
  } else
16032
16065
  r = t.apply(this, arguments);
@@ -16051,9 +16084,9 @@ var zm = function(n) {
16051
16084
  ns: ["translation"],
16052
16085
  defaultNS: "translation"
16053
16086
  };
16054
- return Ve(this, e), r = i.call(this), Jr && ot.call(it(r)), r.data = t || {}, r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.options.ignoreJSONStructure === void 0 && (r.options.ignoreJSONStructure = !0), r;
16087
+ return We(this, e), r = i.call(this), Jr && ot.call(it(r)), r.data = t || {}, r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.options.ignoreJSONStructure === void 0 && (r.options.ignoreJSONStructure = !0), r;
16055
16088
  }
16056
- return We(e, [{
16089
+ return Ge(e, [{
16057
16090
  key: "addNamespaces",
16058
16091
  value: function(r) {
16059
16092
  this.options.ns.indexOf(r) < 0 && this.options.ns.push(r);
@@ -16162,7 +16195,7 @@ function ge(n) {
16162
16195
  for (var i = 1; i < arguments.length; i++) {
16163
16196
  var e = arguments[i] != null ? arguments[i] : {};
16164
16197
  i % 2 ? us(Object(e), !0).forEach(function(t) {
16165
- st(n, t, e[t]);
16198
+ lt(n, t, e[t]);
16166
16199
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : us(Object(e)).forEach(function(t) {
16167
16200
  Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(e, t));
16168
16201
  });
@@ -16172,9 +16205,9 @@ function ge(n) {
16172
16205
  function qm(n) {
16173
16206
  var i = Vm();
16174
16207
  return function() {
16175
- var t = ze(n), r;
16208
+ var t = qe(n), r;
16176
16209
  if (i) {
16177
- var a = ze(this).constructor;
16210
+ var a = qe(this).constructor;
16178
16211
  r = Reflect.construct(t, arguments, a);
16179
16212
  } else
16180
16213
  r = t.apply(this, arguments);
@@ -16196,9 +16229,9 @@ var ds = {}, ps = function(n) {
16196
16229
  var i = qm(e);
16197
16230
  function e(t) {
16198
16231
  var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
16199
- return Ve(this, e), r = i.call(this), Jr && ot.call(it(r)), Pm(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, it(r)), r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.logger = Ue.create("translator"), r;
16232
+ return We(this, e), r = i.call(this), Jr && ot.call(it(r)), Pm(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, it(r)), r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.logger = Ue.create("translator"), r;
16200
16233
  }
16201
- return We(e, [{
16234
+ return Ge(e, [{
16202
16235
  key: "changeLanguage",
16203
16236
  value: function(r) {
16204
16237
  r && (this.language = r);
@@ -16271,7 +16304,7 @@ var ds = {}, ps = function(n) {
16271
16304
  return l ? (g.res = te, g) : te;
16272
16305
  }
16273
16306
  if (c) {
16274
- var we = T === "[object Array]", z = we ? [] : {}, le = we ? L : S;
16307
+ var ke = T === "[object Array]", z = ke ? [] : {}, le = ke ? L : S;
16275
16308
  for (var W in b)
16276
16309
  if (Object.prototype.hasOwnProperty.call(b, W)) {
16277
16310
  var Ae = "".concat(le).concat(c).concat(W);
@@ -16295,20 +16328,20 @@ var ds = {}, ps = function(n) {
16295
16328
  }));
16296
16329
  Fe && Fe.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
16297
16330
  }
16298
- var ke = [], Te = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
16331
+ var we = [], Te = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
16299
16332
  if (this.options.saveMissingTo === "fallback" && Te && Te[0])
16300
16333
  for (var ei = 0; ei < Te.length; ei++)
16301
- ke.push(Te[ei]);
16302
- else this.options.saveMissingTo === "all" ? ke = this.languageUtils.toResolveHierarchy(a.lng || this.language) : ke.push(a.lng || this.language);
16334
+ we.push(Te[ei]);
16335
+ else this.options.saveMissingTo === "all" ? we = this.languageUtils.toResolveHierarchy(a.lng || this.language) : we.push(a.lng || this.language);
16303
16336
  var Ra = function(It, ni, Oa) {
16304
16337
  var Ia = P && Oa !== b ? Oa : re;
16305
16338
  s.options.missingKeyHandler ? s.options.missingKeyHandler(It, h, ni, Ia, ce, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(It, h, ni, Ia, ce, a), s.emit("missingKey", It, h, ni, b);
16306
16339
  };
16307
- this.options.saveMissing && (this.options.saveMissingPlurals && R ? ke.forEach(function(ti) {
16340
+ this.options.saveMissing && (this.options.saveMissingPlurals && R ? we.forEach(function(ti) {
16308
16341
  s.pluralResolver.getSuffixes(ti, a).forEach(function(It) {
16309
16342
  Ra([ti], d + It, a["defaultValue".concat(It)] || N);
16310
16343
  });
16311
- }) : Ra(ke, d, N));
16344
+ }) : Ra(we, d, N));
16312
16345
  }
16313
16346
  b = this.extendTranslation(b, r, a, g, o), C && b === d && this.options.appendNamespaceToMissingKey && (b = "".concat(h, ":").concat(d)), (C || I) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? b = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(h, ":").concat(d) : d, I ? b : void 0) : b = this.options.parseMissingKeyHandler(b));
16314
16347
  }
@@ -16415,9 +16448,9 @@ function Ci(n) {
16415
16448
  }
16416
16449
  var hs = function() {
16417
16450
  function n(i) {
16418
- Ve(this, n), this.options = i, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Ue.create("languageUtils");
16451
+ We(this, n), this.options = i, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Ue.create("languageUtils");
16419
16452
  }
16420
- return We(n, [{
16453
+ return Ge(n, [{
16421
16454
  key: "getScriptPartFromCode",
16422
16455
  value: function(e) {
16423
16456
  if (!e || e.indexOf("-") < 0) return null;
@@ -16671,9 +16704,9 @@ function Jm() {
16671
16704
  var Zm = function() {
16672
16705
  function n(i) {
16673
16706
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
16674
- Ve(this, n), this.languageUtils = i, this.options = e, this.logger = Ue.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Jm();
16707
+ We(this, n), this.languageUtils = i, this.options = e, this.logger = Ue.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Jm();
16675
16708
  }
16676
- return We(n, [{
16709
+ return Ge(n, [{
16677
16710
  key: "addRule",
16678
16711
  value: function(e, t) {
16679
16712
  this.rules[e] = t;
@@ -16755,7 +16788,7 @@ function Ne(n) {
16755
16788
  for (var i = 1; i < arguments.length; i++) {
16756
16789
  var e = arguments[i] != null ? arguments[i] : {};
16757
16790
  i % 2 ? ms(Object(e), !0).forEach(function(t) {
16758
- st(n, t, e[t]);
16791
+ lt(n, t, e[t]);
16759
16792
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : ms(Object(e)).forEach(function(t) {
16760
16793
  Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(e, t));
16761
16794
  });
@@ -16769,11 +16802,11 @@ function vs(n, i, e) {
16769
16802
  var Ym = function() {
16770
16803
  function n() {
16771
16804
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
16772
- Ve(this, n), this.logger = Ue.create("interpolator"), this.options = i, this.format = i.interpolation && i.interpolation.format || function(e) {
16805
+ We(this, n), this.logger = Ue.create("interpolator"), this.options = i, this.format = i.interpolation && i.interpolation.format || function(e) {
16773
16806
  return e;
16774
16807
  }, this.init(i);
16775
16808
  }
16776
- return We(n, [{
16809
+ return Ge(n, [{
16777
16810
  key: "init",
16778
16811
  value: function() {
16779
16812
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -16899,11 +16932,11 @@ function gs(n, i) {
16899
16932
  }
16900
16933
  return e;
16901
16934
  }
16902
- function Ke(n) {
16935
+ function Je(n) {
16903
16936
  for (var i = 1; i < arguments.length; i++) {
16904
16937
  var e = arguments[i] != null ? arguments[i] : {};
16905
16938
  i % 2 ? gs(Object(e), !0).forEach(function(t) {
16906
- st(n, t, e[t]);
16939
+ lt(n, t, e[t]);
16907
16940
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : gs(Object(e)).forEach(function(t) {
16908
16941
  Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(e, t));
16909
16942
  });
@@ -16945,15 +16978,15 @@ function Ft(n) {
16945
16978
  var Qm = function() {
16946
16979
  function n() {
16947
16980
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
16948
- Ve(this, n), this.logger = Ue.create("formatter"), this.options = i, this.formats = {
16981
+ We(this, n), this.logger = Ue.create("formatter"), this.options = i, this.formats = {
16949
16982
  number: Ft(function(e, t) {
16950
- var r = new Intl.NumberFormat(e, Ke({}, t));
16983
+ var r = new Intl.NumberFormat(e, Je({}, t));
16951
16984
  return function(a) {
16952
16985
  return r.format(a);
16953
16986
  };
16954
16987
  }),
16955
16988
  currency: Ft(function(e, t) {
16956
- var r = new Intl.NumberFormat(e, Ke(Ke({}, t), {}, {
16989
+ var r = new Intl.NumberFormat(e, Je(Je({}, t), {}, {
16957
16990
  style: "currency"
16958
16991
  }));
16959
16992
  return function(a) {
@@ -16961,26 +16994,26 @@ var Qm = function() {
16961
16994
  };
16962
16995
  }),
16963
16996
  datetime: Ft(function(e, t) {
16964
- var r = new Intl.DateTimeFormat(e, Ke({}, t));
16997
+ var r = new Intl.DateTimeFormat(e, Je({}, t));
16965
16998
  return function(a) {
16966
16999
  return r.format(a);
16967
17000
  };
16968
17001
  }),
16969
17002
  relativetime: Ft(function(e, t) {
16970
- var r = new Intl.RelativeTimeFormat(e, Ke({}, t));
17003
+ var r = new Intl.RelativeTimeFormat(e, Je({}, t));
16971
17004
  return function(a) {
16972
17005
  return r.format(a, t.range || "day");
16973
17006
  };
16974
17007
  }),
16975
17008
  list: Ft(function(e, t) {
16976
- var r = new Intl.ListFormat(e, Ke({}, t));
17009
+ var r = new Intl.ListFormat(e, Je({}, t));
16977
17010
  return function(a) {
16978
17011
  return r.format(a);
16979
17012
  };
16980
17013
  })
16981
17014
  }, this.init(i);
16982
17015
  }
16983
- return We(n, [{
17016
+ return Ge(n, [{
16984
17017
  key: "init",
16985
17018
  value: function(e) {
16986
17019
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
@@ -17007,7 +17040,7 @@ var Qm = function() {
17007
17040
  var f = c;
17008
17041
  try {
17009
17042
  var v = o && o.formatParams && o.formatParams[o.interpolationkey] || {}, y = v.locale || v.lng || o.locale || o.lng || r;
17010
- f = a.formats[p](c, y, Ke(Ke(Ke({}, h), o), v));
17043
+ f = a.formats[p](c, y, Je(Je(Je({}, h), o), v));
17011
17044
  } catch (g) {
17012
17045
  a.logger.warn(g);
17013
17046
  }
@@ -17034,7 +17067,7 @@ function bs(n) {
17034
17067
  for (var i = 1; i < arguments.length; i++) {
17035
17068
  var e = arguments[i] != null ? arguments[i] : {};
17036
17069
  i % 2 ? ys(Object(e), !0).forEach(function(t) {
17037
- st(n, t, e[t]);
17070
+ lt(n, t, e[t]);
17038
17071
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : ys(Object(e)).forEach(function(t) {
17039
17072
  Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(e, t));
17040
17073
  });
@@ -17044,9 +17077,9 @@ function bs(n) {
17044
17077
  function ev(n) {
17045
17078
  var i = tv();
17046
17079
  return function() {
17047
- var t = ze(n), r;
17080
+ var t = qe(n), r;
17048
17081
  if (i) {
17049
- var a = ze(this).constructor;
17082
+ var a = qe(this).constructor;
17050
17083
  r = Reflect.construct(t, arguments, a);
17051
17084
  } else
17052
17085
  r = t.apply(this, arguments);
@@ -17071,9 +17104,9 @@ var rv = function(n) {
17071
17104
  var i = ev(e);
17072
17105
  function e(t, r, a) {
17073
17106
  var o, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
17074
- return Ve(this, e), o = i.call(this), Jr && ot.call(it(o)), o.backend = t, o.store = r, o.services = a, o.languageUtils = a.languageUtils, o.options = s, o.logger = Ue.create("backendConnector"), o.waitingReads = [], o.maxParallelReads = s.maxParallelReads || 10, o.readingCalls = 0, o.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, o.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, o.state = {}, o.queue = [], o.backend && o.backend.init && o.backend.init(a, s.backend, s), o;
17107
+ return We(this, e), o = i.call(this), Jr && ot.call(it(o)), o.backend = t, o.store = r, o.services = a, o.languageUtils = a.languageUtils, o.options = s, o.logger = Ue.create("backendConnector"), o.waitingReads = [], o.maxParallelReads = s.maxParallelReads || 10, o.readingCalls = 0, o.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, o.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, o.state = {}, o.queue = [], o.backend && o.backend.init && o.backend.init(a, s.backend, s), o;
17075
17108
  }
17076
- return We(e, [{
17109
+ return Ge(e, [{
17077
17110
  key: "queueLoad",
17078
17111
  value: function(r, a, o, s) {
17079
17112
  var l = this, c = {}, u = {}, d = {}, p = {};
@@ -17222,7 +17255,7 @@ var rv = function(n) {
17222
17255
  }
17223
17256
  }]), e;
17224
17257
  }(ot);
17225
- function ws() {
17258
+ function ks() {
17226
17259
  return {
17227
17260
  debug: !1,
17228
17261
  initImmediate: !0,
@@ -17283,7 +17316,7 @@ function ws() {
17283
17316
  }
17284
17317
  };
17285
17318
  }
17286
- function ks(n) {
17319
+ function ws(n) {
17287
17320
  return typeof n.ns == "string" && (n.ns = [n.ns]), typeof n.fallbackLng == "string" && (n.fallbackLng = [n.fallbackLng]), typeof n.fallbackNS == "string" && (n.fallbackNS = [n.fallbackNS]), n.supportedLngs && n.supportedLngs.indexOf("cimode") < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), n;
17288
17321
  }
17289
17322
  function Ss(n, i) {
@@ -17300,7 +17333,7 @@ function $e(n) {
17300
17333
  for (var i = 1; i < arguments.length; i++) {
17301
17334
  var e = arguments[i] != null ? arguments[i] : {};
17302
17335
  i % 2 ? Ss(Object(e), !0).forEach(function(t) {
17303
- st(n, t, e[t]);
17336
+ lt(n, t, e[t]);
17304
17337
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : Ss(Object(e)).forEach(function(t) {
17305
17338
  Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(e, t));
17306
17339
  });
@@ -17310,9 +17343,9 @@ function $e(n) {
17310
17343
  function iv(n) {
17311
17344
  var i = av();
17312
17345
  return function() {
17313
- var t = ze(n), r;
17346
+ var t = qe(n), r;
17314
17347
  if (i) {
17315
- var a = ze(this).constructor;
17348
+ var a = qe(this).constructor;
17316
17349
  r = Reflect.construct(t, arguments, a);
17317
17350
  } else
17318
17351
  r = t.apply(this, arguments);
@@ -17342,7 +17375,7 @@ var Tr = function(n) {
17342
17375
  var i = iv(e);
17343
17376
  function e() {
17344
17377
  var t, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
17345
- if (Ve(this, e), t = i.call(this), Jr && ot.call(it(t)), t.options = ks(r), t.services = {}, t.logger = Ue, t.modules = {
17378
+ if (We(this, e), t = i.call(this), Jr && ot.call(it(t)), t.options = ws(r), t.services = {}, t.logger = Ue, t.modules = {
17346
17379
  external: []
17347
17380
  }, ov(it(t)), a && !t.isInitialized && !r.isClone) {
17348
17381
  if (!t.options.initImmediate)
@@ -17353,13 +17386,13 @@ var Tr = function(n) {
17353
17386
  }
17354
17387
  return t;
17355
17388
  }
17356
- return We(e, [{
17389
+ return Ge(e, [{
17357
17390
  key: "init",
17358
17391
  value: function() {
17359
17392
  var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
17360
17393
  typeof a == "function" && (o = a, a = {}), !a.defaultNS && a.defaultNS !== !1 && a.ns && (typeof a.ns == "string" ? a.defaultNS = a.ns : a.ns.indexOf("translation") < 0 && (a.defaultNS = a.ns[0]));
17361
- var s = ws();
17362
- this.options = $e($e($e({}, s), this.options), ks(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = $e($e({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
17394
+ var s = ks();
17395
+ this.options = $e($e($e({}, s), this.options), ws(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = $e($e({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
17363
17396
  function l(g) {
17364
17397
  return g ? typeof g == "function" ? new g() : g : null;
17365
17398
  }
@@ -17579,7 +17612,7 @@ var Tr = function(n) {
17579
17612
  key: "dir",
17580
17613
  value: function(r) {
17581
17614
  if (r || (r = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !r) return "rtl";
17582
- var a = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], o = this.services && this.services.languageUtils || new hs(ws());
17615
+ var a = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], o = this.services && this.services.languageUtils || new hs(ks());
17583
17616
  return a.indexOf(o.getLanguagePartFromCode(r)) > -1 || r.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
17584
17617
  }
17585
17618
  }, {
@@ -17615,7 +17648,7 @@ var Tr = function(n) {
17615
17648
  }
17616
17649
  }]), e;
17617
17650
  }(ot);
17618
- st(Tr, "createInstance", function() {
17651
+ lt(Tr, "createInstance", function() {
17619
17652
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
17620
17653
  return new Tr(n, i);
17621
17654
  });
@@ -17832,10 +17865,10 @@ const _s = (n) => Array.isArray(xi[n]) ? xi[n] : [xi[n]], bv = (n) => {
17832
17865
  }
17833
17866
  }
17834
17867
  return a;
17835
- }, wv = "fr", kv = (n) => {
17868
+ }, kv = "fr", wv = (n) => {
17836
17869
  var t;
17837
17870
  const i = n.split(".");
17838
- let e = wv;
17871
+ let e = kv;
17839
17872
  if (i.length > 1) {
17840
17873
  const r = (t = i.pop()) == null ? void 0 : t.toLocaleLowerCase();
17841
17874
  r && Sv(r) && (e = r);
@@ -17893,11 +17926,11 @@ function Kl(n, i) {
17893
17926
  const { toString: Ev } = Object.prototype, { getPrototypeOf: Ca } = Object, Zr = /* @__PURE__ */ ((n) => (i) => {
17894
17927
  const e = Ev.call(i);
17895
17928
  return n[e] || (n[e] = e.slice(8, -1).toLowerCase());
17896
- })(/* @__PURE__ */ Object.create(null)), Ge = (n) => (n = n.toLowerCase(), (i) => Zr(i) === n), Yr = (n) => (i) => typeof i === n, { isArray: Qt } = Array, Tn = Yr("undefined");
17929
+ })(/* @__PURE__ */ Object.create(null)), Ke = (n) => (n = n.toLowerCase(), (i) => Zr(i) === n), Yr = (n) => (i) => typeof i === n, { isArray: Qt } = Array, Tn = Yr("undefined");
17897
17930
  function Cv(n) {
17898
17931
  return n !== null && !Tn(n) && n.constructor !== null && !Tn(n.constructor) && Oe(n.constructor.isBuffer) && n.constructor.isBuffer(n);
17899
17932
  }
17900
- const Jl = Ge("ArrayBuffer");
17933
+ const Jl = Ke("ArrayBuffer");
17901
17934
  function xv(n) {
17902
17935
  let i;
17903
17936
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? i = ArrayBuffer.isView(n) : i = n && n.buffer && Jl(n.buffer), i;
@@ -17907,11 +17940,11 @@ const Av = Yr("string"), Oe = Yr("function"), Zl = Yr("number"), Xr = (n) => n !
17907
17940
  return !1;
17908
17941
  const i = Ca(n);
17909
17942
  return (i === null || i === Object.prototype || Object.getPrototypeOf(i) === null) && !(Symbol.toStringTag in n) && !(Symbol.iterator in n);
17910
- }, Rv = Ge("Date"), Ov = Ge("File"), Iv = Ge("Blob"), Lv = Ge("FileList"), Mv = (n) => Xr(n) && Oe(n.pipe), Pv = (n) => {
17943
+ }, Rv = Ke("Date"), Ov = Ke("File"), Iv = Ke("Blob"), Lv = Ke("FileList"), Mv = (n) => Xr(n) && Oe(n.pipe), Pv = (n) => {
17911
17944
  let i;
17912
17945
  return n && (typeof FormData == "function" && n instanceof FormData || Oe(n.append) && ((i = Zr(n)) === "formdata" || // detect form-data instance
17913
17946
  i === "object" && Oe(n.toString) && n.toString() === "[object FormData]"));
17914
- }, Nv = Ge("URLSearchParams"), Fv = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
17947
+ }, Nv = Ke("URLSearchParams"), Fv = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
17915
17948
  function Bn(n, i, { allOwnKeys: e = !1 } = {}) {
17916
17949
  if (n === null || typeof n > "u")
17917
17950
  return;
@@ -17987,12 +18020,12 @@ const Dv = (n, i, e, { allOwnKeys: t } = {}) => (Bn(i, (r, a) => {
17987
18020
  for (; (e = n.exec(i)) !== null; )
17988
18021
  t.push(e);
17989
18022
  return t;
17990
- }, Wv = Ge("HTMLFormElement"), Gv = (n) => n.toLowerCase().replace(
18023
+ }, Wv = Ke("HTMLFormElement"), Gv = (n) => n.toLowerCase().replace(
17991
18024
  /[-_\s]([a-z\d])(\w*)/g,
17992
18025
  function(e, t, r) {
17993
18026
  return t.toUpperCase() + r;
17994
18027
  }
17995
- ), Es = (({ hasOwnProperty: n }) => (i, e) => n.call(i, e))(Object.prototype), Kv = Ge("RegExp"), ec = (n, i) => {
18028
+ ), Es = (({ hasOwnProperty: n }) => (i, e) => n.call(i, e))(Object.prototype), Kv = Ke("RegExp"), ec = (n, i) => {
17996
18029
  const e = Object.getOwnPropertyDescriptors(n), t = {};
17997
18030
  Bn(e, (r, a) => {
17998
18031
  let o;
@@ -18052,7 +18085,7 @@ const tg = (n) => {
18052
18085
  return t;
18053
18086
  };
18054
18087
  return e(n, 0);
18055
- }, ng = Ge("AsyncFunction"), rg = (n) => n && (Xr(n) || Oe(n)) && Oe(n.then) && Oe(n.catch), E = {
18088
+ }, ng = Ke("AsyncFunction"), rg = (n) => n && (Xr(n) || Oe(n)) && Oe(n.then) && Oe(n.catch), E = {
18056
18089
  isArray: Qt,
18057
18090
  isArrayBuffer: Jl,
18058
18091
  isBuffer: Cv,
@@ -18081,7 +18114,7 @@ const tg = (n) => {
18081
18114
  inherits: Bv,
18082
18115
  toFlatObject: jv,
18083
18116
  kindOf: Zr,
18084
- kindOfTest: Ge,
18117
+ kindOfTest: Ke,
18085
18118
  endsWith: Uv,
18086
18119
  toArray: Hv,
18087
18120
  forEachEntry: qv,
@@ -18483,7 +18516,7 @@ const bg = E.toObjectSet([
18483
18516
  "referer",
18484
18517
  "retry-after",
18485
18518
  "user-agent"
18486
- ]), wg = (n) => {
18519
+ ]), kg = (n) => {
18487
18520
  const i = {};
18488
18521
  let e, t, r;
18489
18522
  return n && n.split(`
@@ -18497,7 +18530,7 @@ function sn(n) {
18497
18530
  function sr(n) {
18498
18531
  return n === !1 || n == null ? n : E.isArray(n) ? n.map(sr) : String(n);
18499
18532
  }
18500
- function kg(n) {
18533
+ function wg(n) {
18501
18534
  const i = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
18502
18535
  let t;
18503
18536
  for (; t = e.exec(n); )
@@ -18543,7 +18576,7 @@ class Ie {
18543
18576
  (!d || r[d] === void 0 || c === !0 || c === void 0 && r[d] !== !1) && (r[d || l] = sr(s));
18544
18577
  }
18545
18578
  const o = (s, l) => E.forEach(s, (c, u) => a(c, u, l));
18546
- return E.isPlainObject(i) || i instanceof this.constructor ? o(i, e) : E.isString(i) && (i = i.trim()) && !Sg(i) ? o(wg(i), e) : i != null && a(e, i, t), this;
18579
+ return E.isPlainObject(i) || i instanceof this.constructor ? o(i, e) : E.isString(i) && (i = i.trim()) && !Sg(i) ? o(kg(i), e) : i != null && a(e, i, t), this;
18547
18580
  }
18548
18581
  get(i, e) {
18549
18582
  if (i = sn(i), i) {
@@ -18553,7 +18586,7 @@ class Ie {
18553
18586
  if (!e)
18554
18587
  return r;
18555
18588
  if (e === !0)
18556
- return kg(r);
18589
+ return wg(r);
18557
18590
  if (E.isFunction(e))
18558
18591
  return e.call(this, r, t);
18559
18592
  if (E.isRegExp(e))
@@ -19032,7 +19065,7 @@ const Xi = {
19032
19065
  assertOptions: Ng,
19033
19066
  validators: Aa
19034
19067
  }, Qe = Xi.validators;
19035
- class vt {
19068
+ class gt {
19036
19069
  constructor(i) {
19037
19070
  this.defaults = i, this.interceptors = {
19038
19071
  request: new Ts(),
@@ -19127,7 +19160,7 @@ class vt {
19127
19160
  }
19128
19161
  }
19129
19162
  E.forEach(["delete", "get", "head", "options"], function(i) {
19130
- vt.prototype[i] = function(e, t) {
19163
+ gt.prototype[i] = function(e, t) {
19131
19164
  return this.request(Yt(t || {}, {
19132
19165
  method: i,
19133
19166
  url: e,
@@ -19148,7 +19181,7 @@ E.forEach(["post", "put", "patch"], function(i) {
19148
19181
  }));
19149
19182
  };
19150
19183
  }
19151
- vt.prototype[i] = e(), vt.prototype[i + "Form"] = e(!0);
19184
+ gt.prototype[i] = e(), gt.prototype[i + "Form"] = e(!0);
19152
19185
  });
19153
19186
  class Ta {
19154
19187
  constructor(i) {
@@ -19294,13 +19327,13 @@ Object.entries(Qi).forEach(([n, i]) => {
19294
19327
  Qi[i] = n;
19295
19328
  });
19296
19329
  function fc(n) {
19297
- const i = new vt(n), e = Kl(vt.prototype.request, i);
19298
- return E.extend(e, vt.prototype, i, { allOwnKeys: !0 }), E.extend(e, i, null, { allOwnKeys: !0 }), e.create = function(r) {
19330
+ const i = new gt(n), e = Kl(gt.prototype.request, i);
19331
+ return E.extend(e, gt.prototype, i, { allOwnKeys: !0 }), E.extend(e, i, null, { allOwnKeys: !0 }), e.create = function(r) {
19299
19332
  return fc(Yt(n, r));
19300
19333
  }, e;
19301
19334
  }
19302
19335
  const H = fc(jn);
19303
- H.Axios = vt;
19336
+ H.Axios = gt;
19304
19337
  H.CanceledError = Un;
19305
19338
  H.CancelToken = Ta;
19306
19339
  H.isCancel = uc;
@@ -19393,14 +19426,14 @@ const ue = (n, i) => {
19393
19426
  return H.isAxiosError(n) && ((e = n == null ? void 0 : n.response) == null ? void 0 : e.status) === i;
19394
19427
  };
19395
19428
  var ln, cn, jt, Ut, Ht, Zn;
19396
- class ht {
19397
- }
19398
- q(ht, "ConversationsConversationsGet", (ln = class {
19399
- }, q(ln, "isNotFoundProblemDetails", (i) => H.isAxiosError(i) && ue(i, 404)), q(ln, "isInternalServerErrorProblemDetails", (i) => H.isAxiosError(i) && ue(i, 500)), q(ln, "isServiceUnavailableProblemDetails", (i) => H.isAxiosError(i) && ue(i, 503)), ln)), q(ht, "ConversationsConversationsSummaryGet", (cn = class {
19400
- }, q(cn, "isNotFoundProblemDetails", (i) => H.isAxiosError(i) && ue(i, 404)), q(cn, "isInternalServerErrorProblemDetails", (i) => H.isAxiosError(i) && ue(i, 500)), q(cn, "isServiceUnavailableProblemDetails", (i) => H.isAxiosError(i) && ue(i, 503)), cn)), q(ht, "ConversationsConversationsPost", (jt = class {
19401
- }, q(jt, "isBadRequestProblemDetails", (i) => H.isAxiosError(i) && ue(i, 400)), q(jt, "isNotFoundProblemDetails", (i) => H.isAxiosError(i) && ue(i, 404)), q(jt, "isInternalServerErrorProblemDetails", (i) => H.isAxiosError(i) && ue(i, 500)), q(jt, "isServiceUnavailableProblemDetails", (i) => H.isAxiosError(i) && ue(i, 503)), jt)), q(ht, "ConversationsConversationsRatePost", (Ut = class {
19402
- }, q(Ut, "isBadRequestProblemDetails", (i) => H.isAxiosError(i) && ue(i, 400)), q(Ut, "isNotFoundProblemDetails", (i) => H.isAxiosError(i) && ue(i, 404)), q(Ut, "isInternalServerErrorProblemDetails", (i) => H.isAxiosError(i) && ue(i, 500)), q(Ut, "isServiceUnavailableProblemDetails", (i) => H.isAxiosError(i) && ue(i, 503)), Ut)), q(ht, "ConversationsConversationsMessagesRatePost", (Ht = class {
19403
- }, q(Ht, "isBadRequestProblemDetails", (i) => H.isAxiosError(i) && ue(i, 400)), q(Ht, "isNotFoundProblemDetails", (i) => H.isAxiosError(i) && ue(i, 404)), q(Ht, "isInternalServerErrorProblemDetails", (i) => H.isAxiosError(i) && ue(i, 500)), q(Ht, "isServiceUnavailableProblemDetails", (i) => H.isAxiosError(i) && ue(i, 503)), Ht)), q(ht, "ConversationsWebhookPost", (Zn = class {
19429
+ class ft {
19430
+ }
19431
+ q(ft, "ConversationsConversationsGet", (ln = class {
19432
+ }, q(ln, "isNotFoundProblemDetails", (i) => H.isAxiosError(i) && ue(i, 404)), q(ln, "isInternalServerErrorProblemDetails", (i) => H.isAxiosError(i) && ue(i, 500)), q(ln, "isServiceUnavailableProblemDetails", (i) => H.isAxiosError(i) && ue(i, 503)), ln)), q(ft, "ConversationsConversationsSummaryGet", (cn = class {
19433
+ }, q(cn, "isNotFoundProblemDetails", (i) => H.isAxiosError(i) && ue(i, 404)), q(cn, "isInternalServerErrorProblemDetails", (i) => H.isAxiosError(i) && ue(i, 500)), q(cn, "isServiceUnavailableProblemDetails", (i) => H.isAxiosError(i) && ue(i, 503)), cn)), q(ft, "ConversationsConversationsPost", (jt = class {
19434
+ }, q(jt, "isBadRequestProblemDetails", (i) => H.isAxiosError(i) && ue(i, 400)), q(jt, "isNotFoundProblemDetails", (i) => H.isAxiosError(i) && ue(i, 404)), q(jt, "isInternalServerErrorProblemDetails", (i) => H.isAxiosError(i) && ue(i, 500)), q(jt, "isServiceUnavailableProblemDetails", (i) => H.isAxiosError(i) && ue(i, 503)), jt)), q(ft, "ConversationsConversationsRatePost", (Ut = class {
19435
+ }, q(Ut, "isBadRequestProblemDetails", (i) => H.isAxiosError(i) && ue(i, 400)), q(Ut, "isNotFoundProblemDetails", (i) => H.isAxiosError(i) && ue(i, 404)), q(Ut, "isInternalServerErrorProblemDetails", (i) => H.isAxiosError(i) && ue(i, 500)), q(Ut, "isServiceUnavailableProblemDetails", (i) => H.isAxiosError(i) && ue(i, 503)), Ut)), q(ft, "ConversationsConversationsMessagesRatePost", (Ht = class {
19436
+ }, q(Ht, "isBadRequestProblemDetails", (i) => H.isAxiosError(i) && ue(i, 400)), q(Ht, "isNotFoundProblemDetails", (i) => H.isAxiosError(i) && ue(i, 404)), q(Ht, "isInternalServerErrorProblemDetails", (i) => H.isAxiosError(i) && ue(i, 500)), q(Ht, "isServiceUnavailableProblemDetails", (i) => H.isAxiosError(i) && ue(i, 503)), Ht)), q(ft, "ConversationsWebhookPost", (Zn = class {
19404
19437
  }, q(Zn, "isBadRequestProblemDetails", (i) => H.isAxiosError(i) && ue(i, 400)), q(Zn, "isUnauthorizedProblemDetails", (i) => H.isAxiosError(i) && ue(i, 401)), Zn));
19405
19438
  const Be = class Be extends mc {
19406
19439
  constructor() {
@@ -19501,7 +19534,7 @@ q(Be, "Endpoints", {
19501
19534
  conversationsConversationsMessagesRatePost: ({ id: e, messageId: t }) => `/api/conversations/Conversations/${e}/messages/${t}/rate`,
19502
19535
  conversationsWebhookPost: "/api/conversations/Webhook"
19503
19536
  }), /** ConversationsService API static errors typeguards */
19504
- q(Be, "Errors", ht);
19537
+ q(Be, "Errors", ft);
19505
19538
  let ea = Be;
19506
19539
  const $g = {
19507
19540
  fallbackLng: "fr",
@@ -19525,9 +19558,9 @@ var Bg = Object.defineProperty, jg = Object.getOwnPropertyDescriptor, vc = (n) =
19525
19558
  (o = n[a]) && (r = (t ? o(i, e, r) : o(r)) || r);
19526
19559
  return t && r && Bg(i, e, r), r;
19527
19560
  }, gc = (n, i, e) => i.has(n) || vc("Cannot " + e), Dt = (n, i, e) => (gc(n, i, "read from private field"), e ? e.call(n) : i.get(n)), $t = (n, i, e) => i.has(n) ? vc("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(n) : i.set(n, e), Bt = (n, i, e, t) => (gc(n, i, "write to private field"), i.set(n, e), e), lr, cr, ur, dr, pr, hr;
19528
- let Xe = class extends Ze {
19561
+ let Xe = class extends Ye {
19529
19562
  constructor() {
19530
- super(...arguments), this._chatElementRef = null, $t(this, lr, ""), $t(this, cr, !1), $t(this, ur, !1), $t(this, dr, !1), $t(this, pr, typeof window < "u" ? kv(window.location.hostname) : "fr"), $t(this, hr, typeof window < "u" ? bv({ country: this.country, cookies: document.cookie }) : "fr-FR");
19563
+ super(...arguments), this._chatElementRef = null, $t(this, lr, ""), $t(this, cr, !1), $t(this, ur, !1), $t(this, dr, !1), $t(this, pr, typeof window < "u" ? wv(window.location.hostname) : "fr"), $t(this, hr, typeof window < "u" ? bv({ country: this.country, cookies: document.cookie }) : "fr-FR");
19531
19564
  }
19532
19565
  get apiUrl() {
19533
19566
  return Dt(this, lr);
@@ -19566,7 +19599,7 @@ let Xe = class extends Ze {
19566
19599
  Bt(this, hr, n);
19567
19600
  }
19568
19601
  static getVersion() {
19569
- return "LR Chatbot - 0.8.0";
19602
+ return "LR Chatbot - 0.9.0";
19570
19603
  }
19571
19604
  async performUpdate() {
19572
19605
  return await this.initTranslations(), super.performUpdate();
@@ -19605,8 +19638,8 @@ let Xe = class extends Ze {
19605
19638
  }
19606
19639
  setChatStyle() {
19607
19640
  const n = this._chatElementRef;
19608
- n.avatars = pt.avatars, n.chatStyle = pt.chatStyle, n.messageStyles = pt.messageStyles, n.textInput = pt.textInput, n.submitButtonStyles = pt.submitButtonStyles, n.inputAreaStyle = pt.inputAreaStyle, n.htmlClassUtilities = {
19609
- ...pt.htmlClassUtilities,
19641
+ n.avatars = ht.avatars, n.chatStyle = ht.chatStyle, n.messageStyles = ht.messageStyles, n.textInput = ht.textInput, n.submitButtonStyles = ht.submitButtonStyles, n.inputAreaStyle = ht.inputAreaStyle, n.htmlClassUtilities = {
19642
+ ...ht.htmlClassUtilities,
19610
19643
  test: {
19611
19644
  events: {
19612
19645
  click: (i) => {
@@ -19667,7 +19700,7 @@ let Xe = class extends Ze {
19667
19700
  this.minimized = !1, this.opened = !0;
19668
19701
  }
19669
19702
  render() {
19670
- return wr` <div
19703
+ return kr` <div
19671
19704
  id="chat-wrapper"
19672
19705
  aria-hidden=${!this.opened}
19673
19706
  data-opened="${this.opened}"
@@ -19731,7 +19764,7 @@ let Xe = class extends Ze {
19731
19764
  <deep-chat id="chat-element" part="chat-element"></deep-chat>
19732
19765
  </div>
19733
19766
  </div>
19734
- ${this.minimized ? wr`
19767
+ ${this.minimized ? kr`
19735
19768
  <div
19736
19769
  id="chat-minimized"
19737
19770
  @click=${this.open}
@@ -19767,7 +19800,7 @@ ur = /* @__PURE__ */ new WeakMap();
19767
19800
  dr = /* @__PURE__ */ new WeakMap();
19768
19801
  pr = /* @__PURE__ */ new WeakMap();
19769
19802
  hr = /* @__PURE__ */ new WeakMap();
19770
- Xe.styles = [Ze.styles, Cm];
19803
+ Xe.styles = [Ye.styles, Cm];
19771
19804
  Ot([
19772
19805
  se({ type: String })
19773
19806
  ], Xe.prototype, "apiUrl", 1);