akpm-knowledge-base-chat 1.0.81 → 1.0.82
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 +169 -165
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 1.0.
|
|
1
|
+
/* Version: 1.0.82 */
|
|
2
2
|
var co = Object.defineProperty;
|
|
3
3
|
var Hs = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
@@ -218,7 +218,7 @@ function Jr() {
|
|
|
218
218
|
e.remove(), e = r;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function C(t, e = null, n) {
|
|
222
222
|
if (typeof t != "object" || t === null || Mt in t)
|
|
223
223
|
return t;
|
|
224
224
|
const r = bs(t);
|
|
@@ -237,7 +237,7 @@ function E(t, e = null, n) {
|
|
|
237
237
|
defineProperty(l, c, u) {
|
|
238
238
|
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Zo();
|
|
239
239
|
var d = s.get(c);
|
|
240
|
-
return d === void 0 ? (d = rt(u.value), s.set(c, d)) : w(d,
|
|
240
|
+
return d === void 0 ? (d = rt(u.value), s.set(c, d)) : w(d, C(u.value, o)), !0;
|
|
241
241
|
},
|
|
242
242
|
deleteProperty(l, c) {
|
|
243
243
|
var u = s.get(c);
|
|
@@ -260,7 +260,7 @@ function E(t, e = null, n) {
|
|
|
260
260
|
if (c === Mt)
|
|
261
261
|
return t;
|
|
262
262
|
var d = s.get(c), f = c in l;
|
|
263
|
-
if (d === void 0 && (!f || (b = rn(l, c)) != null && b.writable) && (d = rt(
|
|
263
|
+
if (d === void 0 && (!f || (b = rn(l, c)) != null && b.writable) && (d = rt(C(f ? l[c] : nt, o)), s.set(c, d)), d !== void 0) {
|
|
264
264
|
var h = p(d);
|
|
265
265
|
return h === nt ? void 0 : h;
|
|
266
266
|
}
|
|
@@ -289,7 +289,7 @@ function E(t, e = null, n) {
|
|
|
289
289
|
return !0;
|
|
290
290
|
var u = s.get(c), d = u !== void 0 && u.v !== nt || Reflect.has(l, c);
|
|
291
291
|
if (u !== void 0 || ve !== null && (!d || (h = rn(l, c)) != null && h.writable)) {
|
|
292
|
-
u === void 0 && (u = rt(d ?
|
|
292
|
+
u === void 0 && (u = rt(d ? C(l[c], o) : nt), s.set(c, u));
|
|
293
293
|
var f = p(u);
|
|
294
294
|
if (f === nt)
|
|
295
295
|
return !1;
|
|
@@ -305,7 +305,7 @@ function E(t, e = null, n) {
|
|
|
305
305
|
var m = s.get(b + "");
|
|
306
306
|
m !== void 0 ? w(m, nt) : b in l && (m = rt(nt), s.set(b + "", m));
|
|
307
307
|
}
|
|
308
|
-
f === void 0 ? (!h || ($ = rn(l, c)) != null && $.writable) && (f = rt(void 0), w(f,
|
|
308
|
+
f === void 0 ? (!h || ($ = rn(l, c)) != null && $.writable) && (f = rt(void 0), w(f, C(u, o)), s.set(c, f)) : (h = f.v !== nt, w(f, C(u, o)));
|
|
309
309
|
var z = Reflect.getOwnPropertyDescriptor(l, c);
|
|
310
310
|
if (z != null && z.set && z.set.call(d, u), !h) {
|
|
311
311
|
if (a && typeof c == "string") {
|
|
@@ -1544,18 +1544,18 @@ function Je(t, e, n, r, s, a = null) {
|
|
|
1544
1544
|
ke, m = !0, Ot(!1);
|
|
1545
1545
|
break;
|
|
1546
1546
|
}
|
|
1547
|
-
var O = h[$],
|
|
1547
|
+
var O = h[$], E = r(O, $);
|
|
1548
1548
|
y = vi(
|
|
1549
1549
|
ke,
|
|
1550
1550
|
o,
|
|
1551
1551
|
_,
|
|
1552
1552
|
null,
|
|
1553
1553
|
O,
|
|
1554
|
-
|
|
1554
|
+
E,
|
|
1555
1555
|
$,
|
|
1556
1556
|
s,
|
|
1557
1557
|
e
|
|
1558
|
-
), o.items.set(
|
|
1558
|
+
), o.items.set(E, y), _ = y;
|
|
1559
1559
|
}
|
|
1560
1560
|
b > 0 && gt(Jr());
|
|
1561
1561
|
}
|
|
@@ -1581,12 +1581,12 @@ function Je(t, e, n, r, s, a = null) {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
function zl(t, e, n, r, s, a, i, o) {
|
|
1583
1583
|
var Pe, Te, Ee, U;
|
|
1584
|
-
var l = (s & ho) !== 0, c = (s & (hs | ps)) !== 0, u = t.length, d = e.items, f = e.first, h = f, b, m = null, z, _ = [], y = [], $, O,
|
|
1584
|
+
var l = (s & ho) !== 0, c = (s & (hs | ps)) !== 0, u = t.length, d = e.items, f = e.first, h = f, b, m = null, z, _ = [], y = [], $, O, E, I;
|
|
1585
1585
|
if (l)
|
|
1586
1586
|
for (I = 0; I < u; I += 1)
|
|
1587
|
-
$ = t[I], O = i($, I),
|
|
1587
|
+
$ = t[I], O = i($, I), E = d.get(O), E !== void 0 && ((Pe = E.a) == null || Pe.measure(), (z ?? (z = /* @__PURE__ */ new Set())).add(E));
|
|
1588
1588
|
for (I = 0; I < u; I += 1) {
|
|
1589
|
-
if ($ = t[I], O = i($, I),
|
|
1589
|
+
if ($ = t[I], O = i($, I), E = d.get(O), E === void 0) {
|
|
1590
1590
|
var R = h ? (
|
|
1591
1591
|
/** @type {TemplateNode} */
|
|
1592
1592
|
h.e.nodes_start
|
|
@@ -1604,8 +1604,8 @@ function zl(t, e, n, r, s, a, i, o) {
|
|
|
1604
1604
|
), d.set(O, m), _ = [], y = [], h = m.next;
|
|
1605
1605
|
continue;
|
|
1606
1606
|
}
|
|
1607
|
-
if (c && $l(
|
|
1608
|
-
if (b !== void 0 && b.has(
|
|
1607
|
+
if (c && $l(E, $, I, s), E.e.f & kt && (hr(E.e), l && ((Te = E.a) == null || Te.unfix(), (z ?? (z = /* @__PURE__ */ new Set())).delete(E))), E !== h) {
|
|
1608
|
+
if (b !== void 0 && b.has(E)) {
|
|
1609
1609
|
if (_.length < y.length) {
|
|
1610
1610
|
var M = y[0], Z;
|
|
1611
1611
|
m = M.prev;
|
|
@@ -1616,16 +1616,16 @@ function zl(t, e, n, r, s, a, i, o) {
|
|
|
1616
1616
|
b.delete(y[Z]);
|
|
1617
1617
|
Ht(e, X.prev, Oe.next), Ht(e, m, X), Ht(e, Oe, M), h = M, m = Oe, I -= 1, _ = [], y = [];
|
|
1618
1618
|
} else
|
|
1619
|
-
b.delete(
|
|
1619
|
+
b.delete(E), Ks(E, h, n), Ht(e, E.prev, E.next), Ht(e, E, m === null ? e.first : m.next), Ht(e, m, E), m = E;
|
|
1620
1620
|
continue;
|
|
1621
1621
|
}
|
|
1622
1622
|
for (_ = [], y = []; h !== null && h.k !== O; )
|
|
1623
1623
|
(a || !(h.e.f & kt)) && (b ?? (b = /* @__PURE__ */ new Set())).add(h), y.push(h), h = h.next;
|
|
1624
1624
|
if (h === null)
|
|
1625
1625
|
continue;
|
|
1626
|
-
|
|
1626
|
+
E = h;
|
|
1627
1627
|
}
|
|
1628
|
-
_.push(
|
|
1628
|
+
_.push(E), m = E, h = E.next;
|
|
1629
1629
|
}
|
|
1630
1630
|
if (h !== null || b !== void 0) {
|
|
1631
1631
|
for (var B = b === void 0 ? [] : ms(b); h !== null; )
|
|
@@ -1645,8 +1645,8 @@ function zl(t, e, n, r, s, a, i, o) {
|
|
|
1645
1645
|
l && In(() => {
|
|
1646
1646
|
var ie;
|
|
1647
1647
|
if (z !== void 0)
|
|
1648
|
-
for (
|
|
1649
|
-
(ie =
|
|
1648
|
+
for (E of z)
|
|
1649
|
+
(ie = E.a) == null || ie.apply();
|
|
1650
1650
|
}), ve.first = e.first && e.first.e, ve.last = m && m.e;
|
|
1651
1651
|
}
|
|
1652
1652
|
function $l(t, e, n, r) {
|
|
@@ -1820,22 +1820,22 @@ function ea(t, e, n, r, s = !1, a = !1, i = !1) {
|
|
|
1820
1820
|
if (h !== "$$") {
|
|
1821
1821
|
if (h === "on") {
|
|
1822
1822
|
const $ = {}, O = "$$" + _;
|
|
1823
|
-
let
|
|
1824
|
-
var b = So(
|
|
1825
|
-
if (zo(
|
|
1823
|
+
let E = _.slice(2);
|
|
1824
|
+
var b = So(E);
|
|
1825
|
+
if (zo(E) && (E = E.slice(0, -7), $.capture = !0), !b && f) {
|
|
1826
1826
|
if (y != null) continue;
|
|
1827
|
-
t.removeEventListener(
|
|
1827
|
+
t.removeEventListener(E, o[O], $), o[O] = null;
|
|
1828
1828
|
}
|
|
1829
1829
|
if (y != null)
|
|
1830
1830
|
if (b)
|
|
1831
|
-
t[`__${
|
|
1831
|
+
t[`__${E}`] = y, Xt([E]);
|
|
1832
1832
|
else {
|
|
1833
1833
|
let I = function(R) {
|
|
1834
1834
|
o[_].call(this, R);
|
|
1835
1835
|
};
|
|
1836
|
-
o[O] = fi(
|
|
1836
|
+
o[O] = fi(E, t, I, $);
|
|
1837
1837
|
}
|
|
1838
|
-
else b && (t[`__${
|
|
1838
|
+
else b && (t[`__${E}`] = void 0);
|
|
1839
1839
|
} else if (_ === "style" && y != null)
|
|
1840
1840
|
t.style.cssText = y + "";
|
|
1841
1841
|
else if (_ === "autofocus")
|
|
@@ -2060,8 +2060,8 @@ function is(t, e, n, r, s) {
|
|
|
2060
2060
|
if (y > 0) {
|
|
2061
2061
|
var O = !1;
|
|
2062
2062
|
if (c)
|
|
2063
|
-
for (var
|
|
2064
|
-
var R = z + _ * d(I /
|
|
2063
|
+
for (var E = Math.ceil(y / 16.666666666666668), I = 0; I <= E; I += 1) {
|
|
2064
|
+
var R = z + _ * d(I / E), M = na(c(R, 1 - R));
|
|
2065
2065
|
$.push(M), O || (O = M.overflow === "hidden");
|
|
2066
2066
|
}
|
|
2067
2067
|
O && (t.style.overflow = "hidden"), b = () => {
|
|
@@ -2383,16 +2383,16 @@ function g(t, e, n, r) {
|
|
|
2383
2383
|
return arguments.length > 0 ? ((!a || !Z || y || l) && d(Z ? z() : M), M) : z();
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
|
-
var $ = !1, O = !1,
|
|
2386
|
+
var $ = !1, O = !1, E = /* @__PURE__ */ $r(c), I = aa(
|
|
2387
2387
|
() => /* @__PURE__ */ ut(() => {
|
|
2388
|
-
var M = z(), Z = p(
|
|
2389
|
-
return $ ? ($ = !1, O = !0, Z) : (O = !1,
|
|
2388
|
+
var M = z(), Z = p(E);
|
|
2389
|
+
return $ ? ($ = !1, O = !0, Z) : (O = !1, E.v = M);
|
|
2390
2390
|
})
|
|
2391
2391
|
);
|
|
2392
2392
|
return s || (I.equals = ws), function(M, Z) {
|
|
2393
2393
|
if (arguments.length > 0) {
|
|
2394
|
-
const X = Z ? p(I) : a && i ?
|
|
2395
|
-
return I.equals(X) || ($ = !0, w(
|
|
2394
|
+
const X = Z ? p(I) : a && i ? C(M) : M;
|
|
2395
|
+
return I.equals(X) || ($ = !0, w(E, X), b && f !== void 0 && (f = X), Ct(() => p(I))), M;
|
|
2396
2396
|
}
|
|
2397
2397
|
return p(I);
|
|
2398
2398
|
};
|
|
@@ -3038,12 +3038,12 @@ function Ci(t, e) {
|
|
|
3038
3038
|
var M;
|
|
3039
3039
|
(M = c()) == null || M.apply(this, R);
|
|
3040
3040
|
};
|
|
3041
|
-
var
|
|
3042
|
-
|
|
3043
|
-
var I = q(
|
|
3041
|
+
var E = q(O, 2);
|
|
3042
|
+
E.__click = [Vu, r];
|
|
3043
|
+
var I = q(E, 2);
|
|
3044
3044
|
return I.__click = [Xu, r, n], k(z), k(d), k(u), F(
|
|
3045
3045
|
(R, M, Z, X) => {
|
|
3046
|
-
N(O, "title", R), N(
|
|
3046
|
+
N(O, "title", R), N(E, "title", M), N(E, "aria-label", Z), N(I, "title", X), N(I, "aria-label", X);
|
|
3047
3047
|
},
|
|
3048
3048
|
[
|
|
3049
3049
|
() => /* @__PURE__ */ $i(),
|
|
@@ -3663,50 +3663,50 @@ function Cd(t, e) {
|
|
|
3663
3663
|
get size() {
|
|
3664
3664
|
return n();
|
|
3665
3665
|
},
|
|
3666
|
-
set size(
|
|
3667
|
-
n(
|
|
3666
|
+
set size(E) {
|
|
3667
|
+
n(E), v();
|
|
3668
3668
|
},
|
|
3669
3669
|
get unit() {
|
|
3670
3670
|
return r();
|
|
3671
3671
|
},
|
|
3672
|
-
set unit(
|
|
3673
|
-
r(
|
|
3672
|
+
set unit(E) {
|
|
3673
|
+
r(E), v();
|
|
3674
3674
|
},
|
|
3675
3675
|
get pause() {
|
|
3676
3676
|
return s();
|
|
3677
3677
|
},
|
|
3678
|
-
set pause(
|
|
3679
|
-
s(
|
|
3678
|
+
set pause(E) {
|
|
3679
|
+
s(E), v();
|
|
3680
3680
|
},
|
|
3681
3681
|
get ballTopLeft() {
|
|
3682
3682
|
return a();
|
|
3683
3683
|
},
|
|
3684
|
-
set ballTopLeft(
|
|
3685
|
-
a(
|
|
3684
|
+
set ballTopLeft(E) {
|
|
3685
|
+
a(E), v();
|
|
3686
3686
|
},
|
|
3687
3687
|
get ballTopRight() {
|
|
3688
3688
|
return i();
|
|
3689
3689
|
},
|
|
3690
|
-
set ballTopRight(
|
|
3691
|
-
i(
|
|
3690
|
+
set ballTopRight(E) {
|
|
3691
|
+
i(E), v();
|
|
3692
3692
|
},
|
|
3693
3693
|
get ballBottomLeft() {
|
|
3694
3694
|
return o();
|
|
3695
3695
|
},
|
|
3696
|
-
set ballBottomLeft(
|
|
3697
|
-
o(
|
|
3696
|
+
set ballBottomLeft(E) {
|
|
3697
|
+
o(E), v();
|
|
3698
3698
|
},
|
|
3699
3699
|
get ballBottomRight() {
|
|
3700
3700
|
return l();
|
|
3701
3701
|
},
|
|
3702
|
-
set ballBottomRight(
|
|
3703
|
-
l(
|
|
3702
|
+
set ballBottomRight(E) {
|
|
3703
|
+
l(E), v();
|
|
3704
3704
|
},
|
|
3705
3705
|
get duration() {
|
|
3706
3706
|
return c();
|
|
3707
3707
|
},
|
|
3708
|
-
set duration(
|
|
3709
|
-
c(
|
|
3708
|
+
set duration(E) {
|
|
3709
|
+
c(E), v();
|
|
3710
3710
|
}
|
|
3711
3711
|
});
|
|
3712
3712
|
}
|
|
@@ -5778,7 +5778,7 @@ function Wt(t) {
|
|
|
5778
5778
|
}
|
|
5779
5779
|
const sh = (t, e, n, r, s) => {
|
|
5780
5780
|
const a = t.target;
|
|
5781
|
-
if (w(e,
|
|
5781
|
+
if (w(e, C(a.value)), n() !== "") {
|
|
5782
5782
|
r(p(e));
|
|
5783
5783
|
return;
|
|
5784
5784
|
}
|
|
@@ -5792,9 +5792,9 @@ const kh = {
|
|
|
5792
5792
|
};
|
|
5793
5793
|
function Ei(t, e) {
|
|
5794
5794
|
re(e, !0), ue(t, kh);
|
|
5795
|
-
let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), s = g(e, "forgeSelected", 15, ""), a = /* @__PURE__ */ ut(() => Wt(s())), i = V(
|
|
5795
|
+
let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), s = g(e, "forgeSelected", 15, ""), a = /* @__PURE__ */ ut(() => Wt(s())), i = V(C([])), o = V(C([])), l = V(!1), c = V("");
|
|
5796
5796
|
const u = () => {
|
|
5797
|
-
r(!1), w(c, ""), w(i,
|
|
5797
|
+
r(!1), w(c, ""), w(i, C([])), w(o, C([]));
|
|
5798
5798
|
}, d = (B) => {
|
|
5799
5799
|
B instanceof Hn ? n(
|
|
5800
5800
|
n()[B._id] = {
|
|
@@ -5815,27 +5815,27 @@ function Ei(t, e) {
|
|
|
5815
5815
|
), u();
|
|
5816
5816
|
}, f = async (B) => {
|
|
5817
5817
|
if (B.length < 3) {
|
|
5818
|
-
w(o,
|
|
5818
|
+
w(o, C([]));
|
|
5819
5819
|
return;
|
|
5820
5820
|
}
|
|
5821
5821
|
w(l, !0);
|
|
5822
5822
|
try {
|
|
5823
|
-
w(o,
|
|
5823
|
+
w(o, C(await Vt.getForge(B, s())));
|
|
5824
5824
|
} catch (ae) {
|
|
5825
|
-
console.error("Errore nella ricerca forge:", ae), w(o,
|
|
5825
|
+
console.error("Errore nella ricerca forge:", ae), w(o, C([]));
|
|
5826
5826
|
} finally {
|
|
5827
5827
|
w(l, !1);
|
|
5828
5828
|
}
|
|
5829
5829
|
}, h = async (B) => {
|
|
5830
5830
|
if (B.length < 3) {
|
|
5831
|
-
w(i,
|
|
5831
|
+
w(i, C([]));
|
|
5832
5832
|
return;
|
|
5833
5833
|
}
|
|
5834
5834
|
w(l, !0);
|
|
5835
5835
|
try {
|
|
5836
|
-
w(i,
|
|
5836
|
+
w(i, C(await Vt.getDocuments(B)));
|
|
5837
5837
|
} catch (ae) {
|
|
5838
|
-
console.error("Errore nella ricerca documenti:", ae), w(i,
|
|
5838
|
+
console.error("Errore nella ricerca documenti:", ae), w(i, C([]));
|
|
5839
5839
|
} finally {
|
|
5840
5840
|
w(l, !1);
|
|
5841
5841
|
}
|
|
@@ -5844,15 +5844,15 @@ function Ei(t, e) {
|
|
|
5844
5844
|
k(_);
|
|
5845
5845
|
var $ = q(_, 2);
|
|
5846
5846
|
$.__click = u, k(z);
|
|
5847
|
-
var O = q(z, 2),
|
|
5847
|
+
var O = q(z, 2), E = S(O), I = S(E), R = q(S(I), 2);
|
|
5848
5848
|
Tl(R), R.__input = [
|
|
5849
5849
|
sh,
|
|
5850
5850
|
c,
|
|
5851
5851
|
s,
|
|
5852
5852
|
f,
|
|
5853
5853
|
h
|
|
5854
|
-
], k(I), k(
|
|
5855
|
-
var M = q(
|
|
5854
|
+
], k(I), k(E);
|
|
5855
|
+
var M = q(E, 2), Z = S(M);
|
|
5856
5856
|
{
|
|
5857
5857
|
var X = (B) => {
|
|
5858
5858
|
var ae = ah(), we = S(ae);
|
|
@@ -6097,7 +6097,7 @@ le(
|
|
|
6097
6097
|
);
|
|
6098
6098
|
const zh = (t, e, n, r, s) => {
|
|
6099
6099
|
const i = t.target.value;
|
|
6100
|
-
w(e,
|
|
6100
|
+
w(e, C(i)), i === "auto" ? (n(""), r(!1)) : i === "suite" || i === "normative" ? (n(i), r(!1)) : i === "kb" && (n(""), r(!0)), s({});
|
|
6101
6101
|
}, $h = (t, e) => {
|
|
6102
6102
|
w(e, !p(e));
|
|
6103
6103
|
};
|
|
@@ -6117,7 +6117,7 @@ const Zh = {
|
|
|
6117
6117
|
};
|
|
6118
6118
|
function Ii(t, e) {
|
|
6119
6119
|
re(e, !0), ue(t, Zh);
|
|
6120
|
-
let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), a = g(e, "languageSelected", 15), i = g(e, "forgeSelected", 15), o = g(e, "kbSelected", 15), l = g(e, "attachments", 15), c = V(""), u = V("auto"), d = /* @__PURE__ */ ut(() => Wt(i())), f, h = V(
|
|
6120
|
+
let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), a = g(e, "languageSelected", 15), i = g(e, "forgeSelected", 15), o = g(e, "kbSelected", 15), l = g(e, "attachments", 15), c = V(""), u = V("auto"), d = /* @__PURE__ */ ut(() => Wt(i())), f, h = V(C([])), b = V(!1), m = V(!1), z;
|
|
6121
6121
|
const _ = (L) => {
|
|
6122
6122
|
L.preventDefault();
|
|
6123
6123
|
const P = L.deltaY * 0.5;
|
|
@@ -6138,18 +6138,18 @@ function Ii(t, e) {
|
|
|
6138
6138
|
w(m, !1);
|
|
6139
6139
|
return;
|
|
6140
6140
|
}
|
|
6141
|
-
w(c,
|
|
6141
|
+
w(c, C(Q)), w(m, !1), O();
|
|
6142
6142
|
});
|
|
6143
6143
|
}, w(b, !0), f.start(), console.log("Recording started");
|
|
6144
6144
|
}, $ = () => {
|
|
6145
6145
|
f && (f.stop(), console.log("Recording stopped"), f.stream && f.stream.getTracks().forEach((L) => {
|
|
6146
6146
|
L.stop();
|
|
6147
|
-
})), w(b, !1), w(h,
|
|
6147
|
+
})), w(b, !1), w(h, C([]));
|
|
6148
6148
|
}, O = () => {
|
|
6149
6149
|
if (s()) return;
|
|
6150
6150
|
const L = Object.keys(l()).map((P) => l()[P].ext_id);
|
|
6151
6151
|
n()(p(c), i(), o(), L), w(c, ""), l({});
|
|
6152
|
-
},
|
|
6152
|
+
}, E = () => {
|
|
6153
6153
|
console.log("Seleziona file"), I(), R();
|
|
6154
6154
|
}, I = () => {
|
|
6155
6155
|
w(Z, !1);
|
|
@@ -6173,7 +6173,7 @@ function Ii(t, e) {
|
|
|
6173
6173
|
var Be = q(U, 2);
|
|
6174
6174
|
{
|
|
6175
6175
|
var He = (L) => {
|
|
6176
|
-
var P = Th(), Q = S(P), K = /* @__PURE__ */ ut(() => Object.keys(l()).length < 2 ?
|
|
6176
|
+
var P = Th(), Q = S(P), K = /* @__PURE__ */ ut(() => Object.keys(l()).length < 2 ? E : () => {
|
|
6177
6177
|
});
|
|
6178
6178
|
Q.__click = function(...ee) {
|
|
6179
6179
|
var Ae;
|
|
@@ -6414,7 +6414,7 @@ function Ii(t, e) {
|
|
|
6414
6414
|
return p(X);
|
|
6415
6415
|
},
|
|
6416
6416
|
set showDocumentSearchModal(P) {
|
|
6417
|
-
w(X,
|
|
6417
|
+
w(X, C(P));
|
|
6418
6418
|
},
|
|
6419
6419
|
get forgeSelected() {
|
|
6420
6420
|
return i();
|
|
@@ -7171,7 +7171,7 @@ function Cp(t, e, n, r) {
|
|
|
7171
7171
|
return;
|
|
7172
7172
|
}
|
|
7173
7173
|
if (Z) {
|
|
7174
|
-
u = M, f.length || (i.length ?
|
|
7174
|
+
u = M, f.length || (i.length ? E() : y());
|
|
7175
7175
|
return;
|
|
7176
7176
|
}
|
|
7177
7177
|
if (b(), $(), !t.random) {
|
|
@@ -7182,7 +7182,7 @@ function Cp(t, e, n, r) {
|
|
|
7182
7182
|
X(M);
|
|
7183
7183
|
});
|
|
7184
7184
|
}
|
|
7185
|
-
function
|
|
7185
|
+
function E() {
|
|
7186
7186
|
if (l !== "pending")
|
|
7187
7187
|
return;
|
|
7188
7188
|
b();
|
|
@@ -7204,9 +7204,9 @@ function Cp(t, e, n, r) {
|
|
|
7204
7204
|
O(R, M, Z);
|
|
7205
7205
|
}
|
|
7206
7206
|
};
|
|
7207
|
-
f.push(R), c++, d = setTimeout(
|
|
7207
|
+
f.push(R), c++, d = setTimeout(E, t.rotate), n(I, e, R.callback);
|
|
7208
7208
|
}
|
|
7209
|
-
return setTimeout(
|
|
7209
|
+
return setTimeout(E), _;
|
|
7210
7210
|
}
|
|
7211
7211
|
function Ni(t) {
|
|
7212
7212
|
const e = {
|
|
@@ -8090,18 +8090,18 @@ ${d}` : d;
|
|
|
8090
8090
|
`, 1)[0], b = !f.trim(), m = 0;
|
|
8091
8091
|
if (this.options.pedantic ? (m = 2, d = f.trimStart()) : b ? m = n[1].length + 1 : (m = n[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, d = f.slice(m), m += n[1].length), b && this.rules.other.blankLine.test(h) && (u += h + `
|
|
8092
8092
|
`, e = e.substring(h.length + 1), c = !0), !c) {
|
|
8093
|
-
const y = this.rules.other.nextBulletRegex(m), $ = this.rules.other.hrRegex(m), O = this.rules.other.fencesBeginRegex(m),
|
|
8093
|
+
const y = this.rules.other.nextBulletRegex(m), $ = this.rules.other.hrRegex(m), O = this.rules.other.fencesBeginRegex(m), E = this.rules.other.headingBeginRegex(m), I = this.rules.other.htmlBeginRegex(m);
|
|
8094
8094
|
for (; e; ) {
|
|
8095
8095
|
const R = e.split(`
|
|
8096
8096
|
`, 1)[0];
|
|
8097
8097
|
let M;
|
|
8098
|
-
if (h = R, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), M = h) : M = h.replace(this.rules.other.tabCharGlobal, " "), O.test(h) ||
|
|
8098
|
+
if (h = R, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), M = h) : M = h.replace(this.rules.other.tabCharGlobal, " "), O.test(h) || E.test(h) || I.test(h) || y.test(h) || $.test(h))
|
|
8099
8099
|
break;
|
|
8100
8100
|
if (M.search(this.rules.other.nonSpaceChar) >= m || !h.trim())
|
|
8101
8101
|
d += `
|
|
8102
8102
|
` + M.slice(m);
|
|
8103
8103
|
else {
|
|
8104
|
-
if (b || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || O.test(f) ||
|
|
8104
|
+
if (b || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || O.test(f) || E.test(f) || $.test(f))
|
|
8105
8105
|
break;
|
|
8106
8106
|
d += `
|
|
8107
8107
|
` + h;
|
|
@@ -9260,18 +9260,18 @@ const Lv = async (t, e, n) => {
|
|
|
9260
9260
|
`);
|
|
9261
9261
|
try {
|
|
9262
9262
|
const a = new Blob([r], { type: "text/html" }), i = new Blob([s], { type: "text/plain" }), o = new ClipboardItem({ "text/html": a, "text/plain": i });
|
|
9263
|
-
await navigator.clipboard.write([o]), w(n,
|
|
9263
|
+
await navigator.clipboard.write([o]), w(n, C(/* @__PURE__ */ ua())), setTimeout(
|
|
9264
9264
|
() => {
|
|
9265
|
-
w(n,
|
|
9265
|
+
w(n, C(/* @__PURE__ */ mr()));
|
|
9266
9266
|
},
|
|
9267
9267
|
2e3
|
|
9268
9268
|
);
|
|
9269
9269
|
} catch (a) {
|
|
9270
9270
|
console.error("Errore durante la copia:", a);
|
|
9271
9271
|
try {
|
|
9272
|
-
await navigator.clipboard.writeText(s), w(n,
|
|
9272
|
+
await navigator.clipboard.writeText(s), w(n, C(/* @__PURE__ */ ua())), setTimeout(
|
|
9273
9273
|
() => {
|
|
9274
|
-
w(n,
|
|
9274
|
+
w(n, C(/* @__PURE__ */ mr()));
|
|
9275
9275
|
},
|
|
9276
9276
|
2e3
|
|
9277
9277
|
);
|
|
@@ -9289,7 +9289,7 @@ const Gv = {
|
|
|
9289
9289
|
};
|
|
9290
9290
|
function fs(t, e) {
|
|
9291
9291
|
re(e, !0), ue(t, Gv);
|
|
9292
|
-
let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15), s = g(e, "userLevel", 15), a = V(
|
|
9292
|
+
let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15), s = g(e, "userLevel", 15), a = V(C({})), i = V(C(/* @__PURE__ */ mr()));
|
|
9293
9293
|
const o = async (h, b, m) => {
|
|
9294
9294
|
await Vt.getDocumentPage(h, b, m);
|
|
9295
9295
|
}, l = async (h, b, m) => {
|
|
@@ -9488,16 +9488,16 @@ function fs(t, e) {
|
|
|
9488
9488
|
]
|
|
9489
9489
|
), x(M, Te);
|
|
9490
9490
|
}), k($);
|
|
9491
|
-
var O = q($, 2),
|
|
9492
|
-
|
|
9491
|
+
var O = q($, 2), E = S(O);
|
|
9492
|
+
E.__click = [
|
|
9493
9493
|
Lv,
|
|
9494
9494
|
r,
|
|
9495
9495
|
i
|
|
9496
9496
|
];
|
|
9497
|
-
var I = q(S(
|
|
9498
|
-
k(I), k(
|
|
9497
|
+
var I = q(S(E), 2), R = S(I, !0);
|
|
9498
|
+
k(I), k(E), k(O), k(y), F(
|
|
9499
9499
|
(M) => {
|
|
9500
|
-
N(
|
|
9500
|
+
N(E, "aria-label", M), N(E, "title", M), Ne(R, p(i));
|
|
9501
9501
|
},
|
|
9502
9502
|
[() => /* @__PURE__ */ mr()]
|
|
9503
9503
|
), yt(3, y, () => Vl, () => ({ duration: 300 })), x(_, y);
|
|
@@ -9560,20 +9560,20 @@ const lg = {
|
|
|
9560
9560
|
};
|
|
9561
9561
|
function Ki(t, e) {
|
|
9562
9562
|
re(e, !0), ue(t, lg);
|
|
9563
|
-
let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), a = g(e, "streamMessage", 15), i = g(e, "streamAttachments", 15), o = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), c = g(e, "loadingChat", 15), u = V(void 0), d = V(
|
|
9563
|
+
let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), a = g(e, "streamMessage", 15), i = g(e, "streamAttachments", 15), o = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), c = g(e, "loadingChat", 15), u = V(void 0), d = V(C(new Audio())), f = V(!1), h = V(C({})), b = V(C({})), m = V(C(n())), z = V(null), _ = V(!0), y = V(!1), $ = V(!1), O = V(C(c())), E = V(!1);
|
|
9564
9564
|
const I = async () => {
|
|
9565
9565
|
await Br(), p(u) && (p(u).scrollTop = p(u).scrollHeight);
|
|
9566
9566
|
}, R = async () => {
|
|
9567
9567
|
await Br(), w(_, !1);
|
|
9568
9568
|
}, M = async () => {
|
|
9569
|
-
p(
|
|
9569
|
+
p(E) || (w(E, !0), await Br(), w(y, !1));
|
|
9570
9570
|
}, Z = () => {
|
|
9571
9571
|
p($) && w(y, !0);
|
|
9572
9572
|
}, X = () => {
|
|
9573
|
-
p($) && (w(m,
|
|
9573
|
+
p($) && (w(m, C(p(z) ?? n())), w(z, null), w(_, !0), w($, !1), w(E, !1));
|
|
9574
9574
|
}, Oe = (U) => {
|
|
9575
9575
|
Is.getAudio(U.content, o()).then((ie) => {
|
|
9576
|
-
w(d,
|
|
9576
|
+
w(d, C(new Audio(ie))), p(d).play(), w(f, !0), p(d).onended = () => {
|
|
9577
9577
|
w(f, !1);
|
|
9578
9578
|
};
|
|
9579
9579
|
});
|
|
@@ -9604,11 +9604,11 @@ function Ki(t, e) {
|
|
|
9604
9604
|
}
|
|
9605
9605
|
};
|
|
9606
9606
|
wt(() => {
|
|
9607
|
-
c() && !p(O) ? (w($, !0), w(z, null), w(y, !1), w(_, !0), R()) : !c() && p(O) && (w(z,
|
|
9607
|
+
c() && !p(O) ? (w($, !0), w(z, null), w(y, !1), w(_, !0), R()) : !c() && p(O) && (w(z, C(n())), p(y) && M()), w(O, C(c()));
|
|
9608
9608
|
}), wt(() => {
|
|
9609
9609
|
p($) && p(y) && !c() && M();
|
|
9610
9610
|
}), wt(() => {
|
|
9611
|
-
p($) ? w(z,
|
|
9611
|
+
p($) ? w(z, C(n())) : c() || w(m, C(n()));
|
|
9612
9612
|
}), wt(() => {
|
|
9613
9613
|
a(), p(m), I();
|
|
9614
9614
|
});
|
|
@@ -10046,7 +10046,7 @@ function to(t, e) {
|
|
|
10046
10046
|
k(_);
|
|
10047
10047
|
var $ = q(_, 2), O = S($);
|
|
10048
10048
|
{
|
|
10049
|
-
var
|
|
10049
|
+
var E = (R) => {
|
|
10050
10050
|
var M = vg();
|
|
10051
10051
|
x(R, M);
|
|
10052
10052
|
}, I = (R) => {
|
|
@@ -10063,7 +10063,7 @@ function to(t, e) {
|
|
|
10063
10063
|
}), x(R, M);
|
|
10064
10064
|
};
|
|
10065
10065
|
H(O, (R) => {
|
|
10066
|
-
l() ? R(
|
|
10066
|
+
l() ? R(E) : R(I, !1);
|
|
10067
10067
|
});
|
|
10068
10068
|
}
|
|
10069
10069
|
k($), k(z), F((R) => Ne(y, R), [() => /* @__PURE__ */ Si()]), yt(3, z, () => Xl, () => ({ duration: 600 })), x(m, z);
|
|
@@ -10140,58 +10140,63 @@ le(
|
|
|
10140
10140
|
[],
|
|
10141
10141
|
!0
|
|
10142
10142
|
);
|
|
10143
|
-
const yg = (t
|
|
10144
|
-
|
|
10143
|
+
const yg = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it";
|
|
10144
|
+
function kg(t) {
|
|
10145
|
+
const e = /\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/g;
|
|
10146
|
+
return t.replace(e, (n, r, s) => `<a style="color: inherit" href="${s}">${r}</a>`);
|
|
10147
|
+
}
|
|
10148
|
+
const zg = (t, e, n, r, s, a) => {
|
|
10149
|
+
p(e) || (w(e, !1), w(n, ""), r()), s(), w(a, C({}));
|
|
10145
10150
|
};
|
|
10146
|
-
var
|
|
10147
|
-
const
|
|
10151
|
+
var $g = /* @__PURE__ */ T('<div class="loading-placeholder svelte-1hgblks"><!></div>'), Sg = /* @__PURE__ */ T('<!> <div class="resize-border-left svelte-1hgblks"></div> <div class="resize-border-top svelte-1hgblks"></div> <div class="resize-handle svelte-1hgblks"><!></div> <!> <!> <!>', 1), Tg = /* @__PURE__ */ T('<div class="chat svelte-1hgblks"><!></div>'), Cg = (t, e) => w(e, !p(e)), Eg = (t, e) => e("normative"), Ig = (t, e) => e("suite"), Ag = /* @__PURE__ */ T('<div class="bottom-right-buttons svelte-1hgblks"><button class="pin-forge-buttons svelte-1hgblks"><i class="fa-solid fa-thumbtack"></i></button> <div class="btn-with-tooltip svelte-1hgblks"><span class="custom-tooltip svelte-1hgblks"> </span> <button class="hidden-btn hidden-btn-1 svelte-1hgblks" aria-label="normative"><i class="fa-solid fa-book-open"></i></button></div> <div class="btn-with-tooltip svelte-1hgblks"><span class="custom-tooltip svelte-1hgblks"> </span> <button class="hidden-btn hidden-btn-2 svelte-1hgblks" aria-label="suite info"><i class="fa-solid fa-circle-info"></i></button></div></div>'), Lg = /* @__PURE__ */ T('<div class="external-div"><!> <button><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2"> </span></button> <!></div>');
|
|
10152
|
+
const jg = {
|
|
10148
10153
|
hash: "svelte-1hgblks",
|
|
10149
10154
|
code: ".loading-placeholder.svelte-1hgblks {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1hgblks {position:fixed;bottom:0;right:0;width:75%;height:90%;min-width:300px;min-height:400px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);resize:none;overflow:visible;z-index:1000;}.resize-handle.svelte-1hgblks {position:absolute;top:-2px;left:-2px;cursor:nw-resize;z-index:1002;display:flex;align-items:flex-start;justify-content:flex-start;}.resize-border-left.svelte-1hgblks {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1hgblks {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1hgblks {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}.bottom-right-buttons.svelte-1hgblks {position:fixed;bottom:20px;right:0;display:flex;flex-direction:column;gap:15px;z-index:999;transform:translateX(50px);padding:5px;transition:350ms;}.bottom-right-buttons.visible.svelte-1hgblks {transform:translateX(0);}.bottom-right-buttons.svelte-1hgblks:hover {transform:translateX(0);}.pin-forge-buttons.svelte-1hgblks {width:30px;height:30px;border-radius:50%;border:none;background:rgba(0, 0, 0, 0.6);color:white;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;align-self:center;transition:200ms;font-size:14px;}.pin-forge-buttons.svelte-1hgblks:hover {background:rgba(0, 0, 0, 0.85);transform:scale(1.1);}.pin-forge-buttons.pinned.svelte-1hgblks {background:#295dcf;transform:rotate(45deg);}.pin-forge-buttons.pinned.svelte-1hgblks:hover {background:#1e4ba8;transform:rotate(45deg) scale(1.1);}.btn-with-tooltip.svelte-1hgblks {position:relative;display:flex;align-items:center;transition:300ms;}.btn-with-tooltip.svelte-1hgblks:hover {transform:translateX(-6px);}.custom-tooltip.svelte-1hgblks {position:absolute;right:70px;background:rgba(0, 0, 0, 0.85);color:white;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:14px;opacity:0;pointer-events:none;transition:opacity 200ms;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3);}.bottom-right-buttons.visible.svelte-1hgblks .custom-tooltip:where(.svelte-1hgblks) {opacity:1;}.btn-with-tooltip.svelte-1hgblks:hover .custom-tooltip:where(.svelte-1hgblks) {opacity:1;}.hidden-btn.svelte-1hgblks {width:60px;height:60px;border-radius:50%;border:none;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:200ms;}.hidden-btn-1.svelte-1hgblks {background:#28853d;color:white;}.hidden-btn-1.svelte-1hgblks:hover {background:#206a31;}.hidden-btn-2.svelte-1hgblks {background:#0099ff;color:white;}.hidden-btn-2.svelte-1hgblks:hover {background:#007acc;}"
|
|
10150
10155
|
};
|
|
10151
10156
|
function no(t, e) {
|
|
10152
|
-
re(e, !0), ue(t,
|
|
10153
|
-
let n = V(!1), r = V(!1), s = V("it"), a = V(""), i = V(0), o = V(null), l = V(
|
|
10157
|
+
re(e, !0), ue(t, jg);
|
|
10158
|
+
let n = V(!1), r = V(!1), s = V("it"), a = V(""), i = V(0), o = V(null), l = V(C([])), c = V(C([])), u = V(!1), d = V(!0), f = V(C(new Audio())), h = V(!0), b = V(""), m = V(""), z = V(C([])), _ = V(null);
|
|
10154
10159
|
const y = (D, Y) => {
|
|
10155
|
-
w(m, p(m) + D), w(z,
|
|
10160
|
+
w(m, p(m) + D), w(m, C(kg(p(m)))), w(z, C(Y));
|
|
10156
10161
|
};
|
|
10157
|
-
let $ = V(""), O = V(!1),
|
|
10162
|
+
let $ = V(""), O = V(!1), E = V(C({})), I = V(!0), R = V(!1);
|
|
10158
10163
|
wt(() => {
|
|
10159
10164
|
p(R) && W.setForgeButtonsPinned(p(I));
|
|
10160
10165
|
});
|
|
10161
10166
|
const M = async (D, Y, ge, _e = []) => {
|
|
10162
|
-
if (w(b, ""), w(u, !0), w(c,
|
|
10167
|
+
if (w(b, ""), w(u, !0), w(c, C([
|
|
10163
10168
|
...p(c),
|
|
10164
10169
|
new Gt((/* @__PURE__ */ new Date()).getTime(), !0, D, D)
|
|
10165
|
-
])), console.log("Current messages:", p(c)), p(c).length == 2 && (w(o,
|
|
10166
|
-
w(_,
|
|
10170
|
+
])), console.log("Current messages:", p(c)), p(c).length == 2 && (w(o, C(await mn.newChat())), w(l, C([...p(l), p(o)])), p(o).messages = p(c), await Te()), p(o)) {
|
|
10171
|
+
w(_, C(new AbortController()));
|
|
10167
10172
|
try {
|
|
10168
10173
|
let de = await mn.sendMessage(p(o)._id, D, Y, ge, _e, y, p(s), p(_).signal);
|
|
10169
10174
|
if (console.log(de), de) {
|
|
10170
|
-
w(c,
|
|
10175
|
+
w(c, C([
|
|
10171
10176
|
...p(c),
|
|
10172
10177
|
new Gt((/* @__PURE__ */ new Date()).getTime(), !1, "", p(m))
|
|
10173
10178
|
])), w(m, "");
|
|
10174
10179
|
return;
|
|
10175
10180
|
}
|
|
10176
|
-
if (w(o,
|
|
10181
|
+
if (w(o, C(await mn.getChat(p(o)._id))), await Te(), w(m, ""), w(z, C([])), w(c, C([
|
|
10177
10182
|
...p(c),
|
|
10178
10183
|
p(o).messages[p(o).messages.length - 1]
|
|
10179
10184
|
])), !p(h)) {
|
|
10180
10185
|
const $e = p(o).messages[p(o).messages.length - 1];
|
|
10181
10186
|
try {
|
|
10182
10187
|
const ne = await Is.getAudio($e.content, p(s));
|
|
10183
|
-
w(f,
|
|
10188
|
+
w(f, C(new Audio(ne))), await p(f).play();
|
|
10184
10189
|
} catch (ne) {
|
|
10185
10190
|
console.error("Error playing audio:", ne);
|
|
10186
10191
|
}
|
|
10187
10192
|
}
|
|
10188
10193
|
} catch (de) {
|
|
10189
|
-
de instanceof Error && de.name !== "AbortError" && (console.error("Error sending message:", de), w(b,
|
|
10194
|
+
de instanceof Error && de.name !== "AbortError" && (console.error("Error sending message:", de), w(b, C(/* @__PURE__ */ qu())));
|
|
10190
10195
|
} finally {
|
|
10191
10196
|
w(_, null), w(u, !1);
|
|
10192
10197
|
}
|
|
10193
10198
|
} else
|
|
10194
|
-
w(b,
|
|
10199
|
+
w(b, C(/* @__PURE__ */ Bu())), w(u, !1);
|
|
10195
10200
|
}, Z = () => {
|
|
10196
10201
|
p(_) && p(_).abort();
|
|
10197
10202
|
};
|
|
@@ -10227,7 +10232,7 @@ function no(t, e) {
|
|
|
10227
10232
|
}
|
|
10228
10233
|
}
|
|
10229
10234
|
const Te = async () => {
|
|
10230
|
-
w(l,
|
|
10235
|
+
w(l, C(await mn.getChats())), w(l, C(p(l).sort((D, Y) => Y.lastUpdate - D.lastUpdate)));
|
|
10231
10236
|
};
|
|
10232
10237
|
let Ee = V(!1), U = V(!1);
|
|
10233
10238
|
const ie = async () => {
|
|
@@ -10238,34 +10243,34 @@ function no(t, e) {
|
|
|
10238
10243
|
450
|
|
10239
10244
|
)) : w(n, !1) : (w(n, !0), w(U, !0), await Te(), w(U, !1));
|
|
10240
10245
|
}, Be = () => {
|
|
10241
|
-
w(o,
|
|
10246
|
+
w(o, C(new sn("", "", "", /* @__PURE__ */ $i(), [
|
|
10242
10247
|
Gt.firstMessage(p(s), p(a), p($))
|
|
10243
|
-
]))), w(c,
|
|
10248
|
+
]))), w(c, C(p(o).messages)), w(b, "");
|
|
10244
10249
|
}, He = (D) => {
|
|
10245
|
-
p($) !== D && (w(O, !1), w($,
|
|
10250
|
+
p($) !== D && (w(O, !1), w($, C(D)), Be()), ie(), w(E, C({}));
|
|
10246
10251
|
};
|
|
10247
10252
|
Lr(async () => {
|
|
10248
10253
|
try {
|
|
10249
|
-
w(s,
|
|
10254
|
+
w(s, C(te()));
|
|
10250
10255
|
const D = await Vt.getUsername();
|
|
10251
|
-
w(a,
|
|
10256
|
+
w(a, C(D));
|
|
10252
10257
|
const Y = await Vt.getUserLevel();
|
|
10253
|
-
w(i,
|
|
10258
|
+
w(i, C(Y));
|
|
10254
10259
|
const ge = Gt.firstMessage(p(s), p(a), p($));
|
|
10255
|
-
w(c,
|
|
10260
|
+
w(c, C([ge])), w(o, C(new sn("", "", "", "New Chat", [ge]))), w(I, C(W.getForgeButtonsPinned())), w(R, !0), w(d, !1);
|
|
10256
10261
|
} catch (D) {
|
|
10257
|
-
console.error("Failed to load username", D), w(b,
|
|
10262
|
+
console.error("Failed to load username", D), w(b, C(/* @__PURE__ */ Uu())), w(d, !1);
|
|
10258
10263
|
}
|
|
10259
10264
|
});
|
|
10260
|
-
var Me =
|
|
10265
|
+
var Me = Lg(), Ue = S(Me);
|
|
10261
10266
|
{
|
|
10262
10267
|
var Ye = (D) => {
|
|
10263
|
-
var Y =
|
|
10268
|
+
var Y = Tg();
|
|
10264
10269
|
Y.__mousedown = Pe;
|
|
10265
10270
|
var ge = S(Y);
|
|
10266
10271
|
{
|
|
10267
10272
|
var _e = ($e) => {
|
|
10268
|
-
var ne =
|
|
10273
|
+
var ne = $g(), Le = S(ne);
|
|
10269
10274
|
xn(Le, {
|
|
10270
10275
|
icon: "svg-spinners:270-ring-with-bg",
|
|
10271
10276
|
width: "50px",
|
|
@@ -10276,50 +10281,50 @@ function no(t, e) {
|
|
|
10276
10281
|
var ne = Se(), Le = ye(ne);
|
|
10277
10282
|
{
|
|
10278
10283
|
var L = (P) => {
|
|
10279
|
-
var Q =
|
|
10284
|
+
var Q = Sg(), K = ye(Q);
|
|
10280
10285
|
to(K, {
|
|
10281
10286
|
newChat: Be,
|
|
10282
10287
|
get showHistory() {
|
|
10283
10288
|
return p(r);
|
|
10284
10289
|
},
|
|
10285
10290
|
set showHistory(A) {
|
|
10286
|
-
w(r,
|
|
10291
|
+
w(r, C(A));
|
|
10287
10292
|
},
|
|
10288
10293
|
get actChat() {
|
|
10289
10294
|
return p(o);
|
|
10290
10295
|
},
|
|
10291
10296
|
set actChat(A) {
|
|
10292
|
-
w(o,
|
|
10297
|
+
w(o, C(A));
|
|
10293
10298
|
},
|
|
10294
10299
|
get chats() {
|
|
10295
10300
|
return p(l);
|
|
10296
10301
|
},
|
|
10297
10302
|
set chats(A) {
|
|
10298
|
-
w(l,
|
|
10303
|
+
w(l, C(A));
|
|
10299
10304
|
},
|
|
10300
10305
|
get messages() {
|
|
10301
10306
|
return p(c);
|
|
10302
10307
|
},
|
|
10303
10308
|
set messages(A) {
|
|
10304
|
-
w(c,
|
|
10309
|
+
w(c, C(A));
|
|
10305
10310
|
},
|
|
10306
10311
|
get error() {
|
|
10307
10312
|
return p(b);
|
|
10308
10313
|
},
|
|
10309
10314
|
set error(A) {
|
|
10310
|
-
w(b,
|
|
10315
|
+
w(b, C(A));
|
|
10311
10316
|
},
|
|
10312
10317
|
get loadingChat() {
|
|
10313
10318
|
return p(Ee);
|
|
10314
10319
|
},
|
|
10315
10320
|
set loadingChat(A) {
|
|
10316
|
-
w(Ee,
|
|
10321
|
+
w(Ee, C(A));
|
|
10317
10322
|
},
|
|
10318
10323
|
get loadingChats() {
|
|
10319
10324
|
return p(U);
|
|
10320
10325
|
},
|
|
10321
10326
|
set loadingChats(A) {
|
|
10322
|
-
w(U,
|
|
10327
|
+
w(U, C(A));
|
|
10323
10328
|
}
|
|
10324
10329
|
});
|
|
10325
10330
|
var je = q(K, 6), fe = S(je);
|
|
@@ -10339,43 +10344,43 @@ function no(t, e) {
|
|
|
10339
10344
|
return p(n);
|
|
10340
10345
|
},
|
|
10341
10346
|
set show(A) {
|
|
10342
|
-
w(n,
|
|
10347
|
+
w(n, C(A));
|
|
10343
10348
|
},
|
|
10344
10349
|
get showHistory() {
|
|
10345
10350
|
return p(r);
|
|
10346
10351
|
},
|
|
10347
10352
|
set showHistory(A) {
|
|
10348
|
-
w(r,
|
|
10353
|
+
w(r, C(A));
|
|
10349
10354
|
},
|
|
10350
10355
|
get actChat() {
|
|
10351
10356
|
return p(o);
|
|
10352
10357
|
},
|
|
10353
10358
|
set actChat(A) {
|
|
10354
|
-
w(o,
|
|
10359
|
+
w(o, C(A));
|
|
10355
10360
|
},
|
|
10356
10361
|
get muted() {
|
|
10357
10362
|
return p(h);
|
|
10358
10363
|
},
|
|
10359
10364
|
set muted(A) {
|
|
10360
|
-
w(h,
|
|
10365
|
+
w(h, C(A));
|
|
10361
10366
|
},
|
|
10362
10367
|
get languageSelected() {
|
|
10363
10368
|
return p(s);
|
|
10364
10369
|
},
|
|
10365
10370
|
set languageSelected(A) {
|
|
10366
|
-
w(s,
|
|
10371
|
+
w(s, C(A));
|
|
10367
10372
|
},
|
|
10368
10373
|
get username() {
|
|
10369
10374
|
return p(a);
|
|
10370
10375
|
},
|
|
10371
10376
|
set username(A) {
|
|
10372
|
-
w(a,
|
|
10377
|
+
w(a, C(A));
|
|
10373
10378
|
},
|
|
10374
10379
|
get error() {
|
|
10375
10380
|
return p(b);
|
|
10376
10381
|
},
|
|
10377
10382
|
set error(A) {
|
|
10378
|
-
w(b,
|
|
10383
|
+
w(b, C(A));
|
|
10379
10384
|
}
|
|
10380
10385
|
});
|
|
10381
10386
|
var Ae = q(ee, 2);
|
|
@@ -10384,49 +10389,49 @@ function no(t, e) {
|
|
|
10384
10389
|
return p(c);
|
|
10385
10390
|
},
|
|
10386
10391
|
set messages(A) {
|
|
10387
|
-
w(c,
|
|
10392
|
+
w(c, C(A));
|
|
10388
10393
|
},
|
|
10389
10394
|
get loading() {
|
|
10390
10395
|
return p(u);
|
|
10391
10396
|
},
|
|
10392
10397
|
set loading(A) {
|
|
10393
|
-
w(u,
|
|
10398
|
+
w(u, C(A));
|
|
10394
10399
|
},
|
|
10395
10400
|
get error() {
|
|
10396
10401
|
return p(b);
|
|
10397
10402
|
},
|
|
10398
10403
|
set error(A) {
|
|
10399
|
-
w(b,
|
|
10404
|
+
w(b, C(A));
|
|
10400
10405
|
},
|
|
10401
10406
|
get streamMessage() {
|
|
10402
10407
|
return p(m);
|
|
10403
10408
|
},
|
|
10404
10409
|
set streamMessage(A) {
|
|
10405
|
-
w(m,
|
|
10410
|
+
w(m, C(A));
|
|
10406
10411
|
},
|
|
10407
10412
|
get streamAttachments() {
|
|
10408
10413
|
return p(z);
|
|
10409
10414
|
},
|
|
10410
10415
|
set streamAttachments(A) {
|
|
10411
|
-
w(z,
|
|
10416
|
+
w(z, C(A));
|
|
10412
10417
|
},
|
|
10413
10418
|
get languageSelected() {
|
|
10414
10419
|
return p(s);
|
|
10415
10420
|
},
|
|
10416
10421
|
set languageSelected(A) {
|
|
10417
|
-
w(s,
|
|
10422
|
+
w(s, C(A));
|
|
10418
10423
|
},
|
|
10419
10424
|
get userLevel() {
|
|
10420
10425
|
return p(i);
|
|
10421
10426
|
},
|
|
10422
10427
|
set userLevel(A) {
|
|
10423
|
-
w(i,
|
|
10428
|
+
w(i, C(A));
|
|
10424
10429
|
},
|
|
10425
10430
|
get loadingChat() {
|
|
10426
10431
|
return p(Ee);
|
|
10427
10432
|
},
|
|
10428
10433
|
set loadingChat(A) {
|
|
10429
|
-
w(Ee,
|
|
10434
|
+
w(Ee, C(A));
|
|
10430
10435
|
}
|
|
10431
10436
|
});
|
|
10432
10437
|
var Ge = q(Ae, 2);
|
|
@@ -10437,31 +10442,31 @@ function no(t, e) {
|
|
|
10437
10442
|
return p(u);
|
|
10438
10443
|
},
|
|
10439
10444
|
set loading(A) {
|
|
10440
|
-
w(u,
|
|
10445
|
+
w(u, C(A));
|
|
10441
10446
|
},
|
|
10442
10447
|
get languageSelected() {
|
|
10443
10448
|
return p(s);
|
|
10444
10449
|
},
|
|
10445
10450
|
set languageSelected(A) {
|
|
10446
|
-
w(s,
|
|
10451
|
+
w(s, C(A));
|
|
10447
10452
|
},
|
|
10448
10453
|
get forgeSelected() {
|
|
10449
10454
|
return p($);
|
|
10450
10455
|
},
|
|
10451
10456
|
set forgeSelected(A) {
|
|
10452
|
-
w($,
|
|
10457
|
+
w($, C(A));
|
|
10453
10458
|
},
|
|
10454
10459
|
get kbSelected() {
|
|
10455
10460
|
return p(O);
|
|
10456
10461
|
},
|
|
10457
10462
|
set kbSelected(A) {
|
|
10458
|
-
w(O,
|
|
10463
|
+
w(O, C(A));
|
|
10459
10464
|
},
|
|
10460
10465
|
get attachments() {
|
|
10461
|
-
return p(
|
|
10466
|
+
return p(E);
|
|
10462
10467
|
},
|
|
10463
10468
|
set attachments(A) {
|
|
10464
|
-
w(
|
|
10469
|
+
w(E, C(A));
|
|
10465
10470
|
}
|
|
10466
10471
|
}), x(P, Q);
|
|
10467
10472
|
};
|
|
@@ -10487,28 +10492,28 @@ function no(t, e) {
|
|
|
10487
10492
|
}
|
|
10488
10493
|
var Fe = q(Ue, 2);
|
|
10489
10494
|
Fe.__click = [
|
|
10490
|
-
|
|
10495
|
+
zg,
|
|
10491
10496
|
O,
|
|
10492
10497
|
$,
|
|
10493
10498
|
Be,
|
|
10494
10499
|
ie,
|
|
10495
|
-
|
|
10500
|
+
E
|
|
10496
10501
|
];
|
|
10497
10502
|
var Ie = q(S(Fe)), J = S(Ie, !0);
|
|
10498
10503
|
k(Ie), k(Fe);
|
|
10499
10504
|
var G = q(Fe, 2);
|
|
10500
10505
|
{
|
|
10501
10506
|
var ce = (D) => {
|
|
10502
|
-
var Y =
|
|
10503
|
-
ge.__click = [
|
|
10507
|
+
var Y = Ag(), ge = S(Y);
|
|
10508
|
+
ge.__click = [Cg, I];
|
|
10504
10509
|
var _e = q(ge, 2), de = S(_e), $e = S(de, !0);
|
|
10505
10510
|
k(de);
|
|
10506
10511
|
var ne = q(de, 2);
|
|
10507
|
-
ne.__click = [
|
|
10512
|
+
ne.__click = [Eg, He], k(_e);
|
|
10508
10513
|
var Le = q(_e, 2), L = S(Le), P = S(L, !0);
|
|
10509
10514
|
k(L);
|
|
10510
10515
|
var Q = q(L, 2);
|
|
10511
|
-
Q.__click = [
|
|
10516
|
+
Q.__click = [Ig, He], k(Le), k(Y), F(
|
|
10512
10517
|
(K, je) => {
|
|
10513
10518
|
oe(Y, "visible", p(I)), N(ge, "aria-label", p(I) ? "unpin forge buttons" : "pin forge buttons"), oe(ge, "pinned", p(I)), Ne($e, K), Ne(P, je);
|
|
10514
10519
|
},
|
|
@@ -10531,13 +10536,12 @@ function no(t, e) {
|
|
|
10531
10536
|
}
|
|
10532
10537
|
Xt(["mousedown", "click"]);
|
|
10533
10538
|
le(no, {}, [], [], !0);
|
|
10534
|
-
|
|
10535
|
-
function jg(t, e) {
|
|
10539
|
+
function Rg(t, e) {
|
|
10536
10540
|
re(e, !0);
|
|
10537
10541
|
let n = g(e, "envId", 23, () => {
|
|
10538
10542
|
}), r = g(e, "token", 23, () => {
|
|
10539
10543
|
}), s = g(e, "lang", 7, "it");
|
|
10540
|
-
return document.cookie = `akb-chat-envid=${n()}`, document.cookie = `akb-chat-token=${r()}`, ec(
|
|
10544
|
+
return document.cookie = `akb-chat-envid=${n()}`, document.cookie = `akb-chat-token=${r()}`, ec(yg(s())), no(t, {}), se({
|
|
10541
10545
|
get envId() {
|
|
10542
10546
|
return n();
|
|
10543
10547
|
},
|
|
@@ -10559,7 +10563,7 @@ function jg(t, e) {
|
|
|
10559
10563
|
});
|
|
10560
10564
|
}
|
|
10561
10565
|
customElements.define("akb-chat", le(
|
|
10562
|
-
|
|
10566
|
+
Rg,
|
|
10563
10567
|
{
|
|
10564
10568
|
token: {
|
|
10565
10569
|
attribute: "aks-token",
|
|
@@ -10582,5 +10586,5 @@ customElements.define("akb-chat", le(
|
|
|
10582
10586
|
!1
|
|
10583
10587
|
));
|
|
10584
10588
|
export {
|
|
10585
|
-
|
|
10589
|
+
Rg as ChatComponent
|
|
10586
10590
|
};
|