@teammodlr/ui-kit 2.1.36 → 2.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.es.js CHANGED
@@ -105,11 +105,11 @@ const mr = Symbol("AVATAR_GROUP_STATE"), Eo = P({
105
105
  error: (e) => !0
106
106
  },
107
107
  setup(e, { emit: t }) {
108
- const n = fe(mr, void 0), r = b(null), a = b(!0), s = b("md"), o = p(() => n == null ? void 0 : n.size), l = p(() => n == null ? void 0 : n.rounded), i = p(() => !!n), u = p(() => o.value || e.size), d = p(() => l.value || e.rounded), c = p(() => [
108
+ const n = fe(mr, void 0), r = b(null), a = b(!0), s = b("md"), o = p(() => n == null ? void 0 : n.size), l = p(() => n == null ? void 0 : n.rounded), u = p(() => !!n), i = p(() => o.value || e.size), d = p(() => l.value || e.rounded), c = p(() => [
109
109
  So,
110
- [Bo[u.value]],
110
+ [Bo[i.value]],
111
111
  {
112
- [Mo]: i.value,
112
+ [Mo]: u.value,
113
113
  [Oo]: d.value
114
114
  }
115
115
  ]), f = (m) => {
@@ -191,12 +191,12 @@ function Lo(e, t, n, r, a, s) {
191
191
  return v(), y("ul", {
192
192
  class: h(e.style.base)
193
193
  }, [
194
- (v(!0), y(Q, null, he(e.avatars, (l, i) => (v(), y("li", {
195
- key: i,
194
+ (v(!0), y(Q, null, he(e.avatars, (l, u) => (v(), y("li", {
195
+ key: u,
196
196
  class: h(e.style.item)
197
197
  }, [
198
198
  T("div", {
199
- style: re([{ display: "inline-block", position: "relative", outline: "0" }, { zIndex: e.avatars.length - i }])
199
+ style: re([{ display: "inline-block", position: "relative", outline: "0" }, { zIndex: e.avatars.length - u }])
200
200
  }, [
201
201
  J(o, {
202
202
  src: l.src,
@@ -414,7 +414,7 @@ const br = Symbol("BUTTON_GROUP_STATE"), on = Symbol("FORM_STATE"), hs = P({
414
414
  }
415
415
  },
416
416
  setup(e, { slots: t }) {
417
- const n = fe(br, null), r = fe(on, null), a = fe("dropdown", null), s = b("md"), o = b(!1), l = b(0), i = X(e, "loading"), u = p(() => a == null ? void 0 : a.isOpen.value), d = p(() => n == null ? void 0 : n.size), c = p(() => d.value || e.size), f = p(() => !!t["icon-left"]), m = p(() => !!t["icon-right"]), g = p(() => [
417
+ const n = fe(br, null), r = fe(on, null), a = fe("dropdown", null), s = b("md"), o = b(!1), l = b(0), u = X(e, "loading"), i = p(() => a == null ? void 0 : a.isOpen.value), d = p(() => n == null ? void 0 : n.size), c = p(() => d.value || e.size), f = p(() => !!t["icon-left"]), m = p(() => !!t["icon-right"]), g = p(() => [
418
418
  ts,
419
419
  [fs[c.value]],
420
420
  ps[e.variant],
@@ -424,7 +424,7 @@ const br = Symbol("BUTTON_GROUP_STATE"), on = Symbol("FORM_STATE"), hs = P({
424
424
  [ns]: e.block,
425
425
  [is[e.variant]]: e.link,
426
426
  [os]: e.icon,
427
- [us]: (r == null ? void 0 : r.loading) || i.value
427
+ [us]: (r == null ? void 0 : r.loading) || u.value
428
428
  }
429
429
  ]), O = p(() => [
430
430
  vs,
@@ -441,7 +441,7 @@ const br = Symbol("BUTTON_GROUP_STATE"), on = Symbol("FORM_STATE"), hs = P({
441
441
  }), _t(() => {
442
442
  l.value && clearTimeout(l.value);
443
443
  }), {
444
- dropdownOpen: u,
444
+ dropdownOpen: i,
445
445
  computedClasses: g,
446
446
  computedWaveClasses: O,
447
447
  computedBorderClasses: k,
@@ -552,7 +552,7 @@ const oe = (e, {
552
552
  emit: n,
553
553
  withListeners: r = !0
554
554
  }) => {
555
- const a = b(!0), s = b(e.error), { id: o } = wr("input"), l = e.name ? e.name : o.value, i = b(l);
555
+ const a = b(!0), s = b(e.error), { id: o } = wr("input"), l = e.name ? e.name : o.value, u = b(l);
556
556
  G(
557
557
  () => e.error,
558
558
  (g) => s.value = g
@@ -560,7 +560,7 @@ const oe = (e, {
560
560
  () => e.name,
561
561
  (g) => l.value = g
562
562
  );
563
- const u = fe(on, null), d = () => {
563
+ const i = fe(on, null), d = () => {
564
564
  s.value = "", a.value = !0, n("update:modelValue", "");
565
565
  }, c = (g) => {
566
566
  s.value = g;
@@ -594,8 +594,8 @@ const oe = (e, {
594
594
  change: (g) => n("change", g)
595
595
  })) : {};
596
596
  return pe(() => {
597
- u == null || u.add(
598
- i.value,
597
+ i == null || i.add(
598
+ u.value,
599
599
  t,
600
600
  // @ts-ignore
601
601
  f,
@@ -603,20 +603,20 @@ const oe = (e, {
603
603
  c
604
604
  );
605
605
  }), cr(() => {
606
- u == null || u.remove(i.value);
606
+ i == null || i.remove(u.value);
607
607
  }), {
608
608
  id: o,
609
609
  isFirstValidation: a,
610
610
  formError: s,
611
- insideForm: (u == null ? void 0 : u.insideForm) ?? !1,
611
+ insideForm: (i == null ? void 0 : i.insideForm) ?? !1,
612
612
  inputListeners: m,
613
613
  reset: d,
614
614
  validate: f,
615
615
  setError: c,
616
616
  //@ts-ignore
617
- formDisabled: (u == null ? void 0 : u.disabled.value) || !1,
617
+ formDisabled: (i == null ? void 0 : i.disabled.value) || !1,
618
618
  //@ts-ignore
619
- formLoading: (u == null ? void 0 : u.loading.value) || !1
619
+ formLoading: (i == null ? void 0 : i.loading.value) || !1
620
620
  };
621
621
  };
622
622
  oe.emits = (e = !0) => e ? ["update:modelValue", "blur", "focus", "input", "change"] : ["update:modelValue"];
@@ -684,22 +684,22 @@ const Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
684
684
  type: Boolean,
685
685
  default: !1
686
686
  },
687
- value: {
688
- // type: [String, Number, Boolean, Object, Array]
689
- }
687
+ value: {}
690
688
  },
691
689
  setup(e, { slots: t, emit: n, expose: r }) {
692
690
  const a = b(null), { focus: s, blur: o } = me(a), {
693
691
  id: l,
694
- insideForm: i,
695
- reset: u,
692
+ insideForm: u,
693
+ reset: i,
696
694
  validate: d,
697
695
  setError: c,
698
696
  formError: f,
699
697
  formDisabled: m,
700
698
  formLoading: g,
701
699
  inputListeners: O
702
- } = oe(e, { focus: s, emit: n }), k = p(() => m || e.disabled || e.loading), M = X(e, "name"), B = p(() => !!t.default), R = p(() => [
700
+ } = oe(e, { focus: s, emit: n }), k = p(
701
+ () => m || e.disabled || e.loading
702
+ ), M = X(e, "name"), B = p(() => !!t.default), R = p(() => [
703
703
  $r,
704
704
  [Sr[e.size]],
705
705
  {
@@ -722,8 +722,8 @@ const Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
722
722
  }), {
723
723
  id: l,
724
724
  formError: f,
725
- insideForm: i,
726
- reset: u,
725
+ insideForm: u,
726
+ reset: i,
727
727
  validate: d,
728
728
  setError: c,
729
729
  onChange: E,
@@ -768,7 +768,7 @@ function Rs(e, t, n, r, a, s) {
768
768
  id: `${e.id}-label`
769
769
  }, [
770
770
  e.hasSlot ? L(e.$slots, "default", { key: 0 }) : (v(), y(Q, { key: 1 }, [
771
- ue(W(e.label), 1)
771
+ ue(W(e.label) + " sd ", 1)
772
772
  ], 64))
773
773
  ], 10, As)
774
774
  ], 2);
@@ -824,7 +824,7 @@ function ee(...e) {
824
824
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
825
825
  const s = [], o = () => {
826
826
  s.forEach((d) => d()), s.length = 0;
827
- }, l = (d, c, f, m) => (d.addEventListener(c, f, m), () => d.removeEventListener(c, f, m)), i = G(
827
+ }, l = (d, c, f, m) => (d.addEventListener(c, f, m), () => d.removeEventListener(c, f, m)), u = G(
828
828
  () => [Ve(t), Ae(a)],
829
829
  ([d, c]) => {
830
830
  if (o(), !d)
@@ -835,10 +835,10 @@ function ee(...e) {
835
835
  );
836
836
  },
837
837
  { immediate: !0, flush: "post" }
838
- ), u = () => {
839
- i(), o();
838
+ ), i = () => {
839
+ u(), o();
840
840
  };
841
- return zs(u), u;
841
+ return zs(i), i;
842
842
  }
843
843
  let Bn = !1;
844
844
  function un(e, t, n = {}) {
@@ -847,7 +847,7 @@ function un(e, t, n = {}) {
847
847
  return;
848
848
  js && !Bn && (Bn = !0, Array.from(r.document.body.children).forEach((f) => f.addEventListener("click", Xt)), r.document.documentElement.addEventListener("click", Xt));
849
849
  let l = !0;
850
- const i = (f) => a.some((m) => {
850
+ const u = (f) => a.some((m) => {
851
851
  if (typeof m == "string")
852
852
  return Array.from(r.document.querySelectorAll(m)).some((g) => g === f.target || f.composedPath().includes(g));
853
853
  {
@@ -858,7 +858,7 @@ function un(e, t, n = {}) {
858
858
  ee(r, "click", (f) => {
859
859
  const m = Ve(e);
860
860
  if (!(!m || m === f.target || f.composedPath().includes(m))) {
861
- if (f.detail === 0 && (l = !i(f)), !l) {
861
+ if (f.detail === 0 && (l = !u(f)), !l) {
862
862
  l = !0;
863
863
  return;
864
864
  }
@@ -867,7 +867,7 @@ function un(e, t, n = {}) {
867
867
  }, { passive: !0, capture: s }),
868
868
  ee(r, "pointerdown", (f) => {
869
869
  const m = Ve(e);
870
- m && (l = !f.composedPath().includes(m) && !i(f));
870
+ m && (l = !f.composedPath().includes(m) && !u(f));
871
871
  }, { passive: !0 }),
872
872
  o && ee(r, "blur", (f) => {
873
873
  setTimeout(() => {
@@ -896,8 +896,8 @@ function Ns(e, t = {}) {
896
896
  preventDefault: s,
897
897
  stopPropagation: o,
898
898
  exact: l,
899
- onMove: i,
900
- onEnd: u,
899
+ onMove: u,
900
+ onEnd: i,
901
901
  onStart: d,
902
902
  initialValue: c,
903
903
  axis: f = "both",
@@ -924,9 +924,9 @@ function Ns(e, t = {}) {
924
924
  (f === "x" || f === "both") && (I = A.clientX - M.value.x), (f === "y" || f === "both") && (j = A.clientY - M.value.y), k.value = {
925
925
  x: I,
926
926
  y: j
927
- }, i == null || i(k.value, A), R(A);
927
+ }, u == null || u(k.value, A), R(A);
928
928
  }, E = (A) => {
929
- B(A) && M.value && (M.value = void 0, u == null || u(k.value, A), R(A));
929
+ B(A) && M.value && (M.value = void 0, i == null || i(k.value, A), R(A));
930
930
  };
931
931
  if (ln) {
932
932
  const A = { capture: (r = t.capture) != null ? r : !0 };
@@ -966,25 +966,25 @@ function Ws(e = {}) {
966
966
  window: s = Je,
967
967
  target: o = s,
968
968
  scroll: l = !0,
969
- eventFilter: i
969
+ eventFilter: u
970
970
  } = e;
971
- let u = null;
971
+ let i = null;
972
972
  const d = b(a.x), c = b(a.y), f = b(null), m = typeof t == "function" ? t : Hs[t], g = (w) => {
973
973
  const E = m(w);
974
- u = w, E && ([d.value, c.value] = E, f.value = "mouse");
974
+ i = w, E && ([d.value, c.value] = E, f.value = "mouse");
975
975
  }, O = (w) => {
976
976
  if (w.touches.length > 0) {
977
977
  const E = m(w.touches[0]);
978
978
  E && ([d.value, c.value] = E, f.value = "touch");
979
979
  }
980
980
  }, k = () => {
981
- if (!u || !s)
981
+ if (!i || !s)
982
982
  return;
983
- const w = m(u);
984
- u instanceof MouseEvent && w && (d.value = w[0] + s.scrollX, c.value = w[1] + s.scrollY);
983
+ const w = m(i);
984
+ i instanceof MouseEvent && w && (d.value = w[0] + s.scrollX, c.value = w[1] + s.scrollY);
985
985
  }, M = () => {
986
986
  d.value = a.x, c.value = a.y;
987
- }, B = i ? (w) => i(() => g(w), {}) : (w) => g(w), R = i ? (w) => i(() => O(w), {}) : (w) => O(w), C = i ? () => i(() => k(), {}) : () => k();
987
+ }, B = u ? (w) => u(() => g(w), {}) : (w) => g(w), R = u ? (w) => u(() => O(w), {}) : (w) => O(w), C = u ? () => u(() => k(), {}) : () => k();
988
988
  if (o) {
989
989
  const w = { passive: !0 };
990
990
  ee(o, ["mousemove", "dragover"], B, w), n && t !== "movement" && (ee(o, ["touchstart", "touchmove"], R, w), r && ee(o, "touchend", M, w)), l && t === "page" && ee(s, "scroll", C, { passive: !0 });
@@ -999,7 +999,7 @@ function Mr(e, t = {}) {
999
999
  const {
1000
1000
  handleOutside: n = !0,
1001
1001
  window: r = Je
1002
- } = t, { x: a, y: s, sourceType: o } = Ws(t), l = b(e ?? (r == null ? void 0 : r.document.body)), i = b(0), u = b(0), d = b(0), c = b(0), f = b(0), m = b(0), g = b(!0);
1002
+ } = t, { x: a, y: s, sourceType: o } = Ws(t), l = b(e ?? (r == null ? void 0 : r.document.body)), u = b(0), i = b(0), d = b(0), c = b(0), f = b(0), m = b(0), g = b(!0);
1003
1003
  let O = () => {
1004
1004
  };
1005
1005
  return r && (O = G(
@@ -1016,7 +1016,7 @@ function Mr(e, t = {}) {
1016
1016
  } = k.getBoundingClientRect();
1017
1017
  d.value = M + r.pageXOffset, c.value = B + r.pageYOffset, f.value = C, m.value = R;
1018
1018
  const w = a.value - d.value, E = s.value - c.value;
1019
- g.value = R === 0 || C === 0 || w < 0 || E < 0 || w > R || E > C, (n || !g.value) && (i.value = w, u.value = E);
1019
+ g.value = R === 0 || C === 0 || w < 0 || E < 0 || w > R || E > C, (n || !g.value) && (u.value = w, i.value = E);
1020
1020
  },
1021
1021
  { immediate: !0 }
1022
1022
  ), ee(document, "mouseleave", () => {
@@ -1025,8 +1025,8 @@ function Mr(e, t = {}) {
1025
1025
  x: a,
1026
1026
  y: s,
1027
1027
  sourceType: o,
1028
- elementX: i,
1029
- elementY: u,
1028
+ elementX: u,
1029
+ elementY: i,
1030
1030
  elementPositionX: d,
1031
1031
  elementPositionY: c,
1032
1032
  elementHeight: f,
@@ -1039,22 +1039,23 @@ function Or(e = {}) {
1039
1039
  const {
1040
1040
  touch: t = !0,
1041
1041
  drag: n = !0,
1042
- initialValue: r = !1,
1043
- window: a = Je
1044
- } = e, s = b(r), o = b(null);
1045
- if (!a)
1042
+ capture: r = !1,
1043
+ initialValue: a = !1,
1044
+ window: s = Je
1045
+ } = e, o = b(a), l = b(null);
1046
+ if (!s)
1046
1047
  return {
1047
- pressed: s,
1048
- sourceType: o
1048
+ pressed: o,
1049
+ sourceType: l
1049
1050
  };
1050
- const l = (d) => () => {
1051
- s.value = !0, o.value = d;
1051
+ const u = (c) => () => {
1052
+ o.value = !0, l.value = c;
1052
1053
  }, i = () => {
1053
- s.value = !1, o.value = null;
1054
- }, u = p(() => Ve(e.target) || a);
1055
- return ee(u, "mousedown", l("mouse"), { passive: !0 }), ee(a, "mouseleave", i, { passive: !0 }), ee(a, "mouseup", i, { passive: !0 }), n && (ee(u, "dragstart", l("mouse"), { passive: !0 }), ee(a, "drop", i, { passive: !0 }), ee(a, "dragend", i, { passive: !0 })), t && (ee(u, "touchstart", l("touch"), { passive: !0 }), ee(a, "touchend", i, { passive: !0 }), ee(a, "touchcancel", i, { passive: !0 })), {
1056
- pressed: s,
1057
- sourceType: o
1054
+ o.value = !1, l.value = null;
1055
+ }, d = p(() => Ve(e.target) || s);
1056
+ return ee(d, "mousedown", u("mouse"), { passive: !0, capture: r }), ee(s, "mouseleave", i, { passive: !0, capture: r }), ee(s, "mouseup", i, { passive: !0, capture: r }), n && (ee(d, "dragstart", u("mouse"), { passive: !0, capture: r }), ee(s, "drop", i, { passive: !0, capture: r }), ee(s, "dragend", i, { passive: !0, capture: r })), t && (ee(d, "touchstart", u("touch"), { passive: !0, capture: r }), ee(s, "touchend", i, { passive: !0, capture: r }), ee(s, "touchcancel", i, { passive: !0, capture: r })), {
1057
+ pressed: o,
1058
+ sourceType: l
1058
1059
  };
1059
1060
  }
1060
1061
  var xs = "_1wz91949", Ks = "_1wz91947", qs = "_1wz91944", Gs = "_1wz91940", Us = "_1wz91942", Xs = "_1wz91943", Ys = "_1wz91945", Zs = "_1wz91946", Js = "_1wz91941", Qs = "_1wz91948";
@@ -1077,28 +1078,28 @@ const tl = (e, t, n, r) => {
1077
1078
  return `#${a}${s}${o}${r >= 1 ? "" : l}`;
1078
1079
  }, nl = (e, t = 0, n = 0, r = 0, a = 0) => {
1079
1080
  e = e.replace("#", "");
1080
- let s = t, o = n, l = r, i = a;
1081
- return e.length >= 2 && (s = parseInt(e.substring(0, 2), 16)), e.length >= 4 ? o = parseInt(e.substring(2, 4), 16) : o = 0, e.length >= 6 ? l = parseInt(e.substring(4, 6), 16) : l = 0, e.length >= 8 ? i = parseInt(e.substring(6, 8), 16) / 255 : i = 1, (isNaN(s) || isNaN(o) || isNaN(l) || isNaN(i)) && (s = 0, l = 0, o = 0, i = 1), {
1081
+ let s = t, o = n, l = r, u = a;
1082
+ return e.length >= 2 && (s = parseInt(e.substring(0, 2), 16)), e.length >= 4 ? o = parseInt(e.substring(2, 4), 16) : o = 0, e.length >= 6 ? l = parseInt(e.substring(4, 6), 16) : l = 0, e.length >= 8 ? u = parseInt(e.substring(6, 8), 16) / 255 : u = 1, (isNaN(s) || isNaN(o) || isNaN(l) || isNaN(u)) && (s = 0, l = 0, o = 0, u = 1), {
1082
1083
  r: s,
1083
1084
  g: o,
1084
1085
  b: l,
1085
- a: i
1086
+ a: u
1086
1087
  };
1087
1088
  }, En = (e, t, n) => {
1088
1089
  const r = Math.max(e, t, n), a = Math.min(e, t, n), s = r - a, o = r;
1089
1090
  let l = 0;
1090
1091
  r !== 0 && (l = s / r);
1091
- let i = 0;
1092
- return s !== 0 && (r === e ? i = (t - n) / s % 6 : r === t ? i = (n - e) / s + 2 : i = (e - t) / s + 4, i *= 60, i < 0 && (i += 360)), {
1093
- h: i,
1092
+ let u = 0;
1093
+ return s !== 0 && (r === e ? u = (t - n) / s % 6 : r === t ? u = (n - e) / s + 2 : u = (e - t) / s + 4, u *= 60, u < 0 && (u += 360)), {
1094
+ h: u,
1094
1095
  s: l,
1095
1096
  v: o / 255
1096
1097
  };
1097
1098
  }, rl = (e, t, n, r) => {
1098
1099
  const a = e, s = t * n, o = a / 60, l = s * (1 - Math.abs(o % 2 - 1));
1099
- let i = 0, u = 0, d = 0;
1100
- o >= 0 && o < 1 ? (i = s, u = l) : o >= 1 && o < 2 ? (i = l, u = s) : o >= 2 && o < 3 ? (u = s, d = l) : o >= 3 && o < 4 ? (u = l, d = s) : o >= 4 && o < 5 ? (i = l, d = s) : (i = s, d = l);
1101
- const c = t - s, f = Math.round((i + c) * 255), m = Math.round((u + c) * 255), g = Math.round((d + c) * 255);
1100
+ let u = 0, i = 0, d = 0;
1101
+ o >= 0 && o < 1 ? (u = s, i = l) : o >= 1 && o < 2 ? (u = l, i = s) : o >= 2 && o < 3 ? (i = s, d = l) : o >= 3 && o < 4 ? (i = l, d = s) : o >= 4 && o < 5 ? (u = l, d = s) : (u = s, d = l);
1102
+ const c = t - s, f = Math.round((u + c) * 255), m = Math.round((i + c) * 255), g = Math.round((d + c) * 255);
1102
1103
  return {
1103
1104
  r: f,
1104
1105
  g: m,
@@ -1109,7 +1110,7 @@ const tl = (e, t, n, r) => {
1109
1110
  const n = 1 - Math.abs(0), r = e / 360 * 6, a = n * (1 - Math.abs(r % 2 - 1));
1110
1111
  let s = 0, o = 0, l = 0;
1111
1112
  r >= 0 && r < 1 ? (s = n, o = a, l = 0) : r >= 1 && r < 2 ? (s = a, o = n, l = 0) : r >= 2 && r < 3 ? (s = 0, o = n, l = a) : r >= 3 && r < 4 ? (s = 0, o = a, l = n) : r >= 4 && r < 5 ? (s = a, o = 0, l = n) : (s = n, o = 0, l = a);
1112
- const i = 0.5, u = (1 - n) * (i - 0.5), d = Math.round((s + u) * 255), c = Math.round((o + u) * 255), f = Math.round((l + u) * 255);
1113
+ const u = 0.5, i = (1 - n) * (u - 0.5), d = Math.round((s + i) * 255), c = Math.round((o + i) * 255), f = Math.round((l + i) * 255);
1113
1114
  return {
1114
1115
  r: d,
1115
1116
  g: c,
@@ -1173,11 +1174,11 @@ function yl(e) {
1173
1174
  };
1174
1175
  return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
1175
1176
  Object.keys(t.elements).forEach(function(r) {
1176
- var a = t.elements[r], s = t.attributes[r] || {}, o = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), l = o.reduce(function(i, u) {
1177
- return i[u] = "", i;
1177
+ var a = t.elements[r], s = t.attributes[r] || {}, o = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), l = o.reduce(function(u, i) {
1178
+ return u[i] = "", u;
1178
1179
  }, {});
1179
- !Ce(a) || !ze(a) || (Object.assign(a.style, l), Object.keys(s).forEach(function(i) {
1180
- a.removeAttribute(i);
1180
+ !Ce(a) || !ze(a) || (Object.assign(a.style, l), Object.keys(s).forEach(function(u) {
1181
+ a.removeAttribute(u);
1181
1182
  }));
1182
1183
  });
1183
1184
  };
@@ -1207,15 +1208,15 @@ function Xe(e, t, n) {
1207
1208
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1208
1209
  var r = e.getBoundingClientRect(), a = 1, s = 1;
1209
1210
  t && Ce(e) && (a = e.offsetWidth > 0 && Ue(r.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && Ue(r.height) / e.offsetHeight || 1);
1210
- var o = We(e) ? we(e) : window, l = o.visualViewport, i = !zr() && n, u = (r.left + (i && l ? l.offsetLeft : 0)) / a, d = (r.top + (i && l ? l.offsetTop : 0)) / s, c = r.width / a, f = r.height / s;
1211
+ var o = We(e) ? we(e) : window, l = o.visualViewport, u = !zr() && n, i = (r.left + (u && l ? l.offsetLeft : 0)) / a, d = (r.top + (u && l ? l.offsetTop : 0)) / s, c = r.width / a, f = r.height / s;
1211
1212
  return {
1212
1213
  width: c,
1213
1214
  height: f,
1214
1215
  top: d,
1215
- right: u + c,
1216
+ right: i + c,
1216
1217
  bottom: d + f,
1217
- left: u,
1218
- x: u,
1218
+ left: i,
1219
+ x: i,
1219
1220
  y: d
1220
1221
  };
1221
1222
  }
@@ -1323,9 +1324,9 @@ var Cl = function(t, n) {
1323
1324
  })) : t, jr(typeof t != "number" ? t : Lr(t, pt));
1324
1325
  };
1325
1326
  function Sl(e) {
1326
- var t, n = e.state, r = e.name, a = e.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, l = Re(n.placement), i = pn(l), u = [ye, Me].indexOf(l) >= 0, d = u ? "height" : "width";
1327
+ var t, n = e.state, r = e.name, a = e.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, l = Re(n.placement), u = pn(l), i = [ye, Me].indexOf(l) >= 0, d = i ? "height" : "width";
1327
1328
  if (!(!s || !o)) {
1328
- var c = Cl(a.padding, n), f = fn(s), m = i === "y" ? ge : ye, g = i === "y" ? Te : Me, O = n.rects.reference[d] + n.rects.reference[i] - o[i] - n.rects.popper[d], k = o[i] - n.rects.reference[i], M = vt(s), B = M ? i === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0, R = O / 2 - k / 2, C = c[m], w = B - f[d] - c[g], E = B / 2 - f[d] / 2 + R, A = ot(C, E, w), I = i;
1329
+ var c = Cl(a.padding, n), f = fn(s), m = u === "y" ? ge : ye, g = u === "y" ? Te : Me, O = n.rects.reference[d] + n.rects.reference[u] - o[u] - n.rects.popper[d], k = o[u] - n.rects.reference[u], M = vt(s), B = M ? u === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0, R = O / 2 - k / 2, C = c[m], w = B - f[d] - c[g], E = B / 2 - f[d] / 2 + R, A = ot(C, E, w), I = u;
1329
1330
  n.modifiersData[r] = (t = {}, t[I] = A, t.centerOffset = A - E, t);
1330
1331
  }
1331
1332
  }
@@ -1359,7 +1360,7 @@ function Bl(e, t) {
1359
1360
  };
1360
1361
  }
1361
1362
  function zn(e) {
1362
- var t, n = e.popper, r = e.popperRect, a = e.placement, s = e.variation, o = e.offsets, l = e.position, i = e.gpuAcceleration, u = e.adaptive, d = e.roundOffsets, c = e.isFixed, f = o.x, m = f === void 0 ? 0 : f, g = o.y, O = g === void 0 ? 0 : g, k = typeof d == "function" ? d({
1363
+ var t, n = e.popper, r = e.popperRect, a = e.placement, s = e.variation, o = e.offsets, l = e.position, u = e.gpuAcceleration, i = e.adaptive, d = e.roundOffsets, c = e.isFixed, f = o.x, m = f === void 0 ? 0 : f, g = o.y, O = g === void 0 ? 0 : g, k = typeof d == "function" ? d({
1363
1364
  x: m,
1364
1365
  y: O
1365
1366
  }) : {
@@ -1368,7 +1369,7 @@ function zn(e) {
1368
1369
  };
1369
1370
  m = k.x, O = k.y;
1370
1371
  var M = o.hasOwnProperty("x"), B = o.hasOwnProperty("y"), R = ye, C = ge, w = window;
1371
- if (u) {
1372
+ if (i) {
1372
1373
  var E = vt(n), A = "clientHeight", I = "clientWidth";
1373
1374
  if (E === we(n) && (E = De(n), je(E).position !== "static" && l === "absolute" && (A = "scrollHeight", I = "scrollWidth")), E = E, a === ge || (a === ye || a === Me) && s === it) {
1374
1375
  C = Te;
@@ -1376,7 +1377,7 @@ function zn(e) {
1376
1377
  // $FlowFixMe[prop-missing]
1377
1378
  E[A]
1378
1379
  );
1379
- O -= j - r.height, O *= i ? 1 : -1;
1380
+ O -= j - r.height, O *= u ? 1 : -1;
1380
1381
  }
1381
1382
  if (a === ye || (a === ge || a === Te) && s === it) {
1382
1383
  R = Me;
@@ -1384,26 +1385,26 @@ function zn(e) {
1384
1385
  // $FlowFixMe[prop-missing]
1385
1386
  E[I]
1386
1387
  );
1387
- m -= z - r.width, m *= i ? 1 : -1;
1388
+ m -= z - r.width, m *= u ? 1 : -1;
1388
1389
  }
1389
1390
  }
1390
1391
  var $ = Object.assign({
1391
1392
  position: l
1392
- }, u && Ol), S = d === !0 ? Bl({
1393
+ }, i && Ol), S = d === !0 ? Bl({
1393
1394
  x: m,
1394
1395
  y: O
1395
1396
  }, we(n)) : {
1396
1397
  x: m,
1397
1398
  y: O
1398
1399
  };
1399
- if (m = S.x, O = S.y, i) {
1400
+ if (m = S.x, O = S.y, u) {
1400
1401
  var D;
1401
1402
  return Object.assign({}, $, (D = {}, D[C] = B ? "0" : "", D[R] = M ? "0" : "", D.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + O + "px)" : "translate3d(" + m + "px, " + O + "px, 0)", D));
1402
1403
  }
1403
1404
  return Object.assign({}, $, (t = {}, t[C] = B ? O + "px" : "", t[R] = M ? m + "px" : "", t.transform = "", t));
1404
1405
  }
1405
1406
  function El(e) {
1406
- var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, s = n.adaptive, o = s === void 0 ? !0 : s, l = n.roundOffsets, i = l === void 0 ? !0 : l, u = {
1407
+ var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, s = n.adaptive, o = s === void 0 ? !0 : s, l = n.roundOffsets, u = l === void 0 ? !0 : l, i = {
1407
1408
  placement: Re(t.placement),
1408
1409
  variation: Ye(t.placement),
1409
1410
  popper: t.elements.popper,
@@ -1411,16 +1412,16 @@ function El(e) {
1411
1412
  gpuAcceleration: a,
1412
1413
  isFixed: t.options.strategy === "fixed"
1413
1414
  };
1414
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, zn(Object.assign({}, u, {
1415
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, zn(Object.assign({}, i, {
1415
1416
  offsets: t.modifiersData.popperOffsets,
1416
1417
  position: t.options.strategy,
1417
1418
  adaptive: o,
1418
- roundOffsets: i
1419
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, zn(Object.assign({}, u, {
1419
+ roundOffsets: u
1420
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, zn(Object.assign({}, i, {
1420
1421
  offsets: t.modifiersData.arrow,
1421
1422
  position: "absolute",
1422
1423
  adaptive: !1,
1423
- roundOffsets: i
1424
+ roundOffsets: u
1424
1425
  })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
1425
1426
  "data-popper-placement": t.placement
1426
1427
  });
@@ -1436,13 +1437,13 @@ var ht = {
1436
1437
  passive: !0
1437
1438
  };
1438
1439
  function Rl(e) {
1439
- var t = e.state, n = e.instance, r = e.options, a = r.scroll, s = a === void 0 ? !0 : a, o = r.resize, l = o === void 0 ? !0 : o, i = we(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
1440
- return s && u.forEach(function(d) {
1440
+ var t = e.state, n = e.instance, r = e.options, a = r.scroll, s = a === void 0 ? !0 : a, o = r.resize, l = o === void 0 ? !0 : o, u = we(t.elements.popper), i = [].concat(t.scrollParents.reference, t.scrollParents.popper);
1441
+ return s && i.forEach(function(d) {
1441
1442
  d.addEventListener("scroll", n.update, ht);
1442
- }), l && i.addEventListener("resize", n.update, ht), function() {
1443
- s && u.forEach(function(d) {
1443
+ }), l && u.addEventListener("resize", n.update, ht), function() {
1444
+ s && i.forEach(function(d) {
1444
1445
  d.removeEventListener("scroll", n.update, ht);
1445
- }), l && i.removeEventListener("resize", n.update, ht);
1446
+ }), l && u.removeEventListener("resize", n.update, ht);
1446
1447
  };
1447
1448
  }
1448
1449
  const zl = {
@@ -1485,26 +1486,26 @@ function mn(e) {
1485
1486
  return Xe(De(e)).left + vn(e).scrollLeft;
1486
1487
  }
1487
1488
  function jl(e, t) {
1488
- var n = we(e), r = De(e), a = n.visualViewport, s = r.clientWidth, o = r.clientHeight, l = 0, i = 0;
1489
+ var n = we(e), r = De(e), a = n.visualViewport, s = r.clientWidth, o = r.clientHeight, l = 0, u = 0;
1489
1490
  if (a) {
1490
1491
  s = a.width, o = a.height;
1491
- var u = zr();
1492
- (u || !u && t === "fixed") && (l = a.offsetLeft, i = a.offsetTop);
1492
+ var i = zr();
1493
+ (i || !i && t === "fixed") && (l = a.offsetLeft, u = a.offsetTop);
1493
1494
  }
1494
1495
  return {
1495
1496
  width: s,
1496
1497
  height: o,
1497
1498
  x: l + mn(e),
1498
- y: i
1499
+ y: u
1499
1500
  };
1500
1501
  }
1501
1502
  function Ll(e) {
1502
- var t, n = De(e), r = vn(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, s = Ne(n.scrollWidth, n.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), o = Ne(n.scrollHeight, n.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), l = -r.scrollLeft + mn(e), i = -r.scrollTop;
1503
+ var t, n = De(e), r = vn(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, s = Ne(n.scrollWidth, n.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), o = Ne(n.scrollHeight, n.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), l = -r.scrollLeft + mn(e), u = -r.scrollTop;
1503
1504
  return je(a || n).direction === "rtl" && (l += Ne(n.clientWidth, a ? a.clientWidth : 0) - s), {
1504
1505
  width: s,
1505
1506
  height: o,
1506
1507
  x: l,
1507
- y: i
1508
+ y: u
1508
1509
  };
1509
1510
  }
1510
1511
  function hn(e) {
@@ -1545,62 +1546,62 @@ function Pl(e) {
1545
1546
  }) : [];
1546
1547
  }
1547
1548
  function Vl(e, t, n, r) {
1548
- var a = t === "clippingParents" ? Pl(e) : [].concat(t), s = [].concat(a, [n]), o = s[0], l = s.reduce(function(i, u) {
1549
- var d = In(e, u, r);
1550
- return i.top = Ne(d.top, i.top), i.right = At(d.right, i.right), i.bottom = At(d.bottom, i.bottom), i.left = Ne(d.left, i.left), i;
1549
+ var a = t === "clippingParents" ? Pl(e) : [].concat(t), s = [].concat(a, [n]), o = s[0], l = s.reduce(function(u, i) {
1550
+ var d = In(e, i, r);
1551
+ return u.top = Ne(d.top, u.top), u.right = At(d.right, u.right), u.bottom = At(d.bottom, u.bottom), u.left = Ne(d.left, u.left), u;
1551
1552
  }, In(e, o, r));
1552
1553
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
1553
1554
  }
1554
1555
  function Pr(e) {
1555
- var t = e.reference, n = e.element, r = e.placement, a = r ? Re(r) : null, s = r ? Ye(r) : null, o = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, i;
1556
+ var t = e.reference, n = e.element, r = e.placement, a = r ? Re(r) : null, s = r ? Ye(r) : null, o = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, u;
1556
1557
  switch (a) {
1557
1558
  case ge:
1558
- i = {
1559
+ u = {
1559
1560
  x: o,
1560
1561
  y: t.y - n.height
1561
1562
  };
1562
1563
  break;
1563
1564
  case Te:
1564
- i = {
1565
+ u = {
1565
1566
  x: o,
1566
1567
  y: t.y + t.height
1567
1568
  };
1568
1569
  break;
1569
1570
  case Me:
1570
- i = {
1571
+ u = {
1571
1572
  x: t.x + t.width,
1572
1573
  y: l
1573
1574
  };
1574
1575
  break;
1575
1576
  case ye:
1576
- i = {
1577
+ u = {
1577
1578
  x: t.x - n.width,
1578
1579
  y: l
1579
1580
  };
1580
1581
  break;
1581
1582
  default:
1582
- i = {
1583
+ u = {
1583
1584
  x: t.x,
1584
1585
  y: t.y
1585
1586
  };
1586
1587
  }
1587
- var u = a ? pn(a) : null;
1588
- if (u != null) {
1589
- var d = u === "y" ? "height" : "width";
1588
+ var i = a ? pn(a) : null;
1589
+ if (i != null) {
1590
+ var d = i === "y" ? "height" : "width";
1590
1591
  switch (s) {
1591
1592
  case Ge:
1592
- i[u] = i[u] - (t[d] / 2 - n[d] / 2);
1593
+ u[i] = u[i] - (t[d] / 2 - n[d] / 2);
1593
1594
  break;
1594
1595
  case it:
1595
- i[u] = i[u] + (t[d] / 2 - n[d] / 2);
1596
+ u[i] = u[i] + (t[d] / 2 - n[d] / 2);
1596
1597
  break;
1597
1598
  }
1598
1599
  }
1599
- return i;
1600
+ return u;
1600
1601
  }
1601
1602
  function ut(e, t) {
1602
1603
  t === void 0 && (t = {});
1603
- var n = t, r = n.placement, a = r === void 0 ? e.placement : r, s = n.strategy, o = s === void 0 ? e.strategy : s, l = n.boundary, i = l === void 0 ? ol : l, u = n.rootBoundary, d = u === void 0 ? Ar : u, c = n.elementContext, f = c === void 0 ? at : c, m = n.altBoundary, g = m === void 0 ? !1 : m, O = n.padding, k = O === void 0 ? 0 : O, M = jr(typeof k != "number" ? k : Lr(k, pt)), B = f === at ? sl : at, R = e.rects.popper, C = e.elements[g ? B : f], w = Vl(We(C) ? C : C.contextElement || De(e.elements.popper), i, d, o), E = Xe(e.elements.reference), A = Pr({
1604
+ var n = t, r = n.placement, a = r === void 0 ? e.placement : r, s = n.strategy, o = s === void 0 ? e.strategy : s, l = n.boundary, u = l === void 0 ? ol : l, i = n.rootBoundary, d = i === void 0 ? Ar : i, c = n.elementContext, f = c === void 0 ? at : c, m = n.altBoundary, g = m === void 0 ? !1 : m, O = n.padding, k = O === void 0 ? 0 : O, M = jr(typeof k != "number" ? k : Lr(k, pt)), B = f === at ? sl : at, R = e.rects.popper, C = e.elements[g ? B : f], w = Vl(We(C) ? C : C.contextElement || De(e.elements.popper), u, d, o), E = Xe(e.elements.reference), A = Pr({
1604
1605
  reference: E,
1605
1606
  element: R,
1606
1607
  strategy: "absolute",
@@ -1622,10 +1623,10 @@ function ut(e, t) {
1622
1623
  }
1623
1624
  function Nl(e, t) {
1624
1625
  t === void 0 && (t = {});
1625
- var n = t, r = n.placement, a = n.boundary, s = n.rootBoundary, o = n.padding, l = n.flipVariations, i = n.allowedAutoPlacements, u = i === void 0 ? Rr : i, d = Ye(r), c = d ? l ? An : An.filter(function(g) {
1626
+ var n = t, r = n.placement, a = n.boundary, s = n.rootBoundary, o = n.padding, l = n.flipVariations, u = n.allowedAutoPlacements, i = u === void 0 ? Rr : u, d = Ye(r), c = d ? l ? An : An.filter(function(g) {
1626
1627
  return Ye(g) === d;
1627
1628
  }) : pt, f = c.filter(function(g) {
1628
- return u.indexOf(g) >= 0;
1629
+ return i.indexOf(g) >= 0;
1629
1630
  });
1630
1631
  f.length === 0 && (f = c);
1631
1632
  var m = f.reduce(function(g, O) {
@@ -1649,12 +1650,12 @@ function Fl(e) {
1649
1650
  function Hl(e) {
1650
1651
  var t = e.state, n = e.options, r = e.name;
1651
1652
  if (!t.modifiersData[r]._skip) {
1652
- for (var a = n.mainAxis, s = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, i = n.fallbackPlacements, u = n.padding, d = n.boundary, c = n.rootBoundary, f = n.altBoundary, m = n.flipVariations, g = m === void 0 ? !0 : m, O = n.allowedAutoPlacements, k = t.options.placement, M = Re(k), B = M === k, R = i || (B || !g ? [Mt(k)] : Fl(k)), C = [k].concat(R).reduce(function(Ie, U) {
1653
+ for (var a = n.mainAxis, s = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, u = n.fallbackPlacements, i = n.padding, d = n.boundary, c = n.rootBoundary, f = n.altBoundary, m = n.flipVariations, g = m === void 0 ? !0 : m, O = n.allowedAutoPlacements, k = t.options.placement, M = Re(k), B = M === k, R = u || (B || !g ? [Mt(k)] : Fl(k)), C = [k].concat(R).reduce(function(Ie, U) {
1653
1654
  return Ie.concat(Re(U) === dn ? Nl(t, {
1654
1655
  placement: U,
1655
1656
  boundary: d,
1656
1657
  rootBoundary: c,
1657
- padding: u,
1658
+ padding: i,
1658
1659
  flipVariations: g,
1659
1660
  allowedAutoPlacements: O
1660
1661
  }) : U);
@@ -1664,7 +1665,7 @@ function Hl(e) {
1664
1665
  boundary: d,
1665
1666
  rootBoundary: c,
1666
1667
  altBoundary: f,
1667
- padding: u
1668
+ padding: i
1668
1669
  }), x = H ? D ? Me : ye : D ? Te : ge;
1669
1670
  w[K] > E[K] && (x = Mt(x));
1670
1671
  var Y = Mt(x), ae = [];
@@ -1726,10 +1727,10 @@ function xl(e) {
1726
1727
  elementContext: "reference"
1727
1728
  }), l = ut(t, {
1728
1729
  altBoundary: !0
1729
- }), i = jn(o, r), u = jn(l, a, s), d = Ln(i), c = Ln(u);
1730
+ }), u = jn(o, r), i = jn(l, a, s), d = Ln(u), c = Ln(i);
1730
1731
  t.modifiersData[n] = {
1731
- referenceClippingOffsets: i,
1732
- popperEscapeOffsets: u,
1732
+ referenceClippingOffsets: u,
1733
+ popperEscapeOffsets: i,
1733
1734
  isReferenceHidden: d,
1734
1735
  hasPopperEscaped: c
1735
1736
  }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
@@ -1759,8 +1760,8 @@ function ql(e, t, n) {
1759
1760
  function Gl(e) {
1760
1761
  var t = e.state, n = e.options, r = e.name, a = n.offset, s = a === void 0 ? [0, 0] : a, o = Rr.reduce(function(d, c) {
1761
1762
  return d[c] = ql(c, t.rects, s), d;
1762
- }, {}), l = o[t.placement], i = l.x, u = l.y;
1763
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += i, t.modifiersData.popperOffsets.y += u), t.modifiersData[r] = o;
1763
+ }, {}), l = o[t.placement], u = l.x, i = l.y;
1764
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += i), t.modifiersData[r] = o;
1764
1765
  }
1765
1766
  const Ul = {
1766
1767
  name: "offset",
@@ -1789,9 +1790,9 @@ function Zl(e) {
1789
1790
  return e === "x" ? "y" : "x";
1790
1791
  }
1791
1792
  function Jl(e) {
1792
- var t = e.state, n = e.options, r = e.name, a = n.mainAxis, s = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !1 : o, i = n.boundary, u = n.rootBoundary, d = n.altBoundary, c = n.padding, f = n.tether, m = f === void 0 ? !0 : f, g = n.tetherOffset, O = g === void 0 ? 0 : g, k = ut(t, {
1793
- boundary: i,
1794
- rootBoundary: u,
1793
+ var t = e.state, n = e.options, r = e.name, a = n.mainAxis, s = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !1 : o, u = n.boundary, i = n.rootBoundary, d = n.altBoundary, c = n.padding, f = n.tether, m = f === void 0 ? !0 : f, g = n.tetherOffset, O = g === void 0 ? 0 : g, k = ut(t, {
1794
+ boundary: u,
1795
+ rootBoundary: i,
1795
1796
  padding: c,
1796
1797
  altBoundary: d
1797
1798
  }), M = Re(t.placement), B = Ye(t.placement), R = !B, C = pn(M), w = Zl(C), E = t.modifiersData.popperOffsets, A = t.rects.reference, I = t.rects.popper, j = typeof O == "function" ? O(Object.assign({}, t.rects, {
@@ -1846,14 +1847,14 @@ function ri(e, t, n) {
1846
1847
  var r = Ce(t), a = Ce(t) && ni(t), s = De(t), o = Xe(e, a, n), l = {
1847
1848
  scrollLeft: 0,
1848
1849
  scrollTop: 0
1849
- }, i = {
1850
+ }, u = {
1850
1851
  x: 0,
1851
1852
  y: 0
1852
1853
  };
1853
1854
  return (r || !r && !n) && ((ze(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1854
- hn(s)) && (l = ti(t)), Ce(t) ? (i = Xe(t, !0), i.x += t.clientLeft, i.y += t.clientTop) : s && (i.x = mn(s))), {
1855
- x: o.left + l.scrollLeft - i.x,
1856
- y: o.top + l.scrollTop - i.y,
1855
+ hn(s)) && (l = ti(t)), Ce(t) ? (u = Xe(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : s && (u.x = mn(s))), {
1856
+ x: o.left + l.scrollLeft - u.x,
1857
+ y: o.top + l.scrollTop - u.y,
1857
1858
  width: o.width,
1858
1859
  height: o.height
1859
1860
  };
@@ -1868,8 +1869,8 @@ function ai(e) {
1868
1869
  var o = [].concat(s.requires || [], s.requiresIfExists || []);
1869
1870
  o.forEach(function(l) {
1870
1871
  if (!n.has(l)) {
1871
- var i = t.get(l);
1872
- i && a(i);
1872
+ var u = t.get(l);
1873
+ u && a(u);
1873
1874
  }
1874
1875
  }), r.push(s);
1875
1876
  }
@@ -1922,8 +1923,8 @@ function Pn() {
1922
1923
  function ii(e) {
1923
1924
  e === void 0 && (e = {});
1924
1925
  var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, a = t.defaultOptions, s = a === void 0 ? Dn : a;
1925
- return function(l, i, u) {
1926
- u === void 0 && (u = s);
1926
+ return function(l, u, i) {
1927
+ i === void 0 && (i = s);
1927
1928
  var d = {
1928
1929
  placement: "bottom",
1929
1930
  orderedModifiers: [],
@@ -1931,7 +1932,7 @@ function ii(e) {
1931
1932
  modifiersData: {},
1932
1933
  elements: {
1933
1934
  reference: l,
1934
- popper: i
1935
+ popper: u
1935
1936
  },
1936
1937
  attributes: {},
1937
1938
  styles: {}
@@ -1941,7 +1942,7 @@ function ii(e) {
1941
1942
  var B = typeof M == "function" ? M(d.options) : M;
1942
1943
  O(), d.options = Object.assign({}, s, d.options, B), d.scrollParents = {
1943
1944
  reference: We(l) ? st(l) : l.contextElement ? st(l.contextElement) : [],
1944
- popper: st(i)
1945
+ popper: st(u)
1945
1946
  };
1946
1947
  var R = oi(li([].concat(r, d.options.modifiers)));
1947
1948
  return d.orderedModifiers = R.filter(function(C) {
@@ -1990,10 +1991,10 @@ function ii(e) {
1990
1991
  O(), f = !0;
1991
1992
  }
1992
1993
  };
1993
- if (!Pn(l, i))
1994
+ if (!Pn(l, u))
1994
1995
  return m;
1995
- m.setOptions(u).then(function(k) {
1996
- !f && u.onFirstUpdate && u.onFirstUpdate(k);
1996
+ m.setOptions(i).then(function(k) {
1997
+ !f && i.onFirstUpdate && i.onFirstUpdate(k);
1997
1998
  });
1998
1999
  function g() {
1999
2000
  d.orderedModifiers.forEach(function(k) {
@@ -2039,7 +2040,7 @@ const ci = Object.freeze([
2039
2040
  "right-end"
2040
2041
  ]);
2041
2042
  function Dt(e) {
2042
- const { placement: t, transfer: n, wrapper: r, isDrop: a = !1 } = e, s = e.reference ?? b(null), o = e.popper ?? b(null), l = b("body"), i = {
2043
+ const { placement: t, transfer: n, wrapper: r, isDrop: a = !1 } = e, s = e.reference ?? b(null), o = e.popper ?? b(null), l = b("body"), u = {
2043
2044
  placement: t.value,
2044
2045
  modifiers: [
2045
2046
  {
@@ -2056,7 +2057,7 @@ function Dt(e) {
2056
2057
  }
2057
2058
  ]
2058
2059
  };
2059
- a && i.modifiers.push({
2060
+ a && u.modifiers.push({
2060
2061
  name: "setTransformOrigin",
2061
2062
  enabled: !0,
2062
2063
  phase: "afterWrite",
@@ -2064,15 +2065,15 @@ function Dt(e) {
2064
2065
  const B = fi(M.placement);
2065
2066
  B && (M.elements.popper.style.transformOrigin = B);
2066
2067
  }
2067
- }), e.offset && i.modifiers.push({
2068
+ }), e.offset && u.modifiers.push({
2068
2069
  name: "offset",
2069
2070
  options: {
2070
2071
  offset: e.offset
2071
2072
  }
2072
2073
  });
2073
- let u = null;
2074
+ let i = null;
2074
2075
  G(t, (M) => {
2075
- i.placement = M, u && (u == null || u.setOptions({ placement: M }));
2076
+ u.placement = M, i && (i == null || i.setOptions({ placement: M }));
2076
2077
  });
2077
2078
  const d = b(0);
2078
2079
  ct(() => {
@@ -2086,11 +2087,11 @@ function Dt(e) {
2086
2087
  }), _t(k);
2087
2088
  function f() {
2088
2089
  qe(() => {
2089
- u && u.forceUpdate(), r.value && (d.value = r.value.clientWidth);
2090
+ i && i.forceUpdate(), r.value && (d.value = r.value.clientWidth);
2090
2091
  });
2091
2092
  }
2092
2093
  function m() {
2093
- k(), u && u.destroy(), O();
2094
+ k(), i && i.destroy(), O();
2094
2095
  const M = G(s, O), B = G(o, O);
2095
2096
  c = () => {
2096
2097
  M(), B();
@@ -2100,14 +2101,14 @@ function Dt(e) {
2100
2101
  l.value = typeof M == "boolean" ? M ? "body" : "" : M;
2101
2102
  }
2102
2103
  function O() {
2103
- s.value && o.value && (u && u.destroy(), u = di(
2104
+ s.value && o.value && (i && i.destroy(), i = di(
2104
2105
  s.value,
2105
2106
  o.value,
2106
- i
2107
+ u
2107
2108
  ), f());
2108
2109
  }
2109
2110
  function k() {
2110
- u && u.destroy(), u = null, typeof c == "function" && (c(), c = null);
2111
+ i && i.destroy(), i = null, typeof c == "function" && (c(), c = null);
2111
2112
  }
2112
2113
  return {
2113
2114
  reference: s,
@@ -2165,8 +2166,8 @@ const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2165
2166
  s.value && o();
2166
2167
  });
2167
2168
  const s = b(!1), o = () => {
2168
- var i, u;
2169
- t("update:modelValue", Math.min(Math.max(r.value, 0), ((i = n.value) == null ? void 0 : i.clientWidth) || 0) / (((u = n.value) == null ? void 0 : u.clientWidth) || 0) * 100);
2169
+ var u, i;
2170
+ t("update:modelValue", Math.min(Math.max(r.value, 0), ((u = n.value) == null ? void 0 : u.clientWidth) || 0) / (((i = n.value) == null ? void 0 : i.clientWidth) || 0) * 100);
2170
2171
  };
2171
2172
  return {
2172
2173
  setThumbPosition: o,
@@ -2279,8 +2280,8 @@ const Ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2279
2280
  setup(e, { slots: t, emit: n, expose: r }) {
2280
2281
  const a = b(null), { focus: s, blur: o } = me(a), {
2281
2282
  id: l,
2282
- insideForm: i,
2283
- reset: u,
2283
+ insideForm: u,
2284
+ reset: i,
2284
2285
  inputListeners: d,
2285
2286
  validate: c,
2286
2287
  setError: f,
@@ -2437,7 +2438,7 @@ const Ur = /* @__PURE__ */ N(zi, [["render", ji]]), Li = P({
2437
2438
  MButton: sn
2438
2439
  },
2439
2440
  setup(e, { emit: t }) {
2440
- const { isSupported: n, open: r, sRGBHex: a } = Fs(), { nextZIndex: s } = Qe(), o = b(!1), l = b(!1), i = b(""), u = b(""), d = b(""), c = b(""), f = b(""), m = b(), g = b(), O = b(), k = X(e, "transfer"), M = X(e, "placement"), B = b(), R = b(0), C = b(100), w = b(!1), E = _e({
2441
+ const { isSupported: n, open: r, sRGBHex: a } = Fs(), { nextZIndex: s } = Qe(), o = b(!1), l = b(!1), u = b(""), i = b(""), d = b(""), c = b(""), f = b(""), m = b(), g = b(), O = b(), k = X(e, "transfer"), M = X(e, "placement"), B = b(), R = b(0), C = b(100), w = b(!1), E = _e({
2441
2442
  x: 0,
2442
2443
  y: 0
2443
2444
  }), A = b(e.zIndex ?? s()), { elementX: I, elementY: j } = Mr(m), { pressed: z } = Or(), { popper: $, transferTo: S, updatePopper: D } = Dt({
@@ -2448,7 +2449,7 @@ const Ur = /* @__PURE__ */ N(zi, [["render", ji]]), Li = P({
2448
2449
  isDrop: !1,
2449
2450
  offset: [-2, 2]
2450
2451
  }), H = p(() => 1 - E.y), K = p(() => E.x), _ = p(() => rl(R.value * 3.6, H.value, K.value, C.value / 100)), x = p(() => al(R.value * 3.6, C.value / 100)), Y = () => {
2451
- i.value = tl(_.value.r, _.value.g, _.value.b, _.value.a), u.value = _.value.r.toString(), d.value = _.value.g.toString(), c.value = _.value.b.toString(), f.value = _.value.a.toFixed(2).toString(), t("update:modelValue", i.value);
2452
+ u.value = tl(_.value.r, _.value.g, _.value.b, _.value.a), i.value = _.value.r.toString(), d.value = _.value.g.toString(), c.value = _.value.b.toString(), f.value = _.value.a.toFixed(2).toString(), t("update:modelValue", u.value);
2452
2453
  };
2453
2454
  G(() => _.value, () => {
2454
2455
  Y();
@@ -2456,10 +2457,10 @@ const Ur = /* @__PURE__ */ N(zi, [["render", ji]]), Li = P({
2456
2457
  const ae = (U, de) => {
2457
2458
  E.x = U.s, E.y = 1 - U.v, R.value = 1 / 360 * U.h * 100, C.value = de * 100, Y();
2458
2459
  }, ie = () => {
2459
- var U = nl(i.value, _.value.r, _.value.g, _.value.b, _.value.a);
2460
+ var U = nl(u.value, _.value.r, _.value.g, _.value.b, _.value.a);
2460
2461
  ae(En(U.r, U.g, U.b), U.a);
2461
2462
  }, be = () => {
2462
- var U = parseInt(u.value);
2463
+ var U = parseInt(i.value);
2463
2464
  (isNaN(U) || U > 255 || U < 0) && (U = _.value.r);
2464
2465
  var de = parseInt(d.value);
2465
2466
  (isNaN(de) || de > 255 || de < 0) && (de = _.value.g);
@@ -2473,7 +2474,7 @@ const Ur = /* @__PURE__ */ N(zi, [["render", ji]]), Li = P({
2473
2474
  }), G(() => [I.value, j.value], () => {
2474
2475
  w.value && se();
2475
2476
  }), G(() => e.modelValue, () => {
2476
- i.value = e.modelValue, ie(), console.log("hi");
2477
+ u.value = e.modelValue, ie(), console.log("hi");
2477
2478
  });
2478
2479
  const se = () => {
2479
2480
  var U, de, ve, ce;
@@ -2482,11 +2483,11 @@ const Ur = /* @__PURE__ */ N(zi, [["render", ji]]), Li = P({
2482
2483
  w.value = !0, se();
2483
2484
  };
2484
2485
  return pe(() => {
2485
- i.value = e.modelValue, ie();
2486
+ u.value = e.modelValue, ie();
2486
2487
  }), un($, (U) => {
2487
2488
  o.value = !1;
2488
2489
  }), G(() => a.value, () => {
2489
- i.value = a.value, ie();
2490
+ u.value = a.value, ie();
2490
2491
  }), {
2491
2492
  isOpen: o,
2492
2493
  popper: $,
@@ -2498,8 +2499,8 @@ const Ur = /* @__PURE__ */ N(zi, [["render", ji]]), Li = P({
2498
2499
  setInputs: Y,
2499
2500
  rgbOrHex: l,
2500
2501
  hexInputElement: B,
2501
- hexInput: i,
2502
- rInput: u,
2502
+ hexInput: u,
2503
+ rInput: i,
2503
2504
  gInput: d,
2504
2505
  bInput: c,
2505
2506
  aInput: f,
@@ -2563,11 +2564,11 @@ const Ur = /* @__PURE__ */ N(zi, [["render", ji]]), Li = P({
2563
2564
  Wi
2564
2565
  ];
2565
2566
  function Ki(e, t, n, r, a, s) {
2566
- const o = le("MSlider"), l = le("MInput"), i = le("MButton");
2567
+ const o = le("MSlider"), l = le("MInput"), u = le("MButton");
2567
2568
  return v(), y("div", Di, [
2568
2569
  T("div", {
2569
2570
  ref: "referenceRef",
2570
- onClick: t[0] || (t[0] = (u) => e.isOpen = !e.isOpen),
2571
+ onClick: t[0] || (t[0] = (i) => e.isOpen = !e.isOpen),
2571
2572
  class: h(e.style.reference)
2572
2573
  }, [
2573
2574
  T("div", {
@@ -2591,7 +2592,7 @@ function Ki(e, t, n, r, a, s) {
2591
2592
  }, [
2592
2593
  T("div", {
2593
2594
  ref: "picker",
2594
- onMousedown: t[3] || (t[3] = (...u) => e.handleMouseDown && e.handleMouseDown(...u)),
2595
+ onMousedown: t[3] || (t[3] = (...i) => e.handleMouseDown && e.handleMouseDown(...i)),
2595
2596
  class: h(e.style.colours),
2596
2597
  style: re(`background: rgb(${e.mainColor.r}, ${e.mainColor.g}, ${e.mainColor.b});`)
2597
2598
  }, [
@@ -2603,7 +2604,7 @@ function Ki(e, t, n, r, a, s) {
2603
2604
  }, null, 2),
2604
2605
  T("div", {
2605
2606
  class: h(e.style.sliderThumb),
2606
- onMousedown: t[1] || (t[1] = (...u) => e.handleMouseDown && e.handleMouseDown(...u)),
2607
+ onMousedown: t[1] || (t[1] = (...i) => e.handleMouseDown && e.handleMouseDown(...i)),
2607
2608
  onDragover: t[2] || (t[2] = Oe(() => {
2608
2609
  }, ["prevent"])),
2609
2610
  style: re({ left: `${e.position.x * 100}%`, top: `${e.position.y * 100}%` })
@@ -2617,7 +2618,7 @@ function Ki(e, t, n, r, a, s) {
2617
2618
  role: "button",
2618
2619
  disabled: !e.canPickColor,
2619
2620
  class: h(e.style.eyeDrop),
2620
- onClick: t[4] || (t[4] = (...u) => e.openEyeDropper && e.openEyeDropper(...u))
2621
+ onClick: t[4] || (t[4] = (...i) => e.openEyeDropper && e.openEyeDropper(...i))
2621
2622
  }, Ni, 10, Pi)) : (v(), y("div", {
2622
2623
  key: 1,
2623
2624
  class: h(e.style.preview)
@@ -2629,12 +2630,12 @@ function Ki(e, t, n, r, a, s) {
2629
2630
  T("div", Fi, [
2630
2631
  J(o, {
2631
2632
  modelValue: e.hueSlider,
2632
- "onUpdate:modelValue": t[5] || (t[5] = (u) => e.hueSlider = u),
2633
+ "onUpdate:modelValue": t[5] || (t[5] = (i) => e.hueSlider = i),
2633
2634
  background: "linear-gradient(to right, #FF0000, #FFFF00, #00FF00, #00FFFF, #0000FF, #FF00FF, #FF0000)"
2634
2635
  }, null, 8, ["modelValue"]),
2635
2636
  J(o, {
2636
2637
  modelValue: e.opacitySlider,
2637
- "onUpdate:modelValue": t[6] || (t[6] = (u) => e.opacitySlider = u),
2638
+ "onUpdate:modelValue": t[6] || (t[6] = (i) => e.opacitySlider = i),
2638
2639
  background: `linear-gradient(to right, rgba(${e.finalColor.r}, ${e.finalColor.g}, ${e.finalColor.b}, 0), rgba(${e.finalColor.r}, ${e.finalColor.g}, ${e.finalColor.b}, 1))`
2639
2640
  }, null, 8, ["modelValue", "background"])
2640
2641
  ])
@@ -2649,7 +2650,7 @@ function Ki(e, t, n, r, a, s) {
2649
2650
  block: "",
2650
2651
  ref: "rInputElement",
2651
2652
  modelValue: e.rInput,
2652
- "onUpdate:modelValue": t[7] || (t[7] = (u) => e.rInput = u),
2653
+ "onUpdate:modelValue": t[7] || (t[7] = (i) => e.rInput = i),
2653
2654
  name: "r",
2654
2655
  placeholder: "R"
2655
2656
  }, null, 8, ["onKeyup", "onBlur", "modelValue"]),
@@ -2659,7 +2660,7 @@ function Ki(e, t, n, r, a, s) {
2659
2660
  block: "",
2660
2661
  ref: "gInputElement",
2661
2662
  modelValue: e.gInput,
2662
- "onUpdate:modelValue": t[8] || (t[8] = (u) => e.gInput = u),
2663
+ "onUpdate:modelValue": t[8] || (t[8] = (i) => e.gInput = i),
2663
2664
  name: "g",
2664
2665
  placeholder: "G"
2665
2666
  }, null, 8, ["onKeyup", "onBlur", "modelValue"]),
@@ -2669,7 +2670,7 @@ function Ki(e, t, n, r, a, s) {
2669
2670
  block: "",
2670
2671
  ref: "bInputElement",
2671
2672
  modelValue: e.bInput,
2672
- "onUpdate:modelValue": t[9] || (t[9] = (u) => e.bInput = u),
2673
+ "onUpdate:modelValue": t[9] || (t[9] = (i) => e.bInput = i),
2673
2674
  name: "b",
2674
2675
  placeholder: "B"
2675
2676
  }, null, 8, ["onKeyup", "onBlur", "modelValue"]),
@@ -2679,7 +2680,7 @@ function Ki(e, t, n, r, a, s) {
2679
2680
  block: "",
2680
2681
  ref: "aInputElement",
2681
2682
  modelValue: e.aInput,
2682
- "onUpdate:modelValue": t[10] || (t[10] = (u) => e.aInput = u),
2683
+ "onUpdate:modelValue": t[10] || (t[10] = (i) => e.aInput = i),
2683
2684
  name: "a",
2684
2685
  placeholder: "A"
2685
2686
  }, null, 8, ["onKeyup", "onBlur", "modelValue"])
@@ -2690,13 +2691,13 @@ function Ki(e, t, n, r, a, s) {
2690
2691
  block: "",
2691
2692
  ref: "hexInputElement",
2692
2693
  modelValue: e.hexInput,
2693
- "onUpdate:modelValue": t[11] || (t[11] = (u) => e.hexInput = u),
2694
+ "onUpdate:modelValue": t[11] || (t[11] = (i) => e.hexInput = i),
2694
2695
  name: "hex",
2695
2696
  placeholder: "#00000000"
2696
2697
  }, null, 8, ["onKeyup", "onBlur", "modelValue"])),
2697
- J(i, {
2698
+ J(u, {
2698
2699
  icon: "",
2699
- onClick: t[12] || (t[12] = Oe((u) => e.rgbOrHex = !e.rgbOrHex, ["prevent"]))
2700
+ onClick: t[12] || (t[12] = Oe((i) => e.rgbOrHex = !e.rgbOrHex, ["prevent"]))
2700
2701
  }, {
2701
2702
  default: Z(() => [
2702
2703
  (v(), y("svg", Hi, xi))
@@ -2801,7 +2802,7 @@ const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2801
2802
  },
2802
2803
  emits: ["update:open"],
2803
2804
  setup(e, { emit: t }) {
2804
- const n = fe(Jt, null), { nextZIndex: r } = Qe(), a = !!n, s = X(e, "label"), o = b(e.open), l = b(e.placement), i = X(e, "transfer"), u = b(null), d = b(null), c = b(e.zIndex ?? r()), f = p(() => {
2805
+ const n = fe(Jt, null), { nextZIndex: r } = Qe(), a = !!n, s = X(e, "label"), o = b(e.open), l = b(e.placement), u = X(e, "transfer"), i = b(null), d = b(null), c = b(e.zIndex ?? r()), f = p(() => {
2805
2806
  if (e.virtual !== null) {
2806
2807
  const $ = e.virtual.$el ?? e.virtual;
2807
2808
  if ($) {
@@ -2824,8 +2825,8 @@ const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2824
2825
  }), { popper: m, transferTo: g, updatePopper: O } = Dt({
2825
2826
  reference: f,
2826
2827
  placement: l,
2827
- transfer: i,
2828
- wrapper: u,
2828
+ transfer: u,
2829
+ wrapper: i,
2829
2830
  isDrop: !0,
2830
2831
  offset: a ? [-2, 2] : [0, 14]
2831
2832
  }), k = Yr(s, d);
@@ -2852,7 +2853,7 @@ const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2852
2853
  });
2853
2854
  }), ee("resize", () => {
2854
2855
  O();
2855
- }), un(u, ($) => {
2856
+ }), un(i, ($) => {
2856
2857
  let S = $.target, D = 0;
2857
2858
  for (; S; ) {
2858
2859
  if (S.classList.contains("m-dropdown-menu"))
@@ -2899,7 +2900,7 @@ const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2899
2900
  j.value = `${D - $ - S - 30}px`;
2900
2901
  }
2901
2902
  return {
2902
- wrapper: u,
2903
+ wrapper: i,
2903
2904
  referenceRef: d,
2904
2905
  popper: m,
2905
2906
  transferTo: g,
@@ -2999,16 +3000,16 @@ const tu = /* @__PURE__ */ N(Qi, [["render", eu]]), nu = P({
2999
3000
  },
3000
3001
  emits: [],
3001
3002
  setup(e, { slots: t }) {
3002
- const n = fe("dropdown-select", null), r = p(() => !!t["icon-left"]), a = p(() => !!t["icon-right"]), s = b(null), o = X(e, "label"), l = b(e.reference), i = Yr(o, s);
3003
- function u() {
3004
- e.disabled || l.value || (typeof n == "function" && n([i.value]), e.onSelect(i.value));
3003
+ const n = fe("dropdown-select", null), r = p(() => !!t["icon-left"]), a = p(() => !!t["icon-right"]), s = b(null), o = X(e, "label"), l = b(e.reference), u = Yr(o, s);
3004
+ function i() {
3005
+ e.disabled || l.value || (typeof n == "function" && n([u.value]), e.onSelect(u.value));
3005
3006
  }
3006
3007
  const d = p(() => [Qr, ta[e.variant]]), c = p(() => e.href ? "a" : "li");
3007
3008
  return {
3008
3009
  wrapper: s,
3009
3010
  hasIconLeft: r,
3010
3011
  hasIconRight: a,
3011
- handleSelect: u,
3012
+ handleSelect: i,
3012
3013
  computedWrapperClasses: d,
3013
3014
  style: na,
3014
3015
  computedType: c
@@ -3122,8 +3123,8 @@ function aa(e, t) {
3122
3123
  if (typeof t == "object") {
3123
3124
  var r = e;
3124
3125
  ra(t, (o, l) => {
3125
- var i = vu(r, l);
3126
- n[Nn(i)] = String(o);
3126
+ var u = vu(r, l);
3127
+ n[Nn(u)] = String(o);
3127
3128
  });
3128
3129
  } else {
3129
3130
  var a = e;
@@ -3171,18 +3172,18 @@ const gu = P({
3171
3172
  expose: ["submit"],
3172
3173
  setup(e, { emit: t }) {
3173
3174
  const n = [], r = _e({
3174
- add: (i, u, d, c) => {
3175
- const f = n.find((m) => m.name === i);
3176
- f ? (f.focus = u, f.validate = d, f.setError = c) : n.push({
3177
- name: i,
3178
- focus: u,
3175
+ add: (u, i, d, c) => {
3176
+ const f = n.find((m) => m.name === u);
3177
+ f ? (f.focus = i, f.validate = d, f.setError = c) : n.push({
3178
+ name: u,
3179
+ focus: i,
3179
3180
  validate: d,
3180
3181
  setError: c
3181
3182
  });
3182
3183
  },
3183
- remove: (i) => {
3184
- const u = n.findIndex((d) => d.name === i);
3185
- n.splice(u, 1);
3184
+ remove: (u) => {
3185
+ const i = n.findIndex((d) => d.name === u);
3186
+ n.splice(i, 1);
3186
3187
  },
3187
3188
  insideForm: !0,
3188
3189
  disabled: X(e, "disabled"),
@@ -3190,29 +3191,29 @@ const gu = P({
3190
3191
  });
3191
3192
  Se(on, r), pe(() => {
3192
3193
  e.autoFocus && n && n.length > 0 && n[0].focus();
3193
- }), G(() => e.errors, (i) => {
3194
- i && qe(() => {
3195
- if (Array.isArray(i))
3196
- i.forEach((u) => {
3197
- const d = n.find((c) => c.name === u.field);
3198
- d && d.setError(u.message);
3194
+ }), G(() => e.errors, (u) => {
3195
+ u && qe(() => {
3196
+ if (Array.isArray(u))
3197
+ u.forEach((i) => {
3198
+ const d = n.find((c) => c.name === i.field);
3199
+ d && d.setError(i.message);
3199
3200
  });
3200
3201
  else {
3201
- const u = n.find((d) => d.name === i.field);
3202
- u && u.setError(i.message);
3202
+ const i = n.find((d) => d.name === u.field);
3203
+ i && i.setError(u.message);
3203
3204
  }
3204
3205
  });
3205
3206
  });
3206
3207
  const a = () => {
3207
- let i = !0;
3208
- return n.forEach((u) => {
3209
- u.validate() || (i = !1);
3210
- }), i;
3211
- }, s = (i) => {
3212
- i.preventDefault(), i.stopPropagation(), t("submit", e.autoValidate ? a() : !0);
3208
+ let u = !0;
3209
+ return n.forEach((i) => {
3210
+ i.validate() || (u = !1);
3211
+ }), u;
3212
+ }, s = (u) => {
3213
+ u.preventDefault(), u.stopPropagation(), t("submit", e.autoValidate ? a() : !0);
3213
3214
  }, o = p(() => {
3214
- let i = {};
3215
- return e.spacing && (i[hu.spacing] = e.spacing), aa(i);
3215
+ let u = {};
3216
+ return e.spacing && (u[hu.spacing] = e.spacing), aa(u);
3216
3217
  }), l = p(() => [
3217
3218
  mu
3218
3219
  ]);
@@ -3446,31 +3447,31 @@ const qu = /* @__PURE__ */ N(Bu, [["render", Ku]]), Gu = P({
3446
3447
  },
3447
3448
  setup(e, { slots: t }) {
3448
3449
  const n = b([]), r = b({}), a = {
3449
- create(u, d) {
3450
- return s(u, { type: "default", ...d });
3450
+ create(i, d) {
3451
+ return s(i, { type: "default", ...d });
3451
3452
  },
3452
- info(u, d) {
3453
- return s(u, { ...d, type: "info" });
3453
+ info(i, d) {
3454
+ return s(i, { ...d, type: "info" });
3454
3455
  },
3455
- success(u, d) {
3456
- return s(u, { ...d, type: "success" });
3456
+ success(i, d) {
3457
+ return s(i, { ...d, type: "success" });
3457
3458
  },
3458
- warning(u, d) {
3459
- return s(u, { ...d, type: "warning" });
3459
+ warning(i, d) {
3460
+ return s(i, { ...d, type: "warning" });
3460
3461
  },
3461
- error(u, d) {
3462
- return s(u, { ...d, type: "error" });
3462
+ error(i, d) {
3463
+ return s(i, { ...d, type: "error" });
3463
3464
  },
3464
- loading(u, d) {
3465
- return s(u, { ...d, type: "loading" });
3465
+ loading(i, d) {
3466
+ return s(i, { ...d, type: "loading" });
3466
3467
  },
3467
3468
  destroyAll: o
3468
3469
  };
3469
3470
  Se("m-message", a);
3470
- function s(u, d) {
3471
+ function s(i, d) {
3471
3472
  const c = Math.random().toString(16).slice(2, 14), f = _e({
3472
3473
  ...d,
3473
- content: u,
3474
+ content: i,
3474
3475
  key: c,
3475
3476
  destroy: () => {
3476
3477
  r.value[c].hide();
@@ -3479,16 +3480,16 @@ const qu = /* @__PURE__ */ N(Bu, [["render", Ku]]), Gu = P({
3479
3480
  return n.value.push(f), f;
3480
3481
  }
3481
3482
  function o() {
3482
- Object.values(r.value).forEach((u) => {
3483
- u.hide();
3483
+ Object.values(r.value).forEach((i) => {
3484
+ i.hide();
3484
3485
  });
3485
3486
  }
3486
- function l(u) {
3487
+ function l(i) {
3487
3488
  n.value = n.value.filter(
3488
- (d) => d.key !== u
3489
- ), delete r.value[u];
3489
+ (d) => d.key !== i
3490
+ ), delete r.value[i];
3490
3491
  }
3491
- const i = p(() => [
3492
+ const u = p(() => [
3492
3493
  Ou,
3493
3494
  // @ts-ignore
3494
3495
  [Tu[e.placement]]
@@ -3498,7 +3499,7 @@ const qu = /* @__PURE__ */ N(Bu, [["render", Ku]]), Gu = P({
3498
3499
  messageRefs: r,
3499
3500
  messageList: n,
3500
3501
  onInternalAfterLeave: l,
3501
- classes: i,
3502
+ classes: u,
3502
3503
  modalScale: Er
3503
3504
  },
3504
3505
  a
@@ -3615,7 +3616,7 @@ const fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3615
3616
  },
3616
3617
  emits: ["open"],
3617
3618
  setup(e, { emit: t, slots: n }) {
3618
- const { nextZIndex: r } = Qe(), a = b(!1), s = b(), o = Nt(), l = b(e.zIndex ?? r()), i = p(() => !!n.sidebar), u = p(() => !!n.footer), d = b(), c = p(() => {
3619
+ const { nextZIndex: r } = Qe(), a = b(!1), s = b(), o = Nt(), l = b(e.zIndex ?? r()), u = p(() => !!n.sidebar), i = p(() => !!n.footer), d = b(), c = p(() => {
3619
3620
  const { width: z, height: $ } = e, S = {};
3620
3621
  return z !== void 0 && (S.width = typeof z == "number" ? `${z}px` : z), $ !== void 0 && (S.height = typeof $ == "number" ? `${$}px` : $), d.value && (S.transformOrigin = d.value), S;
3621
3622
  }), f = p(() => [
@@ -3632,7 +3633,7 @@ const fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3632
3633
  ]), g = p(() => [
3633
3634
  la,
3634
3635
  {
3635
- [ia]: i.value
3636
+ [ia]: u.value
3636
3637
  }
3637
3638
  ]), O = p(() => ({
3638
3639
  zIndex: l.value
@@ -3689,8 +3690,8 @@ const fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3689
3690
  fade: Br,
3690
3691
  contentStyleRef: c,
3691
3692
  wrapperRef: o,
3692
- hasSidebar: i,
3693
- hasFooter: u,
3693
+ hasSidebar: u,
3694
+ hasFooter: i,
3694
3695
  nextZIndex: r
3695
3696
  };
3696
3697
  }
@@ -3832,14 +3833,14 @@ const kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3832
3833
  }))), s = p(() => Math.ceil(n.value / e.pageSize)), o = p(() => {
3833
3834
  let { page: c } = e;
3834
3835
  if (r.value)
3835
- return [i(1, { current: !1 })];
3836
+ return [u(1, { current: !1 })];
3836
3837
  let f = yt * 2 + 1, m = (gt - f - 2) / 2, g, O, k = Math.max(c - Fn, 1), M = Math.min(c + Fn, s.value);
3837
3838
  switch (!0) {
3838
3839
  case s.value <= gt:
3839
3840
  return l(1, s.value);
3840
3841
  case c <= m + yt + 2:
3841
3842
  return g = gt - m - 1, l(1, g).concat(
3842
- i(M, { more: !0, forward: !0 })
3843
+ u(M, { more: !0, forward: !0 })
3843
3844
  ).concat(
3844
3845
  l(
3845
3846
  s.value - m + 1,
@@ -3848,18 +3849,18 @@ const kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3848
3849
  );
3849
3850
  case c >= s.value - m - yt - 1:
3850
3851
  return O = gt - m - 1, l(1, m).concat(
3851
- i(k, { more: !0, forward: !1 })
3852
+ u(k, { more: !0, forward: !1 })
3852
3853
  ).concat(l(s.value - O + 1, O));
3853
3854
  default:
3854
3855
  return l(1, m).concat(
3855
- i(k, { more: !0, forward: !1 })
3856
+ u(k, { more: !0, forward: !1 })
3856
3857
  ).concat(
3857
3858
  l(
3858
3859
  c - yt,
3859
3860
  f
3860
3861
  )
3861
3862
  ).concat(
3862
- i(M, { more: !0, forward: !0 })
3863
+ u(M, { more: !0, forward: !0 })
3863
3864
  ).concat(
3864
3865
  l(
3865
3866
  s.value - m + 1,
@@ -3871,10 +3872,10 @@ const kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3871
3872
  function l(c, f) {
3872
3873
  let m = [];
3873
3874
  for (let g = 0; g < f; g++)
3874
- m[g] = i(c + g);
3875
+ m[g] = u(c + g);
3875
3876
  return m;
3876
3877
  }
3877
- function i(c, { more: f = !1, forward: m = !1, current: g = !1 } = {}) {
3878
+ function u(c, { more: f = !1, forward: m = !1, current: g = !1 } = {}) {
3878
3879
  return {
3879
3880
  page: c,
3880
3881
  more: f,
@@ -3883,7 +3884,7 @@ const kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3883
3884
  text: c
3884
3885
  };
3885
3886
  }
3886
- function u(c) {
3887
+ function i(c) {
3887
3888
  return `page-${c.more ? c.forward ? "forward" : "backward" : c.page}`;
3888
3889
  }
3889
3890
  function d(c) {
@@ -3897,7 +3898,7 @@ const kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3897
3898
  realPageSizes: a,
3898
3899
  pageCount: s,
3899
3900
  pageIndicatorSeries: o,
3900
- getKey: u,
3901
+ getKey: i,
3901
3902
  handlePageChange: d,
3902
3903
  style: kd
3903
3904
  };
@@ -3960,7 +3961,7 @@ function Rd(e, t, n, r, a, s) {
3960
3961
  tabindex: "0",
3961
3962
  disabled: e.isEmpty,
3962
3963
  role: "button",
3963
- onClick: (i) => e.handlePageChange(o.page),
3964
+ onClick: (u) => e.handlePageChange(o.page),
3964
3965
  "aria-label": o.current ? `Page ${o.page}` : `Goto page ${o.page}`
3965
3966
  }, [
3966
3967
  o.more ? (v(), y(Q, { key: 0 }, [
@@ -4034,8 +4035,8 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4034
4035
  setup(e, { slots: t, emit: n, expose: r }) {
4035
4036
  const a = b(null), { focus: s, blur: o } = me(a), {
4036
4037
  id: l,
4037
- insideForm: i,
4038
- reset: u,
4038
+ insideForm: u,
4039
+ reset: i,
4039
4040
  validate: d,
4040
4041
  setError: c,
4041
4042
  formError: f,
@@ -4063,8 +4064,8 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4063
4064
  }), {
4064
4065
  id: l,
4065
4066
  formError: f,
4066
- insideForm: i,
4067
- reset: u,
4067
+ insideForm: u,
4068
+ reset: i,
4068
4069
  validate: d,
4069
4070
  setError: c,
4070
4071
  disabled: k,
@@ -4149,8 +4150,8 @@ const ha = Symbol("RADIO_BUTTON_GROUP_STATE"), Xd = P({
4149
4150
  },
4150
4151
  emits: ["update:modelValue"],
4151
4152
  setup(e, { emit: t, expose: n }) {
4152
- const r = b(null), a = fe(ha, null), s = p(() => a == null ? void 0 : a.modelValue), o = p(() => (a == null ? void 0 : a.size) || e.size), l = p(() => a == null ? void 0 : a.name), { focus: i, blur: u } = me(r);
4153
- oe(e, { focus: i, emit: t });
4153
+ const r = b(null), a = fe(ha, null), s = p(() => a == null ? void 0 : a.modelValue), o = p(() => (a == null ? void 0 : a.size) || e.size), l = p(() => a == null ? void 0 : a.name), { focus: u, blur: i } = me(r);
4154
+ oe(e, { focus: u, emit: t });
4154
4155
  const d = p(() => s.value === e.id), c = p(() => [
4155
4156
  Kd,
4156
4157
  [Ud[o.value]],
@@ -4169,8 +4170,8 @@ const ha = Symbol("RADIO_BUTTON_GROUP_STATE"), Xd = P({
4169
4170
  a.doUpdateValue(e.id), e.onClick(g);
4170
4171
  };
4171
4172
  return n({
4172
- focus: i,
4173
- blur: u
4173
+ focus: u,
4174
+ blur: i
4174
4175
  }), {
4175
4176
  radioRef: r,
4176
4177
  computedClasses: c,
@@ -4178,8 +4179,8 @@ const ha = Symbol("RADIO_BUTTON_GROUP_STATE"), Xd = P({
4178
4179
  selected: d,
4179
4180
  value: s,
4180
4181
  name: l,
4181
- focus: i,
4182
- blur: u,
4182
+ focus: u,
4183
+ blur: i,
4183
4184
  computedRadioClasses: f
4184
4185
  };
4185
4186
  }
@@ -4444,7 +4445,7 @@ const Dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4444
4445
  MTag: ya
4445
4446
  },
4446
4447
  setup(e, { emit: t, expose: n }) {
4447
- const r = b(null), a = b(), s = b(), o = b(), l = b(), i = b(0), u = b(!1), d = b(!1), c = b(""), f = b("bottom-start"), m = b(!1), g = b(0), O = b(!1), { focus: k, blur: M } = me(r), {
4448
+ const r = b(null), a = b(), s = b(), o = b(), l = b(), u = b(0), i = b(!1), d = b(!1), c = b(""), f = b("bottom-start"), m = b(!1), g = b(0), O = b(!1), { focus: k, blur: M } = me(r), {
4448
4449
  id: B,
4449
4450
  insideForm: R,
4450
4451
  inputListeners: C,
@@ -4517,20 +4518,20 @@ const Dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4517
4518
  }
4518
4519
  function Y() {
4519
4520
  if (!(z.value || $.value)) {
4520
- if (u.value) {
4521
- u.value = !1;
4521
+ if (i.value) {
4522
+ i.value = !1;
4522
4523
  return;
4523
4524
  }
4524
- u.value = !0;
4525
+ i.value = !0;
4525
4526
  }
4526
4527
  }
4527
4528
  function ae(F, te = "down") {
4528
4529
  if (typeof F > "u" && (F = te === "down" ? -1 : 1), te === "down") {
4529
4530
  let q = F + 1;
4530
- q > _.value.length - 1 && (q = 0), i.value = q;
4531
+ q > _.value.length - 1 && (q = 0), u.value = q;
4531
4532
  } else {
4532
4533
  let q = F - 1;
4533
- q < 0 && (q = _.value.length - 1), i.value = q;
4534
+ q < 0 && (q = _.value.length - 1), u.value = q;
4534
4535
  }
4535
4536
  }
4536
4537
  function ie(F) {
@@ -4545,7 +4546,7 @@ const Dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4545
4546
  S.value = [F];
4546
4547
  j();
4547
4548
  } else
4548
- S.value = F, u.value = !1;
4549
+ S.value = F, i.value = !1;
4549
4550
  }
4550
4551
  function be(F, te) {
4551
4552
  if (F.preventDefault(), F.stopPropagation(), !!e.multiple && Array.isArray(S.value)) {
@@ -4554,40 +4555,40 @@ const Dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4554
4555
  }
4555
4556
  }
4556
4557
  ee("resize", () => {
4557
- u.value = !1;
4558
+ i.value = !1;
4558
4559
  });
4559
4560
  function se(F) {
4560
4561
  if (_.value.length === 0 || e.disabled)
4561
4562
  return;
4562
4563
  switch (O.value = !0, F.code) {
4563
4564
  case "Tab":
4564
- u.value && (u.value = !1);
4565
+ i.value && (i.value = !1);
4565
4566
  break;
4566
4567
  case "ArrowDown":
4567
- if (F.preventDefault(), !u.value) {
4568
- u.value = !0;
4568
+ if (F.preventDefault(), !i.value) {
4569
+ i.value = !0;
4569
4570
  return;
4570
4571
  }
4571
- ae(i.value, "down");
4572
+ ae(u.value, "down");
4572
4573
  break;
4573
4574
  case "ArrowUp":
4574
- if (F.preventDefault(), !u.value)
4575
+ if (F.preventDefault(), !i.value)
4575
4576
  return;
4576
- ae(i.value, "up");
4577
+ ae(u.value, "up");
4577
4578
  break;
4578
4579
  case "Enter":
4579
- if (F.preventDefault(), F.stopPropagation(), !u.value) {
4580
- u.value = !0;
4580
+ if (F.preventDefault(), F.stopPropagation(), !i.value) {
4581
+ i.value = !0;
4581
4582
  return;
4582
4583
  }
4583
- typeof i.value < "u" && (ie(
4584
- _.value[i.value].value
4585
- ), e.multiple || (u.value = !1));
4584
+ typeof u.value < "u" && (ie(
4585
+ _.value[u.value].value
4586
+ ), e.multiple || (i.value = !1));
4586
4587
  break;
4587
4588
  case "Escape":
4588
- if (F.preventDefault(), F.stopPropagation(), !u.value)
4589
+ if (F.preventDefault(), F.stopPropagation(), !i.value)
4589
4590
  return;
4590
- u.value = !1;
4591
+ i.value = !1;
4591
4592
  break;
4592
4593
  }
4593
4594
  }
@@ -4605,10 +4606,10 @@ const Dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4605
4606
  ba,
4606
4607
  {
4607
4608
  [wa]: e.multiple && Array.isArray(S.value) && S.value.length > 0,
4608
- [Qt]: u.value,
4609
+ [Qt]: i.value,
4609
4610
  // [`m-select--${props.size}`]: props.size,
4610
4611
  "m-select--disabled": z.value || $.value,
4611
- "m-select--focused": u.value,
4612
+ "m-select--focused": i.value,
4612
4613
  "m-select--multiple": e.multiple,
4613
4614
  "m-select--error": w.value
4614
4615
  }
@@ -4622,17 +4623,17 @@ const Dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4622
4623
  ee(l, "keydown", se), ee(o, "keydown", se), un(
4623
4624
  r,
4624
4625
  () => {
4625
- u.value = !1;
4626
+ i.value = !1;
4626
4627
  },
4627
4628
  { ignore: [o, I] }
4628
4629
  ), ct(() => {
4629
- r.value && u.value && (g.value = r.value.offsetWidth);
4630
- }), G(i, (F) => {
4630
+ r.value && i.value && (g.value = r.value.offsetWidth);
4631
+ }), G(u, (F) => {
4631
4632
  O.value && typeof F < "u" && s.value && s.value[F].scrollIntoView({
4632
4633
  block: "nearest",
4633
4634
  inline: "nearest"
4634
4635
  });
4635
- }), G(u, (F) => {
4636
+ }), G(i, (F) => {
4636
4637
  qe(() => {
4637
4638
  if (F || (c.value = ""), e.searchable && o.value && o.value.focus(), F && s.value) {
4638
4639
  const te = _.value.findIndex(
@@ -4640,14 +4641,14 @@ const Dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4640
4641
  );
4641
4642
  te !== -1 && (s.value[te].scrollIntoView({
4642
4643
  block: "nearest"
4643
- }), i.value = te);
4644
+ }), u.value = te);
4644
4645
  }
4645
4646
  O.value = !1;
4646
4647
  });
4647
4648
  });
4648
- const ce = p(() => w.value || e.error), et = p(() => e.multiple && _.value.length == 0 && !c.value ? !1 : u.value), Pt = (F) => {
4649
+ const ce = p(() => w.value || e.error), et = p(() => e.multiple && _.value.length == 0 && !c.value ? !1 : i.value), Pt = (F) => {
4649
4650
  setTimeout(() => {
4650
- l.value && !u.value && Y();
4651
+ l.value && !i.value && Y();
4651
4652
  }, 10);
4652
4653
  }, tt = (F) => {
4653
4654
  F.preventDefault(), F.stopPropagation(), Y();
@@ -4665,12 +4666,12 @@ const Dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4665
4666
  onSelectClick: tt,
4666
4667
  id: B,
4667
4668
  isOpen: et,
4668
- open: u,
4669
+ open: i,
4669
4670
  selected: S,
4670
4671
  selectedMax: D,
4671
4672
  selectedCountNotShown: H,
4672
4673
  computedOptions: _,
4673
- selectedIndex: i,
4674
+ selectedIndex: u,
4674
4675
  search: c,
4675
4676
  containerComputedClasses: Ie,
4676
4677
  selectComputedClasses: de,
@@ -4745,7 +4746,7 @@ function Yc(e, t, n, r, a, s) {
4745
4746
  (v(!0), y(Q, null, he(e.selectedMax, (l) => (v(), ne(o, {
4746
4747
  key: l,
4747
4748
  closeable: !0,
4748
- onClose: (i) => e.removeSelected(i, l),
4749
+ onClose: (u) => e.removeSelected(u, l),
4749
4750
  size: e.size
4750
4751
  }, {
4751
4752
  default: Z(() => [
@@ -4819,17 +4820,17 @@ function Yc(e, t, n, r, a, s) {
4819
4820
  T("div", {
4820
4821
  class: h(e.style.options)
4821
4822
  }, [
4822
- (v(!0), y(Q, null, he(e.computedOptions, (l, i) => (v(), y("div", {
4823
- key: i,
4823
+ (v(!0), y(Q, null, he(e.computedOptions, (l, u) => (v(), y("div", {
4824
+ key: u,
4824
4825
  ref_for: !0,
4825
4826
  ref: "optionsRef",
4826
4827
  class: h({
4827
4828
  [e.style.option]: !0,
4828
4829
  [e.style.optionSelected]: l.active,
4829
- [e.style.optionFocused]: e.selectedIndex === i
4830
+ [e.style.optionFocused]: e.selectedIndex === u
4830
4831
  }),
4831
4832
  onClick: Oe(l.onClick, ["prevent"]),
4832
- onHover: (u) => e.selectedIndex = i
4833
+ onHover: (i) => e.selectedIndex = u
4833
4834
  }, [
4834
4835
  T("span", {
4835
4836
  class: h(e.style.optionIcon)
@@ -4931,8 +4932,8 @@ const sf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4931
4932
  setup(e, { slots: t, emit: n, expose: r }) {
4932
4933
  const a = b(null), { focus: s, blur: o } = me(a), {
4933
4934
  id: l,
4934
- insideForm: i,
4935
- reset: u,
4935
+ insideForm: u,
4936
+ reset: i,
4936
4937
  validate: d,
4937
4938
  setError: c,
4938
4939
  formError: f,
@@ -4961,8 +4962,8 @@ const sf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4961
4962
  }), {
4962
4963
  id: l,
4963
4964
  formError: f,
4964
- insideForm: i,
4965
- reset: u,
4965
+ insideForm: u,
4966
+ reset: i,
4966
4967
  validate: d,
4967
4968
  setError: c,
4968
4969
  disabled: k,
@@ -5035,11 +5036,11 @@ const ff = /* @__PURE__ */ N(lf, [["render", cf]]), pf = P({
5035
5036
  })
5036
5037
  }), l = p(() => ({
5037
5038
  "m-tab": !0,
5038
- "m-tab--active": u.value,
5039
+ "m-tab--active": i.value,
5039
5040
  "m-tab--disabled": e.disabled
5040
- })), i = p(() => ({
5041
+ })), u = p(() => ({
5041
5042
  "m-tabs__button": !0
5042
- })), u = p(() => o.state.active === n.value);
5043
+ })), i = p(() => o.state.active === n.value);
5043
5044
  function d() {
5044
5045
  o.selectTab(n.value);
5045
5046
  }
@@ -5050,9 +5051,9 @@ const ff = /* @__PURE__ */ N(lf, [["render", cf]]), pf = P({
5050
5051
  computedLabel: r,
5051
5052
  tabRef: a,
5052
5053
  computedTabWrapperClasses: l,
5053
- computedTabClasses: i,
5054
+ computedTabClasses: u,
5054
5055
  handleClick: d,
5055
- selected: u,
5056
+ selected: i,
5056
5057
  teleportTo: s
5057
5058
  };
5058
5059
  }
@@ -5114,22 +5115,22 @@ const gf = /* @__PURE__ */ N(pf, [["render", hf]]), yf = P({
5114
5115
  "m-tab-group": !0,
5115
5116
  "m-tab-group--vertical": e.vertical,
5116
5117
  [`m-tab-group--${e.size}`]: !0
5117
- })), i = p(() => ({
5118
+ })), u = p(() => ({
5118
5119
  "m-tab-group__tabs": !0
5119
5120
  }));
5120
- function u(d) {
5121
+ function i(d) {
5121
5122
  s.value = d, t("update:modelValue", d);
5122
5123
  }
5123
5124
  return Se("tabs", {
5124
5125
  tabsContentRef: r,
5125
- selectTab: u,
5126
+ selectTab: i,
5126
5127
  state: o
5127
5128
  }), {
5128
5129
  wrapperRef: n,
5129
5130
  tabsContentRef: r,
5130
5131
  contentRef: a,
5131
5132
  computedWrapperClasses: l,
5132
- computedTabsClasses: i
5133
+ computedTabsClasses: u
5133
5134
  };
5134
5135
  }
5135
5136
  }), bf = { ref: "wrapperRef" }, wf = {
@@ -5288,20 +5289,20 @@ const Df = P({
5288
5289
  function l(c, f) {
5289
5290
  return c === f;
5290
5291
  }
5291
- function i(c) {
5292
+ function u(c) {
5292
5293
  if (!n.onSelect) {
5293
5294
  s.value.push(c);
5294
5295
  return;
5295
5296
  }
5296
5297
  n.onSelect(c);
5297
5298
  }
5298
- function u() {
5299
+ function i() {
5299
5300
  e.items.forEach((c) => {
5300
- s.value.some((f) => l(On(f), On(c))) || i(c);
5301
+ s.value.some((f) => l(On(f), On(c))) || u(c);
5301
5302
  });
5302
5303
  }
5303
5304
  function d(c) {
5304
- c.target.checked ? u() : s.value = [];
5305
+ c.target.checked ? i() : s.value = [];
5305
5306
  }
5306
5307
  return {
5307
5308
  wrapperComputedClasses: r,
@@ -5309,19 +5310,19 @@ const Df = P({
5309
5310
  selected: s,
5310
5311
  indeterminate: o,
5311
5312
  onChange: d,
5312
- onSelect: i
5313
+ onSelect: u
5313
5314
  };
5314
5315
  }
5315
5316
  }), Pf = { key: 1 }, Vf = ["colspan"];
5316
5317
  function Nf(e, t, n, r, a, s) {
5317
- const o = le("MCheckbox"), l = le("TableHead"), i = le("TableHeadRow"), u = le("TableCell"), d = le("TableRow"), c = le("TableBody");
5318
+ const o = le("MCheckbox"), l = le("TableHead"), u = le("TableHeadRow"), i = le("TableCell"), d = le("TableRow"), c = le("TableBody");
5318
5319
  return v(), y("div", {
5319
5320
  class: h(e.wrapperComputedClasses)
5320
5321
  }, [
5321
5322
  T("table", {
5322
5323
  class: h(e.tableComputedClasses)
5323
5324
  }, [
5324
- J(i, null, {
5325
+ J(u, null, {
5325
5326
  default: Z(() => [
5326
5327
  e.modelValue ? (v(), ne(l, {
5327
5328
  key: 0,
@@ -5356,7 +5357,7 @@ function Nf(e, t, n, r, a, s) {
5356
5357
  default: Z(() => [
5357
5358
  e.items.length > 0 ? (v(!0), y(Q, { key: 0 }, he(e.items, (f, m) => (v(), ne(d, { key: m }, {
5358
5359
  default: Z(({ onHover: g }) => [
5359
- e.modelValue ? (v(), ne(u, { key: 0 }, {
5360
+ e.modelValue ? (v(), ne(i, { key: 0 }, {
5360
5361
  default: Z(() => [
5361
5362
  J(o, {
5362
5363
  modelValue: e.selected,
@@ -5368,7 +5369,7 @@ function Nf(e, t, n, r, a, s) {
5368
5369
  ]),
5369
5370
  _: 2
5370
5371
  }, 1024)) : V("", !0),
5371
- (v(!0), y(Q, null, he(e.headers, (O, k) => (v(), ne(u, {
5372
+ (v(!0), y(Q, null, he(e.headers, (O, k) => (v(), ne(i, {
5372
5373
  key: k,
5373
5374
  style: re({ textAlign: O.align })
5374
5375
  }, {
@@ -5464,8 +5465,8 @@ const qf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5464
5465
  setup(e, { slots: t, emit: n, expose: r }) {
5465
5466
  const a = b(null), { focus: s, blur: o } = me(a), {
5466
5467
  id: l,
5467
- insideForm: i,
5468
- reset: u,
5468
+ insideForm: u,
5469
+ reset: i,
5469
5470
  inputListeners: d,
5470
5471
  validate: c,
5471
5472
  setError: f,
@@ -5598,7 +5599,7 @@ const rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5598
5599
  }
5599
5600
  },
5600
5601
  setup(e) {
5601
- const { nextZIndex: t } = Qe(), n = X(e, "placement"), r = X(e, "transfer"), a = b(null), s = b(null), o = b(!1), l = b(e.zIndex ?? t()), i = b(null), u = p(() => {
5602
+ const { nextZIndex: t } = Qe(), n = X(e, "placement"), r = X(e, "transfer"), a = b(null), s = b(null), o = b(!1), l = b(e.zIndex ?? t()), u = b(null), i = p(() => {
5602
5603
  switch (n.value) {
5603
5604
  case "top":
5604
5605
  return [0, 8];
@@ -5617,7 +5618,7 @@ const rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5617
5618
  reference: s,
5618
5619
  wrapper: a,
5619
5620
  // @ts-ignore
5620
- offset: u.value
5621
+ offset: i.value
5621
5622
  }), m = p(() => [
5622
5623
  Da,
5623
5624
  {
@@ -5631,15 +5632,15 @@ const rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5631
5632
  }
5632
5633
  );
5633
5634
  function g() {
5634
- i.value && clearTimeout(i.value), e.delay ? i.value = setTimeout(() => {
5635
+ u.value && clearTimeout(u.value), e.delay ? u.value = setTimeout(() => {
5635
5636
  o.value = !0;
5636
5637
  }, e.delay) : o.value = !0;
5637
5638
  }
5638
5639
  function O() {
5639
- i.value && clearTimeout(i.value), o.value = !1;
5640
+ u.value && clearTimeout(u.value), o.value = !1;
5640
5641
  }
5641
5642
  return cr(() => {
5642
- o.value = !1, i.value && clearTimeout(i.value), i.value = null;
5643
+ o.value = !1, u.value && clearTimeout(u.value), u.value = null;
5643
5644
  }), {
5644
5645
  reference: s,
5645
5646
  popper: d,
@@ -5730,23 +5731,23 @@ const mp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5730
5731
  },
5731
5732
  setup(e, { emit: t }) {
5732
5733
  const n = b(null), r = () => {
5733
- const i = p(
5734
+ const u = p(
5734
5735
  () => (
5735
5736
  // @ts-ignore
5736
5737
  e.options.reduce((c, f) => (c[f[e.optionKey]] = f) && c, {})
5737
5738
  )
5738
- ), u = p(
5739
+ ), i = p(
5739
5740
  () => e.options.filter((c) => !e.modelValue.includes(c[e.optionKey])).sort((c, f) => c[e.optionLabel].localeCompare(f[e.optionLabel]))
5740
5741
  ), d = p(() => e.modelValue.reduce(
5741
5742
  // @ts-ignore
5742
5743
  (c, f) => {
5743
- const m = i.value[f];
5744
+ const m = u.value[f];
5744
5745
  return m && c.push(m), c;
5745
5746
  },
5746
5747
  []
5747
5748
  ));
5748
5749
  return {
5749
- sourceData: u,
5750
+ sourceData: i,
5750
5751
  targetData: d
5751
5752
  };
5752
5753
  }, { sourceData: a, targetData: s } = r();
@@ -5755,11 +5756,11 @@ const mp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5755
5756
  sourceData: a,
5756
5757
  targetData: s,
5757
5758
  wrapper: n,
5758
- handleSourceClick: (i) => {
5759
- t("update:modelValue", [...e.modelValue, i[e.optionKey]]);
5759
+ handleSourceClick: (u) => {
5760
+ t("update:modelValue", [...e.modelValue, u[e.optionKey]]);
5760
5761
  },
5761
- handleTargetClick: (i) => {
5762
- t("update:modelValue", e.modelValue.filter((u) => u !== i[e.optionKey]));
5762
+ handleTargetClick: (u) => {
5763
+ t("update:modelValue", e.modelValue.filter((i) => i !== u[e.optionKey]));
5763
5764
  }
5764
5765
  };
5765
5766
  }
@@ -5853,7 +5854,7 @@ const kp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5853
5854
  }
5854
5855
  },
5855
5856
  setup(e, { emit: t }) {
5856
- const n = b(), r = b(), a = b(0), s = b(0), o = b(0), l = b(0), i = p(() => e.items.length * e.itemHeight), u = p(() => e.items[0].length * e.itemWidth), d = p(() => {
5857
+ const n = b(), r = b(), a = b(0), s = b(0), o = b(0), l = b(0), u = p(() => e.items.length * e.itemHeight), i = p(() => e.items[0].length * e.itemWidth), d = p(() => {
5857
5858
  const B = Math.max(
5858
5859
  0,
5859
5860
  Math.floor(o.value / e.itemHeight) - 2 * e.buffer
@@ -5910,8 +5911,8 @@ const kp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5910
5911
  scrollerWidth: s,
5911
5912
  scrollTop: o,
5912
5913
  scrollLeft: l,
5913
- totalHeight: i,
5914
- totalWidth: u,
5914
+ totalHeight: u,
5915
+ totalWidth: i,
5915
5916
  startPosition: d,
5916
5917
  endPosition: c,
5917
5918
  renderedItems: k,
@@ -5939,11 +5940,11 @@ function Sp(e, t, n, r, a, s) {
5939
5940
  key: l,
5940
5941
  style: { display: "flex" }
5941
5942
  }, [
5942
- (v(!0), y(Q, null, he(o, (i, u) => (v(), y("div", {
5943
- key: u,
5943
+ (v(!0), y(Q, null, he(o, (u, i) => (v(), y("div", {
5944
+ key: i,
5944
5945
  style: re({ width: `${e.itemWidth}px`, height: `${e.itemHeight}px` })
5945
5946
  }, [
5946
- L(e.$slots, "item", { item: i })
5947
+ L(e.$slots, "item", { item: u })
5947
5948
  ], 4))), 128))
5948
5949
  ]))), 128))
5949
5950
  ], 4)
@@ -6045,11 +6046,11 @@ const Pa = /* @__PURE__ */ N(Op, [["render", Ep]]), Ap = {
6045
6046
  setup(e, { slots: t }) {
6046
6047
  const n = b([]), r = {};
6047
6048
  function a(l) {
6048
- const { id: i } = wr("m-confirm"), u = i.value, d = {
6049
+ const { id: u } = wr("m-confirm"), i = u.value, d = {
6049
6050
  ...l,
6050
- key: u,
6051
+ key: i,
6051
6052
  destroy: () => {
6052
- r[u].hide();
6053
+ r[i].hide();
6053
6054
  }
6054
6055
  };
6055
6056
  return n.value.push(d), d;
@@ -6151,21 +6152,21 @@ const Wp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6151
6152
  handle: a,
6152
6153
  preventDefault: !0
6153
6154
  // containerElement: wrapper,
6154
- }), { nextZIndex: l } = Qe(), i = p(() => ({
6155
+ }), { nextZIndex: l } = Qe(), u = p(() => ({
6155
6156
  [Va]: !0,
6156
6157
  [Na]: e.backdrop === !0
6157
- })), u = p(() => typeof e.width == "number" ? e.width + "px" : e.width), d = b(e.zIndex ?? l());
6158
+ })), i = p(() => typeof e.width == "number" ? e.width + "px" : e.width), d = b(e.zIndex ?? l());
6158
6159
  return {
6159
6160
  slots: t,
6160
6161
  wrapper: n,
6161
6162
  dialog: r,
6162
6163
  handle: a,
6163
6164
  zIndex: d,
6164
- width: u,
6165
+ width: i,
6165
6166
  x: s,
6166
6167
  y: o,
6167
6168
  style: Wp,
6168
- backdropClasses: i,
6169
+ backdropClasses: u,
6169
6170
  nextZIndex: l
6170
6171
  };
6171
6172
  }
@@ -6327,8 +6328,8 @@ function av(e, t) {
6327
6328
  for (; a--; ) {
6328
6329
  const o = [];
6329
6330
  s.forEach((l) => {
6330
- e.forEach((i) => {
6331
- o.push(l.replace("&", i));
6331
+ e.forEach((u) => {
6332
+ o.push(l.replace("&", u));
6332
6333
  });
6333
6334
  }), s = o;
6334
6335
  }
@@ -6400,14 +6401,14 @@ ${a}
6400
6401
  e + " {"
6401
6402
  ] : [];
6402
6403
  return s.forEach((l) => {
6403
- const i = a[l];
6404
+ const u = a[l];
6404
6405
  if (l === "raw") {
6405
6406
  o.push(`
6406
- ` + i + `
6407
+ ` + u + `
6407
6408
  `);
6408
6409
  return;
6409
6410
  }
6410
- l = xa(l), i != null && o.push(` ${l}${uv(i)}`);
6411
+ l = xa(l), u != null && o.push(` ${l}${uv(u)}`);
6411
6412
  }), e && o.push("}"), o.join(`
6412
6413
  `);
6413
6414
  }
@@ -6442,16 +6443,16 @@ function Ka(e, t, n, r, a, s) {
6442
6443
  });
6443
6444
  wt(d) ? l = d : t.push(d);
6444
6445
  }
6445
- const i = sv(t), u = Gn(i, e.props, r, a);
6446
- l ? (n.push(`${l} {`), s && u && s.insertRule(`${l} {
6447
- ${u}
6446
+ const u = sv(t), i = Gn(u, e.props, r, a);
6447
+ l ? (n.push(`${l} {`), s && i && s.insertRule(`${l} {
6448
+ ${i}
6448
6449
  }
6449
- `)) : (s && u && s.insertRule(u), !s && u.length && n.push(u)), e.children && en(e.children, {
6450
+ `)) : (s && i && s.insertRule(i), !s && i.length && n.push(i)), e.children && en(e.children, {
6450
6451
  context: r.context,
6451
6452
  props: a
6452
6453
  }, (d) => {
6453
6454
  if (typeof d == "string") {
6454
- const c = Gn(i, { raw: d }, r, a);
6455
+ const c = Gn(u, { raw: d }, r, a);
6455
6456
  s ? s.insertRule(c) : n.push(c);
6456
6457
  } else
6457
6458
  Ka(d, t, n, r, a, s);
@@ -6495,8 +6496,8 @@ function fv(e, t, n) {
6495
6496
  function Un(e, t) {
6496
6497
  e.push(t);
6497
6498
  }
6498
- function pv(e, t, n, r, a, s, o, l, i) {
6499
- if (s && !i) {
6499
+ function pv(e, t, n, r, a, s, o, l, u) {
6500
+ if (s && !u) {
6500
6501
  if (n === void 0) {
6501
6502
  console.error("[css-render/mount]: `id` is required in `silent` mode.");
6502
6503
  return;
@@ -6505,16 +6506,16 @@ function pv(e, t, n, r, a, s, o, l, i) {
6505
6506
  f[n] || (f[n] = !0, qa(t, e, r, s));
6506
6507
  return;
6507
6508
  }
6508
- let u;
6509
- if (n === void 0 && (u = t.render(r), n = cv(u)), i) {
6510
- i.adapter(n, u ?? t.render(r));
6509
+ let i;
6510
+ if (n === void 0 && (i = t.render(r), n = cv(i)), u) {
6511
+ u.adapter(n, i ?? t.render(r));
6511
6512
  return;
6512
6513
  }
6513
6514
  const d = gn(n);
6514
6515
  if (d !== null && !o)
6515
6516
  return d;
6516
6517
  const c = d ?? lv(n);
6517
- if (u === void 0 && (u = t.render(r)), c.textContent = u, d !== null)
6518
+ if (i === void 0 && (i = t.render(r)), c.textContent = i, d !== null)
6518
6519
  return d;
6519
6520
  if (l) {
6520
6521
  const f = document.head.querySelector(`meta[name="${l}"]`);
@@ -6669,8 +6670,8 @@ var He = function(e) {
6669
6670
  return this.x = t, this.y = n, this.width = r, this.height = a, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, He(this);
6670
6671
  }
6671
6672
  return e.prototype.toJSON = function() {
6672
- var t = this, n = t.x, r = t.y, a = t.top, s = t.right, o = t.bottom, l = t.left, i = t.width, u = t.height;
6673
- return { x: n, y: r, top: a, right: s, bottom: o, left: l, width: i, height: u };
6673
+ var t = this, n = t.x, r = t.y, a = t.top, s = t.right, o = t.bottom, l = t.left, u = t.width, i = t.height;
6674
+ return { x: n, y: r, top: a, right: s, bottom: o, left: l, width: u, height: i };
6674
6675
  }, e.fromRect = function(t) {
6675
6676
  return new e(t.x, t.y, t.width, t.height);
6676
6677
  }, e;
@@ -6718,11 +6719,11 @@ var He = function(e) {
6718
6719
  return kt.get(e);
6719
6720
  if (Ua(e))
6720
6721
  return kt.set(e, Qn), Qn;
6721
- var n = getComputedStyle(e), r = yn(e) && e.ownerSVGElement && e.getBBox(), a = !Ov && n.boxSizing === "border-box", s = Mv.test(n.writingMode || ""), o = !r && Jn.test(n.overflowY || ""), l = !r && Jn.test(n.overflowX || ""), i = r ? 0 : Ee(n.paddingTop), u = r ? 0 : Ee(n.paddingRight), d = r ? 0 : Ee(n.paddingBottom), c = r ? 0 : Ee(n.paddingLeft), f = r ? 0 : Ee(n.borderTopWidth), m = r ? 0 : Ee(n.borderRightWidth), g = r ? 0 : Ee(n.borderBottomWidth), O = r ? 0 : Ee(n.borderLeftWidth), k = c + u, M = i + d, B = O + m, R = f + g, C = l ? e.offsetHeight - R - e.clientHeight : 0, w = o ? e.offsetWidth - B - e.clientWidth : 0, E = a ? k + B : 0, A = a ? M + R : 0, I = r ? r.width : Ee(n.width) - E - w, j = r ? r.height : Ee(n.height) - A - C, z = I + k + w + B, $ = j + M + C + R, S = He({
6722
+ var n = getComputedStyle(e), r = yn(e) && e.ownerSVGElement && e.getBBox(), a = !Ov && n.boxSizing === "border-box", s = Mv.test(n.writingMode || ""), o = !r && Jn.test(n.overflowY || ""), l = !r && Jn.test(n.overflowX || ""), u = r ? 0 : Ee(n.paddingTop), i = r ? 0 : Ee(n.paddingRight), d = r ? 0 : Ee(n.paddingBottom), c = r ? 0 : Ee(n.paddingLeft), f = r ? 0 : Ee(n.borderTopWidth), m = r ? 0 : Ee(n.borderRightWidth), g = r ? 0 : Ee(n.borderBottomWidth), O = r ? 0 : Ee(n.borderLeftWidth), k = c + i, M = u + d, B = O + m, R = f + g, C = l ? e.offsetHeight - R - e.clientHeight : 0, w = o ? e.offsetWidth - B - e.clientWidth : 0, E = a ? k + B : 0, A = a ? M + R : 0, I = r ? r.width : Ee(n.width) - E - w, j = r ? r.height : Ee(n.height) - A - C, z = I + k + w + B, $ = j + M + C + R, S = He({
6722
6723
  devicePixelContentBoxSize: Ke(Math.round(I * devicePixelRatio), Math.round(j * devicePixelRatio), s),
6723
6724
  borderBoxSize: Ke(z, $, s),
6724
6725
  contentBoxSize: Ke(I, j, s),
6725
- contentRect: new Ga(c, i, I, j)
6726
+ contentRect: new Ga(c, u, I, j)
6726
6727
  });
6727
6728
  return kt.set(e, S), S;
6728
6729
  }, Ya = function(e, t, n) {
@@ -6752,9 +6753,9 @@ var He = function(e) {
6752
6753
  Fe.forEach(function(o) {
6753
6754
  if (o.activeTargets.length !== 0) {
6754
6755
  var l = [];
6755
- o.activeTargets.forEach(function(u) {
6756
- var d = new Bv(u.target), c = Za(u.target);
6757
- l.push(d), u.lastReportedSize = Ya(u.target, u.observedBox), c < e && (e = c);
6756
+ o.activeTargets.forEach(function(i) {
6757
+ var d = new Bv(i.target), c = Za(i.target);
6758
+ l.push(d), i.lastReportedSize = Ya(i.target, i.observedBox), c < e && (e = c);
6758
6759
  }), t.push(function() {
6759
6760
  o.callback.call(o.observer, l, o.observer);
6760
6761
  }), o.activeTargets.splice(0, o.activeTargets.length);
@@ -7067,15 +7068,15 @@ const xv = Ht(".v-vl", {
7067
7068
  return e.items.forEach((D, H) => {
7068
7069
  $.set(D[S], H);
7069
7070
  }), $;
7070
- }), s = b(null), o = b(void 0), l = /* @__PURE__ */ new Map(), i = p(() => {
7071
+ }), s = b(null), o = b(void 0), l = /* @__PURE__ */ new Map(), u = p(() => {
7071
7072
  const { items: $, itemSize: S, keyField: D } = e, H = new wv($.length, S);
7072
7073
  return $.forEach((K, _) => {
7073
7074
  const x = K[D], Y = l.get(x);
7074
7075
  Y !== void 0 && H.add(_, Y);
7075
7076
  }), H;
7076
- }), u = b(0);
7077
+ }), i = b(0);
7077
7078
  let d = 0;
7078
- const c = b(0), f = Zp(() => Math.max(i.value.getBound(c.value - xn(e.paddingTop)) - 1, 0)), m = p(() => {
7079
+ const c = b(0), f = Zp(() => Math.max(u.value.getBound(c.value - xn(e.paddingTop)) - 1, 0)), m = p(() => {
7079
7080
  const { value: $ } = o;
7080
7081
  if ($ === void 0)
7081
7082
  return [];
@@ -7101,7 +7102,7 @@ const xv = Ht(".v-vl", {
7101
7102
  };
7102
7103
  let O, k = null;
7103
7104
  function M($, S, D) {
7104
- const { value: H } = i, K = H.sum($) + xn(e.paddingTop);
7105
+ const { value: H } = u, K = H.sum($) + xn(e.paddingTop);
7105
7106
  if (!D)
7106
7107
  s.value.scrollTo({
7107
7108
  left: 0,
@@ -7139,7 +7140,7 @@ const xv = Ht(".v-vl", {
7139
7140
  var D, H, K;
7140
7141
  if (n || e.ignoreItemResize || z(S.target))
7141
7142
  return;
7142
- const { value: _ } = i, x = a.value.get($), Y = _.get(x), ae = (K = (H = (D = S.borderBoxSize) === null || D === void 0 ? void 0 : D[0]) === null || H === void 0 ? void 0 : H.blockSize) !== null && K !== void 0 ? K : S.contentRect.height;
7143
+ const { value: _ } = u, x = a.value.get($), Y = _.get(x), ae = (K = (H = (D = S.borderBoxSize) === null || D === void 0 ? void 0 : D[0]) === null || H === void 0 ? void 0 : H.blockSize) !== null && K !== void 0 ? K : S.contentRect.height;
7143
7144
  if (ae === Y)
7144
7145
  return;
7145
7146
  ae - e.itemSize === 0 ? l.delete($) : l.set($, ae - e.itemSize);
@@ -7162,7 +7163,7 @@ const xv = Ht(".v-vl", {
7162
7163
  }
7163
7164
  j();
7164
7165
  }
7165
- u.value++;
7166
+ i.value++;
7166
7167
  }
7167
7168
  const C = !Wv();
7168
7169
  let w = !1;
@@ -7210,8 +7211,8 @@ const xv = Ht(".v-vl", {
7210
7211
  },
7211
7212
  keyToIndex: a,
7212
7213
  itemsStyle: p(() => {
7213
- const { itemResizable: $ } = e, S = bt(i.value.sum());
7214
- return u.value, [
7214
+ const { itemResizable: $ } = e, S = bt(u.value.sum());
7215
+ return i.value, [
7215
7216
  e.itemsStyle,
7216
7217
  {
7217
7218
  boxSizing: "content-box",
@@ -7222,8 +7223,8 @@ const xv = Ht(".v-vl", {
7222
7223
  }
7223
7224
  ];
7224
7225
  }),
7225
- visibleItemsStyle: p(() => (u.value, {
7226
- transform: `translateY(${bt(i.value.sum(f.value))})`
7226
+ visibleItemsStyle: p(() => (i.value, {
7227
+ transform: `translateY(${bt(u.value.sum(f.value))})`
7227
7228
  })),
7228
7229
  viewportItems: m,
7229
7230
  listElRef: s,
@@ -7258,16 +7259,16 @@ const xv = Ht(".v-vl", {
7258
7259
  style: this.visibleItemsStyle
7259
7260
  }, this.visibleItemsProps), {
7260
7261
  default: () => this.viewportItems.map((o) => {
7261
- const l = o[t], i = n.get(l), u = this.$slots.default({
7262
+ const l = o[t], u = n.get(l), i = this.$slots.default({
7262
7263
  item: o,
7263
- index: i
7264
+ index: u
7264
7265
  })[0];
7265
7266
  return e ? rt(sr, {
7266
7267
  key: l,
7267
7268
  onResize: (d) => this.handleItemResize(l, d)
7268
7269
  }, {
7269
- default: () => u
7270
- }) : (u.key = l, u);
7270
+ default: () => i
7271
+ }) : (i.key = l, i);
7271
7272
  })
7272
7273
  })
7273
7274
  ]) : (s = (a = this.$slots).empty) === null || s === void 0 ? void 0 : s.call(a)
@@ -7431,12 +7432,12 @@ function um(e, t) {
7431
7432
  }
7432
7433
  function dm(e, t, n, r) {
7433
7434
  const a = zt(t, n, r, !1), s = zt(e, n, r, !0), o = um(e, n), l = [];
7434
- return a.forEach((i) => {
7435
- (s.has(i) || o.has(i)) && l.push(i);
7436
- }), l.forEach((i) => a.delete(i)), a;
7435
+ return a.forEach((u) => {
7436
+ (s.has(u) || o.has(u)) && l.push(u);
7437
+ }), l.forEach((u) => a.delete(u)), a;
7437
7438
  }
7438
7439
  function Ut(e, t) {
7439
- const { checkedKeys: n, keysToCheck: r, keysToUncheck: a, indeterminateKeys: s, cascade: o, leafOnly: l, checkStrategy: i, allowNotLoaded: u } = e;
7440
+ const { checkedKeys: n, keysToCheck: r, keysToUncheck: a, indeterminateKeys: s, cascade: o, leafOnly: l, checkStrategy: u, allowNotLoaded: i } = e;
7440
7441
  if (!o)
7441
7442
  return r !== void 0 ? {
7442
7443
  checkedKeys: am(n, r),
@@ -7450,8 +7451,8 @@ function Ut(e, t) {
7450
7451
  };
7451
7452
  const { levelTreeNodeMap: d } = t;
7452
7453
  let c;
7453
- a !== void 0 ? c = dm(a, n, t, u) : r !== void 0 ? c = im(r, n, t, u) : c = zt(n, t, u, !1);
7454
- const f = i === "parent", m = i === "child" || l, g = c, O = /* @__PURE__ */ new Set(), k = Math.max.apply(null, Array.from(d.keys()));
7454
+ a !== void 0 ? c = dm(a, n, t, i) : r !== void 0 ? c = im(r, n, t, i) : c = zt(n, t, i, !1);
7455
+ const f = u === "parent", m = u === "child" || l, g = c, O = /* @__PURE__ */ new Set(), k = Math.max.apply(null, Array.from(d.keys()));
7455
7456
  for (let M = k; M >= 0; M -= 1) {
7456
7457
  const B = M === 0, R = d.get(M);
7457
7458
  for (const C of R) {
@@ -7487,9 +7488,9 @@ function Ut(e, t) {
7487
7488
  }
7488
7489
  function zt(e, t, n, r) {
7489
7490
  const { treeNodeMap: a, getChildren: s } = t, o = /* @__PURE__ */ new Set(), l = new Set(e);
7490
- return e.forEach((i) => {
7491
- const u = a.get(i);
7492
- u !== void 0 && Qa(u, (d) => {
7491
+ return e.forEach((u) => {
7492
+ const i = a.get(u);
7493
+ i !== void 0 && Qa(i, (d) => {
7493
7494
  if (d.disabled)
7494
7495
  return nn.STOP;
7495
7496
  const { key: c } = d;
@@ -7515,7 +7516,7 @@ function cm(e, { includeGroup: t = !1, includeSelf: n = !0 }, r) {
7515
7516
  return l.treeNode = null, l;
7516
7517
  for (; o; )
7517
7518
  !o.ignored && (t || !o.isGroup) && l.treeNodePath.push(o), o = o.parent;
7518
- return l.treeNodePath.reverse(), n || l.treeNodePath.pop(), l.keyPath = l.treeNodePath.map((i) => i.key), l;
7519
+ return l.treeNodePath.reverse(), n || l.treeNodePath.pop(), l.keyPath = l.treeNodePath.map((u) => u.key), l;
7519
7520
  }
7520
7521
  function fm(e) {
7521
7522
  if (e.length === 0)
@@ -7532,34 +7533,34 @@ function ur(e, t, { loop: n = !1, includeDisabled: r = !1 } = {}) {
7532
7533
  reverse: t === "prev"
7533
7534
  };
7534
7535
  let o = !1, l = null;
7535
- function i(u) {
7536
- if (u !== null) {
7537
- if (u === e) {
7536
+ function u(i) {
7537
+ if (i !== null) {
7538
+ if (i === e) {
7538
7539
  if (!o)
7539
7540
  o = !0;
7540
7541
  else if (!e.disabled && !e.isGroup) {
7541
7542
  l = e;
7542
7543
  return;
7543
7544
  }
7544
- } else if ((!u.disabled || r) && !u.ignored && !u.isGroup) {
7545
- l = u;
7545
+ } else if ((!i.disabled || r) && !i.ignored && !i.isGroup) {
7546
+ l = i;
7546
7547
  return;
7547
7548
  }
7548
- if (u.isGroup) {
7549
- const d = bn(u, s);
7550
- d !== null ? l = d : i(a(u, n));
7549
+ if (i.isGroup) {
7550
+ const d = bn(i, s);
7551
+ d !== null ? l = d : u(a(i, n));
7551
7552
  } else {
7552
- const d = a(u, !1);
7553
+ const d = a(i, !1);
7553
7554
  if (d !== null)
7554
- i(d);
7555
+ u(d);
7555
7556
  else {
7556
- const c = mm(u);
7557
- c != null && c.isGroup ? i(a(c, n)) : n && i(a(u, !0));
7557
+ const c = mm(i);
7558
+ c != null && c.isGroup ? u(a(c, n)) : n && u(a(i, !0));
7558
7559
  }
7559
7560
  }
7560
7561
  }
7561
7562
  }
7562
- return i(e), l;
7563
+ return u(e), l;
7563
7564
  }
7564
7565
  function vm(e, t) {
7565
7566
  const n = e.siblings, r = n.length, { index: a } = e;
@@ -7572,15 +7573,15 @@ function bn(e, t = {}) {
7572
7573
  const { reverse: n = !1 } = t, { children: r } = e;
7573
7574
  if (r) {
7574
7575
  const { length: a } = r, s = n ? a - 1 : 0, o = n ? -1 : a, l = n ? -1 : 1;
7575
- for (let i = s; i !== o; i += l) {
7576
- const u = r[i];
7577
- if (!u.disabled && !u.ignored)
7578
- if (u.isGroup) {
7579
- const d = bn(u, t);
7576
+ for (let u = s; u !== o; u += l) {
7577
+ const i = r[u];
7578
+ if (!i.disabled && !i.ignored)
7579
+ if (i.isGroup) {
7580
+ const d = bn(i, t);
7580
7581
  if (d !== null)
7581
7582
  return d;
7582
7583
  } else
7583
- return u;
7584
+ return i;
7584
7585
  }
7585
7586
  }
7586
7587
  return null;
@@ -7621,12 +7622,12 @@ function ym(e, t) {
7621
7622
  }
7622
7623
  function eo(e, t, n, r, a, s = null, o = 0) {
7623
7624
  const l = [];
7624
- return e.forEach((i, u) => {
7625
+ return e.forEach((u, i) => {
7625
7626
  var d;
7626
- process.env.NODE_ENV !== "production" && rm(i, a) && console.error("[treemate]: node", i, "is invalid");
7627
+ process.env.NODE_ENV !== "production" && rm(u, a) && console.error("[treemate]: node", u, "is invalid");
7627
7628
  const c = Object.create(r);
7628
- if (c.rawNode = i, c.siblings = l, c.level = o, c.index = u, c.isFirstChild = u === 0, c.isLastChild = u + 1 === e.length, c.parent = s, !c.ignored) {
7629
- const f = a(i);
7629
+ if (c.rawNode = u, c.siblings = l, c.level = o, c.index = i, c.isFirstChild = i === 0, c.isLastChild = i + 1 === e.length, c.parent = s, !c.ignored) {
7630
+ const f = a(u);
7630
7631
  Array.isArray(f) && (c.children = eo(f, t, n, r, a, c, o + 1));
7631
7632
  }
7632
7633
  l.push(c), t.set(c.key, c), n.has(o) || n.set(o, []), (d = n.get(o)) === null || d === void 0 || d.push(c);
@@ -7634,12 +7635,12 @@ function eo(e, t, n, r, a, s = null, o = 0) {
7634
7635
  }
7635
7636
  function bm(e, t = {}) {
7636
7637
  var n;
7637
- const r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), { getDisabled: s = tm, getIgnored: o = Qv, getIsGroup: l = sm, getKey: i = Jv } = t, u = (n = t.getChildren) !== null && n !== void 0 ? n : Zv, d = t.ignoreEmptyChildren ? (C) => {
7638
- const w = u(C);
7638
+ const r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), { getDisabled: s = tm, getIgnored: o = Qv, getIsGroup: l = sm, getKey: u = Jv } = t, i = (n = t.getChildren) !== null && n !== void 0 ? n : Zv, d = t.ignoreEmptyChildren ? (C) => {
7639
+ const w = i(C);
7639
7640
  return Array.isArray(w) ? w.length ? w : null : w;
7640
- } : u, c = Object.assign({
7641
+ } : i, c = Object.assign({
7641
7642
  get key() {
7642
- return i(this.rawNode);
7643
+ return u(this.rawNode);
7643
7644
  },
7644
7645
  get disabled() {
7645
7646
  return s(this.rawNode);
@@ -7824,8 +7825,8 @@ const Rm = /* @__PURE__ */ N(Tm, [["render", Am]]), zm = P({
7824
7825
  childrenFieldRef: s,
7825
7826
  indentRef: o,
7826
7827
  handleToggleClick: l,
7827
- handleDoubleClick: i
7828
- } = t, u = b(null);
7828
+ handleDoubleClick: u
7829
+ } = t, i = b(null);
7829
7830
  function d(M) {
7830
7831
  const { value: B } = t.expandOnClickRef, { node: R } = e;
7831
7832
  !B && !R.isLeaf && c();
@@ -7836,7 +7837,7 @@ const Rm = /* @__PURE__ */ N(Tm, [["render", Am]]), zm = P({
7836
7837
  }
7837
7838
  function f(M) {
7838
7839
  let B = an(e.node.rawNode), R = Object.assign({}, B);
7839
- delete R[s.value], i(R);
7840
+ delete R[s.value], u(R);
7840
7841
  }
7841
7842
  const m = p(() => e.node.level);
7842
7843
  function g(M) {
@@ -7844,7 +7845,7 @@ const Rm = /* @__PURE__ */ N(Tm, [["render", Am]]), zm = P({
7844
7845
  }
7845
7846
  const O = p(() => e.node.rawNode[r.value]), k = p(() => t.mergedExpandedKeysRef.value.includes(e.node.key));
7846
7847
  return {
7847
- selfElRef: u,
7848
+ selfElRef: i,
7848
7849
  handleLineClick: g,
7849
7850
  indentCount: m,
7850
7851
  labelField: O,
@@ -7920,13 +7921,13 @@ const Dm = P({
7920
7921
  labelFieldRef: X(e, "labelField"),
7921
7922
  keyFieldRef: X(e, "keyField"),
7922
7923
  childrenFieldRef: X(e, "childrenField"),
7923
- handleDoubleClick: u,
7924
- handleToggleClick: i
7924
+ handleDoubleClick: i,
7925
+ handleToggleClick: u
7925
7926
  });
7926
- function i(f) {
7927
+ function u(f) {
7927
7928
  d(f);
7928
7929
  }
7929
- function u(f) {
7930
+ function i(f) {
7930
7931
  t("dblclick", f);
7931
7932
  }
7932
7933
  function d(f) {
@@ -7963,8 +7964,8 @@ function Vm(e, t, n, r, a, s) {
7963
7964
  itemResizable: "",
7964
7965
  itemSize: 20
7965
7966
  }, {
7966
- default: Z(({ item: i }) => [
7967
- J(o, { node: i }, null, 8, ["node"])
7967
+ default: Z(({ item: u }) => [
7968
+ J(o, { node: u }, null, 8, ["node"])
7968
7969
  ]),
7969
7970
  _: 1
7970
7971
  }, 8, ["items"])