@firstnoodle-ui/bui 0.0.58 → 0.0.60

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/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var jf = Object.defineProperty;
2
2
  var Uf = (t, e, n) => e in t ? jf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var de = (t, e, n) => Uf(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { createElementBlock as v, openBlock as y, renderSlot as F, createElementVNode as C, defineComponent as $, toDisplayString as ce, ref as M, watch as Oe, computed as Y, createBlock as H, createCommentVNode as T, normalizeClass as z, normalizeStyle as Ce, createVNode as V, unref as k, withCtx as R, resolveDynamicComponent as An, provide as Kf, onMounted as Ve, withModifiers as X, Fragment as I, renderList as yt, onBeforeMount as lr, toRef as qf, onUnmounted as Jr, onBeforeUnmount as Kt, nextTick as fn, createStaticVNode as Ae, Teleport as Gr, withDirectives as Xr, vShow as Li, Transition as hl, useSlots as ar, withKeys as pe, createSlots as kc, vModelText as Yf, reactive as xc, createTextVNode as wc, shallowRef as Jf, h as Mi, getCurrentInstance as Gf, watchEffect as Xf, markRaw as Qf, customRef as _f, resolveComponent as eh } from "vue";
4
+ import { createElementBlock as v, openBlock as y, renderSlot as F, createElementVNode as C, defineComponent as $, toDisplayString as ce, ref as M, watch as Re, computed as Y, createBlock as H, createCommentVNode as T, normalizeClass as z, normalizeStyle as Ce, createVNode as V, unref as k, withCtx as O, resolveDynamicComponent as An, provide as Kf, onMounted as Ve, withModifiers as X, Fragment as I, renderList as yt, onBeforeMount as lr, toRef as qf, onUnmounted as Jr, onBeforeUnmount as Kt, nextTick as fn, createStaticVNode as Ae, Teleport as Gr, withDirectives as Xr, vShow as Li, Transition as hl, useSlots as ar, withKeys as pe, createSlots as kc, vModelText as Yf, reactive as xc, createTextVNode as wc, shallowRef as Jf, h as Mi, getCurrentInstance as Gf, watchEffect as Xf, markRaw as Qf, customRef as _f, resolveComponent as eh } from "vue";
5
5
  const gn = (t, e) => {
6
6
  const n = t.__vccOpts || t;
7
7
  for (const [r, s] of e)
@@ -59,8 +59,8 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
59
59
  },
60
60
  emits: ["update:modelValue", "change"],
61
61
  setup(t, { emit: e }) {
62
- const n = t, r = e, s = M(), i = M(), o = M(), l = M(), a = M(null), c = M(null), u = M(n.modelValue), d = M(100), f = M(!1), h = M(0), p = M(0), m = M(1), g = M(1), b = M(0), x = M(0), w = M(0), L = M(0);
63
- Oe(
62
+ const n = t, r = e, s = M(), i = M(), o = M(), l = M(), a = M(null), c = M(null), u = M(n.modelValue), d = M(100), f = M(!1), h = M(0), p = M(0), m = M(1), g = M(1), b = M(0), w = M(0), x = M(0), L = M(0);
63
+ Re(
64
64
  () => n.modelValue,
65
65
  (K) => {
66
66
  u.value = K;
@@ -73,18 +73,18 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
73
73
  })), N = () => {
74
74
  var K;
75
75
  n.disabled || (K = s.value) == null || K.click();
76
- }, O = () => {
76
+ }, R = () => {
77
77
  if (!n.disabled)
78
78
  if (u.value && c.value) {
79
79
  const K = new Image();
80
80
  K.onload = () => {
81
- a.value = K, b.value = K.width, x.value = K.height, d.value = Se * 0.5;
81
+ a.value = K, b.value = K.width, w.value = K.height, d.value = Se * 0.5;
82
82
  const q = Math.max(d.value / K.width, d.value / K.height);
83
83
  g.value = q;
84
84
  const le = Math.min(Se / K.width, Se / K.height);
85
85
  m.value = Math.max(le, q);
86
86
  const Ye = K.width * m.value, te = K.height * m.value;
87
- w.value = (Se - Ye) / 2, L.value = (Se - te) / 2;
87
+ x.value = (Se - Ye) / 2, L.value = (Se - te) / 2;
88
88
  }, K.src = c.value;
89
89
  } else
90
90
  N();
@@ -99,25 +99,25 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
99
99
  c.value = oe;
100
100
  const Ee = new Image();
101
101
  Ee.onload = () => {
102
- a.value = Ee, b.value = Ee.width, x.value = Ee.height, d.value = Se * 0.7;
103
- const Ot = Math.max(d.value / Ee.width, d.value / Ee.height);
104
- g.value = Ot;
102
+ a.value = Ee, b.value = Ee.width, w.value = Ee.height, d.value = Se * 0.7;
103
+ const Rt = Math.max(d.value / Ee.width, d.value / Ee.height);
104
+ g.value = Rt;
105
105
  const Jt = Math.min(Se / Ee.width, Se / Ee.height);
106
- m.value = Math.max(Jt, Ot);
106
+ m.value = Math.max(Jt, Rt);
107
107
  const U = Ee.width * m.value, ue = Ee.height * m.value;
108
- w.value = (Se - U) / 2, L.value = (Se - ue) / 2, setTimeout(() => {
108
+ x.value = (Se - U) / 2, L.value = (Se - ue) / 2, setTimeout(() => {
109
109
  }, 10);
110
110
  }, Ee.src = oe;
111
111
  }, te.readAsDataURL(le);
112
112
  }
113
113
  q.value = "";
114
114
  }, E = (K) => {
115
- f.value = !0, h.value = K.clientX - w.value, p.value = K.clientY - L.value, window.addEventListener("mousemove", P), window.addEventListener("mouseup", Q);
115
+ f.value = !0, h.value = K.clientX - x.value, p.value = K.clientY - L.value, window.addEventListener("mousemove", P), window.addEventListener("mouseup", Q);
116
116
  }, P = (K) => {
117
117
  if (f.value) {
118
118
  let q = K.clientX - h.value, le = K.clientY - p.value;
119
- const Ye = Se / 2, te = Se / 2, ee = Ye - d.value / 2, oe = Ye + d.value / 2, Ee = te - d.value / 2, Yt = te + d.value / 2, Ot = b.value * m.value, Jt = x.value * m.value;
120
- q = Math.min(q, ee), q = Math.max(q, oe - Ot), le = Math.min(le, Ee), le = Math.max(le, Yt - Jt), w.value = q, L.value = le;
119
+ const Ye = Se / 2, te = Se / 2, ee = Ye - d.value / 2, oe = Ye + d.value / 2, Ee = te - d.value / 2, Yt = te + d.value / 2, Rt = b.value * m.value, Jt = w.value * m.value;
120
+ q = Math.min(q, ee), q = Math.max(q, oe - Rt), le = Math.min(le, Ee), le = Math.max(le, Yt - Jt), x.value = q, L.value = le;
121
121
  }
122
122
  }, Q = () => {
123
123
  f.value = !1, window.removeEventListener("mousemove", P), window.removeEventListener("mouseup", Q);
@@ -131,13 +131,13 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
131
131
  if (!q) return;
132
132
  const le = 512;
133
133
  K.width = le, K.height = le;
134
- const Ye = Se / 2, te = Se / 2, ee = Ye - d.value / 2, oe = te - d.value / 2, Ee = (ee - w.value) / m.value, Yt = (oe - L.value) / m.value, Ot = d.value / m.value;
134
+ const Ye = Se / 2, te = Se / 2, ee = Ye - d.value / 2, oe = te - d.value / 2, Ee = (ee - x.value) / m.value, Yt = (oe - L.value) / m.value, Rt = d.value / m.value;
135
135
  q.fillStyle = "#ffffff", q.fillRect(0, 0, le, le), n.cropShape === "circle" && (q.save(), q.beginPath(), q.arc(le / 2, le / 2, le / 2, 0, Math.PI * 2), q.closePath(), q.clip()), q.drawImage(
136
136
  a.value,
137
137
  Ee,
138
138
  Yt,
139
- Ot,
140
- Ot,
139
+ Rt,
140
+ Rt,
141
141
  0,
142
142
  0,
143
143
  le,
@@ -153,7 +153,7 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
153
153
  C("div", {
154
154
  style: Ce(S.value),
155
155
  class: z(["relative overflow-hidden bg-tertiary border border-default flex items-center justify-center cursor-pointer group", { "opacity-50 cursor-not-allowed": t.disabled }]),
156
- onClick: O
156
+ onClick: R
157
157
  }, [
158
158
  u.value ? (y(), v("img", {
159
159
  key: 0,
@@ -187,7 +187,7 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
187
187
  "width-class": "max-w-xl",
188
188
  onClose: xe
189
189
  }, {
190
- main: R(() => [
190
+ main: O(() => [
191
191
  C("div", dh, [
192
192
  C("div", {
193
193
  class: z(["relative bg-slate-100 dark:bg-slate-800 overflow-hidden select-none transition-all", { "cursor-grabbing": f.value, "cursor-grab": !f.value }]),
@@ -199,8 +199,8 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
199
199
  class: "absolute border border-yellow-300 pointer-events-none",
200
200
  style: Ce({
201
201
  width: `${b.value * m.value}px`,
202
- height: `${x.value * m.value}px`,
203
- left: `${w.value}px`,
202
+ height: `${w.value * m.value}px`,
203
+ left: `${x.value}px`,
204
204
  top: `${L.value}px`
205
205
  })
206
206
  }, [
@@ -288,12 +288,12 @@ const CC = /* @__PURE__ */ gn(th, [["render", rh]]), sh = { class: "w-full space
288
288
  }, null, 512)
289
289
  ])
290
290
  ]),
291
- footer: R(() => [
291
+ footer: O(() => [
292
292
  V(k(ye), {
293
293
  class: "w-full",
294
294
  justify: "between"
295
295
  }, {
296
- default: R(() => [
296
+ default: O(() => [
297
297
  V(k(se), {
298
298
  disabled: t.disabled,
299
299
  variant: "outlineSubtle",
@@ -465,7 +465,7 @@ const La = /* @__PURE__ */ gn(xh, [["render", Lh]]), Mh = { class: "w-3 h-3 bg-o
465
465
  var p;
466
466
  r.stopPropagation && h.stopPropagation(), !r.disabled && !r.loading && (r.href && window.open(r.href, "_blank"), r.mailto && window.open(`mailto:${r.mailto}`), r.tooltip && ((p = l.value) == null || p.hide()), s("click"));
467
467
  };
468
- return e({ focus: () => o.value.focus() }), (h, p) => t.tooltip ? (y(), H(k(Oi), {
468
+ return e({ focus: () => o.value.focus() }), (h, p) => t.tooltip ? (y(), H(k(Ri), {
469
469
  key: 0,
470
470
  ref_key: "tooltipRef",
471
471
  ref: l,
@@ -474,7 +474,7 @@ const La = /* @__PURE__ */ gn(xh, [["render", Lh]]), Mh = { class: "w-3 h-3 bg-o
474
474
  placement: t.tooltipPlacement,
475
475
  "trigger-full-width": t.fullwidth
476
476
  }, {
477
- default: R(() => [
477
+ default: O(() => [
478
478
  (y(), H(An(i.value), {
479
479
  ref_key: "buttonRef",
480
480
  ref: o,
@@ -485,9 +485,9 @@ const La = /* @__PURE__ */ gn(xh, [["render", Lh]]), Mh = { class: "w-3 h-3 bg-o
485
485
  onClick: d,
486
486
  onBlur: p[0] || (p[0] = (m) => s("blur"))
487
487
  }, {
488
- default: R(() => [
488
+ default: O(() => [
489
489
  V(k(La), null, {
490
- default: R(() => [
490
+ default: O(() => [
491
491
  t.loading ? (y(), H(k(Nr), {
492
492
  key: 0,
493
493
  class: z(a.value)
@@ -528,9 +528,9 @@ const La = /* @__PURE__ */ gn(xh, [["render", Lh]]), Mh = { class: "w-3 h-3 bg-o
528
528
  onClick: d,
529
529
  onBlur: p[1] || (p[1] = (m) => s("blur"))
530
530
  }, {
531
- default: R(() => [
531
+ default: O(() => [
532
532
  V(k(La), null, {
533
- default: R(() => [
533
+ default: O(() => [
534
534
  t.loading ? (y(), H(k(Nr), {
535
535
  key: 0,
536
536
  class: z(a.value)
@@ -676,7 +676,7 @@ const Ah = /* @__PURE__ */ $({
676
676
  onClick: s[0] || (s[0] = X((i) => n("click", t.date), ["stop"]))
677
677
  }, ce(t.date.label), 3));
678
678
  }
679
- }), Oh = { class: "w-56 grid grid-cols-7" }, Rh = { class: "col-span-3 h-8 flex items-center justify-center" }, Dh = { class: "w-56 grid grid-cols-7 bg-bg-medium rounded my-2" }, Nh = { class: "w-56 grid grid-cols-7" }, $h = /* @__PURE__ */ $({
679
+ }), Rh = { class: "w-56 grid grid-cols-7" }, Oh = { class: "col-span-3 h-8 flex items-center justify-center" }, Dh = { class: "w-56 grid grid-cols-7 bg-bg-medium rounded my-2" }, Nh = { class: "w-56 grid grid-cols-7" }, $h = /* @__PURE__ */ $({
680
680
  __name: "MonthView",
681
681
  props: {
682
682
  viewData: {},
@@ -688,7 +688,7 @@ const Ah = /* @__PURE__ */ $({
688
688
  setup(t, { emit: e }) {
689
689
  const n = e;
690
690
  return (r, s) => (y(), v("div", null, [
691
- C("nav", Oh, [
691
+ C("nav", Rh, [
692
692
  V(k(se), {
693
693
  variant: "textSubtle",
694
694
  icon: "chevron-left-double",
@@ -699,7 +699,7 @@ const Ah = /* @__PURE__ */ $({
699
699
  icon: "chevron-left",
700
700
  onClick: s[1] || (s[1] = (i) => n("move", { amount: -1, unit: k(ae).MONTH }))
701
701
  }),
702
- C("div", Rh, [
702
+ C("div", Oh, [
703
703
  V(k(se), {
704
704
  variant: "textSubtle",
705
705
  label: k(Sc)(t.currentMonth.slice(0, 3)),
@@ -1072,7 +1072,7 @@ const Yh = (t = null, e) => {
1072
1072
  setSelectedDate: u,
1073
1073
  setViewDateAndChangeView: d
1074
1074
  } = Yh(t.value, { weekStart: t.weekStart, disabledDates: t.disabledDates });
1075
- Oe(() => t.value, (g) => u(g));
1075
+ Re(() => t.value, (g) => u(g));
1076
1076
  const f = qf(i), h = M(Object.values(rn).map((g, b) => Object.values(rn)[xs(b + t.weekStart, Object.values(rn).length)])), p = (g) => {
1077
1077
  if (!g) {
1078
1078
  n("change", null);
@@ -1134,7 +1134,7 @@ const Yh = (t = null, e) => {
1134
1134
  "leading-icon": "trash",
1135
1135
  label: "Clear",
1136
1136
  disabled: !t.value,
1137
- onClick: b[0] || (b[0] = (x) => p(null))
1137
+ onClick: b[0] || (b[0] = (w) => p(null))
1138
1138
  }, null, 8, ["disabled"])
1139
1139
  ])) : T("", !0)
1140
1140
  ]));
@@ -1279,12 +1279,12 @@ const Yh = (t = null, e) => {
1279
1279
  top: "-1px",
1280
1280
  paddingTop: "1px"
1281
1281
  } : {});
1282
- Oe(
1282
+ Re(
1283
1283
  () => n.open,
1284
1284
  (u) => {
1285
1285
  u || (o.value = !1);
1286
1286
  }
1287
- ), Oe(o, (u) => {
1287
+ ), Re(o, (u) => {
1288
1288
  u && s.value.blur();
1289
1289
  });
1290
1290
  const c = M(null);
@@ -1360,7 +1360,7 @@ const Yh = (t = null, e) => {
1360
1360
  col: t.vertical,
1361
1361
  class: "gap-2"
1362
1362
  }, {
1363
- default: R(() => [
1363
+ default: O(() => [
1364
1364
  r.value ? (y(), H(k(se), {
1365
1365
  key: 0,
1366
1366
  small: t.small,
@@ -1505,7 +1505,7 @@ const m0 = () => {
1505
1505
  function b0(t, e) {
1506
1506
  return " To be implemented ";
1507
1507
  }
1508
- const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1508
+ const RC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1509
1509
  class: "relative w-4 h-4 min-w-4 min-h-4 fill-current",
1510
1510
  viewBox: "0 0 16 16",
1511
1511
  xmlns: "http://www.w3.org/2000/svg"
@@ -1543,10 +1543,10 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1543
1543
  "fill-rule": "evenodd",
1544
1544
  "clip-rule": "evenodd",
1545
1545
  d: "M5.5 4C5.5 4.93192 4.86261 5.71497 4 5.93699V7.5C4 8.88071 5.11929 10 6.5 10H13.2929L11.1464 7.85355L11.8536 7.14645L15.2071 10.5L11.8536 13.8536L11.1464 13.1464L13.2929 11H6.5C4.567 11 3 9.433 3 7.5V5.93699C2.13739 5.71497 1.5 4.93192 1.5 4C1.5 2.89543 2.39543 2 3.5 2C4.60457 2 5.5 2.89543 5.5 4ZM3.5 5C4.05228 5 4.5 4.55228 4.5 4C4.5 3.44772 4.05228 3 3.5 3C2.94772 3 2.5 3.44772 2.5 4C2.5 4.55228 2.94772 5 3.5 5Z"
1546
- }, O0 = {
1546
+ }, R0 = {
1547
1547
  key: 12,
1548
1548
  "clip-path": "url(#clip0_1_1043)"
1549
- }, R0 = {
1549
+ }, O0 = {
1550
1550
  key: 14,
1551
1551
  d: "M8 2.29297L12.7071 7.00007L12 7.70718L8.49989 4.20697L8.5 14.0001H7.5L7.49989 4.20697L4 7.70718L3.29289 7.00007L8 2.29297Z"
1552
1552
  }, D0 = {
@@ -1719,10 +1719,10 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1719
1719
  "fill-rule": "evenodd",
1720
1720
  "clip-rule": "evenodd",
1721
1721
  d: "M4.00002 3.99998L14.7575 1.31062C15.3886 1.15284 16 1.6302 16 2.28077V11.7192C16 12.3698 15.3886 12.8471 14.7575 12.6894L6 10.5V15H3V9.99998C1.34315 9.99998 0 8.65684 0 6.99998C0 5.34313 1.34315 3.99998 3 3.99998H4.00002ZM15 11.7192L5 9.21921V4.78077L15 2.28077V11.7192ZM4 4.99998H3C1.89543 4.99998 1 5.89542 1 6.99998C1 8.10455 1.89543 8.99998 3 8.99998H4V4.99998ZM4 9.99999V14H5V10.25L4 9.99999Z"
1722
- }, Op = {
1722
+ }, Rp = {
1723
1723
  key: 104,
1724
1724
  "clip-path": "url(#clip0_1_843)"
1725
- }, Rp = {
1725
+ }, Op = {
1726
1726
  key: 105,
1727
1727
  "clip-path": "url(#clip0_169_65)"
1728
1728
  }, Dp = {
@@ -1942,7 +1942,7 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1942
1942
  C("g", { mask: "url(#mask0_1_853)" }, [
1943
1943
  C("path", { d: "M8 0.292969L10.7071 3.00008L10 3.70718L8.49989 2.20597V7.49997H13.7929L12.2929 6.00008L13 5.29297L15.7071 8.00008L13 10.7072L12.2929 10.0001L13.7929 8.49997H8.49989V13.792L10 12.293L10.7071 13.0001L8 15.7072L5.29289 13.0001L6 12.293L7.49989 13.794V8.49997H2.20689L3.70711 10.0001L3 10.7072L0.292892 8.00008L3 5.29297L3.70711 6.00008L2.20489 7.49997H7.49989V2.20597L6 3.70718L5.29289 3.00008L8 0.292969Z" })
1944
1944
  ], -1)
1945
- ])])) : t.name === "arrow-right" ? (y(), v("path", E0)) : t.name === "arrow-sub" ? (y(), v("path", A0)) : t.name === "arrow-trend" ? (y(), v("g", O0, [...n[9] || (n[9] = [
1945
+ ])])) : t.name === "arrow-right" ? (y(), v("path", E0)) : t.name === "arrow-sub" ? (y(), v("path", A0)) : t.name === "arrow-trend" ? (y(), v("g", R0, [...n[9] || (n[9] = [
1946
1946
  C("g", { mask: "url(#mask0_1_1043)" }, [
1947
1947
  C("path", {
1948
1948
  "fill-rule": "evenodd",
@@ -1953,7 +1953,7 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
1953
1953
  ])])) : t.name === "arrow-up-plus" ? (y(), v(I, { key: 13 }, [
1954
1954
  n[10] || (n[10] = C("path", { d: "M10.7071 6.00007L6.00001 1.29297L1.29291 6.00007L2.00001 6.70718L5.49991 3.20697L5.50001 15.0001H6.50001L6.49991 3.20697L10 6.70718L10.7071 6.00007Z" }, null, -1)),
1955
1955
  n[11] || (n[11] = C("path", { d: "M13 11.5V9.5H12V11.5H10V12.5H12V14.5H13V12.5H15V11.5H13Z" }, null, -1))
1956
- ], 64)) : t.name === "arrow-up" ? (y(), v("path", R0)) : t.name === "at-symbol" ? (y(), v("path", D0)) : t.name === "audio" ? (y(), v(I, { key: 16 }, [
1956
+ ], 64)) : t.name === "arrow-up" ? (y(), v("path", O0)) : t.name === "at-symbol" ? (y(), v("path", D0)) : t.name === "audio" ? (y(), v(I, { key: 16 }, [
1957
1957
  n[12] || (n[12] = C("path", {
1958
1958
  "fill-rule": "evenodd",
1959
1959
  "clip-rule": "evenodd",
@@ -2283,11 +2283,11 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2283
2283
  "clip-rule": "evenodd",
2284
2284
  d: "M3.57422 10.4258C3.88411 10.569 4.22917 10.6406 4.60938 10.6406C4.95833 10.6406 5.25391 10.5885 5.49609 10.4844C5.73828 10.3802 5.93229 10.2539 6.07812 10.1055C6.22396 9.95703 6.32812 9.81771 6.39062 9.6875H6.4375V10.5H7.35938V6.54688C7.35938 6.07031 7.28125 5.6901 7.125 5.40625C6.96875 5.1224 6.77214 4.91016 6.53516 4.76953C6.30078 4.62891 6.05729 4.53646 5.80469 4.49219C5.55469 4.44531 5.33333 4.42188 5.14062 4.42188C4.83854 4.42188 4.53125 4.46354 4.21875 4.54688C3.90885 4.6276 3.6224 4.77083 3.35938 4.97656C3.09896 5.17969 2.89062 5.46354 2.73438 5.82812L3.60938 6.14062C3.71094 5.92187 3.88672 5.71615 4.13672 5.52344C4.38672 5.33073 4.73177 5.23438 5.17188 5.23438C5.59635 5.23438 5.91276 5.34115 6.12109 5.55469C6.33203 5.76823 6.4375 6.06771 6.4375 6.45312V6.48437C6.4375 6.63281 6.38411 6.73698 6.27734 6.79688C6.17318 6.85677 6.00651 6.89974 5.77734 6.92578C5.55078 6.94922 5.25521 6.98438 4.89062 7.03125C4.61198 7.06771 4.33464 7.11719 4.05859 7.17969C3.78516 7.23958 3.53516 7.33073 3.30859 7.45312C3.08203 7.57552 2.90104 7.74479 2.76562 7.96094C2.63021 8.17448 2.5625 8.45312 2.5625 8.79688C2.5625 9.1875 2.65365 9.52083 2.83594 9.79688C3.01823 10.0703 3.26432 10.2799 3.57422 10.4258ZM5.67188 9.59766C5.42188 9.74089 5.11458 9.8125 4.75 9.8125C4.38281 9.8125 4.07943 9.73177 3.83984 9.57031C3.60286 9.40625 3.48438 9.16406 3.48438 8.84375C3.48438 8.60938 3.54688 8.42448 3.67188 8.28906C3.79948 8.15104 3.96615 8.04818 4.17188 7.98047C4.38021 7.91016 4.60417 7.85938 4.84375 7.82812C4.94271 7.8151 5.07161 7.79948 5.23047 7.78125C5.39193 7.76042 5.55729 7.73698 5.72656 7.71094C5.89844 7.68229 6.04948 7.64974 6.17969 7.61328C6.3125 7.57422 6.39844 7.53125 6.4375 7.48438V8.32812C6.4375 8.57812 6.3724 8.81641 6.24219 9.04297C6.11458 9.26953 5.92448 9.45443 5.67188 9.59766Z"
2285
2285
  }, null, -1))
2286
- ], 64)) : t.name === "megaphone" ? (y(), v("path", Ap)) : t.name === "message" ? (y(), v("g", Op, [...n[116] || (n[116] = [
2286
+ ], 64)) : t.name === "megaphone" ? (y(), v("path", Ap)) : t.name === "message" ? (y(), v("g", Rp, [...n[116] || (n[116] = [
2287
2287
  C("g", { mask: "url(#mask0_1_843)" }, [
2288
2288
  C("path", { d: "M16 0V11H9L4 16V11H0V0H16ZM0.999 0.999V10H5L4.999 13.585L8.58579 10H14.999V1L0.999 0.999Z" })
2289
2289
  ], -1)
2290
- ])])) : t.name === "message-question" ? (y(), v("g", Rp, [...n[117] || (n[117] = [
2290
+ ])])) : t.name === "message-question" ? (y(), v("g", Op, [...n[117] || (n[117] = [
2291
2291
  C("path", { d: "M8 10.5H7V9.5H8V10.5Z" }, null, -1),
2292
2292
  C("path", { d: "M7.83301 3C8.86537 3 9.66699 3.86733 9.66699 4.8916C9.66695 5.46568 9.54984 5.81515 9.38672 6.0752C9.24618 6.29917 9.07188 6.46031 8.87402 6.64551L8.86719 6.65234C8.82513 6.69171 8.78151 6.73227 8.73633 6.77539L8.72461 6.78711L8.71191 6.79688C8.33415 7.11345 8.16854 7.30869 8.08691 7.50977C8.00652 7.70792 7.99978 7.93175 8 8.32324H7C6.9998 7.97316 6.99338 7.54486 7.16016 7.13379C7.33679 6.69854 7.66179 6.37539 8.04688 6.05078C8.09558 6.00431 8.1423 5.9615 8.18359 5.92285L8.19043 5.91602C8.40446 5.71568 8.47904 5.63947 8.53906 5.54395C8.58366 5.47284 8.66695 5.31615 8.66699 4.8916C8.66699 4.37908 8.2734 4 7.83301 4C7.39274 4.00019 7 4.37921 7 4.8916H6C6 3.86744 6.8008 3.00018 7.83301 3Z" }, null, -1),
2293
2293
  C("path", {
@@ -2554,7 +2554,7 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2554
2554
  V(k(ve), { name: "close" })
2555
2555
  ]));
2556
2556
  }
2557
- }), H5 = { class: "flex items-center justify-between w-full h-12" }, T5 = { key: 0 }, V5 = { key: 1 }, E5 = { class: "flex items-center h-12" }, RC = /* @__PURE__ */ $({
2557
+ }), H5 = { class: "flex items-center justify-between w-full h-12" }, T5 = { key: 0 }, V5 = { key: 1 }, E5 = { class: "flex items-center h-12" }, OC = /* @__PURE__ */ $({
2558
2558
  __name: "Dialog",
2559
2559
  props: {
2560
2560
  closeable: { type: Boolean, default: !0 },
@@ -2574,19 +2574,19 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2574
2574
  onClick: l,
2575
2575
  onClose: c[1] || (c[1] = (u) => r("close"))
2576
2576
  }, {
2577
- default: R(() => [
2577
+ default: O(() => [
2578
2578
  V(k(Vc), {
2579
2579
  onTransitionAfterEnter: c[0] || (c[0] = (u) => r("open"))
2580
2580
  }, {
2581
- default: R(() => [
2581
+ default: O(() => [
2582
2582
  Xr(V(k(Ll), {
2583
2583
  ref_key: "windowRef",
2584
2584
  ref: i,
2585
2585
  class: "h-64 max-w-2xl md:w-1/2 md:max-w-lg p-4 md:px-8"
2586
2586
  }, {
2587
- default: R(() => [
2587
+ default: O(() => [
2588
2588
  V(k(ka), null, {
2589
- header: R(() => [
2589
+ header: O(() => [
2590
2590
  C("header", H5, [
2591
2591
  t.title ? (y(), v("h4", T5, ce(t.title), 1)) : (y(), v("h4", V5, [
2592
2592
  F(a.$slots, "title")
@@ -2600,10 +2600,10 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2600
2600
  })) : T("", !0)
2601
2601
  ])
2602
2602
  ]),
2603
- main: R(() => [
2603
+ main: O(() => [
2604
2604
  F(a.$slots, "main")
2605
2605
  ]),
2606
- footer: R(() => [
2606
+ footer: O(() => [
2607
2607
  C("footer", E5, [
2608
2608
  F(a.$slots, "footer")
2609
2609
  ])
@@ -2637,16 +2637,16 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2637
2637
  "leave-to-class": "translate-y-2 opacity-0",
2638
2638
  onAfterEnter: s[0] || (s[0] = (i) => n("transition-after-enter"))
2639
2639
  }, {
2640
- default: R(() => [
2640
+ default: O(() => [
2641
2641
  F(r.$slots, "default")
2642
2642
  ]),
2643
2643
  _: 3
2644
2644
  }));
2645
2645
  }
2646
- }), A5 = { class: "text-sm" }, O5 = {
2646
+ }), A5 = { class: "text-sm" }, R5 = {
2647
2647
  key: 0,
2648
2648
  class: "h-4 px-1 min-w-4 flex items-center justify-center rounded-full text-xs font-medium bg-black/15"
2649
- }, R5 = /* @__PURE__ */ $({
2649
+ }, O5 = /* @__PURE__ */ $({
2650
2650
  __name: "FilterChip",
2651
2651
  props: {
2652
2652
  label: {},
@@ -2666,7 +2666,7 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2666
2666
  onClick: n[1] || (n[1] = (r) => e.$emit("click"))
2667
2667
  }, [
2668
2668
  C("span", A5, ce(t.label), 1),
2669
- t.active && t.count ? (y(), v("span", O5, ce(t.count), 1)) : T("", !0),
2669
+ t.active && t.count ? (y(), v("span", R5, ce(t.count), 1)) : T("", !0),
2670
2670
  t.deletable && t.active ? (y(), H(k(S5), {
2671
2671
  key: 1,
2672
2672
  "data-theme": "dark",
@@ -2724,7 +2724,7 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2724
2724
  return (i, o) => (y(), H(An(t.tag), {
2725
2725
  class: z(s.value)
2726
2726
  }, {
2727
- default: R(() => [
2727
+ default: O(() => [
2728
2728
  F(i.$slots, "default")
2729
2729
  ]),
2730
2730
  _: 3
@@ -2735,6 +2735,11 @@ const OC = /* @__PURE__ */ gn(v0, [["render", b0]]), k0 = {
2735
2735
  return (...r) => {
2736
2736
  clearTimeout(n), n = setTimeout(() => t.apply(void 0, r), e);
2737
2737
  };
2738
+ }, NC = () => {
2739
+ if ("userAgentData" in navigator && navigator.userAgentData.platform === "macOS")
2740
+ return "key-cmd";
2741
+ const t = navigator.platform || navigator.userAgent || "";
2742
+ return /Mac|iPhone|iPad|iPod/i.test(t) ? "key-cmd" : "key-ctrl";
2738
2743
  };
2739
2744
  let Xi;
2740
2745
  const I5 = () => {
@@ -2820,7 +2825,7 @@ const I5 = () => {
2820
2825
  }, null, 42, P5)) : T("", !0)
2821
2826
  ], 6));
2822
2827
  }
2823
- }), z5 = { class: "relative w-full h-full overflow-hidden bg-primary" }, NC = /* @__PURE__ */ $({
2828
+ }), z5 = { class: "relative w-full h-full overflow-hidden bg-primary" }, $C = /* @__PURE__ */ $({
2824
2829
  __name: "HorizontalLayout",
2825
2830
  props: {
2826
2831
  asideLeftBgColorClass: { default: "" },
@@ -2834,42 +2839,54 @@ const I5 = () => {
2834
2839
  borders: { type: Boolean, default: !1 },
2835
2840
  mainBgColorClass: { default: "" }
2836
2841
  },
2837
- emits: ["aside-left-transition-end", "aside-right-transition-end"],
2842
+ emits: ["aside-left-resize", "aside-left-resize-end", "aside-left-resize-start", "aside-left-transition-end", "aside-right-resize", "aside-right-resize-end", "aside-right-resize-start", "aside-right-transition-end"],
2838
2843
  setup(t, { emit: e }) {
2839
2844
  const n = t, r = e, s = M(!1), i = M(n.asideLeftWidth), o = M(n.asideRightWidth), l = M(n.asideLeftWidth), a = M(n.asideRightWidth), c = Y(() => ({
2840
2845
  paddingLeft: `${l.value}px`,
2841
2846
  paddingRight: `${a.value}px`
2842
- })), u = (m) => i.value = l.value = m, d = (m) => !m && r("aside-left-transition-end"), f = (m) => o.value = a.value = m, h = (m) => !m && r("aside-right-transition-end");
2843
- Oe(
2847
+ })), u = () => {
2848
+ s.value = !1, r("aside-left-resize-end");
2849
+ }, d = () => {
2850
+ s.value = !0, r("aside-left-resize-start");
2851
+ }, f = (x) => {
2852
+ i.value = l.value = x, r("aside-left-resize", x);
2853
+ }, h = (x) => !x && r("aside-left-transition-end"), p = () => {
2854
+ s.value = !1, r("aside-right-resize-end");
2855
+ }, m = () => {
2856
+ s.value = !0, r("aside-right-resize-start");
2857
+ }, g = (x) => {
2858
+ o.value = a.value = x, r("aside-right-resize", x);
2859
+ }, b = (x) => !x && r("aside-right-transition-end");
2860
+ Re(
2844
2861
  () => n.asideLeftVisible,
2845
- (m) => l.value = m ? i.value : 0
2846
- ), Oe(
2862
+ (x) => l.value = x ? i.value : 0
2863
+ ), Re(
2847
2864
  () => n.asideRightVisible,
2848
- (m) => a.value = m ? o.value : 0
2849
- ), Oe(
2865
+ (x) => a.value = x ? o.value : 0
2866
+ ), Re(
2850
2867
  () => n.asideLeftWidth,
2851
- (m) => i.value = l.value = m
2852
- ), Oe(
2868
+ (x) => i.value = l.value = x
2869
+ ), Re(
2853
2870
  () => n.asideRightWidth,
2854
- (m) => o.value = a.value = m
2871
+ (x) => o.value = a.value = x
2855
2872
  );
2856
- const p = ar();
2873
+ const w = ar();
2857
2874
  return Ve(() => {
2858
- l.value = n.asideLeftVisible && p["aside-left"] ? i.value : 0, a.value = n.asideRightVisible && p["aside-right"] ? o.value : 0;
2859
- }), (m, g) => (y(), v("div", z5, [
2860
- k(p)["aside-left"] && t.asideLeftVisible ? (y(), H(Ta, {
2875
+ l.value = n.asideLeftVisible && w["aside-left"] ? i.value : 0, a.value = n.asideRightVisible && w["aside-right"] ? o.value : 0;
2876
+ }), (x, L) => (y(), v("div", z5, [
2877
+ k(w)["aside-left"] && t.asideLeftVisible ? (y(), H(Ta, {
2861
2878
  key: 0,
2862
2879
  side: "left",
2863
2880
  border: n.borders,
2864
2881
  draggable: t.asideLeftDraggable,
2865
2882
  width: i.value,
2866
- onResizeStart: g[0] || (g[0] = (b) => s.value = !0),
2867
- onResize: u,
2868
- onResizeEnd: g[1] || (g[1] = (b) => s.value = !1),
2869
- onTransitioning: d
2883
+ onResizeStart: d,
2884
+ onResize: f,
2885
+ onResizeEnd: u,
2886
+ onTransitioning: h
2870
2887
  }, {
2871
- default: R(() => [
2872
- F(m.$slots, "aside-left")
2888
+ default: O(() => [
2889
+ F(x.$slots, "aside-left")
2873
2890
  ]),
2874
2891
  _: 3
2875
2892
  }, 8, ["border", "draggable", "width"])) : T("", !0),
@@ -2877,27 +2894,27 @@ const I5 = () => {
2877
2894
  class: z(["relative z-0 h-full overflow-x-hidden overflow-y-auto", [n.mainBgColorClass]]),
2878
2895
  style: Ce(c.value)
2879
2896
  }, [
2880
- F(m.$slots, "main")
2897
+ F(x.$slots, "main")
2881
2898
  ], 6),
2882
- k(p)["aside-right"] && t.asideRightVisible ? (y(), H(Ta, {
2899
+ k(w)["aside-right"] && t.asideRightVisible ? (y(), H(Ta, {
2883
2900
  key: 1,
2884
2901
  side: "right",
2885
2902
  border: n.borders,
2886
2903
  draggable: t.asideRightDraggable,
2887
2904
  width: o.value,
2888
- onResizeStart: g[2] || (g[2] = (b) => s.value = !0),
2889
- onResize: f,
2890
- onResizeEnd: g[3] || (g[3] = (b) => s.value = !1),
2891
- onTransitioning: h
2905
+ onResizeStart: m,
2906
+ onResize: g,
2907
+ onResizeEnd: p,
2908
+ onTransitioning: b
2892
2909
  }, {
2893
- default: R(() => [
2894
- F(m.$slots, "aside-right")
2910
+ default: O(() => [
2911
+ F(x.$slots, "aside-right")
2895
2912
  ]),
2896
2913
  _: 3
2897
2914
  }, 8, ["border", "draggable", "width"])) : T("", !0)
2898
2915
  ]));
2899
2916
  }
2900
- }), $C = /* @__PURE__ */ $({
2917
+ }), IC = /* @__PURE__ */ $({
2901
2918
  __name: "InlineFormWrapper",
2902
2919
  props: {
2903
2920
  order: {},
@@ -2922,22 +2939,22 @@ const I5 = () => {
2922
2939
  tabindex: "0",
2923
2940
  class: "border border-default bg-primary rounded-lg focus:outline-none focus-within:shadow-sm focus-within:border-action"
2924
2941
  }, {
2925
- default: R(() => [
2942
+ default: O(() => [
2926
2943
  F(r.$slots, "default"),
2927
2944
  V(k(ye), {
2928
2945
  tag: "footer",
2929
2946
  justify: "between",
2930
2947
  class: "gap-2 px-2 py-2 border-t border-default"
2931
2948
  }, {
2932
- default: R(() => [
2949
+ default: O(() => [
2933
2950
  V(k(ye), null, {
2934
- default: R(() => [
2951
+ default: O(() => [
2935
2952
  F(r.$slots, "footer-left")
2936
2953
  ]),
2937
2954
  _: 3
2938
2955
  }),
2939
2956
  V(k(ye), { class: "gap-2" }, {
2940
- default: R(() => [
2957
+ default: O(() => [
2941
2958
  V(k(cr), {
2942
2959
  small: "",
2943
2960
  order: "confirm-last",
@@ -3094,7 +3111,7 @@ const I5 = () => {
3094
3111
  }, null, 8, ["name"])
3095
3112
  ], 2));
3096
3113
  }
3097
- }), W5 = ["min", "max", "auto-focus", "disabled", "value", "placeholder", "onKeydown"], IC = /* @__PURE__ */ $({
3114
+ }), W5 = ["min", "max", "auto-focus", "disabled", "value", "placeholder", "onKeydown"], PC = /* @__PURE__ */ $({
3098
3115
  __name: "InputNumber",
3099
3116
  props: {
3100
3117
  disabled: { type: Boolean, default: !1 },
@@ -3258,9 +3275,9 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3258
3275
  onClick: c,
3259
3276
  onClose: f[0] || (f[0] = (h) => s("close"))
3260
3277
  }, {
3261
- default: R(() => [
3278
+ default: O(() => [
3262
3279
  V(k(Vc), { onTransitionAfterEnter: u }, {
3263
- default: R(() => [
3280
+ default: O(() => [
3264
3281
  Xr(V(k(Ll), {
3265
3282
  ref_key: "windowRef",
3266
3283
  ref: o,
@@ -3272,16 +3289,16 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3272
3289
  }
3273
3290
  ]])
3274
3291
  }, {
3275
- default: R(() => [
3292
+ default: O(() => [
3276
3293
  d.$slots.default ? F(d.$slots, "default", { key: 0 }) : (y(), H(k(ka), { key: 1 }, kc({
3277
- main: R(() => [
3294
+ main: O(() => [
3278
3295
  F(d.$slots, "main", { close: a })
3279
3296
  ]),
3280
3297
  _: 2
3281
3298
  }, [
3282
3299
  r.title || d.$slots.header ? {
3283
3300
  name: "header",
3284
- fn: R(() => [
3301
+ fn: O(() => [
3285
3302
  r.title ? (y(), v("header", q5, [
3286
3303
  C("h4", null, ce(r.title), 1),
3287
3304
  t.closeable ? (y(), H(k(se), {
@@ -3297,7 +3314,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3297
3314
  } : void 0,
3298
3315
  d.$slots.footer ? {
3299
3316
  name: "footer",
3300
- fn: R(() => [
3317
+ fn: O(() => [
3301
3318
  C("footer", Y5, [
3302
3319
  F(d.$slots, "footer", { close: a })
3303
3320
  ])
@@ -3318,7 +3335,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3318
3335
  }, 8, ["show", "type"])
3319
3336
  ], 8, ["to"]));
3320
3337
  }
3321
- }), G5 = { class: "text-sm tracking-wide" }, X5 = { class: "text-sm tracking-wide" }, PC = /* @__PURE__ */ $({
3338
+ }), G5 = { class: "text-sm tracking-wide" }, X5 = { class: "text-sm tracking-wide" }, zC = /* @__PURE__ */ $({
3322
3339
  __name: "NavItem",
3323
3340
  props: {
3324
3341
  exact: { type: Boolean, default: !1 },
@@ -3375,7 +3392,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3375
3392
  }), Q5 = {
3376
3393
  "data-theme": "dark",
3377
3394
  class: "inline-flex items-stretch h-10 px-1 rounded-xl bg-black shadow-xl pointer-events-auto justify-between"
3378
- }, _5 = { class: "text-sm cursor-default truncate min-w-0" }, zC = /* @__PURE__ */ $({
3395
+ }, _5 = { class: "text-sm cursor-default truncate min-w-0" }, BC = /* @__PURE__ */ $({
3379
3396
  __name: "Notification",
3380
3397
  props: {
3381
3398
  showDetailsButton: { type: Boolean },
@@ -3394,16 +3411,16 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3394
3411
  "text-emerald-300": t.type === "success"
3395
3412
  }])
3396
3413
  }, {
3397
- default: R(() => [
3414
+ default: O(() => [
3398
3415
  V(k(ve), { name: r.value }, null, 8, ["name"]),
3399
3416
  C("span", _5, ce(t.text), 1)
3400
3417
  ]),
3401
3418
  _: 1
3402
3419
  }, 8, ["class"]),
3403
3420
  V(k(ye), null, {
3404
- default: R(() => [
3421
+ default: O(() => [
3405
3422
  V(k(ye), { class: "px-2" }, {
3406
- default: R(() => [
3423
+ default: O(() => [
3407
3424
  t.showDetailsButton ? (y(), H(k(se), {
3408
3425
  key: 0,
3409
3426
  small: "",
@@ -3415,7 +3432,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3415
3432
  _: 1
3416
3433
  }),
3417
3434
  V(k(ye), { class: "px-1" }, {
3418
- default: R(() => [
3435
+ default: O(() => [
3419
3436
  V(k(se), {
3420
3437
  small: "",
3421
3438
  variant: "textSubtle",
@@ -3430,7 +3447,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3430
3447
  })
3431
3448
  ]));
3432
3449
  }
3433
- }), BC = /* @__PURE__ */ $({
3450
+ }), ZC = /* @__PURE__ */ $({
3434
3451
  __name: "Pagination",
3435
3452
  props: {
3436
3453
  borders: { type: Boolean, default: !1 },
@@ -3465,7 +3482,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3465
3482
  options: s.value,
3466
3483
  onSelect: u
3467
3484
  }, {
3468
- trigger: R((h) => [
3485
+ trigger: O((h) => [
3469
3486
  V(k(se), {
3470
3487
  variant: a.value,
3471
3488
  label: `${t.currentPage} / ${t.lastPage}`,
@@ -3516,8 +3533,8 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3516
3533
  function f(m) {
3517
3534
  let g;
3518
3535
  s.value === "vertical" ? g = n.placement === "top" ? m.pageY - a : a - m.pageY : g = n.placement === "left" ? m.pageX - a : a - m.pageX;
3519
- const b = c + g, x = Dr(b, n.minSize, n.maxSize);
3520
- x !== n.size && r("resize", x);
3536
+ const b = c + g, w = Dr(b, n.minSize, n.maxSize);
3537
+ w !== n.size && r("resize", w);
3521
3538
  }
3522
3539
  function h() {
3523
3540
  u.value = !1, window.removeEventListener("mouseup", h), window.removeEventListener("mousemove", f), r("resize-end");
@@ -3526,8 +3543,8 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3526
3543
  let b = n.size;
3527
3544
  if (n.placement === "left" ? m.key === "ArrowLeft" ? b = n.size - 30 : m.key === "ArrowRight" && (b = n.size + 30) : n.placement === "right" ? m.key === "ArrowLeft" ? b = n.size + 30 : m.key === "ArrowRight" && (b = n.size - 30) : n.placement === "top" ? m.key === "ArrowUp" ? b = n.size - 30 : m.key === "ArrowDown" && (b = n.size + 30) : n.placement === "bottom" && (m.key === "ArrowUp" ? b = n.size + 30 : m.key === "ArrowDown" && (b = n.size - 30)), b !== n.size) {
3528
3545
  m.preventDefault();
3529
- const x = Dr(b, n.minSize, n.maxSize);
3530
- x !== n.size && r("resize", x);
3546
+ const w = Dr(b, n.minSize, n.maxSize);
3547
+ w !== n.size && r("resize", w);
3531
3548
  }
3532
3549
  }
3533
3550
  return (m, g) => (y(), v("aside", {
@@ -3553,7 +3570,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3553
3570
  }, null, 42, e2)) : T("", !0)
3554
3571
  ], 6));
3555
3572
  }
3556
- }), t2 = { class: "relative w-full h-full overflow-hidden bg-primary" }, ZC = /* @__PURE__ */ $({
3573
+ }), t2 = { class: "relative w-full h-full overflow-hidden bg-primary" }, FC = /* @__PURE__ */ $({
3557
3574
  __name: "PanelLayout",
3558
3575
  props: {
3559
3576
  borders: { type: Boolean, default: !1 },
@@ -3567,42 +3584,54 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3567
3584
  mainPanelBgColorClass: { default: "" },
3568
3585
  orientation: { default: "horizontal" }
3569
3586
  },
3570
- emits: ["start-panel-transition-end", "end-panel-transition-end"],
3587
+ emits: ["start-panel-resize", "start-panel-resize-end", "start-panel-resize-start", "start-panel-transition-end", "end-panel-resize", "end-panel-resize-end", "end-panel-resize-start", "end-panel-transition-end"],
3571
3588
  setup(t, { emit: e }) {
3572
3589
  const n = t, r = e, s = M(!1), i = M(n.startPanelSize), o = M(n.endPanelSize), l = M(n.startPanelSize), a = M(n.endPanelSize), c = Y(() => ({
3573
3590
  [n.orientation === "horizontal" ? "paddingLeft" : "paddingTop"]: `${l.value}px`,
3574
3591
  [n.orientation === "horizontal" ? "paddingRight" : "paddingBottom"]: `${a.value}px`
3575
- })), u = (m) => i.value = l.value = m, d = (m) => !m && r("start-panel-transition-end"), f = (m) => o.value = a.value = m, h = (m) => !m && r("end-panel-transition-end");
3576
- Oe(
3592
+ })), u = () => {
3593
+ s.value = !1, r("start-panel-resize-end");
3594
+ }, d = () => {
3595
+ s.value = !0, r("start-panel-resize-start");
3596
+ }, f = (x) => {
3597
+ i.value = l.value = x, r("start-panel-resize", x);
3598
+ }, h = (x) => !x && r("start-panel-transition-end"), p = () => {
3599
+ s.value = !1, r("end-panel-resize-end");
3600
+ }, m = () => {
3601
+ s.value = !0, r("end-panel-resize-start");
3602
+ }, g = (x) => {
3603
+ o.value = a.value = x, r("end-panel-resize", x);
3604
+ }, b = (x) => !x && r("end-panel-transition-end");
3605
+ Re(
3577
3606
  () => n.startPanelVisible,
3578
- (m) => l.value = m ? i.value : 0
3579
- ), Oe(
3607
+ (x) => l.value = x ? i.value : 0
3608
+ ), Re(
3580
3609
  () => n.endPanelVisible,
3581
- (m) => a.value = m ? o.value : 0
3582
- ), Oe(
3610
+ (x) => a.value = x ? o.value : 0
3611
+ ), Re(
3583
3612
  () => n.startPanelSize,
3584
- (m) => i.value = l.value = m
3585
- ), Oe(
3613
+ (x) => i.value = l.value = x
3614
+ ), Re(
3586
3615
  () => n.endPanelSize,
3587
- (m) => o.value = a.value = m
3616
+ (x) => o.value = a.value = x
3588
3617
  );
3589
- const p = ar();
3618
+ const w = ar();
3590
3619
  return Ve(() => {
3591
- l.value = n.startPanelVisible && p["start-panel"] ? i.value : 0, a.value = n.endPanelVisible && p["end-panel"] ? o.value : 0;
3592
- }), (m, g) => (y(), v("div", t2, [
3593
- k(p)["start-panel"] && t.startPanelVisible ? (y(), H(Ea, {
3620
+ l.value = n.startPanelVisible && w["start-panel"] ? i.value : 0, a.value = n.endPanelVisible && w["end-panel"] ? o.value : 0;
3621
+ }), (x, L) => (y(), v("div", t2, [
3622
+ k(w)["start-panel"] && t.startPanelVisible ? (y(), H(Ea, {
3594
3623
  key: 0,
3595
3624
  placement: t.orientation === "horizontal" ? "left" : "top",
3596
3625
  border: n.borders,
3597
3626
  draggable: t.startPanelDraggable,
3598
3627
  size: i.value,
3599
- onResizeStart: g[0] || (g[0] = (b) => s.value = !0),
3600
- onResize: u,
3601
- onResizeEnd: g[1] || (g[1] = (b) => s.value = !1),
3602
- onTransitioning: d
3628
+ onResizeStart: d,
3629
+ onResize: f,
3630
+ onResizeEnd: u,
3631
+ onTransitioning: h
3603
3632
  }, {
3604
- default: R(() => [
3605
- F(m.$slots, "start-panel")
3633
+ default: O(() => [
3634
+ F(x.$slots, "start-panel")
3606
3635
  ]),
3607
3636
  _: 3
3608
3637
  }, 8, ["placement", "border", "draggable", "size"])) : T("", !0),
@@ -3610,21 +3639,21 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3610
3639
  class: z(["relative z-0 h-full overflow-hidden", [n.mainPanelBgColorClass]]),
3611
3640
  style: Ce(c.value)
3612
3641
  }, [
3613
- F(m.$slots, "main")
3642
+ F(x.$slots, "main")
3614
3643
  ], 6),
3615
- k(p)["end-panel"] && t.endPanelVisible ? (y(), H(Ea, {
3644
+ k(w)["end-panel"] && t.endPanelVisible ? (y(), H(Ea, {
3616
3645
  key: 1,
3617
3646
  placement: t.orientation === "horizontal" ? "right" : "bottom",
3618
3647
  border: n.borders,
3619
3648
  draggable: t.endPanelDraggable,
3620
3649
  size: o.value,
3621
- onResizeStart: g[2] || (g[2] = (b) => s.value = !0),
3622
- onResize: f,
3623
- onResizeEnd: g[3] || (g[3] = (b) => s.value = !1),
3624
- onTransitioning: h
3650
+ onResizeStart: m,
3651
+ onResize: g,
3652
+ onResizeEnd: p,
3653
+ onTransitioning: b
3625
3654
  }, {
3626
- default: R(() => [
3627
- F(m.$slots, "end-panel")
3655
+ default: O(() => [
3656
+ F(x.$slots, "end-panel")
3628
3657
  ]),
3629
3658
  _: 3
3630
3659
  }, 8, ["placement", "border", "draggable", "size"])) : T("", !0)
@@ -3645,7 +3674,7 @@ const Nr = /* @__PURE__ */ gn(j5, [["render", K5]]), q5 = {
3645
3674
  function Aa(t, e, n) {
3646
3675
  return st(t, _n(e, n));
3647
3676
  }
3648
- function On(t, e) {
3677
+ function Rn(t, e) {
3649
3678
  return typeof t == "function" ? t(e) : t;
3650
3679
  }
3651
3680
  function Ut(t) {
@@ -3664,12 +3693,12 @@ const s2 = /* @__PURE__ */ new Set(["top", "bottom"]);
3664
3693
  function St(t) {
3665
3694
  return s2.has(Ut(t)) ? "y" : "x";
3666
3695
  }
3667
- function Oc(t) {
3696
+ function Rc(t) {
3668
3697
  return Cl(St(t));
3669
3698
  }
3670
3699
  function i2(t, e, n) {
3671
3700
  n === void 0 && (n = !1);
3672
- const r = Qr(t), s = Oc(t), i = Ac(s);
3701
+ const r = Qr(t), s = Rc(t), i = Ac(s);
3673
3702
  let o = s === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
3674
3703
  return e.reference[i] > e.floating[i] && (o = As(o)), [o, As(o)];
3675
3704
  }
@@ -3680,12 +3709,12 @@ function o2(t) {
3680
3709
  function To(t) {
3681
3710
  return t.replace(/start|end/g, (e) => r2[e]);
3682
3711
  }
3683
- const Oa = ["left", "right"], Ra = ["right", "left"], l2 = ["top", "bottom"], a2 = ["bottom", "top"];
3712
+ const Ra = ["left", "right"], Oa = ["right", "left"], l2 = ["top", "bottom"], a2 = ["bottom", "top"];
3684
3713
  function c2(t, e, n) {
3685
3714
  switch (t) {
3686
3715
  case "top":
3687
3716
  case "bottom":
3688
- return n ? e ? Ra : Oa : e ? Oa : Ra;
3717
+ return n ? e ? Oa : Ra : e ? Ra : Oa;
3689
3718
  case "left":
3690
3719
  case "right":
3691
3720
  return e ? l2 : a2;
@@ -3718,7 +3747,7 @@ function f2(t) {
3718
3747
  left: t
3719
3748
  };
3720
3749
  }
3721
- function Os(t) {
3750
+ function Rs(t) {
3722
3751
  const {
3723
3752
  x: e,
3724
3753
  y: n,
@@ -3741,7 +3770,7 @@ function Da(t, e, n) {
3741
3770
  reference: r,
3742
3771
  floating: s
3743
3772
  } = t;
3744
- const i = St(e), o = Oc(e), l = Ac(o), a = Ut(e), c = i === "y", u = r.x + r.width / 2 - s.width / 2, d = r.y + r.height / 2 - s.height / 2, f = r[l] / 2 - s[l] / 2;
3773
+ const i = St(e), o = Rc(e), l = Ac(o), a = Ut(e), c = i === "y", u = r.x + r.width / 2 - s.width / 2, d = r.y + r.height / 2 - s.height / 2, f = r[l] / 2 - s[l] / 2;
3745
3774
  let h;
3746
3775
  switch (a) {
3747
3776
  case "top":
@@ -3804,8 +3833,8 @@ const h2 = async (t, e, n) => {
3804
3833
  name: g,
3805
3834
  fn: b
3806
3835
  } = l[m], {
3807
- x,
3808
- y: w,
3836
+ x: w,
3837
+ y: x,
3809
3838
  data: L,
3810
3839
  reset: S
3811
3840
  } = await b({
@@ -3822,7 +3851,7 @@ const h2 = async (t, e, n) => {
3822
3851
  floating: e
3823
3852
  }
3824
3853
  });
3825
- u = x ?? u, d = w ?? d, h = {
3854
+ u = w ?? u, d = x ?? d, h = {
3826
3855
  ...h,
3827
3856
  [g]: {
3828
3857
  ...h[g],
@@ -3861,28 +3890,28 @@ async function vl(t, e) {
3861
3890
  elementContext: d = "floating",
3862
3891
  altBoundary: f = !1,
3863
3892
  padding: h = 0
3864
- } = On(e, t), p = f2(h), g = l[f ? d === "floating" ? "reference" : "floating" : d], b = Os(await i.getClippingRect({
3893
+ } = Rn(e, t), p = f2(h), g = l[f ? d === "floating" ? "reference" : "floating" : d], b = Rs(await i.getClippingRect({
3865
3894
  element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
3866
3895
  boundary: c,
3867
3896
  rootBoundary: u,
3868
3897
  strategy: a
3869
- })), x = d === "floating" ? {
3898
+ })), w = d === "floating" ? {
3870
3899
  x: r,
3871
3900
  y: s,
3872
3901
  width: o.floating.width,
3873
3902
  height: o.floating.height
3874
- } : o.reference, w = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), L = await (i.isElement == null ? void 0 : i.isElement(w)) ? await (i.getScale == null ? void 0 : i.getScale(w)) || {
3903
+ } : o.reference, x = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), L = await (i.isElement == null ? void 0 : i.isElement(x)) ? await (i.getScale == null ? void 0 : i.getScale(x)) || {
3875
3904
  x: 1,
3876
3905
  y: 1
3877
3906
  } : {
3878
3907
  x: 1,
3879
3908
  y: 1
3880
- }, S = Os(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
3909
+ }, S = Rs(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
3881
3910
  elements: l,
3882
- rect: x,
3883
- offsetParent: w,
3911
+ rect: w,
3912
+ offsetParent: x,
3884
3913
  strategy: a
3885
- }) : x);
3914
+ }) : w);
3886
3915
  return {
3887
3916
  top: (b.top - S.top + p.top) / L.y,
3888
3917
  bottom: (S.bottom - b.bottom + p.bottom) / L.y,
@@ -3911,12 +3940,12 @@ const p2 = function(t) {
3911
3940
  fallbackAxisSideDirection: p = "none",
3912
3941
  flipAlignment: m = !0,
3913
3942
  ...g
3914
- } = On(t, e);
3943
+ } = Rn(t, e);
3915
3944
  if ((n = i.arrow) != null && n.alignmentOffset)
3916
3945
  return {};
3917
- const b = Ut(s), x = St(l), w = Ut(l) === l, L = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (w || !m ? [As(l)] : o2(l)), N = p !== "none";
3946
+ const b = Ut(s), w = St(l), x = Ut(l) === l, L = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !m ? [As(l)] : o2(l)), N = p !== "none";
3918
3947
  !f && N && S.push(...u2(l, m, p, L));
3919
- const O = [l, ...S], Z = await vl(e, g), E = [];
3948
+ const R = [l, ...S], Z = await vl(e, g), E = [];
3920
3949
  let P = ((r = i.flip) == null ? void 0 : r.overflows) || [];
3921
3950
  if (u && E.push(Z[b]), d) {
3922
3951
  const G = i2(s, o, L);
@@ -3927,10 +3956,10 @@ const p2 = function(t) {
3927
3956
  overflows: E
3928
3957
  }], !E.every((G) => G <= 0)) {
3929
3958
  var Q, _;
3930
- const G = (((Q = i.flip) == null ? void 0 : Q.index) || 0) + 1, be = O[G];
3931
- if (be && (!(d === "alignment" ? x !== St(be) : !1) || // We leave the current main axis only if every placement on that axis
3959
+ const G = (((Q = i.flip) == null ? void 0 : Q.index) || 0) + 1, be = R[G];
3960
+ if (be && (!(d === "alignment" ? w !== St(be) : !1) || // We leave the current main axis only if every placement on that axis
3932
3961
  // overflows the main axis.
3933
- P.every((q) => St(q.placement) === x ? q.overflows[0] > 0 : !0)))
3962
+ P.every((q) => St(q.placement) === w ? q.overflows[0] > 0 : !0)))
3934
3963
  return {
3935
3964
  data: {
3936
3965
  index: G,
@@ -3948,7 +3977,7 @@ const p2 = function(t) {
3948
3977
  const K = (j = P.filter((q) => {
3949
3978
  if (N) {
3950
3979
  const le = St(q.placement);
3951
- return le === x || // Create a bias to the `y` side axis due to horizontal
3980
+ return le === w || // Create a bias to the `y` side axis due to horizontal
3952
3981
  // reading directions favoring greater width.
3953
3982
  le === "y";
3954
3983
  }
@@ -3971,13 +4000,13 @@ const p2 = function(t) {
3971
4000
  return {};
3972
4001
  }
3973
4002
  };
3974
- }, Rc = /* @__PURE__ */ new Set(["left", "top"]);
4003
+ }, Oc = /* @__PURE__ */ new Set(["left", "top"]);
3975
4004
  async function m2(t, e) {
3976
4005
  const {
3977
4006
  placement: n,
3978
4007
  platform: r,
3979
4008
  elements: s
3980
- } = t, i = await (r.isRTL == null ? void 0 : r.isRTL(s.floating)), o = Ut(n), l = Qr(n), a = St(n) === "y", c = Rc.has(o) ? -1 : 1, u = i && a ? -1 : 1, d = On(e, t);
4009
+ } = t, i = await (r.isRTL == null ? void 0 : r.isRTL(s.floating)), o = Ut(n), l = Qr(n), a = St(n) === "y", c = Oc.has(o) ? -1 : 1, u = i && a ? -1 : 1, d = Rn(e, t);
3981
4010
  let {
3982
4011
  mainAxis: f,
3983
4012
  crossAxis: h,
@@ -4037,27 +4066,27 @@ const g2 = function(t) {
4037
4066
  fn: (g) => {
4038
4067
  let {
4039
4068
  x: b,
4040
- y: x
4069
+ y: w
4041
4070
  } = g;
4042
4071
  return {
4043
4072
  x: b,
4044
- y: x
4073
+ y: w
4045
4074
  };
4046
4075
  }
4047
4076
  },
4048
4077
  ...a
4049
- } = On(t, e), c = {
4078
+ } = Rn(t, e), c = {
4050
4079
  x: n,
4051
4080
  y: r
4052
4081
  }, u = await vl(e, a), d = St(Ut(s)), f = Cl(d);
4053
4082
  let h = c[f], p = c[d];
4054
4083
  if (i) {
4055
- const g = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", x = h + u[g], w = h - u[b];
4056
- h = Aa(x, h, w);
4084
+ const g = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", w = h + u[g], x = h - u[b];
4085
+ h = Aa(w, h, x);
4057
4086
  }
4058
4087
  if (o) {
4059
- const g = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", x = p + u[g], w = p - u[b];
4060
- p = Aa(x, p, w);
4088
+ const g = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", w = p + u[g], x = p - u[b];
4089
+ p = Aa(w, p, x);
4061
4090
  }
4062
4091
  const m = l.fn({
4063
4092
  ...e,
@@ -4091,12 +4120,12 @@ const g2 = function(t) {
4091
4120
  offset: l = 0,
4092
4121
  mainAxis: a = !0,
4093
4122
  crossAxis: c = !0
4094
- } = On(t, e), u = {
4123
+ } = Rn(t, e), u = {
4095
4124
  x: n,
4096
4125
  y: r
4097
4126
  }, d = St(s), f = Cl(d);
4098
4127
  let h = u[f], p = u[d];
4099
- const m = On(l, e), g = typeof m == "number" ? {
4128
+ const m = Rn(l, e), g = typeof m == "number" ? {
4100
4129
  mainAxis: m,
4101
4130
  crossAxis: 0
4102
4131
  } : {
@@ -4105,12 +4134,12 @@ const g2 = function(t) {
4105
4134
  ...m
4106
4135
  };
4107
4136
  if (a) {
4108
- const w = f === "y" ? "height" : "width", L = i.reference[f] - i.floating[w] + g.mainAxis, S = i.reference[f] + i.reference[w] - g.mainAxis;
4137
+ const x = f === "y" ? "height" : "width", L = i.reference[f] - i.floating[x] + g.mainAxis, S = i.reference[f] + i.reference[x] - g.mainAxis;
4109
4138
  h < L ? h = L : h > S && (h = S);
4110
4139
  }
4111
4140
  if (c) {
4112
- var b, x;
4113
- const w = f === "y" ? "width" : "height", L = Rc.has(Ut(s)), S = i.reference[d] - i.floating[w] + (L && ((b = o.offset) == null ? void 0 : b[d]) || 0) + (L ? 0 : g.crossAxis), N = i.reference[d] + i.reference[w] + (L ? 0 : ((x = o.offset) == null ? void 0 : x[d]) || 0) - (L ? g.crossAxis : 0);
4141
+ var b, w;
4142
+ const x = f === "y" ? "width" : "height", L = Oc.has(Ut(s)), S = i.reference[d] - i.floating[x] + (L && ((b = o.offset) == null ? void 0 : b[d]) || 0) + (L ? 0 : g.crossAxis), N = i.reference[d] + i.reference[x] + (L ? 0 : ((w = o.offset) == null ? void 0 : w[d]) || 0) - (L ? g.crossAxis : 0);
4114
4143
  p < S ? p = S : p > N && (p = N);
4115
4144
  }
4116
4145
  return {
@@ -4134,22 +4163,22 @@ const g2 = function(t) {
4134
4163
  apply: a = () => {
4135
4164
  },
4136
4165
  ...c
4137
- } = On(t, e), u = await vl(e, c), d = Ut(s), f = Qr(s), h = St(s) === "y", {
4166
+ } = Rn(t, e), u = await vl(e, c), d = Ut(s), f = Qr(s), h = St(s) === "y", {
4138
4167
  width: p,
4139
4168
  height: m
4140
4169
  } = i.floating;
4141
4170
  let g, b;
4142
4171
  d === "top" || d === "bottom" ? (g = d, b = f === (await (o.isRTL == null ? void 0 : o.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (b = d, g = f === "end" ? "top" : "bottom");
4143
- const x = m - u.top - u.bottom, w = p - u.left - u.right, L = _n(m - u[g], x), S = _n(p - u[b], w), N = !e.middlewareData.shift;
4144
- let O = L, Z = S;
4145
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (Z = w), (r = e.middlewareData.shift) != null && r.enabled.y && (O = x), N && !f) {
4172
+ const w = m - u.top - u.bottom, x = p - u.left - u.right, L = _n(m - u[g], w), S = _n(p - u[b], x), N = !e.middlewareData.shift;
4173
+ let R = L, Z = S;
4174
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (Z = x), (r = e.middlewareData.shift) != null && r.enabled.y && (R = w), N && !f) {
4146
4175
  const P = st(u.left, 0), Q = st(u.right, 0), _ = st(u.top, 0), j = st(u.bottom, 0);
4147
- h ? Z = p - 2 * (P !== 0 || Q !== 0 ? P + Q : st(u.left, u.right)) : O = m - 2 * (_ !== 0 || j !== 0 ? _ + j : st(u.top, u.bottom));
4176
+ h ? Z = p - 2 * (P !== 0 || Q !== 0 ? P + Q : st(u.left, u.right)) : R = m - 2 * (_ !== 0 || j !== 0 ? _ + j : st(u.top, u.bottom));
4148
4177
  }
4149
4178
  await a({
4150
4179
  ...e,
4151
4180
  availableWidth: Z,
4152
- availableHeight: O
4181
+ availableHeight: R
4153
4182
  });
4154
4183
  const E = await o.getDimensions(l.floating);
4155
4184
  return p !== E.width || m !== E.height ? {
@@ -4313,7 +4342,7 @@ function Ic(t) {
4313
4342
  function E2(t, e, n) {
4314
4343
  return e === void 0 && (e = !1), !n || e && n !== ot(t) ? !1 : e;
4315
4344
  }
4316
- function Rn(t, e, n, r) {
4345
+ function On(t, e, n, r) {
4317
4346
  e === void 0 && (e = !1), n === void 0 && (n = !1);
4318
4347
  const s = t.getBoundingClientRect(), i = xl(t);
4319
4348
  let o = Ht(1);
@@ -4324,11 +4353,11 @@ function Rn(t, e, n, r) {
4324
4353
  const f = ot(i), h = r && Ct(r) ? ot(r) : r;
4325
4354
  let p = f, m = Vo(p);
4326
4355
  for (; m && r && h !== p; ) {
4327
- const g = Jn(m), b = m.getBoundingClientRect(), x = vt(m), w = b.left + (m.clientLeft + parseFloat(x.paddingLeft)) * g.x, L = b.top + (m.clientTop + parseFloat(x.paddingTop)) * g.y;
4328
- a *= g.x, c *= g.y, u *= g.x, d *= g.y, a += w, c += L, p = ot(m), m = Vo(p);
4356
+ const g = Jn(m), b = m.getBoundingClientRect(), w = vt(m), x = b.left + (m.clientLeft + parseFloat(w.paddingLeft)) * g.x, L = b.top + (m.clientTop + parseFloat(w.paddingTop)) * g.y;
4357
+ a *= g.x, c *= g.y, u *= g.x, d *= g.y, a += x, c += L, p = ot(m), m = Vo(p);
4329
4358
  }
4330
4359
  }
4331
- return Os({
4360
+ return Rs({
4332
4361
  width: u,
4333
4362
  height: d,
4334
4363
  x: a,
@@ -4337,7 +4366,7 @@ function Rn(t, e, n, r) {
4337
4366
  }
4338
4367
  function Ei(t, e) {
4339
4368
  const n = Vi(t).scrollLeft;
4340
- return e ? e.left + n : Rn(At(t)).left + n;
4369
+ return e ? e.left + n : On(At(t)).left + n;
4341
4370
  }
4342
4371
  function Pc(t, e) {
4343
4372
  const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft - Ei(t, n), s = n.top + e.scrollTop;
@@ -4362,7 +4391,7 @@ function A2(t) {
4362
4391
  }, c = Ht(1);
4363
4392
  const u = Ht(0), d = Tt(r);
4364
4393
  if ((d || !d && !i) && ((ur(r) !== "body" || _r(o)) && (a = Vi(r)), Tt(r))) {
4365
- const h = Rn(r);
4394
+ const h = On(r);
4366
4395
  c = Jn(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
4367
4396
  }
4368
4397
  const f = o && !d && !i ? Pc(o, a) : Ht(0);
@@ -4373,10 +4402,10 @@ function A2(t) {
4373
4402
  y: n.y * c.y - a.scrollTop * c.y + u.y + f.y
4374
4403
  };
4375
4404
  }
4376
- function O2(t) {
4405
+ function R2(t) {
4377
4406
  return Array.from(t.getClientRects());
4378
4407
  }
4379
- function R2(t) {
4408
+ function O2(t) {
4380
4409
  const e = At(t), n = Vi(t), r = t.ownerDocument.body, s = st(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), i = st(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
4381
4410
  let o = -n.scrollLeft + Ei(t);
4382
4411
  const l = -n.scrollTop;
@@ -4410,7 +4439,7 @@ function D2(t, e) {
4410
4439
  }
4411
4440
  const N2 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
4412
4441
  function $2(t, e) {
4413
- const n = Rn(t, !0, e === "fixed"), r = n.top + t.clientTop, s = n.left + t.clientLeft, i = Tt(t) ? Jn(t) : Ht(1), o = t.clientWidth * i.x, l = t.clientHeight * i.y, a = s * i.x, c = r * i.y;
4442
+ const n = On(t, !0, e === "fixed"), r = n.top + t.clientTop, s = n.left + t.clientLeft, i = Tt(t) ? Jn(t) : Ht(1), o = t.clientWidth * i.x, l = t.clientHeight * i.y, a = s * i.x, c = r * i.y;
4414
4443
  return {
4415
4444
  width: o,
4416
4445
  height: l,
@@ -4423,7 +4452,7 @@ function Ia(t, e, n) {
4423
4452
  if (e === "viewport")
4424
4453
  r = D2(t, n);
4425
4454
  else if (e === "document")
4426
- r = R2(At(t));
4455
+ r = O2(At(t));
4427
4456
  else if (Ct(e))
4428
4457
  r = $2(e, n);
4429
4458
  else {
@@ -4435,7 +4464,7 @@ function Ia(t, e, n) {
4435
4464
  height: e.height
4436
4465
  };
4437
4466
  }
4438
- return Os(r);
4467
+ return Rs(r);
4439
4468
  }
4440
4469
  function zc(t, e) {
4441
4470
  const n = hn(t);
@@ -4483,7 +4512,7 @@ function z2(t) {
4483
4512
  };
4484
4513
  }
4485
4514
  function B2(t, e, n) {
4486
- const r = Tt(e), s = At(e), i = n === "fixed", o = Rn(t, !0, i, e);
4515
+ const r = Tt(e), s = At(e), i = n === "fixed", o = On(t, !0, i, e);
4487
4516
  let l = {
4488
4517
  scrollLeft: 0,
4489
4518
  scrollTop: 0
@@ -4494,7 +4523,7 @@ function B2(t, e, n) {
4494
4523
  }
4495
4524
  if (r || !r && !i)
4496
4525
  if ((ur(e) !== "body" || _r(s)) && (l = Vi(e)), r) {
4497
- const h = Rn(e, !0, i, e);
4526
+ const h = On(e, !0, i, e);
4498
4527
  a.x = h.x + e.clientLeft, a.y = h.y + e.clientTop;
4499
4528
  } else s && c();
4500
4529
  i && !r && s && c();
@@ -4556,7 +4585,7 @@ const W2 = {
4556
4585
  getClippingRect: P2,
4557
4586
  getOffsetParent: Bc,
4558
4587
  getElementRects: Z2,
4559
- getClientRects: O2,
4588
+ getClientRects: R2,
4560
4589
  getDimensions: z2,
4561
4590
  getScale: Jn,
4562
4591
  isElement: Ct,
@@ -4582,30 +4611,30 @@ function j2(t, e) {
4582
4611
  } = c;
4583
4612
  if (l || e(), !f || !h)
4584
4613
  return;
4585
- const p = as(d), m = as(s.clientWidth - (u + f)), g = as(s.clientHeight - (d + h)), b = as(u), w = {
4614
+ const p = as(d), m = as(s.clientWidth - (u + f)), g = as(s.clientHeight - (d + h)), b = as(u), x = {
4586
4615
  rootMargin: -p + "px " + -m + "px " + -g + "px " + -b + "px",
4587
4616
  threshold: st(0, _n(1, a)) || 1
4588
4617
  };
4589
4618
  let L = !0;
4590
4619
  function S(N) {
4591
- const O = N[0].intersectionRatio;
4592
- if (O !== a) {
4620
+ const R = N[0].intersectionRatio;
4621
+ if (R !== a) {
4593
4622
  if (!L)
4594
4623
  return o();
4595
- O ? o(!1, O) : r = setTimeout(() => {
4624
+ R ? o(!1, R) : r = setTimeout(() => {
4596
4625
  o(!1, 1e-7);
4597
4626
  }, 1e3);
4598
4627
  }
4599
- O === 1 && !Zc(c, t.getBoundingClientRect()) && o(), L = !1;
4628
+ R === 1 && !Zc(c, t.getBoundingClientRect()) && o(), L = !1;
4600
4629
  }
4601
4630
  try {
4602
4631
  n = new IntersectionObserver(S, {
4603
- ...w,
4632
+ ...x,
4604
4633
  // Handle <iframe>s
4605
4634
  root: s.ownerDocument
4606
4635
  });
4607
4636
  } catch {
4608
- n = new IntersectionObserver(S, w);
4637
+ n = new IntersectionObserver(S, x);
4609
4638
  }
4610
4639
  n.observe(t);
4611
4640
  }
@@ -4628,22 +4657,22 @@ function U2(t, e, n, r) {
4628
4657
  const d = c && l ? j2(c, n) : null;
4629
4658
  let f = -1, h = null;
4630
4659
  o && (h = new ResizeObserver((b) => {
4631
- let [x] = b;
4632
- x && x.target === c && h && (h.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
4633
- var w;
4634
- (w = h) == null || w.observe(e);
4660
+ let [w] = b;
4661
+ w && w.target === c && h && (h.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
4662
+ var x;
4663
+ (x = h) == null || x.observe(e);
4635
4664
  })), n();
4636
4665
  }), c && !a && h.observe(c), h.observe(e));
4637
- let p, m = a ? Rn(t) : null;
4666
+ let p, m = a ? On(t) : null;
4638
4667
  a && g();
4639
4668
  function g() {
4640
- const b = Rn(t);
4669
+ const b = On(t);
4641
4670
  m && !Zc(m, b) && n(), m = b, p = requestAnimationFrame(g);
4642
4671
  }
4643
4672
  return n(), () => {
4644
4673
  var b;
4645
- u.forEach((x) => {
4646
- s && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
4674
+ u.forEach((w) => {
4675
+ s && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
4647
4676
  }), d == null || d(), (b = h) == null || b.disconnect(), h = null, a && cancelAnimationFrame(p);
4648
4677
  };
4649
4678
  }
@@ -4761,36 +4790,36 @@ const Eo = /* @__PURE__ */ G2(Q2), _2 = Fc({
4761
4790
  const E = i.default && i.default({ visible: u.value });
4762
4791
  if (E && E.length > 1)
4763
4792
  return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${E.length} child nodes.`);
4764
- r.popperWidthClass ? (r.sameWidthAsElement || r.sameWidthAsTrigger) && console.warn("[Popper]: The props 'sameWidthAsElement' or 'sameWidthAsTrigger' will be ignored because the 'popperWidthClass' is set") : r.sameWidthAsElement && r.sameWidthAsTrigger && console.warn("[Popper]: The 'sameWidthAsElement' prop will be ignored because 'sameWidthAsTrigger' is set to true"), r.trigger === "manual" && r.show && x();
4793
+ r.popperWidthClass ? (r.sameWidthAsElement || r.sameWidthAsTrigger) && console.warn("[Popper]: The props 'sameWidthAsElement' or 'sameWidthAsTrigger' will be ignored because the 'popperWidthClass' is set") : r.sameWidthAsElement && r.sameWidthAsTrigger && console.warn("[Popper]: The 'sameWidthAsElement' prop will be ignored because 'sameWidthAsTrigger' is set to true"), r.trigger === "manual" && r.show && w();
4765
4794
  }), Jr(() => {
4766
- x.clear(), o && (o(), o = null);
4795
+ w.clear(), o && (o(), o = null);
4767
4796
  });
4768
4797
  const g = () => {
4769
- x.clear(), u.value && (u.value = !1, s("close"), r.closeOnClickOutside && f(), o && (o(), o = null));
4798
+ w.clear(), u.value && (u.value = !1, s("close"), r.closeOnClickOutside && f(), o && (o(), o = null));
4770
4799
  }, b = async () => {
4771
4800
  u.value || (u.value = !0, await fn(), s("open", [c.value, a.value]), o = U2(c.value, a.value, m), r.closeOnClickOutside && a.value && c.value && h([a.value, c.value]));
4772
- }, x = Eo(b, r.openDelay), w = Eo(g, r.closeDelay), L = async () => {
4773
- r.disabled || (w.clear(), x());
4801
+ }, w = Eo(b, r.openDelay), x = Eo(g, r.closeDelay), L = async () => {
4802
+ r.disabled || (x.clear(), w());
4774
4803
  }, S = async () => {
4775
- x.clear(), w();
4804
+ w.clear(), x();
4776
4805
  }, N = (E) => {
4777
4806
  r.trigger === "click" && (E.preventDefault(), E.stopPropagation(), Z());
4778
- }, O = (E) => {
4807
+ }, R = (E) => {
4779
4808
  a.value && c.value && p([a.value, c.value, ...E]);
4780
4809
  }, Z = () => u.value ? S() : L();
4781
- return Oe(
4810
+ return Re(
4782
4811
  () => r.disabled,
4783
4812
  (E) => u.value && E && g()
4784
- ), Oe(
4813
+ ), Re(
4785
4814
  () => r.show,
4786
4815
  (E) => {
4787
- r.trigger === "manual" ? E ? x() : w() : console.warn("[Popper]: The 'show' prop is only available when the 'trigger' prop is set to 'manual'");
4816
+ r.trigger === "manual" ? E ? w() : x() : console.warn("[Popper]: The 'show' prop is only available when the 'trigger' prop is set to 'manual'");
4788
4817
  }
4789
4818
  ), e({
4790
4819
  close: g,
4791
4820
  containerRef: l,
4792
4821
  open: b,
4793
- updateClickOutsideTargets: O
4822
+ updateClickOutsideTargets: R
4794
4823
  }), (E, P) => (y(), v("div", {
4795
4824
  ref_key: "containerRef",
4796
4825
  ref: l,
@@ -4837,7 +4866,7 @@ function r4(t, e) {
4837
4866
  const ts = /* @__PURE__ */ gn(t4, [["render", r4]]), s4 = {
4838
4867
  key: 0,
4839
4868
  class: "flex items-center justify-between px-4 pb-4"
4840
- }, FC = /* @__PURE__ */ $({
4869
+ }, WC = /* @__PURE__ */ $({
4841
4870
  __name: "PopCalendar",
4842
4871
  props: {
4843
4872
  mode: { default: "immediate" },
@@ -4873,14 +4902,14 @@ const ts = /* @__PURE__ */ gn(t4, [["render", r4]]), s4 = {
4873
4902
  onClose: u[0] || (u[0] = (d) => n("close")),
4874
4903
  onOpen: a
4875
4904
  }, {
4876
- default: R((d) => [
4905
+ default: O((d) => [
4877
4906
  F(c.$slots, "trigger", {
4878
4907
  visible: d.visible
4879
4908
  })
4880
4909
  ]),
4881
- content: R(() => [
4910
+ content: O(() => [
4882
4911
  V(k(ts), null, {
4883
- default: R(() => [
4912
+ default: O(() => [
4884
4913
  V(k(Qh), {
4885
4914
  value: t.mode === "confirmation" ? s.value : t.value,
4886
4915
  format: t.format,
@@ -4913,7 +4942,7 @@ const ts = /* @__PURE__ */ gn(t4, [["render", r4]]), s4 = {
4913
4942
  }), i4 = { class: "inline-flex" }, o4 = {
4914
4943
  key: 0,
4915
4944
  class: "flex flex-col gap-0"
4916
- }, l4 = { class: "text-sm text-secondary" }, WC = /* @__PURE__ */ $({
4945
+ }, l4 = { class: "text-sm text-secondary" }, jC = /* @__PURE__ */ $({
4917
4946
  __name: "PopConfirm",
4918
4947
  props: {
4919
4948
  order: {},
@@ -4953,16 +4982,16 @@ const ts = /* @__PURE__ */ gn(t4, [["render", r4]]), s4 = {
4953
4982
  onOpen: l,
4954
4983
  onClose: o
4955
4984
  }, {
4956
- default: R((f) => [
4985
+ default: O((f) => [
4957
4986
  C("div", i4, [
4958
4987
  F(u.$slots, "trigger", {
4959
4988
  visible: f && f.visible
4960
4989
  })
4961
4990
  ])
4962
4991
  ]),
4963
- content: R(() => [
4992
+ content: O(() => [
4964
4993
  V(k(ts), null, {
4965
- default: R(() => [
4994
+ default: O(() => [
4966
4995
  C("div", {
4967
4996
  ref_key: "contentRef",
4968
4997
  ref: s,
@@ -5004,7 +5033,7 @@ const ts = /* @__PURE__ */ gn(t4, [["render", r4]]), s4 = {
5004
5033
  function c4(t, e) {
5005
5034
  return " To be implemented ";
5006
5035
  }
5007
- const jC = /* @__PURE__ */ gn(a4, [["render", c4]]);
5036
+ const UC = /* @__PURE__ */ gn(a4, [["render", c4]]);
5008
5037
  var kt = /* @__PURE__ */ ((t) => (t.ERROR = "error", t.IDLE = "idle", t.LOADING = "loading", t.MATCH = "match", t.NO_MATCH = "no match", t))(kt || {});
5009
5038
  const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5010
5039
  __name: "option",
@@ -5049,7 +5078,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5049
5078
  setup(t, { emit: e }) {
5050
5079
  const n = e;
5051
5080
  return (r, s) => (y(), v("section", f4, [
5052
- (y(!0), v(I, null, yt(t.filters, (i) => (y(), H(k(R5), {
5081
+ (y(!0), v(I, null, yt(t.filters, (i) => (y(), H(k(O5), {
5053
5082
  key: i.name,
5054
5083
  active: !!(t.selected && t.selected.name === i.name),
5055
5084
  count: i.count,
@@ -5108,31 +5137,31 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5108
5137
  },
5109
5138
  emits: ["close", "save-custom", "select"],
5110
5139
  setup(t, { expose: e, emit: n }) {
5111
- const r = t, s = n, i = ar(), o = M(null), l = M([]), a = M(""), c = M(), u = M(), d = M(), f = M(), h = M(), p = M(), m = M(r.resultFilters || []), g = M(r.resultFilters ? r.resultFilters[0] : null), { nextFrame: b } = yl(), x = Y(() => r.selected ? Array.isArray(r.selected) ? r.selected : [r.selected] : []), w = Y(() => l.value.every((te) => te.disabled)), L = Y(() => !a.value.length && !l.value.length), S = Y(() => a.value.length && !l.value.length), N = Y(() => {
5140
+ const r = t, s = n, i = ar(), o = M(null), l = M([]), a = M(""), c = M(), u = M(), d = M(), f = M(), h = M(), p = M(), m = M(r.resultFilters || []), g = M(r.resultFilters ? r.resultFilters[0] : null), { nextFrame: b } = yl(), w = Y(() => r.selected ? Array.isArray(r.selected) ? r.selected : [r.selected] : []), x = Y(() => l.value.every((te) => te.disabled)), L = Y(() => !a.value.length && !l.value.length), S = Y(() => a.value.length && !l.value.length), N = Y(() => {
5112
5141
  if (u.value) return kt.ERROR;
5113
5142
  if (r.loading) return kt.LOADING;
5114
5143
  if (S.value && !r.loading) return kt.NO_MATCH;
5115
5144
  if (L.value && !r.loading) return kt.IDLE;
5116
5145
  if (l.value.length && !r.loading) return kt.MATCH;
5117
- }), O = (te) => {
5146
+ }), R = (te) => {
5118
5147
  l.value = g.value ? te.filter(g.value.execute) : te, r.resultFilters && m.value.forEach((ee) => {
5119
5148
  ee.count = te.filter(ee.execute).length;
5120
5149
  });
5121
5150
  };
5122
- Oe(
5151
+ Re(
5123
5152
  () => r.options,
5124
5153
  (te) => {
5125
- O(te), o.value = null;
5154
+ R(te), o.value = null;
5126
5155
  }
5127
5156
  ), lr(() => {
5128
- r.filterable && r.remoteMethod && console.warn('[PopSelect] should not have both "filterable" and "remoteMethod" props at the same time'), O(r.options);
5157
+ r.filterable && r.remoteMethod && console.warn('[PopSelect] should not have both "filterable" and "remoteMethod" props at the same time'), R(r.options);
5129
5158
  });
5130
5159
  const Z = () => h.value.close(), E = () => h.value.open(), P = async () => {
5131
5160
  b(() => {
5132
5161
  p.value && b(() => p.value.update()), d.value && b(() => d.value.focus());
5133
5162
  });
5134
5163
  }, Q = () => {
5135
- r.keepOpen || (o.value = null, r.resetOnClose && (a.value = "", r.remoteMethod ? r.remoteMethod("") : O([]), g.value = r.resultFilters ? r.resultFilters[0] : null), s("close"));
5164
+ r.keepOpen || (o.value = null, r.resetOnClose && (a.value = "", r.remoteMethod ? r.remoteMethod("") : R([]), g.value = r.resultFilters ? r.resultFilters[0] : null), s("close"));
5136
5165
  }, _ = (te) => {
5137
5166
  s("select", te), r.keepOpen || Z();
5138
5167
  }, j = (te) => l.value = r.options.filter((ee) => ee.label.toLowerCase().includes(te.toLowerCase())), be = $5(async (te) => {
@@ -5153,11 +5182,11 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5153
5182
  var Ee;
5154
5183
  return oe.label === ((Ee = o.value) == null ? void 0 : Ee.label);
5155
5184
  });
5156
- w.value || (te === "next" ? (ee++, ee === l.value.length && (ee = 0)) : te === "prev" && (ee--, ee < 0 && (ee = l.value.length - 1)), o.value = l.value[ee], o.value.disabled === !0 && q(te), await fn(), o.value && K(o.value));
5185
+ x.value || (te === "next" ? (ee++, ee === l.value.length && (ee = 0)) : te === "prev" && (ee--, ee < 0 && (ee = l.value.length - 1)), o.value = l.value[ee], o.value.disabled === !0 && q(te), await fn(), o.value && K(o.value));
5157
5186
  }, le = () => {
5158
5187
  o.value ? _(o.value) : a.value.length && s("save-custom", a.value);
5159
5188
  }, Ye = (te) => {
5160
- g.value = te, O(r.options), d.value.focus();
5189
+ g.value = te, R(r.options), d.value.focus();
5161
5190
  };
5162
5191
  return e({ close: Z, focus: E }), (te, ee) => (y(), H(k(es), {
5163
5192
  ref_key: "popperRef",
@@ -5173,19 +5202,19 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5173
5202
  onClose: Q,
5174
5203
  onOpen: P
5175
5204
  }, {
5176
- default: R((oe) => [
5205
+ default: O((oe) => [
5177
5206
  F(te.$slots, "trigger", {
5178
5207
  disabled: t.disabled,
5179
5208
  visible: oe && oe.visible
5180
5209
  })
5181
5210
  ]),
5182
- content: R(() => [
5211
+ content: O(() => [
5183
5212
  V(k(ts), {
5184
5213
  ref_key: "contentRef",
5185
5214
  ref: c,
5186
5215
  class: z(["flex flex-col", { "h-72": t.fixedHeight }])
5187
5216
  }, {
5188
- default: R(() => [
5217
+ default: O(() => [
5189
5218
  t.filterable || t.remoteMethod || t.resultFilters ? (y(), v("header", p4, [
5190
5219
  t.filterable || t.remoteMethod ? (y(), v("header", m4, [
5191
5220
  V(k(ve), {
@@ -5244,12 +5273,12 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5244
5273
  C("span", M4, ce(t.emptyStateText), 1)
5245
5274
  ]),
5246
5275
  ee[6] || (ee[6] = C("div", { class: "h-8 w-full bg-primary" }, null, -1))
5247
- ])) : N.value === k(kt).MATCH ? (y(), H(k(Rs), {
5276
+ ])) : N.value === k(kt).MATCH ? (y(), H(k(Os), {
5248
5277
  key: 5,
5249
5278
  ref_key: "scrollbarRef",
5250
5279
  ref: p
5251
5280
  }, {
5252
- default: R(() => [
5281
+ default: O(() => [
5253
5282
  C("div", S4, [
5254
5283
  (y(!0), v(I, null, yt(l.value, (oe) => (y(), H(d4, {
5255
5284
  ref_for: !0,
@@ -5259,18 +5288,18 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5259
5288
  disabled: oe.disabled,
5260
5289
  label: oe.label,
5261
5290
  "hovered-option": o.value,
5262
- selected: x.value.includes(oe),
5291
+ selected: w.value.includes(oe),
5263
5292
  onFocus: xe,
5264
5293
  onHover: xe,
5265
5294
  onClick: (Ee) => _(oe)
5266
5295
  }, {
5267
- default: R(() => [
5296
+ default: O(() => [
5268
5297
  C("div", H4, [
5269
5298
  oe.icon ? (y(), H(k(ve), {
5270
5299
  key: 0,
5271
5300
  name: oe.icon
5272
5301
  }, null, 8, ["name"])) : T("", !0),
5273
- V(k(Of), {
5302
+ V(k(Rf), {
5274
5303
  "background-color": "yellow",
5275
5304
  value: oe.label,
5276
5305
  highlight: a.value
@@ -5314,7 +5343,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5314
5343
  "leave-to-class": "opacity-0",
5315
5344
  onAfterLeave: l[1] || (l[1] = (a) => r("close"))
5316
5345
  }, {
5317
- default: R(() => [
5346
+ default: O(() => [
5318
5347
  Xr(C("div", {
5319
5348
  class: z(["z-40 fixed w-screen h-screen top-0 left-0 flex items-center justify-center pointer-events-auto p-4", s.value]),
5320
5349
  style: Ce(i),
@@ -5346,7 +5375,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5346
5375
  axis: "Y",
5347
5376
  client: "clientY",
5348
5377
  direction: "top"
5349
- }, O4 = ["aria-label", "aria-valuenow"], Za = /* @__PURE__ */ $({
5378
+ }, R4 = ["aria-label", "aria-valuenow"], Za = /* @__PURE__ */ $({
5350
5379
  __name: "Bar",
5351
5380
  props: {
5352
5381
  vertical: { type: Boolean },
@@ -5359,9 +5388,9 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5359
5388
  if (!o.value) return;
5360
5389
  const b = a.value;
5361
5390
  if (!b) return;
5362
- const x = s.value.getBoundingClientRect();
5363
- if (x) {
5364
- const w = ((x[l.direction] || 0) - (g[l.client] || 0)) * -1, L = i.value && typeof i.value[l.offset] == "number" ? i.value[l.offset] - b : 0, S = s.value ? Number(s.value[l.offset]) : 0, N = S ? (w - L) * 100 / S : 0;
5391
+ const w = s.value.getBoundingClientRect();
5392
+ if (w) {
5393
+ const x = ((w[l.direction] || 0) - (g[l.client] || 0)) * -1, L = i.value && typeof i.value[l.offset] == "number" ? i.value[l.offset] - b : 0, S = s.value ? Number(s.value[l.offset]) : 0, N = S ? (x - L) * 100 / S : 0;
5365
5394
  r("update", {
5366
5395
  scrollReference: l.scroll,
5367
5396
  positionPercentage: N,
@@ -5374,16 +5403,16 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5374
5403
  g.stopImmediatePropagation(), o.value = !0, document.addEventListener("mousemove", c), document.addEventListener("mouseup", u), document.onselectstart = () => !1;
5375
5404
  }, f = (g) => {
5376
5405
  if (!(g.ctrlKey || g.button === 2) && (d(g), g.currentTarget)) {
5377
- const b = g.currentTarget[l.offset], x = g[l.client], L = g.currentTarget.getBoundingClientRect()[l.direction];
5378
- a.value = b - (x - L);
5406
+ const b = g.currentTarget[l.offset], w = g[l.client], L = g.currentTarget.getBoundingClientRect()[l.direction];
5407
+ a.value = b - (w - L);
5379
5408
  }
5380
5409
  }, h = (g) => {
5381
5410
  const b = g.target.getBoundingClientRect();
5382
5411
  if (b) {
5383
- const x = b[l.direction], w = g[l.client], L = Math.abs((x ? Number(x) : 0) - (w ? Number(w) : 0)), S = i.value[l.offset] / 2, N = s.value ? Number(s.value[l.offset]) : 0, O = N ? (L - S) * 100 / N : 0;
5412
+ const w = b[l.direction], x = g[l.client], L = Math.abs((w ? Number(w) : 0) - (x ? Number(x) : 0)), S = i.value[l.offset] / 2, N = s.value ? Number(s.value[l.offset]) : 0, R = N ? (L - S) * 100 / N : 0;
5384
5413
  r("update", {
5385
5414
  scrollReference: l.scroll,
5386
- positionPercentage: O,
5415
+ positionPercentage: R,
5387
5416
  scrollSize: l.scrollSize
5388
5417
  });
5389
5418
  }
@@ -5421,10 +5450,10 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5421
5450
  }, ["stop", "prevent"])),
5422
5451
  onMousedown: X(f, ["stop", "prevent"]),
5423
5452
  onKeydown: m
5424
- }, null, 44, O4)
5453
+ }, null, 44, R4)
5425
5454
  ], 34));
5426
5455
  }
5427
- }), Rs = /* @__PURE__ */ $({
5456
+ }), Os = /* @__PURE__ */ $({
5428
5457
  __name: "Scrollbar",
5429
5458
  props: {
5430
5459
  disableX: { type: Boolean, default: !1 },
@@ -5454,22 +5483,22 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5454
5483
  for (const Q of r.triggers)
5455
5484
  c.value < Q.px && m.value.scrollTop >= Q.px ? Q.callback(Q, "down") : c.value > Q.px && m.value.scrollTop <= Q.px && Q.callback(Q, "up");
5456
5485
  c.value = m.value.scrollTop;
5457
- }, x = () => ({
5486
+ }, w = () => ({
5458
5487
  heightPercentage: m.value.clientHeight * 100 / m.value.scrollHeight,
5459
5488
  widthPercentage: m.value.clientWidth * 100 / m.value.scrollWidth
5460
- }), w = async () => {
5489
+ }), x = async () => {
5461
5490
  if (!m.value) return;
5462
5491
  await fn();
5463
- const { heightPercentage: E, widthPercentage: P } = x();
5492
+ const { heightPercentage: E, widthPercentage: P } = w();
5464
5493
  !E && !P || (r.disableX || (h.width === 100 && P < 100 ? s("scrollXActive", !0) : P === 100 && h.width < 100 && s("scrollXActive", !1), P === 100 ? f.marginBottom = "0px" : o.value && (f.marginBottom = `-${o.value}px`), h.width = P, d.value = P < 100 ? `${P}%` : ""), r.disableY || (h.height === 100 && E < 100 ? s("scrollYActive", !0) : E === 100 && h.height < 100 && s("scrollYActive", !1), E === 100 ? f.marginRight = "0px" : o.value && (f.marginRight = `-${o.value}px`), h.height = E, u.value = E < 100 ? `${E}%` : ""), b());
5465
5494
  };
5466
5495
  Ve(async () => {
5467
- await fn(w), h.height === 100 && s("intersect", { edge: "top", hit: !0 }), r.windowResize && window.addEventListener("resize", w), r.noresize || (i = new MutationObserver(w), i.observe(g.value, {
5496
+ await fn(x), h.height === 100 && s("intersect", { edge: "top", hit: !0 }), r.windowResize && window.addEventListener("resize", x), r.noresize || (i = new MutationObserver(x), i.observe(g.value, {
5468
5497
  childList: !0,
5469
5498
  subtree: !0
5470
5499
  }));
5471
5500
  }), Kt(() => {
5472
- !r.noresize && i.disconnect(), r.windowResize && window.removeEventListener("resize", w);
5501
+ !r.noresize && i.disconnect(), r.windowResize && window.removeEventListener("resize", x);
5473
5502
  });
5474
5503
  const L = (E) => {
5475
5504
  m.value[E.scrollReference] = E.positionPercentage * m.value[E.scrollSize] / 100;
@@ -5482,7 +5511,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5482
5511
  E === "x" ? m.value.scrollLeft = m.value.scrollWidth * P / 100 : m.value.scrollTop = m.value.scrollHeight * P / 100, b();
5483
5512
  }, scrollToPercentage: (E, P) => {
5484
5513
  E === "x" ? m.value.scrollTo({ left: m.value.scrollWidth * P / 100, behavior: "smooth" }) : m.value.scrollTo({ top: m.value.scrollHeight * P / 100, behavior: "smooth" }), b();
5485
- }, update: w }), (E, P) => (y(), v("main", {
5514
+ }, update: x }), (E, P) => (y(), v("main", {
5486
5515
  class: z(["scrollbar scroll-hidden", [t.viewHeightClass, { show: t.show }]])
5487
5516
  }, [
5488
5517
  C("div", {
@@ -5498,7 +5527,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5498
5527
  ref: g,
5499
5528
  class: z(["scrollbar__view relative", [t.viewClass]])
5500
5529
  }, {
5501
- default: R(() => [
5530
+ default: O(() => [
5502
5531
  F(E.$slots, "default")
5503
5532
  ]),
5504
5533
  _: 3
@@ -5521,7 +5550,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5521
5550
  }, null, 8, ["move", "size"]))
5522
5551
  ], 2));
5523
5552
  }
5524
- }), UC = /* @__PURE__ */ $({
5553
+ }), KC = /* @__PURE__ */ $({
5525
5554
  __name: "ScrollBottomLoader",
5526
5555
  emits: ["intersect"],
5527
5556
  setup(t, { emit: e }) {
@@ -5542,7 +5571,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5542
5571
  }))
5543
5572
  ], 512));
5544
5573
  }
5545
- }), KC = ["top", "bottom", "left", "right"], qC = ["up", "down", "left", "right"], R4 = {
5574
+ }), qC = ["top", "bottom", "left", "right"], YC = ["up", "down", "left", "right"], O4 = {
5546
5575
  key: 1,
5547
5576
  class: "text-xs"
5548
5577
  }, D4 = /* @__PURE__ */ $({
@@ -5565,10 +5594,10 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5565
5594
  key: 0,
5566
5595
  name: t.segment.icon
5567
5596
  }, null, 8, ["name"])) : T("", !0),
5568
- t.segment.label ? (y(), v("p", R4, ce(t.segment.label), 1)) : T("", !0)
5597
+ t.segment.label ? (y(), v("p", O4, ce(t.segment.label), 1)) : T("", !0)
5569
5598
  ], 2));
5570
5599
  }
5571
- }), YC = /* @__PURE__ */ $({
5600
+ }), JC = /* @__PURE__ */ $({
5572
5601
  __name: "SegmentedControls",
5573
5602
  props: {
5574
5603
  segments: {},
@@ -5578,7 +5607,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5578
5607
  setup(t, { emit: e }) {
5579
5608
  const n = e, r = (s) => s.label === t.selectedSegment.label;
5580
5609
  return (s, i) => (y(), H(k(ye), { class: "gap-0.5 p-1 rounded-lg bg-secondary" }, {
5581
- default: R(() => [
5610
+ default: O(() => [
5582
5611
  (y(!0), v(I, null, yt(t.segments, (o) => (y(), H(D4, {
5583
5612
  key: o.label,
5584
5613
  segment: o,
@@ -5589,7 +5618,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5589
5618
  _: 1
5590
5619
  }));
5591
5620
  }
5592
- }), JC = /* @__PURE__ */ $({
5621
+ }), GC = /* @__PURE__ */ $({
5593
5622
  __name: "OptionGroup",
5594
5623
  props: {
5595
5624
  label: {},
@@ -5607,7 +5636,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5607
5636
  F(e.$slots, "default")
5608
5637
  ], 2));
5609
5638
  }
5610
- }), N4 = { class: "list-none flex items-center w-full overflow-hidden bg-primary" }, $4 = { class: "flex-1 w-full overflow-hidden flex items-center gap-2" }, GC = /* @__PURE__ */ $({
5639
+ }), N4 = { class: "list-none flex items-center w-full overflow-hidden bg-primary" }, $4 = { class: "flex-1 w-full overflow-hidden flex items-center gap-2" }, XC = /* @__PURE__ */ $({
5611
5640
  __name: "SelectListOption",
5612
5641
  props: {
5613
5642
  hoveredOption: {},
@@ -5632,7 +5661,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5632
5661
  onMouseover: l[1] || (l[1] = (a) => n("hover", t.option)),
5633
5662
  onFocus: l[2] || (l[2] = (a) => n("focus", t.option))
5634
5663
  }, {
5635
- default: R(() => [
5664
+ default: O(() => [
5636
5665
  C("main", $4, [
5637
5666
  t.variant === "checkbox" ? (y(), H(k(Tc), {
5638
5667
  key: 0,
@@ -5647,7 +5676,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5647
5676
  "text-action": t.selected && t.variant === "single"
5648
5677
  }])
5649
5678
  }, null, 8, ["name", "class"])) : T("", !0),
5650
- V(k(Of), {
5679
+ V(k(Rf), {
5651
5680
  "background-color": "yellow",
5652
5681
  value: t.option.label,
5653
5682
  highlight: t.search,
@@ -5706,7 +5735,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5706
5735
  status: t.message,
5707
5736
  variant: "error"
5708
5737
  }, {
5709
- default: R(() => [...n[0] || (n[0] = [
5738
+ default: O(() => [...n[0] || (n[0] = [
5710
5739
  C("svg", {
5711
5740
  width: "37",
5712
5741
  height: "50",
@@ -5761,7 +5790,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5761
5790
  status: "Type to search",
5762
5791
  variant: "idle"
5763
5792
  }, {
5764
- default: R(() => [...n[0] || (n[0] = [
5793
+ default: O(() => [...n[0] || (n[0] = [
5765
5794
  C("svg", {
5766
5795
  width: "44",
5767
5796
  height: "36",
@@ -5787,7 +5816,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5787
5816
  status: "Loading",
5788
5817
  variant: "loading"
5789
5818
  }, {
5790
- default: R(() => [
5819
+ default: O(() => [
5791
5820
  V(k(Nr))
5792
5821
  ]),
5793
5822
  _: 1
@@ -5800,7 +5829,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5800
5829
  status: "No matches",
5801
5830
  variant: "no match"
5802
5831
  }, {
5803
- default: R(() => [...n[0] || (n[0] = [
5832
+ default: O(() => [...n[0] || (n[0] = [
5804
5833
  C("svg", {
5805
5834
  width: "26",
5806
5835
  height: "44",
@@ -5863,7 +5892,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5863
5892
  }, J4 = { class: "flex-none flex items-center justify-between gap-1 px-4 py-1" }, G4 = {
5864
5893
  key: 0,
5865
5894
  class: "px-4 h-8 flex items-center text-ui-label-14-regular text-disabled-font"
5866
- }, X4 = { class: "flex-0 px-6 py-4" }, XC = /* @__PURE__ */ $({
5895
+ }, X4 = { class: "flex-0 px-6 py-4" }, QC = /* @__PURE__ */ $({
5867
5896
  __name: "SelectList",
5868
5897
  props: {
5869
5898
  identifier: { default: "label" },
@@ -5883,18 +5912,18 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5883
5912
  },
5884
5913
  emits: ["escape", "selectQuery", "select"],
5885
5914
  setup(t, { expose: e, emit: n }) {
5886
- const r = t, s = n, { nextFrame: i } = yl(), o = M(null), l = M([]), a = M(""), c = M(), u = M(), d = M(), f = M(), h = M(), p = M(r.filters ? r.filters[0] : null), m = M(!1), g = M(!1), b = M(""), x = (U) => {
5915
+ const r = t, s = n, { nextFrame: i } = yl(), o = M(null), l = M([]), a = M(""), c = M(), u = M(), d = M(), f = M(), h = M(), p = M(r.filters ? r.filters[0] : null), m = M(!1), g = M(!1), b = M(""), w = (U) => {
5887
5916
  if (!Array.isArray(U)) throw new Error("Item passed must be an Array");
5888
5917
  return U.length === 0 ? !1 : "options" in U[0];
5889
- }, w = Y(() => x(r.options)), L = Y(() => w.value ? r.options.flatMap((U) => U.options) : r.options), S = Y(() => r.loading ? "loading" : r.errorMessage ? "error" : a.value.length && !l.value.length ? "no match" : l.value.length ? "match" : "idle"), N = Y(() => r.selected && "length" in r.selected), O = Y(() => r.selected ? N.value ? r.selected.length : 1 : 0), Z = Y(() => r.selected ? p.value ? r.selected.length >= L.value.filter(p.value.execute).length : N.value ? r.selected.length === L.value.length : !1 : !1), E = Y(() => r.selected ? N.value ? !r.selected.length : !r.selected : !0);
5890
- Oe(() => r.selected, (U) => {
5918
+ }, x = Y(() => w(r.options)), L = Y(() => x.value ? r.options.flatMap((U) => U.options) : r.options), S = Y(() => r.loading ? "loading" : r.errorMessage ? "error" : a.value.length && !l.value.length ? "no match" : l.value.length ? "match" : "idle"), N = Y(() => r.selected && "length" in r.selected), R = Y(() => r.selected ? N.value ? r.selected.length : 1 : 0), Z = Y(() => r.selected ? p.value ? r.selected.length >= L.value.filter(p.value.execute).length : N.value ? r.selected.length === L.value.length : !1 : !1), E = Y(() => r.selected ? N.value ? !r.selected.length : !r.selected : !0);
5919
+ Re(() => r.selected, (U) => {
5891
5920
  U && m.value && i(() => {
5892
- if (d.value.update(), N.value && O.value) {
5921
+ if (d.value.update(), N.value && R.value) {
5893
5922
  const ue = f.value[f.value.length - 1].$el, Ne = h.value.$el.querySelector(".scrollbar__wrap");
5894
5923
  Ne && (Ec(Ne, ue), h.value.handleScroll());
5895
5924
  }
5896
5925
  });
5897
- }), Oe(() => r.options, (U) => {
5926
+ }), Re(() => r.options, (U) => {
5898
5927
  xe(U), o.value = null;
5899
5928
  }), lr(() => xe(r.options)), Ve(() => {
5900
5929
  !N.value && r.selectAll && console.warn("[SelectList] selectAll prop not allowed when SelectList is not isMultiselect. You need to pass an Array of selected options (or empty) if you want it to be isMultiselect."), i(() => {
@@ -5915,7 +5944,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5915
5944
  a.value = U, o.value = null, r.searchFunction && await r.searchFunction(U);
5916
5945
  }, be = r.searchDebounce ? Eo(G, r.searchDebounce) : G, xe = (U) => {
5917
5946
  var ue;
5918
- if (w.value) {
5947
+ if (x.value) {
5919
5948
  const Ne = U;
5920
5949
  l.value = Ne.map((vn) => {
5921
5950
  var xa;
@@ -5932,7 +5961,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5932
5961
  p.value = U, xe(r.options);
5933
5962
  }, q = () => {
5934
5963
  if (!N.value) throw new Error('[SelectList@onToggleAll] method should not be called when "isMultiselect=false"');
5935
- O.value === 0 || O.value && !Z.value ? s("select", p.value ? L.value.filter(p.value.execute) : L.value) : s("select", []);
5964
+ R.value === 0 || R.value && !Z.value ? s("select", p.value ? L.value.filter(p.value.execute) : L.value) : s("select", []);
5936
5965
  }, le = (U) => o.value = L.value.find((ue) => ue[r.identifier] === U[r.identifier]) || null, Ye = Y(() => {
5937
5966
  const U = Array.isArray(l.value) && l.value.length > 0 && "options" in l.value[0] ? l.value.flatMap((ue) => ue.options) : l.value;
5938
5967
  return U.length > 0 && U.every((ue) => !!ue.disabled);
@@ -5951,7 +5980,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5951
5980
  m.value = !m.value, h.value.update();
5952
5981
  }, Ee = Y(() => m.value && g.value ? b.value : "border-transparent"), Yt = (U) => {
5953
5982
  U.hit ? U.edge === "bottom" && U.hit ? b.value = "border-b-transparent border-t-outline-subtle shadow-scroll-top" : U.edge === "top" && U.hit && (b.value = "border-t-transparent border-b-outline-subtle shadow-scroll-bottom") : b.value = "border-y-outline-subtle shadow-scroll-y";
5954
- }, Ot = (U) => {
5983
+ }, Rt = (U) => {
5955
5984
  g.value = U;
5956
5985
  };
5957
5986
  return e({
@@ -5999,7 +6028,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
5999
6028
  onClick: q
6000
6029
  }, [
6001
6030
  V(k(Tc), {
6002
- indeterminate: !!(O.value && !Z.value),
6031
+ indeterminate: !!(R.value && !Z.value),
6003
6032
  checked: Z.value,
6004
6033
  onClick: q
6005
6034
  }, null, 8, ["indeterminate", "checked"]),
@@ -6010,21 +6039,21 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6010
6039
  S.value === "error" ? (y(), H(k(B4), {
6011
6040
  key: 0,
6012
6041
  message: t.errorMessage
6013
- }, null, 8, ["message"])) : S.value === "loading" ? (y(), H(k(F4), { key: 1 })) : S.value === "no match" ? (y(), H(k(W4), { key: 2 })) : S.value === "idle" ? (y(), H(k(Z4), { key: 3 })) : S.value === "match" ? (y(), H(k(Rs), {
6042
+ }, null, 8, ["message"])) : S.value === "loading" ? (y(), H(k(F4), { key: 1 })) : S.value === "no match" ? (y(), H(k(W4), { key: 2 })) : S.value === "idle" ? (y(), H(k(Z4), { key: 3 })) : S.value === "match" ? (y(), H(k(Os), {
6014
6043
  key: 4,
6015
6044
  ref_key: "scrollbarRef",
6016
6045
  ref: d,
6017
6046
  class: "flex-1",
6018
6047
  show: ""
6019
6048
  }, {
6020
- default: R(() => [
6049
+ default: O(() => [
6021
6050
  C("ul", {
6022
6051
  ref_key: "optionsRef",
6023
6052
  ref: u,
6024
6053
  class: z(["px-1", {
6025
- "py-2": t.small && w.value || !t.small && !w.value,
6026
- "py-1": t.small && !w.value,
6027
- "py-4": !t.small && w.value
6054
+ "py-2": t.small && x.value || !t.small && !x.value,
6055
+ "py-1": t.small && !x.value,
6056
+ "py-4": !t.small && x.value
6028
6057
  }])
6029
6058
  }, [
6030
6059
  F(U.$slots, "options", {
@@ -6047,22 +6076,22 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6047
6076
  size: "tiny",
6048
6077
  variant: "text",
6049
6078
  class: "-ml-4",
6050
- label: `${m.value ? "Hide" : "Show"} selected items (${O.value})`,
6079
+ label: `${m.value ? "Hide" : "Show"} selected items (${R.value})`,
6051
6080
  "trailing-icon": m.value ? "chevron-down" : "chevron-up",
6052
6081
  onClick: oe
6053
6082
  }, null, 8, ["label", "trailing-icon"])
6054
6083
  ]),
6055
- V(k(Rs), {
6084
+ V(k(Os), {
6056
6085
  ref_key: "selectionScrollbarRef",
6057
6086
  ref: h,
6058
6087
  show: "",
6059
6088
  tag: "ul",
6060
6089
  class: z(["border-y-1", Ee.value]),
6061
6090
  "view-height-class": m.value ? "flex-1 max-h-72" : "flex-none h-0",
6062
- onScrollYActive: Ot,
6091
+ onScrollYActive: Rt,
6063
6092
  onIntersect: Yt
6064
6093
  }, {
6065
- default: R(() => [
6094
+ default: O(() => [
6066
6095
  m.value ? (y(), v(I, { key: 0 }, [
6067
6096
  E.value ? (y(), v("span", G4, "Nothing selected")) : T("", !0),
6068
6097
  ue[2] || (ue[2] = C("section", { class: "w-full px-4 flex flex-wrap items-center gap-2" }, null, -1))
@@ -6077,7 +6106,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6077
6106
  ])) : T("", !0)
6078
6107
  ], 4));
6079
6108
  }
6080
- }), QC = ["error", "idle", "loading", "match", "no match"], _C = ["checkbox", "deletable", "single"], Ll = /* @__PURE__ */ $({
6109
+ }), _C = ["error", "idle", "loading", "match", "no match"], ev = ["checkbox", "deletable", "single"], Ll = /* @__PURE__ */ $({
6081
6110
  __name: "WindowFrame",
6082
6111
  setup(t, { expose: e }) {
6083
6112
  var r;
@@ -6096,7 +6125,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6096
6125
  }), Q4 = {
6097
6126
  key: 0,
6098
6127
  class: "px-6 flex items-center justify-between w-full h-12"
6099
- }, _4 = { class: "px-6" }, e3 = { class: "px-6" }, ev = /* @__PURE__ */ $({
6128
+ }, _4 = { class: "px-6" }, e3 = { class: "px-6" }, tv = /* @__PURE__ */ $({
6100
6129
  __name: "SideOver",
6101
6130
  props: {
6102
6131
  closeable: { type: Boolean, default: !0 },
@@ -6123,7 +6152,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6123
6152
  onClick: a,
6124
6153
  onClose: d[0] || (d[0] = (f) => r("close"))
6125
6154
  }, {
6126
- default: R(() => [
6155
+ default: O(() => [
6127
6156
  V(hl, {
6128
6157
  "enter-active-class": "transform transition ease-in-out duration-500",
6129
6158
  "enter-from-class": t.placement === "right" ? "translate-x-full" : "-translate-x-full",
@@ -6133,7 +6162,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6133
6162
  "leave-to-class": t.placement === "right" ? "translate-x-full" : "-translate-x-full",
6134
6163
  onAfterEnter: c
6135
6164
  }, {
6136
- default: R(() => [
6165
+ default: O(() => [
6137
6166
  Xr(V(Ll, {
6138
6167
  ref_key: "panelRef",
6139
6168
  ref: o,
@@ -6144,14 +6173,14 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6144
6173
  }]]),
6145
6174
  style: { "pointer-events": "auto" }
6146
6175
  }, {
6147
- default: R(() => [
6176
+ default: O(() => [
6148
6177
  u.$slots.default ? F(u.$slots, "default", { key: 0 }) : (y(), H(k(ka), { key: 1 }, kc({
6149
- main: R(() => [
6178
+ main: O(() => [
6150
6179
  C("main", _4, [
6151
6180
  F(u.$slots, "main")
6152
6181
  ])
6153
6182
  ]),
6154
- footer: R(() => [
6183
+ footer: O(() => [
6155
6184
  C("footer", e3, [
6156
6185
  F(u.$slots, "footer")
6157
6186
  ])
@@ -6160,7 +6189,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6160
6189
  }, [
6161
6190
  t.title || u.$slots.header ? {
6162
6191
  name: "header",
6163
- fn: R(() => [
6192
+ fn: O(() => [
6164
6193
  t.title ? (y(), v("header", Q4, [
6165
6194
  C("h4", null, ce(t.title), 1),
6166
6195
  t.closeable ? (y(), H(k(se), {
@@ -6188,12 +6217,12 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6188
6217
  }, 8, ["show", "type"])
6189
6218
  ], 8, ["to"]));
6190
6219
  }
6191
- }), tv = /* @__PURE__ */ $({
6220
+ }), nv = /* @__PURE__ */ $({
6192
6221
  __name: "StatusSelect",
6193
6222
  setup(t) {
6194
6223
  return (e, n) => " TODO ";
6195
6224
  }
6196
- }), nv = /* @__PURE__ */ $({
6225
+ }), rv = /* @__PURE__ */ $({
6197
6226
  __name: "Switch",
6198
6227
  props: {
6199
6228
  value: { type: Boolean, default: !1 },
@@ -6223,7 +6252,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6223
6252
  pe(X(r, ["prevent"]), ["enter"])
6224
6253
  ]
6225
6254
  }, {
6226
- default: R(() => [
6255
+ default: O(() => [
6227
6256
  C("span", {
6228
6257
  "aria-hidden": "true",
6229
6258
  class: z([[
@@ -6239,7 +6268,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6239
6268
  key: 0,
6240
6269
  class: "absolute",
6241
6270
  style: { top: "0em", right: "-0.6em" }
6242
- }, rv = /* @__PURE__ */ $({
6271
+ }, sv = /* @__PURE__ */ $({
6243
6272
  __name: "Tab",
6244
6273
  props: {
6245
6274
  icon: {},
@@ -6288,7 +6317,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6288
6317
  ])
6289
6318
  ], 10, t3));
6290
6319
  }
6291
- }), s3 = { class: "truncate" }, sv = /* @__PURE__ */ $({
6320
+ }), s3 = { class: "truncate" }, iv = /* @__PURE__ */ $({
6292
6321
  __name: "Tag",
6293
6322
  props: {
6294
6323
  label: {},
@@ -6305,9 +6334,9 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6305
6334
  "pl-1 pr-0.5": t.deletable
6306
6335
  }])
6307
6336
  }, {
6308
- default: R(() => [
6337
+ default: O(() => [
6309
6338
  V(k(ye), { class: "gap-1" }, {
6310
- default: R(() => [
6339
+ default: O(() => [
6311
6340
  t.icon ? (y(), H(k(ve), {
6312
6341
  key: 0,
6313
6342
  name: t.icon
@@ -6329,7 +6358,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6329
6358
  _: 1
6330
6359
  }, 8, ["class"]));
6331
6360
  }
6332
- }), Fa = (t) => t != null, Oi = /* @__PURE__ */ $({
6361
+ }), Fa = (t) => t != null, Ri = /* @__PURE__ */ $({
6333
6362
  __name: "Tooltip",
6334
6363
  props: {
6335
6364
  bgColorClass: { default: "bg-black" },
@@ -6357,7 +6386,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6357
6386
  "trigger-class": n.triggerFullWidth ? "w-full flex overflow-hidden" : "inline-flex overflow-hidden",
6358
6387
  placement: n.placement
6359
6388
  }, {
6360
- content: R(() => [
6389
+ content: O(() => [
6361
6390
  n.text ? (y(), v("div", {
6362
6391
  key: 0,
6363
6392
  class: z(["z-50 min-w-0 px-2 py-1 rounded-md text-sm shadow-sm-md", [n.bgColorClass, n.textColorClass]])
@@ -6366,7 +6395,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6366
6395
  F(s.$slots, "content")
6367
6396
  ], 2)) : T("", !0)
6368
6397
  ]),
6369
- default: R(() => [
6398
+ default: O(() => [
6370
6399
  F(s.$slots, "default")
6371
6400
  ]),
6372
6401
  _: 3
@@ -6380,10 +6409,10 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6380
6409
  emits: ["delete"],
6381
6410
  setup(t, { emit: e }) {
6382
6411
  const n = e, r = () => n("delete", t.entry.id);
6383
- return (s, i) => (y(), H(k(Oi), {
6412
+ return (s, i) => (y(), H(k(Ri), {
6384
6413
  text: t.entry.error
6385
6414
  }, {
6386
- default: R(() => [
6415
+ default: O(() => [
6387
6416
  V(k(ye), {
6388
6417
  id: t.entry.id,
6389
6418
  tabindex: "1",
@@ -6393,7 +6422,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6393
6422
  }]),
6394
6423
  onKeyup: pe(r, ["delete"])
6395
6424
  }, {
6396
- default: R(() => [
6425
+ default: O(() => [
6397
6426
  C("div", i3, ce(t.entry.value), 1),
6398
6427
  C("button", {
6399
6428
  class: "group cursor-pointer w-4 h-4 rounded hover:bg-secondary active:bg-tertiary",
@@ -6411,7 +6440,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6411
6440
  _: 1
6412
6441
  }, 8, ["text"]));
6413
6442
  }
6414
- }), l3 = ["value", "placeholder"], iv = /* @__PURE__ */ $({
6443
+ }), l3 = ["value", "placeholder"], ov = /* @__PURE__ */ $({
6415
6444
  __name: "TagInput",
6416
6445
  props: {
6417
6446
  placeholder: { default: "Enter value, comma separated" },
@@ -6424,7 +6453,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6424
6453
  }, a = (f) => {
6425
6454
  f.target && (i.value = f.target.value, (f.data === "," || i.value.includes(",")) && (o.value = [...o.value, ...c(i.value)], i.value = "", r("update:entries", o.value)));
6426
6455
  }, c = (f) => f.trim().split(",").filter((h) => h.length).map((h, p) => {
6427
- const m = h.trim(), g = [...t.validators].reduce((b, x, w, L) => (x.validate(m) || (b = x.errorMessage(m), L.splice(1)), b), null);
6456
+ const m = h.trim(), g = [...t.validators].reduce((b, w, x, L) => (w.validate(m) || (b = w.errorMessage(m), L.splice(1)), b), null);
6428
6457
  return {
6429
6458
  id: p + m + Date.now(),
6430
6459
  value: m,
@@ -6439,7 +6468,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6439
6468
  o.value = o.value.filter((p) => p.id !== f), r("update:entries", o.value), (h = s.value) == null || h.focus();
6440
6469
  };
6441
6470
  return e({ importEntries: l, inputElement: s }), (f, h) => (y(), H(k(ye), { class: "flex-1 flex-wrap gap-1 px-2 py-1" }, {
6442
- default: R(() => [
6471
+ default: O(() => [
6443
6472
  (y(!0), v(I, null, yt(o.value, (p) => (y(), H(k(o3), {
6444
6473
  key: p.id,
6445
6474
  entry: p,
@@ -6461,7 +6490,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6461
6490
  _: 1
6462
6491
  }));
6463
6492
  }
6464
- }), ov = {
6493
+ }), lv = {
6465
6494
  validate: (t) => /^[\w.%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i.test(t),
6466
6495
  errorMessage: () => "Invalid format."
6467
6496
  }, a3 = {
@@ -6480,11 +6509,11 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6480
6509
  emits: ["click"],
6481
6510
  setup(t, { emit: e }) {
6482
6511
  const n = e;
6483
- return (r, s) => (y(), H(k(Oi), {
6512
+ return (r, s) => (y(), H(k(Ri), {
6484
6513
  text: t.tooltip,
6485
6514
  delay: 200
6486
6515
  }, {
6487
- default: R(() => [
6516
+ default: O(() => [
6488
6517
  V(k(ye), {
6489
6518
  tag: "button",
6490
6519
  inline: "",
@@ -6500,7 +6529,7 @@ const u4 = ["onKeydown"], d4 = /* @__PURE__ */ $({
6500
6529
  }]),
6501
6530
  onClick: s[0] || (s[0] = (i) => !t.disabled && n("click"))
6502
6531
  }, {
6503
- default: R(() => [
6532
+ default: O(() => [
6504
6533
  t.icon ? (y(), H(k(ve), {
6505
6534
  key: 0,
6506
6535
  name: t.icon
@@ -6519,7 +6548,7 @@ function d3(t, e) {
6519
6548
  C("div", { class: "w-px h-full bg-tertiary" }, null, -1)
6520
6549
  ])]);
6521
6550
  }
6522
- const lv = /* @__PURE__ */ gn(c3, [["render", d3]]);
6551
+ const av = /* @__PURE__ */ gn(c3, [["render", d3]]);
6523
6552
  function Ze(t) {
6524
6553
  this.content = t;
6525
6554
  }
@@ -7183,7 +7212,7 @@ function Jc(t, e) {
7183
7212
  if (!e.type.compatibleContent(t.type))
7184
7213
  throw new Ns("Cannot join " + e.type.name + " onto " + t.type.name);
7185
7214
  }
7186
- function Oo(t, e, n) {
7215
+ function Ro(t, e, n) {
7187
7216
  let r = t.node(n);
7188
7217
  return Jc(r, e.node(n)), r;
7189
7218
  }
@@ -7202,13 +7231,13 @@ function Hn(t, e) {
7202
7231
  return t.type.checkContent(e), t.copy(e);
7203
7232
  }
7204
7233
  function Gc(t, e, n, r, s) {
7205
- let i = t.depth > s && Oo(t, e, s + 1), o = r.depth > s && Oo(n, r, s + 1), l = [];
7234
+ let i = t.depth > s && Ro(t, e, s + 1), o = r.depth > s && Ro(n, r, s + 1), l = [];
7206
7235
  return wr(null, t, s, l), i && o && e.index(s) == n.index(s) ? (Jc(i, o), Sn(Hn(i, Gc(t, e, n, r, s + 1)), l)) : (i && Sn(Hn(i, $s(t, e, s + 1)), l), wr(e, n, s, l), o && Sn(Hn(o, $s(n, r, s + 1)), l)), wr(r, null, s, l), new A(l);
7207
7236
  }
7208
7237
  function $s(t, e, n) {
7209
7238
  let r = [];
7210
7239
  if (wr(null, t, n, r), t.depth > n) {
7211
- let s = Oo(t, e, n + 1);
7240
+ let s = Ro(t, e, n + 1);
7212
7241
  Sn(Hn(s, $s(t, e, n + 1)), r);
7213
7242
  }
7214
7243
  return wr(e, null, n, r), new A(r);
@@ -7516,7 +7545,7 @@ class Is {
7516
7545
  }
7517
7546
  }
7518
7547
  const g3 = /* @__PURE__ */ Object.create(null);
7519
- let an = class Ro {
7548
+ let an = class Oo {
7520
7549
  /**
7521
7550
  @internal
7522
7551
  */
@@ -7641,14 +7670,14 @@ let an = class Ro {
7641
7670
  the given content (or empty, if no content is given).
7642
7671
  */
7643
7672
  copy(e = null) {
7644
- return e == this.content ? this : new Ro(this.type, this.attrs, e, this.marks);
7673
+ return e == this.content ? this : new Oo(this.type, this.attrs, e, this.marks);
7645
7674
  }
7646
7675
  /**
7647
7676
  Create a copy of this node, with the given set of marks instead
7648
7677
  of the node's own marks.
7649
7678
  */
7650
7679
  mark(e) {
7651
- return e == this.marks ? this : new Ro(this.type, this.attrs, this.content, e);
7680
+ return e == this.marks ? this : new Oo(this.type, this.attrs, this.content, e);
7652
7681
  }
7653
7682
  /**
7654
7683
  Create a copy of this node with only the content between the
@@ -8508,7 +8537,7 @@ class H3 {
8508
8537
  return !this.hasDefault;
8509
8538
  }
8510
8539
  }
8511
- class Ri {
8540
+ class Oi {
8512
8541
  /**
8513
8542
  @internal
8514
8543
  */
@@ -8530,7 +8559,7 @@ class Ri {
8530
8559
  */
8531
8560
  static compile(e, n) {
8532
8561
  let r = /* @__PURE__ */ Object.create(null), s = 0;
8533
- return e.forEach((i, o) => r[i] = new Ri(i, s++, n, o)), r;
8562
+ return e.forEach((i, o) => r[i] = new Oi(i, s++, n, o)), r;
8534
8563
  }
8535
8564
  /**
8536
8565
  When there is a mark of this type in the given set, a new set
@@ -8572,7 +8601,7 @@ class iu {
8572
8601
  let n = this.spec = {};
8573
8602
  for (let s in e)
8574
8603
  n[s] = e[s];
8575
- n.nodes = Ze.from(e.nodes), n.marks = Ze.from(e.marks || {}), this.nodes = Ka.compile(this.spec.nodes, this), this.marks = Ri.compile(this.spec.marks, this);
8604
+ n.nodes = Ze.from(e.nodes), n.marks = Ze.from(e.marks || {}), this.nodes = Ka.compile(this.spec.nodes, this), this.marks = Oi.compile(this.spec.marks, this);
8576
8605
  let r = /* @__PURE__ */ Object.create(null);
8577
8606
  for (let s in this.nodes) {
8578
8607
  if (s in this.marks)
@@ -8701,7 +8730,7 @@ class Ft {
8701
8730
  matchTag(e, n, r) {
8702
8731
  for (let s = r ? this.tags.indexOf(r) + 1 : 0; s < this.tags.length; s++) {
8703
8732
  let i = this.tags[s];
8704
- if (O3(e, i.tag) && (i.namespace === void 0 || e.namespaceURI == i.namespace) && (!i.context || n.matchesContext(i.context))) {
8733
+ if (R3(e, i.tag) && (i.namespace === void 0 || e.namespaceURI == i.namespace) && (!i.context || n.matchesContext(i.context))) {
8705
8734
  if (i.getAttrs) {
8706
8735
  let o = i.getAttrs(e);
8707
8736
  if (o === !1)
@@ -9134,7 +9163,7 @@ function A3(t) {
9134
9163
  r && lu.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null);
9135
9164
  }
9136
9165
  }
9137
- function O3(t, e) {
9166
+ function R3(t, e) {
9138
9167
  return (t.matches || t.msMatchesSelector || t.webkitMatchesSelector || t.mozMatchesSelector).call(t, e);
9139
9168
  }
9140
9169
  function Ga(t) {
@@ -9277,7 +9306,7 @@ function eo(t) {
9277
9306
  return t.document || window.document;
9278
9307
  }
9279
9308
  const _a = /* @__PURE__ */ new WeakMap();
9280
- function R3(t) {
9309
+ function O3(t) {
9281
9310
  let e = _a.get(t);
9282
9311
  return e === void 0 && _a.set(t, e = D3(t)), e;
9283
9312
  }
@@ -9307,7 +9336,7 @@ function Ls(t, e, n, r) {
9307
9336
  let s = e[0], i;
9308
9337
  if (typeof s != "string")
9309
9338
  throw new RangeError("Invalid array passed to renderSpec");
9310
- if (r && (i = R3(r)) && i.indexOf(e) > -1)
9339
+ if (r && (i = O3(r)) && i.indexOf(e) > -1)
9311
9340
  throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
9312
9341
  let o = s.indexOf(" ");
9313
9342
  o > 0 && (n = s.slice(0, o), s = s.slice(o + 1));
@@ -9630,7 +9659,7 @@ class qe {
9630
9659
  return to[e] = n, n.prototype.jsonID = e, n;
9631
9660
  }
9632
9661
  }
9633
- class Re {
9662
+ class Oe {
9634
9663
  /**
9635
9664
  @internal
9636
9665
  */
@@ -9641,13 +9670,13 @@ class Re {
9641
9670
  Create a successful step result.
9642
9671
  */
9643
9672
  static ok(e) {
9644
- return new Re(e, null);
9673
+ return new Oe(e, null);
9645
9674
  }
9646
9675
  /**
9647
9676
  Create a failed step result.
9648
9677
  */
9649
9678
  static fail(e) {
9650
- return new Re(null, e);
9679
+ return new Oe(null, e);
9651
9680
  }
9652
9681
  /**
9653
9682
  Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
@@ -9656,10 +9685,10 @@ class Re {
9656
9685
  */
9657
9686
  static fromReplace(e, n, r, s) {
9658
9687
  try {
9659
- return Re.ok(e.replace(n, r, s));
9688
+ return Oe.ok(e.replace(n, r, s));
9660
9689
  } catch (i) {
9661
9690
  if (i instanceof Ns)
9662
- return Re.fail(i.message);
9691
+ return Oe.fail(i.message);
9663
9692
  throw i;
9664
9693
  }
9665
9694
  }
@@ -9681,7 +9710,7 @@ class sn extends qe {
9681
9710
  }
9682
9711
  apply(e) {
9683
9712
  let n = e.slice(this.from, this.to), r = e.resolve(this.from), s = r.node(r.sharedDepth(this.to)), i = new B(Ml(n.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), s), n.openStart, n.openEnd);
9684
- return Re.fromReplace(e, this.from, this.to, i);
9713
+ return Oe.fromReplace(e, this.from, this.to, i);
9685
9714
  }
9686
9715
  invert() {
9687
9716
  return new gt(this.from, this.to, this.mark);
@@ -9720,7 +9749,7 @@ class gt extends qe {
9720
9749
  }
9721
9750
  apply(e) {
9722
9751
  let n = e.slice(this.from, this.to), r = new B(Ml(n.content, (s) => s.mark(this.mark.removeFromSet(s.marks)), e), n.openStart, n.openEnd);
9723
- return Re.fromReplace(e, this.from, this.to, r);
9752
+ return Oe.fromReplace(e, this.from, this.to, r);
9724
9753
  }
9725
9754
  invert() {
9726
9755
  return new sn(this.from, this.to, this.mark);
@@ -9760,9 +9789,9 @@ class on extends qe {
9760
9789
  apply(e) {
9761
9790
  let n = e.nodeAt(this.pos);
9762
9791
  if (!n)
9763
- return Re.fail("No node at mark step's position");
9792
+ return Oe.fail("No node at mark step's position");
9764
9793
  let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
9765
- return Re.fromReplace(e, this.pos, this.pos + 1, new B(A.from(r), 0, n.isLeaf ? 0 : 1));
9794
+ return Oe.fromReplace(e, this.pos, this.pos + 1, new B(A.from(r), 0, n.isLeaf ? 0 : 1));
9766
9795
  }
9767
9796
  invert(e) {
9768
9797
  let n = e.nodeAt(this.pos);
@@ -9804,9 +9833,9 @@ class Nn extends qe {
9804
9833
  apply(e) {
9805
9834
  let n = e.nodeAt(this.pos);
9806
9835
  if (!n)
9807
- return Re.fail("No node at mark step's position");
9836
+ return Oe.fail("No node at mark step's position");
9808
9837
  let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
9809
- return Re.fromReplace(e, this.pos, this.pos + 1, new B(A.from(r), 0, n.isLeaf ? 0 : 1));
9838
+ return Oe.fromReplace(e, this.pos, this.pos + 1, new B(A.from(r), 0, n.isLeaf ? 0 : 1));
9810
9839
  }
9811
9840
  invert(e) {
9812
9841
  let n = e.nodeAt(this.pos);
@@ -9843,7 +9872,7 @@ class Ie extends qe {
9843
9872
  super(), this.from = e, this.to = n, this.slice = r, this.structure = s;
9844
9873
  }
9845
9874
  apply(e) {
9846
- return this.structure && $o(e, this.from, this.to) ? Re.fail("Structure replace would overwrite content") : Re.fromReplace(e, this.from, this.to, this.slice);
9875
+ return this.structure && $o(e, this.from, this.to) ? Oe.fail("Structure replace would overwrite content") : Oe.fromReplace(e, this.from, this.to, this.slice);
9847
9876
  }
9848
9877
  getMap() {
9849
9878
  return new it([this.from, this.to - this.from, this.slice.size]);
@@ -9893,12 +9922,12 @@ class ze extends qe {
9893
9922
  }
9894
9923
  apply(e) {
9895
9924
  if (this.structure && ($o(e, this.from, this.gapFrom) || $o(e, this.gapTo, this.to)))
9896
- return Re.fail("Structure gap-replace would overwrite content");
9925
+ return Oe.fail("Structure gap-replace would overwrite content");
9897
9926
  let n = e.slice(this.gapFrom, this.gapTo);
9898
9927
  if (n.openStart || n.openEnd)
9899
- return Re.fail("Gap is not a flat range");
9928
+ return Oe.fail("Gap is not a flat range");
9900
9929
  let r = this.slice.insertAt(this.insert, n.content);
9901
- return r ? Re.fromReplace(e, this.from, this.to, r) : Re.fail("Content does not fit in gap");
9930
+ return r ? Oe.fromReplace(e, this.from, this.to, r) : Oe.fail("Content does not fit in gap");
9902
9931
  }
9903
9932
  getMap() {
9904
9933
  return new it([
@@ -9974,7 +10003,7 @@ function P3(t, e, n, r) {
9974
10003
  return;
9975
10004
  i++;
9976
10005
  let a = null;
9977
- if (r instanceof Ri) {
10006
+ if (r instanceof Oi) {
9978
10007
  let c = o.marks, u;
9979
10008
  for (; u = r.isInSet(c); )
9980
10009
  (a || (a = [])).push(u), c = u.removeFromSet(c);
@@ -10472,8 +10501,8 @@ function e9(t, e, n, r) {
10472
10501
  for (let m = 0; m < o.length; m++) {
10473
10502
  let g = o[(m + a) % o.length], b = !0;
10474
10503
  g < 0 && (b = !1, g = -g);
10475
- let x = s.node(g - 1), w = s.index(g - 1);
10476
- if (x.canReplaceWith(w, w, p.type, p.marks))
10504
+ let w = s.node(g - 1), x = s.index(g - 1);
10505
+ if (w.canReplaceWith(x, x, p.type, p.marks))
10477
10506
  return t.replace(s.before(g), b ? i.after(g) : n, new B(vu(r.content, 0, r.openStart, h), h, r.openEnd));
10478
10507
  }
10479
10508
  }
@@ -10535,13 +10564,13 @@ class Gn extends qe {
10535
10564
  apply(e) {
10536
10565
  let n = e.nodeAt(this.pos);
10537
10566
  if (!n)
10538
- return Re.fail("No node at attribute step's position");
10567
+ return Oe.fail("No node at attribute step's position");
10539
10568
  let r = /* @__PURE__ */ Object.create(null);
10540
10569
  for (let i in n.attrs)
10541
10570
  r[i] = n.attrs[i];
10542
10571
  r[this.attr] = this.value;
10543
10572
  let s = n.type.create(r, null, n.marks);
10544
- return Re.fromReplace(e, this.pos, this.pos + 1, new B(A.from(s), 0, n.isLeaf ? 0 : 1));
10573
+ return Oe.fromReplace(e, this.pos, this.pos + 1, new B(A.from(s), 0, n.isLeaf ? 0 : 1));
10545
10574
  }
10546
10575
  getMap() {
10547
10576
  return it.empty;
@@ -10576,7 +10605,7 @@ class Br extends qe {
10576
10605
  n[s] = e.attrs[s];
10577
10606
  n[this.attr] = this.value;
10578
10607
  let r = e.type.create(n, e.content, e.marks);
10579
- return Re.ok(r);
10608
+ return Oe.ok(r);
10580
10609
  }
10581
10610
  getMap() {
10582
10611
  return it.empty;
@@ -11821,7 +11850,7 @@ const c9 = (t, e) => {
11821
11850
  return !n.parent.type.spec.code || !n.sameParent(r) ? !1 : (e && e(t.tr.insertText(`
11822
11851
  `).scrollIntoView()), !0);
11823
11852
  };
11824
- function Ol(t) {
11853
+ function Rl(t) {
11825
11854
  for (let e = 0; e < t.edgeCount; e++) {
11826
11855
  let { type: n } = t.edge(e);
11827
11856
  if (n.isTextblock && !n.hasRequiredAttrs())
@@ -11833,7 +11862,7 @@ const f9 = (t, e) => {
11833
11862
  let { $head: n, $anchor: r } = t.selection;
11834
11863
  if (!n.parent.type.spec.code || !n.sameParent(r))
11835
11864
  return !1;
11836
- let s = n.node(-1), i = n.indexAfter(-1), o = Ol(s.contentMatchAt(i));
11865
+ let s = n.node(-1), i = n.indexAfter(-1), o = Rl(s.contentMatchAt(i));
11837
11866
  if (!o || !s.canReplaceWith(i, i, o))
11838
11867
  return !1;
11839
11868
  if (e) {
@@ -11841,11 +11870,11 @@ const f9 = (t, e) => {
11841
11870
  a.setSelection(ie.near(a.doc.resolve(l), 1)), e(a.scrollIntoView());
11842
11871
  }
11843
11872
  return !0;
11844
- }, Ou = (t, e) => {
11873
+ }, Ru = (t, e) => {
11845
11874
  let n = t.selection, { $from: r, $to: s } = n;
11846
11875
  if (n instanceof lt || r.parent.inlineContent || s.parent.inlineContent)
11847
11876
  return !1;
11848
- let i = Ol(s.parent.contentMatchAt(s.indexAfter()));
11877
+ let i = Rl(s.parent.contentMatchAt(s.indexAfter()));
11849
11878
  if (!i || !i.isTextblock)
11850
11879
  return !1;
11851
11880
  if (e) {
@@ -11853,7 +11882,7 @@ const f9 = (t, e) => {
11853
11882
  l.setSelection(ne.create(l.doc, o + 1)), e(l.scrollIntoView());
11854
11883
  }
11855
11884
  return !0;
11856
- }, Ru = (t, e) => {
11885
+ }, Ou = (t, e) => {
11857
11886
  let { $cursor: n } = t.selection;
11858
11887
  if (!n || n.parent.content.size)
11859
11888
  return !1;
@@ -11875,7 +11904,7 @@ function h9(t) {
11875
11904
  let i = [], o, l, a = !1, c = !1;
11876
11905
  for (let h = r.depth; ; h--)
11877
11906
  if (r.node(h).isBlock) {
11878
- a = r.end(h) == r.pos + (r.depth - h), c = r.start(h) == r.pos - (r.depth - h), l = Ol(r.node(h - 1).contentMatchAt(r.indexAfter(h - 1))), i.unshift(a && l ? { type: l } : null), o = h;
11907
+ a = r.end(h) == r.pos + (r.depth - h), c = r.start(h) == r.pos - (r.depth - h), l = Rl(r.node(h - 1).contentMatchAt(r.indexAfter(h - 1))), i.unshift(a && l ? { type: l } : null), o = h;
11879
11908
  break;
11880
11909
  } else {
11881
11910
  if (h == 1)
@@ -11931,10 +11960,10 @@ function Du(t, e, n, r) {
11931
11960
  if (h.canReplace(h.childCount, h.childCount, m.content)) {
11932
11961
  if (n) {
11933
11962
  let b = A.empty;
11934
- for (let w = p.length - 1; w >= 0; w--)
11935
- b = A.from(p[w].copy(b));
11936
- let x = t.tr.step(new ze(e.pos - p.length, e.pos + i.nodeSize, e.pos + g, e.pos + i.nodeSize - g, new B(b, p.length, 0), 0, !0));
11937
- n(x.scrollIntoView());
11963
+ for (let x = p.length - 1; x >= 0; x--)
11964
+ b = A.from(p[x].copy(b));
11965
+ let w = t.tr.step(new ze(e.pos - p.length, e.pos + i.nodeSize, e.pos + g, e.pos + i.nodeSize - g, new B(b, p.length, 0), 0, !0));
11966
+ n(w.scrollIntoView());
11938
11967
  }
11939
11968
  return !0;
11940
11969
  }
@@ -11989,7 +12018,7 @@ function a1(t, e = null) {
11989
12018
  return !0;
11990
12019
  };
11991
12020
  }
11992
- function Rl(...t) {
12021
+ function Ol(...t) {
11993
12022
  return function(e, n, r) {
11994
12023
  for (let s = 0; s < t.length; s++)
11995
12024
  if (t[s](e, n, r))
@@ -11997,9 +12026,9 @@ function Rl(...t) {
11997
12026
  return !1;
11998
12027
  };
11999
12028
  }
12000
- Rl(Vl, Mu, Hu);
12001
- Rl(Vl, Vu, Eu);
12002
- Rl(Au, Ou, Ru, p9);
12029
+ Ol(Vl, Mu, Hu);
12030
+ Ol(Vl, Vu, Eu);
12031
+ Ol(Au, Ru, Ou, p9);
12003
12032
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
12004
12033
  function b9(t, e = null) {
12005
12034
  return function(n, r) {
@@ -12174,13 +12203,13 @@ function kn(t, e) {
12174
12203
  let n = document.createEvent("Event");
12175
12204
  return n.initEvent("keydown", !0, !0), n.keyCode = t, n.key = n.code = e, n;
12176
12205
  }
12177
- function O9(t) {
12206
+ function R9(t) {
12178
12207
  let e = t.activeElement;
12179
12208
  for (; e && e.shadowRoot; )
12180
12209
  e = e.shadowRoot.activeElement;
12181
12210
  return e;
12182
12211
  }
12183
- function R9(t, e, n) {
12212
+ function O9(t, e, n) {
12184
12213
  if (t.caretPositionFromPoint)
12185
12214
  try {
12186
12215
  let r = t.caretPositionFromPoint(e, n);
@@ -12211,7 +12240,7 @@ function N9(t) {
12211
12240
  bottom: t.documentElement.clientHeight
12212
12241
  };
12213
12242
  }
12214
- function Rt(t, e) {
12243
+ function Ot(t, e) {
12215
12244
  return typeof t == "number" ? t : t[e];
12216
12245
  }
12217
12246
  function $9(t) {
@@ -12231,7 +12260,7 @@ function d1(t, e, n) {
12231
12260
  continue;
12232
12261
  }
12233
12262
  let l = o, a = l == i.body, c = a ? N9(i) : $9(l), u = 0, d = 0;
12234
- if (e.top < c.top + Rt(r, "top") ? d = -(c.top - e.top + Rt(s, "top")) : e.bottom > c.bottom - Rt(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + Rt(s, "top") - c.top : e.bottom - c.bottom + Rt(s, "bottom")), e.left < c.left + Rt(r, "left") ? u = -(c.left - e.left + Rt(s, "left")) : e.right > c.right - Rt(r, "right") && (u = e.right - c.right + Rt(s, "right")), u || d)
12263
+ if (e.top < c.top + Ot(r, "top") ? d = -(c.top - e.top + Ot(s, "top")) : e.bottom > c.bottom - Ot(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + Ot(s, "top") - c.top : e.bottom - c.bottom + Ot(s, "bottom")), e.left < c.left + Ot(r, "left") ? u = -(c.left - e.left + Ot(s, "left")) : e.right > c.right - Ot(r, "right") && (u = e.right - c.right + Ot(s, "right")), u || d)
12235
12264
  if (a)
12236
12265
  i.defaultView.scrollBy(u, d);
12237
12266
  else {
@@ -12376,7 +12405,7 @@ function Fu(t, e, n) {
12376
12405
  return t;
12377
12406
  }
12378
12407
  function j9(t, e) {
12379
- let n = t.dom.ownerDocument, r, s = 0, i = R9(n, e.left, e.top);
12408
+ let n = t.dom.ownerDocument, r, s = 0, i = O9(n, e.left, e.top);
12380
12409
  i && ({ node: r, offset: s } = i);
12381
12410
  let o = (t.root.elementFromPoint ? t.root : n).elementFromPoint(e.left, e.top), l;
12382
12411
  if (!o || !t.dom.contains(o.nodeType != 1 ? o.parentNode : o)) {
@@ -14244,10 +14273,10 @@ function Em(t, e, n, r, s) {
14244
14273
  function Am(t, e, n, r) {
14245
14274
  return zl(t, "handleDoubleClickOn", e, n, r) || t.someProp("handleDoubleClick", (s) => s(t, e, r));
14246
14275
  }
14247
- function Om(t, e, n, r) {
14248
- return zl(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (s) => s(t, e, r)) || Rm(t, n, r);
14276
+ function Rm(t, e, n, r) {
14277
+ return zl(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (s) => s(t, e, r)) || Om(t, n, r);
14249
14278
  }
14250
- function Rm(t, e, n) {
14279
+ function Om(t, e, n) {
14251
14280
  if (n.button != 0)
14252
14281
  return !1;
14253
14282
  let r = t.state.doc;
@@ -14275,7 +14304,7 @@ _e.mousedown = (t, e) => {
14275
14304
  let r = Bl(t), s = Date.now(), i = "singleClick";
14276
14305
  s - t.input.lastClick.time < 500 && Hm(n, t.input.lastClick) && !n[od] && t.input.lastClick.button == n.button && (t.input.lastClick.type == "singleClick" ? i = "doubleClick" : t.input.lastClick.type == "doubleClick" && (i = "tripleClick")), t.input.lastClick = { time: s, x: n.clientX, y: n.clientY, type: i, button: n.button };
14277
14306
  let o = t.posAtCoords(zi(n));
14278
- o && (i == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Dm(t, o, n, !!r)) : (i == "doubleClick" ? Am : Om)(t, o.pos, o.inside, n) ? n.preventDefault() : ln(t, "pointer"));
14307
+ o && (i == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Dm(t, o, n, !!r)) : (i == "doubleClick" ? Am : Rm)(t, o.pos, o.inside, n) ? n.preventDefault() : ln(t, "pointer"));
14279
14308
  };
14280
14309
  class Dm {
14281
14310
  constructor(e, n, r, s) {
@@ -14942,11 +14971,11 @@ function jm(t, e, n, r, s, i, o) {
14942
14971
  n.maps[c].forEach((f, h, p, m) => {
14943
14972
  let g = m - p - (h - f);
14944
14973
  for (let b = 0; b < l.length; b += 3) {
14945
- let x = l[b + 1];
14946
- if (x < 0 || f > x + u - d)
14974
+ let w = l[b + 1];
14975
+ if (w < 0 || f > w + u - d)
14947
14976
  continue;
14948
- let w = l[b] + u - d;
14949
- h >= w ? l[b + 1] = f <= w ? -2 : -1 : f >= u && g && (l[b] += g, l[b + 1] += g);
14977
+ let x = l[b] + u - d;
14978
+ h >= x ? l[b + 1] = f <= x ? -2 : -1 : f >= u && g && (l[b] += g, l[b + 1] += g);
14950
14979
  }
14951
14980
  d += g;
14952
14981
  }), u = n.maps[c].map(u, -1);
@@ -15239,12 +15268,12 @@ class Jm {
15239
15268
  });
15240
15269
  }
15241
15270
  }
15242
- let O1 = /* @__PURE__ */ new WeakMap(), R1 = !1;
15271
+ let R1 = /* @__PURE__ */ new WeakMap(), O1 = !1;
15243
15272
  function Gm(t) {
15244
- if (!O1.has(t) && (O1.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
15245
- if (t.requiresGeckoHackNode = ft, R1)
15273
+ if (!R1.has(t) && (R1.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
15274
+ if (t.requiresGeckoHackNode = ft, O1)
15246
15275
  return;
15247
- console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), R1 = !0;
15276
+ console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), O1 = !0;
15248
15277
  }
15249
15278
  }
15250
15279
  function D1(t, e) {
@@ -15275,12 +15304,12 @@ function _m(t, e, n) {
15275
15304
  let { node: r, fromOffset: s, toOffset: i, from: o, to: l } = t.docView.parseRange(e, n), a = t.domSelectionRange(), c, u = a.anchorNode;
15276
15305
  if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }], Ii(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), Pe && t.input.lastKeyCode === 8)
15277
15306
  for (let g = i; g > s; g--) {
15278
- let b = r.childNodes[g - 1], x = b.pmViewDesc;
15279
- if (b.nodeName == "BR" && !x) {
15307
+ let b = r.childNodes[g - 1], w = b.pmViewDesc;
15308
+ if (b.nodeName == "BR" && !w) {
15280
15309
  i = g;
15281
15310
  break;
15282
15311
  }
15283
- if (!x || x.size)
15312
+ if (!w || w.size)
15284
15313
  break;
15285
15314
  }
15286
15315
  let d = t.state.doc, f = t.someProp("domParser") || Ft.fromSchema(t.state.schema), h = d.resolve(o), p = null, m = f.parse(r, {
@@ -15318,12 +15347,12 @@ const t8 = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
15318
15347
  function n8(t, e, n, r, s) {
15319
15348
  let i = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
15320
15349
  if (t.input.compositionPendingChanges = 0, e < 0) {
15321
- let O = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, Z = Nl(t, O);
15350
+ let R = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, Z = Nl(t, R);
15322
15351
  if (Z && !t.state.selection.eq(Z)) {
15323
15352
  if (Pe && zt && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (P) => P(t, kn(13, "Enter"))))
15324
15353
  return;
15325
15354
  let E = t.state.tr.setSelection(Z);
15326
- O == "pointer" ? E.setMeta("pointer", !0) : O == "key" && E.scrollIntoView(), i && E.setMeta("composition", i), t.dispatch(E);
15355
+ R == "pointer" ? E.setMeta("pointer", !0) : R == "key" && E.scrollIntoView(), i && E.setMeta("composition", i), t.dispatch(E);
15327
15356
  }
15328
15357
  return;
15329
15358
  }
@@ -15332,7 +15361,7 @@ function n8(t, e, n, r, s) {
15332
15361
  let a = t.state.selection, c = _m(t, e, n), u = t.state.doc, d = u.slice(c.from, c.to), f, h;
15333
15362
  t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (f = t.state.selection.to, h = "end") : (f = t.state.selection.from, h = "start"), t.input.lastKeyCode = null;
15334
15363
  let p = i8(d.content, c.doc.content, c.from, f, h);
15335
- if (p && t.input.domChangeCount++, (sr && t.input.lastIOSEnter > Date.now() - 225 || zt) && s.some((O) => O.nodeType == 1 && !t8.test(O.nodeName)) && (!p || p.endA >= p.endB) && t.someProp("handleKeyDown", (O) => O(t, kn(13, "Enter")))) {
15364
+ if (p && t.input.domChangeCount++, (sr && t.input.lastIOSEnter > Date.now() - 225 || zt) && s.some((R) => R.nodeType == 1 && !t8.test(R.nodeName)) && (!p || p.endA >= p.endB) && t.someProp("handleKeyDown", (R) => R(t, kn(13, "Enter")))) {
15336
15365
  t.input.lastIOSEnter = 0;
15337
15366
  return;
15338
15367
  }
@@ -15341,51 +15370,51 @@ function n8(t, e, n, r, s) {
15341
15370
  p = { start: a.from, endA: a.to, endB: a.to };
15342
15371
  else {
15343
15372
  if (c.sel) {
15344
- let O = N1(t, t.state.doc, c.sel);
15345
- if (O && !O.eq(t.state.selection)) {
15346
- let Z = t.state.tr.setSelection(O);
15373
+ let R = N1(t, t.state.doc, c.sel);
15374
+ if (R && !R.eq(t.state.selection)) {
15375
+ let Z = t.state.tr.setSelection(R);
15347
15376
  i && Z.setMeta("composition", i), t.dispatch(Z);
15348
15377
  }
15349
15378
  }
15350
15379
  return;
15351
15380
  }
15352
15381
  t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof ne && (p.start > t.state.selection.from && p.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? p.start = t.state.selection.from : p.endA < t.state.selection.to && p.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (p.endB += t.state.selection.to - p.endA, p.endA = t.state.selection.to)), nt && cn <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
15353
- let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), b = u.resolve(p.start), x = m.sameParent(g) && m.parent.inlineContent && b.end() >= p.endA;
15354
- if ((sr && t.input.lastIOSEnter > Date.now() - 225 && (!x || s.some((O) => O.nodeName == "DIV" || O.nodeName == "P")) || !x && m.pos < c.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && m.pos < g.pos && !/\S/.test(c.doc.textBetween(m.pos, g.pos, "", ""))) && t.someProp("handleKeyDown", (O) => O(t, kn(13, "Enter")))) {
15382
+ let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), b = u.resolve(p.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= p.endA;
15383
+ if ((sr && t.input.lastIOSEnter > Date.now() - 225 && (!w || s.some((R) => R.nodeName == "DIV" || R.nodeName == "P")) || !w && m.pos < c.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && m.pos < g.pos && !/\S/.test(c.doc.textBetween(m.pos, g.pos, "", ""))) && t.someProp("handleKeyDown", (R) => R(t, kn(13, "Enter")))) {
15355
15384
  t.input.lastIOSEnter = 0;
15356
15385
  return;
15357
15386
  }
15358
- if (t.state.selection.anchor > p.start && s8(u, p.start, p.endA, m, g) && t.someProp("handleKeyDown", (O) => O(t, kn(8, "Backspace")))) {
15387
+ if (t.state.selection.anchor > p.start && s8(u, p.start, p.endA, m, g) && t.someProp("handleKeyDown", (R) => R(t, kn(8, "Backspace")))) {
15359
15388
  zt && Pe && t.domObserver.suppressSelectionUpdates();
15360
15389
  return;
15361
15390
  }
15362
- Pe && p.endB == p.start && (t.input.lastChromeDelete = Date.now()), zt && !x && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
15363
- t.someProp("handleKeyDown", function(O) {
15364
- return O(t, kn(13, "Enter"));
15391
+ Pe && p.endB == p.start && (t.input.lastChromeDelete = Date.now()), zt && !w && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
15392
+ t.someProp("handleKeyDown", function(R) {
15393
+ return R(t, kn(13, "Enter"));
15365
15394
  });
15366
15395
  }, 20));
15367
- let w = p.start, L = p.endA, S = (O) => {
15368
- let Z = O || t.state.tr.replace(w, L, c.doc.slice(p.start - c.from, p.endB - c.from));
15396
+ let x = p.start, L = p.endA, S = (R) => {
15397
+ let Z = R || t.state.tr.replace(x, L, c.doc.slice(p.start - c.from, p.endB - c.from));
15369
15398
  if (c.sel) {
15370
15399
  let E = N1(t, Z.doc, c.sel);
15371
- E && !(Pe && t.composing && E.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (E.head == w || E.head == Z.mapping.map(L) - 1) || nt && E.empty && E.head == w) && Z.setSelection(E);
15400
+ E && !(Pe && t.composing && E.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (E.head == x || E.head == Z.mapping.map(L) - 1) || nt && E.empty && E.head == x) && Z.setSelection(E);
15372
15401
  }
15373
15402
  return i && Z.setMeta("composition", i), Z.scrollIntoView();
15374
15403
  }, N;
15375
- if (x)
15404
+ if (w)
15376
15405
  if (m.pos == g.pos) {
15377
15406
  nt && cn <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => jt(t), 20));
15378
- let O = S(t.state.tr.delete(w, L)), Z = u.resolve(p.start).marksAcross(u.resolve(p.endA));
15379
- Z && O.ensureMarks(Z), t.dispatch(O);
15407
+ let R = S(t.state.tr.delete(x, L)), Z = u.resolve(p.start).marksAcross(u.resolve(p.endA));
15408
+ Z && R.ensureMarks(Z), t.dispatch(R);
15380
15409
  } else if (
15381
15410
  // Adding or removing a mark
15382
15411
  p.endA == p.endB && (N = r8(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, p.endA - b.start())))
15383
15412
  ) {
15384
- let O = S(t.state.tr);
15385
- N.type == "add" ? O.addMark(w, L, N.mark) : O.removeMark(w, L, N.mark), t.dispatch(O);
15413
+ let R = S(t.state.tr);
15414
+ N.type == "add" ? R.addMark(x, L, N.mark) : R.removeMark(x, L, N.mark), t.dispatch(R);
15386
15415
  } else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
15387
- let O = m.parent.textBetween(m.parentOffset, g.parentOffset), Z = () => S(t.state.tr.insertText(O, w, L));
15388
- t.someProp("handleTextInput", (E) => E(t, w, L, O, Z)) || t.dispatch(Z());
15416
+ let R = m.parent.textBetween(m.parentOffset, g.parentOffset), Z = () => S(t.state.tr.insertText(R, x, L));
15417
+ t.someProp("handleTextInput", (E) => E(t, x, L, R, Z)) || t.dispatch(Z());
15389
15418
  } else
15390
15419
  t.dispatch(S());
15391
15420
  else
@@ -15787,7 +15816,7 @@ class gd {
15787
15816
  */
15788
15817
  domSelectionRange() {
15789
15818
  let e = this.domSelection();
15790
- return e ? Ke && this.root.nodeType === 11 && O9(this.dom.ownerDocument) == this.dom && Xm(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
15819
+ return e ? Ke && this.root.nodeType === 11 && R9(this.dom.ownerDocument) == this.dom && Xm(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
15791
15820
  }
15792
15821
  /**
15793
15822
  @internal
@@ -16101,8 +16130,8 @@ Wl(pt, {
16101
16130
  exitCode: () => T8,
16102
16131
  extendMarkRange: () => V8,
16103
16132
  first: () => E8,
16104
- focus: () => O8,
16105
- forEach: () => R8,
16133
+ focus: () => R8,
16134
+ forEach: () => O8,
16106
16135
  insertContent: () => D8,
16107
16136
  insertContentAt: () => I8,
16108
16137
  joinBackward: () => B8,
@@ -16131,8 +16160,8 @@ Wl(pt, {
16131
16160
  setMeta: () => V7,
16132
16161
  setNode: () => E7,
16133
16162
  setNodeSelection: () => A7,
16134
- setTextDirection: () => O7,
16135
- setTextSelection: () => R7,
16163
+ setTextDirection: () => R7,
16164
+ setTextSelection: () => O7,
16136
16165
  sinkListItem: () => D7,
16137
16166
  splitBlock: () => N7,
16138
16167
  splitListItem: () => $7,
@@ -16168,7 +16197,7 @@ var y8 = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
16168
16197
  (p || p === 0) && e.lift(h, p);
16169
16198
  });
16170
16199
  }), !0;
16171
- }, b8 = (t) => (e) => t(e), k8 = () => ({ state: t, dispatch: e }) => Ou(t, e), x8 = (t, e) => ({ editor: n, tr: r }) => {
16200
+ }, b8 = (t) => (e) => t(e), k8 = () => ({ state: t, dispatch: e }) => Ru(t, e), x8 = (t, e) => ({ editor: n, tr: r }) => {
16172
16201
  const { state: s } = n, i = s.doc.slice(t.from, t.to);
16173
16202
  r.deleteRange(t.from, t.to);
16174
16203
  const o = r.mapping.map(e);
@@ -16294,7 +16323,7 @@ function Kl() {
16294
16323
  return ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(navigator.platform) || // iPad on iOS 13 detection
16295
16324
  navigator.userAgent.includes("Mac") && "ontouchend" in document;
16296
16325
  }
16297
- var O8 = (t = null, e = {}) => ({ editor: n, view: r, tr: s, dispatch: i }) => {
16326
+ var R8 = (t = null, e = {}) => ({ editor: n, view: r, tr: s, dispatch: i }) => {
16298
16327
  e = {
16299
16328
  scrollIntoView: !0,
16300
16329
  ...e
@@ -16310,7 +16339,7 @@ var O8 = (t = null, e = {}) => ({ editor: n, view: r, tr: s, dispatch: i }) => {
16310
16339
  return o(), !0;
16311
16340
  const l = bd(s.doc, t) || n.state.selection, a = n.state.selection.eq(l);
16312
16341
  return i && (a || s.setSelection(l), a && s.storedMarks && s.setStoredMarks(s.storedMarks), o()), !0;
16313
- }, R8 = (t, e) => (n) => t.every((r, s) => e(r, { ...n, index: s })), D8 = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), kd = (t) => {
16342
+ }, O8 = (t, e) => (n) => t.every((r, s) => e(r, { ...n, index: s })), D8 = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), kd = (t) => {
16314
16343
  const e = t.childNodes;
16315
16344
  for (let n = e.length - 1; n >= 0; n -= 1) {
16316
16345
  const r = e[n];
@@ -16448,8 +16477,8 @@ var $8 = (t) => !("type" in t), I8 = (t, e, n) => ({ tr: r, dispatch: s, editor:
16448
16477
  r.insertText(m, u, d);
16449
16478
  } else {
16450
16479
  m = l;
16451
- const g = r.doc.resolve(u), b = g.node(), x = g.parentOffset === 0, w = b.isText || b.isTextblock, L = b.content.size > 0;
16452
- x && w && L && (u = Math.max(0, u - 1)), r.replaceWith(u, d, m);
16480
+ const g = r.doc.resolve(u), b = g.node(), w = g.parentOffset === 0, x = b.isText || b.isTextblock, L = b.content.size > 0;
16481
+ w && x && L && (u = Math.max(0, u - 1)), r.replaceWith(u, d, m);
16453
16482
  }
16454
16483
  n.updateSelection && N8(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: u, text: m }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: u, text: m });
16455
16484
  }
@@ -16529,7 +16558,7 @@ function mn(t, e, n = {}) {
16529
16558
  var Y8 = (t, e = {}) => ({ state: n, dispatch: r }) => {
16530
16559
  const s = De(t, n.schema);
16531
16560
  return mn(n, s, e) ? d9(n, r) : !1;
16532
- }, J8 = () => ({ state: t, dispatch: e }) => Ru(t, e), G8 = (t) => ({ state: e, dispatch: n }) => {
16561
+ }, J8 = () => ({ state: t, dispatch: e }) => Ou(t, e), G8 = (t) => ({ state: e, dispatch: n }) => {
16533
16562
  const r = De(t, e.schema);
16534
16563
  return w9(r)(e, n);
16535
16564
  }, X8 = () => ({ state: t, dispatch: e }) => Au(t, e);
@@ -16803,11 +16832,11 @@ function Hd(t, e) {
16803
16832
  options: c.options,
16804
16833
  storage: c.storage,
16805
16834
  editor: e
16806
- }, f = t.reduce((b, x) => {
16807
- const w = W(x, "extendNodeSchema", d);
16835
+ }, f = t.reduce((b, w) => {
16836
+ const x = W(w, "extendNodeSchema", d);
16808
16837
  return {
16809
16838
  ...b,
16810
- ...w ? w(c) : {}
16839
+ ...x ? x(c) : {}
16811
16840
  };
16812
16841
  }, {}), h = U1({
16813
16842
  ...f,
@@ -16846,10 +16875,10 @@ function Hd(t, e) {
16846
16875
  storage: c.storage,
16847
16876
  editor: e
16848
16877
  }, f = t.reduce((g, b) => {
16849
- const x = W(b, "extendMarkSchema", d);
16878
+ const w = W(b, "extendMarkSchema", d);
16850
16879
  return {
16851
16880
  ...g,
16852
- ...x ? x(c) : {}
16881
+ ...w ? w(c) : {}
16853
16882
  };
16854
16883
  }, {}), h = U1({
16855
16884
  ...f,
@@ -17050,12 +17079,12 @@ function Yo(t, e, n = {}) {
17050
17079
  t.doc.nodesBetween(h, p, (m, g) => {
17051
17080
  if (!m.isText && !m.marks.length)
17052
17081
  return;
17053
- const b = Math.max(h, g), x = Math.min(p, g + m.nodeSize), w = x - b;
17054
- o += w, l.push(
17082
+ const b = Math.max(h, g), w = Math.min(p, g + m.nodeSize), x = w - b;
17083
+ o += x, l.push(
17055
17084
  ...m.marks.map((L) => ({
17056
17085
  mark: L,
17057
17086
  from: b,
17058
- to: x
17087
+ to: w
17059
17088
  }))
17060
17089
  );
17061
17090
  });
@@ -17126,7 +17155,7 @@ function Ui(t, {
17126
17155
  function L7(t) {
17127
17156
  return t instanceof J;
17128
17157
  }
17129
- var Od = class Rd {
17158
+ var Rd = class Od {
17130
17159
  constructor(e) {
17131
17160
  this.position = e;
17132
17161
  }
@@ -17134,7 +17163,7 @@ var Od = class Rd {
17134
17163
  * Creates a MappablePosition from a JSON object.
17135
17164
  */
17136
17165
  static fromJSON(e) {
17137
- return new Rd(e.position);
17166
+ return new Od(e.position);
17138
17167
  }
17139
17168
  /**
17140
17169
  * Converts the MappablePosition to a JSON object.
@@ -17148,12 +17177,12 @@ var Od = class Rd {
17148
17177
  function M7(t, e) {
17149
17178
  const n = e.mapping.mapResult(t.position);
17150
17179
  return {
17151
- position: new Od(n.pos),
17180
+ position: new Rd(n.pos),
17152
17181
  mapResult: n
17153
17182
  };
17154
17183
  }
17155
17184
  function S7(t) {
17156
- return new Od(t);
17185
+ return new Rd(t);
17157
17186
  }
17158
17187
  function H7(t, e, n) {
17159
17188
  var r;
@@ -17216,7 +17245,7 @@ var T7 = (t, e = {}) => ({ tr: n, state: r, dispatch: s }) => {
17216
17245
  e.setSelection(i);
17217
17246
  }
17218
17247
  return !0;
17219
- }, O7 = (t, e) => ({ tr: n, state: r, dispatch: s }) => {
17248
+ }, R7 = (t, e) => ({ tr: n, state: r, dispatch: s }) => {
17220
17249
  const { selection: i } = r;
17221
17250
  let o, l;
17222
17251
  return typeof e == "number" ? (o = e, l = e) : e && "from" in e && "to" in e ? (o = e.from, l = e.to) : (o = i.from, l = i.to), s && n.doc.nodesBetween(o, l, (a, c) => {
@@ -17225,7 +17254,7 @@ var T7 = (t, e = {}) => ({ tr: n, state: r, dispatch: s }) => {
17225
17254
  dir: t
17226
17255
  });
17227
17256
  }), !0;
17228
- }, R7 = (t) => ({ tr: e, dispatch: n }) => {
17257
+ }, O7 = (t) => ({ tr: e, dispatch: n }) => {
17229
17258
  if (n) {
17230
17259
  const { doc: r } = e, { from: s, to: i } = typeof t == "number" ? { from: t, to: t } : t, o = ne.atStart(r).from, l = ne.atEnd(r).to, a = Ln(s, o, l), c = Ln(i, o, l), u = ne.create(r, a, c);
17231
17260
  e.setSelection(u);
@@ -17282,10 +17311,10 @@ var N7 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
17282
17311
  return !1;
17283
17312
  if (s) {
17284
17313
  let b = A.empty;
17285
- const x = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
17286
- for (let Z = a.depth - x; Z >= a.depth - 3; Z -= 1)
17314
+ const w = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
17315
+ for (let Z = a.depth - w; Z >= a.depth - 3; Z -= 1)
17287
17316
  b = A.from(a.node(Z).copy(b));
17288
- const w = (
17317
+ const x = (
17289
17318
  // eslint-disable-next-line no-nested-ternary
17290
17319
  a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3
17291
17320
  ), L = {
@@ -17293,14 +17322,14 @@ var N7 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
17293
17322
  ...e
17294
17323
  }, S = ((o = l.contentMatch.defaultType) == null ? void 0 : o.createAndFill(L)) || void 0;
17295
17324
  b = b.append(A.from(l.createAndFill(null, S) || void 0));
17296
- const N = a.before(a.depth - (x - 1));
17297
- n.replace(N, a.after(-w), new B(b, 4 - x, 0));
17298
- let O = -1;
17325
+ const N = a.before(a.depth - (w - 1));
17326
+ n.replace(N, a.after(-x), new B(b, 4 - w, 0));
17327
+ let R = -1;
17299
17328
  n.doc.nodesBetween(N, n.doc.content.size, (Z, E) => {
17300
- if (O > -1)
17329
+ if (R > -1)
17301
17330
  return !1;
17302
- Z.isTextblock && Z.content.size === 0 && (O = E + 1);
17303
- }), O > -1 && n.setSelection(ne.near(n.doc.resolve(O))), n.scrollIntoView();
17331
+ Z.isTextblock && Z.content.size === 0 && (R = E + 1);
17332
+ }), R > -1 && n.setSelection(ne.near(n.doc.resolve(R))), n.scrollIntoView();
17304
17333
  }
17305
17334
  return !0;
17306
17335
  }
@@ -17319,10 +17348,10 @@ var N7 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
17319
17348
  if (!Wt(n.doc, a.pos, 2))
17320
17349
  return !1;
17321
17350
  if (s) {
17322
- const { selection: b, storedMarks: x } = r, { splittableMarks: w } = i.extensionManager, L = x || b.$to.parentOffset && b.$from.marks();
17351
+ const { selection: b, storedMarks: w } = r, { splittableMarks: x } = i.extensionManager, L = w || b.$to.parentOffset && b.$from.marks();
17323
17352
  if (n.split(a.pos, 2, g).scrollIntoView(), !L || !s)
17324
17353
  return !0;
17325
- const S = L.filter((N) => w.includes(N.type.name));
17354
+ const S = L.filter((N) => x.includes(N.type.name));
17326
17355
  n.ensureMarks(S);
17327
17356
  }
17328
17357
  return !0;
@@ -17345,19 +17374,19 @@ var N7 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
17345
17374
  const s = t.doc.nodeAt(r);
17346
17375
  return n.node.type === (s == null ? void 0 : s.type) && yn(t.doc, r) && t.join(r), !0;
17347
17376
  }, I7 = (t, e, n, r = {}) => ({ editor: s, tr: i, state: o, dispatch: l, chain: a, commands: c, can: u }) => {
17348
- const { extensions: d, splittableMarks: f } = s.extensionManager, h = De(t, o.schema), p = De(e, o.schema), { selection: m, storedMarks: g } = o, { $from: b, $to: x } = m, w = b.blockRange(x), L = g || m.$to.parentOffset && m.$from.marks();
17349
- if (!w)
17377
+ const { extensions: d, splittableMarks: f } = s.extensionManager, h = De(t, o.schema), p = De(e, o.schema), { selection: m, storedMarks: g } = o, { $from: b, $to: w } = m, x = b.blockRange(w), L = g || m.$to.parentOffset && m.$from.marks();
17378
+ if (!x)
17350
17379
  return !1;
17351
17380
  const S = Wi((N) => Y1(N.type.name, d))(m);
17352
- if (w.depth >= 1 && S && w.depth - S.depth <= 1) {
17381
+ if (x.depth >= 1 && S && x.depth - S.depth <= 1) {
17353
17382
  if (S.node.type === h)
17354
17383
  return c.liftListItem(p);
17355
17384
  if (Y1(S.node.type.name, d) && h.validContent(S.node.content) && l)
17356
17385
  return a().command(() => (i.setNodeMarkup(S.pos, h), !0)).command(() => go(i, h)).command(() => yo(i, h)).run();
17357
17386
  }
17358
17387
  return !n || !L || !l ? a().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => go(i, h)).command(() => yo(i, h)).run() : a().command(() => {
17359
- const N = u().wrapInList(h, r), O = L.filter((Z) => f.includes(Z.type.name));
17360
- return i.ensureMarks(O), N ? !0 : c.clearNodes();
17388
+ const N = u().wrapInList(h, r), R = L.filter((Z) => f.includes(Z.type.name));
17389
+ return i.ensureMarks(R), N ? !0 : c.clearNodes();
17361
17390
  }).wrapInList(h, r).command(() => go(i, h)).command(() => yo(i, h)).run();
17362
17391
  }, P7 = (t, e = {}, n = {}) => ({ state: r, commands: s }) => {
17363
17392
  const { extendEmptyMarkRange: i = !1 } = n, o = qt(t, r.schema);
@@ -17436,14 +17465,14 @@ var N7 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
17436
17465
  b < u && i && i === g.type && (a = !0, p = Math.max(b, u), m = Math.min(b + g.nodeSize, d), f = b, h = g), b >= u && b <= d && (i && i === g.type && (a = !0, s && n.setNodeMarkup(b, void 0, {
17437
17466
  ...g.attrs,
17438
17467
  ...e
17439
- })), o && g.marks.length && g.marks.forEach((x) => {
17440
- if (o === x.type && (a = !0, s)) {
17441
- const w = Math.max(b, u), L = Math.min(b + g.nodeSize, d);
17468
+ })), o && g.marks.length && g.marks.forEach((w) => {
17469
+ if (o === w.type && (a = !0, s)) {
17470
+ const x = Math.max(b, u), L = Math.min(b + g.nodeSize, d);
17442
17471
  n.addMark(
17443
- w,
17472
+ x,
17444
17473
  L,
17445
17474
  o.create({
17446
- ...x.attrs,
17475
+ ...w.attrs,
17447
17476
  ...e
17448
17477
  })
17449
17478
  );
@@ -17532,7 +17561,7 @@ function hs(t) {
17532
17561
  }), g = {
17533
17562
  from: r - (h[0].length - i.length),
17534
17563
  to: s
17535
- }, { commands: b, chain: x, can: w } = new Zi({
17564
+ }, { commands: b, chain: w, can: x } = new Zi({
17536
17565
  editor: n,
17537
17566
  state: m
17538
17567
  });
@@ -17541,8 +17570,8 @@ function hs(t) {
17541
17570
  range: g,
17542
17571
  match: h,
17543
17572
  commands: b,
17544
- chain: x,
17545
- can: w
17573
+ chain: w,
17574
+ can: x
17546
17575
  }) === null || !p.steps.length || (f.undoable && p.setMeta(l, {
17547
17576
  transform: p,
17548
17577
  from: r,
@@ -17727,14 +17756,14 @@ function t6(t) {
17727
17756
  state: n
17728
17757
  }), d = [];
17729
17758
  return n.doc.nodesBetween(r, s, (h, p) => {
17730
- var m, g, b, x, w;
17759
+ var m, g, b, w, x;
17731
17760
  if ((g = (m = h.type) == null ? void 0 : m.spec) != null && g.code || !(h.isText || h.isTextblock || h.isInline))
17732
17761
  return;
17733
- const L = (w = (x = (b = h.content) == null ? void 0 : b.size) != null ? x : h.nodeSize) != null ? w : 0, S = Math.max(r, p), N = Math.min(s, p + L);
17762
+ const L = (x = (w = (b = h.content) == null ? void 0 : b.size) != null ? w : h.nodeSize) != null ? x : 0, S = Math.max(r, p), N = Math.min(s, p + L);
17734
17763
  if (S >= N)
17735
17764
  return;
17736
- const O = h.isText ? h.text || "" : h.textBetween(S - p, N - p, void 0, "");
17737
- e6(O, i.find, o).forEach((E) => {
17765
+ const R = h.isText ? h.text || "" : h.textBetween(S - p, N - p, void 0, "");
17766
+ e6(R, i.find, o).forEach((E) => {
17738
17767
  if (E.index === void 0)
17739
17768
  return;
17740
17769
  const P = S + E.index + 1, Q = P + E[0].length, _ = {
@@ -17832,27 +17861,27 @@ function r6(t) {
17832
17861
  }
17833
17862
  },
17834
17863
  appendTransaction: (d, f, h) => {
17835
- const p = d[0], m = p.getMeta("uiEvent") === "paste" && !s, g = p.getMeta("uiEvent") === "drop" && !i, b = p.getMeta("applyPasteRules"), x = !!b;
17836
- if (!m && !g && !x)
17864
+ const p = d[0], m = p.getMeta("uiEvent") === "paste" && !s, g = p.getMeta("uiEvent") === "drop" && !i, b = p.getMeta("applyPasteRules"), w = !!b;
17865
+ if (!m && !g && !w)
17837
17866
  return;
17838
- if (x) {
17867
+ if (w) {
17839
17868
  let { text: S } = b;
17840
17869
  typeof S == "string" ? S = S : S = ql(A.from(S), h.schema);
17841
- const { from: N } = b, O = N + S.length, Z = n6(S);
17870
+ const { from: N } = b, R = N + S.length, Z = n6(S);
17842
17871
  return a({
17843
17872
  rule: u,
17844
17873
  state: h,
17845
17874
  from: N,
17846
- to: { b: O },
17875
+ to: { b: R },
17847
17876
  pasteEvt: Z
17848
17877
  });
17849
17878
  }
17850
- const w = f.doc.content.findDiffStart(h.doc.content), L = f.doc.content.findDiffEnd(h.doc.content);
17851
- if (!(!Q7(w) || !L || w === L.b))
17879
+ const x = f.doc.content.findDiffStart(h.doc.content), L = f.doc.content.findDiffEnd(h.doc.content);
17880
+ if (!(!Q7(x) || !L || x === L.b))
17852
17881
  return a({
17853
17882
  rule: u,
17854
17883
  state: h,
17855
- from: w,
17884
+ from: x,
17856
17885
  to: L,
17857
17886
  pasteEvt: o
17858
17887
  });
@@ -18144,19 +18173,19 @@ var Me = class $d extends Xl {
18144
18173
  u.steps.forEach((h, p) => {
18145
18174
  var m, g;
18146
18175
  if (h instanceof gt) {
18147
- const b = f.slice(p).map(h.from, -1), x = f.slice(p).map(h.to), w = f.invert().map(b, -1), L = f.invert().map(x), S = (m = u.doc.nodeAt(b - 1)) == null ? void 0 : m.marks.some((O) => O.eq(h.mark)), N = (g = u.doc.nodeAt(x)) == null ? void 0 : g.marks.some((O) => O.eq(h.mark));
18176
+ const b = f.slice(p).map(h.from, -1), w = f.slice(p).map(h.to), x = f.invert().map(b, -1), L = f.invert().map(w), S = (m = u.doc.nodeAt(b - 1)) == null ? void 0 : m.marks.some((R) => R.eq(h.mark)), N = (g = u.doc.nodeAt(w)) == null ? void 0 : g.marks.some((R) => R.eq(h.mark));
18148
18177
  this.editor.emit("delete", {
18149
18178
  type: "mark",
18150
18179
  mark: h.mark,
18151
18180
  from: h.from,
18152
18181
  to: h.to,
18153
18182
  deletedRange: {
18154
- from: w,
18183
+ from: x,
18155
18184
  to: L
18156
18185
  },
18157
18186
  newRange: {
18158
18187
  from: b,
18159
- to: x
18188
+ to: w
18160
18189
  },
18161
18190
  partial: !!(N || S),
18162
18191
  editor: this.editor,
@@ -19423,7 +19452,7 @@ function p6(t) {
19423
19452
  if (!p)
19424
19453
  return;
19425
19454
  const m = p[1] || "", g = r(m);
19426
- if (!o.find((x) => !(x in g)))
19455
+ if (!o.find((w) => !(w in g)))
19427
19456
  return {
19428
19457
  type: e,
19429
19458
  raw: p[0],
@@ -19478,13 +19507,13 @@ function m6(t) {
19478
19507
  const m = new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`), g = d.match(m);
19479
19508
  if (!g)
19480
19509
  return;
19481
- const [b, x = ""] = g, w = s(x);
19510
+ const [b, w = ""] = g, x = s(w);
19482
19511
  let L = 1;
19483
19512
  const S = b.length;
19484
19513
  let N = "";
19485
- const O = /^:::([\w-]*)(\s.*)?/gm, Z = d.slice(S);
19486
- for (O.lastIndex = 0; ; ) {
19487
- const E = O.exec(Z);
19514
+ const R = /^:::([\w-]*)(\s.*)?/gm, Z = d.slice(S);
19515
+ for (R.lastIndex = 0; ; ) {
19516
+ const E = R.exec(Z);
19488
19517
  if (E === null)
19489
19518
  break;
19490
19519
  const P = E.index, Q = E[1];
@@ -19512,7 +19541,7 @@ function m6(t) {
19512
19541
  return {
19513
19542
  type: e,
19514
19543
  raw: j,
19515
- attributes: w,
19544
+ attributes: x,
19516
19545
  content: N,
19517
19546
  tokens: G
19518
19547
  };
@@ -19590,20 +19619,20 @@ function C6(t) {
19590
19619
  const m = l ? new RegExp(`^\\[${d}\\s*([^\\]]*)\\]`) : new RegExp(`^\\[${d}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${d}\\]`), g = f.match(m);
19591
19620
  if (!g)
19592
19621
  return;
19593
- let b = "", x = "";
19622
+ let b = "", w = "";
19594
19623
  if (l) {
19595
19624
  const [, L] = g;
19596
- x = L;
19625
+ w = L;
19597
19626
  } else {
19598
19627
  const [, L, S] = g;
19599
- x = L, b = S || "";
19628
+ w = L, b = S || "";
19600
19629
  }
19601
- const w = s(x.trim());
19630
+ const x = s(w.trim());
19602
19631
  return {
19603
19632
  type: e,
19604
19633
  raw: g[0],
19605
19634
  content: b.trim(),
19606
- attributes: w
19635
+ attributes: x
19607
19636
  };
19608
19637
  }
19609
19638
  },
@@ -19640,10 +19669,10 @@ function Jo(t, e, n) {
19640
19669
  for (u += 1; u < l.length; ) {
19641
19670
  const S = l[u];
19642
19671
  if (S.trim() === "") {
19643
- const O = l.slice(u + 1).findIndex((P) => P.trim() !== "");
19644
- if (O === -1)
19672
+ const R = l.slice(u + 1).findIndex((P) => P.trim() !== "");
19673
+ if (R === -1)
19645
19674
  break;
19646
- if ((((s = (r = l[u + 1 + O].match(/^(\s*)/)) == null ? void 0 : r[1]) == null ? void 0 : s.length) || 0) > m) {
19675
+ if ((((s = (r = l[u + 1 + R].match(/^(\s*)/)) == null ? void 0 : r[1]) == null ? void 0 : s.length) || 0) > m) {
19647
19676
  b.push(S), c = `${c}${S}
19648
19677
  `, u += 1;
19649
19678
  continue;
@@ -19656,14 +19685,14 @@ function Jo(t, e, n) {
19656
19685
  else
19657
19686
  break;
19658
19687
  }
19659
- let x;
19660
- const w = b.slice(1);
19661
- if (w.length > 0) {
19662
- const S = w.map((N) => N.slice(m + d)).join(`
19688
+ let w;
19689
+ const x = b.slice(1);
19690
+ if (x.length > 0) {
19691
+ const S = x.map((N) => N.slice(m + d)).join(`
19663
19692
  `);
19664
- S.trim() && (e.customNestedParser ? x = e.customNestedParser(S) : x = n.blockTokens(S));
19693
+ S.trim() && (e.customNestedParser ? w = e.customNestedParser(S) : w = n.blockTokens(S));
19665
19694
  }
19666
- const L = e.createToken(p, x);
19695
+ const L = e.createToken(p, w);
19667
19696
  a.push(L);
19668
19697
  }
19669
19698
  if (a.length !== 0)
@@ -19853,27 +19882,27 @@ function w6(t, e, n) {
19853
19882
  (i = t.value) == null || i.off("update", s), (o = t.value) == null || o.off("transaction", s);
19854
19883
  }), r;
19855
19884
  }
19856
- const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, cv = /* @__PURE__ */ $({
19885
+ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, uv = /* @__PURE__ */ $({
19857
19886
  __name: "InserLink",
19858
19887
  props: {
19859
19888
  editor: {}
19860
19889
  },
19861
19890
  emits: ["cancel", "inserted", "updateTargets"],
19862
19891
  setup(t, { emit: e }) {
19863
- const n = t, r = e, s = M(), i = M(), o = M(""), l = (w) => o.value = w, a = () => {
19864
- var w;
19865
- h.value ? x() : (w = u.value) == null || w.focus();
19866
- }, c = M(""), u = M(), d = (w) => c.value = w, f = () => {
19867
- h.value && x();
19892
+ const n = t, r = e, s = M(), i = M(), o = M(""), l = (x) => o.value = x, a = () => {
19893
+ var x;
19894
+ h.value ? w() : (x = u.value) == null || x.focus();
19895
+ }, c = M(""), u = M(), d = (x) => c.value = x, f = () => {
19896
+ h.value && w();
19868
19897
  }, h = Y(() => {
19869
- var w, L;
19870
- return !c.value || !o.value ? !1 : ((w = c.value) == null ? void 0 : w.trim().length) > 0 && ((L = o.value) == null ? void 0 : L.trim().length) > 0;
19871
- }), p = M(!1), m = ([w, L]) => {
19898
+ var x, L;
19899
+ return !c.value || !o.value ? !1 : ((x = c.value) == null ? void 0 : x.trim().length) > 0 && ((L = o.value) == null ? void 0 : L.trim().length) > 0;
19900
+ }), p = M(!1), m = ([x, L]) => {
19872
19901
  var Q, _;
19873
- const { state: S, view: N } = n.editor, { empty: O, from: Z } = S.selection, P = S.doc.resolve(Z).marks().find((j) => j.type.name === "link");
19902
+ const { state: S, view: N } = n.editor, { empty: R, from: Z } = S.selection, P = S.doc.resolve(Z).marks().find((j) => j.type.name === "link");
19874
19903
  if (P)
19875
19904
  c.value = P.attrs.href;
19876
- else if (O)
19905
+ else if (R)
19877
19906
  o.value = b6(n.editor) || "", p.value = !0;
19878
19907
  else {
19879
19908
  const { from: j, to: G } = N.state.selection;
@@ -19882,8 +19911,8 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, cv = /* @__PURE_
19882
19911
  o.value.trim().length ? (Q = u.value) == null || Q.focus() : (_ = i.value) == null || _.focus(), r("updateTargets", [L]);
19883
19912
  }, g = () => r("updateTargets", []), b = () => {
19884
19913
  c.value = "", o.value = "";
19885
- }, x = () => {
19886
- var w;
19914
+ }, w = () => {
19915
+ var x;
19887
19916
  if (c.value && !c.value.includes("http") && (c.value = `https://${c.value}`), c.value) {
19888
19917
  if (n.editor.chain().focus().extendMarkRange("link").setLink({ href: c.value }).run(), p.value)
19889
19918
  x6(n.editor, o.value);
@@ -19893,9 +19922,9 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, cv = /* @__PURE_
19893
19922
  }
19894
19923
  r("inserted");
19895
19924
  }
19896
- (w = s.value) == null || w.close(), b();
19925
+ (x = s.value) == null || x.close(), b();
19897
19926
  };
19898
- return (w, L) => (y(), H(k(es), {
19927
+ return (x, L) => (y(), H(k(es), {
19899
19928
  ref_key: "popperRef",
19900
19929
  ref: s,
19901
19930
  placement: "top",
@@ -19903,15 +19932,15 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, cv = /* @__PURE_
19903
19932
  onOpen: m,
19904
19933
  onClose: g
19905
19934
  }, {
19906
- default: R(({ visible: S }) => [
19935
+ default: O(({ visible: S }) => [
19907
19936
  V(Je, {
19908
19937
  icon: "link",
19909
19938
  active: S
19910
19939
  }, null, 8, ["active"])
19911
19940
  ]),
19912
- content: R(({ close: S }) => [
19941
+ content: O(({ close: S }) => [
19913
19942
  V(k(ts), { class: "p-4 flex flex-col gap-4" }, {
19914
- default: R(() => [
19943
+ default: O(() => [
19915
19944
  L[2] || (L[2] = C("p", { class: "text-sm" }, " Insert link ", -1)),
19916
19945
  C("section", L6, [
19917
19946
  L[0] || (L[0] = C("div", {
@@ -19946,7 +19975,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, cv = /* @__PURE_
19946
19975
  order: "confirm-last",
19947
19976
  "confirm-label": "Insert",
19948
19977
  "confirm-disabled": !h.value,
19949
- onConfirm: x,
19978
+ onConfirm: w,
19950
19979
  onCancel: (N) => {
19951
19980
  b(), S();
19952
19981
  }
@@ -19958,7 +19987,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, cv = /* @__PURE_
19958
19987
  _: 1
19959
19988
  }, 512));
19960
19989
  }
19961
- }), uv = /* @__PURE__ */ $({
19990
+ }), dv = /* @__PURE__ */ $({
19962
19991
  __name: "InsertImage",
19963
19992
  props: {
19964
19993
  editor: {}
@@ -19996,7 +20025,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, cv = /* @__PURE_
19996
20025
  setup(t) {
19997
20026
  return (e, n) => (y(), H(Gr, { to: "#modals" }, [
19998
20027
  V(k(ts), { class: "w-96" }, {
19999
- default: R(() => [
20028
+ default: O(() => [
20000
20029
  C("div", S6, [
20001
20030
  F(e.$slots, "default")
20002
20031
  ])
@@ -20034,7 +20063,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, cv = /* @__PURE_
20034
20063
  }
20035
20064
  };
20036
20065
  return (d, f) => (y(), H(Jd, null, {
20037
- default: R(() => [
20066
+ default: O(() => [
20038
20067
  f[3] || (f[3] = C("header", null, "Insert link", -1)),
20039
20068
  C("section", H6, [
20040
20069
  f[1] || (f[1] = C("div", { class: "text-xs text-secondary" }, " Text to display ", -1)),
@@ -20063,7 +20092,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, cv = /* @__PURE_
20063
20092
  _: 1
20064
20093
  }));
20065
20094
  }
20066
- }), E6 = { class: "space-y-1" }, A6 = { class: "flex flex-1 justify-end" }, O6 = /* @__PURE__ */ $({
20095
+ }), E6 = { class: "space-y-1" }, A6 = { class: "flex flex-1 justify-end" }, R6 = /* @__PURE__ */ $({
20067
20096
  __name: "InsertTextDialog",
20068
20097
  emits: ["cancel", "insert"],
20069
20098
  setup(t, { emit: e }) {
@@ -20075,7 +20104,7 @@ const L6 = { class: "space-y-1" }, M6 = { class: "space-y-1" }, cv = /* @__PURE_
20075
20104
  n("insert", r.value), r.value = null;
20076
20105
  };
20077
20106
  return (a, c) => (y(), H(Jd, null, {
20078
- default: R(() => [
20107
+ default: O(() => [
20079
20108
  c[0] || (c[0] = C("header", null, "Insert text", -1)),
20080
20109
  C("section", E6, [
20081
20110
  V(k(Qn), {
@@ -20107,7 +20136,7 @@ var X1 = (t, e) => {
20107
20136
  if (t === "svg")
20108
20137
  throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
20109
20138
  return [t, r, n];
20110
- }, R6 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, D6 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, N6 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, $6 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, I6 = fr.create({
20139
+ }, O6 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, D6 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, N6 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, $6 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, I6 = fr.create({
20111
20140
  name: "bold",
20112
20141
  addOptions() {
20113
20142
  return {
@@ -20155,7 +20184,7 @@ var X1 = (t, e) => {
20155
20184
  addInputRules() {
20156
20185
  return [
20157
20186
  Ur({
20158
- find: R6,
20187
+ find: O6,
20159
20188
  type: this.type
20160
20189
  }),
20161
20190
  Ur({
@@ -21991,7 +22020,7 @@ function Mn(t, e, n) {
21991
22020
  s.indexOf(t) < 0 && s.push(t);
21992
22021
  }
21993
22022
  }
21994
- function Og(t, e) {
22023
+ function Rg(t, e) {
21995
22024
  const n = {};
21996
22025
  for (const r in e)
21997
22026
  e[r].indexOf(t) >= 0 && (n[r] = !0);
@@ -22113,7 +22142,7 @@ tt.prototype = {
22113
22142
  if (l ? (o = new tt(), Object.assign(o.j, l.j), o.jr.push.apply(o.jr, l.jr), o.jd = l.jd, o.t = l.t) : o = new tt(), i) {
22114
22143
  if (r)
22115
22144
  if (o.t && typeof o.t == "string") {
22116
- const a = Object.assign(Og(o.t, r), n);
22145
+ const a = Object.assign(Rg(o.t, r), n);
22117
22146
  Mn(i, a, r);
22118
22147
  } else n && Mn(i, n, r);
22119
22148
  o.t = i;
@@ -22121,7 +22150,7 @@ tt.prototype = {
22121
22150
  return s.j[t] = o, o;
22122
22151
  }
22123
22152
  };
22124
- const re = (t, e, n, r, s) => t.ta(e, n, r, s), He = (t, e, n, r, s) => t.tr(e, n, r, s), oc = (t, e, n, r, s) => t.ts(e, n, r, s), D = (t, e, n, r, s) => t.tt(e, n, r, s), $t = "WORD", il = "UWORD", gf = "ASCIINUMERICAL", yf = "ALPHANUMERICAL", qr = "LOCALHOST", ol = "TLD", ll = "UTLD", Ts = "SCHEME", Kn = "SLASH_SCHEME", ra = "NUM", al = "WS", sa = "NL", Tr = "OPENBRACE", Vr = "CLOSEBRACE", Ys = "OPENBRACKET", Js = "CLOSEBRACKET", Gs = "OPENPAREN", Xs = "CLOSEPAREN", Qs = "OPENANGLEBRACKET", _s = "CLOSEANGLEBRACKET", ei = "FULLWIDTHLEFTPAREN", ti = "FULLWIDTHRIGHTPAREN", ni = "LEFTCORNERBRACKET", ri = "RIGHTCORNERBRACKET", si = "LEFTWHITECORNERBRACKET", ii = "RIGHTWHITECORNERBRACKET", oi = "FULLWIDTHLESSTHAN", li = "FULLWIDTHGREATERTHAN", ai = "AMPERSAND", ci = "APOSTROPHE", ui = "ASTERISK", en = "AT", di = "BACKSLASH", fi = "BACKTICK", hi = "CARET", nn = "COLON", ia = "COMMA", pi = "DOLLAR", Lt = "DOT", mi = "EQUALS", oa = "EXCLAMATION", ct = "HYPHEN", Er = "PERCENT", gi = "PIPE", yi = "PLUS", Ci = "POUND", Ar = "QUERY", la = "QUOTE", Cf = "FULLWIDTHMIDDLEDOT", aa = "SEMI", Mt = "SLASH", Or = "TILDE", vi = "UNDERSCORE", vf = "EMOJI", bi = "SYM";
22153
+ const re = (t, e, n, r, s) => t.ta(e, n, r, s), He = (t, e, n, r, s) => t.tr(e, n, r, s), oc = (t, e, n, r, s) => t.ts(e, n, r, s), D = (t, e, n, r, s) => t.tt(e, n, r, s), $t = "WORD", il = "UWORD", gf = "ASCIINUMERICAL", yf = "ALPHANUMERICAL", qr = "LOCALHOST", ol = "TLD", ll = "UTLD", Ts = "SCHEME", Kn = "SLASH_SCHEME", ra = "NUM", al = "WS", sa = "NL", Tr = "OPENBRACE", Vr = "CLOSEBRACE", Ys = "OPENBRACKET", Js = "CLOSEBRACKET", Gs = "OPENPAREN", Xs = "CLOSEPAREN", Qs = "OPENANGLEBRACKET", _s = "CLOSEANGLEBRACKET", ei = "FULLWIDTHLEFTPAREN", ti = "FULLWIDTHRIGHTPAREN", ni = "LEFTCORNERBRACKET", ri = "RIGHTCORNERBRACKET", si = "LEFTWHITECORNERBRACKET", ii = "RIGHTWHITECORNERBRACKET", oi = "FULLWIDTHLESSTHAN", li = "FULLWIDTHGREATERTHAN", ai = "AMPERSAND", ci = "APOSTROPHE", ui = "ASTERISK", en = "AT", di = "BACKSLASH", fi = "BACKTICK", hi = "CARET", nn = "COLON", ia = "COMMA", pi = "DOLLAR", Lt = "DOT", mi = "EQUALS", oa = "EXCLAMATION", ct = "HYPHEN", Er = "PERCENT", gi = "PIPE", yi = "PLUS", Ci = "POUND", Ar = "QUERY", la = "QUOTE", Cf = "FULLWIDTHMIDDLEDOT", aa = "SEMI", Mt = "SLASH", Rr = "TILDE", vi = "UNDERSCORE", vf = "EMOJI", bi = "SYM";
22125
22154
  var bf = /* @__PURE__ */ Object.freeze({
22126
22155
  __proto__: null,
22127
22156
  ALPHANUMERICAL: yf,
@@ -22172,7 +22201,7 @@ var bf = /* @__PURE__ */ Object.freeze({
22172
22201
  SLASH: Mt,
22173
22202
  SLASH_SCHEME: Kn,
22174
22203
  SYM: bi,
22175
- TILDE: Or,
22204
+ TILDE: Rr,
22176
22205
  TLD: ol,
22177
22206
  UNDERSCORE: vi,
22178
22207
  UTLD: ll,
@@ -22181,13 +22210,13 @@ var bf = /* @__PURE__ */ Object.freeze({
22181
22210
  WS: al
22182
22211
  });
22183
22212
  const Dt = /[a-z]/, mr = new RegExp("\\p{L}", "u"), ko = new RegExp("\\p{Emoji}", "u"), Nt = /\d/, xo = /\s/, lc = "\r", wo = `
22184
- `, Rg = "️", Dg = "‍", Lo = "";
22213
+ `, Og = "️", Dg = "‍", Lo = "";
22185
22214
  let ys = null, Cs = null;
22186
22215
  function Ng(t = []) {
22187
22216
  const e = {};
22188
22217
  tt.groups = e;
22189
22218
  const n = new tt();
22190
- ys == null && (ys = ac(Hg)), Cs == null && (Cs = ac(Tg)), D(n, "'", ci), D(n, "{", Tr), D(n, "}", Vr), D(n, "[", Ys), D(n, "]", Js), D(n, "(", Gs), D(n, ")", Xs), D(n, "<", Qs), D(n, ">", _s), D(n, "(", ei), D(n, ")", ti), D(n, "「", ni), D(n, "」", ri), D(n, "『", si), D(n, "』", ii), D(n, "<", oi), D(n, ">", li), D(n, "&", ai), D(n, "*", ui), D(n, "@", en), D(n, "`", fi), D(n, "^", hi), D(n, ":", nn), D(n, ",", ia), D(n, "$", pi), D(n, ".", Lt), D(n, "=", mi), D(n, "!", oa), D(n, "-", ct), D(n, "%", Er), D(n, "|", gi), D(n, "+", yi), D(n, "#", Ci), D(n, "?", Ar), D(n, '"', la), D(n, "/", Mt), D(n, ";", aa), D(n, "~", Or), D(n, "_", vi), D(n, "\\", di), D(n, "・", Cf);
22219
+ ys == null && (ys = ac(Hg)), Cs == null && (Cs = ac(Tg)), D(n, "'", ci), D(n, "{", Tr), D(n, "}", Vr), D(n, "[", Ys), D(n, "]", Js), D(n, "(", Gs), D(n, ")", Xs), D(n, "<", Qs), D(n, ">", _s), D(n, "(", ei), D(n, ")", ti), D(n, "「", ni), D(n, "」", ri), D(n, "『", si), D(n, "』", ii), D(n, "<", oi), D(n, ">", li), D(n, "&", ai), D(n, "*", ui), D(n, "@", en), D(n, "`", fi), D(n, "^", hi), D(n, ":", nn), D(n, ",", ia), D(n, "$", pi), D(n, ".", Lt), D(n, "=", mi), D(n, "!", oa), D(n, "-", ct), D(n, "%", Er), D(n, "|", gi), D(n, "+", yi), D(n, "#", Ci), D(n, "?", Ar), D(n, '"', la), D(n, "/", Mt), D(n, ";", aa), D(n, "~", Rr), D(n, "_", vi), D(n, "\\", di), D(n, "・", Cf);
22191
22220
  const r = He(n, Nt, ra, {
22192
22221
  [tl]: !0
22193
22222
  });
@@ -22215,7 +22244,7 @@ function Ng(t = []) {
22215
22244
  const d = He(n, ko, vf, {
22216
22245
  [mf]: !0
22217
22246
  });
22218
- D(d, "#"), He(d, ko, d), D(d, Rg, d);
22247
+ D(d, "#"), He(d, ko, d), D(d, Og, d);
22219
22248
  const f = D(d, Dg);
22220
22249
  D(f, "#"), He(f, ko, d);
22221
22250
  const h = [[Dt, o], [Nt, s]], p = [[Dt, null], [mr, l], [Nt, i]];
@@ -22237,12 +22266,12 @@ function Ng(t = []) {
22237
22266
  ascii: !0
22238
22267
  }, e), t = t.sort((m, g) => m[0] > g[0] ? 1 : -1);
22239
22268
  for (let m = 0; m < t.length; m++) {
22240
- const g = t[m][0], x = t[m][1] ? {
22269
+ const g = t[m][0], w = t[m][1] ? {
22241
22270
  [Vg]: !0
22242
22271
  } : {
22243
22272
  [Eg]: !0
22244
22273
  };
22245
- g.indexOf("-") >= 0 ? x[sl] = !0 : Dt.test(g) ? Nt.test(g) ? x[Hr] = !0 : x[nl] = !0 : x[tl] = !0, oc(n, g, g, x);
22274
+ g.indexOf("-") >= 0 ? w[sl] = !0 : Dt.test(g) ? Nt.test(g) ? w[Hr] = !0 : w[nl] = !0 : w[tl] = !0, oc(n, g, g, w);
22246
22275
  }
22247
22276
  return oc(n, "localhost", qr, {
22248
22277
  ascii: !0
@@ -22543,7 +22572,7 @@ const uc = Yi("email", {
22543
22572
  function Pg({
22544
22573
  groups: t
22545
22574
  }) {
22546
- const e = t.domain.concat([ai, ui, en, di, fi, hi, pi, mi, ct, ra, Er, gi, yi, Ci, Mt, bi, Or, vi]), n = [ci, nn, ia, Lt, oa, Er, Ar, la, aa, Qs, _s, Tr, Vr, Js, Ys, Gs, Xs, ei, ti, ni, ri, si, ii, oi, li], r = [ai, ci, ui, di, fi, hi, pi, mi, ct, Tr, Vr, Er, gi, yi, Ci, Ar, Mt, bi, Or, vi], s = at(), i = D(s, Or);
22575
+ const e = t.domain.concat([ai, ui, en, di, fi, hi, pi, mi, ct, ra, Er, gi, yi, Ci, Mt, bi, Rr, vi]), n = [ci, nn, ia, Lt, oa, Er, Ar, la, aa, Qs, _s, Tr, Vr, Js, Ys, Gs, Xs, ei, ti, ni, ri, si, ii, oi, li], r = [ai, ci, ui, di, fi, hi, pi, mi, ct, Tr, Vr, Er, gi, yi, Ci, Ar, Mt, bi, Rr, vi], s = at(), i = D(s, Rr);
22547
22576
  re(i, r, i), re(i, t.domain, i);
22548
22577
  const o = at(), l = at(), a = at();
22549
22578
  re(s, t.domain, o), re(s, t.scheme, l), re(s, t.slashscheme, a), re(o, r, i), re(o, t.domain, o);
@@ -22563,14 +22592,14 @@ function Pg({
22563
22592
  re(m, t.numeric, uc);
22564
22593
  const g = D(o, ct), b = D(o, Lt);
22565
22594
  D(g, ct, g), re(g, t.domain, o), re(b, r, i), re(b, t.domain, o);
22566
- const x = at(vs);
22567
- re(b, t.tld, x), re(b, t.utld, x), re(x, t.domain, o), re(x, r, i), D(x, Lt, b), D(x, ct, g), D(x, en, c);
22568
- const w = D(x, nn), L = at(vs);
22569
- re(w, t.numeric, L);
22595
+ const w = at(vs);
22596
+ re(b, t.tld, w), re(b, t.utld, w), re(w, t.domain, o), re(w, r, i), D(w, Lt, b), D(w, ct, g), D(w, en, c);
22597
+ const x = D(w, nn), L = at(vs);
22598
+ re(x, t.numeric, L);
22570
22599
  const S = at(vs), N = at();
22571
- re(S, e, S), re(S, n, N), re(N, e, S), re(N, n, N), D(x, Mt, S), D(L, Mt, S);
22572
- const O = D(l, nn), Z = D(a, nn), E = D(Z, Mt), P = D(E, Mt);
22573
- re(l, t.domain, o), D(l, Lt, b), D(l, ct, g), re(a, t.domain, o), D(a, Lt, b), D(a, ct, g), re(O, t.domain, S), D(O, Mt, S), D(O, Ar, S), re(P, t.domain, S), re(P, e, S), D(P, Mt, S);
22600
+ re(S, e, S), re(S, n, N), re(N, e, S), re(N, n, N), D(w, Mt, S), D(L, Mt, S);
22601
+ const R = D(l, nn), Z = D(a, nn), E = D(Z, Mt), P = D(E, Mt);
22602
+ re(l, t.domain, o), D(l, Lt, b), D(l, ct, g), re(a, t.domain, o), D(a, Lt, b), D(a, ct, g), re(R, t.domain, S), D(R, Mt, S), D(R, Ar, S), re(P, t.domain, S), re(P, e, S), D(P, Mt, S);
22574
22603
  const Q = [
22575
22604
  [Tr, Vr],
22576
22605
  // {}
@@ -22597,7 +22626,7 @@ function Pg({
22597
22626
  const K = at();
22598
22627
  re(be, n), re(xe, e, xe), re(xe, n, K), re(K, e, xe), re(K, n, K), D(xe, G, S), D(K, G, S);
22599
22628
  }
22600
- return D(s, qr, x), D(s, sa, Ig), {
22629
+ return D(s, qr, w), D(s, sa, Ig), {
22601
22630
  start: s,
22602
22631
  tokens: bf
22603
22632
  };
@@ -22718,7 +22747,7 @@ function Yg(t) {
22718
22747
  from: m + b.start + 1,
22719
22748
  to: m + b.end + 1
22720
22749
  })).filter((b) => r.schema.marks.code ? !r.doc.rangeHasMark(b.from, b.to, r.schema.marks.code) : !0).filter((b) => t.validate(b.value)).filter((b) => t.shouldAutoLink(b.value)).forEach((b) => {
22721
- Gl(b.from, b.to, r.doc).some((x) => x.mark.type === t.type) || o.addMark(
22750
+ Gl(b.from, b.to, r.doc).some((w) => w.mark.type === t.type) || o.addMark(
22722
22751
  b.from,
22723
22752
  b.to,
22724
22753
  t.type.create({
@@ -23230,7 +23259,7 @@ $({
23230
23259
  const ny = { key: 1 }, ry = {
23231
23260
  key: 0,
23232
23261
  class: "pr-1"
23233
- }, dv = /* @__PURE__ */ $({
23262
+ }, fv = /* @__PURE__ */ $({
23234
23263
  __name: "TextEditor",
23235
23264
  props: {
23236
23265
  autoHideMenu: { type: Boolean, default: !1 },
@@ -23293,16 +23322,16 @@ const ny = { key: 1 }, ry = {
23293
23322
  var G;
23294
23323
  const j = g.includes(_) ? _ : "end";
23295
23324
  (G = f.value) == null || G.commands.focus(j);
23296
- }, x = () => {
23325
+ }, w = () => {
23297
23326
  var _;
23298
23327
  (_ = f.value) == null || _.commands.blur(), o.value = !1;
23299
- }, w = () => a.value = !1, L = () => o.value = !0, S = () => a.value = !1, N = (_) => {
23328
+ }, x = () => a.value = !1, L = () => o.value = !0, S = () => a.value = !1, N = (_) => {
23300
23329
  var j;
23301
23330
  return (j = f.value) == null ? void 0 : j.commands.insertContent(_);
23302
- }, O = (_) => {
23331
+ }, R = (_) => {
23303
23332
  N(_), l.value = !1;
23304
23333
  }, Z = () => a.value = !0, E = () => l.value = !0;
23305
- return e({ blur: x, closeInsert: () => l.value = !1, focus: b, setContent: (_) => {
23334
+ return e({ blur: w, closeInsert: () => l.value = !1, focus: b, setContent: (_) => {
23306
23335
  var j;
23307
23336
  return (j = f.value) == null ? void 0 : j.commands.setContent(_);
23308
23337
  } }), (_, j) => k(f) ? (y(), v("section", {
@@ -23322,13 +23351,13 @@ const ny = { key: 1 }, ry = {
23322
23351
  "border-subtle": !o.value && !t.embedded
23323
23352
  }])
23324
23353
  }, {
23325
- default: R(() => [
23354
+ default: O(() => [
23326
23355
  t.headerLabel || t.headerIcon ? (y(), H(k(ye), {
23327
23356
  key: 0,
23328
23357
  tag: "header",
23329
23358
  class: z(["flex-0 h-10 px-3 gap-2 text-sm text-primary rounded-t-lg overflow-hidden", p.value])
23330
23359
  }, {
23331
- default: R(() => [
23360
+ default: O(() => [
23332
23361
  t.headerIcon ? (y(), H(k(ve), {
23333
23362
  key: 0,
23334
23363
  name: t.headerIcon
@@ -23342,7 +23371,7 @@ const ny = { key: 1 }, ry = {
23342
23371
  align: "start",
23343
23372
  fullwidth: ""
23344
23373
  }, {
23345
- default: R(() => [
23374
+ default: O(() => [
23346
23375
  V(k(Ef), {
23347
23376
  class: z(["flex-1 overflow-y-auto rounded-t-lg focus:outline-hidden", {
23348
23377
  [t.editorContentClasses]: !o.value,
@@ -23358,9 +23387,9 @@ const ny = { key: 1 }, ry = {
23358
23387
  class: z(["flex-0 min-h-0 p-1 rounded-b-lg overflow-hidden", m.value])
23359
23388
  }, [
23360
23389
  V(k(ye), { justify: "between" }, {
23361
- default: R(() => [
23390
+ default: O(() => [
23362
23391
  V(k(ye), { class: "gap-0.5" }, {
23363
- default: R(() => [
23392
+ default: O(() => [
23364
23393
  k(el) ? (y(), v(I, { key: 0 }, [
23365
23394
  V(Je, {
23366
23395
  icon: "undo",
@@ -23488,12 +23517,12 @@ const ny = { key: 1 }, ry = {
23488
23517
  key: 2,
23489
23518
  editor: k(f),
23490
23519
  onInserted: S,
23491
- onCancel: w
23520
+ onCancel: x
23492
23521
  }, null, 8, ["editor"])) : T("", !0),
23493
23522
  l.value ? (y(), v(I, { key: 3 }, [
23494
- _.$slots.insert ? F(_.$slots, "insert", { key: 0 }) : (y(), H(O6, {
23523
+ _.$slots.insert ? F(_.$slots, "insert", { key: 0 }) : (y(), H(R6, {
23495
23524
  key: 1,
23496
- onInsert: O,
23525
+ onInsert: R,
23497
23526
  onCancel: j[13] || (j[13] = (G) => l.value = !1)
23498
23527
  }))
23499
23528
  ], 64)) : T("", !0)
@@ -23505,7 +23534,7 @@ const ny = { key: 1 }, ry = {
23505
23534
  }), sy = { class: "relative z-0" }, iy = {
23506
23535
  key: 1,
23507
23536
  class: "relative z-10"
23508
- }, Of = /* @__PURE__ */ $({
23537
+ }, Rf = /* @__PURE__ */ $({
23509
23538
  __name: "TextHighlight",
23510
23539
  props: {
23511
23540
  value: {},
@@ -23551,7 +23580,7 @@ const ny = { key: 1 }, ry = {
23551
23580
  };
23552
23581
  return lr(() => {
23553
23582
  n.value = e.highlight ? s(e.value, e.highlight) : [];
23554
- }), Oe(
23583
+ }), Re(
23555
23584
  () => e.highlight,
23556
23585
  (i) => {
23557
23586
  n.value = i ? s(e.value, i) : [];
@@ -23582,7 +23611,7 @@ function ay(t, e) {
23582
23611
  F(t.$slots, "default")
23583
23612
  ]);
23584
23613
  }
23585
- const fv = /* @__PURE__ */ gn(oy, [["render", ay]]);
23614
+ const hv = /* @__PURE__ */ gn(oy, [["render", ay]]);
23586
23615
  var cy = bt.create({
23587
23616
  name: "hardBreak",
23588
23617
  markdownTokenName: "br",
@@ -23776,10 +23805,10 @@ function fa() {
23776
23805
  };
23777
23806
  }
23778
23807
  var Bn = fa();
23779
- function Rf(t) {
23808
+ function Of(t) {
23780
23809
  Bn = t;
23781
23810
  }
23782
- var Rr = { exec: () => null };
23811
+ var Or = { exec: () => null };
23783
23812
  function fe(t, e = "") {
23784
23813
  let n = typeof t == "string" ? t : t.source;
23785
23814
  const r = {
@@ -23863,7 +23892,7 @@ var Xe = {
23863
23892
  list: ky,
23864
23893
  newline: py,
23865
23894
  paragraph: $f,
23866
- table: Rr,
23895
+ table: Or,
23867
23896
  text: vy
23868
23897
  }, pc = fe(
23869
23898
  "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
@@ -23879,26 +23908,26 @@ var Xe = {
23879
23908
  ).replace("comment", ga).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
23880
23909
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
23881
23910
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
23882
- fences: Rr,
23911
+ fences: Or,
23883
23912
  // fences not supported
23884
23913
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
23885
23914
  paragraph: fe(pa).replace("hr", ls).replace("heading", ` *#{1,6} *[^
23886
23915
  ]`).replace("lheading", Nf).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
23887
- }, Sy = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Hy = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, If = /^( {2,}|\\)\n(?!\s*$)/, Ty = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Gi = /[\p{P}\p{S}]/u, Ca = /[\s\p{P}\p{S}]/u, Pf = /[^\s\p{P}\p{S}]/u, Vy = fe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ca).getRegex(), zf = /(?!~)[\p{P}\p{S}]/u, Ey = /(?!~)[\s\p{P}\p{S}]/u, Ay = /(?:[^\s\p{P}\p{S}]|~)/u, Oy = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Bf = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ry = fe(Bf, "u").replace(/punct/g, Gi).getRegex(), Dy = fe(Bf, "u").replace(/punct/g, zf).getRegex(), Zf = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ny = fe(Zf, "gu").replace(/notPunctSpace/g, Pf).replace(/punctSpace/g, Ca).replace(/punct/g, Gi).getRegex(), $y = fe(Zf, "gu").replace(/notPunctSpace/g, Ay).replace(/punctSpace/g, Ey).replace(/punct/g, zf).getRegex(), Iy = fe(
23916
+ }, Sy = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Hy = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, If = /^( {2,}|\\)\n(?!\s*$)/, Ty = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Gi = /[\p{P}\p{S}]/u, Ca = /[\s\p{P}\p{S}]/u, Pf = /[^\s\p{P}\p{S}]/u, Vy = fe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ca).getRegex(), zf = /(?!~)[\p{P}\p{S}]/u, Ey = /(?!~)[\s\p{P}\p{S}]/u, Ay = /(?:[^\s\p{P}\p{S}]|~)/u, Ry = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Bf = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Oy = fe(Bf, "u").replace(/punct/g, Gi).getRegex(), Dy = fe(Bf, "u").replace(/punct/g, zf).getRegex(), Zf = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ny = fe(Zf, "gu").replace(/notPunctSpace/g, Pf).replace(/punctSpace/g, Ca).replace(/punct/g, Gi).getRegex(), $y = fe(Zf, "gu").replace(/notPunctSpace/g, Ay).replace(/punctSpace/g, Ey).replace(/punct/g, zf).getRegex(), Iy = fe(
23888
23917
  "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
23889
23918
  "gu"
23890
23919
  ).replace(/notPunctSpace/g, Pf).replace(/punctSpace/g, Ca).replace(/punct/g, Gi).getRegex(), Py = fe(/\\(punct)/, "gu").replace(/punct/g, Gi).getRegex(), zy = fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), By = fe(ga).replace("(?:-->|$)", "-->").getRegex(), Zy = fe(
23891
23920
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
23892
23921
  ).replace("comment", By).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), ki = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Fy = fe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", ki).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ff = fe(/^!?\[(label)\]\[(ref)\]/).replace("label", ki).replace("ref", ma).getRegex(), Wf = fe(/^!?\[(ref)\](?:\[\])?/).replace("ref", ma).getRegex(), Wy = fe("reflink|nolink(?!\\()", "g").replace("reflink", Ff).replace("nolink", Wf).getRegex(), va = {
23893
- _backpedal: Rr,
23922
+ _backpedal: Or,
23894
23923
  // only used for GFM url
23895
23924
  anyPunctuation: Py,
23896
23925
  autolink: zy,
23897
- blockSkip: Oy,
23926
+ blockSkip: Ry,
23898
23927
  br: If,
23899
23928
  code: Hy,
23900
- del: Rr,
23901
- emStrongLDelim: Ry,
23929
+ del: Or,
23930
+ emStrongLDelim: Oy,
23902
23931
  emStrongRDelimAst: Ny,
23903
23932
  emStrongRDelimUnd: Iy,
23904
23933
  escape: Sy,
@@ -23909,7 +23938,7 @@ var Xe = {
23909
23938
  reflinkSearch: Wy,
23910
23939
  tag: Zy,
23911
23940
  text: Ty,
23912
- url: Rr
23941
+ url: Or
23913
23942
  }, jy = {
23914
23943
  ...va,
23915
23944
  link: fe(/^!?\[(label)\]\((.*?)\)/).replace("label", ki).getRegex(),
@@ -24172,24 +24201,24 @@ ${u}` : u;
24172
24201
  `, 1)[0], h = !d.trim(), p = 0;
24173
24202
  if (this.options.pedantic ? (p = 2, u = d.trimStart()) : h ? p = e[1].length + 1 : (p = e[2].search(this.rules.other.nonSpaceChar), p = p > 4 ? 1 : p, u = d.slice(p), p += e[1].length), h && this.rules.other.blankLine.test(f) && (c += f + `
24174
24203
  `, t = t.substring(f.length + 1), a = !0), !a) {
24175
- const b = this.rules.other.nextBulletRegex(p), x = this.rules.other.hrRegex(p), w = this.rules.other.fencesBeginRegex(p), L = this.rules.other.headingBeginRegex(p), S = this.rules.other.htmlBeginRegex(p);
24204
+ const b = this.rules.other.nextBulletRegex(p), w = this.rules.other.hrRegex(p), x = this.rules.other.fencesBeginRegex(p), L = this.rules.other.headingBeginRegex(p), S = this.rules.other.htmlBeginRegex(p);
24176
24205
  for (; t; ) {
24177
24206
  const N = t.split(`
24178
24207
  `, 1)[0];
24179
- let O;
24180
- if (f = N, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), O = f) : O = f.replace(this.rules.other.tabCharGlobal, " "), w.test(f) || L.test(f) || S.test(f) || b.test(f) || x.test(f))
24208
+ let R;
24209
+ if (f = N, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), R = f) : R = f.replace(this.rules.other.tabCharGlobal, " "), x.test(f) || L.test(f) || S.test(f) || b.test(f) || w.test(f))
24181
24210
  break;
24182
- if (O.search(this.rules.other.nonSpaceChar) >= p || !f.trim())
24211
+ if (R.search(this.rules.other.nonSpaceChar) >= p || !f.trim())
24183
24212
  u += `
24184
- ` + O.slice(p);
24213
+ ` + R.slice(p);
24185
24214
  else {
24186
- if (h || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || w.test(d) || L.test(d) || x.test(d))
24215
+ if (h || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || x.test(d) || L.test(d) || w.test(d))
24187
24216
  break;
24188
24217
  u += `
24189
24218
  ` + f;
24190
24219
  }
24191
24220
  !h && !f.trim() && (h = !0), c += N + `
24192
- `, t = t.substring(N.length + 1), d = O.slice(p);
24221
+ `, t = t.substring(N.length + 1), d = R.slice(p);
24193
24222
  }
24194
24223
  }
24195
24224
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (o = !0));
@@ -25294,12 +25323,12 @@ function me(t, e) {
25294
25323
  return Pn.parse(t, e);
25295
25324
  }
25296
25325
  me.options = me.setOptions = function(t) {
25297
- return Pn.setOptions(t), me.defaults = Pn.defaults, Rf(me.defaults), me;
25326
+ return Pn.setOptions(t), me.defaults = Pn.defaults, Of(me.defaults), me;
25298
25327
  };
25299
25328
  me.getDefaults = fa;
25300
25329
  me.defaults = Bn;
25301
25330
  me.use = function(...t) {
25302
- return Pn.use(...t), me.defaults = Pn.defaults, Rf(me.defaults), me;
25331
+ return Pn.use(...t), me.defaults = Pn.defaults, Of(me.defaults), me;
25303
25332
  };
25304
25333
  me.walkTokens = function(t, e) {
25305
25334
  return Pn.walkTokens(t, e);
@@ -25551,14 +25580,14 @@ var nC = class {
25551
25580
  if (c) {
25552
25581
  const m = (a.raw || a.text || "").split(`
25553
25582
  `), g = m[0].match(/^\s*[-+*]\s+\[([ xX])\]\s+(.*)$/), b = g ? g[2] : "";
25554
- let x = [];
25583
+ let w = [];
25555
25584
  if (m.length > 1 && m.slice(1).join(`
25556
25585
  `).trim()) {
25557
25586
  const L = m.slice(1), S = L.filter((N) => N.trim());
25558
25587
  if (S.length > 0) {
25559
25588
  const N = Math.min(...S.map((E) => E.length - E.trimStart().length)), Z = L.map((E) => E.trim() ? E.slice(N) : "").join(`
25560
25589
  `).trim();
25561
- Z && (x = this.markedInstance.lexer(`${Z}
25590
+ Z && (w = this.markedInstance.lexer(`${Z}
25562
25591
  `));
25563
25592
  }
25564
25593
  }
@@ -25570,7 +25599,7 @@ var nC = class {
25570
25599
  checked: u ?? !1,
25571
25600
  text: b,
25572
25601
  tokens: this.lexer.inlineTokens(b),
25573
- nestedTokens: x
25602
+ nestedTokens: w
25574
25603
  };
25575
25604
  }
25576
25605
  const h = c ? "taskList" : "list";
@@ -25657,21 +25686,21 @@ var nC = class {
25657
25686
  let m = -1;
25658
25687
  const g = [a];
25659
25688
  for (let b = o + 1; b < t.length; b += 1) {
25660
- const x = t[b], w = ((s = (r = x.raw) != null ? r : x.text) != null ? s : "").toString();
25661
- if (g.push(w), x.type === "html" && p.test(w)) {
25689
+ const w = t[b], x = ((s = (r = w.raw) != null ? r : w.text) != null ? s : "").toString();
25690
+ if (g.push(x), w.type === "html" && p.test(x)) {
25662
25691
  m = b;
25663
25692
  break;
25664
25693
  }
25665
25694
  }
25666
25695
  if (m !== -1) {
25667
- const b = g.join(""), x = {
25696
+ const b = g.join(""), w = {
25668
25697
  type: "html",
25669
25698
  raw: b,
25670
25699
  text: b,
25671
25700
  block: !1
25672
- }, w = this.parseHTMLToken(x);
25673
- if (w) {
25674
- const L = this.normalizeParseResult(w);
25701
+ }, x = this.parseHTMLToken(w);
25702
+ if (x) {
25703
+ const L = this.normalizeParseResult(x);
25675
25704
  Array.isArray(L) ? i.push(...L) : L && i.push(L);
25676
25705
  }
25677
25706
  o = m;
@@ -25817,8 +25846,8 @@ var nC = class {
25817
25846
  let c = o.text || "";
25818
25847
  const u = new Map((o.marks || []).map((g) => [g.type, g])), d = Xy(i, u), f = Qy(i, u);
25819
25848
  d.forEach((g) => {
25820
- const b = i.get(g), x = this.getMarkClosing(g, b);
25821
- x && (c += x), i.delete(g);
25849
+ const b = i.get(g), w = this.getMarkClosing(g, b);
25850
+ w && (c += w), i.delete(g);
25822
25851
  });
25823
25852
  let h = "";
25824
25853
  if (f.length > 0) {
@@ -25826,8 +25855,8 @@ var nC = class {
25826
25855
  g && (h = g[1], c = c.slice(h.length));
25827
25856
  }
25828
25857
  f.forEach(({ type: g, mark: b }) => {
25829
- const x = this.getMarkOpening(g, b);
25830
- x && (c = x + c), i.set(g, b);
25858
+ const w = this.getMarkOpening(g, b);
25859
+ w && (c = w + c), i.set(g, b);
25831
25860
  }), c = h + c;
25832
25861
  const p = _y(
25833
25862
  i,
@@ -25841,8 +25870,8 @@ var nC = class {
25841
25870
  g && (m = g[1], c = c.slice(0, -m.length));
25842
25871
  }
25843
25872
  p.forEach((g) => {
25844
- const b = i.get(g), x = this.getMarkClosing(g, b);
25845
- x && (c += x), i.delete(g);
25873
+ const b = i.get(g), w = this.getMarkClosing(g, b);
25874
+ w && (c += w), i.delete(g);
25846
25875
  }), c += m, s.push(c);
25847
25876
  } else {
25848
25877
  const c = new Map(i), u = eC(i, this.getMarkClosing.bind(this)), d = this.renderNodeToMarkdown(o, e, l, r), f = o.type === "hardBreak" ? "" : tC(c, i, this.getMarkOpening.bind(this));
@@ -25977,7 +26006,7 @@ var nC = class {
25977
26006
  this.editor.options.content = e;
25978
26007
  }
25979
26008
  });
25980
- const hv = /* @__PURE__ */ $({
26009
+ const pv = /* @__PURE__ */ $({
25981
26010
  __name: "TiptapEditor",
25982
26011
  props: {
25983
26012
  content: {},
@@ -26029,7 +26058,7 @@ const hv = /* @__PURE__ */ $({
26029
26058
  G1.name,
26030
26059
  "hasUsedNewline"
26031
26060
  );
26032
- Oe(o, (u) => {
26061
+ Re(o, (u) => {
26033
26062
  r("new-line-state-changed", u || !1);
26034
26063
  });
26035
26064
  const l = ["start", "end", "all"], a = (u) => {
@@ -26070,7 +26099,7 @@ const hv = /* @__PURE__ */ $({
26070
26099
  editor: k(i)
26071
26100
  }, null, 8, ["editor"])) : T("", !0);
26072
26101
  }
26073
- }), sC = ["disabled"], iC = { key: 1 }, pv = /* @__PURE__ */ $({
26102
+ }), sC = ["disabled"], iC = { key: 1 }, mv = /* @__PURE__ */ $({
26074
26103
  __name: "ToggleButton",
26075
26104
  props: {
26076
26105
  active: { type: Boolean },
@@ -26107,14 +26136,14 @@ const hv = /* @__PURE__ */ $({
26107
26136
  }), l = Y(() => r.disabled ? { background: "hsl(0 0% 90%)" } : {}), a = (u) => {
26108
26137
  r.stopPropagation && u.stopPropagation(), r.disabled || s("click");
26109
26138
  };
26110
- return e({ focus: () => i.value.focus() }), (u, d) => t.tooltip ? (y(), H(k(Oi), {
26139
+ return e({ focus: () => i.value.focus() }), (u, d) => t.tooltip ? (y(), H(k(Ri), {
26111
26140
  key: 0,
26112
26141
  hover: "",
26113
26142
  text: t.tooltip,
26114
26143
  delay: t.tooltipDelay,
26115
26144
  placement: t.tooltipPlacement
26116
26145
  }, {
26117
- default: R(() => [
26146
+ default: O(() => [
26118
26147
  C("button", {
26119
26148
  ref_key: "buttonRef",
26120
26149
  ref: i,
@@ -26134,9 +26163,9 @@ const hv = /* @__PURE__ */ $({
26134
26163
  _: 1
26135
26164
  }, 8, ["text", "delay", "placement"])) : T("", !0);
26136
26165
  }
26137
- }), mv = (t) => {
26166
+ }), gv = (t) => {
26138
26167
  t.forEach((e) => e.open = !0);
26139
- }, gv = (t, e, n) => {
26168
+ }, yv = (t, e, n) => {
26140
26169
  let r = t;
26141
26170
  for (const s of e.map((i) => i.id)) {
26142
26171
  if (!r || r.id !== s) {
@@ -26146,7 +26175,7 @@ const hv = /* @__PURE__ */ $({
26146
26175
  if (!r) return;
26147
26176
  }
26148
26177
  return r[n];
26149
- }, yv = (t, e, n, r) => {
26178
+ }, Cv = (t, e, n, r) => {
26150
26179
  let s = t;
26151
26180
  for (const i of e.map((o) => o.id)) {
26152
26181
  if (!s || s.id !== i) {
@@ -26156,7 +26185,7 @@ const hv = /* @__PURE__ */ $({
26156
26185
  if (!s) return !1;
26157
26186
  }
26158
26187
  return s[n] = r, !0;
26159
- }, Cv = (t, e, n, r) => {
26188
+ }, vv = (t, e, n, r) => {
26160
26189
  let s = t;
26161
26190
  for (const i of e.map((o) => o.id)) {
26162
26191
  if (!s || s.id !== i) {
@@ -26178,7 +26207,7 @@ const hv = /* @__PURE__ */ $({
26178
26207
  for (const n of t.children)
26179
26208
  e.push(...lC(n));
26180
26209
  return e;
26181
- }, vv = ({
26210
+ }, bv = ({
26182
26211
  items: t,
26183
26212
  itemIdField: e,
26184
26213
  parentIdField: n,
@@ -26248,7 +26277,7 @@ const hv = /* @__PURE__ */ $({
26248
26277
  class: "h-8 gap-1 pr-1",
26249
26278
  style: Ce({ paddingLeft: `${t.indentation}px` })
26250
26279
  }, {
26251
- default: R(() => [
26280
+ default: O(() => [
26252
26281
  d[4] || (d[4] = C("div", { class: "w-4 h-4" }, null, -1)),
26253
26282
  C("section", aC, [
26254
26283
  C("input", {
@@ -26294,7 +26323,7 @@ const hv = /* @__PURE__ */ $({
26294
26323
  }, hC = { class: "text-xs truncate" }, pC = {
26295
26324
  key: 0,
26296
26325
  class: "relative"
26297
- }, bv = /* @__PURE__ */ $({
26326
+ }, kv = /* @__PURE__ */ $({
26298
26327
  __name: "TreeList",
26299
26328
  props: {
26300
26329
  indentationAmount: { default: 20 },
@@ -26306,7 +26335,7 @@ const hv = /* @__PURE__ */ $({
26306
26335
  emits: ["action", "key", "select", "toggle", "cancel-new-child", "save"],
26307
26336
  setup(t, { emit: e }) {
26308
26337
  const n = e, r = Y(() => t.selection.length > 0 && t.selection[t.selection.length - 1].id === t.node.id), s = Y(() => t.createNewPath.length > 0 && t.createNewPath[t.createNewPath.length - 1].id === t.node.id);
26309
- Oe(() => s.value, (m, g) => {
26338
+ Re(() => s.value, (m, g) => {
26310
26339
  !m && g && o.value && (o.value = !1), i.value = "";
26311
26340
  });
26312
26341
  const i = M(""), o = M(!1), l = () => {
@@ -26325,7 +26354,7 @@ const hv = /* @__PURE__ */ $({
26325
26354
  n("toggle", { path: [t.node, ...m], targetNode: [t.node, ...m][[t.node, ...m].length - 1] });
26326
26355
  };
26327
26356
  return (m, g) => {
26328
- var x;
26357
+ var w;
26329
26358
  const b = eh("TreeList", !0);
26330
26359
  return y(), v(I, null, [
26331
26360
  V(k(ye), {
@@ -26336,7 +26365,7 @@ const hv = /* @__PURE__ */ $({
26336
26365
  "text-secondary hover:text-primary hover:bg-secondary": !r.value
26337
26366
  }]),
26338
26367
  style: Ce({ paddingLeft: `${t.level * t.indentationAmount}px` }),
26339
- onClick: g[1] || (g[1] = (w) => n("select", { path: [t.node], targetNode: t.node })),
26368
+ onClick: g[1] || (g[1] = (x) => n("select", { path: [t.node], targetNode: t.node })),
26340
26369
  onKeydown: [
26341
26370
  g[2] || (g[2] = pe(X(() => {
26342
26371
  }, ["stop", "prevent"]), ["left"])),
@@ -26348,18 +26377,18 @@ const hv = /* @__PURE__ */ $({
26348
26377
  }, ["stop", "prevent"]), ["down"]))
26349
26378
  ],
26350
26379
  onKeyup: [
26351
- g[3] || (g[3] = pe(X((w) => c("left"), ["stop", "prevent"]), ["left"])),
26352
- g[5] || (g[5] = pe(X((w) => c("right"), ["stop", "prevent"]), ["right"])),
26353
- g[7] || (g[7] = pe(X((w) => c("up"), ["stop", "prevent"]), ["up"])),
26354
- g[9] || (g[9] = pe(X((w) => c("down"), ["stop", "prevent"]), ["down"]))
26380
+ g[3] || (g[3] = pe(X((x) => c("left"), ["stop", "prevent"]), ["left"])),
26381
+ g[5] || (g[5] = pe(X((x) => c("right"), ["stop", "prevent"]), ["right"])),
26382
+ g[7] || (g[7] = pe(X((x) => c("up"), ["stop", "prevent"]), ["up"])),
26383
+ g[9] || (g[9] = pe(X((x) => c("down"), ["stop", "prevent"]), ["down"]))
26355
26384
  ]
26356
26385
  }, {
26357
- default: R(() => [
26386
+ default: O(() => [
26358
26387
  V(k(ye), { class: "flex-1 min-w-0 pl-1 gap-1" }, {
26359
- default: R(() => {
26360
- var w;
26388
+ default: O(() => {
26389
+ var x;
26361
26390
  return [
26362
- (w = t.node.children) != null && w.length || s.value ? (y(), v("button", {
26391
+ (x = t.node.children) != null && x.length || s.value ? (y(), v("button", {
26363
26392
  key: 0,
26364
26393
  class: "w-4 h-4 flex items-center justify-center rounded cursor-pointer",
26365
26394
  onClick: g[0] || (g[0] = X((L) => n("toggle", { path: [t.node], targetNode: t.node }), ["stop", "prevent"]))
@@ -26377,13 +26406,13 @@ const hv = /* @__PURE__ */ $({
26377
26406
  key: 0,
26378
26407
  class: "flex-none"
26379
26408
  }, {
26380
- default: R(() => [
26409
+ default: O(() => [
26381
26410
  V(k(Wc), {
26382
26411
  options: t.node.actions,
26383
26412
  placement: "bottom-end",
26384
26413
  onSelect: u
26385
26414
  }, {
26386
- trigger: R(() => [
26415
+ trigger: O(() => [
26387
26416
  V(k(se), {
26388
26417
  icon: "options",
26389
26418
  small: "",
@@ -26398,21 +26427,21 @@ const hv = /* @__PURE__ */ $({
26398
26427
  ]),
26399
26428
  _: 1
26400
26429
  }, 8, ["class", "style"]),
26401
- (s.value || (x = t.node.children) != null && x.length) && t.node.open ? (y(), v("main", pC, [
26430
+ (s.value || (w = t.node.children) != null && w.length) && t.node.open ? (y(), v("main", pC, [
26402
26431
  s.value ? (y(), H(dC, {
26403
26432
  key: 0,
26404
26433
  value: i.value,
26405
26434
  indentation: (t.level + 1) * t.indentationAmount,
26406
26435
  saving: o.value,
26407
- onChange: g[10] || (g[10] = (w) => i.value = w),
26436
+ onChange: g[10] || (g[10] = (x) => i.value = x),
26408
26437
  onSave: l,
26409
26438
  onCancel: a
26410
26439
  }, null, 8, ["value", "indentation", "saving"])) : T("", !0),
26411
- (y(!0), v(I, null, yt(t.node.children, (w) => (y(), H(b, {
26412
- key: w.id,
26440
+ (y(!0), v(I, null, yt(t.node.children, (x) => (y(), H(b, {
26441
+ key: x.id,
26413
26442
  "indentation-amount": t.indentationAmount,
26414
26443
  level: t.level + 1,
26415
- node: w,
26444
+ node: x,
26416
26445
  "create-new-path": t.createNewPath,
26417
26446
  selection: t.selection,
26418
26447
  onAction: d,
@@ -26426,7 +26455,7 @@ const hv = /* @__PURE__ */ $({
26426
26455
  ], 64);
26427
26456
  };
26428
26457
  }
26429
- }), kv = ["fill", "outline", "outlineSubtle", "text", "textSubtle", "destructive"], xv = ["default", "primary", "error"], wv = ["default", "circle"], Lv = ["horizontal", "vertical"], mC = ["start", "center", "end", "stretch"], Mv = [...mC, "between", "around", "evenly"], Sv = ["default", "blurred"], Hv = ["click", "hover", "focus", "manual"], Tv = ["Ok", "Not Ok", "Not Applicable"], Vv = [
26458
+ }), xv = ["fill", "outline", "outlineSubtle", "text", "textSubtle", "destructive"], wv = ["default", "primary", "error"], Lv = ["default", "circle"], Mv = ["horizontal", "vertical"], mC = ["start", "center", "end", "stretch"], Sv = [...mC, "between", "around", "evenly"], Hv = ["default", "blurred"], Tv = ["click", "hover", "focus", "manual"], Vv = ["Ok", "Not Ok", "Not Applicable"], Ev = [
26430
26459
  "admin",
26431
26460
  "agent",
26432
26461
  "agent-message",
@@ -26625,13 +26654,13 @@ const hv = /* @__PURE__ */ $({
26625
26654
  class: z(["relative flex-none w-full overflow-hidden transition-height duration-500 ease-in-out", s.value]),
26626
26655
  style: Ce(i.value)
26627
26656
  }, {
26628
- default: R(() => [
26657
+ default: O(() => [
26629
26658
  F(o.$slots, "default")
26630
26659
  ]),
26631
26660
  _: 3
26632
26661
  }, 8, ["class", "style"]));
26633
26662
  }
26634
- }), Ev = ["header", "footer"], ka = /* @__PURE__ */ $({
26663
+ }), Av = ["header", "footer"], ka = /* @__PURE__ */ $({
26635
26664
  __name: "VerticalLayout",
26636
26665
  props: {
26637
26666
  borders: { type: Boolean, default: !1 },
@@ -26648,23 +26677,23 @@ const hv = /* @__PURE__ */ $({
26648
26677
  justify: "start",
26649
26678
  class: z(["relative h-full overflow-x-hidden", n])
26650
26679
  }, {
26651
- default: R(() => [
26680
+ default: O(() => [
26652
26681
  r.$slots.header ? (y(), H(bc, {
26653
26682
  key: 0,
26654
26683
  type: "header",
26655
26684
  border: t.borders,
26656
26685
  "height-class": t.headerHeightClass
26657
26686
  }, {
26658
- default: R(() => [
26687
+ default: O(() => [
26659
26688
  F(r.$slots, "header")
26660
26689
  ]),
26661
26690
  _: 3
26662
26691
  }, 8, ["border", "height-class"])) : T("", !0),
26663
- V(k(Rs), {
26692
+ V(k(Os), {
26664
26693
  "window-resize": "",
26665
26694
  "wrap-class": "h-full"
26666
26695
  }, {
26667
- default: R(() => [
26696
+ default: O(() => [
26668
26697
  F(r.$slots, "main")
26669
26698
  ]),
26670
26699
  _: 3
@@ -26675,7 +26704,7 @@ const hv = /* @__PURE__ */ $({
26675
26704
  border: t.borders,
26676
26705
  "height-class": t.footerHeightClass
26677
26706
  }, {
26678
- default: R(() => [
26707
+ default: O(() => [
26679
26708
  F(r.$slots, "footer")
26680
26709
  ]),
26681
26710
  _: 3
@@ -26698,68 +26727,68 @@ export {
26698
26727
  EC as BCollapse,
26699
26728
  cr as BConfirmCancel,
26700
26729
  AC as BContentSlider,
26701
- OC as BDataPoint,
26730
+ RC as BDataPoint,
26702
26731
  S5 as BDeleteButton,
26703
- RC as BDialog,
26732
+ OC as BDialog,
26704
26733
  Vc as BFadeInUp,
26705
- R5 as BFilterChip,
26734
+ O5 as BFilterChip,
26706
26735
  DC as BFirstPaint,
26707
26736
  ye as BFlexbox,
26708
26737
  Je as BFormattingButton,
26709
- lv as BFormattingMenuDivider,
26710
- NC as BHorizontalLayout,
26738
+ av as BFormattingMenuDivider,
26739
+ $C as BHorizontalLayout,
26711
26740
  ve as BIcon,
26712
- $C as BInlineFormWrapper,
26741
+ IC as BInlineFormWrapper,
26713
26742
  Qn as BInput,
26714
- IC as BInputNumber,
26715
- uv as BInsertImage,
26716
- cv as BInsertLink,
26743
+ PC as BInputNumber,
26744
+ dv as BInsertImage,
26745
+ uv as BInsertLink,
26717
26746
  Nr as BLoadSpinner,
26718
26747
  J5 as BModal,
26719
- PC as BNavItem,
26720
- zC as BNotification,
26748
+ zC as BNavItem,
26749
+ BC as BNotification,
26721
26750
  Lc as BNotificationBadge,
26722
- BC as BPagination,
26723
- ZC as BPanelLayout,
26724
- FC as BPopCalendar,
26725
- WC as BPopConfirm,
26751
+ ZC as BPagination,
26752
+ FC as BPanelLayout,
26753
+ WC as BPopCalendar,
26754
+ jC as BPopConfirm,
26726
26755
  Wc as BPopSelect,
26727
- jC as BPopSelectFooterButton,
26756
+ UC as BPopSelectFooterButton,
26728
26757
  es as BPopper,
26729
26758
  ts as BPopperContent,
26730
26759
  Ea as BResizablePanel,
26731
26760
  bc as BRunningSection,
26732
26761
  wl as BScreenOverlay,
26733
- UC as BScrollBottomLoader,
26734
- Rs as BScrollbar,
26735
- YC as BSegmentedControls,
26736
- XC as BSelectList,
26737
- GC as BSelectListOption,
26738
- JC as BSelectListOptionGroup,
26739
- ev as BSideOver,
26740
- tv as BStatusSelect,
26741
- nv as BSwitch,
26742
- rv as BTab,
26743
- sv as BTag,
26744
- iv as BTagInput,
26745
- dv as BTextEditor,
26746
- Of as BTextHighlight,
26747
- fv as BTextViewer,
26748
- hv as BTiptapEditor,
26749
- pv as BToggleButton,
26750
- Oi as BTooltip,
26751
- bv as BTreeList,
26762
+ KC as BScrollBottomLoader,
26763
+ Os as BScrollbar,
26764
+ JC as BSegmentedControls,
26765
+ QC as BSelectList,
26766
+ XC as BSelectListOption,
26767
+ GC as BSelectListOptionGroup,
26768
+ tv as BSideOver,
26769
+ nv as BStatusSelect,
26770
+ rv as BSwitch,
26771
+ sv as BTab,
26772
+ iv as BTag,
26773
+ ov as BTagInput,
26774
+ fv as BTextEditor,
26775
+ Rf as BTextHighlight,
26776
+ hv as BTextViewer,
26777
+ pv as BTiptapEditor,
26778
+ mv as BToggleButton,
26779
+ Ri as BTooltip,
26780
+ kv as BTreeList,
26752
26781
  ka as BVerticalLayout,
26753
26782
  Ll as BWindowFrame,
26754
- xv as ButtonType,
26755
- Mv as Justifications,
26756
- Lv as Orientation,
26757
- Sv as OverlayType,
26758
- Hv as PopperTrigger,
26759
- Ev as SectionTypes,
26760
- vv as buildTree,
26761
- kv as buttonVariants,
26762
- wv as checkboxTypes,
26783
+ wv as ButtonType,
26784
+ Sv as Justifications,
26785
+ Mv as Orientation,
26786
+ Hv as OverlayType,
26787
+ Tv as PopperTrigger,
26788
+ Av as SectionTypes,
26789
+ bv as buildTree,
26790
+ xv as buttonVariants,
26791
+ Lv as checkboxTypes,
26763
26792
  Dr as clamp,
26764
26793
  xC as dateDelta,
26765
26794
  VC as dateFormat,
@@ -26770,17 +26799,18 @@ export {
26770
26799
  r0 as dbDate,
26771
26800
  s0 as dbDateTime,
26772
26801
  $5 as debounce,
26773
- KC as egdes,
26802
+ qC as egdes,
26774
26803
  oC as flattenTree,
26775
26804
  lC as flattenTreeNodes,
26776
26805
  TC as formatDate,
26777
26806
  Wh as getDecade,
26778
- gv as getNodeValueByPath,
26807
+ NC as getModifierKeyIcon,
26808
+ yv as getNodeValueByPath,
26779
26809
  LC as getWeekNumber,
26780
- Vv as icons,
26810
+ Ev as icons,
26781
26811
  xs as loopRange,
26782
26812
  hr as moveDate,
26783
- mv as openPath,
26813
+ gv as openPath,
26784
26814
  Qe as parseDate,
26785
26815
  MC as printDate,
26786
26816
  Sh as range,
@@ -26788,17 +26818,17 @@ export {
26788
26818
  t0 as readableDateTime,
26789
26819
  n0 as readableDateTimeWithDay,
26790
26820
  e0 as readableDateWithDay,
26791
- qC as scrollDirections,
26821
+ YC as scrollDirections,
26792
26822
  Ec as scrollIntoView,
26793
26823
  I5 as scrollbarWidth,
26794
- _C as selectOptionVariants,
26795
- Cv as setNodeObjectValueByPath,
26796
- yv as setNodeValueByPath,
26797
- QC as states,
26798
- Tv as statuses,
26824
+ ev as selectOptionVariants,
26825
+ vv as setNodeObjectValueByPath,
26826
+ Cv as setNodeValueByPath,
26827
+ _C as states,
26828
+ Vv as statuses,
26799
26829
  SC as stringifyDate,
26800
26830
  HC as stringifyDatetime,
26801
- ov as tagInputEmailValidator,
26831
+ lv as tagInputEmailValidator,
26802
26832
  ml as useClickOutside,
26803
26833
  gl as useEscapeKey,
26804
26834
  m0 as useMounted,