@enegelai/bot-widget 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- var Ta = Object.defineProperty;
2
- var $a = (a, t, c) => t in a ? Ta(a, t, { enumerable: !0, configurable: !0, writable: !0, value: c }) : a[t] = c;
1
+ var Aa = Object.defineProperty;
2
+ var $a = (a, t, c) => t in a ? Aa(a, t, { enumerable: !0, configurable: !0, writable: !0, value: c }) : a[t] = c;
3
3
  var oe = (a, t, c) => ($a(a, typeof t != "symbol" ? t + "" : t, c), c);
4
- import { css as U, LitElement as dt, html as y, svg as ze } from "lit";
4
+ import { css as U, LitElement as dt, html as y, svg as He } from "lit";
5
5
  import { property as C, customElement as Y, queryAll as Wt, query as Re, eventOptions as kt } from "lit/decorators.js";
6
6
  import { unsafeHTML as de } from "lit-html/directives/unsafe-html.js";
7
7
  import { when as fe } from "lit/directives/when.js";
@@ -26,7 +26,7 @@ import "@shoelace-style/shoelace/dist/components/tooltip/tooltip.js";
26
26
  import "@shoelace-style/shoelace/dist/components/spinner/spinner.js";
27
27
  import "@shoelace-style/shoelace/dist/components/alert/alert.js";
28
28
  import { repeat as Je } from "lit/directives/repeat.js";
29
- import { until as zt } from "lit-html/directives/until.js";
29
+ import { until as Ht } from "lit-html/directives/until.js";
30
30
  import Ia from "markdown-it";
31
31
  import La from "markdown-it-link-attributes";
32
32
  import pt from "highlight.js";
@@ -50,7 +50,7 @@ const rt = class rt extends Event {
50
50
  }
51
51
  };
52
52
  oe(rt, "eventName", "lit-state-changed");
53
- let Te = rt;
53
+ let Ae = rt;
54
54
  const ja = (a, t) => t !== a && (t === t || a === a);
55
55
  class Ke extends EventTarget {
56
56
  constructor() {
@@ -120,10 +120,10 @@ class Ke extends EventTarget {
120
120
  const d = (l) => {
121
121
  (!i || i.includes(l.key)) && c(l.key, l.value, this);
122
122
  };
123
- return this.addEventListener(Te.eventName, d, n), () => this.removeEventListener(Te.eventName, d);
123
+ return this.addEventListener(Ae.eventName, d, n), () => this.removeEventListener(Ae.eventName, d);
124
124
  }
125
125
  dispatchStateEvent(c, i, n) {
126
- this.dispatchEvent(new Te(c, i, n));
126
+ this.dispatchEvent(new Ae(c, i, n));
127
127
  }
128
128
  }
129
129
  // a map holding decorators definition.
@@ -136,10 +136,10 @@ class Xt {
136
136
  this.host = t, this.state = c, this.host.addController(this), this.callback = i || (() => this.host.requestUpdate());
137
137
  }
138
138
  hostConnected() {
139
- this.state.addEventListener(Te.eventName, this.callback), this.callback();
139
+ this.state.addEventListener(Ae.eventName, this.callback), this.callback();
140
140
  }
141
141
  hostDisconnected() {
142
- this.state.removeEventListener(Te.eventName, this.callback);
142
+ this.state.removeEventListener(Ae.eventName, this.callback);
143
143
  }
144
144
  }
145
145
  /**
@@ -222,44 +222,44 @@ var Kt = { exports: {} };
222
222
  "warn",
223
223
  "error"
224
224
  ];
225
- function d(A, H) {
226
- var R = A[H];
225
+ function d(T, z) {
226
+ var R = T[z];
227
227
  if (typeof R.bind == "function")
228
- return R.bind(A);
228
+ return R.bind(T);
229
229
  try {
230
- return Function.prototype.bind.call(R, A);
230
+ return Function.prototype.bind.call(R, T);
231
231
  } catch {
232
232
  return function() {
233
- return Function.prototype.apply.apply(R, [A, arguments]);
233
+ return Function.prototype.apply.apply(R, [T, arguments]);
234
234
  };
235
235
  }
236
236
  }
237
237
  function l() {
238
238
  console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
239
239
  }
240
- function v(A) {
241
- return A === "debug" && (A = "log"), typeof console === c ? !1 : A === "trace" && i ? l : console[A] !== void 0 ? d(console, A) : console.log !== void 0 ? d(console, "log") : t;
240
+ function v(T) {
241
+ return T === "debug" && (T = "log"), typeof console === c ? !1 : T === "trace" && i ? l : console[T] !== void 0 ? d(console, T) : console.log !== void 0 ? d(console, "log") : t;
242
242
  }
243
- function S(A, H) {
243
+ function S(T, z) {
244
244
  for (var R = 0; R < n.length; R++) {
245
245
  var $ = n[R];
246
- this[$] = R < A ? t : this.methodFactory($, A, H);
246
+ this[$] = R < T ? t : this.methodFactory($, T, z);
247
247
  }
248
248
  this.log = this.debug;
249
249
  }
250
- function D(A, H, R) {
250
+ function D(T, z, R) {
251
251
  return function() {
252
- typeof console !== c && (S.call(this, H, R), this[A].apply(this, arguments));
252
+ typeof console !== c && (S.call(this, z, R), this[T].apply(this, arguments));
253
253
  };
254
254
  }
255
- function L(A, H, R) {
256
- return v(A) || D.apply(this, arguments);
255
+ function L(T, z, R) {
256
+ return v(T) || D.apply(this, arguments);
257
257
  }
258
- function M(A, H, R) {
258
+ function E(T, z, R) {
259
259
  var $ = this, he;
260
- H = H ?? "WARN";
260
+ z = z ?? "WARN";
261
261
  var ee = "loglevel";
262
- typeof A == "string" ? ee += ":" + A : typeof A == "symbol" && (ee = void 0);
262
+ typeof T == "string" ? ee += ":" + T : typeof T == "symbol" && (ee = void 0);
263
263
  function bt(w) {
264
264
  var ie = (n[w] || "silent").toUpperCase();
265
265
  if (!(typeof window === c || !ee)) {
@@ -305,7 +305,7 @@ var Kt = { exports: {} };
305
305
  }
306
306
  }
307
307
  }
308
- $.name = A, $.levels = {
308
+ $.name = T, $.levels = {
309
309
  TRACE: 0,
310
310
  DEBUG: 1,
311
311
  INFO: 2,
@@ -316,43 +316,43 @@ var Kt = { exports: {} };
316
316
  return he;
317
317
  }, $.setLevel = function(w, ie) {
318
318
  if (typeof w == "string" && $.levels[w.toUpperCase()] !== void 0 && (w = $.levels[w.toUpperCase()]), typeof w == "number" && w >= 0 && w <= $.levels.SILENT) {
319
- if (he = w, ie !== !1 && bt(w), S.call($, w, A), typeof console === c && w < $.levels.SILENT)
319
+ if (he = w, ie !== !1 && bt(w), S.call($, w, T), typeof console === c && w < $.levels.SILENT)
320
320
  return "No console available for logging";
321
321
  } else
322
322
  throw "log.setLevel() called with invalid level: " + w;
323
323
  }, $.setDefaultLevel = function(w) {
324
- H = w, Ie() || $.setLevel(w, !1);
324
+ z = w, Ie() || $.setLevel(w, !1);
325
325
  }, $.resetLevel = function() {
326
- $.setLevel(H, !1), Fe();
326
+ $.setLevel(z, !1), Fe();
327
327
  }, $.enableAll = function(w) {
328
328
  $.setLevel($.levels.TRACE, w);
329
329
  }, $.disableAll = function(w) {
330
330
  $.setLevel($.levels.SILENT, w);
331
331
  };
332
332
  var Se = Ie();
333
- Se == null && (Se = H), $.setLevel(Se, !1);
333
+ Se == null && (Se = z), $.setLevel(Se, !1);
334
334
  }
335
- var T = new M(), F = {};
336
- T.getLogger = function(H) {
337
- if (typeof H != "symbol" && typeof H != "string" || H === "")
335
+ var A = new E(), F = {};
336
+ A.getLogger = function(z) {
337
+ if (typeof z != "symbol" && typeof z != "string" || z === "")
338
338
  throw new TypeError("You must supply a name when creating a logger.");
339
- var R = F[H];
340
- return R || (R = F[H] = new M(
341
- H,
342
- T.getLevel(),
343
- T.methodFactory
339
+ var R = F[z];
340
+ return R || (R = F[z] = new E(
341
+ z,
342
+ A.getLevel(),
343
+ A.methodFactory
344
344
  )), R;
345
345
  };
346
346
  var ce = typeof window !== c ? window.log : void 0;
347
- return T.noConflict = function() {
348
- return typeof window !== c && window.log === T && (window.log = ce), T;
349
- }, T.getLoggers = function() {
347
+ return A.noConflict = function() {
348
+ return typeof window !== c && window.log === A && (window.log = ce), A;
349
+ }, A.getLoggers = function() {
350
350
  return F;
351
- }, T.default = T, T;
351
+ }, A.default = A, A;
352
352
  });
353
353
  })(Kt);
354
- var Ha = Kt.exports;
355
- const ft = /* @__PURE__ */ Jt(Ha), za = U`
354
+ var za = Kt.exports;
355
+ const ft = /* @__PURE__ */ Jt(za), Ha = U`
356
356
  :host {
357
357
  }
358
358
  .cb-wrapper {
@@ -695,7 +695,7 @@ class Wa {
695
695
  function V(a) {
696
696
  return a != null && typeof a == "object" && a["@@functional/placeholder"] === !0;
697
697
  }
698
- function Ae(a) {
698
+ function Te(a) {
699
699
  return function t(c) {
700
700
  return arguments.length === 0 || V(c) ? t : a.apply(this, arguments);
701
701
  };
@@ -706,13 +706,13 @@ function ue(a) {
706
706
  case 0:
707
707
  return t;
708
708
  case 1:
709
- return V(c) ? t : Ae(function(n) {
709
+ return V(c) ? t : Te(function(n) {
710
710
  return a(c, n);
711
711
  });
712
712
  default:
713
- return V(c) && V(i) ? t : V(c) ? Ae(function(n) {
713
+ return V(c) && V(i) ? t : V(c) ? Te(function(n) {
714
714
  return a(n, i);
715
- }) : V(i) ? Ae(function(n) {
715
+ }) : V(i) ? Te(function(n) {
716
716
  return a(c, n);
717
717
  }) : a(c, i);
718
718
  }
@@ -732,7 +732,7 @@ function Ya(a) {
732
732
  return a(d, i, l);
733
733
  }) : V(i) ? ue(function(d, l) {
734
734
  return a(c, d, l);
735
- }) : Ae(function(d) {
735
+ }) : Te(function(d) {
736
736
  return a(c, i, d);
737
737
  });
738
738
  default:
@@ -742,11 +742,11 @@ function Ya(a) {
742
742
  return a(d, i, l);
743
743
  }) : V(i) && V(n) ? ue(function(d, l) {
744
744
  return a(c, d, l);
745
- }) : V(c) ? Ae(function(d) {
745
+ }) : V(c) ? Te(function(d) {
746
746
  return a(d, i, n);
747
- }) : V(i) ? Ae(function(d) {
747
+ }) : V(i) ? Te(function(d) {
748
748
  return a(c, d, n);
749
- }) : V(n) ? Ae(function(d) {
749
+ }) : V(n) ? Te(function(d) {
750
750
  return a(c, i, d);
751
751
  }) : a(c, i, n);
752
752
  }
@@ -843,7 +843,16 @@ class W extends Ke {
843
843
  }
844
844
  this.connectWs === "true" && (B.info("appState: connectWs is true"), this.getWsClient().catch((t) => {
845
845
  B.error(`Exception during ws client startup: ${t.message}`);
846
- }));
846
+ })), setTimeout(() => {
847
+ window.dispatchEvent(
848
+ new CustomEvent("c7o:bot:stateEvent", {
849
+ detail: {
850
+ type: "botInitialized",
851
+ botSettings: JSON.parse(JSON.stringify(this.botSettings))
852
+ }
853
+ })
854
+ );
855
+ }, 1e3);
847
856
  }
848
857
  initConversation() {
849
858
  if (Date.now() - this.lastConversationUpdate > 24 * 60 * 60 * 1e3) {
@@ -1636,8 +1645,8 @@ var ta = { exports: {} };
1636
1645
  return r;
1637
1646
  }
1638
1647
  function S(r, e) {
1639
- if ((te(r) || r === window || r === document) && (r = [r]), Et(r) || Le(r) || (r = [r]), At(r) != 0) {
1640
- if (Et(r) && !Le(r))
1648
+ if ((te(r) || r === window || r === document) && (r = [r]), Mt(r) || Le(r) || (r = [r]), Tt(r) != 0) {
1649
+ if (Mt(r) && !Le(r))
1641
1650
  for (var o = r.length, s = 0; s < o && e.call(r[s], r[s], s, r) !== !1; s++)
1642
1651
  ;
1643
1652
  else if (Le(r)) {
@@ -1649,32 +1658,32 @@ var ta = { exports: {} };
1649
1658
  }
1650
1659
  function D(r) {
1651
1660
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, s = r[l] = r[l] || [], f = { all: s, evt: null, found: null };
1652
- return e && o && At(s) > 0 && S(s, function(b, h) {
1661
+ return e && o && Tt(s) > 0 && S(s, function(b, h) {
1653
1662
  if (b.eventName == e && b.fn.toString() == o.toString())
1654
1663
  return f.found = !0, f.evt = h, !1;
1655
1664
  }), f;
1656
1665
  }
1657
1666
  function L(r) {
1658
1667
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = e.onElement, s = e.withCallback, f = e.avoidDuplicate, b = f === void 0 || f, h = e.once, u = h !== void 0 && h, p = e.useCapture, k = p !== void 0 && p, g = arguments.length > 2 ? arguments[2] : void 0, m = o || [];
1659
- function E(_) {
1660
- w(s) && s.call(g, _, this), u && E.destroy();
1668
+ function M(_) {
1669
+ w(s) && s.call(g, _, this), u && M.destroy();
1661
1670
  }
1662
- return ie(m) && (m = document.querySelectorAll(m)), E.destroy = function() {
1671
+ return ie(m) && (m = document.querySelectorAll(m)), M.destroy = function() {
1663
1672
  S(m, function(_) {
1664
- var j = D(_, r, E);
1665
- j.found && j.all.splice(j.evt, 1), _.removeEventListener && _.removeEventListener(r, E, k);
1673
+ var j = D(_, r, M);
1674
+ j.found && j.all.splice(j.evt, 1), _.removeEventListener && _.removeEventListener(r, M, k);
1666
1675
  });
1667
1676
  }, S(m, function(_) {
1668
- var j = D(_, r, E);
1669
- (_.addEventListener && b && !j.found || !b) && (_.addEventListener(r, E, k), j.all.push({ eventName: r, fn: E }));
1670
- }), E;
1677
+ var j = D(_, r, M);
1678
+ (_.addEventListener && b && !j.found || !b) && (_.addEventListener(r, M, k), j.all.push({ eventName: r, fn: M }));
1679
+ }), M;
1671
1680
  }
1672
- function M(r, e) {
1681
+ function E(r, e) {
1673
1682
  S(e.split(" "), function(o) {
1674
1683
  return r.classList.add(o);
1675
1684
  });
1676
1685
  }
1677
- function T(r, e) {
1686
+ function A(r, e) {
1678
1687
  S(e.split(" "), function(o) {
1679
1688
  return r.classList.remove(o);
1680
1689
  });
@@ -1690,7 +1699,7 @@ var ta = { exports: {} };
1690
1699
  return r;
1691
1700
  }
1692
1701
  }
1693
- function A(r) {
1702
+ function T(r) {
1694
1703
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
1695
1704
  if (!r || e === "")
1696
1705
  return !1;
@@ -1698,14 +1707,14 @@ var ta = { exports: {} };
1698
1707
  return w(o) && o(), !1;
1699
1708
  var s = bt(), f = e.split(" ");
1700
1709
  S(f, function(b) {
1701
- M(r, "g" + b);
1710
+ E(r, "g" + b);
1702
1711
  }), L(s, { onElement: r, avoidDuplicate: !1, once: !0, withCallback: function(b, h) {
1703
1712
  S(f, function(u) {
1704
- T(h, "g" + u);
1713
+ A(h, "g" + u);
1705
1714
  }), w(o) && o();
1706
1715
  } });
1707
1716
  }
1708
- function H(r) {
1717
+ function z(r) {
1709
1718
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
1710
1719
  if (e === "")
1711
1720
  return r.style.webkitTransform = "", r.style.MozTransform = "", r.style.msTransform = "", r.style.OTransform = "", r.style.transform = "", !1;
@@ -1800,7 +1809,7 @@ var ta = { exports: {} };
1800
1809
  function Ne(r) {
1801
1810
  return Array.isArray(r);
1802
1811
  }
1803
- function Et(r) {
1812
+ function Mt(r) {
1804
1813
  return r && r.length && isFinite(r.length);
1805
1814
  }
1806
1815
  function Le(r) {
@@ -1812,7 +1821,7 @@ var ta = { exports: {} };
1812
1821
  function N(r, e) {
1813
1822
  return r !== null && hasOwnProperty.call(r, e);
1814
1823
  }
1815
- function At(r) {
1824
+ function Tt(r) {
1816
1825
  if (Le(r)) {
1817
1826
  if (r.keys)
1818
1827
  return r.keys().length;
@@ -1826,7 +1835,7 @@ var ta = { exports: {} };
1826
1835
  function Ue(r) {
1827
1836
  return !isNaN(parseFloat(r)) && isFinite(r);
1828
1837
  }
1829
- function Tt() {
1838
+ function At() {
1830
1839
  var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1, e = document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");
1831
1840
  if (!e.length)
1832
1841
  return !1;
@@ -1863,11 +1872,11 @@ var ta = { exports: {} };
1863
1872
  if (!h || h.length <= 0)
1864
1873
  return;
1865
1874
  if (!f) {
1866
- var u = Tt();
1867
- return void (u && (u.focus(), M(u, "focused")));
1875
+ var u = At();
1876
+ return void (u && (u.focus(), E(u, "focused")));
1868
1877
  }
1869
- var p = Tt(f.getAttribute("data-taborder"));
1870
- T(f, "focused"), p && (p.focus(), M(p, "focused"));
1878
+ var p = At(f.getAttribute("data-taborder"));
1879
+ A(f, "focused"), p && (p.focus(), E(p, "focused"));
1871
1880
  }
1872
1881
  s == 39 && r.nextSlide(), s == 37 && r.prevSlide(), s == 27 && r.close();
1873
1882
  } });
@@ -1987,39 +1996,39 @@ var ta = { exports: {} };
1987
1996
  if (u.style[h] !== void 0)
1988
1997
  return p[h];
1989
1998
  }(), o = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, s = F(r, "gslide-media") ? r : r.querySelector(".gslide-media"), f = ce(s, ".ginner-container"), b = r.querySelector(".gslide-description");
1990
- o > 769 && (s = f), M(s, "greset"), H(s, "translate3d(0, 0, 0)"), L(e, { onElement: s, once: !0, withCallback: function(h, u) {
1991
- T(s, "greset");
1999
+ o > 769 && (s = f), E(s, "greset"), z(s, "translate3d(0, 0, 0)"), L(e, { onElement: s, once: !0, withCallback: function(h, u) {
2000
+ A(s, "greset");
1992
2001
  } }), s.style.opacity = "", b && (b.style.opacity = "");
1993
2002
  }
1994
2003
  function pa(r) {
1995
2004
  if (r.events.hasOwnProperty("touch"))
1996
2005
  return !1;
1997
- var e, o, s, f = ee(), b = f.width, h = f.height, u = !1, p = null, k = null, g = null, m = !1, E = 1, _ = 1, j = !1, z = !1, I = null, re = null, ae = null, we = null, xe = 0, _e = 0, je = !1, ut = !1, Me = {}, Ee = {}, Pt = 0, Ht = 0, Sa = document.getElementById("glightbox-slider"), Xe = document.querySelector(".goverlay"), _a = new ua(Sa, { touchStart: function(O) {
2006
+ var e, o, s, f = ee(), b = f.width, h = f.height, u = !1, p = null, k = null, g = null, m = !1, M = 1, _ = 1, j = !1, H = !1, I = null, re = null, ae = null, we = null, xe = 0, _e = 0, je = !1, ut = !1, Ee = {}, Me = {}, Pt = 0, zt = 0, Sa = document.getElementById("glightbox-slider"), Xe = document.querySelector(".goverlay"), _a = new ua(Sa, { touchStart: function(O) {
1998
2007
  if (u = !0, (F(O.targetTouches[0].target, "ginner-container") || ce(O.targetTouches[0].target, ".gslide-desc") || O.targetTouches[0].target.nodeName.toLowerCase() == "a") && (u = !1), ce(O.targetTouches[0].target, ".gslide-inline") && !F(O.targetTouches[0].target.parentNode, "gslide-inline") && (u = !1), u) {
1999
- if (Ee = O.targetTouches[0], Me.pageX = O.targetTouches[0].pageX, Me.pageY = O.targetTouches[0].pageY, Pt = O.targetTouches[0].clientX, Ht = O.targetTouches[0].clientY, p = r.activeSlide, k = p.querySelector(".gslide-media"), s = p.querySelector(".gslide-inline"), g = null, F(k, "gslide-image") && (g = k.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (k = p.querySelector(".ginner-container")), T(Xe, "greset"), O.pageX > 20 && O.pageX < window.innerWidth - 20)
2008
+ if (Me = O.targetTouches[0], Ee.pageX = O.targetTouches[0].pageX, Ee.pageY = O.targetTouches[0].pageY, Pt = O.targetTouches[0].clientX, zt = O.targetTouches[0].clientY, p = r.activeSlide, k = p.querySelector(".gslide-media"), s = p.querySelector(".gslide-inline"), g = null, F(k, "gslide-image") && (g = k.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (k = p.querySelector(".ginner-container")), A(Xe, "greset"), O.pageX > 20 && O.pageX < window.innerWidth - 20)
2000
2009
  return;
2001
2010
  O.preventDefault();
2002
2011
  }
2003
2012
  }, touchMove: function(O) {
2004
- if (u && (Ee = O.targetTouches[0], !j && !z)) {
2013
+ if (u && (Me = O.targetTouches[0], !j && !H)) {
2005
2014
  if (s && s.offsetHeight > h) {
2006
- var K = Me.pageX - Ee.pageX;
2015
+ var K = Ee.pageX - Me.pageX;
2007
2016
  if (Math.abs(K) <= 13)
2008
2017
  return !1;
2009
2018
  }
2010
2019
  m = !0;
2011
- var ke, Ze = O.targetTouches[0].clientX, Ma = O.targetTouches[0].clientY, Ea = Pt - Ze, Aa = Ht - Ma;
2012
- if (Math.abs(Ea) > Math.abs(Aa) ? (je = !1, ut = !0) : (ut = !1, je = !0), e = Ee.pageX - Me.pageX, xe = 100 * e / b, o = Ee.pageY - Me.pageY, _e = 100 * o / h, je && g && (ke = 1 - Math.abs(o) / h, Xe.style.opacity = ke, r.settings.touchFollowAxis && (xe = 0)), ut && (ke = 1 - Math.abs(e) / b, k.style.opacity = ke, r.settings.touchFollowAxis && (_e = 0)), !g)
2013
- return H(k, "translate3d(".concat(xe, "%, 0, 0)"));
2014
- H(k, "translate3d(".concat(xe, "%, ").concat(_e, "%, 0)"));
2020
+ var ke, Ze = O.targetTouches[0].clientX, Ea = O.targetTouches[0].clientY, Ma = Pt - Ze, Ta = zt - Ea;
2021
+ if (Math.abs(Ma) > Math.abs(Ta) ? (je = !1, ut = !0) : (ut = !1, je = !0), e = Me.pageX - Ee.pageX, xe = 100 * e / b, o = Me.pageY - Ee.pageY, _e = 100 * o / h, je && g && (ke = 1 - Math.abs(o) / h, Xe.style.opacity = ke, r.settings.touchFollowAxis && (xe = 0)), ut && (ke = 1 - Math.abs(e) / b, k.style.opacity = ke, r.settings.touchFollowAxis && (_e = 0)), !g)
2022
+ return z(k, "translate3d(".concat(xe, "%, 0, 0)"));
2023
+ z(k, "translate3d(".concat(xe, "%, ").concat(_e, "%, 0)"));
2015
2024
  }
2016
2025
  }, touchEnd: function() {
2017
2026
  if (u) {
2018
- if (m = !1, z || j)
2027
+ if (m = !1, H || j)
2019
2028
  return ae = I, void (we = re);
2020
2029
  var O = Math.abs(parseInt(_e)), K = Math.abs(parseInt(xe));
2021
2030
  if (!(O > 29 && g))
2022
- return O < 29 && K < 25 ? (M(Xe, "greset"), Xe.style.opacity = 1, ht(k)) : void 0;
2031
+ return O < 29 && K < 25 ? (E(Xe, "greset"), Xe.style.opacity = 1, ht(k)) : void 0;
2023
2032
  r.close();
2024
2033
  }
2025
2034
  }, multipointEnd: function() {
@@ -2027,24 +2036,24 @@ var ta = { exports: {} };
2027
2036
  j = !1;
2028
2037
  }, 50);
2029
2038
  }, multipointStart: function() {
2030
- j = !0, E = _ || 1;
2039
+ j = !0, M = _ || 1;
2031
2040
  }, pinch: function(O) {
2032
2041
  if (!g || m)
2033
2042
  return !1;
2034
- j = !0, g.scaleX = g.scaleY = E * O.zoom;
2035
- var K = E * O.zoom;
2036
- if (z = !0, K <= 1)
2037
- return z = !1, K = 1, we = null, ae = null, I = null, re = null, void g.setAttribute("style", "");
2043
+ j = !0, g.scaleX = g.scaleY = M * O.zoom;
2044
+ var K = M * O.zoom;
2045
+ if (H = !0, K <= 1)
2046
+ return H = !1, K = 1, we = null, ae = null, I = null, re = null, void g.setAttribute("style", "");
2038
2047
  K > 4.5 && (K = 4.5), g.style.transform = "scale3d(".concat(K, ", ").concat(K, ", 1)"), _ = K;
2039
2048
  }, pressMove: function(O) {
2040
- if (z && !j) {
2041
- var K = Ee.pageX - Me.pageX, ke = Ee.pageY - Me.pageY;
2049
+ if (H && !j) {
2050
+ var K = Me.pageX - Ee.pageX, ke = Me.pageY - Ee.pageY;
2042
2051
  ae && (K += ae), we && (ke += we), I = K, re = ke;
2043
2052
  var Ze = "translate3d(".concat(K, "px, ").concat(ke, "px, 0)");
2044
- _ && (Ze += " scale3d(".concat(_, ", ").concat(_, ", 1)")), H(g, Ze);
2053
+ _ && (Ze += " scale3d(".concat(_, ", ").concat(_, ", 1)")), z(g, Ze);
2045
2054
  }
2046
2055
  }, swipe: function(O) {
2047
- if (!z)
2056
+ if (!H)
2048
2057
  if (j)
2049
2058
  j = !1;
2050
2059
  else {
@@ -2113,12 +2122,12 @@ var ta = { exports: {} };
2113
2122
  var e = this, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2114
2123
  i(this, r);
2115
2124
  var s = o.dragEl, f = o.toleranceX, b = f === void 0 ? 40 : f, h = o.toleranceY, u = h === void 0 ? 65 : h, p = o.slide, k = p === void 0 ? null : p, g = o.instance, m = g === void 0 ? null : g;
2116
- this.el = s, this.active = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.direction = null, this.lastDirection = null, this.toleranceX = b, this.toleranceY = u, this.toleranceReached = !1, this.dragContainer = this.el, this.slide = k, this.instance = m, this.el.addEventListener("mousedown", function(E) {
2117
- return e.dragStart(E);
2118
- }, !1), this.el.addEventListener("mouseup", function(E) {
2119
- return e.dragEnd(E);
2120
- }, !1), this.el.addEventListener("mousemove", function(E) {
2121
- return e.drag(E);
2125
+ this.el = s, this.active = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.direction = null, this.lastDirection = null, this.toleranceX = b, this.toleranceY = u, this.toleranceReached = !1, this.dragContainer = this.el, this.slide = k, this.instance = m, this.el.addEventListener("mousedown", function(M) {
2126
+ return e.dragStart(M);
2127
+ }, !1), this.el.addEventListener("mouseup", function(M) {
2128
+ return e.dragEnd(M);
2129
+ }, !1), this.el.addEventListener("mousemove", function(M) {
2130
+ return e.drag(M);
2122
2131
  }, !1);
2123
2132
  }
2124
2133
  return d(r, [{ key: "dragStart", value: function(e) {
@@ -2173,19 +2182,19 @@ var ta = { exports: {} };
2173
2182
  }
2174
2183
  function ya(r, e, o, s) {
2175
2184
  var f = this, b = r.querySelector(".ginner-container"), h = "gvideo" + o, u = r.querySelector(".gslide-media"), p = this.getAllPlayers();
2176
- M(b, "gvideo-container"), u.insertBefore(he('<div class="gvideo-wrapper"></div>'), u.firstChild);
2185
+ E(b, "gvideo-container"), u.insertBefore(he('<div class="gvideo-wrapper"></div>'), u.firstChild);
2177
2186
  var k = r.querySelector(".gvideo-wrapper");
2178
2187
  Fe(this.settings.plyr.css, "Plyr");
2179
- var g = e.href, m = e == null ? void 0 : e.videoProvider, E = !1;
2188
+ var g = e.href, m = e == null ? void 0 : e.videoProvider, M = !1;
2180
2189
  u.style.maxWidth = e.width, Fe(this.settings.plyr.js, "Plyr", function() {
2181
2190
  if (!m && g.match(/vimeo\.com\/([0-9]*)/) && (m = "vimeo"), !m && (g.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || g.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || g.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)) && (m = "youtube"), m === "local" || !m) {
2182
2191
  m = "local";
2183
2192
  var _ = '<video id="' + h + '" ';
2184
- _ += 'style="background:#000; max-width: '.concat(e.width, ';" '), _ += 'preload="metadata" ', _ += 'x-webkit-airplay="allow" ', _ += "playsinline ", _ += "controls ", _ += 'class="gvideo-local">', _ += '<source src="'.concat(g, '">'), E = he(_ += "</video>");
2193
+ _ += 'style="background:#000; max-width: '.concat(e.width, ';" '), _ += 'preload="metadata" ', _ += 'x-webkit-airplay="allow" ', _ += "playsinline ", _ += "controls ", _ += 'class="gvideo-local">', _ += '<source src="'.concat(g, '">'), M = he(_ += "</video>");
2185
2194
  }
2186
- var j = E || he('<div id="'.concat(h, '" data-plyr-provider="').concat(m, '" data-plyr-embed-id="').concat(g, '"></div>'));
2187
- M(k, "".concat(m, "-video gvideo")), k.appendChild(j), k.setAttribute("data-id", h), k.setAttribute("data-index", o);
2188
- var z = N(f.settings.plyr, "config") ? f.settings.plyr.config : {}, I = new Plyr("#" + h, z);
2195
+ var j = M || he('<div id="'.concat(h, '" data-plyr-provider="').concat(m, '" data-plyr-embed-id="').concat(g, '"></div>'));
2196
+ E(k, "".concat(m, "-video gvideo")), k.appendChild(j), k.setAttribute("data-id", h), k.setAttribute("data-index", o);
2197
+ var H = N(f.settings.plyr, "config") ? f.settings.plyr.config : {}, I = new Plyr("#" + h, H);
2189
2198
  I.on("ready", function(re) {
2190
2199
  p[h] = re.detail.plyr, w(s) && s();
2191
2200
  }), Ie(function() {
@@ -2197,7 +2206,7 @@ var ta = { exports: {} };
2197
2206
  }
2198
2207
  function It(r) {
2199
2208
  var e = ce(r.target, ".gslide-media");
2200
- r.type === "enterfullscreen" && M(e, "fullscreen"), r.type === "exitfullscreen" && T(e, "fullscreen");
2209
+ r.type === "enterfullscreen" && E(e, "fullscreen"), r.type === "exitfullscreen" && A(e, "fullscreen");
2201
2210
  }
2202
2211
  function va(r, e, o, s) {
2203
2212
  var f, b = this, h = r.querySelector(".gslide-media"), u = !(!N(e, "href") || !e.href) && e.href.split("#").pop().trim(), p = !(!N(e, "content") || !e.content) && e.content;
@@ -2211,19 +2220,19 @@ var ta = { exports: {} };
2211
2220
  if (!g)
2212
2221
  return !1;
2213
2222
  var m = g.cloneNode(!0);
2214
- m.style.height = e.height, m.style.maxWidth = e.width, M(m, "ginlined-content"), f = m;
2223
+ m.style.height = e.height, m.style.maxWidth = e.width, E(m, "ginlined-content"), f = m;
2215
2224
  }
2216
2225
  if (!f)
2217
2226
  return console.error("Unable to append inline slide content", e), !1;
2218
- h.style.height = e.height, h.style.width = e.width, h.appendChild(f), this.events["inlineclose" + u] = L("click", { onElement: h.querySelectorAll(".gtrigger-close"), withCallback: function(E) {
2219
- E.preventDefault(), b.close();
2227
+ h.style.height = e.height, h.style.width = e.width, h.appendChild(f), this.events["inlineclose" + u] = L("click", { onElement: h.querySelectorAll(".gtrigger-close"), withCallback: function(M) {
2228
+ M.preventDefault(), b.close();
2220
2229
  } }), w(s) && s();
2221
2230
  }
2222
2231
  function wa(r, e, o, s) {
2223
2232
  var f = r.querySelector(".gslide-media"), b = function(h) {
2224
2233
  var u = h.url, p = h.allow, k = h.callback, g = h.appendTo, m = document.createElement("iframe");
2225
2234
  return m.className = "vimeo-video gvideo", m.src = u, m.style.width = "100%", m.style.height = "100%", p && m.setAttribute("allow", p), m.onload = function() {
2226
- m.onload = null, M(m, "node-ready"), w(k) && k();
2235
+ m.onload = null, E(m, "node-ready"), w(k) && k();
2227
2236
  }, g && g.appendChild(m), m;
2228
2237
  }({ url: e.href, callback: s });
2229
2238
  f.parentNode.style.maxWidth = e.width, f.parentNode.style.height = e.height, f.appendChild(b);
@@ -2244,10 +2253,10 @@ var ta = { exports: {} };
2244
2253
  return this.setSize(b, o), b;
2245
2254
  }
2246
2255
  var h = "", u = e.getAttribute("data-glightbox"), p = e.nodeName.toLowerCase();
2247
- if (p === "a" && (h = e.href), p === "img" && (h = e.src, f.alt = e.alt), f.href = h, S(f, function(j, z) {
2248
- N(o, z) && z !== "width" && (f[z] = o[z]);
2249
- var I = e.dataset[z];
2250
- ne(I) || (f[z] = s.sanitizeValue(I));
2256
+ if (p === "a" && (h = e.href), p === "img" && (h = e.src, f.alt = e.alt), f.href = h, S(f, function(j, H) {
2257
+ N(o, H) && H !== "width" && (f[H] = o[H]);
2258
+ var I = e.dataset[H];
2259
+ ne(I) || (f[H] = s.sanitizeValue(I));
2251
2260
  }), f.content && (f.type = "inline"), !f.type && h && (f.type = this.sourceType(h)), ne(u)) {
2252
2261
  if (!f.title && p == "a") {
2253
2262
  var k = e.title;
@@ -2259,25 +2268,25 @@ var ta = { exports: {} };
2259
2268
  }
2260
2269
  } else {
2261
2270
  var m = [];
2262
- S(f, function(j, z) {
2263
- m.push(";\\s?" + z);
2264
- }), m = m.join("\\s?:|"), u.trim() !== "" && S(f, function(j, z) {
2265
- var I = u, re = new RegExp("s?" + z + "s?:s?(.*?)(" + m + "s?:|$)"), ae = I.match(re);
2271
+ S(f, function(j, H) {
2272
+ m.push(";\\s?" + H);
2273
+ }), m = m.join("\\s?:|"), u.trim() !== "" && S(f, function(j, H) {
2274
+ var I = u, re = new RegExp("s?" + H + "s?:s?(.*?)(" + m + "s?:|$)"), ae = I.match(re);
2266
2275
  if (ae && ae.length && ae[1]) {
2267
2276
  var we = ae[1].trim().replace(/;\s*$/, "");
2268
- f[z] = s.sanitizeValue(we);
2277
+ f[H] = s.sanitizeValue(we);
2269
2278
  }
2270
2279
  });
2271
2280
  }
2272
2281
  if (f.description && f.description.substring(0, 1) === ".") {
2273
- var E;
2282
+ var M;
2274
2283
  try {
2275
- E = document.querySelector(f.description).innerHTML;
2284
+ M = document.querySelector(f.description).innerHTML;
2276
2285
  } catch (j) {
2277
2286
  if (!(j instanceof DOMException))
2278
2287
  throw j;
2279
2288
  }
2280
- E && (f.description = E);
2289
+ M && (f.description = M);
2281
2290
  }
2282
2291
  if (!f.description) {
2283
2292
  var _ = e.querySelector(".glightbox-desc");
@@ -2302,14 +2311,14 @@ var ta = { exports: {} };
2302
2311
  return !1;
2303
2312
  var f = this.instance.settings, b = this.slideConfig, h = Se();
2304
2313
  w(f.beforeSlideLoad) && f.beforeSlideLoad({ index: this.index, slide: o, player: !1 });
2305
- var u = b.type, p = b.descPosition, k = o.querySelector(".gslide-media"), g = o.querySelector(".gslide-title"), m = o.querySelector(".gslide-desc"), E = o.querySelector(".gdesc-inner"), _ = s, j = "gSlideTitle_" + this.index, z = "gSlideDesc_" + this.index;
2314
+ var u = b.type, p = b.descPosition, k = o.querySelector(".gslide-media"), g = o.querySelector(".gslide-title"), m = o.querySelector(".gslide-desc"), M = o.querySelector(".gdesc-inner"), _ = s, j = "gSlideTitle_" + this.index, H = "gSlideDesc_" + this.index;
2306
2315
  if (w(f.afterSlideLoad) && (_ = function() {
2307
2316
  w(s) && s(), f.afterSlideLoad({ index: e.index, slide: o, player: e.instance.getSlidePlayerInstance(e.index) });
2308
- }), b.title == "" && b.description == "" ? E && E.parentNode.parentNode.removeChild(E.parentNode) : (g && b.title !== "" ? (g.id = j, g.innerHTML = b.title) : g.parentNode.removeChild(g), m && b.description !== "" ? (m.id = z, h && f.moreLength > 0 ? (b.smallDescription = this.slideShortDesc(b.description, f.moreLength, f.moreText), m.innerHTML = b.smallDescription, this.descriptionEvents(m, b)) : m.innerHTML = b.description) : m.parentNode.removeChild(m), M(k.parentNode, "desc-".concat(p)), M(E.parentNode, "description-".concat(p))), M(k, "gslide-".concat(u)), M(o, "loaded"), u !== "video") {
2317
+ }), b.title == "" && b.description == "" ? M && M.parentNode.parentNode.removeChild(M.parentNode) : (g && b.title !== "" ? (g.id = j, g.innerHTML = b.title) : g.parentNode.removeChild(g), m && b.description !== "" ? (m.id = H, h && f.moreLength > 0 ? (b.smallDescription = this.slideShortDesc(b.description, f.moreLength, f.moreText), m.innerHTML = b.smallDescription, this.descriptionEvents(m, b)) : m.innerHTML = b.description) : m.parentNode.removeChild(m), E(k.parentNode, "desc-".concat(p)), E(M.parentNode, "description-".concat(p))), E(k, "gslide-".concat(u)), E(o, "loaded"), u !== "video") {
2309
2318
  if (u !== "external")
2310
2319
  return u === "inline" ? (va.apply(this.instance, [o, b, this.index, _]), void (b.draggable && new $t({ dragEl: o.querySelector(".gslide-inline"), toleranceX: f.dragToleranceX, toleranceY: f.dragToleranceY, slide: o, instance: this.instance }))) : void (u !== "image" ? w(_) && _() : ma(o, b, this.index, function() {
2311
2320
  var I = o.querySelector("img");
2312
- b.draggable && new $t({ dragEl: I, toleranceX: f.dragToleranceX, toleranceY: f.dragToleranceY, slide: o, instance: e.instance }), b.zoomable && I.naturalWidth > I.offsetWidth && (M(I, "zoomable"), new ga(I, o, function() {
2321
+ b.draggable && new $t({ dragEl: I, toleranceX: f.dragToleranceX, toleranceY: f.dragToleranceY, slide: o, instance: e.instance }), b.zoomable && I.naturalWidth > I.offsetWidth && (E(I, "zoomable"), new ga(I, o, function() {
2313
2322
  e.instance.resize();
2314
2323
  })), w(_) && _();
2315
2324
  }));
@@ -2333,10 +2342,10 @@ var ta = { exports: {} };
2333
2342
  var u = document.body, p = ce(h, ".gslide-desc");
2334
2343
  if (!p)
2335
2344
  return !1;
2336
- p.innerHTML = o.description, M(u, "gdesc-open");
2345
+ p.innerHTML = o.description, E(u, "gdesc-open");
2337
2346
  var k = L("click", { onElement: [u, ce(p, ".gslide-description")], withCallback: function(g, m) {
2338
- g.target.nodeName.toLowerCase() !== "a" && (T(u, "gdesc-open"), M(u, "gdesc-closed"), p.innerHTML = o.smallDescription, s.descriptionEvents(p, o), setTimeout(function() {
2339
- T(u, "gdesc-closed");
2347
+ g.target.nodeName.toLowerCase() !== "a" && (A(u, "gdesc-open"), E(u, "gdesc-closed"), p.innerHTML = o.smallDescription, s.descriptionEvents(p, o), setTimeout(function() {
2348
+ A(u, "gdesc-closed");
2340
2349
  }, 400), k.destroy());
2341
2350
  } });
2342
2351
  } });
@@ -2389,13 +2398,13 @@ var ta = { exports: {} };
2389
2398
  var f = e.getAttribute("data-gallery");
2390
2399
  f && (this.fullElementsList = this.elements, this.elements = this.getGalleryElements(this.elements, f)), ne(s) && (s = this.getElementIndex(e)) < 0 && (s = 0);
2391
2400
  }
2392
- Ue(s) || (s = 0), this.build(), A(this.overlay, this.settings.openEffect === "none" ? "none" : this.settings.cssEfects.fade.in);
2401
+ Ue(s) || (s = 0), this.build(), T(this.overlay, this.settings.openEffect === "none" ? "none" : this.settings.cssEfects.fade.in);
2393
2402
  var b = document.body, h = window.innerWidth - document.documentElement.clientWidth;
2394
2403
  if (h > 0) {
2395
2404
  var u = document.createElement("style");
2396
- u.type = "text/css", u.className = "gcss-styles", u.innerText = ".gscrollbar-fixer {margin-right: ".concat(h, "px}"), document.head.appendChild(u), M(b, "gscrollbar-fixer");
2405
+ u.type = "text/css", u.className = "gcss-styles", u.innerText = ".gscrollbar-fixer {margin-right: ".concat(h, "px}"), document.head.appendChild(u), E(b, "gscrollbar-fixer");
2397
2406
  }
2398
- M(b, "glightbox-open"), M(Ot, "glightbox-open"), Lt && (M(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (M(this.prevButton, "glightbox-button-hidden"), M(this.nextButton, "glightbox-button-hidden")) : (T(this.prevButton, "glightbox-button-hidden"), T(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), w(this.settings.onOpen) && this.settings.onOpen(), jt && this.settings.touchNavigation && pa(this), this.settings.keyboardNavigation && la(this);
2407
+ E(b, "glightbox-open"), E(Ot, "glightbox-open"), Lt && (E(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (E(this.prevButton, "glightbox-button-hidden"), E(this.nextButton, "glightbox-button-hidden")) : (A(this.prevButton, "glightbox-button-hidden"), A(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), w(this.settings.onOpen) && this.settings.onOpen(), jt && this.settings.touchNavigation && pa(this), this.settings.keyboardNavigation && la(this);
2399
2408
  } }, { key: "openAt", value: function() {
2400
2409
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
2401
2410
  this.open(null, e);
@@ -2403,7 +2412,7 @@ var ta = { exports: {} };
2403
2412
  var e = this, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, s = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
2404
2413
  R(this.loader), this.index = parseInt(o);
2405
2414
  var f = this.slidesContainer.querySelector(".current");
2406
- f && T(f, "current"), this.slideAnimateOut();
2415
+ f && A(f, "current"), this.slideAnimateOut();
2407
2416
  var b = this.slidesContainer.querySelectorAll(".gslide")[o];
2408
2417
  if (F(b, "loaded"))
2409
2418
  this.slideAnimateIn(b, s), $(this.loader);
@@ -2463,28 +2472,28 @@ var ta = { exports: {} };
2463
2472
  o && (this.getActiveSlideIndex() == e && (e == this.elements.length - 1 ? this.prevSlide() : this.nextSlide()), o.parentNode.removeChild(o)), this.elements.splice(e, 1), this.trigger("slide_removed", e), w(this.settings.slideRemoved) && this.settings.slideRemoved(e);
2464
2473
  } }, { key: "slideAnimateIn", value: function(e, o) {
2465
2474
  var s = this, f = e.querySelector(".gslide-media"), b = e.querySelector(".gslide-description"), h = { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlide, slideConfig: ne(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: ne(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, u = { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideConfig: this.elements[this.index].slideConfig, slideIndex: this.index, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) };
2466
- if (f.offsetWidth > 0 && b && ($(b), b.style.display = ""), T(e, this.effectsClasses), o)
2467
- A(e, this.settings.cssEfects[this.settings.openEffect].in, function() {
2475
+ if (f.offsetWidth > 0 && b && ($(b), b.style.display = ""), A(e, this.effectsClasses), o)
2476
+ T(e, this.settings.cssEfects[this.settings.openEffect].in, function() {
2468
2477
  s.settings.autoplayVideos && s.slidePlayerPlay(e), s.trigger("slide_changed", { prev: h, current: u }), w(s.settings.afterSlideChange) && s.settings.afterSlideChange.apply(s, [h, u]);
2469
2478
  });
2470
2479
  else {
2471
2480
  var p = this.settings.slideEffect, k = p !== "none" ? this.settings.cssEfects[p].in : p;
2472
- this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (k = this.settings.cssEfects.slideBack.in), A(e, k, function() {
2481
+ this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (k = this.settings.cssEfects.slideBack.in), T(e, k, function() {
2473
2482
  s.settings.autoplayVideos && s.slidePlayerPlay(e), s.trigger("slide_changed", { prev: h, current: u }), w(s.settings.afterSlideChange) && s.settings.afterSlideChange.apply(s, [h, u]);
2474
2483
  });
2475
2484
  }
2476
2485
  setTimeout(function() {
2477
2486
  s.resize(e);
2478
- }, 100), M(e, "current");
2487
+ }, 100), E(e, "current");
2479
2488
  } }, { key: "slideAnimateOut", value: function() {
2480
2489
  if (!this.prevActiveSlide)
2481
2490
  return !1;
2482
2491
  var e = this.prevActiveSlide;
2483
- T(e, this.effectsClasses), M(e, "prev");
2492
+ A(e, this.effectsClasses), E(e, "prev");
2484
2493
  var o = this.settings.slideEffect, s = o !== "none" ? this.settings.cssEfects[o].out : o;
2485
- this.slidePlayerPause(e), this.trigger("slide_before_change", { prev: { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlideIndex, slideConfig: ne(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: ne(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, current: { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideIndex: this.index, slideConfig: this.elements[this.index].slideConfig, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) } }), w(this.settings.beforeSlideChange) && this.settings.beforeSlideChange.apply(this, [{ index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, { index: this.index, slide: this.activeSlide, player: this.getSlidePlayerInstance(this.index) }]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (s = this.settings.cssEfects.slideBack.out), A(e, s, function() {
2494
+ this.slidePlayerPause(e), this.trigger("slide_before_change", { prev: { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlideIndex, slideConfig: ne(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: ne(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, current: { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideIndex: this.index, slideConfig: this.elements[this.index].slideConfig, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) } }), w(this.settings.beforeSlideChange) && this.settings.beforeSlideChange.apply(this, [{ index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, { index: this.index, slide: this.activeSlide, player: this.getSlidePlayerInstance(this.index) }]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (s = this.settings.cssEfects.slideBack.out), T(e, s, function() {
2486
2495
  var f = e.querySelector(".ginner-container"), b = e.querySelector(".gslide-media"), h = e.querySelector(".gslide-description");
2487
- f.style.transform = "", b.style.transform = "", T(b, "greset"), b.style.opacity = "", h && (h.style.opacity = ""), T(e, "prev");
2496
+ f.style.transform = "", b.style.transform = "", A(b, "greset"), b.style.opacity = "", h && (h.style.opacity = ""), A(e, "prev");
2488
2497
  });
2489
2498
  } }, { key: "getAllPlayers", value: function() {
2490
2499
  return this.videoPlayers;
@@ -2583,7 +2592,7 @@ var ta = { exports: {} };
2583
2592
  var p = document.getElementById("glightbox-body");
2584
2593
  this.modal = p;
2585
2594
  var k = p.querySelector(".gclose");
2586
- this.prevButton = p.querySelector(".gprev"), this.nextButton = p.querySelector(".gnext"), this.overlay = p.querySelector(".goverlay"), this.loader = p.querySelector(".gloader"), this.slidesContainer = document.getElementById("glightbox-slider"), this.bodyHiddenChildElms = s, this.events = {}, M(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && k && (this.events.close = L("click", { onElement: k, withCallback: function(g, m) {
2595
+ this.prevButton = p.querySelector(".gprev"), this.nextButton = p.querySelector(".gnext"), this.overlay = p.querySelector(".goverlay"), this.loader = p.querySelector(".gloader"), this.slidesContainer = document.getElementById("glightbox-slider"), this.bodyHiddenChildElms = s, this.events = {}, E(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && k && (this.events.close = L("click", { onElement: k, withCallback: function(g, m) {
2587
2596
  g.preventDefault(), e.close();
2588
2597
  } })), k && !this.settings.closeButton && k.parentNode.removeChild(k), this.nextButton && (this.events.next = L("click", { onElement: this.nextButton, withCallback: function(g, m) {
2589
2598
  g.preventDefault(), e.nextSlide();
@@ -2593,14 +2602,14 @@ var ta = { exports: {} };
2593
2602
  e.preventOutsideClick || F(document.body, "glightbox-mobile") || ce(g.target, ".ginner-container") || ce(g.target, ".gbtn") || F(g.target, "gnext") || F(g.target, "gprev") || e.close();
2594
2603
  } })), S(this.elements, function(g, m) {
2595
2604
  e.slidesContainer.appendChild(g.instance.create()), g.slideNode = e.slidesContainer.querySelectorAll(".gslide")[m];
2596
- }), jt && M(document.body, "glightbox-touch"), this.events.resize = L("resize", { onElement: window, withCallback: function() {
2605
+ }), jt && E(document.body, "glightbox-touch"), this.events.resize = L("resize", { onElement: window, withCallback: function() {
2597
2606
  e.resize();
2598
2607
  } }), this.built = !0;
2599
2608
  } }, { key: "resize", value: function() {
2600
2609
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
2601
2610
  if ((e = e || this.activeSlide) && !F(e, "zoomed")) {
2602
2611
  var o = ee(), s = e.querySelector(".gvideo-wrapper"), f = e.querySelector(".gslide-image"), b = this.slideDescription, h = o.width, u = o.height;
2603
- if (h <= 768 ? M(document.body, "glightbox-mobile") : T(document.body, "glightbox-mobile"), s || f) {
2612
+ if (h <= 768 ? E(document.body, "glightbox-mobile") : A(document.body, "glightbox-mobile"), s || f) {
2604
2613
  var p = !1;
2605
2614
  if (b && (F(b, "description-bottom") || F(b, "description-top")) && !F(b, "gabsolute") && (p = !0), f) {
2606
2615
  if (h <= 768)
@@ -2613,10 +2622,10 @@ var ta = { exports: {} };
2613
2622
  if (s) {
2614
2623
  var m = N(this.settings.plyr.config, "ratio") ? this.settings.plyr.config.ratio : "";
2615
2624
  if (!m) {
2616
- var E = s.clientWidth, _ = s.clientHeight, j = E / _;
2617
- m = "".concat(E / j, ":").concat(_ / j);
2625
+ var M = s.clientWidth, _ = s.clientHeight, j = M / _;
2626
+ m = "".concat(M / j, ":").concat(_ / j);
2618
2627
  }
2619
- var z = m.split(":"), I = this.settings.videosWidth, re = this.settings.videosWidth, ae = (re = Ue(I) || I.indexOf("px") !== -1 ? parseInt(I) : I.indexOf("vw") !== -1 ? h * parseInt(I) / 100 : I.indexOf("vh") !== -1 ? u * parseInt(I) / 100 : I.indexOf("%") !== -1 ? h * parseInt(I) / 100 : parseInt(s.clientWidth)) / (parseInt(z[0]) / parseInt(z[1]));
2628
+ var H = m.split(":"), I = this.settings.videosWidth, re = this.settings.videosWidth, ae = (re = Ue(I) || I.indexOf("px") !== -1 ? parseInt(I) : I.indexOf("vw") !== -1 ? h * parseInt(I) / 100 : I.indexOf("vh") !== -1 ? u * parseInt(I) / 100 : I.indexOf("%") !== -1 ? h * parseInt(I) / 100 : parseInt(s.clientWidth)) / (parseInt(H[0]) / parseInt(H[1]));
2620
2629
  if (ae = Math.floor(ae), p && (u -= b.offsetHeight), re > h || ae > u || u < ae && h > re) {
2621
2630
  var we = s.offsetWidth, xe = s.offsetHeight, _e = u / xe, je = { width: we * _e, height: xe * _e };
2622
2631
  s.parentNode.setAttribute("style", "max-width: ".concat(je.width, "px")), p && b.setAttribute("style", "max-width: ".concat(je.width, "px;"));
@@ -2629,7 +2638,7 @@ var ta = { exports: {} };
2629
2638
  this.init();
2630
2639
  } }, { key: "updateNavigationClasses", value: function() {
2631
2640
  var e = this.loop();
2632
- T(this.nextButton, "disabled"), T(this.prevButton, "disabled"), this.index == 0 && this.elements.length - 1 == 0 ? (M(this.prevButton, "disabled"), M(this.nextButton, "disabled")) : this.index !== 0 || e ? this.index !== this.elements.length - 1 || e || M(this.nextButton, "disabled") : M(this.prevButton, "disabled");
2641
+ A(this.nextButton, "disabled"), A(this.prevButton, "disabled"), this.index == 0 && this.elements.length - 1 == 0 ? (E(this.prevButton, "disabled"), E(this.nextButton, "disabled")) : this.index !== 0 || e ? this.index !== this.elements.length - 1 || e || E(this.nextButton, "disabled") : E(this.prevButton, "disabled");
2633
2642
  } }, { key: "loop", value: function() {
2634
2643
  var e = N(this.settings, "loopAtEnd") ? this.settings.loopAtEnd : null;
2635
2644
  return e = N(this.settings, "loop") ? this.settings.loop : e, e;
@@ -2647,14 +2656,14 @@ var ta = { exports: {} };
2647
2656
  return !1;
2648
2657
  this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length && S(this.bodyHiddenChildElms, function(s) {
2649
2658
  s.removeAttribute("aria-hidden");
2650
- }), M(this.modal, "glightbox-closing"), A(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), A(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, function() {
2659
+ }), E(this.modal, "glightbox-closing"), T(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), T(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, function() {
2651
2660
  if (e.activeSlide = null, e.prevActiveSlideIndex = null, e.prevActiveSlide = null, e.built = !1, e.events) {
2652
2661
  for (var s in e.events)
2653
2662
  e.events.hasOwnProperty(s) && e.events[s].destroy();
2654
2663
  e.events = null;
2655
2664
  }
2656
2665
  var f = document.body;
2657
- T(Ot, "glightbox-open"), T(f, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), e.modal.parentNode.removeChild(e.modal), e.trigger("close"), w(e.settings.onClose) && e.settings.onClose();
2666
+ A(Ot, "glightbox-open"), A(f, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), e.modal.parentNode.removeChild(e.modal), e.trigger("close"), w(e.settings.onClose) && e.settings.onClose();
2658
2667
  var b = document.querySelector(".gcss-styles");
2659
2668
  b && b.parentNode.removeChild(b), e.lightboxOpen = !1, e.closing = null;
2660
2669
  });
@@ -2740,8 +2749,8 @@ vt.styles = U`
2740
2749
  vt = Sc([
2741
2750
  Y("cb-thinking")
2742
2751
  ], vt);
2743
- var _c = Object.defineProperty, Mc = Object.getOwnPropertyDescriptor, aa = (a, t, c, i) => {
2744
- for (var n = i > 1 ? void 0 : i ? Mc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
2752
+ var _c = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, aa = (a, t, c, i) => {
2753
+ for (var n = i > 1 ? void 0 : i ? Ec(t, c) : t, d = a.length - 1, l; d >= 0; d--)
2745
2754
  (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
2746
2755
  return i && n && _c(t, c, n), n;
2747
2756
  };
@@ -2785,7 +2794,7 @@ aa([
2785
2794
  ct = aa([
2786
2795
  Y("cb-uploading")
2787
2796
  ], ct);
2788
- const Ec = U`
2797
+ const Mc = U`
2789
2798
  ${ge}
2790
2799
  :host {
2791
2800
  }
@@ -2806,10 +2815,10 @@ const Ec = U`
2806
2815
  margin-right: 0.2em;
2807
2816
  }
2808
2817
  `;
2809
- var Ac = Object.defineProperty, Tc = Object.getOwnPropertyDescriptor, St = (a, t, c, i) => {
2810
- for (var n = i > 1 ? void 0 : i ? Tc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
2818
+ var Tc = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, St = (a, t, c, i) => {
2819
+ for (var n = i > 1 ? void 0 : i ? Ac(t, c) : t, d = a.length - 1, l; d >= 0; d--)
2811
2820
  (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
2812
- return i && n && Ac(t, c, n), n;
2821
+ return i && n && Tc(t, c, n), n;
2813
2822
  };
2814
2823
  let qe = class extends dt {
2815
2824
  constructor() {
@@ -2865,11 +2874,11 @@ St([
2865
2874
  qe = St([
2866
2875
  Y("cb-external-link")
2867
2876
  ], qe);
2868
- const $c = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-2v-1h2a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.928 15.849v-3.337h1.136v-.662H0v.662h1.134v3.337zm4.689-3.999h-.894L4.9 13.289h-.035l-.832-1.439h-.932l1.228 1.983l-1.24 2.016h.862l.853-1.415h.035l.85 1.415h.907l-1.253-1.992zm1.93.662v3.337h-.794v-3.337H6.619v-.662h3.064v.662H8.546Z"/></svg>', Ic = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm1.217-1.333v3.999h1.46c.401 0 .734-.08.998-.237a1.45 1.45 0 0 0 .595-.689c.13-.3.196-.662.196-1.084c0-.42-.065-.778-.196-1.075a1.426 1.426 0 0 0-.589-.68c-.264-.156-.599-.234-1.005-.234H3.362Zm.791.645h.563c.248 0 .45.05.609.152a.89.89 0 0 1 .354.454c.079.201.118.452.118.753a2.3 2.3 0 0 1-.068.592a1.14 1.14 0 0 1-.196.422a.8.8 0 0 1-.334.252a1.298 1.298 0 0 1-.483.082h-.563v-2.707Zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638H7.896Z"/></svg>', Lc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2H9v-1h3a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM.706 13.189v2.66H0V11.85h.806l1.14 2.596h.026l1.14-2.596h.8v3.999h-.716v-2.66h-.038l-.946 2.159h-.516l-.952-2.16H.706Zm3.919 2.66V11.85h1.459c.406 0 .741.078 1.005.234c.263.157.46.383.589.68c.13.297.196.655.196 1.075c0 .422-.066.784-.196 1.084c-.131.301-.33.53-.595.689c-.264.158-.597.237-1 .237H4.626Zm1.353-3.354h-.562v2.707h.562c.186 0 .347-.028.484-.082a.8.8 0 0 0 .334-.252a1.14 1.14 0 0 0 .196-.422c.045-.168.067-.365.067-.592a2.1 2.1 0 0 0-.117-.753a.89.89 0 0 0-.354-.454c-.159-.102-.362-.152-.61-.152Z"/></svg>', jc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM3.517 14.841a1.13 1.13 0 0 0 .401.823c.13.108.289.192.478.252c.19.061.411.091.665.091c.338 0 .624-.053.859-.158c.236-.105.416-.252.539-.44c.125-.189.187-.408.187-.656c0-.224-.045-.41-.134-.56a1.001 1.001 0 0 0-.375-.357a2.027 2.027 0 0 0-.566-.21l-.621-.144a.97.97 0 0 1-.404-.176a.37.37 0 0 1-.144-.299c0-.156.062-.284.185-.384c.125-.101.296-.152.512-.152c.143 0 .266.023.37.068a.624.624 0 0 1 .246.181a.56.56 0 0 1 .12.258h.75a1.092 1.092 0 0 0-.2-.566a1.21 1.21 0 0 0-.5-.41a1.813 1.813 0 0 0-.78-.152c-.293 0-.551.05-.776.15c-.225.099-.4.24-.527.421c-.127.182-.19.395-.19.639c0 .201.04.376.122.524c.082.149.2.27.352.367c.152.095.332.167.539.213l.618.144c.207.049.361.113.463.193a.387.387 0 0 1 .152.326a.505.505 0 0 1-.085.29a.559.559 0 0 1-.255.193c-.111.047-.249.07-.413.07c-.117 0-.223-.013-.32-.04a.838.838 0 0 1-.248-.115a.578.578 0 0 1-.255-.384h-.765ZM.806 13.693c0-.248.034-.46.102-.633a.868.868 0 0 1 .302-.399a.814.814 0 0 1 .475-.137c.15 0 .283.032.398.097a.7.7 0 0 1 .272.26a.85.85 0 0 1 .12.381h.765v-.072a1.33 1.33 0 0 0-.466-.964a1.441 1.441 0 0 0-.489-.272a1.838 1.838 0 0 0-.606-.097c-.356 0-.66.074-.911.223c-.25.148-.44.359-.572.632c-.13.274-.196.6-.196.979v.498c0 .379.064.704.193.976c.131.271.322.48.572.626c.25.145.554.217.914.217c.293 0 .554-.055.785-.164c.23-.11.414-.26.55-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.764a.799.799 0 0 1-.118.363a.7.7 0 0 1-.272.25a.874.874 0 0 1-.401.087a.845.845 0 0 1-.478-.132a.833.833 0 0 1-.299-.392a1.699 1.699 0 0 1-.102-.627v-.495Zm8.239 2.238h-.953l-1.338-3.999h.917l.896 3.138h.038l.888-3.138h.879l-1.327 4Z"/></svg>', Oc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm2.817-1.333h-1.6v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474c.108-.201.161-.427.161-.677c0-.25-.052-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.793.793 0 0 1-.375.082H4.15V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm2.767-.67v3.336H7.48v-3.337H6.346v-.662h3.065v.662H8.274Z"/></svg>', Pc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zm-7.839 9.166v.522c0 .256-.039.47-.117.641a.861.861 0 0 1-.322.387a.877.877 0 0 1-.469.126a.883.883 0 0 1-.471-.126a.868.868 0 0 1-.32-.386a1.55 1.55 0 0 1-.117-.642v-.522c0-.257.04-.471.117-.641a.868.868 0 0 1 .32-.387a.868.868 0 0 1 .471-.129c.176 0 .332.043.469.13a.861.861 0 0 1 .322.386c.078.17.117.384.117.641Zm.803.519v-.513c0-.377-.068-.7-.205-.972a1.46 1.46 0 0 0-.589-.63c-.254-.147-.56-.22-.917-.22c-.355 0-.662.073-.92.22a1.441 1.441 0 0 0-.589.627c-.136.271-.205.596-.205.975v.513c0 .375.069.7.205.973c.137.271.333.48.59.627c.257.144.564.216.92.216c.357 0 .662-.072.916-.216c.256-.147.452-.356.59-.627c.136-.274.204-.598.204-.973ZM0 11.926v4h1.459c.402 0 .735-.08.999-.238a1.45 1.45 0 0 0 .595-.689c.13-.3.196-.662.196-1.084c0-.42-.065-.778-.196-1.075a1.426 1.426 0 0 0-.59-.68c-.263-.156-.598-.234-1.004-.234H0Zm.791.645h.563c.248 0 .45.05.609.152a.89.89 0 0 1 .354.454c.079.201.118.452.118.753a2.3 2.3 0 0 1-.068.592a1.141 1.141 0 0 1-.196.422a.8.8 0 0 1-.334.252a1.298 1.298 0 0 1-.483.082H.79V12.57Zm7.422.483a1.732 1.732 0 0 0-.103.633v.495c0 .246.034.455.103.627a.834.834 0 0 0 .298.393a.845.845 0 0 0 .478.131a.868.868 0 0 0 .401-.088a.699.699 0 0 0 .273-.248a.8.8 0 0 0 .117-.364h.765v.076a1.268 1.268 0 0 1-.226.674c-.137.194-.32.345-.55.454a1.81 1.81 0 0 1-.786.164c-.36 0-.664-.072-.914-.216a1.424 1.424 0 0 1-.571-.627c-.13-.272-.194-.597-.194-.976v-.498c0-.379.066-.705.197-.978c.13-.274.321-.485.571-.633c.252-.149.556-.223.911-.223c.219 0 .421.032.607.097c.187.062.35.153.489.272a1.326 1.326 0 0 1 .466.964v.073H9.78a.85.85 0 0 0-.12-.38a.7.7 0 0 0-.273-.261a.802.802 0 0 0-.398-.097a.814.814 0 0 0-.475.138a.868.868 0 0 0-.301.398Z"/></svg>', Hc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zm-6.839 9.688v-.522a1.54 1.54 0 0 0-.117-.641a.861.861 0 0 0-.322-.387a.862.862 0 0 0-.469-.129a.868.868 0 0 0-.471.13a.868.868 0 0 0-.32.386a1.54 1.54 0 0 0-.117.641v.522c0 .256.04.47.117.641a.868.868 0 0 0 .32.387a.883.883 0 0 0 .471.126a.877.877 0 0 0 .469-.126a.861.861 0 0 0 .322-.386a1.55 1.55 0 0 0 .117-.642Zm.803-.516v.513c0 .375-.068.7-.205.973a1.47 1.47 0 0 1-.589.627c-.254.144-.56.216-.917.216a1.86 1.86 0 0 1-.92-.216a1.463 1.463 0 0 1-.589-.627a2.151 2.151 0 0 1-.205-.973v-.513c0-.379.069-.704.205-.975c.137-.274.333-.483.59-.627c.257-.147.564-.22.92-.22c.357 0 .662.073.916.22c.256.146.452.356.59.63c.136.271.204.595.204.972M1 15.925v-3.999h1.459c.406 0 .741.078 1.005.235c.264.156.46.382.589.68c.13.296.196.655.196 1.074c0 .422-.065.784-.196 1.084c-.131.301-.33.53-.595.689c-.264.158-.597.237-.999.237H1Zm1.354-3.354H1.79v2.707h.563c.185 0 .346-.028.483-.082a.8.8 0 0 0 .334-.252c.088-.114.153-.254.196-.422a2.3 2.3 0 0 0 .068-.592c0-.3-.04-.552-.118-.753a.89.89 0 0 0-.354-.454c-.158-.102-.361-.152-.61-.152Zm6.756 1.116c0-.248.034-.46.103-.633a.868.868 0 0 1 .301-.398a.814.814 0 0 1 .475-.138c.15 0 .283.032.398.097a.7.7 0 0 1 .273.26a.85.85 0 0 1 .12.381h.765v-.073a1.33 1.33 0 0 0-.466-.964a1.44 1.44 0 0 0-.49-.272a1.836 1.836 0 0 0-.606-.097c-.355 0-.66.074-.911.223c-.25.148-.44.359-.571.633c-.131.273-.197.6-.197.978v.498c0 .379.065.704.194.976c.13.271.321.48.571.627c.25.144.555.216.914.216c.293 0 .555-.054.785-.164c.23-.11.414-.26.551-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.765a.8.8 0 0 1-.117.364a.699.699 0 0 1-.273.248a.874.874 0 0 1-.401.088a.845.845 0 0 1-.478-.131a.834.834 0 0 1-.298-.393a1.7 1.7 0 0 1-.103-.627v-.495Zm5.092-1.76h.894l-1.275 2.006l1.254 1.992h-.908l-.85-1.415h-.035l-.852 1.415h-.862l1.24-2.015l-1.228-1.984h.932l.832 1.439h.035l.823-1.439Z"/></svg>';
2869
- var zc = Object.defineProperty, Bc = Object.getOwnPropertyDescriptor, _t = (a, t, c, i) => {
2877
+ const $c = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-2v-1h2a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.928 15.849v-3.337h1.136v-.662H0v.662h1.134v3.337zm4.689-3.999h-.894L4.9 13.289h-.035l-.832-1.439h-.932l1.228 1.983l-1.24 2.016h.862l.853-1.415h.035l.85 1.415h.907l-1.253-1.992zm1.93.662v3.337h-.794v-3.337H6.619v-.662h3.064v.662H8.546Z"/></svg>', Ic = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm1.217-1.333v3.999h1.46c.401 0 .734-.08.998-.237a1.45 1.45 0 0 0 .595-.689c.13-.3.196-.662.196-1.084c0-.42-.065-.778-.196-1.075a1.426 1.426 0 0 0-.589-.68c-.264-.156-.599-.234-1.005-.234H3.362Zm.791.645h.563c.248 0 .45.05.609.152a.89.89 0 0 1 .354.454c.079.201.118.452.118.753a2.3 2.3 0 0 1-.068.592a1.14 1.14 0 0 1-.196.422a.8.8 0 0 1-.334.252a1.298 1.298 0 0 1-.483.082h-.563v-2.707Zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638H7.896Z"/></svg>', Lc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2H9v-1h3a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM.706 13.189v2.66H0V11.85h.806l1.14 2.596h.026l1.14-2.596h.8v3.999h-.716v-2.66h-.038l-.946 2.159h-.516l-.952-2.16H.706Zm3.919 2.66V11.85h1.459c.406 0 .741.078 1.005.234c.263.157.46.383.589.68c.13.297.196.655.196 1.075c0 .422-.066.784-.196 1.084c-.131.301-.33.53-.595.689c-.264.158-.597.237-1 .237H4.626Zm1.353-3.354h-.562v2.707h.562c.186 0 .347-.028.484-.082a.8.8 0 0 0 .334-.252a1.14 1.14 0 0 0 .196-.422c.045-.168.067-.365.067-.592a2.1 2.1 0 0 0-.117-.753a.89.89 0 0 0-.354-.454c-.159-.102-.362-.152-.61-.152Z"/></svg>', jc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM3.517 14.841a1.13 1.13 0 0 0 .401.823c.13.108.289.192.478.252c.19.061.411.091.665.091c.338 0 .624-.053.859-.158c.236-.105.416-.252.539-.44c.125-.189.187-.408.187-.656c0-.224-.045-.41-.134-.56a1.001 1.001 0 0 0-.375-.357a2.027 2.027 0 0 0-.566-.21l-.621-.144a.97.97 0 0 1-.404-.176a.37.37 0 0 1-.144-.299c0-.156.062-.284.185-.384c.125-.101.296-.152.512-.152c.143 0 .266.023.37.068a.624.624 0 0 1 .246.181a.56.56 0 0 1 .12.258h.75a1.092 1.092 0 0 0-.2-.566a1.21 1.21 0 0 0-.5-.41a1.813 1.813 0 0 0-.78-.152c-.293 0-.551.05-.776.15c-.225.099-.4.24-.527.421c-.127.182-.19.395-.19.639c0 .201.04.376.122.524c.082.149.2.27.352.367c.152.095.332.167.539.213l.618.144c.207.049.361.113.463.193a.387.387 0 0 1 .152.326a.505.505 0 0 1-.085.29a.559.559 0 0 1-.255.193c-.111.047-.249.07-.413.07c-.117 0-.223-.013-.32-.04a.838.838 0 0 1-.248-.115a.578.578 0 0 1-.255-.384h-.765ZM.806 13.693c0-.248.034-.46.102-.633a.868.868 0 0 1 .302-.399a.814.814 0 0 1 .475-.137c.15 0 .283.032.398.097a.7.7 0 0 1 .272.26a.85.85 0 0 1 .12.381h.765v-.072a1.33 1.33 0 0 0-.466-.964a1.441 1.441 0 0 0-.489-.272a1.838 1.838 0 0 0-.606-.097c-.356 0-.66.074-.911.223c-.25.148-.44.359-.572.632c-.13.274-.196.6-.196.979v.498c0 .379.064.704.193.976c.131.271.322.48.572.626c.25.145.554.217.914.217c.293 0 .554-.055.785-.164c.23-.11.414-.26.55-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.764a.799.799 0 0 1-.118.363a.7.7 0 0 1-.272.25a.874.874 0 0 1-.401.087a.845.845 0 0 1-.478-.132a.833.833 0 0 1-.299-.392a1.699 1.699 0 0 1-.102-.627v-.495Zm8.239 2.238h-.953l-1.338-3.999h.917l.896 3.138h.038l.888-3.138h.879l-1.327 4Z"/></svg>', Oc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm2.817-1.333h-1.6v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474c.108-.201.161-.427.161-.677c0-.25-.052-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.793.793 0 0 1-.375.082H4.15V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm2.767-.67v3.336H7.48v-3.337H6.346v-.662h3.065v.662H8.274Z"/></svg>', Pc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zm-7.839 9.166v.522c0 .256-.039.47-.117.641a.861.861 0 0 1-.322.387a.877.877 0 0 1-.469.126a.883.883 0 0 1-.471-.126a.868.868 0 0 1-.32-.386a1.55 1.55 0 0 1-.117-.642v-.522c0-.257.04-.471.117-.641a.868.868 0 0 1 .32-.387a.868.868 0 0 1 .471-.129c.176 0 .332.043.469.13a.861.861 0 0 1 .322.386c.078.17.117.384.117.641Zm.803.519v-.513c0-.377-.068-.7-.205-.972a1.46 1.46 0 0 0-.589-.63c-.254-.147-.56-.22-.917-.22c-.355 0-.662.073-.92.22a1.441 1.441 0 0 0-.589.627c-.136.271-.205.596-.205.975v.513c0 .375.069.7.205.973c.137.271.333.48.59.627c.257.144.564.216.92.216c.357 0 .662-.072.916-.216c.256-.147.452-.356.59-.627c.136-.274.204-.598.204-.973ZM0 11.926v4h1.459c.402 0 .735-.08.999-.238a1.45 1.45 0 0 0 .595-.689c.13-.3.196-.662.196-1.084c0-.42-.065-.778-.196-1.075a1.426 1.426 0 0 0-.59-.68c-.263-.156-.598-.234-1.004-.234H0Zm.791.645h.563c.248 0 .45.05.609.152a.89.89 0 0 1 .354.454c.079.201.118.452.118.753a2.3 2.3 0 0 1-.068.592a1.141 1.141 0 0 1-.196.422a.8.8 0 0 1-.334.252a1.298 1.298 0 0 1-.483.082H.79V12.57Zm7.422.483a1.732 1.732 0 0 0-.103.633v.495c0 .246.034.455.103.627a.834.834 0 0 0 .298.393a.845.845 0 0 0 .478.131a.868.868 0 0 0 .401-.088a.699.699 0 0 0 .273-.248a.8.8 0 0 0 .117-.364h.765v.076a1.268 1.268 0 0 1-.226.674c-.137.194-.32.345-.55.454a1.81 1.81 0 0 1-.786.164c-.36 0-.664-.072-.914-.216a1.424 1.424 0 0 1-.571-.627c-.13-.272-.194-.597-.194-.976v-.498c0-.379.066-.705.197-.978c.13-.274.321-.485.571-.633c.252-.149.556-.223.911-.223c.219 0 .421.032.607.097c.187.062.35.153.489.272a1.326 1.326 0 0 1 .466.964v.073H9.78a.85.85 0 0 0-.12-.38a.7.7 0 0 0-.273-.261a.802.802 0 0 0-.398-.097a.814.814 0 0 0-.475.138a.868.868 0 0 0-.301.398Z"/></svg>', zc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zm-6.839 9.688v-.522a1.54 1.54 0 0 0-.117-.641a.861.861 0 0 0-.322-.387a.862.862 0 0 0-.469-.129a.868.868 0 0 0-.471.13a.868.868 0 0 0-.32.386a1.54 1.54 0 0 0-.117.641v.522c0 .256.04.47.117.641a.868.868 0 0 0 .32.387a.883.883 0 0 0 .471.126a.877.877 0 0 0 .469-.126a.861.861 0 0 0 .322-.386a1.55 1.55 0 0 0 .117-.642Zm.803-.516v.513c0 .375-.068.7-.205.973a1.47 1.47 0 0 1-.589.627c-.254.144-.56.216-.917.216a1.86 1.86 0 0 1-.92-.216a1.463 1.463 0 0 1-.589-.627a2.151 2.151 0 0 1-.205-.973v-.513c0-.379.069-.704.205-.975c.137-.274.333-.483.59-.627c.257-.147.564-.22.92-.22c.357 0 .662.073.916.22c.256.146.452.356.59.63c.136.271.204.595.204.972M1 15.925v-3.999h1.459c.406 0 .741.078 1.005.235c.264.156.46.382.589.68c.13.296.196.655.196 1.074c0 .422-.065.784-.196 1.084c-.131.301-.33.53-.595.689c-.264.158-.597.237-.999.237H1Zm1.354-3.354H1.79v2.707h.563c.185 0 .346-.028.483-.082a.8.8 0 0 0 .334-.252c.088-.114.153-.254.196-.422a2.3 2.3 0 0 0 .068-.592c0-.3-.04-.552-.118-.753a.89.89 0 0 0-.354-.454c-.158-.102-.361-.152-.61-.152Zm6.756 1.116c0-.248.034-.46.103-.633a.868.868 0 0 1 .301-.398a.814.814 0 0 1 .475-.138c.15 0 .283.032.398.097a.7.7 0 0 1 .273.26a.85.85 0 0 1 .12.381h.765v-.073a1.33 1.33 0 0 0-.466-.964a1.44 1.44 0 0 0-.49-.272a1.836 1.836 0 0 0-.606-.097c-.355 0-.66.074-.911.223c-.25.148-.44.359-.571.633c-.131.273-.197.6-.197.978v.498c0 .379.065.704.194.976c.13.271.321.48.571.627c.25.144.555.216.914.216c.293 0 .555-.054.785-.164c.23-.11.414-.26.551-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.765a.8.8 0 0 1-.117.364a.699.699 0 0 1-.273.248a.874.874 0 0 1-.401.088a.845.845 0 0 1-.478-.131a.834.834 0 0 1-.298-.393a1.7 1.7 0 0 1-.103-.627v-.495Zm5.092-1.76h.894l-1.275 2.006l1.254 1.992h-.908l-.85-1.415h-.035l-.852 1.415h-.862l1.24-2.015l-1.228-1.984h.932l.832 1.439h.035l.823-1.439Z"/></svg>';
2878
+ var Hc = Object.defineProperty, Bc = Object.getOwnPropertyDescriptor, _t = (a, t, c, i) => {
2870
2879
  for (var n = i > 1 ? void 0 : i ? Bc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
2871
2880
  (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
2872
- return i && n && zc(t, c, n), n;
2881
+ return i && n && Hc(t, c, n), n;
2873
2882
  };
2874
2883
  const Bt = {
2875
2884
  pdf: Ic,
@@ -2878,7 +2887,7 @@ const Bt = {
2878
2887
  csv: jc,
2879
2888
  ppd: Oc,
2880
2889
  doc: Pc,
2881
- docx: Hc
2890
+ docx: zc
2882
2891
  };
2883
2892
  let Ve = class extends Q {
2884
2893
  constructor() {
@@ -2910,7 +2919,7 @@ let Ve = class extends Q {
2910
2919
  `;
2911
2920
  }
2912
2921
  };
2913
- Ve.styles = Ec;
2922
+ Ve.styles = Mc;
2914
2923
  _t([
2915
2924
  C({ type: String })
2916
2925
  ], Ve.prototype, "filename", 2);
@@ -4421,7 +4430,7 @@ let $e = class extends Q {
4421
4430
  return fe(
4422
4431
  this.message.data || this.message.isThinking,
4423
4432
  () => y`
4424
- <div class="cb-message-row" part="cb-message-row">
4433
+ <div class="cb-message-row" part="bot-message">
4425
4434
  <!-- message -->
4426
4435
  ${fe(
4427
4436
  this._isBot,
@@ -4465,7 +4474,7 @@ let $e = class extends Q {
4465
4474
  () => y`<div style="font-size: 12px; color:#9ca3af">${a.data.userName}</div>`,
4466
4475
  () => null
4467
4476
  )}
4468
- ${zt(
4477
+ ${Ht(
4469
4478
  this._getMessageText(a).then((c) => y`${c}`)
4470
4479
  )}
4471
4480
  </div>` : a.type === "file" ? y`${Je(
@@ -4473,7 +4482,7 @@ let $e = class extends Q {
4473
4482
  (c) => c.id,
4474
4483
  (c) => y`<cb-file filename="${c.name}" url="${c.url}"></cb-file>`
4475
4484
  )}` : y`<div class="cb-message-text">
4476
- ${zt(
4485
+ ${Ht(
4477
4486
  Vt(((t = a.data.text) == null ? void 0 : t.toString()) || "").then((c) => y`${c}`)
4478
4487
  )}
4479
4488
  </div>`;
@@ -4482,9 +4491,9 @@ let $e = class extends Q {
4482
4491
  var t;
4483
4492
  if (a.data.userName && a.data.userName !== "") {
4484
4493
  const c = ((t = a.data) == null ? void 0 : t.userAvatar) || "";
4485
- return c !== "" ? y` <img src="${c}" style="width: 24px;height: 24px;" /> ` : ze`${de(x.setting.agentIconSvg)}`;
4494
+ return c !== "" ? y` <img src="${c}" style="width: 24px;height: 24px;" /> ` : He`${de(x.setting.agentIconSvg)}`;
4486
4495
  }
4487
- return a.author === "system" ? ze`${de(x.setting.systemIconSvg)}` : ze`${de(x.setting.botIconSvg)}`;
4496
+ return a.author === "system" ? He`${de(x.setting.systemIconSvg)}` : He`${de(x.setting.botIconSvg)}`;
4488
4497
  }
4489
4498
  renderBotMessage(a) {
4490
4499
  return y`
@@ -4542,11 +4551,11 @@ let le = class extends Q {
4542
4551
  });*/
4543
4552
  render() {
4544
4553
  return y`
4545
- <div class="cb-message-list" part="cb-message-list">
4554
+ <div class="cb-message-list" part="bot-message-list">
4546
4555
  ${Je(
4547
4556
  this.messages,
4548
4557
  (a) => a.id + JSON.stringify(a.data),
4549
- (a) => y`<cb-message .message="${a}"></cb-message>`
4558
+ (a) => y`<cb-message .message="${a}" exportparts="bot-message"></cb-message>`
4550
4559
  )}
4551
4560
  ${this.renderActions()} ${this.renderForm()}
4552
4561
  <div id="cb-message-list-bottom-anchor"></div>
@@ -5160,7 +5169,7 @@ const ii = U`
5160
5169
  grid-column-start: 2;
5161
5170
  }
5162
5171
  `;
5163
- var ni = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, He = (a, t, c, i) => {
5172
+ var ni = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, ze = (a, t, c, i) => {
5164
5173
  for (var n = i > 1 ? void 0 : i ? oi(t, c) : t, d = a.length - 1, l; d >= 0; d--)
5165
5174
  (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
5166
5175
  return i && n && ni(t, c, n), n;
@@ -5286,22 +5295,22 @@ let Ce = class extends Q {
5286
5295
  }
5287
5296
  };
5288
5297
  Ce.styles = ii;
5289
- He([
5298
+ ze([
5290
5299
  C({ type: Boolean })
5291
5300
  ], Ce.prototype, "open", 2);
5292
- He([
5301
+ ze([
5293
5302
  C({ type: Object })
5294
5303
  ], Ce.prototype, "setting", 2);
5295
- He([
5304
+ ze([
5296
5305
  C({ type: Boolean })
5297
5306
  ], Ce.prototype, "clearMessageDialogOpen", 2);
5298
- He([
5307
+ ze([
5299
5308
  Re("sl-dialog")
5300
5309
  ], Ce.prototype, "dialog", 2);
5301
- He([
5310
+ ze([
5302
5311
  C({ type: Boolean })
5303
5312
  ], Ce.prototype, "customRequest", 2);
5304
- Ce = He([
5313
+ Ce = ze([
5305
5314
  Y("cb-setting")
5306
5315
  ], Ce);
5307
5316
  const si = U`
@@ -5452,12 +5461,12 @@ let nt = class extends Q {
5452
5461
  )}
5453
5462
  </sl-button>
5454
5463
  <div class="cb-engage-popup">
5455
- <div class="cb-engage-popup-close" @click=${this._engageClickHandler.bind(this)}>${ze`${de(tt)}`}</div>
5464
+ <div class="cb-engage-popup-close" @click=${this._engageClickHandler.bind(this)}>${He`${de(tt)}`}</div>
5456
5465
  <div class="cb-engage-popup-content">
5457
5466
  ${fe(
5458
5467
  x.setting.logoUrl !== "",
5459
5468
  () => y`<img class="cb-engage-popup-img" src="${x.setting.logoUrl}" />`,
5460
- () => y`<div class="cb-engage-popup-logo">${ze`${de(x.setting.logoSvg)}`}</div>`
5469
+ () => y`<div class="cb-engage-popup-logo">${He`${de(x.setting.logoSvg)}`}</div>`
5461
5470
  )}
5462
5471
  <!--<cb-icon class="cb-engage-popup-logo" svg="${x.setting.logoSvg}"></cb-icon>-->
5463
5472
  <div>${x.setting.engageMessage}</div>
@@ -5581,20 +5590,20 @@ const Qe = (a) => a !== null && typeof a == "object", Ge = (...a) => {
5581
5590
  for (const t of a)
5582
5591
  if ((!Qe(t) || Array.isArray(t)) && typeof t < "u")
5583
5592
  throw new TypeError("The `options` argument must be an object");
5584
- return Mt({}, ...a);
5593
+ return Et({}, ...a);
5585
5594
  }, sa = (a = {}, t = {}) => {
5586
5595
  const c = new globalThis.Headers(a), i = t instanceof globalThis.Headers, n = new globalThis.Headers(t);
5587
5596
  for (const [d, l] of n.entries())
5588
5597
  i && l === "undefined" || l === void 0 ? c.delete(d) : c.set(d, l);
5589
5598
  return c;
5590
- }, Mt = (...a) => {
5599
+ }, Et = (...a) => {
5591
5600
  let t = {}, c = {};
5592
5601
  for (const i of a)
5593
5602
  if (Array.isArray(i))
5594
5603
  Array.isArray(t) || (t = []), t = [...t, ...i];
5595
5604
  else if (Qe(i)) {
5596
5605
  for (let [n, d] of Object.entries(i))
5597
- Qe(d) && n in t && (d = Mt(t[n], d)), t = { ...t, [n]: d };
5606
+ Qe(d) && n in t && (d = Et(t[n], d)), t = { ...t, [n]: d };
5598
5607
  Qe(i.headers) && (c = sa(c, i.headers), t.headers = c);
5599
5608
  }
5600
5609
  return t;
@@ -5615,14 +5624,14 @@ const Qe = (a) => a !== null && typeof a == "object", Ge = (...a) => {
5615
5624
  formData: "multipart/form-data",
5616
5625
  arrayBuffer: "*/*",
5617
5626
  blob: "*/*"
5618
- }, mt = 2147483647, da = Symbol("stop"), _i = (a) => ra.includes(a) ? a.toUpperCase() : a, Mi = ["get", "put", "head", "delete", "options", "trace"], Ei = [408, 413, 429, 500, 502, 503, 504], fa = [413, 429, 503], Nt = {
5627
+ }, mt = 2147483647, da = Symbol("stop"), _i = (a) => ra.includes(a) ? a.toUpperCase() : a, Ei = ["get", "put", "head", "delete", "options", "trace"], Mi = [408, 413, 429, 500, 502, 503, 504], fa = [413, 429, 503], Nt = {
5619
5628
  limit: 2,
5620
- methods: Mi,
5621
- statusCodes: Ei,
5629
+ methods: Ei,
5630
+ statusCodes: Mi,
5622
5631
  afterStatusCodes: fa,
5623
5632
  maxRetryAfter: Number.POSITIVE_INFINITY,
5624
5633
  backoffLimit: Number.POSITIVE_INFINITY
5625
- }, Ai = (a = {}) => {
5634
+ }, Ti = (a = {}) => {
5626
5635
  if (typeof a == "number")
5627
5636
  return {
5628
5637
  ...Nt,
@@ -5638,7 +5647,7 @@ const Qe = (a) => a !== null && typeof a == "object", Ge = (...a) => {
5638
5647
  afterStatusCodes: fa
5639
5648
  };
5640
5649
  };
5641
- async function Ti(a, t, c) {
5650
+ async function Ai(a, t, c) {
5642
5651
  return new Promise((i, n) => {
5643
5652
  const d = setTimeout(() => {
5644
5653
  t && t.abort(), n(new oa(a));
@@ -5745,7 +5754,7 @@ class st {
5745
5754
  credentials: this._input.credentials || "same-origin",
5746
5755
  ...c,
5747
5756
  headers: sa(this._input.headers, c.headers),
5748
- hooks: Mt({
5757
+ hooks: Et({
5749
5758
  beforeRequest: [],
5750
5759
  beforeRetry: [],
5751
5760
  beforeError: [],
@@ -5754,7 +5763,7 @@ class st {
5754
5763
  method: _i(c.method ?? this._input.method),
5755
5764
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
5756
5765
  prefixUrl: String(c.prefixUrl || ""),
5757
- retry: Ai(c.retry),
5766
+ retry: Ti(c.retry),
5758
5767
  throwHttpErrors: c.throwHttpErrors !== !1,
5759
5768
  timeout: typeof c.timeout > "u" ? 1e4 : c.timeout,
5760
5769
  fetch: c.fetch ?? globalThis.fetch.bind(globalThis)
@@ -5831,7 +5840,7 @@ class st {
5831
5840
  if (c instanceof Response)
5832
5841
  return c;
5833
5842
  }
5834
- return this._options.timeout === !1 ? this._options.fetch(this.request.clone()) : Ti(this.request.clone(), this.abortController, this._options);
5843
+ return this._options.timeout === !1 ? this._options.fetch(this.request.clone()) : Ai(this.request.clone(), this.abortController, this._options);
5835
5844
  }
5836
5845
  /* istanbul ignore next */
5837
5846
  _stream(t, c) {
@@ -5902,7 +5911,7 @@ async function Pi(a, t) {
5902
5911
  }).text()
5903
5912
  );
5904
5913
  }
5905
- async function Hi(a, t) {
5914
+ async function zi(a, t) {
5906
5915
  const c = new FormData();
5907
5916
  for (let n = 0; n < t.length; n++)
5908
5917
  c.append("files", t[n]);
@@ -5919,10 +5928,10 @@ async function Hi(a, t) {
5919
5928
  };
5920
5929
  }
5921
5930
  }
5922
- var zi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, q = (a, t, c, i) => {
5931
+ var Hi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, q = (a, t, c, i) => {
5923
5932
  for (var n = i > 1 ? void 0 : i ? Bi(t, c) : t, d = a.length - 1, l; d >= 0; d--)
5924
5933
  (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
5925
- return i && n && zi(t, c, n), n;
5934
+ return i && n && Hi(t, c, n), n;
5926
5935
  };
5927
5936
  const Oe = ft.noConflict();
5928
5937
  Oe.setLevel("info");
@@ -5993,7 +6002,7 @@ let P = class extends Q {
5993
6002
  return x.disabled && !this.alwaysOpen ? (Oe.error("Bot is disabled"), null) : y`
5994
6003
  <div class="cb-wrapper" style="${x.open ? "display:flex" : "display:none"}">
5995
6004
  <cb-header title="${this.name}" exportparts="header, header-logo, header-title, header-close"></cb-header>
5996
- <cb-message-list .messages=${x.messages} .actions=${x.actions} .form=${x.form} exportparts="form"></cb-message-list>
6005
+ <cb-message-list .messages=${x.messages} .actions=${x.actions} .form=${x.form} exportparts="bot-message-list, bot-message"></cb-message-list>
5997
6006
  ${this.renderUserInput()}
5998
6007
  </div>
5999
6008
  <cb-anchor ?open=${x.open} exportparts="anchor"></cb-anchor>
@@ -6048,6 +6057,14 @@ let P = class extends Q {
6048
6057
  const t = a.detail, c = (t == null ? void 0 : t.type) || null;
6049
6058
  if (c)
6050
6059
  switch (c) {
6060
+ case "botInitialized": {
6061
+ this.emit("c7o:bot:botInitialized", {
6062
+ detail: {
6063
+ botSettings: t.botSettings
6064
+ }
6065
+ });
6066
+ break;
6067
+ }
6051
6068
  case "actionPresented": {
6052
6069
  this.emit("c7o:bot:actionPresented", {
6053
6070
  detail: {
@@ -6098,7 +6115,7 @@ let P = class extends Q {
6098
6115
  }
6099
6116
  };
6100
6117
  if (x.addMessage(i), this.uploadFileUrl) {
6101
- const n = await Hi(this.uploadFileUrl, t.files);
6118
+ const n = await zi(this.uploadFileUrl, t.files);
6102
6119
  n.code === 0 && n.data && (i.isUploading = !1, i.data = {
6103
6120
  files: n.data
6104
6121
  }, x.updateMessage(i));
@@ -6123,7 +6140,7 @@ let P = class extends Q {
6123
6140
  (t = this._messageList) == null || t.scrollToBottom();
6124
6141
  }
6125
6142
  };
6126
- P.styles = za;
6143
+ P.styles = Ha;
6127
6144
  q([
6128
6145
  C({ type: Boolean, attribute: "display-license" })
6129
6146
  ], P.prototype, "displayLicense", 2);