akpm-procedures 1.1.67 → 1.1.69

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/akpm-procedures.js +297 -290
  2. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
- /* Version: 1.1.67 */
1
+ /* Version: 1.1.69 */
2
2
  var Gu = Object.defineProperty;
3
- var Yo = (e) => {
3
+ var Jo = (e) => {
4
4
  throw TypeError(e);
5
5
  };
6
6
  var Vu = (e, t, r) => t in e ? Gu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
7
- var P = (e, t, r) => Vu(e, typeof t != "symbol" ? t + "" : t, r), Aa = (e, t, r) => t.has(e) || Yo("Cannot " + r);
8
- var x = (e, t, r) => (Aa(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ve = (e, t, r) => t.has(e) ? Yo("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), oe = (e, t, r, n) => (Aa(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), Ke = (e, t, r) => (Aa(e, t, "access private method"), r);
9
- const Ju = "5";
7
+ var P = (e, t, r) => Vu(e, typeof t != "symbol" ? t + "" : t, r), Aa = (e, t, r) => t.has(e) || Jo("Cannot " + r);
8
+ var x = (e, t, r) => (Aa(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ve = (e, t, r) => t.has(e) ? Jo("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), oe = (e, t, r, n) => (Aa(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), Ke = (e, t, r) => (Aa(e, t, "access private method"), r);
9
+ const Yu = "5";
10
10
  var Ds;
11
- typeof window < "u" && ((Ds = window.__svelte ?? (window.__svelte = {})).v ?? (Ds.v = /* @__PURE__ */ new Set())).add(Ju);
12
- const Yu = 1, Xu = 2, Rs = 4, Zu = 8, Wu = 16, Qu = 1, Ku = 2, ec = 4, tc = 8, rc = 16, nc = 1, ic = 2, ac = 4, oc = 1, sc = 2, da = "[", fa = "[!", Xo = "[?", vo = "]", Cn = {}, ut = Symbol(), Fs = "http://www.w3.org/1999/xhtml", Da = !1;
11
+ typeof window < "u" && ((Ds = window.__svelte ?? (window.__svelte = {})).v ?? (Ds.v = /* @__PURE__ */ new Set())).add(Yu);
12
+ const Ju = 1, Xu = 2, Rs = 4, Zu = 8, Wu = 16, Qu = 1, Ku = 2, ec = 4, tc = 8, rc = 16, nc = 1, ic = 2, ac = 4, oc = 1, sc = 2, da = "[", fa = "[!", Xo = "[?", vo = "]", Cn = {}, ut = Symbol(), Fs = "http://www.w3.org/1999/xhtml", Da = !1;
13
13
  var gi = Array.isArray, lc = Array.prototype.indexOf, Nn = Array.prototype.includes, ha = Array.from, Gi = Object.keys, ni = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, qs = Object.getOwnPropertyDescriptors, uc = Object.prototype, cc = Array.prototype, po = Object.getPrototypeOf, Zo = Object.isExtensible;
14
14
  function bn(e) {
15
15
  return typeof e == "function";
@@ -29,7 +29,7 @@ function Us() {
29
29
  });
30
30
  return { promise: r, resolve: e, reject: t };
31
31
  }
32
- const ft = 2, bi = 4, _i = 8, Gs = 1 << 24, fr = 16, er = 32, Rr = 64, Ma = 128, jt = 512, ot = 1024, ht = 2048, qt = 4096, Pt = 8192, Er = 16384, Ar = 32768, Cr = 65536, Wo = 1 << 17, Vs = 1 << 18, dn = 1 << 19, Js = 1 << 20, wr = 1 << 25, an = 65536, ja = 1 << 21, mo = 1 << 22, $r = 1 << 23, kr = Symbol("$state"), go = Symbol("legacy props"), fc = Symbol(""), Vr = new class extends Error {
32
+ const ft = 2, bi = 4, _i = 8, Gs = 1 << 24, fr = 16, er = 32, Rr = 64, Ma = 128, jt = 512, ot = 1024, ht = 2048, qt = 4096, Pt = 8192, Er = 16384, Ar = 32768, Cr = 65536, Wo = 1 << 17, Vs = 1 << 18, dn = 1 << 19, Ys = 1 << 20, wr = 1 << 25, an = 65536, ja = 1 << 21, mo = 1 << 22, $r = 1 << 23, kr = Symbol("$state"), go = Symbol("legacy props"), fc = Symbol(""), Vr = new class extends Error {
33
33
  constructor() {
34
34
  super(...arguments);
35
35
  P(this, "name", "StaleReactionError");
@@ -148,7 +148,7 @@ function _o(e) {
148
148
  e.data
149
149
  );
150
150
  }
151
- function Ys(e) {
151
+ function Js(e) {
152
152
  return e === this.v;
153
153
  }
154
154
  function Xs(e, t) {
@@ -192,22 +192,22 @@ function ae(e) {
192
192
  function xi() {
193
193
  return !Bn || De !== null && De.l === null;
194
194
  }
195
- let Jr = [];
195
+ let Yr = [];
196
196
  function Ws() {
197
- var e = Jr;
198
- Jr = [], Vi(e);
197
+ var e = Yr;
198
+ Yr = [], Vi(e);
199
199
  }
200
200
  function Sr(e) {
201
- if (Jr.length === 0 && !Qn) {
202
- var t = Jr;
201
+ if (Yr.length === 0 && !Qn) {
202
+ var t = Yr;
203
203
  queueMicrotask(() => {
204
- t === Jr && Ws();
204
+ t === Yr && Ws();
205
205
  });
206
206
  }
207
- Jr.push(e);
207
+ Yr.push(e);
208
208
  }
209
209
  function zc() {
210
- for (; Jr.length > 0; )
210
+ for (; Yr.length > 0; )
211
211
  Ws();
212
212
  }
213
213
  function Qs(e) {
@@ -253,9 +253,9 @@ function el(e, t, r) {
253
253
  e.f & ht ? t.add(e) : e.f & qt && r.add(e), Ks(e.deps), Ve(e, ot);
254
254
  }
255
255
  const Oi = /* @__PURE__ */ new Set();
256
- let ne = null, Ji = null, ct = null, kt = [], ga = null, Ra = !1, Qn = !1;
256
+ let ne = null, Yi = null, ct = null, kt = [], ga = null, Ra = !1, Qn = !1;
257
257
  var wn, xn, Zr, En, fi, hi, Wr, vr, kn, $t, Fa, qa, Ua, tl;
258
- const Jo = class Jo {
258
+ const Yo = class Yo {
259
259
  constructor() {
260
260
  ve(this, $t);
261
261
  /**
@@ -354,7 +354,7 @@ const Jo = class Jo {
354
354
  al(a, o);
355
355
  } else {
356
356
  for (const a of x(this, wn)) a();
357
- x(this, wn).clear(), x(this, Zr) === 0 && Ke(this, $t, tl).call(this), Ji = this, ne = null, Qo(n), Qo(r), Ji = null, (i = x(this, fi)) == null || i.resolve();
357
+ x(this, wn).clear(), x(this, Zr) === 0 && Ke(this, $t, tl).call(this), Yi = this, ne = null, Qo(n), Qo(r), Yi = null, (i = x(this, fi)) == null || i.resolve();
358
358
  }
359
359
  ct = null;
360
360
  }
@@ -420,7 +420,7 @@ const Jo = class Jo {
420
420
  }
421
421
  static ensure() {
422
422
  if (ne === null) {
423
- const t = ne = new Jo();
423
+ const t = ne = new Yo();
424
424
  Oi.add(ne), Qn || Sr(() => {
425
425
  ne === t && t.flush();
426
426
  });
@@ -507,7 +507,7 @@ Ua = function(t) {
507
507
  }
508
508
  Oi.delete(this);
509
509
  };
510
- let Tr = Jo;
510
+ let Tr = Yo;
511
511
  function g(e) {
512
512
  var t = Qn;
513
513
  Qn = !0;
@@ -545,29 +545,29 @@ function Lc() {
545
545
  Lr(e, ga);
546
546
  }
547
547
  }
548
- let Jt = null;
548
+ let Yt = null;
549
549
  function Qo(e) {
550
550
  var t = e.length;
551
551
  if (t !== 0) {
552
552
  for (var r = 0; r < t; ) {
553
553
  var n = e[r++];
554
- if (!(n.f & (Er | Pt)) && Mn(n) && (Jt = /* @__PURE__ */ new Set(), sn(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && xl(n), (Jt == null ? void 0 : Jt.size) > 0)) {
554
+ if (!(n.f & (Er | Pt)) && Mn(n) && (Yt = /* @__PURE__ */ new Set(), sn(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && xl(n), (Yt == null ? void 0 : Yt.size) > 0)) {
555
555
  Hr.clear();
556
- for (const i of Jt) {
556
+ for (const i of Yt) {
557
557
  if (i.f & (Er | Pt)) continue;
558
558
  const a = [i];
559
559
  let o = i.parent;
560
560
  for (; o !== null; )
561
- Jt.has(o) && (Jt.delete(o), a.push(o)), o = o.parent;
561
+ Yt.has(o) && (Yt.delete(o), a.push(o)), o = o.parent;
562
562
  for (let s = a.length - 1; s >= 0; s--) {
563
563
  const l = a[s];
564
564
  l.f & (Er | Pt) || sn(l);
565
565
  }
566
566
  }
567
- Jt.clear();
567
+ Yt.clear();
568
568
  }
569
569
  }
570
- Jt = null;
570
+ Yt = null;
571
571
  }
572
572
  }
573
573
  function nl(e, t, r, n) {
@@ -647,7 +647,7 @@ var $c = Cr | dn;
647
647
  function Hc(e, t, r, n) {
648
648
  new Bc(e, t, r, n);
649
649
  }
650
- var It, vi, ar, Qr, Et, or, zt, Yt, pr, Kr, Or, Sn, Tn, An, mr, ua, Xe, ol, sl, ll, Ga, Mi, ji, Va;
650
+ var It, vi, ar, Qr, Et, or, zt, Jt, pr, Kr, Or, Sn, Tn, An, mr, ua, Xe, ol, sl, ll, Ga, Mi, ji, Va;
651
651
  class Bc {
652
652
  /**
653
653
  * @param {TemplateNode} node
@@ -681,7 +681,7 @@ class Bc {
681
681
  /** @type {Effect | null} */
682
682
  ve(this, zt, null);
683
683
  /** @type {Effect | null} */
684
- ve(this, Yt, null);
684
+ ve(this, Jt, null);
685
685
  /** @type {DocumentFragment | null} */
686
686
  ve(this, pr, null);
687
687
  ve(this, Kr, 0);
@@ -766,7 +766,7 @@ class Bc {
766
766
  let n = x(this, ar).failed;
767
767
  if (!r && !n)
768
768
  throw t;
769
- x(this, or) && (bt(x(this, or)), oe(this, or, null)), x(this, zt) && (bt(x(this, zt)), oe(this, zt, null)), x(this, Yt) && (bt(x(this, Yt)), oe(this, Yt, null)), pe && (gt(
769
+ x(this, or) && (bt(x(this, or)), oe(this, or, null)), x(this, zt) && (bt(x(this, zt)), oe(this, zt, null)), x(this, Jt) && (bt(x(this, Jt)), oe(this, Jt, null)), pe && (gt(
770
770
  /** @type {TemplateNode} */
771
771
  x(this, vi)
772
772
  ), bo(), gt(ii()));
@@ -776,8 +776,8 @@ class Bc {
776
776
  Cc();
777
777
  return;
778
778
  }
779
- i = !0, a && Tc(), x(this, Yt) !== null && tn(x(this, Yt), () => {
780
- oe(this, Yt, null);
779
+ i = !0, a && Tc(), x(this, Jt) !== null && tn(x(this, Jt), () => {
780
+ oe(this, Jt, null);
781
781
  }), Ke(this, Xe, ji).call(this, () => {
782
782
  Tr.ensure(), Ke(this, Xe, Ga).call(this);
783
783
  });
@@ -787,7 +787,7 @@ class Bc {
787
787
  } catch (c) {
788
788
  Lr(c, x(this, Et) && x(this, Et).parent);
789
789
  }
790
- n && oe(this, Yt, Ke(this, Xe, ji).call(this, () => {
790
+ n && oe(this, Jt, Ke(this, Xe, ji).call(this, () => {
791
791
  Tr.ensure();
792
792
  try {
793
793
  return Mt(() => {
@@ -827,7 +827,7 @@ class Bc {
827
827
  });
828
828
  }
829
829
  }
830
- It = new WeakMap(), vi = new WeakMap(), ar = new WeakMap(), Qr = new WeakMap(), Et = new WeakMap(), or = new WeakMap(), zt = new WeakMap(), Yt = new WeakMap(), pr = new WeakMap(), Kr = new WeakMap(), Or = new WeakMap(), Sn = new WeakMap(), Tn = new WeakMap(), An = new WeakMap(), mr = new WeakMap(), ua = new WeakMap(), Xe = new WeakSet(), ol = function() {
830
+ It = new WeakMap(), vi = new WeakMap(), ar = new WeakMap(), Qr = new WeakMap(), Et = new WeakMap(), or = new WeakMap(), zt = new WeakMap(), Jt = new WeakMap(), pr = new WeakMap(), Kr = new WeakMap(), Or = new WeakMap(), Sn = new WeakMap(), Tn = new WeakMap(), An = new WeakMap(), mr = new WeakMap(), ua = new WeakMap(), Xe = new WeakSet(), ol = function() {
831
831
  try {
832
832
  oe(this, or, Mt(() => x(this, Qr).call(this, x(this, It))));
833
833
  } catch (t) {
@@ -838,7 +838,7 @@ It = new WeakMap(), vi = new WeakMap(), ar = new WeakMap(), Qr = new WeakMap(),
838
838
  */
839
839
  sl = function(t) {
840
840
  const r = x(this, ar).failed;
841
- r && oe(this, Yt, Mt(() => {
841
+ r && oe(this, Jt, Mt(() => {
842
842
  r(
843
843
  x(this, It),
844
844
  () => t,
@@ -929,7 +929,7 @@ function Dc(e, t, r, n) {
929
929
  } catch (d) {
930
930
  o.f & Er || Lr(d, o);
931
931
  }
932
- Ja();
932
+ Ya();
933
933
  }
934
934
  if (r.length === 0) {
935
935
  l.then(() => c(t.map(i)));
@@ -946,7 +946,7 @@ function Mc() {
946
946
  dr(e), Ut(t), In(r), a && (n == null || n.activate());
947
947
  };
948
948
  }
949
- function Ja(e = !0) {
949
+ function Ya(e = !0) {
950
950
  dr(null), Ut(null), In(null), e && (ne == null || ne.deactivate());
951
951
  }
952
952
  function jc() {
@@ -972,7 +972,7 @@ function Ei(e) {
972
972
  ctx: De,
973
973
  deps: null,
974
974
  effects: null,
975
- equals: Ys,
975
+ equals: Js,
976
976
  f: t,
977
977
  fn: e,
978
978
  reactions: null,
@@ -1003,9 +1003,9 @@ function Rc(e, t, r) {
1003
1003
  var l = Us();
1004
1004
  i = l.promise;
1005
1005
  try {
1006
- Promise.resolve(e()).then(l.resolve, l.reject).finally(Ja);
1006
+ Promise.resolve(e()).then(l.resolve, l.reject).finally(Ya);
1007
1007
  } catch (v) {
1008
- l.reject(v), Ja();
1008
+ l.reject(v), Ya();
1009
1009
  }
1010
1010
  var c = (
1011
1011
  /** @type {Batch} */
@@ -1102,7 +1102,7 @@ function cl(e) {
1102
1102
  for (const t of e.effects)
1103
1103
  t.teardown && sn(t);
1104
1104
  }
1105
- let Ya = /* @__PURE__ */ new Set();
1105
+ let Ja = /* @__PURE__ */ new Set();
1106
1106
  const Hr = /* @__PURE__ */ new Map();
1107
1107
  let dl = !1;
1108
1108
  function on(e, t) {
@@ -1111,14 +1111,14 @@ function on(e, t) {
1111
1111
  // TODO ideally we could skip this altogether, but it causes type errors
1112
1112
  v: e,
1113
1113
  reactions: null,
1114
- equals: Ys,
1114
+ equals: Js,
1115
1115
  rv: 0,
1116
1116
  wv: 0
1117
1117
  };
1118
1118
  return r;
1119
1119
  }
1120
1120
  // @__NO_SIDE_EFFECTS__
1121
- function J(e, t) {
1121
+ function Y(e, t) {
1122
1122
  const r = on(e);
1123
1123
  return Tl(r), r;
1124
1124
  }
@@ -1147,15 +1147,15 @@ function zn(e, t) {
1147
1147
  );
1148
1148
  e.f & ht && xo(i), yo(i);
1149
1149
  }
1150
- e.wv = Cl(), fl(e, ht), xi() && we !== null && we.f & ot && !(we.f & (er | Rr)) && (Bt === null ? ed([e]) : Bt.push(e)), !n.is_fork && Ya.size > 0 && !dl && Gc();
1150
+ e.wv = Cl(), fl(e, ht), xi() && we !== null && we.f & ot && !(we.f & (er | Rr)) && (Bt === null ? ed([e]) : Bt.push(e)), !n.is_fork && Ja.size > 0 && !dl && Gc();
1151
1151
  }
1152
1152
  return t;
1153
1153
  }
1154
1154
  function Gc() {
1155
1155
  dl = !1;
1156
- for (const e of Ya)
1156
+ for (const e of Ja)
1157
1157
  e.f & ot && Ve(e, qt), Mn(e) && sn(e);
1158
- Ya.clear();
1158
+ Ja.clear();
1159
1159
  }
1160
1160
  function Kn(e) {
1161
1161
  k(e, e.v + 1);
@@ -1173,7 +1173,7 @@ function fl(e, t) {
1173
1173
  o
1174
1174
  );
1175
1175
  ct == null || ct.delete(c), s & an || (s & jt && (o.f |= an), fl(c, qt));
1176
- } else l && (s & fr && Jt !== null && Jt.add(
1176
+ } else l && (s & fr && Yt !== null && Yt.add(
1177
1177
  /** @type {Effect} */
1178
1178
  o
1179
1179
  ), Qt(
@@ -1189,7 +1189,7 @@ function at(e) {
1189
1189
  const t = po(e);
1190
1190
  if (t !== uc && t !== cc)
1191
1191
  return e;
1192
- var r = /* @__PURE__ */ new Map(), n = gi(e), i = /* @__PURE__ */ J(0), a = rn, o = (s) => {
1192
+ var r = /* @__PURE__ */ new Map(), n = gi(e), i = /* @__PURE__ */ Y(0), a = rn, o = (s) => {
1193
1193
  if (rn === a)
1194
1194
  return s();
1195
1195
  var l = be, c = rn;
@@ -1197,7 +1197,7 @@ function at(e) {
1197
1197
  var u = s();
1198
1198
  return Ut(l), ns(c), u;
1199
1199
  };
1200
- return n && r.set("length", /* @__PURE__ */ J(
1200
+ return n && r.set("length", /* @__PURE__ */ Y(
1201
1201
  /** @type {any[]} */
1202
1202
  e.length
1203
1203
  )), new Proxy(
@@ -1208,7 +1208,7 @@ function at(e) {
1208
1208
  (!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && Ec();
1209
1209
  var u = r.get(l);
1210
1210
  return u === void 0 ? o(() => {
1211
- var f = /* @__PURE__ */ J(c.value);
1211
+ var f = /* @__PURE__ */ Y(c.value);
1212
1212
  return r.set(l, f), f;
1213
1213
  }) : k(u, c.value, !0), !0;
1214
1214
  },
@@ -1216,7 +1216,7 @@ function at(e) {
1216
1216
  var c = r.get(l);
1217
1217
  if (c === void 0) {
1218
1218
  if (l in s) {
1219
- const u = o(() => /* @__PURE__ */ J(ut));
1219
+ const u = o(() => /* @__PURE__ */ Y(ut));
1220
1220
  r.set(l, u), Kn(i);
1221
1221
  }
1222
1222
  } else
@@ -1229,7 +1229,7 @@ function at(e) {
1229
1229
  return e;
1230
1230
  var u = r.get(l), f = l in s;
1231
1231
  if (u === void 0 && (!f || (v = xr(s, l)) != null && v.writable) && (u = o(() => {
1232
- var p = at(f ? s[l] : ut), m = /* @__PURE__ */ J(p);
1232
+ var p = at(f ? s[l] : ut), m = /* @__PURE__ */ Y(p);
1233
1233
  return m;
1234
1234
  }), r.set(l, u)), u !== void 0) {
1235
1235
  var d = h(u);
@@ -1261,7 +1261,7 @@ function at(e) {
1261
1261
  var c = r.get(l), u = c !== void 0 && c.v !== ut || Reflect.has(s, l);
1262
1262
  if (c !== void 0 || we !== null && (!u || (d = xr(s, l)) != null && d.writable)) {
1263
1263
  c === void 0 && (c = o(() => {
1264
- var v = u ? at(s[l]) : ut, p = /* @__PURE__ */ J(v);
1264
+ var v = u ? at(s[l]) : ut, p = /* @__PURE__ */ Y(v);
1265
1265
  return p;
1266
1266
  }), r.set(l, c));
1267
1267
  var f = h(c);
@@ -1277,10 +1277,10 @@ function at(e) {
1277
1277
  for (var v = c; v < /** @type {Source<number>} */
1278
1278
  f.v; v += 1) {
1279
1279
  var p = r.get(v + "");
1280
- p !== void 0 ? k(p, ut) : v in s && (p = o(() => /* @__PURE__ */ J(ut)), r.set(v + "", p));
1280
+ p !== void 0 ? k(p, ut) : v in s && (p = o(() => /* @__PURE__ */ Y(ut)), r.set(v + "", p));
1281
1281
  }
1282
1282
  if (f === void 0)
1283
- (!d || (H = xr(s, l)) != null && H.writable) && (f = o(() => /* @__PURE__ */ J(void 0)), k(f, at(c)), r.set(l, f));
1283
+ (!d || (H = xr(s, l)) != null && H.writable) && (f = o(() => /* @__PURE__ */ Y(void 0)), k(f, at(c)), r.set(l, f));
1284
1284
  else {
1285
1285
  d = f.v !== ut;
1286
1286
  var m = o(() => at(c));
@@ -1464,7 +1464,7 @@ function So(e, t, r, n = r) {
1464
1464
  function _l(e) {
1465
1465
  we === null && (be === null && bc(), gc()), Dr && mc();
1466
1466
  }
1467
- function Jc(e, t) {
1467
+ function Yc(e, t) {
1468
1468
  var r = t.last;
1469
1469
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1470
1470
  }
@@ -1496,7 +1496,7 @@ function tr(e, t, r) {
1496
1496
  else t !== null && Qt(i);
1497
1497
  var a = i;
1498
1498
  if (r && a.deps === null && a.teardown === null && a.nodes === null && a.first === a.last && // either `null`, or a singular child
1499
- !(a.f & dn) && (a = a.first, e & fr && e & Cr && a !== null && (a.f |= Cr)), a !== null && (a.parent = n, n !== null && Jc(a, n), be !== null && be.f & ft && !(e & Rr))) {
1499
+ !(a.f & dn) && (a = a.first, e & fr && e & Cr && a !== null && (a.f |= Cr)), a !== null && (a.parent = n, n !== null && Yc(a, n), be !== null && be.f & ft && !(e & Rr))) {
1500
1500
  var o = (
1501
1501
  /** @type {Derived} */
1502
1502
  be
@@ -1528,10 +1528,10 @@ function ai(e) {
1528
1528
  return yl(e);
1529
1529
  }
1530
1530
  function yl(e) {
1531
- return tr(bi | Js, e, !1);
1531
+ return tr(bi | Ys, e, !1);
1532
1532
  }
1533
- function Yc(e) {
1534
- return _l(), tr(_i | Js, e, !0);
1533
+ function Jc(e) {
1534
+ return _l(), tr(_i | Ys, e, !0);
1535
1535
  }
1536
1536
  function Xc(e) {
1537
1537
  Tr.ensure();
@@ -1718,7 +1718,7 @@ let St = null, Nt = 0, Bt = null;
1718
1718
  function ed(e) {
1719
1719
  Bt = e;
1720
1720
  }
1721
- let Al = 1, Yr = 0, rn = Yr;
1721
+ let Al = 1, Jr = 0, rn = Jr;
1722
1722
  function ns(e) {
1723
1723
  rn = e;
1724
1724
  }
@@ -1770,7 +1770,7 @@ function Il(e) {
1770
1770
  var m;
1771
1771
  var t = St, r = Nt, n = Bt, i = be, a = Ft, o = De, s = Kt, l = rn, c = e.f;
1772
1772
  St = /** @type {null | Value[]} */
1773
- null, Nt = 0, Bt = null, be = c & (er | Rr) ? null : e, Ft = null, In(e.ctx), Kt = !1, rn = ++Yr, e.ac !== null && (ki(() => {
1773
+ null, Nt = 0, Bt = null, be = c & (er | Rr) ? null : e, Ft = null, In(e.ctx), Kt = !1, rn = ++Jr, e.ac !== null && (ki(() => {
1774
1774
  e.ac.abort(Vr);
1775
1775
  }), e.ac = null);
1776
1776
  try {
@@ -1801,12 +1801,12 @@ function Il(e) {
1801
1801
  e
1802
1802
  );
1803
1803
  if (i !== null && i !== e) {
1804
- if (Yr++, i.deps !== null)
1804
+ if (Jr++, i.deps !== null)
1805
1805
  for (let _ = 0; _ < r; _ += 1)
1806
- i.deps[_].rv = Yr;
1806
+ i.deps[_].rv = Jr;
1807
1807
  if (t !== null)
1808
1808
  for (const _ of t)
1809
- _.rv = Yr;
1809
+ _.rv = Jr;
1810
1810
  Bt !== null && (n === null ? n = Bt : n.push(.../** @type {Source[]} */
1811
1811
  Bt));
1812
1812
  }
@@ -1870,7 +1870,7 @@ function h(e) {
1870
1870
  if (!n && (Ft === null || !Nn.call(Ft, e))) {
1871
1871
  var i = be.deps;
1872
1872
  if (be.f & ja)
1873
- e.rv < Yr && (e.rv = Yr, St === null && i !== null && i[Nt] === e ? Nt++ : St === null ? St = [e] : St.push(e));
1873
+ e.rv < Jr && (e.rv = Jr, St === null && i !== null && i[Nt] === e ? Nt++ : St === null ? St = [e] : St.push(e));
1874
1874
  else {
1875
1875
  (be.deps ?? (be.deps = [])).push(e);
1876
1876
  var a = e.reactions;
@@ -2139,7 +2139,7 @@ function od(e) {
2139
2139
  return ad.includes(e);
2140
2140
  }
2141
2141
  let Qa = !0;
2142
- function Q(e, t) {
2142
+ function K(e, t) {
2143
2143
  var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
2144
2144
  r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
2145
2145
  }
@@ -2439,7 +2439,7 @@ function ke(e, t, r = !1) {
2439
2439
  }), o || a(!1, null);
2440
2440
  }, i);
2441
2441
  }
2442
- function Je(e, t) {
2442
+ function Ye(e, t) {
2443
2443
  return t;
2444
2444
  }
2445
2445
  function vd(e, t, r) {
@@ -2486,7 +2486,7 @@ function eo(e, t = !0) {
2486
2486
  bt(e[r], t);
2487
2487
  }
2488
2488
  var os;
2489
- function Ye(e, t, r, n, i, a = null) {
2489
+ function Je(e, t, r, n, i, a = null) {
2490
2490
  var o = e, s = /* @__PURE__ */ new Map(), l = (t & Rs) !== 0;
2491
2491
  if (l) {
2492
2492
  var c = (
@@ -2514,7 +2514,7 @@ function Ye(e, t, r, n, i, a = null) {
2514
2514
  var H = _o(o) === fa;
2515
2515
  H !== (E === 0) && (o = ii(), gt(o), Wt(!1), O = !0);
2516
2516
  }
2517
- for (var L = /* @__PURE__ */ new Set(), Y = (
2517
+ for (var L = /* @__PURE__ */ new Set(), J = (
2518
2518
  /** @type {Batch} */
2519
2519
  ne
2520
2520
  ), T = gl(), S = 0; S < E; S += 1) {
@@ -2522,7 +2522,7 @@ function Ye(e, t, r, n, i, a = null) {
2522
2522
  he.data === vo && (o = /** @type {Comment} */
2523
2523
  he, O = !0, Wt(!1));
2524
2524
  var A = d[S], D = n(A, S), j = v ? null : s.get(D);
2525
- j ? (j.v && zn(j.v, A), j.i && zn(j.i, S), T && Y.unskip_effect(j.e)) : (j = md(
2525
+ j ? (j.v && zn(j.v, A), j.i && zn(j.i, S), T && J.unskip_effect(j.e)) : (j = md(
2526
2526
  s,
2527
2527
  v ? o : os ?? (os = Rt()),
2528
2528
  A,
@@ -2536,8 +2536,8 @@ function Ye(e, t, r, n, i, a = null) {
2536
2536
  if (E === 0 && a && !u && (v ? u = Mt(() => a(o)) : (u = Mt(() => a(os ?? (os = Rt()))), u.f |= wr)), E > L.size && pc(), pe && E > 0 && gt(ii()), !v)
2537
2537
  if (T) {
2538
2538
  for (const [R, U] of s)
2539
- L.has(R) || Y.skip_effect(U.e);
2540
- Y.oncommit(p), Y.ondiscard(() => {
2539
+ L.has(R) || J.skip_effect(U.e);
2540
+ J.oncommit(p), J.ondiscard(() => {
2541
2541
  });
2542
2542
  } else
2543
2543
  p();
@@ -2575,12 +2575,12 @@ function pd(e, t, r, n, i) {
2575
2575
  if (d.length < v.length) {
2576
2576
  var H = v[0], L;
2577
2577
  u = H.prev;
2578
- var Y = d[0], T = d[d.length - 1];
2578
+ var J = d[0], T = d[d.length - 1];
2579
2579
  for (L = 0; L < d.length; L += 1)
2580
2580
  Xn(d[L], H, r);
2581
2581
  for (L = 0; L < v.length; L += 1)
2582
2582
  c.delete(v[L]);
2583
- Ir(e, Y.prev, T.next), Ir(e, u, Y), Ir(e, T, H), l = H, u = T, E -= 1, d = [], v = [];
2583
+ Ir(e, J.prev, T.next), Ir(e, u, J), Ir(e, T, H), l = H, u = T, E -= 1, d = [], v = [];
2584
2584
  } else
2585
2585
  c.delete(_), Xn(_, l, r), Ir(e, _.prev, _.next), Ir(e, _, u === null ? e.effect.first : u.next), Ir(e, u, _), u = _;
2586
2586
  continue;
@@ -2624,7 +2624,7 @@ function pd(e, t, r, n, i) {
2624
2624
  });
2625
2625
  }
2626
2626
  function md(e, t, r, n, i, a, o, s) {
2627
- var l = o & Yu ? o & Wu ? on(r) : /* @__PURE__ */ ur(r, !1, !1) : null, c = o & Xu ? on(i) : null;
2627
+ var l = o & Ju ? o & Wu ? on(r) : /* @__PURE__ */ ur(r, !1, !1) : null, c = o & Xu ? on(i) : null;
2628
2628
  return {
2629
2629
  v: l,
2630
2630
  i: c,
@@ -2699,7 +2699,7 @@ function bd(e) {
2699
2699
  }
2700
2700
  };
2701
2701
  }
2702
- function Yi(e, t) {
2702
+ function Ji(e, t) {
2703
2703
  ki(() => {
2704
2704
  e.dispatchEvent(new CustomEvent(t));
2705
2705
  });
@@ -2743,7 +2743,7 @@ function us(e, t, r, n) {
2743
2743
  return;
2744
2744
  }
2745
2745
  a || d == null || d.abort(), d = to(t, p(), v, 1, () => {
2746
- Yi(t, "introend"), d == null || d.abort(), d = c = void 0, t.style.overflow = f;
2746
+ Ji(t, "introend"), d == null || d.abort(), d = c = void 0, t.style.overflow = f;
2747
2747
  });
2748
2748
  },
2749
2749
  out(L) {
@@ -2752,7 +2752,7 @@ function us(e, t, r, n) {
2752
2752
  return;
2753
2753
  }
2754
2754
  t.inert = !0, v = to(t, p(), d, 0, () => {
2755
- Yi(t, "outroend"), L == null || L();
2755
+ Ji(t, "outroend"), L == null || L();
2756
2756
  });
2757
2757
  },
2758
2758
  stop: () => {
@@ -2797,7 +2797,7 @@ function to(e, t, r, n, i) {
2797
2797
  };
2798
2798
  }
2799
2799
  if (r == null || r.deactivate(), !(t != null && t.duration) && !(t != null && t.delay))
2800
- return Yi(e, a ? "introstart" : "outrostart"), i(), {
2800
+ return Ji(e, a ? "introstart" : "outrostart"), i(), {
2801
2801
  abort: Tt,
2802
2802
  deactivate: Tt,
2803
2803
  reset: Tt,
@@ -2811,7 +2811,7 @@ function to(e, t, r, n, i) {
2811
2811
  }
2812
2812
  var p = () => 1 - n, m = e.animate(d, { duration: l, fill: "forwards" });
2813
2813
  return m.onfinish = () => {
2814
- m.cancel(), Yi(e, a ? "introstart" : "outrostart");
2814
+ m.cancel(), Ji(e, a ? "introstart" : "outrostart");
2815
2815
  var _ = (r == null ? void 0 : r.t()) ?? 1 - n;
2816
2816
  r == null || r.abort();
2817
2817
  var E = n - _, O = (
@@ -2821,8 +2821,8 @@ function to(e, t, r, n, i) {
2821
2821
  if (O > 0) {
2822
2822
  var L = !1;
2823
2823
  if (c)
2824
- for (var Y = Math.ceil(O / 16.666666666666668), T = 0; T <= Y; T += 1) {
2825
- var S = _ + E * f(T / Y), A = ls(c(S, 1 - S));
2824
+ for (var J = Math.ceil(O / 16.666666666666668), T = 0; T <= J; T += 1) {
2825
+ var S = _ + E * f(T / J), A = ls(c(S, 1 - S));
2826
2826
  H.push(A), L || (L = A.overflow === "hidden");
2827
2827
  }
2828
2828
  L && (e.style.overflow = "hidden"), p = () => {
@@ -2966,7 +2966,7 @@ function Xi(e, t, r = t) {
2966
2966
  if (e === document.activeElement) {
2967
2967
  var o = (
2968
2968
  /** @type {Batch} */
2969
- Ji ?? ne
2969
+ Yi ?? ne
2970
2970
  );
2971
2971
  if (n.has(o))
2972
2972
  return;
@@ -3046,7 +3046,7 @@ function Zt(e, t, r = t) {
3046
3046
  if (e === document.activeElement) {
3047
3047
  var a = (
3048
3048
  /** @type {Batch} */
3049
- Ji ?? ne
3049
+ Yi ?? ne
3050
3050
  );
3051
3051
  if (n.has(a))
3052
3052
  return;
@@ -3094,7 +3094,7 @@ function At(e = !1) {
3094
3094
  });
3095
3095
  n = () => h(o);
3096
3096
  }
3097
- r.b.length && Yc(() => {
3097
+ r.b.length && Jc(() => {
3098
3098
  fs(t, n), Vi(r.b);
3099
3099
  }), ai(() => {
3100
3100
  const i = et(() => r.m.map(dc));
@@ -3337,8 +3337,8 @@ function b(e, t, r, n) {
3337
3337
  var m = e.$$legacy;
3338
3338
  return (
3339
3339
  /** @type {() => V} */
3340
- function(L, Y) {
3341
- return arguments.length > 0 ? ((!i || !Y || m || v) && u(Y ? p() : L), L) : p();
3340
+ function(L, J) {
3341
+ return arguments.length > 0 ? ((!i || !J || m || v) && u(J ? p() : L), L) : p();
3342
3342
  }
3343
3343
  );
3344
3344
  }
@@ -3350,9 +3350,9 @@ function b(e, t, r, n) {
3350
3350
  );
3351
3351
  return (
3352
3352
  /** @type {() => V} */
3353
- function(L, Y) {
3353
+ function(L, J) {
3354
3354
  if (arguments.length > 0) {
3355
- const T = Y ? h(E) : i && a ? at(L) : L;
3355
+ const T = J ? h(E) : i && a ? at(L) : L;
3356
3356
  return k(E, T), _ = !0, s !== void 0 && (s = T), L;
3357
3357
  }
3358
3358
  return Dr && _ || O.f & Er ? E.v : h(E);
@@ -3768,6 +3768,9 @@ const ir = (e) => {
3768
3768
  case "aks_stp":
3769
3769
  t = "smartechpa";
3770
3770
  break;
3771
+ case "aks_aca":
3772
+ t = "academy";
3773
+ break;
3771
3774
  default:
3772
3775
  t = "development";
3773
3776
  break;
@@ -3910,8 +3913,8 @@ On.all = function(t, r) {
3910
3913
  return On(n, i, r);
3911
3914
  }, {});
3912
3915
  };
3913
- var Jd = On, Yd = Jd;
3914
- const Xd = /* @__PURE__ */ Pd(Yd);
3916
+ var Yd = On, Jd = Yd;
3917
+ const Xd = /* @__PURE__ */ Pd(Jd);
3915
3918
  var no = function(e, t) {
3916
3919
  return no = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3917
3920
  r.__proto__ = n;
@@ -4016,10 +4019,10 @@ function ms(e) {
4016
4019
  function af(e) {
4017
4020
  return e.type === Re.argument;
4018
4021
  }
4019
- function Jl(e) {
4022
+ function Yl(e) {
4020
4023
  return e.type === Re.number;
4021
4024
  }
4022
- function Yl(e) {
4025
+ function Jl(e) {
4023
4026
  return e.type === Re.date;
4024
4027
  }
4025
4028
  function Xl(e) {
@@ -6152,7 +6155,7 @@ var If = (
6152
6155
  if (this.bumpSpace(), !this.bumpIf(","))
6153
6156
  return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS, xe(H, Ae({}, H)));
6154
6157
  this.bumpSpace();
6155
- var L = this.parseIdentifierIfPossible(), Y = 0;
6158
+ var L = this.parseIdentifierIfPossible(), J = 0;
6156
6159
  if (s !== "select" && L.value === "offset") {
6157
6160
  if (!this.bumpIf(":"))
6158
6161
  return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, xe(this.clonePosition(), this.clonePosition()));
@@ -6160,7 +6163,7 @@ var If = (
6160
6163
  var f = this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
6161
6164
  if (f.err)
6162
6165
  return f;
6163
- this.bumpSpace(), L = this.parseIdentifierIfPossible(), Y = f.val;
6166
+ this.bumpSpace(), L = this.parseIdentifierIfPossible(), J = f.val;
6164
6167
  }
6165
6168
  var T = this.tryParsePluralOrSelectOptions(t, s, r, L);
6166
6169
  if (T.err)
@@ -6182,7 +6185,7 @@ var If = (
6182
6185
  type: Re.plural,
6183
6186
  value: n,
6184
6187
  options: ws(T.val),
6185
- offset: Y,
6188
+ offset: J,
6186
6189
  pluralType: s === "plural" ? "cardinal" : "ordinal",
6187
6190
  location: S
6188
6191
  },
@@ -6375,7 +6378,7 @@ function uo(e) {
6375
6378
  if (delete t.location, Zl(t) || Wl(t))
6376
6379
  for (var r in t.options)
6377
6380
  delete t.options[r].location, uo(t.options[r].value);
6378
- else Jl(t) && Kl(t.style) || (Yl(t) || Xl(t)) && io(t.style) ? delete t.style.location : Ql(t) && uo(t.children);
6381
+ else Yl(t) && Kl(t.style) || (Jl(t) || Xl(t)) && io(t.style) ? delete t.style.location : Ql(t) && uo(t.children);
6379
6382
  });
6380
6383
  }
6381
6384
  function Pf(e, t) {
@@ -6478,7 +6481,7 @@ function qi(e, t, r, n, i, a, o) {
6478
6481
  });
6479
6482
  continue;
6480
6483
  }
6481
- if (Yl(u)) {
6484
+ if (Jl(u)) {
6482
6485
  var v = typeof u.style == "string" ? n.date[u.style] : io(u.style) ? u.style.parsedOptions : void 0;
6483
6486
  s.push({
6484
6487
  type: mt.literal,
@@ -6494,7 +6497,7 @@ function qi(e, t, r, n, i, a, o) {
6494
6497
  });
6495
6498
  continue;
6496
6499
  }
6497
- if (Jl(u)) {
6500
+ if (Yl(u)) {
6498
6501
  var v = typeof u.style == "string" ? n.number[u.style] : Kl(u.style) ? u.style.parsedOptions : void 0;
6499
6502
  v && v.scale && (d = d * (v.scale || 1)), s.push({
6500
6503
  type: mt.literal,
@@ -6506,13 +6509,13 @@ function qi(e, t, r, n, i, a, o) {
6506
6509
  var p = u.children, m = u.value, _ = i[m];
6507
6510
  if (!Df(_))
6508
6511
  throw new $f(m, "function", o);
6509
- var E = qi(p, t, r, n, i, a), O = _(E.map(function(Y) {
6510
- return Y.value;
6512
+ var E = qi(p, t, r, n, i, a), O = _(E.map(function(J) {
6513
+ return J.value;
6511
6514
  }));
6512
- Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(Y) {
6515
+ Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(J) {
6513
6516
  return {
6514
- type: typeof Y == "string" ? mt.literal : mt.object,
6515
- value: Y
6517
+ type: typeof J == "string" ? mt.literal : mt.object,
6518
+ value: J
6516
6519
  };
6517
6520
  }));
6518
6521
  }
@@ -6775,13 +6778,13 @@ qr(
6775
6778
  );
6776
6779
  Ci.subscribe((e) => Po = e);
6777
6780
  const Ui = {};
6778
- function Jf(e, t) {
6781
+ function Yf(e, t) {
6779
6782
  Ui[e].delete(t), Ui[e].size === 0 && delete Ui[e];
6780
6783
  }
6781
6784
  function cu(e) {
6782
6785
  return Ui[e];
6783
6786
  }
6784
- function Yf(e) {
6787
+ function Jf(e) {
6785
6788
  return Ni(e).map((t) => {
6786
6789
  const r = cu(t);
6787
6790
  return [t, r ? [...r] : []];
@@ -6797,23 +6800,23 @@ function Qi(e) {
6797
6800
  }
6798
6801
  function Xf(e, t) {
6799
6802
  return Promise.all(
6800
- t.map((n) => (Jf(e, n), n().then((i) => i.default || i)))
6803
+ t.map((n) => (Yf(e, n), n().then((i) => i.default || i)))
6801
6804
  ).then((n) => $o(e, ...n));
6802
6805
  }
6803
- const Jn = {};
6806
+ const Yn = {};
6804
6807
  function du(e) {
6805
6808
  if (!Qi(e))
6806
- return e in Jn ? Jn[e] : Promise.resolve();
6807
- const t = Yf(e);
6808
- return Jn[e] = Promise.all(
6809
+ return e in Yn ? Yn[e] : Promise.resolve();
6810
+ const t = Jf(e);
6811
+ return Yn[e] = Promise.all(
6809
6812
  t.map(
6810
6813
  ([r, n]) => Xf(r, n)
6811
6814
  )
6812
6815
  ).then(() => {
6813
6816
  if (Qi(e))
6814
6817
  return du(e);
6815
- delete Jn[e];
6816
- }), Jn[e];
6818
+ delete Yn[e];
6819
+ }), Yn[e];
6817
6820
  }
6818
6821
  var ks = Object.getOwnPropertySymbols, Zf = Object.prototype.hasOwnProperty, Wf = Object.prototype.propertyIsEnumerable, Qf = (e, t) => {
6819
6822
  var r = {};
@@ -7176,10 +7179,10 @@ const Sh = {
7176
7179
  }
7177
7180
  }, Fh = {
7178
7181
  "delete-template": 'Sei sicuro di voler eliminare il template "{templateName}"?'
7179
- }, qh = "Documento", Uh = "Aggiungi", Gh = "Cerca", Vh = "Salva", Jh = {
7182
+ }, qh = "Documento", Uh = "Aggiungi", Gh = "Cerca", Vh = "Salva", Yh = {
7180
7183
  template: "Crea template",
7181
7184
  document: "Crea documento"
7182
- }, Yh = "Versioni", Xh = {
7185
+ }, Jh = "Versioni", Xh = {
7183
7186
  "segnaposto-compilation": "Compilazione Segnaposti",
7184
7187
  "no-option-available": "Nessuna opzione disponibile",
7185
7188
  cancel: "Annulla",
@@ -7233,8 +7236,8 @@ const Sh = {
7233
7236
  "new-version": "Nuova versione",
7234
7237
  "file-name": "Nome file",
7235
7238
  save: Vh,
7236
- create: Jh,
7237
- versions: Yh,
7239
+ create: Yh,
7240
+ versions: Jh,
7238
7241
  "create-dialog": {
7239
7242
  "template-name": "Nome template",
7240
7243
  "document-title": "Titolo documento (Opzionale)",
@@ -7495,7 +7498,7 @@ function rv(e, t) {
7495
7498
  }
7496
7499
  ));
7497
7500
  }), C(T, S);
7498
- }, Y = (T) => {
7501
+ }, J = (T) => {
7499
7502
  var S = nn(), A = dt(S);
7500
7503
  ss(A, () => h(s), (D, j) => {
7501
7504
  j(D, vs(() => h(c), {
@@ -7508,7 +7511,7 @@ function rv(e, t) {
7508
7511
  }), C(T, S);
7509
7512
  };
7510
7513
  ke(H, (T) => {
7511
- h(l) ? T(L) : T(Y, !1);
7514
+ h(l) ? T(L) : T(J, !1);
7512
7515
  });
7513
7516
  }
7514
7517
  return C(e, O), ae(E);
@@ -7521,12 +7524,12 @@ const av = {
7521
7524
  };
7522
7525
  function vu(e, t) {
7523
7526
  ie(t, !0), ce(e, av);
7524
- let r = /* @__PURE__ */ J(""), n = /* @__PURE__ */ J(""), i = /* @__PURE__ */ J("");
7527
+ let r = /* @__PURE__ */ Y(""), n = /* @__PURE__ */ Y(""), i = /* @__PURE__ */ Y("");
7525
7528
  fn(() => {
7526
7529
  const T = window.location.href.split("error=")[1];
7527
7530
  T && k(r, T.replaceAll("%20", " "), !0), k(n, si(li).token || "", !0), k(i, si(li).envId || "", !0);
7528
7531
  });
7529
- let a = /* @__PURE__ */ J("");
7532
+ let a = /* @__PURE__ */ Y("");
7530
7533
  ql.login().then((T) => {
7531
7534
  k(a, "success"), ev("/");
7532
7535
  }).catch((T) => {
@@ -7536,7 +7539,7 @@ function vu(e, t) {
7536
7539
  {
7537
7540
  var c = (T) => {
7538
7541
  var S = nv(), A = z(w(S), 2), D = w(A, !0);
7539
- y(A), y(S), M(() => Q(D, h(r))), C(T, S);
7542
+ y(A), y(S), M(() => K(D, h(r))), C(T, S);
7540
7543
  };
7541
7544
  ke(l, (T) => {
7542
7545
  h(r) && T(c);
@@ -7546,10 +7549,10 @@ function vu(e, t) {
7546
7549
  y(v), y(d);
7547
7550
  var m = z(d, 2), _ = w(m), E = w(_);
7548
7551
  y(_), y(m), y(f), y(u);
7549
- var O = z(u, 2), H = z(w(O), 2), L = z(w(H), 2), Y = w(L, !0);
7552
+ var O = z(u, 2), H = z(w(O), 2), L = z(w(H), 2), J = w(L, !0);
7550
7553
  y(L), y(H), y(O), y(s), y(o), M(
7551
7554
  (T) => {
7552
- Q(p, `akstoken=${h(n) ?? ""}`), Q(E, `envid=${h(i) ?? ""}`), ue(L, 1, `status-value ${T ?? ""}`, "svelte-frku5s"), Q(Y, h(a) || "Verifying...");
7555
+ K(p, `akstoken=${h(n) ?? ""}`), K(E, `envid=${h(i) ?? ""}`), ue(L, 1, `status-value ${T ?? ""}`, "svelte-frku5s"), K(J, h(a) || "Verifying...");
7553
7556
  },
7554
7557
  [
7555
7558
  () => h(a).includes("success") ? "success" : h(a) ? "error" : "pending"
@@ -8167,7 +8170,7 @@ function pu(e, t) {
8167
8170
  };
8168
8171
  return new Intl.DateTimeFormat("it-IT", Z).format(G).replace(",", "");
8169
8172
  };
8170
- let u = o().filter((G, Z, _e) => _e.findIndex((me) => me.number === G.number) === Z), f = /* @__PURE__ */ J(0), d = /* @__PURE__ */ J(-1), v = (G = "it_IT") => {
8173
+ let u = o().filter((G, Z, _e) => _e.findIndex((me) => me.number === G.number) === Z), f = /* @__PURE__ */ Y(0), d = /* @__PURE__ */ Y(-1), v = (G = "it_IT") => {
8171
8174
  let Z;
8172
8175
  switch (h(f)) {
8173
8176
  case 0:
@@ -8213,7 +8216,7 @@ function pu(e, t) {
8213
8216
  set addNewVersion(G) {
8214
8217
  l(G), g();
8215
8218
  }
8216
- }, m = _v(), _ = dt(m), E = w(_), O = w(E), H = w(O), L = w(H), Y = w(L, !0);
8219
+ }, m = _v(), _ = dt(m), E = w(_), O = w(E), H = w(O), L = w(H), J = w(L, !0);
8217
8220
  y(L);
8218
8221
  var T = z(L, 2);
8219
8222
  y(H);
@@ -8221,14 +8224,14 @@ function pu(e, t) {
8221
8224
  {
8222
8225
  var A = (G) => {
8223
8226
  var Z = hv(), _e = dt(Z);
8224
- Ye(_e, 21, () => u, Je, (Te, Se) => {
8227
+ Je(_e, 21, () => u, Ye, (Te, Se) => {
8225
8228
  var Be = dv(), tt = w(Be), qe = w(tt);
8226
8229
  Do(qe, { color: "#28853d", width: "20px", height: "20px" }), y(tt);
8227
8230
  var I = z(tt, 2), F = w(I, !0);
8228
8231
  y(I);
8229
8232
  var W = z(I, 2);
8230
8233
  {
8231
- var K = (Ie) => {
8234
+ var ee = (Ie) => {
8232
8235
  var B = uv();
8233
8236
  C(Ie, B);
8234
8237
  }, Le = (Ie) => {
@@ -8236,10 +8239,10 @@ function pu(e, t) {
8236
8239
  C(Ie, B);
8237
8240
  };
8238
8241
  ke(W, (Ie) => {
8239
- h(Se).confirmed ? Ie(K) : Ie(Le, !1);
8242
+ h(Se).confirmed ? Ie(ee) : Ie(Le, !1);
8240
8243
  });
8241
8244
  }
8242
- y(Be), M((Ie) => Q(F, Ie), [() => c(new Date(h(Se).updatedAt))]), Oe("click", Be, () => {
8245
+ y(Be), M((Ie) => K(F, Ie), [() => c(new Date(h(Se).updatedAt))]), Oe("click", Be, () => {
8243
8246
  k(d, h(Se).number, !0), v(h(Se)._id);
8244
8247
  }), C(Te, Be);
8245
8248
  }), y(_e);
@@ -8247,7 +8250,7 @@ function pu(e, t) {
8247
8250
  {
8248
8251
  var We = (Te) => {
8249
8252
  var Se = fv(), Be = w(Se), tt = z(w(Be));
8250
- y(Be), y(Se), M((qe) => Q(tt, ` ${qe ?? ""}`), [() => r()("new-version")]), Oe("click", Be, function(...qe) {
8253
+ y(Be), y(Se), M((qe) => K(tt, ` ${qe ?? ""}`), [() => r()("new-version")]), Oe("click", Be, function(...qe) {
8251
8254
  var I;
8252
8255
  (I = l()) == null || I.apply(this, qe);
8253
8256
  }), C(Te, Se);
@@ -8259,24 +8262,24 @@ function pu(e, t) {
8259
8262
  y(me), C(G, Z);
8260
8263
  }, D = (G) => {
8261
8264
  var Z = gv();
8262
- Ye(Z, 21, o, Je, (_e, me) => {
8265
+ Je(Z, 21, o, Ye, (_e, me) => {
8263
8266
  var je = nn(), We = dt(je);
8264
8267
  {
8265
8268
  var Te = (Se) => {
8266
8269
  var Be = mv(), tt = w(Be), qe = w(tt), I = z(qe);
8267
8270
  {
8268
- var F = (K) => {
8271
+ var F = (ee) => {
8269
8272
  var Le = vv();
8270
- C(K, Le);
8271
- }, W = (K) => {
8273
+ C(ee, Le);
8274
+ }, W = (ee) => {
8272
8275
  var Le = pv();
8273
- C(K, Le);
8276
+ C(ee, Le);
8274
8277
  };
8275
- ke(I, (K) => {
8276
- h(me).confirmed ? K(F) : K(W, !1);
8278
+ ke(I, (ee) => {
8279
+ h(me).confirmed ? ee(F) : ee(W, !1);
8277
8280
  });
8278
8281
  }
8279
- y(tt), y(Be), M(() => Q(qe, `${h(me).language ?? ""} `)), Oe("click", tt, () => v(h(me).language)), C(Se, Be);
8282
+ y(tt), y(Be), M(() => K(qe, `${h(me).language ?? ""} `)), Oe("click", tt, () => v(h(me).language)), C(Se, Be);
8280
8283
  };
8281
8284
  ke(We, (Se) => {
8282
8285
  h(me).number === h(d) && Se(Te);
@@ -8302,7 +8305,7 @@ function pu(e, t) {
8302
8305
  }
8303
8306
  M(
8304
8307
  (G) => {
8305
- se(_, `display: ${a() ? "block" : "none"};`), Q(Y, G);
8308
+ se(_, `display: ${a() ? "block" : "none"};`), K(J, G);
8306
8309
  },
8307
8310
  [() => r()("versions")]
8308
8311
  ), Oe("click", T, () => a(!1)), C(e, m);
@@ -8346,7 +8349,7 @@ function Wn(e, t) {
8346
8349
  }, a = wv(), o = w(a);
8347
8350
  ud(o, n);
8348
8351
  var s = z(o, 2), l = w(s, !0);
8349
- return y(s), y(a), M(() => Q(l, r())), C(e, a), ae(i);
8352
+ return y(s), y(a), M(() => K(l, r())), C(e, a), ae(i);
8350
8353
  }
8351
8354
  le(Wn, { text: {}, children: {} }, [], [], { mode: "open" });
8352
8355
  var Ev = /* @__PURE__ */ N("<div></div>");
@@ -8604,10 +8607,10 @@ function Iv(e, t) {
8604
8607
  var O = z(m, 2), H = w(O);
8605
8608
  let L;
8606
8609
  y(O);
8607
- var Y = z(O, 2), T = w(Y);
8610
+ var J = z(O, 2), T = w(J);
8608
8611
  let S;
8609
- y(Y);
8610
- var A = z(Y, 2), D = w(A);
8612
+ y(J);
8613
+ var A = z(J, 2), D = w(A);
8611
8614
  let j;
8612
8615
  return y(A), y(v), y(d), y(f), M(() => {
8613
8616
  se(f, `--size: ${r() ?? ""}${n() ?? ""}; --floatSize: ${r() ?? ""}; --ballTopLeftColor: ${a() ?? ""}; --ballTopRightColor: ${o() ?? ""}; --ballBottomLeftColor: ${s() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${c() ?? ""};`), p = ue(v, 1, "ball-container svelte-1ld5hqc", null, p, { "pause-animation": i() }), E = ue(_, 1, "ball ball-top-left svelte-1ld5hqc", null, E, { "pause-animation": i() }), L = ue(H, 1, "ball ball-top-right svelte-1ld5hqc", null, L, { "pause-animation": i() }), S = ue(T, 1, "ball ball-bottom-left svelte-1ld5hqc", null, S, { "pause-animation": i() }), j = ue(D, 1, "ball ball-bottom-right svelte-1ld5hqc", null, j, { "pause-animation": i() });
@@ -8691,7 +8694,7 @@ function Pv(e, t) {
8691
8694
  };
8692
8695
  At();
8693
8696
  var u = Ov();
8694
- return Ye(u, 5, () => (vt(Ze), et(() => Ze(2, 1))), Je, (d, v) => {
8697
+ return Je(u, 5, () => (vt(Ze), et(() => Ze(2, 1))), Ye, (d, v) => {
8695
8698
  var p = zv();
8696
8699
  let m;
8697
8700
  M(() => {
@@ -9101,7 +9104,7 @@ const Vv = {
9101
9104
  }
9102
9105
  }`
9103
9106
  };
9104
- function Jv(e, t) {
9107
+ function Yv(e, t) {
9105
9108
  var f;
9106
9109
  ie(t, !1), ce(e, Vv);
9107
9110
  let r = b(t, "color", 12, "#FF3E00"), n = b(t, "unit", 12, "px"), i = b(t, "duration", 12, "1.2s"), a = b(t, "size", 12, "60"), o = b(t, "pause", 12, !1), s = ((f = i().match(st)) == null ? void 0 : f[0]) ?? "s", l = i().replace(st, "");
@@ -9139,7 +9142,7 @@ function Jv(e, t) {
9139
9142
  };
9140
9143
  At();
9141
9144
  var u = Gv();
9142
- return Ye(u, 5, () => (vt(Ze), et(() => Ze(5, 1))), Je, (d, v) => {
9145
+ return Je(u, 5, () => (vt(Ze), et(() => Ze(5, 1))), Ye, (d, v) => {
9143
9146
  var p = Uv();
9144
9147
  let m;
9145
9148
  M(() => {
@@ -9147,8 +9150,8 @@ function Jv(e, t) {
9147
9150
  }), C(d, p);
9148
9151
  }), y(u), M(() => se(u, `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`)), C(e, u), ae(c);
9149
9152
  }
9150
- le(Jv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
9151
- var Yv = /* @__PURE__ */ N("<div></div>"), Xv = /* @__PURE__ */ N('<div class="wrapper svelte-1u7a0eb"></div>');
9153
+ le(Yv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
9154
+ var Jv = /* @__PURE__ */ N("<div></div>"), Xv = /* @__PURE__ */ N('<div class="wrapper svelte-1u7a0eb"></div>');
9152
9155
  const Zv = {
9153
9156
  hash: "svelte-1u7a0eb",
9154
9157
  code: `.wrapper.svelte-1u7a0eb {height:calc(var(--size) / 15);width:calc(var(--size) * 2);background-color:var(--rgba);position:relative;overflow:hidden;background-clip:padding-box;}.lines.svelte-1u7a0eb {height:calc(var(--size) / 15);background-color:var(--color);}.small-lines.svelte-1u7a0eb {position:absolute;overflow:hidden;background-clip:padding-box;display:block;border-radius:2px;will-change:left, right;animation-fill-mode:forwards;}.small-lines.\\31 .svelte-1u7a0eb{
@@ -9226,8 +9229,8 @@ function Wv(e, t) {
9226
9229
  };
9227
9230
  At();
9228
9231
  var c = Xv();
9229
- return Ye(c, 5, () => (vt(Ze), et(() => Ze(2, 1))), Je, (u, f) => {
9230
- var d = Yv();
9232
+ return Je(c, 5, () => (vt(Ze), et(() => Ze(2, 1))), Ye, (u, f) => {
9233
+ var d = Jv();
9231
9234
  let v;
9232
9235
  M(() => {
9233
9236
  v = ue(d, 1, `lines small-lines ${h(f) ?? ""}`, "svelte-1u7a0eb", v, { "pause-animation": o() }), se(d, `--color: ${r() ?? ""}; --duration: ${i() ?? ""};`);
@@ -9292,7 +9295,7 @@ function tp(e, t) {
9292
9295
  };
9293
9296
  At();
9294
9297
  var u = Kv();
9295
- return Ye(u, 5, () => (vt(Ze), et(() => Ze(3, 1))), Je, (d, v) => {
9298
+ return Je(u, 5, () => (vt(Ze), et(() => Ze(3, 1))), Ye, (d, v) => {
9296
9299
  var p = Qv();
9297
9300
  let m;
9298
9301
  M(() => {
@@ -9362,7 +9365,7 @@ function ap(e, t) {
9362
9365
  };
9363
9366
  At();
9364
9367
  var l = np();
9365
- return Ye(l, 5, () => (vt(Ze), et(() => Ze(2, 1))), Je, (c, u) => {
9368
+ return Je(l, 5, () => (vt(Ze), et(() => Ze(2, 1))), Ye, (c, u) => {
9366
9369
  var f = rp();
9367
9370
  let d;
9368
9371
  M(() => d = ue(f, 1, `border ${h(u) ?? ""}`, "svelte-c5p9k6", d, { "pause-animation": o() })), C(c, f);
@@ -9442,7 +9445,7 @@ function up(e, t) {
9442
9445
  };
9443
9446
  At();
9444
9447
  var u = sp();
9445
- return Ye(u, 5, () => (vt(Ze), et(() => Ze(3, 1))), Je, (d, v) => {
9448
+ return Je(u, 5, () => (vt(Ze), et(() => Ze(3, 1))), Ye, (d, v) => {
9446
9449
  var p = op();
9447
9450
  let m;
9448
9451
  M(() => {
@@ -9632,7 +9635,7 @@ function _p(e, t) {
9632
9635
  };
9633
9636
  At();
9634
9637
  var u = gp();
9635
- return Ye(u, 5, () => (vt(Ze), et(() => Ze(3, 0))), Je, (d, v) => {
9638
+ return Je(u, 5, () => (vt(Ze), et(() => Ze(3, 0))), Ye, (d, v) => {
9636
9639
  var p = mp();
9637
9640
  let m;
9638
9641
  M(() => {
@@ -9696,7 +9699,7 @@ function Ep(e, t) {
9696
9699
  };
9697
9700
  At();
9698
9701
  var u = wp();
9699
- return Ye(u, 5, () => (vt(Ze), et(() => Ze(6, 0))), Je, (d, v) => {
9702
+ return Je(u, 5, () => (vt(Ze), et(() => Ze(6, 0))), Ye, (d, v) => {
9700
9703
  var p = yp();
9701
9704
  let m;
9702
9705
  M(() => {
@@ -9766,7 +9769,7 @@ function Ap(e, t) {
9766
9769
  At();
9767
9770
  var u = Sp(), f = w(u);
9768
9771
  let d;
9769
- return Ye(f, 5, () => (vt(Ze), et(() => Ze(2, 0))), Je, (p, m) => {
9772
+ return Je(f, 5, () => (vt(Ze), et(() => Ze(2, 0))), Ye, (p, m) => {
9770
9773
  var _ = kp();
9771
9774
  let E;
9772
9775
  M(() => {
@@ -10175,8 +10178,8 @@ function Gp(e, t) {
10175
10178
  }), C(e, l), ae(s);
10176
10179
  }
10177
10180
  le(Gp, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
10178
- var Vp = /* @__PURE__ */ N("<div></div>"), Jp = /* @__PURE__ */ N('<div class="wrapper svelte-1rumbqe"></div>');
10179
- const Yp = {
10181
+ var Vp = /* @__PURE__ */ N("<div></div>"), Yp = /* @__PURE__ */ N('<div class="wrapper svelte-1rumbqe"></div>');
10182
+ const Jp = {
10180
10183
  hash: "svelte-1rumbqe",
10181
10184
  code: `.wrapper.svelte-1rumbqe {position:relative;display:flex;justify-content:center;align-items:center;width:calc(var(--size) * 2.5);height:var(--size);overflow:hidden;}.bar.svelte-1rumbqe {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);
10182
10185
  animation: svelte-1rumbqe-motion var(--duration) ease-in-out infinite;}.pause-animation.svelte-1rumbqe {animation-play-state:paused;}
@@ -10195,7 +10198,7 @@ const Yp = {
10195
10198
  };
10196
10199
  function Xp(e, t) {
10197
10200
  var f;
10198
- ie(t, !1), ce(e, Yp);
10201
+ ie(t, !1), ce(e, Jp);
10199
10202
  let r = b(t, "color", 12, "#FF3E00"), n = b(t, "unit", 12, "px"), i = b(t, "duration", 12, "1.25s"), a = b(t, "size", 12, "60"), o = b(t, "pause", 12, !1), s = ((f = i().match(st)) == null ? void 0 : f[0]) ?? "s", l = i().replace(st, "");
10200
10203
  var c = {
10201
10204
  get color() {
@@ -10230,8 +10233,8 @@ function Xp(e, t) {
10230
10233
  }
10231
10234
  };
10232
10235
  At();
10233
- var u = Jp();
10234
- return Ye(u, 5, () => (vt(Ze), et(() => Ze(10, 0))), Je, (d, v) => {
10236
+ var u = Yp();
10237
+ return Je(u, 5, () => (vt(Ze), et(() => Ze(10, 0))), Ye, (d, v) => {
10235
10238
  var p = Vp();
10236
10239
  let m;
10237
10240
  M(() => {
@@ -10303,7 +10306,7 @@ function Kp(e, t) {
10303
10306
  };
10304
10307
  At();
10305
10308
  var f = Wp();
10306
- return Ye(f, 5, () => (vt(Ze), et(() => Ze(2, 1))), Je, (v, p) => {
10309
+ return Je(f, 5, () => (vt(Ze), et(() => Ze(2, 1))), Ye, (v, p) => {
10307
10310
  var m = Zp();
10308
10311
  let _;
10309
10312
  M(() => {
@@ -10425,11 +10428,11 @@ le(am, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mod
10425
10428
  function om(e) {
10426
10429
  switch (e) {
10427
10430
  case 28:
10428
- return 1;
10431
+ return "dipendenti";
10429
10432
  case 27:
10430
- return 2;
10433
+ return "partner";
10431
10434
  case 39:
10432
- return 3;
10435
+ return "contatti";
10433
10436
  default:
10434
10437
  throw new Error("Invalid entita id");
10435
10438
  }
@@ -10444,7 +10447,7 @@ const ym = {
10444
10447
  function mu(e, t) {
10445
10448
  ie(t, !0), ce(e, ym);
10446
10449
  const r = () => hn(pn, "$_", n), [n, i] = vn();
10447
- let a = b(t, "segnapostos", 15), o = b(t, "showModal", 15), s = b(t, "createProcedureFromTemplate", 7), l = /* @__PURE__ */ J(at({})), c = /* @__PURE__ */ J(!1), u = /* @__PURE__ */ J(at([]));
10450
+ let a = b(t, "segnapostos", 15), o = b(t, "showModal", 15), s = b(t, "createProcedureFromTemplate", 7), l = /* @__PURE__ */ Y(at({})), c = /* @__PURE__ */ Y(!1), u = /* @__PURE__ */ Y(at([]));
10448
10451
  async function f(I) {
10449
10452
  try {
10450
10453
  const F = await fetch(I, {
@@ -10463,10 +10466,10 @@ function mu(e, t) {
10463
10466
  if (h(l)[I]) return h(l)[I];
10464
10467
  k(c, !0);
10465
10468
  const F = await f(`${ir(rt.getCookies().EnvId)}/v1/${I}/combo`);
10466
- return k(c, !1), F ? (h(l)[I] = F, F.sort((W, K) => W.display_value.localeCompare(K.display_value))) : [];
10469
+ return k(c, !1), F ? (h(l)[I] = F, F.sort((W, ee) => W.display_value.localeCompare(ee.display_value))) : [];
10467
10470
  }
10468
10471
  async function v(I, F) {
10469
- var W, K, Le;
10472
+ var W, ee, Le;
10470
10473
  if (I.tipo === "combo" && I.tmp) {
10471
10474
  const Ie = JSON.parse(I.valore ?? "{}");
10472
10475
  I.valore = Ie.contents[I.tmp];
@@ -10479,19 +10482,23 @@ function mu(e, t) {
10479
10482
  break;
10480
10483
  case "dpo":
10481
10484
  const Ie = (F == null ? void 0 : F.id_dpo) ?? -1, B = (W = await f(`${ir(rt.getCookies().EnvId)}/v1/lavoratori/${Ie}`)) == null ? void 0 : W[0];
10482
- if (B) {
10483
- const ee = (K = await f(`${ir(rt.getCookies().EnvId)}/v1/${om(B.id_entita)}/${B.id_ref_entita}`)) == null ? void 0 : K[0];
10484
- ee ? (B.nome_sede = ee.indirizzo || B.nome_sede, I.valore = JSON.stringify(B)) : I.valore = JSON.stringify({});
10485
+ if (console.log("Fetched lavoratore for DPO segnaposto:", B), B) {
10486
+ const Q = (ee = await f(`${ir(rt.getCookies().EnvId)}/v1/${om(B.id_entita)}/${B.id_ref_entita}`)) == null ? void 0 : ee[0];
10487
+ if (console.log("Fetched DPO details for lavoratore:", Q), Q) {
10488
+ const $ = `${Q.indirizzo} ${Q.civico}, ${Q.cap} ${Q.comune} (${Q.provincia}), ${Q.nazione_descrizione}`.trim();
10489
+ B.nome_sede = $ || B.nome_sede;
10490
+ }
10491
+ I.valore = JSON.stringify(B);
10485
10492
  } else
10486
10493
  I.valore = JSON.stringify({});
10487
10494
  break;
10488
10495
  case "infor_trat_dati":
10489
10496
  const ge = await f(`${ir(rt.getCookies().EnvId)}/v1/${I.idSuite}/${I.valore}`);
10490
10497
  if (ge) {
10491
- const { tabella1: ee, tabella2: $ } = m(ge), X = _(ge);
10498
+ const { tabella1: Q, tabella2: $ } = m(ge), X = _(ge);
10492
10499
  I.valore = JSON.stringify({
10493
10500
  display_value: h(l).infor_trat_dati ? (Le = h(l).infor_trat_dati.find((Pe) => Pe.record_id === Number(I.valore))) == null ? void 0 : Le.display_value : "",
10494
- tabella1: ee,
10501
+ tabella1: Q,
10495
10502
  tabella2: $,
10496
10503
  destinatari: X
10497
10504
  });
@@ -10513,30 +10520,30 @@ function mu(e, t) {
10513
10520
  const F = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map();
10514
10521
  I.forEach((te) => {
10515
10522
  console.log("Processing row for tables:", te);
10516
- const ee = p(te.finalita || ""), $ = p(te.nome_presupposto_giuridico || ""), X = p(te.dati_trattati || ""), Pe = p(te.periodo_conservazione || "");
10517
- F.set(ee + $ + X, {
10518
- finalita: ee,
10523
+ const Q = p(te.finalita || ""), $ = p(te.nome_presupposto_giuridico || ""), X = p(te.dati_trattati || ""), Pe = p(te.periodo_conservazione || "");
10524
+ F.set(Q + $ + X, {
10525
+ finalita: Q,
10519
10526
  nome_presupposto_giuridico: $,
10520
10527
  dati_trattati: X,
10521
10528
  periodo_conservazione: Pe
10522
- }), W.set(Pe + ee, {
10523
- finalita: ee,
10529
+ }), W.set(Pe + Q, {
10530
+ finalita: Q,
10524
10531
  nome_presupposto_giuridico: $,
10525
10532
  dati_trattati: X,
10526
10533
  periodo_conservazione: Pe
10527
10534
  });
10528
10535
  });
10529
- const K = Array.from(F.values()), Le = Array.from(W.values()), Ie = {};
10530
- K.forEach((te) => {
10536
+ const ee = Array.from(F.values()), Le = Array.from(W.values()), Ie = {};
10537
+ ee.forEach((te) => {
10531
10538
  Ie[te.finalita] || (Ie[te.finalita] = []), Ie[te.finalita].push({
10532
10539
  presupposto: te.nome_presupposto_giuridico,
10533
10540
  dati: te.dati_trattati
10534
10541
  });
10535
10542
  });
10536
10543
  let B = "<table class='table table-sm'><thead><tr><th>Finalità</th><th>Presupposto Giuridico</th><th>Dati Trattati</th></tr></thead><tbody>";
10537
- for (const [te, ee] of Object.entries(Ie)) {
10544
+ for (const [te, Q] of Object.entries(Ie)) {
10538
10545
  const $ = {};
10539
- ee.forEach(({ presupposto: nt, dati: Qe }) => {
10546
+ Q.forEach(({ presupposto: nt, dati: Qe }) => {
10540
10547
  $[nt] || ($[nt] = []), $[nt].push(Qe);
10541
10548
  });
10542
10549
  const X = Object.values($).reduce((nt, Qe) => nt + Qe.length, 0);
@@ -10550,29 +10557,29 @@ function mu(e, t) {
10550
10557
  }
10551
10558
  B += "</tbody></table>";
10552
10559
  const ge = Le.reduce(
10553
- (te, ee) => (te[ee.periodo_conservazione] || (te[ee.periodo_conservazione] = []), te[ee.periodo_conservazione].push(ee.finalita), te),
10560
+ (te, Q) => (te[Q.periodo_conservazione] || (te[Q.periodo_conservazione] = []), te[Q.periodo_conservazione].push(Q.finalita), te),
10554
10561
  {}
10555
10562
  );
10556
10563
  let de = "<table class='table table-sm'><thead><tr><th>Periodo di Conservazione</th><th>Finalità</th></tr></thead><tbody>";
10557
- for (const [te, ee] of Object.entries(ge))
10558
- ee.forEach(($, X) => {
10559
- de += "<tr>", X === 0 && (de += `<td rowspan="${ee.length}">${te}</td>`), de += `<td>${$}</td></tr>`;
10564
+ for (const [te, Q] of Object.entries(ge))
10565
+ Q.forEach(($, X) => {
10566
+ de += "<tr>", X === 0 && (de += `<td rowspan="${Q.length}">${te}</td>`), de += `<td>${$}</td></tr>`;
10560
10567
  });
10561
10568
  return de += "</tbody></table>", { tabella1: B, tabella2: de };
10562
10569
  }, _ = (I) => {
10563
10570
  if (!I || I.length === 0) return "";
10564
- const F = Array.from(new Set(I.map((K) => K.destinatari)));
10571
+ const F = Array.from(new Set(I.map((ee) => ee.destinatari)));
10565
10572
  let W = "<ul>";
10566
- return F.forEach((K) => {
10567
- K.length !== 0 && (W += `<li>${K}</li>`);
10573
+ return F.forEach((ee) => {
10574
+ ee.length !== 0 && (W += `<li>${ee}</li>`);
10568
10575
  }), W += "</ul>", W;
10569
10576
  }, E = async () => {
10570
10577
  if (h(O)) return;
10571
10578
  let I = !0;
10572
10579
  if (k(
10573
10580
  u,
10574
- a().map((K) => {
10575
- const Le = !K.idSuite || K.idSuite === "anagrafica" || K.idSuite === "dpo" || !!K.valore;
10581
+ a().map((ee) => {
10582
+ const Le = !ee.idSuite || ee.idSuite === "anagrafica" || ee.idSuite === "dpo" || !!ee.valore;
10576
10583
  return Le || (I = !1), !Le;
10577
10584
  }),
10578
10585
  !0
@@ -10580,15 +10587,15 @@ function mu(e, t) {
10580
10587
  k(O, !0);
10581
10588
  const F = await f(`${ir(rt.getCookies().EnvId)}/v1/anagrafica`);
10582
10589
  if (!(F != null && F[0])) return;
10583
- const W = await Promise.all(a().map((K) => v(K, F[0])));
10590
+ const W = await Promise.all(a().map((ee) => v(ee, F[0])));
10584
10591
  s()(W), k(O, !1), o(!1);
10585
10592
  };
10586
- let O = /* @__PURE__ */ J(!1);
10593
+ let O = /* @__PURE__ */ Y(!1);
10587
10594
  fn(async () => {
10588
10595
  for (const I of a())
10589
10596
  if (console.log("Processing segnaposto on mount", I), I.idSuite && I.idSuite !== "anagrafica" && I.idSuite !== "dpo")
10590
10597
  if (I.idSuite == "responsabili_trattamento") {
10591
- const W = (await f(`${ir(rt.getCookies().EnvId)}/v1/partner`)).filter((K) => K.is_responsabile).map((K) => ({ record_id: K.record_id, display_value: K.display_value }));
10598
+ const W = (await f(`${ir(rt.getCookies().EnvId)}/v1/partner`)).filter((ee) => ee.is_responsabile).map((ee) => ({ record_id: ee.record_id, display_value: ee.display_value }));
10592
10599
  h(l)[I.idSuite] = W;
10593
10600
  } else
10594
10601
  await d(I.idSuite);
@@ -10612,13 +10619,13 @@ function mu(e, t) {
10612
10619
  set createProcedureFromTemplate(I) {
10613
10620
  s(I), g();
10614
10621
  }
10615
- }, L = _m(), Y = dt(L), T = w(Y), S = w(T), A = w(S), D = w(A), j = w(D, !0);
10622
+ }, L = _m(), J = dt(L), T = w(J), S = w(T), A = w(S), D = w(A), j = w(D, !0);
10616
10623
  y(D);
10617
10624
  var R = z(D, 2);
10618
10625
  y(A);
10619
10626
  var U = z(A, 2);
10620
- Ye(U, 21, a, Je, (I, F, W) => {
10621
- var K = nn(), Le = dt(K);
10627
+ Je(U, 21, a, Ye, (I, F, W) => {
10628
+ var ee = nn(), Le = dt(ee);
10622
10629
  {
10623
10630
  var Ie = (B) => {
10624
10631
  var ge = mm(), de = w(ge);
@@ -10627,34 +10634,34 @@ function mu(e, t) {
10627
10634
  var re = sm();
10628
10635
  Fe(re, "for", "input-" + W);
10629
10636
  var it = w(re, !0);
10630
- y(re), M(() => Q(it, h(F).nome)), C(ze, re);
10637
+ y(re), M(() => K(it, h(F).nome)), C(ze, re);
10631
10638
  };
10632
10639
  ke(de, (ze) => {
10633
10640
  h(F).nome && h(F).idSuite && h(F).idSuite !== "anagrafica" && h(F).idSuite !== "dpo" && ze(te);
10634
10641
  });
10635
10642
  }
10636
- var ee = z(de, 2);
10643
+ var Q = z(de, 2);
10637
10644
  {
10638
10645
  var $ = (ze) => {
10639
10646
  var re = lm();
10640
10647
  Fe(re, "for", "input-" + W);
10641
10648
  var it = w(re, !0);
10642
- y(re), M(() => Q(it, h(F).domanda)), C(ze, re);
10649
+ y(re), M(() => K(it, h(F).domanda)), C(ze, re);
10643
10650
  };
10644
- ke(ee, (ze) => {
10651
+ ke(Q, (ze) => {
10645
10652
  h(F).domanda && ze($);
10646
10653
  });
10647
10654
  }
10648
- var X = z(ee, 2);
10655
+ var X = z(Q, 2);
10649
10656
  {
10650
10657
  var Pe = (ze) => {
10651
10658
  var re = cm();
10652
- Fe(re, "id", "input-" + W), Ye(re, 21, () => JSON.parse(h(F).valore ?? "{}").questions, Je, (it, q) => {
10659
+ Fe(re, "id", "input-" + W), Je(re, 21, () => JSON.parse(h(F).valore ?? "{}").questions, Ye, (it, q) => {
10653
10660
  var fe = um(), Ue = w(fe, !0);
10654
10661
  y(fe);
10655
10662
  var Ce = {};
10656
10663
  M(() => {
10657
- Q(Ue, h(q)), Ce !== (Ce = h(q)) && (fe.value = (fe.__value = h(q)) ?? "");
10664
+ K(Ue, h(q)), Ce !== (Ce = h(q)) && (fe.value = (fe.__value = h(q)) ?? "");
10658
10665
  }), C(it, fe);
10659
10666
  }), y(re), M(() => ue(re, 1, `form-control form-control-sm ${h(u)[W] ? "is-invalid" : ""}`, "svelte-1rq2i7f")), Xi(re, () => a()[W].tmp, (it) => a(a()[W].tmp = it, !0)), C(ze, re);
10660
10667
  }, nt = (ze) => {
@@ -10667,17 +10674,17 @@ function mu(e, t) {
10667
10674
  {
10668
10675
  var fe = (Ce) => {
10669
10676
  var Ge = nn(), yt = dt(Ge);
10670
- Ye(yt, 17, () => h(l)[h(F).idSuite], Je, (Ct, wt) => {
10677
+ Je(yt, 17, () => h(l)[h(F).idSuite], Ye, (Ct, wt) => {
10671
10678
  var xt = fm(), mn = w(xt, !0);
10672
10679
  y(xt);
10673
10680
  var rr = {};
10674
10681
  M(() => {
10675
- Q(mn, h(wt).display_value), rr !== (rr = h(wt).record_id) && (xt.value = (xt.__value = h(wt).record_id) ?? "");
10682
+ K(mn, h(wt).display_value), rr !== (rr = h(wt).record_id) && (xt.value = (xt.__value = h(wt).record_id) ?? "");
10676
10683
  }), C(Ct, xt);
10677
10684
  }), C(Ce, Ge);
10678
10685
  }, Ue = (Ce) => {
10679
10686
  var Ge = hm(), yt = w(Ge, !0);
10680
- y(Ge), Ge.value = Ge.__value = "", M((Ct) => Q(yt, Ct), [() => r()("segnaposto_modal.no-option-available")]), C(Ce, Ge);
10687
+ y(Ge), Ge.value = Ge.__value = "", M((Ct) => K(yt, Ct), [() => r()("segnaposto_modal.no-option-available")]), C(Ce, Ge);
10681
10688
  };
10682
10689
  ke(q, (Ce) => {
10683
10690
  h(l)[h(F).idSuite].length > 0 ? Ce(fe) : Ce(Ue, !1);
@@ -10698,7 +10705,7 @@ function mu(e, t) {
10698
10705
  h(F).idSuite === "anagrafica" || h(F).idSuite === "dpo" || B(Ie);
10699
10706
  });
10700
10707
  }
10701
- C(I, K);
10708
+ C(I, ee);
10702
10709
  }), y(U);
10703
10710
  var G = z(U, 2), Z = w(G), _e = z(w(Z));
10704
10711
  y(Z);
@@ -10715,8 +10722,8 @@ function mu(e, t) {
10715
10722
  });
10716
10723
  }
10717
10724
  var Se = z(je);
10718
- y(me), y(G), y(S), y(T), y(Y);
10719
- var Be = z(Y, 2);
10725
+ y(me), y(G), y(S), y(T), y(J);
10726
+ var Be = z(J, 2);
10720
10727
  {
10721
10728
  var tt = (I) => {
10722
10729
  var F = bm();
@@ -10728,7 +10735,7 @@ function mu(e, t) {
10728
10735
  }
10729
10736
  M(
10730
10737
  (I, F, W) => {
10731
- se(Y, `display: ${o() ? "block" : "none"};`), Q(j, I), Q(_e, ` ${F ?? ""}`), Q(Se, ` ${W ?? ""}`);
10738
+ se(J, `display: ${o() ? "block" : "none"};`), K(j, I), K(_e, ` ${F ?? ""}`), K(Se, ` ${W ?? ""}`);
10732
10739
  },
10733
10740
  [
10734
10741
  () => r()("segnaposto_modal.segnaposto-compilation"),
@@ -10759,7 +10766,7 @@ const Am = {
10759
10766
  function gu(e, t) {
10760
10767
  ie(t, !0), ce(e, Am);
10761
10768
  const r = () => hn(pn, "$_", n), [n, i] = vn();
10762
- let a = b(t, "documents", 15), o = b(t, "doc", 15), s = b(t, "color", 7), l = b(t, "firstElement", 7), c = b(t, "openEditDialog", 7), u = b(t, "userLevel", 15), f = /* @__PURE__ */ J(!1), d = /* @__PURE__ */ J(!1), v = /* @__PURE__ */ J(at([]));
10769
+ let a = b(t, "documents", 15), o = b(t, "doc", 15), s = b(t, "color", 7), l = b(t, "firstElement", 7), c = b(t, "openEditDialog", 7), u = b(t, "userLevel", 15), f = /* @__PURE__ */ Y(!1), d = /* @__PURE__ */ Y(!1), v = /* @__PURE__ */ Y(at([]));
10763
10770
  const p = () => {
10764
10771
  const $ = rt.getCookies().EnvId;
10765
10772
  return $ === "aks_qua" || $ === "aks_svi" ? "https://versioneditorfs-65440859697.europe-west1.run.app" : "https://versioneditorfs-573906316236.europe-west1.run.app";
@@ -10792,8 +10799,8 @@ function gu(e, t) {
10792
10799
  const X = new Date($);
10793
10800
  return `${X.getDate()}/${X.getMonth() + 1}/${X.getFullYear()}`;
10794
10801
  };
10795
- let H = /* @__PURE__ */ J(!1), L = /* @__PURE__ */ J(at([]));
10796
- const Y = () => {
10802
+ let H = /* @__PURE__ */ Y(!1), L = /* @__PURE__ */ Y(at([]));
10803
+ const J = () => {
10797
10804
  _r.getVersions(o()._id).then(($) => {
10798
10805
  if ($) {
10799
10806
  const X = $[0];
@@ -10803,7 +10810,7 @@ function gu(e, t) {
10803
10810
  });
10804
10811
  }, T = ($) => {
10805
10812
  console.log("doc", o()), _r.createProcedureFromTemplate(o(), $).then((X) => {
10806
- X ? (a([X.document, ...a()]), alert(r()("alerts.success.procedure-created")), m(X.document._id)) : alert(r()("alerts.error.procedure-creation-error")), k(d, !1);
10813
+ X ? (alert(r()("alerts.success.procedure-created")), m(X.document._id)) : alert(r()("alerts.error.procedure-creation-error")), k(d, !1);
10807
10814
  });
10808
10815
  }, S = () => {
10809
10816
  confirm(r()("confirm.delete-template", { values: { templateName: o().name } })) && _r.deleteDocument(o()._id).then(($) => {
@@ -10883,7 +10890,7 @@ function gu(e, t) {
10883
10890
  y(We), y(je), y(me);
10884
10891
  var Se = z(me), Be = w(Se), tt = w(Be), qe = w(tt, !0);
10885
10892
  y(tt), y(Be), y(Se);
10886
- var I = z(Se), F = w(I), W = w(F), K = w(W);
10893
+ var I = z(Se), F = w(I), W = w(F), ee = w(W);
10887
10894
  {
10888
10895
  var Le = ($) => {
10889
10896
  var X = Em(), Pe = dt(X);
@@ -10916,11 +10923,11 @@ function gu(e, t) {
10916
10923
  }
10917
10924
  C($, X);
10918
10925
  };
10919
- ke(K, ($) => {
10926
+ ke(ee, ($) => {
10920
10927
  u() >= 40 && $(Le);
10921
10928
  });
10922
10929
  }
10923
- var Ie = z(K, 2);
10930
+ var Ie = z(ee, 2);
10924
10931
  {
10925
10932
  let $ = /* @__PURE__ */ _n(() => r()("sheet-menu.create-procedure-from-template"));
10926
10933
  Wn(Ie, {
@@ -10929,7 +10936,7 @@ function gu(e, t) {
10929
10936
  },
10930
10937
  children: (X, Pe) => {
10931
10938
  var nt = km();
10932
- Oe("click", nt, () => Y()), C(X, nt);
10939
+ Oe("click", nt, () => J()), C(X, nt);
10933
10940
  },
10934
10941
  $$slots: { default: !0 }
10935
10942
  });
@@ -10981,15 +10988,15 @@ function gu(e, t) {
10981
10988
  }
10982
10989
  M(
10983
10990
  ($, X) => {
10984
- Fe(U, "data-intro", $), Fe(U, "data-step", l() ? 1 : ""), Q(Te, o().name), Q(qe, X);
10991
+ Fe(U, "data-intro", $), Fe(U, "data-step", l() ? 1 : ""), K(Te, o().name), K(qe, X);
10985
10992
  },
10986
10993
  [
10987
10994
  () => r()("tutorial-step.1"),
10988
10995
  () => O(o().updatedAt)
10989
10996
  ]
10990
10997
  ), C(e, D);
10991
- var ee = ae(A);
10992
- return i(), ee;
10998
+ var Q = ae(A);
10999
+ return i(), Q;
10993
11000
  }
10994
11001
  Fr(["click"]);
10995
11002
  le(
@@ -11014,7 +11021,7 @@ const Lm = {
11014
11021
  function bu(e, t) {
11015
11022
  ie(t, !0), ce(e, Lm);
11016
11023
  const r = () => hn(pn, "$_", n), [n, i] = vn();
11017
- let a = b(t, "documents", 15), o = /* @__PURE__ */ J("lastUpdate"), s = /* @__PURE__ */ J(!0), l = /* @__PURE__ */ J(!0);
11024
+ let a = b(t, "documents", 15), o = /* @__PURE__ */ Y("lastUpdate"), s = /* @__PURE__ */ Y(!0), l = /* @__PURE__ */ Y(!0);
11018
11025
  const c = (A, D) => {
11019
11026
  switch (A) {
11020
11027
  case "name":
@@ -11052,18 +11059,18 @@ function bu(e, t) {
11052
11059
  var L = (A) => {
11053
11060
  var D = Im();
11054
11061
  M(() => ue(D, 1, `akj-sort fas fa-sort-${h(l) ? "down" : "up"} me-2`)), C(A, D);
11055
- }, Y = (A) => {
11062
+ }, J = (A) => {
11056
11063
  var D = zm();
11057
11064
  C(A, D);
11058
11065
  };
11059
11066
  ke(H, (A) => {
11060
- h(o) === "lastUpdate" ? A(L) : A(Y, !1);
11067
+ h(o) === "lastUpdate" ? A(L) : A(J, !1);
11061
11068
  });
11062
11069
  }
11063
11070
  var T = z(H);
11064
11071
  y(O), bo(), y(d), y(f), M(
11065
11072
  (A, D) => {
11066
- Q(E, ` ${A ?? ""}`), Q(T, ` ${D ?? ""}`);
11073
+ K(E, ` ${A ?? ""}`), K(T, ` ${D ?? ""}`);
11067
11074
  },
11068
11075
  [() => r()("file-name"), () => r()("viewer.last-update")]
11069
11076
  ), Oe("click", v, () => {
@@ -11394,7 +11401,7 @@ function Eu(e, t, r) {
11394
11401
  }
11395
11402
  function ku(e, t) {
11396
11403
  return $e(this, void 0, void 0, function() {
11397
- var r, n, i, a, o, s, l, c, u, f, d, v, p, m, _, E, O, H, L, Y, T, S, A, D, j = this;
11404
+ var r, n, i, a, o, s, l, c, u, f, d, v, p, m, _, E, O, H, L, J, T, S, A, D, j = this;
11398
11405
  return He(this, function(R) {
11399
11406
  switch (R.label) {
11400
11407
  case 0:
@@ -11409,9 +11416,9 @@ function ku(e, t) {
11409
11416
  _e && me && (_e.className = "", me.className = "active");
11410
11417
  }
11411
11418
  }(e._options.showBullets, n, t), Eu(n, e._currentStep, e._introItems.length), d.style.opacity = "1", (a != null && /introjs-donebutton/gi.test(a.className) || a != null) && a.focus(), Ps(e._options.scrollToElement, t.scrollTo, e._options.scrollPadding, t.element, c);
11412
- }, 350)) : (v = Ee("div", { className: i }), p = Ee("div", { className: "introjs-tooltipReferenceLayer" }), m = Ee("div", { className: "introjs-arrow" }), _ = Ee("div", { className: "introjs-tooltip" }), E = Ee("div", { className: "introjs-tooltiptext" }), O = Ee("div", { className: "introjs-tooltip-header" }), H = Ee("h1", { className: "introjs-tooltip-title" }), L = Ee("div"), jr(v, { "box-shadow": "0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(e._options.overlayOpacity.toString(), ") 0 0 0 5000px") }), Ls(e._options.scrollToElement, t.element), yr(e, t, v), yr(e, t, p), $s(e._targetElement, v, !0), $s(e._targetElement, p), E.innerHTML = t.intro, H.innerHTML = t.title, L.className = "introjs-tooltipbuttons", e._options.showButtons === !1 && (L.style.display = "none"), O.appendChild(H), _.appendChild(O), _.appendChild(E), e._options.dontShowAgain && (Y = Ee("div", { className: "introjs-dontShowAgain" }), (T = Ee("input", { type: "checkbox", id: "introjs-dontShowAgain", name: "introjs-dontShowAgain" })).onchange = function(U) {
11419
+ }, 350)) : (v = Ee("div", { className: i }), p = Ee("div", { className: "introjs-tooltipReferenceLayer" }), m = Ee("div", { className: "introjs-arrow" }), _ = Ee("div", { className: "introjs-tooltip" }), E = Ee("div", { className: "introjs-tooltiptext" }), O = Ee("div", { className: "introjs-tooltip-header" }), H = Ee("h1", { className: "introjs-tooltip-title" }), L = Ee("div"), jr(v, { "box-shadow": "0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(e._options.overlayOpacity.toString(), ") 0 0 0 5000px") }), Ls(e._options.scrollToElement, t.element), yr(e, t, v), yr(e, t, p), $s(e._targetElement, v, !0), $s(e._targetElement, p), E.innerHTML = t.intro, H.innerHTML = t.title, L.className = "introjs-tooltipbuttons", e._options.showButtons === !1 && (L.style.display = "none"), O.appendChild(H), _.appendChild(O), _.appendChild(E), e._options.dontShowAgain && (J = Ee("div", { className: "introjs-dontShowAgain" }), (T = Ee("input", { type: "checkbox", id: "introjs-dontShowAgain", name: "introjs-dontShowAgain" })).onchange = function(U) {
11413
11420
  e.setDontShowAgain(U.target.checked);
11414
- }, (S = Ee("label", { htmlFor: "introjs-dontShowAgain" })).innerText = e._options.dontShowAgainLabel, Y.appendChild(T), Y.appendChild(S), _.appendChild(Y)), _.appendChild(xu(e, t)), _.appendChild(function(U) {
11421
+ }, (S = Ee("label", { htmlFor: "introjs-dontShowAgain" })).innerText = e._options.dontShowAgainLabel, J.appendChild(T), J.appendChild(S), _.appendChild(J)), _.appendChild(xu(e, t)), _.appendChild(function(U) {
11415
11422
  var G = Ee("div");
11416
11423
  G.className = "introjs-progress", U._options.showProgress === !1 && (G.style.display = "none");
11417
11424
  var Z = Ee("div", { className: "introjs-progressbar" });
@@ -11836,7 +11843,7 @@ function zu(e, t) {
11836
11843
  function Ou(e) {
11837
11844
  zu(e);
11838
11845
  }
11839
- function Yn(e, t) {
11846
+ function Jn(e, t) {
11840
11847
  if (t === void 0 && (t = !1), e && e.parentElement) {
11841
11848
  var r = e.parentElement;
11842
11849
  t ? (jr(e, { opacity: "0" }), window.setTimeout(function() {
@@ -11858,8 +11865,8 @@ function cn(e, t, r) {
11858
11865
  n = s.sent(), s.label = 2;
11859
11866
  case 2:
11860
11867
  if (!r && n === !1) return [2];
11861
- if ((i = Array.from(t.querySelectorAll(".introjs-overlay"))) && i.length) for (a = 0, o = i; a < o.length; a++) Yn(o[a]);
11862
- return Yn(t.querySelector(".introjs-helperLayer"), !0), Yn(t.querySelector(".introjs-tooltipReferenceLayer")), Yn(t.querySelector(".introjs-disableInteraction")), Yn(document.querySelector(".introjsFloatingElement")), yu(), cr.off(window, "keydown", Su, e, !0), cr.off(window, "resize", Ou, e, !0), Me(e._introExitCallback) ? [4, e._introExitCallback.call(e)] : [3, 4];
11868
+ if ((i = Array.from(t.querySelectorAll(".introjs-overlay"))) && i.length) for (a = 0, o = i; a < o.length; a++) Jn(o[a]);
11869
+ return Jn(t.querySelector(".introjs-helperLayer"), !0), Jn(t.querySelector(".introjs-tooltipReferenceLayer")), Jn(t.querySelector(".introjs-disableInteraction")), Jn(document.querySelector(".introjsFloatingElement")), yu(), cr.off(window, "keydown", Su, e, !0), cr.off(window, "resize", Ou, e, !0), Me(e._introExitCallback) ? [4, e._introExitCallback.call(e)] : [3, 4];
11863
11870
  case 3:
11864
11871
  s.sent(), s.label = 4;
11865
11872
  case 4:
@@ -12155,23 +12162,23 @@ function Vo(e, t) {
12155
12162
  }, l = Gm(), c = w(l), u = w(c), f = w(u);
12156
12163
  f.value = f.__value = "";
12157
12164
  var d = z(f);
12158
- Ye(d, 17, r, Je, (m, _) => {
12165
+ Je(d, 17, r, Ye, (m, _) => {
12159
12166
  var E = Fm(), O = w(E, !0);
12160
12167
  y(E);
12161
12168
  var H = {};
12162
12169
  M(() => {
12163
- Q(O, h(_).display_value), H !== (H = h(_).record_id) && (E.value = (E.__value = h(_).record_id) ?? "");
12170
+ K(O, h(_).display_value), H !== (H = h(_).record_id) && (E.value = (E.__value = h(_).record_id) ?? "");
12164
12171
  }), C(m, E);
12165
12172
  }), y(u), y(c);
12166
12173
  var v = z(c, 2);
12167
12174
  {
12168
12175
  var p = (m) => {
12169
12176
  var _ = Um();
12170
- Ye(_, 21, n, Je, (E, O) => {
12171
- var H = qm(), L = w(H), Y = w(L, !0);
12177
+ Je(_, 21, n, Ye, (E, O) => {
12178
+ var H = qm(), L = w(H), J = w(L, !0);
12172
12179
  y(L);
12173
12180
  var T = z(L, 2);
12174
- y(H), M(() => Q(Y, h(O).display_value)), Oe("click", T, () => a()(h(O).record_id)), C(E, H);
12181
+ y(H), M(() => K(J, h(O).display_value)), Oe("click", T, () => a()(h(O).record_id)), C(E, H);
12175
12182
  }), y(_), C(m, _);
12176
12183
  };
12177
12184
  ke(v, (m) => {
@@ -12199,7 +12206,7 @@ le(
12199
12206
  [],
12200
12207
  { mode: "open" }
12201
12208
  );
12202
- var Jm = /* @__PURE__ */ N('<li class="svelte-fvdqhh"><span class="svelte-fvdqhh"> </span> <button aria-label="Remove tag" class="svelte-fvdqhh"><i class="fa-solid fa-xmark"></i></button></li>'), Ym = /* @__PURE__ */ N('<ul class="svelte-fvdqhh"></ul>'), Xm = /* @__PURE__ */ N('<div class="form-group"><label for="minLevel"> </label> <input type="number" class="form-control form-control-sm" id="minLevel" min="0" max="100"/></div> <div class="form-check"><input class="form-check-input" type="checkbox" id="flexCheckDefault"/> <label class="form-check-label" for="flexCheckDefault"> </label></div>', 1), Zm = /* @__PURE__ */ N('<div class="spinner svelte-fvdqhh"><!></div>'), Wm = /* @__PURE__ */ N('<button class="btn btn-primary"><i class="fa-solid fa-floppy-disk"></i> </button>'), Qm = /* @__PURE__ */ N('<div class="modal-backdrop show"></div>'), Km = /* @__PURE__ */ N('<div class="modal show" id="ModalBase" tabindex="-1" aria-modal="true" role="dialog"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><h3> </h3> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div> <div class="modal-body d-flex flex-column gap-3"><div class="form-group"><label for="documentName"> </label> <input class="form-control form-control-sm" type="text"/></div> <div class="form-group"><label for="documentName"> </label> <input type="text" class="form-control form-control-sm"/></div> <div class="form-group"><label for="norms"> </label> <!></div> <div class="custom-tags svelte-fvdqhh"><div class="d-flex gap-1"><input type="text" class="form-control form-control-sm custom-input svelte-fvdqhh" id="tags"/> <button class="btn btn-sm btn-primary aks-btn-rounded" aria-label="Add tag"><i class="fa-solid fa-plus"></i></button></div> <!></div> <!></div> <div class="modal-footer"><!></div></div></div></div> <!>', 1);
12209
+ var Ym = /* @__PURE__ */ N('<li class="svelte-fvdqhh"><span class="svelte-fvdqhh"> </span> <button aria-label="Remove tag" class="svelte-fvdqhh"><i class="fa-solid fa-xmark"></i></button></li>'), Jm = /* @__PURE__ */ N('<ul class="svelte-fvdqhh"></ul>'), Xm = /* @__PURE__ */ N('<div class="form-group"><label for="minLevel"> </label> <input type="number" class="form-control form-control-sm" id="minLevel" min="0" max="100"/></div> <div class="form-check"><input class="form-check-input" type="checkbox" id="flexCheckDefault"/> <label class="form-check-label" for="flexCheckDefault"> </label></div>', 1), Zm = /* @__PURE__ */ N('<div class="spinner svelte-fvdqhh"><!></div>'), Wm = /* @__PURE__ */ N('<button class="btn btn-primary"><i class="fa-solid fa-floppy-disk"></i> </button>'), Qm = /* @__PURE__ */ N('<div class="modal-backdrop show"></div>'), Km = /* @__PURE__ */ N('<div class="modal show" id="ModalBase" tabindex="-1" aria-modal="true" role="dialog"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><h3> </h3> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div> <div class="modal-body d-flex flex-column gap-3"><div class="form-group"><label for="documentName"> </label> <input class="form-control form-control-sm" type="text"/></div> <div class="form-group"><label for="documentName"> </label> <input type="text" class="form-control form-control-sm"/></div> <div class="form-group"><label for="norms"> </label> <!></div> <div class="custom-tags svelte-fvdqhh"><div class="d-flex gap-1"><input type="text" class="form-control form-control-sm custom-input svelte-fvdqhh" id="tags"/> <button class="btn btn-sm btn-primary aks-btn-rounded" aria-label="Add tag"><i class="fa-solid fa-plus"></i></button></div> <!></div> <!></div> <div class="modal-footer"><!></div></div></div></div> <!>', 1);
12203
12210
  const e0 = {
12204
12211
  hash: "svelte-fvdqhh",
12205
12212
  code: ".custom-input.svelte-fvdqhh {width:94%;}.custom-tags.svelte-fvdqhh ul:where(.svelte-fvdqhh) {display:flex;flex-wrap:wrap;gap:0.5rem;padding:0;list-style:none;margin-top:5px;}.custom-tags.svelte-fvdqhh li:where(.svelte-fvdqhh) {display:flex;align-items:center;gap:0.5rem;padding:0 0.5rem;border:1px solid #ccc;border-radius:100px;background-color:#f9f9f9;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.custom-tags.svelte-fvdqhh li:where(.svelte-fvdqhh) span:where(.svelte-fvdqhh) {flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:small;}.custom-tags.svelte-fvdqhh li:where(.svelte-fvdqhh) button:where(.svelte-fvdqhh) {background:none;border:none;color:#d9534f;cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center;}.custom-tags.svelte-fvdqhh li:where(.svelte-fvdqhh) button:where(.svelte-fvdqhh):hover {color:#c9302c;}.spinner.svelte-fvdqhh {display:flex;justify-content:center;}"
@@ -12231,7 +12238,7 @@ function Lu(e, t) {
12231
12238
  q ? o(q) : console.error("Error updating document"), l()(o()), k(E, !1), a(!1);
12232
12239
  });
12233
12240
  };
12234
- let f = /* @__PURE__ */ J(at([])), d = /* @__PURE__ */ J(at([])), v = /* @__PURE__ */ J(""), p = /* @__PURE__ */ J(""), m = /* @__PURE__ */ J(at(o().excludeFromDocumentale ?? !1)), _ = /* @__PURE__ */ J(at(o().minLevel ?? 40)), E = /* @__PURE__ */ J(!1);
12241
+ let f = /* @__PURE__ */ Y(at([])), d = /* @__PURE__ */ Y(at([])), v = /* @__PURE__ */ Y(""), p = /* @__PURE__ */ Y(""), m = /* @__PURE__ */ Y(at(o().excludeFromDocumentale ?? !1)), _ = /* @__PURE__ */ Y(at(o().minLevel ?? 40)), E = /* @__PURE__ */ Y(!1);
12235
12242
  function O() {
12236
12243
  h(v).trim() && !h(d).includes(h(v).trim()) && (k(d, [...h(d), h(v).trim()], !0), k(v, ""));
12237
12244
  }
@@ -12241,7 +12248,7 @@ function Lu(e, t) {
12241
12248
  function L(q) {
12242
12249
  k(d, h(d).filter((fe) => fe !== q), !0);
12243
12250
  }
12244
- function Y(q) {
12251
+ function J(q) {
12245
12252
  k(f, [...h(f).filter((fe) => fe.record_id !== q)], !0), console.log(h(f));
12246
12253
  }
12247
12254
  fn(() => {
@@ -12286,10 +12293,10 @@ function Lu(e, t) {
12286
12293
  Lt(qe), y(Se);
12287
12294
  var I = z(Se, 2), F = w(I), W = w(F, !0);
12288
12295
  y(F);
12289
- var K = z(F, 2);
12290
- Vo(K, {
12296
+ var ee = z(F, 2);
12297
+ Vo(ee, {
12291
12298
  selectNorm: H,
12292
- removeSelectedNorm: Y,
12299
+ removeSelectedNorm: J,
12293
12300
  get norms() {
12294
12301
  return s();
12295
12302
  },
@@ -12316,12 +12323,12 @@ function Lu(e, t) {
12316
12323
  var de = z(Ie, 2);
12317
12324
  {
12318
12325
  var te = (q) => {
12319
- var fe = Ym();
12320
- Ye(fe, 21, () => h(d), Je, (Ue, Ce) => {
12321
- var Ge = Jm(), yt = w(Ge), Ct = w(yt, !0);
12326
+ var fe = Jm();
12327
+ Je(fe, 21, () => h(d), Ye, (Ue, Ce) => {
12328
+ var Ge = Ym(), yt = w(Ge), Ct = w(yt, !0);
12322
12329
  y(yt);
12323
12330
  var wt = z(yt, 2);
12324
- y(Ge), M(() => Q(Ct, h(Ce))), Oe("click", wt, () => L(h(Ce))), C(Ue, Ge);
12331
+ y(Ge), M(() => K(Ct, h(Ce))), Oe("click", wt, () => L(h(Ce))), C(Ue, Ge);
12325
12332
  }), y(fe), C(q, fe);
12326
12333
  };
12327
12334
  ke(de, (q) => {
@@ -12329,7 +12336,7 @@ function Lu(e, t) {
12329
12336
  });
12330
12337
  }
12331
12338
  y(Le);
12332
- var ee = z(Le, 2);
12339
+ var Q = z(Le, 2);
12333
12340
  {
12334
12341
  var $ = (q) => {
12335
12342
  var fe = Xm(), Ue = dt(fe), Ce = w(Ue), Ge = w(Ce, !0);
@@ -12341,7 +12348,7 @@ function Lu(e, t) {
12341
12348
  var xt = z(wt, 2), mn = w(xt, !0);
12342
12349
  y(xt), y(Ct), M(
12343
12350
  (rr, Ii) => {
12344
- Q(Ge, rr), Q(mn, Ii);
12351
+ K(Ge, rr), K(mn, Ii);
12345
12352
  },
12346
12353
  [
12347
12354
  () => r()("create-dialog.min-level"),
@@ -12349,7 +12356,7 @@ function Lu(e, t) {
12349
12356
  ]
12350
12357
  ), Zt(yt, () => h(_), (rr) => k(_, rr)), jl(wt, () => h(m), (rr) => k(m, rr)), C(q, fe);
12351
12358
  }, X = /* @__PURE__ */ _n(() => o().path.includes("templates"));
12352
- ke(ee, (q) => {
12359
+ ke(Q, (q) => {
12353
12360
  h(X) && q($);
12354
12361
  });
12355
12362
  }
@@ -12361,7 +12368,7 @@ function Lu(e, t) {
12361
12368
  ln(Ue, { color: "#295cdf", size: "31.5" }), y(fe), C(q, fe);
12362
12369
  }, _t = (q) => {
12363
12370
  var fe = Wm(), Ue = z(w(fe));
12364
- y(fe), M((Ce) => Q(Ue, ` ${Ce ?? ""}`), [() => r()("save")]), Oe("click", fe, u), C(q, fe);
12371
+ y(fe), M((Ce) => K(Ue, ` ${Ce ?? ""}`), [() => r()("save")]), Oe("click", fe, u), C(q, fe);
12365
12372
  };
12366
12373
  ke(nt, (q) => {
12367
12374
  h(E) ? q(Qe) : q(_t, !1);
@@ -12380,7 +12387,7 @@ function Lu(e, t) {
12380
12387
  }
12381
12388
  M(
12382
12389
  (q, fe, Ue, Ce, Ge, yt, Ct) => {
12383
- se(A, `display: ${a() ? "block" : "none"};`), Q(G, q), Q(We, fe), Fe(Te, "placeholder", Ue), Q(tt, Ce), Fe(qe, "placeholder", Ge), Q(W, yt), Fe(B, "placeholder", Ct);
12390
+ se(A, `display: ${a() ? "block" : "none"};`), K(G, q), K(We, fe), Fe(Te, "placeholder", Ue), K(tt, Ce), Fe(qe, "placeholder", Ge), K(W, yt), Fe(B, "placeholder", Ct);
12384
12391
  },
12385
12392
  [
12386
12393
  () => r()("sheet-line.edit"),
@@ -12421,10 +12428,10 @@ const n0 = {
12421
12428
  function Pu(e, t) {
12422
12429
  ie(t, !0), ce(e, n0);
12423
12430
  const r = () => hn(pn, "$_", n), [n, i] = vn();
12424
- let a = b(t, "documents", 15), o = b(t, "normArray", 15), s = b(t, "showCreateDialog", 15), l = b(t, "userLevel", 15), c = /* @__PURE__ */ J("template"), u = /* @__PURE__ */ J(""), f = /* @__PURE__ */ J(0);
12431
+ let a = b(t, "documents", 15), o = b(t, "normArray", 15), s = b(t, "showCreateDialog", 15), l = b(t, "userLevel", 15), c = /* @__PURE__ */ Y("template"), u = /* @__PURE__ */ Y(""), f = /* @__PURE__ */ Y(0);
12425
12432
  const d = (B, ge, de, te = !1) => {
12426
- const ee = ge.toLowerCase().trim();
12427
- return B.filter(($) => de !== 0 && !$.normIds.some((Pe) => Pe === de) ? !1 : ee ? te ? $.tags.some((X) => X.value.some((Pe) => Pe.toLowerCase().includes(ee))) : $.name.toLowerCase().includes(ee) || $.tags.some((X) => X.value.some((Pe) => Pe.toLowerCase().includes(ee))) : !0);
12433
+ const Q = ge.toLowerCase().trim();
12434
+ return B.filter(($) => de !== 0 && !$.normIds.some((Pe) => Pe === de) ? !1 : Q ? te ? $.tags.some((X) => X.value.some((Pe) => Pe.toLowerCase().includes(Q))) : $.name.toLowerCase().includes(Q) || $.tags.some((X) => X.value.some((Pe) => Pe.toLowerCase().includes(Q))) : !0);
12428
12435
  }, v = () => {
12429
12436
  k(_, [...a()].filter((B) => B.path && B.path.includes(h(c)))), h(f) !== 0 && m(!0);
12430
12437
  }, p = (B) => {
@@ -12436,10 +12443,10 @@ function Pu(e, t) {
12436
12443
  const E = (B) => {
12437
12444
  B.target && (k(f, parseInt(B.target.value), !0), h(f) === 0 ? m(!1) : m(!0));
12438
12445
  };
12439
- let O = /* @__PURE__ */ J(!1), H = /* @__PURE__ */ J(null);
12446
+ let O = /* @__PURE__ */ Y(!1), H = /* @__PURE__ */ Y(null);
12440
12447
  const L = (B) => {
12441
12448
  k(H, B, !0), k(O, !0);
12442
- }, Y = (B) => {
12449
+ }, J = (B) => {
12443
12450
  const ge = a().findIndex((de) => de._id === B._id);
12444
12451
  ge !== -1 && (a(a()[ge] = B, !0), a(
12445
12452
  [...a()]
@@ -12479,12 +12486,12 @@ function Pu(e, t) {
12479
12486
  }, S = r0(), A = dt(S), D = w(A), j = w(D), R = w(j), U = w(R), G = w(U), Z = w(G, !0);
12480
12487
  y(G), G.value = G.__value = 0;
12481
12488
  var _e = z(G);
12482
- Ye(_e, 17, o, Je, (B, ge) => {
12489
+ Je(_e, 17, o, Ye, (B, ge) => {
12483
12490
  var de = t0(), te = w(de, !0);
12484
12491
  y(de);
12485
- var ee = {};
12492
+ var Q = {};
12486
12493
  M(() => {
12487
- Q(te, h(ge).display_value), ee !== (ee = h(ge).record_id) && (de.value = (de.__value = h(ge).record_id) ?? "");
12494
+ K(te, h(ge).display_value), Q !== (Q = h(ge).record_id) && (de.value = (de.__value = h(ge).record_id) ?? "");
12488
12495
  }), C(B, de);
12489
12496
  }), y(U), y(R), y(j);
12490
12497
  var me = z(j, 2), je = w(me), We = w(je);
@@ -12503,7 +12510,7 @@ function Pu(e, t) {
12503
12510
  }
12504
12511
  });
12505
12512
  var W = z(F);
12506
- Ye(W, 21, () => h(_), Je, (B, ge, de, te) => {
12513
+ Je(W, 21, () => h(_), Ye, (B, ge, de, te) => {
12507
12514
  gu(B, {
12508
12515
  color: h(c) == "template" ? "#295dcf" : "#28853d",
12509
12516
  firstElement: de === 0,
@@ -12511,28 +12518,28 @@ function Pu(e, t) {
12511
12518
  get documents() {
12512
12519
  return a();
12513
12520
  },
12514
- set documents(ee) {
12515
- a(ee);
12521
+ set documents(Q) {
12522
+ a(Q);
12516
12523
  },
12517
12524
  get doc() {
12518
12525
  return h(_)[de];
12519
12526
  },
12520
- set doc(ee) {
12521
- h(_)[de] = ee;
12527
+ set doc(Q) {
12528
+ h(_)[de] = Q;
12522
12529
  },
12523
12530
  get userLevel() {
12524
12531
  return l();
12525
12532
  },
12526
- set userLevel(ee) {
12527
- l(ee);
12533
+ set userLevel(Q) {
12534
+ l(Q);
12528
12535
  }
12529
12536
  });
12530
12537
  }), y(W), y(I), y(qe), y(A);
12531
- var K = z(A, 2);
12538
+ var ee = z(A, 2);
12532
12539
  {
12533
12540
  var Le = (B) => {
12534
12541
  Lu(B, {
12535
- updateDocumento: Y,
12542
+ updateDocumento: J,
12536
12543
  get showEditDialog() {
12537
12544
  return h(O);
12538
12545
  },
@@ -12553,13 +12560,13 @@ function Pu(e, t) {
12553
12560
  }
12554
12561
  });
12555
12562
  };
12556
- ke(K, (B) => {
12563
+ ke(ee, (B) => {
12557
12564
  h(O) && h(H) && B(Le);
12558
12565
  });
12559
12566
  }
12560
12567
  M(
12561
- (B, ge, de, te, ee, $) => {
12562
- Fe(R, "data-intro", B), Q(Z, ge), Fe(je, "data-intro", de), Fe(We, "placeholder", `${te ?? ""}...`), Fe(Be, "data-intro", ee), Q(tt, ` ${$ ?? ""}`);
12568
+ (B, ge, de, te, Q, $) => {
12569
+ Fe(R, "data-intro", B), K(Z, ge), Fe(je, "data-intro", de), Fe(We, "placeholder", `${te ?? ""}...`), Fe(Be, "data-intro", Q), K(tt, ` ${$ ?? ""}`);
12563
12570
  },
12564
12571
  [
12565
12572
  () => r()("tutorial-step.4"),
@@ -12597,10 +12604,10 @@ const f0 = {
12597
12604
  function $u(e, t) {
12598
12605
  ie(t, !0), ce(e, f0);
12599
12606
  const r = () => hn(pn, "$_", n), [n, i] = vn();
12600
- let a = b(t, "showCreateDialog", 15), o = b(t, "documents", 15), s = b(t, "norms", 7), l = b(t, "refreshDocuments", 7), c = /* @__PURE__ */ J("no-ai"), u = /* @__PURE__ */ J(""), f = /* @__PURE__ */ J(""), d = /* @__PURE__ */ J(at([])), v = /* @__PURE__ */ J(at([])), p = /* @__PURE__ */ J(""), m = /* @__PURE__ */ J(""), _ = /* @__PURE__ */ J(!0), E = /* @__PURE__ */ J(!1), O = /* @__PURE__ */ J(!1), H = /* @__PURE__ */ J(
12607
+ let a = b(t, "showCreateDialog", 15), o = b(t, "documents", 15), s = b(t, "norms", 7), l = b(t, "refreshDocuments", 7), c = /* @__PURE__ */ Y("no-ai"), u = /* @__PURE__ */ Y(""), f = /* @__PURE__ */ Y(""), d = /* @__PURE__ */ Y(at([])), v = /* @__PURE__ */ Y(at([])), p = /* @__PURE__ */ Y(""), m = /* @__PURE__ */ Y(""), _ = /* @__PURE__ */ Y(!0), E = /* @__PURE__ */ Y(!1), O = /* @__PURE__ */ Y(!1), H = /* @__PURE__ */ Y(
12601
12608
  40
12602
12609
  // minimum user level to view the procedure
12603
- ), L = /* @__PURE__ */ J(""), Y = /* @__PURE__ */ J(void 0), T = /* @__PURE__ */ J(!1);
12610
+ ), L = /* @__PURE__ */ Y(""), J = /* @__PURE__ */ Y(void 0), T = /* @__PURE__ */ Y(!1);
12604
12611
  function S(V) {
12605
12612
  return new Promise((Ne, lt) => {
12606
12613
  const pt = new FileReader();
@@ -12641,7 +12648,7 @@ function $u(e, t) {
12641
12648
  societyType: h(L),
12642
12649
  lang: Qh() ?? "it",
12643
12650
  full: h(c) === "full",
12644
- file: h(Y) ? await S(h(Y)) : void 0,
12651
+ file: h(J) ? await S(h(J)) : void 0,
12645
12652
  excludeFromDocumentale: h(O),
12646
12653
  minLevel: h(H),
12647
12654
  altTitle: h(f)
@@ -12697,13 +12704,13 @@ function $u(e, t) {
12697
12704
  y(Se);
12698
12705
  var tt = z(Se, 2);
12699
12706
  y(Te);
12700
- var qe = z(Te, 2), I = w(qe), F = w(I), W = w(F), K = w(W, !0);
12707
+ var qe = z(Te, 2), I = w(qe), F = w(I), W = w(F), ee = w(W, !0);
12701
12708
  y(W), W.value = W.__value = "no-ai";
12702
12709
  var Le = z(W), Ie = w(Le, !0);
12703
12710
  y(Le), Le.value = Le.__value = "only-struct";
12704
12711
  var B = z(Le), ge = w(B, !0);
12705
12712
  y(B), B.value = B.__value = "full", y(F), y(I);
12706
- var de = z(I, 2), te = w(de), ee = w(te, !0);
12713
+ var de = z(I, 2), te = w(de), Q = w(te, !0);
12707
12714
  y(te);
12708
12715
  var $ = z(te, 2);
12709
12716
  Lt($), y(de);
@@ -12747,11 +12754,11 @@ function $u(e, t) {
12747
12754
  {
12748
12755
  var Un = (Vt) => {
12749
12756
  var Gn = a0();
12750
- Ye(Gn, 21, () => h(d), Je, (ka, zi) => {
12757
+ Je(Gn, 21, () => h(d), Ye, (ka, zi) => {
12751
12758
  var Sa = i0(), Ta = w(Sa), qu = w(Ta, !0);
12752
12759
  y(Ta);
12753
12760
  var Uu = z(Ta, 2);
12754
- y(Sa), M(() => Q(qu, h(zi))), Oe("click", Uu, () => U(h(zi))), C(ka, Sa);
12761
+ y(Sa), M(() => K(qu, h(zi))), Oe("click", Uu, () => U(h(zi))), C(ka, Sa);
12755
12762
  }), y(Gn), C(Vt, Gn);
12756
12763
  };
12757
12764
  ke(Gr, (Vt) => {
@@ -12765,7 +12772,7 @@ function $u(e, t) {
12765
12772
  var Gt = z(lt, 2);
12766
12773
  Lt(Gt), y(Ne), M(
12767
12774
  (Gr, Un) => {
12768
- Q(pt, Gr), Fe(Gt, "placeholder", Un);
12775
+ K(pt, Gr), Fe(Gt, "placeholder", Un);
12769
12776
  },
12770
12777
  [
12771
12778
  () => r()("create-dialog.society-type"),
@@ -12792,7 +12799,7 @@ function $u(e, t) {
12792
12799
  ln(lt, { color: "#295dcf", size: "31.5" }), y(Ne), C(V, Ne);
12793
12800
  }, Mu = (V) => {
12794
12801
  var Ne = u0(), lt = w(Ne), pt = z(w(lt));
12795
- y(lt), y(Ne), M((Gt) => Q(pt, ` ${Gt ?? ""}`), [
12802
+ y(lt), y(Ne), M((Gt) => K(pt, ` ${Gt ?? ""}`), [
12796
12803
  () => h(_) ? r()("create.template") : r()("create.document")
12797
12804
  ]), Oe("click", lt, () => h(c) === "no-ai" ? A() : D()), C(V, Ne);
12798
12805
  };
@@ -12813,7 +12820,7 @@ function $u(e, t) {
12813
12820
  }
12814
12821
  M(
12815
12822
  (V, Ne, lt, pt, Gt, Gr, Un, Vt, Gn, ka, zi) => {
12816
- se(me, `display: ${a() ? "block" : "none"};`), Q(Be, V), Q(K, Ne), Q(Ie, lt), Q(ge, pt), Q(ee, Gt), Fe($, "placeholder", Gr), Q(nt, Un), Fe(Qe, "placeholder", Vt), Q(re, Gn), Q(yt, ka), Q(rr, zi);
12823
+ se(me, `display: ${a() ? "block" : "none"};`), K(Be, V), K(ee, Ne), K(Ie, lt), K(ge, pt), K(Q, Gt), Fe($, "placeholder", Gr), K(nt, Un), Fe(Qe, "placeholder", Vt), K(re, Gn), K(yt, ka), K(rr, zi);
12817
12824
  },
12818
12825
  [
12819
12826
  () => r()("add-document.add-new"),
@@ -12860,7 +12867,7 @@ const p0 = {
12860
12867
  };
12861
12868
  function Hu(e, t) {
12862
12869
  ie(t, !0), ce(e, p0);
12863
- let r = /* @__PURE__ */ J(at([])), n = /* @__PURE__ */ J(!0), i = /* @__PURE__ */ J(!1), a = /* @__PURE__ */ J(at([])), o = /* @__PURE__ */ J(at([]));
12870
+ let r = /* @__PURE__ */ Y(at([])), n = /* @__PURE__ */ Y(!0), i = /* @__PURE__ */ Y(!1), a = /* @__PURE__ */ Y(at([])), o = /* @__PURE__ */ Y(at([]));
12864
12871
  const s = (T) => T.sort((S, A) => S.updatedAt ? A.updatedAt ? S.updatedAt > A.updatedAt ? -1 : 1 : S.updatedAt > (A.createdAt ?? 0) ? -1 : 1 : A.updatedAt ? (S.createdAt ?? 0) > A.updatedAt ? -1 : 1 : (S.createdAt ?? 0) > (A.createdAt ?? 0) ? -1 : 1), l = () => {
12865
12872
  const T = /* @__PURE__ */ new Set();
12866
12873
  for (let S of h(r))
@@ -12872,7 +12879,7 @@ function Hu(e, t) {
12872
12879
  }, c = () => {
12873
12880
  k(r, s(h(r)), !0), l();
12874
12881
  };
12875
- let u = /* @__PURE__ */ J(0);
12882
+ let u = /* @__PURE__ */ Y(0);
12876
12883
  fn(async () => {
12877
12884
  k(n, !0);
12878
12885
  let T = await rt.getUserLevel();
@@ -12913,7 +12920,7 @@ function Hu(e, t) {
12913
12920
  var L = (T) => {
12914
12921
  var S = h0(), A = w(S);
12915
12922
  ln(A, { color: "#295dcf" }), y(S), C(T, S);
12916
- }, Y = (T) => {
12923
+ }, J = (T) => {
12917
12924
  Pu(T, {
12918
12925
  get documents() {
12919
12926
  return h(r);
@@ -12942,7 +12949,7 @@ function Hu(e, t) {
12942
12949
  });
12943
12950
  };
12944
12951
  ke(H, (T) => {
12945
- h(n) ? T(L) : T(Y, !1);
12952
+ h(n) ? T(L) : T(J, !1);
12946
12953
  });
12947
12954
  }
12948
12955
  y(_), y(m), us(1, _, () => zs, () => ({ duration: 100 })), us(2, _, () => zs, () => ({ duration: 100 })), C(e, f), ae();
@@ -12958,7 +12965,7 @@ function b0(e, t) {
12958
12965
  const r = (p) => p.toLowerCase().includes("it") ? "it" : p.toLowerCase().includes("en") ? "en" : "it";
12959
12966
  let n = b(t, "envId", 7), i = b(t, "aksToken", 7), a = b(t, "lang", 7, "it");
12960
12967
  li.set({ envId: n() || "", token: i() || "" });
12961
- let o = /* @__PURE__ */ J(!1), s = /* @__PURE__ */ J(!0);
12968
+ let o = /* @__PURE__ */ Y(!1), s = /* @__PURE__ */ Y(!0);
12962
12969
  fn(async () => {
12963
12970
  Wh(r(a()));
12964
12971
  try {