akpm-procedures 1.1.11 → 1.1.13

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 +503 -498
  2. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- /* Version: 1.1.11 */
1
+ /* Version: 1.1.13 */
2
2
  var Zs = Object.defineProperty;
3
3
  var ua = (t) => {
4
4
  throw TypeError(t);
5
5
  };
6
6
  var Ws = (t, e, r) => e in t ? Zs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
7
- var F = (t, e, r) => Ws(t, typeof e != "symbol" ? e + "" : e, r), ca = (t, e, r) => e.has(t) || ua("Cannot " + r);
7
+ var R = (t, e, r) => Ws(t, typeof e != "symbol" ? e + "" : e, r), ca = (t, e, r) => e.has(t) || ua("Cannot " + r);
8
8
  var Rt = (t, e, r) => (ca(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ei = (t, e, r) => e.has(t) ? ua("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), ri = (t, e, r, n) => (ca(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
9
9
  const Qs = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qs);
@@ -98,7 +98,7 @@ function Ge(t, e = !1) {
98
98
  function io(t) {
99
99
  return bt !== null && bt.f & Kt && (de === null ? Rl([t]) : de.push(t)), t;
100
100
  }
101
- function S(t, e) {
101
+ function A(t, e) {
102
102
  return bt !== null && $n() && bt.f & (Kt | Rn) && // If the source was created locally within the current derived, then
103
103
  // we allow the mutation.
104
104
  (de === null || !de.includes(t)) && Tl(), vi(t, e);
@@ -190,7 +190,7 @@ function M(t, e = null, r) {
190
190
  defineProperty(l, u, c) {
191
191
  (!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && El();
192
192
  var d = i.get(u);
193
- return d === void 0 ? (d = Yt(c.value), i.set(u, d)) : S(d, M(c.value, s)), !0;
193
+ return d === void 0 ? (d = Yt(c.value), i.set(u, d)) : A(d, M(c.value, s)), !0;
194
194
  },
195
195
  deleteProperty(l, u) {
196
196
  var c = i.get(u);
@@ -202,9 +202,9 @@ function M(t, e = null, r) {
202
202
  /** @type {Source<number>} */
203
203
  i.get("length")
204
204
  ), f = Number(u);
205
- Number.isInteger(f) && f < d.v && S(d, f);
205
+ Number.isInteger(f) && f < d.v && A(d, f);
206
206
  }
207
- S(c, Ft), da(o);
207
+ A(c, Ft), da(o);
208
208
  }
209
209
  return !0;
210
210
  },
@@ -256,17 +256,17 @@ function M(t, e = null, r) {
256
256
  for (var _ = c; _ < /** @type {Source<number>} */
257
257
  f.v; _ += 1) {
258
258
  var y = i.get(_ + "");
259
- y !== void 0 ? S(y, Ft) : _ in l && (y = Yt(Ft), i.set(_ + "", y));
259
+ y !== void 0 ? A(y, Ft) : _ in l && (y = Yt(Ft), i.set(_ + "", y));
260
260
  }
261
- f === void 0 ? (!v || (T = we(l, u)) != null && T.writable) && (f = Yt(void 0), S(f, M(c, s)), i.set(u, f)) : (v = f.v !== Ft, S(f, M(c, s)));
262
- var E = Reflect.getOwnPropertyDescriptor(l, u);
263
- if (E != null && E.set && E.set.call(d, c), !v) {
261
+ f === void 0 ? (!v || (T = we(l, u)) != null && T.writable) && (f = Yt(void 0), A(f, M(c, s)), i.set(u, f)) : (v = f.v !== Ft, A(f, M(c, s)));
262
+ var S = Reflect.getOwnPropertyDescriptor(l, u);
263
+ if (S != null && S.set && S.set.call(d, c), !v) {
264
264
  if (a && typeof u == "string") {
265
265
  var L = (
266
266
  /** @type {Source<number>} */
267
267
  i.get("length")
268
268
  ), I = Number(u);
269
- Number.isInteger(I) && I >= L.v && S(L, I + 1);
269
+ Number.isInteger(I) && I >= L.v && A(L, I + 1);
270
270
  }
271
271
  da(o);
272
272
  }
@@ -289,7 +289,7 @@ function M(t, e = null, r) {
289
289
  );
290
290
  }
291
291
  function da(t, e = 1) {
292
- S(t, t.v + e);
292
+ A(t, t.v + e);
293
293
  }
294
294
  function fa(t) {
295
295
  return t !== null && typeof t == "object" && xe in t ? t[xe] : t;
@@ -521,7 +521,7 @@ function Zr(t, e, r, n) {
521
521
  pt
522
522
  ), a = { effect: null, ran: !1 };
523
523
  i.l.r1.push(a), a.effect = _r(() => {
524
- t(), !a.ran && (a.ran = !0, S(i.l.r2, !0), ve(e));
524
+ t(), !a.ran && (a.ran = !0, A(i.l.r2, !0), ve(e));
525
525
  });
526
526
  }
527
527
  function Wr() {
@@ -1154,8 +1154,8 @@ function an(t) {
1154
1154
  if (y !== void 0 && !/** @type {any} */
1155
1155
  a.disabled)
1156
1156
  if (qr(y)) {
1157
- var [E, ...L] = y;
1158
- E.apply(a, [t, ...L]);
1157
+ var [S, ...L] = y;
1158
+ S.apply(a, [t, ...L]);
1159
1159
  } else
1160
1160
  y.call(a, t);
1161
1161
  } catch (T) {
@@ -1420,11 +1420,11 @@ function Ct(t, e, r, n, i, a = null) {
1420
1420
  d = _ === 0;
1421
1421
  let y = !1;
1422
1422
  if (ft) {
1423
- var E = (
1423
+ var S = (
1424
1424
  /** @type {Comment} */
1425
1425
  o.data === Hi
1426
1426
  );
1427
- E !== (_ === 0) && (o = pi(), Qt(o), _e(!1), y = !0);
1427
+ S !== (_ === 0) && (o = pi(), Qt(o), _e(!1), y = !0);
1428
1428
  }
1429
1429
  if (ft) {
1430
1430
  for (var L = null, I, T = 0; T < _; T++) {
@@ -1453,7 +1453,7 @@ function Ct(t, e, r, n, i, a = null) {
1453
1453
  }
1454
1454
  function eu(t, e, r, n, i, a, o) {
1455
1455
  var it, dt, xt, X;
1456
- var s = (i & Ks) !== 0, l = (i & (Pi | ji)) !== 0, u = t.length, c = e.items, d = e.first, f = d, v, _ = null, y, E = [], L = [], I, T, N, b;
1456
+ var s = (i & Ks) !== 0, l = (i & (Pi | ji)) !== 0, u = t.length, c = e.items, d = e.first, f = d, v, _ = null, y, S = [], L = [], I, T, N, b;
1457
1457
  if (s)
1458
1458
  for (b = 0; b < u; b += 1)
1459
1459
  I = t[b], T = o(I, b), N = c.get(T), N !== void 0 && ((it = N.a) == null || it.measure(), (y ?? (y = /* @__PURE__ */ new Set())).add(N));
@@ -1473,42 +1473,42 @@ function eu(t, e, r, n, i, a, o) {
1473
1473
  b,
1474
1474
  n,
1475
1475
  i
1476
- ), c.set(T, _), E = [], L = [], f = _.next;
1476
+ ), c.set(T, _), S = [], L = [], f = _.next;
1477
1477
  continue;
1478
1478
  }
1479
1479
  if (l && ru(N, I, b, i), N.e.f & ce && (kn(N.e), s && ((dt = N.a) == null || dt.unfix(), (y ?? (y = /* @__PURE__ */ new Set())).delete(N))), N !== f) {
1480
1480
  if (v !== void 0 && v.has(N)) {
1481
- if (E.length < L.length) {
1482
- var x = L[0], A;
1481
+ if (S.length < L.length) {
1482
+ var x = L[0], E;
1483
1483
  _ = x.prev;
1484
- var D = E[0], H = E[E.length - 1];
1485
- for (A = 0; A < E.length; A += 1)
1486
- ga(E[A], x, r);
1487
- for (A = 0; A < L.length; A += 1)
1488
- v.delete(L[A]);
1489
- ze(e, D.prev, H.next), ze(e, _, D), ze(e, H, x), f = x, _ = H, b -= 1, E = [], L = [];
1484
+ var H = S[0], B = S[S.length - 1];
1485
+ for (E = 0; E < S.length; E += 1)
1486
+ ga(S[E], x, r);
1487
+ for (E = 0; E < L.length; E += 1)
1488
+ v.delete(L[E]);
1489
+ ze(e, H.prev, B.next), ze(e, _, H), ze(e, B, x), f = x, _ = B, b -= 1, S = [], L = [];
1490
1490
  } else
1491
1491
  v.delete(N), ga(N, f, r), ze(e, N.prev, N.next), ze(e, N, _ === null ? e.first : _.next), ze(e, _, N), _ = N;
1492
1492
  continue;
1493
1493
  }
1494
- for (E = [], L = []; f !== null && f.k !== T; )
1494
+ for (S = [], L = []; f !== null && f.k !== T; )
1495
1495
  (a || !(f.e.f & ce)) && (v ?? (v = /* @__PURE__ */ new Set())).add(f), L.push(f), f = f.next;
1496
1496
  if (f === null)
1497
1497
  continue;
1498
1498
  N = f;
1499
1499
  }
1500
- E.push(N), _ = N, f = N.next;
1500
+ S.push(N), _ = N, f = N.next;
1501
1501
  }
1502
1502
  if (f !== null || v !== void 0) {
1503
1503
  for (var U = v === void 0 ? [] : Mi(v); f !== null; )
1504
1504
  (a || !(f.e.f & ce)) && U.push(f), f = f.next;
1505
- var R = U.length;
1506
- if (R > 0) {
1505
+ var F = U.length;
1506
+ if (F > 0) {
1507
1507
  var tt = i & Ja && u === 0 ? r : null;
1508
1508
  if (s) {
1509
- for (b = 0; b < R; b += 1)
1509
+ for (b = 0; b < F; b += 1)
1510
1510
  (xt = U[b].a) == null || xt.measure();
1511
- for (b = 0; b < R; b += 1)
1511
+ for (b = 0; b < F; b += 1)
1512
1512
  (X = U[b].a) == null || X.fix();
1513
1513
  }
1514
1514
  tu(e, U, tt, c);
@@ -1606,18 +1606,18 @@ function le(t) {
1606
1606
  if (!e) {
1607
1607
  if (e = !0, t.hasAttribute("value")) {
1608
1608
  var n = t.value;
1609
- B(t, "value", null), t.value = n;
1609
+ D(t, "value", null), t.value = n;
1610
1610
  }
1611
1611
  if (t.hasAttribute("checked")) {
1612
1612
  var i = t.checked;
1613
- B(t, "checked", null), t.checked = i;
1613
+ D(t, "checked", null), t.checked = i;
1614
1614
  }
1615
1615
  }
1616
1616
  };
1617
1617
  t.__on_r = r, Bl(r), Io();
1618
1618
  }
1619
1619
  }
1620
- function B(t, e, r, n) {
1620
+ function D(t, e, r, n) {
1621
1621
  var i = t.__attributes ?? (t.__attributes = {});
1622
1622
  ft && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || i[e] !== (i[e] = r) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[ml] = r), r == null ? t.removeAttribute(e) : typeof r != "string" && iu(t).includes(e) ? t[e] = r : t.setAttribute(e, r));
1623
1623
  }
@@ -1745,17 +1745,17 @@ function wa(t, e, r, n) {
1745
1745
  nt
1746
1746
  );
1747
1747
  if ((y.transitions ?? (y.transitions = [])).push(_), i && wi) {
1748
- var E = s;
1749
- if (!E) {
1748
+ var S = s;
1749
+ if (!S) {
1750
1750
  for (var L = (
1751
1751
  /** @type {Effect | null} */
1752
1752
  y.parent
1753
1753
  ); L && L.f & mr; )
1754
1754
  for (; (L = L.parent) && !(L.f & Rn); )
1755
1755
  ;
1756
- E = !L || (L.f & to) !== 0;
1756
+ S = !L || (L.f & to) !== 0;
1757
1757
  }
1758
- E && Jr(() => {
1758
+ S && Jr(() => {
1759
1759
  ve(() => _.in());
1760
1760
  });
1761
1761
  }
@@ -1766,8 +1766,8 @@ function ki(t, e, r, n, i) {
1766
1766
  var o, s = !1;
1767
1767
  return Gi(() => {
1768
1768
  if (!s) {
1769
- var E = e({ direction: a ? "in" : "out" });
1770
- o = ki(t, E, r, n, i);
1769
+ var S = e({ direction: a ? "in" : "out" });
1770
+ o = ki(t, S, r, n, i);
1771
1771
  }
1772
1772
  }), {
1773
1773
  abort: () => {
@@ -1793,29 +1793,29 @@ function ki(t, e, r, n, i) {
1793
1793
  }
1794
1794
  var _ = () => 1 - n, y = t.animate(f, { duration: l });
1795
1795
  return y.onfinish = () => {
1796
- var E = (r == null ? void 0 : r.t()) ?? 1 - n;
1796
+ var S = (r == null ? void 0 : r.t()) ?? 1 - n;
1797
1797
  r == null || r.abort();
1798
- var L = n - E, I = (
1798
+ var L = n - S, I = (
1799
1799
  /** @type {number} */
1800
1800
  e.duration * Math.abs(L)
1801
1801
  ), T = [];
1802
1802
  if (I > 0) {
1803
1803
  if (u)
1804
1804
  for (var N = Math.ceil(I / 16.666666666666668), b = 0; b <= N; b += 1) {
1805
- var k = E + L * d(b / N), x = u(k, 1 - k);
1805
+ var k = S + L * d(b / N), x = u(k, 1 - k);
1806
1806
  T.push(ya(x));
1807
1807
  }
1808
1808
  _ = () => {
1809
- var A = (
1809
+ var E = (
1810
1810
  /** @type {number} */
1811
1811
  /** @type {globalThis.Animation} */
1812
1812
  y.currentTime
1813
1813
  );
1814
- return E + L * d(A / I);
1814
+ return S + L * d(E / I);
1815
1815
  }, c && su(() => {
1816
1816
  if (y.playState !== "running") return !1;
1817
- var A = _();
1818
- return c(A, 1 - A), !0;
1817
+ var E = _();
1818
+ return c(E, 1 - E), !0;
1819
1819
  });
1820
1820
  }
1821
1821
  y = t.animate(T, { duration: I, fill: "forwards" }), y.onfinish = () => {
@@ -2050,7 +2050,7 @@ function re(t, e, r) {
2050
2050
  else {
2051
2051
  var i = !0;
2052
2052
  n.unsubscribe = Ro(t, (a) => {
2053
- i ? n.source.v = a : S(n.source, a);
2053
+ i ? n.source.v = a : A(n.source, a);
2054
2054
  }), i = !1;
2055
2055
  }
2056
2056
  return h(n.source);
@@ -2135,7 +2135,7 @@ function m(t, e, r, n) {
2135
2135
  t[e]
2136
2136
  )) : u = /** @type {V} */
2137
2137
  t[e];
2138
- var c = xe in t || Ri in t, d = ((x = we(t, e)) == null ? void 0 : x.set) ?? (c && o && e in t ? (A) => t[e] = A : void 0), f = (
2138
+ var c = xe in t || Ri in t, d = ((x = we(t, e)) == null ? void 0 : x.set) ?? (c && o && e in t ? (E) => t[e] = E : void 0), f = (
2139
2139
  /** @type {V} */
2140
2140
  n
2141
2141
  ), v = !0, _ = !1, y = () => (_ = !0, v && (v = !1, s ? f = ve(
@@ -2144,14 +2144,14 @@ function m(t, e, r, n) {
2144
2144
  ) : f = /** @type {V} */
2145
2145
  n), f);
2146
2146
  u === void 0 && n !== void 0 && (d && a && kl(), u = y(), d && d(u));
2147
- var E;
2147
+ var S;
2148
2148
  if (a)
2149
- E = () => {
2150
- var A = (
2149
+ S = () => {
2150
+ var E = (
2151
2151
  /** @type {V} */
2152
2152
  t[e]
2153
2153
  );
2154
- return A === void 0 ? y() : (v = !0, _ = !1, A);
2154
+ return E === void 0 ? y() : (v = !0, _ = !1, E);
2155
2155
  };
2156
2156
  else {
2157
2157
  var L = Sa(
@@ -2160,30 +2160,30 @@ function m(t, e, r, n) {
2160
2160
  t[e]
2161
2161
  ))
2162
2162
  );
2163
- L.f |= vl, E = () => {
2164
- var A = h(L);
2165
- return A !== void 0 && (f = /** @type {V} */
2166
- void 0), A === void 0 ? f : A;
2163
+ L.f |= vl, S = () => {
2164
+ var E = h(L);
2165
+ return E !== void 0 && (f = /** @type {V} */
2166
+ void 0), E === void 0 ? f : E;
2167
2167
  };
2168
2168
  }
2169
2169
  if (!(r & nl))
2170
- return E;
2170
+ return S;
2171
2171
  if (d) {
2172
2172
  var I = t.$$legacy;
2173
- return function(A, D) {
2174
- return arguments.length > 0 ? ((!a || !D || I || l) && d(D ? E() : A), A) : E();
2173
+ return function(E, H) {
2174
+ return arguments.length > 0 ? ((!a || !H || I || l) && d(H ? S() : E), E) : S();
2175
2175
  };
2176
2176
  }
2177
2177
  var T = !1, N = !1, b = /* @__PURE__ */ Yr(u), k = Sa(
2178
2178
  () => /* @__PURE__ */ ke(() => {
2179
- var A = E(), D = h(b);
2180
- return T ? (T = !1, N = !0, D) : (N = !1, b.v = A);
2179
+ var E = S(), H = h(b);
2180
+ return T ? (T = !1, N = !0, H) : (N = !1, b.v = E);
2181
2181
  })
2182
2182
  );
2183
- return i || (k.equals = Fi), function(A, D) {
2183
+ return i || (k.equals = Fi), function(E, H) {
2184
2184
  if (arguments.length > 0) {
2185
- const H = D ? h(k) : a && o ? M(A) : A;
2186
- return k.equals(H) || (T = !0, S(b, H), _ && f !== void 0 && (f = H), ve(() => h(k))), A;
2185
+ const B = H ? h(k) : a && o ? M(E) : E;
2186
+ return k.equals(B) || (T = !0, A(b, B), _ && f !== void 0 && (f = B), ve(() => h(k))), E;
2187
2187
  }
2188
2188
  return h(k);
2189
2189
  };
@@ -2218,7 +2218,7 @@ class yu {
2218
2218
  return s === Ri ? !0 : (h(r.get(s) ?? n(s, Reflect.get(o, s))), Reflect.has(o, s));
2219
2219
  },
2220
2220
  set(o, s, l) {
2221
- return S(r.get(s) ?? n(s, l), l), Reflect.set(o, s, l);
2221
+ return A(r.get(s) ?? n(s, l), l), Reflect.set(o, s, l);
2222
2222
  }
2223
2223
  }
2224
2224
  );
@@ -2282,25 +2282,25 @@ typeof HTMLElement == "function" && (Fo = class extends HTMLElement {
2282
2282
  constructor(e, r, n) {
2283
2283
  super();
2284
2284
  /** The Svelte component constructor */
2285
- F(this, "$$ctor");
2285
+ R(this, "$$ctor");
2286
2286
  /** Slots */
2287
- F(this, "$$s");
2287
+ R(this, "$$s");
2288
2288
  /** @type {any} The Svelte component instance */
2289
- F(this, "$$c");
2289
+ R(this, "$$c");
2290
2290
  /** Whether or not the custom element is connected */
2291
- F(this, "$$cn", !1);
2291
+ R(this, "$$cn", !1);
2292
2292
  /** @type {Record<string, any>} Component props data */
2293
- F(this, "$$d", {});
2293
+ R(this, "$$d", {});
2294
2294
  /** `true` if currently in the process of reflecting component props back to attributes */
2295
- F(this, "$$r", !1);
2295
+ R(this, "$$r", !1);
2296
2296
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
2297
- F(this, "$$p_d", {});
2297
+ R(this, "$$p_d", {});
2298
2298
  /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
2299
- F(this, "$$l", {});
2299
+ R(this, "$$l", {});
2300
2300
  /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
2301
- F(this, "$$l_u", /* @__PURE__ */ new Map());
2301
+ R(this, "$$l_u", /* @__PURE__ */ new Map());
2302
2302
  /** @type {any} The managed render effect for reflecting attributes */
2303
- F(this, "$$me");
2303
+ R(this, "$$me");
2304
2304
  this.$$ctor = e, this.$$s = r, n && this.attachShadow({ mode: "open" });
2305
2305
  }
2306
2306
  /**
@@ -2536,8 +2536,8 @@ function Fe(t, e, r) {
2536
2536
  }, v = i.map(
2537
2537
  (_, y) => Ro(
2538
2538
  _,
2539
- (E) => {
2540
- u[y] = E, c &= ~(1 << y), l && f();
2539
+ (S) => {
2540
+ u[y] = S, c &= ~(1 << y), l && f();
2541
2541
  },
2542
2542
  () => {
2543
2543
  c |= 1 << y;
@@ -2612,8 +2612,8 @@ function Uo(t, e) {
2612
2612
  throw Error("Invalid component object");
2613
2613
  if (!k || typeof k == "string" && (k.length < 1 || k.charAt(0) != "/" && k.charAt(0) != "*") || typeof k == "object" && !(k instanceof RegExp))
2614
2614
  throw Error('Invalid value for "path" argument - strings must start with / or *');
2615
- const { pattern: A, keys: D } = xu(k);
2616
- this.path = k, typeof x == "object" && x._sveltesparouter === !0 ? (this.component = x.component, this.conditions = x.conditions || [], this.userData = x.userData, this.props = x.props || {}) : (this.component = () => Promise.resolve(x), this.conditions = [], this.props = {}), this._pattern = A, this._keys = D;
2615
+ const { pattern: E, keys: H } = xu(k);
2616
+ this.path = k, typeof x == "object" && x._sveltesparouter === !0 ? (this.component = x.component, this.conditions = x.conditions || [], this.userData = x.userData, this.props = x.props || {}) : (this.component = () => Promise.resolve(x), this.conditions = [], this.props = {}), this._pattern = E, this._keys = H;
2617
2617
  }
2618
2618
  /**
2619
2619
  * Checks if `path` matches the current route.
@@ -2631,9 +2631,9 @@ function Uo(t, e) {
2631
2631
  else
2632
2632
  return null;
2633
2633
  else if (n() instanceof RegExp) {
2634
- const H = k.match(n());
2635
- if (H && H[0])
2636
- k = k.substr(H[0].length) || "/";
2634
+ const B = k.match(n());
2635
+ if (B && B[0])
2636
+ k = k.substr(B[0].length) || "/";
2637
2637
  else
2638
2638
  return null;
2639
2639
  }
@@ -2643,17 +2643,17 @@ function Uo(t, e) {
2643
2643
  return null;
2644
2644
  if (this._keys === !1)
2645
2645
  return x;
2646
- const A = {};
2647
- let D = 0;
2648
- for (; D < this._keys.length; ) {
2646
+ const E = {};
2647
+ let H = 0;
2648
+ for (; H < this._keys.length; ) {
2649
2649
  try {
2650
- A[this._keys[D]] = decodeURIComponent(x[D + 1] || "") || null;
2650
+ E[this._keys[H]] = decodeURIComponent(x[H + 1] || "") || null;
2651
2651
  } catch {
2652
- A[this._keys[D]] = null;
2652
+ E[this._keys[H]] = null;
2653
2653
  }
2654
- D++;
2654
+ H++;
2655
2655
  }
2656
- return A;
2656
+ return E;
2657
2657
  }
2658
2658
  /**
2659
2659
  * Dictionary with route details passed to the pre-conditions functions, as well as the `routeLoading`, `routeLoaded` and `conditionsFailed` events
@@ -2696,7 +2696,7 @@ function Uo(t, e) {
2696
2696
  Eu(f);
2697
2697
  }));
2698
2698
  let _ = null, y = null;
2699
- const E = Ji.subscribe(async (b) => {
2699
+ const S = Ji.subscribe(async (b) => {
2700
2700
  _ = b;
2701
2701
  let k = 0;
2702
2702
  for (; k < o.length; ) {
@@ -2705,31 +2705,31 @@ function Uo(t, e) {
2705
2705
  k++;
2706
2706
  continue;
2707
2707
  }
2708
- const A = {
2708
+ const E = {
2709
2709
  route: o[k].path,
2710
2710
  location: b.location,
2711
2711
  querystring: b.querystring,
2712
2712
  userData: o[k].userData,
2713
2713
  params: x && typeof x == "object" && Object.keys(x).length ? x : null
2714
2714
  };
2715
- if (!await o[k].checkConditions(A)) {
2716
- S(s, null), y = null, d("conditionsFailed", A);
2715
+ if (!await o[k].checkConditions(E)) {
2716
+ A(s, null), y = null, d("conditionsFailed", E);
2717
2717
  return;
2718
2718
  }
2719
- d("routeLoading", Object.assign({}, A));
2720
- const D = o[k].component;
2721
- if (y != D) {
2722
- D.loading ? (S(s, D.loading), y = D, S(l, D.loadingParams), S(u, {}), d("routeLoaded", Object.assign({}, A, {
2719
+ d("routeLoading", Object.assign({}, E));
2720
+ const H = o[k].component;
2721
+ if (y != H) {
2722
+ H.loading ? (A(s, H.loading), y = H, A(l, H.loadingParams), A(u, {}), d("routeLoaded", Object.assign({}, E, {
2723
2723
  component: h(s),
2724
2724
  name: h(s).name,
2725
2725
  params: h(l)
2726
- }))) : (S(s, null), y = null);
2727
- const H = await D();
2726
+ }))) : (A(s, null), y = null);
2727
+ const B = await H();
2728
2728
  if (b != _)
2729
2729
  return;
2730
- S(s, H && H.default || H), y = D;
2730
+ A(s, B && B.default || B), y = H;
2731
2731
  }
2732
- x && typeof x == "object" && Object.keys(x).length ? S(l, x) : S(l, null), S(u, o[k].props), d("routeLoaded", Object.assign({}, A, {
2732
+ x && typeof x == "object" && Object.keys(x).length ? A(l, x) : A(l, null), A(u, o[k].props), d("routeLoaded", Object.assign({}, E, {
2733
2733
  component: h(s),
2734
2734
  name: h(s).name,
2735
2735
  params: h(l)
@@ -2738,10 +2738,10 @@ function Uo(t, e) {
2738
2738
  });
2739
2739
  return;
2740
2740
  }
2741
- S(s, null), y = null, Ta.set(void 0);
2741
+ A(s, null), y = null, Ta.set(void 0);
2742
2742
  });
2743
2743
  hu(() => {
2744
- E(), v && window.removeEventListener("popstate", v);
2744
+ S(), v && window.removeEventListener("popstate", v);
2745
2745
  }), Zr(
2746
2746
  () => wr(i()),
2747
2747
  () => {
@@ -2752,8 +2752,8 @@ function Uo(t, e) {
2752
2752
  {
2753
2753
  var T = (b) => {
2754
2754
  var k = je(), x = Lt(k);
2755
- ba(x, () => h(s), (A, D) => {
2756
- D(A, Ea(
2755
+ ba(x, () => h(s), (E, H) => {
2756
+ H(E, Ea(
2757
2757
  {
2758
2758
  get params() {
2759
2759
  return h(l);
@@ -2762,8 +2762,8 @@ function Uo(t, e) {
2762
2762
  () => h(u),
2763
2763
  {
2764
2764
  $$events: {
2765
- routeEvent(H) {
2766
- ka.call(this, e, H);
2765
+ routeEvent(B) {
2766
+ ka.call(this, e, B);
2767
2767
  }
2768
2768
  }
2769
2769
  }
@@ -2771,11 +2771,11 @@ function Uo(t, e) {
2771
2771
  }), C(b, k);
2772
2772
  }, N = (b) => {
2773
2773
  var k = je(), x = Lt(k);
2774
- ba(x, () => h(s), (A, D) => {
2775
- D(A, Ea(() => h(u), {
2774
+ ba(x, () => h(s), (E, H) => {
2775
+ H(E, Ea(() => h(u), {
2776
2776
  $$events: {
2777
- routeEvent(H) {
2778
- ka.call(this, e, H);
2777
+ routeEvent(B) {
2778
+ ka.call(this, e, B);
2779
2779
  }
2780
2780
  }
2781
2781
  }));
@@ -5094,18 +5094,18 @@ var yc = (
5094
5094
  return _;
5095
5095
  var y = st(i, this.clonePosition());
5096
5096
  if (u && La(u == null ? void 0 : u.style, "::", 0)) {
5097
- var E = bc(u.style.slice(2));
5097
+ var S = bc(u.style.slice(2));
5098
5098
  if (s === "number") {
5099
- var d = this.parseNumberSkeletonFromString(E, u.styleLocation);
5099
+ var d = this.parseNumberSkeletonFromString(S, u.styleLocation);
5100
5100
  return d.err ? d : {
5101
5101
  val: { type: Et.number, value: n, location: y, style: d.val },
5102
5102
  err: null
5103
5103
  };
5104
5104
  } else {
5105
- if (E.length === 0)
5105
+ if (S.length === 0)
5106
5106
  return this.error(ot.EXPECT_DATE_TIME_SKELETON, y);
5107
- var L = E;
5108
- this.locale && (L = ac(E, this.locale));
5107
+ var L = S;
5108
+ this.locale && (L = ac(S, this.locale));
5109
5109
  var f = {
5110
5110
  type: cr.dateTime,
5111
5111
  pattern: L,
@@ -5486,10 +5486,10 @@ function pn(t, e, r, n, i, a, o) {
5486
5486
  continue;
5487
5487
  }
5488
5488
  if (Qo(c)) {
5489
- var _ = c.children, y = c.value, E = i[y];
5490
- if (!Cc(E))
5489
+ var _ = c.children, y = c.value, S = i[y];
5490
+ if (!Cc(S))
5491
5491
  throw new Sc(y, "function", o);
5492
- var L = pn(_, e, r, n, i, a), I = E(L.map(function(b) {
5492
+ var L = pn(_, e, r, n, i, a), I = S(L.map(function(b) {
5493
5493
  return b.value;
5494
5494
  }));
5495
5495
  Array.isArray(I) || (I = [I]), s.push.apply(s, I.map(function(b) {
@@ -6045,11 +6045,11 @@ function vs(t, e) {
6045
6045
  Q(vs, {}, [], [], !0);
6046
6046
  class $r {
6047
6047
  constructor(e, r, n, i = [], a) {
6048
- F(this, "ID");
6049
- F(this, "opId");
6050
- F(this, "companyId");
6051
- F(this, "level");
6052
- F(this, "plans");
6048
+ R(this, "ID");
6049
+ R(this, "opId");
6050
+ R(this, "companyId");
6051
+ R(this, "level");
6052
+ R(this, "plans");
6053
6053
  this.opId = e, this.companyId = r, this.plans = i, this.level = n, this.ID = a;
6054
6054
  }
6055
6055
  getLevel(e) {
@@ -6101,9 +6101,9 @@ class $r {
6101
6101
  }
6102
6102
  class Nn {
6103
6103
  constructor(e, r, n) {
6104
- F(this, "planName");
6105
- F(this, "moduleId");
6106
- F(this, "level");
6104
+ R(this, "planName");
6105
+ R(this, "moduleId");
6106
+ R(this, "level");
6107
6107
  this.planName = e, this.moduleId = r, this.level = n;
6108
6108
  }
6109
6109
  isAdmin() {
@@ -6184,7 +6184,7 @@ const di = (t) => {
6184
6184
  });
6185
6185
  }
6186
6186
  };
6187
- F(nr, "URL");
6187
+ R(nr, "URL");
6188
6188
  let se = nr;
6189
6189
  class ps extends se {
6190
6190
  static async login() {
@@ -6373,19 +6373,19 @@ function ms(t, e) {
6373
6373
  let n = Y("");
6374
6374
  Ze(() => {
6375
6375
  const y = window.location.href.split("error=")[1].replaceAll("%20", " ");
6376
- y && S(n, M(y));
6376
+ y && A(n, M(y));
6377
6377
  });
6378
6378
  let i = Y("");
6379
6379
  ps.login().then((y) => {
6380
- S(i, "success"), ku("/");
6380
+ A(i, "success"), ku("/");
6381
6381
  }).catch((y) => {
6382
- S(i, "error " + y);
6382
+ A(i, "error " + y);
6383
6383
  });
6384
6384
  var a = Gd(), o = P(w(a), 2), s = w(o);
6385
6385
  {
6386
6386
  var l = (y) => {
6387
- var E = Fd(), L = w(E, !0);
6388
- g(E), z(() => at(L, h(n))), C(y, E);
6387
+ var S = Fd(), L = w(S, !0);
6388
+ g(S), z(() => at(L, h(n))), C(y, S);
6389
6389
  };
6390
6390
  ut(s, (y) => {
6391
6391
  h(n) && y(l);
@@ -6395,14 +6395,14 @@ function ms(t, e) {
6395
6395
  var u = P(o, 2), c = w(u);
6396
6396
  {
6397
6397
  var d = (y) => {
6398
- var E = Ud();
6399
- Ct(E, 21, () => r, Tt, (L, I) => {
6398
+ var S = Ud();
6399
+ Ct(S, 21, () => r, Tt, (L, I) => {
6400
6400
  var T = $d(), N = w(T, !0);
6401
6401
  g(T), z(() => at(N, h(I))), C(L, T);
6402
- }), g(E), C(y, E);
6402
+ }), g(S), C(y, S);
6403
6403
  }, f = (y) => {
6404
- var E = qd();
6405
- C(y, E);
6404
+ var S = qd();
6405
+ C(y, S);
6406
6406
  };
6407
6407
  ut(c, (y) => {
6408
6408
  Array.isArray(r) && r.length > 0 ? y(d) : y(f, !1);
@@ -6425,16 +6425,16 @@ function $a(t, { delay: e = 0, duration: r = 400, easing: n = Yd } = {}) {
6425
6425
  }
6426
6426
  class Pr {
6427
6427
  constructor(e, r, n, i, a, o, s) {
6428
- F(this, "_id", "");
6429
- F(this, "path", "");
6430
- F(this, "name");
6431
- F(this, "userId");
6432
- F(this, "companyId");
6433
- F(this, "isPrivate");
6434
- F(this, "isTemplate");
6435
- F(this, "tags", []);
6436
- F(this, "createdAt");
6437
- F(this, "updatedAt");
6428
+ R(this, "_id", "");
6429
+ R(this, "path", "");
6430
+ R(this, "name");
6431
+ R(this, "userId");
6432
+ R(this, "companyId");
6433
+ R(this, "isPrivate");
6434
+ R(this, "isTemplate");
6435
+ R(this, "tags", []);
6436
+ R(this, "createdAt");
6437
+ R(this, "updatedAt");
6438
6438
  this._id = e, this.path = r, this.name = n, this.userId = i, this.companyId = a, this.isPrivate = o, this.isTemplate = s, this.createdAt = Date.now(), this.updatedAt = Date.now();
6439
6439
  }
6440
6440
  static fromJSON(e) {
@@ -6478,7 +6478,7 @@ function ta(t, e) {
6478
6478
  let r = m(e, "color", 7, "none"), n = m(e, "width", 7, "320"), i = m(e, "height", 7, "440");
6479
6479
  var a = Xd(), o = w(a), s = P(o);
6480
6480
  return $i(3), g(a), z(() => {
6481
- B(a, "width", n()), B(a, "height", i()), B(o, "fill", r() === "none" ? "#3888FF" : r()), B(s, "fill", r() === "none" ? "#3888FF" : r());
6481
+ D(a, "width", n()), D(a, "height", i()), D(o, "fill", r() === "none" ? "#3888FF" : r()), D(s, "fill", r() === "none" ? "#3888FF" : r());
6482
6482
  }), C(t, a), W({
6483
6483
  get color() {
6484
6484
  return r();
@@ -6503,9 +6503,9 @@ function ta(t, e) {
6503
6503
  Q(ta, { color: {}, width: {}, height: {} }, [], [], !0);
6504
6504
  class zn {
6505
6505
  constructor(e, r, n) {
6506
- F(this, "labels");
6507
- F(this, "datasets");
6508
- F(this, "chartType");
6506
+ R(this, "labels");
6507
+ R(this, "datasets");
6508
+ R(this, "chartType");
6509
6509
  this.labels = e, this.datasets = r, this.chartType = n;
6510
6510
  }
6511
6511
  static fromJson(e) {
@@ -6532,8 +6532,8 @@ class zn {
6532
6532
  }
6533
6533
  class or {
6534
6534
  constructor(e, r) {
6535
- F(this, "data");
6536
- F(this, "backgroundColor");
6535
+ R(this, "data");
6536
+ R(this, "backgroundColor");
6537
6537
  this.data = e, this.backgroundColor = r;
6538
6538
  }
6539
6539
  static fromJson(e) {
@@ -6558,7 +6558,7 @@ class or {
6558
6558
  const Jd = (t) => t.text != null ? Ur.fromJSON(t) : t.data != null ? In.fromJSON(t) : t.chart && t.chart.labels != null ? On.fromJSON(t) : t.url != null ? Ln.fromJSON(t) : new De(t.index);
6559
6559
  class De {
6560
6560
  constructor(e) {
6561
- F(this, "Index");
6561
+ R(this, "Index");
6562
6562
  this.Index = e;
6563
6563
  }
6564
6564
  toJSON() {
@@ -6585,7 +6585,7 @@ class De {
6585
6585
  class Ur extends De {
6586
6586
  constructor(r, n) {
6587
6587
  super(r);
6588
- F(this, "Text");
6588
+ R(this, "Text");
6589
6589
  this.Text = n;
6590
6590
  }
6591
6591
  toJSON() {
@@ -6613,8 +6613,8 @@ class Ur extends De {
6613
6613
  class In extends De {
6614
6614
  constructor(r, n) {
6615
6615
  super(r);
6616
- F(this, "data");
6617
- F(this, "classes");
6616
+ R(this, "data");
6617
+ R(this, "classes");
6618
6618
  this.data = n, this.classes = [];
6619
6619
  }
6620
6620
  toJSON() {
@@ -6654,7 +6654,7 @@ class In extends De {
6654
6654
  class On extends De {
6655
6655
  constructor(r, n) {
6656
6656
  super(r);
6657
- F(this, "Chart");
6657
+ R(this, "Chart");
6658
6658
  this.Chart = n;
6659
6659
  }
6660
6660
  toJSON() {
@@ -6690,7 +6690,7 @@ class On extends De {
6690
6690
  class Ln extends De {
6691
6691
  constructor(r, n) {
6692
6692
  super(r);
6693
- F(this, "Url");
6693
+ R(this, "Url");
6694
6694
  this.Url = n;
6695
6695
  }
6696
6696
  toJSON() {
@@ -6717,16 +6717,16 @@ class Ln extends De {
6717
6717
  }
6718
6718
  class Pn {
6719
6719
  constructor(e, r, n, i, a, o, s, l, u = [], c = "it_IT") {
6720
- F(this, "_id");
6721
- F(this, "documentId");
6722
- F(this, "number");
6723
- F(this, "confirmed");
6724
- F(this, "paragraphs");
6725
- F(this, "defaultFirstPage");
6726
- F(this, "segnaposto");
6727
- F(this, "updatedAt");
6728
- F(this, "createdAt");
6729
- F(this, "language");
6720
+ R(this, "_id");
6721
+ R(this, "documentId");
6722
+ R(this, "number");
6723
+ R(this, "confirmed");
6724
+ R(this, "paragraphs");
6725
+ R(this, "defaultFirstPage");
6726
+ R(this, "segnaposto");
6727
+ R(this, "updatedAt");
6728
+ R(this, "createdAt");
6729
+ R(this, "language");
6730
6730
  this._id = l ?? "", this.documentId = n, this.number = e, this.confirmed = r, this.paragraphs = i, this.defaultFirstPage = a, this.segnaposto = u, this.updatedAt = o, this.createdAt = s, this.language = c;
6731
6731
  }
6732
6732
  toJSON() {
@@ -6793,16 +6793,16 @@ class Pn {
6793
6793
  }
6794
6794
  class Ie {
6795
6795
  constructor(e, r, n, i, a, o, s, l) {
6796
- F(this, "id");
6797
- F(this, "indexes");
6798
- F(this, "title");
6799
- F(this, "validated");
6800
- F(this, "column");
6801
- F(this, "children");
6802
- F(this, "lastUpdateUserId");
6803
- F(this, "updatedAt");
6804
- F(this, "classes");
6805
- F(this, "lastIndex", () => this.indexes.length === 1 ? this.indexes[0] : this.indexes[this.indexes.length - 1]);
6796
+ R(this, "id");
6797
+ R(this, "indexes");
6798
+ R(this, "title");
6799
+ R(this, "validated");
6800
+ R(this, "column");
6801
+ R(this, "children");
6802
+ R(this, "lastUpdateUserId");
6803
+ R(this, "updatedAt");
6804
+ R(this, "classes");
6805
+ R(this, "lastIndex", () => this.indexes.length === 1 ? this.indexes[0] : this.indexes[this.indexes.length - 1]);
6806
6806
  this.id = e, this.indexes = r, this.title = n, this.column = a, this.children = o, this.validated = i, this.lastUpdateUserId = s, this.updatedAt = l;
6807
6807
  }
6808
6808
  toJSON() {
@@ -6870,13 +6870,14 @@ class Ie {
6870
6870
  }
6871
6871
  }
6872
6872
  class ea {
6873
- constructor(e, r, n = "", i = "", a) {
6874
- F(this, "id");
6875
- F(this, "nome");
6876
- F(this, "domanda");
6877
- F(this, "idSuite");
6878
- F(this, "valore");
6879
- this.id = e, this.nome = r, this.domanda = n, this.idSuite = i, this.valore = a;
6873
+ constructor(e, r, n = "", i = "", a = "", o = !1) {
6874
+ R(this, "id");
6875
+ R(this, "nome");
6876
+ R(this, "domanda");
6877
+ R(this, "idSuite");
6878
+ R(this, "valore");
6879
+ R(this, "addToFilename", !1);
6880
+ this.id = e, this.nome = r, this.domanda = n, this.idSuite = i, this.valore = a, this.addToFilename = o;
6880
6881
  }
6881
6882
  toJSON() {
6882
6883
  return {
@@ -6884,7 +6885,8 @@ class ea {
6884
6885
  nome: this.nome,
6885
6886
  domanda: this.domanda,
6886
6887
  idSuite: this.idSuite,
6887
- valore: this.valore
6888
+ valore: this.valore,
6889
+ addToFilename: this.addToFilename
6888
6890
  };
6889
6891
  }
6890
6892
  static fromJSON(e) {
@@ -6893,7 +6895,8 @@ class ea {
6893
6895
  e.nome,
6894
6896
  e.domanda,
6895
6897
  e.idSuite,
6896
- e.valore
6898
+ e.valore,
6899
+ e.addToFilename ?? !1
6897
6900
  );
6898
6901
  }
6899
6902
  }
@@ -6970,7 +6973,7 @@ class Se extends se {
6970
6973
  }
6971
6974
  }
6972
6975
  var Zd = (t, e) => e(!1), Wd = (t, e, r, n) => {
6973
- S(e, M(h(r).number)), n(h(r)._id);
6976
+ A(e, M(h(r).number)), n(h(r)._id);
6974
6977
  }, Qd = /* @__PURE__ */ O('<i class="fa-solid fa-check pe-1" style="color: green;"></i>'), Kd = /* @__PURE__ */ O('<i class="fa-solid fa-pen-to-square"></i>'), tf = /* @__PURE__ */ O('<button class="version-button svelte-fggkup"><div class="logo svelte-fggkup"><!></div> <span class="version-name"> </span> <!></button>'), ef = /* @__PURE__ */ O('<div class="new-version svelte-fggkup"><button class="btn btn-primary svelte-fggkup"><i class="fa-solid fa-plus"></i> </button></div>'), rf = /* @__PURE__ */ O('<div class="modal-body d-flex flex-column gap-2"></div> <div class="modal-footer"><!></div>', 1), nf = (t, e, r) => e(h(r).language), af = /* @__PURE__ */ O('<i class="fa-solid fa-check pe-1" style="color: green;"></i>'), of = /* @__PURE__ */ O('<i class="fa-solid fa-pen-to-square"></i>'), sf = /* @__PURE__ */ O('<div class="d-flex flex-column gap-2"><button class="version-button svelte-fggkup"> <!></button></div>'), lf = /* @__PURE__ */ O('<div class="modal-body d-flex flex-column gap-2"></div>'), uf = /* @__PURE__ */ O('<div class="modal-backdrop show"></div>'), cf = /* @__PURE__ */ O('<div class="modal show" id="ModalBase" tabindex="-1" aria-modal="true" role="dialog"><div class="modal-dialog custom-modal svelte-fggkup"><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></div></div> <!>', 1);
6975
6978
  const df = {
6976
6979
  hash: "svelte-fggkup",
@@ -6980,7 +6983,7 @@ function gs(t, e) {
6980
6983
  Z(e, !0), et(t, df);
6981
6984
  const r = ne(), n = () => re(pe, "$_", r);
6982
6985
  let i = m(e, "showVersionsDialog", 15), a = m(e, "versions", 15), o = m(e, "openEditor", 7), s = m(e, "addNewVersion", 7);
6983
- const l = (H) => {
6986
+ const l = (B) => {
6984
6987
  const U = {
6985
6988
  year: "numeric",
6986
6989
  month: "2-digit",
@@ -6990,38 +6993,38 @@ function gs(t, e) {
6990
6993
  hour12: !1,
6991
6994
  timeZone: "Europe/Rome"
6992
6995
  };
6993
- return new Intl.DateTimeFormat("it-IT", U).format(H).replace(",", "");
6996
+ return new Intl.DateTimeFormat("it-IT", U).format(B).replace(",", "");
6994
6997
  };
6995
- let u = a().filter((H, U, R) => R.findIndex((tt) => tt.number === H.number) === U), c = Y(0), d = Y(-1), f = (H = "it_IT") => {
6998
+ let u = a().filter((B, U, F) => F.findIndex((tt) => tt.number === B.number) === U), c = Y(0), d = Y(-1), f = (B = "it_IT") => {
6996
6999
  let U;
6997
7000
  switch (h(c)) {
6998
7001
  case 0:
6999
- if (U = a().filter((R) => R.number === h(d)), U.length == 1) {
7002
+ if (U = a().filter((F) => F.number === h(d)), U.length == 1) {
7000
7003
  o()(U[0]._id);
7001
7004
  return;
7002
7005
  } else {
7003
- S(c, 1);
7006
+ A(c, 1);
7004
7007
  return;
7005
7008
  }
7006
7009
  case 1:
7007
- if (U = a().filter((R) => R.number === h(d) && (R.language === H || R.language == null)), U.length == 1) {
7010
+ if (U = a().filter((F) => F.number === h(d) && (F.language === B || F.language == null)), U.length == 1) {
7008
7011
  o()(U[0]._id);
7009
7012
  return;
7010
7013
  } else {
7011
- S(c, 0);
7014
+ A(c, 0);
7012
7015
  return;
7013
7016
  }
7014
7017
  }
7015
7018
  };
7016
- var v = cf(), _ = Lt(v), y = w(_), E = w(y), L = w(E), I = w(L), T = w(I, !0);
7019
+ var v = cf(), _ = Lt(v), y = w(_), S = w(y), L = w(S), I = w(L), T = w(I, !0);
7017
7020
  z(() => at(T, n()("versions"))), g(I);
7018
7021
  var N = P(I, 2);
7019
7022
  N.__click = [Zd, i], g(L);
7020
7023
  var b = P(L, 2);
7021
7024
  {
7022
- var k = (H) => {
7023
- var U = rf(), R = Lt(U);
7024
- Ct(R, 21, () => u, Tt, (xt, X) => {
7025
+ var k = (B) => {
7026
+ var U = rf(), F = Lt(U);
7027
+ Ct(F, 21, () => u, Tt, (xt, X) => {
7025
7028
  var V = tf();
7026
7029
  V.__click = [
7027
7030
  Wd,
@@ -7051,8 +7054,8 @@ function gs(t, e) {
7051
7054
  });
7052
7055
  }
7053
7056
  g(V), C(xt, V);
7054
- }), g(R);
7055
- var tt = P(R, 2), it = w(tt);
7057
+ }), g(F);
7058
+ var tt = P(F, 2), it = w(tt);
7056
7059
  {
7057
7060
  var dt = (xt) => {
7058
7061
  var X = ef(), V = w(X);
@@ -7067,9 +7070,9 @@ function gs(t, e) {
7067
7070
  u[u.length - 1].confirmed && xt(dt);
7068
7071
  });
7069
7072
  }
7070
- g(tt), C(H, U);
7071
- }, x = (H) => {
7072
- var U = je(), R = Lt(U);
7073
+ g(tt), C(B, U);
7074
+ }, x = (B) => {
7075
+ var U = je(), F = Lt(U);
7073
7076
  {
7074
7077
  var tt = (it) => {
7075
7078
  var dt = lf();
@@ -7102,54 +7105,54 @@ function gs(t, e) {
7102
7105
  }), g(dt), C(it, dt);
7103
7106
  };
7104
7107
  ut(
7105
- R,
7108
+ F,
7106
7109
  (it) => {
7107
7110
  h(c) == 1 && it(tt);
7108
7111
  },
7109
7112
  !0
7110
7113
  );
7111
7114
  }
7112
- C(H, U);
7115
+ C(B, U);
7113
7116
  };
7114
- ut(b, (H) => {
7115
- h(c) == 0 ? H(k) : H(x, !1);
7117
+ ut(b, (B) => {
7118
+ h(c) == 0 ? B(k) : B(x, !1);
7116
7119
  });
7117
7120
  }
7118
- g(E), g(y), g(_);
7119
- var A = P(_, 2);
7121
+ g(S), g(y), g(_);
7122
+ var E = P(_, 2);
7120
7123
  {
7121
- var D = (H) => {
7124
+ var H = (B) => {
7122
7125
  var U = uf();
7123
- C(H, U);
7126
+ C(B, U);
7124
7127
  };
7125
- ut(A, (H) => {
7126
- i() && H(D);
7128
+ ut(E, (B) => {
7129
+ i() && B(H);
7127
7130
  });
7128
7131
  }
7129
- return z(() => B(_, "style", `display: ${(i() ? "block" : "none") ?? ""};`)), C(t, v), W({
7132
+ return z(() => D(_, "style", `display: ${(i() ? "block" : "none") ?? ""};`)), C(t, v), W({
7130
7133
  get showVersionsDialog() {
7131
7134
  return i();
7132
7135
  },
7133
- set showVersionsDialog(H) {
7134
- i(H), p();
7136
+ set showVersionsDialog(B) {
7137
+ i(B), p();
7135
7138
  },
7136
7139
  get versions() {
7137
7140
  return a();
7138
7141
  },
7139
- set versions(H) {
7140
- a(H), p();
7142
+ set versions(B) {
7143
+ a(B), p();
7141
7144
  },
7142
7145
  get openEditor() {
7143
7146
  return o();
7144
7147
  },
7145
- set openEditor(H) {
7146
- o(H), p();
7148
+ set openEditor(B) {
7149
+ o(B), p();
7147
7150
  },
7148
7151
  get addNewVersion() {
7149
7152
  return s();
7150
7153
  },
7151
- set addNewVersion(H) {
7152
- s(H), p();
7154
+ set addNewVersion(B) {
7155
+ s(B), p();
7153
7156
  }
7154
7157
  });
7155
7158
  }
@@ -7185,7 +7188,7 @@ function rn(t, e) {
7185
7188
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.75s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
7186
7189
  var s = ff();
7187
7190
  return z(() => {
7188
- B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`), ct(s, "pause-animation", o());
7191
+ D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`), ct(s, "pause-animation", o());
7189
7192
  }), C(t, s), W({
7190
7193
  get color() {
7191
7194
  return r();
@@ -7257,7 +7260,7 @@ function mf(t, e) {
7257
7260
  let r = m(e, "size", 12, "60"), n = m(e, "unit", 12, "px"), i = m(e, "pause", 12, !1), a = m(e, "colorOuter", 12, "#FF3E00"), o = m(e, "colorCenter", 12, "#40B3FF"), s = m(e, "colorInner", 12, "#676778"), l = m(e, "durationMultiplier", 12, 1), u = m(e, "durationOuter", 28, () => `${l() * 2}s`), c = m(e, "durationInner", 28, () => `${l() * 1.5}s`), d = m(e, "durationCenter", 28, () => `${l() * 3}s`);
7258
7261
  var f = vf();
7259
7262
  return z(() => {
7260
- B(f, "style", `--size: ${r() ?? ""}${n() ?? ""}; --colorInner: ${s() ?? ""}; --colorCenter: ${o() ?? ""}; --colorOuter: ${a() ?? ""}; --durationInner: ${c() ?? ""}; --durationCenter: ${d() ?? ""}; --durationOuter: ${u() ?? ""};`), ct(f, "pause-animation", i());
7263
+ D(f, "style", `--size: ${r() ?? ""}${n() ?? ""}; --colorInner: ${s() ?? ""}; --colorCenter: ${o() ?? ""}; --colorOuter: ${a() ?? ""}; --durationInner: ${c() ?? ""}; --durationCenter: ${d() ?? ""}; --durationOuter: ${u() ?? ""};`), ct(f, "pause-animation", i());
7261
7264
  }), C(t, f), W({
7262
7265
  get size() {
7263
7266
  return r();
@@ -7376,13 +7379,13 @@ function _f(t, e) {
7376
7379
  let r = m(e, "size", 12, "60"), n = m(e, "unit", 12, "px"), i = m(e, "pause", 12, !1), a = m(e, "ballTopLeft", 12, "#FF3E00"), o = m(e, "ballTopRight", 12, "#F8B334"), s = m(e, "ballBottomLeft", 12, "#40B3FF"), l = m(e, "ballBottomRight", 12, "#676778"), u = m(e, "duration", 12, "1.5s");
7377
7380
  var c = gf(), d = w(c), f = w(d), v = w(f), _ = w(v);
7378
7381
  g(v);
7379
- var y = P(v, 2), E = w(y);
7382
+ var y = P(v, 2), S = w(y);
7380
7383
  g(y);
7381
7384
  var L = P(y, 2), I = w(L);
7382
7385
  g(L);
7383
7386
  var T = P(L, 2), N = w(T);
7384
7387
  return g(T), g(f), g(d), g(c), z(() => {
7385
- B(c, "style", `--size: ${r() ?? ""}${n() ?? ""}; --floatSize: ${r() ?? ""}; --ballTopLeftColor: ${a() ?? ""}; --ballTopRightColor: ${o() ?? ""}; --ballBottomLeftColor: ${s() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${u() ?? ""};`), ct(f, "pause-animation", i()), ct(_, "pause-animation", i()), ct(E, "pause-animation", i()), ct(I, "pause-animation", i()), ct(N, "pause-animation", i());
7388
+ D(c, "style", `--size: ${r() ?? ""}${n() ?? ""}; --floatSize: ${r() ?? ""}; --ballTopLeftColor: ${a() ?? ""}; --ballTopRightColor: ${o() ?? ""}; --ballBottomLeftColor: ${s() ?? ""}; --ballBottomRightColor: ${l() ?? ""}; --duration: ${u() ?? ""};`), ct(f, "pause-animation", i()), ct(_, "pause-animation", i()), ct(S, "pause-animation", i()), ct(I, "pause-animation", i()), ct(N, "pause-animation", i());
7386
7389
  }), C(t, c), W({
7387
7390
  get size() {
7388
7391
  return r();
@@ -7483,9 +7486,9 @@ function kf(t, e) {
7483
7486
  return Ct(u, 5, () => ie(2, 1), Tt, (d, f) => {
7484
7487
  var v = yf();
7485
7488
  z(() => {
7486
- B(v, "style", `animation: ${i() ?? ""} ${(h(f) === 1 ? `${(+l - 0.1) / 2}${s}` : "0s") ?? ""} infinite ease-in-out`), ct(v, "pause-animation", o());
7489
+ D(v, "style", `animation: ${i() ?? ""} ${(h(f) === 1 ? `${(+l - 0.1) / 2}${s}` : "0s") ?? ""} infinite ease-in-out`), ct(v, "pause-animation", o());
7487
7490
  }), C(d, v);
7488
- }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}`)), C(t, u), W({
7491
+ }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}`)), C(t, u), W({
7489
7492
  get color() {
7490
7493
  return r();
7491
7494
  },
@@ -7709,14 +7712,14 @@ function Af(t, e) {
7709
7712
  const r = Ge();
7710
7713
  let n = m(e, "size", 12, "40px"), i = m(e, "duration", 12, "3s"), a = m(e, "pause", 12, !1);
7711
7714
  Zr(() => wr(n()), () => {
7712
- S(r, [
7715
+ A(r, [
7713
7716
  `width: ${n()}`,
7714
7717
  `height: ${n()}`
7715
7718
  ].join(";"));
7716
7719
  }), Wr(), Mt();
7717
7720
  var o = Ef();
7718
7721
  return z(() => {
7719
- B(o, "style", `--duration: ${i() ?? ""}; ${h(r) ?? ""}`), ct(o, "pause-animation", a());
7722
+ D(o, "style", `--duration: ${i() ?? ""}; ${h(r) ?? ""}`), ct(o, "pause-animation", a());
7720
7723
  }), C(t, o), W({
7721
7724
  get size() {
7722
7725
  return n();
@@ -7759,7 +7762,7 @@ function Nf(t, e) {
7759
7762
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
7760
7763
  var s = Tf(), l = w(s);
7761
7764
  return g(s), z(() => {
7762
- B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
7765
+ D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
7763
7766
  }), C(t, s), W({
7764
7767
  get color() {
7765
7768
  return r();
@@ -7872,7 +7875,7 @@ function Of(t, e) {
7872
7875
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "4s"), a = m(e, "size", 12, "60"), o = m(e, "stroke", 28, () => +a() / 12 + n()), s = m(e, "pause", 12, !1);
7873
7876
  var l = zf(), u = w(l);
7874
7877
  return g(l), z(() => {
7875
- B(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --stroke: ${o() ?? ""}; --floatSize: ${a() ?? ""}; --duration: ${i() ?? ""}`), ct(u, "pause-animation", s());
7878
+ D(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --stroke: ${o() ?? ""}; --floatSize: ${a() ?? ""}; --duration: ${i() ?? ""}`), ct(u, "pause-animation", s());
7876
7879
  }), C(t, l), W({
7877
7880
  get color() {
7878
7881
  return r();
@@ -7951,9 +7954,9 @@ function Hf(t, e) {
7951
7954
  return Ct(u, 5, () => ie(5, 1), Tt, (d, f) => {
7952
7955
  var v = Lf();
7953
7956
  z(() => {
7954
- B(v, "style", `animation-delay: ${(h(f) - 1) * (+l / 12)}${s ?? ""}`), ct(v, "pause-animation", o());
7957
+ D(v, "style", `animation-delay: ${(h(f) - 1) * (+l / 12)}${s ?? ""}`), ct(v, "pause-animation", o());
7955
7958
  }), C(d, v);
7956
- }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`)), C(t, u), W({
7959
+ }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`)), C(t, u), W({
7957
7960
  get color() {
7958
7961
  return r();
7959
7962
  },
@@ -8043,16 +8046,16 @@ function Rf(t, e) {
8043
8046
  Zr(
8044
8047
  () => wr(r()),
8045
8048
  () => {
8046
- S(s, ra(r(), 0.2));
8049
+ A(s, ra(r(), 0.2));
8047
8050
  }
8048
8051
  ), Wr(), Mt();
8049
8052
  var l = Df();
8050
8053
  return Ct(l, 5, () => ie(2, 1), Tt, (u, c) => {
8051
8054
  var d = Bf();
8052
8055
  z(() => {
8053
- Be(d, `lines small-lines ${h(c) ?? ""} svelte-bnawe9`), B(d, "style", `--color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(d, "pause-animation", o());
8056
+ Be(d, `lines small-lines ${h(c) ?? ""} svelte-bnawe9`), D(d, "style", `--color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(d, "pause-animation", o());
8054
8057
  }), C(u, d);
8055
- }), g(l), z(() => B(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --rgba:${h(s) ?? ""}`)), C(t, l), W({
8058
+ }), g(l), z(() => D(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --rgba:${h(s) ?? ""}`)), C(t, l), W({
8056
8059
  get color() {
8057
8060
  return r();
8058
8061
  },
@@ -8126,9 +8129,9 @@ function qf(t, e) {
8126
8129
  return Ct(u, 5, () => ie(3, 1), Tt, (d, f) => {
8127
8130
  var v = Ff();
8128
8131
  z(() => {
8129
- B(v, "style", `animation-delay: ${+l / 3 * (h(f) - 1) + s};`), ct(v, "pause-animation", o());
8132
+ D(v, "style", `animation-delay: ${+l / 3 * (h(f) - 1) + s};`), ct(v, "pause-animation", o());
8130
8133
  }), C(d, v);
8131
- }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8134
+ }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8132
8135
  get color() {
8133
8136
  return r();
8134
8137
  },
@@ -8208,7 +8211,7 @@ function Xf(t, e) {
8208
8211
  z(() => {
8209
8212
  Be(c, `border ${h(u) ?? ""} svelte-kxapcj`), ct(c, "pause-animation", o());
8210
8213
  }), C(l, c);
8211
- }), g(s), z(() => B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, s), W({
8214
+ }), g(s), z(() => D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, s), W({
8212
8215
  get color() {
8213
8216
  return r();
8214
8217
  },
@@ -8298,9 +8301,9 @@ function Qf(t, e) {
8298
8301
  return Ct(u, 5, () => ie(3, 1), Tt, (d, f) => {
8299
8302
  var v = Jf();
8300
8303
  z(() => {
8301
- B(v, "style", `--dotSize:${+a() * 0.25}${n() ?? ""}; --color:${r() ?? ""}; animation-delay: ${h(f) * (+l / 10)}${s ?? ""};`), ct(v, "pause-animation", o());
8304
+ D(v, "style", `--dotSize:${+a() * 0.25}${n() ?? ""}; --color:${r() ?? ""}; animation-delay: ${h(f) * (+l / 10)}${s ?? ""};`), ct(v, "pause-animation", o());
8302
8305
  }), C(d, v);
8303
- }), g(u), z(() => B(u, "style", `--size:${a() ?? ""}${n() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8306
+ }), g(u), z(() => D(u, "style", `--size:${a() ?? ""}${n() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8304
8307
  get color() {
8305
8308
  return r();
8306
8309
  },
@@ -8375,7 +8378,7 @@ function eh(t, e) {
8375
8378
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "3s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
8376
8379
  var s = Kf(), l = w(s);
8377
8380
  return g(s), z(() => {
8378
- B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8381
+ D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8379
8382
  }), C(t, s), W({
8380
8383
  get color() {
8381
8384
  return r();
@@ -8447,7 +8450,7 @@ function ih(t, e) {
8447
8450
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.25s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
8448
8451
  var s = rh(), l = w(s);
8449
8452
  return g(s), z(() => {
8450
- B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8453
+ D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8451
8454
  }), C(t, s), W({
8452
8455
  get color() {
8453
8456
  return r();
@@ -8520,9 +8523,9 @@ function lh(t, e) {
8520
8523
  return Ct(u, 5, () => ie(3, 0), Tt, (d, f) => {
8521
8524
  var v = ah();
8522
8525
  z(() => {
8523
- B(v, "style", `animation-delay: ${h(f) * (+l / 10)}${s ?? ""}; left: ${h(f) * (+a() / 3 + +a() / 15) + n()};`), ct(v, "pause-animation", o());
8526
+ D(v, "style", `animation-delay: ${h(f) * (+l / 10)}${s ?? ""}; left: ${h(f) * (+a() / 3 + +a() / 15) + n()};`), ct(v, "pause-animation", o());
8524
8527
  }), C(d, v);
8525
- }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`)), C(t, u), W({
8528
+ }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""}`)), C(t, u), W({
8526
8529
  get color() {
8527
8530
  return r();
8528
8531
  },
@@ -8594,9 +8597,9 @@ function fh(t, e) {
8594
8597
  return Ct(u, 5, () => ie(6, 0), Tt, (d, f) => {
8595
8598
  var v = uh();
8596
8599
  z(() => {
8597
- B(v, "style", `animation-delay: ${h(f) * (+l / 25)}${s ?? ""}; width: ${h(f) * (+a() / 6) + n()}; height: ${h(f) * (+a() / 6) / 2 + n()}; `), ct(v, "pause-animation", o());
8600
+ D(v, "style", `animation-delay: ${h(f) * (+l / 25)}${s ?? ""}; width: ${h(f) * (+a() / 6) + n()}; height: ${h(f) * (+a() / 6) / 2 + n()}; `), ct(v, "pause-animation", o());
8598
8601
  }), C(d, v);
8599
- }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --motionOne: ${-a() / 5}${n() ?? ""}; --motionTwo: ${+a() / 4}${n() ?? ""}; --motionThree: ${-a() / 5}${n() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8602
+ }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --motionOne: ${-a() / 5}${n() ?? ""}; --motionTwo: ${+a() / 4}${n() ?? ""}; --motionThree: ${-a() / 5}${n() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
8600
8603
  get color() {
8601
8604
  return r();
8602
8605
  },
@@ -8673,10 +8676,10 @@ function mh(t, e) {
8673
8676
  return Ct(c, 5, () => ie(2, 0), Tt, (f, v) => {
8674
8677
  var _ = hh();
8675
8678
  z(() => {
8676
- B(_, "style", `animation-delay: ${(h(v) === 1 ? `${+l / 2}${s}` : "0s") ?? ""}; ${(h(v) === 1 ? "bottom: 0;" : "") ?? ""} ${(h(v) === 1 ? "top: auto;" : "") ?? ""}`), ct(_, "pause-animation", o());
8679
+ D(_, "style", `animation-delay: ${(h(v) === 1 ? `${+l / 2}${s}` : "0s") ?? ""}; ${(h(v) === 1 ? "bottom: 0;" : "") ?? ""} ${(h(v) === 1 ? "top: auto;" : "") ?? ""}`), ct(_, "pause-animation", o());
8677
8680
  }), C(f, _);
8678
8681
  }), g(c), g(u), z(() => {
8679
- B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(c, "pause-animation", o());
8682
+ D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(c, "pause-animation", o());
8680
8683
  }), C(t, u), W({
8681
8684
  get color() {
8682
8685
  return r();
@@ -8752,7 +8755,7 @@ function _h(t, e) {
8752
8755
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "3s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
8753
8756
  var s = gh();
8754
8757
  return z(() => {
8755
- B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
8758
+ D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
8756
8759
  }), C(t, s), W({
8757
8760
  get color() {
8758
8761
  return r();
@@ -8846,7 +8849,7 @@ function xh(t, e) {
8846
8849
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.7s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
8847
8850
  var s = yh(), l = w(s);
8848
8851
  return g(s), z(() => {
8849
- B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8852
+ D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(l, "pause-animation", o());
8850
8853
  }), C(t, s), W({
8851
8854
  get color() {
8852
8855
  return r();
@@ -8910,7 +8913,7 @@ function Sh(t, e) {
8910
8913
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.6s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1), s = +a() / 7, l = +a() / 2 - s / 2;
8911
8914
  var u = kh(), c = w(u), d = P(c, 2);
8912
8915
  return g(u), z(() => {
8913
- B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --moonSize: ${l ?? ""}${n() ?? ""}; --duration: ${i() ?? ""};`), ct(u, "pause-animation", o()), ct(c, "pause-animation", o()), ct(d, "pause-animation", o());
8916
+ D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --moonSize: ${l ?? ""}${n() ?? ""}; --duration: ${i() ?? ""};`), ct(u, "pause-animation", o()), ct(c, "pause-animation", o()), ct(d, "pause-animation", o());
8914
8917
  }), C(t, u), W({
8915
8918
  get color() {
8916
8919
  return r();
@@ -8996,12 +8999,12 @@ function Ch(t, e) {
8996
8999
  Zr(
8997
9000
  () => wr(r()),
8998
9001
  () => {
8999
- S(s, ra(r(), 0.6));
9002
+ A(s, ra(r(), 0.6));
9000
9003
  }
9001
9004
  ), Wr(), Mt();
9002
9005
  var l = Ah(), u = w(l);
9003
9006
  return g(l), z(() => {
9004
- B(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --rgba: ${h(s) ?? ""}; --duration: ${i() ?? ""};`), ct(u, "pause-animation", o());
9007
+ D(l, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --rgba: ${h(s) ?? ""}; --duration: ${i() ?? ""};`), ct(u, "pause-animation", o());
9005
9008
  }), C(t, l), W({
9006
9009
  get color() {
9007
9010
  return r();
@@ -9070,7 +9073,7 @@ function Ih(t, e) {
9070
9073
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "1.5s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
9071
9074
  var s = Nh();
9072
9075
  return z(() => {
9073
- B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color:${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9076
+ D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color:${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9074
9077
  }), C(t, s), W({
9075
9078
  get color() {
9076
9079
  return r();
@@ -9137,7 +9140,7 @@ function Ph(t, e) {
9137
9140
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "8s"), a = m(e, "size", 12, "60"), o = m(e, "pause", 12, !1);
9138
9141
  var s = Oh();
9139
9142
  return z(() => {
9140
- B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color:${r() ?? ""}; --duration:${i() ?? ""}`), ct(s, "pause-animation", o());
9143
+ D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color:${r() ?? ""}; --duration:${i() ?? ""}`), ct(s, "pause-animation", o());
9141
9144
  }), C(t, s), W({
9142
9145
  get color() {
9143
9146
  return r();
@@ -9211,9 +9214,9 @@ function Dh(t, e) {
9211
9214
  return Ct(u, 5, () => ie(10, 0), Tt, (d, f) => {
9212
9215
  var v = jh();
9213
9216
  z(() => {
9214
- B(v, "style", `left: ${h(f) * (+a() / 5 + (+a() / 15 - +a() / 100)) + n()}; animation-delay: ${h(f) * (+l / 8.3)}${s ?? ""};`), ct(v, "pause-animation", o());
9217
+ D(v, "style", `left: ${h(f) * (+a() / 5 + (+a() / 15 - +a() / 100)) + n()}; animation-delay: ${h(f) * (+l / 8.3)}${s ?? ""};`), ct(v, "pause-animation", o());
9215
9218
  }), C(d, v);
9216
- }), g(u), z(() => B(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
9219
+ }), g(u), z(() => D(u, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`)), C(t, u), W({
9217
9220
  get color() {
9218
9221
  return r();
9219
9222
  },
@@ -9288,16 +9291,16 @@ function $h(t, e) {
9288
9291
  Zr(
9289
9292
  () => wr(r()),
9290
9293
  () => {
9291
- S(u, ra(r(), 1));
9294
+ A(u, ra(r(), 1));
9292
9295
  }
9293
9296
  ), Wr(), Mt();
9294
9297
  var c = Rh();
9295
9298
  return Ct(c, 5, () => ie(2, 1), Tt, (f, v) => {
9296
9299
  var _ = Mh();
9297
9300
  z(() => {
9298
- B(_, "style", `animation-delay: ${(h(v) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +l + s};`), ct(_, "pause-animation", o());
9301
+ D(_, "style", `animation-delay: ${(h(v) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +l + s};`), ct(_, "pause-animation", o());
9299
9302
  }), C(f, _);
9300
- }), g(c), z(() => B(c, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --rgba: ${h(u) ?? ""}; --duration: ${i() ?? ""}`)), C(t, c), W({
9303
+ }), g(c), z(() => D(c, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --rgba: ${h(u) ?? ""}; --duration: ${i() ?? ""}`)), C(t, c), W({
9301
9304
  get color() {
9302
9305
  return r();
9303
9306
  },
@@ -9362,7 +9365,7 @@ function Gh(t, e) {
9362
9365
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.4s"), a = m(e, "size", 12, "15"), o = m(e, "pause", 12, !1);
9363
9366
  var s = Uh();
9364
9367
  return z(() => {
9365
- B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9368
+ D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9366
9369
  }), C(t, s), W({
9367
9370
  get color() {
9368
9371
  return r();
@@ -9428,7 +9431,7 @@ function Xh(t, e) {
9428
9431
  let r = m(e, "color", 12, "#FF3E00"), n = m(e, "unit", 12, "px"), i = m(e, "duration", 12, "0.4s"), a = m(e, "size", 12, "15"), o = m(e, "pause", 12, !1);
9429
9432
  var s = Vh();
9430
9433
  return z(() => {
9431
- B(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9434
+ D(s, "style", `--size: ${a() ?? ""}${n() ?? ""}; --color: ${r() ?? ""}; --duration: ${i() ?? ""};`), ct(s, "pause-animation", o());
9432
9435
  }), C(t, s), W({
9433
9436
  get color() {
9434
9437
  return r();
@@ -9486,7 +9489,7 @@ function bs(t, e) {
9486
9489
  Z(e, !0), et(t, lv);
9487
9490
  let r = m(e, "segnapostos", 15), n = m(e, "showModal", 15), i = m(e, "createProcedureFromTemplate", 7), a = Y(M({})), o = Y(!1), s = Y(M([]));
9488
9491
  async function l(k) {
9489
- if (S(o, !0), h(a)[k])
9492
+ if (A(o, !0), h(a)[k])
9490
9493
  return h(a)[k];
9491
9494
  const x = await fetch(`${di(se.getCookies().EnvId)}/v1/${k}/combo`, {
9492
9495
  method: "GET",
@@ -9496,45 +9499,47 @@ function bs(t, e) {
9496
9499
  }
9497
9500
  });
9498
9501
  if (!x.ok) return [];
9499
- const A = (await x.json()).result;
9500
- return h(a)[k] = A, S(o, !1), A;
9502
+ const E = (await x.json()).result;
9503
+ return h(a)[k] = E, A(o, !1), E;
9501
9504
  }
9502
9505
  const u = async () => {
9503
9506
  let k = !0;
9504
- if (S(s, M(r().map((x) => {
9505
- const A = !!x.valore;
9506
- return A || (k = !1), !A;
9507
+ if (A(s, M(r().map((x) => {
9508
+ const E = x.idSuite == "anagrafica" || !!x.valore;
9509
+ return E || (k = !1), !E;
9507
9510
  }))), k) {
9508
- let x = r().map(async (D) => {
9509
- if (D.idSuite)
9510
- if (D.idSuite === "anagrafica") {
9511
- let H = await fetch(`${di(se.getCookies().EnvId)}/v1/anagrafica`, {
9511
+ let x = r().map(async (H) => {
9512
+ if (H.idSuite)
9513
+ if (console.log("Fetching segnaposto value", H), H.idSuite === "anagrafica") {
9514
+ let B = await fetch(`${di(se.getCookies().EnvId)}/v1/anagrafica`, {
9512
9515
  method: "GET",
9513
9516
  headers: {
9514
9517
  "Content-Type": "application/json",
9515
9518
  "x-token": se.getCookies().token
9516
9519
  }
9517
9520
  });
9518
- if (!H.ok)
9519
- return console.error("Error fetching segnaposto value", D), D;
9520
- const U = await H.json();
9521
- D.valore = U.result[0];
9521
+ if (!B.ok)
9522
+ return console.error("Error fetching segnaposto value", H), H;
9523
+ const U = await B.json();
9524
+ H.valore = U.result[0];
9522
9525
  } else {
9523
- let H = await fetch(`${di(se.getCookies().EnvId)}/v1/${D.idSuite}/${D.valore}`, {
9526
+ let B = await fetch(`${di(se.getCookies().EnvId)}/v1/${H.idSuite}/${H.valore}`, {
9524
9527
  method: "GET",
9525
9528
  headers: {
9526
9529
  "Content-Type": "application/json",
9527
9530
  "x-token": se.getCookies().token
9528
9531
  }
9529
9532
  });
9530
- if (!H.ok)
9531
- return console.error("Error fetching segnaposto value", D), D;
9532
- const U = await H.json();
9533
- D.valore = U.result[0];
9533
+ if (!B.ok)
9534
+ return console.error("Error fetching segnaposto value", H), H;
9535
+ const U = await B.json();
9536
+ H.valore = U.result[0];
9534
9537
  }
9535
- return D;
9536
- }), A = await Promise.all(x);
9537
- i()(A), n(!1);
9538
+ return console.log("Setting segnaposto value", H), H;
9539
+ });
9540
+ console.log("Fetching segnaposto values", x);
9541
+ let E = await Promise.all(x);
9542
+ console.log("Fetched segnaposto values", E), i()(E), console.log("Creating procedure from template", E), n(!1);
9538
9543
  }
9539
9544
  };
9540
9545
  Ze(async () => {
@@ -9543,41 +9548,41 @@ function bs(t, e) {
9543
9548
  });
9544
9549
  var c = sv(), d = Lt(c), f = w(d), v = w(f), _ = w(v), y = P(w(_), 2);
9545
9550
  y.__click = [Jh, n], g(_);
9546
- var E = P(_, 2);
9547
- Ct(E, 21, r, Tt, (k, x, A) => {
9548
- var D = iv(), H = w(D);
9551
+ var S = P(_, 2);
9552
+ Ct(S, 21, r, Tt, (k, x, E) => {
9553
+ var H = iv(), B = w(H);
9549
9554
  {
9550
9555
  var U = (X) => {
9551
9556
  var V = Zh();
9552
- B(V, "for", "input-" + A);
9557
+ D(V, "for", "input-" + E);
9553
9558
  var _t = w(V, !0);
9554
9559
  g(V), z(() => at(_t, h(x).nome)), C(X, V);
9555
9560
  };
9556
- ut(H, (X) => {
9561
+ ut(B, (X) => {
9557
9562
  h(x).idSuite && h(x).idSuite !== "anagrafica" && X(U);
9558
9563
  });
9559
9564
  }
9560
- var R = P(H, 2);
9565
+ var F = P(B, 2);
9561
9566
  {
9562
9567
  var tt = (X) => {
9563
9568
  var V = Wh(), _t = w(V, !0);
9564
9569
  g(V), z(() => at(_t, h(x).domanda)), C(X, V);
9565
9570
  };
9566
- ut(R, (X) => {
9571
+ ut(F, (X) => {
9567
9572
  h(x).domanda && X(tt);
9568
9573
  });
9569
9574
  }
9570
- var it = P(R, 2);
9575
+ var it = P(F, 2);
9571
9576
  {
9572
9577
  var dt = (X) => {
9573
9578
  var V = Qh();
9574
- le(V), B(V, "id", "input-" + A), V.__input = () => h(s)[A] = !r()[A].valore, z(() => Be(V, `form-control form-control-sm ${(h(s)[A] ? "is-invalid" : "") ?? ""} svelte-1qgzhip`)), ye(V, () => r()[A].valore, (_t) => r(r()[A].valore = _t, !0)), C(X, V);
9579
+ le(V), D(V, "id", "input-" + E), V.__input = () => h(s)[E] = !r()[E].valore, z(() => Be(V, `form-control form-control-sm ${(h(s)[E] ? "is-invalid" : "") ?? ""} svelte-1qgzhip`)), ye(V, () => r()[E].valore, (_t) => r(r()[E].valore = _t, !0)), C(X, V);
9575
9580
  }, xt = (X) => {
9576
9581
  var V = je(), _t = Lt(V);
9577
9582
  {
9578
9583
  var Ot = (At) => {
9579
9584
  var yt = ev();
9580
- yt.__change = () => h(s)[A] = !r()[A].valore;
9585
+ yt.__change = () => h(s)[E] = !r()[E].valore;
9581
9586
  var zt = w(yt);
9582
9587
  {
9583
9588
  var $ = (j) => {
@@ -9596,7 +9601,7 @@ function bs(t, e) {
9596
9601
  h(a)[h(x).idSuite].length > 0 ? j($) : j(K, !1);
9597
9602
  });
9598
9603
  }
9599
- g(yt), z(() => Be(yt, `form-select form-select-sm ${(h(s)[A] ? "is-invalid" : "") ?? ""} svelte-1qgzhip`)), Xi(yt, () => r()[A].valore, (j) => r(r()[A].valore = j, !0)), C(At, yt);
9604
+ g(yt), z(() => Be(yt, `form-select form-select-sm ${(h(s)[E] ? "is-invalid" : "") ?? ""} svelte-1qgzhip`)), Xi(yt, () => r()[E].valore, (j) => r(r()[E].valore = j, !0)), C(At, yt);
9600
9605
  }, St = (At) => {
9601
9606
  var yt = je(), zt = Lt(yt);
9602
9607
  {
@@ -9631,9 +9636,9 @@ function bs(t, e) {
9631
9636
  h(x).idSuite ? X(xt, !1) : X(dt);
9632
9637
  });
9633
9638
  }
9634
- g(D), C(k, D);
9635
- }), g(E);
9636
- var L = P(E, 2), I = w(L);
9639
+ g(H), C(k, H);
9640
+ }), g(S);
9641
+ var L = P(S, 2), I = w(L);
9637
9642
  I.__click = [av, n];
9638
9643
  var T = P(I, 2);
9639
9644
  T.__click = u, g(L), g(v), g(f), g(d);
@@ -9647,7 +9652,7 @@ function bs(t, e) {
9647
9652
  n() && k(b);
9648
9653
  });
9649
9654
  }
9650
- return z(() => B(d, "style", `display: ${(n() ? "block" : "none") ?? ""};`)), C(t, c), W({
9655
+ return z(() => D(d, "style", `display: ${(n() ? "block" : "none") ?? ""};`)), C(t, c), W({
9651
9656
  get segnapostos() {
9652
9657
  return r();
9653
9658
  },
@@ -9684,7 +9689,7 @@ const uv = (t, e, r, n, i, a) => {
9684
9689
  Se.getVersions(e()._id).then((o) => {
9685
9690
  if (o) {
9686
9691
  const s = o[0];
9687
- s.segnaposto && s.segnaposto.length > 0 ? (S(r, M(s.segnaposto)), S(n, !0)) : i();
9692
+ s.segnaposto && s.segnaposto.length > 0 ? (A(r, M(s.segnaposto)), A(n, !0)) : i();
9688
9693
  } else
9689
9694
  alert(a()("alerts.error.procedure-creation-error"));
9690
9695
  });
@@ -9699,23 +9704,23 @@ function _s(t, e) {
9699
9704
  const r = ne(), n = () => re(pe, "$_", r);
9700
9705
  let i = m(e, "documents", 15), a = m(e, "doc", 15), o = m(e, "showMenu", 15), s = m(e, "menuTop", 7), l = m(e, "menuOffset", 7), u = Y(!1), c = Y(M([]));
9701
9706
  const d = (x) => {
9702
- Se.createProcedureFromTemplate(a(), x).then((A) => {
9703
- A ? (i().push(A.document), i(f(i())), alert(n()("alerts.success.procedure-created"))) : alert(n()("alerts.error.procedure-creation-error")), o(!1);
9707
+ Se.createProcedureFromTemplate(a(), x).then((E) => {
9708
+ E ? (i().push(E.document), i(f(i())), alert(n()("alerts.success.procedure-created"))) : alert(n()("alerts.error.procedure-creation-error")), o(!1);
9704
9709
  });
9705
- }, f = (x) => x.sort((A, D) => A.name.localeCompare(D.name)), v = () => {
9710
+ }, f = (x) => x.sort((E, H) => E.name.localeCompare(H.name)), v = () => {
9706
9711
  confirm(n()("alerts.confirm.procedure-deletion")) && Se.deleteDocument(a()._id).then((x) => {
9707
- x ? (i(i().filter((A) => A._id !== a()._id)), alert(n()("alerts.success.procedure-deleted"))) : alert(n()("alerts.error.procedure-deletion-error")), o(!1);
9712
+ x ? (i(i().filter((E) => E._id !== a()._id)), alert(n()("alerts.success.procedure-deleted"))) : alert(n()("alerts.error.procedure-deletion-error")), o(!1);
9708
9713
  });
9709
9714
  };
9710
9715
  var _ = vv(), y = Lt(_);
9711
9716
  y.__click = [cv, o];
9712
- var E = w(y);
9713
- E.__click = [dv];
9714
- var L = w(E);
9717
+ var S = w(y);
9718
+ S.__click = [dv];
9719
+ var L = w(S);
9715
9720
  {
9716
9721
  var I = (x) => {
9717
- var A = fv();
9718
- A.__click = [
9722
+ var E = fv();
9723
+ E.__click = [
9719
9724
  uv,
9720
9725
  a,
9721
9726
  c,
@@ -9723,8 +9728,8 @@ function _s(t, e) {
9723
9728
  d,
9724
9729
  n
9725
9730
  ];
9726
- var D = w(A, !0);
9727
- z(() => at(D, n()("sheet-menu.create-procedure-from-template"))), g(A), C(x, A);
9731
+ var H = w(E, !0);
9732
+ z(() => at(H, n()("sheet-menu.create-procedure-from-template"))), g(E), C(x, E);
9728
9733
  };
9729
9734
  ut(L, (x) => {
9730
9735
  a().path.includes("templates") && x(I);
@@ -9733,7 +9738,7 @@ function _s(t, e) {
9733
9738
  var T = P(L, 2);
9734
9739
  T.__click = [hv, v];
9735
9740
  var N = w(T, !0);
9736
- z(() => at(N, n()("sheet-menu.delete"))), g(T), g(E), g(y);
9741
+ z(() => at(N, n()("sheet-menu.delete"))), g(T), g(S), g(y);
9737
9742
  var b = P(y, 2);
9738
9743
  {
9739
9744
  var k = (x) => {
@@ -9742,14 +9747,14 @@ function _s(t, e) {
9742
9747
  get showModal() {
9743
9748
  return h(u);
9744
9749
  },
9745
- set showModal(A) {
9746
- S(u, M(A));
9750
+ set showModal(E) {
9751
+ A(u, M(E));
9747
9752
  },
9748
9753
  get segnapostos() {
9749
9754
  return h(c);
9750
9755
  },
9751
- set segnapostos(A) {
9752
- S(c, M(A));
9756
+ set segnapostos(E) {
9757
+ A(c, M(E));
9753
9758
  }
9754
9759
  });
9755
9760
  };
@@ -9757,7 +9762,7 @@ function _s(t, e) {
9757
9762
  h(u) && x(k);
9758
9763
  });
9759
9764
  }
9760
- return z(() => B(E, "style", `--menu-top: ${s() - window.scrollY}px; --menu-offset: ${l() ?? ""}px;`)), C(t, _), W({
9765
+ return z(() => D(S, "style", `--menu-top: ${s() - window.scrollY}px; --menu-offset: ${l() ?? ""}px;`)), C(t, _), W({
9761
9766
  get documents() {
9762
9767
  return i();
9763
9768
  },
@@ -9851,13 +9856,13 @@ function rr(t) {
9851
9856
  const _v = (t, e, r, n, i) => {
9852
9857
  Se.getVersions(e()._id).then((a) => {
9853
9858
  if (a) {
9854
- if (S(r, M(a)), e().path.includes("template")) {
9859
+ if (A(r, M(a)), e().path.includes("template")) {
9855
9860
  n(h(r)[0]._id);
9856
9861
  return;
9857
9862
  }
9858
9863
  if (a.length === 0)
9859
9864
  throw new Error("No versions found");
9860
- S(i, !0);
9865
+ A(i, !0);
9861
9866
  } else
9862
9867
  throw new Error("No versions found");
9863
9868
  });
@@ -9865,7 +9870,7 @@ const _v = (t, e, r, n, i) => {
9865
9870
  const i = t.target;
9866
9871
  if (i) {
9867
9872
  const a = i.getBoundingClientRect();
9868
- S(e, a.top + window.scrollY), S(r, M(a.height)), S(n, !0);
9873
+ A(e, a.top + window.scrollY), A(r, M(a.height)), A(n, !0);
9869
9874
  }
9870
9875
  };
9871
9876
  var wv = (t, e, r) => e()(r()), xv = /* @__PURE__ */ O('<button class="btn btn-sm btn-secondary aks-btn-rounded" aria-label="Edit"><i class="fa-solid fa-pen-to-square"></i></button>'), kv = /* @__PURE__ */ O('<button class="btn btn-sm btn-secondary aks-btn-rounded" data-position="left" aria-label="Open"><i class="fa-solid fa-eye"></i></button>'), Ev = /* @__PURE__ */ O('<button class="btn btn-sm btn-secondary aks-btn-rounded" aria-label="Menu"><i class="fa-solid fa-ellipsis"></i></button>'), Sv = /* @__PURE__ */ O('<!> <tr class="front-line"><td style="width: 5%" class="align-middle"><div class="d-flex justify-content-center"><!></div></td><td style="width: 55%" class="align-middle"><div class="front-line-title"><span> </span></div></td><td style="width: 20%" class="text-center align-middle"><div class="front-line__description text-center"><span> </span></div></td><td style="width: 0%" class="text-end align-middle"><div class="d-flex justify-content-end gap-1 pe-2"><!> <!> <!> <!></div></td></tr>', 1);
@@ -9884,7 +9889,7 @@ function ys(t, e) {
9884
9889
  alert(n()("alerts.error.version-not-confirmed"));
9885
9890
  return;
9886
9891
  }
9887
- j ? h(d).push(j) : (alert(n()("alerts.error.version-creation-error")), S(u, !1));
9892
+ j ? h(d).push(j) : (alert(n()("alerts.error.version-creation-error")), A(u, !1));
9888
9893
  });
9889
9894
  }, y = (j) => {
9890
9895
  if (!j)
@@ -9892,7 +9897,7 @@ function ys(t, e) {
9892
9897
  const q = new Date(j);
9893
9898
  return `${q.getDate()}/${q.getMonth() + 1}/${q.getFullYear()}`;
9894
9899
  };
9895
- let E = Y(0), L = Y(0);
9900
+ let S = Y(0), L = Y(0);
9896
9901
  var I = Sv(), T = Lt(I);
9897
9902
  {
9898
9903
  var N = (j) => {
@@ -9903,13 +9908,13 @@ function ys(t, e) {
9903
9908
  return h(u);
9904
9909
  },
9905
9910
  set showVersionsDialog(q) {
9906
- S(u, M(q));
9911
+ A(u, M(q));
9907
9912
  },
9908
9913
  get versions() {
9909
9914
  return h(d);
9910
9915
  },
9911
9916
  set versions(q) {
9912
- S(d, M(q));
9917
+ A(d, M(q));
9913
9918
  }
9914
9919
  });
9915
9920
  };
@@ -9918,18 +9923,18 @@ function ys(t, e) {
9918
9923
  });
9919
9924
  }
9920
9925
  var b = P(T, 2);
9921
- z(() => B(b, "data-intro", n()("tutorial-step.2")));
9922
- var k = w(b), x = w(k), A = w(x);
9923
- ta(A, {
9926
+ z(() => D(b, "data-intro", n()("tutorial-step.2")));
9927
+ var k = w(b), x = w(k), E = w(x);
9928
+ ta(E, {
9924
9929
  get color() {
9925
9930
  return o();
9926
9931
  },
9927
9932
  width: "20",
9928
9933
  height: "27.5"
9929
9934
  }), g(x), g(k);
9930
- var D = P(k), H = w(D), U = w(H), R = w(U, !0);
9931
- g(U), g(H), g(D);
9932
- var tt = P(D), it = w(tt), dt = w(it), xt = w(dt, !0);
9935
+ var H = P(k), B = w(H), U = w(B), F = w(U, !0);
9936
+ g(U), g(B), g(H);
9937
+ var tt = P(H), it = w(tt), dt = w(it), xt = w(dt, !0);
9933
9938
  z(() => at(xt, y(a().updatedAt))), g(dt), g(it), g(tt);
9934
9939
  var X = P(tt), V = w(X), _t = w(V), Ot = /* @__PURE__ */ ke(() => n()("sheet-line.edit"));
9935
9940
  gn(_t, {
@@ -9938,7 +9943,7 @@ function ys(t, e) {
9938
9943
  },
9939
9944
  children: (j, q) => {
9940
9945
  var rt = xv();
9941
- z(() => B(rt, "data-intro", n()("tutorial-step.7"))), rt.__click = [wv, l, a], z(() => B(rt, "data-step", s() ? 7 : "")), C(j, rt);
9946
+ z(() => D(rt, "data-intro", n()("tutorial-step.7"))), rt.__click = [wv, l, a], z(() => D(rt, "data-step", s() ? 7 : "")), C(j, rt);
9942
9947
  },
9943
9948
  $$slots: { default: !0 }
9944
9949
  });
@@ -9955,7 +9960,7 @@ function ys(t, e) {
9955
9960
  d,
9956
9961
  v,
9957
9962
  u
9958
- ], z(() => B(rt, "data-intro", n()("tutorial-step.8"))), z(() => B(rt, "data-step", s() ? 8 : "")), C(j, rt);
9963
+ ], z(() => D(rt, "data-intro", n()("tutorial-step.8"))), z(() => D(rt, "data-step", s() ? 8 : "")), C(j, rt);
9959
9964
  },
9960
9965
  $$slots: { default: !0 }
9961
9966
  });
@@ -9966,7 +9971,7 @@ function ys(t, e) {
9966
9971
  },
9967
9972
  children: (j, q) => {
9968
9973
  var rt = Ev();
9969
- rt.__click = [yv, E, L, c], z(() => B(rt, "data-intro", n()("tutorial-step.9"))), z(() => B(rt, "data-step", s() ? 9 : "")), C(j, rt);
9974
+ rt.__click = [yv, S, L, c], z(() => D(rt, "data-intro", n()("tutorial-step.9"))), z(() => D(rt, "data-step", s() ? 9 : "")), C(j, rt);
9970
9975
  },
9971
9976
  $$slots: { default: !0 }
9972
9977
  });
@@ -9975,7 +9980,7 @@ function ys(t, e) {
9975
9980
  var K = (j) => {
9976
9981
  _s(j, {
9977
9982
  get menuTop() {
9978
- return h(E);
9983
+ return h(S);
9979
9984
  },
9980
9985
  get menuOffset() {
9981
9986
  return h(L);
@@ -9996,7 +10001,7 @@ function ys(t, e) {
9996
10001
  return h(c);
9997
10002
  },
9998
10003
  set showMenu(q) {
9999
- S(c, M(q));
10004
+ A(c, M(q));
10000
10005
  }
10001
10006
  });
10002
10007
  };
@@ -10005,7 +10010,7 @@ function ys(t, e) {
10005
10010
  });
10006
10011
  }
10007
10012
  return g(V), g(X), g(b), z(() => {
10008
- B(b, "data-step", s() ? 2 : ""), at(R, a().name);
10013
+ D(b, "data-step", s() ? 2 : ""), at(F, a().name);
10009
10014
  }), C(t, I), W({
10010
10015
  get documents() {
10011
10016
  return i();
@@ -10054,9 +10059,9 @@ Q(
10054
10059
  !0
10055
10060
  );
10056
10061
  var Av = (t, e, r, n, i) => {
10057
- h(e) == "name" ? S(r, !h(r)) : S(e, "name"), n(i("name", h(r)));
10062
+ h(e) == "name" ? A(r, !h(r)) : A(e, "name"), n(i("name", h(r)));
10058
10063
  }, Tv = /* @__PURE__ */ O("<i></i>"), Cv = /* @__PURE__ */ O('<i class="akj-sort fas fa-sort me-2"></i>'), Nv = (t, e, r, n, i) => {
10059
- h(e) == "lastUpdate" ? S(r, !h(r)) : S(e, "lastUpdate"), n(i("lastUpdate", h(r)));
10064
+ h(e) == "lastUpdate" ? A(r, !h(r)) : A(e, "lastUpdate"), n(i("lastUpdate", h(r)));
10060
10065
  }, zv = /* @__PURE__ */ O("<i></i>"), Iv = /* @__PURE__ */ O('<i class="akj-sort fas fa-sort me-2"></i>'), Ov = /* @__PURE__ */ O('<thead class="aks-sticky-top"><tr><th style="width: 5%" class="align-middle text-center svelte-1bntett"></th><th style="width: 60%" class="align-middle svelte-1bntett"><!> </th><th style="width: 15%" class="align-middle text-center svelte-1bntett"><!> </th><th style="width: 20%" class="align-middle text-end svelte-1bntett"></th></tr></thead>');
10061
10066
  const Lv = {
10062
10067
  hash: "svelte-1bntett",
@@ -10069,9 +10074,9 @@ function ws(t, e) {
10069
10074
  const l = (b, k) => {
10070
10075
  switch (b) {
10071
10076
  case "name":
10072
- return i().sort((x, A) => k ? x.name.localeCompare(A.name) : A.name.localeCompare(x.name));
10077
+ return i().sort((x, E) => k ? x.name.localeCompare(E.name) : E.name.localeCompare(x.name));
10073
10078
  case "lastUpdate":
10074
- return i().sort((x, A) => x.updatedAt ? A.updatedAt ? k ? x.updatedAt > A.updatedAt ? -1 : 1 : x.updatedAt > A.updatedAt ? 1 : -1 : k ? x.updatedAt > (A.createdAt ?? 0) ? -1 : 1 : x.updatedAt > (A.createdAt ?? 0) ? 1 : -1 : A.updatedAt ? k ? (x.createdAt ?? 0) > A.updatedAt ? -1 : 1 : (x.createdAt ?? 0) > A.updatedAt ? 1 : -1 : k ? (x.createdAt ?? 0) > (A.createdAt ?? 0) ? -1 : 1 : (x.createdAt ?? 0) > (A.createdAt ?? 0) ? 1 : -1);
10079
+ return i().sort((x, E) => x.updatedAt ? E.updatedAt ? k ? x.updatedAt > E.updatedAt ? -1 : 1 : x.updatedAt > E.updatedAt ? 1 : -1 : k ? x.updatedAt > (E.createdAt ?? 0) ? -1 : 1 : x.updatedAt > (E.createdAt ?? 0) ? 1 : -1 : E.updatedAt ? k ? (x.createdAt ?? 0) > E.updatedAt ? -1 : 1 : (x.createdAt ?? 0) > E.updatedAt ? 1 : -1 : k ? (x.createdAt ?? 0) > (E.createdAt ?? 0) ? -1 : 1 : (x.createdAt ?? 0) > (E.createdAt ?? 0) ? 1 : -1);
10075
10080
  default:
10076
10081
  return i();
10077
10082
  }
@@ -10099,15 +10104,15 @@ function ws(t, e) {
10099
10104
  }
10100
10105
  var y = P(f);
10101
10106
  z(() => at(y, ` ${n()("file-name") ?? ""}`)), g(d);
10102
- var E = P(d);
10103
- E.__click = [
10107
+ var S = P(d);
10108
+ S.__click = [
10104
10109
  Nv,
10105
10110
  a,
10106
10111
  s,
10107
10112
  i,
10108
10113
  l
10109
10114
  ];
10110
- var L = w(E);
10115
+ var L = w(S);
10111
10116
  {
10112
10117
  var I = (b) => {
10113
10118
  var k = zv();
@@ -10121,7 +10126,7 @@ function ws(t, e) {
10121
10126
  });
10122
10127
  }
10123
10128
  var N = P(L);
10124
- return z(() => at(N, ` ${n()("viewer.last-update") ?? ""}`)), g(E), $i(), g(c), g(u), C(t, u), W({
10129
+ return z(() => at(N, ` ${n()("viewer.last-update") ?? ""}`)), g(S), $i(), g(c), g(u), C(t, u), W({
10125
10130
  get documents() {
10126
10131
  return i();
10127
10132
  },
@@ -10357,8 +10362,8 @@ function jv(t, e, r, n) {
10357
10362
  if (l.bottom + o > a.height && oe(i, "bottom"), l.top - o < 0 && oe(i, "top"), l.right + s > a.width && oe(i, "right"), l.left - s < 0 && oe(i, "left"), n && (n = n.split("-")[0]), i.length && (u = i[0], i.includes(n) && (u = n)), u === "top" || u === "bottom") {
10358
10363
  var c = void 0, d = [];
10359
10364
  u === "top" ? (c = "top-middle-aligned", d = ["top-left-aligned", "top-middle-aligned", "top-right-aligned"]) : (c = "bottom-middle-aligned", d = ["bottom-left-aligned", "bottom-middle-aligned", "bottom-right-aligned"]), u = function(f, v, _, y) {
10360
- var E = v / 2, L = Math.min(_, window.screen.width);
10361
- return L - f < v && (oe(y, "top-left-aligned"), oe(y, "bottom-left-aligned")), (f < E || L - f < E) && (oe(y, "top-middle-aligned"), oe(y, "bottom-middle-aligned")), f < v && (oe(y, "top-right-aligned"), oe(y, "bottom-right-aligned")), y.length ? y[0] : null;
10365
+ var S = v / 2, L = Math.min(_, window.screen.width);
10366
+ return L - f < v && (oe(y, "top-left-aligned"), oe(y, "bottom-left-aligned")), (f < S || L - f < S) && (oe(y, "top-middle-aligned"), oe(y, "bottom-middle-aligned")), f < v && (oe(y, "top-right-aligned"), oe(y, "bottom-right-aligned")), y.length ? y[0] : null;
10362
10367
  }(l.left, s, a.width, d) || c;
10363
10368
  }
10364
10369
  return u;
@@ -10450,7 +10455,7 @@ function As(t, e, r) {
10450
10455
  }
10451
10456
  function Ts(t, e) {
10452
10457
  return mt(this, void 0, void 0, function() {
10453
- var r, n, i, a, o, s, l, u, c, d, f, v, _, y, E, L, I, T, N, b, k, x, A, D, H = this;
10458
+ var r, n, i, a, o, s, l, u, c, d, f, v, _, y, S, L, I, T, N, b, k, x, E, H, B = this;
10454
10459
  return gt(this, function(U) {
10455
10460
  switch (U.label) {
10456
10461
  case 0:
@@ -10459,81 +10464,81 @@ function Ts(t, e) {
10459
10464
  U.sent(), U.label = 2;
10460
10465
  case 2:
10461
10466
  return r = document.querySelector(".introjs-helperLayer"), n = document.querySelector(".introjs-tooltipReferenceLayer"), i = "introjs-helperLayer", typeof e.highlightClass == "string" && (i += " ".concat(e.highlightClass)), typeof t._options.highlightClass == "string" && (i += " ".concat(t._options.highlightClass)), r !== null && n !== null ? (l = n.querySelector(".introjs-helperNumberLayer"), u = n.querySelector(".introjs-tooltiptext"), c = n.querySelector(".introjs-tooltip-title"), d = n.querySelector(".introjs-arrow"), f = n.querySelector(".introjs-tooltip"), s = n.querySelector(".introjs-skipbutton"), o = n.querySelector(".introjs-prevbutton"), a = n.querySelector(".introjs-nextbutton"), r.className = i, f.style.opacity = "0", f.style.display = "none", qa(t._options.scrollToElement, e.element), be(t, e, r), be(t, e, n), ks(), t._lastShowElementTimer && window.clearTimeout(t._lastShowElementTimer), t._lastShowElementTimer = window.setTimeout(function() {
10462
- l !== null && (l.innerHTML = "".concat(e.step, " ").concat(t._options.stepNumbersOfLabel, " ").concat(t._introItems.length)), u.innerHTML = e.intro || "", c.innerHTML = e.title || "", f.style.display = "block", Hn(t, e, f, d), function(R, tt, it) {
10463
- if (R) {
10467
+ l !== null && (l.innerHTML = "".concat(e.step, " ").concat(t._options.stepNumbersOfLabel, " ").concat(t._introItems.length)), u.innerHTML = e.intro || "", c.innerHTML = e.title || "", f.style.display = "block", Hn(t, e, f, d), function(F, tt, it) {
10468
+ if (F) {
10464
10469
  var dt = tt.querySelector(".introjs-bullets li > a.active"), xt = tt.querySelector('.introjs-bullets li > a[data-step-number="'.concat(it.step, '"]'));
10465
10470
  dt && xt && (dt.className = "", xt.className = "active");
10466
10471
  }
10467
10472
  }(t._options.showBullets, n, e), As(n, t._currentStep, t._introItems.length), f.style.opacity = "1", (a != null && /introjs-donebutton/gi.test(a.className) || a != null) && a.focus(), Ga(t._options.scrollToElement, e.scrollTo, t._options.scrollPadding, e.element, u);
10468
- }, 350)) : (v = lt("div", { className: i }), _ = lt("div", { className: "introjs-tooltipReferenceLayer" }), y = lt("div", { className: "introjs-arrow" }), E = lt("div", { className: "introjs-tooltip" }), L = lt("div", { className: "introjs-tooltiptext" }), I = lt("div", { className: "introjs-tooltip-header" }), T = lt("h1", { className: "introjs-tooltip-title" }), N = lt("div"), Me(v, { "box-shadow": "0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(t._options.overlayOpacity.toString(), ") 0 0 0 5000px") }), qa(t._options.scrollToElement, e.element), be(t, e, v), be(t, e, _), Va(t._targetElement, v, !0), Va(t._targetElement, _), L.innerHTML = e.intro, T.innerHTML = e.title, N.className = "introjs-tooltipbuttons", t._options.showButtons === !1 && (N.style.display = "none"), I.appendChild(T), E.appendChild(I), E.appendChild(L), t._options.dontShowAgain && (b = lt("div", { className: "introjs-dontShowAgain" }), (k = lt("input", { type: "checkbox", id: "introjs-dontShowAgain", name: "introjs-dontShowAgain" })).onchange = function(R) {
10469
- t.setDontShowAgain(R.target.checked);
10470
- }, (x = lt("label", { htmlFor: "introjs-dontShowAgain" })).innerText = t._options.dontShowAgainLabel, b.appendChild(k), b.appendChild(x), E.appendChild(b)), E.appendChild(Ss(t, e)), E.appendChild(function(R) {
10473
+ }, 350)) : (v = lt("div", { className: i }), _ = lt("div", { className: "introjs-tooltipReferenceLayer" }), y = lt("div", { className: "introjs-arrow" }), S = lt("div", { className: "introjs-tooltip" }), L = lt("div", { className: "introjs-tooltiptext" }), I = lt("div", { className: "introjs-tooltip-header" }), T = lt("h1", { className: "introjs-tooltip-title" }), N = lt("div"), Me(v, { "box-shadow": "0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(t._options.overlayOpacity.toString(), ") 0 0 0 5000px") }), qa(t._options.scrollToElement, e.element), be(t, e, v), be(t, e, _), Va(t._targetElement, v, !0), Va(t._targetElement, _), L.innerHTML = e.intro, T.innerHTML = e.title, N.className = "introjs-tooltipbuttons", t._options.showButtons === !1 && (N.style.display = "none"), I.appendChild(T), S.appendChild(I), S.appendChild(L), t._options.dontShowAgain && (b = lt("div", { className: "introjs-dontShowAgain" }), (k = lt("input", { type: "checkbox", id: "introjs-dontShowAgain", name: "introjs-dontShowAgain" })).onchange = function(F) {
10474
+ t.setDontShowAgain(F.target.checked);
10475
+ }, (x = lt("label", { htmlFor: "introjs-dontShowAgain" })).innerText = t._options.dontShowAgainLabel, b.appendChild(k), b.appendChild(x), S.appendChild(b)), S.appendChild(Ss(t, e)), S.appendChild(function(F) {
10471
10476
  var tt = lt("div");
10472
- tt.className = "introjs-progress", R._options.showProgress === !1 && (tt.style.display = "none");
10477
+ tt.className = "introjs-progress", F._options.showProgress === !1 && (tt.style.display = "none");
10473
10478
  var it = lt("div", { className: "introjs-progressbar" });
10474
- R._options.progressBarAdditionalClass && (it.className += " " + R._options.progressBarAdditionalClass);
10475
- var dt = Es(R._currentStep, R._introItems.length);
10479
+ F._options.progressBarAdditionalClass && (it.className += " " + F._options.progressBarAdditionalClass);
10480
+ var dt = Es(F._currentStep, F._introItems.length);
10476
10481
  return it.setAttribute("role", "progress"), it.setAttribute("aria-valuemin", "0"), it.setAttribute("aria-valuemax", "100"), it.setAttribute("aria-valuenow", dt.toString()), it.style.cssText = "width:".concat(dt, "%;"), tt.appendChild(it), tt;
10477
- }(t)), A = lt("div"), t._options.showStepNumbers === !0 && (A.className = "introjs-helperNumberLayer", A.innerHTML = "".concat(e.step, " ").concat(t._options.stepNumbersOfLabel, " ").concat(t._introItems.length), E.appendChild(A)), E.appendChild(y), _.appendChild(E), (a = lt("a")).onclick = function() {
10478
- return mt(H, void 0, void 0, function() {
10479
- return gt(this, function(R) {
10480
- switch (R.label) {
10482
+ }(t)), E = lt("div"), t._options.showStepNumbers === !0 && (E.className = "introjs-helperNumberLayer", E.innerHTML = "".concat(e.step, " ").concat(t._options.stepNumbersOfLabel, " ").concat(t._introItems.length), S.appendChild(E)), S.appendChild(y), _.appendChild(S), (a = lt("a")).onclick = function() {
10483
+ return mt(B, void 0, void 0, function() {
10484
+ return gt(this, function(F) {
10485
+ switch (F.label) {
10481
10486
  case 0:
10482
10487
  return t._introItems.length - 1 === t._currentStep ? [3, 2] : [4, Ye(t)];
10483
10488
  case 1:
10484
- return R.sent(), [3, 6];
10489
+ return F.sent(), [3, 6];
10485
10490
  case 2:
10486
10491
  return /introjs-donebutton/gi.test(a.className) ? kt(t._introCompleteCallback) ? [4, t._introCompleteCallback.call(t, t._currentStep, "done")] : [3, 4] : [3, 6];
10487
10492
  case 3:
10488
- R.sent(), R.label = 4;
10493
+ F.sent(), F.label = 4;
10489
10494
  case 4:
10490
10495
  return [4, Xe(t, t._targetElement)];
10491
10496
  case 5:
10492
- R.sent(), R.label = 6;
10497
+ F.sent(), F.label = 6;
10493
10498
  case 6:
10494
10499
  return [2];
10495
10500
  }
10496
10501
  });
10497
10502
  });
10498
10503
  }, jr(a), a.innerHTML = t._options.nextLabel, (o = lt("a")).onclick = function() {
10499
- return mt(H, void 0, void 0, function() {
10500
- return gt(this, function(R) {
10501
- switch (R.label) {
10504
+ return mt(B, void 0, void 0, function() {
10505
+ return gt(this, function(F) {
10506
+ switch (F.label) {
10502
10507
  case 0:
10503
10508
  return t._currentStep > 0 ? [4, Bn(t)] : [3, 2];
10504
10509
  case 1:
10505
- R.sent(), R.label = 2;
10510
+ F.sent(), F.label = 2;
10506
10511
  case 2:
10507
10512
  return [2];
10508
10513
  }
10509
10514
  });
10510
10515
  });
10511
10516
  }, jr(o), o.innerHTML = t._options.prevLabel, jr(s = lt("a", { className: "introjs-skipbutton" })), s.innerHTML = t._options.skipLabel, s.onclick = function() {
10512
- return mt(H, void 0, void 0, function() {
10513
- return gt(this, function(R) {
10514
- switch (R.label) {
10517
+ return mt(B, void 0, void 0, function() {
10518
+ return gt(this, function(F) {
10519
+ switch (F.label) {
10515
10520
  case 0:
10516
10521
  return t._introItems.length - 1 === t._currentStep && kt(t._introCompleteCallback) ? [4, t._introCompleteCallback.call(t, t._currentStep, "skip")] : [3, 2];
10517
10522
  case 1:
10518
- R.sent(), R.label = 2;
10523
+ F.sent(), F.label = 2;
10519
10524
  case 2:
10520
10525
  return kt(t._introSkipCallback) ? [4, t._introSkipCallback.call(t, t._currentStep)] : [3, 4];
10521
10526
  case 3:
10522
- R.sent(), R.label = 4;
10527
+ F.sent(), F.label = 4;
10523
10528
  case 4:
10524
10529
  return [4, Xe(t, t._targetElement)];
10525
10530
  case 5:
10526
- return R.sent(), [2];
10531
+ return F.sent(), [2];
10527
10532
  }
10528
10533
  });
10529
10534
  });
10530
- }, I.appendChild(s), t._introItems.length > 1 && N.appendChild(o), N.appendChild(a), E.appendChild(N), Hn(t, e, E, y), Ga(t._options.scrollToElement, e.scrollTo, t._options.scrollPadding, e.element, E)), (D = t._targetElement.querySelector(".introjs-disableInteraction")) && D.parentNode && D.parentNode.removeChild(D), e.disableInteraction && function(R, tt) {
10535
+ }, I.appendChild(s), t._introItems.length > 1 && N.appendChild(o), N.appendChild(a), S.appendChild(N), Hn(t, e, S, y), Ga(t._options.scrollToElement, e.scrollTo, t._options.scrollPadding, e.element, S)), (H = t._targetElement.querySelector(".introjs-disableInteraction")) && H.parentNode && H.parentNode.removeChild(H), e.disableInteraction && function(F, tt) {
10531
10536
  var it = document.querySelector(".introjs-disableInteraction");
10532
- it === null && (it = lt("div", { className: "introjs-disableInteraction" }), R._targetElement.appendChild(it)), be(R, tt, it);
10533
- }(t, e), t._currentStep === 0 && t._introItems.length > 1 ? (a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton"), a.innerHTML = t._options.nextLabel), t._options.hidePrev === !0 ? (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton introjs-hidden")), a != null && ue(a, "introjs-fullbutton")) : o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton introjs-disabled"))) : t._introItems.length - 1 === t._currentStep || t._introItems.length === 1 ? (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton")), t._options.hideNext === !0 ? (a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton introjs-hidden")), o != null && ue(o, "introjs-fullbutton")) : a != null && (t._options.nextToDone === !0 ? (a.innerHTML = t._options.doneLabel, ue(a, "".concat(t._options.buttonClass, " introjs-nextbutton introjs-donebutton"))) : a.className = "".concat(t._options.buttonClass, " introjs-nextbutton introjs-disabled"))) : (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton")), a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton"), a.innerHTML = t._options.nextLabel)), o != null && o.setAttribute("role", "button"), a != null && a.setAttribute("role", "button"), s != null && s.setAttribute("role", "button"), a != null && a.focus(), function(R) {
10534
- ue(R, "introjs-showElement");
10535
- var tt = na(R, "position");
10536
- tt !== "absolute" && tt !== "relative" && tt !== "sticky" && tt !== "fixed" && ue(R, "introjs-relativePosition");
10537
+ it === null && (it = lt("div", { className: "introjs-disableInteraction" }), F._targetElement.appendChild(it)), be(F, tt, it);
10538
+ }(t, e), t._currentStep === 0 && t._introItems.length > 1 ? (a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton"), a.innerHTML = t._options.nextLabel), t._options.hidePrev === !0 ? (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton introjs-hidden")), a != null && ue(a, "introjs-fullbutton")) : o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton introjs-disabled"))) : t._introItems.length - 1 === t._currentStep || t._introItems.length === 1 ? (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton")), t._options.hideNext === !0 ? (a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton introjs-hidden")), o != null && ue(o, "introjs-fullbutton")) : a != null && (t._options.nextToDone === !0 ? (a.innerHTML = t._options.doneLabel, ue(a, "".concat(t._options.buttonClass, " introjs-nextbutton introjs-donebutton"))) : a.className = "".concat(t._options.buttonClass, " introjs-nextbutton introjs-disabled"))) : (o != null && (o.className = "".concat(t._options.buttonClass, " introjs-prevbutton")), a != null && (a.className = "".concat(t._options.buttonClass, " introjs-nextbutton"), a.innerHTML = t._options.nextLabel)), o != null && o.setAttribute("role", "button"), a != null && a.setAttribute("role", "button"), s != null && s.setAttribute("role", "button"), a != null && a.focus(), function(F) {
10539
+ ue(F, "introjs-showElement");
10540
+ var tt = na(F, "position");
10541
+ tt !== "absolute" && tt !== "relative" && tt !== "sticky" && tt !== "fixed" && ue(F, "introjs-relativePosition");
10537
10542
  }(e.element), kt(t._introAfterChangeCallback) ? [4, t._introAfterChangeCallback.call(t, e.element)] : [3, 4];
10538
10543
  case 3:
10539
10544
  U.sent(), U.label = 4;
@@ -10870,8 +10875,8 @@ function Ls(t, e) {
10870
10875
  l = d.hasAttribute("data-disable-interaction") ? !!d.getAttribute("data-disable-interaction") : t._options.disableInteraction, n[v] = { element: d, title: d.getAttribute("data-title") || "", intro: d.getAttribute("data-intro") || "", step: v + 1, tooltipClass: d.getAttribute("data-tooltip-class") || void 0, highlightClass: d.getAttribute("data-highlight-class") || void 0, position: d.getAttribute("data-position") || t._options.tooltipPosition, scrollTo: d.getAttribute("data-scroll-to") || t._options.scrollTo, disableInteraction: l };
10871
10876
  }
10872
10877
  }
10873
- for (var E = [], L = 0; L < n.length; L++) n[L] && E.push(n[L]);
10874
- return (n = E).sort(function(I, T) {
10878
+ for (var S = [], L = 0; L < n.length; L++) n[L] && S.push(n[L]);
10879
+ return (n = S).sort(function(I, T) {
10875
10880
  return I.step - T.step;
10876
10881
  }), n;
10877
10882
  }
@@ -11188,24 +11193,24 @@ function Mn(t, e) {
11188
11193
  }), C(I, N);
11189
11194
  }), g(f);
11190
11195
  var v = P(f, 2), _ = w(v);
11191
- le(_), z(() => B(_, "placeholder", n()("add-norm-tag"))), _.__keydown = [qv, s];
11196
+ le(_), z(() => D(_, "placeholder", n()("add-norm-tag"))), _.__keydown = [qv, s];
11192
11197
  var y = P(_, 2);
11193
11198
  y.__click = function(...I) {
11194
11199
  var T;
11195
11200
  (T = s()) == null || T.apply(this, I);
11196
11201
  }, g(v), g(d);
11197
- var E = P(d, 2);
11202
+ var S = P(d, 2);
11198
11203
  {
11199
11204
  var L = (I) => {
11200
11205
  var T = Yv();
11201
11206
  Ct(T, 21, a, Tt, (N, b) => {
11202
- var k = Vv(), x = w(k), A = w(x, !0);
11207
+ var k = Vv(), x = w(k), E = w(x, !0);
11203
11208
  g(x);
11204
- var D = P(x, 2);
11205
- D.__click = [Gv, l, b], g(k), z(() => at(A, h(b))), C(N, k);
11209
+ var H = P(x, 2);
11210
+ H.__click = [Gv, l, b], g(k), z(() => at(E, h(b))), C(N, k);
11206
11211
  }), g(T), C(I, T);
11207
11212
  };
11208
- ut(E, (I) => {
11213
+ ut(S, (I) => {
11209
11214
  a().length > 0 && I(L);
11210
11215
  });
11211
11216
  }
@@ -11264,12 +11269,12 @@ Q(
11264
11269
  !0
11265
11270
  );
11266
11271
  const Zv = (t, e, r, n, i, a, o) => {
11267
- if (S(e, !0), !r().name) {
11272
+ if (A(e, !0), !r().name) {
11268
11273
  alert(n()("alerts.error.name-required"));
11269
11274
  return;
11270
11275
  }
11271
11276
  Se.updateDocument(r()._id, r().name, h(i), r().isPrivate, h(a)).then((s) => {
11272
- s ? r(s) : console.error("Error updating document"), S(e, !1), o(!1);
11277
+ s ? r(s) : console.error("Error updating document"), A(e, !1), o(!1);
11273
11278
  });
11274
11279
  };
11275
11280
  var Wv = (t, e) => e(!1), Qv = (t, e) => t.key === "Enter" && e(), Kv = (t, e, r) => e(h(r)), tp = /* @__PURE__ */ O('<li class="svelte-1uj6rm9"><span class="svelte-1uj6rm9"> </span> <button aria-label="Remove tag" class="svelte-1uj6rm9"><i class="fa-solid fa-xmark"></i></button></li>'), ep = /* @__PURE__ */ O('<ul class="svelte-1uj6rm9"></ul>'), rp = /* @__PURE__ */ O('<div class="spinner svelte-1uj6rm9"><!></div>'), np = /* @__PURE__ */ O('<button class="btn btn-primary"><i class="fa-solid fa-floppy-disk"></i> </button>'), ip = /* @__PURE__ */ O('<div class="modal-backdrop show"></div>'), ap = /* @__PURE__ */ O('<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"><input class="form-control form-control-sm" type="text" placeholder="Nome norma"> <!> <div class="custom-tags svelte-1uj6rm9"><div class="d-flex gap-1"><input type="text" class="form-control form-control-sm custom-input svelte-1uj6rm9" 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);
@@ -11290,44 +11295,44 @@ function Hs(t, e) {
11290
11295
  else
11291
11296
  for (let rt of q.value)
11292
11297
  K.add(rt);
11293
- S(u, M([...Array.from(K)])), S(l, M([...Array.from(j)]));
11298
+ A(u, M([...Array.from(K)])), A(l, M([...Array.from(j)]));
11294
11299
  };
11295
11300
  let l = Y(M([])), u = Y(M([])), c = Y(""), d = Y(""), f = Y(!1);
11296
11301
  function v() {
11297
- h(c).trim() && !h(u).includes(h(c).trim()) && (S(u, M([
11302
+ h(c).trim() && !h(u).includes(h(c).trim()) && (A(u, M([
11298
11303
  ...h(u),
11299
11304
  h(c).trim()
11300
- ])), S(c, ""));
11305
+ ])), A(c, ""));
11301
11306
  }
11302
11307
  function _() {
11303
- h(d).trim() && !h(l).includes(h(d).trim()) && (S(l, M([
11308
+ h(d).trim() && !h(l).includes(h(d).trim()) && (A(l, M([
11304
11309
  ...h(l),
11305
11310
  h(d).trim()
11306
11311
  ])), o([
11307
11312
  ...o(),
11308
11313
  h(d).trim()
11309
- ]), S(d, ""));
11314
+ ]), A(d, ""));
11310
11315
  }
11311
11316
  function y($) {
11312
- h(l).includes($) || S(l, M([...h(l), $]));
11317
+ h(l).includes($) || A(l, M([...h(l), $]));
11313
11318
  }
11314
- function E($) {
11315
- S(u, M(h(u).filter((K) => K !== $)));
11319
+ function S($) {
11320
+ A(u, M(h(u).filter((K) => K !== $)));
11316
11321
  }
11317
11322
  function L($) {
11318
- S(l, M(h(l).filter((K) => K !== $)));
11323
+ A(l, M(h(l).filter((K) => K !== $)));
11319
11324
  }
11320
11325
  Ze(() => {
11321
11326
  s(a());
11322
11327
  });
11323
- var I = ap(), T = Lt(I), N = w(T), b = w(N), k = w(b), x = w(k), A = w(x, !0);
11324
- z(() => at(A, n()("sheet-line.edit"))), g(x);
11325
- var D = P(x, 2);
11326
- D.__click = [Wv, i], g(k);
11327
- var H = P(k, 2), U = w(H);
11328
+ var I = ap(), T = Lt(I), N = w(T), b = w(N), k = w(b), x = w(k), E = w(x, !0);
11329
+ z(() => at(E, n()("sheet-line.edit"))), g(x);
11330
+ var H = P(x, 2);
11331
+ H.__click = [Wv, i], g(k);
11332
+ var B = P(k, 2), U = w(B);
11328
11333
  le(U);
11329
- var R = P(U, 2);
11330
- Mn(R, {
11334
+ var F = P(U, 2);
11335
+ Mn(F, {
11331
11336
  selectNorm: y,
11332
11337
  addNorm: _,
11333
11338
  removeSelectedNorm: L,
@@ -11341,17 +11346,17 @@ function Hs(t, e) {
11341
11346
  return h(l);
11342
11347
  },
11343
11348
  set selectedNorms($) {
11344
- S(l, M($));
11349
+ A(l, M($));
11345
11350
  },
11346
11351
  get newNorm() {
11347
11352
  return h(d);
11348
11353
  },
11349
11354
  set newNorm($) {
11350
- S(d, M($));
11355
+ A(d, M($));
11351
11356
  }
11352
11357
  });
11353
- var tt = P(R, 2), it = w(tt), dt = w(it);
11354
- le(dt), z(() => B(dt, "placeholder", n()("add-document.add-custom-tag"))), dt.__keydown = [Qv, v];
11358
+ var tt = P(F, 2), it = w(tt), dt = w(it);
11359
+ le(dt), z(() => D(dt, "placeholder", n()("add-document.add-custom-tag"))), dt.__keydown = [Qv, v];
11355
11360
  var xt = P(dt, 2);
11356
11361
  xt.__click = v, g(it);
11357
11362
  var X = P(it, 2);
@@ -11362,15 +11367,15 @@ function Hs(t, e) {
11362
11367
  var rt = tp(), Wt = w(rt), J = w(Wt, !0);
11363
11368
  g(Wt);
11364
11369
  var wt = P(Wt, 2);
11365
- wt.__click = [Kv, E, q], g(rt), z(() => at(J, h(q))), C(j, rt);
11370
+ wt.__click = [Kv, S, q], g(rt), z(() => at(J, h(q))), C(j, rt);
11366
11371
  }), g(K), C($, K);
11367
11372
  };
11368
11373
  ut(X, ($) => {
11369
11374
  h(u).length > 0 && $(V);
11370
11375
  });
11371
11376
  }
11372
- g(tt), g(H);
11373
- var _t = P(H, 2), Ot = w(_t);
11377
+ g(tt), g(B);
11378
+ var _t = P(B, 2), Ot = w(_t);
11374
11379
  {
11375
11380
  var St = ($) => {
11376
11381
  var K = rp(), j = w(K);
@@ -11404,7 +11409,7 @@ function Hs(t, e) {
11404
11409
  i() && $(zt);
11405
11410
  });
11406
11411
  }
11407
- return z(() => B(T, "style", `display: ${(i() ? "block" : "none") ?? ""};`)), ye(U, () => a().name, ($) => a(a().name = $, !0)), ye(dt, () => h(c), ($) => S(c, $)), C(t, I), W({
11412
+ return z(() => D(T, "style", `display: ${(i() ? "block" : "none") ?? ""};`)), ye(U, () => a().name, ($) => a(a().name = $, !0)), ye(dt, () => h(c), ($) => A(c, $)), C(t, I), W({
11408
11413
  get showEditDialog() {
11409
11414
  return i();
11410
11415
  },
@@ -11428,14 +11433,14 @@ function Hs(t, e) {
11428
11433
  Te(["click", "keydown"]);
11429
11434
  Q(Hs, { showEditDialog: {}, doc: {}, normArray: {} }, [], [], !0);
11430
11435
  const sp = (t, e, r, n) => {
11431
- t.key === "Enter" && (S(e, M(r()("no-norms"))), n());
11436
+ t.key === "Enter" && (A(e, M(r()("no-norms"))), n());
11432
11437
  }, lp = (t, e, r, n) => {
11433
- t.target && (S(e, M(t.target.value)), h(e) === r()("no-norms") ? n(!1) : n(!0));
11438
+ t.target && (A(e, M(t.target.value)), h(e) === r()("no-norms") ? n(!1) : n(!0));
11434
11439
  };
11435
11440
  var up = /* @__PURE__ */ O("<option> </option>"), cp = () => Dn().start(), dp = (t, e) => e(!0), fp = (t, e, r) => {
11436
- S(e, "template"), r();
11441
+ A(e, "template"), r();
11437
11442
  }, hp = (t, e, r) => {
11438
- S(e, "instantiated"), r();
11443
+ A(e, "instantiated"), r();
11439
11444
  }, vp = /* @__PURE__ */ O('<div class="viewer svelte-1sevczz"><div class="row align-items-center"><div class="col-md-3"><div class="norms-select" data-step="4"><select class="form-select form-select-sm"></select></div></div> <div class="col-md-6 d-flex justify-content-center"><div class="d-flex w-100 ms-5 me-5" data-step="5"><input type="text" class="form-control form-control-sm"></div></div> <div class="col-md-3 d-flex justify-content-end gap-1 align-items-center"><button class="btn btn-sm aks-btn-answer aks-btn-rounded"><i class="fa-solid fa-question"></i></button> <button class="btn btn-primary" data-step="6" data-position="left"><i class="fa-solid fa-plus"></i> </button></div></div> <section class="classic"><ul class="nav nav-tabs" role="tablist"><li class="nav-item" data-step="1" style="cursor: pointer;"><span> </span></li> <li class="nav-item" data-step="3" style="cursor: pointer;"><span> </span></li></ul> <div class="tab-content"><div class="table-wrapper"><table class="table table-striped table-hover align-middle akj-t-doc" id="standard-table-0"><!><tbody></tbody></table></div></div></section></div> <!>', 1);
11440
11445
  const pp = {
11441
11446
  hash: "svelte-1sevczz",
@@ -11459,19 +11464,19 @@ function Bs(t, e) {
11459
11464
  return Ue === n()("no-norms").toLocaleLowerCase() ? We = nn.length === 0 : Ue && (We = nn.some((Ce) => Ce.toLowerCase() === Ue)), Ut ? Tr || We || Ar.tags.some((Ce) => Ce.value.some((Wn) => Wn.toLowerCase().includes(Ut))) : Tr || We;
11460
11465
  });
11461
11466
  }, f = () => {
11462
- S(_, M([...i()].filter((J) => J.path && J.path.includes(h(l))))), h(c) !== "" && h(c) !== n()("no-norms") && v(!0);
11467
+ A(_, M([...i()].filter((J) => J.path && J.path.includes(h(l))))), h(c) !== "" && h(c) !== n()("no-norms") && v(!0);
11463
11468
  }, v = (J = !1) => {
11464
- S(_, M(d([...i()].filter((wt) => wt.path && wt.path.includes(h(l))), h(u), h(c), J)));
11469
+ A(_, M(d([...i()].filter((wt) => wt.path && wt.path.includes(h(l))), h(u), h(c), J)));
11465
11470
  };
11466
- let _ = /* @__PURE__ */ ke(() => d([...i()].filter((J) => J.path && J.path.includes(h(l))), h(u), h(c))), y = Y(!1), E = Y(null);
11471
+ let _ = /* @__PURE__ */ ke(() => d([...i()].filter((J) => J.path && J.path.includes(h(l))), h(u), h(c))), y = Y(!1), S = Y(null);
11467
11472
  const L = (J) => {
11468
- S(E, M(J)), S(y, !0);
11473
+ A(S, M(J)), A(y, !0);
11469
11474
  };
11470
11475
  lr(() => {
11471
11476
  i(), f();
11472
11477
  }), lr(() => {
11473
11478
  s(h(l) === "template" ? "template" : "procedure");
11474
- }), S(l, "template"), f(), Ze(() => {
11479
+ }), A(l, "template"), f(), Ze(() => {
11475
11480
  (!rr("visited") || rr("visited") === "false") && setTimeout(
11476
11481
  () => {
11477
11482
  Dn().setOptions({
@@ -11483,7 +11488,7 @@ function Bs(t, e) {
11483
11488
  );
11484
11489
  });
11485
11490
  var I = vp(), T = Lt(I), N = w(T), b = w(N), k = w(b);
11486
- z(() => B(k, "data-intro", n()("tutorial-step.4")));
11491
+ z(() => D(k, "data-intro", n()("tutorial-step.4")));
11487
11492
  var x = w(k);
11488
11493
  x.__change = [
11489
11494
  lp,
@@ -11496,27 +11501,27 @@ function Bs(t, e) {
11496
11501
  ae !== (ae = h(wt)) && (It.value = (It.__value = h(wt)) == null ? "" : h(wt)), at(Ut, h(wt));
11497
11502
  }), C(J, It);
11498
11503
  }), g(x), g(k), g(b);
11499
- var A = P(b, 2), D = w(A);
11500
- z(() => B(D, "data-intro", n()("tutorial-step.5")));
11501
- var H = w(D);
11502
- le(H), z(() => B(H, "placeholder", `${n()("search") ?? ""}...`)), H.__keyup = [
11504
+ var E = P(b, 2), H = w(E);
11505
+ z(() => D(H, "data-intro", n()("tutorial-step.5")));
11506
+ var B = w(H);
11507
+ le(B), z(() => D(B, "placeholder", `${n()("search") ?? ""}...`)), B.__keyup = [
11503
11508
  sp,
11504
11509
  c,
11505
11510
  n,
11506
11511
  v
11507
- ], g(D), g(A);
11508
- var U = P(A, 2), R = w(U);
11509
- R.__click = [cp], B(R, "aria-label", "Tutorial");
11510
- var tt = P(R, 2);
11511
- tt.__click = [dp, o], z(() => B(tt, "data-intro", n()("tutorial-step.6")));
11512
+ ], g(H), g(E);
11513
+ var U = P(E, 2), F = w(U);
11514
+ F.__click = [cp], D(F, "aria-label", "Tutorial");
11515
+ var tt = P(F, 2);
11516
+ tt.__click = [dp, o], z(() => D(tt, "data-intro", n()("tutorial-step.6")));
11512
11517
  var it = P(w(tt));
11513
11518
  z(() => at(it, ` ${n()("add") ?? ""}`)), g(tt), g(U), g(N);
11514
11519
  var dt = P(N, 2), xt = w(dt), X = w(xt);
11515
- z(() => B(X, "data-intro", n()("tutorial-step.1"))), X.__click = [fp, l, f];
11520
+ z(() => D(X, "data-intro", n()("tutorial-step.1"))), X.__click = [fp, l, f];
11516
11521
  var V = w(X), _t = w(V, !0);
11517
11522
  z(() => at(_t, n()("viewer.templates"))), g(V), g(X);
11518
11523
  var Ot = P(X, 2);
11519
- z(() => B(Ot, "data-intro", n()("tutorial-step.3"))), Ot.__click = [hp, l, f];
11524
+ z(() => D(Ot, "data-intro", n()("tutorial-step.3"))), Ot.__click = [hp, l, f];
11520
11525
  var St = w(Ot), At = w(St, !0);
11521
11526
  z(() => at(At, n()("viewer.procedures"))), g(St), g(Ot), g(xt);
11522
11527
  var yt = P(xt, 2), zt = w(yt), $ = w(zt), K = w($);
@@ -11559,13 +11564,13 @@ function Bs(t, e) {
11559
11564
  return h(y);
11560
11565
  },
11561
11566
  set showEditDialog(wt) {
11562
- S(y, M(wt));
11567
+ A(y, M(wt));
11563
11568
  },
11564
11569
  get doc() {
11565
- return h(E);
11570
+ return h(S);
11566
11571
  },
11567
11572
  set doc(wt) {
11568
- S(E, M(wt));
11573
+ A(S, M(wt));
11569
11574
  },
11570
11575
  get normArray() {
11571
11576
  return a();
@@ -11581,7 +11586,7 @@ function Bs(t, e) {
11581
11586
  }
11582
11587
  return z(() => {
11583
11588
  Be(V, `${`nav-link ${h(l) == "template" ? "active" : ""}` ?? ""} svelte-1sevczz`), Be(St, `${`nav-link ${h(l) != "template" ? "active" : ""}` ?? ""} svelte-1sevczz`);
11584
- }), Xi(x, () => h(c), (J) => S(c, J)), ye(H, () => h(u), (J) => S(u, J)), C(t, I), W({
11589
+ }), Xi(x, () => h(c), (J) => A(c, J)), ye(B, () => h(u), (J) => A(u, J)), C(t, I), W({
11585
11590
  get documents() {
11586
11591
  return i();
11587
11592
  },
@@ -11629,7 +11634,7 @@ const Cp = {
11629
11634
  function Ds(t, e) {
11630
11635
  Z(e, !0), et(t, Cp);
11631
11636
  const r = ne(), n = () => re(pe, "$_", r);
11632
- let i = m(e, "showCreateDialog", 15), a = m(e, "documents", 15), o = m(e, "actSheet", 15), s = m(e, "norms", 7), l = m(e, "refreshDocuments", 7), u = Y("no-ai"), c = Y(""), d = Y(M([])), f = Y(M([])), v = Y(M([...s()])), _ = Y(""), y = Y(""), E = Y(!0), L = Y(!1), I = Y(""), T = Y(""), N = Y(void 0), b = Y(!1);
11637
+ let i = m(e, "showCreateDialog", 15), a = m(e, "documents", 15), o = m(e, "actSheet", 15), s = m(e, "norms", 7), l = m(e, "refreshDocuments", 7), u = Y("no-ai"), c = Y(""), d = Y(M([])), f = Y(M([])), v = Y(M([...s()])), _ = Y(""), y = Y(""), S = Y(!0), L = Y(!1), I = Y(""), T = Y(""), N = Y(void 0), b = Y(!1);
11633
11638
  function k(G) {
11634
11639
  return new Promise((Nt, jt) => {
11635
11640
  const Xt = new FileReader();
@@ -11637,7 +11642,7 @@ function Ds(t, e) {
11637
11642
  });
11638
11643
  }
11639
11644
  function x() {
11640
- if (S(b, !0), !h(c) || h(f).length === 0) {
11645
+ if (A(b, !0), !h(c) || h(f).length === 0) {
11641
11646
  alert(n()("alerts.error.fill-all-data"));
11642
11647
  return;
11643
11648
  }
@@ -11645,15 +11650,15 @@ function Ds(t, e) {
11645
11650
  title: h(c),
11646
11651
  norms: h(f),
11647
11652
  tags: h(d),
11648
- isTemplate: h(E),
11653
+ isTemplate: h(S),
11649
11654
  secret: h(L)
11650
11655
  }).then((G) => {
11651
- G ? (a().push(G.document), l()(), i(!1)) : alert(n()("alerts.error.procedure-creation-error")), S(b, !1);
11656
+ G ? (a().push(G.document), l()(), i(!1)) : alert(n()("alerts.error.procedure-creation-error")), A(b, !1);
11652
11657
  });
11653
11658
  }
11654
- async function A() {
11655
- if (S(b, !0), h(f).length == 0 || !h(I) || !h(T)) {
11656
- alert("Compila tutti i campi"), S(b, !1);
11659
+ async function E() {
11660
+ if (A(b, !0), h(f).length == 0 || !h(I) || !h(T)) {
11661
+ alert("Compila tutti i campi"), A(b, !1);
11657
11662
  return;
11658
11663
  }
11659
11664
  Se.createProcedureWithAI({
@@ -11664,38 +11669,38 @@ function Ds(t, e) {
11664
11669
  full: h(u) === "full",
11665
11670
  file: h(N) ? await k(h(N)) : void 0
11666
11671
  }).then((G) => {
11667
- G ? (h(E) ? alert("Template creato con successo") : alert("Procedura creata con successo"), a().push(G.document), l()(), i(!1)) : alert("Errore nella creazione della procedura");
11672
+ G ? (h(S) ? alert("Template creato con successo") : alert("Procedura creata con successo"), a().push(G.document), l()(), i(!1)) : alert("Errore nella creazione della procedura");
11668
11673
  }).catch((G) => {
11669
11674
  alert("Errore nella creazione della procedura");
11670
11675
  }).finally(() => {
11671
- S(b, !1);
11676
+ A(b, !1);
11672
11677
  });
11673
11678
  }
11674
- function D() {
11675
- h(_).trim() && !h(d).includes(h(_).trim()) && (S(d, M([
11679
+ function H() {
11680
+ h(_).trim() && !h(d).includes(h(_).trim()) && (A(d, M([
11676
11681
  ...h(d),
11677
11682
  h(_).trim()
11678
- ])), S(_, ""));
11683
+ ])), A(_, ""));
11679
11684
  }
11680
- function H() {
11681
- h(y).trim() && !h(v).includes(h(y).trim()) && (S(f, M([
11685
+ function B() {
11686
+ h(y).trim() && !h(v).includes(h(y).trim()) && (A(f, M([
11682
11687
  ...h(f),
11683
11688
  h(y).trim()
11684
- ])), S(y, ""));
11689
+ ])), A(y, ""));
11685
11690
  }
11686
11691
  function U(G) {
11687
- G != n()("no-norms") && !h(f).includes(G) && S(f, M([...h(f), G]));
11692
+ G != n()("no-norms") && !h(f).includes(G) && A(f, M([...h(f), G]));
11688
11693
  }
11689
- function R(G) {
11690
- S(d, M(h(d).filter((Nt) => Nt !== G)));
11694
+ function F(G) {
11695
+ A(d, M(h(d).filter((Nt) => Nt !== G)));
11691
11696
  }
11692
11697
  function tt(G) {
11693
- S(f, M(h(f).filter((Nt) => Nt !== G)));
11698
+ A(f, M(h(f).filter((Nt) => Nt !== G)));
11694
11699
  }
11695
11700
  Ze(() => {
11696
- S(E, o() === "template");
11701
+ A(S, o() === "template");
11697
11702
  }), lr(() => {
11698
- h(u) != "no-ai" && S(E, !0);
11703
+ h(u) != "no-ai" && A(S, !0);
11699
11704
  });
11700
11705
  var it = Tp(), dt = Lt(it), xt = w(dt), X = w(xt), V = w(X), _t = w(V), Ot = w(_t, !0);
11701
11706
  z(() => at(Ot, n()("add-document.add-new"))), g(_t);
@@ -11723,35 +11728,35 @@ function Ds(t, e) {
11723
11728
  {
11724
11729
  var We = (G) => {
11725
11730
  var Nt = wp(), jt = Lt(Nt);
11726
- le(jt), z(() => B(jt, "placeholder", n()("add-document.title")));
11731
+ le(jt), z(() => D(jt, "placeholder", n()("add-document.title")));
11727
11732
  var Xt = P(jt, 2);
11728
11733
  Mn(Xt, {
11729
11734
  selectNorm: U,
11730
- addNorm: H,
11735
+ addNorm: B,
11731
11736
  removeSelectedNorm: tt,
11732
11737
  get localNorms() {
11733
11738
  return h(v);
11734
11739
  },
11735
11740
  set localNorms(Gt) {
11736
- S(v, M(Gt));
11741
+ A(v, M(Gt));
11737
11742
  },
11738
11743
  get selectedNorms() {
11739
11744
  return h(f);
11740
11745
  },
11741
11746
  set selectedNorms(Gt) {
11742
- S(f, M(Gt));
11747
+ A(f, M(Gt));
11743
11748
  },
11744
11749
  get newNorm() {
11745
11750
  return h(y);
11746
11751
  },
11747
11752
  set newNorm(Gt) {
11748
- S(y, M(Gt));
11753
+ A(y, M(Gt));
11749
11754
  }
11750
11755
  });
11751
11756
  var Ne = P(Xt, 2), qt = w(Ne), Cr = w(qt);
11752
- le(Cr), z(() => B(Cr, "placeholder", n()("add-document.add-custom-tag"))), Cr.__keydown = [gp, D];
11757
+ le(Cr), z(() => D(Cr, "placeholder", n()("add-document.add-custom-tag"))), Cr.__keydown = [gp, H];
11753
11758
  var qs = P(Cr, 2);
11754
- qs.__click = D, g(qt);
11759
+ qs.__click = H, g(qt);
11755
11760
  var Gs = P(qt, 2);
11756
11761
  {
11757
11762
  var Vs = (Gt) => {
@@ -11760,43 +11765,43 @@ function Ds(t, e) {
11760
11765
  var Kn = _p(), ti = w(Kn), Xs = w(ti, !0);
11761
11766
  g(ti);
11762
11767
  var Js = P(ti, 2);
11763
- Js.__click = [bp, R, la], g(Kn), z(() => at(Xs, h(la))), C(Ys, Kn);
11768
+ Js.__click = [bp, F, la], g(Kn), z(() => at(Xs, h(la))), C(Ys, Kn);
11764
11769
  }), g(Qn), C(Gt, Qn);
11765
11770
  };
11766
11771
  ut(Gs, (Gt) => {
11767
11772
  h(d).length > 0 && Gt(Vs);
11768
11773
  });
11769
11774
  }
11770
- g(Ne), ye(jt, () => h(c), (Gt) => S(c, Gt)), ye(Cr, () => h(_), (Gt) => S(_, Gt)), C(G, Nt);
11775
+ g(Ne), ye(jt, () => h(c), (Gt) => A(c, Gt)), ye(Cr, () => h(_), (Gt) => A(_, Gt)), C(G, Nt);
11771
11776
  }, nn = (G) => {
11772
11777
  var Nt = xp(), jt = Lt(Nt);
11773
- le(jt), z(() => B(jt, "placeholder", n()("add-document.title")));
11778
+ le(jt), z(() => D(jt, "placeholder", n()("add-document.title")));
11774
11779
  var Xt = P(jt, 2);
11775
11780
  Mn(Xt, {
11776
11781
  selectNorm: U,
11777
- addNorm: H,
11782
+ addNorm: B,
11778
11783
  removeSelectedNorm: tt,
11779
11784
  get localNorms() {
11780
11785
  return h(v);
11781
11786
  },
11782
11787
  set localNorms(qt) {
11783
- S(v, M(qt));
11788
+ A(v, M(qt));
11784
11789
  },
11785
11790
  get selectedNorms() {
11786
11791
  return h(f);
11787
11792
  },
11788
11793
  set selectedNorms(qt) {
11789
- S(f, M(qt));
11794
+ A(f, M(qt));
11790
11795
  },
11791
11796
  get newNorm() {
11792
11797
  return h(y);
11793
11798
  },
11794
11799
  set newNorm(qt) {
11795
- S(y, M(qt));
11800
+ A(y, M(qt));
11796
11801
  }
11797
11802
  });
11798
11803
  var Ne = P(Xt, 2);
11799
- le(Ne), z(() => B(Ne, "placeholder", n()("add-document.society-type"))), ye(jt, () => h(I), (qt) => S(I, qt)), ye(Ne, () => h(T), (qt) => S(T, qt)), C(G, Nt);
11804
+ le(Ne), z(() => D(Ne, "placeholder", n()("add-document.society-type"))), ye(jt, () => h(I), (qt) => A(I, qt)), ye(Ne, () => h(T), (qt) => A(T, qt)), C(G, Nt);
11800
11805
  };
11801
11806
  ut(Tr, (G) => {
11802
11807
  h(u) === "no-ai" ? G(We) : G(nn, !1);
@@ -11814,10 +11819,10 @@ function Ds(t, e) {
11814
11819
  Ep,
11815
11820
  u,
11816
11821
  x,
11817
- A
11822
+ E
11818
11823
  ];
11819
11824
  var Xt = P(w(jt));
11820
- z(() => at(Xt, ` ${(h(E) ? n()("create.template") : n()("create.document")) ?? ""}`)), g(jt), g(Nt), C(G, Nt);
11825
+ z(() => at(Xt, ` ${(h(S) ? n()("create.template") : n()("create.document")) ?? ""}`)), g(jt), g(Nt), C(G, Nt);
11821
11826
  };
11822
11827
  ut(Wn, (G) => {
11823
11828
  h(b) ? G(Rs) : G(Fs, !1);
@@ -11835,8 +11840,8 @@ function Ds(t, e) {
11835
11840
  });
11836
11841
  }
11837
11842
  return z(() => {
11838
- B(dt, "style", `display: ${(i() ? "block" : "none") ?? ""};`), B(It, "style", h(E) ? "color: #ccc" : "font-weight: bold"), Ue.disabled = h(u) !== "no-ai", B(Ar, "style", h(E) ? "font-weight: bold" : "color: #ccc");
11839
- }), Xi(zt, () => h(u), (G) => S(u, G)), cu(Ue, () => h(E), (G) => S(E, G)), C(t, it), W({
11843
+ D(dt, "style", `display: ${(i() ? "block" : "none") ?? ""};`), D(It, "style", h(S) ? "color: #ccc" : "font-weight: bold"), Ue.disabled = h(u) !== "no-ai", D(Ar, "style", h(S) ? "font-weight: bold" : "color: #ccc");
11844
+ }), Xi(zt, () => h(u), (G) => A(u, G)), cu(Ue, () => h(S), (G) => A(S, G)), C(t, it), W({
11840
11845
  get showCreateDialog() {
11841
11846
  return i();
11842
11847
  },
@@ -11910,16 +11915,16 @@ function Ms(t, e) {
11910
11915
  else
11911
11916
  for (let x of k.value)
11912
11917
  T.add(x);
11913
- S(l, M([...Array.from(T)])), S(s, M([
11918
+ A(l, M([...Array.from(T)])), A(s, M([
11914
11919
  n()("no-norms"),
11915
11920
  ...Array.from(N)
11916
11921
  ]));
11917
11922
  }, f = () => {
11918
- S(i, M(c(h(i)))), d();
11923
+ A(i, M(c(h(i)))), d();
11919
11924
  };
11920
11925
  Ze(() => {
11921
- S(a, !0), Se.getDocuments().then((T) => {
11922
- S(i, M(c(T))), S(a, !1), d();
11926
+ A(a, !0), Se.getDocuments().then((T) => {
11927
+ A(i, M(c(T))), A(a, !1), d();
11923
11928
  }), Oi.subscribe((T) => {
11924
11929
  });
11925
11930
  });
@@ -11935,19 +11940,19 @@ function Ms(t, e) {
11935
11940
  return h(u);
11936
11941
  },
11937
11942
  set actSheet(N) {
11938
- S(u, M(N));
11943
+ A(u, M(N));
11939
11944
  },
11940
11945
  get showCreateDialog() {
11941
11946
  return h(o);
11942
11947
  },
11943
11948
  set showCreateDialog(N) {
11944
- S(o, M(N));
11949
+ A(o, M(N));
11945
11950
  },
11946
11951
  get documents() {
11947
11952
  return h(i);
11948
11953
  },
11949
11954
  set documents(N) {
11950
- S(i, M(N));
11955
+ A(i, M(N));
11951
11956
  }
11952
11957
  });
11953
11958
  };
@@ -11955,7 +11960,7 @@ function Ms(t, e) {
11955
11960
  h(o) && T(y);
11956
11961
  });
11957
11962
  }
11958
- var E = P(_, 2);
11963
+ var S = P(_, 2);
11959
11964
  {
11960
11965
  var L = (T) => {
11961
11966
  var N = Np(), b = w(N);
@@ -11966,29 +11971,29 @@ function Ms(t, e) {
11966
11971
  return h(i);
11967
11972
  },
11968
11973
  set documents(N) {
11969
- S(i, M(N));
11974
+ A(i, M(N));
11970
11975
  },
11971
11976
  get normArray() {
11972
11977
  return h(s);
11973
11978
  },
11974
11979
  set normArray(N) {
11975
- S(s, M(N));
11980
+ A(s, M(N));
11976
11981
  },
11977
11982
  get showCreateDialog() {
11978
11983
  return h(o);
11979
11984
  },
11980
11985
  set showCreateDialog(N) {
11981
- S(o, M(N));
11986
+ A(o, M(N));
11982
11987
  },
11983
11988
  get actSheet() {
11984
11989
  return h(u);
11985
11990
  },
11986
11991
  set actSheet(N) {
11987
- S(u, M(N));
11992
+ A(u, M(N));
11988
11993
  }
11989
11994
  });
11990
11995
  };
11991
- ut(E, (T) => {
11996
+ ut(S, (T) => {
11992
11997
  h(a) ? T(L) : T(I, !1);
11993
11998
  });
11994
11999
  }