akpm-knowledge-base-chat 2.0.31 → 2.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CDN/akb-chat.js +669 -669
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,11 +1,11 @@
1
- /* Version: 2.0.31 */
1
+ /* Version: 2.0.32 */
2
2
  var mo = Object.defineProperty;
3
3
  var ra = (t) => {
4
4
  throw TypeError(t);
5
5
  };
6
6
  var bo = (t, e, n) => e in t ? mo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
7
7
  var I = (t, e, n) => bo(t, typeof e != "symbol" ? e + "" : e, n), sa = (t, e, n) => e.has(t) || ra("Cannot " + n);
8
- var ht = (t, e, n) => (sa(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Xr = (t, e, n) => e.has(t) ? ra("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Qr = (t, e, n, r) => (sa(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
+ var pt = (t, e, n) => (sa(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Xr = (t, e, n) => e.has(t) ? ra("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Qr = (t, e, n, r) => (sa(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
9
  const wo = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wo);
11
11
  const $s = 1, Ss = 2, Ua = 4, xo = 8, _o = 16, ko = 1, yo = 2, qa = 4, zo = 8, To = 16, $o = 1, So = 2, Eo = 4, Co = 1, Io = 2, Ba = "[", Es = "[!", Cs = "]", zn = {}, vt = Symbol();
@@ -59,7 +59,7 @@ function Po(t) {
59
59
  return jo.includes(t);
60
60
  }
61
61
  const is = !1;
62
- var Fr = Array.isArray, Oo = Array.prototype.indexOf, Is = Array.from, mr = Object.keys, br = Object.defineProperty, hn = Object.getOwnPropertyDescriptor, Ha = Object.getOwnPropertyDescriptors, Mo = Object.prototype, No = Array.prototype, As = Object.getPrototypeOf;
62
+ var Fr = Array.isArray, Oo = Array.prototype.indexOf, Is = Array.from, mr = Object.keys, br = Object.defineProperty, pn = Object.getOwnPropertyDescriptor, Ha = Object.getOwnPropertyDescriptors, Mo = Object.prototype, No = Array.prototype, As = Object.getPrototypeOf;
63
63
  function Uo(t) {
64
64
  return typeof t == "function";
65
65
  }
@@ -176,9 +176,9 @@ function Xa(t, e) {
176
176
  function Pr(t) {
177
177
  console.warn("https://svelte.dev/e/hydration_mismatch");
178
178
  }
179
- let he = !1;
179
+ let pe = !1;
180
180
  function Wt(t) {
181
- he = t;
181
+ pe = t;
182
182
  }
183
183
  let we;
184
184
  function zt(t) {
@@ -193,7 +193,7 @@ function Sn() {
193
193
  );
194
194
  }
195
195
  function y(t) {
196
- if (he) {
196
+ if (pe) {
197
197
  if (/* @__PURE__ */ Xt(we) !== null)
198
198
  throw Pr(), zn;
199
199
  we = t;
@@ -248,8 +248,8 @@ function C(t, e = null, n) {
248
248
  var f = (
249
249
  /** @type {Source<number>} */
250
250
  s.get("length")
251
- ), p = Number(l);
252
- Number.isInteger(p) && p < f.v && m(f, p);
251
+ ), h = Number(l);
252
+ Number.isInteger(h) && h < f.v && m(f, h);
253
253
  }
254
254
  m(u, vt), aa(i);
255
255
  }
@@ -259,10 +259,10 @@ function C(t, e = null, n) {
259
259
  var w;
260
260
  if (l === Zt)
261
261
  return t;
262
- var f = s.get(l), p = l in c;
263
- if (f === void 0 && (!p || (w = hn(c, l)) != null && w.writable) && (f = gt(C(p ? c[l] : vt, o)), s.set(l, f)), f !== void 0) {
264
- var h = d(f);
265
- return h === vt ? void 0 : h;
262
+ var f = s.get(l), h = l in c;
263
+ if (f === void 0 && (!h || (w = pn(c, l)) != null && w.writable) && (f = gt(C(h ? c[l] : vt, o)), s.set(l, f)), f !== void 0) {
264
+ var p = d(f);
265
+ return p === vt ? void 0 : p;
266
266
  }
267
267
  return Reflect.get(c, l, u);
268
268
  },
@@ -272,42 +272,42 @@ function C(t, e = null, n) {
272
272
  var f = s.get(l);
273
273
  f && (u.value = d(f));
274
274
  } else if (u === void 0) {
275
- var p = s.get(l), h = p == null ? void 0 : p.v;
276
- if (p !== void 0 && h !== vt)
275
+ var h = s.get(l), p = h == null ? void 0 : h.v;
276
+ if (h !== void 0 && p !== vt)
277
277
  return {
278
278
  enumerable: !0,
279
279
  configurable: !0,
280
- value: h,
280
+ value: p,
281
281
  writable: !0
282
282
  };
283
283
  }
284
284
  return u;
285
285
  },
286
286
  has(c, l) {
287
- var h;
287
+ var p;
288
288
  if (l === Zt)
289
289
  return !0;
290
290
  var u = s.get(l), f = u !== void 0 && u.v !== vt || Reflect.has(c, l);
291
- if (u !== void 0 || ve !== null && (!f || (h = hn(c, l)) != null && h.writable)) {
291
+ if (u !== void 0 || ve !== null && (!f || (p = pn(c, l)) != null && p.writable)) {
292
292
  u === void 0 && (u = gt(f ? C(c[l], o) : vt), s.set(l, u));
293
- var p = d(u);
294
- if (p === vt)
293
+ var h = d(u);
294
+ if (h === vt)
295
295
  return !1;
296
296
  }
297
297
  return f;
298
298
  },
299
299
  set(c, l, u, f) {
300
300
  var $;
301
- var p = s.get(l), h = l in c;
301
+ var h = s.get(l), p = l in c;
302
302
  if (a && l === "length")
303
303
  for (var w = u; w < /** @type {Source<number>} */
304
- p.v; w += 1) {
304
+ h.v; w += 1) {
305
305
  var x = s.get(w + "");
306
306
  x !== void 0 ? m(x, vt) : w in c && (x = gt(vt), s.set(w + "", x));
307
307
  }
308
- p === void 0 ? (!h || ($ = hn(c, l)) != null && $.writable) && (p = gt(void 0), m(p, C(u, o)), s.set(l, p)) : (h = p.v !== vt, m(p, C(u, o)));
308
+ h === void 0 ? (!p || ($ = pn(c, l)) != null && $.writable) && (h = gt(void 0), m(h, C(u, o)), s.set(l, h)) : (p = h.v !== vt, m(h, C(u, o)));
309
309
  var k = Reflect.getOwnPropertyDescriptor(c, l);
310
- if (k != null && k.set && k.set.call(f, u), !h) {
310
+ if (k != null && k.set && k.set.call(f, u), !p) {
311
311
  if (a && typeof l == "string") {
312
312
  var b = (
313
313
  /** @type {Source<number>} */
@@ -321,9 +321,9 @@ function C(t, e = null, n) {
321
321
  },
322
322
  ownKeys(c) {
323
323
  d(i);
324
- var l = Reflect.ownKeys(c).filter((p) => {
325
- var h = s.get(p);
326
- return h === void 0 || h.v !== vt;
324
+ var l = Reflect.ownKeys(c).filter((h) => {
325
+ var p = s.get(h);
326
+ return p === void 0 || p.v !== vt;
327
327
  });
328
328
  for (var [u, f] of s)
329
329
  f.v !== vt && !(u in c) && l.push(u);
@@ -349,7 +349,7 @@ function cs() {
349
349
  if (oa === void 0) {
350
350
  oa = window;
351
351
  var t = Element.prototype, e = Node.prototype;
352
- Qa = hn(e, "firstChild").get, Ka = hn(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
352
+ Qa = pn(e, "firstChild").get, Ka = pn(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
353
353
  }
354
354
  }
355
355
  function an(t = "") {
@@ -364,7 +364,7 @@ function Xt(t) {
364
364
  return Ka.call(t);
365
365
  }
366
366
  function T(t, e) {
367
- if (!he)
367
+ if (!pe)
368
368
  return /* @__PURE__ */ bt(t);
369
369
  var n = (
370
370
  /** @type {TemplateNode} */
@@ -379,7 +379,7 @@ function T(t, e) {
379
379
  return zt(n), n;
380
380
  }
381
381
  function ot(t, e) {
382
- if (!he) {
382
+ if (!pe) {
383
383
  var n = (
384
384
  /** @type {DocumentFragment} */
385
385
  /* @__PURE__ */ bt(
@@ -392,11 +392,11 @@ function ot(t, e) {
392
392
  return we;
393
393
  }
394
394
  function O(t, e = 1, n = !1) {
395
- let r = he ? we : t;
395
+ let r = pe ? we : t;
396
396
  for (var s; e--; )
397
397
  s = r, r = /** @type {TemplateNode} */
398
398
  /* @__PURE__ */ Xt(r);
399
- if (!he)
399
+ if (!pe)
400
400
  return r;
401
401
  var a = r == null ? void 0 : r.nodeType;
402
402
  if (n && a !== 3) {
@@ -478,7 +478,7 @@ function ni(t) {
478
478
  return e;
479
479
  }
480
480
  function ri(t) {
481
- var e = ni(t), n = (pn || t.f & wn) && t.deps !== null ? xn : lt;
481
+ var e = ni(t), n = (hn || t.f & wn) && t.deps !== null ? xn : lt;
482
482
  At(t, n), t.equals(e) || (t.v = e, t.wv = vi());
483
483
  }
484
484
  function Rs(t) {
@@ -707,7 +707,7 @@ function ui(t, e) {
707
707
  (a.is_global || e) && a.in();
708
708
  }
709
709
  }
710
- const pl = typeof requestIdleCallback > "u" ? (t) => setTimeout(t, 1) : requestIdleCallback;
710
+ const hl = typeof requestIdleCallback > "u" ? (t) => setTimeout(t, 1) : requestIdleCallback;
711
711
  let zr = !1, Tr = !1, us = [], ds = [];
712
712
  function di() {
713
713
  zr = !1;
@@ -722,8 +722,8 @@ function fi() {
722
722
  function Rn(t) {
723
723
  zr || (zr = !0, queueMicrotask(di)), us.push(t);
724
724
  }
725
- function hl(t) {
726
- Tr || (Tr = !0, pl(fi)), ds.push(t);
725
+ function pl(t) {
726
+ Tr || (Tr = !0, hl(fi)), ds.push(t);
727
727
  }
728
728
  function vl() {
729
729
  zr && di(), Tr && fi();
@@ -731,8 +731,8 @@ function vl() {
731
731
  function js(t) {
732
732
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
733
733
  }
734
- const pi = 0, gl = 1;
735
- let fr = !1, pr = pi, Wn = !1, Zn = null, Tn = !1, Ps = !1;
734
+ const hi = 0, gl = 1;
735
+ let fr = !1, hr = hi, Wn = !1, Zn = null, Tn = !1, Ps = !1;
736
736
  function la(t) {
737
737
  Tn = t;
738
738
  }
@@ -756,9 +756,9 @@ let mt = null, xt = 0, Yt = null;
756
756
  function bl(t) {
757
757
  Yt = t;
758
758
  }
759
- let hi = 1, $r = 0, pn = !1, Ae = null;
759
+ let pi = 1, $r = 0, hn = !1, Ae = null;
760
760
  function vi() {
761
- return ++hi;
761
+ return ++pi;
762
762
  }
763
763
  function nr() {
764
764
  return !An || Ae !== null && Ae.l === null;
@@ -771,7 +771,7 @@ function Dn(t) {
771
771
  if (e & xn) {
772
772
  var n = t.deps, r = (e & wn) !== 0;
773
773
  if (n !== null) {
774
- var s, a, i = (e & _r) !== 0, o = r && ve !== null && !pn, c = n.length;
774
+ var s, a, i = (e & _r) !== 0, o = r && ve !== null && !hn, c = n.length;
775
775
  if (i || o) {
776
776
  for (s = 0; s < c; s++)
777
777
  a = n[s], (i || !((l = a == null ? void 0 : a.reactions) != null && l.includes(t))) && (a.reactions ?? (a.reactions = [])).push(t);
@@ -787,7 +787,7 @@ function Dn(t) {
787
787
  ), a.wv > t.wv)
788
788
  return !0;
789
789
  }
790
- (!r || ve !== null && !pn) && At(t, lt);
790
+ (!r || ve !== null && !hn) && At(t, lt);
791
791
  }
792
792
  return !1;
793
793
  }
@@ -836,37 +836,37 @@ function gi(t, e, n = 0) {
836
836
  }
837
837
  }
838
838
  function mi(t) {
839
- var h;
840
- var e = mt, n = xt, r = Yt, s = De, a = pn, i = Mt, o = Ae, c = sn, l = t.f;
839
+ var p;
840
+ var e = mt, n = xt, r = Yt, s = De, a = hn, i = Mt, o = Ae, c = sn, l = t.f;
841
841
  mt = /** @type {null | Value[]} */
842
- null, xt = 0, Yt = null, De = l & (Bt | bn) ? null : t, pn = !Tn && (l & wn) !== 0, Mt = null, Ae = t.ctx, sn = !1, $r++;
842
+ null, xt = 0, Yt = null, De = l & (Bt | bn) ? null : t, hn = !Tn && (l & wn) !== 0, Mt = null, Ae = t.ctx, sn = !1, $r++;
843
843
  try {
844
844
  var u = (
845
845
  /** @type {Function} */
846
846
  (0, t.fn)()
847
847
  ), f = t.deps;
848
848
  if (mt !== null) {
849
- var p;
849
+ var h;
850
850
  if (Vn(t, xt), f !== null && xt > 0)
851
- for (f.length = xt + mt.length, p = 0; p < mt.length; p++)
852
- f[xt + p] = mt[p];
851
+ for (f.length = xt + mt.length, h = 0; h < mt.length; h++)
852
+ f[xt + h] = mt[h];
853
853
  else
854
854
  t.deps = f = mt;
855
- if (!pn)
856
- for (p = xt; p < f.length; p++)
857
- ((h = f[p]).reactions ?? (h.reactions = [])).push(t);
855
+ if (!hn)
856
+ for (h = xt; h < f.length; h++)
857
+ ((p = f[h]).reactions ?? (p.reactions = [])).push(t);
858
858
  } else f !== null && xt < f.length && (Vn(t, xt), f.length = xt);
859
859
  if (nr() && Yt !== null && !(t.f & (Tt | xn | Vt)))
860
- for (p = 0; p < /** @type {Source[]} */
861
- Yt.length; p++)
860
+ for (h = 0; h < /** @type {Source[]} */
861
+ Yt.length; h++)
862
862
  gi(
863
- Yt[p],
863
+ Yt[h],
864
864
  /** @type {Effect} */
865
865
  t
866
866
  );
867
867
  return s !== null && $r++, u;
868
868
  } finally {
869
- mt = e, xt = n, Yt = r, De = s, pn = a, Mt = i, Ae = o, sn = c;
869
+ mt = e, xt = n, Yt = r, De = s, hn = a, Mt = i, Ae = o, sn = c;
870
870
  }
871
871
  }
872
872
  function _l(t, e) {
@@ -902,7 +902,7 @@ function Nr(t) {
902
902
  try {
903
903
  e & Rr ? fl(t) : oi(t), ii(t), ai(t);
904
904
  var s = mi(t);
905
- t.teardown = typeof s == "function" ? s : null, t.wv = hi;
905
+ t.teardown = typeof s == "function" ? s : null, t.wv = pi;
906
906
  var a = t.deps, i;
907
907
  is && rl && t.f & Vt;
908
908
  } catch (o) {
@@ -964,7 +964,7 @@ function yl() {
964
964
  fn = [], wi(t), Wn || ($n = 0, Zn = null);
965
965
  }
966
966
  function Ur(t) {
967
- pr === pi && (Wn || (Wn = !0, queueMicrotask(yl))), Zn = t;
967
+ hr === hi && (Wn || (Wn = !0, queueMicrotask(yl))), Zn = t;
968
968
  for (var e = t; e.parent !== null; ) {
969
969
  e = e.parent;
970
970
  var n = e.f;
@@ -1014,15 +1014,15 @@ function xi(t, e) {
1014
1014
  c = r[u], e.push(c), xi(c, e);
1015
1015
  }
1016
1016
  function v(t) {
1017
- var e = pr, n = fn;
1017
+ var e = hr, n = fn;
1018
1018
  try {
1019
1019
  bi();
1020
1020
  const s = [];
1021
- pr = gl, fn = s, Wn = !1, wi(n);
1021
+ hr = gl, fn = s, Wn = !1, wi(n);
1022
1022
  var r = t == null ? void 0 : t();
1023
1023
  return vl(), (fn.length > 0 || s.length > 0) && v(), $n = 0, Zn = null, r;
1024
1024
  } finally {
1025
- pr = e, fn = n;
1025
+ hr = e, fn = n;
1026
1026
  }
1027
1027
  }
1028
1028
  async function es() {
@@ -1165,7 +1165,7 @@ function Tl(t, e) {
1165
1165
  }
1166
1166
  }
1167
1167
  function $l(t) {
1168
- he && /* @__PURE__ */ bt(t) !== null && Fs(t);
1168
+ pe && /* @__PURE__ */ bt(t) !== null && Fs(t);
1169
1169
  }
1170
1170
  let ua = !1;
1171
1171
  function _i() {
@@ -1203,7 +1203,7 @@ function yi(t, e, n, r = n) {
1203
1203
  s(), r(!0);
1204
1204
  } : t.__on_r = () => r(!0), _i();
1205
1205
  }
1206
- const zi = /* @__PURE__ */ new Set(), ps = /* @__PURE__ */ new Set();
1206
+ const zi = /* @__PURE__ */ new Set(), hs = /* @__PURE__ */ new Set();
1207
1207
  function Ti(t, e, n, r) {
1208
1208
  function s(a) {
1209
1209
  if (r.capture || Hn.call(e, a), !a.cancelBubble)
@@ -1222,7 +1222,7 @@ function en(t, e, n, r, s) {
1222
1222
  function un(t) {
1223
1223
  for (var e = 0; e < t.length; e++)
1224
1224
  zi.add(t[e]);
1225
- for (var n of ps)
1225
+ for (var n of hs)
1226
1226
  n(t);
1227
1227
  }
1228
1228
  function Hn(t) {
@@ -1257,7 +1257,7 @@ function Hn(t) {
1257
1257
  var u = De, f = ve;
1258
1258
  Ut(null), It(null);
1259
1259
  try {
1260
- for (var p, h = []; a !== null; ) {
1260
+ for (var h, p = []; a !== null; ) {
1261
1261
  var w = a.assignedSlot || a.parentNode || /** @type {any} */
1262
1262
  a.host || null;
1263
1263
  try {
@@ -1270,18 +1270,18 @@ function Hn(t) {
1270
1270
  } else
1271
1271
  x.call(a, t);
1272
1272
  } catch ($) {
1273
- p ? h.push($) : p = $;
1273
+ h ? p.push($) : h = $;
1274
1274
  }
1275
1275
  if (t.cancelBubble || w === e || w === null)
1276
1276
  break;
1277
1277
  a = w;
1278
1278
  }
1279
- if (p) {
1280
- for (let $ of h)
1279
+ if (h) {
1280
+ for (let $ of p)
1281
1281
  queueMicrotask(() => {
1282
1282
  throw $;
1283
1283
  });
1284
- throw p;
1284
+ throw h;
1285
1285
  }
1286
1286
  } finally {
1287
1287
  t.__root = e, delete t.currentTarget, Ut(u), It(f);
@@ -1303,7 +1303,7 @@ function Ct(t, e) {
1303
1303
  function F(t, e) {
1304
1304
  var n = (e & Co) !== 0, r = (e & Io) !== 0, s, a = !t.startsWith("<!>");
1305
1305
  return () => {
1306
- if (he)
1306
+ if (pe)
1307
1307
  return Ct(we, null), we;
1308
1308
  s === void 0 && (s = Os(a ? t : "<!>" + t), n || (s = /** @type {Node} */
1309
1309
  /* @__PURE__ */ bt(s)));
@@ -1329,7 +1329,7 @@ function F(t, e) {
1329
1329
  function Sl(t, e, n = "svg") {
1330
1330
  var r = !t.startsWith("<!>"), s = `<${n}>${r ? t : "<!>" + t}</${n}>`, a;
1331
1331
  return () => {
1332
- if (he)
1332
+ if (pe)
1333
1333
  return Ct(we, null), we;
1334
1334
  if (!a) {
1335
1335
  var i = (
@@ -1350,7 +1350,7 @@ function Sl(t, e, n = "svg") {
1350
1350
  };
1351
1351
  }
1352
1352
  function or(t = "") {
1353
- if (!he) {
1353
+ if (!pe) {
1354
1354
  var e = an(t + "");
1355
1355
  return Ct(e, e), e;
1356
1356
  }
@@ -1358,13 +1358,13 @@ function or(t = "") {
1358
1358
  return n.nodeType !== 3 && (n.before(n = an()), zt(n)), Ct(n, n), n;
1359
1359
  }
1360
1360
  function yt() {
1361
- if (he)
1361
+ if (pe)
1362
1362
  return Ct(we, null), we;
1363
1363
  var t = document.createDocumentFragment(), e = document.createComment(""), n = an();
1364
1364
  return t.append(e, n), Ct(e, n), t;
1365
1365
  }
1366
1366
  function E(t, e) {
1367
- if (he) {
1367
+ if (pe) {
1368
1368
  ve.nodes_end = we, Sn();
1369
1369
  return;
1370
1370
  }
@@ -1373,7 +1373,7 @@ function E(t, e) {
1373
1373
  e
1374
1374
  );
1375
1375
  }
1376
- let hs = !0;
1376
+ let ps = !0;
1377
1377
  function Se(t, e) {
1378
1378
  var n = e == null ? "" : typeof e == "object" ? e + "" : e;
1379
1379
  n !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = n, t.nodeValue = n == null ? "" : n + "");
@@ -1383,7 +1383,7 @@ function $i(t, e) {
1383
1383
  }
1384
1384
  function El(t, e) {
1385
1385
  cs(), e.intro = e.intro ?? !1;
1386
- const n = e.target, r = he, s = we;
1386
+ const n = e.target, r = pe, s = we;
1387
1387
  try {
1388
1388
  for (var a = (
1389
1389
  /** @type {TemplateNode} */
@@ -1416,45 +1416,45 @@ const yn = /* @__PURE__ */ new Map();
1416
1416
  function Si(t, { target: e, anchor: n, props: r = {}, events: s, context: a, intro: i = !0 }) {
1417
1417
  cs();
1418
1418
  var o = /* @__PURE__ */ new Set(), c = (f) => {
1419
- for (var p = 0; p < f.length; p++) {
1420
- var h = f[p];
1421
- if (!o.has(h)) {
1422
- o.add(h);
1423
- var w = Po(h);
1424
- e.addEventListener(h, Hn, { passive: w });
1425
- var x = yn.get(h);
1426
- x === void 0 ? (document.addEventListener(h, Hn, { passive: w }), yn.set(h, 1)) : yn.set(h, x + 1);
1419
+ for (var h = 0; h < f.length; h++) {
1420
+ var p = f[h];
1421
+ if (!o.has(p)) {
1422
+ o.add(p);
1423
+ var w = Po(p);
1424
+ e.addEventListener(p, Hn, { passive: w });
1425
+ var x = yn.get(p);
1426
+ x === void 0 ? (document.addEventListener(p, Hn, { passive: w }), yn.set(p, 1)) : yn.set(p, x + 1);
1427
1427
  }
1428
1428
  }
1429
1429
  };
1430
- c(Is(zi)), ps.add(c);
1430
+ c(Is(zi)), hs.add(c);
1431
1431
  var l = void 0, u = dl(() => {
1432
1432
  var f = n ?? e.appendChild(an());
1433
1433
  return En(() => {
1434
1434
  if (a) {
1435
1435
  ie({});
1436
- var p = (
1436
+ var h = (
1437
1437
  /** @type {ComponentContext} */
1438
1438
  Ae
1439
1439
  );
1440
- p.c = a;
1440
+ h.c = a;
1441
1441
  }
1442
- s && (r.$$events = s), he && Ct(
1442
+ s && (r.$$events = s), pe && Ct(
1443
1443
  /** @type {TemplateNode} */
1444
1444
  f,
1445
1445
  null
1446
- ), hs = i, l = t(f, r) || {}, hs = !0, he && (ve.nodes_end = we), a && oe();
1446
+ ), ps = i, l = t(f, r) || {}, ps = !0, pe && (ve.nodes_end = we), a && oe();
1447
1447
  }), () => {
1448
1448
  var w;
1449
- for (var p of o) {
1450
- e.removeEventListener(p, Hn);
1451
- var h = (
1449
+ for (var h of o) {
1450
+ e.removeEventListener(h, Hn);
1451
+ var p = (
1452
1452
  /** @type {number} */
1453
- yn.get(p)
1453
+ yn.get(h)
1454
1454
  );
1455
- --h === 0 ? (document.removeEventListener(p, Hn), yn.delete(p)) : yn.set(p, h);
1455
+ --p === 0 ? (document.removeEventListener(h, Hn), yn.delete(h)) : yn.set(h, p);
1456
1456
  }
1457
- ps.delete(c), f !== n && ((w = f.parentNode) == null || w.removeChild(f));
1457
+ hs.delete(c), f !== n && ((w = f.parentNode) == null || w.removeChild(f));
1458
1458
  };
1459
1459
  });
1460
1460
  return vs.set(l, u), l;
@@ -1465,29 +1465,29 @@ function Cl(t, e) {
1465
1465
  return n ? (vs.delete(t), n(e)) : Promise.resolve();
1466
1466
  }
1467
1467
  function X(t, e, n = !1) {
1468
- he && Sn();
1468
+ pe && Sn();
1469
1469
  var r = t, s = null, a = null, i = vt, o = n ? Dr : 0, c = !1;
1470
- const l = (f, p = !0) => {
1471
- c = !0, u(p, f);
1472
- }, u = (f, p) => {
1470
+ const l = (f, h = !0) => {
1471
+ c = !0, u(h, f);
1472
+ }, u = (f, h) => {
1473
1473
  if (i === (i = f)) return;
1474
- let h = !1;
1475
- if (he) {
1474
+ let p = !1;
1475
+ if (pe) {
1476
1476
  const w = (
1477
1477
  /** @type {Comment} */
1478
1478
  r.data === Es
1479
1479
  );
1480
- !!i === w && (r = ls(), zt(r), Wt(!1), h = !0);
1480
+ !!i === w && (r = ls(), zt(r), Wt(!1), p = !0);
1481
1481
  }
1482
- i ? (s ? yr(s) : p && (s = En(() => p(r))), a && kr(a, () => {
1482
+ i ? (s ? yr(s) : h && (s = En(() => h(r))), a && kr(a, () => {
1483
1483
  a = null;
1484
- })) : (a ? yr(a) : p && (a = En(() => p(r))), s && kr(s, () => {
1484
+ })) : (a ? yr(a) : h && (a = En(() => h(r))), s && kr(s, () => {
1485
1485
  s = null;
1486
- })), h && Wt(!0);
1486
+ })), p && Wt(!0);
1487
1487
  };
1488
1488
  Or(() => {
1489
1489
  c = !1, e(l), c || u(null, null);
1490
- }, o), he && (r = we);
1490
+ }, o), pe && (r = we);
1491
1491
  }
1492
1492
  function rt(t, e) {
1493
1493
  return e;
@@ -1521,30 +1521,30 @@ function st(t, e, n, r, s, a = null) {
1521
1521
  /** @type {Element} */
1522
1522
  t
1523
1523
  );
1524
- i = he ? zt(
1524
+ i = pe ? zt(
1525
1525
  /** @type {Comment | Text} */
1526
1526
  /* @__PURE__ */ bt(l)
1527
1527
  ) : l.appendChild(an());
1528
1528
  }
1529
- he && Sn();
1530
- var u = null, f = !1, p = /* @__PURE__ */ ei(() => {
1531
- var h = n();
1532
- return Fr(h) ? h : h == null ? [] : Is(h);
1529
+ pe && Sn();
1530
+ var u = null, f = !1, h = /* @__PURE__ */ ei(() => {
1531
+ var p = n();
1532
+ return Fr(p) ? p : p == null ? [] : Is(p);
1533
1533
  });
1534
1534
  Or(() => {
1535
- var h = d(p), w = h.length;
1535
+ var p = d(h), w = p.length;
1536
1536
  if (f && w === 0)
1537
1537
  return;
1538
1538
  f = w === 0;
1539
1539
  let x = !1;
1540
- if (he) {
1540
+ if (pe) {
1541
1541
  var k = (
1542
1542
  /** @type {Comment} */
1543
1543
  i.data === Es
1544
1544
  );
1545
1545
  k !== (w === 0) && (i = ls(), zt(i), Wt(!1), x = !0);
1546
1546
  }
1547
- if (he) {
1547
+ if (pe) {
1548
1548
  for (var b = null, _, $ = 0; $ < w; $++) {
1549
1549
  if (we.nodeType === 8 && /** @type {Comment} */
1550
1550
  we.data === Cs) {
@@ -1552,7 +1552,7 @@ function st(t, e, n, r, s, a = null) {
1552
1552
  we, x = !0, Wt(!1);
1553
1553
  break;
1554
1554
  }
1555
- var A = h[$], S = r(A, $);
1555
+ var A = p[$], S = r(A, $);
1556
1556
  _ = Ei(
1557
1557
  we,
1558
1558
  o,
@@ -1567,13 +1567,13 @@ function st(t, e, n, r, s, a = null) {
1567
1567
  }
1568
1568
  w > 0 && zt(ls());
1569
1569
  }
1570
- if (!he) {
1570
+ if (!pe) {
1571
1571
  var L = (
1572
1572
  /** @type {Effect} */
1573
1573
  De
1574
1574
  );
1575
1575
  Al(
1576
- h,
1576
+ p,
1577
1577
  o,
1578
1578
  i,
1579
1579
  s,
@@ -1584,20 +1584,20 @@ function st(t, e, n, r, s, a = null) {
1584
1584
  }
1585
1585
  a !== null && (w === 0 ? u ? yr(u) : u = En(() => a(i)) : u !== null && kr(u, () => {
1586
1586
  u = null;
1587
- })), x && Wt(!0), d(p);
1588
- }), he && (i = we);
1587
+ })), x && Wt(!0), d(h);
1588
+ }), pe && (i = we);
1589
1589
  }
1590
1590
  function Al(t, e, n, r, s, a, i, o) {
1591
1591
  var Xe, Qe, ct, ft;
1592
- var c = (s & xo) !== 0, l = (s & ($s | Ss)) !== 0, u = t.length, f = e.items, p = e.first, h = p, w, x = null, k, b = [], _ = [], $, A, S, L;
1592
+ var c = (s & xo) !== 0, l = (s & ($s | Ss)) !== 0, u = t.length, f = e.items, h = e.first, p = h, w, x = null, k, b = [], _ = [], $, A, S, L;
1593
1593
  if (c)
1594
1594
  for (L = 0; L < u; L += 1)
1595
1595
  $ = t[L], A = i($, L), S = f.get(A), S !== void 0 && ((Xe = S.a) == null || Xe.measure(), (k ?? (k = /* @__PURE__ */ new Set())).add(S));
1596
1596
  for (L = 0; L < u; L += 1) {
1597
1597
  if ($ = t[L], A = i($, L), S = f.get(A), S === void 0) {
1598
- var D = h ? (
1598
+ var D = p ? (
1599
1599
  /** @type {TemplateNode} */
1600
- h.e.nodes_start
1600
+ p.e.nodes_start
1601
1601
  ) : n;
1602
1602
  x = Ei(
1603
1603
  D,
@@ -1609,10 +1609,10 @@ function Al(t, e, n, r, s, a, i, o) {
1609
1609
  L,
1610
1610
  r,
1611
1611
  s
1612
- ), f.set(A, x), b = [], _ = [], h = x.next;
1612
+ ), f.set(A, x), b = [], _ = [], p = x.next;
1613
1613
  continue;
1614
1614
  }
1615
- if (l && Ll(S, $, L, s), S.e.f & Ot && (yr(S.e), c && ((Qe = S.a) == null || Qe.unfix(), (k ?? (k = /* @__PURE__ */ new Set())).delete(S))), S !== h) {
1615
+ if (l && Ll(S, $, L, s), S.e.f & Ot && (yr(S.e), c && ((Qe = S.a) == null || Qe.unfix(), (k ?? (k = /* @__PURE__ */ new Set())).delete(S))), S !== p) {
1616
1616
  if (w !== void 0 && w.has(S)) {
1617
1617
  if (b.length < _.length) {
1618
1618
  var M = _[0], G;
@@ -1622,22 +1622,22 @@ function Al(t, e, n, r, s, a, i, o) {
1622
1622
  da(b[G], M, n);
1623
1623
  for (G = 0; G < _.length; G += 1)
1624
1624
  w.delete(_[G]);
1625
- Qt(e, ge.prev, tt.next), Qt(e, x, ge), Qt(e, tt, M), h = M, x = tt, L -= 1, b = [], _ = [];
1625
+ Qt(e, ge.prev, tt.next), Qt(e, x, ge), Qt(e, tt, M), p = M, x = tt, L -= 1, b = [], _ = [];
1626
1626
  } else
1627
- w.delete(S), da(S, h, n), Qt(e, S.prev, S.next), Qt(e, S, x === null ? e.first : x.next), Qt(e, x, S), x = S;
1627
+ w.delete(S), da(S, p, n), Qt(e, S.prev, S.next), Qt(e, S, x === null ? e.first : x.next), Qt(e, x, S), x = S;
1628
1628
  continue;
1629
1629
  }
1630
- for (b = [], _ = []; h !== null && h.k !== A; )
1631
- (a || !(h.e.f & Ot)) && (w ?? (w = /* @__PURE__ */ new Set())).add(h), _.push(h), h = h.next;
1632
- if (h === null)
1630
+ for (b = [], _ = []; p !== null && p.k !== A; )
1631
+ (a || !(p.e.f & Ot)) && (w ?? (w = /* @__PURE__ */ new Set())).add(p), _.push(p), p = p.next;
1632
+ if (p === null)
1633
1633
  continue;
1634
- S = h;
1634
+ S = p;
1635
1635
  }
1636
- b.push(S), x = S, h = S.next;
1636
+ b.push(S), x = S, p = S.next;
1637
1637
  }
1638
- if (h !== null || w !== void 0) {
1639
- for (var Ee = w === void 0 ? [] : Is(w); h !== null; )
1640
- (a || !(h.e.f & Ot)) && Ee.push(h), h = h.next;
1638
+ if (p !== null || w !== void 0) {
1639
+ for (var Ee = w === void 0 ? [] : Is(w); p !== null; )
1640
+ (a || !(p.e.f & Ot)) && Ee.push(p), p = p.next;
1641
1641
  var Ce = Ee.length;
1642
1642
  if (Ce > 0) {
1643
1643
  var ae = s & Ua && u === 0 ? n : null;
@@ -1665,9 +1665,9 @@ function Ll(t, e, n, r) {
1665
1665
  ) : t.i = n;
1666
1666
  }
1667
1667
  function Ei(t, e, n, r, s, a, i, o, c, l) {
1668
- var u = (c & $s) !== 0, f = (c & _o) === 0, p = u ? f ? /* @__PURE__ */ jr(s) : gt(s) : s, h = c & Ss ? gt(i) : i, w = {
1669
- i: h,
1670
- v: p,
1668
+ var u = (c & $s) !== 0, f = (c & _o) === 0, h = u ? f ? /* @__PURE__ */ jr(s) : gt(s) : s, p = c & Ss ? gt(i) : i, w = {
1669
+ i: p,
1670
+ v: h,
1671
1671
  k: a,
1672
1672
  a: null,
1673
1673
  // @ts-expect-error
@@ -1676,7 +1676,7 @@ function Ei(t, e, n, r, s, a, i, o, c, l) {
1676
1676
  next: r
1677
1677
  };
1678
1678
  try {
1679
- return w.e = En(() => o(t, p, h), he), w.e.prev = n && n.e, w.e.next = r && r.e, n === null ? e.first = w : (n.next = w, n.e.next = w.e), r !== null && (r.prev = w, r.e.prev = w.e), w;
1679
+ return w.e = En(() => o(t, h, p), pe), w.e.prev = n && n.e, w.e.next = r && r.e, n === null ? e.first = w : (n.next = w, n.e.next = w.e), r !== null && (r.prev = w, r.e.prev = w.e), w;
1680
1680
  } finally {
1681
1681
  }
1682
1682
  }
@@ -1705,11 +1705,11 @@ function gs(t, e, n, r, s) {
1705
1705
  var a = t, i = "", o;
1706
1706
  Or(() => {
1707
1707
  if (i === (i = e() ?? "")) {
1708
- he && Sn();
1708
+ pe && Sn();
1709
1709
  return;
1710
1710
  }
1711
1711
  o !== void 0 && (Nt(o), o = void 0), i !== "" && (o = En(() => {
1712
- if (he) {
1712
+ if (pe) {
1713
1713
  we.data;
1714
1714
  for (var c = Sn(), l = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
1715
1715
  c.data !== ""); )
@@ -1776,7 +1776,7 @@ function qr(t) {
1776
1776
  return typeof t == "object" ? Fl(t) : t ?? "";
1777
1777
  }
1778
1778
  function Rl(t) {
1779
- if (he) {
1779
+ if (pe) {
1780
1780
  var e = !1, n = () => {
1781
1781
  if (!e) {
1782
1782
  if (e = !0, t.hasAttribute("value")) {
@@ -1789,7 +1789,7 @@ function Rl(t) {
1789
1789
  }
1790
1790
  }
1791
1791
  };
1792
- t.__on_r = n, hl(n), _i();
1792
+ t.__on_r = n, pl(n), _i();
1793
1793
  }
1794
1794
  }
1795
1795
  function Dl(t, e) {
@@ -1804,7 +1804,7 @@ function jl(t, e) {
1804
1804
  }
1805
1805
  function q(t, e, n, r) {
1806
1806
  var s = t.__attributes ?? (t.__attributes = {});
1807
- he && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Yo] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Ii(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1807
+ pe && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Yo] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Ii(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1808
1808
  }
1809
1809
  function fa(t, e, n, r, s = !1, a = !1, i = !1) {
1810
1810
  var o = e || {}, c = t.tagName === "OPTION";
@@ -1821,16 +1821,16 @@ function fa(t, e, n, r, s = !1, a = !1, i = !1) {
1821
1821
  t.value = t.__value = "", o[b] = _;
1822
1822
  continue;
1823
1823
  }
1824
- var p = o[b];
1825
- if (_ !== p) {
1824
+ var h = o[b];
1825
+ if (_ !== h) {
1826
1826
  o[b] = _;
1827
- var h = b[0] + b[1];
1828
- if (h !== "$$") {
1829
- if (h === "on") {
1827
+ var p = b[0] + b[1];
1828
+ if (p !== "$$") {
1829
+ if (p === "on") {
1830
1830
  const $ = {}, A = "$$" + b;
1831
1831
  let S = b.slice(2);
1832
1832
  var w = Fo(S);
1833
- if (Ao(S) && (S = S.slice(0, -7), $.capture = !0), !w && p) {
1833
+ if (Ao(S) && (S = S.slice(0, -7), $.capture = !0), !w && h) {
1834
1834
  if (_ != null) continue;
1835
1835
  t.removeEventListener(S, o[A], $), o[A] = null;
1836
1836
  }
@@ -1879,7 +1879,7 @@ function fa(t, e, n, r, s = !1, a = !1, i = !1) {
1879
1879
  }
1880
1880
  } else
1881
1881
  t.removeAttribute(b);
1882
- else k || u.includes(x) && (a || typeof _ != "string") ? t[x] = _ : typeof _ != "function" && (he && (x === "src" || x === "href" || x === "srcset") || q(t, x, _));
1882
+ else k || u.includes(x) && (a || typeof _ != "string") ? t[x] = _ : typeof _ != "function" && (pe && (x === "src" || x === "href" || x === "srcset") || q(t, x, _));
1883
1883
  }
1884
1884
  b === "style" && "__styles" in t && (t.__styles = {});
1885
1885
  }
@@ -1887,11 +1887,11 @@ function fa(t, e, n, r, s = !1, a = !1, i = !1) {
1887
1887
  }
1888
1888
  return o;
1889
1889
  }
1890
- var pa = /* @__PURE__ */ new Map();
1890
+ var ha = /* @__PURE__ */ new Map();
1891
1891
  function Ii(t) {
1892
- var e = pa.get(t.nodeName);
1892
+ var e = ha.get(t.nodeName);
1893
1893
  if (e) return e;
1894
- pa.set(t.nodeName, e = []);
1894
+ ha.set(t.nodeName, e = []);
1895
1895
  for (var n, r = t, s = Element.prototype; s !== r; ) {
1896
1896
  n = Ha(r);
1897
1897
  for (var a in n)
@@ -1902,7 +1902,7 @@ function Ii(t) {
1902
1902
  }
1903
1903
  function ut(t, e, n) {
1904
1904
  var r = t.__className, s = Pl(e, n);
1905
- he && t.className === s ? t.__className = s : (r !== s || he && t.className !== s) && (e == null && !n ? t.removeAttribute("class") : t.className = s, t.__className = s);
1905
+ pe && t.className === s ? t.__className = s : (r !== s || pe && t.className !== s) && (e == null && !n ? t.removeAttribute("class") : t.className = s, t.__className = s);
1906
1906
  }
1907
1907
  function Pl(t, e) {
1908
1908
  return (t ?? "") + (e ? " " + e : "");
@@ -1957,7 +1957,7 @@ function Nl(t) {
1957
1957
  (n) => n[0].toUpperCase() + n.slice(1)
1958
1958
  ).join("");
1959
1959
  }
1960
- function ha(t) {
1960
+ function pa(t) {
1961
1961
  const e = {}, n = t.split(";");
1962
1962
  for (const r of n) {
1963
1963
  const [s, a] = r.split(":");
@@ -1969,7 +1969,7 @@ function ha(t) {
1969
1969
  }
1970
1970
  const Ul = (t) => t;
1971
1971
  function Rt(t, e, n, r) {
1972
- var s = (t & $o) !== 0, a = (t & So) !== 0, i = s && a, o = (t & Eo) !== 0, c = i ? "both" : s ? "in" : "out", l, u = e.inert, f = e.style.overflow, p, h;
1972
+ var s = (t & $o) !== 0, a = (t & So) !== 0, i = s && a, o = (t & Eo) !== 0, c = i ? "both" : s ? "in" : "out", l, u = e.inert, f = e.style.overflow, h, p;
1973
1973
  function w() {
1974
1974
  var $ = De, A = ve;
1975
1975
  Ut(null), It(null);
@@ -1987,11 +1987,11 @@ function Rt(t, e, n, r) {
1987
1987
  in() {
1988
1988
  var $;
1989
1989
  if (e.inert = u, !s) {
1990
- h == null || h.abort(), ($ = h == null ? void 0 : h.reset) == null || $.call(h);
1990
+ p == null || p.abort(), ($ = p == null ? void 0 : p.reset) == null || $.call(p);
1991
1991
  return;
1992
1992
  }
1993
- a || p == null || p.abort(), lr(e, "introstart"), p = ms(e, w(), h, 1, () => {
1994
- lr(e, "introend"), p == null || p.abort(), p = l = void 0, e.style.overflow = f;
1993
+ a || h == null || h.abort(), lr(e, "introstart"), h = ms(e, w(), p, 1, () => {
1994
+ lr(e, "introend"), h == null || h.abort(), h = l = void 0, e.style.overflow = f;
1995
1995
  });
1996
1996
  },
1997
1997
  out($) {
@@ -1999,18 +1999,18 @@ function Rt(t, e, n, r) {
1999
1999
  $ == null || $(), l = void 0;
2000
2000
  return;
2001
2001
  }
2002
- e.inert = !0, lr(e, "outrostart"), h = ms(e, w(), p, 0, () => {
2002
+ e.inert = !0, lr(e, "outrostart"), p = ms(e, w(), h, 0, () => {
2003
2003
  lr(e, "outroend"), $ == null || $();
2004
2004
  });
2005
2005
  },
2006
2006
  stop: () => {
2007
- p == null || p.abort(), h == null || h.abort();
2007
+ h == null || h.abort(), p == null || p.abort();
2008
2008
  }
2009
2009
  }, k = (
2010
2010
  /** @type {Effect} */
2011
2011
  ve
2012
2012
  );
2013
- if ((k.transitions ?? (k.transitions = [])).push(x), s && hs) {
2013
+ if ((k.transitions ?? (k.transitions = [])).push(x), s && ps) {
2014
2014
  var b = o;
2015
2015
  if (!b) {
2016
2016
  for (var _ = (
@@ -2052,12 +2052,12 @@ function ms(t, e, n, r, s) {
2052
2052
  t: () => r
2053
2053
  };
2054
2054
  const { delay: c = 0, css: l, tick: u, easing: f = Ul } = e;
2055
- var p = [];
2055
+ var h = [];
2056
2056
  if (a && n === void 0 && (u && u(0, 1), l)) {
2057
- var h = ha(l(0, 1));
2058
- p.push(h, h);
2057
+ var p = pa(l(0, 1));
2058
+ h.push(p, p);
2059
2059
  }
2060
- var w = () => 1 - r, x = t.animate(p, { duration: c });
2060
+ var w = () => 1 - r, x = t.animate(h, { duration: c });
2061
2061
  return x.onfinish = () => {
2062
2062
  var k = (n == null ? void 0 : n.t()) ?? 1 - r;
2063
2063
  n == null || n.abort();
@@ -2069,7 +2069,7 @@ function ms(t, e, n, r, s) {
2069
2069
  var A = !1;
2070
2070
  if (l)
2071
2071
  for (var S = Math.ceil(_ / 16.666666666666668), L = 0; L <= S; L += 1) {
2072
- var D = k + b * f(L / S), M = ha(l(D, 1 - D));
2072
+ var D = k + b * f(L / S), M = pa(l(D, 1 - D));
2073
2073
  $.push(M), A || (A = M.overflow === "hidden");
2074
2074
  }
2075
2075
  A && (t.style.overflow = "hidden"), w = () => {
@@ -2111,7 +2111,7 @@ function ql(t, e, n = e) {
2111
2111
  }
2112
2112
  }), // If we are hydrating and the value has since changed,
2113
2113
  // then use the updated value from the input instead.
2114
- (he && t.defaultValue !== t.value || // If defaultValue is set, then value == defaultValue
2114
+ (pe && t.defaultValue !== t.value || // If defaultValue is set, then value == defaultValue
2115
2115
  // TODO Svelte 6: remove input.value check and set to empty string?
2116
2116
  qt(e) == null && t.value) && n(ts(t) ? ns(t.value) : t.value), Fn(() => {
2117
2117
  var s = e();
@@ -2352,14 +2352,14 @@ function g(t, e, n, r) {
2352
2352
  t[e]
2353
2353
  )) : l = /** @type {V} */
2354
2354
  t[e];
2355
- var u = Zt in t || Wa in t, f = i && (((D = hn(t, e)) == null ? void 0 : D.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, p = (
2355
+ var u = Zt in t || Wa in t, f = i && (((D = pn(t, e)) == null ? void 0 : D.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, h = (
2356
2356
  /** @type {V} */
2357
2357
  r
2358
- ), h = !0, w = !1, x = () => (w = !0, h && (h = !1, o ? p = qt(
2358
+ ), p = !0, w = !1, x = () => (w = !0, p && (p = !1, o ? h = qt(
2359
2359
  /** @type {() => V} */
2360
2360
  r
2361
- ) : p = /** @type {V} */
2362
- r), p);
2361
+ ) : h = /** @type {V} */
2362
+ r), h);
2363
2363
  l === void 0 && r !== void 0 && (f && a && Qo(), l = x(), f && f(l));
2364
2364
  var k;
2365
2365
  if (a)
@@ -2368,7 +2368,7 @@ function g(t, e, n, r) {
2368
2368
  /** @type {V} */
2369
2369
  t[e]
2370
2370
  );
2371
- return M === void 0 ? x() : (h = !0, w = !1, M);
2371
+ return M === void 0 ? x() : (p = !0, w = !1, M);
2372
2372
  };
2373
2373
  else {
2374
2374
  var b = ma(
@@ -2379,8 +2379,8 @@ function g(t, e, n, r) {
2379
2379
  );
2380
2380
  b.f |= Bo, k = () => {
2381
2381
  var M = d(b);
2382
- return M !== void 0 && (p = /** @type {V} */
2383
- void 0), M === void 0 ? p : M;
2382
+ return M !== void 0 && (h = /** @type {V} */
2383
+ void 0), M === void 0 ? h : M;
2384
2384
  };
2385
2385
  }
2386
2386
  if (!(n & qa))
@@ -2400,7 +2400,7 @@ function g(t, e, n, r) {
2400
2400
  return s || (L.equals = Ls), function(M, G) {
2401
2401
  if (arguments.length > 0) {
2402
2402
  const ge = G ? d(L) : a && i ? C(M) : M;
2403
- return L.equals(ge) || ($ = !0, m(S, ge), w && p !== void 0 && (p = ge), qt(() => d(L))), M;
2403
+ return L.equals(ge) || ($ = !0, m(S, ge), w && h !== void 0 && (h = ge), qt(() => d(L))), M;
2404
2404
  }
2405
2405
  return d(L);
2406
2406
  };
@@ -2447,27 +2447,27 @@ class Kl {
2447
2447
  intro: e.intro ?? !1,
2448
2448
  recover: e.recover
2449
2449
  })), (!((a = e == null ? void 0 : e.props) != null && a.$$host) || e.sync === !1) && v(), Qr(this, Gt, s.$$events);
2450
- for (const i of Object.keys(ht(this, $t)))
2450
+ for (const i of Object.keys(pt(this, $t)))
2451
2451
  i === "$set" || i === "$destroy" || i === "$on" || br(this, i, {
2452
2452
  get() {
2453
- return ht(this, $t)[i];
2453
+ return pt(this, $t)[i];
2454
2454
  },
2455
2455
  /** @param {any} value */
2456
2456
  set(o) {
2457
- ht(this, $t)[i] = o;
2457
+ pt(this, $t)[i] = o;
2458
2458
  },
2459
2459
  enumerable: !0
2460
2460
  });
2461
- ht(this, $t).$set = /** @param {Record<string, any>} next */
2461
+ pt(this, $t).$set = /** @param {Record<string, any>} next */
2462
2462
  (i) => {
2463
2463
  Object.assign(s, i);
2464
- }, ht(this, $t).$destroy = () => {
2465
- Cl(ht(this, $t));
2464
+ }, pt(this, $t).$destroy = () => {
2465
+ Cl(pt(this, $t));
2466
2466
  };
2467
2467
  }
2468
2468
  /** @param {Record<string, any>} props */
2469
2469
  $set(e) {
2470
- ht(this, $t).$set(e);
2470
+ pt(this, $t).$set(e);
2471
2471
  }
2472
2472
  /**
2473
2473
  * @param {string} event
@@ -2475,17 +2475,17 @@ class Kl {
2475
2475
  * @returns {any}
2476
2476
  */
2477
2477
  $on(e, n) {
2478
- ht(this, Gt)[e] = ht(this, Gt)[e] || [];
2478
+ pt(this, Gt)[e] = pt(this, Gt)[e] || [];
2479
2479
  const r = (...s) => n.call(this, ...s);
2480
- return ht(this, Gt)[e].push(r), () => {
2481
- ht(this, Gt)[e] = ht(this, Gt)[e].filter(
2480
+ return pt(this, Gt)[e].push(r), () => {
2481
+ pt(this, Gt)[e] = pt(this, Gt)[e].filter(
2482
2482
  /** @param {any} fn */
2483
2483
  (s) => s !== r
2484
2484
  );
2485
2485
  };
2486
2486
  }
2487
2487
  $destroy() {
2488
- ht(this, $t).$destroy();
2488
+ pt(this, $t).$destroy();
2489
2489
  }
2490
2490
  }
2491
2491
  Gt = new WeakMap(), $t = new WeakMap();
@@ -2558,7 +2558,7 @@ typeof HTMLElement == "function" && (Ri = class extends HTMLElement {
2558
2558
  s in r && (s === "default" && !this.$$d.children ? (this.$$d.children = e(s), n.default = !0) : n[s] = e(s));
2559
2559
  for (const s of this.attributes) {
2560
2560
  const a = this.$$g_p(s.name);
2561
- a in this.$$d || (this.$$d[a] = hr(a, s.value, this.$$p_d, "toProp"));
2561
+ a in this.$$d || (this.$$d[a] = pr(a, s.value, this.$$p_d, "toProp"));
2562
2562
  }
2563
2563
  for (const s in this.$$p_d)
2564
2564
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
@@ -2577,7 +2577,7 @@ typeof HTMLElement == "function" && (Ri = class extends HTMLElement {
2577
2577
  for (const a of mr(this.$$c)) {
2578
2578
  if (!((s = this.$$p_d[a]) != null && s.reflect)) continue;
2579
2579
  this.$$d[a] = this.$$c[a];
2580
- const i = hr(
2580
+ const i = pr(
2581
2581
  a,
2582
2582
  this.$$d[a],
2583
2583
  this.$$p_d,
@@ -2605,7 +2605,7 @@ typeof HTMLElement == "function" && (Ri = class extends HTMLElement {
2605
2605
  */
2606
2606
  attributeChangedCallback(e, n, r) {
2607
2607
  var s;
2608
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = hr(e, r, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [e]: this.$$d[e] }));
2608
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = pr(e, r, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [e]: this.$$d[e] }));
2609
2609
  }
2610
2610
  disconnectedCallback() {
2611
2611
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2621,7 +2621,7 @@ typeof HTMLElement == "function" && (Ri = class extends HTMLElement {
2621
2621
  ) || e;
2622
2622
  }
2623
2623
  });
2624
- function hr(t, e, n, r) {
2624
+ function pr(t, e, n, r) {
2625
2625
  var a;
2626
2626
  const s = (a = n[t]) == null ? void 0 : a.type;
2627
2627
  if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !r || !n[t])
@@ -2678,10 +2678,10 @@ function le(t, e, n, r, s, a) {
2678
2678
  },
2679
2679
  set(c) {
2680
2680
  var f;
2681
- c = hr(o, c, e), this.$$d[o] = c;
2681
+ c = pr(o, c, e), this.$$d[o] = c;
2682
2682
  var l = this.$$c;
2683
2683
  if (l) {
2684
- var u = (f = hn(l, o)) == null ? void 0 : f.get;
2684
+ var u = (f = pn(l, o)) == null ? void 0 : f.get;
2685
2685
  u ? l[o] = c : l.$set({ [o]: c });
2686
2686
  }
2687
2687
  }
@@ -2719,13 +2719,13 @@ function tn(t, { delay: e = 0, duration: n = 400, easing: r = tc } = {}) {
2719
2719
  };
2720
2720
  }
2721
2721
  function nc(t, { delay: e = 0, duration: n = 400, easing: r = Ms, x: s = 0, y: a = 0, opacity: i = 0 } = {}) {
2722
- const o = getComputedStyle(t), c = +o.opacity, l = o.transform === "none" ? "" : o.transform, u = c * (1 - i), [f, p] = ba(s), [h, w] = ba(a);
2722
+ const o = getComputedStyle(t), c = +o.opacity, l = o.transform === "none" ? "" : o.transform, u = c * (1 - i), [f, h] = ba(s), [p, w] = ba(a);
2723
2723
  return {
2724
2724
  delay: e,
2725
2725
  duration: n,
2726
2726
  easing: r,
2727
2727
  css: (x, k) => `
2728
- transform: ${l} translate(${(1 - x) * f}${p}, ${(1 - x) * h}${w});
2728
+ transform: ${l} translate(${(1 - x) * f}${h}, ${(1 - x) * p}${w});
2729
2729
  opacity: ${c - u * k}`
2730
2730
  };
2731
2731
  }
@@ -2735,7 +2735,7 @@ function rc(t, { delay: e = 0, duration: n = 400, easing: r = Ms, axis: s = "y"
2735
2735
  /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
2736
2736
  `${b[0].toUpperCase()}${b.slice(1)}`
2737
2737
  )
2738
- ), f = parseFloat(a[`padding${u[0]}`]), p = parseFloat(a[`padding${u[1]}`]), h = parseFloat(a[`margin${u[0]}`]), w = parseFloat(a[`margin${u[1]}`]), x = parseFloat(
2738
+ ), f = parseFloat(a[`padding${u[0]}`]), h = parseFloat(a[`padding${u[1]}`]), p = parseFloat(a[`margin${u[0]}`]), w = parseFloat(a[`margin${u[1]}`]), x = parseFloat(
2739
2739
  a[`border${u[0]}Width`]
2740
2740
  ), k = parseFloat(
2741
2741
  a[`border${u[1]}Width`]
@@ -2744,7 +2744,7 @@ function rc(t, { delay: e = 0, duration: n = 400, easing: r = Ms, axis: s = "y"
2744
2744
  delay: e,
2745
2745
  duration: n,
2746
2746
  easing: r,
2747
- css: (b) => `overflow: hidden;opacity: ${Math.min(b * 20, 1) * i};${o}: ${b * c}px;padding-${l[0]}: ${b * f}px;padding-${l[1]}: ${b * p}px;margin-${l[0]}: ${b * h}px;margin-${l[1]}: ${b * w}px;border-${l[0]}-width: ${b * x}px;border-${l[1]}-width: ${b * k}px;min-${o}: 0`
2747
+ css: (b) => `overflow: hidden;opacity: ${Math.min(b * 20, 1) * i};${o}: ${b * c}px;padding-${l[0]}: ${b * f}px;padding-${l[1]}: ${b * h}px;margin-${l[0]}: ${b * p}px;margin-${l[1]}: ${b * w}px;border-${l[0]}-width: ${b * x}px;border-${l[1]}-width: ${b * k}px;min-${o}: 0`
2748
2748
  };
2749
2749
  }
2750
2750
  function sc(t, { delay: e = 0, duration: n = 400, easing: r = Ms, start: s = 0, opacity: a = 0 } = {}) {
@@ -2753,9 +2753,9 @@ function sc(t, { delay: e = 0, duration: n = 400, easing: r = Ms, start: s = 0,
2753
2753
  delay: e,
2754
2754
  duration: n,
2755
2755
  easing: r,
2756
- css: (f, p) => `
2757
- transform: ${c} scale(${1 - l * p});
2758
- opacity: ${o - u * p}
2756
+ css: (f, h) => `
2757
+ transform: ${c} scale(${1 - l * h});
2758
+ opacity: ${o - u * h}
2759
2759
  `
2760
2760
  };
2761
2761
  }
@@ -2897,7 +2897,7 @@ function wa(t) {
2897
2897
  function lc(t) {
2898
2898
  return ic.includes(t);
2899
2899
  }
2900
- const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", fc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Carica file", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", xc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, _c = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", Dc = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", Pc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", Mc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", qc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia elenco fonti", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti copiate!", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Copiato!", Gc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Hai raggiunto il numero massimo di ${t.count} allegati consentiti.`, Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun gendoc trovato", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna trascrizione trovata", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "Trascina i file qui", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Caricamento in corso...", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "Operazione in corso... Non è possibile inviare messaggi in questa chat fino al completamento.", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", eu = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", tu = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", nu = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", su = /* @__NO_SIDE_EFFECTS__ */ () => "Upload file", au = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", ou = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", lu = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", cu = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, uu = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", du = /* @__NO_SIDE_EFFECTS__ */ () => "History", fu = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", pu = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", hu = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", vu = /* @__NO_SIDE_EFFECTS__ */ () => "Close", gu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", mu = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", bu = /* @__NO_SIDE_EFFECTS__ */ () => "Search", wu = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", xu = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", _u = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", ku = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", yu = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", zu = /* @__NO_SIDE_EFFECTS__ */ () => "Play", Tu = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", $u = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", Su = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", Eu = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", Cu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", Iu = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", Au = /* @__NO_SIDE_EFFECTS__ */ () => "Copy sources list", Lu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources copied!", Fu = /* @__NO_SIDE_EFFECTS__ */ () => "Copy", Ru = /* @__NO_SIDE_EFFECTS__ */ () => "Copied!", Du = /* @__NO_SIDE_EFFECTS__ */ (t) => `You have reached the maximum number of ${t.count} attachments allowed.`, ju = /* @__NO_SIDE_EFFECTS__ */ () => "No gendoc found", Pu = /* @__NO_SIDE_EFFECTS__ */ () => "No transcription found", Ou = /* @__NO_SIDE_EFFECTS__ */ () => "Drop files here", Mu = /* @__NO_SIDE_EFFECTS__ */ () => "Uploading...", Nu = /* @__NO_SIDE_EFFECTS__ */ () => "Operation in progress... You cannot send messages in this chat until completion.", Uu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2900
+ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", fc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Carica file", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", xc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, _c = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", Dc = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", Pc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", Mc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", qc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia elenco fonti", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti copiate!", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Copiato!", Gc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Hai raggiunto il numero massimo di ${t.count} allegati consentiti.`, Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun gendoc trovato", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna trascrizione trovata", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "Trascina i file qui", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Caricamento in corso...", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "Operazione in corso... Non è possibile inviare messaggi in questa chat fino al completamento.", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", eu = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", tu = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", nu = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", su = /* @__NO_SIDE_EFFECTS__ */ () => "Upload file", au = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", ou = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", lu = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", cu = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, uu = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", du = /* @__NO_SIDE_EFFECTS__ */ () => "History", fu = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", hu = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", pu = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", vu = /* @__NO_SIDE_EFFECTS__ */ () => "Close", gu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", mu = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", bu = /* @__NO_SIDE_EFFECTS__ */ () => "Search", wu = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", xu = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", _u = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", ku = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", yu = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", zu = /* @__NO_SIDE_EFFECTS__ */ () => "Play", Tu = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", $u = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", Su = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", Eu = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", Cu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", Iu = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", Au = /* @__NO_SIDE_EFFECTS__ */ () => "Copy sources list", Lu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources copied!", Fu = /* @__NO_SIDE_EFFECTS__ */ () => "Copy", Ru = /* @__NO_SIDE_EFFECTS__ */ () => "Copied!", Du = /* @__NO_SIDE_EFFECTS__ */ (t) => `You have reached the maximum number of ${t.count} attachments allowed.`, ju = /* @__NO_SIDE_EFFECTS__ */ () => "No gendoc found", Pu = /* @__NO_SIDE_EFFECTS__ */ () => "No transcription found", Ou = /* @__NO_SIDE_EFFECTS__ */ () => "Drop files here", Mu = /* @__NO_SIDE_EFFECTS__ */ () => "Uploading...", Nu = /* @__NO_SIDE_EFFECTS__ */ () => "Operation in progress... You cannot send messages in this chat until completion.", Uu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2901
2901
  en: Qc,
2902
2902
  it: cc
2903
2903
  })[e.languageTag ?? Q()](), qu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -2911,10 +2911,10 @@ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_
2911
2911
  it: fc
2912
2912
  })[e.languageTag ?? Q()](), Yu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2913
2913
  en: nu,
2914
- it: pc
2914
+ it: hc
2915
2915
  })[e.languageTag ?? Q()](), Gu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2916
2916
  en: ru,
2917
- it: hc
2917
+ it: pc
2918
2918
  })[e.languageTag ?? Q()](), Ju = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2919
2919
  en: su,
2920
2920
  it: vc
@@ -2943,10 +2943,10 @@ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_
2943
2943
  en: fu,
2944
2944
  it: yc
2945
2945
  })[e.languageTag ?? Q()](), ed = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2946
- en: pu,
2946
+ en: hu,
2947
2947
  it: zc
2948
2948
  })[e.languageTag ?? Q()](), td = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2949
- en: hu,
2949
+ en: pu,
2950
2950
  it: Tc
2951
2951
  })[e.languageTag ?? Q()](), nd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2952
2952
  en: vu,
@@ -2993,13 +2993,13 @@ const cc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", uc = /* @__NO_SIDE_
2993
2993
  })[e.languageTag ?? Q()](), fd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2994
2994
  en: Cu,
2995
2995
  it: Nc
2996
- })[e.languageTag ?? Q()](), pd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2996
+ })[e.languageTag ?? Q()](), hd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2997
2997
  en: Iu,
2998
2998
  it: Uc
2999
2999
  })[e.languageTag ?? Q()](), rs = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3000
3000
  en: Au,
3001
3001
  it: qc
3002
- })[e.languageTag ?? Q()](), hd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3002
+ })[e.languageTag ?? Q()](), pd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3003
3003
  en: Lu,
3004
3004
  it: Bc
3005
3005
  })[e.languageTag ?? Q()](), vd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -3044,11 +3044,11 @@ function Pi(t, e) {
3044
3044
  let n = g(e, "show", 15, !1), r = g(e, "showHistory", 15), s = g(e, "actChat", 15), a = g(e, "muted", 15), i = g(e, "languageSelected", 15), o = g(e, "username", 15), c = g(e, "error", 15), l = g(e, "newChat", 7);
3045
3045
  Br(() => {
3046
3046
  });
3047
- var u = Ed(), f = T(u), p = T(f), h = O(T(p), 2), w = T(h);
3047
+ var u = Ed(), f = T(u), h = T(f), p = O(T(h), 2), w = T(p);
3048
3048
  w.value = (w.__value = "it") == null ? "" : "it";
3049
3049
  var x = O(w);
3050
- x.value = (x.__value = "en") == null ? "" : "en", y(h), y(p);
3051
- var k = O(p, 2), b = T(k);
3050
+ x.value = (x.__value = "en") == null ? "" : "en", y(p), y(h);
3051
+ var k = O(h, 2), b = T(k);
3052
3052
  {
3053
3053
  var _ = (D) => {
3054
3054
  var M = yd();
@@ -3084,7 +3084,7 @@ function Pi(t, e) {
3084
3084
  () => /* @__PURE__ */ td(),
3085
3085
  () => /* @__PURE__ */ nd()
3086
3086
  ]
3087
- ), Fi(h, i), Rt(3, u, () => tn, () => ({ duration: 300 })), E(t, u), oe({
3087
+ ), Fi(p, i), Rt(3, u, () => tn, () => ({ duration: 300 })), E(t, u), oe({
3088
3088
  get show() {
3089
3089
  return n();
3090
3090
  },
@@ -3230,7 +3230,7 @@ const Id = () => {
3230
3230
  setForgeButtonsPinned: Od
3231
3231
  };
3232
3232
  class on {
3233
- constructor(e, n, r, s, a, i, o, c = "", l = !1, u = (/* @__PURE__ */ new Date()).getTime(), f = "loading", p = "") {
3233
+ constructor(e, n, r, s, a, i, o, c = "", l = !1, u = (/* @__PURE__ */ new Date()).getTime(), f = "loading", h = "") {
3234
3234
  I(this, "_id");
3235
3235
  I(this, "title");
3236
3236
  I(this, "companyId");
@@ -3243,7 +3243,7 @@ class on {
3243
3243
  I(this, "hash");
3244
3244
  I(this, "checked");
3245
3245
  I(this, "path");
3246
- this._id = e, this.title = n, this.companyId = r, this.private = s, this.externalId = a, this.idArchivio = i, this.hash = o, this.gendocId = c, this.isCommon = l, this.createdAt = u, this.checked = f, this.path = p;
3246
+ this._id = e, this.title = n, this.companyId = r, this.private = s, this.externalId = a, this.idArchivio = i, this.hash = o, this.gendocId = c, this.isCommon = l, this.createdAt = u, this.checked = f, this.path = h;
3247
3247
  }
3248
3248
  toJson() {
3249
3249
  return {
@@ -3306,7 +3306,7 @@ class ln {
3306
3306
  }
3307
3307
  }
3308
3308
  class gn {
3309
- constructor(e, n, r, s, a, i, o, c = 0, l = !1, u = 40, f = !1, p = "") {
3309
+ constructor(e, n, r, s, a, i, o, c = 0, l = !1, u = 40, f = !1, h = "") {
3310
3310
  I(this, "_id", "");
3311
3311
  I(this, "path", "");
3312
3312
  I(this, "name");
@@ -3323,7 +3323,7 @@ class gn {
3323
3323
  I(this, "minLevel", 40);
3324
3324
  I(this, "cancellato", !1);
3325
3325
  I(this, "altTitle", "");
3326
- this._id = e, this.path = n, this.name = r, this.userId = s, this.companyId = a, this.isPrivate = i, this.isTemplate = o, this.suiteId = c, this.createdAt = Date.now(), this.updatedAt = Date.now(), this.excludeFromDocumentale = l, this.minLevel = u, this.cancellato = f, this.altTitle = p;
3326
+ this._id = e, this.path = n, this.name = r, this.userId = s, this.companyId = a, this.isPrivate = i, this.isTemplate = o, this.suiteId = c, this.createdAt = Date.now(), this.updatedAt = Date.now(), this.excludeFromDocumentale = l, this.minLevel = u, this.cancellato = f, this.altTitle = h;
3327
3327
  }
3328
3328
  static fromJSON(e) {
3329
3329
  return new gn(
@@ -3512,8 +3512,8 @@ const Yd = async (t) => {
3512
3512
  });
3513
3513
  if (!f.ok)
3514
3514
  throw new Error(`Failed to fetch document: ${f.status} - ${f.statusText}`);
3515
- let p = await f.json();
3516
- console.log("FILE FOUND", p), i = i.replace(".akd", ".pdf"), o = p.result[0].file_content;
3515
+ let h = await f.json();
3516
+ console.log("FILE FOUND", h), i = i.replace(".akd", ".pdf"), o = h.result[0].file_content;
3517
3517
  }
3518
3518
  const c = Uint8Array.from(atob(o), (u) => u.charCodeAt(0)), l = new Blob([c], { type: "application/octet-stream" });
3519
3519
  return new File([l], i);
@@ -3797,69 +3797,69 @@ const cf = {
3797
3797
  function uf(t, e) {
3798
3798
  ie(e, !1), de(t, cf);
3799
3799
  let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), s = g(e, "pause", 12, !1), a = g(e, "colorOuter", 12, "#FF3E00"), i = g(e, "colorCenter", 12, "#40B3FF"), o = g(e, "colorInner", 12, "#676778"), c = g(e, "durationMultiplier", 12, 1), l = g(e, "durationOuter", 28, () => `${c() * 2}s`), u = g(e, "durationInner", 28, () => `${c() * 1.5}s`), f = g(e, "durationCenter", 28, () => `${c() * 3}s`);
3800
- var p = lf();
3800
+ var h = lf();
3801
3801
  return P(() => {
3802
- q(p, "style", `--size: ${n() ?? ""}${r() ?? ""}; --colorInner: ${o() ?? ""}; --colorCenter: ${i() ?? ""}; --colorOuter: ${a() ?? ""}; --durationInner: ${u() ?? ""}; --durationCenter: ${f() ?? ""}; --durationOuter: ${l() ?? ""};`), ue(p, "pause-animation", s());
3803
- }), E(t, p), oe({
3802
+ q(h, "style", `--size: ${n() ?? ""}${r() ?? ""}; --colorInner: ${o() ?? ""}; --colorCenter: ${i() ?? ""}; --colorOuter: ${a() ?? ""}; --durationInner: ${u() ?? ""}; --durationCenter: ${f() ?? ""}; --durationOuter: ${l() ?? ""};`), ue(h, "pause-animation", s());
3803
+ }), E(t, h), oe({
3804
3804
  get size() {
3805
3805
  return n();
3806
3806
  },
3807
- set size(h) {
3808
- n(h), v();
3807
+ set size(p) {
3808
+ n(p), v();
3809
3809
  },
3810
3810
  get unit() {
3811
3811
  return r();
3812
3812
  },
3813
- set unit(h) {
3814
- r(h), v();
3813
+ set unit(p) {
3814
+ r(p), v();
3815
3815
  },
3816
3816
  get pause() {
3817
3817
  return s();
3818
3818
  },
3819
- set pause(h) {
3820
- s(h), v();
3819
+ set pause(p) {
3820
+ s(p), v();
3821
3821
  },
3822
3822
  get colorOuter() {
3823
3823
  return a();
3824
3824
  },
3825
- set colorOuter(h) {
3826
- a(h), v();
3825
+ set colorOuter(p) {
3826
+ a(p), v();
3827
3827
  },
3828
3828
  get colorCenter() {
3829
3829
  return i();
3830
3830
  },
3831
- set colorCenter(h) {
3832
- i(h), v();
3831
+ set colorCenter(p) {
3832
+ i(p), v();
3833
3833
  },
3834
3834
  get colorInner() {
3835
3835
  return o();
3836
3836
  },
3837
- set colorInner(h) {
3838
- o(h), v();
3837
+ set colorInner(p) {
3838
+ o(p), v();
3839
3839
  },
3840
3840
  get durationMultiplier() {
3841
3841
  return c();
3842
3842
  },
3843
- set durationMultiplier(h) {
3844
- c(h), v();
3843
+ set durationMultiplier(p) {
3844
+ c(p), v();
3845
3845
  },
3846
3846
  get durationOuter() {
3847
3847
  return l();
3848
3848
  },
3849
- set durationOuter(h) {
3850
- l(h), v();
3849
+ set durationOuter(p) {
3850
+ l(p), v();
3851
3851
  },
3852
3852
  get durationInner() {
3853
3853
  return u();
3854
3854
  },
3855
- set durationInner(h) {
3856
- u(h), v();
3855
+ set durationInner(p) {
3856
+ u(p), v();
3857
3857
  },
3858
3858
  get durationCenter() {
3859
3859
  return f();
3860
3860
  },
3861
- set durationCenter(h) {
3862
- f(h), v();
3861
+ set durationCenter(p) {
3862
+ f(p), v();
3863
3863
  }
3864
3864
  });
3865
3865
  }
@@ -3913,18 +3913,18 @@ const ff = {
3913
3913
  }
3914
3914
  }`
3915
3915
  };
3916
- function pf(t, e) {
3916
+ function hf(t, e) {
3917
3917
  ie(e, !1), de(t, ff);
3918
3918
  let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), s = g(e, "pause", 12, !1), a = g(e, "ballTopLeft", 12, "#FF3E00"), i = g(e, "ballTopRight", 12, "#F8B334"), o = g(e, "ballBottomLeft", 12, "#40B3FF"), c = g(e, "ballBottomRight", 12, "#676778"), l = g(e, "duration", 12, "1.5s");
3919
- var u = df(), f = T(u), p = T(f), h = T(p), w = T(h);
3920
- y(h);
3921
- var x = O(h, 2), k = T(x);
3919
+ var u = df(), f = T(u), h = T(f), p = T(h), w = T(p);
3920
+ y(p);
3921
+ var x = O(p, 2), k = T(x);
3922
3922
  y(x);
3923
3923
  var b = O(x, 2), _ = T(b);
3924
3924
  y(b);
3925
3925
  var $ = O(b, 2), A = T($);
3926
- return y($), y(p), y(f), y(u), P(() => {
3927
- q(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${a() ?? ""}; --ballTopRightColor: ${i() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${c() ?? ""}; --duration: ${l() ?? ""};`), ue(p, "pause-animation", s()), ue(w, "pause-animation", s()), ue(k, "pause-animation", s()), ue(_, "pause-animation", s()), ue(A, "pause-animation", s());
3926
+ return y($), y(h), y(f), y(u), P(() => {
3927
+ q(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${a() ?? ""}; --ballTopRightColor: ${i() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${c() ?? ""}; --duration: ${l() ?? ""};`), ue(h, "pause-animation", s()), ue(w, "pause-animation", s()), ue(k, "pause-animation", s()), ue(_, "pause-animation", s()), ue(A, "pause-animation", s());
3928
3928
  }), E(t, u), oe({
3929
3929
  get size() {
3930
3930
  return n();
@@ -3977,7 +3977,7 @@ function pf(t, e) {
3977
3977
  });
3978
3978
  }
3979
3979
  le(
3980
- pf,
3980
+ hf,
3981
3981
  {
3982
3982
  size: {},
3983
3983
  unit: {},
@@ -4001,7 +4001,7 @@ const et = /[a-zA-Z]/, qs = (t, e) => {
4001
4001
  }
4002
4002
  return `rgba(${(t.match(/.{2}/g) || []).map((r) => parseInt(r, 16)).join(", ")}, ${e})`;
4003
4003
  }, Dt = (t, e = 0) => [...Array(t).keys()].map((n) => n + e);
4004
- var hf = /* @__PURE__ */ F('<div class="circle svelte-1bsg8wv"></div>'), vf = /* @__PURE__ */ F('<div class="wrapper svelte-1bsg8wv"></div>');
4004
+ var pf = /* @__PURE__ */ F('<div class="circle svelte-1bsg8wv"></div>'), vf = /* @__PURE__ */ F('<div class="wrapper svelte-1bsg8wv"></div>');
4005
4005
  const gf = {
4006
4006
  hash: "svelte-1bsg8wv",
4007
4007
  code: `.wrapper.svelte-1bsg8wv {position:relative;width:var(--size);height:var(--size);}.circle.svelte-1bsg8wv {position:absolute;width:var(--size);height:var(--size);background-color:var(--color);border-radius:100%;opacity:0.6;top:0;left:0;animation-fill-mode:both;
@@ -4022,11 +4022,11 @@ function mf(t, e) {
4022
4022
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
4023
4023
  wt();
4024
4024
  var l = vf();
4025
- return st(l, 5, () => Dt(2, 1), rt, (f, p) => {
4026
- var h = hf();
4025
+ return st(l, 5, () => Dt(2, 1), rt, (f, h) => {
4026
+ var p = pf();
4027
4027
  P(() => {
4028
- q(h, "style", `animation: ${s() ?? ""} ${(d(p) === 1 ? `${(+c - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), ue(h, "pause-animation", i());
4029
- }), E(f, h);
4028
+ q(p, "style", `animation: ${s() ?? ""} ${(d(h) === 1 ? `${(+c - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), ue(p, "pause-animation", i());
4029
+ }), E(f, p);
4030
4030
  }), y(l), P(() => q(l, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), E(t, l), oe({
4031
4031
  get color() {
4032
4032
  return n();
@@ -4490,11 +4490,11 @@ function If(t, e) {
4490
4490
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.2s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
4491
4491
  wt();
4492
4492
  var l = Ef();
4493
- return st(l, 5, () => Dt(5, 1), rt, (f, p) => {
4494
- var h = Sf();
4493
+ return st(l, 5, () => Dt(5, 1), rt, (f, h) => {
4494
+ var p = Sf();
4495
4495
  P(() => {
4496
- q(h, "style", `animation-delay: ${(d(p) - 1) * (+c / 12)}${o ?? ""}`), ue(h, "pause-animation", i());
4497
- }), E(f, h);
4496
+ q(p, "style", `animation-delay: ${(d(h) - 1) * (+c / 12)}${o ?? ""}`), ue(p, "pause-animation", i());
4497
+ }), E(f, p);
4498
4498
  }), y(l), P(() => q(l, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""}`)), E(t, l), oe({
4499
4499
  get color() {
4500
4500
  return n();
@@ -4665,11 +4665,11 @@ function Of(t, e) {
4665
4665
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
4666
4666
  wt();
4667
4667
  var l = jf();
4668
- return st(l, 5, () => Dt(3, 1), rt, (f, p) => {
4669
- var h = Df();
4668
+ return st(l, 5, () => Dt(3, 1), rt, (f, h) => {
4669
+ var p = Df();
4670
4670
  P(() => {
4671
- q(h, "style", `animation-delay: ${+c / 3 * (d(p) - 1) + o};`), ue(h, "pause-animation", i());
4672
- }), E(f, h);
4671
+ q(p, "style", `animation-delay: ${+c / 3 * (d(h) - 1) + o};`), ue(p, "pause-animation", i());
4672
+ }), E(f, p);
4673
4673
  }), y(l), P(() => q(l, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`)), E(t, l), oe({
4674
4674
  get color() {
4675
4675
  return n();
@@ -4837,11 +4837,11 @@ function Gf(t, e) {
4837
4837
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.6s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
4838
4838
  wt();
4839
4839
  var l = Hf();
4840
- return st(l, 5, () => Dt(3, 1), rt, (f, p) => {
4841
- var h = Bf();
4840
+ return st(l, 5, () => Dt(3, 1), rt, (f, h) => {
4841
+ var p = Bf();
4842
4842
  P(() => {
4843
- q(h, "style", `--dotSize:${+a() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${d(p) * (+c / 10)}${o ?? ""};`), ue(h, "pause-animation", i());
4844
- }), E(f, h);
4843
+ q(p, "style", `--dotSize:${+a() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${d(h) * (+c / 10)}${o ?? ""};`), ue(p, "pause-animation", i());
4844
+ }), E(f, p);
4845
4845
  }), y(l), P(() => q(l, "style", `--size:${a() ?? ""}${r() ?? ""}; --duration: ${s() ?? ""};`)), E(t, l), oe({
4846
4846
  get color() {
4847
4847
  return n();
@@ -5036,8 +5036,8 @@ le(
5036
5036
  [],
5037
5037
  !0
5038
5038
  );
5039
- var Kf = /* @__PURE__ */ F('<div class="cube svelte-1w8rpx6"></div>'), ep = /* @__PURE__ */ F('<div class="wrapper svelte-1w8rpx6"></div>');
5040
- const tp = {
5039
+ var Kf = /* @__PURE__ */ F('<div class="cube svelte-1w8rpx6"></div>'), eh = /* @__PURE__ */ F('<div class="wrapper svelte-1w8rpx6"></div>');
5040
+ const th = {
5041
5041
  hash: "svelte-1w8rpx6",
5042
5042
  code: `.wrapper.svelte-1w8rpx6 {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:calc(var(--size) / 2.5);}.cube.svelte-1w8rpx6 {position:absolute;top:0px;width:calc(var(--size) / 5);height:calc(var(--size) / 2.5);background-color:var(--color);
5043
5043
  animation: svelte-1w8rpx6-motion var(--duration) cubic-bezier(0.895, 0.03, 0.685, 0.22) infinite;}.pause-animation.svelte-1w8rpx6 {animation-play-state:paused;}
@@ -5055,15 +5055,15 @@ const tp = {
5055
5055
  };
5056
5056
  function Er(t, e) {
5057
5057
  var u;
5058
- ie(e, !1), de(t, tp);
5058
+ ie(e, !1), de(t, th);
5059
5059
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.5s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
5060
5060
  wt();
5061
- var l = ep();
5062
- return st(l, 5, () => Dt(3, 0), rt, (f, p) => {
5063
- var h = Kf();
5061
+ var l = eh();
5062
+ return st(l, 5, () => Dt(3, 0), rt, (f, h) => {
5063
+ var p = Kf();
5064
5064
  P(() => {
5065
- q(h, "style", `animation-delay: ${d(p) * (+c / 10)}${o ?? ""}; left: ${d(p) * (+a() / 3 + +a() / 15) + r()};`), ue(h, "pause-animation", i());
5066
- }), E(f, h);
5065
+ q(p, "style", `animation-delay: ${d(h) * (+c / 10)}${o ?? ""}; left: ${d(h) * (+a() / 3 + +a() / 15) + r()};`), ue(p, "pause-animation", i());
5066
+ }), E(f, p);
5067
5067
  }), y(l), P(() => q(l, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""}`)), E(t, l), oe({
5068
5068
  get color() {
5069
5069
  return n();
@@ -5110,8 +5110,8 @@ le(
5110
5110
  [],
5111
5111
  !0
5112
5112
  );
5113
- var np = /* @__PURE__ */ F('<div class="ring svelte-1rvptk"></div>'), rp = /* @__PURE__ */ F('<div class="wrapper svelte-1rvptk"></div>');
5114
- const sp = {
5113
+ var nh = /* @__PURE__ */ F('<div class="ring svelte-1rvptk"></div>'), rh = /* @__PURE__ */ F('<div class="wrapper svelte-1rvptk"></div>');
5114
+ const sh = {
5115
5115
  hash: "svelte-1rvptk",
5116
5116
  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;
5117
5117
  animation: svelte-1rvptk-motion var(--duration) ease infinite;}.pause-animation.svelte-1rvptk {animation-play-state:paused;}
@@ -5127,17 +5127,17 @@ const sp = {
5127
5127
  }
5128
5128
  }`
5129
5129
  };
5130
- function ap(t, e) {
5130
+ function ah(t, e) {
5131
5131
  var u;
5132
- ie(e, !1), de(t, sp);
5132
+ ie(e, !1), de(t, sh);
5133
5133
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.5s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
5134
5134
  wt();
5135
- var l = rp();
5136
- return st(l, 5, () => Dt(6, 0), rt, (f, p) => {
5137
- var h = np();
5135
+ var l = rh();
5136
+ return st(l, 5, () => Dt(6, 0), rt, (f, h) => {
5137
+ var p = nh();
5138
5138
  P(() => {
5139
- q(h, "style", `animation-delay: ${d(p) * (+c / 25)}${o ?? ""}; width: ${d(p) * (+a() / 6) + r()}; height: ${d(p) * (+a() / 6) / 2 + r()}; `), ue(h, "pause-animation", i());
5140
- }), E(f, h);
5139
+ q(p, "style", `animation-delay: ${d(h) * (+c / 25)}${o ?? ""}; width: ${d(h) * (+a() / 6) + r()}; height: ${d(h) * (+a() / 6) / 2 + r()}; `), ue(p, "pause-animation", i());
5140
+ }), E(f, p);
5141
5141
  }), y(l), P(() => q(l, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-a() / 5}${r() ?? ""}; --motionTwo: ${+a() / 4}${r() ?? ""}; --motionThree: ${-a() / 5}${r() ?? ""}; --duration: ${s() ?? ""};`)), E(t, l), oe({
5142
5142
  get color() {
5143
5143
  return n();
@@ -5172,7 +5172,7 @@ function ap(t, e) {
5172
5172
  });
5173
5173
  }
5174
5174
  le(
5175
- ap,
5175
+ ah,
5176
5176
  {
5177
5177
  color: {},
5178
5178
  unit: {},
@@ -5184,8 +5184,8 @@ le(
5184
5184
  [],
5185
5185
  !0
5186
5186
  );
5187
- var ip = /* @__PURE__ */ F('<div class="dot svelte-1uhddr4"></div>'), op = /* @__PURE__ */ F('<div class="wrapper svelte-1uhddr4"><div class="spinner svelte-1uhddr4"></div></div>');
5188
- const lp = {
5187
+ var ih = /* @__PURE__ */ F('<div class="dot svelte-1uhddr4"></div>'), oh = /* @__PURE__ */ F('<div class="wrapper svelte-1uhddr4"><div class="spinner svelte-1uhddr4"></div></div>');
5188
+ const lh = {
5189
5189
  hash: "svelte-1uhddr4",
5190
5190
  code: `.wrapper.svelte-1uhddr4 {height:var(--size);width:var(--size);display:flex;justify-content:center;align-items:center;}.spinner.svelte-1uhddr4 {height:var(--size);width:var(--size);
5191
5191
  animation: svelte-1uhddr4-rotate var(--duration) infinite linear;}.dot.svelte-1uhddr4 {width:60%;height:60%;display:inline-block;position:absolute;top:0;background-color:var(--color);border-radius:100%;
@@ -5206,54 +5206,54 @@ const lp = {
5206
5206
  }
5207
5207
  }`
5208
5208
  };
5209
- function cp(t, e) {
5209
+ function ch(t, e) {
5210
5210
  var f;
5211
- ie(e, !1), de(t, lp);
5211
+ ie(e, !1), de(t, lh);
5212
5212
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((f = s().match(et)) == null ? void 0 : f[0]) ?? "s", c = s().replace(et, "");
5213
5213
  wt();
5214
- var l = op(), u = T(l);
5215
- return st(u, 5, () => Dt(2, 0), rt, (p, h) => {
5216
- var w = ip();
5214
+ var l = oh(), u = T(l);
5215
+ return st(u, 5, () => Dt(2, 0), rt, (h, p) => {
5216
+ var w = ih();
5217
5217
  P(() => {
5218
- q(w, "style", `animation-delay: ${(d(h) === 1 ? `${+c / 2}${o}` : "0s") ?? ""}; ${(d(h) === 1 ? "bottom: 0;" : "") ?? ""} ${(d(h) === 1 ? "top: auto;" : "") ?? ""}`), ue(w, "pause-animation", i());
5219
- }), E(p, w);
5218
+ q(w, "style", `animation-delay: ${(d(p) === 1 ? `${+c / 2}${o}` : "0s") ?? ""}; ${(d(p) === 1 ? "bottom: 0;" : "") ?? ""} ${(d(p) === 1 ? "top: auto;" : "") ?? ""}`), ue(w, "pause-animation", i());
5219
+ }), E(h, w);
5220
5220
  }), y(u), y(l), P(() => {
5221
5221
  q(l, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ue(u, "pause-animation", i());
5222
5222
  }), E(t, l), oe({
5223
5223
  get color() {
5224
5224
  return n();
5225
5225
  },
5226
- set color(p) {
5227
- n(p), v();
5226
+ set color(h) {
5227
+ n(h), v();
5228
5228
  },
5229
5229
  get unit() {
5230
5230
  return r();
5231
5231
  },
5232
- set unit(p) {
5233
- r(p), v();
5232
+ set unit(h) {
5233
+ r(h), v();
5234
5234
  },
5235
5235
  get duration() {
5236
5236
  return s();
5237
5237
  },
5238
- set duration(p) {
5239
- s(p), v();
5238
+ set duration(h) {
5239
+ s(h), v();
5240
5240
  },
5241
5241
  get size() {
5242
5242
  return a();
5243
5243
  },
5244
- set size(p) {
5245
- a(p), v();
5244
+ set size(h) {
5245
+ a(h), v();
5246
5246
  },
5247
5247
  get pause() {
5248
5248
  return i();
5249
5249
  },
5250
- set pause(p) {
5251
- i(p), v();
5250
+ set pause(h) {
5251
+ i(h), v();
5252
5252
  }
5253
5253
  });
5254
5254
  }
5255
5255
  le(
5256
- cp,
5256
+ ch,
5257
5257
  {
5258
5258
  color: {},
5259
5259
  unit: {},
@@ -5265,8 +5265,8 @@ le(
5265
5265
  [],
5266
5266
  !0
5267
5267
  );
5268
- var up = /* @__PURE__ */ F('<div class="square svelte-x90y"></div>');
5269
- const dp = {
5268
+ var uh = /* @__PURE__ */ F('<div class="square svelte-x90y"></div>');
5269
+ const dh = {
5270
5270
  hash: "svelte-x90y",
5271
5271
  code: `.square.svelte-x90y {height:var(--size);width:var(--size);background-color:var(--color);
5272
5272
  animation: svelte-x90y-squareDelay var(--duration) 0s infinite cubic-bezier(0.09, 0.57, 0.49, 0.9);animation-fill-mode:both;perspective:100px;display:inline-block;}.pause-animation.svelte-x90y {animation-play-state:paused;}
@@ -5289,10 +5289,10 @@ const dp = {
5289
5289
  }
5290
5290
  }`
5291
5291
  };
5292
- function fp(t, e) {
5293
- ie(e, !1), de(t, dp);
5292
+ function fh(t, e) {
5293
+ ie(e, !1), de(t, dh);
5294
5294
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "3s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1);
5295
- var o = up();
5295
+ var o = uh();
5296
5296
  return P(() => {
5297
5297
  q(o, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ue(o, "pause-animation", i());
5298
5298
  }), E(t, o), oe({
@@ -5329,7 +5329,7 @@ function fp(t, e) {
5329
5329
  });
5330
5330
  }
5331
5331
  le(
5332
- fp,
5332
+ fh,
5333
5333
  {
5334
5334
  color: {},
5335
5335
  unit: {},
@@ -5341,8 +5341,8 @@ le(
5341
5341
  [],
5342
5342
  !0
5343
5343
  );
5344
- var pp = /* @__PURE__ */ F('<div class="wrapper svelte-5bpnhx"><div class="shadow svelte-5bpnhx"></div></div>');
5345
- const hp = {
5344
+ var hh = /* @__PURE__ */ F('<div class="wrapper svelte-5bpnhx"><div class="shadow svelte-5bpnhx"></div></div>');
5345
+ const ph = {
5346
5346
  hash: "svelte-5bpnhx",
5347
5347
  code: `.wrapper.svelte-5bpnhx {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size);}.shadow.svelte-5bpnhx {color:var(--color);font-size:var(--size);overflow:hidden;width:var(--size);height:var(--size);border-radius:50%;margin:28px auto;position:relative;transform:translateZ(0);
5348
5348
  animation: svelte-5bpnhx-load var(--duration) infinite ease, svelte-5bpnhx-round var(--duration) infinite ease;}.pause-animation.svelte-5bpnhx {animation-play-state:paused;}
@@ -5383,10 +5383,10 @@ const hp = {
5383
5383
  }
5384
5384
  }`
5385
5385
  };
5386
- function vp(t, e) {
5387
- ie(e, !1), de(t, hp);
5386
+ function vh(t, e) {
5387
+ ie(e, !1), de(t, ph);
5388
5388
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.7s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1);
5389
- var o = pp(), c = T(o);
5389
+ var o = hh(), c = T(o);
5390
5390
  return y(o), P(() => {
5391
5391
  q(o, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ue(c, "pause-animation", i());
5392
5392
  }), E(t, o), oe({
@@ -5423,7 +5423,7 @@ function vp(t, e) {
5423
5423
  });
5424
5424
  }
5425
5425
  le(
5426
- vp,
5426
+ vh,
5427
5427
  {
5428
5428
  color: {},
5429
5429
  unit: {},
@@ -5435,8 +5435,8 @@ le(
5435
5435
  [],
5436
5436
  !0
5437
5437
  );
5438
- var gp = /* @__PURE__ */ F('<div class="wrapper svelte-e653jg"><div class="circle-one svelte-e653jg"></div> <div class="circle-two svelte-e653jg"></div></div>');
5439
- const mp = {
5438
+ var gh = /* @__PURE__ */ F('<div class="wrapper svelte-e653jg"><div class="circle-one svelte-e653jg"></div> <div class="circle-two svelte-e653jg"></div></div>');
5439
+ const mh = {
5440
5440
  hash: "svelte-e653jg",
5441
5441
  code: `.wrapper.svelte-e653jg {height:var(--size);width:var(--size);border-radius:100%;
5442
5442
  animation: svelte-e653jg-moonStretchDelay var(--duration) 0s infinite linear;animation-fill-mode:forwards;position:relative;}.circle-one.svelte-e653jg {top:var(--moonSize);background-color:var(--color);width:calc(var(--size) / 7);height:calc(var(--size) / 7);border-radius:100%;
@@ -5447,47 +5447,47 @@ const mp = {
5447
5447
  }
5448
5448
  }`
5449
5449
  };
5450
- function bp(t, e) {
5451
- ie(e, !1), de(t, mp);
5450
+ function bh(t, e) {
5451
+ ie(e, !1), de(t, mh);
5452
5452
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.6s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = +a() / 7, c = +a() / 2 - o / 2;
5453
- var l = gp(), u = T(l), f = O(u, 2);
5453
+ var l = gh(), u = T(l), f = O(u, 2);
5454
5454
  return y(l), P(() => {
5455
5455
  q(l, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${c ?? ""}${r() ?? ""}; --duration: ${s() ?? ""};`), ue(l, "pause-animation", i()), ue(u, "pause-animation", i()), ue(f, "pause-animation", i());
5456
5456
  }), E(t, l), oe({
5457
5457
  get color() {
5458
5458
  return n();
5459
5459
  },
5460
- set color(p) {
5461
- n(p), v();
5460
+ set color(h) {
5461
+ n(h), v();
5462
5462
  },
5463
5463
  get unit() {
5464
5464
  return r();
5465
5465
  },
5466
- set unit(p) {
5467
- r(p), v();
5466
+ set unit(h) {
5467
+ r(h), v();
5468
5468
  },
5469
5469
  get duration() {
5470
5470
  return s();
5471
5471
  },
5472
- set duration(p) {
5473
- s(p), v();
5472
+ set duration(h) {
5473
+ s(h), v();
5474
5474
  },
5475
5475
  get size() {
5476
5476
  return a();
5477
5477
  },
5478
- set size(p) {
5479
- a(p), v();
5478
+ set size(h) {
5479
+ a(h), v();
5480
5480
  },
5481
5481
  get pause() {
5482
5482
  return i();
5483
5483
  },
5484
- set pause(p) {
5485
- i(p), v();
5484
+ set pause(h) {
5485
+ i(h), v();
5486
5486
  }
5487
5487
  });
5488
5488
  }
5489
5489
  le(
5490
- bp,
5490
+ bh,
5491
5491
  {
5492
5492
  color: {},
5493
5493
  unit: {},
@@ -5499,8 +5499,8 @@ le(
5499
5499
  [],
5500
5500
  !0
5501
5501
  );
5502
- var wp = /* @__PURE__ */ F('<div class="wrapper svelte-1cx3779"><div class="spinner-inner svelte-1cx3779"><div id="top" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div> <div id="middle" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div> <div id="bottom" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div></div></div>');
5503
- const xp = {
5502
+ var wh = /* @__PURE__ */ F('<div class="wrapper svelte-1cx3779"><div class="spinner-inner svelte-1cx3779"><div id="top" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div> <div id="middle" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div> <div id="bottom" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div></div></div>');
5503
+ const xh = {
5504
5504
  hash: "svelte-1cx3779",
5505
5505
  code: `.wrapper.svelte-1cx3779 {height:var(--size);width:var(--size);position:relative;display:flex;justify-content:center;align-items:center;}.wrapper.svelte-1cx3779 :where(.svelte-1cx3779) {line-height:0;box-sizing:border-box;}.spinner-inner.svelte-1cx3779 {height:var(--size);width:var(--size);transform:scale(calc(var(--size) / 70));}.mask.svelte-1cx3779 {position:absolute;border-radius:2px;overflow:hidden;perspective:1000;backface-visibility:hidden;}.plane.svelte-1cx3779 {background:var(--color);width:400%;height:100%;position:absolute;z-index:100;perspective:1000;backface-visibility:hidden;}#top.svelte-1cx3779 .plane:where(.svelte-1cx3779) {z-index:2000;
5506
5506
  animation: svelte-1cx3779-trans1 var(--duration) ease-in infinite 0s backwards;}#middle.svelte-1cx3779 .plane:where(.svelte-1cx3779) {transform:translate3d(0px, 0, 0);background:var(--rgba);
@@ -5532,8 +5532,8 @@ const xp = {
5532
5532
  }
5533
5533
  }`
5534
5534
  };
5535
- function _p(t, e) {
5536
- ie(e, !1), de(t, xp);
5535
+ function _h(t, e) {
5536
+ ie(e, !1), de(t, xh);
5537
5537
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.3s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = Kt();
5538
5538
  er(
5539
5539
  () => jn(n()),
@@ -5541,7 +5541,7 @@ function _p(t, e) {
5541
5541
  m(o, qs(n(), 0.6));
5542
5542
  }
5543
5543
  ), tr(), wt();
5544
- var c = wp(), l = T(c);
5544
+ var c = wh(), l = T(c);
5545
5545
  return y(c), P(() => {
5546
5546
  q(c, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(o) ?? ""}; --duration: ${s() ?? ""};`), ue(l, "pause-animation", i());
5547
5547
  }), E(t, c), oe({
@@ -5578,7 +5578,7 @@ function _p(t, e) {
5578
5578
  });
5579
5579
  }
5580
5580
  le(
5581
- _p,
5581
+ _h,
5582
5582
  {
5583
5583
  color: {},
5584
5584
  unit: {},
@@ -5590,8 +5590,8 @@ le(
5590
5590
  [],
5591
5591
  !0
5592
5592
  );
5593
- var kp = /* @__PURE__ */ F('<span class="svelte-1jnfmql"><div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div></span>');
5594
- const yp = {
5593
+ var kh = /* @__PURE__ */ F('<span class="svelte-1jnfmql"><div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div></span>');
5594
+ const yh = {
5595
5595
  hash: "svelte-1jnfmql",
5596
5596
  code: `span.svelte-1jnfmql {width:var(--size);height:calc(var(--size) / 4);position:relative;display:block;}div.svelte-1jnfmql {width:calc(var(--size) / 4);height:calc(var(--size) / 4);position:absolute;left:0%;top:0;border-radius:2px;background:var(--color);transform:translateX(-50%) rotate(45deg) scale(0);
5597
5597
  animation: svelte-1jnfmql-diamonds var(--duration) linear infinite;}div.svelte-1jnfmql:nth-child(1) {animation-delay:calc(var(--duration) * 2 / 3 * -1);}div.svelte-1jnfmql:nth-child(2) {animation-delay:calc(var(--duration) * 2 / 3 * -2);}div.svelte-1jnfmql:nth-child(3) {animation-delay:calc(var(--duration) * 2 / 3 * -3);}.pause-animation.svelte-1jnfmql div:where(.svelte-1jnfmql) {animation-play-state:paused;}
@@ -5607,10 +5607,10 @@ const yp = {
5607
5607
  }
5608
5608
  }`
5609
5609
  };
5610
- function zp(t, e) {
5611
- ie(e, !1), de(t, yp);
5610
+ function zh(t, e) {
5611
+ ie(e, !1), de(t, yh);
5612
5612
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.5s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1);
5613
- var o = kp();
5613
+ var o = kh();
5614
5614
  return P(() => {
5615
5615
  q(o, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color:${n() ?? ""}; --duration: ${s() ?? ""};`), ue(o, "pause-animation", i());
5616
5616
  }), E(t, o), oe({
@@ -5647,7 +5647,7 @@ function zp(t, e) {
5647
5647
  });
5648
5648
  }
5649
5649
  le(
5650
- zp,
5650
+ zh,
5651
5651
  {
5652
5652
  color: {},
5653
5653
  unit: {},
@@ -5659,8 +5659,8 @@ le(
5659
5659
  [],
5660
5660
  !0
5661
5661
  );
5662
- var Tp = /* @__PURE__ */ F('<div class="svelte-db2m9w"></div>');
5663
- const $p = {
5662
+ var Th = /* @__PURE__ */ F('<div class="svelte-db2m9w"></div>');
5663
+ const $h = {
5664
5664
  hash: "svelte-db2m9w",
5665
5665
  code: `div.svelte-db2m9w {position:relative;width:var(--size);height:var(--size);background-color:transparent;box-shadow:inset 0px 0px 0px 2px var(--color);border-radius:50%;}div.svelte-db2m9w::before,
5666
5666
  div.svelte-db2m9w::after {position:absolute;content:'';background-color:var(--color);}div.svelte-db2m9w::after {width:calc(var(--size) / 2.4);height:2px;top:calc(var(--size) / 2);left:calc(var(--size) / 2);transform-origin:1px 1px;
@@ -5674,10 +5674,10 @@ const $p = {
5674
5674
  }
5675
5675
  }`
5676
5676
  };
5677
- function Sp(t, e) {
5678
- ie(e, !1), de(t, $p);
5677
+ function Sh(t, e) {
5678
+ ie(e, !1), de(t, $h);
5679
5679
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "8s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1);
5680
- var o = Tp();
5680
+ var o = Th();
5681
5681
  return P(() => {
5682
5682
  q(o, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color:${n() ?? ""}; --duration:${s() ?? ""}`), ue(o, "pause-animation", i());
5683
5683
  }), E(t, o), oe({
@@ -5714,7 +5714,7 @@ function Sp(t, e) {
5714
5714
  });
5715
5715
  }
5716
5716
  le(
5717
- Sp,
5717
+ Sh,
5718
5718
  {
5719
5719
  color: {},
5720
5720
  unit: {},
@@ -5726,8 +5726,8 @@ le(
5726
5726
  [],
5727
5727
  !0
5728
5728
  );
5729
- var Ep = /* @__PURE__ */ F('<div class="bar svelte-1vzsw15"></div>'), Cp = /* @__PURE__ */ F('<div class="wrapper svelte-1vzsw15"></div>');
5730
- const Ip = {
5729
+ var Eh = /* @__PURE__ */ F('<div class="bar svelte-1vzsw15"></div>'), Ch = /* @__PURE__ */ F('<div class="wrapper svelte-1vzsw15"></div>');
5730
+ const Ih = {
5731
5731
  hash: "svelte-1vzsw15",
5732
5732
  code: `.wrapper.svelte-1vzsw15 {position:relative;display:flex;justify-content:center;align-items:center;width:calc(var(--size) * 2.5);height:var(--size);overflow:hidden;}.bar.svelte-1vzsw15 {position:absolute;top:calc(var(--size) / 10);width:calc(var(--size) / 5);height:calc(var(--size) / 10);margin-top:calc(var(--size) - var(--size) / 10);transform:skewY(0deg);background-color:var(--color);
5733
5733
  animation: svelte-1vzsw15-motion var(--duration) ease-in-out infinite;}.pause-animation.svelte-1vzsw15 {animation-play-state:paused;}
@@ -5744,17 +5744,17 @@ const Ip = {
5744
5744
  }
5745
5745
  }`
5746
5746
  };
5747
- function Ap(t, e) {
5747
+ function Ah(t, e) {
5748
5748
  var u;
5749
- ie(e, !1), de(t, Ip);
5749
+ ie(e, !1), de(t, Ih);
5750
5750
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.25s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((u = s().match(et)) == null ? void 0 : u[0]) ?? "s", c = s().replace(et, "");
5751
5751
  wt();
5752
- var l = Cp();
5753
- return st(l, 5, () => Dt(10, 0), rt, (f, p) => {
5754
- var h = Ep();
5752
+ var l = Ch();
5753
+ return st(l, 5, () => Dt(10, 0), rt, (f, h) => {
5754
+ var p = Eh();
5755
5755
  P(() => {
5756
- q(h, "style", `left: ${d(p) * (+a() / 5 + (+a() / 15 - +a() / 100)) + r()}; animation-delay: ${d(p) * (+c / 8.3)}${o ?? ""};`), ue(h, "pause-animation", i());
5757
- }), E(f, h);
5756
+ q(p, "style", `left: ${d(h) * (+a() / 5 + (+a() / 15 - +a() / 100)) + r()}; animation-delay: ${d(h) * (+c / 8.3)}${o ?? ""};`), ue(p, "pause-animation", i());
5757
+ }), E(f, p);
5758
5758
  }), y(l), P(() => q(l, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`)), E(t, l), oe({
5759
5759
  get color() {
5760
5760
  return n();
@@ -5789,7 +5789,7 @@ function Ap(t, e) {
5789
5789
  });
5790
5790
  }
5791
5791
  le(
5792
- Ap,
5792
+ Ah,
5793
5793
  {
5794
5794
  color: {},
5795
5795
  unit: {},
@@ -5801,8 +5801,8 @@ le(
5801
5801
  [],
5802
5802
  !0
5803
5803
  );
5804
- var Lp = /* @__PURE__ */ F('<span class="circle svelte-bv9t2p"></span>'), Fp = /* @__PURE__ */ F('<span class="wrapper svelte-bv9t2p"></span>');
5805
- const Rp = {
5804
+ var Lh = /* @__PURE__ */ F('<span class="circle svelte-bv9t2p"></span>'), Fh = /* @__PURE__ */ F('<span class="wrapper svelte-bv9t2p"></span>');
5805
+ const Rh = {
5806
5806
  hash: "svelte-bv9t2p",
5807
5807
  code: `.wrapper.svelte-bv9t2p {display:inherit;position:relative;width:var(--size);height:var(--size);}.circle.svelte-bv9t2p {position:absolute;width:var(--size);height:var(--size);border:thick solid var(--rgba);border-radius:50%;opacity:1;top:0px;left:0px;animation-fill-mode:both;animation-iteration-count:infinite;animation-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1);animation-direction:normal, normal;animation-fill-mode:none, none;animation-play-state:running, running;
5808
5808
  animation-name: svelte-bv9t2p-puff-1, svelte-bv9t2p-puff-2;box-sizing:border-box;}.pause-animation.svelte-bv9t2p {animation-play-state:paused;}
@@ -5823,9 +5823,9 @@ const Rp = {
5823
5823
  }
5824
5824
  }`
5825
5825
  };
5826
- function Dp(t, e) {
5826
+ function Dh(t, e) {
5827
5827
  var f;
5828
- ie(e, !1), de(t, Rp);
5828
+ ie(e, !1), de(t, Rh);
5829
5829
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), a = g(e, "size", 12, "60"), i = g(e, "pause", 12, !1), o = ((f = s().match(et)) == null ? void 0 : f[0]) ?? "s", c = s().replace(et, ""), l = Kt();
5830
5830
  er(
5831
5831
  () => jn(n()),
@@ -5833,47 +5833,47 @@ function Dp(t, e) {
5833
5833
  m(l, qs(n(), 1));
5834
5834
  }
5835
5835
  ), tr(), wt();
5836
- var u = Fp();
5837
- return st(u, 5, () => Dt(2, 1), rt, (p, h) => {
5838
- var w = Lp();
5836
+ var u = Fh();
5837
+ return st(u, 5, () => Dt(2, 1), rt, (h, p) => {
5838
+ var w = Lh();
5839
5839
  P(() => {
5840
- q(w, "style", `animation-delay: ${(d(h) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +c + o};`), ue(w, "pause-animation", i());
5841
- }), E(p, w);
5840
+ q(w, "style", `animation-delay: ${(d(p) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +c + o};`), ue(w, "pause-animation", i());
5841
+ }), E(h, w);
5842
5842
  }), y(u), P(() => q(u, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${d(l) ?? ""}; --duration: ${s() ?? ""}`)), E(t, u), oe({
5843
5843
  get color() {
5844
5844
  return n();
5845
5845
  },
5846
- set color(p) {
5847
- n(p), v();
5846
+ set color(h) {
5847
+ n(h), v();
5848
5848
  },
5849
5849
  get unit() {
5850
5850
  return r();
5851
5851
  },
5852
- set unit(p) {
5853
- r(p), v();
5852
+ set unit(h) {
5853
+ r(h), v();
5854
5854
  },
5855
5855
  get duration() {
5856
5856
  return s();
5857
5857
  },
5858
- set duration(p) {
5859
- s(p), v();
5858
+ set duration(h) {
5859
+ s(h), v();
5860
5860
  },
5861
5861
  get size() {
5862
5862
  return a();
5863
5863
  },
5864
- set size(p) {
5865
- a(p), v();
5864
+ set size(h) {
5865
+ a(h), v();
5866
5866
  },
5867
5867
  get pause() {
5868
5868
  return i();
5869
5869
  },
5870
- set pause(p) {
5871
- i(p), v();
5870
+ set pause(h) {
5871
+ i(h), v();
5872
5872
  }
5873
5873
  });
5874
5874
  }
5875
5875
  le(
5876
- Dp,
5876
+ Dh,
5877
5877
  {
5878
5878
  color: {},
5879
5879
  unit: {},
@@ -5885,8 +5885,8 @@ le(
5885
5885
  [],
5886
5886
  !0
5887
5887
  );
5888
- var jp = /* @__PURE__ */ F('<div class="wrapper svelte-f6hkgc"></div>');
5889
- const Pp = {
5888
+ var jh = /* @__PURE__ */ F('<div class="wrapper svelte-f6hkgc"></div>');
5889
+ const Ph = {
5890
5890
  hash: "svelte-f6hkgc",
5891
5891
  code: `.wrapper.svelte-f6hkgc {width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;
5892
5892
  animation: svelte-f6hkgc-bump var(--duration) ease-in infinite alternate;}.wrapper.svelte-f6hkgc::after {content:'';box-sizing:border-box;left:50%;top:100%;transform:translate(-50%, 0);position:absolute;border:var(--size) solid transparent;border-top-color:var(--color);}.pause-animation.svelte-f6hkgc {animation-play-state:paused;}
@@ -5899,10 +5899,10 @@ const Pp = {
5899
5899
  }
5900
5900
  }`
5901
5901
  };
5902
- function Op(t, e) {
5903
- ie(e, !1), de(t, Pp);
5902
+ function Oh(t, e) {
5903
+ ie(e, !1), de(t, Ph);
5904
5904
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.4s"), a = g(e, "size", 12, "15"), i = g(e, "pause", 12, !1);
5905
- var o = jp();
5905
+ var o = jh();
5906
5906
  return P(() => {
5907
5907
  q(o, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ue(o, "pause-animation", i());
5908
5908
  }), E(t, o), oe({
@@ -5939,7 +5939,7 @@ function Op(t, e) {
5939
5939
  });
5940
5940
  }
5941
5941
  le(
5942
- Op,
5942
+ Oh,
5943
5943
  {
5944
5944
  color: {},
5945
5945
  unit: {},
@@ -5951,8 +5951,8 @@ le(
5951
5951
  [],
5952
5952
  !0
5953
5953
  );
5954
- var Mp = /* @__PURE__ */ F('<div class="wrapper svelte-1ju64u"></div>');
5955
- const Np = {
5954
+ var Mh = /* @__PURE__ */ F('<div class="wrapper svelte-1ju64u"></div>');
5955
+ const Nh = {
5956
5956
  hash: "svelte-1ju64u",
5957
5957
  code: `.wrapper.svelte-1ju64u {width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);margin-top:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;
5958
5958
  animation: svelte-1ju64u-bump var(--duration) ease-in infinite alternate;}.wrapper.svelte-1ju64u::after {content:'';box-sizing:border-box;left:50%;bottom:100%;transform:translate(-50%, 0);position:absolute;border:var(--size) solid transparent;border-bottom-color:var(--color);}.pause-animation.svelte-1ju64u {animation-play-state:paused;}
@@ -5965,10 +5965,10 @@ const Np = {
5965
5965
  }
5966
5966
  }`
5967
5967
  };
5968
- function Up(t, e) {
5969
- ie(e, !1), de(t, Np);
5968
+ function Uh(t, e) {
5969
+ ie(e, !1), de(t, Nh);
5970
5970
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.4s"), a = g(e, "size", 12, "15"), i = g(e, "pause", 12, !1);
5971
- var o = Mp();
5971
+ var o = Mh();
5972
5972
  return P(() => {
5973
5973
  q(o, "style", `--size: ${a() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ue(o, "pause-animation", i());
5974
5974
  }), E(t, o), oe({
@@ -6005,7 +6005,7 @@ function Up(t, e) {
6005
6005
  });
6006
6006
  }
6007
6007
  le(
6008
- Up,
6008
+ Uh,
6009
6009
  {
6010
6010
  color: {},
6011
6011
  unit: {},
@@ -6045,10 +6045,10 @@ function rr(t) {
6045
6045
  const Oi = (t) => {
6046
6046
  var e;
6047
6047
  return (e = t.split(".").pop()) == null ? void 0 : e.toLowerCase();
6048
- }, qp = (t) => {
6048
+ }, qh = (t) => {
6049
6049
  const e = t.split(".").pop();
6050
6050
  return t.includes(".") && e !== t;
6051
- }, Bp = {
6051
+ }, Bh = {
6052
6052
  pdf: { icon: "fa-solid fa-file-pdf", color: "#f0463c" },
6053
6053
  docx: { icon: "fa-solid fa-file-word", color: "#305b9a" },
6054
6054
  xlsx: { icon: "fa-solid fa-file-excel", color: "#0c7540" },
@@ -6057,9 +6057,9 @@ const Oi = (t) => {
6057
6057
  tldv: { icon: "fa-solid fa-video", color: "#1d1dff" }
6058
6058
  }, Bs = (t) => {
6059
6059
  const e = Oi(t);
6060
- return Bp[e || ""] || { icon: "fa-solid fa-file", color: "#6c757d" };
6061
- }, Hp = (t) => Bs(t).icon;
6062
- function Yp(t) {
6060
+ return Bh[e || ""] || { icon: "fa-solid fa-file", color: "#6c757d" };
6061
+ }, Hh = (t) => Bs(t).icon;
6062
+ function Yh(t) {
6063
6063
  return {
6064
6064
  normative: "File Forge",
6065
6065
  suite: "File Forge",
@@ -6071,7 +6071,7 @@ function Yp(t) {
6071
6071
  const ur = (t, e) => `${t}-${e}`, Mi = (t) => t.isCommon ? t.filename.split(".")[0] : t.filename, Ni = (t) => t.isCommon ? rr(t.commonType).name : t.path !== "" ? t.path : "root /", Ui = (t) => {
6072
6072
  const e = Mi(t), n = Ni(t);
6073
6073
  return { displayName: e, path: n };
6074
- }, Gp = (t) => {
6074
+ }, Gh = (t) => {
6075
6075
  const { filename: e, isCommon: n, commonType: r } = t;
6076
6076
  if (r === "trascrizione")
6077
6077
  return { icon: "fa-solid fa-video", color: "#1d1dff" };
@@ -6083,25 +6083,25 @@ const ur = (t, e) => `${t}-${e}`, Mi = (t) => t.isCommon ? t.filename.split(".")
6083
6083
  };
6084
6084
  }
6085
6085
  return Bs(e);
6086
- }, Jp = (t, e) => t >= 50 || e === "suite", Wp = (t, e) => {
6086
+ }, Jh = (t, e) => t >= 50 || e === "suite", Wh = (t, e) => {
6087
6087
  const n = t.isCommon || !1, r = t.commonType || "";
6088
6088
  return n && e < 50 && r !== "suite";
6089
- }, Zp = (t) => `<ul>${t.map((n) => {
6089
+ }, Zh = (t) => `<ul>${t.map((n) => {
6090
6090
  const { displayName: r, path: s } = Ui(n);
6091
6091
  return `<li><strong>${r}</strong><br>${s}</li>`;
6092
- }).join("")}</ul>`, Vp = (t) => t.map((e) => {
6092
+ }).join("")}</ul>`, Vh = (t) => t.map((e) => {
6093
6093
  const { displayName: n, path: r } = Ui(e);
6094
6094
  return `• ${n}
6095
6095
  ${r}`;
6096
6096
  }).join(`
6097
6097
 
6098
- `), Xp = async (t, e) => {
6098
+ `), Xh = async (t, e) => {
6099
6099
  const n = new Blob([t], { type: "text/html" }), r = new Blob([e], { type: "text/plain" }), s = new ClipboardItem({
6100
6100
  "text/html": n,
6101
6101
  "text/plain": r
6102
6102
  });
6103
6103
  await navigator.clipboard.write([s]);
6104
- }, Qp = (t, e) => {
6104
+ }, Qh = (t, e) => {
6105
6105
  if (t instanceof ln)
6106
6106
  return {
6107
6107
  class: e.icon,
@@ -6122,7 +6122,7 @@ const ur = (t, e) => `${t}-${e}`, Mi = (t) => t.isCommon ? t.filename.split(".")
6122
6122
  };
6123
6123
  }
6124
6124
  return { class: "fa-solid fa-file", color: "#6c757d" };
6125
- }, Kp = (t) => {
6125
+ }, Kh = (t) => {
6126
6126
  if (t instanceof ln)
6127
6127
  return t.title.split(".")[0];
6128
6128
  if (t instanceof gn || t instanceof cn)
@@ -6132,15 +6132,15 @@ const ur = (t, e) => `${t}-${e}`, Mi = (t) => t.isCommon ? t.filename.split(".")
6132
6132
  return e.isCommon ? e.title.split(".")[0] : e.title;
6133
6133
  }
6134
6134
  return "";
6135
- }, eh = (t) => {
6135
+ }, ep = (t) => {
6136
6136
  if (t instanceof on) {
6137
6137
  const e = t.path;
6138
6138
  return e && e !== "" ? e : "root";
6139
6139
  }
6140
6140
  return null;
6141
- }, th = (t, e, n, r) => {
6141
+ }, tp = (t, e, n, r) => {
6142
6142
  e(!1), m(n, ""), r();
6143
- }, nh = (t, e, n, r, s, a, i, o) => {
6143
+ }, np = (t, e, n, r, s, a, i, o) => {
6144
6144
  const c = t.target;
6145
6145
  m(e, C(c.value));
6146
6146
  const u = {
@@ -6151,17 +6151,17 @@ const ur = (t, e) => `${t}-${e}`, Mi = (t) => t.isCommon ? t.filename.split(".")
6151
6151
  }[r()];
6152
6152
  u ? u() : n(d(e), () => kt.getDocuments(d(e)), (f) => m(o, C(f)), "Errore nella ricerca documenti:");
6153
6153
  };
6154
- var rh = /* @__PURE__ */ F('<div class="text-center p-3"><!> <p class="mt-2 text-muted"> </p></div>'), sh = /* @__PURE__ */ F('<div class="text-center p-3"><i class="fa-solid fa-search text-muted fa-2x"></i> <p class="mt-2 text-muted"> </p></div>'), ah = /* @__PURE__ */ F('<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"><!></p></div>'), ih = (t, e, n) => e(d(n)), oh = /* @__PURE__ */ F('<div class="document-path svelte-zrlk2s"> </div>'), lh = /* @__PURE__ */ F('<div class="selected-indicator svelte-zrlk2s"><i class="fa-solid fa-circle-check"></i></div>'), ch = /* @__PURE__ */ F('<button class="document-item svelte-zrlk2s"><div class="document-icon svelte-zrlk2s"><i></i></div> <div class="document-info"><div class="document-title svelte-zrlk2s"> </div> <!></div> <!></button>'), uh = /* @__PURE__ */ F('<div class="documents-list svelte-zrlk2s"></div>'), dh = /* @__PURE__ */ F('<div class="modal-overlay svelte-zrlk2s"><div class="document-search-modal svelte-zrlk2s"><div class="modal-header svelte-zrlk2s"><h5 class="svelte-zrlk2s"> </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-zrlk2s"><div class="search-container svelte-zrlk2s"><div class="input-group"><span class="input-group-text svelte-zrlk2s"><i class="fa-solid fa-search"></i></span> <input type="text" class="form-control" style="color: black;"></div></div> <div class="documents-container svelte-zrlk2s"><!></div></div></div></div>');
6155
- const fh = {
6154
+ var rp = /* @__PURE__ */ F('<div class="text-center p-3"><!> <p class="mt-2 text-muted"> </p></div>'), sp = /* @__PURE__ */ F('<div class="text-center p-3"><i class="fa-solid fa-search text-muted fa-2x"></i> <p class="mt-2 text-muted"> </p></div>'), ap = /* @__PURE__ */ F('<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"><!></p></div>'), ip = (t, e, n) => e(d(n)), op = /* @__PURE__ */ F('<div class="document-path svelte-zrlk2s"> </div>'), lp = /* @__PURE__ */ F('<div class="selected-indicator svelte-zrlk2s"><i class="fa-solid fa-circle-check"></i></div>'), cp = /* @__PURE__ */ F('<button class="document-item svelte-zrlk2s"><div class="document-icon svelte-zrlk2s"><i></i></div> <div class="document-info"><div class="document-title svelte-zrlk2s"> </div> <!></div> <!></button>'), up = /* @__PURE__ */ F('<div class="documents-list svelte-zrlk2s"></div>'), dp = /* @__PURE__ */ F('<div class="modal-overlay svelte-zrlk2s"><div class="document-search-modal svelte-zrlk2s"><div class="modal-header svelte-zrlk2s"><h5 class="svelte-zrlk2s"> </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-zrlk2s"><div class="search-container svelte-zrlk2s"><div class="input-group"><span class="input-group-text svelte-zrlk2s"><i class="fa-solid fa-search"></i></span> <input type="text" class="form-control" style="color: black;"></div></div> <div class="documents-container svelte-zrlk2s"><!></div></div></div></div>');
6155
+ const fp = {
6156
6156
  hash: "svelte-zrlk2s",
6157
6157
  code: `\r
6158
6158
  /* Stili per la modale di ricerca documenti */.modal-overlay.svelte-zrlk2s {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;z-index:1050;}.document-search-modal.svelte-zrlk2s {background:white;border-radius:12px;box-shadow:0 8px 32px rgba(0, 0, 0, 0.2);width:90%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;}.modal-header.svelte-zrlk2s {display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e9ecef;}.modal-header.svelte-zrlk2s h5:where(.svelte-zrlk2s) {margin:0;font-weight:600;color:#295dcf;}.modal-body.svelte-zrlk2s {padding:20px;flex:1;overflow:hidden;display:flex;flex-direction:column;}.search-container.svelte-zrlk2s {margin-bottom:20px;}.documents-container.svelte-zrlk2s {flex:1;overflow:hidden;display:flex;flex-direction:column;}.documents-list.svelte-zrlk2s {overflow-y:auto;max-height:300px;border:1px solid #e9ecef;border-radius:8px;}.document-item.svelte-zrlk2s {display:flex;align-items:flex-start;width:100%;padding:12px 15px;border:none;background:white;color:#333;cursor:pointer;transition:all 0.2s;border-bottom:1px solid #f0f0f0;text-align:left;}.document-item.svelte-zrlk2s:last-child {border-bottom:none;}.document-item.svelte-zrlk2s:hover {background:#f8f9fa;color:#295dcf;}.document-icon.svelte-zrlk2s {margin-right:12px;color:#6c757d;width:20px;flex-shrink:0;margin-top:2px;}.document-title.svelte-zrlk2s {font-weight:500;margin-bottom:4px;word-wrap:break-word;}.document-path.svelte-zrlk2s {font-size:0.85em;color:#6c757d;word-wrap:break-word;}.input-group-text.svelte-zrlk2s {background:#f8f9fa;border-color:#e9ecef;color:#6c757d;}.document-item.selected.svelte-zrlk2s {background:#e7f3ff;border-left:3px solid #295dcf;}.document-item.selected.svelte-zrlk2s:hover {background:#d0e8ff;}.selected-indicator.svelte-zrlk2s {margin-left:auto;color:#28a745;font-size:1.2em;display:flex;align-items:center;}`
6159
6159
  };
6160
6160
  function qi(t, e) {
6161
- ie(e, !0), de(t, fh);
6161
+ ie(e, !0), de(t, fp);
6162
6162
  let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), s = g(e, "modeSelected", 15);
6163
6163
  const a = { default: 3, gendoc: 1, transcriptions: 1 }, i = 3;
6164
- let o = /* @__PURE__ */ Ze(() => rr(s())), c = Y(C([])), l = Y(C([])), u = Y(C([])), f = Y(C([])), p = Y(!1), h = Y(""), w = /* @__PURE__ */ Ze(() => s() === "normative" || s() === "suite" ? d(l) : s() === "gendoc" ? d(u) : s() === "transcriptions" ? d(f) : d(c));
6164
+ let o = /* @__PURE__ */ Ze(() => rr(s())), c = Y(C([])), l = Y(C([])), u = Y(C([])), f = Y(C([])), h = Y(!1), p = Y(""), w = /* @__PURE__ */ Ze(() => s() === "normative" || s() === "suite" ? d(l) : s() === "gendoc" ? d(u) : s() === "transcriptions" ? d(f) : d(c));
6165
6165
  const x = () => {
6166
6166
  m(c, C([])), m(l, C([])), m(u, C([])), m(f, C([]));
6167
6167
  }, k = (R) => n()[R._id] ? (delete n()[R._id], !0) : !1, b = (R) => Object.keys(n()).length >= R ? (alert(/* @__PURE__ */ gd({ count: R })), !1) : !0, _ = (R) => {
@@ -6204,29 +6204,29 @@ function qi(t, e) {
6204
6204
  Le([]);
6205
6205
  return;
6206
6206
  }
6207
- m(p, !0);
6207
+ m(h, !0);
6208
6208
  try {
6209
6209
  const Ye = await K();
6210
6210
  Le(Ye);
6211
6211
  } catch (Ye) {
6212
6212
  console.error(Pe, Ye), Le([]);
6213
6213
  } finally {
6214
- m(p, !1);
6214
+ m(h, !1);
6215
6215
  }
6216
6216
  };
6217
- var S = dh(), L = T(S), D = T(L), M = T(D), G = T(M);
6217
+ var S = dp(), L = T(S), D = T(L), M = T(D), G = T(M);
6218
6218
  y(M);
6219
6219
  var ge = O(M, 2);
6220
6220
  ge.__click = [
6221
- th,
6221
+ tp,
6222
6222
  r,
6223
- h,
6223
+ p,
6224
6224
  x
6225
6225
  ], y(D);
6226
6226
  var tt = O(D, 2), Ee = T(tt), Ce = T(Ee), ae = O(T(Ce), 2);
6227
6227
  Rl(ae), ae.__input = [
6228
- nh,
6229
- h,
6228
+ np,
6229
+ p,
6230
6230
  A,
6231
6231
  s,
6232
6232
  l,
@@ -6237,7 +6237,7 @@ function qi(t, e) {
6237
6237
  var Xe = O(Ee, 2), Qe = T(Xe);
6238
6238
  {
6239
6239
  var ct = (R) => {
6240
- var K = rh(), Le = T(K);
6240
+ var K = rp(), Le = T(K);
6241
6241
  Er(Le, { size: "30", color: "#295dcf" });
6242
6242
  var Pe = O(Le, 2), Ye = T(Pe, !0);
6243
6243
  y(Pe), y(K), P((Oe) => Se(Ye, Oe), [() => /* @__PURE__ */ ad()]), E(R, K);
@@ -6245,13 +6245,13 @@ function qi(t, e) {
6245
6245
  var K = yt(), Le = ot(K);
6246
6246
  {
6247
6247
  var Pe = (Oe) => {
6248
- var Me = sh(), Ge = O(T(Me), 2), ke = T(Ge, !0);
6248
+ var Me = sp(), Ge = O(T(Me), 2), ke = T(Ge, !0);
6249
6249
  y(Ge), y(Me), P((W) => Se(ke, W), [() => /* @__PURE__ */ id()]), E(Oe, Me);
6250
6250
  }, Ye = (Oe) => {
6251
6251
  var Me = yt(), Ge = ot(Me);
6252
6252
  {
6253
6253
  var ke = (Ie) => {
6254
- var ce = ah(), j = O(T(ce), 2), H = T(j);
6254
+ var ce = ap(), j = O(T(ce), 2), H = T(j);
6255
6255
  {
6256
6256
  var re = (je) => {
6257
6257
  var Ue = or();
@@ -6298,11 +6298,11 @@ function qi(t, e) {
6298
6298
  }
6299
6299
  y(j), y(ce), E(Ie, ce);
6300
6300
  }, W = (Ie) => {
6301
- var ce = uh();
6301
+ var ce = up();
6302
6302
  st(ce, 21, () => d(w), rt, (j, H) => {
6303
- var re = ch();
6304
- const ye = /* @__PURE__ */ Ze(() => Qp(d(H), d(o))), je = /* @__PURE__ */ Ze(() => Kp(d(H))), Ue = /* @__PURE__ */ Ze(() => eh(d(H)));
6305
- re.__click = [ih, $, H];
6303
+ var re = cp();
6304
+ const ye = /* @__PURE__ */ Ze(() => Qh(d(H), d(o))), je = /* @__PURE__ */ Ze(() => Kh(d(H))), Ue = /* @__PURE__ */ Ze(() => ep(d(H)));
6305
+ re.__click = [ip, $, H];
6306
6306
  var Re = T(re), fe = T(Re);
6307
6307
  y(Re);
6308
6308
  var Ve = O(Re, 2), N = T(Ve), B = T(N, !0);
@@ -6310,7 +6310,7 @@ function qi(t, e) {
6310
6310
  var te = O(N, 2);
6311
6311
  {
6312
6312
  var Z = (ze) => {
6313
- var Te = oh(), nt = T(Te, !0);
6313
+ var Te = op(), nt = T(Te, !0);
6314
6314
  y(Te), P(() => Se(nt, d(Ue))), E(ze, Te);
6315
6315
  };
6316
6316
  X(te, (ze) => {
@@ -6321,7 +6321,7 @@ function qi(t, e) {
6321
6321
  var J = O(Ve, 2);
6322
6322
  {
6323
6323
  var V = (ze) => {
6324
- var Te = lh();
6324
+ var Te = lp();
6325
6325
  E(ze, Te);
6326
6326
  };
6327
6327
  X(J, (ze) => {
@@ -6346,7 +6346,7 @@ function qi(t, e) {
6346
6346
  X(
6347
6347
  Le,
6348
6348
  (Oe) => {
6349
- d(h).length < i ? Oe(Pe) : Oe(Ye, !1);
6349
+ d(p).length < i ? Oe(Pe) : Oe(Ye, !1);
6350
6350
  },
6351
6351
  !0
6352
6352
  );
@@ -6354,13 +6354,13 @@ function qi(t, e) {
6354
6354
  E(R, K);
6355
6355
  };
6356
6356
  X(Qe, (R) => {
6357
- d(p) ? R(ct) : R(ft, !1);
6357
+ d(h) ? R(ct) : R(ft, !1);
6358
6358
  });
6359
6359
  }
6360
6360
  return y(Xe), y(tt), y(L), y(S), P(
6361
6361
  (R, K, Le) => {
6362
6362
  Se(G, `${R ?? ""}
6363
- ${K ?? ""}`), q(ae, "placeholder", `${R ?? ""} ${Le ?? ""} (min 3 caratteri)...`), Dl(ae, d(h));
6363
+ ${K ?? ""}`), q(ae, "placeholder", `${R ?? ""} ${Le ?? ""} (min 3 caratteri)...`), Dl(ae, d(p));
6364
6364
  },
6365
6365
  [
6366
6366
  () => /* @__PURE__ */ sd(),
@@ -6400,7 +6400,7 @@ le(
6400
6400
  [],
6401
6401
  !0
6402
6402
  );
6403
- const ph = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it", hh = Hp, vh = Yp;
6403
+ const hp = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it", pp = Hh, vp = Yh;
6404
6404
  function za(t) {
6405
6405
  switch (t) {
6406
6406
  case 1:
@@ -6421,7 +6421,7 @@ function za(t) {
6421
6421
  return "Standard Agent";
6422
6422
  }
6423
6423
  }
6424
- const gh = async (t) => {
6424
+ const gp = async (t) => {
6425
6425
  const e = await fetch(`${U.getUrl()}/chat/${t}`, {
6426
6426
  headers: {
6427
6427
  akstoken: U.getToken(),
@@ -6433,7 +6433,7 @@ const gh = async (t) => {
6433
6433
  throw new Error("Failed to fetch chat");
6434
6434
  const n = await e.json();
6435
6435
  return vn.fromJson(n);
6436
- }, mh = async () => {
6436
+ }, mp = async () => {
6437
6437
  const t = await fetch(`${U.getUrl()}/chat`, {
6438
6438
  headers: {
6439
6439
  akstoken: U.getToken(),
@@ -6444,7 +6444,7 @@ const gh = async (t) => {
6444
6444
  if (!t.ok)
6445
6445
  throw new Error("Failed to fetch chats");
6446
6446
  return (await t.json()).map((n) => vn.fromJson(n));
6447
- }, bh = async (t) => {
6447
+ }, bp = async (t) => {
6448
6448
  const e = await fetch(`${U.getUrl()}/chat`, {
6449
6449
  method: "POST",
6450
6450
  headers: {
@@ -6459,12 +6459,12 @@ const gh = async (t) => {
6459
6459
  throw new Error("Failed to create chat");
6460
6460
  const n = await e.json();
6461
6461
  return vn.fromJson(n);
6462
- }, wh = async (t, e, n, r, s, a, i) => {
6462
+ }, wp = async (t, e, n, r, s, a, i) => {
6463
6463
  let o, c = !1;
6464
6464
  try {
6465
6465
  let l = 0;
6466
6466
  n === "__file_uploaded__" ? (l = -1, e = " ") : n === "kb" ? l = 1 : n === "normative" ? l = 2 : n === "suite" ? l = 3 : n === "gendoc" ? l = 4 : n === "transcriptions" ? l = 5 : n === "audit_handler" ? l = 6 : n === "suite_agent" && (l = 7), await Bi(t, e, r);
6467
- const f = U.getUrl().replace(/^http/, "ws"), p = `chat/${t}/message?mode=${l}`, h = p.includes("?") ? "&" : "?", w = `${f}/${p}${h}akstoken=${U.getToken()}&envid=${U.getEnvironmentId()}&lang=${Sr(a)}`;
6467
+ const f = U.getUrl().replace(/^http/, "ws"), h = `chat/${t}/message?mode=${l}`, p = h.includes("?") ? "&" : "?", w = `${f}/${h}${p}akstoken=${U.getToken()}&envid=${U.getEnvironmentId()}&lang=${Sr(a)}`;
6468
6468
  o = new WebSocket(w), i && i.addEventListener("abort", () => {
6469
6469
  o && o.readyState === WebSocket.OPEN && (o.close(), c = !0);
6470
6470
  }), await new Promise((x, k) => {
@@ -6498,7 +6498,7 @@ const gh = async (t) => {
6498
6498
  }
6499
6499
  }
6500
6500
  return c;
6501
- }, xh = async (t, e) => {
6501
+ }, xp = async (t, e) => {
6502
6502
  if (!(await fetch(`${U.getUrl()}/chat/${t}/title`, {
6503
6503
  method: "POST",
6504
6504
  headers: {
@@ -6510,7 +6510,7 @@ const gh = async (t) => {
6510
6510
  body: JSON.stringify({ title: e })
6511
6511
  })).ok)
6512
6512
  throw new Error("Failed to change title");
6513
- }, _h = async (t) => {
6513
+ }, _p = async (t) => {
6514
6514
  if (!(await fetch(`${U.getUrl()}/chat/${t}`, {
6515
6515
  method: "DELETE",
6516
6516
  headers: {
@@ -6535,7 +6535,7 @@ const gh = async (t) => {
6535
6535
  })
6536
6536
  })).ok)
6537
6537
  throw new Error("Failed to insert message");
6538
- }, kh = async (t, e) => new Promise((n, r) => {
6538
+ }, kp = async (t, e) => new Promise((n, r) => {
6539
6539
  const s = new FormData();
6540
6540
  s.append("file", t);
6541
6541
  const a = new XMLHttpRequest();
@@ -6560,7 +6560,7 @@ const gh = async (t) => {
6560
6560
  }), a.addEventListener("error", () => {
6561
6561
  r(new Error("Failed to upload file"));
6562
6562
  }), a.open("POST", `${U.getUrl()}/files`), a.setRequestHeader("akstoken", U.getToken()), a.setRequestHeader("envid", U.getEnvironmentId()), a.setRequestHeader("ngrok-skip-browser-warning", "true"), a.send(s);
6563
- }), yh = async (t, e) => {
6563
+ }), yp = async (t, e) => {
6564
6564
  if (!(await fetch(`${U.getUrl()}/files`, {
6565
6565
  method: "DELETE",
6566
6566
  headers: {
@@ -6572,7 +6572,7 @@ const gh = async (t) => {
6572
6572
  body: JSON.stringify({ fileId: t, filename: e })
6573
6573
  })).ok)
6574
6574
  throw new Error("Failed to delete file");
6575
- }, zh = async (t) => {
6575
+ }, zp = async (t) => {
6576
6576
  if (!(await fetch(`${U.getUrl()}/chat/${t}/read`, {
6577
6577
  method: "POST",
6578
6578
  headers: {
@@ -6582,7 +6582,7 @@ const gh = async (t) => {
6582
6582
  }
6583
6583
  })).ok)
6584
6584
  throw new Error("Failed to mark chat as read");
6585
- }, Th = async () => {
6585
+ }, Tp = async () => {
6586
6586
  const t = await fetch(`${U.getUrl()}/chat/unread`, {
6587
6587
  headers: {
6588
6588
  akstoken: U.getToken(),
@@ -6594,27 +6594,27 @@ const gh = async (t) => {
6594
6594
  throw new Error("Failed to fetch unread chats");
6595
6595
  return await t.json();
6596
6596
  }, _t = {
6597
- getChat: gh,
6598
- getChats: mh,
6599
- newChat: bh,
6600
- sendMessage: wh,
6601
- deleteChat: _h,
6602
- changeTitle: xh,
6597
+ getChat: gp,
6598
+ getChats: mp,
6599
+ newChat: bp,
6600
+ sendMessage: wp,
6601
+ deleteChat: _p,
6602
+ changeTitle: xp,
6603
6603
  insertMessage: Bi,
6604
- uploadFile: kh,
6605
- deleteFile: yh,
6606
- readChat: zh,
6607
- getUnreadChats: Th
6608
- }, $h = (t, e, n) => {
6604
+ uploadFile: kp,
6605
+ deleteFile: yp,
6606
+ readChat: zp,
6607
+ getUnreadChats: Tp
6608
+ }, $p = (t, e, n) => {
6609
6609
  const r = t.target;
6610
6610
  e(r.value), n({});
6611
- }, Sh = (t, e) => {
6611
+ }, Sp = (t, e) => {
6612
6612
  m(e, !d(e));
6613
- }, Eh = (t, e, n) => {
6613
+ }, Ep = (t, e, n) => {
6614
6614
  m(e, !1), m(n, !0);
6615
6615
  };
6616
- var Ch = /* @__PURE__ */ F('<div class="chat-blocked-message svelte-1v0h2p0"><i class="fa-solid fa-clock-rotate-left svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></div>'), Ih = /* @__PURE__ */ F('<div class="dropdown-content svelte-1v0h2p0"><button><i class="fa-solid fa-file-circle-plus svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></button> <button><i class="fa-solid fa-upload svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></button></div>'), Ah = /* @__PURE__ */ F('<option class="svelte-1v0h2p0">Generatore di Normative</option>'), Lh = /* @__PURE__ */ F('<div class="attachment-title noopen-file-button svelte-1v0h2p0"> </div>'), Fh = (t, e, n, r, s) => e(n(), r(), s()), Rh = /* @__PURE__ */ F('<button class="attachment-title open-file-button svelte-1v0h2p0"> </button>'), Dh = (t, e, n, r, s) => e(n(), r(), s()), jh = /* @__PURE__ */ F('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-1v0h2p0"></i></button></div>'), Ph = /* @__PURE__ */ F('<button class="btn send-button stop-recording-btn svelte-1v0h2p0" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-1v0h2p0"></i></button>'), Oh = /* @__PURE__ */ F('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Synthesizing" disabled><!></button>'), Mh = /* @__PURE__ */ F('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-1v0h2p0"></i></button>'), Nh = /* @__PURE__ */ F('<button class="btn send-button stop-stream-btn svelte-1v0h2p0" aria-label="Stop message"><i class="fa-solid fa-stop svelte-1v0h2p0"></i></button>'), Uh = /* @__PURE__ */ F('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Loading" disabled><!></button>'), qh = /* @__PURE__ */ F('<button class="btn send-button aks-btn-answer send-message-btn svelte-1v0h2p0" aria-label="Send message"><i class="fa-solid fa-paper-plane svelte-1v0h2p0"></i></button>'), Bh = /* @__PURE__ */ F('<div class="top svelte-1v0h2p0"><textarea style="color: black !important;" class="form-control form-control-sm svelte-1v0h2p0" rows="2"></textarea></div> <div class="bottom svelte-1v0h2p0"><div class="controls-row svelte-1v0h2p0"><div class="plus-button-container svelte-1v0h2p0"><button><i></i></button> <!></div> <select class="mode-select svelte-1v0h2p0" aria-label="Select mode"><option class="svelte-1v0h2p0">Auto</option><option class="svelte-1v0h2p0">Manuale Suite</option><option class="svelte-1v0h2p0"> </option><option class="svelte-1v0h2p0">Knowledge Base</option><option class="svelte-1v0h2p0">GenDoc</option><option class="svelte-1v0h2p0">Trascrizioni</option><!><option class="svelte-1v0h2p0">Agente Suite</option></select> <div class="attachments-container svelte-1v0h2p0"></div> <div class="send-buttons svelte-1v0h2p0"><!> <!></div></div></div>', 1), Hh = /* @__PURE__ */ F('<div class="input svelte-1v0h2p0"><!></div> <!>', 1);
6617
- const Yh = {
6616
+ var Cp = /* @__PURE__ */ F('<div class="chat-blocked-message svelte-1v0h2p0"><i class="fa-solid fa-clock-rotate-left svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></div>'), Ip = /* @__PURE__ */ F('<div class="dropdown-content svelte-1v0h2p0"><button><i class="fa-solid fa-file-circle-plus svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></button> <button><i class="fa-solid fa-upload svelte-1v0h2p0"></i> <span class="svelte-1v0h2p0"> </span></button></div>'), Ap = /* @__PURE__ */ F('<option class="svelte-1v0h2p0">Generatore di Normative</option>'), Lp = /* @__PURE__ */ F('<div class="attachment-title noopen-file-button svelte-1v0h2p0"> </div>'), Fp = (t, e, n, r, s) => e(n(), r(), s()), Rp = /* @__PURE__ */ F('<button class="attachment-title open-file-button svelte-1v0h2p0"> </button>'), Dp = (t, e, n, r, s) => e(n(), r(), s()), jp = /* @__PURE__ */ F('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-1v0h2p0"></i></button></div>'), Pp = /* @__PURE__ */ F('<button class="btn send-button stop-recording-btn svelte-1v0h2p0" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-1v0h2p0"></i></button>'), Op = /* @__PURE__ */ F('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Synthesizing" disabled><!></button>'), Mp = /* @__PURE__ */ F('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-1v0h2p0"></i></button>'), Np = /* @__PURE__ */ F('<button class="btn send-button stop-stream-btn svelte-1v0h2p0" aria-label="Stop message"><i class="fa-solid fa-stop svelte-1v0h2p0"></i></button>'), Up = /* @__PURE__ */ F('<button class="btn send-button aks-btn-answer svelte-1v0h2p0" aria-label="Loading" disabled><!></button>'), qp = /* @__PURE__ */ F('<button class="btn send-button aks-btn-answer send-message-btn svelte-1v0h2p0" aria-label="Send message"><i class="fa-solid fa-paper-plane svelte-1v0h2p0"></i></button>'), Bp = /* @__PURE__ */ F('<div class="top svelte-1v0h2p0"><textarea style="color: black !important;" class="form-control form-control-sm svelte-1v0h2p0" rows="2"></textarea></div> <div class="bottom svelte-1v0h2p0"><div class="controls-row svelte-1v0h2p0"><div class="plus-button-container svelte-1v0h2p0"><button><i></i></button> <!></div> <select class="mode-select svelte-1v0h2p0" aria-label="Select mode"><option class="svelte-1v0h2p0">Auto</option><option class="svelte-1v0h2p0">Manuale Suite</option><option class="svelte-1v0h2p0"> </option><option class="svelte-1v0h2p0">Knowledge Base</option><option class="svelte-1v0h2p0">GenDoc</option><option class="svelte-1v0h2p0">Trascrizioni</option><!><option class="svelte-1v0h2p0">Agente Suite</option></select> <div class="attachments-container svelte-1v0h2p0"></div> <div class="send-buttons svelte-1v0h2p0"><!> <!></div></div></div>', 1), Hp = /* @__PURE__ */ F('<div class="input svelte-1v0h2p0"><!></div> <!>', 1);
6617
+ const Yp = {
6618
6618
  hash: "svelte-1v0h2p0",
6619
6619
  code: `textarea.svelte-1v0h2p0 {border:none;overflow-y:auto;resize:none;transition:height 0.1s ease;max-height:120px; /* 5 righe circa */}.noopen-file-button.svelte-1v0h2p0 {background:none;border:none;padding:0;font-size:0.875rem;color:black;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-1v0h2p0 {background:none;border:none;cursor:pointer;padding:0;font-size:0.875rem;color:white;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-1v0h2p0:hover {background-color:transparent;text-decoration:underline;}.mode-select.svelte-1v0h2p0 {flex-shrink:0;height:32px;padding:0 8px;border-radius:16px;border:2px solid #e9ecef;background-color:#f8f9fa;color:#295dcf;font-size:0.8rem;font-weight:500;cursor:pointer;transition:all 0.2s ease;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);outline:none;max-width:120px;}.mode-select.svelte-1v0h2p0:hover {background-color:#e9ecef;border-color:#295dcf;}.mode-select.svelte-1v0h2p0:focus {border-color:#295dcf;box-shadow:0 0 0 3px rgba(41, 93, 207, 0.1);}.plus-button-container.svelte-1v0h2p0 {position:relative;flex-shrink:0;}.plus-button.svelte-1v0h2p0 {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;background-color:#f8f9fa;color:#295dcf;border:2px solid #e9ecef;transition:all 0.2s ease;font-size:1.1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.plus-button.svelte-1v0h2p0:hover {background-color:#295dcf;color:white;border-color:#295dcf;transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.plus-button.svelte-1v0h2p0:active {transform:scale(0.95);}.plus-button-active.svelte-1v0h2p0 {background-color:#295dcf;color:white;border-color:#295dcf;}.plus-button-active.svelte-1v0h2p0:hover {background-color:#1d4a9e;border-color:#1d4a9e;transform:scale(1.05);}.controls-row.svelte-1v0h2p0 {display:flex;align-items:center;width:100%;gap:5px;min-width:0;}.attachments-container.svelte-1v0h2p0 {display:flex;gap:5px;overflow-x:auto;min-width:0;flex:1;padding:2px 0;\r
6620
6620
  /* Migliore supporto per lo scroll su touch devices */-webkit-overflow-scrolling:touch;}.attachments-container.svelte-1v0h2p0::-webkit-scrollbar {height:6px;}.attachments-container.svelte-1v0h2p0::-webkit-scrollbar-track {background:#f7fafc;border-radius:3px;}.attachments-container.svelte-1v0h2p0::-webkit-scrollbar-thumb {background:#cbd5e0;border-radius:3px;}.attachments-container.svelte-1v0h2p0::-webkit-scrollbar-thumb:hover {background:#a0aec0;}.attachment-item.svelte-1v0h2p0 {display:flex;align-items:center;flex-shrink:0;max-width:150px;background:#515b6a;color:white;border-radius:20px;padding:3px 10px 3px 10px;gap:5px;border:none;cursor:default;box-sizing:border-box;}.attachment-item.common.svelte-1v0h2p0 {background:#e2e8f0;color:black;}.attachment-title.svelte-1v0h2p0 {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:0.875rem;}.remove-btn.svelte-1v0h2p0 {flex-shrink:0;width:20px;height:20px;padding:0;display:flex;align-items:center;justify-content:center;font-size:0.75rem;background:transparent;border:none;color:white;cursor:pointer;transition:100ms;}.remove-btn.common.svelte-1v0h2p0 {color:black;}.remove-btn.svelte-1v0h2p0:hover {background:rgba(255, 255, 255, 0.3);border-radius:50%;}.remove-btn.common.svelte-1v0h2p0:hover {background:rgba(0, 0, 0, 0.3);color:black;}.remove-btn.svelte-1v0h2p0 i:where(.svelte-1v0h2p0) {margin:0;}.input.svelte-1v0h2p0 {display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;background:white;border-radius:15px;margin:10px;gap:3px;width:calc(100% - 20px);min-width:0;box-sizing:border-box;}.input.svelte-1v0h2p0 > .top:where(.svelte-1v0h2p0) {display:flex;justify-content:center;align-items:center;width:100%;}.input.svelte-1v0h2p0 > .bottom:where(.svelte-1v0h2p0) {display:flex;justify-content:center;align-items:center;width:100%;min-width:0;}.send-buttons.svelte-1v0h2p0 {display:flex;gap:5px;flex-shrink:0;}.send-button.svelte-1v0h2p0 {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;transition:all 0.2s ease;border:none;font-size:1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.send-button.svelte-1v0h2p0:hover {transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.send-button.svelte-1v0h2p0:active {transform:scale(0.95);}.send-button.aks-btn-answer.svelte-1v0h2p0:hover {background-color:#295dcf;border-color:#295dcf;color:white;}.send-button.svelte-1v0h2p0:disabled {opacity:0.4;cursor:not-allowed;transform:none;filter:grayscale(0.3);}.send-button.svelte-1v0h2p0:disabled:hover {transform:none;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);opacity:0.4;}.send-message-btn.svelte-1v0h2p0 {background-color:#295dcf;color:white;}.send-message-btn.svelte-1v0h2p0:hover {background-color:#1d4a9e;}.stop-recording-btn.svelte-1v0h2p0 {background-color:#dc3545;color:white;border-color:#dc3545;}.stop-recording-btn.svelte-1v0h2p0:hover {background-color:#c82333;border-color:#bd2130;transform:scale(1.05);}.stop-stream-btn.svelte-1v0h2p0 {background-color:#6c757d;color:white;border-color:#6c757d;}.stop-stream-btn.svelte-1v0h2p0:hover {background-color:#5a6268;border-color:#545b62;transform:scale(1.05);}\r
@@ -6635,8 +6635,8 @@ const Yh = {
6635
6635
  }`
6636
6636
  };
6637
6637
  function Hi(t, e) {
6638
- ie(e, !0), de(t, Yh);
6639
- let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), a = g(e, "languageSelected", 15), i = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), f = g(e, "streamMessage", 15), p = g(e, "uploadingFileName", 15), h = g(e, "uploadProgress", 15), w = Y(""), x = Y(null), k, b = Y(C([])), _ = Y(!1), $ = Y(!1), A = Y(!1), S = Y(!1), L = Y(null), D = /* @__PURE__ */ Ze(() => rr(i()));
6638
+ ie(e, !0), de(t, Yp);
6639
+ let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), a = g(e, "languageSelected", 15), i = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), f = g(e, "streamMessage", 15), h = g(e, "uploadingFileName", 15), p = g(e, "uploadProgress", 15), w = Y(""), x = Y(null), k, b = Y(C([])), _ = Y(!1), $ = Y(!1), A = Y(!1), S = Y(!1), L = Y(null), D = /* @__PURE__ */ Ze(() => rr(i()));
6640
6640
  const M = 20, G = 5, ge = 0.5;
6641
6641
  function tt(j, H) {
6642
6642
  return j ? i() === "normative" || i() === "suite" ? d(D).name : "" : H;
@@ -6695,18 +6695,18 @@ function Hi(t, e) {
6695
6695
  const Ve = !!((je = (ye = u()) == null ? void 0 : ye.state.info) != null && je.find((N) => N.key === "CLOUDSTORAGE_FILE_UPLOADED"));
6696
6696
  try {
6697
6697
  for (const N of Re) {
6698
- p(N.name), h(0);
6698
+ h(N.name), p(0);
6699
6699
  let B = 0, te = 0;
6700
6700
  fe = setInterval(
6701
6701
  () => {
6702
- B < 75 && te < 50 && (B += Math.random() * 4 + 2, B > 75 && (B = 75), h(B));
6702
+ B < 75 && te < 50 && (B += Math.random() * 4 + 2, B > 75 && (B = 75), p(B));
6703
6703
  },
6704
6704
  300
6705
6705
  );
6706
6706
  const Z = await l()(N, fe, (V) => {
6707
- te = V, V > 50 && fe && (clearInterval(fe), fe = null, h(75 + V * 0.25));
6707
+ te = V, V > 50 && fe && (clearInterval(fe), fe = null, p(75 + V * 0.25));
6708
6708
  });
6709
- fe && (clearInterval(fe), fe = null), p(""), h(0);
6709
+ fe && (clearInterval(fe), fe = null), h(""), p(0);
6710
6710
  let J = {
6711
6711
  id: Z.fileId,
6712
6712
  filename: N.name,
@@ -6724,7 +6724,7 @@ function Hi(t, e) {
6724
6724
  }
6725
6725
  }
6726
6726
  } catch (N) {
6727
- console.error("Error uploading file:", N), fe && (clearInterval(fe), fe = null), p(""), h(0);
6727
+ console.error("Error uploading file:", N), fe && (clearInterval(fe), fe = null), h(""), p(0);
6728
6728
  }
6729
6729
  }
6730
6730
  }, j.click();
@@ -6747,24 +6747,24 @@ function Hi(t, e) {
6747
6747
  Ft(() => {
6748
6748
  d(w) !== void 0 && ae();
6749
6749
  });
6750
- var Oe = Hh(), Me = ot(Oe), Ge = T(Me);
6750
+ var Oe = Hp(), Me = ot(Oe), Ge = T(Me);
6751
6751
  {
6752
6752
  var ke = (j) => {
6753
- var H = Ch(), re = O(T(H), 2), ye = T(re, !0);
6753
+ var H = Cp(), re = O(T(H), 2), ye = T(re, !0);
6754
6754
  y(re), y(H), P((je) => Se(ye, je), [() => /* @__PURE__ */ _d()]), E(j, H);
6755
6755
  }, W = (j) => {
6756
- var H = Bh(), re = ot(H), ye = T(re);
6756
+ var H = Bp(), re = ot(H), ye = T(re);
6757
6757
  $l(ye), ye.__input = ae, bs(ye, (z) => m(x, z), () => d(x)), y(re);
6758
6758
  var je = O(re, 2), Ue = T(je), Re = T(Ue), fe = T(Re);
6759
- fe.__click = [Sh, A];
6759
+ fe.__click = [Sp, A];
6760
6760
  var Ve = T(fe);
6761
6761
  y(fe);
6762
6762
  var N = O(fe, 2);
6763
6763
  {
6764
6764
  var B = (z) => {
6765
- var ne = Ih(), be = T(ne);
6765
+ var ne = Ip(), be = T(ne);
6766
6766
  be.__click = [
6767
- Eh,
6767
+ Ep,
6768
6768
  A,
6769
6769
  S
6770
6770
  ];
@@ -6772,17 +6772,17 @@ function Hi(t, e) {
6772
6772
  y(Be), y(be);
6773
6773
  var He = O(be, 2);
6774
6774
  He.__click = R;
6775
- var Ne = O(T(He), 2), pt = T(Ne, !0);
6775
+ var Ne = O(T(He), 2), ht = T(Ne, !0);
6776
6776
  y(Ne), y(He), y(ne), P(
6777
6777
  (Ht, Pn, ar, Zr, Vr, ir, jt) => {
6778
6778
  ut(be, `${Ht ?? ""} svelte-1v0h2p0`), be.disabled = Pn, Se(dn, `${ar ?? ""}
6779
- ${Zr ?? ""}`), ut(He, `${Vr ?? ""} svelte-1v0h2p0`), He.disabled = ir, Se(pt, jt);
6779
+ ${Zr ?? ""}`), ut(He, `${Vr ?? ""} svelte-1v0h2p0`), He.disabled = ir, Se(ht, jt);
6780
6780
  },
6781
6781
  [
6782
6782
  () => `dropdown-option ${Pe.includes(i()) ? "" : "option-disabled"}`,
6783
6783
  () => !Pe.includes(i()),
6784
6784
  () => /* @__PURE__ */ Gu(),
6785
- () => vh(i()),
6785
+ () => vp(i()),
6786
6786
  () => `dropdown-option ${Ye.includes(i()) ? "" : "option-disabled"}`,
6787
6787
  () => !Ye.includes(i()),
6788
6788
  () => /* @__PURE__ */ Ju()
@@ -6795,7 +6795,7 @@ function Hi(t, e) {
6795
6795
  }
6796
6796
  y(Re);
6797
6797
  var te = O(Re, 2);
6798
- te.__change = [$h, i, o];
6798
+ te.__change = [$p, i, o];
6799
6799
  var Z = T(te);
6800
6800
  Z.value = (Z.__value = "auto") == null ? "" : "auto";
6801
6801
  var J = O(Z);
@@ -6808,12 +6808,12 @@ function Hi(t, e) {
6808
6808
  Te.value = (Te.__value = "kb") == null ? "" : "kb";
6809
6809
  var nt = O(Te);
6810
6810
  nt.value = (nt.__value = "gendoc") == null ? "" : "gendoc";
6811
- var pe = O(nt);
6812
- pe.value = (pe.__value = "transcriptions") == null ? "" : "transcriptions";
6813
- var $e = O(pe);
6811
+ var he = O(nt);
6812
+ he.value = (he.__value = "transcriptions") == null ? "" : "transcriptions";
6813
+ var $e = O(he);
6814
6814
  {
6815
6815
  var Je = (z) => {
6816
- var ne = Ah();
6816
+ var ne = Ap();
6817
6817
  ne.value = (ne.__value = "audit_handler") == null ? "" : "audit_handler", E(z, ne);
6818
6818
  };
6819
6819
  X($e, (z) => {
@@ -6824,11 +6824,11 @@ function Hi(t, e) {
6824
6824
  Ke.value = (Ke.__value = "suite_agent") == null ? "" : "suite_agent", y(te);
6825
6825
  var me = O(te, 2);
6826
6826
  st(me, 21, () => Object.entries(o()), rt, (z, ne) => {
6827
- let be = () => d(ne)[0], Be = () => d(ne)[1].title, dn = () => d(ne)[1].ext_id, He = () => d(ne)[1].gendoc_id, Ne = () => d(ne)[1].storage_id, pt = () => d(ne)[1].isCommon;
6828
- var Ht = jh(), Pn = T(Ht), ar = O(Pn, 2);
6827
+ let be = () => d(ne)[0], Be = () => d(ne)[1].title, dn = () => d(ne)[1].ext_id, He = () => d(ne)[1].gendoc_id, Ne = () => d(ne)[1].storage_id, ht = () => d(ne)[1].isCommon;
6828
+ var Ht = jp(), Pn = T(Ht), ar = O(Pn, 2);
6829
6829
  {
6830
6830
  var Zr = (jt) => {
6831
- var Lt = Lh(), On = T(Lt, !0);
6831
+ var Lt = Lp(), On = T(Lt, !0);
6832
6832
  y(Lt), P(
6833
6833
  (na) => {
6834
6834
  q(Lt, "title", na), Se(On, na);
@@ -6836,9 +6836,9 @@ function Hi(t, e) {
6836
6836
  [() => Be().split(".")[0]]
6837
6837
  ), E(jt, Lt);
6838
6838
  }, Vr = (jt) => {
6839
- var Lt = Rh();
6839
+ var Lt = Rp();
6840
6840
  Lt.__click = [
6841
- Fh,
6841
+ Fp,
6842
6842
  Le,
6843
6843
  dn,
6844
6844
  Be,
@@ -6848,23 +6848,23 @@ function Hi(t, e) {
6848
6848
  y(Lt), P(() => Se(On, Be())), E(jt, Lt);
6849
6849
  };
6850
6850
  X(ar, (jt) => {
6851
- pt() ? jt(Zr) : jt(Vr, !1);
6851
+ ht() ? jt(Zr) : jt(Vr, !1);
6852
6852
  });
6853
6853
  }
6854
6854
  var ir = O(ar, 2);
6855
6855
  ir.__click = [
6856
- Dh,
6856
+ Dp,
6857
6857
  K,
6858
6858
  be,
6859
6859
  Be,
6860
6860
  Ne
6861
6861
  ], y(Ht), P(
6862
6862
  (jt, Lt, On) => {
6863
- ut(Ht, `${`attachment-item ${pt() ? "common" : ""}` ?? ""} svelte-1v0h2p0`), q(Ht, "title", jt), ut(Pn, `${Lt ?? ""} svelte-1v0h2p0`), q(Pn, "style", On), ut(ir, `${`remove-btn ${pt() ? "common" : ""}` ?? ""} svelte-1v0h2p0`);
6863
+ ut(Ht, `${`attachment-item ${ht() ? "common" : ""}` ?? ""} svelte-1v0h2p0`), q(Ht, "title", jt), ut(Pn, `${Lt ?? ""} svelte-1v0h2p0`), q(Pn, "style", On), ut(ir, `${`remove-btn ${ht() ? "common" : ""}` ?? ""} svelte-1v0h2p0`);
6864
6864
  },
6865
6865
  [
6866
- () => tt(pt() ?? !1, Be()),
6867
- () => `fa-solid ${hh(Be())}`,
6866
+ () => tt(ht() ?? !1, Be()),
6867
+ () => `fa-solid ${pp(Be())}`,
6868
6868
  () => Be().toLowerCase().endsWith(".tldv") ? "color: #1d1dff" : ""
6869
6869
  ]
6870
6870
  ), E(z, Ht);
@@ -6872,19 +6872,19 @@ function Hi(t, e) {
6872
6872
  var We = O(me, 2), qe = T(We);
6873
6873
  {
6874
6874
  var at = (z) => {
6875
- var ne = Ph();
6875
+ var ne = Pp();
6876
6876
  ne.__click = ft, P((be) => q(ne, "title", be), [() => /* @__PURE__ */ Zu()]), E(z, ne);
6877
6877
  }, se = (z) => {
6878
6878
  var ne = yt(), be = ot(ne);
6879
6879
  {
6880
6880
  var Be = (He) => {
6881
- var Ne = Oh(), pt = T(Ne);
6882
- Er(pt, { size: "20", color: "white" }), y(Ne), E(He, Ne);
6881
+ var Ne = Op(), ht = T(Ne);
6882
+ Er(ht, { size: "20", color: "white" }), y(Ne), E(He, Ne);
6883
6883
  }, dn = (He) => {
6884
- var Ne = Mh();
6884
+ var Ne = Mp();
6885
6885
  Ne.__click = ct, P(
6886
- (pt) => {
6887
- q(Ne, "title", pt), Ne.disabled = s();
6886
+ (ht) => {
6887
+ q(Ne, "title", ht), Ne.disabled = s();
6888
6888
  },
6889
6889
  [() => /* @__PURE__ */ Vu()]
6890
6890
  ), E(He, Ne);
@@ -6906,22 +6906,22 @@ function Hi(t, e) {
6906
6906
  var ee = O(qe, 2);
6907
6907
  {
6908
6908
  var Fe = (z) => {
6909
- var ne = Nh();
6909
+ var ne = Np();
6910
6910
  ne.__click = function(...be) {
6911
6911
  var Be;
6912
6912
  (Be = r()) == null || Be.apply(this, be);
6913
- }, P((be) => q(ne, "title", be), [() => /* @__PURE__ */ pd()]), E(z, ne);
6913
+ }, P((be) => q(ne, "title", be), [() => /* @__PURE__ */ hd()]), E(z, ne);
6914
6914
  }, it = (z) => {
6915
6915
  var ne = yt(), be = ot(ne);
6916
6916
  {
6917
6917
  var Be = (He) => {
6918
- var Ne = Uh(), pt = T(Ne);
6919
- Er(pt, { size: "20", color: "white" }), y(Ne), E(He, Ne);
6918
+ var Ne = Up(), ht = T(Ne);
6919
+ Er(ht, { size: "20", color: "white" }), y(Ne), E(He, Ne);
6920
6920
  }, dn = (He) => {
6921
- var Ne = qh();
6921
+ var Ne = qp();
6922
6922
  Ne.__click = Qe, P(
6923
- (pt, Ht) => {
6924
- q(Ne, "title", pt), Ne.disabled = Ht;
6923
+ (ht, Ht) => {
6924
+ q(Ne, "title", ht), Ne.disabled = Ht;
6925
6925
  },
6926
6926
  [
6927
6927
  () => /* @__PURE__ */ Xu(),
@@ -7052,16 +7052,16 @@ function Hi(t, e) {
7052
7052
  f(j), v();
7053
7053
  },
7054
7054
  get uploadingFileName() {
7055
- return p();
7055
+ return h();
7056
7056
  },
7057
7057
  set uploadingFileName(j) {
7058
- p(j), v();
7058
+ h(j), v();
7059
7059
  },
7060
7060
  get uploadProgress() {
7061
- return h();
7061
+ return p();
7062
7062
  },
7063
7063
  set uploadProgress(j) {
7064
- h(j), v();
7064
+ p(j), v();
7065
7065
  }
7066
7066
  });
7067
7067
  }
@@ -7143,19 +7143,19 @@ const Yi = /^[a-z0-9]+(-[a-z0-9]+)*$/, Yr = (t, e, n, r = "") => {
7143
7143
  body: "",
7144
7144
  hidden: !1
7145
7145
  });
7146
- function Gh(t, e) {
7146
+ function Gp(t, e) {
7147
7147
  const n = {};
7148
7148
  !t.hFlip != !e.hFlip && (n.hFlip = !0), !t.vFlip != !e.vFlip && (n.vFlip = !0);
7149
7149
  const r = ((t.rotate || 0) + (e.rotate || 0)) % 4;
7150
7150
  return r && (n.rotate = r), n;
7151
7151
  }
7152
7152
  function Ta(t, e) {
7153
- const n = Gh(t, e);
7153
+ const n = Gp(t, e);
7154
7154
  for (const r in xs)
7155
7155
  r in Cr ? r in t && !(r in n) && (n[r] = Cr[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
7156
7156
  return n;
7157
7157
  }
7158
- function Jh(t, e) {
7158
+ function Jp(t, e) {
7159
7159
  const n = t.icons, r = t.aliases || /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ Object.create(null);
7160
7160
  function a(i) {
7161
7161
  if (n[i])
@@ -7169,7 +7169,7 @@ function Jh(t, e) {
7169
7169
  }
7170
7170
  return Object.keys(n).concat(Object.keys(r)).forEach(a), s;
7171
7171
  }
7172
- function Wh(t, e, n) {
7172
+ function Wp(t, e, n) {
7173
7173
  const r = t.icons, s = t.aliases || /* @__PURE__ */ Object.create(null);
7174
7174
  let a = {};
7175
7175
  function i(o) {
@@ -7187,14 +7187,14 @@ function Ji(t, e) {
7187
7187
  t.not_found instanceof Array && t.not_found.forEach((s) => {
7188
7188
  e(s, null), n.push(s);
7189
7189
  });
7190
- const r = Jh(t);
7190
+ const r = Jp(t);
7191
7191
  for (const s in r) {
7192
7192
  const a = r[s];
7193
- a && (e(s, Wh(t, s, a)), n.push(s));
7193
+ a && (e(s, Wp(t, s, a)), n.push(s));
7194
7194
  }
7195
7195
  return n;
7196
7196
  }
7197
- const Zh = {
7197
+ const Zp = {
7198
7198
  provider: "",
7199
7199
  aliases: {},
7200
7200
  not_found: {},
@@ -7210,7 +7210,7 @@ function Wi(t) {
7210
7210
  if (typeof t != "object" || t === null)
7211
7211
  return null;
7212
7212
  const e = t;
7213
- if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !ss(t, Zh))
7213
+ if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !ss(t, Zp))
7214
7214
  return null;
7215
7215
  const n = e.icons;
7216
7216
  for (const s in n) {
@@ -7243,7 +7243,7 @@ function Wi(t) {
7243
7243
  return e;
7244
7244
  }
7245
7245
  const $a = /* @__PURE__ */ Object.create(null);
7246
- function Vh(t, e) {
7246
+ function Vp(t, e) {
7247
7247
  return {
7248
7248
  provider: t,
7249
7249
  prefix: e,
@@ -7253,14 +7253,14 @@ function Vh(t, e) {
7253
7253
  }
7254
7254
  function Cn(t, e) {
7255
7255
  const n = $a[t] || ($a[t] = /* @__PURE__ */ Object.create(null));
7256
- return n[e] || (n[e] = Vh(t, e));
7256
+ return n[e] || (n[e] = Vp(t, e));
7257
7257
  }
7258
7258
  function Zi(t, e) {
7259
7259
  return Wi(e) ? Ji(e, (n, r) => {
7260
7260
  r ? t.icons[n] = r : t.missing.add(n);
7261
7261
  }) : [];
7262
7262
  }
7263
- function Xh(t, e, n) {
7263
+ function Xp(t, e, n) {
7264
7264
  try {
7265
7265
  if (typeof n.body == "string")
7266
7266
  return t.icons[e] = { ...n }, !0;
@@ -7272,19 +7272,19 @@ let Qn = !1;
7272
7272
  function Vi(t) {
7273
7273
  return typeof t == "boolean" && (Qn = t), Qn;
7274
7274
  }
7275
- function Qh(t) {
7275
+ function Qp(t) {
7276
7276
  const e = typeof t == "string" ? Yr(t, !0, Qn) : t;
7277
7277
  if (e) {
7278
7278
  const n = Cn(e.provider, e.prefix), r = e.name;
7279
7279
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
7280
7280
  }
7281
7281
  }
7282
- function Kh(t, e) {
7282
+ function Kp(t, e) {
7283
7283
  const n = Yr(t, !0, Qn);
7284
7284
  if (!n)
7285
7285
  return !1;
7286
7286
  const r = Cn(n.provider, n.prefix);
7287
- return e ? Xh(r, n.name, e) : (r.missing.add(n.name), !0);
7287
+ return e ? Xp(r, n.name, e) : (r.missing.add(n.name), !0);
7288
7288
  }
7289
7289
  function ev(t, e) {
7290
7290
  if (typeof t != "object")
@@ -7292,7 +7292,7 @@ function ev(t, e) {
7292
7292
  if (typeof e != "string" && (e = t.provider || ""), Qn && !e && !t.prefix) {
7293
7293
  let s = !1;
7294
7294
  return Wi(t) && (t.prefix = "", Ji(t, (a, i) => {
7295
- Kh(a, i) && (s = !0);
7295
+ Kp(a, i) && (s = !0);
7296
7296
  })), s;
7297
7297
  }
7298
7298
  const n = t.prefix;
@@ -7411,13 +7411,13 @@ function ov(t, e) {
7411
7411
  const i = r.width, o = r.height, c = s.width, l = s.height;
7412
7412
  let u, f;
7413
7413
  i === null ? (f = o === null ? "1em" : o === "auto" ? l : o, u = Sa(f, c / l)) : (u = i === "auto" ? c : i, f = o === null ? Sa(u, l / c) : o === "auto" ? l : o);
7414
- const p = {}, h = (x, k) => {
7415
- iv(k) || (p[x] = k.toString());
7414
+ const h = {}, p = (x, k) => {
7415
+ iv(k) || (h[x] = k.toString());
7416
7416
  };
7417
- h("width", u), h("height", f);
7417
+ p("width", u), p("height", f);
7418
7418
  const w = [s.left, s.top, c, l];
7419
- return p.viewBox = w.join(" "), {
7420
- attributes: p,
7419
+ return h.viewBox = w.join(" "), {
7420
+ attributes: h,
7421
7421
  viewBox: w,
7422
7422
  body: a
7423
7423
  };
@@ -7483,14 +7483,14 @@ for (; Nn.length > 0; )
7483
7483
  Ys[""] = Hs({
7484
7484
  resources: ["https://api.iconify.design"].concat(gr)
7485
7485
  });
7486
- function pv(t, e) {
7486
+ function hv(t, e) {
7487
7487
  const n = Hs(e);
7488
7488
  return n === null ? !1 : (Ys[t] = n, !0);
7489
7489
  }
7490
7490
  function Gs(t) {
7491
7491
  return Ys[t];
7492
7492
  }
7493
- const hv = () => {
7493
+ const pv = () => {
7494
7494
  let t;
7495
7495
  try {
7496
7496
  if (t = fetch, typeof t == "function")
@@ -7498,7 +7498,7 @@ const hv = () => {
7498
7498
  } catch {
7499
7499
  }
7500
7500
  };
7501
- let Ea = hv();
7501
+ let Ea = pv();
7502
7502
  function vv(t, e) {
7503
7503
  const n = Gs(t);
7504
7504
  if (!n)
@@ -7708,18 +7708,18 @@ function Sv(t, e, n, r) {
7708
7708
  } else
7709
7709
  i = t.resources.slice(a).concat(t.resources.slice(0, a));
7710
7710
  const o = Date.now();
7711
- let c = "pending", l = 0, u, f = null, p = [], h = [];
7712
- typeof r == "function" && h.push(r);
7711
+ let c = "pending", l = 0, u, f = null, h = [], p = [];
7712
+ typeof r == "function" && p.push(r);
7713
7713
  function w() {
7714
7714
  f && (clearTimeout(f), f = null);
7715
7715
  }
7716
7716
  function x() {
7717
- c === "pending" && (c = "aborted"), w(), p.forEach((L) => {
7717
+ c === "pending" && (c = "aborted"), w(), h.forEach((L) => {
7718
7718
  L.status === "pending" && (L.status = "aborted");
7719
- }), p = [];
7719
+ }), h = [];
7720
7720
  }
7721
7721
  function k(L, D) {
7722
- D && (h = []), typeof L == "function" && h.push(L);
7722
+ D && (p = []), typeof L == "function" && p.push(L);
7723
7723
  }
7724
7724
  function b() {
7725
7725
  return {
@@ -7727,24 +7727,24 @@ function Sv(t, e, n, r) {
7727
7727
  payload: e,
7728
7728
  status: c,
7729
7729
  queriesSent: l,
7730
- queriesPending: p.length,
7730
+ queriesPending: h.length,
7731
7731
  subscribe: k,
7732
7732
  abort: x
7733
7733
  };
7734
7734
  }
7735
7735
  function _() {
7736
- c = "failed", h.forEach((L) => {
7736
+ c = "failed", p.forEach((L) => {
7737
7737
  L(void 0, u);
7738
7738
  });
7739
7739
  }
7740
7740
  function $() {
7741
- p.forEach((L) => {
7741
+ h.forEach((L) => {
7742
7742
  L.status === "pending" && (L.status = "aborted");
7743
- }), p = [];
7743
+ }), h = [];
7744
7744
  }
7745
7745
  function A(L, D, M) {
7746
7746
  const G = D !== "success";
7747
- switch (p = p.filter((ge) => ge !== L), c) {
7747
+ switch (h = h.filter((ge) => ge !== L), c) {
7748
7748
  case "pending":
7749
7749
  break;
7750
7750
  case "failed":
@@ -7759,14 +7759,14 @@ function Sv(t, e, n, r) {
7759
7759
  return;
7760
7760
  }
7761
7761
  if (G) {
7762
- u = M, p.length || (i.length ? S() : _());
7762
+ u = M, h.length || (i.length ? S() : _());
7763
7763
  return;
7764
7764
  }
7765
7765
  if (w(), $(), !t.random) {
7766
7766
  const ge = t.resources.indexOf(L.resource);
7767
7767
  ge !== -1 && ge !== t.index && (t.index = ge);
7768
7768
  }
7769
- c = "completed", h.forEach((ge) => {
7769
+ c = "completed", p.forEach((ge) => {
7770
7770
  ge(M);
7771
7771
  });
7772
7772
  }
@@ -7776,7 +7776,7 @@ function Sv(t, e, n, r) {
7776
7776
  w();
7777
7777
  const L = i.shift();
7778
7778
  if (L === void 0) {
7779
- if (p.length) {
7779
+ if (h.length) {
7780
7780
  f = setTimeout(() => {
7781
7781
  w(), c === "pending" && ($(), _());
7782
7782
  }, t.timeout);
@@ -7792,7 +7792,7 @@ function Sv(t, e, n, r) {
7792
7792
  A(D, M, G);
7793
7793
  }
7794
7794
  };
7795
- p.push(D), l++, f = setTimeout(S, t.rotate), n(L, e, D.callback);
7795
+ h.push(D), l++, f = setTimeout(S, t.rotate), n(L, e, D.callback);
7796
7796
  }
7797
7797
  return setTimeout(S), b;
7798
7798
  }
@@ -7810,8 +7810,8 @@ function eo(t) {
7810
7810
  e,
7811
7811
  o,
7812
7812
  c,
7813
- (f, p) => {
7814
- r(), l && l(f, p);
7813
+ (f, h) => {
7814
+ r(), l && l(f, h);
7815
7815
  }
7816
7816
  );
7817
7817
  return n.push(u), u;
@@ -7924,14 +7924,14 @@ function Lv(t, e) {
7924
7924
  if (a) {
7925
7925
  s.forEach((u) => {
7926
7926
  const f = a(u, r, n);
7927
- Aa(f, (p) => {
7928
- const h = p ? {
7927
+ Aa(f, (h) => {
7928
+ const p = h ? {
7929
7929
  prefix: r,
7930
7930
  icons: {
7931
- [u]: p
7931
+ [u]: h
7932
7932
  }
7933
7933
  } : null;
7934
- Un(t, [u], h);
7934
+ Un(t, [u], p);
7935
7935
  });
7936
7936
  });
7937
7937
  return;
@@ -7976,8 +7976,8 @@ const Fv = (t, e) => {
7976
7976
  const f = s[l] || (s[l] = /* @__PURE__ */ Object.create(null));
7977
7977
  f[u] || (f[u] = []);
7978
7978
  }), r.pending.forEach((c) => {
7979
- const { provider: l, prefix: u, name: f } = c, p = Cn(l, u), h = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
7980
- h.has(f) || (h.add(f), s[l][u].push(f));
7979
+ const { provider: l, prefix: u, name: f } = c, h = Cn(l, u), p = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
7980
+ p.has(f) || (p.add(f), s[l][u].push(f));
7981
7981
  }), a.forEach((c) => {
7982
7982
  const l = s[c.provider][c.prefix];
7983
7983
  l.length && Lv(c, l);
@@ -8126,12 +8126,12 @@ function Yv(t, e) {
8126
8126
  body: dv(i.body, _ ? () => _ + "ID" + b++ : "iconifySvelte")
8127
8127
  };
8128
8128
  }
8129
- const { body: c, width: l, height: u } = t, f = r === "mask" || (r === "bg" ? !1 : c.indexOf("currentColor") !== -1), p = Ov(c, {
8129
+ const { body: c, width: l, height: u } = t, f = r === "mask" || (r === "bg" ? !1 : c.indexOf("currentColor") !== -1), h = Ov(c, {
8130
8130
  ...o,
8131
8131
  width: l + "",
8132
8132
  height: u + ""
8133
8133
  }), w = {
8134
- "--svg": Uv(p)
8134
+ "--svg": Uv(h)
8135
8135
  }, x = (b) => {
8136
8136
  const _ = o[b];
8137
8137
  _ && (w[b] = Hv(_));
@@ -8171,7 +8171,7 @@ if (typeof document < "u" && typeof window < "u") {
8171
8171
  const s = e[n];
8172
8172
  if (typeof s != "object" || !s || s.resources === void 0)
8173
8173
  continue;
8174
- pv(n, s) || console.error(r);
8174
+ hv(n, s) || console.error(r);
8175
8175
  } catch {
8176
8176
  console.error(r);
8177
8177
  }
@@ -8187,7 +8187,7 @@ function Gv(t, e, n, r, s) {
8187
8187
  let i;
8188
8188
  if (typeof t != "string" || (i = Yr(t, !1, !0)) === null)
8189
8189
  return a(), null;
8190
- const o = Qh(i);
8190
+ const o = Qp(i);
8191
8191
  if (!o)
8192
8192
  return n && (!e.loading || e.loading.name !== t) && (a(), e.name = "", e.loading = {
8193
8193
  name: t,
@@ -8222,8 +8222,8 @@ function rn(t, e) {
8222
8222
  destroyed: !1
8223
8223
  });
8224
8224
  let s = Kt(!1), a = Kt(0), i = Kt();
8225
- const o = (p) => {
8226
- typeof n.onLoad == "function" && n.onLoad(p), Jl()("load", { icon: p });
8225
+ const o = (h) => {
8226
+ typeof n.onLoad == "function" && n.onLoad(h), Jl()("load", { icon: h });
8227
8227
  };
8228
8228
  function c() {
8229
8229
  Xn(a);
@@ -8236,14 +8236,14 @@ function rn(t, e) {
8236
8236
  () => (d(a), jn(n), d(s), d(r), d(i), Da),
8237
8237
  () => {
8238
8238
  d(a);
8239
- const p = !!n.ssr || d(s), h = Gv(n.icon, d(r), p, c, o);
8240
- m(i, h ? Da(h.data, n) : null), d(i) && h.classes && Kr(i, d(i).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + h.classes.join(" "));
8239
+ const h = !!n.ssr || d(s), p = Gv(n.icon, d(r), h, c, o);
8240
+ m(i, p ? Da(p.data, n) : null), d(i) && p.classes && Kr(i, d(i).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + p.classes.join(" "));
8241
8241
  }
8242
8242
  ), tr(), wt();
8243
8243
  var l = yt(), u = ot(l);
8244
8244
  {
8245
- var f = (p) => {
8246
- var h = yt(), w = ot(h);
8245
+ var f = (h) => {
8246
+ var p = yt(), w = ot(p);
8247
8247
  {
8248
8248
  var x = (b) => {
8249
8249
  var _ = Jv();
@@ -8259,10 +8259,10 @@ function rn(t, e) {
8259
8259
  d(i).svg ? b(x) : b(k, !1);
8260
8260
  });
8261
8261
  }
8262
- E(p, h);
8262
+ E(h, p);
8263
8263
  };
8264
- X(u, (p) => {
8265
- d(i) && p(f);
8264
+ X(u, (h) => {
8265
+ d(i) && h(f);
8266
8266
  });
8267
8267
  }
8268
8268
  E(t, l), oe();
@@ -8384,21 +8384,21 @@ const dt = {
8384
8384
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
8385
8385
  paragraph: _e(Zs).replace("hr", sr).replace("heading", ` *#{1,6} *[^
8386
8386
  ]`).replace("lheading", so).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
8387
- }, og = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, lg = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, io = /^( {2,}|\\)\n(?!\s*$)/, cg = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Wr = /[\p{P}\p{S}]/u, Ks = /[\s\p{P}\p{S}]/u, oo = /[^\s\p{P}\p{S}]/u, ug = _e(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ks).getRegex(), lo = /(?!~)[\p{P}\p{S}]/u, dg = /(?!~)[\s\p{P}\p{S}]/u, fg = /(?:[^\s\p{P}\p{S}]|~)/u, pg = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, co = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, hg = _e(co, "u").replace(/punct/g, Wr).getRegex(), vg = _e(co, "u").replace(/punct/g, lo).getRegex(), uo = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", gg = _e(uo, "gu").replace(/notPunctSpace/g, oo).replace(/punctSpace/g, Ks).replace(/punct/g, Wr).getRegex(), mg = _e(uo, "gu").replace(/notPunctSpace/g, fg).replace(/punctSpace/g, dg).replace(/punct/g, lo).getRegex(), bg = _e("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, oo).replace(/punctSpace/g, Ks).replace(/punct/g, Wr).getRegex(), wg = _e(/\\(punct)/, "gu").replace(/punct/g, Wr).getRegex(), xg = _e(/^<(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(), _g = _e(Xs).replace("(?:-->|$)", "-->").getRegex(), kg = _e("^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", _g).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ir = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, yg = _e(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ir).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), fo = _e(/^!?\[(label)\]\[(ref)\]/).replace("label", Ir).replace("ref", Vs).getRegex(), po = _e(/^!?\[(ref)\](?:\[\])?/).replace("ref", Vs).getRegex(), zg = _e("reflink|nolink(?!\\()", "g").replace("reflink", fo).replace("nolink", po).getRegex(), ea = {
8387
+ }, og = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, lg = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, io = /^( {2,}|\\)\n(?!\s*$)/, cg = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Wr = /[\p{P}\p{S}]/u, Ks = /[\s\p{P}\p{S}]/u, oo = /[^\s\p{P}\p{S}]/u, ug = _e(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ks).getRegex(), lo = /(?!~)[\p{P}\p{S}]/u, dg = /(?!~)[\s\p{P}\p{S}]/u, fg = /(?:[^\s\p{P}\p{S}]|~)/u, hg = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, co = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, pg = _e(co, "u").replace(/punct/g, Wr).getRegex(), vg = _e(co, "u").replace(/punct/g, lo).getRegex(), uo = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", gg = _e(uo, "gu").replace(/notPunctSpace/g, oo).replace(/punctSpace/g, Ks).replace(/punct/g, Wr).getRegex(), mg = _e(uo, "gu").replace(/notPunctSpace/g, fg).replace(/punctSpace/g, dg).replace(/punct/g, lo).getRegex(), bg = _e("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, oo).replace(/punctSpace/g, Ks).replace(/punct/g, Wr).getRegex(), wg = _e(/\\(punct)/, "gu").replace(/punct/g, Wr).getRegex(), xg = _e(/^<(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(), _g = _e(Xs).replace("(?:-->|$)", "-->").getRegex(), kg = _e("^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", _g).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ir = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, yg = _e(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ir).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), fo = _e(/^!?\[(label)\]\[(ref)\]/).replace("label", Ir).replace("ref", Vs).getRegex(), ho = _e(/^!?\[(ref)\](?:\[\])?/).replace("ref", Vs).getRegex(), zg = _e("reflink|nolink(?!\\()", "g").replace("reflink", fo).replace("nolink", ho).getRegex(), ea = {
8388
8388
  _backpedal: Gn,
8389
8389
  // only used for GFM url
8390
8390
  anyPunctuation: wg,
8391
8391
  autolink: xg,
8392
- blockSkip: pg,
8392
+ blockSkip: hg,
8393
8393
  br: io,
8394
8394
  code: lg,
8395
8395
  del: Gn,
8396
- emStrongLDelim: hg,
8396
+ emStrongLDelim: pg,
8397
8397
  emStrongRDelimAst: gg,
8398
8398
  emStrongRDelimUnd: bg,
8399
8399
  escape: og,
8400
8400
  link: yg,
8401
- nolink: po,
8401
+ nolink: ho,
8402
8402
  punctuation: ug,
8403
8403
  reflink: fo,
8404
8404
  reflinkSearch: zg,
@@ -8624,23 +8624,23 @@ class Ar {
8624
8624
  s = s ? `${s}
8625
8625
  ${u}` : u, a = a ? `${a}
8626
8626
  ${f}` : f;
8627
- const p = this.lexer.state.top;
8628
- if (this.lexer.state.top = !0, this.lexer.blockTokens(f, i, !0), this.lexer.state.top = p, r.length === 0)
8627
+ const h = this.lexer.state.top;
8628
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(f, i, !0), this.lexer.state.top = h, r.length === 0)
8629
8629
  break;
8630
- const h = i.at(-1);
8631
- if ((h == null ? void 0 : h.type) === "code")
8630
+ const p = i.at(-1);
8631
+ if ((p == null ? void 0 : p.type) === "code")
8632
8632
  break;
8633
- if ((h == null ? void 0 : h.type) === "blockquote") {
8634
- const w = h, x = w.raw + `
8633
+ if ((p == null ? void 0 : p.type) === "blockquote") {
8634
+ const w = p, x = w.raw + `
8635
8635
  ` + r.join(`
8636
8636
  `), k = this.blockquote(x);
8637
8637
  i[i.length - 1] = k, s = s.substring(0, s.length - w.raw.length) + k.raw, a = a.substring(0, a.length - w.text.length) + k.text;
8638
8638
  break;
8639
- } else if ((h == null ? void 0 : h.type) === "list") {
8640
- const w = h, x = w.raw + `
8639
+ } else if ((p == null ? void 0 : p.type) === "list") {
8640
+ const w = p, x = w.raw + `
8641
8641
  ` + r.join(`
8642
8642
  `), k = this.list(x);
8643
- i[i.length - 1] = k, s = s.substring(0, s.length - h.raw.length) + k.raw, a = a.substring(0, a.length - w.raw.length) + k.raw, r = x.substring(i.at(-1).raw.length).split(`
8643
+ i[i.length - 1] = k, s = s.substring(0, s.length - p.raw.length) + k.raw, a = a.substring(0, a.length - w.raw.length) + k.raw, r = x.substring(i.at(-1).raw.length).split(`
8644
8644
  `);
8645
8645
  continue;
8646
8646
  }
@@ -8673,29 +8673,29 @@ ${f}` : f;
8673
8673
  if (!(n = i.exec(e)) || this.rules.block.hr.test(e))
8674
8674
  break;
8675
8675
  u = n[0], e = e.substring(u.length);
8676
- let p = n[2].split(`
8677
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (_) => " ".repeat(3 * _.length)), h = e.split(`
8678
- `, 1)[0], w = !p.trim(), x = 0;
8679
- if (this.options.pedantic ? (x = 2, f = p.trimStart()) : w ? x = n[1].length + 1 : (x = n[2].search(this.rules.other.nonSpaceChar), x = x > 4 ? 1 : x, f = p.slice(x), x += n[1].length), w && this.rules.other.blankLine.test(h) && (u += h + `
8680
- `, e = e.substring(h.length + 1), l = !0), !l) {
8676
+ let h = n[2].split(`
8677
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (_) => " ".repeat(3 * _.length)), p = e.split(`
8678
+ `, 1)[0], w = !h.trim(), x = 0;
8679
+ if (this.options.pedantic ? (x = 2, f = h.trimStart()) : w ? x = n[1].length + 1 : (x = n[2].search(this.rules.other.nonSpaceChar), x = x > 4 ? 1 : x, f = h.slice(x), x += n[1].length), w && this.rules.other.blankLine.test(p) && (u += p + `
8680
+ `, e = e.substring(p.length + 1), l = !0), !l) {
8681
8681
  const _ = this.rules.other.nextBulletRegex(x), $ = this.rules.other.hrRegex(x), A = this.rules.other.fencesBeginRegex(x), S = this.rules.other.headingBeginRegex(x), L = this.rules.other.htmlBeginRegex(x);
8682
8682
  for (; e; ) {
8683
8683
  const D = e.split(`
8684
8684
  `, 1)[0];
8685
8685
  let M;
8686
- if (h = D, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), M = h) : M = h.replace(this.rules.other.tabCharGlobal, " "), A.test(h) || S.test(h) || L.test(h) || _.test(h) || $.test(h))
8686
+ if (p = D, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), M = p) : M = p.replace(this.rules.other.tabCharGlobal, " "), A.test(p) || S.test(p) || L.test(p) || _.test(p) || $.test(p))
8687
8687
  break;
8688
- if (M.search(this.rules.other.nonSpaceChar) >= x || !h.trim())
8688
+ if (M.search(this.rules.other.nonSpaceChar) >= x || !p.trim())
8689
8689
  f += `
8690
8690
  ` + M.slice(x);
8691
8691
  else {
8692
- if (w || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || A.test(p) || S.test(p) || $.test(p))
8692
+ if (w || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || A.test(h) || S.test(h) || $.test(h))
8693
8693
  break;
8694
8694
  f += `
8695
- ` + h;
8695
+ ` + p;
8696
8696
  }
8697
- !w && !h.trim() && (w = !0), u += D + `
8698
- `, e = e.substring(D.length + 1), p = M.slice(x);
8697
+ !w && !p.trim() && (w = !0), u += D + `
8698
+ `, e = e.substring(D.length + 1), h = M.slice(x);
8699
8699
  }
8700
8700
  }
8701
8701
  a.loose || (o ? a.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
@@ -8718,7 +8718,7 @@ ${f}` : f;
8718
8718
  a.raw = a.raw.trimEnd();
8719
8719
  for (let l = 0; l < a.items.length; l++)
8720
8720
  if (this.lexer.state.top = !1, a.items[l].tokens = this.lexer.blockTokens(a.items[l].text, []), !a.loose) {
8721
- const u = a.items[l].tokens.filter((p) => p.type === "space"), f = u.length > 0 && u.some((p) => this.rules.other.anyLine.test(p.raw));
8721
+ const u = a.items[l].tokens.filter((h) => h.type === "space"), f = u.length > 0 && u.some((h) => this.rules.other.anyLine.test(h.raw));
8722
8722
  a.loose = f;
8723
8723
  }
8724
8724
  if (a.loose)
@@ -8904,20 +8904,20 @@ ${f}` : f;
8904
8904
  if (l -= c, l > 0)
8905
8905
  continue;
8906
8906
  c = Math.min(c, c + l + u);
8907
- const p = [...s[0]][0].length, h = e.slice(0, i + s.index + p + c);
8907
+ const h = [...s[0]][0].length, p = e.slice(0, i + s.index + h + c);
8908
8908
  if (Math.min(i, c) % 2) {
8909
- const x = h.slice(1, -1);
8909
+ const x = p.slice(1, -1);
8910
8910
  return {
8911
8911
  type: "em",
8912
- raw: h,
8912
+ raw: p,
8913
8913
  text: x,
8914
8914
  tokens: this.lexer.inlineTokens(x)
8915
8915
  };
8916
8916
  }
8917
- const w = h.slice(2, -2);
8917
+ const w = p.slice(2, -2);
8918
8918
  return {
8919
8919
  type: "strong",
8920
- raw: h,
8920
+ raw: p,
8921
8921
  text: w,
8922
8922
  tokens: this.lexer.inlineTokens(w)
8923
8923
  };
@@ -9136,8 +9136,8 @@ class St {
9136
9136
  let l = 1 / 0;
9137
9137
  const u = e.slice(1);
9138
9138
  let f;
9139
- this.options.extensions.startBlock.forEach((p) => {
9140
- f = p.call({ lexer: this }, u), typeof f == "number" && f >= 0 && (l = Math.min(l, f));
9139
+ this.options.extensions.startBlock.forEach((h) => {
9140
+ f = h.call({ lexer: this }, u), typeof f == "number" && f >= 0 && (l = Math.min(l, f));
9141
9141
  }), l < 1 / 0 && l >= 0 && (c = e.substring(0, l + 1));
9142
9142
  }
9143
9143
  if (this.state.top && (o = this.tokenizer.paragraph(c))) {
@@ -9189,7 +9189,7 @@ class St {
9189
9189
  for (; e; ) {
9190
9190
  a || (i = ""), a = !1;
9191
9191
  let u;
9192
- if ((c = (o = this.options.extensions) == null ? void 0 : o.inline) != null && c.some((p) => (u = p.call({ lexer: this }, e, n)) ? (e = e.substring(u.raw.length), n.push(u), !0) : !1))
9192
+ if ((c = (o = this.options.extensions) == null ? void 0 : o.inline) != null && c.some((h) => (u = h.call({ lexer: this }, e, n)) ? (e = e.substring(u.raw.length), n.push(u), !0) : !1))
9193
9193
  continue;
9194
9194
  if (u = this.tokenizer.escape(e)) {
9195
9195
  e = e.substring(u.raw.length), n.push(u);
@@ -9205,8 +9205,8 @@ class St {
9205
9205
  }
9206
9206
  if (u = this.tokenizer.reflink(e, this.tokens.links)) {
9207
9207
  e = e.substring(u.raw.length);
9208
- const p = n.at(-1);
9209
- u.type === "text" && (p == null ? void 0 : p.type) === "text" ? (p.raw += u.raw, p.text += u.text) : n.push(u);
9208
+ const h = n.at(-1);
9209
+ u.type === "text" && (h == null ? void 0 : h.type) === "text" ? (h.raw += u.raw, h.text += u.text) : n.push(u);
9210
9210
  continue;
9211
9211
  }
9212
9212
  if (u = this.tokenizer.emStrong(e, r, i)) {
@@ -9235,26 +9235,26 @@ class St {
9235
9235
  }
9236
9236
  let f = e;
9237
9237
  if ((l = this.options.extensions) != null && l.startInline) {
9238
- let p = 1 / 0;
9239
- const h = e.slice(1);
9238
+ let h = 1 / 0;
9239
+ const p = e.slice(1);
9240
9240
  let w;
9241
9241
  this.options.extensions.startInline.forEach((x) => {
9242
- w = x.call({ lexer: this }, h), typeof w == "number" && w >= 0 && (p = Math.min(p, w));
9243
- }), p < 1 / 0 && p >= 0 && (f = e.substring(0, p + 1));
9242
+ w = x.call({ lexer: this }, p), typeof w == "number" && w >= 0 && (h = Math.min(h, w));
9243
+ }), h < 1 / 0 && h >= 0 && (f = e.substring(0, h + 1));
9244
9244
  }
9245
9245
  if (u = this.tokenizer.inlineText(f)) {
9246
9246
  e = e.substring(u.raw.length), u.raw.slice(-1) !== "_" && (i = u.raw.slice(-1)), a = !0;
9247
- const p = n.at(-1);
9248
- (p == null ? void 0 : p.type) === "text" ? (p.raw += u.raw, p.text += u.text) : n.push(u);
9247
+ const h = n.at(-1);
9248
+ (h == null ? void 0 : h.type) === "text" ? (h.raw += u.raw, h.text += u.text) : n.push(u);
9249
9249
  continue;
9250
9250
  }
9251
9251
  if (e) {
9252
- const p = "Infinite loop on byte: " + e.charCodeAt(0);
9252
+ const h = "Infinite loop on byte: " + e.charCodeAt(0);
9253
9253
  if (this.options.silent) {
9254
- console.error(p);
9254
+ console.error(h);
9255
9255
  break;
9256
9256
  } else
9257
- throw new Error(p);
9257
+ throw new Error(h);
9258
9258
  }
9259
9259
  }
9260
9260
  return n;
@@ -9737,7 +9737,7 @@ class Ig {
9737
9737
  const o = i, c = r.hooks[o], l = a[o];
9738
9738
  Jn.passThroughHooks.has(i) ? a[o] = (u) => {
9739
9739
  if (this.defaults.async)
9740
- return Promise.resolve(c.call(a, u)).then((p) => l.call(a, p));
9740
+ return Promise.resolve(c.call(a, u)).then((h) => l.call(a, h));
9741
9741
  const f = c.call(a, u);
9742
9742
  return l.call(a, f);
9743
9743
  } : a[o] = (...u) => {
@@ -9836,9 +9836,9 @@ xe.parseInline;
9836
9836
  Et.parse;
9837
9837
  St.lex;
9838
9838
  const Ag = async (t, e, n) => {
9839
- const r = Zp(e()), s = Vp(e());
9839
+ const r = Zh(e()), s = Vh(e());
9840
9840
  try {
9841
- await Xp(r, s), n();
9841
+ await Xh(r, s), n();
9842
9842
  } catch (a) {
9843
9843
  console.error("Errore durante la copia:", a);
9844
9844
  try {
@@ -9859,7 +9859,7 @@ function Ts(t, e) {
9859
9859
  const o = (b, _) => {
9860
9860
  d(a)[b] = _;
9861
9861
  }, c = () => {
9862
- m(i, C(/* @__PURE__ */ hd())), setTimeout(
9862
+ m(i, C(/* @__PURE__ */ pd())), setTimeout(
9863
9863
  () => {
9864
9864
  m(i, C(/* @__PURE__ */ rs()));
9865
9865
  },
@@ -9868,7 +9868,7 @@ function Ts(t, e) {
9868
9868
  }, l = async (b, _, $) => {
9869
9869
  await kt.getDocumentPage(b, _, $);
9870
9870
  }, u = async (b, _, $) => {
9871
- if (!Jp(s(), _)) {
9871
+ if (!Jh(s(), _)) {
9872
9872
  console.error("L'utente non ha il permesso di scaricare PDF normativi.");
9873
9873
  return;
9874
9874
  }
@@ -9893,7 +9893,7 @@ function Ts(t, e) {
9893
9893
  } finally {
9894
9894
  o(A, !1);
9895
9895
  }
9896
- }, p = async (b, _) => {
9896
+ }, h = async (b, _) => {
9897
9897
  const $ = ur(b, _);
9898
9898
  o($, !0);
9899
9899
  try {
@@ -9904,7 +9904,7 @@ function Ts(t, e) {
9904
9904
  } finally {
9905
9905
  o($, !1);
9906
9906
  }
9907
- }, h = async (b) => {
9907
+ }, p = async (b) => {
9908
9908
  const {
9909
9909
  external_id: _,
9910
9910
  filename: $,
@@ -9917,11 +9917,11 @@ function Ts(t, e) {
9917
9917
  return;
9918
9918
  }
9919
9919
  if (L === "trascrizione") {
9920
- await p(_, $);
9920
+ await h(_, $);
9921
9921
  return;
9922
9922
  }
9923
9923
  const D = Oi($);
9924
- !qp($) || D === "mp3" ? await f(_, L || "", $) : await u(_, L || "", $);
9924
+ !qh($) || D === "mp3" ? await f(_, L || "", $) : await u(_, L || "", $);
9925
9925
  };
9926
9926
  var w = Mg(), x = T(w);
9927
9927
  {
@@ -9932,8 +9932,8 @@ function Ts(t, e) {
9932
9932
  var L = Pg(), D = O(T(L), 2);
9933
9933
  st(D, 21, r, rt, (Ee, Ce) => {
9934
9934
  var ae = jg();
9935
- const Xe = /* @__PURE__ */ Ze(() => ur(d(Ce).external_id, d(Ce).filename)), Qe = /* @__PURE__ */ Ze(() => Gp(d(Ce))), ct = /* @__PURE__ */ Ze(() => d(a)[d(Xe)]), ft = /* @__PURE__ */ Ze(() => Wp(d(Ce), s())), R = /* @__PURE__ */ Ze(() => Mi(d(Ce))), K = /* @__PURE__ */ Ze(() => Ni(d(Ce))), Le = /* @__PURE__ */ Ze(() => d(Ce).isCommon ? rr(d(Ce).commonType).name : /* @__PURE__ */ xa());
9936
- ae.__click = [Lg, h, Ce];
9935
+ const Xe = /* @__PURE__ */ Ze(() => ur(d(Ce).external_id, d(Ce).filename)), Qe = /* @__PURE__ */ Ze(() => Gh(d(Ce))), ct = /* @__PURE__ */ Ze(() => d(a)[d(Xe)]), ft = /* @__PURE__ */ Ze(() => Wh(d(Ce), s())), R = /* @__PURE__ */ Ze(() => Mi(d(Ce))), K = /* @__PURE__ */ Ze(() => Ni(d(Ce))), Le = /* @__PURE__ */ Ze(() => d(Ce).isCommon ? rr(d(Ce).commonType).name : /* @__PURE__ */ xa());
9936
+ ae.__click = [Lg, p, Ce];
9937
9937
  var Pe = T(ae);
9938
9938
  {
9939
9939
  var Ye = (ce) => {
@@ -10028,19 +10028,19 @@ le(
10028
10028
  const Ug = (t, e, n) => {
10029
10029
  d(e).pause(), m(n, !1);
10030
10030
  };
10031
- var qg = /* @__PURE__ */ F('<div class="user-attachment-badge svelte-13ebgfy"><i class="fa-solid fa-paperclip svelte-13ebgfy"></i> <span class="svelte-13ebgfy"> </span></div>'), Bg = /* @__PURE__ */ F('<div class="user-attachments-list svelte-13ebgfy"></div>'), Hg = /* @__PURE__ */ F('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-13ebgfy"><i class="fa-solid fa-pause"></i></button>'), Yg = (t, e, n) => e(d(n)), Gg = /* @__PURE__ */ F('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-13ebgfy"><i class="fa-solid fa-play"></i></button>'), Jg = /* @__PURE__ */ F('<div class="agent-badge svelte-13ebgfy" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-13ebgfy"></i> <span> </span></div>'), Wg = /* @__PURE__ */ F('<button class="sources-toggle-btn svelte-13ebgfy" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), Zg = /* @__PURE__ */ F('<i class="fa-solid fa-check"></i>'), Vg = /* @__PURE__ */ F('<i class="fa-regular fa-copy"></i>'), Xg = /* @__PURE__ */ F('<div><!> <div class="w-100 d-flex"></div> <div class="message-plus-play svelte-13ebgfy"><div><div class="message-content svelte-13ebgfy"><!></div></div> <!></div> <div class="w-100 d-flex"><div class="attachments-container svelte-13ebgfy"><!> <div class="d-flex gap-1"><!> <!> <button aria-label="Copy message" class="copy-button svelte-13ebgfy"><!></button></div></div></div></div>'), Qg = /* @__PURE__ */ F('<div><div class="message-plus-play svelte-13ebgfy"><div class="message-received svelte-13ebgfy"><div class="message-content svelte-13ebgfy"><!></div></div> <!></div> <div class="w-100 d-flex" style="justify-content: flex-start"><div class="attachments-container svelte-13ebgfy"><!> <div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-13ebgfy" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-13ebgfy"></i> <span> </span></div></div></div></div></div>'), Kg = /* @__PURE__ */ F('<div class="loading svelte-13ebgfy"><!></div>'), em = /* @__PURE__ */ F('<div class="alert alert-danger"> </div>'), tm = /* @__PURE__ */ F('<div class="messages-wrapper svelte-13ebgfy"><div class="empty-placeholder svelte-13ebgfy"></div> <!> <!> <!></div>'), nm = /* @__PURE__ */ F('<div class="loading-placeholder svelte-13ebgfy"><!></div>'), rm = /* @__PURE__ */ F('<div class="chat-body svelte-13ebgfy"><!> <!></div>');
10031
+ var qg = /* @__PURE__ */ F('<div class="user-attachment-badge svelte-119hb4s"><i class="fa-solid fa-paperclip svelte-119hb4s"></i> <span class="svelte-119hb4s"> </span></div>'), Bg = /* @__PURE__ */ F('<div class="user-attachments-list svelte-119hb4s"></div>'), Hg = /* @__PURE__ */ F('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-119hb4s"><i class="fa-solid fa-pause"></i></button>'), Yg = (t, e, n) => e(d(n)), Gg = /* @__PURE__ */ F('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-119hb4s"><i class="fa-solid fa-play"></i></button>'), Jg = /* @__PURE__ */ F('<div class="agent-badge svelte-119hb4s" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-119hb4s"></i> <span> </span></div>'), Wg = /* @__PURE__ */ F('<button class="sources-toggle-btn svelte-119hb4s" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), Zg = /* @__PURE__ */ F('<i class="fa-solid fa-check"></i>'), Vg = /* @__PURE__ */ F('<i class="fa-regular fa-copy"></i>'), Xg = /* @__PURE__ */ F('<div><!> <div class="w-100 d-flex"></div> <div class="message-plus-play svelte-119hb4s"><div><div class="message-content svelte-119hb4s"><!></div></div> <!></div> <div class="w-100 d-flex"><div class="attachments-container svelte-119hb4s"><!> <div class="d-flex gap-1"><!> <!> <button aria-label="Copy message" class="copy-button svelte-119hb4s"><!></button></div></div></div></div>'), Qg = /* @__PURE__ */ F('<div><div class="message-plus-play svelte-119hb4s"><div class="message-received svelte-119hb4s"><div class="message-content svelte-119hb4s"><!></div></div> <!></div> <div class="w-100 d-flex" style="justify-content: flex-start"><div class="attachments-container svelte-119hb4s"><!> <div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-119hb4s" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-119hb4s"></i> <span> </span></div></div></div></div></div>'), Kg = /* @__PURE__ */ F('<div class="loading svelte-119hb4s"><!></div>'), em = /* @__PURE__ */ F('<div class="alert alert-danger"> </div>'), tm = /* @__PURE__ */ F('<div class="messages-wrapper svelte-119hb4s"><div class="empty-placeholder svelte-119hb4s"></div> <!> <!> <!></div>'), nm = /* @__PURE__ */ F('<div class="loading-placeholder svelte-119hb4s"><!></div>'), rm = /* @__PURE__ */ F('<div class="chat-body svelte-119hb4s"><!> <!></div>');
10032
10032
  const sm = {
10033
- hash: "svelte-13ebgfy",
10034
- code: `.empty-placeholder.svelte-13ebgfy {height:100%;}.messages-wrapper.svelte-13ebgfy {display:flex;flex-direction:column;gap:10px;min-height:100%;}.loading-placeholder.svelte-13ebgfy {display:flex;justify-content:center;align-items:center;height:100%;}.chat-body.svelte-13ebgfy {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-13ebgfy::-webkit-scrollbar {width:8px;}.chat-body.svelte-13ebgfy * {--bs-table-color: #333333;--bs-table-striped-color: #333333;--bs-link-color-rgb: 41, 93, 207;}.chat-body.svelte-13ebgfy li {color:black;}.chat-body.svelte-13ebgfy table {min-width:auto;}.chat-body.svelte-13ebgfy::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-13ebgfy::-webkit-scrollbar-thumb {background:rgba(\r
10033
+ hash: "svelte-119hb4s",
10034
+ code: `.empty-placeholder.svelte-119hb4s {height:100%;}.messages-wrapper.svelte-119hb4s {display:flex;flex-direction:column;gap:10px;min-height:100%;}.loading-placeholder.svelte-119hb4s {display:flex;justify-content:center;align-items:center;height:100%;}.chat-body.svelte-119hb4s {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-119hb4s::-webkit-scrollbar {width:8px;}.chat-body.svelte-119hb4s * {--bs-table-color: #333333;--bs-table-striped-color: #333333;--bs-link-color-rgb: 41, 93, 207;--bs-body-color: inherit;}.chat-body.svelte-119hb4s li {color:black;}.chat-body.svelte-119hb4s table {min-width:auto;}.chat-body.svelte-119hb4s::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-119hb4s::-webkit-scrollbar-thumb {background:rgba(\r
10035
10035
  255,\r
10036
10036
  255,\r
10037
10037
  255,\r
10038
10038
  0.5\r
10039
- ); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-13ebgfy::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-13ebgfy {display:flex;background:#c8d9ff;border-radius:10px;border-bottom-right-radius:0;width:fit-content;max-width:80%;margin-left:auto;transition:200ms;z-index:1000;user-select:text;}.message-received.svelte-13ebgfy {background:white;border-radius:10px;border-bottom-left-radius:0;width:fit-content;max-width:80%;transition:200ms;position:relative;z-index:1000;user-select:text;}.message-content.svelte-13ebgfy {padding:10px;font-size:16px;}.attachments-container.svelte-13ebgfy {display:flex;flex-direction:column;width:80%;min-height:35px;}.play-button.svelte-13ebgfy {transition:opacity 200ms;opacity:0;background-color:white;color:#295dcf;transition:200ms;}.play-button.svelte-13ebgfy:hover {background-color:#e9ecef;translate:0 -1px;}.sources-toggle-btn.svelte-13ebgfy {display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:rgba(255, 255, 255, 0.2);color:white;border-radius:0 0 8px 8px;cursor:pointer;font-size:14px;transition:all 200ms;width:fit-content;gap:10px;box-shadow:0 2px 4px rgba(0, 0, 0, 0.15);border:none;height:30px;}.sources-toggle-btn.svelte-13ebgfy:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.sources-toggle-btn.svelte-13ebgfy i:where(.svelte-13ebgfy) {font-size:12px;transition:transform 200ms;}.copy-button.svelte-13ebgfy {transition:opacity 200ms;background-color:rgba(255, 255, 255, 0.2);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);border:none;color:white;transition:200ms;border-radius:0 0 8px 8px;height:30px;width:30px;padding:0;font-size:18px;margin:0;}.copy-button.svelte-13ebgfy:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.agent-badge.svelte-13ebgfy {display:flex;align-items:center;gap:6px;padding:6px 12px;background:rgba(60, 60, 60, 0.75);color:white;border-radius:0 0 8px 8px;font-size:12px;font-weight:500;width:fit-content;box-shadow:0 2px 4px rgba(0, 0, 0, 0.15);backdrop-filter:blur(5px);cursor:default;pointer-events:none;height:30px;}.agent-badge.svelte-13ebgfy i:where(.svelte-13ebgfy) {font-size:14px;opacity:0.9;}.user-attachments-list.svelte-13ebgfy {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:5px;justify-content:flex-end;}.user-attachment-badge.svelte-13ebgfy {display:flex;align-items:center;gap:5px;padding:4px 10px;background:rgba(255, 255, 255, 0.2);border:1px solid rgba(200, 217, 255, 0.5);color:white;border-radius:12px;font-size:11px;font-weight:500;width:fit-content;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);}.user-attachment-badge.svelte-13ebgfy i:where(.svelte-13ebgfy) {font-size:10px;opacity:0.8;flex-shrink:0;}.user-attachment-badge.svelte-13ebgfy span:where(.svelte-13ebgfy) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.message-plus-play.svelte-13ebgfy {display:flex;justify-content:flex-start;align-items:center;gap:5px;}.message-plus-play.svelte-13ebgfy:hover .play-button:where(.svelte-13ebgfy) {opacity:1;}.loading.svelte-13ebgfy {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
10039
+ ); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-119hb4s::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-119hb4s {display:flex;background:#c8d9ff;border-radius:10px;border-bottom-right-radius:0;width:fit-content;max-width:80%;margin-left:auto;transition:200ms;z-index:1000;user-select:text;}.message-received.svelte-119hb4s {background:white;border-radius:10px;border-bottom-left-radius:0;width:fit-content;max-width:80%;transition:200ms;position:relative;z-index:1000;user-select:text;}.message-content.svelte-119hb4s {padding:10px;font-size:16px;}.attachments-container.svelte-119hb4s {display:flex;flex-direction:column;width:80%;min-height:35px;}.play-button.svelte-119hb4s {transition:opacity 200ms;opacity:0;background-color:white;color:#295dcf;transition:200ms;}.play-button.svelte-119hb4s:hover {background-color:#e9ecef;translate:0 -1px;}.sources-toggle-btn.svelte-119hb4s {display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:rgba(255, 255, 255, 0.2);color:white;border-radius:0 0 8px 8px;cursor:pointer;font-size:14px;transition:all 200ms;width:fit-content;gap:10px;box-shadow:0 2px 4px rgba(0, 0, 0, 0.15);border:none;height:30px;}.sources-toggle-btn.svelte-119hb4s:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.sources-toggle-btn.svelte-119hb4s i:where(.svelte-119hb4s) {font-size:12px;transition:transform 200ms;}.copy-button.svelte-119hb4s {transition:opacity 200ms;background-color:rgba(255, 255, 255, 0.2);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);border:none;color:white;transition:200ms;border-radius:0 0 8px 8px;height:30px;width:30px;padding:0;font-size:18px;margin:0;}.copy-button.svelte-119hb4s:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.agent-badge.svelte-119hb4s {display:flex;align-items:center;gap:6px;padding:6px 12px;background:rgba(60, 60, 60, 0.75);color:white;border-radius:0 0 8px 8px;font-size:12px;font-weight:500;width:fit-content;box-shadow:0 2px 4px rgba(0, 0, 0, 0.15);backdrop-filter:blur(5px);cursor:default;pointer-events:none;height:30px;}.agent-badge.svelte-119hb4s i:where(.svelte-119hb4s) {font-size:14px;opacity:0.9;}.user-attachments-list.svelte-119hb4s {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:5px;justify-content:flex-end;}.user-attachment-badge.svelte-119hb4s {display:flex;align-items:center;gap:5px;padding:4px 10px;background:rgba(255, 255, 255, 0.2);border:1px solid rgba(200, 217, 255, 0.5);color:white;border-radius:12px;font-size:11px;font-weight:500;width:fit-content;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);}.user-attachment-badge.svelte-119hb4s i:where(.svelte-119hb4s) {font-size:10px;opacity:0.8;flex-shrink:0;}.user-attachment-badge.svelte-119hb4s span:where(.svelte-119hb4s) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.message-plus-play.svelte-119hb4s {display:flex;justify-content:flex-start;align-items:center;gap:5px;}.message-plus-play.svelte-119hb4s:hover .play-button:where(.svelte-119hb4s) {opacity:1;}.loading.svelte-119hb4s {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
10040
10040
  };
10041
- function ho(t, e) {
10041
+ function po(t, e) {
10042
10042
  ie(e, !0), de(t, sm);
10043
- 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, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), f = Y(void 0), p = Y(C(new Audio())), h = Y(!1), w = Y(C({})), x = Y(C({})), k = Y(C(n())), b = Y(null), _ = Y(!0), $ = Y(!1), A = Y(!1), S = Y(C(u())), L = Y(!1);
10043
+ 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, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), f = Y(void 0), h = Y(C(new Audio())), p = Y(!1), w = Y(C({})), x = Y(C({})), k = Y(C(n())), b = Y(null), _ = Y(!0), $ = Y(!1), A = Y(!1), S = Y(C(u())), L = Y(!1);
10044
10044
  const D = async () => {
10045
10045
  await es(), d(f) && (d(f).scrollTop = d(f).scrollHeight);
10046
10046
  }, M = async () => {
@@ -10053,8 +10053,8 @@ function ho(t, e) {
10053
10053
  d(A) && (m(k, C(d(b) ?? n())), m(b, null), m(_, !0), m(A, !1), m(L, !1));
10054
10054
  }, Ee = (R) => {
10055
10055
  Us.getAudio(R.content, c()).then((K) => {
10056
- m(p, C(new Audio(K))), d(p).play(), m(h, !0), d(p).onended = () => {
10057
- m(h, !1);
10056
+ m(h, C(new Audio(K))), d(h).play(), m(p, !0), d(h).onended = () => {
10057
+ m(p, !1);
10058
10058
  };
10059
10059
  });
10060
10060
  }, Ce = async (R, K) => {
@@ -10124,13 +10124,13 @@ function ho(t, e) {
10124
10124
  {
10125
10125
  var it = (ne) => {
10126
10126
  var be = Hg();
10127
- be.__click = [Ug, p, h], P((Be) => q(be, "title", Be), [() => /* @__PURE__ */ cd()]), E(ne, be);
10127
+ be.__click = [Ug, h, p], P((Be) => q(be, "title", Be), [() => /* @__PURE__ */ cd()]), E(ne, be);
10128
10128
  }, z = (ne) => {
10129
10129
  var be = Gg();
10130
10130
  be.__click = [Yg, Ee, W], P((Be) => q(be, "title", Be), [() => /* @__PURE__ */ ld()]), E(ne, be);
10131
10131
  };
10132
10132
  X(Fe, (ne) => {
10133
- d(h) ? ne(it) : ne(z, !1);
10133
+ d(p) ? ne(it) : ne(z, !1);
10134
10134
  });
10135
10135
  }
10136
10136
  E(se, ee);
@@ -10166,7 +10166,7 @@ function ho(t, e) {
10166
10166
  d(W).attachments && d(W).attachments.length > 0 && d(W).sentByUser == !1 && se(Te);
10167
10167
  });
10168
10168
  }
10169
- var nt = O(ze, 2), pe = T(nt);
10169
+ var nt = O(ze, 2), he = T(nt);
10170
10170
  {
10171
10171
  var $e = (se) => {
10172
10172
  var ee = Jg(), Fe = O(T(ee), 2), it = T(Fe, !0);
@@ -10174,11 +10174,11 @@ function ho(t, e) {
10174
10174
  () => za(d(W).agentUsed)
10175
10175
  ]), E(se, ee);
10176
10176
  };
10177
- X(pe, (se) => {
10177
+ X(he, (se) => {
10178
10178
  d(W).agentUsed != null && d(W).agentUsed >= 0 && !d(W).sentByUser && se($e);
10179
10179
  });
10180
10180
  }
10181
- var Je = O(pe, 2);
10181
+ var Je = O(he, 2);
10182
10182
  {
10183
10183
  var Ke = (se) => {
10184
10184
  var ee = Wg();
@@ -10188,7 +10188,7 @@ function ho(t, e) {
10188
10188
  var z = O(Fe, 2);
10189
10189
  y(ee), P(
10190
10190
  (ne) => {
10191
- Se(it, `${ne ?? ""} (${d(W).attachments.length ?? ""})`), ut(z, `${`fa-solid fa-chevron-${d(w)[Ie] ? "up" : "down"}` ?? ""} svelte-13ebgfy`);
10191
+ Se(it, `${ne ?? ""} (${d(W).attachments.length ?? ""})`), ut(z, `${`fa-solid fa-chevron-${d(w)[Ie] ? "up" : "down"}` ?? ""} svelte-119hb4s`);
10192
10192
  },
10193
10193
  [() => /* @__PURE__ */ rd()]
10194
10194
  ), E(se, ee);
@@ -10214,7 +10214,7 @@ function ho(t, e) {
10214
10214
  }
10215
10215
  y(me), y(nt), y(V), y(J), y(ye), P(
10216
10216
  (se) => {
10217
- q(Re, "style", `justify-content: ${(d(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), ut(Ve, qr(d(W).sentByUser ? "message-sent" : "message-received"), "svelte-13ebgfy"), q(J, "style", `justify-content: ${(d(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), q(nt, "style", `width: 100%; align-items: flex-start; justify-content: ${(d(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), q(me, "title", se);
10217
+ q(Re, "style", `justify-content: ${(d(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), ut(Ve, qr(d(W).sentByUser ? "message-sent" : "message-received"), "svelte-119hb4s"), q(J, "style", `justify-content: ${(d(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), q(nt, "style", `width: 100%; align-items: flex-start; justify-content: ${(d(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), q(me, "title", se);
10218
10218
  },
10219
10219
  [
10220
10220
  () => d(x)[Ie] || /* @__PURE__ */ vd()
@@ -10391,7 +10391,7 @@ function ho(t, e) {
10391
10391
  }
10392
10392
  un(["click"]);
10393
10393
  le(
10394
- ho,
10394
+ po,
10395
10395
  {
10396
10396
  messages: {},
10397
10397
  loading: {},
@@ -10454,12 +10454,12 @@ function vo(t, e) {
10454
10454
  }
10455
10455
  let b = await _t.getChat(k);
10456
10456
  r(b), a(r().messages), o(!1), i("");
10457
- }, p = (k, b) => {
10457
+ }, h = (k, b) => {
10458
10458
  confirm(/* @__PURE__ */ Qu({ chatTitle: b })) && _t.deleteChat(k).then(() => {
10459
10459
  s(s().filter((_) => _._id !== k)), r()._id === k && l()();
10460
10460
  });
10461
10461
  };
10462
- var h = dm(), w = T(h);
10462
+ var p = dm(), w = T(p);
10463
10463
  {
10464
10464
  var x = (k) => {
10465
10465
  var b = um(), _ = T(b), $ = T(_, !0);
@@ -10488,7 +10488,7 @@ function vo(t, e) {
10488
10488
  }
10489
10489
  y(ae);
10490
10490
  var R = O(ae, 2);
10491
- R.__click = [lm, p, Ee], y(Ce), P(() => {
10491
+ R.__click = [lm, h, Ee], y(Ce), P(() => {
10492
10492
  q(Ce, "style", r()._id === d(Ee)._id ? "background: #295dcf; cursor: default;" : ""), Se(Qe, d(Ee).title);
10493
10493
  }), E(tt, Ce);
10494
10494
  }), E(M, G);
@@ -10503,7 +10503,7 @@ function vo(t, e) {
10503
10503
  n() && k(x);
10504
10504
  });
10505
10505
  }
10506
- return y(h), E(t, h), oe({
10506
+ return y(p), E(t, p), oe({
10507
10507
  get showHistory() {
10508
10508
  return n();
10509
10509
  },
@@ -10578,17 +10578,17 @@ le(
10578
10578
  [],
10579
10579
  !0
10580
10580
  );
10581
- const pm = (t, e, n, r, s) => {
10581
+ const hm = (t, e, n, r, s) => {
10582
10582
  m(e, "auto"), n(), r(), m(s, C({}));
10583
10583
  };
10584
- var hm = /* @__PURE__ */ F('<div class="drag-overlay svelte-1shw51p"><div class="drag-content svelte-1shw51p"><!> <p class="svelte-1shw51p"> </p></div></div>'), vm = /* @__PURE__ */ F('<div class="upload-progress-overlay svelte-1shw51p"><div class="upload-progress-content svelte-1shw51p"><!> <p class="upload-filename svelte-1shw51p"> </p> <div class="progress-bar-container svelte-1shw51p"><div class="progress-bar svelte-1shw51p"></div></div> <p class="upload-percentage svelte-1shw51p"> </p></div></div>'), gm = /* @__PURE__ */ F('<div class="loading-placeholder svelte-1shw51p"><!></div>'), mm = /* @__PURE__ */ F('<!> <div class="resize-border-left svelte-1shw51p"></div> <div class="resize-border-top svelte-1shw51p"></div> <div class="resize-handle svelte-1shw51p"><!></div> <!> <!> <!>', 1), bm = /* @__PURE__ */ F('<div class="chat svelte-1shw51p"><!> <!> <!></div>'), wm = /* @__PURE__ */ F('<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>');
10584
+ var pm = /* @__PURE__ */ F('<div class="drag-overlay svelte-1shw51p"><div class="drag-content svelte-1shw51p"><!> <p class="svelte-1shw51p"> </p></div></div>'), vm = /* @__PURE__ */ F('<div class="upload-progress-overlay svelte-1shw51p"><div class="upload-progress-content svelte-1shw51p"><!> <p class="upload-filename svelte-1shw51p"> </p> <div class="progress-bar-container svelte-1shw51p"><div class="progress-bar svelte-1shw51p"></div></div> <p class="upload-percentage svelte-1shw51p"> </p></div></div>'), gm = /* @__PURE__ */ F('<div class="loading-placeholder svelte-1shw51p"><!></div>'), mm = /* @__PURE__ */ F('<!> <div class="resize-border-left svelte-1shw51p"></div> <div class="resize-border-top svelte-1shw51p"></div> <div class="resize-handle svelte-1shw51p"><!></div> <!> <!> <!>', 1), bm = /* @__PURE__ */ F('<div class="chat svelte-1shw51p"><!> <!> <!></div>'), wm = /* @__PURE__ */ F('<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>');
10585
10585
  const xm = {
10586
10586
  hash: "svelte-1shw51p",
10587
10587
  code: ".loading-placeholder.svelte-1shw51p {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1shw51p {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-1shw51p {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-1shw51p {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1shw51p {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1shw51p {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}.bottom-right-buttons.svelte-1shw51p {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-1shw51p {transform:translateX(0);}.bottom-right-buttons.svelte-1shw51p:hover {transform:translateX(0);}.pin-forge-buttons.svelte-1shw51p {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-1shw51p:hover {background:rgba(0, 0, 0, 0.85);transform:scale(1.1);}.pin-forge-buttons.pinned.svelte-1shw51p {background:#295dcf;transform:rotate(45deg);}.pin-forge-buttons.pinned.svelte-1shw51p:hover {background:#1e4ba8;transform:rotate(45deg) scale(1.1);}.btn-with-tooltip.svelte-1shw51p {position:relative;display:flex;align-items:center;transition:300ms;}.btn-with-tooltip.svelte-1shw51p:hover {transform:translateX(-6px);}.custom-tooltip.svelte-1shw51p {position:absolute;right:70px;background:rgba(0, 0, 0, 0.85);color:white;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:14px;opacity:0;pointer-events:none;transition:opacity 200ms;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3);}.hidden-btn.svelte-1shw51p {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-1shw51p {background:#28853d;color:white;}.hidden-btn-1.svelte-1shw51p:hover {background:#206a31;}.hidden-btn-2.svelte-1shw51p {background:#0099ff;color:white;}.hidden-btn-2.svelte-1shw51p:hover {background:#007acc;}.drag-overlay.svelte-1shw51p {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(41, 93, 207, 0.95);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1010;pointer-events:none;}.drag-content.svelte-1shw51p {text-align:center;color:white;}.drag-content.svelte-1shw51p p:where(.svelte-1shw51p) {margin-top:20px;font-size:24px;font-weight:600;}.upload-progress-overlay.svelte-1shw51p {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.8);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1011;}.upload-progress-content.svelte-1shw51p {text-align:center;color:white;padding:30px;background:rgba(41, 93, 207, 0.9);border-radius:10px;min-width:300px;}.upload-filename.svelte-1shw51p {margin:15px 0 10px 0;font-size:16px;font-weight:500;}.progress-bar-container.svelte-1shw51p {width:100%;height:8px;background:rgba(255, 255, 255, 0.2);border-radius:4px;overflow:hidden;margin:10px 0;}.progress-bar.svelte-1shw51p {height:100%;background:white;border-radius:4px;transition:width 0.3s ease;}.upload-percentage.svelte-1shw51p {margin:10px 0 0 0;font-size:20px;font-weight:600;}"
10588
10588
  };
10589
10589
  function go(t, e) {
10590
10590
  ie(e, !0), de(t, xm);
10591
- let n = Y(!1), r = Y(!1), s = Y("it"), a = Y(""), i = Y(0), o = Y(null), c = Y(C([])), l = Y(C([])), u = Y(!1), f = Y(!0), p = Y(C(new Audio())), h = Y(!0), w = Y(""), x = Y(""), k = Y(C([])), b = Y(0), _ = Y(null), $ = Y(!1), A = Y(0), S = Y("");
10591
+ let n = Y(!1), r = Y(!1), s = Y("it"), a = Y(""), i = Y(0), o = Y(null), c = Y(C([])), l = Y(C([])), u = Y(!1), f = Y(!0), h = Y(C(new Audio())), p = Y(!0), w = Y(""), x = Y(""), k = Y(C([])), b = Y(0), _ = Y(null), $ = Y(!1), A = Y(0), S = Y("");
10592
10592
  const L = (N, B, te) => {
10593
10593
  m(x, d(x) + N), m(k, C(B)), m(b, C(te));
10594
10594
  };
@@ -10624,11 +10624,11 @@ function go(t, e) {
10624
10624
  if (m(o, C(await _t.getChat(d(o)._id))), await Ge(), m(x, ""), m(k, C([])), m(l, C([
10625
10625
  ...d(l),
10626
10626
  d(o).messages[d(o).messages.length - 1]
10627
- ])), !d(h)) {
10627
+ ])), !d(p)) {
10628
10628
  const ze = d(o).messages[d(o).messages.length - 1];
10629
10629
  try {
10630
10630
  const Te = await Us.getAudio(ze.content, d(s));
10631
- m(p, C(new Audio(Te))), await d(p).play();
10631
+ m(h, C(new Audio(Te))), await d(h).play();
10632
10632
  } catch (Te) {
10633
10633
  console.error("Error playing audio:", Te);
10634
10634
  }
@@ -10654,10 +10654,10 @@ function go(t, e) {
10654
10654
  var B;
10655
10655
  !M.includes(d(D)) || (B = d(o)) != null && B.state.blockChat || (N.preventDefault(), N.stopPropagation(), Xn(ae, -1), d(ae) === 0 && m($, !1));
10656
10656
  }, ft = async (N) => {
10657
- var nt, pe, $e, Je, Ke, me, We;
10657
+ var nt, he, $e, Je, Ke, me, We;
10658
10658
  if (!M.includes(d(D)) || (nt = d(o)) != null && nt.state.blockChat) return;
10659
10659
  N.preventDefault(), N.stopPropagation();
10660
- const B = (pe = N.dataTransfer) == null ? void 0 : pe.types;
10660
+ const B = (he = N.dataTransfer) == null ? void 0 : he.types;
10661
10661
  console.log("[DROP DEBUG] DataTransfer types:", B), m(S, C(/* @__PURE__ */ xd())), m(A, 0);
10662
10662
  let te = 0, Z = 0;
10663
10663
  console.log("[UPLOAD DEBUG] Inizio upload e progresso simulato");
@@ -10742,7 +10742,7 @@ function go(t, e) {
10742
10742
  }
10743
10743
  };
10744
10744
  Ft(() => {
10745
- d(h) && d(p).pause();
10745
+ d(p) && d(h).pause();
10746
10746
  });
10747
10747
  let K = !1, Le, Pe, Ye, Oe;
10748
10748
  function Me(N) {
@@ -10751,23 +10751,23 @@ function go(t, e) {
10751
10751
  N.preventDefault(), N.stopPropagation(), K = !0, Le = N.clientX, Pe = N.clientY;
10752
10752
  const Z = document.querySelector(".chat");
10753
10753
  Ye = Z.offsetWidth, Oe = Z.offsetHeight, Z.classList.add("no-select");
10754
- const J = B.closest(".resize-handle"), V = B.classList.contains("resize-border-left"), ze = B.classList.contains("resize-border-top"), Te = (pe) => {
10754
+ const J = B.closest(".resize-handle"), V = B.classList.contains("resize-border-left"), ze = B.classList.contains("resize-border-top"), Te = (he) => {
10755
10755
  if (!K) return;
10756
- pe.preventDefault();
10756
+ he.preventDefault();
10757
10757
  const $e = document.querySelector(".chat"), Je = window.innerWidth * 0.75, Ke = window.innerHeight * 0.9;
10758
10758
  if (V) {
10759
- const me = Le - pe.clientX, We = Math.min(Math.max(Ye + me, 300), Je);
10759
+ const me = Le - he.clientX, We = Math.min(Math.max(Ye + me, 300), Je);
10760
10760
  $e.style.width = `${We}px`;
10761
10761
  } else if (ze) {
10762
- const me = Pe - pe.clientY, We = Math.min(Math.max(Oe + me, 400), Ke);
10762
+ const me = Pe - he.clientY, We = Math.min(Math.max(Oe + me, 400), Ke);
10763
10763
  $e.style.height = `${We}px`;
10764
10764
  } else if (J) {
10765
- const me = Le - pe.clientX, We = Pe - pe.clientY, qe = Math.min(Math.max(Ye + me, 300), Je), at = Math.min(Math.max(Oe + We, 400), Ke);
10765
+ const me = Le - he.clientX, We = Pe - he.clientY, qe = Math.min(Math.max(Ye + me, 300), Je), at = Math.min(Math.max(Oe + We, 400), Ke);
10766
10766
  $e.style.width = `${qe}px`, $e.style.height = `${at}px`;
10767
10767
  }
10768
10768
  }, nt = () => {
10769
- var pe;
10770
- K = !1, (pe = document.querySelector(".chat")) == null || pe.classList.remove("no-select"), document.removeEventListener("mousemove", Te), document.removeEventListener("mouseup", nt);
10769
+ var he;
10770
+ K = !1, (he = document.querySelector(".chat")) == null || he.classList.remove("no-select"), document.removeEventListener("mousemove", Te), document.removeEventListener("mouseup", nt);
10771
10771
  };
10772
10772
  document.addEventListener("mousemove", Te), document.addEventListener("mouseup", nt);
10773
10773
  }
@@ -10859,8 +10859,8 @@ function go(t, e) {
10859
10859
  B.__mousedown = Me;
10860
10860
  var te = T(B);
10861
10861
  {
10862
- var Z = (pe) => {
10863
- var $e = hm(), Je = T($e), Ke = T(Je);
10862
+ var Z = (he) => {
10863
+ var $e = pm(), Je = T($e), Ke = T(Je);
10864
10864
  rn(Ke, {
10865
10865
  icon: "mdi:file-upload",
10866
10866
  width: "80px",
@@ -10870,15 +10870,15 @@ function go(t, e) {
10870
10870
  var me = O(Ke, 2), We = T(me, !0);
10871
10871
  y(me), y(Je), y($e), P((qe) => Se(We, qe), [
10872
10872
  () => /* @__PURE__ */ wd() || "Drop files here"
10873
- ]), Rt(3, $e, () => tn, () => ({ duration: 200 })), E(pe, $e);
10873
+ ]), Rt(3, $e, () => tn, () => ({ duration: 200 })), E(he, $e);
10874
10874
  };
10875
- X(te, (pe) => {
10876
- d($) && pe(Z);
10875
+ X(te, (he) => {
10876
+ d($) && he(Z);
10877
10877
  });
10878
10878
  }
10879
10879
  var J = O(te, 2);
10880
10880
  {
10881
- var V = (pe) => {
10881
+ var V = (he) => {
10882
10882
  var $e = vm(), Je = T($e), Ke = T(Je);
10883
10883
  rn(Ke, {
10884
10884
  icon: "svg-spinners:270-ring-with-bg",
@@ -10898,23 +10898,23 @@ function go(t, e) {
10898
10898
  [
10899
10899
  () => Math.round(d(A))
10900
10900
  ]
10901
- ), Rt(3, $e, () => tn, () => ({ duration: 200 })), E(pe, $e);
10901
+ ), Rt(3, $e, () => tn, () => ({ duration: 200 })), E(he, $e);
10902
10902
  };
10903
- X(J, (pe) => {
10904
- d(S) && pe(V);
10903
+ X(J, (he) => {
10904
+ d(S) && he(V);
10905
10905
  });
10906
10906
  }
10907
10907
  var ze = O(J, 2);
10908
10908
  {
10909
- var Te = (pe) => {
10909
+ var Te = (he) => {
10910
10910
  var $e = gm(), Je = T($e);
10911
10911
  rn(Je, {
10912
10912
  icon: "svg-spinners:270-ring-with-bg",
10913
10913
  width: "50px",
10914
10914
  height: "50px",
10915
10915
  color: "white"
10916
- }), y($e), E(pe, $e);
10917
- }, nt = (pe) => {
10916
+ }), y($e), E(he, $e);
10917
+ }, nt = (he) => {
10918
10918
  var $e = yt(), Je = ot($e);
10919
10919
  {
10920
10920
  var Ke = (me) => {
@@ -11002,10 +11002,10 @@ function go(t, e) {
11002
11002
  m(o, C(z));
11003
11003
  },
11004
11004
  get muted() {
11005
- return d(h);
11005
+ return d(p);
11006
11006
  },
11007
11007
  set muted(z) {
11008
- m(h, C(z));
11008
+ m(p, C(z));
11009
11009
  },
11010
11010
  get languageSelected() {
11011
11011
  return d(s);
@@ -11027,7 +11027,7 @@ function go(t, e) {
11027
11027
  }
11028
11028
  });
11029
11029
  var Fe = O(ee, 2);
11030
- ho(Fe, {
11030
+ po(Fe, {
11031
11031
  get messages() {
11032
11032
  return d(l);
11033
11033
  },
@@ -11152,10 +11152,10 @@ function go(t, e) {
11152
11152
  !0
11153
11153
  );
11154
11154
  }
11155
- E(pe, $e);
11155
+ E(he, $e);
11156
11156
  };
11157
- X(ze, (pe) => {
11158
- d(f) ? pe(Te) : pe(nt, !1);
11157
+ X(ze, (he) => {
11158
+ d(f) ? he(Te) : he(nt, !1);
11159
11159
  });
11160
11160
  }
11161
11161
  y(B), en("dragenter", B, Xe), en("dragover", B, Qe), en("dragleave", B, ct), en("drop", B, ft), Rt(3, B, () => nc, () => ({ y: 50, duration: 500 })), E(N, B);
@@ -11166,7 +11166,7 @@ function go(t, e) {
11166
11166
  }
11167
11167
  var Re = O(je, 2);
11168
11168
  Re.__click = [
11169
- pm,
11169
+ hm,
11170
11170
  D,
11171
11171
  ce,
11172
11172
  Ie,
@@ -11187,7 +11187,7 @@ function _m(t, e) {
11187
11187
  let n = g(e, "envId", 23, () => {
11188
11188
  }), r = g(e, "token", 23, () => {
11189
11189
  }), s = g(e, "lang", 7, "it");
11190
- return document.cookie = `akb-chat-envid=${n()}`, document.cookie = `akb-chat-token=${r()}`, oc(ph(s())), go(t, {}), oe({
11190
+ return document.cookie = `akb-chat-envid=${n()}`, document.cookie = `akb-chat-token=${r()}`, oc(hp(s())), go(t, {}), oe({
11191
11191
  get envId() {
11192
11192
  return n();
11193
11193
  },