akpm-knowledge-base-chat 2.0.62 → 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.
- package/CDN/akb-chat.js +551 -543
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 2.0.
|
|
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,
|
|
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
|
|
109
|
+
function Il() {
|
|
110
110
|
throw new Error("https://svelte.dev/e/state_unsafe_local_read");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
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)) &&
|
|
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
|
-
|
|
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
|
|
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 || (
|
|
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 ?
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
564
|
+
const e = Tn(Sn, t, !0);
|
|
565
565
|
return (n = {}) => new Promise((r) => {
|
|
566
|
-
n.outro ?
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
606
|
+
return Tn(sr | Hr | e, t, !0);
|
|
607
607
|
}
|
|
608
608
|
function Fn(t, e = !0) {
|
|
609
|
-
return
|
|
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
|
|
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
|
-
|
|
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 &&
|
|
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
|
|
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
|
|
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,
|
|
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 &
|
|
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 &
|
|
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 ^=
|
|
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,
|
|
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 =
|
|
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,
|
|
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,
|
|
851
|
-
for (f.length =
|
|
852
|
-
f[
|
|
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 =
|
|
856
|
+
for (h = Tt; h < f.length; h++)
|
|
857
857
|
((p = f[h]).reactions ?? (p.reactions = [])).push(t);
|
|
858
|
-
} else f !== null &&
|
|
859
|
-
if (Wr() && Qt !== null && !(t.f & (At |
|
|
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,
|
|
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,
|
|
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) :
|
|
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 ?
|
|
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) &&
|
|
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[
|
|
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 (
|
|
1273
|
-
h ? p.push(
|
|
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
|
|
1280
|
+
for (let T of p)
|
|
1281
1281
|
queueMicrotask(() => {
|
|
1282
|
-
throw
|
|
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
|
|
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 &&
|
|
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 &&
|
|
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,
|
|
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[
|
|
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
|
-
|
|
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 &&
|
|
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 = [],
|
|
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
|
-
|
|
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 (
|
|
1598
|
-
var
|
|
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
|
-
|
|
1603
|
+
I,
|
|
1604
1604
|
e,
|
|
1605
1605
|
k,
|
|
1606
1606
|
k === null ? e.first : k.next,
|
|
1607
|
-
|
|
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,
|
|
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
|
|
1642
|
-
if (
|
|
1643
|
-
var
|
|
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 <
|
|
1645
|
+
for (L = 0; L < ne; L += 1)
|
|
1646
1646
|
(Oe = Y[L].a) == null || Oe.measure();
|
|
1647
|
-
for (L = 0; L <
|
|
1647
|
+
for (L = 0; L < ne; L += 1)
|
|
1648
1648
|
(rt = Y[L].a) == null || rt.fix();
|
|
1649
1649
|
}
|
|
1650
|
-
nc(e, Y,
|
|
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
|
|
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
|
|
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),
|
|
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],
|
|
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(
|
|
1842
|
-
o[b].call(this,
|
|
1841
|
+
let L = function(I) {
|
|
1842
|
+
o[b].call(this, I);
|
|
1843
1843
|
};
|
|
1844
|
-
o[F] = Ha(A, t, L,
|
|
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
|
|
1869
|
+
let T = (
|
|
1870
1870
|
/** @type {HTMLInputElement} */
|
|
1871
1871
|
t
|
|
1872
1872
|
);
|
|
1873
1873
|
if (k === "value") {
|
|
1874
|
-
let F =
|
|
1875
|
-
|
|
1874
|
+
let F = T.defaultValue;
|
|
1875
|
+
T.removeAttribute(k), T.defaultValue = F;
|
|
1876
1876
|
} else {
|
|
1877
|
-
let F =
|
|
1878
|
-
|
|
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
|
|
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(
|
|
1982
|
+
Zt(T), Ft(F);
|
|
1983
1983
|
}
|
|
1984
1984
|
}
|
|
1985
1985
|
var k = {
|
|
1986
1986
|
is_global: o,
|
|
1987
1987
|
in() {
|
|
1988
|
-
var
|
|
1988
|
+
var T;
|
|
1989
1989
|
if (e.inert = u, !i) {
|
|
1990
|
-
p == null || p.abort(), (
|
|
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(
|
|
1997
|
+
out(T) {
|
|
1998
1998
|
if (!s) {
|
|
1999
|
-
|
|
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"),
|
|
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
|
-
),
|
|
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
|
|
2073
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
2212
|
+
Is(e, r), Sr(n.a);
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
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
|
|
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
|
|
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 && (((
|
|
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 =
|
|
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
|
|
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
|
|
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) || (
|
|
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
|
|
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 =
|
|
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
|
|
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
|
-
),
|
|
3284
|
+
), Iu = (
|
|
3285
3285
|
/** @type {(inputs: UnmuteInputs) => LocalizedString} */
|
|
3286
3286
|
() => (
|
|
3287
3287
|
/** @type {LocalizedString} */
|
|
3288
3288
|
"Unmute"
|
|
3289
3289
|
)
|
|
3290
|
-
),
|
|
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() :
|
|
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
|
-
),
|
|
3578
|
+
), Id = (
|
|
3579
3579
|
/** @type {(inputs: Sources_CopiedInputs) => LocalizedString} */
|
|
3580
3580
|
() => (
|
|
3581
3581
|
/** @type {LocalizedString} */
|
|
3582
3582
|
"Fonti copiate!"
|
|
3583
3583
|
)
|
|
3584
|
-
),
|
|
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" ?
|
|
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()),
|
|
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),
|
|
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
|
|
3877
|
-
x(
|
|
3878
|
-
O(
|
|
3879
|
-
}), S(Y,
|
|
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
|
|
3883
|
-
(
|
|
3882
|
+
var ne;
|
|
3883
|
+
(ne = i()) != null && ne.title && Y(w);
|
|
3884
3884
|
});
|
|
3885
3885
|
}
|
|
3886
|
-
var
|
|
3886
|
+
var T = M(b, 2), F = y(T);
|
|
3887
3887
|
{
|
|
3888
3888
|
var A = (Y) => {
|
|
3889
|
-
var
|
|
3890
|
-
|
|
3891
|
-
(
|
|
3892
|
-
O(
|
|
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
|
-
[() =>
|
|
3895
|
-
), S(Y,
|
|
3894
|
+
[() => Tu()]
|
|
3895
|
+
), S(Y, ne);
|
|
3896
3896
|
}, L = (Y) => {
|
|
3897
|
-
var
|
|
3898
|
-
|
|
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
|
|
3905
|
-
|
|
3906
|
-
var
|
|
3907
|
-
(
|
|
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(
|
|
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
|
|
3915
|
-
S(Y,
|
|
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(
|
|
3924
|
-
(Y,
|
|
3925
|
-
O(
|
|
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),
|
|
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),
|
|
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),
|
|
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
|
|
4733
|
-
return x(
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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
|
|
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),
|
|
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 =
|
|
5299
|
+
var c = Th();
|
|
5300
5300
|
return ft(c, 5, () => Bt(5, 1), vt, (f, h) => {
|
|
5301
|
-
var p =
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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
|
|
6485
|
-
ge(e, !1),
|
|
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
|
-
|
|
6524
|
+
Ip,
|
|
6525
6525
|
{
|
|
6526
6526
|
color: {},
|
|
6527
6527
|
unit: {},
|
|
@@ -6533,7 +6533,7 @@ xe(
|
|
|
6533
6533
|
[],
|
|
6534
6534
|
!0
|
|
6535
6535
|
);
|
|
6536
|
-
var
|
|
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),
|
|
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 =
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
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
|
-
},
|
|
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),
|
|
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(
|
|
7033
|
-
var Be = M(
|
|
7034
|
-
ac(
|
|
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(
|
|
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) =>
|
|
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
|
|
7056
|
-
x($e), x(
|
|
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
|
|
7058
|
+
var Te = St(), $e = nt(Te);
|
|
7059
7059
|
{
|
|
7060
|
-
var et = (
|
|
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) =>
|
|
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) =>
|
|
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) =>
|
|
7077
|
+
P((Le) => ye(le, Le), [() => Bd()]), S(_e, le);
|
|
7078
7078
|
}, gt = (_e) => {
|
|
7079
7079
|
var le = hr();
|
|
7080
|
-
P((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(
|
|
7107
|
-
}, be = (
|
|
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,
|
|
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(() =>
|
|
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}`),
|
|
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(
|
|
7141
|
+
}), x(oe), S(Se, oe);
|
|
7142
7142
|
};
|
|
7143
7143
|
Q(
|
|
7144
7144
|
$e,
|
|
7145
|
-
(
|
|
7146
|
-
d(_).length === 0 ?
|
|
7145
|
+
(Se) => {
|
|
7146
|
+
d(_).length === 0 ? Se(et) : Se(be, !1);
|
|
7147
7147
|
},
|
|
7148
7148
|
!0
|
|
7149
7149
|
);
|
|
7150
7150
|
}
|
|
7151
|
-
S(V,
|
|
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
|
-
|
|
7170
|
-
${Qe ?? ""}`), O(
|
|
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(),
|
|
@@ -7366,8 +7366,8 @@ const Pr = (t) => {
|
|
|
7366
7366
|
lang: Pr(a)
|
|
7367
7367
|
}));
|
|
7368
7368
|
}, l.onmessage = (w) => {
|
|
7369
|
-
let
|
|
7370
|
-
s(
|
|
7369
|
+
let T = JSON.parse(w.data);
|
|
7370
|
+
s(T.message, T.attachments, T.agent);
|
|
7371
7371
|
}, l.onerror = (w) => {
|
|
7372
7372
|
console.error("WebSocket error:", w), b(new Error("WebSocket connection error"));
|
|
7373
7373
|
}, l.onclose = (w) => {
|
|
@@ -7463,7 +7463,7 @@ const Pr = (t) => {
|
|
|
7463
7463
|
body: JSON.stringify({ fileId: t, filename: e })
|
|
7464
7464
|
})).ok)
|
|
7465
7465
|
throw new Error("Failed to delete file");
|
|
7466
|
-
},
|
|
7466
|
+
}, Iv = async (t) => {
|
|
7467
7467
|
if (!(await fetch(`${B.getUrl()}/chat/${t}/read`, {
|
|
7468
7468
|
method: "POST",
|
|
7469
7469
|
headers: {
|
|
@@ -7473,7 +7473,7 @@ const Pr = (t) => {
|
|
|
7473
7473
|
}
|
|
7474
7474
|
})).ok)
|
|
7475
7475
|
throw new Error("Failed to mark chat as read");
|
|
7476
|
-
},
|
|
7476
|
+
}, Tv = async () => {
|
|
7477
7477
|
const t = await fetch(`${B.getUrl()}/chat/unread`, {
|
|
7478
7478
|
headers: {
|
|
7479
7479
|
akstoken: B.getToken(),
|
|
@@ -7494,8 +7494,8 @@ const Pr = (t) => {
|
|
|
7494
7494
|
insertMessage: mo,
|
|
7495
7495
|
uploadFile: Sv,
|
|
7496
7496
|
deleteFile: Cv,
|
|
7497
|
-
readChat:
|
|
7498
|
-
getUnreadChats:
|
|
7497
|
+
readChat: Iv,
|
|
7498
|
+
getUnreadChats: Tv
|
|
7499
7499
|
};
|
|
7500
7500
|
class Ev {
|
|
7501
7501
|
// Traccia il testo accumulato durante la registrazione
|
|
@@ -7730,8 +7730,8 @@ const Vv = {
|
|
|
7730
7730
|
}`
|
|
7731
7731
|
};
|
|
7732
7732
|
function bo(t, e) {
|
|
7733
|
-
ge(e, !0),
|
|
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(""),
|
|
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
7735
|
typeof window < "u" && (F = new Ev(s(), {
|
|
7736
7736
|
onTranscriptUpdate: (z, N) => {
|
|
7737
7737
|
z && v(_, d(_) + (z + " "));
|
|
@@ -7758,12 +7758,12 @@ function bo(t, e) {
|
|
|
7758
7758
|
console.error("Upload error:", z);
|
|
7759
7759
|
}
|
|
7760
7760
|
}));
|
|
7761
|
-
let L = J(!1),
|
|
7761
|
+
let L = J(!1), I = J(!1), D = J(null), X = /* @__PURE__ */ Ve(() => ur(a()));
|
|
7762
7762
|
const ue = 20, Be = 5, Y = 0.5;
|
|
7763
|
-
function
|
|
7763
|
+
function ne(z, N) {
|
|
7764
7764
|
return z ? a() === "normative" || a() === "suite" ? d(X).name : "" : N;
|
|
7765
7765
|
}
|
|
7766
|
-
function
|
|
7766
|
+
function ze() {
|
|
7767
7767
|
v(_, ""), o({}), d(k) && (d(k).style.height = "auto");
|
|
7768
7768
|
}
|
|
7769
7769
|
const lt = () => {
|
|
@@ -7780,7 +7780,7 @@ function bo(t, e) {
|
|
|
7780
7780
|
behavior: "smooth"
|
|
7781
7781
|
});
|
|
7782
7782
|
}, Oe = () => {
|
|
7783
|
-
i() || !d(_).trim() || (n()(d(_), a()),
|
|
7783
|
+
i() || !d(_).trim() || (n()(d(_), a()), ze(), d(k) && d(k).blur());
|
|
7784
7784
|
}, rt = async () => {
|
|
7785
7785
|
i() || !F || (v(_, ""), v(w, ""), await F.startRecording());
|
|
7786
7786
|
}, W = () => {
|
|
@@ -7815,12 +7815,12 @@ function bo(t, e) {
|
|
|
7815
7815
|
}), at(() => () => {
|
|
7816
7816
|
F && F.cleanup();
|
|
7817
7817
|
});
|
|
7818
|
-
var
|
|
7818
|
+
var Te = Xv(), $e = nt(Te), et = y($e);
|
|
7819
7819
|
{
|
|
7820
7820
|
var be = (z) => {
|
|
7821
7821
|
var N = Rv(), ce = M(y(N), 2), ee = y(ce, !0);
|
|
7822
|
-
x(ce), x(N), P((Ee) =>
|
|
7823
|
-
},
|
|
7822
|
+
x(ce), x(N), P((Ee) => ye(ee, Ee), [() => Vd()]), S(z, N);
|
|
7823
|
+
}, Se = (z) => {
|
|
7824
7824
|
var N = Zv(), ce = nt(N), ee = y(ce);
|
|
7825
7825
|
Vl(ee), ee.__input = [
|
|
7826
7826
|
jv,
|
|
@@ -7839,7 +7839,7 @@ function bo(t, e) {
|
|
|
7839
7839
|
Z.__click = [
|
|
7840
7840
|
Lv,
|
|
7841
7841
|
L,
|
|
7842
|
-
|
|
7842
|
+
I
|
|
7843
7843
|
];
|
|
7844
7844
|
var he = M(y(Z), 2), st = y(he);
|
|
7845
7845
|
x(he), x(Z);
|
|
@@ -7847,9 +7847,9 @@ function bo(t, e) {
|
|
|
7847
7847
|
pe.__click = Qe;
|
|
7848
7848
|
var j = M(y(pe), 2), Ze = y(j, !0);
|
|
7849
7849
|
x(j), x(pe), x(q), P(
|
|
7850
|
-
(
|
|
7851
|
-
yt(Z, `${
|
|
7852
|
-
${si ?? ""}`), yt(pe, `${ai ?? ""} svelte-52jnh1`), pe.disabled = fr,
|
|
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);
|
|
7853
7853
|
},
|
|
7854
7854
|
[
|
|
7855
7855
|
() => `dropdown-option ${H.includes(a()) ? "" : "option-disabled"}`,
|
|
@@ -7881,21 +7881,21 @@ function bo(t, e) {
|
|
|
7881
7881
|
U.value = (U.__value = "kb") == null ? "" : "kb";
|
|
7882
7882
|
var G = M(U);
|
|
7883
7883
|
G.value = (G.__value = "gendoc") == null ? "" : "gendoc";
|
|
7884
|
-
var
|
|
7885
|
-
|
|
7886
|
-
var
|
|
7884
|
+
var se = M(G);
|
|
7885
|
+
se.value = (se.__value = "transcriptions") == null ? "" : "transcriptions";
|
|
7886
|
+
var ie = M(se);
|
|
7887
7887
|
{
|
|
7888
|
-
var
|
|
7888
|
+
var te = (re) => {
|
|
7889
7889
|
var q = Fv();
|
|
7890
7890
|
q.value = (q.__value = "audit_handler") == null ? "" : "audit_handler", S(re, q);
|
|
7891
7891
|
};
|
|
7892
|
-
Q(
|
|
7893
|
-
l() >= 40 && re(
|
|
7892
|
+
Q(ie, (re) => {
|
|
7893
|
+
l() >= 40 && re(te);
|
|
7894
7894
|
});
|
|
7895
7895
|
}
|
|
7896
|
-
var
|
|
7897
|
-
|
|
7898
|
-
var ve = M(
|
|
7896
|
+
var ke = M(ie);
|
|
7897
|
+
ke.value = (ke.__value = "suite_agent") == null ? "" : "suite_agent";
|
|
7898
|
+
var ve = M(ke);
|
|
7899
7899
|
{
|
|
7900
7900
|
var de = (re) => {
|
|
7901
7901
|
var q = Mv();
|
|
@@ -7909,13 +7909,13 @@ function bo(t, e) {
|
|
|
7909
7909
|
var Je = M(ut, 2);
|
|
7910
7910
|
ft(Je, 21, () => Object.entries(o()), vt, (re, q) => {
|
|
7911
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;
|
|
7912
|
-
var
|
|
7912
|
+
var It = Bv(), Pt = y(It), qt = M(Pt, 2);
|
|
7913
7913
|
{
|
|
7914
7914
|
var si = (Ht) => {
|
|
7915
7915
|
var Ot = Pv(), Hn = y(Ot, !0);
|
|
7916
7916
|
x(Ot), P(
|
|
7917
7917
|
(hs) => {
|
|
7918
|
-
O(Ot, "title", hs),
|
|
7918
|
+
O(Ot, "title", hs), ye(Hn, hs);
|
|
7919
7919
|
},
|
|
7920
7920
|
[() => he().split(".")[0]]
|
|
7921
7921
|
), S(Ht, Ot);
|
|
@@ -7929,7 +7929,7 @@ function bo(t, e) {
|
|
|
7929
7929
|
pe
|
|
7930
7930
|
];
|
|
7931
7931
|
var Hn = y(Ot, !0);
|
|
7932
|
-
x(Ot), P(() =>
|
|
7932
|
+
x(Ot), P(() => ye(Hn, he())), S(Ht, Ot);
|
|
7933
7933
|
};
|
|
7934
7934
|
Q(qt, (Ht) => {
|
|
7935
7935
|
Ze() ? Ht(si) : Ht(ai, !1);
|
|
@@ -7942,16 +7942,16 @@ function bo(t, e) {
|
|
|
7942
7942
|
Z,
|
|
7943
7943
|
he,
|
|
7944
7944
|
j
|
|
7945
|
-
], x(
|
|
7945
|
+
], x(It), P(
|
|
7946
7946
|
(Ht, Ot, Hn) => {
|
|
7947
|
-
yt(
|
|
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`);
|
|
7948
7948
|
},
|
|
7949
7949
|
[
|
|
7950
|
-
() =>
|
|
7950
|
+
() => ne(Ze() ?? !1, he()),
|
|
7951
7951
|
() => `fa-solid ${pv(he())}`,
|
|
7952
7952
|
() => he().toLowerCase().endsWith(".tldv") ? "color: #1d1dff" : ""
|
|
7953
7953
|
]
|
|
7954
|
-
), S(re,
|
|
7954
|
+
), S(re, It);
|
|
7955
7955
|
}), x(Je), Rr(Je, (re) => v(D, re), () => d(D));
|
|
7956
7956
|
var Ce = M(Je, 2), fe = y(Ce);
|
|
7957
7957
|
{
|
|
@@ -8004,8 +8004,8 @@ function bo(t, e) {
|
|
|
8004
8004
|
}, st = (pe) => {
|
|
8005
8005
|
var j = Wv();
|
|
8006
8006
|
j.__click = Oe, P(
|
|
8007
|
-
(Ze,
|
|
8008
|
-
O(j, "title", Ze), j.disabled =
|
|
8007
|
+
(Ze, It) => {
|
|
8008
|
+
O(j, "title", Ze), j.disabled = It;
|
|
8009
8009
|
},
|
|
8010
8010
|
[
|
|
8011
8011
|
() => bu(),
|
|
@@ -8029,7 +8029,7 @@ function bo(t, e) {
|
|
|
8029
8029
|
}
|
|
8030
8030
|
x(Ce), x(Ae), x(Ee), P(
|
|
8031
8031
|
(re, q, Z) => {
|
|
8032
|
-
O(ee, "placeholder", re), Za(ee, d(
|
|
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);
|
|
8033
8033
|
},
|
|
8034
8034
|
[
|
|
8035
8035
|
() => Yc(),
|
|
@@ -8042,7 +8042,7 @@ function bo(t, e) {
|
|
|
8042
8042
|
};
|
|
8043
8043
|
Q(et, (z) => {
|
|
8044
8044
|
var N;
|
|
8045
|
-
(N = u()) != null && N.state.blockChat ? z(be) : z(
|
|
8045
|
+
(N = u()) != null && N.state.blockChat ? z(be) : z(Se, !1);
|
|
8046
8046
|
});
|
|
8047
8047
|
}
|
|
8048
8048
|
x($e);
|
|
@@ -8057,10 +8057,10 @@ function bo(t, e) {
|
|
|
8057
8057
|
o(N);
|
|
8058
8058
|
},
|
|
8059
8059
|
get showDocumentSearchModal() {
|
|
8060
|
-
return d(
|
|
8060
|
+
return d(I);
|
|
8061
8061
|
},
|
|
8062
8062
|
set showDocumentSearchModal(N) {
|
|
8063
|
-
v(
|
|
8063
|
+
v(I, C(N));
|
|
8064
8064
|
},
|
|
8065
8065
|
get modeSelected() {
|
|
8066
8066
|
return a();
|
|
@@ -8071,10 +8071,10 @@ function bo(t, e) {
|
|
|
8071
8071
|
});
|
|
8072
8072
|
};
|
|
8073
8073
|
Q(oe, (z) => {
|
|
8074
|
-
d(
|
|
8074
|
+
d(I) && z(ae);
|
|
8075
8075
|
});
|
|
8076
8076
|
}
|
|
8077
|
-
return Nt(3, $e, () => un, () => ({ duration: 300, delay: 200 })), S(t,
|
|
8077
|
+
return Nt(3, $e, () => un, () => ({ duration: 300, delay: 200 })), S(t, Te), me({
|
|
8078
8078
|
get sendMessage() {
|
|
8079
8079
|
return n();
|
|
8080
8080
|
},
|
|
@@ -8222,7 +8222,7 @@ const wo = /^[a-z0-9]+(-[a-z0-9]+)*$/, ti = (t, e, n, r = "") => {
|
|
|
8222
8222
|
}), ni = Object.freeze({
|
|
8223
8223
|
...xo,
|
|
8224
8224
|
...Or
|
|
8225
|
-
}),
|
|
8225
|
+
}), Ii = Object.freeze({
|
|
8226
8226
|
...ni,
|
|
8227
8227
|
body: "",
|
|
8228
8228
|
hidden: !1
|
|
@@ -8235,7 +8235,7 @@ function Qv(t, e) {
|
|
|
8235
8235
|
}
|
|
8236
8236
|
function qs(t, e) {
|
|
8237
8237
|
const n = Qv(t, e);
|
|
8238
|
-
for (const r in
|
|
8238
|
+
for (const r in Ii)
|
|
8239
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]);
|
|
8240
8240
|
return n;
|
|
8241
8241
|
}
|
|
@@ -8305,7 +8305,7 @@ function ko(t) {
|
|
|
8305
8305
|
typeof s.body != "string" || // Check other props
|
|
8306
8306
|
!di(
|
|
8307
8307
|
s,
|
|
8308
|
-
|
|
8308
|
+
Ii
|
|
8309
8309
|
)
|
|
8310
8310
|
)
|
|
8311
8311
|
return null;
|
|
@@ -8319,7 +8319,7 @@ function ko(t) {
|
|
|
8319
8319
|
typeof a != "string" || !n[a] && !r[a] || // Check other props
|
|
8320
8320
|
!di(
|
|
8321
8321
|
s,
|
|
8322
|
-
|
|
8322
|
+
Ii
|
|
8323
8323
|
)
|
|
8324
8324
|
)
|
|
8325
8325
|
return null;
|
|
@@ -8462,14 +8462,14 @@ function hg(t, e) {
|
|
|
8462
8462
|
let s = n.body;
|
|
8463
8463
|
[n, r].forEach((k) => {
|
|
8464
8464
|
const R = [], b = k.hFlip, w = k.vFlip;
|
|
8465
|
-
let
|
|
8466
|
-
b ? w ?
|
|
8465
|
+
let T = k.rotate;
|
|
8466
|
+
b ? w ? T += 2 : (R.push(
|
|
8467
8467
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
|
8468
8468
|
), R.push("scale(-1 1)"), i.top = i.left = 0) : w && (R.push(
|
|
8469
8469
|
"translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
|
|
8470
8470
|
), R.push("scale(1 -1)"), i.top = i.left = 0);
|
|
8471
8471
|
let F;
|
|
8472
|
-
switch (
|
|
8472
|
+
switch (T < 0 && (T -= Math.floor(T / 4) * 4), T = T % 4, T) {
|
|
8473
8473
|
case 1:
|
|
8474
8474
|
F = i.height / 2 + i.top, R.unshift(
|
|
8475
8475
|
"rotate(90 " + F.toString() + " " + F.toString() + ")"
|
|
@@ -8486,7 +8486,7 @@ function hg(t, e) {
|
|
|
8486
8486
|
);
|
|
8487
8487
|
break;
|
|
8488
8488
|
}
|
|
8489
|
-
|
|
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(
|
|
8490
8490
|
s,
|
|
8491
8491
|
'<g transform="' + R.join(" ") + '">',
|
|
8492
8492
|
"</g>"
|
|
@@ -8526,12 +8526,12 @@ function mg(t, e = vg) {
|
|
|
8526
8526
|
);
|
|
8527
8527
|
}), t = t.replace(new RegExp(i, "g"), ""), t;
|
|
8528
8528
|
}
|
|
8529
|
-
const
|
|
8529
|
+
const Ti = /* @__PURE__ */ Object.create(null);
|
|
8530
8530
|
function bg(t, e) {
|
|
8531
|
-
|
|
8531
|
+
Ti[t] = e;
|
|
8532
8532
|
}
|
|
8533
8533
|
function Ei(t) {
|
|
8534
|
-
return
|
|
8534
|
+
return Ti[t] || Ti[""];
|
|
8535
8535
|
}
|
|
8536
8536
|
function ts(t) {
|
|
8537
8537
|
let e;
|
|
@@ -8678,7 +8678,7 @@ const Sg = (t, e, n) => {
|
|
|
8678
8678
|
prepare: yg,
|
|
8679
8679
|
send: Sg
|
|
8680
8680
|
};
|
|
8681
|
-
function
|
|
8681
|
+
function Ig(t) {
|
|
8682
8682
|
const e = {
|
|
8683
8683
|
loaded: [],
|
|
8684
8684
|
missing: [],
|
|
@@ -8705,13 +8705,13 @@ function Tg(t) {
|
|
|
8705
8705
|
u.push(f);
|
|
8706
8706
|
}), e;
|
|
8707
8707
|
}
|
|
8708
|
-
function
|
|
8708
|
+
function Io(t, e) {
|
|
8709
8709
|
t.forEach((n) => {
|
|
8710
8710
|
const r = n.loaderCallbacks;
|
|
8711
8711
|
r && (n.loaderCallbacks = r.filter((i) => i.id !== e));
|
|
8712
8712
|
});
|
|
8713
8713
|
}
|
|
8714
|
-
function
|
|
8714
|
+
function Tg(t) {
|
|
8715
8715
|
t.pendingCallbacksFlag || (t.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
8716
8716
|
t.pendingCallbacksFlag = !1;
|
|
8717
8717
|
const e = t.loaderCallbacks ? t.loaderCallbacks.slice(0) : [];
|
|
@@ -8740,7 +8740,7 @@ function Ig(t) {
|
|
|
8740
8740
|
else
|
|
8741
8741
|
return n = !0, !0;
|
|
8742
8742
|
return !1;
|
|
8743
|
-
}), a.pending.length !== o && (n ||
|
|
8743
|
+
}), a.pending.length !== o && (n || Io([t], s.id), s.callback(
|
|
8744
8744
|
a.loaded.slice(0),
|
|
8745
8745
|
a.missing.slice(0),
|
|
8746
8746
|
a.pending.slice(0),
|
|
@@ -8751,7 +8751,7 @@ function Ig(t) {
|
|
|
8751
8751
|
}
|
|
8752
8752
|
let Eg = 0;
|
|
8753
8753
|
function $g(t, e, n) {
|
|
8754
|
-
const r = Eg++, i =
|
|
8754
|
+
const r = Eg++, i = Io.bind(null, n, r);
|
|
8755
8755
|
if (!e.pending.length)
|
|
8756
8756
|
return i;
|
|
8757
8757
|
const s = {
|
|
@@ -8785,8 +8785,8 @@ function Rg(t, e, n, r) {
|
|
|
8785
8785
|
if (t.random) {
|
|
8786
8786
|
let L = t.resources.slice(0);
|
|
8787
8787
|
for (a = []; L.length > 1; ) {
|
|
8788
|
-
const
|
|
8789
|
-
a.push(L[
|
|
8788
|
+
const I = Math.floor(Math.random() * L.length);
|
|
8789
|
+
a.push(L[I]), L = L.slice(0, I).concat(L.slice(I + 1));
|
|
8790
8790
|
}
|
|
8791
8791
|
a = a.concat(L);
|
|
8792
8792
|
} else
|
|
@@ -8802,8 +8802,8 @@ function Rg(t, e, n, r) {
|
|
|
8802
8802
|
L.status === "pending" && (L.status = "aborted");
|
|
8803
8803
|
}), h = [];
|
|
8804
8804
|
}
|
|
8805
|
-
function R(L,
|
|
8806
|
-
|
|
8805
|
+
function R(L, I) {
|
|
8806
|
+
I && (p = []), typeof L == "function" && p.push(L);
|
|
8807
8807
|
}
|
|
8808
8808
|
function b() {
|
|
8809
8809
|
return {
|
|
@@ -8821,13 +8821,13 @@ function Rg(t, e, n, r) {
|
|
|
8821
8821
|
L(void 0, u);
|
|
8822
8822
|
});
|
|
8823
8823
|
}
|
|
8824
|
-
function
|
|
8824
|
+
function T() {
|
|
8825
8825
|
h.forEach((L) => {
|
|
8826
8826
|
L.status === "pending" && (L.status = "aborted");
|
|
8827
8827
|
}), h = [];
|
|
8828
8828
|
}
|
|
8829
|
-
function F(L,
|
|
8830
|
-
const X =
|
|
8829
|
+
function F(L, I, D) {
|
|
8830
|
+
const X = I !== "success";
|
|
8831
8831
|
switch (h = h.filter((ue) => ue !== L), l) {
|
|
8832
8832
|
case "pending":
|
|
8833
8833
|
break;
|
|
@@ -8838,7 +8838,7 @@ function Rg(t, e, n, r) {
|
|
|
8838
8838
|
default:
|
|
8839
8839
|
return;
|
|
8840
8840
|
}
|
|
8841
|
-
if (
|
|
8841
|
+
if (I === "abort") {
|
|
8842
8842
|
u = D, w();
|
|
8843
8843
|
return;
|
|
8844
8844
|
}
|
|
@@ -8846,7 +8846,7 @@ function Rg(t, e, n, r) {
|
|
|
8846
8846
|
u = D, h.length || (a.length ? A() : w());
|
|
8847
8847
|
return;
|
|
8848
8848
|
}
|
|
8849
|
-
if (_(),
|
|
8849
|
+
if (_(), T(), !t.random) {
|
|
8850
8850
|
const ue = t.resources.indexOf(L.resource);
|
|
8851
8851
|
ue !== -1 && ue !== t.index && (t.index = ue);
|
|
8852
8852
|
}
|
|
@@ -8862,25 +8862,25 @@ function Rg(t, e, n, r) {
|
|
|
8862
8862
|
if (L === void 0) {
|
|
8863
8863
|
if (h.length) {
|
|
8864
8864
|
f = setTimeout(() => {
|
|
8865
|
-
_(), l === "pending" && (
|
|
8865
|
+
_(), l === "pending" && (T(), w());
|
|
8866
8866
|
}, t.timeout);
|
|
8867
8867
|
return;
|
|
8868
8868
|
}
|
|
8869
8869
|
w();
|
|
8870
8870
|
return;
|
|
8871
8871
|
}
|
|
8872
|
-
const
|
|
8872
|
+
const I = {
|
|
8873
8873
|
status: "pending",
|
|
8874
8874
|
resource: L,
|
|
8875
8875
|
callback: (D, X) => {
|
|
8876
|
-
F(
|
|
8876
|
+
F(I, D, X);
|
|
8877
8877
|
}
|
|
8878
8878
|
};
|
|
8879
|
-
h.push(
|
|
8879
|
+
h.push(I), c++, f = setTimeout(A, t.rotate), n(L, e, I.callback);
|
|
8880
8880
|
}
|
|
8881
8881
|
return setTimeout(A), b;
|
|
8882
8882
|
}
|
|
8883
|
-
function
|
|
8883
|
+
function To(t) {
|
|
8884
8884
|
const e = {
|
|
8885
8885
|
...Lg,
|
|
8886
8886
|
...t
|
|
@@ -8921,7 +8921,7 @@ function jg(t) {
|
|
|
8921
8921
|
const e = rs(t);
|
|
8922
8922
|
if (!e)
|
|
8923
8923
|
return;
|
|
8924
|
-
const n =
|
|
8924
|
+
const n = To(e), r = {
|
|
8925
8925
|
config: e,
|
|
8926
8926
|
redundancy: n
|
|
8927
8927
|
};
|
|
@@ -8941,7 +8941,7 @@ function Dg(t, e, n) {
|
|
|
8941
8941
|
} else {
|
|
8942
8942
|
const s = ts(t);
|
|
8943
8943
|
if (s) {
|
|
8944
|
-
r =
|
|
8944
|
+
r = To(s);
|
|
8945
8945
|
const a = t.resources ? t.resources[0] : "", o = Ei(a);
|
|
8946
8946
|
o && (i = o.send);
|
|
8947
8947
|
}
|
|
@@ -8952,7 +8952,7 @@ function Ws() {
|
|
|
8952
8952
|
}
|
|
8953
8953
|
function Fg(t) {
|
|
8954
8954
|
t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
|
|
8955
|
-
t.iconsLoaderFlag = !1,
|
|
8955
|
+
t.iconsLoaderFlag = !1, Tg(t);
|
|
8956
8956
|
}));
|
|
8957
8957
|
}
|
|
8958
8958
|
function Mg(t) {
|
|
@@ -9036,7 +9036,7 @@ function Pg(t, e) {
|
|
|
9036
9036
|
}));
|
|
9037
9037
|
}
|
|
9038
9038
|
const Og = (t, e) => {
|
|
9039
|
-
const n = Ag(t, !0, zo()), r =
|
|
9039
|
+
const n = Ag(t, !0, zo()), r = Ig(n);
|
|
9040
9040
|
if (!r.pending.length) {
|
|
9041
9041
|
let l = !0;
|
|
9042
9042
|
return e && setTimeout(() => {
|
|
@@ -9331,13 +9331,13 @@ function fn(t, e) {
|
|
|
9331
9331
|
{
|
|
9332
9332
|
var k = (b) => {
|
|
9333
9333
|
var w = Kg();
|
|
9334
|
-
let
|
|
9334
|
+
let T;
|
|
9335
9335
|
var F = y(w);
|
|
9336
|
-
xr(F, () => d(a).body, !0, !1), x(w), P(() =>
|
|
9336
|
+
xr(F, () => d(a).body, !0, !1), x(w), P(() => T = ys(w, T, { ...d(a).attributes }, void 0, !0)), S(b, w);
|
|
9337
9337
|
}, R = (b) => {
|
|
9338
9338
|
var w = em();
|
|
9339
|
-
let
|
|
9340
|
-
P(() =>
|
|
9339
|
+
let T;
|
|
9340
|
+
P(() => T = ys(w, T, { ...d(a).attributes })), S(b, w);
|
|
9341
9341
|
};
|
|
9342
9342
|
Q(_, (b) => {
|
|
9343
9343
|
d(a).svg ? b(k) : b(R, !1);
|
|
@@ -9468,7 +9468,7 @@ const bt = {
|
|
|
9468
9468
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
9469
9469
|
paragraph: Pe(as).replace("hr", dr).replace("heading", ` *#{1,6} *[^
|
|
9470
9470
|
]`).replace("lheading", Lo).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
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(),
|
|
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 = {
|
|
9472
9472
|
_backpedal: Vn,
|
|
9473
9473
|
// only used for GFM url
|
|
9474
9474
|
anyPunctuation: Sm,
|
|
@@ -9486,7 +9486,7 @@ const bt = {
|
|
|
9486
9486
|
punctuation: gm,
|
|
9487
9487
|
reflink: Oo,
|
|
9488
9488
|
reflinkSearch: $m,
|
|
9489
|
-
tag:
|
|
9489
|
+
tag: Tm,
|
|
9490
9490
|
text: vm,
|
|
9491
9491
|
url: Vn
|
|
9492
9492
|
}, Am = {
|
|
@@ -9762,24 +9762,24 @@ ${f}` : f;
|
|
|
9762
9762
|
`, 1)[0], _ = !h.trim(), k = 0;
|
|
9763
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 + `
|
|
9764
9764
|
`, e = e.substring(p.length + 1), c = !0), !c) {
|
|
9765
|
-
const w = this.rules.other.nextBulletRegex(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);
|
|
9766
9766
|
for (; e; ) {
|
|
9767
|
-
const
|
|
9767
|
+
const I = e.split(`
|
|
9768
9768
|
`, 1)[0];
|
|
9769
9769
|
let D;
|
|
9770
|
-
if (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))
|
|
9771
9771
|
break;
|
|
9772
9772
|
if (D.search(this.rules.other.nonSpaceChar) >= k || !p.trim())
|
|
9773
9773
|
f += `
|
|
9774
9774
|
` + D.slice(k);
|
|
9775
9775
|
else {
|
|
9776
|
-
if (_ || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(h) || A.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))
|
|
9777
9777
|
break;
|
|
9778
9778
|
f += `
|
|
9779
9779
|
` + p;
|
|
9780
9780
|
}
|
|
9781
|
-
!_ && !p.trim() && (_ = !0), u +=
|
|
9782
|
-
`, e = e.substring(
|
|
9781
|
+
!_ && !p.trim() && (_ = !0), u += I + `
|
|
9782
|
+
`, e = e.substring(I.length + 1), h = D.slice(k);
|
|
9783
9783
|
}
|
|
9784
9784
|
}
|
|
9785
9785
|
s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
|
|
@@ -10938,7 +10938,7 @@ const Gm = {
|
|
|
10938
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;}"
|
|
10939
10939
|
};
|
|
10940
10940
|
function Li(t, e) {
|
|
10941
|
-
ge(e, !0),
|
|
10941
|
+
ge(e, !0), Ie(t, Gm);
|
|
10942
10942
|
let n = m(e, "isDropdownOpen", 15), r = m(e, "attachmentList", 15), i = m(e, "userLevel", 15), s = J(C({})), a = J(C(ui()));
|
|
10943
10943
|
const o = (b, w) => {
|
|
10944
10944
|
d(s)[b] = w;
|
|
@@ -10949,25 +10949,25 @@ function Li(t, e) {
|
|
|
10949
10949
|
},
|
|
10950
10950
|
2e3
|
|
10951
10951
|
);
|
|
10952
|
-
}, c = async (b, w,
|
|
10953
|
-
await Et.getDocumentPage(b, w,
|
|
10954
|
-
}, u = async (b, w,
|
|
10952
|
+
}, c = async (b, w, T) => {
|
|
10953
|
+
await Et.getDocumentPage(b, w, T);
|
|
10954
|
+
}, u = async (b, w, T) => {
|
|
10955
10955
|
if (!Jp(i(), w)) {
|
|
10956
10956
|
console.error("L'utente non ha il permesso di scaricare PDF normativi.");
|
|
10957
10957
|
return;
|
|
10958
10958
|
}
|
|
10959
|
-
const F = gr(b,
|
|
10959
|
+
const F = gr(b, T);
|
|
10960
10960
|
o(F, !0);
|
|
10961
10961
|
try {
|
|
10962
|
-
const A = await Et.downloadForgePdf(b, w), L = window.URL.createObjectURL(A),
|
|
10963
|
-
|
|
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);
|
|
10964
10964
|
} catch (A) {
|
|
10965
10965
|
console.error("Errore durante il download del PDF:", A);
|
|
10966
10966
|
} finally {
|
|
10967
10967
|
o(F, !1);
|
|
10968
10968
|
}
|
|
10969
|
-
}, f = async (b, w,
|
|
10970
|
-
const F = gr(b,
|
|
10969
|
+
}, f = async (b, w, T) => {
|
|
10970
|
+
const F = gr(b, T);
|
|
10971
10971
|
o(F, !0);
|
|
10972
10972
|
try {
|
|
10973
10973
|
const A = await Et.getForgeSingle(b, w), L = A.additionalReference || A.url;
|
|
@@ -10978,47 +10978,47 @@ function Li(t, e) {
|
|
|
10978
10978
|
o(F, !1);
|
|
10979
10979
|
}
|
|
10980
10980
|
}, h = async (b, w) => {
|
|
10981
|
-
const
|
|
10982
|
-
o(
|
|
10981
|
+
const T = gr(b, w);
|
|
10982
|
+
o(T, !0);
|
|
10983
10983
|
try {
|
|
10984
10984
|
const F = await Et.getMeetingSingle(b);
|
|
10985
10985
|
window.open(F.meetingUrl, "_blank");
|
|
10986
10986
|
} catch (F) {
|
|
10987
10987
|
console.error("Errore durante il recupero del link TLDV:", F);
|
|
10988
10988
|
} finally {
|
|
10989
|
-
o(
|
|
10989
|
+
o(T, !1);
|
|
10990
10990
|
}
|
|
10991
10991
|
}, p = async (b) => {
|
|
10992
10992
|
const {
|
|
10993
10993
|
external_id: w,
|
|
10994
|
-
filename:
|
|
10994
|
+
filename: T,
|
|
10995
10995
|
gendoc_id: F,
|
|
10996
10996
|
isCommon: A,
|
|
10997
10997
|
commonType: L
|
|
10998
10998
|
} = b;
|
|
10999
10999
|
if (!A) {
|
|
11000
|
-
await c(w,
|
|
11000
|
+
await c(w, T, F);
|
|
11001
11001
|
return;
|
|
11002
11002
|
}
|
|
11003
11003
|
if (L === "trascrizione") {
|
|
11004
|
-
await h(w,
|
|
11004
|
+
await h(w, T);
|
|
11005
11005
|
return;
|
|
11006
11006
|
}
|
|
11007
|
-
const
|
|
11008
|
-
!Bp(
|
|
11007
|
+
const I = fo(T);
|
|
11008
|
+
!Bp(T) || I === "mp3" ? await f(w, L || "", T) : await u(w, L || "", T);
|
|
11009
11009
|
};
|
|
11010
11010
|
var _ = Ym(), k = y(_);
|
|
11011
11011
|
{
|
|
11012
11012
|
var R = (b) => {
|
|
11013
|
-
var w = Hm(),
|
|
11013
|
+
var w = Hm(), T = y(w);
|
|
11014
11014
|
{
|
|
11015
11015
|
var F = (A) => {
|
|
11016
|
-
var L = qm(),
|
|
11017
|
-
ft(
|
|
11018
|
-
var
|
|
11019
|
-
const lt = /* @__PURE__ */ Ve(() => gr(d(
|
|
11020
|
-
|
|
11021
|
-
var Ye = y(
|
|
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);
|
|
11022
11022
|
{
|
|
11023
11023
|
var H = (oe) => {
|
|
11024
11024
|
var ae = Om();
|
|
@@ -11033,26 +11033,26 @@ function Li(t, e) {
|
|
|
11033
11033
|
d(Oe) ? oe(H) : oe(V, !1);
|
|
11034
11034
|
});
|
|
11035
11035
|
}
|
|
11036
|
-
var
|
|
11036
|
+
var Te = M(Ye, 2), $e = y(Te), et = y($e, !0);
|
|
11037
11037
|
x($e);
|
|
11038
11038
|
var be = M($e, 2);
|
|
11039
11039
|
{
|
|
11040
|
-
var
|
|
11040
|
+
var Se = (oe) => {
|
|
11041
11041
|
var ae = Nm(), z = y(ae, !0);
|
|
11042
|
-
x(ae), P(() =>
|
|
11042
|
+
x(ae), P(() => ye(z, d(Qe))), S(oe, ae);
|
|
11043
11043
|
};
|
|
11044
11044
|
Q(be, (oe) => {
|
|
11045
|
-
d(
|
|
11045
|
+
d(ne).isCommon || oe(Se);
|
|
11046
11046
|
});
|
|
11047
11047
|
}
|
|
11048
|
-
x(
|
|
11048
|
+
x(Te), x(ze), P(
|
|
11049
11049
|
(oe) => {
|
|
11050
|
-
yt(
|
|
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));
|
|
11051
11051
|
},
|
|
11052
11052
|
[() => js()]
|
|
11053
|
-
), S(Y,
|
|
11054
|
-
}), x(
|
|
11055
|
-
var D = M(
|
|
11053
|
+
), S(Y, ze);
|
|
11054
|
+
}), x(I);
|
|
11055
|
+
var D = M(I, 2), X = y(D);
|
|
11056
11056
|
X.__click = [
|
|
11057
11057
|
Mm,
|
|
11058
11058
|
r,
|
|
@@ -11061,12 +11061,12 @@ function Li(t, e) {
|
|
|
11061
11061
|
var ue = M(y(X), 2), Be = y(ue, !0);
|
|
11062
11062
|
x(ue), x(X), x(D), x(L), P(
|
|
11063
11063
|
(Y) => {
|
|
11064
|
-
O(X, "aria-label", Y), O(X, "title", Y),
|
|
11064
|
+
O(X, "aria-label", Y), O(X, "title", Y), ye(Be, d(a));
|
|
11065
11065
|
},
|
|
11066
11066
|
[() => ui()]
|
|
11067
11067
|
), Nt(3, L, () => Ec, () => ({ duration: 300 })), S(A, L);
|
|
11068
11068
|
};
|
|
11069
|
-
Q(
|
|
11069
|
+
Q(T, (A) => {
|
|
11070
11070
|
n() && A(F);
|
|
11071
11071
|
});
|
|
11072
11072
|
}
|
|
@@ -11129,18 +11129,18 @@ const v0 = {
|
|
|
11129
11129
|
}`
|
|
11130
11130
|
};
|
|
11131
11131
|
function No(t, e) {
|
|
11132
|
-
ge(e, !0),
|
|
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),
|
|
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);
|
|
11134
11134
|
const ue = async () => {
|
|
11135
11135
|
await on(), d(h) && (d(h).scrollTop = d(h).scrollHeight);
|
|
11136
11136
|
}, Be = async () => {
|
|
11137
11137
|
await on(), v(A, !1);
|
|
11138
11138
|
}, Y = async () => {
|
|
11139
11139
|
d(X) || (v(X, !0), await on(), v(L, !1));
|
|
11140
|
-
},
|
|
11141
|
-
d(
|
|
11142
|
-
},
|
|
11143
|
-
d(
|
|
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));
|
|
11144
11144
|
}, lt = (H) => {
|
|
11145
11145
|
es.getAudio(H.content, l()).then((V) => {
|
|
11146
11146
|
v(p, C(new Audio(V))), d(p).play(), v(_, !0), d(p).onended = () => {
|
|
@@ -11148,19 +11148,19 @@ function No(t, e) {
|
|
|
11148
11148
|
};
|
|
11149
11149
|
});
|
|
11150
11150
|
}, He = async (H, V) => {
|
|
11151
|
-
const
|
|
11152
|
-
$e.innerHTML =
|
|
11151
|
+
const Te = await Promise.resolve(H.html ?? Fe.parseInline(H.content)), $e = document.createElement("div");
|
|
11152
|
+
$e.innerHTML = Te;
|
|
11153
11153
|
const et = $e.innerHTML, be = $e.textContent || $e.innerText || "";
|
|
11154
11154
|
try {
|
|
11155
|
-
const
|
|
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 });
|
|
11156
11156
|
await navigator.clipboard.write([ae]), d(R)[V] = Ps(), setTimeout(
|
|
11157
11157
|
() => {
|
|
11158
11158
|
d(R)[V] = "";
|
|
11159
11159
|
},
|
|
11160
11160
|
2e3
|
|
11161
11161
|
);
|
|
11162
|
-
} catch (
|
|
11163
|
-
console.error("Errore durante la copia:",
|
|
11162
|
+
} catch (Se) {
|
|
11163
|
+
console.error("Errore durante la copia:", Se);
|
|
11164
11164
|
try {
|
|
11165
11165
|
await navigator.clipboard.writeText(be), d(R)[V] = Ps(), setTimeout(
|
|
11166
11166
|
() => {
|
|
@@ -11174,16 +11174,16 @@ function No(t, e) {
|
|
|
11174
11174
|
}
|
|
11175
11175
|
}, Oe = () => {
|
|
11176
11176
|
if (!d(h)) return;
|
|
11177
|
-
const H = d(h).getBoundingClientRect(), V = H.top,
|
|
11177
|
+
const H = d(h).getBoundingClientRect(), V = H.top, Te = H.bottom;
|
|
11178
11178
|
d(h).querySelectorAll(".message-plus-play").forEach((be) => {
|
|
11179
|
-
const
|
|
11179
|
+
const Se = be, oe = Se.getAttribute("data-message-index");
|
|
11180
11180
|
if (oe === null) return;
|
|
11181
11181
|
const ae = parseInt(oe, 10);
|
|
11182
11182
|
if (!be.querySelector(".play-button")) return;
|
|
11183
11183
|
const N = be.querySelector(".message-received");
|
|
11184
11184
|
if (!N) return;
|
|
11185
|
-
const ce =
|
|
11186
|
-
if (Ee <
|
|
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) {
|
|
11187
11187
|
const Ue = (Ee + Ae) / 2 - ce.top, Ge = ee.width + 5;
|
|
11188
11188
|
d(b)[ae] = {
|
|
11189
11189
|
top: Ue,
|
|
@@ -11195,9 +11195,9 @@ function No(t, e) {
|
|
|
11195
11195
|
if (et && r()) {
|
|
11196
11196
|
const be = et.querySelector(".message-received");
|
|
11197
11197
|
if (be) {
|
|
11198
|
-
const
|
|
11199
|
-
if (ae <
|
|
11200
|
-
const ce = (ae + z) / 2 -
|
|
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;
|
|
11201
11201
|
v(w, C({
|
|
11202
11202
|
top: ce,
|
|
11203
11203
|
left: Ee
|
|
@@ -11208,13 +11208,13 @@ function No(t, e) {
|
|
|
11208
11208
|
v(w, null);
|
|
11209
11209
|
};
|
|
11210
11210
|
at(() => {
|
|
11211
|
-
u() && !d(D) ? (v(
|
|
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()));
|
|
11212
11212
|
}), at(() => {
|
|
11213
|
-
d(
|
|
11213
|
+
d(I) && d(L) && !u() && Y();
|
|
11214
11214
|
}), at(() => {
|
|
11215
|
-
d(
|
|
11215
|
+
d(I) ? v(F, C(n())) : u() || v(T, C(n()));
|
|
11216
11216
|
}), at(() => {
|
|
11217
|
-
s(), d(
|
|
11217
|
+
s(), d(T), ue();
|
|
11218
11218
|
}), at(() => {
|
|
11219
11219
|
if (!d(h) || !f()) return;
|
|
11220
11220
|
const H = (V) => {
|
|
@@ -11222,8 +11222,8 @@ function No(t, e) {
|
|
|
11222
11222
|
if (!$e) return;
|
|
11223
11223
|
const et = d(h).querySelectorAll(".message-received .message-content"), be = et[et.length - 1];
|
|
11224
11224
|
if (!(be != null && be.contains($e))) return;
|
|
11225
|
-
const
|
|
11226
|
-
|
|
11225
|
+
const Se = $e.getAttribute("data-action");
|
|
11226
|
+
Se && f()(Se);
|
|
11227
11227
|
};
|
|
11228
11228
|
return d(h).addEventListener("click", H), () => {
|
|
11229
11229
|
var V;
|
|
@@ -11239,15 +11239,15 @@ function No(t, e) {
|
|
|
11239
11239
|
(V = d(h)) == null || V.removeEventListener("scroll", H);
|
|
11240
11240
|
};
|
|
11241
11241
|
}), at(() => {
|
|
11242
|
-
d(
|
|
11242
|
+
d(T), on().then(() => Oe());
|
|
11243
11243
|
}), at(() => {
|
|
11244
11244
|
r(), s(), on().then(() => Oe());
|
|
11245
11245
|
});
|
|
11246
11246
|
var rt = p0(), W = y(rt);
|
|
11247
11247
|
{
|
|
11248
11248
|
var Qe = (H) => {
|
|
11249
|
-
var V = f0(),
|
|
11250
|
-
ft(
|
|
11249
|
+
var V = f0(), Te = M(y(V), 2);
|
|
11250
|
+
ft(Te, 17, () => d(T), vt, (ae, z, N) => {
|
|
11251
11251
|
var ce = St(), ee = nt(ce);
|
|
11252
11252
|
{
|
|
11253
11253
|
var Ee = (Ae) => {
|
|
@@ -11256,9 +11256,9 @@ function No(t, e) {
|
|
|
11256
11256
|
var De = (_e) => {
|
|
11257
11257
|
var le = Zm();
|
|
11258
11258
|
ft(le, 21, () => d(z).attachments, vt, (Le, U) => {
|
|
11259
|
-
var G = Wm(),
|
|
11260
|
-
x(
|
|
11261
|
-
O(G, "title", 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);
|
|
11262
11262
|
}), S(Le, G);
|
|
11263
11263
|
}), x(le), S(_e, le);
|
|
11264
11264
|
};
|
|
@@ -11273,30 +11273,30 @@ function No(t, e) {
|
|
|
11273
11273
|
var ut = (_e) => {
|
|
11274
11274
|
var le = Qm(), Le = y(le), U = y(Le), G = y(U);
|
|
11275
11275
|
xr(G, () => d(z).html ?? Fe.parseInline(d(z).content), !1, !1), x(U), x(Le);
|
|
11276
|
-
var
|
|
11277
|
-
|
|
11278
|
-
var
|
|
11276
|
+
var se = M(Le, 2), ie = y(se);
|
|
11277
|
+
ie.__click = () => He(d(z), N);
|
|
11278
|
+
var te = y(ie);
|
|
11279
11279
|
{
|
|
11280
|
-
var
|
|
11280
|
+
var ke = (de) => {
|
|
11281
11281
|
var Je = Xm();
|
|
11282
11282
|
S(de, Je);
|
|
11283
11283
|
}, ve = (de) => {
|
|
11284
11284
|
var Je = Vm();
|
|
11285
11285
|
S(de, Je);
|
|
11286
11286
|
};
|
|
11287
|
-
Q(
|
|
11288
|
-
d(R)[N] ? de(
|
|
11287
|
+
Q(te, (de) => {
|
|
11288
|
+
d(R)[N] ? de(ke) : de(ve, !1);
|
|
11289
11289
|
});
|
|
11290
11290
|
}
|
|
11291
|
-
x(
|
|
11291
|
+
x(ie), x(se), x(le), P((de) => O(ie, "title", de), [
|
|
11292
11292
|
() => d(R)[N] || Ms()
|
|
11293
11293
|
]), S(_e, le);
|
|
11294
11294
|
}, gt = (_e) => {
|
|
11295
|
-
var le = a0(), Le = nt(le), U = y(Le), G = y(U),
|
|
11296
|
-
xr(
|
|
11297
|
-
var
|
|
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);
|
|
11298
11298
|
{
|
|
11299
|
-
var
|
|
11299
|
+
var ke = (q) => {
|
|
11300
11300
|
var Z = /* @__PURE__ */ Ve(() => d(k)[N] || !1);
|
|
11301
11301
|
Li(q, {
|
|
11302
11302
|
get isDropdownOpen() {
|
|
@@ -11316,15 +11316,15 @@ function No(t, e) {
|
|
|
11316
11316
|
}
|
|
11317
11317
|
});
|
|
11318
11318
|
};
|
|
11319
|
-
Q(
|
|
11320
|
-
d(z).attachments && d(z).attachments.length > 0 && q(
|
|
11319
|
+
Q(te, (q) => {
|
|
11320
|
+
d(z).attachments && d(z).attachments.length > 0 && q(ke);
|
|
11321
11321
|
});
|
|
11322
11322
|
}
|
|
11323
|
-
var ve = M(
|
|
11323
|
+
var ve = M(te, 2), de = y(ve);
|
|
11324
11324
|
{
|
|
11325
11325
|
var Je = (q) => {
|
|
11326
11326
|
var Z = Km(), he = M(y(Z), 2), st = y(he, !0);
|
|
11327
|
-
x(he), x(Z), P((pe) =>
|
|
11327
|
+
x(he), x(Z), P((pe) => ye(st, pe), [
|
|
11328
11328
|
() => Os(d(z).agentUsed)
|
|
11329
11329
|
]), S(q, Z);
|
|
11330
11330
|
};
|
|
@@ -11342,7 +11342,7 @@ function No(t, e) {
|
|
|
11342
11342
|
var pe = M(he, 2);
|
|
11343
11343
|
x(Z), P(
|
|
11344
11344
|
(j) => {
|
|
11345
|
-
|
|
11345
|
+
ye(st, `${j ?? ""} (${d(z).attachments.length ?? ""})`), yt(pe, `${`fa-solid fa-chevron-${d(k)[N] ? "up" : "down"}` ?? ""} svelte-x6wvf7`);
|
|
11346
11346
|
},
|
|
11347
11347
|
[() => Uu()]
|
|
11348
11348
|
), S(q, Z);
|
|
@@ -11366,7 +11366,7 @@ function No(t, e) {
|
|
|
11366
11366
|
d(R)[N] ? q(Xe) : q(ot, !1);
|
|
11367
11367
|
});
|
|
11368
11368
|
}
|
|
11369
|
-
x(We), x(ve), x(
|
|
11369
|
+
x(We), x(ve), x(ie), x(Le);
|
|
11370
11370
|
var it = M(Le, 2);
|
|
11371
11371
|
{
|
|
11372
11372
|
var re = (q) => {
|
|
@@ -11375,18 +11375,18 @@ function No(t, e) {
|
|
|
11375
11375
|
var st = (j) => {
|
|
11376
11376
|
var Ze = r0();
|
|
11377
11377
|
Ze.__click = [Jm, p, _], P(
|
|
11378
|
-
(
|
|
11378
|
+
(It) => {
|
|
11379
11379
|
var Pt, qt;
|
|
11380
|
-
O(Ze, "title",
|
|
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;`);
|
|
11381
11381
|
},
|
|
11382
11382
|
[() => ud()]
|
|
11383
11383
|
), S(j, Ze);
|
|
11384
11384
|
}, pe = (j) => {
|
|
11385
11385
|
var Ze = s0();
|
|
11386
11386
|
Ze.__click = [i0, lt, z], P(
|
|
11387
|
-
(
|
|
11387
|
+
(It) => {
|
|
11388
11388
|
var Pt, qt;
|
|
11389
|
-
O(Ze, "title",
|
|
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;`);
|
|
11390
11390
|
},
|
|
11391
11391
|
[() => od()]
|
|
11392
11392
|
), S(j, Ze);
|
|
@@ -11417,7 +11417,7 @@ function No(t, e) {
|
|
|
11417
11417
|
}
|
|
11418
11418
|
S(ae, ce);
|
|
11419
11419
|
});
|
|
11420
|
-
var $e = M(
|
|
11420
|
+
var $e = M(Te, 2);
|
|
11421
11421
|
{
|
|
11422
11422
|
var et = (ae) => {
|
|
11423
11423
|
var z = c0(), N = y(z), ce = y(N), ee = y(ce), Ee = y(ee);
|
|
@@ -11465,7 +11465,7 @@ function No(t, e) {
|
|
|
11465
11465
|
r() && d(w) && le(_e);
|
|
11466
11466
|
});
|
|
11467
11467
|
}
|
|
11468
|
-
x(z), P((le) =>
|
|
11468
|
+
x(z), P((le) => ye(ut, le), [() => Os(o())]), S(ae, z);
|
|
11469
11469
|
}, be = (ae) => {
|
|
11470
11470
|
var z = St(), N = nt(z);
|
|
11471
11471
|
{
|
|
@@ -11492,17 +11492,17 @@ function No(t, e) {
|
|
|
11492
11492
|
s().length > 0 ? ae(et) : ae(be, !1);
|
|
11493
11493
|
});
|
|
11494
11494
|
}
|
|
11495
|
-
var
|
|
11495
|
+
var Se = M($e, 2);
|
|
11496
11496
|
{
|
|
11497
11497
|
var oe = (ae) => {
|
|
11498
11498
|
var z = d0(), N = y(z, !0);
|
|
11499
|
-
x(z), P(() =>
|
|
11499
|
+
x(z), P(() => ye(N, i())), S(ae, z);
|
|
11500
11500
|
};
|
|
11501
|
-
Q(
|
|
11501
|
+
Q(Se, (ae) => {
|
|
11502
11502
|
i() != "" && ae(oe);
|
|
11503
11503
|
});
|
|
11504
11504
|
}
|
|
11505
|
-
x(V), nn("outroend", 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);
|
|
11506
11506
|
};
|
|
11507
11507
|
Q(W, (H) => {
|
|
11508
11508
|
d(A) && H(Qe);
|
|
@@ -11511,13 +11511,13 @@ function No(t, e) {
|
|
|
11511
11511
|
var Ke = M(W, 2);
|
|
11512
11512
|
{
|
|
11513
11513
|
var Ye = (H) => {
|
|
11514
|
-
var V = h0(),
|
|
11515
|
-
fn(
|
|
11514
|
+
var V = h0(), Te = y(V);
|
|
11515
|
+
fn(Te, {
|
|
11516
11516
|
icon: "svg-spinners:270-ring-with-bg",
|
|
11517
11517
|
width: "50px",
|
|
11518
11518
|
height: "50px",
|
|
11519
11519
|
color: "white"
|
|
11520
|
-
}), x(V), nn("outroend", 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);
|
|
11521
11521
|
};
|
|
11522
11522
|
Q(Ke, (H) => {
|
|
11523
11523
|
d(L) && H(Ye);
|
|
@@ -11607,7 +11607,7 @@ xe(
|
|
|
11607
11607
|
);
|
|
11608
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) => {
|
|
11609
11609
|
e()._id != d(n)._id && r(d(n)._id);
|
|
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>'),
|
|
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
11611
|
const $0 = {
|
|
11612
11612
|
hash: "svelte-da41xi",
|
|
11613
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
|
|
@@ -11647,52 +11647,52 @@ const $0 = {
|
|
|
11647
11647
|
}`
|
|
11648
11648
|
};
|
|
11649
11649
|
function Bo(t, e) {
|
|
11650
|
-
ge(e, !0),
|
|
11650
|
+
ge(e, !0), Ie(t, $0);
|
|
11651
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);
|
|
11652
11652
|
const _ = /* @__PURE__ */ Ve(() => {
|
|
11653
|
-
const
|
|
11653
|
+
const I = [];
|
|
11654
11654
|
let D = "";
|
|
11655
11655
|
for (const X of i()) {
|
|
11656
11656
|
const ue = X.lastUpdate || Us(X._id).getTime(), Be = gv(ue);
|
|
11657
|
-
Be !== D ? (D = Be,
|
|
11657
|
+
Be !== D ? (D = Be, I.push({ label: Be, chats: [X] })) : I[I.length - 1].chats.push(X);
|
|
11658
11658
|
}
|
|
11659
|
-
return
|
|
11660
|
-
}), k = async (
|
|
11661
|
-
if (o(!0), u().includes(
|
|
11659
|
+
return I;
|
|
11660
|
+
}), k = async (I) => {
|
|
11661
|
+
if (o(!0), u().includes(I))
|
|
11662
11662
|
try {
|
|
11663
|
-
await dt.readChat(
|
|
11663
|
+
await dt.readChat(I), u(u().filter((X) => X !== I));
|
|
11664
11664
|
} catch (X) {
|
|
11665
11665
|
console.error("Error marking chat as read:", X);
|
|
11666
11666
|
}
|
|
11667
|
-
let D = await dt.getChat(
|
|
11667
|
+
let D = await dt.getChat(I);
|
|
11668
11668
|
r(D), s(r().messages), o(!1), a(""), window.innerWidth <= 1400 && n(!1);
|
|
11669
|
-
}, R = (
|
|
11670
|
-
confirm(_u({ chatTitle: D })) && dt.deleteChat(
|
|
11671
|
-
i(i().filter((X) => X._id !==
|
|
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()();
|
|
11672
11672
|
});
|
|
11673
11673
|
};
|
|
11674
11674
|
let b = J(null), w;
|
|
11675
11675
|
at(() => {
|
|
11676
11676
|
var D;
|
|
11677
|
-
const
|
|
11678
|
-
|
|
11677
|
+
const I = (D = i()[0]) == null ? void 0 : D._id;
|
|
11678
|
+
I && I !== w && d(b) && (w = I, d(b).scrollTop = 0);
|
|
11679
11679
|
}), at(() => {
|
|
11680
11680
|
!h() || p() || l() || !d(b) || (i().length, Promise.resolve().then(() => {
|
|
11681
11681
|
d(b) && h() && !p() && d(b).scrollHeight <= d(b).clientHeight && f()();
|
|
11682
11682
|
}));
|
|
11683
11683
|
});
|
|
11684
|
-
const
|
|
11685
|
-
const D =
|
|
11684
|
+
const T = (I) => {
|
|
11685
|
+
const D = I.target;
|
|
11686
11686
|
h() && D.scrollTop + D.clientHeight >= D.scrollHeight - 60 && f()();
|
|
11687
11687
|
};
|
|
11688
11688
|
var F = E0(), A = y(F);
|
|
11689
11689
|
{
|
|
11690
|
-
var L = (
|
|
11691
|
-
var D =
|
|
11690
|
+
var L = (I) => {
|
|
11691
|
+
var D = T0(), X = y(D), ue = y(X), Be = y(ue, !0);
|
|
11692
11692
|
x(ue);
|
|
11693
11693
|
var Y = M(ue, 2);
|
|
11694
11694
|
Y.__click = [g0, n], x(X);
|
|
11695
|
-
var
|
|
11695
|
+
var ne = M(X, 2), ze = y(ne);
|
|
11696
11696
|
{
|
|
11697
11697
|
var lt = (Oe) => {
|
|
11698
11698
|
var rt = m0();
|
|
@@ -11702,26 +11702,26 @@ function Bo(t, e) {
|
|
|
11702
11702
|
{
|
|
11703
11703
|
var Qe = (Ye) => {
|
|
11704
11704
|
var H = b0(), V = y(H, !0);
|
|
11705
|
-
x(H), P((
|
|
11705
|
+
x(H), P((Te) => ye(V, Te), [() => ef()]), S(Ye, H);
|
|
11706
11706
|
}, Ke = (Ye) => {
|
|
11707
|
-
var H =
|
|
11708
|
-
ft(V, 17, () => d(_), vt, (be,
|
|
11707
|
+
var H = I0(), V = nt(H);
|
|
11708
|
+
ft(V, 17, () => d(_), vt, (be, Se) => {
|
|
11709
11709
|
var oe = z0(), ae = nt(oe), z = y(ae, !0);
|
|
11710
11710
|
x(ae);
|
|
11711
11711
|
var N = M(ae, 2);
|
|
11712
|
-
ft(N, 17, () => d(
|
|
11712
|
+
ft(N, 17, () => d(Se).chats, (ce) => ce._id, (ce, ee) => {
|
|
11713
11713
|
var Ee = y0(), Ae = y(Ee);
|
|
11714
11714
|
Ae.__click = [w0, r, ee, k];
|
|
11715
11715
|
var tt = y(Ae), Ue = y(tt), De = y(Ue), Ge = y(De, !0);
|
|
11716
11716
|
x(De);
|
|
11717
11717
|
var ct = M(De, 2);
|
|
11718
11718
|
{
|
|
11719
|
-
var ut = (
|
|
11720
|
-
var
|
|
11721
|
-
S(
|
|
11719
|
+
var ut = (se) => {
|
|
11720
|
+
var ie = x0();
|
|
11721
|
+
S(se, ie);
|
|
11722
11722
|
};
|
|
11723
|
-
Q(ct, (
|
|
11724
|
-
u().includes(d(ee)._id) &&
|
|
11723
|
+
Q(ct, (se) => {
|
|
11724
|
+
u().includes(d(ee)._id) && se(ut);
|
|
11725
11725
|
});
|
|
11726
11726
|
}
|
|
11727
11727
|
x(Ue);
|
|
@@ -11729,46 +11729,46 @@ function Bo(t, e) {
|
|
|
11729
11729
|
x(_e);
|
|
11730
11730
|
var Le = M(_e, 2);
|
|
11731
11731
|
{
|
|
11732
|
-
var U = (
|
|
11733
|
-
var
|
|
11734
|
-
x(
|
|
11732
|
+
var U = (se) => {
|
|
11733
|
+
var ie = _0(), te = M(nt(ie), 2), ke = M(y(te));
|
|
11734
|
+
x(te), P(
|
|
11735
11735
|
(ve, de) => {
|
|
11736
|
-
O(
|
|
11736
|
+
O(te, "title", ve), ye(ke, ` ${de ?? ""}`);
|
|
11737
11737
|
},
|
|
11738
11738
|
[
|
|
11739
11739
|
() => _f(),
|
|
11740
11740
|
() => Ns(d(ee).lastUpdate)
|
|
11741
11741
|
]
|
|
11742
|
-
), S(
|
|
11742
|
+
), S(se, ie);
|
|
11743
11743
|
};
|
|
11744
|
-
Q(Le, (
|
|
11745
|
-
d(ee).lastUpdate &&
|
|
11744
|
+
Q(Le, (se) => {
|
|
11745
|
+
d(ee).lastUpdate && se(U);
|
|
11746
11746
|
});
|
|
11747
11747
|
}
|
|
11748
11748
|
x(gt), x(tt), x(Ae);
|
|
11749
11749
|
var G = M(Ae, 2);
|
|
11750
11750
|
G.__click = [k0, R, ee], x(Ee), P(
|
|
11751
|
-
(
|
|
11752
|
-
we(Ee, "active", r()._id === d(ee)._id), O(Ae, "title", d(ee).title), O(De, "title", d(ee).title),
|
|
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 ?? ""}`);
|
|
11753
11753
|
},
|
|
11754
11754
|
[
|
|
11755
11755
|
() => bf(),
|
|
11756
11756
|
() => Ns(Us(d(ee)._id).getTime())
|
|
11757
11757
|
]
|
|
11758
11758
|
), S(ce, Ee);
|
|
11759
|
-
}), P(() =>
|
|
11759
|
+
}), P(() => ye(z, d(Se).label)), S(be, oe);
|
|
11760
11760
|
});
|
|
11761
|
-
var
|
|
11761
|
+
var Te = M(V, 2);
|
|
11762
11762
|
{
|
|
11763
11763
|
var $e = (be) => {
|
|
11764
|
-
var
|
|
11765
|
-
S(be,
|
|
11764
|
+
var Se = S0();
|
|
11765
|
+
S(be, Se);
|
|
11766
11766
|
}, et = (be) => {
|
|
11767
|
-
var
|
|
11767
|
+
var Se = St(), oe = nt(Se);
|
|
11768
11768
|
{
|
|
11769
11769
|
var ae = (z) => {
|
|
11770
11770
|
var N = C0(), ce = y(N, !0);
|
|
11771
|
-
x(N), P((ee) =>
|
|
11771
|
+
x(N), P((ee) => ye(ce, ee), [() => rf()]), S(z, N);
|
|
11772
11772
|
};
|
|
11773
11773
|
Q(
|
|
11774
11774
|
oe,
|
|
@@ -11778,9 +11778,9 @@ function Bo(t, e) {
|
|
|
11778
11778
|
!0
|
|
11779
11779
|
);
|
|
11780
11780
|
}
|
|
11781
|
-
S(be,
|
|
11781
|
+
S(be, Se);
|
|
11782
11782
|
};
|
|
11783
|
-
Q(
|
|
11783
|
+
Q(Te, (be) => {
|
|
11784
11784
|
p() ? be($e) : be(et, !1);
|
|
11785
11785
|
});
|
|
11786
11786
|
}
|
|
@@ -11796,88 +11796,88 @@ function Bo(t, e) {
|
|
|
11796
11796
|
}
|
|
11797
11797
|
S(Oe, rt);
|
|
11798
11798
|
};
|
|
11799
|
-
Q(
|
|
11799
|
+
Q(ze, (Oe) => {
|
|
11800
11800
|
l() ? Oe(lt) : Oe(He, !1);
|
|
11801
11801
|
});
|
|
11802
11802
|
}
|
|
11803
|
-
x(
|
|
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);
|
|
11804
11804
|
};
|
|
11805
|
-
Q(A, (
|
|
11806
|
-
n() &&
|
|
11805
|
+
Q(A, (I) => {
|
|
11806
|
+
n() && I(L);
|
|
11807
11807
|
});
|
|
11808
11808
|
}
|
|
11809
11809
|
return x(F), S(t, F), me({
|
|
11810
11810
|
get showHistory() {
|
|
11811
11811
|
return n();
|
|
11812
11812
|
},
|
|
11813
|
-
set showHistory(
|
|
11814
|
-
n(
|
|
11813
|
+
set showHistory(I) {
|
|
11814
|
+
n(I), g();
|
|
11815
11815
|
},
|
|
11816
11816
|
get actChat() {
|
|
11817
11817
|
return r();
|
|
11818
11818
|
},
|
|
11819
|
-
set actChat(
|
|
11820
|
-
r(
|
|
11819
|
+
set actChat(I) {
|
|
11820
|
+
r(I), g();
|
|
11821
11821
|
},
|
|
11822
11822
|
get chats() {
|
|
11823
11823
|
return i();
|
|
11824
11824
|
},
|
|
11825
|
-
set chats(
|
|
11826
|
-
i(
|
|
11825
|
+
set chats(I) {
|
|
11826
|
+
i(I), g();
|
|
11827
11827
|
},
|
|
11828
11828
|
get messages() {
|
|
11829
11829
|
return s();
|
|
11830
11830
|
},
|
|
11831
|
-
set messages(
|
|
11832
|
-
s(
|
|
11831
|
+
set messages(I) {
|
|
11832
|
+
s(I), g();
|
|
11833
11833
|
},
|
|
11834
11834
|
get error() {
|
|
11835
11835
|
return a();
|
|
11836
11836
|
},
|
|
11837
|
-
set error(
|
|
11838
|
-
a(
|
|
11837
|
+
set error(I) {
|
|
11838
|
+
a(I), g();
|
|
11839
11839
|
},
|
|
11840
11840
|
get loadingChat() {
|
|
11841
11841
|
return o();
|
|
11842
11842
|
},
|
|
11843
|
-
set loadingChat(
|
|
11844
|
-
o(
|
|
11843
|
+
set loadingChat(I) {
|
|
11844
|
+
o(I), g();
|
|
11845
11845
|
},
|
|
11846
11846
|
get loadingChats() {
|
|
11847
11847
|
return l();
|
|
11848
11848
|
},
|
|
11849
|
-
set loadingChats(
|
|
11850
|
-
l(
|
|
11849
|
+
set loadingChats(I) {
|
|
11850
|
+
l(I), g();
|
|
11851
11851
|
},
|
|
11852
11852
|
get newChat() {
|
|
11853
11853
|
return c();
|
|
11854
11854
|
},
|
|
11855
|
-
set newChat(
|
|
11856
|
-
c(
|
|
11855
|
+
set newChat(I) {
|
|
11856
|
+
c(I), g();
|
|
11857
11857
|
},
|
|
11858
11858
|
get unreadChatIds() {
|
|
11859
11859
|
return u();
|
|
11860
11860
|
},
|
|
11861
|
-
set unreadChatIds(
|
|
11862
|
-
u(
|
|
11861
|
+
set unreadChatIds(I) {
|
|
11862
|
+
u(I), g();
|
|
11863
11863
|
},
|
|
11864
11864
|
get loadMoreChats() {
|
|
11865
11865
|
return f();
|
|
11866
11866
|
},
|
|
11867
|
-
set loadMoreChats(
|
|
11868
|
-
f(
|
|
11867
|
+
set loadMoreChats(I) {
|
|
11868
|
+
f(I), g();
|
|
11869
11869
|
},
|
|
11870
11870
|
get hasMoreChats() {
|
|
11871
11871
|
return h();
|
|
11872
11872
|
},
|
|
11873
|
-
set hasMoreChats(
|
|
11874
|
-
h(
|
|
11873
|
+
set hasMoreChats(I) {
|
|
11874
|
+
h(I), g();
|
|
11875
11875
|
},
|
|
11876
11876
|
get loadingMoreChats() {
|
|
11877
11877
|
return p();
|
|
11878
11878
|
},
|
|
11879
|
-
set loadingMoreChats(
|
|
11880
|
-
p(
|
|
11879
|
+
set loadingMoreChats(I) {
|
|
11880
|
+
p(I), g();
|
|
11881
11881
|
}
|
|
11882
11882
|
});
|
|
11883
11883
|
}
|
|
@@ -11914,11 +11914,11 @@ const M0 = {
|
|
|
11914
11914
|
}`
|
|
11915
11915
|
};
|
|
11916
11916
|
function qo(t, e) {
|
|
11917
|
-
ge(e, !0),
|
|
11917
|
+
ge(e, !0), Ie(t, M0);
|
|
11918
11918
|
const [n, r] = xc(), i = () => wc(Fr, "$chatCommandStore", n);
|
|
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(""),
|
|
11920
|
-
const X = (U, G,
|
|
11921
|
-
v(w, d(w) + U), v(
|
|
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));
|
|
11922
11922
|
};
|
|
11923
11923
|
let ue = J("auto");
|
|
11924
11924
|
const Be = [
|
|
@@ -11927,20 +11927,20 @@ function qo(t, e) {
|
|
|
11927
11927
|
"audit_handler",
|
|
11928
11928
|
"suite_agent"
|
|
11929
11929
|
];
|
|
11930
|
-
let Y = J(C({})),
|
|
11931
|
-
const
|
|
11932
|
-
var
|
|
11930
|
+
let Y = J(C({})), ne = J(!1);
|
|
11931
|
+
const ze = async (U, G) => {
|
|
11932
|
+
var ie, te;
|
|
11933
11933
|
if (d(p)) return;
|
|
11934
|
-
v(p, !0), d(b) && d(b) !== "" && (v(b, ""), v(w, ""), v(
|
|
11935
|
-
let
|
|
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"));
|
|
11936
11936
|
if (v(h, C([
|
|
11937
11937
|
...d(h),
|
|
11938
|
-
new dn((/* @__PURE__ */ new Date()).getTime(), !0, U, U,
|
|
11939
|
-
])), console.log("Current messages:", d(h)), d(h).length == 2 && (console.log("Creating new chat with state:", (
|
|
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)) {
|
|
11940
11940
|
v(A, C(new AbortController()));
|
|
11941
11941
|
try {
|
|
11942
|
-
let
|
|
11943
|
-
if (console.log(
|
|
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) {
|
|
11944
11944
|
v(h, C([
|
|
11945
11945
|
...d(h),
|
|
11946
11946
|
new dn((/* @__PURE__ */ new Date()).getTime(), !1, "", d(w))
|
|
@@ -11950,7 +11950,7 @@ function qo(t, e) {
|
|
|
11950
11950
|
if (v(u, C(await dt.getChat(d(u)._id))), v(f, C([
|
|
11951
11951
|
d(u),
|
|
11952
11952
|
...d(f).filter((ve) => ve._id !== d(u)._id)
|
|
11953
|
-
])), v(w, ""), v(
|
|
11953
|
+
])), v(w, ""), v(T, C([])), v(h, C([
|
|
11954
11954
|
...d(h),
|
|
11955
11955
|
d(u).messages[d(u).messages.length - 1]
|
|
11956
11956
|
])), !d(R)) {
|
|
@@ -11962,8 +11962,8 @@ function qo(t, e) {
|
|
|
11962
11962
|
console.error("Error playing audio:", de);
|
|
11963
11963
|
}
|
|
11964
11964
|
}
|
|
11965
|
-
} catch (
|
|
11966
|
-
|
|
11965
|
+
} catch (ke) {
|
|
11966
|
+
ke instanceof Error && ke.name !== "AbortError" && (console.error("Error sending message:", ke), v(b, C(Fs())));
|
|
11967
11967
|
} finally {
|
|
11968
11968
|
v(A, null), v(p, !1);
|
|
11969
11969
|
}
|
|
@@ -11987,15 +11987,15 @@ function qo(t, e) {
|
|
|
11987
11987
|
if (!Be.includes(d(ue)) || (Je = d(u)) != null && Je.state.blockChat) return;
|
|
11988
11988
|
U.preventDefault(), U.stopPropagation();
|
|
11989
11989
|
const G = (Ce = U.dataTransfer) == null ? void 0 : Ce.types;
|
|
11990
|
-
console.log("[DROP DEBUG] DataTransfer types:", G), v(D, C(Wd())), v(
|
|
11991
|
-
let
|
|
11990
|
+
console.log("[DROP DEBUG] DataTransfer types:", G), v(D, C(Wd())), v(I, 0);
|
|
11991
|
+
let se = 0, ie = 0;
|
|
11992
11992
|
console.log("[UPLOAD DEBUG] Inizio upload e progresso simulato");
|
|
11993
|
-
let
|
|
11993
|
+
let te = setInterval(
|
|
11994
11994
|
() => {
|
|
11995
|
-
|
|
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));
|
|
11996
11996
|
},
|
|
11997
11997
|
300
|
|
11998
|
-
),
|
|
11998
|
+
), ke = "", ve = "", de = "";
|
|
11999
11999
|
if (G && G.includes("file_id")) {
|
|
12000
12000
|
let it = U.dataTransfer.getData("file_id");
|
|
12001
12001
|
console.log("[DROP DEBUG] externalId:", it);
|
|
@@ -12003,37 +12003,37 @@ function qo(t, e) {
|
|
|
12003
12003
|
try {
|
|
12004
12004
|
let Z = await Et.getDocumentFromSuite(q);
|
|
12005
12005
|
if (!Z) {
|
|
12006
|
-
|
|
12006
|
+
te && (clearInterval(te), te = null), alert(Ci()), v(L, !1), v(He, 0), v(D, ""), v(I, 0);
|
|
12007
12007
|
return;
|
|
12008
12008
|
}
|
|
12009
12009
|
v(D, C(Z.name));
|
|
12010
|
-
const he = await Ke(Z,
|
|
12011
|
-
|
|
12010
|
+
const he = await Ke(Z, te, (pe) => {
|
|
12011
|
+
ie = pe, pe > 50 && te && (clearInterval(te), te = null);
|
|
12012
12012
|
});
|
|
12013
|
-
|
|
12013
|
+
ke = he.fileId, ve = he.aiFileId, de = Z.name;
|
|
12014
12014
|
let st = {
|
|
12015
|
-
id:
|
|
12015
|
+
id: ke,
|
|
12016
12016
|
filename: de,
|
|
12017
12017
|
suiteUrl: window.location.origin
|
|
12018
12018
|
};
|
|
12019
12019
|
(fe = d(u)) != null && fe.state.info && (d(u).state.info.push({
|
|
12020
12020
|
key: "CLOUDSTORAGE_FILE_UPLOADED",
|
|
12021
12021
|
value: JSON.stringify(st)
|
|
12022
|
-
}), d(u).state.info.push({ key: "AI_FILE_ID", value: ve }),
|
|
12022
|
+
}), d(u).state.info.push({ key: "AI_FILE_ID", value: ve }), ze("", "__file_uploaded__")), te && (clearInterval(te), te = null);
|
|
12023
12023
|
} catch (Z) {
|
|
12024
|
-
console.error("Error fetching document from Suite:", Z),
|
|
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);
|
|
12025
12025
|
}
|
|
12026
12026
|
} else {
|
|
12027
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"));
|
|
12028
12028
|
try {
|
|
12029
12029
|
for (const Z of re) {
|
|
12030
12030
|
v(D, C(Z.name));
|
|
12031
|
-
const he = await Ke(Z,
|
|
12032
|
-
|
|
12031
|
+
const he = await Ke(Z, te, (pe) => {
|
|
12032
|
+
ie = pe, pe > 50 && te && (clearInterval(te), te = null);
|
|
12033
12033
|
});
|
|
12034
|
-
|
|
12034
|
+
ke = he.fileId, ve = he.aiFileId, de = Z.name;
|
|
12035
12035
|
let st = {
|
|
12036
|
-
id:
|
|
12036
|
+
id: ke,
|
|
12037
12037
|
filename: de,
|
|
12038
12038
|
suiteUrl: window.location.origin
|
|
12039
12039
|
};
|
|
@@ -12042,56 +12042,56 @@ function qo(t, e) {
|
|
|
12042
12042
|
!q && re.indexOf(Z) === re.length - 1 && (pe = !0), d(u).state.info.push({
|
|
12043
12043
|
key: "CLOUDSTORAGE_FILE_UPLOADED",
|
|
12044
12044
|
value: JSON.stringify(st)
|
|
12045
|
-
}), d(u).state.info.push({ key: "AI_FILE_ID", value: ve }), pe &&
|
|
12045
|
+
}), d(u).state.info.push({ key: "AI_FILE_ID", value: ve }), pe && ze("", "__file_uploaded__");
|
|
12046
12046
|
}
|
|
12047
12047
|
}
|
|
12048
12048
|
} catch (Z) {
|
|
12049
12049
|
console.error("Error uploading file:", Z);
|
|
12050
12050
|
} finally {
|
|
12051
|
-
|
|
12051
|
+
te && (clearInterval(te), te = null), v(L, !1), v(He, 0), v(D, ""), v(I, 0);
|
|
12052
12052
|
}
|
|
12053
12053
|
}
|
|
12054
|
-
}, Ke = async (U, G,
|
|
12054
|
+
}, Ke = async (U, G, se) => {
|
|
12055
12055
|
try {
|
|
12056
|
-
const
|
|
12057
|
-
console.log("[UPLOAD DEBUG] Callback ricevuto - Real progress:",
|
|
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)));
|
|
12058
12058
|
});
|
|
12059
|
-
return console.log("[UPLOAD DEBUG] Upload completato - fileId:",
|
|
12059
|
+
return console.log("[UPLOAD DEBUG] Upload completato - fileId:", ie.fileId), v(D, ""), v(I, 0), d(Y)[ie.fileId] = {
|
|
12060
12060
|
title: U.name,
|
|
12061
12061
|
ext_id: "",
|
|
12062
12062
|
gendoc_id: "",
|
|
12063
|
-
storage_id:
|
|
12063
|
+
storage_id: ie.fileId,
|
|
12064
12064
|
isCommon: !0
|
|
12065
12065
|
}, {
|
|
12066
|
-
fileId:
|
|
12067
|
-
aiFileId:
|
|
12066
|
+
fileId: ie.fileId,
|
|
12067
|
+
aiFileId: ie.aiFileId
|
|
12068
12068
|
};
|
|
12069
|
-
} catch (
|
|
12070
|
-
throw console.error("Error uploading file:",
|
|
12069
|
+
} catch (ie) {
|
|
12070
|
+
throw console.error("Error uploading file:", ie), v(b, C(Fs())), v(D, ""), v(I, 0), ie;
|
|
12071
12071
|
}
|
|
12072
12072
|
};
|
|
12073
12073
|
at(() => {
|
|
12074
12074
|
d(R) && d(k).pause();
|
|
12075
12075
|
});
|
|
12076
|
-
let Ye = !1, H, V,
|
|
12076
|
+
let Ye = !1, H, V, Te, $e;
|
|
12077
12077
|
function et(U) {
|
|
12078
12078
|
const G = U.target;
|
|
12079
12079
|
if (G.closest(".resize-handle") || G.classList.contains("resize-border-left") || G.classList.contains("resize-border-top")) {
|
|
12080
12080
|
U.preventDefault(), U.stopPropagation(), Ye = !0, H = U.clientX, V = U.clientY;
|
|
12081
|
-
const
|
|
12082
|
-
|
|
12083
|
-
const
|
|
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) => {
|
|
12084
12084
|
if (!Ye) return;
|
|
12085
12085
|
Ce.preventDefault();
|
|
12086
12086
|
const fe = document.querySelector(".chat"), We = window.innerWidth * 0.75, pt = window.innerHeight * 0.9;
|
|
12087
|
-
if (
|
|
12088
|
-
const Xe = H - Ce.clientX, ot = Math.min(Math.max(
|
|
12087
|
+
if (ke) {
|
|
12088
|
+
const Xe = H - Ce.clientX, ot = Math.min(Math.max(Te + Xe, 300), We);
|
|
12089
12089
|
fe.style.width = `${ot}px`;
|
|
12090
12090
|
} else if (ve) {
|
|
12091
12091
|
const Xe = V - Ce.clientY, ot = Math.min(Math.max($e + Xe, 400), pt);
|
|
12092
12092
|
fe.style.height = `${ot}px`;
|
|
12093
|
-
} else if (
|
|
12094
|
-
const Xe = H - Ce.clientX, ot = V - Ce.clientY, it = Math.min(Math.max(
|
|
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);
|
|
12095
12095
|
fe.style.width = `${it}px`, fe.style.height = `${re}px`;
|
|
12096
12096
|
}
|
|
12097
12097
|
}, Je = () => {
|
|
@@ -12105,7 +12105,7 @@ function qo(t, e) {
|
|
|
12105
12105
|
if (U) {
|
|
12106
12106
|
v(N, 0), v(ce, !0);
|
|
12107
12107
|
const G = await dt.getChats(0, ee);
|
|
12108
|
-
v(f, C(G.sort((
|
|
12108
|
+
v(f, C(G.sort((se, ie) => ie.lastUpdate - se.lastUpdate))), v(N, C(G.length)), G.length < ee && v(ce, !1);
|
|
12109
12109
|
} else {
|
|
12110
12110
|
if (!d(ce) || d(z)) return;
|
|
12111
12111
|
v(z, !0);
|
|
@@ -12113,13 +12113,13 @@ function qo(t, e) {
|
|
|
12113
12113
|
const G = await dt.getChats(d(N), ee);
|
|
12114
12114
|
v(f, C([
|
|
12115
12115
|
...d(f),
|
|
12116
|
-
...G.sort((
|
|
12116
|
+
...G.sort((se, ie) => ie.lastUpdate - se.lastUpdate)
|
|
12117
12117
|
])), v(N, d(N) + G.length), G.length < ee && v(ce, !1);
|
|
12118
12118
|
} finally {
|
|
12119
12119
|
v(z, !1);
|
|
12120
12120
|
}
|
|
12121
12121
|
}
|
|
12122
|
-
},
|
|
12122
|
+
}, Se = async () => {
|
|
12123
12123
|
await be(!1);
|
|
12124
12124
|
};
|
|
12125
12125
|
let oe = J(!1), ae = J(!1), z = J(!1), N = J(0), ce = J(!0);
|
|
@@ -12162,10 +12162,10 @@ function qo(t, e) {
|
|
|
12162
12162
|
let ve = await dt.getChat(d(u)._id);
|
|
12163
12163
|
v(u, C(ve)), v(h, C(d(u).messages)), v(oe, !1);
|
|
12164
12164
|
}
|
|
12165
|
-
const G = d(f).map((ve) => ve._id),
|
|
12166
|
-
if (
|
|
12167
|
-
const ve = new Map(
|
|
12168
|
-
v(f, C(Array.from(Ce.values()))), v(N, d(N) +
|
|
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)));
|
|
12169
12169
|
}
|
|
12170
12170
|
v(Ue, C(U));
|
|
12171
12171
|
} catch (U) {
|
|
@@ -12184,9 +12184,9 @@ function qo(t, e) {
|
|
|
12184
12184
|
v(l, C(U));
|
|
12185
12185
|
const G = await Et.getUserLevel();
|
|
12186
12186
|
v(c, C(G));
|
|
12187
|
-
let
|
|
12188
|
-
if (
|
|
12189
|
-
let de =
|
|
12187
|
+
let se = new URLSearchParams(window.location.search);
|
|
12188
|
+
if (se.has("chatId")) {
|
|
12189
|
+
let de = se.get("chatId");
|
|
12190
12190
|
v(u, C(await dt.getChat(de))), v(h, C(d(u).messages)), v(s, !0), await on(), v(a, !0);
|
|
12191
12191
|
} else {
|
|
12192
12192
|
const de = dn.firstMessage(d(o), d(l), d(ue));
|
|
@@ -12205,13 +12205,13 @@ function qo(t, e) {
|
|
|
12205
12205
|
[de]
|
|
12206
12206
|
)));
|
|
12207
12207
|
}
|
|
12208
|
-
const { agentId:
|
|
12209
|
-
|
|
12210
|
-
title:
|
|
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",
|
|
12211
12211
|
ext_id: "",
|
|
12212
|
-
gendoc_id:
|
|
12212
|
+
gendoc_id: te,
|
|
12213
12213
|
isCommon: !0
|
|
12214
|
-
}), v(
|
|
12214
|
+
}), v(ne, !0);
|
|
12215
12215
|
const ve = (de) => {
|
|
12216
12216
|
(de.clientX <= 0 || de.clientY <= 0 || de.clientX >= window.innerWidth || de.clientY >= window.innerHeight) && (v(L, !1), v(He, 0));
|
|
12217
12217
|
};
|
|
@@ -12227,9 +12227,9 @@ function qo(t, e) {
|
|
|
12227
12227
|
var gt = (U) => {
|
|
12228
12228
|
var G = D0();
|
|
12229
12229
|
G.__mousedown = et;
|
|
12230
|
-
var
|
|
12230
|
+
var se = y(G);
|
|
12231
12231
|
{
|
|
12232
|
-
var
|
|
12232
|
+
var ie = (Ce) => {
|
|
12233
12233
|
var fe = A0(), We = y(fe), pt = y(We);
|
|
12234
12234
|
fn(pt, {
|
|
12235
12235
|
icon: "mdi:file-upload",
|
|
@@ -12238,17 +12238,17 @@ function qo(t, e) {
|
|
|
12238
12238
|
color: "white"
|
|
12239
12239
|
});
|
|
12240
12240
|
var Xe = M(pt, 2), ot = y(Xe, !0);
|
|
12241
|
-
x(Xe), x(We), x(fe), P((it) =>
|
|
12241
|
+
x(Xe), x(We), x(fe), P((it) => ye(ot, it), [
|
|
12242
12242
|
() => Yd() || "Drop files here"
|
|
12243
12243
|
]), Nt(3, fe, () => un, () => ({ duration: 200 })), S(Ce, fe);
|
|
12244
12244
|
};
|
|
12245
|
-
Q(
|
|
12246
|
-
d(L) && Ce(
|
|
12245
|
+
Q(se, (Ce) => {
|
|
12246
|
+
d(L) && Ce(ie);
|
|
12247
12247
|
});
|
|
12248
12248
|
}
|
|
12249
|
-
var
|
|
12249
|
+
var te = M(se, 2);
|
|
12250
12250
|
{
|
|
12251
|
-
var
|
|
12251
|
+
var ke = (Ce) => {
|
|
12252
12252
|
var fe = L0(), We = y(fe), pt = y(We);
|
|
12253
12253
|
fn(pt, {
|
|
12254
12254
|
icon: "svg-spinners:270-ring-with-bg",
|
|
@@ -12263,18 +12263,18 @@ function qo(t, e) {
|
|
|
12263
12263
|
var q = M(it, 2), Z = y(q);
|
|
12264
12264
|
x(q), x(We), x(fe), P(
|
|
12265
12265
|
(he) => {
|
|
12266
|
-
|
|
12266
|
+
ye(ot, d(D)), O(re, "style", `width: ${d(I) ?? ""}%`), ye(Z, `${he ?? ""}%`);
|
|
12267
12267
|
},
|
|
12268
12268
|
[
|
|
12269
|
-
() => Math.round(d(
|
|
12269
|
+
() => Math.round(d(I))
|
|
12270
12270
|
]
|
|
12271
12271
|
), Nt(3, fe, () => un, () => ({ duration: 200 })), S(Ce, fe);
|
|
12272
12272
|
};
|
|
12273
|
-
Q(
|
|
12274
|
-
d(D) && Ce(
|
|
12273
|
+
Q(te, (Ce) => {
|
|
12274
|
+
d(D) && Ce(ke);
|
|
12275
12275
|
});
|
|
12276
12276
|
}
|
|
12277
|
-
var ve = M(
|
|
12277
|
+
var ve = M(te, 2);
|
|
12278
12278
|
{
|
|
12279
12279
|
var de = (Ce) => {
|
|
12280
12280
|
var fe = R0(), We = y(fe);
|
|
@@ -12291,7 +12291,7 @@ function qo(t, e) {
|
|
|
12291
12291
|
var ot = j0(), it = nt(ot);
|
|
12292
12292
|
Bo(it, {
|
|
12293
12293
|
newChat: Ae,
|
|
12294
|
-
loadMoreChats:
|
|
12294
|
+
loadMoreChats: Se,
|
|
12295
12295
|
get hasMoreChats() {
|
|
12296
12296
|
return d(ce);
|
|
12297
12297
|
},
|
|
@@ -12411,7 +12411,7 @@ function qo(t, e) {
|
|
|
12411
12411
|
});
|
|
12412
12412
|
var st = M(Z, 2);
|
|
12413
12413
|
No(st, {
|
|
12414
|
-
onQuickReply: (j) =>
|
|
12414
|
+
onQuickReply: (j) => ze(j, d(ue)),
|
|
12415
12415
|
get messages() {
|
|
12416
12416
|
return d(h);
|
|
12417
12417
|
},
|
|
@@ -12437,10 +12437,10 @@ function qo(t, e) {
|
|
|
12437
12437
|
v(w, C(j));
|
|
12438
12438
|
},
|
|
12439
12439
|
get streamAttachments() {
|
|
12440
|
-
return d(
|
|
12440
|
+
return d(T);
|
|
12441
12441
|
},
|
|
12442
12442
|
set streamAttachments(j) {
|
|
12443
|
-
v(
|
|
12443
|
+
v(T, C(j));
|
|
12444
12444
|
},
|
|
12445
12445
|
get streamedAgent() {
|
|
12446
12446
|
return d(F);
|
|
@@ -12469,7 +12469,7 @@ function qo(t, e) {
|
|
|
12469
12469
|
});
|
|
12470
12470
|
var pe = M(st, 2);
|
|
12471
12471
|
bo(pe, {
|
|
12472
|
-
sendMessage:
|
|
12472
|
+
sendMessage: ze,
|
|
12473
12473
|
stopMessage: lt,
|
|
12474
12474
|
uploadFiles: Ke,
|
|
12475
12475
|
get loading() {
|
|
@@ -12521,10 +12521,10 @@ function qo(t, e) {
|
|
|
12521
12521
|
v(D, C(j));
|
|
12522
12522
|
},
|
|
12523
12523
|
get uploadProgress() {
|
|
12524
|
-
return d(
|
|
12524
|
+
return d(I);
|
|
12525
12525
|
},
|
|
12526
12526
|
set uploadProgress(j) {
|
|
12527
|
-
v(
|
|
12527
|
+
v(I, C(j));
|
|
12528
12528
|
}
|
|
12529
12529
|
}), S(Xe, ot);
|
|
12530
12530
|
};
|
|
@@ -12542,7 +12542,7 @@ function qo(t, e) {
|
|
|
12542
12542
|
d(_) ? Ce(de) : Ce(Je, !1);
|
|
12543
12543
|
});
|
|
12544
12544
|
}
|
|
12545
|
-
x(G), nn("dragenter", G, Oe), nn("dragover", G, rt), nn("dragleave", G, W), nn("drop", G, Qe), Nt(3, 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);
|
|
12546
12546
|
};
|
|
12547
12547
|
Q(ut, (U) => {
|
|
12548
12548
|
d(s) && U(gt);
|
|
@@ -12553,7 +12553,7 @@ function qo(t, e) {
|
|
|
12553
12553
|
var le = M(y(_e)), Le = y(le, !0);
|
|
12554
12554
|
x(le), x(_e), x(ct), P(
|
|
12555
12555
|
(U) => {
|
|
12556
|
-
yt(_e, `${`btn ${d(s) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1il33p9`),
|
|
12556
|
+
yt(_e, `${`btn ${d(s) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1il33p9`), ye(Le, U);
|
|
12557
12557
|
},
|
|
12558
12558
|
[() => Bc()]
|
|
12559
12559
|
), S(t, ct), me(), r();
|
|
@@ -12572,6 +12572,14 @@ function P0(t, e) {
|
|
|
12572
12572
|
agentId: a(),
|
|
12573
12573
|
gendocId: o(),
|
|
12574
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()
|
|
12575
12583
|
});
|
|
12576
12584
|
function c(u) {
|
|
12577
12585
|
Fr.set({ chatId: u });
|