akpm-knowledge-base-chat 1.0.65 → 1.0.66

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.
Files changed (2) hide show
  1. package/CDN/akb-chat.js +202 -202
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,11 +1,11 @@
1
- /* Version: 1.0.65 */
1
+ /* Version: 1.0.66 */
2
2
  var ro = Object.defineProperty;
3
- var qi = (t) => {
3
+ var Di = (t) => {
4
4
  throw TypeError(t);
5
5
  };
6
6
  var io = (t, e, n) => e in t ? ro(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
7
- var A = (t, e, n) => io(t, typeof e != "symbol" ? e + "" : e, n), Di = (t, e, n) => e.has(t) || qi("Cannot " + n);
8
- var Ke = (t, e, n) => (Di(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Fr = (t, e, n) => e.has(t) ? qi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Or = (t, e, n, r) => (Di(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
7
+ var A = (t, e, n) => io(t, typeof e != "symbol" ? e + "" : e, n), qi = (t, e, n) => e.has(t) || Di("Cannot " + n);
8
+ var Ke = (t, e, n) => (qi(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Fr = (t, e, n) => e.has(t) ? Di("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Or = (t, e, n, r) => (qi(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
9
  const so = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(so);
11
11
  const oi = 1, li = 2, ws = 4, ao = 8, oo = 16, lo = 1, co = 2, _s = 4, uo = 8, fo = 16, ho = 4, po = 1, vo = 2, xs = "[", ci = "[!", ui = "]", un = {}, et = Symbol();
@@ -103,10 +103,10 @@ function Oo(t) {
103
103
  function Mo() {
104
104
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
105
105
  }
106
- function qo() {
106
+ function Do() {
107
107
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
108
108
  }
109
- function Do() {
109
+ function qo() {
110
110
  throw new Error("https://svelte.dev/e/state_unsafe_local_read");
111
111
  }
112
112
  function No() {
@@ -137,7 +137,7 @@ function xr(t, e = !1) {
137
137
  const n = tt(t);
138
138
  return e || (n.equals = hi), kn && ke !== null && ke.l !== null && ((r = ke.l).s ?? (r.s = [])).push(n), n;
139
139
  }
140
- function Dt(t, e = !1) {
140
+ function qt(t, e = !1) {
141
141
  return /* @__PURE__ */ Cs(/* @__PURE__ */ xr(t, e));
142
142
  }
143
143
  // @__NO_SIDE_EFFECTS__
@@ -330,7 +330,7 @@ function L(t, e = null, n) {
330
330
  return c;
331
331
  },
332
332
  setPrototypeOf() {
333
- qo();
333
+ Do();
334
334
  }
335
335
  }
336
336
  );
@@ -391,7 +391,7 @@ function be(t, e) {
391
391
  }
392
392
  return ve;
393
393
  }
394
- function D(t, e = 1, n = !1) {
394
+ function q(t, e = 1, n = !1) {
395
395
  let r = oe ? ve : t;
396
396
  for (var i; e--; )
397
397
  i = r, r = /** @type {TemplateNode} */
@@ -482,7 +482,7 @@ function Fs(t) {
482
482
  pt(t, n), t.equals(e) || (t.v = e, t.wv = Ws());
483
483
  }
484
484
  function vi(t) {
485
- js(t), qn(t, 0), pt(t, bn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
485
+ js(t), Dn(t, 0), pt(t, bn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
486
486
  }
487
487
  function Os(t) {
488
488
  le === null && ze === null && jo(), ze !== null && ze.f & Kt && Lo(), bi && Ro();
@@ -620,7 +620,7 @@ function Ms(t) {
620
620
  }
621
621
  }
622
622
  }
623
- function qs(t) {
623
+ function Ds(t) {
624
624
  var e = t.deriveds;
625
625
  if (e !== null) {
626
626
  t.deriveds = null;
@@ -628,7 +628,7 @@ function qs(t) {
628
628
  vi(e[n]);
629
629
  }
630
630
  }
631
- function Ds(t, e = !1) {
631
+ function qs(t, e = !1) {
632
632
  var n = t.first;
633
633
  for (t.first = t.last = null; n !== null; ) {
634
634
  var r = n.next;
@@ -653,7 +653,7 @@ function xt(t, e = !0) {
653
653
  }
654
654
  n = !0;
655
655
  }
656
- Ds(t, e && !n), qs(t), qn(t, 0), pt(t, bn);
656
+ qs(t, e && !n), Ds(t), Dn(t, 0), pt(t, bn);
657
657
  var a = t.transitions;
658
658
  if (a !== null)
659
659
  for (const l of a)
@@ -847,7 +847,7 @@ function Vs(t) {
847
847
  ), d = t.deps;
848
848
  if (nt !== null) {
849
849
  var f;
850
- if (qn(t, at), d !== null && at > 0)
850
+ if (Dn(t, at), d !== null && at > 0)
851
851
  for (d.length = at + nt.length, f = 0; f < nt.length; f++)
852
852
  d[at + f] = nt[f];
853
853
  else
@@ -855,7 +855,7 @@ function Vs(t) {
855
855
  if (!Jt)
856
856
  for (f = at; f < d.length; f++)
857
857
  ((h = d[f]).reactions ?? (h.reactions = [])).push(t);
858
- } else d !== null && at < d.length && (qn(t, at), d.length = at);
858
+ } else d !== null && at < d.length && (Dn(t, at), d.length = at);
859
859
  if (Gn() && Tt !== null && !(t.f & (ot | en | Lt)))
860
860
  for (f = 0; f < /** @type {Source[]} */
861
861
  Tt.length; f++)
@@ -881,13 +881,13 @@ function al(t, e) {
881
881
  n === null && e.f & ot && // Destroying a child effect while updating a parent effect can cause a dependency to appear
882
882
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
883
883
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
884
- (nt === null || !nt.includes(e)) && (pt(e, en), e.f & (Kt | cr) || (e.f ^= cr), qn(
884
+ (nt === null || !nt.includes(e)) && (pt(e, en), e.f & (Kt | cr) || (e.f ^= cr), Dn(
885
885
  /** @type {Derived} **/
886
886
  e,
887
887
  0
888
888
  ));
889
889
  }
890
- function qn(t, e) {
890
+ function Dn(t, e) {
891
891
  var n = t.deps;
892
892
  if (n !== null)
893
893
  for (var r = e; r < n.length; r++)
@@ -900,7 +900,7 @@ function $r(t) {
900
900
  var n = le, r = ke;
901
901
  le = t;
902
902
  try {
903
- e & wr ? Xo(t) : Ds(t), qs(t), Ms(t);
903
+ e & wr ? Xo(t) : qs(t), Ds(t), Ms(t);
904
904
  var i = Vs(t);
905
905
  t.teardown = typeof i == "function" ? i : null, t.wv = Gs;
906
906
  var s = t.deps, a;
@@ -1042,7 +1042,7 @@ function p(t) {
1042
1042
  ), r;
1043
1043
  }
1044
1044
  if (ze !== null && !Bt) {
1045
- kt !== null && kt.includes(t) && Do();
1045
+ kt !== null && kt.includes(t) && qo();
1046
1046
  var i = ze.deps;
1047
1047
  t.rv < pr && (t.rv = pr, nt === null && i !== null && i[at] === t ? at++ : nt === null ? nt = [t] : nt.push(t));
1048
1048
  } else if (n && /** @type {Derived} */
@@ -1497,12 +1497,12 @@ function ml(t, e, n, r) {
1497
1497
  pi(l), l.append(
1498
1498
  /** @type {Element} */
1499
1499
  n
1500
- ), r.clear(), qt(t, e[0].prev, e[s - 1].next);
1500
+ ), r.clear(), Dt(t, e[0].prev, e[s - 1].next);
1501
1501
  }
1502
1502
  Bs(i, () => {
1503
1503
  for (var c = 0; c < s; c++) {
1504
1504
  var u = e[c];
1505
- o || (r.delete(u.k), qt(t, u.prev, u.next)), xt(u.e, !o);
1505
+ o || (r.delete(u.k), Dt(t, u.prev, u.next)), xt(u.e, !o);
1506
1506
  }
1507
1507
  });
1508
1508
  }
@@ -1587,12 +1587,12 @@ function bl(t, e, n, r, i, s, a, o) {
1587
1587
  C = t[k], F = a(C, k), _ = d.get(F), _ !== void 0 && ((Pe = _.a) == null || Pe.measure(), ($ ?? ($ = /* @__PURE__ */ new Set())).add(_));
1588
1588
  for (k = 0; k < u; k += 1) {
1589
1589
  if (C = t[k], F = a(C, k), _ = d.get(F), _ === void 0) {
1590
- var q = h ? (
1590
+ var D = h ? (
1591
1591
  /** @type {TemplateNode} */
1592
1592
  h.e.nodes_start
1593
1593
  ) : n;
1594
1594
  b = oa(
1595
- q,
1595
+ D,
1596
1596
  e,
1597
1597
  b,
1598
1598
  b === null ? e.first : b.next,
@@ -1614,9 +1614,9 @@ function bl(t, e, n, r, i, s, a, o) {
1614
1614
  Gi(z[U], M, n);
1615
1615
  for (U = 0; U < x.length; U += 1)
1616
1616
  m.delete(x[U]);
1617
- qt(e, W.prev, ce.next), qt(e, b, W), qt(e, ce, M), h = M, b = ce, k -= 1, z = [], x = [];
1617
+ Dt(e, W.prev, ce.next), Dt(e, b, W), Dt(e, ce, M), h = M, b = ce, k -= 1, z = [], x = [];
1618
1618
  } else
1619
- m.delete(_), Gi(_, h, n), qt(e, _.prev, _.next), qt(e, _, b === null ? e.first : b.next), qt(e, b, _), b = _;
1619
+ m.delete(_), Gi(_, h, n), Dt(e, _.prev, _.next), Dt(e, _, b === null ? e.first : b.next), Dt(e, b, _), b = _;
1620
1620
  continue;
1621
1621
  }
1622
1622
  for (z = [], x = []; h !== null && h.k !== F; )
@@ -1690,7 +1690,7 @@ function Gi(t, e, n) {
1690
1690
  i.before(s), s = a;
1691
1691
  }
1692
1692
  }
1693
- function qt(t, e, n) {
1693
+ function Dt(t, e, n) {
1694
1694
  e === null ? t.first = n : (e.next = n, e.e.next = n && n.e), n !== null && (n.prev = e, n.e.prev = e && e.e);
1695
1695
  }
1696
1696
  function ei(t, e, n, r, i) {
@@ -1830,8 +1830,8 @@ function Wi(t, e, n, r, i = !1, s = !1, a = !1) {
1830
1830
  if (m)
1831
1831
  t[`__${_}`] = x, Yt([_]);
1832
1832
  else {
1833
- let k = function(q) {
1834
- o[z].call(this, q);
1833
+ let k = function(D) {
1834
+ o[z].call(this, D);
1835
1835
  };
1836
1836
  o[F] = ia(_, t, k, C);
1837
1837
  }
@@ -2052,7 +2052,7 @@ function ti(t, e, n, r, i) {
2052
2052
  var F = !1;
2053
2053
  if (c)
2054
2054
  for (var _ = Math.ceil(x / 16.666666666666668), k = 0; k <= _; k += 1) {
2055
- var q = $ + z * d(k / _), M = Vi(c(q, 1 - q));
2055
+ var D = $ + z * d(k / _), M = Vi(c(D, 1 - D));
2056
2056
  C.push(M), F || (F = M.overflow === "hidden");
2057
2057
  }
2058
2058
  F && (t.style.overflow = "hidden"), m = () => {
@@ -2088,7 +2088,7 @@ function Cl(t, e, n = e) {
2088
2088
  var r = Gn();
2089
2089
  na(t, "input", (i) => {
2090
2090
  var s = i ? t.defaultValue : t.value;
2091
- if (s = qr(t) ? Dr(s) : s, n(s), r && s !== (s = e())) {
2091
+ if (s = Dr(t) ? qr(s) : s, n(s), r && s !== (s = e())) {
2092
2092
  var a = t.selectionStart, o = t.selectionEnd;
2093
2093
  t.value = s ?? "", o !== null && (t.selectionStart = a, t.selectionEnd = Math.min(o, t.value.length));
2094
2094
  }
@@ -2096,16 +2096,16 @@ function Cl(t, e, n = e) {
2096
2096
  // then use the updated value from the input instead.
2097
2097
  (oe && t.defaultValue !== t.value || // If defaultValue is set, then value == defaultValue
2098
2098
  // TODO Svelte 6: remove input.value check and set to empty string?
2099
- zt(e) == null && t.value) && n(qr(t) ? Dr(t.value) : t.value), _n(() => {
2099
+ zt(e) == null && t.value) && n(Dr(t) ? qr(t.value) : t.value), _n(() => {
2100
2100
  var i = e();
2101
- qr(t) && i === Dr(t.value) || t.type === "date" && !i && !t.value || i !== t.value && (t.value = i ?? "");
2101
+ Dr(t) && i === qr(t.value) || t.type === "date" && !i && !t.value || i !== t.value && (t.value = i ?? "");
2102
2102
  });
2103
2103
  }
2104
- function qr(t) {
2104
+ function Dr(t) {
2105
2105
  var e = t.type;
2106
2106
  return e === "number" || e === "range";
2107
2107
  }
2108
- function Dr(t) {
2108
+ function qr(t) {
2109
2109
  return t === "" ? null : +t;
2110
2110
  }
2111
2111
  function da(t, e, n) {
@@ -2315,7 +2315,7 @@ const Ml = {
2315
2315
  return Reflect.ownKeys(t.props).filter((e) => !t.exclude.includes(e));
2316
2316
  }
2317
2317
  };
2318
- function ql(t, e) {
2318
+ function Dl(t, e) {
2319
2319
  return new Proxy({ props: t, exclude: e, special: {}, version: tt(0) }, Ml);
2320
2320
  }
2321
2321
  function Ki(t) {
@@ -2328,14 +2328,14 @@ function Ki(t) {
2328
2328
  }
2329
2329
  }
2330
2330
  function g(t, e, n, r) {
2331
- var q;
2331
+ var D;
2332
2332
  var i = (n & lo) !== 0, s = !kn || (n & co) !== 0, a = (n & uo) !== 0, o = (n & fo) !== 0, l = !1, c;
2333
2333
  a ? [c, l] = Ol(() => (
2334
2334
  /** @type {V} */
2335
2335
  t[e]
2336
2336
  )) : c = /** @type {V} */
2337
2337
  t[e];
2338
- var u = At in t || Ts in t, d = a && (((q = Vt(t, e)) == null ? void 0 : q.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, f = (
2338
+ var u = At in t || Ts in t, d = a && (((D = Vt(t, e)) == null ? void 0 : D.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, f = (
2339
2339
  /** @type {V} */
2340
2340
  r
2341
2341
  ), h = !0, m = !1, b = () => (m = !0, h && (h = !1, o ? f = zt(
@@ -2388,7 +2388,7 @@ function g(t, e, n, r) {
2388
2388
  return p(k);
2389
2389
  };
2390
2390
  }
2391
- function Dl(t) {
2391
+ function ql(t) {
2392
2392
  return new Nl(t);
2393
2393
  }
2394
2394
  var Et, ct;
@@ -2545,7 +2545,7 @@ typeof HTMLElement == "function" && (ha = class extends HTMLElement {
2545
2545
  }
2546
2546
  for (const i in this.$$p_d)
2547
2547
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
2548
- this.$$c = Dl({
2548
+ this.$$c = ql({
2549
2549
  component: this.$$ctor,
2550
2550
  target: this.shadowRoot || this,
2551
2551
  props: {
@@ -2849,7 +2849,7 @@ function ts(t) {
2849
2849
  function Jl(t) {
2850
2850
  return Gl.includes(t);
2851
2851
  }
2852
- const Vl = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", Xl = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", Ql = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", Kl = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ec = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", tc = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", nc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", rc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", ic = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", sc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", ac = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, oc = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", lc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", cc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", fc = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", _c = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", xc = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", Pc = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", Mc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, qc = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", Dc = /* @__NO_SIDE_EFFECTS__ */ () => "History", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Close", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", Gc = /* @__NO_SIDE_EFFECTS__ */ () => "Search", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Play", eu = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", tu = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", nu = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", su = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", au = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2852
+ const Vl = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", Xl = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", Ql = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", Kl = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ec = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", tc = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", nc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", rc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", ic = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", sc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", ac = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, oc = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", lc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", cc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", fc = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", _c = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", xc = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", Pc = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", Mc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, Dc = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", qc = /* @__NO_SIDE_EFFECTS__ */ () => "History", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Close", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", Gc = /* @__NO_SIDE_EFFECTS__ */ () => "Search", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Play", eu = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", tu = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", nu = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", su = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", au = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2853
2853
  en: Ec,
2854
2854
  it: Vl
2855
2855
  })[e.languageTag ?? ie()](), ou = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -2883,10 +2883,10 @@ const Vl = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", Xl = /* @__NO_SIDE_
2883
2883
  en: Mc,
2884
2884
  it: ac
2885
2885
  })[e.languageTag ?? ie()](t), _i = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2886
- en: qc,
2886
+ en: Dc,
2887
2887
  it: oc
2888
2888
  })[e.languageTag ?? ie()](), ma = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2889
- en: Dc,
2889
+ en: qc,
2890
2890
  it: lc
2891
2891
  })[e.languageTag ?? ie()](), vu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2892
2892
  en: Nc,
@@ -2958,38 +2958,38 @@ var Ru = (t, e) => e(!e()), Lu = /* @__PURE__ */ T('<button class="new-chat svel
2958
2958
  450
2959
2959
  )) : n(!1);
2960
2960
  }, Mu = /* @__PURE__ */ T('<header class="svelte-ib8fo5"><section class="svelte-ib8fo5"><div class="header-left svelte-ib8fo5"><h1 class="svelte-ib8fo5">Chat</h1> <select class="language-select svelte-ib8fo5" aria-label="Select language"><option>IT</option><option>EN</option></select></div> <div class="buttons svelte-ib8fo5"><!> <button class="new-chat svelte-ib8fo5" aria-label="New chat"><i class="fa-solid fa-comment-medical"></i></button> <button class="history-button svelte-ib8fo5"><i class="fa-solid fa-clock-rotate-left"></i></button> <button class="close-button svelte-ib8fo5"><i class="fa-solid fa-xmark"></i></button></div></section></header>');
2961
- const qu = {
2961
+ const Du = {
2962
2962
  hash: "svelte-ib8fo5",
2963
2963
  code: "header.svelte-ib8fo5 {display:flex;justify-content:center;align-items:center;height:50px;border-radius:30px 30px 0 0;}.header-left.svelte-ib8fo5 {display:flex;align-items:center;gap:12px;}h1.svelte-ib8fo5 {font-size:1.5rem;color:#fff;}.language-select.svelte-ib8fo5 {padding:5px;border-radius:5px;border:none;background:#3c4450;color:white;font-size:20px;font-weight:900;transition:200ms;}.language-select.svelte-ib8fo5:hover {background:#576374;cursor:pointer;}section.svelte-ib8fo5 {display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px;}.buttons.svelte-ib8fo5 {display:flex;gap:10px;}button.svelte-ib8fo5 {display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:30px;transition:200ms;}.new-chat.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;padding:0;}.new-chat.svelte-ib8fo5:hover {background:#1e3a8a;}.history-button.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;font-weight:bold;}.history-button.svelte-ib8fo5:hover {background:#1e3a8a;}.close-button.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;}.close-button.svelte-ib8fo5:hover {background:red;}"
2964
2964
  };
2965
2965
  function ka(t, e) {
2966
- K(e, !0), se(t, qu);
2966
+ K(e, !0), se(t, Du);
2967
2967
  let n = g(e, "show", 15, !1), r = g(e, "showHistory", 15), i = g(e, "actChat", 15), s = g(e, "muted", 15), a = g(e, "languageSelected", 15), o = g(e, "username", 15), l = g(e, "error", 15);
2968
2968
  Er(() => {
2969
2969
  });
2970
- var c = Mu(), u = E(c), d = E(u), f = D(E(d), 2), h = E(f);
2970
+ var c = Mu(), u = E(c), d = E(u), f = q(E(d), 2), h = E(f);
2971
2971
  h.value = (h.__value = "it") == null ? "" : "it";
2972
- var m = D(h);
2972
+ var m = q(h);
2973
2973
  m.value = (m.__value = "en") == null ? "" : "en", S(f), S(d);
2974
- var b = D(d, 2), $ = E(b);
2974
+ var b = q(d, 2), $ = E(b);
2975
2975
  {
2976
2976
  var z = (k) => {
2977
- var q = Lu();
2978
- q.__click = [Ru, s], j(
2977
+ var D = Lu();
2978
+ D.__click = [Ru, s], j(
2979
2979
  (M) => {
2980
- P(q, "title", M), P(q, "aria-label", s() ? "Unmute" : "Mute");
2980
+ P(D, "title", M), P(D, "aria-label", s() ? "Unmute" : "Mute");
2981
2981
  },
2982
2982
  [() => /* @__PURE__ */ vu()]
2983
- ), w(k, q);
2983
+ ), w(k, D);
2984
2984
  }, x = (k) => {
2985
- var q = Pu();
2986
- q.__click = [ju, s], j((M) => P(q, "title", M), [() => /* @__PURE__ */ gu()]), w(k, q);
2985
+ var D = Pu();
2986
+ D.__click = [ju, s], j((M) => P(D, "title", M), [() => /* @__PURE__ */ gu()]), w(k, D);
2987
2987
  };
2988
2988
  B($, (k) => {
2989
2989
  s() ? k(z) : k(x, !1);
2990
2990
  });
2991
2991
  }
2992
- var C = D($, 2);
2992
+ var C = q($, 2);
2993
2993
  C.__click = [
2994
2994
  Au,
2995
2995
  i,
@@ -2997,12 +2997,12 @@ function ka(t, e) {
2997
2997
  o,
2998
2998
  l
2999
2999
  ];
3000
- var F = D(C, 2);
3000
+ var F = q(C, 2);
3001
3001
  F.__click = [Fu, r];
3002
- var _ = D(F, 2);
3002
+ var _ = q(F, 2);
3003
3003
  return _.__click = [Ou, r, n], S(b), S(u), S(c), j(
3004
- (k, q, M, U) => {
3005
- P(C, "title", k), P(F, "title", q), P(F, "aria-label", M), P(_, "title", U), P(_, "aria-label", U);
3004
+ (k, D, M, U) => {
3005
+ P(C, "title", k), P(F, "title", D), P(F, "aria-label", M), P(_, "title", U), P(_, "aria-label", U);
3006
3006
  },
3007
3007
  [
3008
3008
  () => /* @__PURE__ */ _i(),
@@ -3071,9 +3071,9 @@ ne(
3071
3071
  [],
3072
3072
  !0
3073
3073
  );
3074
- const Du = () => {
3074
+ const qu = () => {
3075
3075
  switch (Y.getEnvironmentId()) {
3076
- case "aks_qua":
3076
+ case "aks_svi":
3077
3077
  return "https://close-apparently-bluejay.ngrok-free.app";
3078
3078
  case "aks_qua":
3079
3079
  return "https://aks-knowledge-base-back-65440859697.europe-west1.run.app";
@@ -3094,13 +3094,13 @@ const Du = () => {
3094
3094
  }, Yu = (t) => {
3095
3095
  document.cookie = `akb-chat-forge-pinned=${t}; path=/; max-age=31536000; SameSite=Lax`;
3096
3096
  }, Y = {
3097
- getUrl: Du,
3097
+ getUrl: qu,
3098
3098
  getToken: Nu,
3099
3099
  getEnvironmentId: Bu,
3100
3100
  getForgeButtonsPinned: Uu,
3101
3101
  setForgeButtonsPinned: Yu
3102
3102
  };
3103
- class Dn {
3103
+ class qn {
3104
3104
  constructor(e, n, r, i, s, a, o, l = "", c = !1, u = (/* @__PURE__ */ new Date()).getTime(), d = "loading") {
3105
3105
  A(this, "_id");
3106
3106
  A(this, "title");
@@ -3131,10 +3131,10 @@ class Dn {
3131
3131
  };
3132
3132
  }
3133
3133
  static fromJson(e) {
3134
- return new Dn(e._id, e.title, e.companyId, e.private, e.externalId, e.idArchivio, e.hash, e.gendocId, e.isCommon, e.createdAt, e.checked);
3134
+ return new qn(e._id, e.title, e.companyId, e.private, e.externalId, e.idArchivio, e.hash, e.gendocId, e.isCommon, e.createdAt, e.checked);
3135
3135
  }
3136
3136
  static fromJsonArray(e) {
3137
- return e.map((n) => Dn.fromJson(n));
3137
+ return e.map((n) => qn.fromJson(n));
3138
3138
  }
3139
3139
  }
3140
3140
  class Nn {
@@ -3236,7 +3236,7 @@ const Ju = async (t) => {
3236
3236
  });
3237
3237
  if (!e.ok)
3238
3238
  throw new Error("Failed to fetch documents");
3239
- return (await e.json()).map((r) => Dn.fromJson(r));
3239
+ return (await e.json()).map((r) => qn.fromJson(r));
3240
3240
  }, Vu = async (t, e, n) => {
3241
3241
  if (e.endsWith(".akd")) {
3242
3242
  if (!n)
@@ -3577,11 +3577,11 @@ function fd(t, e) {
3577
3577
  let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), i = g(e, "pause", 12, !1), s = g(e, "ballTopLeft", 12, "#FF3E00"), a = g(e, "ballTopRight", 12, "#F8B334"), o = g(e, "ballBottomLeft", 12, "#40B3FF"), l = g(e, "ballBottomRight", 12, "#676778"), c = g(e, "duration", 12, "1.5s");
3578
3578
  var u = ud(), d = E(u), f = E(d), h = E(f), m = E(h);
3579
3579
  S(h);
3580
- var b = D(h, 2), $ = E(b);
3580
+ var b = q(h, 2), $ = E(b);
3581
3581
  S(b);
3582
- var z = D(b, 2), x = E(z);
3582
+ var z = q(b, 2), x = E(z);
3583
3583
  S(z);
3584
- var C = D(z, 2), F = E(C);
3584
+ var C = q(z, 2), F = E(C);
3585
3585
  return S(C), S(f), S(d), S(u), j(() => {
3586
3586
  P(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${s() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${c() ?? ""};`), te(f, "pause-animation", i()), te(m, "pause-animation", i()), te($, "pause-animation", i()), te(x, "pause-animation", i()), te(F, "pause-animation", i());
3587
3587
  }), w(t, u), ee({
@@ -3907,7 +3907,7 @@ const bd = {
3907
3907
  };
3908
3908
  function kd(t, e) {
3909
3909
  K(e, !1), se(t, bd);
3910
- const n = Dt();
3910
+ const n = qt();
3911
3911
  let r = g(e, "size", 12, "40px"), i = g(e, "duration", 12, "3s"), s = g(e, "pause", 12, !1);
3912
3912
  Hn(() => zn(r()), () => {
3913
3913
  y(n, [
@@ -4240,7 +4240,7 @@ const Rd = {
4240
4240
  };
4241
4241
  function Ld(t, e) {
4242
4242
  K(e, !1), se(t, Rd);
4243
- let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2.1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = Dt();
4243
+ let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2.1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = qt();
4244
4244
  Hn(
4245
4245
  () => zn(n()),
4246
4246
  () => {
@@ -4375,8 +4375,8 @@ ne(
4375
4375
  [],
4376
4376
  !0
4377
4377
  );
4378
- var Md = /* @__PURE__ */ T("<div></div>"), qd = /* @__PURE__ */ T('<div class="wrapper svelte-kxapcj"></div>');
4379
- const Dd = {
4378
+ var Md = /* @__PURE__ */ T("<div></div>"), Dd = /* @__PURE__ */ T('<div class="wrapper svelte-kxapcj"></div>');
4379
+ const qd = {
4380
4380
  hash: "svelte-kxapcj",
4381
4381
  code: `.wrapper.svelte-kxapcj {position:relative;width:var(--size);height:var(--size);}.border.svelte-kxapcj {border-color:var(--color);position:absolute;top:0px;left:0px;width:var(--size);height:var(--size);opacity:0.4;perspective:800px;border-width:6px;border-style:solid;border-image:initial;border-radius:100%;}.border.\\31.svelte-kxapcj {
4382
4382
  animation: var(--duration) linear 0s infinite normal none running svelte-kxapcj-ringOne;}.border.\\32.svelte-kxapcj {
@@ -4400,10 +4400,10 @@ const Dd = {
4400
4400
  }`
4401
4401
  };
4402
4402
  function Nd(t, e) {
4403
- K(e, !1), se(t, Dd);
4403
+ K(e, !1), se(t, qd);
4404
4404
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
4405
4405
  it();
4406
- var o = qd();
4406
+ var o = Dd();
4407
4407
  return Ye(o, 5, () => gt(2, 1), Ue, (l, c) => {
4408
4408
  var u = Md();
4409
4409
  j(() => {
@@ -5109,7 +5109,7 @@ const mf = {
5109
5109
  function bf(t, e) {
5110
5110
  K(e, !1), se(t, mf);
5111
5111
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "0.6s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = +s() / 7, l = +s() / 2 - o / 2;
5112
- var c = gf(), u = E(c), d = D(u, 2);
5112
+ var c = gf(), u = E(c), d = q(u, 2);
5113
5113
  return S(c), j(() => {
5114
5114
  P(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${l ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`), te(c, "pause-animation", a()), te(u, "pause-animation", a()), te(d, "pause-animation", a());
5115
5115
  }), w(t, c), ee({
@@ -5193,7 +5193,7 @@ const wf = {
5193
5193
  };
5194
5194
  function _f(t, e) {
5195
5195
  K(e, !1), se(t, wf);
5196
- let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.3s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = Dt();
5196
+ let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.3s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = qt();
5197
5197
  Hn(
5198
5198
  () => zn(n()),
5199
5199
  () => {
@@ -5485,7 +5485,7 @@ const jf = {
5485
5485
  function Pf(t, e) {
5486
5486
  var d;
5487
5487
  K(e, !1), se(t, jf);
5488
- let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = i().match(Me)) == null ? void 0 : d[0]) ?? "s", l = i().replace(Me, ""), c = Dt();
5488
+ let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = i().match(Me)) == null ? void 0 : d[0]) ?? "s", l = i().replace(Me, ""), c = qt();
5489
5489
  Hn(
5490
5490
  () => zn(n()),
5491
5491
  () => {
@@ -5610,8 +5610,8 @@ ne(
5610
5610
  [],
5611
5611
  !0
5612
5612
  );
5613
- var qf = /* @__PURE__ */ T('<div class="wrapper svelte-1ju64u"></div>');
5614
- const Df = {
5613
+ var Df = /* @__PURE__ */ T('<div class="wrapper svelte-1ju64u"></div>');
5614
+ const qf = {
5615
5615
  hash: "svelte-1ju64u",
5616
5616
  code: `.wrapper.svelte-1ju64u {width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);margin-top:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;
5617
5617
  animation: svelte-1ju64u-bump var(--duration) ease-in infinite alternate;}.wrapper.svelte-1ju64u::after {content:'';box-sizing:border-box;left:50%;bottom:100%;transform:translate(-50%, 0);position:absolute;border:var(--size) solid transparent;border-bottom-color:var(--color);}.pause-animation.svelte-1ju64u {animation-play-state:paused;}
@@ -5625,9 +5625,9 @@ const Df = {
5625
5625
  }`
5626
5626
  };
5627
5627
  function Nf(t, e) {
5628
- K(e, !1), se(t, Df);
5628
+ K(e, !1), se(t, qf);
5629
5629
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "0.4s"), s = g(e, "size", 12, "15"), a = g(e, "pause", 12, !1);
5630
- var o = qf();
5630
+ var o = Df();
5631
5631
  return j(() => {
5632
5632
  P(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), te(o, "pause-animation", a());
5633
5633
  }), w(t, o), ee({
@@ -5721,7 +5721,7 @@ function wa(t, e) {
5721
5721
  const u = () => {
5722
5722
  r(!1), y(c, ""), y(a, L([])), y(o, L([]));
5723
5723
  }, d = (N) => {
5724
- N instanceof Dn ? n(
5724
+ N instanceof qn ? n(
5725
5725
  n()[N._id] = {
5726
5726
  title: N.title,
5727
5727
  ext_id: N.externalId,
@@ -5767,28 +5767,28 @@ function wa(t, e) {
5767
5767
  };
5768
5768
  var m = ah(), b = E(m), $ = E(b), z = E($), x = E(z);
5769
5769
  S(z);
5770
- var C = D(z, 2);
5770
+ var C = q(z, 2);
5771
5771
  C.__click = u, S($);
5772
- var F = D($, 2), _ = E(F), k = E(_), q = D(E(k), 2);
5773
- _l(q), q.__input = [
5772
+ var F = q($, 2), _ = E(F), k = E(_), D = q(E(k), 2);
5773
+ _l(D), D.__input = [
5774
5774
  Bf,
5775
5775
  c,
5776
5776
  i,
5777
5777
  f,
5778
5778
  h
5779
5779
  ], S(k), S(_);
5780
- var M = D(_, 2), U = E(M);
5780
+ var M = q(_, 2), U = E(M);
5781
5781
  {
5782
5782
  var W = (N) => {
5783
5783
  var he = Uf(), Ie = E(he);
5784
5784
  $i(Ie, { size: "30", color: "#295dcf" });
5785
- var Pe = D(Ie, 2), He = E(Pe, !0);
5785
+ var Pe = q(Ie, 2), He = E(Pe, !0);
5786
5786
  S(Pe), S(he), j((we) => je(He, we), [() => /* @__PURE__ */ _u()]), w(N, he);
5787
5787
  }, ce = (N) => {
5788
5788
  var he = ye(), Ie = be(he);
5789
5789
  {
5790
5790
  var Pe = (we) => {
5791
- var _e = Yf(), Te = D(E(_e), 2), Fe = E(Te, !0);
5791
+ var _e = Yf(), Te = q(E(_e), 2), Fe = E(Te, !0);
5792
5792
  S(Te), S(_e), j((Re) => je(Fe, Re), [() => /* @__PURE__ */ xu()]), w(we, _e);
5793
5793
  }, He = (we) => {
5794
5794
  var _e = ye(), Te = be(_e);
@@ -5797,7 +5797,7 @@ function wa(t, e) {
5797
5797
  var $e = ye(), Je = be($e);
5798
5798
  {
5799
5799
  var Ve = (H) => {
5800
- var X = Hf(), ue = D(E(X), 2), Z = E(ue, !0);
5800
+ var X = Hf(), ue = q(E(X), 2), Z = E(ue, !0);
5801
5801
  S(ue), S(X), j((Q) => je(Z, Q), [() => /* @__PURE__ */ yu()]), w(H, X);
5802
5802
  }, J = (H) => {
5803
5803
  var X = Wf();
@@ -5806,8 +5806,8 @@ function wa(t, e) {
5806
5806
  Q.__click = [Zf, d, Z];
5807
5807
  var xe = E(Q), Oe = E(xe);
5808
5808
  S(xe);
5809
- var qe = D(xe, 2), me = E(qe), Se = E(me, !0);
5810
- S(me), S(qe), S(Q), j(
5809
+ var De = q(xe, 2), me = E(De), Se = E(me, !0);
5810
+ S(me), S(De), S(Q), j(
5811
5811
  (Ze) => {
5812
5812
  Be(Oe, Wn(p(s).icon), "svelte-1pr2pgp"), P(Oe, "style", `color: ${p(s).color}`), je(Se, Ze);
5813
5813
  },
@@ -5824,7 +5824,7 @@ function wa(t, e) {
5824
5824
  var $e = ye(), Je = be($e);
5825
5825
  {
5826
5826
  var Ve = (H) => {
5827
- var X = Jf(), ue = D(E(X), 2), Z = E(ue, !0);
5827
+ var X = Jf(), ue = q(E(X), 2), Z = E(ue, !0);
5828
5828
  S(ue), S(X), j((Q) => je(Z, Q), [() => /* @__PURE__ */ zu()]), w(H, X);
5829
5829
  }, J = (H) => {
5830
5830
  var X = sh();
@@ -5833,7 +5833,7 @@ function wa(t, e) {
5833
5833
  Q.__click = [Vf, d, Z];
5834
5834
  var xe = E(Q), Oe = E(xe);
5835
5835
  {
5836
- var qe = (R) => {
5836
+ var De = (R) => {
5837
5837
  var G = Xf();
5838
5838
  w(R, G);
5839
5839
  }, me = (R) => {
@@ -5843,7 +5843,7 @@ function wa(t, e) {
5843
5843
  var ae = Qf();
5844
5844
  w(pe, ae);
5845
5845
  }, O = (pe) => {
5846
- var ae = ye(), De = be(ae);
5846
+ var ae = ye(), qe = be(ae);
5847
5847
  {
5848
5848
  var Pt = (Ae) => {
5849
5849
  var de = Kf();
@@ -5904,7 +5904,7 @@ function wa(t, e) {
5904
5904
  w(Ae, de);
5905
5905
  };
5906
5906
  B(
5907
- De,
5907
+ qe,
5908
5908
  (Ae) => {
5909
5909
  var de;
5910
5910
  ((de = p(Z).title.split(".").pop()) == null ? void 0 : de.toLowerCase()) === "docx" ? Ae(Pt) : Ae(Ht, !1);
@@ -5926,11 +5926,11 @@ function wa(t, e) {
5926
5926
  w(R, G);
5927
5927
  };
5928
5928
  B(Oe, (R) => {
5929
- p(Z).isCommon ? R(qe) : R(me, !1);
5929
+ p(Z).isCommon ? R(De) : R(me, !1);
5930
5930
  });
5931
5931
  }
5932
5932
  S(xe);
5933
- var Se = D(xe, 2), Ze = E(Se), I = E(Ze, !0);
5933
+ var Se = q(xe, 2), Ze = E(Se), I = E(Ze, !0);
5934
5934
  S(Ze), S(Se), S(Q), j((R) => je(I, R), [
5935
5935
  () => p(Z).isCommon ? p(Z).title.split(".")[0] : p(Z).title
5936
5936
  ]), w(ue, Q);
@@ -5973,7 +5973,7 @@ function wa(t, e) {
5973
5973
  return S(M), S(F), S(b), S(m), j(
5974
5974
  (N, he, Ie) => {
5975
5975
  je(x, `${N ?? ""}
5976
- ${he ?? ""}`), P(q, "placeholder", `${N ?? ""} ${Ie ?? ""} (min 3 caratteri)...`), xl(q, p(c));
5976
+ ${he ?? ""}`), P(D, "placeholder", `${N ?? ""} ${Ie ?? ""} (min 3 caratteri)...`), xl(D, p(c));
5977
5977
  },
5978
5978
  [
5979
5979
  () => /* @__PURE__ */ wu(),
@@ -6069,12 +6069,12 @@ function _a(t, e) {
6069
6069
  const I = Object.keys(l()).map((R) => l()[R].ext_id);
6070
6070
  n()(p(c), a(), o(), I), y(c, ""), l({});
6071
6071
  }, F = () => {
6072
- console.log("Seleziona file"), q(), M();
6072
+ console.log("Seleziona file"), D(), M();
6073
6073
  }, _ = (I) => {
6074
- a(I), o(!1), l({}), q();
6074
+ a(I), o(!1), l({}), D();
6075
6075
  }, k = () => {
6076
- o(!0), a(""), l({}), q();
6077
- }, q = () => {
6076
+ o(!0), a(""), l({}), D();
6077
+ }, D = () => {
6078
6078
  y(W, !1);
6079
6079
  }, M = () => {
6080
6080
  y(ce, !0);
@@ -6087,11 +6087,11 @@ function _a(t, e) {
6087
6087
  });
6088
6088
  var N = jh(), he = be(N), Ie = E(he), Pe = E(Ie);
6089
6089
  fl(Pe), Pe.__keyup = [ch, C], S(Ie);
6090
- var He = D(Ie, 2), we = E(He), _e = E(we), Te = E(_e);
6090
+ var He = q(Ie, 2), we = E(He), _e = E(we), Te = E(_e);
6091
6091
  Te.__click = [lh, W];
6092
6092
  var Fe = E(Te);
6093
6093
  S(Te);
6094
- var Re = D(Te, 2);
6094
+ var Re = q(Te, 2);
6095
6095
  {
6096
6096
  var Ee = (I) => {
6097
6097
  var R = uh(), G = E(R);
@@ -6102,7 +6102,7 @@ function _a(t, e) {
6102
6102
  } : () => {
6103
6103
  }) == null || de.apply(this, Ae);
6104
6104
  };
6105
- var V = D(G, 2);
6105
+ var V = q(G, 2);
6106
6106
  V.__click = function(...Ae) {
6107
6107
  var de;
6108
6108
  (de = a() != "normative" ? () => {
@@ -6110,21 +6110,21 @@ function _a(t, e) {
6110
6110
  } : () => {
6111
6111
  }) == null || de.apply(this, Ae);
6112
6112
  };
6113
- var Le = D(E(V), 2), O = E(Le, !0);
6113
+ var Le = q(E(V), 2), O = E(Le, !0);
6114
6114
  S(Le), S(V);
6115
- var pe = D(V, 2);
6115
+ var pe = q(V, 2);
6116
6116
  pe.__click = function(...Ae) {
6117
6117
  var de;
6118
6118
  (de = o() ? () => {
6119
6119
  } : k) == null || de.apply(this, Ae);
6120
6120
  };
6121
- var ae = D(pe, 2), De = /* @__PURE__ */ vt(() => Object.keys(l()).length < 2 ? F : () => {
6121
+ var ae = q(pe, 2), qe = /* @__PURE__ */ vt(() => Object.keys(l()).length < 2 ? F : () => {
6122
6122
  });
6123
6123
  ae.__click = function(...Ae) {
6124
6124
  var de;
6125
- (de = p(De)) == null || de.apply(this, Ae);
6125
+ (de = p(qe)) == null || de.apply(this, Ae);
6126
6126
  };
6127
- var Pt = D(E(ae), 2), Ht = E(Pt);
6127
+ var Pt = q(E(ae), 2), Ht = E(Pt);
6128
6128
  S(Pt), S(ae), S(R), j(
6129
6129
  (Ae, de, lt) => {
6130
6130
  Be(G, `${`dropdown-option ${a() == "suite" ? "option-disabled" : ""}` ?? ""} svelte-18sfhki`), Be(V, `${`dropdown-option ${a() == "normative" ? "option-disabled" : ""}` ?? ""} svelte-18sfhki`), je(O, Ae), Be(pe, `${`dropdown-option ${o() ? "option-disabled" : ""}` ?? ""} svelte-18sfhki`), Be(ae, `${de ?? ""} svelte-18sfhki`), je(Ht, `${lt ?? ""}
@@ -6142,16 +6142,16 @@ function _a(t, e) {
6142
6142
  });
6143
6143
  }
6144
6144
  S(_e);
6145
- var $e = D(_e, 2), Je = E($e);
6145
+ var $e = q(_e, 2), Je = E($e);
6146
6146
  {
6147
6147
  var Ve = (I) => {
6148
- var R = hh(), G = E(R), V = D(G, 2), Le = E(V, !0);
6148
+ var R = hh(), G = E(R), V = q(G, 2), Le = E(V, !0);
6149
6149
  S(V);
6150
- var O = D(V, 2);
6150
+ var O = q(V, 2);
6151
6151
  {
6152
6152
  var pe = (ae) => {
6153
- var De = fh();
6154
- De.__click = [dh, a], w(ae, De);
6153
+ var qe = fh();
6154
+ qe.__click = [dh, a], w(ae, qe);
6155
6155
  };
6156
6156
  B(O, (ae) => {
6157
6157
  Object.keys(l()).length === 0 && ae(pe);
@@ -6165,10 +6165,10 @@ function _a(t, e) {
6165
6165
  a() !== "" && I(Ve);
6166
6166
  });
6167
6167
  }
6168
- var J = D(Je, 2);
6168
+ var J = q(Je, 2);
6169
6169
  {
6170
6170
  var H = (I) => {
6171
- var R = gh(), G = D(E(R), 4);
6171
+ var R = gh(), G = q(E(R), 4);
6172
6172
  {
6173
6173
  var V = (Le) => {
6174
6174
  var O = vh();
@@ -6184,10 +6184,10 @@ function _a(t, e) {
6184
6184
  o() && I(H);
6185
6185
  });
6186
6186
  }
6187
- var X = D(J, 2);
6187
+ var X = q(J, 2);
6188
6188
  Ye(X, 17, () => Object.entries(l()), Ue, (I, R) => {
6189
6189
  let G = () => p(R)[0], V = () => p(R)[1].title, Le = () => p(R)[1].ext_id, O = () => p(R)[1].gendoc_id, pe = () => p(R)[1].isCommon;
6190
- var ae = Eh(), De = E(ae);
6190
+ var ae = Eh(), qe = E(ae);
6191
6191
  {
6192
6192
  var Pt = (Ne) => {
6193
6193
  var Ce = mh();
@@ -6281,11 +6281,11 @@ function _a(t, e) {
6281
6281
  }
6282
6282
  w(Ne, Ce);
6283
6283
  };
6284
- B(De, (Ne) => {
6284
+ B(qe, (Ne) => {
6285
6285
  pe() ? Ne(Pt) : Ne(Ht, !1);
6286
6286
  });
6287
6287
  }
6288
- var Ae = D(De, 2);
6288
+ var Ae = q(qe, 2);
6289
6289
  {
6290
6290
  var de = (Ne) => {
6291
6291
  var Ce = zh(), st = E(Ce, !0);
@@ -6314,7 +6314,7 @@ function _a(t, e) {
6314
6314
  pe() ? Ne(de) : Ne(lt, !1);
6315
6315
  });
6316
6316
  }
6317
- var Vn = D(Ae, 2);
6317
+ var Vn = q(Ae, 2);
6318
6318
  Vn.__click = [Th, l, G], S(ae), j(
6319
6319
  (Ne) => {
6320
6320
  Be(ae, `${`attachment-item ${pe() ? "common" : ""}` ?? ""} svelte-18sfhki`), P(ae, "title", Ne), Be(Vn, `${`remove-btn ${pe() ? "common" : ""}` ?? ""} svelte-18sfhki`);
@@ -6324,7 +6324,7 @@ function _a(t, e) {
6324
6324
  ]
6325
6325
  ), w(I, ae);
6326
6326
  }), S($e), fa($e, (I) => b = I, () => b);
6327
- var ue = D($e, 2), Z = E(ue);
6327
+ var ue = q($e, 2), Z = E(ue);
6328
6328
  {
6329
6329
  var Q = (I) => {
6330
6330
  var R = Ch();
@@ -6353,9 +6353,9 @@ function _a(t, e) {
6353
6353
  p(h) ? I(Q) : I(xe, !1);
6354
6354
  });
6355
6355
  }
6356
- var Oe = D(Z, 2);
6356
+ var Oe = q(Z, 2);
6357
6357
  {
6358
- var qe = (I) => {
6358
+ var De = (I) => {
6359
6359
  var R = Rh();
6360
6360
  R.__click = function(...G) {
6361
6361
  var V;
@@ -6366,11 +6366,11 @@ function _a(t, e) {
6366
6366
  R.__click = C, j((G) => P(R, "title", G), [() => /* @__PURE__ */ hu()]), w(I, R);
6367
6367
  };
6368
6368
  B(Oe, (I) => {
6369
- i() ? I(qe) : I(me, !1);
6369
+ i() ? I(De) : I(me, !1);
6370
6370
  });
6371
6371
  }
6372
6372
  S(ue), S(we), S(He), S(he);
6373
- var Se = D(he, 2);
6373
+ var Se = q(he, 2);
6374
6374
  {
6375
6375
  var Ze = (I) => {
6376
6376
  wa(I, {
@@ -6575,7 +6575,7 @@ function za(t, e) {
6575
6575
  }
6576
6576
  return n;
6577
6577
  }
6578
- const qh = {
6578
+ const Dh = {
6579
6579
  provider: "",
6580
6580
  aliases: {},
6581
6581
  not_found: {},
@@ -6591,7 +6591,7 @@ function Sa(t) {
6591
6591
  if (typeof t != "object" || t === null)
6592
6592
  return null;
6593
6593
  const e = t;
6594
- if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !Nr(t, qh))
6594
+ if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !Nr(t, Dh))
6595
6595
  return null;
6596
6596
  const n = e.icons;
6597
6597
  for (const i in n) {
@@ -6624,7 +6624,7 @@ function Sa(t) {
6624
6624
  return e;
6625
6625
  }
6626
6626
  const ss = /* @__PURE__ */ Object.create(null);
6627
- function Dh(t, e) {
6627
+ function qh(t, e) {
6628
6628
  return {
6629
6629
  provider: t,
6630
6630
  prefix: e,
@@ -6634,7 +6634,7 @@ function Dh(t, e) {
6634
6634
  }
6635
6635
  function mn(t, e) {
6636
6636
  const n = ss[t] || (ss[t] = /* @__PURE__ */ Object.create(null));
6637
- return n[e] || (n[e] = Dh(t, e));
6637
+ return n[e] || (n[e] = qh(t, e));
6638
6638
  }
6639
6639
  function $a(t, e) {
6640
6640
  return Sa(e) ? za(e, (n, r) => {
@@ -7082,8 +7082,8 @@ function mp(t, e, n, r) {
7082
7082
  if (t.random) {
7083
7083
  let k = t.resources.slice(0);
7084
7084
  for (a = []; k.length > 1; ) {
7085
- const q = Math.floor(Math.random() * k.length);
7086
- a.push(k[q]), k = k.slice(0, q).concat(k.slice(q + 1));
7085
+ const D = Math.floor(Math.random() * k.length);
7086
+ a.push(k[D]), k = k.slice(0, D).concat(k.slice(D + 1));
7087
7087
  }
7088
7088
  a = a.concat(k);
7089
7089
  } else
@@ -7099,8 +7099,8 @@ function mp(t, e, n, r) {
7099
7099
  k.status === "pending" && (k.status = "aborted");
7100
7100
  }), f = [];
7101
7101
  }
7102
- function $(k, q) {
7103
- q && (h = []), typeof k == "function" && h.push(k);
7102
+ function $(k, D) {
7103
+ D && (h = []), typeof k == "function" && h.push(k);
7104
7104
  }
7105
7105
  function z() {
7106
7106
  return {
@@ -7123,8 +7123,8 @@ function mp(t, e, n, r) {
7123
7123
  k.status === "pending" && (k.status = "aborted");
7124
7124
  }), f = [];
7125
7125
  }
7126
- function F(k, q, M) {
7127
- const U = q !== "success";
7126
+ function F(k, D, M) {
7127
+ const U = D !== "success";
7128
7128
  switch (f = f.filter((W) => W !== k), l) {
7129
7129
  case "pending":
7130
7130
  break;
@@ -7135,7 +7135,7 @@ function mp(t, e, n, r) {
7135
7135
  default:
7136
7136
  return;
7137
7137
  }
7138
- if (q === "abort") {
7138
+ if (D === "abort") {
7139
7139
  u = M, x();
7140
7140
  return;
7141
7141
  }
@@ -7166,14 +7166,14 @@ function mp(t, e, n, r) {
7166
7166
  x();
7167
7167
  return;
7168
7168
  }
7169
- const q = {
7169
+ const D = {
7170
7170
  status: "pending",
7171
7171
  resource: k,
7172
7172
  callback: (M, U) => {
7173
- F(q, M, U);
7173
+ F(D, M, U);
7174
7174
  }
7175
7175
  };
7176
- f.push(q), c++, d = setTimeout(_, t.rotate), n(k, e, q.callback);
7176
+ f.push(D), c++, d = setTimeout(_, t.rotate), n(k, e, D.callback);
7177
7177
  }
7178
7178
  return setTimeout(_), z;
7179
7179
  }
@@ -7586,7 +7586,7 @@ function ps(t, e) {
7586
7586
  }
7587
7587
  var Op = /* @__PURE__ */ pl("<svg><!></svg>"), Mp = /* @__PURE__ */ T("<span></span>");
7588
7588
  function Un(t, e) {
7589
- const n = ql(e, [
7589
+ const n = Dl(e, [
7590
7590
  "children",
7591
7591
  "$$slots",
7592
7592
  "$$events",
@@ -7594,7 +7594,7 @@ function Un(t, e) {
7594
7594
  "$$host"
7595
7595
  ]);
7596
7596
  K(e, !1);
7597
- const r = Dt({
7597
+ const r = qt({
7598
7598
  // Last icon name
7599
7599
  name: "",
7600
7600
  // Loading status
@@ -7602,7 +7602,7 @@ function Un(t, e) {
7602
7602
  // Destroyed status
7603
7603
  destroyed: !1
7604
7604
  });
7605
- let i = Dt(!1), s = Dt(0), a = Dt();
7605
+ let i = qt(!1), s = qt(0), a = qt();
7606
7606
  const o = (f) => {
7607
7607
  typeof n.onLoad == "function" && n.onLoad(f), Pl()("load", { icon: f });
7608
7608
  };
@@ -7736,9 +7736,9 @@ const We = {
7736
7736
  fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
7737
7737
  headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
7738
7738
  htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
7739
- }, qp = /^(?:[ \t]*(?:\n|$))+/, Dp = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Np = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Jn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Bp = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ai = /(?:[*+-]|\d{1,9}[.)])/, ja = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Pa = fe(ja).replace(/bull/g, Ai).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Up = fe(ja).replace(/bull/g, Ai).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ri = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Yp = /^[^\n]+/, Li = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Hp = fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Li).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Zp = fe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ai).getRegex(), Rr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", ji = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Gp = fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", ji).replace("tag", Rr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Fa = fe(Ri).replace("hr", Jn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rr).getRegex(), Wp = fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Fa).getRegex(), Pi = {
7739
+ }, Dp = /^(?:[ \t]*(?:\n|$))+/, qp = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Np = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Jn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Bp = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ai = /(?:[*+-]|\d{1,9}[.)])/, ja = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Pa = fe(ja).replace(/bull/g, Ai).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Up = fe(ja).replace(/bull/g, Ai).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ri = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Yp = /^[^\n]+/, Li = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Hp = fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Li).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Zp = fe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ai).getRegex(), Rr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", ji = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Gp = fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", ji).replace("tag", Rr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Fa = fe(Ri).replace("hr", Jn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rr).getRegex(), Wp = fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Fa).getRegex(), Pi = {
7740
7740
  blockquote: Wp,
7741
- code: Dp,
7741
+ code: qp,
7742
7742
  def: Hp,
7743
7743
  fences: Np,
7744
7744
  heading: Bp,
@@ -7746,7 +7746,7 @@ const We = {
7746
7746
  html: Gp,
7747
7747
  lheading: Pa,
7748
7748
  list: Zp,
7749
- newline: qp,
7749
+ newline: Dp,
7750
7750
  paragraph: Fa,
7751
7751
  table: Pn,
7752
7752
  text: Yp
@@ -7765,7 +7765,7 @@ const We = {
7765
7765
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
7766
7766
  paragraph: fe(Ri).replace("hr", Jn).replace("heading", ` *#{1,6} *[^
7767
7767
  ]`).replace("lheading", Pa).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
7768
- }, Xp = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Qp = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Oa = /^( {2,}|\\)\n(?!\s*$)/, Kp = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Lr = /[\p{P}\p{S}]/u, Fi = /[\s\p{P}\p{S}]/u, Ma = /[^\s\p{P}\p{S}]/u, ev = fe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Fi).getRegex(), qa = /(?!~)[\p{P}\p{S}]/u, tv = /(?!~)[\s\p{P}\p{S}]/u, nv = /(?:[^\s\p{P}\p{S}]|~)/u, rv = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Da = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, iv = fe(Da, "u").replace(/punct/g, Lr).getRegex(), sv = fe(Da, "u").replace(/punct/g, qa).getRegex(), Na = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", av = fe(Na, "gu").replace(/notPunctSpace/g, Ma).replace(/punctSpace/g, Fi).replace(/punct/g, Lr).getRegex(), ov = fe(Na, "gu").replace(/notPunctSpace/g, nv).replace(/punctSpace/g, tv).replace(/punct/g, qa).getRegex(), lv = fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ma).replace(/punctSpace/g, Fi).replace(/punct/g, Lr).getRegex(), cv = fe(/\\(punct)/, "gu").replace(/punct/g, Lr).getRegex(), uv = fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), dv = fe(ji).replace("(?:-->|$)", "-->").getRegex(), fv = fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", dv).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, hv = fe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", gr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ba = fe(/^!?\[(label)\]\[(ref)\]/).replace("label", gr).replace("ref", Li).getRegex(), Ua = fe(/^!?\[(ref)\](?:\[\])?/).replace("ref", Li).getRegex(), pv = fe("reflink|nolink(?!\\()", "g").replace("reflink", Ba).replace("nolink", Ua).getRegex(), Oi = {
7768
+ }, Xp = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Qp = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Oa = /^( {2,}|\\)\n(?!\s*$)/, Kp = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Lr = /[\p{P}\p{S}]/u, Fi = /[\s\p{P}\p{S}]/u, Ma = /[^\s\p{P}\p{S}]/u, ev = fe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Fi).getRegex(), Da = /(?!~)[\p{P}\p{S}]/u, tv = /(?!~)[\s\p{P}\p{S}]/u, nv = /(?:[^\s\p{P}\p{S}]|~)/u, rv = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, qa = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, iv = fe(qa, "u").replace(/punct/g, Lr).getRegex(), sv = fe(qa, "u").replace(/punct/g, Da).getRegex(), Na = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", av = fe(Na, "gu").replace(/notPunctSpace/g, Ma).replace(/punctSpace/g, Fi).replace(/punct/g, Lr).getRegex(), ov = fe(Na, "gu").replace(/notPunctSpace/g, nv).replace(/punctSpace/g, tv).replace(/punct/g, Da).getRegex(), lv = fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ma).replace(/punctSpace/g, Fi).replace(/punct/g, Lr).getRegex(), cv = fe(/\\(punct)/, "gu").replace(/punct/g, Lr).getRegex(), uv = fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), dv = fe(ji).replace("(?:-->|$)", "-->").getRegex(), fv = fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", dv).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, hv = fe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", gr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ba = fe(/^!?\[(label)\]\[(ref)\]/).replace("label", gr).replace("ref", Li).getRegex(), Ua = fe(/^!?\[(ref)\](?:\[\])?/).replace("ref", Li).getRegex(), pv = fe("reflink|nolink(?!\\()", "g").replace("reflink", Ba).replace("nolink", Ua).getRegex(), Oi = {
7769
7769
  _backpedal: Pn,
7770
7770
  // only used for GFM url
7771
7771
  anyPunctuation: cv,
@@ -8061,10 +8061,10 @@ ${d}` : d;
8061
8061
  `, e = e.substring(h.length + 1), c = !0), !c) {
8062
8062
  const x = this.rules.other.nextBulletRegex(b), C = this.rules.other.hrRegex(b), F = this.rules.other.fencesBeginRegex(b), _ = this.rules.other.headingBeginRegex(b), k = this.rules.other.htmlBeginRegex(b);
8063
8063
  for (; e; ) {
8064
- const q = e.split(`
8064
+ const D = e.split(`
8065
8065
  `, 1)[0];
8066
8066
  let M;
8067
- if (h = q, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), M = h) : M = h.replace(this.rules.other.tabCharGlobal, " "), F.test(h) || _.test(h) || k.test(h) || x.test(h) || C.test(h))
8067
+ if (h = D, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), M = h) : M = h.replace(this.rules.other.tabCharGlobal, " "), F.test(h) || _.test(h) || k.test(h) || x.test(h) || C.test(h))
8068
8068
  break;
8069
8069
  if (M.search(this.rules.other.nonSpaceChar) >= b || !h.trim())
8070
8070
  d += `
@@ -8075,8 +8075,8 @@ ${d}` : d;
8075
8075
  d += `
8076
8076
  ` + h;
8077
8077
  }
8078
- !m && !h.trim() && (m = !0), u += q + `
8079
- `, e = e.substring(q.length + 1), f = M.slice(b);
8078
+ !m && !h.trim() && (m = !0), u += D + `
8079
+ `, e = e.substring(D.length + 1), f = M.slice(b);
8080
8080
  }
8081
8081
  }
8082
8082
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
@@ -9265,19 +9265,19 @@ function Ya(t, e) {
9265
9265
  m.__click = [_v, n];
9266
9266
  var b = E(m);
9267
9267
  S(m);
9268
- var $ = D(m, 2);
9268
+ var $ = q(m, 2);
9269
9269
  {
9270
9270
  var z = (x) => {
9271
9271
  var C = Rv();
9272
9272
  Ye(C, 21, r, Ue, (F, _) => {
9273
- let k = () => p(_).filename, q = () => p(_).external_id, M = () => p(_).gendoc_id, U = () => p(_).isCommon, W = () => p(_).commonType;
9273
+ let k = () => p(_).filename, D = () => p(_).external_id, M = () => p(_).gendoc_id, U = () => p(_).isCommon, W = () => p(_).commonType;
9274
9274
  var ce = Av();
9275
- const N = /* @__PURE__ */ vt(() => k().split(".").pop()), he = /* @__PURE__ */ vt(() => k().includes(".") && p(N) !== k()), Ie = /* @__PURE__ */ vt(() => `${q()}-${k()}`);
9275
+ const N = /* @__PURE__ */ vt(() => k().split(".").pop()), he = /* @__PURE__ */ vt(() => k().includes(".") && p(N) !== k()), Ie = /* @__PURE__ */ vt(() => `${D()}-${k()}`);
9276
9276
  ce.__click = [
9277
9277
  xv,
9278
9278
  U,
9279
9279
  a,
9280
- q,
9280
+ D,
9281
9281
  k,
9282
9282
  M,
9283
9283
  he,
@@ -9317,7 +9317,7 @@ function Ya(t, e) {
9317
9317
  var Oe = (me) => {
9318
9318
  var Se = $v();
9319
9319
  w(me, Se);
9320
- }, qe = (me) => {
9320
+ }, De = (me) => {
9321
9321
  var Se = ye(), Ze = be(Se);
9322
9322
  {
9323
9323
  var I = (G) => {
@@ -9327,10 +9327,10 @@ function Ya(t, e) {
9327
9327
  var V = ye(), Le = be(V);
9328
9328
  {
9329
9329
  var O = (ae) => {
9330
- var De = Ev();
9331
- w(ae, De);
9330
+ var qe = Ev();
9331
+ w(ae, qe);
9332
9332
  }, pe = (ae) => {
9333
- var De = ye(), Pt = be(De);
9333
+ var qe = ye(), Pt = be(qe);
9334
9334
  {
9335
9335
  var Ht = (de) => {
9336
9336
  var lt = Cv();
@@ -9348,13 +9348,13 @@ function Ya(t, e) {
9348
9348
  !0
9349
9349
  );
9350
9350
  }
9351
- w(ae, De);
9351
+ w(ae, qe);
9352
9352
  };
9353
9353
  B(
9354
9354
  Le,
9355
9355
  (ae) => {
9356
- var De;
9357
- ((De = k().split(".").pop()) == null ? void 0 : De.toLowerCase()) === "pptx" ? ae(O) : ae(pe, !1);
9356
+ var qe;
9357
+ ((qe = k().split(".").pop()) == null ? void 0 : qe.toLowerCase()) === "pptx" ? ae(O) : ae(pe, !1);
9358
9358
  },
9359
9359
  !0
9360
9360
  );
@@ -9376,7 +9376,7 @@ function Ya(t, e) {
9376
9376
  xe,
9377
9377
  (me) => {
9378
9378
  var Se;
9379
- ((Se = k().split(".").pop()) == null ? void 0 : Se.toLowerCase()) === "docx" ? me(Oe) : me(qe, !1);
9379
+ ((Se = k().split(".").pop()) == null ? void 0 : Se.toLowerCase()) === "docx" ? me(Oe) : me(De, !1);
9380
9380
  },
9381
9381
  !0
9382
9382
  );
@@ -9408,7 +9408,7 @@ function Ya(t, e) {
9408
9408
  p(s)[p(Ie)] ? Fe(He) : Fe(we, !1);
9409
9409
  });
9410
9410
  }
9411
- var _e = D(Pe, 2), Te = E(_e, !0);
9411
+ var _e = q(Pe, 2), Te = E(_e, !0);
9412
9412
  S(_e), S(ce), j(
9413
9413
  (Fe, Re, Ee) => {
9414
9414
  Be(ce, `${`dropdown-option ${i() < 50 && W() !== "suite" ? "common" : ""}` ?? ""} svelte-et3f61`), P(ce, "aria-label", Fe), P(ce, "title", Re), ce.disabled = p(s)[p(Ie)], je(Te, Ee);
@@ -9467,7 +9467,7 @@ ne(
9467
9467
  const Fv = (t, e, n) => {
9468
9468
  p(e).pause(), y(n, !1);
9469
9469
  };
9470
- var Ov = /* @__PURE__ */ T('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1qmk846"><i class="fa-solid fa-pause"></i></button>'), Mv = (t, e, n) => e(p(n)), qv = /* @__PURE__ */ T('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1qmk846"><i class="fa-solid fa-play"></i></button>'), Dv = /* @__PURE__ */ T('<div><div class="message-plus-play svelte-1qmk846"><div><div class="message-content svelte-1qmk846"><!></div></div> <!></div> <!></div>'), Nv = /* @__PURE__ */ T('<div class="message-plus-play svelte-1qmk846"><div class="message-received svelte-1qmk846"><div class="message-content svelte-1qmk846"><!></div></div> <!></div>'), Bv = /* @__PURE__ */ T('<div class="loading svelte-1qmk846"><!></div>'), Uv = /* @__PURE__ */ T('<div class="alert alert-danger"> </div>'), Yv = /* @__PURE__ */ T('<div class="chat-body svelte-1qmk846"><div class="empty-placeholder svelte-1qmk846"></div> <!> <!> <!></div>');
9470
+ var Ov = /* @__PURE__ */ T('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1qmk846"><i class="fa-solid fa-pause"></i></button>'), Mv = (t, e, n) => e(p(n)), Dv = /* @__PURE__ */ T('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1qmk846"><i class="fa-solid fa-play"></i></button>'), qv = /* @__PURE__ */ T('<div><div class="message-plus-play svelte-1qmk846"><div><div class="message-content svelte-1qmk846"><!></div></div> <!></div> <!></div>'), Nv = /* @__PURE__ */ T('<div class="message-plus-play svelte-1qmk846"><div class="message-received svelte-1qmk846"><div class="message-content svelte-1qmk846"><!></div></div> <!></div>'), Bv = /* @__PURE__ */ T('<div class="loading svelte-1qmk846"><!></div>'), Uv = /* @__PURE__ */ T('<div class="alert alert-danger"> </div>'), Yv = /* @__PURE__ */ T('<div class="chat-body svelte-1qmk846"><div class="empty-placeholder svelte-1qmk846"></div> <!> <!> <!></div>');
9471
9471
  const Hv = {
9472
9472
  hash: "svelte-1qmk846",
9473
9473
  code: `.empty-placeholder.svelte-1qmk846 {height:100%;}.chat-body.svelte-1qmk846 {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-1qmk846::-webkit-scrollbar {width:8px;}.chat-body.svelte-1qmk846::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-1qmk846::-webkit-scrollbar-thumb {background:rgba(\r
@@ -9492,11 +9492,11 @@ function Ha(t, e) {
9492
9492
  Nt(() => {
9493
9493
  s(), n(), f();
9494
9494
  });
9495
- var m = Yv(), b = D(E(m), 2);
9496
- Ye(b, 17, n, Ue, (_, k, q) => {
9497
- var M = Dv(), U = E(M), W = E(U), ce = E(W), N = E(ce);
9495
+ var m = Yv(), b = q(E(m), 2);
9496
+ Ye(b, 17, n, Ue, (_, k, D) => {
9497
+ var M = qv(), U = E(M), W = E(U), ce = E(W), N = E(ce);
9498
9498
  ei(N, () => p(k).html ?? ge.parseInline(p(k).content), !1, !1), S(ce), S(W);
9499
- var he = D(W, 2);
9499
+ var he = q(W, 2);
9500
9500
  {
9501
9501
  var Ie = (we) => {
9502
9502
  var _e = ye(), Te = be(_e);
@@ -9505,7 +9505,7 @@ function Ha(t, e) {
9505
9505
  var $e = Ov();
9506
9506
  $e.__click = [Fv, c, u], j((Je) => P($e, "title", Je), [() => /* @__PURE__ */ $u()]), w(Ee, $e);
9507
9507
  }, Re = (Ee) => {
9508
- var $e = qv();
9508
+ var $e = Dv();
9509
9509
  $e.__click = [Mv, h, k], j((Je) => P($e, "title", Je), [() => /* @__PURE__ */ Su()]), w(Ee, $e);
9510
9510
  };
9511
9511
  B(Te, (Ee) => {
@@ -9519,7 +9519,7 @@ function Ha(t, e) {
9519
9519
  });
9520
9520
  }
9521
9521
  S(U);
9522
- var Pe = D(U, 2);
9522
+ var Pe = q(U, 2);
9523
9523
  {
9524
9524
  var He = (we) => {
9525
9525
  Ya(we, {
@@ -9546,12 +9546,12 @@ function Ha(t, e) {
9546
9546
  }
9547
9547
  S(M), j(() => Be(W, Wn(p(k).sentByUser ? "message-sent" : "message-received"), "svelte-1qmk846")), w(_, M);
9548
9548
  });
9549
- var $ = D(b, 2);
9549
+ var $ = q(b, 2);
9550
9550
  {
9551
9551
  var z = (_) => {
9552
- var k = Nv(), q = E(k), M = E(q), U = E(M);
9553
- ei(U, s, !1, !1), S(M), S(q);
9554
- var W = D(q, 2);
9552
+ var k = Nv(), D = E(k), M = E(D), U = E(M);
9553
+ ei(U, s, !1, !1), S(M), S(D);
9554
+ var W = q(D, 2);
9555
9555
  {
9556
9556
  var ce = (N) => {
9557
9557
  Un(N, {
@@ -9567,7 +9567,7 @@ function Ha(t, e) {
9567
9567
  }
9568
9568
  S(k), w(_, k);
9569
9569
  }, x = (_) => {
9570
- var k = ye(), q = be(k);
9570
+ var k = ye(), D = be(k);
9571
9571
  {
9572
9572
  var M = (U) => {
9573
9573
  var W = Bv(), ce = E(W);
@@ -9579,7 +9579,7 @@ function Ha(t, e) {
9579
9579
  }), S(W), w(U, W);
9580
9580
  };
9581
9581
  B(
9582
- q,
9582
+ D,
9583
9583
  (U) => {
9584
9584
  r() && U(M);
9585
9585
  },
@@ -9592,11 +9592,11 @@ function Ha(t, e) {
9592
9592
  s().length > 0 ? _(z) : _(x, !1);
9593
9593
  });
9594
9594
  }
9595
- var C = D($, 2);
9595
+ var C = q($, 2);
9596
9596
  {
9597
9597
  var F = (_) => {
9598
- var k = Uv(), q = E(k, !0);
9599
- S(k), j(() => je(q, i())), w(_, k);
9598
+ var k = Uv(), D = E(k, !0);
9599
+ S(k), j(() => je(D, i())), w(_, k);
9600
9600
  };
9601
9601
  B(C, (_) => {
9602
9602
  i() != "" && _(F);
@@ -9802,13 +9802,13 @@ function Ga(t, e) {
9802
9802
  var u = (d) => {
9803
9803
  var f = tg(), h = E(f), m = E(h, !0);
9804
9804
  S(h);
9805
- var b = D(h, 2);
9805
+ var b = q(h, 2);
9806
9806
  Ye(b, 21, i, Ue, ($, z) => {
9807
9807
  var x = eg(), C = E(x);
9808
9808
  C.__click = [Qv, r, z, a];
9809
9809
  var F = E(C), _ = E(F, !0);
9810
9810
  S(F), S(C);
9811
- var k = D(C, 2);
9811
+ var k = q(C, 2);
9812
9812
  k.__click = [Kv, o, z], S(x), j(() => {
9813
9813
  P(x, "style", r()._id === p(z)._id ? "background: #295dcf; cursor: default;" : ""), je(_, p(z).title);
9814
9814
  }), w($, x);
@@ -9876,7 +9876,7 @@ function Wa(t, e) {
9876
9876
  Nt(() => {
9877
9877
  p(k) && Y.setForgeButtonsPinned(p(_));
9878
9878
  });
9879
- const q = async (J, H, X, ue = []) => {
9879
+ const D = async (J, H, X, ue = []) => {
9880
9880
  if (y(m, ""), y(u, !0), y(c, L([
9881
9881
  ...p(c),
9882
9882
  new _t((/* @__PURE__ */ new Date()).getTime(), !0, J, J)
@@ -9951,11 +9951,11 @@ function Wa(t, e) {
9951
9951
  const R = ce - me.clientX, G = N - me.clientY, V = Math.min(Math.max(he + R, 300), Ze), Le = Math.min(Math.max(Ie + G, 400), I);
9952
9952
  Se.style.width = `${V}px`, Se.style.height = `${Le}px`;
9953
9953
  }
9954
- }, qe = () => {
9954
+ }, De = () => {
9955
9955
  var me;
9956
- W = !1, (me = document.querySelector(".chat")) == null || me.classList.remove("no-select"), document.removeEventListener("mousemove", Oe), document.removeEventListener("mouseup", qe);
9956
+ W = !1, (me = document.querySelector(".chat")) == null || me.classList.remove("no-select"), document.removeEventListener("mousemove", Oe), document.removeEventListener("mouseup", De);
9957
9957
  };
9958
- document.addEventListener("mousemove", Oe), document.addEventListener("mouseup", qe);
9958
+ document.addEventListener("mousemove", Oe), document.addEventListener("mouseup", De);
9959
9959
  }
9960
9960
  }
9961
9961
  const He = () => {
@@ -9999,7 +9999,7 @@ function Wa(t, e) {
9999
9999
  }, Z = (Q) => {
10000
10000
  var xe = ye(), Oe = be(xe);
10001
10001
  {
10002
- var qe = (me) => {
10002
+ var De = (me) => {
10003
10003
  var Se = ag(), Ze = be(Se);
10004
10004
  Ga(Ze, {
10005
10005
  get showHistory() {
@@ -10027,7 +10027,7 @@ function Wa(t, e) {
10027
10027
  y(m, L(O));
10028
10028
  }
10029
10029
  });
10030
- var I = D(Ze, 6), R = E(I);
10030
+ var I = q(Ze, 6), R = E(I);
10031
10031
  Un(R, {
10032
10032
  icon: "hugeicons:resize-field",
10033
10033
  width: "25px",
@@ -10037,7 +10037,7 @@ function Wa(t, e) {
10037
10037
  color: "white",
10038
10038
  style: "margin: 2px 0 0 2px;"
10039
10039
  }), S(I);
10040
- var G = D(I, 2);
10040
+ var G = q(I, 2);
10041
10041
  ka(G, {
10042
10042
  get show() {
10043
10043
  return p(n);
@@ -10082,7 +10082,7 @@ function Wa(t, e) {
10082
10082
  y(m, L(O));
10083
10083
  }
10084
10084
  });
10085
- var V = D(G, 2);
10085
+ var V = q(G, 2);
10086
10086
  Ha(V, {
10087
10087
  get messages() {
10088
10088
  return p(c);
@@ -10121,9 +10121,9 @@ function Wa(t, e) {
10121
10121
  y(a, L(O));
10122
10122
  }
10123
10123
  });
10124
- var Le = D(V, 2);
10124
+ var Le = q(V, 2);
10125
10125
  _a(Le, {
10126
- sendMessage: q,
10126
+ sendMessage: D,
10127
10127
  stopMessage: M,
10128
10128
  get loading() {
10129
10129
  return p(u);
@@ -10160,7 +10160,7 @@ function Wa(t, e) {
10160
10160
  B(
10161
10161
  Oe,
10162
10162
  (me) => {
10163
- p(o) && me(qe);
10163
+ p(o) && me(De);
10164
10164
  },
10165
10165
  !0
10166
10166
  );
@@ -10177,7 +10177,7 @@ function Wa(t, e) {
10177
10177
  p(n) && J(Fe);
10178
10178
  });
10179
10179
  }
10180
- var Re = D(Te, 2);
10180
+ var Re = q(Te, 2);
10181
10181
  Re.__click = [
10182
10182
  ig,
10183
10183
  He,
@@ -10185,20 +10185,20 @@ function Wa(t, e) {
10185
10185
  C,
10186
10186
  F
10187
10187
  ];
10188
- var Ee = D(E(Re)), $e = E(Ee, !0);
10188
+ var Ee = q(E(Re)), $e = E(Ee, !0);
10189
10189
  S(Ee), S(Re);
10190
- var Je = D(Re, 2);
10190
+ var Je = q(Re, 2);
10191
10191
  {
10192
10192
  var Ve = (J) => {
10193
10193
  var H = dg(), X = E(H);
10194
10194
  X.__click = [lg, _];
10195
- var ue = D(X, 2), Z = E(ue), Q = E(Z, !0);
10195
+ var ue = q(X, 2), Z = E(ue), Q = E(Z, !0);
10196
10196
  S(Z);
10197
- var xe = D(Z, 2);
10197
+ var xe = q(Z, 2);
10198
10198
  xe.__click = [cg, we], S(ue);
10199
- var Oe = D(ue, 2), qe = E(Oe), me = E(qe, !0);
10200
- S(qe);
10201
- var Se = D(qe, 2);
10199
+ var Oe = q(ue, 2), De = E(Oe), me = E(De, !0);
10200
+ S(De);
10201
+ var Se = q(De, 2);
10202
10202
  Se.__click = [ug, we], S(Oe), S(H), j(
10203
10203
  (Ze, I) => {
10204
10204
  te(H, "visible", p(_)), P(X, "aria-label", p(_) ? "unpin forge buttons" : "pin forge buttons"), te(X, "pinned", p(_)), je(Q, Ze), je(me, I);