@dialpad/dialtone-vue 3.112.0 → 3.114.0

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.
@@ -1,17 +1,17 @@
1
- import { _ as de, g as gi, d as Ga, h as qi, u as Ya, T as Xa, B as Qa, e as Za, i as ec, j as tc, k as nc, l as Es, t as Cr, m as rc, n as ic } from "./tooltip-Od71Luh6.js";
2
- import { B as sc, w as Er, I as oc, L as lc, C as ac, t as el, D as tl, E as cc, m as dc, o as nl } from "./emoji-acqIsOA0.js";
3
- import { openBlock as O, createElementBlock as j, toDisplayString as ut, createCommentVNode as J, createElementVNode as ht, normalizeClass as X, resolveComponent as $, createBlock as z, resolveDynamicComponent as kt, withCtx as q, mergeProps as Tr, renderSlot as se, withKeys as Ot, withModifiers as Xt, createVNode as nt, toHandlers as rl, createSlots as uc, renderList as il, Teleport as sl, defineComponent as $t, ref as Mr, onMounted as ol, onBeforeUnmount as Ki, h as ft, getCurrentInstance as hc, watchEffect as fc, nextTick as pc, unref as mc, markRaw as wr, reactive as ll, provide as Ts, customRef as gc, withDirectives as yc, Fragment as bc, vShow as kc, createTextVNode as Wi } from "vue";
1
+ import { _ as de, g as gi, d as Ga, h as qi, u as Ya, e as Xa, P as Qa, i as Es, j as Za, k as ec, l as tc, m as nc, n as rc, o as ic, p as sc, q as oc, T as Ts, t as Cr, r as lc, s as ac } from "./tooltip-FcHJcgMd.js";
2
+ import { B as cc, w as Er, I as dc, L as uc, C as hc, t as el, D as tl, E as fc, m as pc, o as nl } from "./emoji-ifbDMGtx.js";
3
+ import { openBlock as O, createElementBlock as j, toDisplayString as ut, createCommentVNode as J, createElementVNode as ht, normalizeClass as X, resolveComponent as $, createBlock as z, resolveDynamicComponent as kt, withCtx as q, mergeProps as Tr, renderSlot as se, withKeys as Ot, withModifiers as Xt, createVNode as nt, toHandlers as rl, createSlots as mc, renderList as il, Teleport as sl, defineComponent as $t, ref as Mr, onMounted as ol, onBeforeUnmount as Ki, h as ft, getCurrentInstance as gc, watchEffect as yc, nextTick as bc, unref as kc, markRaw as wr, reactive as ll, provide as Ms, customRef as Sc, withDirectives as xc, Fragment as Cc, vShow as Ec, createTextVNode as Wi } from "vue";
4
4
  const Ut = {
5
5
  BUSY: "busy",
6
6
  AWAY: "away",
7
7
  OFFLINE: "offline",
8
8
  ACTIVE: "active"
9
- }, Sc = [
9
+ }, Tc = [
10
10
  Ut.BUSY,
11
11
  Ut.AWAY,
12
12
  Ut.OFFLINE,
13
13
  Ut.ACTIVE
14
- ], xc = {
14
+ ], Mc = {
15
15
  name: "DtPresence",
16
16
  props: {
17
17
  /**
@@ -22,7 +22,7 @@ const Ut = {
22
22
  presence: {
23
23
  type: String,
24
24
  default: Ut.ACTIVE,
25
- validator: (n) => Sc.includes(n)
25
+ validator: (n) => Tc.includes(n)
26
26
  },
27
27
  /**
28
28
  * Since Presence is a visual element, we need SRs to read out any state changes
@@ -34,19 +34,19 @@ const Ut = {
34
34
  default: null
35
35
  }
36
36
  }
37
- }, Cc = ["aria-live"], Ec = {
37
+ }, wc = ["aria-live"], Oc = {
38
38
  key: 0,
39
39
  "data-qa": "dt-presence-sr-text",
40
40
  class: "sr-only"
41
41
  };
42
- function Tc(n, e, t, r, i, s) {
42
+ function vc(n, e, t, r, i, s) {
43
43
  return O(), j("div", {
44
44
  class: "d-presence",
45
45
  "data-qa": "dt-presence",
46
46
  role: "status",
47
47
  "aria-live": n.$attrs.ariaLive || "off"
48
48
  }, [
49
- t.srText ? (O(), j("span", Ec, ut(t.srText), 1)) : J("", !0),
49
+ t.srText ? (O(), j("span", Oc, ut(t.srText), 1)) : J("", !0),
50
50
  ht("div", {
51
51
  class: X(["d-presence__inner", {
52
52
  "d-presence__inner--active": t.presence === "active",
@@ -55,34 +55,34 @@ function Tc(n, e, t, r, i, s) {
55
55
  "d-presence__inner--offline": t.presence === "offline"
56
56
  }])
57
57
  }, null, 2)
58
- ], 8, Cc);
58
+ ], 8, wc);
59
59
  }
60
- const Mc = /* @__PURE__ */ de(xc, [["render", Tc]]), jr = {
60
+ const Ac = /* @__PURE__ */ de(Mc, [["render", vc]]), jr = {
61
61
  xs: "d-avatar--xs",
62
62
  sm: "d-avatar--sm",
63
63
  md: "d-avatar--md",
64
64
  lg: "d-avatar--lg",
65
65
  xl: "d-avatar--xl"
66
- }, wc = {
66
+ }, Nc = {
67
67
  default: "",
68
68
  icon: "d-avatar__icon",
69
69
  initials: "d-avatar__initials"
70
- }, Oc = {
70
+ }, Dc = {
71
71
  md: "d-avatar__presence--md",
72
72
  lg: "d-avatar__presence--lg"
73
- }, Ms = {
73
+ }, ws = {
74
74
  NONE: "",
75
75
  BUSY: "busy",
76
76
  AWAY: "away",
77
77
  OFFLINE: "offline",
78
78
  ACTIVE: "active"
79
- }, vc = {
79
+ }, Ic = {
80
80
  xs: "100",
81
81
  sm: "200",
82
82
  md: "300",
83
83
  lg: "500",
84
84
  xl: "600"
85
- }, Ac = [
85
+ }, Rc = [
86
86
  "100",
87
87
  "200",
88
88
  "300",
@@ -101,18 +101,18 @@ const Mc = /* @__PURE__ */ de(xc, [["render", Tc]]), jr = {
101
101
  "1600",
102
102
  "1700",
103
103
  "1800"
104
- ], ws = (n) => n > 1;
105
- function Nc() {
106
- return [void 0, ...sc];
104
+ ], Os = (n) => n > 1;
105
+ function Pc() {
106
+ return [void 0, ...cc];
107
107
  }
108
- const Dc = (n) => {
108
+ const Lc = (n) => {
109
109
  if (typeof n != "string" || !n.trim())
110
110
  return "";
111
111
  const e = n.trim().split(/\s+/g);
112
112
  return e.length === 1 ? e.join("").substring(0, 2) : e.filter((t, r) => r === 0 || r === e.length - 1).map((t) => t.slice(0, 1).toUpperCase()).join("");
113
- }, Ic = Nc(), Rc = {
113
+ }, Bc = Pc(), _c = {
114
114
  name: "DtAvatar",
115
- components: { DtPresence: Mc, DtIcon: Er },
115
+ components: { DtPresence: Ac, DtIcon: Er },
116
116
  inheritAttrs: !1,
117
117
  props: {
118
118
  /**
@@ -178,8 +178,8 @@ const Dc = (n) => {
178
178
  */
179
179
  presence: {
180
180
  type: String,
181
- default: Ms.NONE,
182
- validator: (n) => Object.values(Ms).includes(n)
181
+ default: ws.NONE,
182
+ validator: (n) => Object.values(ws).includes(n)
183
183
  },
184
184
  /**
185
185
  * A set of props to be passed into the presence component.
@@ -196,7 +196,7 @@ const Dc = (n) => {
196
196
  group: {
197
197
  type: Number,
198
198
  default: void 0,
199
- validator: (n) => ws(n)
199
+ validator: (n) => Os(n)
200
200
  },
201
201
  /**
202
202
  * The icon that overlays the avatar
@@ -241,7 +241,7 @@ const Dc = (n) => {
241
241
  iconName: {
242
242
  type: String,
243
243
  default: void 0,
244
- validator: (n) => Ic.includes(n)
244
+ validator: (n) => Bc.includes(n)
245
245
  },
246
246
  /**
247
247
  * Icon size to be displayed on the avatar
@@ -250,7 +250,7 @@ const Dc = (n) => {
250
250
  iconSize: {
251
251
  type: String,
252
252
  default: "",
253
- validator: (n) => !n || Object.keys(oc).includes(n)
253
+ validator: (n) => !n || Object.keys(dc).includes(n)
254
254
  },
255
255
  /**
256
256
  * Full name used to extract initials.
@@ -288,9 +288,9 @@ const Dc = (n) => {
288
288
  data() {
289
289
  return {
290
290
  AVATAR_SIZE_MODIFIERS: jr,
291
- AVATAR_KIND_MODIFIERS: wc,
292
- AVATAR_PRESENCE_SIZE_MODIFIERS: Oc,
293
- AVATAR_ICON_SIZES: vc,
291
+ AVATAR_KIND_MODIFIERS: Nc,
292
+ AVATAR_PRESENCE_SIZE_MODIFIERS: Dc,
293
+ AVATAR_ICON_SIZES: Ic,
294
294
  imageLoadedSuccessfully: null,
295
295
  formattedInitials: "",
296
296
  initializing: !1
@@ -319,7 +319,7 @@ const Dc = (n) => {
319
319
  ];
320
320
  },
321
321
  showGroup() {
322
- return ws(this.group);
322
+ return Os(this.group);
323
323
  },
324
324
  formattedGroup() {
325
325
  return this.group > 99 ? "99+" : this.group;
@@ -364,11 +364,11 @@ const Dc = (n) => {
364
364
  n && (n.addEventListener("load", () => this._loadedImageEventHandler(n), { once: !0 }), n.addEventListener("error", () => this._erroredImageEventHandler(n), { once: !0 }));
365
365
  },
366
366
  formatInitials() {
367
- const n = Dc(this.fullName);
367
+ const n = Lc(this.fullName);
368
368
  this.validatedSize === "xs" ? this.formattedInitials = "" : this.validatedSize === "sm" ? this.formattedInitials = n[0] : this.formattedInitials = n;
369
369
  },
370
370
  getColor() {
371
- return this.color ?? Ga(Ac, this.seed);
371
+ return this.color ?? Ga(Rc, this.seed);
372
372
  },
373
373
  _loadedImageEventHandler(n) {
374
374
  this.imageLoadedSuccessfully = !0, n.classList.remove("d-d-none");
@@ -377,22 +377,21 @@ const Dc = (n) => {
377
377
  this.imageLoadedSuccessfully = !1, n.classList.add("d-d-none");
378
378
  },
379
379
  validateProps() {
380
- if (this.imageSrc && this.imageAlt === void 0)
381
- throw new Error("full-name or image-alt must be set if image-src is provided");
380
+ this.imageSrc && this.imageAlt === void 0 && console.error('image-alt required if image-src is provided. Can be set to "" (empty string) if the image is described in text nearby');
382
381
  },
383
382
  handleClick(n) {
384
383
  this.clickable && this.$emit("click", n);
385
384
  }
386
385
  }
387
- }, Pc = ["src", "alt"], Lc = {
386
+ }, Fc = ["src", "alt"], zc = {
388
387
  key: 1,
389
388
  class: "d-avatar__overlay-text"
390
- }, Bc = {
389
+ }, Hc = {
391
390
  key: 1,
392
391
  class: "d-avatar__count",
393
392
  "data-qa": "dt-avatar-count"
394
393
  };
395
- function _c(n, e, t, r, i, s) {
394
+ function Vc(n, e, t, r, i, s) {
396
395
  const o = $("dt-icon"), l = $("dt-presence");
397
396
  return O(), z(kt(t.clickable ? "button" : "div"), {
398
397
  id: t.id,
@@ -416,7 +415,7 @@ function _c(n, e, t, r, i, s) {
416
415
  "data-qa": "dt-avatar-image",
417
416
  src: t.imageSrc,
418
417
  alt: t.imageAlt
419
- }, null, 8, Pc)) : t.iconName ? (O(), z(o, {
418
+ }, null, 8, Fc)) : t.iconName ? (O(), z(o, {
420
419
  key: 1,
421
420
  name: t.iconName,
422
421
  "aria-label": t.iconAriaLabel,
@@ -436,9 +435,9 @@ function _c(n, e, t, r, i, s) {
436
435
  key: 0,
437
436
  class: "d-avatar__overlay-icon",
438
437
  name: t.overlayIcon
439
- }, null, 8, ["name"])) : t.overlayText ? (O(), j("p", Lc, ut(t.overlayText), 1)) : J("", !0)
438
+ }, null, 8, ["name"])) : t.overlayText ? (O(), j("p", zc, ut(t.overlayText), 1)) : J("", !0)
440
439
  ], 2)) : J("", !0),
441
- s.showGroup ? (O(), j("span", Bc, ut(s.formattedGroup), 1)) : J("", !0),
440
+ s.showGroup ? (O(), j("span", Hc, ut(s.formattedGroup), 1)) : J("", !0),
442
441
  t.presence && !s.showGroup ? (O(), z(l, Tr({
443
442
  key: 2,
444
443
  presence: t.presence,
@@ -451,7 +450,7 @@ function _c(n, e, t, r, i, s) {
451
450
  _: 1
452
451
  }, 8, ["id", "class", "onClick"]);
453
452
  }
454
- const Fc = /* @__PURE__ */ de(Rc, [["render", _c]]), zc = {
453
+ const $c = /* @__PURE__ */ de(_c, [["render", Vc]]), jc = {
455
454
  name: "DtLink",
456
455
  props: {
457
456
  /**
@@ -462,17 +461,17 @@ const Fc = /* @__PURE__ */ de(Rc, [["render", _c]]), zc = {
462
461
  type: String,
463
462
  default: "",
464
463
  validator(n) {
465
- return lc.includes(n);
464
+ return uc.includes(n);
466
465
  }
467
466
  }
468
467
  },
469
468
  data() {
470
469
  return {
471
- LINK_KIND_MODIFIERS: ac
470
+ LINK_KIND_MODIFIERS: hc
472
471
  };
473
472
  }
474
- }, Hc = ["href"];
475
- function Vc(n, e, t, r, i, s) {
473
+ }, qc = ["href"];
474
+ function Kc(n, e, t, r, i, s) {
476
475
  return O(), j("a", {
477
476
  class: X([
478
477
  "d-link",
@@ -482,9 +481,9 @@ function Vc(n, e, t, r, i, s) {
482
481
  href: "href" in n.$attrs ? n.$attrs.href : "javascript:void(0)"
483
482
  }, [
484
483
  se(n.$slots, "default")
485
- ], 10, Hc);
484
+ ], 10, qc);
486
485
  }
487
- const $c = /* @__PURE__ */ de(zc, [["render", Vc]]), jc = {
486
+ const Wc = /* @__PURE__ */ de(jc, [["render", Kc]]), Uc = {
488
487
  props: {
489
488
  /**
490
489
  * If true, a hidden close button is included for screen readers
@@ -523,7 +522,7 @@ const $c = /* @__PURE__ */ de(zc, [["render", Vc]]), jc = {
523
522
  a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`);
524
523
  }
525
524
  }
526
- }, qc = {
525
+ }, Jc = {
527
526
  name: "SrOnlyCloseButton",
528
527
  components: {
529
528
  DtIcon: Er,
@@ -546,7 +545,7 @@ const $c = /* @__PURE__ */ de(zc, [["render", Vc]]), jc = {
546
545
  }
547
546
  }
548
547
  };
549
- function Kc(n, e, t, r, i, s) {
548
+ function Gc(n, e, t, r, i, s) {
550
549
  const o = $("dt-icon"), l = $("dt-button");
551
550
  return O(), z(l, {
552
551
  id: "sr-only-close-button",
@@ -562,7 +561,7 @@ function Kc(n, e, t, r, i, s) {
562
561
  _: 1
563
562
  }, 8, ["aria-label", "onClick", "onKeydown"]);
564
563
  }
565
- const Wc = /* @__PURE__ */ de(qc, [["render", Kc]]), al = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', Uc = `${al}:not([tabindex="-1"])`, Jc = "button,[href],input,select,textarea,details,[tabindex]", Gc = {
564
+ const Yc = /* @__PURE__ */ de(Jc, [["render", Gc]]), al = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', Xc = `${al}:not([tabindex="-1"])`, Qc = "button,[href],input,select,textarea,details,[tabindex]", Zc = {
566
565
  methods: {
567
566
  /**
568
567
  * get the first focusable element in your component, includes tabindex="-1".
@@ -606,9 +605,9 @@ const Wc = /* @__PURE__ */ de(qc, [["render", Kc]]), al = ':not(:disabled):not([
606
605
  * @param {bool} includeNegativeTabIndex - will include tabindex="-1" in the list of focusable elements.
607
606
  */
608
607
  _getFocusableElements(n = this.$el, e = !1) {
609
- return n ? [...n.querySelectorAll(Jc)].filter((r) => {
608
+ return n ? [...n.querySelectorAll(Qc)].filter((r) => {
610
609
  const i = window.getComputedStyle(r);
611
- return i.getPropertyValue("display") !== "none" && i.getPropertyValue("visibility") !== "hidden" && r.matches(e ? al : Uc);
610
+ return i.getPropertyValue("display") !== "none" && i.getPropertyValue("visibility") !== "hidden" && r.matches(e ? al : Xc);
612
611
  }) : [];
613
612
  },
614
613
  /**
@@ -636,7 +635,7 @@ const Wc = /* @__PURE__ */ de(qc, [["render", Kc]]), al = ':not(:disabled):not([
636
635
  ARROW_KEYS: "arrow-keys",
637
636
  TAB: "tab",
638
637
  NONE: "none"
639
- }, Yc = {
638
+ }, ed = {
640
639
  name: "DtItemLayout",
641
640
  props: {
642
641
  /**
@@ -656,40 +655,40 @@ const Wc = /* @__PURE__ */ de(qc, [["render", Kc]]), al = ':not(:disabled):not([
656
655
  }
657
656
  },
658
657
  methods: { hasSlotContent: qi }
659
- }, Xc = {
658
+ }, td = {
660
659
  key: 0,
661
660
  "data-qa": "dt-item-layout-left-wrapper",
662
661
  class: "dt-item-layout--left"
663
- }, Qc = {
662
+ }, nd = {
664
663
  "data-qa": "dt-item-layout-content-wrapper",
665
664
  class: "dt-item-layout--content"
666
- }, Zc = {
665
+ }, rd = {
667
666
  key: 0,
668
667
  "data-qa": "dt-item-layout-title-wrapper",
669
668
  class: "dt-item-layout--title"
670
- }, ed = {
669
+ }, id = {
671
670
  key: 2,
672
671
  "data-qa": "dt-item-layout-bottom-wrapper",
673
672
  class: "dt-item-layout--bottom"
674
- }, td = {
673
+ }, sd = {
675
674
  key: 1,
676
675
  "data-qa": "dt-item-layout-right-wrapper",
677
676
  class: "dt-item-layout--right"
678
- }, nd = {
677
+ }, od = {
679
678
  key: 2,
680
679
  "data-qa": "dt-item-layout-selected-wrapper",
681
680
  class: "dt-item-layout--selected"
682
681
  };
683
- function rd(n, e, t, r, i, s) {
682
+ function ld(n, e, t, r, i, s) {
684
683
  return O(), z(kt(t.as), {
685
684
  class: X(t.unstyled ? "dt-item-layout--custom" : "dt-item-layout")
686
685
  }, {
687
686
  default: q(() => [
688
- s.hasSlotContent(n.$slots.left) ? (O(), j("section", Xc, [
687
+ s.hasSlotContent(n.$slots.left) ? (O(), j("section", td, [
689
688
  se(n.$slots, "left")
690
689
  ])) : J("", !0),
691
- ht("section", Qc, [
692
- s.hasSlotContent(n.$slots.default) ? (O(), j("div", Zc, [
690
+ ht("section", nd, [
691
+ s.hasSlotContent(n.$slots.default) ? (O(), j("div", rd, [
693
692
  se(n.$slots, "default")
694
693
  ])) : J("", !0),
695
694
  s.hasSlotContent(n.$slots.subtitle) ? (O(), j("div", {
@@ -699,24 +698,24 @@ function rd(n, e, t, r, i, s) {
699
698
  }, [
700
699
  se(n.$slots, "subtitle")
701
700
  ], 2)) : J("", !0),
702
- s.hasSlotContent(n.$slots.bottom) ? (O(), j("div", ed, [
701
+ s.hasSlotContent(n.$slots.bottom) ? (O(), j("div", id, [
703
702
  se(n.$slots, "bottom")
704
703
  ])) : J("", !0)
705
704
  ]),
706
- s.hasSlotContent(n.$slots.right) ? (O(), j("section", td, [
705
+ s.hasSlotContent(n.$slots.right) ? (O(), j("section", sd, [
707
706
  se(n.$slots, "right")
708
707
  ])) : J("", !0),
709
- s.hasSlotContent(n.$slots.selected) ? (O(), j("section", nd, [
708
+ s.hasSlotContent(n.$slots.selected) ? (O(), j("section", od, [
710
709
  se(n.$slots, "selected")
711
710
  ])) : J("", !0)
712
711
  ]),
713
712
  _: 3
714
713
  }, 8, ["class"]);
715
714
  }
716
- const Os = /* @__PURE__ */ de(Yc, [["render", rd]]), id = ["listitem", "option"], sd = {
715
+ const vs = /* @__PURE__ */ de(ed, [["render", ld]]), ad = ["listitem", "menuitem", "option"], cd = {
717
716
  name: "DtListItem",
718
717
  components: {
719
- DtItemLayout: Os,
718
+ DtItemLayout: vs,
720
719
  DtIcon: Er
721
720
  },
722
721
  /**
@@ -741,7 +740,7 @@ const Os = /* @__PURE__ */ de(Yc, [["render", rd]]), id = ["listitem", "option"]
741
740
  role: {
742
741
  type: String,
743
742
  default: "listitem",
744
- validator: (n) => id.includes(n)
743
+ validator: (n) => ad.includes(n)
745
744
  },
746
745
  /**
747
746
  * HTML element type (tag name) of the content wrapper element.
@@ -818,7 +817,7 @@ const Os = /* @__PURE__ */ de(Yc, [["render", rd]]), id = ["listitem", "option"]
818
817
  listItemType() {
819
818
  switch (this.type) {
820
819
  case qr.DEFAULT:
821
- return Os;
820
+ return vs;
822
821
  default:
823
822
  return null;
824
823
  }
@@ -865,7 +864,7 @@ const Os = /* @__PURE__ */ de(Yc, [["render", rd]]), id = ["listitem", "option"]
865
864
  }
866
865
  }
867
866
  };
868
- function od(n, e, t, r, i, s) {
867
+ function dd(n, e, t, r, i, s) {
869
868
  const o = $("dt-icon");
870
869
  return O(), z(kt(t.elementType), Tr({
871
870
  id: t.id,
@@ -876,10 +875,10 @@ function od(n, e, t, r, i, s) {
876
875
  }],
877
876
  tabindex: s.isFocusable ? 0 : -1,
878
877
  role: t.role,
879
- "aria-selected": t.role === "option" ? s.isHighlighted : void 0
878
+ "aria-selected": t.role === "listitem" ? void 0 : s.isHighlighted
880
879
  }, rl(s.listItemListeners)), {
881
880
  default: q(() => [
882
- s.listItemType ? (O(), z(kt(s.listItemType), { key: 0 }, uc({ _: 2 }, [
881
+ s.listItemType ? (O(), z(kt(s.listItemType), { key: 0 }, mc({ _: 2 }, [
883
882
  il(n.$slots, (l, a) => ({
884
883
  name: a,
885
884
  fn: q(() => [
@@ -902,27 +901,13 @@ function od(n, e, t, r, i, s) {
902
901
  _: 3
903
902
  }, 16, ["id", "class", "tabindex", "role", "aria-selected"]);
904
903
  }
905
- const ld = /* @__PURE__ */ de(sd, [["render", od]]), St = {
904
+ const ud = /* @__PURE__ */ de(cd, [["render", dd]]), St = {
906
905
  default: "column",
907
906
  column: "column",
908
907
  row: "row",
909
908
  "row-reverse": "row-reverse",
910
909
  "column-reverse": "column-reverse"
911
- }, cl = ["sm", "md", "lg", "xl"], Ui = ["0", "100", "200", "300", "400", "450", "500", "600"], vs = {
912
- none: void 0,
913
- small: "d-p4",
914
- medium: "d-p8",
915
- large: "d-p16"
916
- }, ad = {
917
- none: void 0,
918
- small: "d-pl4",
919
- medium: "d-pl8",
920
- large: "d-pl16"
921
- }, cd = ["dialog", "menu", "listbox", "tree", "grid"], dd = ["", "anchor"], ud = ["none", "dialog", "first"], hd = ["parent", "body"], fd = [
922
- ...Xa
923
- ], gy = [
924
- ...Qa
925
- ], pd = {
910
+ }, cl = ["sm", "md", "lg", "xl"], Ui = ["0", "100", "200", "300", "400", "450", "500", "600"], hd = {
926
911
  name: "PopoverHeaderFooter",
927
912
  components: {
928
913
  DtButton: el,
@@ -983,7 +968,7 @@ const ld = /* @__PURE__ */ de(sd, [["render", od]]), St = {
983
968
  }
984
969
  }
985
970
  };
986
- function md(n, e, t, r, i, s) {
971
+ function fd(n, e, t, r, i, s) {
987
972
  const o = $("dt-icon"), l = $("dt-button");
988
973
  return O(), j("div", {
989
974
  "data-qa": "dt-popover-header-footer",
@@ -1026,17 +1011,17 @@ function md(n, e, t, r, i, s) {
1026
1011
  }, 16, ["class"])) : J("", !0)
1027
1012
  ], 2);
1028
1013
  }
1029
- const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1014
+ const pd = /* @__PURE__ */ de(hd, [["render", fd]]), md = {
1030
1015
  name: "DtPopover",
1031
1016
  /********************
1032
1017
  * CHILD COMPONENTS *
1033
1018
  ********************/
1034
1019
  components: {
1035
- SrOnlyCloseButton: Wc,
1036
- DtLazyShow: Za,
1037
- PopoverHeaderFooter: gd
1020
+ SrOnlyCloseButton: Yc,
1021
+ DtLazyShow: Xa,
1022
+ PopoverHeaderFooter: pd
1038
1023
  },
1039
- mixins: [Gc, jc],
1024
+ mixins: [Zc, Uc],
1040
1025
  props: {
1041
1026
  /**
1042
1027
  * Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
@@ -1079,7 +1064,7 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1079
1064
  role: {
1080
1065
  type: String,
1081
1066
  default: "dialog",
1082
- validator: (n) => cd.includes(n)
1067
+ validator: (n) => Qa.includes(n)
1083
1068
  },
1084
1069
  /**
1085
1070
  * ID of the element that serves as the label for the popover content.
@@ -1115,7 +1100,7 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1115
1100
  padding: {
1116
1101
  type: String,
1117
1102
  default: "large",
1118
- validator: (n) => Object.keys(vs).some((e) => e === n)
1103
+ validator: (n) => Object.keys(Es).some((e) => e === n)
1119
1104
  },
1120
1105
  /**
1121
1106
  * Additional class name for the content wrapper element.
@@ -1132,7 +1117,7 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1132
1117
  contentWidth: {
1133
1118
  type: String,
1134
1119
  default: "",
1135
- validator: (n) => dd.includes(n)
1120
+ validator: (n) => Za.includes(n)
1136
1121
  },
1137
1122
  /**
1138
1123
  * Whether to apply transition on initial render in the content lazy show component.
@@ -1266,7 +1251,7 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1266
1251
  sticky: {
1267
1252
  type: [Boolean, String],
1268
1253
  default: !1,
1269
- validator: (n) => fd.includes(n)
1254
+ validator: (n) => ec.includes(n)
1270
1255
  },
1271
1256
  /**
1272
1257
  * Determines maximum height for the popover before overflow.
@@ -1324,7 +1309,7 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1324
1309
  initialFocusElement: {
1325
1310
  type: [String, HTMLElement],
1326
1311
  default: "first",
1327
- validator: (n) => ud.includes(n) || n instanceof HTMLElement || n.startsWith("#")
1312
+ validator: (n) => tc.includes(n) || n instanceof HTMLElement || n.startsWith("#")
1328
1313
  },
1329
1314
  /**
1330
1315
  * If the popover should open pressing up or down arrow key on the anchor element.
@@ -1343,7 +1328,7 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1343
1328
  appendTo: {
1344
1329
  type: [HTMLElement, String],
1345
1330
  default: "body",
1346
- validator: (n) => hd.includes(n) || n instanceof HTMLElement
1331
+ validator: (n) => nc.includes(n) || n instanceof HTMLElement
1347
1332
  },
1348
1333
  /**
1349
1334
  * Set this prop to true and popover component will support hovercard behaviour
@@ -1388,8 +1373,8 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1388
1373
  ],
1389
1374
  data() {
1390
1375
  return {
1391
- POPOVER_PADDING_CLASSES: vs,
1392
- POPOVER_HEADER_FOOTER_PADDING_CLASSES: ad,
1376
+ POPOVER_PADDING_CLASSES: Es,
1377
+ POPOVER_HEADER_FOOTER_PADDING_CLASSES: rc,
1393
1378
  intersectionObserver: null,
1394
1379
  isOutsideViewport: !1,
1395
1380
  isOpen: !1,
@@ -1506,11 +1491,11 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1506
1491
  const e = (r = n == null ? void 0 : n[0]) == null ? void 0 : r.target;
1507
1492
  if (!e)
1508
1493
  return;
1509
- const t = ec(e);
1494
+ const t = ic(e);
1510
1495
  this.isOutsideViewport = t.bottom || t.top;
1511
1496
  },
1512
1497
  popperOptions() {
1513
- return tc({
1498
+ return sc({
1514
1499
  fallbackPlacements: this.fallbackPlacements,
1515
1500
  tether: this.tether,
1516
1501
  hasHideModifierEnabled: !0
@@ -1628,7 +1613,7 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1628
1613
  },
1629
1614
  initTippyInstance() {
1630
1615
  var n, e;
1631
- this.tip = nc(this.anchorEl, {
1616
+ this.tip = oc(this.anchorEl, {
1632
1617
  popperOptions: this.popperOptions(),
1633
1618
  contentElement: this.popoverContentEl,
1634
1619
  placement: this.placement,
@@ -1651,12 +1636,12 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1651
1636
  setInTimer() {
1652
1637
  this.inTimer = setTimeout(() => {
1653
1638
  this.isOpen = !0;
1654
- }, Es);
1639
+ }, Ts);
1655
1640
  },
1656
1641
  setOutTimer() {
1657
1642
  this.outTimer = setTimeout(() => {
1658
1643
  this.isOpen = !1;
1659
- }, Es);
1644
+ }, Ts);
1660
1645
  },
1661
1646
  onEnterAnchor() {
1662
1647
  this.hovercard && (this.timer ? this.timer.enter(this.id) : (clearTimeout(this.outTimer), this.setInTimer()));
@@ -1674,8 +1659,8 @@ const gd = /* @__PURE__ */ de(pd, [["render", md]]), yd = {
1674
1659
  // $ HOVERCARD
1675
1660
  // ----------------------------------------------------------------------------
1676
1661
  }
1677
- }, bd = ["aria-hidden"], kd = ["id", "data-qa", "tabindex"], Sd = ["data-qa"];
1678
- function xd(n, e, t, r, i, s) {
1662
+ }, gd = ["aria-hidden"], yd = ["id", "data-qa", "tabindex"], bd = ["data-qa"];
1663
+ function kd(n, e, t, r, i, s) {
1679
1664
  const o = $("popover-header-footer"), l = $("sr-only-close-button"), a = $("dt-lazy-show");
1680
1665
  return O(), j("div", null, [
1681
1666
  t.modal && i.isOpen ? (O(), z(sl, {
@@ -1687,7 +1672,7 @@ function xd(n, e, t, r, i, s) {
1687
1672
  "aria-hidden": t.modal && i.isOpen ? "false" : "true",
1688
1673
  onClick: e[0] || (e[0] = Xt(() => {
1689
1674
  }, ["prevent", "stop"]))
1690
- }, null, 8, bd)
1675
+ }, null, 8, gd)
1691
1676
  ])) : J("", !0),
1692
1677
  (O(), z(kt(t.elementType), {
1693
1678
  ref: "popover",
@@ -1719,7 +1704,7 @@ function xd(n, e, t, r, i, s) {
1719
1704
  "aria-haspopup": t.role
1720
1705
  }
1721
1706
  })
1722
- ], 40, kd),
1707
+ ], 40, yd),
1723
1708
  nt(a, Tr({
1724
1709
  id: t.id,
1725
1710
  ref: "content",
@@ -1769,7 +1754,7 @@ function xd(n, e, t, r, i, s) {
1769
1754
  ])
1770
1755
  }, [
1771
1756
  se(n.$slots, "content", { close: s.closePopover })
1772
- ], 10, Sd),
1757
+ ], 10, bd),
1773
1758
  i.hasSlotContent(n.$slots.footerContent) ? (O(), z(o, {
1774
1759
  key: 1,
1775
1760
  ref: "popover__footer",
@@ -1795,7 +1780,7 @@ function xd(n, e, t, r, i, s) {
1795
1780
  }, 8, ["class"]))
1796
1781
  ]);
1797
1782
  }
1798
- const yy = /* @__PURE__ */ de(yd, [["render", xd]]);
1783
+ const py = /* @__PURE__ */ de(md, [["render", kd]]);
1799
1784
  function As(n) {
1800
1785
  return n === St.default;
1801
1786
  }
@@ -1811,18 +1796,18 @@ function Ns(n) {
1811
1796
  function ln(n) {
1812
1797
  return typeof n;
1813
1798
  }
1814
- function Cd(n) {
1799
+ function Sd(n) {
1815
1800
  return Ns(n) ? `d-stack--${St[Ns(n)]}` : null;
1816
1801
  }
1817
- function Ed(n) {
1802
+ function xd(n) {
1818
1803
  return ln(n) === "object" ? [
1819
1804
  ...cl.map((e) => n[e] ? `d-stack--${e}--${n[e]}` : null)
1820
1805
  ] : null;
1821
1806
  }
1822
- function Td(n) {
1807
+ function Cd(n) {
1823
1808
  return Ui.includes(n) ? `d-stack--gap-${n}` : null;
1824
1809
  }
1825
- function Md(n) {
1810
+ function Ed(n) {
1826
1811
  if (ln(n) === "string")
1827
1812
  return Object.keys(St).includes(n);
1828
1813
  if (ln(n) === "object") {
@@ -1831,10 +1816,10 @@ function Md(n) {
1831
1816
  } else
1832
1817
  return null;
1833
1818
  }
1834
- function wd(n) {
1819
+ function Td(n) {
1835
1820
  return Ui.includes(n);
1836
1821
  }
1837
- const Od = {
1822
+ const Md = {
1838
1823
  name: "DtStack",
1839
1824
  props: {
1840
1825
  /**
@@ -1848,7 +1833,7 @@ const Od = {
1848
1833
  direction: {
1849
1834
  type: [String, Object],
1850
1835
  default: "column",
1851
- validator: (n) => Md(n)
1836
+ validator: (n) => Ed(n)
1852
1837
  },
1853
1838
  /**
1854
1839
  * Set this prop to render stack as a specific HTML element.
@@ -1864,7 +1849,7 @@ const Od = {
1864
1849
  gap: {
1865
1850
  type: String,
1866
1851
  default: "0",
1867
- validator: (n) => wd(n)
1852
+ validator: (n) => Td(n)
1868
1853
  }
1869
1854
  },
1870
1855
  data() {
@@ -1876,17 +1861,17 @@ const Od = {
1876
1861
  },
1877
1862
  computed: {
1878
1863
  stackGap() {
1879
- return Td(this.gap);
1864
+ return Cd(this.gap);
1880
1865
  },
1881
1866
  defaultDirection() {
1882
- return Cd(this.direction);
1867
+ return Sd(this.direction);
1883
1868
  },
1884
1869
  stackResponsive() {
1885
- return Ed(this.direction);
1870
+ return xd(this.direction);
1886
1871
  }
1887
1872
  }
1888
1873
  };
1889
- function vd(n, e, t, r, i, s) {
1874
+ function wd(n, e, t, r, i, s) {
1890
1875
  return O(), z(kt(t.as), {
1891
1876
  class: X([
1892
1877
  "d-stack",
@@ -1901,7 +1886,7 @@ function vd(n, e, t, r, i, s) {
1901
1886
  _: 3
1902
1887
  }, 8, ["class"]);
1903
1888
  }
1904
- const dl = /* @__PURE__ */ de(Od, [["render", vd]]);
1889
+ const dl = /* @__PURE__ */ de(Md, [["render", wd]]);
1905
1890
  function U(n) {
1906
1891
  this.content = n;
1907
1892
  }
@@ -2542,7 +2527,7 @@ function pl(n, e, t, r) {
2542
2527
  let l = pl(o.content, e - s - 1, t);
2543
2528
  return l && n.replaceChild(i, o.copy(l));
2544
2529
  }
2545
- function Ad(n, e, t) {
2530
+ function Od(n, e, t) {
2546
2531
  if (t.openStart > n.depth)
2547
2532
  throw new Pn("Inserted content deeper than insertion position");
2548
2533
  if (n.depth - t.openStart != e.depth - t.openEnd)
@@ -2559,7 +2544,7 @@ function ml(n, e, t, r) {
2559
2544
  let o = n.parent, l = o.content;
2560
2545
  return mt(o, l.cut(0, n.parentOffset).append(t.content).append(l.cut(e.parentOffset)));
2561
2546
  } else {
2562
- let { start: o, end: l } = Nd(t, n);
2547
+ let { start: o, end: l } = vd(t, n);
2563
2548
  return mt(s, yl(n, o, l, e, r));
2564
2549
  }
2565
2550
  else
@@ -2599,7 +2584,7 @@ function Ln(n, e, t) {
2599
2584
  }
2600
2585
  return Qt(e, null, t, r), new b(r);
2601
2586
  }
2602
- function Nd(n, e) {
2587
+ function vd(n, e) {
2603
2588
  let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
2604
2589
  for (let s = t - 1; s >= 0; s--)
2605
2590
  i = e.node(s).copy(b.from(i));
@@ -2848,10 +2833,10 @@ class an {
2848
2833
  return s;
2849
2834
  }
2850
2835
  let r = Wr[Ur] = an.resolve(e, t);
2851
- return Ur = (Ur + 1) % Dd, r;
2836
+ return Ur = (Ur + 1) % Ad, r;
2852
2837
  }
2853
2838
  }
2854
- let Wr = [], Ur = 0, Dd = 12;
2839
+ let Wr = [], Ur = 0, Ad = 12;
2855
2840
  class Bn {
2856
2841
  /**
2857
2842
  Construct a node range. `$from` and `$to` should point into the
@@ -2892,7 +2877,7 @@ class Bn {
2892
2877
  return this.$to.indexAfter(this.depth);
2893
2878
  }
2894
2879
  }
2895
- const Id = /* @__PURE__ */ Object.create(null);
2880
+ const Nd = /* @__PURE__ */ Object.create(null);
2896
2881
  let gt = class ki {
2897
2882
  /**
2898
2883
  @internal
@@ -3005,7 +2990,7 @@ let gt = class ki {
3005
2990
  attributes, and marks.
3006
2991
  */
3007
2992
  hasMarkup(e, t, r) {
3008
- return this.type == e && Rn(this.attrs, t || e.defaultAttrs || Id) && B.sameSet(this.marks, r || B.none);
2993
+ return this.type == e && Rn(this.attrs, t || e.defaultAttrs || Nd) && B.sameSet(this.marks, r || B.none);
3009
2994
  }
3010
2995
  /**
3011
2996
  Create a new node with the same markup as this node, containing
@@ -3048,7 +3033,7 @@ let gt = class ki {
3048
3033
  [`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
3049
3034
  */
3050
3035
  replace(e, t, r) {
3051
- return Ad(this.resolve(e), this.resolve(t), r);
3036
+ return Od(this.resolve(e), this.resolve(t), r);
3052
3037
  }
3053
3038
  /**
3054
3039
  Find the node directly after the given position.
@@ -3309,13 +3294,13 @@ class xt {
3309
3294
  @internal
3310
3295
  */
3311
3296
  static parse(e, t) {
3312
- let r = new Rd(e, t);
3297
+ let r = new Dd(e, t);
3313
3298
  if (r.next == null)
3314
3299
  return xt.empty;
3315
3300
  let i = kl(r);
3316
3301
  r.next && r.err("Unexpected trailing text");
3317
- let s = Hd(zd(i));
3318
- return Vd(s, r), s;
3302
+ let s = Fd(_d(i));
3303
+ return zd(s, r), s;
3319
3304
  }
3320
3305
  /**
3321
3306
  Match a node type, returning a match after that node if
@@ -3461,7 +3446,7 @@ class xt {
3461
3446
  }
3462
3447
  }
3463
3448
  xt.empty = new xt(!0);
3464
- class Rd {
3449
+ class Dd {
3465
3450
  constructor(e, t) {
3466
3451
  this.string = e, this.nodeTypes = t, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
3467
3452
  }
@@ -3478,19 +3463,19 @@ class Rd {
3478
3463
  function kl(n) {
3479
3464
  let e = [];
3480
3465
  do
3481
- e.push(Pd(n));
3466
+ e.push(Id(n));
3482
3467
  while (n.eat("|"));
3483
3468
  return e.length == 1 ? e[0] : { type: "choice", exprs: e };
3484
3469
  }
3485
- function Pd(n) {
3470
+ function Id(n) {
3486
3471
  let e = [];
3487
3472
  do
3488
- e.push(Ld(n));
3473
+ e.push(Rd(n));
3489
3474
  while (n.next && n.next != ")" && n.next != "|");
3490
3475
  return e.length == 1 ? e[0] : { type: "seq", exprs: e };
3491
3476
  }
3492
- function Ld(n) {
3493
- let e = Fd(n);
3477
+ function Rd(n) {
3478
+ let e = Bd(n);
3494
3479
  for (; ; )
3495
3480
  if (n.eat("+"))
3496
3481
  e = { type: "plus", expr: e };
@@ -3499,7 +3484,7 @@ function Ld(n) {
3499
3484
  else if (n.eat("?"))
3500
3485
  e = { type: "opt", expr: e };
3501
3486
  else if (n.eat("{"))
3502
- e = Bd(n, e);
3487
+ e = Pd(n, e);
3503
3488
  else
3504
3489
  break;
3505
3490
  return e;
@@ -3509,11 +3494,11 @@ function Ds(n) {
3509
3494
  let e = Number(n.next);
3510
3495
  return n.pos++, e;
3511
3496
  }
3512
- function Bd(n, e) {
3497
+ function Pd(n, e) {
3513
3498
  let t = Ds(n), r = t;
3514
3499
  return n.eat(",") && (n.next != "}" ? r = Ds(n) : r = -1), n.eat("}") || n.err("Unclosed braced range"), { type: "range", min: t, max: r, expr: e };
3515
3500
  }
3516
- function _d(n, e) {
3501
+ function Ld(n, e) {
3517
3502
  let t = n.nodeTypes, r = t[e];
3518
3503
  if (r)
3519
3504
  return [r];
@@ -3524,18 +3509,18 @@ function _d(n, e) {
3524
3509
  }
3525
3510
  return i.length == 0 && n.err("No node type or group '" + e + "' found"), i;
3526
3511
  }
3527
- function Fd(n) {
3512
+ function Bd(n) {
3528
3513
  if (n.eat("(")) {
3529
3514
  let e = kl(n);
3530
3515
  return n.eat(")") || n.err("Missing closing paren"), e;
3531
3516
  } else if (/\W/.test(n.next))
3532
3517
  n.err("Unexpected token '" + n.next + "'");
3533
3518
  else {
3534
- let e = _d(n, n.next).map((t) => (n.inline == null ? n.inline = t.isInline : n.inline != t.isInline && n.err("Mixing inline and block content"), { type: "name", value: t }));
3519
+ let e = Ld(n, n.next).map((t) => (n.inline == null ? n.inline = t.isInline : n.inline != t.isInline && n.err("Mixing inline and block content"), { type: "name", value: t }));
3535
3520
  return n.pos++, e.length == 1 ? e[0] : { type: "choice", exprs: e };
3536
3521
  }
3537
3522
  }
3538
- function zd(n) {
3523
+ function _d(n) {
3539
3524
  let e = [[]];
3540
3525
  return i(s(n, 0), t()), e;
3541
3526
  function t() {
@@ -3606,7 +3591,7 @@ function Is(n, e) {
3606
3591
  }
3607
3592
  }
3608
3593
  }
3609
- function Hd(n) {
3594
+ function Fd(n) {
3610
3595
  let e = /* @__PURE__ */ Object.create(null);
3611
3596
  return t(Is(n, 0));
3612
3597
  function t(r) {
@@ -3631,7 +3616,7 @@ function Hd(n) {
3631
3616
  return s;
3632
3617
  }
3633
3618
  }
3634
- function Vd(n, e) {
3619
+ function zd(n, e) {
3635
3620
  for (let t = 0, r = [n]; t < r.length; t++) {
3636
3621
  let i = r[t], s = !i.validEnd, o = [];
3637
3622
  for (let l = 0; l < i.next.length; l++) {
@@ -3670,7 +3655,7 @@ function El(n) {
3670
3655
  let e = /* @__PURE__ */ Object.create(null);
3671
3656
  if (n)
3672
3657
  for (let t in n)
3673
- e[t] = new $d(n[t]);
3658
+ e[t] = new Hd(n[t]);
3674
3659
  return e;
3675
3660
  }
3676
3661
  let Rs = class Tl {
@@ -3839,7 +3824,7 @@ let Rs = class Tl {
3839
3824
  return r;
3840
3825
  }
3841
3826
  };
3842
- class $d {
3827
+ class Hd {
3843
3828
  constructor(e) {
3844
3829
  this.hasDefault = Object.prototype.hasOwnProperty.call(e, "default"), this.default = e.default;
3845
3830
  }
@@ -3896,7 +3881,7 @@ class Or {
3896
3881
  return this.excluded.indexOf(e) > -1;
3897
3882
  }
3898
3883
  }
3899
- class jd {
3884
+ class Vd {
3900
3885
  /**
3901
3886
  Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
3902
3887
  */
@@ -4029,7 +4014,7 @@ let Ji = class Si {
4029
4014
  matchTag(e, t, r) {
4030
4015
  for (let i = r ? this.tags.indexOf(r) + 1 : 0; i < this.tags.length; i++) {
4031
4016
  let s = this.tags[i];
4032
- if (Wd(e, s.tag) && (s.namespace === void 0 || e.namespaceURI == s.namespace) && (!s.context || t.matchesContext(s.context))) {
4017
+ if (qd(e, s.tag) && (s.namespace === void 0 || e.namespaceURI == s.namespace) && (!s.context || t.matchesContext(s.context))) {
4033
4018
  if (s.getAttrs) {
4034
4019
  let o = s.getAttrs(e);
4035
4020
  if (o === !1)
@@ -4130,7 +4115,7 @@ const Ml = {
4130
4115
  table: !0,
4131
4116
  tfoot: !0,
4132
4117
  ul: !0
4133
- }, qd = {
4118
+ }, $d = {
4134
4119
  head: !0,
4135
4120
  noscript: !0,
4136
4121
  object: !0,
@@ -4178,7 +4163,7 @@ class En {
4178
4163
  applyPending(e) {
4179
4164
  for (let t = 0, r = this.pendingMarks; t < r.length; t++) {
4180
4165
  let i = r[t];
4181
- (this.type ? this.type.allowsMarkType(i.type) : Jd(i.type, e)) && !i.isInSet(this.activeMarks) && (this.activeMarks = i.addToSet(this.activeMarks), this.pendingMarks = i.removeFromSet(this.pendingMarks));
4166
+ (this.type ? this.type.allowsMarkType(i.type) : Wd(i.type, e)) && !i.isInSet(this.activeMarks) && (this.activeMarks = i.addToSet(this.activeMarks), this.pendingMarks = i.removeFromSet(this.pendingMarks));
4182
4167
  }
4183
4168
  }
4184
4169
  inlineContext(e) {
@@ -4204,7 +4189,7 @@ class Bs {
4204
4189
  let r = e.getAttribute("style");
4205
4190
  if (!r)
4206
4191
  return t();
4207
- let i = this.readStyles(Ud(r));
4192
+ let i = this.readStyles(Kd(r));
4208
4193
  if (!i)
4209
4194
  return;
4210
4195
  let [s, o] = i, l = this.top;
@@ -4236,9 +4221,9 @@ class Bs {
4236
4221
  // none is found, the element's content nodes are added directly.
4237
4222
  addElement(e, t) {
4238
4223
  let r = e.nodeName.toLowerCase(), i;
4239
- wl.hasOwnProperty(r) && this.parser.normalizeLists && Kd(e);
4224
+ wl.hasOwnProperty(r) && this.parser.normalizeLists && jd(e);
4240
4225
  let s = this.options.ruleFromNode && this.options.ruleFromNode(e) || (i = this.parser.matchTag(e, this, t));
4241
- if (s ? s.ignore : qd.hasOwnProperty(r))
4226
+ if (s ? s.ignore : $d.hasOwnProperty(r))
4242
4227
  this.findInside(e), this.ignoreFallback(e);
4243
4228
  else if (!s || s.skip || s.closeParent) {
4244
4229
  s && s.closeParent ? this.open = Math.max(0, this.open - 1) : s && s.skip.nodeType && (e = s.skip);
@@ -4451,7 +4436,7 @@ class Bs {
4451
4436
  }
4452
4437
  }
4453
4438
  addPendingMark(e) {
4454
- let t = Gd(e, this.top.pendingMarks);
4439
+ let t = Ud(e, this.top.pendingMarks);
4455
4440
  t && this.top.stashMarks.push(t), this.top.pendingMarks = e.addToSet(this.top.pendingMarks);
4456
4441
  }
4457
4442
  removePendingMark(e, t) {
@@ -4469,16 +4454,16 @@ class Bs {
4469
4454
  }
4470
4455
  }
4471
4456
  }
4472
- function Kd(n) {
4457
+ function jd(n) {
4473
4458
  for (let e = n.firstChild, t = null; e; e = e.nextSibling) {
4474
4459
  let r = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
4475
4460
  r && wl.hasOwnProperty(r) && t ? (t.appendChild(e), e = t) : r == "li" ? t = e : r && (t = null);
4476
4461
  }
4477
4462
  }
4478
- function Wd(n, e) {
4463
+ function qd(n, e) {
4479
4464
  return (n.matches || n.msMatchesSelector || n.webkitMatchesSelector || n.mozMatchesSelector).call(n, e);
4480
4465
  }
4481
- function Ud(n) {
4466
+ function Kd(n) {
4482
4467
  let e = /\s*([\w-]+)\s*:\s*([^;]+)/g, t, r = [];
4483
4468
  for (; t = e.exec(n); )
4484
4469
  r.push(t[1], t[2].trim());
@@ -4490,7 +4475,7 @@ function _s(n) {
4490
4475
  e[t] = n[t];
4491
4476
  return e;
4492
4477
  }
4493
- function Jd(n, e) {
4478
+ function Wd(n, e) {
4494
4479
  let t = e.schema.nodes;
4495
4480
  for (let r in t) {
4496
4481
  let i = t[r];
@@ -4508,7 +4493,7 @@ function Jd(n, e) {
4508
4493
  return !0;
4509
4494
  }
4510
4495
  }
4511
- function Gd(n, e) {
4496
+ function Ud(n, e) {
4512
4497
  for (let t = 0; t < e.length; t++)
4513
4498
  if (n.eq(e[t]))
4514
4499
  return e[t];
@@ -4666,13 +4651,13 @@ function Jr(n) {
4666
4651
  return n.document || window.document;
4667
4652
  }
4668
4653
  const Ol = 65535, vl = Math.pow(2, 16);
4669
- function Yd(n, e) {
4654
+ function Jd(n, e) {
4670
4655
  return n + e * vl;
4671
4656
  }
4672
4657
  function zs(n) {
4673
4658
  return n & Ol;
4674
4659
  }
4675
- function Xd(n) {
4660
+ function Gd(n) {
4676
4661
  return (n - (n & Ol)) / vl;
4677
4662
  }
4678
4663
  const Al = 1, Nl = 2, An = 4, Dl = 8;
@@ -4730,7 +4715,7 @@ class pe {
4730
4715
  if (!this.inverted)
4731
4716
  for (let i = 0; i < r; i++)
4732
4717
  t += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
4733
- return this.ranges[r * 3] + t + Xd(e);
4718
+ return this.ranges[r * 3] + t + Gd(e);
4734
4719
  }
4735
4720
  mapResult(e, t = 1) {
4736
4721
  return this._map(e, t, !1);
@@ -4752,7 +4737,7 @@ class pe {
4752
4737
  let h = c ? e == a ? -1 : e == u ? 1 : t : t, f = a + i + (h < 0 ? 0 : d);
4753
4738
  if (r)
4754
4739
  return f;
4755
- let p = e == (t < 0 ? a : u) ? null : Yd(l / 3, e - a), m = e == a ? Nl : e == u ? Al : An;
4740
+ let p = e == (t < 0 ? a : u) ? null : Jd(l / 3, e - a), m = e == a ? Nl : e == u ? Al : An;
4756
4741
  return (t < 0 ? e != a : e != u) && (m |= Dl), new xi(f, m, p);
4757
4742
  }
4758
4743
  i += d - c;
@@ -5281,7 +5266,7 @@ function Ci(n, e, t) {
5281
5266
  }
5282
5267
  return !1;
5283
5268
  }
5284
- function Qd(n, e, t, r) {
5269
+ function Yd(n, e, t, r) {
5285
5270
  let i = [], s = [], o, l;
5286
5271
  n.doc.nodesBetween(e, t, (a, c, d) => {
5287
5272
  if (!a.isInline)
@@ -5295,7 +5280,7 @@ function Qd(n, e, t, r) {
5295
5280
  }
5296
5281
  }), i.forEach((a) => n.step(a)), s.forEach((a) => n.step(a));
5297
5282
  }
5298
- function Zd(n, e, t, r) {
5283
+ function Xd(n, e, t, r) {
5299
5284
  let i = [], s = 0;
5300
5285
  n.doc.nodesBetween(e, t, (o, l) => {
5301
5286
  if (!o.isInline)
@@ -5321,7 +5306,7 @@ function Zd(n, e, t, r) {
5321
5306
  }
5322
5307
  }), i.forEach((o) => n.step(new De(o.from, o.to, o.style)));
5323
5308
  }
5324
- function eu(n, e, t, r = t.contentMatch) {
5309
+ function Qd(n, e, t, r = t.contentMatch) {
5325
5310
  let i = n.doc.nodeAt(e), s = [], o = e + 1;
5326
5311
  for (let l = 0; l < i.childCount; l++) {
5327
5312
  let a = i.child(l), c = o + a.nodeSize, d = r.matchType(a.type);
@@ -5346,7 +5331,7 @@ function eu(n, e, t, r = t.contentMatch) {
5346
5331
  for (let l = s.length - 1; l >= 0; l--)
5347
5332
  n.step(s[l]);
5348
5333
  }
5349
- function tu(n, e, t) {
5334
+ function Zd(n, e, t) {
5350
5335
  return (e == 0 || n.canReplace(e, n.childCount)) && (t == n.childCount || n.canReplace(0, t));
5351
5336
  }
5352
5337
  function jt(n) {
@@ -5355,12 +5340,12 @@ function jt(n) {
5355
5340
  let i = n.$from.node(r), s = n.$from.index(r), o = n.$to.indexAfter(r);
5356
5341
  if (r < n.depth && i.canReplace(s, o, t))
5357
5342
  return r;
5358
- if (r == 0 || i.type.spec.isolating || !tu(i, s, o))
5343
+ if (r == 0 || i.type.spec.isolating || !Zd(i, s, o))
5359
5344
  break;
5360
5345
  }
5361
5346
  return null;
5362
5347
  }
5363
- function nu(n, e, t) {
5348
+ function eu(n, e, t) {
5364
5349
  let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), l = i.after(s + 1), a = o, c = l, d = b.empty, u = 0;
5365
5350
  for (let p = s, m = !1; p > t; p--)
5366
5351
  m || r.index(p) > 0 ? (m = !0, d = b.from(r.node(p).copy(d)), u++) : a--;
@@ -5370,20 +5355,20 @@ function nu(n, e, t) {
5370
5355
  n.step(new K(a, c, o, l, new S(d.append(h), u, f), d.size - u, !0));
5371
5356
  }
5372
5357
  function Yi(n, e, t = null, r = n) {
5373
- let i = ru(n, e), s = i && iu(r, e);
5358
+ let i = tu(n, e), s = i && nu(r, e);
5374
5359
  return s ? i.map(Hs).concat({ type: e, attrs: t }).concat(s.map(Hs)) : null;
5375
5360
  }
5376
5361
  function Hs(n) {
5377
5362
  return { type: n, attrs: null };
5378
5363
  }
5379
- function ru(n, e) {
5364
+ function tu(n, e) {
5380
5365
  let { parent: t, startIndex: r, endIndex: i } = n, s = t.contentMatchAt(r).findWrapping(e);
5381
5366
  if (!s)
5382
5367
  return null;
5383
5368
  let o = s.length ? s[0] : e;
5384
5369
  return t.canReplaceWith(r, i, o) ? s : null;
5385
5370
  }
5386
- function iu(n, e) {
5371
+ function nu(n, e) {
5387
5372
  let { parent: t, startIndex: r, endIndex: i } = n, s = t.child(r), o = e.contentMatch.findWrapping(s.type);
5388
5373
  if (!o)
5389
5374
  return null;
@@ -5392,7 +5377,7 @@ function iu(n, e) {
5392
5377
  a = a.matchType(t.child(c).type);
5393
5378
  return !a || !a.validEnd ? null : o;
5394
5379
  }
5395
- function su(n, e, t) {
5380
+ function ru(n, e, t) {
5396
5381
  let r = b.empty;
5397
5382
  for (let o = t.length - 1; o >= 0; o--) {
5398
5383
  if (r.size) {
@@ -5405,23 +5390,23 @@ function su(n, e, t) {
5405
5390
  let i = e.start, s = e.end;
5406
5391
  n.step(new K(i, s, i, s, new S(r, 0, 0), t.length, !0));
5407
5392
  }
5408
- function ou(n, e, t, r, i) {
5393
+ function iu(n, e, t, r, i) {
5409
5394
  if (!r.isTextblock)
5410
5395
  throw new RangeError("Type given to setBlockType should be a textblock");
5411
5396
  let s = n.steps.length;
5412
5397
  n.doc.nodesBetween(e, t, (o, l) => {
5413
- if (o.isTextblock && !o.hasMarkup(r, i) && lu(n.doc, n.mapping.slice(s).map(l), r)) {
5398
+ if (o.isTextblock && !o.hasMarkup(r, i) && su(n.doc, n.mapping.slice(s).map(l), r)) {
5414
5399
  n.clearIncompatible(n.mapping.slice(s).map(l, 1), r);
5415
5400
  let a = n.mapping.slice(s), c = a.map(l, 1), d = a.map(l + o.nodeSize, 1);
5416
5401
  return n.step(new K(c, d, c + 1, d - 1, new S(b.from(r.create(i, null, o.marks)), 0, 0), 1, !0)), !1;
5417
5402
  }
5418
5403
  });
5419
5404
  }
5420
- function lu(n, e, t) {
5405
+ function su(n, e, t) {
5421
5406
  let r = n.resolve(e), i = r.index();
5422
5407
  return r.parent.canReplaceWith(i, i + 1, t);
5423
5408
  }
5424
- function au(n, e, t, r, i) {
5409
+ function ou(n, e, t, r, i) {
5425
5410
  let s = n.doc.nodeAt(e);
5426
5411
  if (!s)
5427
5412
  throw new RangeError("No node at given position");
@@ -5450,7 +5435,7 @@ function Rt(n, e, t = 1, r) {
5450
5435
  let l = i.indexAfter(s), a = r && r[0];
5451
5436
  return i.node(s).canReplaceWith(l, l, a ? a.type : i.node(s + 1).type);
5452
5437
  }
5453
- function cu(n, e, t = 1, r) {
5438
+ function lu(n, e, t = 1, r) {
5454
5439
  let i = n.doc.resolve(e), s = b.empty, o = b.empty;
5455
5440
  for (let l = i.depth, a = i.depth - t, c = t - 1; l > a; l--, c--) {
5456
5441
  s = b.from(i.node(l).copy(s));
@@ -5477,11 +5462,11 @@ function Rl(n, e, t = -1) {
5477
5462
  e = t < 0 ? r.before(i) : r.after(i);
5478
5463
  }
5479
5464
  }
5480
- function du(n, e, t) {
5465
+ function au(n, e, t) {
5481
5466
  let r = new G(e - t, e + t, S.empty, !0);
5482
5467
  n.step(r);
5483
5468
  }
5484
- function uu(n, e, t) {
5469
+ function cu(n, e, t) {
5485
5470
  let r = n.resolve(e);
5486
5471
  if (r.parent.canReplaceWith(r.index(), r.index(), t))
5487
5472
  return e;
@@ -5503,7 +5488,7 @@ function uu(n, e, t) {
5503
5488
  }
5504
5489
  return null;
5505
5490
  }
5506
- function hu(n, e, t) {
5491
+ function du(n, e, t) {
5507
5492
  let r = n.resolve(e);
5508
5493
  if (!t.content.size)
5509
5494
  return e;
@@ -5528,12 +5513,12 @@ function Xi(n, e, t = e, r = S.empty) {
5528
5513
  if (e == t && !r.size)
5529
5514
  return null;
5530
5515
  let i = n.resolve(e), s = n.resolve(t);
5531
- return Pl(i, s, r) ? new G(e, t, r) : new fu(i, s, r).fit();
5516
+ return Pl(i, s, r) ? new G(e, t, r) : new uu(i, s, r).fit();
5532
5517
  }
5533
5518
  function Pl(n, e, t) {
5534
5519
  return !t.openStart && !t.openEnd && n.start() == e.start() && n.parent.canReplace(n.index(), e.index(), t.content);
5535
5520
  }
5536
- class fu {
5521
+ class uu {
5537
5522
  constructor(e, t, r) {
5538
5523
  this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = b.empty;
5539
5524
  for (let i = 0; i <= e.depth; i++) {
@@ -5703,18 +5688,18 @@ function Xr(n, e, t, r, i) {
5703
5688
  if (o == s.childCount && !t.compatibleContent(s.type))
5704
5689
  return null;
5705
5690
  let l = r.fillBefore(s.content, !0, o);
5706
- return l && !pu(t, s.content, o) ? l : null;
5691
+ return l && !hu(t, s.content, o) ? l : null;
5707
5692
  }
5708
- function pu(n, e, t) {
5693
+ function hu(n, e, t) {
5709
5694
  for (let r = t; r < e.childCount; r++)
5710
5695
  if (!n.allowsMarks(e.child(r).marks))
5711
5696
  return !0;
5712
5697
  return !1;
5713
5698
  }
5714
- function mu(n) {
5699
+ function fu(n) {
5715
5700
  return n.spec.defining || n.spec.definingForContent;
5716
5701
  }
5717
- function gu(n, e, t, r) {
5702
+ function pu(n, e, t, r) {
5718
5703
  if (!r.size)
5719
5704
  return n.deleteRange(e, t);
5720
5705
  let i = n.doc.resolve(e), s = n.doc.resolve(t);
@@ -5738,7 +5723,7 @@ function gu(n, e, t, r) {
5738
5723
  h = p.content;
5739
5724
  }
5740
5725
  for (let h = d - 1; h >= 0; h--) {
5741
- let f = c[h], p = mu(f.type);
5726
+ let f = c[h], p = fu(f.type);
5742
5727
  if (p && !f.sameMarkup(i.node(Math.abs(l) - 1)))
5743
5728
  d = h;
5744
5729
  else if (p || !f.type.isTextblock)
@@ -5772,14 +5757,14 @@ function Bl(n, e, t, r, i) {
5772
5757
  }
5773
5758
  return n;
5774
5759
  }
5775
- function yu(n, e, t, r) {
5760
+ function mu(n, e, t, r) {
5776
5761
  if (!r.isInline && e == t && n.doc.resolve(e).parent.content.size) {
5777
- let i = uu(n.doc, e, r.type);
5762
+ let i = cu(n.doc, e, r.type);
5778
5763
  i != null && (e = t = i);
5779
5764
  }
5780
5765
  n.replaceRange(e, t, new S(b.from(r), 0, 0));
5781
5766
  }
5782
- function bu(n, e, t) {
5767
+ function gu(n, e, t) {
5783
5768
  let r = n.doc.resolve(e), i = n.doc.resolve(t), s = _l(r, i);
5784
5769
  for (let o = 0; o < s.length; o++) {
5785
5770
  let l = s[o], a = o == s.length - 1;
@@ -5975,7 +5960,7 @@ class Fl {
5975
5960
  control over what happens.
5976
5961
  */
5977
5962
  replaceRange(e, t, r) {
5978
- return gu(this, e, t, r), this;
5963
+ return pu(this, e, t, r), this;
5979
5964
  }
5980
5965
  /**
5981
5966
  Replace the given range with a node, but use `from` and `to` as
@@ -5987,14 +5972,14 @@ class Fl {
5987
5972
  that parent node.
5988
5973
  */
5989
5974
  replaceRangeWith(e, t, r) {
5990
- return yu(this, e, t, r), this;
5975
+ return mu(this, e, t, r), this;
5991
5976
  }
5992
5977
  /**
5993
5978
  Delete the given range, expanding it to cover fully covered
5994
5979
  parent nodes until a valid replace is found.
5995
5980
  */
5996
5981
  deleteRange(e, t) {
5997
- return bu(this, e, t), this;
5982
+ return gu(this, e, t), this;
5998
5983
  }
5999
5984
  /**
6000
5985
  Split the content in the given range off from its parent, if there
@@ -6004,14 +5989,14 @@ class Fl {
6004
5989
  sure the lift is valid.
6005
5990
  */
6006
5991
  lift(e, t) {
6007
- return nu(this, e, t), this;
5992
+ return eu(this, e, t), this;
6008
5993
  }
6009
5994
  /**
6010
5995
  Join the blocks around the given position. If depth is 2, their
6011
5996
  last and first siblings are also joined, and so on.
6012
5997
  */
6013
5998
  join(e, t = 1) {
6014
- return du(this, e, t), this;
5999
+ return au(this, e, t), this;
6015
6000
  }
6016
6001
  /**
6017
6002
  Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
@@ -6019,21 +6004,21 @@ class Fl {
6019
6004
  probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
6020
6005
  */
6021
6006
  wrap(e, t) {
6022
- return su(this, e, t), this;
6007
+ return ru(this, e, t), this;
6023
6008
  }
6024
6009
  /**
6025
6010
  Set the type of all textblocks (partly) between `from` and `to` to
6026
6011
  the given node type with the given attributes.
6027
6012
  */
6028
6013
  setBlockType(e, t = e, r, i = null) {
6029
- return ou(this, e, t, r, i), this;
6014
+ return iu(this, e, t, r, i), this;
6030
6015
  }
6031
6016
  /**
6032
6017
  Change the type, attributes, and/or marks of the node at `pos`.
6033
6018
  When `type` isn't given, the existing node type is preserved,
6034
6019
  */
6035
6020
  setNodeMarkup(e, t, r = null, i) {
6036
- return au(this, e, t, r, i), this;
6021
+ return ou(this, e, t, r, i), this;
6037
6022
  }
6038
6023
  /**
6039
6024
  Set a single attribute on a given node to a new value.
@@ -6077,13 +6062,13 @@ class Fl {
6077
6062
  use after the split.
6078
6063
  */
6079
6064
  split(e, t = 1, r) {
6080
- return cu(this, e, t, r), this;
6065
+ return lu(this, e, t, r), this;
6081
6066
  }
6082
6067
  /**
6083
6068
  Add the given mark to the inline content between `from` and `to`.
6084
6069
  */
6085
6070
  addMark(e, t, r) {
6086
- return Qd(this, e, t, r), this;
6071
+ return Yd(this, e, t, r), this;
6087
6072
  }
6088
6073
  /**
6089
6074
  Remove marks from inline nodes between `from` and `to`. When
@@ -6092,7 +6077,7 @@ class Fl {
6092
6077
  remove all marks of any type.
6093
6078
  */
6094
6079
  removeMark(e, t, r) {
6095
- return Zd(this, e, t, r), this;
6080
+ return Xd(this, e, t, r), this;
6096
6081
  }
6097
6082
  /**
6098
6083
  Removes all marks and nodes from the content of the node at
@@ -6101,7 +6086,7 @@ class Fl {
6101
6086
  third argument.
6102
6087
  */
6103
6088
  clearIncompatible(e, t, r) {
6104
- return eu(this, e, t, r), this;
6089
+ return Qd(this, e, t, r), this;
6105
6090
  }
6106
6091
  }
6107
6092
  const Qr = /* @__PURE__ */ Object.create(null);
@@ -6112,7 +6097,7 @@ class N {
6112
6097
  `$head`.
6113
6098
  */
6114
6099
  constructor(e, t, r) {
6115
- this.$anchor = e, this.$head = t, this.ranges = r || [new ku(e.min(t), e.max(t))];
6100
+ this.$anchor = e, this.$head = t, this.ranges = r || [new yu(e.min(t), e.max(t))];
6116
6101
  }
6117
6102
  /**
6118
6103
  The selection's anchor, as an unresolved position.
@@ -6270,7 +6255,7 @@ class N {
6270
6255
  }
6271
6256
  }
6272
6257
  N.prototype.visible = !0;
6273
- class ku {
6258
+ class yu {
6274
6259
  /**
6275
6260
  Create a range.
6276
6261
  */
@@ -6458,11 +6443,11 @@ class Te extends N {
6458
6443
  return e instanceof Te;
6459
6444
  }
6460
6445
  getBookmark() {
6461
- return Su;
6446
+ return bu;
6462
6447
  }
6463
6448
  }
6464
6449
  N.jsonID("all", Te);
6465
- const Su = {
6450
+ const bu = {
6466
6451
  map() {
6467
6452
  return this;
6468
6453
  },
@@ -6500,7 +6485,7 @@ function js(n, e, t) {
6500
6485
  }), n.setSelection(N.near(n.doc.resolve(o), t));
6501
6486
  }
6502
6487
  const qs = 1, Tn = 2, Ks = 4;
6503
- class xu extends Fl {
6488
+ class ku extends Fl {
6504
6489
  /**
6505
6490
  @internal
6506
6491
  */
@@ -6659,7 +6644,7 @@ class Yt {
6659
6644
  this.name = e, this.init = Ws(t.init, r), this.apply = Ws(t.apply, r);
6660
6645
  }
6661
6646
  }
6662
- const Cu = [
6647
+ const Su = [
6663
6648
  new Yt("doc", {
6664
6649
  init(n) {
6665
6650
  return n.doc || n.schema.topNodeType.createAndFill();
@@ -6695,7 +6680,7 @@ const Cu = [
6695
6680
  ];
6696
6681
  class Zr {
6697
6682
  constructor(e, t) {
6698
- this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Cu.slice(), t && t.forEach((r) => {
6683
+ this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Su.slice(), t && t.forEach((r) => {
6699
6684
  if (this.pluginsByKey[r.key])
6700
6685
  throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")");
6701
6686
  this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new Yt(r.key, r.spec.state, r));
@@ -6788,7 +6773,7 @@ class Dt {
6788
6773
  Start a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
6789
6774
  */
6790
6775
  get tr() {
6791
- return new xu(this);
6776
+ return new ku(this);
6792
6777
  }
6793
6778
  /**
6794
6779
  Create a new state.
@@ -6927,14 +6912,14 @@ const Be = function(n, e, t) {
6927
6912
  return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
6928
6913
  }, Ct = function(n, e, t, r) {
6929
6914
  return t && (Js(n, e, t, r, -1) || Js(n, e, t, r, 1));
6930
- }, Eu = /^(img|br|input|textarea|hr)$/i;
6915
+ }, xu = /^(img|br|input|textarea|hr)$/i;
6931
6916
  function Js(n, e, t, r, i) {
6932
6917
  for (; ; ) {
6933
6918
  if (n == t && e == r)
6934
6919
  return !0;
6935
6920
  if (e == (i < 0 ? 0 : Ae(n))) {
6936
6921
  let s = n.parentNode;
6937
- if (!s || s.nodeType != 1 || Zi(n) || Eu.test(n.nodeName) || n.contentEditable == "false")
6922
+ if (!s || s.nodeType != 1 || Zi(n) || xu.test(n.nodeName) || n.contentEditable == "false")
6938
6923
  return !1;
6939
6924
  e = oe(n) + (i < 0 ? 0 : 1), n = s;
6940
6925
  } else if (n.nodeType == 1) {
@@ -6948,7 +6933,7 @@ function Js(n, e, t, r, i) {
6948
6933
  function Ae(n) {
6949
6934
  return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
6950
6935
  }
6951
- function Tu(n, e, t) {
6936
+ function Cu(n, e, t) {
6952
6937
  for (let r = e == 0, i = e == Ae(n); r || i; ) {
6953
6938
  if (n == t)
6954
6939
  return !0;
@@ -6971,13 +6956,13 @@ function lt(n, e) {
6971
6956
  let t = document.createEvent("Event");
6972
6957
  return t.initEvent("keydown", !0, !0), t.keyCode = n, t.key = t.code = e, t;
6973
6958
  }
6974
- function Mu(n) {
6959
+ function Eu(n) {
6975
6960
  let e = n.activeElement;
6976
6961
  for (; e && e.shadowRoot; )
6977
6962
  e = e.shadowRoot.activeElement;
6978
6963
  return e;
6979
6964
  }
6980
- function wu(n, e, t) {
6965
+ function Tu(n, e, t) {
6981
6966
  if (n.caretPositionFromPoint)
6982
6967
  try {
6983
6968
  let r = n.caretPositionFromPoint(e, t);
@@ -6993,8 +6978,8 @@ function wu(n, e, t) {
6993
6978
  }
6994
6979
  const Ie = typeof navigator < "u" ? navigator : null, Gs = typeof document < "u" ? document : null, it = Ie && Ie.userAgent || "", Ei = /Edge\/(\d+)/.exec(it), Vl = /MSIE \d/.exec(it), Ti = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(it), he = !!(Vl || Ti || Ei), Qe = Vl ? document.documentMode : Ti ? +Ti[1] : Ei ? +Ei[1] : 0, Me = !he && /gecko\/(\d+)/i.test(it);
6995
6980
  Me && +(/Firefox\/(\d+)/.exec(it) || [0, 0])[1];
6996
- const Mi = !he && /Chrome\/(\d+)/.exec(it), te = !!Mi, Ou = Mi ? +Mi[1] : 0, le = !he && !!Ie && /Apple Computer/.test(Ie.vendor), Ft = le && (/Mobile\/\w+/.test(it) || !!Ie && Ie.maxTouchPoints > 2), ke = Ft || (Ie ? /Mac/.test(Ie.platform) : !1), vu = Ie ? /Win/.test(Ie.platform) : !1, Ee = /Android \d/.test(it), kn = !!Gs && "webkitFontSmoothing" in Gs.documentElement.style, Au = kn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6997
- function Nu(n) {
6981
+ const Mi = !he && /Chrome\/(\d+)/.exec(it), te = !!Mi, Mu = Mi ? +Mi[1] : 0, le = !he && !!Ie && /Apple Computer/.test(Ie.vendor), Ft = le && (/Mobile\/\w+/.test(it) || !!Ie && Ie.maxTouchPoints > 2), ke = Ft || (Ie ? /Mac/.test(Ie.platform) : !1), wu = Ie ? /Win/.test(Ie.platform) : !1, Ee = /Android \d/.test(it), kn = !!Gs && "webkitFontSmoothing" in Gs.documentElement.style, Ou = kn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6982
+ function vu(n) {
6998
6983
  return {
6999
6984
  left: 0,
7000
6985
  right: n.documentElement.clientWidth,
@@ -7005,7 +6990,7 @@ function Nu(n) {
7005
6990
  function Pe(n, e) {
7006
6991
  return typeof n == "number" ? n : n[e];
7007
6992
  }
7008
- function Du(n) {
6993
+ function Au(n) {
7009
6994
  let e = n.getBoundingClientRect(), t = e.width / n.offsetWidth || 1, r = e.height / n.offsetHeight || 1;
7010
6995
  return {
7011
6996
  left: e.left,
@@ -7019,7 +7004,7 @@ function Ys(n, e, t) {
7019
7004
  for (let o = t || n.dom; o; o = dn(o)) {
7020
7005
  if (o.nodeType != 1)
7021
7006
  continue;
7022
- let l = o, a = l == s.body, c = a ? Nu(s) : Du(l), d = 0, u = 0;
7007
+ let l = o, a = l == s.body, c = a ? vu(s) : Au(l), d = 0, u = 0;
7023
7008
  if (e.top < c.top + Pe(r, "top") ? u = -(c.top - e.top + Pe(i, "top")) : e.bottom > c.bottom - Pe(r, "bottom") && (u = e.bottom - e.top > c.bottom - c.top ? e.top + Pe(i, "top") - c.top : e.bottom - c.bottom + Pe(i, "bottom")), e.left < c.left + Pe(r, "left") ? d = -(c.left - e.left + Pe(i, "left")) : e.right > c.right - Pe(r, "right") && (d = e.right - c.right + Pe(i, "right")), d || u)
7024
7009
  if (a)
7025
7010
  s.defaultView.scrollBy(d, u);
@@ -7033,7 +7018,7 @@ function Ys(n, e, t) {
7033
7018
  break;
7034
7019
  }
7035
7020
  }
7036
- function Iu(n) {
7021
+ function Nu(n) {
7037
7022
  let e = n.dom.getBoundingClientRect(), t = Math.max(0, e.top), r, i;
7038
7023
  for (let s = (e.left + e.right) / 2, o = t + 1; o < Math.min(innerHeight, e.bottom); o += 5) {
7039
7024
  let l = n.root.elementFromPoint(s, o);
@@ -7053,7 +7038,7 @@ function $l(n) {
7053
7038
  ;
7054
7039
  return e;
7055
7040
  }
7056
- function Ru({ refDOM: n, refTop: e, stack: t }) {
7041
+ function Du({ refDOM: n, refTop: e, stack: t }) {
7057
7042
  let r = n ? n.getBoundingClientRect().top : 0;
7058
7043
  jl(t, r == 0 ? 0 : r - e);
7059
7044
  }
@@ -7064,7 +7049,7 @@ function jl(n, e) {
7064
7049
  }
7065
7050
  }
7066
7051
  let Tt = null;
7067
- function Pu(n) {
7052
+ function Iu(n) {
7068
7053
  if (n.setActive)
7069
7054
  return n.setActive();
7070
7055
  if (Tt)
@@ -7103,9 +7088,9 @@ function ql(n, e) {
7103
7088
  !t && (e.left >= p.right && e.top >= p.top || e.left >= p.left && e.top >= p.bottom) && (s = u + 1);
7104
7089
  }
7105
7090
  }
7106
- return !t && a && (t = a, i = c, r = 0), t && t.nodeType == 3 ? Lu(t, i) : !t || r && t.nodeType == 1 ? { node: n, offset: s } : ql(t, i);
7091
+ return !t && a && (t = a, i = c, r = 0), t && t.nodeType == 3 ? Ru(t, i) : !t || r && t.nodeType == 1 ? { node: n, offset: s } : ql(t, i);
7107
7092
  }
7108
- function Lu(n, e) {
7093
+ function Ru(n, e) {
7109
7094
  let t = n.nodeValue.length, r = document.createRange();
7110
7095
  for (let i = 0; i < t; i++) {
7111
7096
  r.setEnd(n, i + 1), r.setStart(n, i);
@@ -7118,11 +7103,11 @@ function Lu(n, e) {
7118
7103
  function es(n, e) {
7119
7104
  return n.left >= e.left - 1 && n.left <= e.right + 1 && n.top >= e.top - 1 && n.top <= e.bottom + 1;
7120
7105
  }
7121
- function Bu(n, e) {
7106
+ function Pu(n, e) {
7122
7107
  let t = n.parentNode;
7123
7108
  return t && /^li$/i.test(t.nodeName) && e.left < n.getBoundingClientRect().left ? t : n;
7124
7109
  }
7125
- function _u(n, e, t) {
7110
+ function Lu(n, e, t) {
7126
7111
  let { node: r, offset: i } = ql(e, t), s = -1;
7127
7112
  if (r.nodeType == 1 && !r.firstChild) {
7128
7113
  let o = r.getBoundingClientRect();
@@ -7130,7 +7115,7 @@ function _u(n, e, t) {
7130
7115
  }
7131
7116
  return n.docView.posFromDOM(r, i, s);
7132
7117
  }
7133
- function Fu(n, e, t, r) {
7118
+ function Bu(n, e, t, r) {
7134
7119
  let i = -1;
7135
7120
  for (let s = e, o = !1; s != n.dom; ) {
7136
7121
  let l = n.docView.nearestDesc(s, !0);
@@ -7163,8 +7148,8 @@ function Kl(n, e, t) {
7163
7148
  }
7164
7149
  return n;
7165
7150
  }
7166
- function zu(n, e) {
7167
- let t = n.dom.ownerDocument, r, i = 0, s = wu(t, e.left, e.top);
7151
+ function _u(n, e) {
7152
+ let t = n.dom.ownerDocument, r, i = 0, s = Tu(t, e.left, e.top);
7168
7153
  s && ({ node: r, offset: i } = s);
7169
7154
  let o = (n.root.elementFromPoint ? n.root : t).elementFromPoint(e.left, e.top), l;
7170
7155
  if (!o || !n.dom.contains(o.nodeType != 1 ? o.parentNode : o)) {
@@ -7175,15 +7160,15 @@ function zu(n, e) {
7175
7160
  if (le)
7176
7161
  for (let c = o; r && c; c = dn(c))
7177
7162
  c.draggable && (r = void 0);
7178
- if (o = Bu(o, e), r) {
7163
+ if (o = Pu(o, e), r) {
7179
7164
  if (Me && r.nodeType == 1 && (i = Math.min(i, r.childNodes.length), i < r.childNodes.length)) {
7180
7165
  let d = r.childNodes[i], u;
7181
7166
  d.nodeName == "IMG" && (u = d.getBoundingClientRect()).right <= e.left && u.bottom > e.top && i++;
7182
7167
  }
7183
7168
  let c;
7184
- kn && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == n.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = n.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (l = Fu(n, r, i, e));
7169
+ kn && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == n.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = n.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (l = Bu(n, r, i, e));
7185
7170
  }
7186
- l == null && (l = _u(n, o, e));
7171
+ l == null && (l = Lu(n, o, e));
7187
7172
  let a = n.docView.nearestDesc(o, !0);
7188
7173
  return { pos: l, inside: a ? a.posAtStart - a.border : -1 };
7189
7174
  }
@@ -7199,11 +7184,11 @@ function qe(n, e) {
7199
7184
  }
7200
7185
  return Array.prototype.find.call(t, Xs) || n.getBoundingClientRect();
7201
7186
  }
7202
- const Hu = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
7187
+ const Fu = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
7203
7188
  function Wl(n, e, t) {
7204
7189
  let { node: r, offset: i, atom: s } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o = kn || Me;
7205
7190
  if (r.nodeType == 3)
7206
- if (o && (Hu.test(r.nodeValue) || (t < 0 ? !i : i == r.nodeValue.length))) {
7191
+ if (o && (Fu.test(r.nodeValue) || (t < 0 ? !i : i == r.nodeValue.length))) {
7207
7192
  let a = qe(Be(r, i, i), t);
7208
7193
  if (Me && i && /\s/.test(r.nodeValue[i - 1]) && i < r.nodeValue.length) {
7209
7194
  let c = qe(Be(r, i - 1, i - 1), -1);
@@ -7267,7 +7252,7 @@ function Ul(n, e, t) {
7267
7252
  r != e && n.updateState(r), i != n.dom && i && i.focus();
7268
7253
  }
7269
7254
  }
7270
- function Vu(n, e, t) {
7255
+ function zu(n, e, t) {
7271
7256
  let r = e.selection, i = t == "up" ? r.$from : r.$to;
7272
7257
  return Ul(n, e, () => {
7273
7258
  let { node: s } = n.docView.domFromPos(i.pos, t == "up" ? -1 : 1);
@@ -7299,13 +7284,13 @@ function Vu(n, e, t) {
7299
7284
  return !0;
7300
7285
  });
7301
7286
  }
7302
- const $u = /[\u0590-\u08ac]/;
7303
- function ju(n, e, t) {
7287
+ const Hu = /[\u0590-\u08ac]/;
7288
+ function Vu(n, e, t) {
7304
7289
  let { $head: r } = e.selection;
7305
7290
  if (!r.parent.isTextblock)
7306
7291
  return !1;
7307
7292
  let i = r.parentOffset, s = !i, o = i == r.parent.content.size, l = n.domSelection();
7308
- return !$u.test(r.parent.textContent) || !l.modify ? t == "left" || t == "backward" ? s : o : Ul(n, e, () => {
7293
+ return !Hu.test(r.parent.textContent) || !l.modify ? t == "left" || t == "backward" ? s : o : Ul(n, e, () => {
7309
7294
  let { focusNode: a, focusOffset: c, anchorNode: d, anchorOffset: u } = n.domSelectionRange(), h = l.caretBidiLevel;
7310
7295
  l.modify("move", t, "character");
7311
7296
  let f = r.depth ? n.docView.domAfterPos(r.before()) : n.dom, { focusNode: p, focusOffset: m } = n.domSelectionRange(), g = p && !f.contains(p.nodeType == 1 ? p : p.parentNode) || a == p && c == m;
@@ -7317,8 +7302,8 @@ function ju(n, e, t) {
7317
7302
  });
7318
7303
  }
7319
7304
  let Qs = null, Zs = null, eo = !1;
7320
- function qu(n, e, t) {
7321
- return Qs == e && Zs == t ? eo : (Qs = e, Zs = t, eo = t == "up" || t == "down" ? Vu(n, e, t) : ju(n, e, t));
7305
+ function $u(n, e, t) {
7306
+ return Qs == e && Zs == t ? eo : (Qs = e, Zs = t, eo = t == "up" || t == "down" ? zu(n, e, t) : Vu(n, e, t));
7322
7307
  }
7323
7308
  const Se = 0, to = 1, at = 2, Re = 3;
7324
7309
  class Sn {
@@ -7693,7 +7678,7 @@ class Jl extends Sn {
7693
7678
  return this.widget.type.side;
7694
7679
  }
7695
7680
  }
7696
- class Ku extends Sn {
7681
+ class ju extends Sn {
7697
7682
  constructor(e, t, r, i) {
7698
7683
  super(e, [], t, null), this.textDOM = r, this.text = i;
7699
7684
  }
@@ -7769,7 +7754,7 @@ class Ze extends Sn {
7769
7754
  d || ({ dom: d, contentDOM: u } = Ne.renderSpec(document, t.type.spec.toDOM(t)));
7770
7755
  !u && !t.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), t.type.spec.draggable && (d.draggable = !0));
7771
7756
  let h = d;
7772
- return d = Ql(d, r, t), c ? a = new Wu(e, t, r, i, d, u || null, h, c, s, o + 1) : t.isText ? new Nr(e, t, r, i, d, h, s) : new Ze(e, t, r, i, d, u || null, h, s, o + 1);
7757
+ return d = Ql(d, r, t), c ? a = new qu(e, t, r, i, d, u || null, h, c, s, o + 1) : t.isText ? new Nr(e, t, r, i, d, h, s) : new Ze(e, t, r, i, d, u || null, h, s, o + 1);
7773
7758
  }
7774
7759
  parseRule() {
7775
7760
  if (this.node.type.spec.reparseInView)
@@ -7805,24 +7790,24 @@ class Ze extends Sn {
7805
7790
  // separate step, syncs the DOM inside `this.contentDOM` to
7806
7791
  // `this.children`.
7807
7792
  updateChildren(e, t) {
7808
- let r = this.node.inlineContent, i = t, s = e.composing ? this.localCompositionInfo(e, t) : null, o = s && s.pos > -1 ? s : null, l = s && s.pos < 0, a = new Ju(this, o && o.node, e);
7809
- Xu(this.node, this.innerDeco, (c, d, u) => {
7793
+ let r = this.node.inlineContent, i = t, s = e.composing ? this.localCompositionInfo(e, t) : null, o = s && s.pos > -1 ? s : null, l = s && s.pos < 0, a = new Wu(this, o && o.node, e);
7794
+ Gu(this.node, this.innerDeco, (c, d, u) => {
7810
7795
  c.spec.marks ? a.syncToMarks(c.spec.marks, r, e) : c.type.side >= 0 && !u && a.syncToMarks(d == this.node.childCount ? B.none : this.node.child(d).marks, r, e), a.placeWidget(c, e, i);
7811
7796
  }, (c, d, u, h) => {
7812
7797
  a.syncToMarks(c.marks, r, e);
7813
7798
  let f;
7814
7799
  a.findNodeMatch(c, d, u, h) || l && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (f = a.findIndexWithChild(s.node)) > -1 && a.updateNodeAt(c, d, u, f, e) || a.updateNextNode(c, d, u, e, h, i) || a.addNode(c, d, u, e, i), i += c.nodeSize;
7815
- }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == at) && (o && this.protectLocalComposition(e, o), Yl(this.contentDOM, this.children, e), Ft && Qu(this.dom));
7800
+ }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == at) && (o && this.protectLocalComposition(e, o), Yl(this.contentDOM, this.children, e), Ft && Yu(this.dom));
7816
7801
  }
7817
7802
  localCompositionInfo(e, t) {
7818
7803
  let { from: r, to: i } = e.state.selection;
7819
7804
  if (!(e.state.selection instanceof D) || r < t || i > t + this.node.content.size)
7820
7805
  return null;
7821
- let s = e.domSelectionRange(), o = Zu(s.focusNode, s.focusOffset);
7806
+ let s = e.domSelectionRange(), o = Xu(s.focusNode, s.focusOffset);
7822
7807
  if (!o || !this.dom.contains(o.parentNode))
7823
7808
  return null;
7824
7809
  if (this.node.inlineContent) {
7825
- let l = o.nodeValue, a = eh(this.node.content, l, r - t, i - t);
7810
+ let l = o.nodeValue, a = Qu(this.node.content, l, r - t, i - t);
7826
7811
  return a < 0 ? null : { node: o, pos: a, text: l };
7827
7812
  } else
7828
7813
  return { node: o, pos: -1, text: "" };
@@ -7838,7 +7823,7 @@ class Ze extends Sn {
7838
7823
  s.parentNode.removeChild(s.nextSibling);
7839
7824
  s.pmViewDesc && (s.pmViewDesc = void 0);
7840
7825
  }
7841
- let o = new Ku(this, s, t, i);
7826
+ let o = new ju(this, s, t, i);
7842
7827
  e.input.compositionNodes.push(o), this.children = vi(this.children, r, r + i.length, e, o);
7843
7828
  }
7844
7829
  // If this desc must be updated to match the given node decoration,
@@ -7926,7 +7911,7 @@ class Gl extends Sn {
7926
7911
  return this.dom.nodeName == "IMG";
7927
7912
  }
7928
7913
  }
7929
- class Wu extends Ze {
7914
+ class qu extends Ze {
7930
7915
  constructor(e, t, r, i, s, o, l, a, c, d) {
7931
7916
  super(e, t, r, i, s, o, l, c, d), this.spec = a;
7932
7917
  }
@@ -8011,11 +7996,11 @@ function Xl(n, e, t, r) {
8011
7996
  let a;
8012
7997
  l && l.nodeName == o.nodeName && i != n && (a = i.parentNode) && a.nodeName.toLowerCase() == o.nodeName || (a = document.createElement(o.nodeName), a.pmIsDeco = !0, a.appendChild(i), l = ct[0]), i = a;
8013
7998
  }
8014
- Uu(i, l || ct[0], o);
7999
+ Ku(i, l || ct[0], o);
8015
8000
  }
8016
8001
  return i;
8017
8002
  }
8018
- function Uu(n, e, t) {
8003
+ function Ku(n, e, t) {
8019
8004
  for (let r in e)
8020
8005
  r != "class" && r != "style" && r != "nodeName" && !(r in t) && n.removeAttribute(r);
8021
8006
  for (let r in t)
@@ -8052,9 +8037,9 @@ function ro(n) {
8052
8037
  let e = n.nextSibling;
8053
8038
  return n.parentNode.removeChild(n), e;
8054
8039
  }
8055
- class Ju {
8040
+ class Wu {
8056
8041
  constructor(e, t, r) {
8057
- this.lock = t, this.view = r, this.index = 0, this.stack = [], this.changed = !1, this.top = e, this.preMatch = Gu(e.node.content, e);
8042
+ this.lock = t, this.view = r, this.index = 0, this.stack = [], this.changed = !1, this.top = e, this.preMatch = Uu(e.node.content, e);
8058
8043
  }
8059
8044
  // Destroy and remove the children between the given indices in
8060
8045
  // `this.top`.
@@ -8202,7 +8187,7 @@ class Ju {
8202
8187
  return this.lock && (e == this.lock || e.nodeType == 1 && e.contains(this.lock.parentNode));
8203
8188
  }
8204
8189
  }
8205
- function Gu(n, e) {
8190
+ function Uu(n, e) {
8206
8191
  let t = e, r = t.children.length, i = n.childCount, s = /* @__PURE__ */ new Map(), o = [];
8207
8192
  e:
8208
8193
  for (; i > 0; ) {
@@ -8230,10 +8215,10 @@ function Gu(n, e) {
8230
8215
  }
8231
8216
  return { index: i, matched: s, matches: o.reverse() };
8232
8217
  }
8233
- function Yu(n, e) {
8218
+ function Ju(n, e) {
8234
8219
  return n.type.side - e.type.side;
8235
8220
  }
8236
- function Xu(n, e, t, r) {
8221
+ function Gu(n, e, t, r) {
8237
8222
  let i = e.locals(n), s = 0;
8238
8223
  if (i.length == 0) {
8239
8224
  for (let c = 0; c < n.childCount; c++) {
@@ -8251,7 +8236,7 @@ function Xu(n, e, t, r) {
8251
8236
  }
8252
8237
  if (d)
8253
8238
  if (u) {
8254
- u.sort(Yu);
8239
+ u.sort(Ju);
8255
8240
  for (let g = 0; g < u.length; g++)
8256
8241
  t(u[g], c, !!a);
8257
8242
  } else
@@ -8279,13 +8264,13 @@ function Xu(n, e, t, r) {
8279
8264
  r(h, m, e.forChild(s, h), f), s = p;
8280
8265
  }
8281
8266
  }
8282
- function Qu(n) {
8267
+ function Yu(n) {
8283
8268
  if (n.nodeName == "UL" || n.nodeName == "OL") {
8284
8269
  let e = n.style.cssText;
8285
8270
  n.style.cssText = e + "; list-style: square !important", window.getComputedStyle(n).listStyle, n.style.cssText = e;
8286
8271
  }
8287
8272
  }
8288
- function Zu(n, e) {
8273
+ function Xu(n, e) {
8289
8274
  for (; ; ) {
8290
8275
  if (n.nodeType == 3)
8291
8276
  return n;
@@ -8299,7 +8284,7 @@ function Zu(n, e) {
8299
8284
  return null;
8300
8285
  }
8301
8286
  }
8302
- function eh(n, e, t, r) {
8287
+ function Qu(n, e, t, r) {
8303
8288
  for (let i = 0, s = 0; i < n.childCount && s <= r; ) {
8304
8289
  let o = n.child(i++), l = s;
8305
8290
  if (s += o.nodeSize, !o.isText)
@@ -8343,7 +8328,7 @@ function ts(n, e = null) {
8343
8328
  for (a = l; i && !i.node; )
8344
8329
  i = i.parent;
8345
8330
  let d = i.node;
8346
- if (i && d.isAtom && w.isSelectable(d) && i.parent && !(d.isInline && Tu(t.focusNode, t.focusOffset, i.dom))) {
8331
+ if (i && d.isAtom && w.isSelectable(d) && i.parent && !(d.isInline && Cu(t.focusNode, t.focusOffset, i.dom))) {
8347
8332
  let u = i.posBefore;
8348
8333
  c = new w(o == u ? l : r.resolve(u));
8349
8334
  }
@@ -8373,15 +8358,15 @@ function Fe(n, e = !1) {
8373
8358
  }
8374
8359
  }
8375
8360
  if (n.domObserver.disconnectSelection(), n.cursorWrapper)
8376
- nh(n);
8361
+ eh(n);
8377
8362
  else {
8378
8363
  let { anchor: r, head: i } = t, s, o;
8379
- io && !(t instanceof D) && (t.$from.parent.inlineContent || (s = so(n, t.from)), !t.empty && !t.$from.parent.inlineContent && (o = so(n, t.to))), n.docView.setSelection(r, i, n.root, e), io && (s && oo(s), o && oo(o)), t.visible ? n.dom.classList.remove("ProseMirror-hideselection") : (n.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && th(n));
8364
+ io && !(t instanceof D) && (t.$from.parent.inlineContent || (s = so(n, t.from)), !t.empty && !t.$from.parent.inlineContent && (o = so(n, t.to))), n.docView.setSelection(r, i, n.root, e), io && (s && oo(s), o && oo(o)), t.visible ? n.dom.classList.remove("ProseMirror-hideselection") : (n.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Zu(n));
8380
8365
  }
8381
8366
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
8382
8367
  }
8383
8368
  }
8384
- const io = le || te && Ou < 63;
8369
+ const io = le || te && Mu < 63;
8385
8370
  function so(n, e) {
8386
8371
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, s = r ? t.childNodes[r - 1] : null;
8387
8372
  if (le && i && i.contentEditable == "false")
@@ -8399,7 +8384,7 @@ function ni(n) {
8399
8384
  function oo(n) {
8400
8385
  n.contentEditable = "false", n.wasDraggable && (n.draggable = !0, n.wasDraggable = null);
8401
8386
  }
8402
- function th(n) {
8387
+ function Zu(n) {
8403
8388
  let e = n.dom.ownerDocument;
8404
8389
  e.removeEventListener("selectionchange", n.input.hideSelectionGuard);
8405
8390
  let t = n.domSelectionRange(), r = t.anchorNode, i = t.anchorOffset;
@@ -8409,7 +8394,7 @@ function th(n) {
8409
8394
  }, 20));
8410
8395
  });
8411
8396
  }
8412
- function nh(n) {
8397
+ function eh(n) {
8413
8398
  let e = n.domSelection(), t = document.createRange(), r = n.cursorWrapper.dom, i = r.nodeName == "IMG";
8414
8399
  i ? t.setEnd(r.parentNode, oe(r) + 1) : t.setEnd(r, 0), t.collapse(!1), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && he && Qe <= 11 && (r.disabled = !0, r.disabled = !1);
8415
8400
  }
@@ -8439,7 +8424,7 @@ function ta(n) {
8439
8424
  return !1;
8440
8425
  }
8441
8426
  }
8442
- function rh(n) {
8427
+ function th(n) {
8443
8428
  let e = n.docView.domFromPos(n.state.selection.anchor, 0), t = n.domSelectionRange();
8444
8429
  return Ct(e.node, e.offset, t.anchorNode, t.anchorOffset);
8445
8430
  }
@@ -8489,9 +8474,9 @@ function nn(n, e) {
8489
8474
  return t && t.size == 0 && (e < 0 || n.nextSibling || n.nodeName != "BR");
8490
8475
  }
8491
8476
  function Mt(n, e) {
8492
- return e < 0 ? ih(n) : sh(n);
8477
+ return e < 0 ? nh(n) : rh(n);
8493
8478
  }
8494
- function ih(n) {
8479
+ function nh(n) {
8495
8480
  let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
8496
8481
  if (!t)
8497
8482
  return;
@@ -8527,7 +8512,7 @@ function ih(n) {
8527
8512
  }
8528
8513
  o ? Ni(n, t, r) : i && Ni(n, i, s);
8529
8514
  }
8530
- function sh(n) {
8515
+ function rh(n) {
8531
8516
  let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
8532
8517
  if (!t)
8533
8518
  return;
@@ -8563,7 +8548,7 @@ function na(n) {
8563
8548
  let e = n.pmViewDesc;
8564
8549
  return e && e.node && e.node.isBlock;
8565
8550
  }
8566
- function oh(n, e) {
8551
+ function ih(n, e) {
8567
8552
  for (; n && e == n.childNodes.length && !Zi(n); )
8568
8553
  e = oe(n) + 1, n = n.parentNode;
8569
8554
  for (; n && e < n.childNodes.length; ) {
@@ -8575,7 +8560,7 @@ function oh(n, e) {
8575
8560
  n = t, e = 0;
8576
8561
  }
8577
8562
  }
8578
- function lh(n, e) {
8563
+ function sh(n, e) {
8579
8564
  for (; n && !e && !Zi(n); )
8580
8565
  e = oe(n), n = n.parentNode;
8581
8566
  for (; n && e; ) {
@@ -8590,7 +8575,7 @@ function lh(n, e) {
8590
8575
  function Ni(n, e, t) {
8591
8576
  if (e.nodeType != 3) {
8592
8577
  let s, o;
8593
- (o = oh(e, t)) ? (e = o, t = 0) : (s = lh(e, t)) && (e = s, t = s.nodeValue.length);
8578
+ (o = ih(e, t)) ? (e = o, t = 0) : (s = sh(e, t)) && (e = s, t = s.nodeValue.length);
8594
8579
  }
8595
8580
  let r = n.domSelection();
8596
8581
  if (Ar(r)) {
@@ -8606,7 +8591,7 @@ function Ni(n, e, t) {
8606
8591
  }
8607
8592
  function uo(n, e) {
8608
8593
  let t = n.state.doc.resolve(e);
8609
- if (!(te || vu) && t.parent.inlineContent) {
8594
+ if (!(te || wu) && t.parent.inlineContent) {
8610
8595
  let i = n.coordsAtPos(e);
8611
8596
  if (e > t.start()) {
8612
8597
  let s = n.coordsAtPos(e - 1), o = (s.top + s.bottom) / 2;
@@ -8657,7 +8642,7 @@ function fo(n, e) {
8657
8642
  function po(n, e, t) {
8658
8643
  n.domObserver.stop(), e.contentEditable = t, n.domObserver.start();
8659
8644
  }
8660
- function ah(n) {
8645
+ function oh(n) {
8661
8646
  if (!le || n.state.selection.$head.parentOffset > 0)
8662
8647
  return !1;
8663
8648
  let { focusNode: e, focusOffset: t } = n.domSelectionRange();
@@ -8667,12 +8652,12 @@ function ah(n) {
8667
8652
  }
8668
8653
  return !1;
8669
8654
  }
8670
- function ch(n) {
8655
+ function lh(n) {
8671
8656
  let e = "";
8672
8657
  return n.ctrlKey && (e += "c"), n.metaKey && (e += "m"), n.altKey && (e += "a"), n.shiftKey && (e += "s"), e;
8673
8658
  }
8674
- function dh(n, e) {
8675
- let t = e.keyCode, r = ch(e);
8659
+ function ah(n, e) {
8660
+ let t = e.keyCode, r = lh(e);
8676
8661
  if (t == 8 || ke && t == 72 && r == "c")
8677
8662
  return fo(n, -1) || Mt(n, -1);
8678
8663
  if (t == 46 && !e.shiftKey || ke && t == 68 && r == "c")
@@ -8689,7 +8674,7 @@ function dh(n, e) {
8689
8674
  if (t == 38 || ke && t == 80 && r == "c")
8690
8675
  return ho(n, -1, r) || Mt(n, -1);
8691
8676
  if (t == 40 || ke && t == 78 && r == "c")
8692
- return ah(n) || ho(n, 1, r) || Mt(n, 1);
8677
+ return oh(n) || ho(n, 1, r) || Mt(n, 1);
8693
8678
  if (r == (ke ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
8694
8679
  return !0;
8695
8680
  }
@@ -8747,7 +8732,7 @@ function ia(n, e, t, r, i) {
8747
8732
  } else
8748
8733
  n.someProp("transformPastedHTML", (u) => {
8749
8734
  t = u(t, n);
8750
- }), o = fh(t), kn && ph(o);
8735
+ }), o = uh(t), kn && hh(o);
8751
8736
  let c = o && o.querySelector("[data-pm-slice]"), d = c && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice") || "");
8752
8737
  if (d && d[3])
8753
8738
  for (let u = +d[3]; u > 0; u--) {
@@ -8762,11 +8747,11 @@ function ia(n, e, t, r, i) {
8762
8747
  preserveWhitespace: !!(a || d),
8763
8748
  context: i,
8764
8749
  ruleFromNode(h) {
8765
- return h.nodeName == "BR" && !h.nextSibling && h.parentNode && !uh.test(h.parentNode.nodeName) ? { ignore: !0 } : null;
8750
+ return h.nodeName == "BR" && !h.nextSibling && h.parentNode && !ch.test(h.parentNode.nodeName) ? { ignore: !0 } : null;
8766
8751
  }
8767
8752
  })), d)
8768
- l = mh(mo(l, +d[1], +d[2]), d[4]);
8769
- else if (l = S.maxOpen(hh(l.content, i), !0), l.openStart || l.openEnd) {
8753
+ l = fh(mo(l, +d[1], +d[2]), d[4]);
8754
+ else if (l = S.maxOpen(dh(l.content, i), !0), l.openStart || l.openEnd) {
8770
8755
  let u = 0, h = 0;
8771
8756
  for (let f = l.content.firstChild; u < l.openStart && !f.type.spec.isolating; u++, f = f.firstChild)
8772
8757
  ;
@@ -8778,8 +8763,8 @@ function ia(n, e, t, r, i) {
8778
8763
  l = u(l, n);
8779
8764
  }), l;
8780
8765
  }
8781
- const uh = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
8782
- function hh(n, e) {
8766
+ const ch = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
8767
+ function dh(n, e) {
8783
8768
  if (n.childCount < 2)
8784
8769
  return n;
8785
8770
  for (let t = e.depth; t >= 0; t--) {
@@ -8844,7 +8829,7 @@ let go = null;
8844
8829
  function ca() {
8845
8830
  return go || (go = document.implementation.createHTMLDocument("title"));
8846
8831
  }
8847
- function fh(n) {
8832
+ function uh(n) {
8848
8833
  let e = /^(\s*<meta [^>]*>)*/.exec(n);
8849
8834
  e && (n = n.slice(e[0].length));
8850
8835
  let t = ca().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(n), i;
@@ -8853,14 +8838,14 @@ function fh(n) {
8853
8838
  t = t.querySelector(i[s]) || t;
8854
8839
  return t;
8855
8840
  }
8856
- function ph(n) {
8841
+ function hh(n) {
8857
8842
  let e = n.querySelectorAll(te ? "span:not([class]):not([style])" : "span.Apple-converted-space");
8858
8843
  for (let t = 0; t < e.length; t++) {
8859
8844
  let r = e[t];
8860
8845
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "), r);
8861
8846
  }
8862
8847
  }
8863
- function mh(n, e) {
8848
+ function fh(n, e) {
8864
8849
  if (!n.size)
8865
8850
  return n;
8866
8851
  let t = n.content.firstChild.type.schema, r;
@@ -8878,25 +8863,25 @@ function mh(n, e) {
8878
8863
  }
8879
8864
  return new S(i, s, o);
8880
8865
  }
8881
- const ae = {}, ce = {}, gh = { touchstart: !0, touchmove: !0 };
8882
- class yh {
8866
+ const ae = {}, ce = {}, ph = { touchstart: !0, touchmove: !0 };
8867
+ class mh {
8883
8868
  constructor() {
8884
8869
  this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastAndroidDelete = 0, this.composing = !1, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
8885
8870
  }
8886
8871
  }
8887
- function bh(n) {
8872
+ function gh(n) {
8888
8873
  for (let e in ae) {
8889
8874
  let t = ae[e];
8890
8875
  n.dom.addEventListener(e, n.input.eventHandlers[e] = (r) => {
8891
- Sh(n, r) && !rs(n, r) && (n.editable || !(r.type in ce)) && t(n, r);
8892
- }, gh[e] ? { passive: !0 } : void 0);
8876
+ bh(n, r) && !rs(n, r) && (n.editable || !(r.type in ce)) && t(n, r);
8877
+ }, ph[e] ? { passive: !0 } : void 0);
8893
8878
  }
8894
8879
  le && n.dom.addEventListener("input", () => null), Ii(n);
8895
8880
  }
8896
8881
  function Xe(n, e) {
8897
8882
  n.input.lastSelectionOrigin = e, n.input.lastSelectionTime = Date.now();
8898
8883
  }
8899
- function kh(n) {
8884
+ function yh(n) {
8900
8885
  n.domObserver.stop();
8901
8886
  for (let e in n.input.eventHandlers)
8902
8887
  n.dom.removeEventListener(e, n.input.eventHandlers[e]);
@@ -8914,7 +8899,7 @@ function rs(n, e) {
8914
8899
  return r ? r(n, e) || e.defaultPrevented : !1;
8915
8900
  });
8916
8901
  }
8917
- function Sh(n, e) {
8902
+ function bh(n, e) {
8918
8903
  if (!e.bubbles)
8919
8904
  return !0;
8920
8905
  if (e.defaultPrevented)
@@ -8924,7 +8909,7 @@ function Sh(n, e) {
8924
8909
  return !1;
8925
8910
  return !0;
8926
8911
  }
8927
- function xh(n, e) {
8912
+ function kh(n, e) {
8928
8913
  !rs(n, e) && ae[e.type] && (n.editable || !(e.type in ce)) && ae[e.type](n, e);
8929
8914
  }
8930
8915
  ce.keydown = (n, e) => {
@@ -8936,7 +8921,7 @@ ce.keydown = (n, e) => {
8936
8921
  n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n, lt(13, "Enter"))), n.input.lastIOSEnter = 0);
8937
8922
  }, 200);
8938
8923
  } else
8939
- n.someProp("handleKeyDown", (r) => r(n, t)) || dh(n, t) ? t.preventDefault() : Xe(n, "key");
8924
+ n.someProp("handleKeyDown", (r) => r(n, t)) || ah(n, t) ? t.preventDefault() : Xe(n, "key");
8940
8925
  };
8941
8926
  ce.keyup = (n, e) => {
8942
8927
  e.keyCode == 16 && (n.input.shiftKey = !1);
@@ -8958,7 +8943,7 @@ ce.keypress = (n, e) => {
8958
8943
  function Dr(n) {
8959
8944
  return { left: n.clientX, top: n.clientY };
8960
8945
  }
8961
- function Ch(n, e) {
8946
+ function Sh(n, e) {
8962
8947
  let t = e.x - n.clientX, r = e.y - n.clientY;
8963
8948
  return t * t + r * r < 100;
8964
8949
  }
@@ -8976,13 +8961,13 @@ function Lt(n, e, t) {
8976
8961
  let r = n.state.tr.setSelection(e);
8977
8962
  t == "pointer" && r.setMeta("pointer", !0), n.dispatch(r);
8978
8963
  }
8979
- function Eh(n, e) {
8964
+ function xh(n, e) {
8980
8965
  if (e == -1)
8981
8966
  return !1;
8982
8967
  let t = n.state.doc.resolve(e), r = t.nodeAfter;
8983
8968
  return r && r.isAtom && w.isSelectable(r) ? (Lt(n, new w(t), "pointer"), !0) : !1;
8984
8969
  }
8985
- function Th(n, e) {
8970
+ function Ch(n, e) {
8986
8971
  if (e == -1)
8987
8972
  return !1;
8988
8973
  let t = n.state.selection, r, i;
@@ -8997,16 +8982,16 @@ function Th(n, e) {
8997
8982
  }
8998
8983
  return i != null ? (Lt(n, w.create(n.state.doc, i), "pointer"), !0) : !1;
8999
8984
  }
9000
- function Mh(n, e, t, r, i) {
9001
- return is(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (s) => s(n, e, r)) || (i ? Th(n, t) : Eh(n, t));
8985
+ function Eh(n, e, t, r, i) {
8986
+ return is(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (s) => s(n, e, r)) || (i ? Ch(n, t) : xh(n, t));
9002
8987
  }
9003
- function wh(n, e, t, r) {
8988
+ function Th(n, e, t, r) {
9004
8989
  return is(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
9005
8990
  }
9006
- function Oh(n, e, t, r) {
9007
- return is(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || vh(n, t, r);
8991
+ function Mh(n, e, t, r) {
8992
+ return is(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || wh(n, t, r);
9008
8993
  }
9009
- function vh(n, e, t) {
8994
+ function wh(n, e, t) {
9010
8995
  if (t.button != 0)
9011
8996
  return !1;
9012
8997
  let r = n.state.doc;
@@ -9032,11 +9017,11 @@ ae.mousedown = (n, e) => {
9032
9017
  let t = e;
9033
9018
  n.input.shiftKey = t.shiftKey;
9034
9019
  let r = ss(n), i = Date.now(), s = "singleClick";
9035
- i - n.input.lastClick.time < 500 && Ch(t, n.input.lastClick) && !t[da] && (n.input.lastClick.type == "singleClick" ? s = "doubleClick" : n.input.lastClick.type == "doubleClick" && (s = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s };
9020
+ i - n.input.lastClick.time < 500 && Sh(t, n.input.lastClick) && !t[da] && (n.input.lastClick.type == "singleClick" ? s = "doubleClick" : n.input.lastClick.type == "doubleClick" && (s = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s };
9036
9021
  let o = n.posAtCoords(Dr(t));
9037
- o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new Ah(n, o, t, !!r)) : (s == "doubleClick" ? wh : Oh)(n, o.pos, o.inside, t) ? t.preventDefault() : Xe(n, "pointer"));
9022
+ o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new Oh(n, o, t, !!r)) : (s == "doubleClick" ? Th : Mh)(n, o.pos, o.inside, t) ? t.preventDefault() : Xe(n, "pointer"));
9038
9023
  };
9039
- class Ah {
9024
+ class Oh {
9040
9025
  constructor(e, t, r, i) {
9041
9026
  this.view = e, this.pos = t, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[da], this.allowDefault = r.shiftKey;
9042
9027
  let s, o;
@@ -9065,7 +9050,7 @@ class Ah {
9065
9050
  if (this.done(), !this.view.dom.contains(e.target))
9066
9051
  return;
9067
9052
  let t = this.pos;
9068
- this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Dr(e))), this.updateAllowDefault(e), this.allowDefault || !t ? Xe(this.view, "pointer") : Mh(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
9053
+ this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Dr(e))), this.updateAllowDefault(e), this.allowDefault || !t ? Xe(this.view, "pointer") : Eh(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
9069
9054
  le && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
9070
9055
  // cursor, but still report that the node is selected
9071
9056
  // when asked through getSelection. You'll then get a
@@ -9092,7 +9077,7 @@ ae.contextmenu = (n) => ss(n);
9092
9077
  function ua(n, e) {
9093
9078
  return n.composing ? !0 : le && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
9094
9079
  }
9095
- const Nh = Ee ? 5e3 : -1;
9080
+ const vh = Ee ? 5e3 : -1;
9096
9081
  ce.compositionstart = ce.compositionupdate = (n) => {
9097
9082
  if (!n.composing) {
9098
9083
  n.domObserver.flush();
@@ -9114,7 +9099,7 @@ ce.compositionstart = ce.compositionupdate = (n) => {
9114
9099
  }
9115
9100
  n.input.composing = !0;
9116
9101
  }
9117
- ha(n, Nh);
9102
+ ha(n, vh);
9118
9103
  };
9119
9104
  ce.compositionend = (n, e) => {
9120
9105
  n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, ha(n, 20));
@@ -9123,10 +9108,10 @@ function ha(n, e) {
9123
9108
  clearTimeout(n.input.composingTimeout), e > -1 && (n.input.composingTimeout = setTimeout(() => Vn(n), e));
9124
9109
  }
9125
9110
  function fa(n) {
9126
- for (n.composing && (n.input.composing = !1, n.input.compositionEndedAt = Dh()); n.input.compositionNodes.length > 0; )
9111
+ for (n.composing && (n.input.composing = !1, n.input.compositionEndedAt = Ah()); n.input.compositionNodes.length > 0; )
9127
9112
  n.input.compositionNodes.pop().markParentsDirty();
9128
9113
  }
9129
- function Dh() {
9114
+ function Ah() {
9130
9115
  let n = document.createEvent("Event");
9131
9116
  return n.initEvent("event", !0, !0), n.timeStamp;
9132
9117
  }
@@ -9139,7 +9124,7 @@ function Vn(n, e = !1) {
9139
9124
  return !1;
9140
9125
  }
9141
9126
  }
9142
- function Ih(n, e) {
9127
+ function Nh(n, e) {
9143
9128
  if (!n.dom.parentNode)
9144
9129
  return;
9145
9130
  let t = n.dom.parentNode.appendChild(document.createElement("div"));
@@ -9149,18 +9134,18 @@ function Ih(n, e) {
9149
9134
  t.parentNode && t.parentNode.removeChild(t), n.focus();
9150
9135
  }, 50);
9151
9136
  }
9152
- const un = he && Qe < 15 || Ft && Au < 604;
9137
+ const un = he && Qe < 15 || Ft && Ou < 604;
9153
9138
  ae.copy = ce.cut = (n, e) => {
9154
9139
  let t = e, r = n.state.selection, i = t.type == "cut";
9155
9140
  if (r.empty)
9156
9141
  return;
9157
9142
  let s = un ? null : t.clipboardData, o = r.content(), { dom: l, text: a } = ra(n, o);
9158
- s ? (t.preventDefault(), s.clearData(), s.setData("text/html", l.innerHTML), s.setData("text/plain", a)) : Ih(n, l), i && n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
9143
+ s ? (t.preventDefault(), s.clearData(), s.setData("text/html", l.innerHTML), s.setData("text/plain", a)) : Nh(n, l), i && n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
9159
9144
  };
9160
- function Rh(n) {
9145
+ function Dh(n) {
9161
9146
  return n.openStart == 0 && n.openEnd == 0 && n.content.childCount == 1 ? n.content.firstChild : null;
9162
9147
  }
9163
- function Ph(n, e) {
9148
+ function Ih(n, e) {
9164
9149
  if (!n.dom.parentNode)
9165
9150
  return;
9166
9151
  let t = n.input.shiftKey || n.state.selection.$from.parent.type.spec.code, r = n.dom.parentNode.appendChild(document.createElement(t ? "textarea" : "div"));
@@ -9176,7 +9161,7 @@ function hn(n, e, t, r, i) {
9176
9161
  return !0;
9177
9162
  if (!s)
9178
9163
  return !1;
9179
- let o = Rh(s), l = o ? n.state.tr.replaceSelectionWith(o, r) : n.state.tr.replaceSelection(s);
9164
+ let o = Dh(s), l = o ? n.state.tr.replaceSelectionWith(o, r) : n.state.tr.replaceSelection(s);
9180
9165
  return n.dispatch(l.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
9181
9166
  }
9182
9167
  function pa(n) {
@@ -9191,9 +9176,9 @@ ce.paste = (n, e) => {
9191
9176
  if (n.composing && !Ee)
9192
9177
  return;
9193
9178
  let r = un ? null : t.clipboardData, i = n.input.shiftKey && n.input.lastKeyCode != 45;
9194
- r && hn(n, pa(r), r.getData("text/html"), i, t) ? t.preventDefault() : Ph(n, t);
9179
+ r && hn(n, pa(r), r.getData("text/html"), i, t) ? t.preventDefault() : Ih(n, t);
9195
9180
  };
9196
- class Lh {
9181
+ class Rh {
9197
9182
  constructor(e, t) {
9198
9183
  this.slice = e, this.move = t;
9199
9184
  }
@@ -9213,7 +9198,7 @@ ae.dragstart = (n, e) => {
9213
9198
  }
9214
9199
  }
9215
9200
  let o = n.state.selection.content(), { dom: l, text: a } = ra(n, o);
9216
- t.dataTransfer.clearData(), t.dataTransfer.setData(un ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", un || t.dataTransfer.setData("text/plain", a), n.dragging = new Lh(o, !t[ma]);
9201
+ t.dataTransfer.clearData(), t.dataTransfer.setData(un ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", un || t.dataTransfer.setData("text/plain", a), n.dragging = new Rh(o, !t[ma]);
9217
9202
  };
9218
9203
  ae.dragend = (n) => {
9219
9204
  let e = n.dragging;
@@ -9241,7 +9226,7 @@ ce.drop = (n, e) => {
9241
9226
  if (!o)
9242
9227
  return;
9243
9228
  t.preventDefault();
9244
- let a = o ? hu(n.state.doc, s.pos, o) : s.pos;
9229
+ let a = o ? du(n.state.doc, s.pos, o) : s.pos;
9245
9230
  a == null && (a = s.pos);
9246
9231
  let c = n.state.tr;
9247
9232
  l && c.deleteSelection();
@@ -9476,7 +9461,7 @@ class H {
9476
9461
  let a = this.local[l].map(e, r, i);
9477
9462
  a && a.type.valid(t, a) ? (o || (o = [])).push(a) : s.onRemove && s.onRemove(this.local[l].spec);
9478
9463
  }
9479
- return this.children.length ? Bh(this.children, o || [], e, t, r, i, s) : o ? new H(o.sort(bt), At) : ee;
9464
+ return this.children.length ? Ph(this.children, o || [], e, t, r, i, s) : o ? new H(o.sort(bt), At) : ee;
9480
9465
  }
9481
9466
  /**
9482
9467
  Add the given array of decorations to the ones in the set,
@@ -9650,7 +9635,7 @@ class Ue {
9650
9635
  }
9651
9636
  }
9652
9637
  }
9653
- function Bh(n, e, t, r, i, s, o) {
9638
+ function Ph(n, e, t, r, i, s, o) {
9654
9639
  let l = n.slice();
9655
9640
  for (let c = 0, d = s; c < t.maps.length; c++) {
9656
9641
  let u = 0;
@@ -9686,7 +9671,7 @@ function Bh(n, e, t, r, i, s, o) {
9686
9671
  a = !0;
9687
9672
  }
9688
9673
  if (a) {
9689
- let c = _h(l, n, e, t, i, s, o), d = jn(c, r, 0, o);
9674
+ let c = Lh(l, n, e, t, i, s, o), d = jn(c, r, 0, o);
9690
9675
  e = d.local;
9691
9676
  for (let u = 0; u < l.length; u += 3)
9692
9677
  l[u + 1] < 0 && (l.splice(u, 3), u -= 3);
@@ -9709,7 +9694,7 @@ function ga(n, e) {
9709
9694
  }
9710
9695
  return t;
9711
9696
  }
9712
- function _h(n, e, t, r, i, s, o) {
9697
+ function Lh(n, e, t, r, i, s, o) {
9713
9698
  function l(a, c) {
9714
9699
  for (let d = 0; d < a.local.length; d++) {
9715
9700
  let u = a.local[d].map(r, i, c);
@@ -9784,15 +9769,15 @@ function ri(n) {
9784
9769
  r && r != ee && e.push(r);
9785
9770
  }), n.cursorWrapper && e.push(H.create(n.state.doc, [n.cursorWrapper.deco])), Ue.from(e);
9786
9771
  }
9787
- const Fh = {
9772
+ const Bh = {
9788
9773
  childList: !0,
9789
9774
  characterData: !0,
9790
9775
  characterDataOldValue: !0,
9791
9776
  attributes: !0,
9792
9777
  attributeOldValue: !0,
9793
9778
  subtree: !0
9794
- }, zh = he && Qe <= 11;
9795
- class Hh {
9779
+ }, _h = he && Qe <= 11;
9780
+ class Fh {
9796
9781
  constructor() {
9797
9782
  this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
9798
9783
  }
@@ -9806,13 +9791,13 @@ class Hh {
9806
9791
  return e.anchorNode == this.anchorNode && e.anchorOffset == this.anchorOffset && e.focusNode == this.focusNode && e.focusOffset == this.focusOffset;
9807
9792
  }
9808
9793
  }
9809
- class Vh {
9794
+ class zh {
9810
9795
  constructor(e, t) {
9811
- this.view = e, this.handleDOMChange = t, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new Hh(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
9796
+ this.view = e, this.handleDOMChange = t, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new Fh(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
9812
9797
  for (let i = 0; i < r.length; i++)
9813
9798
  this.queue.push(r[i]);
9814
9799
  he && Qe <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
9815
- }), zh && (this.onCharData = (r) => {
9800
+ }), _h && (this.onCharData = (r) => {
9816
9801
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
9817
9802
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
9818
9803
  }
@@ -9825,7 +9810,7 @@ class Vh {
9825
9810
  this.flushingSoon > -1 && (window.clearTimeout(this.flushingSoon), this.flushingSoon = -1, this.flush());
9826
9811
  }
9827
9812
  start() {
9828
- this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom, Fh)), this.onCharData && this.view.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.connectSelection();
9813
+ this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom, Bh)), this.onCharData && this.view.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.connectSelection();
9829
9814
  }
9830
9815
  stop() {
9831
9816
  if (this.observer) {
@@ -9907,7 +9892,7 @@ class Vh {
9907
9892
  }
9908
9893
  }
9909
9894
  let c = null;
9910
- s < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Ar(r) && (c = ts(e)) && c.eq(N.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Fe(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), $h(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Fe(e), this.currentSelection.set(r));
9895
+ s < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Ar(r) && (c = ts(e)) && c.eq(N.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Fe(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), Hh(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Fe(e), this.currentSelection.set(r));
9911
9896
  }
9912
9897
  registerMutation(e, t) {
9913
9898
  if (t.indexOf(e.target) > -1)
@@ -9942,14 +9927,14 @@ class Vh {
9942
9927
  }
9943
9928
  }
9944
9929
  let bo = /* @__PURE__ */ new WeakMap(), ko = !1;
9945
- function $h(n) {
9930
+ function Hh(n) {
9946
9931
  if (!bo.has(n) && (bo.set(n, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace) !== -1)) {
9947
9932
  if (n.requiresGeckoHackNode = Me, ko)
9948
9933
  return;
9949
9934
  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."), ko = !0;
9950
9935
  }
9951
9936
  }
9952
- function jh(n) {
9937
+ function Vh(n) {
9953
9938
  let e;
9954
9939
  function t(a) {
9955
9940
  a.preventDefault(), a.stopImmediatePropagation(), e = a.getTargetRanges()[0];
@@ -9958,7 +9943,7 @@ function jh(n) {
9958
9943
  let r = e.startContainer, i = e.startOffset, s = e.endContainer, o = e.endOffset, l = n.domAtPos(n.state.selection.anchor);
9959
9944
  return Ct(l.node, l.offset, s, o) && ([r, i, s, o] = [s, o, r, i]), { anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o };
9960
9945
  }
9961
- function qh(n, e, t) {
9946
+ function $h(n, e, t) {
9962
9947
  let { node: r, fromOffset: i, toOffset: s, from: o, to: l } = n.docView.parseRange(e, t), a = n.domSelectionRange(), c, d = a.anchorNode;
9963
9948
  if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: a.anchorOffset }], Ar(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), te && n.input.lastKeyCode === 8)
9964
9949
  for (let g = s; g > i; g--) {
@@ -9978,7 +9963,7 @@ function qh(n, e, t) {
9978
9963
  to: s,
9979
9964
  preserveWhitespace: f.parent.type.whitespace == "pre" ? "full" : !0,
9980
9965
  findPositions: c,
9981
- ruleFromNode: Kh,
9966
+ ruleFromNode: jh,
9982
9967
  context: f
9983
9968
  });
9984
9969
  if (c && c[0].pos != null) {
@@ -9987,7 +9972,7 @@ function qh(n, e, t) {
9987
9972
  }
9988
9973
  return { doc: m, sel: p, from: o, to: l };
9989
9974
  }
9990
- function Kh(n) {
9975
+ function jh(n) {
9991
9976
  let e = n.pmViewDesc;
9992
9977
  if (e)
9993
9978
  return e.parseRule();
@@ -10001,8 +9986,8 @@ function Kh(n) {
10001
9986
  return { ignore: !0 };
10002
9987
  return null;
10003
9988
  }
10004
- const Wh = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
10005
- function Uh(n, e, t, r, i) {
9989
+ const qh = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
9990
+ function Kh(n, e, t, r, i) {
10006
9991
  let s = n.input.compositionPendingChanges || (n.composing ? n.input.compositionID : 0);
10007
9992
  if (n.input.compositionPendingChanges = 0, e < 0) {
10008
9993
  let M = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, Z = ts(n, M);
@@ -10016,10 +10001,10 @@ function Uh(n, e, t, r, i) {
10016
10001
  }
10017
10002
  let o = n.state.doc.resolve(e), l = o.sharedDepth(t);
10018
10003
  e = o.before(l + 1), t = n.state.doc.resolve(t).after(l + 1);
10019
- let a = n.state.selection, c = qh(n, e, t), d = n.state.doc, u = d.slice(c.from, c.to), h, f;
10004
+ let a = n.state.selection, c = $h(n, e, t), d = n.state.doc, u = d.slice(c.from, c.to), h, f;
10020
10005
  n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (h = n.state.selection.to, f = "end") : (h = n.state.selection.from, f = "start"), n.input.lastKeyCode = null;
10021
- let p = Yh(u.content, c.doc.content, c.from, h, f);
10022
- if ((Ft && n.input.lastIOSEnter > Date.now() - 225 || Ee) && i.some((M) => M.nodeType == 1 && !Wh.test(M.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (M) => M(n, lt(13, "Enter")))) {
10006
+ let p = Jh(u.content, c.doc.content, c.from, h, f);
10007
+ if ((Ft && n.input.lastIOSEnter > Date.now() - 225 || Ee) && i.some((M) => M.nodeType == 1 && !qh.test(M.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (M) => M(n, lt(13, "Enter")))) {
10023
10008
  n.input.lastIOSEnter = 0;
10024
10009
  return;
10025
10010
  }
@@ -10046,7 +10031,7 @@ function Uh(n, e, t, r, i) {
10046
10031
  n.input.lastIOSEnter = 0;
10047
10032
  return;
10048
10033
  }
10049
- if (n.state.selection.anchor > p.start && Gh(d, p.start, p.endA, m, g) && n.someProp("handleKeyDown", (M) => M(n, lt(8, "Backspace")))) {
10034
+ if (n.state.selection.anchor > p.start && Uh(d, p.start, p.endA, m, g) && n.someProp("handleKeyDown", (M) => M(n, lt(8, "Backspace")))) {
10050
10035
  Ee && te && n.domObserver.suppressSelectionUpdates();
10051
10036
  return;
10052
10037
  }
@@ -10061,7 +10046,7 @@ function Uh(n, e, t, r, i) {
10061
10046
  he && Qe <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Fe(n), 20)), E = n.state.tr.delete(R, P), L = d.resolve(p.start).marksAcross(d.resolve(p.endA));
10062
10047
  else if (
10063
10048
  // Adding or removing a mark
10064
- p.endA == p.endB && (I = Jh(m.parent.content.cut(m.parentOffset, g.parentOffset), y.parent.content.cut(y.parentOffset, p.endA - y.start())))
10049
+ p.endA == p.endB && (I = Wh(m.parent.content.cut(m.parentOffset, g.parentOffset), y.parent.content.cut(y.parentOffset, p.endA - y.start())))
10065
10050
  )
10066
10051
  E = n.state.tr, I.type == "add" ? E.addMark(R, P, I.mark) : E.removeMark(R, P, I.mark);
10067
10052
  else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
@@ -10080,7 +10065,7 @@ function Uh(n, e, t, r, i) {
10080
10065
  function So(n, e, t) {
10081
10066
  return Math.max(t.anchor, t.head) > e.content.size ? null : ns(n, e.resolve(t.anchor), e.resolve(t.head));
10082
10067
  }
10083
- function Jh(n, e) {
10068
+ function Wh(n, e) {
10084
10069
  let t = n.firstChild.marks, r = e.firstChild.marks, i = t, s = r, o, l, a;
10085
10070
  for (let d = 0; d < r.length; d++)
10086
10071
  i = r[d].removeFromSet(i);
@@ -10098,7 +10083,7 @@ function Jh(n, e) {
10098
10083
  if (b.from(c).eq(n))
10099
10084
  return { mark: l, type: o };
10100
10085
  }
10101
- function Gh(n, e, t, r, i) {
10086
+ function Uh(n, e, t, r, i) {
10102
10087
  if (!r.parent.isTextblock || // The content must have shrunk
10103
10088
  t - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
10104
10089
  ii(r, !0, !1) < i.pos)
@@ -10120,7 +10105,7 @@ function ii(n, e, t) {
10120
10105
  }
10121
10106
  return i;
10122
10107
  }
10123
- function Yh(n, e, t, r, i) {
10108
+ function Jh(n, e, t, r, i) {
10124
10109
  let s = n.findDiffStart(e, t);
10125
10110
  if (s == null)
10126
10111
  return null;
@@ -10138,7 +10123,7 @@ function Yh(n, e, t, r, i) {
10138
10123
  }
10139
10124
  return { start: s, endA: o, endB: l };
10140
10125
  }
10141
- class Xh {
10126
+ class Gh {
10142
10127
  /**
10143
10128
  Create a view. `place` may be a DOM node that the editor should
10144
10129
  be appended to, a function that will place it into the document,
@@ -10147,7 +10132,7 @@ class Xh {
10147
10132
  added to the document.
10148
10133
  */
10149
10134
  constructor(e, t) {
10150
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new yh(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(Mo), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Eo(this), Co(this), this.nodeViews = To(this), this.docView = no(this.state.doc, xo(this), ri(this), this.dom, this), this.domObserver = new Vh(this, (r, i, s, o) => Uh(this, r, i, s, o)), this.domObserver.start(), bh(this), this.updatePluginViews();
10135
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new mh(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(Mo), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Eo(this), Co(this), this.nodeViews = To(this), this.docView = no(this.state.doc, xo(this), ri(this), this.dom, this), this.domObserver = new zh(this, (r, i, s, o) => Kh(this, r, i, s, o)), this.domObserver.start(), gh(this), this.updatePluginViews();
10151
10136
  }
10152
10137
  /**
10153
10138
  Holds `true` when a
@@ -10206,22 +10191,22 @@ class Xh {
10206
10191
  let o = r.plugins != e.plugins || this._props.plugins != t.plugins;
10207
10192
  if (o || this._props.plugins != t.plugins || this._props.nodeViews != t.nodeViews) {
10208
10193
  let h = To(this);
10209
- Zh(h, this.nodeViews) && (this.nodeViews = h, i = !0);
10194
+ Xh(h, this.nodeViews) && (this.nodeViews = h, i = !0);
10210
10195
  }
10211
10196
  (o || t.handleDOMEvents != this._props.handleDOMEvents) && Ii(this), this.editable = Eo(this), Co(this);
10212
10197
  let l = ri(this), a = xo(this), c = r.plugins != e.plugins && !r.doc.eq(e.doc) ? "reset" : e.scrollToSelection > r.scrollToSelection ? "to selection" : "preserve", d = i || !this.docView.matchesNode(e.doc, a, l);
10213
10198
  (d || !e.selection.eq(r.selection)) && (s = !0);
10214
- let u = c == "preserve" && s && this.dom.style.overflowAnchor == null && Iu(this);
10199
+ let u = c == "preserve" && s && this.dom.style.overflowAnchor == null && Nu(this);
10215
10200
  if (s) {
10216
10201
  this.domObserver.stop();
10217
- let h = d && (he || te) && !this.composing && !r.selection.empty && !e.selection.empty && Qh(r.selection, e.selection);
10202
+ let h = d && (he || te) && !this.composing && !r.selection.empty && !e.selection.empty && Yh(r.selection, e.selection);
10218
10203
  if (d) {
10219
10204
  let f = te ? this.trackWrites = this.domSelectionRange().focusNode : null;
10220
10205
  (i || !this.docView.update(e.doc, a, l, this)) && (this.docView.updateOuterDeco([]), this.docView.destroy(), this.docView = no(e.doc, a, l, this.dom, this)), f && !this.trackWrites && (h = !0);
10221
10206
  }
10222
- h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && rh(this)) ? Fe(this, h) : (ea(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
10207
+ h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && th(this)) ? Fe(this, h) : (ea(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
10223
10208
  }
10224
- this.updatePluginViews(r), c == "reset" ? this.dom.scrollTop = 0 : c == "to selection" ? this.scrollToSelection() : u && Ru(u);
10209
+ this.updatePluginViews(r), c == "reset" ? this.dom.scrollTop = 0 : c == "to selection" ? this.scrollToSelection() : u && Du(u);
10225
10210
  }
10226
10211
  /**
10227
10212
  @internal
@@ -10297,7 +10282,7 @@ class Xh {
10297
10282
  Focus the editor.
10298
10283
  */
10299
10284
  focus() {
10300
- this.domObserver.stop(), this.editable && Pu(this.dom), Fe(this), this.domObserver.start();
10285
+ this.domObserver.stop(), this.editable && Iu(this.dom), Fe(this), this.domObserver.start();
10301
10286
  }
10302
10287
  /**
10303
10288
  Get the document root in which the editor exists. This will
@@ -10331,7 +10316,7 @@ class Xh {
10331
10316
  the top level, not in any node.
10332
10317
  */
10333
10318
  posAtCoords(e) {
10334
- return zu(this, e);
10319
+ return _u(this, e);
10335
10320
  }
10336
10321
  /**
10337
10322
  Returns the viewport rectangle at a given document position.
@@ -10396,7 +10381,7 @@ class Xh {
10396
10381
  pass a different state.
10397
10382
  */
10398
10383
  endOfTextblock(e, t) {
10399
- return qu(this, t || this.state, e);
10384
+ return $u(this, t || this.state, e);
10400
10385
  }
10401
10386
  /**
10402
10387
  Run the editor's paste logic with the given HTML string. The
@@ -10417,7 +10402,7 @@ class Xh {
10417
10402
  views](https://prosemirror.net/docs/ref/#view.NodeView).
10418
10403
  */
10419
10404
  destroy() {
10420
- this.docView && (kh(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], ri(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null);
10405
+ this.docView && (yh(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], ri(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null);
10421
10406
  }
10422
10407
  /**
10423
10408
  This is true when the view has been
@@ -10431,7 +10416,7 @@ class Xh {
10431
10416
  Used for testing.
10432
10417
  */
10433
10418
  dispatchEvent(e) {
10434
- return xh(this, e);
10419
+ return kh(this, e);
10435
10420
  }
10436
10421
  /**
10437
10422
  Dispatch a transaction. Will call
@@ -10450,7 +10435,7 @@ class Xh {
10450
10435
  @internal
10451
10436
  */
10452
10437
  domSelectionRange() {
10453
- return le && this.root.nodeType === 11 && Mu(this.dom.ownerDocument) == this.dom ? jh(this) : this.domSelection();
10438
+ return le && this.root.nodeType === 11 && Eu(this.dom.ownerDocument) == this.dom ? Vh(this) : this.domSelection();
10454
10439
  }
10455
10440
  /**
10456
10441
  @internal
@@ -10477,7 +10462,7 @@ function Co(n) {
10477
10462
  function Eo(n) {
10478
10463
  return !n.someProp("editable", (e) => e(n.state) === !1);
10479
10464
  }
10480
- function Qh(n, e) {
10465
+ function Yh(n, e) {
10481
10466
  let t = Math.min(n.$anchor.sharedDepth(n.head), e.$anchor.sharedDepth(e.head));
10482
10467
  return n.$anchor.start(t) != e.$anchor.start(t);
10483
10468
  }
@@ -10489,7 +10474,7 @@ function To(n) {
10489
10474
  }
10490
10475
  return n.someProp("nodeViews", t), n.someProp("markViews", t), e;
10491
10476
  }
10492
- function Zh(n, e) {
10477
+ function Xh(n, e) {
10493
10478
  let t = 0, r = 0;
10494
10479
  for (let i in n) {
10495
10480
  if (n[i] != e[i])
@@ -10582,7 +10567,7 @@ var tt = {
10582
10567
  220: "|",
10583
10568
  221: "}",
10584
10569
  222: '"'
10585
- }, ef = typeof navigator < "u" && /Mac/.test(navigator.platform), tf = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
10570
+ }, Qh = typeof navigator < "u" && /Mac/.test(navigator.platform), Zh = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
10586
10571
  for (var Y = 0; Y < 10; Y++)
10587
10572
  tt[48 + Y] = tt[96 + Y] = String(Y);
10588
10573
  for (var Y = 1; Y <= 24; Y++)
@@ -10591,12 +10576,12 @@ for (var Y = 65; Y <= 90; Y++)
10591
10576
  tt[Y] = String.fromCharCode(Y + 32), qn[Y] = String.fromCharCode(Y);
10592
10577
  for (var si in tt)
10593
10578
  qn.hasOwnProperty(si) || (qn[si] = tt[si]);
10594
- function nf(n) {
10595
- var e = ef && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || tf && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? qn : tt)[n.keyCode] || n.key || "Unidentified";
10579
+ function ef(n) {
10580
+ var e = Qh && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || Zh && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? qn : tt)[n.keyCode] || n.key || "Unidentified";
10596
10581
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
10597
10582
  }
10598
- const rf = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
10599
- function sf(n) {
10583
+ const tf = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
10584
+ function nf(n) {
10600
10585
  let e = n.split(/-(?!$)/), t = e[e.length - 1];
10601
10586
  t == "Space" && (t = " ");
10602
10587
  let r, i, s, o;
@@ -10611,28 +10596,28 @@ function sf(n) {
10611
10596
  else if (/^s(hift)?$/i.test(a))
10612
10597
  s = !0;
10613
10598
  else if (/^mod$/i.test(a))
10614
- rf ? o = !0 : i = !0;
10599
+ tf ? o = !0 : i = !0;
10615
10600
  else
10616
10601
  throw new Error("Unrecognized modifier name: " + a);
10617
10602
  }
10618
10603
  return r && (t = "Alt-" + t), i && (t = "Ctrl-" + t), o && (t = "Meta-" + t), s && (t = "Shift-" + t), t;
10619
10604
  }
10620
- function of(n) {
10605
+ function rf(n) {
10621
10606
  let e = /* @__PURE__ */ Object.create(null);
10622
10607
  for (let t in n)
10623
- e[sf(t)] = n[t];
10608
+ e[nf(t)] = n[t];
10624
10609
  return e;
10625
10610
  }
10626
10611
  function oi(n, e, t = !0) {
10627
10612
  return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t && e.shiftKey && (n = "Shift-" + n), n;
10628
10613
  }
10629
- function lf(n) {
10630
- return new Q({ props: { handleKeyDown: af(n) } });
10614
+ function sf(n) {
10615
+ return new Q({ props: { handleKeyDown: of(n) } });
10631
10616
  }
10632
- function af(n) {
10633
- let e = of(n);
10617
+ function of(n) {
10618
+ let e = rf(n);
10634
10619
  return function(t, r) {
10635
- let i = nf(r), s, o = e[oi(i, r)];
10620
+ let i = ef(r), s, o = e[oi(i, r)];
10636
10621
  if (o && o(t.state, t.dispatch, t))
10637
10622
  return !0;
10638
10623
  if (i.length == 1 && i != " ") {
@@ -10650,13 +10635,13 @@ function af(n) {
10650
10635
  return !1;
10651
10636
  };
10652
10637
  }
10653
- const cf = (n, e) => n.selection.empty ? !1 : (e && e(n.tr.deleteSelection().scrollIntoView()), !0);
10654
- function df(n, e) {
10638
+ const lf = (n, e) => n.selection.empty ? !1 : (e && e(n.tr.deleteSelection().scrollIntoView()), !0);
10639
+ function af(n, e) {
10655
10640
  let { $cursor: t } = n.selection;
10656
10641
  return !t || (e ? !e.endOfTextblock("backward", n) : t.parentOffset > 0) ? null : t;
10657
10642
  }
10658
- const uf = (n, e, t) => {
10659
- let r = df(n, t);
10643
+ const cf = (n, e, t) => {
10644
+ let r = af(n, t);
10660
10645
  if (!r)
10661
10646
  return !1;
10662
10647
  let i = ka(r);
@@ -10688,7 +10673,7 @@ function zt(n, e, t = !1) {
10688
10673
  }
10689
10674
  return !1;
10690
10675
  }
10691
- const hf = (n, e, t) => {
10676
+ const df = (n, e, t) => {
10692
10677
  let { $head: r, empty: i } = n.selection, s = r;
10693
10678
  if (!i)
10694
10679
  return !1;
@@ -10710,12 +10695,12 @@ function ka(n) {
10710
10695
  }
10711
10696
  return null;
10712
10697
  }
10713
- function ff(n, e) {
10698
+ function uf(n, e) {
10714
10699
  let { $cursor: t } = n.selection;
10715
10700
  return !t || (e ? !e.endOfTextblock("forward", n) : t.parentOffset < t.parent.content.size) ? null : t;
10716
10701
  }
10717
- const pf = (n, e, t) => {
10718
- let r = ff(n, t);
10702
+ const hf = (n, e, t) => {
10703
+ let r = uf(n, t);
10719
10704
  if (!r)
10720
10705
  return !1;
10721
10706
  let i = Sa(r);
@@ -10735,7 +10720,7 @@ const pf = (n, e, t) => {
10735
10720
  }
10736
10721
  }
10737
10722
  return s.isAtom && i.depth == r.depth - 1 ? (e && e(n.tr.delete(i.pos, i.pos + s.nodeSize).scrollIntoView()), !0) : !1;
10738
- }, mf = (n, e, t) => {
10723
+ }, ff = (n, e, t) => {
10739
10724
  let { $head: r, empty: i } = n.selection, s = r;
10740
10725
  if (!i)
10741
10726
  return !1;
@@ -10758,7 +10743,7 @@ function Sa(n) {
10758
10743
  }
10759
10744
  return null;
10760
10745
  }
10761
- const gf = (n, e) => {
10746
+ const pf = (n, e) => {
10762
10747
  let t = n.selection, r = t instanceof w, i;
10763
10748
  if (r) {
10764
10749
  if (t.node.isTextblock || !rt(n.doc, t.from))
@@ -10771,7 +10756,7 @@ const gf = (n, e) => {
10771
10756
  r && s.setSelection(w.create(s.doc, i - n.doc.resolve(i).nodeBefore.nodeSize)), e(s.scrollIntoView());
10772
10757
  }
10773
10758
  return !0;
10774
- }, yf = (n, e) => {
10759
+ }, mf = (n, e) => {
10775
10760
  let t = n.selection, r;
10776
10761
  if (t instanceof w) {
10777
10762
  if (t.node.isTextblock || !rt(n.doc, t.to))
@@ -10780,10 +10765,10 @@ const gf = (n, e) => {
10780
10765
  } else if (r = Rl(n.doc, t.to, 1), r == null)
10781
10766
  return !1;
10782
10767
  return e && e(n.tr.join(r).scrollIntoView()), !0;
10783
- }, bf = (n, e) => {
10768
+ }, gf = (n, e) => {
10784
10769
  let { $from: t, $to: r } = n.selection, i = t.blockRange(r), s = i && jt(i);
10785
10770
  return s == null ? !1 : (e && e(n.tr.lift(i, s).scrollIntoView()), !0);
10786
- }, kf = (n, e) => {
10771
+ }, yf = (n, e) => {
10787
10772
  let { $head: t, $anchor: r } = n.selection;
10788
10773
  return !t.parent.type.spec.code || !t.sameParent(r) ? !1 : (e && e(n.tr.insertText(`
10789
10774
  `).scrollIntoView()), !0);
@@ -10796,7 +10781,7 @@ function xa(n) {
10796
10781
  }
10797
10782
  return null;
10798
10783
  }
10799
- const Sf = (n, e) => {
10784
+ const bf = (n, e) => {
10800
10785
  let { $head: t, $anchor: r } = n.selection;
10801
10786
  if (!t.parent.type.spec.code || !t.sameParent(r))
10802
10787
  return !1;
@@ -10808,7 +10793,7 @@ const Sf = (n, e) => {
10808
10793
  a.setSelection(N.near(a.doc.resolve(l), 1)), e(a.scrollIntoView());
10809
10794
  }
10810
10795
  return !0;
10811
- }, xf = (n, e) => {
10796
+ }, kf = (n, e) => {
10812
10797
  let t = n.selection, { $from: r, $to: i } = t;
10813
10798
  if (t instanceof Te || r.parent.inlineContent || i.parent.inlineContent)
10814
10799
  return !1;
@@ -10820,7 +10805,7 @@ const Sf = (n, e) => {
10820
10805
  l.setSelection(D.create(l.doc, o + 1)), e(l.scrollIntoView());
10821
10806
  }
10822
10807
  return !0;
10823
- }, Cf = (n, e) => {
10808
+ }, Sf = (n, e) => {
10824
10809
  let { $cursor: t } = n.selection;
10825
10810
  if (!t || t.parent.content.size)
10826
10811
  return !1;
@@ -10831,11 +10816,11 @@ const Sf = (n, e) => {
10831
10816
  }
10832
10817
  let r = t.blockRange(), i = r && jt(r);
10833
10818
  return i == null ? !1 : (e && e(n.tr.lift(r, i).scrollIntoView()), !0);
10834
- }, Ef = (n, e) => {
10819
+ }, xf = (n, e) => {
10835
10820
  let { $from: t, to: r } = n.selection, i, s = t.sharedDepth(r);
10836
10821
  return s == 0 ? !1 : (i = t.before(s), e && e(n.tr.setSelection(w.create(n.doc, i))), !0);
10837
10822
  };
10838
- function Tf(n, e, t) {
10823
+ function Cf(n, e, t) {
10839
10824
  let r = e.nodeBefore, i = e.nodeAfter, s = e.index();
10840
10825
  return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(s - 1, s) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(s, s + 1) || !(i.isTextblock || rt(n.doc, e.pos)) ? !1 : (t && t(n.tr.clearIncompatible(e.pos, r.type, r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()), !0);
10841
10826
  }
@@ -10843,7 +10828,7 @@ function Ca(n, e, t) {
10843
10828
  let r = e.nodeBefore, i = e.nodeAfter, s, o;
10844
10829
  if (r.type.spec.isolating || i.type.spec.isolating)
10845
10830
  return !1;
10846
- if (Tf(n, e, t))
10831
+ if (Cf(n, e, t))
10847
10832
  return !0;
10848
10833
  let l = e.parent.canReplace(e.index(), e.index() + 1);
10849
10834
  if (l && (s = (o = r.contentMatchAt(r.childCount)).findWrapping(i.type)) && o.matchType(s[0] || i.type).validEnd) {
@@ -10891,8 +10876,8 @@ function Ea(n) {
10891
10876
  return i.node(s).isTextblock ? (t && t(e.tr.setSelection(D.create(e.doc, n < 0 ? i.start(s) : i.end(s)))), !0) : !1;
10892
10877
  };
10893
10878
  }
10894
- const Mf = Ea(-1), wf = Ea(1);
10895
- function Of(n, e = null) {
10879
+ const Ef = Ea(-1), Tf = Ea(1);
10880
+ function Mf(n, e = null) {
10896
10881
  return function(t, r) {
10897
10882
  let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = o && Yi(o, n, e);
10898
10883
  return l ? (r && r(t.tr.wrap(o, l).scrollIntoView()), !0) : !1;
@@ -10929,7 +10914,7 @@ function wo(n, e = null) {
10929
10914
  };
10930
10915
  }
10931
10916
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
10932
- function vf(n, e = null) {
10917
+ function wf(n, e = null) {
10933
10918
  return function(t, r) {
10934
10919
  let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = !1, a = o;
10935
10920
  if (!o)
@@ -10941,10 +10926,10 @@ function vf(n, e = null) {
10941
10926
  a = new Bn(d, d, o.depth), o.endIndex < o.parent.childCount && (o = new Bn(i, t.doc.resolve(s.end(o.depth)), o.depth)), l = !0;
10942
10927
  }
10943
10928
  let c = Yi(a, n, e, o);
10944
- return c ? (r && r(Af(t.tr, o, c, l, n).scrollIntoView()), !0) : !1;
10929
+ return c ? (r && r(Of(t.tr, o, c, l, n).scrollIntoView()), !0) : !1;
10945
10930
  };
10946
10931
  }
10947
- function Af(n, e, t, r, i) {
10932
+ function Of(n, e, t, r, i) {
10948
10933
  let s = b.empty;
10949
10934
  for (let d = t.length - 1; d >= 0; d--)
10950
10935
  s = b.from(t[d].type.create(t[d].attrs, s));
@@ -10957,13 +10942,13 @@ function Af(n, e, t, r, i) {
10957
10942
  !h && Rt(n.doc, a, l) && (n.split(a, l), a += 2 * l), a += c.child(d).nodeSize;
10958
10943
  return n;
10959
10944
  }
10960
- function Nf(n) {
10945
+ function vf(n) {
10961
10946
  return function(e, t) {
10962
10947
  let { $from: r, $to: i } = e.selection, s = r.blockRange(i, (o) => o.childCount > 0 && o.firstChild.type == n);
10963
- return s ? t ? r.node(s.depth - 1).type == n ? Df(e, t, n, s) : If(e, t, s) : !0 : !1;
10948
+ return s ? t ? r.node(s.depth - 1).type == n ? Af(e, t, n, s) : Nf(e, t, s) : !0 : !1;
10964
10949
  };
10965
10950
  }
10966
- function Df(n, e, t, r) {
10951
+ function Af(n, e, t, r) {
10967
10952
  let i = n.tr, s = r.end, o = r.$to.end(r.depth);
10968
10953
  s < o && (i.step(new K(s - 1, o, s, o, new S(b.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Bn(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
10969
10954
  const l = jt(r);
@@ -10973,7 +10958,7 @@ function Df(n, e, t, r) {
10973
10958
  let a = i.mapping.map(s, -1) - 1;
10974
10959
  return rt(i.doc, a) && i.join(a), e(i.scrollIntoView()), !0;
10975
10960
  }
10976
- function If(n, e, t) {
10961
+ function Nf(n, e, t) {
10977
10962
  let r = n.tr, i = t.parent;
10978
10963
  for (let f = t.end, p = t.endIndex - 1, m = t.startIndex; p > m; p--)
10979
10964
  f -= i.child(p).nodeSize, r.delete(f - 1, f + 1);
@@ -10986,7 +10971,7 @@ function If(n, e, t) {
10986
10971
  let u = s.pos, h = u + o.nodeSize;
10987
10972
  return r.step(new K(u - (l ? 1 : 0), h + (a ? 1 : 0), u + 1, h - 1, new S((l ? b.empty : b.from(i.copy(b.empty))).append(a ? b.empty : b.from(i.copy(b.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
10988
10973
  }
10989
- function Rf(n) {
10974
+ function Df(n) {
10990
10975
  return function(e, t) {
10991
10976
  let { $from: r, $to: i } = e.selection, s = r.blockRange(i, (c) => c.childCount > 0 && c.firstChild.type == n);
10992
10977
  if (!s)
@@ -11092,7 +11077,7 @@ class Rr {
11092
11077
  return l;
11093
11078
  }
11094
11079
  }
11095
- class Pf {
11080
+ class If {
11096
11081
  constructor() {
11097
11082
  this.callbacks = {};
11098
11083
  }
@@ -11209,10 +11194,10 @@ function Ma(n) {
11209
11194
  function A(n, e = void 0, ...t) {
11210
11195
  return Ma(n) ? e ? n.bind(e)(...t) : n(...t) : n;
11211
11196
  }
11212
- function Lf(n = {}) {
11197
+ function Rf(n = {}) {
11213
11198
  return Object.keys(n).length === 0 && n.constructor === Object;
11214
11199
  }
11215
- function Bf(n) {
11200
+ function Pf(n) {
11216
11201
  return typeof n != "string" ? n : n.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(n) : n === "true" ? !0 : n === "false" ? !1 : n;
11217
11202
  }
11218
11203
  function Oo(n, e) {
@@ -11223,7 +11208,7 @@ function Oo(n, e) {
11223
11208
  if (r === !1)
11224
11209
  return !1;
11225
11210
  const i = e.reduce((s, o) => {
11226
- const l = o.attribute.parseHTML ? o.attribute.parseHTML(t) : Bf(t.getAttribute(o.name));
11211
+ const l = o.attribute.parseHTML ? o.attribute.parseHTML(t) : Pf(t.getAttribute(o.name));
11227
11212
  return l == null ? s : {
11228
11213
  ...s,
11229
11214
  [o.name]: l
@@ -11236,10 +11221,10 @@ function Oo(n, e) {
11236
11221
  function vo(n) {
11237
11222
  return Object.fromEntries(
11238
11223
  // @ts-ignore
11239
- Object.entries(n).filter(([e, t]) => e === "attrs" && Lf(t) ? !1 : t != null)
11224
+ Object.entries(n).filter(([e, t]) => e === "attrs" && Rf(t) ? !1 : t != null)
11240
11225
  );
11241
11226
  }
11242
- function _f(n, e) {
11227
+ function Lf(n, e) {
11243
11228
  var t;
11244
11229
  const r = Ta(n), { nodeExtensions: i, markExtensions: s } = Pr(n), o = (t = i.find((c) => C(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((c) => {
11245
11230
  const d = r.filter((y) => y.type === c.name), u = {
@@ -11309,7 +11294,7 @@ function _f(n, e) {
11309
11294
  HTMLAttributes: Ri(g, d)
11310
11295
  })), [c.name, f];
11311
11296
  }));
11312
- return new jd({
11297
+ return new Vd({
11313
11298
  topNode: o,
11314
11299
  nodes: l,
11315
11300
  marks: a
@@ -11321,7 +11306,7 @@ function li(n, e) {
11321
11306
  function Ao(n, e) {
11322
11307
  return Array.isArray(e) ? e.some((t) => (typeof t == "string" ? t : t.name) === n.name) : e;
11323
11308
  }
11324
- const Ff = (n, e = 500) => {
11309
+ const Bf = (n, e = 500) => {
11325
11310
  let t = "";
11326
11311
  const r = n.parentOffset;
11327
11312
  return n.parent.nodesBetween(Math.max(0, r - e), r, (i, s, o, l) => {
@@ -11343,7 +11328,7 @@ class Lr {
11343
11328
  this.find = e.find, this.handler = e.handler;
11344
11329
  }
11345
11330
  }
11346
- const zf = (n, e) => {
11331
+ const _f = (n, e) => {
11347
11332
  if (cs(e))
11348
11333
  return e.exec(n);
11349
11334
  const t = e(n);
@@ -11364,11 +11349,11 @@ function ai(n) {
11364
11349
  )
11365
11350
  return !1;
11366
11351
  let d = !1;
11367
- const u = Ff(c) + s;
11352
+ const u = Bf(c) + s;
11368
11353
  return o.forEach((h) => {
11369
11354
  if (d)
11370
11355
  return;
11371
- const f = zf(u, h.find);
11356
+ const f = _f(u, h.find);
11372
11357
  if (!f)
11373
11358
  return;
11374
11359
  const p = a.state.tr, m = Ir({
@@ -11396,7 +11381,7 @@ function ai(n) {
11396
11381
  }), a.dispatch(p), d = !0);
11397
11382
  }), d;
11398
11383
  }
11399
- function Hf(n) {
11384
+ function Ff(n) {
11400
11385
  const { editor: e, rules: t } = n, r = new Q({
11401
11386
  state: {
11402
11387
  init() {
@@ -11453,7 +11438,7 @@ function Hf(n) {
11453
11438
  });
11454
11439
  return r;
11455
11440
  }
11456
- function Vf(n) {
11441
+ function zf(n) {
11457
11442
  return typeof n == "number";
11458
11443
  }
11459
11444
  class wa {
@@ -11461,7 +11446,7 @@ class wa {
11461
11446
  this.find = e.find, this.handler = e.handler;
11462
11447
  }
11463
11448
  }
11464
- const $f = (n, e) => {
11449
+ const Hf = (n, e) => {
11465
11450
  if (cs(e))
11466
11451
  return [...n.matchAll(e)];
11467
11452
  const t = e(n);
@@ -11470,7 +11455,7 @@ const $f = (n, e) => {
11470
11455
  return i.index = r.index, i.input = n, i.data = r.data, r.replaceWith && (r.text.includes(r.replaceWith) || console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'), i.push(r.replaceWith)), i;
11471
11456
  }) : [];
11472
11457
  };
11473
- function jf(n) {
11458
+ function Vf(n) {
11474
11459
  const { editor: e, state: t, from: r, to: i, rule: s } = n, { commands: o, chain: l, can: a } = new Rr({
11475
11460
  editor: e,
11476
11461
  state: t
@@ -11479,7 +11464,7 @@ function jf(n) {
11479
11464
  if (!u.isTextblock || u.type.spec.code)
11480
11465
  return;
11481
11466
  const f = Math.max(r, h), p = Math.min(i, h + u.content.size), m = u.textBetween(f - h, p - h, void 0, "");
11482
- $f(m, s.find).forEach((y) => {
11467
+ Hf(m, s.find).forEach((y) => {
11483
11468
  if (y.index === void 0)
11484
11469
  return;
11485
11470
  const x = f + y.index + 1, T = x + y[0].length, R = {
@@ -11497,7 +11482,7 @@ function jf(n) {
11497
11482
  });
11498
11483
  }), c.every((u) => u !== null);
11499
11484
  }
11500
- function qf(n) {
11485
+ function $f(n) {
11501
11486
  const { editor: e, rules: t } = n;
11502
11487
  let r = null, i = !1, s = !1;
11503
11488
  return t.map((l) => new Q({
@@ -11528,13 +11513,13 @@ function qf(n) {
11528
11513
  if (!h && !f)
11529
11514
  return;
11530
11515
  const p = c.doc.content.findDiffStart(d.doc.content), m = c.doc.content.findDiffEnd(d.doc.content);
11531
- if (!Vf(p) || !m || p === m.b)
11516
+ if (!zf(p) || !m || p === m.b)
11532
11517
  return;
11533
11518
  const g = d.tr, y = Ir({
11534
11519
  state: d,
11535
11520
  transaction: g
11536
11521
  });
11537
- if (!(!jf({
11522
+ if (!(!Vf({
11538
11523
  editor: e,
11539
11524
  state: y,
11540
11525
  from: Math.max(p - 1, 0),
@@ -11545,13 +11530,13 @@ function qf(n) {
11545
11530
  }
11546
11531
  }));
11547
11532
  }
11548
- function Kf(n) {
11533
+ function jf(n) {
11549
11534
  const e = n.filter((t, r) => n.indexOf(t) !== r);
11550
11535
  return [...new Set(e)];
11551
11536
  }
11552
11537
  class It {
11553
11538
  constructor(e, t) {
11554
- this.splittableMarks = [], this.editor = t, this.extensions = It.resolve(e), this.schema = _f(this.extensions, t), this.extensions.forEach((r) => {
11539
+ this.splittableMarks = [], this.editor = t, this.extensions = It.resolve(e), this.schema = Lf(this.extensions, t), this.extensions.forEach((r) => {
11555
11540
  var i;
11556
11541
  this.editor.extensionStorage[r.name] = r.storage;
11557
11542
  const s = {
@@ -11581,7 +11566,7 @@ class It {
11581
11566
  });
11582
11567
  }
11583
11568
  static resolve(e) {
11584
- const t = It.sort(It.flatten(e)), r = Kf(t.map((i) => i.name));
11569
+ const t = It.sort(It.flatten(e)), r = jf(t.map((i) => i.name));
11585
11570
  return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), t;
11586
11571
  }
11587
11572
  static flatten(e) {
@@ -11629,7 +11614,7 @@ class It {
11629
11614
  const m = Object.fromEntries(Object.entries(c()).map(([g, y]) => [g, () => y({ editor: e })]));
11630
11615
  d = { ...d, ...m };
11631
11616
  }
11632
- const u = lf(d);
11617
+ const u = sf(d);
11633
11618
  a.push(u);
11634
11619
  const h = C(o, "addInputRules", l);
11635
11620
  Ao(o, e.options.enableInputRules) && h && r.push(...h());
@@ -11643,11 +11628,11 @@ class It {
11643
11628
  return a;
11644
11629
  }).flat();
11645
11630
  return [
11646
- Hf({
11631
+ Ff({
11647
11632
  editor: e,
11648
11633
  rules: r
11649
11634
  }),
11650
- ...qf({
11635
+ ...$f({
11651
11636
  editor: e,
11652
11637
  rules: i
11653
11638
  }),
@@ -11684,11 +11669,11 @@ class It {
11684
11669
  }));
11685
11670
  }
11686
11671
  }
11687
- function Wf(n) {
11672
+ function qf(n) {
11688
11673
  return Object.prototype.toString.call(n).slice(8, -1);
11689
11674
  }
11690
11675
  function ci(n) {
11691
- return Wf(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
11676
+ return qf(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
11692
11677
  }
11693
11678
  function Br(n, e) {
11694
11679
  const t = { ...n };
@@ -11751,7 +11736,7 @@ function Oa(n, e, t) {
11751
11736
  function va(n) {
11752
11737
  return Object.fromEntries(Object.entries(n.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
11753
11738
  }
11754
- const Uf = ge.create({
11739
+ const Kf = ge.create({
11755
11740
  name: "clipboardTextSerializer",
11756
11741
  addProseMirrorPlugins() {
11757
11742
  return [
@@ -11768,10 +11753,10 @@ const Uf = ge.create({
11768
11753
  })
11769
11754
  ];
11770
11755
  }
11771
- }), Jf = () => ({ editor: n, view: e }) => (requestAnimationFrame(() => {
11756
+ }), Wf = () => ({ editor: n, view: e }) => (requestAnimationFrame(() => {
11772
11757
  var t;
11773
11758
  n.isDestroyed || (e.dom.blur(), (t = window == null ? void 0 : window.getSelection()) === null || t === void 0 || t.removeAllRanges());
11774
- }), !0), Gf = (n = !1) => ({ commands: e }) => e.setContent("", n), Yf = () => ({ state: n, tr: e, dispatch: t }) => {
11759
+ }), !0), Uf = (n = !1) => ({ commands: e }) => e.setContent("", n), Jf = () => ({ state: n, tr: e, dispatch: t }) => {
11775
11760
  const { selection: r } = e, { ranges: i } = r;
11776
11761
  return t && i.forEach(({ $from: s, $to: o }) => {
11777
11762
  n.doc.nodesBetween(s.pos, o.pos, (l, a) => {
@@ -11788,7 +11773,7 @@ const Uf = ge.create({
11788
11773
  (p || p === 0) && e.lift(f, p);
11789
11774
  });
11790
11775
  }), !0;
11791
- }, Xf = (n) => (e) => n(e), Qf = () => ({ state: n, dispatch: e }) => xf(n, e), Zf = () => ({ tr: n, dispatch: e }) => {
11776
+ }, Gf = (n) => (e) => n(e), Yf = () => ({ state: n, dispatch: e }) => kf(n, e), Xf = () => ({ tr: n, dispatch: e }) => {
11792
11777
  const { selection: t } = n, r = t.$anchor.node();
11793
11778
  if (r.content.size > 0)
11794
11779
  return !1;
@@ -11802,7 +11787,7 @@ const Uf = ge.create({
11802
11787
  return !0;
11803
11788
  }
11804
11789
  return !1;
11805
- }, ep = (n) => ({ tr: e, state: t, dispatch: r }) => {
11790
+ }, Qf = (n) => ({ tr: e, state: t, dispatch: r }) => {
11806
11791
  const i = W(n, t.schema), s = e.selection.$anchor;
11807
11792
  for (let o = s.depth; o > 0; o -= 1)
11808
11793
  if (s.node(o).type === i) {
@@ -11813,10 +11798,10 @@ const Uf = ge.create({
11813
11798
  return !0;
11814
11799
  }
11815
11800
  return !1;
11816
- }, tp = (n) => ({ tr: e, dispatch: t }) => {
11801
+ }, Zf = (n) => ({ tr: e, dispatch: t }) => {
11817
11802
  const { from: r, to: i } = n;
11818
11803
  return t && e.delete(r, i), !0;
11819
- }, np = () => ({ state: n, dispatch: e }) => cf(n, e), rp = () => ({ commands: n }) => n.keyboardShortcut("Enter"), ip = () => ({ state: n, dispatch: e }) => Sf(n, e);
11804
+ }, ep = () => ({ state: n, dispatch: e }) => lf(n, e), tp = () => ({ commands: n }) => n.keyboardShortcut("Enter"), np = () => ({ state: n, dispatch: e }) => bf(n, e);
11820
11805
  function Kn(n, e, t = { strict: !0 }) {
11821
11806
  const r = Object.keys(e);
11822
11807
  return r.length ? r.every((i) => t.strict ? e[i] === n[i] : cs(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
@@ -11824,7 +11809,7 @@ function Kn(n, e, t = { strict: !0 }) {
11824
11809
  function Pi(n, e, t = {}) {
11825
11810
  return n.find((r) => r.type === e && Kn(r.attrs, t));
11826
11811
  }
11827
- function sp(n, e, t = {}) {
11812
+ function rp(n, e, t = {}) {
11828
11813
  return !!Pi(n, e, t);
11829
11814
  }
11830
11815
  function ds(n, e, t = {}) {
@@ -11839,7 +11824,7 @@ function ds(n, e, t = {}) {
11839
11824
  let s = r.index, o = n.start() + r.offset, l = s + 1, a = o + r.node.nodeSize;
11840
11825
  for (Pi([...r.node.marks], e, t); s > 0 && i.isInSet(n.parent.child(s - 1).marks); )
11841
11826
  s -= 1, o -= n.parent.child(s).nodeSize;
11842
- for (; l < n.parent.childCount && sp([...n.parent.child(l).marks], e, t); )
11827
+ for (; l < n.parent.childCount && rp([...n.parent.child(l).marks], e, t); )
11843
11828
  a += n.parent.child(l).nodeSize, l += 1;
11844
11829
  return {
11845
11830
  from: o,
@@ -11854,7 +11839,7 @@ function st(n, e) {
11854
11839
  }
11855
11840
  return n;
11856
11841
  }
11857
- const op = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
11842
+ const ip = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
11858
11843
  const s = st(n, r.schema), { doc: o, selection: l } = t, { $from: a, from: c, to: d } = l;
11859
11844
  if (i) {
11860
11845
  const u = ds(a, s, e);
@@ -11864,7 +11849,7 @@ const op = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
11864
11849
  }
11865
11850
  }
11866
11851
  return !0;
11867
- }, lp = (n) => (e) => {
11852
+ }, sp = (n) => (e) => {
11868
11853
  const t = typeof n == "function" ? n(e) : n;
11869
11854
  for (let r = 0; r < t.length; r += 1)
11870
11855
  if (t[r](e))
@@ -11898,7 +11883,7 @@ function _r() {
11898
11883
  "iPod"
11899
11884
  ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
11900
11885
  }
11901
- const ap = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) => {
11886
+ const op = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) => {
11902
11887
  e = {
11903
11888
  scrollIntoView: !0,
11904
11889
  ...e
@@ -11914,7 +11899,7 @@ const ap = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) =>
11914
11899
  return o(), !0;
11915
11900
  const l = Aa(i.doc, n) || t.state.selection, a = t.state.selection.eq(l);
11916
11901
  return s && (a || i.setSelection(l), a && i.storedMarks && i.setStoredMarks(i.storedMarks), o()), !0;
11917
- }, cp = (n, e) => (t) => n.every((r, i) => e(r, { ...t, index: i })), dp = (n, e) => ({ tr: t, commands: r }) => r.insertContentAt({ from: t.selection.from, to: t.selection.to }, n, e);
11902
+ }, lp = (n, e) => (t) => n.every((r, i) => e(r, { ...t, index: i })), ap = (n, e) => ({ tr: t, commands: r }) => r.insertContentAt({ from: t.selection.from, to: t.selection.to }, n, e);
11918
11903
  function No(n) {
11919
11904
  const e = `<body>${n}</body>`;
11920
11905
  return new window.DOMParser().parseFromString(e, "text/html").body;
@@ -11936,7 +11921,7 @@ function Wn(n, e, t) {
11936
11921
  }
11937
11922
  return Wn("", e, t);
11938
11923
  }
11939
- function up(n, e, t) {
11924
+ function cp(n, e, t) {
11940
11925
  const r = n.steps.length - 1;
11941
11926
  if (r < e)
11942
11927
  return;
@@ -11949,7 +11934,7 @@ function up(n, e, t) {
11949
11934
  o === 0 && (o = d);
11950
11935
  }), n.setSelection(N.near(n.doc.resolve(o), t));
11951
11936
  }
11952
- const hp = (n) => n.toString().startsWith("<"), fp = (n, e, t) => ({ tr: r, dispatch: i, editor: s }) => {
11937
+ const dp = (n) => n.toString().startsWith("<"), up = (n, e, t) => ({ tr: r, dispatch: i, editor: s }) => {
11953
11938
  if (i) {
11954
11939
  t = {
11955
11940
  parseOptions: {},
@@ -11965,20 +11950,20 @@ const hp = (n) => n.toString().startsWith("<"), fp = (n, e, t) => ({ tr: r, disp
11965
11950
  if (o.toString() === "<>")
11966
11951
  return !0;
11967
11952
  let { from: l, to: a } = typeof n == "number" ? { from: n, to: n } : n, c = !0, d = !0;
11968
- if ((hp(o) ? o : [o]).forEach((h) => {
11953
+ if ((dp(o) ? o : [o]).forEach((h) => {
11969
11954
  h.check(), c = c ? h.isText && h.marks.length === 0 : !1, d = d ? h.isBlock : !1;
11970
11955
  }), l === a && d) {
11971
11956
  const { parent: h } = r.doc.resolve(l);
11972
11957
  h.isTextblock && !h.type.spec.code && !h.childCount && (l -= 1, a += 1);
11973
11958
  }
11974
- c ? Array.isArray(e) ? r.insertText(e.map((h) => h.text || "").join(""), l, a) : typeof e == "object" && e && e.text ? r.insertText(e.text, l, a) : r.insertText(e, l, a) : r.replaceWith(l, a, o), t.updateSelection && up(r, r.steps.length - 1, -1);
11959
+ c ? Array.isArray(e) ? r.insertText(e.map((h) => h.text || "").join(""), l, a) : typeof e == "object" && e && e.text ? r.insertText(e.text, l, a) : r.insertText(e, l, a) : r.replaceWith(l, a, o), t.updateSelection && cp(r, r.steps.length - 1, -1);
11975
11960
  }
11976
11961
  return !0;
11977
- }, pp = () => ({ state: n, dispatch: e }) => gf(n, e), mp = () => ({ state: n, dispatch: e }) => yf(n, e), gp = () => ({ state: n, dispatch: e }) => uf(n, e), yp = () => ({ state: n, dispatch: e }) => pf(n, e);
11962
+ }, hp = () => ({ state: n, dispatch: e }) => pf(n, e), fp = () => ({ state: n, dispatch: e }) => mf(n, e), pp = () => ({ state: n, dispatch: e }) => cf(n, e), mp = () => ({ state: n, dispatch: e }) => hf(n, e);
11978
11963
  function hs() {
11979
11964
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
11980
11965
  }
11981
- function bp(n) {
11966
+ function gp(n) {
11982
11967
  const e = n.split(/-(?!$)/);
11983
11968
  let t = e[e.length - 1];
11984
11969
  t === "Space" && (t = " ");
@@ -12000,8 +11985,8 @@ function bp(n) {
12000
11985
  }
12001
11986
  return r && (t = `Alt-${t}`), i && (t = `Ctrl-${t}`), o && (t = `Meta-${t}`), s && (t = `Shift-${t}`), t;
12002
11987
  }
12003
- const kp = (n) => ({ editor: e, view: t, tr: r, dispatch: i }) => {
12004
- const s = bp(n).split(/-(?!$)/), o = s.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), l = new KeyboardEvent("keydown", {
11988
+ const yp = (n) => ({ editor: e, view: t, tr: r, dispatch: i }) => {
11989
+ const s = gp(n).split(/-(?!$)/), o = s.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), l = new KeyboardEvent("keydown", {
12005
11990
  key: o === "Space" ? " " : o,
12006
11991
  altKey: s.includes("Alt"),
12007
11992
  ctrlKey: s.includes("Ctrl"),
@@ -12032,13 +12017,13 @@ function pn(n, e, t = {}) {
12032
12017
  const a = i - r, c = l.filter((u) => o ? o.name === u.node.type.name : !0).filter((u) => Kn(u.node.attrs, t, { strict: !1 }));
12033
12018
  return s ? !!c.length : c.reduce((u, h) => u + h.to - h.from, 0) >= a;
12034
12019
  }
12035
- const Sp = (n, e = {}) => ({ state: t, dispatch: r }) => {
12020
+ const bp = (n, e = {}) => ({ state: t, dispatch: r }) => {
12036
12021
  const i = W(n, t.schema);
12037
- return pn(t, i, e) ? bf(t, r) : !1;
12038
- }, xp = () => ({ state: n, dispatch: e }) => Cf(n, e), Cp = (n) => ({ state: e, dispatch: t }) => {
12022
+ return pn(t, i, e) ? gf(t, r) : !1;
12023
+ }, kp = () => ({ state: n, dispatch: e }) => Sf(n, e), Sp = (n) => ({ state: e, dispatch: t }) => {
12039
12024
  const r = W(n, e.schema);
12040
- return Nf(r)(e, t);
12041
- }, Ep = () => ({ state: n, dispatch: e }) => kf(n, e);
12025
+ return vf(r)(e, t);
12026
+ }, xp = () => ({ state: n, dispatch: e }) => yf(n, e);
12042
12027
  function Fr(n, e) {
12043
12028
  return e.nodes[n] ? "node" : e.marks[n] ? "mark" : null;
12044
12029
  }
@@ -12046,7 +12031,7 @@ function Do(n, e) {
12046
12031
  const t = typeof e == "string" ? [e] : e;
12047
12032
  return Object.keys(n).reduce((r, i) => (t.includes(i) || (r[i] = n[i]), r), {});
12048
12033
  }
12049
- const Tp = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
12034
+ const Cp = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
12050
12035
  let s = null, o = null;
12051
12036
  const l = Fr(typeof n == "string" ? n : n.name, r.schema);
12052
12037
  return l ? (l === "node" && (s = W(n, r.schema)), l === "mark" && (o = st(n, r.schema)), i && t.selection.ranges.forEach((a) => {
@@ -12056,14 +12041,14 @@ const Tp = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
12056
12041
  });
12057
12042
  });
12058
12043
  }), !0) : !1;
12059
- }, Mp = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), wp = () => ({ tr: n, commands: e }) => e.setTextSelection({
12044
+ }, Ep = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), Tp = () => ({ tr: n, commands: e }) => e.setTextSelection({
12060
12045
  from: 0,
12061
12046
  to: n.doc.content.size
12062
- }), Op = () => ({ state: n, dispatch: e }) => hf(n, e), vp = () => ({ state: n, dispatch: e }) => mf(n, e), Ap = () => ({ state: n, dispatch: e }) => Ef(n, e), Np = () => ({ state: n, dispatch: e }) => wf(n, e), Dp = () => ({ state: n, dispatch: e }) => Mf(n, e);
12047
+ }), Mp = () => ({ state: n, dispatch: e }) => df(n, e), wp = () => ({ state: n, dispatch: e }) => ff(n, e), Op = () => ({ state: n, dispatch: e }) => xf(n, e), vp = () => ({ state: n, dispatch: e }) => Tf(n, e), Ap = () => ({ state: n, dispatch: e }) => Ef(n, e);
12063
12048
  function Na(n, e, t = {}) {
12064
12049
  return Wn(n, e, { slice: !1, parseOptions: t });
12065
12050
  }
12066
- const Ip = (n, e = !1, t = {}) => ({ tr: r, editor: i, dispatch: s }) => {
12051
+ const Np = (n, e = !1, t = {}) => ({ tr: r, editor: i, dispatch: s }) => {
12067
12052
  const { doc: o } = r, l = Na(n, i.schema, t);
12068
12053
  return s && r.replaceWith(0, o.content.size, l).setMeta("preventUpdate", !e), !0;
12069
12054
  };
@@ -12075,7 +12060,7 @@ function Da(n, e) {
12075
12060
  });
12076
12061
  }), t;
12077
12062
  }
12078
- function Rp(n) {
12063
+ function Dp(n) {
12079
12064
  for (let e = 0; e < n.edgeCount; e += 1) {
12080
12065
  const { type: t } = n.edge(e);
12081
12066
  if (t.isTextblock && !t.hasRequiredAttrs())
@@ -12092,7 +12077,7 @@ function Ia(n, e, t) {
12092
12077
  });
12093
12078
  }), r;
12094
12079
  }
12095
- function Pp(n, e) {
12080
+ function Ip(n, e) {
12096
12081
  for (let t = n.depth; t > 0; t -= 1) {
12097
12082
  const r = n.node(t);
12098
12083
  if (e(r))
@@ -12105,13 +12090,13 @@ function Pp(n, e) {
12105
12090
  }
12106
12091
  }
12107
12092
  function fs(n) {
12108
- return (e) => Pp(e.$from, n);
12093
+ return (e) => Ip(e.$from, n);
12109
12094
  }
12110
- function Lp(n, e) {
12095
+ function Rp(n, e) {
12111
12096
  const t = Ne.fromSchema(e).serializeFragment(n), i = document.implementation.createHTMLDocument().createElement("div");
12112
12097
  return i.appendChild(t), i.innerHTML;
12113
12098
  }
12114
- function Bp(n, e) {
12099
+ function Pp(n, e) {
12115
12100
  const t = {
12116
12101
  from: 0,
12117
12102
  to: n.content.size
@@ -12126,7 +12111,7 @@ function zr(n, e) {
12126
12111
  const l = o.find((a) => a.type.name === t.name);
12127
12112
  return l ? { ...l.attrs } : {};
12128
12113
  }
12129
- function _p(n, e) {
12114
+ function Lp(n, e) {
12130
12115
  const t = W(e, n.schema), { from: r, to: i } = n.selection, s = [];
12131
12116
  n.doc.nodesBetween(r, i, (l) => {
12132
12117
  s.push(l);
@@ -12136,17 +12121,17 @@ function _p(n, e) {
12136
12121
  }
12137
12122
  function Ra(n, e) {
12138
12123
  const t = Fr(typeof e == "string" ? e : e.name, n.schema);
12139
- return t === "node" ? _p(n, e) : t === "mark" ? zr(n, e) : {};
12124
+ return t === "node" ? Lp(n, e) : t === "mark" ? zr(n, e) : {};
12140
12125
  }
12141
- function Fp(n, e = JSON.stringify) {
12126
+ function Bp(n, e = JSON.stringify) {
12142
12127
  const t = {};
12143
12128
  return n.filter((r) => {
12144
12129
  const i = e(r);
12145
12130
  return Object.prototype.hasOwnProperty.call(t, i) ? !1 : t[i] = !0;
12146
12131
  });
12147
12132
  }
12148
- function zp(n) {
12149
- const e = Fp(n);
12133
+ function _p(n) {
12134
+ const e = Bp(n);
12150
12135
  return e.length === 1 ? e : e.filter((t, r) => !e.filter((s, o) => o !== r).some((s) => t.oldRange.from >= s.oldRange.from && t.oldRange.to <= s.oldRange.to && t.newRange.from >= s.newRange.from && t.newRange.to <= s.newRange.to));
12151
12136
  }
12152
12137
  function Pa(n) {
@@ -12176,7 +12161,7 @@ function Pa(n) {
12176
12161
  }
12177
12162
  });
12178
12163
  });
12179
- }), zp(r);
12164
+ }), _p(r);
12180
12165
  }
12181
12166
  function Hr(n, e, t) {
12182
12167
  const r = [];
@@ -12223,7 +12208,7 @@ function Li(n, e, t = {}) {
12223
12208
  const a = l.filter((u) => s ? s.name === u.mark.type.name : !0).filter((u) => Kn(u.mark.attrs, t, { strict: !1 })).reduce((u, h) => u + h.to - h.from, 0), c = l.filter((u) => s ? u.mark.type !== s && u.mark.type.excludes(s) : !0).reduce((u, h) => u + h.to - h.from, 0);
12224
12209
  return (a > 0 ? a + c : a) >= o;
12225
12210
  }
12226
- function Hp(n, e, t = {}) {
12211
+ function Fp(n, e, t = {}) {
12227
12212
  if (!e)
12228
12213
  return pn(n, null, t) || Li(n, null, t);
12229
12214
  const r = Fr(e, n.schema);
@@ -12240,12 +12225,12 @@ function Io(n, e) {
12240
12225
  }, s = A(C(r, "group", i));
12241
12226
  return typeof s != "string" ? !1 : s.split(" ").includes("list");
12242
12227
  }
12243
- function Vp(n) {
12228
+ function zp(n) {
12244
12229
  var e;
12245
12230
  const t = (e = n.type.createAndFill()) === null || e === void 0 ? void 0 : e.toJSON(), r = n.toJSON();
12246
12231
  return JSON.stringify(t) === JSON.stringify(r);
12247
12232
  }
12248
- function $p(n) {
12233
+ function Hp(n) {
12249
12234
  return n instanceof w;
12250
12235
  }
12251
12236
  function La(n, e, t) {
@@ -12264,7 +12249,7 @@ function La(n, e, t) {
12264
12249
  toJSON: () => y
12265
12250
  };
12266
12251
  }
12267
- function jp(n, e, t) {
12252
+ function Vp(n, e, t) {
12268
12253
  var r;
12269
12254
  const { selection: i } = e;
12270
12255
  let s = null;
@@ -12286,7 +12271,7 @@ function jp(n, e, t) {
12286
12271
  }), c;
12287
12272
  });
12288
12273
  }
12289
- const qp = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12274
+ const $p = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12290
12275
  const { selection: s } = t, { empty: o, ranges: l } = s, a = st(n, r.schema);
12291
12276
  if (i)
12292
12277
  if (o) {
@@ -12308,25 +12293,25 @@ const qp = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12308
12293
  }) : t.addMark(p, m, a.create(e));
12309
12294
  });
12310
12295
  });
12311
- return jp(r, t, a);
12312
- }, Kp = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), Wp = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
12296
+ return Vp(r, t, a);
12297
+ }, jp = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), qp = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
12313
12298
  const s = W(n, t.schema);
12314
12299
  return s.isTextblock ? i().command(({ commands: o }) => wo(s, e)(t) ? !0 : o.clearNodes()).command(({ state: o }) => wo(s, e)(o, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
12315
- }, Up = (n) => ({ tr: e, dispatch: t }) => {
12300
+ }, Kp = (n) => ({ tr: e, dispatch: t }) => {
12316
12301
  if (t) {
12317
12302
  const { doc: r } = e, i = _e(n, 0, r.content.size), s = w.create(r, i);
12318
12303
  e.setSelection(s);
12319
12304
  }
12320
12305
  return !0;
12321
- }, Jp = (n) => ({ tr: e, dispatch: t }) => {
12306
+ }, Wp = (n) => ({ tr: e, dispatch: t }) => {
12322
12307
  if (t) {
12323
12308
  const { doc: r } = e, { from: i, to: s } = typeof n == "number" ? { from: n, to: n } : n, o = D.atStart(r).from, l = D.atEnd(r).to, a = _e(i, o, l), c = _e(s, o, l), d = D.create(r, a, c);
12324
12309
  e.setSelection(d);
12325
12310
  }
12326
12311
  return !0;
12327
- }, Gp = (n) => ({ state: e, dispatch: t }) => {
12312
+ }, Up = (n) => ({ state: e, dispatch: t }) => {
12328
12313
  const r = W(n, e.schema);
12329
- return Rf(r)(e, t);
12314
+ return Df(r)(e, t);
12330
12315
  };
12331
12316
  function Ro(n, e) {
12332
12317
  const t = n.storedMarks || n.selection.$to.parentOffset && n.selection.$from.marks();
@@ -12335,7 +12320,7 @@ function Ro(n, e) {
12335
12320
  n.tr.ensureMarks(r);
12336
12321
  }
12337
12322
  }
12338
- const Yp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
12323
+ const Jp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
12339
12324
  const { selection: s, doc: o } = e, { $from: l, $to: a } = s, c = i.extensionManager.attributes, d = Nn(c, l.node().type.name, l.node().attrs);
12340
12325
  if (s instanceof w && s.node.isBlock)
12341
12326
  return !l.parentOffset || !Rt(o, l.pos) ? !1 : (r && (n && Ro(t, i.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
@@ -12344,7 +12329,7 @@ const Yp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12344
12329
  if (r) {
12345
12330
  const u = a.parentOffset === a.parent.content.size;
12346
12331
  s instanceof D && e.deleteSelection();
12347
- const h = l.depth === 0 ? void 0 : Rp(l.node(-1).contentMatchAt(l.indexAfter(-1)));
12332
+ const h = l.depth === 0 ? void 0 : Dp(l.node(-1).contentMatchAt(l.indexAfter(-1)));
12348
12333
  let f = u && h ? [
12349
12334
  {
12350
12335
  type: h,
@@ -12363,7 +12348,7 @@ const Yp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12363
12348
  n && Ro(t, i.extensionManager.splittableMarks), e.scrollIntoView();
12364
12349
  }
12365
12350
  return !0;
12366
- }, Xp = (n) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
12351
+ }, Gp = (n) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
12367
12352
  var s;
12368
12353
  const o = W(n, t.schema), { $from: l, $to: a } = t.selection, c = t.selection.node;
12369
12354
  if (c && c.isBlock || l.depth < 2 || !l.sameParent(a))
@@ -12427,7 +12412,7 @@ const Yp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12427
12412
  return !0;
12428
12413
  const i = n.doc.nodeAt(r);
12429
12414
  return t.node.type === (i == null ? void 0 : i.type) && rt(n.doc, r) && n.join(r), !0;
12430
- }, Qp = (n, e, t, r = {}) => ({ editor: i, tr: s, state: o, dispatch: l, chain: a, commands: c, can: d }) => {
12415
+ }, Yp = (n, e, t, r = {}) => ({ editor: i, tr: s, state: o, dispatch: l, chain: a, commands: c, can: d }) => {
12431
12416
  const { extensions: u, splittableMarks: h } = i.extensionManager, f = W(n, o.schema), p = W(e, o.schema), { selection: m, storedMarks: g } = o, { $from: y, $to: x } = m, T = y.blockRange(x), R = g || m.$to.parentOffset && m.$from.marks();
12432
12417
  if (!T)
12433
12418
  return !1;
@@ -12442,16 +12427,16 @@ const Yp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12442
12427
  const E = d().wrapInList(f, r), L = R.filter((I) => h.includes(I.type.name));
12443
12428
  return s.ensureMarks(L), E ? !0 : c.clearNodes();
12444
12429
  }).wrapInList(f, r).command(() => di(s, f)).command(() => ui(s, f)).run();
12445
- }, Zp = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
12430
+ }, Xp = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
12446
12431
  const { extendEmptyMarkRange: s = !1 } = t, o = st(n, r.schema);
12447
12432
  return Li(r, o, e) ? i.unsetMark(o, { extendEmptyMarkRange: s }) : i.setMark(o, e);
12448
- }, em = (n, e, t = {}) => ({ state: r, commands: i }) => {
12433
+ }, Qp = (n, e, t = {}) => ({ state: r, commands: i }) => {
12449
12434
  const s = W(n, r.schema), o = W(e, r.schema);
12450
12435
  return pn(r, s, t) ? i.setNode(o) : i.setNode(s, t);
12451
- }, tm = (n, e = {}) => ({ state: t, commands: r }) => {
12436
+ }, Zp = (n, e = {}) => ({ state: t, commands: r }) => {
12452
12437
  const i = W(n, t.schema);
12453
12438
  return pn(t, i, e) ? r.lift(i) : r.wrapIn(i, e);
12454
- }, nm = () => ({ state: n, dispatch: e }) => {
12439
+ }, em = () => ({ state: n, dispatch: e }) => {
12455
12440
  const t = n.plugins;
12456
12441
  for (let r = 0; r < t.length; r += 1) {
12457
12442
  const i = t[r];
@@ -12471,12 +12456,12 @@ const Yp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12471
12456
  }
12472
12457
  }
12473
12458
  return !1;
12474
- }, rm = () => ({ tr: n, dispatch: e }) => {
12459
+ }, tm = () => ({ tr: n, dispatch: e }) => {
12475
12460
  const { selection: t } = n, { empty: r, ranges: i } = t;
12476
12461
  return r || e && i.forEach((s) => {
12477
12462
  n.removeMark(s.$from.pos, s.$to.pos);
12478
12463
  }), !0;
12479
- }, im = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12464
+ }, nm = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12480
12465
  var s;
12481
12466
  const { extendEmptyMarkRange: o = !1 } = e, { selection: l } = t, a = st(n, r.schema), { $from: c, empty: d, ranges: u } = l;
12482
12467
  if (!i)
@@ -12490,7 +12475,7 @@ const Yp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12490
12475
  t.removeMark(h.$from.pos, h.$to.pos, a);
12491
12476
  });
12492
12477
  return t.removeStoredMark(a), !0;
12493
- }, sm = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12478
+ }, rm = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12494
12479
  let s = null, o = null;
12495
12480
  const l = Fr(typeof n == "string" ? n : n.name, r.schema);
12496
12481
  return l ? (l === "node" && (s = W(n, r.schema)), l === "mark" && (o = st(n, r.schema)), i && t.selection.ranges.forEach((a) => {
@@ -12510,77 +12495,77 @@ const Yp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12510
12495
  });
12511
12496
  });
12512
12497
  }), !0) : !1;
12513
- }, om = (n, e = {}) => ({ state: t, dispatch: r }) => {
12498
+ }, im = (n, e = {}) => ({ state: t, dispatch: r }) => {
12514
12499
  const i = W(n, t.schema);
12515
- return Of(i, e)(t, r);
12516
- }, lm = (n, e = {}) => ({ state: t, dispatch: r }) => {
12500
+ return Mf(i, e)(t, r);
12501
+ }, sm = (n, e = {}) => ({ state: t, dispatch: r }) => {
12517
12502
  const i = W(n, t.schema);
12518
- return vf(i, e)(t, r);
12503
+ return wf(i, e)(t, r);
12519
12504
  };
12520
- var am = /* @__PURE__ */ Object.freeze({
12505
+ var om = /* @__PURE__ */ Object.freeze({
12521
12506
  __proto__: null,
12522
- blur: Jf,
12523
- clearContent: Gf,
12524
- clearNodes: Yf,
12525
- command: Xf,
12526
- createParagraphNear: Qf,
12527
- deleteCurrentNode: Zf,
12528
- deleteNode: ep,
12529
- deleteRange: tp,
12530
- deleteSelection: np,
12531
- enter: rp,
12532
- exitCode: ip,
12533
- extendMarkRange: op,
12534
- first: lp,
12535
- focus: ap,
12536
- forEach: cp,
12537
- insertContent: dp,
12538
- insertContentAt: fp,
12539
- joinUp: pp,
12540
- joinDown: mp,
12541
- joinBackward: gp,
12542
- joinForward: yp,
12543
- keyboardShortcut: kp,
12544
- lift: Sp,
12545
- liftEmptyBlock: xp,
12546
- liftListItem: Cp,
12547
- newlineInCode: Ep,
12548
- resetAttributes: Tp,
12549
- scrollIntoView: Mp,
12550
- selectAll: wp,
12551
- selectNodeBackward: Op,
12552
- selectNodeForward: vp,
12553
- selectParentNode: Ap,
12554
- selectTextblockEnd: Np,
12555
- selectTextblockStart: Dp,
12556
- setContent: Ip,
12557
- setMark: qp,
12558
- setMeta: Kp,
12559
- setNode: Wp,
12560
- setNodeSelection: Up,
12561
- setTextSelection: Jp,
12562
- sinkListItem: Gp,
12563
- splitBlock: Yp,
12564
- splitListItem: Xp,
12565
- toggleList: Qp,
12566
- toggleMark: Zp,
12567
- toggleNode: em,
12568
- toggleWrap: tm,
12569
- undoInputRule: nm,
12570
- unsetAllMarks: rm,
12571
- unsetMark: im,
12572
- updateAttributes: sm,
12573
- wrapIn: om,
12574
- wrapInList: lm
12507
+ blur: Wf,
12508
+ clearContent: Uf,
12509
+ clearNodes: Jf,
12510
+ command: Gf,
12511
+ createParagraphNear: Yf,
12512
+ deleteCurrentNode: Xf,
12513
+ deleteNode: Qf,
12514
+ deleteRange: Zf,
12515
+ deleteSelection: ep,
12516
+ enter: tp,
12517
+ exitCode: np,
12518
+ extendMarkRange: ip,
12519
+ first: sp,
12520
+ focus: op,
12521
+ forEach: lp,
12522
+ insertContent: ap,
12523
+ insertContentAt: up,
12524
+ joinUp: hp,
12525
+ joinDown: fp,
12526
+ joinBackward: pp,
12527
+ joinForward: mp,
12528
+ keyboardShortcut: yp,
12529
+ lift: bp,
12530
+ liftEmptyBlock: kp,
12531
+ liftListItem: Sp,
12532
+ newlineInCode: xp,
12533
+ resetAttributes: Cp,
12534
+ scrollIntoView: Ep,
12535
+ selectAll: Tp,
12536
+ selectNodeBackward: Mp,
12537
+ selectNodeForward: wp,
12538
+ selectParentNode: Op,
12539
+ selectTextblockEnd: vp,
12540
+ selectTextblockStart: Ap,
12541
+ setContent: Np,
12542
+ setMark: $p,
12543
+ setMeta: jp,
12544
+ setNode: qp,
12545
+ setNodeSelection: Kp,
12546
+ setTextSelection: Wp,
12547
+ sinkListItem: Up,
12548
+ splitBlock: Jp,
12549
+ splitListItem: Gp,
12550
+ toggleList: Yp,
12551
+ toggleMark: Xp,
12552
+ toggleNode: Qp,
12553
+ toggleWrap: Zp,
12554
+ undoInputRule: em,
12555
+ unsetAllMarks: tm,
12556
+ unsetMark: nm,
12557
+ updateAttributes: rm,
12558
+ wrapIn: im,
12559
+ wrapInList: sm
12575
12560
  });
12576
- const cm = ge.create({
12561
+ const lm = ge.create({
12577
12562
  name: "commands",
12578
12563
  addCommands() {
12579
12564
  return {
12580
- ...am
12565
+ ...om
12581
12566
  };
12582
12567
  }
12583
- }), dm = ge.create({
12568
+ }), am = ge.create({
12584
12569
  name: "editable",
12585
12570
  addProseMirrorPlugins() {
12586
12571
  return [
@@ -12592,7 +12577,7 @@ const cm = ge.create({
12592
12577
  })
12593
12578
  ];
12594
12579
  }
12595
- }), um = ge.create({
12580
+ }), cm = ge.create({
12596
12581
  name: "focusEvents",
12597
12582
  addProseMirrorPlugins() {
12598
12583
  const { editor: n } = this;
@@ -12616,7 +12601,7 @@ const cm = ge.create({
12616
12601
  })
12617
12602
  ];
12618
12603
  }
12619
- }), hm = ge.create({
12604
+ }), dm = ge.create({
12620
12605
  name: "keymap",
12621
12606
  addKeyboardShortcuts() {
12622
12607
  const n = () => this.editor.commands.first(({ commands: o }) => [
@@ -12691,7 +12676,7 @@ const cm = ge.create({
12691
12676
  })
12692
12677
  ];
12693
12678
  }
12694
- }), fm = ge.create({
12679
+ }), um = ge.create({
12695
12680
  name: "tabindex",
12696
12681
  addProseMirrorPlugins() {
12697
12682
  return [
@@ -12704,16 +12689,16 @@ const cm = ge.create({
12704
12689
  ];
12705
12690
  }
12706
12691
  });
12707
- var pm = /* @__PURE__ */ Object.freeze({
12692
+ var hm = /* @__PURE__ */ Object.freeze({
12708
12693
  __proto__: null,
12709
- ClipboardTextSerializer: Uf,
12710
- Commands: cm,
12711
- Editable: dm,
12712
- FocusEvents: um,
12713
- Keymap: hm,
12714
- Tabindex: fm
12694
+ ClipboardTextSerializer: Kf,
12695
+ Commands: lm,
12696
+ Editable: am,
12697
+ FocusEvents: cm,
12698
+ Keymap: dm,
12699
+ Tabindex: um
12715
12700
  });
12716
- const mm = `.ProseMirror {
12701
+ const fm = `.ProseMirror {
12717
12702
  position: relative;
12718
12703
  }
12719
12704
 
@@ -12788,14 +12773,14 @@ img.ProseMirror-separator {
12788
12773
  .tippy-box[data-animation=fade][data-state=hidden] {
12789
12774
  opacity: 0
12790
12775
  }`;
12791
- function gm(n, e) {
12776
+ function pm(n, e) {
12792
12777
  const t = document.querySelector("style[data-tiptap-style]");
12793
12778
  if (t !== null)
12794
12779
  return t;
12795
12780
  const r = document.createElement("style");
12796
12781
  return e && r.setAttribute("nonce", e), r.setAttribute("data-tiptap-style", ""), r.innerHTML = n, document.getElementsByTagName("head")[0].appendChild(r), r;
12797
12782
  }
12798
- let ym = class extends Pf {
12783
+ let mm = class extends If {
12799
12784
  constructor(e = {}) {
12800
12785
  super(), this.isFocused = !1, this.extensionStorage = {}, this.options = {
12801
12786
  element: document.createElement("div"),
@@ -12850,7 +12835,7 @@ let ym = class extends Pf {
12850
12835
  * Inject CSS styles.
12851
12836
  */
12852
12837
  injectCSS() {
12853
- this.options.injectCSS && document && (this.css = gm(mm, this.options.injectNonce));
12838
+ this.options.injectCSS && document && (this.css = pm(fm, this.options.injectNonce));
12854
12839
  }
12855
12840
  /**
12856
12841
  * Update editor options.
@@ -12909,7 +12894,7 @@ let ym = class extends Pf {
12909
12894
  * Creates an extension manager.
12910
12895
  */
12911
12896
  createExtensionManager() {
12912
- const t = [...this.options.enableCoreExtensions ? Object.values(pm) : [], ...this.options.extensions].filter((r) => ["extension", "node", "mark"].includes(r == null ? void 0 : r.type));
12897
+ const t = [...this.options.enableCoreExtensions ? Object.values(hm) : [], ...this.options.extensions].filter((r) => ["extension", "node", "mark"].includes(r == null ? void 0 : r.type));
12913
12898
  this.extensionManager = new It(t, this);
12914
12899
  }
12915
12900
  /**
@@ -12931,7 +12916,7 @@ let ym = class extends Pf {
12931
12916
  */
12932
12917
  createView() {
12933
12918
  const e = Na(this.options.content, this.schema, this.options.parseOptions), t = Aa(e, this.options.autofocus);
12934
- this.view = new Xh(this.options.element, {
12919
+ this.view = new Gh(this.options.element, {
12935
12920
  ...this.options.editorProps,
12936
12921
  dispatchTransaction: this.dispatchTransaction.bind(this),
12937
12922
  state: Dt.create({
@@ -13008,7 +12993,7 @@ let ym = class extends Pf {
13008
12993
  }
13009
12994
  isActive(e, t) {
13010
12995
  const r = typeof e == "string" ? e : null, i = typeof e == "string" ? t : e;
13011
- return Hp(this.state, r, i);
12996
+ return Fp(this.state, r, i);
13012
12997
  }
13013
12998
  /**
13014
12999
  * Get the document as JSON.
@@ -13020,7 +13005,7 @@ let ym = class extends Pf {
13020
13005
  * Get the document as HTML.
13021
13006
  */
13022
13007
  getHTML() {
13023
- return Lp(this.state.doc.content, this.schema);
13008
+ return Rp(this.state.doc.content, this.schema);
13024
13009
  }
13025
13010
  /**
13026
13011
  * Get the document as text.
@@ -13029,7 +13014,7 @@ let ym = class extends Pf {
13029
13014
  const { blockSeparator: t = `
13030
13015
 
13031
13016
  `, textSerializers: r = {} } = e || {};
13032
- return Bp(this.state.doc, {
13017
+ return Pp(this.state.doc, {
13033
13018
  blockSeparator: t,
13034
13019
  textSerializers: {
13035
13020
  ...va(this.schema),
@@ -13041,7 +13026,7 @@ let ym = class extends Pf {
13041
13026
  * Check if there is no content.
13042
13027
  */
13043
13028
  get isEmpty() {
13044
- return Vp(this.state.doc);
13029
+ return zp(this.state.doc);
13045
13030
  }
13046
13031
  /**
13047
13032
  * Get the number of characters for the current document.
@@ -13215,7 +13200,7 @@ class ne {
13215
13200
  })), t;
13216
13201
  }
13217
13202
  }
13218
- class bm {
13203
+ class gm {
13219
13204
  constructor(e, t, r) {
13220
13205
  this.isDragging = !1, this.component = e, this.editor = t.editor, this.options = {
13221
13206
  stopEvent: null,
@@ -13310,7 +13295,7 @@ function Ht(n) {
13310
13295
  }
13311
13296
  });
13312
13297
  }
13313
- function km(n) {
13298
+ function ym(n) {
13314
13299
  return n.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
13315
13300
  }
13316
13301
  function Bo(n) {
@@ -13327,7 +13312,7 @@ function Bo(n) {
13327
13312
  }
13328
13313
  });
13329
13314
  }
13330
- class Sm {
13315
+ class bm {
13331
13316
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, updateDelay: s = 250, shouldShow: o }) {
13332
13317
  this.preventHide = !1, this.shouldShow = ({ view: l, state: a, from: c, to: d }) => {
13333
13318
  const { doc: u, selection: h } = a, { empty: f } = h, p = !u.textBetween(c, d).length && us(a.selection), m = this.element.contains(document.activeElement);
@@ -13372,7 +13357,7 @@ class Sm {
13372
13357
  }
13373
13358
  (h = this.tippy) === null || h === void 0 || h.setProps({
13374
13359
  getReferenceClientRect: ((f = this.tippyOptions) === null || f === void 0 ? void 0 : f.getReferenceClientRect) || (() => {
13375
- if ($p(p.selection)) {
13360
+ if (Hp(p.selection)) {
13376
13361
  let E = l.nodeDOM(T);
13377
13362
  const L = E.dataset.nodeViewWrapper ? E : E.querySelector("[data-node-view-wrapper]");
13378
13363
  if (L && (E = L.firstChild), E)
@@ -13420,7 +13405,7 @@ class Sm {
13420
13405
  }
13421
13406
  const Ba = (n) => new Q({
13422
13407
  key: typeof n.pluginKey == "string" ? new ie(n.pluginKey) : n.pluginKey,
13423
- view: (e) => new Sm({ view: e, ...n })
13408
+ view: (e) => new bm({ view: e, ...n })
13424
13409
  });
13425
13410
  ge.create({
13426
13411
  name: "bubbleMenu",
@@ -13446,7 +13431,7 @@ ge.create({
13446
13431
  ] : [];
13447
13432
  }
13448
13433
  });
13449
- class xm {
13434
+ class km {
13450
13435
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, shouldShow: s }) {
13451
13436
  this.preventHide = !1, this.shouldShow = ({ view: o, state: l }) => {
13452
13437
  const { selection: a } = l, { $anchor: c, empty: d } = a, u = c.depth === 1, h = c.parent.isTextblock && !c.parent.type.spec.code && !c.parent.textContent;
@@ -13512,7 +13497,7 @@ class xm {
13512
13497
  }
13513
13498
  const _a = (n) => new Q({
13514
13499
  key: typeof n.pluginKey == "string" ? new ie(n.pluginKey) : n.pluginKey,
13515
- view: (e) => new xm({ view: e, ...n })
13500
+ view: (e) => new km({ view: e, ...n })
13516
13501
  });
13517
13502
  ge.create({
13518
13503
  name: "floatingMenu",
@@ -13582,7 +13567,7 @@ $t({
13582
13567
  }
13583
13568
  });
13584
13569
  function _o(n) {
13585
- return gc((e, t) => ({
13570
+ return Sc((e, t) => ({
13586
13571
  get() {
13587
13572
  return e(), n;
13588
13573
  },
@@ -13595,7 +13580,7 @@ function _o(n) {
13595
13580
  }
13596
13581
  }));
13597
13582
  }
13598
- class Cm extends ym {
13583
+ class Sm extends mm {
13599
13584
  constructor(e = {}) {
13600
13585
  return super(e), this.vueRenderers = ll(/* @__PURE__ */ new Map()), this.contentComponent = null, this.reactiveState = _o(this.view.state), this.reactiveExtensionStorage = _o(this.extensionStorage), this.on("transaction", () => {
13601
13586
  this.reactiveState.value = this.view.state, this.reactiveExtensionStorage.value = this.extensionStorage;
@@ -13620,7 +13605,7 @@ class Cm extends ym {
13620
13605
  super.unregisterPlugin(e), this.reactiveState.value = this.view.state;
13621
13606
  }
13622
13607
  }
13623
- const Em = $t({
13608
+ const xm = $t({
13624
13609
  name: "EditorContent",
13625
13610
  props: {
13626
13611
  editor: {
@@ -13629,13 +13614,13 @@ const Em = $t({
13629
13614
  }
13630
13615
  },
13631
13616
  setup(n) {
13632
- const e = Mr(), t = hc();
13633
- return fc(() => {
13617
+ const e = Mr(), t = gc();
13618
+ return yc(() => {
13634
13619
  const r = n.editor;
13635
- r && r.options.element && e.value && pc(() => {
13620
+ r && r.options.element && e.value && bc(() => {
13636
13621
  if (!e.value || !r.options.element.firstChild)
13637
13622
  return;
13638
- const i = mc(e.value);
13623
+ const i = kc(e.value);
13639
13624
  e.value.append(...r.options.element.childNodes), r.contentComponent = t.ctx._, r.setOptions({
13640
13625
  element: i
13641
13626
  }), r.createNodeViews();
@@ -13807,7 +13792,7 @@ const za = {
13807
13792
  required: !0
13808
13793
  }
13809
13794
  };
13810
- class Tm extends bm {
13795
+ class Cm extends gm {
13811
13796
  mount() {
13812
13797
  const e = {
13813
13798
  editor: this.editor,
@@ -13826,7 +13811,7 @@ class Tm extends bm {
13826
13811
  template: this.component.template,
13827
13812
  setup: (i) => {
13828
13813
  var s, o;
13829
- return Ts("onDragStart", t), Ts("decorationClasses", this.decorationClasses), (o = (s = this.component).setup) === null || o === void 0 ? void 0 : o.call(s, i, {
13814
+ return Ms("onDragStart", t), Ms("decorationClasses", this.decorationClasses), (o = (s = this.component).setup) === null || o === void 0 ? void 0 : o.call(s, i, {
13830
13815
  expose: () => {
13831
13816
  }
13832
13817
  });
@@ -13894,9 +13879,9 @@ class Tm extends bm {
13894
13879
  }
13895
13880
  }
13896
13881
  function Ha(n, e) {
13897
- return (t) => t.editor.contentComponent ? new Tm(n, t, e) : {};
13882
+ return (t) => t.editor.contentComponent ? new Cm(n, t, e) : {};
13898
13883
  }
13899
- const Mm = /^\s*>\s$/, wm = ne.create({
13884
+ const Em = /^\s*>\s$/, Tm = ne.create({
13900
13885
  name: "blockquote",
13901
13886
  addOptions() {
13902
13887
  return {
@@ -13929,12 +13914,12 @@ const Mm = /^\s*>\s$/, wm = ne.create({
13929
13914
  addInputRules() {
13930
13915
  return [
13931
13916
  gn({
13932
- find: Mm,
13917
+ find: Em,
13933
13918
  type: this.type
13934
13919
  })
13935
13920
  ];
13936
13921
  }
13937
- }), Om = /^```([a-z]+)?[\s\n]$/, vm = /^~~~([a-z]+)?[\s\n]$/, Am = ne.create({
13922
+ }), Mm = /^```([a-z]+)?[\s\n]$/, wm = /^~~~([a-z]+)?[\s\n]$/, Om = ne.create({
13938
13923
  name: "codeBlock",
13939
13924
  addOptions() {
13940
13925
  return {
@@ -14024,14 +14009,14 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14024
14009
  addInputRules() {
14025
14010
  return [
14026
14011
  Lo({
14027
- find: Om,
14012
+ find: Mm,
14028
14013
  type: this.type,
14029
14014
  getAttributes: (n) => ({
14030
14015
  language: n[1]
14031
14016
  })
14032
14017
  }),
14033
14018
  Lo({
14034
- find: vm,
14019
+ find: wm,
14035
14020
  type: this.type,
14036
14021
  getAttributes: (n) => ({
14037
14022
  language: n[1]
@@ -14060,11 +14045,11 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14060
14045
  })
14061
14046
  ];
14062
14047
  }
14063
- }), Nm = ne.create({
14048
+ }), vm = ne.create({
14064
14049
  name: "doc",
14065
14050
  topNode: !0,
14066
14051
  content: "block+"
14067
- }), Dm = ne.create({
14052
+ }), Am = ne.create({
14068
14053
  name: "hardBreak",
14069
14054
  addOptions() {
14070
14055
  return {
@@ -14113,7 +14098,7 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14113
14098
  "Shift-Enter": () => this.editor.commands.setHardBreak()
14114
14099
  };
14115
14100
  }
14116
- }), Im = ne.create({
14101
+ }), Nm = ne.create({
14117
14102
  name: "paragraph",
14118
14103
  priority: 1e3,
14119
14104
  addOptions() {
@@ -14141,7 +14126,7 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14141
14126
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
14142
14127
  };
14143
14128
  }
14144
- }), Rm = ge.create({
14129
+ }), Dm = ge.create({
14145
14130
  name: "placeholder",
14146
14131
  addOptions() {
14147
14132
  return {
@@ -14186,7 +14171,7 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14186
14171
  })
14187
14172
  ];
14188
14173
  }
14189
- }), Pm = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/, Lm = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g, Bm = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/, _m = /(?:^|\s)((?:__)((?:[^__]+))(?:__))/g, Fm = xe.create({
14174
+ }), Im = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/, Rm = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g, Pm = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/, Lm = /(?:^|\s)((?:__)((?:[^__]+))(?:__))/g, Bm = xe.create({
14190
14175
  name: "bold",
14191
14176
  addOptions() {
14192
14177
  return {
@@ -14227,11 +14212,11 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14227
14212
  addInputRules() {
14228
14213
  return [
14229
14214
  mn({
14230
- find: Pm,
14215
+ find: Im,
14231
14216
  type: this.type
14232
14217
  }),
14233
14218
  mn({
14234
- find: Bm,
14219
+ find: Pm,
14235
14220
  type: this.type
14236
14221
  })
14237
14222
  ];
@@ -14239,16 +14224,16 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14239
14224
  addPasteRules() {
14240
14225
  return [
14241
14226
  Ht({
14242
- find: Lm,
14227
+ find: Rm,
14243
14228
  type: this.type
14244
14229
  }),
14245
14230
  Ht({
14246
- find: _m,
14231
+ find: Lm,
14247
14232
  type: this.type
14248
14233
  })
14249
14234
  ];
14250
14235
  }
14251
- }), zm = ne.create({
14236
+ }), _m = ne.create({
14252
14237
  name: "listItem",
14253
14238
  addOptions() {
14254
14239
  return {
@@ -14302,7 +14287,7 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14302
14287
  }
14303
14288
  };
14304
14289
  }
14305
- }), zo = /^\s*([-+*])\s$/, Hm = ne.create({
14290
+ }), zo = /^\s*([-+*])\s$/, Fm = ne.create({
14306
14291
  name: "bulletList",
14307
14292
  addOptions() {
14308
14293
  return {
@@ -14326,7 +14311,7 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14326
14311
  },
14327
14312
  addCommands() {
14328
14313
  return {
14329
- toggleBulletList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(zm.name, this.editor.getAttributes(Fo.name)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
14314
+ toggleBulletList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(_m.name, this.editor.getAttributes(Fo.name)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
14330
14315
  };
14331
14316
  },
14332
14317
  addKeyboardShortcuts() {
@@ -14350,7 +14335,7 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14350
14335
  n
14351
14336
  ];
14352
14337
  }
14353
- }), Vm = /(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/, $m = /(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g, jm = /(?:^|\s)((?:_)((?:[^_]+))(?:_))$/, qm = /(?:^|\s)((?:_)((?:[^_]+))(?:_))/g, Km = xe.create({
14338
+ }), zm = /(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/, Hm = /(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g, Vm = /(?:^|\s)((?:_)((?:[^_]+))(?:_))$/, $m = /(?:^|\s)((?:_)((?:[^_]+))(?:_))/g, jm = xe.create({
14354
14339
  name: "italic",
14355
14340
  addOptions() {
14356
14341
  return {
@@ -14390,11 +14375,11 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14390
14375
  addInputRules() {
14391
14376
  return [
14392
14377
  mn({
14393
- find: Vm,
14378
+ find: zm,
14394
14379
  type: this.type
14395
14380
  }),
14396
14381
  mn({
14397
- find: jm,
14382
+ find: Vm,
14398
14383
  type: this.type
14399
14384
  })
14400
14385
  ];
@@ -14402,31 +14387,31 @@ const Mm = /^\s*>\s$/, wm = ne.create({
14402
14387
  addPasteRules() {
14403
14388
  return [
14404
14389
  Ht({
14405
- find: $m,
14390
+ find: Hm,
14406
14391
  type: this.type
14407
14392
  }),
14408
14393
  Ht({
14409
- find: qm,
14394
+ find: $m,
14410
14395
  type: this.type
14411
14396
  })
14412
14397
  ];
14413
14398
  }
14414
- }), Wm = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Um = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Vt = (n, e) => {
14399
+ }), qm = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Km = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Vt = (n, e) => {
14415
14400
  for (const t in e)
14416
14401
  n[t] = e[t];
14417
14402
  return n;
14418
- }, Bi = "numeric", _i = "ascii", Fi = "alpha", Dn = "asciinumeric", Mn = "alphanumeric", zi = "domain", Va = "emoji", Jm = "scheme", Gm = "slashscheme", Ho = "whitespace";
14419
- function Ym(n, e) {
14403
+ }, Bi = "numeric", _i = "ascii", Fi = "alpha", Dn = "asciinumeric", Mn = "alphanumeric", zi = "domain", Va = "emoji", Wm = "scheme", Um = "slashscheme", Ho = "whitespace";
14404
+ function Jm(n, e) {
14420
14405
  return n in e || (e[n] = []), e[n];
14421
14406
  }
14422
14407
  function dt(n, e, t) {
14423
14408
  e[Bi] && (e[Dn] = !0, e[Mn] = !0), e[_i] && (e[Dn] = !0, e[Fi] = !0), e[Dn] && (e[Mn] = !0), e[Fi] && (e[Mn] = !0), e[Mn] && (e[zi] = !0), e[Va] && (e[zi] = !0);
14424
14409
  for (const r in e) {
14425
- const i = Ym(r, t);
14410
+ const i = Jm(r, t);
14426
14411
  i.indexOf(n) < 0 && i.push(n);
14427
14412
  }
14428
14413
  }
14429
- function Xm(n, e) {
14414
+ function Gm(n, e) {
14430
14415
  const t = {};
14431
14416
  for (const r in e)
14432
14417
  e[r].indexOf(n) >= 0 && (t[r] = !0);
@@ -14548,7 +14533,7 @@ ue.prototype = {
14548
14533
  if (l ? (o = new ue(), Vt(o.j, l.j), o.jr.push.apply(o.jr, l.jr), o.jd = l.jd, o.t = l.t) : o = new ue(), s) {
14549
14534
  if (r)
14550
14535
  if (o.t && typeof o.t == "string") {
14551
- const a = Vt(Xm(o.t, r), t);
14536
+ const a = Vt(Gm(o.t, r), t);
14552
14537
  dt(s, a, r);
14553
14538
  } else
14554
14539
  t && dt(s, t, r);
@@ -14614,14 +14599,14 @@ var qa = /* @__PURE__ */ Object.freeze({
14614
14599
  SYM: xr
14615
14600
  });
14616
14601
  const wt = /[a-z]/, hi = new RegExp("\\p{L}", "u"), fi = new RegExp("\\p{Emoji}", "u"), pi = /\d/, $o = /\s/, jo = `
14617
- `, Qm = "️", Zm = "‍";
14602
+ `, Ym = "️", Xm = "‍";
14618
14603
  let wn = null, On = null;
14619
- function eg(n) {
14604
+ function Qm(n) {
14620
14605
  n === void 0 && (n = []);
14621
14606
  const e = {};
14622
14607
  ue.groups = e;
14623
14608
  const t = new ue();
14624
- wn == null && (wn = qo(Wm)), On == null && (On = qo(Um)), k(t, "'", ar), k(t, "{", rn), k(t, "}", sn), k(t, "[", Un), k(t, "]", Jn), k(t, "(", Gn), k(t, ")", Yn), k(t, "<", Xn), k(t, ">", Qn), k(t, "(", Zn), k(t, ")", er), k(t, "「", tr), k(t, "」", nr), k(t, "『", rr), k(t, "』", ir), k(t, "<", sr), k(t, ">", or), k(t, "&", lr), k(t, "*", cr), k(t, "@", We), k(t, "`", ur), k(t, "^", hr), k(t, ":", Je), k(t, ",", ys), k(t, "$", fr), k(t, ".", we), k(t, "=", pr), k(t, "!", bs), k(t, "-", Oe), k(t, "%", mr), k(t, "|", gr), k(t, "+", yr), k(t, "#", br), k(t, "?", kr), k(t, '"', ks), k(t, "/", ve), k(t, ";", Ss), k(t, "~", on), k(t, "_", Sr), k(t, "\\", dr);
14609
+ wn == null && (wn = qo(qm)), On == null && (On = qo(Km)), k(t, "'", ar), k(t, "{", rn), k(t, "}", sn), k(t, "[", Un), k(t, "]", Jn), k(t, "(", Gn), k(t, ")", Yn), k(t, "<", Xn), k(t, ">", Qn), k(t, "(", Zn), k(t, ")", er), k(t, "「", tr), k(t, "」", nr), k(t, "『", rr), k(t, "』", ir), k(t, "<", sr), k(t, ">", or), k(t, "&", lr), k(t, "*", cr), k(t, "@", We), k(t, "`", ur), k(t, "^", hr), k(t, ":", Je), k(t, ",", ys), k(t, "$", fr), k(t, ".", we), k(t, "=", pr), k(t, "!", bs), k(t, "-", Oe), k(t, "%", mr), k(t, "|", gr), k(t, "+", yr), k(t, "#", br), k(t, "?", kr), k(t, '"', ks), k(t, "/", ve), k(t, ";", Ss), k(t, "~", on), k(t, "_", Sr), k(t, "\\", dr);
14625
14610
  const r = ye(t, pi, ms, {
14626
14611
  [Bi]: !0
14627
14612
  });
@@ -14643,8 +14628,8 @@ function eg(n) {
14643
14628
  const l = ye(t, fi, ja, {
14644
14629
  [Va]: !0
14645
14630
  });
14646
- ye(l, fi, l), k(l, Qm, l);
14647
- const a = k(l, Zm);
14631
+ ye(l, fi, l), k(l, Ym, l);
14632
+ const a = k(l, Xm);
14648
14633
  ye(a, fi, l);
14649
14634
  const c = [[wt, i]], d = [[wt, null], [hi, s]];
14650
14635
  for (let u = 0; u < wn.length; u++)
@@ -14666,9 +14651,9 @@ function eg(n) {
14666
14651
  }, e), n = n.sort((u, h) => u[0] > h[0] ? 1 : -1);
14667
14652
  for (let u = 0; u < n.length; u++) {
14668
14653
  const h = n[u][0], p = n[u][1] ? {
14669
- [Jm]: !0
14654
+ [Wm]: !0
14670
14655
  } : {
14671
- [Gm]: !0
14656
+ [Um]: !0
14672
14657
  };
14673
14658
  h.indexOf("-") >= 0 ? p[zi] = !0 : wt.test(h) ? pi.test(h) ? p[Dn] = !0 : p[_i] = !0 : p[Bi] = !0, Vo(t, h, h, p);
14674
14659
  }
@@ -14681,8 +14666,8 @@ function eg(n) {
14681
14666
  }, qa)
14682
14667
  };
14683
14668
  }
14684
- function tg(n, e) {
14685
- const t = ng(e.replace(/[A-Z]/g, (l) => l.toLowerCase())), r = t.length, i = [];
14669
+ function Zm(n, e) {
14670
+ const t = eg(e.replace(/[A-Z]/g, (l) => l.toLowerCase())), r = t.length, i = [];
14686
14671
  let s = 0, o = 0;
14687
14672
  for (; o < r; ) {
14688
14673
  let l = n, a = null, c = 0, d = null, u = -1, h = -1;
@@ -14701,7 +14686,7 @@ function tg(n, e) {
14701
14686
  }
14702
14687
  return i;
14703
14688
  }
14704
- function ng(n) {
14689
+ function eg(n) {
14705
14690
  const e = [], t = n.length;
14706
14691
  let r = 0;
14707
14692
  for (; r < t; ) {
@@ -14948,7 +14933,7 @@ const Wo = Vr("email", {
14948
14933
  toHref() {
14949
14934
  return "mailto:" + this.toString();
14950
14935
  }
14951
- }), Uo = Vr("text"), rg = Vr("nl"), vn = Vr("url", {
14936
+ }), Uo = Vr("text"), tg = Vr("nl"), vn = Vr("url", {
14952
14937
  isLink: !0,
14953
14938
  /**
14954
14939
  Lowercases relevant parts of the domain and adds the protocol if
@@ -14969,7 +14954,7 @@ const Wo = Vr("email", {
14969
14954
  return n.length >= 2 && n[0].t !== yn && n[1].t === Je;
14970
14955
  }
14971
14956
  }), be = (n) => new ue(n);
14972
- function ig(n) {
14957
+ function ng(n) {
14973
14958
  let {
14974
14959
  groups: e
14975
14960
  } = n;
@@ -15027,12 +15012,12 @@ function ig(n) {
15027
15012
  const $e = be();
15028
15013
  v(Ve, r), v(fe, t, fe), v(fe, r, $e), v($e, t, fe), v($e, r, $e), k(fe, He, E), k($e, He, E);
15029
15014
  }
15030
- return k(s, yn, T), k(s, gs, rg), {
15015
+ return k(s, yn, T), k(s, gs, tg), {
15031
15016
  start: s,
15032
15017
  tokens: qa
15033
15018
  };
15034
15019
  }
15035
- function sg(n, e, t) {
15020
+ function rg(n, e, t) {
15036
15021
  let r = t.length, i = 0, s = [], o = [];
15037
15022
  for (; i < r; ) {
15038
15023
  let l = n, a = null, c = null, d = 0, u = null, h = -1;
@@ -15054,8 +15039,8 @@ function mi(n, e, t) {
15054
15039
  const r = t[0].s, i = t[t.length - 1].e, s = e.slice(r, i);
15055
15040
  return new n(s, t);
15056
15041
  }
15057
- const og = typeof console < "u" && console && console.warn || (() => {
15058
- }), lg = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", _ = {
15042
+ const ig = typeof console < "u" && console && console.warn || (() => {
15043
+ }), sg = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", _ = {
15059
15044
  scanner: null,
15060
15045
  parser: null,
15061
15046
  tokenQueue: [],
@@ -15063,24 +15048,24 @@ const og = typeof console < "u" && console && console.warn || (() => {
15063
15048
  customSchemes: [],
15064
15049
  initialized: !1
15065
15050
  };
15066
- function ag() {
15051
+ function og() {
15067
15052
  ue.groups = {}, _.scanner = null, _.parser = null, _.tokenQueue = [], _.pluginQueue = [], _.customSchemes = [], _.initialized = !1;
15068
15053
  }
15069
15054
  function Jo(n, e) {
15070
- if (e === void 0 && (e = !1), _.initialized && og(`linkifyjs: already initialized - will not register custom scheme "${n}" ${lg}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
15055
+ if (e === void 0 && (e = !1), _.initialized && ig(`linkifyjs: already initialized - will not register custom scheme "${n}" ${sg}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
15071
15056
  throw new Error(`linkifyjs: incorrect scheme format.
15072
15057
  1. Must only contain digits, lowercase ASCII letters or "-"
15073
15058
  2. Cannot start or end with "-"
15074
15059
  3. "-" cannot repeat`);
15075
15060
  _.customSchemes.push([n, e]);
15076
15061
  }
15077
- function cg() {
15078
- _.scanner = eg(_.customSchemes);
15062
+ function lg() {
15063
+ _.scanner = Qm(_.customSchemes);
15079
15064
  for (let n = 0; n < _.tokenQueue.length; n++)
15080
15065
  _.tokenQueue[n][1]({
15081
15066
  scanner: _.scanner
15082
15067
  });
15083
- _.parser = ig(_.scanner.tokens);
15068
+ _.parser = ng(_.scanner.tokens);
15084
15069
  for (let n = 0; n < _.pluginQueue.length; n++)
15085
15070
  _.pluginQueue[n][1]({
15086
15071
  scanner: _.scanner,
@@ -15088,8 +15073,8 @@ function cg() {
15088
15073
  });
15089
15074
  _.initialized = !0;
15090
15075
  }
15091
- function dg(n) {
15092
- return _.initialized || cg(), sg(_.parser.start, n, tg(_.scanner.start, n));
15076
+ function ag(n) {
15077
+ return _.initialized || lg(), rg(_.parser.start, n, Zm(_.scanner.start, n));
15093
15078
  }
15094
15079
  function Cs(n, e, t) {
15095
15080
  if (e === void 0 && (e = null), t === void 0 && (t = null), e && typeof e == "object") {
@@ -15097,14 +15082,14 @@ function Cs(n, e, t) {
15097
15082
  throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);
15098
15083
  t = e, e = null;
15099
15084
  }
15100
- const r = new xs(t), i = dg(n), s = [];
15085
+ const r = new xs(t), i = ag(n), s = [];
15101
15086
  for (let o = 0; o < i.length; o++) {
15102
15087
  const l = i[o];
15103
15088
  l.isLink && (!e || l.t === e) && r.check(l) && s.push(l.toFormattedObject(r));
15104
15089
  }
15105
15090
  return s;
15106
15091
  }
15107
- function ug(n) {
15092
+ function cg(n) {
15108
15093
  return new Q({
15109
15094
  key: new ie("autolink"),
15110
15095
  appendTransaction: (e, t, r) => {
@@ -15137,7 +15122,7 @@ function ug(n) {
15137
15122
  }
15138
15123
  });
15139
15124
  }
15140
- function hg(n) {
15125
+ function dg(n) {
15141
15126
  return new Q({
15142
15127
  key: new ie("handleClickLink"),
15143
15128
  props: {
@@ -15151,7 +15136,7 @@ function hg(n) {
15151
15136
  }
15152
15137
  });
15153
15138
  }
15154
- function fg(n) {
15139
+ function ug(n) {
15155
15140
  return new Q({
15156
15141
  key: new ie("handlePasteLink"),
15157
15142
  props: {
@@ -15171,7 +15156,7 @@ function fg(n) {
15171
15156
  }
15172
15157
  });
15173
15158
  }
15174
- const pg = xe.create({
15159
+ const hg = xe.create({
15175
15160
  name: "link",
15176
15161
  priority: 1e3,
15177
15162
  keepOnSplit: !1,
@@ -15185,7 +15170,7 @@ const pg = xe.create({
15185
15170
  });
15186
15171
  },
15187
15172
  onDestroy() {
15188
- ag();
15173
+ og();
15189
15174
  },
15190
15175
  inclusive() {
15191
15176
  return this.options.autolink;
@@ -15276,17 +15261,17 @@ const pg = xe.create({
15276
15261
  },
15277
15262
  addProseMirrorPlugins() {
15278
15263
  const n = [];
15279
- return this.options.autolink && n.push(ug({
15264
+ return this.options.autolink && n.push(cg({
15280
15265
  type: this.type,
15281
15266
  validate: this.options.validate
15282
- })), this.options.openOnClick && n.push(hg({
15267
+ })), this.options.openOnClick && n.push(dg({
15283
15268
  type: this.type
15284
- })), this.options.linkOnPaste && n.push(fg({
15269
+ })), this.options.linkOnPaste && n.push(ug({
15285
15270
  editor: this.editor,
15286
15271
  type: this.type
15287
15272
  })), n;
15288
15273
  }
15289
- }), mg = ne.create({
15274
+ }), fg = ne.create({
15290
15275
  name: "listItem",
15291
15276
  addOptions() {
15292
15277
  return {
@@ -15314,7 +15299,7 @@ const pg = xe.create({
15314
15299
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
15315
15300
  };
15316
15301
  }
15317
- }), gg = ne.create({
15302
+ }), pg = ne.create({
15318
15303
  name: "listItem",
15319
15304
  addOptions() {
15320
15305
  return {
@@ -15368,7 +15353,7 @@ const pg = xe.create({
15368
15353
  }
15369
15354
  };
15370
15355
  }
15371
- }), Yo = /^(\d+)\.\s$/, yg = ne.create({
15356
+ }), Yo = /^(\d+)\.\s$/, mg = ne.create({
15372
15357
  name: "orderedList",
15373
15358
  addOptions() {
15374
15359
  return {
@@ -15403,7 +15388,7 @@ const pg = xe.create({
15403
15388
  },
15404
15389
  addCommands() {
15405
15390
  return {
15406
- toggleOrderedList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(gg.name, this.editor.getAttributes(Go.name)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
15391
+ toggleOrderedList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(pg.name, this.editor.getAttributes(Go.name)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
15407
15392
  };
15408
15393
  },
15409
15394
  addKeyboardShortcuts() {
@@ -15430,7 +15415,7 @@ const pg = xe.create({
15430
15415
  n
15431
15416
  ];
15432
15417
  }
15433
- }), bg = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/, kg = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g, Sg = xe.create({
15418
+ }), gg = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/, yg = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g, bg = xe.create({
15434
15419
  name: "strike",
15435
15420
  addOptions() {
15436
15421
  return {
@@ -15472,7 +15457,7 @@ const pg = xe.create({
15472
15457
  addInputRules() {
15473
15458
  return [
15474
15459
  mn({
15475
- find: bg,
15460
+ find: gg,
15476
15461
  type: this.type
15477
15462
  })
15478
15463
  ];
@@ -15480,12 +15465,12 @@ const pg = xe.create({
15480
15465
  addPasteRules() {
15481
15466
  return [
15482
15467
  Ht({
15483
- find: kg,
15468
+ find: yg,
15484
15469
  type: this.type
15485
15470
  })
15486
15471
  ];
15487
15472
  }
15488
- }), xg = xe.create({
15473
+ }), kg = xe.create({
15489
15474
  name: "underline",
15490
15475
  addOptions() {
15491
15476
  return {
@@ -15520,10 +15505,10 @@ const pg = xe.create({
15520
15505
  "Mod-U": () => this.editor.commands.toggleUnderline()
15521
15506
  };
15522
15507
  }
15523
- }), Cg = ne.create({
15508
+ }), Sg = ne.create({
15524
15509
  name: "text",
15525
15510
  group: "inline"
15526
- }), Eg = ge.create({
15511
+ }), xg = ge.create({
15527
15512
  name: "textAlign",
15528
15513
  addOptions() {
15529
15514
  return {
@@ -15560,7 +15545,7 @@ const pg = xe.create({
15560
15545
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
15561
15546
  };
15562
15547
  }
15563
- }), Tg = {
15548
+ }), Cg = {
15564
15549
  name: "EmojiComponent",
15565
15550
  components: {
15566
15551
  NodeViewWrapper: Fa,
@@ -15568,7 +15553,7 @@ const pg = xe.create({
15568
15553
  },
15569
15554
  props: za
15570
15555
  };
15571
- function Mg(n, e, t, r, i, s) {
15556
+ function Eg(n, e, t, r, i, s) {
15572
15557
  const o = $("dt-emoji"), l = $("node-view-wrapper");
15573
15558
  return O(), z(l, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
15574
15559
  default: q(() => [
@@ -15580,10 +15565,10 @@ function Mg(n, e, t, r, i, s) {
15580
15565
  _: 1
15581
15566
  });
15582
15567
  }
15583
- const wg = /* @__PURE__ */ de(Tg, [["render", Mg]]);
15584
- function Og(n) {
15568
+ const Tg = /* @__PURE__ */ de(Cg, [["render", Eg]]);
15569
+ function Mg(n) {
15585
15570
  var e;
15586
- const { char: t, allowSpaces: r, allowedPrefixes: i, startOfLine: s, $position: o } = n, l = km(t), a = new RegExp(`\\s${l}$`), c = s ? "^" : "", d = r ? new RegExp(`${c}${l}.*?(?=\\s${l}|$)`, "gm") : new RegExp(`${c}(?:^)?${l}[^\\s${l}]*`, "gm"), u = ((e = o.nodeBefore) === null || e === void 0 ? void 0 : e.isText) && o.nodeBefore.text;
15571
+ const { char: t, allowSpaces: r, allowedPrefixes: i, startOfLine: s, $position: o } = n, l = ym(t), a = new RegExp(`\\s${l}$`), c = s ? "^" : "", d = r ? new RegExp(`${c}${l}.*?(?=\\s${l}|$)`, "gm") : new RegExp(`${c}(?:^)?${l}[^\\s${l}]*`, "gm"), u = ((e = o.nodeBefore) === null || e === void 0 ? void 0 : e.isText) && o.nodeBefore.text;
15587
15572
  if (!u)
15588
15573
  return null;
15589
15574
  const h = o.pos - u.length, f = Array.from(u.matchAll(d)).pop();
@@ -15603,8 +15588,8 @@ function Og(n) {
15603
15588
  text: f[0]
15604
15589
  } : null;
15605
15590
  }
15606
- const vg = new ie("suggestion");
15607
- function Wa({ pluginKey: n = vg, editor: e, char: t = "@", allowSpaces: r = !1, allowedPrefixes: i = [" "], startOfLine: s = !1, decorationTag: o = "span", decorationClass: l = "suggestion", command: a = () => null, items: c = () => [], render: d = () => ({}), allow: u = () => !0 }) {
15591
+ const wg = new ie("suggestion");
15592
+ function Wa({ pluginKey: n = wg, editor: e, char: t = "@", allowSpaces: r = !1, allowedPrefixes: i = [" "], startOfLine: s = !1, decorationTag: o = "span", decorationClass: l = "suggestion", command: a = () => null, items: c = () => [], render: d = () => ({}), allow: u = () => !0 }) {
15608
15593
  let h;
15609
15594
  const f = d == null ? void 0 : d(), p = new Q({
15610
15595
  key: n,
@@ -15667,7 +15652,7 @@ function Wa({ pluginKey: n = vg, editor: e, char: t = "@", allowSpaces: r = !1,
15667
15652
  const { isEditable: T } = e, { composing: R } = e.view, { selection: P } = m, { empty: E, from: L } = P, I = { ...g };
15668
15653
  if (I.composing = R, T && (E || e.view.composing)) {
15669
15654
  (L < g.range.from || L > g.range.to) && !R && !g.composing && (I.active = !1);
15670
- const M = Og({
15655
+ const M = Mg({
15671
15656
  char: t,
15672
15657
  allowSpaces: r,
15673
15658
  allowedPrefixes: i,
@@ -15702,10 +15687,10 @@ function Wa({ pluginKey: n = vg, editor: e, char: t = "@", allowSpaces: r = !1,
15702
15687
  });
15703
15688
  return p;
15704
15689
  }
15705
- const Ag = {
15690
+ const Og = {
15706
15691
  name: "SuggestionList",
15707
15692
  components: {
15708
- DtListItem: ld
15693
+ DtListItem: ud
15709
15694
  },
15710
15695
  props: {
15711
15696
  items: {
@@ -15767,15 +15752,15 @@ const Ag = {
15767
15752
  }
15768
15753
  }
15769
15754
  }
15770
- }, Ng = { class: "d-popover__dialog" }, Dg = {
15755
+ }, vg = { class: "d-popover__dialog" }, Ag = {
15771
15756
  ref: "suggestionList",
15772
15757
  class: "dt-suggestion-list"
15773
15758
  };
15774
- function Ig(n, e, t, r, i, s) {
15759
+ function Ng(n, e, t, r, i, s) {
15775
15760
  const o = $("dt-list-item");
15776
- return O(), j("div", Ng, [
15777
- yc(ht("ul", Dg, [
15778
- (O(!0), j(bc, null, il(t.items, (l, a) => (O(), z(o, {
15761
+ return O(), j("div", vg, [
15762
+ xc(ht("ul", Ag, [
15763
+ (O(!0), j(Cc, null, il(t.items, (l, a) => (O(), z(o, {
15779
15764
  key: l.id,
15780
15765
  class: X([
15781
15766
  "dt-suggestion-list--item",
@@ -15791,11 +15776,11 @@ function Ig(n, e, t, r, i, s) {
15791
15776
  _: 2
15792
15777
  }, 1032, ["class", "onClick", "onKeydown"]))), 128))
15793
15778
  ], 512), [
15794
- [kc, t.items.length]
15779
+ [Ec, t.items.length]
15795
15780
  ])
15796
15781
  ]);
15797
15782
  }
15798
- const Ua = /* @__PURE__ */ de(Ag, [["render", Ig]]), Rg = {
15783
+ const Ua = /* @__PURE__ */ de(Og, [["render", Ng]]), Dg = {
15799
15784
  name: "EmojiSuggestion",
15800
15785
  components: {
15801
15786
  DtEmoji: tl,
@@ -15808,7 +15793,7 @@ const Ua = /* @__PURE__ */ de(Ag, [["render", Ig]]), Rg = {
15808
15793
  }
15809
15794
  }
15810
15795
  };
15811
- function Pg(n, e, t, r, i, s) {
15796
+ function Ig(n, e, t, r, i, s) {
15812
15797
  const o = $("dt-emoji"), l = $("dt-stack");
15813
15798
  return O(), z(l, {
15814
15799
  direction: "row",
@@ -15824,8 +15809,8 @@ function Pg(n, e, t, r, i, s) {
15824
15809
  _: 1
15825
15810
  });
15826
15811
  }
15827
- const Lg = /* @__PURE__ */ de(Rg, [["render", Pg]]), Bg = {
15828
- items: ({ query: n }) => n.length < 2 ? [] : Object.values(cc).filter(function(r) {
15812
+ const Rg = /* @__PURE__ */ de(Dg, [["render", Ig]]), Pg = {
15813
+ items: ({ query: n }) => n.length < 2 ? [] : Object.values(fc).filter(function(r) {
15829
15814
  return !!r.shortname.substring(1, r.shortname.length - 1).startsWith(n.toLowerCase());
15830
15815
  }).map((r) => ({ id: r.unicode_character, code: r.shortname })),
15831
15816
  command: ({ editor: n, range: e, props: t }) => {
@@ -15848,7 +15833,7 @@ const Lg = /* @__PURE__ */ de(Rg, [["render", Pg]]), Bg = {
15848
15833
  onStart: (t) => {
15849
15834
  n = new ps(Ua, {
15850
15835
  props: {
15851
- itemComponent: wr(Lg),
15836
+ itemComponent: wr(Rg),
15852
15837
  itemType: "emoji",
15853
15838
  ...t
15854
15839
  },
@@ -15879,24 +15864,24 @@ const Lg = /* @__PURE__ */ de(Rg, [["render", Pg]]), Bg = {
15879
15864
  }
15880
15865
  };
15881
15866
  }
15882
- }, _g = new ie("emoji"), Fg = /:\w+:$/, zg = /:\w+:/g, Hg = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])$/, Vg = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g, Xo = (n) => {
15867
+ }, Lg = new ie("emoji"), Bg = /:\w+:$/, _g = /:\w+:/g, Fg = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])$/, zg = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g, Xo = (n) => {
15883
15868
  if (n && nl(n[0]))
15884
15869
  return {
15885
15870
  index: n.index,
15886
15871
  text: n[0],
15887
15872
  match: n
15888
15873
  };
15889
- }, $g = (n) => [...n.matchAll(zg)].filter((t) => nl(t[0])).map((t) => ({
15874
+ }, Hg = (n) => [...n.matchAll(_g)].filter((t) => nl(t[0])).map((t) => ({
15890
15875
  index: t.index,
15891
15876
  text: t[0],
15892
15877
  match: t
15893
- })), jg = ne.create({
15878
+ })), Vg = ne.create({
15894
15879
  addOptions() {
15895
15880
  return {
15896
15881
  HTMLAttributes: {},
15897
15882
  suggestion: {
15898
15883
  char: ":",
15899
- pluginKey: _g
15884
+ pluginKey: Lg
15900
15885
  }
15901
15886
  };
15902
15887
  },
@@ -15905,7 +15890,7 @@ const Lg = /* @__PURE__ */ de(Rg, [["render", Pg]]), Bg = {
15905
15890
  inline: !0,
15906
15891
  selectable: !0,
15907
15892
  addNodeView() {
15908
- return Ha(wg);
15893
+ return Ha(Tg);
15909
15894
  },
15910
15895
  addAttributes() {
15911
15896
  return {
@@ -15935,7 +15920,7 @@ const Lg = /* @__PURE__ */ de(Rg, [["render", Pg]]), Bg = {
15935
15920
  // shortcode input
15936
15921
  Po({
15937
15922
  find: (n) => {
15938
- const e = n.match(Fg);
15923
+ const e = n.match(Bg);
15939
15924
  return Xo(e);
15940
15925
  },
15941
15926
  type: this.type,
@@ -15947,12 +15932,12 @@ const Lg = /* @__PURE__ */ de(Rg, [["render", Pg]]), Bg = {
15947
15932
  }),
15948
15933
  Po({
15949
15934
  find: (n) => {
15950
- const e = n.match(Hg);
15935
+ const e = n.match(Fg);
15951
15936
  return Xo(e);
15952
15937
  },
15953
15938
  type: this.type,
15954
15939
  getAttributes(n) {
15955
- const e = dc(n[0]).unicode_output;
15940
+ const e = pc(n[0]).unicode_output;
15956
15941
  return {
15957
15942
  code: String.fromCodePoint(parseInt(e, 16)),
15958
15943
  label: "emoji"
@@ -15964,7 +15949,7 @@ const Lg = /* @__PURE__ */ de(Rg, [["render", Pg]]), Bg = {
15964
15949
  addPasteRules() {
15965
15950
  return [
15966
15951
  Bo({
15967
- find: $g,
15952
+ find: Hg,
15968
15953
  type: this.type,
15969
15954
  getAttributes(n) {
15970
15955
  return {
@@ -15973,7 +15958,7 @@ const Lg = /* @__PURE__ */ de(Rg, [["render", Pg]]), Bg = {
15973
15958
  }
15974
15959
  }),
15975
15960
  Bo({
15976
- find: Vg,
15961
+ find: zg,
15977
15962
  type: this.type,
15978
15963
  getAttributes(n) {
15979
15964
  return {
@@ -15988,12 +15973,12 @@ const Lg = /* @__PURE__ */ de(Rg, [["render", Pg]]), Bg = {
15988
15973
  Wa({
15989
15974
  editor: this.editor,
15990
15975
  ...this.options.suggestion,
15991
- ...Bg
15976
+ ...Pg
15992
15977
  })
15993
15978
  ];
15994
15979
  }
15995
15980
  });
15996
- function qg(n, e, t = () => !0) {
15981
+ function $g(n, e, t = () => !0) {
15997
15982
  const r = [];
15998
15983
  e.lastIndex = 0;
15999
15984
  let i;
@@ -16001,10 +15986,10 @@ function qg(n, e, t = () => !0) {
16001
15986
  t(n, i) && r.push(i);
16002
15987
  return r;
16003
15988
  }
16004
- function Kg(n, e) {
15989
+ function jg(n, e) {
16005
15990
  return !["#", "@"].includes(n.charAt(e.index)) && !["#", "@"].includes(n.charAt(e.index - 1));
16006
15991
  }
16007
- function Wg(n) {
15992
+ function qg(n) {
16008
15993
  const e = new RegExp(
16009
15994
  "(?:" + [
16010
15995
  `[!?.,:;'"]`,
@@ -16014,7 +15999,7 @@ function Wg(n) {
16014
15999
  );
16015
16000
  return n.replace(e, "");
16016
16001
  }
16017
- function Ug(n, e) {
16002
+ function Kg(n, e) {
16018
16003
  const t = n.slice(0, e + 1).search(/\S+\s*$/), r = n.slice(e).search(/\s/);
16019
16004
  if (r < 0) {
16020
16005
  const i = n.slice(t);
@@ -16031,18 +16016,18 @@ function Ug(n, e) {
16031
16016
  };
16032
16017
  }
16033
16018
  function ji(n, e, t, r) {
16034
- const i = Ug(n, e);
16019
+ const i = Kg(n, e);
16035
16020
  if (r.lastIndex = 0, !r.test(i.text))
16036
16021
  return i;
16037
16022
  const s = t === "left" ? i.from - 1 : i.to + 1;
16038
16023
  return s <= 0 || s >= n.length || s === e ? i : ji(n, s, t, r);
16039
16024
  }
16040
- function Jg(n, e, t, r) {
16025
+ function Wg(n, e, t, r) {
16041
16026
  const i = Math.max(n.from - 1, 0), s = Math.min(n.to + 1, e.content.size), o = Hr(i, s, e);
16042
16027
  for (const l of o)
16043
16028
  l.mark.type === r && t.removeMark(l.from, l.to, r);
16044
16029
  }
16045
- const Qo = rc(1, 15);
16030
+ const Qo = lc(1, 15);
16046
16031
  function Zo(n, e, t, r, i, s) {
16047
16032
  if (!n)
16048
16033
  return;
@@ -16059,12 +16044,12 @@ function Zo(n, e, t, r, i, s) {
16059
16044
  "right",
16060
16045
  Qo
16061
16046
  ), d = n.slice(a.from, c.to);
16062
- qg(d, ic, Kg).forEach((h) => {
16063
- const f = Wg(h[0]), p = e + a.from + h.index + 1, m = p + f.length;
16047
+ $g(d, ac, jg).forEach((h) => {
16048
+ const f = qg(h[0]), p = e + a.from + h.index + 1, m = p + f.length;
16064
16049
  i.addMark(p, m, s.create());
16065
16050
  });
16066
16051
  }
16067
- function Gg(n) {
16052
+ function Ug(n) {
16068
16053
  let e = !1;
16069
16054
  return new Q({
16070
16055
  key: new ie("autolink"),
@@ -16079,7 +16064,7 @@ function Gg(n) {
16079
16064
  [...t]
16080
16065
  );
16081
16066
  return Pa(a).forEach(({ oldRange: d, newRange: u }) => {
16082
- Jg(u, i.doc, o, n.type), Ia(
16067
+ Wg(u, i.doc, o, n.type), Ia(
16083
16068
  i.doc,
16084
16069
  u,
16085
16070
  (f) => f.isTextblock
@@ -16097,10 +16082,10 @@ function Gg(n) {
16097
16082
  }
16098
16083
  });
16099
16084
  }
16100
- const Yg = {
16085
+ const Jg = {
16101
16086
  class: "d-link d-c-text d-d-inline-block",
16102
16087
  rel: "noopener noreferrer nofollow"
16103
- }, Xg = xe.create({
16088
+ }, Gg = xe.create({
16104
16089
  name: "Link",
16105
16090
  renderHTML({ HTMLAttributes: n }) {
16106
16091
  return [
@@ -16108,7 +16093,7 @@ const Yg = {
16108
16093
  F(
16109
16094
  this.options.HTMLAttributes,
16110
16095
  n,
16111
- Yg
16096
+ Jg
16112
16097
  ),
16113
16098
  0
16114
16099
  ];
@@ -16118,10 +16103,10 @@ const Yg = {
16118
16103
  },
16119
16104
  addProseMirrorPlugins() {
16120
16105
  return [
16121
- Gg({ type: this.type })
16106
+ Ug({ type: this.type })
16122
16107
  ];
16123
16108
  }
16124
- }), Qg = new ie("mention"), Zg = ne.create({
16109
+ }), Yg = new ie("mention"), Xg = ne.create({
16125
16110
  name: "mention",
16126
16111
  addOptions() {
16127
16112
  return {
@@ -16132,7 +16117,7 @@ const Yg = {
16132
16117
  },
16133
16118
  suggestion: {
16134
16119
  char: "@",
16135
- pluginKey: Qg,
16120
+ pluginKey: Yg,
16136
16121
  command: ({ editor: n, range: e, props: t }) => {
16137
16122
  var r, i;
16138
16123
  const s = n.view.state.selection.$to.nodeAfter;
@@ -16219,11 +16204,11 @@ const Yg = {
16219
16204
  })
16220
16205
  ];
16221
16206
  }
16222
- }), ey = {
16207
+ }), Qg = {
16223
16208
  name: "MentionComponent",
16224
16209
  components: {
16225
16210
  NodeViewWrapper: Fa,
16226
- DtLink: $c
16211
+ DtLink: Wc
16227
16212
  },
16228
16213
  props: za,
16229
16214
  computed: {
@@ -16232,7 +16217,7 @@ const Yg = {
16232
16217
  }
16233
16218
  }
16234
16219
  };
16235
- function ty(n, e, t, r, i, s) {
16220
+ function Zg(n, e, t, r, i, s) {
16236
16221
  const o = $("dt-link"), l = $("node-view-wrapper");
16237
16222
  return O(), z(l, { class: "d-d-inline-block" }, {
16238
16223
  default: q(() => [
@@ -16250,9 +16235,9 @@ function ty(n, e, t, r, i, s) {
16250
16235
  _: 1
16251
16236
  });
16252
16237
  }
16253
- const ny = /* @__PURE__ */ de(ey, [["render", ty]]), ry = Zg.extend({
16238
+ const ey = /* @__PURE__ */ de(Qg, [["render", Zg]]), ty = Xg.extend({
16254
16239
  addNodeView() {
16255
- return Ha(ny);
16240
+ return Ha(ey);
16256
16241
  },
16257
16242
  parseHTML() {
16258
16243
  return [
@@ -16280,25 +16265,25 @@ const ny = /* @__PURE__ */ de(ey, [["render", ty]]), ry = Zg.extend({
16280
16265
  renderHTML({ HTMLAttributes: n }) {
16281
16266
  return ["mention-component", F(this.options.HTMLAttributes, n), 0];
16282
16267
  }
16283
- }), iy = [
16268
+ }), ny = [
16284
16269
  "text",
16285
16270
  "json",
16286
16271
  "html"
16287
- ], sy = [
16272
+ ], ry = [
16288
16273
  "start",
16289
16274
  "end",
16290
16275
  "all"
16291
- ], oy = [
16276
+ ], iy = [
16292
16277
  "https",
16293
16278
  "http",
16294
16279
  "ftp",
16295
16280
  "ftps",
16296
16281
  "sftp",
16297
16282
  "mailto"
16298
- ], ly = {
16283
+ ], sy = {
16299
16284
  name: "MentionSuggestion",
16300
16285
  components: {
16301
- DtAvatar: Fc,
16286
+ DtAvatar: $c,
16302
16287
  DtStack: dl
16303
16288
  },
16304
16289
  props: {
@@ -16316,7 +16301,7 @@ const ny = /* @__PURE__ */ de(ey, [["render", ty]]), ry = Zg.extend({
16316
16301
  }
16317
16302
  }
16318
16303
  };
16319
- function ay(n, e, t, r, i, s) {
16304
+ function oy(n, e, t, r, i, s) {
16320
16305
  const o = $("dt-avatar"), l = $("dt-stack");
16321
16306
  return O(), z(l, {
16322
16307
  direction: "row",
@@ -16326,6 +16311,7 @@ function ay(n, e, t, r, i, s) {
16326
16311
  nt(o, {
16327
16312
  "full-name": s.name,
16328
16313
  "image-src": s.avatarSrc,
16314
+ "image-alt": "",
16329
16315
  size: "xs"
16330
16316
  }, null, 8, ["full-name", "image-src"]),
16331
16317
  Wi(" " + ut(s.name), 1)
@@ -16333,7 +16319,7 @@ function ay(n, e, t, r, i, s) {
16333
16319
  _: 1
16334
16320
  });
16335
16321
  }
16336
- const cy = /* @__PURE__ */ de(ly, [["render", ay]]), dy = {
16322
+ const ly = /* @__PURE__ */ de(sy, [["render", oy]]), ay = {
16337
16323
  // This function comes from the user and passed to the editor directly.
16338
16324
  // This will also activate the mention plugin on the editor
16339
16325
  // items: ({ query }) => { return [] },
@@ -16343,7 +16329,7 @@ const cy = /* @__PURE__ */ de(ly, [["render", ay]]), dy = {
16343
16329
  onStart: (t) => {
16344
16330
  n = new ps(Ua, {
16345
16331
  props: {
16346
- itemComponent: wr(cy),
16332
+ itemComponent: wr(ly),
16347
16333
  itemType: "mention",
16348
16334
  ...t
16349
16335
  },
@@ -16372,10 +16358,10 @@ const cy = /* @__PURE__ */ de(ly, [["render", ay]]), dy = {
16372
16358
  }
16373
16359
  };
16374
16360
  }
16375
- }, uy = {
16361
+ }, cy = {
16376
16362
  name: "DtRichTextEditor",
16377
16363
  components: {
16378
- EditorContent: Em
16364
+ EditorContent: xm
16379
16365
  },
16380
16366
  props: {
16381
16367
  /**
@@ -16431,7 +16417,7 @@ const cy = /* @__PURE__ */ de(ly, [["render", ay]]), dy = {
16431
16417
  type: [Boolean, String, Number],
16432
16418
  default: !1,
16433
16419
  validator(n) {
16434
- return typeof n == "string" ? sy.includes(n) : !0;
16420
+ return typeof n == "string" ? ry.includes(n) : !0;
16435
16421
  }
16436
16422
  },
16437
16423
  /**
@@ -16444,7 +16430,7 @@ const cy = /* @__PURE__ */ de(ly, [["render", ay]]), dy = {
16444
16430
  type: String,
16445
16431
  default: "text",
16446
16432
  validator(n) {
16447
- return iy.includes(n);
16433
+ return ny.includes(n);
16448
16434
  }
16449
16435
  },
16450
16436
  /**
@@ -16512,21 +16498,21 @@ const cy = /* @__PURE__ */ de(ly, [["render", ay]]), dy = {
16512
16498
  computed: {
16513
16499
  extensions() {
16514
16500
  const n = [
16515
- wm,
16501
+ Tm,
16502
+ Bm,
16516
16503
  Fm,
16517
- Hm,
16504
+ vm,
16505
+ jm,
16506
+ fg,
16518
16507
  Nm,
16519
- Km,
16520
- mg,
16521
- Im,
16508
+ bg,
16522
16509
  Sg,
16523
- Cg,
16524
- xg
16510
+ kg
16525
16511
  ];
16526
- if (this.link && n.push(this.getExtension(Xg, this.link)), n.push(
16527
- Rm.configure({ placeholder: this.placeholder })
16512
+ if (this.link && n.push(this.getExtension(Gg, this.link)), n.push(
16513
+ Dm.configure({ placeholder: this.placeholder })
16528
16514
  ), this.allowLineBreaks || n.push(
16529
- Dm.extend({
16515
+ Am.extend({
16530
16516
  addKeyboardShortcuts() {
16531
16517
  return {
16532
16518
  Enter: () => !0,
@@ -16539,21 +16525,21 @@ const cy = /* @__PURE__ */ de(ly, [["render", ay]]), dy = {
16539
16525
  };
16540
16526
  }
16541
16527
  })
16542
- ), n.push(pg.extend({ inclusive: !1 }).configure({
16528
+ ), n.push(hg.extend({ inclusive: !1 }).configure({
16543
16529
  autolink: !0,
16544
- protocols: oy
16530
+ protocols: iy
16545
16531
  })), this.mentionSuggestion) {
16546
- const e = { ...this.mentionSuggestion, ...dy };
16547
- n.push(ry.configure({ suggestion: e }));
16532
+ const e = { ...this.mentionSuggestion, ...ay };
16533
+ n.push(ty.configure({ suggestion: e }));
16548
16534
  }
16549
- return n.push(jg), n.push(Eg.configure({
16535
+ return n.push(Vg), n.push(xg.configure({
16550
16536
  types: ["paragraph"],
16551
16537
  defaultAlignment: "left"
16552
- })), n.push(Am.configure({
16538
+ })), n.push(Om.configure({
16553
16539
  HTMLAttributes: {
16554
16540
  class: "dt-rich-text-editor--code-block"
16555
16541
  }
16556
- })), n.push(yg.configure({
16542
+ })), n.push(mg.configure({
16557
16543
  itemTypeName: "listItem"
16558
16544
  })), n;
16559
16545
  },
@@ -16597,7 +16583,7 @@ const cy = /* @__PURE__ */ de(ly, [["render", ay]]), dy = {
16597
16583
  },
16598
16584
  methods: {
16599
16585
  createEditor() {
16600
- this.editor = new Cm({
16586
+ this.editor = new Sm({
16601
16587
  autofocus: this.autoFocus,
16602
16588
  content: this.modelValue,
16603
16589
  editable: this.editable,
@@ -16650,7 +16636,7 @@ const cy = /* @__PURE__ */ de(ly, [["render", ay]]), dy = {
16650
16636
  }
16651
16637
  }
16652
16638
  };
16653
- function hy(n, e, t, r, i, s) {
16639
+ function dy(n, e, t, r, i, s) {
16654
16640
  const o = $("editor-content");
16655
16641
  return O(), z(o, {
16656
16642
  editor: i.editor,
@@ -16658,41 +16644,33 @@ function hy(n, e, t, r, i, s) {
16658
16644
  class: "dt-rich-text-editor"
16659
16645
  }, null, 8, ["editor"]);
16660
16646
  }
16661
- const ky = /* @__PURE__ */ de(uy, [["render", hy]]);
16647
+ const gy = /* @__PURE__ */ de(cy, [["render", dy]]);
16662
16648
  export {
16663
16649
  jr as A,
16664
- St as B,
16665
- cl as C,
16666
- yy as D,
16650
+ py as D,
16667
16651
  xn as L,
16668
- Gc as M,
16669
- hd as P,
16670
- sy as R,
16671
- Wc as S,
16672
- ky as a,
16673
- iy as b,
16674
- jc as c,
16675
- $c as d,
16676
- ld as e,
16652
+ Zc as M,
16653
+ Ut as P,
16654
+ ry as R,
16655
+ Yc as S,
16656
+ gy as a,
16657
+ ny as b,
16658
+ Uc as c,
16659
+ Wc as d,
16660
+ ud as e,
16677
16661
  Ui as f,
16678
- vs as g,
16679
- dl as h,
16680
- dd as i,
16681
- Fc as j,
16682
- Os as k,
16683
- wc as l,
16684
- Oc as m,
16685
- Ms as n,
16686
- vc as o,
16687
- Ac as p,
16688
- ws as q,
16689
- qr as r,
16690
- ad as s,
16691
- cd as t,
16692
- ud as u,
16693
- fd as v,
16694
- gy as w,
16695
- Mc as x,
16696
- Ut as y,
16697
- Sc as z
16662
+ dl as g,
16663
+ $c as h,
16664
+ vs as i,
16665
+ Nc as j,
16666
+ Dc as k,
16667
+ ws as l,
16668
+ Ic as m,
16669
+ Rc as n,
16670
+ Os as o,
16671
+ qr as p,
16672
+ Ac as q,
16673
+ Tc as r,
16674
+ St as s,
16675
+ cl as t
16698
16676
  };