@tempots/beatui 0.87.2 → 0.87.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/{ar-DjMvIww5.js → ar-Dn7AkNO5.js} +1 -1
  2. package/dist/auth/index.cjs.js +1 -1
  3. package/dist/auth/index.es.js +1 -1
  4. package/dist/{auth-divider-BIefTDoO.js → auth-divider-BZPM2Xd3.js} +101 -103
  5. package/dist/{auth-divider-V_Se6Qhe.cjs → auth-divider-Cj-xJxF_.cjs} +1 -1
  6. package/dist/beatui.css +23 -0
  7. package/dist/beatui.tailwind.css +23 -0
  8. package/dist/better-auth/index.cjs.js +1 -1
  9. package/dist/better-auth/index.es.js +12 -12
  10. package/dist/{colors-BmLYKmoH.js → colors-CatA-RXf.js} +9 -9
  11. package/dist/{de-wChFYqM4.js → de-QYhBiWv7.js} +1 -1
  12. package/dist/deep-merge-BmxkFFi1.cjs +1 -0
  13. package/dist/{deep-merge-BRqRzEQs.js → deep-merge-D076XcC5.js} +152 -156
  14. package/dist/{duration-input-BDEb1Bb7.js → duration-input-6RN16H08.js} +5 -5
  15. package/dist/{duration-input-BtFL5Vjx.cjs → duration-input-CJU-yeKk.cjs} +1 -1
  16. package/dist/{editor-toolbar-group-CwCCGzEC.js → editor-toolbar-group-DRCbXeQP.js} +6 -3
  17. package/dist/{es-CmPF3IGl.js → es-Ba31pZAd.js} +1 -1
  18. package/dist/{fa-D696e75R.js → fa-DvLjl_Ha.js} +1 -1
  19. package/dist/{fr-B0jeX1Hx.js → fr-D64yBpAp.js} +1 -1
  20. package/dist/{he-SgAsIYJA.js → he-DHZGEQ7C.js} +1 -1
  21. package/dist/{hi-s9oiIihq.js → hi-CeAXVCvp.js} +1 -1
  22. package/dist/{index-CaWDj1Vg.cjs → index-BIGCKfNz.cjs} +10 -10
  23. package/dist/{index-DdqGL9Jk.js → index-BTITknMc.js} +701 -684
  24. package/dist/{index-qa82MK4Z.cjs → index-Bso_SkEn.cjs} +1 -1
  25. package/dist/{index-B0t-nt7i.js → index-DWDC-qRY.js} +4 -4
  26. package/dist/{index-D2_J_-XS.js → index-rHnH2IGb.js} +77 -77
  27. package/dist/index.cjs.js +2 -2
  28. package/dist/index.es.js +1015 -1018
  29. package/dist/{index.esm-ChUrm4xR.js → index.esm-By0m3ki1.js} +3 -3
  30. package/dist/{input-container-DhUiLmXE.js → input-container-BTyCOubf.js} +1 -1
  31. package/dist/{it-Dc4IMciD.js → it-Im0KgKWL.js} +1 -1
  32. package/dist/{ja-D2t2g5xj.js → ja-lliCbC19.js} +1 -1
  33. package/dist/json-schema/index.cjs.js +1 -1
  34. package/dist/json-schema/index.es.js +97 -103
  35. package/dist/json-schema-display/index.cjs.js +1 -1
  36. package/dist/json-schema-display/index.es.js +15 -15
  37. package/dist/json-structure/index.cjs.js +1 -1
  38. package/dist/json-structure/index.es.js +349 -351
  39. package/dist/{ko-BRylA5JZ.js → ko-B9W4RBBs.js} +1 -1
  40. package/dist/lexical/index.cjs.js +5 -12
  41. package/dist/lexical/index.es.js +54 -84
  42. package/dist/{menu-Ui4lUPHM.js → menu-CV85y3Xf.js} +1 -1
  43. package/dist/{modal-Dkje8L_l.js → modal-CD3DwAlD.js} +5 -5
  44. package/dist/{modal-Coenk8Fy.cjs → modal-jJMS0ZlW.cjs} +1 -1
  45. package/dist/monaco/index.es.js +1 -1
  46. package/dist/{nl-Dh7LUWAn.js → nl-ba5SyHsw.js} +1 -1
  47. package/dist/notice-9lpZ-VDn.cjs +1 -0
  48. package/dist/{notice-BmkckDsD.js → notice-Cc26kgiB.js} +26 -28
  49. package/dist/{oneof-branch-detection-Vov_e3kI.cjs → oneof-branch-detection-BsGhMslW.cjs} +6 -6
  50. package/dist/{oneof-branch-detection-BED_n2MT.js → oneof-branch-detection-DiAtgGQH.js} +1740 -1734
  51. package/dist/{pl-XEG-p1Q9.js → pl-DCiJAZWC.js} +1 -1
  52. package/dist/prosemirror/index.cjs.js +1 -1
  53. package/dist/prosemirror/index.es.js +1 -1
  54. package/dist/{pt-DYsDA2sZ.js → pt-Df5bAGWA.js} +1 -1
  55. package/dist/{ru-BTKBykp-.js → ru-Dg-c670Y.js} +1 -1
  56. package/dist/stack-4VUGISn6.cjs +1 -0
  57. package/dist/{stack-BJgsPJ9A.js → stack-Bm-UZosx.js} +145 -139
  58. package/dist/tailwind/preset.es.js +2 -2
  59. package/dist/tailwind/vite-plugin.es.js +1 -1
  60. package/dist/{text-input-BZmAB3_o.js → text-input-Cux5iiUC.js} +5 -5
  61. package/dist/{theme-BzpMLdvH.js → theme-kQZEeusG.js} +4 -4
  62. package/dist/{toolbar-Pdj-F80l.js → toolbar-DYmKrtic.js} +1 -1
  63. package/dist/{tr-Cp8ZCUic.js → tr-Dhpiq0u_.js} +1 -1
  64. package/dist/{translations-BGblCUBj.js → translations-BLlzvZgw.js} +30 -30
  65. package/dist/{translations-jUYta1_1.js → translations-COSDzhvR.js} +1 -1
  66. package/dist/types/auth-i18n/translations.d.ts +2 -2
  67. package/dist/types/beatui-i18n/translations.d.ts +2 -2
  68. package/dist/types/better-auth/components/authenticated.d.ts +2 -2
  69. package/dist/types/better-auth/components/better-auth-container.d.ts +1 -1
  70. package/dist/types/better-auth/i18n/translations.d.ts +2 -2
  71. package/dist/types/better-auth/provider.d.ts +2 -2
  72. package/dist/types/components/auth/auth-container.d.ts +1 -1
  73. package/dist/types/components/auth/auth-email-prop.d.ts +1 -1
  74. package/dist/types/components/beatui.d.ts +1 -1
  75. package/dist/types/components/button/button.d.ts +1 -1
  76. package/dist/types/components/content/native-pdf-preview.d.ts +1 -1
  77. package/dist/types/components/content/pdfjs-preview.d.ts +1 -1
  78. package/dist/types/components/data/icon.d.ts +1 -1
  79. package/dist/types/components/data/page-drop-zone.d.ts +1 -1
  80. package/dist/types/components/data/unstyled-drop-zone.d.ts +1 -1
  81. package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +1 -1
  82. package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +1 -1
  83. package/dist/types/components/form/control/control.d.ts +2 -2
  84. package/dist/types/components/form/control/ensure-control.d.ts +1 -1
  85. package/dist/types/components/form/control/list-control.d.ts +1 -1
  86. package/dist/types/components/form/controller/color-controller.d.ts +4 -4
  87. package/dist/types/components/form/input/appearance-selector.d.ts +2 -2
  88. package/dist/types/components/form/input/base64-input.d.ts +1 -1
  89. package/dist/types/components/form/input/base64s-input.d.ts +1 -1
  90. package/dist/types/components/form/input/combobox-tags-input.d.ts +1 -1
  91. package/dist/types/components/form/input/email-input.d.ts +1 -1
  92. package/dist/types/components/form/input/file-input.d.ts +1 -1
  93. package/dist/types/components/form/input/files-input.d.ts +1 -1
  94. package/dist/types/components/form/input/input-options.d.ts +1 -1
  95. package/dist/types/components/form/input/list-input.d.ts +1 -1
  96. package/dist/types/components/form/input/nullable-base64-input.d.ts +1 -1
  97. package/dist/types/components/form/input/nullable-plain-date-input.d.ts +12 -12
  98. package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +12 -12
  99. package/dist/types/components/form/input/nullable-plain-time-input.d.ts +12 -12
  100. package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +12 -12
  101. package/dist/types/components/form/input/password-input.d.ts +1 -1
  102. package/dist/types/components/form/input/plain-date-input.d.ts +12 -12
  103. package/dist/types/components/form/input/plain-date-time-input.d.ts +12 -12
  104. package/dist/types/components/form/input/plain-time-input.d.ts +12 -12
  105. package/dist/types/components/form/input/plain-year-month-input.d.ts +12 -12
  106. package/dist/types/components/form/input/select-tags-input.d.ts +3 -3
  107. package/dist/types/components/form/use-form.d.ts +3 -3
  108. package/dist/types/components/i18n/locale-direction.d.ts +1 -1
  109. package/dist/types/components/i18n/locale-selector.d.ts +1 -1
  110. package/dist/types/components/i18n/locale.d.ts +1 -1
  111. package/dist/types/components/i18n/make-i18nprovider.d.ts +2 -2
  112. package/dist/types/components/layout/app-shell.d.ts +1 -1
  113. package/dist/types/components/lexical/code/language-selector.d.ts +1 -1
  114. package/dist/types/components/lexical/floating/block-handle.d.ts +1 -1
  115. package/dist/types/components/lexical/floating/floating-toolbar.d.ts +1 -1
  116. package/dist/types/components/lexical/floating/slash-command-palette.d.ts +1 -1
  117. package/dist/types/components/lexical/table/table-controls.d.ts +1 -1
  118. package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +1 -1
  119. package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +2 -2
  120. package/dist/types/components/media/pdf-page-viewer.d.ts +1 -1
  121. package/dist/types/components/misc/notification-provider.d.ts +2 -2
  122. package/dist/types/components/navigation/link/button-link.d.ts +1 -1
  123. package/dist/types/components/navigation/link/link.d.ts +1 -1
  124. package/dist/types/components/navigation/link/navigation-link.d.ts +1 -1
  125. package/dist/types/components/navigation/pagination.d.ts +1 -1
  126. package/dist/types/components/navigation/sidebar/sidebar.d.ts +2 -2
  127. package/dist/types/components/navigation/toolbar/toolbar.d.ts +1 -1
  128. package/dist/types/components/prosemirror/link-control.d.ts +1 -1
  129. package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +1 -1
  130. package/dist/types/components/prosemirror/utils.d.ts +2 -2
  131. package/dist/types/components/theme/theme.d.ts +2 -2
  132. package/dist/types/i18n/translate.d.ts +1 -1
  133. package/dist/types/utils/delay-signal.d.ts +1 -1
  134. package/dist/types/utils/use-animated-toggle.d.ts +22 -22
  135. package/dist/{ur-DkIYJxsF.js → ur-Lr1p8f9y.js} +1 -1
  136. package/dist/{use-animated-toggle-89fKlXxy.js → use-animated-toggle-C7PTmnZi.js} +7 -7
  137. package/dist/{use-form-BSvvERhX.js → use-form-BfzX3bwL.js} +13 -13
  138. package/dist/{use-form-B_mCauP0.cjs → use-form-i97PToWB.cjs} +1 -1
  139. package/dist/{vi-DKw6PBja.js → vi-jozfaxSj.js} +1 -1
  140. package/dist/widget-customization-BZqPoojo.cjs +1 -0
  141. package/dist/{widget-customization-DFr3ycD7.js → widget-customization-fMNSVtuP.js} +29 -29
  142. package/dist/{zh-CaKHseXJ.js → zh-BBYKq49d.js} +1 -1
  143. package/package.json +35 -31
  144. package/dist/deep-merge-CvN7Xvd1.cjs +0 -1
  145. package/dist/notice-DMK7dx9a.cjs +0 -1
  146. package/dist/stack-DcZ_u50f.cjs +0 -1
  147. package/dist/widget-customization-BASfRpF7.cjs +0 -1
@@ -1,16 +1,16 @@
1
- import { prop as Bi, Fragment as zi, OnDispose as pr, Ensure as mr, signal as gr, Use as vi, When as Pi, Repeat as Vo, Value as U, computedOf as lu, html as au, Task as $o, attr as st, WithElement as Wo } from "@tempots/dom";
2
- import { a as Ho, T as Jo, b as jo } from "./toolbar-Pdj-F80l.js";
3
- import { E as he, a as Xt } from "./editor-toolbar-group-CwCCGzEC.js";
4
- import { T as Uo } from "./text-input-BZmAB3_o.js";
5
- import { B as Ko } from "./translations-BGblCUBj.js";
1
+ import { prop as Bi, Fragment as qo, OnDispose as pr, Ensure as mr, signal as gr, Use as zi, When as vi, Repeat as Vo, Value as U, computedOf as lu, html as au, Task as $o, attr as st, WithElement as Wo } from "@tempots/dom";
2
+ import { a as Ho, T as Jo, b as jo } from "./toolbar-DYmKrtic.js";
3
+ import { E as he, a as Xt } from "./editor-toolbar-group-DRCbXeQP.js";
4
+ import { T as Uo } from "./text-input-Cux5iiUC.js";
5
+ import { B as Ko } from "./translations-BLlzvZgw.js";
6
6
  import { L as Zo } from "./link-portal-Cr2l9f3k.js";
7
7
  import { ticker as Go } from "@tempots/ui";
8
- import { T as Yo } from "./theme-BzpMLdvH.js";
9
- function q(t) {
8
+ import { T as Yo } from "./theme-kQZEeusG.js";
9
+ function L(t) {
10
10
  this.content = t;
11
11
  }
12
- q.prototype = {
13
- constructor: q,
12
+ L.prototype = {
13
+ constructor: L,
14
14
  find: function(t) {
15
15
  for (var e = 0; e < this.content.length; e += 2)
16
16
  if (this.content[e] === t) return e;
@@ -29,7 +29,7 @@ q.prototype = {
29
29
  // given, the key of the binding will be replaced with that key.
30
30
  update: function(t, e, n) {
31
31
  var r = n && n != t ? this.remove(n) : this, u = r.find(t), i = r.content.slice();
32
- return u == -1 ? i.push(n || t, e) : (i[u + 1] = e, n && (i[u] = n)), new q(i);
32
+ return u == -1 ? i.push(n || t, e) : (i[u + 1] = e, n && (i[u] = n)), new L(i);
33
33
  },
34
34
  // :: (string) → OrderedMap
35
35
  // Return a map with the given key removed, if it existed.
@@ -37,25 +37,25 @@ q.prototype = {
37
37
  var e = this.find(t);
38
38
  if (e == -1) return this;
39
39
  var n = this.content.slice();
40
- return n.splice(e, 2), new q(n);
40
+ return n.splice(e, 2), new L(n);
41
41
  },
42
42
  // :: (string, any) → OrderedMap
43
43
  // Add a new key to the start of the map.
44
44
  addToStart: function(t, e) {
45
- return new q([t, e].concat(this.remove(t).content));
45
+ return new L([t, e].concat(this.remove(t).content));
46
46
  },
47
47
  // :: (string, any) → OrderedMap
48
48
  // Add a new key to the end of the map.
49
49
  addToEnd: function(t, e) {
50
50
  var n = this.remove(t).content.slice();
51
- return n.push(t, e), new q(n);
51
+ return n.push(t, e), new L(n);
52
52
  },
53
53
  // :: (string, string, any) → OrderedMap
54
54
  // Add a key after the given key. If `place` is not found, the new
55
55
  // key is added to the end.
56
56
  addBefore: function(t, e, n) {
57
57
  var r = this.remove(e), u = r.content.slice(), i = r.find(t);
58
- return u.splice(i == -1 ? u.length : i, 0, e, n), new q(u);
58
+ return u.splice(i == -1 ? u.length : i, 0, e, n), new L(u);
59
59
  },
60
60
  // :: ((key: string, value: any))
61
61
  // Call the given function for each key/value pair in the map, in
@@ -68,20 +68,20 @@ q.prototype = {
68
68
  // Create a new map by prepending the keys in this map that don't
69
69
  // appear in `map` before the keys in `map`.
70
70
  prepend: function(t) {
71
- return t = q.from(t), t.size ? new q(t.content.concat(this.subtract(t).content)) : this;
71
+ return t = L.from(t), t.size ? new L(t.content.concat(this.subtract(t).content)) : this;
72
72
  },
73
73
  // :: (union<Object, OrderedMap>) → OrderedMap
74
74
  // Create a new map by appending the keys in this map that don't
75
75
  // appear in `map` after the keys in `map`.
76
76
  append: function(t) {
77
- return t = q.from(t), t.size ? new q(this.subtract(t).content.concat(t.content)) : this;
77
+ return t = L.from(t), t.size ? new L(this.subtract(t).content.concat(t.content)) : this;
78
78
  },
79
79
  // :: (union<Object, OrderedMap>) → OrderedMap
80
80
  // Create a map containing all the keys in this map that don't
81
81
  // appear in `map`.
82
82
  subtract: function(t) {
83
83
  var e = this;
84
- t = q.from(t);
84
+ t = L.from(t);
85
85
  for (var n = 0; n < t.content.length; n += 2)
86
86
  e = e.remove(t.content[n]);
87
87
  return e;
@@ -100,13 +100,13 @@ q.prototype = {
100
100
  return this.content.length >> 1;
101
101
  }
102
102
  };
103
- q.from = function(t) {
104
- if (t instanceof q) return t;
103
+ L.from = function(t) {
104
+ if (t instanceof L) return t;
105
105
  var e = [];
106
106
  if (t) for (var n in t) e.push(n, t[n]);
107
- return new q(e);
107
+ return new L(e);
108
108
  };
109
- function Li(t, e, n) {
109
+ function Pi(t, e, n) {
110
110
  for (let r = 0; ; r++) {
111
111
  if (r == t.childCount || r == e.childCount)
112
112
  return t.childCount == e.childCount ? null : n;
@@ -123,14 +123,14 @@ function Li(t, e, n) {
123
123
  return n;
124
124
  }
125
125
  if (u.content.size || i.content.size) {
126
- let s = Li(u.content, i.content, n + 1);
126
+ let s = Pi(u.content, i.content, n + 1);
127
127
  if (s != null)
128
128
  return s;
129
129
  }
130
130
  n += u.nodeSize;
131
131
  }
132
132
  }
133
- function qi(t, e, n, r) {
133
+ function Li(t, e, n, r) {
134
134
  for (let u = t.childCount, i = e.childCount; ; ) {
135
135
  if (u == 0 || i == 0)
136
136
  return u == i ? null : { a: n, b: r };
@@ -148,7 +148,7 @@ function qi(t, e, n, r) {
148
148
  return { a: n, b: r };
149
149
  }
150
150
  if (s.content.size || o.content.size) {
151
- let a = qi(s.content, o.content, n - 1, r - 1);
151
+ let a = Li(s.content, o.content, n - 1, r - 1);
152
152
  if (a)
153
153
  return a;
154
154
  }
@@ -317,7 +317,7 @@ class x {
317
317
  fragment differ, or `null` if they are the same.
318
318
  */
319
319
  findDiffStart(e, n = 0) {
320
- return Li(this, e, n);
320
+ return Pi(this, e, n);
321
321
  }
322
322
  /**
323
323
  Find the first position, searching from the end, at which this
@@ -326,7 +326,7 @@ class x {
326
326
  nodes, an object with two separate positions is returned.
327
327
  */
328
328
  findDiffEnd(e, n = this.size, r = e.size) {
329
- return qi(this, e, n, r);
329
+ return Li(this, e, n, r);
330
330
  }
331
331
  /**
332
332
  Find the index and inner offset corresponding to a given relative
@@ -570,14 +570,14 @@ class D {
570
570
  @internal
571
571
  */
572
572
  insertAt(e, n) {
573
- let r = $i(this.content, e + this.openStart, n);
573
+ let r = Vi(this.content, e + this.openStart, n);
574
574
  return r && new D(r, this.openStart, this.openEnd);
575
575
  }
576
576
  /**
577
577
  @internal
578
578
  */
579
579
  removeBetween(e, n) {
580
- return new D(Vi(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd);
580
+ return new D(qi(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd);
581
581
  }
582
582
  /**
583
583
  Tests whether this slice is equal to another slice.
@@ -625,7 +625,7 @@ class D {
625
625
  }
626
626
  }
627
627
  D.empty = new D(x.empty, 0, 0);
628
- function Vi(t, e, n) {
628
+ function qi(t, e, n) {
629
629
  let { index: r, offset: u } = t.findIndex(e), i = t.maybeChild(r), { index: s, offset: o } = t.findIndex(n);
630
630
  if (u == e || i.isText) {
631
631
  if (o != n && !t.child(s).isText)
@@ -634,13 +634,13 @@ function Vi(t, e, n) {
634
634
  }
635
635
  if (r != s)
636
636
  throw new RangeError("Removing non-flat range");
637
- return t.replaceChild(r, i.copy(Vi(i.content, e - u - 1, n - u - 1)));
637
+ return t.replaceChild(r, i.copy(qi(i.content, e - u - 1, n - u - 1)));
638
638
  }
639
- function $i(t, e, n, r) {
639
+ function Vi(t, e, n, r) {
640
640
  let { index: u, offset: i } = t.findIndex(e), s = t.maybeChild(u);
641
641
  if (i == e || s.isText)
642
642
  return r && !r.canReplace(u, u, n) ? null : t.cut(0, e).append(n).append(t.cut(e));
643
- let o = $i(s.content, e - i - 1, n, s);
643
+ let o = Vi(s.content, e - i - 1, n, s);
644
644
  return o && t.replaceChild(u, s.copy(o));
645
645
  }
646
646
  function Xo(t, e, n) {
@@ -648,12 +648,12 @@ function Xo(t, e, n) {
648
648
  throw new dn("Inserted content deeper than insertion position");
649
649
  if (t.depth - n.openStart != e.depth - n.openEnd)
650
650
  throw new dn("Inconsistent open depths");
651
- return Wi(t, e, n, 0);
651
+ return $i(t, e, n, 0);
652
652
  }
653
- function Wi(t, e, n, r) {
653
+ function $i(t, e, n, r) {
654
654
  let u = t.index(r), i = t.node(r);
655
655
  if (u == e.index(r) && r < t.depth - n.openStart) {
656
- let s = Wi(t, e, n, r + 1);
656
+ let s = $i(t, e, n, r + 1);
657
657
  return i.copy(i.content.replaceChild(u, s));
658
658
  } else if (n.content.size)
659
659
  if (!n.openStart && !n.openEnd && t.depth == r && e.depth == r) {
@@ -661,17 +661,17 @@ function Wi(t, e, n, r) {
661
661
  return Ye(s, o.cut(0, t.parentOffset).append(n.content).append(o.cut(e.parentOffset)));
662
662
  } else {
663
663
  let { start: s, end: o } = Qo(n, t);
664
- return Ye(i, Ji(t, s, o, e, r));
664
+ return Ye(i, Hi(t, s, o, e, r));
665
665
  }
666
666
  else return Ye(i, hn(t, e, r));
667
667
  }
668
- function Hi(t, e) {
668
+ function Wi(t, e) {
669
669
  if (!e.type.compatibleContent(t.type))
670
670
  throw new dn("Cannot join " + e.type.name + " onto " + t.type.name);
671
671
  }
672
672
  function br(t, e, n) {
673
673
  let r = t.node(n);
674
- return Hi(r, e.node(n)), r;
674
+ return Wi(r, e.node(n)), r;
675
675
  }
676
676
  function Ge(t, e) {
677
677
  let n = e.length - 1;
@@ -687,9 +687,9 @@ function Tt(t, e, n, r) {
687
687
  function Ye(t, e) {
688
688
  return t.type.checkContent(e), t.copy(e);
689
689
  }
690
- function Ji(t, e, n, r, u) {
690
+ function Hi(t, e, n, r, u) {
691
691
  let i = t.depth > u && br(t, e, u + 1), s = r.depth > u && br(n, r, u + 1), o = [];
692
- return Tt(null, t, u, o), i && s && e.index(u) == n.index(u) ? (Hi(i, s), Ge(Ye(i, Ji(t, e, n, r, u + 1)), o)) : (i && Ge(Ye(i, hn(t, e, u + 1)), o), Tt(e, n, u, o), s && Ge(Ye(s, hn(n, r, u + 1)), o)), Tt(r, null, u, o), new x(o);
692
+ return Tt(null, t, u, o), i && s && e.index(u) == n.index(u) ? (Wi(i, s), Ge(Ye(i, Hi(t, e, n, r, u + 1)), o)) : (i && Ge(Ye(i, hn(t, e, u + 1)), o), Tt(e, n, u, o), s && Ge(Ye(s, hn(n, r, u + 1)), o)), Tt(r, null, u, o), new x(o);
693
693
  }
694
694
  function hn(t, e, n) {
695
695
  let r = [];
@@ -1278,7 +1278,7 @@ class xe {
1278
1278
  if (this.type.spec.toDebugString)
1279
1279
  return this.type.spec.toDebugString(this);
1280
1280
  let e = this.type.name;
1281
- return this.content.size && (e += "(" + this.content.toStringInner() + ")"), ji(this.marks, e);
1281
+ return this.content.size && (e += "(" + this.content.toStringInner() + ")"), Ji(this.marks, e);
1282
1282
  }
1283
1283
  /**
1284
1284
  Get the content match in this node at the given index.
@@ -1382,7 +1382,7 @@ class pn extends xe {
1382
1382
  this.text = r;
1383
1383
  }
1384
1384
  toString() {
1385
- return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : ji(this.marks, JSON.stringify(this.text));
1385
+ return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : Ji(this.marks, JSON.stringify(this.text));
1386
1386
  }
1387
1387
  get textContent() {
1388
1388
  return this.text;
@@ -1410,7 +1410,7 @@ class pn extends xe {
1410
1410
  return e.text = this.text, e;
1411
1411
  }
1412
1412
  }
1413
- function ji(t, e) {
1413
+ function Ji(t, e) {
1414
1414
  for (let n = t.length - 1; n >= 0; n--)
1415
1415
  e = t[n].type.name + "(" + e + ")";
1416
1416
  return e;
@@ -1429,7 +1429,7 @@ class tt {
1429
1429
  let r = new ul(e, n);
1430
1430
  if (r.next == null)
1431
1431
  return tt.empty;
1432
- let u = Ui(r);
1432
+ let u = ji(r);
1433
1433
  r.next && r.err("Unexpected trailing text");
1434
1434
  let i = fl(cl(u));
1435
1435
  return dl(i, r), i;
@@ -1592,7 +1592,7 @@ class ul {
1592
1592
  throw new SyntaxError(e + " (in content expression '" + this.string + "')");
1593
1593
  }
1594
1594
  }
1595
- function Ui(t) {
1595
+ function ji(t) {
1596
1596
  let e = [];
1597
1597
  do
1598
1598
  e.push(il(t));
@@ -1643,7 +1643,7 @@ function ll(t, e) {
1643
1643
  }
1644
1644
  function al(t) {
1645
1645
  if (t.eat("(")) {
1646
- let e = Ui(t);
1646
+ let e = ji(t);
1647
1647
  return t.eat(")") || t.err("Missing closing paren"), e;
1648
1648
  } else if (/\W/.test(t.next))
1649
1649
  t.err("Unexpected token '" + t.next + "'");
@@ -1706,12 +1706,12 @@ function cl(t) {
1706
1706
  }
1707
1707
  }
1708
1708
  }
1709
- function Ki(t, e) {
1709
+ function Ui(t, e) {
1710
1710
  return e - t;
1711
1711
  }
1712
1712
  function du(t, e) {
1713
1713
  let n = [];
1714
- return r(e), n.sort(Ki);
1714
+ return r(e), n.sort(Ui);
1715
1715
  function r(u) {
1716
1716
  let i = t[u];
1717
1717
  if (i.length == 1 && !i[0].term)
@@ -1742,7 +1742,7 @@ function fl(t) {
1742
1742
  });
1743
1743
  let i = e[r.join(",")] = new tt(r.indexOf(t.length - 1) > -1);
1744
1744
  for (let s = 0; s < u.length; s++) {
1745
- let o = u[s][1].sort(Ki);
1745
+ let o = u[s][1].sort(Ui);
1746
1746
  i.next.push({ type: u[s][0], next: e[o.join(",")] || n(o) });
1747
1747
  }
1748
1748
  return i;
@@ -1758,7 +1758,7 @@ function dl(t, e) {
1758
1758
  i && e.err("Only non-generatable nodes (" + s.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
1759
1759
  }
1760
1760
  }
1761
- function Zi(t) {
1761
+ function Ki(t) {
1762
1762
  let e = /* @__PURE__ */ Object.create(null);
1763
1763
  for (let n in t) {
1764
1764
  let r = t[n];
@@ -1768,7 +1768,7 @@ function Zi(t) {
1768
1768
  }
1769
1769
  return e;
1770
1770
  }
1771
- function Gi(t, e) {
1771
+ function Zi(t, e) {
1772
1772
  let n = /* @__PURE__ */ Object.create(null);
1773
1773
  for (let r in t) {
1774
1774
  let u = e && e[r];
@@ -1783,7 +1783,7 @@ function Gi(t, e) {
1783
1783
  }
1784
1784
  return n;
1785
1785
  }
1786
- function Yi(t, e, n, r) {
1786
+ function Gi(t, e, n, r) {
1787
1787
  for (let u in e)
1788
1788
  if (!(u in t))
1789
1789
  throw new RangeError(`Unsupported attribute ${u} for ${n} of type ${u}`);
@@ -1792,19 +1792,19 @@ function Yi(t, e, n, r) {
1792
1792
  i.validate && i.validate(e[u]);
1793
1793
  }
1794
1794
  }
1795
- function Xi(t, e) {
1795
+ function Yi(t, e) {
1796
1796
  let n = /* @__PURE__ */ Object.create(null);
1797
1797
  if (e)
1798
1798
  for (let r in e)
1799
1799
  n[r] = new pl(t, r, e[r]);
1800
1800
  return n;
1801
1801
  }
1802
- let hu = class Qi {
1802
+ let hu = class Xi {
1803
1803
  /**
1804
1804
  @internal
1805
1805
  */
1806
1806
  constructor(e, n, r) {
1807
- this.name = e, this.schema = n, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = Xi(e, r.attrs), this.defaultAttrs = Zi(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text";
1807
+ this.name = e, this.schema = n, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = Yi(e, r.attrs), this.defaultAttrs = Ki(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text";
1808
1808
  }
1809
1809
  /**
1810
1810
  True if this is an inline type.
@@ -1865,7 +1865,7 @@ let hu = class Qi {
1865
1865
  @internal
1866
1866
  */
1867
1867
  computeAttrs(e) {
1868
- return !e && this.defaultAttrs ? this.defaultAttrs : Gi(this.attrs, e);
1868
+ return !e && this.defaultAttrs ? this.defaultAttrs : Zi(this.attrs, e);
1869
1869
  }
1870
1870
  /**
1871
1871
  Create a `Node` of this type. The given attributes are
@@ -1932,7 +1932,7 @@ let hu = class Qi {
1932
1932
  @internal
1933
1933
  */
1934
1934
  checkAttrs(e) {
1935
- Yi(this.attrs, e, "node", this.name);
1935
+ Gi(this.attrs, e, "node", this.name);
1936
1936
  }
1937
1937
  /**
1938
1938
  Check whether the given mark type is allowed in this node.
@@ -1967,7 +1967,7 @@ let hu = class Qi {
1967
1967
  */
1968
1968
  static compile(e, n) {
1969
1969
  let r = /* @__PURE__ */ Object.create(null);
1970
- e.forEach((i, s) => r[i] = new Qi(i, n, s));
1970
+ e.forEach((i, s) => r[i] = new Xi(i, n, s));
1971
1971
  let u = n.spec.topNode || "doc";
1972
1972
  if (!r[u])
1973
1973
  throw new RangeError("Schema is missing its top node type ('" + u + "')");
@@ -1994,13 +1994,13 @@ class pl {
1994
1994
  return !this.hasDefault;
1995
1995
  }
1996
1996
  }
1997
- class En {
1997
+ class Sn {
1998
1998
  /**
1999
1999
  @internal
2000
2000
  */
2001
2001
  constructor(e, n, r, u) {
2002
- this.name = e, this.rank = n, this.schema = r, this.spec = u, this.attrs = Xi(e, u.attrs), this.excluded = null;
2003
- let i = Zi(this.attrs);
2002
+ this.name = e, this.rank = n, this.schema = r, this.spec = u, this.attrs = Yi(e, u.attrs), this.excluded = null;
2003
+ let i = Ki(this.attrs);
2004
2004
  this.instance = i ? new w(this, i) : null;
2005
2005
  }
2006
2006
  /**
@@ -2009,14 +2009,14 @@ class En {
2009
2009
  they have defaults, will be added.
2010
2010
  */
2011
2011
  create(e = null) {
2012
- return !e && this.instance ? this.instance : new w(this, Gi(this.attrs, e));
2012
+ return !e && this.instance ? this.instance : new w(this, Zi(this.attrs, e));
2013
2013
  }
2014
2014
  /**
2015
2015
  @internal
2016
2016
  */
2017
2017
  static compile(e, n) {
2018
2018
  let r = /* @__PURE__ */ Object.create(null), u = 0;
2019
- return e.forEach((i, s) => r[i] = new En(i, u++, n, s)), r;
2019
+ return e.forEach((i, s) => r[i] = new Sn(i, u++, n, s)), r;
2020
2020
  }
2021
2021
  /**
2022
2022
  When there is a mark of this type in the given set, a new set
@@ -2039,7 +2039,7 @@ class En {
2039
2039
  @internal
2040
2040
  */
2041
2041
  checkAttrs(e) {
2042
- Yi(this.attrs, e, "mark", this.name);
2042
+ Gi(this.attrs, e, "mark", this.name);
2043
2043
  }
2044
2044
  /**
2045
2045
  Queries whether a given mark type is
@@ -2058,7 +2058,7 @@ class vr {
2058
2058
  let n = this.spec = {};
2059
2059
  for (let u in e)
2060
2060
  n[u] = e[u];
2061
- n.nodes = q.from(e.nodes), n.marks = q.from(e.marks || {}), this.nodes = hu.compile(this.spec.nodes, this), this.marks = En.compile(this.spec.marks, this);
2061
+ n.nodes = L.from(e.nodes), n.marks = L.from(e.marks || {}), this.nodes = hu.compile(this.spec.nodes, this), this.marks = Sn.compile(this.spec.marks, this);
2062
2062
  let r = /* @__PURE__ */ Object.create(null);
2063
2063
  for (let u in this.nodes) {
2064
2064
  if (u in this.marks)
@@ -2255,7 +2255,7 @@ class Rt {
2255
2255
  return e.cached.domParser || (e.cached.domParser = new Rt(e, Rt.schemaRules(e)));
2256
2256
  }
2257
2257
  }
2258
- const es = {
2258
+ const Qi = {
2259
2259
  address: !0,
2260
2260
  article: !0,
2261
2261
  aside: !0,
@@ -2295,7 +2295,7 @@ const es = {
2295
2295
  script: !0,
2296
2296
  style: !0,
2297
2297
  title: !0
2298
- }, ts = { ol: !0, ul: !0 }, Bt = 1, xr = 2, Ot = 4;
2298
+ }, es = { ol: !0, ul: !0 }, Bt = 1, xr = 2, Ot = 4;
2299
2299
  function mu(t, e, n) {
2300
2300
  return e != null ? (e ? Bt : 0) | (e === "full" ? xr : 0) : t && t.whitespace == "pre" ? Bt | xr : n & ~Ot;
2301
2301
  }
@@ -2329,7 +2329,7 @@ class en {
2329
2329
  return !e && this.match && (n = n.append(this.match.fillBefore(x.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
2330
2330
  }
2331
2331
  inlineContext(e) {
2332
- return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !es.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
2332
+ return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Qi.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
2333
2333
  }
2334
2334
  }
2335
2335
  class gu {
@@ -2375,14 +2375,14 @@ class gu {
2375
2375
  let u = this.localPreserveWS, i = this.top;
2376
2376
  (e.tagName == "PRE" || /pre/.test(e.style && e.style.whiteSpace)) && (this.localPreserveWS = !0);
2377
2377
  let s = e.nodeName.toLowerCase(), o;
2378
- ts.hasOwnProperty(s) && this.parser.normalizeLists && xl(e);
2378
+ es.hasOwnProperty(s) && this.parser.normalizeLists && xl(e);
2379
2379
  let l = this.options.ruleFromNode && this.options.ruleFromNode(e) || (o = this.parser.matchTag(e, this, r));
2380
2380
  e: if (l ? l.ignore : bl.hasOwnProperty(s))
2381
2381
  this.findInside(e), this.ignoreFallback(e, n);
2382
2382
  else if (!l || l.skip || l.closeParent) {
2383
2383
  l && l.closeParent ? this.open = Math.max(0, this.open - 1) : l && l.skip.nodeType && (e = l.skip);
2384
2384
  let a, c = this.needsBlock;
2385
- if (es.hasOwnProperty(s))
2385
+ if (Qi.hasOwnProperty(s))
2386
2386
  i.content.length && i.content[0].isInline && this.open && (this.open--, i = this.top), a = !0, i.type || (this.needsBlock = !0);
2387
2387
  else if (!e.firstChild) {
2388
2388
  this.leafFallback(e, n);
@@ -2617,7 +2617,7 @@ class gu {
2617
2617
  function xl(t) {
2618
2618
  for (let e = t.firstChild, n = null; e; e = e.nextSibling) {
2619
2619
  let r = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
2620
- r && ts.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null);
2620
+ r && es.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null);
2621
2621
  }
2622
2622
  }
2623
2623
  function kl(t, e) {
@@ -2823,17 +2823,17 @@ function un(t, e, n, r) {
2823
2823
  }
2824
2824
  return { dom: l, contentDOM: o };
2825
2825
  }
2826
- const ns = 65535, rs = Math.pow(2, 16);
2826
+ const ts = 65535, ns = Math.pow(2, 16);
2827
2827
  function Dl(t, e) {
2828
- return t + e * rs;
2828
+ return t + e * ns;
2829
2829
  }
2830
2830
  function Cu(t) {
2831
- return t & ns;
2831
+ return t & ts;
2832
2832
  }
2833
2833
  function _l(t) {
2834
- return (t - (t & ns)) / rs;
2834
+ return (t - (t & ts)) / ns;
2835
2835
  }
2836
- const us = 1, is = 2, sn = 4, ss = 8;
2836
+ const rs = 1, us = 2, sn = 4, is = 8;
2837
2837
  class kr {
2838
2838
  /**
2839
2839
  @internal
@@ -2847,19 +2847,19 @@ class kr {
2847
2847
  argument from the document.
2848
2848
  */
2849
2849
  get deleted() {
2850
- return (this.delInfo & ss) > 0;
2850
+ return (this.delInfo & is) > 0;
2851
2851
  }
2852
2852
  /**
2853
2853
  Tells you whether the token before the mapped position was deleted.
2854
2854
  */
2855
2855
  get deletedBefore() {
2856
- return (this.delInfo & (us | sn)) > 0;
2856
+ return (this.delInfo & (rs | sn)) > 0;
2857
2857
  }
2858
2858
  /**
2859
2859
  True when the token after the mapped position was deleted.
2860
2860
  */
2861
2861
  get deletedAfter() {
2862
- return (this.delInfo & (is | sn)) > 0;
2862
+ return (this.delInfo & (us | sn)) > 0;
2863
2863
  }
2864
2864
  /**
2865
2865
  Tells whether any of the steps mapped through deletes across the
@@ -2910,8 +2910,8 @@ class Q {
2910
2910
  let p = a ? e == l ? -1 : e == f ? 1 : n : n, h = l + u + (p < 0 ? 0 : c);
2911
2911
  if (r)
2912
2912
  return h;
2913
- let d = e == (n < 0 ? l : f) ? null : Dl(o / 3, e - l), m = e == l ? is : e == f ? us : sn;
2914
- return (n < 0 ? e != l : e != f) && (m |= ss), new kr(h, m, d);
2913
+ let d = e == (n < 0 ? l : f) ? null : Dl(o / 3, e - l), m = e == l ? us : e == f ? rs : sn;
2914
+ return (n < 0 ? e != l : e != f) && (m |= is), new kr(h, m, d);
2915
2915
  }
2916
2916
  u += c - a;
2917
2917
  }
@@ -3315,7 +3315,7 @@ class nt extends j {
3315
3315
  }
3316
3316
  }
3317
3317
  j.jsonID("removeNodeMark", nt);
3318
- class J extends j {
3318
+ class H extends j {
3319
3319
  /**
3320
3320
  The given `slice` should fit the 'gap' between `from` and
3321
3321
  `to`—the depths must line up, and the surrounding nodes must be
@@ -3335,21 +3335,21 @@ class J extends j {
3335
3335
  return new Q([this.from, this.to - this.from, this.slice.size]);
3336
3336
  }
3337
3337
  invert(e) {
3338
- return new J(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
3338
+ return new H(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
3339
3339
  }
3340
3340
  map(e) {
3341
3341
  let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
3342
- return n.deletedAcross && r.deletedAcross ? null : new J(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
3342
+ return n.deletedAcross && r.deletedAcross ? null : new H(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
3343
3343
  }
3344
3344
  merge(e) {
3345
- if (!(e instanceof J) || e.structure || this.structure)
3345
+ if (!(e instanceof H) || e.structure || this.structure)
3346
3346
  return null;
3347
3347
  if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
3348
3348
  let n = this.slice.size + e.slice.size == 0 ? D.empty : new D(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
3349
- return new J(this.from, this.to + (e.to - e.from), n, this.structure);
3349
+ return new H(this.from, this.to + (e.to - e.from), n, this.structure);
3350
3350
  } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
3351
3351
  let n = this.slice.size + e.slice.size == 0 ? D.empty : new D(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
3352
- return new J(e.from, this.to, n, this.structure);
3352
+ return new H(e.from, this.to, n, this.structure);
3353
3353
  } else
3354
3354
  return null;
3355
3355
  }
@@ -3363,10 +3363,10 @@ class J extends j {
3363
3363
  static fromJSON(e, n) {
3364
3364
  if (typeof n.from != "number" || typeof n.to != "number")
3365
3365
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
3366
- return new J(n.from, n.to, D.fromJSON(e, n.slice), !!n.structure);
3366
+ return new H(n.from, n.to, D.fromJSON(e, n.slice), !!n.structure);
3367
3367
  }
3368
3368
  }
3369
- j.jsonID("replace", J);
3369
+ j.jsonID("replace", H);
3370
3370
  class ee extends j {
3371
3371
  /**
3372
3372
  Create a replace-around step with the given range and gap.
@@ -3439,7 +3439,7 @@ function yr(t, e, n) {
3439
3439
  }
3440
3440
  return !1;
3441
3441
  }
3442
- function Sl(t, e, n, r) {
3442
+ function El(t, e, n, r) {
3443
3443
  let u = [], i = [], s, o;
3444
3444
  t.doc.nodesBetween(e, n, (l, a, c) => {
3445
3445
  if (!l.isInline)
@@ -3453,14 +3453,14 @@ function Sl(t, e, n, r) {
3453
3453
  }
3454
3454
  }), u.forEach((l) => t.step(l)), i.forEach((l) => t.step(l));
3455
3455
  }
3456
- function El(t, e, n, r) {
3456
+ function Sl(t, e, n, r) {
3457
3457
  let u = [], i = 0;
3458
3458
  t.doc.nodesBetween(e, n, (s, o) => {
3459
3459
  if (!s.isInline)
3460
3460
  return;
3461
3461
  i++;
3462
3462
  let l = null;
3463
- if (r instanceof En) {
3463
+ if (r instanceof Sn) {
3464
3464
  let a = s.marks, c;
3465
3465
  for (; c = r.isInSet(a); )
3466
3466
  (l || (l = [])).push(c), a = c.removeFromSet(a);
@@ -3483,7 +3483,7 @@ function Lr(t, e, n, r = n.contentMatch, u = !0) {
3483
3483
  for (let l = 0; l < i.childCount; l++) {
3484
3484
  let a = i.child(l), c = o + a.nodeSize, f = r.matchType(a.type);
3485
3485
  if (!f)
3486
- s.push(new J(o, c, D.empty));
3486
+ s.push(new H(o, c, D.empty));
3487
3487
  else {
3488
3488
  r = f;
3489
3489
  for (let p = 0; p < a.marks.length; p++)
@@ -3491,7 +3491,7 @@ function Lr(t, e, n, r = n.contentMatch, u = !0) {
3491
3491
  if (u && a.isText && n.whitespace != "pre") {
3492
3492
  let p, h = /\r?\n|\r/g, d;
3493
3493
  for (; p = h.exec(a.text); )
3494
- d || (d = new D(x.from(n.schema.text(" ", n.allowedMarks(a.marks))), 0, 0)), s.push(new J(o + p.index, o + p.index + p[0].length, d));
3494
+ d || (d = new D(x.from(n.schema.text(" ", n.allowedMarks(a.marks))), 0, 0)), s.push(new H(o + p.index, o + p.index + p[0].length, d));
3495
3495
  }
3496
3496
  }
3497
3497
  o = c;
@@ -3575,13 +3575,13 @@ function Nl(t, e, n, r, u) {
3575
3575
  let h = r.whitespace == "pre", d = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
3576
3576
  h && !d ? a = !1 : !h && d && (a = !0);
3577
3577
  }
3578
- a === !1 && as(t, s, o, i), Lr(t, t.mapping.slice(i).map(o, 1), r, void 0, a === null);
3578
+ a === !1 && ls(t, s, o, i), Lr(t, t.mapping.slice(i).map(o, 1), r, void 0, a === null);
3579
3579
  let c = t.mapping.slice(i), f = c.map(o, 1), p = c.map(o + s.nodeSize, 1);
3580
- return t.step(new ee(f, p, f + 1, p - 1, new D(x.from(r.create(l, null, s.marks)), 0, 0), 1, !0)), a === !0 && ls(t, s, o, i), !1;
3580
+ return t.step(new ee(f, p, f + 1, p - 1, new D(x.from(r.create(l, null, s.marks)), 0, 0), 1, !0)), a === !0 && ss(t, s, o, i), !1;
3581
3581
  }
3582
3582
  });
3583
3583
  }
3584
- function ls(t, e, n, r) {
3584
+ function ss(t, e, n, r) {
3585
3585
  e.forEach((u, i) => {
3586
3586
  if (u.isText) {
3587
3587
  let s, o = /\r?\n|\r/g;
@@ -3592,7 +3592,7 @@ function ls(t, e, n, r) {
3592
3592
  }
3593
3593
  });
3594
3594
  }
3595
- function as(t, e, n, r) {
3595
+ function ls(t, e, n, r) {
3596
3596
  e.forEach((u, i) => {
3597
3597
  if (u.type == u.type.schema.linebreakReplacement) {
3598
3598
  let s = t.mapping.slice(r).map(n + 1 + i);
@@ -3641,9 +3641,9 @@ function Bl(t, e, n = 1, r) {
3641
3641
  let c = r && r[a];
3642
3642
  s = x.from(c ? c.type.create(c.attrs, s) : u.node(o).copy(s));
3643
3643
  }
3644
- t.step(new J(e, e, new D(i.append(s), n, n), !0));
3644
+ t.step(new H(e, e, new D(i.append(s), n, n), !0));
3645
3645
  }
3646
- function cs(t, e) {
3646
+ function as(t, e) {
3647
3647
  let n = t.resolve(e), r = n.index();
3648
3648
  return vl(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
3649
3649
  }
@@ -3669,13 +3669,13 @@ function Pl(t, e, n) {
3669
3669
  let o = t.steps.length;
3670
3670
  if (r === !1) {
3671
3671
  let c = t.doc.resolve(e + n);
3672
- as(t, c.node(), c.before(), o);
3672
+ ls(t, c.node(), c.before(), o);
3673
3673
  }
3674
3674
  s.inlineContent && Lr(t, e + n - 1, s, i.node().contentMatchAt(i.index()), r == null);
3675
3675
  let l = t.mapping.slice(o), a = l.map(e - n);
3676
- if (t.step(new J(a, l.map(e + n, -1), D.empty, !0)), r === !0) {
3676
+ if (t.step(new H(a, l.map(e + n, -1), D.empty, !0)), r === !0) {
3677
3677
  let c = t.doc.resolve(a);
3678
- ls(t, c.node(), c.before(), t.steps.length);
3678
+ ss(t, c.node(), c.before(), t.steps.length);
3679
3679
  }
3680
3680
  return t;
3681
3681
  }
@@ -3726,9 +3726,9 @@ function qr(t, e, n = e, r = D.empty) {
3726
3726
  if (e == n && !r.size)
3727
3727
  return null;
3728
3728
  let u = t.resolve(e), i = t.resolve(n);
3729
- return fs(u, i, r) ? new J(e, n, r) : new Vl(u, i, r).fit();
3729
+ return cs(u, i, r) ? new H(e, n, r) : new Vl(u, i, r).fit();
3730
3730
  }
3731
- function fs(t, e, n) {
3731
+ function cs(t, e, n) {
3732
3732
  return !n.openStart && !n.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), n.content);
3733
3733
  }
3734
3734
  class Vl {
@@ -3759,7 +3759,7 @@ class Vl {
3759
3759
  for (; s && o && i.childCount == 1; )
3760
3760
  i = i.firstChild.content, s--, o--;
3761
3761
  let l = new D(i, s, o);
3762
- return e > -1 ? new ee(r.pos, e, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new J(r.pos, u.pos, l) : null;
3762
+ return e > -1 ? new ee(r.pos, e, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new H(r.pos, u.pos, l) : null;
3763
3763
  }
3764
3764
  // Find a position on the start spine of `this.unplaced` that has
3765
3765
  // content that can be moved somewhere on the frontier. Returns two
@@ -3822,7 +3822,7 @@ class Vl {
3822
3822
  let m = o.child(a), g = f.matchType(m.type);
3823
3823
  if (!g)
3824
3824
  break;
3825
- a++, (a > 1 || l == 0 || m.content.size) && (f = g, c.push(ds(m.mark(p.allowedMarks(m.marks)), a == 1 ? l : 0, a == o.childCount ? h : -1)));
3825
+ a++, (a > 1 || l == 0 || m.content.size) && (f = g, c.push(fs(m.mark(p.allowedMarks(m.marks)), a == 1 ? l : 0, a == o.childCount ? h : -1)));
3826
3826
  }
3827
3827
  let d = a == o.childCount;
3828
3828
  d || (h = -1), this.placed = Mt(this.placed, n, x.from(c)), this.frontier[n].match = f, d && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
@@ -3889,11 +3889,11 @@ function Vn(t, e) {
3889
3889
  t = t.firstChild.content;
3890
3890
  return t;
3891
3891
  }
3892
- function ds(t, e, n) {
3892
+ function fs(t, e, n) {
3893
3893
  if (e <= 0)
3894
3894
  return t;
3895
3895
  let r = t.content;
3896
- return e > 1 && (r = r.replaceChild(0, ds(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(x.empty, !0)))), t.copy(r);
3896
+ return e > 1 && (r = r.replaceChild(0, fs(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(x.empty, !0)))), t.copy(r);
3897
3897
  }
3898
3898
  function $n(t, e, n, r, u) {
3899
3899
  let i = t.node(e), s = u ? t.indexAfter(e) : t.index(e);
@@ -3915,9 +3915,9 @@ function Hl(t, e, n, r) {
3915
3915
  if (!r.size)
3916
3916
  return t.deleteRange(e, n);
3917
3917
  let u = t.doc.resolve(e), i = t.doc.resolve(n);
3918
- if (fs(u, i, r))
3919
- return t.step(new J(e, n, r));
3920
- let s = ps(u, i);
3918
+ if (cs(u, i, r))
3919
+ return t.step(new H(e, n, r));
3920
+ let s = hs(u, i);
3921
3921
  s[s.length - 1] == 0 && s.pop();
3922
3922
  let o = -(u.depth + 1);
3923
3923
  s.unshift(o);
@@ -3949,7 +3949,7 @@ function Hl(t, e, n, r) {
3949
3949
  g < 0 && (b = !1, g = -g);
3950
3950
  let k = u.node(g - 1), y = u.index(g - 1);
3951
3951
  if (k.canReplaceWith(y, y, d.type, d.marks))
3952
- return t.replace(u.before(g), b ? i.after(g) : n, new D(hs(r.content, 0, r.openStart, h), h, r.openEnd));
3952
+ return t.replace(u.before(g), b ? i.after(g) : n, new D(ds(r.content, 0, r.openStart, h), h, r.openEnd));
3953
3953
  }
3954
3954
  }
3955
3955
  let f = t.steps.length;
@@ -3958,10 +3958,10 @@ function Hl(t, e, n, r) {
3958
3958
  h < 0 || (e = u.before(h), n = i.after(h));
3959
3959
  }
3960
3960
  }
3961
- function hs(t, e, n, r, u) {
3961
+ function ds(t, e, n, r, u) {
3962
3962
  if (e < n) {
3963
3963
  let i = t.firstChild;
3964
- t = t.replaceChild(0, i.copy(hs(i.content, e + 1, n, r, i)));
3964
+ t = t.replaceChild(0, i.copy(ds(i.content, e + 1, n, r, i)));
3965
3965
  }
3966
3966
  if (e > r) {
3967
3967
  let i = u.contentMatchAt(0), s = i.fillBefore(t).append(t);
@@ -3977,7 +3977,7 @@ function Jl(t, e, n, r) {
3977
3977
  t.replaceRange(e, n, new D(x.from(r), 0, 0));
3978
3978
  }
3979
3979
  function jl(t, e, n) {
3980
- let r = t.doc.resolve(e), u = t.doc.resolve(n), i = ps(r, u);
3980
+ let r = t.doc.resolve(e), u = t.doc.resolve(n), i = hs(r, u);
3981
3981
  for (let s = 0; s < i.length; s++) {
3982
3982
  let o = i[s], l = s == i.length - 1;
3983
3983
  if (l && o == 0 || r.node(o).type.contentMatch.validEnd)
@@ -3990,7 +3990,7 @@ function jl(t, e, n) {
3990
3990
  return t.delete(r.before(s), n);
3991
3991
  t.delete(e, n);
3992
3992
  }
3993
- function ps(t, e) {
3993
+ function hs(t, e) {
3994
3994
  let n = [], r = Math.min(t.depth, e.depth);
3995
3995
  for (let u = r; u >= 0; u--) {
3996
3996
  let i = t.start(u);
@@ -4120,6 +4120,22 @@ class Ul {
4120
4120
  return this.steps.length > 0;
4121
4121
  }
4122
4122
  /**
4123
+ Return a single range, in post-transform document positions,
4124
+ that covers all content changed by this transform. Returns null
4125
+ if no replacements are made. Note that this will ignore changes
4126
+ that add/remove marks without replacing the underlying content.
4127
+ */
4128
+ changedRange() {
4129
+ let e = 1e9, n = -1e9;
4130
+ for (let r = 0; r < this.mapping.maps.length; r++) {
4131
+ let u = this.mapping.maps[r];
4132
+ r && (e = u.map(e, 1), n = u.map(n, -1)), u.forEach((i, s, o, l) => {
4133
+ e = Math.min(e, o), n = Math.max(n, l);
4134
+ });
4135
+ }
4136
+ return e == 1e9 ? null : { from: e, to: n };
4137
+ }
4138
+ /**
4123
4139
  @internal
4124
4140
  */
4125
4141
  addStep(e, n) {
@@ -4285,7 +4301,7 @@ class Ul {
4285
4301
  Add the given mark to the inline content between `from` and `to`.
4286
4302
  */
4287
4303
  addMark(e, n, r) {
4288
- return Sl(this, e, n, r), this;
4304
+ return El(this, e, n, r), this;
4289
4305
  }
4290
4306
  /**
4291
4307
  Remove marks from inline nodes between `from` and `to`. When
@@ -4294,7 +4310,7 @@ class Ul {
4294
4310
  remove all marks of any type.
4295
4311
  */
4296
4312
  removeMark(e, n, r) {
4297
- return El(this, e, n, r), this;
4313
+ return Sl(this, e, n, r), this;
4298
4314
  }
4299
4315
  /**
4300
4316
  Removes all marks and nodes from the content of the node at
@@ -4379,7 +4395,7 @@ class T {
4379
4395
  let i = e.steps.length, s = this.ranges;
4380
4396
  for (let o = 0; o < s.length; o++) {
4381
4397
  let { $from: l, $to: a } = s[o], c = e.mapping.slice(i);
4382
- e.replaceRange(c.map(l.pos), c.map(a.pos), o ? D.empty : n), o == 0 && Eu(e, i, (r ? r.isInline : u && u.isTextblock) ? -1 : 1);
4398
+ e.replaceRange(c.map(l.pos), c.map(a.pos), o ? D.empty : n), o == 0 && Su(e, i, (r ? r.isInline : u && u.isTextblock) ? -1 : 1);
4383
4399
  }
4384
4400
  }
4385
4401
  /**
@@ -4390,7 +4406,7 @@ class T {
4390
4406
  let r = e.steps.length, u = this.ranges;
4391
4407
  for (let i = 0; i < u.length; i++) {
4392
4408
  let { $from: s, $to: o } = u[i], l = e.mapping.slice(r), a = l.map(s.pos), c = l.map(o.pos);
4393
- i ? e.deleteRange(a, c) : (e.replaceRangeWith(a, c, n), Eu(e, r, n.isInline ? -1 : 1));
4409
+ i ? e.deleteRange(a, c) : (e.replaceRangeWith(a, c, n), Su(e, r, n.isInline ? -1 : 1));
4394
4410
  }
4395
4411
  }
4396
4412
  /**
@@ -4481,7 +4497,7 @@ class Kl {
4481
4497
  }
4482
4498
  }
4483
4499
  let _u = !1;
4484
- function Su(t) {
4500
+ function Eu(t) {
4485
4501
  !_u && !t.parent.inlineContent && (_u = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
4486
4502
  }
4487
4503
  class O extends T {
@@ -4489,7 +4505,7 @@ class O extends T {
4489
4505
  Construct a text selection between the given points.
4490
4506
  */
4491
4507
  constructor(e, n = e) {
4492
- Su(e), Su(n), super(e, n);
4508
+ Eu(e), Eu(n), super(e, n);
4493
4509
  }
4494
4510
  /**
4495
4511
  Returns a resolved position if this is a cursor selection (an
@@ -4567,7 +4583,7 @@ class Mn {
4567
4583
  return O.between(e.resolve(this.anchor), e.resolve(this.head));
4568
4584
  }
4569
4585
  }
4570
- class E extends T {
4586
+ class S extends T {
4571
4587
  /**
4572
4588
  Create a node selection. Does not verify the validity of its
4573
4589
  argument.
@@ -4578,13 +4594,13 @@ class E extends T {
4578
4594
  }
4579
4595
  map(e, n) {
4580
4596
  let { deleted: r, pos: u } = n.mapResult(this.anchor), i = e.resolve(u);
4581
- return r ? T.near(i) : new E(i);
4597
+ return r ? T.near(i) : new S(i);
4582
4598
  }
4583
4599
  content() {
4584
4600
  return new D(x.from(this.node), 0, 0);
4585
4601
  }
4586
4602
  eq(e) {
4587
- return e instanceof E && e.anchor == this.anchor;
4603
+ return e instanceof S && e.anchor == this.anchor;
4588
4604
  }
4589
4605
  toJSON() {
4590
4606
  return { type: "node", anchor: this.anchor };
@@ -4598,13 +4614,13 @@ class E extends T {
4598
4614
  static fromJSON(e, n) {
4599
4615
  if (typeof n.anchor != "number")
4600
4616
  throw new RangeError("Invalid input for NodeSelection.fromJSON");
4601
- return new E(e.resolve(n.anchor));
4617
+ return new S(e.resolve(n.anchor));
4602
4618
  }
4603
4619
  /**
4604
4620
  Create a node selection from non-resolved positions.
4605
4621
  */
4606
4622
  static create(e, n) {
4607
- return new E(e.resolve(n));
4623
+ return new S(e.resolve(n));
4608
4624
  }
4609
4625
  /**
4610
4626
  Determines whether the given node may be selected as a node
@@ -4614,8 +4630,8 @@ class E extends T {
4614
4630
  return !e.isText && e.type.spec.selectable !== !1;
4615
4631
  }
4616
4632
  }
4617
- E.prototype.visible = !1;
4618
- T.jsonID("node", E);
4633
+ S.prototype.visible = !1;
4634
+ T.jsonID("node", S);
4619
4635
  class Vr {
4620
4636
  constructor(e) {
4621
4637
  this.anchor = e;
@@ -4626,7 +4642,7 @@ class Vr {
4626
4642
  }
4627
4643
  resolve(e) {
4628
4644
  let n = e.resolve(this.anchor), r = n.nodeAfter;
4629
- return r && E.isSelectable(r) ? new E(n) : T.near(n);
4645
+ return r && S.isSelectable(r) ? new S(n) : T.near(n);
4630
4646
  }
4631
4647
  }
4632
4648
  class te extends T {
@@ -4678,8 +4694,8 @@ function ct(t, e, n, r, u, i = !1) {
4678
4694
  for (let s = r - (u > 0 ? 0 : 1); u > 0 ? s < e.childCount : s >= 0; s += u) {
4679
4695
  let o = e.child(s);
4680
4696
  if (o.isAtom) {
4681
- if (!i && E.isSelectable(o))
4682
- return E.create(t, n - (u < 0 ? o.nodeSize : 0));
4697
+ if (!i && S.isSelectable(o))
4698
+ return S.create(t, n - (u < 0 ? o.nodeSize : 0));
4683
4699
  } else {
4684
4700
  let l = ct(t, o, n + u, u < 0 ? o.childCount : 0, u, i);
4685
4701
  if (l)
@@ -4689,12 +4705,12 @@ function ct(t, e, n, r, u, i = !1) {
4689
4705
  }
4690
4706
  return null;
4691
4707
  }
4692
- function Eu(t, e, n) {
4708
+ function Su(t, e, n) {
4693
4709
  let r = t.steps.length - 1;
4694
4710
  if (r < e)
4695
4711
  return;
4696
4712
  let u = t.steps[r];
4697
- if (!(u instanceof J || u instanceof ee))
4713
+ if (!(u instanceof H || u instanceof ee))
4698
4714
  return;
4699
4715
  let i = t.mapping.maps[r], s;
4700
4716
  i.forEach((o, l, a, c) => {
@@ -5069,10 +5085,10 @@ class Ue {
5069
5085
  }), i;
5070
5086
  }
5071
5087
  }
5072
- function ms(t, e, n) {
5088
+ function ps(t, e, n) {
5073
5089
  for (let r in t) {
5074
5090
  let u = t[r];
5075
- u instanceof Function ? u = u.bind(e) : r == "handleDOMEvents" && (u = ms(u, e, {})), n[r] = u;
5091
+ u instanceof Function ? u = u.bind(e) : r == "handleDOMEvents" && (u = ps(u, e, {})), n[r] = u;
5076
5092
  }
5077
5093
  return n;
5078
5094
  }
@@ -5081,7 +5097,7 @@ class $r {
5081
5097
  Create a plugin.
5082
5098
  */
5083
5099
  constructor(e) {
5084
- this.spec = e, this.props = {}, e.props && ms(e.props, this, this.props), this.key = e.key ? e.key.key : gs("plugin");
5100
+ this.spec = e, this.props = {}, e.props && ps(e.props, this, this.props), this.key = e.key ? e.key.key : ms("plugin");
5085
5101
  }
5086
5102
  /**
5087
5103
  Extract the plugin's state field from an editor state.
@@ -5091,15 +5107,15 @@ class $r {
5091
5107
  }
5092
5108
  }
5093
5109
  const Jn = /* @__PURE__ */ Object.create(null);
5094
- function gs(t) {
5110
+ function ms(t) {
5095
5111
  return t in Jn ? t + "$" + ++Jn[t] : (Jn[t] = 0, t + "$");
5096
5112
  }
5097
- class bs {
5113
+ class gs {
5098
5114
  /**
5099
5115
  Create a plugin key.
5100
5116
  */
5101
5117
  constructor(e = "key") {
5102
- this.key = gs(e);
5118
+ this.key = ms(e);
5103
5119
  }
5104
5120
  /**
5105
5121
  Get the active plugin with this key, if any, from an editor
@@ -5115,7 +5131,7 @@ class bs {
5115
5131
  return e[this.key];
5116
5132
  }
5117
5133
  }
5118
- const xs = (t, e) => t.selection.empty ? !1 : (e && e(t.tr.deleteSelection().scrollIntoView()), !0);
5134
+ const bs = (t, e) => t.selection.empty ? !1 : (e && e(t.tr.deleteSelection().scrollIntoView()), !0);
5119
5135
  function Xl(t, e) {
5120
5136
  let { $cursor: n } = t.selection;
5121
5137
  return !n || (e ? !e.endOfTextblock("backward", t) : n.parentOffset > 0) ? null : n;
@@ -5124,21 +5140,21 @@ const Ql = (t, e, n) => {
5124
5140
  let r = Xl(t, n);
5125
5141
  if (!r)
5126
5142
  return !1;
5127
- let u = ks(r);
5143
+ let u = xs(r);
5128
5144
  if (!u) {
5129
5145
  let s = r.blockRange(), o = s && An(s);
5130
5146
  return o == null ? !1 : (e && e(t.tr.lift(s, o).scrollIntoView()), !0);
5131
5147
  }
5132
5148
  let i = u.nodeBefore;
5133
- if (Cs(t, u, e, -1))
5149
+ if (ys(t, u, e, -1))
5134
5150
  return !0;
5135
- if (r.parent.content.size == 0 && (gt(i, "end") || E.isSelectable(i)))
5151
+ if (r.parent.content.size == 0 && (gt(i, "end") || S.isSelectable(i)))
5136
5152
  for (let s = r.depth; ; s--) {
5137
5153
  let o = qr(t.doc, r.before(s), r.after(s), D.empty);
5138
5154
  if (o && o.slice.size < o.to - o.from) {
5139
5155
  if (e) {
5140
5156
  let l = t.tr.step(o);
5141
- l.setSelection(gt(i, "end") ? T.findFrom(l.doc.resolve(l.mapping.map(u.pos, -1)), -1) : E.create(l.doc, u.pos - i.nodeSize)), e(l.scrollIntoView());
5157
+ l.setSelection(gt(i, "end") ? T.findFrom(l.doc.resolve(l.mapping.map(u.pos, -1)), -1) : S.create(l.doc, u.pos - i.nodeSize)), e(l.scrollIntoView());
5142
5158
  }
5143
5159
  return !0;
5144
5160
  }
@@ -5163,12 +5179,12 @@ const ea = (t, e, n) => {
5163
5179
  if (r.parent.isTextblock) {
5164
5180
  if (n ? !n.endOfTextblock("backward", t) : r.parentOffset > 0)
5165
5181
  return !1;
5166
- i = ks(r);
5182
+ i = xs(r);
5167
5183
  }
5168
5184
  let s = i && i.nodeBefore;
5169
- return !s || !E.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(E.create(t.doc, i.pos - s.nodeSize)).scrollIntoView()), !0);
5185
+ return !s || !S.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(S.create(t.doc, i.pos - s.nodeSize)).scrollIntoView()), !0);
5170
5186
  };
5171
- function ks(t) {
5187
+ function xs(t) {
5172
5188
  if (!t.parent.type.spec.isolating)
5173
5189
  for (let e = t.depth - 1; e >= 0; e--) {
5174
5190
  if (t.index(e) > 0)
@@ -5186,18 +5202,18 @@ const na = (t, e, n) => {
5186
5202
  let r = ta(t, n);
5187
5203
  if (!r)
5188
5204
  return !1;
5189
- let u = ys(r);
5205
+ let u = ks(r);
5190
5206
  if (!u)
5191
5207
  return !1;
5192
5208
  let i = u.nodeAfter;
5193
- if (Cs(t, u, e, 1))
5209
+ if (ys(t, u, e, 1))
5194
5210
  return !0;
5195
- if (r.parent.content.size == 0 && (gt(i, "start") || E.isSelectable(i))) {
5211
+ if (r.parent.content.size == 0 && (gt(i, "start") || S.isSelectable(i))) {
5196
5212
  let s = qr(t.doc, r.before(), r.after(), D.empty);
5197
5213
  if (s && s.slice.size < s.to - s.from) {
5198
5214
  if (e) {
5199
5215
  let o = t.tr.step(s);
5200
- o.setSelection(gt(i, "start") ? T.findFrom(o.doc.resolve(o.mapping.map(u.pos)), 1) : E.create(o.doc, o.mapping.map(u.pos))), e(o.scrollIntoView());
5216
+ o.setSelection(gt(i, "start") ? T.findFrom(o.doc.resolve(o.mapping.map(u.pos)), 1) : S.create(o.doc, o.mapping.map(u.pos))), e(o.scrollIntoView());
5201
5217
  }
5202
5218
  return !0;
5203
5219
  }
@@ -5210,12 +5226,12 @@ const na = (t, e, n) => {
5210
5226
  if (r.parent.isTextblock) {
5211
5227
  if (n ? !n.endOfTextblock("forward", t) : r.parentOffset < r.parent.content.size)
5212
5228
  return !1;
5213
- i = ys(r);
5229
+ i = ks(r);
5214
5230
  }
5215
5231
  let s = i && i.nodeAfter;
5216
- return !s || !E.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(E.create(t.doc, i.pos)).scrollIntoView()), !0);
5232
+ return !s || !S.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(S.create(t.doc, i.pos)).scrollIntoView()), !0);
5217
5233
  };
5218
- function ys(t) {
5234
+ function ks(t) {
5219
5235
  if (!t.parent.type.spec.isolating)
5220
5236
  for (let e = t.depth - 1; e >= 0; e--) {
5221
5237
  let n = t.node(e);
@@ -5281,7 +5297,7 @@ const sa = (t, e) => {
5281
5297
  function aa(t) {
5282
5298
  return (e, n) => {
5283
5299
  let { $from: r, $to: u } = e.selection;
5284
- if (e.selection instanceof E && e.selection.node.isBlock)
5300
+ if (e.selection instanceof S && e.selection.node.isBlock)
5285
5301
  return !r.parentOffset || !on(e.doc, r.pos) ? !1 : (n && n(e.tr.split(r.pos).scrollIntoView()), !0);
5286
5302
  if (!r.depth)
5287
5303
  return !1;
@@ -5310,9 +5326,9 @@ function aa(t) {
5310
5326
  const ca = aa(), fa = (t, e) => (e && e(t.tr.setSelection(new te(t.doc))), !0);
5311
5327
  function da(t, e, n) {
5312
5328
  let r = e.nodeBefore, u = e.nodeAfter, i = e.index();
5313
- return !r || !u || !r.type.compatibleContent(u.type) ? !1 : !r.content.size && e.parent.canReplace(i - 1, i) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(i, i + 1) || !(u.isTextblock || cs(t.doc, e.pos)) ? !1 : (n && n(t.tr.join(e.pos).scrollIntoView()), !0);
5329
+ return !r || !u || !r.type.compatibleContent(u.type) ? !1 : !r.content.size && e.parent.canReplace(i - 1, i) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(i, i + 1) || !(u.isTextblock || as(t.doc, e.pos)) ? !1 : (n && n(t.tr.join(e.pos).scrollIntoView()), !0);
5314
5330
  }
5315
- function Cs(t, e, n, r) {
5331
+ function ys(t, e, n, r) {
5316
5332
  let u = e.nodeBefore, i = e.nodeAfter, s, o, l = u.type.spec.isolating || i.type.spec.isolating;
5317
5333
  if (!l && da(t, e, n))
5318
5334
  return !0;
@@ -5324,7 +5340,7 @@ function Cs(t, e, n, r) {
5324
5340
  d = x.from(s[b].create(null, d));
5325
5341
  d = x.from(u.copy(d));
5326
5342
  let m = t.tr.step(new ee(e.pos - 1, h, e.pos, h, new D(d, 1, 0), s.length, !0)), g = m.doc.resolve(h + 2 * s.length);
5327
- g.nodeAfter && g.nodeAfter.type == u.type && cs(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
5343
+ g.nodeAfter && g.nodeAfter.type == u.type && as(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
5328
5344
  }
5329
5345
  return !0;
5330
5346
  }
@@ -5351,7 +5367,7 @@ function Cs(t, e, n, r) {
5351
5367
  }
5352
5368
  return !1;
5353
5369
  }
5354
- function Ds(t) {
5370
+ function Cs(t) {
5355
5371
  return function(e, n) {
5356
5372
  let r = e.selection, u = t < 0 ? r.$from : r.$to, i = u.depth;
5357
5373
  for (; u.node(i).isInline; ) {
@@ -5362,7 +5378,7 @@ function Ds(t) {
5362
5378
  return u.node(i).isTextblock ? (n && n(e.tr.setSelection(O.create(e.doc, t < 0 ? u.start(i) : u.end(i)))), !0) : !1;
5363
5379
  };
5364
5380
  }
5365
- const ha = Ds(-1), pa = Ds(1);
5381
+ const ha = Cs(-1), pa = Cs(1);
5366
5382
  function ma(t, e = null) {
5367
5383
  return function(n, r) {
5368
5384
  let { $from: u, $to: i } = n.selection, s = u.blockRange(i), o = s && wl(s, t, e);
@@ -5444,8 +5460,8 @@ function Hr(...t) {
5444
5460
  return !1;
5445
5461
  };
5446
5462
  }
5447
- let jn = Hr(xs, Ql, ea), Tu = Hr(xs, na, ra);
5448
- const Ee = {
5463
+ let jn = Hr(bs, Ql, ea), Tu = Hr(bs, na, ra);
5464
+ const Se = {
5449
5465
  Enter: Hr(ia, oa, la, ca),
5450
5466
  "Mod-Enter": sa,
5451
5467
  Backspace: jn,
@@ -5454,20 +5470,20 @@ const Ee = {
5454
5470
  Delete: Tu,
5455
5471
  "Mod-Delete": Tu,
5456
5472
  "Mod-a": fa
5457
- }, _s = {
5458
- "Ctrl-h": Ee.Backspace,
5459
- "Alt-Backspace": Ee["Mod-Backspace"],
5460
- "Ctrl-d": Ee.Delete,
5461
- "Ctrl-Alt-Backspace": Ee["Mod-Delete"],
5462
- "Alt-Delete": Ee["Mod-Delete"],
5463
- "Alt-d": Ee["Mod-Delete"],
5473
+ }, Ds = {
5474
+ "Ctrl-h": Se.Backspace,
5475
+ "Alt-Backspace": Se["Mod-Backspace"],
5476
+ "Ctrl-d": Se.Delete,
5477
+ "Ctrl-Alt-Backspace": Se["Mod-Delete"],
5478
+ "Alt-Delete": Se["Mod-Delete"],
5479
+ "Alt-d": Se["Mod-Delete"],
5464
5480
  "Ctrl-a": ha,
5465
5481
  "Ctrl-e": pa
5466
5482
  };
5467
- for (let t in Ee)
5468
- _s[t] = Ee[t];
5469
- const ba = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform ? os.platform() == "darwin" : !1, xa = ba ? _s : Ee;
5470
- function Ss(t, e) {
5483
+ for (let t in Se)
5484
+ Ds[t] = Se[t];
5485
+ const ba = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform ? os.platform() == "darwin" : !1, xa = ba ? Ds : Se;
5486
+ function _s(t, e) {
5471
5487
  return Es(t, e) != null;
5472
5488
  }
5473
5489
  function Es(t, e) {
@@ -5502,7 +5518,7 @@ function Es(t, e) {
5502
5518
  function an(t, e, n) {
5503
5519
  return t.map(() => {
5504
5520
  const r = e.value, u = r.state.schema.marks[n];
5505
- return Ss(r.state, u);
5521
+ return _s(r.state, u);
5506
5522
  });
5507
5523
  }
5508
5524
  function ka(t, e, n) {
@@ -5531,9 +5547,9 @@ function ya(t, e) {
5531
5547
  );
5532
5548
  t.dispatch(i), t.focus();
5533
5549
  }
5534
- function As(t) {
5550
+ function Ss(t) {
5535
5551
  const { state: e } = t, { $from: n, $to: r } = e.selection;
5536
- if (!Ms(e)) return null;
5552
+ if (!As(e)) return null;
5537
5553
  let u = n.pos, i = r.pos;
5538
5554
  const s = e.doc;
5539
5555
  for (; u > 0 && s.resolve(u - 1).nodeAfter?.marks?.some((a) => a.type.name === "link"); )
@@ -5545,7 +5561,7 @@ function As(t) {
5545
5561
  function Ca(t, e) {
5546
5562
  const n = t.state.schema.marks.link;
5547
5563
  if (n == null) return;
5548
- const r = As(t);
5564
+ const r = Ss(t);
5549
5565
  if (r == null) return;
5550
5566
  const { start: u, end: i } = r, s = t.state.tr.removeMark(u, i, n).addMark(u, i, n.create({ href: e, title: null }));
5551
5567
  t.dispatch(s);
@@ -5553,13 +5569,13 @@ function Ca(t, e) {
5553
5569
  function Da(t) {
5554
5570
  const e = t.state.schema.marks.link;
5555
5571
  if (e == null) return;
5556
- const n = As(t);
5572
+ const n = Ss(t);
5557
5573
  if (n == null) return;
5558
5574
  const { start: r, end: u } = n, i = t.state.tr.removeMark(r, u, e);
5559
5575
  t.dispatch(i), t.focus();
5560
5576
  }
5561
- function Ms(t) {
5562
- return Ss(t, t.schema.marks.link);
5577
+ function As(t) {
5578
+ return _s(t, t.schema.marks.link);
5563
5579
  }
5564
5580
  function _a({
5565
5581
  stateUpdate: t,
@@ -5584,7 +5600,7 @@ function _a({
5584
5600
  );
5585
5601
  l != null ? s.set(l.attrs.href ?? "") : s.set(null);
5586
5602
  });
5587
- return zi(
5603
+ return qo(
5588
5604
  pr(o),
5589
5605
  Ho(
5590
5606
  he({
@@ -5596,7 +5612,7 @@ function _a({
5596
5612
  size: i,
5597
5613
  onClick: () => {
5598
5614
  const l = e.value.state;
5599
- Ms(l) ? (Da(e.value), s.set(null)) : (ya(e.value, ""), s.set(""));
5615
+ As(l) ? (Da(e.value), s.set(null)) : (ya(e.value, ""), s.set(""));
5600
5616
  }
5601
5617
  }),
5602
5618
  mr(
@@ -5627,7 +5643,7 @@ function _a({
5627
5643
  )
5628
5644
  );
5629
5645
  }
5630
- function Sa({
5646
+ function Ea({
5631
5647
  view: t,
5632
5648
  stateUpdate: e,
5633
5649
  features: n,
@@ -5636,7 +5652,7 @@ function Sa({
5636
5652
  }) {
5637
5653
  return mr(
5638
5654
  t,
5639
- (i) => vi(Ko, (s) => {
5655
+ (i) => zi(Ko, (s) => {
5640
5656
  const o = s.$.prosemirror, l = i;
5641
5657
  return jo(
5642
5658
  // Text formatting group
@@ -5682,7 +5698,7 @@ function Sa({
5682
5698
  level: a
5683
5699
  }),
5684
5700
  display: n.$.headings,
5685
- onClick: () => Ea(l.value, a),
5701
+ onClick: () => Sa(l.value, a),
5686
5702
  disabled: r,
5687
5703
  label: o.map((c) => c.heading(a)),
5688
5704
  icon: `mdi:format-header-${a}`,
@@ -5749,7 +5765,7 @@ function Sa({
5749
5765
  size: u
5750
5766
  })
5751
5767
  ),
5752
- Pi(
5768
+ vi(
5753
5769
  n.$.links,
5754
5770
  () => _a({
5755
5771
  stateUpdate: e,
@@ -5772,12 +5788,12 @@ function Un(t, e) {
5772
5788
  const n = t.state.schema.marks[e];
5773
5789
  n != null && (ln(n)(t.state, t.dispatch), t.focus());
5774
5790
  }
5775
- function Ea(t, e) {
5791
+ function Sa(t, e) {
5776
5792
  const n = t.state.schema.nodes.heading;
5777
5793
  n != null && (Cr(n, { level: e })(t.state, t.dispatch), t.focus());
5778
5794
  }
5779
5795
  async function Ou(t, e) {
5780
- const { wrapInList: n, liftListItem: r } = await import("./index-B0t-nt7i.js"), u = t.state.schema.nodes[e], i = t.state.schema.nodes.list_item;
5796
+ const { wrapInList: n, liftListItem: r } = await import("./index-DWDC-qRY.js"), u = t.state.schema.nodes[e], i = t.state.schema.nodes.list_item;
5781
5797
  if (u == null || i == null) return;
5782
5798
  const { state: s } = t, { $from: o } = s.selection;
5783
5799
  let l = null;
@@ -5821,7 +5837,7 @@ function wa(t) {
5821
5837
  t.dispatch(n), t.focus();
5822
5838
  }
5823
5839
  }
5824
- const V = function(t) {
5840
+ const q = function(t) {
5825
5841
  for (var e = 0; ; e++)
5826
5842
  if (t = t.previousSibling, !t)
5827
5843
  return e;
@@ -5830,7 +5846,7 @@ const V = function(t) {
5830
5846
  return e && e.nodeType == 11 ? e.host : e;
5831
5847
  };
5832
5848
  let Dr = null;
5833
- const Se = function(t, e, n) {
5849
+ const Ee = function(t, e, n) {
5834
5850
  let r = Dr || (Dr = document.createRange());
5835
5851
  return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
5836
5852
  }, Ta = function() {
@@ -5846,7 +5862,7 @@ function Fu(t, e, n, r, u) {
5846
5862
  let s = t.parentNode;
5847
5863
  if (!s || s.nodeType != 1 || Jt(t) || Oa.test(t.nodeName) || t.contentEditable == "false")
5848
5864
  return !1;
5849
- e = V(t) + (u < 0 ? 0 : 1), t = s;
5865
+ e = q(t) + (u < 0 ? 0 : 1), t = s;
5850
5866
  } else if (t.nodeType == 1) {
5851
5867
  let s = t.childNodes[e + (u < 0 ? -1 : 0)];
5852
5868
  if (s.nodeType == 1 && s.contentEditable == "false")
@@ -5872,7 +5888,7 @@ function Fa(t, e) {
5872
5888
  return null;
5873
5889
  t = t.childNodes[e - 1], e = ie(t);
5874
5890
  } else if (t.parentNode && !Jt(t))
5875
- e = V(t), t = t.parentNode;
5891
+ e = q(t), t = t.parentNode;
5876
5892
  else
5877
5893
  return null;
5878
5894
  }
@@ -5886,7 +5902,7 @@ function Na(t, e) {
5886
5902
  return null;
5887
5903
  t = t.childNodes[e], e = 0;
5888
5904
  } else if (t.parentNode && !Jt(t))
5889
- e = V(t) + 1, t = t.parentNode;
5905
+ e = q(t) + 1, t = t.parentNode;
5890
5906
  else
5891
5907
  return null;
5892
5908
  }
@@ -5895,7 +5911,7 @@ function Ia(t, e, n) {
5895
5911
  for (let r = e == 0, u = e == ie(t); r || u; ) {
5896
5912
  if (t == n)
5897
5913
  return !0;
5898
- let i = V(t);
5914
+ let i = q(t);
5899
5915
  if (t = t.parentNode, !t)
5900
5916
  return !1;
5901
5917
  r = r && i == 0, u = u && i == ie(t);
@@ -5934,9 +5950,9 @@ function Ba(t, e, n) {
5934
5950
  return { node: r.startContainer, offset: Math.min(ie(r.startContainer), r.startOffset) };
5935
5951
  }
5936
5952
  }
5937
- const ke = typeof navigator < "u" ? navigator : null, Nu = typeof document < "u" ? document : null, He = ke && ke.userAgent || "", _r = /Edge\/(\d+)/.exec(He), ws = /MSIE \d/.exec(He), Sr = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(He), G = !!(ws || Sr || _r), Le = ws ? document.documentMode : Sr ? +Sr[1] : _r ? +_r[1] : 0, se = !G && /gecko\/(\d+)/i.test(He);
5953
+ const ke = typeof navigator < "u" ? navigator : null, Nu = typeof document < "u" ? document : null, He = ke && ke.userAgent || "", _r = /Edge\/(\d+)/.exec(He), Ms = /MSIE \d/.exec(He), Er = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(He), G = !!(Ms || Er || _r), Le = Ms ? document.documentMode : Er ? +Er[1] : _r ? +_r[1] : 0, se = !G && /gecko\/(\d+)/i.test(He);
5938
5954
  se && +(/Firefox\/(\d+)/.exec(He) || [0, 0])[1];
5939
- const Er = !G && /Chrome\/(\d+)/.exec(He), P = !!Er, Ts = Er ? +Er[1] : 0, W = !G && !!ke && /Apple Computer/.test(ke.vendor), xt = W && (/Mobile\/\w+/.test(He) || !!ke && ke.maxTouchPoints > 2), ue = xt || (ke ? /Mac/.test(ke.platform) : !1), Os = ke ? /Win/.test(ke.platform) : !1, Ae = /Android \d/.test(He), jt = !!Nu && "webkitFontSmoothing" in Nu.documentElement.style, za = jt ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5955
+ const Sr = !G && /Chrome\/(\d+)/.exec(He), $ = !!Sr, ws = Sr ? +Sr[1] : 0, J = !G && !!ke && /Apple Computer/.test(ke.vendor), xt = J && (/Mobile\/\w+/.test(He) || !!ke && ke.maxTouchPoints > 2), ue = xt || (ke ? /Mac/.test(ke.platform) : !1), Ts = ke ? /Win/.test(ke.platform) : !1, Ae = /Android \d/.test(He), jt = !!Nu && "webkitFontSmoothing" in Nu.documentElement.style, za = jt ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5940
5956
  function va(t) {
5941
5957
  let e = t.defaultView && t.defaultView.visualViewport;
5942
5958
  return e ? {
@@ -5998,9 +6014,9 @@ function La(t) {
5998
6014
  break;
5999
6015
  }
6000
6016
  }
6001
- return { refDOM: r, refTop: u, stack: Fs(t.dom) };
6017
+ return { refDOM: r, refTop: u, stack: Os(t.dom) };
6002
6018
  }
6003
- function Fs(t) {
6019
+ function Os(t) {
6004
6020
  let e = [], n = t.ownerDocument;
6005
6021
  for (let r = t; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), t != n); r = bt(r))
6006
6022
  ;
@@ -6008,9 +6024,9 @@ function Fs(t) {
6008
6024
  }
6009
6025
  function qa({ refDOM: t, refTop: e, stack: n }) {
6010
6026
  let r = t ? t.getBoundingClientRect().top : 0;
6011
- Ns(n, r == 0 ? 0 : r - e);
6027
+ Fs(n, r == 0 ? 0 : r - e);
6012
6028
  }
6013
- function Ns(t, e) {
6029
+ function Fs(t, e) {
6014
6030
  for (let n = 0; n < t.length; n++) {
6015
6031
  let { dom: r, top: u, left: i } = t[n];
6016
6032
  r.scrollTop != u + e && (r.scrollTop = u + e), r.scrollLeft != i && (r.scrollLeft = i);
@@ -6022,21 +6038,21 @@ function Va(t) {
6022
6038
  return t.setActive();
6023
6039
  if (ot)
6024
6040
  return t.focus(ot);
6025
- let e = Fs(t);
6041
+ let e = Os(t);
6026
6042
  t.focus(ot == null ? {
6027
6043
  get preventScroll() {
6028
6044
  return ot = { preventScroll: !0 }, !0;
6029
6045
  }
6030
- } : void 0), ot || (ot = !1, Ns(e, 0));
6046
+ } : void 0), ot || (ot = !1, Fs(e, 0));
6031
6047
  }
6032
- function Is(t, e) {
6048
+ function Ns(t, e) {
6033
6049
  let n, r = 2e8, u, i = 0, s = e.top, o = e.top, l, a;
6034
6050
  for (let c = t.firstChild, f = 0; c; c = c.nextSibling, f++) {
6035
6051
  let p;
6036
6052
  if (c.nodeType == 1)
6037
6053
  p = c.getClientRects();
6038
6054
  else if (c.nodeType == 3)
6039
- p = Se(c).getClientRects();
6055
+ p = Ee(c).getClientRects();
6040
6056
  else
6041
6057
  continue;
6042
6058
  for (let h = 0; h < p.length; h++) {
@@ -6055,7 +6071,7 @@ function Is(t, e) {
6055
6071
  !n && (e.left >= d.right && e.top >= d.top || e.left >= d.left && e.top >= d.bottom) && (i = f + 1);
6056
6072
  }
6057
6073
  }
6058
- return !n && l && (n = l, u = a, r = 0), n && n.nodeType == 3 ? $a(n, u) : !n || r && n.nodeType == 1 ? { node: t, offset: i } : Is(n, u);
6074
+ return !n && l && (n = l, u = a, r = 0), n && n.nodeType == 3 ? $a(n, u) : !n || r && n.nodeType == 1 ? { node: t, offset: i } : Ns(n, u);
6059
6075
  }
6060
6076
  function $a(t, e) {
6061
6077
  let n = t.nodeValue.length, r = document.createRange(), u;
@@ -6077,7 +6093,7 @@ function Wa(t, e) {
6077
6093
  return n && /^li$/i.test(n.nodeName) && e.left < t.getBoundingClientRect().left ? n : t;
6078
6094
  }
6079
6095
  function Ha(t, e, n) {
6080
- let { node: r, offset: u } = Is(e, n), i = -1;
6096
+ let { node: r, offset: u } = Ns(e, n), i = -1;
6081
6097
  if (r.nodeType == 1 && !r.firstChild) {
6082
6098
  let s = r.getBoundingClientRect();
6083
6099
  i = s.left != s.right && n.left > (s.left + s.right) / 2 ? 1 : -1;
@@ -6097,7 +6113,7 @@ function Ja(t, e, n, r) {
6097
6113
  }
6098
6114
  return u > -1 ? u : t.docView.posFromDOM(e, n, -1);
6099
6115
  }
6100
- function Rs(t, e, n) {
6116
+ function Is(t, e, n) {
6101
6117
  let r = t.childNodes.length;
6102
6118
  if (r && n.top < n.bottom)
6103
6119
  for (let u = Math.max(0, Math.min(r - 1, Math.floor(r * (e.top - n.top) / (n.bottom - n.top)) - 2)), i = u; ; ) {
@@ -6107,7 +6123,7 @@ function Rs(t, e, n) {
6107
6123
  for (let l = 0; l < o.length; l++) {
6108
6124
  let a = o[l];
6109
6125
  if (Jr(e, a))
6110
- return Rs(s, e, a);
6126
+ return Is(s, e, a);
6111
6127
  }
6112
6128
  }
6113
6129
  if ((i = (i + 1) % r) == u)
@@ -6121,10 +6137,10 @@ function ja(t, e) {
6121
6137
  let s = (t.root.elementFromPoint ? t.root : n).elementFromPoint(e.left, e.top), o;
6122
6138
  if (!s || !t.dom.contains(s.nodeType != 1 ? s.parentNode : s)) {
6123
6139
  let a = t.dom.getBoundingClientRect();
6124
- if (!Jr(e, a) || (s = Rs(t.dom, e, a), !s))
6140
+ if (!Jr(e, a) || (s = Is(t.dom, e, a), !s))
6125
6141
  return null;
6126
6142
  }
6127
- if (W)
6143
+ if (J)
6128
6144
  for (let a = s; r && a; a = bt(a))
6129
6145
  a.draggable && (r = void 0);
6130
6146
  if (s = Wa(s, e), r) {
@@ -6152,23 +6168,23 @@ function Te(t, e) {
6152
6168
  return Array.prototype.find.call(n, Ru) || t.getBoundingClientRect();
6153
6169
  }
6154
6170
  const Ua = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
6155
- function Bs(t, e, n) {
6171
+ function Rs(t, e, n) {
6156
6172
  let { node: r, offset: u, atom: i } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = jt || se;
6157
6173
  if (r.nodeType == 3)
6158
6174
  if (s && (Ua.test(r.nodeValue) || (n < 0 ? !u : u == r.nodeValue.length))) {
6159
- let l = Te(Se(r, u, u), n);
6175
+ let l = Te(Ee(r, u, u), n);
6160
6176
  if (se && u && /\s/.test(r.nodeValue[u - 1]) && u < r.nodeValue.length) {
6161
- let a = Te(Se(r, u - 1, u - 1), -1);
6177
+ let a = Te(Ee(r, u - 1, u - 1), -1);
6162
6178
  if (a.top == l.top) {
6163
- let c = Te(Se(r, u, u + 1), -1);
6179
+ let c = Te(Ee(r, u, u + 1), -1);
6164
6180
  if (c.top != l.top)
6165
- return St(c, c.left < a.left);
6181
+ return Et(c, c.left < a.left);
6166
6182
  }
6167
6183
  }
6168
6184
  return l;
6169
6185
  } else {
6170
6186
  let l = u, a = u, c = n < 0 ? 1 : -1;
6171
- return n < 0 && !u ? (a++, c = -1) : n >= 0 && u == r.nodeValue.length ? (l--, c = 1) : n < 0 ? l-- : a++, St(Te(Se(r, l, a), c), c < 0);
6187
+ return n < 0 && !u ? (a++, c = -1) : n >= 0 && u == r.nodeValue.length ? (l--, c = 1) : n < 0 ? l-- : a++, Et(Te(Ee(r, l, a), c), c < 0);
6172
6188
  }
6173
6189
  if (!t.state.doc.resolve(e - (i || 0)).parent.inlineContent) {
6174
6190
  if (i == null && u && (n < 0 || u == ie(r))) {
@@ -6184,21 +6200,21 @@ function Bs(t, e, n) {
6184
6200
  return Kn(r.getBoundingClientRect(), n >= 0);
6185
6201
  }
6186
6202
  if (i == null && u && (n < 0 || u == ie(r))) {
6187
- let l = r.childNodes[u - 1], a = l.nodeType == 3 ? Se(l, ie(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
6203
+ let l = r.childNodes[u - 1], a = l.nodeType == 3 ? Ee(l, ie(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
6188
6204
  if (a)
6189
- return St(Te(a, 1), !1);
6205
+ return Et(Te(a, 1), !1);
6190
6206
  }
6191
6207
  if (i == null && u < ie(r)) {
6192
6208
  let l = r.childNodes[u];
6193
6209
  for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; )
6194
6210
  l = l.nextSibling;
6195
- let a = l ? l.nodeType == 3 ? Se(l, 0, s ? 0 : 1) : l.nodeType == 1 ? l : null : null;
6211
+ let a = l ? l.nodeType == 3 ? Ee(l, 0, s ? 0 : 1) : l.nodeType == 1 ? l : null : null;
6196
6212
  if (a)
6197
- return St(Te(a, -1), !0);
6213
+ return Et(Te(a, -1), !0);
6198
6214
  }
6199
- return St(Te(r.nodeType == 3 ? Se(r) : r, -n), n >= 0);
6215
+ return Et(Te(r.nodeType == 3 ? Ee(r) : r, -n), n >= 0);
6200
6216
  }
6201
- function St(t, e) {
6217
+ function Et(t, e) {
6202
6218
  if (t.width == 0)
6203
6219
  return t;
6204
6220
  let n = e ? t.left : t.right;
@@ -6210,7 +6226,7 @@ function Kn(t, e) {
6210
6226
  let n = e ? t.top : t.bottom;
6211
6227
  return { top: n, bottom: n, left: t.left, right: t.right };
6212
6228
  }
6213
- function zs(t, e, n) {
6229
+ function Bs(t, e, n) {
6214
6230
  let r = t.state, u = t.root.activeElement;
6215
6231
  r != e && t.updateState(e), u != t.dom && t.focus();
6216
6232
  try {
@@ -6221,7 +6237,7 @@ function zs(t, e, n) {
6221
6237
  }
6222
6238
  function Ka(t, e, n) {
6223
6239
  let r = e.selection, u = n == "up" ? r.$from : r.$to;
6224
- return zs(t, e, () => {
6240
+ return Bs(t, e, () => {
6225
6241
  let { node: i } = t.docView.domFromPos(u.pos, n == "up" ? -1 : 1);
6226
6242
  for (; ; ) {
6227
6243
  let o = t.docView.nearestDesc(i, !0);
@@ -6233,13 +6249,13 @@ function Ka(t, e, n) {
6233
6249
  }
6234
6250
  i = o.dom.parentNode;
6235
6251
  }
6236
- let s = Bs(t, u.pos, 1);
6252
+ let s = Rs(t, u.pos, 1);
6237
6253
  for (let o = i.firstChild; o; o = o.nextSibling) {
6238
6254
  let l;
6239
6255
  if (o.nodeType == 1)
6240
6256
  l = o.getClientRects();
6241
6257
  else if (o.nodeType == 3)
6242
- l = Se(o, 0, o.nodeValue.length).getClientRects();
6258
+ l = Ee(o, 0, o.nodeValue.length).getClientRects();
6243
6259
  else
6244
6260
  continue;
6245
6261
  for (let a = 0; a < l.length; a++) {
@@ -6257,7 +6273,7 @@ function Ga(t, e, n) {
6257
6273
  if (!r.parent.isTextblock)
6258
6274
  return !1;
6259
6275
  let u = r.parentOffset, i = !u, s = u == r.parent.content.size, o = t.domSelection();
6260
- return o ? !Za.test(r.parent.textContent) || !o.modify ? n == "left" || n == "backward" ? i : s : zs(t, e, () => {
6276
+ return o ? !Za.test(r.parent.textContent) || !o.modify ? n == "left" || n == "backward" ? i : s : Bs(t, e, () => {
6261
6277
  let { focusNode: l, focusOffset: a, anchorNode: c, anchorOffset: f } = t.domSelectionRange(), p = o.caretBidiLevel;
6262
6278
  o.modify("move", n, "character");
6263
6279
  let h = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: d, focusOffset: m } = t.domSelectionRange(), g = d && !h.contains(d.nodeType == 1 ? d : d.parentNode) || l == d && a == m;
@@ -6368,7 +6384,7 @@ class Ut {
6368
6384
  }
6369
6385
  let u;
6370
6386
  if (e == this.dom && this.contentDOM)
6371
- u = n > V(this.contentDOM);
6387
+ u = n > q(this.contentDOM);
6372
6388
  else if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM))
6373
6389
  u = e.compareDocumentPosition(this.contentDOM) & 2;
6374
6390
  else if (this.dom.firstChild) {
@@ -6444,7 +6460,7 @@ class Ut {
6444
6460
  let r = 0, u = 0;
6445
6461
  for (let i = 0; r < this.children.length; r++) {
6446
6462
  let s = this.children[r], o = i + s.size;
6447
- if (o > e || s instanceof Ps) {
6463
+ if (o > e || s instanceof vs) {
6448
6464
  u = e - i;
6449
6465
  break;
6450
6466
  }
@@ -6452,18 +6468,18 @@ class Ut {
6452
6468
  }
6453
6469
  if (u)
6454
6470
  return this.children[r].domFromPos(u - this.children[r].border, n);
6455
- for (let i; r && !(i = this.children[r - 1]).size && i instanceof vs && i.side >= 0; r--)
6471
+ for (let i; r && !(i = this.children[r - 1]).size && i instanceof zs && i.side >= 0; r--)
6456
6472
  ;
6457
6473
  if (n <= 0) {
6458
6474
  let i, s = !0;
6459
6475
  for (; i = r ? this.children[r - 1] : null, !(!i || i.dom.parentNode == this.contentDOM); r--, s = !1)
6460
6476
  ;
6461
- return i && n && s && !i.border && !i.domAtom ? i.domFromPos(i.size, n) : { node: this.contentDOM, offset: i ? V(i.dom) + 1 : 0 };
6477
+ return i && n && s && !i.border && !i.domAtom ? i.domFromPos(i.size, n) : { node: this.contentDOM, offset: i ? q(i.dom) + 1 : 0 };
6462
6478
  } else {
6463
6479
  let i, s = !0;
6464
6480
  for (; i = r < this.children.length ? this.children[r] : null, !(!i || i.dom.parentNode == this.contentDOM); r++, s = !1)
6465
6481
  ;
6466
- return i && s && !i.border && !i.domAtom ? i.domFromPos(0, n) : { node: this.contentDOM, offset: i ? V(i.dom) : this.contentDOM.childNodes.length };
6482
+ return i && s && !i.border && !i.domAtom ? i.domFromPos(0, n) : { node: this.contentDOM, offset: i ? q(i.dom) : this.contentDOM.childNodes.length };
6467
6483
  }
6468
6484
  }
6469
6485
  // Used to find a DOM range in a single parent for a given changed
@@ -6482,7 +6498,7 @@ class Ut {
6482
6498
  for (let f = o; f > 0; f--) {
6483
6499
  let p = this.children[f - 1];
6484
6500
  if (p.size && p.dom.parentNode == this.contentDOM && !p.emptyChildAt(1)) {
6485
- u = V(p.dom) + 1;
6501
+ u = q(p.dom) + 1;
6486
6502
  break;
6487
6503
  }
6488
6504
  e -= p.size;
@@ -6494,7 +6510,7 @@ class Ut {
6494
6510
  for (let c = o + 1; c < this.children.length; c++) {
6495
6511
  let f = this.children[c];
6496
6512
  if (f.size && f.dom.parentNode == this.contentDOM && !f.emptyChildAt(-1)) {
6497
- i = V(f.dom);
6513
+ i = q(f.dom);
6498
6514
  break;
6499
6515
  }
6500
6516
  n += f.size;
@@ -6532,14 +6548,14 @@ class Ut {
6532
6548
  d = g;
6533
6549
  }
6534
6550
  let o = this.domFromPos(e, e ? -1 : 1), l = n == e ? o : this.domFromPos(n, n ? -1 : 1), a = r.root.getSelection(), c = r.domSelectionRange(), f = !1;
6535
- if ((se || W) && e == n) {
6551
+ if ((se || J) && e == n) {
6536
6552
  let { node: h, offset: d } = o;
6537
6553
  if (h.nodeType == 3) {
6538
6554
  if (f = !!(d && h.nodeValue[d - 1] == `
6539
6555
  `), f && d == h.nodeValue.length)
6540
6556
  for (let m = h, g; m; m = m.parentNode) {
6541
6557
  if (g = m.nextSibling) {
6542
- g.nodeName == "BR" && (o = l = { node: g.parentNode, offset: V(g) + 1 });
6558
+ g.nodeName == "BR" && (o = l = { node: g.parentNode, offset: q(g) + 1 });
6543
6559
  break;
6544
6560
  }
6545
6561
  let b = m.pmViewDesc;
@@ -6555,7 +6571,7 @@ class Ut {
6555
6571
  let h = c.focusNode.childNodes[c.focusOffset];
6556
6572
  h && h.contentEditable == "false" && (u = !0);
6557
6573
  }
6558
- if (!(u || f && W) && rt(o.node, o.offset, c.anchorNode, c.anchorOffset) && rt(l.node, l.offset, c.focusNode, c.focusOffset))
6574
+ if (!(u || f && J) && rt(o.node, o.offset, c.anchorNode, c.anchorOffset) && rt(l.node, l.offset, c.focusNode, c.focusOffset))
6559
6575
  return;
6560
6576
  let p = !1;
6561
6577
  if ((a.extend || e == n) && !(f && se)) {
@@ -6617,7 +6633,7 @@ class Ut {
6617
6633
  return !1;
6618
6634
  }
6619
6635
  }
6620
- class vs extends Ut {
6636
+ class zs extends Ut {
6621
6637
  constructor(e, n, r, u) {
6622
6638
  let i, s = n.type.toDOM;
6623
6639
  if (typeof s == "function" && (s = s(r, () => {
@@ -6741,7 +6757,7 @@ class qe extends Ut {
6741
6757
  } else c || ({ dom: c, contentDOM: f } = Ct.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
6742
6758
  !f && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
6743
6759
  let p = c;
6744
- return c = Vs(c, r, n), a ? l = new Qa(e, n, r, u, c, f || null, p, a, i, s + 1) : n.isText ? new Tn(e, n, r, u, c, p, i) : new qe(e, n, r, u, c, f || null, p, i, s + 1);
6760
+ return c = qs(c, r, n), a ? l = new Qa(e, n, r, u, c, f || null, p, a, i, s + 1) : n.isText ? new Tn(e, n, r, u, c, p, i) : new qe(e, n, r, u, c, f || null, p, i, s + 1);
6745
6761
  }
6746
6762
  parseRule() {
6747
6763
  if (this.node.type.spec.reparseInView)
@@ -6784,7 +6800,7 @@ class qe extends Ut {
6784
6800
  l.syncToMarks(a.marks, r, e, p);
6785
6801
  let h;
6786
6802
  l.findNodeMatch(a, c, f, p) || o && e.state.selection.from > u && e.state.selection.to < u + a.nodeSize && (h = l.findIndexWithChild(i.node)) > -1 && l.updateNodeAt(a, c, f, h, e) || l.updateNextNode(a, c, f, e, p, u) || l.addNode(a, c, f, e, u), u += a.nodeSize;
6787
- }), l.syncToMarks([], r, e, 0), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Ke) && (s && this.protectLocalComposition(e, s), Ls(this.contentDOM, this.children, e), xt && ic(this.dom));
6803
+ }), l.syncToMarks([], r, e, 0), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Ke) && (s && this.protectLocalComposition(e, s), Ps(this.contentDOM, this.children, e), xt && ic(this.dom));
6788
6804
  }
6789
6805
  localCompositionInfo(e, n) {
6790
6806
  let { from: r, to: u } = e.state.selection;
@@ -6825,7 +6841,7 @@ class qe extends Ut {
6825
6841
  if (mn(e, this.outerDeco))
6826
6842
  return;
6827
6843
  let n = this.nodeDOM.nodeType != 1, r = this.dom;
6828
- this.dom = qs(this.dom, this.nodeDOM, Ar(this.outerDeco, this.node, n), Ar(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
6844
+ this.dom = Ls(this.dom, this.nodeDOM, Ar(this.outerDeco, this.node, n), Ar(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
6829
6845
  }
6830
6846
  // Mark this node as being the selected node.
6831
6847
  selectNode() {
@@ -6840,7 +6856,7 @@ class qe extends Ut {
6840
6856
  }
6841
6857
  }
6842
6858
  function Lu(t, e, n, r, u) {
6843
- Vs(r, e, t);
6859
+ qs(r, e, t);
6844
6860
  let i = new qe(void 0, t, e, n, r, r, r, u, 0);
6845
6861
  return i.contentDOM && i.updateChildren(u, 0), i;
6846
6862
  }
@@ -6887,7 +6903,7 @@ class Tn extends qe {
6887
6903
  return this.node.text == e;
6888
6904
  }
6889
6905
  }
6890
- class Ps extends Ut {
6906
+ class vs extends Ut {
6891
6907
  parseRule() {
6892
6908
  return { ignore: !0 };
6893
6909
  }
@@ -6935,7 +6951,7 @@ class Qa extends qe {
6935
6951
  return this.spec.ignoreMutation ? this.spec.ignoreMutation(e) : super.ignoreMutation(e);
6936
6952
  }
6937
6953
  }
6938
- function Ls(t, e, n) {
6954
+ function Ps(t, e, n) {
6939
6955
  let r = t.firstChild, u = !1;
6940
6956
  for (let i = 0; i < e.length; i++) {
6941
6957
  let s = e[i], o = s.dom;
@@ -6947,7 +6963,7 @@ function Ls(t, e, n) {
6947
6963
  u = !0, t.insertBefore(o, r);
6948
6964
  if (s instanceof ut) {
6949
6965
  let l = r ? r.previousSibling : t.lastChild;
6950
- Ls(s.contentDOM, s.children, n), r = l ? l.nextSibling : t.firstChild;
6966
+ Ps(s.contentDOM, s.children, n), r = l ? l.nextSibling : t.firstChild;
6951
6967
  }
6952
6968
  }
6953
6969
  for (; r; )
@@ -6975,7 +6991,7 @@ function Ar(t, e, n) {
6975
6991
  }
6976
6992
  return u;
6977
6993
  }
6978
- function qs(t, e, n, r) {
6994
+ function Ls(t, e, n, r) {
6979
6995
  if (n == Ze && r == Ze)
6980
6996
  return e;
6981
6997
  let u = e;
@@ -7011,8 +7027,8 @@ function ec(t, e, n) {
7011
7027
  n.style && (t.style.cssText += n.style);
7012
7028
  }
7013
7029
  }
7014
- function Vs(t, e, n) {
7015
- return qs(t, t, Ze, Ar(e, n, t.nodeType != 1));
7030
+ function qs(t, e, n) {
7031
+ return Ls(t, t, Ze, Ar(e, n, t.nodeType != 1));
7016
7032
  }
7017
7033
  function mn(t, e) {
7018
7034
  if (t.length != e.length)
@@ -7150,7 +7166,7 @@ class tc {
7150
7166
  if (u && u.matchesWidget(e) && (e == u.widget || !u.widget.type.toDOM.parentNode))
7151
7167
  this.index++;
7152
7168
  else {
7153
- let i = new vs(this.top, e, n, r);
7169
+ let i = new zs(this.top, e, n, r);
7154
7170
  this.top.children.splice(this.index++, 0, i), this.changed = !0;
7155
7171
  }
7156
7172
  }
@@ -7161,7 +7177,7 @@ class tc {
7161
7177
  for (; e instanceof ut; )
7162
7178
  n = e, e = n.children[n.children.length - 1];
7163
7179
  (!e || // Empty textblock
7164
- !(e instanceof Tn) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((W || P) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
7180
+ !(e instanceof Tn) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((J || $) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
7165
7181
  }
7166
7182
  addHackNode(e, n) {
7167
7183
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
@@ -7169,7 +7185,7 @@ class tc {
7169
7185
  else {
7170
7186
  let r = document.createElement(e);
7171
7187
  e == "IMG" && (r.className = "ProseMirror-separator", r.alt = ""), e == "BR" && (r.className = "ProseMirror-trailingBreak");
7172
- let u = new Ps(this.top, [], r, null);
7188
+ let u = new vs(this.top, [], r, null);
7173
7189
  n != this.top ? n.children.push(u) : n.children.splice(this.index++, 0, u), this.changed = !0;
7174
7190
  }
7175
7191
  }
@@ -7305,9 +7321,9 @@ function jr(t, e = null) {
7305
7321
  for (l = s; u && !u.node; )
7306
7322
  u = u.parent;
7307
7323
  let f = u.node;
7308
- if (u && f.isAtom && E.isSelectable(f) && u.parent && !(f.isInline && Ia(n.focusNode, n.focusOffset, u.dom))) {
7324
+ if (u && f.isAtom && S.isSelectable(f) && u.parent && !(f.isInline && Ia(n.focusNode, n.focusOffset, u.dom))) {
7309
7325
  let p = u.posBefore;
7310
- a = new E(s == p ? o : r.resolve(p));
7326
+ a = new S(s == p ? o : r.resolve(p));
7311
7327
  }
7312
7328
  } else {
7313
7329
  if (n instanceof t.dom.ownerDocument.defaultView.Selection && n.rangeCount > 1) {
@@ -7331,13 +7347,13 @@ function jr(t, e = null) {
7331
7347
  }
7332
7348
  return a;
7333
7349
  }
7334
- function $s(t) {
7335
- return t.editable ? t.hasFocus() : Hs(t) && document.activeElement && document.activeElement.contains(t.dom);
7350
+ function Vs(t) {
7351
+ return t.editable ? t.hasFocus() : Ws(t) && document.activeElement && document.activeElement.contains(t.dom);
7336
7352
  }
7337
7353
  function Me(t, e = !1) {
7338
7354
  let n = t.state.selection;
7339
- if (Ws(t, n), !!$s(t)) {
7340
- if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && P) {
7355
+ if ($s(t, n), !!Vs(t)) {
7356
+ if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && $) {
7341
7357
  let r = t.domSelectionRange(), u = t.domObserver.currentSelection;
7342
7358
  if (r.anchorNode && u.anchorNode && rt(r.anchorNode, r.anchorOffset, u.anchorNode, u.anchorOffset)) {
7343
7359
  t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
@@ -7353,10 +7369,10 @@ function Me(t, e = !1) {
7353
7369
  t.domObserver.setCurSelection(), t.domObserver.connectSelection();
7354
7370
  }
7355
7371
  }
7356
- const Vu = W || P && Ts < 63;
7372
+ const Vu = J || $ && ws < 63;
7357
7373
  function $u(t, e) {
7358
7374
  let { node: n, offset: r } = t.docView.domFromPos(e, 0), u = r < n.childNodes.length ? n.childNodes[r] : null, i = r ? n.childNodes[r - 1] : null;
7359
- if (W && u && u.contentEditable == "false")
7375
+ if (J && u && u.contentEditable == "false")
7360
7376
  return Zn(u);
7361
7377
  if ((!u || u.contentEditable == "false") && (!i || i.contentEditable == "false")) {
7362
7378
  if (u)
@@ -7366,7 +7382,7 @@ function $u(t, e) {
7366
7382
  }
7367
7383
  }
7368
7384
  function Zn(t) {
7369
- return t.contentEditable = "true", W && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
7385
+ return t.contentEditable = "true", J && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
7370
7386
  }
7371
7387
  function Wu(t) {
7372
7388
  t.contentEditable = "false", t.wasDraggable && (t.draggable = !0, t.wasDraggable = null);
@@ -7377,7 +7393,7 @@ function oc(t) {
7377
7393
  let n = t.domSelectionRange(), r = n.anchorNode, u = n.anchorOffset;
7378
7394
  e.addEventListener("selectionchange", t.input.hideSelectionGuard = () => {
7379
7395
  (n.anchorNode != r || n.anchorOffset != u) && (e.removeEventListener("selectionchange", t.input.hideSelectionGuard), setTimeout(() => {
7380
- (!$s(t) || t.state.selection.visible) && t.dom.classList.remove("ProseMirror-hideselection");
7396
+ (!Vs(t) || t.state.selection.visible) && t.dom.classList.remove("ProseMirror-hideselection");
7381
7397
  }, 20));
7382
7398
  });
7383
7399
  }
@@ -7386,10 +7402,10 @@ function lc(t) {
7386
7402
  if (!e)
7387
7403
  return;
7388
7404
  let n = t.cursorWrapper.dom, r = n.nodeName == "IMG";
7389
- r ? e.collapse(n.parentNode, V(n) + 1) : e.collapse(n, 0), !r && !t.state.selection.visible && G && Le <= 11 && (n.disabled = !0, n.disabled = !1);
7405
+ r ? e.collapse(n.parentNode, q(n) + 1) : e.collapse(n, 0), !r && !t.state.selection.visible && G && Le <= 11 && (n.disabled = !0, n.disabled = !1);
7390
7406
  }
7391
- function Ws(t, e) {
7392
- if (e instanceof E) {
7407
+ function $s(t, e) {
7408
+ if (e instanceof S) {
7393
7409
  let n = t.docView.descAt(e.from);
7394
7410
  n != t.lastSelectedViewDesc && (Hu(t), n && n.selectNode(), t.lastSelectedViewDesc = n);
7395
7411
  } else
@@ -7402,9 +7418,9 @@ function Ur(t, e, n, r) {
7402
7418
  return t.someProp("createSelectionBetween", (u) => u(t, e, n)) || O.between(e, n, r);
7403
7419
  }
7404
7420
  function Ju(t) {
7405
- return t.editable && !t.hasFocus() ? !1 : Hs(t);
7421
+ return t.editable && !t.hasFocus() ? !1 : Ws(t);
7406
7422
  }
7407
- function Hs(t) {
7423
+ function Ws(t) {
7408
7424
  let e = t.domSelectionRange();
7409
7425
  if (!e.anchorNode)
7410
7426
  return !1;
@@ -7437,17 +7453,17 @@ function ju(t, e, n) {
7437
7453
  } else if (r.empty) {
7438
7454
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
7439
7455
  let u = wr(t.state, e);
7440
- return u && u instanceof E ? Oe(t, u) : !1;
7456
+ return u && u instanceof S ? Oe(t, u) : !1;
7441
7457
  } else if (!(ue && n.indexOf("m") > -1)) {
7442
7458
  let u = r.$head, i = u.textOffset ? null : e < 0 ? u.nodeBefore : u.nodeAfter, s;
7443
7459
  if (!i || i.isText)
7444
7460
  return !1;
7445
7461
  let o = e < 0 ? u.pos - i.nodeSize : u.pos;
7446
- return i.isAtom || (s = t.docView.descAt(o)) && !s.contentDOM ? E.isSelectable(i) ? Oe(t, new E(e < 0 ? t.state.doc.resolve(u.pos - i.nodeSize) : u)) : jt ? Oe(t, new O(t.state.doc.resolve(e < 0 ? o : o + i.nodeSize))) : !1 : !1;
7462
+ return i.isAtom || (s = t.docView.descAt(o)) && !s.contentDOM ? S.isSelectable(i) ? Oe(t, new S(e < 0 ? t.state.doc.resolve(u.pos - i.nodeSize) : u)) : jt ? Oe(t, new O(t.state.doc.resolve(e < 0 ? o : o + i.nodeSize))) : !1 : !1;
7447
7463
  }
7448
7464
  } else return !1;
7449
7465
  else {
7450
- if (r instanceof E && r.node.isInline)
7466
+ if (r instanceof S && r.node.isInline)
7451
7467
  return Oe(t, new O(e > 0 ? r.$to : r.$from));
7452
7468
  {
7453
7469
  let u = wr(t.state, e);
@@ -7484,12 +7500,12 @@ function cc(t) {
7484
7500
  break;
7485
7501
  }
7486
7502
  } else {
7487
- if (Js(n))
7503
+ if (Hs(n))
7488
7504
  break;
7489
7505
  {
7490
7506
  let o = n.previousSibling;
7491
7507
  for (; o && Nt(o, -1); )
7492
- u = n.parentNode, i = V(o), o = o.previousSibling;
7508
+ u = n.parentNode, i = q(o), o = o.previousSibling;
7493
7509
  if (o)
7494
7510
  n = o, r = gn(n);
7495
7511
  else {
@@ -7516,12 +7532,12 @@ function fc(t) {
7516
7532
  else
7517
7533
  break;
7518
7534
  } else {
7519
- if (Js(n))
7535
+ if (Hs(n))
7520
7536
  break;
7521
7537
  {
7522
7538
  let o = n.nextSibling;
7523
7539
  for (; o && Nt(o, 1); )
7524
- i = o.parentNode, s = V(o) + 1, o = o.nextSibling;
7540
+ i = o.parentNode, s = q(o) + 1, o = o.nextSibling;
7525
7541
  if (o)
7526
7542
  n = o, r = 0, u = gn(n);
7527
7543
  else {
@@ -7533,13 +7549,13 @@ function fc(t) {
7533
7549
  }
7534
7550
  i && Tr(t, i, s);
7535
7551
  }
7536
- function Js(t) {
7552
+ function Hs(t) {
7537
7553
  let e = t.pmViewDesc;
7538
7554
  return e && e.node && e.node.isBlock;
7539
7555
  }
7540
7556
  function dc(t, e) {
7541
7557
  for (; t && e == t.childNodes.length && !Jt(t); )
7542
- e = V(t) + 1, t = t.parentNode;
7558
+ e = q(t) + 1, t = t.parentNode;
7543
7559
  for (; t && e < t.childNodes.length; ) {
7544
7560
  let n = t.childNodes[e];
7545
7561
  if (n.nodeType == 3)
@@ -7551,7 +7567,7 @@ function dc(t, e) {
7551
7567
  }
7552
7568
  function hc(t, e) {
7553
7569
  for (; t && !e && !Jt(t); )
7554
- e = V(t), t = t.parentNode;
7570
+ e = q(t), t = t.parentNode;
7555
7571
  for (; t && e; ) {
7556
7572
  let n = t.childNodes[e - 1];
7557
7573
  if (n.nodeType == 3)
@@ -7581,7 +7597,7 @@ function Tr(t, e, n) {
7581
7597
  }
7582
7598
  function Uu(t, e) {
7583
7599
  let n = t.state.doc.resolve(e);
7584
- if (!(P || Os) && n.parent.inlineContent) {
7600
+ if (!($ || Ts) && n.parent.inlineContent) {
7585
7601
  let u = t.coordsAtPos(e);
7586
7602
  if (e > n.start()) {
7587
7603
  let i = t.coordsAtPos(e - 1), s = (i.top + i.bottom) / 2;
@@ -7603,7 +7619,7 @@ function Ku(t, e, n) {
7603
7619
  let { $from: u, $to: i } = r;
7604
7620
  if (!u.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
7605
7621
  let s = wr(t.state, e);
7606
- if (s && s instanceof E)
7622
+ if (s && s instanceof S)
7607
7623
  return Oe(t, s);
7608
7624
  }
7609
7625
  if (!u.parent.inlineContent) {
@@ -7633,7 +7649,7 @@ function Gu(t, e, n) {
7633
7649
  t.domObserver.stop(), e.contentEditable = n, t.domObserver.start();
7634
7650
  }
7635
7651
  function pc(t) {
7636
- if (!W || t.state.selection.$head.parentOffset > 0)
7652
+ if (!J || t.state.selection.$head.parentOffset > 0)
7637
7653
  return !1;
7638
7654
  let { focusNode: e, focusOffset: n } = t.domSelectionRange();
7639
7655
  if (e && e.nodeType == 1 && n == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
@@ -7680,10 +7696,10 @@ function Kr(t, e) {
7680
7696
  let h = r.firstChild;
7681
7697
  n.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), r = h.content;
7682
7698
  }
7683
- let s = t.someProp("clipboardSerializer") || Ct.fromSchema(t.state.schema), o = Ys(), l = o.createElement("div");
7699
+ let s = t.someProp("clipboardSerializer") || Ct.fromSchema(t.state.schema), o = Gs(), l = o.createElement("div");
7684
7700
  l.appendChild(s.serializeFragment(r, { document: o }));
7685
7701
  let a = l.firstChild, c, f = 0;
7686
- for (; a && a.nodeType == 1 && (c = Gs[a.nodeName.toLowerCase()]); ) {
7702
+ for (; a && a.nodeType == 1 && (c = Zs[a.nodeName.toLowerCase()]); ) {
7687
7703
  for (let h = c.length - 1; h >= 0; h--) {
7688
7704
  let d = o.createElement(c[h]);
7689
7705
  for (; l.firstChild; )
@@ -7698,7 +7714,7 @@ function Kr(t, e) {
7698
7714
  `);
7699
7715
  return { dom: l, text: p, slice: e };
7700
7716
  }
7701
- function js(t, e, n, r, u) {
7717
+ function Js(t, e, n, r, u) {
7702
7718
  let i = u.parent.type.spec.code, s, o;
7703
7719
  if (!n && !e)
7704
7720
  return null;
@@ -7767,11 +7783,11 @@ function xc(t, e) {
7767
7783
  let l = u.findWrapping(o.type), a;
7768
7784
  if (!l)
7769
7785
  return s = null;
7770
- if (a = s.length && i.length && Ks(l, i, o, s[s.length - 1], 0))
7786
+ if (a = s.length && i.length && Us(l, i, o, s[s.length - 1], 0))
7771
7787
  s[s.length - 1] = a;
7772
7788
  else {
7773
- s.length && (s[s.length - 1] = Zs(s[s.length - 1], i.length));
7774
- let c = Us(o, l);
7789
+ s.length && (s[s.length - 1] = Ks(s[s.length - 1], i.length));
7790
+ let c = js(o, l);
7775
7791
  s.push(c), u = u.matchType(c.type), i = l;
7776
7792
  }
7777
7793
  }), s)
@@ -7779,24 +7795,24 @@ function xc(t, e) {
7779
7795
  }
7780
7796
  return t;
7781
7797
  }
7782
- function Us(t, e, n = 0) {
7798
+ function js(t, e, n = 0) {
7783
7799
  for (let r = e.length - 1; r >= n; r--)
7784
7800
  t = e[r].create(null, x.from(t));
7785
7801
  return t;
7786
7802
  }
7787
- function Ks(t, e, n, r, u) {
7803
+ function Us(t, e, n, r, u) {
7788
7804
  if (u < t.length && u < e.length && t[u] == e[u]) {
7789
- let i = Ks(t, e, n, r.lastChild, u + 1);
7805
+ let i = Us(t, e, n, r.lastChild, u + 1);
7790
7806
  if (i)
7791
7807
  return r.copy(r.content.replaceChild(r.childCount - 1, i));
7792
7808
  if (r.contentMatchAt(r.childCount).matchType(u == t.length - 1 ? n.type : t[u + 1]))
7793
- return r.copy(r.content.append(x.from(Us(n, t, u + 1))));
7809
+ return r.copy(r.content.append(x.from(js(n, t, u + 1))));
7794
7810
  }
7795
7811
  }
7796
- function Zs(t, e) {
7812
+ function Ks(t, e) {
7797
7813
  if (e == 0)
7798
7814
  return t;
7799
- let n = t.content.replaceChild(t.childCount - 1, Zs(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(x.empty, !0);
7815
+ let n = t.content.replaceChild(t.childCount - 1, Ks(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(x.empty, !0);
7800
7816
  return t.copy(n.append(r));
7801
7817
  }
7802
7818
  function Or(t, e, n, r, u, i) {
@@ -7806,7 +7822,7 @@ function Or(t, e, n, r, u, i) {
7806
7822
  function Yu(t, e, n) {
7807
7823
  return e < t.openStart && (t = new D(Or(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new D(Or(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
7808
7824
  }
7809
- const Gs = {
7825
+ const Zs = {
7810
7826
  thead: ["table"],
7811
7827
  tbody: ["table"],
7812
7828
  tfoot: ["table"],
@@ -7818,7 +7834,7 @@ const Gs = {
7818
7834
  th: ["table", "tbody", "tr"]
7819
7835
  };
7820
7836
  let Xu = null;
7821
- function Ys() {
7837
+ function Gs() {
7822
7838
  return Xu || (Xu = document.implementation.createHTMLDocument("title"));
7823
7839
  }
7824
7840
  let Gn = null;
@@ -7829,14 +7845,14 @@ function kc(t) {
7829
7845
  function yc(t) {
7830
7846
  let e = /^(\s*<meta [^>]*>)*/.exec(t);
7831
7847
  e && (t = t.slice(e[0].length));
7832
- let n = Ys().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(t), u;
7833
- if ((u = r && Gs[r[1].toLowerCase()]) && (t = u.map((i) => "<" + i + ">").join("") + t + u.map((i) => "</" + i + ">").reverse().join("")), n.innerHTML = kc(t), u)
7848
+ let n = Gs().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(t), u;
7849
+ if ((u = r && Zs[r[1].toLowerCase()]) && (t = u.map((i) => "<" + i + ">").join("") + t + u.map((i) => "</" + i + ">").reverse().join("")), n.innerHTML = kc(t), u)
7834
7850
  for (let i = 0; i < u.length; i++)
7835
7851
  n = n.querySelector(u[i]) || n;
7836
7852
  return n;
7837
7853
  }
7838
7854
  function Cc(t) {
7839
- let e = t.querySelectorAll(P ? "span:not([class]):not([style])" : "span.Apple-converted-space");
7855
+ let e = t.querySelectorAll($ ? "span:not([class]):not([style])" : "span.Apple-converted-space");
7840
7856
  for (let n = 0; n < e.length; n++) {
7841
7857
  let r = e[n];
7842
7858
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
@@ -7861,19 +7877,19 @@ function Dc(t, e) {
7861
7877
  return new D(u, i, s);
7862
7878
  }
7863
7879
  const K = {}, Z = {}, _c = { touchstart: !0, touchmove: !0 };
7864
- class Sc {
7880
+ class Ec {
7865
7881
  constructor() {
7866
7882
  this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "", button: 0 }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastChromeDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.badSafariComposition = !1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
7867
7883
  }
7868
7884
  }
7869
- function Ec(t) {
7885
+ function Sc(t) {
7870
7886
  for (let e in K) {
7871
7887
  let n = K[e];
7872
7888
  t.dom.addEventListener(e, t.input.eventHandlers[e] = (r) => {
7873
7889
  Mc(t, r) && !Zr(t, r) && (t.editable || !(r.type in Z)) && n(t, r);
7874
7890
  }, _c[e] ? { passive: !0 } : void 0);
7875
7891
  }
7876
- W && t.dom.addEventListener("input", () => null), Fr(t);
7892
+ J && t.dom.addEventListener("input", () => null), Fr(t);
7877
7893
  }
7878
7894
  function ve(t, e) {
7879
7895
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
@@ -7911,7 +7927,7 @@ function wc(t, e) {
7911
7927
  }
7912
7928
  Z.keydown = (t, e) => {
7913
7929
  let n = e;
7914
- if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Qs(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Ae && P && n.keyCode == 13)))
7930
+ if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Xs(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Ae && $ && n.keyCode == 13)))
7915
7931
  if (n.keyCode != 229 && t.domObserver.forceFlush(), xt && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
7916
7932
  let r = Date.now();
7917
7933
  t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -7924,7 +7940,7 @@ Z.keyup = (t, e) => {
7924
7940
  };
7925
7941
  Z.keypress = (t, e) => {
7926
7942
  let n = e;
7927
- if (Qs(t, n) || !n.charCode || n.ctrlKey && !n.altKey || ue && n.metaKey)
7943
+ if (Xs(t, n) || !n.charCode || n.ctrlKey && !n.altKey || ue && n.metaKey)
7928
7944
  return;
7929
7945
  if (t.someProp("handleKeyPress", (u) => u(t, n))) {
7930
7946
  n.preventDefault();
@@ -7962,22 +7978,22 @@ function Oc(t, e) {
7962
7978
  if (e == -1)
7963
7979
  return !1;
7964
7980
  let n = t.state.doc.resolve(e), r = n.nodeAfter;
7965
- return r && r.isAtom && E.isSelectable(r) ? (ht(t, new E(n)), !0) : !1;
7981
+ return r && r.isAtom && S.isSelectable(r) ? (ht(t, new S(n)), !0) : !1;
7966
7982
  }
7967
7983
  function Fc(t, e) {
7968
7984
  if (e == -1)
7969
7985
  return !1;
7970
7986
  let n = t.state.selection, r, u;
7971
- n instanceof E && (r = n.node);
7987
+ n instanceof S && (r = n.node);
7972
7988
  let i = t.state.doc.resolve(e);
7973
7989
  for (let s = i.depth + 1; s > 0; s--) {
7974
7990
  let o = s > i.depth ? i.nodeAfter : i.node(s);
7975
- if (E.isSelectable(o)) {
7991
+ if (S.isSelectable(o)) {
7976
7992
  r && n.$from.depth > 0 && s >= n.$from.depth && i.before(n.$from.depth + 1) == n.$from.pos ? u = i.before(n.$from.depth) : u = i.before(s);
7977
7993
  break;
7978
7994
  }
7979
7995
  }
7980
- return u != null ? (ht(t, E.create(t.state.doc, u)), !0) : !1;
7996
+ return u != null ? (ht(t, S.create(t.state.doc, u)), !0) : !1;
7981
7997
  }
7982
7998
  function Nc(t, e, n, r, u) {
7983
7999
  return Gr(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (i) => i(t, e, r)) || (u ? Fc(t, n) : Oc(t, n));
@@ -7999,8 +8015,8 @@ function Bc(t, e, n) {
7999
8015
  let s = i > u.depth ? u.nodeAfter : u.node(i), o = u.before(i);
8000
8016
  if (s.inlineContent)
8001
8017
  ht(t, O.create(r, o + 1, o + 1 + s.content.size));
8002
- else if (E.isSelectable(s))
8003
- ht(t, E.create(r, o));
8018
+ else if (S.isSelectable(s))
8019
+ ht(t, S.create(r, o));
8004
8020
  else
8005
8021
  continue;
8006
8022
  return !0;
@@ -8009,18 +8025,18 @@ function Bc(t, e, n) {
8009
8025
  function Yr(t) {
8010
8026
  return bn(t);
8011
8027
  }
8012
- const Xs = ue ? "metaKey" : "ctrlKey";
8028
+ const Ys = ue ? "metaKey" : "ctrlKey";
8013
8029
  K.mousedown = (t, e) => {
8014
8030
  let n = e;
8015
8031
  t.input.shiftKey = n.shiftKey;
8016
8032
  let r = Yr(t), u = Date.now(), i = "singleClick";
8017
- u - t.input.lastClick.time < 500 && Tc(n, t.input.lastClick) && !n[Xs] && t.input.lastClick.button == n.button && (t.input.lastClick.type == "singleClick" ? i = "doubleClick" : t.input.lastClick.type == "doubleClick" && (i = "tripleClick")), t.input.lastClick = { time: u, x: n.clientX, y: n.clientY, type: i, button: n.button };
8033
+ u - t.input.lastClick.time < 500 && Tc(n, t.input.lastClick) && !n[Ys] && t.input.lastClick.button == n.button && (t.input.lastClick.type == "singleClick" ? i = "doubleClick" : t.input.lastClick.type == "doubleClick" && (i = "tripleClick")), t.input.lastClick = { time: u, x: n.clientX, y: n.clientY, type: i, button: n.button };
8018
8034
  let s = t.posAtCoords(On(n));
8019
8035
  s && (i == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new zc(t, s, n, !!r)) : (i == "doubleClick" ? Ic : Rc)(t, s.pos, s.inside, n) ? n.preventDefault() : ve(t, "pointer"));
8020
8036
  };
8021
8037
  class zc {
8022
8038
  constructor(e, n, r, u) {
8023
- this.view = e, this.pos = n, this.event = r, this.flushed = u, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[Xs], this.allowDefault = r.shiftKey;
8039
+ this.view = e, this.pos = n, this.event = r, this.flushed = u, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[Ys], this.allowDefault = r.shiftKey;
8024
8040
  let i, s;
8025
8041
  if (n.inside > -1)
8026
8042
  i = e.state.doc.nodeAt(n.inside), s = n.inside;
@@ -8031,7 +8047,7 @@ class zc {
8031
8047
  const o = u ? null : r.target, l = o ? e.docView.nearestDesc(o, !0) : null;
8032
8048
  this.target = l && l.nodeDOM.nodeType == 1 ? l.nodeDOM : null;
8033
8049
  let { selection: a } = e.state;
8034
- (r.button == 0 && i.type.spec.draggable && i.type.spec.selectable !== !1 || a instanceof E && a.from <= s && a.to > s) && (this.mightDrag = {
8050
+ (r.button == 0 && i.type.spec.draggable && i.type.spec.selectable !== !1 || a instanceof S && a.from <= s && a.to > s) && (this.mightDrag = {
8035
8051
  node: i,
8036
8052
  pos: s,
8037
8053
  addAttr: !!(this.target && !this.target.draggable),
@@ -8048,14 +8064,14 @@ class zc {
8048
8064
  return;
8049
8065
  let n = this.pos;
8050
8066
  this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(On(e))), this.updateAllowDefault(e), this.allowDefault || !n ? ve(this.view, "pointer") : Nc(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
8051
- W && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
8067
+ J && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
8052
8068
  // cursor, but still report that the node is selected
8053
8069
  // when asked through getSelection. You'll then get a
8054
8070
  // situation where clicking at the point where that
8055
8071
  // (hidden) cursor is doesn't change the selection, and
8056
8072
  // thus doesn't get a reaction from ProseMirror. This
8057
8073
  // works around that.
8058
- P && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (ht(this.view, T.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : ve(this.view, "pointer");
8074
+ $ && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (ht(this.view, T.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : ve(this.view, "pointer");
8059
8075
  }
8060
8076
  move(e) {
8061
8077
  this.updateAllowDefault(e), ve(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -8071,15 +8087,15 @@ K.touchmove = (t) => {
8071
8087
  t.input.lastTouch = Date.now(), ve(t, "pointer");
8072
8088
  };
8073
8089
  K.contextmenu = (t) => Yr(t);
8074
- function Qs(t, e) {
8075
- return t.composing ? !0 : W && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
8090
+ function Xs(t, e) {
8091
+ return t.composing ? !0 : J && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
8076
8092
  }
8077
8093
  const vc = Ae ? 5e3 : -1;
8078
8094
  Z.compositionstart = Z.compositionupdate = (t) => {
8079
8095
  if (!t.composing) {
8080
8096
  t.domObserver.flush();
8081
8097
  let { state: e } = t, n = e.selection.$to;
8082
- if (e.selection instanceof O && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || P && Os && Pc(t)))
8098
+ if (e.selection instanceof O && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || $ && Ts && Pc(t)))
8083
8099
  t.markCursor = t.state.storedMarks || n.marks(), bn(t, !0), t.markCursor = null;
8084
8100
  else if (bn(t, !e.selection.empty), se && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
8085
8101
  let r = t.domSelectionRange();
@@ -8097,7 +8113,7 @@ Z.compositionstart = Z.compositionupdate = (t) => {
8097
8113
  }
8098
8114
  t.input.composing = !0;
8099
8115
  }
8100
- eo(t, vc);
8116
+ Qs(t, vc);
8101
8117
  };
8102
8118
  function Pc(t) {
8103
8119
  let { focusNode: e, focusOffset: n } = t.domSelectionRange();
@@ -8107,12 +8123,12 @@ function Pc(t) {
8107
8123
  return r.nodeType == 1 && r.contentEditable == "false";
8108
8124
  }
8109
8125
  Z.compositionend = (t, e) => {
8110
- t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.badSafariComposition ? t.domObserver.forceFlush() : t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, eo(t, 20));
8126
+ t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.badSafariComposition ? t.domObserver.forceFlush() : t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, Qs(t, 20));
8111
8127
  };
8112
- function eo(t, e) {
8128
+ function Qs(t, e) {
8113
8129
  clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => bn(t), e));
8114
8130
  }
8115
- function to(t) {
8131
+ function eo(t) {
8116
8132
  for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = qc()); t.input.compositionNodes.length > 0; )
8117
8133
  t.input.compositionNodes.pop().markParentsDirty();
8118
8134
  }
@@ -8141,7 +8157,7 @@ function qc() {
8141
8157
  }
8142
8158
  function bn(t, e = !1) {
8143
8159
  if (!(Ae && t.domObserver.flushingSoon >= 0)) {
8144
- if (t.domObserver.forceFlush(), to(t), e || t.docView && t.docView.dirty) {
8160
+ if (t.domObserver.forceFlush(), eo(t), e || t.docView && t.docView.dirty) {
8145
8161
  let n = jr(t), r = t.state.selection;
8146
8162
  return n && !n.eq(r) ? t.dispatch(t.state.tr.setSelection(n)) : (t.markCursor || e) && !r.$from.node(r.$from.sharedDepth(r.to)).inlineContent ? t.dispatch(t.state.tr.deleteSelection()) : t.updateState(t.state), !0;
8147
8163
  }
@@ -8180,7 +8196,7 @@ function Wc(t, e) {
8180
8196
  }, 50);
8181
8197
  }
8182
8198
  function Lt(t, e, n, r, u) {
8183
- let i = js(t, e, n, r, t.state.selection.$from);
8199
+ let i = Js(t, e, n, r, t.state.selection.$from);
8184
8200
  if (t.someProp("handlePaste", (l) => l(t, u, i || D.empty)))
8185
8201
  return !0;
8186
8202
  if (!i)
@@ -8188,7 +8204,7 @@ function Lt(t, e, n, r, u) {
8188
8204
  let s = $c(i), o = s ? t.state.tr.replaceSelectionWith(s, r) : t.state.tr.replaceSelection(i);
8189
8205
  return t.dispatch(o.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
8190
8206
  }
8191
- function no(t) {
8207
+ function to(t) {
8192
8208
  let e = t.getData("text/plain") || t.getData("Text");
8193
8209
  if (e)
8194
8210
  return e;
@@ -8200,15 +8216,15 @@ Z.paste = (t, e) => {
8200
8216
  if (t.composing && !Ae)
8201
8217
  return;
8202
8218
  let r = Pt ? null : n.clipboardData, u = t.input.shiftKey && t.input.lastKeyCode != 45;
8203
- r && Lt(t, no(r), r.getData("text/html"), u, n) ? n.preventDefault() : Wc(t, n);
8219
+ r && Lt(t, to(r), r.getData("text/html"), u, n) ? n.preventDefault() : Wc(t, n);
8204
8220
  };
8205
- class ro {
8221
+ class no {
8206
8222
  constructor(e, n, r) {
8207
8223
  this.slice = e, this.move = n, this.node = r;
8208
8224
  }
8209
8225
  }
8210
8226
  const Hc = ue ? "altKey" : "ctrlKey";
8211
- function uo(t, e) {
8227
+ function ro(t, e) {
8212
8228
  let n = t.someProp("dragCopies", (r) => !r(e));
8213
8229
  return n ?? !e[Hc];
8214
8230
  }
@@ -8217,16 +8233,16 @@ K.dragstart = (t, e) => {
8217
8233
  if (r && r.done(), !n.dataTransfer)
8218
8234
  return;
8219
8235
  let u = t.state.selection, i = u.empty ? null : t.posAtCoords(On(n)), s;
8220
- if (!(i && i.pos >= u.from && i.pos <= (u instanceof E ? u.to - 1 : u.to))) {
8236
+ if (!(i && i.pos >= u.from && i.pos <= (u instanceof S ? u.to - 1 : u.to))) {
8221
8237
  if (r && r.mightDrag)
8222
- s = E.create(t.state.doc, r.mightDrag.pos);
8238
+ s = S.create(t.state.doc, r.mightDrag.pos);
8223
8239
  else if (n.target && n.target.nodeType == 1) {
8224
8240
  let f = t.docView.nearestDesc(n.target, !0);
8225
- f && f.node.type.spec.draggable && f != t.docView && (s = E.create(t.state.doc, f.posBefore));
8241
+ f && f.node.type.spec.draggable && f != t.docView && (s = S.create(t.state.doc, f.posBefore));
8226
8242
  }
8227
8243
  }
8228
8244
  let o = (s || t.state.selection).content(), { dom: l, text: a, slice: c } = Kr(t, o);
8229
- (!n.dataTransfer.files.length || !P || Ts > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Pt ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Pt || n.dataTransfer.setData("text/plain", a), t.dragging = new ro(c, uo(t, n), s);
8245
+ (!n.dataTransfer.files.length || !$ || ws > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Pt ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Pt || n.dataTransfer.setData("text/plain", a), t.dragging = new no(c, ro(t, n), s);
8230
8246
  };
8231
8247
  K.dragend = (t) => {
8232
8248
  let e = t.dragging;
@@ -8251,8 +8267,8 @@ function Jc(t, e, n) {
8251
8267
  let u = t.state.doc.resolve(r.pos), i = n && n.slice;
8252
8268
  i ? t.someProp("transformPasted", (h) => {
8253
8269
  i = h(i, t, !1);
8254
- }) : i = js(t, no(e.dataTransfer), Pt ? null : e.dataTransfer.getData("text/html"), !1, u);
8255
- let s = !!(n && uo(t, e));
8270
+ }) : i = Js(t, to(e.dataTransfer), Pt ? null : e.dataTransfer.getData("text/html"), !1, u);
8271
+ let s = !!(n && ro(t, e));
8256
8272
  if (t.someProp("handleDrop", (h) => h(t, e, i || D.empty, s))) {
8257
8273
  e.preventDefault();
8258
8274
  return;
@@ -8271,8 +8287,8 @@ function Jc(t, e, n) {
8271
8287
  if (c ? l.replaceRangeWith(a, a, i.content.firstChild) : l.replaceRange(a, a, i), l.doc.eq(f))
8272
8288
  return;
8273
8289
  let p = l.doc.resolve(a);
8274
- if (c && E.isSelectable(i.content.firstChild) && p.nodeAfter && p.nodeAfter.sameMarkup(i.content.firstChild))
8275
- l.setSelection(new E(p));
8290
+ if (c && S.isSelectable(i.content.firstChild) && p.nodeAfter && p.nodeAfter.sameMarkup(i.content.firstChild))
8291
+ l.setSelection(new S(p));
8276
8292
  else {
8277
8293
  let h = l.mapping.map(o);
8278
8294
  l.mapping.maps[l.mapping.maps.length - 1].forEach((d, m, g, b) => h = b), l.setSelection(Ur(t, p, l.doc.resolve(h)));
@@ -8289,7 +8305,7 @@ K.blur = (t, e) => {
8289
8305
  t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
8290
8306
  };
8291
8307
  K.beforeinput = (t, e) => {
8292
- if (P && Ae && e.inputType == "deleteContentBackward") {
8308
+ if ($ && Ae && e.inputType == "deleteContentBackward") {
8293
8309
  t.domObserver.flushSoon();
8294
8310
  let { domChangeCount: r } = t.input;
8295
8311
  setTimeout(() => {
@@ -8457,7 +8473,7 @@ class z {
8457
8473
  you must make a copy if you want need to preserve that.
8458
8474
  */
8459
8475
  static create(e, n) {
8460
- return n.length ? kn(n, e, 0, Xe) : H;
8476
+ return n.length ? kn(n, e, 0, Xe) : W;
8461
8477
  }
8462
8478
  /**
8463
8479
  Find all decorations in this set which touch the given range
@@ -8487,7 +8503,7 @@ class z {
8487
8503
  document.
8488
8504
  */
8489
8505
  map(e, n, r) {
8490
- return this == H || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Xe);
8506
+ return this == W || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Xe);
8491
8507
  }
8492
8508
  /**
8493
8509
  @internal
@@ -8498,7 +8514,7 @@ class z {
8498
8514
  let l = this.local[o].map(e, r, u);
8499
8515
  l && l.type.valid(n, l) ? (s || (s = [])).push(l) : i.onRemove && i.onRemove(this.local[o].spec);
8500
8516
  }
8501
- return this.children.length ? jc(this.children, s || [], e, n, r, u, i) : s ? new z(s.sort(Qe), ft) : H;
8517
+ return this.children.length ? jc(this.children, s || [], e, n, r, u, i) : s ? new z(s.sort(Qe), ft) : W;
8502
8518
  }
8503
8519
  /**
8504
8520
  Add the given array of decorations to the ones in the set,
@@ -8507,19 +8523,19 @@ class z {
8507
8523
  structure.
8508
8524
  */
8509
8525
  add(e, n) {
8510
- return n.length ? this == H ? z.create(e, n) : this.addInner(e, n, 0) : this;
8526
+ return n.length ? this == W ? z.create(e, n) : this.addInner(e, n, 0) : this;
8511
8527
  }
8512
8528
  addInner(e, n, r) {
8513
8529
  let u, i = 0;
8514
8530
  e.forEach((o, l) => {
8515
8531
  let a = l + r, c;
8516
- if (c = so(n, o, a)) {
8532
+ if (c = io(n, o, a)) {
8517
8533
  for (u || (u = this.children.slice()); i < u.length && u[i] < l; )
8518
8534
  i += 3;
8519
8535
  u[i] == l ? u[i + 2] = u[i + 2].addInner(o, c, a + 1) : u.splice(i, 0, l, l + o.nodeSize, kn(c, o, a + 1, Xe)), i += 3;
8520
8536
  }
8521
8537
  });
8522
- let s = io(i ? oo(n) : n, -r);
8538
+ let s = uo(i ? so(n) : n, -r);
8523
8539
  for (let o = 0; o < s.length; o++)
8524
8540
  s[o].type.valid(e, s[o]) || s.splice(o--, 1);
8525
8541
  return new z(s.length ? this.local.concat(s).sort(Qe) : this.local, u || this.children);
@@ -8529,7 +8545,7 @@ class z {
8529
8545
  the ones in the given array.
8530
8546
  */
8531
8547
  remove(e) {
8532
- return e.length == 0 || this == H ? this : this.removeInner(e, 0);
8548
+ return e.length == 0 || this == W ? this : this.removeInner(e, 0);
8533
8549
  }
8534
8550
  removeInner(e, n) {
8535
8551
  let r = this.children, u = this.local;
@@ -8541,7 +8557,7 @@ class z {
8541
8557
  continue;
8542
8558
  r == this.children && (r = this.children.slice());
8543
8559
  let a = r[i + 2].removeInner(s, o + 1);
8544
- a != H ? r[i + 2] = a : (r.splice(i, 3), i -= 3);
8560
+ a != W ? r[i + 2] = a : (r.splice(i, 3), i -= 3);
8545
8561
  }
8546
8562
  if (u.length) {
8547
8563
  for (let i = 0, s; i < e.length; i++)
@@ -8549,10 +8565,10 @@ class z {
8549
8565
  for (let o = 0; o < u.length; o++)
8550
8566
  u[o].eq(s, n) && (u == this.local && (u = this.local.slice()), u.splice(o--, 1));
8551
8567
  }
8552
- return r == this.children && u == this.local ? this : u.length || r.length ? new z(u, r) : H;
8568
+ return r == this.children && u == this.local ? this : u.length || r.length ? new z(u, r) : W;
8553
8569
  }
8554
8570
  forChild(e, n) {
8555
- if (this == H)
8571
+ if (this == W)
8556
8572
  return this;
8557
8573
  if (n.isLeaf)
8558
8574
  return z.empty;
@@ -8574,7 +8590,7 @@ class z {
8574
8590
  let o = new z(u.sort(Qe), ft);
8575
8591
  return r ? new Ie([o, r]) : o;
8576
8592
  }
8577
- return r || H;
8593
+ return r || W;
8578
8594
  }
8579
8595
  /**
8580
8596
  @internal
@@ -8602,7 +8618,7 @@ class z {
8602
8618
  @internal
8603
8619
  */
8604
8620
  localsInner(e) {
8605
- if (this == H)
8621
+ if (this == W)
8606
8622
  return ft;
8607
8623
  if (e.inlineContent || !this.local.some(Ve.is))
8608
8624
  return this.local;
@@ -8617,7 +8633,7 @@ class z {
8617
8633
  }
8618
8634
  z.empty = new z([], []);
8619
8635
  z.removeOverlap = Qr;
8620
- const H = z.empty;
8636
+ const W = z.empty;
8621
8637
  class Ie {
8622
8638
  constructor(e) {
8623
8639
  this.members = e;
@@ -8632,7 +8648,7 @@ class Ie {
8632
8648
  let r = [];
8633
8649
  for (let u = 0; u < this.members.length; u++) {
8634
8650
  let i = this.members[u].forChild(e, n);
8635
- i != H && (i instanceof Ie ? r = r.concat(i.members) : r.push(i));
8651
+ i != W && (i instanceof Ie ? r = r.concat(i.members) : r.push(i));
8636
8652
  }
8637
8653
  return Ie.from(r);
8638
8654
  }
@@ -8664,7 +8680,7 @@ class Ie {
8664
8680
  static from(e) {
8665
8681
  switch (e.length) {
8666
8682
  case 0:
8667
- return H;
8683
+ return W;
8668
8684
  case 1:
8669
8685
  return e[0];
8670
8686
  default:
@@ -8707,7 +8723,7 @@ function jc(t, e, n, r, u, i, s) {
8707
8723
  let p = n.map(t[a + 1] + i, -1), h = p - u, { index: d, offset: m } = r.content.findIndex(f), g = r.maybeChild(d);
8708
8724
  if (g && m == f && m + g.nodeSize == h) {
8709
8725
  let b = o[a + 2].mapInner(n, g, c + 1, t[a] + i + 1, s);
8710
- b != H ? (o[a] = f, o[a + 1] = h, o[a + 2] = b) : (o[a + 1] = -2, l = !0);
8726
+ b != W ? (o[a] = f, o[a + 1] = h, o[a + 2] = b) : (o[a + 1] = -2, l = !0);
8711
8727
  } else
8712
8728
  l = !0;
8713
8729
  }
@@ -8725,7 +8741,7 @@ function jc(t, e, n, r, u, i, s) {
8725
8741
  }
8726
8742
  return new z(e.sort(Qe), o);
8727
8743
  }
8728
- function io(t, e) {
8744
+ function uo(t, e) {
8729
8745
  if (!e || !t.length)
8730
8746
  return t;
8731
8747
  let n = [];
@@ -8748,7 +8764,7 @@ function Uc(t, e, n, r, u, i, s) {
8748
8764
  t[l + 1] == -1 && o(t[l + 2], e[l] + i + 1);
8749
8765
  return n;
8750
8766
  }
8751
- function so(t, e, n) {
8767
+ function io(t, e, n) {
8752
8768
  if (e.isLeaf)
8753
8769
  return null;
8754
8770
  let r = n + e.nodeSize, u = null;
@@ -8756,7 +8772,7 @@ function so(t, e, n) {
8756
8772
  (s = t[i]) && s.from > n && s.to < r && ((u || (u = [])).push(s), t[i] = null);
8757
8773
  return u;
8758
8774
  }
8759
- function oo(t) {
8775
+ function so(t) {
8760
8776
  let e = [];
8761
8777
  for (let n = 0; n < t.length; n++)
8762
8778
  t[n] != null && e.push(t[n]);
@@ -8765,17 +8781,17 @@ function oo(t) {
8765
8781
  function kn(t, e, n, r) {
8766
8782
  let u = [], i = !1;
8767
8783
  e.forEach((o, l) => {
8768
- let a = so(t, o, l + n);
8784
+ let a = io(t, o, l + n);
8769
8785
  if (a) {
8770
8786
  i = !0;
8771
8787
  let c = kn(a, o, n + l + 1, r);
8772
- c != H && u.push(l, l + o.nodeSize, c);
8788
+ c != W && u.push(l, l + o.nodeSize, c);
8773
8789
  }
8774
8790
  });
8775
- let s = io(i ? oo(t) : t, -n).sort(Qe);
8791
+ let s = uo(i ? so(t) : t, -n).sort(Qe);
8776
8792
  for (let o = 0; o < s.length; o++)
8777
8793
  s[o].type.valid(e, s[o]) || (r.onRemove && r.onRemove(s[o].spec), s.splice(o--, 1));
8778
- return s.length || u.length ? new z(s, u) : H;
8794
+ return s.length || u.length ? new z(s, u) : W;
8779
8795
  }
8780
8796
  function Qe(t, e) {
8781
8797
  return t.from - e.from || t.to - e.to;
@@ -8807,7 +8823,7 @@ function Yn(t) {
8807
8823
  let e = [];
8808
8824
  return t.someProp("decorations", (n) => {
8809
8825
  let r = n(t.state);
8810
- r && r != H && e.push(r);
8826
+ r && r != W && e.push(r);
8811
8827
  }), t.cursorWrapper && e.push(z.create(t.state.doc, [t.cursorWrapper.deco])), Ie.from(e);
8812
8828
  }
8813
8829
  const Kc = {
@@ -8837,7 +8853,7 @@ class Yc {
8837
8853
  this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new Gc(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
8838
8854
  for (let u = 0; u < r.length; u++)
8839
8855
  this.queue.push(r[u]);
8840
- G && Le <= 11 && r.some((u) => u.type == "childList" && u.removedNodes.length || u.type == "characterData" && u.oldValue.length > u.target.nodeValue.length) ? this.flushSoon() : W && e.composing && r.some((u) => u.type == "childList" && u.target.nodeName == "TR") ? (e.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
8856
+ G && Le <= 11 && r.some((u) => u.type == "childList" && u.removedNodes.length || u.type == "characterData" && u.oldValue.length > u.target.nodeValue.length) ? this.flushSoon() : J && e.composing && r.some((u) => u.type == "childList" && u.target.nodeName == "TR") ? (e.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
8841
8857
  }), Zc && (this.onCharData = (r) => {
8842
8858
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
8843
8859
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
@@ -8925,7 +8941,13 @@ class Yc {
8925
8941
  let f = this.registerMutation(n[c], l);
8926
8942
  f && (i = i < 0 ? f.from : Math.min(f.from, i), s = s < 0 ? f.to : Math.max(f.to, s), f.typeOver && (o = !0));
8927
8943
  }
8928
- if (se && l.length) {
8944
+ if (l.some((c) => c.nodeName == "BR") && (e.input.lastKeyCode == 8 || e.input.lastKeyCode == 46)) {
8945
+ for (let c of l)
8946
+ if (c.nodeName == "BR" && c.parentNode) {
8947
+ let f = c.nextSibling;
8948
+ f && f.nodeType == 1 && f.contentEditable == "false" && c.parentNode.removeChild(c);
8949
+ }
8950
+ } else if (se && l.length) {
8929
8951
  let c = l.filter((f) => f.nodeName == "BR");
8930
8952
  if (c.length == 2) {
8931
8953
  let [f, p] = c;
@@ -8937,12 +8959,6 @@ class Yc {
8937
8959
  h && h.nodeName == "LI" && (!f || ef(e, f) != h) && p.remove();
8938
8960
  }
8939
8961
  }
8940
- } else if ((P || W) && l.some((c) => c.nodeName == "BR") && (e.input.lastKeyCode == 8 || e.input.lastKeyCode == 46)) {
8941
- for (let c of l)
8942
- if (c.nodeName == "BR" && c.parentNode) {
8943
- let f = c.nextSibling;
8944
- f && f.nodeType == 1 && f.contentEditable == "false" && c.parentNode.removeChild(c);
8945
- }
8946
8962
  }
8947
8963
  let a = null;
8948
8964
  i < 0 && u && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && wn(r) && (a = jr(e)) && a.eq(T.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Me(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || u) && (i > -1 && (e.docView.markDirty(i, s), Xc(e)), e.input.badSafariComposition && (e.input.badSafariComposition = !1, tf(e, l)), this.handleDOMChange(i, s, o, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Me(e), this.currentSelection.set(r));
@@ -8967,7 +8983,7 @@ class Yc {
8967
8983
  let { previousSibling: f, nextSibling: p } = e.addedNodes[c];
8968
8984
  (!f || Array.prototype.indexOf.call(e.addedNodes, f) < 0) && (u = f), (!p || Array.prototype.indexOf.call(e.addedNodes, p) < 0) && (i = p);
8969
8985
  }
8970
- let s = u && u.parentNode == e.target ? V(u) + 1 : 0, o = r.localPosFromDOM(e.target, s, -1), l = i && i.parentNode == e.target ? V(i) : e.target.childNodes.length, a = r.localPosFromDOM(e.target, l, 1);
8986
+ let s = u && u.parentNode == e.target ? q(u) + 1 : 0, o = r.localPosFromDOM(e.target, s, -1), l = i && i.parentNode == e.target ? q(i) : e.target.childNodes.length, a = r.localPosFromDOM(e.target, l, 1);
8971
8987
  return { from: o, to: a };
8972
8988
  } else return e.type == "attributes" ? { from: r.posAtStart - r.border, to: r.posAtEnd + r.border } : (this.lastChangedTextNode = e.target, {
8973
8989
  from: r.posAtStart,
@@ -9035,7 +9051,7 @@ function tf(t, e) {
9035
9051
  }
9036
9052
  function nf(t, e, n) {
9037
9053
  let { node: r, fromOffset: u, toOffset: i, from: s, to: o } = t.docView.parseRange(e, n), l = t.domSelectionRange(), a, c = l.anchorNode;
9038
- if (c && t.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (a = [{ node: c, offset: l.anchorOffset }], wn(l) || a.push({ node: l.focusNode, offset: l.focusOffset })), P && t.input.lastKeyCode === 8)
9054
+ if (c && t.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (a = [{ node: c, offset: l.anchorOffset }], wn(l) || a.push({ node: l.focusNode, offset: l.focusOffset })), $ && t.input.lastKeyCode === 8)
9039
9055
  for (let g = i; g > u; g--) {
9040
9056
  let b = r.childNodes[g - 1], k = b.pmViewDesc;
9041
9057
  if (b.nodeName == "BR" && !k) {
@@ -9067,10 +9083,10 @@ function rf(t) {
9067
9083
  if (e)
9068
9084
  return e.parseRule();
9069
9085
  if (t.nodeName == "BR" && t.parentNode) {
9070
- if (W && /^(ul|ol)$/i.test(t.parentNode.nodeName)) {
9086
+ if (J && /^(ul|ol)$/i.test(t.parentNode.nodeName)) {
9071
9087
  let n = document.createElement("div");
9072
9088
  return n.appendChild(document.createElement("li")), { skip: n };
9073
- } else if (t.parentNode.lastChild == t || W && /^(tr|table)$/i.test(t.parentNode.nodeName))
9089
+ } else if (t.parentNode.lastChild == t || J && /^(tr|table)$/i.test(t.parentNode.nodeName))
9074
9090
  return { ignore: !0 };
9075
9091
  } else if (t.nodeName == "IMG" && t.getAttribute("mark-placeholder"))
9076
9092
  return { ignore: !0 };
@@ -9082,7 +9098,7 @@ function sf(t, e, n, r, u) {
9082
9098
  if (t.input.compositionPendingChanges = 0, e < 0) {
9083
9099
  let C = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, M = jr(t, C);
9084
9100
  if (M && !t.state.selection.eq(M)) {
9085
- if (P && Ae && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (X) => X(t, je(13, "Enter"))))
9101
+ if ($ && Ae && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (X) => X(t, je(13, "Enter"))))
9086
9102
  return;
9087
9103
  let N = t.state.tr.setSelection(M);
9088
9104
  C == "pointer" ? N.setMeta("pointer", !0) : C == "key" && N.scrollIntoView(), i && N.setMeta("composition", i), t.dispatch(N);
@@ -9118,40 +9134,40 @@ function sf(t, e, n, r, u) {
9118
9134
  return;
9119
9135
  }
9120
9136
  if (t.state.selection.anchor > d.start && lf(c, d.start, d.endA, m, g) && t.someProp("handleKeyDown", (C) => C(t, je(8, "Backspace")))) {
9121
- Ae && P && t.domObserver.suppressSelectionUpdates();
9137
+ Ae && $ && t.domObserver.suppressSelectionUpdates();
9122
9138
  return;
9123
9139
  }
9124
- P && d.endB == d.start && (t.input.lastChromeDelete = Date.now()), Ae && !k && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && a.sel && a.sel.anchor == a.sel.head && a.sel.head == d.endA && (d.endB -= 2, g = a.doc.resolveNoCache(d.endB - a.from), setTimeout(() => {
9140
+ $ && d.endB == d.start && (t.input.lastChromeDelete = Date.now()), Ae && !k && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && a.sel && a.sel.anchor == a.sel.head && a.sel.head == d.endA && (d.endB -= 2, g = a.doc.resolveNoCache(d.endB - a.from), setTimeout(() => {
9125
9141
  t.someProp("handleKeyDown", function(C) {
9126
9142
  return C(t, je(13, "Enter"));
9127
9143
  });
9128
9144
  }, 20));
9129
- let y = d.start, _ = d.endA, S = (C) => {
9145
+ let y = d.start, _ = d.endA, E = (C) => {
9130
9146
  let M = C || t.state.tr.replace(y, _, a.doc.slice(d.start - a.from, d.endB - a.from));
9131
9147
  if (a.sel) {
9132
9148
  let N = ri(t, M.doc, a.sel);
9133
- N && !(P && t.composing && N.empty && (d.start != d.endB || t.input.lastChromeDelete < Date.now() - 100) && (N.head == y || N.head == M.mapping.map(_) - 1) || G && N.empty && N.head == y) && M.setSelection(N);
9149
+ N && !($ && t.composing && N.empty && (d.start != d.endB || t.input.lastChromeDelete < Date.now() - 100) && (N.head == y || N.head == M.mapping.map(_) - 1) || G && N.empty && N.head == y) && M.setSelection(N);
9134
9150
  }
9135
9151
  return i && M.setMeta("composition", i), M.scrollIntoView();
9136
9152
  }, A;
9137
9153
  if (k)
9138
9154
  if (m.pos == g.pos) {
9139
9155
  G && Le <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => Me(t), 20));
9140
- let C = S(t.state.tr.delete(y, _)), M = c.resolve(d.start).marksAcross(c.resolve(d.endA));
9156
+ let C = E(t.state.tr.delete(y, _)), M = c.resolve(d.start).marksAcross(c.resolve(d.endA));
9141
9157
  M && C.ensureMarks(M), t.dispatch(C);
9142
9158
  } else if (
9143
9159
  // Adding or removing a mark
9144
9160
  d.endA == d.endB && (A = of(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, d.endA - b.start())))
9145
9161
  ) {
9146
- let C = S(t.state.tr);
9162
+ let C = E(t.state.tr);
9147
9163
  A.type == "add" ? C.addMark(y, _, A.mark) : C.removeMark(y, _, A.mark), t.dispatch(C);
9148
9164
  } else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
9149
- let C = m.parent.textBetween(m.parentOffset, g.parentOffset), M = () => S(t.state.tr.insertText(C, y, _));
9165
+ let C = m.parent.textBetween(m.parentOffset, g.parentOffset), M = () => E(t.state.tr.insertText(C, y, _));
9150
9166
  t.someProp("handleTextInput", (N) => N(t, y, _, C, M)) || t.dispatch(M());
9151
9167
  } else
9152
- t.dispatch(S());
9168
+ t.dispatch(E());
9153
9169
  else
9154
- t.dispatch(S());
9170
+ t.dispatch(E());
9155
9171
  }
9156
9172
  function ri(t, e, n) {
9157
9173
  return Math.max(n.anchor, n.head) > e.content.size ? null : Ur(t, e.resolve(n.anchor), e.resolve(n.head));
@@ -9226,7 +9242,7 @@ function ui(t) {
9226
9242
  let e = t.charCodeAt(0), n = t.charCodeAt(1);
9227
9243
  return e >= 56320 && e <= 57343 && n >= 55296 && n <= 56319;
9228
9244
  }
9229
- class lo {
9245
+ class oo {
9230
9246
  /**
9231
9247
  Create a view. `place` may be a DOM node that the editor should
9232
9248
  be appended to, a function that will place it into the document,
@@ -9235,7 +9251,7 @@ class lo {
9235
9251
  added to the document.
9236
9252
  */
9237
9253
  constructor(e, n) {
9238
- 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 Sc(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(ai), 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 = oi(this), si(this), this.nodeViews = li(this), this.docView = Lu(this.state.doc, ii(this), Yn(this), this.dom, this), this.domObserver = new Yc(this, (r, u, i, s) => sf(this, r, u, i, s)), this.domObserver.start(), Ec(this), this.updatePluginViews();
9254
+ 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 Ec(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(ai), 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 = oi(this), si(this), this.nodeViews = li(this), this.docView = Lu(this.state.doc, ii(this), Yn(this), this.dom, this), this.domObserver = new Yc(this, (r, u, i, s) => sf(this, r, u, i, s)), this.domObserver.start(), Sc(this), this.updatePluginViews();
9239
9255
  }
9240
9256
  /**
9241
9257
  Holds `true` when a
@@ -9291,7 +9307,7 @@ class lo {
9291
9307
  updateStateInner(e, n) {
9292
9308
  var r;
9293
9309
  let u = this.state, i = !1, s = !1;
9294
- e.storedMarks && this.composing && (to(this), s = !0), this.state = e;
9310
+ e.storedMarks && this.composing && (eo(this), s = !0), this.state = e;
9295
9311
  let o = u.plugins != e.plugins || this._props.plugins != n.plugins;
9296
9312
  if (o || this._props.plugins != n.plugins || this._props.nodeViews != n.nodeViews) {
9297
9313
  let h = li(this);
@@ -9303,12 +9319,12 @@ class lo {
9303
9319
  let p = c == "preserve" && s && this.dom.style.overflowAnchor == null && La(this);
9304
9320
  if (s) {
9305
9321
  this.domObserver.stop();
9306
- let h = f && (G || P) && !this.composing && !u.selection.empty && !e.selection.empty && cf(u.selection, e.selection);
9322
+ let h = f && (G || $) && !this.composing && !u.selection.empty && !e.selection.empty && cf(u.selection, e.selection);
9307
9323
  if (f) {
9308
- let d = P ? this.trackWrites = this.domSelectionRange().focusNode : null;
9324
+ let d = $ ? this.trackWrites = this.domSelectionRange().focusNode : null;
9309
9325
  this.composing && (this.input.compositionNode = Lc(this)), (i || !this.docView.update(e.doc, a, l, this)) && (this.docView.updateOuterDeco(a), this.docView.destroy(), this.docView = Lu(e.doc, a, l, this.dom, this)), d && (!this.trackWrites || !this.dom.contains(this.trackWrites)) && (h = !0);
9310
9326
  }
9311
- h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && ac(this)) ? Me(this, h) : (Ws(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
9327
+ h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && ac(this)) ? Me(this, h) : ($s(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
9312
9328
  }
9313
9329
  this.updatePluginViews(u), !((r = this.dragging) === null || r === void 0) && r.node && !u.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, u), c == "reset" ? this.dom.scrollTop = 0 : c == "to selection" ? this.scrollToSelection() : p && qa(p);
9314
9330
  }
@@ -9318,7 +9334,7 @@ class lo {
9318
9334
  scrollToSelection() {
9319
9335
  let e = this.domSelectionRange().focusNode;
9320
9336
  if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode))) {
9321
- if (!this.someProp("handleScrollToSelection", (n) => n(this))) if (this.state.selection instanceof E) {
9337
+ if (!this.someProp("handleScrollToSelection", (n) => n(this))) if (this.state.selection instanceof S) {
9322
9338
  let n = this.docView.domAfterPos(this.state.selection.from);
9323
9339
  n.nodeType == 1 && Iu(this, n.getBoundingClientRect(), e);
9324
9340
  } else
@@ -9355,7 +9371,7 @@ class lo {
9355
9371
  let i = r.from + (this.state.doc.content.size - n.doc.content.size);
9356
9372
  (i > 0 && this.state.doc.nodeAt(i)) == r.node && (u = i);
9357
9373
  }
9358
- this.dragging = new ro(e.slice, e.move, u < 0 ? void 0 : E.create(this.state.doc, u));
9374
+ this.dragging = new no(e.slice, e.move, u < 0 ? void 0 : S.create(this.state.doc, u));
9359
9375
  }
9360
9376
  someProp(e, n) {
9361
9377
  let r = this._props && this._props[e], u;
@@ -9442,7 +9458,7 @@ class lo {
9442
9458
  otherwise the element after.
9443
9459
  */
9444
9460
  coordsAtPos(e, n = 1) {
9445
- return Bs(this, e, n);
9461
+ return Rs(this, e, n);
9446
9462
  }
9447
9463
  /**
9448
9464
  Find the DOM position that corresponds to the given document
@@ -9549,7 +9565,7 @@ class lo {
9549
9565
  */
9550
9566
  domSelectionRange() {
9551
9567
  let e = this.domSelection();
9552
- return e ? W && this.root.nodeType === 11 && Ra(this.dom.ownerDocument) == this.dom && Qc(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
9568
+ return e ? J && this.root.nodeType === 11 && Ra(this.dom.ownerDocument) == this.dom && Qc(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
9553
9569
  }
9554
9570
  /**
9555
9571
  @internal
@@ -9558,7 +9574,7 @@ class lo {
9558
9574
  return this.root.getSelection();
9559
9575
  }
9560
9576
  }
9561
- lo.prototype.dispatch = function(t) {
9577
+ oo.prototype.dispatch = function(t) {
9562
9578
  let e = this._props.dispatchTransaction;
9563
9579
  e ? e.call(this, t) : this.updateState(this.state.apply(t));
9564
9580
  };
@@ -9852,7 +9868,7 @@ function kt(t, e) {
9852
9868
  kt.defaultChars = ";/?:@&=+$,#";
9853
9869
  kt.componentChars = "";
9854
9870
  const fi = {};
9855
- function Sf(t) {
9871
+ function Ef(t) {
9856
9872
  let e = fi[t];
9857
9873
  if (e)
9858
9874
  return e;
@@ -9867,7 +9883,7 @@ function Sf(t) {
9867
9883
  }
9868
9884
  function Kt(t, e, n) {
9869
9885
  typeof e != "string" && (n = e, e = Kt.defaultChars), typeof n > "u" && (n = !0);
9870
- const r = Sf(e);
9886
+ const r = Ef(e);
9871
9887
  let u = "";
9872
9888
  for (let i = 0, s = t.length; i < s; i++) {
9873
9889
  const o = t.charCodeAt(i);
@@ -9903,7 +9919,7 @@ function eu(t) {
9903
9919
  function yn() {
9904
9920
  this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
9905
9921
  }
9906
- const Ef = /^([a-z0-9.+-]+:)/i, Af = /:[0-9]*$/, Mf = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, wf = ["<", ">", '"', "`", " ", "\r", `
9922
+ const Sf = /^([a-z0-9.+-]+:)/i, Af = /:[0-9]*$/, Mf = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, wf = ["<", ">", '"', "`", " ", "\r", `
9907
9923
  `, " "], Tf = ["{", "}", "|", "\\", "^", "`"].concat(wf), Of = ["'"].concat(Tf), di = ["%", "/", "?", ";", "#"].concat(Of), hi = ["/", "?", "#"], Ff = 255, pi = /^[+a-z0-9A-Z_-]{0,63}$/, Nf = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, mi = {
9908
9924
  javascript: !0,
9909
9925
  "javascript:": !0
@@ -9931,7 +9947,7 @@ yn.prototype.parse = function(t, e) {
9931
9947
  if (a)
9932
9948
  return this.pathname = a[1], a[2] && (this.search = a[2]), this;
9933
9949
  }
9934
- let s = Ef.exec(i);
9950
+ let s = Sf.exec(i);
9935
9951
  if (s && (s = s[0], n = s.toLowerCase(), this.protocol = s, i = i.substr(s.length)), (e || s || i.match(/^\/\/[^@\/]+@[^@\/]+/)) && (u = i.substr(0, 2) === "//", u && !(s && mi[s]) && (i = i.substr(2), this.slashes = !0)), !mi[s] && (u || s && !gi[s])) {
9936
9952
  let a = -1;
9937
9953
  for (let d = 0; d < hi.length; d++)
@@ -9953,8 +9969,8 @@ yn.prototype.parse = function(t, e) {
9953
9969
  for (let y = 0, _ = b.length; y < _; y++)
9954
9970
  b.charCodeAt(y) > 127 ? k += "x" : k += b[y];
9955
9971
  if (!k.match(pi)) {
9956
- const y = d.slice(0, m), _ = d.slice(m + 1), S = b.match(Nf);
9957
- S && (y.push(S[1]), _.unshift(S[2])), _.length && (i = _.join(".") + i), this.hostname = y.join(".");
9972
+ const y = d.slice(0, m), _ = d.slice(m + 1), E = b.match(Nf);
9973
+ E && (y.push(E[1]), _.unshift(E[2])), _.length && (i = _.join(".") + i), this.hostname = y.join(".");
9958
9974
  break;
9959
9975
  }
9960
9976
  }
@@ -9977,14 +9993,14 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9977
9993
  encode: Kt,
9978
9994
  format: eu,
9979
9995
  parse: tu
9980
- }, Symbol.toStringTag, { value: "Module" })), ao = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, co = /[\0-\x1F\x7F-\x9F]/, Rf = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, nu = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, fo = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, ho = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9996
+ }, Symbol.toStringTag, { value: "Module" })), lo = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ao = /[\0-\x1F\x7F-\x9F]/, Rf = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, nu = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, co = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, fo = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9981
9997
  __proto__: null,
9982
- Any: ao,
9983
- Cc: co,
9998
+ Any: lo,
9999
+ Cc: ao,
9984
10000
  Cf: Rf,
9985
10001
  P: nu,
9986
- S: fo,
9987
- Z: ho
10002
+ S: co,
10003
+ Z: fo
9988
10004
  }, Symbol.toStringTag, { value: "Module" })), zf = new Uint16Array(
9989
10005
  // prettier-ignore
9990
10006
  'ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((t) => t.charCodeAt(0))
@@ -10251,7 +10267,7 @@ class Jf {
10251
10267
  }
10252
10268
  }
10253
10269
  }
10254
- function po(t) {
10270
+ function ho(t) {
10255
10271
  let e = "";
10256
10272
  const n = new Jf(t, (r) => e += Lf(r));
10257
10273
  return function(u, i) {
@@ -10293,9 +10309,9 @@ function jf(t, e, n, r) {
10293
10309
  }
10294
10310
  return -1;
10295
10311
  }
10296
- const Uf = po(zf);
10297
- po(vf);
10298
- function mo(t, e = Re.Legacy) {
10312
+ const Uf = ho(zf);
10313
+ ho(vf);
10314
+ function po(t, e = Re.Legacy) {
10299
10315
  return Uf(t, e);
10300
10316
  }
10301
10317
  function Kf(t) {
@@ -10319,7 +10335,7 @@ function Fn(t) {
10319
10335
  }
10320
10336
  }), t;
10321
10337
  }
10322
- function go(t, e, n) {
10338
+ function mo(t, e, n) {
10323
10339
  return [].concat(t.slice(0, e), n, t.slice(e + 1));
10324
10340
  }
10325
10341
  function uu(t) {
@@ -10333,17 +10349,17 @@ function Cn(t) {
10333
10349
  }
10334
10350
  return String.fromCharCode(t);
10335
10351
  }
10336
- const bo = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, Yf = /&([a-z#][a-z0-9]{1,31});/gi, Xf = new RegExp(bo.source + "|" + Yf.source, "gi"), Qf = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
10352
+ const go = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, Yf = /&([a-z#][a-z0-9]{1,31});/gi, Xf = new RegExp(go.source + "|" + Yf.source, "gi"), Qf = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
10337
10353
  function e0(t, e) {
10338
10354
  if (e.charCodeAt(0) === 35 && Qf.test(e)) {
10339
10355
  const r = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
10340
10356
  return uu(r) ? Cn(r) : t;
10341
10357
  }
10342
- const n = mo(t);
10358
+ const n = po(t);
10343
10359
  return n !== t ? n : t;
10344
10360
  }
10345
10361
  function t0(t) {
10346
- return t.indexOf("\\") < 0 ? t : t.replace(bo, "$1");
10362
+ return t.indexOf("\\") < 0 ? t : t.replace(go, "$1");
10347
10363
  }
10348
10364
  function yt(t) {
10349
10365
  return t.indexOf("\\") < 0 && t.indexOf("&") < 0 ? t : t.replace(Xf, function(e, n, r) {
@@ -10399,7 +10415,7 @@ function Vt(t) {
10399
10415
  return !1;
10400
10416
  }
10401
10417
  function $t(t) {
10402
- return nu.test(t) || fo.test(t);
10418
+ return nu.test(t) || co.test(t);
10403
10419
  }
10404
10420
  function Wt(t) {
10405
10421
  switch (t) {
@@ -10445,7 +10461,7 @@ function Nn(t) {
10445
10461
  }
10446
10462
  const l0 = { mdurl: If, ucmicro: Bf }, a0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10447
10463
  __proto__: null,
10448
- arrayReplaceAt: go,
10464
+ arrayReplaceAt: mo,
10449
10465
  assign: Fn,
10450
10466
  escapeHtml: $e,
10451
10467
  escapeRE: o0,
@@ -10801,10 +10817,10 @@ fe.prototype.attrJoin = function(e, n) {
10801
10817
  const r = this.attrIndex(e);
10802
10818
  r < 0 ? this.attrPush([e, n]) : this.attrs[r][1] = this.attrs[r][1] + " " + n;
10803
10819
  };
10804
- function xo(t, e, n) {
10820
+ function bo(t, e, n) {
10805
10821
  this.src = t, this.env = n, this.tokens = [], this.inlineMode = !1, this.md = e;
10806
10822
  }
10807
- xo.prototype.Token = fe;
10823
+ bo.prototype.Token = fe;
10808
10824
  const p0 = /\r\n?|\n/g, m0 = /\0/g;
10809
10825
  function g0(t) {
10810
10826
  let e;
@@ -10856,8 +10872,8 @@ function C0(t) {
10856
10872
  a[h].schema ? a[h].schema === "mailto:" && !/^mailto:/i.test(g) ? g = t.md.normalizeLinkText("mailto:" + g).replace(/^mailto:/, "") : g = t.md.normalizeLinkText(g) : g = t.md.normalizeLinkText("http://" + g).replace(/^http:\/\//, "");
10857
10873
  const b = a[h].index;
10858
10874
  if (b > p) {
10859
- const S = new t.Token("text", "", 0);
10860
- S.content = l.slice(p, b), S.level = f, c.push(S);
10875
+ const E = new t.Token("text", "", 0);
10876
+ E.content = l.slice(p, b), E.level = f, c.push(E);
10861
10877
  }
10862
10878
  const k = new t.Token("link_open", "a", 1);
10863
10879
  k.attrs = [["href", m]], k.level = f++, k.markup = "linkify", k.info = "auto", c.push(k);
@@ -10870,38 +10886,38 @@ function C0(t) {
10870
10886
  const h = new t.Token("text", "", 0);
10871
10887
  h.content = l.slice(p), h.level = f, c.push(h);
10872
10888
  }
10873
- e[n].children = u = go(u, s, c);
10889
+ e[n].children = u = mo(u, s, c);
10874
10890
  }
10875
10891
  }
10876
10892
  }
10877
10893
  }
10878
- const ko = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, D0 = /\((c|tm|r)\)/i, _0 = /\((c|tm|r)\)/ig, S0 = {
10894
+ const xo = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, D0 = /\((c|tm|r)\)/i, _0 = /\((c|tm|r)\)/ig, E0 = {
10879
10895
  c: "©",
10880
10896
  r: "®",
10881
10897
  tm: "™"
10882
10898
  };
10883
- function E0(t, e) {
10884
- return S0[e.toLowerCase()];
10899
+ function S0(t, e) {
10900
+ return E0[e.toLowerCase()];
10885
10901
  }
10886
10902
  function A0(t) {
10887
10903
  let e = 0;
10888
10904
  for (let n = t.length - 1; n >= 0; n--) {
10889
10905
  const r = t[n];
10890
- r.type === "text" && !e && (r.content = r.content.replace(_0, E0)), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++;
10906
+ r.type === "text" && !e && (r.content = r.content.replace(_0, S0)), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++;
10891
10907
  }
10892
10908
  }
10893
10909
  function M0(t) {
10894
10910
  let e = 0;
10895
10911
  for (let n = t.length - 1; n >= 0; n--) {
10896
10912
  const r = t[n];
10897
- r.type === "text" && !e && ko.test(r.content) && (r.content = r.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++;
10913
+ r.type === "text" && !e && xo.test(r.content) && (r.content = r.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++;
10898
10914
  }
10899
10915
  }
10900
10916
  function w0(t) {
10901
10917
  let e;
10902
10918
  if (t.md.options.typographer)
10903
10919
  for (e = t.tokens.length - 1; e >= 0; e--)
10904
- t.tokens[e].type === "inline" && (D0.test(t.tokens[e].content) && A0(t.tokens[e].children), ko.test(t.tokens[e].content) && M0(t.tokens[e].children));
10920
+ t.tokens[e].type === "inline" && (D0.test(t.tokens[e].content) && A0(t.tokens[e].children), xo.test(t.tokens[e].content) && M0(t.tokens[e].children));
10905
10921
  }
10906
10922
  const T0 = /['"]/, bi = /['"]/g, xi = "’";
10907
10923
  function nn(t, e, n) {
@@ -10956,12 +10972,12 @@ function O0(t, e) {
10956
10972
  break;
10957
10973
  if (_.single === h && r[n].level === s) {
10958
10974
  _ = r[n];
10959
- let S, A;
10960
- h ? (S = e.md.options.quotes[2], A = e.md.options.quotes[3]) : (S = e.md.options.quotes[0], A = e.md.options.quotes[1]), i.content = nn(i.content, c.index, A), t[_.token].content = nn(
10975
+ let E, A;
10976
+ h ? (E = e.md.options.quotes[2], A = e.md.options.quotes[3]) : (E = e.md.options.quotes[0], A = e.md.options.quotes[1]), i.content = nn(i.content, c.index, A), t[_.token].content = nn(
10961
10977
  t[_.token].content,
10962
10978
  _.pos,
10963
- S
10964
- ), l += A.length - 1, _.token === u && (l += S.length - 1), o = i.content, a = o.length, r.length = n;
10979
+ E
10980
+ ), l += A.length - 1, _.token === u && (l += E.length - 1), o = i.content, a = o.length, r.length = n;
10965
10981
  continue e;
10966
10982
  }
10967
10983
  }
@@ -11013,7 +11029,7 @@ iu.prototype.process = function(t) {
11013
11029
  for (let n = 0, r = e.length; n < r; n++)
11014
11030
  e[n](t);
11015
11031
  };
11016
- iu.prototype.State = xo;
11032
+ iu.prototype.State = bo;
11017
11033
  function De(t, e, n, r) {
11018
11034
  this.src = t, this.md = e, this.env = n, this.tokens = r, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
11019
11035
  const u = this.src;
@@ -11129,15 +11145,15 @@ function R0(t, e, n, r) {
11129
11145
  let l = tr(t, e + 1), a = l.split("|");
11130
11146
  const c = [];
11131
11147
  for (let _ = 0; _ < a.length; _++) {
11132
- const S = a[_].trim();
11133
- if (!S) {
11148
+ const E = a[_].trim();
11149
+ if (!E) {
11134
11150
  if (_ === 0 || _ === a.length - 1)
11135
11151
  continue;
11136
11152
  return !1;
11137
11153
  }
11138
- if (!/^:?-+:?$/.test(S))
11154
+ if (!/^:?-+:?$/.test(E))
11139
11155
  return !1;
11140
- S.charCodeAt(S.length - 1) === 58 ? c.push(S.charCodeAt(0) === 58 ? "center" : "right") : S.charCodeAt(0) === 58 ? c.push("left") : c.push("");
11156
+ E.charCodeAt(E.length - 1) === 58 ? c.push(E.charCodeAt(0) === 58 ? "center" : "right") : E.charCodeAt(0) === 58 ? c.push("left") : c.push("");
11141
11157
  }
11142
11158
  if (l = tr(t, e).trim(), l.indexOf("|") === -1 || t.sCount[e] - t.blkIndent >= 4)
11143
11159
  return !1;
@@ -11156,8 +11172,8 @@ function R0(t, e, n, r) {
11156
11172
  const b = t.push("tr_open", "tr", 1);
11157
11173
  b.map = [e, e + 1];
11158
11174
  for (let _ = 0; _ < a.length; _++) {
11159
- const S = t.push("th_open", "th", 1);
11160
- c[_] && (S.attrs = [["style", "text-align:" + c[_]]]);
11175
+ const E = t.push("th_open", "th", 1);
11176
+ c[_] && (E.attrs = [["style", "text-align:" + c[_]]]);
11161
11177
  const A = t.push("inline", "", 0);
11162
11178
  A.content = a[_].trim(), A.children = [], t.push("th_close", "th", -1);
11163
11179
  }
@@ -11176,8 +11192,8 @@ function R0(t, e, n, r) {
11176
11192
  const A = t.push("tbody_open", "tbody", 1);
11177
11193
  A.map = k = [e + 2, 0];
11178
11194
  }
11179
- const S = t.push("tr_open", "tr", 1);
11180
- S.map = [u, u + 1];
11195
+ const E = t.push("tr_open", "tr", 1);
11196
+ E.map = [u, u + 1];
11181
11197
  for (let A = 0; A < f; A++) {
11182
11198
  const C = t.push("td_open", "td", 1);
11183
11199
  c[A] && (C.attrs = [["style", "text-align:" + c[A]]]);
@@ -11250,9 +11266,9 @@ function v0(t, e, n, r) {
11250
11266
  if (u = t.bMarks[d] + t.tShift[d], i = t.eMarks[d], u >= i)
11251
11267
  break;
11252
11268
  if (t.src.charCodeAt(u++) === 62 && !y) {
11253
- let S = t.sCount[d] + 1, A, C;
11254
- t.src.charCodeAt(u) === 32 ? (u++, S++, C = !1, A = !0) : t.src.charCodeAt(u) === 9 ? (A = !0, (t.bsCount[d] + S) % 4 === 3 ? (u++, S++, C = !1) : C = !0) : A = !1;
11255
- let M = S;
11269
+ let E = t.sCount[d] + 1, A, C;
11270
+ t.src.charCodeAt(u) === 32 ? (u++, E++, C = !1, A = !0) : t.src.charCodeAt(u) === 9 ? (A = !0, (t.bsCount[d] + E) % 4 === 3 ? (u++, E++, C = !1) : C = !0) : A = !1;
11271
+ let M = E;
11256
11272
  for (o.push(t.bMarks[d]), t.bMarks[d] = u; u < i; ) {
11257
11273
  const N = t.src.charCodeAt(u);
11258
11274
  if (F(N))
@@ -11261,14 +11277,14 @@ function v0(t, e, n, r) {
11261
11277
  break;
11262
11278
  u++;
11263
11279
  }
11264
- h = u >= i, l.push(t.bsCount[d]), t.bsCount[d] = t.sCount[d] + 1 + (A ? 1 : 0), a.push(t.sCount[d]), t.sCount[d] = M - S, c.push(t.tShift[d]), t.tShift[d] = u - t.bMarks[d];
11280
+ h = u >= i, l.push(t.bsCount[d]), t.bsCount[d] = t.sCount[d] + 1 + (A ? 1 : 0), a.push(t.sCount[d]), t.sCount[d] = M - E, c.push(t.tShift[d]), t.tShift[d] = u - t.bMarks[d];
11265
11281
  continue;
11266
11282
  }
11267
11283
  if (h)
11268
11284
  break;
11269
11285
  let _ = !1;
11270
- for (let S = 0, A = f.length; S < A; S++)
11271
- if (f[S](t, d, n, !0)) {
11286
+ for (let E = 0, A = f.length; E < A; E++)
11287
+ if (f[E](t, d, n, !0)) {
11272
11288
  _ = !0;
11273
11289
  break;
11274
11290
  }
@@ -11379,26 +11395,26 @@ function q0(t, e, n, r) {
11379
11395
  for (t.parentType = "list"; l < n; ) {
11380
11396
  i = h, u = t.eMarks[l];
11381
11397
  const _ = t.sCount[l] + h - (t.bMarks[l] + t.tShift[l]);
11382
- let S = _;
11398
+ let E = _;
11383
11399
  for (; i < u; ) {
11384
11400
  const we = t.src.charCodeAt(i);
11385
11401
  if (we === 9)
11386
- S += 4 - (S + t.bsCount[l]) % 4;
11402
+ E += 4 - (E + t.bsCount[l]) % 4;
11387
11403
  else if (we === 32)
11388
- S++;
11404
+ E++;
11389
11405
  else
11390
11406
  break;
11391
11407
  i++;
11392
11408
  }
11393
11409
  const A = i;
11394
11410
  let C;
11395
- A >= u ? C = 1 : C = S - _, C > 4 && (C = 1);
11411
+ A >= u ? C = 1 : C = E - _, C > 4 && (C = 1);
11396
11412
  const M = _ + C;
11397
11413
  o = t.push("list_item_open", "li", 1), o.markup = String.fromCharCode(d);
11398
11414
  const N = [l, 0];
11399
11415
  o.map = N, f && (o.info = t.src.slice(s, h - 1));
11400
11416
  const X = t.tight, Je = t.tShift[l], Bn = t.sCount[l], zn = t.listIndent;
11401
- if (t.listIndent = t.blkIndent, t.blkIndent = M, t.tight = !0, t.tShift[l] = A - t.bMarks[l], t.sCount[l] = S, A >= u && t.isEmpty(l + 1) ? t.line = Math.min(t.line + 2, n) : t.md.block.tokenize(t, l, n, !0), (!t.tight || b) && (a = !1), b = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = zn, t.tShift[l] = Je, t.sCount[l] = Bn, t.tight = X, o = t.push("list_item_close", "li", -1), o.markup = String.fromCharCode(d), l = t.line, N[1] = l, l >= n || t.sCount[l] < t.blkIndent || t.sCount[l] - t.blkIndent >= 4)
11417
+ if (t.listIndent = t.blkIndent, t.blkIndent = M, t.tight = !0, t.tShift[l] = A - t.bMarks[l], t.sCount[l] = E, A >= u && t.isEmpty(l + 1) ? t.line = Math.min(t.line + 2, n) : t.md.block.tokenize(t, l, n, !0), (!t.tight || b) && (a = !1), b = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = zn, t.tShift[l] = Je, t.sCount[l] = Bn, t.tight = X, o = t.push("list_item_close", "li", -1), o.markup = String.fromCharCode(d), l = t.line, N[1] = l, l >= n || t.sCount[l] < t.blkIndent || t.sCount[l] - t.blkIndent >= 4)
11402
11418
  break;
11403
11419
  let it = !1;
11404
11420
  for (let we = 0, vn = k.length; we < vn; we++)
@@ -11440,8 +11456,8 @@ function V0(t, e, n, r) {
11440
11456
  if (t.parentType = M, N)
11441
11457
  return null;
11442
11458
  }
11443
- const S = t.bMarks[k] + t.tShift[k], A = t.eMarks[k];
11444
- return t.src.slice(S, A + 1);
11459
+ const E = t.bMarks[k] + t.tShift[k], A = t.eMarks[k];
11460
+ return t.src.slice(E, A + 1);
11445
11461
  }
11446
11462
  let l = t.src.slice(u, i + 1);
11447
11463
  i = l.length;
@@ -11573,7 +11589,7 @@ const $0 = [
11573
11589
  "tr",
11574
11590
  "track",
11575
11591
  "ul"
11576
- ], W0 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", H0 = "[^\"'=<>`\\x00-\\x20]+", J0 = "'[^']*'", j0 = '"[^"]*"', U0 = "(?:" + H0 + "|" + J0 + "|" + j0 + ")", K0 = "(?:\\s+" + W0 + "(?:\\s*=\\s*" + U0 + ")?)", yo = "<[A-Za-z][A-Za-z0-9\\-]*" + K0 + "*\\s*\\/?>", Co = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Z0 = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", G0 = "<[?][\\s\\S]*?[?]>", Y0 = "<![A-Za-z][^>]*>", X0 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Q0 = new RegExp("^(?:" + yo + "|" + Co + "|" + Z0 + "|" + G0 + "|" + Y0 + "|" + X0 + ")"), ed = new RegExp("^(?:" + yo + "|" + Co + ")"), at = [
11592
+ ], W0 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", H0 = "[^\"'=<>`\\x00-\\x20]+", J0 = "'[^']*'", j0 = '"[^"]*"', U0 = "(?:" + H0 + "|" + J0 + "|" + j0 + ")", K0 = "(?:\\s+" + W0 + "(?:\\s*=\\s*" + U0 + ")?)", ko = "<[A-Za-z][A-Za-z0-9\\-]*" + K0 + "*\\s*\\/?>", yo = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Z0 = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", G0 = "<[?][\\s\\S]*?[?]>", Y0 = "<![A-Za-z][^>]*>", X0 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Q0 = new RegExp("^(?:" + ko + "|" + yo + "|" + Z0 + "|" + G0 + "|" + Y0 + "|" + X0 + ")"), ed = new RegExp("^(?:" + ko + "|" + yo + ")"), at = [
11577
11593
  [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
11578
11594
  [/^<!--/, /-->/, !0],
11579
11595
  [/^<\?/, /\?>/, !0],
@@ -11807,17 +11823,20 @@ function ld(t, e) {
11807
11823
  if (!s) return !1;
11808
11824
  let o = s.url;
11809
11825
  if (o.length <= i.length) return !1;
11810
- o = o.replace(/\*+$/, "");
11811
- const l = t.md.normalizeLink(o);
11812
- if (!t.md.validateLink(l)) return !1;
11826
+ let l = o.length;
11827
+ for (; l > 0 && o.charCodeAt(l - 1) === 42; )
11828
+ l--;
11829
+ l !== o.length && (o = o.slice(0, l));
11830
+ const a = t.md.normalizeLink(o);
11831
+ if (!t.md.validateLink(a)) return !1;
11813
11832
  if (!e) {
11814
11833
  t.pending = t.pending.slice(0, -i.length);
11815
- const a = t.push("link_open", "a", 1);
11816
- a.attrs = [["href", l]], a.markup = "linkify", a.info = "auto";
11817
- const c = t.push("text", "", 0);
11818
- c.content = t.md.normalizeLinkText(o);
11819
- const f = t.push("link_close", "a", -1);
11820
- f.markup = "linkify", f.info = "auto";
11834
+ const c = t.push("link_open", "a", 1);
11835
+ c.attrs = [["href", a]], c.markup = "linkify", c.info = "auto";
11836
+ const f = t.push("text", "", 0);
11837
+ f.content = t.md.normalizeLinkText(o);
11838
+ const p = t.push("link_close", "a", -1);
11839
+ p.markup = "linkify", p.info = "auto";
11821
11840
  }
11822
11841
  return t.pos += o.length - i.length, !0;
11823
11842
  }
@@ -11943,7 +11962,7 @@ function hd(t) {
11943
11962
  for (let r = 0; r < n; r++)
11944
11963
  e[r] && e[r].delimiters && Di(t, e[r].delimiters);
11945
11964
  }
11946
- const Do = {
11965
+ const Co = {
11947
11966
  tokenize: dd,
11948
11967
  postProcess: hd
11949
11968
  };
@@ -11997,7 +12016,7 @@ function md(t) {
11997
12016
  for (let r = 0; r < n; r++)
11998
12017
  e[r] && e[r].delimiters && _i(t, e[r].delimiters);
11999
12018
  }
12000
- const _o = {
12019
+ const Do = {
12001
12020
  tokenize: pd,
12002
12021
  postProcess: md
12003
12022
  };
@@ -12134,7 +12153,7 @@ function _d(t) {
12134
12153
  const e = t | 32;
12135
12154
  return e >= 97 && e <= 122;
12136
12155
  }
12137
- function Sd(t, e) {
12156
+ function Ed(t, e) {
12138
12157
  if (!t.md.options.html)
12139
12158
  return !1;
12140
12159
  const n = t.posMax, r = t.pos;
@@ -12152,12 +12171,12 @@ function Sd(t, e) {
12152
12171
  }
12153
12172
  return t.pos += i[0].length, !0;
12154
12173
  }
12155
- const Ed = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Ad = /^&([a-z][a-z0-9]{1,31});/i;
12174
+ const Sd = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Ad = /^&([a-z][a-z0-9]{1,31});/i;
12156
12175
  function Md(t, e) {
12157
12176
  const n = t.pos, r = t.posMax;
12158
12177
  if (t.src.charCodeAt(n) !== 38 || n + 1 >= r) return !1;
12159
12178
  if (t.src.charCodeAt(n + 1) === 35) {
12160
- const i = t.src.slice(n).match(Ed);
12179
+ const i = t.src.slice(n).match(Sd);
12161
12180
  if (i) {
12162
12181
  if (!e) {
12163
12182
  const s = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), o = t.push("text_special", "", 0);
@@ -12168,7 +12187,7 @@ function Md(t, e) {
12168
12187
  } else {
12169
12188
  const i = t.src.slice(n).match(Ad);
12170
12189
  if (i) {
12171
- const s = mo(i[0]);
12190
+ const s = po(i[0]);
12172
12191
  if (s !== i[0]) {
12173
12192
  if (!e) {
12174
12193
  const o = t.push("text_special", "", 0);
@@ -12180,7 +12199,7 @@ function Md(t, e) {
12180
12199
  }
12181
12200
  return !1;
12182
12201
  }
12183
- function Si(t) {
12202
+ function Ei(t) {
12184
12203
  const e = {}, n = t.length;
12185
12204
  if (!n) return;
12186
12205
  let r = 0, u = -2;
@@ -12207,9 +12226,9 @@ function Si(t) {
12207
12226
  }
12208
12227
  function wd(t) {
12209
12228
  const e = t.tokens_meta, n = t.tokens_meta.length;
12210
- Si(t.delimiters);
12229
+ Ei(t.delimiters);
12211
12230
  for (let r = 0; r < n; r++)
12212
- e[r] && e[r].delimiters && Si(e[r].delimiters);
12231
+ e[r] && e[r].delimiters && Ei(e[r].delimiters);
12213
12232
  }
12214
12233
  function Td(t) {
12215
12234
  let e, n, r = 0;
@@ -12224,17 +12243,17 @@ const nr = [
12224
12243
  ["newline", ad],
12225
12244
  ["escape", cd],
12226
12245
  ["backticks", fd],
12227
- ["strikethrough", Do.tokenize],
12228
- ["emphasis", _o.tokenize],
12246
+ ["strikethrough", Co.tokenize],
12247
+ ["emphasis", Do.tokenize],
12229
12248
  ["link", gd],
12230
12249
  ["image", bd],
12231
12250
  ["autolink", yd],
12232
- ["html_inline", Sd],
12251
+ ["html_inline", Ed],
12233
12252
  ["entity", Md]
12234
12253
  ], rr = [
12235
12254
  ["balance_pairs", wd],
12236
- ["strikethrough", Do.postProcess],
12237
- ["emphasis", _o.postProcess],
12255
+ ["strikethrough", Co.postProcess],
12256
+ ["emphasis", Do.postProcess],
12238
12257
  // rules for pairs separate '**' into its own text tokens, which may be left unused,
12239
12258
  // rule below merges unused segments back with the rest of the text
12240
12259
  ["fragments_join", Td]
@@ -12297,7 +12316,7 @@ Gt.prototype.parse = function(t, e, n, r) {
12297
12316
  Gt.prototype.State = Zt;
12298
12317
  function Od(t) {
12299
12318
  const e = {};
12300
- t = t || {}, e.src_Any = ao.source, e.src_Cc = co.source, e.src_Z = ho.source, e.src_P = nu.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
12319
+ t = t || {}, e.src_Any = lo.source, e.src_Cc = ao.source, e.src_Z = fo.source, e.src_P = nu.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
12301
12320
  const n = "[><|]";
12302
12321
  return e.src_pseudo_letter = "(?:(?!" + n + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + n + "|" + e.src_ZPCc + ")(?!" + (t["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + n + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (t["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
12303
12322
  ",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
@@ -12326,20 +12345,20 @@ function Nd(t) {
12326
12345
  function Id(t) {
12327
12346
  return Rn(t) === "[object RegExp]";
12328
12347
  }
12329
- function Ei(t) {
12348
+ function Si(t) {
12330
12349
  return Rn(t) === "[object Function]";
12331
12350
  }
12332
12351
  function Rd(t) {
12333
12352
  return t.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
12334
12353
  }
12335
- const So = {
12354
+ const _o = {
12336
12355
  fuzzyLink: !0,
12337
12356
  fuzzyEmail: !0,
12338
12357
  fuzzyIP: !1
12339
12358
  };
12340
12359
  function Bd(t) {
12341
12360
  return Object.keys(t || {}).reduce(function(e, n) {
12342
- return e || So.hasOwnProperty(n);
12361
+ return e || _o.hasOwnProperty(n);
12343
12362
  }, !1);
12344
12363
  }
12345
12364
  const zd = {
@@ -12407,7 +12426,7 @@ function Dn(t) {
12407
12426
  return;
12408
12427
  const a = { validate: null, link: null };
12409
12428
  if (t.__compiled__[o] = a, Nd(l)) {
12410
- Id(l.validate) ? a.validate = qd(l.validate) : Ei(l.validate) ? a.validate = l.validate : i(o, l), Ei(l.normalize) ? a.normalize = l.normalize : l.normalize ? i(o, l) : a.normalize = Ai();
12429
+ Id(l.validate) ? a.validate = qd(l.validate) : Si(l.validate) ? a.validate = l.validate : i(o, l), Si(l.normalize) ? a.normalize = l.normalize : l.normalize ? i(o, l) : a.normalize = Ai();
12411
12430
  return;
12412
12431
  }
12413
12432
  if (Fd(l)) {
@@ -12437,7 +12456,7 @@ function Rr(t, e) {
12437
12456
  function ne(t, e) {
12438
12457
  if (!(this instanceof ne))
12439
12458
  return new ne(t, e);
12440
- e || Bd(t) && (e = t, t = {}), this.__opts__ = Ir({}, So, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Ir({}, zd, t), this.__compiled__ = {}, this.__tlds__ = Pd, this.__tlds_replaced__ = !1, this.re = {}, Dn(this);
12459
+ e || Bd(t) && (e = t, t = {}), this.__opts__ = Ir({}, _o, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Ir({}, zd, t), this.__compiled__ = {}, this.__tlds__ = Pd, this.__tlds_replaced__ = !1, this.re = {}, Dn(this);
12441
12460
  }
12442
12461
  ne.prototype.add = function(e, n) {
12443
12462
  return this.__schemas__[e] = n, Dn(this), this;
@@ -12490,7 +12509,7 @@ ne.prototype.normalize = function(e) {
12490
12509
  };
12491
12510
  ne.prototype.onCompile = function() {
12492
12511
  };
12493
- const pt = 2147483647, ge = 36, ou = 1, Ht = 26, $d = 38, Wd = 700, Eo = 72, Ao = 128, Mo = "-", Hd = /^xn--/, Jd = /[^\0-\x7F]/, jd = /[\x2E\u3002\uFF0E\uFF61]/g, Ud = {
12512
+ const pt = 2147483647, ge = 36, ou = 1, Ht = 26, $d = 38, Wd = 700, Eo = 72, So = 128, Ao = "-", Hd = /^xn--/, Jd = /[^\0-\x7F]/, jd = /[\x2E\u3002\uFF0E\uFF61]/g, Ud = {
12494
12513
  overflow: "Overflow: input needs wider integers to process",
12495
12514
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
12496
12515
  "invalid-input": "Invalid input"
@@ -12505,14 +12524,14 @@ function Kd(t, e) {
12505
12524
  n[r] = e(t[r]);
12506
12525
  return n;
12507
12526
  }
12508
- function wo(t, e) {
12527
+ function Mo(t, e) {
12509
12528
  const n = t.split("@");
12510
12529
  let r = "";
12511
12530
  n.length > 1 && (r = n[0] + "@", t = n[1]), t = t.replace(jd, ".");
12512
12531
  const u = t.split("."), i = Kd(u, e).join(".");
12513
12532
  return r + i;
12514
12533
  }
12515
- function To(t) {
12534
+ function wo(t) {
12516
12535
  const e = [];
12517
12536
  let n = 0;
12518
12537
  const r = t.length;
@@ -12530,14 +12549,14 @@ const Zd = (t) => String.fromCodePoint(...t), Gd = function(t) {
12530
12549
  return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : ge;
12531
12550
  }, Mi = function(t, e) {
12532
12551
  return t + 22 + 75 * (t < 26) - ((e != 0) << 5);
12533
- }, Oo = function(t, e, n) {
12552
+ }, To = function(t, e, n) {
12534
12553
  let r = 0;
12535
12554
  for (t = n ? be(t / Wd) : t >> 1, t += be(t / e); t > ur * Ht >> 1; r += ge)
12536
12555
  t = be(t / ur);
12537
12556
  return be(r + (ur + 1) * t / (t + $d));
12538
- }, Fo = function(t) {
12557
+ }, Oo = function(t) {
12539
12558
  const e = [], n = t.length;
12540
- let r = 0, u = Ao, i = Eo, s = t.lastIndexOf(Mo);
12559
+ let r = 0, u = So, i = Eo, s = t.lastIndexOf(Ao);
12541
12560
  s < 0 && (s = 0);
12542
12561
  for (let o = 0; o < s; ++o)
12543
12562
  t.charCodeAt(o) >= 128 && Fe("not-basic"), e.push(t.charCodeAt(o));
@@ -12554,19 +12573,19 @@ const Zd = (t) => String.fromCodePoint(...t), Gd = function(t) {
12554
12573
  c > be(pt / d) && Fe("overflow"), c *= d;
12555
12574
  }
12556
12575
  const a = e.length + 1;
12557
- i = Oo(r - l, a, l == 0), be(r / a) > pt - u && Fe("overflow"), u += be(r / a), r %= a, e.splice(r++, 0, u);
12576
+ i = To(r - l, a, l == 0), be(r / a) > pt - u && Fe("overflow"), u += be(r / a), r %= a, e.splice(r++, 0, u);
12558
12577
  }
12559
12578
  return String.fromCodePoint(...e);
12560
- }, No = function(t) {
12579
+ }, Fo = function(t) {
12561
12580
  const e = [];
12562
- t = To(t);
12581
+ t = wo(t);
12563
12582
  const n = t.length;
12564
- let r = Ao, u = 0, i = Eo;
12583
+ let r = So, u = 0, i = Eo;
12565
12584
  for (const l of t)
12566
12585
  l < 128 && e.push(ir(l));
12567
12586
  const s = e.length;
12568
12587
  let o = s;
12569
- for (s && e.push(Mo); o < n; ) {
12588
+ for (s && e.push(Ao); o < n; ) {
12570
12589
  let l = pt;
12571
12590
  for (const c of t)
12572
12591
  c >= r && c < l && (l = c);
@@ -12584,20 +12603,20 @@ const Zd = (t) => String.fromCodePoint(...t), Gd = function(t) {
12584
12603
  ir(Mi(h + d % m, 0))
12585
12604
  ), f = be(d / m);
12586
12605
  }
12587
- e.push(ir(Mi(f, 0))), i = Oo(u, a, o === s), u = 0, ++o;
12606
+ e.push(ir(Mi(f, 0))), i = To(u, a, o === s), u = 0, ++o;
12588
12607
  }
12589
12608
  ++u, ++r;
12590
12609
  }
12591
12610
  return e.join("");
12592
12611
  }, Yd = function(t) {
12593
- return wo(t, function(e) {
12594
- return Hd.test(e) ? Fo(e.slice(4).toLowerCase()) : e;
12612
+ return Mo(t, function(e) {
12613
+ return Hd.test(e) ? Oo(e.slice(4).toLowerCase()) : e;
12595
12614
  });
12596
12615
  }, Xd = function(t) {
12597
- return wo(t, function(e) {
12598
- return Jd.test(e) ? "xn--" + No(e) : e;
12616
+ return Mo(t, function(e) {
12617
+ return Jd.test(e) ? "xn--" + Fo(e) : e;
12599
12618
  });
12600
- }, Io = {
12619
+ }, No = {
12601
12620
  /**
12602
12621
  * A string representing the current Punycode.js version number.
12603
12622
  * @memberOf punycode
@@ -12612,11 +12631,11 @@ const Zd = (t) => String.fromCodePoint(...t), Gd = function(t) {
12612
12631
  * @type Object
12613
12632
  */
12614
12633
  ucs2: {
12615
- decode: To,
12634
+ decode: wo,
12616
12635
  encode: Zd
12617
12636
  },
12618
- decode: Fo,
12619
- encode: No,
12637
+ decode: Oo,
12638
+ encode: Fo,
12620
12639
  toASCII: Xd,
12621
12640
  toUnicode: Yd
12622
12641
  }, Qd = {
@@ -12793,21 +12812,21 @@ function ih(t) {
12793
12812
  const e = t.trim().toLowerCase();
12794
12813
  return rh.test(e) ? uh.test(e) : !0;
12795
12814
  }
12796
- const Ro = ["http:", "https:", "mailto:"];
12815
+ const Io = ["http:", "https:", "mailto:"];
12797
12816
  function sh(t) {
12798
12817
  const e = tu(t, !0);
12799
- if (e.hostname && (!e.protocol || Ro.indexOf(e.protocol) >= 0))
12818
+ if (e.hostname && (!e.protocol || Io.indexOf(e.protocol) >= 0))
12800
12819
  try {
12801
- e.hostname = Io.toASCII(e.hostname);
12820
+ e.hostname = No.toASCII(e.hostname);
12802
12821
  } catch {
12803
12822
  }
12804
12823
  return Kt(eu(e));
12805
12824
  }
12806
12825
  function oh(t) {
12807
12826
  const e = tu(t, !0);
12808
- if (e.hostname && (!e.protocol || Ro.indexOf(e.protocol) >= 0))
12827
+ if (e.hostname && (!e.protocol || Io.indexOf(e.protocol) >= 0))
12809
12828
  try {
12810
- e.hostname = Io.toUnicode(e.hostname);
12829
+ e.hostname = No.toUnicode(e.hostname);
12811
12830
  } catch {
12812
12831
  }
12813
12832
  return kt(eu(e), kt.defaultChars + "%");
@@ -13101,7 +13120,7 @@ class ch {
13101
13120
  return this.addNode(e.type, e.attrs, e.content);
13102
13121
  }
13103
13122
  }
13104
- function Et(t, e, n, r) {
13123
+ function St(t, e, n, r) {
13105
13124
  return t.getAttrs ? t.getAttrs(e, n, r) : t.attrs instanceof Function ? t.attrs(e) : t.attrs;
13106
13125
  }
13107
13126
  function sr(t, e) {
@@ -13120,16 +13139,16 @@ function fh(t, e) {
13120
13139
  if (u.block) {
13121
13140
  let i = t.nodeType(u.block);
13122
13141
  sr(u, r) ? n[r] = (s, o, l, a) => {
13123
- s.openNode(i, Et(u, o, l, a)), s.addText(wi(o.content)), s.closeNode();
13124
- } : (n[r + "_open"] = (s, o, l, a) => s.openNode(i, Et(u, o, l, a)), n[r + "_close"] = (s) => s.closeNode());
13142
+ s.openNode(i, St(u, o, l, a)), s.addText(wi(o.content)), s.closeNode();
13143
+ } : (n[r + "_open"] = (s, o, l, a) => s.openNode(i, St(u, o, l, a)), n[r + "_close"] = (s) => s.closeNode());
13125
13144
  } else if (u.node) {
13126
13145
  let i = t.nodeType(u.node);
13127
- n[r] = (s, o, l, a) => s.addNode(i, Et(u, o, l, a));
13146
+ n[r] = (s, o, l, a) => s.addNode(i, St(u, o, l, a));
13128
13147
  } else if (u.mark) {
13129
13148
  let i = t.marks[u.mark];
13130
13149
  sr(u, r) ? n[r] = (s, o, l, a) => {
13131
- s.openMark(i.create(Et(u, o, l, a))), s.addText(wi(o.content)), s.closeMark(i);
13132
- } : (n[r + "_open"] = (s, o, l, a) => s.openMark(i.create(Et(u, o, l, a))), n[r + "_close"] = (s) => s.closeMark(i));
13150
+ s.openMark(i.create(St(u, o, l, a))), s.addText(wi(o.content)), s.closeMark(i);
13151
+ } : (n[r + "_open"] = (s, o, l, a) => s.openMark(i.create(St(u, o, l, a))), n[r + "_close"] = (s) => s.closeMark(i));
13133
13152
  } else if (u.ignore)
13134
13153
  sr(u, r) ? n[r] = or : (n[r + "_open"] = or, n[r + "_close"] = or);
13135
13154
  else
@@ -13137,7 +13156,7 @@ function fh(t, e) {
13137
13156
  }
13138
13157
  return n.text = (r, u) => r.addText(u.content), n.inline = (r, u) => r.parseTokens(u.children), n.softbreak = n.softbreak || ((r) => r.addText(" ")), n;
13139
13158
  }
13140
- class Bo {
13159
+ class Ro {
13141
13160
  /**
13142
13161
  Create a parser with the given configuration. You can configure
13143
13162
  the markdown-it parser to parse the dialect you want, and provide
@@ -13173,7 +13192,7 @@ function Ti(t, e) {
13173
13192
  return t[e].hidden;
13174
13193
  return !1;
13175
13194
  }
13176
- const Br = new Bo(lh, re("commonmark", { html: !1 }), {
13195
+ const Br = new Ro(lh, re("commonmark", { html: !1 }), {
13177
13196
  blockquote: { block: "blockquote" },
13178
13197
  paragraph: { block: "paragraph" },
13179
13198
  list_item: { block: "list_item" },
@@ -13524,7 +13543,7 @@ class mh {
13524
13543
  */
13525
13544
  isMarkAhead(e, n, r) {
13526
13545
  for (; ; n++) {
13527
- if (n == e.childCount)
13546
+ if (n >= e.childCount)
13528
13547
  return !1;
13529
13548
  let u = e.child(n);
13530
13549
  if (u.type.name != this.options.hardBreakNodeName)
@@ -13533,38 +13552,38 @@ class mh {
13533
13552
  }
13534
13553
  }
13535
13554
  }
13536
- var _n = 200, L = function() {
13555
+ var _n = 200, P = function() {
13537
13556
  };
13538
- L.prototype.append = function(e) {
13539
- return e.length ? (e = L.from(e), !this.length && e || e.length < _n && this.leafAppend(e) || this.length < _n && e.leafPrepend(this) || this.appendInner(e)) : this;
13557
+ P.prototype.append = function(e) {
13558
+ return e.length ? (e = P.from(e), !this.length && e || e.length < _n && this.leafAppend(e) || this.length < _n && e.leafPrepend(this) || this.appendInner(e)) : this;
13540
13559
  };
13541
- L.prototype.prepend = function(e) {
13542
- return e.length ? L.from(e).append(this) : this;
13560
+ P.prototype.prepend = function(e) {
13561
+ return e.length ? P.from(e).append(this) : this;
13543
13562
  };
13544
- L.prototype.appendInner = function(e) {
13563
+ P.prototype.appendInner = function(e) {
13545
13564
  return new gh(this, e);
13546
13565
  };
13547
- L.prototype.slice = function(e, n) {
13548
- return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? L.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
13566
+ P.prototype.slice = function(e, n) {
13567
+ return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? P.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
13549
13568
  };
13550
- L.prototype.get = function(e) {
13569
+ P.prototype.get = function(e) {
13551
13570
  if (!(e < 0 || e >= this.length))
13552
13571
  return this.getInner(e);
13553
13572
  };
13554
- L.prototype.forEach = function(e, n, r) {
13573
+ P.prototype.forEach = function(e, n, r) {
13555
13574
  n === void 0 && (n = 0), r === void 0 && (r = this.length), n <= r ? this.forEachInner(e, n, r, 0) : this.forEachInvertedInner(e, n, r, 0);
13556
13575
  };
13557
- L.prototype.map = function(e, n, r) {
13576
+ P.prototype.map = function(e, n, r) {
13558
13577
  n === void 0 && (n = 0), r === void 0 && (r = this.length);
13559
13578
  var u = [];
13560
13579
  return this.forEach(function(i, s) {
13561
13580
  return u.push(e(i, s));
13562
13581
  }, n, r), u;
13563
13582
  };
13564
- L.from = function(e) {
13565
- return e instanceof L ? e : e && e.length ? new zo(e) : L.empty;
13583
+ P.from = function(e) {
13584
+ return e instanceof P ? e : e && e.length ? new Bo(e) : P.empty;
13566
13585
  };
13567
- var zo = /* @__PURE__ */ (function(t) {
13586
+ var Bo = /* @__PURE__ */ (function(t) {
13568
13587
  function e(r) {
13569
13588
  t.call(this), this.values = r;
13570
13589
  }
@@ -13595,8 +13614,8 @@ var zo = /* @__PURE__ */ (function(t) {
13595
13614
  }, n.depth.get = function() {
13596
13615
  return 0;
13597
13616
  }, Object.defineProperties(e.prototype, n), e;
13598
- })(L);
13599
- L.empty = new zo([]);
13617
+ })(P);
13618
+ P.empty = new Bo([]);
13600
13619
  var gh = /* @__PURE__ */ (function(t) {
13601
13620
  function e(n, r) {
13602
13621
  t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
@@ -13629,7 +13648,7 @@ var gh = /* @__PURE__ */ (function(t) {
13629
13648
  }, e.prototype.appendInner = function(r) {
13630
13649
  return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
13631
13650
  }, e;
13632
- })(L);
13651
+ })(P);
13633
13652
  const bh = 500;
13634
13653
  class ae {
13635
13654
  constructor(e, n) {
@@ -13740,10 +13759,10 @@ class ae {
13740
13759
  (p = u.length && u[h].merge(f)) ? u[h] = p : u.push(f);
13741
13760
  }
13742
13761
  } else s.map && r--;
13743
- }, this.items.length, 0), new ae(L.from(u.reverse()), i);
13762
+ }, this.items.length, 0), new ae(P.from(u.reverse()), i);
13744
13763
  }
13745
13764
  }
13746
- ae.empty = new ae(L.empty, 0);
13765
+ ae.empty = new ae(P.empty, 0);
13747
13766
  function xh(t, e) {
13748
13767
  let n;
13749
13768
  return t.forEach((r, u) => {
@@ -13831,8 +13850,8 @@ function cn(t) {
13831
13850
  }
13832
13851
  return cr;
13833
13852
  }
13834
- const et = new bs("history"), _h = new bs("closeHistory");
13835
- function Sh(t = {}) {
13853
+ const et = new gs("history"), _h = new gs("closeHistory");
13854
+ function Eh(t = {}) {
13836
13855
  return t = {
13837
13856
  depth: t.depth || 100,
13838
13857
  newGroupDelay: t.newGroupDelay || 500
@@ -13850,14 +13869,14 @@ function Sh(t = {}) {
13850
13869
  props: {
13851
13870
  handleDOMEvents: {
13852
13871
  beforeinput(e, n) {
13853
- let r = n.inputType, u = r == "historyUndo" ? Po : r == "historyRedo" ? zr : null;
13872
+ let r = n.inputType, u = r == "historyUndo" ? vo : r == "historyRedo" ? zr : null;
13854
13873
  return !u || !e.editable ? !1 : (n.preventDefault(), u(e.state, e.dispatch));
13855
13874
  }
13856
13875
  }
13857
13876
  }
13858
13877
  });
13859
13878
  }
13860
- function vo(t, e) {
13879
+ function zo(t, e) {
13861
13880
  return (n, r) => {
13862
13881
  let u = et.getState(n);
13863
13882
  if (!u || (t ? u.undone : u.done).eventCount == 0)
@@ -13869,7 +13888,7 @@ function vo(t, e) {
13869
13888
  return !0;
13870
13889
  };
13871
13890
  }
13872
- const Po = vo(!1, !0), zr = vo(!0, !0);
13891
+ const vo = zo(!1, !0), zr = zo(!0, !0);
13873
13892
  var We = {
13874
13893
  8: "Backspace",
13875
13894
  9: "Tab",
@@ -13923,7 +13942,7 @@ var We = {
13923
13942
  220: "\\",
13924
13943
  221: "]",
13925
13944
  222: "'"
13926
- }, Sn = {
13945
+ }, En = {
13927
13946
  48: ")",
13928
13947
  49: "!",
13929
13948
  50: "@",
@@ -13948,14 +13967,14 @@ var We = {
13948
13967
  220: "|",
13949
13968
  221: "}",
13950
13969
  222: '"'
13951
- }, Eh = typeof navigator < "u" && /Mac/.test(navigator.platform), Ah = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
13952
- for (var $ = 0; $ < 10; $++) We[48 + $] = We[96 + $] = String($);
13953
- for (var $ = 1; $ <= 24; $++) We[$ + 111] = "F" + $;
13954
- for (var $ = 65; $ <= 90; $++)
13955
- We[$] = String.fromCharCode($ + 32), Sn[$] = String.fromCharCode($);
13956
- for (var fr in We) Sn.hasOwnProperty(fr) || (Sn[fr] = We[fr]);
13970
+ }, Sh = typeof navigator < "u" && /Mac/.test(navigator.platform), Ah = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
13971
+ for (var V = 0; V < 10; V++) We[48 + V] = We[96 + V] = String(V);
13972
+ for (var V = 1; V <= 24; V++) We[V + 111] = "F" + V;
13973
+ for (var V = 65; V <= 90; V++)
13974
+ We[V] = String.fromCharCode(V + 32), En[V] = String.fromCharCode(V);
13975
+ for (var fr in We) En.hasOwnProperty(fr) || (En[fr] = We[fr]);
13957
13976
  function Mh(t) {
13958
- var e = Eh && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || Ah && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Sn : We)[t.keyCode] || t.key || "Unidentified";
13977
+ var e = Sh && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || Ah && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? En : We)[t.keyCode] || t.key || "Unidentified";
13959
13978
  return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
13960
13979
  }
13961
13980
  const wh = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), Th = typeof navigator < "u" && /Win/.test(navigator.platform);
@@ -14014,7 +14033,7 @@ function Nh(t) {
14014
14033
  return !1;
14015
14034
  };
14016
14035
  }
14017
- const Ih = new Bo(
14036
+ const Ih = new Ro(
14018
14037
  Br.schema,
14019
14038
  re("commonmark", { breaks: !0 }),
14020
14039
  Br.tokens
@@ -14073,145 +14092,143 @@ const jh = (t) => {
14073
14092
  } = t, g = U.toSignal(f), b = U.toSignal(a ?? !1), k = U.toSignal(h), y = lu(d ?? Ri)((A) => ({
14074
14093
  ...Ri,
14075
14094
  ...A
14076
- })), _ = Bi(null), S = Go();
14095
+ })), _ = Bi(null), E = Go();
14077
14096
  return zi(
14078
- vi(
14079
- Yo,
14080
- ({ appearance: A }) => au.div(
14081
- pr(() => _.value?.destroy()),
14082
- (t.cssInjection ?? "none") === "none" ? null : $o(
14083
- () => import("./styles-url-BvcVGpBJ.js"),
14084
- ({ default: C }) => Zo({ id: "beatui-prosemirror-css", href: C })
14085
- ),
14086
- st.class("bc-prosemirror-editor-container"),
14087
- st.class(i),
14088
- st.class(
14089
- U.map(
14090
- l ?? !1,
14091
- (C) => C ? "bc-input-container--error" : ""
14092
- )
14093
- ),
14094
- st.id(s),
14095
- st.name(o),
14096
- // Optional toolbar
14097
- Pi(
14098
- lu(
14099
- k,
14100
- _
14101
- )((C, M) => C && M != null),
14102
- () => Sa({
14103
- view: _,
14104
- stateUpdate: S,
14105
- features: y,
14106
- readOnly: g
14107
- })
14108
- ),
14109
- // Editor mount point
14110
- au.div(
14111
- st.class("bc-prosemirror-editor"),
14112
- Wo((C) => {
14113
- const M = [];
14114
- return (() => {
14115
- try {
14116
- const X = U.get(e) ?? "", Je = U.get(g) ?? !1, Bn = U.get(b) ?? !1, zn = U.get(y), it = vh(
14117
- vr,
14118
- Df,
14119
- zn
14120
- ), we = Ii(X, m), vn = zh(it), Lo = Ue.create({
14121
- doc: we,
14122
- schema: it,
14123
- plugins: [
14124
- Sh(),
14125
- hr({
14126
- "Mod-z": Po,
14127
- "Mod-y": zr,
14128
- "Mod-Shift-z": zr
14129
- }),
14130
- hr(vn),
14131
- hr(xa),
14132
- Bh(S.tick)
14133
- ]
14134
- }), le = new lo(C, {
14135
- state: Lo,
14136
- editable: () => !Je && !Bn,
14137
- dispatchTransaction(I) {
14138
- const de = le.state.apply(I);
14139
- if (le.updateState(de), I.docChanged && r != null) {
14140
- const Yt = lr.serialize(
14141
- de.doc
14142
- );
14143
- r(Yt);
14144
- }
14145
- }
14146
- });
14147
- if (_.set(le), U.get(c) && le.focus(), p != null && M.push(
14148
- U.on(p, (I) => {
14149
- I != null && I !== "" ? C.setAttribute("data-placeholder", I) : C.removeAttribute("data-placeholder");
14150
- })
14151
- ), M.push(
14152
- U.on(g, (I) => {
14153
- const de = U.get(b);
14154
- le.setProps({ editable: () => !I && !de });
14155
- })
14156
- ), M.push(
14157
- U.on(b, (I) => {
14158
- const de = U.get(g);
14159
- le.setProps({ editable: () => !de && !I });
14160
- })
14161
- ), M.push(
14162
- U.on(e, (I) => {
14163
- const de = lr.serialize(
14164
- le.state.doc
14165
- );
14166
- if (I !== de) {
14167
- const Yt = Ii(I, m);
14168
- if (Yt != null) {
14169
- const qo = Ue.create({
14170
- doc: Yt,
14171
- schema: it,
14172
- plugins: le.state.plugins
14173
- });
14174
- le.updateState(qo);
14175
- }
14176
- }
14177
- })
14178
- ), n != null) {
14179
- const I = () => {
14180
- const de = lr.serialize(
14181
- le.state.doc
14097
+ Yo,
14098
+ ({ appearance: A }) => au.div(
14099
+ pr(() => _.value?.destroy()),
14100
+ (t.cssInjection ?? "none") === "none" ? null : $o(
14101
+ () => import("./styles-url-BvcVGpBJ.js"),
14102
+ ({ default: C }) => Zo({ id: "beatui-prosemirror-css", href: C })
14103
+ ),
14104
+ st.class("bc-prosemirror-editor-container"),
14105
+ st.class(i),
14106
+ st.class(
14107
+ U.map(
14108
+ l ?? !1,
14109
+ (C) => C ? "bc-input-container--error" : ""
14110
+ )
14111
+ ),
14112
+ st.id(s),
14113
+ st.name(o),
14114
+ // Optional toolbar
14115
+ vi(
14116
+ lu(
14117
+ k,
14118
+ _
14119
+ )((C, M) => C && M != null),
14120
+ () => Ea({
14121
+ view: _,
14122
+ stateUpdate: E,
14123
+ features: y,
14124
+ readOnly: g
14125
+ })
14126
+ ),
14127
+ // Editor mount point
14128
+ au.div(
14129
+ st.class("bc-prosemirror-editor"),
14130
+ Wo((C) => {
14131
+ const M = [];
14132
+ return (() => {
14133
+ try {
14134
+ const X = U.get(e) ?? "", Je = U.get(g) ?? !1, Bn = U.get(b) ?? !1, zn = U.get(y), it = vh(
14135
+ vr,
14136
+ Df,
14137
+ zn
14138
+ ), we = Ii(X, m), vn = zh(it), Po = Ue.create({
14139
+ doc: we,
14140
+ schema: it,
14141
+ plugins: [
14142
+ Eh(),
14143
+ hr({
14144
+ "Mod-z": vo,
14145
+ "Mod-y": zr,
14146
+ "Mod-Shift-z": zr
14147
+ }),
14148
+ hr(vn),
14149
+ hr(xa),
14150
+ Bh(E.tick)
14151
+ ]
14152
+ }), le = new oo(C, {
14153
+ state: Po,
14154
+ editable: () => !Je && !Bn,
14155
+ dispatchTransaction(I) {
14156
+ const de = le.state.apply(I);
14157
+ if (le.updateState(de), I.docChanged && r != null) {
14158
+ const Yt = lr.serialize(
14159
+ de.doc
14182
14160
  );
14183
- n(de);
14184
- };
14185
- C.addEventListener("blur", I, !0), M.push(
14186
- () => C.removeEventListener("blur", I, !0)
14187
- );
14161
+ r(Yt);
14162
+ }
14188
14163
  }
14189
- if (u != null) {
14190
- const I = () => {
14191
- u();
14192
- };
14193
- C.addEventListener("blur", I, !0), M.push(
14194
- () => C.removeEventListener("blur", I, !0)
14164
+ });
14165
+ if (_.set(le), U.get(c) && le.focus(), p != null && M.push(
14166
+ U.on(p, (I) => {
14167
+ I != null && I !== "" ? C.setAttribute("data-placeholder", I) : C.removeAttribute("data-placeholder");
14168
+ })
14169
+ ), M.push(
14170
+ U.on(g, (I) => {
14171
+ const de = U.get(b);
14172
+ le.setProps({ editable: () => !I && !de });
14173
+ })
14174
+ ), M.push(
14175
+ U.on(b, (I) => {
14176
+ const de = U.get(g);
14177
+ le.setProps({ editable: () => !de && !I });
14178
+ })
14179
+ ), M.push(
14180
+ U.on(e, (I) => {
14181
+ const de = lr.serialize(
14182
+ le.state.doc
14195
14183
  );
14196
- }
14197
- M.push(
14198
- A.on((I) => {
14199
- I === "dark" ? C.classList.add("bc-prosemirror-editor--dark") : C.classList.remove("bc-prosemirror-editor--dark");
14200
- })
14201
- ), M.push(() => le.destroy());
14202
- } catch (X) {
14203
- console.error(
14204
- "[BeatUI] Failed to initialize ProseMirror editor:",
14205
- X
14184
+ if (I !== de) {
14185
+ const Yt = Ii(I, m);
14186
+ if (Yt != null) {
14187
+ const Lo = Ue.create({
14188
+ doc: Yt,
14189
+ schema: it,
14190
+ plugins: le.state.plugins
14191
+ });
14192
+ le.updateState(Lo);
14193
+ }
14194
+ }
14195
+ })
14196
+ ), n != null) {
14197
+ const I = () => {
14198
+ const de = lr.serialize(
14199
+ le.state.doc
14200
+ );
14201
+ n(de);
14202
+ };
14203
+ C.addEventListener("blur", I, !0), M.push(
14204
+ () => C.removeEventListener("blur", I, !0)
14206
14205
  );
14207
- const Je = C;
14208
- Je.textContent = "Failed to load ProseMirror Editor. Please ensure prosemirror packages are installed.";
14209
14206
  }
14210
- })(), pr(() => {
14211
- M.forEach((X) => X());
14212
- });
14213
- })
14214
- )
14207
+ if (u != null) {
14208
+ const I = () => {
14209
+ u();
14210
+ };
14211
+ C.addEventListener("blur", I, !0), M.push(
14212
+ () => C.removeEventListener("blur", I, !0)
14213
+ );
14214
+ }
14215
+ M.push(
14216
+ A.on((I) => {
14217
+ I === "dark" ? C.classList.add("bc-prosemirror-editor--dark") : C.classList.remove("bc-prosemirror-editor--dark");
14218
+ })
14219
+ ), M.push(() => le.destroy());
14220
+ } catch (X) {
14221
+ console.error(
14222
+ "[BeatUI] Failed to initialize ProseMirror editor:",
14223
+ X
14224
+ );
14225
+ const Je = C;
14226
+ Je.textContent = "Failed to load ProseMirror Editor. Please ensure prosemirror packages are installed.";
14227
+ }
14228
+ })(), pr(() => {
14229
+ M.forEach((X) => X());
14230
+ });
14231
+ })
14215
14232
  )
14216
14233
  )
14217
14234
  );
@@ -14284,8 +14301,8 @@ export {
14284
14301
  ee as R,
14285
14302
  D as S,
14286
14303
  on as a,
14287
- Sa as b,
14288
- cs as c,
14304
+ Ea as b,
14305
+ as as c,
14289
14306
  wl as f,
14290
14307
  An as l
14291
14308
  };