akpm-knowledge-base-chat 2.0.56 → 2.0.58

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 +612 -605
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,9 +1,9 @@
1
- /* Version: 2.0.56 */
2
- var Po = Object.defineProperty;
1
+ /* Version: 2.0.58 */
2
+ var Mo = Object.defineProperty;
3
3
  var us = (t) => {
4
4
  throw TypeError(t);
5
5
  };
6
- var Oo = (t, e, n) => e in t ? Po(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
+ var Oo = (t, e, n) => e in t ? Mo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
7
7
  var $ = (t, e, n) => Oo(t, typeof e != "symbol" ? e + "" : e, n), ds = (t, e, n) => e.has(t) || us("Cannot " + n);
8
8
  var gt = (t, e, n) => (ds(t, e, "read from private field"), n ? n.call(t) : e.get(t)), si = (t, e, n) => e.has(t) ? us("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), ai = (t, e, n, r) => (ds(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
9
  const Uo = "5";
@@ -59,7 +59,7 @@ function il(t) {
59
59
  return rl.includes(t);
60
60
  }
61
61
  const di = !1;
62
- var Nr = Array.isArray, sl = Array.prototype.indexOf, ji = Array.from, kr = Object.keys, yr = Object.defineProperty, xn = Object.getOwnPropertyDescriptor, ia = Object.getOwnPropertyDescriptors, al = Object.prototype, ol = Array.prototype, Fi = Object.getPrototypeOf;
62
+ var Nr = Array.isArray, sl = Array.prototype.indexOf, ji = Array.from, kr = Object.keys, yr = Object.defineProperty, _n = Object.getOwnPropertyDescriptor, ia = Object.getOwnPropertyDescriptors, al = Object.prototype, ol = Array.prototype, Fi = Object.getPrototypeOf;
63
63
  function ll(t) {
64
64
  return typeof t == "function";
65
65
  }
@@ -72,7 +72,7 @@ function zr(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const $t = 2, sa = 4, ir = 8, Br = 16, Xt = 32, zn = 64, Sr = 128, Sn = 256, Cr = 512, pt = 1024, sn = 2048, Cn = 4096, Yt = 8192, Pn = 16384, aa = 32768, qr = 65536, ul = 1 << 17, dl = 1 << 19, oa = 1 << 20, rn = Symbol("$state"), la = Symbol("legacy props"), fl = Symbol("");
75
+ const $t = 2, sa = 4, ir = 8, Br = 16, Xt = 32, Sn = 64, Sr = 128, Cn = 256, Cr = 512, pt = 1024, sn = 2048, Tn = 4096, Yt = 8192, Mn = 16384, aa = 32768, qr = 65536, ul = 1 << 17, dl = 1 << 19, oa = 1 << 20, rn = Symbol("$state"), la = Symbol("legacy props"), fl = Symbol("");
76
76
  function ca(t) {
77
77
  return t === this.v;
78
78
  }
@@ -142,7 +142,7 @@ function ln(t, e = !1) {
142
142
  }
143
143
  // @__NO_SIDE_EFFECTS__
144
144
  function da(t) {
145
- return Be !== null && Be.f & $t && (Gt === null ? Ml([t]) : Gt.push(t)), t;
145
+ return Be !== null && Be.f & $t && (Gt === null ? Pl([t]) : Gt.push(t)), t;
146
146
  }
147
147
  function oi(t, e) {
148
148
  return v(
@@ -156,17 +156,17 @@ function v(t, e) {
156
156
  (Gt === null || !Gt.includes(t)) && kl(), fi(t, e);
157
157
  }
158
158
  function fi(t, e) {
159
- return t.equals(e) || (t.v, t.v = e, t.wv = $a(), fa(t, sn), Jr() && Ce !== null && Ce.f & pt && !(Ce.f & (Xt | zn)) && (Vt === null ? Pl([t]) : Vt.push(t))), e;
159
+ return t.equals(e) || (t.v, t.v = e, t.wv = $a(), fa(t, sn), Jr() && Ce !== null && Ce.f & pt && !(Ce.f & (Xt | Sn)) && (Vt === null ? Ml([t]) : Vt.push(t))), e;
160
160
  }
161
161
  function fa(t, e) {
162
162
  var n = t.reactions;
163
163
  if (n !== null)
164
164
  for (var r = Jr(), i = n.length, s = 0; s < i; s++) {
165
165
  var a = n[s], o = a.f;
166
- o & sn || !r && a === Ce || (Mt(a, e), o & (pt | Sn) && (o & $t ? fa(
166
+ o & sn || !r && a === Ce || (Pt(a, e), o & (pt | Cn) && (o & $t ? fa(
167
167
  /** @type {Derived} */
168
168
  a,
169
- Cn
169
+ Tn
170
170
  ) : Xr(
171
171
  /** @type {Effect} */
172
172
  a
@@ -260,7 +260,7 @@ function C(t, e = null, n) {
260
260
  if (c === rn)
261
261
  return t;
262
262
  var f = i.get(c), h = c in l;
263
- if (f === void 0 && (!h || (b = xn(l, c)) != null && b.writable) && (f = bt(C(h ? l[c] : mt, o)), i.set(c, f)), f !== void 0) {
263
+ if (f === void 0 && (!h || (b = _n(l, c)) != null && b.writable) && (f = bt(C(h ? l[c] : mt, o)), i.set(c, f)), f !== void 0) {
264
264
  var p = d(f);
265
265
  return p === mt ? void 0 : p;
266
266
  }
@@ -288,7 +288,7 @@ function C(t, e = null, n) {
288
288
  if (c === rn)
289
289
  return !0;
290
290
  var u = i.get(c), f = u !== void 0 && u.v !== mt || Reflect.has(l, c);
291
- if (u !== void 0 || Ce !== null && (!f || (p = xn(l, c)) != null && p.writable)) {
291
+ if (u !== void 0 || Ce !== null && (!f || (p = _n(l, c)) != null && p.writable)) {
292
292
  u === void 0 && (u = bt(f ? C(l[c], o) : mt), i.set(c, u));
293
293
  var h = d(u);
294
294
  if (h === mt)
@@ -305,7 +305,7 @@ function C(t, e = null, n) {
305
305
  var w = i.get(b + "");
306
306
  w !== void 0 ? v(w, mt) : b in l && (w = bt(mt), i.set(b + "", w));
307
307
  }
308
- h === void 0 ? (!p || (T = xn(l, c)) != null && T.writable) && (h = bt(void 0), v(h, C(u, o)), i.set(c, h)) : (p = h.v !== mt, v(h, C(u, o)));
308
+ h === void 0 ? (!p || (T = _n(l, c)) != null && T.writable) && (h = bt(void 0), v(h, C(u, o)), i.set(c, h)) : (p = h.v !== mt, v(h, C(u, o)));
309
309
  var R = Reflect.getOwnPropertyDescriptor(l, c);
310
310
  if (R != null && R.set && R.set.call(f, u), !p) {
311
311
  if (s && typeof c == "string") {
@@ -349,7 +349,7 @@ function pi() {
349
349
  if (ps === void 0) {
350
350
  ps = window;
351
351
  var t = Element.prototype, e = Node.prototype;
352
- ha = xn(e, "firstChild").get, pa = xn(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
352
+ ha = _n(e, "firstChild").get, pa = _n(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
353
353
  }
354
354
  }
355
355
  function hn(t = "") {
@@ -406,13 +406,13 @@ function D(t, e = 1, n = !1) {
406
406
  return It(r), /** @type {TemplateNode} */
407
407
  r;
408
408
  }
409
- function Mi(t) {
409
+ function Pi(t) {
410
410
  t.textContent = "";
411
411
  }
412
412
  // @__NO_SIDE_EFFECTS__
413
413
  function Ke(t) {
414
414
  var e = $t | sn;
415
- Ce === null ? e |= Sn : Ce.f |= oa;
415
+ Ce === null ? e |= Cn : Ce.f |= oa;
416
416
  var n = Be !== null && Be.f & $t ? (
417
417
  /** @type {Derived} */
418
418
  Be
@@ -446,7 +446,7 @@ function ga(t) {
446
446
  t.children = null;
447
447
  for (var n = 0; n < e.length; n += 1) {
448
448
  var r = e[n];
449
- r.f & $t ? Pi(
449
+ r.f & $t ? Mi(
450
450
  /** @type {Derived} */
451
451
  r
452
452
  ) : Jt(
@@ -478,21 +478,21 @@ function ma(t) {
478
478
  return e;
479
479
  }
480
480
  function ba(t) {
481
- var e = ma(t), n = (wn || t.f & Sn) && t.deps !== null ? Cn : pt;
482
- Mt(t, n), t.equals(e) || (t.v = e, t.wv = $a());
481
+ var e = ma(t), n = (xn || t.f & Cn) && t.deps !== null ? Tn : pt;
482
+ Pt(t, n), t.equals(e) || (t.v = e, t.wv = $a());
483
483
  }
484
- function Pi(t) {
485
- ga(t), tr(t, 0), Mt(t, Pn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
484
+ function Mi(t) {
485
+ ga(t), tr(t, 0), Pt(t, Mn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
486
486
  }
487
487
  function wa(t) {
488
- Ce === null && Be === null && vl(), Be !== null && Be.f & Sn && pl(), Ni && hl();
488
+ Ce === null && Be === null && vl(), Be !== null && Be.f & Cn && pl(), Ni && hl();
489
489
  }
490
490
  function Tl(t, e) {
491
491
  var n = e.last;
492
492
  n === null ? e.last = e.first = t : (n.next = t, t.prev = n, e.last = t);
493
493
  }
494
- function Tn(t, e, n, r = !0) {
495
- var i = (t & zn) !== 0, s = Ce, a = {
494
+ function En(t, e, n, r = !0) {
495
+ var i = (t & Sn) !== 0, s = Ce, a = {
496
496
  ctx: De,
497
497
  deps: null,
498
498
  deriveds: null,
@@ -530,8 +530,8 @@ function Tn(t, e, n, r = !0) {
530
530
  return a;
531
531
  }
532
532
  function El(t) {
533
- const e = Tn(ir, null, !1);
534
- return Mt(e, pt), e.teardown = t, e;
533
+ const e = En(ir, null, !1);
534
+ return Pt(e, pt), e.teardown = t, e;
535
535
  }
536
536
  function st(t) {
537
537
  wa();
@@ -555,13 +555,13 @@ function Il(t) {
555
555
  return wa(), or(t);
556
556
  }
557
557
  function $l(t) {
558
- const e = Tn(zn, t, !0);
558
+ const e = En(Sn, t, !0);
559
559
  return () => {
560
560
  Jt(e);
561
561
  };
562
562
  }
563
563
  function Al(t) {
564
- const e = Tn(zn, t, !0);
564
+ const e = En(Sn, t, !0);
565
565
  return (n = {}) => new Promise((r) => {
566
566
  n.outro ? Tr(e, () => {
567
567
  Jt(e), r(void 0);
@@ -569,7 +569,7 @@ function Al(t) {
569
569
  });
570
570
  }
571
571
  function Un(t) {
572
- return Tn(sa, t, !1);
572
+ return En(sa, t, !1);
573
573
  }
574
574
  function sr(t, e) {
575
575
  var n = (
@@ -589,24 +589,24 @@ function ar() {
589
589
  if (d(t.l.r2)) {
590
590
  for (var e of t.l.r1) {
591
591
  var n = e.effect;
592
- n.f & pt && Mt(n, Cn), Bn(n) && Zr(n), e.ran = !1;
592
+ n.f & pt && Pt(n, Tn), Bn(n) && Zr(n), e.ran = !1;
593
593
  }
594
594
  t.l.r2.v = !1;
595
595
  }
596
596
  });
597
597
  }
598
598
  function or(t) {
599
- return Tn(ir, t, !0);
599
+ return En(ir, t, !0);
600
600
  }
601
- function M(t, e = [], n = Ke) {
601
+ function P(t, e = [], n = Ke) {
602
602
  const r = e.map(n);
603
603
  return Gr(() => t(...r.map(d)));
604
604
  }
605
605
  function Gr(t, e = 0) {
606
- return Tn(ir | Br | e, t, !0);
606
+ return En(ir | Br | e, t, !0);
607
607
  }
608
608
  function Dn(t, e = !0) {
609
- return Tn(ir | Xt, t, !0, e);
609
+ return En(ir | Xt, t, !0, e);
610
610
  }
611
611
  function xa(t) {
612
612
  var e = t.teardown;
@@ -625,7 +625,7 @@ function _a(t) {
625
625
  if (e !== null) {
626
626
  t.deriveds = null;
627
627
  for (var n = 0; n < e.length; n += 1)
628
- Pi(e[n]);
628
+ Mi(e[n]);
629
629
  }
630
630
  }
631
631
  function ka(t, e = !1) {
@@ -653,7 +653,7 @@ function Jt(t, e = !0) {
653
653
  }
654
654
  n = !0;
655
655
  }
656
- ka(t, e && !n), _a(t), tr(t, 0), Mt(t, Pn);
656
+ ka(t, e && !n), _a(t), tr(t, 0), Pt(t, Mn);
657
657
  var a = t.transitions;
658
658
  if (a !== null)
659
659
  for (const l of a)
@@ -697,7 +697,7 @@ function Er(t) {
697
697
  }
698
698
  function Sa(t, e) {
699
699
  if (t.f & Yt) {
700
- t.f ^= Yt, t.f & pt || (t.f ^= pt), Bn(t) && (Mt(t, sn), Xr(t));
700
+ t.f ^= Yt, t.f & pt || (t.f ^= pt), Bn(t) && (Pt(t, sn), Xr(t));
701
701
  for (var n = t.first; n !== null; ) {
702
702
  var r = n.next, i = (n.f & qr) !== 0 || (n.f & Xt) !== 0;
703
703
  Sa(n, i ? e : !1), n = r;
@@ -739,7 +739,7 @@ function vs(t) {
739
739
  function gs(t) {
740
740
  Ni = t;
741
741
  }
742
- let bn = [], jn = 0;
742
+ let wn = [], jn = 0;
743
743
  let Be = null, fn = !1;
744
744
  function Wt(t) {
745
745
  Be = t;
@@ -749,14 +749,14 @@ function Dt(t) {
749
749
  Ce = t;
750
750
  }
751
751
  let Gt = null;
752
- function Ml(t) {
752
+ function Pl(t) {
753
753
  Gt = t;
754
754
  }
755
755
  let wt = null, Tt = 0, Vt = null;
756
- function Pl(t) {
756
+ function Ml(t) {
757
757
  Vt = t;
758
758
  }
759
- let Ia = 1, Ar = 0, wn = !1, De = null;
759
+ let Ia = 1, Ar = 0, xn = !1, De = null;
760
760
  function $a() {
761
761
  return ++Ia;
762
762
  }
@@ -768,10 +768,10 @@ function Bn(t) {
768
768
  var e = t.f;
769
769
  if (e & sn)
770
770
  return !0;
771
- if (e & Cn) {
772
- var n = t.deps, r = (e & Sn) !== 0;
771
+ if (e & Tn) {
772
+ var n = t.deps, r = (e & Cn) !== 0;
773
773
  if (n !== null) {
774
- var i, s, a = (e & Cr) !== 0, o = r && Ce !== null && !wn, l = n.length;
774
+ var i, s, a = (e & Cr) !== 0, o = r && Ce !== null && !xn, l = n.length;
775
775
  if (a || o) {
776
776
  for (i = 0; i < l; i++)
777
777
  s = n[i], (a || !((c = s == null ? void 0 : s.reactions) != null && c.includes(t))) && (s.reactions ?? (s.reactions = [])).push(t);
@@ -787,7 +787,7 @@ function Bn(t) {
787
787
  ), s.wv > t.wv)
788
788
  return !0;
789
789
  }
790
- (!r || Ce !== null && !wn) && Mt(t, pt);
790
+ (!r || Ce !== null && !xn) && Pt(t, pt);
791
791
  }
792
792
  return !1;
793
793
  }
@@ -805,7 +805,7 @@ function Ol(t, e) {
805
805
  throw gr = !1, t;
806
806
  }
807
807
  function Ul(t) {
808
- return (t.f & Pn) === 0 && (t.parent === null || (t.parent.f & Sr) === 0);
808
+ return (t.f & Mn) === 0 && (t.parent === null || (t.parent.f & Sr) === 0);
809
809
  }
810
810
  function Wr(t, e, n, r) {
811
811
  if (gr) {
@@ -829,7 +829,7 @@ function Aa(t, e, n = 0) {
829
829
  s,
830
830
  e,
831
831
  n + 1
832
- ) : e === s && (n === 0 ? Mt(s, sn) : s.f & pt && Mt(s, Cn), Xr(
832
+ ) : e === s && (n === 0 ? Pt(s, sn) : s.f & pt && Pt(s, Tn), Xr(
833
833
  /** @type {Effect} */
834
834
  s
835
835
  ));
@@ -837,9 +837,9 @@ function Aa(t, e, n = 0) {
837
837
  }
838
838
  function La(t) {
839
839
  var p;
840
- var e = wt, n = Tt, r = Vt, i = Be, s = wn, a = Gt, o = De, l = fn, c = t.f;
840
+ var e = wt, n = Tt, r = Vt, i = Be, s = xn, a = Gt, o = De, l = fn, c = t.f;
841
841
  wt = /** @type {null | Value[]} */
842
- null, Tt = 0, Vt = null, Be = c & (Xt | zn) ? null : t, wn = !Rn && (c & Sn) !== 0, Gt = null, De = t.ctx, fn = !1, Ar++;
842
+ null, Tt = 0, Vt = null, Be = c & (Xt | Sn) ? null : t, xn = !Rn && (c & Cn) !== 0, Gt = null, De = t.ctx, fn = !1, Ar++;
843
843
  try {
844
844
  var u = (
845
845
  /** @type {Function} */
@@ -852,11 +852,11 @@ function La(t) {
852
852
  f[Tt + h] = wt[h];
853
853
  else
854
854
  t.deps = f = wt;
855
- if (!wn)
855
+ if (!xn)
856
856
  for (h = Tt; h < f.length; h++)
857
857
  ((p = f[h]).reactions ?? (p.reactions = [])).push(t);
858
858
  } else f !== null && Tt < f.length && (tr(t, Tt), f.length = Tt);
859
- if (Jr() && Vt !== null && !(t.f & ($t | Cn | sn)))
859
+ if (Jr() && Vt !== null && !(t.f & ($t | Tn | sn)))
860
860
  for (h = 0; h < /** @type {Source[]} */
861
861
  Vt.length; h++)
862
862
  Aa(
@@ -866,7 +866,7 @@ function La(t) {
866
866
  );
867
867
  return i !== null && Ar++, u;
868
868
  } finally {
869
- wt = e, Tt = n, Vt = r, Be = i, wn = s, Gt = a, De = o, fn = l;
869
+ wt = e, Tt = n, Vt = r, Be = i, xn = s, Gt = a, De = o, fn = l;
870
870
  }
871
871
  }
872
872
  function Nl(t, e) {
@@ -881,7 +881,7 @@ function Nl(t, e) {
881
881
  n === null && e.f & $t && // 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
- (wt === null || !wt.includes(e)) && (Mt(e, Cn), e.f & (Sn | Cr) || (e.f ^= Cr), tr(
884
+ (wt === null || !wt.includes(e)) && (Pt(e, Tn), e.f & (Cn | Cr) || (e.f ^= Cr), tr(
885
885
  /** @type {Derived} **/
886
886
  e,
887
887
  0
@@ -895,8 +895,8 @@ function tr(t, e) {
895
895
  }
896
896
  function Zr(t) {
897
897
  var e = t.f;
898
- if (!(e & Pn)) {
899
- Mt(t, pt);
898
+ if (!(e & Mn)) {
899
+ Pt(t, pt);
900
900
  var n = Ce, r = De;
901
901
  Ce = t;
902
902
  try {
@@ -949,7 +949,7 @@ function Bl(t) {
949
949
  if (e !== 0)
950
950
  for (var n = 0; n < e; n++) {
951
951
  var r = t[n];
952
- if (!(r.f & (Pn | Yt)))
952
+ if (!(r.f & (Mn | Yt)))
953
953
  try {
954
954
  Bn(r) && (Zr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? ya(r) : r.fn = null));
955
955
  } catch (i) {
@@ -960,20 +960,20 @@ function Bl(t) {
960
960
  function ql() {
961
961
  if (Kn = !1, jn > 1001)
962
962
  return;
963
- const t = bn;
964
- bn = [], ja(t), Kn || (jn = 0, er = null);
963
+ const t = wn;
964
+ wn = [], ja(t), Kn || (jn = 0, er = null);
965
965
  }
966
966
  function Xr(t) {
967
967
  mr === Ea && (Kn || (Kn = !0, queueMicrotask(ql))), er = t;
968
968
  for (var e = t; e.parent !== null; ) {
969
969
  e = e.parent;
970
970
  var n = e.f;
971
- if (n & (zn | Xt)) {
971
+ if (n & (Sn | Xt)) {
972
972
  if (!(n & pt)) return;
973
973
  e.f ^= pt;
974
974
  }
975
975
  }
976
- bn.push(e);
976
+ wn.push(e);
977
977
  }
978
978
  function Fa(t, e) {
979
979
  var n = t.first, r = [];
@@ -1014,29 +1014,29 @@ function Fa(t, e) {
1014
1014
  l = r[u], e.push(l), Fa(l, e);
1015
1015
  }
1016
1016
  function g(t) {
1017
- var e = mr, n = bn;
1017
+ var e = mr, n = wn;
1018
1018
  try {
1019
1019
  Ra();
1020
1020
  const i = [];
1021
- mr = Dl, bn = i, Kn = !1, ja(n);
1021
+ mr = Dl, wn = i, Kn = !1, ja(n);
1022
1022
  var r = t == null ? void 0 : t();
1023
- return Fl(), (bn.length > 0 || i.length > 0) && g(), jn = 0, er = null, r;
1023
+ return Fl(), (wn.length > 0 || i.length > 0) && g(), jn = 0, er = null, r;
1024
1024
  } finally {
1025
- mr = e, bn = n;
1025
+ mr = e, wn = n;
1026
1026
  }
1027
1027
  }
1028
- async function In() {
1028
+ async function bn() {
1029
1029
  await Promise.resolve(), g();
1030
1030
  }
1031
1031
  function d(t) {
1032
1032
  var u;
1033
1033
  var e = t.f, n = (e & $t) !== 0;
1034
- if (n && e & Pn) {
1034
+ if (n && e & Mn) {
1035
1035
  var r = ma(
1036
1036
  /** @type {Derived} */
1037
1037
  t
1038
1038
  );
1039
- return Pi(
1039
+ return Mi(
1040
1040
  /** @type {Derived} */
1041
1041
  t
1042
1042
  ), r;
@@ -1077,7 +1077,7 @@ function Zt(t) {
1077
1077
  }
1078
1078
  }
1079
1079
  const Hl = -7169;
1080
- function Mt(t, e) {
1080
+ function Pt(t, e) {
1081
1081
  t.f = t.f & Hl | e;
1082
1082
  }
1083
1083
  function nr(t, e = 1) {
@@ -1165,7 +1165,7 @@ function Yl(t, e) {
1165
1165
  }
1166
1166
  }
1167
1167
  function Gl(t) {
1168
- Se && /* @__PURE__ */ _t(t) !== null && Mi(t);
1168
+ Se && /* @__PURE__ */ _t(t) !== null && Pi(t);
1169
1169
  }
1170
1170
  let ms = !1;
1171
1171
  function Da() {
@@ -1187,7 +1187,7 @@ function Da() {
1187
1187
  { capture: !0 }
1188
1188
  ));
1189
1189
  }
1190
- function Ma(t) {
1190
+ function Pa(t) {
1191
1191
  var e = Be, n = Ce;
1192
1192
  Wt(null), Dt(null);
1193
1193
  try {
@@ -1197,17 +1197,17 @@ function Ma(t) {
1197
1197
  }
1198
1198
  }
1199
1199
  function Jl(t, e, n, r = n) {
1200
- t.addEventListener(e, () => Ma(n));
1200
+ t.addEventListener(e, () => Pa(n));
1201
1201
  const i = t.__on_r;
1202
1202
  i ? t.__on_r = () => {
1203
1203
  i(), r(!0);
1204
1204
  } : t.__on_r = () => r(!0), Da();
1205
1205
  }
1206
- const Pa = /* @__PURE__ */ new Set(), bi = /* @__PURE__ */ new Set();
1206
+ const Ma = /* @__PURE__ */ new Set(), bi = /* @__PURE__ */ new Set();
1207
1207
  function Oa(t, e, n, r) {
1208
1208
  function i(s) {
1209
1209
  if (r.capture || Zn.call(e, s), !s.cancelBubble)
1210
- return Ma(() => n.call(this, s));
1210
+ return Pa(() => n.call(this, s));
1211
1211
  }
1212
1212
  return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? Nn(() => {
1213
1213
  e.addEventListener(t, i, r);
@@ -1221,7 +1221,7 @@ function nn(t, e, n, r, i) {
1221
1221
  }
1222
1222
  function mn(t) {
1223
1223
  for (var e = 0; e < t.length; e++)
1224
- Pa.add(t[e]);
1224
+ Ma.add(t[e]);
1225
1225
  for (var n of bi)
1226
1226
  n(t);
1227
1227
  }
@@ -1406,7 +1406,7 @@ function Zl(t, e) {
1406
1406
  a;
1407
1407
  } catch (a) {
1408
1408
  if (a === Ln)
1409
- return e.recover === !1 && ml(), pi(), Mi(n), tn(!1), Ua(t, e);
1409
+ return e.recover === !1 && ml(), pi(), Pi(n), tn(!1), Ua(t, e);
1410
1410
  throw a;
1411
1411
  } finally {
1412
1412
  tn(r), It(i);
@@ -1427,7 +1427,7 @@ function Na(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
1427
1427
  }
1428
1428
  }
1429
1429
  };
1430
- l(ji(Pa)), bi.add(l);
1430
+ l(ji(Ma)), bi.add(l);
1431
1431
  var c = void 0, u = Al(() => {
1432
1432
  var f = n ?? e.appendChild(hn());
1433
1433
  return Dn(() => {
@@ -1489,7 +1489,7 @@ function ee(t, e, n = !1) {
1489
1489
  l = !1, e(c), l || u(null, null);
1490
1490
  }, o), Se && (r = Re);
1491
1491
  }
1492
- function dt(t, e) {
1492
+ function ft(t, e) {
1493
1493
  return e;
1494
1494
  }
1495
1495
  function Vl(t, e, n, r) {
@@ -1502,7 +1502,7 @@ function Vl(t, e, n, r) {
1502
1502
  /** @type {Element} */
1503
1503
  n.parentNode
1504
1504
  );
1505
- Mi(l), l.append(
1505
+ Pi(l), l.append(
1506
1506
  /** @type {Element} */
1507
1507
  n
1508
1508
  ), r.clear(), on(t, e[0].prev, e[s - 1].next);
@@ -1615,14 +1615,14 @@ function Ql(t, e, n, r, i, s, a, o) {
1615
1615
  if (c && Kl(I, T, j, i), I.e.f & Yt && (Er(I.e), l && ((lt = I.a) == null || lt.unfix(), (R ?? (R = /* @__PURE__ */ new Set())).delete(I))), I !== p) {
1616
1616
  if (b !== void 0 && b.has(I)) {
1617
1617
  if (x.length < k.length) {
1618
- var P = k[0], W;
1619
- w = P.prev;
1620
- var ke = x[0], Me = x[x.length - 1];
1618
+ var M = k[0], W;
1619
+ w = M.prev;
1620
+ var ke = x[0], Pe = x[x.length - 1];
1621
1621
  for (W = 0; W < x.length; W += 1)
1622
- bs(x[W], P, n);
1622
+ bs(x[W], M, n);
1623
1623
  for (W = 0; W < k.length; W += 1)
1624
1624
  b.delete(k[W]);
1625
- on(e, ke.prev, Me.next), on(e, w, ke), on(e, Me, P), p = P, w = Me, j -= 1, x = [], k = [];
1625
+ on(e, ke.prev, Pe.next), on(e, w, ke), on(e, Pe, M), p = M, w = Pe, j -= 1, x = [], k = [];
1626
1626
  } else
1627
1627
  b.delete(I), bs(I, p, n), on(e, I.prev, I.next), on(e, I, w === null ? e.first : w.next), on(e, w, I), w = I;
1628
1628
  continue;
@@ -2069,8 +2069,8 @@ function _i(t, e, n, r, i) {
2069
2069
  var F = !1;
2070
2070
  if (c)
2071
2071
  for (var I = Math.ceil(k / 16.666666666666668), j = 0; j <= I; j += 1) {
2072
- var E = R + x * f(j / I), P = _s(c(E, 1 - E));
2073
- T.push(P), F || (F = P.overflow === "hidden");
2072
+ var E = R + x * f(j / I), M = _s(c(E, 1 - E));
2073
+ T.push(M), F || (F = M.overflow === "hidden");
2074
2074
  }
2075
2075
  F && (t.style.overflow = "hidden"), b = () => {
2076
2076
  var W = (
@@ -2361,7 +2361,7 @@ function bc(t, e) {
2361
2361
  return new Proxy({ props: t, exclude: e, special: {}, version: bt(0) }, mc);
2362
2362
  }
2363
2363
  function zs(t) {
2364
- for (var e = Ce, n = Ce; e !== null && !(e.f & (Xt | zn)); )
2364
+ for (var e = Ce, n = Ce; e !== null && !(e.f & (Xt | Sn)); )
2365
2365
  e = e.parent;
2366
2366
  try {
2367
2367
  return Dt(e), t();
@@ -2377,7 +2377,7 @@ function m(t, e, n, r) {
2377
2377
  t[e]
2378
2378
  )) : c = /** @type {V} */
2379
2379
  t[e];
2380
- var u = rn in t || la in t, f = a && (((E = xn(t, e)) == null ? void 0 : E.set) ?? (u && e in t && ((P) => t[e] = P))) || void 0, h = (
2380
+ var u = rn in t || la in t, f = a && (((E = _n(t, e)) == null ? void 0 : E.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, h = (
2381
2381
  /** @type {V} */
2382
2382
  r
2383
2383
  ), p = !0, b = !1, w = () => (b = !0, p && (p = !1, o ? h = Zt(
@@ -2389,11 +2389,11 @@ function m(t, e, n, r) {
2389
2389
  var R;
2390
2390
  if (s)
2391
2391
  R = () => {
2392
- var P = (
2392
+ var M = (
2393
2393
  /** @type {V} */
2394
2394
  t[e]
2395
2395
  );
2396
- return P === void 0 ? w() : (p = !0, b = !1, P);
2396
+ return M === void 0 ? w() : (p = !0, b = !1, M);
2397
2397
  };
2398
2398
  else {
2399
2399
  var x = zs(
@@ -2403,29 +2403,29 @@ function m(t, e, n, r) {
2403
2403
  ))
2404
2404
  );
2405
2405
  x.f |= ul, R = () => {
2406
- var P = d(x);
2407
- return P !== void 0 && (h = /** @type {V} */
2408
- void 0), P === void 0 ? h : P;
2406
+ var M = d(x);
2407
+ return M !== void 0 && (h = /** @type {V} */
2408
+ void 0), M === void 0 ? h : M;
2409
2409
  };
2410
2410
  }
2411
2411
  if (!(n & na))
2412
2412
  return R;
2413
2413
  if (f) {
2414
2414
  var k = t.$$legacy;
2415
- return function(P, W) {
2416
- return arguments.length > 0 ? ((!s || !W || k || l) && f(W ? R() : P), P) : R();
2415
+ return function(M, W) {
2416
+ return arguments.length > 0 ? ((!s || !W || k || l) && f(W ? R() : M), M) : R();
2417
2417
  };
2418
2418
  }
2419
2419
  var T = !1, F = !1, I = /* @__PURE__ */ Hr(c), j = zs(
2420
2420
  () => /* @__PURE__ */ Ke(() => {
2421
- var P = R(), W = d(I);
2422
- return T ? (T = !1, F = !0, W) : (F = !1, I.v = P);
2421
+ var M = R(), W = d(I);
2422
+ return T ? (T = !1, F = !0, W) : (F = !1, I.v = M);
2423
2423
  })
2424
2424
  );
2425
- return i || (j.equals = Di), function(P, W) {
2425
+ return i || (j.equals = Di), function(M, W) {
2426
2426
  if (arguments.length > 0) {
2427
- const ke = W ? d(j) : s && a ? C(P) : P;
2428
- return j.equals(ke) || (T = !0, v(I, ke), b && h !== void 0 && (h = ke), Zt(() => d(j))), P;
2427
+ const ke = W ? d(j) : s && a ? C(M) : M;
2428
+ return j.equals(ke) || (T = !0, v(I, ke), b && h !== void 0 && (h = ke), Zt(() => d(j))), M;
2429
2429
  }
2430
2430
  return d(j);
2431
2431
  };
@@ -2706,7 +2706,7 @@ function we(t, e, n, r, i, s) {
2706
2706
  l = wr(o, l, e), this.$$d[o] = l;
2707
2707
  var c = this.$$c;
2708
2708
  if (c) {
2709
- var u = (f = xn(c, o)) == null ? void 0 : f.get;
2709
+ var u = (f = _n(c, o)) == null ? void 0 : f.get;
2710
2710
  u ? c[o] = l : c.$set({ [o]: l });
2711
2711
  }
2712
2712
  }
@@ -2876,7 +2876,7 @@ class Qr {
2876
2876
  return new Qr(e.filename, e.external_id, e.path || "", e.gendoc_id, e.isCommon, e.commonType);
2877
2877
  }
2878
2878
  }
2879
- class _n {
2879
+ class kn {
2880
2880
  constructor(e, n, r, i = "New chat", s = { blockChat: !1, unread: !1, lockedAgentId: null, pendingAction: null, info: [] }, a = [], o = 0) {
2881
2881
  $(this, "_id");
2882
2882
  $(this, "companyId");
@@ -2900,7 +2900,7 @@ class _n {
2900
2900
  }
2901
2901
  static fromJson(e) {
2902
2902
  var n;
2903
- return new _n(e._id, e.companyId, e.userId, e.title, e.state ?? { blockChat: !1, unread: !1, lockedAgentId: null, pendingAction: null, info: [] }, ((n = e.messages) == null ? void 0 : n.map((r) => un.fromJson(r))) ?? [], e.lastUpdate ?? 0);
2903
+ return new kn(e._id, e.companyId, e.userId, e.title, e.state ?? { blockChat: !1, unread: !1, lockedAgentId: null, pendingAction: null, info: [] }, ((n = e.messages) == null ? void 0 : n.map((r) => un.fromJson(r))) ?? [], e.lastUpdate ?? 0);
2904
2904
  }
2905
2905
  }
2906
2906
  const Cc = {}, Tc = "it", ki = (
@@ -3046,10 +3046,10 @@ const Fc = (
3046
3046
  /** @type {LocalizedString} */
3047
3047
  "AI Assistant"
3048
3048
  )
3049
- ), Mc = (
3049
+ ), Pc = (
3050
3050
  /** @type {((inputs?: Ai_AssistantInputs, options?: { locale?: "it" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Ai_AssistantInputs, { locale?: "it" | "en" }, {}>} */
3051
3051
  (t = {}, e = {}) => (e.locale ?? te()) === "it" ? Fc() : Dc()
3052
- ), Pc = (
3052
+ ), Mc = (
3053
3053
  /** @type {(inputs: Type_MessageInputs) => LocalizedString} */
3054
3054
  () => (
3055
3055
  /** @type {LocalizedString} */
@@ -3063,7 +3063,7 @@ const Fc = (
3063
3063
  )
3064
3064
  ), Uc = (
3065
3065
  /** @type {((inputs?: Type_MessageInputs, options?: { locale?: "it" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Type_MessageInputs, { locale?: "it" | "en" }, {}>} */
3066
- (t = {}, e = {}) => (e.locale ?? te()) === "it" ? Pc() : Oc()
3066
+ (t = {}, e = {}) => (e.locale ?? te()) === "it" ? Mc() : Oc()
3067
3067
  ), Nc = (
3068
3068
  /** @type {(inputs: Add_AttachmentInputs) => LocalizedString} */
3069
3069
  () => (
@@ -3325,7 +3325,7 @@ const Fc = (
3325
3325
  /** @type {LocalizedString} */
3326
3326
  "Visualizza allegato"
3327
3327
  )
3328
- ), Mu = (
3328
+ ), Pu = (
3329
3329
  /** @type {(inputs: View_AttachmentInputs) => LocalizedString} */
3330
3330
  () => (
3331
3331
  /** @type {LocalizedString} */
@@ -3333,8 +3333,8 @@ const Fc = (
3333
3333
  )
3334
3334
  ), $s = (
3335
3335
  /** @type {((inputs?: View_AttachmentInputs, options?: { locale?: "it" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<View_AttachmentInputs, { locale?: "it" | "en" }, {}>} */
3336
- (t = {}, e = {}) => (e.locale ?? te()) === "it" ? Du() : Mu()
3337
- ), Pu = (
3336
+ (t = {}, e = {}) => (e.locale ?? te()) === "it" ? Du() : Pu()
3337
+ ), Mu = (
3338
3338
  /** @type {(inputs: SearchInputs) => LocalizedString} */
3339
3339
  () => (
3340
3340
  /** @type {LocalizedString} */
@@ -3348,7 +3348,7 @@ const Fc = (
3348
3348
  )
3349
3349
  ), Uu = (
3350
3350
  /** @type {((inputs?: SearchInputs, options?: { locale?: "it" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<SearchInputs, { locale?: "it" | "en" }, {}>} */
3351
- (t = {}, e = {}) => (e.locale ?? te()) === "it" ? Pu() : Ou()
3351
+ (t = {}, e = {}) => (e.locale ?? te()) === "it" ? Mu() : Ou()
3352
3352
  ), Nu = (
3353
3353
  /** @type {(inputs: DocumentsInputs) => LocalizedString} */
3354
3354
  () => (
@@ -3631,10 +3631,10 @@ const Fc = (
3631
3631
  /** @type {LocalizedString} */
3632
3632
  "No transcription found"
3633
3633
  )
3634
- ), Md = (
3634
+ ), Pd = (
3635
3635
  /** @type {((inputs?: Transcriptions_Not_FoundInputs, options?: { locale?: "it" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Transcriptions_Not_FoundInputs, { locale?: "it" | "en" }, {}>} */
3636
3636
  (t = {}, e = {}) => (e.locale ?? te()) === "it" ? Fd() : Dd()
3637
- ), Pd = (
3637
+ ), Md = (
3638
3638
  /** @type {(inputs: Drop_Files_HereInputs) => LocalizedString} */
3639
3639
  () => (
3640
3640
  /** @type {LocalizedString} */
@@ -3648,7 +3648,7 @@ const Fc = (
3648
3648
  )
3649
3649
  ), Ud = (
3650
3650
  /** @type {((inputs?: Drop_Files_HereInputs, options?: { locale?: "it" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Drop_Files_HereInputs, { locale?: "it" | "en" }, {}>} */
3651
- (t = {}, e = {}) => (e.locale ?? te()) === "it" ? Pd() : Od()
3651
+ (t = {}, e = {}) => (e.locale ?? te()) === "it" ? Md() : Od()
3652
3652
  ), Nd = (
3653
3653
  /** @type {(inputs: UploadingInputs) => LocalizedString} */
3654
3654
  () => (
@@ -3843,7 +3843,7 @@ function io(t, e) {
3843
3843
  {
3844
3844
  var k = (V) => {
3845
3845
  var K = xf(), Te = y(K, !0);
3846
- _(K), M(() => {
3846
+ _(K), P(() => {
3847
3847
  O(K, "title", i().title), xe(Te, i().title);
3848
3848
  }), S(V, K);
3849
3849
  };
@@ -3856,7 +3856,7 @@ function io(t, e) {
3856
3856
  {
3857
3857
  var I = (V) => {
3858
3858
  var K = kf();
3859
- K.__click = [_f, s], M(
3859
+ K.__click = [_f, s], P(
3860
3860
  (Te) => {
3861
3861
  O(K, "title", Te), O(K, "aria-label", s() ? "Unmute" : "Mute");
3862
3862
  },
@@ -3864,7 +3864,7 @@ function io(t, e) {
3864
3864
  ), S(V, K);
3865
3865
  }, j = (V) => {
3866
3866
  var K = zf();
3867
- K.__click = [yf, s], M((Te) => O(K, "title", Te), [() => Cu()]), S(V, K);
3867
+ K.__click = [yf, s], P((Te) => O(K, "title", Te), [() => Cu()]), S(V, K);
3868
3868
  };
3869
3869
  ee(F, (V) => {
3870
3870
  s() ? V(I) : V(j, !1);
@@ -3875,9 +3875,9 @@ function io(t, e) {
3875
3875
  var K;
3876
3876
  (K = c()) == null || K.apply(this, V);
3877
3877
  };
3878
- var P = D(E, 2);
3879
- P.__click = [Sf, r];
3880
- var W = D(y(P), 2);
3878
+ var M = D(E, 2);
3879
+ M.__click = [Sf, r];
3880
+ var W = D(y(M), 2);
3881
3881
  {
3882
3882
  var ke = (V) => {
3883
3883
  var K = Cf();
@@ -3887,11 +3887,11 @@ function io(t, e) {
3887
3887
  u() && V(ke);
3888
3888
  });
3889
3889
  }
3890
- _(P);
3891
- var Me = D(P, 2);
3892
- return Me.__click = [Tf, r, n], _(T), _(h), _(f), M(
3890
+ _(M);
3891
+ var Pe = D(M, 2);
3892
+ return Pe.__click = [Tf, r, n], _(T), _(h), _(f), P(
3893
3893
  (V, K, Te, it) => {
3894
- O(E, "title", V), O(P, "title", K), O(P, "aria-label", Te), O(Me, "title", it), O(Me, "aria-label", it);
3894
+ O(E, "title", V), O(M, "title", K), O(M, "aria-label", Te), O(Pe, "title", it), O(Pe, "aria-label", it);
3895
3895
  },
3896
3896
  [
3897
3897
  () => to(),
@@ -4114,7 +4114,7 @@ class vn {
4114
4114
  return e.map((n) => vn.fromJson(n));
4115
4115
  }
4116
4116
  }
4117
- class kn {
4117
+ class yn {
4118
4118
  constructor(e, n, r, i, s, a, o, l = 0, c = !1, u = 40, f = !1, h = "") {
4119
4119
  $(this, "_id", "");
4120
4120
  $(this, "path", "");
@@ -4135,7 +4135,7 @@ class kn {
4135
4135
  this._id = e, this.path = n, this.name = r, this.userId = i, this.companyId = s, this.isPrivate = a, this.isTemplate = o, this.suiteId = l, this.createdAt = Date.now(), this.updatedAt = Date.now(), this.excludeFromDocumentale = c, this.minLevel = u, this.cancellato = f, this.altTitle = h;
4136
4136
  }
4137
4137
  static fromJSON(e) {
4138
- return new kn(
4138
+ return new yn(
4139
4139
  e._id,
4140
4140
  e.path,
4141
4141
  e.name,
@@ -4205,7 +4205,7 @@ class gn {
4205
4205
  return new gn(e._id, e.companyId, e.externalMeetingId, e.name, e.meetingDate, e.partecipants, e.transcription, e.meetingUrl, e.createdAt);
4206
4206
  }
4207
4207
  }
4208
- function Mf(t) {
4208
+ function Pf(t) {
4209
4209
  let e = "https://";
4210
4210
  switch (t == "aks_svi" && (e = "http://"), t) {
4211
4211
  case "aks_svi":
@@ -4241,7 +4241,7 @@ function Mf(t) {
4241
4241
  }
4242
4242
  return e;
4243
4243
  }
4244
- function Pf(t) {
4244
+ function Mf(t) {
4245
4245
  switch (t) {
4246
4246
  case "":
4247
4247
  return "";
@@ -4305,7 +4305,7 @@ function Bf(t, e) {
4305
4305
  document.body.appendChild(n), n.submit();
4306
4306
  }
4307
4307
  const qf = async (t) => {
4308
- const e = N.getEnvironmentId(), n = N.getToken(), r = `${Mf(e)}/api/v1/allegati/${t.split("_")[1]}`, i = await fetch(r, {
4308
+ const e = N.getEnvironmentId(), n = N.getToken(), r = `${Pf(e)}/api/v1/allegati/${t.split("_")[1]}`, i = await fetch(r, {
4309
4309
  method: "GET",
4310
4310
  headers: {
4311
4311
  "Content-Type": "application/json",
@@ -4318,7 +4318,7 @@ const qf = async (t) => {
4318
4318
  const s = await i.json();
4319
4319
  let a = s.result[0].file_name, o = s.result[0].file_content;
4320
4320
  if (a.endsWith(".akd")) {
4321
- const u = `${Pf(e)}/api/download/${t.split("_")[1]}?token=${n}&envId=aks_${t.split("_")[0]}`, f = await fetch(u, {
4321
+ const u = `${Mf(e)}/api/download/${t.split("_")[1]}?token=${n}&envId=aks_${t.split("_")[0]}`, f = await fetch(u, {
4322
4322
  method: "GET",
4323
4323
  headers: {
4324
4324
  "ngrok-skip-browser-warning": "true"
@@ -4441,7 +4441,7 @@ const qf = async (t) => {
4441
4441
  });
4442
4442
  if (!e.ok)
4443
4443
  throw new Error("Failed to fetch gendoc");
4444
- return (await e.json()).map((r) => kn.fromJSON(r));
4444
+ return (await e.json()).map((r) => yn.fromJSON(r));
4445
4445
  }, Qf = async (t) => {
4446
4446
  const e = await fetch(`${N.getTranscriptionUrl()}/v1/generals/meetings`, {
4447
4447
  method: "POST",
@@ -4502,7 +4502,7 @@ function nh(t, e) {
4502
4502
  ve(e, !1), _e(t, th);
4503
4503
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.75s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
4504
4504
  var o = eh();
4505
- return M(() => {
4505
+ return P(() => {
4506
4506
  O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`), be(o, "pause-animation", a());
4507
4507
  }), S(t, o), ge({
4508
4508
  get color() {
@@ -4574,7 +4574,7 @@ function sh(t, e) {
4574
4574
  ve(e, !1), _e(t, ih);
4575
4575
  let n = m(e, "size", 12, "60"), r = m(e, "unit", 12, "px"), i = m(e, "pause", 12, !1), s = m(e, "colorOuter", 12, "#FF3E00"), a = m(e, "colorCenter", 12, "#40B3FF"), o = m(e, "colorInner", 12, "#676778"), l = m(e, "durationMultiplier", 12, 1), c = m(e, "durationOuter", 28, () => `${l() * 2}s`), u = m(e, "durationInner", 28, () => `${l() * 1.5}s`), f = m(e, "durationCenter", 28, () => `${l() * 3}s`);
4576
4576
  var h = rh();
4577
- return M(() => {
4577
+ return P(() => {
4578
4578
  O(h, "style", `--size: ${n() ?? ""}${r() ?? ""}; --colorInner: ${o() ?? ""}; --colorCenter: ${a() ?? ""}; --colorOuter: ${s() ?? ""}; --durationInner: ${u() ?? ""}; --durationCenter: ${f() ?? ""}; --durationOuter: ${c() ?? ""};`), be(h, "pause-animation", i());
4579
4579
  }), S(t, h), ge({
4580
4580
  get size() {
@@ -4699,7 +4699,7 @@ function lh(t, e) {
4699
4699
  var x = D(w, 2), k = y(x);
4700
4700
  _(x);
4701
4701
  var T = D(x, 2), F = y(T);
4702
- return _(T), _(h), _(f), _(u), M(() => {
4702
+ return _(T), _(h), _(f), _(u), P(() => {
4703
4703
  O(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${s() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${c() ?? ""};`), be(h, "pause-animation", i()), be(b, "pause-animation", i()), be(R, "pause-animation", i()), be(k, "pause-animation", i()), be(F, "pause-animation", i());
4704
4704
  }), S(t, u), ge({
4705
4705
  get size() {
@@ -4798,12 +4798,12 @@ function fh(t, e) {
4798
4798
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "2.1s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = i().match(ot)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ot, "");
4799
4799
  yt();
4800
4800
  var c = uh();
4801
- return at(c, 5, () => Nt(2, 1), dt, (f, h) => {
4801
+ return at(c, 5, () => Nt(2, 1), ft, (f, h) => {
4802
4802
  var p = ch();
4803
- M(() => {
4803
+ P(() => {
4804
4804
  O(p, "style", `animation: ${i() ?? ""} ${(d(h) === 1 ? `${(+l - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), be(p, "pause-animation", a());
4805
4805
  }), S(f, p);
4806
- }), _(c), M(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), S(t, c), ge({
4806
+ }), _(c), P(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), S(t, c), ge({
4807
4807
  get color() {
4808
4808
  return n();
4809
4809
  },
@@ -5033,7 +5033,7 @@ function vh(t, e) {
5033
5033
  ].join(";"));
5034
5034
  }), ar(), yt();
5035
5035
  var a = hh();
5036
- return M(() => {
5036
+ return P(() => {
5037
5037
  O(a, "style", `--duration: ${i() ?? ""}; ${d(n) ?? ""}`), be(a, "pause-animation", s());
5038
5038
  }), S(t, a), ge({
5039
5039
  get size() {
@@ -5076,7 +5076,7 @@ function bh(t, e) {
5076
5076
  ve(e, !1), _e(t, mh);
5077
5077
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
5078
5078
  var o = gh(), l = y(o);
5079
- return _(o), M(() => {
5079
+ return _(o), P(() => {
5080
5080
  O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}; --duration: ${i() ?? ""};`), be(l, "pause-animation", a());
5081
5081
  }), S(t, o), ge({
5082
5082
  get color() {
@@ -5189,7 +5189,7 @@ function _h(t, e) {
5189
5189
  ve(e, !1), _e(t, xh);
5190
5190
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "4s"), s = m(e, "size", 12, "60"), a = m(e, "stroke", 28, () => +s() / 12 + r()), o = m(e, "pause", 12, !1);
5191
5191
  var l = wh(), c = y(l);
5192
- return _(l), M(() => {
5192
+ return _(l), P(() => {
5193
5193
  O(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --stroke: ${a() ?? ""}; --floatSize: ${s() ?? ""}; --duration: ${i() ?? ""}`), be(c, "pause-animation", o());
5194
5194
  }), S(t, l), ge({
5195
5195
  get color() {
@@ -5266,12 +5266,12 @@ function Sh(t, e) {
5266
5266
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.2s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = i().match(ot)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ot, "");
5267
5267
  yt();
5268
5268
  var c = yh();
5269
- return at(c, 5, () => Nt(5, 1), dt, (f, h) => {
5269
+ return at(c, 5, () => Nt(5, 1), ft, (f, h) => {
5270
5270
  var p = kh();
5271
- M(() => {
5271
+ P(() => {
5272
5272
  O(p, "style", `animation-delay: ${(d(h) - 1) * (+l / 12)}${o ?? ""}`), be(p, "pause-animation", a());
5273
5273
  }), S(f, p);
5274
- }), _(c), M(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), S(t, c), ge({
5274
+ }), _(c), P(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), S(t, c), ge({
5275
5275
  get color() {
5276
5276
  return n();
5277
5277
  },
@@ -5365,12 +5365,12 @@ function Ih(t, e) {
5365
5365
  }
5366
5366
  ), ar(), yt();
5367
5367
  var l = Th();
5368
- return at(l, 5, () => Nt(2, 1), dt, (c, u) => {
5368
+ return at(l, 5, () => Nt(2, 1), ft, (c, u) => {
5369
5369
  var f = Ch();
5370
- M(() => {
5370
+ P(() => {
5371
5371
  xt(f, `lines small-lines ${d(u) ?? ""} svelte-bnawe9`), O(f, "style", `--color: ${n() ?? ""}; --duration: ${i() ?? ""};`), be(f, "pause-animation", a());
5372
5372
  }), S(c, f);
5373
- }), _(l), M(() => O(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --rgba:${d(o) ?? ""}`)), S(t, l), ge({
5373
+ }), _(l), P(() => O(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --rgba:${d(o) ?? ""}`)), S(t, l), ge({
5374
5374
  get color() {
5375
5375
  return n();
5376
5376
  },
@@ -5441,12 +5441,12 @@ function Rh(t, e) {
5441
5441
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = i().match(ot)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ot, "");
5442
5442
  yt();
5443
5443
  var c = Ah();
5444
- return at(c, 5, () => Nt(3, 1), dt, (f, h) => {
5444
+ return at(c, 5, () => Nt(3, 1), ft, (f, h) => {
5445
5445
  var p = $h();
5446
- M(() => {
5446
+ P(() => {
5447
5447
  O(p, "style", `animation-delay: ${+l / 3 * (d(h) - 1) + o};`), be(p, "pause-animation", a());
5448
5448
  }), S(f, p);
5449
- }), _(c), M(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), S(t, c), ge({
5449
+ }), _(c), P(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), S(t, c), ge({
5450
5450
  get color() {
5451
5451
  return n();
5452
5452
  },
@@ -5516,17 +5516,17 @@ const Dh = {
5516
5516
  }
5517
5517
  }`
5518
5518
  };
5519
- function Mh(t, e) {
5519
+ function Ph(t, e) {
5520
5520
  ve(e, !1), _e(t, Dh);
5521
5521
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "2s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
5522
5522
  yt();
5523
5523
  var o = Fh();
5524
- return at(o, 5, () => Nt(2, 1), dt, (l, c) => {
5524
+ return at(o, 5, () => Nt(2, 1), ft, (l, c) => {
5525
5525
  var u = jh();
5526
- M(() => {
5526
+ P(() => {
5527
5527
  xt(u, `border ${d(c) ?? ""} svelte-kxapcj`), be(u, "pause-animation", a());
5528
5528
  }), S(l, u);
5529
- }), _(o), M(() => O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), S(t, o), ge({
5529
+ }), _(o), P(() => O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), S(t, o), ge({
5530
5530
  get color() {
5531
5531
  return n();
5532
5532
  },
@@ -5560,7 +5560,7 @@ function Mh(t, e) {
5560
5560
  });
5561
5561
  }
5562
5562
  we(
5563
- Mh,
5563
+ Ph,
5564
5564
  {
5565
5565
  color: {},
5566
5566
  unit: {},
@@ -5572,7 +5572,7 @@ we(
5572
5572
  [],
5573
5573
  !0
5574
5574
  );
5575
- var Ph = /* @__PURE__ */ A('<div class="dot svelte-14x3x60"></div>'), Oh = /* @__PURE__ */ A('<div class="wrapper svelte-14x3x60"></div>');
5575
+ var Mh = /* @__PURE__ */ A('<div class="dot svelte-14x3x60"></div>'), Oh = /* @__PURE__ */ A('<div class="wrapper svelte-14x3x60"></div>');
5576
5576
  const Uh = {
5577
5577
  hash: "svelte-14x3x60",
5578
5578
  code: `.wrapper.svelte-14x3x60 {height:var(--size);width:var(--size);display:flex;align-items:center;justify-content:center;}.dot.svelte-14x3x60 {height:var(--dotSize);width:var(--dotSize);background-color:var(--color);margin:2px;display:inline-block;border-radius:100%;
@@ -5613,12 +5613,12 @@ function Nh(t, e) {
5613
5613
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.6s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = i().match(ot)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ot, "");
5614
5614
  yt();
5615
5615
  var c = Oh();
5616
- return at(c, 5, () => Nt(3, 1), dt, (f, h) => {
5617
- var p = Ph();
5618
- M(() => {
5616
+ return at(c, 5, () => Nt(3, 1), ft, (f, h) => {
5617
+ var p = Mh();
5618
+ P(() => {
5619
5619
  O(p, "style", `--dotSize:${+s() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${d(h) * (+l / 10)}${o ?? ""};`), be(p, "pause-animation", a());
5620
5620
  }), S(f, p);
5621
- }), _(c), M(() => O(c, "style", `--size:${s() ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`)), S(t, c), ge({
5621
+ }), _(c), P(() => O(c, "style", `--size:${s() ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`)), S(t, c), ge({
5622
5622
  get color() {
5623
5623
  return n();
5624
5624
  },
@@ -5692,7 +5692,7 @@ function Hh(t, e) {
5692
5692
  ve(e, !1), _e(t, qh);
5693
5693
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "3s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
5694
5694
  var o = Bh(), l = y(o);
5695
- return _(o), M(() => {
5695
+ return _(o), P(() => {
5696
5696
  O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), be(l, "pause-animation", a());
5697
5697
  }), S(t, o), ge({
5698
5698
  get color() {
@@ -5764,7 +5764,7 @@ function Jh(t, e) {
5764
5764
  ve(e, !1), _e(t, Gh);
5765
5765
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.25s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
5766
5766
  var o = Yh(), l = y(o);
5767
- return _(o), M(() => {
5767
+ return _(o), P(() => {
5768
5768
  O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), be(l, "pause-animation", a());
5769
5769
  }), S(t, o), ge({
5770
5770
  get color() {
@@ -5835,12 +5835,12 @@ function Fr(t, e) {
5835
5835
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.5s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = i().match(ot)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ot, "");
5836
5836
  yt();
5837
5837
  var c = Zh();
5838
- return at(c, 5, () => Nt(3, 0), dt, (f, h) => {
5838
+ return at(c, 5, () => Nt(3, 0), ft, (f, h) => {
5839
5839
  var p = Wh();
5840
- M(() => {
5840
+ P(() => {
5841
5841
  O(p, "style", `animation-delay: ${d(h) * (+l / 10)}${o ?? ""}; left: ${d(h) * (+s() / 3 + +s() / 15) + r()};`), be(p, "pause-animation", a());
5842
5842
  }), S(f, p);
5843
- }), _(c), M(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), S(t, c), ge({
5843
+ }), _(c), P(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), S(t, c), ge({
5844
5844
  get color() {
5845
5845
  return n();
5846
5846
  },
@@ -5909,12 +5909,12 @@ function ep(t, e) {
5909
5909
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "2.5s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = i().match(ot)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ot, "");
5910
5910
  yt();
5911
5911
  var c = Qh();
5912
- return at(c, 5, () => Nt(6, 0), dt, (f, h) => {
5912
+ return at(c, 5, () => Nt(6, 0), ft, (f, h) => {
5913
5913
  var p = Vh();
5914
- M(() => {
5914
+ P(() => {
5915
5915
  O(p, "style", `animation-delay: ${d(h) * (+l / 25)}${o ?? ""}; width: ${d(h) * (+s() / 6) + r()}; height: ${d(h) * (+s() / 6) / 2 + r()}; `), be(p, "pause-animation", a());
5916
5916
  }), S(f, p);
5917
- }), _(c), M(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-s() / 5}${r() ?? ""}; --motionTwo: ${+s() / 4}${r() ?? ""}; --motionThree: ${-s() / 5}${r() ?? ""}; --duration: ${i() ?? ""};`)), S(t, c), ge({
5917
+ }), _(c), P(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-s() / 5}${r() ?? ""}; --motionTwo: ${+s() / 4}${r() ?? ""}; --motionThree: ${-s() / 5}${r() ?? ""}; --duration: ${i() ?? ""};`)), S(t, c), ge({
5918
5918
  get color() {
5919
5919
  return n();
5920
5920
  },
@@ -5988,12 +5988,12 @@ function ip(t, e) {
5988
5988
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "2s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((f = i().match(ot)) == null ? void 0 : f[0]) ?? "s", l = i().replace(ot, "");
5989
5989
  yt();
5990
5990
  var c = np(), u = y(c);
5991
- return at(u, 5, () => Nt(2, 0), dt, (h, p) => {
5991
+ return at(u, 5, () => Nt(2, 0), ft, (h, p) => {
5992
5992
  var b = tp();
5993
- M(() => {
5993
+ P(() => {
5994
5994
  O(b, "style", `animation-delay: ${(d(p) === 1 ? `${+l / 2}${o}` : "0s") ?? ""}; ${(d(p) === 1 ? "bottom: 0;" : "") ?? ""} ${(d(p) === 1 ? "top: auto;" : "") ?? ""}`), be(b, "pause-animation", a());
5995
5995
  }), S(h, b);
5996
- }), _(u), _(c), M(() => {
5996
+ }), _(u), _(c), P(() => {
5997
5997
  O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), be(u, "pause-animation", a());
5998
5998
  }), S(t, c), ge({
5999
5999
  get color() {
@@ -6069,7 +6069,7 @@ function op(t, e) {
6069
6069
  ve(e, !1), _e(t, ap);
6070
6070
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "3s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
6071
6071
  var o = sp();
6072
- return M(() => {
6072
+ return P(() => {
6073
6073
  O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), be(o, "pause-animation", a());
6074
6074
  }), S(t, o), ge({
6075
6075
  get color() {
@@ -6163,7 +6163,7 @@ function up(t, e) {
6163
6163
  ve(e, !1), _e(t, cp);
6164
6164
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.7s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
6165
6165
  var o = lp(), l = y(o);
6166
- return _(o), M(() => {
6166
+ return _(o), P(() => {
6167
6167
  O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), be(l, "pause-animation", a());
6168
6168
  }), S(t, o), ge({
6169
6169
  get color() {
@@ -6227,7 +6227,7 @@ function hp(t, e) {
6227
6227
  ve(e, !1), _e(t, fp);
6228
6228
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.6s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = +s() / 7, l = +s() / 2 - o / 2;
6229
6229
  var c = dp(), u = y(c), f = D(u, 2);
6230
- return _(c), M(() => {
6230
+ return _(c), P(() => {
6231
6231
  O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${l ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`), be(c, "pause-animation", a()), be(u, "pause-animation", a()), be(f, "pause-animation", a());
6232
6232
  }), S(t, c), ge({
6233
6233
  get color() {
@@ -6318,7 +6318,7 @@ function gp(t, e) {
6318
6318
  }
6319
6319
  ), ar(), yt();
6320
6320
  var l = pp(), c = y(l);
6321
- return _(l), M(() => {
6321
+ return _(l), P(() => {
6322
6322
  O(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(o) ?? ""}; --duration: ${i() ?? ""};`), be(c, "pause-animation", a());
6323
6323
  }), S(t, l), ge({
6324
6324
  get color() {
@@ -6387,7 +6387,7 @@ function wp(t, e) {
6387
6387
  ve(e, !1), _e(t, bp);
6388
6388
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.5s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
6389
6389
  var o = mp();
6390
- return M(() => {
6390
+ return P(() => {
6391
6391
  O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color:${n() ?? ""}; --duration: ${i() ?? ""};`), be(o, "pause-animation", a());
6392
6392
  }), S(t, o), ge({
6393
6393
  get color() {
@@ -6454,7 +6454,7 @@ function kp(t, e) {
6454
6454
  ve(e, !1), _e(t, _p);
6455
6455
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "8s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1);
6456
6456
  var o = xp();
6457
- return M(() => {
6457
+ return P(() => {
6458
6458
  O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color:${n() ?? ""}; --duration:${i() ?? ""}`), be(o, "pause-animation", a());
6459
6459
  }), S(t, o), ge({
6460
6460
  get color() {
@@ -6526,12 +6526,12 @@ function Cp(t, e) {
6526
6526
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.25s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = ((u = i().match(ot)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ot, "");
6527
6527
  yt();
6528
6528
  var c = zp();
6529
- return at(c, 5, () => Nt(10, 0), dt, (f, h) => {
6529
+ return at(c, 5, () => Nt(10, 0), ft, (f, h) => {
6530
6530
  var p = yp();
6531
- M(() => {
6531
+ P(() => {
6532
6532
  O(p, "style", `left: ${d(h) * (+s() / 5 + (+s() / 15 - +s() / 100)) + r()}; animation-delay: ${d(h) * (+l / 8.3)}${o ?? ""};`), be(p, "pause-animation", a());
6533
6533
  }), S(f, p);
6534
- }), _(c), M(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), S(t, c), ge({
6534
+ }), _(c), P(() => O(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), S(t, c), ge({
6535
6535
  get color() {
6536
6536
  return n();
6537
6537
  },
@@ -6610,12 +6610,12 @@ function $p(t, e) {
6610
6610
  }
6611
6611
  ), ar(), yt();
6612
6612
  var u = Ep();
6613
- return at(u, 5, () => Nt(2, 1), dt, (h, p) => {
6613
+ return at(u, 5, () => Nt(2, 1), ft, (h, p) => {
6614
6614
  var b = Tp();
6615
- M(() => {
6615
+ P(() => {
6616
6616
  O(b, "style", `animation-delay: ${(d(p) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +l + o};`), be(b, "pause-animation", a());
6617
6617
  }), S(h, b);
6618
- }), _(u), M(() => O(u, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(c) ?? ""}; --duration: ${i() ?? ""}`)), S(t, u), ge({
6618
+ }), _(u), P(() => O(u, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(c) ?? ""}; --duration: ${i() ?? ""}`)), S(t, u), ge({
6619
6619
  get color() {
6620
6620
  return n();
6621
6621
  },
@@ -6679,7 +6679,7 @@ function Rp(t, e) {
6679
6679
  ve(e, !1), _e(t, Lp);
6680
6680
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.4s"), s = m(e, "size", 12, "15"), a = m(e, "pause", 12, !1);
6681
6681
  var o = Ap();
6682
- return M(() => {
6682
+ return P(() => {
6683
6683
  O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), be(o, "pause-animation", a());
6684
6684
  }), S(t, o), ge({
6685
6685
  get color() {
@@ -6745,7 +6745,7 @@ function Dp(t, e) {
6745
6745
  ve(e, !1), _e(t, Fp);
6746
6746
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.4s"), s = m(e, "size", 12, "15"), a = m(e, "pause", 12, !1);
6747
6747
  var o = jp();
6748
- return M(() => {
6748
+ return P(() => {
6749
6749
  O(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), be(o, "pause-animation", a());
6750
6750
  }), S(t, o), ge({
6751
6751
  get color() {
@@ -6821,10 +6821,10 @@ function lr(t) {
6821
6821
  const so = (t) => {
6822
6822
  var e;
6823
6823
  return (e = t.split(".").pop()) == null ? void 0 : e.toLowerCase();
6824
- }, Mp = (t) => {
6824
+ }, Pp = (t) => {
6825
6825
  const e = t.split(".").pop();
6826
6826
  return t.includes(".") && e !== t;
6827
- }, Pp = {
6827
+ }, Mp = {
6828
6828
  pdf: { icon: "fa-solid fa-file-pdf", color: "#f0463c" },
6829
6829
  docx: { icon: "fa-solid fa-file-word", color: "#305b9a" },
6830
6830
  xlsx: { icon: "fa-solid fa-file-excel", color: "#0c7540" },
@@ -6833,7 +6833,7 @@ const so = (t) => {
6833
6833
  tldv: { icon: "fa-solid fa-video", color: "#1d1dff" }
6834
6834
  }, Zi = (t) => {
6835
6835
  const e = so(t);
6836
- return Pp[e || ""] || { icon: "fa-solid fa-file", color: "#6c757d" };
6836
+ return Mp[e || ""] || { icon: "fa-solid fa-file", color: "#6c757d" };
6837
6837
  }, Op = (t) => Zi(t).icon;
6838
6838
  function Up(t) {
6839
6839
  return {
@@ -6883,7 +6883,7 @@ const pr = (t, e) => `${t}-${e}`, ao = (t) => t.isCommon ? t.filename.split(".")
6883
6883
  class: e.icon,
6884
6884
  color: e.color
6885
6885
  };
6886
- if (t instanceof kn)
6886
+ if (t instanceof yn)
6887
6887
  return { class: "fa-solid fa-passport", color: "#0DCAF0" };
6888
6888
  if (t instanceof gn)
6889
6889
  return { class: "fa-solid fa-video", color: "#1d1dff" };
@@ -6901,7 +6901,7 @@ const pr = (t, e) => `${t}-${e}`, ao = (t) => t.isCommon ? t.filename.split(".")
6901
6901
  }, Wp = (t) => {
6902
6902
  if (t instanceof vn)
6903
6903
  return t.title.split(".")[0];
6904
- if (t instanceof kn || t instanceof gn)
6904
+ if (t instanceof yn || t instanceof gn)
6905
6905
  return t.name;
6906
6906
  if (t instanceof pn) {
6907
6907
  const e = t;
@@ -6955,7 +6955,7 @@ function co(t, e) {
6955
6955
  gendoc_id: "",
6956
6956
  isCommon: !0
6957
6957
  };
6958
- if (Z instanceof kn)
6958
+ if (Z instanceof yn)
6959
6959
  return {
6960
6960
  title: Z.name + ".akd",
6961
6961
  ext_id: Z._id,
@@ -6973,7 +6973,7 @@ function co(t, e) {
6973
6973
  }, T = (Z) => {
6974
6974
  if (R(Z))
6975
6975
  return;
6976
- const Ge = Z instanceof kn || Z instanceof gn ? s.gendoc : s.default;
6976
+ const Ge = Z instanceof yn || Z instanceof gn ? s.gendoc : s.default;
6977
6977
  x(Ge) && n(n()[Z._id] = k(Z), !0);
6978
6978
  }, F = async (Z, Ge, tt, Je) => {
6979
6979
  if (Z.length < a) {
@@ -6982,24 +6982,24 @@ function co(t, e) {
6982
6982
  }
6983
6983
  v(h, !0);
6984
6984
  try {
6985
- const Y = await Ge();
6986
- tt(Y);
6987
- } catch (Y) {
6988
- console.error(Je, Y), tt([]);
6985
+ const G = await Ge();
6986
+ tt(G);
6987
+ } catch (G) {
6988
+ console.error(Je, G), tt([]);
6989
6989
  } finally {
6990
6990
  v(h, !1);
6991
6991
  }
6992
6992
  };
6993
- var I = av(), j = y(I), E = y(j), P = y(E), W = y(P);
6994
- _(P);
6995
- var ke = D(P, 2);
6993
+ var I = av(), j = y(I), E = y(j), M = y(E), W = y(M);
6994
+ _(M);
6995
+ var ke = D(M, 2);
6996
6996
  ke.__click = [
6997
6997
  Xp,
6998
6998
  r,
6999
6999
  p,
7000
7000
  w
7001
7001
  ], _(E);
7002
- var Me = D(E, 2), V = y(Me), K = y(V), Te = D(y(K), 2);
7002
+ var Pe = D(E, 2), V = y(Pe), K = y(V), Te = D(y(K), 2);
7003
7003
  tc(Te), Te.__input = [
7004
7004
  Vp,
7005
7005
  p,
@@ -7015,38 +7015,38 @@ function co(t, e) {
7015
7015
  var Fe = (Z) => {
7016
7016
  var Ge = Qp(), tt = y(Ge);
7017
7017
  Fr(tt, { size: "30", color: "#295dcf" });
7018
- var Je = D(tt, 2), Y = y(Je, !0);
7019
- _(Je), _(Ge), M((ne) => xe(Y, ne), [() => Yu()]), S(Z, Ge);
7018
+ var Je = D(tt, 2), G = y(Je, !0);
7019
+ _(Je), _(Ge), P((ne) => xe(G, ne), [() => Yu()]), S(Z, Ge);
7020
7020
  }, et = (Z) => {
7021
7021
  var Ge = kt(), tt = nt(Ge);
7022
7022
  {
7023
7023
  var Je = (ne) => {
7024
- var ze = Kp(), Ae = D(y(ze), 2), Pe = y(Ae, !0);
7025
- _(Ae), _(ze), M((he) => xe(Pe, he), [() => Wu()]), S(ne, ze);
7026
- }, Y = (ne) => {
7024
+ var ze = Kp(), Ae = D(y(ze), 2), Me = y(Ae, !0);
7025
+ _(Ae), _(ze), P((he) => xe(Me, he), [() => Wu()]), S(ne, ze);
7026
+ }, G = (ne) => {
7027
7027
  var ze = kt(), Ae = nt(ze);
7028
7028
  {
7029
- var Pe = (de) => {
7029
+ var Me = (de) => {
7030
7030
  var ie = ev(), se = D(y(ie), 2), z = y(se);
7031
7031
  {
7032
- var H = (re) => {
7032
+ var Y = (re) => {
7033
7033
  var ue = dr();
7034
- M((Ee) => xe(ue, Ee), [() => Vu()]), S(re, ue);
7034
+ P((Ee) => xe(ue, Ee), [() => Vu()]), S(re, ue);
7035
7035
  }, ce = (re) => {
7036
7036
  var ue = kt(), Ee = nt(ue);
7037
7037
  {
7038
7038
  var Xe = (qe) => {
7039
7039
  var Ne = dr();
7040
- M((ct) => xe(Ne, ct), [() => jd()]), S(qe, Ne);
7040
+ P((ct) => xe(Ne, ct), [() => jd()]), S(qe, Ne);
7041
7041
  }, Oe = (qe) => {
7042
7042
  var Ne = kt(), ct = nt(Ne);
7043
7043
  {
7044
7044
  var ut = (U) => {
7045
7045
  var B = dr();
7046
- M((Q) => xe(B, Q), [() => Md()]), S(U, B);
7046
+ P((Q) => xe(B, Q), [() => Pd()]), S(U, B);
7047
7047
  }, J = (U) => {
7048
7048
  var B = dr();
7049
- M((Q) => xe(B, Q), [() => yi()]), S(U, B);
7049
+ P((Q) => xe(B, Q), [() => yi()]), S(U, B);
7050
7050
  };
7051
7051
  ee(
7052
7052
  ct,
@@ -7069,25 +7069,25 @@ function co(t, e) {
7069
7069
  S(re, ue);
7070
7070
  };
7071
7071
  ee(z, (re) => {
7072
- i() === "normative" || i() === "suite" ? re(H) : re(ce, !1);
7072
+ i() === "normative" || i() === "suite" ? re(Y) : re(ce, !1);
7073
7073
  });
7074
7074
  }
7075
7075
  _(se), _(ie), S(de, ie);
7076
7076
  }, he = (de) => {
7077
7077
  var ie = sv();
7078
- at(ie, 21, () => d(b), dt, (se, z) => {
7079
- var H = iv();
7078
+ at(ie, 21, () => d(b), ft, (se, z) => {
7079
+ var Y = iv();
7080
7080
  const ce = /* @__PURE__ */ Ke(() => Jp(d(z), d(o))), re = /* @__PURE__ */ Ke(() => Wp(d(z))), ue = /* @__PURE__ */ Ke(() => Zp(d(z)));
7081
- H.__click = [tv, T, z];
7082
- var Ee = y(H), Xe = y(Ee);
7081
+ Y.__click = [tv, T, z];
7082
+ var Ee = y(Y), Xe = y(Ee);
7083
7083
  _(Ee);
7084
7084
  var Oe = D(Ee, 2), qe = y(Oe), Ne = y(qe, !0);
7085
7085
  _(qe);
7086
7086
  var ct = D(qe, 2);
7087
7087
  {
7088
7088
  var ut = (B) => {
7089
- var Q = nv(), G = y(Q, !0);
7090
- _(Q), M(() => xe(G, d(ue))), S(B, Q);
7089
+ var Q = nv(), q = y(Q, !0);
7090
+ _(Q), P(() => xe(q, d(ue))), S(B, Q);
7091
7091
  };
7092
7092
  ee(ct, (B) => {
7093
7093
  d(ue) && B(ut);
@@ -7104,15 +7104,15 @@ function co(t, e) {
7104
7104
  n()[d(z)._id] && B(U);
7105
7105
  });
7106
7106
  }
7107
- _(H), M(() => {
7108
- be(H, "selected", n()[d(z)._id]), xt(Xe, qi(d(ce).class), "svelte-zrlk2s"), O(Xe, "style", `color: ${d(ce).color}`), xe(Ne, d(re));
7109
- }), S(se, H);
7107
+ _(Y), P(() => {
7108
+ be(Y, "selected", n()[d(z)._id]), xt(Xe, qi(d(ce).class), "svelte-zrlk2s"), O(Xe, "style", `color: ${d(ce).color}`), xe(Ne, d(re));
7109
+ }), S(se, Y);
7110
7110
  }), _(ie), S(de, ie);
7111
7111
  };
7112
7112
  ee(
7113
7113
  Ae,
7114
7114
  (de) => {
7115
- d(b).length === 0 ? de(Pe) : de(he, !1);
7115
+ d(b).length === 0 ? de(Me) : de(he, !1);
7116
7116
  },
7117
7117
  !0
7118
7118
  );
@@ -7122,7 +7122,7 @@ function co(t, e) {
7122
7122
  ee(
7123
7123
  tt,
7124
7124
  (ne) => {
7125
- d(p).length < a ? ne(Je) : ne(Y, !1);
7125
+ d(p).length < a ? ne(Je) : ne(G, !1);
7126
7126
  },
7127
7127
  !0
7128
7128
  );
@@ -7133,7 +7133,7 @@ function co(t, e) {
7133
7133
  d(h) ? Z(Fe) : Z(et, !1);
7134
7134
  });
7135
7135
  }
7136
- return _(it), _(Me), _(j), _(I), M(
7136
+ return _(it), _(Pe), _(j), _(I), P(
7137
7137
  (Z, Ge, tt) => {
7138
7138
  xe(W, `${Z ?? ""}
7139
7139
  ${Ge ?? ""}`), O(Te, "placeholder", `${Z ?? ""} ${tt ?? ""} (min 3 caratteri)...`), Ha(Te, d(p));
@@ -7206,7 +7206,7 @@ function Ds(t) {
7206
7206
  return /* @__PURE__ */ new Date(0);
7207
7207
  }
7208
7208
  }
7209
- function Ms(t) {
7209
+ function Ps(t) {
7210
7210
  if (!t) return "";
7211
7211
  const e = te() === "it" ? "it-IT" : "en-GB", n = new Date(t), r = /* @__PURE__ */ new Date(), i = new Date(
7212
7212
  r.getFullYear(),
@@ -7291,7 +7291,7 @@ const Dr = (t) => {
7291
7291
  if (!e.ok)
7292
7292
  throw new Error("Failed to fetch chat");
7293
7293
  const n = await e.json();
7294
- return _n.fromJson(n);
7294
+ return kn.fromJson(n);
7295
7295
  }, vv = async (t = 0, e = 10) => {
7296
7296
  const n = await fetch(`${N.getUrl()}/chat?skip=${t}&limit=${e}`, {
7297
7297
  headers: {
@@ -7302,7 +7302,7 @@ const Dr = (t) => {
7302
7302
  });
7303
7303
  if (!n.ok)
7304
7304
  throw new Error("Failed to fetch chats");
7305
- return (await n.json()).map((i) => _n.fromJson(i));
7305
+ return (await n.json()).map((i) => kn.fromJson(i));
7306
7306
  }, gv = async (t) => {
7307
7307
  const e = await fetch(`${N.getUrl()}/chat`, {
7308
7308
  method: "POST",
@@ -7317,7 +7317,7 @@ const Dr = (t) => {
7317
7317
  if (!e.ok)
7318
7318
  throw new Error("Failed to create chat");
7319
7319
  const n = await e.json();
7320
- return _n.fromJson(n);
7320
+ return kn.fromJson(n);
7321
7321
  }, mv = async (t, e, n, r, i, s, a, o) => {
7322
7322
  let l, c = !1;
7323
7323
  try {
@@ -7453,7 +7453,7 @@ const Dr = (t) => {
7453
7453
  if (!t.ok)
7454
7454
  throw new Error("Failed to fetch unread chats");
7455
7455
  return await t.json();
7456
- }, ht = {
7456
+ }, dt = {
7457
7457
  getChat: pv,
7458
7458
  getChats: vv,
7459
7459
  newChat: gv,
@@ -7574,7 +7574,7 @@ class zv {
7574
7574
  }
7575
7575
  }
7576
7576
  }
7577
- class Ps {
7577
+ class Ms {
7578
7578
  constructor(e) {
7579
7579
  $(this, "callbacks");
7580
7580
  this.callbacks = e;
@@ -7674,7 +7674,7 @@ const Sv = (t, e, n) => {
7674
7674
  };
7675
7675
  var Ev = /* @__PURE__ */ A('<div class="chat-blocked-message svelte-52jnh1"><i class="fa-solid fa-clock-rotate-left svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></div>'), Iv = (t, e, n, r) => {
7676
7676
  !d(e) && !n() && v(r, C(t.target.value));
7677
- }, $v = /* @__PURE__ */ A('<div class="dropdown-content svelte-52jnh1"><button><i class="fa-solid fa-file-circle-plus svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></button> <button><i class="fa-solid fa-upload svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></button></div>'), Av = /* @__PURE__ */ A('<option class="svelte-52jnh1">Generatore di Normative</option>'), Lv = /* @__PURE__ */ A('<option class="svelte-52jnh1">Analisi Rischi</option>'), Rv = /* @__PURE__ */ A('<div class="attachment-title noopen-file-button svelte-52jnh1"> </div>'), jv = (t, e, n, r, i) => e(n(), r(), i()), Fv = /* @__PURE__ */ A('<button class="attachment-title open-file-button svelte-52jnh1"> </button>'), Dv = (t, e, n, r, i) => e(n(), r(), i()), Mv = /* @__PURE__ */ A('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-52jnh1"></i></button></div>'), Pv = /* @__PURE__ */ A('<button class="btn send-button stop-recording-btn svelte-52jnh1" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Ov = /* @__PURE__ */ A('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Synthesizing" disabled><!></button>'), Uv = /* @__PURE__ */ A('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-52jnh1"></i></button>'), Nv = /* @__PURE__ */ A('<button class="btn send-button stop-stream-btn svelte-52jnh1" aria-label="Stop message"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Bv = /* @__PURE__ */ A('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Loading" disabled><!></button>'), qv = /* @__PURE__ */ A('<button class="btn send-button aks-btn-answer send-message-btn svelte-52jnh1" aria-label="Send message"><i class="fa-solid fa-paper-plane svelte-52jnh1"></i></button>'), Hv = /* @__PURE__ */ A('<div class="top svelte-52jnh1"><textarea style="color: black !important;" class="form-control form-control-sm svelte-52jnh1" rows="2"></textarea></div> <div class="bottom svelte-52jnh1"><div class="controls-row svelte-52jnh1"><div class="plus-button-container svelte-52jnh1"><button><i></i></button> <!></div> <select class="mode-select svelte-52jnh1" aria-label="Select mode"><option class="svelte-52jnh1">Auto</option><option class="svelte-52jnh1">Manuale Suite</option><option class="svelte-52jnh1"> </option><option class="svelte-52jnh1">Knowledge Base</option><option class="svelte-52jnh1">GenDoc</option><option class="svelte-52jnh1">Trascrizioni</option><!><option class="svelte-52jnh1">Agente Suite</option><!></select> <div class="attachments-container svelte-52jnh1"></div> <div class="send-buttons svelte-52jnh1"><!> <!></div></div></div>', 1), Yv = /* @__PURE__ */ A('<div class="input svelte-52jnh1"><!></div> <!>', 1);
7677
+ }, $v = /* @__PURE__ */ A('<div class="dropdown-content svelte-52jnh1"><button><i class="fa-solid fa-file-circle-plus svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></button> <button><i class="fa-solid fa-upload svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></button></div>'), Av = /* @__PURE__ */ A('<option class="svelte-52jnh1">Generatore di Normative</option>'), Lv = /* @__PURE__ */ A('<option class="svelte-52jnh1">Analisi Rischi</option>'), Rv = /* @__PURE__ */ A('<div class="attachment-title noopen-file-button svelte-52jnh1"> </div>'), jv = (t, e, n, r, i) => e(n(), r(), i()), Fv = /* @__PURE__ */ A('<button class="attachment-title open-file-button svelte-52jnh1"> </button>'), Dv = (t, e, n, r, i) => e(n(), r(), i()), Pv = /* @__PURE__ */ A('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-52jnh1"></i></button></div>'), Mv = /* @__PURE__ */ A('<button class="btn send-button stop-recording-btn svelte-52jnh1" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Ov = /* @__PURE__ */ A('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Synthesizing" disabled><!></button>'), Uv = /* @__PURE__ */ A('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-52jnh1"></i></button>'), Nv = /* @__PURE__ */ A('<button class="btn send-button stop-stream-btn svelte-52jnh1" aria-label="Stop message"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Bv = /* @__PURE__ */ A('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Loading" disabled><!></button>'), qv = /* @__PURE__ */ A('<button class="btn send-button aks-btn-answer send-message-btn svelte-52jnh1" aria-label="Send message"><i class="fa-solid fa-paper-plane svelte-52jnh1"></i></button>'), Hv = /* @__PURE__ */ A('<div class="top svelte-52jnh1"><textarea style="color: black !important;" class="form-control form-control-sm svelte-52jnh1" rows="2"></textarea></div> <div class="bottom svelte-52jnh1"><div class="controls-row svelte-52jnh1"><div class="plus-button-container svelte-52jnh1"><button><i></i></button> <!></div> <select class="mode-select svelte-52jnh1" aria-label="Select mode"><option class="svelte-52jnh1">Auto</option><option class="svelte-52jnh1">Manuale Suite</option><option class="svelte-52jnh1"> </option><option class="svelte-52jnh1">Knowledge Base</option><option class="svelte-52jnh1">GenDoc</option><option class="svelte-52jnh1">Trascrizioni</option><!><option class="svelte-52jnh1">Agente Suite</option><!></select> <div class="attachments-container svelte-52jnh1"></div> <div class="send-buttons svelte-52jnh1"><!> <!></div></div></div>', 1), Yv = /* @__PURE__ */ A('<div class="input svelte-52jnh1"><!></div> <!>', 1);
7678
7678
  const Gv = {
7679
7679
  hash: "svelte-52jnh1",
7680
7680
  code: `textarea.svelte-52jnh1 {border:none;overflow-y:auto;resize:none;transition:height 0.1s ease;max-height:120px; /* 5 righe circa */font-size:16px;}.noopen-file-button.svelte-52jnh1 {background:none;border:none;padding:0;font-size:0.875rem;color:black;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-52jnh1 {background:none;border:none;cursor:pointer;padding:0;font-size:0.875rem;color:white;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-52jnh1:hover {background-color:transparent;text-decoration:underline;}.mode-select.svelte-52jnh1 {flex-shrink:0;height:32px;padding:0 8px;border-radius:16px;border:2px solid #e9ecef;background-color:#f8f9fa;color:#295dcf;font-size:0.8rem;font-weight:500;cursor:pointer;transition:all 0.2s ease;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);outline:none;max-width:120px;}.mode-select.svelte-52jnh1:hover {background-color:#e9ecef;border-color:#295dcf;}.mode-select.svelte-52jnh1:focus {border-color:#295dcf;box-shadow:0 0 0 3px rgba(41, 93, 207, 0.1);}.plus-button-container.svelte-52jnh1 {position:relative;flex-shrink:0;}.plus-button.svelte-52jnh1 {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;background-color:#f8f9fa;color:#295dcf;border:2px solid #e9ecef;transition:all 0.2s ease;font-size:1.1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.plus-button.svelte-52jnh1:hover {background-color:#295dcf;color:white;border-color:#295dcf;transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.plus-button.svelte-52jnh1:active {transform:scale(0.95);}.plus-button-active.svelte-52jnh1 {background-color:#295dcf;color:white;border-color:#295dcf;}.plus-button-active.svelte-52jnh1:hover {background-color:#1d4a9e;border-color:#1d4a9e;transform:scale(1.05);}.controls-row.svelte-52jnh1 {display:flex;align-items:center;width:100%;gap:5px;min-width:0;}.attachments-container.svelte-52jnh1 {display:flex;gap:5px;overflow-x:auto;min-width:0;flex:1;padding:2px 0;\r
@@ -7702,7 +7702,7 @@ function fo(t, e) {
7702
7702
  ve(e, !0), _e(t, Gv);
7703
7703
  let n = m(e, "sendMessage", 7), r = m(e, "stopMessage", 7), i = m(e, "loading", 15), s = m(e, "languageSelected", 15), a = m(e, "modeSelected", 15), o = m(e, "attachments", 15), l = m(e, "userLevel", 15), c = m(e, "uploadFiles", 7), u = m(e, "actChat", 15), f = m(e, "streamMessage", 15), h = m(e, "uploadingFileName", 15), p = m(e, "uploadProgress", 15), b = X(""), w = X(null), R = X(!1), x = X(!1), k = X(""), T = /* @__PURE__ */ Ke(() => d(b) + d(k)), F = null;
7704
7704
  typeof window < "u" && (F = new zv(s(), {
7705
- onTranscriptUpdate: (z, H) => {
7705
+ onTranscriptUpdate: (z, Y) => {
7706
7706
  z && v(b, d(b) + (z + " "));
7707
7707
  },
7708
7708
  onRecordingComplete: (z) => {
@@ -7716,7 +7716,7 @@ function fo(t, e) {
7716
7716
  }
7717
7717
  }));
7718
7718
  let I = null;
7719
- typeof window < "u" && (I = new Ps({
7719
+ typeof window < "u" && (I = new Ms({
7720
7720
  onProgressUpdate: (z) => {
7721
7721
  h(z.fileName), p(z.progress);
7722
7722
  },
@@ -7727,10 +7727,10 @@ function fo(t, e) {
7727
7727
  console.error("Upload error:", z);
7728
7728
  }
7729
7729
  }));
7730
- let j = X(!1), E = X(!1), P = X(null), W = /* @__PURE__ */ Ke(() => lr(a()));
7731
- const ke = 20, Me = 5, V = 0.5;
7732
- function K(z, H) {
7733
- return z ? a() === "normative" || a() === "suite" ? d(W).name : "" : H;
7730
+ let j = X(!1), E = X(!1), M = X(null), W = /* @__PURE__ */ Ke(() => lr(a()));
7731
+ const ke = 20, Pe = 5, V = 0.5;
7732
+ function K(z, Y) {
7733
+ return z ? a() === "normative" || a() === "suite" ? d(W).name : "" : Y;
7734
7734
  }
7735
7735
  function Te() {
7736
7736
  v(b, ""), o({}), d(w) && (d(w).style.height = "auto");
@@ -7738,14 +7738,14 @@ function fo(t, e) {
7738
7738
  const it = () => {
7739
7739
  if (!d(w)) return;
7740
7740
  d(w).style.height = "auto";
7741
- const z = d(w).scrollHeight, H = ke * Me;
7742
- d(w).style.height = Math.min(z, H) + "px";
7741
+ const z = d(w).scrollHeight, Y = ke * Pe;
7742
+ d(w).style.height = Math.min(z, Y) + "px";
7743
7743
  }, lt = (z) => {
7744
7744
  var ce, re;
7745
7745
  z.preventDefault();
7746
- const H = z.deltaY * V;
7747
- (re = d(P)) == null || re.scrollTo({
7748
- left: (((ce = d(P)) == null ? void 0 : ce.scrollLeft) || 0) + H,
7746
+ const Y = z.deltaY * V;
7747
+ (re = d(M)) == null || re.scrollTo({
7748
+ left: (((ce = d(M)) == null ? void 0 : ce.scrollLeft) || 0) + Y,
7749
7749
  behavior: "smooth"
7750
7750
  });
7751
7751
  }, Fe = () => {
@@ -7755,17 +7755,17 @@ function fo(t, e) {
7755
7755
  }, Z = () => {
7756
7756
  F && F.stopRecording();
7757
7757
  }, Ge = () => {
7758
- v(j, !1), I && Ps.openFileDialog(
7758
+ v(j, !1), I && Ms.openFileDialog(
7759
7759
  async (z) => {
7760
7760
  z && z.length > 0 && await I.uploadMultipleFiles(z, c(), u(), n());
7761
7761
  },
7762
7762
  !0
7763
7763
  );
7764
- }, tt = (z, H, ce) => {
7765
- delete o()[z], ce && ht.deleteFile(ce, H);
7766
- }, Je = async (z, H, ce) => {
7767
- await Et.getDocumentPage(z, H, ce);
7768
- }, Y = [
7764
+ }, tt = (z, Y, ce) => {
7765
+ delete o()[z], ce && dt.deleteFile(ce, Y);
7766
+ }, Je = async (z, Y, ce) => {
7767
+ await Et.getDocumentPage(z, Y, ce);
7768
+ }, G = [
7769
7769
  "suite",
7770
7770
  "normative",
7771
7771
  "kb",
@@ -7784,13 +7784,13 @@ function fo(t, e) {
7784
7784
  }), st(() => () => {
7785
7785
  F && F.cleanup();
7786
7786
  });
7787
- var ze = Yv(), Ae = nt(ze), Pe = y(Ae);
7787
+ var ze = Yv(), Ae = nt(ze), Me = y(Ae);
7788
7788
  {
7789
7789
  var he = (z) => {
7790
- var H = Ev(), ce = D(y(H), 2), re = y(ce, !0);
7791
- _(ce), _(H), M((ue) => xe(re, ue), [() => Gd()]), S(z, H);
7790
+ var Y = Ev(), ce = D(y(Y), 2), re = y(ce, !0);
7791
+ _(ce), _(Y), P((ue) => xe(re, ue), [() => Gd()]), S(z, Y);
7792
7792
  }, de = (z) => {
7793
- var H = Hv(), ce = nt(H), re = y(ce);
7793
+ var Y = Hv(), ce = nt(Y), re = y(ce);
7794
7794
  Gl(re), re.__input = [
7795
7795
  Iv,
7796
7796
  R,
@@ -7804,7 +7804,7 @@ function fo(t, e) {
7804
7804
  var Ne = D(Oe, 2);
7805
7805
  {
7806
7806
  var ct = (oe) => {
7807
- var q = $v(), L = y(q);
7807
+ var H = $v(), L = y(H);
7808
7808
  L.__click = [
7809
7809
  Tv,
7810
7810
  j,
@@ -7815,21 +7815,21 @@ function fo(t, e) {
7815
7815
  var Ue = D(L, 2);
7816
7816
  Ue.__click = Ge;
7817
7817
  var Ie = D(y(Ue), 2), Ze = y(Ie, !0);
7818
- _(Ie), _(Ue), _(q), M(
7819
- (Ct, Pt, Bt, ri, ii, ur, qt) => {
7820
- xt(L, `${Ct ?? ""} svelte-52jnh1`), L.disabled = Pt, xe(St, `${Bt ?? ""}
7818
+ _(Ie), _(Ue), _(H), P(
7819
+ (Ct, Mt, Bt, ri, ii, ur, qt) => {
7820
+ xt(L, `${Ct ?? ""} svelte-52jnh1`), L.disabled = Mt, xe(St, `${Bt ?? ""}
7821
7821
  ${ri ?? ""}`), xt(Ue, `${ii ?? ""} svelte-52jnh1`), Ue.disabled = ur, xe(Ze, qt);
7822
7822
  },
7823
7823
  [
7824
- () => `dropdown-option ${Y.includes(a()) ? "" : "option-disabled"}`,
7825
- () => !Y.includes(a()),
7824
+ () => `dropdown-option ${G.includes(a()) ? "" : "option-disabled"}`,
7825
+ () => !G.includes(a()),
7826
7826
  () => Qc(),
7827
7827
  () => uv(a()),
7828
7828
  () => `dropdown-option ${ne.includes(a()) ? "" : "option-disabled"}`,
7829
7829
  () => !ne.includes(a()),
7830
7830
  () => tu()
7831
7831
  ]
7832
- ), S(oe, q);
7832
+ ), S(oe, H);
7833
7833
  };
7834
7834
  ee(Ne, (oe) => {
7835
7835
  d(j) && oe(ct);
@@ -7846,17 +7846,17 @@ function fo(t, e) {
7846
7846
  B.value = (B.__value = "normative") == null ? "" : "normative";
7847
7847
  var Q = y(B, !0);
7848
7848
  _(B);
7849
- var G = D(B);
7850
- G.value = (G.__value = "kb") == null ? "" : "kb";
7851
- var pe = D(G);
7849
+ var q = D(B);
7850
+ q.value = (q.__value = "kb") == null ? "" : "kb";
7851
+ var pe = D(q);
7852
7852
  pe.value = (pe.__value = "gendoc") == null ? "" : "gendoc";
7853
7853
  var ae = D(pe);
7854
7854
  ae.value = (ae.__value = "transcriptions") == null ? "" : "transcriptions";
7855
7855
  var me = D(ae);
7856
7856
  {
7857
7857
  var Ve = (oe) => {
7858
- var q = Av();
7859
- q.value = (q.__value = "audit_handler") == null ? "" : "audit_handler", S(oe, q);
7858
+ var H = Av();
7859
+ H.value = (H.__value = "audit_handler") == null ? "" : "audit_handler", S(oe, H);
7860
7860
  };
7861
7861
  ee(me, (oe) => {
7862
7862
  l() >= 40 && oe(Ve);
@@ -7867,8 +7867,8 @@ function fo(t, e) {
7867
7867
  var le = D(fe);
7868
7868
  {
7869
7869
  var ye = (oe) => {
7870
- var q = Lv();
7871
- q.value = (q.__value = "risk_analysis_agent") == null ? "" : "risk_analysis_agent", S(oe, q);
7870
+ var H = Lv();
7871
+ H.value = (H.__value = "risk_analysis_agent") == null ? "" : "risk_analysis_agent", S(oe, H);
7872
7872
  };
7873
7873
  ee(le, (oe) => {
7874
7874
  l() >= 25 && oe(ye);
@@ -7876,13 +7876,13 @@ function fo(t, e) {
7876
7876
  }
7877
7877
  _(ut);
7878
7878
  var He = D(ut, 2);
7879
- at(He, 21, () => Object.entries(o()), dt, (oe, q) => {
7880
- let L = () => d(q)[0], Le = () => d(q)[1].title, St = () => d(q)[1].ext_id, Ue = () => d(q)[1].gendoc_id, Ie = () => d(q)[1].storage_id, Ze = () => d(q)[1].isCommon;
7881
- var Ct = Mv(), Pt = y(Ct), Bt = D(Pt, 2);
7879
+ at(He, 21, () => Object.entries(o()), ft, (oe, H) => {
7880
+ let L = () => d(H)[0], Le = () => d(H)[1].title, St = () => d(H)[1].ext_id, Ue = () => d(H)[1].gendoc_id, Ie = () => d(H)[1].storage_id, Ze = () => d(H)[1].isCommon;
7881
+ var Ct = Pv(), Mt = y(Ct), Bt = D(Mt, 2);
7882
7882
  {
7883
7883
  var ri = (qt) => {
7884
7884
  var Ot = Rv(), Hn = y(Ot, !0);
7885
- _(Ot), M(
7885
+ _(Ot), P(
7886
7886
  (cs) => {
7887
7887
  O(Ot, "title", cs), xe(Hn, cs);
7888
7888
  },
@@ -7898,7 +7898,7 @@ function fo(t, e) {
7898
7898
  Ue
7899
7899
  ];
7900
7900
  var Hn = y(Ot, !0);
7901
- _(Ot), M(() => xe(Hn, Le())), S(qt, Ot);
7901
+ _(Ot), P(() => xe(Hn, Le())), S(qt, Ot);
7902
7902
  };
7903
7903
  ee(Bt, (qt) => {
7904
7904
  Ze() ? qt(ri) : qt(ii, !1);
@@ -7911,9 +7911,9 @@ function fo(t, e) {
7911
7911
  L,
7912
7912
  Le,
7913
7913
  Ie
7914
- ], _(Ct), M(
7914
+ ], _(Ct), P(
7915
7915
  (qt, Ot, Hn) => {
7916
- xt(Ct, `${`attachment-item ${Ze() ? "common" : ""}` ?? ""} svelte-52jnh1`), O(Ct, "title", qt), xt(Pt, `${Ot ?? ""} svelte-52jnh1`), O(Pt, "style", Hn), xt(ur, `${`remove-btn ${Ze() ? "common" : ""}` ?? ""} svelte-52jnh1`);
7916
+ xt(Ct, `${`attachment-item ${Ze() ? "common" : ""}` ?? ""} svelte-52jnh1`), O(Ct, "title", qt), xt(Mt, `${Ot ?? ""} svelte-52jnh1`), O(Mt, "style", Hn), xt(ur, `${`remove-btn ${Ze() ? "common" : ""}` ?? ""} svelte-52jnh1`);
7917
7917
  },
7918
7918
  [
7919
7919
  () => K(Ze() ?? !1, Le()),
@@ -7921,21 +7921,21 @@ function fo(t, e) {
7921
7921
  () => Le().toLowerCase().endsWith(".tldv") ? "color: #1d1dff" : ""
7922
7922
  ]
7923
7923
  ), S(oe, Ct);
7924
- }), _(He), Lr(He, (oe) => v(P, oe), () => d(P));
7924
+ }), _(He), Lr(He, (oe) => v(M, oe), () => d(M));
7925
7925
  var Ye = D(He, 2), rt = y(Ye);
7926
7926
  {
7927
7927
  var Qe = (oe) => {
7928
- var q = Pv();
7929
- q.__click = Z, M((L) => O(q, "title", L), [() => ou()]), S(oe, q);
7930
- }, ft = (oe) => {
7931
- var q = kt(), L = nt(q);
7928
+ var H = Mv();
7929
+ H.__click = Z, P((L) => O(H, "title", L), [() => ou()]), S(oe, H);
7930
+ }, ht = (oe) => {
7931
+ var H = kt(), L = nt(H);
7932
7932
  {
7933
7933
  var Le = (Ue) => {
7934
7934
  var Ie = Ov(), Ze = y(Ie);
7935
7935
  Fr(Ze, { size: "20", color: "white" }), _(Ie), S(Ue, Ie);
7936
7936
  }, St = (Ue) => {
7937
7937
  var Ie = Uv();
7938
- Ie.__click = et, M(
7938
+ Ie.__click = et, P(
7939
7939
  (Ze) => {
7940
7940
  O(Ie, "title", Ze), Ie.disabled = i();
7941
7941
  },
@@ -7950,29 +7950,29 @@ function fo(t, e) {
7950
7950
  !0
7951
7951
  );
7952
7952
  }
7953
- S(oe, q);
7953
+ S(oe, H);
7954
7954
  };
7955
7955
  ee(rt, (oe) => {
7956
- d(R) ? oe(Qe) : oe(ft, !1);
7956
+ d(R) ? oe(Qe) : oe(ht, !1);
7957
7957
  });
7958
7958
  }
7959
7959
  var At = D(rt, 2);
7960
7960
  {
7961
7961
  var We = (oe) => {
7962
- var q = Nv();
7963
- q.__click = function(...L) {
7962
+ var H = Nv();
7963
+ H.__click = function(...L) {
7964
7964
  var Le;
7965
7965
  (Le = r()) == null || Le.apply(this, L);
7966
- }, M((L) => O(q, "title", L), [() => wd()]), S(oe, q);
7966
+ }, P((L) => O(H, "title", L), [() => wd()]), S(oe, H);
7967
7967
  }, zt = (oe) => {
7968
- var q = kt(), L = nt(q);
7968
+ var H = kt(), L = nt(H);
7969
7969
  {
7970
7970
  var Le = (Ue) => {
7971
7971
  var Ie = Bv(), Ze = y(Ie);
7972
7972
  Fr(Ze, { size: "20", color: "white" }), _(Ie), S(Ue, Ie);
7973
7973
  }, St = (Ue) => {
7974
7974
  var Ie = qv();
7975
- Ie.__click = Fe, M(
7975
+ Ie.__click = Fe, P(
7976
7976
  (Ze, Ct) => {
7977
7977
  O(Ie, "title", Ze), Ie.disabled = Ct;
7978
7978
  },
@@ -7990,15 +7990,15 @@ function fo(t, e) {
7990
7990
  !0
7991
7991
  );
7992
7992
  }
7993
- S(oe, q);
7993
+ S(oe, H);
7994
7994
  };
7995
7995
  ee(At, (oe) => {
7996
7996
  i() && f() ? oe(We) : oe(zt, !1);
7997
7997
  });
7998
7998
  }
7999
- _(Ye), _(Ee), _(ue), M(
8000
- (oe, q, L) => {
8001
- O(re, "placeholder", oe), Ha(re, d(T)), re.readOnly = d(R) || i(), xt(Oe, `${`btn plus-button ${d(j) ? "plus-button-active" : ""}` ?? ""} svelte-52jnh1`), O(Oe, "aria-label", q), O(Oe, "title", q), xt(qe, `${`fa-solid ${d(j) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-52jnh1`), xe(Q, L);
7999
+ _(Ye), _(Ee), _(ue), P(
8000
+ (oe, H, L) => {
8001
+ O(re, "placeholder", oe), Ha(re, d(T)), re.readOnly = d(R) || i(), xt(Oe, `${`btn plus-button ${d(j) ? "plus-button-active" : ""}` ?? ""} svelte-52jnh1`), O(Oe, "aria-label", H), O(Oe, "title", H), xt(qe, `${`fa-solid ${d(j) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-52jnh1`), xe(Q, L);
8002
8002
  },
8003
8003
  [
8004
8004
  () => Uc(),
@@ -8007,11 +8007,11 @@ function fo(t, e) {
8007
8007
  ]
8008
8008
  ), nn("keypress", re, (oe) => {
8009
8009
  oe.key === "Enter" && !oe.shiftKey && (oe.preventDefault(), Fe());
8010
- }), Wa(ut, a), nn("wheel", He, lt), S(z, H);
8010
+ }), Wa(ut, a), nn("wheel", He, lt), S(z, Y);
8011
8011
  };
8012
- ee(Pe, (z) => {
8013
- var H;
8014
- (H = u()) != null && H.state.blockChat ? z(he) : z(de, !1);
8012
+ ee(Me, (z) => {
8013
+ var Y;
8014
+ (Y = u()) != null && Y.state.blockChat ? z(he) : z(de, !1);
8015
8015
  });
8016
8016
  }
8017
8017
  _(Ae);
@@ -8022,20 +8022,20 @@ function fo(t, e) {
8022
8022
  get attachments() {
8023
8023
  return o();
8024
8024
  },
8025
- set attachments(H) {
8026
- o(H);
8025
+ set attachments(Y) {
8026
+ o(Y);
8027
8027
  },
8028
8028
  get showDocumentSearchModal() {
8029
8029
  return d(E);
8030
8030
  },
8031
- set showDocumentSearchModal(H) {
8032
- v(E, C(H));
8031
+ set showDocumentSearchModal(Y) {
8032
+ v(E, C(Y));
8033
8033
  },
8034
8034
  get modeSelected() {
8035
8035
  return a();
8036
8036
  },
8037
- set modeSelected(H) {
8038
- a(H);
8037
+ set modeSelected(Y) {
8038
+ a(Y);
8039
8039
  }
8040
8040
  });
8041
8041
  };
@@ -8184,13 +8184,13 @@ const ho = /^[a-z0-9]+(-[a-z0-9]+)*$/, Kr = (t, e, n, r = "") => {
8184
8184
  width: 16,
8185
8185
  height: 16
8186
8186
  }
8187
- ), Mr = Object.freeze({
8187
+ ), Pr = Object.freeze({
8188
8188
  rotate: 0,
8189
8189
  vFlip: !1,
8190
8190
  hFlip: !1
8191
8191
  }), ei = Object.freeze({
8192
8192
  ...po,
8193
- ...Mr
8193
+ ...Pr
8194
8194
  }), zi = Object.freeze({
8195
8195
  ...ei,
8196
8196
  body: "",
@@ -8205,7 +8205,7 @@ function Jv(t, e) {
8205
8205
  function Os(t, e) {
8206
8206
  const n = Jv(t, e);
8207
8207
  for (const r in zi)
8208
- r in Mr ? r in t && !(r in n) && (n[r] = Mr[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
8208
+ r in Pr ? r in t && !(r in n) && (n[r] = Pr[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
8209
8209
  return n;
8210
8210
  }
8211
8211
  function Wv(t, e) {
@@ -8304,7 +8304,7 @@ function Vv(t, e) {
8304
8304
  missing: /* @__PURE__ */ new Set()
8305
8305
  };
8306
8306
  }
8307
- function Mn(t, e) {
8307
+ function Pn(t, e) {
8308
8308
  const n = Us[t] || (Us[t] = /* @__PURE__ */ Object.create(null));
8309
8309
  return n[e] || (n[e] = Vv(t, e));
8310
8310
  }
@@ -8328,7 +8328,7 @@ function bo(t) {
8328
8328
  function Kv(t) {
8329
8329
  const e = typeof t == "string" ? Kr(t, !0, rr) : t;
8330
8330
  if (e) {
8331
- const n = Mn(e.provider, e.prefix), r = e.name;
8331
+ const n = Pn(e.provider, e.prefix), r = e.name;
8332
8332
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
8333
8333
  }
8334
8334
  }
@@ -8336,7 +8336,7 @@ function eg(t, e) {
8336
8336
  const n = Kr(t, !0, rr);
8337
8337
  if (!n)
8338
8338
  return !1;
8339
- const r = Mn(n.provider, n.prefix);
8339
+ const r = Pn(n.provider, n.prefix);
8340
8340
  return e ? Qv(r, n.name, e) : (r.missing.add(n.name), !0);
8341
8341
  }
8342
8342
  function tg(t, e) {
@@ -8355,7 +8355,7 @@ function tg(t, e) {
8355
8355
  name: "a"
8356
8356
  }))
8357
8357
  return !1;
8358
- const r = Mn(e, n);
8358
+ const r = Pn(e, n);
8359
8359
  return !!mo(r, t);
8360
8360
  }
8361
8361
  const wo = Object.freeze({
@@ -8365,7 +8365,7 @@ const wo = Object.freeze({
8365
8365
  // Dimensions
8366
8366
  ...wo,
8367
8367
  // Transformations
8368
- ...Mr
8368
+ ...Pr
8369
8369
  }), ng = /(-?[0-9.]*[0-9]+[0-9.]*)/g, rg = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
8370
8370
  function Ns(t, e, n) {
8371
8371
  if (e === 1)
@@ -8663,7 +8663,7 @@ function kg(t) {
8663
8663
  if (r.name === i.name && r.prefix === i.prefix && r.provider === i.provider)
8664
8664
  return;
8665
8665
  r = i;
8666
- const s = i.provider, a = i.prefix, o = i.name, l = n[s] || (n[s] = /* @__PURE__ */ Object.create(null)), c = l[a] || (l[a] = Mn(s, a));
8666
+ const s = i.provider, a = i.prefix, o = i.name, l = n[s] || (n[s] = /* @__PURE__ */ Object.create(null)), c = l[a] || (l[a] = Pn(s, a));
8667
8667
  let u;
8668
8668
  o in c.icons ? u = e.loaded : a === "" || c.missing.has(o) ? u = e.missing : u = e.pending;
8669
8669
  const f = {
@@ -8795,7 +8795,7 @@ function Eg(t, e, n, r) {
8795
8795
  j.status === "pending" && (j.status = "aborted");
8796
8796
  }), h = [];
8797
8797
  }
8798
- function F(j, E, P) {
8798
+ function F(j, E, M) {
8799
8799
  const W = E !== "success";
8800
8800
  switch (h = h.filter((ke) => ke !== j), l) {
8801
8801
  case "pending":
@@ -8808,11 +8808,11 @@ function Eg(t, e, n, r) {
8808
8808
  return;
8809
8809
  }
8810
8810
  if (E === "abort") {
8811
- u = P, k();
8811
+ u = M, k();
8812
8812
  return;
8813
8813
  }
8814
8814
  if (W) {
8815
- u = P, h.length || (a.length ? I() : k());
8815
+ u = M, h.length || (a.length ? I() : k());
8816
8816
  return;
8817
8817
  }
8818
8818
  if (b(), T(), !t.random) {
@@ -8820,7 +8820,7 @@ function Eg(t, e, n, r) {
8820
8820
  ke !== -1 && ke !== t.index && (t.index = ke);
8821
8821
  }
8822
8822
  l = "completed", p.forEach((ke) => {
8823
- ke(P);
8823
+ ke(M);
8824
8824
  });
8825
8825
  }
8826
8826
  function I() {
@@ -8841,8 +8841,8 @@ function Eg(t, e, n, r) {
8841
8841
  const E = {
8842
8842
  status: "pending",
8843
8843
  resource: j,
8844
- callback: (P, W) => {
8845
- F(E, P, W);
8844
+ callback: (M, W) => {
8845
+ F(E, M, W);
8846
8846
  }
8847
8847
  };
8848
8848
  h.push(E), c++, f = setTimeout(I, t.rotate), n(j, e, E.callback);
@@ -9025,11 +9025,11 @@ const jg = (t, e) => {
9025
9025
  const { provider: c, prefix: u } = l;
9026
9026
  if (u === o && c === a)
9027
9027
  return;
9028
- a = c, o = u, s.push(Mn(c, u));
9028
+ a = c, o = u, s.push(Pn(c, u));
9029
9029
  const f = i[c] || (i[c] = /* @__PURE__ */ Object.create(null));
9030
9030
  f[u] || (f[u] = []);
9031
9031
  }), r.pending.forEach((l) => {
9032
- const { provider: c, prefix: u, name: f } = l, h = Mn(c, u), p = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
9032
+ const { provider: c, prefix: u, name: f } = l, h = Pn(c, u), p = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
9033
9033
  p.has(f) || (p.add(f), i[c][u].push(f));
9034
9034
  }), s.forEach((l) => {
9035
9035
  const c = i[l.provider][l.prefix];
@@ -9047,7 +9047,7 @@ function Fg(t, e) {
9047
9047
  return n;
9048
9048
  }
9049
9049
  const Dg = /[\s,]+/;
9050
- function Mg(t, e) {
9050
+ function Pg(t, e) {
9051
9051
  e.split(Dg).forEach((n) => {
9052
9052
  switch (n.trim()) {
9053
9053
  case "horizontal":
@@ -9059,7 +9059,7 @@ function Mg(t, e) {
9059
9059
  }
9060
9060
  });
9061
9061
  }
9062
- function Pg(t, e = 0) {
9062
+ function Mg(t, e = 0) {
9063
9063
  const n = t.replace(/^-?[0-9.]*/, "");
9064
9064
  function r(i) {
9065
9065
  for (; i < 0; )
@@ -9151,13 +9151,13 @@ function Gg(t, e) {
9151
9151
  n[x] = k === !0 || k === "true" || k === 1;
9152
9152
  break;
9153
9153
  case "flip":
9154
- typeof k == "string" && Mg(n, k);
9154
+ typeof k == "string" && Pg(n, k);
9155
9155
  break;
9156
9156
  case "color":
9157
9157
  s = s + (s.length > 0 && s.trim().slice(-1) !== ";" ? ";" : "") + "color: " + k + "; ";
9158
9158
  break;
9159
9159
  case "rotate":
9160
- typeof k == "string" ? n[x] = Pg(k) : typeof k == "number" && (n[x] = k);
9160
+ typeof k == "string" ? n[x] = Mg(k) : typeof k == "number" && (n[x] = k);
9161
9161
  break;
9162
9162
  case "ariaHidden":
9163
9163
  case "aria-hidden":
@@ -9302,11 +9302,11 @@ function dn(t, e) {
9302
9302
  var k = Wg();
9303
9303
  let T;
9304
9304
  var F = y(k);
9305
- br(F, () => d(a).body, !0, !1), _(k), M(() => T = ws(k, T, { ...d(a).attributes }, void 0, !0)), S(x, k);
9305
+ br(F, () => d(a).body, !0, !1), _(k), P(() => T = ws(k, T, { ...d(a).attributes }, void 0, !0)), S(x, k);
9306
9306
  }, R = (x) => {
9307
9307
  var k = Zg();
9308
9308
  let T;
9309
- M(() => T = ws(k, T, { ...d(a).attributes })), S(x, k);
9309
+ P(() => T = ws(k, T, { ...d(a).attributes })), S(x, k);
9310
9310
  };
9311
9311
  ee(b, (x) => {
9312
9312
  d(a).svg ? x(w) : x(R, !1);
@@ -9335,9 +9335,9 @@ function es() {
9335
9335
  walkTokens: null
9336
9336
  };
9337
9337
  }
9338
- let En = es();
9338
+ let In = es();
9339
9339
  function zo(t) {
9340
- En = t;
9340
+ In = t;
9341
9341
  }
9342
9342
  const Vn = { exec: () => null };
9343
9343
  function je(t, e = "") {
@@ -9437,7 +9437,7 @@ const vt = {
9437
9437
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
9438
9438
  paragraph: je(ns).replace("hr", cr).replace("heading", ` *#{1,6} *[^
9439
9439
  ]`).replace("lheading", Co).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
9440
- }, lm = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, cm = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Eo = /^( {2,}|\\)\n(?!\s*$)/, um = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ni = /[\p{P}\p{S}]/u, as = /[\s\p{P}\p{S}]/u, Io = /[^\s\p{P}\p{S}]/u, dm = je(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, as).getRegex(), $o = /(?!~)[\p{P}\p{S}]/u, fm = /(?!~)[\s\p{P}\p{S}]/u, hm = /(?:[^\s\p{P}\p{S}]|~)/u, pm = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ao = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, vm = je(Ao, "u").replace(/punct/g, ni).getRegex(), gm = je(Ao, "u").replace(/punct/g, $o).getRegex(), Lo = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", mm = je(Lo, "gu").replace(/notPunctSpace/g, Io).replace(/punctSpace/g, as).replace(/punct/g, ni).getRegex(), bm = je(Lo, "gu").replace(/notPunctSpace/g, hm).replace(/punctSpace/g, fm).replace(/punct/g, $o).getRegex(), wm = je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Io).replace(/punctSpace/g, as).replace(/punct/g, ni).getRegex(), xm = je(/\\(punct)/, "gu").replace(/punct/g, ni).getRegex(), _m = je(/^<(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(), km = je(is).replace("(?:-->|$)", "-->").getRegex(), ym = je("^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", km).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Pr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, zm = je(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Pr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ro = je(/^!?\[(label)\]\[(ref)\]/).replace("label", Pr).replace("ref", rs).getRegex(), jo = je(/^!?\[(ref)\](?:\[\])?/).replace("ref", rs).getRegex(), Sm = je("reflink|nolink(?!\\()", "g").replace("reflink", Ro).replace("nolink", jo).getRegex(), os = {
9440
+ }, lm = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, cm = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Eo = /^( {2,}|\\)\n(?!\s*$)/, um = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ni = /[\p{P}\p{S}]/u, as = /[\s\p{P}\p{S}]/u, Io = /[^\s\p{P}\p{S}]/u, dm = je(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, as).getRegex(), $o = /(?!~)[\p{P}\p{S}]/u, fm = /(?!~)[\s\p{P}\p{S}]/u, hm = /(?:[^\s\p{P}\p{S}]|~)/u, pm = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ao = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, vm = je(Ao, "u").replace(/punct/g, ni).getRegex(), gm = je(Ao, "u").replace(/punct/g, $o).getRegex(), Lo = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", mm = je(Lo, "gu").replace(/notPunctSpace/g, Io).replace(/punctSpace/g, as).replace(/punct/g, ni).getRegex(), bm = je(Lo, "gu").replace(/notPunctSpace/g, hm).replace(/punctSpace/g, fm).replace(/punct/g, $o).getRegex(), wm = je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Io).replace(/punctSpace/g, as).replace(/punct/g, ni).getRegex(), xm = je(/\\(punct)/, "gu").replace(/punct/g, ni).getRegex(), _m = je(/^<(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(), km = je(is).replace("(?:-->|$)", "-->").getRegex(), ym = je("^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", km).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Mr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, zm = je(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Mr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ro = je(/^!?\[(label)\]\[(ref)\]/).replace("label", Mr).replace("ref", rs).getRegex(), jo = je(/^!?\[(ref)\](?:\[\])?/).replace("ref", rs).getRegex(), Sm = je("reflink|nolink(?!\\()", "g").replace("reflink", Ro).replace("nolink", jo).getRegex(), os = {
9441
9441
  _backpedal: Vn,
9442
9442
  // only used for GFM url
9443
9443
  anyPunctuation: xm,
@@ -9460,8 +9460,8 @@ const vt = {
9460
9460
  url: Vn
9461
9461
  }, Cm = {
9462
9462
  ...os,
9463
- link: je(/^!?\[(label)\]\((.*?)\)/).replace("label", Pr).getRegex(),
9464
- reflink: je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Pr).getRegex()
9463
+ link: je(/^!?\[(label)\]\((.*?)\)/).replace("label", Mr).getRegex(),
9464
+ reflink: je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Mr).getRegex()
9465
9465
  }, Ei = {
9466
9466
  ...os,
9467
9467
  emStrongRDelimAst: bm,
@@ -9591,7 +9591,7 @@ class Or {
9591
9591
  $(this, "rules");
9592
9592
  // set by the lexer
9593
9593
  $(this, "lexer");
9594
- this.options = e || En;
9594
+ this.options = e || In;
9595
9595
  }
9596
9596
  space(e) {
9597
9597
  const n = this.rules.block.newline.exec(e);
@@ -9735,12 +9735,12 @@ ${f}` : f;
9735
9735
  for (; e; ) {
9736
9736
  const E = e.split(`
9737
9737
  `, 1)[0];
9738
- let P;
9739
- if (p = E, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), P = p) : P = p.replace(this.rules.other.tabCharGlobal, " "), F.test(p) || I.test(p) || j.test(p) || k.test(p) || T.test(p))
9738
+ let M;
9739
+ if (p = E, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), M = p) : M = p.replace(this.rules.other.tabCharGlobal, " "), F.test(p) || I.test(p) || j.test(p) || k.test(p) || T.test(p))
9740
9740
  break;
9741
- if (P.search(this.rules.other.nonSpaceChar) >= w || !p.trim())
9741
+ if (M.search(this.rules.other.nonSpaceChar) >= w || !p.trim())
9742
9742
  f += `
9743
- ` + P.slice(w);
9743
+ ` + M.slice(w);
9744
9744
  else {
9745
9745
  if (b || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(h) || I.test(h) || T.test(h))
9746
9746
  break;
@@ -9748,7 +9748,7 @@ ${f}` : f;
9748
9748
  ` + p;
9749
9749
  }
9750
9750
  !b && !p.trim() && (b = !0), u += E + `
9751
- `, e = e.substring(E.length + 1), h = P.slice(w);
9751
+ `, e = e.substring(E.length + 1), h = M.slice(w);
9752
9752
  }
9753
9753
  }
9754
9754
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
@@ -10075,7 +10075,7 @@ class Rt {
10075
10075
  $(this, "state");
10076
10076
  $(this, "tokenizer");
10077
10077
  $(this, "inlineQueue");
10078
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || En, this.options.tokenizer = this.options.tokenizer || new Or(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
10078
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || In, this.options.tokenizer = this.options.tokenizer || new Or(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
10079
10079
  inLink: !1,
10080
10080
  inRawBlock: !1,
10081
10081
  top: !0
@@ -10318,7 +10318,7 @@ class Ur {
10318
10318
  constructor(e) {
10319
10319
  $(this, "options");
10320
10320
  $(this, "parser");
10321
- this.options = e || En;
10321
+ this.options = e || In;
10322
10322
  }
10323
10323
  space(e) {
10324
10324
  return "";
@@ -10483,7 +10483,7 @@ class jt {
10483
10483
  $(this, "options");
10484
10484
  $(this, "renderer");
10485
10485
  $(this, "textRenderer");
10486
- this.options = e || En, this.options.renderer = this.options.renderer || new Ur(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ls();
10486
+ this.options = e || In, this.options.renderer = this.options.renderer || new Ur(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ls();
10487
10487
  }
10488
10488
  /**
10489
10489
  * Static Parse Method
@@ -10645,7 +10645,7 @@ class Qn {
10645
10645
  constructor(e) {
10646
10646
  $(this, "options");
10647
10647
  $(this, "block");
10648
- this.options = e || En;
10648
+ this.options = e || In;
10649
10649
  }
10650
10650
  /**
10651
10651
  * Process markdown before marked
@@ -10856,22 +10856,22 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10856
10856
  };
10857
10857
  }
10858
10858
  }
10859
- const yn = new Am();
10859
+ const zn = new Am();
10860
10860
  function $e(t, e) {
10861
- return yn.parse(t, e);
10861
+ return zn.parse(t, e);
10862
10862
  }
10863
10863
  $e.options = $e.setOptions = function(t) {
10864
- return yn.setOptions(t), $e.defaults = yn.defaults, zo($e.defaults), $e;
10864
+ return zn.setOptions(t), $e.defaults = zn.defaults, zo($e.defaults), $e;
10865
10865
  };
10866
10866
  $e.getDefaults = es;
10867
- $e.defaults = En;
10867
+ $e.defaults = In;
10868
10868
  $e.use = function(...t) {
10869
- return yn.use(...t), $e.defaults = yn.defaults, zo($e.defaults), $e;
10869
+ return zn.use(...t), $e.defaults = zn.defaults, zo($e.defaults), $e;
10870
10870
  };
10871
10871
  $e.walkTokens = function(t, e) {
10872
- return yn.walkTokens(t, e);
10872
+ return zn.walkTokens(t, e);
10873
10873
  };
10874
- $e.parseInline = yn.parseInline;
10874
+ $e.parseInline = zn.parseInline;
10875
10875
  $e.Parser = jt;
10876
10876
  $e.parser = jt.parse;
10877
10877
  $e.Renderer = Ur;
@@ -10901,7 +10901,7 @@ const Lm = async (t, e, n) => {
10901
10901
  }
10902
10902
  }
10903
10903
  };
10904
- var Rm = (t, e, n) => e(d(n)), jm = /* @__PURE__ */ A('<i class="fa-solid fa-spinner fa-spin svelte-1tn93gt"></i>'), Fm = /* @__PURE__ */ A("<i></i>"), Dm = /* @__PURE__ */ A('<div class="document-path svelte-1tn93gt"> </div>'), Mm = /* @__PURE__ */ A('<button><!> <div class="document-info svelte-1tn93gt"><span class="document-title svelte-1tn93gt"> </span> <!></div></button>'), Pm = /* @__PURE__ */ A('<div class="sources-expanded svelte-1tn93gt"><div class="sources-header svelte-1tn93gt"></div> <div class="sources-list svelte-1tn93gt"></div> <div class="sources-footer svelte-1tn93gt"><button class="copy-sources-btn svelte-1tn93gt"><i class="fa-solid fa-copy svelte-1tn93gt"></i> <span> </span></button></div></div>'), Om = /* @__PURE__ */ A('<div class="sources-container svelte-1tn93gt"><!></div>'), Um = /* @__PURE__ */ A('<div class="message-attachments"><!></div>');
10904
+ var Rm = (t, e, n) => e(d(n)), jm = /* @__PURE__ */ A('<i class="fa-solid fa-spinner fa-spin svelte-1tn93gt"></i>'), Fm = /* @__PURE__ */ A("<i></i>"), Dm = /* @__PURE__ */ A('<div class="document-path svelte-1tn93gt"> </div>'), Pm = /* @__PURE__ */ A('<button><!> <div class="document-info svelte-1tn93gt"><span class="document-title svelte-1tn93gt"> </span> <!></div></button>'), Mm = /* @__PURE__ */ A('<div class="sources-expanded svelte-1tn93gt"><div class="sources-header svelte-1tn93gt"></div> <div class="sources-list svelte-1tn93gt"></div> <div class="sources-footer svelte-1tn93gt"><button class="copy-sources-btn svelte-1tn93gt"><i class="fa-solid fa-copy svelte-1tn93gt"></i> <span> </span></button></div></div>'), Om = /* @__PURE__ */ A('<div class="sources-container svelte-1tn93gt"><!></div>'), Um = /* @__PURE__ */ A('<div class="message-attachments"><!></div>');
10905
10905
  const Nm = {
10906
10906
  hash: "svelte-1tn93gt",
10907
10907
  code: ".sources-container.svelte-1tn93gt {display:flex;flex-direction:column;width:100%;}.sources-expanded.svelte-1tn93gt {background:rgba(255, 255, 255, 0.2);border-radius:0 0 8px 0;box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);margin-top:-10px;overflow:hidden;max-width:100%;}.sources-header.svelte-1tn93gt {height:10px;}.sources-footer.svelte-1tn93gt {display:flex;justify-content:flex-end;align-items:center;padding:0 10px 10px 10px;}.sources-title.svelte-1tn93gt {margin:0;font-size:16px;font-weight:600;color:#333;}.copy-sources-btn.svelte-1tn93gt {display:flex;align-items:center;gap:6px;padding:8px 12px;background:rgba(255, 255, 255, 0.9);color:#295dcf;border:1px solid rgba(255, 255, 255, 0.3);border-radius:8px;cursor:pointer;font-size:13px;transition:all 0.2s;white-space:nowrap;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.copy-sources-btn.svelte-1tn93gt:hover {background:white;box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.copy-sources-btn.svelte-1tn93gt i:where(.svelte-1tn93gt) {font-size:12px;}.sources-list.svelte-1tn93gt {display:grid;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));gap:8px;padding:10px;}.dropdown-option.svelte-1tn93gt {display:flex;align-items:center;width:100%;min-width:0;padding:12px 15px;border:1px solid rgba(255, 255, 255, 0.5);border-radius:8px;background:white;color:#333;cursor:pointer;transition:all 0.2s;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.dropdown-option.svelte-1tn93gt:disabled {cursor:wait;opacity:0.7;}.dropdown-option.common.svelte-1tn93gt {color:#8fa1c9;cursor:default;opacity:0.8;}.dropdown-option.svelte-1tn93gt:hover {background:white;color:#295dcf;border-color:rgba(41, 93, 207, 0.3);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.dropdown-option.common.svelte-1tn93gt:hover {background:white;color:#8fa1c9;border-color:rgba(255, 255, 255, 0.5);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);transform:none;}.dropdown-option.svelte-1tn93gt i:where(.svelte-1tn93gt) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-1tn93gt span:where(.svelte-1tn93gt) {font-size:14px;}.document-info.svelte-1tn93gt {display:flex;flex-direction:column;align-items:flex-start;flex:1;}.document-title.svelte-1tn93gt {font-weight:500;margin-bottom:4px;text-align:left;word-break:break-word;}.document-path.svelte-1tn93gt {font-size:0.85em;color:#6c757d;text-align:left;word-break:break-word;}"
@@ -10974,7 +10974,7 @@ function Ii(t, e) {
10974
10974
  return;
10975
10975
  }
10976
10976
  const E = so(T);
10977
- !Mp(T) || E === "mp3" ? await f(k, j || "", T) : await u(k, j || "", T);
10977
+ !Pp(T) || E === "mp3" ? await f(k, j || "", T) : await u(k, j || "", T);
10978
10978
  };
10979
10979
  var b = Um(), w = y(b);
10980
10980
  {
@@ -10982,55 +10982,55 @@ function Ii(t, e) {
10982
10982
  var k = Om(), T = y(k);
10983
10983
  {
10984
10984
  var F = (I) => {
10985
- var j = Pm(), E = D(y(j), 2);
10986
- at(E, 21, r, dt, (V, K) => {
10987
- var Te = Mm();
10985
+ var j = Mm(), E = D(y(j), 2);
10986
+ at(E, 21, r, ft, (V, K) => {
10987
+ var Te = Pm();
10988
10988
  const it = /* @__PURE__ */ Ke(() => pr(d(K).external_id, d(K).filename)), lt = /* @__PURE__ */ Ke(() => Np(d(K))), Fe = /* @__PURE__ */ Ke(() => d(s)[d(it)]), et = /* @__PURE__ */ Ke(() => qp(d(K), i())), Z = /* @__PURE__ */ Ke(() => ao(d(K))), Ge = /* @__PURE__ */ Ke(() => oo(d(K))), tt = /* @__PURE__ */ Ke(() => d(K).isCommon ? lr(d(K).commonType).name : $s());
10989
10989
  Te.__click = [Rm, p, K];
10990
10990
  var Je = y(Te);
10991
10991
  {
10992
- var Y = (ie) => {
10992
+ var G = (ie) => {
10993
10993
  var se = jm();
10994
10994
  S(ie, se);
10995
10995
  }, ne = (ie) => {
10996
10996
  var se = Fm();
10997
- M(() => {
10997
+ P(() => {
10998
10998
  xt(se, qi(d(lt).icon), "svelte-1tn93gt"), O(se, "style", d(lt).color ? `color: ${d(lt).color}` : "");
10999
10999
  }), S(ie, se);
11000
11000
  };
11001
11001
  ee(Je, (ie) => {
11002
- d(Fe) ? ie(Y) : ie(ne, !1);
11002
+ d(Fe) ? ie(G) : ie(ne, !1);
11003
11003
  });
11004
11004
  }
11005
- var ze = D(Je, 2), Ae = y(ze), Pe = y(Ae, !0);
11005
+ var ze = D(Je, 2), Ae = y(ze), Me = y(Ae, !0);
11006
11006
  _(Ae);
11007
11007
  var he = D(Ae, 2);
11008
11008
  {
11009
11009
  var de = (ie) => {
11010
11010
  var se = Dm(), z = y(se, !0);
11011
- _(se), M(() => xe(z, d(Ge))), S(ie, se);
11011
+ _(se), P(() => xe(z, d(Ge))), S(ie, se);
11012
11012
  };
11013
11013
  ee(he, (ie) => {
11014
11014
  d(K).isCommon || ie(de);
11015
11015
  });
11016
11016
  }
11017
- _(ze), _(Te), M(
11017
+ _(ze), _(Te), P(
11018
11018
  (ie) => {
11019
- xt(Te, `${`dropdown-option ${d(et) ? "common" : ""}` ?? ""} svelte-1tn93gt`), O(Te, "aria-label", ie), O(Te, "title", d(tt)), Te.disabled = d(Fe), xe(Pe, d(Z));
11019
+ xt(Te, `${`dropdown-option ${d(et) ? "common" : ""}` ?? ""} svelte-1tn93gt`), O(Te, "aria-label", ie), O(Te, "title", d(tt)), Te.disabled = d(Fe), xe(Me, d(Z));
11020
11020
  },
11021
11021
  [() => $s()]
11022
11022
  ), S(V, Te);
11023
11023
  }), _(E);
11024
- var P = D(E, 2), W = y(P);
11024
+ var M = D(E, 2), W = y(M);
11025
11025
  W.__click = [
11026
11026
  Lm,
11027
11027
  r,
11028
11028
  l
11029
11029
  ];
11030
- var ke = D(y(W), 2), Me = y(ke, !0);
11031
- _(ke), _(W), _(P), _(j), M(
11030
+ var ke = D(y(W), 2), Pe = y(ke, !0);
11031
+ _(ke), _(W), _(M), _(j), P(
11032
11032
  (V) => {
11033
- O(W, "aria-label", V), O(W, "title", V), xe(Me, d(a));
11033
+ O(W, "aria-label", V), O(W, "title", V), xe(Pe, d(a));
11034
11034
  },
11035
11035
  [() => li()]
11036
11036
  ), Ut(3, j, () => zc, () => ({ duration: 300 })), S(I, j);
@@ -11099,29 +11099,29 @@ const u0 = {
11099
11099
  };
11100
11100
  function Fo(t, e) {
11101
11101
  ve(e, !0), _e(t, u0);
11102
- let n = m(e, "messages", 15), r = m(e, "loading", 15), i = m(e, "error", 15), s = m(e, "streamMessage", 15), a = m(e, "streamAttachments", 15), o = m(e, "streamedAgent", 15), l = m(e, "languageSelected", 15), c = m(e, "userLevel", 15), u = m(e, "loadingChat", 15), f = m(e, "onQuickReply", 7), h = X(void 0), p = X(C(new Audio())), b = X(!1), w = X(C({})), R = X(C({})), x = X(C({})), k = X(null), T = X(C(n())), F = X(null), I = X(!0), j = X(!1), E = X(!1), P = X(C(u())), W = X(!1);
11102
+ let n = m(e, "messages", 15), r = m(e, "loading", 15), i = m(e, "error", 15), s = m(e, "streamMessage", 15), a = m(e, "streamAttachments", 15), o = m(e, "streamedAgent", 15), l = m(e, "languageSelected", 15), c = m(e, "userLevel", 15), u = m(e, "loadingChat", 15), f = m(e, "onQuickReply", 7), h = X(void 0), p = X(C(new Audio())), b = X(!1), w = X(C({})), R = X(C({})), x = X(C({})), k = X(null), T = X(C(n())), F = X(null), I = X(!0), j = X(!1), E = X(!1), M = X(C(u())), W = X(!1);
11103
11103
  const ke = async () => {
11104
- await In(), d(h) && (d(h).scrollTop = d(h).scrollHeight);
11105
- }, Me = async () => {
11106
- await In(), v(I, !1);
11104
+ await bn(), d(h) && (d(h).scrollTop = d(h).scrollHeight);
11105
+ }, Pe = async () => {
11106
+ await bn(), v(I, !1);
11107
11107
  }, V = async () => {
11108
- d(W) || (v(W, !0), await In(), v(j, !1));
11108
+ d(W) || (v(W, !0), await bn(), v(j, !1));
11109
11109
  }, K = () => {
11110
11110
  d(E) && v(j, !0);
11111
11111
  }, Te = () => {
11112
11112
  d(E) && (v(T, C(d(F) ?? n())), v(F, null), v(I, !0), v(E, !1), v(W, !1));
11113
- }, it = (Y) => {
11114
- Xi.getAudio(Y.content, l()).then((ne) => {
11113
+ }, it = (G) => {
11114
+ Xi.getAudio(G.content, l()).then((ne) => {
11115
11115
  v(p, C(new Audio(ne))), d(p).play(), v(b, !0), d(p).onended = () => {
11116
11116
  v(b, !1);
11117
11117
  };
11118
11118
  });
11119
- }, lt = async (Y, ne) => {
11120
- const ze = await Promise.resolve(Y.html ?? $e.parseInline(Y.content)), Ae = document.createElement("div");
11119
+ }, lt = async (G, ne) => {
11120
+ const ze = await Promise.resolve(G.html ?? $e.parseInline(G.content)), Ae = document.createElement("div");
11121
11121
  Ae.innerHTML = ze;
11122
- const Pe = Ae.innerHTML, he = Ae.textContent || Ae.innerText || "";
11122
+ const Me = Ae.innerHTML, he = Ae.textContent || Ae.innerText || "";
11123
11123
  try {
11124
- const de = new Blob([Pe], { type: "text/html" }), ie = new Blob([he], { type: "text/plain" }), se = new ClipboardItem({ "text/html": de, "text/plain": ie });
11124
+ const de = new Blob([Me], { type: "text/html" }), ie = new Blob([he], { type: "text/plain" }), se = new ClipboardItem({ "text/html": de, "text/plain": ie });
11125
11125
  await navigator.clipboard.write([se]), d(R)[ne] = js(), setTimeout(
11126
11126
  () => {
11127
11127
  d(R)[ne] = "";
@@ -11143,15 +11143,15 @@ function Fo(t, e) {
11143
11143
  }
11144
11144
  }, Fe = () => {
11145
11145
  if (!d(h)) return;
11146
- const Y = d(h).getBoundingClientRect(), ne = Y.top, ze = Y.bottom;
11146
+ const G = d(h).getBoundingClientRect(), ne = G.top, ze = G.bottom;
11147
11147
  d(h).querySelectorAll(".message-plus-play").forEach((he) => {
11148
11148
  const de = he, ie = de.getAttribute("data-message-index");
11149
11149
  if (ie === null) return;
11150
11150
  const se = parseInt(ie, 10);
11151
11151
  if (!he.querySelector(".play-button")) return;
11152
- const H = he.querySelector(".message-received");
11153
- if (!H) return;
11154
- const ce = de.getBoundingClientRect(), re = H.getBoundingClientRect(), ue = Math.max(re.top, ne), Ee = Math.min(re.bottom, ze);
11152
+ const Y = he.querySelector(".message-received");
11153
+ if (!Y) return;
11154
+ const ce = de.getBoundingClientRect(), re = Y.getBoundingClientRect(), ue = Math.max(re.top, ne), Ee = Math.min(re.bottom, ze);
11155
11155
  if (ue < ze && Ee > ne) {
11156
11156
  const Oe = (ue + Ee) / 2 - ce.top, Ne = re.width + 5;
11157
11157
  d(x)[se] = {
@@ -11160,11 +11160,11 @@ function Fo(t, e) {
11160
11160
  };
11161
11161
  }
11162
11162
  });
11163
- const Pe = d(h).querySelector(".message-plus-play:not([data-message-index])");
11164
- if (Pe && r()) {
11165
- const he = Pe.querySelector(".message-received");
11163
+ const Me = d(h).querySelector(".message-plus-play:not([data-message-index])");
11164
+ if (Me && r()) {
11165
+ const he = Me.querySelector(".message-received");
11166
11166
  if (he) {
11167
- const de = Pe.getBoundingClientRect(), ie = he.getBoundingClientRect(), se = Math.max(ie.top, ne), z = Math.min(ie.bottom, ze);
11167
+ const de = Me.getBoundingClientRect(), ie = he.getBoundingClientRect(), se = Math.max(ie.top, ne), z = Math.min(ie.bottom, ze);
11168
11168
  if (se < ze && z > ne) {
11169
11169
  const ce = (se + z) / 2 - de.top, ue = ie.width + 5;
11170
11170
  v(k, C({
@@ -11177,7 +11177,7 @@ function Fo(t, e) {
11177
11177
  v(k, null);
11178
11178
  };
11179
11179
  st(() => {
11180
- u() && !d(P) ? (v(E, !0), v(F, null), v(j, !1), v(I, !0), Me()) : !u() && d(P) && (v(F, C(n())), d(j) && V()), v(P, C(u()));
11180
+ u() && !d(M) ? (v(E, !0), v(F, null), v(j, !1), v(I, !0), Pe()) : !u() && d(M) && (v(F, C(n())), d(j) && V()), v(M, C(u()));
11181
11181
  }), st(() => {
11182
11182
  d(E) && d(j) && !u() && V();
11183
11183
  }), st(() => {
@@ -11186,37 +11186,37 @@ function Fo(t, e) {
11186
11186
  s(), d(T), ke();
11187
11187
  }), st(() => {
11188
11188
  if (!d(h) || !f()) return;
11189
- const Y = (ne) => {
11189
+ const G = (ne) => {
11190
11190
  const Ae = ne.target.closest("button.quick-reply");
11191
11191
  if (!Ae) return;
11192
- const Pe = d(h).querySelectorAll(".message-received .message-content"), he = Pe[Pe.length - 1];
11192
+ const Me = d(h).querySelectorAll(".message-received .message-content"), he = Me[Me.length - 1];
11193
11193
  if (!(he != null && he.contains(Ae))) return;
11194
11194
  const de = Ae.getAttribute("data-action");
11195
11195
  de && f()(de);
11196
11196
  };
11197
- return d(h).addEventListener("click", Y), () => {
11197
+ return d(h).addEventListener("click", G), () => {
11198
11198
  var ne;
11199
- return (ne = d(h)) == null ? void 0 : ne.removeEventListener("click", Y);
11199
+ return (ne = d(h)) == null ? void 0 : ne.removeEventListener("click", G);
11200
11200
  };
11201
11201
  }), st(() => {
11202
11202
  if (!d(h)) return;
11203
- const Y = () => {
11203
+ const G = () => {
11204
11204
  Fe();
11205
11205
  };
11206
- return d(h).addEventListener("scroll", Y), In().then(() => Fe()), () => {
11206
+ return d(h).addEventListener("scroll", G), bn().then(() => Fe()), () => {
11207
11207
  var ne;
11208
- (ne = d(h)) == null || ne.removeEventListener("scroll", Y);
11208
+ (ne = d(h)) == null || ne.removeEventListener("scroll", G);
11209
11209
  };
11210
11210
  }), st(() => {
11211
- d(T), In().then(() => Fe());
11211
+ d(T), bn().then(() => Fe());
11212
11212
  }), st(() => {
11213
- r(), s(), In().then(() => Fe());
11213
+ r(), s(), bn().then(() => Fe());
11214
11214
  });
11215
11215
  var et = c0(), Z = y(et);
11216
11216
  {
11217
- var Ge = (Y) => {
11217
+ var Ge = (G) => {
11218
11218
  var ne = o0(), ze = D(y(ne), 2);
11219
- at(ze, 17, () => d(T), dt, (se, z, H) => {
11219
+ at(ze, 17, () => d(T), ft, (se, z, Y) => {
11220
11220
  var ce = kt(), re = nt(ce);
11221
11221
  {
11222
11222
  var ue = (Ee) => {
@@ -11224,10 +11224,10 @@ function Fo(t, e) {
11224
11224
  {
11225
11225
  var qe = (U) => {
11226
11226
  var B = Hm();
11227
- at(B, 21, () => d(z).attachments, dt, (Q, G) => {
11227
+ at(B, 21, () => d(z).attachments, ft, (Q, q) => {
11228
11228
  var pe = qm(), ae = D(y(pe), 2), me = y(ae, !0);
11229
- _(ae), _(pe), M(() => {
11230
- O(pe, "title", d(G).filename), xe(me, d(G).filename);
11229
+ _(ae), _(pe), P(() => {
11230
+ O(pe, "title", d(q).filename), xe(me, d(q).filename);
11231
11231
  }), S(Q, pe);
11232
11232
  }), _(B), S(U, B);
11233
11233
  };
@@ -11236,14 +11236,14 @@ function Fo(t, e) {
11236
11236
  });
11237
11237
  }
11238
11238
  var Ne = D(Oe, 2);
11239
- O(Ne, "data-message-index", H);
11239
+ O(Ne, "data-message-index", Y);
11240
11240
  var ct = y(Ne);
11241
11241
  {
11242
11242
  var ut = (U) => {
11243
- var B = Jm(), Q = y(B), G = y(Q), pe = y(G);
11244
- br(pe, () => d(z).html ?? $e.parseInline(d(z).content), !1, !1), _(G), _(Q);
11243
+ var B = Jm(), Q = y(B), q = y(Q), pe = y(q);
11244
+ br(pe, () => d(z).html ?? $e.parseInline(d(z).content), !1, !1), _(q), _(Q);
11245
11245
  var ae = D(Q, 2), me = y(ae);
11246
- me.__click = () => lt(d(z), H);
11246
+ me.__click = () => lt(d(z), Y);
11247
11247
  var Ve = y(me);
11248
11248
  {
11249
11249
  var fe = (ye) => {
@@ -11254,20 +11254,20 @@ function Fo(t, e) {
11254
11254
  S(ye, He);
11255
11255
  };
11256
11256
  ee(Ve, (ye) => {
11257
- d(R)[H] ? ye(fe) : ye(le, !1);
11257
+ d(R)[Y] ? ye(fe) : ye(le, !1);
11258
11258
  });
11259
11259
  }
11260
- _(me), _(ae), _(B), M((ye) => O(me, "title", ye), [
11261
- () => d(R)[H] || Rs()
11260
+ _(me), _(ae), _(B), P((ye) => O(me, "title", ye), [
11261
+ () => d(R)[Y] || Rs()
11262
11262
  ]), S(U, B);
11263
11263
  }, J = (U) => {
11264
- var B = t0(), Q = nt(B), G = y(Q), pe = y(G), ae = y(pe);
11265
- br(ae, () => d(z).html ?? $e.parseInline(d(z).content), !1, !1), _(pe), _(G);
11266
- var me = D(G, 2), Ve = y(me);
11264
+ var B = t0(), Q = nt(B), q = y(Q), pe = y(q), ae = y(pe);
11265
+ br(ae, () => d(z).html ?? $e.parseInline(d(z).content), !1, !1), _(pe), _(q);
11266
+ var me = D(q, 2), Ve = y(me);
11267
11267
  {
11268
- var fe = (q) => {
11269
- var L = /* @__PURE__ */ Ke(() => d(w)[H] || !1);
11270
- Ii(q, {
11268
+ var fe = (H) => {
11269
+ var L = /* @__PURE__ */ Ke(() => d(w)[Y] || !1);
11270
+ Ii(H, {
11271
11271
  get isDropdownOpen() {
11272
11272
  return d(L);
11273
11273
  },
@@ -11285,77 +11285,77 @@ function Fo(t, e) {
11285
11285
  }
11286
11286
  });
11287
11287
  };
11288
- ee(Ve, (q) => {
11289
- d(z).attachments && d(z).attachments.length > 0 && q(fe);
11288
+ ee(Ve, (H) => {
11289
+ d(z).attachments && d(z).attachments.length > 0 && H(fe);
11290
11290
  });
11291
11291
  }
11292
11292
  var le = D(Ve, 2), ye = y(le);
11293
11293
  {
11294
- var He = (q) => {
11294
+ var He = (H) => {
11295
11295
  var L = Wm(), Le = D(y(L), 2), St = y(Le, !0);
11296
- _(Le), _(L), M((Ue) => xe(St, Ue), [
11296
+ _(Le), _(L), P((Ue) => xe(St, Ue), [
11297
11297
  () => Fs(d(z).agentUsed)
11298
- ]), S(q, L);
11298
+ ]), S(H, L);
11299
11299
  };
11300
- ee(ye, (q) => {
11301
- d(z).agentUsed != null && d(z).agentUsed >= 0 && q(He);
11300
+ ee(ye, (H) => {
11301
+ d(z).agentUsed != null && d(z).agentUsed >= 0 && H(He);
11302
11302
  });
11303
11303
  }
11304
11304
  var Ye = D(ye, 2);
11305
11305
  {
11306
- var rt = (q) => {
11306
+ var rt = (H) => {
11307
11307
  var L = Zm();
11308
- L.__click = () => d(w)[H] = !d(w)[H];
11308
+ L.__click = () => d(w)[Y] = !d(w)[Y];
11309
11309
  var Le = y(L), St = y(Le);
11310
11310
  _(Le);
11311
11311
  var Ue = D(Le, 2);
11312
- _(L), M(
11312
+ _(L), P(
11313
11313
  (Ie) => {
11314
- xe(St, `${Ie ?? ""} (${d(z).attachments.length ?? ""})`), xt(Ue, `${`fa-solid fa-chevron-${d(w)[H] ? "up" : "down"}` ?? ""} svelte-x6wvf7`);
11314
+ xe(St, `${Ie ?? ""} (${d(z).attachments.length ?? ""})`), xt(Ue, `${`fa-solid fa-chevron-${d(w)[Y] ? "up" : "down"}` ?? ""} svelte-x6wvf7`);
11315
11315
  },
11316
11316
  [() => Fu()]
11317
- ), S(q, L);
11317
+ ), S(H, L);
11318
11318
  };
11319
- ee(Ye, (q) => {
11320
- d(z).attachments && d(z).attachments.length > 0 && q(rt);
11319
+ ee(Ye, (H) => {
11320
+ d(z).attachments && d(z).attachments.length > 0 && H(rt);
11321
11321
  });
11322
11322
  }
11323
11323
  var Qe = D(Ye, 2);
11324
- Qe.__click = () => lt(d(z), H);
11325
- var ft = y(Qe);
11324
+ Qe.__click = () => lt(d(z), Y);
11325
+ var ht = y(Qe);
11326
11326
  {
11327
- var At = (q) => {
11327
+ var At = (H) => {
11328
11328
  var L = Xm();
11329
- S(q, L);
11330
- }, We = (q) => {
11329
+ S(H, L);
11330
+ }, We = (H) => {
11331
11331
  var L = Vm();
11332
- S(q, L);
11332
+ S(H, L);
11333
11333
  };
11334
- ee(ft, (q) => {
11335
- d(R)[H] ? q(At) : q(We, !1);
11334
+ ee(ht, (H) => {
11335
+ d(R)[Y] ? H(At) : H(We, !1);
11336
11336
  });
11337
11337
  }
11338
11338
  _(Qe), _(le), _(me), _(Q);
11339
11339
  var zt = D(Q, 2);
11340
11340
  {
11341
- var oe = (q) => {
11341
+ var oe = (H) => {
11342
11342
  var L = kt(), Le = nt(L);
11343
11343
  {
11344
11344
  var St = (Ie) => {
11345
11345
  var Ze = Qm();
11346
- Ze.__click = [Bm, p, b], M(
11346
+ Ze.__click = [Bm, p, b], P(
11347
11347
  (Ct) => {
11348
- var Pt, Bt;
11349
- O(Ze, "title", Ct), O(Ze, "style", `top: ${((Pt = d(x)[H]) == null ? void 0 : Pt.top) ?? 0}px; left: ${((Bt = d(x)[H]) == null ? void 0 : Bt.left) ?? 0}px;`);
11348
+ var Mt, Bt;
11349
+ O(Ze, "title", Ct), O(Ze, "style", `top: ${((Mt = d(x)[Y]) == null ? void 0 : Mt.top) ?? 0}px; left: ${((Bt = d(x)[Y]) == null ? void 0 : Bt.left) ?? 0}px;`);
11350
11350
  },
11351
11351
  [() => sd()]
11352
11352
  ), S(Ie, Ze);
11353
11353
  }, Ue = (Ie) => {
11354
11354
  var Ze = e0();
11355
- Ze.__click = [Km, it, z], M(
11355
+ Ze.__click = [Km, it, z], P(
11356
11356
  (Ct) => {
11357
- var Pt, Bt;
11358
- O(Ze, "title", Ct), O(Ze, "style", `top: ${((Pt = d(x)[H]) == null ? void 0 : Pt.top) ?? 0}px; left: ${((Bt = d(x)[H]) == null ? void 0 : Bt.left) ?? 0}px;`);
11357
+ var Mt, Bt;
11358
+ O(Ze, "title", Ct), O(Ze, "style", `top: ${((Mt = d(x)[Y]) == null ? void 0 : Mt.top) ?? 0}px; left: ${((Bt = d(x)[Y]) == null ? void 0 : Bt.left) ?? 0}px;`);
11359
11359
  },
11360
11360
  [() => nd()]
11361
11361
  ), S(Ie, Ze);
@@ -11364,21 +11364,21 @@ function Fo(t, e) {
11364
11364
  d(b) ? Ie(St) : Ie(Ue, !1);
11365
11365
  });
11366
11366
  }
11367
- S(q, L);
11367
+ S(H, L);
11368
11368
  };
11369
- ee(zt, (q) => {
11370
- d(z).content != "" && q(oe);
11369
+ ee(zt, (H) => {
11370
+ d(z).content != "" && H(oe);
11371
11371
  });
11372
11372
  }
11373
- M((q) => O(Qe, "title", q), [
11374
- () => d(R)[H] || Rs()
11373
+ P((H) => O(Qe, "title", H), [
11374
+ () => d(R)[Y] || Rs()
11375
11375
  ]), S(U, B);
11376
11376
  };
11377
11377
  ee(ct, (U) => {
11378
11378
  d(z).sentByUser ? U(ut) : U(J, !1);
11379
11379
  });
11380
11380
  }
11381
- _(Ne), _(Xe), M(() => O(Ne, "style", `justify-content: ${(d(z).sentByUser ? "flex-end" : "flex-start") ?? ""}; align-items: center; gap: 5px;`)), S(Ee, Xe);
11381
+ _(Ne), _(Xe), P(() => O(Ne, "style", `justify-content: ${(d(z).sentByUser ? "flex-end" : "flex-start") ?? ""}; align-items: center; gap: 5px;`)), S(Ee, Xe);
11382
11382
  };
11383
11383
  ee(re, (Ee) => {
11384
11384
  d(z).content.trim() !== "" && Ee(ue);
@@ -11388,8 +11388,8 @@ function Fo(t, e) {
11388
11388
  });
11389
11389
  var Ae = D(ze, 2);
11390
11390
  {
11391
- var Pe = (se) => {
11392
- var z = i0(), H = y(z), ce = y(H), re = y(ce), ue = y(re);
11391
+ var Me = (se) => {
11392
+ var z = i0(), Y = y(z), ce = y(Y), re = y(ce), ue = y(re);
11393
11393
  br(ue, s, !1, !1), _(re), _(ce);
11394
11394
  var Ee = D(ce, 2), Xe = y(Ee);
11395
11395
  {
@@ -11402,14 +11402,14 @@ function Fo(t, e) {
11402
11402
  get attachmentList() {
11403
11403
  return a();
11404
11404
  },
11405
- set attachmentList(G) {
11406
- a(G);
11405
+ set attachmentList(q) {
11406
+ a(q);
11407
11407
  },
11408
11408
  get userLevel() {
11409
11409
  return c();
11410
11410
  },
11411
- set userLevel(G) {
11412
- c(G);
11411
+ set userLevel(q) {
11412
+ c(q);
11413
11413
  }
11414
11414
  });
11415
11415
  };
@@ -11418,25 +11418,25 @@ function Fo(t, e) {
11418
11418
  });
11419
11419
  }
11420
11420
  var qe = D(Xe, 2), Ne = y(qe), ct = D(y(Ne), 2), ut = y(ct, !0);
11421
- _(ct), _(Ne), _(qe), _(Ee), _(H);
11422
- var J = D(H, 2);
11421
+ _(ct), _(Ne), _(qe), _(Ee), _(Y);
11422
+ var J = D(Y, 2);
11423
11423
  {
11424
11424
  var U = (B) => {
11425
- var Q = r0(), G = y(Q);
11426
- dn(G, {
11425
+ var Q = r0(), q = y(Q);
11426
+ dn(q, {
11427
11427
  icon: "svg-spinners:90-ring-with-bg",
11428
11428
  width: "25px",
11429
11429
  height: "25px",
11430
11430
  color: "white"
11431
- }), _(Q), M(() => O(Q, "style", `top: ${d(k).top ?? ""}px; left: ${d(k).left ?? ""}px;`)), S(B, Q);
11431
+ }), _(Q), P(() => O(Q, "style", `top: ${d(k).top ?? ""}px; left: ${d(k).left ?? ""}px;`)), S(B, Q);
11432
11432
  };
11433
11433
  ee(J, (B) => {
11434
11434
  r() && d(k) && B(U);
11435
11435
  });
11436
11436
  }
11437
- _(z), M((B) => xe(ut, B), [() => Fs(o())]), S(se, z);
11437
+ _(z), P((B) => xe(ut, B), [() => Fs(o())]), S(se, z);
11438
11438
  }, he = (se) => {
11439
- var z = kt(), H = nt(z);
11439
+ var z = kt(), Y = nt(z);
11440
11440
  {
11441
11441
  var ce = (re) => {
11442
11442
  var ue = s0(), Ee = y(ue);
@@ -11448,7 +11448,7 @@ function Fo(t, e) {
11448
11448
  }), _(ue), S(re, ue);
11449
11449
  };
11450
11450
  ee(
11451
- H,
11451
+ Y,
11452
11452
  (re) => {
11453
11453
  r() && re(ce);
11454
11454
  },
@@ -11458,100 +11458,100 @@ function Fo(t, e) {
11458
11458
  S(se, z);
11459
11459
  };
11460
11460
  ee(Ae, (se) => {
11461
- s().length > 0 ? se(Pe) : se(he, !1);
11461
+ s().length > 0 ? se(Me) : se(he, !1);
11462
11462
  });
11463
11463
  }
11464
11464
  var de = D(Ae, 2);
11465
11465
  {
11466
11466
  var ie = (se) => {
11467
- var z = a0(), H = y(z, !0);
11468
- _(z), M(() => xe(H, i())), S(se, z);
11467
+ var z = a0(), Y = y(z, !0);
11468
+ _(z), P(() => xe(Y, i())), S(se, z);
11469
11469
  };
11470
11470
  ee(de, (se) => {
11471
11471
  i() != "" && se(ie);
11472
11472
  });
11473
11473
  }
11474
- _(ne), nn("outroend", ne, K), Ut(1, ne, () => cn, () => ({ duration: 100, delay: 100 })), Ut(2, ne, () => cn, () => ({ duration: 100 })), S(Y, ne);
11474
+ _(ne), nn("outroend", ne, K), Ut(1, ne, () => cn, () => ({ duration: 100, delay: 100 })), Ut(2, ne, () => cn, () => ({ duration: 100 })), S(G, ne);
11475
11475
  };
11476
- ee(Z, (Y) => {
11477
- d(I) && Y(Ge);
11476
+ ee(Z, (G) => {
11477
+ d(I) && G(Ge);
11478
11478
  });
11479
11479
  }
11480
11480
  var tt = D(Z, 2);
11481
11481
  {
11482
- var Je = (Y) => {
11482
+ var Je = (G) => {
11483
11483
  var ne = l0(), ze = y(ne);
11484
11484
  dn(ze, {
11485
11485
  icon: "svg-spinners:270-ring-with-bg",
11486
11486
  width: "50px",
11487
11487
  height: "50px",
11488
11488
  color: "white"
11489
- }), _(ne), nn("outroend", ne, Te), Ut(1, ne, () => cn, () => ({ duration: 100, delay: 200 })), Ut(2, ne, () => cn, () => ({ duration: 100 })), S(Y, ne);
11489
+ }), _(ne), nn("outroend", ne, Te), Ut(1, ne, () => cn, () => ({ duration: 100, delay: 200 })), Ut(2, ne, () => cn, () => ({ duration: 100 })), S(G, ne);
11490
11490
  };
11491
- ee(tt, (Y) => {
11492
- d(j) && Y(Je);
11491
+ ee(tt, (G) => {
11492
+ d(j) && G(Je);
11493
11493
  });
11494
11494
  }
11495
- return _(et), Lr(et, (Y) => v(h, Y), () => d(h)), S(t, et), ge({
11495
+ return _(et), Lr(et, (G) => v(h, G), () => d(h)), S(t, et), ge({
11496
11496
  get messages() {
11497
11497
  return n();
11498
11498
  },
11499
- set messages(Y) {
11500
- n(Y), g();
11499
+ set messages(G) {
11500
+ n(G), g();
11501
11501
  },
11502
11502
  get loading() {
11503
11503
  return r();
11504
11504
  },
11505
- set loading(Y) {
11506
- r(Y), g();
11505
+ set loading(G) {
11506
+ r(G), g();
11507
11507
  },
11508
11508
  get error() {
11509
11509
  return i();
11510
11510
  },
11511
- set error(Y) {
11512
- i(Y), g();
11511
+ set error(G) {
11512
+ i(G), g();
11513
11513
  },
11514
11514
  get streamMessage() {
11515
11515
  return s();
11516
11516
  },
11517
- set streamMessage(Y) {
11518
- s(Y), g();
11517
+ set streamMessage(G) {
11518
+ s(G), g();
11519
11519
  },
11520
11520
  get streamAttachments() {
11521
11521
  return a();
11522
11522
  },
11523
- set streamAttachments(Y) {
11524
- a(Y), g();
11523
+ set streamAttachments(G) {
11524
+ a(G), g();
11525
11525
  },
11526
11526
  get streamedAgent() {
11527
11527
  return o();
11528
11528
  },
11529
- set streamedAgent(Y) {
11530
- o(Y), g();
11529
+ set streamedAgent(G) {
11530
+ o(G), g();
11531
11531
  },
11532
11532
  get languageSelected() {
11533
11533
  return l();
11534
11534
  },
11535
- set languageSelected(Y) {
11536
- l(Y), g();
11535
+ set languageSelected(G) {
11536
+ l(G), g();
11537
11537
  },
11538
11538
  get userLevel() {
11539
11539
  return c();
11540
11540
  },
11541
- set userLevel(Y) {
11542
- c(Y), g();
11541
+ set userLevel(G) {
11542
+ c(G), g();
11543
11543
  },
11544
11544
  get loadingChat() {
11545
11545
  return u();
11546
11546
  },
11547
- set loadingChat(Y) {
11548
- u(Y), g();
11547
+ set loadingChat(G) {
11548
+ u(G), g();
11549
11549
  },
11550
11550
  get onQuickReply() {
11551
11551
  return f();
11552
11552
  },
11553
- set onQuickReply(Y) {
11554
- f(Y), g();
11553
+ set onQuickReply(G) {
11554
+ f(G), g();
11555
11555
  }
11556
11556
  });
11557
11557
  }
@@ -11620,30 +11620,30 @@ function Do(t, e) {
11620
11620
  let n = m(e, "showHistory", 15), r = m(e, "actChat", 15), i = m(e, "chats", 15), s = m(e, "messages", 15), a = m(e, "error", 15), o = m(e, "loadingChat", 15), l = m(e, "loadingChats", 15), c = m(e, "newChat", 7), u = m(e, "unreadChatIds", 15), f = m(e, "loadMoreChats", 7), h = m(e, "hasMoreChats", 7), p = m(e, "loadingMoreChats", 15);
11621
11621
  const b = /* @__PURE__ */ Ke(() => {
11622
11622
  const E = [];
11623
- let P = "";
11623
+ let M = "";
11624
11624
  for (const W of i()) {
11625
- const ke = W.lastUpdate || Ds(W._id).getTime(), Me = dv(ke);
11626
- Me !== P ? (P = Me, E.push({ label: Me, chats: [W] })) : E[E.length - 1].chats.push(W);
11625
+ const ke = W.lastUpdate || Ds(W._id).getTime(), Pe = dv(ke);
11626
+ Pe !== M ? (M = Pe, E.push({ label: Pe, chats: [W] })) : E[E.length - 1].chats.push(W);
11627
11627
  }
11628
11628
  return E;
11629
11629
  }), w = async (E) => {
11630
11630
  if (o(!0), u().includes(E))
11631
11631
  try {
11632
- await ht.readChat(E), u(u().filter((W) => W !== E));
11632
+ await dt.readChat(E), u(u().filter((W) => W !== E));
11633
11633
  } catch (W) {
11634
11634
  console.error("Error marking chat as read:", W);
11635
11635
  }
11636
- let P = await ht.getChat(E);
11637
- r(P), s(r().messages), o(!1), a(""), window.innerWidth <= 1400 && n(!1);
11638
- }, R = (E, P) => {
11639
- confirm(gu({ chatTitle: P })) && ht.deleteChat(E).then(() => {
11636
+ let M = await dt.getChat(E);
11637
+ r(M), s(r().messages), o(!1), a(""), window.innerWidth <= 1400 && n(!1);
11638
+ }, R = (E, M) => {
11639
+ confirm(gu({ chatTitle: M })) && dt.deleteChat(E).then(() => {
11640
11640
  i(i().filter((W) => W._id !== E)), r()._id === E && c()();
11641
11641
  });
11642
11642
  };
11643
11643
  let x = X(null), k;
11644
11644
  st(() => {
11645
- var P;
11646
- const E = (P = i()[0]) == null ? void 0 : P._id;
11645
+ var M;
11646
+ const E = (M = i()[0]) == null ? void 0 : M._id;
11647
11647
  E && E !== k && d(x) && (k = E, d(x).scrollTop = 0);
11648
11648
  }), st(() => {
11649
11649
  !h() || p() || l() || !d(x) || (i().length, Promise.resolve().then(() => {
@@ -11651,13 +11651,13 @@ function Do(t, e) {
11651
11651
  }));
11652
11652
  });
11653
11653
  const T = (E) => {
11654
- const P = E.target;
11655
- h() && P.scrollTop + P.clientHeight >= P.scrollHeight - 60 && f()();
11654
+ const M = E.target;
11655
+ h() && M.scrollTop + M.clientHeight >= M.scrollHeight - 60 && f()();
11656
11656
  };
11657
11657
  var F = z0(), I = y(F);
11658
11658
  {
11659
11659
  var j = (E) => {
11660
- var P = y0(), W = y(P), ke = y(W), Me = y(ke, !0);
11660
+ var M = y0(), W = y(M), ke = y(W), Pe = y(ke, !0);
11661
11661
  _(ke);
11662
11662
  var V = D(ke, 2);
11663
11663
  V.__click = [d0, n], _(W);
@@ -11670,15 +11670,15 @@ function Do(t, e) {
11670
11670
  var et = kt(), Z = nt(et);
11671
11671
  {
11672
11672
  var Ge = (Je) => {
11673
- var Y = h0(), ne = y(Y, !0);
11674
- _(Y), M((ze) => xe(ne, ze), [() => Zd()]), S(Je, Y);
11673
+ var G = h0(), ne = y(G, !0);
11674
+ _(G), P((ze) => xe(ne, ze), [() => Zd()]), S(Je, G);
11675
11675
  }, tt = (Je) => {
11676
- var Y = k0(), ne = nt(Y);
11677
- at(ne, 17, () => d(b), dt, (he, de) => {
11676
+ var G = k0(), ne = nt(G);
11677
+ at(ne, 17, () => d(b), ft, (he, de) => {
11678
11678
  var ie = w0(), se = nt(ie), z = y(se, !0);
11679
11679
  _(se);
11680
- var H = D(se, 2);
11681
- at(H, 17, () => d(de).chats, (ce) => ce._id, (ce, re) => {
11680
+ var Y = D(se, 2);
11681
+ at(Y, 17, () => d(de).chats, (ce) => ce._id, (ce, re) => {
11682
11682
  var ue = b0(), Ee = y(ue);
11683
11683
  Ee.__click = [p0, r, re, w];
11684
11684
  var Xe = y(Ee), Oe = y(Xe), qe = y(Oe), Ne = y(qe, !0);
@@ -11698,46 +11698,46 @@ function Do(t, e) {
11698
11698
  _(U);
11699
11699
  var Q = D(U, 2);
11700
11700
  {
11701
- var G = (ae) => {
11701
+ var q = (ae) => {
11702
11702
  var me = g0(), Ve = D(nt(me), 2), fe = D(y(Ve));
11703
- _(Ve), M(
11703
+ _(Ve), P(
11704
11704
  (le, ye) => {
11705
11705
  O(Ve, "title", le), xe(fe, ` ${ye ?? ""}`);
11706
11706
  },
11707
11707
  [
11708
11708
  () => gf(),
11709
- () => Ms(d(re).lastUpdate)
11709
+ () => Ps(d(re).lastUpdate)
11710
11710
  ]
11711
11711
  ), S(ae, me);
11712
11712
  };
11713
11713
  ee(Q, (ae) => {
11714
- d(re).lastUpdate && ae(G);
11714
+ d(re).lastUpdate && ae(q);
11715
11715
  });
11716
11716
  }
11717
11717
  _(J), _(Xe), _(Ee);
11718
11718
  var pe = D(Ee, 2);
11719
- pe.__click = [m0, R, re], _(ue), M(
11719
+ pe.__click = [m0, R, re], _(ue), P(
11720
11720
  (ae, me) => {
11721
11721
  be(ue, "active", r()._id === d(re)._id), O(Ee, "title", d(re).title), O(qe, "title", d(re).title), xe(Ne, d(re).title), O(U, "title", ae), xe(B, ` ${me ?? ""}`);
11722
11722
  },
11723
11723
  [
11724
11724
  () => hf(),
11725
- () => Ms(Ds(d(re)._id).getTime())
11725
+ () => Ps(Ds(d(re)._id).getTime())
11726
11726
  ]
11727
11727
  ), S(ce, ue);
11728
- }), M(() => xe(z, d(de).label)), S(he, ie);
11728
+ }), P(() => xe(z, d(de).label)), S(he, ie);
11729
11729
  });
11730
11730
  var ze = D(ne, 2);
11731
11731
  {
11732
11732
  var Ae = (he) => {
11733
11733
  var de = x0();
11734
11734
  S(he, de);
11735
- }, Pe = (he) => {
11735
+ }, Me = (he) => {
11736
11736
  var de = kt(), ie = nt(de);
11737
11737
  {
11738
11738
  var se = (z) => {
11739
- var H = _0(), ce = y(H, !0);
11740
- _(H), M((re) => xe(ce, re), [() => Qd()]), S(z, H);
11739
+ var Y = _0(), ce = y(Y, !0);
11740
+ _(Y), P((re) => xe(ce, re), [() => Qd()]), S(z, Y);
11741
11741
  };
11742
11742
  ee(
11743
11743
  ie,
@@ -11750,10 +11750,10 @@ function Do(t, e) {
11750
11750
  S(he, de);
11751
11751
  };
11752
11752
  ee(ze, (he) => {
11753
- p() ? he(Ae) : he(Pe, !1);
11753
+ p() ? he(Ae) : he(Me, !1);
11754
11754
  });
11755
11755
  }
11756
- S(Je, Y);
11756
+ S(Je, G);
11757
11757
  };
11758
11758
  ee(
11759
11759
  Z,
@@ -11769,7 +11769,7 @@ function Do(t, e) {
11769
11769
  l() ? Fe(it) : Fe(lt, !1);
11770
11770
  });
11771
11771
  }
11772
- _(K), Lr(K, (Fe) => v(x, Fe), () => d(x)), _(P), M((Fe) => xe(Me, Fe), [() => no()]), nn("scroll", K, T), Ut(3, P, () => Sc, () => ({ duration: 600 })), S(E, P);
11772
+ _(K), Lr(K, (Fe) => v(x, Fe), () => d(x)), _(M), P((Fe) => xe(Pe, Fe), [() => no()]), nn("scroll", K, T), Ut(3, M, () => Sc, () => ({ duration: 600 })), S(E, M);
11773
11773
  };
11774
11774
  ee(I, (E) => {
11775
11775
  n() && E(j);
@@ -11885,32 +11885,32 @@ const R0 = {
11885
11885
  .resize-border-top.svelte-1il33p9 {display:none;}\r
11886
11886
  }`
11887
11887
  };
11888
- function Mo(t, e) {
11888
+ function Po(t, e) {
11889
11889
  ve(e, !0), _e(t, R0);
11890
11890
  let n = X(!1), r = X(!1), i = X("it"), s = X(""), a = X(0), o = X(null), l = X(C([])), c = X(C([])), u = X(!1), f = X(!0), h = X(C(new Audio())), p = X(!0), b = X(""), w = X(""), R = X(C([])), x = X(0), k = X(null), T = X(!1), F = X(0), I = X("");
11891
11891
  const j = (J, U, B) => {
11892
11892
  v(w, d(w) + J), v(R, C(U)), v(x, C(B));
11893
11893
  };
11894
11894
  let E = X("auto");
11895
- const P = [
11895
+ const M = [
11896
11896
  "auto",
11897
11897
  "gendoc",
11898
11898
  "audit_handler",
11899
11899
  "suite_agent"
11900
11900
  ];
11901
11901
  let W = X(C({})), ke = X(!1);
11902
- const Me = async (J, U) => {
11903
- var Q, G;
11902
+ const Pe = async (J, U) => {
11903
+ var Q, q;
11904
11904
  if (d(u)) return;
11905
- v(u, !0), d(b) && d(b) !== "" && (v(b, ""), v(w, ""), v(R, C([])), v(o, C(await ht.getChat(d(o)._id))), v(c, C(d(o).messages)));
11905
+ v(u, !0), d(b) && d(b) !== "" && (v(b, ""), v(w, ""), v(R, C([])), v(o, C(await dt.getChat(d(o)._id))), v(c, C(d(o).messages)));
11906
11906
  let B = Object.values(d(W)).map((pe) => new Qr(pe.title, pe.ext_id, "", "", !0, "Documento Comune"));
11907
11907
  if (v(c, C([
11908
11908
  ...d(c),
11909
11909
  new un((/* @__PURE__ */ new Date()).getTime(), !0, J, J, B)
11910
- ])), console.log("Current messages:", d(c)), d(c).length == 2 && (console.log("Creating new chat with state:", (Q = d(o)) == null ? void 0 : Q.state), v(o, C(await ht.newChat((G = d(o)) == null ? void 0 : G.state))), d(o).messages = d(c), v(l, C([d(o), ...d(l)]))), d(o)) {
11910
+ ])), console.log("Current messages:", d(c)), d(c).length == 2 && (console.log("Creating new chat with state:", (Q = d(o)) == null ? void 0 : Q.state), v(o, C(await dt.newChat((q = d(o)) == null ? void 0 : q.state))), d(o).messages = d(c), v(l, C([d(o), ...d(l)]))), d(o)) {
11911
11911
  v(k, C(new AbortController()));
11912
11912
  try {
11913
- let pe = await ht.sendMessage(d(o)._id, J, U, B, d(o).state, j, d(i), d(k).signal);
11913
+ let pe = await dt.sendMessage(d(o)._id, J, U, B, d(o).state, j, d(i), d(k).signal);
11914
11914
  if (console.log(pe), pe) {
11915
11915
  v(c, C([
11916
11916
  ...d(c),
@@ -11918,7 +11918,7 @@ function Mo(t, e) {
11918
11918
  ])), v(w, "");
11919
11919
  return;
11920
11920
  }
11921
- if (v(o, C(await ht.getChat(d(o)._id))), v(l, C([
11921
+ if (v(o, C(await dt.getChat(d(o)._id))), v(l, C([
11922
11922
  d(o),
11923
11923
  ...d(l).filter((ae) => ae._id !== d(o)._id)
11924
11924
  ])), v(w, ""), v(R, C([])), v(c, C([
@@ -11946,22 +11946,22 @@ function Mo(t, e) {
11946
11946
  let K = X(0);
11947
11947
  const Te = (J) => {
11948
11948
  var U;
11949
- !P.includes(d(E)) || (U = d(o)) != null && U.state.blockChat || (J.preventDefault(), J.stopPropagation(), nr(K), v(T, !0));
11949
+ !M.includes(d(E)) || (U = d(o)) != null && U.state.blockChat || (J.preventDefault(), J.stopPropagation(), nr(K), v(T, !0));
11950
11950
  }, it = (J) => {
11951
11951
  var U;
11952
- !P.includes(d(E)) || (U = d(o)) != null && U.state.blockChat || (J.preventDefault(), J.stopPropagation());
11952
+ !M.includes(d(E)) || (U = d(o)) != null && U.state.blockChat || (J.preventDefault(), J.stopPropagation());
11953
11953
  }, lt = (J) => {
11954
11954
  var U;
11955
- !P.includes(d(E)) || (U = d(o)) != null && U.state.blockChat || (J.preventDefault(), J.stopPropagation(), nr(K, -1), d(K) === 0 && v(T, !1));
11955
+ !M.includes(d(E)) || (U = d(o)) != null && U.state.blockChat || (J.preventDefault(), J.stopPropagation(), nr(K, -1), d(K) === 0 && v(T, !1));
11956
11956
  }, Fe = async (J) => {
11957
11957
  var Ve, fe, le, ye, He, Ye, rt;
11958
- if (!P.includes(d(E)) || (Ve = d(o)) != null && Ve.state.blockChat) return;
11958
+ if (!M.includes(d(E)) || (Ve = d(o)) != null && Ve.state.blockChat) return;
11959
11959
  J.preventDefault(), J.stopPropagation();
11960
11960
  const U = (fe = J.dataTransfer) == null ? void 0 : fe.types;
11961
11961
  console.log("[DROP DEBUG] DataTransfer types:", U), v(I, C(qd())), v(F, 0);
11962
11962
  let B = 0, Q = 0;
11963
11963
  console.log("[UPLOAD DEBUG] Inizio upload e progresso simulato");
11964
- let G = setInterval(
11964
+ let q = setInterval(
11965
11965
  () => {
11966
11966
  B < 75 && Q < 50 && (B += Math.random() * 4 + 2, B > 75 && (B = 75), v(F, C(B)), console.log("[UPLOAD DEBUG] Fake progress:", B));
11967
11967
  },
@@ -11974,12 +11974,12 @@ function Mo(t, e) {
11974
11974
  try {
11975
11975
  let We = await Et.getDocumentFromSuite(At);
11976
11976
  if (!We) {
11977
- G && (clearInterval(G), G = null), alert(yi()), v(T, !1), v(K, 0), v(I, ""), v(F, 0);
11977
+ q && (clearInterval(q), q = null), alert(yi()), v(T, !1), v(K, 0), v(I, ""), v(F, 0);
11978
11978
  return;
11979
11979
  }
11980
11980
  v(I, C(We.name));
11981
- const zt = await et(We, G, (q) => {
11982
- Q = q, q > 50 && G && (clearInterval(G), G = null);
11981
+ const zt = await et(We, q, (H) => {
11982
+ Q = H, H > 50 && q && (clearInterval(q), q = null);
11983
11983
  });
11984
11984
  pe = zt.fileId, ae = zt.aiFileId, me = We.name;
11985
11985
  let oe = {
@@ -11990,17 +11990,17 @@ function Mo(t, e) {
11990
11990
  (le = d(o)) != null && le.state.info && (d(o).state.info.push({
11991
11991
  key: "CLOUDSTORAGE_FILE_UPLOADED",
11992
11992
  value: JSON.stringify(oe)
11993
- }), d(o).state.info.push({ key: "AI_FILE_ID", value: ae }), Me("", "__file_uploaded__")), G && (clearInterval(G), G = null);
11993
+ }), d(o).state.info.push({ key: "AI_FILE_ID", value: ae }), Pe("", "__file_uploaded__")), q && (clearInterval(q), q = null);
11994
11994
  } catch (We) {
11995
- console.error("Error fetching document from Suite:", We), G && (clearInterval(G), G = null), alert(yi()), v(T, !1), v(K, 0), v(I, ""), v(F, 0);
11995
+ console.error("Error fetching document from Suite:", We), q && (clearInterval(q), q = null), alert(yi()), v(T, !1), v(K, 0), v(I, ""), v(F, 0);
11996
11996
  }
11997
11997
  } else {
11998
- const Qe = (ye = J.dataTransfer) == null ? void 0 : ye.files, ft = Qe ? Array.from(Qe) : [], At = !!((Ye = (He = d(o)) == null ? void 0 : He.state.info) != null && Ye.find((We) => We.key === "CLOUDSTORAGE_FILE_UPLOADED"));
11998
+ const Qe = (ye = J.dataTransfer) == null ? void 0 : ye.files, ht = Qe ? Array.from(Qe) : [], At = !!((Ye = (He = d(o)) == null ? void 0 : He.state.info) != null && Ye.find((We) => We.key === "CLOUDSTORAGE_FILE_UPLOADED"));
11999
11999
  try {
12000
- for (const We of ft) {
12000
+ for (const We of ht) {
12001
12001
  v(I, C(We.name));
12002
- const zt = await et(We, G, (q) => {
12003
- Q = q, q > 50 && G && (clearInterval(G), G = null);
12002
+ const zt = await et(We, q, (H) => {
12003
+ Q = H, H > 50 && q && (clearInterval(q), q = null);
12004
12004
  });
12005
12005
  pe = zt.fileId, ae = zt.aiFileId, me = We.name;
12006
12006
  let oe = {
@@ -12009,23 +12009,23 @@ function Mo(t, e) {
12009
12009
  suiteUrl: window.location.origin
12010
12010
  };
12011
12011
  if ((rt = d(o)) != null && rt.state.info) {
12012
- let q = !1;
12013
- !At && ft.indexOf(We) === ft.length - 1 && (q = !0), d(o).state.info.push({
12012
+ let H = !1;
12013
+ !At && ht.indexOf(We) === ht.length - 1 && (H = !0), d(o).state.info.push({
12014
12014
  key: "CLOUDSTORAGE_FILE_UPLOADED",
12015
12015
  value: JSON.stringify(oe)
12016
- }), d(o).state.info.push({ key: "AI_FILE_ID", value: ae }), q && Me("", "__file_uploaded__");
12016
+ }), d(o).state.info.push({ key: "AI_FILE_ID", value: ae }), H && Pe("", "__file_uploaded__");
12017
12017
  }
12018
12018
  }
12019
12019
  } catch (We) {
12020
12020
  console.error("Error uploading file:", We);
12021
12021
  } finally {
12022
- G && (clearInterval(G), G = null), v(T, !1), v(K, 0), v(I, ""), v(F, 0);
12022
+ q && (clearInterval(q), q = null), v(T, !1), v(K, 0), v(I, ""), v(F, 0);
12023
12023
  }
12024
12024
  }
12025
12025
  }, et = async (J, U, B) => {
12026
12026
  try {
12027
- const Q = await ht.uploadFile(J, (G) => {
12028
- console.log("[UPLOAD DEBUG] Callback ricevuto - Real progress:", G), B == null || B(G), G > 50 && (v(F, 75 + G * 0.25), console.log("[UPLOAD DEBUG] Using real progress - uploadProgress:", d(F)));
12027
+ const Q = await dt.uploadFile(J, (q) => {
12028
+ console.log("[UPLOAD DEBUG] Callback ricevuto - Real progress:", q), B == null || B(q), q > 50 && (v(F, 75 + q * 0.25), console.log("[UPLOAD DEBUG] Using real progress - uploadProgress:", d(F)));
12029
12029
  });
12030
12030
  return console.log("[UPLOAD DEBUG] Upload completato - fileId:", Q.fileId), v(I, ""), v(F, 0), d(W)[Q.fileId] = {
12031
12031
  title: J.name,
@@ -12044,14 +12044,14 @@ function Mo(t, e) {
12044
12044
  st(() => {
12045
12045
  d(p) && d(h).pause();
12046
12046
  });
12047
- let Z = !1, Ge, tt, Je, Y;
12047
+ let Z = !1, Ge, tt, Je, G;
12048
12048
  function ne(J) {
12049
12049
  const U = J.target;
12050
12050
  if (U.closest(".resize-handle") || U.classList.contains("resize-border-left") || U.classList.contains("resize-border-top")) {
12051
12051
  J.preventDefault(), J.stopPropagation(), Z = !0, Ge = J.clientX, tt = J.clientY;
12052
12052
  const Q = document.querySelector(".chat");
12053
- Je = Q.offsetWidth, Y = Q.offsetHeight, Q.classList.add("no-select");
12054
- const G = U.closest(".resize-handle"), pe = U.classList.contains("resize-border-left"), ae = U.classList.contains("resize-border-top"), me = (fe) => {
12053
+ Je = Q.offsetWidth, G = Q.offsetHeight, Q.classList.add("no-select");
12054
+ const q = U.closest(".resize-handle"), pe = U.classList.contains("resize-border-left"), ae = U.classList.contains("resize-border-top"), me = (fe) => {
12055
12055
  if (!Z) return;
12056
12056
  fe.preventDefault();
12057
12057
  const le = document.querySelector(".chat"), ye = window.innerWidth * 0.75, He = window.innerHeight * 0.9;
@@ -12059,11 +12059,11 @@ function Mo(t, e) {
12059
12059
  const Ye = Ge - fe.clientX, rt = Math.min(Math.max(Je + Ye, 300), ye);
12060
12060
  le.style.width = `${rt}px`;
12061
12061
  } else if (ae) {
12062
- const Ye = tt - fe.clientY, rt = Math.min(Math.max(Y + Ye, 400), He);
12062
+ const Ye = tt - fe.clientY, rt = Math.min(Math.max(G + Ye, 400), He);
12063
12063
  le.style.height = `${rt}px`;
12064
- } else if (G) {
12065
- const Ye = Ge - fe.clientX, rt = tt - fe.clientY, Qe = Math.min(Math.max(Je + Ye, 300), ye), ft = Math.min(Math.max(Y + rt, 400), He);
12066
- le.style.width = `${Qe}px`, le.style.height = `${ft}px`;
12064
+ } else if (q) {
12065
+ const Ye = Ge - fe.clientX, rt = tt - fe.clientY, Qe = Math.min(Math.max(Je + Ye, 300), ye), ht = Math.min(Math.max(G + rt, 400), He);
12066
+ le.style.width = `${Qe}px`, le.style.height = `${ht}px`;
12067
12067
  }
12068
12068
  }, Ve = () => {
12069
12069
  var fe;
@@ -12075,13 +12075,13 @@ function Mo(t, e) {
12075
12075
  const ze = async (J = !1) => {
12076
12076
  if (J) {
12077
12077
  v(ie, 0), v(se, !0);
12078
- const U = await ht.getChats(0, z);
12078
+ const U = await dt.getChats(0, z);
12079
12079
  v(l, C(U.sort((B, Q) => Q.lastUpdate - B.lastUpdate))), v(ie, C(U.length)), U.length < z && v(se, !1);
12080
12080
  } else {
12081
12081
  if (!d(se) || d(de)) return;
12082
12082
  v(de, !0);
12083
12083
  try {
12084
- const U = await ht.getChats(d(ie), z);
12084
+ const U = await dt.getChats(d(ie), z);
12085
12085
  v(l, C([
12086
12086
  ...d(l),
12087
12087
  ...U.sort((B, Q) => Q.lastUpdate - B.lastUpdate)
@@ -12093,8 +12093,8 @@ function Mo(t, e) {
12093
12093
  }, Ae = async () => {
12094
12094
  await ze(!1);
12095
12095
  };
12096
- let Pe = X(!1), he = X(!1), de = X(!1), ie = X(0), se = X(!0);
12097
- const z = 10, H = async () => {
12096
+ let Me = X(!1), he = X(!1), de = X(!1), ie = X(0), se = X(!0);
12097
+ const z = 10, Y = async () => {
12098
12098
  d(n) ? d(r) ? (v(r, !1), setTimeout(
12099
12099
  () => {
12100
12100
  v(n, !1);
@@ -12102,7 +12102,7 @@ function Mo(t, e) {
12102
12102
  450
12103
12103
  )) : v(n, !1) : (v(n, !0), v(he, !0), await ze(!0), v(he, !1));
12104
12104
  }, ce = () => {
12105
- v(o, C(new _n(
12105
+ v(o, C(new kn(
12106
12106
  "",
12107
12107
  "",
12108
12108
  "",
@@ -12122,19 +12122,19 @@ function Mo(t, e) {
12122
12122
  let re = X(C([])), ue;
12123
12123
  const Ee = async () => {
12124
12124
  try {
12125
- let J = await ht.getUnreadChats();
12125
+ let J = await dt.getUnreadChats();
12126
12126
  if (d(o) && J.includes(d(o)._id)) {
12127
- await ht.readChat(d(o)._id), J = J.filter((me) => {
12127
+ await dt.readChat(d(o)._id), J = J.filter((me) => {
12128
12128
  var Ve;
12129
12129
  return me !== ((Ve = d(o)) == null ? void 0 : Ve._id);
12130
- }), v(Pe, !0);
12131
- let ae = await ht.getChat(d(o)._id);
12132
- v(o, C(ae)), v(c, C(d(o).messages)), v(Pe, !1);
12130
+ }), v(Me, !0);
12131
+ let ae = await dt.getChat(d(o)._id);
12132
+ v(o, C(ae)), v(c, C(d(o).messages)), v(Me, !1);
12133
12133
  }
12134
- const U = d(l).map((ae) => ae._id), B = J.filter((ae) => !U.includes(ae)), Q = J.filter((ae) => U.includes(ae)), G = await Promise.all(B.map((ae) => ht.getChat(ae))), pe = await Promise.all(Q.map((ae) => ht.getChat(ae)));
12135
- if (G.length > 0 || pe.length > 0) {
12136
- const ae = new Map(pe.map((le) => [le._id, le])), Ve = [...d(l).map((le) => ae.get(le._id) || le), ...G], fe = new Map(Ve.map((le) => [le._id, le]));
12137
- v(l, C(Array.from(fe.values()))), v(ie, d(ie) + G.length), v(l, C(d(l).sort((le, ye) => ye.lastUpdate - le.lastUpdate)));
12134
+ const U = d(l).map((ae) => ae._id), B = J.filter((ae) => !U.includes(ae)), Q = J.filter((ae) => U.includes(ae)), q = await Promise.all(B.map((ae) => dt.getChat(ae))), pe = await Promise.all(Q.map((ae) => dt.getChat(ae)));
12135
+ if (q.length > 0 || pe.length > 0) {
12136
+ const ae = new Map(pe.map((le) => [le._id, le])), Ve = [...d(l).map((le) => ae.get(le._id) || le), ...q], fe = new Map(Ve.map((le) => [le._id, le]));
12137
+ v(l, C(Array.from(fe.values()))), v(ie, d(ie) + q.length), v(l, C(d(l).sort((le, ye) => ye.lastUpdate - le.lastUpdate)));
12138
12138
  }
12139
12139
  v(re, C(J));
12140
12140
  } catch (J) {
@@ -12150,23 +12150,30 @@ function Mo(t, e) {
12150
12150
  v(s, C(J));
12151
12151
  const U = await Et.getUserLevel();
12152
12152
  v(a, C(U));
12153
- const B = un.firstMessage(d(i), d(s), d(E));
12154
- v(c, C([B])), v(o, C(new _n(
12155
- "",
12156
- "",
12157
- "",
12158
- "New Chat",
12159
- {
12160
- blockChat: !1,
12161
- unread: !1,
12162
- lockedAgentId: null,
12163
- pendingAction: null,
12164
- info: []
12165
- },
12166
- [B]
12167
- ))), v(ke, !0);
12168
- const Q = (G) => {
12169
- (G.clientX <= 0 || G.clientY <= 0 || G.clientX >= window.innerWidth || G.clientY >= window.innerHeight) && (v(T, !1), v(K, 0));
12153
+ let B = new URLSearchParams(window.location.search);
12154
+ if (B.has("chatId")) {
12155
+ let q = B.get("chatId");
12156
+ v(o, C(await dt.getChat(q))), v(c, C(d(o).messages)), v(n, !0), await bn(), v(r, !0);
12157
+ } else {
12158
+ const q = un.firstMessage(d(i), d(s), d(E));
12159
+ v(c, C([q])), v(o, C(new kn(
12160
+ "",
12161
+ "",
12162
+ "",
12163
+ "New Chat",
12164
+ {
12165
+ blockChat: !1,
12166
+ unread: !1,
12167
+ lockedAgentId: null,
12168
+ pendingAction: null,
12169
+ info: []
12170
+ },
12171
+ [q]
12172
+ )));
12173
+ }
12174
+ v(ke, !0);
12175
+ const Q = (q) => {
12176
+ (q.clientX <= 0 || q.clientY <= 0 || q.clientX >= window.innerWidth || q.clientY >= window.innerHeight) && (v(T, !1), v(K, 0));
12170
12177
  };
12171
12178
  window.addEventListener("dragleave", Q), window.addEventListener("dragend", () => {
12172
12179
  v(T, !1), v(K, 0);
@@ -12191,7 +12198,7 @@ function Mo(t, e) {
12191
12198
  color: "white"
12192
12199
  });
12193
12200
  var Ye = D(He, 2), rt = y(Ye, !0);
12194
- _(Ye), _(ye), _(le), M((Qe) => xe(rt, Qe), [
12201
+ _(Ye), _(ye), _(le), P((Qe) => xe(rt, Qe), [
12195
12202
  () => Ud() || "Drop files here"
12196
12203
  ]), Ut(3, le, () => cn, () => ({ duration: 200 })), S(fe, le);
12197
12204
  };
@@ -12199,7 +12206,7 @@ function Mo(t, e) {
12199
12206
  d(T) && fe(Q);
12200
12207
  });
12201
12208
  }
12202
- var G = D(B, 2);
12209
+ var q = D(B, 2);
12203
12210
  {
12204
12211
  var pe = (fe) => {
12205
12212
  var le = E0(), ye = y(le), He = y(ye);
@@ -12211,23 +12218,23 @@ function Mo(t, e) {
12211
12218
  });
12212
12219
  var Ye = D(He, 2), rt = y(Ye, !0);
12213
12220
  _(Ye);
12214
- var Qe = D(Ye, 2), ft = y(Qe);
12221
+ var Qe = D(Ye, 2), ht = y(Qe);
12215
12222
  _(Qe);
12216
12223
  var At = D(Qe, 2), We = y(At);
12217
- _(At), _(ye), _(le), M(
12224
+ _(At), _(ye), _(le), P(
12218
12225
  (zt) => {
12219
- xe(rt, d(I)), O(ft, "style", `width: ${d(F) ?? ""}%`), xe(We, `${zt ?? ""}%`);
12226
+ xe(rt, d(I)), O(ht, "style", `width: ${d(F) ?? ""}%`), xe(We, `${zt ?? ""}%`);
12220
12227
  },
12221
12228
  [
12222
12229
  () => Math.round(d(F))
12223
12230
  ]
12224
12231
  ), Ut(3, le, () => cn, () => ({ duration: 200 })), S(fe, le);
12225
12232
  };
12226
- ee(G, (fe) => {
12233
+ ee(q, (fe) => {
12227
12234
  d(I) && fe(pe);
12228
12235
  });
12229
12236
  }
12230
- var ae = D(G, 2);
12237
+ var ae = D(q, 2);
12231
12238
  {
12232
12239
  var me = (fe) => {
12233
12240
  var le = I0(), ye = y(le);
@@ -12279,10 +12286,10 @@ function Mo(t, e) {
12279
12286
  v(b, C(L));
12280
12287
  },
12281
12288
  get loadingChat() {
12282
- return d(Pe);
12289
+ return d(Me);
12283
12290
  },
12284
12291
  set loadingChat(L) {
12285
- v(Pe, C(L));
12292
+ v(Me, C(L));
12286
12293
  },
12287
12294
  get loadingChats() {
12288
12295
  return d(he);
@@ -12303,7 +12310,7 @@ function Mo(t, e) {
12303
12310
  v(de, C(L));
12304
12311
  }
12305
12312
  });
12306
- var ft = D(Qe, 6), At = y(ft);
12313
+ var ht = D(Qe, 6), At = y(ht);
12307
12314
  dn(At, {
12308
12315
  icon: "hugeicons:resize-field",
12309
12316
  width: "25px",
@@ -12312,8 +12319,8 @@ function Mo(t, e) {
12312
12319
  vFlip: !0,
12313
12320
  color: "white",
12314
12321
  style: "margin: 2px 0 0 2px;"
12315
- }), _(ft);
12316
- var We = D(ft, 2), zt = /* @__PURE__ */ Ke(() => d(re).length > 0);
12322
+ }), _(ht);
12323
+ var We = D(ht, 2), zt = /* @__PURE__ */ Ke(() => d(re).length > 0);
12317
12324
  io(We, {
12318
12325
  newChat: ce,
12319
12326
  get chatToRead() {
@@ -12364,7 +12371,7 @@ function Mo(t, e) {
12364
12371
  });
12365
12372
  var oe = D(We, 2);
12366
12373
  Fo(oe, {
12367
- onQuickReply: (L) => Me(L, d(E)),
12374
+ onQuickReply: (L) => Pe(L, d(E)),
12368
12375
  get messages() {
12369
12376
  return d(c);
12370
12377
  },
@@ -12414,15 +12421,15 @@ function Mo(t, e) {
12414
12421
  v(a, C(L));
12415
12422
  },
12416
12423
  get loadingChat() {
12417
- return d(Pe);
12424
+ return d(Me);
12418
12425
  },
12419
12426
  set loadingChat(L) {
12420
- v(Pe, C(L));
12427
+ v(Me, C(L));
12421
12428
  }
12422
12429
  });
12423
- var q = D(oe, 2);
12424
- fo(q, {
12425
- sendMessage: Me,
12430
+ var H = D(oe, 2);
12431
+ fo(H, {
12432
+ sendMessage: Pe,
12426
12433
  stopMessage: V,
12427
12434
  uploadFiles: et,
12428
12435
  get loading() {
@@ -12506,26 +12513,26 @@ function Mo(t, e) {
12506
12513
  C0,
12507
12514
  E,
12508
12515
  ce,
12509
- H,
12516
+ Y,
12510
12517
  W
12511
12518
  ];
12512
12519
  var ct = D(y(Ne)), ut = y(ct, !0);
12513
- _(ct), _(Ne), _(Xe), M(
12520
+ _(ct), _(Ne), _(Xe), P(
12514
12521
  (J) => {
12515
12522
  xt(Ne, `${`btn ${d(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1il33p9`), xe(ut, J);
12516
12523
  },
12517
- [() => Mc()]
12524
+ [() => Pc()]
12518
12525
  ), S(t, Xe), ge();
12519
12526
  }
12520
12527
  mn(["mousedown", "click"]);
12521
- we(Mo, {}, [], [], !0);
12528
+ we(Po, {}, [], [], !0);
12522
12529
  function j0(t, e) {
12523
12530
  ve(e, !0);
12524
12531
  let n = m(e, "envId", 7), r = m(e, "token", 7), i = m(e, "lang", 7, "it");
12525
12532
  return Gi.set({
12526
12533
  envId: n() || "",
12527
12534
  token: r() || ""
12528
- }), Ka(lv(i())), Mo(t, {}), ge({
12535
+ }), Ka(lv(i())), Po(t, {}), ge({
12529
12536
  get envId() {
12530
12537
  return n();
12531
12538
  },