@firstnoodle-ui/bui 0.0.29 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +252 -247
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var op = Object.defineProperty;
2
2
  var sp = (n, e, t) => e in n ? op(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var Ir = (n, e, t) => sp(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { createElementBlock as v, openBlock as g, renderSlot as J, createElementVNode as w, defineComponent as j, toDisplayString as ge, normalizeStyle as Te, createVNode as I, unref as k, ref as V, computed as te, createBlock as D, withCtx as z, resolveDynamicComponent as hr, normalizeClass as U, createCommentVNode as N, provide as lp, onMounted as Se, withModifiers as re, Fragment as O, renderList as Qt, onBeforeMount as Hr, watch as Xe, toRef as ap, onBeforeUnmount as Bt, onUnmounted as cs, nextTick as bn, createStaticVNode as _, Teleport as Mi, withDirectives as Tr, vShow as xi, Transition as Jl, useSlots as Si, withKeys as be, createSlots as sd, vModelText as up, reactive as ld, createTextVNode as ad, shallowRef as dp, h as Hi, getCurrentInstance as cp, watchEffect as fp, markRaw as pp, customRef as hp } from "vue";
4
+ import { createElementBlock as v, openBlock as g, renderSlot as J, createElementVNode as w, defineComponent as j, toDisplayString as ge, normalizeStyle as Te, createVNode as P, unref as k, ref as V, computed as te, createBlock as D, withCtx as z, resolveDynamicComponent as hr, normalizeClass as U, createCommentVNode as N, provide as lp, onMounted as Se, withModifiers as re, Fragment as O, renderList as Qt, onBeforeMount as Hr, watch as Xe, toRef as ap, onBeforeUnmount as Bt, onUnmounted as cs, nextTick as bn, createStaticVNode as _, Teleport as Mi, withDirectives as Tr, vShow as xi, Transition as Jl, useSlots as Si, withKeys as be, createSlots as sd, vModelText as up, reactive as ld, createTextVNode as ad, shallowRef as dp, h as Hi, getCurrentInstance as cp, watchEffect as fp, markRaw as pp, customRef as hp } from "vue";
5
5
  const Mn = (n, e) => {
6
6
  const t = n.__vccOpts || n;
7
7
  for (const [r, i] of e)
@@ -78,7 +78,7 @@ const e1 = /* @__PURE__ */ Mn(wp, [["render", Mp]]), xp = { class: "w-3 h-3 bg-o
78
78
  right: e.inside ? "0.15em" : "-0.3em"
79
79
  })
80
80
  }, [
81
- I(k(ud))
81
+ P(k(ud))
82
82
  ], 4));
83
83
  }
84
84
  }), fe = /* @__PURE__ */ j({
@@ -205,7 +205,7 @@ const e1 = /* @__PURE__ */ Mn(wp, [["render", Mp]]), xp = { class: "w-3 h-3 bg-o
205
205
  onBlur: p[0] || (p[0] = (h) => i("blur"))
206
206
  }, {
207
207
  default: z(() => [
208
- I(k(e1), null, {
208
+ P(k(e1), null, {
209
209
  default: z(() => [
210
210
  f.loading ? (g(), D(k(si), {
211
211
  key: 0,
@@ -248,7 +248,7 @@ const e1 = /* @__PURE__ */ Mn(wp, [["render", Mp]]), xp = { class: "w-3 h-3 bg-o
248
248
  onBlur: p[1] || (p[1] = (h) => i("blur"))
249
249
  }, {
250
250
  default: z(() => [
251
- I(k(e1), null, {
251
+ P(k(e1), null, {
252
252
  default: z(() => [
253
253
  f.loading ? (g(), D(k(si), {
254
254
  key: 0,
@@ -342,13 +342,13 @@ const n1 = {
342
342
  const t = n, r = e, i = te(() => `${t.viewData[0].label} - ${t.viewData[t.viewData.length - 1].label}`);
343
343
  return (o, s) => (g(), v("div", null, [
344
344
  w("nav", Ep, [
345
- I(k(fe), {
345
+ P(k(fe), {
346
346
  icon: "chevron-left",
347
347
  variant: "textSubtle",
348
348
  onClick: s[0] || (s[0] = (l) => r("move", { amount: -10, unit: k(me).YEAR }))
349
349
  }),
350
350
  w("div", Op, ge(i.value), 1),
351
- I(k(fe), {
351
+ P(k(fe), {
352
352
  icon: "chevron-right",
353
353
  variant: "textSubtle",
354
354
  onClick: s[1] || (s[1] = (l) => r("move", { amount: 10, unit: k(me).YEAR }))
@@ -408,34 +408,34 @@ const Dp = /* @__PURE__ */ j({
408
408
  const t = e;
409
409
  return (r, i) => (g(), v("div", null, [
410
410
  w("nav", Np, [
411
- I(k(fe), {
411
+ P(k(fe), {
412
412
  variant: "textSubtle",
413
413
  icon: "chevron-left-double",
414
414
  onClick: i[0] || (i[0] = (o) => t("move", { amount: -1, unit: k(me).YEAR }))
415
415
  }),
416
- I(k(fe), {
416
+ P(k(fe), {
417
417
  variant: "textSubtle",
418
418
  icon: "chevron-left",
419
419
  onClick: i[1] || (i[1] = (o) => t("move", { amount: -1, unit: k(me).MONTH }))
420
420
  }),
421
421
  w("div", Rp, [
422
- I(k(fe), {
422
+ P(k(fe), {
423
423
  variant: "textSubtle",
424
424
  label: k(dd)(r.currentMonth.slice(0, 3)),
425
425
  onClick: i[2] || (i[2] = (o) => t("change-view", k(me).YEAR))
426
426
  }, null, 8, ["label"]),
427
- I(k(fe), {
427
+ P(k(fe), {
428
428
  variant: "textSubtle",
429
429
  label: r.currentYear.toString(),
430
430
  onClick: i[3] || (i[3] = (o) => t("change-view", k(me).DECADE))
431
431
  }, null, 8, ["label"])
432
432
  ]),
433
- I(k(fe), {
433
+ P(k(fe), {
434
434
  variant: "textSubtle",
435
435
  icon: "chevron-right",
436
436
  onClick: i[4] || (i[4] = (o) => t("move", { amount: 1, unit: k(me).MONTH }))
437
437
  }),
438
- I(k(fe), {
438
+ P(k(fe), {
439
439
  variant: "textSubtle",
440
440
  icon: "chevron-right-double",
441
441
  onClick: i[5] || (i[5] = (o) => t("move", { amount: 1, unit: k(me).YEAR }))
@@ -467,13 +467,13 @@ const Dp = /* @__PURE__ */ j({
467
467
  const t = e;
468
468
  return (r, i) => (g(), v("div", null, [
469
469
  w("nav", Bp, [
470
- I(k(fe), {
470
+ P(k(fe), {
471
471
  icon: "chevron-left",
472
472
  variant: "textSubtle",
473
473
  onClick: i[0] || (i[0] = (o) => t("move", { amount: -1, unit: "YEAR" }))
474
474
  }),
475
475
  w("div", Zp, ge(r.currentYear), 1),
476
- I(k(fe), {
476
+ P(k(fe), {
477
477
  icon: "chevron-right",
478
478
  variant: "textSubtle",
479
479
  onClick: i[1] || (i[1] = (o) => t("move", { amount: 1, unit: "YEAR" }))
@@ -816,7 +816,7 @@ const Yp = (n = null, e) => {
816
816
  }, null, 8, ["view-data", "onMove", "onSelect"])) : N("", !0)
817
817
  ]),
818
818
  m.clearable ? (g(), v("footer", ih, [
819
- I(k(fe), {
819
+ P(k(fe), {
820
820
  square: "",
821
821
  size: "tiny",
822
822
  variant: "outlineSubtle",
@@ -1031,7 +1031,7 @@ const Yp = (n = null, e) => {
1031
1031
  emits: ["confirm", "cancel"],
1032
1032
  setup(n, { emit: e }) {
1033
1033
  const t = n, r = e, i = te(() => t.order === "confirm-first");
1034
- return (o, s) => (g(), D(k(Ie), {
1034
+ return (o, s) => (g(), D(k(Ve), {
1035
1035
  col: o.vertical,
1036
1036
  class: "gap-2"
1037
1037
  }, {
@@ -1048,7 +1048,7 @@ const Yp = (n = null, e) => {
1048
1048
  class: U({ "flex-1": o.fillContainer }),
1049
1049
  onClick: s[0] || (s[0] = (l) => r("confirm"))
1050
1050
  }, null, 8, ["small", "icon", "label", "variant", "disabled", "loading", "class"])) : N("", !0),
1051
- I(k(fe), {
1051
+ P(k(fe), {
1052
1052
  variant: o.cancelVariant,
1053
1053
  "stop-propagation": "",
1054
1054
  disabled: o.cancelDisabled,
@@ -1148,7 +1148,7 @@ const mh = () => {
1148
1148
  class: "relative flex-1 flex items-center py-1 overflow-hidden whitespace-nowrap"
1149
1149
  }, [
1150
1150
  u.value ? (g(), v("aside", gh, [
1151
- I(k(fe), {
1151
+ P(k(fe), {
1152
1152
  small: "",
1153
1153
  icon: "chevron-left",
1154
1154
  variant: "outline",
@@ -1815,7 +1815,7 @@ const by = /* @__PURE__ */ Mn(vh, [["render", Ch]]), bh = {
1815
1815
  class: "flex items-center justify-center w-4 h-4 rounded-full hover:bg-black/15 focus-visible:bg-black/15 active:bg-black/25 dark:hover:bg-white/15 dark:focus-visible:bg-white/15 dark:active:bg-white/25 text-primary cursor-pointer",
1816
1816
  onClick: t[0] || (t[0] = re((r) => e.$emit("click"), ["stop", "prevent"]))
1817
1817
  }, [
1818
- I(k(xe), { name: "close" })
1818
+ P(k(xe), { name: "close" })
1819
1819
  ]));
1820
1820
  }
1821
1821
  }), O0 = { class: "flex items-center justify-between w-full h-12" }, V0 = { key: 0 }, A0 = { key: 1 }, D0 = { class: "flex items-center h-12" }, ky = /* @__PURE__ */ j({
@@ -1837,7 +1837,7 @@ const by = /* @__PURE__ */ Mn(vh, [["render", Ch]]), bh = {
1837
1837
  return e({ close: l }), (d, c) => (g(), D(Mi, {
1838
1838
  to: r.target
1839
1839
  }, [
1840
- I(k(oa), {
1840
+ P(k(oa), {
1841
1841
  show: o.value,
1842
1842
  type: d.overlayType,
1843
1843
  class: "p-2 md:pt-32",
@@ -1845,15 +1845,15 @@ const by = /* @__PURE__ */ Mn(vh, [["render", Ch]]), bh = {
1845
1845
  onClose: c[0] || (c[0] = (f) => i("close"))
1846
1846
  }, {
1847
1847
  default: z(() => [
1848
- I(k(hd), { onTransitionAfterEnter: u }, {
1848
+ P(k(hd), { onTransitionAfterEnter: u }, {
1849
1849
  default: z(() => [
1850
- Tr(I(k(Xf), {
1850
+ Tr(P(k(Xf), {
1851
1851
  ref_key: "windowRef",
1852
1852
  ref: s,
1853
1853
  class: "h-64 max-w-2xl md:w-1/2 md:max-w-lg p-4 md:px-8"
1854
1854
  }, {
1855
1855
  default: z(() => [
1856
- I(k(Ga), null, {
1856
+ P(k(Ga), null, {
1857
1857
  header: z(() => [
1858
1858
  w("header", O0, [
1859
1859
  r.title ? (g(), v("h4", V0, ge(r.title), 1)) : (g(), v("h4", A0, [
@@ -1960,7 +1960,7 @@ const by = /* @__PURE__ */ Mn(vh, [["render", Ch]]), bh = {
1960
1960
  ])
1961
1961
  ], 2));
1962
1962
  }
1963
- }), Ie = /* @__PURE__ */ j({
1963
+ }), Ve = /* @__PURE__ */ j({
1964
1964
  __name: "Flexbox",
1965
1965
  props: {
1966
1966
  align: { default: "center" },
@@ -2204,7 +2204,7 @@ const Z0 = () => {
2204
2204
  "items-center": !d.multiline
2205
2205
  }])
2206
2206
  }, [
2207
- I(k(xe), {
2207
+ P(k(xe), {
2208
2208
  name: d.icon,
2209
2209
  class: "text-secondary"
2210
2210
  }, null, 8, ["name"])
@@ -2266,7 +2266,7 @@ const Z0 = () => {
2266
2266
  }]),
2267
2267
  onClick: s[0] || (s[0] = (l) => r("click"))
2268
2268
  }, [
2269
- I(k(xe), {
2269
+ P(k(xe), {
2270
2270
  name: o.direction === "up" ? "chevron-up-small" : "chevron-down-small"
2271
2271
  }, null, 8, ["name"])
2272
2272
  ], 2));
@@ -2311,7 +2311,7 @@ const Z0 = () => {
2311
2311
  }])
2312
2312
  }, [
2313
2313
  p.icon ? (g(), v("div", U0, [
2314
- I(k(xe), {
2314
+ P(k(xe), {
2315
2315
  name: p.icon,
2316
2316
  class: "text-tertiary"
2317
2317
  }, null, 8, ["name"])
@@ -2344,13 +2344,13 @@ const Z0 = () => {
2344
2344
  onInput: re(a, ["stop", "prevent"])
2345
2345
  }, null, 40, K0),
2346
2346
  w("section", q0, [
2347
- I(o1, {
2347
+ P(o1, {
2348
2348
  ref_key: "upButtonRef",
2349
2349
  ref: o,
2350
2350
  direction: "up",
2351
2351
  onClick: h[6] || (h[6] = (m) => c(1))
2352
2352
  }, null, 512),
2353
- I(o1, {
2353
+ P(o1, {
2354
2354
  ref_key: "downButtonRef",
2355
2355
  ref: s,
2356
2356
  direction: "down",
@@ -2407,7 +2407,7 @@ const si = /* @__PURE__ */ Mn(Y0, [["render", _0]]), G0 = {
2407
2407
  i("ready");
2408
2408
  };
2409
2409
  return e({ close: a }), (c, f) => (g(), D(Mi, { to: c.target }, [
2410
- I(k(oa), {
2410
+ P(k(oa), {
2411
2411
  show: l.value,
2412
2412
  type: c.overlayType,
2413
2413
  class: U(r.expandVertically ? "p-2 md:p-12" : "p-2 md:pt-32"),
@@ -2415,9 +2415,9 @@ const si = /* @__PURE__ */ Mn(Y0, [["render", _0]]), G0 = {
2415
2415
  onClose: f[0] || (f[0] = (p) => i("close"))
2416
2416
  }, {
2417
2417
  default: z(() => [
2418
- I(k(hd), { onTransitionAfterEnter: d }, {
2418
+ P(k(hd), { onTransitionAfterEnter: d }, {
2419
2419
  default: z(() => [
2420
- Tr(I(k(Xf), {
2420
+ Tr(P(k(Xf), {
2421
2421
  ref_key: "windowRef",
2422
2422
  ref: s,
2423
2423
  class: U(["h-full", [
@@ -2530,8 +2530,8 @@ const si = /* @__PURE__ */ Mn(Y0, [["render", _0]]), G0 = {
2530
2530
  }
2531
2531
  }), t5 = {
2532
2532
  "data-theme": "dark",
2533
- class: "inline-flex items-stretch h-10 px-1 rounded-xl bg-black shadow-xl pointer-events-auto"
2534
- }, n5 = { class: "text-sm cursor-default" }, Hy = /* @__PURE__ */ j({
2533
+ class: "inline-flex items-stretch h-10 px-1 rounded-xl bg-black shadow-xl pointer-events-auto justify-between"
2534
+ }, n5 = { class: "text-sm cursor-default truncate min-w-0" }, Hy = /* @__PURE__ */ j({
2535
2535
  __name: "Notification",
2536
2536
  props: {
2537
2537
  showDetailsButton: { type: Boolean },
@@ -2542,8 +2542,8 @@ const si = /* @__PURE__ */ Mn(Y0, [["render", _0]]), G0 = {
2542
2542
  setup(n, { emit: e }) {
2543
2543
  const t = e, r = te(() => n.type === "default" ? "information" : n.type === "error" ? "error" : n.type === "warning" ? "warning" : "check-circled");
2544
2544
  return (i, o) => (g(), v("div", t5, [
2545
- I(k(Ie), {
2546
- class: U(["gap-2 px-3 rounded-l-lg", {
2545
+ P(k(Ve), {
2546
+ class: U(["gap-2 px-3 rounded-l-lg flex-1 overflow-hidden", {
2547
2547
  "text-stone-300": i.type === "default",
2548
2548
  "text-amber-300": i.type === "warning",
2549
2549
  "text-red-300": i.type === "error",
@@ -2551,30 +2551,35 @@ const si = /* @__PURE__ */ Mn(Y0, [["render", _0]]), G0 = {
2551
2551
  }])
2552
2552
  }, {
2553
2553
  default: z(() => [
2554
- I(k(xe), { name: r.value }, null, 8, ["name"]),
2554
+ P(k(xe), { name: r.value }, null, 8, ["name"]),
2555
2555
  w("span", n5, ge(i.text), 1)
2556
2556
  ]),
2557
2557
  _: 1
2558
2558
  }, 8, ["class"]),
2559
- I(k(Ie), { class: "px-2" }, {
2559
+ P(k(Ve), null, {
2560
2560
  default: z(() => [
2561
- i.showDetailsButton ? (g(), D(k(fe), {
2562
- key: 0,
2563
- small: "",
2564
- variant: "outline",
2565
- label: "Details",
2566
- onClick: o[0] || (o[0] = (s) => t("show-details"))
2567
- })) : N("", !0)
2568
- ]),
2569
- _: 1
2570
- }),
2571
- I(k(Ie), { class: "px-1" }, {
2572
- default: z(() => [
2573
- I(k(fe), {
2574
- small: "",
2575
- variant: "textSubtle",
2576
- icon: "close",
2577
- onClick: o[1] || (o[1] = (s) => t("close"))
2561
+ P(k(Ve), { class: "px-2" }, {
2562
+ default: z(() => [
2563
+ i.showDetailsButton ? (g(), D(k(fe), {
2564
+ key: 0,
2565
+ small: "",
2566
+ variant: "outline",
2567
+ label: "Details",
2568
+ onClick: o[0] || (o[0] = (s) => t("show-details"))
2569
+ })) : N("", !0)
2570
+ ]),
2571
+ _: 1
2572
+ }),
2573
+ P(k(Ve), { class: "px-1" }, {
2574
+ default: z(() => [
2575
+ P(k(fe), {
2576
+ small: "",
2577
+ variant: "textSubtle",
2578
+ icon: "close",
2579
+ onClick: o[1] || (o[1] = (s) => t("close"))
2580
+ })
2581
+ ]),
2582
+ _: 1
2578
2583
  })
2579
2584
  ]),
2580
2585
  _: 1
@@ -2602,14 +2607,14 @@ const si = /* @__PURE__ */ Mn(Y0, [["render", _0]]), G0 = {
2602
2607
  ref: r,
2603
2608
  class: "relative z-0 inline-flex"
2604
2609
  }, [
2605
- I(k(fe), {
2610
+ P(k(fe), {
2606
2611
  variant: k(a),
2607
2612
  icon: c.orientation === "horizontal" ? "chevron-left" : "chevron-up",
2608
2613
  style: Te(k(o)),
2609
2614
  class: "z-0 hover:z-10 focus:z-10 active:z-10",
2610
2615
  onClick: f[0] || (f[0] = (p) => u(-1))
2611
2616
  }, null, 8, ["variant", "icon", "style"]),
2612
- I(k(yd), {
2617
+ P(k(yd), {
2613
2618
  "same-width-as-element": r.value,
2614
2619
  placement: "bottom",
2615
2620
  value: c.currentPage,
@@ -2617,7 +2622,7 @@ const si = /* @__PURE__ */ Mn(Y0, [["render", _0]]), G0 = {
2617
2622
  onSelect: d
2618
2623
  }, {
2619
2624
  trigger: z((p) => [
2620
- I(k(fe), {
2625
+ P(k(fe), {
2621
2626
  variant: k(a),
2622
2627
  label: `${c.currentPage} / ${c.lastPage}`,
2623
2628
  style: Te(k(l)),
@@ -2627,7 +2632,7 @@ const si = /* @__PURE__ */ Mn(Y0, [["render", _0]]), G0 = {
2627
2632
  ]),
2628
2633
  _: 1
2629
2634
  }, 8, ["same-width-as-element", "value", "options"]),
2630
- I(k(fe), {
2635
+ P(k(fe), {
2631
2636
  variant: k(a),
2632
2637
  icon: c.orientation === "horizontal" ? "chevron-right" : "chevron-down",
2633
2638
  style: Te(k(s)),
@@ -2686,7 +2691,7 @@ const si = /* @__PURE__ */ Mn(Y0, [["render", _0]]), G0 = {
2686
2691
  ])
2687
2692
  ]),
2688
2693
  content: z(() => [
2689
- I(k(Od), null, {
2694
+ P(k(Od), null, {
2690
2695
  default: z(() => [
2691
2696
  w("div", {
2692
2697
  ref_key: "contentRef",
@@ -2700,7 +2705,7 @@ const si = /* @__PURE__ */ Mn(Y0, [["render", _0]]), G0 = {
2700
2705
  w("h5", null, ge(d.title), 1),
2701
2706
  w("p", o5, ge(d.description), 1)
2702
2707
  ])) : N("", !0),
2703
- I(k(_l), {
2708
+ P(k(_l), {
2704
2709
  vertical: !(d.title || d.description),
2705
2710
  small: d.small,
2706
2711
  "cancel-variant": d.cancelVariant,
@@ -2851,7 +2856,7 @@ const a5 = ["onKeydown"], u5 = /* @__PURE__ */ j({
2851
2856
  ), Hr(() => {
2852
2857
  r.filterable && r.remoteMethod && console.warn('[PopSelect] should not have both "filterable" and "remoteMethod" props at the same time'), B(r.options);
2853
2858
  });
2854
- const E = () => p.value.close(), T = () => p.value.open(), P = async () => {
2859
+ const E = () => p.value.close(), T = () => p.value.open(), I = async () => {
2855
2860
  b(() => {
2856
2861
  h.value && b(() => h.value.update()), c.value && b(() => c.value.focus());
2857
2862
  });
@@ -2895,7 +2900,7 @@ const a5 = ["onKeydown"], u5 = /* @__PURE__ */ j({
2895
2900
  "root-class": Y.rootClass,
2896
2901
  "trigger-class": Y.triggerClass,
2897
2902
  onClose: ne,
2898
- onOpen: P
2903
+ onOpen: I
2899
2904
  }, {
2900
2905
  default: z((ae) => [
2901
2906
  J(Y.$slots, "trigger", {
@@ -2904,7 +2909,7 @@ const a5 = ["onKeydown"], u5 = /* @__PURE__ */ j({
2904
2909
  })
2905
2910
  ]),
2906
2911
  content: z(() => [
2907
- I(k(Od), {
2912
+ P(k(Od), {
2908
2913
  ref_key: "contentRef",
2909
2914
  ref: u,
2910
2915
  class: U(["flex flex-col", { "h-72": Y.fixedHeight }])
@@ -2912,7 +2917,7 @@ const a5 = ["onKeydown"], u5 = /* @__PURE__ */ j({
2912
2917
  default: z(() => [
2913
2918
  Y.filterable || Y.remoteMethod || Y.resultFilters ? (g(), v("header", f5, [
2914
2919
  Y.filterable || Y.remoteMethod ? (g(), v("header", p5, [
2915
- I(k(xe), {
2920
+ P(k(xe), {
2916
2921
  name: "magnifying-glass",
2917
2922
  class: "text-light-blue"
2918
2923
  }),
@@ -2954,7 +2959,7 @@ const a5 = ["onKeydown"], u5 = /* @__PURE__ */ j({
2954
2959
  J(Y.$slots, "error")
2955
2960
  ], 512)) : M.value === k(Ht).LOADING ? (g(), v("div", m5, [
2956
2961
  w("div", g5, [
2957
- I(k(si), { class: "w-4 h-4 text-granite-grey" }),
2962
+ P(k(si), { class: "w-4 h-4 text-granite-grey" }),
2958
2963
  w("span", y5, ge(Y.loadingText), 1)
2959
2964
  ])
2960
2965
  ])) : M.value === k(Ht).NO_MATCH ? (g(), v("div", v5, [...X[5] || (X[5] = [
@@ -2964,7 +2969,7 @@ const a5 = ["onKeydown"], u5 = /* @__PURE__ */ j({
2964
2969
  ], -1)
2965
2970
  ])])) : M.value === k(Ht).IDLE ? (g(), v("div", C5, [
2966
2971
  w("div", b5, [
2967
- I(k(xe), { name: Y.emptyStateIcon }, null, 8, ["name"]),
2972
+ P(k(xe), { name: Y.emptyStateIcon }, null, 8, ["name"]),
2968
2973
  w("span", k5, ge(Y.emptyStateText), 1)
2969
2974
  ]),
2970
2975
  X[6] || (X[6] = w("div", { class: "h-8 w-full bg-primary" }, null, -1))
@@ -2994,7 +2999,7 @@ const a5 = ["onKeydown"], u5 = /* @__PURE__ */ j({
2994
2999
  key: 0,
2995
3000
  name: ae.icon
2996
3001
  }, null, 8, ["name"])) : N("", !0),
2997
- I(k(Gf), {
3002
+ P(k(Gf), {
2998
3003
  bold: "",
2999
3004
  underline: "",
3000
3005
  value: ae.label,
@@ -3306,12 +3311,12 @@ const $5 = function(n) {
3306
3311
  const b = kn(i), L = Yt(l), x = kn(l) === l, C = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), S = f || (x || !m ? [vo(l)] : O5(l)), M = h !== "none";
3307
3312
  !f && M && S.push(...N5(l, m, h, C));
3308
3313
  const B = [l, ...S], E = await ea(e, y), T = [];
3309
- let P = ((r = o.flip) == null ? void 0 : r.overflows) || [];
3314
+ let I = ((r = o.flip) == null ? void 0 : r.overflows) || [];
3310
3315
  if (d && T.push(E[b]), c) {
3311
3316
  const Q = E5(i, s, C);
3312
3317
  T.push(E[Q[0]], E[Q[1]]);
3313
3318
  }
3314
- if (P = [...P, {
3319
+ if (I = [...I, {
3315
3320
  placement: i,
3316
3321
  overflows: T
3317
3322
  }], !T.every((Q) => Q <= 0)) {
@@ -3319,22 +3324,22 @@ const $5 = function(n) {
3319
3324
  const Q = (((ne = o.flip) == null ? void 0 : ne.index) || 0) + 1, Ce = B[Q];
3320
3325
  if (Ce && (!(c === "alignment" ? L !== Yt(Ce) : !1) || // We leave the current main axis only if every placement on that axis
3321
3326
  // overflows the main axis.
3322
- P.every((de) => Yt(de.placement) === L ? de.overflows[0] > 0 : !0)))
3327
+ I.every((de) => Yt(de.placement) === L ? de.overflows[0] > 0 : !0)))
3323
3328
  return {
3324
3329
  data: {
3325
3330
  index: Q,
3326
- overflows: P
3331
+ overflows: I
3327
3332
  },
3328
3333
  reset: {
3329
3334
  placement: Ce
3330
3335
  }
3331
3336
  };
3332
- let le = (Z = P.filter((pe) => pe.overflows[0] <= 0).sort((pe, de) => pe.overflows[1] - de.overflows[1])[0]) == null ? void 0 : Z.placement;
3337
+ let le = (Z = I.filter((pe) => pe.overflows[0] <= 0).sort((pe, de) => pe.overflows[1] - de.overflows[1])[0]) == null ? void 0 : Z.placement;
3333
3338
  if (!le)
3334
3339
  switch (p) {
3335
3340
  case "bestFit": {
3336
3341
  var F;
3337
- const pe = (F = P.filter((de) => {
3342
+ const pe = (F = I.filter((de) => {
3338
3343
  if (M) {
3339
3344
  const Le = Yt(de.placement);
3340
3345
  return Le === L || // Create a bias to the `y` side axis due to horizontal
@@ -3490,8 +3495,8 @@ const F5 = function(n) {
3490
3495
  const L = m - d.top - d.bottom, x = h - d.left - d.right, C = gr(m - d[y], L), S = gr(h - d[b], x), M = !e.middlewareData.shift;
3491
3496
  let B = C, E = S;
3492
3497
  if ((t = e.middlewareData.shift) != null && t.enabled.x && (E = x), (r = e.middlewareData.shift) != null && r.enabled.y && (B = L), M && !f) {
3493
- const P = ot(d.left, 0), ne = ot(d.right, 0), Z = ot(d.top, 0), F = ot(d.bottom, 0);
3494
- p ? E = h - 2 * (P !== 0 || ne !== 0 ? P + ne : ot(d.left, d.right)) : B = m - 2 * (Z !== 0 || F !== 0 ? Z + F : ot(d.top, d.bottom));
3498
+ const I = ot(d.left, 0), ne = ot(d.right, 0), Z = ot(d.top, 0), F = ot(d.bottom, 0);
3499
+ p ? E = h - 2 * (I !== 0 || ne !== 0 ? I + ne : ot(d.left, d.right)) : B = m - 2 * (Z !== 0 || F !== 0 ? Z + F : ot(d.top, d.bottom));
3495
3500
  }
3496
3501
  await a({
3497
3502
  ...e,
@@ -4096,11 +4101,11 @@ const ml = /* @__PURE__ */ b2(w2), L2 = Ed({
4096
4101
  y2()
4097
4102
  ];
4098
4103
  r.popperWidthClass || (r.sameWidthAsTrigger ? T.push(L2) : r.sameWidthAsElement && T.push(M2(r.sameWidthAsElement)));
4099
- const P = await C2(u.value, a.value, {
4104
+ const I = await C2(u.value, a.value, {
4100
4105
  placement: r.placement,
4101
4106
  middleware: T
4102
4107
  });
4103
- a.value.style.left = `${P.x}px`, a.value.style.top = `${P.y}px`;
4108
+ a.value.style.left = `${I.x}px`, a.value.style.top = `${I.y}px`;
4104
4109
  }
4105
4110
  };
4106
4111
  Se(() => {
@@ -4137,20 +4142,20 @@ const ml = /* @__PURE__ */ b2(w2), L2 = Ed({
4137
4142
  containerRef: l,
4138
4143
  open: b,
4139
4144
  updateClickOutsideTargets: B
4140
- }), (T, P) => (g(), v("div", {
4145
+ }), (T, I) => (g(), v("div", {
4141
4146
  ref_key: "containerRef",
4142
4147
  ref: l,
4143
4148
  class: U(T.rootClass),
4144
- onMouseleave: P[6] || (P[6] = (ne) => T.trigger === "hover" && S())
4149
+ onMouseleave: I[6] || (I[6] = (ne) => T.trigger === "hover" && S())
4145
4150
  }, [
4146
4151
  w("div", {
4147
4152
  ref_key: "triggerRef",
4148
4153
  ref: u,
4149
4154
  class: U(T.triggerClass),
4150
- onMouseover: P[0] || (P[0] = (ne) => T.trigger === "hover" && C()),
4155
+ onMouseover: I[0] || (I[0] = (ne) => T.trigger === "hover" && C()),
4151
4156
  onClick: M,
4152
- onFocus: P[1] || (P[1] = (ne) => T.trigger === "focus" && C()),
4153
- onKeyup: P[2] || (P[2] = be((ne) => S(), ["esc"]))
4157
+ onFocus: I[1] || (I[1] = (ne) => T.trigger === "focus" && C()),
4158
+ onKeyup: I[2] || (I[2] = be((ne) => S(), ["esc"]))
4154
4159
  }, [
4155
4160
  J(T.$slots, "default", { visible: d.value })
4156
4161
  ], 34),
@@ -4162,7 +4167,7 @@ const ml = /* @__PURE__ */ b2(w2), L2 = Ed({
4162
4167
  T.useOverlay && T.trigger !== "hover" && T.trigger !== "manual" ? (g(), v("div", {
4163
4168
  key: 0,
4164
4169
  class: "pointer-events-auto absolute w-screen h-screen top-0 left-0 bg-transparent",
4165
- onClick: P[3] || (P[3] = (ne) => S())
4170
+ onClick: I[3] || (I[3] = (ne) => S())
4166
4171
  }, [
4167
4172
  Tr(w("div", {
4168
4173
  ref_key: "popperRef",
@@ -4181,8 +4186,8 @@ const ml = /* @__PURE__ */ b2(w2), L2 = Ed({
4181
4186
  ref_key: "popperRef",
4182
4187
  ref: a,
4183
4188
  class: U(["absolute", T.popperWidthClass]),
4184
- onMouseover: P[4] || (P[4] = (ne) => T.trigger === "hover" && C()),
4185
- onMouseleave: P[5] || (P[5] = (ne) => T.trigger === "hover" && S())
4189
+ onMouseover: I[4] || (I[4] = (ne) => T.trigger === "hover" && C()),
4190
+ onMouseleave: I[5] || (I[5] = (ne) => T.trigger === "hover" && S())
4186
4191
  }, [
4187
4192
  J(T.$slots, "content", {
4188
4193
  close: y,
@@ -4347,8 +4352,8 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
4347
4352
  a.value = m.value.scrollTop * 100 / m.value.clientHeight, l.value = m.value.scrollLeft * 100 / m.value.clientWidth, i("scroll", m.value.scrollTop);
4348
4353
  const E = m.value.scrollTop + m.value.clientHeight, T = m.value.scrollHeight;
4349
4354
  if (u.value > 0 && m.value.scrollTop === 0 ? i("intersect", { edge: "top", hit: !0 }) : u.value === 0 && m.value.scrollTop > 0 ? i("intersect", { edge: "top", hit: !1 }) : u.value + m.value.clientHeight < T && E === T ? i("intersect", { edge: "bottom", hit: !0 }) : u.value + m.value.clientHeight === T && E < T && i("intersect", { edge: "bottom", hit: !1 }), r.triggers)
4350
- for (const P of r.triggers)
4351
- u.value < P.px && m.value.scrollTop >= P.px ? P.callback(P, "down") : u.value > P.px && m.value.scrollTop <= P.px && P.callback(P, "up");
4355
+ for (const I of r.triggers)
4356
+ u.value < I.px && m.value.scrollTop >= I.px ? I.callback(I, "down") : u.value > I.px && m.value.scrollTop <= I.px && I.callback(I, "up");
4352
4357
  u.value = m.value.scrollTop;
4353
4358
  }, L = () => ({
4354
4359
  heightPercentage: m.value.clientHeight * 100 / m.value.scrollHeight,
@@ -4492,7 +4497,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
4492
4497
  "text-action": s.selected && s.variant === "single"
4493
4498
  }])
4494
4499
  }, null, 8, ["name", "class"])) : N("", !0),
4495
- I(k(Gf), {
4500
+ P(k(Gf), {
4496
4501
  "background-color": "yellow",
4497
4502
  value: s.option.label,
4498
4503
  highlight: s.search,
@@ -4633,7 +4638,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
4633
4638
  variant: "loading"
4634
4639
  }, {
4635
4640
  default: z(() => [
4636
- I(k(si))
4641
+ P(k(si))
4637
4642
  ]),
4638
4643
  _: 1
4639
4644
  }));
@@ -4743,10 +4748,10 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
4743
4748
  le($), s.value = null;
4744
4749
  }), Hr(() => le(r.options)), Se(() => {
4745
4750
  !M.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."), o(() => {
4746
- c.value && c.value.update(), u.value.addEventListener("keydown", P);
4751
+ c.value && c.value.update(), u.value.addEventListener("keydown", I);
4747
4752
  });
4748
- }), Bt(() => u.value.removeEventListener("keydown", P));
4749
- const P = ($) => {
4753
+ }), Bt(() => u.value.removeEventListener("keydown", I));
4754
+ const I = ($) => {
4750
4755
  $.key === "Enter" ? Z() : $.key === "Escape" ? i("escape") : $.key === "ArrowDown" ? Y("next") : $.key === "ArrowUp" && Y("prev");
4751
4756
  }, ne = ($) => {
4752
4757
  if (M.value) {
@@ -4819,7 +4824,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
4819
4824
  $.$slots.header || $.searchFunction || $.filters || $.selectAll ? (g(), v("header", B2, [
4820
4825
  J($.$slots, "header"),
4821
4826
  $.searchFunction ? (g(), v("section", Z2, [
4822
- I(k(go), {
4827
+ P(k(go), {
4823
4828
  class: "w-full",
4824
4829
  clearable: "",
4825
4830
  value: a.value,
@@ -4843,7 +4848,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
4843
4848
  class: "cursor-pointer flex items-center gap-2 px-2 py-1 rounded-lg hover:bg-secondary active:bg-tertiary",
4844
4849
  onClick: de
4845
4850
  }, [
4846
- I(k(fd), {
4851
+ P(k(fd), {
4847
4852
  indeterminate: !!(B.value && !E.value),
4848
4853
  checked: E.value,
4849
4854
  onClick: de
@@ -4887,7 +4892,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
4887
4892
  $.$slots.footer ? (g(), v("footer", j2, [
4888
4893
  $.showSelection ? (g(), v(O, { key: 0 }, [
4889
4894
  w("header", W2, [
4890
- I(k(fe), {
4895
+ P(k(fe), {
4891
4896
  square: "",
4892
4897
  size: "tiny",
4893
4898
  variant: "text",
@@ -4897,7 +4902,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
4897
4902
  onClick: ae
4898
4903
  }, null, 8, ["label", "trailing-icon"])
4899
4904
  ]),
4900
- I(k(bo), {
4905
+ P(k(bo), {
4901
4906
  ref_key: "selectionScrollbarRef",
4902
4907
  ref: p,
4903
4908
  show: "",
@@ -4945,7 +4950,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
4945
4950
  (f = l.value) == null || f.focus(), a();
4946
4951
  };
4947
4952
  return e({ close: u }), (f, p) => (g(), D(Mi, { to: "#modals" }, [
4948
- I(k(oa), {
4953
+ P(k(oa), {
4949
4954
  show: s.value,
4950
4955
  type: f.overlayType,
4951
4956
  class: "p-4",
@@ -4953,7 +4958,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
4953
4958
  onClose: p[0] || (p[0] = (h) => i("close"))
4954
4959
  }, {
4955
4960
  default: z(() => [
4956
- I(Jl, {
4961
+ P(Jl, {
4957
4962
  "enter-active-class": "transform transition ease-in-out duration-500",
4958
4963
  "enter-from-class": "translate-x-full",
4959
4964
  "enter-to-class": "",
@@ -5091,7 +5096,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
5091
5096
  w("span", J2, [
5092
5097
  ad(ge(s.name) + " ", 1),
5093
5098
  s.notification ? (g(), v("div", _2, [
5094
- I(k(ud))
5099
+ P(k(ud))
5095
5100
  ])) : N("", !0)
5096
5101
  ])
5097
5102
  ], 10, Y2));
@@ -5106,7 +5111,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
5106
5111
  emits: ["delete"],
5107
5112
  setup(n, { emit: e }) {
5108
5113
  const t = e;
5109
- return (r, i) => (g(), D(k(Ie), {
5114
+ return (r, i) => (g(), D(k(Ve), {
5110
5115
  inline: "",
5111
5116
  class: U(["h-5 truncate text-xs rounded-sm text-tertiary bg-tertiary", {
5112
5117
  "px-1": !r.deletable,
@@ -5114,7 +5119,7 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
5114
5119
  }])
5115
5120
  }, {
5116
5121
  default: z(() => [
5117
- I(k(Ie), { class: "gap-1" }, {
5122
+ P(k(Ve), { class: "gap-1" }, {
5118
5123
  default: z(() => [
5119
5124
  r.icon ? (g(), D(k(xe), {
5120
5125
  key: 0,
@@ -5138,11 +5143,11 @@ const Od = /* @__PURE__ */ Mn(x2, [["render", H2]]), oa = /* @__PURE__ */ j({
5138
5143
  }, 8, ["class"]));
5139
5144
  }
5140
5145
  });
5141
- function Ne(n) {
5146
+ function Re(n) {
5142
5147
  this.content = n;
5143
5148
  }
5144
- Ne.prototype = {
5145
- constructor: Ne,
5149
+ Re.prototype = {
5150
+ constructor: Re,
5146
5151
  find: function(n) {
5147
5152
  for (var e = 0; e < this.content.length; e += 2)
5148
5153
  if (this.content[e] === n) return e;
@@ -5161,7 +5166,7 @@ Ne.prototype = {
5161
5166
  // given, the key of the binding will be replaced with that key.
5162
5167
  update: function(n, e, t) {
5163
5168
  var r = t && t != n ? this.remove(t) : this, i = r.find(n), o = r.content.slice();
5164
- return i == -1 ? o.push(t || n, e) : (o[i + 1] = e, t && (o[i] = t)), new Ne(o);
5169
+ return i == -1 ? o.push(t || n, e) : (o[i + 1] = e, t && (o[i] = t)), new Re(o);
5165
5170
  },
5166
5171
  // :: (string) → OrderedMap
5167
5172
  // Return a map with the given key removed, if it existed.
@@ -5169,25 +5174,25 @@ Ne.prototype = {
5169
5174
  var e = this.find(n);
5170
5175
  if (e == -1) return this;
5171
5176
  var t = this.content.slice();
5172
- return t.splice(e, 2), new Ne(t);
5177
+ return t.splice(e, 2), new Re(t);
5173
5178
  },
5174
5179
  // :: (string, any) → OrderedMap
5175
5180
  // Add a new key to the start of the map.
5176
5181
  addToStart: function(n, e) {
5177
- return new Ne([n, e].concat(this.remove(n).content));
5182
+ return new Re([n, e].concat(this.remove(n).content));
5178
5183
  },
5179
5184
  // :: (string, any) → OrderedMap
5180
5185
  // Add a new key to the end of the map.
5181
5186
  addToEnd: function(n, e) {
5182
5187
  var t = this.remove(n).content.slice();
5183
- return t.push(n, e), new Ne(t);
5188
+ return t.push(n, e), new Re(t);
5184
5189
  },
5185
5190
  // :: (string, string, any) → OrderedMap
5186
5191
  // Add a key after the given key. If `place` is not found, the new
5187
5192
  // key is added to the end.
5188
5193
  addBefore: function(n, e, t) {
5189
5194
  var r = this.remove(e), i = r.content.slice(), o = r.find(n);
5190
- return i.splice(o == -1 ? i.length : o, 0, e, t), new Ne(i);
5195
+ return i.splice(o == -1 ? i.length : o, 0, e, t), new Re(i);
5191
5196
  },
5192
5197
  // :: ((key: string, value: any))
5193
5198
  // Call the given function for each key/value pair in the map, in
@@ -5200,20 +5205,20 @@ Ne.prototype = {
5200
5205
  // Create a new map by prepending the keys in this map that don't
5201
5206
  // appear in `map` before the keys in `map`.
5202
5207
  prepend: function(n) {
5203
- return n = Ne.from(n), n.size ? new Ne(n.content.concat(this.subtract(n).content)) : this;
5208
+ return n = Re.from(n), n.size ? new Re(n.content.concat(this.subtract(n).content)) : this;
5204
5209
  },
5205
5210
  // :: (union<Object, OrderedMap>) → OrderedMap
5206
5211
  // Create a new map by appending the keys in this map that don't
5207
5212
  // appear in `map` after the keys in `map`.
5208
5213
  append: function(n) {
5209
- return n = Ne.from(n), n.size ? new Ne(this.subtract(n).content.concat(n.content)) : this;
5214
+ return n = Re.from(n), n.size ? new Re(this.subtract(n).content.concat(n.content)) : this;
5210
5215
  },
5211
5216
  // :: (union<Object, OrderedMap>) → OrderedMap
5212
5217
  // Create a map containing all the keys in this map that don't
5213
5218
  // appear in `map`.
5214
5219
  subtract: function(n) {
5215
5220
  var e = this;
5216
- n = Ne.from(n);
5221
+ n = Re.from(n);
5217
5222
  for (var t = 0; t < n.content.length; t += 2)
5218
5223
  e = e.remove(n.content[t]);
5219
5224
  return e;
@@ -5232,11 +5237,11 @@ Ne.prototype = {
5232
5237
  return this.content.length >> 1;
5233
5238
  }
5234
5239
  };
5235
- Ne.from = function(n) {
5236
- if (n instanceof Ne) return n;
5240
+ Re.from = function(n) {
5241
+ if (n instanceof Re) return n;
5237
5242
  var e = [];
5238
5243
  if (n) for (var t in n) e.push(t, n[t]);
5239
- return new Ne(e);
5244
+ return new Re(e);
5240
5245
  };
5241
5246
  function Vd(n, e, t) {
5242
5247
  for (let r = 0; ; r++) {
@@ -7190,7 +7195,7 @@ class Kd {
7190
7195
  let t = this.spec = {};
7191
7196
  for (let i in e)
7192
7197
  t[i] = e[i];
7193
- t.nodes = Ne.from(e.nodes), t.marks = Ne.from(e.marks || {}), this.nodes = C1.compile(this.spec.nodes, this), this.marks = vs.compile(this.spec.marks, this);
7198
+ t.nodes = Re.from(e.nodes), t.marks = Re.from(e.marks || {}), this.nodes = C1.compile(this.spec.nodes, this), this.marks = vs.compile(this.spec.marks, this);
7194
7199
  let r = /* @__PURE__ */ Object.create(null);
7195
7200
  for (let i in this.nodes) {
7196
7201
  if (i in this.marks)
@@ -8491,7 +8496,7 @@ class Oe extends ze {
8491
8496
  }
8492
8497
  }
8493
8498
  ze.jsonID("replace", Oe);
8494
- class Ve extends ze {
8499
+ class Ae extends ze {
8495
8500
  /**
8496
8501
  Create a replace-around step with the given range and gap.
8497
8502
  `insert` should be the point in the slice into which the content
@@ -8522,11 +8527,11 @@ class Ve extends ze {
8522
8527
  }
8523
8528
  invert(e) {
8524
8529
  let t = this.gapTo - this.gapFrom;
8525
- return new Ve(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
8530
+ return new Ae(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
8526
8531
  }
8527
8532
  map(e) {
8528
8533
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), i = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), o = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
8529
- return t.deletedAcross && r.deletedAcross || i < t.pos || o > r.pos ? null : new Ve(t.pos, r.pos, i, o, this.slice, this.insert, this.structure);
8534
+ return t.deletedAcross && r.deletedAcross || i < t.pos || o > r.pos ? null : new Ae(t.pos, r.pos, i, o, this.slice, this.insert, this.structure);
8530
8535
  }
8531
8536
  toJSON() {
8532
8537
  let e = {
@@ -8545,10 +8550,10 @@ class Ve extends ze {
8545
8550
  static fromJSON(e, t) {
8546
8551
  if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
8547
8552
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
8548
- return new Ve(t.from, t.to, t.gapFrom, t.gapTo, W.fromJSON(e, t.slice), t.insert, !!t.structure);
8553
+ return new Ae(t.from, t.to, t.gapFrom, t.gapTo, W.fromJSON(e, t.slice), t.insert, !!t.structure);
8549
8554
  }
8550
8555
  }
8551
- ze.jsonID("replaceAround", Ve);
8556
+ ze.jsonID("replaceAround", Ae);
8552
8557
  function kl(n, e, t) {
8553
8558
  let r = n.resolve(e), i = t - e, o = r.depth;
8554
8559
  for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
@@ -8648,7 +8653,7 @@ function S4(n, e, t) {
8648
8653
  let f = A.empty, p = 0;
8649
8654
  for (let h = o, m = !1; h > t; h--)
8650
8655
  m || i.after(h + 1) < i.end(h) ? (m = !0, f = A.from(i.node(h).copy(f)), p++) : u++;
8651
- n.step(new Ve(a, u, s, l, new W(d.append(f), c, p), d.size - c, !0));
8656
+ n.step(new Ae(a, u, s, l, new W(d.append(f), c, p), d.size - c, !0));
8652
8657
  }
8653
8658
  function aa(n, e, t = null, r = n) {
8654
8659
  let i = H4(n, e), o = i && T4(r, e);
@@ -8684,7 +8689,7 @@ function E4(n, e, t) {
8684
8689
  r = A.from(t[s].type.create(t[s].attrs, r));
8685
8690
  }
8686
8691
  let i = e.start, o = e.end;
8687
- n.step(new Ve(i, o, i, o, new W(r, 0, 0), t.length, !0));
8692
+ n.step(new Ae(i, o, i, o, new W(r, 0, 0), t.length, !0));
8688
8693
  }
8689
8694
  function O4(n, e, t, r, i) {
8690
8695
  if (!r.isTextblock)
@@ -8700,7 +8705,7 @@ function O4(n, e, t, r, i) {
8700
8705
  }
8701
8706
  u === !1 && tc(n, s, l, o), la(n, n.mapping.slice(o).map(l, 1), r, void 0, u === null);
8702
8707
  let d = n.mapping.slice(o), c = d.map(l, 1), f = d.map(l + s.nodeSize, 1);
8703
- return n.step(new Ve(c, f, c + 1, f - 1, new W(A.from(r.create(a, null, s.marks)), 0, 0), 1, !0)), u === !0 && ec(n, s, l, o), !1;
8708
+ return n.step(new Ae(c, f, c + 1, f - 1, new W(A.from(r.create(a, null, s.marks)), 0, 0), 1, !0)), u === !0 && ec(n, s, l, o), !1;
8704
8709
  }
8705
8710
  });
8706
8711
  }
@@ -8738,7 +8743,7 @@ function A4(n, e, t, r, i) {
8738
8743
  return n.replaceWith(e, e + o.nodeSize, s);
8739
8744
  if (!t.validContent(o.content))
8740
8745
  throw new RangeError("Invalid content for node type " + t.name);
8741
- n.step(new Ve(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new W(A.from(s), 0, 0), 1, !0));
8746
+ n.step(new Ae(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new W(A.from(s), 0, 0), 1, !0));
8742
8747
  }
8743
8748
  function Gt(n, e, t = 1, r) {
8744
8749
  let i = n.resolve(e), o = i.depth - t, s = r && r[r.length - 1] || i.parent;
@@ -8893,7 +8898,7 @@ class $4 {
8893
8898
  for (; s && l && o.childCount == 1; )
8894
8899
  o = o.firstChild.content, s--, l--;
8895
8900
  let a = new W(o, s, l);
8896
- return e > -1 ? new Ve(r.pos, e, this.$to.pos, this.$to.end(), a, t) : a.size || r.pos != this.$to.pos ? new Oe(r.pos, i.pos, a) : null;
8901
+ return e > -1 ? new Ae(r.pos, e, this.$to.pos, this.$to.end(), a, t) : a.size || r.pos != this.$to.pos ? new Oe(r.pos, i.pos, a) : null;
8897
8902
  }
8898
8903
  // Find a position on the start spine of `this.unplaced` that has
8899
8904
  // content that can be moved somewhere on the frontier. Returns two
@@ -9828,7 +9833,7 @@ function V1(n, e, t) {
9828
9833
  if (r < e)
9829
9834
  return;
9830
9835
  let i = n.steps[r];
9831
- if (!(i instanceof Oe || i instanceof Ve))
9836
+ if (!(i instanceof Oe || i instanceof Ae))
9832
9837
  return;
9833
9838
  let o = n.mapping.maps[r], s;
9834
9839
  o.forEach((l, a, u, d) => {
@@ -10249,7 +10254,7 @@ class Je {
10249
10254
  return e[this.key];
10250
10255
  }
10251
10256
  }
10252
- const Re = function(n) {
10257
+ const Pe = function(n) {
10253
10258
  for (var e = 0; ; e++)
10254
10259
  if (n = n.previousSibling, !n)
10255
10260
  return e;
@@ -10274,7 +10279,7 @@ function R1(n, e, t, r, i) {
10274
10279
  let s = n.parentNode;
10275
10280
  if (!s || s.nodeType != 1 || Vi(n) || J4.test(n.nodeName) || n.contentEditable == "false")
10276
10281
  return !1;
10277
- e = Re(n) + (i < 0 ? 0 : 1), n = s;
10282
+ e = Pe(n) + (i < 0 ? 0 : 1), n = s;
10278
10283
  } else if (n.nodeType == 1) {
10279
10284
  let s = n.childNodes[e + (i < 0 ? -1 : 0)];
10280
10285
  if (s.nodeType == 1 && s.contentEditable == "false")
@@ -10300,7 +10305,7 @@ function _4(n, e) {
10300
10305
  return null;
10301
10306
  n = n.childNodes[e - 1], e = gt(n);
10302
10307
  } else if (n.parentNode && !Vi(n))
10303
- e = Re(n), n = n.parentNode;
10308
+ e = Pe(n), n = n.parentNode;
10304
10309
  else
10305
10310
  return null;
10306
10311
  }
@@ -10314,7 +10319,7 @@ function G4(n, e) {
10314
10319
  return null;
10315
10320
  n = n.childNodes[e], e = 0;
10316
10321
  } else if (n.parentNode && !Vi(n))
10317
- e = Re(n) + 1, n = n.parentNode;
10322
+ e = Pe(n) + 1, n = n.parentNode;
10318
10323
  else
10319
10324
  return null;
10320
10325
  }
@@ -10323,7 +10328,7 @@ function X4(n, e, t) {
10323
10328
  for (let r = e == 0, i = e == gt(n); r || i; ) {
10324
10329
  if (n == t)
10325
10330
  return !0;
10326
- let o = Re(n);
10331
+ let o = Pe(n);
10327
10332
  if (n = n.parentNode, !n)
10328
10333
  return !1;
10329
10334
  r = r && o == 0, i = i && o == gt(n);
@@ -10794,7 +10799,7 @@ class Di {
10794
10799
  }
10795
10800
  let i;
10796
10801
  if (e == this.dom && this.contentDOM)
10797
- i = t > Re(this.contentDOM);
10802
+ i = t > Pe(this.contentDOM);
10798
10803
  else if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM))
10799
10804
  i = e.compareDocumentPosition(this.contentDOM) & 2;
10800
10805
  else if (this.dom.firstChild) {
@@ -10884,12 +10889,12 @@ class Di {
10884
10889
  let o, s = !0;
10885
10890
  for (; o = r ? this.children[r - 1] : null, !(!o || o.dom.parentNode == this.contentDOM); r--, s = !1)
10886
10891
  ;
10887
- return o && t && s && !o.border && !o.domAtom ? o.domFromPos(o.size, t) : { node: this.contentDOM, offset: o ? Re(o.dom) + 1 : 0 };
10892
+ return o && t && s && !o.border && !o.domAtom ? o.domFromPos(o.size, t) : { node: this.contentDOM, offset: o ? Pe(o.dom) + 1 : 0 };
10888
10893
  } else {
10889
10894
  let o, s = !0;
10890
10895
  for (; o = r < this.children.length ? this.children[r] : null, !(!o || o.dom.parentNode == this.contentDOM); r++, s = !1)
10891
10896
  ;
10892
- return o && s && !o.border && !o.domAtom ? o.domFromPos(0, t) : { node: this.contentDOM, offset: o ? Re(o.dom) : this.contentDOM.childNodes.length };
10897
+ return o && s && !o.border && !o.domAtom ? o.domFromPos(0, t) : { node: this.contentDOM, offset: o ? Pe(o.dom) : this.contentDOM.childNodes.length };
10893
10898
  }
10894
10899
  }
10895
10900
  // Used to find a DOM range in a single parent for a given changed
@@ -10908,7 +10913,7 @@ class Di {
10908
10913
  for (let c = l; c > 0; c--) {
10909
10914
  let f = this.children[c - 1];
10910
10915
  if (f.size && f.dom.parentNode == this.contentDOM && !f.emptyChildAt(1)) {
10911
- i = Re(f.dom) + 1;
10916
+ i = Pe(f.dom) + 1;
10912
10917
  break;
10913
10918
  }
10914
10919
  e -= f.size;
@@ -10920,7 +10925,7 @@ class Di {
10920
10925
  for (let d = l + 1; d < this.children.length; d++) {
10921
10926
  let c = this.children[d];
10922
10927
  if (c.size && c.dom.parentNode == this.contentDOM && !c.emptyChildAt(-1)) {
10923
- o = Re(c.dom);
10928
+ o = Pe(c.dom);
10924
10929
  break;
10925
10930
  }
10926
10931
  t += c.size;
@@ -10965,7 +10970,7 @@ class Di {
10965
10970
  `), c && h == p.nodeValue.length)
10966
10971
  for (let m = p, y; m; m = m.parentNode) {
10967
10972
  if (y = m.nextSibling) {
10968
- y.nodeName == "BR" && (l = a = { node: y.parentNode, offset: Re(y) + 1 });
10973
+ y.nodeName == "BR" && (l = a = { node: y.parentNode, offset: Pe(y) + 1 });
10969
10974
  break;
10970
10975
  }
10971
10976
  let b = m.pmViewDesc;
@@ -11811,7 +11816,7 @@ function T3(n) {
11811
11816
  if (!e)
11812
11817
  return;
11813
11818
  let r = n.cursorWrapper.dom, i = r.nodeName == "IMG";
11814
- i ? t.setStart(r.parentNode, Re(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && Qe && yn <= 11 && (r.disabled = !0, r.disabled = !1);
11819
+ i ? t.setStart(r.parentNode, Pe(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && Qe && yn <= 11 && (r.disabled = !0, r.disabled = !1);
11815
11820
  }
11816
11821
  function Mc(n, e) {
11817
11822
  if (e instanceof G) {
@@ -11914,7 +11919,7 @@ function O3(n) {
11914
11919
  {
11915
11920
  let l = t.previousSibling;
11916
11921
  for (; l && _r(l, -1); )
11917
- i = t.parentNode, o = Re(l), l = l.previousSibling;
11922
+ i = t.parentNode, o = Pe(l), l = l.previousSibling;
11918
11923
  if (l)
11919
11924
  t = l, r = Ho(t);
11920
11925
  else {
@@ -11946,7 +11951,7 @@ function V3(n) {
11946
11951
  {
11947
11952
  let l = t.nextSibling;
11948
11953
  for (; l && _r(l, 1); )
11949
- o = l.parentNode, s = Re(l) + 1, l = l.nextSibling;
11954
+ o = l.parentNode, s = Pe(l) + 1, l = l.nextSibling;
11950
11955
  if (l)
11951
11956
  t = l, r = 0, i = Ho(t);
11952
11957
  else {
@@ -11964,7 +11969,7 @@ function Sc(n) {
11964
11969
  }
11965
11970
  function A3(n, e) {
11966
11971
  for (; n && e == n.childNodes.length && !Vi(n); )
11967
- e = Re(n) + 1, n = n.parentNode;
11972
+ e = Pe(n) + 1, n = n.parentNode;
11968
11973
  for (; n && e < n.childNodes.length; ) {
11969
11974
  let t = n.childNodes[e];
11970
11975
  if (t.nodeType == 3)
@@ -11976,7 +11981,7 @@ function A3(n, e) {
11976
11981
  }
11977
11982
  function D3(n, e) {
11978
11983
  for (; n && !e && !Vi(n); )
11979
- e = Re(n), n = n.parentNode;
11984
+ e = Pe(n), n = n.parentNode;
11980
11985
  for (; n && e; ) {
11981
11986
  let t = n.childNodes[e - 1];
11982
11987
  if (t.nodeType == 3)
@@ -13371,7 +13376,7 @@ class m9 {
13371
13376
  let { previousSibling: c, nextSibling: f } = e.addedNodes[d];
13372
13377
  (!c || Array.prototype.indexOf.call(e.addedNodes, c) < 0) && (i = c), (!f || Array.prototype.indexOf.call(e.addedNodes, f) < 0) && (o = f);
13373
13378
  }
13374
- let s = i && i.parentNode == e.target ? Re(i) + 1 : 0, l = r.localPosFromDOM(e.target, s, -1), a = o && o.parentNode == e.target ? Re(o) : e.target.childNodes.length, u = r.localPosFromDOM(e.target, a, 1);
13379
+ let s = i && i.parentNode == e.target ? Pe(i) + 1 : 0, l = r.localPosFromDOM(e.target, s, -1), a = o && o.parentNode == e.target ? Pe(o) : e.target.childNodes.length, u = r.localPosFromDOM(e.target, a, 1);
13375
13380
  return { from: l, to: u };
13376
13381
  } else return e.type == "attributes" ? { from: r.posAtStart - r.border, to: r.posAtEnd + r.border } : (this.lastChangedTextNode = e.target, {
13377
13382
  from: r.posAtStart,
@@ -13467,8 +13472,8 @@ function w9(n, e, t, r, i) {
13467
13472
  if (T && !n.state.selection.eq(T)) {
13468
13473
  if (Fe && Jt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (ne) => ne(n, Rn(13, "Enter"))))
13469
13474
  return;
13470
- let P = n.state.tr.setSelection(T);
13471
- E == "pointer" ? P.setMeta("pointer", !0) : E == "key" && P.scrollIntoView(), o && P.setMeta("composition", o), n.dispatch(P);
13475
+ let I = n.state.tr.setSelection(T);
13476
+ E == "pointer" ? I.setMeta("pointer", !0) : E == "key" && I.scrollIntoView(), o && I.setMeta("composition", o), n.dispatch(I);
13472
13477
  }
13473
13478
  return;
13474
13479
  }
@@ -13512,8 +13517,8 @@ function w9(n, e, t, r, i) {
13512
13517
  let C = h.start, S = h.endA, M = (E) => {
13513
13518
  let T = E || n.state.tr.replace(C, S, u.doc.slice(h.start - u.from, h.endB - u.from));
13514
13519
  if (u.sel) {
13515
- let P = lu(n, T.doc, u.sel);
13516
- P && !(Fe && n.composing && P.empty && (h.start != h.endB || n.input.lastChromeDelete < Date.now() - 100) && (P.head == C || P.head == T.mapping.map(S) - 1) || Qe && P.empty && P.head == C) && T.setSelection(P);
13520
+ let I = lu(n, T.doc, u.sel);
13521
+ I && !(Fe && n.composing && I.empty && (h.start != h.endB || n.input.lastChromeDelete < Date.now() - 100) && (I.head == C || I.head == T.mapping.map(S) - 1) || Qe && I.empty && I.head == C) && T.setSelection(I);
13517
13522
  }
13518
13523
  return o && T.setMeta("composition", o), T.scrollIntoView();
13519
13524
  }, B;
@@ -13530,7 +13535,7 @@ function w9(n, e, t, r, i) {
13530
13535
  B.type == "add" ? E.addMark(C, S, B.mark) : E.removeMark(C, S, B.mark), n.dispatch(E);
13531
13536
  } else if (m.parent.child(m.index()).isText && m.index() == y.index() - (y.textOffset ? 0 : 1)) {
13532
13537
  let E = m.parent.textBetween(m.parentOffset, y.parentOffset), T = () => M(n.state.tr.insertText(E, C, S));
13533
- n.someProp("handleTextInput", (P) => P(n, C, S, E, T)) || n.dispatch(T());
13538
+ n.someProp("handleTextInput", (I) => I(n, C, S, E, T)) || n.dispatch(T());
13534
13539
  }
13535
13540
  } else
13536
13541
  n.dispatch(M());
@@ -14068,10 +14073,10 @@ var Ln = {
14068
14073
  221: "}",
14069
14074
  222: '"'
14070
14075
  }, T9 = typeof navigator < "u" && /Mac/.test(navigator.platform), E9 = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
14071
- for (var Pe = 0; Pe < 10; Pe++) Ln[48 + Pe] = Ln[96 + Pe] = String(Pe);
14072
- for (var Pe = 1; Pe <= 24; Pe++) Ln[Pe + 111] = "F" + Pe;
14073
- for (var Pe = 65; Pe <= 90; Pe++)
14074
- Ln[Pe] = String.fromCharCode(Pe + 32), Vo[Pe] = String.fromCharCode(Pe);
14076
+ for (var Ie = 0; Ie < 10; Ie++) Ln[48 + Ie] = Ln[96 + Ie] = String(Ie);
14077
+ for (var Ie = 1; Ie <= 24; Ie++) Ln[Ie + 111] = "F" + Ie;
14078
+ for (var Ie = 65; Ie <= 90; Ie++)
14079
+ Ln[Ie] = String.fromCharCode(Ie + 32), Vo[Ie] = String.fromCharCode(Ie);
14075
14080
  for (var _s in Ln) Vo.hasOwnProperty(_s) || (Vo[_s] = Ln[_s]);
14076
14081
  function O9(n) {
14077
14082
  var e = T9 && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || E9 && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Vo : Ln)[n.keyCode] || n.key || "Unidentified";
@@ -14406,7 +14411,7 @@ function ef(n, e, t, r) {
14406
14411
  for (let b = s.length - 1; b >= 0; b--)
14407
14412
  h = A.from(s[b].create(null, h));
14408
14413
  h = A.from(i.copy(h));
14409
- let m = n.tr.step(new Ve(e.pos - 1, p, e.pos, p, new W(h, 1, 0), s.length, !0)), y = m.doc.resolve(p + 2 * s.length);
14414
+ let m = n.tr.step(new Ae(e.pos - 1, p, e.pos, p, new W(h, 1, 0), s.length, !0)), y = m.doc.resolve(p + 2 * s.length);
14410
14415
  y.nodeAfter && y.nodeAfter.type == i.type && xn(m.doc, y.pos) && m.join(y.pos), t(m.scrollIntoView());
14411
14416
  }
14412
14417
  return !0;
@@ -14426,7 +14431,7 @@ function ef(n, e, t, r) {
14426
14431
  let b = A.empty;
14427
14432
  for (let x = h.length - 1; x >= 0; x--)
14428
14433
  b = A.from(h[x].copy(b));
14429
- let L = n.tr.step(new Ve(e.pos - h.length, e.pos + o.nodeSize, e.pos + y, e.pos + o.nodeSize - y, new W(b, h.length, 0), 0, !0));
14434
+ let L = n.tr.step(new Ae(e.pos - h.length, e.pos + o.nodeSize, e.pos + y, e.pos + o.nodeSize - y, new W(b, h.length, 0), 0, !0));
14430
14435
  t(L.scrollIntoView());
14431
14436
  }
14432
14437
  return !0;
@@ -14518,7 +14523,7 @@ function X9(n, e, t, r, i) {
14518
14523
  let o = A.empty;
14519
14524
  for (let d = t.length - 1; d >= 0; d--)
14520
14525
  o = A.from(t[d].type.create(t[d].attrs, o));
14521
- n.step(new Ve(e.start - (r ? 2 : 0), e.end, e.start, e.end, new W(o, 0, 0), t.length, !0));
14526
+ n.step(new Ae(e.start - (r ? 2 : 0), e.end, e.start, e.end, new W(o, 0, 0), t.length, !0));
14522
14527
  let s = 0;
14523
14528
  for (let d = 0; d < t.length; d++)
14524
14529
  t[d].type == i && (s = d + 1);
@@ -14535,7 +14540,7 @@ function Q9(n) {
14535
14540
  }
14536
14541
  function em(n, e, t, r) {
14537
14542
  let i = n.tr, o = r.end, s = r.$to.end(r.depth);
14538
- o < s && (i.step(new Ve(o - 1, s, o, s, new W(A.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Mo(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
14543
+ o < s && (i.step(new Ae(o - 1, s, o, s, new W(A.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Mo(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
14539
14544
  const l = Or(r);
14540
14545
  if (l == null)
14541
14546
  return !1;
@@ -14554,7 +14559,7 @@ function tm(n, e, t) {
14554
14559
  if (!u.canReplace(d + (l ? 0 : 1), d + 1, s.content.append(a ? A.empty : A.from(i))))
14555
14560
  return !1;
14556
14561
  let c = o.pos, f = c + s.nodeSize;
14557
- return r.step(new Ve(c - (l ? 1 : 0), f + (a ? 1 : 0), c + 1, f - 1, new W((l ? A.empty : A.from(i.copy(A.empty))).append(a ? A.empty : A.from(i.copy(A.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
14562
+ return r.step(new Ae(c - (l ? 1 : 0), f + (a ? 1 : 0), c + 1, f - 1, new W((l ? A.empty : A.from(i.copy(A.empty))).append(a ? A.empty : A.from(i.copy(A.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
14558
14563
  }
14559
14564
  function nm(n) {
14560
14565
  return function(e, t) {
@@ -14569,7 +14574,7 @@ function nm(n) {
14569
14574
  return !1;
14570
14575
  if (t) {
14571
14576
  let u = a.lastChild && a.lastChild.type == l.type, d = A.from(u ? n.create() : null), c = new W(A.from(n.create(null, A.from(l.type.create(null, d)))), u ? 3 : 1, 0), f = o.start, p = o.end;
14572
- t(e.tr.step(new Ve(f - (u ? 3 : 1), p, f, p, c, 1, !0)).scrollIntoView());
14577
+ t(e.tr.step(new Ae(f - (u ? 3 : 1), p, f, p, c, 1, !0)).scrollIntoView());
14573
14578
  }
14574
14579
  return !0;
14575
14580
  };
@@ -14752,7 +14757,7 @@ function nf(n) {
14752
14757
  });
14753
14758
  }), e;
14754
14759
  }
14755
- function De(n, e) {
14760
+ function Ne(n, e) {
14756
14761
  if (typeof n == "string") {
14757
14762
  if (!e.nodes[n])
14758
14763
  throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);
@@ -15390,7 +15395,7 @@ class dr {
15390
15395
  options: r.options,
15391
15396
  storage: r.storage,
15392
15397
  editor: e,
15393
- type: De(r.name, this.schema)
15398
+ type: Ne(r.name, this.schema)
15394
15399
  }, s = K(r, "addNodeView", o);
15395
15400
  if (!s)
15396
15401
  return [];
@@ -15554,7 +15559,7 @@ const vm = Ye.create({
15554
15559
  }
15555
15560
  return !1;
15556
15561
  }, Sm = (n) => ({ tr: e, state: t, dispatch: r }) => {
15557
- const i = De(n, t.schema), o = e.selection.$anchor;
15562
+ const i = Ne(n, t.schema), o = e.selection.$anchor;
15558
15563
  for (let s = o.depth; s > 0; s -= 1)
15559
15564
  if (o.node(s).type === i) {
15560
15565
  if (r) {
@@ -15736,7 +15741,7 @@ function Im(n, e, t) {
15736
15741
  if (r < e)
15737
15742
  return;
15738
15743
  const i = n.steps[r];
15739
- if (!(i instanceof Oe || i instanceof Ve))
15744
+ if (!(i instanceof Oe || i instanceof Ae))
15740
15745
  return;
15741
15746
  const o = n.mapping.maps[r];
15742
15747
  let s = 0;
@@ -15865,7 +15870,7 @@ const Jm = (n) => ({ editor: e, view: t, tr: r, dispatch: i }) => {
15865
15870
  }), !0;
15866
15871
  };
15867
15872
  function gi(n, e, t = {}) {
15868
- const { from: r, to: i, empty: o } = n.selection, s = e ? De(e, n.schema) : null, l = [];
15873
+ const { from: r, to: i, empty: o } = n.selection, s = e ? Ne(e, n.schema) : null, l = [];
15869
15874
  n.doc.nodesBetween(r, i, (c, f) => {
15870
15875
  if (c.isText)
15871
15876
  return;
@@ -15880,10 +15885,10 @@ function gi(n, e, t = {}) {
15880
15885
  return o ? !!u.length : u.reduce((c, f) => c + f.to - f.from, 0) >= a;
15881
15886
  }
15882
15887
  const _m = (n, e = {}) => ({ state: t, dispatch: r }) => {
15883
- const i = De(n, t.schema);
15888
+ const i = Ne(n, t.schema);
15884
15889
  return gi(t, i, e) ? F9(t, r) : !1;
15885
15890
  }, Gm = () => ({ state: n, dispatch: e }) => Qc(n, e), Xm = (n) => ({ state: e, dispatch: t }) => {
15886
- const r = De(n, e.schema);
15891
+ const r = Ne(n, e.schema);
15887
15892
  return Q9(r)(e, t);
15888
15893
  }, Qm = () => ({ state: n, dispatch: e }) => Gc(n, e);
15889
15894
  function Es(n, e) {
@@ -15896,7 +15901,7 @@ function Cu(n, e) {
15896
15901
  const e6 = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
15897
15902
  let o = null, s = null;
15898
15903
  const l = Es(typeof n == "string" ? n : n.name, r.schema);
15899
- return l ? (l === "node" && (o = De(n, r.schema)), l === "mark" && (s = Hn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
15904
+ return l ? (l === "node" && (o = Ne(n, r.schema)), l === "mark" && (s = Hn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
15900
15905
  r.doc.nodesBetween(a.$from.pos, a.$to.pos, (u, d) => {
15901
15906
  o && o === u.type && t.setNodeMarkup(d, void 0, Cu(u.attrs, e)), s && u.marks.length && u.marks.forEach((c) => {
15902
15907
  s === c.type && t.addMark(d, d + u.nodeSize, s.create(Cu(c.attrs, e)));
@@ -15987,7 +15992,7 @@ function cf(n, e) {
15987
15992
  return of(n, t, e);
15988
15993
  }
15989
15994
  function p6(n, e) {
15990
- const t = De(e, n.schema), { from: r, to: i } = n.selection, o = [];
15995
+ const t = Ne(e, n.schema), { from: r, to: i } = n.selection, o = [];
15991
15996
  n.doc.nodesBetween(r, i, (l) => {
15992
15997
  o.push(l);
15993
15998
  });
@@ -16187,7 +16192,7 @@ const b6 = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
16187
16192
  });
16188
16193
  return C6(r, t, a);
16189
16194
  }, k6 = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), w6 = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
16190
- const o = De(n, t.schema);
16195
+ const o = Ne(n, t.schema);
16191
16196
  let s;
16192
16197
  return t.selection.$anchor.sameParent(t.selection.$head) && (s = t.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: l }) => hu(o, { ...s, ...e })(t) ? !0 : l.clearNodes()).command(({ state: l }) => hu(o, { ...s, ...e })(l, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
16193
16198
  }, L6 = (n) => ({ tr: e, dispatch: t }) => {
@@ -16203,7 +16208,7 @@ const b6 = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
16203
16208
  }
16204
16209
  return !0;
16205
16210
  }, x6 = (n) => ({ state: e, dispatch: t }) => {
16206
- const r = De(n, e.schema);
16211
+ const r = Ne(n, e.schema);
16207
16212
  return nm(r)(e, t);
16208
16213
  };
16209
16214
  function ku(n, e) {
@@ -16241,7 +16246,7 @@ const S6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
16241
16246
  return h;
16242
16247
  }, H6 = (n, e = {}) => ({ tr: t, state: r, dispatch: i, editor: o }) => {
16243
16248
  var s;
16244
- const l = De(n, r.schema), { $from: a, $to: u } = r.selection, d = r.selection.node;
16249
+ const l = Ne(n, r.schema), { $from: a, $to: u } = r.selection, d = r.selection.node;
16245
16250
  if (d && d.isBlock || a.depth < 2 || !a.sameParent(u))
16246
16251
  return !1;
16247
16252
  const c = a.node(-1);
@@ -16313,7 +16318,7 @@ const S6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
16313
16318
  const i = n.doc.nodeAt(r);
16314
16319
  return t.node.type === (i == null ? void 0 : i.type) && xn(n.doc, r) && n.join(r), !0;
16315
16320
  }, T6 = (n, e, t, r = {}) => ({ editor: i, tr: o, state: s, dispatch: l, chain: a, commands: u, can: d }) => {
16316
- const { extensions: c, splittableMarks: f } = i.extensionManager, p = De(n, s.schema), h = De(e, s.schema), { selection: m, storedMarks: y } = s, { $from: b, $to: L } = m, x = b.blockRange(L), C = y || m.$to.parentOffset && m.$from.marks();
16321
+ const { extensions: c, splittableMarks: f } = i.extensionManager, p = Ne(n, s.schema), h = Ne(e, s.schema), { selection: m, storedMarks: y } = s, { $from: b, $to: L } = m, x = b.blockRange(L), C = y || m.$to.parentOffset && m.$from.marks();
16317
16322
  if (!x)
16318
16323
  return !1;
16319
16324
  const S = Va((M) => bu(M.type.name, c))(m);
@@ -16331,11 +16336,11 @@ const S6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
16331
16336
  const { extendEmptyMarkRange: o = !1 } = t, s = Hn(n, r.schema);
16332
16337
  return Nl(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
16333
16338
  }, O6 = (n, e, t = {}) => ({ state: r, commands: i }) => {
16334
- const o = De(n, r.schema), s = De(e, r.schema), l = gi(r, o, t);
16339
+ const o = Ne(n, r.schema), s = Ne(e, r.schema), l = gi(r, o, t);
16335
16340
  let a;
16336
16341
  return r.selection.$anchor.sameParent(r.selection.$head) && (a = r.selection.$anchor.parent.attrs), l ? i.setNode(s, a) : i.setNode(o, { ...a, ...t });
16337
16342
  }, V6 = (n, e = {}) => ({ state: t, commands: r }) => {
16338
- const i = De(n, t.schema);
16343
+ const i = Ne(n, t.schema);
16339
16344
  return gi(t, i, e) ? r.lift(i) : r.wrapIn(i, e);
16340
16345
  }, A6 = () => ({ state: n, dispatch: e }) => {
16341
16346
  const t = n.plugins;
@@ -16379,7 +16384,7 @@ const S6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
16379
16384
  }, R6 = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
16380
16385
  let o = null, s = null;
16381
16386
  const l = Es(typeof n == "string" ? n : n.name, r.schema);
16382
- return l ? (l === "node" && (o = De(n, r.schema)), l === "mark" && (s = Hn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
16387
+ return l ? (l === "node" && (o = Ne(n, r.schema)), l === "mark" && (s = Hn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
16383
16388
  const u = a.$from.pos, d = a.$to.pos;
16384
16389
  let c, f, p, h;
16385
16390
  t.selection.empty ? r.doc.nodesBetween(u, d, (m, y) => {
@@ -16408,10 +16413,10 @@ const S6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
16408
16413
  }));
16409
16414
  }), !0) : !1;
16410
16415
  }, P6 = (n, e = {}) => ({ state: t, dispatch: r }) => {
16411
- const i = De(n, t.schema);
16416
+ const i = Ne(n, t.schema);
16412
16417
  return J9(i, e)(t, r);
16413
16418
  }, I6 = (n, e = {}) => ({ state: t, dispatch: r }) => {
16414
- const i = De(n, t.schema);
16419
+ const i = Ne(n, t.schema);
16415
16420
  return _9(i, e)(t, r);
16416
16421
  };
16417
16422
  var $6 = /* @__PURE__ */ Object.freeze({
@@ -17533,36 +17538,36 @@ const G6 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, X6 = /(?:^|\s
17533
17538
  ];
17534
17539
  }
17535
17540
  });
17536
- var No = 200, Ae = function() {
17541
+ var No = 200, De = function() {
17537
17542
  };
17538
- Ae.prototype.append = function(e) {
17539
- return e.length ? (e = Ae.from(e), !this.length && e || e.length < No && this.leafAppend(e) || this.length < No && e.leafPrepend(this) || this.appendInner(e)) : this;
17543
+ De.prototype.append = function(e) {
17544
+ return e.length ? (e = De.from(e), !this.length && e || e.length < No && this.leafAppend(e) || this.length < No && e.leafPrepend(this) || this.appendInner(e)) : this;
17540
17545
  };
17541
- Ae.prototype.prepend = function(e) {
17542
- return e.length ? Ae.from(e).append(this) : this;
17546
+ De.prototype.prepend = function(e) {
17547
+ return e.length ? De.from(e).append(this) : this;
17543
17548
  };
17544
- Ae.prototype.appendInner = function(e) {
17549
+ De.prototype.appendInner = function(e) {
17545
17550
  return new l8(this, e);
17546
17551
  };
17547
- Ae.prototype.slice = function(e, t) {
17548
- return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? Ae.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
17552
+ De.prototype.slice = function(e, t) {
17553
+ return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? De.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
17549
17554
  };
17550
- Ae.prototype.get = function(e) {
17555
+ De.prototype.get = function(e) {
17551
17556
  if (!(e < 0 || e >= this.length))
17552
17557
  return this.getInner(e);
17553
17558
  };
17554
- Ae.prototype.forEach = function(e, t, r) {
17559
+ De.prototype.forEach = function(e, t, r) {
17555
17560
  t === void 0 && (t = 0), r === void 0 && (r = this.length), t <= r ? this.forEachInner(e, t, r, 0) : this.forEachInvertedInner(e, t, r, 0);
17556
17561
  };
17557
- Ae.prototype.map = function(e, t, r) {
17562
+ De.prototype.map = function(e, t, r) {
17558
17563
  t === void 0 && (t = 0), r === void 0 && (r = this.length);
17559
17564
  var i = [];
17560
17565
  return this.forEach(function(o, s) {
17561
17566
  return i.push(e(o, s));
17562
17567
  }, t, r), i;
17563
17568
  };
17564
- Ae.from = function(e) {
17565
- return e instanceof Ae ? e : e && e.length ? new hf(e) : Ae.empty;
17569
+ De.from = function(e) {
17570
+ return e instanceof De ? e : e && e.length ? new hf(e) : De.empty;
17566
17571
  };
17567
17572
  var hf = /* @__PURE__ */ (function(n) {
17568
17573
  function e(r) {
@@ -17595,8 +17600,8 @@ var hf = /* @__PURE__ */ (function(n) {
17595
17600
  }, t.depth.get = function() {
17596
17601
  return 0;
17597
17602
  }, Object.defineProperties(e.prototype, t), e;
17598
- })(Ae);
17599
- Ae.empty = new hf([]);
17603
+ })(De);
17604
+ De.empty = new hf([]);
17600
17605
  var l8 = /* @__PURE__ */ (function(n) {
17601
17606
  function e(t, r) {
17602
17607
  n.call(this), this.left = t, this.right = r, this.length = t.length + r.length, this.depth = Math.max(t.depth, r.depth) + 1;
@@ -17629,7 +17634,7 @@ var l8 = /* @__PURE__ */ (function(n) {
17629
17634
  }, e.prototype.appendInner = function(r) {
17630
17635
  return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
17631
17636
  }, e;
17632
- })(Ae);
17637
+ })(De);
17633
17638
  const a8 = 500;
17634
17639
  class Lt {
17635
17640
  constructor(e, t) {
@@ -17740,10 +17745,10 @@ class Lt {
17740
17745
  (f = i.length && i[p].merge(c)) ? i[p] = f : i.push(c);
17741
17746
  }
17742
17747
  } else s.map && r--;
17743
- }, this.items.length, 0), new Lt(Ae.from(i.reverse()), o);
17748
+ }, this.items.length, 0), new Lt(De.from(i.reverse()), o);
17744
17749
  }
17745
17750
  }
17746
- Lt.empty = new Lt(Ae.empty, 0);
17751
+ Lt.empty = new Lt(De.empty, 0);
17747
17752
  function u8(n, e) {
17748
17753
  let t;
17749
17754
  return n.forEach((r, i) => {
@@ -18552,8 +18557,8 @@ function A8({
18552
18557
  ie(x, n.numeric, C);
18553
18558
  const S = pt(io), M = pt();
18554
18559
  ie(S, e, S), ie(S, t, M), ie(M, e, S), ie(M, t, M), R(L, Ot, S), R(C, Ot, S);
18555
- const B = R(l, dn), E = R(a, dn), T = R(E, Ot), P = R(T, Ot);
18556
- ie(l, n.domain, s), R(l, Et, b), R(l, ht, y), ie(a, n.domain, s), R(a, Et, b), R(a, ht, y), ie(B, n.domain, S), R(B, Ot, S), R(B, ti, S), ie(P, n.domain, S), ie(P, e, S), R(P, Ot, S);
18560
+ const B = R(l, dn), E = R(a, dn), T = R(E, Ot), I = R(T, Ot);
18561
+ ie(l, n.domain, s), R(l, Et, b), R(l, ht, y), ie(a, n.domain, s), R(a, Et, b), R(a, ht, y), ie(B, n.domain, S), R(B, Ot, S), R(B, ti, S), ie(I, n.domain, S), ie(I, e, S), R(I, Ot, S);
18557
18562
  const ne = [
18558
18563
  [Xr, Qr],
18559
18564
  // {}
@@ -19390,11 +19395,11 @@ function Fu(n) {
19390
19395
  }
19391
19396
  if (i === tt || (i === et || i === bt) && o === bi) {
19392
19397
  x = kt;
19393
- var P = c && M === S && S.visualViewport ? S.visualViewport.width : (
19398
+ var I = c && M === S && S.visualViewport ? S.visualViewport.width : (
19394
19399
  // $FlowFixMe[prop-missing]
19395
19400
  M[E]
19396
19401
  );
19397
- p -= P - r.width, p *= a ? 1 : -1;
19402
+ p -= I - r.width, p *= a ? 1 : -1;
19398
19403
  }
19399
19404
  }
19400
19405
  var ne = Object.assign({
@@ -19614,7 +19619,7 @@ function ki(n, e) {
19614
19619
  reference: M,
19615
19620
  element: x,
19616
19621
  placement: i
19617
- }), E = Ul(Object.assign({}, x, B)), T = f === Fr ? E : M, P = {
19622
+ }), E = Ul(Object.assign({}, x, B)), T = f === Fr ? E : M, I = {
19618
19623
  top: S.top - T.top + b.top,
19619
19624
  bottom: T.bottom - S.bottom + b.bottom,
19620
19625
  left: S.left - T.left + b.left,
@@ -19622,12 +19627,12 @@ function ki(n, e) {
19622
19627
  }, ne = n.modifiersData.offset;
19623
19628
  if (f === Fr && ne) {
19624
19629
  var Z = ne[i];
19625
- Object.keys(P).forEach(function(F) {
19630
+ Object.keys(I).forEach(function(F) {
19626
19631
  var Q = [kt, bt].indexOf(F) >= 0 ? 1 : -1, Ce = [et, bt].indexOf(F) >= 0 ? "y" : "x";
19627
- P[F] += Z[Ce] * Q;
19632
+ I[F] += Z[Ce] * Q;
19628
19633
  });
19629
19634
  }
19630
- return P;
19635
+ return I;
19631
19636
  }
19632
19637
  function A7(n, e) {
19633
19638
  e === void 0 && (e = {});
@@ -19667,8 +19672,8 @@ function N7(n) {
19667
19672
  flipVariations: h,
19668
19673
  allowedAutoPlacements: m
19669
19674
  }) : nt);
19670
- }, []), S = e.rects.reference, M = e.rects.popper, B = /* @__PURE__ */ new Map(), E = !0, T = C[0], P = 0; P < C.length; P++) {
19671
- var ne = C[P], Z = Nt(ne), F = Sr(ne) === Lr, Q = [et, bt].indexOf(Z) >= 0, Ce = Q ? "width" : "height", le = ki(e, {
19675
+ }, []), S = e.rects.reference, M = e.rects.popper, B = /* @__PURE__ */ new Map(), E = !0, T = C[0], I = 0; I < C.length; I++) {
19676
+ var ne = C[I], Z = Nt(ne), F = Sr(ne) === Lr, Q = [et, bt].indexOf(Z) >= 0, Ce = Q ? "width" : "height", le = ki(e, {
19672
19677
  placement: ne,
19673
19678
  boundary: d,
19674
19679
  rootBoundary: c,
@@ -19803,7 +19808,7 @@ function W7(n) {
19803
19808
  altBoundary: d
19804
19809
  }), b = Nt(e.placement), L = Sr(e.placement), x = !L, C = Ua(b), S = j7(C), M = e.modifiersData.popperOffsets, B = e.rects.reference, E = e.rects.popper, T = typeof m == "function" ? m(Object.assign({}, e.rects, {
19805
19810
  placement: e.placement
19806
- })) : m, P = typeof T == "number" ? {
19811
+ })) : m, I = typeof T == "number" ? {
19807
19812
  mainAxis: T,
19808
19813
  altAxis: T
19809
19814
  } : Object.assign({
@@ -19818,11 +19823,11 @@ function W7(n) {
19818
19823
  var F, Q = C === "y" ? et : tt, Ce = C === "y" ? bt : kt, le = C === "y" ? "height" : "width", pe = M[C], de = pe + y[Q], Le = pe - y[Ce], Be = p ? -E[le] / 2 : 0, Y = L === Lr ? B[le] : E[le], X = L === Lr ? -E[le] : -B[le], ae = e.elements.arrow, je = p && ae ? Wa(ae) : {
19819
19824
  width: 0,
19820
19825
  height: 0
19821
- }, nt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Af(), wt = nt[Q], En = nt[Ce], $ = ri(0, B[le], je[le]), se = x ? B[le] / 2 - Be - $ - wt - P.mainAxis : Y - $ - wt - P.mainAxis, ve = x ? -B[le] / 2 + Be + $ + En + P.mainAxis : X + $ + En + P.mainAxis, _e = e.elements.arrow && Ri(e.elements.arrow), On = _e ? C === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, Ar = (F = ne == null ? void 0 : ne[C]) != null ? F : 0, Pi = pe + se - Ar - On, Ii = pe + ve - Ar, Dr = ri(p ? us(de, Pi) : de, pe, p ? Un(Le, Ii) : Le);
19826
+ }, nt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Af(), wt = nt[Q], En = nt[Ce], $ = ri(0, B[le], je[le]), se = x ? B[le] / 2 - Be - $ - wt - I.mainAxis : Y - $ - wt - I.mainAxis, ve = x ? -B[le] / 2 + Be + $ + En + I.mainAxis : X + $ + En + I.mainAxis, _e = e.elements.arrow && Ri(e.elements.arrow), On = _e ? C === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, Ar = (F = ne == null ? void 0 : ne[C]) != null ? F : 0, Pi = pe + se - Ar - On, Ii = pe + ve - Ar, Dr = ri(p ? us(de, Pi) : de, pe, p ? Un(Le, Ii) : Le);
19822
19827
  M[C] = Dr, Z[C] = Dr - pe;
19823
19828
  }
19824
19829
  if (l) {
19825
- var Nr, $i = C === "x" ? et : tt, Bi = C === "x" ? bt : kt, Ft = M[S], nn = S === "y" ? "height" : "width", Rr = Ft + y[$i], Vn = Ft - y[Bi], Pr = [et, tt].indexOf(b) !== -1, Zi = (Nr = ne == null ? void 0 : ne[S]) != null ? Nr : 0, Fi = Pr ? Rr : Ft - B[nn] - E[nn] - Zi + P.altAxis, zi = Pr ? Ft + B[nn] + E[nn] - Zi - P.altAxis : Vn, ji = p && Pr ? h7(Fi, Ft, zi) : ri(p ? Fi : Rr, Ft, p ? zi : Vn);
19830
+ var Nr, $i = C === "x" ? et : tt, Bi = C === "x" ? bt : kt, Ft = M[S], nn = S === "y" ? "height" : "width", Rr = Ft + y[$i], Vn = Ft - y[Bi], Pr = [et, tt].indexOf(b) !== -1, Zi = (Nr = ne == null ? void 0 : ne[S]) != null ? Nr : 0, Fi = Pr ? Rr : Ft - B[nn] - E[nn] - Zi + I.altAxis, zi = Pr ? Ft + B[nn] + E[nn] - Zi - I.altAxis : Vn, ji = p && Pr ? h7(Fi, Ft, zi) : ri(p ? Fi : Rr, Ft, p ? zi : Vn);
19826
19831
  M[S] = ji, Z[S] = ji - Ft;
19827
19832
  }
19828
19833
  e.modifiersData[r] = Z;
@@ -19967,8 +19972,8 @@ function eg(n) {
19967
19972
  d.rects = {
19968
19973
  reference: J7(L, Ri(x), d.options.strategy === "fixed"),
19969
19974
  popper: Wa(x)
19970
- }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(P) {
19971
- return d.modifiersData[P.name] = Object.assign({}, P.data);
19975
+ }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(I) {
19976
+ return d.modifiersData[I.name] = Object.assign({}, I.data);
19972
19977
  });
19973
19978
  for (var C = 0; C < d.orderedModifiers.length; C++) {
19974
19979
  if (d.reset === !0) {
@@ -20434,12 +20439,12 @@ function Og(n, e) {
20434
20439
  }), M.addEventListener("mouseleave", function() {
20435
20440
  C.props.interactive && C.props.trigger.indexOf("mouseenter") >= 0 && Q().addEventListener("mousemove", h);
20436
20441
  }), C;
20437
- function P() {
20442
+ function I() {
20438
20443
  var H = C.props.touch;
20439
20444
  return Array.isArray(H) ? H : [H, 0];
20440
20445
  }
20441
20446
  function ne() {
20442
- return P()[0] === "hold";
20447
+ return I()[0] === "hold";
20443
20448
  }
20444
20449
  function Z() {
20445
20450
  var H;
@@ -20697,7 +20702,7 @@ function Og(n, e) {
20697
20702
  }
20698
20703
  function Rr(H) {
20699
20704
  C.clearDelayTimeouts(), H && de("onTrigger", [C, H]), nt();
20700
- var q = le(!0), ee = P(), ye = ee[0], he = ee[1];
20705
+ var q = le(!0), ee = I(), ye = ee[0], he = ee[1];
20701
20706
  Vt.isTouch && ye === "hold" && he && (q = he), q ? r = setTimeout(function() {
20702
20707
  C.show();
20703
20708
  }, q) : C.show();
@@ -21287,7 +21292,7 @@ const Rg = (n = {}) => {
21287
21292
  delay: 200
21288
21293
  }, {
21289
21294
  default: z(() => [
21290
- I(k(Ie), {
21295
+ P(k(Ve), {
21291
21296
  tag: "button",
21292
21297
  inline: "",
21293
21298
  justify: "center",
@@ -21358,7 +21363,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21358
21363
  f[3] || (f[3] = w("header", null, "Insert link", -1)),
21359
21364
  w("section", Fg, [
21360
21365
  f[1] || (f[1] = w("div", { class: "text-xs text-secondary" }, " Text to display ", -1)),
21361
- I(k(go), {
21366
+ P(k(go), {
21362
21367
  ref_key: "inputRef",
21363
21368
  ref: s,
21364
21369
  placeholder: "Text to display",
@@ -21368,13 +21373,13 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21368
21373
  ]),
21369
21374
  w("section", zg, [
21370
21375
  f[2] || (f[2] = w("div", { class: "text-xs text-secondary" }, " Address ", -1)),
21371
- I(k(go), {
21376
+ P(k(go), {
21372
21377
  placeholder: "Link to a web page",
21373
21378
  value: i.value || "",
21374
21379
  onChange: a
21375
21380
  }, null, 8, ["value"])
21376
21381
  ]),
21377
- I(k(_l), {
21382
+ P(k(_l), {
21378
21383
  "confirm-label": "Insert",
21379
21384
  onConfirm: d,
21380
21385
  onCancel: f[0] || (f[0] = (p) => r("cancel"))
@@ -21398,7 +21403,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21398
21403
  default: z(() => [
21399
21404
  u[0] || (u[0] = w("header", null, "Insert text", -1)),
21400
21405
  w("section", Wg, [
21401
- I(k(go), {
21406
+ P(k(go), {
21402
21407
  ref_key: "inputRef",
21403
21408
  ref: i,
21404
21409
  placeholder: "Text to be inserted",
@@ -21407,7 +21412,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21407
21412
  }, null, 8, ["value"])
21408
21413
  ]),
21409
21414
  w("div", Ug, [
21410
- I(k(_l), {
21415
+ P(k(_l), {
21411
21416
  "confirm-label": "Insert",
21412
21417
  onConfirm: l,
21413
21418
  onCancel: o
@@ -21501,7 +21506,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21501
21506
  ref: u,
21502
21507
  class: "relative w-full"
21503
21508
  }, [
21504
- I(k(Ie), {
21509
+ P(k(Ve), {
21505
21510
  col: "",
21506
21511
  align: "stretch",
21507
21512
  class: U(["relative rounded-lg font-normal focus-within:border-default", {
@@ -21513,7 +21518,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21513
21518
  }])
21514
21519
  }, {
21515
21520
  default: z(() => [
21516
- Z.headerLabel || Z.headerIcon ? (g(), D(k(Ie), {
21521
+ Z.headerLabel || Z.headerIcon ? (g(), D(k(Ve), {
21517
21522
  key: 0,
21518
21523
  tag: "header",
21519
21524
  class: U(["flex-0 h-10 px-3 gap-2 text-sm text-primary rounded-t-lg overflow-hidden", h.value])
@@ -21527,13 +21532,13 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21527
21532
  ]),
21528
21533
  _: 1
21529
21534
  }, 8, ["class"])) : N("", !0),
21530
- I(k(Ie), {
21535
+ P(k(Ve), {
21531
21536
  tag: "main",
21532
21537
  align: "start",
21533
21538
  fullwidth: ""
21534
21539
  }, {
21535
21540
  default: z(() => [
21536
- I(k(Ng), {
21541
+ P(k(Ng), {
21537
21542
  class: U(["flex-1 overflow-y-auto rounded-t-lg focus:outline-hidden", {
21538
21543
  [Z.editorContentClasses]: !s.value,
21539
21544
  [Z.editorContentFocusClasses]: s.value
@@ -21547,19 +21552,19 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21547
21552
  key: 1,
21548
21553
  class: U(["flex-0 min-h-0 p-1 rounded-b-lg overflow-hidden", m.value])
21549
21554
  }, [
21550
- I(k(Ie), { justify: "between" }, {
21555
+ P(k(Ve), { justify: "between" }, {
21551
21556
  default: z(() => [
21552
- I(k(Ie), { class: "gap-0.5" }, {
21557
+ P(k(Ve), { class: "gap-0.5" }, {
21553
21558
  default: z(() => [
21554
21559
  k(Tu) ? (g(), v(O, { key: 0 }, [
21555
- I(rt, {
21560
+ P(rt, {
21556
21561
  icon: "undo",
21557
21562
  tooltip: "Undo",
21558
21563
  onClick: F[0] || (F[0] = (Q) => {
21559
21564
  k(f).chain().focus().undo().run(), C();
21560
21565
  })
21561
21566
  }),
21562
- I(rt, {
21567
+ P(rt, {
21563
21568
  icon: "redo",
21564
21569
  tooltip: "Redo",
21565
21570
  onClick: F[1] || (F[1] = (Q) => {
@@ -21568,7 +21573,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21568
21573
  })
21569
21574
  ], 64)) : N("", !0),
21570
21575
  Z.emphasis ? (g(), v(O, { key: 1 }, [
21571
- I(rt, {
21576
+ P(rt, {
21572
21577
  icon: "bold",
21573
21578
  tooltip: "Bold",
21574
21579
  active: k(f).isActive("bold"),
@@ -21576,7 +21581,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21576
21581
  k(f).chain().focus().toggleBold().run(), C();
21577
21582
  })
21578
21583
  }, null, 8, ["active"]),
21579
- I(rt, {
21584
+ P(rt, {
21580
21585
  icon: "italics",
21581
21586
  tooltip: "Italic",
21582
21587
  active: k(f).isActive("italic"),
@@ -21584,7 +21589,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21584
21589
  k(f).chain().focus().toggleItalic().run(), C();
21585
21590
  })
21586
21591
  }, null, 8, ["active"]),
21587
- I(rt, {
21592
+ P(rt, {
21588
21593
  icon: "underline",
21589
21594
  tooltip: "Underline",
21590
21595
  active: k(f).isActive("underline"),
@@ -21621,7 +21626,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21621
21626
  })
21622
21627
  }, null, 8, ["active"])) : N("", !0),
21623
21628
  Z.listStyles ? (g(), v(O, { key: 5 }, [
21624
- I(rt, {
21629
+ P(rt, {
21625
21630
  icon: "bullet-list",
21626
21631
  tooltip: "Bullet list",
21627
21632
  active: k(f).isActive("bulletList"),
@@ -21629,7 +21634,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21629
21634
  k(f).chain().focus().toggleBulletList().run(), C();
21630
21635
  })
21631
21636
  }, null, 8, ["active"]),
21632
- I(rt, {
21637
+ P(rt, {
21633
21638
  icon: "numbered-list",
21634
21639
  tooltip: "Numbered list",
21635
21640
  active: k(f).isActive("orderedList"),
@@ -21637,7 +21642,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21637
21642
  k(f).chain().focus().toggleOrderedList().run(), C();
21638
21643
  })
21639
21644
  }, null, 8, ["active"]),
21640
- I(rt, {
21645
+ P(rt, {
21641
21646
  icon: "indent-right",
21642
21647
  tooltip: "Indent right",
21643
21648
  disabled: !k(f).can().sinkListItem("listItem"),
@@ -21645,7 +21650,7 @@ const _f = /* @__PURE__ */ Mn(Ig, [["render", Zg]]), Fg = { class: "space-y-1" }
21645
21650
  k(f).chain().focus().sinkListItem("listItem").run(), C();
21646
21651
  })
21647
21652
  }, null, 8, ["disabled"]),
21648
- I(rt, {
21653
+ P(rt, {
21649
21654
  icon: "indent-left",
21650
21655
  tooltip: "Indent left",
21651
21656
  disabled: !k(f).can().liftListItem("listItem"),
@@ -21896,7 +21901,7 @@ const Ky = /* @__PURE__ */ Mn(Gg, [["render", Qg]]), ey = ["disabled"], ty = { k
21896
21901
  }, u = (d) => {
21897
21902
  d.stopImmediatePropagation(), d.stopPropagation(), d.preventDefault(), t("cancel");
21898
21903
  };
21899
- return (d, c) => (g(), D(k(Ie), {
21904
+ return (d, c) => (g(), D(k(Ve), {
21900
21905
  ref_key: "container",
21901
21906
  ref: i,
21902
21907
  class: "h-8 gap-1 pr-1",
@@ -21924,14 +21929,14 @@ const Ky = /* @__PURE__ */ Mn(Gg, [["render", Qg]]), ey = ["disabled"], ty = { k
21924
21929
  }, null, 40, iy)
21925
21930
  ]),
21926
21931
  w("aside", oy, [
21927
- I(k(fe), {
21932
+ P(k(fe), {
21928
21933
  small: "",
21929
21934
  icon: "check",
21930
21935
  variant: "outlineSubtle",
21931
21936
  loading: d.saving,
21932
21937
  onClick: c[2] || (c[2] = (f) => t("save"))
21933
21938
  }, null, 8, ["loading"]),
21934
- I(k(fe), {
21939
+ P(k(fe), {
21935
21940
  small: "",
21936
21941
  icon: "close",
21937
21942
  variant: "outlineSubtle",
@@ -21979,7 +21984,7 @@ const Ky = /* @__PURE__ */ Mn(Gg, [["render", Qg]]), ey = ["disabled"], ty = { k
21979
21984
  return (m, y) => {
21980
21985
  var b;
21981
21986
  return g(), v(O, null, [
21982
- I(k(Ie), {
21987
+ P(k(Ve), {
21983
21988
  tag: "button",
21984
21989
  justify: "between",
21985
21990
  class: U(["w-full h-8 pr-1 gap-0 border-b border-default cursor-pointer", {
@@ -22006,7 +22011,7 @@ const Ky = /* @__PURE__ */ Mn(Gg, [["render", Qg]]), ey = ["disabled"], ty = { k
22006
22011
  ]
22007
22012
  }, {
22008
22013
  default: z(() => [
22009
- I(k(Ie), { class: "flex-1 min-w-0 pl-1 gap-1" }, {
22014
+ P(k(Ve), { class: "flex-1 min-w-0 pl-1 gap-1" }, {
22010
22015
  default: z(() => {
22011
22016
  var L;
22012
22017
  return [
@@ -22015,7 +22020,7 @@ const Ky = /* @__PURE__ */ Mn(Gg, [["render", Qg]]), ey = ["disabled"], ty = { k
22015
22020
  class: "w-4 h-4 flex items-center justify-center rounded cursor-pointer",
22016
22021
  onClick: y[0] || (y[0] = re((x) => t("toggle", [m.node]), ["stop", "prevent"]))
22017
22022
  }, [
22018
- I(k(xe), {
22023
+ P(k(xe), {
22019
22024
  name: m.node.open ? "chevron-down-small" : "chevron-right-small"
22020
22025
  }, null, 8, ["name"])
22021
22026
  ])) : (g(), v("div", ly)),
@@ -22024,18 +22029,18 @@ const Ky = /* @__PURE__ */ Mn(Gg, [["render", Qg]]), ey = ["disabled"], ty = { k
22024
22029
  }),
22025
22030
  _: 1
22026
22031
  }),
22027
- I(k(Ie), {
22032
+ P(k(Ve), {
22028
22033
  if: "node.actions.length",
22029
22034
  class: "flex-none"
22030
22035
  }, {
22031
22036
  default: z(() => [
22032
- I(k(yd), {
22037
+ P(k(yd), {
22033
22038
  options: m.node.actions,
22034
22039
  placement: "bottom-end",
22035
22040
  onSelect: d
22036
22041
  }, {
22037
22042
  trigger: z(() => [
22038
- I(k(fe), {
22043
+ P(k(fe), {
22039
22044
  icon: "options",
22040
22045
  small: "",
22041
22046
  variant: "textSubtle"
@@ -22275,7 +22280,7 @@ const Ky = /* @__PURE__ */ Mn(Gg, [["render", Qg]]), ey = ["disabled"], ty = { k
22275
22280
  },
22276
22281
  setup(n) {
22277
22282
  const e = n, t = [e.widthClass, e.windowFrame ? "px-8 py-6 bg-light shadow-sm-xl rounded-lg" : ""];
22278
- return (r, i) => (g(), D(k(Ie), {
22283
+ return (r, i) => (g(), D(k(Ve), {
22279
22284
  col: "",
22280
22285
  align: "stretch",
22281
22286
  justify: "start",
@@ -22293,7 +22298,7 @@ const Ky = /* @__PURE__ */ Mn(Gg, [["render", Qg]]), ey = ["disabled"], ty = { k
22293
22298
  ]),
22294
22299
  _: 3
22295
22300
  }, 8, ["border", "height-class"])) : N("", !0),
22296
- I(k(bo), {
22301
+ P(k(bo), {
22297
22302
  "window-resize": "",
22298
22303
  "wrap-class": "h-full"
22299
22304
  }, {
@@ -22349,7 +22354,7 @@ export {
22349
22354
  hd as BFadeInUp,
22350
22355
  P0 as BFilterChip,
22351
22356
  wy as BFirstPaint,
22352
- Ie as BFlexbox,
22357
+ Ve as BFlexbox,
22353
22358
  Ly as BHorizontalLayout,
22354
22359
  xe as BIcon,
22355
22360
  go as BInput,