akpm-knowledge-base-chat 1.0.45 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CDN/akb-chat.js +466 -463
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 1.0.45 */
1
+ /* Version: 1.0.46 */
2
2
  var Na = Object.defineProperty;
3
3
  var Ai = (t) => {
4
4
  throw TypeError(t);
@@ -59,20 +59,20 @@ function so(t) {
59
59
  return io.includes(t);
60
60
  }
61
61
  const Or = !1;
62
- var sr = Array.isArray, ao = Array.prototype.indexOf, ri = Array.from, Un = Object.keys, Hn = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, fs = Object.getOwnPropertyDescriptors, oo = Object.prototype, lo = Array.prototype, ii = Object.getPrototypeOf;
62
+ var ar = Array.isArray, ao = Array.prototype.indexOf, ri = Array.from, Hn = Object.keys, Zn = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, fs = Object.getOwnPropertyDescriptors, oo = Object.prototype, lo = Array.prototype, ii = Object.getPrototypeOf;
63
63
  function co(t) {
64
64
  return typeof t == "function";
65
65
  }
66
- const dn = () => {
66
+ const fn = () => {
67
67
  };
68
68
  function uo(t) {
69
69
  return t();
70
70
  }
71
- function Zn(t) {
71
+ function Gn(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const Je = 2, hs = 4, En = 8, ar = 16, pt = 32, Mt = 64, Gn = 128, Nt = 256, Jn = 512, Le = 1024, St = 2048, Bt = 4096, ot = 8192, nn = 16384, ps = 32768, or = 65536, fo = 1 << 17, ho = 1 << 19, vs = 1 << 20, kt = Symbol("$state"), gs = Symbol("legacy props"), po = Symbol("");
75
+ const Je = 2, hs = 4, Cn = 8, or = 16, pt = 32, Mt = 64, Jn = 128, Nt = 256, Vn = 512, Le = 1024, St = 2048, Bt = 4096, ot = 8192, nn = 16384, ps = 32768, lr = 65536, fo = 1 << 17, ho = 1 << 19, vs = 1 << 20, kt = Symbol("$state"), gs = Symbol("legacy props"), po = Symbol("");
76
76
  function ms(t) {
77
77
  return t === this.v;
78
78
  }
@@ -132,17 +132,17 @@ function re(t) {
132
132
  return /* @__PURE__ */ bs(Me(t));
133
133
  }
134
134
  // @__NO_SIDE_EFFECTS__
135
- function lr(t, e = !1) {
135
+ function cr(t, e = !1) {
136
136
  var r;
137
137
  const n = Me(t);
138
138
  return e || (n.equals = si), rn && le !== null && le.l !== null && ((r = le.l).s ?? (r.s = [])).push(n), n;
139
139
  }
140
140
  function It(t, e = !1) {
141
- return /* @__PURE__ */ bs(/* @__PURE__ */ lr(t, e));
141
+ return /* @__PURE__ */ bs(/* @__PURE__ */ cr(t, e));
142
142
  }
143
143
  // @__NO_SIDE_EFFECTS__
144
144
  function bs(t) {
145
- return pe !== null && pe.f & Je && (lt === null ? No([t]) : lt.push(t)), t;
145
+ return ge !== null && ge.f & Je && (lt === null ? No([t]) : lt.push(t)), t;
146
146
  }
147
147
  function Ir(t, e) {
148
148
  return z(
@@ -151,29 +151,29 @@ function Ir(t, e) {
151
151
  ), e;
152
152
  }
153
153
  function z(t, e) {
154
- return pe !== null && !At && An() && pe.f & (Je | ar) && // If the source was created locally within the current derived, then
154
+ return ge !== null && !At && jn() && ge.f & (Je | or) && // If the source was created locally within the current derived, then
155
155
  // we allow the mutation.
156
156
  (lt === null || !lt.includes(t)) && So(), Pr(t, e);
157
157
  }
158
158
  function Pr(t, e) {
159
- return t.equals(e) || (t.v, t.v = e, t.wv = Fs(), ws(t, St), An() && ee !== null && ee.f & Le && !(ee.f & (pt | Mt)) && (bt === null ? Bo([t]) : bt.push(t))), e;
159
+ return t.equals(e) || (t.v, t.v = e, t.wv = Fs(), ws(t, St), jn() && ee !== null && ee.f & Le && !(ee.f & (pt | Mt)) && (bt === null ? Bo([t]) : bt.push(t))), e;
160
160
  }
161
161
  function ws(t, e) {
162
162
  var n = t.reactions;
163
163
  if (n !== null)
164
- for (var r = An(), i = n.length, s = 0; s < i; s++) {
164
+ for (var r = jn(), i = n.length, s = 0; s < i; s++) {
165
165
  var a = n[s], l = a.f;
166
166
  l & St || !r && a === ee || (nt(a, e), l & (Le | Nt) && (l & Je ? ws(
167
167
  /** @type {Derived} */
168
168
  a,
169
169
  Bt
170
- ) : hr(
170
+ ) : pr(
171
171
  /** @type {Effect} */
172
172
  a
173
173
  )));
174
174
  }
175
175
  }
176
- function cr(t) {
176
+ function ur(t) {
177
177
  console.warn("https://svelte.dev/e/hydration_mismatch");
178
178
  }
179
179
  let Q = !1;
@@ -183,7 +183,7 @@ function xt(t) {
183
183
  let ne;
184
184
  function et(t) {
185
185
  if (t === null)
186
- throw cr(), Jt;
186
+ throw ur(), Jt;
187
187
  return ne = t;
188
188
  }
189
189
  function Xt() {
@@ -195,7 +195,7 @@ function Xt() {
195
195
  function T(t) {
196
196
  if (Q) {
197
197
  if (/* @__PURE__ */ vt(ne) !== null)
198
- throw cr(), Jt;
198
+ throw ur(), Jt;
199
199
  ne = t;
200
200
  }
201
201
  }
@@ -232,7 +232,7 @@ function j(t, e = null, n) {
232
232
  const r = ii(t);
233
233
  if (r !== oo && r !== lo)
234
234
  return t;
235
- var i = /* @__PURE__ */ new Map(), s = sr(t), a = Me(0);
235
+ var i = /* @__PURE__ */ new Map(), s = ar(t), a = Me(0);
236
236
  s && i.set("length", Me(
237
237
  /** @type {any[]} */
238
238
  t.length
@@ -421,9 +421,9 @@ function ai(t) {
421
421
  function Kt(t) {
422
422
  var e = Je | St;
423
423
  ee === null ? e |= Nt : ee.f |= vs;
424
- var n = pe !== null && pe.f & Je ? (
424
+ var n = ge !== null && ge.f & Je ? (
425
425
  /** @type {Derived} */
426
- pe
426
+ ge
427
427
  ) : null;
428
428
  const r = {
429
429
  children: null,
@@ -490,10 +490,10 @@ function Ss(t) {
490
490
  nt(t, n), t.equals(e) || (t.v = e, t.wv = Fs());
491
491
  }
492
492
  function oi(t) {
493
- ys(t), yn(t, 0), nt(t, nn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
493
+ ys(t), zn(t, 0), nt(t, nn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
494
494
  }
495
495
  function $s(t) {
496
- ee === null && pe === null && bo(), pe !== null && pe.f & Nt && mo(), ui && go();
496
+ ee === null && ge === null && bo(), ge !== null && ge.f & Nt && mo(), ui && go();
497
497
  }
498
498
  function Ao(t, e) {
499
499
  var n = e.last;
@@ -520,25 +520,25 @@ function Yt(t, e, n, r = !0) {
520
520
  if (n) {
521
521
  var l = Vt;
522
522
  try {
523
- Pi(!0), fr(a), a.f |= ps;
523
+ Pi(!0), hr(a), a.f |= ps;
524
524
  } catch (u) {
525
525
  throw dt(a), u;
526
526
  } finally {
527
527
  Pi(l);
528
528
  }
529
- } else e !== null && hr(a);
530
- var o = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (vs | Gn)) === 0;
531
- if (!o && !i && r && (s !== null && Ao(a, s), pe !== null && pe.f & Je)) {
529
+ } else e !== null && pr(a);
530
+ var o = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (vs | Jn)) === 0;
531
+ if (!o && !i && r && (s !== null && Ao(a, s), ge !== null && ge.f & Je)) {
532
532
  var c = (
533
533
  /** @type {Derived} */
534
- pe
534
+ ge
535
535
  );
536
536
  (c.children ?? (c.children = [])).push(a);
537
537
  }
538
538
  return a;
539
539
  }
540
540
  function jo(t) {
541
- const e = Yt(En, null, !1);
541
+ const e = Yt(Cn, null, !1);
542
542
  return nt(e, Le), e.teardown = t, e;
543
543
  }
544
544
  function qt(t) {
@@ -552,7 +552,7 @@ function qt(t) {
552
552
  (n.e ?? (n.e = [])).push({
553
553
  fn: t,
554
554
  effect: ee,
555
- reaction: pe
555
+ reaction: ge
556
556
  });
557
557
  } else {
558
558
  var r = sn(t);
@@ -571,7 +571,7 @@ function Lo(t) {
571
571
  function Oo(t) {
572
572
  const e = Yt(Mt, t, !0);
573
573
  return (n = {}) => new Promise((r) => {
574
- n.outro ? Vn(e, () => {
574
+ n.outro ? Wn(e, () => {
575
575
  dt(e), r(void 0);
576
576
  }) : (dt(e), r(void 0));
577
577
  });
@@ -579,7 +579,7 @@ function Oo(t) {
579
579
  function sn(t) {
580
580
  return Yt(hs, t, !1);
581
581
  }
582
- function Cn(t, e) {
582
+ function In(t, e) {
583
583
  var n = (
584
584
  /** @type {ComponentContextLegacy} */
585
585
  le
@@ -588,7 +588,7 @@ function Cn(t, e) {
588
588
  t(), !r.ran && (r.ran = !0, z(n.l.r2, !0), ht(e));
589
589
  });
590
590
  }
591
- function In() {
591
+ function An() {
592
592
  var t = (
593
593
  /** @type {ComponentContextLegacy} */
594
594
  le
@@ -597,29 +597,29 @@ function In() {
597
597
  if (p(t.l.r2)) {
598
598
  for (var e of t.l.r1) {
599
599
  var n = e.effect;
600
- n.f & Le && nt(n, Bt), ln(n) && fr(n), e.ran = !1;
600
+ n.f & Le && nt(n, Bt), ln(n) && hr(n), e.ran = !1;
601
601
  }
602
602
  t.l.r2.v = !1;
603
603
  }
604
604
  });
605
605
  }
606
606
  function an(t) {
607
- return Yt(En, t, !0);
607
+ return Yt(Cn, t, !0);
608
608
  }
609
609
  function L(t, e = [], n = Kt) {
610
610
  const r = e.map(n);
611
- return ur(() => t(...r.map(p)));
611
+ return dr(() => t(...r.map(p)));
612
612
  }
613
- function ur(t, e = 0) {
614
- return Yt(En | ar | e, t, !0);
613
+ function dr(t, e = 0) {
614
+ return Yt(Cn | or | e, t, !0);
615
615
  }
616
616
  function en(t, e = !0) {
617
- return Yt(En | pt, t, !0, e);
617
+ return Yt(Cn | pt, t, !0, e);
618
618
  }
619
619
  function Ts(t) {
620
620
  var e = t.teardown;
621
621
  if (e !== null) {
622
- const n = ui, r = pe;
622
+ const n = ui, r = ge;
623
623
  Fi(!0), ft(null);
624
624
  try {
625
625
  e.call(null);
@@ -661,7 +661,7 @@ function dt(t, e = !0) {
661
661
  }
662
662
  n = !0;
663
663
  }
664
- Cs(t, e && !n), Es(t), yn(t, 0), nt(t, nn);
664
+ Cs(t, e && !n), Es(t), zn(t, 0), nt(t, nn);
665
665
  var a = t.transitions;
666
666
  if (a !== null)
667
667
  for (const o of a)
@@ -674,7 +674,7 @@ function Is(t) {
674
674
  var e = t.parent, n = t.prev, r = t.next;
675
675
  n !== null && (n.next = r), r !== null && (r.prev = n), e !== null && (e.first === t && (e.first = r), e.last === t && (e.last = n));
676
676
  }
677
- function Vn(t, e) {
677
+ function Wn(t, e) {
678
678
  var n = [];
679
679
  li(t, n, !0), As(n, () => {
680
680
  dt(t), e && e();
@@ -695,19 +695,19 @@ function li(t, e, n) {
695
695
  for (const a of t.transitions)
696
696
  (a.is_global || n) && e.push(a);
697
697
  for (var r = t.first; r !== null; ) {
698
- var i = r.next, s = (r.f & or) !== 0 || (r.f & pt) !== 0;
698
+ var i = r.next, s = (r.f & lr) !== 0 || (r.f & pt) !== 0;
699
699
  li(r, e, s ? n : !1), r = i;
700
700
  }
701
701
  }
702
702
  }
703
- function Wn(t) {
703
+ function Xn(t) {
704
704
  js(t, !0);
705
705
  }
706
706
  function js(t, e) {
707
707
  if (t.f & ot) {
708
- t.f ^= ot, t.f & Le || (t.f ^= Le), ln(t) && (nt(t, St), hr(t));
708
+ t.f ^= ot, t.f & Le || (t.f ^= Le), ln(t) && (nt(t, St), pr(t));
709
709
  for (var n = t.first; n !== null; ) {
710
- var r = n.next, i = (n.f & or) !== 0 || (n.f & pt) !== 0;
710
+ var r = n.next, i = (n.f & lr) !== 0 || (n.f & pt) !== 0;
711
711
  js(n, i ? e : !1), n = r;
712
712
  }
713
713
  if (t.transitions !== null)
@@ -716,31 +716,31 @@ function js(t, e) {
716
716
  }
717
717
  }
718
718
  const Fo = typeof requestIdleCallback > "u" ? (t) => setTimeout(t, 1) : requestIdleCallback;
719
- let Xn = !1, Qn = !1, Dr = [], Mr = [];
719
+ let Qn = !1, Kn = !1, Dr = [], Mr = [];
720
720
  function Rs() {
721
- Xn = !1;
721
+ Qn = !1;
722
722
  const t = Dr.slice();
723
- Dr = [], Zn(t);
723
+ Dr = [], Gn(t);
724
724
  }
725
725
  function Ls() {
726
- Qn = !1;
726
+ Kn = !1;
727
727
  const t = Mr.slice();
728
- Mr = [], Zn(t);
728
+ Mr = [], Gn(t);
729
729
  }
730
730
  function on(t) {
731
- Xn || (Xn = !0, queueMicrotask(Rs)), Dr.push(t);
731
+ Qn || (Qn = !0, queueMicrotask(Rs)), Dr.push(t);
732
732
  }
733
733
  function qo(t) {
734
- Qn || (Qn = !0, Fo(Ls)), Mr.push(t);
734
+ Kn || (Kn = !0, Fo(Ls)), Mr.push(t);
735
735
  }
736
736
  function Do() {
737
- Xn && Rs(), Qn && Ls();
737
+ Qn && Rs(), Kn && Ls();
738
738
  }
739
739
  function ci(t) {
740
740
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
741
741
  }
742
742
  const Os = 0, Mo = 1;
743
- let Dn = !1, Mn = Os, xn = !1, kn = null, Vt = !1, ui = !1;
743
+ let Mn = !1, Nn = Os, kn = !1, yn = null, Vt = !1, ui = !1;
744
744
  function Pi(t) {
745
745
  Vt = t;
746
746
  }
@@ -748,9 +748,9 @@ function Fi(t) {
748
748
  ui = t;
749
749
  }
750
750
  let Ot = [], Wt = 0;
751
- let pe = null, At = !1;
751
+ let ge = null, At = !1;
752
752
  function ft(t) {
753
- pe = t;
753
+ ge = t;
754
754
  }
755
755
  let ee = null;
756
756
  function tt(t) {
@@ -764,11 +764,11 @@ let Ne = null, Ge = 0, bt = null;
764
764
  function Bo(t) {
765
765
  bt = t;
766
766
  }
767
- let Ps = 1, Kn = 0, Pt = !1, le = null;
767
+ let Ps = 1, er = 0, Pt = !1, le = null;
768
768
  function Fs() {
769
769
  return ++Ps;
770
770
  }
771
- function An() {
771
+ function jn() {
772
772
  return !rn || le !== null && le.l === null;
773
773
  }
774
774
  function ln(t) {
@@ -779,11 +779,11 @@ function ln(t) {
779
779
  if (e & Bt) {
780
780
  var n = t.deps, r = (e & Nt) !== 0;
781
781
  if (n !== null) {
782
- var i, s, a = (e & Jn) !== 0, l = r && ee !== null && !Pt, o = n.length;
782
+ var i, s, a = (e & Vn) !== 0, l = r && ee !== null && !Pt, o = n.length;
783
783
  if (a || l) {
784
784
  for (i = 0; i < o; i++)
785
785
  s = n[i], (a || !((c = s == null ? void 0 : s.reactions) != null && c.includes(t))) && (s.reactions ?? (s.reactions = [])).push(t);
786
- a && (t.f ^= Jn);
786
+ a && (t.f ^= Vn);
787
787
  }
788
788
  for (i = 0; i < o; i++)
789
789
  if (s = n[i], ln(
@@ -801,27 +801,27 @@ function ln(t) {
801
801
  }
802
802
  function Yo(t, e) {
803
803
  for (var n = e; n !== null; ) {
804
- if (n.f & Gn)
804
+ if (n.f & Jn)
805
805
  try {
806
806
  n.fn(t);
807
807
  return;
808
808
  } catch {
809
- n.f ^= Gn;
809
+ n.f ^= Jn;
810
810
  }
811
811
  n = n.parent;
812
812
  }
813
- throw Dn = !1, t;
813
+ throw Mn = !1, t;
814
814
  }
815
815
  function Uo(t) {
816
- return (t.f & nn) === 0 && (t.parent === null || (t.parent.f & Gn) === 0);
816
+ return (t.f & nn) === 0 && (t.parent === null || (t.parent.f & Jn) === 0);
817
817
  }
818
- function dr(t, e, n, r) {
819
- if (Dn) {
820
- if (n === null && (Dn = !1), Uo(e))
818
+ function fr(t, e, n, r) {
819
+ if (Mn) {
820
+ if (n === null && (Mn = !1), Uo(e))
821
821
  throw t;
822
822
  return;
823
823
  }
824
- n !== null && (Dn = !0);
824
+ n !== null && (Mn = !0);
825
825
  {
826
826
  Yo(t, e);
827
827
  return;
@@ -837,7 +837,7 @@ function qs(t, e, n = 0) {
837
837
  s,
838
838
  e,
839
839
  n + 1
840
- ) : e === s && (n === 0 ? nt(s, St) : s.f & Le && nt(s, Bt), hr(
840
+ ) : e === s && (n === 0 ? nt(s, St) : s.f & Le && nt(s, Bt), pr(
841
841
  /** @type {Effect} */
842
842
  s
843
843
  ));
@@ -845,9 +845,9 @@ function qs(t, e, n = 0) {
845
845
  }
846
846
  function Ds(t) {
847
847
  var h;
848
- var e = Ne, n = Ge, r = bt, i = pe, s = Pt, a = lt, l = le, o = At, c = t.f;
848
+ var e = Ne, n = Ge, r = bt, i = ge, s = Pt, a = lt, l = le, o = At, c = t.f;
849
849
  Ne = /** @type {null | Value[]} */
850
- null, Ge = 0, bt = null, pe = c & (pt | Mt) ? null : t, Pt = !Vt && (c & Nt) !== 0, lt = null, le = t.ctx, At = !1, Kn++;
850
+ null, Ge = 0, bt = null, ge = c & (pt | Mt) ? null : t, Pt = !Vt && (c & Nt) !== 0, lt = null, le = t.ctx, At = !1, er++;
851
851
  try {
852
852
  var u = (
853
853
  /** @type {Function} */
@@ -855,7 +855,7 @@ function Ds(t) {
855
855
  ), d = t.deps;
856
856
  if (Ne !== null) {
857
857
  var f;
858
- if (yn(t, Ge), d !== null && Ge > 0)
858
+ if (zn(t, Ge), d !== null && Ge > 0)
859
859
  for (d.length = Ge + Ne.length, f = 0; f < Ne.length; f++)
860
860
  d[Ge + f] = Ne[f];
861
861
  else
@@ -863,8 +863,8 @@ function Ds(t) {
863
863
  if (!Pt)
864
864
  for (f = Ge; f < d.length; f++)
865
865
  ((h = d[f]).reactions ?? (h.reactions = [])).push(t);
866
- } else d !== null && Ge < d.length && (yn(t, Ge), d.length = Ge);
867
- if (An() && bt !== null && !(t.f & (Je | Bt | St)))
866
+ } else d !== null && Ge < d.length && (zn(t, Ge), d.length = Ge);
867
+ if (jn() && bt !== null && !(t.f & (Je | Bt | St)))
868
868
  for (f = 0; f < /** @type {Source[]} */
869
869
  bt.length; f++)
870
870
  qs(
@@ -872,9 +872,9 @@ function Ds(t) {
872
872
  /** @type {Effect} */
873
873
  t
874
874
  );
875
- return i !== null && Kn++, u;
875
+ return i !== null && er++, u;
876
876
  } finally {
877
- Ne = e, Ge = n, bt = r, pe = i, Pt = s, lt = a, le = l, At = o;
877
+ Ne = e, Ge = n, bt = r, ge = i, Pt = s, lt = a, le = l, At = o;
878
878
  }
879
879
  }
880
880
  function Ho(t, e) {
@@ -889,32 +889,32 @@ function Ho(t, e) {
889
889
  n === null && e.f & Je && // Destroying a child effect while updating a parent effect can cause a dependency to appear
890
890
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
891
891
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
892
- (Ne === null || !Ne.includes(e)) && (nt(e, Bt), e.f & (Nt | Jn) || (e.f ^= Jn), yn(
892
+ (Ne === null || !Ne.includes(e)) && (nt(e, Bt), e.f & (Nt | Vn) || (e.f ^= Vn), zn(
893
893
  /** @type {Derived} **/
894
894
  e,
895
895
  0
896
896
  ));
897
897
  }
898
- function yn(t, e) {
898
+ function zn(t, e) {
899
899
  var n = t.deps;
900
900
  if (n !== null)
901
901
  for (var r = e; r < n.length; r++)
902
902
  Ho(t, n[r]);
903
903
  }
904
- function fr(t) {
904
+ function hr(t) {
905
905
  var e = t.f;
906
906
  if (!(e & nn)) {
907
907
  nt(t, Le);
908
908
  var n = ee, r = le;
909
909
  ee = t;
910
910
  try {
911
- e & ar ? Po(t) : Cs(t), Es(t), Ts(t);
911
+ e & or ? Po(t) : Cs(t), Es(t), Ts(t);
912
912
  var i = Ds(t);
913
913
  t.teardown = typeof i == "function" ? i : null, t.wv = Ps;
914
914
  var s = t.deps, a;
915
915
  Or && $o && t.f & St;
916
916
  } catch (l) {
917
- dr(l, t, n, r || t.ctx);
917
+ fr(l, t, n, r || t.ctx);
918
918
  } finally {
919
919
  ee = n;
920
920
  }
@@ -926,8 +926,8 @@ function Ms() {
926
926
  try {
927
927
  wo();
928
928
  } catch (t) {
929
- if (kn !== null)
930
- dr(t, kn, null);
929
+ if (yn !== null)
930
+ fr(t, yn, null);
931
931
  else
932
932
  throw t;
933
933
  }
@@ -959,20 +959,20 @@ function Zo(t) {
959
959
  var r = t[n];
960
960
  if (!(r.f & (nn | ot)))
961
961
  try {
962
- ln(r) && (fr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Is(r) : r.fn = null));
962
+ ln(r) && (hr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Is(r) : r.fn = null));
963
963
  } catch (i) {
964
- dr(i, r, null, r.ctx);
964
+ fr(i, r, null, r.ctx);
965
965
  }
966
966
  }
967
967
  }
968
968
  function Go() {
969
- if (xn = !1, Wt > 1001)
969
+ if (kn = !1, Wt > 1001)
970
970
  return;
971
971
  const t = Ot;
972
- Ot = [], Ns(t), xn || (Wt = 0, kn = null);
972
+ Ot = [], Ns(t), kn || (Wt = 0, yn = null);
973
973
  }
974
- function hr(t) {
975
- Mn === Os && (xn || (xn = !0, queueMicrotask(Go))), kn = t;
974
+ function pr(t) {
975
+ Nn === Os && (kn || (kn = !0, queueMicrotask(Go))), yn = t;
976
976
  for (var e = t; e.parent !== null; ) {
977
977
  e = e.parent;
978
978
  var n = e.f;
@@ -988,14 +988,14 @@ function Bs(t, e) {
988
988
  e: for (; n !== null; ) {
989
989
  var i = n.f, s = (i & pt) !== 0, a = s && (i & Le) !== 0, l = n.next;
990
990
  if (!a && !(i & ot))
991
- if (i & En) {
991
+ if (i & Cn) {
992
992
  if (s)
993
993
  n.f ^= Le;
994
994
  else
995
995
  try {
996
- ln(n) && fr(n);
996
+ ln(n) && hr(n);
997
997
  } catch (d) {
998
- dr(d, n, null, n.ctx);
998
+ fr(d, n, null, n.ctx);
999
999
  }
1000
1000
  var o = n.first;
1001
1001
  if (o !== null) {
@@ -1022,15 +1022,15 @@ function Bs(t, e) {
1022
1022
  o = r[u], e.push(o), Bs(o, e);
1023
1023
  }
1024
1024
  function v(t) {
1025
- var e = Mn, n = Ot;
1025
+ var e = Nn, n = Ot;
1026
1026
  try {
1027
1027
  Ms();
1028
1028
  const i = [];
1029
- Mn = Mo, Ot = i, xn = !1, Ns(n);
1029
+ Nn = Mo, Ot = i, kn = !1, Ns(n);
1030
1030
  var r = t == null ? void 0 : t();
1031
- return Do(), (Ot.length > 0 || i.length > 0) && v(), Wt = 0, kn = null, r;
1031
+ return Do(), (Ot.length > 0 || i.length > 0) && v(), Wt = 0, yn = null, r;
1032
1032
  } finally {
1033
- Mn = e, Ot = n;
1033
+ Nn = e, Ot = n;
1034
1034
  }
1035
1035
  }
1036
1036
  async function Jo() {
@@ -1049,10 +1049,10 @@ function p(t) {
1049
1049
  t
1050
1050
  ), r;
1051
1051
  }
1052
- if (pe !== null && !At) {
1052
+ if (ge !== null && !At) {
1053
1053
  lt !== null && lt.includes(t) && zo();
1054
- var i = pe.deps;
1055
- t.rv < Kn && (t.rv = Kn, Ne === null && i !== null && i[Ge] === t ? Ge++ : Ne === null ? Ne = [t] : Ne.push(t));
1054
+ var i = ge.deps;
1055
+ t.rv < er && (t.rv = er, Ne === null && i !== null && i[Ge] === t ? Ge++ : Ne === null ? Ne = [t] : Ne.push(t));
1056
1056
  } else if (n && /** @type {Derived} */
1057
1057
  t.deps === null)
1058
1058
  for (var s = (
@@ -1114,7 +1114,7 @@ function G(t) {
1114
1114
  t !== void 0 && (e.x = t);
1115
1115
  const a = e.e;
1116
1116
  if (a !== null) {
1117
- var n = ee, r = pe;
1117
+ var n = ee, r = ge;
1118
1118
  e.e = null;
1119
1119
  try {
1120
1120
  for (var i = 0; i < a.length; i++) {
@@ -1196,7 +1196,7 @@ function Ys() {
1196
1196
  ));
1197
1197
  }
1198
1198
  function Us(t) {
1199
- var e = pe, n = ee;
1199
+ var e = ge, n = ee;
1200
1200
  ft(null), tt(null);
1201
1201
  try {
1202
1202
  return t();
@@ -1214,7 +1214,7 @@ function Hs(t, e, n, r = n) {
1214
1214
  const Zs = /* @__PURE__ */ new Set(), Yr = /* @__PURE__ */ new Set();
1215
1215
  function Gs(t, e, n, r) {
1216
1216
  function i(s) {
1217
- if (r.capture || gn.call(e, s), !s.cancelBubble)
1217
+ if (r.capture || mn.call(e, s), !s.cancelBubble)
1218
1218
  return Us(() => n.call(this, s));
1219
1219
  }
1220
1220
  return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? on(() => {
@@ -1233,7 +1233,7 @@ function jt(t) {
1233
1233
  for (var n of Yr)
1234
1234
  n(t);
1235
1235
  }
1236
- function gn(t) {
1236
+ function mn(t) {
1237
1237
  var _;
1238
1238
  var e = this, n = (
1239
1239
  /** @type {Node} */
@@ -1256,13 +1256,13 @@ function gn(t) {
1256
1256
  }
1257
1257
  if (s = /** @type {Element} */
1258
1258
  i[a] || t.target, s !== e) {
1259
- Hn(t, "currentTarget", {
1259
+ Zn(t, "currentTarget", {
1260
1260
  configurable: !0,
1261
1261
  get() {
1262
1262
  return s || n;
1263
1263
  }
1264
1264
  });
1265
- var u = pe, d = ee;
1265
+ var u = ge, d = ee;
1266
1266
  ft(null), tt(null);
1267
1267
  try {
1268
1268
  for (var f, h = []; s !== null; ) {
@@ -1272,7 +1272,7 @@ function gn(t) {
1272
1272
  var m = s["__" + r];
1273
1273
  if (m !== void 0 && !/** @type {any} */
1274
1274
  s.disabled)
1275
- if (sr(m)) {
1275
+ if (ar(m)) {
1276
1276
  var [$, ...y] = m;
1277
1277
  $.apply(s, [t, ...y]);
1278
1278
  } else
@@ -1357,7 +1357,7 @@ function Ko(t, e, n = "svg") {
1357
1357
  return ct(o, o), o;
1358
1358
  };
1359
1359
  }
1360
- function he() {
1360
+ function ve() {
1361
1361
  if (Q)
1362
1362
  return ct(ne, null), ne;
1363
1363
  var t = document.createDocumentFragment(), e = document.createComment(""), n = Qt();
@@ -1401,7 +1401,7 @@ function el(t, e) {
1401
1401
  const a = Vs(t, { ...e, anchor: s });
1402
1402
  if (ne === null || ne.nodeType !== 8 || /** @type {Comment} */
1403
1403
  ne.data !== ni)
1404
- throw cr(), Jt;
1404
+ throw ur(), Jt;
1405
1405
  return xt(!1), /** @type {Exports} */
1406
1406
  a;
1407
1407
  } catch (a) {
@@ -1421,9 +1421,9 @@ function Vs(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
1421
1421
  if (!l.has(h)) {
1422
1422
  l.add(h);
1423
1423
  var b = so(h);
1424
- e.addEventListener(h, gn, { passive: b });
1424
+ e.addEventListener(h, mn, { passive: b });
1425
1425
  var m = Gt.get(h);
1426
- m === void 0 ? (document.addEventListener(h, gn, { passive: b }), Gt.set(h, 1)) : Gt.set(h, m + 1);
1426
+ m === void 0 ? (document.addEventListener(h, mn, { passive: b }), Gt.set(h, 1)) : Gt.set(h, m + 1);
1427
1427
  }
1428
1428
  }
1429
1429
  };
@@ -1447,12 +1447,12 @@ function Vs(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
1447
1447
  }), () => {
1448
1448
  var b;
1449
1449
  for (var f of l) {
1450
- e.removeEventListener(f, gn);
1450
+ e.removeEventListener(f, mn);
1451
1451
  var h = (
1452
1452
  /** @type {number} */
1453
1453
  Gt.get(f)
1454
1454
  );
1455
- --h === 0 ? (document.removeEventListener(f, gn), Gt.delete(f)) : Gt.set(f, h);
1455
+ --h === 0 ? (document.removeEventListener(f, mn), Gt.delete(f)) : Gt.set(f, h);
1456
1456
  }
1457
1457
  Yr.delete(o), d !== n && ((b = d.parentNode) == null || b.removeChild(d));
1458
1458
  };
@@ -1466,7 +1466,7 @@ function tl(t, e) {
1466
1466
  }
1467
1467
  function N(t, e, n = !1) {
1468
1468
  Q && Xt();
1469
- var r = t, i = null, s = null, a = De, l = n ? or : 0, o = !1;
1469
+ var r = t, i = null, s = null, a = De, l = n ? lr : 0, o = !1;
1470
1470
  const c = (d, f = !0) => {
1471
1471
  o = !0, u(f, d);
1472
1472
  }, u = (d, f) => {
@@ -1479,13 +1479,13 @@ function N(t, e, n = !1) {
1479
1479
  );
1480
1480
  !!a === b && (r = Fr(), et(r), xt(!1), h = !0);
1481
1481
  }
1482
- a ? (i ? Wn(i) : f && (i = en(() => f(r))), s && Vn(s, () => {
1482
+ a ? (i ? Xn(i) : f && (i = en(() => f(r))), s && Wn(s, () => {
1483
1483
  s = null;
1484
- })) : (s ? Wn(s) : f && (s = en(() => f(r))), i && Vn(i, () => {
1484
+ })) : (s ? Xn(s) : f && (s = en(() => f(r))), i && Wn(i, () => {
1485
1485
  i = null;
1486
1486
  })), h && xt(!0);
1487
1487
  };
1488
- ur(() => {
1488
+ dr(() => {
1489
1489
  o = !1, e(c), o || u(null, null);
1490
1490
  }, l), Q && (r = ne);
1491
1491
  }
@@ -1529,9 +1529,9 @@ function je(t, e, n, r, i, s = null) {
1529
1529
  Q && Xt();
1530
1530
  var u = null, d = !1, f = /* @__PURE__ */ ks(() => {
1531
1531
  var h = n();
1532
- return sr(h) ? h : h == null ? [] : ri(h);
1532
+ return ar(h) ? h : h == null ? [] : ri(h);
1533
1533
  });
1534
- ur(() => {
1534
+ dr(() => {
1535
1535
  var h = p(f), b = h.length;
1536
1536
  if (d && b === 0)
1537
1537
  return;
@@ -1570,7 +1570,7 @@ function je(t, e, n, r, i, s = null) {
1570
1570
  if (!Q) {
1571
1571
  var k = (
1572
1572
  /** @type {Effect} */
1573
- pe
1573
+ ge
1574
1574
  );
1575
1575
  rl(
1576
1576
  h,
@@ -1582,13 +1582,13 @@ function je(t, e, n, r, i, s = null) {
1582
1582
  r
1583
1583
  );
1584
1584
  }
1585
- s !== null && (b === 0 ? u ? Wn(u) : u = en(() => s(a)) : u !== null && Vn(u, () => {
1585
+ s !== null && (b === 0 ? u ? Xn(u) : u = en(() => s(a)) : u !== null && Wn(u, () => {
1586
1586
  u = null;
1587
1587
  })), m && xt(!0), p(f);
1588
1588
  }), Q && (a = ne);
1589
1589
  }
1590
1590
  function rl(t, e, n, r, i, s, a, l) {
1591
- var _e, se, ue, ve;
1591
+ var _e, se, de, me;
1592
1592
  var o = (i & Ua) !== 0, c = (i & (Kr | ei)) !== 0, u = t.length, d = e.items, f = e.first, h = f, b, m = null, $, y = [], _ = [], C, E, x, k;
1593
1593
  if (o)
1594
1594
  for (k = 0; k < u; k += 1)
@@ -1612,7 +1612,7 @@ function rl(t, e, n, r, i, s, a, l) {
1612
1612
  ), d.set(E, m), y = [], _ = [], h = m.next;
1613
1613
  continue;
1614
1614
  }
1615
- if (c && il(x, C, k, i), x.e.f & ot && (Wn(x.e), o && ((se = x.a) == null || se.unfix(), ($ ?? ($ = /* @__PURE__ */ new Set())).delete(x))), x !== h) {
1615
+ if (c && il(x, C, k, i), x.e.f & ot && (Xn(x.e), o && ((se = x.a) == null || se.unfix(), ($ ?? ($ = /* @__PURE__ */ new Set())).delete(x))), x !== h) {
1616
1616
  if (b !== void 0 && b.has(x)) {
1617
1617
  if (y.length < _.length) {
1618
1618
  var R = _[0], Y;
@@ -1640,21 +1640,21 @@ function rl(t, e, n, r, i, s, a, l) {
1640
1640
  (s || !(h.e.f & ot)) && D.push(h), h = h.next;
1641
1641
  var U = D.length;
1642
1642
  if (U > 0) {
1643
- var me = i & cs && u === 0 ? n : null;
1643
+ var be = i & cs && u === 0 ? n : null;
1644
1644
  if (o) {
1645
1645
  for (k = 0; k < U; k += 1)
1646
- (ue = D[k].a) == null || ue.measure();
1646
+ (de = D[k].a) == null || de.measure();
1647
1647
  for (k = 0; k < U; k += 1)
1648
- (ve = D[k].a) == null || ve.fix();
1648
+ (me = D[k].a) == null || me.fix();
1649
1649
  }
1650
- nl(e, D, me, d);
1650
+ nl(e, D, be, d);
1651
1651
  }
1652
1652
  }
1653
1653
  o && on(() => {
1654
- var de;
1654
+ var fe;
1655
1655
  if ($ !== void 0)
1656
1656
  for (x of $)
1657
- (de = x.a) == null || de.apply();
1657
+ (fe = x.a) == null || fe.apply();
1658
1658
  }), ee.first = e.first && e.first.e, ee.last = m && m.e;
1659
1659
  }
1660
1660
  function il(t, e, n, r) {
@@ -1665,7 +1665,7 @@ function il(t, e, n, r) {
1665
1665
  ) : t.i = n;
1666
1666
  }
1667
1667
  function Ws(t, e, n, r, i, s, a, l, o, c) {
1668
- var u = (o & Kr) !== 0, d = (o & Ha) === 0, f = u ? d ? /* @__PURE__ */ lr(i) : Me(i) : i, h = o & ei ? Me(a) : a, b = {
1668
+ var u = (o & Kr) !== 0, d = (o & Ha) === 0, f = u ? d ? /* @__PURE__ */ cr(i) : Me(i) : i, h = o & ei ? Me(a) : a, b = {
1669
1669
  i: h,
1670
1670
  v: f,
1671
1671
  k: s,
@@ -1703,7 +1703,7 @@ function Ct(t, e, n) {
1703
1703
  }
1704
1704
  function Zr(t, e, n, r, i) {
1705
1705
  var s = t, a = "", l;
1706
- ur(() => {
1706
+ dr(() => {
1707
1707
  if (a === (a = e() ?? "")) {
1708
1708
  Q && Xt();
1709
1709
  return;
@@ -1716,7 +1716,7 @@ function Zr(t, e, n, r, i) {
1716
1716
  c = o, o = /** @type {TemplateNode} */
1717
1717
  /* @__PURE__ */ vt(o);
1718
1718
  if (o === null)
1719
- throw cr(), Jt;
1719
+ throw ur(), Jt;
1720
1720
  ct(ne, c), s = et(o);
1721
1721
  return;
1722
1722
  }
@@ -1944,7 +1944,7 @@ function dl(t) {
1944
1944
  }
1945
1945
  };
1946
1946
  }
1947
- function Pn(t, e) {
1947
+ function Fn(t, e) {
1948
1948
  t.dispatchEvent(new CustomEvent(e));
1949
1949
  }
1950
1950
  function fl(t) {
@@ -1968,10 +1968,10 @@ function Bi(t) {
1968
1968
  return e;
1969
1969
  }
1970
1970
  const hl = (t) => t;
1971
- function jn(t, e, n, r) {
1971
+ function Rn(t, e, n, r) {
1972
1972
  var i = (t & Wa) !== 0, s = "both", a, l = e.inert, o = e.style.overflow, c, u;
1973
1973
  function d() {
1974
- var $ = pe, y = ee;
1974
+ var $ = ge, y = ee;
1975
1975
  ft(null), tt(null);
1976
1976
  try {
1977
1977
  return a ?? (a = n()(e, (r == null ? void 0 : r()) ?? /** @type {P} */
@@ -1985,13 +1985,13 @@ function jn(t, e, n, r) {
1985
1985
  var f = {
1986
1986
  is_global: i,
1987
1987
  in() {
1988
- e.inert = l, Pn(e, "introstart"), c = Gr(e, d(), u, 1, () => {
1989
- Pn(e, "introend"), c == null || c.abort(), c = a = void 0, e.style.overflow = o;
1988
+ e.inert = l, Fn(e, "introstart"), c = Gr(e, d(), u, 1, () => {
1989
+ Fn(e, "introend"), c == null || c.abort(), c = a = void 0, e.style.overflow = o;
1990
1990
  });
1991
1991
  },
1992
1992
  out($) {
1993
- e.inert = !0, Pn(e, "outrostart"), u = Gr(e, d(), c, 0, () => {
1994
- Pn(e, "outroend"), $ == null || $();
1993
+ e.inert = !0, Fn(e, "outrostart"), u = Gr(e, d(), c, 0, () => {
1994
+ Fn(e, "outroend"), $ == null || $();
1995
1995
  });
1996
1996
  },
1997
1997
  stop: () => {
@@ -2007,8 +2007,8 @@ function jn(t, e, n, r) {
2007
2007
  for (var m = (
2008
2008
  /** @type {Effect | null} */
2009
2009
  h.parent
2010
- ); m && m.f & or; )
2011
- for (; (m = m.parent) && !(m.f & ar); )
2010
+ ); m && m.f & lr; )
2011
+ for (; (m = m.parent) && !(m.f & or); )
2012
2012
  ;
2013
2013
  b = !m || (m.f & ps) !== 0;
2014
2014
  }
@@ -2037,9 +2037,9 @@ function Gr(t, e, n, r, i) {
2037
2037
  }
2038
2038
  if (n == null || n.deactivate(), !(e != null && e.duration))
2039
2039
  return i(), {
2040
- abort: dn,
2041
- deactivate: dn,
2042
- reset: dn,
2040
+ abort: fn,
2041
+ deactivate: fn,
2042
+ reset: fn,
2043
2043
  t: () => r
2044
2044
  };
2045
2045
  const { delay: o = 0, css: c, tick: u, easing: d = hl } = e;
@@ -2081,10 +2081,10 @@ function Gr(t, e, n, r, i) {
2081
2081
  };
2082
2082
  }, {
2083
2083
  abort: () => {
2084
- m && (m.cancel(), m.effect = null, m.onfinish = dn);
2084
+ m && (m.cancel(), m.effect = null, m.onfinish = fn);
2085
2085
  },
2086
2086
  deactivate: () => {
2087
- i = dn;
2087
+ i = fn;
2088
2088
  },
2089
2089
  reset: () => {
2090
2090
  r === 0 && (u == null || u(1, 0));
@@ -2093,7 +2093,7 @@ function Gr(t, e, n, r, i) {
2093
2093
  };
2094
2094
  }
2095
2095
  function pl(t, e, n = e) {
2096
- var r = An();
2096
+ var r = jn();
2097
2097
  Hs(t, "input", (i) => {
2098
2098
  var s = i ? t.defaultValue : t.value;
2099
2099
  if (s = Ar(t) ? jr(s) : s, n(s), r && s !== (s = e())) {
@@ -2120,7 +2120,7 @@ function ta(t, e, n) {
2120
2120
  if (t.multiple)
2121
2121
  return ml(t, e);
2122
2122
  for (var r of t.options) {
2123
- var i = bn(r);
2123
+ var i = wn(r);
2124
2124
  if (Co(i, e)) {
2125
2125
  r.selected = !0;
2126
2126
  return;
@@ -2154,27 +2154,27 @@ function gl(t, e, n = e) {
2154
2154
  Hs(t, "change", (i) => {
2155
2155
  var s = i ? "[selected]" : ":checked", a;
2156
2156
  if (t.multiple)
2157
- a = [].map.call(t.querySelectorAll(s), bn);
2157
+ a = [].map.call(t.querySelectorAll(s), wn);
2158
2158
  else {
2159
2159
  var l = t.querySelector(s) ?? // will fall back to first non-disabled option if no option is selected
2160
2160
  t.querySelector("option:not([disabled])");
2161
- a = l && bn(l);
2161
+ a = l && wn(l);
2162
2162
  }
2163
2163
  n(a);
2164
2164
  }), sn(() => {
2165
2165
  var i = e();
2166
2166
  if (ta(t, i, r), r && i === void 0) {
2167
2167
  var s = t.querySelector(":checked");
2168
- s !== null && (i = bn(s), n(i));
2168
+ s !== null && (i = wn(s), n(i));
2169
2169
  }
2170
2170
  t.__value = i, r = !1;
2171
2171
  }), vl(t);
2172
2172
  }
2173
2173
  function ml(t, e) {
2174
2174
  for (var n of t.options)
2175
- n.selected = ~e.indexOf(bn(n));
2175
+ n.selected = ~e.indexOf(wn(n));
2176
2176
  }
2177
- function bn(t) {
2177
+ function wn(t) {
2178
2178
  return "__value" in t ? t.__value : t.value;
2179
2179
  }
2180
2180
  function Yi(t, e) {
@@ -2216,7 +2216,7 @@ function Ye(t = !1) {
2216
2216
  r = () => p(a);
2217
2217
  }
2218
2218
  n.b.length && Ro(() => {
2219
- Ui(e, r), Zn(n.b);
2219
+ Ui(e, r), Gn(n.b);
2220
2220
  }), qt(() => {
2221
2221
  const i = ht(() => n.m.map(uo));
2222
2222
  return () => {
@@ -2224,7 +2224,7 @@ function Ye(t = !1) {
2224
2224
  typeof s == "function" && s();
2225
2225
  };
2226
2226
  }), n.a.length && qt(() => {
2227
- Ui(e, r), Zn(n.a);
2227
+ Ui(e, r), Gn(n.a);
2228
2228
  });
2229
2229
  }
2230
2230
  function Ui(t, e) {
@@ -2259,7 +2259,7 @@ function _l() {
2259
2259
  ]
2260
2260
  );
2261
2261
  if (i) {
2262
- const a = sr(i) ? i.slice() : [i], l = wl(
2262
+ const a = ar(i) ? i.slice() : [i], l = wl(
2263
2263
  /** @type {string} */
2264
2264
  e,
2265
2265
  n,
@@ -2279,13 +2279,13 @@ function xl(t) {
2279
2279
  );
2280
2280
  return e.u ?? (e.u = { a: [], b: [], m: [] });
2281
2281
  }
2282
- let Fn = !1;
2282
+ let qn = !1;
2283
2283
  function kl(t) {
2284
- var e = Fn;
2284
+ var e = qn;
2285
2285
  try {
2286
- return Fn = !1, [t(), Fn];
2286
+ return qn = !1, [t(), qn];
2287
2287
  } finally {
2288
- Fn = e;
2288
+ qn = e;
2289
2289
  }
2290
2290
  }
2291
2291
  const yl = {
@@ -2382,7 +2382,7 @@ function g(t, e, n, r) {
2382
2382
  return arguments.length > 0 ? ((!s || !Y || _ || o) && d(Y ? $() : R), R) : $();
2383
2383
  };
2384
2384
  }
2385
- var C = !1, E = !1, x = /* @__PURE__ */ lr(c), k = Hi(
2385
+ var C = !1, E = !1, x = /* @__PURE__ */ cr(c), k = Hi(
2386
2386
  () => /* @__PURE__ */ Kt(() => {
2387
2387
  var R = $(), Y = p(x);
2388
2388
  return C ? (C = !1, E = !0, Y) : (E = !1, x.v = R);
@@ -2413,7 +2413,7 @@ class $l {
2413
2413
  Er(this, Xe);
2414
2414
  var s;
2415
2415
  var n = /* @__PURE__ */ new Map(), r = (a, l) => {
2416
- var o = /* @__PURE__ */ lr(l);
2416
+ var o = /* @__PURE__ */ cr(l);
2417
2417
  return n.set(a, o), o;
2418
2418
  };
2419
2419
  const i = new Proxy(
@@ -2439,7 +2439,7 @@ class $l {
2439
2439
  recover: e.recover
2440
2440
  })), (!((s = e == null ? void 0 : e.props) != null && s.$$host) || e.sync === !1) && v(), Cr(this, wt, i.$$events);
2441
2441
  for (const a of Object.keys(qe(this, Xe)))
2442
- a === "$set" || a === "$destroy" || a === "$on" || Hn(this, a, {
2442
+ a === "$set" || a === "$destroy" || a === "$on" || Zn(this, a, {
2443
2443
  get() {
2444
2444
  return qe(this, Xe)[a];
2445
2445
  },
@@ -2549,7 +2549,7 @@ typeof HTMLElement == "function" && (ra = class extends HTMLElement {
2549
2549
  i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = e(i), n.default = !0) : n[i] = e(i));
2550
2550
  for (const i of this.attributes) {
2551
2551
  const s = this.$$g_p(i.name);
2552
- s in this.$$d || (this.$$d[s] = Nn(s, i.value, this.$$p_d, "toProp"));
2552
+ s in this.$$d || (this.$$d[s] = Bn(s, i.value, this.$$p_d, "toProp"));
2553
2553
  }
2554
2554
  for (const i in this.$$p_d)
2555
2555
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -2565,10 +2565,10 @@ typeof HTMLElement == "function" && (ra = class extends HTMLElement {
2565
2565
  an(() => {
2566
2566
  var i;
2567
2567
  this.$$r = !0;
2568
- for (const s of Un(this.$$c)) {
2568
+ for (const s of Hn(this.$$c)) {
2569
2569
  if (!((i = this.$$p_d[s]) != null && i.reflect)) continue;
2570
2570
  this.$$d[s] = this.$$c[s];
2571
- const a = Nn(
2571
+ const a = Bn(
2572
2572
  s,
2573
2573
  this.$$d[s],
2574
2574
  this.$$p_d,
@@ -2596,7 +2596,7 @@ typeof HTMLElement == "function" && (ra = class extends HTMLElement {
2596
2596
  */
2597
2597
  attributeChangedCallback(e, n, r) {
2598
2598
  var i;
2599
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Nn(e, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [e]: this.$$d[e] }));
2599
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Bn(e, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [e]: this.$$d[e] }));
2600
2600
  }
2601
2601
  disconnectedCallback() {
2602
2602
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2607,12 +2607,12 @@ typeof HTMLElement == "function" && (ra = class extends HTMLElement {
2607
2607
  * @param {string} attribute_name
2608
2608
  */
2609
2609
  $$g_p(e) {
2610
- return Un(this.$$p_d).find(
2610
+ return Hn(this.$$p_d).find(
2611
2611
  (n) => this.$$p_d[n].attribute === e || !this.$$p_d[n].attribute && n.toLowerCase() === e
2612
2612
  ) || e;
2613
2613
  }
2614
2614
  });
2615
- function Nn(t, e, n, r) {
2615
+ function Bn(t, e, n, r) {
2616
2616
  var s;
2617
2617
  const i = (s = n[t]) == null ? void 0 : s.type;
2618
2618
  if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !r || !n[t])
@@ -2657,19 +2657,19 @@ function V(t, e, n, r, i, s) {
2657
2657
  super(t, n, i), this.$$p_d = e;
2658
2658
  }
2659
2659
  static get observedAttributes() {
2660
- return Un(e).map(
2660
+ return Hn(e).map(
2661
2661
  (l) => (e[l].attribute || l).toLowerCase()
2662
2662
  );
2663
2663
  }
2664
2664
  };
2665
- return Un(e).forEach((l) => {
2666
- Hn(a.prototype, l, {
2665
+ return Hn(e).forEach((l) => {
2666
+ Zn(a.prototype, l, {
2667
2667
  get() {
2668
2668
  return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
2669
2669
  },
2670
2670
  set(o) {
2671
2671
  var d;
2672
- o = Nn(l, o, e), this.$$d[l] = o;
2672
+ o = Bn(l, o, e), this.$$d[l] = o;
2673
2673
  var c = this.$$c;
2674
2674
  if (c) {
2675
2675
  var u = (d = Ft(c, l)) == null ? void 0 : d.get;
@@ -2678,7 +2678,7 @@ function V(t, e, n, r, i, s) {
2678
2678
  }
2679
2679
  });
2680
2680
  }), r.forEach((l) => {
2681
- Hn(a.prototype, l, {
2681
+ Zn(a.prototype, l, {
2682
2682
  get() {
2683
2683
  var o;
2684
2684
  return (o = this.$$c) == null ? void 0 : o[l];
@@ -2886,7 +2886,7 @@ function sa(t, e) {
2886
2886
  var E = H(C, 2);
2887
2887
  E.__click = [Pl, r];
2888
2888
  var x = H(E, 2);
2889
- return x.__click = [Fl, r, n], T(m), T(u), T(c), gl(f, a), jn(3, c, () => hi, () => ({ duration: 300 })), w(t, c), G({
2889
+ return x.__click = [Fl, r, n], T(m), T(u), T(c), gl(f, a), Rn(3, c, () => hi, () => ({ duration: 300 })), w(t, c), G({
2890
2890
  get show() {
2891
2891
  return n();
2892
2892
  },
@@ -2969,7 +2969,7 @@ const Ml = () => {
2969
2969
  getToken: Nl,
2970
2970
  getEnvironmentId: Bl
2971
2971
  };
2972
- class zn {
2972
+ class Sn {
2973
2973
  constructor(e, n, r, i, s, a, l, o = "", c = !1, u = (/* @__PURE__ */ new Date()).getTime(), d = "loading") {
2974
2974
  A(this, "_id");
2975
2975
  A(this, "title");
@@ -3000,13 +3000,13 @@ class zn {
3000
3000
  };
3001
3001
  }
3002
3002
  static fromJson(e) {
3003
- return new zn(e._id, e.title, e.companyId, e.private, e.externalId, e.idArchivio, e.hash, e.gendocId, e.isCommon, e.createdAt, e.checked);
3003
+ return new Sn(e._id, e.title, e.companyId, e.private, e.externalId, e.idArchivio, e.hash, e.gendocId, e.isCommon, e.createdAt, e.checked);
3004
3004
  }
3005
3005
  static fromJsonArray(e) {
3006
- return e.map((n) => zn.fromJson(n));
3006
+ return e.map((n) => Sn.fromJson(n));
3007
3007
  }
3008
3008
  }
3009
- class er {
3009
+ class tr {
3010
3010
  constructor(e, n, r, i, s, a, l = (/* @__PURE__ */ new Date()).getTime()) {
3011
3011
  A(this, "_id");
3012
3012
  A(this, "title");
@@ -3029,10 +3029,10 @@ class er {
3029
3029
  };
3030
3030
  }
3031
3031
  static fromJson(e) {
3032
- return new er(e._id, e.title, e.externalId, e.idArchivio, e.isArchived, e.status, e.createdAt);
3032
+ return new tr(e._id, e.title, e.externalId, e.idArchivio, e.isArchived, e.status, e.createdAt);
3033
3033
  }
3034
3034
  static fromJsonArray(e) {
3035
- return e.map((n) => er.fromJson(n));
3035
+ return e.map((n) => tr.fromJson(n));
3036
3036
  }
3037
3037
  }
3038
3038
  const aa = (t) => {
@@ -3097,7 +3097,7 @@ const Gl = async (t) => {
3097
3097
  });
3098
3098
  if (!e.ok)
3099
3099
  throw new Error("Failed to fetch documents");
3100
- return (await e.json()).map((r) => zn.fromJson(r));
3100
+ return (await e.json()).map((r) => Sn.fromJson(r));
3101
3101
  }, Jl = async (t, e, n) => {
3102
3102
  if (e.endsWith(".akd")) {
3103
3103
  if (!n)
@@ -3136,8 +3136,8 @@ const Gl = async (t) => {
3136
3136
  });
3137
3137
  if (!e.ok)
3138
3138
  throw new Error("Failed to fetch normative");
3139
- return (await e.json()).map((r) => er.fromJson(r));
3140
- }, Sn = {
3139
+ return (await e.json()).map((r) => tr.fromJson(r));
3140
+ }, $n = {
3141
3141
  getDocuments: Gl,
3142
3142
  getDocumentPage: Jl,
3143
3143
  getNormative: Wl,
@@ -3724,12 +3724,12 @@ function pc(t, e) {
3724
3724
  Z(e, !1), X(t, hc);
3725
3725
  const n = It();
3726
3726
  let r = g(e, "size", 12, "40px"), i = g(e, "duration", 12, "3s"), s = g(e, "pause", 12, !1);
3727
- Cn(() => cn(r()), () => {
3727
+ In(() => cn(r()), () => {
3728
3728
  z(n, [
3729
3729
  `width: ${r()}`,
3730
3730
  `height: ${r()}`
3731
3731
  ].join(";"));
3732
- }), In(), Ye();
3732
+ }), An(), Ye();
3733
3733
  var a = fc();
3734
3734
  return L(() => {
3735
3735
  B(a, "style", `--duration: ${i() ?? ""}; ${p(n) ?? ""}`), W(a, "pause-animation", s());
@@ -4056,12 +4056,12 @@ const Tc = {
4056
4056
  function Ec(t, e) {
4057
4057
  Z(e, !1), X(t, Tc);
4058
4058
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "2.1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), l = It();
4059
- Cn(
4059
+ In(
4060
4060
  () => cn(n()),
4061
4061
  () => {
4062
4062
  z(l, mi(n(), 0.2));
4063
4063
  }
4064
- ), In(), Ye();
4064
+ ), An(), Ye();
4065
4065
  var o = $c();
4066
4066
  return je(o, 5, () => it(2, 1), Ae, (c, u) => {
4067
4067
  var d = Sc();
@@ -5009,12 +5009,12 @@ const pu = {
5009
5009
  function vu(t, e) {
5010
5010
  Z(e, !1), X(t, pu);
5011
5011
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1.3s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), l = It();
5012
- Cn(
5012
+ In(
5013
5013
  () => cn(n()),
5014
5014
  () => {
5015
5015
  z(l, mi(n(), 0.6));
5016
5016
  }
5017
- ), In(), Ye();
5017
+ ), An(), Ye();
5018
5018
  var o = hu(), c = I(o);
5019
5019
  return T(o), L(() => {
5020
5020
  B(o, "style", `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${p(l) ?? ""}; --duration: ${i() ?? ""};`), W(c, "pause-animation", a());
@@ -5301,12 +5301,12 @@ function Cu(t, e) {
5301
5301
  var d;
5302
5302
  Z(e, !1), X(t, Eu);
5303
5303
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), i = g(e, "duration", 12, "1s"), s = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), l = ((d = i().match(Ce)) == null ? void 0 : d[0]) ?? "s", o = i().replace(Ce, ""), c = It();
5304
- Cn(
5304
+ In(
5305
5305
  () => cn(n()),
5306
5306
  () => {
5307
5307
  z(c, mi(n(), 1));
5308
5308
  }
5309
- ), In(), Ye();
5309
+ ), An(), Ye();
5310
5310
  var u = Tu();
5311
5311
  return je(u, 5, () => it(2, 1), Ae, (f, h) => {
5312
5312
  var b = $u();
@@ -5511,7 +5511,7 @@ function oa(t, e) {
5511
5511
  const c = () => {
5512
5512
  r(!1), z(o, ""), z(s, j([])), z(a, j([]));
5513
5513
  }, u = (q) => {
5514
- q instanceof zn ? n(
5514
+ q instanceof Sn ? n(
5515
5515
  n()[q._id] = {
5516
5516
  title: q.title,
5517
5517
  ext_id: q.externalId,
@@ -5535,7 +5535,7 @@ function oa(t, e) {
5535
5535
  }
5536
5536
  z(l, !0);
5537
5537
  try {
5538
- z(a, j(await Sn.getNormative(q)));
5538
+ z(a, j(await $n.getNormative(q)));
5539
5539
  } catch (D) {
5540
5540
  console.error("Errore nella ricerca normativa:", D), z(a, j([]));
5541
5541
  } finally {
@@ -5548,7 +5548,7 @@ function oa(t, e) {
5548
5548
  }
5549
5549
  z(l, !0);
5550
5550
  try {
5551
- z(s, j(await Sn.getDocuments(q)));
5551
+ z(s, j(await $n.getDocuments(q)));
5552
5552
  } catch (D) {
5553
5553
  console.error("Errore nella ricerca documenti:", D), z(s, j([]));
5554
5554
  } finally {
@@ -5573,18 +5573,18 @@ function oa(t, e) {
5573
5573
  var D = Fu(), U = I(D);
5574
5574
  bi(U, { size: "30", color: "#295dcf" }), Eo(2), T(D), w(q, D);
5575
5575
  }, te = (q) => {
5576
- var D = he(), U = oe(D);
5576
+ var D = ve(), U = oe(D);
5577
5577
  {
5578
- var me = (se) => {
5579
- var ue = qu();
5580
- w(se, ue);
5578
+ var be = (se) => {
5579
+ var de = qu();
5580
+ w(se, de);
5581
5581
  }, _e = (se) => {
5582
- var ue = he(), ve = oe(ue);
5582
+ var de = ve(), me = oe(de);
5583
5583
  {
5584
- var de = (fe) => {
5585
- var Ee = he(), xe = oe(Ee);
5584
+ var fe = (he) => {
5585
+ var Ee = ve(), xe = oe(Ee);
5586
5586
  {
5587
- var be = (ce) => {
5587
+ var we = (ce) => {
5588
5588
  var ye = Du();
5589
5589
  w(ce, ye);
5590
5590
  }, ke = (ce) => {
@@ -5597,14 +5597,14 @@ function oa(t, e) {
5597
5597
  }), T(ye), w(ce, ye);
5598
5598
  };
5599
5599
  N(xe, (ce) => {
5600
- p(a).length === 0 ? ce(be) : ce(ke, !1);
5600
+ p(a).length === 0 ? ce(we) : ce(ke, !1);
5601
5601
  });
5602
5602
  }
5603
- w(fe, Ee);
5604
- }, Ie = (fe) => {
5605
- var Ee = he(), xe = oe(Ee);
5603
+ w(he, Ee);
5604
+ }, Ie = (he) => {
5605
+ var Ee = ve(), xe = oe(Ee);
5606
5606
  {
5607
- var be = (ce) => {
5607
+ var we = (ce) => {
5608
5608
  var ye = Yu();
5609
5609
  w(ce, ye);
5610
5610
  }, ke = (ce) => {
@@ -5615,34 +5615,34 @@ function oa(t, e) {
5615
5615
  var st = I(Fe), $t = I(st);
5616
5616
  {
5617
5617
  var P = (K) => {
5618
- var ge = Hu();
5619
- w(K, ge);
5618
+ var ue = Hu();
5619
+ w(K, ue);
5620
5620
  }, M = (K) => {
5621
- var ge = he(), rt = oe(ge);
5621
+ var ue = ve(), rt = oe(ue);
5622
5622
  {
5623
5623
  var Ve = (Tt) => {
5624
5624
  var Rt = Zu();
5625
5625
  w(Tt, Rt);
5626
5626
  }, We = (Tt) => {
5627
- var Rt = he(), br = oe(Rt);
5627
+ var Rt = ve(), wr = oe(Rt);
5628
5628
  {
5629
- var wr = ($e) => {
5629
+ var _r = ($e) => {
5630
5630
  var Te = Gu();
5631
5631
  w($e, Te);
5632
- }, Ln = ($e) => {
5633
- var Te = he(), Lt = oe(Te);
5632
+ }, On = ($e) => {
5633
+ var Te = ve(), Lt = oe(Te);
5634
5634
  {
5635
5635
  var un = (Ue) => {
5636
5636
  var gt = Ju();
5637
5637
  w(Ue, gt);
5638
- }, _r = (Ue) => {
5639
- var gt = he(), xr = oe(gt);
5638
+ }, dn = (Ue) => {
5639
+ var gt = ve(), xr = oe(gt);
5640
5640
  {
5641
5641
  var kr = (He) => {
5642
5642
  var mt = Vu();
5643
5643
  w(He, mt);
5644
5644
  }, yr = (He) => {
5645
- var mt = he(), zr = oe(mt);
5645
+ var mt = ve(), zr = oe(mt);
5646
5646
  {
5647
5647
  var Sr = (Ze) => {
5648
5648
  var Et = Wu();
@@ -5674,7 +5674,7 @@ function oa(t, e) {
5674
5674
  N(
5675
5675
  Lt,
5676
5676
  (Ue) => {
5677
- p(O).title.split(".").pop() === "xlsx" ? Ue(un) : Ue(_r, !1);
5677
+ p(O).title.split(".").pop() === "xlsx" ? Ue(un) : Ue(dn, !1);
5678
5678
  },
5679
5679
  !0
5680
5680
  );
@@ -5682,9 +5682,9 @@ function oa(t, e) {
5682
5682
  w($e, Te);
5683
5683
  };
5684
5684
  N(
5685
- br,
5685
+ wr,
5686
5686
  ($e) => {
5687
- p(O).title.split(".").pop() === "docx" ? $e(wr) : $e(Ln, !1);
5687
+ p(O).title.split(".").pop() === "docx" ? $e(_r) : $e(On, !1);
5688
5688
  },
5689
5689
  !0
5690
5690
  );
@@ -5699,15 +5699,15 @@ function oa(t, e) {
5699
5699
  !0
5700
5700
  );
5701
5701
  }
5702
- w(K, ge);
5702
+ w(K, ue);
5703
5703
  };
5704
5704
  N($t, (K) => {
5705
5705
  p(O).isCommon ? K(P) : K(M, !1);
5706
5706
  });
5707
5707
  }
5708
5708
  T(st);
5709
- var ze = H(st, 2), we = I(ze), Se = I(we, !0);
5710
- T(we), T(ze), T(Fe), L((K) => ut(Se, K), [
5709
+ var ze = H(st, 2), pe = I(ze), Se = I(pe, !0);
5710
+ T(pe), T(ze), T(Fe), L((K) => ut(Se, K), [
5711
5711
  () => p(O).isCommon ? p(O).title.split(".")[0] : p(O).title
5712
5712
  ]), w(Re, Fe);
5713
5713
  }), T(ye), w(ce, ye);
@@ -5715,27 +5715,27 @@ function oa(t, e) {
5715
5715
  N(
5716
5716
  xe,
5717
5717
  (ce) => {
5718
- p(s).length === 0 ? ce(be) : ce(ke, !1);
5718
+ p(s).length === 0 ? ce(we) : ce(ke, !1);
5719
5719
  },
5720
5720
  !0
5721
5721
  );
5722
5722
  }
5723
- w(fe, Ee);
5723
+ w(he, Ee);
5724
5724
  };
5725
5725
  N(
5726
- ve,
5727
- (fe) => {
5728
- i() ? fe(de) : fe(Ie, !1);
5726
+ me,
5727
+ (he) => {
5728
+ i() ? he(fe) : he(Ie, !1);
5729
5729
  },
5730
5730
  !0
5731
5731
  );
5732
5732
  }
5733
- w(se, ue);
5733
+ w(se, de);
5734
5734
  };
5735
5735
  N(
5736
5736
  U,
5737
5737
  (se) => {
5738
- p(o).length < 3 ? se(me) : se(_e, !1);
5738
+ p(o).length < 3 ? se(be) : se(_e, !1);
5739
5739
  },
5740
5740
  !0
5741
5741
  );
@@ -5847,7 +5847,7 @@ function la(t, e) {
5847
5847
  }, k = () => {
5848
5848
  z(Y, !0);
5849
5849
  }, F = async (P, M, ze) => {
5850
- await Sn.getDocumentPage(P, M, ze);
5850
+ await $n.getDocumentPage(P, M, ze);
5851
5851
  };
5852
5852
  let R = re(!1), Y = re(!1);
5853
5853
  qt(() => {
@@ -5855,116 +5855,116 @@ function la(t, e) {
5855
5855
  });
5856
5856
  var te = $d(), q = oe(te), D = I(q), U = I(D);
5857
5857
  Xo(U), U.__keyup = [rd, y], T(D);
5858
- var me = H(D, 2), _e = I(me), se = I(_e), ue = I(se);
5859
- ue.__click = [nd, R];
5860
- var ve = H(ue, 2);
5858
+ var be = H(D, 2), _e = I(be), se = I(_e), de = I(se);
5859
+ de.__click = [nd, R];
5860
+ var me = H(de, 2);
5861
5861
  {
5862
- var de = (P) => {
5862
+ var fe = (P) => {
5863
5863
  var M = id(), ze = I(M);
5864
5864
  ze.__click = function(...Ve) {
5865
5865
  var We;
5866
5866
  (We = p(a) ? () => {
5867
5867
  } : C) == null || We.apply(this, Ve);
5868
5868
  };
5869
- var we = H(ze, 2);
5870
- we.__click = function(...Ve) {
5869
+ var pe = H(ze, 2);
5870
+ pe.__click = function(...Ve) {
5871
5871
  var We;
5872
5872
  (We = p(l) ? () => {
5873
5873
  } : E) == null || We.apply(this, Ve);
5874
5874
  };
5875
- var Se = H(we, 2), K = /* @__PURE__ */ Kt(() => Object.keys(p(o)).length < 2 ? _ : () => {
5875
+ var Se = H(pe, 2), K = /* @__PURE__ */ Kt(() => Object.keys(p(o)).length < 2 ? _ : () => {
5876
5876
  });
5877
5877
  Se.__click = function(...Ve) {
5878
5878
  var We;
5879
5879
  (We = p(K)) == null || We.apply(this, Ve);
5880
5880
  };
5881
- var ge = H(I(Se), 2), rt = I(ge);
5882
- T(ge), T(Se), T(M), L(
5881
+ var ue = H(I(Se), 2), rt = I(ue);
5882
+ T(ue), T(Se), T(M), L(
5883
5883
  (Ve) => {
5884
- Oe(ze, `${`dropdown-option ${p(a) ? "option-disabled" : ""}` ?? ""} svelte-12zt47u`), Oe(we, `${`dropdown-option ${p(l) ? "option-disabled" : ""}` ?? ""} svelte-12zt47u`), Oe(Se, `${Ve ?? ""} svelte-12zt47u`), ut(rt, `Scegli ${(p(a) ? "Normativa" : "File") ?? ""}`);
5884
+ Oe(ze, `${`dropdown-option ${p(a) ? "option-disabled" : ""}` ?? ""} svelte-12zt47u`), Oe(pe, `${`dropdown-option ${p(l) ? "option-disabled" : ""}` ?? ""} svelte-12zt47u`), Oe(Se, `${Ve ?? ""} svelte-12zt47u`), ut(rt, `Scegli ${(p(a) ? "Normativa" : "File") ?? ""}`);
5885
5885
  },
5886
5886
  [
5887
5887
  () => `dropdown-option ${Object.keys(p(o)).length < 2 ? "" : "option-disabled"}`
5888
5888
  ]
5889
5889
  ), w(P, M);
5890
5890
  };
5891
- N(ve, (P) => {
5892
- p(R) && P(de);
5891
+ N(me, (P) => {
5892
+ p(R) && P(fe);
5893
5893
  });
5894
5894
  }
5895
5895
  T(se);
5896
- var Ie = H(se, 2), fe = I(Ie);
5896
+ var Ie = H(se, 2), he = I(Ie);
5897
5897
  {
5898
5898
  var Ee = (P) => {
5899
5899
  var M = od(), ze = H(I(M), 4);
5900
5900
  {
5901
- var we = (Se) => {
5901
+ var pe = (Se) => {
5902
5902
  var K = ad();
5903
5903
  K.__click = [sd, a], w(Se, K);
5904
5904
  };
5905
5905
  N(ze, (Se) => {
5906
- Object.keys(p(o)).length === 0 && Se(we);
5906
+ Object.keys(p(o)).length === 0 && Se(pe);
5907
5907
  });
5908
5908
  }
5909
5909
  T(M), w(P, M);
5910
5910
  };
5911
- N(fe, (P) => {
5911
+ N(he, (P) => {
5912
5912
  p(a) && P(Ee);
5913
5913
  });
5914
5914
  }
5915
- var xe = H(fe, 2);
5915
+ var xe = H(he, 2);
5916
5916
  {
5917
- var be = (P) => {
5917
+ var we = (P) => {
5918
5918
  var M = ud(), ze = H(I(M), 4);
5919
5919
  {
5920
- var we = (Se) => {
5920
+ var pe = (Se) => {
5921
5921
  var K = cd();
5922
5922
  K.__click = [ld, l], w(Se, K);
5923
5923
  };
5924
5924
  N(ze, (Se) => {
5925
- Object.keys(p(o)).length === 0 && Se(we);
5925
+ Object.keys(p(o)).length === 0 && Se(pe);
5926
5926
  });
5927
5927
  }
5928
5928
  T(M), w(P, M);
5929
5929
  };
5930
5930
  N(xe, (P) => {
5931
- p(l) && P(be);
5931
+ p(l) && P(we);
5932
5932
  });
5933
5933
  }
5934
5934
  var ke = H(xe, 2);
5935
5935
  je(ke, 17, () => Object.entries(p(o)), Ae, (P, M) => {
5936
- let ze = () => p(M)[0], we = () => p(M)[1].title, Se = () => p(M)[1].ext_id, K = () => p(M)[1].gendoc_id, ge = () => p(M)[1].isCommon;
5936
+ let ze = () => p(M)[0], pe = () => p(M)[1].title, Se = () => p(M)[1].ext_id, K = () => p(M)[1].gendoc_id, ue = () => p(M)[1].isCommon;
5937
5937
  var rt = kd(), Ve = I(rt);
5938
5938
  {
5939
5939
  var We = ($e) => {
5940
5940
  var Te = dd();
5941
5941
  w($e, Te);
5942
5942
  }, Tt = ($e) => {
5943
- var Te = he(), Lt = oe(Te);
5943
+ var Te = ve(), Lt = oe(Te);
5944
5944
  {
5945
5945
  var un = (Ue) => {
5946
5946
  var gt = fd();
5947
5947
  w(Ue, gt);
5948
- }, _r = (Ue) => {
5949
- var gt = he(), xr = oe(gt);
5948
+ }, dn = (Ue) => {
5949
+ var gt = ve(), xr = oe(gt);
5950
5950
  {
5951
5951
  var kr = (He) => {
5952
5952
  var mt = hd();
5953
5953
  w(He, mt);
5954
5954
  }, yr = (He) => {
5955
- var mt = he(), zr = oe(mt);
5955
+ var mt = ve(), zr = oe(mt);
5956
5956
  {
5957
5957
  var Sr = (Ze) => {
5958
5958
  var Et = pd();
5959
5959
  w(Ze, Et);
5960
5960
  }, $r = (Ze) => {
5961
- var Et = he(), Oa = oe(Et);
5961
+ var Et = ve(), Oa = oe(Et);
5962
5962
  {
5963
5963
  var Pa = (Ht) => {
5964
- var On = vd();
5965
- w(Ht, On);
5964
+ var Pn = vd();
5965
+ w(Ht, Pn);
5966
5966
  }, Fa = (Ht) => {
5967
- var On = he(), qa = oe(On);
5967
+ var Pn = ve(), qa = oe(Pn);
5968
5968
  {
5969
5969
  var Da = (Zt) => {
5970
5970
  var Tr = gd();
@@ -5976,17 +5976,17 @@ function la(t, e) {
5976
5976
  N(
5977
5977
  qa,
5978
5978
  (Zt) => {
5979
- we().split(".").pop() === "akd" ? Zt(Da) : Zt(Ma, !1);
5979
+ pe().split(".").pop() === "akd" ? Zt(Da) : Zt(Ma, !1);
5980
5980
  },
5981
5981
  !0
5982
5982
  );
5983
5983
  }
5984
- w(Ht, On);
5984
+ w(Ht, Pn);
5985
5985
  };
5986
5986
  N(
5987
5987
  Oa,
5988
5988
  (Ht) => {
5989
- we().split(".").pop() === "pptx" ? Ht(Pa) : Ht(Fa, !1);
5989
+ pe().split(".").pop() === "pptx" ? Ht(Pa) : Ht(Fa, !1);
5990
5990
  },
5991
5991
  !0
5992
5992
  );
@@ -5996,7 +5996,7 @@ function la(t, e) {
5996
5996
  N(
5997
5997
  zr,
5998
5998
  (Ze) => {
5999
- we().split(".").pop() === "xlsx" ? Ze(Sr) : Ze($r, !1);
5999
+ pe().split(".").pop() === "xlsx" ? Ze(Sr) : Ze($r, !1);
6000
6000
  },
6001
6001
  !0
6002
6002
  );
@@ -6006,7 +6006,7 @@ function la(t, e) {
6006
6006
  N(
6007
6007
  xr,
6008
6008
  (He) => {
6009
- we().split(".").pop() === "docx" ? He(kr) : He(yr, !1);
6009
+ pe().split(".").pop() === "docx" ? He(kr) : He(yr, !1);
6010
6010
  },
6011
6011
  !0
6012
6012
  );
@@ -6016,7 +6016,7 @@ function la(t, e) {
6016
6016
  N(
6017
6017
  Lt,
6018
6018
  (Ue) => {
6019
- we().split(".").pop() === "pdf" ? Ue(un) : Ue(_r, !1);
6019
+ pe().split(".").pop() === "pdf" ? Ue(un) : Ue(dn, !1);
6020
6020
  },
6021
6021
  !0
6022
6022
  );
@@ -6024,38 +6024,41 @@ function la(t, e) {
6024
6024
  w($e, Te);
6025
6025
  };
6026
6026
  N(Ve, ($e) => {
6027
- ge() ? $e(We) : $e(Tt, !1);
6027
+ ue() ? $e(We) : $e(Tt, !1);
6028
6028
  });
6029
6029
  }
6030
6030
  var Rt = H(Ve, 2);
6031
6031
  {
6032
- var br = ($e) => {
6032
+ var wr = ($e) => {
6033
6033
  var Te = bd(), Lt = I(Te, !0);
6034
6034
  T(Te), L(
6035
- (un) => {
6036
- B(Te, "title", p(a) ? "Normativa" : "Documento comune"), ut(Lt, un);
6035
+ (un, dn) => {
6036
+ B(Te, "title", un), ut(Lt, dn);
6037
6037
  },
6038
- [() => we().split(".")[0]]
6038
+ [
6039
+ () => ue() ? pe().split(".")[0] : pe(),
6040
+ () => pe().split(".")[0]
6041
+ ]
6039
6042
  ), w($e, Te);
6040
- }, wr = ($e) => {
6043
+ }, _r = ($e) => {
6041
6044
  var Te = _d();
6042
6045
  Oe(Te, "attachment-title open-file-button svelte-12zt47u"), Te.__click = [
6043
6046
  wd,
6044
6047
  F,
6045
6048
  Se,
6046
- we,
6049
+ pe,
6047
6050
  K
6048
6051
  ];
6049
6052
  var Lt = I(Te, !0);
6050
- T(Te), L(() => ut(Lt, we())), w($e, Te);
6053
+ T(Te), L(() => ut(Lt, pe())), w($e, Te);
6051
6054
  };
6052
6055
  N(Rt, ($e) => {
6053
- ge() ? $e(br) : $e(wr, !1);
6056
+ ue() ? $e(wr) : $e(_r, !1);
6054
6057
  });
6055
6058
  }
6056
- var Ln = H(Rt, 2);
6057
- Ln.__click = [xd, o, ze], T(rt), L(() => {
6058
- Oe(rt, `${`attachment-item ${ge() ? "common" : ""}` ?? ""} svelte-12zt47u`), B(rt, "title", we()), Oe(Ln, `${`remove-btn ${ge() ? "common" : ""}` ?? ""} svelte-12zt47u`);
6059
+ var On = H(Rt, 2);
6060
+ On.__click = [xd, o, ze], T(rt), L(() => {
6061
+ Oe(rt, `${`attachment-item ${ue() ? "common" : ""}` ?? ""} svelte-12zt47u`), B(rt, "title", ue() ? p(a) ? "Normativa" : "Documento comune" : pe()), Oe(On, `${`remove-btn ${ue() ? "common" : ""}` ?? ""} svelte-12zt47u`);
6059
6062
  }), w(P, rt);
6060
6063
  }), T(Ie), na(Ie, (P) => h = P, () => h);
6061
6064
  var ce = H(Ie, 2), ye = I(ce);
@@ -6064,19 +6067,19 @@ function la(t, e) {
6064
6067
  var M = yd();
6065
6068
  M.__click = $, w(P, M);
6066
6069
  }, O = (P) => {
6067
- var M = he(), ze = oe(M);
6070
+ var M = ve(), ze = oe(M);
6068
6071
  {
6069
- var we = (K) => {
6070
- var ge = zd(), rt = I(ge);
6071
- bi(rt, { size: "20", color: "white" }), T(ge), L(() => Oe(ge, `${`btn aks-btn-answer send-button ${p(a) ? "normative" : ""}` ?? ""} svelte-12zt47u`)), w(K, ge);
6072
+ var pe = (K) => {
6073
+ var ue = zd(), rt = I(ue);
6074
+ bi(rt, { size: "20", color: "white" }), T(ue), L(() => Oe(ue, `${`btn aks-btn-answer send-button ${p(a) ? "normative" : ""}` ?? ""} svelte-12zt47u`)), w(K, ue);
6072
6075
  }, Se = (K) => {
6073
- var ge = Sd();
6074
- ge.__click = m, L(() => Oe(ge, `${`btn aks-btn-answer send-button ${p(a) ? "normative" : ""}` ?? ""} svelte-12zt47u`)), w(K, ge);
6076
+ var ue = Sd();
6077
+ ue.__click = m, L(() => Oe(ue, `${`btn aks-btn-answer send-button ${p(a) ? "normative" : ""}` ?? ""} svelte-12zt47u`)), w(K, ue);
6075
6078
  };
6076
6079
  N(
6077
6080
  ze,
6078
6081
  (K) => {
6079
- p(f) ? K(we) : K(Se, !1);
6082
+ p(f) ? K(pe) : K(Se, !1);
6080
6083
  },
6081
6084
  !0
6082
6085
  );
@@ -6088,7 +6091,7 @@ function la(t, e) {
6088
6091
  });
6089
6092
  }
6090
6093
  var Fe = H(ye, 2);
6091
- Fe.__click = y, T(ce), T(_e), T(me), T(q);
6094
+ Fe.__click = y, T(ce), T(_e), T(be), T(q);
6092
6095
  var st = H(q, 2);
6093
6096
  {
6094
6097
  var $t = (P) => {
@@ -6118,8 +6121,8 @@ function la(t, e) {
6118
6121
  });
6119
6122
  }
6120
6123
  return L(() => {
6121
- Oe(ue, `${`btn aks-btn-answer aks-btn-rounded ${p(R) ? "aks-btn-ans-selected" : ""}` ?? ""} svelte-12zt47u`), Oe(Fe, `${`btn aks-btn-answer send-button ${p(a) ? "normative" : ""}` ?? ""} svelte-12zt47u`);
6122
- }), pl(U, () => p(s), (P) => z(s, P)), Qo("wheel", Ie, b), jn(3, q, () => hi, () => ({ duration: 300, delay: 200 })), w(t, te), G({
6124
+ Oe(de, `${`btn aks-btn-answer aks-btn-rounded ${p(R) ? "aks-btn-ans-selected" : ""}` ?? ""} svelte-12zt47u`), Oe(Fe, `${`btn aks-btn-answer send-button ${p(a) ? "normative" : ""}` ?? ""} svelte-12zt47u`);
6125
+ }), pl(U, () => p(s), (P) => z(s, P)), Qo("wheel", Ie, b), Rn(3, q, () => hi, () => ({ duration: 300, delay: 200 })), w(t, te), G({
6123
6126
  get sendMessage() {
6124
6127
  return n();
6125
6128
  },
@@ -6152,7 +6155,7 @@ V(
6152
6155
  [],
6153
6156
  !0
6154
6157
  );
6155
- const ca = /^[a-z0-9]+(-[a-z0-9]+)*$/, pr = (t, e, n, r = "") => {
6158
+ const ca = /^[a-z0-9]+(-[a-z0-9]+)*$/, vr = (t, e, n, r = "") => {
6156
6159
  const i = t.split(":");
6157
6160
  if (t.slice(0, 1) === "@") {
6158
6161
  if (i.length < 2 || i.length > 3)
@@ -6168,7 +6171,7 @@ const ca = /^[a-z0-9]+(-[a-z0-9]+)*$/, pr = (t, e, n, r = "") => {
6168
6171
  prefix: o,
6169
6172
  name: l
6170
6173
  };
6171
- return e && !Bn(c) ? null : c;
6174
+ return e && !Yn(c) ? null : c;
6172
6175
  }
6173
6176
  const s = i[0], a = s.split("-");
6174
6177
  if (a.length > 1) {
@@ -6177,7 +6180,7 @@ const ca = /^[a-z0-9]+(-[a-z0-9]+)*$/, pr = (t, e, n, r = "") => {
6177
6180
  prefix: a.shift(),
6178
6181
  name: a.join("-")
6179
6182
  };
6180
- return e && !Bn(l) ? null : l;
6183
+ return e && !Yn(l) ? null : l;
6181
6184
  }
6182
6185
  if (n && r === "") {
6183
6186
  const l = {
@@ -6185,10 +6188,10 @@ const ca = /^[a-z0-9]+(-[a-z0-9]+)*$/, pr = (t, e, n, r = "") => {
6185
6188
  prefix: "",
6186
6189
  name: s
6187
6190
  };
6188
- return e && !Bn(l, n) ? null : l;
6191
+ return e && !Yn(l, n) ? null : l;
6189
6192
  }
6190
6193
  return null;
6191
- }, Bn = (t, e) => t ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
6194
+ }, Yn = (t, e) => t ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
6192
6195
  // Check name: cannot be empty
6193
6196
  ((e && t.prefix === "" || t.prefix) && t.name) : !1, ua = Object.freeze(
6194
6197
  {
@@ -6197,15 +6200,15 @@ const ca = /^[a-z0-9]+(-[a-z0-9]+)*$/, pr = (t, e, n, r = "") => {
6197
6200
  width: 16,
6198
6201
  height: 16
6199
6202
  }
6200
- ), tr = Object.freeze({
6203
+ ), nr = Object.freeze({
6201
6204
  rotate: 0,
6202
6205
  vFlip: !1,
6203
6206
  hFlip: !1
6204
- }), vr = Object.freeze({
6207
+ }), gr = Object.freeze({
6205
6208
  ...ua,
6206
- ...tr
6209
+ ...nr
6207
6210
  }), Jr = Object.freeze({
6208
- ...vr,
6211
+ ...gr,
6209
6212
  body: "",
6210
6213
  hidden: !1
6211
6214
  });
@@ -6218,7 +6221,7 @@ function Ed(t, e) {
6218
6221
  function Gi(t, e) {
6219
6222
  const n = Ed(t, e);
6220
6223
  for (const r in Jr)
6221
- r in tr ? r in t && !(r in n) && (n[r] = tr[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
6224
+ r in nr ? r in t && !(r in n) && (n[r] = nr[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
6222
6225
  return n;
6223
6226
  }
6224
6227
  function Cd(t, e) {
@@ -6334,19 +6337,19 @@ function Rd(t, e, n) {
6334
6337
  }
6335
6338
  return !1;
6336
6339
  }
6337
- let $n = !1;
6340
+ let Tn = !1;
6338
6341
  function pa(t) {
6339
- return typeof t == "boolean" && ($n = t), $n;
6342
+ return typeof t == "boolean" && (Tn = t), Tn;
6340
6343
  }
6341
6344
  function Ld(t) {
6342
- const e = typeof t == "string" ? pr(t, !0, $n) : t;
6345
+ const e = typeof t == "string" ? vr(t, !0, Tn) : t;
6343
6346
  if (e) {
6344
6347
  const n = tn(e.provider, e.prefix), r = e.name;
6345
6348
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
6346
6349
  }
6347
6350
  }
6348
6351
  function Od(t, e) {
6349
- const n = pr(t, !0, $n);
6352
+ const n = vr(t, !0, Tn);
6350
6353
  if (!n)
6351
6354
  return !1;
6352
6355
  const r = tn(n.provider, n.prefix);
@@ -6355,14 +6358,14 @@ function Od(t, e) {
6355
6358
  function Pd(t, e) {
6356
6359
  if (typeof t != "object")
6357
6360
  return !1;
6358
- if (typeof e != "string" && (e = t.provider || ""), $n && !e && !t.prefix) {
6361
+ if (typeof e != "string" && (e = t.provider || ""), Tn && !e && !t.prefix) {
6359
6362
  let i = !1;
6360
6363
  return fa(t) && (t.prefix = "", da(t, (s, a) => {
6361
6364
  Od(s, a) && (i = !0);
6362
6365
  })), i;
6363
6366
  }
6364
6367
  const n = t.prefix;
6365
- if (!Bn({
6368
+ if (!Yn({
6366
6369
  provider: e,
6367
6370
  prefix: n,
6368
6371
  name: "a"
@@ -6378,7 +6381,7 @@ const va = Object.freeze({
6378
6381
  // Dimensions
6379
6382
  ...va,
6380
6383
  // Transformations
6381
- ...tr
6384
+ ...nr
6382
6385
  }), Fd = /(-?[0-9.]*[0-9]+[0-9.]*)/g, qd = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
6383
6386
  function Vi(t, e, n) {
6384
6387
  if (e === 1)
@@ -6430,7 +6433,7 @@ function Nd(t, e, n) {
6430
6433
  const Bd = (t) => t === "unset" || t === "undefined" || t === "none";
6431
6434
  function Yd(t, e) {
6432
6435
  const n = {
6433
- ...vr,
6436
+ ...gr,
6434
6437
  ...t
6435
6438
  }, r = {
6436
6439
  ...ga,
@@ -6540,14 +6543,14 @@ function wi(t) {
6540
6543
  dataAfterTimeout: t.dataAfterTimeout !== !1
6541
6544
  };
6542
6545
  }
6543
- const _i = /* @__PURE__ */ Object.create(null), fn = [
6546
+ const _i = /* @__PURE__ */ Object.create(null), hn = [
6544
6547
  "https://api.simplesvg.com",
6545
6548
  "https://api.unisvg.com"
6546
- ], Yn = [];
6547
- for (; fn.length > 0; )
6548
- fn.length === 1 || Math.random() > 0.5 ? Yn.push(fn.shift()) : Yn.push(fn.pop());
6549
+ ], Un = [];
6550
+ for (; hn.length > 0; )
6551
+ hn.length === 1 || Math.random() > 0.5 ? Un.push(hn.shift()) : Un.push(hn.pop());
6549
6552
  _i[""] = wi({
6550
- resources: ["https://api.iconify.design"].concat(Yn)
6553
+ resources: ["https://api.iconify.design"].concat(Un)
6551
6554
  });
6552
6555
  function Vd(t, e) {
6553
6556
  const n = wi(e);
@@ -6749,7 +6752,7 @@ function of(t, e, n) {
6749
6752
  function lf(t, e = !0, n = !1) {
6750
6753
  const r = [];
6751
6754
  return t.forEach((i) => {
6752
- const s = typeof i == "string" ? pr(i, e, n) : i;
6755
+ const s = typeof i == "string" ? vr(i, e, n) : i;
6753
6756
  s && r.push(s);
6754
6757
  }), r;
6755
6758
  }
@@ -6946,7 +6949,7 @@ function pf(t) {
6946
6949
  invalid: n
6947
6950
  };
6948
6951
  }
6949
- function hn(t, e, n) {
6952
+ function pn(t, e, n) {
6950
6953
  function r() {
6951
6954
  const i = t.pendingIcons;
6952
6955
  e.forEach((s) => {
@@ -6982,7 +6985,7 @@ function vf(t, e) {
6982
6985
  Ki(
6983
6986
  t.loadIcons(i, r, n),
6984
6987
  (u) => {
6985
- hn(t, i, u);
6988
+ pn(t, i, u);
6986
6989
  }
6987
6990
  );
6988
6991
  return;
@@ -6997,22 +7000,22 @@ function vf(t, e) {
6997
7000
  [u]: f
6998
7001
  }
6999
7002
  } : null;
7000
- hn(t, [u], h);
7003
+ pn(t, [u], h);
7001
7004
  });
7002
7005
  });
7003
7006
  return;
7004
7007
  }
7005
7008
  const { valid: a, invalid: l } = pf(i);
7006
- if (l.length && hn(t, l, null), !a.length)
7009
+ if (l.length && pn(t, l, null), !a.length)
7007
7010
  return;
7008
7011
  const o = r.match(ca) ? Wr(n) : null;
7009
7012
  if (!o) {
7010
- hn(t, a, null);
7013
+ pn(t, a, null);
7011
7014
  return;
7012
7015
  }
7013
7016
  o.prepare(n, r, a).forEach((u) => {
7014
7017
  ff(n, u, (d) => {
7015
- hn(t, u.icons, d);
7018
+ pn(t, u.icons, d);
7016
7019
  });
7017
7020
  });
7018
7021
  }));
@@ -7249,9 +7252,9 @@ function Cf(t, e, n, r, i) {
7249
7252
  e.loading && (e.loading.abort(), e.loading = null);
7250
7253
  }
7251
7254
  if (typeof t == "object" && t !== null && typeof t.body == "string")
7252
- return e.name = "", s(), { data: { ...vr, ...t } };
7255
+ return e.name = "", s(), { data: { ...gr, ...t } };
7253
7256
  let a;
7254
- if (typeof t != "string" || (a = pr(t, !1, !0)) === null)
7257
+ if (typeof t != "string" || (a = vr(t, !1, !0)) === null)
7255
7258
  return s(), null;
7256
7259
  const l = Ld(a);
7257
7260
  if (!l)
@@ -7265,12 +7268,12 @@ function Cf(t, e, n, r, i) {
7265
7268
  }
7266
7269
  function rs(t, e) {
7267
7270
  return t ? Ef({
7268
- ...vr,
7271
+ ...gr,
7269
7272
  ...t
7270
7273
  }, e) : null;
7271
7274
  }
7272
7275
  var If = /* @__PURE__ */ Ko("<svg><!></svg>"), Af = /* @__PURE__ */ S("<span></span>");
7273
- function Tn(t, e) {
7276
+ function En(t, e) {
7274
7277
  const n = zl(e, [
7275
7278
  "children",
7276
7279
  "$$slots",
@@ -7298,18 +7301,18 @@ function Tn(t, e) {
7298
7301
  z(i, !0);
7299
7302
  }), bl(() => {
7300
7303
  Ir(r, p(r).destroyed = !0), p(r).loading && (p(r).loading.abort(), Ir(r, p(r).loading = null));
7301
- }), Cn(
7304
+ }), In(
7302
7305
  () => (p(s), cn(n), p(i), p(r), p(a), rs),
7303
7306
  () => {
7304
7307
  p(s);
7305
7308
  const f = !!n.ssr || p(i), h = Cf(n.icon, p(r), f, o, l);
7306
7309
  z(a, h ? rs(h.data, n) : null), p(a) && h.classes && Ir(a, p(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + h.classes.join(" "));
7307
7310
  }
7308
- ), In(), Ye();
7309
- var c = he(), u = oe(c);
7311
+ ), An(), Ye();
7312
+ var c = ve(), u = oe(c);
7310
7313
  {
7311
7314
  var d = (f) => {
7312
- var h = he(), b = oe(h);
7315
+ var h = ve(), b = oe(h);
7313
7316
  {
7314
7317
  var m = (y) => {
7315
7318
  var _ = If();
@@ -7333,7 +7336,7 @@ function Tn(t, e) {
7333
7336
  }
7334
7337
  w(t, c), G();
7335
7338
  }
7336
- V(Tn, {}, [], [], !0);
7339
+ V(En, {}, [], [], !0);
7337
7340
  function ki() {
7338
7341
  return {
7339
7342
  async: !1,
@@ -7352,7 +7355,7 @@ let Ut = ki();
7352
7355
  function _a(t) {
7353
7356
  Ut = t;
7354
7357
  }
7355
- const wn = { exec: () => null };
7358
+ const _n = { exec: () => null };
7356
7359
  function ie(t, e = "") {
7357
7360
  let n = typeof t == "string" ? t : t.source;
7358
7361
  const r = {
@@ -7421,44 +7424,44 @@ const Pe = {
7421
7424
  fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
7422
7425
  headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
7423
7426
  htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
7424
- }, jf = /^(?:[ \t]*(?:\n|$))+/, Rf = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Lf = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Rn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Of = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, yi = /(?:[*+-]|\d{1,9}[.)])/, xa = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ka = ie(xa).replace(/bull/g, yi).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Pf = ie(xa).replace(/bull/g, yi).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), zi = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ff = /^[^\n]+/, Si = /(?!\s*\])(?:\\.|[^\[\]\\])+/, qf = ie(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Si).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Df = ie(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, yi).getRegex(), gr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", $i = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Mf = ie("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", $i).replace("tag", gr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ya = ie(zi).replace("hr", Rn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", gr).getRegex(), Nf = ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ya).getRegex(), Ti = {
7427
+ }, jf = /^(?:[ \t]*(?:\n|$))+/, Rf = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Lf = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ln = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Of = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, yi = /(?:[*+-]|\d{1,9}[.)])/, xa = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ka = ie(xa).replace(/bull/g, yi).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Pf = ie(xa).replace(/bull/g, yi).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), zi = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ff = /^[^\n]+/, Si = /(?!\s*\])(?:\\.|[^\[\]\\])+/, qf = ie(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Si).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Df = ie(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, yi).getRegex(), mr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", $i = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Mf = ie("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", $i).replace("tag", mr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ya = ie(zi).replace("hr", Ln).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", mr).getRegex(), Nf = ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ya).getRegex(), Ti = {
7425
7428
  blockquote: Nf,
7426
7429
  code: Rf,
7427
7430
  def: qf,
7428
7431
  fences: Lf,
7429
7432
  heading: Of,
7430
- hr: Rn,
7433
+ hr: Ln,
7431
7434
  html: Mf,
7432
7435
  lheading: ka,
7433
7436
  list: Df,
7434
7437
  newline: jf,
7435
7438
  paragraph: ya,
7436
- table: wn,
7439
+ table: _n,
7437
7440
  text: Ff
7438
- }, is = ie("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Rn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", gr).getRegex(), Bf = {
7441
+ }, is = ie("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ln).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", mr).getRegex(), Bf = {
7439
7442
  ...Ti,
7440
7443
  lheading: Pf,
7441
7444
  table: is,
7442
- paragraph: ie(zi).replace("hr", Rn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", is).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", gr).getRegex()
7445
+ paragraph: ie(zi).replace("hr", Ln).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", is).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", mr).getRegex()
7443
7446
  }, Yf = {
7444
7447
  ...Ti,
7445
7448
  html: ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", $i).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
7446
7449
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
7447
7450
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
7448
- fences: wn,
7451
+ fences: _n,
7449
7452
  // fences not supported
7450
7453
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
7451
- paragraph: ie(zi).replace("hr", Rn).replace("heading", ` *#{1,6} *[^
7454
+ paragraph: ie(zi).replace("hr", Ln).replace("heading", ` *#{1,6} *[^
7452
7455
  ]`).replace("lheading", ka).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
7453
- }, Uf = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Hf = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, za = /^( {2,}|\\)\n(?!\s*$)/, Zf = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, mr = /[\p{P}\p{S}]/u, Ei = /[\s\p{P}\p{S}]/u, Sa = /[^\s\p{P}\p{S}]/u, Gf = ie(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ei).getRegex(), $a = /(?!~)[\p{P}\p{S}]/u, Jf = /(?!~)[\s\p{P}\p{S}]/u, Vf = /(?:[^\s\p{P}\p{S}]|~)/u, Wf = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ta = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Xf = ie(Ta, "u").replace(/punct/g, mr).getRegex(), Qf = ie(Ta, "u").replace(/punct/g, $a).getRegex(), Ea = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Kf = ie(Ea, "gu").replace(/notPunctSpace/g, Sa).replace(/punctSpace/g, Ei).replace(/punct/g, mr).getRegex(), eh = ie(Ea, "gu").replace(/notPunctSpace/g, Vf).replace(/punctSpace/g, Jf).replace(/punct/g, $a).getRegex(), th = ie("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Sa).replace(/punctSpace/g, Ei).replace(/punct/g, mr).getRegex(), nh = ie(/\\(punct)/, "gu").replace(/punct/g, mr).getRegex(), rh = ie(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ih = ie($i).replace("(?:-->|$)", "-->").getRegex(), sh = ie("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ih).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), nr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, ah = ie(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", nr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ca = ie(/^!?\[(label)\]\[(ref)\]/).replace("label", nr).replace("ref", Si).getRegex(), Ia = ie(/^!?\[(ref)\](?:\[\])?/).replace("ref", Si).getRegex(), oh = ie("reflink|nolink(?!\\()", "g").replace("reflink", Ca).replace("nolink", Ia).getRegex(), Ci = {
7454
- _backpedal: wn,
7456
+ }, Uf = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Hf = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, za = /^( {2,}|\\)\n(?!\s*$)/, Zf = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, br = /[\p{P}\p{S}]/u, Ei = /[\s\p{P}\p{S}]/u, Sa = /[^\s\p{P}\p{S}]/u, Gf = ie(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ei).getRegex(), $a = /(?!~)[\p{P}\p{S}]/u, Jf = /(?!~)[\s\p{P}\p{S}]/u, Vf = /(?:[^\s\p{P}\p{S}]|~)/u, Wf = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ta = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Xf = ie(Ta, "u").replace(/punct/g, br).getRegex(), Qf = ie(Ta, "u").replace(/punct/g, $a).getRegex(), Ea = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Kf = ie(Ea, "gu").replace(/notPunctSpace/g, Sa).replace(/punctSpace/g, Ei).replace(/punct/g, br).getRegex(), eh = ie(Ea, "gu").replace(/notPunctSpace/g, Vf).replace(/punctSpace/g, Jf).replace(/punct/g, $a).getRegex(), th = ie("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Sa).replace(/punctSpace/g, Ei).replace(/punct/g, br).getRegex(), nh = ie(/\\(punct)/, "gu").replace(/punct/g, br).getRegex(), rh = ie(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ih = ie($i).replace("(?:-->|$)", "-->").getRegex(), sh = ie("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ih).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), rr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, ah = ie(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", rr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ca = ie(/^!?\[(label)\]\[(ref)\]/).replace("label", rr).replace("ref", Si).getRegex(), Ia = ie(/^!?\[(ref)\](?:\[\])?/).replace("ref", Si).getRegex(), oh = ie("reflink|nolink(?!\\()", "g").replace("reflink", Ca).replace("nolink", Ia).getRegex(), Ci = {
7457
+ _backpedal: _n,
7455
7458
  // only used for GFM url
7456
7459
  anyPunctuation: nh,
7457
7460
  autolink: rh,
7458
7461
  blockSkip: Wf,
7459
7462
  br: za,
7460
7463
  code: Hf,
7461
- del: wn,
7464
+ del: _n,
7462
7465
  emStrongLDelim: Xf,
7463
7466
  emStrongRDelimAst: Kf,
7464
7467
  emStrongRDelimUnd: th,
@@ -7470,11 +7473,11 @@ const Pe = {
7470
7473
  reflinkSearch: oh,
7471
7474
  tag: sh,
7472
7475
  text: Zf,
7473
- url: wn
7476
+ url: _n
7474
7477
  }, lh = {
7475
7478
  ...Ci,
7476
- link: ie(/^!?\[(label)\]\((.*?)\)/).replace("label", nr).getRegex(),
7477
- reflink: ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", nr).getRegex()
7479
+ link: ie(/^!?\[(label)\]\((.*?)\)/).replace("label", rr).getRegex(),
7480
+ reflink: ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", rr).getRegex()
7478
7481
  }, Qr = {
7479
7482
  ...Ci,
7480
7483
  emStrongRDelimAst: eh,
@@ -7487,11 +7490,11 @@ const Pe = {
7487
7490
  ...Qr,
7488
7491
  br: ie(za).replace("{2,}", "*").getRegex(),
7489
7492
  text: ie(Qr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
7490
- }, qn = {
7493
+ }, Dn = {
7491
7494
  normal: Ti,
7492
7495
  gfm: Bf,
7493
7496
  pedantic: Yf
7494
- }, pn = {
7497
+ }, vn = {
7495
7498
  normal: Ci,
7496
7499
  gfm: Qr,
7497
7500
  breaks: ch,
@@ -7538,7 +7541,7 @@ function os(t, e) {
7538
7541
  r[i] = r[i].trim().replace(Pe.slashPipe, "|");
7539
7542
  return r;
7540
7543
  }
7541
- function vn(t, e, n) {
7544
+ function gn(t, e, n) {
7542
7545
  const r = t.length;
7543
7546
  if (r === 0)
7544
7547
  return "";
@@ -7597,7 +7600,7 @@ function fh(t, e, n) {
7597
7600
  }).join(`
7598
7601
  `);
7599
7602
  }
7600
- class rr {
7603
+ class ir {
7601
7604
  // set by the lexer
7602
7605
  constructor(e) {
7603
7606
  A(this, "options");
@@ -7622,7 +7625,7 @@ class rr {
7622
7625
  type: "code",
7623
7626
  raw: n[0],
7624
7627
  codeBlockStyle: "indented",
7625
- text: this.options.pedantic ? r : vn(r, `
7628
+ text: this.options.pedantic ? r : gn(r, `
7626
7629
  `)
7627
7630
  };
7628
7631
  }
@@ -7644,7 +7647,7 @@ class rr {
7644
7647
  if (n) {
7645
7648
  let r = n[2].trim();
7646
7649
  if (this.rules.other.endingHash.test(r)) {
7647
- const i = vn(r, "#");
7650
+ const i = gn(r, "#");
7648
7651
  (this.options.pedantic || !i || this.rules.other.endingSpaceChar.test(i)) && (r = i.trim());
7649
7652
  }
7650
7653
  return {
@@ -7661,14 +7664,14 @@ class rr {
7661
7664
  if (n)
7662
7665
  return {
7663
7666
  type: "hr",
7664
- raw: vn(n[0], `
7667
+ raw: gn(n[0], `
7665
7668
  `)
7666
7669
  };
7667
7670
  }
7668
7671
  blockquote(e) {
7669
7672
  const n = this.rules.block.blockquote.exec(e);
7670
7673
  if (n) {
7671
- let r = vn(n[0], `
7674
+ let r = gn(n[0], `
7672
7675
  `).split(`
7673
7676
  `), i = "", s = "";
7674
7677
  const a = [];
@@ -7912,7 +7915,7 @@ ${d}` : d;
7912
7915
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(r)) {
7913
7916
  if (!this.rules.other.endAngleBracket.test(r))
7914
7917
  return;
7915
- const a = vn(r.slice(0, -1), "\\");
7918
+ const a = gn(r.slice(0, -1), "\\");
7916
7919
  if ((r.length - a.length) % 2 === 0)
7917
7920
  return;
7918
7921
  } else {
@@ -8088,25 +8091,25 @@ class Qe {
8088
8091
  A(this, "state");
8089
8092
  A(this, "tokenizer");
8090
8093
  A(this, "inlineQueue");
8091
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Ut, this.options.tokenizer = this.options.tokenizer || new rr(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
8094
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Ut, this.options.tokenizer = this.options.tokenizer || new ir(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
8092
8095
  inLink: !1,
8093
8096
  inRawBlock: !1,
8094
8097
  top: !0
8095
8098
  };
8096
8099
  const n = {
8097
8100
  other: Pe,
8098
- block: qn.normal,
8099
- inline: pn.normal
8101
+ block: Dn.normal,
8102
+ inline: vn.normal
8100
8103
  };
8101
- this.options.pedantic ? (n.block = qn.pedantic, n.inline = pn.pedantic) : this.options.gfm && (n.block = qn.gfm, this.options.breaks ? n.inline = pn.breaks : n.inline = pn.gfm), this.tokenizer.rules = n;
8104
+ this.options.pedantic ? (n.block = Dn.pedantic, n.inline = vn.pedantic) : this.options.gfm && (n.block = Dn.gfm, this.options.breaks ? n.inline = vn.breaks : n.inline = vn.gfm), this.tokenizer.rules = n;
8102
8105
  }
8103
8106
  /**
8104
8107
  * Expose Rules
8105
8108
  */
8106
8109
  static get rules() {
8107
8110
  return {
8108
- block: qn,
8109
- inline: pn
8111
+ block: Dn,
8112
+ inline: vn
8110
8113
  };
8111
8114
  }
8112
8115
  /**
@@ -8326,7 +8329,7 @@ class Qe {
8326
8329
  return n;
8327
8330
  }
8328
8331
  }
8329
- class ir {
8332
+ class sr {
8330
8333
  // set by the parser
8331
8334
  constructor(e) {
8332
8335
  A(this, "options");
@@ -8496,7 +8499,7 @@ class Ke {
8496
8499
  A(this, "options");
8497
8500
  A(this, "renderer");
8498
8501
  A(this, "textRenderer");
8499
- this.options = e || Ut, this.options.renderer = this.options.renderer || new ir(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ii();
8502
+ this.options = e || Ut, this.options.renderer = this.options.renderer || new sr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ii();
8500
8503
  }
8501
8504
  /**
8502
8505
  * Static Parse Method
@@ -8654,7 +8657,7 @@ class Ke {
8654
8657
  return r;
8655
8658
  }
8656
8659
  }
8657
- class _n {
8660
+ class xn {
8658
8661
  constructor(e) {
8659
8662
  A(this, "options");
8660
8663
  A(this, "block");
@@ -8691,7 +8694,7 @@ class _n {
8691
8694
  return this.block ? Ke.parse : Ke.parseInline;
8692
8695
  }
8693
8696
  }
8694
- A(_n, "passThroughHooks", /* @__PURE__ */ new Set([
8697
+ A(xn, "passThroughHooks", /* @__PURE__ */ new Set([
8695
8698
  "preprocess",
8696
8699
  "postprocess",
8697
8700
  "processAllTokens"
@@ -8703,11 +8706,11 @@ class hh {
8703
8706
  A(this, "parse", this.parseMarkdown(!0));
8704
8707
  A(this, "parseInline", this.parseMarkdown(!1));
8705
8708
  A(this, "Parser", Ke);
8706
- A(this, "Renderer", ir);
8709
+ A(this, "Renderer", sr);
8707
8710
  A(this, "TextRenderer", Ii);
8708
8711
  A(this, "Lexer", Qe);
8709
- A(this, "Tokenizer", rr);
8710
- A(this, "Hooks", _n);
8712
+ A(this, "Tokenizer", ir);
8713
+ A(this, "Hooks", xn);
8711
8714
  this.use(...e);
8712
8715
  }
8713
8716
  /**
@@ -8764,7 +8767,7 @@ class hh {
8764
8767
  }
8765
8768
  "childTokens" in s && s.childTokens && (n.childTokens[s.name] = s.childTokens);
8766
8769
  }), i.extensions = n), r.renderer) {
8767
- const s = this.defaults.renderer || new ir(this.defaults);
8770
+ const s = this.defaults.renderer || new sr(this.defaults);
8768
8771
  for (const a in r.renderer) {
8769
8772
  if (!(a in s))
8770
8773
  throw new Error(`renderer '${a}' does not exist`);
@@ -8779,7 +8782,7 @@ class hh {
8779
8782
  i.renderer = s;
8780
8783
  }
8781
8784
  if (r.tokenizer) {
8782
- const s = this.defaults.tokenizer || new rr(this.defaults);
8785
+ const s = this.defaults.tokenizer || new ir(this.defaults);
8783
8786
  for (const a in r.tokenizer) {
8784
8787
  if (!(a in s))
8785
8788
  throw new Error(`tokenizer '${a}' does not exist`);
@@ -8794,14 +8797,14 @@ class hh {
8794
8797
  i.tokenizer = s;
8795
8798
  }
8796
8799
  if (r.hooks) {
8797
- const s = this.defaults.hooks || new _n();
8800
+ const s = this.defaults.hooks || new xn();
8798
8801
  for (const a in r.hooks) {
8799
8802
  if (!(a in s))
8800
8803
  throw new Error(`hook '${a}' does not exist`);
8801
8804
  if (["options", "block"].includes(a))
8802
8805
  continue;
8803
8806
  const l = a, o = r.hooks[l], c = s[l];
8804
- _n.passThroughHooks.has(a) ? s[l] = (u) => {
8807
+ xn.passThroughHooks.has(a) ? s[l] = (u) => {
8805
8808
  if (this.defaults.async)
8806
8809
  return Promise.resolve(o.call(s, u)).then((f) => c.call(s, f));
8807
8810
  const d = o.call(s, u);
@@ -8887,12 +8890,12 @@ ae.walkTokens = function(t, e) {
8887
8890
  ae.parseInline = Dt.parseInline;
8888
8891
  ae.Parser = Ke;
8889
8892
  ae.parser = Ke.parse;
8890
- ae.Renderer = ir;
8893
+ ae.Renderer = sr;
8891
8894
  ae.TextRenderer = Ii;
8892
8895
  ae.Lexer = Qe;
8893
8896
  ae.lexer = Qe.lex;
8894
- ae.Tokenizer = rr;
8895
- ae.Hooks = _n;
8897
+ ae.Tokenizer = ir;
8898
+ ae.Hooks = xn;
8896
8899
  ae.parse = ae;
8897
8900
  ae.options;
8898
8901
  ae.setOptions;
@@ -8915,7 +8918,7 @@ function Aa(t, e) {
8915
8918
  Z(e, !0), X(t, Th);
8916
8919
  let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15);
8917
8920
  const i = async (o, c, u) => {
8918
- await Sn.getDocumentPage(o, c, u);
8921
+ await $n.getDocumentPage(o, c, u);
8919
8922
  };
8920
8923
  var s = $h(), a = I(s);
8921
8924
  {
@@ -8942,46 +8945,46 @@ function Aa(t, e) {
8942
8945
  var R = I(F);
8943
8946
  {
8944
8947
  var Y = (U) => {
8945
- var me = gh();
8946
- L(() => B(me, "style", k() == "Normativa" ? "color: #28853d" : k() == "Documento Comune" ? "color: #295DCF" : "")), w(U, me);
8948
+ var be = gh();
8949
+ L(() => B(be, "style", k() == "Normativa" ? "color: #28853d" : k() == "Documento Comune" ? "color: #295DCF" : "")), w(U, be);
8947
8950
  }, te = (U) => {
8948
- var me = he(), _e = oe(me);
8951
+ var be = ve(), _e = oe(be);
8949
8952
  {
8950
- var se = (ve) => {
8951
- var de = mh();
8952
- w(ve, de);
8953
- }, ue = (ve) => {
8954
- var de = he(), Ie = oe(de);
8953
+ var se = (me) => {
8954
+ var fe = mh();
8955
+ w(me, fe);
8956
+ }, de = (me) => {
8957
+ var fe = ve(), Ie = oe(fe);
8955
8958
  {
8956
- var fe = (xe) => {
8957
- var be = bh();
8958
- w(xe, be);
8959
+ var he = (xe) => {
8960
+ var we = bh();
8961
+ w(xe, we);
8959
8962
  }, Ee = (xe) => {
8960
- var be = he(), ke = oe(be);
8963
+ var we = ve(), ke = oe(we);
8961
8964
  {
8962
8965
  var ce = (Re) => {
8963
8966
  var O = wh();
8964
8967
  w(Re, O);
8965
8968
  }, ye = (Re) => {
8966
- var O = he(), Fe = oe(O);
8969
+ var O = ve(), Fe = oe(O);
8967
8970
  {
8968
8971
  var st = (P) => {
8969
8972
  var M = _h();
8970
8973
  w(P, M);
8971
8974
  }, $t = (P) => {
8972
- var M = he(), ze = oe(M);
8975
+ var M = ve(), ze = oe(M);
8973
8976
  {
8974
- var we = (K) => {
8975
- var ge = xh();
8976
- w(K, ge);
8977
+ var pe = (K) => {
8978
+ var ue = xh();
8979
+ w(K, ue);
8977
8980
  }, Se = (K) => {
8978
- var ge = kh();
8979
- w(K, ge);
8981
+ var ue = kh();
8982
+ w(K, ue);
8980
8983
  };
8981
8984
  N(
8982
8985
  ze,
8983
8986
  (K) => {
8984
- _().split(".").pop() === "akd" ? K(we) : K(Se, !1);
8987
+ _().split(".").pop() === "akd" ? K(pe) : K(Se, !1);
8985
8988
  },
8986
8989
  !0
8987
8990
  );
@@ -9006,27 +9009,27 @@ function Aa(t, e) {
9006
9009
  !0
9007
9010
  );
9008
9011
  }
9009
- w(xe, be);
9012
+ w(xe, we);
9010
9013
  };
9011
9014
  N(
9012
9015
  Ie,
9013
9016
  (xe) => {
9014
- _().split(".").pop() === "docx" ? xe(fe) : xe(Ee, !1);
9017
+ _().split(".").pop() === "docx" ? xe(he) : xe(Ee, !1);
9015
9018
  },
9016
9019
  !0
9017
9020
  );
9018
9021
  }
9019
- w(ve, de);
9022
+ w(me, fe);
9020
9023
  };
9021
9024
  N(
9022
9025
  _e,
9023
- (ve) => {
9024
- _().split(".").pop() === "pdf" ? ve(se) : ve(ue, !1);
9026
+ (me) => {
9027
+ _().split(".").pop() === "pdf" ? me(se) : me(de, !1);
9025
9028
  },
9026
9029
  !0
9027
9030
  );
9028
9031
  }
9029
- w(U, me);
9032
+ w(U, be);
9030
9033
  };
9031
9034
  N(R, (U) => {
9032
9035
  x() ? U(Y) : U(te, !1);
@@ -9100,38 +9103,38 @@ function ja(t, e) {
9100
9103
  });
9101
9104
  var h = Ph(), b = H(I(h), 2);
9102
9105
  je(b, 17, n, Ae, (E, x) => {
9103
- var k = he(), F = oe(k);
9106
+ var k = ve(), F = oe(k);
9104
9107
  {
9105
9108
  var R = (Y) => {
9106
- var te = jh(), q = I(te), D = I(q), U = I(D), me = I(U);
9107
- Zr(me, () => p(x).html ?? ae.parseInline(p(x).content), !1, !1), T(U), T(D);
9109
+ var te = jh(), q = I(te), D = I(q), U = I(D), be = I(U);
9110
+ Zr(be, () => p(x).html ?? ae.parseInline(p(x).content), !1, !1), T(U), T(D);
9108
9111
  var _e = H(D, 2);
9109
9112
  {
9110
- var se = (de) => {
9111
- var Ie = he(), fe = oe(Ie);
9113
+ var se = (fe) => {
9114
+ var Ie = ve(), he = oe(Ie);
9112
9115
  {
9113
- var Ee = (be) => {
9116
+ var Ee = (we) => {
9114
9117
  var ke = Ch();
9115
- ke.__click = [Eh, o, c], w(be, ke);
9116
- }, xe = (be) => {
9118
+ ke.__click = [Eh, o, c], w(we, ke);
9119
+ }, xe = (we) => {
9117
9120
  var ke = Ah();
9118
- ke.__click = [Ih, f, x], w(be, ke);
9121
+ ke.__click = [Ih, f, x], w(we, ke);
9119
9122
  };
9120
- N(fe, (be) => {
9121
- p(c) ? be(Ee) : be(xe, !1);
9123
+ N(he, (we) => {
9124
+ p(c) ? we(Ee) : we(xe, !1);
9122
9125
  });
9123
9126
  }
9124
- w(de, Ie);
9127
+ w(fe, Ie);
9125
9128
  };
9126
- N(_e, (de) => {
9127
- p(x).sentByUser || de(se);
9129
+ N(_e, (fe) => {
9130
+ p(x).sentByUser || fe(se);
9128
9131
  });
9129
9132
  }
9130
9133
  T(q);
9131
- var ue = H(q, 2);
9134
+ var de = H(q, 2);
9132
9135
  {
9133
- var ve = (de) => {
9134
- Aa(de, {
9136
+ var me = (fe) => {
9137
+ Aa(fe, {
9135
9138
  get isDropdownOpen() {
9136
9139
  return p(u);
9137
9140
  },
@@ -9140,8 +9143,8 @@ function ja(t, e) {
9140
9143
  }
9141
9144
  });
9142
9145
  };
9143
- N(ue, (de) => {
9144
- p(x).attachments && p(x).attachments.length > 0 && de(ve);
9146
+ N(de, (fe) => {
9147
+ p(x).attachments && p(x).attachments.length > 0 && fe(me);
9145
9148
  });
9146
9149
  }
9147
9150
  T(te), L(() => Oe(D, Qs(p(x).sentByUser ? "message-sent" : "message-received"), "svelte-1i332th")), w(Y, te);
@@ -9160,7 +9163,7 @@ function ja(t, e) {
9160
9163
  var Y = H(k, 2);
9161
9164
  {
9162
9165
  var te = (q) => {
9163
- Tn(q, {
9166
+ En(q, {
9164
9167
  icon: "svg-spinners:90-ring-with-bg",
9165
9168
  width: "25px",
9166
9169
  height: "25px",
@@ -9173,11 +9176,11 @@ function ja(t, e) {
9173
9176
  }
9174
9177
  T(x), w(E, x);
9175
9178
  }, y = (E) => {
9176
- var x = he(), k = oe(x);
9179
+ var x = ve(), k = oe(x);
9177
9180
  {
9178
9181
  var F = (R) => {
9179
9182
  var Y = Lh(), te = I(Y);
9180
- Tn(te, {
9183
+ En(te, {
9181
9184
  icon: "svg-spinners:3-dots-bounce",
9182
9185
  width: "25px",
9183
9186
  height: "25px",
@@ -9208,7 +9211,7 @@ function ja(t, e) {
9208
9211
  i() != "" && E(C);
9209
9212
  });
9210
9213
  }
9211
- return T(h), na(h, (E) => z(l, E), () => p(l)), jn(3, h, () => hi, () => ({ duration: 300, delay: 100 })), w(t, h), G({
9214
+ return T(h), na(h, (E) => z(l, E), () => p(l)), Rn(3, h, () => hi, () => ({ duration: 300, delay: 100 })), w(t, h), G({
9212
9215
  get messages() {
9213
9216
  return n();
9214
9217
  },
@@ -9345,7 +9348,7 @@ const qh = async (t) => {
9345
9348
  }
9346
9349
  })).ok)
9347
9350
  throw new Error("Failed to delete chat");
9348
- }, mn = {
9351
+ }, bn = {
9349
9352
  getChat: qh,
9350
9353
  getChats: Dh,
9351
9354
  newChat: Mh,
@@ -9371,7 +9374,7 @@ function Ra(t, e) {
9371
9374
  const a = (d) => {
9372
9375
  r(d), s("");
9373
9376
  }, l = (d, f) => {
9374
- confirm('Sei sicuro di voler eliminare la chat: "' + f + '"?') && mn.deleteChat(d).then(() => {
9377
+ confirm('Sei sicuro di voler eliminare la chat: "' + f + '"?') && bn.deleteChat(d).then(() => {
9375
9378
  i(i().filter((h) => h._id !== d)), r()._id === d && r(new zt("", "", "", "New Chat", [yt.firstMessage()]));
9376
9379
  });
9377
9380
  };
@@ -9388,7 +9391,7 @@ function Ra(t, e) {
9388
9391
  E.__click = [Hh, l, m], T($), L(() => {
9389
9392
  B($, "style", r()._id === p(m)._id ? "background: #295dcf; cursor: default;" : ""), ut(C, p(m).title);
9390
9393
  }), w(b, $);
9391
- }), T(h), T(f), jn(3, f, () => Il, () => ({ duration: 600 })), w(d, f);
9394
+ }), T(h), T(f), Rn(3, f, () => Il, () => ({ duration: 600 })), w(d, f);
9392
9395
  };
9393
9396
  N(c, (d) => {
9394
9397
  n() && d(u);
@@ -9451,13 +9454,13 @@ function La(t, e) {
9451
9454
  let n = re(!1), r = re(!1), i = re("it"), s = re(""), a = re(null), l = re(j([])), o = re(j([])), c = re(!1), u = re(!0), d = re(j(new Audio())), f = re(!0), h = re(""), b = re("");
9452
9455
  const m = (D) => {
9453
9456
  z(b, p(b) + D);
9454
- }, $ = async (D, U, me, _e = []) => {
9457
+ }, $ = async (D, U, be, _e = []) => {
9455
9458
  if (z(h, ""), z(c, !0), z(o, j([
9456
9459
  ...p(o),
9457
9460
  new yt((/* @__PURE__ */ new Date()).getTime(), !0, D, D)
9458
- ])), p(o).length == 2 && (z(a, j(await mn.newChat())), z(l, j([...p(l), p(a)])), p(a).messages = p(o)), p(a))
9461
+ ])), p(o).length == 2 && (z(a, j(await bn.newChat())), z(l, j([...p(l), p(a)])), p(a).messages = p(o)), p(a))
9459
9462
  try {
9460
- await mn.sendMessage(p(a)._id, D, U, me, _e, m, p(i)), z(a, j(await mn.getChat(p(a)._id))), z(b, ""), z(o, j([
9463
+ await bn.sendMessage(p(a)._id, D, U, be, _e, m, p(i)), z(a, j(await bn.getChat(p(a)._id))), z(b, ""), z(o, j([
9461
9464
  ...p(o),
9462
9465
  p(a).messages[p(a).messages.length - 1]
9463
9466
  ])), p(f) || gi.getAudio(p(a).messages[p(a).messages.length - 1].content, p(i)).then((se) => {
@@ -9474,13 +9477,13 @@ function La(t, e) {
9474
9477
  p(f) && p(d).pause();
9475
9478
  });
9476
9479
  const y = () => {
9477
- p(n) && mn.getChats().then((D) => {
9478
- z(l, j(D.sort((U, me) => {
9479
- if (U.messages.length === 0 && me.messages.length === 0) return 0;
9480
+ p(n) && bn.getChats().then((D) => {
9481
+ z(l, j(D.sort((U, be) => {
9482
+ if (U.messages.length === 0 && be.messages.length === 0) return 0;
9480
9483
  if (U.messages.length === 0) return 1;
9481
- if (me.messages.length === 0) return -1;
9482
- const _e = U.messages[U.messages.length - 1], se = me.messages[me.messages.length - 1], ue = (_e == null ? void 0 : _e.timeStamp) || 0;
9483
- return ((se == null ? void 0 : se.timeStamp) || 0) - ue;
9484
+ if (be.messages.length === 0) return -1;
9485
+ const _e = U.messages[U.messages.length - 1], se = be.messages[be.messages.length - 1], de = (_e == null ? void 0 : _e.timeStamp) || 0;
9486
+ return ((se == null ? void 0 : se.timeStamp) || 0) - de;
9484
9487
  })));
9485
9488
  });
9486
9489
  };
@@ -9494,30 +9497,30 @@ function La(t, e) {
9494
9497
  D.preventDefault(), D.stopPropagation(), _ = !0, C = D.clientX, E = D.clientY;
9495
9498
  const _e = document.querySelector(".chat");
9496
9499
  x = _e.offsetWidth, k = _e.offsetHeight, _e.classList.add("no-select");
9497
- const se = U.closest(".resize-handle"), ue = U.classList.contains("resize-border-left"), ve = U.classList.contains("resize-border-top"), de = (fe) => {
9500
+ const se = U.closest(".resize-handle"), de = U.classList.contains("resize-border-left"), me = U.classList.contains("resize-border-top"), fe = (he) => {
9498
9501
  if (!_) return;
9499
- fe.preventDefault();
9500
- const Ee = document.querySelector(".chat"), xe = window.innerWidth * 0.75, be = window.innerHeight * 0.9;
9501
- if (ue) {
9502
- const ke = C - fe.clientX, ce = Math.min(Math.max(x + ke, 300), xe);
9502
+ he.preventDefault();
9503
+ const Ee = document.querySelector(".chat"), xe = window.innerWidth * 0.75, we = window.innerHeight * 0.9;
9504
+ if (de) {
9505
+ const ke = C - he.clientX, ce = Math.min(Math.max(x + ke, 300), xe);
9503
9506
  Ee.style.width = `${ce}px`;
9504
- } else if (ve) {
9505
- const ke = E - fe.clientY, ce = Math.min(Math.max(k + ke, 400), be);
9507
+ } else if (me) {
9508
+ const ke = E - he.clientY, ce = Math.min(Math.max(k + ke, 400), we);
9506
9509
  Ee.style.height = `${ce}px`;
9507
9510
  } else if (se) {
9508
- const ke = C - fe.clientX, ce = E - fe.clientY, ye = Math.min(Math.max(x + ke, 300), xe), Re = Math.min(Math.max(k + ce, 400), be);
9511
+ const ke = C - he.clientX, ce = E - he.clientY, ye = Math.min(Math.max(x + ke, 300), xe), Re = Math.min(Math.max(k + ce, 400), we);
9509
9512
  Ee.style.width = `${ye}px`, Ee.style.height = `${Re}px`;
9510
9513
  }
9511
9514
  }, Ie = () => {
9512
- var fe;
9513
- _ = !1, (fe = document.querySelector(".chat")) == null || fe.classList.remove("no-select"), document.removeEventListener("mousemove", de), document.removeEventListener("mouseup", Ie);
9515
+ var he;
9516
+ _ = !1, (he = document.querySelector(".chat")) == null || he.classList.remove("no-select"), document.removeEventListener("mousemove", fe), document.removeEventListener("mouseup", Ie);
9514
9517
  };
9515
- document.addEventListener("mousemove", de), document.addEventListener("mouseup", Ie);
9518
+ document.addEventListener("mousemove", fe), document.addEventListener("mouseup", Ie);
9516
9519
  }
9517
9520
  }
9518
9521
  fi(async () => {
9519
9522
  try {
9520
- const D = await Sn.getUsername();
9523
+ const D = await $n.getUsername();
9521
9524
  z(s, j(D));
9522
9525
  const U = yt.firstMessage(p(i), p(s));
9523
9526
  z(o, j([U])), z(a, j(new zt("", "", "", "New Chat", [U]))), z(u, !1);
@@ -9530,20 +9533,20 @@ function La(t, e) {
9530
9533
  var te = (D) => {
9531
9534
  var U = Qh();
9532
9535
  U.__mousedown = F;
9533
- var me = I(U);
9536
+ var be = I(U);
9534
9537
  {
9535
- var _e = (ue) => {
9536
- var ve = Wh(), de = I(ve);
9537
- Tn(de, {
9538
+ var _e = (de) => {
9539
+ var me = Wh(), fe = I(me);
9540
+ En(fe, {
9538
9541
  icon: "svg-spinners:270-ring-with-bg",
9539
9542
  width: "50px",
9540
9543
  height: "50px",
9541
9544
  color: "white"
9542
- }), T(ve), w(ue, ve);
9543
- }, se = (ue) => {
9544
- var ve = he(), de = oe(ve);
9545
+ }), T(me), w(de, me);
9546
+ }, se = (de) => {
9547
+ var me = ve(), fe = oe(me);
9545
9548
  {
9546
- var Ie = (fe) => {
9549
+ var Ie = (he) => {
9547
9550
  var Ee = Xh(), xe = oe(Ee);
9548
9551
  Ra(xe, {
9549
9552
  get showHistory() {
@@ -9571,8 +9574,8 @@ function La(t, e) {
9571
9574
  z(h, j(O));
9572
9575
  }
9573
9576
  });
9574
- var be = H(xe, 6), ke = I(be);
9575
- Tn(ke, {
9577
+ var we = H(xe, 6), ke = I(we);
9578
+ En(ke, {
9576
9579
  icon: "hugeicons:resize-field",
9577
9580
  width: "25px",
9578
9581
  height: "25px",
@@ -9580,8 +9583,8 @@ function La(t, e) {
9580
9583
  vFlip: !0,
9581
9584
  color: "white",
9582
9585
  style: "margin: 2px 0 0 2px;"
9583
- }), T(be);
9584
- var ce = H(be, 2);
9586
+ }), T(we);
9587
+ var ce = H(we, 2);
9585
9588
  sa(ce, {
9586
9589
  get show() {
9587
9590
  return p(n);
@@ -9674,23 +9677,23 @@ function La(t, e) {
9674
9677
  set languageSelected(O) {
9675
9678
  z(i, j(O));
9676
9679
  }
9677
- }), w(fe, Ee);
9680
+ }), w(he, Ee);
9678
9681
  };
9679
9682
  N(
9680
- de,
9681
- (fe) => {
9682
- p(a) && fe(Ie);
9683
+ fe,
9684
+ (he) => {
9685
+ p(a) && he(Ie);
9683
9686
  },
9684
9687
  !0
9685
9688
  );
9686
9689
  }
9687
- w(ue, ve);
9690
+ w(de, me);
9688
9691
  };
9689
- N(me, (ue) => {
9690
- p(u) ? ue(_e) : ue(se, !1);
9692
+ N(be, (de) => {
9693
+ p(u) ? de(_e) : de(se, !1);
9691
9694
  });
9692
9695
  }
9693
- T(U), jn(3, U, () => Cl, () => ({ y: 50, duration: 500 })), w(D, U);
9696
+ T(U), Rn(3, U, () => Cl, () => ({ y: 50, duration: 500 })), w(D, U);
9694
9697
  };
9695
9698
  N(Y, (D) => {
9696
9699
  p(n) && D(te);