@enegelai/bot-widget 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
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;
3
- var oe = (a, t, c) => ($a(a, typeof t != "symbol" ? t + "" : t, c), c);
1
+ var Aa = Object.defineProperty;
2
+ var $a = (a, e, c) => e in a ? Aa(a, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : a[e] = c;
3
+ var se = (a, e, c) => ($a(a, typeof e != "symbol" ? e + "" : e, c), c);
4
4
  import { css as U, LitElement as dt, html as m, svg as Be } from "lit";
5
5
  import { property as C, customElement as Y, queryAll as Wt, query as De, eventOptions as kt } from "lit/decorators.js";
6
6
  import { unsafeHTML as de } from "lit-html/directives/unsafe-html.js";
@@ -43,20 +43,20 @@ const rt = class rt extends Event {
43
43
  super(rt.eventName, {
44
44
  cancelable: !1
45
45
  });
46
- oe(this, "key");
47
- oe(this, "state");
48
- oe(this, "value");
46
+ se(this, "key");
47
+ se(this, "state");
48
+ se(this, "value");
49
49
  this.key = c, this.value = i, this.state = n;
50
50
  }
51
51
  };
52
- oe(rt, "eventName", "lit-state-changed");
53
- let Te = rt;
54
- const ja = (a, t) => t !== a && (t === t || a === a);
52
+ se(rt, "eventName", "lit-state-changed");
53
+ let Ae = rt;
54
+ const Oa = (a, e) => e !== a && (e === e || a === a);
55
55
  class Ke extends EventTarget {
56
56
  constructor() {
57
57
  super();
58
58
  // hold a reference to hooks
59
- oe(this, "hookMap", /* @__PURE__ */ new Map());
59
+ se(this, "hookMap", /* @__PURE__ */ new Map());
60
60
  this.constructor.finalize(), this.propertyMap && [...this.propertyMap].forEach(([c, i]) => {
61
61
  if (i.initialValue !== void 0) {
62
62
  const n = Yt(i.initialValue);
@@ -85,14 +85,14 @@ class Ke extends EventTarget {
85
85
  Object.defineProperty(this.prototype, c, d);
86
86
  }
87
87
  static getPropertyDescriptor(c, i, n) {
88
- const d = (n == null ? void 0 : n.hasChanged) || ja;
88
+ const d = (n == null ? void 0 : n.hasChanged) || Oa;
89
89
  return {
90
90
  get() {
91
91
  return this[i];
92
92
  },
93
93
  set(l) {
94
- const v = this[c];
95
- this[i] = l, d(l, v) === !0 && this.dispatchStateEvent(c, l, this);
94
+ const x = this[c];
95
+ this[i] = l, d(l, x) === !0 && this.dispatchStateEvent(c, l, this);
96
96
  },
97
97
  configurable: !0,
98
98
  enumerable: !0
@@ -120,26 +120,26 @@ 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.
130
- oe(Ke, "propertyMap"), oe(Ke, "properties"), oe(Ke, "finalized", !1);
130
+ se(Ke, "propertyMap"), se(Ke, "properties"), se(Ke, "finalized", !1);
131
131
  class Xt {
132
- constructor(t, c, i) {
133
- oe(this, "host");
134
- oe(this, "state");
135
- oe(this, "callback");
136
- this.host = t, this.state = c, this.host.addController(this), this.callback = i || (() => this.host.requestUpdate());
132
+ constructor(e, c, i) {
133
+ se(this, "host");
134
+ se(this, "state");
135
+ se(this, "callback");
136
+ this.host = e, 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
  /**
@@ -147,31 +147,31 @@ class Xt {
147
147
  * Copyright 2017 Google LLC
148
148
  * SPDX-License-Identifier: BSD-3-Clause
149
149
  */
150
- const Zt = ({ finisher: a, descriptor: t }) => (c, i) => {
150
+ const Zt = ({ finisher: a, descriptor: e }) => (c, i) => {
151
151
  var n;
152
152
  if (i === void 0) {
153
- const d = (n = c.originalKey) !== null && n !== void 0 ? n : c.key, l = t != null ? { kind: "method", placement: "prototype", key: d, descriptor: t(c.key) } : { ...c, key: d };
154
- return a != null && (l.finisher = function(v) {
155
- a(v, d);
153
+ const d = (n = c.originalKey) !== null && n !== void 0 ? n : c.key, l = e != null ? { kind: "method", placement: "prototype", key: d, descriptor: e(c.key) } : { ...c, key: d };
154
+ return a != null && (l.finisher = function(x) {
155
+ a(x, d);
156
156
  }), l;
157
157
  }
158
158
  {
159
159
  const d = c.constructor;
160
- t !== void 0 && Object.defineProperty(c, i, t(i)), a == null || a(d, i);
160
+ e !== void 0 && Object.defineProperty(c, i, e(i)), a == null || a(d, i);
161
161
  }
162
162
  };
163
163
  function X(a) {
164
164
  return Zt({
165
165
  // @ts-ignore ctor is typof State and not typeof ReactiveElement
166
- finisher: (t, c) => {
167
- if (Object.getOwnPropertyDescriptor(t.prototype, c))
166
+ finisher: (e, c) => {
167
+ if (Object.getOwnPropertyDescriptor(e.prototype, c))
168
168
  throw new Error("@property must be called before all state decorators");
169
- return t.propertyMap || (t.propertyMap = /* @__PURE__ */ new Map()), t.propertyMap.set(c, { ...a, initialValue: a == null ? void 0 : a.value, resetValue: a == null ? void 0 : a.value }), t.createProperty(c, a);
169
+ return e.propertyMap || (e.propertyMap = /* @__PURE__ */ new Map()), e.propertyMap.set(c, { ...a, initialValue: a == null ? void 0 : a.value, resetValue: a == null ? void 0 : a.value }), e.createProperty(c, a);
170
170
  }
171
171
  });
172
172
  }
173
- function Oa(a, t) {
174
- if (a !== null && (t === Boolean || t === Number || t === Array || t === Object))
173
+ function ja(a, e) {
174
+ if (a !== null && (e === Boolean || e === Number || e === Array || e === Object))
175
175
  try {
176
176
  a = JSON.parse(a);
177
177
  } catch {
@@ -186,22 +186,22 @@ const Pa = {
186
186
  function pe(a) {
187
187
  return a = { ...Pa, ...a }, Zt({
188
188
  // @ts-ignore ctor is typof State and not typeof ReactiveElement
189
- finisher: (t, c) => {
190
- const i = Object.getOwnPropertyDescriptor(t.prototype, c);
189
+ finisher: (e, c) => {
190
+ const i = Object.getOwnPropertyDescriptor(e.prototype, c);
191
191
  if (!i)
192
192
  throw new Error("@local-storage decorator need to be called after @property");
193
- const n = `${(a == null ? void 0 : a.prefix) || ""}_${(a == null ? void 0 : a.key) || String(c)}`, d = t.propertyMap.get(c), l = d == null ? void 0 : d.type;
193
+ const n = `${(a == null ? void 0 : a.prefix) || ""}_${(a == null ? void 0 : a.key) || String(c)}`, d = e.propertyMap.get(c), l = d == null ? void 0 : d.type;
194
194
  if (d) {
195
195
  const L = d.initialValue;
196
- d.initialValue = () => Oa(localStorage.getItem(n), l) ?? Yt(L), t.propertyMap.set(c, { ...d, ...a });
196
+ d.initialValue = () => ja(localStorage.getItem(n), l) ?? Yt(L), e.propertyMap.set(c, { ...d, ...a });
197
197
  }
198
- const v = i == null ? void 0 : i.set, D = {
198
+ const x = i == null ? void 0 : i.set, D = {
199
199
  ...i,
200
200
  set: function(L) {
201
- L !== void 0 && localStorage.setItem(n, l === Object || l === Array ? JSON.stringify(L) : L), v && v.call(this, L);
201
+ L !== void 0 && localStorage.setItem(n, l === Object || l === Array ? JSON.stringify(L) : L), x && x.call(this, L);
202
202
  }
203
203
  };
204
- Object.defineProperty(t.prototype, c, D);
204
+ Object.defineProperty(e.prototype, c, D);
205
205
  }
206
206
  });
207
207
  }
@@ -211,10 +211,10 @@ function Jt(a) {
211
211
  }
212
212
  var Kt = { exports: {} };
213
213
  (function(a) {
214
- (function(t, c) {
215
- a.exports ? a.exports = c() : t.log = c();
214
+ (function(e, c) {
215
+ a.exports ? a.exports = c() : e.log = c();
216
216
  })(Gt, function() {
217
- var t = function() {
217
+ var e = function() {
218
218
  }, c = "undefined", i = typeof window !== c && typeof window.navigator !== c && /Trident\/|MSIE /.test(window.navigator.userAgent), n = [
219
219
  "trace",
220
220
  "debug",
@@ -222,46 +222,46 @@ var Kt = { exports: {} };
222
222
  "warn",
223
223
  "error"
224
224
  ];
225
- function d(A, z) {
226
- var R = A[z];
227
- if (typeof R.bind == "function")
228
- return R.bind(A);
225
+ function d(E, H) {
226
+ var q = E[H];
227
+ if (typeof q.bind == "function")
228
+ return q.bind(E);
229
229
  try {
230
- return Function.prototype.bind.call(R, A);
230
+ return Function.prototype.bind.call(q, E);
231
231
  } catch {
232
232
  return function() {
233
- return Function.prototype.apply.apply(R, [A, arguments]);
233
+ return Function.prototype.apply.apply(q, [E, 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 x(E) {
241
+ return E === "debug" && (E = "log"), typeof console === c ? !1 : E === "trace" && i ? l : console[E] !== void 0 ? d(console, E) : console.log !== void 0 ? d(console, "log") : e;
242
242
  }
243
- function S(A, z) {
244
- for (var R = 0; R < n.length; R++) {
245
- var $ = n[R];
246
- this[$] = R < A ? t : this.methodFactory($, A, z);
243
+ function S(E, H) {
244
+ for (var q = 0; q < n.length; q++) {
245
+ var $ = n[q];
246
+ this[$] = q < E ? e : this.methodFactory($, E, H);
247
247
  }
248
248
  this.log = this.debug;
249
249
  }
250
- function D(A, z, R) {
250
+ function D(E, H, q) {
251
251
  return function() {
252
- typeof console !== c && (S.call(this, z, R), this[A].apply(this, arguments));
252
+ typeof console !== c && (S.call(this, H, q), this[E].apply(this, arguments));
253
253
  };
254
254
  }
255
- function L(A, z, R) {
256
- return v(A) || D.apply(this, arguments);
255
+ function L(E, H, q) {
256
+ return x(E) || D.apply(this, arguments);
257
257
  }
258
- function E(A, z, R) {
258
+ function M(E, H, q) {
259
259
  var $ = this, he;
260
- z = z ?? "WARN";
260
+ H = H ?? "WARN";
261
261
  var ee = "loglevel";
262
- typeof A == "string" ? ee += ":" + A : typeof A == "symbol" && (ee = void 0);
263
- function bt(w) {
264
- var ie = (n[w] || "silent").toUpperCase();
262
+ typeof E == "string" ? ee += ":" + E : typeof E == "symbol" && (ee = void 0);
263
+ function bt(v) {
264
+ var ie = (n[v] || "silent").toUpperCase();
265
265
  if (!(typeof window === c || !ee)) {
266
266
  try {
267
267
  window.localStorage[ee] = ie;
@@ -275,21 +275,21 @@ var Kt = { exports: {} };
275
275
  }
276
276
  }
277
277
  function Ie() {
278
- var w;
278
+ var v;
279
279
  if (!(typeof window === c || !ee)) {
280
280
  try {
281
- w = window.localStorage[ee];
281
+ v = window.localStorage[ee];
282
282
  } catch {
283
283
  }
284
- if (typeof w === c)
284
+ if (typeof v === c)
285
285
  try {
286
286
  var ie = window.document.cookie, te = ie.indexOf(
287
287
  encodeURIComponent(ee) + "="
288
288
  );
289
- te !== -1 && (w = /^([^;]+)/.exec(ie.slice(te))[1]);
289
+ te !== -1 && (v = /^([^;]+)/.exec(ie.slice(te))[1]);
290
290
  } catch {
291
291
  }
292
- return $.levels[w] === void 0 && (w = void 0), w;
292
+ return $.levels[v] === void 0 && (v = void 0), v;
293
293
  }
294
294
  }
295
295
  function Ne() {
@@ -305,50 +305,50 @@ var Kt = { exports: {} };
305
305
  }
306
306
  }
307
307
  }
308
- $.name = A, $.levels = {
308
+ $.name = E, $.levels = {
309
309
  TRACE: 0,
310
310
  DEBUG: 1,
311
311
  INFO: 2,
312
312
  WARN: 3,
313
313
  ERROR: 4,
314
314
  SILENT: 5
315
- }, $.methodFactory = R || L, $.getLevel = function() {
315
+ }, $.methodFactory = q || L, $.getLevel = function() {
316
316
  return he;
317
- }, $.setLevel = function(w, ie) {
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)
317
+ }, $.setLevel = function(v, ie) {
318
+ if (typeof v == "string" && $.levels[v.toUpperCase()] !== void 0 && (v = $.levels[v.toUpperCase()]), typeof v == "number" && v >= 0 && v <= $.levels.SILENT) {
319
+ if (he = v, ie !== !1 && bt(v), S.call($, v, E), typeof console === c && v < $.levels.SILENT)
320
320
  return "No console available for logging";
321
321
  } else
322
- throw "log.setLevel() called with invalid level: " + w;
323
- }, $.setDefaultLevel = function(w) {
324
- z = w, Ie() || $.setLevel(w, !1);
322
+ throw "log.setLevel() called with invalid level: " + v;
323
+ }, $.setDefaultLevel = function(v) {
324
+ H = v, Ie() || $.setLevel(v, !1);
325
325
  }, $.resetLevel = function() {
326
- $.setLevel(z, !1), Ne();
327
- }, $.enableAll = function(w) {
328
- $.setLevel($.levels.TRACE, w);
329
- }, $.disableAll = function(w) {
330
- $.setLevel($.levels.SILENT, w);
326
+ $.setLevel(H, !1), Ne();
327
+ }, $.enableAll = function(v) {
328
+ $.setLevel($.levels.TRACE, v);
329
+ }, $.disableAll = function(v) {
330
+ $.setLevel($.levels.SILENT, v);
331
331
  };
332
332
  var Se = Ie();
333
- Se == null && (Se = z), $.setLevel(Se, !1);
333
+ Se == null && (Se = H), $.setLevel(Se, !1);
334
334
  }
335
- var T = new E(), F = {};
336
- T.getLogger = function(z) {
337
- if (typeof z != "symbol" && typeof z != "string" || z === "")
335
+ var A = new M(), F = {};
336
+ A.getLogger = function(H) {
337
+ if (typeof H != "symbol" && typeof H != "string" || H === "")
338
338
  throw new TypeError("You must supply a name when creating a logger.");
339
- var R = F[z];
340
- return R || (R = F[z] = new E(
341
- z,
342
- T.getLevel(),
343
- T.methodFactory
344
- )), R;
339
+ var q = F[H];
340
+ return q || (q = F[H] = new M(
341
+ H,
342
+ A.getLevel(),
343
+ A.methodFactory
344
+ )), q;
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
354
  var za = Kt.exports;
@@ -511,12 +511,12 @@ const ft = /* @__PURE__ */ Jt(za), Ha = U`
511
511
  color: white;
512
512
  }
513
513
  `;
514
- var Ba = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, Ct = (a, t, c, i) => {
515
- for (var n = i > 1 ? void 0 : i ? qa(t, c) : t, d = a.length - 1, l; d >= 0; d--)
516
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
517
- return i && n && Ba(t, c, n), n;
514
+ var Ba = Object.defineProperty, Ra = Object.getOwnPropertyDescriptor, Ct = (a, e, c, i) => {
515
+ for (var n = i > 1 ? void 0 : i ? Ra(e, c) : e, d = a.length - 1, l; d >= 0; d--)
516
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
517
+ return i && n && Ba(e, c, n), n;
518
518
  };
519
- let qe = class extends dt {
519
+ let Re = class extends dt {
520
520
  constructor() {
521
521
  super(...arguments), this.color = "primary", this.svg = "";
522
522
  }
@@ -524,37 +524,37 @@ let qe = class extends dt {
524
524
  return m`<span class="cb-icon" part="base">${de(this.svg)}</span>`;
525
525
  }
526
526
  };
527
- qe.styles = Qt;
527
+ Re.styles = Qt;
528
528
  Ct([
529
529
  C({ type: String })
530
- ], qe.prototype, "color", 2);
530
+ ], Re.prototype, "color", 2);
531
531
  Ct([
532
532
  C({ type: String })
533
- ], qe.prototype, "svg", 2);
534
- qe = Ct([
533
+ ], Re.prototype, "svg", 2);
534
+ Re = Ct([
535
535
  Y("cb-icon")
536
- ], qe);
537
- let Va = (a) => crypto.getRandomValues(new Uint8Array(a)), Ra = (a, t, c) => {
538
- let i = (2 << Math.log(a.length - 1) / Math.LN2) - 1, n = -~(1.6 * i * t / a.length);
539
- return (d = t) => {
536
+ ], Re);
537
+ let Va = (a) => crypto.getRandomValues(new Uint8Array(a)), qa = (a, e, c) => {
538
+ let i = (2 << Math.log(a.length - 1) / Math.LN2) - 1, n = -~(1.6 * i * e / a.length);
539
+ return (d = e) => {
540
540
  let l = "";
541
541
  for (; ; ) {
542
- let v = c(n), S = n;
542
+ let x = c(n), S = n;
543
543
  for (; S--; )
544
- if (l += a[v[S] & i] || "", l.length === d)
544
+ if (l += a[x[S] & i] || "", l.length === d)
545
545
  return l;
546
546
  }
547
547
  };
548
- }, Da = (a, t = 21) => Ra(a, t, Va);
548
+ }, Da = (a, e = 21) => qa(a, e, Va);
549
549
  const Fa = Da("1234567890abcdefghijklmnopqrstuvwxyz", 10);
550
550
  function et(a = 10) {
551
551
  return Fa(a);
552
552
  }
553
553
  function Na(a) {
554
- return new Promise((t, c) => {
554
+ return new Promise((e, c) => {
555
555
  try {
556
556
  navigator.clipboard.writeText(a).then(() => {
557
- t(a);
557
+ e(a);
558
558
  });
559
559
  } catch (i) {
560
560
  c(i);
@@ -562,22 +562,22 @@ function Na(a) {
562
562
  });
563
563
  }
564
564
  function Ua(a = !0) {
565
- return new Promise((t) => {
565
+ return new Promise((e) => {
566
566
  const c = document.createElement("input");
567
567
  c.type = "file", a && (c.multiple = !0), c.style.display = "none", c.addEventListener("change", () => {
568
568
  const i = Array.prototype.slice.call(c.files);
569
- t(i);
569
+ e(i);
570
570
  }), c.click();
571
571
  });
572
572
  }
573
573
  const G = ft.noConflict();
574
574
  G.setLevel("info");
575
575
  class Wa {
576
- constructor(t = {}) {
577
- this.id = 0, this.url = (t == null ? void 0 : t.url) || null, this.orgId = (t == null ? void 0 : t.orgId) || null, this.botId = (t == null ? void 0 : t.botId) || null, this.convId = (t == null ? void 0 : t.convId) || null, this._options = t || {}, this._ws = null, this.started = !1, this.connected = !1, this.onMessage = (t == null ? void 0 : t.onMessage) || null, this.queue = [], this.pause = (c) => new Promise((i) => setTimeout(i, c)), G.info(`WSC: Created, url: ${this.url}`);
576
+ constructor(e = {}) {
577
+ this.id = 0, this.url = (e == null ? void 0 : e.url) || null, this.orgId = (e == null ? void 0 : e.orgId) || null, this.botId = (e == null ? void 0 : e.botId) || null, this.convId = (e == null ? void 0 : e.convId) || null, this._options = e || {}, this._ws = null, this.started = !1, this.connected = !1, this.onMessage = (e == null ? void 0 : e.onMessage) || null, this.queue = [], this.pause = (c) => new Promise((i) => setTimeout(i, c)), G.info(`WSC: Created, url: ${this.url}`);
578
578
  }
579
- connect(t = {}) {
580
- if (this.url = (t == null ? void 0 : t.url) || this.url, this.connected = !1, !this.url)
579
+ connect(e = {}) {
580
+ if (this.url = (e == null ? void 0 : e.url) || this.url, this.connected = !1, !this.url)
581
581
  return G.error("WSC: URL must be provided to connect"), null;
582
582
  const c = this.url;
583
583
  G.info(`WSC: Connecting to ${c} ...`), this._ws = new WebSocket(c);
@@ -624,19 +624,19 @@ class Wa {
624
624
  }
625
625
  // Attempt to connect, and reconnect if failed
626
626
  async startOld() {
627
- let t = 1, c = !0;
627
+ let e = 1, c = !0;
628
628
  for (; c; ) {
629
- if (G.info(`WSC: start: connecting, attempt ${t}`), await this.connect(), this.connected)
629
+ if (G.info(`WSC: start: connecting, attempt ${e}`), await this.connect(), this.connected)
630
630
  return G.info("WSC: connected"), !0;
631
- t++, c = t <= 4, c && await this.pause(1e3);
631
+ e++, c = e <= 4, c && await this.pause(1e3);
632
632
  }
633
- return G.error(`WSC: start: failed to connect after ${t} attempts, exiting`), !1;
633
+ return G.error(`WSC: start: failed to connect after ${e} attempts, exiting`), !1;
634
634
  }
635
- handleWscMessage(t) {
636
- this.onMessage && typeof this.onMessage == "function" && this.onMessage(t);
635
+ handleWscMessage(e) {
636
+ this.onMessage && typeof this.onMessage == "function" && this.onMessage(e);
637
637
  }
638
638
  sendClientInfoMessage() {
639
- const t = {
639
+ const e = {
640
640
  type: "clientInfo",
641
641
  id: et(),
642
642
  data: {
@@ -645,19 +645,19 @@ class Wa {
645
645
  //metaTags: extractedMetaTags, // todo consider
646
646
  }
647
647
  };
648
- this._ws.send(JSON.stringify(t));
648
+ this._ws.send(JSON.stringify(e));
649
649
  }
650
- sendMessage(t) {
650
+ sendMessage(e) {
651
651
  if (!this.connected) {
652
- this.queue.push(JSON.stringify(t));
652
+ this.queue.push(JSON.stringify(e));
653
653
  return;
654
654
  }
655
- this._ws.send(JSON.stringify(t));
655
+ this._ws.send(JSON.stringify(e));
656
656
  }
657
657
  sendQueuedMessages() {
658
658
  if (Array.isArray(this.queue) && this.queue.length > 0)
659
- for (let t = 0; t < this.queue.length; t++)
660
- G.info("Sending queued message", this.queue[t]), this._ws.send(this.queue[t]);
659
+ for (let e = 0; e < this.queue.length; e++)
660
+ G.info("Sending queued message", this.queue[e]), this._ws.send(this.queue[e]);
661
661
  this.queue = [];
662
662
  }
663
663
  // Request assumes that response will be received.
@@ -695,80 +695,80 @@ 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) {
699
- return function t(c) {
700
- return arguments.length === 0 || V(c) ? t : a.apply(this, arguments);
698
+ function Ee(a) {
699
+ return function e(c) {
700
+ return arguments.length === 0 || V(c) ? e : a.apply(this, arguments);
701
701
  };
702
702
  }
703
703
  function ue(a) {
704
- return function t(c, i) {
704
+ return function e(c, i) {
705
705
  switch (arguments.length) {
706
706
  case 0:
707
- return t;
707
+ return e;
708
708
  case 1:
709
- return V(c) ? t : Ae(function(n) {
709
+ return V(c) ? e : Ee(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) ? e : V(c) ? Ee(function(n) {
714
714
  return a(n, i);
715
- }) : V(i) ? Ae(function(n) {
715
+ }) : V(i) ? Ee(function(n) {
716
716
  return a(c, n);
717
717
  }) : a(c, i);
718
718
  }
719
719
  };
720
720
  }
721
721
  function Ya(a) {
722
- return function t(c, i, n) {
722
+ return function e(c, i, n) {
723
723
  switch (arguments.length) {
724
724
  case 0:
725
- return t;
725
+ return e;
726
726
  case 1:
727
- return V(c) ? t : ue(function(d, l) {
727
+ return V(c) ? e : ue(function(d, l) {
728
728
  return a(c, d, l);
729
729
  });
730
730
  case 2:
731
- return V(c) && V(i) ? t : V(c) ? ue(function(d, l) {
731
+ return V(c) && V(i) ? e : V(c) ? ue(function(d, l) {
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
+ }) : Ee(function(d) {
736
736
  return a(c, i, d);
737
737
  });
738
738
  default:
739
- return V(c) && V(i) && V(n) ? t : V(c) && V(i) ? ue(function(d, l) {
739
+ return V(c) && V(i) && V(n) ? e : V(c) && V(i) ? ue(function(d, l) {
740
740
  return a(d, l, n);
741
741
  }) : V(c) && V(n) ? ue(function(d, l) {
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) ? Ee(function(d) {
746
746
  return a(d, i, n);
747
- }) : V(i) ? Ae(function(d) {
747
+ }) : V(i) ? Ee(function(d) {
748
748
  return a(c, d, n);
749
- }) : V(n) ? Ae(function(d) {
749
+ }) : V(n) ? Ee(function(d) {
750
750
  return a(c, i, d);
751
751
  }) : a(c, i, n);
752
752
  }
753
753
  };
754
754
  }
755
- const Xa = Number.isInteger || function(t) {
756
- return t << 0 === t;
755
+ const Xa = Number.isInteger || function(e) {
756
+ return e << 0 === e;
757
757
  };
758
758
  function Za(a) {
759
759
  return Object.prototype.toString.call(a) === "[object String]";
760
760
  }
761
- var Ga = /* @__PURE__ */ ue(function(t, c) {
762
- var i = t < 0 ? c.length + t : t;
761
+ var Ga = /* @__PURE__ */ ue(function(e, c) {
762
+ var i = e < 0 ? c.length + e : e;
763
763
  return Za(c) ? c.charAt(i) : c[i];
764
764
  });
765
765
  const Ja = Ga;
766
- var Ka = /* @__PURE__ */ ue(function(t, c) {
767
- return c == null || c !== c ? t : c;
766
+ var Ka = /* @__PURE__ */ ue(function(e, c) {
767
+ return c == null || c !== c ? e : c;
768
768
  });
769
769
  const Qa = Ka;
770
- var ec = /* @__PURE__ */ ue(function(t, c) {
771
- return t.map(function(i) {
770
+ var ec = /* @__PURE__ */ ue(function(e, c) {
771
+ return e.map(function(i) {
772
772
  for (var n = c, d = 0, l; d < i.length; ) {
773
773
  if (n == null)
774
774
  return;
@@ -778,44 +778,44 @@ var ec = /* @__PURE__ */ ue(function(t, c) {
778
778
  });
779
779
  });
780
780
  const tc = ec;
781
- var ac = /* @__PURE__ */ ue(function(t, c) {
782
- return tc([t], c)[0];
781
+ var ac = /* @__PURE__ */ ue(function(e, c) {
782
+ return tc([e], c)[0];
783
783
  });
784
784
  const cc = ac;
785
- var ic = /* @__PURE__ */ Ya(function(t, c, i) {
786
- return Qa(t, cc(c, i));
785
+ var ic = /* @__PURE__ */ Ya(function(e, c, i) {
786
+ return Qa(e, cc(c, i));
787
787
  });
788
788
  const gt = ic, nc = "fffbd0c40003a861a6f64deb05ce8fbd1dc1ee6979000bf3230f3195138b950cbe3649439256307747d31c26065d09cfae70d799f0a043c6a90008c0101188082314680d008619c9079b61dc806a921a220095277a60d4131e44143d53814e10f4d06ba6491eb478900a8d59016632a23e0fa358875c770146cc650c1c499dcb9b0965d7500106c321427219428febbdafb2b5d76979a75ae40018d025f96f71bad4b0257666051808e5b74c34bf2db9660bb0e24b2a35886616f617013a24104242304600910b1130dc7b4e81750bb1216e880432ac0d75b0a2a1834f45e8e9a279a9c6c22cc9a7e3ac01cc5335e8c0d97180c960bad7998ce9ac025a2f1a0c888e02c46508045a96a20a60c91980100828a917425f96ddc64bc2ea19146c50b00bde68319005d85d10e462314ae197f0b48c74bfe986ced9dac3a9bbfad7e8f7ac2a525253c6e36cad4dd7c20e2ec4842dba61cbf30f0f7d628635005a66e63ec63560f22a48c694034a695617e603c12c05077310c0923018053379a48d1e921e409b28546c46619d8fa6c9b019ea20762d318e34c6291699d98662a61861204fda2a7933d57c1d023391f8605262a1598449c1ca332e084cb25a3198ac94666361b99f05c67c1aba0151b18d456ec8e0b4c667924153ba632409114cc587c7867ca8c047dcd7a834bc8d2a033a141df48ab82a803bd1a8651a215e356c6161b062114cb841dd89589b05f0d10ad255c4d70d8ad245e4abcd6b33fca8d6af5cc3db8d9244511ab2206a56c885690ad12cc1ba16308528d539daa40b22baf35eb61a7044a988132e926b754d82ea8ca85199ad5c42c0d62d35eb8d7301d56ef5b26c451748198c2a22c319b24ab67a246b186c8af0d54354c0957c342d9a2a4d7b3245e585c4d7254e107501450bb46abbfa38b2331996d9bae08953352c48af43d5c7b08b6572a44e0b11775fd8cbb2b0b0343230c6c5add2ca5ac8d549765977ff78e59659ca49adde749c6789409753bcff43d1a8d46a532da5a5a5a5a5a5a5a6a6a6a6a6a6a6a6a6ab671c71c71c6ae4141414140a0a0a0a0c2b06e0b039c1829859998b165991a5d2aa598e0a714183727471921e5721a1037a9c2fb7a1b9c0dc99c6ab19b821219de39219b82a521908908987d2ab1aab194159219cb31211fffbd2c42383f4bda0d20ffba7c624b3dd01eee938b82f149f14b82951c14d290908c90d294c90a598b0948572ce584a434a54a52b4a42c3829592199219219a52921160908d295294b1c79b70dc9b72dc9b70dc15b71e6dc37058e3cdb8e34db9e3cadb82c37056dc95f1e7c6f1e58e3cadb8f2c4845721f96242f2c485e7214865721f962422c484721c845890cb121f9c872116242f2b908e4390bfcae432b908ae43f390e432c486721c85e5890cae432b90ce42908b121f9c8721962432c484721c865890ce4290bcae432b90bcae43390a432c485e58908e4290bcb121f95c86721c865890cae432b90cae42ff390e422b90cae422b90fcb121795c865721795c86721487e721c87e58908ae422b90bcb12195c845721796242f2c48658908ae43ff390e43fff390e422c4865890cb121ff9c872196243f2b90bcae42fff2c48458908b12116243f2b90ffcae43fff2c485e5890bfffcae422c485fe5721796243f2b90bfcae42ffff2b90ffcae432c48460a40a6618626a61ce3d466883d6645657458106350e2d6321a39532150c231a421532413d3399952b690e8430cc534d4ad0638ad993418742c24072f7385897cae5e348120397e5e348521397e5e2b734cd8364b06c160d93364d82c0ea6838ea63a0e863a8e9e581d4ca0283cd5d284b050795942650143e6e1c1b87058706e5c95b9370e4dcb92c382b706e1c15d22c522ba7e574cae9f9d2a458a474a995d32c52ff2ba4574cb148b14bfcb14cb148ae99629795d22c532c533a74cae995d2f3a74ce9533a74cb148e9d2f3a74ce9d22ba474e99d2a458a674a99d3a65748ae9f9d2a474a91629962995d23a748e9522c53f3a74bce9d3f2ba65748afa9f5ea57d4b1d3cafa963a163a7963a163a1f5ebfe57d3fcfa742bea7d7a15f42bea7d7a1f5e9e7d3af963a9f4ea57d4fa752c74f2c75f2c743ebd3fcafaf963a7ff963a79f4e9fe57d7ce9d22c532ba474a91d3a674a97962996297f9d2a658a458a658a458a4574cae916299d2a474a995d22c522c533a54bcae915d32c522c52f3a548ae99629795d3f30c6831b320f483c329501f8331a98f233a001f9342646273295483d326307f03331098c307e52ae3189883d3186475630e704da30e744db320f0627329501f831040411307e4fffbd2c42383f3fdacd40ff6b68668b3dc81eeed7841031044a54318984112a8c4e641e83f26208082260fc0822560fc183f041e183f00fc183f20fc983f20fc983f20fc95896e60bf863460bf86365805f8c17e0c68ac31b2b5f8f1bc68d7fc68d7f5fcaf1b35f97e35f97e2c2fc585fcb0bf9e36bf9617e2b5f8d7f5f8ad7f2c2fc6bfafe56bf9e34bf79617f3c6f1bf2b5fcb0bf9afcbf95afc585f8d7e5fcb0bf611fc419f8f08fe7833f1e0cfcf847f308fe7833f1f067e3c19f9067e308fe7c23f8c23f9067e40ff3f8067e20cfc047f00cfc611fc81fe3f207f9fc033f211fcc0ff1f903fc7e423f803fcfe423f903fcfe00ff3f8833f011fc847f211fc047f303fc7e211fc01fe3f211fc033f011fc7067e40ff3f908fe023f808fe00ff1f903fcfe019f803fc7e419f808fe019f9067e40ff1f9067e211fc01fe3f3c19f8e0cfcc23f9067e40ff3f8067e023f808fe60cfcc19f8c19f9847f211fc047f011fc033f1067e60cfcf833f25808830881d435e33e33263062346d46d31d427b31d41d4346d3c633201d5308827a308846d351212e32267a39ea7a34b92f3221d537552f32252e2b4b8dd5c80c88c84e7a4bcb0ea9ba9e315a5e697baa644cf473da5e58220c894bcb0449a5e449612ff2c110584bcb0447991044191244160892b4bfcc88224ac882b2a4d0a114ca8114c44114ac442c089e562279588856c458633e362f3e362362623e3e3f2be23e3e32b633e263f2b88fffff2c44f95c47f96227ce2224e2620b11071310713105889389882c44f95c41c44496220ae23cae20e2627cb1127111257105889f2c449c4c416220ae24e2224e2620ae24b1105713e588838988389892c44f9c44416224e2220ae20e2223cae27cae23ce2220e2620b1105711e5712571271111e57127131257127111271313fe713125712588938988388892c4479c4c41c44416224ae24e2220ae20e2620b11058882c44ffff95c4795c4ff95c415c416220ae20ae20b11271310571271313e58882c44f95c49c4c4ff95c416224e2627fce2224e2220e2220ae20b111e57107111071111fe5888ff389882c03a18838cc99ca16b996b8501ad09db99db86c161e34cb0c730c6641d4c664f7cc570e54c570570cb08734d2b4b08ac360cb5c284c86c574c57428fffbd2c41e03f239a2e40f7370c65fb39cc1eeed980c364364c360730c364edcc360364db2d936c734f9bcd3e6b60db0d82c734db3cd36cb60adb27068399d732588319d20e7068399d20de5850f9d75405850796140575c3535335252353c32c611e1291a9e11614cd4d4cf0d4cf0948e8684e8684b14074140574058a12c509d0d09d0d09d0509d0501d050796363fcaf64af67ffcb1b257b1fe58d8f2b74375742b742c3a9baba15ba161d0dd1d4add0b0e9e6eaea56ea56ea5874374752c5096280e8680b14057405743e57407414058a12ba12ba02c50f96280b141e58a12ba12c5096280add0dd1d0dd1d0dd5d3cb0ea6eaea6e8ea58752b7537574374742b74374752b752c3a95ba15ba9baba1ba3a161d0dd1d4b0ea58742c3a7ffff96367ffffffffffffffffffffffcb0e856ebe5874f2c3a961d4dd1d7fcadd4b0e9e6e8ea58752b752c3af961d4add3cb0e86e8ebfe6e8ea587537474f2c3a161d7cdd5d4dd1d0dd5d4add3cc388588c9e8220c4b91b4c989388c58898cc5b4740c2a48c8c58c38ccb8898cc9ec220cc84c80c4b84bcc224754d4491b4c62988c63588ce2b88d2e224d2e224b0449f8f3d1a5c9719104499124415a5e6971106973aa58750d2e220d2e220d898cf8d8cd8d8cd898cd8d88ad8cd898cd8988b1c7e586336363f2c711b1311b1319618cd8d8cb0c6586236262363632c319618ccb8b8cbcbcb05c565c582e32e2e32f2f32f2e32f2f32f2f32f2f2c1796220ae24ae20b113e71313fe71111e5888388892b882c449b1b115b11b1311b13116188d898fcb0c66c6c45862363632b632b63ff2c319b1b1796224ae24b111e711125711e5713e5713e58882b882c441c4c4f9c4c4ff9c4c4f9c44495c49c4c416224ae24e2224e2627fcae20b1105711e5711fe7111071111fe57125713e57106c6c46c6c45863f2c3195b115b19b131796188ad8bcd8988b0c45862363632c319b1b19b131f9618bcad8fcd898cad8bcb112571257125888f2c44ff95c495c4ff95c47f96220e2624b11258882c441c444ffff96224b112571257105711e588838989f2c44d3045045310b0a932632e232630623562062316226236620e32c1b198850229885919194a88598220e81fc431160623589e23588622b18cde2988de3788c63588fefffbd2c42083f3559ee80f774bc682b4dcc1eee9782388c6278cb0b1161623388e32b588ac62398d633188632c0c46318c66319c46710c66310c66b1ac66318c46310c46310c46710c6563118c431f98c63199c63118c631960e3f318862f2c0c7e6310c45818cb031960622bc678f1163196319e3c658c478b1163179e2c658c65788f1623c58cb188f1622bc678b115e33c788f1623c58caf195e32bc5e71221c5885710e24438914ae29c58a71621c48a588a5714b110e2c438910e245f38b13ce2442b8a71621c58a5889e5714ae295c42c442b8a5713cae29c48858885714b110e24538910af115e22bc658c478b17f95e33c588af1ff9e2c678b19e2c678f1163179e2c478b1ff95e3f2c62f3c78fcb18bcaf196317f95e22bc7e5788f163f2c632bc5fe58c678f195e22c62f3c78bfcaf1163196317f95e32c622c633c58caf11e3c4578caf1f95e32c633c78bfcf1622c632c633c588b188af19e3c5e58c658c678f11e3c678f17ff96319829829986109a99a6b1319ef03a19ef0cc99150cc195d8cc99a683a18730f598ca89e99a615d995d2819fbecc9d755d95c54698a626980d26559dc71520c68357471520c6cc33075d8ea63a0ea68345468320e63a0e875d20c683a0c63aa0fe5841cd98664b0831a0e8318ea3a95a0e563a160752c20e63a8e86838e858418b03a160753148523309353148c22b14cb02918a42918a629160522b14cc5314cfaf52bea7d7a163a963a1f4ebe7d7a95f53ebd4faf43ebd0afa795f53ebd4afa963a1f5e87d3a963a15f43e9d0afa79f4e858e858e858ea57d0afa963a9f4ea7d7a9f4ea7d3a9f4e857d0afaff9f4e9fe7d3af95f52be858e857d4faf53ebd0faf53ebd4afa1f5e857d4b1d0afa9f5ea7d3a7963a15f43e9d0faf52be87d3a163a163af95f52be858ea57d4faf5f2bea58ebe58e87d7a15f42c742bea58ebe57d7ffcfaf52be9e7d7af95f5ffff2c75ff2be857d7ffcb1d0faf52c742c742c753e9d4afa95f52bea57d3cb1d4afa95f52c742bea57d0afaff963a95f43e9d0afa7f95f53ebd7fcfa753ebd3cafa15f42c743ebd4afaf95f5f2c752be857d7fcb1d5508000160382b0e0d954f0d94654deb7acc397acce7d10dea4f0d4b2c4cb02c4d311a0ad3134c0aa34c4ef33b8ab3059193460b03fffbd2c41a01f0c5a2f0aeeb34c619359dc1dde6682c04b32403834f43832403932443930e03932403932413c3240392c070648072561c9870489a7a48161c1b972587258726e5c9b87265e51ca2c65cb9cb2e65fe1cb94565ce59634a94ad21a44a584869529a4485694ad216129a54865cb1972e72e51962c65cb1972c565cb05ccbcb32e5ccb162b2c56b79acb1acb1aeb9acb1aeb9acb1aeb15ac6bae56b15ac56b15ca72485894e590e490b1295ca5894ae52b90ae539252c49e724a5897ce494b121cb2f9cb21cb29cb21c9215ca5890e497ce597cae42c4a57215c85894ae42b97cf9e4f9e3cb1c15f1e57c796393e38ff2be0f9e7caf92be0f8e4af92be0b1cff96392be0f9e0b1c15f058e0b1c796382c71e7cf3e7c7257c95f258e4b1c95f1e58e0af92be4b1c1639f2be7ce493cb127f9c9215c9e5721c9215cbfe72ca5893fcb1279c921cb29cb2f9cb29cb21cb29cb295c85890ae42b90ae42b93cb12795c857298701c1609034f2413901eb3094683091733344d033e0d132acaa34c4ee30957434c1313244382b398d3c4f0ace730e13d34f53d37ac3937ac3830e4382c07261c870648a786ca27a580e4ce244e44e4ace4ce0e4ce240ce240b072723226727058382b90339392b382b382c1c99c1c9c89c960e0ce4e0ce4e0b07067273e6727258392b38ff2c1c19c1c960e4b070670705838f2c1c19c1c99c9c19c1c159c159c960e4ace3ce44e0ce4e3fcce0e0b07058382b38339382b3933839396439252c4872ca72ca72ca57295c872485890ae53964f3965f39242c4be58e4af92be0b1cf96383e783e383e382c727c707cf07c727c73e58e0b1cf9f1c15f058e4f9e0b1c16382c727c7257c95f07cf27c707c727cf257c9f3c95f258e3caf83e792c73e58e0b1cf96392be0af92c7057c9f1cff95f058e0b1c16382be4f8e3ffcaf82be4b1c795f057c16383e392be0af82be4af82c71e57c796393e392be4f9e7fcaf9f2be4b1c795f3fe7c7258e7caf93e392be0b1c79f3cf95f257cf95f1fe57c79639ffff2c70a0800079603ecd71612cb09de71381f66aac420687e4226650cdc6176680617668061769dc58268332932930fb211343e211355621032115563328328343f0fa30fb0fb33280fb321021032112102b43e32112112b329fffbd2c42b01f3f1acdeaf777286a1355cc1eeecf82c1f467d1f5e7084207081f456c895977e65db2265d32265db207081f4583e8cfb3efccfa3e8b07d960fa33ecfb3fbfa2bfb2bfa3fbfa3fafa3fafb3fafb3fafb2bfa3fbfb3fafb3fafa2c7d963efcafe8fefe8b1f5e58fb3fafbf2c5d1dddd9dd5d1dddd162ecaeecb1747777477574577458ba3bbbb3bbbb2c5dff963ebfcb1f657f5e57f457f5e57f5e58fbfff3fafbf2bfa2bfa3fafaf3fafbff2bfbffff2c7d963ecfefe8fefeffffcb177e577658bb2c5d7962e8eeeebfcb17458bb2c5d1dd5d962ecaeecaeecb176577458ba2bbb2c5dff95dd15dd95dd1dddd7f95dd162e8aee8b17658ba3babb3baba3babb3baba3baba2bbb2bba2bba2c5d9dd5d15dd1dddd162e8eeee8b177e7f5f7fe58fa2bfa2bfbff3fafaf2bfbfff2bfa2c7d9fd7d7963ecb1f47f5f658fb2c7d163ecafebfcfefe8afebfffcfefecb1f5e57f457f7e58faff3fbfaf30e326333624e333632e231d546d312e1d530a8233323210b36ac7a31ec7a2c4f46eaba86318c46f18c67719c47315c6631ac46f19c658754c89224dd4c84f204bcc894bcd2f4bcd2f224e7a4b8ad2f34b8893220882c11056441a5e44191297160882c112644113e711125712588938989389893898838889f38889f388882b8838989f2b882c447f9618cb0c46c4c658633626336262363622b632b633636236263362622c319b1b19b1b19b1b195b179b131f9b1311b1311b17196188ad8cd8f88b1c656c65862363622c3195b115b196188d8d88ad8fcd898cad8cb0c45862363622c3195c415c495c416227ffcb11258892b8838989389892c441c4c416224ae20ae23ffce2620d8d8cad88b0c656c456c658632c31f95b19618cad88b0c5e6c4c66c4c7e5863362632c319b1b1f95b11b1319618cd8d88b11058882b892c4416224e2220b113e5889ffff2c4479c44415c415c4ff96224e2620b11257125710713125712571057105713e58892b88f38988388892c441c4c4796224b111e58882b882c44f95c416227ce2624b1105711fe58882b882c44795c4ff96223cae20ae23ffcae26f331e433b76dc30b95e3a3df73449133dd72835791335782f30bd1236a87a37d8c730b8c630bc7a331c2e357df730b82f31ec7a30bc2f30b87b344daa3fffbd2c41e83f005a0ee0eeb3706ce341c42bdd0003187a31e8c730b82e2b44ccc60b8cc61e8c7a31cdaa1e8b03d960c731ecc731ec7a30bc2f2b1e8c2e1e8b03d1ae5c6bbd16171ae5e6bbd15ae35cb8d72e2b5e7e97161795ae35ebcd7af2b5c6b979af5c6b97161795ae2c2f35cbffcd7ae2b5c56b8b0bcad715af2c2f35eb8d7af35ebcd72f35cbcd7ae35ebcb0b8b0bcb0b8ad79ae5e585e56bcb0b8ad79ae5e56bfcad796179ae5c585e6bbdff9af5c6b971af5c6bd7962e2bb8eebceeb8aeff2bbcaef2bbcb1795de58b8eebceeb8efbcaeffff2bbceeb8efbcaeef2bbbcaee3bef3beeffff2bb8b171df7962f2c5c58bfcaeff3bee3baeff3baf2bbceebcb171df795dc775c58bbcb17962ef2c5c77de58b8aef3bae3bae2bbcaee3bae3baf3baf3baf3bee2c5e77dde58bcaefffff2bbffcaef2bbfcaeef2c5e577ff9df7962f2bbfcaeef2c5de577162ef2bbcb17fff95de577960360c731e34da20e50cb58e4cd688b08d2b0734e5d9e30c730360b03306576576658639a61ae76c639a76c6b40958561b2695a76c561b0639a5847db58458360adcd2c58666c9b07615846e6d8658364dcc730dcc730cd8730acd83364d8f3361cc2c1b256e6959b258360acd92c1b1fe66c9b06e69b066c1b258364c741d4c751d0ad0631d47431d074f2c0ea63a8ea63a8e8563a160d83360d92b360acd82c1b2566cf99b06c99b26cf99b06c99b06c98e83a1607431d10631d4742b1d7cc751d0c751d0c741d3cac752b1d0ac752b1d0ac752c20e63a0ebe63a0e8563a18ea3a98e83a158e8563a958e863a8ea581d4b03a958e863a8ea63a8ea65094058284aca0f2b284ca1287fcca1287caca1ff3280a13284a1f2b280ca0280ca0280b0501594058280aca02c1405650960a02b284ca0280ca0280b050160a1f3280a03280a03280a1ff3284a1f2c14265014258284aca1ff3284a1fffff2c1b3e58363fffffffffffffffcacd8ff2c1425650194050799425095942565079940509594258284aca12b283caca13284a0ff2b284b050160a1f2c1405650194250960a0f2b284aca12b283cca1287fcaca12b284b050da03028040204010140a02010080300640ae302500803053c24f30d7c2a930ca42cf31c4921a300f0001300c4005305cc04f303cc03e34620fffbd2c41c003485d91db9ff00062e346243bfd000a9035bccab50300ac600d80006071010c603180c6611a82666027812018002a546032072608a05e690660a6330a28160074dc46f0c033306302b302a06234f02603428582329635f2eb1698880854e0c110038c168038c094064c008008d454d7cc660a5cca5c1d4c4f03899c459a1b8ef3180e80e98018048b009ba542604818c60701ba620e09e60de09e0d024120006cca729e4ca5b2baf182ea7acba030220082203b14028160104972b0109332164c5a76aafeb228dc6dd359e5dba0a2ff2c00c182d01c182d03d180c00c980c801c4eebff1779ae3fb76efa7ba8ca8927c39707a7a27c79803803958039803803980380398030031583a983a04c1583a45e2f14a771593bcf4b7e24f32e789492ebff72f45ee5ebc61540c4603207e180afe17007f53b0c00e4c44c60c00c8c50fd0fffd050d050d1c65d6a2ffffa251aa27c567d0fffffa219580133ba3f75e3292edc1863a4ea46dd474fffffffffffffffffffffffffffffffd4f980d0090981280b6984e00481848a1621869a25d18f32518198f263d19bd283d1a7d2d1b1b0fcf639bcf8c85987b8ff61db16c151d0749fb9cd72df399c764769881e1d19834809d9862389858ce9c5ca99b38cc9a0c149986cd1bcf161d83ce1ea3a91bc8f1997c611a16ce1bcaf21c32d31ade9b19160f191c9a9a68b599fa7d1986450b14e60e03a6271126471166450aa62a03a60e03a60e8a464698867d9f867f99062a83660d0403a0e98300e98a029983e0d2439810069810029810069818068602a8ab8ab3a01500a912a95c5987095b948b016d5fdb3ff4b0ee54255006ed19788c17050c2d0b8c49128c320c41c18a6f1728b945ca4e29eeef1fe56c8a800980801980402d79dc7a4a01980002980804980c03980c02df30180530902530880542c301402309446311448311c4830982528014c03000c23098c05008c05022b592500e2b477b0ffcea5d66d967ffffffff94b20c5dcb0cc4989356a6d779ddeb2ad6b755f57765b2996dda596d3bf38d6869da96d9d53434ef4ba1a7fa3384aa5d6bf2ab19a6ea300c013730b805f33126021130cb4230301a424a304f4122302905f9309b01e5308bc0253115c16431c9c4aa319809b1348b010e360fddfffbd2c41b83e62974fe0ff1f1056daadc81ff69e01033cce9a13e9998033720c8e03095404e3043c257309e00bd30074315306a01b93964c434b07666b9b5a486915398b4c4670561abd5a6ab341a9c58670859b40ea6965b8aa08c26b43291e438b21c5630e828906a18255402a4302824c4020012f82a2415279830b466f22268084188a8850f8238c0276895daa096a1e4406a530a427eb58491f081545ea7a311caba0d9712c06c2245b452039921093ca2624399cb1b2c29eb96a1f6c6b339233293c2e2af1b85c542519395617227c748270778c241b5976196923c2e27c2ba5fc4c49b6b75f582ca7ea3735ffffe0ab665746b4266378e2dfd7fffffffffce36c31231de4bfd191ff117fb8c19504f0c09013dcc8583304ca622984cb0e2c3cd17e039c8a86738190f763626173e280ca4e36eeb34d7401280e67a692ccc6a3708d58face8f60fa0b0e9df6268c2ee3714d7e9284d281eb4c64d280d7ecbbcac398c654a60c39c654c650e70d285280c650650cbbc650b032a63283286532530632a1ce61cc32a561cc61ce32863281ce612012061221206072070607207058038f2b03930390903d094d26834fa4ad216349a44a7a741e9d06952f95a42b485694b090ad2ff9a548695214492c25f34893cd3a62aa434a93cad29a548584869529e8485694d2a434890d22534a94b090b094d2242c2534a90d3252b4a5690b090d2a52b4a691215a534890d224f372e7fcb0e0b0e7ffcadc161c7fff95b92b73fffe56e3cadc7e5dffff372e3ffcb0e7cb0e3ffcb0e7fffcadc161cf95b82c382c382b70587058726e5c95b9ff370e3cdcb8f2b7058725873dff2c38ef9b871fd3a21dfffff65f302a03bf3183c6d2327a41d139209453312084833623919f370206d535458e2633ec4e26388c9fe23a48b6a13da898f333712b75337150153ed089223371145331208dc430be454831cd84203042842030be442035b23231156d2c15065408a685216685088685216568515a14685a1665408856541888549950229a1622959715bd15bd95bd9973d961eccbcb8cbcbcea510b08858452ba8345453444434444345a9345452c2296114d1114ad14d1110d1514d1110ad10d1514b08a575258442c549a2541a2221a2a29a22296110d1114b08868888584434fffbd2c46c83f3bd56de0ff77085de2a1ac1fe6e4054534445344452c2215a21a22215a29a22279a2221a2229d4a296110ad10b08a68a8a5844f345442ba82c2296113cd1110b08a568a68a8be58442b45f345452c22f9a2229a2a2f9a2a296110d1114d1514d1514b0886888a58442b44f345442b442c229a2a296117fcb089e68a8a5844f2b442b453454434545345443a844345453454434444344a834445345452b443a94534444344452c221a2221a25416114d1510ad10d1514b08868889fe568be68888568868b5256886888a568a68889fbf9dbbf45c58018cc0620d8cc4e31388c3620d88c5630d8ccde23388e1e2878ce6e33d88d1e32788d3e24f88c660a18cdae32788c9e2358cd7625d8ce1e2358cef62e58cd0e2438cc6e2358cd762438cc6e33588c9e31b8cc3620d8cc162178cb00b1182c60b1182c40b11f8dc456e33f1388b1e3371b88ad8cf8b88f8f8caf88d8f88f8d88b0c65862363e32c719b13195f196388f8d8fcf8988b1c65863363632c3195f115b196188ad88d898bcd8d88d898cb0c458e32be32c3195f19b1b19b1b19618cd898cb0c47c4c456c66c6c65862f36362363632c3115b115b115f11b1b19b1b115b11b1319618cd8d8cd8d88ad8cd898cad8cd8d88d8d88a310b0c46c7c66c4c456c66c6c47c6c66c6c7e6c6c458632b63362622b633636336363363e2f363623626336363ffd15b1f9558cb0c47c4c66c6c458632c31ff9b1b17f95b11b1b17f9618fcb0c458622b632c319b131f9b1b115b115b17ffff9b13196188d8988d8d88ad8ffcad8bffcb0c7fffa363622b622b62fecf95ff2aaf2c084258217cce061080c9c9655cd3ae3270dd952720e33eed24e068381cc4203dc0d957381cce0781a4e33eb494f70aed24cf704eb8cf701080cf702cc8c6f45a0cc2b7217cc9c81bd0c58b0ad8c58a0adcb02109829a2101829815b188400a61d6ca69a9b5b9554c35314c35314d2b3eccfa3e8cfa840e103ecb07d99f47d19f67d962102b3eccfa3e8cfb3ecacfa33e8fa2c1f6582efccba2e8b05d960ba32e8ba2b2e8acba32ecbb2b2ecb05d9597665d17665d177e582ecb05d19745d15974582e8cbb2e8acbbf32208832252f32208932252f32208932248834b88832252e2c11064411064491264425e64411206bfffbd2c47903eab9a2d20ff6b3471eaa5801ff5a38ac804576115d84577062ee0c5d81ae97606ba5d8457581ae976115d01ae9740c5d40df4fb037d3ec22fa063ef08bec22fb063e818fb063e818fae06fb7d01bedf606fa7d845f406fb7df06533c194cfae11a6ffffc234d81d369947ffffffffffff06110c1f907e0c1f81044d4c44abce14c8534d8f25314c1f820f0f62f7cd8ce8395f0d2af6c24df37e970f2038d90c413a6a0e14fc808e9a763d4f204c80ce3642950ce821038ce801044c4114abcc40e1898c4101040c1f91040d89f1acf1a9898c7e5898d89c7e4ae0f0f1aa0f0e0f5044ae0f0e0f5044d0420f0c7e5040c7e07e4b0823e63f282056c4e5541134101f834111f831f91f82b1f934114102b1f834114112aa08941f898fc2089607e4ac7e0d0407e7cc7e1044b03f05682056823e68203f0581f831f81f92c20818fc8fc98fc208f98fc0fc1a080fc98fc8fc95a0879607e4d0407e4c7e1040c7e47e4b03f263f03f0563f263f23f0563f0563f063f082063f03f063f03f063f23f263f23f0581f831f81f92c0fc1607e4b03f068223f263f23f268203f3e63f03f0584102c20898fc0fc019f93f00c3f2e113f2113f3033f27e0227e4187e4227e4227e4187e00e089f908c11061f9061f806410033f27e2067e0fc819f83f1819f93f0067e4fc830fc830fc419040187e3033f27e40cfc1f8061f9c227e00cfc9f9061f8061f8091f9033f27e4187e40cfc1f9033f27e2113f0067e2084187e2113f2113f00c823830fc830fc7f7061f8844fcaffffdc9d9fffffd75f317f31b37f117f34b7b29398c65434b665534da7572c30c9a6dbab1a6d12f1b2acc61b2ad949bf832a198d32a1b2a6629d947fe9b2a0bf98bf25b192f30c99ce12f989092f192f12f1612d8cc68c6cacc68cc6c5fccc685f8b06366636634663496e66362fc6bf2fc6bfe346bfafc6bf2fc6bf2fc585f8d20978ae5f3485202c4be690a406904bc5690f961213979212c24272f240690242569096121348521348521397d203481203485202c24258480ad203485212b484ad203485202c4bc56909a429095cbe5897cd21480d21484d21487cd20978e5f484d21480d20484ad203485202b480ad212c242569015a40690a40690a42690a4058484ad20ff348520348fffbd2c48183f27178ce0f76b545f6b61a01ee57205212c24258480ad213485212b480237e065f8237f81dfafc077fbf4237ec197e832fc0cbf832fc11bf611bf032fc11bf832fe0cbf832fc077fbfc237e065fc237fc197e03bfdf8237e832fe11bf01dfeff065f8237f832fd03bfdf8237e846fe11bf832fe11bf846ff065fa077ebf81dfefe0cbf832fdc0eff7f065f8197fc197f065fc237e08dfe0cbf60cbffffc197e2c0bf18bf0bf9bf859418bfa5b9d9418d15d941a6da6d9a6d44a18bf8bf1598d1961ad0986cad01890a6d9b0c9ce992f3ab9596198e69619a5606c18bf18d961954cc6d2dcb096c62fe2fc696c63462fe2fe62fe96e62fc96e696c2fc66342fe5663466342fe61b039865861b0561b261b239a63981b2581cc31201202b1202b1202c09018908909589015890992f0901f35b0586c1b65b26d86c9b61b06d86c95b63cadb26d96c1d72ba6a1ae95a87cd40a13aea80eb8a12b501a854275d5095a84d42a12b6c9b61b056d82b6c161b06d96c15f33cdb2d836c364db0d92b6c9b65b056d8390484e4120390c80ae427209095c83fcb120390c80b120390484e4121f2b901c86425890162405721390480e41202b90f95c80ae407209015c80ae405890f962425720390484ae40720901c86405720390c860cbf846ff846fe11bf846ff832fc11bfc237fc197e846ff81dfefe11bf832ff832fdc237e03bfdfbc197ef846fe11bf832fffc237fff832ff81dfefdfffff065fff08dfa0cbf2af2c1611a561619ad086c1bc6256986c0e698e61db186c2d0991503a991528199ca96bf995d8cc183a95d98cc883959ca996b0ae18500ae18ae8ae18ae10d99ca05098ae0ae158e6186c06c996186c186c06c186c86c1586c98e686c186c86c986c1611d71406a1501a86b858501a82ba56a02b501a854258509d71405850161426a0509a8543e6d86c161b256d836c363cb0d8ff2c363cace9e5883f99d0ea583a959d0cea7433a1d4cea7533a1d0ad43e585095a84d40a12c280b0a02b5095a83cad41e56a12c280d42a1350280d42a0350283cb0a0350a80b0a0350280d40a02c284b0a0350a87cd42a02c284b0a12b3a19d0ea7073a99d0e8583a99d0ea6743af99d4e86753a99d0ea567533a1d3cce8752b3a160e86743a160e9e6743ac1fffbd0c49001aae194d80f72b58554b59a95eed5a08d808b600db0d9c22d906367831b1c22d8c22d8fc18d808b620c6cf063660c6cf036cb66116c01b65b2116c7fff08b67831b3ffffc18d8720624024262422406caa96c696efe06634fe0696e2fe584b6f32c269733b61cd32c30d831cc2c2375639c339c120339d4da2bb08ec2364dcd360e5e480e5f978f9c97cd2197cb0901f3a909f39ce15cbc6904be7cef386904be572f1cbc909cbc909cbe90961202c24258480d21480232106484192108c80192008c800e4320064840db1cc036c36418d981b65b2116c7845b006d86c831b20c6c045b0116c81b65b2116c01f31b00c6c0339a0c6ce0c90046401190e0720900464184642119001c86400c6c831b2116c831b00ce6045b006d96c01b65b2116c81b61b006d86c831b006d86c031b206d86c81b65b006d96c045b00c6cc0db0d881b65b006d96c01b61b20c6c845b006d86cc0db2d90636606d86c031b308b6022d8036c363f06487fc1921846400c90c192084643e0c907c1921ff064842321fc2320c1921c2320e0c9083241c1920e1190ff0648383241ffe1190552b188b0719f7f4a1eb57c15bc66b19c46e821474a4645719988ab69bc4b11ac4311dc4b11cc47198c4b198882219502296045338ce33589622b388d62188c6338cc6318cc63588b071195222995222195022160a832a04532a0452b110ac4432a0442c08862208a78b1f95e23c58fcf1633c78bcae2162215c42c442b8a588a588be71221c58a716295c538b14b110b114e2442b8be5714e2c538b10e24538b10ae21c48871227f9c58a7162162216221c5885888712216229af5de585e6b9715ae2c2e35cbcd72e2c2e2c2f3f4b8b0b8ad715ae2c2e2b5e6bd715c42b885710b114ae29c48a588a588a58887122ff95c42c442c45f2b89e5710e2442b8bc238e11c611c5e11c5f08e3f83310331ffff8471047160cc708e3c198c238c19881988238c198e0cc7833103318471e0cc508e3f8331c0f1e3e0cc611c7847103314198e0cc5066308e3e0cc41f2c1e6a5119a1af08bc29b0f2a7b986cca7b194d8c3c98dd06f719b1a90d9a4346c69a4366c619b1a47f1ef71b39b74ef71ef76f71a08e3598fce351a08a081bc6bc61f9a79a953cd4de33cd7cde31e34a79a8de37cdfffbd2c4d083a94daee40eea974694295845ff597a0d1c3634ad1c0e3ff630e3f91c0d1c11c0dba0d98cd9a9b0cd98d98dba0d98cd9cd9ccd9cd98b0dd3e566cfe66cc6ce586e9f36e9367362741136271f831f81f9f34101f82c20898fc8fc1a080fc1a088fc18fc8fc04638846380323884638c191c0231c4191c40e38c71064700647108c7003530a640d4c29903530a600d4c54d08a9803532a6418a600d4c54d03532a600d4c29981a98532075314cc22d980db3367831b3831b381b666cc0c6cc06d9db381b666cc06d9db3045b3845b381b666cc116ce0c6ce06d9db3c0e384708463804638e118e0118e0118e2071c63881c718e0118e3f08c70038e11c00e38c7108c7008b66036ccd9c0db3b67c18d9822d980db336608b6608b6708b67036ccd9818d9818d9c0db3b670636706366036ced9c0db3b6606366845b381b676cfc191c2071c238f08c71f846380323801c718e384638c191c3c82bb45762bd6a189200a0f3144ca433d6cc69c36b368403455f43b3455ab8137c0e4323674ca4235040d5636b2cd573290d4a32a9ee6553dc8df03144ca294533f88be230f8d3e330f8c7e333dc8a4333dcd9d332908a4332908a423144ca423144ca433290851231448513314494a231448f7233dcc5133290c5122c0a24587e3d95bf1960f8ccf8cf88b07c4583e32b3e22b3e333e23e333e37e333e23e333e33e32c1f199f19f1160f8ccf88f88cf8cf8ccf8cf8cb07c4567c6583e333e23e237e23e284e898328981d13a2611a240ca2611a2508d1281d12a260744a8981be27c6117c4117c606f8df101be27c60c7c407f89f181be37c606f8df101be37c6117c6117c5063e208be281be37c5063e3037c6f8a117c581be27c7831f181be27c5063e2ff81be37c5f831f1781be27c4117c6117c40c7c4117c406f8df1c18f880df13e2063e2063e208be308be2845f1c0df13e2063e2037c4f8b08be3037c4f8fc1944c2344ffe11a27ff06513e11a270aa27fff08d1303a2544bff06512f065128468980001f961a0f32f89be330f8cbe22b674cd4a3528ccf727c08d4a25288c923183cc9221838b0ce9194867b9997c67f118fc69f198fc63f19b07b071c914919b07c91963f88a1f1cdf88f8cef88f8f46d3baae7aacd386d39aae6a254867487486fffbd2c4f0002ff59cc10ffad486bcb35849ff59b3574846a24a26574866fc67c667c67c667c6fc6583e233e23e22b3e332f82f832f92f9360f60f32f92f92c17c7960be3ccbe183cb05f265f2c1e65f25f065f0c1c56c1c582f832f860e32f82f932f82f8035f0be40d7ce0f035f0be7062f8062f9062f808af981af95f2115f006f8df1c22f8822f880df1be3037c4f8818f8c0df13e208be2037c6f880df13e2037c4f8822f8c18f8c22f8c0df1be3037c4f8a117c6117c40c7c60c7c708be208be208be2063e3063e308be208be3063e38317c8457c40d7c2f808af808af808af9062f9035f0be422be018be00d7caf9062f98457c81af85f1035f0be422be206f8df1031f1845f1045f1831f1045f101be27c7831f1031f101be27c7037c4f8c29f1818f8e06f89f1831f101be27c7037c4f8822f8c0df1be3ffc1944e0ca25f065120651284689fc1944cde666d451e74c692cb86aed3354ea7b2cc5691998436ef2c2dbe749e0b946bc1af0868cdd2784d19c1de4b1aa9bad88cd958dd05853d0c4716ce4cd8c23fcdd6d2ec8cbb275b4cbb31728c3671ba0c3671ba0c3661ba0c36545ccc36445ccd1731ba0c6e90d98b03c619e6a79a98f183c616078b2c2335af2a0b96565d91c7fa38144701611c0d1c51c3cd1c51c4d1c11c4ae3fb9e568e1fe58471336636636e9366e959b3f99b31b3959b399b31b3959b399b31b30323840e384700647108c700647006470c231c4231c606d99b3c0db3b6608b67036ccd9c0db336606367036ccd9c18d9c0db3366036ccd9c22d9c19ba40db3367064710647008c708323840e38c7081c718e0071c23803238832388463881c718e20c8e00c8e308c7108c7106470038e31c00e38471038e11c00e38c71038e31c60c8e20c8e0071c23881c708e0118e0118e20c8e0118e108c700647108c70038e31c70647108c7108c7008c710647106471064710647108c710647181c708e30647008c70c231c00e3847006470038e31c3065cafc1972ff832e5ff846e5419e3613f1bffffe11f19ffc19e33c23e340cf2c13a66bc22f044e35599b1a90d1bf8cb549bad85d91af091aa938d5665d997666b549b1866c6ad5268ce233468cd233651785150bb22b172cd19b5e10cf343cd4ad6de33cd4f3533cd078c2aa78064efffbd2c4f003b1c9a8c00ffad4867d2b97c9ff5eba9a783a34f013c12a93a6513c0993a64e9993a49e09549d32bbb235cbbb32b5ca2c2e515ae595ae59a38c7f1a382381a38a381c7fa381a38a389611c4a238fcb08e2584702c47f1a38a381a382389a38a3895a389c7f47f79a38238960a64ca61530ca65534ca64a60d531534b053058298354d29932982992b29932982992b2992b4712c2389611c4d1c11c0ad1c0d1c51c0d1c11c4ad1c4d1c11c0d1c51c4b08e068e28e268e28e0568e0568e068e28e2584702c2389a3823895a389611c4d1c51c7cd1c11c4b08e3e568e0584712b4702b47034714712b5ca35cb5ca2b5cb2b5cb35ca5ca2b5ca2b5cb35ca5cb2b5cbff2b5ca2c2e59ae52e57f95ae5161728b0b9456b9656b94585cbf2b5ca2b5ca2b5ca2b5ca2b5cb2b5cb35ca5ca35cb5cb2b5cb2b5cbff35cb5cbff2aae56cb0b95fe56b95fecaba05d4123552674e3bad48a9d373031554e1127497febaf30f887e332f18e2831290966285e38c9662f1cc5622b8ccae51ce0cc394994ac60e30e385623158838d3158c90e3243c90e31588563312904a53090c2422b1290c3e21f88c7e20f8cc3e33f8cc3e32f88b0307958c1c617c8c1c56307187c41f19607e230f8c3e230f883e32b0f88b01219848625215848658090cb0121160243f3e3db92c71e586e0db96e0adb936e38e2c371e56dc1b72dc1b72dc79b70dc15f1a586e4b0dc95b7056a69a9aa69a9b5b9a9aa69a98a61a9aa61614c3ad94d3532b63adab735314d3532b636e5b836e1b8f2c3706dcb706dc37056dcf9b72dc15b70586e4adb92b6e0b0dc1b72dc9b72dc95b726dc370586e0adb92b6e0b0dc95b73e6dcb706dcb726dc373e6dcb70586e7cb0dc1b70dc9b72dc15b73e56dc1b72dc7961b82c37256dc79b70dc161b82b6e4adb8f2c370586e4adb92b6e4db96e4adb82b6e4adb82c370586e0b0dc95b726dcb70586e0db86e3cadb92c3726dcb726dcb726dc37056dc1b72dc961b936e5b9f2c3706dc37256dc7fffffff063e30bcc78d1e34c5cca4f0c5cb8d54de87b760cf3598c4e3555e08dd6c172cd6dd3cd4de8698c0db374868c4716cdcc5ca75b0c5cb1728d19a4668cd8c23fca1b1b323fd6a932ecd19a2c0b946bc1233462e5233a71fc8e271fe8e268e11fc68e2fffbd2c4f081f03160cc0ff6d7863fb5d7d5ff5a2a8e27e69e6be56f1a7e69e69e6f1af1a57e6bc2b78dff3471471347147034704703471470347147134704703470471347147134714712c2389a38c7f1611c0d1c51c4b11fc68e28e0584712c2389a382381ae52e51ae5ae51ae5ae59ae5ae5945cb9ae52e596172cd729728d729728b0b9456b95e157280772ae5846e5046e5c1972c19728237281972bc0ee5dcb832388463881c708e2118e0071c23801c708e0071c63801c708e2071c23801c718e0118e00c8e2071c23801c718e2071c23804638e11f1bc19e330af1bee0cf1bc23e3423e31a0cb940cb95c23728197281972b03b9772ab065cb08dcb065cb708dcb08dca581dcab940cb940772ae57d5fe0cf1908f8de0cf1a15e3411f1a15e35fd55423e3611f1b5419e317f5e11f19f08f8d0678c833c6423e33f0678d81f8df1b5f33a38e8f3e1d21d43b49168319d0eceb83d0ece2c92270d155ae00e1856b28c69d355ccf736748c513290cda0f8b20eb808b24a844e99ee65219a9462891b3a65211c59044e9b41e44e96115532275155d151d3a33a38e8e33a3ce8f35a08b3232cccb3228599ccb322ccca8b419bf1df119f11f199f13f11bf13f1143e2161f88b113a5589d389c89d2c44e162270a44e3cae270da75a70da71a74b0d3a6d38d3a6d3ad386d3ad3856d3be56d3856d386d3baae56d39e56d386d38d386d3ad3a5355c56d386d38d39e6d38d3a5869d369c69cfef95b4e161a77a56d39e5869d28d3af2b69c2bd56f369c69d2b69c2b69d2ab4e1b4e34e1469c1b4e34e95b4e79b4eb4e961a77cda71a70da71a730369c69d2b69c2c34e7961a70b0d3851a706d3ad3a56d3a56d386d38d3a5869df2b69c3d5669c28d3b2c34e961a77ffcada73cada70a34ef45869c2b69cf2b69c2c34e95b4efe8ada70da71a74b0d3bb2c34ef961a77ca8d385869c2c34eecb0d3857665ffe58b322c599fecb16645766658b32ffe73fcb166657665e7665666766766458b32f2bb32e313316f31e1f6ee56bfff9beaf3144a96237c0851329f118e4335288e4333dccd9d35288d9d22908cc38248ccf4e183cd4a32908d4a3a588d4a33dc8c5132908c513528cca42528cca433dc8cf72290cca425288ca43290cdf03290cd4a2290cc5133dc8c512fffbd2c4ff03f49152ba0fffc5c651b59801ff5a901448cf72290ccf733dccb07b999484a511948428998a242891948628916144ce90e908ad448d44d44cd44d448ad448a2894b0a27e585123513a432ba42d95a8916144fcd44d448a8a246a24a266a24a2452909e58513f849f1c22f8a117c406f8df1831f1031f101be37c607f89f1845f1831f181be37c6117c606f89f101be37c606f8df1031f101be37c508be2037c4f8e117c6117c508d1308d1203a274482344b0651306513065138468941944c2344c2344a0ca260744a8901d12a270651383289c0e89d12f83289e0ca258468941944c1944a0ca2508d138468904689b8468941944e11a278328901d13a260ca2583289e11a2781d12a24f83289832890468984689032898328942344c1944e11a2706513f83289c2344f06512a8234481944a0ca260ca258468941944b8328976e11a2584689feae11a244c414d45332e313030aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaf2aa8207219b3a45243318a27c791a946a519a4c849198c1c7a7997c65f119fc47f19486126d651aae67f1a7c6517e21587c4617c1244661c9246661c124666ab9aac66ab0d3a66ab35966a082822634e2820566ab19aaca0896069d2b355cc69c5040acd563355cd562c0d3a574845144a56a24748748656a2658a4337e23e233e33e22c1f1159f119f11f1959f199f13f11bf13f11d21289161448b14847486a246a26a27e51449e585132c28981d13a2611a2411a260744e89832890328901d13a2708d1303a2544d82344e0ca240744e8981d13a2411a25846890328981d12a260744a890468903289e0ca2611a240ca2611a270651283289784689c2344c2344c234482344c1944c0e89513f8328981d13a2783289c0e89d1206512ef0669d8334e78474ec0f4e69de0cd3a11d3807a774ee11d3abc19a77ea7c19a760cd3bb419a7019a73ffff8474e8474effffc19a77ff08e9db3ffffd6bf9913a8aa1f9eb1631445566a510a2472198a24777c28226d65359675c09138644e11387163570651a0f9c59044e1a2a88aa14455e67b9948667b93e066ce98a26644ec592644e913a6d0722aa51a0f142274644e22aa644e913868aa1138644e341c644e113a552274aa44e1a2a844fffbd2c4e581eb5da6c00ffad4867d3597d5fb5f98e18d3834e19aac34e18d3834e18d3a34e958d3a581a74ac89c2b2274aa8aa9913a44e15913bfe644e113a634e0d3a634e0d38634e1aade5634e798d3834e158d3a581a70ac69d2c0a2662890a2456289958a245628998a2628998a24289958a27fe65210a27e0744e89046890468942344c2344c1944825448234481944c2344e11a2503a2544c234480e8951206512832898328901d12a240ca240ca270651306513065136e11d38c11d3811d390669c08e9c03d39a7019a7207a774ec23a740f4ee9cc19a7423a7607a734e0474e8334ee11d3a0cd3811d3a07a774e419a740f4ee9d03d39a7611d3bc19a7019a7023a7207a734e01e9cd3908e9cfe0c22742244ef83089c7089139f06113bf088d39fc1834e42234ebc1834e60c1a77f060d39e111a77c1834e84469df6c2244e550000001fcb08e06636ca8663496e6fe26366634fe069b4c32673aeae673a9b6586192b1cc33b73b63411a5531f94112b410383d62731f86263626626331b31a34b731a317e17e34b64b732982992c2a69594c194c94c795a089a0831318fca081a088fc9625e3979212b484ad2134825ef2be70ad203979203485203481213481203485212c24256d93e6b64db2d92c364db2d836c364af9856d82c360f9ad92b6c79b65b06d9e61b61b26d96c15f30db2d93e6b64db0d82b6c161b0589079c8243e7219015c80ae40720901c82407219079c8240720909c864056d92b6c1b65b056d8f36c360db0d836cb64b0d82c360adb056d82b6c9b6798586c961b056d92b9095c84e43202b9016243ffe589095c84e4121f2c480e4121390c84ae4057212c484b120ff2b907f95c87cb121390c84ae42589095c84ae425720390c80ae43e58909c86407219016240589095c87ce4320390484b120f2bbfff962fe577ef2c5ffcb17ef2c5f8aefc58bf9dfafde58bf962fde58bf1dfefe77ebf15dfcaefc577ef2c5fcb97d859c2ab88e7fa3cb0599194842891be04a51998724911aaf47a799fc43f19a7c4ff11978c122992ce71415948456a5119fc61f19553e232f8cbe232488c393248cc393183c60e31a70d5631a70d563355c69c3355cd573144c5123144851333dc8512314485122844e4d1554550a11383227089d2b2270afffbd2c4ff83f1c956d46f779446f42a9881ff7690d448d44e908d449448d44d44cd44d44cd44d448cf8df88cf8cf8ccf8cf8ccf8cf8cacf8ccf89f8cb07c6583e232f82f9360f2f92b2f832f92f932f92f82c17c960be4cbe4be0acbe3cef9be0ef8be4ef8be0ef9be0ef8be0ef8be4b17c15df258be0b17c1df37c1df17c9fc7f11fc5f115fc457f19fc7f1163e23f8fe2f2c7c47f1fc457f1963e32bf8fcaef82c5f277c5f277cdf277cdf058be4b17c79df17c15df077cdf077cdf058be4ef9be3cef8be4aef9f3f8be22c7c5e57f115fc457f1963e3f2bf8cfe2f8cb1f1163e33f8fe3f3f8fe33f8fe32bf88b1f115fc457f1963e32bf88afe22c7c458f8cfe3f8cb1f1795fc5e58f8cb1f115fc67f17c7e7f1fc458f8cb1f1163e22c7c657f179fc7f115fc457f17963e32bf8cb1f19fc5f19fc7f179fc5f1963e22c7c658f88b1f195fc47f17c457f115fc67f17c658f8bfcafe32c7c7e57f195fc658f8d5f2a2944630705f26c472af66abd8c1a661c9872693205f069320c1c510881978e4b3192463071a4ca49199e9e7a71987017c18c1e17c19c62b198dc2b118dcab11d21a891d2152179d21d2195df1160f88cf8cf88df89f88b14867ee4a25fe56a246a26a25e6a25485e6a26a27e67c47c5e67c47c667c67c6567c5e583e32b3e3324324232422432b243324324232422432c12199211219921252992112116090cac908c90c908c908908c90c908c90c90cac90cc90c90cc90c908c90c90cc90c908b048664844840c5f2115f00c5f108af8035f2be2115f18457c6115f20690d210452101a4294a1148406909218312140d21a4308a4208a420624281a424861148406909210452101a4348508af9c22be206be57c0317c8457c8457c422be60c5f2115f20c5f1035f0be418be2115f20690d2181a424840c4840c4840c4840690921e11486114841148606909210452181a43484114860c4870348490c229080d21a4208a430624208a4308a428317c0457c422be40d7caf9062f9062f9035f2be40d7caf8f062f98317c8457c0457c6115f3035f0be018be422be3fffff08d12f2c3d10653614da6a7ba2e442a7a1a9eea7b9a3362e518b971aa9445cc6374b0f2564019957055c1437be63748dd2653694d863c68f1863c6adbc6b6f8f1a53cdfffbd2c4f103f43180ca0ffacdc623b25881ff59f847e6be687e68f1a57e6857e687e6af187e6be687e69e6a6f1af145478a3f3578c378d78c378c78d378cf352c3c61478d1bc63c6961e34ade30adba4dba0d9bcaadd2566cc583672b36633676e834704712b8fe38fe4702c2389611c4ad1c4d1c11c0ad1c0d1c51c0ad1c0d1c11c0d1c51c0d1c11c4d1c11c4d1c11c7cb08e3e584702c2389a382389611c4b06cc583672c1b319b39b399b31b3f959b399b31b3959b3960d9ccd9cd98b06ce66cc6ce66ce6ce118e2071c238c191c4191c7038e11c40e38c70038e11c4191c4191c40e38c70064710647006470038e11c0191c40e3847084638e0c8e0118e00c8e00c8e20c8e308c718323804638046388463881c708e20c8e2118e20c8e2071c238c191c0191c0191c0231c40e38470c0e38c7008c708323804638c0e3847108c7108c7006470606470c231c60cf1bf57ffffdffffff846e5e0cb94a00002f30be4c3831084420332746f434224bc73259824431839265263070b039c183701c6961c14d2938a4eb9158cdce0e30eb95588eb8ce3cd58ce3cd589588cbe648cd83cbe0d83f0e0e48a48cc90c90cc909c14c909c14d295290cbe248ccbe1838d83cbe0cbe183cd83cbe0cbe1838cbe4be0cbe4be3cacbe0b05f2569485648664844845694a64864846486487fe6dc3706dc3706dcb706dc37256dc9638f2c370586e4db86e3cf8f6e0f8e6e4f8f6e4db96e7cb0dc1b72dc161b82b6e3cdb86e0db86e3cadb836e1b82b6e0b0dc9b72dc961b936e1b836e1b82b6e4db86e4db86e4b0dc1b71c71a9aa61d6ea615a9856a69d6ca61a9aa695a9856a69a9aa6f95d6e56a61a98a69a98a69614d2c29a56a67962432b90fffcb121f962422c485e572196242f2b908e43908b12115c87e572115c865890bcb121f95c845721ff9c8521162432b90bce4290ce4390bcb12116242f2b90cb12196243f2b90fce42908ae432b90ce4290cb1211c85211c87211c8721f95c85fe5890ce4390cae432c485e572115c87fe572195c87e58908e42908e43908ae43ffdbf587ccf8af88c7054224d7aa4ba8d7e30f8ccfe21f88d57a248cc2f80be4ce281294b04b319c5097518e0a4b3197cfa79fa7e1c197c97c9fa7307997c17c197c61c9df1df119f11f19df15fffbd2c4f303b38556ce4ffba9d6c3a41945eff822f199f15f199f1bf199f19f19df15f1160f8cdf8cf88ef8cf88cf88f8cb07c467c4fc66c1e5f065f05f265f0c1c6c1c5f265f25f265f05f265f05f065f25f065f25f26c1e5f256c1fe582f832f860f31b838d31b91b931b91b931b81b82b1b931b81b92b1b831b938e2c0dc18dc1c695a5279921921992112116090fcd295290c908908b048464864865824332434a531b81b831b81b931b81b92b38f2c1c7160e34b0372563705838f2b1b831b81b831b91b82c0dc9606e4c90c90bcb04845824232432432b24332422432b2422b2422b24332432432b2422c1219921121f960908c908908b04846484485e64864845648658242f2c121959211592116090bcac90cc90c90cb048664844866484486564866486484564846484484671c3706ac6371e637071c6372370637237063723726372372637237063723706370372581b931b81b82b1b82b1b831b91b82b1b92b1b82c0dc959c7158dc98dc8dc98dc8dc79606e7ffffeef34bdd4378ce2398c633b8a623188e23d8a62338ae23578c737dd5f2c1c65771985e3d98f6d59abc17163c634bd2f32248939ed2e32232137512e3751d5375488f34bdd534bd2f32208939e92f32212f32248934bc892b4bcc88224d2f220ac882c11269711058882c4495c41c44495c41c4c415c415c4162a0ea514ad14ad14b0887508a68a8bfe75088584434545344a8345a82c221a2a21a2a29a2229a2a29a2221d4a29d4229a2a21a2a29a2a215a21d4221a2a29a22295a279a2229a2229a2a29a22216114ad14ad10ad14d1114d1513cd1110ad14b15268a8a56885689e5844345442b442b4534544345452c229a2a29a2a296114d1517cd1110ad13cd1114ad14ad14b08a68a88568a568be68a885688588938988f2b88f2b88f2b892b89f2c447fff95c496220ae24ae23cae20e2624ae27cb11056c5e5863363622c3115b115b19b1319b13115b19b1b11b13195b116188b0c5e5863f36263f2c3195b11b1317f96188b0c60c44ffff84513fe0c4404513e0c44fc188908a2708a27cc484e74d866254aec44c97d36cd860484dd5ce74b073a64bf12a69b424265841b261ac9585825e312039c325e894339d757312025f2b619312139c3120120325f4db31201213121fffbd2c4e403eff9ace40eeeb7c67f361b01ee56f01203120120312125e3121120325e25f325e4da2c12f192f1ce18909ce996106c160730b01b063981b063981b0580d9f2b909c8240721909624058901c8640721901b679a586c1b61b056d92c363cb0d92b6c795b63cb120390484b121f2c484b121f2b9095c84ae4058901c86405721ff2c484e4121f390484b1212c484b120f2b909624056d82c364db2d936c360db2d92c360db0d936c364db2d82b6c95b64b0d8f2c360db0d92b6c95f34b0d82c360b0d82c364db0d936cb64db0d8f36cb64db0d82b6c7961b2586c15b60b0d92c360db0d936cb64adb2586c15b60db2d82b6c79b65b056d92b6c7fff961b3e56d936cb64db2d92c364b0d82b6c161b3fe6d96c95b60adb211907846400c90c192006482072190c232106484232006483e0c90c1921c0e4120064802321c19218464308c841920f846401190c1920064861190846400c9060c908324384641c192106483f08c842321af3210329369d2693340190343f32830fa66d366d89d35569b2332843e355643f35569b2389d66c327a1d4346c27a33c746c2882d31910ba2b26937840fa321055630fb210343f32832103292b3292b3292b32830fb210321043e3210211321121030fa0fb3843282b3e8f28840cfa3eccfb3eccfa840b10819f47d99f67d99f70899f47d19f67d15c2267d9f7e7081f467d1f5e567d99f47d159f667d9f6583ecacfaff2c1f4583ecae1133ecfa2c1f6567d159f467d9f667d9f6583efcafefcafecafe8b1f458fb2c7d9fd7d15fdf95fd163e8b1f457f657f657f7e57f658fb2c7d963e8b1f458fa2bfb2bfa2bfa2bfa2bfaff2c7d95fd95fd7ff95fd163e8febe8afe8afebcafecfebebfffcfebebfcfefebcb1f458fa2c7d15fd15fd1fd7dff9fd7d163e8fefecb1f458fb2c7d15fd163ebcfebeffffcafecfefe8afecfebecafecb1f658fb2bfbff2bfb2c7d95fd9fdfdff9fd7d1fd7d1fd7d95fdffffff95fdff9fdfd963ecafecafe8febebcafebfffcb1f657f47f5f5e7f5f7fe57f67f5f47f5f5e57f7e58fbff2c7d15fd163ebfcb1f657f7fe58fb2bfa2c7dffff9fdfd95fd985e171611230b82f3a39f7357a8e30b91337c8cc31649334495e331d13324c583248cd30bc7a37d8c630b8c73248cd33301d31fffbd2c4eb83f475b2d80f7774c5b935dd81dd66d8609331e8c630bd1230bc7b30b87a31ec2e2b578c7a44cd130bcb063985c3d9602f30bc2e2c05c63d8f666305e61705e563d985c17985e179aef456bcd7ae2bf46b97961795ae35eb8b070ec1d33a70b070b070b073cb070ced9ff2b5c56bcd7ae2b5c585c6bd7ff9af5c56bcb0b8ad796179617f95af35eb8d72e2c2e2c2f35eb8d72f2b5de6bbd962e3bae2c5e577f9df79dd7162f3bee3bee2bbbffffcefb8b17f9df779dd7962f2c5e577ffff9dd795de57715de57715de58b8eeb8eebcefb8aee2bbcefbbcb177f95de58b8efbceebbfcb1795dfe77dde77dc5777f962f2bb8b17162f2c5de77de775fe58bcaee2c5e77dc775c77de57715de5771dd7962e2c5e58bcaefff2c5e58bffcb17795ddfe58bffcefbfcb17f9dd715dde57715dfffffe58bcb177ffffffff95de5777ff95de577962f2c5c57715dff31a71aca3861eef93355daca37c0a43335288f7337c094a12b3dc8c2f91838c92255e8eef81a70d4118610c2f83d38cf4e248cd26530e4a0a27285214d9d22908a86ab1a822a08160d5636b28d5631a75acb3355d41033558d572b1a70c69c1a74d4111a74b034ef98d3a34e9d21289f9d21a891d212899a892899a89a89f99f11f1962f88cf88f88acf88cf88f8cadf8bfcdf8cf88cf8cf88acf88df88f88acf8ccf8df8bccf8cf8cacf8ccf8cf8ccf8cf88acf8ccf8df88cf8cf8bccf88f8fccf8cf8ccf8cf8cacf88cf8cf8e117c414f8a06f8bf101be37c6117c4137c4117c6117c7063e3063e2063e2037c4f8c23f8823f8e117c406f8df1845f1845f101be27c4117c40c7c508be2063e3037c4f8c19f8822f8c0df1be20651203a2744a0744a89c194480e89d13065130651203a2544c1944eb81d13a260ca240744e89f853e3418f8818f8818f8c22f8823f8c0df13e381be27c606f89f160c7c6117c7037c4f8c0df1be2037c6f8c0df1be281be27c606f89f1831f181be27c40ca2611a240744e8983289046898468903289419448194480e89513832890328983289c0e895120651281d13a240744a890468983289c23448234480e89d13d0eaf5c19a76dea8474e8334e2bffef0669dfffffd5e6498b0751af860e372684a86587c8ccdd48c59074cb41b8c6e358ccc160d08070fffbd0c4fa03fa5daac20ffad4c5bcb45e01dd62d0d43164ad433164933165092b24cd09248c58164c93420c59164c1c160d09160ac923420923164583074cc2c03860e0b2562c79601d3070593070932b074c1d070ac5839614d4282b506a029840a61429cb0a585264489608990225644c8bd32040c8912b206408991225644b0f4c81032240c81032240ac816081608191205640b044afa7de796387de7963be7de95f4af858e7f96225703840e302c44b11f38c3cb1038c4e312b8f962070895c4b1d3e70b1c3e74fbd3ef4fbc3e74b1c3e74b1d3e70f9dff2c73caf9e58e79f79e7def95f7cafa58e95f0b1d2be16387ce95f7cafbe58e95f4b1d2be163a7de7f9f3857d2be963a57c2be95f0afa7ce15f4afa7ce1f7857cff2bef9f3be57dff3ef0b1d2c74afa58e963858e963858e963857c2be1f7a57cfff2be95f0b1c2be1639e57c2c70b1cf3ef4afa58e95f0afa58e9639e7ce163858e963a7de15f4b1cf312012035a04ac34ad1cd31cd3b635a05a0322b47131991992c09a982989a960398c650398c3612b0cb08edcc730730cd34418c1d4660c1d4664c48097cce70e70ce74484c480480c360360c734364c730364b039a65841b265841b2561b0580d92b0d93831d4acea7063a19d0ea707cc99d4ea63948958e0c703831c39bcc723931c244c703832994cb05232994cb052ff2c14cca6c3f2b29160ea56742b3a19d0ea6753a159d0acea56752c1d4cea7533a9d0cea74fff2b5015a80ad41e5850f9a8541ffe5850959d4b074f2c1d4ce8752b3a99d0e8570633a9d0ace8583a959d7cce874f2b3a99d4ebe56ea6e8ea56ebe56e86e8e86e8e86eaea6eae9e587537474375752b7537575374742b742b74f375752c3a1babaf9baba95ba961d0dd1d0add4add7cb0e856e858752b742c3afff9ba3a1ba3a79baba9ba3a161d4add0e8280b1427434258a02ba02ba1f2c501d050796280b14058a03a1a12c50796284ae80e8687fcae83cb14058a0f2ba1fff2c5095d016287cae87fcb1405741e74343fe74143e5741e74141fe58a1ffff2c5095d0f96283cb143fe574258a1f2c28206c48311e6abd8c1e65f197c667f137c67e36a8226d65a82263f197c661f11fc667b99ee662899ee64d41099aaea089b5966ab98fc63f11a7c63f118fc4fffbd2c4f003f3f1a2e20f7375467ab55881ff5a685f198d3834e18d3ad6618d3ad6518d3a6ab99aae34e959aae66aba820634e1aac57aac58d57369cd56cca34e4b0d3856d386d3ad39fc2c34e1b07b07997cb07197c3071c91307997c17c160be0b05f2565f26a26a26585122c28915a89f95a896bfcd44d44cc90890cac90cc90c90cd294908b04865648456484648448656486582423242242324224333e33e233e33e32b3e32c1f119f11f1160f8cacf88cf8cf88cf88f8cacf8cb07c667c67c467c67c6583e3037c4f8c18f8a06f89f1031f101be27c6117c7063e2845f1418f8a06f89f101be37c4117c60744a890328960ca2411a240744a89046898328981d12a240744e8904689c0e89d1284689708d1308d1283289e0ca27c0e89d12c2344f8328984689032897f81be27c40c7c406f89f1845f1845f17063e308be3063e3037c6f8c18f8822f8818f8822f8818f8f063e3831f101be37c60c7c406f8df1611d3bff8474eefffff7fc23a77fff42af314d42032684ee3268340355666c332966d3328556332832830fb43e2c21f1a1f9081908a1f1a771a019341a01a7705d99348c898c80c819341341a1015b98a68a698a615b9ac515b190887d187d07d987d108190819479595b995b8a698a68a61595b15aecad746bb5d95aecd76ba2b5d9ae976585d1ae974579035d2e8d74bb35daecd74bb344220d112f344220b088344a20b088344220e5e89344a20d12893e2e22c311f1b11f1311b13195b196388f8b88d8d8cad8cd8d8cd8988e2624e2620e2624e2220b113e5710711127131271113e58893898838988388883888938989f2b88ff388882b89389882b89388882b8938889389882c449c4c415dd7962ebceeeecb17477776775747757658bb2bba2c5d1dddd15dd962efcb1745777e577458ba2c5d9ddddf9dd5d95dd95dd162e8eeae8b176577458bafff2bba2bbb3bbbb2c5d9dd5d795dd1dd5d1dd5df95dd162e8eeaebfcb17458ba2bba2bba3babb3baba2bbb2bbb3babb2c5d15dd962e8b17658baf2c5d15dd7962efffceeeebcc3e21f88ccb92b88d23a48e8c85e162ca10bc31838f4ed9a4ca17c9924617c987c67f119fc43f1187c63f11613e231f8cbe2309087042b259cc7050908cfe21f8cac7e230f883e332f88be230f8cbfffbd2c4e803f01956de0f73748691b259c1fedab8e231f887e32c07c6503e3987c63f1187c41f1987c41f1187c61f19587c7e7f17c657f19fc5f179fc7f115fc458f8bcafe22bf8bfcb1f11c852195c865890cb1211c872116242390a43390a42f390e432b90fcae42390e42f390a43390e42390a42f2c4865890ce43908b0dc961b836e1b836e5b92c370586e4db96e0adb936e5b92c37256dc1b72dc9b70dc161b836e5b836e5b82b6e0b0dc1b72dc161b92c372586e0db86e7cb0dc95b7056dc961b92c3726dcb70586e7cb121962422b90cae422b90cae43390e43390a432b90cb121f9c8521f9c87219c8521f95c86721487e572116243390a42f2c4865721ff95c8458908e4390bfcae43390a43390a432b90cb1211c872116242390a432c485e72148658908e4390c1890e0c48508a4284521c1890a0c484114840c484069092181a4348508a4383121422908189082290a0c4850624308af808af8ffe0c5f1fff8457c0457c5500002f317f4b633b769735a12c23ffd655317f7f1331bb28365417f312125f325e619317f98c331a17e317e31b3b294b62c18d19611611a5616199db0e698bf8bf9a5b8bf1a5b25b998d98d18bf0bf998da5b18bf18d98bf25b198d98d98bf18d1a5b18d958bf95a5b9afcbf9afcbf79617f2b5fcf1a5f8d7f5f8d7e5fcb0bf95afe6bfafe56bf1afebf1631b2b480b0901625f2c24269024072fa40690242690a42690a40690a406902406904bc58483cd2097cad202b483cd20484ad203481212b480d20484ad21f397920f2b487cb0909a429015a4256901a42901cbc901a429095b9be66c1b066c9b2566c19b0e6960d82b364cd9360dcd360cd8360b06c159b058364cd9363cb06cc237ec197ee11bf60cbf046fde11bf60cbf846401190846400c9081c86420c90046420721900464007219081c86400c9003243039048607219060720900464306484192106480237e832ff065fe11bf40efd7e08dfc0eff7f08dfc197f81dfefc0cbf81dfafc11bf40efd7f065fb065fc197fffffabfffff065f90403cc4102950c62707e0d6dd07e4c83d1044ce8107e0cc6a2954c6271898cc6a1044c41120f4c6541950c7f00c68c411189cc62620f4cc6b20f0d2ddfc4d9505f8cc68c68ad044c7e2950e0f47e4e0f20f0b0c4fffbd2c4ec813099a4d64f76b556e6315a95ff71bac56c4e56c4e63f23f25682068223f263f28226c4c3f2581f8341141131f91f92c0fc16189cc7e1040ac7e0ac7e4c7e07e0c7e07e7cb0821e563f0563f062422426240240624224256240581202b12131201212c090960480c480480ac484c484978c480484ac480c484978c484487cc480484b02425825ff2b1212bbff9dfefe77fbf95dfcb17e3bfdffcefd7f2c5ffcaefc77ebf1dfafe58909c824258907f9c86425720390c80ae4058901c86425720390480ae4057212b90f95c84e4321f2b90962427209095c80e41202b901c86427209016240720909c864257202b909c82405721390480b1212c480b17e2c5fcefd7f2bbf95dfceff7e2bbf162fe577eff2c5fbcefd7f2c5fcaeffe58bf95dfffcefd7e2c5f8b17e2bbf9c8243e589096241e5890962427209016240720901c864057202b9016243fe589096242721909c8642589095c83ce41212b9015c80e41212c7e3fcaff3fffffffffffe57f9ffffffff2c7e55f314d6f4319169c334141731d5320308946c341734134170ba33211d5332112f2c0b198f18711897990984413d984493d9a0b85d98c80c818c81349a995b1a98a69a98a6962b633ea1133ecfa2c1f467d9f458537cd4d534aeb62b534c894b8c894b8d2e4b8b0441a5c44f9b1b11b1311b13115b11b1f11b1b11b1f19b1711a2d41a2a279d42295a21a2a296110ea510ea510d1510d8d8cb0c4586336263363632c311b1319b13115b11618cd898bcae20ae27ffcae23fce2223ce2224b111e71311e577658baff2c5d95dd962ecb17458ba2c5d95ddf962e8aee8b17458bb363622b63362632b63362632b63362622b632b622c311b1b11b1b11f1b115b11b1b195b179b13196188b0c66c6c67131058892c44795c495c41c4c495c49c44496224ae23fce2623cb11258882b892b89ff2b88fff2c441c4441c4c416224e2624b112571057107131271311ffe5712571258883888938989f2b892b89ff38889389892c449c4c4f96119a39a1cdee361e4a6d3914c8ff336348ff31534d6c2b563cc6191d5cc4db0978ca5507e4d09920f0c8022ae4cd6c1534c2980a60cdef1ba0c3660d98c3671ba4de31e28aaf187e68f1a6f1af1a54a6d33663672b6e936e836734714712b8ff38fffbd2c4e483ecd556e20f776ec706aad981ff75f8ff47038ff4712c47f1594c194caa6194c94c994c14c194caa6194c94c15a08958fc18fc0fc1a080fc9b132089a08a081a088fc158fc98fc8fc98fc8fc98fc0fcf98fc8fc9607e4c7e07e4b03f0563f2581f934101f831f91f92b41031f841031f91f82c0fc1607e4c7e5044c7e47e4ac7e0ac7e0d0407e4c7e47e4d0447e7cd0447e0c7e07e0ac7e0c7e07e0c7e47e4b03f2563f263f23f063f03f0581f9ff2c3f2587e0adf82b7e7cdf97e0b0fc1bf0fc1bf0fc9bf2fc795bf056fc961f837e1f937e1f9f2c53258a64e99a67ce99a64ae992c53274c53258a64e99a64e99a60b14c1d314c95d3274c53074c53074cd32574c95d3274cd3258d9bcb1b3963672bd9fcaf662c6cc7b36ce7b3ece57b3ff9ecdb316367f2c6cc57b3795ecc58d98b1b315ece57b315ecc57b395ecc58d9cb1b3963672c6cc58d98b1b31ecfb3ff95ece58d98af66ff3d9f663d9b662c6ce58d9bcb1b395ecc58d9caf66f2bd995f31a74d5738745265324902f836f8cfe233f8d3e33674ca43367494a23248c2f930be02f831f893e334f8c7e232488c392a0c1c661c124657ee67484a267485ee46a25ee47ee4a2457484748548656fc667c6fc456fc4587e23512a422c5211a89d211a892899a89a8919f1bf1943e2f99f19f1160f88acf88df8df8fcb07c66fc47c7e583e22c1f1f9a52121192125219219219a5225299219211921a52f9a521219a521211a52121997c97c960be4cbe5838cbe0be4acbe4acbe0cbe4be4acbe0cbe4be0b05f265f05f3e577c1df17c1df37c15df1e77cdf058be7cef9be4ef9be4ef9be4b17c962f92c5f2577c95df058be4ef8be4b17c1df17c79df37c962f83be6f83be2f82bbe4b17c795df0577c962f8f2c7c47f17c7e58f8bcb1f115fc7e58f8bcafe22c7c47f1fc7fe7f1fc657f1f963e33f8be33f8fe22bf8cafe32bf8ffcfe2f88afe22bf8bcfe3f88fe3f8cfe2f88afe32bf8bcb1f1163e32bf88b1f17963e2fff3f8fe32bf8cb1f11fc7f1963e3ff2c7c5e7f17c5fffffe7f1fc7fe7f17c657f1f963e3ff2bf8cb1f179a08f40992f5881a6d30c9b137401a08a089545f8b131a56ca8731afe2696ecaa73182fe68234aa63f10787078c4e74a83f0563f063f0c4e70798d674a8820fffbd2c4e783f1f556c80ffbadc667b3da41ee572078d43f06822820682082056c4fe682082063f23f0584112c0fc158fcf98bf0bf18bf8bf198d8bf960c68acc6cac5fffcd0447e4c7e07e3fcc7e5044b03f27f8fc163f057f93fc7e7cb1f92bfcff9fe3f27f9fc9fe7f257f82c7e4b1f83fc7e0aff3ffe58fc1fe3f2577f2c5f8eff7f2c5f8efd7e3bf5f8eff7f3bfdffcb17f2c5fceff7f3bf5fbcff1f82bfc1fe7f258fc1fe3f058fc9fe7f07f8fc79fe3f3e7f8fc15fe0b1f92c7e3ffcb17f3bf5fcefd7e3bfdfceff7eff3bfdfceff7ef2c5f8efd7f3bf5f8aefc58bf162fc77ebf95dfcaefc58bf60cfc047f207f8fc833f1067e211fcc0ff3f9c23f9067e611fc033f011fcc19f808fe60cfc033f108fe419f9c0ff1f9847f007f8fc847f011fcc19f803fcfe419f8c0ff3f9c19f8067e60cfc047f303fcfe703fc7e607f8fc423f808fe3847f00cfc033f211fc047f007f9fc847f381fe3f3833f00cfc833f3c23f9833f103fcfe40ff1f85f34b617e36544b7317e7f1378c69630d95a03b2898d331b7f02b39c325e619325e121375712131cd3b732c20d931cc697315c0a02c16b990d8ae198da5b98bf25b998db2a18bf18d9a43ce9a432f9a40901a412f9f39ce9f3b2f9f392f1a42901612034839d2c24269024072fcbc690242690a406d96c9b65b26d86c95b60db0d836c360db2d92c360f98d82be695b60b1cd36cb63cb0d936cb64b0d82b6c1a814056a1350283cebaa12b5015d73cad426a0509a814275cae1624057212c483fcb1212c483cb121fff2c483cd42a0350a80d415d350a80d42a0350570b0a0f3ae574ad4258509a85426a15015a84d42a0350574b0a02c364db2d836c364db0d936c360db0d82b6c1b61b06d96c961b3e6d96c1b65b06d86cf95b64db0d836c360b0d836cb64adb258e6961b1e586c95b64db2d92b6c15b64adb26d86c961b26d96c95b64b0d92b6c961b06d86c795b60b0d92b6c961b2586c9b65b1e589016241e5720390480b1202c484e4120390c83cb120390c84b120390c80e43212c480b1202c484e43212b909c864057212c484b1212c483ce4321000fe62a690046401957256d7c1a044401990048111a046401158532620814aa56208987383ab184bc3ab986343f81931a32a9863432a98c4e41e9907fffbd2c4ea03b2f156da0f7790863b335a4dff5618a2081882220898a9a14c9900655c985328111853214cf9c014019aa694c994c94c194c14c994c14c1aa62a6194c94c960a64c7e47e4ac7e3fcd0447e4b08225825e325e121312025f2b121325f25f2c090960978c4844860cfc847f211fc01fe3f011fc81fe7f20cfc01fe7f00cfc047f20cfc01fe7f00cfc833f20cfc847f103fc7e60cfc047f207219001c86420721900324108c800e432108c84192006480232103904840e4121833f011fc01fe7f103fc7e3e0cfc033f007f9fc047f011fc01fe7f007f8fc419f908fe308fe211fc047f00cfc847f207f9fc847f20cfcc0ff3f8067e7067e023f808fe40ff1f9067e211fc033f011fc833f3833f303fcfe3067e00ff3f908fe019f9833f20cfcc23f903fc7e019f808fe023f8e07f8fc40ff3f8833f1067e423f9847f207f8fcc19f9847f207f8fc033f211fc847f00cfc033f1a99d67fa933ccc957f313fea3d51f6a55f31a7069c3183d26534990c3934f8d3e236f88fe235f8a7e232f88fe331ce038c31588cb934a59673bc724235635633739738338f90f34a470437054a5324324237e3be32b7e333e2be337e27e32b3e333e23e333e33e233e37e22c2899a895211a89d21f0b0a2456484648648456484648694a648648456484582422c1211921a52159211592199219211592119211211fc5f17f95fc457f195fc5fe7f1fc658f88ef9be0b17c1df37c1df37c1df17c9df17c15df2577c15df277cdf277c5f277cdf3e577c962f93be2f9fff2bbe4ef9be4aef93be2f8ff2bbe0db96e0adb836e5b836e38e36e78d36e1b82b6e4db96e3cdb86e4f8f6e4db96e4db96e4db96e0adb836e1b92b6e0e4390cb12115c84721c84572179c87211c852195c84721486721c86721486572195c865890cb12179c87219c87219c872115c8477c5f0577c15df2577c95df077cdf0577c95df258be7cef8be4ef8be7ffcaef83be2f9f3be6f82bbe4b17c962f82c5f1e577c15c867214845890bfce4290fce43908e4390ce4390cb1219c85219c85219c872116242390a43390a42f2b90bfcb121ff95c87e721487e62898a2462891ee462890a26541f88c3e27f88c5121444f3c2144ccf4f0be4c2f93d3ccf72674cc5133dccd57a4990b061c985f217c9ff1fffbd2c4ee03f47d56cc0ffba9c6beb5d901ff59b0bf19df11f11bf1df19c9117c94922997c97c1c91b07645144c74874847ee6a25c3a4251335125133a4251335135132c5f19bf1bf19bf11f199f11f11bf19f199f19f195b07997c17c997c97c9b07307960be0cbe0be0cbe4be0b05f3e67c47c467c47c6567c667c47c4583e22b3e32b3e22b3e333e33e28457cc22be40d7caf98457c01af85f211c1e115f0b062f903c1ebe018be418be00d7c2f8062f9035f2be018be40d7c2f908af908af8062f9062f881af85f0115f006be57c8317c01af85f2115f2115f20783d7c0317c0457c0317c8457cc198380d7caf9035f0be606be17c40df13e3063e2037c6f8f08be2c0df13e3037c6f8a0c7c406f89f1031f16117c5037c4f8818f8c0e89d12c2344819448194482344a11a260ca2411a260744a894234482344e11a240744a89f06512c1944e117c606f8df1845f1845f140df13e3063e2f063e308be3063e3037c4f8f063e2063e3063e2063e308be2831f1031f142344aaf83289ff06512846897fffff08d130651354c414d45332e313030555555f2c113a6ce9be046f81a9467a1d687668aaa2a87e79a2a86d07341e6491924469329244513e39afc65f199484f8199ee6a5118a262899a94428999ee628918a262891be062891a94452118a2452199486a51191388aa1913844e9a2aa44e9913844e9a2aa44e1a2a844e9913a44e9511542b2270a1f14aef8cacf88a1f17cb0fc4585122b5123a43a43f2b513f35125132c28981d13a240744a8904e8981d12a25c0e89d1308d1203a2744c2344c1944819448194480e89d1275c2344b03a2744c0e89d1208d120651284689e0ca2703a2544c1944a0744e89c1944c1944e11a240ca2411a260ca260744e894194482344a0ca2708d120651208d1206513df03a2544e0ca260ca2613a2508d1203a2544982344fc23449ffc19a770669ce11d3b08e9c08e9c08e9c8474ef68334e230669cf8334ee11d3bedfe0cd39ff84b4e0474e3c19a737fc19a774fb7ffd1a8ac5ca3172d7853ebdc5cb2b5e0cd19b4668a2f083bc90bb3285d90ca6d29b0d1730d98e3545e10d7855e08c47023f8db3711c4a11fc32ec8bb23466cbb234668bb23172978328bc20ad7853466d19d32eccbb334674bb22c233450bb2fffbd2c4d583e9c98ec40ffad44632b35881ff5a9879a3345d915a336562e5128b9671fc8e068e28e068e08e068e31fc568e271fe8e25836733666e82c1b3959b3159b3159b39b749b3160d9cacd9ccd9cd9fcb06cc566cc566cc66cc6cffe566ce566cc566cc66ce6ce5836633666e93366367336736636e83662b36636e86e82c1b3960d98231c4231c4231c0191c4191c4231c0191c4191c0231c58191c20c8e2118e20c8e00c8e1038e11c0231c4231c4231c40e38471c191c6071c638846388463840e38c70038e31c00e38c70038e11c0231c40e3847108c71c0e3847181c718e00c8e2e0c8e2118e00c8e18323881c708e0118e211b940cb97f03b9572c2372af065ca81dcab97f832e5f03b9572c0ee5dca08dca03b9772c2372f81dcbb9411b940cb97fc1972e11b940cb94e11b940cb95ededde0cb956846e5fff09dcae12b960000001fcc2994b64d58f35b0cd6f1530d2d835b0d0220a60c31b2ca4c17e05f8c4b605fcb00bf18c303ab18eac30c98822208960c6b31040a55319544b630c6831b3195031b3200c29831534ab830a648022a0532581534c2990a60ac54c2c0532562a69602982c0a98614c05305640116031b305fc4b72b0c68b018d16031b305fc17ff2b7e3cadf92c3f0587e0df87e4df87e4f1b5fcb0bf1afcbf79617eff2c2fe6bfafc56bf95a42690a4072fa4272fa40690242690a42690242690240572f9a40901a409015a42690a40690a40690cbe690a4269024256901a40901a40909a42909a412f1a41ce9a42909a4090961202c5f8aefc77ebff9dfafde577ff3bf5f8efd7e2c5fbcefd7f2c5f8b17ef2bbf15df8efd7f3bf5fbcb17e2c5f8eff7f3bfdfcaefe77fbf162fc77fbf1dfefc58bf795dfcaefe77ebf1dfafe77fbf9dfefc58fc1fe7f057f93fcfe4b1f82c7e4aff1fe58fc95fe0aff258fcf9fe3f258fcff95fe0aff1e58fc95fe0b1f92bfc1fe3f257f83fc7e0ff1f8f2bfc9fe7f3e58fc9fe7f257f82c7e3cff3f92c7e4b1f83fcfe7cb1f8f2c7e0ff3f82bfc9fe7f257f9ffffcbf79dde6bf76bb87ef58ffffef3cf9bfdd65909587c663f127c65455e4d2641838c9224994c9221830c66c0ca4c0fa0ca4cae20e34c5632438cbc71290cbc638a4ad2642c05f0617c8c1c787124465f2c1fe7485485d3f72fffbd2c4ff83b74592d26ff796ce783199c1ff75a8a433f73512314c4212c15b9a1095b195b15b960be4cbe0be4cbe5838d838be4d838be0c6e4e30ce386e4d58ce38b071e563706370372582422c252960908c90d297cac90cc908908ac90cadb936e1b936e38c36e1b82c37056dc1b71c61b72dc9b70dc9b70dc162f9f2bbe4ef9be7caef92c5f3e577c15df058be0aef8390a422b908ae422b90cb12196242f2c4845890fce43908e4390ce4290ce43908db86e0db96e4db86e4b0dc9b72dc161b936e5b836e5b936e5b936e1b92c370586e0b0dc1b72dc95b7256dc1b70dc1b72dc9b72dc1b70dc95b7056dc9b70dcff9b72dcf9b70dc9b72dc15b70586e0b0dc1b70dc95b726dcb71e586e4b0dc7fffffffff95fc658f8fffffffcafe2ffffff390a43390e42f2b90ce43908b12195c86721c86721c85e5721796243f2c4845890cae422b908e4390ce4290cae422b908e4390cb1217fffff962f92c5f3fffffffffe58be7ffffffffcb17cd5f2c0a266f813e066289b3a462529c5265e39c50512651a4ca61c96096631294bc632f1cbc731294bc630e30ae532b8c90f3158c38f32438ae33158c1b82b0e34a8491985f04929924630798c1e3079978c71498948121184847141589486289948665210a2462898a26581448aca432c0a2462890a2456289958a27e58144cb1f17ff963e23f8fe3f2c7c5e6dc3726dcb726dc370586e4db86e4db96e4b1c79b70dc9b72dc1b72dc1b72dc9b70dc1b72dc9b72dcf9b72dcf9b72dc95b70586e0db96e0b121162432b908b12115c865890cae43fff2c486572195c85e6dcb706dcb706dcb726dc37256dc15b7256dc9b70dc161b92c372586e4adb8ff36e1b936e5b8ff390a422b908ae422b908ae432b908e4390ce42908e4290ffcb1211c8521962422c484721486721c86572196242ff2bbe3cb17c15df058be4aef82bbe4b17c95df258be0b17c9df17c79df37c95df277cdf258be3fcef8be3caef82bbe7ce4390ce42908ae42390e43ff2c48457211c8721962432c485e721c845890bce43908e42908ae43f2b90cae422b908ae43f390e432b90cb121e11a244c8532310ce157e3496d8d93103fcc48c61f831931cad5270ae8192a1276cb51950b27064a9958b034403a095cd245b3b7114c8a46353c2ce1fffbd2c4ea83f37d5cce0ff6d7c60934de41cd6691444353298d52a832342b64c8a324908d5644353aa8444a1cf46b3f9a6506a968b563fea8af41bb1a648798f1e63c898c266f07155e133b3428486c913c33670cf9a295866cf19e39485681a081a081a1e129c677e57e1a07cacd338ad120ecd23499f1de8cc44d0f8ce46e19e819c990a0fe52909c5101a089f871a3e54287b64d19551340e34117fed19e91222672049f133f1b24748b928d4a8f709b9371d2478a3a26e891e375d22fc75f375b28f33ce909bd76cecbc9301f81dc82ceab0a9713b93676594f58edb49da3bef3c2f3bb03b6b1cbdf772e8cf0b4730257481e26ecdc70de789b62ab46d344ae916a6e3981b8f916a586c6b29d8d916c6f3a6eb84df9bed5b98379ee61f52c72bd3d3dc87e821ca177e00791c393b87227f2cd69c7ddc7a067703cc3b0ee47dafcbe61fbad63ee01800661f807c0111c7079e00600181e7819600647aa47e30c10cc641634bbb8df69a30a24cd04093289c8cae19347bb8e0aea368b28d8ea232684cca8573291ccd40a33350ecc624a30995cd890738837cd083103010c969c366b18d326230e03d1b0c1a1c317908ca25031f8502c0b2c898684248150e4120d48b4e061269366e3a6e4269a868803069b4e9c149d4e930374461238afa008c638402091a80889ac8840afd213404097154d5215a622b3ded69d6804b9a641a640282a5500d598d64c98100a470c870a802590fcd274de84d350cb014ba7df57e00281aa52ce5e2c55733dceccb1da81986f825237da3552354c4d752de4b60161a862611a68063251aa618a71c381bcaa78ad160060880a19d761ac460168cb38280a22ba4826407294a76971400b370db81204d8111b8f344f102a8e2e36a8dae0369545055d5692f2ca619932e67782e235a17eb5aa3a58661da90d3b4ca588b5d4e50214d093204b8ac74401342cd035225f635d0f3639a0ba51c4e648a6f9554c0b385ced7393cb8cf34a6970a6b5ba5a6ed5a5a5d534bad56954bad5594cb6f5694cb795a354dda58cd3674b19b3a954bad56954bad5594cb7095592028b51774bdc5f541a2a0287884f4281658d330cc64c37028f90c0237c00d19e686807c2e76e46b7a60fc415882830e5341837c7077c6a1e61ac1664858156418b18fffbd2c4f28234520cec0e67178619bf8c199c3fa82898c416f157c0b2aa1a08eb2a42498c798ab00190bb440d8a34055cca2823337443517315c0a3e43008df023463a6680c44a04145d541a56555050f50c51751550e50d5165655505575344d90148c4b04b844f2580cbc28c30941d0128808c0c28a9890e38611942802e5abb7325d56e5d9a765618b8414088443052520e8c4002e3913005532a0c5b0af083a29c02e4d0e01ac3546c3805c20892c065e166015260121a3178ad6bb7265da54a5c10a804031921214708210972048e1862c885c42852520e8c4422dda0115e3427f6028360882dea6429528dc91a8ec94a92891e98050305180050a985124a81d488085970e60634c20061c54c4871c3084a5a82dfa5123ea732c0a8f2db5805575e0d11b0ae972bcbb522ad2a5c49513d288a9280bb96c32d04749fc894c24d10a7523635c282d52c08ee9955ca55d2fae14ec0c70e94c414d45332e3130305555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555";
789
- var oc = Object.defineProperty, sc = Object.getOwnPropertyDescriptor, Z = (a, t, c, i) => {
790
- for (var n = i > 1 ? void 0 : i ? sc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
791
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
792
- return i && n && oc(t, c, n), n;
789
+ var sc = Object.defineProperty, oc = Object.getOwnPropertyDescriptor, Z = (a, e, c, i) => {
790
+ for (var n = i > 1 ? void 0 : i ? oc(e, c) : e, d = a.length - 1, l; d >= 0; d--)
791
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
792
+ return i && n && sc(e, c, n), n;
793
793
  };
794
- const B = ft.noConflict();
795
- B.setLevel("info");
796
- const se = "cb_";
794
+ const P = ft.noConflict();
795
+ P.setLevel("info");
796
+ const oe = "cb_";
797
797
  class W extends Ke {
798
798
  constructor() {
799
- super(...arguments), this.actionIdCounter = 0, this.prefilledFormValues = {}, this.wsClient = null, this.replyMessage = null, this.streamingResponseInProgress = !1, this.streamingResponseBuffer = null, this.streamingResponseTagStartPos = 0;
799
+ super(...arguments), this.actionIdCounter = 0, this.prefilledFormValues = {}, this.wsClient = null, this.replyMessage = null, this.streamingResponseInProgress = !1, this.streamingResponseBuffer = null, this.streamingResponseTagStartPos = 0, this.streamingResponseCurrentTag = null;
800
800
  }
801
801
  // this is called at startup
802
- setSetting(t) {
803
- B.info("appState: Startup: setSetting", t), this.setting = t, this.initBot().catch((c) => {
804
- B.info(`Exception during bot initialization: ${c.message}`);
802
+ setSetting(e) {
803
+ P.info("appState: Startup: setSetting", e), this.setting = e, this.initBot().catch((c) => {
804
+ P.info(`Exception during bot initialization: ${c.message}`);
805
805
  });
806
806
  }
807
807
  // set language
808
- setLanguage(t) {
809
- this.language = t;
808
+ setLanguage(e) {
809
+ this.language = e;
810
810
  }
811
811
  // set theme
812
- setTheme(t) {
813
- this.theme = t;
812
+ setTheme(e) {
813
+ this.theme = e;
814
814
  }
815
815
  async initBot() {
816
816
  if (!this.botSettingsInitialized) {
817
817
  const c = `${this.setting.url.startsWith("localhost") ? "http" : "https"}://${this.setting.url}/api/bot/settings/${this.setting.orgId}/${this.setting.botId}`;
818
- B.info(`Getting bot settings at ${c} ...`);
818
+ P.info(`Getting bot settings at ${c} ...`);
819
819
  let i = null, n = null;
820
820
  try {
821
821
  i = await fetch(c, {
@@ -823,13 +823,13 @@ class W extends Ke {
823
823
  "Access-Control-Allow-Origin": "null",
824
824
  "X-Enegel-Signature": this.setting.botId
825
825
  }
826
- }), !i.ok || i.status !== 200 ? B.error(`Failed to get bot ${this.setting.botId} settings: ${i.status} ${i.statusText}`) : n = await i.json();
826
+ }), !i.ok || i.status !== 200 ? P.error(`Failed to get bot ${this.setting.botId} settings: ${i.status} ${i.statusText}`) : n = await i.json();
827
827
  } catch (d) {
828
- B.error(`Failed to get bot ${this.setting.botId} settings: ${d.message}`), n = null;
828
+ P.error(`Failed to get bot ${this.setting.botId} settings: ${d.message}`), n = null;
829
829
  }
830
830
  if (this.botSettingsInitialized = !0, this.botSettings = n, !n) {
831
- if (B.error(`Unable to retrieve bot settings - bot disabled. Retry in ${this.botSettingsRetryTimeout} seconds.`), this.disabled = !0, this.botSettingsRetryTimeout > 80) {
832
- B.error("Failed to retrieve bot settings - bot disabled. Retries exhausted. Refresh page to attempt again.");
831
+ if (P.error(`Unable to retrieve bot settings - bot disabled. Retry in ${this.botSettingsRetryTimeout} seconds.`), this.disabled = !0, this.botSettingsRetryTimeout > 80) {
832
+ P.error("Failed to retrieve bot settings - bot disabled. Retries exhausted. Refresh page to attempt again.");
833
833
  return;
834
834
  }
835
835
  this.botSettingsInitialized = !1, setTimeout(async () => {
@@ -837,12 +837,12 @@ class W extends Ke {
837
837
  }, this.botSettingsRetryTimeout * 1e3), this.botSettingsRetryTimeout = this.botSettingsRetryTimeout * 2;
838
838
  return;
839
839
  }
840
- B.info("Got bot settings - bot is enabled", n), this.disabled = !1, this.setting.welcomeMessage = (n == null ? void 0 : n.welcomeMessage) || "How can I help ?", this.setting.engageMessage = (n == null ? void 0 : n.engageMessage) || "How can I help ?", this.setting.engageTimeout = (n == null ? void 0 : n.engageTimeout) || 5, this.setting.splitMessagesAtBreak = "splitMessagesAtBreak" in n ? n.splitMessagesAtBreak : !1, this.initConversation(), this.shouldEngage === "true" && setTimeout(() => {
840
+ P.info("Got bot settings - bot is enabled", n), this.disabled = !1, this.setting.welcomeMessage = (n == null ? void 0 : n.welcomeMessage) || "How can I help ?", this.setting.engageMessage = (n == null ? void 0 : n.engageMessage) || "How can I help ?", this.setting.engageTimeout = (n == null ? void 0 : n.engageTimeout) || 5, this.setting.splitMessagesAtBreak = "splitMessagesAtBreak" in n ? n.splitMessagesAtBreak : !1, this.initConversation(), this.shouldEngage === "true" && setTimeout(() => {
841
841
  this.showEngagePopup();
842
842
  }, this.setting.engageTimeout * 1e3);
843
843
  }
844
- this.connectWs === "true" && (B.info("appState: connectWs is true"), this.getWsClient().catch((t) => {
845
- B.error(`Exception during ws client startup: ${t.message}`);
844
+ this.connectWs === "true" && (P.info("appState: connectWs is true"), this.getWsClient().catch((e) => {
845
+ P.error(`Exception during ws client startup: ${e.message}`);
846
846
  })), setTimeout(() => {
847
847
  window.dispatchEvent(
848
848
  new CustomEvent("c7o:bot:stateEvent", {
@@ -871,40 +871,40 @@ class W extends Ke {
871
871
  }
872
872
  }), this.initStartupForm();
873
873
  }
874
- setPrefilledFormFields(t) {
875
- this.prefilledFormValues = t;
874
+ setPrefilledFormFields(e) {
875
+ this.prefilledFormValues = e;
876
876
  }
877
- getPrefilledFormFieldValue(t) {
878
- return !this.prefilledFormValues || !(t in this.prefilledFormValues) ? null : this.prefilledFormValues[t];
877
+ getPrefilledFormFieldValue(e) {
878
+ return !this.prefilledFormValues || !(e in this.prefilledFormValues) ? null : this.prefilledFormValues[e];
879
879
  }
880
880
  initStartupForm() {
881
- const t = gt(null, ["startupForm"], this.botSettings);
882
- if (!t || !(t != null && t.name)) {
883
- B.info("Startup form not present");
881
+ const e = gt(null, ["startupForm"], this.botSettings);
882
+ if (!e || !(e != null && e.name)) {
883
+ P.info("Startup form not present");
884
884
  return;
885
885
  }
886
- this.initForm(t);
886
+ this.initForm(e);
887
887
  }
888
- initForm(t = null) {
889
- const c = t, i = gt(null, ["name"], t);
888
+ initForm(e = null) {
889
+ const c = e, i = gt(null, ["name"], e);
890
890
  if (!c || !i)
891
891
  return;
892
- const n = gt(null, ["fields"], t);
892
+ const n = gt(null, ["fields"], e);
893
893
  if (!Array.isArray(n) || n.length <= 0) {
894
- B.info("form has no fields", t);
894
+ P.info("form has no fields", e);
895
895
  return;
896
896
  }
897
- const d = `${se}${this.setting.botId}.${this.conversationId}.form.${i}`, l = localStorage.getItem(d);
897
+ const d = `${oe}${this.setting.botId}.${this.conversationId}.form.${i}`, l = localStorage.getItem(d);
898
898
  if (l) {
899
- let v = null;
899
+ let x = null;
900
900
  try {
901
- v = JSON.parse(l);
901
+ x = JSON.parse(l);
902
902
  } catch (S) {
903
- B.error(`Failed to parse stored form data: ${S.message}`), v = null;
903
+ P.error(`Failed to parse stored form data: ${S.message}`), x = null;
904
904
  }
905
- if (v) {
906
- this.sendFormData(i, v).catch((S) => {
907
- B.error(`Error when submitting form: ${S.message}`);
905
+ if (x) {
906
+ this.sendFormData(i, x).catch((S) => {
907
+ P.error(`Error when submitting form: ${S.message}`);
908
908
  });
909
909
  return;
910
910
  }
@@ -917,14 +917,14 @@ class W extends Ke {
917
917
  showEngagePopup() {
918
918
  if (this.open)
919
919
  return;
920
- B.info("Engaging User !"), this.engage = !0;
921
- const t = (d) => {
920
+ P.info("Engaging User !"), this.engage = !0;
921
+ const e = (d) => {
922
922
  const l = new Uint8Array(d.length / 2);
923
- for (let v = 0; v < l.length; v++)
924
- l[v] = parseInt(d.substr(v * 2, 2), 16);
923
+ for (let x = 0; x < l.length; x++)
924
+ l[x] = parseInt(d.substr(x * 2, 2), 16);
925
925
  return l;
926
926
  };
927
- let c = new Blob([t(nc)], { type: "application/octet-stream" });
927
+ let c = new Blob([e(nc)], { type: "application/octet-stream" });
928
928
  const i = URL.createObjectURL(c);
929
929
  new Audio(i).play();
930
930
  }
@@ -937,7 +937,7 @@ class W extends Ke {
937
937
  if (this.wsClient)
938
938
  return this.wsClient;
939
939
  const c = `${this.setting.url.startsWith("localhost") ? "ws" : "wss"}://${this.setting.url}/api/bot/connect/${this.setting.orgId}/${this.setting.botId}/${this.conversationId}`;
940
- return B.info(`Initiating ws connection to ${c} ...`), this.wsClient = new Wa({
940
+ return P.info(`Initiating ws connection to ${c} ...`), this.wsClient = new Wa({
941
941
  url: c,
942
942
  orgId: this.setting.orgId,
943
943
  botId: this.setting.botId,
@@ -946,28 +946,28 @@ class W extends Ke {
946
946
  this.handleWscMessage(i);
947
947
  }, this.connectWs = "true", this.wsClient;
948
948
  }
949
- handleWscMessage(t) {
949
+ handleWscMessage(e) {
950
950
  var c;
951
- switch (this.lastConversationUpdate = Date.now(), t == null ? void 0 : t.type) {
951
+ switch (this.lastConversationUpdate = Date.now(), e == null ? void 0 : e.type) {
952
952
  case "message": {
953
953
  if (this.replyMessage)
954
- this.streamingResponseInProgress ? (this.finishStreamingResponse(t.text), this.streamingResponseInProgress = !1) : (this.replyMessage.data.text = t.text, this.updateMessage(this.replyMessage, "")), this.replyMessage = null;
954
+ this.streamingResponseInProgress ? (this.finishStreamingResponse(e.text), this.streamingResponseInProgress = !1) : (this.replyMessage.data.text = e.text, this.updateMessage(this.replyMessage, "")), this.replyMessage = null;
955
955
  else {
956
956
  const i = {
957
957
  type: "text",
958
958
  author: "assistant",
959
959
  data: {
960
- text: t.text
960
+ text: e.text
961
961
  }
962
962
  };
963
- "userName" in t && (i.data.userName = t.userName), "userAvatar" in t && (i.data.userAvatar = t.userAvatar);
963
+ "userName" in e && (i.data.userName = e.userName), "userAvatar" in e && (i.data.userAvatar = e.userAvatar);
964
964
  const n = this.formatMessage(i);
965
965
  this.messages = this.messages.concat([n]);
966
966
  }
967
967
  break;
968
968
  }
969
969
  case "message-chunk": {
970
- t.text && this.processStreamingResponse(t.text);
970
+ e.text && this.processStreamingResponse(e.text);
971
971
  break;
972
972
  }
973
973
  case "typing": {
@@ -982,59 +982,81 @@ class W extends Ke {
982
982
  break;
983
983
  }
984
984
  case "form": {
985
- if (B.info("Got form:", t), this.replyMessage && this.replyMessage.id) {
985
+ if (P.info("Got form:", e), this.replyMessage && this.replyMessage.id) {
986
986
  const i = ((c = this.replyMessage.data) == null ? void 0 : c.text) || "";
987
987
  (this.replyMessage.isThinking || i.trim() === "") && (this.removeMessage(this.replyMessage.id), this.replyMessage = null);
988
988
  }
989
- this.initForm(t.form);
989
+ this.initForm(e.form);
990
990
  break;
991
991
  }
992
992
  case "actions": {
993
- this.addActions((t == null ? void 0 : t.actions) || []);
993
+ this.addActions((e == null ? void 0 : e.actions) || []);
994
994
  break;
995
995
  }
996
996
  }
997
997
  }
998
- processStreamingResponse(t) {
999
- var i, n;
998
+ processStreamingResponseTagBr() {
999
+ var c, i;
1000
+ if (!this.streamingResponseBuffer || !this.replyMessage || this.streamingResponseBuffer.length < this.streamingResponseTagStartPos + 4)
1001
+ return;
1002
+ const e = this.streamingResponseBuffer.indexOf("<br>");
1003
+ if (e !== -1)
1004
+ if (this.setting.splitMessagesAtBreak) {
1005
+ const n = this.streamingResponseBuffer.substring(0, e).trim(), d = this.streamingResponseBuffer.substring(e + 4).trim();
1006
+ (n !== "" || ((i = (c = this.replyMessage) == null ? void 0 : c.data) == null ? void 0 : i.text) !== "") && (P.info(`BREAK: Splitting the message: ${this.streamingResponseBuffer} >>> prev: ${n} next: ${d}`), this.replyMessage = this.updateMessage(this.replyMessage, n), this.replyMessage = { author: "assistant", type: "text", isThinking: !1, data: { text: d } }, this.addMessage(this.replyMessage));
1007
+ } else
1008
+ this.replyMessage = this.updateMessage(this.replyMessage, this.streamingResponseBuffer);
1009
+ this.streamingResponseBuffer = null, this.streamingResponseTagStartPos = 0, this.streamingResponseCurrentTag = null;
1010
+ }
1011
+ processStreamingResponseTagImg() {
1012
+ !this.streamingResponseBuffer || !this.replyMessage || this.streamingResponseBuffer.indexOf(")") !== -1 && (P.info(`IMG TAG END: ${this.streamingResponseBuffer}`), this.isValidImageLink(this.streamingResponseBuffer) && (this.replyMessage = this.updateMessage(this.replyMessage, this.streamingResponseBuffer)), this.streamingResponseBuffer = null, this.streamingResponseTagStartPos = 0, this.streamingResponseCurrentTag = null);
1013
+ }
1014
+ isValidImageLink(e = "") {
1015
+ return !(e.indexOf("example.com") !== -1 || e.indexOf("imgur.com") !== -1 || e.indexOf("attachment:") !== -1);
1016
+ }
1017
+ processStreamingResponse(e) {
1000
1018
  this.streamingResponseInProgress = !0;
1001
- let c = t;
1019
+ let c = e;
1002
1020
  if (this.replyMessage) {
1003
- if (t.indexOf("<") !== -1) {
1004
- this.streamingResponseBuffer = t, this.streamingResponseTagStartPos = t.indexOf("<");
1005
- return;
1006
- }
1007
- if (this.streamingResponseBuffer) {
1008
- if (this.streamingResponseBuffer += t, this.streamingResponseBuffer.length < this.streamingResponseTagStartPos + 4)
1009
- return;
1010
- const d = this.streamingResponseBuffer.indexOf("<br>");
1011
- if (d !== -1) {
1012
- if (this.setting.splitMessagesAtBreak) {
1013
- const l = this.streamingResponseBuffer.substring(0, d).trim(), v = this.streamingResponseBuffer.substring(d + 4).trim();
1014
- (l !== "" || ((n = (i = this.replyMessage) == null ? void 0 : i.data) == null ? void 0 : n.text) !== "") && (B.info(`BREAK: Splitting the message: ${this.streamingResponseBuffer} >>> prev: ${l} next: ${v}`), this.replyMessage = this.updateMessage(this.replyMessage, l), this.replyMessage = { author: "assistant", type: "text", isThinking: !1, data: { text: "" } }, this.addMessage(this.replyMessage)), c = v;
1015
- } else
1016
- c = this.streamingResponseBuffer;
1017
- this.streamingResponseBuffer = null, this.streamingResponseTagStartPos = 0;
1021
+ if (this.streamingResponseBuffer)
1022
+ switch (this.streamingResponseBuffer += e, this.streamingResponseCurrentTag) {
1023
+ case "br":
1024
+ return this.processStreamingResponseTagBr();
1025
+ case "img":
1026
+ return this.processStreamingResponseTagImg();
1018
1027
  }
1028
+ if (e.indexOf("<") !== -1) {
1029
+ this.streamingResponseBuffer = e, this.streamingResponseTagStartPos = e.indexOf("<"), this.streamingResponseCurrentTag = "br";
1030
+ return;
1031
+ } else if (e.indexOf("![") !== -1) {
1032
+ this.streamingResponseBuffer = e, this.streamingResponseTagStartPos = e.indexOf("!["), this.streamingResponseCurrentTag = "img", P.info(`IMG TAG START: ${this.streamingResponseBuffer}`);
1033
+ return;
1019
1034
  }
1020
1035
  this.replyMessage = this.updateMessage(this.replyMessage, c);
1021
1036
  }
1022
1037
  }
1023
- finishStreamingResponse(t) {
1038
+ // Check and remove invalid message links from the response text
1039
+ cleanupImageLinks(e = "") {
1040
+ const c = /!\[.*?\]\((.*?)\)/g;
1041
+ return e.replace(c, (n, d) => this.isValidImageLink(n) ? n : "");
1042
+ }
1043
+ finishStreamingResponse(e) {
1024
1044
  if (!this.replyMessage || !this.streamingResponseInProgress)
1025
1045
  return;
1026
1046
  this.streamingResponseInProgress = !1;
1027
- const c = t.lastIndexOf("<br>");
1028
- if (!this.setting.splitMessagesAtBreak || c === -1) {
1029
- this.replyMessage.data.text = t, this.updateMessage(this.replyMessage, "");
1047
+ let c = e;
1048
+ c = this.cleanupImageLinks(c);
1049
+ const i = c.lastIndexOf("<br>");
1050
+ if (!this.setting.splitMessagesAtBreak || i === -1) {
1051
+ this.replyMessage.data.text = c, this.updateMessage(this.replyMessage, "");
1030
1052
  return;
1031
1053
  }
1032
- const i = t.substring(c + 4);
1033
- this.replyMessage.data.text = i, this.updateMessage(this.replyMessage, "");
1054
+ const n = c.substring(i + 4);
1055
+ this.replyMessage.data.text = n, this.updateMessage(this.replyMessage, "");
1034
1056
  }
1035
- addActions(t) {
1036
- if (Array.isArray(t) && t.length > 0) {
1037
- const c = t.map((i) => Object.assign(i, { internalId: this.actionIdCounter++ }));
1057
+ addActions(e) {
1058
+ if (Array.isArray(e) && e.length > 0) {
1059
+ const c = e.map((i) => Object.assign(i, { internalId: this.actionIdCounter++ }));
1038
1060
  this.actions = this.actions.concat(c), c.map((i) => {
1039
1061
  window.dispatchEvent(
1040
1062
  new CustomEvent("c7o:bot:stateEvent", {
@@ -1048,22 +1070,22 @@ class W extends Ke {
1048
1070
  }
1049
1071
  }
1050
1072
  // Remove action, for example, when completed
1051
- removeAction(t, c = !1, i = {}) {
1052
- const n = this.actions.findIndex((d) => d.internalId === t);
1073
+ removeAction(e, c = !1, i = {}) {
1074
+ const n = this.actions.findIndex((d) => d.internalId === e);
1053
1075
  if (n !== -1) {
1054
1076
  const d = this.actions[n];
1055
1077
  if (c) {
1056
- const v = {
1078
+ const x = {
1057
1079
  type: "actionCompleted",
1058
1080
  action: d,
1059
1081
  data: i
1060
1082
  };
1061
1083
  window.dispatchEvent(
1062
1084
  new CustomEvent("c7o:bot:stateEvent", {
1063
- detail: v
1085
+ detail: x
1064
1086
  })
1065
- ), this.sendActionCompleted(v).catch((S) => {
1066
- B.error(`Error: failed to send action completed: ${S.message}`);
1087
+ ), this.sendActionCompleted(x).catch((S) => {
1088
+ P.error(`Error: failed to send action completed: ${S.message}`);
1067
1089
  });
1068
1090
  }
1069
1091
  this.actions.splice(n, 1);
@@ -1071,8 +1093,8 @@ class W extends Ke {
1071
1093
  this.actions = l.concat(this.actions);
1072
1094
  }
1073
1095
  }
1074
- updateAction(t, c) {
1075
- const i = this.actions.findIndex((n) => n.internalId === t.internalId);
1096
+ updateAction(e, c) {
1097
+ const i = this.actions.findIndex((n) => n.internalId === e.internalId);
1076
1098
  if (i !== -1) {
1077
1099
  const n = Object.assign({}, this.actions[i], c);
1078
1100
  this.actions.splice(i, 1, n);
@@ -1080,116 +1102,116 @@ class W extends Ke {
1080
1102
  this.actions = d.concat(this.actions);
1081
1103
  }
1082
1104
  }
1083
- async sendMessage(t) {
1084
- t = this.formatMessage(t), B.info("Send Message:", t), this.messages = this.messages.concat([t]), this.lastConversationUpdate = Date.now();
1105
+ async sendMessage(e) {
1106
+ e = this.formatMessage(e), P.info("Send Message:", e), this.messages = this.messages.concat([e]), this.lastConversationUpdate = Date.now();
1085
1107
  const c = await this.getWsClient();
1086
1108
  if (!c) {
1087
- B.error("Error - failed to obtain ws client"), this.replyMessage = null;
1109
+ P.error("Error - failed to obtain ws client"), this.replyMessage = null;
1088
1110
  return;
1089
1111
  }
1090
1112
  c.sendMessage({
1091
1113
  type: "message",
1092
- id: t.id,
1093
- text: t.data.text
1114
+ id: e.id,
1115
+ text: e.data.text
1094
1116
  });
1095
1117
  }
1096
1118
  // TODO revisit below
1097
- formatMessage(t) {
1119
+ formatMessage(e) {
1098
1120
  var c;
1099
- return t.id || (t.id = et()), t.timestamp = Date.now(), t.author === "assistant" && (t.replyId = (c = this.messages[this.messages.length - 1]) == null ? void 0 : c.id), t;
1121
+ return e.id || (e.id = et()), e.timestamp = Date.now(), e.author === "assistant" && (e.replyId = (c = this.messages[this.messages.length - 1]) == null ? void 0 : c.id), e;
1100
1122
  }
1101
1123
  // add message
1102
- addMessage(t) {
1103
- t = this.formatMessage(t), this.messages = this.messages.concat([t]);
1124
+ addMessage(e) {
1125
+ e = this.formatMessage(e), this.messages = this.messages.concat([e]);
1104
1126
  }
1105
- addSystemMessage(t) {
1127
+ addSystemMessage(e) {
1106
1128
  this.addMessage({
1107
1129
  type: "text",
1108
1130
  author: "system",
1109
1131
  data: {
1110
- text: t
1132
+ text: e
1111
1133
  }
1112
1134
  });
1113
1135
  }
1114
1136
  // update message
1115
- updateMessage(t, c) {
1116
- const i = this.formatMessage(t);
1137
+ updateMessage(e, c) {
1138
+ const i = this.formatMessage(e);
1117
1139
  return i.isThinking = !1, c && (i.data.text += c), this.messages = this.messages.map((n) => n.id === i.id ? i : n), i;
1118
1140
  }
1119
1141
  // remove message
1120
- removeMessage(t) {
1121
- this.messages = this.messages.filter((c) => c.id !== t);
1142
+ removeMessage(e) {
1143
+ this.messages = this.messages.filter((c) => c.id !== e);
1122
1144
  }
1123
1145
  // clear messages
1124
1146
  clearMessages() {
1125
1147
  this.messages = [];
1126
1148
  }
1127
1149
  // Submit current form data
1128
- async submitForm(t) {
1150
+ async submitForm(e) {
1129
1151
  if (!this.form) {
1130
- B.info("submitForm: No form is active - ignored");
1152
+ P.info("submitForm: No form is active - ignored");
1131
1153
  return;
1132
1154
  }
1133
- const c = `${se}${this.setting.botId}.${this.conversationId}.form.${this.form.name}`;
1134
- await this.sendFormData(this.form.name, t), localStorage.setItem(c, JSON.stringify(t)), this.form = null;
1155
+ const c = `${oe}${this.setting.botId}.${this.conversationId}.form.${this.form.name}`;
1156
+ await this.sendFormData(this.form.name, e), localStorage.setItem(c, JSON.stringify(e)), this.form = null;
1135
1157
  }
1136
- async sendFormData(t, c) {
1158
+ async sendFormData(e, c) {
1137
1159
  const i = await this.getWsClient();
1138
1160
  if (!i) {
1139
- B.error("Error - failed to obtain ws client");
1161
+ P.error("Error - failed to obtain ws client");
1140
1162
  return;
1141
1163
  }
1142
1164
  i.sendMessage({
1143
1165
  type: "form",
1144
- name: t,
1166
+ name: e,
1145
1167
  data: c
1146
1168
  });
1147
1169
  }
1148
- async sendActionCompleted(t) {
1170
+ async sendActionCompleted(e) {
1149
1171
  const c = await this.getWsClient();
1150
1172
  if (!c) {
1151
- B.error("Error - failed to obtain ws client");
1173
+ P.error("Error - failed to obtain ws client");
1152
1174
  return;
1153
1175
  }
1154
1176
  c.sendMessage({
1155
1177
  type: "actionCompleted",
1156
- data: t
1178
+ data: e
1157
1179
  });
1158
1180
  }
1159
1181
  }
1160
1182
  Z([
1161
- pe({ prefix: se }),
1183
+ pe({ prefix: oe }),
1162
1184
  X({ value: "en" })
1163
1185
  ], W.prototype, "language", 2);
1164
1186
  Z([
1165
- pe({ prefix: se }),
1187
+ pe({ prefix: oe }),
1166
1188
  X({ value: "light" })
1167
1189
  ], W.prototype, "theme", 2);
1168
1190
  Z([
1169
- pe({ prefix: se }),
1191
+ pe({ prefix: oe }),
1170
1192
  X({ type: Boolean, value: !1 })
1171
1193
  ], W.prototype, "open", 2);
1172
1194
  Z([
1173
1195
  X({ type: Boolean, value: !1 })
1174
1196
  ], W.prototype, "alwaysOpen", 2);
1175
1197
  Z([
1176
- pe({ prefix: se }),
1198
+ pe({ prefix: oe }),
1177
1199
  X({ value: "false" })
1178
1200
  ], W.prototype, "connectWs", 2);
1179
1201
  Z([
1180
- pe({ prefix: se }),
1202
+ pe({ prefix: oe }),
1181
1203
  X({ value: et() })
1182
1204
  ], W.prototype, "conversationId", 2);
1183
1205
  Z([
1184
- pe({ prefix: se }),
1206
+ pe({ prefix: oe }),
1185
1207
  X({ value: 0 })
1186
1208
  ], W.prototype, "lastConversationUpdate", 2);
1187
1209
  Z([
1188
- pe({ prefix: se }),
1210
+ pe({ prefix: oe }),
1189
1211
  X({ type: Array, value: [] })
1190
1212
  ], W.prototype, "messages", 2);
1191
1213
  Z([
1192
- pe({ prefix: se }),
1214
+ pe({ prefix: oe }),
1193
1215
  X({
1194
1216
  type: Array,
1195
1217
  value: []
@@ -1249,14 +1271,14 @@ Z([
1249
1271
  X({ type: Boolean, value: !0 })
1250
1272
  ], W.prototype, "disabled", 2);
1251
1273
  Z([
1252
- pe({ prefix: se }),
1274
+ pe({ prefix: oe }),
1253
1275
  X({ value: "true" })
1254
1276
  ], W.prototype, "shouldEngage", 2);
1255
1277
  Z([
1256
1278
  X({ type: Boolean, value: !1 })
1257
1279
  ], W.prototype, "engage", 2);
1258
1280
  Z([
1259
- pe({ prefix: se }),
1281
+ pe({ prefix: oe }),
1260
1282
  X({
1261
1283
  type: Object,
1262
1284
  value: {
@@ -1268,7 +1290,7 @@ Z([
1268
1290
  }
1269
1291
  })
1270
1292
  ], W.prototype, "setting", 2);
1271
- const x = new W(), rc = U`
1293
+ const w = new W(), rc = U`
1272
1294
  ${ge}
1273
1295
  :host {
1274
1296
  position: relative;
@@ -1328,17 +1350,17 @@ const x = new W(), rc = U`
1328
1350
  display: inline;
1329
1351
  }
1330
1352
  `;
1331
- var dc = Object.defineProperty, fc = Object.getOwnPropertyDescriptor, lc = (a, t, c, i) => {
1332
- for (var n = i > 1 ? void 0 : i ? fc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
1333
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
1334
- return i && n && dc(t, c, n), n;
1353
+ var dc = Object.defineProperty, fc = Object.getOwnPropertyDescriptor, lc = (a, e, c, i) => {
1354
+ for (var n = i > 1 ? void 0 : i ? fc(e, c) : e, d = a.length - 1, l; d >= 0; d--)
1355
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
1356
+ return i && n && dc(e, c, n), n;
1335
1357
  };
1336
1358
  class Q extends dt {
1337
1359
  constructor() {
1338
1360
  super(...arguments), this.lang = "en";
1339
1361
  }
1340
- emit(t, c) {
1341
- const i = new CustomEvent(t, {
1362
+ emit(e, c) {
1363
+ const i = new CustomEvent(e, {
1342
1364
  bubbles: !0,
1343
1365
  cancelable: !1,
1344
1366
  composed: !0,
@@ -1352,10 +1374,10 @@ lc([
1352
1374
  C({ type: String })
1353
1375
  ], Q.prototype, "lang", 2);
1354
1376
  const tt = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"/></svg>';
1355
- var bc = Object.defineProperty, hc = Object.getOwnPropertyDescriptor, ea = (a, t, c, i) => {
1356
- for (var n = i > 1 ? void 0 : i ? hc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
1357
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
1358
- return i && n && bc(t, c, n), n;
1377
+ var bc = Object.defineProperty, hc = Object.getOwnPropertyDescriptor, ea = (a, e, c, i) => {
1378
+ for (var n = i > 1 ? void 0 : i ? hc(e, c) : e, d = a.length - 1, l; d >= 0; d--)
1379
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
1380
+ return i && n && bc(e, c, n), n;
1359
1381
  };
1360
1382
  const uc = '<svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="currentColor" d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"></path></svg>';
1361
1383
  let at = class extends Q {
@@ -1370,13 +1392,13 @@ let at = class extends Q {
1370
1392
  renderExp() {
1371
1393
  return m` <header class="cb-header" part="header">
1372
1394
  ${fe(
1373
- x.setting.logoUrl !== "",
1374
- () => m`<img class="cb-header-logo" part="header-logo" src="${x.setting.logoUrl}" />`,
1375
- () => m`<div class="cb-header-logo" part="header-logo">${de(x.setting.logoSvg)}</div>`
1395
+ w.setting.logoUrl !== "",
1396
+ () => m`<img class="cb-header-logo" part="header-logo" src="${w.setting.logoUrl}" />`,
1397
+ () => m`<div class="cb-header-logo" part="header-logo">${de(w.setting.logoSvg)}</div>`
1376
1398
  )}
1377
1399
  <div class="cb-header-title" part="header-title">${this.title}</div>
1378
1400
  ${fe(
1379
- x.alwaysOpen,
1401
+ w.alwaysOpen,
1380
1402
  () => m``,
1381
1403
  () => m`<div class="cb-header-close" part="header-close">${de(uc)}</div>`
1382
1404
  )}
@@ -1385,13 +1407,13 @@ let at = class extends Q {
1385
1407
  render() {
1386
1408
  return m` <header class="cb-header" part="header">
1387
1409
  ${fe(
1388
- x.setting.logoUrl !== "",
1389
- () => m`<img class="cb-header-img" part="header-logo" src="${x.setting.logoUrl}" />`,
1390
- () => m`<div class="cb-header-logo" part="header-logo">${de(x.setting.logoSvg)}</div>`
1410
+ w.setting.logoUrl !== "",
1411
+ () => m`<img class="cb-header-img" part="header-logo" src="${w.setting.logoUrl}" />`,
1412
+ () => m`<div class="cb-header-logo" part="header-logo">${de(w.setting.logoSvg)}</div>`
1391
1413
  )}
1392
1414
  <span class="center title" part="header-title">${this.title}</span>
1393
1415
  ${fe(
1394
- x.alwaysOpen,
1416
+ w.alwaysOpen,
1395
1417
  () => m``,
1396
1418
  () => m`<span class="right">
1397
1419
  <sl-button @click=${this._clickCloseHandler} class="cb-setting-button" variant="text" circle part="header-close">
@@ -1434,10 +1456,10 @@ const pc = U`
1434
1456
  color: var(--primary-color);
1435
1457
  }
1436
1458
  `;
1437
- var gc = Object.defineProperty, mc = Object.getOwnPropertyDescriptor, yc = (a, t, c, i) => {
1438
- for (var n = i > 1 ? void 0 : i ? mc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
1439
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
1440
- return i && n && gc(t, c, n), n;
1459
+ var gc = Object.defineProperty, mc = Object.getOwnPropertyDescriptor, yc = (a, e, c, i) => {
1460
+ for (var n = i > 1 ? void 0 : i ? mc(e, c) : e, d = a.length - 1, l; d >= 0; d--)
1461
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
1462
+ return i && n && gc(e, c, n), n;
1441
1463
  };
1442
1464
  let yt = class extends Q {
1443
1465
  constructor() {
@@ -1607,188 +1629,188 @@ const vc = U`
1607
1629
  }
1608
1630
  `;
1609
1631
  var ta = { exports: {} };
1610
- (function(a, t) {
1632
+ (function(a, e) {
1611
1633
  (function(c, i) {
1612
1634
  a.exports = i();
1613
1635
  })(Gt, function() {
1614
1636
  function c(r) {
1615
- return (c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1616
- return typeof e;
1617
- } : function(e) {
1618
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1637
+ return (c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1638
+ return typeof t;
1639
+ } : function(t) {
1640
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1619
1641
  })(r);
1620
1642
  }
1621
- function i(r, e) {
1622
- if (!(r instanceof e))
1643
+ function i(r, t) {
1644
+ if (!(r instanceof t))
1623
1645
  throw new TypeError("Cannot call a class as a function");
1624
1646
  }
1625
- function n(r, e) {
1626
- for (var o = 0; o < e.length; o++) {
1627
- var s = e[o];
1628
- s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(r, s.key, s);
1647
+ function n(r, t) {
1648
+ for (var s = 0; s < t.length; s++) {
1649
+ var o = t[s];
1650
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(r, o.key, o);
1629
1651
  }
1630
1652
  }
1631
- function d(r, e, o) {
1632
- return e && n(r.prototype, e), o && n(r, o), r;
1653
+ function d(r, t, s) {
1654
+ return t && n(r.prototype, t), s && n(r, s), r;
1633
1655
  }
1634
1656
  var l = Date.now();
1635
- function v() {
1636
- var r = {}, e = !0, o = 0, s = arguments.length;
1637
- Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (e = arguments[0], o++);
1657
+ function x() {
1658
+ var r = {}, t = !0, s = 0, o = arguments.length;
1659
+ Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (t = arguments[0], s++);
1638
1660
  for (var f = function(h) {
1639
1661
  for (var u in h)
1640
- Object.prototype.hasOwnProperty.call(h, u) && (e && Object.prototype.toString.call(h[u]) === "[object Object]" ? r[u] = v(!0, r[u], h[u]) : r[u] = h[u]);
1641
- }; o < s; o++) {
1642
- var b = arguments[o];
1662
+ Object.prototype.hasOwnProperty.call(h, u) && (t && Object.prototype.toString.call(h[u]) === "[object Object]" ? r[u] = x(!0, r[u], h[u]) : r[u] = h[u]);
1663
+ }; s < o; s++) {
1664
+ var b = arguments[s];
1643
1665
  f(b);
1644
1666
  }
1645
1667
  return r;
1646
1668
  }
1647
- function S(r, e) {
1648
- if ((te(r) || r === window || r === document) && (r = [r]), Mt(r) || Le(r) || (r = [r]), At(r) != 0) {
1649
- if (Mt(r) && !Le(r))
1650
- for (var o = r.length, s = 0; s < o && e.call(r[s], r[s], s, r) !== !1; s++)
1669
+ function S(r, t) {
1670
+ if ((te(r) || r === window || r === document) && (r = [r]), Tt(r) || Le(r) || (r = [r]), Et(r) != 0) {
1671
+ if (Tt(r) && !Le(r))
1672
+ for (var s = r.length, o = 0; o < s && t.call(r[o], r[o], o, r) !== !1; o++)
1651
1673
  ;
1652
1674
  else if (Le(r)) {
1653
1675
  for (var f in r)
1654
- if (N(r, f) && e.call(r[f], r[f], f, r) === !1)
1676
+ if (N(r, f) && t.call(r[f], r[f], f, r) === !1)
1655
1677
  break;
1656
1678
  }
1657
1679
  }
1658
1680
  }
1659
1681
  function D(r) {
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 };
1661
- return e && o && At(s) > 0 && S(s, function(b, h) {
1662
- if (b.eventName == e && b.fn.toString() == o.toString())
1682
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, o = r[l] = r[l] || [], f = { all: o, evt: null, found: null };
1683
+ return t && s && Et(o) > 0 && S(o, function(b, h) {
1684
+ if (b.eventName == t && b.fn.toString() == s.toString())
1663
1685
  return f.found = !0, f.evt = h, !1;
1664
1686
  }), f;
1665
1687
  }
1666
1688
  function L(r) {
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, y = o || [];
1668
- function M(_) {
1669
- w(s) && s.call(g, _, this), u && M.destroy();
1689
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = t.onElement, o = t.withCallback, f = t.avoidDuplicate, b = f === void 0 || f, h = t.once, u = h !== void 0 && h, p = t.useCapture, k = p !== void 0 && p, g = arguments.length > 2 ? arguments[2] : void 0, y = s || [];
1690
+ function T(_) {
1691
+ v(o) && o.call(g, _, this), u && T.destroy();
1670
1692
  }
1671
- return ie(y) && (y = document.querySelectorAll(y)), M.destroy = function() {
1693
+ return ie(y) && (y = document.querySelectorAll(y)), T.destroy = function() {
1672
1694
  S(y, function(_) {
1673
- var j = D(_, r, M);
1674
- j.found && j.all.splice(j.evt, 1), _.removeEventListener && _.removeEventListener(r, M, k);
1695
+ var O = D(_, r, T);
1696
+ O.found && O.all.splice(O.evt, 1), _.removeEventListener && _.removeEventListener(r, T, k);
1675
1697
  });
1676
1698
  }, S(y, function(_) {
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;
1699
+ var O = D(_, r, T);
1700
+ (_.addEventListener && b && !O.found || !b) && (_.addEventListener(r, T, k), O.all.push({ eventName: r, fn: T }));
1701
+ }), T;
1680
1702
  }
1681
- function E(r, e) {
1682
- S(e.split(" "), function(o) {
1683
- return r.classList.add(o);
1703
+ function M(r, t) {
1704
+ S(t.split(" "), function(s) {
1705
+ return r.classList.add(s);
1684
1706
  });
1685
1707
  }
1686
- function T(r, e) {
1687
- S(e.split(" "), function(o) {
1688
- return r.classList.remove(o);
1708
+ function A(r, t) {
1709
+ S(t.split(" "), function(s) {
1710
+ return r.classList.remove(s);
1689
1711
  });
1690
1712
  }
1691
- function F(r, e) {
1692
- return r.classList.contains(e);
1713
+ function F(r, t) {
1714
+ return r.classList.contains(t);
1693
1715
  }
1694
- function ce(r, e) {
1716
+ function ce(r, t) {
1695
1717
  for (; r !== document.body; ) {
1696
1718
  if (!(r = r.parentElement))
1697
1719
  return !1;
1698
- if (typeof r.matches == "function" ? r.matches(e) : r.msMatchesSelector(e))
1720
+ if (typeof r.matches == "function" ? r.matches(t) : r.msMatchesSelector(t))
1699
1721
  return r;
1700
1722
  }
1701
1723
  }
1702
- function A(r) {
1703
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
1704
- if (!r || e === "")
1724
+ function E(r) {
1725
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", s = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
1726
+ if (!r || t === "")
1705
1727
  return !1;
1706
- if (e === "none")
1707
- return w(o) && o(), !1;
1708
- var s = bt(), f = e.split(" ");
1728
+ if (t === "none")
1729
+ return v(s) && s(), !1;
1730
+ var o = bt(), f = t.split(" ");
1709
1731
  S(f, function(b) {
1710
- E(r, "g" + b);
1711
- }), L(s, { onElement: r, avoidDuplicate: !1, once: !0, withCallback: function(b, h) {
1732
+ M(r, "g" + b);
1733
+ }), L(o, { onElement: r, avoidDuplicate: !1, once: !0, withCallback: function(b, h) {
1712
1734
  S(f, function(u) {
1713
- T(h, "g" + u);
1714
- }), w(o) && o();
1735
+ A(h, "g" + u);
1736
+ }), v(s) && s();
1715
1737
  } });
1716
1738
  }
1717
- function z(r) {
1718
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
1719
- if (e === "")
1739
+ function H(r) {
1740
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
1741
+ if (t === "")
1720
1742
  return r.style.webkitTransform = "", r.style.MozTransform = "", r.style.msTransform = "", r.style.OTransform = "", r.style.transform = "", !1;
1721
- r.style.webkitTransform = e, r.style.MozTransform = e, r.style.msTransform = e, r.style.OTransform = e, r.style.transform = e;
1743
+ r.style.webkitTransform = t, r.style.MozTransform = t, r.style.msTransform = t, r.style.OTransform = t, r.style.transform = t;
1722
1744
  }
1723
- function R(r) {
1745
+ function q(r) {
1724
1746
  r.style.display = "block";
1725
1747
  }
1726
1748
  function $(r) {
1727
1749
  r.style.display = "none";
1728
1750
  }
1729
1751
  function he(r) {
1730
- var e = document.createDocumentFragment(), o = document.createElement("div");
1731
- for (o.innerHTML = r; o.firstChild; )
1732
- e.appendChild(o.firstChild);
1733
- return e;
1752
+ var t = document.createDocumentFragment(), s = document.createElement("div");
1753
+ for (s.innerHTML = r; s.firstChild; )
1754
+ t.appendChild(s.firstChild);
1755
+ return t;
1734
1756
  }
1735
1757
  function ee() {
1736
1758
  return { width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight };
1737
1759
  }
1738
1760
  function bt() {
1739
- var r, e = document.createElement("fakeelement"), o = { animation: "animationend", OAnimation: "oAnimationEnd", MozAnimation: "animationend", WebkitAnimation: "webkitAnimationEnd" };
1740
- for (r in o)
1741
- if (e.style[r] !== void 0)
1742
- return o[r];
1761
+ var r, t = document.createElement("fakeelement"), s = { animation: "animationend", OAnimation: "oAnimationEnd", MozAnimation: "animationend", WebkitAnimation: "webkitAnimationEnd" };
1762
+ for (r in s)
1763
+ if (t.style[r] !== void 0)
1764
+ return s[r];
1743
1765
  }
1744
- function Ie(r, e, o, s) {
1766
+ function Ie(r, t, s, o) {
1745
1767
  if (r())
1746
- e();
1768
+ t();
1747
1769
  else {
1748
1770
  var f;
1749
- o || (o = 100);
1771
+ s || (s = 100);
1750
1772
  var b = setInterval(function() {
1751
- r() && (clearInterval(b), f && clearTimeout(f), e());
1752
- }, o);
1753
- s && (f = setTimeout(function() {
1773
+ r() && (clearInterval(b), f && clearTimeout(f), t());
1774
+ }, s);
1775
+ o && (f = setTimeout(function() {
1754
1776
  clearInterval(b);
1755
- }, s));
1777
+ }, o));
1756
1778
  }
1757
1779
  }
1758
- function Ne(r, e, o) {
1780
+ function Ne(r, t, s) {
1759
1781
  if (ne(r))
1760
1782
  console.error("Inject assets error");
1761
- else if (w(e) && (o = e, e = !1), ie(e) && e in window)
1762
- w(o) && o();
1783
+ else if (v(t) && (s = t, t = !1), ie(t) && t in window)
1784
+ v(s) && s();
1763
1785
  else {
1764
- var s;
1786
+ var o;
1765
1787
  if (r.indexOf(".css") !== -1) {
1766
- if ((s = document.querySelectorAll('link[href="' + r + '"]')) && s.length > 0)
1767
- return void (w(o) && o());
1788
+ if ((o = document.querySelectorAll('link[href="' + r + '"]')) && o.length > 0)
1789
+ return void (v(s) && s());
1768
1790
  var f = document.getElementsByTagName("head")[0], b = f.querySelectorAll('link[rel="stylesheet"]'), h = document.createElement("link");
1769
- return h.rel = "stylesheet", h.type = "text/css", h.href = r, h.media = "all", b ? f.insertBefore(h, b[0]) : f.appendChild(h), void (w(o) && o());
1791
+ return h.rel = "stylesheet", h.type = "text/css", h.href = r, h.media = "all", b ? f.insertBefore(h, b[0]) : f.appendChild(h), void (v(s) && s());
1770
1792
  }
1771
- if ((s = document.querySelectorAll('script[src="' + r + '"]')) && s.length > 0) {
1772
- if (w(o)) {
1773
- if (ie(e))
1793
+ if ((o = document.querySelectorAll('script[src="' + r + '"]')) && o.length > 0) {
1794
+ if (v(s)) {
1795
+ if (ie(t))
1774
1796
  return Ie(function() {
1775
- return window[e] !== void 0;
1797
+ return window[t] !== void 0;
1776
1798
  }, function() {
1777
- o();
1799
+ s();
1778
1800
  }), !1;
1779
- o();
1801
+ s();
1780
1802
  }
1781
1803
  } else {
1782
1804
  var u = document.createElement("script");
1783
1805
  u.type = "text/javascript", u.src = r, u.onload = function() {
1784
- if (w(o)) {
1785
- if (ie(e))
1806
+ if (v(s)) {
1807
+ if (ie(t))
1786
1808
  return Ie(function() {
1787
- return window[e] !== void 0;
1809
+ return window[t] !== void 0;
1788
1810
  }, function() {
1789
- o();
1811
+ s();
1790
1812
  }), !1;
1791
- o();
1813
+ s();
1792
1814
  }
1793
1815
  }, document.body.appendChild(u);
1794
1816
  }
@@ -1797,7 +1819,7 @@ var ta = { exports: {} };
1797
1819
  function Se() {
1798
1820
  return "navigator" in window && window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i);
1799
1821
  }
1800
- function w(r) {
1822
+ function v(r) {
1801
1823
  return typeof r == "function";
1802
1824
  }
1803
1825
  function ie(r) {
@@ -1809,48 +1831,48 @@ var ta = { exports: {} };
1809
1831
  function Ue(r) {
1810
1832
  return Array.isArray(r);
1811
1833
  }
1812
- function Mt(r) {
1834
+ function Tt(r) {
1813
1835
  return r && r.length && isFinite(r.length);
1814
1836
  }
1815
1837
  function Le(r) {
1816
- return c(r) === "object" && r != null && !w(r) && !Ue(r);
1838
+ return c(r) === "object" && r != null && !v(r) && !Ue(r);
1817
1839
  }
1818
1840
  function ne(r) {
1819
1841
  return r == null;
1820
1842
  }
1821
- function N(r, e) {
1822
- return r !== null && hasOwnProperty.call(r, e);
1843
+ function N(r, t) {
1844
+ return r !== null && hasOwnProperty.call(r, t);
1823
1845
  }
1824
- function At(r) {
1846
+ function Et(r) {
1825
1847
  if (Le(r)) {
1826
1848
  if (r.keys)
1827
1849
  return r.keys().length;
1828
- var e = 0;
1829
- for (var o in r)
1830
- N(r, o) && e++;
1831
- return e;
1850
+ var t = 0;
1851
+ for (var s in r)
1852
+ N(r, s) && t++;
1853
+ return t;
1832
1854
  }
1833
1855
  return r.length;
1834
1856
  }
1835
1857
  function We(r) {
1836
1858
  return !isNaN(parseFloat(r)) && isFinite(r);
1837
1859
  }
1838
- function Tt() {
1839
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1, e = document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");
1840
- if (!e.length)
1860
+ function At() {
1861
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1, t = document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");
1862
+ if (!t.length)
1841
1863
  return !1;
1842
- if (e.length == 1)
1843
- return e[0];
1864
+ if (t.length == 1)
1865
+ return t[0];
1844
1866
  typeof r == "string" && (r = parseInt(r));
1845
- var o = [];
1846
- S(e, function(u) {
1847
- o.push(u.getAttribute("data-taborder"));
1867
+ var s = [];
1868
+ S(t, function(u) {
1869
+ s.push(u.getAttribute("data-taborder"));
1848
1870
  });
1849
- var s = Math.max.apply(Math, o.map(function(u) {
1871
+ var o = Math.max.apply(Math, s.map(function(u) {
1850
1872
  return parseInt(u);
1851
1873
  })), f = r < 0 ? 1 : r + 1;
1852
- f > s && (f = "1");
1853
- var b = o.filter(function(u) {
1874
+ f > o && (f = "1");
1875
+ var b = s.filter(function(u) {
1854
1876
  return u >= parseInt(f);
1855
1877
  }), h = b.sort()[0];
1856
1878
  return document.querySelector('.gbtn[data-taborder="'.concat(h, '"]'));
@@ -1858,211 +1880,211 @@ var ta = { exports: {} };
1858
1880
  function la(r) {
1859
1881
  if (r.events.hasOwnProperty("keyboard"))
1860
1882
  return !1;
1861
- r.events.keyboard = L("keydown", { onElement: window, withCallback: function(e, o) {
1862
- var s = (e = e || window.event).keyCode;
1863
- if (s == 9) {
1883
+ r.events.keyboard = L("keydown", { onElement: window, withCallback: function(t, s) {
1884
+ var o = (t = t || window.event).keyCode;
1885
+ if (o == 9) {
1864
1886
  var f = document.querySelector(".gbtn.focused");
1865
1887
  if (!f) {
1866
1888
  var b = !(!document.activeElement || !document.activeElement.nodeName) && document.activeElement.nodeName.toLocaleLowerCase();
1867
1889
  if (b == "input" || b == "textarea" || b == "button")
1868
1890
  return;
1869
1891
  }
1870
- e.preventDefault();
1892
+ t.preventDefault();
1871
1893
  var h = document.querySelectorAll(".gbtn[data-taborder]");
1872
1894
  if (!h || h.length <= 0)
1873
1895
  return;
1874
1896
  if (!f) {
1875
- var u = Tt();
1876
- return void (u && (u.focus(), E(u, "focused")));
1897
+ var u = At();
1898
+ return void (u && (u.focus(), M(u, "focused")));
1877
1899
  }
1878
- var p = Tt(f.getAttribute("data-taborder"));
1879
- T(f, "focused"), p && (p.focus(), E(p, "focused"));
1900
+ var p = At(f.getAttribute("data-taborder"));
1901
+ A(f, "focused"), p && (p.focus(), M(p, "focused"));
1880
1902
  }
1881
- s == 39 && r.nextSlide(), s == 37 && r.prevSlide(), s == 27 && r.close();
1903
+ o == 39 && r.nextSlide(), o == 37 && r.prevSlide(), o == 27 && r.close();
1882
1904
  } });
1883
1905
  }
1884
1906
  function Ye(r) {
1885
1907
  return Math.sqrt(r.x * r.x + r.y * r.y);
1886
1908
  }
1887
- function ba(r, e) {
1888
- var o = function(s, f) {
1889
- var b = Ye(s) * Ye(f);
1909
+ function ba(r, t) {
1910
+ var s = function(o, f) {
1911
+ var b = Ye(o) * Ye(f);
1890
1912
  if (b === 0)
1891
1913
  return 0;
1892
1914
  var h = function(u, p) {
1893
1915
  return u.x * p.x + u.y * p.y;
1894
- }(s, f) / b;
1916
+ }(o, f) / b;
1895
1917
  return h > 1 && (h = 1), Math.acos(h);
1896
- }(r, e);
1897
- return function(s, f) {
1898
- return s.x * f.y - f.x * s.y;
1899
- }(r, e) > 0 && (o *= -1), 180 * o / Math.PI;
1918
+ }(r, t);
1919
+ return function(o, f) {
1920
+ return o.x * f.y - f.x * o.y;
1921
+ }(r, t) > 0 && (s *= -1), 180 * s / Math.PI;
1900
1922
  }
1901
1923
  var ha = function() {
1902
- function r(e) {
1903
- i(this, r), this.handlers = [], this.el = e;
1924
+ function r(t) {
1925
+ i(this, r), this.handlers = [], this.el = t;
1904
1926
  }
1905
- return d(r, [{ key: "add", value: function(e) {
1906
- this.handlers.push(e);
1907
- } }, { key: "del", value: function(e) {
1908
- e || (this.handlers = []);
1909
- for (var o = this.handlers.length; o >= 0; o--)
1910
- this.handlers[o] === e && this.handlers.splice(o, 1);
1927
+ return d(r, [{ key: "add", value: function(t) {
1928
+ this.handlers.push(t);
1929
+ } }, { key: "del", value: function(t) {
1930
+ t || (this.handlers = []);
1931
+ for (var s = this.handlers.length; s >= 0; s--)
1932
+ this.handlers[s] === t && this.handlers.splice(s, 1);
1911
1933
  } }, { key: "dispatch", value: function() {
1912
- for (var e = 0, o = this.handlers.length; e < o; e++) {
1913
- var s = this.handlers[e];
1914
- typeof s == "function" && s.apply(this.el, arguments);
1934
+ for (var t = 0, s = this.handlers.length; t < s; t++) {
1935
+ var o = this.handlers[t];
1936
+ typeof o == "function" && o.apply(this.el, arguments);
1915
1937
  }
1916
1938
  } }]), r;
1917
1939
  }();
1918
- function J(r, e) {
1919
- var o = new ha(r);
1920
- return o.add(e), o;
1940
+ function J(r, t) {
1941
+ var s = new ha(r);
1942
+ return s.add(t), s;
1921
1943
  }
1922
1944
  var ua = function() {
1923
- function r(e, o) {
1924
- i(this, r), this.element = typeof e == "string" ? document.querySelector(e) : e, this.start = this.start.bind(this), this.move = this.move.bind(this), this.end = this.end.bind(this), this.cancel = this.cancel.bind(this), this.element.addEventListener("touchstart", this.start, !1), this.element.addEventListener("touchmove", this.move, !1), this.element.addEventListener("touchend", this.end, !1), this.element.addEventListener("touchcancel", this.cancel, !1), this.preV = { x: null, y: null }, this.pinchStartLen = null, this.zoom = 1, this.isDoubleTap = !1;
1925
- var s = function() {
1945
+ function r(t, s) {
1946
+ i(this, r), this.element = typeof t == "string" ? document.querySelector(t) : t, this.start = this.start.bind(this), this.move = this.move.bind(this), this.end = this.end.bind(this), this.cancel = this.cancel.bind(this), this.element.addEventListener("touchstart", this.start, !1), this.element.addEventListener("touchmove", this.move, !1), this.element.addEventListener("touchend", this.end, !1), this.element.addEventListener("touchcancel", this.cancel, !1), this.preV = { x: null, y: null }, this.pinchStartLen = null, this.zoom = 1, this.isDoubleTap = !1;
1947
+ var o = function() {
1926
1948
  };
1927
- this.rotate = J(this.element, o.rotate || s), this.touchStart = J(this.element, o.touchStart || s), this.multipointStart = J(this.element, o.multipointStart || s), this.multipointEnd = J(this.element, o.multipointEnd || s), this.pinch = J(this.element, o.pinch || s), this.swipe = J(this.element, o.swipe || s), this.tap = J(this.element, o.tap || s), this.doubleTap = J(this.element, o.doubleTap || s), this.longTap = J(this.element, o.longTap || s), this.singleTap = J(this.element, o.singleTap || s), this.pressMove = J(this.element, o.pressMove || s), this.twoFingerPressMove = J(this.element, o.twoFingerPressMove || s), this.touchMove = J(this.element, o.touchMove || s), this.touchEnd = J(this.element, o.touchEnd || s), this.touchCancel = J(this.element, o.touchCancel || s), this.translateContainer = this.element, this._cancelAllHandler = this.cancelAll.bind(this), window.addEventListener("scroll", this._cancelAllHandler), this.delta = null, this.last = null, this.now = null, this.tapTimeout = null, this.singleTapTimeout = null, this.longTapTimeout = null, this.swipeTimeout = null, this.x1 = this.x2 = this.y1 = this.y2 = null, this.preTapPosition = { x: null, y: null };
1949
+ this.rotate = J(this.element, s.rotate || o), this.touchStart = J(this.element, s.touchStart || o), this.multipointStart = J(this.element, s.multipointStart || o), this.multipointEnd = J(this.element, s.multipointEnd || o), this.pinch = J(this.element, s.pinch || o), this.swipe = J(this.element, s.swipe || o), this.tap = J(this.element, s.tap || o), this.doubleTap = J(this.element, s.doubleTap || o), this.longTap = J(this.element, s.longTap || o), this.singleTap = J(this.element, s.singleTap || o), this.pressMove = J(this.element, s.pressMove || o), this.twoFingerPressMove = J(this.element, s.twoFingerPressMove || o), this.touchMove = J(this.element, s.touchMove || o), this.touchEnd = J(this.element, s.touchEnd || o), this.touchCancel = J(this.element, s.touchCancel || o), this.translateContainer = this.element, this._cancelAllHandler = this.cancelAll.bind(this), window.addEventListener("scroll", this._cancelAllHandler), this.delta = null, this.last = null, this.now = null, this.tapTimeout = null, this.singleTapTimeout = null, this.longTapTimeout = null, this.swipeTimeout = null, this.x1 = this.x2 = this.y1 = this.y2 = null, this.preTapPosition = { x: null, y: null };
1928
1950
  }
1929
- return d(r, [{ key: "start", value: function(e) {
1930
- if (e.touches)
1931
- if (e.target && e.target.nodeName && ["a", "button", "input"].indexOf(e.target.nodeName.toLowerCase()) >= 0)
1932
- console.log("ignore drag for this touched element", e.target.nodeName.toLowerCase());
1951
+ return d(r, [{ key: "start", value: function(t) {
1952
+ if (t.touches)
1953
+ if (t.target && t.target.nodeName && ["a", "button", "input"].indexOf(t.target.nodeName.toLowerCase()) >= 0)
1954
+ console.log("ignore drag for this touched element", t.target.nodeName.toLowerCase());
1933
1955
  else {
1934
- this.now = Date.now(), this.x1 = e.touches[0].pageX, this.y1 = e.touches[0].pageY, this.delta = this.now - (this.last || this.now), this.touchStart.dispatch(e, this.element), this.preTapPosition.x !== null && (this.isDoubleTap = this.delta > 0 && this.delta <= 250 && Math.abs(this.preTapPosition.x - this.x1) < 30 && Math.abs(this.preTapPosition.y - this.y1) < 30, this.isDoubleTap && clearTimeout(this.singleTapTimeout)), this.preTapPosition.x = this.x1, this.preTapPosition.y = this.y1, this.last = this.now;
1935
- var o = this.preV;
1936
- if (e.touches.length > 1) {
1956
+ this.now = Date.now(), this.x1 = t.touches[0].pageX, this.y1 = t.touches[0].pageY, this.delta = this.now - (this.last || this.now), this.touchStart.dispatch(t, this.element), this.preTapPosition.x !== null && (this.isDoubleTap = this.delta > 0 && this.delta <= 250 && Math.abs(this.preTapPosition.x - this.x1) < 30 && Math.abs(this.preTapPosition.y - this.y1) < 30, this.isDoubleTap && clearTimeout(this.singleTapTimeout)), this.preTapPosition.x = this.x1, this.preTapPosition.y = this.y1, this.last = this.now;
1957
+ var s = this.preV;
1958
+ if (t.touches.length > 1) {
1937
1959
  this._cancelLongTap(), this._cancelSingleTap();
1938
- var s = { x: e.touches[1].pageX - this.x1, y: e.touches[1].pageY - this.y1 };
1939
- o.x = s.x, o.y = s.y, this.pinchStartLen = Ye(o), this.multipointStart.dispatch(e, this.element);
1960
+ var o = { x: t.touches[1].pageX - this.x1, y: t.touches[1].pageY - this.y1 };
1961
+ s.x = o.x, s.y = o.y, this.pinchStartLen = Ye(s), this.multipointStart.dispatch(t, this.element);
1940
1962
  }
1941
1963
  this._preventTap = !1, this.longTapTimeout = setTimeout((function() {
1942
- this.longTap.dispatch(e, this.element), this._preventTap = !0;
1964
+ this.longTap.dispatch(t, this.element), this._preventTap = !0;
1943
1965
  }).bind(this), 750);
1944
1966
  }
1945
- } }, { key: "move", value: function(e) {
1946
- if (e.touches) {
1947
- var o = this.preV, s = e.touches.length, f = e.touches[0].pageX, b = e.touches[0].pageY;
1948
- if (this.isDoubleTap = !1, s > 1) {
1949
- var h = e.touches[1].pageX, u = e.touches[1].pageY, p = { x: e.touches[1].pageX - f, y: e.touches[1].pageY - b };
1950
- o.x !== null && (this.pinchStartLen > 0 && (e.zoom = Ye(p) / this.pinchStartLen, this.pinch.dispatch(e, this.element)), e.angle = ba(p, o), this.rotate.dispatch(e, this.element)), o.x = p.x, o.y = p.y, this.x2 !== null && this.sx2 !== null ? (e.deltaX = (f - this.x2 + h - this.sx2) / 2, e.deltaY = (b - this.y2 + u - this.sy2) / 2) : (e.deltaX = 0, e.deltaY = 0), this.twoFingerPressMove.dispatch(e, this.element), this.sx2 = h, this.sy2 = u;
1967
+ } }, { key: "move", value: function(t) {
1968
+ if (t.touches) {
1969
+ var s = this.preV, o = t.touches.length, f = t.touches[0].pageX, b = t.touches[0].pageY;
1970
+ if (this.isDoubleTap = !1, o > 1) {
1971
+ var h = t.touches[1].pageX, u = t.touches[1].pageY, p = { x: t.touches[1].pageX - f, y: t.touches[1].pageY - b };
1972
+ s.x !== null && (this.pinchStartLen > 0 && (t.zoom = Ye(p) / this.pinchStartLen, this.pinch.dispatch(t, this.element)), t.angle = ba(p, s), this.rotate.dispatch(t, this.element)), s.x = p.x, s.y = p.y, this.x2 !== null && this.sx2 !== null ? (t.deltaX = (f - this.x2 + h - this.sx2) / 2, t.deltaY = (b - this.y2 + u - this.sy2) / 2) : (t.deltaX = 0, t.deltaY = 0), this.twoFingerPressMove.dispatch(t, this.element), this.sx2 = h, this.sy2 = u;
1951
1973
  } else {
1952
1974
  if (this.x2 !== null) {
1953
- e.deltaX = f - this.x2, e.deltaY = b - this.y2;
1975
+ t.deltaX = f - this.x2, t.deltaY = b - this.y2;
1954
1976
  var k = Math.abs(this.x1 - this.x2), g = Math.abs(this.y1 - this.y2);
1955
1977
  (k > 10 || g > 10) && (this._preventTap = !0);
1956
1978
  } else
1957
- e.deltaX = 0, e.deltaY = 0;
1958
- this.pressMove.dispatch(e, this.element);
1979
+ t.deltaX = 0, t.deltaY = 0;
1980
+ this.pressMove.dispatch(t, this.element);
1959
1981
  }
1960
- this.touchMove.dispatch(e, this.element), this._cancelLongTap(), this.x2 = f, this.y2 = b, s > 1 && e.preventDefault();
1982
+ this.touchMove.dispatch(t, this.element), this._cancelLongTap(), this.x2 = f, this.y2 = b, o > 1 && t.preventDefault();
1961
1983
  }
1962
- } }, { key: "end", value: function(e) {
1963
- if (e.changedTouches) {
1984
+ } }, { key: "end", value: function(t) {
1985
+ if (t.changedTouches) {
1964
1986
  this._cancelLongTap();
1965
- var o = this;
1966
- e.touches.length < 2 && (this.multipointEnd.dispatch(e, this.element), this.sx2 = this.sy2 = null), this.x2 && Math.abs(this.x1 - this.x2) > 30 || this.y2 && Math.abs(this.y1 - this.y2) > 30 ? (e.direction = this._swipeDirection(this.x1, this.x2, this.y1, this.y2), this.swipeTimeout = setTimeout(function() {
1967
- o.swipe.dispatch(e, o.element);
1987
+ var s = this;
1988
+ t.touches.length < 2 && (this.multipointEnd.dispatch(t, this.element), this.sx2 = this.sy2 = null), this.x2 && Math.abs(this.x1 - this.x2) > 30 || this.y2 && Math.abs(this.y1 - this.y2) > 30 ? (t.direction = this._swipeDirection(this.x1, this.x2, this.y1, this.y2), this.swipeTimeout = setTimeout(function() {
1989
+ s.swipe.dispatch(t, s.element);
1968
1990
  }, 0)) : (this.tapTimeout = setTimeout(function() {
1969
- o._preventTap || o.tap.dispatch(e, o.element), o.isDoubleTap && (o.doubleTap.dispatch(e, o.element), o.isDoubleTap = !1);
1970
- }, 0), o.isDoubleTap || (o.singleTapTimeout = setTimeout(function() {
1971
- o.singleTap.dispatch(e, o.element);
1972
- }, 250))), this.touchEnd.dispatch(e, this.element), this.preV.x = 0, this.preV.y = 0, this.zoom = 1, this.pinchStartLen = null, this.x1 = this.x2 = this.y1 = this.y2 = null;
1991
+ s._preventTap || s.tap.dispatch(t, s.element), s.isDoubleTap && (s.doubleTap.dispatch(t, s.element), s.isDoubleTap = !1);
1992
+ }, 0), s.isDoubleTap || (s.singleTapTimeout = setTimeout(function() {
1993
+ s.singleTap.dispatch(t, s.element);
1994
+ }, 250))), this.touchEnd.dispatch(t, this.element), this.preV.x = 0, this.preV.y = 0, this.zoom = 1, this.pinchStartLen = null, this.x1 = this.x2 = this.y1 = this.y2 = null;
1973
1995
  }
1974
1996
  } }, { key: "cancelAll", value: function() {
1975
1997
  this._preventTap = !0, clearTimeout(this.singleTapTimeout), clearTimeout(this.tapTimeout), clearTimeout(this.longTapTimeout), clearTimeout(this.swipeTimeout);
1976
- } }, { key: "cancel", value: function(e) {
1977
- this.cancelAll(), this.touchCancel.dispatch(e, this.element);
1998
+ } }, { key: "cancel", value: function(t) {
1999
+ this.cancelAll(), this.touchCancel.dispatch(t, this.element);
1978
2000
  } }, { key: "_cancelLongTap", value: function() {
1979
2001
  clearTimeout(this.longTapTimeout);
1980
2002
  } }, { key: "_cancelSingleTap", value: function() {
1981
2003
  clearTimeout(this.singleTapTimeout);
1982
- } }, { key: "_swipeDirection", value: function(e, o, s, f) {
1983
- return Math.abs(e - o) >= Math.abs(s - f) ? e - o > 0 ? "Left" : "Right" : s - f > 0 ? "Up" : "Down";
1984
- } }, { key: "on", value: function(e, o) {
1985
- this[e] && this[e].add(o);
1986
- } }, { key: "off", value: function(e, o) {
1987
- this[e] && this[e].del(o);
2004
+ } }, { key: "_swipeDirection", value: function(t, s, o, f) {
2005
+ return Math.abs(t - s) >= Math.abs(o - f) ? t - s > 0 ? "Left" : "Right" : o - f > 0 ? "Up" : "Down";
2006
+ } }, { key: "on", value: function(t, s) {
2007
+ this[t] && this[t].add(s);
2008
+ } }, { key: "off", value: function(t, s) {
2009
+ this[t] && this[t].del(s);
1988
2010
  } }, { key: "destroy", value: function() {
1989
2011
  return this.singleTapTimeout && clearTimeout(this.singleTapTimeout), this.tapTimeout && clearTimeout(this.tapTimeout), this.longTapTimeout && clearTimeout(this.longTapTimeout), this.swipeTimeout && clearTimeout(this.swipeTimeout), this.element.removeEventListener("touchstart", this.start), this.element.removeEventListener("touchmove", this.move), this.element.removeEventListener("touchend", this.end), this.element.removeEventListener("touchcancel", this.cancel), this.rotate.del(), this.touchStart.del(), this.multipointStart.del(), this.multipointEnd.del(), this.pinch.del(), this.swipe.del(), this.tap.del(), this.doubleTap.del(), this.longTap.del(), this.singleTap.del(), this.pressMove.del(), this.twoFingerPressMove.del(), this.touchMove.del(), this.touchEnd.del(), this.touchCancel.del(), this.preV = this.pinchStartLen = this.zoom = this.isDoubleTap = this.delta = this.last = this.now = this.tapTimeout = this.singleTapTimeout = this.longTapTimeout = this.swipeTimeout = this.x1 = this.x2 = this.y1 = this.y2 = this.preTapPosition = this.rotate = this.touchStart = this.multipointStart = this.multipointEnd = this.pinch = this.swipe = this.tap = this.doubleTap = this.longTap = this.singleTap = this.pressMove = this.touchMove = this.touchEnd = this.touchCancel = this.twoFingerPressMove = null, window.removeEventListener("scroll", this._cancelAllHandler), null;
1990
2012
  } }]), r;
1991
2013
  }();
1992
2014
  function ht(r) {
1993
- var e = function() {
2015
+ var t = function() {
1994
2016
  var h, u = document.createElement("fakeelement"), p = { transition: "transitionend", OTransition: "oTransitionEnd", MozTransition: "transitionend", WebkitTransition: "webkitTransitionEnd" };
1995
2017
  for (h in p)
1996
2018
  if (u.style[h] !== void 0)
1997
2019
  return p[h];
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");
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
- T(s, "greset");
2001
- } }), s.style.opacity = "", b && (b.style.opacity = "");
2020
+ }(), s = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, o = F(r, "gslide-media") ? r : r.querySelector(".gslide-media"), f = ce(o, ".ginner-container"), b = r.querySelector(".gslide-description");
2021
+ s > 769 && (o = f), M(o, "greset"), H(o, "translate3d(0, 0, 0)"), L(t, { onElement: o, once: !0, withCallback: function(h, u) {
2022
+ A(o, "greset");
2023
+ } }), o.style.opacity = "", b && (b.style.opacity = "");
2002
2024
  }
2003
2025
  function pa(r) {
2004
2026
  if (r.events.hasOwnProperty("touch"))
2005
2027
  return !1;
2006
- var e, o, s, f = ee(), b = f.width, h = f.height, u = !1, p = null, k = null, g = null, y = !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"), Ze = document.querySelector(".goverlay"), _a = new ua(Sa, { touchStart: function(O) {
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) {
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")), T(Ze, "greset"), O.pageX > 20 && O.pageX < window.innerWidth - 20)
2028
+ var t, s, o, f = ee(), b = f.width, h = f.height, u = !1, p = null, k = null, g = null, y = !1, T = 1, _ = 1, O = !1, B = !1, I = null, re = null, ae = null, we = null, xe = 0, _e = 0, Oe = !1, ut = !1, Me = {}, Te = {}, Pt = 0, zt = 0, Sa = document.getElementById("glightbox-slider"), Ze = document.querySelector(".goverlay"), _a = new ua(Sa, { touchStart: function(j) {
2029
+ if (u = !0, (F(j.targetTouches[0].target, "ginner-container") || ce(j.targetTouches[0].target, ".gslide-desc") || j.targetTouches[0].target.nodeName.toLowerCase() == "a") && (u = !1), ce(j.targetTouches[0].target, ".gslide-inline") && !F(j.targetTouches[0].target.parentNode, "gslide-inline") && (u = !1), u) {
2030
+ if (Te = j.targetTouches[0], Me.pageX = j.targetTouches[0].pageX, Me.pageY = j.targetTouches[0].pageY, Pt = j.targetTouches[0].clientX, zt = j.targetTouches[0].clientY, p = r.activeSlide, k = p.querySelector(".gslide-media"), o = 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(Ze, "greset"), j.pageX > 20 && j.pageX < window.innerWidth - 20)
2009
2031
  return;
2010
- O.preventDefault();
2032
+ j.preventDefault();
2011
2033
  }
2012
- }, touchMove: function(O) {
2013
- if (u && (Me = O.targetTouches[0], !j && !H)) {
2014
- if (s && s.offsetHeight > h) {
2015
- var K = Ee.pageX - Me.pageX;
2034
+ }, touchMove: function(j) {
2035
+ if (u && (Te = j.targetTouches[0], !O && !B)) {
2036
+ if (o && o.offsetHeight > h) {
2037
+ var K = Me.pageX - Te.pageX;
2016
2038
  if (Math.abs(K) <= 13)
2017
2039
  return !1;
2018
2040
  }
2019
2041
  y = !0;
2020
- var ke, Ge = O.targetTouches[0].clientX, Ea = O.targetTouches[0].clientY, Ma = Pt - Ge, Aa = zt - Ea;
2021
- if (Math.abs(Ma) > Math.abs(Aa) ? (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, Ze.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)"));
2042
+ var ke, Ge = j.targetTouches[0].clientX, Ma = j.targetTouches[0].clientY, Ta = Pt - Ge, Ea = zt - Ma;
2043
+ if (Math.abs(Ta) > Math.abs(Ea) ? (Oe = !1, ut = !0) : (ut = !1, Oe = !0), t = Te.pageX - Me.pageX, xe = 100 * t / b, s = Te.pageY - Me.pageY, _e = 100 * s / h, Oe && g && (ke = 1 - Math.abs(s) / h, Ze.style.opacity = ke, r.settings.touchFollowAxis && (xe = 0)), ut && (ke = 1 - Math.abs(t) / b, k.style.opacity = ke, r.settings.touchFollowAxis && (_e = 0)), !g)
2044
+ return H(k, "translate3d(".concat(xe, "%, 0, 0)"));
2045
+ H(k, "translate3d(".concat(xe, "%, ").concat(_e, "%, 0)"));
2024
2046
  }
2025
2047
  }, touchEnd: function() {
2026
2048
  if (u) {
2027
- if (y = !1, H || j)
2049
+ if (y = !1, B || O)
2028
2050
  return ae = I, void (we = re);
2029
- var O = Math.abs(parseInt(_e)), K = Math.abs(parseInt(xe));
2030
- if (!(O > 29 && g))
2031
- return O < 29 && K < 25 ? (E(Ze, "greset"), Ze.style.opacity = 1, ht(k)) : void 0;
2051
+ var j = Math.abs(parseInt(_e)), K = Math.abs(parseInt(xe));
2052
+ if (!(j > 29 && g))
2053
+ return j < 29 && K < 25 ? (M(Ze, "greset"), Ze.style.opacity = 1, ht(k)) : void 0;
2032
2054
  r.close();
2033
2055
  }
2034
2056
  }, multipointEnd: function() {
2035
2057
  setTimeout(function() {
2036
- j = !1;
2058
+ O = !1;
2037
2059
  }, 50);
2038
2060
  }, multipointStart: function() {
2039
- j = !0, M = _ || 1;
2040
- }, pinch: function(O) {
2061
+ O = !0, T = _ || 1;
2062
+ }, pinch: function(j) {
2041
2063
  if (!g || y)
2042
2064
  return !1;
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", "");
2065
+ O = !0, g.scaleX = g.scaleY = T * j.zoom;
2066
+ var K = T * j.zoom;
2067
+ if (B = !0, K <= 1)
2068
+ return B = !1, K = 1, we = null, ae = null, I = null, re = null, void g.setAttribute("style", "");
2047
2069
  K > 4.5 && (K = 4.5), g.style.transform = "scale3d(".concat(K, ", ").concat(K, ", 1)"), _ = K;
2048
- }, pressMove: function(O) {
2049
- if (H && !j) {
2050
- var K = Me.pageX - Ee.pageX, ke = Me.pageY - Ee.pageY;
2070
+ }, pressMove: function(j) {
2071
+ if (B && !O) {
2072
+ var K = Te.pageX - Me.pageX, ke = Te.pageY - Me.pageY;
2051
2073
  ae && (K += ae), we && (ke += we), I = K, re = ke;
2052
2074
  var Ge = "translate3d(".concat(K, "px, ").concat(ke, "px, 0)");
2053
- _ && (Ge += " scale3d(".concat(_, ", ").concat(_, ", 1)")), z(g, Ge);
2075
+ _ && (Ge += " scale3d(".concat(_, ", ").concat(_, ", 1)")), H(g, Ge);
2054
2076
  }
2055
- }, swipe: function(O) {
2056
- if (!H)
2057
- if (j)
2058
- j = !1;
2077
+ }, swipe: function(j) {
2078
+ if (!B)
2079
+ if (O)
2080
+ O = !1;
2059
2081
  else {
2060
- if (O.direction == "Left") {
2082
+ if (j.direction == "Left") {
2061
2083
  if (r.index == r.elements.length - 1)
2062
2084
  return ht(k);
2063
2085
  r.nextSlide();
2064
2086
  }
2065
- if (O.direction == "Right") {
2087
+ if (j.direction == "Right") {
2066
2088
  if (r.index == 0)
2067
2089
  return ht(k);
2068
2090
  r.prevSlide();
@@ -2072,131 +2094,131 @@ var ta = { exports: {} };
2072
2094
  r.events.touch = _a;
2073
2095
  }
2074
2096
  var ga = function() {
2075
- function r(e, o) {
2076
- var s = this, f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
2077
- if (i(this, r), this.img = e, this.slide = o, this.onclose = f, this.img.setZoomEvents)
2097
+ function r(t, s) {
2098
+ var o = this, f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
2099
+ if (i(this, r), this.img = t, this.slide = s, this.onclose = f, this.img.setZoomEvents)
2078
2100
  return !1;
2079
2101
  this.active = !1, this.zoomedIn = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.img.addEventListener("mousedown", function(b) {
2080
- return s.dragStart(b);
2102
+ return o.dragStart(b);
2081
2103
  }, !1), this.img.addEventListener("mouseup", function(b) {
2082
- return s.dragEnd(b);
2104
+ return o.dragEnd(b);
2083
2105
  }, !1), this.img.addEventListener("mousemove", function(b) {
2084
- return s.drag(b);
2106
+ return o.drag(b);
2085
2107
  }, !1), this.img.addEventListener("click", function(b) {
2086
- return s.slide.classList.contains("dragging-nav") ? (s.zoomOut(), !1) : s.zoomedIn ? void (s.zoomedIn && !s.dragging && s.zoomOut()) : s.zoomIn();
2108
+ return o.slide.classList.contains("dragging-nav") ? (o.zoomOut(), !1) : o.zoomedIn ? void (o.zoomedIn && !o.dragging && o.zoomOut()) : o.zoomIn();
2087
2109
  }, !1), this.img.setZoomEvents = !0;
2088
2110
  }
2089
2111
  return d(r, [{ key: "zoomIn", value: function() {
2090
- var e = this.widowWidth();
2091
- if (!(this.zoomedIn || e <= 768)) {
2092
- var o = this.img;
2093
- if (o.setAttribute("data-style", o.getAttribute("style")), o.style.maxWidth = o.naturalWidth + "px", o.style.maxHeight = o.naturalHeight + "px", o.naturalWidth > e) {
2094
- var s = e / 2 - o.naturalWidth / 2;
2095
- this.setTranslate(this.img.parentNode, s, 0);
2112
+ var t = this.widowWidth();
2113
+ if (!(this.zoomedIn || t <= 768)) {
2114
+ var s = this.img;
2115
+ if (s.setAttribute("data-style", s.getAttribute("style")), s.style.maxWidth = s.naturalWidth + "px", s.style.maxHeight = s.naturalHeight + "px", s.naturalWidth > t) {
2116
+ var o = t / 2 - s.naturalWidth / 2;
2117
+ this.setTranslate(this.img.parentNode, o, 0);
2096
2118
  }
2097
2119
  this.slide.classList.add("zoomed"), this.zoomedIn = !0;
2098
2120
  }
2099
2121
  } }, { key: "zoomOut", value: function() {
2100
2122
  this.img.parentNode.setAttribute("style", ""), this.img.setAttribute("style", this.img.getAttribute("data-style")), this.slide.classList.remove("zoomed"), this.zoomedIn = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.onclose && typeof this.onclose == "function" && this.onclose();
2101
- } }, { key: "dragStart", value: function(e) {
2102
- e.preventDefault(), this.zoomedIn ? (e.type === "touchstart" ? (this.initialX = e.touches[0].clientX - this.xOffset, this.initialY = e.touches[0].clientY - this.yOffset) : (this.initialX = e.clientX - this.xOffset, this.initialY = e.clientY - this.yOffset), e.target === this.img && (this.active = !0, this.img.classList.add("dragging"))) : this.active = !1;
2103
- } }, { key: "dragEnd", value: function(e) {
2104
- var o = this;
2105
- e.preventDefault(), this.initialX = this.currentX, this.initialY = this.currentY, this.active = !1, setTimeout(function() {
2106
- o.dragging = !1, o.img.isDragging = !1, o.img.classList.remove("dragging");
2123
+ } }, { key: "dragStart", value: function(t) {
2124
+ t.preventDefault(), this.zoomedIn ? (t.type === "touchstart" ? (this.initialX = t.touches[0].clientX - this.xOffset, this.initialY = t.touches[0].clientY - this.yOffset) : (this.initialX = t.clientX - this.xOffset, this.initialY = t.clientY - this.yOffset), t.target === this.img && (this.active = !0, this.img.classList.add("dragging"))) : this.active = !1;
2125
+ } }, { key: "dragEnd", value: function(t) {
2126
+ var s = this;
2127
+ t.preventDefault(), this.initialX = this.currentX, this.initialY = this.currentY, this.active = !1, setTimeout(function() {
2128
+ s.dragging = !1, s.img.isDragging = !1, s.img.classList.remove("dragging");
2107
2129
  }, 100);
2108
- } }, { key: "drag", value: function(e) {
2109
- this.active && (e.preventDefault(), e.type === "touchmove" ? (this.currentX = e.touches[0].clientX - this.initialX, this.currentY = e.touches[0].clientY - this.initialY) : (this.currentX = e.clientX - this.initialX, this.currentY = e.clientY - this.initialY), this.xOffset = this.currentX, this.yOffset = this.currentY, this.img.isDragging = !0, this.dragging = !0, this.setTranslate(this.img, this.currentX, this.currentY));
2110
- } }, { key: "onMove", value: function(e) {
2130
+ } }, { key: "drag", value: function(t) {
2131
+ this.active && (t.preventDefault(), t.type === "touchmove" ? (this.currentX = t.touches[0].clientX - this.initialX, this.currentY = t.touches[0].clientY - this.initialY) : (this.currentX = t.clientX - this.initialX, this.currentY = t.clientY - this.initialY), this.xOffset = this.currentX, this.yOffset = this.currentY, this.img.isDragging = !0, this.dragging = !0, this.setTranslate(this.img, this.currentX, this.currentY));
2132
+ } }, { key: "onMove", value: function(t) {
2111
2133
  if (this.zoomedIn) {
2112
- var o = e.clientX - this.img.naturalWidth / 2, s = e.clientY - this.img.naturalHeight / 2;
2113
- this.setTranslate(this.img, o, s);
2134
+ var s = t.clientX - this.img.naturalWidth / 2, o = t.clientY - this.img.naturalHeight / 2;
2135
+ this.setTranslate(this.img, s, o);
2114
2136
  }
2115
- } }, { key: "setTranslate", value: function(e, o, s) {
2116
- e.style.transform = "translate3d(" + o + "px, " + s + "px, 0)";
2137
+ } }, { key: "setTranslate", value: function(t, s, o) {
2138
+ t.style.transform = "translate3d(" + s + "px, " + o + "px, 0)";
2117
2139
  } }, { key: "widowWidth", value: function() {
2118
2140
  return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
2119
2141
  } }]), r;
2120
2142
  }(), $t = function() {
2121
2143
  function r() {
2122
- var e = this, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2144
+ var t = this, s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2123
2145
  i(this, r);
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, y = g === void 0 ? null : g;
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 = y, 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);
2146
+ var o = s.dragEl, f = s.toleranceX, b = f === void 0 ? 40 : f, h = s.toleranceY, u = h === void 0 ? 65 : h, p = s.slide, k = p === void 0 ? null : p, g = s.instance, y = g === void 0 ? null : g;
2147
+ this.el = o, 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 = y, this.el.addEventListener("mousedown", function(T) {
2148
+ return t.dragStart(T);
2149
+ }, !1), this.el.addEventListener("mouseup", function(T) {
2150
+ return t.dragEnd(T);
2151
+ }, !1), this.el.addEventListener("mousemove", function(T) {
2152
+ return t.drag(T);
2131
2153
  }, !1);
2132
2154
  }
2133
- return d(r, [{ key: "dragStart", value: function(e) {
2155
+ return d(r, [{ key: "dragStart", value: function(t) {
2134
2156
  if (this.slide.classList.contains("zoomed"))
2135
2157
  this.active = !1;
2136
2158
  else {
2137
- e.type === "touchstart" ? (this.initialX = e.touches[0].clientX - this.xOffset, this.initialY = e.touches[0].clientY - this.yOffset) : (this.initialX = e.clientX - this.xOffset, this.initialY = e.clientY - this.yOffset);
2138
- var o = e.target.nodeName.toLowerCase();
2139
- e.target.classList.contains("nodrag") || ce(e.target, ".nodrag") || ["input", "select", "textarea", "button", "a"].indexOf(o) !== -1 ? this.active = !1 : (e.preventDefault(), (e.target === this.el || o !== "img" && ce(e.target, ".gslide-inline")) && (this.active = !0, this.el.classList.add("dragging"), this.dragContainer = ce(e.target, ".ginner-container")));
2159
+ t.type === "touchstart" ? (this.initialX = t.touches[0].clientX - this.xOffset, this.initialY = t.touches[0].clientY - this.yOffset) : (this.initialX = t.clientX - this.xOffset, this.initialY = t.clientY - this.yOffset);
2160
+ var s = t.target.nodeName.toLowerCase();
2161
+ t.target.classList.contains("nodrag") || ce(t.target, ".nodrag") || ["input", "select", "textarea", "button", "a"].indexOf(s) !== -1 ? this.active = !1 : (t.preventDefault(), (t.target === this.el || s !== "img" && ce(t.target, ".gslide-inline")) && (this.active = !0, this.el.classList.add("dragging"), this.dragContainer = ce(t.target, ".ginner-container")));
2140
2162
  }
2141
- } }, { key: "dragEnd", value: function(e) {
2142
- var o = this;
2143
- e && e.preventDefault(), this.initialX = 0, this.initialY = 0, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.active = !1, this.doSlideChange && (this.instance.preventOutsideClick = !0, this.doSlideChange == "right" && this.instance.prevSlide(), this.doSlideChange == "left" && this.instance.nextSlide()), this.doSlideClose && this.instance.close(), this.toleranceReached || this.setTranslate(this.dragContainer, 0, 0, !0), setTimeout(function() {
2144
- o.instance.preventOutsideClick = !1, o.toleranceReached = !1, o.lastDirection = null, o.dragging = !1, o.el.isDragging = !1, o.el.classList.remove("dragging"), o.slide.classList.remove("dragging-nav"), o.dragContainer.style.transform = "", o.dragContainer.style.transition = "";
2163
+ } }, { key: "dragEnd", value: function(t) {
2164
+ var s = this;
2165
+ t && t.preventDefault(), this.initialX = 0, this.initialY = 0, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.active = !1, this.doSlideChange && (this.instance.preventOutsideClick = !0, this.doSlideChange == "right" && this.instance.prevSlide(), this.doSlideChange == "left" && this.instance.nextSlide()), this.doSlideClose && this.instance.close(), this.toleranceReached || this.setTranslate(this.dragContainer, 0, 0, !0), setTimeout(function() {
2166
+ s.instance.preventOutsideClick = !1, s.toleranceReached = !1, s.lastDirection = null, s.dragging = !1, s.el.isDragging = !1, s.el.classList.remove("dragging"), s.slide.classList.remove("dragging-nav"), s.dragContainer.style.transform = "", s.dragContainer.style.transition = "";
2145
2167
  }, 100);
2146
- } }, { key: "drag", value: function(e) {
2168
+ } }, { key: "drag", value: function(t) {
2147
2169
  if (this.active) {
2148
- e.preventDefault(), this.slide.classList.add("dragging-nav"), e.type === "touchmove" ? (this.currentX = e.touches[0].clientX - this.initialX, this.currentY = e.touches[0].clientY - this.initialY) : (this.currentX = e.clientX - this.initialX, this.currentY = e.clientY - this.initialY), this.xOffset = this.currentX, this.yOffset = this.currentY, this.el.isDragging = !0, this.dragging = !0, this.doSlideChange = !1, this.doSlideClose = !1;
2149
- var o = Math.abs(this.currentX), s = Math.abs(this.currentY);
2150
- if (o > 0 && o >= Math.abs(this.currentY) && (!this.lastDirection || this.lastDirection == "x")) {
2170
+ t.preventDefault(), this.slide.classList.add("dragging-nav"), t.type === "touchmove" ? (this.currentX = t.touches[0].clientX - this.initialX, this.currentY = t.touches[0].clientY - this.initialY) : (this.currentX = t.clientX - this.initialX, this.currentY = t.clientY - this.initialY), this.xOffset = this.currentX, this.yOffset = this.currentY, this.el.isDragging = !0, this.dragging = !0, this.doSlideChange = !1, this.doSlideClose = !1;
2171
+ var s = Math.abs(this.currentX), o = Math.abs(this.currentY);
2172
+ if (s > 0 && s >= Math.abs(this.currentY) && (!this.lastDirection || this.lastDirection == "x")) {
2151
2173
  this.yOffset = 0, this.lastDirection = "x", this.setTranslate(this.dragContainer, this.currentX, 0);
2152
2174
  var f = this.shouldChange();
2153
2175
  if (!this.instance.settings.dragAutoSnap && f && (this.doSlideChange = f), this.instance.settings.dragAutoSnap && f)
2154
2176
  return this.instance.preventOutsideClick = !0, this.toleranceReached = !0, this.active = !1, this.instance.preventOutsideClick = !0, this.dragEnd(null), f == "right" && this.instance.prevSlide(), void (f == "left" && this.instance.nextSlide());
2155
2177
  }
2156
- if (this.toleranceY > 0 && s > 0 && s >= o && (!this.lastDirection || this.lastDirection == "y")) {
2178
+ if (this.toleranceY > 0 && o > 0 && o >= s && (!this.lastDirection || this.lastDirection == "y")) {
2157
2179
  this.xOffset = 0, this.lastDirection = "y", this.setTranslate(this.dragContainer, 0, this.currentY);
2158
2180
  var b = this.shouldClose();
2159
2181
  return !this.instance.settings.dragAutoSnap && b && (this.doSlideClose = !0), void (this.instance.settings.dragAutoSnap && b && this.instance.close());
2160
2182
  }
2161
2183
  }
2162
2184
  } }, { key: "shouldChange", value: function() {
2163
- var e = !1;
2185
+ var t = !1;
2164
2186
  if (Math.abs(this.currentX) >= this.toleranceX) {
2165
- var o = this.currentX > 0 ? "right" : "left";
2166
- (o == "left" && this.slide !== this.slide.parentNode.lastChild || o == "right" && this.slide !== this.slide.parentNode.firstChild) && (e = o);
2187
+ var s = this.currentX > 0 ? "right" : "left";
2188
+ (s == "left" && this.slide !== this.slide.parentNode.lastChild || s == "right" && this.slide !== this.slide.parentNode.firstChild) && (t = s);
2167
2189
  }
2168
- return e;
2190
+ return t;
2169
2191
  } }, { key: "shouldClose", value: function() {
2170
- var e = !1;
2171
- return Math.abs(this.currentY) >= this.toleranceY && (e = !0), e;
2172
- } }, { key: "setTranslate", value: function(e, o, s) {
2192
+ var t = !1;
2193
+ return Math.abs(this.currentY) >= this.toleranceY && (t = !0), t;
2194
+ } }, { key: "setTranslate", value: function(t, s, o) {
2173
2195
  var f = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
2174
- e.style.transition = f ? "all .2s ease" : "", e.style.transform = "translate3d(".concat(o, "px, ").concat(s, "px, 0)");
2196
+ t.style.transition = f ? "all .2s ease" : "", t.style.transform = "translate3d(".concat(s, "px, ").concat(o, "px, 0)");
2175
2197
  } }]), r;
2176
2198
  }();
2177
- function ma(r, e, o, s) {
2178
- var f = r.querySelector(".gslide-media"), b = new Image(), h = "gSlideTitle_" + o, u = "gSlideDesc_" + o;
2199
+ function ma(r, t, s, o) {
2200
+ var f = r.querySelector(".gslide-media"), b = new Image(), h = "gSlideTitle_" + s, u = "gSlideDesc_" + s;
2179
2201
  b.addEventListener("load", function() {
2180
- w(s) && s();
2181
- }, !1), b.src = e.href, e.sizes != "" && e.srcset != "" && (b.sizes = e.sizes, b.srcset = e.srcset), b.alt = "", ne(e.alt) || e.alt === "" || (b.alt = e.alt), e.title !== "" && b.setAttribute("aria-labelledby", h), e.description !== "" && b.setAttribute("aria-describedby", u), e.hasOwnProperty("_hasCustomWidth") && e._hasCustomWidth && (b.style.width = e.width), e.hasOwnProperty("_hasCustomHeight") && e._hasCustomHeight && (b.style.height = e.height), f.insertBefore(b, f.firstChild);
2202
+ v(o) && o();
2203
+ }, !1), b.src = t.href, t.sizes != "" && t.srcset != "" && (b.sizes = t.sizes, b.srcset = t.srcset), b.alt = "", ne(t.alt) || t.alt === "" || (b.alt = t.alt), t.title !== "" && b.setAttribute("aria-labelledby", h), t.description !== "" && b.setAttribute("aria-describedby", u), t.hasOwnProperty("_hasCustomWidth") && t._hasCustomWidth && (b.style.width = t.width), t.hasOwnProperty("_hasCustomHeight") && t._hasCustomHeight && (b.style.height = t.height), f.insertBefore(b, f.firstChild);
2182
2204
  }
2183
- function ya(r, e, o, s) {
2184
- var f = this, b = r.querySelector(".ginner-container"), h = "gvideo" + o, u = r.querySelector(".gslide-media"), p = this.getAllPlayers();
2185
- E(b, "gvideo-container"), u.insertBefore(he('<div class="gvideo-wrapper"></div>'), u.firstChild);
2205
+ function ya(r, t, s, o) {
2206
+ var f = this, b = r.querySelector(".ginner-container"), h = "gvideo" + s, u = r.querySelector(".gslide-media"), p = this.getAllPlayers();
2207
+ M(b, "gvideo-container"), u.insertBefore(he('<div class="gvideo-wrapper"></div>'), u.firstChild);
2186
2208
  var k = r.querySelector(".gvideo-wrapper");
2187
2209
  Ne(this.settings.plyr.css, "Plyr");
2188
- var g = e.href, y = e == null ? void 0 : e.videoProvider, M = !1;
2189
- u.style.maxWidth = e.width, Ne(this.settings.plyr.js, "Plyr", function() {
2210
+ var g = t.href, y = t == null ? void 0 : t.videoProvider, T = !1;
2211
+ u.style.maxWidth = t.width, Ne(this.settings.plyr.js, "Plyr", function() {
2190
2212
  if (!y && g.match(/vimeo\.com\/([0-9]*)/) && (y = "vimeo"), !y && (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\-_]+)/)) && (y = "youtube"), y === "local" || !y) {
2191
2213
  y = "local";
2192
2214
  var _ = '<video id="' + h + '" ';
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>");
2215
+ _ += 'style="background:#000; max-width: '.concat(t.width, ';" '), _ += 'preload="metadata" ', _ += 'x-webkit-airplay="allow" ', _ += "playsinline ", _ += "controls ", _ += 'class="gvideo-local">', _ += '<source src="'.concat(g, '">'), T = he(_ += "</video>");
2194
2216
  }
2195
- var j = M || he('<div id="'.concat(h, '" data-plyr-provider="').concat(y, '" data-plyr-embed-id="').concat(g, '"></div>'));
2196
- E(k, "".concat(y, "-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);
2217
+ var O = T || he('<div id="'.concat(h, '" data-plyr-provider="').concat(y, '" data-plyr-embed-id="').concat(g, '"></div>'));
2218
+ M(k, "".concat(y, "-video gvideo")), k.appendChild(O), k.setAttribute("data-id", h), k.setAttribute("data-index", s);
2219
+ var B = N(f.settings.plyr, "config") ? f.settings.plyr.config : {}, I = new Plyr("#" + h, B);
2198
2220
  I.on("ready", function(re) {
2199
- p[h] = re.detail.plyr, w(s) && s();
2221
+ p[h] = re.detail.plyr, v(o) && o();
2200
2222
  }), Ie(function() {
2201
2223
  return r.querySelector("iframe") && r.querySelector("iframe").dataset.ready == "true";
2202
2224
  }, function() {
@@ -2205,11 +2227,11 @@ var ta = { exports: {} };
2205
2227
  });
2206
2228
  }
2207
2229
  function It(r) {
2208
- var e = ce(r.target, ".gslide-media");
2209
- r.type === "enterfullscreen" && E(e, "fullscreen"), r.type === "exitfullscreen" && T(e, "fullscreen");
2230
+ var t = ce(r.target, ".gslide-media");
2231
+ r.type === "enterfullscreen" && M(t, "fullscreen"), r.type === "exitfullscreen" && A(t, "fullscreen");
2210
2232
  }
2211
- function va(r, e, o, s) {
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;
2233
+ function va(r, t, s, o) {
2234
+ var f, b = this, h = r.querySelector(".gslide-media"), u = !(!N(t, "href") || !t.href) && t.href.split("#").pop().trim(), p = !(!N(t, "content") || !t.content) && t.content;
2213
2235
  if (p && (ie(p) && (f = he('<div class="ginlined-content">'.concat(p, "</div>"))), te(p))) {
2214
2236
  p.style.display == "none" && (p.style.display = "block");
2215
2237
  var k = document.createElement("div");
@@ -2220,121 +2242,121 @@ var ta = { exports: {} };
2220
2242
  if (!g)
2221
2243
  return !1;
2222
2244
  var y = g.cloneNode(!0);
2223
- y.style.height = e.height, y.style.maxWidth = e.width, E(y, "ginlined-content"), f = y;
2245
+ y.style.height = t.height, y.style.maxWidth = t.width, M(y, "ginlined-content"), f = y;
2224
2246
  }
2225
2247
  if (!f)
2226
- return console.error("Unable to append inline slide content", e), !1;
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();
2229
- } }), w(s) && s();
2248
+ return console.error("Unable to append inline slide content", t), !1;
2249
+ h.style.height = t.height, h.style.width = t.width, h.appendChild(f), this.events["inlineclose" + u] = L("click", { onElement: h.querySelectorAll(".gtrigger-close"), withCallback: function(T) {
2250
+ T.preventDefault(), b.close();
2251
+ } }), v(o) && o();
2230
2252
  }
2231
- function wa(r, e, o, s) {
2253
+ function wa(r, t, s, o) {
2232
2254
  var f = r.querySelector(".gslide-media"), b = function(h) {
2233
2255
  var u = h.url, p = h.allow, k = h.callback, g = h.appendTo, y = document.createElement("iframe");
2234
2256
  return y.className = "vimeo-video gvideo", y.src = u, y.style.width = "100%", y.style.height = "100%", p && y.setAttribute("allow", p), y.onload = function() {
2235
- y.onload = null, E(y, "node-ready"), w(k) && k();
2257
+ y.onload = null, M(y, "node-ready"), v(k) && k();
2236
2258
  }, g && g.appendChild(y), y;
2237
- }({ url: e.href, callback: s });
2238
- f.parentNode.style.maxWidth = e.width, f.parentNode.style.height = e.height, f.appendChild(b);
2259
+ }({ url: t.href, callback: o });
2260
+ f.parentNode.style.maxWidth = t.width, f.parentNode.style.height = t.height, f.appendChild(b);
2239
2261
  }
2240
2262
  var xa = function() {
2241
2263
  function r() {
2242
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2243
- i(this, r), this.defaults = { href: "", sizes: "", srcset: "", title: "", type: "", videoProvider: "", description: "", alt: "", descPosition: "bottom", effect: "", width: "", height: "", content: !1, zoomable: !0, draggable: !0 }, Le(e) && (this.defaults = v(this.defaults, e));
2264
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2265
+ i(this, r), this.defaults = { href: "", sizes: "", srcset: "", title: "", type: "", videoProvider: "", description: "", alt: "", descPosition: "bottom", effect: "", width: "", height: "", content: !1, zoomable: !0, draggable: !0 }, Le(t) && (this.defaults = x(this.defaults, t));
2244
2266
  }
2245
- return d(r, [{ key: "sourceType", value: function(e) {
2246
- var o = e;
2247
- return (e = e.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/) !== null ? "image" : e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || e.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || e.match(/vimeo\.com\/([0-9]*)/) || e.match(/\.(mp4|ogg|webm|mov)/) !== null ? "video" : e.match(/\.(mp3|wav|wma|aac|ogg)/) !== null ? "audio" : e.indexOf("#") > -1 && o.split("#").pop().trim() !== "" ? "inline" : e.indexOf("goajax=true") > -1 ? "ajax" : "external";
2248
- } }, { key: "parseConfig", value: function(e, o) {
2249
- var s = this, f = v({ descPosition: o.descPosition }, this.defaults);
2250
- if (Le(e) && !te(e)) {
2251
- N(e, "type") || (N(e, "content") && e.content ? e.type = "inline" : N(e, "href") && (e.type = this.sourceType(e.href)));
2252
- var b = v(f, e);
2253
- return this.setSize(b, o), b;
2267
+ return d(r, [{ key: "sourceType", value: function(t) {
2268
+ var s = t;
2269
+ return (t = t.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/) !== null ? "image" : t.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || t.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || t.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || t.match(/vimeo\.com\/([0-9]*)/) || t.match(/\.(mp4|ogg|webm|mov)/) !== null ? "video" : t.match(/\.(mp3|wav|wma|aac|ogg)/) !== null ? "audio" : t.indexOf("#") > -1 && s.split("#").pop().trim() !== "" ? "inline" : t.indexOf("goajax=true") > -1 ? "ajax" : "external";
2270
+ } }, { key: "parseConfig", value: function(t, s) {
2271
+ var o = this, f = x({ descPosition: s.descPosition }, this.defaults);
2272
+ if (Le(t) && !te(t)) {
2273
+ N(t, "type") || (N(t, "content") && t.content ? t.type = "inline" : N(t, "href") && (t.type = this.sourceType(t.href)));
2274
+ var b = x(f, t);
2275
+ return this.setSize(b, s), b;
2254
2276
  }
2255
- var h = "", u = e.getAttribute("data-glightbox"), p = e.nodeName.toLowerCase();
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));
2277
+ var h = "", u = t.getAttribute("data-glightbox"), p = t.nodeName.toLowerCase();
2278
+ if (p === "a" && (h = t.href), p === "img" && (h = t.src, f.alt = t.alt), f.href = h, S(f, function(O, B) {
2279
+ N(s, B) && B !== "width" && (f[B] = s[B]);
2280
+ var I = t.dataset[B];
2281
+ ne(I) || (f[B] = o.sanitizeValue(I));
2260
2282
  }), f.content && (f.type = "inline"), !f.type && h && (f.type = this.sourceType(h)), ne(u)) {
2261
2283
  if (!f.title && p == "a") {
2262
- var k = e.title;
2284
+ var k = t.title;
2263
2285
  ne(k) || k === "" || (f.title = k);
2264
2286
  }
2265
2287
  if (!f.title && p == "img") {
2266
- var g = e.alt;
2288
+ var g = t.alt;
2267
2289
  ne(g) || g === "" || (f.title = g);
2268
2290
  }
2269
2291
  } else {
2270
2292
  var y = [];
2271
- S(f, function(j, H) {
2272
- y.push(";\\s?" + H);
2273
- }), y = y.join("\\s?:|"), u.trim() !== "" && S(f, function(j, H) {
2274
- var I = u, re = new RegExp("s?" + H + "s?:s?(.*?)(" + y + "s?:|$)"), ae = I.match(re);
2293
+ S(f, function(O, B) {
2294
+ y.push(";\\s?" + B);
2295
+ }), y = y.join("\\s?:|"), u.trim() !== "" && S(f, function(O, B) {
2296
+ var I = u, re = new RegExp("s?" + B + "s?:s?(.*?)(" + y + "s?:|$)"), ae = I.match(re);
2275
2297
  if (ae && ae.length && ae[1]) {
2276
2298
  var we = ae[1].trim().replace(/;\s*$/, "");
2277
- f[H] = s.sanitizeValue(we);
2299
+ f[B] = o.sanitizeValue(we);
2278
2300
  }
2279
2301
  });
2280
2302
  }
2281
2303
  if (f.description && f.description.substring(0, 1) === ".") {
2282
- var M;
2304
+ var T;
2283
2305
  try {
2284
- M = document.querySelector(f.description).innerHTML;
2285
- } catch (j) {
2286
- if (!(j instanceof DOMException))
2287
- throw j;
2306
+ T = document.querySelector(f.description).innerHTML;
2307
+ } catch (O) {
2308
+ if (!(O instanceof DOMException))
2309
+ throw O;
2288
2310
  }
2289
- M && (f.description = M);
2311
+ T && (f.description = T);
2290
2312
  }
2291
2313
  if (!f.description) {
2292
- var _ = e.querySelector(".glightbox-desc");
2314
+ var _ = t.querySelector(".glightbox-desc");
2293
2315
  _ && (f.description = _.innerHTML);
2294
2316
  }
2295
- return this.setSize(f, o, e), this.slideConfig = f, f;
2296
- } }, { key: "setSize", value: function(e, o) {
2297
- var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, f = e.type == "video" ? this.checkSize(o.videosWidth) : this.checkSize(o.width), b = this.checkSize(o.height);
2298
- return e.width = N(e, "width") && e.width !== "" ? this.checkSize(e.width) : f, e.height = N(e, "height") && e.height !== "" ? this.checkSize(e.height) : b, s && e.type == "image" && (e._hasCustomWidth = !!s.dataset.width, e._hasCustomHeight = !!s.dataset.height), e;
2299
- } }, { key: "checkSize", value: function(e) {
2300
- return We(e) ? "".concat(e, "px") : e;
2301
- } }, { key: "sanitizeValue", value: function(e) {
2302
- return e !== "true" && e !== "false" ? e : e === "true";
2317
+ return this.setSize(f, s, t), this.slideConfig = f, f;
2318
+ } }, { key: "setSize", value: function(t, s) {
2319
+ var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, f = t.type == "video" ? this.checkSize(s.videosWidth) : this.checkSize(s.width), b = this.checkSize(s.height);
2320
+ return t.width = N(t, "width") && t.width !== "" ? this.checkSize(t.width) : f, t.height = N(t, "height") && t.height !== "" ? this.checkSize(t.height) : b, o && t.type == "image" && (t._hasCustomWidth = !!o.dataset.width, t._hasCustomHeight = !!o.dataset.height), t;
2321
+ } }, { key: "checkSize", value: function(t) {
2322
+ return We(t) ? "".concat(t, "px") : t;
2323
+ } }, { key: "sanitizeValue", value: function(t) {
2324
+ return t !== "true" && t !== "false" ? t : t === "true";
2303
2325
  } }]), r;
2304
2326
  }(), Xe = function() {
2305
- function r(e, o, s) {
2306
- i(this, r), this.element = e, this.instance = o, this.index = s;
2327
+ function r(t, s, o) {
2328
+ i(this, r), this.element = t, this.instance = s, this.index = o;
2307
2329
  }
2308
2330
  return d(r, [{ key: "setContent", value: function() {
2309
- var e = this, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, s = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
2310
- if (F(o, "loaded"))
2331
+ var t = this, s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, o = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
2332
+ if (F(s, "loaded"))
2311
2333
  return !1;
2312
2334
  var f = this.instance.settings, b = this.slideConfig, h = Se();
2313
- w(f.beforeSlideLoad) && f.beforeSlideLoad({ index: this.index, slide: o, player: !1 });
2314
- var u = b.type, p = b.descPosition, k = o.querySelector(".gslide-media"), g = o.querySelector(".gslide-title"), y = o.querySelector(".gslide-desc"), M = o.querySelector(".gdesc-inner"), _ = s, j = "gSlideTitle_" + this.index, H = "gSlideDesc_" + this.index;
2315
- if (w(f.afterSlideLoad) && (_ = function() {
2316
- w(s) && s(), f.afterSlideLoad({ index: e.index, slide: o, player: e.instance.getSlidePlayerInstance(e.index) });
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), y && b.description !== "" ? (y.id = H, h && f.moreLength > 0 ? (b.smallDescription = this.slideShortDesc(b.description, f.moreLength, f.moreText), y.innerHTML = b.smallDescription, this.descriptionEvents(y, b)) : y.innerHTML = b.description) : y.parentNode.removeChild(y), E(k.parentNode, "desc-".concat(p)), E(M.parentNode, "description-".concat(p))), E(k, "gslide-".concat(u)), E(o, "loaded"), u !== "video") {
2335
+ v(f.beforeSlideLoad) && f.beforeSlideLoad({ index: this.index, slide: s, player: !1 });
2336
+ var u = b.type, p = b.descPosition, k = s.querySelector(".gslide-media"), g = s.querySelector(".gslide-title"), y = s.querySelector(".gslide-desc"), T = s.querySelector(".gdesc-inner"), _ = o, O = "gSlideTitle_" + this.index, B = "gSlideDesc_" + this.index;
2337
+ if (v(f.afterSlideLoad) && (_ = function() {
2338
+ v(o) && o(), f.afterSlideLoad({ index: t.index, slide: s, player: t.instance.getSlidePlayerInstance(t.index) });
2339
+ }), b.title == "" && b.description == "" ? T && T.parentNode.parentNode.removeChild(T.parentNode) : (g && b.title !== "" ? (g.id = O, g.innerHTML = b.title) : g.parentNode.removeChild(g), y && b.description !== "" ? (y.id = B, h && f.moreLength > 0 ? (b.smallDescription = this.slideShortDesc(b.description, f.moreLength, f.moreText), y.innerHTML = b.smallDescription, this.descriptionEvents(y, b)) : y.innerHTML = b.description) : y.parentNode.removeChild(y), M(k.parentNode, "desc-".concat(p)), M(T.parentNode, "description-".concat(p))), M(k, "gslide-".concat(u)), M(s, "loaded"), u !== "video") {
2318
2340
  if (u !== "external")
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() {
2320
- var I = o.querySelector("img");
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() {
2322
- e.instance.resize();
2323
- })), w(_) && _();
2341
+ return u === "inline" ? (va.apply(this.instance, [s, b, this.index, _]), void (b.draggable && new $t({ dragEl: s.querySelector(".gslide-inline"), toleranceX: f.dragToleranceX, toleranceY: f.dragToleranceY, slide: s, instance: this.instance }))) : void (u !== "image" ? v(_) && _() : ma(s, b, this.index, function() {
2342
+ var I = s.querySelector("img");
2343
+ b.draggable && new $t({ dragEl: I, toleranceX: f.dragToleranceX, toleranceY: f.dragToleranceY, slide: s, instance: t.instance }), b.zoomable && I.naturalWidth > I.offsetWidth && (M(I, "zoomable"), new ga(I, s, function() {
2344
+ t.instance.resize();
2345
+ })), v(_) && _();
2324
2346
  }));
2325
- wa.apply(this, [o, b, this.index, _]);
2347
+ wa.apply(this, [s, b, this.index, _]);
2326
2348
  } else
2327
- ya.apply(this.instance, [o, b, this.index, _]);
2328
- } }, { key: "slideShortDesc", value: function(e) {
2329
- var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 50, s = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], f = document.createElement("div");
2330
- f.innerHTML = e;
2331
- var b = f.innerText, h = s;
2332
- if ((e = b.trim()).length <= o)
2333
- return e;
2334
- var u = e.substr(0, o - 1);
2335
- return h ? (f = null, u + '... <a href="#" class="desc-more">' + s + "</a>") : u;
2336
- } }, { key: "descriptionEvents", value: function(e, o) {
2337
- var s = this, f = e.querySelector(".desc-more");
2349
+ ya.apply(this.instance, [s, b, this.index, _]);
2350
+ } }, { key: "slideShortDesc", value: function(t) {
2351
+ var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 50, o = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], f = document.createElement("div");
2352
+ f.innerHTML = t;
2353
+ var b = f.innerText, h = o;
2354
+ if ((t = b.trim()).length <= s)
2355
+ return t;
2356
+ var u = t.substr(0, s - 1);
2357
+ return h ? (f = null, u + '... <a href="#" class="desc-more">' + o + "</a>") : u;
2358
+ } }, { key: "descriptionEvents", value: function(t, s) {
2359
+ var o = this, f = t.querySelector(".desc-more");
2338
2360
  if (!f)
2339
2361
  return !1;
2340
2362
  L("click", { onElement: f, withCallback: function(b, h) {
@@ -2342,10 +2364,10 @@ var ta = { exports: {} };
2342
2364
  var u = document.body, p = ce(h, ".gslide-desc");
2343
2365
  if (!p)
2344
2366
  return !1;
2345
- p.innerHTML = o.description, E(u, "gdesc-open");
2367
+ p.innerHTML = s.description, M(u, "gdesc-open");
2346
2368
  var k = L("click", { onElement: [u, ce(p, ".gslide-description")], withCallback: function(g, y) {
2347
- g.target.nodeName.toLowerCase() !== "a" && (T(u, "gdesc-open"), E(u, "gdesc-closed"), p.innerHTML = o.smallDescription, s.descriptionEvents(p, o), setTimeout(function() {
2348
- T(u, "gdesc-closed");
2369
+ g.target.nodeName.toLowerCase() !== "a" && (A(u, "gdesc-open"), M(u, "gdesc-closed"), p.innerHTML = s.smallDescription, o.descriptionEvents(p, s), setTimeout(function() {
2370
+ A(u, "gdesc-closed");
2349
2371
  }, 400), k.destroy());
2350
2372
  } });
2351
2373
  } });
@@ -2353,10 +2375,10 @@ var ta = { exports: {} };
2353
2375
  return he(this.instance.settings.slideHTML);
2354
2376
  } }, { key: "getConfig", value: function() {
2355
2377
  te(this.element) || this.element.hasOwnProperty("draggable") || (this.element.draggable = this.instance.settings.draggable);
2356
- var e = new xa(this.instance.settings.slideExtraAttributes);
2357
- return this.slideConfig = e.parseConfig(this.element, this.instance.settings), this.slideConfig;
2378
+ var t = new xa(this.instance.settings.slideExtraAttributes);
2379
+ return this.slideConfig = t.parseConfig(this.element, this.instance.settings), this.slideConfig;
2358
2380
  } }]), r;
2359
- }(), Lt = Se(), jt = Se() !== null || document.createTouch !== void 0 || "ontouchstart" in window || "onmsgesturechange" in window || navigator.msMaxTouchPoints, Ot = document.getElementsByTagName("html")[0], ka = { selector: ".glightbox", elements: null, skin: "clean", theme: "clean", closeButton: !0, startAt: null, autoplayVideos: !0, autofocusVideos: !0, descPosition: "bottom", width: "900px", height: "506px", videosWidth: "960px", beforeSlideChange: null, afterSlideChange: null, beforeSlideLoad: null, afterSlideLoad: null, slideInserted: null, slideRemoved: null, slideExtraAttributes: null, onOpen: null, onClose: null, loop: !1, zoomable: !0, draggable: !0, dragAutoSnap: !1, dragToleranceX: 40, dragToleranceY: 65, preload: !0, oneSlidePerOpen: !1, touchNavigation: !0, touchFollowAxis: !0, keyboardNavigation: !0, closeOnOutsideClick: !0, plugins: !1, plyr: { css: "https://cdn.plyr.io/3.6.12/plyr.css", js: "https://cdn.plyr.io/3.6.12/plyr.js", config: { ratio: "16:9", fullscreen: { enabled: !0, iosNative: !0 }, youtube: { noCookie: !0, rel: 0, showinfo: 0, iv_load_policy: 3 }, vimeo: { byline: !1, portrait: !1, title: !1, transparent: !1 } } }, openEffect: "zoom", closeEffect: "zoom", slideEffect: "slide", moreText: "See more", moreLength: 60, cssEfects: { fade: { in: "fadeIn", out: "fadeOut" }, zoom: { in: "zoomIn", out: "zoomOut" }, slide: { in: "slideInRight", out: "slideOutLeft" }, slideBack: { in: "slideInLeft", out: "slideOutRight" }, none: { in: "none", out: "none" } }, svg: { close: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>', next: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>', prev: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>' }, slideHTML: `<div class="gslide">
2381
+ }(), Lt = Se(), Ot = Se() !== null || document.createTouch !== void 0 || "ontouchstart" in window || "onmsgesturechange" in window || navigator.msMaxTouchPoints, jt = document.getElementsByTagName("html")[0], ka = { selector: ".glightbox", elements: null, skin: "clean", theme: "clean", closeButton: !0, startAt: null, autoplayVideos: !0, autofocusVideos: !0, descPosition: "bottom", width: "900px", height: "506px", videosWidth: "960px", beforeSlideChange: null, afterSlideChange: null, beforeSlideLoad: null, afterSlideLoad: null, slideInserted: null, slideRemoved: null, slideExtraAttributes: null, onOpen: null, onClose: null, loop: !1, zoomable: !0, draggable: !0, dragAutoSnap: !1, dragToleranceX: 40, dragToleranceY: 65, preload: !0, oneSlidePerOpen: !1, touchNavigation: !0, touchFollowAxis: !0, keyboardNavigation: !0, closeOnOutsideClick: !0, plugins: !1, plyr: { css: "https://cdn.plyr.io/3.6.12/plyr.css", js: "https://cdn.plyr.io/3.6.12/plyr.js", config: { ratio: "16:9", fullscreen: { enabled: !0, iosNative: !0 }, youtube: { noCookie: !0, rel: 0, showinfo: 0, iv_load_policy: 3 }, vimeo: { byline: !1, portrait: !1, title: !1, transparent: !1 } } }, openEffect: "zoom", closeEffect: "zoom", slideEffect: "slide", moreText: "See more", moreLength: 60, cssEfects: { fade: { in: "fadeIn", out: "fadeOut" }, zoom: { in: "zoomIn", out: "zoomOut" }, slide: { in: "slideInRight", out: "slideOutLeft" }, slideBack: { in: "slideInLeft", out: "slideOutRight" }, none: { in: "none", out: "none" } }, svg: { close: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>', next: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>', prev: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>' }, slideHTML: `<div class="gslide">
2360
2382
  <div class="gslide-inner-content">
2361
2383
  <div class="ginner-container">
2362
2384
  <div class="gslide-media">
@@ -2380,190 +2402,190 @@ var ta = { exports: {} };
2380
2402
  </div>
2381
2403
  </div>` }, Ca = function() {
2382
2404
  function r() {
2383
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2384
- i(this, r), this.customOptions = e, this.settings = v(ka, e), this.effectsClasses = this.getAnimationClasses(), this.videoPlayers = {}, this.apiEvents = [], this.fullElementsList = !1;
2405
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2406
+ i(this, r), this.customOptions = t, this.settings = x(ka, t), this.effectsClasses = this.getAnimationClasses(), this.videoPlayers = {}, this.apiEvents = [], this.fullElementsList = !1;
2385
2407
  }
2386
2408
  return d(r, [{ key: "init", value: function() {
2387
- var e = this, o = this.getSelector();
2388
- o && (this.baseEvents = L("click", { onElement: o, withCallback: function(s, f) {
2389
- s.preventDefault(), e.open(f);
2409
+ var t = this, s = this.getSelector();
2410
+ s && (this.baseEvents = L("click", { onElement: s, withCallback: function(o, f) {
2411
+ o.preventDefault(), t.open(f);
2390
2412
  } })), this.elements = this.getElements();
2391
2413
  } }, { key: "open", value: function() {
2392
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
2414
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
2393
2415
  if (this.elements.length === 0)
2394
2416
  return !1;
2395
2417
  this.activeSlide = null, this.prevActiveSlideIndex = null, this.prevActiveSlide = null;
2396
- var s = We(o) ? o : this.settings.startAt;
2397
- if (te(e)) {
2398
- var f = e.getAttribute("data-gallery");
2399
- f && (this.fullElementsList = this.elements, this.elements = this.getGalleryElements(this.elements, f)), ne(s) && (s = this.getElementIndex(e)) < 0 && (s = 0);
2418
+ var o = We(s) ? s : this.settings.startAt;
2419
+ if (te(t)) {
2420
+ var f = t.getAttribute("data-gallery");
2421
+ f && (this.fullElementsList = this.elements, this.elements = this.getGalleryElements(this.elements, f)), ne(o) && (o = this.getElementIndex(t)) < 0 && (o = 0);
2400
2422
  }
2401
- We(s) || (s = 0), this.build(), A(this.overlay, this.settings.openEffect === "none" ? "none" : this.settings.cssEfects.fade.in);
2423
+ We(o) || (o = 0), this.build(), E(this.overlay, this.settings.openEffect === "none" ? "none" : this.settings.cssEfects.fade.in);
2402
2424
  var b = document.body, h = window.innerWidth - document.documentElement.clientWidth;
2403
2425
  if (h > 0) {
2404
2426
  var u = document.createElement("style");
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");
2427
+ 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");
2406
2428
  }
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")) : (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);
2429
+ M(b, "glightbox-open"), M(jt, "glightbox-open"), Lt && (M(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(o, !0), this.elements.length === 1 ? (M(this.prevButton, "glightbox-button-hidden"), M(this.nextButton, "glightbox-button-hidden")) : (A(this.prevButton, "glightbox-button-hidden"), A(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), v(this.settings.onOpen) && this.settings.onOpen(), Ot && this.settings.touchNavigation && pa(this), this.settings.keyboardNavigation && la(this);
2408
2430
  } }, { key: "openAt", value: function() {
2409
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
2410
- this.open(null, e);
2431
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
2432
+ this.open(null, t);
2411
2433
  } }, { key: "showSlide", value: function() {
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];
2413
- R(this.loader), this.index = parseInt(o);
2434
+ var t = this, s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, o = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
2435
+ q(this.loader), this.index = parseInt(s);
2414
2436
  var f = this.slidesContainer.querySelector(".current");
2415
- f && T(f, "current"), this.slideAnimateOut();
2416
- var b = this.slidesContainer.querySelectorAll(".gslide")[o];
2437
+ f && A(f, "current"), this.slideAnimateOut();
2438
+ var b = this.slidesContainer.querySelectorAll(".gslide")[s];
2417
2439
  if (F(b, "loaded"))
2418
- this.slideAnimateIn(b, s), $(this.loader);
2440
+ this.slideAnimateIn(b, o), $(this.loader);
2419
2441
  else {
2420
- R(this.loader);
2421
- var h = this.elements[o], u = { index: this.index, slide: b, slideNode: b, slideConfig: h.slideConfig, slideIndex: this.index, trigger: h.node, player: null };
2442
+ q(this.loader);
2443
+ var h = this.elements[s], u = { index: this.index, slide: b, slideNode: b, slideConfig: h.slideConfig, slideIndex: this.index, trigger: h.node, player: null };
2422
2444
  this.trigger("slide_before_load", u), h.instance.setContent(b, function() {
2423
- $(e.loader), e.resize(), e.slideAnimateIn(b, s), e.trigger("slide_after_load", u);
2445
+ $(t.loader), t.resize(), t.slideAnimateIn(b, o), t.trigger("slide_after_load", u);
2424
2446
  });
2425
2447
  }
2426
- this.slideDescription = b.querySelector(".gslide-description"), this.slideDescriptionContained = this.slideDescription && F(this.slideDescription.parentNode, "gslide-media"), this.settings.preload && (this.preloadSlide(o + 1), this.preloadSlide(o - 1)), this.updateNavigationClasses(), this.activeSlide = b;
2427
- } }, { key: "preloadSlide", value: function(e) {
2428
- var o = this;
2429
- if (e < 0 || e > this.elements.length - 1 || ne(this.elements[e]))
2448
+ this.slideDescription = b.querySelector(".gslide-description"), this.slideDescriptionContained = this.slideDescription && F(this.slideDescription.parentNode, "gslide-media"), this.settings.preload && (this.preloadSlide(s + 1), this.preloadSlide(s - 1)), this.updateNavigationClasses(), this.activeSlide = b;
2449
+ } }, { key: "preloadSlide", value: function(t) {
2450
+ var s = this;
2451
+ if (t < 0 || t > this.elements.length - 1 || ne(this.elements[t]))
2430
2452
  return !1;
2431
- var s = this.slidesContainer.querySelectorAll(".gslide")[e];
2432
- if (F(s, "loaded"))
2453
+ var o = this.slidesContainer.querySelectorAll(".gslide")[t];
2454
+ if (F(o, "loaded"))
2433
2455
  return !1;
2434
- var f = this.elements[e], b = f.type, h = { index: e, slide: s, slideNode: s, slideConfig: f.slideConfig, slideIndex: e, trigger: f.node, player: null };
2456
+ var f = this.elements[t], b = f.type, h = { index: t, slide: o, slideNode: o, slideConfig: f.slideConfig, slideIndex: t, trigger: f.node, player: null };
2435
2457
  this.trigger("slide_before_load", h), b === "video" || b === "external" ? setTimeout(function() {
2436
- f.instance.setContent(s, function() {
2437
- o.trigger("slide_after_load", h);
2458
+ f.instance.setContent(o, function() {
2459
+ s.trigger("slide_after_load", h);
2438
2460
  });
2439
- }, 200) : f.instance.setContent(s, function() {
2440
- o.trigger("slide_after_load", h);
2461
+ }, 200) : f.instance.setContent(o, function() {
2462
+ s.trigger("slide_after_load", h);
2441
2463
  });
2442
2464
  } }, { key: "prevSlide", value: function() {
2443
2465
  this.goToSlide(this.index - 1);
2444
2466
  } }, { key: "nextSlide", value: function() {
2445
2467
  this.goToSlide(this.index + 1);
2446
2468
  } }, { key: "goToSlide", value: function() {
2447
- var e = arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
2448
- if (this.prevActiveSlide = this.activeSlide, this.prevActiveSlideIndex = this.index, !this.loop() && (e < 0 || e > this.elements.length - 1))
2469
+ var t = arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
2470
+ if (this.prevActiveSlide = this.activeSlide, this.prevActiveSlideIndex = this.index, !this.loop() && (t < 0 || t > this.elements.length - 1))
2449
2471
  return !1;
2450
- e < 0 ? e = this.elements.length - 1 : e >= this.elements.length && (e = 0), this.showSlide(e);
2472
+ t < 0 ? t = this.elements.length - 1 : t >= this.elements.length && (t = 0), this.showSlide(t);
2451
2473
  } }, { key: "insertSlide", value: function() {
2452
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1;
2453
- o < 0 && (o = this.elements.length);
2454
- var s = new Xe(e, this, o), f = s.getConfig(), b = v({}, f), h = s.create(), u = this.elements.length - 1;
2455
- b.index = o, b.node = !1, b.instance = s, b.slideConfig = f, this.elements.splice(o, 0, b);
2474
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1;
2475
+ s < 0 && (s = this.elements.length);
2476
+ var o = new Xe(t, this, s), f = o.getConfig(), b = x({}, f), h = o.create(), u = this.elements.length - 1;
2477
+ b.index = s, b.node = !1, b.instance = o, b.slideConfig = f, this.elements.splice(s, 0, b);
2456
2478
  var p = null, k = null;
2457
2479
  if (this.slidesContainer) {
2458
- if (o > u)
2480
+ if (s > u)
2459
2481
  this.slidesContainer.appendChild(h);
2460
2482
  else {
2461
- var g = this.slidesContainer.querySelectorAll(".gslide")[o];
2483
+ var g = this.slidesContainer.querySelectorAll(".gslide")[s];
2462
2484
  this.slidesContainer.insertBefore(h, g);
2463
2485
  }
2464
- (this.settings.preload && this.index == 0 && o == 0 || this.index - 1 == o || this.index + 1 == o) && this.preloadSlide(o), this.index === 0 && o === 0 && (this.index = 1), this.updateNavigationClasses(), p = this.slidesContainer.querySelectorAll(".gslide")[o], k = this.getSlidePlayerInstance(o), b.slideNode = p;
2486
+ (this.settings.preload && this.index == 0 && s == 0 || this.index - 1 == s || this.index + 1 == s) && this.preloadSlide(s), this.index === 0 && s === 0 && (this.index = 1), this.updateNavigationClasses(), p = this.slidesContainer.querySelectorAll(".gslide")[s], k = this.getSlidePlayerInstance(s), b.slideNode = p;
2465
2487
  }
2466
- this.trigger("slide_inserted", { index: o, slide: p, slideNode: p, slideConfig: f, slideIndex: o, trigger: null, player: k }), w(this.settings.slideInserted) && this.settings.slideInserted({ index: o, slide: p, player: k });
2488
+ this.trigger("slide_inserted", { index: s, slide: p, slideNode: p, slideConfig: f, slideIndex: s, trigger: null, player: k }), v(this.settings.slideInserted) && this.settings.slideInserted({ index: s, slide: p, player: k });
2467
2489
  } }, { key: "removeSlide", value: function() {
2468
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
2469
- if (e < 0 || e > this.elements.length - 1)
2490
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
2491
+ if (t < 0 || t > this.elements.length - 1)
2470
2492
  return !1;
2471
- var o = this.slidesContainer && this.slidesContainer.querySelectorAll(".gslide")[e];
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);
2473
- } }, { key: "slideAnimateIn", value: function(e, o) {
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) };
2475
- if (f.offsetWidth > 0 && b && ($(b), b.style.display = ""), T(e, this.effectsClasses), o)
2476
- A(e, this.settings.cssEfects[this.settings.openEffect].in, function() {
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]);
2493
+ var s = this.slidesContainer && this.slidesContainer.querySelectorAll(".gslide")[t];
2494
+ s && (this.getActiveSlideIndex() == t && (t == this.elements.length - 1 ? this.prevSlide() : this.nextSlide()), s.parentNode.removeChild(s)), this.elements.splice(t, 1), this.trigger("slide_removed", t), v(this.settings.slideRemoved) && this.settings.slideRemoved(t);
2495
+ } }, { key: "slideAnimateIn", value: function(t, s) {
2496
+ var o = this, f = t.querySelector(".gslide-media"), b = t.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) };
2497
+ if (f.offsetWidth > 0 && b && ($(b), b.style.display = ""), A(t, this.effectsClasses), s)
2498
+ E(t, this.settings.cssEfects[this.settings.openEffect].in, function() {
2499
+ o.settings.autoplayVideos && o.slidePlayerPlay(t), o.trigger("slide_changed", { prev: h, current: u }), v(o.settings.afterSlideChange) && o.settings.afterSlideChange.apply(o, [h, u]);
2478
2500
  });
2479
2501
  else {
2480
2502
  var p = this.settings.slideEffect, k = p !== "none" ? this.settings.cssEfects[p].in : p;
2481
- this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (k = this.settings.cssEfects.slideBack.in), A(e, k, function() {
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]);
2503
+ this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (k = this.settings.cssEfects.slideBack.in), E(t, k, function() {
2504
+ o.settings.autoplayVideos && o.slidePlayerPlay(t), o.trigger("slide_changed", { prev: h, current: u }), v(o.settings.afterSlideChange) && o.settings.afterSlideChange.apply(o, [h, u]);
2483
2505
  });
2484
2506
  }
2485
2507
  setTimeout(function() {
2486
- s.resize(e);
2487
- }, 100), E(e, "current");
2508
+ o.resize(t);
2509
+ }, 100), M(t, "current");
2488
2510
  } }, { key: "slideAnimateOut", value: function() {
2489
2511
  if (!this.prevActiveSlide)
2490
2512
  return !1;
2491
- var e = this.prevActiveSlide;
2492
- T(e, this.effectsClasses), E(e, "prev");
2493
- var o = this.settings.slideEffect, s = o !== "none" ? this.settings.cssEfects[o].out : o;
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), A(e, s, function() {
2495
- var f = e.querySelector(".ginner-container"), b = e.querySelector(".gslide-media"), h = e.querySelector(".gslide-description");
2496
- f.style.transform = "", b.style.transform = "", T(b, "greset"), b.style.opacity = "", h && (h.style.opacity = ""), T(e, "prev");
2513
+ var t = this.prevActiveSlide;
2514
+ A(t, this.effectsClasses), M(t, "prev");
2515
+ var s = this.settings.slideEffect, o = s !== "none" ? this.settings.cssEfects[s].out : s;
2516
+ this.slidePlayerPause(t), 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) } }), v(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" && (o = this.settings.cssEfects.slideBack.out), E(t, o, function() {
2517
+ var f = t.querySelector(".ginner-container"), b = t.querySelector(".gslide-media"), h = t.querySelector(".gslide-description");
2518
+ f.style.transform = "", b.style.transform = "", A(b, "greset"), b.style.opacity = "", h && (h.style.opacity = ""), A(t, "prev");
2497
2519
  });
2498
2520
  } }, { key: "getAllPlayers", value: function() {
2499
2521
  return this.videoPlayers;
2500
- } }, { key: "getSlidePlayerInstance", value: function(e) {
2501
- var o = "gvideo" + e, s = this.getAllPlayers();
2502
- return !(!N(s, o) || !s[o]) && s[o];
2503
- } }, { key: "stopSlideVideo", value: function(e) {
2504
- if (te(e)) {
2505
- var o = e.querySelector(".gvideo-wrapper");
2506
- o && (e = o.getAttribute("data-index"));
2522
+ } }, { key: "getSlidePlayerInstance", value: function(t) {
2523
+ var s = "gvideo" + t, o = this.getAllPlayers();
2524
+ return !(!N(o, s) || !o[s]) && o[s];
2525
+ } }, { key: "stopSlideVideo", value: function(t) {
2526
+ if (te(t)) {
2527
+ var s = t.querySelector(".gvideo-wrapper");
2528
+ s && (t = s.getAttribute("data-index"));
2507
2529
  }
2508
2530
  console.log("stopSlideVideo is deprecated, use slidePlayerPause");
2509
- var s = this.getSlidePlayerInstance(e);
2510
- s && s.playing && s.pause();
2511
- } }, { key: "slidePlayerPause", value: function(e) {
2512
- if (te(e)) {
2513
- var o = e.querySelector(".gvideo-wrapper");
2514
- o && (e = o.getAttribute("data-index"));
2531
+ var o = this.getSlidePlayerInstance(t);
2532
+ o && o.playing && o.pause();
2533
+ } }, { key: "slidePlayerPause", value: function(t) {
2534
+ if (te(t)) {
2535
+ var s = t.querySelector(".gvideo-wrapper");
2536
+ s && (t = s.getAttribute("data-index"));
2515
2537
  }
2516
- var s = this.getSlidePlayerInstance(e);
2517
- s && s.playing && s.pause();
2518
- } }, { key: "playSlideVideo", value: function(e) {
2519
- if (te(e)) {
2520
- var o = e.querySelector(".gvideo-wrapper");
2521
- o && (e = o.getAttribute("data-index"));
2538
+ var o = this.getSlidePlayerInstance(t);
2539
+ o && o.playing && o.pause();
2540
+ } }, { key: "playSlideVideo", value: function(t) {
2541
+ if (te(t)) {
2542
+ var s = t.querySelector(".gvideo-wrapper");
2543
+ s && (t = s.getAttribute("data-index"));
2522
2544
  }
2523
2545
  console.log("playSlideVideo is deprecated, use slidePlayerPlay");
2524
- var s = this.getSlidePlayerInstance(e);
2525
- s && !s.playing && s.play();
2526
- } }, { key: "slidePlayerPlay", value: function(e) {
2527
- var o;
2528
- if (!Lt || (o = this.settings.plyr.config) !== null && o !== void 0 && o.muted) {
2529
- if (te(e)) {
2530
- var s = e.querySelector(".gvideo-wrapper");
2531
- s && (e = s.getAttribute("data-index"));
2546
+ var o = this.getSlidePlayerInstance(t);
2547
+ o && !o.playing && o.play();
2548
+ } }, { key: "slidePlayerPlay", value: function(t) {
2549
+ var s;
2550
+ if (!Lt || (s = this.settings.plyr.config) !== null && s !== void 0 && s.muted) {
2551
+ if (te(t)) {
2552
+ var o = t.querySelector(".gvideo-wrapper");
2553
+ o && (t = o.getAttribute("data-index"));
2532
2554
  }
2533
- var f = this.getSlidePlayerInstance(e);
2555
+ var f = this.getSlidePlayerInstance(t);
2534
2556
  f && !f.playing && (f.play(), this.settings.autofocusVideos && f.elements.container.focus());
2535
2557
  }
2536
- } }, { key: "setElements", value: function(e) {
2537
- var o = this;
2558
+ } }, { key: "setElements", value: function(t) {
2559
+ var s = this;
2538
2560
  this.settings.elements = !1;
2539
- var s = [];
2540
- e && e.length && S(e, function(f, b) {
2541
- var h = new Xe(f, o, b), u = h.getConfig(), p = v({}, u);
2542
- p.slideConfig = u, p.instance = h, p.index = b, s.push(p);
2543
- }), this.elements = s, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (S(this.elements, function() {
2544
- var f = he(o.settings.slideHTML);
2545
- o.slidesContainer.appendChild(f);
2561
+ var o = [];
2562
+ t && t.length && S(t, function(f, b) {
2563
+ var h = new Xe(f, s, b), u = h.getConfig(), p = x({}, u);
2564
+ p.slideConfig = u, p.instance = h, p.index = b, o.push(p);
2565
+ }), this.elements = o, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (S(this.elements, function() {
2566
+ var f = he(s.settings.slideHTML);
2567
+ s.slidesContainer.appendChild(f);
2546
2568
  }), this.showSlide(0, !0)));
2547
- } }, { key: "getElementIndex", value: function(e) {
2548
- var o = !1;
2549
- return S(this.elements, function(s, f) {
2550
- if (N(s, "node") && s.node == e)
2551
- return o = f, !0;
2552
- }), o;
2569
+ } }, { key: "getElementIndex", value: function(t) {
2570
+ var s = !1;
2571
+ return S(this.elements, function(o, f) {
2572
+ if (N(o, "node") && o.node == t)
2573
+ return s = f, !0;
2574
+ }), s;
2553
2575
  } }, { key: "getElements", value: function() {
2554
- var e = this, o = [];
2576
+ var t = this, s = [];
2555
2577
  this.elements = this.elements ? this.elements : [], !ne(this.settings.elements) && Ue(this.settings.elements) && this.settings.elements.length && S(this.settings.elements, function(f, b) {
2556
- var h = new Xe(f, e, b), u = h.getConfig(), p = v({}, u);
2557
- p.node = !1, p.index = b, p.instance = h, p.slideConfig = u, o.push(p);
2578
+ var h = new Xe(f, t, b), u = h.getConfig(), p = x({}, u);
2579
+ p.node = !1, p.index = b, p.instance = h, p.slideConfig = u, s.push(p);
2558
2580
  });
2559
- var s = !1;
2560
- return this.getSelector() && (s = document.querySelectorAll(this.getSelector())), s && S(s, function(f, b) {
2561
- var h = new Xe(f, e, b), u = h.getConfig(), p = v({}, u);
2562
- p.node = f, p.index = b, p.instance = h, p.slideConfig = u, p.gallery = f.getAttribute("data-gallery"), o.push(p);
2563
- }), o;
2564
- } }, { key: "getGalleryElements", value: function(e, o) {
2565
- return e.filter(function(s) {
2566
- return s.gallery == o;
2581
+ var o = !1;
2582
+ return this.getSelector() && (o = document.querySelectorAll(this.getSelector())), o && S(o, function(f, b) {
2583
+ var h = new Xe(f, t, b), u = h.getConfig(), p = x({}, u);
2584
+ p.node = f, p.index = b, p.instance = h, p.slideConfig = u, p.gallery = f.getAttribute("data-gallery"), s.push(p);
2585
+ }), s;
2586
+ } }, { key: "getGalleryElements", value: function(t, s) {
2587
+ return t.filter(function(o) {
2588
+ return o.gallery == s;
2567
2589
  });
2568
2590
  } }, { key: "getSelector", value: function() {
2569
2591
  return !this.settings.elements && (this.settings.selector && this.settings.selector.substring(0, 5) == "data-" ? "*[".concat(this.settings.selector, "]") : this.settings.selector);
@@ -2572,44 +2594,44 @@ var ta = { exports: {} };
2572
2594
  } }, { key: "getActiveSlideIndex", value: function() {
2573
2595
  return this.index;
2574
2596
  } }, { key: "getAnimationClasses", value: function() {
2575
- var e = [];
2576
- for (var o in this.settings.cssEfects)
2577
- if (this.settings.cssEfects.hasOwnProperty(o)) {
2578
- var s = this.settings.cssEfects[o];
2579
- e.push("g".concat(s.in)), e.push("g".concat(s.out));
2597
+ var t = [];
2598
+ for (var s in this.settings.cssEfects)
2599
+ if (this.settings.cssEfects.hasOwnProperty(s)) {
2600
+ var o = this.settings.cssEfects[s];
2601
+ t.push("g".concat(o.in)), t.push("g".concat(o.out));
2580
2602
  }
2581
- return e.join(" ");
2603
+ return t.join(" ");
2582
2604
  } }, { key: "build", value: function() {
2583
- var e = this;
2605
+ var t = this;
2584
2606
  if (this.built)
2585
2607
  return !1;
2586
- var o = document.body.childNodes, s = [];
2587
- S(o, function(g) {
2588
- g.parentNode == document.body && g.nodeName.charAt(0) !== "#" && g.hasAttribute && !g.hasAttribute("aria-hidden") && (s.push(g), g.setAttribute("aria-hidden", "true"));
2608
+ var s = document.body.childNodes, o = [];
2609
+ S(s, function(g) {
2610
+ g.parentNode == document.body && g.nodeName.charAt(0) !== "#" && g.hasAttribute && !g.hasAttribute("aria-hidden") && (o.push(g), g.setAttribute("aria-hidden", "true"));
2589
2611
  });
2590
2612
  var f = N(this.settings.svg, "next") ? this.settings.svg.next : "", b = N(this.settings.svg, "prev") ? this.settings.svg.prev : "", h = N(this.settings.svg, "close") ? this.settings.svg.close : "", u = this.settings.lightboxHTML;
2591
2613
  u = he(u = (u = (u = u.replace(/{nextSVG}/g, f)).replace(/{prevSVG}/g, b)).replace(/{closeSVG}/g, h)), document.body.appendChild(u);
2592
2614
  var p = document.getElementById("glightbox-body");
2593
2615
  this.modal = p;
2594
2616
  var k = p.querySelector(".gclose");
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, y) {
2596
- g.preventDefault(), e.close();
2617
+ 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 = o, this.events = {}, M(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && k && (this.events.close = L("click", { onElement: k, withCallback: function(g, y) {
2618
+ g.preventDefault(), t.close();
2597
2619
  } })), k && !this.settings.closeButton && k.parentNode.removeChild(k), this.nextButton && (this.events.next = L("click", { onElement: this.nextButton, withCallback: function(g, y) {
2598
- g.preventDefault(), e.nextSlide();
2620
+ g.preventDefault(), t.nextSlide();
2599
2621
  } })), this.prevButton && (this.events.prev = L("click", { onElement: this.prevButton, withCallback: function(g, y) {
2600
- g.preventDefault(), e.prevSlide();
2622
+ g.preventDefault(), t.prevSlide();
2601
2623
  } })), this.settings.closeOnOutsideClick && (this.events.outClose = L("click", { onElement: p, withCallback: function(g, y) {
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();
2624
+ t.preventOutsideClick || F(document.body, "glightbox-mobile") || ce(g.target, ".ginner-container") || ce(g.target, ".gbtn") || F(g.target, "gnext") || F(g.target, "gprev") || t.close();
2603
2625
  } })), S(this.elements, function(g, y) {
2604
- e.slidesContainer.appendChild(g.instance.create()), g.slideNode = e.slidesContainer.querySelectorAll(".gslide")[y];
2605
- }), jt && E(document.body, "glightbox-touch"), this.events.resize = L("resize", { onElement: window, withCallback: function() {
2606
- e.resize();
2626
+ t.slidesContainer.appendChild(g.instance.create()), g.slideNode = t.slidesContainer.querySelectorAll(".gslide")[y];
2627
+ }), Ot && M(document.body, "glightbox-touch"), this.events.resize = L("resize", { onElement: window, withCallback: function() {
2628
+ t.resize();
2607
2629
  } }), this.built = !0;
2608
2630
  } }, { key: "resize", value: function() {
2609
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
2610
- if ((e = e || this.activeSlide) && !F(e, "zoomed")) {
2611
- var o = ee(), s = e.querySelector(".gvideo-wrapper"), f = e.querySelector(".gslide-image"), b = this.slideDescription, h = o.width, u = o.height;
2612
- if (h <= 768 ? E(document.body, "glightbox-mobile") : T(document.body, "glightbox-mobile"), s || f) {
2631
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
2632
+ if ((t = t || this.activeSlide) && !F(t, "zoomed")) {
2633
+ var s = ee(), o = t.querySelector(".gvideo-wrapper"), f = t.querySelector(".gslide-image"), b = this.slideDescription, h = s.width, u = s.height;
2634
+ if (h <= 768 ? M(document.body, "glightbox-mobile") : A(document.body, "glightbox-mobile"), o || f) {
2613
2635
  var p = !1;
2614
2636
  if (b && (F(b, "description-bottom") || F(b, "description-top")) && !F(b, "gabsolute") && (p = !0), f) {
2615
2637
  if (h <= 768)
@@ -2619,70 +2641,70 @@ var ta = { exports: {} };
2619
2641
  g.setAttribute("style", "max-height: calc(100vh - ".concat(k, "px)")), b.setAttribute("style", "max-width: ".concat(g.offsetWidth, "px;"));
2620
2642
  }
2621
2643
  }
2622
- if (s) {
2644
+ if (o) {
2623
2645
  var y = N(this.settings.plyr.config, "ratio") ? this.settings.plyr.config.ratio : "";
2624
2646
  if (!y) {
2625
- var M = s.clientWidth, _ = s.clientHeight, j = M / _;
2626
- y = "".concat(M / j, ":").concat(_ / j);
2647
+ var T = o.clientWidth, _ = o.clientHeight, O = T / _;
2648
+ y = "".concat(T / O, ":").concat(_ / O);
2627
2649
  }
2628
- var H = y.split(":"), I = this.settings.videosWidth, re = this.settings.videosWidth, ae = (re = We(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]));
2650
+ var B = y.split(":"), I = this.settings.videosWidth, re = this.settings.videosWidth, ae = (re = We(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(o.clientWidth)) / (parseInt(B[0]) / parseInt(B[1]));
2629
2651
  if (ae = Math.floor(ae), p && (u -= b.offsetHeight), re > h || ae > u || u < ae && h > re) {
2630
- var we = s.offsetWidth, xe = s.offsetHeight, _e = u / xe, je = { width: we * _e, height: xe * _e };
2631
- s.parentNode.setAttribute("style", "max-width: ".concat(je.width, "px")), p && b.setAttribute("style", "max-width: ".concat(je.width, "px;"));
2652
+ var we = o.offsetWidth, xe = o.offsetHeight, _e = u / xe, Oe = { width: we * _e, height: xe * _e };
2653
+ o.parentNode.setAttribute("style", "max-width: ".concat(Oe.width, "px")), p && b.setAttribute("style", "max-width: ".concat(Oe.width, "px;"));
2632
2654
  } else
2633
- s.parentNode.style.maxWidth = "".concat(I), p && b.setAttribute("style", "max-width: ".concat(I, ";"));
2655
+ o.parentNode.style.maxWidth = "".concat(I), p && b.setAttribute("style", "max-width: ".concat(I, ";"));
2634
2656
  }
2635
2657
  }
2636
2658
  }
2637
2659
  } }, { key: "reload", value: function() {
2638
2660
  this.init();
2639
2661
  } }, { key: "updateNavigationClasses", value: function() {
2640
- var e = this.loop();
2641
- T(this.nextButton, "disabled"), T(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");
2662
+ var t = this.loop();
2663
+ A(this.nextButton, "disabled"), A(this.prevButton, "disabled"), this.index == 0 && this.elements.length - 1 == 0 ? (M(this.prevButton, "disabled"), M(this.nextButton, "disabled")) : this.index !== 0 || t ? this.index !== this.elements.length - 1 || t || M(this.nextButton, "disabled") : M(this.prevButton, "disabled");
2642
2664
  } }, { key: "loop", value: function() {
2643
- var e = N(this.settings, "loopAtEnd") ? this.settings.loopAtEnd : null;
2644
- return e = N(this.settings, "loop") ? this.settings.loop : e, e;
2665
+ var t = N(this.settings, "loopAtEnd") ? this.settings.loopAtEnd : null;
2666
+ return t = N(this.settings, "loop") ? this.settings.loop : t, t;
2645
2667
  } }, { key: "close", value: function() {
2646
- var e = this;
2668
+ var t = this;
2647
2669
  if (!this.lightboxOpen) {
2648
2670
  if (this.events) {
2649
- for (var o in this.events)
2650
- this.events.hasOwnProperty(o) && this.events[o].destroy();
2671
+ for (var s in this.events)
2672
+ this.events.hasOwnProperty(s) && this.events[s].destroy();
2651
2673
  this.events = null;
2652
2674
  }
2653
2675
  return !1;
2654
2676
  }
2655
2677
  if (this.closing)
2656
2678
  return !1;
2657
- this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length && S(this.bodyHiddenChildElms, function(s) {
2658
- s.removeAttribute("aria-hidden");
2659
- }), E(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() {
2660
- if (e.activeSlide = null, e.prevActiveSlideIndex = null, e.prevActiveSlide = null, e.built = !1, e.events) {
2661
- for (var s in e.events)
2662
- e.events.hasOwnProperty(s) && e.events[s].destroy();
2663
- e.events = null;
2679
+ this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length && S(this.bodyHiddenChildElms, function(o) {
2680
+ o.removeAttribute("aria-hidden");
2681
+ }), M(this.modal, "glightbox-closing"), E(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), E(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, function() {
2682
+ if (t.activeSlide = null, t.prevActiveSlideIndex = null, t.prevActiveSlide = null, t.built = !1, t.events) {
2683
+ for (var o in t.events)
2684
+ t.events.hasOwnProperty(o) && t.events[o].destroy();
2685
+ t.events = null;
2664
2686
  }
2665
2687
  var f = document.body;
2666
- 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();
2688
+ A(jt, "glightbox-open"), A(f, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), t.modal.parentNode.removeChild(t.modal), t.trigger("close"), v(t.settings.onClose) && t.settings.onClose();
2667
2689
  var b = document.querySelector(".gcss-styles");
2668
- b && b.parentNode.removeChild(b), e.lightboxOpen = !1, e.closing = null;
2690
+ b && b.parentNode.removeChild(b), t.lightboxOpen = !1, t.closing = null;
2669
2691
  });
2670
2692
  } }, { key: "destroy", value: function() {
2671
2693
  this.close(), this.clearAllEvents(), this.baseEvents && this.baseEvents.destroy();
2672
- } }, { key: "on", value: function(e, o) {
2673
- var s = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
2674
- if (!e || !w(o))
2694
+ } }, { key: "on", value: function(t, s) {
2695
+ var o = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
2696
+ if (!t || !v(s))
2675
2697
  throw new TypeError("Event name and callback must be defined");
2676
- this.apiEvents.push({ evt: e, once: s, callback: o });
2677
- } }, { key: "once", value: function(e, o) {
2678
- this.on(e, o, !0);
2679
- } }, { key: "trigger", value: function(e) {
2680
- var o = this, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, f = [];
2698
+ this.apiEvents.push({ evt: t, once: o, callback: s });
2699
+ } }, { key: "once", value: function(t, s) {
2700
+ this.on(t, s, !0);
2701
+ } }, { key: "trigger", value: function(t) {
2702
+ var s = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, f = [];
2681
2703
  S(this.apiEvents, function(b, h) {
2682
2704
  var u = b.evt, p = b.once, k = b.callback;
2683
- u == e && (k(s), p && f.push(h));
2705
+ u == t && (k(o), p && f.push(h));
2684
2706
  }), f.length && S(f, function(b) {
2685
- return o.apiEvents.splice(b, 1);
2707
+ return s.apiEvents.splice(b, 1);
2686
2708
  });
2687
2709
  } }, { key: "clearAllEvents", value: function() {
2688
2710
  this.apiEvents.splice(0, this.apiEvents.length);
@@ -2691,17 +2713,17 @@ var ta = { exports: {} };
2691
2713
  } }]), r;
2692
2714
  }();
2693
2715
  return function() {
2694
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = new Ca(r);
2695
- return e.init(), e;
2716
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = new Ca(r);
2717
+ return t.init(), t;
2696
2718
  };
2697
2719
  });
2698
2720
  })(ta);
2699
2721
  var wc = ta.exports;
2700
2722
  const xc = /* @__PURE__ */ Jt(wc);
2701
- var kc = Object.defineProperty, Cc = Object.getOwnPropertyDescriptor, Sc = (a, t, c, i) => {
2702
- for (var n = i > 1 ? void 0 : i ? Cc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
2703
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
2704
- return i && n && kc(t, c, n), n;
2723
+ var kc = Object.defineProperty, Cc = Object.getOwnPropertyDescriptor, Sc = (a, e, c, i) => {
2724
+ for (var n = i > 1 ? void 0 : i ? Cc(e, c) : e, d = a.length - 1, l; d >= 0; d--)
2725
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
2726
+ return i && n && kc(e, c, n), n;
2705
2727
  };
2706
2728
  let vt = class extends dt {
2707
2729
  render() {
@@ -2749,10 +2771,10 @@ vt.styles = U`
2749
2771
  vt = Sc([
2750
2772
  Y("cb-thinking")
2751
2773
  ], vt);
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--)
2754
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
2755
- return i && n && _c(t, c, n), n;
2774
+ var _c = Object.defineProperty, Mc = Object.getOwnPropertyDescriptor, aa = (a, e, c, i) => {
2775
+ for (var n = i > 1 ? void 0 : i ? Mc(e, c) : e, d = a.length - 1, l; d >= 0; d--)
2776
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
2777
+ return i && n && _c(e, c, n), n;
2756
2778
  };
2757
2779
  let ct = class extends Q {
2758
2780
  constructor() {
@@ -2794,7 +2816,7 @@ aa([
2794
2816
  ct = aa([
2795
2817
  Y("cb-uploading")
2796
2818
  ], ct);
2797
- const Mc = U`
2819
+ const Tc = U`
2798
2820
  ${ge}
2799
2821
  :host {
2800
2822
  }
@@ -2815,10 +2837,10 @@ const Mc = U`
2815
2837
  margin-right: 0.2em;
2816
2838
  }
2817
2839
  `;
2818
- var Ac = Object.defineProperty, Tc = Object.getOwnPropertyDescriptor, St = (a, t, c, i) => {
2819
- for (var n = i > 1 ? void 0 : i ? Tc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
2820
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
2821
- return i && n && Ac(t, c, n), n;
2840
+ var Ec = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, St = (a, e, c, i) => {
2841
+ for (var n = i > 1 ? void 0 : i ? Ac(e, c) : e, d = a.length - 1, l; d >= 0; d--)
2842
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
2843
+ return i && n && Ec(e, c, n), n;
2822
2844
  };
2823
2845
  let Ve = class extends dt {
2824
2846
  constructor() {
@@ -2874,22 +2896,22 @@ St([
2874
2896
  Ve = St([
2875
2897
  Y("cb-external-link")
2876
2898
  ], Ve);
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) => {
2879
- for (var n = i > 1 ? void 0 : i ? Bc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
2880
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
2881
- return i && n && Hc(t, c, n), n;
2899
+ 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>', 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.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>', 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.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>';
2900
+ var Hc = Object.defineProperty, Bc = Object.getOwnPropertyDescriptor, _t = (a, e, c, i) => {
2901
+ for (var n = i > 1 ? void 0 : i ? Bc(e, c) : e, d = a.length - 1, l; d >= 0; d--)
2902
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
2903
+ return i && n && Hc(e, c, n), n;
2882
2904
  };
2883
2905
  const Bt = {
2884
2906
  pdf: Ic,
2885
2907
  txt: $c,
2886
2908
  md: Lc,
2887
- csv: jc,
2888
- ppd: Oc,
2909
+ csv: Oc,
2910
+ ppd: jc,
2889
2911
  doc: Pc,
2890
2912
  docx: zc
2891
2913
  };
2892
- let Re = class extends Q {
2914
+ let qe = class extends Q {
2893
2915
  constructor() {
2894
2916
  super(...arguments), this.filename = "", this.url = "";
2895
2917
  }
@@ -2897,8 +2919,8 @@ let Re = class extends Q {
2897
2919
  const a = "txt";
2898
2920
  if (!this.filename)
2899
2921
  return a;
2900
- const t = this.filename.split(".").pop();
2901
- return t ? t.toLowerCase() : a;
2922
+ const e = this.filename.split(".").pop();
2923
+ return e ? e.toLowerCase() : a;
2902
2924
  }
2903
2925
  render() {
2904
2926
  return m`
@@ -2919,17 +2941,17 @@ let Re = class extends Q {
2919
2941
  `;
2920
2942
  }
2921
2943
  };
2922
- Re.styles = Mc;
2944
+ qe.styles = Tc;
2923
2945
  _t([
2924
2946
  C({ type: String })
2925
- ], Re.prototype, "filename", 2);
2947
+ ], qe.prototype, "filename", 2);
2926
2948
  _t([
2927
2949
  C({ type: String })
2928
- ], Re.prototype, "url", 2);
2929
- Re = _t([
2950
+ ], qe.prototype, "url", 2);
2951
+ qe = _t([
2930
2952
  Y("cb-file")
2931
- ], Re);
2932
- const qc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/><path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/></g></svg>', Vc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M8 8a3 3 0 1 0 0-6a3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0a2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1s1-4 6-4s6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z"/></svg>', Rc = U`
2953
+ ], qe);
2954
+ const Rc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/><path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/></g></svg>', Vc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M8 8a3 3 0 1 0 0-6a3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0a2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1s1-4 6-4s6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z"/></svg>', qc = U`
2933
2955
  pre code.hljs {
2934
2956
  display: block;
2935
2957
  overflow-x: auto;
@@ -4146,7 +4168,7 @@ const qc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="curr
4146
4168
  }
4147
4169
  `, Dc = U`
4148
4170
  ${ge}
4149
- ${Rc}
4171
+ ${qc}
4150
4172
 
4151
4173
  .cb-message-row {
4152
4174
  width: 100%;
@@ -4337,20 +4359,20 @@ const qc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="curr
4337
4359
  font-size: 1em;
4338
4360
  }
4339
4361
  `;
4340
- function qt(a, t) {
4341
- return `<pre class="code-block-wrapper"><div class="code-block-header"><span class="code-block-header__lang">${t}</span><span class="code-block-header__copy">Copy</span></div><code class="hljs code-block-body ${t}">${a}</code></pre>`;
4362
+ function Rt(a, e) {
4363
+ return `<pre class="code-block-wrapper"><div class="code-block-header"><span class="code-block-header__lang">${e}</span><span class="code-block-header__copy">Copy</span></div><code class="hljs code-block-body ${e}">${a}</code></pre>`;
4342
4364
  }
4343
4365
  function Fc() {
4344
4366
  const a = new Ia({
4345
4367
  html: !0,
4346
4368
  breaks: !0,
4347
4369
  linkify: !0,
4348
- highlight(t, c) {
4370
+ highlight(e, c) {
4349
4371
  if (!!(c && pt.getLanguage(c))) {
4350
4372
  const n = c ?? "";
4351
- return qt(pt.highlight(t, { language: n }).value, n);
4373
+ return Rt(pt.highlight(e, { language: n }).value, n);
4352
4374
  }
4353
- return qt(pt.highlightAuto(t).value, "");
4375
+ return Rt(pt.highlightAuto(e).value, "");
4354
4376
  }
4355
4377
  });
4356
4378
  return a.use(La, { attrs: { target: "_blank", rel: "noopener" } }), a;
@@ -4359,10 +4381,10 @@ async function Vt(a) {
4359
4381
  const c = Fc().render(a);
4360
4382
  return m`${de(c)}`;
4361
4383
  }
4362
- var Nc = Object.defineProperty, Uc = Object.getOwnPropertyDescriptor, Fe = (a, t, c, i) => {
4363
- for (var n = i > 1 ? void 0 : i ? Uc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
4364
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
4365
- return i && n && Nc(t, c, n), n;
4384
+ var Nc = Object.defineProperty, Uc = Object.getOwnPropertyDescriptor, Fe = (a, e, c, i) => {
4385
+ for (var n = i > 1 ? void 0 : i ? Uc(e, c) : e, d = a.length - 1, l; d >= 0; d--)
4386
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
4387
+ return i && n && Nc(e, c, n), n;
4366
4388
  };
4367
4389
  let $e = class extends Q {
4368
4390
  constructor() {
@@ -4410,11 +4432,11 @@ let $e = class extends Q {
4410
4432
  return;
4411
4433
  }
4412
4434
  const a = [];
4413
- this.glightboxImages.forEach((t, c) => {
4414
- t.addEventListener("click", (i) => {
4435
+ this.glightboxImages.forEach((e, c) => {
4436
+ e.addEventListener("click", (i) => {
4415
4437
  console.log(`Image clicked >>> ${c}`), i.preventDefault(), this.lightbox.openAt(c);
4416
- }), "src" in t && a.push({
4417
- href: t.src,
4438
+ }), "src" in e && a.push({
4439
+ href: e.src,
4418
4440
  type: "image"
4419
4441
  });
4420
4442
  }), this.lightbox.setElements(a), console.log(`Added ${a.length} glightbox elements`);
@@ -4431,8 +4453,8 @@ let $e = class extends Q {
4431
4453
  this.copyBtns.forEach((a) => {
4432
4454
  a.addEventListener("click", () => {
4433
4455
  var c, i;
4434
- const t = (i = (c = a.parentElement) == null ? void 0 : c.nextElementSibling) == null ? void 0 : i.textContent;
4435
- t && Na(t).then(() => {
4456
+ const e = (i = (c = a.parentElement) == null ? void 0 : c.nextElementSibling) == null ? void 0 : i.textContent;
4457
+ e && Na(e).then(() => {
4436
4458
  a.textContent = "Success", setTimeout(() => {
4437
4459
  a.textContent = "Copy";
4438
4460
  }, 500);
@@ -4466,7 +4488,7 @@ let $e = class extends Q {
4466
4488
  return m`<div class="cb-message__buttons ${a}">
4467
4489
  <!-- delete button -->
4468
4490
  <sl-button class="cb-message__delete-button" name="trash" @click=${this._removeMessageHandler} circle variant="text" size="small">
4469
- <cb-icon svg="${qc}" style="font-size: 1em !important;"></cb-icon>
4491
+ <cb-icon svg="${Rc}" style="font-size: 1em !important;"></cb-icon>
4470
4492
  </sl-button>
4471
4493
  </div>`;
4472
4494
  }
@@ -4487,7 +4509,7 @@ let $e = class extends Q {
4487
4509
  return Vt(a.data.text);
4488
4510
  }
4489
4511
  renderMessageContent(a) {
4490
- var t;
4512
+ var e;
4491
4513
  return a.isThinking ? m`<cb-thinking></cb-thinking>` : a.isUploading ? m`<cb-uploading .files="${a.data.files || []}"></cb-uploading>` : a.type === "text" ? m`<div class="cb-message-text">
4492
4514
  ${fe(
4493
4515
  a.data.userName,
@@ -4503,17 +4525,17 @@ let $e = class extends Q {
4503
4525
  (c) => m`<cb-file filename="${c.name}" url="${c.url}"></cb-file>`
4504
4526
  )}` : m`<div class="cb-message-text">
4505
4527
  ${Ht(
4506
- Vt(((t = a.data.text) == null ? void 0 : t.toString()) || "").then((c) => m`${c}`)
4528
+ Vt(((e = a.data.text) == null ? void 0 : e.toString()) || "").then((c) => m`${c}`)
4507
4529
  )}
4508
4530
  </div>`;
4509
4531
  }
4510
4532
  renderBotMessageAvatar(a) {
4511
- var t;
4533
+ var e;
4512
4534
  if (a.data.userName && a.data.userName !== "") {
4513
- const c = ((t = a.data) == null ? void 0 : t.userAvatar) || "";
4514
- return c !== "" ? m` <img src="${c}" style="width: 24px;height: 24px;" /> ` : Be`${de(x.setting.agentIconSvg)}`;
4535
+ const c = ((e = a.data) == null ? void 0 : e.userAvatar) || "";
4536
+ return c !== "" ? m` <img src="${c}" style="width: 24px;height: 24px;" /> ` : Be`${de(w.setting.agentIconSvg)}`;
4515
4537
  }
4516
- return a.author === "system" ? Be`${de(x.setting.systemIconSvg)}` : Be`${de(x.setting.botIconSvg)}`;
4538
+ return a.author === "system" ? Be`${de(w.setting.systemIconSvg)}` : Be`${de(w.setting.botIconSvg)}`;
4517
4539
  }
4518
4540
  renderBotMessage(a) {
4519
4541
  return m`
@@ -4529,7 +4551,7 @@ let $e = class extends Q {
4529
4551
  <!--<sl-avatar class="avatar user-avatar small" label="User">
4530
4552
  <cb-icon slot="icon" svg="${Vc}" color="white"></cb-icon>
4531
4553
  </sl-avatar>-->
4532
- <div class="avatar user-avatar">${de(x.setting.userIconSvg)}</div>
4554
+ <div class="avatar user-avatar">${de(w.setting.userIconSvg)}</div>
4533
4555
  ${this.renderMessage(a)}
4534
4556
  </div>
4535
4557
  `;
@@ -4551,10 +4573,10 @@ Fe([
4551
4573
  $e = Fe([
4552
4574
  Y("cb-message")
4553
4575
  ], $e);
4554
- var Wc = Object.defineProperty, Yc = Object.getOwnPropertyDescriptor, ye = (a, t, c, i) => {
4555
- for (var n = i > 1 ? void 0 : i ? Yc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
4556
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
4557
- return i && n && Wc(t, c, n), n;
4576
+ var Wc = Object.defineProperty, Yc = Object.getOwnPropertyDescriptor, ye = (a, e, c, i) => {
4577
+ for (var n = i > 1 ? void 0 : i ? Yc(e, c) : e, d = a.length - 1, l; d >= 0; d--)
4578
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
4579
+ return i && n && Wc(e, c, n), n;
4558
4580
  };
4559
4581
  const me = ft.noConflict();
4560
4582
  me.setLevel("info");
@@ -4587,12 +4609,12 @@ let le = class extends Q {
4587
4609
  <div class="cb-input-form-title">${this.form.title}</div>
4588
4610
  ${He(
4589
4611
  this.form.fields,
4590
- (a, t) => t,
4612
+ (a, e) => e,
4591
4613
  (a) => {
4592
- const t = (a == null ? void 0 : a.required) || !1, c = x.getPrefilledFormFieldValue(a.name);
4614
+ const e = (a == null ? void 0 : a.required) || !1, c = w.getPrefilledFormFieldValue(a.name);
4593
4615
  switch (a.type) {
4594
4616
  case "string":
4595
- return m`<sl-input value="${c}" class="cb-input-form-input" id="${"cb-form-field" + a.name}" name="${a.name}" label="${a.title}" ?required="${t}"></sl-input>`;
4617
+ return m`<sl-input value="${c}" class="cb-input-form-input" id="${"cb-form-field" + a.name}" name="${a.name}" label="${a.title}" ?required="${e}"></sl-input>`;
4596
4618
  case "email":
4597
4619
  return m`<sl-input
4598
4620
  value="${c}"
@@ -4601,7 +4623,7 @@ let le = class extends Q {
4601
4623
  name="${a.name}"
4602
4624
  type="email"
4603
4625
  label="${a.title}"
4604
- ?required="${t}"
4626
+ ?required="${e}"
4605
4627
  ></sl-input>`;
4606
4628
  case "phone":
4607
4629
  return m`<sl-input
@@ -4611,11 +4633,11 @@ let le = class extends Q {
4611
4633
  name="${a.name}"
4612
4634
  type="tel"
4613
4635
  label="${a.title}"
4614
- ?required="${t}"
4636
+ ?required="${e}"
4615
4637
  ></sl-input>`;
4616
4638
  case "select": {
4617
4639
  const i = Array.isArray(a.options) ? a.options : a.options.split(",").map((d) => d.trim()), n = c || i[0];
4618
- return m`<sl-select value="${n}" class="cb-input-form-input" id="${"cb-form-field" + a.name}" name="${a.name}" label="${a.title}" ?required="${t}">
4640
+ return m`<sl-select value="${n}" class="cb-input-form-input" id="${"cb-form-field" + a.name}" name="${a.name}" label="${a.title}" ?required="${e}">
4619
4641
  ${He(
4620
4642
  i,
4621
4643
  (d, l) => l,
@@ -4631,22 +4653,22 @@ let le = class extends Q {
4631
4653
  }
4632
4654
  handleFormSubmit(a) {
4633
4655
  a.preventDefault();
4634
- const t = {};
4656
+ const e = {};
4635
4657
  if (Array.isArray(this.form.fields))
4636
4658
  for (let c = 0; c < this.form.fields.length; c++) {
4637
4659
  const i = this.form.fields[c], n = "#cb-form-field" + i.name, d = this._inputForm.querySelector(n);
4638
4660
  if (d)
4639
4661
  if ("validity" in d && d.validity.valid)
4640
- console.log(`Got Field: ${i.name} value: ${d.value}`, d.validity), t[i.name] = d.value;
4662
+ console.log(`Got Field: ${i.name} value: ${d.value}`, d.validity), e[i.name] = d.value;
4641
4663
  else {
4642
4664
  console.error(`Field is invalid: ${i.name} value: ${d.value}`, d.validity);
4643
4665
  return;
4644
4666
  }
4645
4667
  }
4646
- x.submitForm(t).then(() => {
4647
- me.info("Form submitted", t), this.emit("form:submit", {
4668
+ w.submitForm(e).then(() => {
4669
+ me.info("Form submitted", e), this.emit("form:submit", {
4648
4670
  detail: {
4649
- formData: t
4671
+ formData: e
4650
4672
  }
4651
4673
  });
4652
4674
  }).catch((c) => {
@@ -4692,8 +4714,8 @@ let le = class extends Q {
4692
4714
  handleCalendlyEvent(a) {
4693
4715
  switch (me.info("Got Calendly Event:", a.data), a.data.event) {
4694
4716
  case "calendly.event_scheduled": {
4695
- const t = this.activeCalendlyAction;
4696
- t >= 0 && (x.removeAction(t, !0, a.data), x.addSystemMessage("Your meeting has been scheduled!"), this.activeCalendlyAction = -1);
4717
+ const e = this.activeCalendlyAction;
4718
+ e >= 0 && (w.removeAction(e, !0, a.data), w.addSystemMessage("Your meeting has been scheduled!"), this.activeCalendlyAction = -1);
4697
4719
  }
4698
4720
  }
4699
4721
  }
@@ -4705,8 +4727,8 @@ let le = class extends Q {
4705
4727
  }
4706
4728
  renderCalendlyAction(a) {
4707
4729
  if (!("Calendly" in window) && !this.calendlyInjected) {
4708
- let t = document.createElement("link");
4709
- t.href = "https://assets.calendly.com/assets/external/widget.css", t.rel = "stylesheet", document.body.appendChild(t);
4730
+ let e = document.createElement("link");
4731
+ e.href = "https://assets.calendly.com/assets/external/widget.css", e.rel = "stylesheet", document.body.appendChild(e);
4710
4732
  let c = document.createElement("script");
4711
4733
  c.type = "text/javascript", c.src = "https://assets.calendly.com/assets/external/widget.js", document.body.appendChild(c);
4712
4734
  let i = document.createElement("style");
@@ -4746,7 +4768,7 @@ let le = class extends Q {
4746
4768
  }
4747
4769
  invokeHubspotMeetingAction(a = {}) {
4748
4770
  var c, i;
4749
- const t = Date.now();
4771
+ const e = Date.now();
4750
4772
  if (this.activeHubspotMeetingAction !== -1) {
4751
4773
  me.info(`invokeHubspotMeetingAction: action ${this.activeHubspotMeetingAction} is already active - ignored`);
4752
4774
  return;
@@ -4755,8 +4777,8 @@ let le = class extends Q {
4755
4777
  const n = document.getElementById("enegelai-bot-hubspot-meeting-container"), d = document.querySelector(".enegelai-bot-hubspot-meeting-widget");
4756
4778
  if (n && d) {
4757
4779
  const l = a.url + "?embed=true";
4758
- d.setAttribute("data-src", l), this.activeHubspotMeetingAction = a.internalId, n.style.display = "block", window.hbspt.meetings.create(".enegelai-bot-hubspot-meeting-widget"), x.updateAction(a, {
4759
- triggered: t
4780
+ d.setAttribute("data-src", l), this.activeHubspotMeetingAction = a.internalId, n.style.display = "block", window.hbspt.meetings.create(".enegelai-bot-hubspot-meeting-widget"), w.updateAction(a, {
4781
+ triggered: e
4760
4782
  });
4761
4783
  }
4762
4784
  }
@@ -4768,7 +4790,7 @@ let le = class extends Q {
4768
4790
  return;
4769
4791
  const c = this.activeHubspotMeetingAction;
4770
4792
  if (c >= 0) {
4771
- x.removeAction(c, !0, a.data), x.addSystemMessage("Your meeting has been scheduled!"), this.activeHubspotMeetingAction = -1;
4793
+ w.removeAction(c, !0, a.data), w.addSystemMessage("Your meeting has been scheduled!"), this.activeHubspotMeetingAction = -1;
4772
4794
  const n = document.getElementById("enegelai-bot-hubspot-meeting-container");
4773
4795
  n && (n.style.display = "none");
4774
4796
  }
@@ -4780,8 +4802,8 @@ let le = class extends Q {
4780
4802
  }
4781
4803
  renderHubspotMeetingAction(a) {
4782
4804
  if (!this.hubspotMeetingInjected) {
4783
- const t = document.createElement("script");
4784
- t.src = "https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js", document.getElementsByTagName("head")[0].appendChild(t);
4805
+ const e = document.createElement("script");
4806
+ e.src = "https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js", document.getElementsByTagName("head")[0].appendChild(e);
4785
4807
  let c = document.createElement("div");
4786
4808
  c.innerHTML = `<div id="enegelai-bot-hubspot-meeting-container" style="display:none;position:fixed;top:0;left:0;z-index:10100;width: 100%;height: 100vh;background-color: rgba(0,0,0,0.6)">
4787
4809
  <div style="display:flex;align-items: center;justify-content:end;max-width: 850px; margin: 10px auto 0 auto;">
@@ -4888,10 +4910,10 @@ const Xc = U`
4888
4910
  padding: 0 5px;
4889
4911
  }
4890
4912
  `, Zc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576zm6.787-8.201L1.591 6.602l4.339 2.76l7.494-7.493Z"/></svg>', Gc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M4.5 3a2.5 2.5 0 0 1 5 0v9a1.5 1.5 0 0 1-3 0V5a.5.5 0 0 1 1 0v7a.5.5 0 0 0 1 0V3a1.5 1.5 0 1 0-3 0v9a2.5 2.5 0 0 0 5 0V5a.5.5 0 0 1 1 0v7a3.5 3.5 0 1 1-7 0z"/></svg>';
4891
- var Jc = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, ve = (a, t, c, i) => {
4892
- for (var n = i > 1 ? void 0 : i ? Kc(t, c) : t, d = a.length - 1, l; d >= 0; d--)
4893
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
4894
- return i && n && Jc(t, c, n), n;
4913
+ var Jc = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, ve = (a, e, c, i) => {
4914
+ for (var n = i > 1 ? void 0 : i ? Kc(e, c) : e, d = a.length - 1, l; d >= 0; d--)
4915
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
4916
+ return i && n && Jc(e, c, n), n;
4895
4917
  };
4896
4918
  let be = class extends Q {
4897
4919
  constructor() {
@@ -4901,9 +4923,9 @@ let be = class extends Q {
4901
4923
  super.connectedCallback(), addEventListener("form:submit", this._formSubmitHandler.bind(this)), addEventListener("c7o:bot:input:setvalue", this._inputSetValueHandler.bind(this));
4902
4924
  }
4903
4925
  async _inputSetValueHandler(a) {
4904
- var c;
4905
- const t = a;
4906
- this.value = ((c = t == null ? void 0 : t.detail) == null ? void 0 : c.inputValue) || "";
4926
+ var i, n;
4927
+ const e = a, c = typeof ((i = e == null ? void 0 : e.detail) == null ? void 0 : i.inputValue) == "string" && ((n = e == null ? void 0 : e.detail) == null ? void 0 : n.inputValue) || "";
4928
+ this.value = c;
4907
4929
  }
4908
4930
  async _formSubmitHandler(a) {
4909
4931
  requestIdleCallback(() => {
@@ -4911,8 +4933,8 @@ let be = class extends Q {
4911
4933
  });
4912
4934
  }
4913
4935
  _inputChangeHandler(a) {
4914
- const t = a.target;
4915
- this.value = t.value;
4936
+ const e = a.target;
4937
+ this.value = e.value;
4916
4938
  }
4917
4939
  _sendHandler() {
4918
4940
  this.emit("message:send", {
@@ -5039,10 +5061,10 @@ const Qc = U`
5039
5061
  gap: 8px;
5040
5062
  }
5041
5063
  `;
5042
- var ei = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, lt = (a, t, c, i) => {
5043
- for (var n = i > 1 ? void 0 : i ? ti(t, c) : t, d = a.length - 1, l; d >= 0; d--)
5044
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
5045
- return i && n && ei(t, c, n), n;
5064
+ var ei = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, lt = (a, e, c, i) => {
5065
+ for (var n = i > 1 ? void 0 : i ? ti(e, c) : e, d = a.length - 1, l; d >= 0; d--)
5066
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
5067
+ return i && n && ei(e, c, n), n;
5046
5068
  };
5047
5069
  let Pe = class extends Q {
5048
5070
  constructor() {
@@ -5101,10 +5123,10 @@ lt([
5101
5123
  Pe = lt([
5102
5124
  Y("cb-dialog")
5103
5125
  ], Pe);
5104
- var ai = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, ca = (a, t, c, i) => {
5105
- for (var n = i > 1 ? void 0 : i ? ci(t, c) : t, d = a.length - 1, l; d >= 0; d--)
5106
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
5107
- return i && n && ai(t, c, n), n;
5126
+ var ai = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, ca = (a, e, c, i) => {
5127
+ for (var n = i > 1 ? void 0 : i ? ci(e, c) : e, d = a.length - 1, l; d >= 0; d--)
5128
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
5129
+ return i && n && ai(e, c, n), n;
5108
5130
  };
5109
5131
  let it = class extends Q {
5110
5132
  constructor() {
@@ -5214,10 +5236,10 @@ const ii = U`
5214
5236
  grid-column-start: 2;
5215
5237
  }
5216
5238
  `;
5217
- var ni = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, ze = (a, t, c, i) => {
5218
- for (var n = i > 1 ? void 0 : i ? oi(t, c) : t, d = a.length - 1, l; d >= 0; d--)
5219
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
5220
- return i && n && ni(t, c, n), n;
5239
+ var ni = Object.defineProperty, si = Object.getOwnPropertyDescriptor, ze = (a, e, c, i) => {
5240
+ for (var n = i > 1 ? void 0 : i ? si(e, c) : e, d = a.length - 1, l; d >= 0; d--)
5241
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
5242
+ return i && n && ni(e, c, n), n;
5221
5243
  };
5222
5244
  let Ce = class extends Q {
5223
5245
  constructor() {
@@ -5312,12 +5334,12 @@ let Ce = class extends Q {
5312
5334
  }
5313
5335
  // input change handler
5314
5336
  _inputChangeHandler(a) {
5315
- const { name: t, value: c } = a.target, [i, n] = t.split(".");
5337
+ const { name: e, value: c } = a.target, [i, n] = e.split(".");
5316
5338
  n ? this.setting[i][n] = c : this.setting[i] = c;
5317
5339
  }
5318
5340
  // checked change handler
5319
5341
  _checkChangeHandler(a) {
5320
- const { name: t, checked: c } = a.target, [i, n] = t.split(".");
5342
+ const { name: e, checked: c } = a.target, [i, n] = e.split(".");
5321
5343
  n ? this.setting[i][n] = c : this.setting[i] = c, i === "customRequest" && (this.customRequest = c);
5322
5344
  }
5323
5345
  // emit setting confirm event
@@ -5333,8 +5355,8 @@ let Ce = class extends Q {
5333
5355
  this.emit("setting:hide");
5334
5356
  }
5335
5357
  updated(a) {
5336
- var t;
5337
- super.updated(a), (t = this.dialog) == null || t.addEventListener("sl-request-close", (c) => {
5358
+ var e;
5359
+ super.updated(a), (e = this.dialog) == null || e.addEventListener("sl-request-close", (c) => {
5338
5360
  c.detail.source === "overlay" && c.preventDefault();
5339
5361
  });
5340
5362
  }
@@ -5358,7 +5380,7 @@ ze([
5358
5380
  Ce = ze([
5359
5381
  Y("cb-setting")
5360
5382
  ], Ce);
5361
- const si = U`
5383
+ const oi = U`
5362
5384
  ${ge}
5363
5385
  :host {
5364
5386
  --primary-color: var(--sl-color-primary-600);
@@ -5457,14 +5479,14 @@ const si = U`
5457
5479
  gap: 10px;
5458
5480
  }
5459
5481
  `, ri = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M16 8c0 3.866-3.582 7-8 7a9.06 9.06 0 0 1-2.347-.306c-.584.296-1.925.864-4.181 1.234c-.2.032-.352-.176-.273-.362c.354-.836.674-1.95.77-2.966C.744 11.37 0 9.76 0 8c0-3.866 3.582-7 8-7s8 3.134 8 7M5 8a1 1 0 1 0-2 0a1 1 0 0 0 2 0m4 0a1 1 0 1 0-2 0a1 1 0 0 0 2 0m3 1a1 1 0 1 0 0-2a1 1 0 0 0 0 2"/></svg>';
5460
- var di = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, ia = (a, t, c, i) => {
5461
- for (var n = i > 1 ? void 0 : i ? fi(t, c) : t, d = a.length - 1, l; d >= 0; d--)
5462
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
5463
- return i && n && di(t, c, n), n;
5482
+ var di = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, ia = (a, e, c, i) => {
5483
+ for (var n = i > 1 ? void 0 : i ? fi(e, c) : e, d = a.length - 1, l; d >= 0; d--)
5484
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
5485
+ return i && n && di(e, c, n), n;
5464
5486
  };
5465
5487
  let nt = class extends Q {
5466
5488
  constructor() {
5467
- super(...arguments), this.store = new Xt(this, x), this.open = !1;
5489
+ super(...arguments), this.store = new Xt(this, w), this.open = !1;
5468
5490
  }
5469
5491
  // handler click
5470
5492
  _clickHandler() {
@@ -5476,7 +5498,7 @@ let nt = class extends Q {
5476
5498
  }), this.open = a;
5477
5499
  }
5478
5500
  _engageClickHandler(a) {
5479
- console.log("engage close clicked!"), x.suppressEngagePopup(), a.stopPropagation();
5501
+ console.log("engage close clicked!"), w.suppressEngagePopup(), a.stopPropagation();
5480
5502
  }
5481
5503
  /*
5482
5504
  ${when(
@@ -5487,9 +5509,9 @@ let nt = class extends Q {
5487
5509
  */
5488
5510
  getPopupPlacement() {
5489
5511
  let a = "top-end";
5490
- const t = document.querySelector("enegelai-bot");
5491
- if (t) {
5492
- let i = getComputedStyle(t).getPropertyValue("--enegelai-bot-anchor-popup-position").trim();
5512
+ const e = document.querySelector("enegelai-bot");
5513
+ if (e) {
5514
+ let i = getComputedStyle(e).getPropertyValue("--enegelai-bot-anchor-popup-position").trim();
5493
5515
  i && i != "" && (a = i);
5494
5516
  }
5495
5517
  return a;
@@ -5497,7 +5519,7 @@ let nt = class extends Q {
5497
5519
  render() {
5498
5520
  return m`
5499
5521
  <div class="cb-anchor ${this.open ? "open" : ""}" part="anchor" @click=${this._clickHandler.bind(this)}>
5500
- <sl-popup placement="${this.getPopupPlacement()}" distance="16" ?active="${x.engage && !x.open}">
5522
+ <sl-popup placement="${this.getPopupPlacement()}" distance="16" ?active="${w.engage && !w.open}">
5501
5523
  <sl-button slot="anchor" label="Start" size="large" variant="primary" class="icon anchor-button" circle>
5502
5524
  ${fe(
5503
5525
  this.open,
@@ -5509,12 +5531,12 @@ let nt = class extends Q {
5509
5531
  <div class="cb-engage-popup-close" @click=${this._engageClickHandler.bind(this)}>${Be`${de(tt)}`}</div>
5510
5532
  <div class="cb-engage-popup-content">
5511
5533
  ${fe(
5512
- x.setting.logoUrl !== "",
5513
- () => m`<img class="cb-engage-popup-img" src="${x.setting.logoUrl}" />`,
5514
- () => m`<div class="cb-engage-popup-logo">${Be`${de(x.setting.logoSvg)}`}</div>`
5534
+ w.setting.logoUrl !== "",
5535
+ () => m`<img class="cb-engage-popup-img" src="${w.setting.logoUrl}" />`,
5536
+ () => m`<div class="cb-engage-popup-logo">${Be`${de(w.setting.logoSvg)}`}</div>`
5515
5537
  )}
5516
- <!--<cb-icon class="cb-engage-popup-logo" svg="${x.setting.logoSvg}"></cb-icon>-->
5517
- <div>${x.setting.engageMessage}</div>
5538
+ <!--<cb-icon class="cb-engage-popup-logo" svg="${w.setting.logoSvg}"></cb-icon>-->
5539
+ <div>${w.setting.engageMessage}</div>
5518
5540
  </div>
5519
5541
  </div>
5520
5542
  </sl-popup>
@@ -5522,7 +5544,7 @@ let nt = class extends Q {
5522
5544
  `;
5523
5545
  }
5524
5546
  };
5525
- nt.styles = si;
5547
+ nt.styles = oi;
5526
5548
  ia([
5527
5549
  C({ type: Boolean })
5528
5550
  ], nt.prototype, "open", 2);
@@ -5531,20 +5553,20 @@ nt = ia([
5531
5553
  ], nt);
5532
5554
  const li = U`
5533
5555
  ${ge}
5534
- `, Rt = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M4.54.146A.5.5 0 0 1 4.893 0h6.214a.5.5 0 0 1 .353.146l4.394 4.394a.5.5 0 0 1 .146.353v6.214a.5.5 0 0 1-.146.353l-4.394 4.394a.5.5 0 0 1-.353.146H4.893a.5.5 0 0 1-.353-.146L.146 11.46A.5.5 0 0 1 0 11.107V4.893a.5.5 0 0 1 .146-.353L4.54.146zM5.1 1L1 5.1v5.8L5.1 15h5.8l4.1-4.1V5.1L10.9 1z"/><path d="M7.002 11a1 1 0 1 1 2 0a1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"/></g></svg>', bi = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016a.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06a.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017a.163.163 0 0 1-.054-.06a.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"/><path d="M7.002 12a1 1 0 1 1 2 0a1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"/></g></svg>', hi = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M2.5 8a5.5 5.5 0 0 1 8.25-4.764a.5.5 0 0 0 .5-.866A6.5 6.5 0 1 0 14.5 8a.5.5 0 0 0-1 0a5.5 5.5 0 1 1-11 0"/><path d="M15.354 3.354a.5.5 0 0 0-.708-.708L8 9.293L5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l7-7z"/></g></svg>', ui = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="m8.93 6.588l-2.29.287l-.082.38l.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319c.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246c-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0"/></g></svg>';
5535
- var pi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, na = (a, t, c, i) => {
5536
- for (var n = i > 1 ? void 0 : i ? gi(t, c) : t, d = a.length - 1, l; d >= 0; d--)
5537
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
5538
- return i && n && pi(t, c, n), n;
5556
+ `, qt = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M4.54.146A.5.5 0 0 1 4.893 0h6.214a.5.5 0 0 1 .353.146l4.394 4.394a.5.5 0 0 1 .146.353v6.214a.5.5 0 0 1-.146.353l-4.394 4.394a.5.5 0 0 1-.353.146H4.893a.5.5 0 0 1-.353-.146L.146 11.46A.5.5 0 0 1 0 11.107V4.893a.5.5 0 0 1 .146-.353L4.54.146zM5.1 1L1 5.1v5.8L5.1 15h5.8l4.1-4.1V5.1L10.9 1z"/><path d="M7.002 11a1 1 0 1 1 2 0a1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"/></g></svg>', bi = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016a.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06a.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017a.163.163 0 0 1-.054-.06a.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"/><path d="M7.002 12a1 1 0 1 1 2 0a1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"/></g></svg>', hi = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M2.5 8a5.5 5.5 0 0 1 8.25-4.764a.5.5 0 0 0 .5-.866A6.5 6.5 0 1 0 14.5 8a.5.5 0 0 0-1 0a5.5 5.5 0 1 1-11 0"/><path d="M15.354 3.354a.5.5 0 0 0-.708-.708L8 9.293L5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l7-7z"/></g></svg>', ui = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="m8.93 6.588l-2.29.287l-.082.38l.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319c.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246c-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0"/></g></svg>';
5557
+ var pi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, na = (a, e, c, i) => {
5558
+ for (var n = i > 1 ? void 0 : i ? gi(e, c) : e, d = a.length - 1, l; d >= 0; d--)
5559
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
5560
+ return i && n && pi(e, c, n), n;
5539
5561
  };
5540
5562
  const Dt = {
5541
5563
  error: {
5542
5564
  variant: "danger",
5543
- icon: Rt
5565
+ icon: qt
5544
5566
  },
5545
5567
  danger: {
5546
5568
  variant: "danger",
5547
- icon: Rt
5569
+ icon: qt
5548
5570
  },
5549
5571
  warning: {
5550
5572
  variant: "warning",
@@ -5559,26 +5581,26 @@ const Dt = {
5559
5581
  icon: ui
5560
5582
  }
5561
5583
  };
5562
- let ot = class extends Q {
5584
+ let st = class extends Q {
5563
5585
  constructor() {
5564
5586
  super(...arguments), this.status = "info";
5565
5587
  }
5566
5588
  render() {
5567
- const { variant: a, icon: t } = Dt[this.status] || Dt.info;
5568
- return m`<cb-icon svg=${t} color="${a}"></cb-icon>`;
5589
+ const { variant: a, icon: e } = Dt[this.status] || Dt.info;
5590
+ return m`<cb-icon svg=${e} color="${a}"></cb-icon>`;
5569
5591
  }
5570
5592
  };
5571
- ot.styles = Qt;
5593
+ st.styles = Qt;
5572
5594
  na([
5573
5595
  C({ type: String })
5574
- ], ot.prototype, "status", 2);
5575
- ot = na([
5596
+ ], st.prototype, "status", 2);
5597
+ st = na([
5576
5598
  Y("cb-status-icon")
5577
- ], ot);
5578
- var mi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, vi = (a, t, c, i) => {
5579
- for (var n = i > 1 ? void 0 : i ? yi(t, c) : t, d = a.length - 1, l; d >= 0; d--)
5580
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
5581
- return i && n && mi(t, c, n), n;
5599
+ ], st);
5600
+ var mi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, vi = (a, e, c, i) => {
5601
+ for (var n = i > 1 ? void 0 : i ? yi(e, c) : e, d = a.length - 1, l; d >= 0; d--)
5602
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
5603
+ return i && n && mi(e, c, n), n;
5582
5604
  };
5583
5605
  let wt = class extends Q {
5584
5606
  render() {
@@ -5601,9 +5623,9 @@ wt = vi([
5601
5623
  Y("cb-auth-alert")
5602
5624
  ], wt);
5603
5625
  class Ft extends Error {
5604
- constructor(t, c, i) {
5605
- const n = t.status || t.status === 0 ? t.status : "", d = t.statusText || "", l = `${n} ${d}`.trim(), v = l ? `status code ${l}` : "an unknown error";
5606
- super(`Request failed with ${v}`), Object.defineProperty(this, "response", {
5626
+ constructor(e, c, i) {
5627
+ const n = e.status || e.status === 0 ? e.status : "", d = e.statusText || "", l = `${n} ${d}`.trim(), x = l ? `status code ${l}` : "an unknown error";
5628
+ super(`Request failed with ${x}`), Object.defineProperty(this, "response", {
5607
5629
  enumerable: !0,
5608
5630
  configurable: !0,
5609
5631
  writable: !0,
@@ -5618,65 +5640,65 @@ class Ft extends Error {
5618
5640
  configurable: !0,
5619
5641
  writable: !0,
5620
5642
  value: void 0
5621
- }), this.name = "HTTPError", this.response = t, this.request = c, this.options = i;
5643
+ }), this.name = "HTTPError", this.response = e, this.request = c, this.options = i;
5622
5644
  }
5623
5645
  }
5624
- class oa extends Error {
5625
- constructor(t) {
5646
+ class sa extends Error {
5647
+ constructor(e) {
5626
5648
  super("Request timed out"), Object.defineProperty(this, "request", {
5627
5649
  enumerable: !0,
5628
5650
  configurable: !0,
5629
5651
  writable: !0,
5630
5652
  value: void 0
5631
- }), this.name = "TimeoutError", this.request = t;
5653
+ }), this.name = "TimeoutError", this.request = e;
5632
5654
  }
5633
5655
  }
5634
5656
  const Qe = (a) => a !== null && typeof a == "object", Je = (...a) => {
5635
- for (const t of a)
5636
- if ((!Qe(t) || Array.isArray(t)) && typeof t < "u")
5657
+ for (const e of a)
5658
+ if ((!Qe(e) || Array.isArray(e)) && typeof e < "u")
5637
5659
  throw new TypeError("The `options` argument must be an object");
5638
- return Et({}, ...a);
5639
- }, sa = (a = {}, t = {}) => {
5640
- const c = new globalThis.Headers(a), i = t instanceof globalThis.Headers, n = new globalThis.Headers(t);
5660
+ return Mt({}, ...a);
5661
+ }, oa = (a = {}, e = {}) => {
5662
+ const c = new globalThis.Headers(a), i = e instanceof globalThis.Headers, n = new globalThis.Headers(e);
5641
5663
  for (const [d, l] of n.entries())
5642
5664
  i && l === "undefined" || l === void 0 ? c.delete(d) : c.set(d, l);
5643
5665
  return c;
5644
- }, Et = (...a) => {
5645
- let t = {}, c = {};
5666
+ }, Mt = (...a) => {
5667
+ let e = {}, c = {};
5646
5668
  for (const i of a)
5647
5669
  if (Array.isArray(i))
5648
- Array.isArray(t) || (t = []), t = [...t, ...i];
5670
+ Array.isArray(e) || (e = []), e = [...e, ...i];
5649
5671
  else if (Qe(i)) {
5650
5672
  for (let [n, d] of Object.entries(i))
5651
- Qe(d) && n in t && (d = Et(t[n], d)), t = { ...t, [n]: d };
5652
- Qe(i.headers) && (c = sa(c, i.headers), t.headers = c);
5673
+ Qe(d) && n in e && (d = Mt(e[n], d)), e = { ...e, [n]: d };
5674
+ Qe(i.headers) && (c = oa(c, i.headers), e.headers = c);
5653
5675
  }
5654
- return t;
5676
+ return e;
5655
5677
  }, wi = (() => {
5656
- let a = !1, t = !1;
5678
+ let a = !1, e = !1;
5657
5679
  const c = typeof globalThis.ReadableStream == "function", i = typeof globalThis.Request == "function";
5658
- return c && i && (t = new globalThis.Request("https://a.com", {
5680
+ return c && i && (e = new globalThis.Request("https://a.com", {
5659
5681
  body: new globalThis.ReadableStream(),
5660
5682
  method: "POST",
5661
5683
  // @ts-expect-error - Types are outdated.
5662
5684
  get duplex() {
5663
5685
  return a = !0, "half";
5664
5686
  }
5665
- }).headers.has("Content-Type")), a && !t;
5687
+ }).headers.has("Content-Type")), a && !e;
5666
5688
  })(), xi = typeof globalThis.AbortController == "function", ki = typeof globalThis.ReadableStream == "function", Ci = typeof globalThis.FormData == "function", ra = ["get", "post", "put", "patch", "head", "delete"], Si = {
5667
5689
  json: "application/json",
5668
5690
  text: "text/*",
5669
5691
  formData: "multipart/form-data",
5670
5692
  arrayBuffer: "*/*",
5671
5693
  blob: "*/*"
5672
- }, 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 = {
5694
+ }, mt = 2147483647, da = Symbol("stop"), _i = (a) => ra.includes(a) ? a.toUpperCase() : a, Mi = ["get", "put", "head", "delete", "options", "trace"], Ti = [408, 413, 429, 500, 502, 503, 504], fa = [413, 429, 503], Nt = {
5673
5695
  limit: 2,
5674
- methods: Ei,
5675
- statusCodes: Mi,
5696
+ methods: Mi,
5697
+ statusCodes: Ti,
5676
5698
  afterStatusCodes: fa,
5677
5699
  maxRetryAfter: Number.POSITIVE_INFINITY,
5678
5700
  backoffLimit: Number.POSITIVE_INFINITY
5679
- }, Ai = (a = {}) => {
5701
+ }, Ei = (a = {}) => {
5680
5702
  if (typeof a == "number")
5681
5703
  return {
5682
5704
  ...Nt,
@@ -5692,10 +5714,10 @@ const Qe = (a) => a !== null && typeof a == "object", Je = (...a) => {
5692
5714
  afterStatusCodes: fa
5693
5715
  };
5694
5716
  };
5695
- async function Ti(a, t, c) {
5717
+ async function Ai(a, e, c) {
5696
5718
  return new Promise((i, n) => {
5697
5719
  const d = setTimeout(() => {
5698
- t && t.abort(), n(new oa(a));
5720
+ e && e.abort(), n(new sa(a));
5699
5721
  }, c.timeout);
5700
5722
  c.fetch(a).then(i).catch(n).then(() => {
5701
5723
  clearTimeout(d);
@@ -5706,40 +5728,40 @@ const $i = !!globalThis.DOMException;
5706
5728
  function Ut(a) {
5707
5729
  if ($i)
5708
5730
  return new DOMException((a == null ? void 0 : a.reason) ?? "The operation was aborted.", "AbortError");
5709
- const t = new Error((a == null ? void 0 : a.reason) ?? "The operation was aborted.");
5710
- return t.name = "AbortError", t;
5731
+ const e = new Error((a == null ? void 0 : a.reason) ?? "The operation was aborted.");
5732
+ return e.name = "AbortError", e;
5711
5733
  }
5712
- async function Ii(a, { signal: t }) {
5734
+ async function Ii(a, { signal: e }) {
5713
5735
  return new Promise((c, i) => {
5714
- if (t) {
5715
- if (t.aborted) {
5716
- i(Ut(t));
5736
+ if (e) {
5737
+ if (e.aborted) {
5738
+ i(Ut(e));
5717
5739
  return;
5718
5740
  }
5719
- t.addEventListener("abort", n, { once: !0 });
5741
+ e.addEventListener("abort", n, { once: !0 });
5720
5742
  }
5721
5743
  function n() {
5722
- i(Ut(t)), clearTimeout(d);
5744
+ i(Ut(e)), clearTimeout(d);
5723
5745
  }
5724
5746
  const d = setTimeout(() => {
5725
- t == null || t.removeEventListener("abort", n), c();
5747
+ e == null || e.removeEventListener("abort", n), c();
5726
5748
  }, a);
5727
5749
  });
5728
5750
  }
5729
- class st {
5751
+ class ot {
5730
5752
  // eslint-disable-next-line @typescript-eslint/promise-function-async
5731
- static create(t, c) {
5732
- const i = new st(t, c), n = async () => {
5753
+ static create(e, c) {
5754
+ const i = new ot(e, c), n = async () => {
5733
5755
  if (i._options.timeout > mt)
5734
5756
  throw new RangeError(`The \`timeout\` option cannot be greater than ${mt}`);
5735
5757
  await Promise.resolve();
5736
- let v = await i._fetch();
5758
+ let x = await i._fetch();
5737
5759
  for (const S of i._options.hooks.afterResponse) {
5738
- const D = await S(i.request, i._options, i._decorateResponse(v.clone()));
5739
- D instanceof globalThis.Response && (v = D);
5760
+ const D = await S(i.request, i._options, i._decorateResponse(x.clone()));
5761
+ D instanceof globalThis.Response && (x = D);
5740
5762
  }
5741
- if (i._decorateResponse(v), !v.ok && i._options.throwHttpErrors) {
5742
- let S = new Ft(v, i.request, i._options);
5763
+ if (i._decorateResponse(x), !x.ok && i._options.throwHttpErrors) {
5764
+ let S = new Ft(x, i.request, i._options);
5743
5765
  for (const D of i._options.hooks.beforeError)
5744
5766
  S = await D(S);
5745
5767
  throw S;
@@ -5749,26 +5771,26 @@ class st {
5749
5771
  throw new TypeError("The `onDownloadProgress` option must be a function");
5750
5772
  if (!ki)
5751
5773
  throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");
5752
- return i._stream(v.clone(), i._options.onDownloadProgress);
5774
+ return i._stream(x.clone(), i._options.onDownloadProgress);
5753
5775
  }
5754
- return v;
5776
+ return x;
5755
5777
  }, l = i._options.retry.methods.includes(i.request.method.toLowerCase()) ? i._retry(n) : n();
5756
- for (const [v, S] of Object.entries(Si))
5757
- l[v] = async () => {
5778
+ for (const [x, S] of Object.entries(Si))
5779
+ l[x] = async () => {
5758
5780
  i.request.headers.set("accept", i.request.headers.get("accept") || S);
5759
5781
  const L = (await l).clone();
5760
- if (v === "json") {
5782
+ if (x === "json") {
5761
5783
  if (L.status === 204 || (await L.clone().arrayBuffer()).byteLength === 0)
5762
5784
  return "";
5763
5785
  if (c.parseJson)
5764
5786
  return c.parseJson(await L.text());
5765
5787
  }
5766
- return L[v]();
5788
+ return L[x]();
5767
5789
  };
5768
5790
  return l;
5769
5791
  }
5770
5792
  // eslint-disable-next-line complexity
5771
- constructor(t, c = {}) {
5793
+ constructor(e, c = {}) {
5772
5794
  if (Object.defineProperty(this, "request", {
5773
5795
  enumerable: !0,
5774
5796
  configurable: !0,
@@ -5794,12 +5816,12 @@ class st {
5794
5816
  configurable: !0,
5795
5817
  writable: !0,
5796
5818
  value: void 0
5797
- }), this._input = t, this._options = {
5819
+ }), this._input = e, this._options = {
5798
5820
  // TODO: credentials can be removed when the spec change is implemented in all browsers. Context: https://www.chromestatus.com/feature/4539473312350208
5799
5821
  credentials: this._input.credentials || "same-origin",
5800
5822
  ...c,
5801
- headers: sa(this._input.headers, c.headers),
5802
- hooks: Et({
5823
+ headers: oa(this._input.headers, c.headers),
5824
+ hooks: Mt({
5803
5825
  beforeRequest: [],
5804
5826
  beforeRetry: [],
5805
5827
  beforeError: [],
@@ -5808,7 +5830,7 @@ class st {
5808
5830
  method: _i(c.method ?? this._input.method),
5809
5831
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
5810
5832
  prefixUrl: String(c.prefixUrl || ""),
5811
- retry: Ai(c.retry),
5833
+ retry: Ei(c.retry),
5812
5834
  throwHttpErrors: c.throwHttpErrors !== !1,
5813
5835
  timeout: typeof c.timeout > "u" ? 1e4 : c.timeout,
5814
5836
  fetch: c.fetch ?? globalThis.fetch.bind(globalThis)
@@ -5834,17 +5856,17 @@ class st {
5834
5856
  }
5835
5857
  this._options.json !== void 0 && (this._options.body = JSON.stringify(this._options.json), this.request.headers.set("content-type", this._options.headers.get("content-type") ?? "application/json"), this.request = new globalThis.Request(this.request, { body: this._options.body }));
5836
5858
  }
5837
- _calculateRetryDelay(t) {
5838
- if (this._retryCount++, this._retryCount < this._options.retry.limit && !(t instanceof oa)) {
5839
- if (t instanceof Ft) {
5840
- if (!this._options.retry.statusCodes.includes(t.response.status))
5859
+ _calculateRetryDelay(e) {
5860
+ if (this._retryCount++, this._retryCount < this._options.retry.limit && !(e instanceof sa)) {
5861
+ if (e instanceof Ft) {
5862
+ if (!this._options.retry.statusCodes.includes(e.response.status))
5841
5863
  return 0;
5842
- const i = t.response.headers.get("Retry-After");
5843
- if (i && this._options.retry.afterStatusCodes.includes(t.response.status)) {
5864
+ const i = e.response.headers.get("Retry-After");
5865
+ if (i && this._options.retry.afterStatusCodes.includes(e.response.status)) {
5844
5866
  let n = Number(i);
5845
5867
  return Number.isNaN(n) ? n = Date.parse(i) - Date.now() : n *= 1e3, typeof this._options.retry.maxRetryAfter < "u" && n > this._options.retry.maxRetryAfter ? 0 : n;
5846
5868
  }
5847
- if (t.response.status === 413)
5869
+ if (e.response.status === 413)
5848
5870
  return 0;
5849
5871
  }
5850
5872
  const c = 0.3;
@@ -5852,12 +5874,12 @@ class st {
5852
5874
  }
5853
5875
  return 0;
5854
5876
  }
5855
- _decorateResponse(t) {
5856
- return this._options.parseJson && (t.json = async () => this._options.parseJson(await t.text())), t;
5877
+ _decorateResponse(e) {
5878
+ return this._options.parseJson && (e.json = async () => this._options.parseJson(await e.text())), e;
5857
5879
  }
5858
- async _retry(t) {
5880
+ async _retry(e) {
5859
5881
  try {
5860
- return await t();
5882
+ return await e();
5861
5883
  } catch (c) {
5862
5884
  const i = Math.min(this._calculateRetryDelay(c), mt);
5863
5885
  if (i !== 0 && this._retryCount > 0) {
@@ -5870,14 +5892,14 @@ class st {
5870
5892
  retryCount: this._retryCount
5871
5893
  }) === da)
5872
5894
  return;
5873
- return this._retry(t);
5895
+ return this._retry(e);
5874
5896
  }
5875
5897
  throw c;
5876
5898
  }
5877
5899
  }
5878
5900
  async _fetch() {
5879
- for (const t of this._options.hooks.beforeRequest) {
5880
- const c = await t(this.request, this._options);
5901
+ for (const e of this._options.hooks.beforeRequest) {
5902
+ const c = await e(this.request, this._options);
5881
5903
  if (c instanceof Request) {
5882
5904
  this.request = c;
5883
5905
  break;
@@ -5885,21 +5907,21 @@ class st {
5885
5907
  if (c instanceof Response)
5886
5908
  return c;
5887
5909
  }
5888
- return this._options.timeout === !1 ? this._options.fetch(this.request.clone()) : Ti(this.request.clone(), this.abortController, this._options);
5910
+ return this._options.timeout === !1 ? this._options.fetch(this.request.clone()) : Ai(this.request.clone(), this.abortController, this._options);
5889
5911
  }
5890
5912
  /* istanbul ignore next */
5891
- _stream(t, c) {
5892
- const i = Number(t.headers.get("content-length")) || 0;
5913
+ _stream(e, c) {
5914
+ const i = Number(e.headers.get("content-length")) || 0;
5893
5915
  let n = 0;
5894
- return t.status === 204 ? (c && c({ percent: 1, totalBytes: i, transferredBytes: n }, new Uint8Array()), new globalThis.Response(null, {
5895
- status: t.status,
5896
- statusText: t.statusText,
5897
- headers: t.headers
5916
+ return e.status === 204 ? (c && c({ percent: 1, totalBytes: i, transferredBytes: n }, new Uint8Array()), new globalThis.Response(null, {
5917
+ status: e.status,
5918
+ statusText: e.statusText,
5919
+ headers: e.headers
5898
5920
  })) : new globalThis.Response(new globalThis.ReadableStream({
5899
5921
  async start(d) {
5900
- const l = t.body.getReader();
5922
+ const l = e.body.getReader();
5901
5923
  c && c({ percent: 0, transferredBytes: 0, totalBytes: i }, new Uint8Array());
5902
- async function v() {
5924
+ async function x() {
5903
5925
  const { done: S, value: D } = await l.read();
5904
5926
  if (S) {
5905
5927
  d.close();
@@ -5910,24 +5932,24 @@ class st {
5910
5932
  const L = i === 0 ? 0 : n / i;
5911
5933
  c({ percent: L, transferredBytes: n, totalBytes: i }, D);
5912
5934
  }
5913
- d.enqueue(D), await v();
5935
+ d.enqueue(D), await x();
5914
5936
  }
5915
- await v();
5937
+ await x();
5916
5938
  }
5917
5939
  }), {
5918
- status: t.status,
5919
- statusText: t.statusText,
5920
- headers: t.headers
5940
+ status: e.status,
5941
+ statusText: e.statusText,
5942
+ headers: e.headers
5921
5943
  });
5922
5944
  }
5923
5945
  }
5924
5946
  /*! MIT License © Sindre Sorhus */
5925
5947
  const xt = (a) => {
5926
- const t = (c, i) => st.create(c, Je(a, i));
5948
+ const e = (c, i) => ot.create(c, Je(a, i));
5927
5949
  for (const c of ra)
5928
- t[c] = (i, n) => st.create(i, Je(a, n, { method: c }));
5929
- return t.create = (c) => xt(Je(c)), t.extend = (c) => xt(Je(a, c)), t.stop = da, t;
5930
- }, Li = xt(), ji = Li, Oi = ji.extend({
5950
+ e[c] = (i, n) => ot.create(i, Je(a, n, { method: c }));
5951
+ return e.create = (c) => xt(Je(c)), e.extend = (c) => xt(Je(a, c)), e.stop = da, e;
5952
+ }, Li = xt(), Oi = Li, ji = Oi.extend({
5931
5953
  hooks: {
5932
5954
  beforeRequest: [
5933
5955
  () => {
@@ -5935,18 +5957,18 @@ const xt = (a) => {
5935
5957
  ]
5936
5958
  }
5937
5959
  });
5938
- async function Pi(a, t) {
5939
- const { onmessage: c, onclose: i, ...n } = t, d = async (l, v) => {
5940
- const { value: S, done: D } = await v.read();
5941
- D ? (l.close(), i == null || i()) : (c == null || c(S), l.enqueue(S), d(l, v));
5960
+ async function Pi(a, e) {
5961
+ const { onmessage: c, onclose: i, ...n } = e, d = async (l, x) => {
5962
+ const { value: S, done: D } = await x.read();
5963
+ D ? (l.close(), i == null || i()) : (c == null || c(S), l.enqueue(S), d(l, x));
5942
5964
  };
5943
5965
  return n.body && typeof n.body == "object" && (n.body = JSON.stringify(n.body)), console.log("Fetching:", n), fetch(a, n).then((l) => {
5944
- const v = l.body.getReader();
5966
+ const x = l.body.getReader();
5945
5967
  return new ReadableStream({
5946
5968
  start(D) {
5947
5969
  d(
5948
5970
  D,
5949
- v
5971
+ x
5950
5972
  );
5951
5973
  }
5952
5974
  });
@@ -5956,11 +5978,11 @@ async function Pi(a, t) {
5956
5978
  }).text()
5957
5979
  );
5958
5980
  }
5959
- async function zi(a, t) {
5981
+ async function zi(a, e) {
5960
5982
  const c = new FormData();
5961
- for (let n = 0; n < t.length; n++)
5962
- c.append("files", t[n]);
5963
- const i = await Oi.post(a, {
5983
+ for (let n = 0; n < e.length; n++)
5984
+ c.append("files", e[n]);
5985
+ const i = await ji.post(a, {
5964
5986
  body: c
5965
5987
  });
5966
5988
  try {
@@ -5973,16 +5995,16 @@ async function zi(a, t) {
5973
5995
  };
5974
5996
  }
5975
5997
  }
5976
- var Hi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, q = (a, t, c, i) => {
5977
- for (var n = i > 1 ? void 0 : i ? Bi(t, c) : t, d = a.length - 1, l; d >= 0; d--)
5978
- (l = a[d]) && (n = (i ? l(t, c, n) : l(n)) || n);
5979
- return i && n && Hi(t, c, n), n;
5998
+ var Hi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, R = (a, e, c, i) => {
5999
+ for (var n = i > 1 ? void 0 : i ? Bi(e, c) : e, d = a.length - 1, l; d >= 0; d--)
6000
+ (l = a[d]) && (n = (i ? l(e, c, n) : l(n)) || n);
6001
+ return i && n && Hi(e, c, n), n;
5980
6002
  };
5981
- const Oe = ft.noConflict();
5982
- Oe.setLevel("info");
5983
- let P = class extends Q {
6003
+ const je = ft.noConflict();
6004
+ je.setLevel("info");
6005
+ let z = class extends Q {
5984
6006
  constructor() {
5985
- super(...arguments), this.store = new Xt(this, x), this.displayLicense = !1, this.name = "ChatBot", this.orgId = "", this.botId = "", this.url = "ws://localhost:3070", this.logoUrl = "", this.logoSvg = `<svg width="34" height="34" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
6007
+ super(...arguments), this.store = new Xt(this, w), this.displayLicense = !1, this.name = "ChatBot", this.orgId = "", this.botId = "", this.url = "ws://localhost:3070", this.logoUrl = "", this.logoSvg = `<svg width="34" height="34" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
5986
6008
  <g clip-path="url(#clip0_830_887)">
5987
6009
  <path d="M400 0H0V400H400V0Z" fill="#010617"/>
5988
6010
  <path d="M226.642 181.301C225.043 178.983 222.795 177.055 219.898 175.536C216.99 174.018 213.883 173.248 210.546 173.248C202.283 173.248 195.869 175.716 191.303 180.642C186.737 185.568 184.449 192.022 184.449 199.995C184.449 207.968 186.737 214.422 191.303 219.348C195.869 224.274 202.283 226.742 210.546 226.742C214.173 226.742 217.29 225.952 219.898 224.354C222.505 222.755 224.753 220.877 226.642 218.699L248.173 241.319C243.097 246.544 237.113 250.201 230.229 252.299C223.345 254.397 216.78 255.456 210.546 255.456C202.423 255.456 194.78 254.148 187.606 251.54C180.432 248.932 174.198 245.195 168.902 240.34C163.607 235.484 159.44 229.649 156.393 222.835C153.346 216.021 151.827 208.408 151.827 199.995C151.827 191.582 153.346 183.969 156.393 177.155C159.44 170.341 163.607 164.506 168.902 159.65C174.198 154.795 180.432 151.058 187.606 148.45C194.78 145.842 202.433 144.534 210.546 144.534C216.78 144.534 223.345 145.583 230.229 147.691C237.113 149.789 243.097 153.456 248.173 158.671L226.642 181.291V181.301Z" fill="white"/>
@@ -6027,7 +6049,7 @@ let P = class extends Q {
6027
6049
  isThinking: !0,
6028
6050
  data: {}
6029
6051
  };
6030
- return x.addMessage(a), a;
6052
+ return w.addMessage(a), a;
6031
6053
  }
6032
6054
  addTestMessage(a = "") {
6033
6055
  const c = {
@@ -6038,65 +6060,65 @@ let P = class extends Q {
6038
6060
  text: a !== "" ? a : "Long text.The element may not be scrolled completely to the top or bottom depending on the layout of other elements.The element may not be scrolled completely to the top or bottom depending on the layout of other elements."
6039
6061
  }
6040
6062
  };
6041
- return x.addMessage(c), c;
6063
+ return w.addMessage(c), c;
6042
6064
  }
6043
6065
  addActions(a = []) {
6044
- x.addActions(a);
6066
+ w.addActions(a);
6045
6067
  }
6046
6068
  render() {
6047
- return x.disabled && !this.alwaysOpen ? (Oe.error("Bot is disabled"), null) : m`
6048
- <div class="cb-wrapper" style="${x.open ? "display:flex" : "display:none"}">
6069
+ return w.disabled && !this.alwaysOpen ? (je.error("Bot is disabled"), null) : m`
6070
+ <div class="cb-wrapper" style="${w.open ? "display:flex" : "display:none"}">
6049
6071
  <cb-header title="${this.name}" exportparts="header, header-logo, header-title, header-close"></cb-header>
6050
- <cb-message-list .messages=${x.messages} .actions=${x.actions} .form=${x.form} exportparts="bot-message-list, bot-message"></cb-message-list>
6072
+ <cb-message-list .messages=${w.messages} .actions=${w.actions} .form=${w.form} exportparts="bot-message-list, bot-message"></cb-message-list>
6051
6073
  ${this.renderUserInput()}
6052
6074
  </div>
6053
- <cb-anchor ?open=${x.open} exportparts="anchor"></cb-anchor>
6075
+ <cb-anchor ?open=${w.open} exportparts="anchor"></cb-anchor>
6054
6076
  `;
6055
6077
  }
6056
6078
  renderUserInput() {
6057
- return x.form || x.disabled && this.alwaysOpen ? null : m`<cb-user-input ?loading=${this.loading} ?disabled=${this.loading || x.form} ?enable-file-upload=${this.enableFileUpload}></cb-user-input>`;
6079
+ return w.form || w.disabled && this.alwaysOpen ? null : m`<cb-user-input ?loading=${this.loading} ?disabled=${this.loading || w.form} ?enable-file-upload=${this.enableFileUpload}></cb-user-input>`;
6058
6080
  }
6059
6081
  connectedCallback() {
6060
- super.connectedCallback(), Oe.info("connectedCallback"), addEventListener("c7o:bot:stateEvent", this.handleStateEvent), addEventListener("message:send", this.handleAddMessage), addEventListener("chatbot:toggle", this._chatbotToggleHandler), addEventListener("form:submit", this._formSubmitHandler);
6082
+ super.connectedCallback(), je.info("connectedCallback"), addEventListener("c7o:bot:stateEvent", this.handleStateEvent), addEventListener("message:send", this.handleAddMessage), addEventListener("chatbot:toggle", this._chatbotToggleHandler), addEventListener("form:submit", this._formSubmitHandler);
6061
6083
  }
6062
6084
  disconnectedCallback() {
6063
- Oe.info("disconnectedCallback"), super.disconnectedCallback(), window.removeEventListener("c7o:bot:stateEvent", this.handleStateEvent), window.removeEventListener("message:send", this.handleAddMessage), window.removeEventListener("chatbot:toggle", this._chatbotToggleHandler), window.removeEventListener("form:submit", this._formSubmitHandler);
6085
+ je.info("disconnectedCallback"), super.disconnectedCallback(), window.removeEventListener("c7o:bot:stateEvent", this.handleStateEvent), window.removeEventListener("message:send", this.handleAddMessage), window.removeEventListener("chatbot:toggle", this._chatbotToggleHandler), window.removeEventListener("form:submit", this._formSubmitHandler);
6064
6086
  }
6065
6087
  // This is called when component is loaded, with all the settings (props) values
6066
6088
  // Use to initialize
6067
6089
  // This is also called when state changes - ??? - i.e. when message added to the array
6068
6090
  updated(a) {
6069
- super.updated(a), a.size > 0 && (Oe.info("updated,_changedProperties:", a), this._initSetting()), setTimeout(() => {
6091
+ super.updated(a), a.size > 0 && (je.info("updated,_changedProperties:", a), this._initSetting()), setTimeout(() => {
6070
6092
  this._scrollToBottom();
6071
6093
  }, 0);
6072
6094
  }
6073
6095
  // initialize setting
6074
6096
  _initSetting() {
6075
- Oe.info("_initSetting");
6076
- const a = x.setting;
6077
- a.orgId = this.orgId, a.botId = this.botId, a.url = this.url, a.logoUrl = this.logoUrl, a.logoSvg = this.logoSvg, a.popupLogoSvg = this.popupLogoSvg, a.popupLogoUrl = this.popupLogoUrl, a.botIconSvg = this.botIconSvg, a.userIconSvg = this.userIconSvg, a.systemIconSvg = this.systemIconSvg, a.agentIconSvg = this.agentIconSvg, x.setSetting(a);
6078
- let t = {};
6097
+ je.info("_initSetting");
6098
+ const a = w.setting;
6099
+ a.orgId = this.orgId, a.botId = this.botId, a.url = this.url, a.logoUrl = this.logoUrl, a.logoSvg = this.logoSvg, a.popupLogoSvg = this.popupLogoSvg, a.popupLogoUrl = this.popupLogoUrl, a.botIconSvg = this.botIconSvg, a.userIconSvg = this.userIconSvg, a.systemIconSvg = this.systemIconSvg, a.agentIconSvg = this.agentIconSvg, w.setSetting(a);
6100
+ let e = {};
6079
6101
  try {
6080
- t = JSON.parse(this.prefilledFormFields);
6102
+ e = JSON.parse(this.prefilledFormFields);
6081
6103
  } catch (c) {
6082
- console.log(`Failed to parse prefilled-form-fields attribute value, error: ${(c == null ? void 0 : c.message) || ""}`), t = {};
6104
+ console.log(`Failed to parse prefilled-form-fields attribute value, error: ${(c == null ? void 0 : c.message) || ""}`), e = {};
6083
6105
  }
6084
- x.setPrefilledFormFields(t), this.open && (x.open = !0), this.alwaysOpen && (x.open = !0, x.alwaysOpen = !0);
6106
+ w.setPrefilledFormFields(e), this.open && (w.open = !0), this.alwaysOpen && (w.open = !0, w.alwaysOpen = !0);
6085
6107
  }
6086
6108
  setLoading(a) {
6087
6109
  this.loading = a;
6088
6110
  }
6089
6111
  clearConversation() {
6090
- x.clearConversation();
6112
+ w.clearConversation();
6091
6113
  }
6092
6114
  setPrefilledFormFields(a) {
6093
- x.setPrefilledFormFields(a);
6115
+ w.setPrefilledFormFields(a);
6094
6116
  }
6095
6117
  setOpen(a = !1) {
6096
- x.open = a;
6118
+ w.open = a;
6097
6119
  }
6098
6120
  setInputValue(a = "") {
6099
- a && a !== "" && this.emit("c7o:bot:input:setvalue", {
6121
+ this.emit("c7o:bot:input:setvalue", {
6100
6122
  detail: {
6101
6123
  inputValue: a
6102
6124
  }
@@ -6106,13 +6128,13 @@ let P = class extends Q {
6106
6128
  _checkAuth() {
6107
6129
  }
6108
6130
  _stateEventHandler(a) {
6109
- const t = a.detail, c = (t == null ? void 0 : t.type) || null;
6131
+ const e = a.detail, c = (e == null ? void 0 : e.type) || null;
6110
6132
  if (c)
6111
6133
  switch (c) {
6112
6134
  case "botInitialized": {
6113
6135
  this.emit("c7o:bot:botInitialized", {
6114
6136
  detail: {
6115
- botSettings: t.botSettings
6137
+ botSettings: e.botSettings
6116
6138
  }
6117
6139
  });
6118
6140
  break;
@@ -6120,7 +6142,7 @@ let P = class extends Q {
6120
6142
  case "actionPresented": {
6121
6143
  this.emit("c7o:bot:actionPresented", {
6122
6144
  detail: {
6123
- action: t.action
6145
+ action: e.action
6124
6146
  }
6125
6147
  });
6126
6148
  break;
@@ -6128,8 +6150,8 @@ let P = class extends Q {
6128
6150
  case "actionCompleted": {
6129
6151
  this.emit("c7o:bot:actionCompleted", {
6130
6152
  detail: {
6131
- action: t.action,
6132
- data: t.data
6153
+ action: e.action,
6154
+ data: e.data
6133
6155
  }
6134
6156
  });
6135
6157
  break;
@@ -6138,26 +6160,26 @@ let P = class extends Q {
6138
6160
  }
6139
6161
  _addMessageHandler(a) {
6140
6162
  console.log("_addMessageHandler called", a);
6141
- const t = a.detail;
6142
- x.isConversationStart() && (console.log("Start of conversation detected, emitting c7o:bot:conversationStart"), this.emit("c7o:bot:conversationStart", {
6143
- detail: t
6144
- })), x.sendMessage(t);
6163
+ const e = a.detail;
6164
+ w.isConversationStart() && (console.log("Start of conversation detected, emitting c7o:bot:conversationStart"), this.emit("c7o:bot:conversationStart", {
6165
+ detail: e
6166
+ })), w.sendMessage(e);
6145
6167
  }
6146
6168
  _chatbotToggleHandler(a) {
6147
- const t = a.detail;
6148
- x.open = t.open, x.suppressEngagePopup();
6169
+ const e = a.detail;
6170
+ w.open = e.open, w.suppressEngagePopup();
6149
6171
  }
6150
6172
  _deleteMessageHandler(a) {
6151
- const t = a.detail;
6152
- x.removeMessage(t.id);
6173
+ const e = a.detail;
6174
+ w.removeMessage(e.id);
6153
6175
  }
6154
6176
  async _sendFileHandler(a) {
6155
- const t = a.detail, i = {
6177
+ const e = a.detail, i = {
6156
6178
  author: "user",
6157
6179
  type: "file",
6158
6180
  isUploading: !0,
6159
6181
  data: {
6160
- files: t.files.map((n, d) => ({
6182
+ files: e.files.map((n, d) => ({
6161
6183
  id: `${n.name}-${d}`,
6162
6184
  name: n.name,
6163
6185
  size: n.size,
@@ -6166,108 +6188,108 @@ let P = class extends Q {
6166
6188
  }))
6167
6189
  }
6168
6190
  };
6169
- if (x.addMessage(i), this.uploadFileUrl) {
6170
- const n = await zi(this.uploadFileUrl, t.files);
6191
+ if (w.addMessage(i), this.uploadFileUrl) {
6192
+ const n = await zi(this.uploadFileUrl, e.files);
6171
6193
  n.code === 0 && n.data && (i.isUploading = !1, i.data = {
6172
6194
  files: n.data
6173
- }, x.updateMessage(i));
6195
+ }, w.updateMessage(i));
6174
6196
  }
6175
6197
  this.emit("chatbot:file:send", {
6176
6198
  detail: {
6177
- files: t.files,
6199
+ files: e.files,
6178
6200
  message: i
6179
6201
  }
6180
6202
  });
6181
6203
  }
6182
6204
  // setting confirm handler
6183
6205
  _settingConfirmHandler(a) {
6184
- const t = a.detail;
6185
- x.setSetting(t.setting), this.showSetting = !1, this._checkAuth();
6206
+ const e = a.detail;
6207
+ w.setSetting(e.setting), this.showSetting = !1, this._checkAuth();
6186
6208
  }
6187
6209
  async _formSubmitHandler(a) {
6188
6210
  }
6189
6211
  // scroll to bottom
6190
6212
  _scrollToBottom(a = !1) {
6191
- var t;
6192
- (t = this._messageList) == null || t.scrollToBottom();
6213
+ var e;
6214
+ (e = this._messageList) == null || e.scrollToBottom();
6193
6215
  }
6194
6216
  };
6195
- P.styles = Ha;
6196
- q([
6217
+ z.styles = Ha;
6218
+ R([
6197
6219
  C({ type: Boolean, attribute: "display-license" })
6198
- ], P.prototype, "displayLicense", 2);
6199
- q([
6220
+ ], z.prototype, "displayLicense", 2);
6221
+ R([
6200
6222
  C({ type: String, attribute: "name" })
6201
- ], P.prototype, "name", 2);
6202
- q([
6223
+ ], z.prototype, "name", 2);
6224
+ R([
6203
6225
  C({ type: String, attribute: "org-id" })
6204
- ], P.prototype, "orgId", 2);
6205
- q([
6226
+ ], z.prototype, "orgId", 2);
6227
+ R([
6206
6228
  C({ type: String, attribute: "bot-id" })
6207
- ], P.prototype, "botId", 2);
6208
- q([
6229
+ ], z.prototype, "botId", 2);
6230
+ R([
6209
6231
  C({ type: String, attribute: "url" })
6210
- ], P.prototype, "url", 2);
6211
- q([
6232
+ ], z.prototype, "url", 2);
6233
+ R([
6212
6234
  C({ type: String, attribute: "logo-url" })
6213
- ], P.prototype, "logoUrl", 2);
6214
- q([
6235
+ ], z.prototype, "logoUrl", 2);
6236
+ R([
6215
6237
  C({ type: String, attribute: "logo-svg" })
6216
- ], P.prototype, "logoSvg", 2);
6217
- q([
6238
+ ], z.prototype, "logoSvg", 2);
6239
+ R([
6218
6240
  C({ type: String, attribute: "popup-logo-svg" })
6219
- ], P.prototype, "popupLogoSvg", 2);
6220
- q([
6241
+ ], z.prototype, "popupLogoSvg", 2);
6242
+ R([
6221
6243
  C({ type: String, attribute: "popup-logo-url" })
6222
- ], P.prototype, "popupLogoUrl", 2);
6223
- q([
6244
+ ], z.prototype, "popupLogoUrl", 2);
6245
+ R([
6224
6246
  C({ type: String, attribute: "bot-icon-svg" })
6225
- ], P.prototype, "botIconSvg", 2);
6226
- q([
6247
+ ], z.prototype, "botIconSvg", 2);
6248
+ R([
6227
6249
  C({ type: String, attribute: "user-icon-svg" })
6228
- ], P.prototype, "userIconSvg", 2);
6229
- q([
6250
+ ], z.prototype, "userIconSvg", 2);
6251
+ R([
6230
6252
  C({ type: String, attribute: "system-icon-svg" })
6231
- ], P.prototype, "systemIconSvg", 2);
6232
- q([
6253
+ ], z.prototype, "systemIconSvg", 2);
6254
+ R([
6233
6255
  C({ type: String, attribute: "agent-icon-svg" })
6234
- ], P.prototype, "agentIconSvg", 2);
6235
- q([
6256
+ ], z.prototype, "agentIconSvg", 2);
6257
+ R([
6236
6258
  C({ type: Boolean, attribute: "stream" })
6237
- ], P.prototype, "stream", 2);
6238
- q([
6259
+ ], z.prototype, "stream", 2);
6260
+ R([
6239
6261
  C({ type: Boolean, attribute: "custom-request" })
6240
- ], P.prototype, "customRequest", 2);
6241
- q([
6262
+ ], z.prototype, "customRequest", 2);
6263
+ R([
6242
6264
  C({ type: Boolean, attribute: "enable-file-upload" })
6243
- ], P.prototype, "enableFileUpload", 2);
6244
- q([
6265
+ ], z.prototype, "enableFileUpload", 2);
6266
+ R([
6245
6267
  C({ type: String, attribute: "upload-file-url" })
6246
- ], P.prototype, "uploadFileUrl", 2);
6247
- q([
6268
+ ], z.prototype, "uploadFileUrl", 2);
6269
+ R([
6248
6270
  C({ type: Boolean, attribute: "open" })
6249
- ], P.prototype, "open", 2);
6250
- q([
6271
+ ], z.prototype, "open", 2);
6272
+ R([
6251
6273
  C({ type: Boolean, attribute: "always-open" })
6252
- ], P.prototype, "alwaysOpen", 2);
6253
- q([
6274
+ ], z.prototype, "alwaysOpen", 2);
6275
+ R([
6254
6276
  C({ type: String, attribute: "prefilled-form-fields" })
6255
- ], P.prototype, "prefilledFormFields", 2);
6256
- q([
6277
+ ], z.prototype, "prefilledFormFields", 2);
6278
+ R([
6257
6279
  C({ type: Boolean })
6258
- ], P.prototype, "loading", 2);
6259
- q([
6280
+ ], z.prototype, "loading", 2);
6281
+ R([
6260
6282
  C({ type: Boolean })
6261
- ], P.prototype, "showSetting", 2);
6262
- q([
6283
+ ], z.prototype, "showSetting", 2);
6284
+ R([
6263
6285
  C({ type: Boolean })
6264
- ], P.prototype, "showAuthAlert", 2);
6265
- q([
6286
+ ], z.prototype, "showAuthAlert", 2);
6287
+ R([
6266
6288
  De("cb-message-list")
6267
- ], P.prototype, "_messageList", 2);
6268
- P = q([
6289
+ ], z.prototype, "_messageList", 2);
6290
+ z = R([
6269
6291
  Y("enegelai-bot")
6270
- ], P);
6292
+ ], z);
6271
6293
  export {
6272
- P as default
6294
+ z as default
6273
6295
  };