akpm-knowledge-base-chat 1.0.40 → 1.0.41
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 +263 -263
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 1.0.
|
|
1
|
+
/* Version: 1.0.41 */
|
|
2
2
|
var Ca = Object.defineProperty;
|
|
3
3
|
var mi = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
@@ -8,7 +8,7 @@ var L = (t, e, n) => Aa(t, typeof e != "symbol" ? e + "" : e, n), bi = (t, e, n)
|
|
|
8
8
|
var Pe = (t, e, n) => (bi(t, e, "read from private field"), n ? n.call(t) : e.get(t)), vr = (t, e, n) => e.has(t) ? mi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), gr = (t, e, n, r) => (bi(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
9
9
|
const ja = "5";
|
|
10
10
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ja);
|
|
11
|
-
const
|
|
11
|
+
const Dr = 1, Br = 2, Wi = 4, Ra = 8, La = 16, Pa = 1, Oa = 2, Xi = 4, Fa = 8, qa = 16, Ma = 4, Da = 1, Ba = 2, Ji = "[", Nr = "[!", Yr = "]", Dt = {}, Oe = Symbol();
|
|
12
12
|
function Na(t) {
|
|
13
13
|
return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
|
|
14
14
|
}
|
|
@@ -68,11 +68,11 @@ const tn = () => {
|
|
|
68
68
|
function Ka(t) {
|
|
69
69
|
return t();
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function qn(t) {
|
|
72
72
|
for (var e = 0; e < t.length; e++)
|
|
73
73
|
t[e]();
|
|
74
74
|
}
|
|
75
|
-
const Ne = 2, Ki = 4, mn = 8, Qn = 16, st = 32, Ct = 64,
|
|
75
|
+
const Ne = 2, Ki = 4, mn = 8, Qn = 16, st = 32, Ct = 64, Mn = 128, At = 256, Dn = 512, Te = 1024, vt = 2048, jt = 4096, Ke = 8192, Vt = 16384, es = 32768, Kn = 65536, eo = 1 << 17, to = 1 << 19, ts = 1 << 20, ht = Symbol("$state"), ns = Symbol("legacy props"), no = Symbol("");
|
|
76
76
|
function rs(t) {
|
|
77
77
|
return t === this.v;
|
|
78
78
|
}
|
|
@@ -183,7 +183,7 @@ function ft(t) {
|
|
|
183
183
|
let K;
|
|
184
184
|
function Ze(t) {
|
|
185
185
|
if (t === null)
|
|
186
|
-
throw tr(),
|
|
186
|
+
throw tr(), Dt;
|
|
187
187
|
return K = t;
|
|
188
188
|
}
|
|
189
189
|
function Yt() {
|
|
@@ -195,7 +195,7 @@ function Yt() {
|
|
|
195
195
|
function I(t) {
|
|
196
196
|
if (X) {
|
|
197
197
|
if (/* @__PURE__ */ at(K) !== null)
|
|
198
|
-
throw tr(),
|
|
198
|
+
throw tr(), Dt;
|
|
199
199
|
K = t;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
@@ -364,7 +364,7 @@ function Ut(t = "") {
|
|
|
364
364
|
return document.createTextNode(t);
|
|
365
365
|
}
|
|
366
366
|
// @__NO_SIDE_EFFECTS__
|
|
367
|
-
function
|
|
367
|
+
function Me(t) {
|
|
368
368
|
return as.call(t);
|
|
369
369
|
}
|
|
370
370
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -373,10 +373,10 @@ function at(t) {
|
|
|
373
373
|
}
|
|
374
374
|
function A(t, e) {
|
|
375
375
|
if (!X)
|
|
376
|
-
return /* @__PURE__ */
|
|
376
|
+
return /* @__PURE__ */ Me(t);
|
|
377
377
|
var n = (
|
|
378
378
|
/** @type {TemplateNode} */
|
|
379
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ Me(K)
|
|
380
380
|
);
|
|
381
381
|
if (n === null)
|
|
382
382
|
n = K.appendChild(Ut());
|
|
@@ -390,7 +390,7 @@ function fe(t, e) {
|
|
|
390
390
|
if (!X) {
|
|
391
391
|
var n = (
|
|
392
392
|
/** @type {DocumentFragment} */
|
|
393
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ Me(
|
|
394
394
|
/** @type {Node} */
|
|
395
395
|
t
|
|
396
396
|
)
|
|
@@ -527,7 +527,7 @@ function Rt(t, e, n, r = !0) {
|
|
|
527
527
|
ki(o);
|
|
528
528
|
}
|
|
529
529
|
} else e !== null && sr(a);
|
|
530
|
-
var l = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (ts |
|
|
530
|
+
var l = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (ts | Mn)) === 0;
|
|
531
531
|
if (!l && !i && r && (s !== null && xo(a, s), ce !== null && ce.f & Ne)) {
|
|
532
532
|
var c = (
|
|
533
533
|
/** @type {Derived} */
|
|
@@ -720,12 +720,12 @@ let Yn = !1, Un = !1, $r = [], Er = [];
|
|
|
720
720
|
function ws() {
|
|
721
721
|
Yn = !1;
|
|
722
722
|
const t = $r.slice();
|
|
723
|
-
$r = [],
|
|
723
|
+
$r = [], qn(t);
|
|
724
724
|
}
|
|
725
725
|
function xs() {
|
|
726
726
|
Un = !1;
|
|
727
727
|
const t = Er.slice();
|
|
728
|
-
Er = [],
|
|
728
|
+
Er = [], qn(t);
|
|
729
729
|
}
|
|
730
730
|
function Qt(t) {
|
|
731
731
|
Yn || (Yn = !0, queueMicrotask(ws)), $r.push(t);
|
|
@@ -760,7 +760,7 @@ let et = null;
|
|
|
760
760
|
function Co(t) {
|
|
761
761
|
et = t;
|
|
762
762
|
}
|
|
763
|
-
let
|
|
763
|
+
let qe = null, Be = 0, ct = null;
|
|
764
764
|
function Ao(t) {
|
|
765
765
|
ct = t;
|
|
766
766
|
}
|
|
@@ -779,11 +779,11 @@ function Kt(t) {
|
|
|
779
779
|
if (e & jt) {
|
|
780
780
|
var n = t.deps, r = (e & At) !== 0;
|
|
781
781
|
if (n !== null) {
|
|
782
|
-
var i, s, a = (e &
|
|
782
|
+
var i, s, a = (e & Dn) !== 0, o = r && Q !== null && !St, l = n.length;
|
|
783
783
|
if (a || o) {
|
|
784
784
|
for (i = 0; i < l; i++)
|
|
785
785
|
s = n[i], (a || !((c = s == null ? void 0 : s.reactions) != null && c.includes(t))) && (s.reactions ?? (s.reactions = [])).push(t);
|
|
786
|
-
a && (t.f ^=
|
|
786
|
+
a && (t.f ^= Dn);
|
|
787
787
|
}
|
|
788
788
|
for (i = 0; i < l; i++)
|
|
789
789
|
if (s = n[i], Kt(
|
|
@@ -801,19 +801,19 @@ function Kt(t) {
|
|
|
801
801
|
}
|
|
802
802
|
function jo(t, e) {
|
|
803
803
|
for (var n = e; n !== null; ) {
|
|
804
|
-
if (n.f &
|
|
804
|
+
if (n.f & Mn)
|
|
805
805
|
try {
|
|
806
806
|
n.fn(t);
|
|
807
807
|
return;
|
|
808
808
|
} catch {
|
|
809
|
-
n.f ^=
|
|
809
|
+
n.f ^= Mn;
|
|
810
810
|
}
|
|
811
811
|
n = n.parent;
|
|
812
812
|
}
|
|
813
813
|
throw An = !1, t;
|
|
814
814
|
}
|
|
815
815
|
function Ro(t) {
|
|
816
|
-
return (t.f & Vt) === 0 && (t.parent === null || (t.parent.f &
|
|
816
|
+
return (t.f & Vt) === 0 && (t.parent === null || (t.parent.f & Mn) === 0);
|
|
817
817
|
}
|
|
818
818
|
function rr(t, e, n, r) {
|
|
819
819
|
if (An) {
|
|
@@ -845,21 +845,21 @@ function zs(t, e, n = 0) {
|
|
|
845
845
|
}
|
|
846
846
|
function Ss(t) {
|
|
847
847
|
var h;
|
|
848
|
-
var e =
|
|
849
|
-
|
|
848
|
+
var e = qe, n = Be, r = ct, i = ce, s = St, a = et, o = se, l = xt, c = t.f;
|
|
849
|
+
qe = /** @type {null | Value[]} */
|
|
850
850
|
null, Be = 0, ct = null, ce = c & (st | Ct) ? null : t, St = !Bt && (c & At) !== 0, et = null, se = t.ctx, xt = !1, Hn++;
|
|
851
851
|
try {
|
|
852
852
|
var u = (
|
|
853
853
|
/** @type {Function} */
|
|
854
854
|
(0, t.fn)()
|
|
855
855
|
), d = t.deps;
|
|
856
|
-
if (
|
|
856
|
+
if (qe !== null) {
|
|
857
857
|
var f;
|
|
858
858
|
if (pn(t, Be), d !== null && Be > 0)
|
|
859
|
-
for (d.length = Be +
|
|
860
|
-
d[Be + f] =
|
|
859
|
+
for (d.length = Be + qe.length, f = 0; f < qe.length; f++)
|
|
860
|
+
d[Be + f] = qe[f];
|
|
861
861
|
else
|
|
862
|
-
t.deps = d =
|
|
862
|
+
t.deps = d = qe;
|
|
863
863
|
if (!St)
|
|
864
864
|
for (f = Be; f < d.length; f++)
|
|
865
865
|
((h = d[f]).reactions ?? (h.reactions = [])).push(t);
|
|
@@ -874,7 +874,7 @@ function Ss(t) {
|
|
|
874
874
|
);
|
|
875
875
|
return i !== null && Hn++, u;
|
|
876
876
|
} finally {
|
|
877
|
-
|
|
877
|
+
qe = e, Be = n, ct = r, ce = i, St = s, et = a, se = o, xt = l;
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
function Lo(t, e) {
|
|
@@ -889,7 +889,7 @@ function Lo(t, e) {
|
|
|
889
889
|
n === null && e.f & Ne && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
890
890
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
891
891
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
892
|
-
(
|
|
892
|
+
(qe === null || !qe.includes(e)) && (Ve(e, jt), e.f & (At | Dn) || (e.f ^= Dn), pn(
|
|
893
893
|
/** @type {Derived} **/
|
|
894
894
|
e,
|
|
895
895
|
0
|
|
@@ -1052,7 +1052,7 @@ function p(t) {
|
|
|
1052
1052
|
if (ce !== null && !xt) {
|
|
1053
1053
|
et !== null && et.includes(t) && ho();
|
|
1054
1054
|
var i = ce.deps;
|
|
1055
|
-
t.rv < Hn && (t.rv = Hn,
|
|
1055
|
+
t.rv < Hn && (t.rv = Hn, qe === null && i !== null && i[Be] === t ? Be++ : qe === null ? qe = [t] : qe.push(t));
|
|
1056
1056
|
} else if (n && /** @type {Derived} */
|
|
1057
1057
|
t.deps === null)
|
|
1058
1058
|
for (var s = (
|
|
@@ -1084,9 +1084,9 @@ function it(t) {
|
|
|
1084
1084
|
xt = e;
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
|
-
const
|
|
1087
|
+
const qo = -7169;
|
|
1088
1088
|
function Ve(t, e) {
|
|
1089
|
-
t.f = t.f &
|
|
1089
|
+
t.f = t.f & qo | e;
|
|
1090
1090
|
}
|
|
1091
1091
|
function Tr(t, e = 1) {
|
|
1092
1092
|
var n = p(t), r = e === 1 ? n++ : n--;
|
|
@@ -1164,7 +1164,7 @@ function Ir(t, e = /* @__PURE__ */ new Set()) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function Mo(t, e) {
|
|
1168
1168
|
if (e) {
|
|
1169
1169
|
const n = document.body;
|
|
1170
1170
|
t.autofocus = !0, Qt(() => {
|
|
@@ -1172,8 +1172,8 @@ function Do(t, e) {
|
|
|
1172
1172
|
});
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
X && /* @__PURE__ */
|
|
1175
|
+
function Do(t) {
|
|
1176
|
+
X && /* @__PURE__ */ Me(t) !== null && Gr(t);
|
|
1177
1177
|
}
|
|
1178
1178
|
let zi = !1;
|
|
1179
1179
|
function Is() {
|
|
@@ -1309,12 +1309,12 @@ function tt(t, e) {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
// @__NO_SIDE_EFFECTS__
|
|
1311
1311
|
function z(t, e) {
|
|
1312
|
-
var n = (e &
|
|
1312
|
+
var n = (e & Da) !== 0, r = (e & Ba) !== 0, i, s = !t.startsWith("<!>");
|
|
1313
1313
|
return () => {
|
|
1314
1314
|
if (X)
|
|
1315
1315
|
return tt(K, null), K;
|
|
1316
1316
|
i === void 0 && (i = Qr(s ? t : "<!>" + t), n || (i = /** @type {Node} */
|
|
1317
|
-
/* @__PURE__ */
|
|
1317
|
+
/* @__PURE__ */ Me(i)));
|
|
1318
1318
|
var a = (
|
|
1319
1319
|
/** @type {TemplateNode} */
|
|
1320
1320
|
r ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
@@ -1322,7 +1322,7 @@ function z(t, e) {
|
|
|
1322
1322
|
if (n) {
|
|
1323
1323
|
var o = (
|
|
1324
1324
|
/** @type {TemplateNode} */
|
|
1325
|
-
/* @__PURE__ */
|
|
1325
|
+
/* @__PURE__ */ Me(a)
|
|
1326
1326
|
), l = (
|
|
1327
1327
|
/** @type {TemplateNode} */
|
|
1328
1328
|
a.lastChild
|
|
@@ -1345,10 +1345,10 @@ function No(t, e, n = "svg") {
|
|
|
1345
1345
|
Qr(i)
|
|
1346
1346
|
), o = (
|
|
1347
1347
|
/** @type {Element} */
|
|
1348
|
-
/* @__PURE__ */
|
|
1348
|
+
/* @__PURE__ */ Me(a)
|
|
1349
1349
|
);
|
|
1350
1350
|
s = /** @type {Element} */
|
|
1351
|
-
/* @__PURE__ */
|
|
1351
|
+
/* @__PURE__ */ Me(o);
|
|
1352
1352
|
}
|
|
1353
1353
|
var l = (
|
|
1354
1354
|
/** @type {TemplateNode} */
|
|
@@ -1387,13 +1387,13 @@ function Yo(t, e) {
|
|
|
1387
1387
|
try {
|
|
1388
1388
|
for (var s = (
|
|
1389
1389
|
/** @type {TemplateNode} */
|
|
1390
|
-
/* @__PURE__ */
|
|
1390
|
+
/* @__PURE__ */ Me(n)
|
|
1391
1391
|
); s && (s.nodeType !== 8 || /** @type {Comment} */
|
|
1392
1392
|
s.data !== Ji); )
|
|
1393
1393
|
s = /** @type {TemplateNode} */
|
|
1394
1394
|
/* @__PURE__ */ at(s);
|
|
1395
1395
|
if (!s)
|
|
1396
|
-
throw
|
|
1396
|
+
throw Dt;
|
|
1397
1397
|
ft(!0), Ze(
|
|
1398
1398
|
/** @type {Comment} */
|
|
1399
1399
|
s
|
|
@@ -1401,18 +1401,18 @@ function Yo(t, e) {
|
|
|
1401
1401
|
const a = Ps(t, { ...e, anchor: s });
|
|
1402
1402
|
if (K === null || K.nodeType !== 8 || /** @type {Comment} */
|
|
1403
1403
|
K.data !== Yr)
|
|
1404
|
-
throw tr(),
|
|
1404
|
+
throw tr(), Dt;
|
|
1405
1405
|
return ft(!1), /** @type {Exports} */
|
|
1406
1406
|
a;
|
|
1407
1407
|
} catch (a) {
|
|
1408
|
-
if (a ===
|
|
1408
|
+
if (a === Dt)
|
|
1409
1409
|
return e.recover === !1 && lo(), Sr(), Gr(n), ft(!1), Ls(t, e);
|
|
1410
1410
|
throw a;
|
|
1411
1411
|
} finally {
|
|
1412
1412
|
ft(r), Ze(i);
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
|
-
const
|
|
1415
|
+
const Mt = /* @__PURE__ */ new Map();
|
|
1416
1416
|
function Ps(t, { target: e, anchor: n, props: r = {}, events: i, context: s, intro: a = !0 }) {
|
|
1417
1417
|
Sr();
|
|
1418
1418
|
var o = /* @__PURE__ */ new Set(), l = (d) => {
|
|
@@ -1422,8 +1422,8 @@ function Ps(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
|
|
|
1422
1422
|
o.add(h);
|
|
1423
1423
|
var b = Va(h);
|
|
1424
1424
|
e.addEventListener(h, on, { passive: b });
|
|
1425
|
-
var m =
|
|
1426
|
-
m === void 0 ? (document.addEventListener(h, on, { passive: b }),
|
|
1425
|
+
var m = Mt.get(h);
|
|
1426
|
+
m === void 0 ? (document.addEventListener(h, on, { passive: b }), Mt.set(h, 1)) : Mt.set(h, m + 1);
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
};
|
|
@@ -1450,9 +1450,9 @@ function Ps(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
|
|
|
1450
1450
|
e.removeEventListener(f, on);
|
|
1451
1451
|
var h = (
|
|
1452
1452
|
/** @type {number} */
|
|
1453
|
-
|
|
1453
|
+
Mt.get(f)
|
|
1454
1454
|
);
|
|
1455
|
-
--h === 0 ? (document.removeEventListener(f, on),
|
|
1455
|
+
--h === 0 ? (document.removeEventListener(f, on), Mt.delete(f)) : Mt.set(f, h);
|
|
1456
1456
|
}
|
|
1457
1457
|
Cr.delete(l), d !== n && ((b = d.parentNode) == null || b.removeChild(d));
|
|
1458
1458
|
};
|
|
@@ -1464,7 +1464,7 @@ function Uo(t, e) {
|
|
|
1464
1464
|
const n = jr.get(t);
|
|
1465
1465
|
return n ? (jr.delete(t), n(e)) : Promise.resolve();
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function D(t, e, n = !1) {
|
|
1468
1468
|
X && Yt();
|
|
1469
1469
|
var r = t, i = null, s = null, a = Oe, o = n ? Kn : 0, l = !1;
|
|
1470
1470
|
const c = (d, f = !0) => {
|
|
@@ -1523,7 +1523,7 @@ function Ce(t, e, n, r, i, s = null) {
|
|
|
1523
1523
|
);
|
|
1524
1524
|
a = X ? Ze(
|
|
1525
1525
|
/** @type {Comment | Text} */
|
|
1526
|
-
/* @__PURE__ */
|
|
1526
|
+
/* @__PURE__ */ Me(c)
|
|
1527
1527
|
) : c.appendChild(Ut());
|
|
1528
1528
|
}
|
|
1529
1529
|
X && Yt();
|
|
@@ -1589,7 +1589,7 @@ function Ce(t, e, n, r, i, s = null) {
|
|
|
1589
1589
|
}
|
|
1590
1590
|
function Zo(t, e, n, r, i, s, a, o) {
|
|
1591
1591
|
var le, de, ee, oe;
|
|
1592
|
-
var l = (i & Ra) !== 0, c = (i & (
|
|
1592
|
+
var l = (i & Ra) !== 0, c = (i & (Dr | Br)) !== 0, u = t.length, d = e.items, f = e.first, h = f, b, m = null, S, k = [], _ = [], C, E, y, w;
|
|
1593
1593
|
if (l)
|
|
1594
1594
|
for (w = 0; w < u; w += 1)
|
|
1595
1595
|
C = t[w], E = a(C, w), y = d.get(E), y !== void 0 && ((le = y.a) == null || le.measure(), (S ?? (S = /* @__PURE__ */ new Set())).add(y));
|
|
@@ -1636,18 +1636,18 @@ function Zo(t, e, n, r, i, s, a, o) {
|
|
|
1636
1636
|
k.push(y), m = y, h = y.next;
|
|
1637
1637
|
}
|
|
1638
1638
|
if (h !== null || b !== void 0) {
|
|
1639
|
-
for (var
|
|
1640
|
-
(s || !(h.e.f & Ke)) &&
|
|
1641
|
-
var N =
|
|
1639
|
+
for (var q = b === void 0 ? [] : Ur(b); h !== null; )
|
|
1640
|
+
(s || !(h.e.f & Ke)) && q.push(h), h = h.next;
|
|
1641
|
+
var N = q.length;
|
|
1642
1642
|
if (N > 0) {
|
|
1643
1643
|
var ve = i & Wi && u === 0 ? n : null;
|
|
1644
1644
|
if (l) {
|
|
1645
1645
|
for (w = 0; w < N; w += 1)
|
|
1646
|
-
(ee =
|
|
1646
|
+
(ee = q[w].a) == null || ee.measure();
|
|
1647
1647
|
for (w = 0; w < N; w += 1)
|
|
1648
|
-
(oe =
|
|
1648
|
+
(oe = q[w].a) == null || oe.fix();
|
|
1649
1649
|
}
|
|
1650
|
-
Ho(e,
|
|
1650
|
+
Ho(e, q, ve, d);
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
1653
|
l && Qt(() => {
|
|
@@ -1658,14 +1658,14 @@ function Zo(t, e, n, r, i, s, a, o) {
|
|
|
1658
1658
|
}), Q.first = e.first && e.first.e, Q.last = m && m.e;
|
|
1659
1659
|
}
|
|
1660
1660
|
function Go(t, e, n, r) {
|
|
1661
|
-
r &
|
|
1661
|
+
r & Dr && yr(t.v, e), r & Br ? yr(
|
|
1662
1662
|
/** @type {Value<number>} */
|
|
1663
1663
|
t.i,
|
|
1664
1664
|
n
|
|
1665
1665
|
) : t.i = n;
|
|
1666
1666
|
}
|
|
1667
1667
|
function Os(t, e, n, r, i, s, a, o, l, c) {
|
|
1668
|
-
var u = (l &
|
|
1668
|
+
var u = (l & Dr) !== 0, d = (l & La) === 0, f = u ? d ? /* @__PURE__ */ er(i) : Fe(i) : i, h = l & Br ? Fe(a) : a, b = {
|
|
1669
1669
|
i: h,
|
|
1670
1670
|
v: f,
|
|
1671
1671
|
k: s,
|
|
@@ -1716,7 +1716,7 @@ function Rr(t, e, n, r, i) {
|
|
|
1716
1716
|
c = l, l = /** @type {TemplateNode} */
|
|
1717
1717
|
/* @__PURE__ */ at(l);
|
|
1718
1718
|
if (l === null)
|
|
1719
|
-
throw tr(),
|
|
1719
|
+
throw tr(), Dt;
|
|
1720
1720
|
tt(K, c), s = Ze(l);
|
|
1721
1721
|
return;
|
|
1722
1722
|
}
|
|
@@ -1724,16 +1724,16 @@ function Rr(t, e, n, r, i) {
|
|
|
1724
1724
|
n && (u = `<svg>${u}</svg>`);
|
|
1725
1725
|
var d = Qr(u);
|
|
1726
1726
|
if ((n || r) && (d = /** @type {Element} */
|
|
1727
|
-
/* @__PURE__ */
|
|
1727
|
+
/* @__PURE__ */ Me(d)), tt(
|
|
1728
1728
|
/** @type {TemplateNode} */
|
|
1729
|
-
/* @__PURE__ */
|
|
1729
|
+
/* @__PURE__ */ Me(d),
|
|
1730
1730
|
/** @type {TemplateNode} */
|
|
1731
1731
|
d.lastChild
|
|
1732
1732
|
), n || r)
|
|
1733
|
-
for (; /* @__PURE__ */
|
|
1733
|
+
for (; /* @__PURE__ */ Me(d); )
|
|
1734
1734
|
s.before(
|
|
1735
1735
|
/** @type {Node} */
|
|
1736
|
-
/* @__PURE__ */
|
|
1736
|
+
/* @__PURE__ */ Me(d)
|
|
1737
1737
|
);
|
|
1738
1738
|
else
|
|
1739
1739
|
s.before(d);
|
|
@@ -1772,7 +1772,7 @@ function Vo() {
|
|
|
1772
1772
|
for (var t, e, n = 0, r = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = Fs(t)) && (r && (r += " "), r += e);
|
|
1773
1773
|
return r;
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function qs(t) {
|
|
1776
1776
|
return typeof t == "object" ? Vo(t) : t ?? "";
|
|
1777
1777
|
}
|
|
1778
1778
|
function Wo(t) {
|
|
@@ -1781,11 +1781,11 @@ function Wo(t) {
|
|
|
1781
1781
|
if (!e) {
|
|
1782
1782
|
if (e = !0, t.hasAttribute("value")) {
|
|
1783
1783
|
var r = t.value;
|
|
1784
|
-
|
|
1784
|
+
M(t, "value", null), t.value = r;
|
|
1785
1785
|
}
|
|
1786
1786
|
if (t.hasAttribute("checked")) {
|
|
1787
1787
|
var i = t.checked;
|
|
1788
|
-
|
|
1788
|
+
M(t, "checked", null), t.checked = i;
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
1791
|
};
|
|
@@ -1802,16 +1802,16 @@ function Xo(t, e) {
|
|
|
1802
1802
|
function Jo(t, e) {
|
|
1803
1803
|
e ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected");
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function M(t, e, n, r) {
|
|
1806
1806
|
var i = t.__attributes ?? (t.__attributes = {});
|
|
1807
|
-
X && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || i[e] !== (i[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[no] = n), n == null ? t.removeAttribute(e) : typeof n != "string" &&
|
|
1807
|
+
X && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || i[e] !== (i[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[no] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Ms(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
|
|
1808
1808
|
}
|
|
1809
1809
|
function $i(t, e, n, r, i = !1, s = !1, a = !1) {
|
|
1810
1810
|
var o = e || {}, l = t.tagName === "OPTION";
|
|
1811
1811
|
for (var c in e)
|
|
1812
1812
|
c in n || (n[c] = null);
|
|
1813
|
-
n.class && (n.class =
|
|
1814
|
-
var u =
|
|
1813
|
+
n.class && (n.class = qs(n.class));
|
|
1814
|
+
var u = Ms(t), d = (
|
|
1815
1815
|
/** @type {Record<string, unknown>} **/
|
|
1816
1816
|
t.__attributes ?? (t.__attributes = {})
|
|
1817
1817
|
);
|
|
@@ -1847,7 +1847,7 @@ function $i(t, e, n, r, i = !1, s = !1, a = !1) {
|
|
|
1847
1847
|
} else if (k === "style" && _ != null)
|
|
1848
1848
|
t.style.cssText = _ + "";
|
|
1849
1849
|
else if (k === "autofocus")
|
|
1850
|
-
|
|
1850
|
+
Mo(
|
|
1851
1851
|
/** @type {HTMLElement} */
|
|
1852
1852
|
t,
|
|
1853
1853
|
!!_
|
|
@@ -1879,7 +1879,7 @@ function $i(t, e, n, r, i = !1, s = !1, a = !1) {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
} else
|
|
1881
1881
|
t.removeAttribute(k);
|
|
1882
|
-
else S || u.includes(m) && (s || typeof _ != "string") ? t[m] = _ : typeof _ != "function" && (X && (m === "src" || m === "href" || m === "srcset") ||
|
|
1882
|
+
else S || u.includes(m) && (s || typeof _ != "string") ? t[m] = _ : typeof _ != "function" && (X && (m === "src" || m === "href" || m === "srcset") || M(t, m, _));
|
|
1883
1883
|
}
|
|
1884
1884
|
k === "style" && "__styles" in t && (t.__styles = {});
|
|
1885
1885
|
}
|
|
@@ -1888,7 +1888,7 @@ function $i(t, e, n, r, i = !1, s = !1, a = !1) {
|
|
|
1888
1888
|
return o;
|
|
1889
1889
|
}
|
|
1890
1890
|
var Ei = /* @__PURE__ */ new Map();
|
|
1891
|
-
function
|
|
1891
|
+
function Ms(t) {
|
|
1892
1892
|
var e = Ei.get(t.nodeName);
|
|
1893
1893
|
if (e) return e;
|
|
1894
1894
|
Ei.set(t.nodeName, e = []);
|
|
@@ -1927,15 +1927,15 @@ const Ko = () => performance.now(), dt = {
|
|
|
1927
1927
|
now: () => Ko(),
|
|
1928
1928
|
tasks: /* @__PURE__ */ new Set()
|
|
1929
1929
|
};
|
|
1930
|
-
function
|
|
1930
|
+
function Ds() {
|
|
1931
1931
|
const t = dt.now();
|
|
1932
1932
|
dt.tasks.forEach((e) => {
|
|
1933
1933
|
e.c(t) || (dt.tasks.delete(e), e.f());
|
|
1934
|
-
}), dt.tasks.size !== 0 && dt.tick(
|
|
1934
|
+
}), dt.tasks.size !== 0 && dt.tick(Ds);
|
|
1935
1935
|
}
|
|
1936
1936
|
function el(t) {
|
|
1937
1937
|
let e;
|
|
1938
|
-
return dt.tasks.size === 0 && dt.tick(
|
|
1938
|
+
return dt.tasks.size === 0 && dt.tick(Ds), {
|
|
1939
1939
|
promise: new Promise((n) => {
|
|
1940
1940
|
dt.tasks.add(e = { c: t, f: n });
|
|
1941
1941
|
}),
|
|
@@ -1969,7 +1969,7 @@ function Ti(t) {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
const nl = (t) => t;
|
|
1971
1971
|
function _n(t, e, n, r) {
|
|
1972
|
-
var i = (t &
|
|
1972
|
+
var i = (t & Ma) !== 0, s = "both", a, o = e.inert, l = e.style.overflow, c, u;
|
|
1973
1973
|
function d() {
|
|
1974
1974
|
var S = ce, k = Q;
|
|
1975
1975
|
rt(null), Ge(null);
|
|
@@ -2194,7 +2194,7 @@ function Ns(t = {}, e, n, r) {
|
|
|
2194
2194
|
};
|
|
2195
2195
|
}), t;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function De(t = !1) {
|
|
2198
2198
|
const e = (
|
|
2199
2199
|
/** @type {ComponentContextLegacy} */
|
|
2200
2200
|
se
|
|
@@ -2216,7 +2216,7 @@ function qe(t = !1) {
|
|
|
2216
2216
|
r = () => p(a);
|
|
2217
2217
|
}
|
|
2218
2218
|
n.b.length && ko(() => {
|
|
2219
|
-
Ci(e, r),
|
|
2219
|
+
Ci(e, r), qn(n.b);
|
|
2220
2220
|
}), Et(() => {
|
|
2221
2221
|
const i = it(() => n.m.map(Ka));
|
|
2222
2222
|
return () => {
|
|
@@ -2224,7 +2224,7 @@ function qe(t = !1) {
|
|
|
2224
2224
|
typeof s == "function" && s();
|
|
2225
2225
|
};
|
|
2226
2226
|
}), n.a.length && Et(() => {
|
|
2227
|
-
Ci(e, r),
|
|
2227
|
+
Ci(e, r), qn(n.a);
|
|
2228
2228
|
});
|
|
2229
2229
|
}
|
|
2230
2230
|
function Ci(t, e) {
|
|
@@ -2337,7 +2337,7 @@ function Ai(t) {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
function g(t, e, n, r) {
|
|
2339
2339
|
var j;
|
|
2340
|
-
var i = (n & Pa) !== 0, s = !Wt || (n & Oa) !== 0, a = (n & Fa) !== 0, o = (n &
|
|
2340
|
+
var i = (n & Pa) !== 0, s = !Wt || (n & Oa) !== 0, a = (n & Fa) !== 0, o = (n & qa) !== 0, l = !1, c;
|
|
2341
2341
|
a ? [c, l] = dl(() => (
|
|
2342
2342
|
/** @type {V} */
|
|
2343
2343
|
t[e]
|
|
@@ -2842,12 +2842,12 @@ function Hs(t, e) {
|
|
|
2842
2842
|
{
|
|
2843
2843
|
var k = (w) => {
|
|
2844
2844
|
var j = kl();
|
|
2845
|
-
|
|
2845
|
+
M(j, "title", "Attiva volume"), j.__click = [_l, s], x(w, j);
|
|
2846
2846
|
}, _ = (w) => {
|
|
2847
2847
|
var j = zl();
|
|
2848
|
-
|
|
2848
|
+
M(j, "title", "Muta"), j.__click = [yl, s], x(w, j);
|
|
2849
2849
|
};
|
|
2850
|
-
|
|
2850
|
+
D(S, (w) => {
|
|
2851
2851
|
s() ? w(k) : w(_, !1);
|
|
2852
2852
|
});
|
|
2853
2853
|
}
|
|
@@ -3057,7 +3057,7 @@ const Ol = async (t) => {
|
|
|
3057
3057
|
nome_file: e,
|
|
3058
3058
|
function: "edit"
|
|
3059
3059
|
});
|
|
3060
|
-
},
|
|
3060
|
+
}, ql = async () => {
|
|
3061
3061
|
let t = J.getEnvironmentId(), e = `https://${Zs(t)}.aksiliasuite.com/api/v1/operatore`;
|
|
3062
3062
|
t == "aks_svi" && (e = "https://hyena-popular-caiman.ngrok-free.app/api/v1/operatore");
|
|
3063
3063
|
const n = await fetch(e, {
|
|
@@ -3073,7 +3073,7 @@ const Ol = async (t) => {
|
|
|
3073
3073
|
}, ar = {
|
|
3074
3074
|
getDocuments: Ol,
|
|
3075
3075
|
getDocumentPage: Fl,
|
|
3076
|
-
getUsername:
|
|
3076
|
+
getUsername: ql
|
|
3077
3077
|
}, ti = (t) => {
|
|
3078
3078
|
switch (t) {
|
|
3079
3079
|
case "en":
|
|
@@ -3081,7 +3081,7 @@ const Ol = async (t) => {
|
|
|
3081
3081
|
default:
|
|
3082
3082
|
return "it-IT";
|
|
3083
3083
|
}
|
|
3084
|
-
},
|
|
3084
|
+
}, Ml = async (t, e) => {
|
|
3085
3085
|
const n = new FormData();
|
|
3086
3086
|
n.append("file", t), n.append("lang", ti(e));
|
|
3087
3087
|
const r = await fetch(`${J.getUrl()}/audio/stt`, {
|
|
@@ -3094,7 +3094,7 @@ const Ol = async (t) => {
|
|
|
3094
3094
|
body: n
|
|
3095
3095
|
});
|
|
3096
3096
|
return r.ok ? (await r.json()).text : (console.error("Failed to fetch text"), "");
|
|
3097
|
-
},
|
|
3097
|
+
}, Dl = async (t, e) => {
|
|
3098
3098
|
const n = await fetch(`${J.getUrl()}/audio/tts`, {
|
|
3099
3099
|
method: "POST",
|
|
3100
3100
|
headers: {
|
|
@@ -3110,8 +3110,8 @@ const Ol = async (t) => {
|
|
|
3110
3110
|
const r = await n.blob();
|
|
3111
3111
|
return URL.createObjectURL(r);
|
|
3112
3112
|
}, ni = {
|
|
3113
|
-
getText:
|
|
3114
|
-
getAudio:
|
|
3113
|
+
getText: Ml,
|
|
3114
|
+
getAudio: Dl
|
|
3115
3115
|
};
|
|
3116
3116
|
go();
|
|
3117
3117
|
var Bl = /* @__PURE__ */ z('<div class="circle svelte-dqjlks"></div>');
|
|
@@ -3133,7 +3133,7 @@ function Yl(t, e) {
|
|
|
3133
3133
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "0.75s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
3134
3134
|
var o = Bl();
|
|
3135
3135
|
return O(() => {
|
|
3136
|
-
|
|
3136
|
+
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`), G(o, "pause-animation", a());
|
|
3137
3137
|
}), x(t, o), H({
|
|
3138
3138
|
get color() {
|
|
3139
3139
|
return n();
|
|
@@ -3205,7 +3205,7 @@ function Zl(t, e) {
|
|
|
3205
3205
|
let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), i = g(e, "pause", 12, !1), s = g(e, "colorOuter", 12, "#FF3E00"), a = g(e, "colorCenter", 12, "#40B3FF"), o = g(e, "colorInner", 12, "#676778"), l = g(e, "durationMultiplier", 12, 1), c = g(e, "durationOuter", 28, () => `${l() * 2}s`), u = g(e, "durationInner", 28, () => `${l() * 1.5}s`), d = g(e, "durationCenter", 28, () => `${l() * 3}s`);
|
|
3206
3206
|
var f = Ul();
|
|
3207
3207
|
return O(() => {
|
|
3208
|
-
|
|
3208
|
+
M(f, "style", `--size: ${n() ?? ""}${r() ?? ""}; --colorInner: ${o() ?? ""}; --colorCenter: ${a() ?? ""}; --colorOuter: ${s() ?? ""}; --durationInner: ${u() ?? ""}; --durationCenter: ${d() ?? ""}; --durationOuter: ${c() ?? ""};`), G(f, "pause-animation", i());
|
|
3209
3209
|
}), x(t, f), H({
|
|
3210
3210
|
get size() {
|
|
3211
3211
|
return n();
|
|
@@ -3330,7 +3330,7 @@ function Wl(t, e) {
|
|
|
3330
3330
|
I(k);
|
|
3331
3331
|
var C = B(k, 2), E = A(C);
|
|
3332
3332
|
return I(C), I(f), I(d), I(u), O(() => {
|
|
3333
|
-
|
|
3333
|
+
M(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${s() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${c() ?? ""};`), G(f, "pause-animation", i()), G(b, "pause-animation", i()), G(S, "pause-animation", i()), G(_, "pause-animation", i()), G(E, "pause-animation", i());
|
|
3334
3334
|
}), x(t, u), H({
|
|
3335
3335
|
get size() {
|
|
3336
3336
|
return n();
|
|
@@ -3426,14 +3426,14 @@ function Kl(t, e) {
|
|
|
3426
3426
|
var u;
|
|
3427
3427
|
U(e, !1), V(t, Ql);
|
|
3428
3428
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2.1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(ze)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ze, "");
|
|
3429
|
-
|
|
3429
|
+
De();
|
|
3430
3430
|
var c = Jl();
|
|
3431
3431
|
return Ce(c, 5, () => We(2, 1), Ie, (d, f) => {
|
|
3432
3432
|
var h = Xl();
|
|
3433
3433
|
O(() => {
|
|
3434
|
-
|
|
3434
|
+
M(h, "style", `animation: ${i() ?? ""} ${(p(f) === 1 ? `${(+l - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), G(h, "pause-animation", a());
|
|
3435
3435
|
}), x(d, h);
|
|
3436
|
-
}), I(c), O(() =>
|
|
3436
|
+
}), I(c), O(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), x(t, c), H({
|
|
3437
3437
|
get color() {
|
|
3438
3438
|
return n();
|
|
3439
3439
|
},
|
|
@@ -3661,10 +3661,10 @@ function nc(t, e) {
|
|
|
3661
3661
|
`width: ${r()}`,
|
|
3662
3662
|
`height: ${r()}`
|
|
3663
3663
|
].join(";"));
|
|
3664
|
-
}), wn(),
|
|
3664
|
+
}), wn(), De();
|
|
3665
3665
|
var a = ec();
|
|
3666
3666
|
return O(() => {
|
|
3667
|
-
|
|
3667
|
+
M(a, "style", `--duration: ${i() ?? ""}; ${p(n) ?? ""}`), G(a, "pause-animation", s());
|
|
3668
3668
|
}), x(t, a), H({
|
|
3669
3669
|
get size() {
|
|
3670
3670
|
return r();
|
|
@@ -3707,7 +3707,7 @@ function sc(t, e) {
|
|
|
3707
3707
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
3708
3708
|
var o = rc(), l = A(o);
|
|
3709
3709
|
return I(o), O(() => {
|
|
3710
|
-
|
|
3710
|
+
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}; --duration: ${i() ?? ""};`), G(l, "pause-animation", a());
|
|
3711
3711
|
}), x(t, o), H({
|
|
3712
3712
|
get color() {
|
|
3713
3713
|
return n();
|
|
@@ -3820,7 +3820,7 @@ function lc(t, e) {
|
|
|
3820
3820
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "4s"), s = g(e, "size", 12, "60"), a = g(e, "stroke", 28, () => +s() / 12 + r()), o = g(e, "pause", 12, !1);
|
|
3821
3821
|
var l = ac(), c = A(l);
|
|
3822
3822
|
return I(l), O(() => {
|
|
3823
|
-
|
|
3823
|
+
M(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --stroke: ${a() ?? ""}; --floatSize: ${s() ?? ""}; --duration: ${i() ?? ""}`), G(c, "pause-animation", o());
|
|
3824
3824
|
}), x(t, l), H({
|
|
3825
3825
|
get color() {
|
|
3826
3826
|
return n();
|
|
@@ -3894,14 +3894,14 @@ function fc(t, e) {
|
|
|
3894
3894
|
var u;
|
|
3895
3895
|
U(e, !1), V(t, dc);
|
|
3896
3896
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.2s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(ze)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ze, "");
|
|
3897
|
-
|
|
3897
|
+
De();
|
|
3898
3898
|
var c = uc();
|
|
3899
3899
|
return Ce(c, 5, () => We(5, 1), Ie, (d, f) => {
|
|
3900
3900
|
var h = cc();
|
|
3901
3901
|
O(() => {
|
|
3902
|
-
|
|
3902
|
+
M(h, "style", `animation-delay: ${(p(f) - 1) * (+l / 12)}${o ?? ""}`), G(h, "pause-animation", a());
|
|
3903
3903
|
}), x(d, h);
|
|
3904
|
-
}), I(c), O(() =>
|
|
3904
|
+
}), I(c), O(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), x(t, c), H({
|
|
3905
3905
|
get color() {
|
|
3906
3906
|
return n();
|
|
3907
3907
|
},
|
|
@@ -3993,14 +3993,14 @@ function gc(t, e) {
|
|
|
3993
3993
|
() => {
|
|
3994
3994
|
$(o, ri(n(), 0.2));
|
|
3995
3995
|
}
|
|
3996
|
-
), wn(),
|
|
3996
|
+
), wn(), De();
|
|
3997
3997
|
var l = pc();
|
|
3998
3998
|
return Ce(l, 5, () => We(2, 1), Ie, (c, u) => {
|
|
3999
3999
|
var d = hc();
|
|
4000
4000
|
O(() => {
|
|
4001
|
-
Qe(d, `lines small-lines ${p(u) ?? ""} svelte-bnawe9`),
|
|
4001
|
+
Qe(d, `lines small-lines ${p(u) ?? ""} svelte-bnawe9`), M(d, "style", `--color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(d, "pause-animation", a());
|
|
4002
4002
|
}), x(c, d);
|
|
4003
|
-
}), I(l), O(() =>
|
|
4003
|
+
}), I(l), O(() => M(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --rgba:${p(o) ?? ""}`)), x(t, l), H({
|
|
4004
4004
|
get color() {
|
|
4005
4005
|
return n();
|
|
4006
4006
|
},
|
|
@@ -4069,14 +4069,14 @@ function xc(t, e) {
|
|
|
4069
4069
|
var u;
|
|
4070
4070
|
U(e, !1), V(t, wc);
|
|
4071
4071
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(ze)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ze, "");
|
|
4072
|
-
|
|
4072
|
+
De();
|
|
4073
4073
|
var c = bc();
|
|
4074
4074
|
return Ce(c, 5, () => We(3, 1), Ie, (d, f) => {
|
|
4075
4075
|
var h = mc();
|
|
4076
4076
|
O(() => {
|
|
4077
|
-
|
|
4077
|
+
M(h, "style", `animation-delay: ${+l / 3 * (p(f) - 1) + o};`), G(h, "pause-animation", a());
|
|
4078
4078
|
}), x(d, h);
|
|
4079
|
-
}), I(c), O(() =>
|
|
4079
|
+
}), I(c), O(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), x(t, c), H({
|
|
4080
4080
|
get color() {
|
|
4081
4081
|
return n();
|
|
4082
4082
|
},
|
|
@@ -4149,14 +4149,14 @@ const yc = {
|
|
|
4149
4149
|
function zc(t, e) {
|
|
4150
4150
|
U(e, !1), V(t, yc);
|
|
4151
4151
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4152
|
-
|
|
4152
|
+
De();
|
|
4153
4153
|
var o = kc();
|
|
4154
4154
|
return Ce(o, 5, () => We(2, 1), Ie, (l, c) => {
|
|
4155
4155
|
var u = _c();
|
|
4156
4156
|
O(() => {
|
|
4157
4157
|
Qe(u, `border ${p(c) ?? ""} svelte-kxapcj`), G(u, "pause-animation", a());
|
|
4158
4158
|
}), x(l, u);
|
|
4159
|
-
}), I(o), O(() =>
|
|
4159
|
+
}), I(o), O(() => M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), x(t, o), H({
|
|
4160
4160
|
get color() {
|
|
4161
4161
|
return n();
|
|
4162
4162
|
},
|
|
@@ -4241,14 +4241,14 @@ function Tc(t, e) {
|
|
|
4241
4241
|
var u;
|
|
4242
4242
|
U(e, !1), V(t, Ec);
|
|
4243
4243
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "0.6s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(ze)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ze, "");
|
|
4244
|
-
|
|
4244
|
+
De();
|
|
4245
4245
|
var c = $c();
|
|
4246
4246
|
return Ce(c, 5, () => We(3, 1), Ie, (d, f) => {
|
|
4247
4247
|
var h = Sc();
|
|
4248
4248
|
O(() => {
|
|
4249
|
-
|
|
4249
|
+
M(h, "style", `--dotSize:${+s() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${p(f) * (+l / 10)}${o ?? ""};`), G(h, "pause-animation", a());
|
|
4250
4250
|
}), x(d, h);
|
|
4251
|
-
}), I(c), O(() =>
|
|
4251
|
+
}), I(c), O(() => M(c, "style", `--size:${s() ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`)), x(t, c), H({
|
|
4252
4252
|
get color() {
|
|
4253
4253
|
return n();
|
|
4254
4254
|
},
|
|
@@ -4323,7 +4323,7 @@ function Ac(t, e) {
|
|
|
4323
4323
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "3s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4324
4324
|
var o = Ic(), l = A(o);
|
|
4325
4325
|
return I(o), O(() => {
|
|
4326
|
-
|
|
4326
|
+
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(l, "pause-animation", a());
|
|
4327
4327
|
}), x(t, o), H({
|
|
4328
4328
|
get color() {
|
|
4329
4329
|
return n();
|
|
@@ -4395,7 +4395,7 @@ function Lc(t, e) {
|
|
|
4395
4395
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.25s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4396
4396
|
var o = jc(), l = A(o);
|
|
4397
4397
|
return I(o), O(() => {
|
|
4398
|
-
|
|
4398
|
+
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(l, "pause-animation", a());
|
|
4399
4399
|
}), x(t, o), H({
|
|
4400
4400
|
get color() {
|
|
4401
4401
|
return n();
|
|
@@ -4463,14 +4463,14 @@ function ii(t, e) {
|
|
|
4463
4463
|
var u;
|
|
4464
4464
|
U(e, !1), V(t, Fc);
|
|
4465
4465
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.5s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(ze)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ze, "");
|
|
4466
|
-
|
|
4466
|
+
De();
|
|
4467
4467
|
var c = Oc();
|
|
4468
4468
|
return Ce(c, 5, () => We(3, 0), Ie, (d, f) => {
|
|
4469
4469
|
var h = Pc();
|
|
4470
4470
|
O(() => {
|
|
4471
|
-
|
|
4471
|
+
M(h, "style", `animation-delay: ${p(f) * (+l / 10)}${o ?? ""}; left: ${p(f) * (+s() / 3 + +s() / 15) + r()};`), G(h, "pause-animation", a());
|
|
4472
4472
|
}), x(d, h);
|
|
4473
|
-
}), I(c), O(() =>
|
|
4473
|
+
}), I(c), O(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), x(t, c), H({
|
|
4474
4474
|
get color() {
|
|
4475
4475
|
return n();
|
|
4476
4476
|
},
|
|
@@ -4516,8 +4516,8 @@ Z(
|
|
|
4516
4516
|
[],
|
|
4517
4517
|
!0
|
|
4518
4518
|
);
|
|
4519
|
-
var
|
|
4520
|
-
const
|
|
4519
|
+
var qc = /* @__PURE__ */ z('<div class="ring svelte-1rvptk"></div>'), Mc = /* @__PURE__ */ z('<div class="wrapper svelte-1rvptk"></div>');
|
|
4520
|
+
const Dc = {
|
|
4521
4521
|
hash: "svelte-1rvptk",
|
|
4522
4522
|
code: `.wrapper.svelte-1rvptk {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size);}.ring.svelte-1rvptk {position:absolute;border:2px solid var(--color);border-radius:50%;background-color:transparent;
|
|
4523
4523
|
animation: svelte-1rvptk-motion var(--duration) ease infinite;}.pause-animation.svelte-1rvptk {animation-play-state:paused;}
|
|
@@ -4535,16 +4535,16 @@ const qc = {
|
|
|
4535
4535
|
};
|
|
4536
4536
|
function Bc(t, e) {
|
|
4537
4537
|
var u;
|
|
4538
|
-
U(e, !1), V(t,
|
|
4538
|
+
U(e, !1), V(t, Dc);
|
|
4539
4539
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2.5s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(ze)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ze, "");
|
|
4540
|
-
|
|
4541
|
-
var c =
|
|
4540
|
+
De();
|
|
4541
|
+
var c = Mc();
|
|
4542
4542
|
return Ce(c, 5, () => We(6, 0), Ie, (d, f) => {
|
|
4543
|
-
var h =
|
|
4543
|
+
var h = qc();
|
|
4544
4544
|
O(() => {
|
|
4545
|
-
|
|
4545
|
+
M(h, "style", `animation-delay: ${p(f) * (+l / 25)}${o ?? ""}; width: ${p(f) * (+s() / 6) + r()}; height: ${p(f) * (+s() / 6) / 2 + r()}; `), G(h, "pause-animation", a());
|
|
4546
4546
|
}), x(d, h);
|
|
4547
|
-
}), I(c), O(() =>
|
|
4547
|
+
}), I(c), O(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-s() / 5}${r() ?? ""}; --motionTwo: ${+s() / 4}${r() ?? ""}; --motionThree: ${-s() / 5}${r() ?? ""}; --duration: ${i() ?? ""};`)), x(t, c), H({
|
|
4548
4548
|
get color() {
|
|
4549
4549
|
return n();
|
|
4550
4550
|
},
|
|
@@ -4616,15 +4616,15 @@ function Hc(t, e) {
|
|
|
4616
4616
|
var d;
|
|
4617
4617
|
U(e, !1), V(t, Uc);
|
|
4618
4618
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = i().match(ze)) == null ? void 0 : d[0]) ?? "s", l = i().replace(ze, "");
|
|
4619
|
-
|
|
4619
|
+
De();
|
|
4620
4620
|
var c = Yc(), u = A(c);
|
|
4621
4621
|
return Ce(u, 5, () => We(2, 0), Ie, (f, h) => {
|
|
4622
4622
|
var b = Nc();
|
|
4623
4623
|
O(() => {
|
|
4624
|
-
|
|
4624
|
+
M(b, "style", `animation-delay: ${(p(h) === 1 ? `${+l / 2}${o}` : "0s") ?? ""}; ${(p(h) === 1 ? "bottom: 0;" : "") ?? ""} ${(p(h) === 1 ? "top: auto;" : "") ?? ""}`), G(b, "pause-animation", a());
|
|
4625
4625
|
}), x(f, b);
|
|
4626
4626
|
}), I(u), I(c), O(() => {
|
|
4627
|
-
|
|
4627
|
+
M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(u, "pause-animation", a());
|
|
4628
4628
|
}), x(t, c), H({
|
|
4629
4629
|
get color() {
|
|
4630
4630
|
return n();
|
|
@@ -4700,7 +4700,7 @@ function Vc(t, e) {
|
|
|
4700
4700
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "3s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4701
4701
|
var o = Zc();
|
|
4702
4702
|
return O(() => {
|
|
4703
|
-
|
|
4703
|
+
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(o, "pause-animation", a());
|
|
4704
4704
|
}), x(t, o), H({
|
|
4705
4705
|
get color() {
|
|
4706
4706
|
return n();
|
|
@@ -4794,7 +4794,7 @@ function Jc(t, e) {
|
|
|
4794
4794
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.7s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
4795
4795
|
var o = Wc(), l = A(o);
|
|
4796
4796
|
return I(o), O(() => {
|
|
4797
|
-
|
|
4797
|
+
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(l, "pause-animation", a());
|
|
4798
4798
|
}), x(t, o), H({
|
|
4799
4799
|
get color() {
|
|
4800
4800
|
return n();
|
|
@@ -4858,7 +4858,7 @@ function eu(t, e) {
|
|
|
4858
4858
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "0.6s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = +s() / 7, l = +s() / 2 - o / 2;
|
|
4859
4859
|
var c = Qc(), u = A(c), d = B(u, 2);
|
|
4860
4860
|
return I(c), O(() => {
|
|
4861
|
-
|
|
4861
|
+
M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${l ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`), G(c, "pause-animation", a()), G(u, "pause-animation", a()), G(d, "pause-animation", a());
|
|
4862
4862
|
}), x(t, c), H({
|
|
4863
4863
|
get color() {
|
|
4864
4864
|
return n();
|
|
@@ -4946,10 +4946,10 @@ function ru(t, e) {
|
|
|
4946
4946
|
() => {
|
|
4947
4947
|
$(o, ri(n(), 0.6));
|
|
4948
4948
|
}
|
|
4949
|
-
), wn(),
|
|
4949
|
+
), wn(), De();
|
|
4950
4950
|
var l = tu(), c = A(l);
|
|
4951
4951
|
return I(l), O(() => {
|
|
4952
|
-
|
|
4952
|
+
M(l, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${p(o) ?? ""}; --duration: ${i() ?? ""};`), G(c, "pause-animation", a());
|
|
4953
4953
|
}), x(t, l), H({
|
|
4954
4954
|
get color() {
|
|
4955
4955
|
return n();
|
|
@@ -5018,7 +5018,7 @@ function au(t, e) {
|
|
|
5018
5018
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.5s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
5019
5019
|
var o = iu();
|
|
5020
5020
|
return O(() => {
|
|
5021
|
-
|
|
5021
|
+
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color:${n() ?? ""}; --duration: ${i() ?? ""};`), G(o, "pause-animation", a());
|
|
5022
5022
|
}), x(t, o), H({
|
|
5023
5023
|
get color() {
|
|
5024
5024
|
return n();
|
|
@@ -5085,7 +5085,7 @@ function cu(t, e) {
|
|
|
5085
5085
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "8s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
|
|
5086
5086
|
var o = ou();
|
|
5087
5087
|
return O(() => {
|
|
5088
|
-
|
|
5088
|
+
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color:${n() ?? ""}; --duration:${i() ?? ""}`), G(o, "pause-animation", a());
|
|
5089
5089
|
}), x(t, o), H({
|
|
5090
5090
|
get color() {
|
|
5091
5091
|
return n();
|
|
@@ -5154,14 +5154,14 @@ function hu(t, e) {
|
|
|
5154
5154
|
var u;
|
|
5155
5155
|
U(e, !1), V(t, fu);
|
|
5156
5156
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.25s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = i().match(ze)) == null ? void 0 : u[0]) ?? "s", l = i().replace(ze, "");
|
|
5157
|
-
|
|
5157
|
+
De();
|
|
5158
5158
|
var c = du();
|
|
5159
5159
|
return Ce(c, 5, () => We(10, 0), Ie, (d, f) => {
|
|
5160
5160
|
var h = uu();
|
|
5161
5161
|
O(() => {
|
|
5162
|
-
|
|
5162
|
+
M(h, "style", `left: ${p(f) * (+s() / 5 + (+s() / 15 - +s() / 100)) + r()}; animation-delay: ${p(f) * (+l / 8.3)}${o ?? ""};`), G(h, "pause-animation", a());
|
|
5163
5163
|
}), x(d, h);
|
|
5164
|
-
}), I(c), O(() =>
|
|
5164
|
+
}), I(c), O(() => M(c, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), x(t, c), H({
|
|
5165
5165
|
get color() {
|
|
5166
5166
|
return n();
|
|
5167
5167
|
},
|
|
@@ -5238,14 +5238,14 @@ function mu(t, e) {
|
|
|
5238
5238
|
() => {
|
|
5239
5239
|
$(c, ri(n(), 1));
|
|
5240
5240
|
}
|
|
5241
|
-
), wn(),
|
|
5241
|
+
), wn(), De();
|
|
5242
5242
|
var u = vu();
|
|
5243
5243
|
return Ce(u, 5, () => We(2, 1), Ie, (f, h) => {
|
|
5244
5244
|
var b = pu();
|
|
5245
5245
|
O(() => {
|
|
5246
|
-
|
|
5246
|
+
M(b, "style", `animation-delay: ${(p(h) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +l + o};`), G(b, "pause-animation", a());
|
|
5247
5247
|
}), x(f, b);
|
|
5248
|
-
}), I(u), O(() =>
|
|
5248
|
+
}), I(u), O(() => M(u, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${p(c) ?? ""}; --duration: ${i() ?? ""}`)), x(t, u), H({
|
|
5249
5249
|
get color() {
|
|
5250
5250
|
return n();
|
|
5251
5251
|
},
|
|
@@ -5310,7 +5310,7 @@ function xu(t, e) {
|
|
|
5310
5310
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "0.4s"), s = g(e, "size", 12, "15"), a = g(e, "pause", 12, !1);
|
|
5311
5311
|
var o = bu();
|
|
5312
5312
|
return O(() => {
|
|
5313
|
-
|
|
5313
|
+
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(o, "pause-animation", a());
|
|
5314
5314
|
}), x(t, o), H({
|
|
5315
5315
|
get color() {
|
|
5316
5316
|
return n();
|
|
@@ -5376,7 +5376,7 @@ function yu(t, e) {
|
|
|
5376
5376
|
let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "0.4s"), s = g(e, "size", 12, "15"), a = g(e, "pause", 12, !1);
|
|
5377
5377
|
var o = _u();
|
|
5378
5378
|
return O(() => {
|
|
5379
|
-
|
|
5379
|
+
M(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`), G(o, "pause-animation", a());
|
|
5380
5380
|
}), x(t, o), H({
|
|
5381
5381
|
get color() {
|
|
5382
5382
|
return n();
|
|
@@ -5428,13 +5428,13 @@ const zu = (t, e, n) => {
|
|
|
5428
5428
|
$(e, P(r.value)), n(p(e));
|
|
5429
5429
|
};
|
|
5430
5430
|
var Su = /* @__PURE__ */ z('<div class="text-center p-3"><!> <p class="mt-2 text-muted">Ricerca in corso...</p></div>'), $u = /* @__PURE__ */ z('<div class="text-center p-3"><i class="fa-solid fa-search text-muted fa-2x"></i> <p class="mt-2 text-muted">Inserisci almeno 3 caratteri per iniziare la ricerca</p></div>'), Eu = /* @__PURE__ */ z('<div class="text-center p-3"><i class="fa-solid fa-file-circle-exclamation text-muted fa-2x"></i> <p class="mt-2 text-muted">Nessun documento trovato</p></div>'), Tu = (t, e, n) => e(p(n)), Iu = /* @__PURE__ */ z('<i class="fa-solid fa-file-pdf" style="color: #f0463c;"></i>'), Cu = /* @__PURE__ */ z('<i class="fa-solid fa-file-word" style="color: #305b9a;"></i>'), Au = /* @__PURE__ */ z('<i class="fa-solid fa-file-excel" style="color: #0c7540;"></i>'), ju = /* @__PURE__ */ z('<i class="fa-solid fa-file-powerpoint" style="color: #d14b2b;"></i>'), Ru = /* @__PURE__ */ z('<i class="fa-solid fa-passport" style="color: #0DCAF0"></i>'), Lu = /* @__PURE__ */ z('<i class="fa-solid fa-file"></i>'), Pu = /* @__PURE__ */ z('<button class="document-item svelte-1pr2pgp"><div class="document-icon svelte-1pr2pgp"><!></div> <div class="document-info svelte-1pr2pgp"><div class="document-title svelte-1pr2pgp"> </div></div></button>'), Ou = /* @__PURE__ */ z('<div class="documents-list svelte-1pr2pgp"></div>'), Fu = /* @__PURE__ */ z('<div class="modal-overlay svelte-1pr2pgp"><div class="document-search-modal svelte-1pr2pgp"><div class="modal-header svelte-1pr2pgp"><h5 class="svelte-1pr2pgp">Cerca Documenti</h5> <button class="btn btn-sm btn-danger aks-btn-rounded" aria-label="Chiudi modale"><i class="fa-solid fa-xmark"></i></button></div> <div class="modal-body svelte-1pr2pgp"><div class="search-container svelte-1pr2pgp"><div class="input-group"><span class="input-group-text svelte-1pr2pgp"><i class="fa-solid fa-search"></i></span> <input type="text" class="form-control" placeholder="Cerca documenti (min 3 caratteri)..." style="color: black;"></div></div> <div class="documents-container svelte-1pr2pgp"><!></div></div></div></div>');
|
|
5431
|
-
const
|
|
5431
|
+
const qu = {
|
|
5432
5432
|
hash: "svelte-1pr2pgp",
|
|
5433
5433
|
code: `\r
|
|
5434
5434
|
/* Stili per la modale di ricerca documenti */.modal-overlay.svelte-1pr2pgp {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-1pr2pgp {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-1pr2pgp {display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e9ecef;}.modal-header.svelte-1pr2pgp h5:where(.svelte-1pr2pgp) {margin:0;font-weight:600;color:#295dcf;}.modal-body.svelte-1pr2pgp {padding:20px;flex:1;overflow:hidden;display:flex;flex-direction:column;}.search-container.svelte-1pr2pgp {margin-bottom:20px;}.documents-container.svelte-1pr2pgp {flex:1;overflow:hidden;display:flex;flex-direction:column;}.documents-list.svelte-1pr2pgp {overflow-y:auto;max-height:300px;border:1px solid #e9ecef;border-radius:8px;}.document-item.svelte-1pr2pgp {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-1pr2pgp:last-child {border-bottom:none;}.document-item.svelte-1pr2pgp:hover {background:#f8f9fa;color:#295dcf;}.document-icon.svelte-1pr2pgp {margin-right:12px;color:#6c757d;width:20px;flex-shrink:0;margin-top:2px;}.document-info.svelte-1pr2pgp {flex:1;min-width:0;}.document-title.svelte-1pr2pgp {font-weight:500;margin-bottom:4px;word-wrap:break-word;}.input-group-text.svelte-1pr2pgp {background:#f8f9fa;border-color:#e9ecef;color:#6c757d;}`
|
|
5435
5435
|
};
|
|
5436
5436
|
function Gs(t, e) {
|
|
5437
|
-
U(e, !0), V(t,
|
|
5437
|
+
U(e, !0), V(t, qu);
|
|
5438
5438
|
let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), i = ie(P([])), s = ie(!1), a = ie("");
|
|
5439
5439
|
const o = () => {
|
|
5440
5440
|
r(!1), $(a, ""), $(i, P([]));
|
|
@@ -5475,10 +5475,10 @@ function Gs(t, e) {
|
|
|
5475
5475
|
var j = me(), R = fe(j);
|
|
5476
5476
|
{
|
|
5477
5477
|
var F = (ae) => {
|
|
5478
|
-
var
|
|
5479
|
-
x(ae,
|
|
5478
|
+
var q = $u();
|
|
5479
|
+
x(ae, q);
|
|
5480
5480
|
}, W = (ae) => {
|
|
5481
|
-
var
|
|
5481
|
+
var q = me(), N = fe(q);
|
|
5482
5482
|
{
|
|
5483
5483
|
var ve = (de) => {
|
|
5484
5484
|
var ee = Eu();
|
|
@@ -5521,7 +5521,7 @@ function Gs(t, e) {
|
|
|
5521
5521
|
var Xe = Lu();
|
|
5522
5522
|
x(mt, Xe);
|
|
5523
5523
|
};
|
|
5524
|
-
|
|
5524
|
+
D(
|
|
5525
5525
|
Re,
|
|
5526
5526
|
(mt) => {
|
|
5527
5527
|
p(te).title.split(".").pop() === "akd" ? mt(yt) : mt(hr, !1);
|
|
@@ -5531,7 +5531,7 @@ function Gs(t, e) {
|
|
|
5531
5531
|
}
|
|
5532
5532
|
x(lt, ye);
|
|
5533
5533
|
};
|
|
5534
|
-
|
|
5534
|
+
D(
|
|
5535
5535
|
zn,
|
|
5536
5536
|
(lt) => {
|
|
5537
5537
|
p(te).title.split(".").pop() === "pptx" ? lt(dr) : lt(fr, !1);
|
|
@@ -5541,7 +5541,7 @@ function Gs(t, e) {
|
|
|
5541
5541
|
}
|
|
5542
5542
|
x(gt, Pt);
|
|
5543
5543
|
};
|
|
5544
|
-
|
|
5544
|
+
D(
|
|
5545
5545
|
ke,
|
|
5546
5546
|
(gt) => {
|
|
5547
5547
|
p(te).title.split(".").pop() === "xlsx" ? gt(ot) : gt(yn, !1);
|
|
@@ -5551,7 +5551,7 @@ function Gs(t, e) {
|
|
|
5551
5551
|
}
|
|
5552
5552
|
x(we, pe);
|
|
5553
5553
|
};
|
|
5554
|
-
|
|
5554
|
+
D(
|
|
5555
5555
|
Y,
|
|
5556
5556
|
(we) => {
|
|
5557
5557
|
p(te).title.split(".").pop() === "docx" ? we(_e) : we(ue, !1);
|
|
@@ -5561,7 +5561,7 @@ function Gs(t, e) {
|
|
|
5561
5561
|
}
|
|
5562
5562
|
x($e, T);
|
|
5563
5563
|
};
|
|
5564
|
-
|
|
5564
|
+
D(ge, ($e) => {
|
|
5565
5565
|
p(te).title.split(".").pop() === "pdf" ? $e(Se) : $e(xe, !1);
|
|
5566
5566
|
});
|
|
5567
5567
|
}
|
|
@@ -5570,7 +5570,7 @@ function Gs(t, e) {
|
|
|
5570
5570
|
I(Ae), I(be), I(Ee), O(() => Tt(je, p(te).title)), x(oe, Ee);
|
|
5571
5571
|
}), I(ee), x(de, ee);
|
|
5572
5572
|
};
|
|
5573
|
-
|
|
5573
|
+
D(
|
|
5574
5574
|
N,
|
|
5575
5575
|
(de) => {
|
|
5576
5576
|
p(i).length === 0 ? de(ve) : de(le, !1);
|
|
@@ -5578,9 +5578,9 @@ function Gs(t, e) {
|
|
|
5578
5578
|
!0
|
|
5579
5579
|
);
|
|
5580
5580
|
}
|
|
5581
|
-
x(ae,
|
|
5581
|
+
x(ae, q);
|
|
5582
5582
|
};
|
|
5583
|
-
|
|
5583
|
+
D(
|
|
5584
5584
|
R,
|
|
5585
5585
|
(ae) => {
|
|
5586
5586
|
p(a).length < 3 ? ae(F) : ae(W, !1);
|
|
@@ -5590,7 +5590,7 @@ function Gs(t, e) {
|
|
|
5590
5590
|
}
|
|
5591
5591
|
x(w, j);
|
|
5592
5592
|
};
|
|
5593
|
-
|
|
5593
|
+
D(C, (w) => {
|
|
5594
5594
|
p(s) ? w(E) : w(y, !1);
|
|
5595
5595
|
});
|
|
5596
5596
|
}
|
|
@@ -5611,10 +5611,10 @@ function Gs(t, e) {
|
|
|
5611
5611
|
}
|
|
5612
5612
|
kt(["click", "input"]);
|
|
5613
5613
|
Z(Gs, { attachments: {}, showDocumentSearchModal: {} }, [], [], !0);
|
|
5614
|
-
const
|
|
5614
|
+
const Mu = (t, e) => {
|
|
5615
5615
|
$(e, !p(e));
|
|
5616
5616
|
};
|
|
5617
|
-
var
|
|
5617
|
+
var Du = (t, e) => {
|
|
5618
5618
|
t.key === "Enter" && e();
|
|
5619
5619
|
}, Bu = /* @__PURE__ */ z('<div class="dropdown-content svelte-13r2zha"><button><i class="fa-solid fa-book svelte-13r2zha"></i> <span>Knowledge Base</span></button> <button><i class="fa-solid fa-file-circle-plus svelte-13r2zha"></i> <span>Scegli file</span></button></div>'), Nu = (t, e) => {
|
|
5620
5620
|
$(e, !1);
|
|
@@ -5680,9 +5680,9 @@ function Vs(t, e) {
|
|
|
5680
5680
|
Object.keys(p(o)).length > 0 && $(a, !0);
|
|
5681
5681
|
});
|
|
5682
5682
|
var R = sd(), F = fe(R), W = A(F), ae = A(W);
|
|
5683
|
-
|
|
5684
|
-
var
|
|
5685
|
-
le.__click = [
|
|
5683
|
+
Do(ae), ae.__keyup = [Du, S], I(W);
|
|
5684
|
+
var q = B(W, 2), N = A(q), ve = A(N), le = A(ve);
|
|
5685
|
+
le.__click = [Mu, w];
|
|
5686
5686
|
var de = B(le, 2);
|
|
5687
5687
|
{
|
|
5688
5688
|
var ee = (T) => {
|
|
@@ -5706,7 +5706,7 @@ function Vs(t, e) {
|
|
|
5706
5706
|
]
|
|
5707
5707
|
), x(T, Y);
|
|
5708
5708
|
};
|
|
5709
|
-
|
|
5709
|
+
D(de, (T) => {
|
|
5710
5710
|
p(w) && T(ee);
|
|
5711
5711
|
});
|
|
5712
5712
|
}
|
|
@@ -5720,13 +5720,13 @@ function Vs(t, e) {
|
|
|
5720
5720
|
var pe = Yu();
|
|
5721
5721
|
pe.__click = [Nu, a], x(we, pe);
|
|
5722
5722
|
};
|
|
5723
|
-
|
|
5723
|
+
D(_e, (we) => {
|
|
5724
5724
|
Object.keys(p(o)).length === 0 && we(ue);
|
|
5725
5725
|
});
|
|
5726
5726
|
}
|
|
5727
5727
|
I(Y), x(T, Y);
|
|
5728
5728
|
};
|
|
5729
|
-
|
|
5729
|
+
D(te, (T) => {
|
|
5730
5730
|
p(a) && T(Ee);
|
|
5731
5731
|
});
|
|
5732
5732
|
}
|
|
@@ -5759,24 +5759,24 @@ function Vs(t, e) {
|
|
|
5759
5759
|
}, $a = (Ft) => {
|
|
5760
5760
|
var En = me(), Ea = fe(En);
|
|
5761
5761
|
{
|
|
5762
|
-
var Ta = (
|
|
5762
|
+
var Ta = (qt) => {
|
|
5763
5763
|
var pr = Wu();
|
|
5764
|
-
x(
|
|
5765
|
-
}, Ia = (
|
|
5764
|
+
x(qt, pr);
|
|
5765
|
+
}, Ia = (qt) => {
|
|
5766
5766
|
var pr = Xu();
|
|
5767
|
-
x(
|
|
5767
|
+
x(qt, pr);
|
|
5768
5768
|
};
|
|
5769
|
-
|
|
5769
|
+
D(
|
|
5770
5770
|
Ea,
|
|
5771
|
-
(
|
|
5772
|
-
ue().split(".").pop() === "akd" ?
|
|
5771
|
+
(qt) => {
|
|
5772
|
+
ue().split(".").pop() === "akd" ? qt(Ta) : qt(Ia, !1);
|
|
5773
5773
|
},
|
|
5774
5774
|
!0
|
|
5775
5775
|
);
|
|
5776
5776
|
}
|
|
5777
5777
|
x(Ft, En);
|
|
5778
5778
|
};
|
|
5779
|
-
|
|
5779
|
+
D(
|
|
5780
5780
|
za,
|
|
5781
5781
|
(Ft) => {
|
|
5782
5782
|
ue().split(".").pop() === "pptx" ? Ft(Sa) : Ft($a, !1);
|
|
@@ -5786,7 +5786,7 @@ function Vs(t, e) {
|
|
|
5786
5786
|
}
|
|
5787
5787
|
x(Ot, $n);
|
|
5788
5788
|
};
|
|
5789
|
-
|
|
5789
|
+
D(
|
|
5790
5790
|
_a,
|
|
5791
5791
|
(Ot) => {
|
|
5792
5792
|
ue().split(".").pop() === "xlsx" ? Ot(ka) : Ot(ya, !1);
|
|
@@ -5796,7 +5796,7 @@ function Vs(t, e) {
|
|
|
5796
5796
|
}
|
|
5797
5797
|
x(Xe, Sn);
|
|
5798
5798
|
};
|
|
5799
|
-
|
|
5799
|
+
D(
|
|
5800
5800
|
yt,
|
|
5801
5801
|
(Xe) => {
|
|
5802
5802
|
ue().split(".").pop() === "docx" ? Xe(hr) : Xe(mt, !1);
|
|
@@ -5806,7 +5806,7 @@ function Vs(t, e) {
|
|
|
5806
5806
|
}
|
|
5807
5807
|
x(ye, Re);
|
|
5808
5808
|
};
|
|
5809
|
-
|
|
5809
|
+
D(yn, (ye) => {
|
|
5810
5810
|
ue().split(".").pop() === "pdf" ? ye(gt) : ye(Pt, !1);
|
|
5811
5811
|
});
|
|
5812
5812
|
}
|
|
@@ -5827,13 +5827,13 @@ function Vs(t, e) {
|
|
|
5827
5827
|
var yt = A(Re, !0);
|
|
5828
5828
|
I(Re), O(() => Tt(yt, ue())), x(ye, Re);
|
|
5829
5829
|
};
|
|
5830
|
-
|
|
5830
|
+
D(zn, (ye) => {
|
|
5831
5831
|
ke() ? ye(dr) : ye(fr, !1);
|
|
5832
5832
|
});
|
|
5833
5833
|
}
|
|
5834
5834
|
var lt = B(zn, 2);
|
|
5835
5835
|
lt.__click = [ed, o, _e], I(ot), O(() => {
|
|
5836
|
-
Qe(ot, `${`attachment-item ${ke() ? "common" : ""}` ?? ""} svelte-13r2zha`),
|
|
5836
|
+
Qe(ot, `${`attachment-item ${ke() ? "common" : ""}` ?? ""} svelte-13r2zha`), M(ot, "title", ue()), Qe(lt, `${`remove-btn ${ke() ? "common" : ""}` ?? ""} svelte-13r2zha`);
|
|
5837
5837
|
}), x(T, ot);
|
|
5838
5838
|
}), I(oe), Ns(oe, (T) => f = T, () => f);
|
|
5839
5839
|
var ge = B(oe, 2), Se = A(ge);
|
|
@@ -5851,7 +5851,7 @@ function Vs(t, e) {
|
|
|
5851
5851
|
var ke = id();
|
|
5852
5852
|
ke.__click = b, x(pe, ke);
|
|
5853
5853
|
};
|
|
5854
|
-
|
|
5854
|
+
D(
|
|
5855
5855
|
_e,
|
|
5856
5856
|
(pe) => {
|
|
5857
5857
|
p(d) ? pe(ue) : pe(we, !1);
|
|
@@ -5861,12 +5861,12 @@ function Vs(t, e) {
|
|
|
5861
5861
|
}
|
|
5862
5862
|
x(T, Y);
|
|
5863
5863
|
};
|
|
5864
|
-
|
|
5864
|
+
D(Se, (T) => {
|
|
5865
5865
|
p(u) ? T(xe) : T(be, !1);
|
|
5866
5866
|
});
|
|
5867
5867
|
}
|
|
5868
5868
|
var Ae = B(Se, 2);
|
|
5869
|
-
Ae.__click = S, I(ge), I(N), I(
|
|
5869
|
+
Ae.__click = S, I(ge), I(N), I(q), I(F);
|
|
5870
5870
|
var je = B(F, 2);
|
|
5871
5871
|
{
|
|
5872
5872
|
var $e = (T) => {
|
|
@@ -5885,7 +5885,7 @@ function Vs(t, e) {
|
|
|
5885
5885
|
}
|
|
5886
5886
|
});
|
|
5887
5887
|
};
|
|
5888
|
-
|
|
5888
|
+
D(je, (T) => {
|
|
5889
5889
|
p(j) && T($e);
|
|
5890
5890
|
});
|
|
5891
5891
|
}
|
|
@@ -6501,9 +6501,9 @@ function Fd(t) {
|
|
|
6501
6501
|
});
|
|
6502
6502
|
}));
|
|
6503
6503
|
}
|
|
6504
|
-
let
|
|
6505
|
-
function
|
|
6506
|
-
const r =
|
|
6504
|
+
let qd = 0;
|
|
6505
|
+
function Md(t, e, n) {
|
|
6506
|
+
const r = qd++, i = ra.bind(null, n, r);
|
|
6507
6507
|
if (!e.pending.length)
|
|
6508
6508
|
return i;
|
|
6509
6509
|
const s = {
|
|
@@ -6516,7 +6516,7 @@ function Dd(t, e, n) {
|
|
|
6516
6516
|
(a.loaderCallbacks || (a.loaderCallbacks = [])).push(s);
|
|
6517
6517
|
}), i;
|
|
6518
6518
|
}
|
|
6519
|
-
function
|
|
6519
|
+
function Dd(t, e = !0, n = !1) {
|
|
6520
6520
|
const r = [];
|
|
6521
6521
|
return t.forEach((i) => {
|
|
6522
6522
|
const s = typeof i == "string" ? or(i, e, n) : i;
|
|
@@ -6700,7 +6700,7 @@ function Ud(t, e, n) {
|
|
|
6700
6700
|
}
|
|
6701
6701
|
return !r || !i ? (n(void 0, 424), Fi) : r.query(e, i, n)().abort;
|
|
6702
6702
|
}
|
|
6703
|
-
function
|
|
6703
|
+
function qi() {
|
|
6704
6704
|
}
|
|
6705
6705
|
function Hd(t) {
|
|
6706
6706
|
t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
|
|
@@ -6734,7 +6734,7 @@ function rn(t, e, n) {
|
|
|
6734
6734
|
}
|
|
6735
6735
|
r(), Hd(t);
|
|
6736
6736
|
}
|
|
6737
|
-
function
|
|
6737
|
+
function Mi(t, e) {
|
|
6738
6738
|
t instanceof Promise ? t.then((n) => {
|
|
6739
6739
|
e(n);
|
|
6740
6740
|
}).catch(() => {
|
|
@@ -6749,7 +6749,7 @@ function Gd(t, e) {
|
|
|
6749
6749
|
return;
|
|
6750
6750
|
const s = t.loadIcon;
|
|
6751
6751
|
if (t.loadIcons && (i.length > 1 || !s)) {
|
|
6752
|
-
|
|
6752
|
+
Mi(
|
|
6753
6753
|
t.loadIcons(i, r, n),
|
|
6754
6754
|
(u) => {
|
|
6755
6755
|
rn(t, i, u);
|
|
@@ -6760,7 +6760,7 @@ function Gd(t, e) {
|
|
|
6760
6760
|
if (s) {
|
|
6761
6761
|
i.forEach((u) => {
|
|
6762
6762
|
const d = s(u, r, n);
|
|
6763
|
-
|
|
6763
|
+
Mi(d, (f) => {
|
|
6764
6764
|
const h = f ? {
|
|
6765
6765
|
prefix: r,
|
|
6766
6766
|
icons: {
|
|
@@ -6788,7 +6788,7 @@ function Gd(t, e) {
|
|
|
6788
6788
|
}));
|
|
6789
6789
|
}
|
|
6790
6790
|
const Vd = (t, e) => {
|
|
6791
|
-
const n =
|
|
6791
|
+
const n = Dd(t, !0, ea()), r = Od(n);
|
|
6792
6792
|
if (!r.pending.length) {
|
|
6793
6793
|
let l = !0;
|
|
6794
6794
|
return e && setTimeout(() => {
|
|
@@ -6796,7 +6796,7 @@ const Vd = (t, e) => {
|
|
|
6796
6796
|
r.loaded,
|
|
6797
6797
|
r.missing,
|
|
6798
6798
|
r.pending,
|
|
6799
|
-
|
|
6799
|
+
qi
|
|
6800
6800
|
);
|
|
6801
6801
|
}), () => {
|
|
6802
6802
|
l = !1;
|
|
@@ -6817,7 +6817,7 @@ const Vd = (t, e) => {
|
|
|
6817
6817
|
}), s.forEach((l) => {
|
|
6818
6818
|
const c = i[l.provider][l.prefix];
|
|
6819
6819
|
c.length && Gd(l, c);
|
|
6820
|
-
}), e ?
|
|
6820
|
+
}), e ? Md(e, r, s) : qi;
|
|
6821
6821
|
};
|
|
6822
6822
|
function Wd(t, e) {
|
|
6823
6823
|
const n = {
|
|
@@ -6883,7 +6883,7 @@ function tf(t) {
|
|
|
6883
6883
|
function nf(t) {
|
|
6884
6884
|
return 'url("' + tf(t) + '")';
|
|
6885
6885
|
}
|
|
6886
|
-
const
|
|
6886
|
+
const Di = {
|
|
6887
6887
|
...na,
|
|
6888
6888
|
inline: !1
|
|
6889
6889
|
}, rf = {
|
|
@@ -6893,7 +6893,7 @@ const qi = {
|
|
|
6893
6893
|
role: "img"
|
|
6894
6894
|
}, sf = {
|
|
6895
6895
|
display: "inline-block"
|
|
6896
|
-
},
|
|
6896
|
+
}, qr = {
|
|
6897
6897
|
"background-color": "currentColor"
|
|
6898
6898
|
}, sa = {
|
|
6899
6899
|
"background-color": "transparent"
|
|
@@ -6902,8 +6902,8 @@ const qi = {
|
|
|
6902
6902
|
repeat: "no-repeat",
|
|
6903
6903
|
size: "100% 100%"
|
|
6904
6904
|
}, Ni = {
|
|
6905
|
-
"-webkit-mask":
|
|
6906
|
-
mask:
|
|
6905
|
+
"-webkit-mask": qr,
|
|
6906
|
+
mask: qr,
|
|
6907
6907
|
background: sa
|
|
6908
6908
|
};
|
|
6909
6909
|
for (const t in Ni) {
|
|
@@ -6915,7 +6915,7 @@ function af(t) {
|
|
|
6915
6915
|
return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
|
|
6916
6916
|
}
|
|
6917
6917
|
function of(t, e) {
|
|
6918
|
-
const n = Wd(
|
|
6918
|
+
const n = Wd(Di, e), r = e.mode || "svg", i = r === "svg" ? { ...rf } : {};
|
|
6919
6919
|
t.body.indexOf("xlink:") === -1 && delete i["xmlns:xlink"];
|
|
6920
6920
|
let s = typeof e.style == "string" ? e.style : "";
|
|
6921
6921
|
for (let k in e) {
|
|
@@ -6949,7 +6949,7 @@ function of(t, e) {
|
|
|
6949
6949
|
default:
|
|
6950
6950
|
if (k.slice(0, 3) === "on:")
|
|
6951
6951
|
break;
|
|
6952
|
-
|
|
6952
|
+
Di[k] === void 0 && (i[k] = _);
|
|
6953
6953
|
}
|
|
6954
6954
|
}
|
|
6955
6955
|
const a = kd(t, n), o = a.attributes;
|
|
@@ -6972,7 +6972,7 @@ function of(t, e) {
|
|
|
6972
6972
|
const _ = o[k];
|
|
6973
6973
|
_ && (b[k] = af(_));
|
|
6974
6974
|
};
|
|
6975
|
-
m("width"), m("height"), Object.assign(b, sf, d ?
|
|
6975
|
+
m("width"), m("height"), Object.assign(b, sf, d ? qr : sa);
|
|
6976
6976
|
let S = "";
|
|
6977
6977
|
for (const k in b)
|
|
6978
6978
|
S += k + ": " + b[k] + ";";
|
|
@@ -7075,7 +7075,7 @@ function gn(t, e) {
|
|
|
7075
7075
|
const f = !!n.ssr || p(i), h = lf(n.icon, p(r), f, l, o);
|
|
7076
7076
|
$(a, h ? Yi(h.data, n) : null), p(a) && h.classes && mr(a, p(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + h.classes.join(" "));
|
|
7077
7077
|
}
|
|
7078
|
-
), wn(),
|
|
7078
|
+
), wn(), De();
|
|
7079
7079
|
var c = me(), u = fe(c);
|
|
7080
7080
|
{
|
|
7081
7081
|
var d = (f) => {
|
|
@@ -7091,13 +7091,13 @@ function gn(t, e) {
|
|
|
7091
7091
|
let C;
|
|
7092
7092
|
O(() => C = $i(_, C, { ...p(a).attributes })), x(k, _);
|
|
7093
7093
|
};
|
|
7094
|
-
|
|
7094
|
+
D(b, (k) => {
|
|
7095
7095
|
p(a).svg ? k(m) : k(S, !1);
|
|
7096
7096
|
});
|
|
7097
7097
|
}
|
|
7098
7098
|
x(f, h);
|
|
7099
7099
|
};
|
|
7100
|
-
|
|
7100
|
+
D(u, (f) => {
|
|
7101
7101
|
p(a) && f(d);
|
|
7102
7102
|
});
|
|
7103
7103
|
}
|
|
@@ -7220,7 +7220,7 @@ const Le = {
|
|
|
7220
7220
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
7221
7221
|
paragraph: ne(ui).replace("hr", kn).replace("heading", ` *#{1,6} *[^
|
|
7222
7222
|
]`).replace("lheading", la).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
7223
|
-
}, yf = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, zf = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ua = /^( {2,}|\\)\n(?!\s*$)/, Sf = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ur = /[\p{P}\p{S}]/u, pi = /[\s\p{P}\p{S}]/u, da = /[^\s\p{P}\p{S}]/u, $f = ne(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, pi).getRegex(), fa = /(?!~)[\p{P}\p{S}]/u, Ef = /(?!~)[\s\p{P}\p{S}]/u, Tf = /(?:[^\s\p{P}\p{S}]|~)/u, If = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, ha = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Cf = ne(ha, "u").replace(/punct/g, ur).getRegex(), Af = ne(ha, "u").replace(/punct/g, fa).getRegex(), pa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", jf = ne(pa, "gu").replace(/notPunctSpace/g, da).replace(/punctSpace/g, pi).replace(/punct/g, ur).getRegex(), Rf = ne(pa, "gu").replace(/notPunctSpace/g, Tf).replace(/punctSpace/g, Ef).replace(/punct/g, fa).getRegex(), Lf = ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, da).replace(/punctSpace/g, pi).replace(/punct/g, ur).getRegex(), Pf = ne(/\\(punct)/, "gu").replace(/punct/g, ur).getRegex(), Of = ne(/^<(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(), Ff = ne(fi).replace("(?:-->|$)", "-->").getRegex(),
|
|
7223
|
+
}, yf = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, zf = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ua = /^( {2,}|\\)\n(?!\s*$)/, Sf = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ur = /[\p{P}\p{S}]/u, pi = /[\s\p{P}\p{S}]/u, da = /[^\s\p{P}\p{S}]/u, $f = ne(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, pi).getRegex(), fa = /(?!~)[\p{P}\p{S}]/u, Ef = /(?!~)[\s\p{P}\p{S}]/u, Tf = /(?:[^\s\p{P}\p{S}]|~)/u, If = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, ha = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Cf = ne(ha, "u").replace(/punct/g, ur).getRegex(), Af = ne(ha, "u").replace(/punct/g, fa).getRegex(), pa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", jf = ne(pa, "gu").replace(/notPunctSpace/g, da).replace(/punctSpace/g, pi).replace(/punct/g, ur).getRegex(), Rf = ne(pa, "gu").replace(/notPunctSpace/g, Tf).replace(/punctSpace/g, Ef).replace(/punct/g, fa).getRegex(), Lf = ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, da).replace(/punctSpace/g, pi).replace(/punct/g, ur).getRegex(), Pf = ne(/\\(punct)/, "gu").replace(/punct/g, ur).getRegex(), Of = ne(/^<(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(), Ff = ne(fi).replace("(?:-->|$)", "-->").getRegex(), qf = ne("^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", Ff).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Vn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Mf = ne(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Vn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), va = ne(/^!?\[(label)\]\[(ref)\]/).replace("label", Vn).replace("ref", di).getRegex(), ga = ne(/^!?\[(ref)\](?:\[\])?/).replace("ref", di).getRegex(), Df = ne("reflink|nolink(?!\\()", "g").replace("reflink", va).replace("nolink", ga).getRegex(), vi = {
|
|
7224
7224
|
_backpedal: un,
|
|
7225
7225
|
// only used for GFM url
|
|
7226
7226
|
anyPunctuation: Pf,
|
|
@@ -7233,19 +7233,19 @@ const Le = {
|
|
|
7233
7233
|
emStrongRDelimAst: jf,
|
|
7234
7234
|
emStrongRDelimUnd: Lf,
|
|
7235
7235
|
escape: yf,
|
|
7236
|
-
link:
|
|
7236
|
+
link: Mf,
|
|
7237
7237
|
nolink: ga,
|
|
7238
7238
|
punctuation: $f,
|
|
7239
7239
|
reflink: va,
|
|
7240
|
-
reflinkSearch:
|
|
7241
|
-
tag:
|
|
7240
|
+
reflinkSearch: Df,
|
|
7241
|
+
tag: qf,
|
|
7242
7242
|
text: Sf,
|
|
7243
7243
|
url: un
|
|
7244
7244
|
}, Bf = {
|
|
7245
7245
|
...vi,
|
|
7246
7246
|
link: ne(/^!?\[(label)\]\((.*?)\)/).replace("label", Vn).getRegex(),
|
|
7247
7247
|
reflink: ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Vn).getRegex()
|
|
7248
|
-
},
|
|
7248
|
+
}, Mr = {
|
|
7249
7249
|
...vi,
|
|
7250
7250
|
emStrongRDelimAst: Rf,
|
|
7251
7251
|
emStrongLDelim: Af,
|
|
@@ -7254,16 +7254,16 @@ const Le = {
|
|
|
7254
7254
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
7255
7255
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
7256
7256
|
}, Nf = {
|
|
7257
|
-
...
|
|
7257
|
+
...Mr,
|
|
7258
7258
|
br: ne(ua).replace("{2,}", "*").getRegex(),
|
|
7259
|
-
text: ne(
|
|
7259
|
+
text: ne(Mr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
7260
7260
|
}, Cn = {
|
|
7261
7261
|
normal: hi,
|
|
7262
7262
|
gfm: _f,
|
|
7263
7263
|
pedantic: kf
|
|
7264
7264
|
}, sn = {
|
|
7265
7265
|
normal: vi,
|
|
7266
|
-
gfm:
|
|
7266
|
+
gfm: Mr,
|
|
7267
7267
|
breaks: Nf,
|
|
7268
7268
|
pedantic: Bf
|
|
7269
7269
|
}, Yf = {
|
|
@@ -8676,10 +8676,10 @@ const Gf = (t, e) => {
|
|
|
8676
8676
|
};
|
|
8677
8677
|
var Vf = (t, e, n, r, i, s) => {
|
|
8678
8678
|
e() || n(r(), i(), s());
|
|
8679
|
-
}, Wf = /* @__PURE__ */ z('<i class="fa-solid fa-file-pdf svelte-
|
|
8679
|
+
}, Wf = /* @__PURE__ */ z('<i class="fa-solid fa-file-pdf svelte-q27oe3" style="color: #f0463c;"></i>'), Xf = /* @__PURE__ */ z('<i class="fa-solid fa-file-word svelte-q27oe3" style="color: #305b9a;"></i>'), Jf = /* @__PURE__ */ z('<i class="fa-solid fa-file-excel svelte-q27oe3" style="color: #0c7540;"></i>'), Qf = /* @__PURE__ */ z('<i class="fa-solid fa-file-powerpoint svelte-q27oe3" style="color: #d14b2b;"></i>'), Kf = /* @__PURE__ */ z('<i class="fa-solid fa-passport svelte-q27oe3" style="color: #0DCAF0"></i>'), eh = /* @__PURE__ */ z('<i class="fa-solid fa-file svelte-q27oe3"></i>'), th = /* @__PURE__ */ z('<button aria-label="Visualizza allegato"><!> <span class="svelte-q27oe3"> </span></button>'), nh = /* @__PURE__ */ z('<div class="dropdown-content svelte-q27oe3"></div>'), rh = /* @__PURE__ */ z('<div class="dropdown svelte-q27oe3"><button class="allegatibtn svelte-q27oe3" aria-label="Visualizza allegati"> </button> <!></div>'), ih = /* @__PURE__ */ z('<div class="message-attachments"><!></div>');
|
|
8680
8680
|
const sh = {
|
|
8681
|
-
hash: "svelte-
|
|
8682
|
-
code: ".dropdown.svelte-
|
|
8681
|
+
hash: "svelte-q27oe3",
|
|
8682
|
+
code: ".dropdown.svelte-q27oe3 {position:relative;display:inline-block;}.allegatibtn.svelte-q27oe3 {display:flex;align-items:center;padding:8px 12px;background:#d5ddea;color:#333;border:none;border-radius:8px;cursor:pointer;font-size:14px;transition:200ms;border-radius:0 0 10px 10px;}.allegatibtn.svelte-q27oe3:hover {background:#e9ecef;color:#295dcf;}.dropdown-content.svelte-q27oe3 {position:absolute;bottom:100%;left:5px;margin-bottom:5px;background:white;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.4);min-width:180px;z-index:1000;max-height:300px;overflow-y:auto;}.dropdown-option.svelte-q27oe3 {display:flex;align-items:center;width:100%;padding:10px 15px;border:none;background:white;color:#333;cursor:pointer;transition:all 0.2s;border-radius:0;}.dropdown-option.common.svelte-q27oe3 {color:#8fa1c9;cursor:default;}.dropdown-option.svelte-q27oe3:first-child {border-top-left-radius:8px;border-top-right-radius:8px;}.dropdown-option.svelte-q27oe3:last-child {border-bottom-left-radius:8px;border-bottom-right-radius:8px;}.dropdown-option.svelte-q27oe3:hover {background:#f8f9fa;color:#295dcf;}.dropdown-option.common.svelte-q27oe3:hover {background:white;color:#8fa1c9;}.dropdown-option.svelte-q27oe3 i:where(.svelte-q27oe3) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-q27oe3 span:where(.svelte-q27oe3) {font-size:14px;}"
|
|
8683
8683
|
};
|
|
8684
8684
|
function ma(t, e) {
|
|
8685
8685
|
U(e, !0), V(t, sh);
|
|
@@ -8711,10 +8711,10 @@ function ma(t, e) {
|
|
|
8711
8711
|
];
|
|
8712
8712
|
var j = A(w);
|
|
8713
8713
|
{
|
|
8714
|
-
var R = (
|
|
8714
|
+
var R = (q) => {
|
|
8715
8715
|
var N = Wf();
|
|
8716
|
-
x(
|
|
8717
|
-
}, F = (
|
|
8716
|
+
x(q, N);
|
|
8717
|
+
}, F = (q) => {
|
|
8718
8718
|
var N = me(), ve = fe(N);
|
|
8719
8719
|
{
|
|
8720
8720
|
var le = (ee) => {
|
|
@@ -8742,7 +8742,7 @@ function ma(t, e) {
|
|
|
8742
8742
|
var we = eh();
|
|
8743
8743
|
x(ue, we);
|
|
8744
8744
|
};
|
|
8745
|
-
|
|
8745
|
+
D(
|
|
8746
8746
|
T,
|
|
8747
8747
|
(ue) => {
|
|
8748
8748
|
_().split(".").pop() === "akd" ? ue(Y) : ue(_e, !1);
|
|
@@ -8752,7 +8752,7 @@ function ma(t, e) {
|
|
|
8752
8752
|
}
|
|
8753
8753
|
x(je, $e);
|
|
8754
8754
|
};
|
|
8755
|
-
|
|
8755
|
+
D(
|
|
8756
8756
|
xe,
|
|
8757
8757
|
(je) => {
|
|
8758
8758
|
_().split(".").pop() === "pptx" ? je(be) : je(Ae, !1);
|
|
@@ -8762,7 +8762,7 @@ function ma(t, e) {
|
|
|
8762
8762
|
}
|
|
8763
8763
|
x(ge, Se);
|
|
8764
8764
|
};
|
|
8765
|
-
|
|
8765
|
+
D(
|
|
8766
8766
|
te,
|
|
8767
8767
|
(ge) => {
|
|
8768
8768
|
_().split(".").pop() === "xlsx" ? ge(Ee) : ge(he, !1);
|
|
@@ -8772,7 +8772,7 @@ function ma(t, e) {
|
|
|
8772
8772
|
}
|
|
8773
8773
|
x(ee, oe);
|
|
8774
8774
|
};
|
|
8775
|
-
|
|
8775
|
+
D(
|
|
8776
8776
|
ve,
|
|
8777
8777
|
(ee) => {
|
|
8778
8778
|
_().split(".").pop() === "docx" ? ee(le) : ee(de, !1);
|
|
@@ -8780,25 +8780,25 @@ function ma(t, e) {
|
|
|
8780
8780
|
!0
|
|
8781
8781
|
);
|
|
8782
8782
|
}
|
|
8783
|
-
x(
|
|
8783
|
+
x(q, N);
|
|
8784
8784
|
};
|
|
8785
|
-
|
|
8786
|
-
_().split(".").pop() === "pdf" ?
|
|
8785
|
+
D(j, (q) => {
|
|
8786
|
+
_().split(".").pop() === "pdf" ? q(R) : q(F, !1);
|
|
8787
8787
|
});
|
|
8788
8788
|
}
|
|
8789
8789
|
var W = B(j, 2), ae = A(W, !0);
|
|
8790
8790
|
I(W), I(w), O(() => {
|
|
8791
|
-
Qe(w, `${`dropdown-option ${y() ? "common" : ""}` ?? ""} svelte-
|
|
8791
|
+
Qe(w, `${`dropdown-option ${y() ? "common" : ""}` ?? ""} svelte-q27oe3`), M(w, "title", `${y() ? "Documento comune" : "Visualizza allegato"}`), Tt(ae, _());
|
|
8792
8792
|
}), x(S, w);
|
|
8793
8793
|
}), I(m), x(b, m);
|
|
8794
8794
|
};
|
|
8795
|
-
|
|
8795
|
+
D(f, (b) => {
|
|
8796
8796
|
n() && b(h);
|
|
8797
8797
|
});
|
|
8798
8798
|
}
|
|
8799
8799
|
I(c), O(() => Tt(d, `Fonti (${r().length ?? ""})`)), x(l, c);
|
|
8800
8800
|
};
|
|
8801
|
-
|
|
8801
|
+
D(a, (l) => {
|
|
8802
8802
|
r().length > 0 && l(o);
|
|
8803
8803
|
});
|
|
8804
8804
|
}
|
|
@@ -8852,9 +8852,9 @@ function ba(t, e) {
|
|
|
8852
8852
|
var w = me(), j = fe(w);
|
|
8853
8853
|
{
|
|
8854
8854
|
var R = (F) => {
|
|
8855
|
-
var W = uh(), ae = A(W),
|
|
8856
|
-
Rr(ve, () => p(y).html ?? re.parseInline(p(y).content), !1, !1), I(N), I(
|
|
8857
|
-
var le = B(
|
|
8855
|
+
var W = uh(), ae = A(W), q = A(ae), N = A(q), ve = A(N);
|
|
8856
|
+
Rr(ve, () => p(y).html ?? re.parseInline(p(y).content), !1, !1), I(N), I(q);
|
|
8857
|
+
var le = B(q, 2);
|
|
8858
8858
|
{
|
|
8859
8859
|
var de = (te) => {
|
|
8860
8860
|
var Ee = me(), he = fe(Ee);
|
|
@@ -8866,13 +8866,13 @@ function ba(t, e) {
|
|
|
8866
8866
|
var be = ch();
|
|
8867
8867
|
be.__click = [lh, f, y], x(xe, be);
|
|
8868
8868
|
};
|
|
8869
|
-
|
|
8869
|
+
D(he, (xe) => {
|
|
8870
8870
|
p(c) ? xe(ge) : xe(Se, !1);
|
|
8871
8871
|
});
|
|
8872
8872
|
}
|
|
8873
8873
|
x(te, Ee);
|
|
8874
8874
|
};
|
|
8875
|
-
|
|
8875
|
+
D(le, (te) => {
|
|
8876
8876
|
p(y).sentByUser || te(de);
|
|
8877
8877
|
});
|
|
8878
8878
|
}
|
|
@@ -8889,13 +8889,13 @@ function ba(t, e) {
|
|
|
8889
8889
|
}
|
|
8890
8890
|
});
|
|
8891
8891
|
};
|
|
8892
|
-
|
|
8892
|
+
D(ee, (te) => {
|
|
8893
8893
|
p(y).attachments.length > 0 && te(oe);
|
|
8894
8894
|
});
|
|
8895
8895
|
}
|
|
8896
|
-
I(W), O(() => Qe(
|
|
8896
|
+
I(W), O(() => Qe(q, qs(p(y).sentByUser ? "message-sent" : "message-received"), "svelte-1frgo02")), x(F, W);
|
|
8897
8897
|
};
|
|
8898
|
-
|
|
8898
|
+
D(j, (F) => {
|
|
8899
8899
|
p(y).content != "" && F(R);
|
|
8900
8900
|
});
|
|
8901
8901
|
}
|
|
@@ -8916,7 +8916,7 @@ function ba(t, e) {
|
|
|
8916
8916
|
color: "white"
|
|
8917
8917
|
});
|
|
8918
8918
|
};
|
|
8919
|
-
|
|
8919
|
+
D(F, (ae) => {
|
|
8920
8920
|
r() && ae(W);
|
|
8921
8921
|
});
|
|
8922
8922
|
}
|
|
@@ -8933,7 +8933,7 @@ function ba(t, e) {
|
|
|
8933
8933
|
color: "white"
|
|
8934
8934
|
}), I(F), x(R, F);
|
|
8935
8935
|
};
|
|
8936
|
-
|
|
8936
|
+
D(
|
|
8937
8937
|
w,
|
|
8938
8938
|
(R) => {
|
|
8939
8939
|
r() && R(j);
|
|
@@ -8943,7 +8943,7 @@ function ba(t, e) {
|
|
|
8943
8943
|
}
|
|
8944
8944
|
x(E, y);
|
|
8945
8945
|
};
|
|
8946
|
-
|
|
8946
|
+
D(m, (E) => {
|
|
8947
8947
|
s().length > 0 ? E(S) : E(k, !1);
|
|
8948
8948
|
});
|
|
8949
8949
|
}
|
|
@@ -8953,7 +8953,7 @@ function ba(t, e) {
|
|
|
8953
8953
|
var y = hh(), w = A(y, !0);
|
|
8954
8954
|
I(y), O(() => Tt(w, i())), x(E, y);
|
|
8955
8955
|
};
|
|
8956
|
-
|
|
8956
|
+
D(_, (E) => {
|
|
8957
8957
|
i() != "" && E(C);
|
|
8958
8958
|
});
|
|
8959
8959
|
}
|
|
@@ -9135,11 +9135,11 @@ function wa(t, e) {
|
|
|
9135
9135
|
I(_), I(k);
|
|
9136
9136
|
var E = B(k, 2);
|
|
9137
9137
|
E.__click = [yh, o, m], I(S), O(() => {
|
|
9138
|
-
|
|
9138
|
+
M(S, "style", r()._id === p(m)._id ? "background: #295dcf; cursor: default;" : ""), Tt(C, p(m).title);
|
|
9139
9139
|
}), x(b, S);
|
|
9140
9140
|
}), I(h), I(f), _n(3, f, () => wl, () => ({ duration: 600 })), x(d, f);
|
|
9141
9141
|
};
|
|
9142
|
-
|
|
9142
|
+
D(c, (d) => {
|
|
9143
9143
|
n() && d(u);
|
|
9144
9144
|
});
|
|
9145
9145
|
}
|
|
@@ -9198,15 +9198,15 @@ const Rh = {
|
|
|
9198
9198
|
function xa(t, e) {
|
|
9199
9199
|
U(e, !0), V(t, Rh);
|
|
9200
9200
|
let n = ie(!1), r = ie(!1), i = ie("it"), s = ie(""), a = ie(null), o = ie(P([])), l = ie(P([])), c = ie(!1), u = ie(!0), d = ie(P(new Audio())), f = ie(!0), h = ie(""), b = ie("");
|
|
9201
|
-
const m = (
|
|
9202
|
-
$(b, p(b) +
|
|
9203
|
-
}, S = async (
|
|
9201
|
+
const m = (q) => {
|
|
9202
|
+
$(b, p(b) + q);
|
|
9203
|
+
}, S = async (q, N, ve = []) => {
|
|
9204
9204
|
if ($(h, ""), $(c, !0), $(l, P([
|
|
9205
9205
|
...p(l),
|
|
9206
|
-
new _t((/* @__PURE__ */ new Date()).getTime(), !0,
|
|
9206
|
+
new _t((/* @__PURE__ */ new Date()).getTime(), !0, q, q)
|
|
9207
9207
|
])), p(l).length == 2 && ($(a, P(await ln.newChat())), $(o, P([...p(o), p(a)])), p(a).messages = p(l)), p(a))
|
|
9208
9208
|
try {
|
|
9209
|
-
await ln.sendMessage(p(a)._id,
|
|
9209
|
+
await ln.sendMessage(p(a)._id, q, N, ve, m, p(i)), $(a, P(await ln.getChat(p(a)._id))), $(b, ""), $(l, P([
|
|
9210
9210
|
...p(l),
|
|
9211
9211
|
p(a).messages[p(a).messages.length - 1]
|
|
9212
9212
|
])), p(f) || ni.getAudio(p(a).messages[p(a).messages.length - 1].content, p(i)).then((le) => {
|
|
@@ -9223,8 +9223,8 @@ function xa(t, e) {
|
|
|
9223
9223
|
p(f) && p(d).pause();
|
|
9224
9224
|
});
|
|
9225
9225
|
const k = () => {
|
|
9226
|
-
p(n) && ln.getChats().then((
|
|
9227
|
-
$(o, P(
|
|
9226
|
+
p(n) && ln.getChats().then((q) => {
|
|
9227
|
+
$(o, P(q.sort((N, ve) => {
|
|
9228
9228
|
if (N.messages.length === 0 && ve.messages.length === 0) return 0;
|
|
9229
9229
|
if (N.messages.length === 0) return 1;
|
|
9230
9230
|
if (ve.messages.length === 0) return -1;
|
|
@@ -9237,10 +9237,10 @@ function xa(t, e) {
|
|
|
9237
9237
|
p(a) && $(l, P(p(a).messages)), k();
|
|
9238
9238
|
});
|
|
9239
9239
|
let _ = !1, C, E, y, w;
|
|
9240
|
-
function j(
|
|
9241
|
-
const N =
|
|
9240
|
+
function j(q) {
|
|
9241
|
+
const N = q.target;
|
|
9242
9242
|
if (N.closest(".resize-handle") || N.classList.contains("resize-border-left") || N.classList.contains("resize-border-top")) {
|
|
9243
|
-
|
|
9243
|
+
q.preventDefault(), q.stopPropagation(), _ = !0, C = q.clientX, E = q.clientY;
|
|
9244
9244
|
const le = document.querySelector(".chat");
|
|
9245
9245
|
y = le.offsetWidth, w = le.offsetHeight, le.classList.add("no-select");
|
|
9246
9246
|
const de = N.closest(".resize-handle"), ee = N.classList.contains("resize-border-left"), oe = N.classList.contains("resize-border-top"), te = (he) => {
|
|
@@ -9266,17 +9266,17 @@ function xa(t, e) {
|
|
|
9266
9266
|
}
|
|
9267
9267
|
Kr(async () => {
|
|
9268
9268
|
try {
|
|
9269
|
-
const
|
|
9270
|
-
$(s, P(
|
|
9269
|
+
const q = await ar.getUsername();
|
|
9270
|
+
$(s, P(q));
|
|
9271
9271
|
const N = _t.firstMessage(p(i), p(s));
|
|
9272
9272
|
$(l, P([N])), $(a, P(new pt("", "", "", "New Chat", [N]))), $(u, !1);
|
|
9273
|
-
} catch (
|
|
9274
|
-
console.error("Failed to load username",
|
|
9273
|
+
} catch (q) {
|
|
9274
|
+
console.error("Failed to load username", q), $(h, "Failed to load username"), $(u, !1);
|
|
9275
9275
|
}
|
|
9276
9276
|
});
|
|
9277
9277
|
var R = jh(), F = A(R);
|
|
9278
9278
|
{
|
|
9279
|
-
var W = (
|
|
9279
|
+
var W = (q) => {
|
|
9280
9280
|
var N = Ch();
|
|
9281
9281
|
N.__mousedown = j;
|
|
9282
9282
|
var ve = A(N);
|
|
@@ -9425,7 +9425,7 @@ function xa(t, e) {
|
|
|
9425
9425
|
}
|
|
9426
9426
|
}), x(he, ge);
|
|
9427
9427
|
};
|
|
9428
|
-
|
|
9428
|
+
D(
|
|
9429
9429
|
te,
|
|
9430
9430
|
(he) => {
|
|
9431
9431
|
p(a) && he(Ee);
|
|
@@ -9435,14 +9435,14 @@ function xa(t, e) {
|
|
|
9435
9435
|
}
|
|
9436
9436
|
x(ee, oe);
|
|
9437
9437
|
};
|
|
9438
|
-
|
|
9438
|
+
D(ve, (ee) => {
|
|
9439
9439
|
p(u) ? ee(le) : ee(de, !1);
|
|
9440
9440
|
});
|
|
9441
9441
|
}
|
|
9442
|
-
I(N), _n(3, N, () => bl, () => ({ y: 50, duration: 500 })), x(
|
|
9442
|
+
I(N), _n(3, N, () => bl, () => ({ y: 50, duration: 500 })), x(q, N);
|
|
9443
9443
|
};
|
|
9444
|
-
|
|
9445
|
-
p(n) &&
|
|
9444
|
+
D(F, (q) => {
|
|
9445
|
+
p(n) && q(W);
|
|
9446
9446
|
});
|
|
9447
9447
|
}
|
|
9448
9448
|
var ae = B(F, 2);
|