akpm-knowledge-base-chat 2.0.61 → 2.0.63

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 +795 -803
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 2.0.61 */
1
+ /* Version: 2.0.63 */
2
2
  var Ho = Object.defineProperty;
3
3
  var ps = (t) => {
4
4
  throw TypeError(t);
@@ -72,7 +72,7 @@ function Sr(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const At = 2, ca = 4, sr = 8, Hr = 16, Vt = 32, Sn = 64, Cr = 128, Cn = 256, Tr = 512, mt = 1024, sn = 2048, Tn = 4096, Gt = 8192, Pn = 16384, ua = 32768, Yr = 65536, gl = 1 << 17, ml = 1 << 19, da = 1 << 20, rn = Symbol("$state"), fa = Symbol("legacy props"), bl = Symbol("");
75
+ const At = 2, ca = 4, sr = 8, Hr = 16, Vt = 32, Sn = 64, Cr = 128, Cn = 256, Ir = 512, mt = 1024, sn = 2048, In = 4096, Gt = 8192, Pn = 16384, ua = 32768, Yr = 65536, gl = 1 << 17, ml = 1 << 19, da = 1 << 20, rn = Symbol("$state"), fa = Symbol("legacy props"), bl = Symbol("");
76
76
  function ha(t) {
77
77
  return t === this.v;
78
78
  }
@@ -106,10 +106,10 @@ function Sl() {
106
106
  function Cl() {
107
107
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
108
108
  }
109
- function Tl() {
109
+ function Il() {
110
110
  throw new Error("https://svelte.dev/e/state_unsafe_local_read");
111
111
  }
112
- function Il() {
112
+ function Tl() {
113
113
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
114
114
  }
115
115
  let On = !1, El = !1;
@@ -153,7 +153,7 @@ function ci(t, e) {
153
153
  function v(t, e) {
154
154
  return qe !== null && !hn && Wr() && qe.f & (At | Hr) && // If the source was created locally within the current derived, then
155
155
  // we allow the mutation.
156
- (Jt === null || !Jt.includes(t)) && Il(), pi(t, e);
156
+ (Jt === null || !Jt.includes(t)) && Tl(), pi(t, e);
157
157
  }
158
158
  function pi(t, e) {
159
159
  return t.equals(e) || (t.v, t.v = e, t.wv = Da(), ga(t, sn), Wr() && je !== null && je.f & mt && !(je.f & (Vt | Sn)) && (Qt === null ? ql([t]) : Qt.push(t))), e;
@@ -166,7 +166,7 @@ function ga(t, e) {
166
166
  o & sn || !r && a === je || (Mt(a, e), o & (mt | Cn) && (o & At ? ga(
167
167
  /** @type {Derived} */
168
168
  a,
169
- Tn
169
+ In
170
170
  ) : Vr(
171
171
  /** @type {Effect} */
172
172
  a
@@ -297,7 +297,7 @@ function C(t, e = null, n) {
297
297
  return f;
298
298
  },
299
299
  set(l, c, u, f) {
300
- var I;
300
+ var T;
301
301
  var h = i.get(c), p = c in l;
302
302
  if (s && c === "length")
303
303
  for (var _ = u; _ < /** @type {Source<number>} */
@@ -305,7 +305,7 @@ function C(t, e = null, n) {
305
305
  var k = i.get(_ + "");
306
306
  k !== void 0 ? v(k, xt) : _ in l && (k = _t(xt), i.set(_ + "", k));
307
307
  }
308
- h === void 0 ? (!p || (I = _n(l, c)) != null && I.writable) && (h = _t(void 0), v(h, C(u, o)), i.set(c, h)) : (p = h.v !== xt, v(h, C(u, o)));
308
+ h === void 0 ? (!p || (T = _n(l, c)) != null && T.writable) && (h = _t(void 0), v(h, C(u, o)), i.set(c, h)) : (p = h.v !== xt, 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") {
@@ -478,7 +478,7 @@ function _a(t) {
478
478
  return e;
479
479
  }
480
480
  function ka(t) {
481
- var e = _a(t), n = (xn || t.f & Cn) && t.deps !== null ? Tn : mt;
481
+ var e = _a(t), n = (xn || t.f & Cn) && t.deps !== null ? In : mt;
482
482
  Mt(t, n), t.equals(e) || (t.v = e, t.wv = Da());
483
483
  }
484
484
  function Ni(t) {
@@ -491,7 +491,7 @@ function Rl(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 In(t, e, n, r = !0) {
494
+ function Tn(t, e, n, r = !0) {
495
495
  var i = (t & Sn) !== 0, s = je, a = {
496
496
  ctx: Ne,
497
497
  deps: null,
@@ -530,7 +530,7 @@ function In(t, e, n, r = !0) {
530
530
  return a;
531
531
  }
532
532
  function za(t) {
533
- const e = In(sr, null, !1);
533
+ const e = Tn(sr, null, !1);
534
534
  return Mt(e, mt), e.teardown = t, e;
535
535
  }
536
536
  function at(t) {
@@ -555,21 +555,21 @@ function jl(t) {
555
555
  return ya(), cr(t);
556
556
  }
557
557
  function Dl(t) {
558
- const e = In(Sn, t, !0);
558
+ const e = Tn(Sn, t, !0);
559
559
  return () => {
560
560
  Wt(e);
561
561
  };
562
562
  }
563
563
  function Fl(t) {
564
- const e = In(Sn, t, !0);
564
+ const e = Tn(Sn, t, !0);
565
565
  return (n = {}) => new Promise((r) => {
566
- n.outro ? Ir(e, () => {
566
+ n.outro ? Tr(e, () => {
567
567
  Wt(e), r(void 0);
568
568
  }) : (Wt(e), r(void 0));
569
569
  });
570
570
  }
571
571
  function Un(t) {
572
- return In(ca, t, !1);
572
+ return Tn(ca, t, !1);
573
573
  }
574
574
  function or(t, e) {
575
575
  var n = (
@@ -589,24 +589,24 @@ function lr() {
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 & mt && Mt(n, Tn), Bn(n) && Xr(n), e.ran = !1;
592
+ n.f & mt && Mt(n, In), Bn(n) && Xr(n), e.ran = !1;
593
593
  }
594
594
  t.l.r2.v = !1;
595
595
  }
596
596
  });
597
597
  }
598
598
  function cr(t) {
599
- return In(sr, t, !0);
599
+ return Tn(sr, t, !0);
600
600
  }
601
601
  function P(t, e = [], n = Ve) {
602
602
  const r = e.map(n);
603
603
  return Jr(() => t(...r.map(d)));
604
604
  }
605
605
  function Jr(t, e = 0) {
606
- return In(sr | Hr | e, t, !0);
606
+ return Tn(sr | Hr | e, t, !0);
607
607
  }
608
608
  function Fn(t, e = !0) {
609
- return In(sr | Vt, t, !0, e);
609
+ return Tn(sr | Vt, t, !0, e);
610
610
  }
611
611
  function Sa(t) {
612
612
  var e = t.teardown;
@@ -628,7 +628,7 @@ function Ca(t) {
628
628
  Ni(e[n]);
629
629
  }
630
630
  }
631
- function Ta(t, e = !1) {
631
+ function Ia(t, e = !1) {
632
632
  var n = t.first;
633
633
  for (t.first = t.last = null; n !== null; ) {
634
634
  var r = n.next;
@@ -653,20 +653,20 @@ function Wt(t, e = !0) {
653
653
  }
654
654
  n = !0;
655
655
  }
656
- Ta(t, e && !n), Ca(t), nr(t, 0), Mt(t, Pn);
656
+ Ia(t, e && !n), Ca(t), nr(t, 0), Mt(t, Pn);
657
657
  var a = t.transitions;
658
658
  if (a !== null)
659
659
  for (const l of a)
660
660
  l.stop();
661
661
  Sa(t);
662
662
  var o = t.parent;
663
- o !== null && o.first !== null && Ia(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
663
+ o !== null && o.first !== null && Ta(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
664
664
  }
665
- function Ia(t) {
665
+ function Ta(t) {
666
666
  var e = t.parent, n = t.prev, r = t.next;
667
667
  n !== null && (n.next = r), r !== null && (r.prev = n), e !== null && (e.first === t && (e.first = r), e.last === t && (e.last = n));
668
668
  }
669
- function Ir(t, e) {
669
+ function Tr(t, e) {
670
670
  var n = [];
671
671
  Bi(t, n, !0), Ea(n, () => {
672
672
  Wt(t), e && e();
@@ -752,7 +752,7 @@ let Jt = null;
752
752
  function Bl(t) {
753
753
  Jt = t;
754
754
  }
755
- let kt = null, It = 0, Qt = null;
755
+ let kt = null, Tt = 0, Qt = null;
756
756
  function ql(t) {
757
757
  Qt = t;
758
758
  }
@@ -768,14 +768,14 @@ function Bn(t) {
768
768
  var e = t.f;
769
769
  if (e & sn)
770
770
  return !0;
771
- if (e & Tn) {
771
+ if (e & In) {
772
772
  var n = t.deps, r = (e & Cn) !== 0;
773
773
  if (n !== null) {
774
- var i, s, a = (e & Tr) !== 0, o = r && je !== null && !xn, l = n.length;
774
+ var i, s, a = (e & Ir) !== 0, o = r && je !== 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);
778
- a && (t.f ^= Tr);
778
+ a && (t.f ^= Ir);
779
779
  }
780
780
  for (i = 0; i < l; i++)
781
781
  if (s = n[i], Bn(
@@ -829,7 +829,7 @@ function Fa(t, e, n = 0) {
829
829
  s,
830
830
  e,
831
831
  n + 1
832
- ) : e === s && (n === 0 ? Mt(s, sn) : s.f & mt && Mt(s, Tn), Vr(
832
+ ) : e === s && (n === 0 ? Mt(s, sn) : s.f & mt && Mt(s, In), Vr(
833
833
  /** @type {Effect} */
834
834
  s
835
835
  ));
@@ -837,9 +837,9 @@ function Fa(t, e, n = 0) {
837
837
  }
838
838
  function Ma(t) {
839
839
  var p;
840
- var e = kt, n = It, r = Qt, i = qe, s = xn, a = Jt, o = Ne, l = hn, c = t.f;
840
+ var e = kt, n = Tt, r = Qt, i = qe, s = xn, a = Jt, o = Ne, l = hn, c = t.f;
841
841
  kt = /** @type {null | Value[]} */
842
- null, It = 0, Qt = null, qe = c & (Vt | Sn) ? null : t, xn = !Rn && (c & Cn) !== 0, Jt = null, Ne = t.ctx, hn = !1, Lr++;
842
+ null, Tt = 0, Qt = null, qe = c & (Vt | Sn) ? null : t, xn = !Rn && (c & Cn) !== 0, Jt = null, Ne = t.ctx, hn = !1, Lr++;
843
843
  try {
844
844
  var u = (
845
845
  /** @type {Function} */
@@ -847,16 +847,16 @@ function Ma(t) {
847
847
  ), f = t.deps;
848
848
  if (kt !== null) {
849
849
  var h;
850
- if (nr(t, It), f !== null && It > 0)
851
- for (f.length = It + kt.length, h = 0; h < kt.length; h++)
852
- f[It + h] = kt[h];
850
+ if (nr(t, Tt), f !== null && Tt > 0)
851
+ for (f.length = Tt + kt.length, h = 0; h < kt.length; h++)
852
+ f[Tt + h] = kt[h];
853
853
  else
854
854
  t.deps = f = kt;
855
855
  if (!xn)
856
- for (h = It; h < f.length; h++)
856
+ for (h = Tt; h < f.length; h++)
857
857
  ((p = f[h]).reactions ?? (p.reactions = [])).push(t);
858
- } else f !== null && It < f.length && (nr(t, It), f.length = It);
859
- if (Wr() && Qt !== null && !(t.f & (At | Tn | sn)))
858
+ } else f !== null && Tt < f.length && (nr(t, Tt), f.length = Tt);
859
+ if (Wr() && Qt !== null && !(t.f & (At | In | sn)))
860
860
  for (h = 0; h < /** @type {Source[]} */
861
861
  Qt.length; h++)
862
862
  Fa(
@@ -866,7 +866,7 @@ function Ma(t) {
866
866
  );
867
867
  return i !== null && Lr++, u;
868
868
  } finally {
869
- kt = e, It = n, Qt = r, qe = i, xn = s, Jt = a, Ne = o, hn = l;
869
+ kt = e, Tt = n, Qt = r, qe = i, xn = s, Jt = a, Ne = o, hn = l;
870
870
  }
871
871
  }
872
872
  function Gl(t, e) {
@@ -881,7 +881,7 @@ function Gl(t, e) {
881
881
  n === null && e.f & At && // 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
- (kt === null || !kt.includes(e)) && (Mt(e, Tn), e.f & (Cn | Tr) || (e.f ^= Tr), nr(
884
+ (kt === null || !kt.includes(e)) && (Mt(e, In), e.f & (Cn | Ir) || (e.f ^= Ir), nr(
885
885
  /** @type {Derived} **/
886
886
  e,
887
887
  0
@@ -900,7 +900,7 @@ function Xr(t) {
900
900
  var n = je, r = Ne;
901
901
  je = t;
902
902
  try {
903
- e & Hr ? Ml(t) : Ta(t), Ca(t), Sa(t);
903
+ e & Hr ? Ml(t) : Ia(t), Ca(t), Sa(t);
904
904
  var i = Ma(t);
905
905
  t.teardown = typeof i == "function" ? i : null, t.wv = ja;
906
906
  var s = t.deps, a;
@@ -951,7 +951,7 @@ function Jl(t) {
951
951
  var r = t[n];
952
952
  if (!(r.f & (Pn | Gt)))
953
953
  try {
954
- Bn(r) && (Xr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Ia(r) : r.fn = null));
954
+ Bn(r) && (Xr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Ta(r) : r.fn = null));
955
955
  } catch (i) {
956
956
  Zr(i, r, null, r.ctx);
957
957
  }
@@ -1042,9 +1042,9 @@ function d(t) {
1042
1042
  ), r;
1043
1043
  }
1044
1044
  if (qe !== null && !hn) {
1045
- Jt !== null && Jt.includes(t) && Tl();
1045
+ Jt !== null && Jt.includes(t) && Il();
1046
1046
  var i = qe.deps;
1047
- t.rv < Lr && (t.rv = Lr, kt === null && i !== null && i[It] === t ? It++ : kt === null ? kt = [t] : kt.push(t));
1047
+ t.rv < Lr && (t.rv = Lr, kt === null && i !== null && i[Tt] === t ? Tt++ : kt === null ? kt = [t] : kt.push(t));
1048
1048
  } else if (n && /** @type {Derived} */
1049
1049
  t.deps === null)
1050
1050
  for (var s = (
@@ -1269,17 +1269,17 @@ function Zn(t) {
1269
1269
  R.apply(s, [t, ...b]);
1270
1270
  } else
1271
1271
  k.call(s, t);
1272
- } catch (I) {
1273
- h ? p.push(I) : h = I;
1272
+ } catch (T) {
1273
+ h ? p.push(T) : h = T;
1274
1274
  }
1275
1275
  if (t.cancelBubble || _ === e || _ === null)
1276
1276
  break;
1277
1277
  s = _;
1278
1278
  }
1279
1279
  if (h) {
1280
- for (let I of p)
1280
+ for (let T of p)
1281
1281
  queueMicrotask(() => {
1282
- throw I;
1282
+ throw T;
1283
1283
  });
1284
1284
  throw h;
1285
1285
  }
@@ -1374,7 +1374,7 @@ function S(t, e) {
1374
1374
  );
1375
1375
  }
1376
1376
  let _i = !0;
1377
- function ke(t, e) {
1377
+ function ye(t, e) {
1378
1378
  var n = e == null ? "" : typeof e == "object" ? e + "" : e;
1379
1379
  n !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = n, t.nodeValue = n == null ? "" : n + "");
1380
1380
  }
@@ -1479,9 +1479,9 @@ function Q(t, e, n = !1) {
1479
1479
  );
1480
1480
  !!a === _ && (r = vi(), $t(r), tn(!1), p = !0);
1481
1481
  }
1482
- a ? (i ? Er(i) : h && (i = Fn(() => h(r))), s && Ir(s, () => {
1482
+ a ? (i ? Er(i) : h && (i = Fn(() => h(r))), s && Tr(s, () => {
1483
1483
  s = null;
1484
- })) : (s ? Er(s) : h && (s = Fn(() => h(r))), i && Ir(i, () => {
1484
+ })) : (s ? Er(s) : h && (s = Fn(() => h(r))), i && Tr(i, () => {
1485
1485
  i = null;
1486
1486
  })), p && tn(!0);
1487
1487
  };
@@ -1545,14 +1545,14 @@ function ft(t, e, n, r, i, s = null) {
1545
1545
  R !== (_ === 0) && (a = vi(), $t(a), tn(!1), k = !0);
1546
1546
  }
1547
1547
  if (Re) {
1548
- for (var b = null, w, I = 0; I < _; I++) {
1548
+ for (var b = null, w, T = 0; T < _; T++) {
1549
1549
  if (Me.nodeType === 8 && /** @type {Comment} */
1550
1550
  Me.data === Fi) {
1551
1551
  a = /** @type {Comment} */
1552
1552
  Me, k = !0, tn(!1);
1553
1553
  break;
1554
1554
  }
1555
- var F = p[I], A = r(F, I);
1555
+ var F = p[T], A = r(F, T);
1556
1556
  w = Ja(
1557
1557
  Me,
1558
1558
  o,
@@ -1560,7 +1560,7 @@ function ft(t, e, n, r, i, s = null) {
1560
1560
  null,
1561
1561
  F,
1562
1562
  A,
1563
- I,
1563
+ T,
1564
1564
  i,
1565
1565
  e
1566
1566
  ), o.items.set(A, w), b = w;
@@ -1582,29 +1582,29 @@ function ft(t, e, n, r, i, s = null) {
1582
1582
  r
1583
1583
  );
1584
1584
  }
1585
- s !== null && (_ === 0 ? u ? Er(u) : u = Fn(() => s(a)) : u !== null && Ir(u, () => {
1585
+ s !== null && (_ === 0 ? u ? Er(u) : u = Fn(() => s(a)) : u !== null && Tr(u, () => {
1586
1586
  u = null;
1587
1587
  })), k && tn(!0), d(h);
1588
1588
  }), Re && (a = Me);
1589
1589
  }
1590
1590
  function rc(t, e, n, r, i, s, a, o) {
1591
1591
  var lt, He, Oe, rt;
1592
- var l = (i & Jo) !== 0, c = (i & (Ri | ji)) !== 0, u = t.length, f = e.items, h = e.first, p = h, _, k = null, R, b = [], w = [], I, F, A, L;
1592
+ var l = (i & Jo) !== 0, c = (i & (Ri | ji)) !== 0, u = t.length, f = e.items, h = e.first, p = h, _, k = null, R, b = [], w = [], T, F, A, L;
1593
1593
  if (l)
1594
1594
  for (L = 0; L < u; L += 1)
1595
- I = t[L], F = a(I, L), A = f.get(F), A !== void 0 && ((lt = A.a) == null || lt.measure(), (R ?? (R = /* @__PURE__ */ new Set())).add(A));
1595
+ T = t[L], F = a(T, L), A = f.get(F), A !== void 0 && ((lt = A.a) == null || lt.measure(), (R ?? (R = /* @__PURE__ */ new Set())).add(A));
1596
1596
  for (L = 0; L < u; L += 1) {
1597
- if (I = t[L], F = a(I, L), A = f.get(F), A === void 0) {
1598
- var T = p ? (
1597
+ if (T = t[L], F = a(T, L), A = f.get(F), A === void 0) {
1598
+ var I = p ? (
1599
1599
  /** @type {TemplateNode} */
1600
1600
  p.e.nodes_start
1601
1601
  ) : n;
1602
1602
  k = Ja(
1603
- T,
1603
+ I,
1604
1604
  e,
1605
1605
  k,
1606
1606
  k === null ? e.first : k.next,
1607
- I,
1607
+ T,
1608
1608
  F,
1609
1609
  L,
1610
1610
  r,
@@ -1612,7 +1612,7 @@ function rc(t, e, n, r, i, s, a, o) {
1612
1612
  ), f.set(F, k), b = [], w = [], p = k.next;
1613
1613
  continue;
1614
1614
  }
1615
- if (c && ic(A, I, L, i), A.e.f & Gt && (Er(A.e), l && ((He = A.a) == null || He.unfix(), (R ?? (R = /* @__PURE__ */ new Set())).delete(A))), A !== p) {
1615
+ if (c && ic(A, T, L, i), A.e.f & Gt && (Er(A.e), l && ((He = A.a) == null || He.unfix(), (R ?? (R = /* @__PURE__ */ new Set())).delete(A))), A !== p) {
1616
1616
  if (_ !== void 0 && _.has(A)) {
1617
1617
  if (b.length < w.length) {
1618
1618
  var D = w[0], X;
@@ -1638,16 +1638,16 @@ function rc(t, e, n, r, i, s, a, o) {
1638
1638
  if (p !== null || _ !== void 0) {
1639
1639
  for (var Y = _ === void 0 ? [] : Mi(_); p !== null; )
1640
1640
  (s || !(p.e.f & Gt)) && Y.push(p), p = p.next;
1641
- var te = Y.length;
1642
- if (te > 0) {
1643
- var ye = i & sa && u === 0 ? n : null;
1641
+ var ne = Y.length;
1642
+ if (ne > 0) {
1643
+ var ze = i & sa && u === 0 ? n : null;
1644
1644
  if (l) {
1645
- for (L = 0; L < te; L += 1)
1645
+ for (L = 0; L < ne; L += 1)
1646
1646
  (Oe = Y[L].a) == null || Oe.measure();
1647
- for (L = 0; L < te; L += 1)
1647
+ for (L = 0; L < ne; L += 1)
1648
1648
  (rt = Y[L].a) == null || rt.fix();
1649
1649
  }
1650
- nc(e, Y, ye, f);
1650
+ nc(e, Y, ze, f);
1651
1651
  }
1652
1652
  }
1653
1653
  l && Nn(() => {
@@ -1740,7 +1740,7 @@ function xr(t, e, n, r, i) {
1740
1740
  }));
1741
1741
  });
1742
1742
  }
1743
- function Te(t, e) {
1743
+ function Ie(t, e) {
1744
1744
  Nn(() => {
1745
1745
  var n = t.getRootNode(), r = (
1746
1746
  /** @type {ShadowRoot} */
@@ -1827,21 +1827,21 @@ function ys(t, e, n, r, i = !1, s = !1, a = !1) {
1827
1827
  var p = b[0] + b[1];
1828
1828
  if (p !== "$$") {
1829
1829
  if (p === "on") {
1830
- const I = {}, F = "$$" + b;
1830
+ const T = {}, F = "$$" + b;
1831
1831
  let A = b.slice(2);
1832
1832
  var _ = al(A);
1833
- if (il(A) && (A = A.slice(0, -7), I.capture = !0), !_ && h) {
1833
+ if (il(A) && (A = A.slice(0, -7), T.capture = !0), !_ && h) {
1834
1834
  if (w != null) continue;
1835
- t.removeEventListener(A, o[F], I), o[F] = null;
1835
+ t.removeEventListener(A, o[F], T), o[F] = null;
1836
1836
  }
1837
1837
  if (w != null)
1838
1838
  if (_)
1839
1839
  t[`__${A}`] = w, bn([A]);
1840
1840
  else {
1841
- let L = function(T) {
1842
- o[b].call(this, T);
1841
+ let L = function(I) {
1842
+ o[b].call(this, I);
1843
1843
  };
1844
- o[F] = Ha(A, t, L, I);
1844
+ o[F] = Ha(A, t, L, T);
1845
1845
  }
1846
1846
  else _ && (t[`__${A}`] = void 0);
1847
1847
  } else if (b === "style" && w != null)
@@ -1866,16 +1866,16 @@ function ys(t, e, n, r, i = !1, s = !1, a = !1) {
1866
1866
  var R = k === "defaultValue" || k === "defaultChecked";
1867
1867
  if (w == null && !s && !R)
1868
1868
  if (f[b] = null, k === "value" || k === "checked") {
1869
- let I = (
1869
+ let T = (
1870
1870
  /** @type {HTMLInputElement} */
1871
1871
  t
1872
1872
  );
1873
1873
  if (k === "value") {
1874
- let F = I.defaultValue;
1875
- I.removeAttribute(k), I.defaultValue = F;
1874
+ let F = T.defaultValue;
1875
+ T.removeAttribute(k), T.defaultValue = F;
1876
1876
  } else {
1877
- let F = I.defaultChecked;
1878
- I.removeAttribute(k), I.defaultChecked = F;
1877
+ let F = T.defaultChecked;
1878
+ T.removeAttribute(k), T.defaultChecked = F;
1879
1879
  }
1880
1880
  } else
1881
1881
  t.removeAttribute(b);
@@ -1971,7 +1971,7 @@ const fc = (t) => t;
1971
1971
  function Nt(t, e, n, r) {
1972
1972
  var i = (t & Ko) !== 0, s = (t & el) !== 0, a = i && s, o = (t & tl) !== 0, l = a ? "both" : i ? "in" : "out", c, u = e.inert, f = e.style.overflow, h, p;
1973
1973
  function _() {
1974
- var I = qe, F = je;
1974
+ var T = qe, F = je;
1975
1975
  Zt(null), Ft(null);
1976
1976
  try {
1977
1977
  return c ?? (c = n()(e, (r == null ? void 0 : r()) ?? /** @type {P} */
@@ -1979,28 +1979,28 @@ function Nt(t, e, n, r) {
1979
1979
  direction: l
1980
1980
  }));
1981
1981
  } finally {
1982
- Zt(I), Ft(F);
1982
+ Zt(T), Ft(F);
1983
1983
  }
1984
1984
  }
1985
1985
  var k = {
1986
1986
  is_global: o,
1987
1987
  in() {
1988
- var I;
1988
+ var T;
1989
1989
  if (e.inert = u, !i) {
1990
- p == null || p.abort(), (I = p == null ? void 0 : p.reset) == null || I.call(p);
1990
+ p == null || p.abort(), (T = p == null ? void 0 : p.reset) == null || T.call(p);
1991
1991
  return;
1992
1992
  }
1993
1993
  s || h == null || h.abort(), pr(e, "introstart"), h = yi(e, _(), p, 1, () => {
1994
1994
  pr(e, "introend"), h == null || h.abort(), h = c = void 0, e.style.overflow = f;
1995
1995
  });
1996
1996
  },
1997
- out(I) {
1997
+ out(T) {
1998
1998
  if (!s) {
1999
- I == null || I(), c = void 0;
1999
+ T == null || T(), c = void 0;
2000
2000
  return;
2001
2001
  }
2002
2002
  e.inert = !0, pr(e, "outrostart"), p = yi(e, _(), h, 0, () => {
2003
- pr(e, "outroend"), I == null || I();
2003
+ pr(e, "outroend"), T == null || T();
2004
2004
  });
2005
2005
  },
2006
2006
  stop: () => {
@@ -2064,13 +2064,13 @@ function yi(t, e, n, r, i) {
2064
2064
  var b = r - R, w = (
2065
2065
  /** @type {number} */
2066
2066
  e.duration * Math.abs(b)
2067
- ), I = [];
2067
+ ), T = [];
2068
2068
  if (w > 0) {
2069
2069
  var F = !1;
2070
2070
  if (c)
2071
2071
  for (var A = Math.ceil(w / 16.666666666666668), L = 0; L <= A; L += 1) {
2072
- var T = R + b * f(L / A), D = Ss(c(T, 1 - T));
2073
- I.push(D), F || (F = D.overflow === "hidden");
2072
+ var I = R + b * f(L / A), D = Ss(c(I, 1 - I));
2073
+ T.push(D), F || (F = D.overflow === "hidden");
2074
2074
  }
2075
2075
  F && (t.style.overflow = "hidden"), _ = () => {
2076
2076
  var X = (
@@ -2085,7 +2085,7 @@ function yi(t, e, n, r, i) {
2085
2085
  return u(X, 1 - X), !0;
2086
2086
  });
2087
2087
  }
2088
- k = t.animate(I, { duration: w, fill: "forwards" }), k.onfinish = () => {
2088
+ k = t.animate(T, { duration: w, fill: "forwards" }), k.onfinish = () => {
2089
2089
  _ = () => r, u == null || u(r, 1 - r), i();
2090
2090
  };
2091
2091
  }, {
@@ -2201,7 +2201,7 @@ function Ct(t = !1) {
2201
2201
  r = () => d(a);
2202
2202
  }
2203
2203
  n.b.length && jl(() => {
2204
- Ts(e, r), Sr(n.b);
2204
+ Is(e, r), Sr(n.b);
2205
2205
  }), at(() => {
2206
2206
  const i = Xt(() => n.m.map(vl));
2207
2207
  return () => {
@@ -2209,10 +2209,10 @@ function Ct(t = !1) {
2209
2209
  typeof s == "function" && s();
2210
2210
  };
2211
2211
  }), n.a.length && at(() => {
2212
- Ts(e, r), Sr(n.a);
2212
+ Is(e, r), Sr(n.a);
2213
2213
  });
2214
2214
  }
2215
- function Ts(t, e) {
2215
+ function Is(t, e) {
2216
2216
  if (t.l.s)
2217
2217
  for (const n of t.l.s) d(n);
2218
2218
  e();
@@ -2391,7 +2391,7 @@ const kc = {
2391
2391
  function yc(t, e) {
2392
2392
  return new Proxy({ props: t, exclude: e, special: {}, version: _t(0) }, kc);
2393
2393
  }
2394
- function Is(t) {
2394
+ function Ts(t) {
2395
2395
  for (var e = je, n = je; e !== null && !(e.f & (Vt | Sn)); )
2396
2396
  e = e.parent;
2397
2397
  try {
@@ -2401,14 +2401,14 @@ function Is(t) {
2401
2401
  }
2402
2402
  }
2403
2403
  function m(t, e, n, r) {
2404
- var T;
2404
+ var I;
2405
2405
  var i = (n & Zo) !== 0, s = !On || (n & Xo) !== 0, a = (n & Vo) !== 0, o = (n & Qo) !== 0, l = !1, c;
2406
2406
  a ? [c, l] = _c(() => (
2407
2407
  /** @type {V} */
2408
2408
  t[e]
2409
2409
  )) : c = /** @type {V} */
2410
2410
  t[e];
2411
- var u = rn in t || fa in t, f = a && (((T = _n(t, e)) == null ? void 0 : T.set) ?? (u && e in t && ((D) => t[e] = D))) || void 0, h = (
2411
+ var u = rn in t || fa in t, f = a && (((I = _n(t, e)) == null ? void 0 : I.set) ?? (u && e in t && ((D) => t[e] = D))) || void 0, h = (
2412
2412
  /** @type {V} */
2413
2413
  r
2414
2414
  ), p = !0, _ = !1, k = () => (_ = !0, p && (p = !1, o ? h = Xt(
@@ -2427,7 +2427,7 @@ function m(t, e, n, r) {
2427
2427
  return D === void 0 ? k() : (p = !0, _ = !1, D);
2428
2428
  };
2429
2429
  else {
2430
- var b = Is(
2430
+ var b = Ts(
2431
2431
  () => (i ? Ve : wa)(() => (
2432
2432
  /** @type {V} */
2433
2433
  t[e]
@@ -2447,16 +2447,16 @@ function m(t, e, n, r) {
2447
2447
  return arguments.length > 0 ? ((!s || !X || w || l) && f(X ? R() : D), D) : R();
2448
2448
  };
2449
2449
  }
2450
- var I = !1, F = !1, A = /* @__PURE__ */ ar(c), L = Is(
2450
+ var T = !1, F = !1, A = /* @__PURE__ */ ar(c), L = Ts(
2451
2451
  () => /* @__PURE__ */ Ve(() => {
2452
2452
  var D = R(), X = d(A);
2453
- return I ? (I = !1, F = !0, X) : (F = !1, A.v = D);
2453
+ return T ? (T = !1, F = !0, X) : (F = !1, A.v = D);
2454
2454
  })
2455
2455
  );
2456
2456
  return i || (L.equals = Oi), function(D, X) {
2457
2457
  if (arguments.length > 0) {
2458
2458
  const ue = X ? d(L) : s && a ? C(D) : D;
2459
- return L.equals(ue) || (I = !0, v(A, ue), _ && h !== void 0 && (h = ue), Xt(() => d(L))), D;
2459
+ return L.equals(ue) || (T = !0, v(A, ue), _ && h !== void 0 && (h = ue), Xt(() => d(L))), D;
2460
2460
  }
2461
2461
  return d(L);
2462
2462
  };
@@ -2752,7 +2752,7 @@ function xe(t, e, n, r, i, s) {
2752
2752
  }), t.element = /** @type {any} */
2753
2753
  a, a;
2754
2754
  }
2755
- const Tc = (t) => t;
2755
+ const Ic = (t) => t;
2756
2756
  function Wi(t) {
2757
2757
  const e = t - 1;
2758
2758
  return e * e * e + 1;
@@ -2765,7 +2765,7 @@ function Es(t) {
2765
2765
  "px"
2766
2766
  ];
2767
2767
  }
2768
- function un(t, { delay: e = 0, duration: n = 400, easing: r = Tc } = {}) {
2768
+ function un(t, { delay: e = 0, duration: n = 400, easing: r = Ic } = {}) {
2769
2769
  const i = +getComputedStyle(t).opacity;
2770
2770
  return {
2771
2771
  delay: e,
@@ -2774,7 +2774,7 @@ function un(t, { delay: e = 0, duration: n = 400, easing: r = Tc } = {}) {
2774
2774
  css: (s) => `opacity: ${s * i}`
2775
2775
  };
2776
2776
  }
2777
- function Ic(t, { delay: e = 0, duration: n = 400, easing: r = Wi, x: i = 0, y: s = 0, opacity: a = 0 } = {}) {
2777
+ function Tc(t, { delay: e = 0, duration: n = 400, easing: r = Wi, x: i = 0, y: s = 0, opacity: a = 0 } = {}) {
2778
2778
  const o = getComputedStyle(t), l = +o.opacity, c = o.transform === "none" ? "" : o.transform, u = l * (1 - a), [f, h] = Es(i), [p, _] = Es(s);
2779
2779
  return {
2780
2780
  delay: e,
@@ -3281,15 +3281,15 @@ const Uc = (
3281
3281
  /** @type {LocalizedString} */
3282
3282
  "Attiva volume"
3283
3283
  )
3284
- ), Tu = (
3284
+ ), Iu = (
3285
3285
  /** @type {(inputs: UnmuteInputs) => LocalizedString} */
3286
3286
  () => (
3287
3287
  /** @type {LocalizedString} */
3288
3288
  "Unmute"
3289
3289
  )
3290
- ), Iu = (
3290
+ ), Tu = (
3291
3291
  /** @type {((inputs?: UnmuteInputs, options?: { locale?: "it" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<UnmuteInputs, { locale?: "it" | "en" }, {}>} */
3292
- (t = {}, e = {}) => (e.locale ?? K()) === "it" ? Cu() : Tu()
3292
+ (t = {}, e = {}) => (e.locale ?? K()) === "it" ? Cu() : Iu()
3293
3293
  ), Eu = (
3294
3294
  /** @type {(inputs: MuteInputs) => LocalizedString} */
3295
3295
  () => (
@@ -3575,13 +3575,13 @@ const Uc = (
3575
3575
  ), ui = (
3576
3576
  /** @type {((inputs?: Copy_SourcesInputs, options?: { locale?: "it" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Copy_SourcesInputs, { locale?: "it" | "en" }, {}>} */
3577
3577
  (t = {}, e = {}) => (e.locale ?? K()) === "it" ? Sd() : Cd()
3578
- ), Td = (
3578
+ ), Id = (
3579
3579
  /** @type {(inputs: Sources_CopiedInputs) => LocalizedString} */
3580
3580
  () => (
3581
3581
  /** @type {LocalizedString} */
3582
3582
  "Fonti copiate!"
3583
3583
  )
3584
- ), Id = (
3584
+ ), Td = (
3585
3585
  /** @type {(inputs: Sources_CopiedInputs) => LocalizedString} */
3586
3586
  () => (
3587
3587
  /** @type {LocalizedString} */
@@ -3589,7 +3589,7 @@ const Uc = (
3589
3589
  )
3590
3590
  ), Ed = (
3591
3591
  /** @type {((inputs?: Sources_CopiedInputs, options?: { locale?: "it" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sources_CopiedInputs, { locale?: "it" | "en" }, {}>} */
3592
- (t = {}, e = {}) => (e.locale ?? K()) === "it" ? Td() : Id()
3592
+ (t = {}, e = {}) => (e.locale ?? K()) === "it" ? Id() : Td()
3593
3593
  ), $d = (
3594
3594
  /** @type {(inputs: CopyInputs) => LocalizedString} */
3595
3595
  () => (
@@ -3846,7 +3846,7 @@ const Uc = (
3846
3846
  /** @type {((inputs?: Older_ChatsInputs, options?: { locale?: "it" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Older_ChatsInputs, { locale?: "it" | "en" }, {}>} */
3847
3847
  (t = {}, e = {}) => (e.locale ?? K()) === "it" ? kf() : yf()
3848
3848
  );
3849
- var Sf = /* @__PURE__ */ $('<span class="header-chat-title svelte-1p99vze"> </span>'), Cf = (t, e) => e(!e()), Tf = /* @__PURE__ */ $('<button class="new-chat svelte-1p99vze"><i class="fa-solid fa-volume-xmark"></i></button>'), If = (t, e) => e(!e()), Ef = /* @__PURE__ */ $('<button class="new-chat svelte-1p99vze" aria-label="Mute"><i class="fa-solid fa-volume-high"></i></button>'), $f = (t, e) => e(!e()), Af = /* @__PURE__ */ $('<span class="notification-badge svelte-1p99vze"></span>'), Lf = (t, e, n) => {
3849
+ var Sf = /* @__PURE__ */ $('<span class="header-chat-title svelte-1p99vze"> </span>'), Cf = (t, e) => e(!e()), If = /* @__PURE__ */ $('<button class="new-chat svelte-1p99vze"><i class="fa-solid fa-volume-xmark"></i></button>'), Tf = (t, e) => e(!e()), Ef = /* @__PURE__ */ $('<button class="new-chat svelte-1p99vze" aria-label="Mute"><i class="fa-solid fa-volume-high"></i></button>'), $f = (t, e) => e(!e()), Af = /* @__PURE__ */ $('<span class="notification-badge svelte-1p99vze"></span>'), Lf = (t, e, n) => {
3850
3850
  e() ? (e(!1), setTimeout(
3851
3851
  () => {
3852
3852
  n(!1);
@@ -3862,7 +3862,7 @@ const jf = {
3862
3862
  }`
3863
3863
  };
3864
3864
  function co(t, e) {
3865
- ge(e, !0), Te(t, jf);
3865
+ ge(e, !0), Ie(t, jf);
3866
3866
  let n = m(e, "show", 15, !1), r = m(e, "showHistory", 15), i = m(e, "actChat", 15), s = m(e, "muted", 15), a = m(e, "languageSelected", 15), o = m(e, "username", 15), l = m(e, "error", 15), c = m(e, "newChat", 7), u = m(e, "chatToRead", 7);
3867
3867
  Qr(() => {
3868
3868
  });
@@ -3873,46 +3873,46 @@ function co(t, e) {
3873
3873
  var b = M(p, 2);
3874
3874
  {
3875
3875
  var w = (Y) => {
3876
- var te = Sf(), ye = y(te, !0);
3877
- x(te), P(() => {
3878
- O(te, "title", i().title), ke(ye, i().title);
3879
- }), S(Y, te);
3876
+ var ne = Sf(), ze = y(ne, !0);
3877
+ x(ne), P(() => {
3878
+ O(ne, "title", i().title), ye(ze, i().title);
3879
+ }), S(Y, ne);
3880
3880
  };
3881
3881
  Q(b, (Y) => {
3882
- var te;
3883
- (te = i()) != null && te.title && Y(w);
3882
+ var ne;
3883
+ (ne = i()) != null && ne.title && Y(w);
3884
3884
  });
3885
3885
  }
3886
- var I = M(b, 2), F = y(I);
3886
+ var T = M(b, 2), F = y(T);
3887
3887
  {
3888
3888
  var A = (Y) => {
3889
- var te = Tf();
3890
- te.__click = [Cf, s], P(
3891
- (ye) => {
3892
- O(te, "title", ye), O(te, "aria-label", s() ? "Unmute" : "Mute");
3889
+ var ne = If();
3890
+ ne.__click = [Cf, s], P(
3891
+ (ze) => {
3892
+ O(ne, "title", ze), O(ne, "aria-label", s() ? "Unmute" : "Mute");
3893
3893
  },
3894
- [() => Iu()]
3895
- ), S(Y, te);
3894
+ [() => Tu()]
3895
+ ), S(Y, ne);
3896
3896
  }, L = (Y) => {
3897
- var te = Ef();
3898
- te.__click = [If, s], P((ye) => O(te, "title", ye), [() => Au()]), S(Y, te);
3897
+ var ne = Ef();
3898
+ ne.__click = [Tf, s], P((ze) => O(ne, "title", ze), [() => Au()]), S(Y, ne);
3899
3899
  };
3900
3900
  Q(F, (Y) => {
3901
3901
  s() ? Y(A) : Y(L, !1);
3902
3902
  });
3903
3903
  }
3904
- var T = M(F, 2);
3905
- T.__click = function(...Y) {
3906
- var te;
3907
- (te = c()) == null || te.apply(this, Y);
3904
+ var I = M(F, 2);
3905
+ I.__click = function(...Y) {
3906
+ var ne;
3907
+ (ne = c()) == null || ne.apply(this, Y);
3908
3908
  };
3909
- var D = M(T, 2);
3909
+ var D = M(I, 2);
3910
3910
  D.__click = [$f, r];
3911
3911
  var X = M(y(D), 2);
3912
3912
  {
3913
3913
  var ue = (Y) => {
3914
- var te = Af();
3915
- S(Y, te);
3914
+ var ne = Af();
3915
+ S(Y, ne);
3916
3916
  };
3917
3917
  Q(X, (Y) => {
3918
3918
  u() && Y(ue);
@@ -3920,9 +3920,9 @@ function co(t, e) {
3920
3920
  }
3921
3921
  x(D);
3922
3922
  var Be = M(D, 2);
3923
- return Be.__click = [Lf, r, n], x(I), x(h), x(f), P(
3924
- (Y, te, ye, lt) => {
3925
- O(T, "title", Y), O(D, "title", te), O(D, "aria-label", ye), O(Be, "title", lt), O(Be, "aria-label", lt);
3923
+ return Be.__click = [Lf, r, n], x(T), x(h), x(f), P(
3924
+ (Y, ne, ze, lt) => {
3925
+ O(I, "title", Y), O(D, "title", ne), O(D, "aria-label", ze), O(Be, "title", lt), O(Be, "aria-label", lt);
3926
3926
  },
3927
3927
  [
3928
3928
  () => ao(),
@@ -4530,7 +4530,7 @@ const ah = {
4530
4530
  }`
4531
4531
  };
4532
4532
  function oh(t, e) {
4533
- ge(e, !1), Te(t, ah);
4533
+ ge(e, !1), Ie(t, ah);
4534
4534
  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);
4535
4535
  var o = sh();
4536
4536
  return P(() => {
@@ -4602,7 +4602,7 @@ const ch = {
4602
4602
  }`
4603
4603
  };
4604
4604
  function uh(t, e) {
4605
- ge(e, !1), Te(t, ch);
4605
+ ge(e, !1), Ie(t, ch);
4606
4606
  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`);
4607
4607
  var h = lh();
4608
4608
  return P(() => {
@@ -4721,7 +4721,7 @@ const fh = {
4721
4721
  }`
4722
4722
  };
4723
4723
  function hh(t, e) {
4724
- ge(e, !1), Te(t, fh);
4724
+ ge(e, !1), Ie(t, fh);
4725
4725
  let n = m(e, "size", 12, "60"), r = m(e, "unit", 12, "px"), i = m(e, "pause", 12, !1), s = m(e, "ballTopLeft", 12, "#FF3E00"), a = m(e, "ballTopRight", 12, "#F8B334"), o = m(e, "ballBottomLeft", 12, "#40B3FF"), l = m(e, "ballBottomRight", 12, "#676778"), c = m(e, "duration", 12, "1.5s");
4726
4726
  var u = dh(), f = y(u), h = y(f), p = y(h), _ = y(p);
4727
4727
  x(p);
@@ -4729,8 +4729,8 @@ function hh(t, e) {
4729
4729
  x(k);
4730
4730
  var b = M(k, 2), w = y(b);
4731
4731
  x(b);
4732
- var I = M(b, 2), F = y(I);
4733
- return x(I), x(h), x(f), x(u), P(() => {
4732
+ var T = M(b, 2), F = y(T);
4733
+ return x(T), x(h), x(f), x(u), P(() => {
4734
4734
  O(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${s() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${c() ?? ""};`), we(h, "pause-animation", i()), we(_, "pause-animation", i()), we(R, "pause-animation", i()), we(w, "pause-animation", i()), we(F, "pause-animation", i());
4735
4735
  }), S(t, u), me({
4736
4736
  get size() {
@@ -4825,7 +4825,7 @@ const gh = {
4825
4825
  };
4826
4826
  function mh(t, e) {
4827
4827
  var u;
4828
- ge(e, !1), Te(t, gh);
4828
+ ge(e, !1), Ie(t, gh);
4829
4829
  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(ht)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ht, "");
4830
4830
  Ct();
4831
4831
  var c = vh();
@@ -5054,7 +5054,7 @@ const wh = {
5054
5054
  }`
5055
5055
  };
5056
5056
  function xh(t, e) {
5057
- ge(e, !1), Te(t, wh);
5057
+ ge(e, !1), Ie(t, wh);
5058
5058
  const n = cn();
5059
5059
  let r = m(e, "size", 12, "40px"), i = m(e, "duration", 12, "3s"), s = m(e, "pause", 12, !1);
5060
5060
  or(() => qn(r()), () => {
@@ -5104,7 +5104,7 @@ const kh = {
5104
5104
  }`
5105
5105
  };
5106
5106
  function yh(t, e) {
5107
- ge(e, !1), Te(t, kh);
5107
+ ge(e, !1), Ie(t, kh);
5108
5108
  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);
5109
5109
  var o = _h(), l = y(o);
5110
5110
  return x(o), P(() => {
@@ -5217,7 +5217,7 @@ const Sh = {
5217
5217
  }`
5218
5218
  };
5219
5219
  function Ch(t, e) {
5220
- ge(e, !1), Te(t, Sh);
5220
+ ge(e, !1), Ie(t, Sh);
5221
5221
  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);
5222
5222
  var l = zh(), c = y(l);
5223
5223
  return x(l), P(() => {
@@ -5275,7 +5275,7 @@ xe(
5275
5275
  [],
5276
5276
  !0
5277
5277
  );
5278
- var Th = /* @__PURE__ */ $('<div class="rect svelte-cihful"></div>'), Ih = /* @__PURE__ */ $('<div class="wrapper svelte-cihful"></div>');
5278
+ var Ih = /* @__PURE__ */ $('<div class="rect svelte-cihful"></div>'), Th = /* @__PURE__ */ $('<div class="wrapper svelte-cihful"></div>');
5279
5279
  const Eh = {
5280
5280
  hash: "svelte-cihful",
5281
5281
  code: `.wrapper.svelte-cihful {height:var(--size);width:var(--size);display:inline-block;text-align:center;font-size:10px;}.rect.svelte-cihful {height:100%;width:10%;display:inline-block;margin-right:4px;transform:scaleY(0.4);background-color:var(--color);
@@ -5293,12 +5293,12 @@ const Eh = {
5293
5293
  };
5294
5294
  function $h(t, e) {
5295
5295
  var u;
5296
- ge(e, !1), Te(t, Eh);
5296
+ ge(e, !1), Ie(t, Eh);
5297
5297
  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(ht)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ht, "");
5298
5298
  Ct();
5299
- var c = Ih();
5299
+ var c = Th();
5300
5300
  return ft(c, 5, () => Bt(5, 1), vt, (f, h) => {
5301
- var p = Th();
5301
+ var p = Ih();
5302
5302
  P(() => {
5303
5303
  O(p, "style", `animation-delay: ${(d(h) - 1) * (+l / 12)}${o ?? ""}`), we(p, "pause-animation", a());
5304
5304
  }), S(f, p);
@@ -5387,7 +5387,7 @@ const Rh = {
5387
5387
  }`
5388
5388
  };
5389
5389
  function jh(t, e) {
5390
- ge(e, !1), Te(t, Rh);
5390
+ ge(e, !1), Ie(t, Rh);
5391
5391
  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 = cn();
5392
5392
  or(
5393
5393
  () => qn(n()),
@@ -5468,7 +5468,7 @@ const Mh = {
5468
5468
  };
5469
5469
  function Ph(t, e) {
5470
5470
  var u;
5471
- ge(e, !1), Te(t, Mh);
5471
+ ge(e, !1), Ie(t, Mh);
5472
5472
  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(ht)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ht, "");
5473
5473
  Ct();
5474
5474
  var c = Fh();
@@ -5548,7 +5548,7 @@ const Nh = {
5548
5548
  }`
5549
5549
  };
5550
5550
  function Bh(t, e) {
5551
- ge(e, !1), Te(t, Nh);
5551
+ ge(e, !1), Ie(t, Nh);
5552
5552
  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);
5553
5553
  Ct();
5554
5554
  var o = Uh();
@@ -5640,7 +5640,7 @@ const Yh = {
5640
5640
  };
5641
5641
  function Gh(t, e) {
5642
5642
  var u;
5643
- ge(e, !1), Te(t, Yh);
5643
+ ge(e, !1), Ie(t, Yh);
5644
5644
  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(ht)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ht, "");
5645
5645
  Ct();
5646
5646
  var c = Hh();
@@ -5720,7 +5720,7 @@ const Wh = {
5720
5720
  }`
5721
5721
  };
5722
5722
  function Zh(t, e) {
5723
- ge(e, !1), Te(t, Wh);
5723
+ ge(e, !1), Ie(t, Wh);
5724
5724
  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);
5725
5725
  var o = Jh(), l = y(o);
5726
5726
  return x(o), P(() => {
@@ -5792,7 +5792,7 @@ const Vh = {
5792
5792
  }`
5793
5793
  };
5794
5794
  function Qh(t, e) {
5795
- ge(e, !1), Te(t, Vh);
5795
+ ge(e, !1), Ie(t, Vh);
5796
5796
  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);
5797
5797
  var o = Xh(), l = y(o);
5798
5798
  return x(o), P(() => {
@@ -5862,7 +5862,7 @@ const tp = {
5862
5862
  };
5863
5863
  function Mr(t, e) {
5864
5864
  var u;
5865
- ge(e, !1), Te(t, tp);
5865
+ ge(e, !1), Ie(t, tp);
5866
5866
  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(ht)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ht, "");
5867
5867
  Ct();
5868
5868
  var c = ep();
@@ -5936,7 +5936,7 @@ const ip = {
5936
5936
  };
5937
5937
  function sp(t, e) {
5938
5938
  var u;
5939
- ge(e, !1), Te(t, ip);
5939
+ ge(e, !1), Ie(t, ip);
5940
5940
  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(ht)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ht, "");
5941
5941
  Ct();
5942
5942
  var c = rp();
@@ -6015,7 +6015,7 @@ const lp = {
6015
6015
  };
6016
6016
  function cp(t, e) {
6017
6017
  var f;
6018
- ge(e, !1), Te(t, lp);
6018
+ ge(e, !1), Ie(t, lp);
6019
6019
  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(ht)) == null ? void 0 : f[0]) ?? "s", l = i().replace(ht, "");
6020
6020
  Ct();
6021
6021
  var c = op(), u = y(c);
@@ -6097,7 +6097,7 @@ const dp = {
6097
6097
  }`
6098
6098
  };
6099
6099
  function fp(t, e) {
6100
- ge(e, !1), Te(t, dp);
6100
+ ge(e, !1), Ie(t, dp);
6101
6101
  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);
6102
6102
  var o = up();
6103
6103
  return P(() => {
@@ -6191,7 +6191,7 @@ const pp = {
6191
6191
  }`
6192
6192
  };
6193
6193
  function vp(t, e) {
6194
- ge(e, !1), Te(t, pp);
6194
+ ge(e, !1), Ie(t, pp);
6195
6195
  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);
6196
6196
  var o = hp(), l = y(o);
6197
6197
  return x(o), P(() => {
@@ -6255,7 +6255,7 @@ const mp = {
6255
6255
  }`
6256
6256
  };
6257
6257
  function bp(t, e) {
6258
- ge(e, !1), Te(t, mp);
6258
+ ge(e, !1), Ie(t, mp);
6259
6259
  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;
6260
6260
  var c = gp(), u = y(c), f = M(u, 2);
6261
6261
  return x(c), P(() => {
@@ -6340,7 +6340,7 @@ const xp = {
6340
6340
  }`
6341
6341
  };
6342
6342
  function _p(t, e) {
6343
- ge(e, !1), Te(t, xp);
6343
+ ge(e, !1), Ie(t, xp);
6344
6344
  let n = m(e, "color", 12, "#FF3E00"), r = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.3s"), s = m(e, "size", 12, "60"), a = m(e, "pause", 12, !1), o = cn();
6345
6345
  or(
6346
6346
  () => qn(n()),
@@ -6415,7 +6415,7 @@ const yp = {
6415
6415
  }`
6416
6416
  };
6417
6417
  function zp(t, e) {
6418
- ge(e, !1), Te(t, yp);
6418
+ ge(e, !1), Ie(t, yp);
6419
6419
  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);
6420
6420
  var o = kp();
6421
6421
  return P(() => {
@@ -6481,8 +6481,8 @@ const Cp = {
6481
6481
  }
6482
6482
  }`
6483
6483
  };
6484
- function Tp(t, e) {
6485
- ge(e, !1), Te(t, Cp);
6484
+ function Ip(t, e) {
6485
+ ge(e, !1), Ie(t, Cp);
6486
6486
  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);
6487
6487
  var o = Sp();
6488
6488
  return P(() => {
@@ -6521,7 +6521,7 @@ function Tp(t, e) {
6521
6521
  });
6522
6522
  }
6523
6523
  xe(
6524
- Tp,
6524
+ Ip,
6525
6525
  {
6526
6526
  color: {},
6527
6527
  unit: {},
@@ -6533,7 +6533,7 @@ xe(
6533
6533
  [],
6534
6534
  !0
6535
6535
  );
6536
- var Ip = /* @__PURE__ */ $('<div class="bar svelte-1vzsw15"></div>'), Ep = /* @__PURE__ */ $('<div class="wrapper svelte-1vzsw15"></div>');
6536
+ var Tp = /* @__PURE__ */ $('<div class="bar svelte-1vzsw15"></div>'), Ep = /* @__PURE__ */ $('<div class="wrapper svelte-1vzsw15"></div>');
6537
6537
  const $p = {
6538
6538
  hash: "svelte-1vzsw15",
6539
6539
  code: `.wrapper.svelte-1vzsw15 {position:relative;display:flex;justify-content:center;align-items:center;width:calc(var(--size) * 2.5);height:var(--size);overflow:hidden;}.bar.svelte-1vzsw15 {position:absolute;top:calc(var(--size) / 10);width:calc(var(--size) / 5);height:calc(var(--size) / 10);margin-top:calc(var(--size) - var(--size) / 10);transform:skewY(0deg);background-color:var(--color);
@@ -6553,12 +6553,12 @@ const $p = {
6553
6553
  };
6554
6554
  function Ap(t, e) {
6555
6555
  var u;
6556
- ge(e, !1), Te(t, $p);
6556
+ ge(e, !1), Ie(t, $p);
6557
6557
  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(ht)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ht, "");
6558
6558
  Ct();
6559
6559
  var c = Ep();
6560
6560
  return ft(c, 5, () => Bt(10, 0), vt, (f, h) => {
6561
- var p = Ip();
6561
+ var p = Tp();
6562
6562
  P(() => {
6563
6563
  O(p, "style", `left: ${d(h) * (+s() / 5 + (+s() / 15 - +s() / 100)) + r()}; animation-delay: ${d(h) * (+l / 8.3)}${o ?? ""};`), we(p, "pause-animation", a());
6564
6564
  }), S(f, p);
@@ -6632,7 +6632,7 @@ const jp = {
6632
6632
  };
6633
6633
  function Dp(t, e) {
6634
6634
  var f;
6635
- ge(e, !1), Te(t, jp);
6635
+ ge(e, !1), Ie(t, jp);
6636
6636
  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 = ((f = i().match(ht)) == null ? void 0 : f[0]) ?? "s", l = i().replace(ht, ""), c = cn();
6637
6637
  or(
6638
6638
  () => qn(n()),
@@ -6707,7 +6707,7 @@ const Mp = {
6707
6707
  }`
6708
6708
  };
6709
6709
  function Pp(t, e) {
6710
- ge(e, !1), Te(t, Mp);
6710
+ ge(e, !1), Ie(t, Mp);
6711
6711
  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);
6712
6712
  var o = Fp();
6713
6713
  return P(() => {
@@ -6773,7 +6773,7 @@ const Up = {
6773
6773
  }`
6774
6774
  };
6775
6775
  function Np(t, e) {
6776
- ge(e, !1), Te(t, Up);
6776
+ ge(e, !1), Ie(t, Up);
6777
6777
  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);
6778
6778
  var o = Op();
6779
6779
  return P(() => {
@@ -6965,7 +6965,7 @@ const fv = {
6965
6965
  /* Stili per la modale di ricerca documenti */.modal-overlay.svelte-zrlk2s {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;z-index:1050;}.document-search-modal.svelte-zrlk2s {background:white;border-radius:12px;box-shadow:0 8px 32px rgba(0, 0, 0, 0.2);width:90%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;}.modal-header.svelte-zrlk2s {display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e9ecef;}.modal-header.svelte-zrlk2s h5:where(.svelte-zrlk2s) {margin:0;font-weight:600;color:#295dcf;}.modal-body.svelte-zrlk2s {padding:20px;flex:1;overflow:hidden;display:flex;flex-direction:column;}.search-container.svelte-zrlk2s {margin-bottom:20px;}.documents-container.svelte-zrlk2s {flex:1;overflow:hidden;display:flex;flex-direction:column;}.documents-list.svelte-zrlk2s {overflow-y:auto;max-height:300px;border:1px solid #e9ecef;border-radius:8px;}.document-item.svelte-zrlk2s {display:flex;align-items:flex-start;width:100%;padding:12px 15px;border:none;background:white;color:#333;cursor:pointer;transition:all 0.2s;border-bottom:1px solid #f0f0f0;text-align:left;}.document-item.svelte-zrlk2s:last-child {border-bottom:none;}.document-item.svelte-zrlk2s:hover {background:#f8f9fa;color:#295dcf;}.document-icon.svelte-zrlk2s {margin-right:12px;color:#6c757d;width:20px;flex-shrink:0;margin-top:2px;}.document-title.svelte-zrlk2s {font-weight:500;margin-bottom:4px;word-wrap:break-word;}.document-path.svelte-zrlk2s {font-size:0.85em;color:#6c757d;word-wrap:break-word;}.input-group-text.svelte-zrlk2s {background:#f8f9fa;border-color:#e9ecef;color:#6c757d;}.document-item.selected.svelte-zrlk2s {background:#e7f3ff;border-left:3px solid #295dcf;}.document-item.selected.svelte-zrlk2s:hover {background:#d0e8ff;}.selected-indicator.svelte-zrlk2s {margin-left:auto;color:#28a745;font-size:1.2em;display:flex;align-items:center;}`
6966
6966
  };
6967
6967
  function go(t, e) {
6968
- ge(e, !0), Te(t, fv);
6968
+ ge(e, !0), Ie(t, fv);
6969
6969
  let n = m(e, "attachments", 15), r = m(e, "showDocumentSearchModal", 15), i = m(e, "modeSelected", 15);
6970
6970
  const s = { default: 3, gendoc: 1, transcriptions: 1 }, a = 3;
6971
6971
  let o = /* @__PURE__ */ Ve(() => ur(i())), l = J(C([])), c = J(C([])), u = J(C([])), f = J(C([])), h = J(!1), p = J(""), _ = /* @__PURE__ */ Ve(() => i() === "normative" || i() === "suite" ? d(c) : i() === "gendoc" ? d(u) : i() === "transcriptions" ? d(f) : d(l));
@@ -7001,7 +7001,7 @@ function go(t, e) {
7001
7001
  isCommon: !0
7002
7002
  };
7003
7003
  throw new Error("Unknown document type");
7004
- }, I = (W) => {
7004
+ }, T = (W) => {
7005
7005
  if (R(W))
7006
7006
  return;
7007
7007
  const Qe = W instanceof yn || W instanceof mn ? s.gendoc : s.default;
@@ -7021,7 +7021,7 @@ function go(t, e) {
7021
7021
  v(h, !1);
7022
7022
  }
7023
7023
  };
7024
- var A = dv(), L = y(A), T = y(L), D = y(T), X = y(D);
7024
+ var A = dv(), L = y(A), I = y(L), D = y(I), X = y(D);
7025
7025
  x(D);
7026
7026
  var ue = M(D, 2);
7027
7027
  ue.__click = [
@@ -7029,9 +7029,9 @@ function go(t, e) {
7029
7029
  r,
7030
7030
  p,
7031
7031
  k
7032
- ], x(T);
7033
- var Be = M(T, 2), Y = y(Be), te = y(Y), ye = M(y(te), 2);
7034
- ac(ye), ye.__input = [
7032
+ ], x(I);
7033
+ var Be = M(I, 2), Y = y(Be), ne = y(Y), ze = M(y(ne), 2);
7034
+ ac(ze), ze.__input = [
7035
7035
  nv,
7036
7036
  p,
7037
7037
  F,
@@ -7040,44 +7040,44 @@ function go(t, e) {
7040
7040
  u,
7041
7041
  f,
7042
7042
  l
7043
- ], x(te), x(Y);
7043
+ ], x(ne), x(Y);
7044
7044
  var lt = M(Y, 2), He = y(lt);
7045
7045
  {
7046
7046
  var Oe = (W) => {
7047
7047
  var Qe = rv(), Ke = y(Qe);
7048
7048
  Mr(Ke, { size: "30", color: "#295dcf" });
7049
7049
  var Ye = M(Ke, 2), H = y(Ye, !0);
7050
- x(Ye), x(Qe), P((V) => ke(H, V), [() => Xu()]), S(W, Qe);
7050
+ x(Ye), x(Qe), P((V) => ye(H, V), [() => Xu()]), S(W, Qe);
7051
7051
  }, rt = (W) => {
7052
7052
  var Qe = St(), Ke = nt(Qe);
7053
7053
  {
7054
7054
  var Ye = (V) => {
7055
- var Ie = iv(), $e = M(y(Ie), 2), et = y($e, !0);
7056
- x($e), x(Ie), P((be) => ke(et, be), [() => Ku()]), S(V, Ie);
7055
+ var Te = iv(), $e = M(y(Te), 2), et = y($e, !0);
7056
+ x($e), x(Te), P((be) => ye(et, be), [() => Ku()]), S(V, Te);
7057
7057
  }, H = (V) => {
7058
- var Ie = St(), $e = nt(Ie);
7058
+ var Te = St(), $e = nt(Te);
7059
7059
  {
7060
- var et = (ze) => {
7060
+ var et = (Se) => {
7061
7061
  var oe = sv(), ae = M(y(oe), 2), z = y(ae);
7062
7062
  {
7063
7063
  var N = (ee) => {
7064
7064
  var Ee = hr();
7065
- P((Ae) => ke(Ee, Ae), [() => nd()]), S(ee, Ee);
7065
+ P((Ae) => ye(Ee, Ae), [() => nd()]), S(ee, Ee);
7066
7066
  }, ce = (ee) => {
7067
7067
  var Ee = St(), Ae = nt(Ee);
7068
7068
  {
7069
7069
  var tt = (De) => {
7070
7070
  var Ge = hr();
7071
- P((ct) => ke(Ge, ct), [() => Od()]), S(De, Ge);
7071
+ P((ct) => ye(Ge, ct), [() => Od()]), S(De, Ge);
7072
7072
  }, Ue = (De) => {
7073
7073
  var Ge = St(), ct = nt(Ge);
7074
7074
  {
7075
7075
  var ut = (_e) => {
7076
7076
  var le = hr();
7077
- P((Le) => ke(le, Le), [() => Bd()]), S(_e, le);
7077
+ P((Le) => ye(le, Le), [() => Bd()]), S(_e, le);
7078
7078
  }, gt = (_e) => {
7079
7079
  var le = hr();
7080
- P((Le) => ke(le, Le), [() => Ci()]), S(_e, le);
7080
+ P((Le) => ye(le, Le), [() => Ci()]), S(_e, le);
7081
7081
  };
7082
7082
  Q(
7083
7083
  ct,
@@ -7103,13 +7103,13 @@ function go(t, e) {
7103
7103
  i() === "normative" || i() === "suite" ? ee(N) : ee(ce, !1);
7104
7104
  });
7105
7105
  }
7106
- x(ae), x(oe), S(ze, oe);
7107
- }, be = (ze) => {
7106
+ x(ae), x(oe), S(Se, oe);
7107
+ }, be = (Se) => {
7108
7108
  var oe = uv();
7109
7109
  ft(oe, 21, () => d(_), vt, (ae, z) => {
7110
7110
  var N = cv();
7111
7111
  const ce = /* @__PURE__ */ Ve(() => Qp(d(z), d(o))), ee = /* @__PURE__ */ Ve(() => Kp(d(z))), Ee = /* @__PURE__ */ Ve(() => ev(d(z)));
7112
- N.__click = [av, I, z];
7112
+ N.__click = [av, T, z];
7113
7113
  var Ae = y(N), tt = y(Ae);
7114
7114
  x(Ae);
7115
7115
  var Ue = M(Ae, 2), De = y(Ue), Ge = y(De, !0);
@@ -7118,7 +7118,7 @@ function go(t, e) {
7118
7118
  {
7119
7119
  var ut = (le) => {
7120
7120
  var Le = ov(), U = y(Le, !0);
7121
- x(Le), P(() => ke(U, d(Ee))), S(le, Le);
7121
+ x(Le), P(() => ye(U, d(Ee))), S(le, Le);
7122
7122
  };
7123
7123
  Q(ct, (le) => {
7124
7124
  d(Ee) && le(ut);
@@ -7136,19 +7136,19 @@ function go(t, e) {
7136
7136
  });
7137
7137
  }
7138
7138
  x(N), P(() => {
7139
- we(N, "selected", n()[d(z)._id]), yt(tt, Gi(d(ce).class), "svelte-zrlk2s"), O(tt, "style", `color: ${d(ce).color}`), ke(Ge, d(ee));
7139
+ we(N, "selected", n()[d(z)._id]), yt(tt, Gi(d(ce).class), "svelte-zrlk2s"), O(tt, "style", `color: ${d(ce).color}`), ye(Ge, d(ee));
7140
7140
  }), S(ae, N);
7141
- }), x(oe), S(ze, oe);
7141
+ }), x(oe), S(Se, oe);
7142
7142
  };
7143
7143
  Q(
7144
7144
  $e,
7145
- (ze) => {
7146
- d(_).length === 0 ? ze(et) : ze(be, !1);
7145
+ (Se) => {
7146
+ d(_).length === 0 ? Se(et) : Se(be, !1);
7147
7147
  },
7148
7148
  !0
7149
7149
  );
7150
7150
  }
7151
- S(V, Ie);
7151
+ S(V, Te);
7152
7152
  };
7153
7153
  Q(
7154
7154
  Ke,
@@ -7166,8 +7166,8 @@ function go(t, e) {
7166
7166
  }
7167
7167
  return x(lt), x(Be), x(L), x(A), P(
7168
7168
  (W, Qe, Ke) => {
7169
- ke(X, `${W ?? ""}
7170
- ${Qe ?? ""}`), O(ye, "placeholder", `${W ?? ""} ${Ke ?? ""} (min 3 caratteri)...`), Za(ye, d(p));
7169
+ ye(X, `${W ?? ""}
7170
+ ${Qe ?? ""}`), O(ze, "placeholder", `${W ?? ""} ${Ke ?? ""} (min 3 caratteri)...`), Za(ze, d(p));
7171
7171
  },
7172
7172
  [
7173
7173
  () => Yu(),
@@ -7230,26 +7230,6 @@ function Os(t) {
7230
7230
  return "Standard Agent";
7231
7231
  }
7232
7232
  }
7233
- function gv(t) {
7234
- switch (t) {
7235
- case 1:
7236
- return "kb";
7237
- case 2:
7238
- return "normative";
7239
- case 3:
7240
- return "suite";
7241
- case 4:
7242
- return "gendoc";
7243
- case 5:
7244
- return "transcriptions";
7245
- case 6:
7246
- return "audit_handler";
7247
- case 7:
7248
- return "suite_agent";
7249
- default:
7250
- return "auto";
7251
- }
7252
- }
7253
7233
  function Us(t) {
7254
7234
  try {
7255
7235
  return new Date(parseInt(t.substring(0, 8), 16) * 1e3);
@@ -7279,7 +7259,7 @@ function Ns(t) {
7279
7259
  year: n.getFullYear() !== r.getFullYear() ? "numeric" : void 0
7280
7260
  });
7281
7261
  }
7282
- function mv(t) {
7262
+ function gv(t) {
7283
7263
  const e = t ? new Date(t) : /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date(), r = new Date(
7284
7264
  n.getFullYear(),
7285
7265
  n.getMonth(),
@@ -7300,7 +7280,7 @@ const Pr = (t) => {
7300
7280
  default:
7301
7281
  return "it-IT";
7302
7282
  }
7303
- }, bv = async (t, e) => {
7283
+ }, mv = async (t, e) => {
7304
7284
  const n = new FormData();
7305
7285
  n.append("file", t), n.append("lang", Pr(e));
7306
7286
  const r = await fetch(`${B.getUrl()}/audio/stt`, {
@@ -7313,7 +7293,7 @@ const Pr = (t) => {
7313
7293
  body: n
7314
7294
  });
7315
7295
  return r.ok ? (await r.json()).text : (console.error("Failed to fetch text"), "");
7316
- }, wv = async (t, e) => {
7296
+ }, bv = async (t, e) => {
7317
7297
  const n = await fetch(`${B.getUrl()}/audio/tts`, {
7318
7298
  method: "POST",
7319
7299
  headers: {
@@ -7329,9 +7309,9 @@ const Pr = (t) => {
7329
7309
  const r = await n.blob();
7330
7310
  return URL.createObjectURL(r);
7331
7311
  }, es = {
7332
- getText: bv,
7333
- getAudio: wv
7334
- }, xv = async (t) => {
7312
+ getText: mv,
7313
+ getAudio: bv
7314
+ }, wv = async (t) => {
7335
7315
  const e = await fetch(`${B.getUrl()}/chat/${t}`, {
7336
7316
  headers: {
7337
7317
  akstoken: B.getToken(),
@@ -7343,7 +7323,7 @@ const Pr = (t) => {
7343
7323
  throw new Error("Failed to fetch chat");
7344
7324
  const n = await e.json();
7345
7325
  return kn.fromJson(n);
7346
- }, _v = async (t = 0, e = 10) => {
7326
+ }, xv = async (t = 0, e = 10) => {
7347
7327
  const n = await fetch(`${B.getUrl()}/chat?skip=${t}&limit=${e}`, {
7348
7328
  headers: {
7349
7329
  akstoken: B.getToken(),
@@ -7354,7 +7334,7 @@ const Pr = (t) => {
7354
7334
  if (!n.ok)
7355
7335
  throw new Error("Failed to fetch chats");
7356
7336
  return (await n.json()).map((i) => kn.fromJson(i));
7357
- }, kv = async (t) => {
7337
+ }, _v = async (t) => {
7358
7338
  const e = await fetch(`${B.getUrl()}/chat`, {
7359
7339
  method: "POST",
7360
7340
  headers: {
@@ -7369,7 +7349,7 @@ const Pr = (t) => {
7369
7349
  throw new Error("Failed to create chat");
7370
7350
  const n = await e.json();
7371
7351
  return kn.fromJson(n);
7372
- }, yv = async (t, e, n, r, i, s, a, o) => {
7352
+ }, kv = async (t, e, n, r, i, s, a, o) => {
7373
7353
  let l, c = !1;
7374
7354
  try {
7375
7355
  let u = 0;
@@ -7386,8 +7366,8 @@ const Pr = (t) => {
7386
7366
  lang: Pr(a)
7387
7367
  }));
7388
7368
  }, l.onmessage = (w) => {
7389
- let I = JSON.parse(w.data);
7390
- s(I.message, I.attachments, I.agent);
7369
+ let T = JSON.parse(w.data);
7370
+ s(T.message, T.attachments, T.agent);
7391
7371
  }, l.onerror = (w) => {
7392
7372
  console.error("WebSocket error:", w), b(new Error("WebSocket connection error"));
7393
7373
  }, l.onclose = (w) => {
@@ -7408,7 +7388,7 @@ const Pr = (t) => {
7408
7388
  }
7409
7389
  }
7410
7390
  return c;
7411
- }, zv = async (t, e) => {
7391
+ }, yv = async (t, e) => {
7412
7392
  if (!(await fetch(`${B.getUrl()}/chat/${t}/title`, {
7413
7393
  method: "POST",
7414
7394
  headers: {
@@ -7420,7 +7400,7 @@ const Pr = (t) => {
7420
7400
  body: JSON.stringify({ title: e })
7421
7401
  })).ok)
7422
7402
  throw new Error("Failed to change title");
7423
- }, Sv = async (t) => {
7403
+ }, zv = async (t) => {
7424
7404
  if (!(await fetch(`${B.getUrl()}/chat/${t}`, {
7425
7405
  method: "DELETE",
7426
7406
  headers: {
@@ -7446,7 +7426,7 @@ const Pr = (t) => {
7446
7426
  })
7447
7427
  })).ok)
7448
7428
  throw new Error("Failed to insert message");
7449
- }, Cv = async (t, e) => new Promise((n, r) => {
7429
+ }, Sv = async (t, e) => new Promise((n, r) => {
7450
7430
  const i = new FormData();
7451
7431
  i.append("file", t);
7452
7432
  const s = new XMLHttpRequest();
@@ -7471,7 +7451,7 @@ const Pr = (t) => {
7471
7451
  }), s.addEventListener("error", () => {
7472
7452
  r(new Error("Failed to upload file"));
7473
7453
  }), s.open("POST", `${B.getUrl()}/files`), s.setRequestHeader("akstoken", B.getToken()), s.setRequestHeader("envid", B.getEnvironmentId()), s.setRequestHeader("ngrok-skip-browser-warning", "true"), s.send(i);
7474
- }), Tv = async (t, e) => {
7454
+ }), Cv = async (t, e) => {
7475
7455
  if (!(await fetch(`${B.getUrl()}/files`, {
7476
7456
  method: "DELETE",
7477
7457
  headers: {
@@ -7493,7 +7473,7 @@ const Pr = (t) => {
7493
7473
  }
7494
7474
  })).ok)
7495
7475
  throw new Error("Failed to mark chat as read");
7496
- }, Ev = async () => {
7476
+ }, Tv = async () => {
7497
7477
  const t = await fetch(`${B.getUrl()}/chat/unread`, {
7498
7478
  headers: {
7499
7479
  akstoken: B.getToken(),
@@ -7505,19 +7485,19 @@ const Pr = (t) => {
7505
7485
  throw new Error("Failed to fetch unread chats");
7506
7486
  return await t.json();
7507
7487
  }, dt = {
7508
- getChat: xv,
7509
- getChats: _v,
7510
- newChat: kv,
7511
- sendMessage: yv,
7512
- deleteChat: Sv,
7513
- changeTitle: zv,
7488
+ getChat: wv,
7489
+ getChats: xv,
7490
+ newChat: _v,
7491
+ sendMessage: kv,
7492
+ deleteChat: zv,
7493
+ changeTitle: yv,
7514
7494
  insertMessage: mo,
7515
- uploadFile: Cv,
7516
- deleteFile: Tv,
7495
+ uploadFile: Sv,
7496
+ deleteFile: Cv,
7517
7497
  readChat: Iv,
7518
- getUnreadChats: Ev
7498
+ getUnreadChats: Tv
7519
7499
  };
7520
- class $v {
7500
+ class Ev {
7521
7501
  // Traccia il testo accumulato durante la registrazione
7522
7502
  constructor(e, n) {
7523
7503
  E(this, "mediaRecorder", null);
@@ -7715,18 +7695,18 @@ class Bs {
7715
7695
  }, r.click();
7716
7696
  }
7717
7697
  }
7718
- const Av = (t, e, n) => {
7698
+ const $v = (t, e, n) => {
7719
7699
  const r = t.target;
7720
7700
  e(r.value), n({});
7721
- }, Lv = (t, e) => {
7701
+ }, Av = (t, e) => {
7722
7702
  v(e, !d(e));
7723
- }, Rv = (t, e, n) => {
7703
+ }, Lv = (t, e, n) => {
7724
7704
  v(e, !1), v(n, !0);
7725
7705
  };
7726
- var jv = /* @__PURE__ */ $('<div class="chat-blocked-message svelte-52jnh1"><i class="fa-solid fa-clock-rotate-left svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></div>'), Dv = (t, e, n, r) => {
7706
+ var Rv = /* @__PURE__ */ $('<div class="chat-blocked-message svelte-52jnh1"><i class="fa-solid fa-clock-rotate-left svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></div>'), jv = (t, e, n, r) => {
7727
7707
  !d(e) && !n() && v(r, C(t.target.value));
7728
- }, Fv = /* @__PURE__ */ $('<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>'), Mv = /* @__PURE__ */ $('<option class="svelte-52jnh1">Generatore di Normative</option>'), Pv = /* @__PURE__ */ $('<option class="svelte-52jnh1">Analisi Rischi</option>'), Ov = /* @__PURE__ */ $('<div class="attachment-title noopen-file-button svelte-52jnh1"> </div>'), Uv = (t, e, n, r, i) => e(n(), r(), i()), Nv = /* @__PURE__ */ $('<button class="attachment-title open-file-button svelte-52jnh1"> </button>'), Bv = (t, e, n, r, i) => e(n(), r(), i()), qv = /* @__PURE__ */ $('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-52jnh1"></i></button></div>'), Hv = /* @__PURE__ */ $('<button class="btn send-button stop-recording-btn svelte-52jnh1" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Yv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Synthesizing" disabled><!></button>'), Gv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-52jnh1"></i></button>'), Jv = /* @__PURE__ */ $('<button class="btn send-button stop-stream-btn svelte-52jnh1" aria-label="Stop message"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Wv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Loading" disabled><!></button>'), Zv = /* @__PURE__ */ $('<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>'), Xv = /* @__PURE__ */ $('<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), Vv = /* @__PURE__ */ $('<div class="input svelte-52jnh1"><!></div> <!>', 1);
7729
- const Qv = {
7708
+ }, Dv = /* @__PURE__ */ $('<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>'), Fv = /* @__PURE__ */ $('<option class="svelte-52jnh1">Generatore di Normative</option>'), Mv = /* @__PURE__ */ $('<option class="svelte-52jnh1">Analisi Rischi</option>'), Pv = /* @__PURE__ */ $('<div class="attachment-title noopen-file-button svelte-52jnh1"> </div>'), Ov = (t, e, n, r, i) => e(n(), r(), i()), Uv = /* @__PURE__ */ $('<button class="attachment-title open-file-button svelte-52jnh1"> </button>'), Nv = (t, e, n, r, i) => e(n(), r(), i()), Bv = /* @__PURE__ */ $('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-52jnh1"></i></button></div>'), qv = /* @__PURE__ */ $('<button class="btn send-button stop-recording-btn svelte-52jnh1" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Hv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Synthesizing" disabled><!></button>'), Yv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-52jnh1"></i></button>'), Gv = /* @__PURE__ */ $('<button class="btn send-button stop-stream-btn svelte-52jnh1" aria-label="Stop message"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Jv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Loading" disabled><!></button>'), Wv = /* @__PURE__ */ $('<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>'), Zv = /* @__PURE__ */ $('<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), Xv = /* @__PURE__ */ $('<div class="input svelte-52jnh1"><!></div> <!>', 1);
7709
+ const Vv = {
7730
7710
  hash: "svelte-52jnh1",
7731
7711
  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
7732
7712
  /* Migliore supporto per lo scroll su touch devices */-webkit-overflow-scrolling:touch;}.attachments-container.svelte-52jnh1::-webkit-scrollbar {height:6px;}.attachments-container.svelte-52jnh1::-webkit-scrollbar-track {background:#f7fafc;border-radius:3px;}.attachments-container.svelte-52jnh1::-webkit-scrollbar-thumb {background:#cbd5e0;border-radius:3px;}.attachments-container.svelte-52jnh1::-webkit-scrollbar-thumb:hover {background:#a0aec0;}.attachment-item.svelte-52jnh1 {display:flex;align-items:center;flex-shrink:0;max-width:150px;background:#515b6a;color:white;border-radius:20px;padding:3px 10px 3px 10px;gap:5px;border:none;cursor:default;box-sizing:border-box;}.attachment-item.common.svelte-52jnh1 {background:#e2e8f0;color:black;}.attachment-title.svelte-52jnh1 {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:0.875rem;}.remove-btn.svelte-52jnh1 {flex-shrink:0;width:20px;height:20px;padding:0;display:flex;align-items:center;justify-content:center;font-size:0.75rem;background:transparent;border:none;color:white;cursor:pointer;transition:100ms;}.remove-btn.common.svelte-52jnh1 {color:black;}.remove-btn.svelte-52jnh1:hover {background:rgba(255, 255, 255, 0.3);border-radius:50%;}.remove-btn.common.svelte-52jnh1:hover {background:rgba(0, 0, 0, 0.3);color:black;}.remove-btn.svelte-52jnh1 i:where(.svelte-52jnh1) {margin:0;}.input.svelte-52jnh1 {display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;background:white;border-radius:15px;margin:10px;gap:3px;width:calc(100% - 20px);min-width:0;box-sizing:border-box;}.input.svelte-52jnh1 > .top:where(.svelte-52jnh1) {display:flex;justify-content:center;align-items:center;width:100%;}.input.svelte-52jnh1 > .bottom:where(.svelte-52jnh1) {display:flex;justify-content:center;align-items:center;width:100%;min-width:0;}.send-buttons.svelte-52jnh1 {display:flex;gap:5px;flex-shrink:0;}.send-button.svelte-52jnh1 {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;transition:all 0.2s ease;border:none;font-size:1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.send-button.svelte-52jnh1:hover {transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.send-button.svelte-52jnh1:active {transform:scale(0.95);}.send-button.aks-btn-answer.svelte-52jnh1:hover {background-color:#295dcf;border-color:#295dcf;color:white;}.send-button.svelte-52jnh1:disabled {opacity:0.4;cursor:not-allowed;transform:none;filter:grayscale(0.3);}.send-button.svelte-52jnh1:disabled:hover {transform:none;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);opacity:0.4;}.send-message-btn.svelte-52jnh1 {background-color:#295dcf;color:white;}.send-message-btn.svelte-52jnh1:hover {background-color:#1d4a9e;}.stop-recording-btn.svelte-52jnh1 {background-color:#dc3545;color:white;border-color:#dc3545;}.stop-recording-btn.svelte-52jnh1:hover {background-color:#c82333;border-color:#bd2130;transform:scale(1.05);}.stop-stream-btn.svelte-52jnh1 {background-color:#6c757d;color:white;border-color:#6c757d;}.stop-stream-btn.svelte-52jnh1:hover {background-color:#5a6268;border-color:#545b62;transform:scale(1.05);}\r
@@ -7750,9 +7730,9 @@ const Qv = {
7750
7730
  }`
7751
7731
  };
7752
7732
  function bo(t, e) {
7753
- ge(e, !0), Te(t, Qv);
7754
- 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), _ = J(""), k = J(null), R = J(!1), b = J(!1), w = J(""), I = /* @__PURE__ */ Ve(() => d(_) + d(w)), F = null;
7755
- typeof window < "u" && (F = new $v(s(), {
7733
+ ge(e, !0), Ie(t, Vv);
7734
+ 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), _ = J(""), k = J(null), R = J(!1), b = J(!1), w = J(""), T = /* @__PURE__ */ Ve(() => d(_) + d(w)), F = null;
7735
+ typeof window < "u" && (F = new Ev(s(), {
7756
7736
  onTranscriptUpdate: (z, N) => {
7757
7737
  z && v(_, d(_) + (z + " "));
7758
7738
  },
@@ -7778,12 +7758,12 @@ function bo(t, e) {
7778
7758
  console.error("Upload error:", z);
7779
7759
  }
7780
7760
  }));
7781
- let L = J(!1), T = J(!1), D = J(null), X = /* @__PURE__ */ Ve(() => ur(a()));
7761
+ let L = J(!1), I = J(!1), D = J(null), X = /* @__PURE__ */ Ve(() => ur(a()));
7782
7762
  const ue = 20, Be = 5, Y = 0.5;
7783
- function te(z, N) {
7763
+ function ne(z, N) {
7784
7764
  return z ? a() === "normative" || a() === "suite" ? d(X).name : "" : N;
7785
7765
  }
7786
- function ye() {
7766
+ function ze() {
7787
7767
  v(_, ""), o({}), d(k) && (d(k).style.height = "auto");
7788
7768
  }
7789
7769
  const lt = () => {
@@ -7800,7 +7780,7 @@ function bo(t, e) {
7800
7780
  behavior: "smooth"
7801
7781
  });
7802
7782
  }, Oe = () => {
7803
- i() || !d(_).trim() || (n()(d(_), a()), ye(), d(k) && d(k).blur());
7783
+ i() || !d(_).trim() || (n()(d(_), a()), ze(), d(k) && d(k).blur());
7804
7784
  }, rt = async () => {
7805
7785
  i() || !F || (v(_, ""), v(w, ""), await F.startRecording());
7806
7786
  }, W = () => {
@@ -7835,31 +7815,31 @@ function bo(t, e) {
7835
7815
  }), at(() => () => {
7836
7816
  F && F.cleanup();
7837
7817
  });
7838
- var Ie = Vv(), $e = nt(Ie), et = y($e);
7818
+ var Te = Xv(), $e = nt(Te), et = y($e);
7839
7819
  {
7840
7820
  var be = (z) => {
7841
- var N = jv(), ce = M(y(N), 2), ee = y(ce, !0);
7842
- x(ce), x(N), P((Ee) => ke(ee, Ee), [() => Vd()]), S(z, N);
7843
- }, ze = (z) => {
7844
- var N = Xv(), ce = nt(N), ee = y(ce);
7821
+ var N = Rv(), ce = M(y(N), 2), ee = y(ce, !0);
7822
+ x(ce), x(N), P((Ee) => ye(ee, Ee), [() => Vd()]), S(z, N);
7823
+ }, Se = (z) => {
7824
+ var N = Zv(), ce = nt(N), ee = y(ce);
7845
7825
  Vl(ee), ee.__input = [
7846
- Dv,
7826
+ jv,
7847
7827
  R,
7848
7828
  i,
7849
7829
  _
7850
7830
  ], Rr(ee, (re) => v(k, re), () => d(k)), x(ce);
7851
7831
  var Ee = M(ce, 2), Ae = y(Ee), tt = y(Ae), Ue = y(tt);
7852
- Ue.__click = [Lv, L];
7832
+ Ue.__click = [Av, L];
7853
7833
  var De = y(Ue);
7854
7834
  x(Ue);
7855
7835
  var Ge = M(Ue, 2);
7856
7836
  {
7857
7837
  var ct = (re) => {
7858
- var q = Fv(), Z = y(q);
7838
+ var q = Dv(), Z = y(q);
7859
7839
  Z.__click = [
7860
- Rv,
7840
+ Lv,
7861
7841
  L,
7862
- T
7842
+ I
7863
7843
  ];
7864
7844
  var he = M(y(Z), 2), st = y(he);
7865
7845
  x(he), x(Z);
@@ -7867,9 +7847,9 @@ function bo(t, e) {
7867
7847
  pe.__click = Qe;
7868
7848
  var j = M(y(pe), 2), Ze = y(j, !0);
7869
7849
  x(j), x(pe), x(q), P(
7870
- (Tt, Pt, qt, si, ai, fr, Ht) => {
7871
- yt(Z, `${Tt ?? ""} svelte-52jnh1`), Z.disabled = Pt, ke(st, `${qt ?? ""}
7872
- ${si ?? ""}`), yt(pe, `${ai ?? ""} svelte-52jnh1`), pe.disabled = fr, ke(Ze, Ht);
7850
+ (It, Pt, qt, si, ai, fr, Ht) => {
7851
+ yt(Z, `${It ?? ""} svelte-52jnh1`), Z.disabled = Pt, ye(st, `${qt ?? ""}
7852
+ ${si ?? ""}`), yt(pe, `${ai ?? ""} svelte-52jnh1`), pe.disabled = fr, ye(Ze, Ht);
7873
7853
  },
7874
7854
  [
7875
7855
  () => `dropdown-option ${H.includes(a()) ? "" : "option-disabled"}`,
@@ -7888,7 +7868,7 @@ function bo(t, e) {
7888
7868
  }
7889
7869
  x(tt);
7890
7870
  var ut = M(tt, 2);
7891
- ut.__change = [Av, a, o];
7871
+ ut.__change = [$v, a, o];
7892
7872
  var gt = y(ut);
7893
7873
  gt.value = (gt.__value = "auto") == null ? "" : "auto";
7894
7874
  var _e = M(gt);
@@ -7901,24 +7881,24 @@ function bo(t, e) {
7901
7881
  U.value = (U.__value = "kb") == null ? "" : "kb";
7902
7882
  var G = M(U);
7903
7883
  G.value = (G.__value = "gendoc") == null ? "" : "gendoc";
7904
- var ie = M(G);
7905
- ie.value = (ie.__value = "transcriptions") == null ? "" : "transcriptions";
7906
- var se = M(ie);
7884
+ var se = M(G);
7885
+ se.value = (se.__value = "transcriptions") == null ? "" : "transcriptions";
7886
+ var ie = M(se);
7907
7887
  {
7908
- var ne = (re) => {
7909
- var q = Mv();
7888
+ var te = (re) => {
7889
+ var q = Fv();
7910
7890
  q.value = (q.__value = "audit_handler") == null ? "" : "audit_handler", S(re, q);
7911
7891
  };
7912
- Q(se, (re) => {
7913
- l() >= 40 && re(ne);
7892
+ Q(ie, (re) => {
7893
+ l() >= 40 && re(te);
7914
7894
  });
7915
7895
  }
7916
- var Se = M(se);
7917
- Se.value = (Se.__value = "suite_agent") == null ? "" : "suite_agent";
7918
- var ve = M(Se);
7896
+ var ke = M(ie);
7897
+ ke.value = (ke.__value = "suite_agent") == null ? "" : "suite_agent";
7898
+ var ve = M(ke);
7919
7899
  {
7920
7900
  var de = (re) => {
7921
- var q = Pv();
7901
+ var q = Mv();
7922
7902
  q.value = (q.__value = "risk_analysis_agent") == null ? "" : "risk_analysis_agent", S(re, q);
7923
7903
  };
7924
7904
  Q(ve, (re) => {
@@ -7929,27 +7909,27 @@ function bo(t, e) {
7929
7909
  var Je = M(ut, 2);
7930
7910
  ft(Je, 21, () => Object.entries(o()), vt, (re, q) => {
7931
7911
  let Z = () => d(q)[0], he = () => d(q)[1].title, st = () => d(q)[1].ext_id, pe = () => d(q)[1].gendoc_id, j = () => d(q)[1].storage_id, Ze = () => d(q)[1].isCommon;
7932
- var Tt = qv(), Pt = y(Tt), qt = M(Pt, 2);
7912
+ var It = Bv(), Pt = y(It), qt = M(Pt, 2);
7933
7913
  {
7934
7914
  var si = (Ht) => {
7935
- var Ot = Ov(), Hn = y(Ot, !0);
7915
+ var Ot = Pv(), Hn = y(Ot, !0);
7936
7916
  x(Ot), P(
7937
7917
  (hs) => {
7938
- O(Ot, "title", hs), ke(Hn, hs);
7918
+ O(Ot, "title", hs), ye(Hn, hs);
7939
7919
  },
7940
7920
  [() => he().split(".")[0]]
7941
7921
  ), S(Ht, Ot);
7942
7922
  }, ai = (Ht) => {
7943
- var Ot = Nv();
7923
+ var Ot = Uv();
7944
7924
  Ot.__click = [
7945
- Uv,
7925
+ Ov,
7946
7926
  Ye,
7947
7927
  st,
7948
7928
  he,
7949
7929
  pe
7950
7930
  ];
7951
7931
  var Hn = y(Ot, !0);
7952
- x(Ot), P(() => ke(Hn, he())), S(Ht, Ot);
7932
+ x(Ot), P(() => ye(Hn, he())), S(Ht, Ot);
7953
7933
  };
7954
7934
  Q(qt, (Ht) => {
7955
7935
  Ze() ? Ht(si) : Ht(ai, !1);
@@ -7957,35 +7937,35 @@ function bo(t, e) {
7957
7937
  }
7958
7938
  var fr = M(qt, 2);
7959
7939
  fr.__click = [
7960
- Bv,
7940
+ Nv,
7961
7941
  Ke,
7962
7942
  Z,
7963
7943
  he,
7964
7944
  j
7965
- ], x(Tt), P(
7945
+ ], x(It), P(
7966
7946
  (Ht, Ot, Hn) => {
7967
- yt(Tt, `${`attachment-item ${Ze() ? "common" : ""}` ?? ""} svelte-52jnh1`), O(Tt, "title", Ht), yt(Pt, `${Ot ?? ""} svelte-52jnh1`), O(Pt, "style", Hn), yt(fr, `${`remove-btn ${Ze() ? "common" : ""}` ?? ""} svelte-52jnh1`);
7947
+ yt(It, `${`attachment-item ${Ze() ? "common" : ""}` ?? ""} svelte-52jnh1`), O(It, "title", Ht), yt(Pt, `${Ot ?? ""} svelte-52jnh1`), O(Pt, "style", Hn), yt(fr, `${`remove-btn ${Ze() ? "common" : ""}` ?? ""} svelte-52jnh1`);
7968
7948
  },
7969
7949
  [
7970
- () => te(Ze() ?? !1, he()),
7950
+ () => ne(Ze() ?? !1, he()),
7971
7951
  () => `fa-solid ${pv(he())}`,
7972
7952
  () => he().toLowerCase().endsWith(".tldv") ? "color: #1d1dff" : ""
7973
7953
  ]
7974
- ), S(re, Tt);
7954
+ ), S(re, It);
7975
7955
  }), x(Je), Rr(Je, (re) => v(D, re), () => d(D));
7976
7956
  var Ce = M(Je, 2), fe = y(Ce);
7977
7957
  {
7978
7958
  var We = (re) => {
7979
- var q = Hv();
7959
+ var q = qv();
7980
7960
  q.__click = W, P((Z) => O(q, "title", Z), [() => fu()]), S(re, q);
7981
7961
  }, pt = (re) => {
7982
7962
  var q = St(), Z = nt(q);
7983
7963
  {
7984
7964
  var he = (pe) => {
7985
- var j = Yv(), Ze = y(j);
7965
+ var j = Hv(), Ze = y(j);
7986
7966
  Mr(Ze, { size: "20", color: "white" }), x(j), S(pe, j);
7987
7967
  }, st = (pe) => {
7988
- var j = Gv();
7968
+ var j = Yv();
7989
7969
  j.__click = rt, P(
7990
7970
  (Ze) => {
7991
7971
  O(j, "title", Ze), j.disabled = i();
@@ -8010,7 +7990,7 @@ function bo(t, e) {
8010
7990
  var Xe = M(fe, 2);
8011
7991
  {
8012
7992
  var ot = (re) => {
8013
- var q = Jv();
7993
+ var q = Gv();
8014
7994
  q.__click = function(...Z) {
8015
7995
  var he;
8016
7996
  (he = r()) == null || he.apply(this, Z);
@@ -8019,13 +7999,13 @@ function bo(t, e) {
8019
7999
  var q = St(), Z = nt(q);
8020
8000
  {
8021
8001
  var he = (pe) => {
8022
- var j = Wv(), Ze = y(j);
8002
+ var j = Jv(), Ze = y(j);
8023
8003
  Mr(Ze, { size: "20", color: "white" }), x(j), S(pe, j);
8024
8004
  }, st = (pe) => {
8025
- var j = Zv();
8005
+ var j = Wv();
8026
8006
  j.__click = Oe, P(
8027
- (Ze, Tt) => {
8028
- O(j, "title", Ze), j.disabled = Tt;
8007
+ (Ze, It) => {
8008
+ O(j, "title", Ze), j.disabled = It;
8029
8009
  },
8030
8010
  [
8031
8011
  () => bu(),
@@ -8049,7 +8029,7 @@ function bo(t, e) {
8049
8029
  }
8050
8030
  x(Ce), x(Ae), x(Ee), P(
8051
8031
  (re, q, Z) => {
8052
- O(ee, "placeholder", re), Za(ee, d(I)), ee.readOnly = d(R) || i(), yt(Ue, `${`btn plus-button ${d(L) ? "plus-button-active" : ""}` ?? ""} svelte-52jnh1`), O(Ue, "aria-label", q), O(Ue, "title", q), yt(De, `${`fa-solid ${d(L) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-52jnh1`), ke(Le, Z);
8032
+ O(ee, "placeholder", re), Za(ee, d(T)), ee.readOnly = d(R) || i(), yt(Ue, `${`btn plus-button ${d(L) ? "plus-button-active" : ""}` ?? ""} svelte-52jnh1`), O(Ue, "aria-label", q), O(Ue, "title", q), yt(De, `${`fa-solid ${d(L) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-52jnh1`), ye(Le, Z);
8053
8033
  },
8054
8034
  [
8055
8035
  () => Yc(),
@@ -8062,7 +8042,7 @@ function bo(t, e) {
8062
8042
  };
8063
8043
  Q(et, (z) => {
8064
8044
  var N;
8065
- (N = u()) != null && N.state.blockChat ? z(be) : z(ze, !1);
8045
+ (N = u()) != null && N.state.blockChat ? z(be) : z(Se, !1);
8066
8046
  });
8067
8047
  }
8068
8048
  x($e);
@@ -8077,10 +8057,10 @@ function bo(t, e) {
8077
8057
  o(N);
8078
8058
  },
8079
8059
  get showDocumentSearchModal() {
8080
- return d(T);
8060
+ return d(I);
8081
8061
  },
8082
8062
  set showDocumentSearchModal(N) {
8083
- v(T, C(N));
8063
+ v(I, C(N));
8084
8064
  },
8085
8065
  get modeSelected() {
8086
8066
  return a();
@@ -8091,10 +8071,10 @@ function bo(t, e) {
8091
8071
  });
8092
8072
  };
8093
8073
  Q(oe, (z) => {
8094
- d(T) && z(ae);
8074
+ d(I) && z(ae);
8095
8075
  });
8096
8076
  }
8097
- return Nt(3, $e, () => un, () => ({ duration: 300, delay: 200 })), S(t, Ie), me({
8077
+ return Nt(3, $e, () => un, () => ({ duration: 300, delay: 200 })), S(t, Te), me({
8098
8078
  get sendMessage() {
8099
8079
  return n();
8100
8080
  },
@@ -8242,24 +8222,24 @@ const wo = /^[a-z0-9]+(-[a-z0-9]+)*$/, ti = (t, e, n, r = "") => {
8242
8222
  }), ni = Object.freeze({
8243
8223
  ...xo,
8244
8224
  ...Or
8245
- }), Ti = Object.freeze({
8225
+ }), Ii = Object.freeze({
8246
8226
  ...ni,
8247
8227
  body: "",
8248
8228
  hidden: !1
8249
8229
  });
8250
- function Kv(t, e) {
8230
+ function Qv(t, e) {
8251
8231
  const n = {};
8252
8232
  !t.hFlip != !e.hFlip && (n.hFlip = !0), !t.vFlip != !e.vFlip && (n.vFlip = !0);
8253
8233
  const r = ((t.rotate || 0) + (e.rotate || 0)) % 4;
8254
8234
  return r && (n.rotate = r), n;
8255
8235
  }
8256
8236
  function qs(t, e) {
8257
- const n = Kv(t, e);
8258
- for (const r in Ti)
8237
+ const n = Qv(t, e);
8238
+ for (const r in Ii)
8259
8239
  r in Or ? r in t && !(r in n) && (n[r] = Or[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
8260
8240
  return n;
8261
8241
  }
8262
- function eg(t, e) {
8242
+ function Kv(t, e) {
8263
8243
  const n = t.icons, r = t.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
8264
8244
  function s(a) {
8265
8245
  if (n[a])
@@ -8273,7 +8253,7 @@ function eg(t, e) {
8273
8253
  }
8274
8254
  return Object.keys(n).concat(Object.keys(r)).forEach(s), i;
8275
8255
  }
8276
- function tg(t, e, n) {
8256
+ function eg(t, e, n) {
8277
8257
  const r = t.icons, i = t.aliases || /* @__PURE__ */ Object.create(null);
8278
8258
  let s = {};
8279
8259
  function a(o) {
@@ -8291,14 +8271,14 @@ function _o(t, e) {
8291
8271
  t.not_found instanceof Array && t.not_found.forEach((i) => {
8292
8272
  e(i, null), n.push(i);
8293
8273
  });
8294
- const r = eg(t);
8274
+ const r = Kv(t);
8295
8275
  for (const i in r) {
8296
8276
  const s = r[i];
8297
- s && (e(i, tg(t, i, s)), n.push(i));
8277
+ s && (e(i, eg(t, i, s)), n.push(i));
8298
8278
  }
8299
8279
  return n;
8300
8280
  }
8301
- const ng = {
8281
+ const tg = {
8302
8282
  provider: "",
8303
8283
  aliases: {},
8304
8284
  not_found: {},
@@ -8314,7 +8294,7 @@ function ko(t) {
8314
8294
  if (typeof t != "object" || t === null)
8315
8295
  return null;
8316
8296
  const e = t;
8317
- if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !di(t, ng))
8297
+ if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !di(t, tg))
8318
8298
  return null;
8319
8299
  const n = e.icons;
8320
8300
  for (const i in n) {
@@ -8325,7 +8305,7 @@ function ko(t) {
8325
8305
  typeof s.body != "string" || // Check other props
8326
8306
  !di(
8327
8307
  s,
8328
- Ti
8308
+ Ii
8329
8309
  )
8330
8310
  )
8331
8311
  return null;
@@ -8339,7 +8319,7 @@ function ko(t) {
8339
8319
  typeof a != "string" || !n[a] && !r[a] || // Check other props
8340
8320
  !di(
8341
8321
  s,
8342
- Ti
8322
+ Ii
8343
8323
  )
8344
8324
  )
8345
8325
  return null;
@@ -8347,7 +8327,7 @@ function ko(t) {
8347
8327
  return e;
8348
8328
  }
8349
8329
  const Hs = /* @__PURE__ */ Object.create(null);
8350
- function rg(t, e) {
8330
+ function ng(t, e) {
8351
8331
  return {
8352
8332
  provider: t,
8353
8333
  prefix: e,
@@ -8357,14 +8337,14 @@ function rg(t, e) {
8357
8337
  }
8358
8338
  function Mn(t, e) {
8359
8339
  const n = Hs[t] || (Hs[t] = /* @__PURE__ */ Object.create(null));
8360
- return n[e] || (n[e] = rg(t, e));
8340
+ return n[e] || (n[e] = ng(t, e));
8361
8341
  }
8362
8342
  function yo(t, e) {
8363
8343
  return ko(e) ? _o(e, (n, r) => {
8364
8344
  r ? t.icons[n] = r : t.missing.add(n);
8365
8345
  }) : [];
8366
8346
  }
8367
- function ig(t, e, n) {
8347
+ function rg(t, e, n) {
8368
8348
  try {
8369
8349
  if (typeof n.body == "string")
8370
8350
  return t.icons[e] = { ...n }, !0;
@@ -8376,27 +8356,27 @@ let ir = !1;
8376
8356
  function zo(t) {
8377
8357
  return typeof t == "boolean" && (ir = t), ir;
8378
8358
  }
8379
- function sg(t) {
8359
+ function ig(t) {
8380
8360
  const e = typeof t == "string" ? ti(t, !0, ir) : t;
8381
8361
  if (e) {
8382
8362
  const n = Mn(e.provider, e.prefix), r = e.name;
8383
8363
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
8384
8364
  }
8385
8365
  }
8386
- function ag(t, e) {
8366
+ function sg(t, e) {
8387
8367
  const n = ti(t, !0, ir);
8388
8368
  if (!n)
8389
8369
  return !1;
8390
8370
  const r = Mn(n.provider, n.prefix);
8391
- return e ? ig(r, n.name, e) : (r.missing.add(n.name), !0);
8371
+ return e ? rg(r, n.name, e) : (r.missing.add(n.name), !0);
8392
8372
  }
8393
- function og(t, e) {
8373
+ function ag(t, e) {
8394
8374
  if (typeof t != "object")
8395
8375
  return !1;
8396
8376
  if (typeof e != "string" && (e = t.provider || ""), ir && !e && !t.prefix) {
8397
8377
  let i = !1;
8398
8378
  return ko(t) && (t.prefix = "", _o(t, (s, a) => {
8399
- ag(s, a) && (i = !0);
8379
+ sg(s, a) && (i = !0);
8400
8380
  })), i;
8401
8381
  }
8402
8382
  const n = t.prefix;
@@ -8417,7 +8397,7 @@ const So = Object.freeze({
8417
8397
  ...So,
8418
8398
  // Transformations
8419
8399
  ...Or
8420
- }), lg = /(-?[0-9.]*[0-9]+[0-9.]*)/g, cg = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
8400
+ }), og = /(-?[0-9.]*[0-9]+[0-9.]*)/g, lg = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
8421
8401
  function Ys(t, e, n) {
8422
8402
  if (e === 1)
8423
8403
  return t;
@@ -8425,11 +8405,11 @@ function Ys(t, e, n) {
8425
8405
  return Math.ceil(t * e * n) / n;
8426
8406
  if (typeof t != "string")
8427
8407
  return t;
8428
- const r = t.split(lg);
8408
+ const r = t.split(og);
8429
8409
  if (r === null || !r.length)
8430
8410
  return t;
8431
8411
  const i = [];
8432
- let s = r.shift(), a = cg.test(s);
8412
+ let s = r.shift(), a = lg.test(s);
8433
8413
  for (; ; ) {
8434
8414
  if (a) {
8435
8415
  const o = parseFloat(s);
@@ -8441,7 +8421,7 @@ function Ys(t, e, n) {
8441
8421
  a = !a;
8442
8422
  }
8443
8423
  }
8444
- function ug(t, e = "defs") {
8424
+ function cg(t, e = "defs") {
8445
8425
  let n = "";
8446
8426
  const r = t.indexOf("<" + e);
8447
8427
  for (; r >= 0; ) {
@@ -8458,15 +8438,15 @@ function ug(t, e = "defs") {
8458
8438
  content: t
8459
8439
  };
8460
8440
  }
8461
- function dg(t, e) {
8441
+ function ug(t, e) {
8462
8442
  return t ? "<defs>" + t + "</defs>" + e : e;
8463
8443
  }
8464
- function fg(t, e, n) {
8465
- const r = ug(t);
8466
- return dg(r.defs, e + r.content + n);
8444
+ function dg(t, e, n) {
8445
+ const r = cg(t);
8446
+ return ug(r.defs, e + r.content + n);
8467
8447
  }
8468
- const hg = (t) => t === "unset" || t === "undefined" || t === "none";
8469
- function pg(t, e) {
8448
+ const fg = (t) => t === "unset" || t === "undefined" || t === "none";
8449
+ function hg(t, e) {
8470
8450
  const n = {
8471
8451
  ...ni,
8472
8452
  ...t
@@ -8482,14 +8462,14 @@ function pg(t, e) {
8482
8462
  let s = n.body;
8483
8463
  [n, r].forEach((k) => {
8484
8464
  const R = [], b = k.hFlip, w = k.vFlip;
8485
- let I = k.rotate;
8486
- b ? w ? I += 2 : (R.push(
8465
+ let T = k.rotate;
8466
+ b ? w ? T += 2 : (R.push(
8487
8467
  "translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
8488
8468
  ), R.push("scale(-1 1)"), i.top = i.left = 0) : w && (R.push(
8489
8469
  "translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
8490
8470
  ), R.push("scale(1 -1)"), i.top = i.left = 0);
8491
8471
  let F;
8492
- switch (I < 0 && (I -= Math.floor(I / 4) * 4), I = I % 4, I) {
8472
+ switch (T < 0 && (T -= Math.floor(T / 4) * 4), T = T % 4, T) {
8493
8473
  case 1:
8494
8474
  F = i.height / 2 + i.top, R.unshift(
8495
8475
  "rotate(90 " + F.toString() + " " + F.toString() + ")"
@@ -8506,7 +8486,7 @@ function pg(t, e) {
8506
8486
  );
8507
8487
  break;
8508
8488
  }
8509
- I % 2 === 1 && (i.left !== i.top && (F = i.left, i.left = i.top, i.top = F), i.width !== i.height && (F = i.width, i.width = i.height, i.height = F)), R.length && (s = fg(
8489
+ T % 2 === 1 && (i.left !== i.top && (F = i.left, i.left = i.top, i.top = F), i.width !== i.height && (F = i.width, i.width = i.height, i.height = F)), R.length && (s = dg(
8510
8490
  s,
8511
8491
  '<g transform="' + R.join(" ") + '">',
8512
8492
  "</g>"
@@ -8516,7 +8496,7 @@ function pg(t, e) {
8516
8496
  let u, f;
8517
8497
  a === null ? (f = o === null ? "1em" : o === "auto" ? c : o, u = Ys(f, l / c)) : (u = a === "auto" ? l : a, f = o === null ? Ys(u, c / l) : o === "auto" ? c : o);
8518
8498
  const h = {}, p = (k, R) => {
8519
- hg(R) || (h[k] = R.toString());
8499
+ fg(R) || (h[k] = R.toString());
8520
8500
  };
8521
8501
  p("width", u), p("height", f);
8522
8502
  const _ = [i.left, i.top, l, c];
@@ -8526,18 +8506,18 @@ function pg(t, e) {
8526
8506
  body: s
8527
8507
  };
8528
8508
  }
8529
- const vg = /\sid="(\S+)"/g, gg = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
8530
- let mg = 0;
8531
- function bg(t, e = gg) {
8509
+ const pg = /\sid="(\S+)"/g, vg = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
8510
+ let gg = 0;
8511
+ function mg(t, e = vg) {
8532
8512
  const n = [];
8533
8513
  let r;
8534
- for (; r = vg.exec(t); )
8514
+ for (; r = pg.exec(t); )
8535
8515
  n.push(r[1]);
8536
8516
  if (!n.length)
8537
8517
  return t;
8538
8518
  const i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
8539
8519
  return n.forEach((s) => {
8540
- const a = typeof e == "function" ? e(s) : e + (mg++).toString(), o = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8520
+ const a = typeof e == "function" ? e(s) : e + (gg++).toString(), o = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8541
8521
  t = t.replace(
8542
8522
  // Allowed characters before id: [#;"]
8543
8523
  // Allowed characters after id: [)"], .[a-z]
@@ -8546,12 +8526,12 @@ function bg(t, e = gg) {
8546
8526
  );
8547
8527
  }), t = t.replace(new RegExp(i, "g"), ""), t;
8548
8528
  }
8549
- const Ii = /* @__PURE__ */ Object.create(null);
8550
- function wg(t, e) {
8551
- Ii[t] = e;
8529
+ const Ti = /* @__PURE__ */ Object.create(null);
8530
+ function bg(t, e) {
8531
+ Ti[t] = e;
8552
8532
  }
8553
8533
  function Ei(t) {
8554
- return Ii[t] || Ii[""];
8534
+ return Ti[t] || Ti[""];
8555
8535
  }
8556
8536
  function ts(t) {
8557
8537
  let e;
@@ -8587,14 +8567,14 @@ for (; Yn.length > 0; )
8587
8567
  ns[""] = ts({
8588
8568
  resources: ["https://api.iconify.design"].concat(yr)
8589
8569
  });
8590
- function xg(t, e) {
8570
+ function wg(t, e) {
8591
8571
  const n = ts(e);
8592
8572
  return n === null ? !1 : (ns[t] = n, !0);
8593
8573
  }
8594
8574
  function rs(t) {
8595
8575
  return ns[t];
8596
8576
  }
8597
- const _g = () => {
8577
+ const xg = () => {
8598
8578
  let t;
8599
8579
  try {
8600
8580
  if (t = fetch, typeof t == "function")
@@ -8602,8 +8582,8 @@ const _g = () => {
8602
8582
  } catch {
8603
8583
  }
8604
8584
  };
8605
- let Gs = _g();
8606
- function kg(t, e) {
8585
+ let Gs = xg();
8586
+ function _g(t, e) {
8607
8587
  const n = rs(t);
8608
8588
  if (!n)
8609
8589
  return 0;
@@ -8620,11 +8600,11 @@ function kg(t, e) {
8620
8600
  }
8621
8601
  return r;
8622
8602
  }
8623
- function yg(t) {
8603
+ function kg(t) {
8624
8604
  return t === 404;
8625
8605
  }
8626
- const zg = (t, e, n) => {
8627
- const r = [], i = kg(t, e), s = "icons";
8606
+ const yg = (t, e, n) => {
8607
+ const r = [], i = _g(t, e), s = "icons";
8628
8608
  let a = {
8629
8609
  type: s,
8630
8610
  provider: t,
@@ -8640,7 +8620,7 @@ const zg = (t, e, n) => {
8640
8620
  }, o = l.length), a.icons.push(l);
8641
8621
  }), r.push(a), r;
8642
8622
  };
8643
- function Sg(t) {
8623
+ function zg(t) {
8644
8624
  if (typeof t == "string") {
8645
8625
  const e = rs(t);
8646
8626
  if (e)
@@ -8648,12 +8628,12 @@ function Sg(t) {
8648
8628
  }
8649
8629
  return "/";
8650
8630
  }
8651
- const Cg = (t, e, n) => {
8631
+ const Sg = (t, e, n) => {
8652
8632
  if (!Gs) {
8653
8633
  n("abort", 424);
8654
8634
  return;
8655
8635
  }
8656
- let r = Sg(e.provider);
8636
+ let r = zg(e.provider);
8657
8637
  switch (e.type) {
8658
8638
  case "icons": {
8659
8639
  const s = e.prefix, o = e.icons.join(","), l = new URLSearchParams({
@@ -8676,7 +8656,7 @@ const Cg = (t, e, n) => {
8676
8656
  const a = s.status;
8677
8657
  if (a !== 200) {
8678
8658
  setTimeout(() => {
8679
- n(yg(a) ? "abort" : "next", a);
8659
+ n(kg(a) ? "abort" : "next", a);
8680
8660
  });
8681
8661
  return;
8682
8662
  }
@@ -8694,9 +8674,9 @@ const Cg = (t, e, n) => {
8694
8674
  }).catch(() => {
8695
8675
  n("next", i);
8696
8676
  });
8697
- }, Tg = {
8698
- prepare: zg,
8699
- send: Cg
8677
+ }, Cg = {
8678
+ prepare: yg,
8679
+ send: Sg
8700
8680
  };
8701
8681
  function Ig(t) {
8702
8682
  const e = {
@@ -8725,13 +8705,13 @@ function Ig(t) {
8725
8705
  u.push(f);
8726
8706
  }), e;
8727
8707
  }
8728
- function To(t, e) {
8708
+ function Io(t, e) {
8729
8709
  t.forEach((n) => {
8730
8710
  const r = n.loaderCallbacks;
8731
8711
  r && (n.loaderCallbacks = r.filter((i) => i.id !== e));
8732
8712
  });
8733
8713
  }
8734
- function Eg(t) {
8714
+ function Tg(t) {
8735
8715
  t.pendingCallbacksFlag || (t.pendingCallbacksFlag = !0, setTimeout(() => {
8736
8716
  t.pendingCallbacksFlag = !1;
8737
8717
  const e = t.loaderCallbacks ? t.loaderCallbacks.slice(0) : [];
@@ -8760,7 +8740,7 @@ function Eg(t) {
8760
8740
  else
8761
8741
  return n = !0, !0;
8762
8742
  return !1;
8763
- }), a.pending.length !== o && (n || To([t], s.id), s.callback(
8743
+ }), a.pending.length !== o && (n || Io([t], s.id), s.callback(
8764
8744
  a.loaded.slice(0),
8765
8745
  a.missing.slice(0),
8766
8746
  a.pending.slice(0),
@@ -8769,9 +8749,9 @@ function Eg(t) {
8769
8749
  });
8770
8750
  }));
8771
8751
  }
8772
- let $g = 0;
8773
- function Ag(t, e, n) {
8774
- const r = $g++, i = To.bind(null, n, r);
8752
+ let Eg = 0;
8753
+ function $g(t, e, n) {
8754
+ const r = Eg++, i = Io.bind(null, n, r);
8775
8755
  if (!e.pending.length)
8776
8756
  return i;
8777
8757
  const s = {
@@ -8784,14 +8764,14 @@ function Ag(t, e, n) {
8784
8764
  (a.loaderCallbacks || (a.loaderCallbacks = [])).push(s);
8785
8765
  }), i;
8786
8766
  }
8787
- function Lg(t, e = !0, n = !1) {
8767
+ function Ag(t, e = !0, n = !1) {
8788
8768
  const r = [];
8789
8769
  return t.forEach((i) => {
8790
8770
  const s = typeof i == "string" ? ti(i, e, n) : i;
8791
8771
  s && r.push(s);
8792
8772
  }), r;
8793
8773
  }
8794
- var Rg = {
8774
+ var Lg = {
8795
8775
  resources: [],
8796
8776
  index: 0,
8797
8777
  timeout: 2e3,
@@ -8799,14 +8779,14 @@ var Rg = {
8799
8779
  random: !1,
8800
8780
  dataAfterTimeout: !1
8801
8781
  };
8802
- function jg(t, e, n, r) {
8782
+ function Rg(t, e, n, r) {
8803
8783
  const i = t.resources.length, s = t.random ? Math.floor(Math.random() * i) : t.index;
8804
8784
  let a;
8805
8785
  if (t.random) {
8806
8786
  let L = t.resources.slice(0);
8807
8787
  for (a = []; L.length > 1; ) {
8808
- const T = Math.floor(Math.random() * L.length);
8809
- a.push(L[T]), L = L.slice(0, T).concat(L.slice(T + 1));
8788
+ const I = Math.floor(Math.random() * L.length);
8789
+ a.push(L[I]), L = L.slice(0, I).concat(L.slice(I + 1));
8810
8790
  }
8811
8791
  a = a.concat(L);
8812
8792
  } else
@@ -8822,8 +8802,8 @@ function jg(t, e, n, r) {
8822
8802
  L.status === "pending" && (L.status = "aborted");
8823
8803
  }), h = [];
8824
8804
  }
8825
- function R(L, T) {
8826
- T && (p = []), typeof L == "function" && p.push(L);
8805
+ function R(L, I) {
8806
+ I && (p = []), typeof L == "function" && p.push(L);
8827
8807
  }
8828
8808
  function b() {
8829
8809
  return {
@@ -8841,13 +8821,13 @@ function jg(t, e, n, r) {
8841
8821
  L(void 0, u);
8842
8822
  });
8843
8823
  }
8844
- function I() {
8824
+ function T() {
8845
8825
  h.forEach((L) => {
8846
8826
  L.status === "pending" && (L.status = "aborted");
8847
8827
  }), h = [];
8848
8828
  }
8849
- function F(L, T, D) {
8850
- const X = T !== "success";
8829
+ function F(L, I, D) {
8830
+ const X = I !== "success";
8851
8831
  switch (h = h.filter((ue) => ue !== L), l) {
8852
8832
  case "pending":
8853
8833
  break;
@@ -8858,7 +8838,7 @@ function jg(t, e, n, r) {
8858
8838
  default:
8859
8839
  return;
8860
8840
  }
8861
- if (T === "abort") {
8841
+ if (I === "abort") {
8862
8842
  u = D, w();
8863
8843
  return;
8864
8844
  }
@@ -8866,7 +8846,7 @@ function jg(t, e, n, r) {
8866
8846
  u = D, h.length || (a.length ? A() : w());
8867
8847
  return;
8868
8848
  }
8869
- if (_(), I(), !t.random) {
8849
+ if (_(), T(), !t.random) {
8870
8850
  const ue = t.resources.indexOf(L.resource);
8871
8851
  ue !== -1 && ue !== t.index && (t.index = ue);
8872
8852
  }
@@ -8882,27 +8862,27 @@ function jg(t, e, n, r) {
8882
8862
  if (L === void 0) {
8883
8863
  if (h.length) {
8884
8864
  f = setTimeout(() => {
8885
- _(), l === "pending" && (I(), w());
8865
+ _(), l === "pending" && (T(), w());
8886
8866
  }, t.timeout);
8887
8867
  return;
8888
8868
  }
8889
8869
  w();
8890
8870
  return;
8891
8871
  }
8892
- const T = {
8872
+ const I = {
8893
8873
  status: "pending",
8894
8874
  resource: L,
8895
8875
  callback: (D, X) => {
8896
- F(T, D, X);
8876
+ F(I, D, X);
8897
8877
  }
8898
8878
  };
8899
- h.push(T), c++, f = setTimeout(A, t.rotate), n(L, e, T.callback);
8879
+ h.push(I), c++, f = setTimeout(A, t.rotate), n(L, e, I.callback);
8900
8880
  }
8901
8881
  return setTimeout(A), b;
8902
8882
  }
8903
- function Io(t) {
8883
+ function To(t) {
8904
8884
  const e = {
8905
- ...Rg,
8885
+ ...Lg,
8906
8886
  ...t
8907
8887
  };
8908
8888
  let n = [];
@@ -8910,7 +8890,7 @@ function Io(t) {
8910
8890
  n = n.filter((o) => o().status === "pending");
8911
8891
  }
8912
8892
  function i(o, l, c) {
8913
- const u = jg(
8893
+ const u = Rg(
8914
8894
  e,
8915
8895
  o,
8916
8896
  l,
@@ -8936,12 +8916,12 @@ function Io(t) {
8936
8916
  function Js() {
8937
8917
  }
8938
8918
  const fi = /* @__PURE__ */ Object.create(null);
8939
- function Dg(t) {
8919
+ function jg(t) {
8940
8920
  if (!fi[t]) {
8941
8921
  const e = rs(t);
8942
8922
  if (!e)
8943
8923
  return;
8944
- const n = Io(e), r = {
8924
+ const n = To(e), r = {
8945
8925
  config: e,
8946
8926
  redundancy: n
8947
8927
  };
@@ -8949,19 +8929,19 @@ function Dg(t) {
8949
8929
  }
8950
8930
  return fi[t];
8951
8931
  }
8952
- function Fg(t, e, n) {
8932
+ function Dg(t, e, n) {
8953
8933
  let r, i;
8954
8934
  if (typeof t == "string") {
8955
8935
  const s = Ei(t);
8956
8936
  if (!s)
8957
8937
  return n(void 0, 424), Js;
8958
8938
  i = s.send;
8959
- const a = Dg(t);
8939
+ const a = jg(t);
8960
8940
  a && (r = a.redundancy);
8961
8941
  } else {
8962
8942
  const s = ts(t);
8963
8943
  if (s) {
8964
- r = Io(s);
8944
+ r = To(s);
8965
8945
  const a = t.resources ? t.resources[0] : "", o = Ei(a);
8966
8946
  o && (i = o.send);
8967
8947
  }
@@ -8970,12 +8950,12 @@ function Fg(t, e, n) {
8970
8950
  }
8971
8951
  function Ws() {
8972
8952
  }
8973
- function Mg(t) {
8953
+ function Fg(t) {
8974
8954
  t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
8975
- t.iconsLoaderFlag = !1, Eg(t);
8955
+ t.iconsLoaderFlag = !1, Tg(t);
8976
8956
  }));
8977
8957
  }
8978
- function Pg(t) {
8958
+ function Mg(t) {
8979
8959
  const e = [], n = [];
8980
8960
  return t.forEach((r) => {
8981
8961
  (r.match(wo) ? e : n).push(r);
@@ -9000,7 +8980,7 @@ function Gn(t, e, n) {
9000
8980
  } catch (i) {
9001
8981
  console.error(i);
9002
8982
  }
9003
- r(), Mg(t);
8983
+ r(), Fg(t);
9004
8984
  }
9005
8985
  function Zs(t, e) {
9006
8986
  t instanceof Promise ? t.then((n) => {
@@ -9009,7 +8989,7 @@ function Zs(t, e) {
9009
8989
  e(null);
9010
8990
  }) : e(t);
9011
8991
  }
9012
- function Og(t, e) {
8992
+ function Pg(t, e) {
9013
8993
  t.iconsToLoad ? t.iconsToLoad = t.iconsToLoad.concat(e).sort() : t.iconsToLoad = e, t.iconsQueueFlag || (t.iconsQueueFlag = !0, setTimeout(() => {
9014
8994
  t.iconsQueueFlag = !1;
9015
8995
  const { provider: n, prefix: r } = t, i = t.iconsToLoad;
@@ -9040,7 +9020,7 @@ function Og(t, e) {
9040
9020
  });
9041
9021
  return;
9042
9022
  }
9043
- const { valid: a, invalid: o } = Pg(i);
9023
+ const { valid: a, invalid: o } = Mg(i);
9044
9024
  if (o.length && Gn(t, o, null), !a.length)
9045
9025
  return;
9046
9026
  const l = r.match(wo) ? Ei(n) : null;
@@ -9049,14 +9029,14 @@ function Og(t, e) {
9049
9029
  return;
9050
9030
  }
9051
9031
  l.prepare(n, r, a).forEach((u) => {
9052
- Fg(n, u, (f) => {
9032
+ Dg(n, u, (f) => {
9053
9033
  Gn(t, u.icons, f);
9054
9034
  });
9055
9035
  });
9056
9036
  }));
9057
9037
  }
9058
- const Ug = (t, e) => {
9059
- const n = Lg(t, !0, zo()), r = Ig(n);
9038
+ const Og = (t, e) => {
9039
+ const n = Ag(t, !0, zo()), r = Ig(n);
9060
9040
  if (!r.pending.length) {
9061
9041
  let l = !0;
9062
9042
  return e && setTimeout(() => {
@@ -9084,10 +9064,10 @@ const Ug = (t, e) => {
9084
9064
  p.has(f) || (p.add(f), i[c][u].push(f));
9085
9065
  }), s.forEach((l) => {
9086
9066
  const c = i[l.provider][l.prefix];
9087
- c.length && Og(l, c);
9088
- }), e ? Ag(e, r, s) : Ws;
9067
+ c.length && Pg(l, c);
9068
+ }), e ? $g(e, r, s) : Ws;
9089
9069
  };
9090
- function Ng(t, e) {
9070
+ function Ug(t, e) {
9091
9071
  const n = {
9092
9072
  ...t
9093
9073
  };
@@ -9097,9 +9077,9 @@ function Ng(t, e) {
9097
9077
  }
9098
9078
  return n;
9099
9079
  }
9100
- const Bg = /[\s,]+/;
9101
- function qg(t, e) {
9102
- e.split(Bg).forEach((n) => {
9080
+ const Ng = /[\s,]+/;
9081
+ function Bg(t, e) {
9082
+ e.split(Ng).forEach((n) => {
9103
9083
  switch (n.trim()) {
9104
9084
  case "horizontal":
9105
9085
  t.hFlip = !0;
@@ -9110,7 +9090,7 @@ function qg(t, e) {
9110
9090
  }
9111
9091
  });
9112
9092
  }
9113
- function Hg(t, e = 0) {
9093
+ function qg(t, e = 0) {
9114
9094
  const n = t.replace(/^-?[0-9.]*/, "");
9115
9095
  function r(i) {
9116
9096
  for (; i < 0; )
@@ -9136,30 +9116,30 @@ function Hg(t, e = 0) {
9136
9116
  }
9137
9117
  return e;
9138
9118
  }
9139
- function Yg(t, e) {
9119
+ function Hg(t, e) {
9140
9120
  let n = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
9141
9121
  for (const r in e)
9142
9122
  n += " " + r + '="' + e[r] + '"';
9143
9123
  return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + t + "</svg>";
9144
9124
  }
9145
- function Gg(t) {
9125
+ function Yg(t) {
9146
9126
  return t.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
9147
9127
  }
9148
- function Jg(t) {
9149
- return "data:image/svg+xml," + Gg(t);
9128
+ function Gg(t) {
9129
+ return "data:image/svg+xml," + Yg(t);
9150
9130
  }
9151
- function Wg(t) {
9152
- return 'url("' + Jg(t) + '")';
9131
+ function Jg(t) {
9132
+ return 'url("' + Gg(t) + '")';
9153
9133
  }
9154
9134
  const Xs = {
9155
9135
  ...Co,
9156
9136
  inline: !1
9157
- }, Zg = {
9137
+ }, Wg = {
9158
9138
  xmlns: "http://www.w3.org/2000/svg",
9159
9139
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
9160
9140
  "aria-hidden": !0,
9161
9141
  role: "img"
9162
- }, Xg = {
9142
+ }, Zg = {
9163
9143
  display: "inline-block"
9164
9144
  }, $i = {
9165
9145
  "background-color": "currentColor"
@@ -9179,11 +9159,11 @@ for (const t in Qs) {
9179
9159
  for (const n in Vs)
9180
9160
  e[t + "-" + n] = Vs[n];
9181
9161
  }
9182
- function Vg(t) {
9162
+ function Xg(t) {
9183
9163
  return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
9184
9164
  }
9185
- function Qg(t, e) {
9186
- const n = Ng(Xs, e), r = e.mode || "svg", i = r === "svg" ? { ...Zg } : {};
9165
+ function Vg(t, e) {
9166
+ const n = Ug(Xs, e), r = e.mode || "svg", i = r === "svg" ? { ...Wg } : {};
9187
9167
  t.body.indexOf("xlink:") === -1 && delete i["xmlns:xlink"];
9188
9168
  let s = typeof e.style == "string" ? e.style : "";
9189
9169
  for (let b in e) {
@@ -9202,13 +9182,13 @@ function Qg(t, e) {
9202
9182
  n[b] = w === !0 || w === "true" || w === 1;
9203
9183
  break;
9204
9184
  case "flip":
9205
- typeof w == "string" && qg(n, w);
9185
+ typeof w == "string" && Bg(n, w);
9206
9186
  break;
9207
9187
  case "color":
9208
9188
  s = s + (s.length > 0 && s.trim().slice(-1) !== ";" ? ";" : "") + "color: " + w + "; ";
9209
9189
  break;
9210
9190
  case "rotate":
9211
- typeof w == "string" ? n[b] = Hg(w) : typeof w == "number" && (n[b] = w);
9191
+ typeof w == "string" ? n[b] = qg(w) : typeof w == "number" && (n[b] = w);
9212
9192
  break;
9213
9193
  case "ariaHidden":
9214
9194
  case "aria-hidden":
@@ -9220,27 +9200,27 @@ function Qg(t, e) {
9220
9200
  Xs[b] === void 0 && (i[b] = w);
9221
9201
  }
9222
9202
  }
9223
- const a = pg(t, n), o = a.attributes;
9203
+ const a = hg(t, n), o = a.attributes;
9224
9204
  if (n.inline && (s = "vertical-align: -0.125em; " + s), r === "svg") {
9225
9205
  Object.assign(i, o), s !== "" && (i.style = s);
9226
9206
  let b = 0, w = e.id;
9227
9207
  return typeof w == "string" && (w = w.replace(/-/g, "_")), {
9228
9208
  svg: !0,
9229
9209
  attributes: i,
9230
- body: bg(a.body, w ? () => w + "ID" + b++ : "iconifySvelte")
9210
+ body: mg(a.body, w ? () => w + "ID" + b++ : "iconifySvelte")
9231
9211
  };
9232
9212
  }
9233
- const { body: l, width: c, height: u } = t, f = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), h = Yg(l, {
9213
+ const { body: l, width: c, height: u } = t, f = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), h = Hg(l, {
9234
9214
  ...o,
9235
9215
  width: c + "",
9236
9216
  height: u + ""
9237
9217
  }), _ = {
9238
- "--svg": Wg(h)
9218
+ "--svg": Jg(h)
9239
9219
  }, k = (b) => {
9240
9220
  const w = o[b];
9241
- w && (_[b] = Vg(w));
9221
+ w && (_[b] = Xg(w));
9242
9222
  };
9243
- k("width"), k("height"), Object.assign(_, Xg, f ? $i : Eo);
9223
+ k("width"), k("height"), Object.assign(_, Zg, f ? $i : Eo);
9244
9224
  let R = "";
9245
9225
  for (const b in _)
9246
9226
  R += b + ": " + _[b] + ";";
@@ -9250,7 +9230,7 @@ function Qg(t, e) {
9250
9230
  };
9251
9231
  }
9252
9232
  zo(!0);
9253
- wg("", Tg);
9233
+ bg("", Cg);
9254
9234
  if (typeof document < "u" && typeof window < "u") {
9255
9235
  const t = window;
9256
9236
  if (t.IconifyPreload !== void 0) {
@@ -9260,7 +9240,7 @@ if (typeof document < "u" && typeof window < "u") {
9260
9240
  // Check if item is an object and not null/array
9261
9241
  (typeof r != "object" || r === null || r instanceof Array || // Check for 'icons' and 'prefix'
9262
9242
  typeof r.icons != "object" || typeof r.prefix != "string" || // Add icon set
9263
- !og(r)) && console.error(n);
9243
+ !ag(r)) && console.error(n);
9264
9244
  } catch {
9265
9245
  console.error(n);
9266
9246
  }
@@ -9275,14 +9255,14 @@ if (typeof document < "u" && typeof window < "u") {
9275
9255
  const i = e[n];
9276
9256
  if (typeof i != "object" || !i || i.resources === void 0)
9277
9257
  continue;
9278
- xg(n, i) || console.error(r);
9258
+ wg(n, i) || console.error(r);
9279
9259
  } catch {
9280
9260
  console.error(r);
9281
9261
  }
9282
9262
  }
9283
9263
  }
9284
9264
  }
9285
- function Kg(t, e, n, r, i) {
9265
+ function Qg(t, e, n, r, i) {
9286
9266
  function s() {
9287
9267
  e.loading && (e.loading.abort(), e.loading = null);
9288
9268
  }
@@ -9291,23 +9271,23 @@ function Kg(t, e, n, r, i) {
9291
9271
  let a;
9292
9272
  if (typeof t != "string" || (a = ti(t, !1, !0)) === null)
9293
9273
  return s(), null;
9294
- const o = sg(a);
9274
+ const o = ig(a);
9295
9275
  if (!o)
9296
9276
  return n && (!e.loading || e.loading.name !== t) && (s(), e.name = "", e.loading = {
9297
9277
  name: t,
9298
- abort: Ug([a], r)
9278
+ abort: Og([a], r)
9299
9279
  }), null;
9300
9280
  s(), e.name !== t && (e.name = t, i && !e.destroyed && i(t));
9301
9281
  const l = ["iconify"];
9302
9282
  return a.prefix !== "" && l.push("iconify--" + a.prefix), a.provider !== "" && l.push("iconify--" + a.provider), { data: o, classes: l };
9303
9283
  }
9304
9284
  function Ks(t, e) {
9305
- return t ? Qg({
9285
+ return t ? Vg({
9306
9286
  ...ni,
9307
9287
  ...t
9308
9288
  }, e) : null;
9309
9289
  }
9310
- var em = /* @__PURE__ */ Kl("<svg><!></svg>"), tm = /* @__PURE__ */ $("<span></span>");
9290
+ var Kg = /* @__PURE__ */ Kl("<svg><!></svg>"), em = /* @__PURE__ */ $("<span></span>");
9311
9291
  function fn(t, e) {
9312
9292
  const n = yc(e, [
9313
9293
  "children",
@@ -9340,7 +9320,7 @@ function fn(t, e) {
9340
9320
  () => (d(s), qn(n), d(i), d(r), d(a), Ks),
9341
9321
  () => {
9342
9322
  d(s);
9343
- const h = !!n.ssr || d(i), p = Kg(n.icon, d(r), h, l, o);
9323
+ const h = !!n.ssr || d(i), p = Qg(n.icon, d(r), h, l, o);
9344
9324
  v(a, p ? Ks(p.data, n) : null), d(a) && p.classes && ci(a, d(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + p.classes.join(" "));
9345
9325
  }
9346
9326
  ), lr(), Ct();
@@ -9350,14 +9330,14 @@ function fn(t, e) {
9350
9330
  var p = St(), _ = nt(p);
9351
9331
  {
9352
9332
  var k = (b) => {
9353
- var w = em();
9354
- let I;
9333
+ var w = Kg();
9334
+ let T;
9355
9335
  var F = y(w);
9356
- xr(F, () => d(a).body, !0, !1), x(w), P(() => I = ys(w, I, { ...d(a).attributes }, void 0, !0)), S(b, w);
9336
+ xr(F, () => d(a).body, !0, !1), x(w), P(() => T = ys(w, T, { ...d(a).attributes }, void 0, !0)), S(b, w);
9357
9337
  }, R = (b) => {
9358
- var w = tm();
9359
- let I;
9360
- P(() => I = ys(w, I, { ...d(a).attributes })), S(b, w);
9338
+ var w = em();
9339
+ let T;
9340
+ P(() => T = ys(w, T, { ...d(a).attributes })), S(b, w);
9361
9341
  };
9362
9342
  Q(_, (b) => {
9363
9343
  d(a).svg ? b(k) : b(R, !1);
@@ -9459,26 +9439,26 @@ const bt = {
9459
9439
  fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
9460
9440
  headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
9461
9441
  htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
9462
- }, nm = /^(?:[ \t]*(?:\n|$))+/, rm = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, im = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, dr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, sm = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ss = /(?:[*+-]|\d{1,9}[.)])/, Ao = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Lo = Pe(Ao).replace(/bull/g, ss).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), am = Pe(Ao).replace(/bull/g, ss).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), as = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, om = /^[^\n]+/, os = /(?!\s*\])(?:\\.|[^\[\]\\])+/, lm = Pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", os).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), cm = Pe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ss).getRegex(), ri = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", ls = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, um = Pe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", ls).replace("tag", ri).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ro = Pe(as).replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ri).getRegex(), dm = Pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ro).getRegex(), cs = {
9463
- blockquote: dm,
9464
- code: rm,
9465
- def: lm,
9466
- fences: im,
9467
- heading: sm,
9442
+ }, tm = /^(?:[ \t]*(?:\n|$))+/, nm = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, rm = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, dr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, im = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ss = /(?:[*+-]|\d{1,9}[.)])/, Ao = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Lo = Pe(Ao).replace(/bull/g, ss).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), sm = Pe(Ao).replace(/bull/g, ss).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), as = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, am = /^[^\n]+/, os = /(?!\s*\])(?:\\.|[^\[\]\\])+/, om = Pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", os).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), lm = Pe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ss).getRegex(), ri = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", ls = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, cm = Pe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", ls).replace("tag", ri).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ro = Pe(as).replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ri).getRegex(), um = Pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ro).getRegex(), cs = {
9443
+ blockquote: um,
9444
+ code: nm,
9445
+ def: om,
9446
+ fences: rm,
9447
+ heading: im,
9468
9448
  hr: dr,
9469
- html: um,
9449
+ html: cm,
9470
9450
  lheading: Lo,
9471
- list: cm,
9472
- newline: nm,
9451
+ list: lm,
9452
+ newline: tm,
9473
9453
  paragraph: Ro,
9474
9454
  table: Vn,
9475
- text: om
9476
- }, ea = Pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ri).getRegex(), fm = {
9455
+ text: am
9456
+ }, ea = Pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ri).getRegex(), dm = {
9477
9457
  ...cs,
9478
- lheading: am,
9458
+ lheading: sm,
9479
9459
  table: ea,
9480
9460
  paragraph: Pe(as).replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ea).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ri).getRegex()
9481
- }, hm = {
9461
+ }, fm = {
9482
9462
  ...cs,
9483
9463
  html: Pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", ls).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
9484
9464
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
@@ -9488,59 +9468,59 @@ const bt = {
9488
9468
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
9489
9469
  paragraph: Pe(as).replace("hr", dr).replace("heading", ` *#{1,6} *[^
9490
9470
  ]`).replace("lheading", Lo).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
9491
- }, pm = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, vm = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, jo = /^( {2,}|\\)\n(?!\s*$)/, gm = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ii = /[\p{P}\p{S}]/u, us = /[\s\p{P}\p{S}]/u, Do = /[^\s\p{P}\p{S}]/u, mm = Pe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, us).getRegex(), Fo = /(?!~)[\p{P}\p{S}]/u, bm = /(?!~)[\s\p{P}\p{S}]/u, wm = /(?:[^\s\p{P}\p{S}]|~)/u, xm = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Mo = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, _m = Pe(Mo, "u").replace(/punct/g, ii).getRegex(), km = Pe(Mo, "u").replace(/punct/g, Fo).getRegex(), Po = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ym = Pe(Po, "gu").replace(/notPunctSpace/g, Do).replace(/punctSpace/g, us).replace(/punct/g, ii).getRegex(), zm = Pe(Po, "gu").replace(/notPunctSpace/g, wm).replace(/punctSpace/g, bm).replace(/punct/g, Fo).getRegex(), Sm = Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Do).replace(/punctSpace/g, us).replace(/punct/g, ii).getRegex(), Cm = Pe(/\\(punct)/, "gu").replace(/punct/g, ii).getRegex(), Tm = Pe(/^<(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(), Im = Pe(ls).replace("(?:-->|$)", "-->").getRegex(), Em = Pe("^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", Im).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ur = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, $m = Pe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ur).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Oo = Pe(/^!?\[(label)\]\[(ref)\]/).replace("label", Ur).replace("ref", os).getRegex(), Uo = Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref", os).getRegex(), Am = Pe("reflink|nolink(?!\\()", "g").replace("reflink", Oo).replace("nolink", Uo).getRegex(), ds = {
9471
+ }, hm = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, pm = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, jo = /^( {2,}|\\)\n(?!\s*$)/, vm = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ii = /[\p{P}\p{S}]/u, us = /[\s\p{P}\p{S}]/u, Do = /[^\s\p{P}\p{S}]/u, gm = Pe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, us).getRegex(), Fo = /(?!~)[\p{P}\p{S}]/u, mm = /(?!~)[\s\p{P}\p{S}]/u, bm = /(?:[^\s\p{P}\p{S}]|~)/u, wm = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Mo = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, xm = Pe(Mo, "u").replace(/punct/g, ii).getRegex(), _m = Pe(Mo, "u").replace(/punct/g, Fo).getRegex(), Po = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", km = Pe(Po, "gu").replace(/notPunctSpace/g, Do).replace(/punctSpace/g, us).replace(/punct/g, ii).getRegex(), ym = Pe(Po, "gu").replace(/notPunctSpace/g, bm).replace(/punctSpace/g, mm).replace(/punct/g, Fo).getRegex(), zm = Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Do).replace(/punctSpace/g, us).replace(/punct/g, ii).getRegex(), Sm = Pe(/\\(punct)/, "gu").replace(/punct/g, ii).getRegex(), Cm = Pe(/^<(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(), Im = Pe(ls).replace("(?:-->|$)", "-->").getRegex(), Tm = Pe("^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", Im).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ur = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Em = Pe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ur).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Oo = Pe(/^!?\[(label)\]\[(ref)\]/).replace("label", Ur).replace("ref", os).getRegex(), Uo = Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref", os).getRegex(), $m = Pe("reflink|nolink(?!\\()", "g").replace("reflink", Oo).replace("nolink", Uo).getRegex(), ds = {
9492
9472
  _backpedal: Vn,
9493
9473
  // only used for GFM url
9494
- anyPunctuation: Cm,
9495
- autolink: Tm,
9496
- blockSkip: xm,
9474
+ anyPunctuation: Sm,
9475
+ autolink: Cm,
9476
+ blockSkip: wm,
9497
9477
  br: jo,
9498
- code: vm,
9478
+ code: pm,
9499
9479
  del: Vn,
9500
- emStrongLDelim: _m,
9501
- emStrongRDelimAst: ym,
9502
- emStrongRDelimUnd: Sm,
9503
- escape: pm,
9504
- link: $m,
9480
+ emStrongLDelim: xm,
9481
+ emStrongRDelimAst: km,
9482
+ emStrongRDelimUnd: zm,
9483
+ escape: hm,
9484
+ link: Em,
9505
9485
  nolink: Uo,
9506
- punctuation: mm,
9486
+ punctuation: gm,
9507
9487
  reflink: Oo,
9508
- reflinkSearch: Am,
9509
- tag: Em,
9510
- text: gm,
9488
+ reflinkSearch: $m,
9489
+ tag: Tm,
9490
+ text: vm,
9511
9491
  url: Vn
9512
- }, Lm = {
9492
+ }, Am = {
9513
9493
  ...ds,
9514
9494
  link: Pe(/^!?\[(label)\]\((.*?)\)/).replace("label", Ur).getRegex(),
9515
9495
  reflink: Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ur).getRegex()
9516
9496
  }, Ai = {
9517
9497
  ...ds,
9518
- emStrongRDelimAst: zm,
9519
- emStrongLDelim: km,
9498
+ emStrongRDelimAst: ym,
9499
+ emStrongLDelim: _m,
9520
9500
  url: Pe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
9521
9501
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
9522
9502
  del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
9523
9503
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
9524
- }, Rm = {
9504
+ }, Lm = {
9525
9505
  ...Ai,
9526
9506
  br: Pe(jo).replace("{2,}", "*").getRegex(),
9527
9507
  text: Pe(Ai.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
9528
9508
  }, mr = {
9529
9509
  normal: cs,
9530
- gfm: fm,
9531
- pedantic: hm
9510
+ gfm: dm,
9511
+ pedantic: fm
9532
9512
  }, Jn = {
9533
9513
  normal: ds,
9534
9514
  gfm: Ai,
9535
- breaks: Rm,
9536
- pedantic: Lm
9537
- }, jm = {
9515
+ breaks: Lm,
9516
+ pedantic: Am
9517
+ }, Rm = {
9538
9518
  "&": "&amp;",
9539
9519
  "<": "&lt;",
9540
9520
  ">": "&gt;",
9541
9521
  '"': "&quot;",
9542
9522
  "'": "&#39;"
9543
- }, ta = (t) => jm[t];
9523
+ }, ta = (t) => Rm[t];
9544
9524
  function Yt(t, e) {
9545
9525
  if (e) {
9546
9526
  if (bt.escapeTest.test(t))
@@ -9585,7 +9565,7 @@ function Wn(t, e, n) {
9585
9565
  i++;
9586
9566
  return t.slice(0, r - i);
9587
9567
  }
9588
- function Dm(t, e) {
9568
+ function jm(t, e) {
9589
9569
  if (t.indexOf(e[1]) === -1)
9590
9570
  return -1;
9591
9571
  let n = 0;
@@ -9620,7 +9600,7 @@ function ia(t, e, n, r, i) {
9620
9600
  text: o
9621
9601
  };
9622
9602
  }
9623
- function Fm(t, e, n) {
9603
+ function Dm(t, e, n) {
9624
9604
  const r = t.match(n.other.indentCodeCompensation);
9625
9605
  if (r === null)
9626
9606
  return e;
@@ -9668,7 +9648,7 @@ class Nr {
9668
9648
  fences(e) {
9669
9649
  const n = this.rules.block.fences.exec(e);
9670
9650
  if (n) {
9671
- const r = n[0], i = Fm(r, n[3] || "", this.rules);
9651
+ const r = n[0], i = Dm(r, n[3] || "", this.rules);
9672
9652
  return {
9673
9653
  type: "code",
9674
9654
  raw: r,
@@ -9782,24 +9762,24 @@ ${f}` : f;
9782
9762
  `, 1)[0], _ = !h.trim(), k = 0;
9783
9763
  if (this.options.pedantic ? (k = 2, f = h.trimStart()) : _ ? k = n[1].length + 1 : (k = n[2].search(this.rules.other.nonSpaceChar), k = k > 4 ? 1 : k, f = h.slice(k), k += n[1].length), _ && this.rules.other.blankLine.test(p) && (u += p + `
9784
9764
  `, e = e.substring(p.length + 1), c = !0), !c) {
9785
- const w = this.rules.other.nextBulletRegex(k), I = this.rules.other.hrRegex(k), F = this.rules.other.fencesBeginRegex(k), A = this.rules.other.headingBeginRegex(k), L = this.rules.other.htmlBeginRegex(k);
9765
+ const w = this.rules.other.nextBulletRegex(k), T = this.rules.other.hrRegex(k), F = this.rules.other.fencesBeginRegex(k), A = this.rules.other.headingBeginRegex(k), L = this.rules.other.htmlBeginRegex(k);
9786
9766
  for (; e; ) {
9787
- const T = e.split(`
9767
+ const I = e.split(`
9788
9768
  `, 1)[0];
9789
9769
  let D;
9790
- if (p = T, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), D = p) : D = p.replace(this.rules.other.tabCharGlobal, " "), F.test(p) || A.test(p) || L.test(p) || w.test(p) || I.test(p))
9770
+ if (p = I, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), D = p) : D = p.replace(this.rules.other.tabCharGlobal, " "), F.test(p) || A.test(p) || L.test(p) || w.test(p) || T.test(p))
9791
9771
  break;
9792
9772
  if (D.search(this.rules.other.nonSpaceChar) >= k || !p.trim())
9793
9773
  f += `
9794
9774
  ` + D.slice(k);
9795
9775
  else {
9796
- if (_ || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(h) || A.test(h) || I.test(h))
9776
+ if (_ || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(h) || A.test(h) || T.test(h))
9797
9777
  break;
9798
9778
  f += `
9799
9779
  ` + p;
9800
9780
  }
9801
- !_ && !p.trim() && (_ = !0), u += T + `
9802
- `, e = e.substring(T.length + 1), h = D.slice(k);
9781
+ !_ && !p.trim() && (_ = !0), u += I + `
9782
+ `, e = e.substring(I.length + 1), h = D.slice(k);
9803
9783
  }
9804
9784
  }
9805
9785
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
@@ -9954,7 +9934,7 @@ ${f}` : f;
9954
9934
  if ((r.length - a.length) % 2 === 0)
9955
9935
  return;
9956
9936
  } else {
9957
- const a = Dm(n[2], "()");
9937
+ const a = jm(n[2], "()");
9958
9938
  if (a > -1) {
9959
9939
  const l = (n[0].indexOf("!") === 0 ? 5 : 4) + n[1].length + a;
9960
9940
  n[2] = n[2].substring(0, a), n[0] = n[0].substring(0, l).trim(), n[3] = "";
@@ -10734,7 +10714,7 @@ E(Qn, "passThroughHooks", /* @__PURE__ */ new Set([
10734
10714
  "postprocess",
10735
10715
  "processAllTokens"
10736
10716
  ]));
10737
- class Mm {
10717
+ class Fm {
10738
10718
  constructor(...e) {
10739
10719
  E(this, "defaults", is());
10740
10720
  E(this, "options", this.setOptions);
@@ -10907,7 +10887,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10907
10887
  };
10908
10888
  }
10909
10889
  }
10910
- const zn = new Mm();
10890
+ const zn = new Fm();
10911
10891
  function Fe(t, e) {
10912
10892
  return zn.parse(t, e);
10913
10893
  }
@@ -10939,7 +10919,7 @@ Fe.walkTokens;
10939
10919
  Fe.parseInline;
10940
10920
  jt.parse;
10941
10921
  Rt.lex;
10942
- const Pm = async (t, e, n) => {
10922
+ const Mm = async (t, e, n) => {
10943
10923
  const r = Zp(e()), i = Xp(e());
10944
10924
  try {
10945
10925
  await Vp(r, i), n();
@@ -10952,13 +10932,13 @@ const Pm = async (t, e, n) => {
10952
10932
  }
10953
10933
  }
10954
10934
  };
10955
- var Om = (t, e, n) => e(d(n)), Um = /* @__PURE__ */ $('<i class="fa-solid fa-spinner fa-spin svelte-1tn93gt"></i>'), Nm = /* @__PURE__ */ $("<i></i>"), Bm = /* @__PURE__ */ $('<div class="document-path svelte-1tn93gt"> </div>'), qm = /* @__PURE__ */ $('<button><!> <div class="document-info svelte-1tn93gt"><span class="document-title svelte-1tn93gt"> </span> <!></div></button>'), Hm = /* @__PURE__ */ $('<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>'), Ym = /* @__PURE__ */ $('<div class="sources-container svelte-1tn93gt"><!></div>'), Gm = /* @__PURE__ */ $('<div class="message-attachments"><!></div>');
10956
- const Jm = {
10935
+ var Pm = (t, e, n) => e(d(n)), Om = /* @__PURE__ */ $('<i class="fa-solid fa-spinner fa-spin svelte-1tn93gt"></i>'), Um = /* @__PURE__ */ $("<i></i>"), Nm = /* @__PURE__ */ $('<div class="document-path svelte-1tn93gt"> </div>'), Bm = /* @__PURE__ */ $('<button><!> <div class="document-info svelte-1tn93gt"><span class="document-title svelte-1tn93gt"> </span> <!></div></button>'), qm = /* @__PURE__ */ $('<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>'), Hm = /* @__PURE__ */ $('<div class="sources-container svelte-1tn93gt"><!></div>'), Ym = /* @__PURE__ */ $('<div class="message-attachments"><!></div>');
10936
+ const Gm = {
10957
10937
  hash: "svelte-1tn93gt",
10958
10938
  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;}"
10959
10939
  };
10960
10940
  function Li(t, e) {
10961
- ge(e, !0), Te(t, Jm);
10941
+ ge(e, !0), Ie(t, Gm);
10962
10942
  let n = m(e, "isDropdownOpen", 15), r = m(e, "attachmentList", 15), i = m(e, "userLevel", 15), s = J(C({})), a = J(C(ui()));
10963
10943
  const o = (b, w) => {
10964
10944
  d(s)[b] = w;
@@ -10969,25 +10949,25 @@ function Li(t, e) {
10969
10949
  },
10970
10950
  2e3
10971
10951
  );
10972
- }, c = async (b, w, I) => {
10973
- await Et.getDocumentPage(b, w, I);
10974
- }, u = async (b, w, I) => {
10952
+ }, c = async (b, w, T) => {
10953
+ await Et.getDocumentPage(b, w, T);
10954
+ }, u = async (b, w, T) => {
10975
10955
  if (!Jp(i(), w)) {
10976
10956
  console.error("L'utente non ha il permesso di scaricare PDF normativi.");
10977
10957
  return;
10978
10958
  }
10979
- const F = gr(b, I);
10959
+ const F = gr(b, T);
10980
10960
  o(F, !0);
10981
10961
  try {
10982
- const A = await Et.downloadForgePdf(b, w), L = window.URL.createObjectURL(A), T = document.createElement("a");
10983
- T.href = L, T.download = `${I.split(".")[0]}.pdf`, document.body.appendChild(T), T.click(), T.remove(), window.URL.revokeObjectURL(L);
10962
+ const A = await Et.downloadForgePdf(b, w), L = window.URL.createObjectURL(A), I = document.createElement("a");
10963
+ I.href = L, I.download = `${T.split(".")[0]}.pdf`, document.body.appendChild(I), I.click(), I.remove(), window.URL.revokeObjectURL(L);
10984
10964
  } catch (A) {
10985
10965
  console.error("Errore durante il download del PDF:", A);
10986
10966
  } finally {
10987
10967
  o(F, !1);
10988
10968
  }
10989
- }, f = async (b, w, I) => {
10990
- const F = gr(b, I);
10969
+ }, f = async (b, w, T) => {
10970
+ const F = gr(b, T);
10991
10971
  o(F, !0);
10992
10972
  try {
10993
10973
  const A = await Et.getForgeSingle(b, w), L = A.additionalReference || A.url;
@@ -10998,53 +10978,53 @@ function Li(t, e) {
10998
10978
  o(F, !1);
10999
10979
  }
11000
10980
  }, h = async (b, w) => {
11001
- const I = gr(b, w);
11002
- o(I, !0);
10981
+ const T = gr(b, w);
10982
+ o(T, !0);
11003
10983
  try {
11004
10984
  const F = await Et.getMeetingSingle(b);
11005
10985
  window.open(F.meetingUrl, "_blank");
11006
10986
  } catch (F) {
11007
10987
  console.error("Errore durante il recupero del link TLDV:", F);
11008
10988
  } finally {
11009
- o(I, !1);
10989
+ o(T, !1);
11010
10990
  }
11011
10991
  }, p = async (b) => {
11012
10992
  const {
11013
10993
  external_id: w,
11014
- filename: I,
10994
+ filename: T,
11015
10995
  gendoc_id: F,
11016
10996
  isCommon: A,
11017
10997
  commonType: L
11018
10998
  } = b;
11019
10999
  if (!A) {
11020
- await c(w, I, F);
11000
+ await c(w, T, F);
11021
11001
  return;
11022
11002
  }
11023
11003
  if (L === "trascrizione") {
11024
- await h(w, I);
11004
+ await h(w, T);
11025
11005
  return;
11026
11006
  }
11027
- const T = fo(I);
11028
- !Bp(I) || T === "mp3" ? await f(w, L || "", I) : await u(w, L || "", I);
11007
+ const I = fo(T);
11008
+ !Bp(T) || I === "mp3" ? await f(w, L || "", T) : await u(w, L || "", T);
11029
11009
  };
11030
- var _ = Gm(), k = y(_);
11010
+ var _ = Ym(), k = y(_);
11031
11011
  {
11032
11012
  var R = (b) => {
11033
- var w = Ym(), I = y(w);
11013
+ var w = Hm(), T = y(w);
11034
11014
  {
11035
11015
  var F = (A) => {
11036
- var L = Hm(), T = M(y(L), 2);
11037
- ft(T, 21, r, vt, (Y, te) => {
11038
- var ye = qm();
11039
- const lt = /* @__PURE__ */ Ve(() => gr(d(te).external_id, d(te).filename)), He = /* @__PURE__ */ Ve(() => Gp(d(te))), Oe = /* @__PURE__ */ Ve(() => d(s)[d(lt)]), rt = /* @__PURE__ */ Ve(() => Wp(d(te), i())), W = /* @__PURE__ */ Ve(() => ho(d(te))), Qe = /* @__PURE__ */ Ve(() => po(d(te))), Ke = /* @__PURE__ */ Ve(() => d(te).isCommon ? ur(d(te).commonType).name : js());
11040
- ye.__click = [Om, p, te];
11041
- var Ye = y(ye);
11016
+ var L = qm(), I = M(y(L), 2);
11017
+ ft(I, 21, r, vt, (Y, ne) => {
11018
+ var ze = Bm();
11019
+ const lt = /* @__PURE__ */ Ve(() => gr(d(ne).external_id, d(ne).filename)), He = /* @__PURE__ */ Ve(() => Gp(d(ne))), Oe = /* @__PURE__ */ Ve(() => d(s)[d(lt)]), rt = /* @__PURE__ */ Ve(() => Wp(d(ne), i())), W = /* @__PURE__ */ Ve(() => ho(d(ne))), Qe = /* @__PURE__ */ Ve(() => po(d(ne))), Ke = /* @__PURE__ */ Ve(() => d(ne).isCommon ? ur(d(ne).commonType).name : js());
11020
+ ze.__click = [Pm, p, ne];
11021
+ var Ye = y(ze);
11042
11022
  {
11043
11023
  var H = (oe) => {
11044
- var ae = Um();
11024
+ var ae = Om();
11045
11025
  S(oe, ae);
11046
11026
  }, V = (oe) => {
11047
- var ae = Nm();
11027
+ var ae = Um();
11048
11028
  P(() => {
11049
11029
  yt(ae, Gi(d(He).icon), "svelte-1tn93gt"), O(ae, "style", d(He).color ? `color: ${d(He).color}` : "");
11050
11030
  }), S(oe, ae);
@@ -11053,40 +11033,40 @@ function Li(t, e) {
11053
11033
  d(Oe) ? oe(H) : oe(V, !1);
11054
11034
  });
11055
11035
  }
11056
- var Ie = M(Ye, 2), $e = y(Ie), et = y($e, !0);
11036
+ var Te = M(Ye, 2), $e = y(Te), et = y($e, !0);
11057
11037
  x($e);
11058
11038
  var be = M($e, 2);
11059
11039
  {
11060
- var ze = (oe) => {
11061
- var ae = Bm(), z = y(ae, !0);
11062
- x(ae), P(() => ke(z, d(Qe))), S(oe, ae);
11040
+ var Se = (oe) => {
11041
+ var ae = Nm(), z = y(ae, !0);
11042
+ x(ae), P(() => ye(z, d(Qe))), S(oe, ae);
11063
11043
  };
11064
11044
  Q(be, (oe) => {
11065
- d(te).isCommon || oe(ze);
11045
+ d(ne).isCommon || oe(Se);
11066
11046
  });
11067
11047
  }
11068
- x(Ie), x(ye), P(
11048
+ x(Te), x(ze), P(
11069
11049
  (oe) => {
11070
- yt(ye, `${`dropdown-option ${d(rt) ? "common" : ""}` ?? ""} svelte-1tn93gt`), O(ye, "aria-label", oe), O(ye, "title", d(Ke)), ye.disabled = d(Oe), ke(et, d(W));
11050
+ yt(ze, `${`dropdown-option ${d(rt) ? "common" : ""}` ?? ""} svelte-1tn93gt`), O(ze, "aria-label", oe), O(ze, "title", d(Ke)), ze.disabled = d(Oe), ye(et, d(W));
11071
11051
  },
11072
11052
  [() => js()]
11073
- ), S(Y, ye);
11074
- }), x(T);
11075
- var D = M(T, 2), X = y(D);
11053
+ ), S(Y, ze);
11054
+ }), x(I);
11055
+ var D = M(I, 2), X = y(D);
11076
11056
  X.__click = [
11077
- Pm,
11057
+ Mm,
11078
11058
  r,
11079
11059
  l
11080
11060
  ];
11081
11061
  var ue = M(y(X), 2), Be = y(ue, !0);
11082
11062
  x(ue), x(X), x(D), x(L), P(
11083
11063
  (Y) => {
11084
- O(X, "aria-label", Y), O(X, "title", Y), ke(Be, d(a));
11064
+ O(X, "aria-label", Y), O(X, "title", Y), ye(Be, d(a));
11085
11065
  },
11086
11066
  [() => ui()]
11087
11067
  ), Nt(3, L, () => Ec, () => ({ duration: 300 })), S(A, L);
11088
11068
  };
11089
- Q(I, (A) => {
11069
+ Q(T, (A) => {
11090
11070
  n() && A(F);
11091
11071
  });
11092
11072
  }
@@ -11129,11 +11109,11 @@ xe(
11129
11109
  [],
11130
11110
  !0
11131
11111
  );
11132
- const Wm = (t, e, n) => {
11112
+ const Jm = (t, e, n) => {
11133
11113
  d(e).pause(), v(n, !1);
11134
11114
  };
11135
- var Zm = /* @__PURE__ */ $('<div class="user-attachment-badge svelte-x6wvf7"><i class="fa-solid fa-paperclip svelte-x6wvf7"></i> <span class="svelte-x6wvf7"> </span></div>'), Xm = /* @__PURE__ */ $('<div class="user-attachments-list svelte-x6wvf7"></div>'), Vm = /* @__PURE__ */ $('<i class="fa-solid fa-check"></i>'), Qm = /* @__PURE__ */ $('<i class="fa-regular fa-copy"></i>'), Km = /* @__PURE__ */ $('<div class="message-column message-column-sent svelte-x6wvf7"><div class="message-sent svelte-x6wvf7"><div class="message-content svelte-x6wvf7"><!></div></div> <div style="display: flex; justify-content: flex-end;"><button aria-label="Copy message" class="copy-button svelte-x6wvf7"><!></button></div></div>'), e0 = /* @__PURE__ */ $('<div class="agent-badge svelte-x6wvf7" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-x6wvf7"></i> <span> </span></div>'), t0 = /* @__PURE__ */ $('<button class="sources-toggle-btn svelte-x6wvf7" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), n0 = /* @__PURE__ */ $('<i class="fa-solid fa-check"></i>'), r0 = /* @__PURE__ */ $('<i class="fa-regular fa-copy"></i>'), i0 = /* @__PURE__ */ $('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-x6wvf7"><i class="fa-solid fa-pause"></i></button>'), s0 = (t, e, n) => e(d(n)), a0 = /* @__PURE__ */ $('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-x6wvf7"><i class="fa-solid fa-play"></i></button>'), o0 = /* @__PURE__ */ $('<div class="message-column svelte-x6wvf7"><div class="message-received svelte-x6wvf7"><div class="message-content svelte-x6wvf7"><!></div></div> <div class="attachments-container svelte-x6wvf7"><!> <div class="d-flex gap-1" style="width: 100%; align-items: flex-start; justify-content: flex-start;"><!> <!> <button aria-label="Copy message" class="copy-button svelte-x6wvf7"><!></button></div></div></div> <!>', 1), l0 = /* @__PURE__ */ $('<div><!> <div class="w-100 d-flex message-plus-play svelte-x6wvf7"><!></div></div>'), c0 = /* @__PURE__ */ $('<div class="streaming-spinner svelte-x6wvf7"><!></div>'), u0 = /* @__PURE__ */ $('<div class="w-100 d-flex message-plus-play svelte-x6wvf7" style="justify-content: flex-start; align-items: center; gap: 5px;"><div class="message-column svelte-x6wvf7"><div class="message-received svelte-x6wvf7"><div class="message-content svelte-x6wvf7"><!></div></div> <div class="attachments-container svelte-x6wvf7"><!> <div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-x6wvf7" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-x6wvf7"></i> <span> </span></div></div></div></div> <!></div>'), d0 = /* @__PURE__ */ $('<div class="loading svelte-x6wvf7"><!></div>'), f0 = /* @__PURE__ */ $('<div class="alert alert-danger"> </div>'), h0 = /* @__PURE__ */ $('<div class="messages-wrapper svelte-x6wvf7"><div class="empty-placeholder svelte-x6wvf7"></div> <!> <!> <!></div>'), p0 = /* @__PURE__ */ $('<div class="loading-placeholder svelte-x6wvf7"><!></div>'), v0 = /* @__PURE__ */ $('<div class="chat-body svelte-x6wvf7"><!> <!></div>');
11136
- const g0 = {
11115
+ var Wm = /* @__PURE__ */ $('<div class="user-attachment-badge svelte-x6wvf7"><i class="fa-solid fa-paperclip svelte-x6wvf7"></i> <span class="svelte-x6wvf7"> </span></div>'), Zm = /* @__PURE__ */ $('<div class="user-attachments-list svelte-x6wvf7"></div>'), Xm = /* @__PURE__ */ $('<i class="fa-solid fa-check"></i>'), Vm = /* @__PURE__ */ $('<i class="fa-regular fa-copy"></i>'), Qm = /* @__PURE__ */ $('<div class="message-column message-column-sent svelte-x6wvf7"><div class="message-sent svelte-x6wvf7"><div class="message-content svelte-x6wvf7"><!></div></div> <div style="display: flex; justify-content: flex-end;"><button aria-label="Copy message" class="copy-button svelte-x6wvf7"><!></button></div></div>'), Km = /* @__PURE__ */ $('<div class="agent-badge svelte-x6wvf7" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-x6wvf7"></i> <span> </span></div>'), e0 = /* @__PURE__ */ $('<button class="sources-toggle-btn svelte-x6wvf7" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), t0 = /* @__PURE__ */ $('<i class="fa-solid fa-check"></i>'), n0 = /* @__PURE__ */ $('<i class="fa-regular fa-copy"></i>'), r0 = /* @__PURE__ */ $('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-x6wvf7"><i class="fa-solid fa-pause"></i></button>'), i0 = (t, e, n) => e(d(n)), s0 = /* @__PURE__ */ $('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-x6wvf7"><i class="fa-solid fa-play"></i></button>'), a0 = /* @__PURE__ */ $('<div class="message-column svelte-x6wvf7"><div class="message-received svelte-x6wvf7"><div class="message-content svelte-x6wvf7"><!></div></div> <div class="attachments-container svelte-x6wvf7"><!> <div class="d-flex gap-1" style="width: 100%; align-items: flex-start; justify-content: flex-start;"><!> <!> <button aria-label="Copy message" class="copy-button svelte-x6wvf7"><!></button></div></div></div> <!>', 1), o0 = /* @__PURE__ */ $('<div><!> <div class="w-100 d-flex message-plus-play svelte-x6wvf7"><!></div></div>'), l0 = /* @__PURE__ */ $('<div class="streaming-spinner svelte-x6wvf7"><!></div>'), c0 = /* @__PURE__ */ $('<div class="w-100 d-flex message-plus-play svelte-x6wvf7" style="justify-content: flex-start; align-items: center; gap: 5px;"><div class="message-column svelte-x6wvf7"><div class="message-received svelte-x6wvf7"><div class="message-content svelte-x6wvf7"><!></div></div> <div class="attachments-container svelte-x6wvf7"><!> <div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-x6wvf7" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-x6wvf7"></i> <span> </span></div></div></div></div> <!></div>'), u0 = /* @__PURE__ */ $('<div class="loading svelte-x6wvf7"><!></div>'), d0 = /* @__PURE__ */ $('<div class="alert alert-danger"> </div>'), f0 = /* @__PURE__ */ $('<div class="messages-wrapper svelte-x6wvf7"><div class="empty-placeholder svelte-x6wvf7"></div> <!> <!> <!></div>'), h0 = /* @__PURE__ */ $('<div class="loading-placeholder svelte-x6wvf7"><!></div>'), p0 = /* @__PURE__ */ $('<div class="chat-body svelte-x6wvf7"><!> <!></div>');
11116
+ const v0 = {
11137
11117
  hash: "svelte-x6wvf7",
11138
11118
  code: `.empty-placeholder.svelte-x6wvf7 {height:100%;}.messages-wrapper.svelte-x6wvf7 {display:flex;flex-direction:column;gap:10px;min-height:100%;}.loading-placeholder.svelte-x6wvf7 {display:flex;justify-content:center;align-items:center;height:100%;}.chat-body.svelte-x6wvf7 {display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;height:100%;padding:10px;}.chat-body.svelte-x6wvf7::-webkit-scrollbar {width:8px;}.chat-body.svelte-x6wvf7 * {--bs-table-color: #333333;--bs-table-striped-color: #333333;--bs-link-color-rgb: 41, 93, 207;}.chat-body.svelte-x6wvf7 li {color:black;}.chat-body.svelte-x6wvf7 table {min-width:auto;}.chat-body.svelte-x6wvf7::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-x6wvf7::-webkit-scrollbar-thumb {background:rgba(\r
11139
11119
  255,\r
@@ -11149,18 +11129,18 @@ const g0 = {
11149
11129
  }`
11150
11130
  };
11151
11131
  function No(t, e) {
11152
- ge(e, !0), Te(t, g0);
11153
- 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 = J(void 0), p = J(C(new Audio())), _ = J(!1), k = J(C({})), R = J(C({})), b = J(C({})), w = J(null), I = J(C(n())), F = J(null), A = J(!0), L = J(!1), T = J(!1), D = J(C(u())), X = J(!1);
11132
+ ge(e, !0), Ie(t, v0);
11133
+ 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 = J(void 0), p = J(C(new Audio())), _ = J(!1), k = J(C({})), R = J(C({})), b = J(C({})), w = J(null), T = J(C(n())), F = J(null), A = J(!0), L = J(!1), I = J(!1), D = J(C(u())), X = J(!1);
11154
11134
  const ue = async () => {
11155
11135
  await on(), d(h) && (d(h).scrollTop = d(h).scrollHeight);
11156
11136
  }, Be = async () => {
11157
11137
  await on(), v(A, !1);
11158
11138
  }, Y = async () => {
11159
11139
  d(X) || (v(X, !0), await on(), v(L, !1));
11160
- }, te = () => {
11161
- d(T) && v(L, !0);
11162
- }, ye = () => {
11163
- d(T) && (v(I, C(d(F) ?? n())), v(F, null), v(A, !0), v(T, !1), v(X, !1));
11140
+ }, ne = () => {
11141
+ d(I) && v(L, !0);
11142
+ }, ze = () => {
11143
+ d(I) && (v(T, C(d(F) ?? n())), v(F, null), v(A, !0), v(I, !1), v(X, !1));
11164
11144
  }, lt = (H) => {
11165
11145
  es.getAudio(H.content, l()).then((V) => {
11166
11146
  v(p, C(new Audio(V))), d(p).play(), v(_, !0), d(p).onended = () => {
@@ -11168,19 +11148,19 @@ function No(t, e) {
11168
11148
  };
11169
11149
  });
11170
11150
  }, He = async (H, V) => {
11171
- const Ie = await Promise.resolve(H.html ?? Fe.parseInline(H.content)), $e = document.createElement("div");
11172
- $e.innerHTML = Ie;
11151
+ const Te = await Promise.resolve(H.html ?? Fe.parseInline(H.content)), $e = document.createElement("div");
11152
+ $e.innerHTML = Te;
11173
11153
  const et = $e.innerHTML, be = $e.textContent || $e.innerText || "";
11174
11154
  try {
11175
- const ze = new Blob([et], { type: "text/html" }), oe = new Blob([be], { type: "text/plain" }), ae = new ClipboardItem({ "text/html": ze, "text/plain": oe });
11155
+ const Se = new Blob([et], { type: "text/html" }), oe = new Blob([be], { type: "text/plain" }), ae = new ClipboardItem({ "text/html": Se, "text/plain": oe });
11176
11156
  await navigator.clipboard.write([ae]), d(R)[V] = Ps(), setTimeout(
11177
11157
  () => {
11178
11158
  d(R)[V] = "";
11179
11159
  },
11180
11160
  2e3
11181
11161
  );
11182
- } catch (ze) {
11183
- console.error("Errore durante la copia:", ze);
11162
+ } catch (Se) {
11163
+ console.error("Errore durante la copia:", Se);
11184
11164
  try {
11185
11165
  await navigator.clipboard.writeText(be), d(R)[V] = Ps(), setTimeout(
11186
11166
  () => {
@@ -11194,16 +11174,16 @@ function No(t, e) {
11194
11174
  }
11195
11175
  }, Oe = () => {
11196
11176
  if (!d(h)) return;
11197
- const H = d(h).getBoundingClientRect(), V = H.top, Ie = H.bottom;
11177
+ const H = d(h).getBoundingClientRect(), V = H.top, Te = H.bottom;
11198
11178
  d(h).querySelectorAll(".message-plus-play").forEach((be) => {
11199
- const ze = be, oe = ze.getAttribute("data-message-index");
11179
+ const Se = be, oe = Se.getAttribute("data-message-index");
11200
11180
  if (oe === null) return;
11201
11181
  const ae = parseInt(oe, 10);
11202
11182
  if (!be.querySelector(".play-button")) return;
11203
11183
  const N = be.querySelector(".message-received");
11204
11184
  if (!N) return;
11205
- const ce = ze.getBoundingClientRect(), ee = N.getBoundingClientRect(), Ee = Math.max(ee.top, V), Ae = Math.min(ee.bottom, Ie);
11206
- if (Ee < Ie && Ae > V) {
11185
+ const ce = Se.getBoundingClientRect(), ee = N.getBoundingClientRect(), Ee = Math.max(ee.top, V), Ae = Math.min(ee.bottom, Te);
11186
+ if (Ee < Te && Ae > V) {
11207
11187
  const Ue = (Ee + Ae) / 2 - ce.top, Ge = ee.width + 5;
11208
11188
  d(b)[ae] = {
11209
11189
  top: Ue,
@@ -11215,9 +11195,9 @@ function No(t, e) {
11215
11195
  if (et && r()) {
11216
11196
  const be = et.querySelector(".message-received");
11217
11197
  if (be) {
11218
- const ze = et.getBoundingClientRect(), oe = be.getBoundingClientRect(), ae = Math.max(oe.top, V), z = Math.min(oe.bottom, Ie);
11219
- if (ae < Ie && z > V) {
11220
- const ce = (ae + z) / 2 - ze.top, Ee = oe.width + 5;
11198
+ const Se = et.getBoundingClientRect(), oe = be.getBoundingClientRect(), ae = Math.max(oe.top, V), z = Math.min(oe.bottom, Te);
11199
+ if (ae < Te && z > V) {
11200
+ const ce = (ae + z) / 2 - Se.top, Ee = oe.width + 5;
11221
11201
  v(w, C({
11222
11202
  top: ce,
11223
11203
  left: Ee
@@ -11228,13 +11208,13 @@ function No(t, e) {
11228
11208
  v(w, null);
11229
11209
  };
11230
11210
  at(() => {
11231
- u() && !d(D) ? (v(T, !0), v(F, null), v(L, !1), v(A, !0), Be()) : !u() && d(D) && (v(F, C(n())), d(L) && Y()), v(D, C(u()));
11211
+ u() && !d(D) ? (v(I, !0), v(F, null), v(L, !1), v(A, !0), Be()) : !u() && d(D) && (v(F, C(n())), d(L) && Y()), v(D, C(u()));
11232
11212
  }), at(() => {
11233
- d(T) && d(L) && !u() && Y();
11213
+ d(I) && d(L) && !u() && Y();
11234
11214
  }), at(() => {
11235
- d(T) ? v(F, C(n())) : u() || v(I, C(n()));
11215
+ d(I) ? v(F, C(n())) : u() || v(T, C(n()));
11236
11216
  }), at(() => {
11237
- s(), d(I), ue();
11217
+ s(), d(T), ue();
11238
11218
  }), at(() => {
11239
11219
  if (!d(h) || !f()) return;
11240
11220
  const H = (V) => {
@@ -11242,8 +11222,8 @@ function No(t, e) {
11242
11222
  if (!$e) return;
11243
11223
  const et = d(h).querySelectorAll(".message-received .message-content"), be = et[et.length - 1];
11244
11224
  if (!(be != null && be.contains($e))) return;
11245
- const ze = $e.getAttribute("data-action");
11246
- ze && f()(ze);
11225
+ const Se = $e.getAttribute("data-action");
11226
+ Se && f()(Se);
11247
11227
  };
11248
11228
  return d(h).addEventListener("click", H), () => {
11249
11229
  var V;
@@ -11259,26 +11239,26 @@ function No(t, e) {
11259
11239
  (V = d(h)) == null || V.removeEventListener("scroll", H);
11260
11240
  };
11261
11241
  }), at(() => {
11262
- d(I), on().then(() => Oe());
11242
+ d(T), on().then(() => Oe());
11263
11243
  }), at(() => {
11264
11244
  r(), s(), on().then(() => Oe());
11265
11245
  });
11266
- var rt = v0(), W = y(rt);
11246
+ var rt = p0(), W = y(rt);
11267
11247
  {
11268
11248
  var Qe = (H) => {
11269
- var V = h0(), Ie = M(y(V), 2);
11270
- ft(Ie, 17, () => d(I), vt, (ae, z, N) => {
11249
+ var V = f0(), Te = M(y(V), 2);
11250
+ ft(Te, 17, () => d(T), vt, (ae, z, N) => {
11271
11251
  var ce = St(), ee = nt(ce);
11272
11252
  {
11273
11253
  var Ee = (Ae) => {
11274
- var tt = l0(), Ue = y(tt);
11254
+ var tt = o0(), Ue = y(tt);
11275
11255
  {
11276
11256
  var De = (_e) => {
11277
- var le = Xm();
11257
+ var le = Zm();
11278
11258
  ft(le, 21, () => d(z).attachments, vt, (Le, U) => {
11279
- var G = Zm(), ie = M(y(G), 2), se = y(ie, !0);
11280
- x(ie), x(G), P(() => {
11281
- O(G, "title", d(U).filename), ke(se, d(U).filename);
11259
+ var G = Wm(), se = M(y(G), 2), ie = y(se, !0);
11260
+ x(se), x(G), P(() => {
11261
+ O(G, "title", d(U).filename), ye(ie, d(U).filename);
11282
11262
  }), S(Le, G);
11283
11263
  }), x(le), S(_e, le);
11284
11264
  };
@@ -11291,32 +11271,32 @@ function No(t, e) {
11291
11271
  var ct = y(Ge);
11292
11272
  {
11293
11273
  var ut = (_e) => {
11294
- var le = Km(), Le = y(le), U = y(Le), G = y(U);
11274
+ var le = Qm(), Le = y(le), U = y(Le), G = y(U);
11295
11275
  xr(G, () => d(z).html ?? Fe.parseInline(d(z).content), !1, !1), x(U), x(Le);
11296
- var ie = M(Le, 2), se = y(ie);
11297
- se.__click = () => He(d(z), N);
11298
- var ne = y(se);
11276
+ var se = M(Le, 2), ie = y(se);
11277
+ ie.__click = () => He(d(z), N);
11278
+ var te = y(ie);
11299
11279
  {
11300
- var Se = (de) => {
11301
- var Je = Vm();
11280
+ var ke = (de) => {
11281
+ var Je = Xm();
11302
11282
  S(de, Je);
11303
11283
  }, ve = (de) => {
11304
- var Je = Qm();
11284
+ var Je = Vm();
11305
11285
  S(de, Je);
11306
11286
  };
11307
- Q(ne, (de) => {
11308
- d(R)[N] ? de(Se) : de(ve, !1);
11287
+ Q(te, (de) => {
11288
+ d(R)[N] ? de(ke) : de(ve, !1);
11309
11289
  });
11310
11290
  }
11311
- x(se), x(ie), x(le), P((de) => O(se, "title", de), [
11291
+ x(ie), x(se), x(le), P((de) => O(ie, "title", de), [
11312
11292
  () => d(R)[N] || Ms()
11313
11293
  ]), S(_e, le);
11314
11294
  }, gt = (_e) => {
11315
- var le = o0(), Le = nt(le), U = y(Le), G = y(U), ie = y(G);
11316
- xr(ie, () => d(z).html ?? Fe.parseInline(d(z).content), !1, !1), x(G), x(U);
11317
- var se = M(U, 2), ne = y(se);
11295
+ var le = a0(), Le = nt(le), U = y(Le), G = y(U), se = y(G);
11296
+ xr(se, () => d(z).html ?? Fe.parseInline(d(z).content), !1, !1), x(G), x(U);
11297
+ var ie = M(U, 2), te = y(ie);
11318
11298
  {
11319
- var Se = (q) => {
11299
+ var ke = (q) => {
11320
11300
  var Z = /* @__PURE__ */ Ve(() => d(k)[N] || !1);
11321
11301
  Li(q, {
11322
11302
  get isDropdownOpen() {
@@ -11336,15 +11316,15 @@ function No(t, e) {
11336
11316
  }
11337
11317
  });
11338
11318
  };
11339
- Q(ne, (q) => {
11340
- d(z).attachments && d(z).attachments.length > 0 && q(Se);
11319
+ Q(te, (q) => {
11320
+ d(z).attachments && d(z).attachments.length > 0 && q(ke);
11341
11321
  });
11342
11322
  }
11343
- var ve = M(ne, 2), de = y(ve);
11323
+ var ve = M(te, 2), de = y(ve);
11344
11324
  {
11345
11325
  var Je = (q) => {
11346
- var Z = e0(), he = M(y(Z), 2), st = y(he, !0);
11347
- x(he), x(Z), P((pe) => ke(st, pe), [
11326
+ var Z = Km(), he = M(y(Z), 2), st = y(he, !0);
11327
+ x(he), x(Z), P((pe) => ye(st, pe), [
11348
11328
  () => Os(d(z).agentUsed)
11349
11329
  ]), S(q, Z);
11350
11330
  };
@@ -11355,14 +11335,14 @@ function No(t, e) {
11355
11335
  var Ce = M(de, 2);
11356
11336
  {
11357
11337
  var fe = (q) => {
11358
- var Z = t0();
11338
+ var Z = e0();
11359
11339
  Z.__click = () => d(k)[N] = !d(k)[N];
11360
11340
  var he = y(Z), st = y(he);
11361
11341
  x(he);
11362
11342
  var pe = M(he, 2);
11363
11343
  x(Z), P(
11364
11344
  (j) => {
11365
- ke(st, `${j ?? ""} (${d(z).attachments.length ?? ""})`), yt(pe, `${`fa-solid fa-chevron-${d(k)[N] ? "up" : "down"}` ?? ""} svelte-x6wvf7`);
11345
+ ye(st, `${j ?? ""} (${d(z).attachments.length ?? ""})`), yt(pe, `${`fa-solid fa-chevron-${d(k)[N] ? "up" : "down"}` ?? ""} svelte-x6wvf7`);
11366
11346
  },
11367
11347
  [() => Uu()]
11368
11348
  ), S(q, Z);
@@ -11376,37 +11356,37 @@ function No(t, e) {
11376
11356
  var pt = y(We);
11377
11357
  {
11378
11358
  var Xe = (q) => {
11379
- var Z = n0();
11359
+ var Z = t0();
11380
11360
  S(q, Z);
11381
11361
  }, ot = (q) => {
11382
- var Z = r0();
11362
+ var Z = n0();
11383
11363
  S(q, Z);
11384
11364
  };
11385
11365
  Q(pt, (q) => {
11386
11366
  d(R)[N] ? q(Xe) : q(ot, !1);
11387
11367
  });
11388
11368
  }
11389
- x(We), x(ve), x(se), x(Le);
11369
+ x(We), x(ve), x(ie), x(Le);
11390
11370
  var it = M(Le, 2);
11391
11371
  {
11392
11372
  var re = (q) => {
11393
11373
  var Z = St(), he = nt(Z);
11394
11374
  {
11395
11375
  var st = (j) => {
11396
- var Ze = i0();
11397
- Ze.__click = [Wm, p, _], P(
11398
- (Tt) => {
11376
+ var Ze = r0();
11377
+ Ze.__click = [Jm, p, _], P(
11378
+ (It) => {
11399
11379
  var Pt, qt;
11400
- O(Ze, "title", Tt), O(Ze, "style", `top: ${((Pt = d(b)[N]) == null ? void 0 : Pt.top) ?? 0}px; left: ${((qt = d(b)[N]) == null ? void 0 : qt.left) ?? 0}px;`);
11380
+ O(Ze, "title", It), O(Ze, "style", `top: ${((Pt = d(b)[N]) == null ? void 0 : Pt.top) ?? 0}px; left: ${((qt = d(b)[N]) == null ? void 0 : qt.left) ?? 0}px;`);
11401
11381
  },
11402
11382
  [() => ud()]
11403
11383
  ), S(j, Ze);
11404
11384
  }, pe = (j) => {
11405
- var Ze = a0();
11406
- Ze.__click = [s0, lt, z], P(
11407
- (Tt) => {
11385
+ var Ze = s0();
11386
+ Ze.__click = [i0, lt, z], P(
11387
+ (It) => {
11408
11388
  var Pt, qt;
11409
- O(Ze, "title", Tt), O(Ze, "style", `top: ${((Pt = d(b)[N]) == null ? void 0 : Pt.top) ?? 0}px; left: ${((qt = d(b)[N]) == null ? void 0 : qt.left) ?? 0}px;`);
11389
+ O(Ze, "title", It), O(Ze, "style", `top: ${((Pt = d(b)[N]) == null ? void 0 : Pt.top) ?? 0}px; left: ${((qt = d(b)[N]) == null ? void 0 : qt.left) ?? 0}px;`);
11410
11390
  },
11411
11391
  [() => od()]
11412
11392
  ), S(j, Ze);
@@ -11437,10 +11417,10 @@ function No(t, e) {
11437
11417
  }
11438
11418
  S(ae, ce);
11439
11419
  });
11440
- var $e = M(Ie, 2);
11420
+ var $e = M(Te, 2);
11441
11421
  {
11442
11422
  var et = (ae) => {
11443
- var z = u0(), N = y(z), ce = y(N), ee = y(ce), Ee = y(ee);
11423
+ var z = c0(), N = y(z), ce = y(N), ee = y(ce), Ee = y(ee);
11444
11424
  xr(Ee, s, !1, !1), x(ee), x(ce);
11445
11425
  var Ae = M(ce, 2), tt = y(Ae);
11446
11426
  {
@@ -11473,7 +11453,7 @@ function No(t, e) {
11473
11453
  var gt = M(N, 2);
11474
11454
  {
11475
11455
  var _e = (le) => {
11476
- var Le = c0(), U = y(Le);
11456
+ var Le = l0(), U = y(Le);
11477
11457
  fn(U, {
11478
11458
  icon: "svg-spinners:90-ring-with-bg",
11479
11459
  width: "25px",
@@ -11485,12 +11465,12 @@ function No(t, e) {
11485
11465
  r() && d(w) && le(_e);
11486
11466
  });
11487
11467
  }
11488
- x(z), P((le) => ke(ut, le), [() => Os(o())]), S(ae, z);
11468
+ x(z), P((le) => ye(ut, le), [() => Os(o())]), S(ae, z);
11489
11469
  }, be = (ae) => {
11490
11470
  var z = St(), N = nt(z);
11491
11471
  {
11492
11472
  var ce = (ee) => {
11493
- var Ee = d0(), Ae = y(Ee);
11473
+ var Ee = u0(), Ae = y(Ee);
11494
11474
  fn(Ae, {
11495
11475
  icon: "svg-spinners:3-dots-bounce",
11496
11476
  width: "25px",
@@ -11512,17 +11492,17 @@ function No(t, e) {
11512
11492
  s().length > 0 ? ae(et) : ae(be, !1);
11513
11493
  });
11514
11494
  }
11515
- var ze = M($e, 2);
11495
+ var Se = M($e, 2);
11516
11496
  {
11517
11497
  var oe = (ae) => {
11518
- var z = f0(), N = y(z, !0);
11519
- x(z), P(() => ke(N, i())), S(ae, z);
11498
+ var z = d0(), N = y(z, !0);
11499
+ x(z), P(() => ye(N, i())), S(ae, z);
11520
11500
  };
11521
- Q(ze, (ae) => {
11501
+ Q(Se, (ae) => {
11522
11502
  i() != "" && ae(oe);
11523
11503
  });
11524
11504
  }
11525
- x(V), nn("outroend", V, te), Nt(1, V, () => un, () => ({ duration: 100, delay: 100 })), Nt(2, V, () => un, () => ({ duration: 100 })), S(H, V);
11505
+ x(V), nn("outroend", V, ne), Nt(1, V, () => un, () => ({ duration: 100, delay: 100 })), Nt(2, V, () => un, () => ({ duration: 100 })), S(H, V);
11526
11506
  };
11527
11507
  Q(W, (H) => {
11528
11508
  d(A) && H(Qe);
@@ -11531,13 +11511,13 @@ function No(t, e) {
11531
11511
  var Ke = M(W, 2);
11532
11512
  {
11533
11513
  var Ye = (H) => {
11534
- var V = p0(), Ie = y(V);
11535
- fn(Ie, {
11514
+ var V = h0(), Te = y(V);
11515
+ fn(Te, {
11536
11516
  icon: "svg-spinners:270-ring-with-bg",
11537
11517
  width: "50px",
11538
11518
  height: "50px",
11539
11519
  color: "white"
11540
- }), x(V), nn("outroend", V, ye), Nt(1, V, () => un, () => ({ duration: 100, delay: 200 })), Nt(2, V, () => un, () => ({ duration: 100 })), S(H, V);
11520
+ }), x(V), nn("outroend", V, ze), Nt(1, V, () => un, () => ({ duration: 100, delay: 200 })), Nt(2, V, () => un, () => ({ duration: 100 })), S(H, V);
11541
11521
  };
11542
11522
  Q(Ke, (H) => {
11543
11523
  d(L) && H(Ye);
@@ -11625,10 +11605,10 @@ xe(
11625
11605
  [],
11626
11606
  !0
11627
11607
  );
11628
- var m0 = (t, e) => e(!1), b0 = /* @__PURE__ */ $('<div class="loader-container svelte-da41xi"><div class="loader svelte-da41xi"></div></div>'), w0 = /* @__PURE__ */ $('<p class="empty-label svelte-da41xi"> </p>'), x0 = (t, e, n, r) => {
11608
+ var g0 = (t, e) => e(!1), m0 = /* @__PURE__ */ $('<div class="loader-container svelte-da41xi"><div class="loader svelte-da41xi"></div></div>'), b0 = /* @__PURE__ */ $('<p class="empty-label svelte-da41xi"> </p>'), w0 = (t, e, n, r) => {
11629
11609
  e()._id != d(n)._id && r(d(n)._id);
11630
- }, _0 = /* @__PURE__ */ $('<span class="unread-badge svelte-da41xi"></span>'), k0 = /* @__PURE__ */ $('<span class="meta-sep svelte-da41xi">·</span> <span class="meta-item svelte-da41xi"><i class="fa-regular fa-clock svelte-da41xi"></i> </span>', 1), y0 = (t, e, n) => e(d(n)._id, d(n).title), z0 = /* @__PURE__ */ $('<div class="chat svelte-da41xi"><button class="chat-button svelte-da41xi"><div class="chat-content svelte-da41xi"><div class="title-row svelte-da41xi"><span class="chat-title svelte-da41xi"> </span> <!></div> <div class="meta-row svelte-da41xi"><span class="meta-item svelte-da41xi"><i class="fa-regular fa-calendar svelte-da41xi"></i> </span> <!></div></div></button> <button class="chat-delete svelte-da41xi" aria-label="Delete chat"><i class="fa-solid fa-trash-can svelte-da41xi"></i></button></div>'), S0 = /* @__PURE__ */ $('<div class="group-header svelte-da41xi"> </div> <!>', 1), C0 = /* @__PURE__ */ $('<div class="loader-more-container svelte-da41xi"><div class="loader-small svelte-da41xi"></div></div>'), T0 = /* @__PURE__ */ $('<p class="end-label svelte-da41xi"> </p>'), I0 = /* @__PURE__ */ $("<!> <!>", 1), E0 = /* @__PURE__ */ $('<div class="history svelte-da41xi"><div class="history-header svelte-da41xi"><span class="title svelte-da41xi"> </span> <button class="close-btn svelte-da41xi" aria-label="Close history"><i class="fa-solid fa-xmark svelte-da41xi"></i></button></div> <div class="chats svelte-da41xi"><!></div></div>'), $0 = /* @__PURE__ */ $('<div class="external-div svelte-da41xi"><!></div>');
11631
- const A0 = {
11610
+ }, x0 = /* @__PURE__ */ $('<span class="unread-badge svelte-da41xi"></span>'), _0 = /* @__PURE__ */ $('<span class="meta-sep svelte-da41xi">·</span> <span class="meta-item svelte-da41xi"><i class="fa-regular fa-clock svelte-da41xi"></i> </span>', 1), k0 = (t, e, n) => e(d(n)._id, d(n).title), y0 = /* @__PURE__ */ $('<div class="chat svelte-da41xi"><button class="chat-button svelte-da41xi"><div class="chat-content svelte-da41xi"><div class="title-row svelte-da41xi"><span class="chat-title svelte-da41xi"> </span> <!></div> <div class="meta-row svelte-da41xi"><span class="meta-item svelte-da41xi"><i class="fa-regular fa-calendar svelte-da41xi"></i> </span> <!></div></div></button> <button class="chat-delete svelte-da41xi" aria-label="Delete chat"><i class="fa-solid fa-trash-can svelte-da41xi"></i></button></div>'), z0 = /* @__PURE__ */ $('<div class="group-header svelte-da41xi"> </div> <!>', 1), S0 = /* @__PURE__ */ $('<div class="loader-more-container svelte-da41xi"><div class="loader-small svelte-da41xi"></div></div>'), C0 = /* @__PURE__ */ $('<p class="end-label svelte-da41xi"> </p>'), I0 = /* @__PURE__ */ $("<!> <!>", 1), T0 = /* @__PURE__ */ $('<div class="history svelte-da41xi"><div class="history-header svelte-da41xi"><span class="title svelte-da41xi"> </span> <button class="close-btn svelte-da41xi" aria-label="Close history"><i class="fa-solid fa-xmark svelte-da41xi"></i></button></div> <div class="chats svelte-da41xi"><!></div></div>'), E0 = /* @__PURE__ */ $('<div class="external-div svelte-da41xi"><!></div>');
11611
+ const $0 = {
11632
11612
  hash: "svelte-da41xi",
11633
11613
  code: `.history.svelte-da41xi {position:absolute;top:0;left:-300px;width:300px;height:100%; /* Cambiato da 600px a 100% */border-radius:15px;display:flex;flex-direction:column;margin:0; /* Rimosso il margin */padding:5px;background:#28364c;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);z-index:-1; /* Cambiato da 999 a -1 */}.history-header.svelte-da41xi {display:flex;align-items:center;justify-content:space-between;padding:5px 5px 0;flex-shrink:0;}.title.svelte-da41xi {font-size:1.5rem;color:#fff;margin:5px;text-align:left;}.close-btn.svelte-da41xi {display:none;align-items:center;justify-content:center;background:transparent;border:none;color:white;cursor:pointer;font-size:1.2rem;padding:8px;border-radius:8px;transition:background 200ms;flex-shrink:0;}.close-btn.svelte-da41xi:hover {background:rgba(255, 255, 255, 0.15);}.chats.svelte-da41xi {display:flex;flex-direction:column;padding:10px;overflow-y:scroll;overflow-x:hidden;height:100%;gap:6px;}.group-header.svelte-da41xi {font-size:10px;font-weight:700;color:rgba(255, 255, 255, 0.35);text-transform:uppercase;letter-spacing:0.08em;padding:6px 4px 2px;margin-top:6px;}.group-header.svelte-da41xi:first-child {margin-top:0;}.chat.svelte-da41xi {background:rgba(255, 255, 255, 0.1);display:flex;justify-content:space-between;align-items:center;border-radius:10px;transition:background 200ms,\r
11634
11614
  scale 200ms;width:100%;}.chat.active.svelte-da41xi {background:#295dcf;cursor:default;}.chat.svelte-da41xi > .chat-button:where(.svelte-da41xi) {background:transparent;padding:8px 10px;border-radius:10px;cursor:pointer;transition:background 200ms;text-align:left;border:none;width:calc(100% - 41px);display:flex;flex-direction:column;}.chat-content.svelte-da41xi {display:flex;flex-direction:column;gap:4px;width:100%;}.title-row.svelte-da41xi {display:flex;align-items:center;gap:6px;width:100%;}.chat-title.svelte-da41xi {font-weight:600;color:white;font-size:14px;text-shadow:0 0 5px rgba(0, 0, 0, 0.1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;}.meta-row.svelte-da41xi {display:flex;align-items:center;gap:5px;flex-wrap:wrap;}.meta-item.svelte-da41xi {display:flex;align-items:center;gap:4px;font-size:11px;color:rgba(255, 255, 255, 0.5);}.meta-item.svelte-da41xi i:where(.svelte-da41xi) {font-size:10px;}.meta-sep.svelte-da41xi {font-size:11px;color:rgba(255, 255, 255, 0.3);}.unread-badge.svelte-da41xi {display:inline-block;width:10px;height:10px;background:rgb(0, 255, 0);border-radius:50%;\r
@@ -11667,81 +11647,81 @@ const A0 = {
11667
11647
  }`
11668
11648
  };
11669
11649
  function Bo(t, e) {
11670
- ge(e, !0), Te(t, A0);
11650
+ ge(e, !0), Ie(t, $0);
11671
11651
  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);
11672
11652
  const _ = /* @__PURE__ */ Ve(() => {
11673
- const T = [];
11653
+ const I = [];
11674
11654
  let D = "";
11675
11655
  for (const X of i()) {
11676
- const ue = X.lastUpdate || Us(X._id).getTime(), Be = mv(ue);
11677
- Be !== D ? (D = Be, T.push({ label: Be, chats: [X] })) : T[T.length - 1].chats.push(X);
11656
+ const ue = X.lastUpdate || Us(X._id).getTime(), Be = gv(ue);
11657
+ Be !== D ? (D = Be, I.push({ label: Be, chats: [X] })) : I[I.length - 1].chats.push(X);
11678
11658
  }
11679
- return T;
11680
- }), k = async (T) => {
11681
- if (o(!0), u().includes(T))
11659
+ return I;
11660
+ }), k = async (I) => {
11661
+ if (o(!0), u().includes(I))
11682
11662
  try {
11683
- await dt.readChat(T), u(u().filter((X) => X !== T));
11663
+ await dt.readChat(I), u(u().filter((X) => X !== I));
11684
11664
  } catch (X) {
11685
11665
  console.error("Error marking chat as read:", X);
11686
11666
  }
11687
- let D = await dt.getChat(T);
11667
+ let D = await dt.getChat(I);
11688
11668
  r(D), s(r().messages), o(!1), a(""), window.innerWidth <= 1400 && n(!1);
11689
- }, R = (T, D) => {
11690
- confirm(_u({ chatTitle: D })) && dt.deleteChat(T).then(() => {
11691
- i(i().filter((X) => X._id !== T)), r()._id === T && c()();
11669
+ }, R = (I, D) => {
11670
+ confirm(_u({ chatTitle: D })) && dt.deleteChat(I).then(() => {
11671
+ i(i().filter((X) => X._id !== I)), r()._id === I && c()();
11692
11672
  });
11693
11673
  };
11694
11674
  let b = J(null), w;
11695
11675
  at(() => {
11696
11676
  var D;
11697
- const T = (D = i()[0]) == null ? void 0 : D._id;
11698
- T && T !== w && d(b) && (w = T, d(b).scrollTop = 0);
11677
+ const I = (D = i()[0]) == null ? void 0 : D._id;
11678
+ I && I !== w && d(b) && (w = I, d(b).scrollTop = 0);
11699
11679
  }), at(() => {
11700
11680
  !h() || p() || l() || !d(b) || (i().length, Promise.resolve().then(() => {
11701
11681
  d(b) && h() && !p() && d(b).scrollHeight <= d(b).clientHeight && f()();
11702
11682
  }));
11703
11683
  });
11704
- const I = (T) => {
11705
- const D = T.target;
11684
+ const T = (I) => {
11685
+ const D = I.target;
11706
11686
  h() && D.scrollTop + D.clientHeight >= D.scrollHeight - 60 && f()();
11707
11687
  };
11708
- var F = $0(), A = y(F);
11688
+ var F = E0(), A = y(F);
11709
11689
  {
11710
- var L = (T) => {
11711
- var D = E0(), X = y(D), ue = y(X), Be = y(ue, !0);
11690
+ var L = (I) => {
11691
+ var D = T0(), X = y(D), ue = y(X), Be = y(ue, !0);
11712
11692
  x(ue);
11713
11693
  var Y = M(ue, 2);
11714
- Y.__click = [m0, n], x(X);
11715
- var te = M(X, 2), ye = y(te);
11694
+ Y.__click = [g0, n], x(X);
11695
+ var ne = M(X, 2), ze = y(ne);
11716
11696
  {
11717
11697
  var lt = (Oe) => {
11718
- var rt = b0();
11698
+ var rt = m0();
11719
11699
  S(Oe, rt);
11720
11700
  }, He = (Oe) => {
11721
11701
  var rt = St(), W = nt(rt);
11722
11702
  {
11723
11703
  var Qe = (Ye) => {
11724
- var H = w0(), V = y(H, !0);
11725
- x(H), P((Ie) => ke(V, Ie), [() => ef()]), S(Ye, H);
11704
+ var H = b0(), V = y(H, !0);
11705
+ x(H), P((Te) => ye(V, Te), [() => ef()]), S(Ye, H);
11726
11706
  }, Ke = (Ye) => {
11727
11707
  var H = I0(), V = nt(H);
11728
- ft(V, 17, () => d(_), vt, (be, ze) => {
11729
- var oe = S0(), ae = nt(oe), z = y(ae, !0);
11708
+ ft(V, 17, () => d(_), vt, (be, Se) => {
11709
+ var oe = z0(), ae = nt(oe), z = y(ae, !0);
11730
11710
  x(ae);
11731
11711
  var N = M(ae, 2);
11732
- ft(N, 17, () => d(ze).chats, (ce) => ce._id, (ce, ee) => {
11733
- var Ee = z0(), Ae = y(Ee);
11734
- Ae.__click = [x0, r, ee, k];
11712
+ ft(N, 17, () => d(Se).chats, (ce) => ce._id, (ce, ee) => {
11713
+ var Ee = y0(), Ae = y(Ee);
11714
+ Ae.__click = [w0, r, ee, k];
11735
11715
  var tt = y(Ae), Ue = y(tt), De = y(Ue), Ge = y(De, !0);
11736
11716
  x(De);
11737
11717
  var ct = M(De, 2);
11738
11718
  {
11739
- var ut = (ie) => {
11740
- var se = _0();
11741
- S(ie, se);
11719
+ var ut = (se) => {
11720
+ var ie = x0();
11721
+ S(se, ie);
11742
11722
  };
11743
- Q(ct, (ie) => {
11744
- u().includes(d(ee)._id) && ie(ut);
11723
+ Q(ct, (se) => {
11724
+ u().includes(d(ee)._id) && se(ut);
11745
11725
  });
11746
11726
  }
11747
11727
  x(Ue);
@@ -11749,46 +11729,46 @@ function Bo(t, e) {
11749
11729
  x(_e);
11750
11730
  var Le = M(_e, 2);
11751
11731
  {
11752
- var U = (ie) => {
11753
- var se = k0(), ne = M(nt(se), 2), Se = M(y(ne));
11754
- x(ne), P(
11732
+ var U = (se) => {
11733
+ var ie = _0(), te = M(nt(ie), 2), ke = M(y(te));
11734
+ x(te), P(
11755
11735
  (ve, de) => {
11756
- O(ne, "title", ve), ke(Se, ` ${de ?? ""}`);
11736
+ O(te, "title", ve), ye(ke, ` ${de ?? ""}`);
11757
11737
  },
11758
11738
  [
11759
11739
  () => _f(),
11760
11740
  () => Ns(d(ee).lastUpdate)
11761
11741
  ]
11762
- ), S(ie, se);
11742
+ ), S(se, ie);
11763
11743
  };
11764
- Q(Le, (ie) => {
11765
- d(ee).lastUpdate && ie(U);
11744
+ Q(Le, (se) => {
11745
+ d(ee).lastUpdate && se(U);
11766
11746
  });
11767
11747
  }
11768
11748
  x(gt), x(tt), x(Ae);
11769
11749
  var G = M(Ae, 2);
11770
- G.__click = [y0, R, ee], x(Ee), P(
11771
- (ie, se) => {
11772
- we(Ee, "active", r()._id === d(ee)._id), O(Ae, "title", d(ee).title), O(De, "title", d(ee).title), ke(Ge, d(ee).title), O(_e, "title", ie), ke(le, ` ${se ?? ""}`);
11750
+ G.__click = [k0, R, ee], x(Ee), P(
11751
+ (se, ie) => {
11752
+ we(Ee, "active", r()._id === d(ee)._id), O(Ae, "title", d(ee).title), O(De, "title", d(ee).title), ye(Ge, d(ee).title), O(_e, "title", se), ye(le, ` ${ie ?? ""}`);
11773
11753
  },
11774
11754
  [
11775
11755
  () => bf(),
11776
11756
  () => Ns(Us(d(ee)._id).getTime())
11777
11757
  ]
11778
11758
  ), S(ce, Ee);
11779
- }), P(() => ke(z, d(ze).label)), S(be, oe);
11759
+ }), P(() => ye(z, d(Se).label)), S(be, oe);
11780
11760
  });
11781
- var Ie = M(V, 2);
11761
+ var Te = M(V, 2);
11782
11762
  {
11783
11763
  var $e = (be) => {
11784
- var ze = C0();
11785
- S(be, ze);
11764
+ var Se = S0();
11765
+ S(be, Se);
11786
11766
  }, et = (be) => {
11787
- var ze = St(), oe = nt(ze);
11767
+ var Se = St(), oe = nt(Se);
11788
11768
  {
11789
11769
  var ae = (z) => {
11790
- var N = T0(), ce = y(N, !0);
11791
- x(N), P((ee) => ke(ce, ee), [() => rf()]), S(z, N);
11770
+ var N = C0(), ce = y(N, !0);
11771
+ x(N), P((ee) => ye(ce, ee), [() => rf()]), S(z, N);
11792
11772
  };
11793
11773
  Q(
11794
11774
  oe,
@@ -11798,9 +11778,9 @@ function Bo(t, e) {
11798
11778
  !0
11799
11779
  );
11800
11780
  }
11801
- S(be, ze);
11781
+ S(be, Se);
11802
11782
  };
11803
- Q(Ie, (be) => {
11783
+ Q(Te, (be) => {
11804
11784
  p() ? be($e) : be(et, !1);
11805
11785
  });
11806
11786
  }
@@ -11816,88 +11796,88 @@ function Bo(t, e) {
11816
11796
  }
11817
11797
  S(Oe, rt);
11818
11798
  };
11819
- Q(ye, (Oe) => {
11799
+ Q(ze, (Oe) => {
11820
11800
  l() ? Oe(lt) : Oe(He, !1);
11821
11801
  });
11822
11802
  }
11823
- x(te), Rr(te, (Oe) => v(b, Oe), () => d(b)), x(D), P((Oe) => ke(Be, Oe), [() => oo()]), nn("scroll", te, I), Nt(3, D, () => $c, () => ({ duration: 600 })), S(T, D);
11803
+ x(ne), Rr(ne, (Oe) => v(b, Oe), () => d(b)), x(D), P((Oe) => ye(Be, Oe), [() => oo()]), nn("scroll", ne, T), Nt(3, D, () => $c, () => ({ duration: 600 })), S(I, D);
11824
11804
  };
11825
- Q(A, (T) => {
11826
- n() && T(L);
11805
+ Q(A, (I) => {
11806
+ n() && I(L);
11827
11807
  });
11828
11808
  }
11829
11809
  return x(F), S(t, F), me({
11830
11810
  get showHistory() {
11831
11811
  return n();
11832
11812
  },
11833
- set showHistory(T) {
11834
- n(T), g();
11813
+ set showHistory(I) {
11814
+ n(I), g();
11835
11815
  },
11836
11816
  get actChat() {
11837
11817
  return r();
11838
11818
  },
11839
- set actChat(T) {
11840
- r(T), g();
11819
+ set actChat(I) {
11820
+ r(I), g();
11841
11821
  },
11842
11822
  get chats() {
11843
11823
  return i();
11844
11824
  },
11845
- set chats(T) {
11846
- i(T), g();
11825
+ set chats(I) {
11826
+ i(I), g();
11847
11827
  },
11848
11828
  get messages() {
11849
11829
  return s();
11850
11830
  },
11851
- set messages(T) {
11852
- s(T), g();
11831
+ set messages(I) {
11832
+ s(I), g();
11853
11833
  },
11854
11834
  get error() {
11855
11835
  return a();
11856
11836
  },
11857
- set error(T) {
11858
- a(T), g();
11837
+ set error(I) {
11838
+ a(I), g();
11859
11839
  },
11860
11840
  get loadingChat() {
11861
11841
  return o();
11862
11842
  },
11863
- set loadingChat(T) {
11864
- o(T), g();
11843
+ set loadingChat(I) {
11844
+ o(I), g();
11865
11845
  },
11866
11846
  get loadingChats() {
11867
11847
  return l();
11868
11848
  },
11869
- set loadingChats(T) {
11870
- l(T), g();
11849
+ set loadingChats(I) {
11850
+ l(I), g();
11871
11851
  },
11872
11852
  get newChat() {
11873
11853
  return c();
11874
11854
  },
11875
- set newChat(T) {
11876
- c(T), g();
11855
+ set newChat(I) {
11856
+ c(I), g();
11877
11857
  },
11878
11858
  get unreadChatIds() {
11879
11859
  return u();
11880
11860
  },
11881
- set unreadChatIds(T) {
11882
- u(T), g();
11861
+ set unreadChatIds(I) {
11862
+ u(I), g();
11883
11863
  },
11884
11864
  get loadMoreChats() {
11885
11865
  return f();
11886
11866
  },
11887
- set loadMoreChats(T) {
11888
- f(T), g();
11867
+ set loadMoreChats(I) {
11868
+ f(I), g();
11889
11869
  },
11890
11870
  get hasMoreChats() {
11891
11871
  return h();
11892
11872
  },
11893
- set hasMoreChats(T) {
11894
- h(T), g();
11873
+ set hasMoreChats(I) {
11874
+ h(I), g();
11895
11875
  },
11896
11876
  get loadingMoreChats() {
11897
11877
  return p();
11898
11878
  },
11899
- set loadingMoreChats(T) {
11900
- p(T), g();
11879
+ set loadingMoreChats(I) {
11880
+ p(I), g();
11901
11881
  }
11902
11882
  });
11903
11883
  }
@@ -11922,8 +11902,8 @@ xe(
11922
11902
  [],
11923
11903
  !0
11924
11904
  );
11925
- var L0 = /* @__PURE__ */ $('<div class="drag-overlay svelte-1il33p9"><div class="drag-content svelte-1il33p9"><!> <p class="svelte-1il33p9"> </p></div></div>'), R0 = /* @__PURE__ */ $('<div class="upload-progress-overlay svelte-1il33p9"><div class="upload-progress-content svelte-1il33p9"><!> <p class="upload-filename svelte-1il33p9"> </p> <div class="progress-bar-container svelte-1il33p9"><div class="progress-bar svelte-1il33p9"></div></div> <p class="upload-percentage svelte-1il33p9"> </p></div></div>'), j0 = /* @__PURE__ */ $('<div class="loading-placeholder svelte-1il33p9"><!></div>'), D0 = /* @__PURE__ */ $('<!> <div class="resize-border-left svelte-1il33p9"></div> <div class="resize-border-top svelte-1il33p9"></div> <div class="resize-handle svelte-1il33p9"><!></div> <!> <!> <!>', 1), F0 = /* @__PURE__ */ $('<div class="chat svelte-1il33p9"><!> <!> <!></div>'), M0 = /* @__PURE__ */ $('<div class="external-div"><!> <button id="open-chat-btn"><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2"> </span></button></div>');
11926
- const P0 = {
11905
+ var A0 = /* @__PURE__ */ $('<div class="drag-overlay svelte-1il33p9"><div class="drag-content svelte-1il33p9"><!> <p class="svelte-1il33p9"> </p></div></div>'), L0 = /* @__PURE__ */ $('<div class="upload-progress-overlay svelte-1il33p9"><div class="upload-progress-content svelte-1il33p9"><!> <p class="upload-filename svelte-1il33p9"> </p> <div class="progress-bar-container svelte-1il33p9"><div class="progress-bar svelte-1il33p9"></div></div> <p class="upload-percentage svelte-1il33p9"> </p></div></div>'), R0 = /* @__PURE__ */ $('<div class="loading-placeholder svelte-1il33p9"><!></div>'), j0 = /* @__PURE__ */ $('<!> <div class="resize-border-left svelte-1il33p9"></div> <div class="resize-border-top svelte-1il33p9"></div> <div class="resize-handle svelte-1il33p9"><!></div> <!> <!> <!>', 1), D0 = /* @__PURE__ */ $('<div class="chat svelte-1il33p9"><!> <!> <!></div>'), F0 = /* @__PURE__ */ $('<div class="external-div"><!> <button id="open-chat-btn"><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2"> </span></button></div>');
11906
+ const M0 = {
11927
11907
  hash: "svelte-1il33p9",
11928
11908
  code: `\r
11929
11909
  /* 1700 1400 1200 992 576 */.loading-placeholder.svelte-1il33p9 {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1il33p9 {position:fixed;bottom:0;right:0;width:75%;height:90%;min-width:300px;min-height:400px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:5px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);resize:none;overflow:visible;z-index:1000;}.resize-handle.svelte-1il33p9 {position:absolute;top:-2px;left:-2px;cursor:nw-resize;z-index:1002;display:flex;align-items:flex-start;justify-content:flex-start;}.resize-border-left.svelte-1il33p9 {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1il33p9 {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1il33p9 {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}.bottom-right-buttons.svelte-1il33p9 {position:fixed;bottom:20px;right:0;display:flex;flex-direction:column;gap:15px;z-index:999;transform:translateX(50px);padding:5px;transition:350ms;}.bottom-right-buttons.visible.svelte-1il33p9 {transform:translateX(0);}.bottom-right-buttons.svelte-1il33p9:hover {transform:translateX(0);}.pin-forge-buttons.svelte-1il33p9 {width:30px;height:30px;border-radius:50%;border:none;background:rgba(0, 0, 0, 0.6);color:white;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;align-self:center;transition:200ms;font-size:14px;}.pin-forge-buttons.svelte-1il33p9:hover {background:rgba(0, 0, 0, 0.85);transform:scale(1.1);}.pin-forge-buttons.pinned.svelte-1il33p9 {background:#295dcf;transform:rotate(45deg);}.pin-forge-buttons.pinned.svelte-1il33p9:hover {background:#1e4ba8;transform:rotate(45deg) scale(1.1);}.btn-with-tooltip.svelte-1il33p9 {position:relative;display:flex;align-items:center;transition:300ms;}.btn-with-tooltip.svelte-1il33p9:hover {transform:translateX(-6px);}.custom-tooltip.svelte-1il33p9 {position:absolute;right:70px;background:rgba(0, 0, 0, 0.85);color:white;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:14px;opacity:0;pointer-events:none;transition:opacity 200ms;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3);}.hidden-btn.svelte-1il33p9 {width:60px;height:60px;border-radius:50%;border:none;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:200ms;}.hidden-btn-1.svelte-1il33p9 {background:#28853d;color:white;}.hidden-btn-1.svelte-1il33p9:hover {background:#206a31;}.hidden-btn-2.svelte-1il33p9 {background:#0099ff;color:white;}.hidden-btn-2.svelte-1il33p9:hover {background:#007acc;}.drag-overlay.svelte-1il33p9 {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(41, 93, 207, 0.95);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1010;pointer-events:none;}.drag-content.svelte-1il33p9 {text-align:center;color:white;}.drag-content.svelte-1il33p9 p:where(.svelte-1il33p9) {margin-top:20px;font-size:24px;font-weight:600;}.upload-progress-overlay.svelte-1il33p9 {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.8);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1011;}.upload-progress-content.svelte-1il33p9 {text-align:center;color:white;padding:30px;background:rgba(41, 93, 207, 0.9);border-radius:10px;min-width:300px;}.upload-filename.svelte-1il33p9 {margin:15px 0 10px 0;font-size:16px;font-weight:500;}.progress-bar-container.svelte-1il33p9 {width:100%;height:8px;background:rgba(255, 255, 255, 0.2);border-radius:4px;overflow:hidden;margin:10px 0;}.progress-bar.svelte-1il33p9 {height:100%;background:white;border-radius:4px;transition:width 0.3s ease;}.upload-percentage.svelte-1il33p9 {margin:10px 0 0 0;font-size:20px;font-weight:600;}\r
@@ -11934,11 +11914,11 @@ const P0 = {
11934
11914
  }`
11935
11915
  };
11936
11916
  function qo(t, e) {
11937
- ge(e, !0), Te(t, P0);
11917
+ ge(e, !0), Ie(t, M0);
11938
11918
  const [n, r] = xc(), i = () => wc(Fr, "$chatCommandStore", n);
11939
- let s = J(!1), a = J(!1), o = J("it"), l = J(""), c = J(0), u = J(null), f = J(C([])), h = J(C([])), p = J(!1), _ = J(!0), k = J(C(new Audio())), R = J(!0), b = J(""), w = J(""), I = J(C([])), F = J(0), A = J(null), L = J(!1), T = J(0), D = J("");
11940
- const X = (U, G, ie) => {
11941
- v(w, d(w) + U), v(I, C(G)), v(F, C(ie));
11919
+ let s = J(!1), a = J(!1), o = J("it"), l = J(""), c = J(0), u = J(null), f = J(C([])), h = J(C([])), p = J(!1), _ = J(!0), k = J(C(new Audio())), R = J(!0), b = J(""), w = J(""), T = J(C([])), F = J(0), A = J(null), L = J(!1), I = J(0), D = J("");
11920
+ const X = (U, G, se) => {
11921
+ v(w, d(w) + U), v(T, C(G)), v(F, C(se));
11942
11922
  };
11943
11923
  let ue = J("auto");
11944
11924
  const Be = [
@@ -11947,20 +11927,20 @@ function qo(t, e) {
11947
11927
  "audit_handler",
11948
11928
  "suite_agent"
11949
11929
  ];
11950
- let Y = J(C({})), te = J(!1);
11951
- const ye = async (U, G) => {
11952
- var se, ne;
11930
+ let Y = J(C({})), ne = J(!1);
11931
+ const ze = async (U, G) => {
11932
+ var ie, te;
11953
11933
  if (d(p)) return;
11954
- v(p, !0), d(b) && d(b) !== "" && (v(b, ""), v(w, ""), v(I, C([])), v(u, C(await dt.getChat(d(u)._id))), v(h, C(d(u).messages)));
11955
- let ie = Object.values(d(Y)).map((Se) => new ei(Se.title, Se.ext_id, "", "", !0, "Documento Comune"));
11934
+ v(p, !0), d(b) && d(b) !== "" && (v(b, ""), v(w, ""), v(T, C([])), v(u, C(await dt.getChat(d(u)._id))), v(h, C(d(u).messages)));
11935
+ let se = Object.values(d(Y)).map((ke) => new ei(ke.title, ke.ext_id, "", "", !0, "Documento Comune"));
11956
11936
  if (v(h, C([
11957
11937
  ...d(h),
11958
- new dn((/* @__PURE__ */ new Date()).getTime(), !0, U, U, ie)
11959
- ])), console.log("Current messages:", d(h)), d(h).length == 2 && (console.log("Creating new chat with state:", (se = d(u)) == null ? void 0 : se.state), v(u, C(await dt.newChat((ne = d(u)) == null ? void 0 : ne.state))), d(u).messages = d(h), v(f, C([d(u), ...d(f)]))), d(u)) {
11938
+ new dn((/* @__PURE__ */ new Date()).getTime(), !0, U, U, se)
11939
+ ])), console.log("Current messages:", d(h)), d(h).length == 2 && (console.log("Creating new chat with state:", (ie = d(u)) == null ? void 0 : ie.state), v(u, C(await dt.newChat((te = d(u)) == null ? void 0 : te.state))), d(u).messages = d(h), v(f, C([d(u), ...d(f)]))), d(u)) {
11960
11940
  v(A, C(new AbortController()));
11961
11941
  try {
11962
- let Se = await dt.sendMessage(d(u)._id, U, G, ie, d(u).state, X, d(o), d(A).signal);
11963
- if (console.log(Se), Se) {
11942
+ let ke = await dt.sendMessage(d(u)._id, U, G, se, d(u).state, X, d(o), d(A).signal);
11943
+ if (console.log(ke), ke) {
11964
11944
  v(h, C([
11965
11945
  ...d(h),
11966
11946
  new dn((/* @__PURE__ */ new Date()).getTime(), !1, "", d(w))
@@ -11970,7 +11950,7 @@ function qo(t, e) {
11970
11950
  if (v(u, C(await dt.getChat(d(u)._id))), v(f, C([
11971
11951
  d(u),
11972
11952
  ...d(f).filter((ve) => ve._id !== d(u)._id)
11973
- ])), v(w, ""), v(I, C([])), v(h, C([
11953
+ ])), v(w, ""), v(T, C([])), v(h, C([
11974
11954
  ...d(h),
11975
11955
  d(u).messages[d(u).messages.length - 1]
11976
11956
  ])), !d(R)) {
@@ -11982,8 +11962,8 @@ function qo(t, e) {
11982
11962
  console.error("Error playing audio:", de);
11983
11963
  }
11984
11964
  }
11985
- } catch (Se) {
11986
- Se instanceof Error && Se.name !== "AbortError" && (console.error("Error sending message:", Se), v(b, C(Fs())));
11965
+ } catch (ke) {
11966
+ ke instanceof Error && ke.name !== "AbortError" && (console.error("Error sending message:", ke), v(b, C(Fs())));
11987
11967
  } finally {
11988
11968
  v(A, null), v(p, !1);
11989
11969
  }
@@ -12007,15 +11987,15 @@ function qo(t, e) {
12007
11987
  if (!Be.includes(d(ue)) || (Je = d(u)) != null && Je.state.blockChat) return;
12008
11988
  U.preventDefault(), U.stopPropagation();
12009
11989
  const G = (Ce = U.dataTransfer) == null ? void 0 : Ce.types;
12010
- console.log("[DROP DEBUG] DataTransfer types:", G), v(D, C(Wd())), v(T, 0);
12011
- let ie = 0, se = 0;
11990
+ console.log("[DROP DEBUG] DataTransfer types:", G), v(D, C(Wd())), v(I, 0);
11991
+ let se = 0, ie = 0;
12012
11992
  console.log("[UPLOAD DEBUG] Inizio upload e progresso simulato");
12013
- let ne = setInterval(
11993
+ let te = setInterval(
12014
11994
  () => {
12015
- ie < 75 && se < 50 && (ie += Math.random() * 4 + 2, ie > 75 && (ie = 75), v(T, C(ie)), console.log("[UPLOAD DEBUG] Fake progress:", ie));
11995
+ se < 75 && ie < 50 && (se += Math.random() * 4 + 2, se > 75 && (se = 75), v(I, C(se)), console.log("[UPLOAD DEBUG] Fake progress:", se));
12016
11996
  },
12017
11997
  300
12018
- ), Se = "", ve = "", de = "";
11998
+ ), ke = "", ve = "", de = "";
12019
11999
  if (G && G.includes("file_id")) {
12020
12000
  let it = U.dataTransfer.getData("file_id");
12021
12001
  console.log("[DROP DEBUG] externalId:", it);
@@ -12023,37 +12003,37 @@ function qo(t, e) {
12023
12003
  try {
12024
12004
  let Z = await Et.getDocumentFromSuite(q);
12025
12005
  if (!Z) {
12026
- ne && (clearInterval(ne), ne = null), alert(Ci()), v(L, !1), v(He, 0), v(D, ""), v(T, 0);
12006
+ te && (clearInterval(te), te = null), alert(Ci()), v(L, !1), v(He, 0), v(D, ""), v(I, 0);
12027
12007
  return;
12028
12008
  }
12029
12009
  v(D, C(Z.name));
12030
- const he = await Ke(Z, ne, (pe) => {
12031
- se = pe, pe > 50 && ne && (clearInterval(ne), ne = null);
12010
+ const he = await Ke(Z, te, (pe) => {
12011
+ ie = pe, pe > 50 && te && (clearInterval(te), te = null);
12032
12012
  });
12033
- Se = he.fileId, ve = he.aiFileId, de = Z.name;
12013
+ ke = he.fileId, ve = he.aiFileId, de = Z.name;
12034
12014
  let st = {
12035
- id: Se,
12015
+ id: ke,
12036
12016
  filename: de,
12037
12017
  suiteUrl: window.location.origin
12038
12018
  };
12039
12019
  (fe = d(u)) != null && fe.state.info && (d(u).state.info.push({
12040
12020
  key: "CLOUDSTORAGE_FILE_UPLOADED",
12041
12021
  value: JSON.stringify(st)
12042
- }), d(u).state.info.push({ key: "AI_FILE_ID", value: ve }), ye("", "__file_uploaded__")), ne && (clearInterval(ne), ne = null);
12022
+ }), d(u).state.info.push({ key: "AI_FILE_ID", value: ve }), ze("", "__file_uploaded__")), te && (clearInterval(te), te = null);
12043
12023
  } catch (Z) {
12044
- console.error("Error fetching document from Suite:", Z), ne && (clearInterval(ne), ne = null), alert(Ci()), v(L, !1), v(He, 0), v(D, ""), v(T, 0);
12024
+ console.error("Error fetching document from Suite:", Z), te && (clearInterval(te), te = null), alert(Ci()), v(L, !1), v(He, 0), v(D, ""), v(I, 0);
12045
12025
  }
12046
12026
  } else {
12047
12027
  const it = (We = U.dataTransfer) == null ? void 0 : We.files, re = it ? Array.from(it) : [], q = !!((Xe = (pt = d(u)) == null ? void 0 : pt.state.info) != null && Xe.find((Z) => Z.key === "CLOUDSTORAGE_FILE_UPLOADED"));
12048
12028
  try {
12049
12029
  for (const Z of re) {
12050
12030
  v(D, C(Z.name));
12051
- const he = await Ke(Z, ne, (pe) => {
12052
- se = pe, pe > 50 && ne && (clearInterval(ne), ne = null);
12031
+ const he = await Ke(Z, te, (pe) => {
12032
+ ie = pe, pe > 50 && te && (clearInterval(te), te = null);
12053
12033
  });
12054
- Se = he.fileId, ve = he.aiFileId, de = Z.name;
12034
+ ke = he.fileId, ve = he.aiFileId, de = Z.name;
12055
12035
  let st = {
12056
- id: Se,
12036
+ id: ke,
12057
12037
  filename: de,
12058
12038
  suiteUrl: window.location.origin
12059
12039
  };
@@ -12062,56 +12042,56 @@ function qo(t, e) {
12062
12042
  !q && re.indexOf(Z) === re.length - 1 && (pe = !0), d(u).state.info.push({
12063
12043
  key: "CLOUDSTORAGE_FILE_UPLOADED",
12064
12044
  value: JSON.stringify(st)
12065
- }), d(u).state.info.push({ key: "AI_FILE_ID", value: ve }), pe && ye("", "__file_uploaded__");
12045
+ }), d(u).state.info.push({ key: "AI_FILE_ID", value: ve }), pe && ze("", "__file_uploaded__");
12066
12046
  }
12067
12047
  }
12068
12048
  } catch (Z) {
12069
12049
  console.error("Error uploading file:", Z);
12070
12050
  } finally {
12071
- ne && (clearInterval(ne), ne = null), v(L, !1), v(He, 0), v(D, ""), v(T, 0);
12051
+ te && (clearInterval(te), te = null), v(L, !1), v(He, 0), v(D, ""), v(I, 0);
12072
12052
  }
12073
12053
  }
12074
- }, Ke = async (U, G, ie) => {
12054
+ }, Ke = async (U, G, se) => {
12075
12055
  try {
12076
- const se = await dt.uploadFile(U, (ne) => {
12077
- console.log("[UPLOAD DEBUG] Callback ricevuto - Real progress:", ne), ie == null || ie(ne), ne > 50 && (v(T, 75 + ne * 0.25), console.log("[UPLOAD DEBUG] Using real progress - uploadProgress:", d(T)));
12056
+ const ie = await dt.uploadFile(U, (te) => {
12057
+ console.log("[UPLOAD DEBUG] Callback ricevuto - Real progress:", te), se == null || se(te), te > 50 && (v(I, 75 + te * 0.25), console.log("[UPLOAD DEBUG] Using real progress - uploadProgress:", d(I)));
12078
12058
  });
12079
- return console.log("[UPLOAD DEBUG] Upload completato - fileId:", se.fileId), v(D, ""), v(T, 0), d(Y)[se.fileId] = {
12059
+ return console.log("[UPLOAD DEBUG] Upload completato - fileId:", ie.fileId), v(D, ""), v(I, 0), d(Y)[ie.fileId] = {
12080
12060
  title: U.name,
12081
12061
  ext_id: "",
12082
12062
  gendoc_id: "",
12083
- storage_id: se.fileId,
12063
+ storage_id: ie.fileId,
12084
12064
  isCommon: !0
12085
12065
  }, {
12086
- fileId: se.fileId,
12087
- aiFileId: se.aiFileId
12066
+ fileId: ie.fileId,
12067
+ aiFileId: ie.aiFileId
12088
12068
  };
12089
- } catch (se) {
12090
- throw console.error("Error uploading file:", se), v(b, C(Fs())), v(D, ""), v(T, 0), se;
12069
+ } catch (ie) {
12070
+ throw console.error("Error uploading file:", ie), v(b, C(Fs())), v(D, ""), v(I, 0), ie;
12091
12071
  }
12092
12072
  };
12093
12073
  at(() => {
12094
12074
  d(R) && d(k).pause();
12095
12075
  });
12096
- let Ye = !1, H, V, Ie, $e;
12076
+ let Ye = !1, H, V, Te, $e;
12097
12077
  function et(U) {
12098
12078
  const G = U.target;
12099
12079
  if (G.closest(".resize-handle") || G.classList.contains("resize-border-left") || G.classList.contains("resize-border-top")) {
12100
12080
  U.preventDefault(), U.stopPropagation(), Ye = !0, H = U.clientX, V = U.clientY;
12101
- const se = document.querySelector(".chat");
12102
- Ie = se.offsetWidth, $e = se.offsetHeight, se.classList.add("no-select");
12103
- const ne = G.closest(".resize-handle"), Se = G.classList.contains("resize-border-left"), ve = G.classList.contains("resize-border-top"), de = (Ce) => {
12081
+ const ie = document.querySelector(".chat");
12082
+ Te = ie.offsetWidth, $e = ie.offsetHeight, ie.classList.add("no-select");
12083
+ const te = G.closest(".resize-handle"), ke = G.classList.contains("resize-border-left"), ve = G.classList.contains("resize-border-top"), de = (Ce) => {
12104
12084
  if (!Ye) return;
12105
12085
  Ce.preventDefault();
12106
12086
  const fe = document.querySelector(".chat"), We = window.innerWidth * 0.75, pt = window.innerHeight * 0.9;
12107
- if (Se) {
12108
- const Xe = H - Ce.clientX, ot = Math.min(Math.max(Ie + Xe, 300), We);
12087
+ if (ke) {
12088
+ const Xe = H - Ce.clientX, ot = Math.min(Math.max(Te + Xe, 300), We);
12109
12089
  fe.style.width = `${ot}px`;
12110
12090
  } else if (ve) {
12111
12091
  const Xe = V - Ce.clientY, ot = Math.min(Math.max($e + Xe, 400), pt);
12112
12092
  fe.style.height = `${ot}px`;
12113
- } else if (ne) {
12114
- const Xe = H - Ce.clientX, ot = V - Ce.clientY, it = Math.min(Math.max(Ie + Xe, 300), We), re = Math.min(Math.max($e + ot, 400), pt);
12093
+ } else if (te) {
12094
+ const Xe = H - Ce.clientX, ot = V - Ce.clientY, it = Math.min(Math.max(Te + Xe, 300), We), re = Math.min(Math.max($e + ot, 400), pt);
12115
12095
  fe.style.width = `${it}px`, fe.style.height = `${re}px`;
12116
12096
  }
12117
12097
  }, Je = () => {
@@ -12125,7 +12105,7 @@ function qo(t, e) {
12125
12105
  if (U) {
12126
12106
  v(N, 0), v(ce, !0);
12127
12107
  const G = await dt.getChats(0, ee);
12128
- v(f, C(G.sort((ie, se) => se.lastUpdate - ie.lastUpdate))), v(N, C(G.length)), G.length < ee && v(ce, !1);
12108
+ v(f, C(G.sort((se, ie) => ie.lastUpdate - se.lastUpdate))), v(N, C(G.length)), G.length < ee && v(ce, !1);
12129
12109
  } else {
12130
12110
  if (!d(ce) || d(z)) return;
12131
12111
  v(z, !0);
@@ -12133,13 +12113,13 @@ function qo(t, e) {
12133
12113
  const G = await dt.getChats(d(N), ee);
12134
12114
  v(f, C([
12135
12115
  ...d(f),
12136
- ...G.sort((ie, se) => se.lastUpdate - ie.lastUpdate)
12116
+ ...G.sort((se, ie) => ie.lastUpdate - se.lastUpdate)
12137
12117
  ])), v(N, d(N) + G.length), G.length < ee && v(ce, !1);
12138
12118
  } finally {
12139
12119
  v(z, !1);
12140
12120
  }
12141
12121
  }
12142
- }, ze = async () => {
12122
+ }, Se = async () => {
12143
12123
  await be(!1);
12144
12124
  };
12145
12125
  let oe = J(!1), ae = J(!1), z = J(!1), N = J(0), ce = J(!0);
@@ -12182,10 +12162,10 @@ function qo(t, e) {
12182
12162
  let ve = await dt.getChat(d(u)._id);
12183
12163
  v(u, C(ve)), v(h, C(d(u).messages)), v(oe, !1);
12184
12164
  }
12185
- const G = d(f).map((ve) => ve._id), ie = U.filter((ve) => !G.includes(ve)), se = U.filter((ve) => G.includes(ve)), ne = await Promise.all(ie.map((ve) => dt.getChat(ve))), Se = await Promise.all(se.map((ve) => dt.getChat(ve)));
12186
- if (ne.length > 0 || Se.length > 0) {
12187
- const ve = new Map(Se.map((fe) => [fe._id, fe])), Je = [...d(f).map((fe) => ve.get(fe._id) || fe), ...ne], Ce = new Map(Je.map((fe) => [fe._id, fe]));
12188
- v(f, C(Array.from(Ce.values()))), v(N, d(N) + ne.length), v(f, C(d(f).sort((fe, We) => We.lastUpdate - fe.lastUpdate)));
12165
+ const G = d(f).map((ve) => ve._id), se = U.filter((ve) => !G.includes(ve)), ie = U.filter((ve) => G.includes(ve)), te = await Promise.all(se.map((ve) => dt.getChat(ve))), ke = await Promise.all(ie.map((ve) => dt.getChat(ve)));
12166
+ if (te.length > 0 || ke.length > 0) {
12167
+ const ve = new Map(ke.map((fe) => [fe._id, fe])), Je = [...d(f).map((fe) => ve.get(fe._id) || fe), ...te], Ce = new Map(Je.map((fe) => [fe._id, fe]));
12168
+ v(f, C(Array.from(Ce.values()))), v(N, d(N) + te.length), v(f, C(d(f).sort((fe, We) => We.lastUpdate - fe.lastUpdate)));
12189
12169
  }
12190
12170
  v(Ue, C(U));
12191
12171
  } catch (U) {
@@ -12204,9 +12184,9 @@ function qo(t, e) {
12204
12184
  v(l, C(U));
12205
12185
  const G = await Et.getUserLevel();
12206
12186
  v(c, C(G));
12207
- let ie = new URLSearchParams(window.location.search);
12208
- if (ie.has("chatId")) {
12209
- let de = ie.get("chatId");
12187
+ let se = new URLSearchParams(window.location.search);
12188
+ if (se.has("chatId")) {
12189
+ let de = se.get("chatId");
12210
12190
  v(u, C(await dt.getChat(de))), v(h, C(d(u).messages)), v(s, !0), await on(), v(a, !0);
12211
12191
  } else {
12212
12192
  const de = dn.firstMessage(d(o), d(l), d(ue));
@@ -12225,13 +12205,13 @@ function qo(t, e) {
12225
12205
  [de]
12226
12206
  )));
12227
12207
  }
12228
- const { agentId: se, gendocId: ne, gendocName: Se } = Kr(uo);
12229
- se && v(ue, C(gv(se))), ne && Se && (d(Y)[ne] = {
12230
- title: Se + ".akd",
12208
+ const { agentId: ie, gendocId: te, gendocName: ke } = Kr(uo);
12209
+ console.log("Initial agent info from store:", { agentId: ie, gendocId: te, gendocName: ke }), ie && v(ue, C(ie)), te && ke && (d(Y)[te] = {
12210
+ title: ke + ".akd",
12231
12211
  ext_id: "",
12232
- gendoc_id: ne,
12212
+ gendoc_id: te,
12233
12213
  isCommon: !0
12234
- }), v(te, !0);
12214
+ }), v(ne, !0);
12235
12215
  const ve = (de) => {
12236
12216
  (de.clientX <= 0 || de.clientY <= 0 || de.clientX >= window.innerWidth || de.clientY >= window.innerHeight) && (v(L, !1), v(He, 0));
12237
12217
  };
@@ -12242,15 +12222,15 @@ function qo(t, e) {
12242
12222
  console.error("Failed to load username", U), v(b, C(bd())), v(_, !1);
12243
12223
  }
12244
12224
  });
12245
- var ct = M0(), ut = y(ct);
12225
+ var ct = F0(), ut = y(ct);
12246
12226
  {
12247
12227
  var gt = (U) => {
12248
- var G = F0();
12228
+ var G = D0();
12249
12229
  G.__mousedown = et;
12250
- var ie = y(G);
12230
+ var se = y(G);
12251
12231
  {
12252
- var se = (Ce) => {
12253
- var fe = L0(), We = y(fe), pt = y(We);
12232
+ var ie = (Ce) => {
12233
+ var fe = A0(), We = y(fe), pt = y(We);
12254
12234
  fn(pt, {
12255
12235
  icon: "mdi:file-upload",
12256
12236
  width: "80px",
@@ -12258,18 +12238,18 @@ function qo(t, e) {
12258
12238
  color: "white"
12259
12239
  });
12260
12240
  var Xe = M(pt, 2), ot = y(Xe, !0);
12261
- x(Xe), x(We), x(fe), P((it) => ke(ot, it), [
12241
+ x(Xe), x(We), x(fe), P((it) => ye(ot, it), [
12262
12242
  () => Yd() || "Drop files here"
12263
12243
  ]), Nt(3, fe, () => un, () => ({ duration: 200 })), S(Ce, fe);
12264
12244
  };
12265
- Q(ie, (Ce) => {
12266
- d(L) && Ce(se);
12245
+ Q(se, (Ce) => {
12246
+ d(L) && Ce(ie);
12267
12247
  });
12268
12248
  }
12269
- var ne = M(ie, 2);
12249
+ var te = M(se, 2);
12270
12250
  {
12271
- var Se = (Ce) => {
12272
- var fe = R0(), We = y(fe), pt = y(We);
12251
+ var ke = (Ce) => {
12252
+ var fe = L0(), We = y(fe), pt = y(We);
12273
12253
  fn(pt, {
12274
12254
  icon: "svg-spinners:270-ring-with-bg",
12275
12255
  width: "50px",
@@ -12283,21 +12263,21 @@ function qo(t, e) {
12283
12263
  var q = M(it, 2), Z = y(q);
12284
12264
  x(q), x(We), x(fe), P(
12285
12265
  (he) => {
12286
- ke(ot, d(D)), O(re, "style", `width: ${d(T) ?? ""}%`), ke(Z, `${he ?? ""}%`);
12266
+ ye(ot, d(D)), O(re, "style", `width: ${d(I) ?? ""}%`), ye(Z, `${he ?? ""}%`);
12287
12267
  },
12288
12268
  [
12289
- () => Math.round(d(T))
12269
+ () => Math.round(d(I))
12290
12270
  ]
12291
12271
  ), Nt(3, fe, () => un, () => ({ duration: 200 })), S(Ce, fe);
12292
12272
  };
12293
- Q(ne, (Ce) => {
12294
- d(D) && Ce(Se);
12273
+ Q(te, (Ce) => {
12274
+ d(D) && Ce(ke);
12295
12275
  });
12296
12276
  }
12297
- var ve = M(ne, 2);
12277
+ var ve = M(te, 2);
12298
12278
  {
12299
12279
  var de = (Ce) => {
12300
- var fe = j0(), We = y(fe);
12280
+ var fe = R0(), We = y(fe);
12301
12281
  fn(We, {
12302
12282
  icon: "svg-spinners:270-ring-with-bg",
12303
12283
  width: "50px",
@@ -12308,10 +12288,10 @@ function qo(t, e) {
12308
12288
  var fe = St(), We = nt(fe);
12309
12289
  {
12310
12290
  var pt = (Xe) => {
12311
- var ot = D0(), it = nt(ot);
12291
+ var ot = j0(), it = nt(ot);
12312
12292
  Bo(it, {
12313
12293
  newChat: Ae,
12314
- loadMoreChats: ze,
12294
+ loadMoreChats: Se,
12315
12295
  get hasMoreChats() {
12316
12296
  return d(ce);
12317
12297
  },
@@ -12431,7 +12411,7 @@ function qo(t, e) {
12431
12411
  });
12432
12412
  var st = M(Z, 2);
12433
12413
  No(st, {
12434
- onQuickReply: (j) => ye(j, d(ue)),
12414
+ onQuickReply: (j) => ze(j, d(ue)),
12435
12415
  get messages() {
12436
12416
  return d(h);
12437
12417
  },
@@ -12457,10 +12437,10 @@ function qo(t, e) {
12457
12437
  v(w, C(j));
12458
12438
  },
12459
12439
  get streamAttachments() {
12460
- return d(I);
12440
+ return d(T);
12461
12441
  },
12462
12442
  set streamAttachments(j) {
12463
- v(I, C(j));
12443
+ v(T, C(j));
12464
12444
  },
12465
12445
  get streamedAgent() {
12466
12446
  return d(F);
@@ -12489,7 +12469,7 @@ function qo(t, e) {
12489
12469
  });
12490
12470
  var pe = M(st, 2);
12491
12471
  bo(pe, {
12492
- sendMessage: ye,
12472
+ sendMessage: ze,
12493
12473
  stopMessage: lt,
12494
12474
  uploadFiles: Ke,
12495
12475
  get loading() {
@@ -12541,10 +12521,10 @@ function qo(t, e) {
12541
12521
  v(D, C(j));
12542
12522
  },
12543
12523
  get uploadProgress() {
12544
- return d(T);
12524
+ return d(I);
12545
12525
  },
12546
12526
  set uploadProgress(j) {
12547
- v(T, C(j));
12527
+ v(I, C(j));
12548
12528
  }
12549
12529
  }), S(Xe, ot);
12550
12530
  };
@@ -12562,7 +12542,7 @@ function qo(t, e) {
12562
12542
  d(_) ? Ce(de) : Ce(Je, !1);
12563
12543
  });
12564
12544
  }
12565
- x(G), nn("dragenter", G, Oe), nn("dragover", G, rt), nn("dragleave", G, W), nn("drop", G, Qe), Nt(3, G, () => Ic, () => ({ y: 50, duration: 500 })), S(U, G);
12545
+ x(G), nn("dragenter", G, Oe), nn("dragover", G, rt), nn("dragleave", G, W), nn("drop", G, Qe), Nt(3, G, () => Tc, () => ({ y: 50, duration: 500 })), S(U, G);
12566
12546
  };
12567
12547
  Q(ut, (U) => {
12568
12548
  d(s) && U(gt);
@@ -12573,14 +12553,14 @@ function qo(t, e) {
12573
12553
  var le = M(y(_e)), Le = y(le, !0);
12574
12554
  x(le), x(_e), x(ct), P(
12575
12555
  (U) => {
12576
- yt(_e, `${`btn ${d(s) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1il33p9`), ke(Le, U);
12556
+ yt(_e, `${`btn ${d(s) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1il33p9`), ye(Le, U);
12577
12557
  },
12578
12558
  [() => Bc()]
12579
12559
  ), S(t, ct), me(), r();
12580
12560
  }
12581
12561
  bn(["mousedown", "click"]);
12582
12562
  xe(qo, {}, [], [], !0);
12583
- function O0(t, e) {
12563
+ function P0(t, e) {
12584
12564
  ge(e, !0);
12585
12565
  let n = m(e, "envId", 7), r = m(e, "token", 7), i = m(e, "lang", 7, "it"), s = m(e, "chatId", 7), a = m(e, "agentId", 7), o = m(e, "gendocId", 7), l = m(e, "gendocName", 7);
12586
12566
  Xi.set({
@@ -12592,6 +12572,14 @@ function O0(t, e) {
12592
12572
  agentId: a(),
12593
12573
  gendocId: o(),
12594
12574
  gendocName: l()
12575
+ }), console.log("Chat component initialized with props:", {
12576
+ envId: n(),
12577
+ token: r(),
12578
+ lang: i(),
12579
+ chatId: s(),
12580
+ agentId: a(),
12581
+ gendocId: o(),
12582
+ gendocName: l()
12595
12583
  });
12596
12584
  function c(u) {
12597
12585
  Fr.set({ chatId: u });
@@ -12643,7 +12631,7 @@ function O0(t, e) {
12643
12631
  });
12644
12632
  }
12645
12633
  customElements.define("akb-chat", xe(
12646
- O0,
12634
+ P0,
12647
12635
  {
12648
12636
  token: {
12649
12637
  attribute: "aks-token",
@@ -12664,19 +12652,23 @@ customElements.define("akb-chat", xe(
12664
12652
  agentId: {
12665
12653
  attribute: "agent-id",
12666
12654
  reflect: !0,
12667
- type: "Number"
12655
+ type: "String"
12668
12656
  },
12669
12657
  gendocId: {
12670
12658
  attribute: "gendoc-id",
12671
12659
  reflect: !0,
12672
12660
  type: "String"
12673
12661
  },
12674
- gendocName: {}
12662
+ gendocName: {
12663
+ attribute: "gendoc-name",
12664
+ reflect: !0,
12665
+ type: "String"
12666
+ }
12675
12667
  },
12676
12668
  [],
12677
12669
  ["open"],
12678
12670
  !1
12679
12671
  ));
12680
12672
  export {
12681
- O0 as ChatComponent
12673
+ P0 as ChatComponent
12682
12674
  };