azs-doc-editor 1.0.2 → 1.0.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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as G, computed as kt, resolveComponent as H, openBlock as R, createBlock as Z, withCtx as T, createElementVNode as v, normalizeClass as st, createVNode as S, renderSlot as Tl, ref as B, createElementBlock as D, normalizeStyle as rt, createTextVNode as _, toDisplayString as se, Fragment as ie, renderList as Ce, unref as M, createCommentVNode as Re, watch as Xe, onBeforeUnmount as jr, withKeys as go, reactive as Al, onMounted as jn, withDirectives as yr, vShow as yo, nextTick as El, resolveDirective as Rl } from "vue";
2
- import { Mark as vt, mergeAttributes as ee, markInputRule as Ml, markPasteRule as hi, Extension as wt, Node as Ze, nodeInputRule as Nl, combineTransactionSteps as Ol, getChangedRanges as Ll, findChildrenInRange as Il, getMarksBetween as Hl, getAttributes as Dl, callOrReturn as zl, getExtensionField as Pl, findParentNodeClosestToPos as $l, wrappingInputRule as Bl } from "@tiptap/core";
1
+ import { defineComponent as X, computed as kt, resolveComponent as D, openBlock as R, createBlock as Z, withCtx as T, createElementVNode as x, normalizeClass as st, createVNode as v, renderSlot as Tl, ref as $, createElementBlock as z, normalizeStyle as rt, createTextVNode as _, toDisplayString as se, Fragment as ie, renderList as Ce, unref as M, createCommentVNode as Re, watch as Xe, onBeforeUnmount as jr, withKeys as go, reactive as Al, onMounted as jn, withDirectives as yr, vShow as yo, nextTick as El, resolveDirective as Rl } from "vue";
2
+ import { Mark as vt, mergeAttributes as ee, markInputRule as Ml, markPasteRule as hi, Extension as xt, Node as Ze, nodeInputRule as Nl, combineTransactionSteps as Ol, getChangedRanges as Ll, findChildrenInRange as Il, getMarksBetween as Hl, getAttributes as Dl, callOrReturn as zl, getExtensionField as Pl, findParentNodeClosestToPos as $l, wrappingInputRule as Bl } from "@tiptap/core";
3
3
  import { Editor as Fl, EditorContent as _l } from "@tiptap/vue-3";
4
4
  import Wl from "@tiptap/starter-kit";
5
5
  var Ul = typeof global == "object" && global && global.Object === Object && global;
@@ -75,48 +75,48 @@ function bs(n, e, t) {
75
75
  throw new TypeError(ms);
76
76
  e = ko(e) || 0, br(t) && (d = !!t.leading, u = "maxWait" in t, i = u ? gs(ko(t.maxWait) || 0, e) : i, f = "trailing" in t ? !!t.trailing : f);
77
77
  function h(O) {
78
- var N = r, k = o;
79
- return r = o = void 0, c = O, l = n.apply(k, N), l;
78
+ var L = r, S = o;
79
+ return r = o = void 0, c = O, l = n.apply(S, L), l;
80
80
  }
81
81
  function p(O) {
82
- return c = O, s = setTimeout(g, e), d ? h(O) : l;
82
+ return c = O, s = setTimeout(y, e), d ? h(O) : l;
83
83
  }
84
84
  function m(O) {
85
- var N = O - a, k = O - c, A = e - N;
86
- return u ? ys(A, i - k) : A;
85
+ var L = O - a, S = O - c, A = e - L;
86
+ return u ? ys(A, i - S) : A;
87
87
  }
88
- function y(O) {
89
- var N = O - a, k = O - c;
90
- return a === void 0 || N >= e || N < 0 || u && k >= i;
88
+ function b(O) {
89
+ var L = O - a, S = O - c;
90
+ return a === void 0 || L >= e || L < 0 || u && S >= i;
91
91
  }
92
- function g() {
92
+ function y() {
93
93
  var O = Yn();
94
- if (y(O))
95
- return b(O);
96
- s = setTimeout(g, m(O));
94
+ if (b(O))
95
+ return g(O);
96
+ s = setTimeout(y, m(O));
97
97
  }
98
- function b(O) {
98
+ function g(O) {
99
99
  return s = void 0, f && r ? h(O) : (r = o = void 0, l);
100
100
  }
101
- function w() {
101
+ function k() {
102
102
  s !== void 0 && clearTimeout(s), c = 0, r = a = o = s = void 0;
103
103
  }
104
- function z() {
105
- return s === void 0 ? l : b(Yn());
104
+ function N() {
105
+ return s === void 0 ? l : g(Yn());
106
106
  }
107
- function L() {
108
- var O = Yn(), N = y(O);
109
- if (r = arguments, o = this, a = O, N) {
107
+ function I() {
108
+ var O = Yn(), L = b(O);
109
+ if (r = arguments, o = this, a = O, L) {
110
110
  if (s === void 0)
111
111
  return p(a);
112
112
  if (u)
113
- return clearTimeout(s), s = setTimeout(g, e), h(a);
113
+ return clearTimeout(s), s = setTimeout(y, e), h(a);
114
114
  }
115
- return s === void 0 && (s = setTimeout(g, e)), l;
115
+ return s === void 0 && (s = setTimeout(y, e)), l;
116
116
  }
117
- return L.cancel = w, L.flush = z, L;
117
+ return I.cancel = k, I.flush = N, I;
118
118
  }
119
- const Cs = ["disabled"], ks = /* @__PURE__ */ G({
119
+ const Cs = ["disabled"], ks = /* @__PURE__ */ X({
120
120
  __name: "HeaderItem",
121
121
  props: {
122
122
  type: {},
@@ -132,7 +132,7 @@ const Cs = ["disabled"], ks = /* @__PURE__ */ G({
132
132
  t.disabled || o("click");
133
133
  }
134
134
  return (l, s) => {
135
- const a = H("el-tooltip");
135
+ const a = D("el-tooltip");
136
136
  return R(), Z(a, {
137
137
  content: n.desc,
138
138
  placement: "top-start",
@@ -140,7 +140,7 @@ const Cs = ["disabled"], ks = /* @__PURE__ */ G({
140
140
  "show-after": 300
141
141
  }, {
142
142
  default: T(() => [
143
- v("i", {
143
+ x("i", {
144
144
  onClick: i,
145
145
  disabled: n.disabled,
146
146
  class: st({ [n.icon]: !0, "is-active": t.type === "style" && r.value, "is-disabled": n.disabled })
@@ -156,7 +156,7 @@ const Se = (n, e) => {
156
156
  for (const [r, o] of e)
157
157
  t[r] = o;
158
158
  return t;
159
- }, J = /* @__PURE__ */ Se(ks, [["__scopeId", "data-v-8c3650b3"]]), ce = /* @__PURE__ */ G({
159
+ }, q = /* @__PURE__ */ Se(ks, [["__scopeId", "data-v-8c3650b3"]]), ce = /* @__PURE__ */ X({
160
160
  __name: "DropdownButton",
161
161
  props: {
162
162
  disabled: { type: Boolean, default: !1 },
@@ -165,17 +165,17 @@ const Se = (n, e) => {
165
165
  emits: ["click"],
166
166
  setup(n) {
167
167
  return (e, t) => {
168
- const r = H("el-button"), o = H("el-dropdown-item");
168
+ const r = D("el-button"), o = D("el-dropdown-item");
169
169
  return R(), Z(o, null, {
170
170
  default: T(() => [
171
- S(r, {
171
+ v(r, {
172
172
  text: "",
173
173
  class: "dropdown-btn",
174
174
  onClick: t[0] || (t[0] = (i) => e.$emit("click")),
175
175
  disabled: n.disabled
176
176
  }, {
177
177
  default: T(() => [
178
- v("i", {
178
+ x("i", {
179
179
  class: st(n.icon)
180
180
  }, null, 2),
181
181
  Tl(e.$slots, "default")
@@ -188,7 +188,7 @@ const Se = (n, e) => {
188
188
  };
189
189
  }
190
190
  });
191
- const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container" }, ws = { class: "predefine-color-wrapper" }, xs = { class: "predefine-color-list" }, Ts = ["onClick"], As = { class: "predefine-color-list" }, Es = ["onClick"], Rs = { class: "predefine-color-list" }, Ms = ["onClick"], Ns = { class: "more-color" }, Os = /* @__PURE__ */ G({
191
+ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container" }, xs = { class: "predefine-color-wrapper" }, ws = { class: "predefine-color-list" }, Ts = ["onClick"], As = { class: "predefine-color-list" }, Es = ["onClick"], Rs = { class: "predefine-color-list" }, Ms = ["onClick"], Ns = { class: "more-color" }, Os = /* @__PURE__ */ X({
192
192
  __name: "IconColorPicker",
193
193
  props: {
194
194
  color: {},
@@ -221,12 +221,12 @@ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container
221
221
  "#0070c0",
222
222
  "#002060",
223
223
  "#7030a0"
224
- ], o = B([]), i = kt(() => {
224
+ ], o = $([]), i = kt(() => {
225
225
  const f = [];
226
226
  for (let h = 0; h < 10 - o.value.length; h++)
227
227
  f.push("#ffffff");
228
228
  return f;
229
- }), l = n, s = e, a = B(), c = B(), d = kt({
229
+ }), l = n, s = e, a = $(), c = $(), d = kt({
230
230
  get: () => l.color,
231
231
  set: (f) => s("update:color", f)
232
232
  });
@@ -235,10 +235,10 @@ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container
235
235
  h && f && (o.value.length >= 10 && o.value.pop(), o.value.unshift(f)), d.value = f || void 0, s("update:color", f), p && ((m = c.value) == null || m.hide()), s("changeColor");
236
236
  }
237
237
  return (f, h) => {
238
- const p = H("el-tooltip"), m = H("el-divider"), y = H("el-color-picker"), g = H("el-popover");
239
- return R(), D("div", Ss, [
240
- v("div", vs, [
241
- S(p, {
238
+ const p = D("el-tooltip"), m = D("el-divider"), b = D("el-color-picker"), y = D("el-popover");
239
+ return R(), z("div", Ss, [
240
+ x("div", vs, [
241
+ v(p, {
242
242
  content: l.desc,
243
243
  placement: "top-start",
244
244
  effect: "dark",
@@ -246,14 +246,14 @@ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container
246
246
  teleported: !1
247
247
  }, {
248
248
  default: T(() => [
249
- v("div", {
249
+ x("div", {
250
250
  class: "icon-wrapper",
251
- onClick: h[0] || (h[0] = (b) => s("changeColor"))
251
+ onClick: h[0] || (h[0] = (g) => s("changeColor"))
252
252
  }, [
253
- v("i", {
253
+ x("i", {
254
254
  class: st([l.icon, "icon"])
255
255
  }, null, 2),
256
- v("div", {
256
+ x("div", {
257
257
  class: "select-color-wrapper",
258
258
  style: rt({ background: d.value })
259
259
  }, null, 4)
@@ -261,7 +261,7 @@ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container
261
261
  ]),
262
262
  _: 1
263
263
  }, 8, ["content"]),
264
- S(g, {
264
+ v(y, {
265
265
  ref_key: "ColorWrapperRef",
266
266
  ref: c,
267
267
  trigger: "click",
@@ -269,13 +269,13 @@ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container
269
269
  "popper-class": "color-wrapper-popover"
270
270
  }, {
271
271
  reference: T(() => [...h[5] || (h[5] = [
272
- v("div", { class: "picker-container" }, [
273
- v("i", { class: "ri-arrow-drop-down-line" })
272
+ x("div", { class: "picker-container" }, [
273
+ x("i", { class: "ri-arrow-drop-down-line" })
274
274
  ], -1)
275
275
  ])]),
276
276
  default: T(() => [
277
- v("div", ws, [
278
- S(m, {
277
+ x("div", xs, [
278
+ v(m, {
279
279
  "content-position": "left",
280
280
  class: "color-title",
281
281
  style: { "margin-top": "10px" }
@@ -285,24 +285,24 @@ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container
285
285
  ]),
286
286
  _: 1
287
287
  }),
288
- v("div", {
288
+ x("div", {
289
289
  class: "default-color",
290
- onClick: h[1] || (h[1] = (b) => u(n.defaultColor, !1))
290
+ onClick: h[1] || (h[1] = (g) => u(n.defaultColor, !1))
291
291
  }, "默认颜色"),
292
- v("div", xs, [
293
- (R(), D(ie, null, Ce(t, (b, w) => v("div", {
294
- key: w,
292
+ x("div", ws, [
293
+ (R(), z(ie, null, Ce(t, (g, k) => x("div", {
294
+ key: k,
295
295
  class: "predefine-column"
296
296
  }, [
297
- (R(!0), D(ie, null, Ce(b, (z) => (R(), D("div", {
298
- key: z,
297
+ (R(!0), z(ie, null, Ce(g, (N) => (R(), z("div", {
298
+ key: N,
299
299
  class: "predefine-item",
300
- style: rt({ background: z }),
301
- onClick: (L) => u(z)
300
+ style: rt({ background: N }),
301
+ onClick: (I) => u(N)
302
302
  }, null, 12, Ts))), 128))
303
303
  ])), 64))
304
304
  ]),
305
- S(m, {
305
+ v(m, {
306
306
  "content-position": "left",
307
307
  class: "color-title"
308
308
  }, {
@@ -311,15 +311,15 @@ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container
311
311
  ])]),
312
312
  _: 1
313
313
  }),
314
- v("div", As, [
315
- (R(), D(ie, null, Ce(r, (b, w) => v("div", {
316
- key: w,
314
+ x("div", As, [
315
+ (R(), z(ie, null, Ce(r, (g, k) => x("div", {
316
+ key: k,
317
317
  class: "predefine-item",
318
- style: rt({ background: b }),
319
- onClick: (z) => u(b)
318
+ style: rt({ background: g }),
319
+ onClick: (N) => u(g)
320
320
  }, null, 12, Es)), 64))
321
321
  ]),
322
- S(m, {
322
+ v(m, {
323
323
  "content-position": "left",
324
324
  class: "color-title"
325
325
  }, {
@@ -328,31 +328,31 @@ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container
328
328
  ])]),
329
329
  _: 1
330
330
  }),
331
- v("div", Rs, [
332
- (R(!0), D(ie, null, Ce(o.value, (b, w) => (R(), D("div", {
333
- key: w,
331
+ x("div", Rs, [
332
+ (R(!0), z(ie, null, Ce(o.value, (g, k) => (R(), z("div", {
333
+ key: k,
334
334
  class: "predefine-item",
335
- style: rt({ background: b }),
336
- onClick: (z) => u(b, !1)
335
+ style: rt({ background: g }),
336
+ onClick: (N) => u(g, !1)
337
337
  }, null, 12, Ms))), 128)),
338
- (R(!0), D(ie, null, Ce(i.value, (b, w) => (R(), D("div", {
339
- key: w,
338
+ (R(!0), z(ie, null, Ce(i.value, (g, k) => (R(), z("div", {
339
+ key: k,
340
340
  class: "predefine-item",
341
341
  style: { background: "#fff" }
342
342
  }))), 128))
343
343
  ])
344
344
  ]),
345
- v("div", Ns, [
346
- v("div", {
345
+ x("div", Ns, [
346
+ x("div", {
347
347
  style: { flex: "1", "padding-top": "12px" },
348
- onClick: h[2] || (h[2] = (b) => {
349
- var w;
350
- return (w = a.value) == null ? void 0 : w.show();
348
+ onClick: h[2] || (h[2] = (g) => {
349
+ var k;
350
+ return (k = a.value) == null ? void 0 : k.show();
351
351
  })
352
352
  }, "更多颜色"),
353
- S(y, {
353
+ v(b, {
354
354
  modelValue: d.value,
355
- "onUpdate:modelValue": h[3] || (h[3] = (b) => d.value = b),
355
+ "onUpdate:modelValue": h[3] || (h[3] = (g) => d.value = g),
356
356
  ref_key: "colorPickerRef",
357
357
  ref: a,
358
358
  style: { width: "0px", height: "0px", "padding-top": "36px", overflow: "hidden" },
@@ -360,12 +360,12 @@ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container
360
360
  disabled: l.disabled,
361
361
  onChange: u
362
362
  }, null, 8, ["modelValue", "disabled"]),
363
- v("i", {
363
+ x("i", {
364
364
  class: "ri-arrow-drop-down-line",
365
365
  style: { flex: "1", "padding-top": "12px", "text-align": "right" },
366
- onClick: h[4] || (h[4] = (b) => {
367
- var w;
368
- return (w = a.value) == null ? void 0 : w.show();
366
+ onClick: h[4] || (h[4] = (g) => {
367
+ var k;
368
+ return (k = a.value) == null ? void 0 : k.show();
369
369
  })
370
370
  })
371
371
  ])
@@ -377,102 +377,102 @@ const Ss = { class: "icon-color-picker" }, vs = { class: "color-picker-container
377
377
  };
378
378
  }
379
379
  });
380
- const Cr = /* @__PURE__ */ Se(Os, [["__scopeId", "data-v-68dc6757"]]), Ls = /* @__PURE__ */ G({
380
+ const Cr = /* @__PURE__ */ Se(Os, [["__scopeId", "data-v-68dc6757"]]), Ls = /* @__PURE__ */ X({
381
381
  __name: "TextEditor",
382
382
  props: {
383
383
  editor: {},
384
384
  editable: { type: Boolean }
385
385
  },
386
386
  setup(n) {
387
- const e = n, t = B("#000000");
387
+ const e = n, t = $("#000000");
388
388
  function r() {
389
389
  var l, s;
390
390
  t.value ? (l = e.editor) == null || l.commands.setColor(t.value) : (s = e.editor) == null || s.commands.setColor("#000000");
391
391
  }
392
- const o = B();
392
+ const o = $();
393
393
  function i() {
394
394
  var l, s;
395
395
  o.value ? (l = e.editor) == null || l.commands.toggleHighlight({ color: o.value }) : (s = e.editor) == null || s.commands.unsetHighlight();
396
396
  }
397
397
  return (l, s) => {
398
- var a, c, d, u, f, h, p, m, y, g;
399
- return R(), D(ie, null, [
400
- S(M(J), {
398
+ var a, c, d, u, f, h, p, m, b, y;
399
+ return R(), z(ie, null, [
400
+ v(M(q), {
401
401
  type: "style",
402
402
  desc: "加粗",
403
403
  icon: "ri-bold",
404
404
  active: (a = n.editor) == null ? void 0 : a.isActive("bold"),
405
- onClick: s[0] || (s[0] = (b) => {
406
- var w;
407
- return (w = n.editor) == null ? void 0 : w.chain().focus().toggleBold().run();
405
+ onClick: s[0] || (s[0] = (g) => {
406
+ var k;
407
+ return (k = n.editor) == null ? void 0 : k.chain().focus().toggleBold().run();
408
408
  }),
409
409
  disabled: !((c = n.editor) != null && c.can().chain().focus().toggleBold().run()) || !n.editable
410
410
  }, null, 8, ["active", "disabled"]),
411
- S(M(J), {
411
+ v(M(q), {
412
412
  type: "style",
413
413
  desc: "倾斜",
414
414
  icon: "ri-italic",
415
415
  active: (d = n.editor) == null ? void 0 : d.isActive("italic"),
416
- onClick: s[1] || (s[1] = (b) => {
417
- var w;
418
- return (w = n.editor) == null ? void 0 : w.chain().focus().toggleItalic().run();
416
+ onClick: s[1] || (s[1] = (g) => {
417
+ var k;
418
+ return (k = n.editor) == null ? void 0 : k.chain().focus().toggleItalic().run();
419
419
  }),
420
420
  disabled: !((u = n.editor) != null && u.can().chain().focus().toggleItalic().run()) || !n.editable
421
421
  }, null, 8, ["active", "disabled"]),
422
- S(M(J), {
422
+ v(M(q), {
423
423
  type: "style",
424
424
  desc: "删除线",
425
425
  icon: "ri-strikethrough",
426
426
  active: (f = n.editor) == null ? void 0 : f.isActive("strike"),
427
- onClick: s[2] || (s[2] = (b) => {
428
- var w;
429
- return (w = n.editor) == null ? void 0 : w.chain().focus().toggleStrike().run();
427
+ onClick: s[2] || (s[2] = (g) => {
428
+ var k;
429
+ return (k = n.editor) == null ? void 0 : k.chain().focus().toggleStrike().run();
430
430
  }),
431
431
  disabled: !((h = n.editor) != null && h.can().chain().focus().toggleStrike().run()) || !n.editable
432
432
  }, null, 8, ["active", "disabled"]),
433
- S(M(J), {
433
+ v(M(q), {
434
434
  type: "style",
435
435
  desc: "下划线",
436
436
  icon: "ri-underline",
437
437
  active: (p = n.editor) == null ? void 0 : p.isActive("underline"),
438
- onClick: s[3] || (s[3] = (b) => {
439
- var w;
440
- return (w = n.editor) == null ? void 0 : w.chain().focus().toggleUnderline().run();
438
+ onClick: s[3] || (s[3] = (g) => {
439
+ var k;
440
+ return (k = n.editor) == null ? void 0 : k.chain().focus().toggleUnderline().run();
441
441
  }),
442
442
  disabled: !((m = n.editor) != null && m.can().chain().focus().toggleUnderline().run()) || !n.editable
443
443
  }, null, 8, ["active", "disabled"]),
444
- S(M(J), {
444
+ v(M(q), {
445
445
  type: "action",
446
446
  desc: "上标",
447
447
  icon: "ri-superscript",
448
- onClick: s[4] || (s[4] = (b) => {
449
- var w;
450
- return (w = n.editor) == null ? void 0 : w.chain().focus().toggleSuperscript().run();
448
+ onClick: s[4] || (s[4] = (g) => {
449
+ var k;
450
+ return (k = n.editor) == null ? void 0 : k.chain().focus().toggleSuperscript().run();
451
451
  }),
452
- disabled: !((y = n.editor) != null && y.can().chain().focus().toggleSuperscript().run()) || !n.editable
452
+ disabled: !((b = n.editor) != null && b.can().chain().focus().toggleSuperscript().run()) || !n.editable
453
453
  }, null, 8, ["disabled"]),
454
- S(M(J), {
454
+ v(M(q), {
455
455
  type: "action",
456
456
  desc: "下标",
457
457
  icon: "ri-subscript",
458
- onClick: s[5] || (s[5] = (b) => {
459
- var w;
460
- return (w = n.editor) == null ? void 0 : w.chain().focus().toggleSubscript().run();
458
+ onClick: s[5] || (s[5] = (g) => {
459
+ var k;
460
+ return (k = n.editor) == null ? void 0 : k.chain().focus().toggleSubscript().run();
461
461
  }),
462
- disabled: !((g = n.editor) != null && g.can().chain().focus().toggleSubscript().run()) || !n.editable
462
+ disabled: !((y = n.editor) != null && y.can().chain().focus().toggleSubscript().run()) || !n.editable
463
463
  }, null, 8, ["disabled"]),
464
- S(M(Cr), {
464
+ v(M(Cr), {
465
465
  color: t.value,
466
- "onUpdate:color": s[6] || (s[6] = (b) => t.value = b),
466
+ "onUpdate:color": s[6] || (s[6] = (g) => t.value = g),
467
467
  desc: "字体颜色",
468
468
  icon: "ri-font-family",
469
469
  defaultColor: "#000",
470
470
  disabled: !n.editable,
471
471
  onChangeColor: r
472
472
  }, null, 8, ["color", "disabled"]),
473
- S(M(Cr), {
473
+ v(M(Cr), {
474
474
  color: o.value,
475
- "onUpdate:color": s[7] || (s[7] = (b) => o.value = b),
475
+ "onUpdate:color": s[7] || (s[7] = (g) => o.value = g),
476
476
  desc: "背景高亮",
477
477
  icon: "ri-mark-pen-line",
478
478
  disabled: !n.editable,
@@ -481,7 +481,7 @@ const Cr = /* @__PURE__ */ Se(Os, [["__scopeId", "data-v-68dc6757"]]), Ls = /* @
481
481
  ], 64);
482
482
  };
483
483
  }
484
- }), Is = { class: "heading-menu" }, Hs = /* @__PURE__ */ G({
484
+ }), Is = { class: "heading-menu" }, Hs = /* @__PURE__ */ X({
485
485
  __name: "HeadingEditor",
486
486
  props: {
487
487
  editor: {},
@@ -506,12 +506,12 @@ const Cr = /* @__PURE__ */ Se(Os, [["__scopeId", "data-v-68dc6757"]]), Ls = /* @
506
506
  return (i = e.editor) != null && i.isActive("heading", { level: 1 }) ? "H1" : (l = e.editor) != null && l.isActive("heading", { level: 2 }) ? "H2" : (s = e.editor) != null && s.isActive("heading", { level: 3 }) ? "H3" : (a = e.editor) != null && a.isActive("heading", { level: 4 }) ? "H4" : (c = e.editor) != null && c.isActive("heading", { level: 5 }) ? "H5" : (d = e.editor) != null && d.isActive("heading", { level: 6 }) ? "H6" : "正文";
507
507
  }
508
508
  return (i, l) => {
509
- const s = H("el-dropdown-item"), a = H("el-dropdown-menu"), c = H("el-dropdown");
509
+ const s = D("el-dropdown-item"), a = D("el-dropdown-menu"), c = D("el-dropdown");
510
510
  return R(), Z(c, { "hide-timeout": 300 }, {
511
511
  dropdown: T(() => [
512
- S(a, null, {
512
+ v(a, null, {
513
513
  default: T(() => [
514
- (R(), D(ie, null, Ce(t, (d) => S(s, {
514
+ (R(), z(ie, null, Ce(t, (d) => v(s, {
515
515
  key: d.value,
516
516
  onClick: (u) => r(d.value)
517
517
  }, {
@@ -525,9 +525,9 @@ const Cr = /* @__PURE__ */ Se(Os, [["__scopeId", "data-v-68dc6757"]]), Ls = /* @
525
525
  })
526
526
  ]),
527
527
  default: T(() => [
528
- v("div", Is, [
529
- v("span", null, se(o()), 1),
530
- l[0] || (l[0] = v("i", { class: "ri-arrow-drop-down-line" }, null, -1))
528
+ x("div", Is, [
529
+ x("span", null, se(o()), 1),
530
+ l[0] || (l[0] = x("i", { class: "ri-arrow-drop-down-line" }, null, -1))
531
531
  ])
532
532
  ]),
533
533
  _: 1
@@ -535,40 +535,40 @@ const Cr = /* @__PURE__ */ Se(Os, [["__scopeId", "data-v-68dc6757"]]), Ls = /* @
535
535
  };
536
536
  }
537
537
  });
538
- const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @__PURE__ */ G({
538
+ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @__PURE__ */ X({
539
539
  __name: "TableEditor",
540
540
  props: {
541
541
  editor: {},
542
542
  editable: { type: Boolean }
543
543
  },
544
544
  setup(n) {
545
- const e = n, t = B("");
545
+ const e = n, t = $("");
546
546
  function r() {
547
547
  var o;
548
548
  (o = e.editor) == null || o.chain().focus().setCellAttribute("backgroundColor", t.value).run();
549
549
  }
550
550
  return (o, i) => {
551
- const l = H("el-dropdown-menu"), s = H("el-dropdown"), a = H("el-tooltip");
552
- return R(), D(ie, null, [
553
- S(a, {
551
+ const l = D("el-dropdown-menu"), s = D("el-dropdown"), a = D("el-tooltip");
552
+ return R(), z(ie, null, [
553
+ v(a, {
554
554
  content: "表格",
555
555
  placement: "top-start",
556
556
  effect: "dark",
557
557
  "show-after": 500
558
558
  }, {
559
559
  default: T(() => [
560
- S(s, {
560
+ v(s, {
561
561
  disabled: !n.editable
562
562
  }, {
563
563
  dropdown: T(() => [
564
- S(l, { style: { "max-height": "300px", "overflow-y": "auto" } }, {
564
+ v(l, { style: { "max-height": "300px", "overflow-y": "auto" } }, {
565
565
  default: T(() => {
566
- var c, d, u, f, h, p, m, y, g, b, w, z, L, O;
566
+ var c, d, u, f, h, p, m, b, y, g, k, N, I, O;
567
567
  return [
568
- S(M(ce), {
569
- onClick: i[0] || (i[0] = (N) => {
570
- var k;
571
- return (k = n.editor) == null ? void 0 : k.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
568
+ v(M(ce), {
569
+ onClick: i[0] || (i[0] = (L) => {
570
+ var S;
571
+ return (S = n.editor) == null ? void 0 : S.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
572
572
  }),
573
573
  disabled: !((c = n.editor) != null && c.can().insertTable()),
574
574
  icon: "ri-page-separator"
@@ -578,10 +578,10 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
578
578
  ])]),
579
579
  _: 1
580
580
  }, 8, ["disabled"]),
581
- S(M(ce), {
582
- onClick: i[1] || (i[1] = (N) => {
583
- var k;
584
- return (k = n.editor) == null ? void 0 : k.chain().focus().deleteTable().run();
581
+ v(M(ce), {
582
+ onClick: i[1] || (i[1] = (L) => {
583
+ var S;
584
+ return (S = n.editor) == null ? void 0 : S.chain().focus().deleteTable().run();
585
585
  }),
586
586
  disabled: !((d = n.editor) != null && d.can().deleteTable()),
587
587
  icon: "ri-delete-bin-5-line"
@@ -591,10 +591,10 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
591
591
  ])]),
592
592
  _: 1
593
593
  }, 8, ["disabled"]),
594
- S(M(ce), {
595
- onClick: i[2] || (i[2] = (N) => {
596
- var k;
597
- return (k = n.editor) == null ? void 0 : k.chain().focus().addRowBefore().run();
594
+ v(M(ce), {
595
+ onClick: i[2] || (i[2] = (L) => {
596
+ var S;
597
+ return (S = n.editor) == null ? void 0 : S.chain().focus().addRowBefore().run();
598
598
  }),
599
599
  disabled: !((u = n.editor) != null && u.can().addRowBefore()),
600
600
  icon: "ri-insert-row-top"
@@ -604,10 +604,10 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
604
604
  ])]),
605
605
  _: 1
606
606
  }, 8, ["disabled"]),
607
- S(M(ce), {
608
- onClick: i[3] || (i[3] = (N) => {
609
- var k;
610
- return (k = n.editor) == null ? void 0 : k.chain().focus().addRowAfter().run();
607
+ v(M(ce), {
608
+ onClick: i[3] || (i[3] = (L) => {
609
+ var S;
610
+ return (S = n.editor) == null ? void 0 : S.chain().focus().addRowAfter().run();
611
611
  }),
612
612
  disabled: !((f = n.editor) != null && f.can().addRowAfter()),
613
613
  icon: "ri-insert-row-bottom"
@@ -617,10 +617,10 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
617
617
  ])]),
618
618
  _: 1
619
619
  }, 8, ["disabled"]),
620
- S(M(ce), {
621
- onClick: i[4] || (i[4] = (N) => {
622
- var k;
623
- return (k = n.editor) == null ? void 0 : k.chain().focus().addColumnBefore().run();
620
+ v(M(ce), {
621
+ onClick: i[4] || (i[4] = (L) => {
622
+ var S;
623
+ return (S = n.editor) == null ? void 0 : S.chain().focus().addColumnBefore().run();
624
624
  }),
625
625
  disabled: !((h = n.editor) != null && h.can().addColumnBefore()),
626
626
  icon: "ri-insert-column-left"
@@ -630,10 +630,10 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
630
630
  ])]),
631
631
  _: 1
632
632
  }, 8, ["disabled"]),
633
- S(M(ce), {
634
- onClick: i[5] || (i[5] = (N) => {
635
- var k;
636
- return (k = n.editor) == null ? void 0 : k.chain().focus().addColumnAfter().run();
633
+ v(M(ce), {
634
+ onClick: i[5] || (i[5] = (L) => {
635
+ var S;
636
+ return (S = n.editor) == null ? void 0 : S.chain().focus().addColumnAfter().run();
637
637
  }),
638
638
  disabled: !((p = n.editor) != null && p.can().addColumnAfter()),
639
639
  icon: "ri-insert-column-right"
@@ -643,10 +643,10 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
643
643
  ])]),
644
644
  _: 1
645
645
  }, 8, ["disabled"]),
646
- S(M(ce), {
647
- onClick: i[6] || (i[6] = (N) => {
648
- var k;
649
- return (k = n.editor) == null ? void 0 : k.chain().focus().deleteRow().run();
646
+ v(M(ce), {
647
+ onClick: i[6] || (i[6] = (L) => {
648
+ var S;
649
+ return (S = n.editor) == null ? void 0 : S.chain().focus().deleteRow().run();
650
650
  }),
651
651
  disabled: !((m = n.editor) != null && m.can().deleteRow()),
652
652
  icon: "ri-delete-row"
@@ -656,12 +656,12 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
656
656
  ])]),
657
657
  _: 1
658
658
  }, 8, ["disabled"]),
659
- S(M(ce), {
660
- onClick: i[7] || (i[7] = (N) => {
661
- var k;
662
- return (k = n.editor) == null ? void 0 : k.chain().focus().deleteColumn().run();
659
+ v(M(ce), {
660
+ onClick: i[7] || (i[7] = (L) => {
661
+ var S;
662
+ return (S = n.editor) == null ? void 0 : S.chain().focus().deleteColumn().run();
663
663
  }),
664
- disabled: !((y = n.editor) != null && y.can().deleteColumn()),
664
+ disabled: !((b = n.editor) != null && b.can().deleteColumn()),
665
665
  icon: "ri-delete-column"
666
666
  }, {
667
667
  default: T(() => [...i[22] || (i[22] = [
@@ -669,12 +669,12 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
669
669
  ])]),
670
670
  _: 1
671
671
  }, 8, ["disabled"]),
672
- S(M(ce), {
673
- onClick: i[8] || (i[8] = (N) => {
674
- var k;
675
- return (k = n.editor) == null ? void 0 : k.chain().focus().mergeCells().run();
672
+ v(M(ce), {
673
+ onClick: i[8] || (i[8] = (L) => {
674
+ var S;
675
+ return (S = n.editor) == null ? void 0 : S.chain().focus().mergeCells().run();
676
676
  }),
677
- disabled: !((g = n.editor) != null && g.can().mergeCells()),
677
+ disabled: !((y = n.editor) != null && y.can().mergeCells()),
678
678
  icon: "ri-merge-cells-vertical"
679
679
  }, {
680
680
  default: T(() => [...i[23] || (i[23] = [
@@ -682,12 +682,12 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
682
682
  ])]),
683
683
  _: 1
684
684
  }, 8, ["disabled"]),
685
- S(M(ce), {
686
- onClick: i[9] || (i[9] = (N) => {
687
- var k;
688
- return (k = n.editor) == null ? void 0 : k.chain().focus().splitCell().run();
685
+ v(M(ce), {
686
+ onClick: i[9] || (i[9] = (L) => {
687
+ var S;
688
+ return (S = n.editor) == null ? void 0 : S.chain().focus().splitCell().run();
689
689
  }),
690
- disabled: !((b = n.editor) != null && b.can().splitCell()),
690
+ disabled: !((g = n.editor) != null && g.can().splitCell()),
691
691
  icon: "ri-merge-cells-vertical"
692
692
  }, {
693
693
  default: T(() => [...i[24] || (i[24] = [
@@ -695,12 +695,12 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
695
695
  ])]),
696
696
  _: 1
697
697
  }, 8, ["disabled"]),
698
- S(M(ce), {
699
- onClick: i[10] || (i[10] = (N) => {
700
- var k;
701
- return (k = n.editor) == null ? void 0 : k.chain().focus().mergeOrSplit().run();
698
+ v(M(ce), {
699
+ onClick: i[10] || (i[10] = (L) => {
700
+ var S;
701
+ return (S = n.editor) == null ? void 0 : S.chain().focus().mergeOrSplit().run();
702
702
  }),
703
- disabled: !((w = n.editor) != null && w.can().mergeOrSplit()),
703
+ disabled: !((k = n.editor) != null && k.can().mergeOrSplit()),
704
704
  icon: "ri-merge-cells-vertical"
705
705
  }, {
706
706
  default: T(() => [...i[25] || (i[25] = [
@@ -708,12 +708,12 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
708
708
  ])]),
709
709
  _: 1
710
710
  }, 8, ["disabled"]),
711
- S(M(ce), {
712
- onClick: i[11] || (i[11] = (N) => {
713
- var k;
714
- return (k = n.editor) == null ? void 0 : k.chain().focus().toggleHeaderRow().run();
711
+ v(M(ce), {
712
+ onClick: i[11] || (i[11] = (L) => {
713
+ var S;
714
+ return (S = n.editor) == null ? void 0 : S.chain().focus().toggleHeaderRow().run();
715
715
  }),
716
- disabled: !((z = n.editor) != null && z.can().toggleHeaderRow()),
716
+ disabled: !((N = n.editor) != null && N.can().toggleHeaderRow()),
717
717
  icon: "ri-layout-row-fill"
718
718
  }, {
719
719
  default: T(() => [...i[26] || (i[26] = [
@@ -721,12 +721,12 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
721
721
  ])]),
722
722
  _: 1
723
723
  }, 8, ["disabled"]),
724
- S(M(ce), {
725
- onClick: i[12] || (i[12] = (N) => {
726
- var k;
727
- return (k = n.editor) == null ? void 0 : k.chain().focus().toggleHeaderColumn().run();
724
+ v(M(ce), {
725
+ onClick: i[12] || (i[12] = (L) => {
726
+ var S;
727
+ return (S = n.editor) == null ? void 0 : S.chain().focus().toggleHeaderColumn().run();
728
728
  }),
729
- disabled: !((L = n.editor) != null && L.can().toggleHeaderColumn()),
729
+ disabled: !((I = n.editor) != null && I.can().toggleHeaderColumn()),
730
730
  icon: "ri-layout-column-fill"
731
731
  }, {
732
732
  default: T(() => [...i[27] || (i[27] = [
@@ -734,10 +734,10 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
734
734
  ])]),
735
735
  _: 1
736
736
  }, 8, ["disabled"]),
737
- S(M(ce), {
738
- onClick: i[13] || (i[13] = (N) => {
739
- var k;
740
- return (k = n.editor) == null ? void 0 : k.chain().focus().toggleHeaderCell().run();
737
+ v(M(ce), {
738
+ onClick: i[13] || (i[13] = (L) => {
739
+ var S;
740
+ return (S = n.editor) == null ? void 0 : S.chain().focus().toggleHeaderCell().run();
741
741
  }),
742
742
  disabled: !((O = n.editor) != null && O.can().toggleHeaderCell()),
743
743
  icon: "ri-artboard-2-fill"
@@ -753,9 +753,9 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
753
753
  })
754
754
  ]),
755
755
  default: T(() => [
756
- i[29] || (i[29] = v("span", { style: { outline: "none", cursor: "pointer" } }, [
757
- v("i", { class: "ri-table-2" }),
758
- v("i", { class: "ri-arrow-drop-down-line" })
756
+ i[29] || (i[29] = x("span", { style: { outline: "none", cursor: "pointer" } }, [
757
+ x("i", { class: "ri-table-2" }),
758
+ x("i", { class: "ri-arrow-drop-down-line" })
759
759
  ], -1))
760
760
  ]),
761
761
  _: 1
@@ -763,7 +763,7 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
763
763
  ]),
764
764
  _: 1
765
765
  }),
766
- S(M(Cr), {
766
+ v(M(Cr), {
767
767
  color: t.value,
768
768
  "onUpdate:color": i[14] || (i[14] = (c) => t.value = c),
769
769
  desc: "表格颜色",
@@ -774,7 +774,7 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
774
774
  ], 64);
775
775
  };
776
776
  }
777
- }), Ps = { class: "typography-editor-container" }, $s = /* @__PURE__ */ G({
777
+ }), Ps = { class: "typography-editor-container" }, $s = /* @__PURE__ */ X({
778
778
  __name: "TypographyEditor",
779
779
  props: {
780
780
  editor: {},
@@ -786,59 +786,59 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
786
786
  e.editor && e.editor.commands.setLineSpacing(o);
787
787
  }
788
788
  return (o, i) => {
789
- var c, d, u, f, h, p, m, y;
790
- const l = H("el-dropdown-item"), s = H("el-dropdown-menu"), a = H("el-dropdown");
791
- return R(), D("div", Ps, [
792
- S(M(J), {
789
+ var c, d, u, f, h, p, m, b;
790
+ const l = D("el-dropdown-item"), s = D("el-dropdown-menu"), a = D("el-dropdown");
791
+ return R(), z("div", Ps, [
792
+ v(M(q), {
793
793
  type: "style",
794
794
  desc: "左对齐",
795
795
  icon: "ri-align-left",
796
796
  active: (c = n.editor) == null ? void 0 : c.isActive({ textAlign: "left" }),
797
797
  disabled: !n.editable,
798
- onClick: i[0] || (i[0] = (g) => {
799
- var b;
800
- return (b = n.editor) == null ? void 0 : b.chain().focus().setTextAlign("left").run();
798
+ onClick: i[0] || (i[0] = (y) => {
799
+ var g;
800
+ return (g = n.editor) == null ? void 0 : g.chain().focus().setTextAlign("left").run();
801
801
  })
802
802
  }, null, 8, ["active", "disabled"]),
803
- S(M(J), {
803
+ v(M(q), {
804
804
  type: "style",
805
805
  desc: "居中",
806
806
  icon: "ri-align-center",
807
807
  active: (d = n.editor) == null ? void 0 : d.isActive({ textAlign: "center" }),
808
808
  disabled: !n.editable,
809
- onClick: i[1] || (i[1] = (g) => {
810
- var b;
811
- return (b = n.editor) == null ? void 0 : b.chain().focus().setTextAlign("center").run();
809
+ onClick: i[1] || (i[1] = (y) => {
810
+ var g;
811
+ return (g = n.editor) == null ? void 0 : g.chain().focus().setTextAlign("center").run();
812
812
  })
813
813
  }, null, 8, ["active", "disabled"]),
814
- S(M(J), {
814
+ v(M(q), {
815
815
  type: "style",
816
816
  desc: "右对齐",
817
817
  icon: "ri-align-right",
818
818
  active: (u = n.editor) == null ? void 0 : u.isActive({ textAlign: "right" }),
819
819
  disabled: !n.editable,
820
- onClick: i[2] || (i[2] = (g) => {
821
- var b;
822
- return (b = n.editor) == null ? void 0 : b.chain().focus().setTextAlign("right").run();
820
+ onClick: i[2] || (i[2] = (y) => {
821
+ var g;
822
+ return (g = n.editor) == null ? void 0 : g.chain().focus().setTextAlign("right").run();
823
823
  })
824
824
  }, null, 8, ["active", "disabled"]),
825
- S(a, {
825
+ v(a, {
826
826
  trigger: "click",
827
827
  teleported: !1,
828
828
  disabled: !n.editable
829
829
  }, {
830
830
  dropdown: T(() => [
831
- S(s, null, {
831
+ v(s, null, {
832
832
  default: T(() => [
833
- (R(), D(ie, null, Ce(t, (g) => {
834
- var b;
835
- return S(l, {
836
- key: g,
837
- class: st((b = n.editor) != null && b.isActive({ lineHeight: g }) ? "active-spacing" : ""),
838
- onClick: (w) => r(g)
833
+ (R(), z(ie, null, Ce(t, (y) => {
834
+ var g;
835
+ return v(l, {
836
+ key: y,
837
+ class: st((g = n.editor) != null && g.isActive({ lineHeight: y }) ? "active-spacing" : ""),
838
+ onClick: (k) => r(y)
839
839
  }, {
840
840
  default: T(() => [
841
- _(se(g), 1)
841
+ _(se(y), 1)
842
842
  ]),
843
843
  _: 2
844
844
  }, 1032, ["class", "onClick"]);
@@ -848,8 +848,8 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
848
848
  })
849
849
  ]),
850
850
  default: T(() => [
851
- v("span", null, [
852
- S(M(J), {
851
+ x("span", null, [
852
+ v(M(q), {
853
853
  type: "style",
854
854
  desc: "行距",
855
855
  icon: "ri-line-height",
@@ -859,78 +859,78 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
859
859
  ]),
860
860
  _: 1
861
861
  }, 8, ["disabled"]),
862
- S(M(J), {
862
+ v(M(q), {
863
863
  type: "style",
864
864
  desc: "块引用",
865
865
  icon: "ri-double-quotes-l",
866
- onClick: i[3] || (i[3] = (g) => {
867
- var b;
868
- return (b = n.editor) == null ? void 0 : b.chain().focus().toggleBlockquote().run();
866
+ onClick: i[3] || (i[3] = (y) => {
867
+ var g;
868
+ return (g = n.editor) == null ? void 0 : g.chain().focus().toggleBlockquote().run();
869
869
  }),
870
870
  active: (f = n.editor) == null ? void 0 : f.isActive("blockquote"),
871
871
  disabled: !((h = n.editor) != null && h.can().toggleBlockquote()) || !n.editable
872
872
  }, null, 8, ["active", "disabled"]),
873
- S(M(J), {
873
+ v(M(q), {
874
874
  type: "style",
875
875
  desc: "有序列表(可通过新的一行输入1. 触发)",
876
876
  icon: "ri-list-ordered",
877
877
  disabled: !n.editable,
878
- onClick: i[4] || (i[4] = (g) => {
879
- var b;
880
- return (b = n.editor) == null ? void 0 : b.chain().focus().toggleOrderedList().run();
878
+ onClick: i[4] || (i[4] = (y) => {
879
+ var g;
880
+ return (g = n.editor) == null ? void 0 : g.chain().focus().toggleOrderedList().run();
881
881
  })
882
882
  }, null, 8, ["disabled"]),
883
- S(M(J), {
883
+ v(M(q), {
884
884
  type: "style",
885
885
  desc: "无序列表(可通过新的一行输入+/-触发)",
886
886
  icon: "ri-list-unordered",
887
887
  disabled: !n.editable,
888
- onClick: i[5] || (i[5] = (g) => {
889
- var b;
890
- return (b = n.editor) == null ? void 0 : b.chain().focus().toggleBulletList().run();
888
+ onClick: i[5] || (i[5] = (y) => {
889
+ var g;
890
+ return (g = n.editor) == null ? void 0 : g.chain().focus().toggleBulletList().run();
891
891
  })
892
892
  }, null, 8, ["disabled"]),
893
- S(M(J), {
893
+ v(M(q), {
894
894
  type: "style",
895
895
  desc: "待办事项(可通过新的一行输入[ ] 触发)",
896
896
  icon: "ri-list-check-3",
897
897
  disabled: !n.editable,
898
- onClick: i[6] || (i[6] = (g) => {
899
- var b;
900
- return (b = n.editor) == null ? void 0 : b.chain().focus().toggleTaskList().run();
898
+ onClick: i[6] || (i[6] = (y) => {
899
+ var g;
900
+ return (g = n.editor) == null ? void 0 : g.chain().focus().toggleTaskList().run();
901
901
  })
902
902
  }, null, 8, ["disabled"]),
903
- (p = n.editor) != null && p.can().splitListItem("listItem") ? (R(), Z(M(J), {
903
+ (p = n.editor) != null && p.can().splitListItem("listItem") ? (R(), Z(M(q), {
904
904
  key: 0,
905
905
  type: "style",
906
906
  desc: "下方插入列表",
907
907
  icon: "ri-play-list-add-line",
908
908
  disabled: !n.editable,
909
- onClick: i[7] || (i[7] = (g) => {
910
- var b;
911
- return (b = n.editor) == null ? void 0 : b.chain().focus().splitListItem("listItem").run();
909
+ onClick: i[7] || (i[7] = (y) => {
910
+ var g;
911
+ return (g = n.editor) == null ? void 0 : g.chain().focus().splitListItem("listItem").run();
912
912
  })
913
913
  }, null, 8, ["disabled"])) : Re("", !0),
914
- (m = n.editor) != null && m.can().sinkListItem("listItem") ? (R(), Z(M(J), {
914
+ (m = n.editor) != null && m.can().sinkListItem("listItem") ? (R(), Z(M(q), {
915
915
  key: 1,
916
916
  type: "style",
917
917
  desc: "向右缩进列表",
918
918
  icon: "ri-play-list-2-fill",
919
919
  disabled: !n.editable,
920
- onClick: i[8] || (i[8] = (g) => {
921
- var b;
922
- return (b = n.editor) == null ? void 0 : b.chain().focus().sinkListItem("listItem").run();
920
+ onClick: i[8] || (i[8] = (y) => {
921
+ var g;
922
+ return (g = n.editor) == null ? void 0 : g.chain().focus().sinkListItem("listItem").run();
923
923
  })
924
924
  }, null, 8, ["disabled"])) : Re("", !0),
925
- (y = n.editor) != null && y.can().liftListItem("listItem") ? (R(), Z(M(J), {
925
+ (b = n.editor) != null && b.can().liftListItem("listItem") ? (R(), Z(M(q), {
926
926
  key: 2,
927
927
  type: "style",
928
928
  desc: "回退",
929
929
  icon: "ri-loop-left-fill",
930
930
  disabled: !n.editable,
931
- onClick: i[9] || (i[9] = (g) => {
932
- var b;
933
- return (b = n.editor) == null ? void 0 : b.chain().focus().liftListItem("listItem").run();
931
+ onClick: i[9] || (i[9] = (y) => {
932
+ var g;
933
+ return (g = n.editor) == null ? void 0 : g.chain().focus().liftListItem("listItem").run();
934
934
  })
935
935
  }, null, 8, ["disabled"])) : Re("", !0)
936
936
  ]);
@@ -940,7 +940,7 @@ const Ds = /* @__PURE__ */ Se(Hs, [["__scopeId", "data-v-608d9daa"]]), zs = /* @
940
940
  const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { style: { outline: "none", cursor: "pointer", "white-space": "nowrap" } }, _s = { key: 0 }, Ws = {
941
941
  key: 1,
942
942
  class: "ri-font-size"
943
- }, Us = /* @__PURE__ */ G({
943
+ }, Us = /* @__PURE__ */ X({
944
944
  __name: "FontSizeEditor",
945
945
  props: {
946
946
  editor: {},
@@ -987,16 +987,16 @@ const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { st
987
987
  (l = e.editor) == null || l.chain().focus().setFontSize(i).run();
988
988
  }
989
989
  return (i, l) => {
990
- const s = H("el-dropdown-item"), a = H("el-dropdown-menu"), c = H("el-dropdown");
990
+ const s = D("el-dropdown-item"), a = D("el-dropdown-menu"), c = D("el-dropdown");
991
991
  return R(), Z(c, {
992
992
  "hide-timeout": 300,
993
993
  disabled: !n.editable,
994
994
  "max-height": "400px"
995
995
  }, {
996
996
  dropdown: T(() => [
997
- S(a, null, {
997
+ v(a, null, {
998
998
  default: T(() => [
999
- (R(), D(ie, null, Ce(t, (d) => S(s, {
999
+ (R(), z(ie, null, Ce(t, (d) => v(s, {
1000
1000
  key: d.value,
1001
1001
  onClick: (u) => o(d.value)
1002
1002
  }, {
@@ -1010,16 +1010,16 @@ const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { st
1010
1010
  })
1011
1011
  ]),
1012
1012
  default: T(() => [
1013
- v("div", Fs, [
1014
- r.value ? (R(), D("span", _s, se(r.value), 1)) : (R(), D("i", Ws)),
1015
- l[0] || (l[0] = v("i", { class: "ri-arrow-drop-down-line" }, null, -1))
1013
+ x("div", Fs, [
1014
+ r.value ? (R(), z("span", _s, se(r.value), 1)) : (R(), z("i", Ws)),
1015
+ l[0] || (l[0] = x("i", { class: "ri-arrow-drop-down-line" }, null, -1))
1016
1016
  ])
1017
1017
  ]),
1018
1018
  _: 1
1019
1019
  }, 8, ["disabled"]);
1020
1020
  };
1021
1021
  }
1022
- }), Ks = { style: { outline: "none", cursor: "pointer", "white-space": "nowrap" } }, js = /* @__PURE__ */ G({
1022
+ }), Ks = { style: { outline: "none", cursor: "pointer", "white-space": "nowrap" } }, js = /* @__PURE__ */ X({
1023
1023
  __name: "FontFamilyEditor",
1024
1024
  props: {
1025
1025
  editor: {},
@@ -1062,16 +1062,16 @@ const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { st
1062
1062
  (l = e.editor) == null || l.chain().focus().setFontFamily(i).run();
1063
1063
  }
1064
1064
  return (i, l) => {
1065
- const s = H("el-dropdown-item"), a = H("el-dropdown-menu"), c = H("el-dropdown");
1065
+ const s = D("el-dropdown-item"), a = D("el-dropdown-menu"), c = D("el-dropdown");
1066
1066
  return R(), Z(c, {
1067
1067
  "hide-timeout": 300,
1068
1068
  disabled: !n.editable,
1069
1069
  "max-height": "300px"
1070
1070
  }, {
1071
1071
  dropdown: T(() => [
1072
- S(a, null, {
1072
+ v(a, null, {
1073
1073
  default: T(() => [
1074
- (R(), D(ie, null, Ce(t, (d) => S(s, {
1074
+ (R(), z(ie, null, Ce(t, (d) => v(s, {
1075
1075
  key: d.value,
1076
1076
  onClick: (u) => o(d.value),
1077
1077
  style: rt({ "font-family": d.value })
@@ -1086,9 +1086,9 @@ const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { st
1086
1086
  })
1087
1087
  ]),
1088
1088
  default: T(() => [
1089
- v("div", Ks, [
1090
- v("span", null, se(r.value), 1),
1091
- l[0] || (l[0] = v("i", { class: "ri-arrow-drop-down-line" }, null, -1))
1089
+ x("div", Ks, [
1090
+ x("span", null, se(r.value), 1),
1091
+ l[0] || (l[0] = x("i", { class: "ri-arrow-drop-down-line" }, null, -1))
1092
1092
  ])
1093
1093
  ]),
1094
1094
  _: 1
@@ -1108,7 +1108,7 @@ const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { st
1108
1108
  }, Xs = { class: "search-index" }, Qs = {
1109
1109
  key: 1,
1110
1110
  class: "result-hint"
1111
- }, Ys = { class: "action-list" }, Zs = /* @__PURE__ */ G({
1111
+ }, Ys = { class: "action-list" }, Zs = /* @__PURE__ */ X({
1112
1112
  __name: "SearchPopover",
1113
1113
  props: {
1114
1114
  editor: {},
@@ -1116,7 +1116,7 @@ const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { st
1116
1116
  justIcon: { type: Boolean, default: !0 }
1117
1117
  },
1118
1118
  setup(n) {
1119
- const e = n, t = B(0), r = B(-1), o = B(""), i = B("");
1119
+ const e = n, t = $(0), r = $(-1), o = $(""), i = $("");
1120
1120
  Xe(
1121
1121
  () => o.value,
1122
1122
  (f) => {
@@ -1161,22 +1161,22 @@ const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { st
1161
1161
  t.value = f || 0, r.value = 0;
1162
1162
  }
1163
1163
  return (f, h) => {
1164
- const p = H("el-input"), m = H("el-button"), y = H("el-popover"), g = H("el-tooltip");
1165
- return R(), Z(g, {
1164
+ const p = D("el-input"), m = D("el-button"), b = D("el-popover"), y = D("el-tooltip");
1165
+ return R(), Z(y, {
1166
1166
  effect: "dark",
1167
1167
  content: n.editable ? "查找替换" : "查找",
1168
1168
  placement: "top-start",
1169
1169
  disabled: !n.justIcon
1170
1170
  }, {
1171
1171
  default: T(() => [
1172
- v("span", null, [
1173
- S(y, {
1172
+ x("span", null, [
1173
+ v(b, {
1174
1174
  trigger: "click",
1175
1175
  width: 280
1176
1176
  }, {
1177
1177
  reference: T(() => [
1178
- n.justIcon ? (R(), D("i", Js)) : (R(), D("div", Vs, [...h[3] || (h[3] = [
1179
- v("i", {
1178
+ n.justIcon ? (R(), z("i", Js)) : (R(), z("div", Vs, [...h[3] || (h[3] = [
1179
+ x("i", {
1180
1180
  class: "ri-search-line",
1181
1181
  style: { "font-size": "24px", color: "gray" }
1182
1182
  }, null, -1),
@@ -1184,29 +1184,29 @@ const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { st
1184
1184
  ])]))
1185
1185
  ]),
1186
1186
  default: T(() => [
1187
- v("div", qs, [
1188
- S(p, {
1187
+ x("div", qs, [
1188
+ v(p, {
1189
1189
  modelValue: o.value,
1190
- "onUpdate:modelValue": h[0] || (h[0] = (b) => o.value = b),
1190
+ "onUpdate:modelValue": h[0] || (h[0] = (g) => o.value = g),
1191
1191
  placeholder: "请输入搜索值",
1192
1192
  onKeydown: go(l, ["enter"])
1193
1193
  }, {
1194
1194
  suffix: T(() => {
1195
- var b, w, z, L, O, N;
1195
+ var g, k, N, I, O, L;
1196
1196
  return [
1197
- t.value > 0 ? (R(), D("div", Gs, [
1198
- v("i", {
1199
- class: st(["ri-arrow-left-s-line", (z = (w = (b = e.editor) == null ? void 0 : b.storage) == null ? void 0 : w.searchAndReplace) != null && z.canPrev ? "" : "disabled-action"]),
1197
+ t.value > 0 ? (R(), z("div", Gs, [
1198
+ x("i", {
1199
+ class: st(["ri-arrow-left-s-line", (N = (k = (g = e.editor) == null ? void 0 : g.storage) == null ? void 0 : k.searchAndReplace) != null && N.canPrev ? "" : "disabled-action"]),
1200
1200
  onClick: a
1201
1201
  }, null, 2),
1202
- v("span", Xs, se(r.value + 1), 1),
1203
- h[4] || (h[4] = v("span", null, "/", -1)),
1204
- v("span", null, se(t.value), 1),
1205
- v("i", {
1206
- class: st(["ri-arrow-right-s-line", (N = (O = (L = e.editor) == null ? void 0 : L.storage) == null ? void 0 : O.searchAndReplace) != null && N.canNext ? "" : "disabled-action"]),
1202
+ x("span", Xs, se(r.value + 1), 1),
1203
+ h[4] || (h[4] = x("span", null, "/", -1)),
1204
+ x("span", null, se(t.value), 1),
1205
+ x("i", {
1206
+ class: st(["ri-arrow-right-s-line", (L = (O = (I = e.editor) == null ? void 0 : I.storage) == null ? void 0 : O.searchAndReplace) != null && L.canNext ? "" : "disabled-action"]),
1207
1207
  onClick: c
1208
1208
  }, null, 2)
1209
- ])) : r.value >= 0 ? (R(), D("div", Qs, "无结果")) : Re("", !0)
1209
+ ])) : r.value >= 0 ? (R(), z("div", Qs, "无结果")) : Re("", !0)
1210
1210
  ];
1211
1211
  }),
1212
1212
  _: 1
@@ -1214,12 +1214,12 @@ const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { st
1214
1214
  n.editable ? (R(), Z(p, {
1215
1215
  key: 0,
1216
1216
  modelValue: i.value,
1217
- "onUpdate:modelValue": h[1] || (h[1] = (b) => i.value = b),
1217
+ "onUpdate:modelValue": h[1] || (h[1] = (g) => i.value = g),
1218
1218
  placeholder: "请输入替换值",
1219
1219
  onKeydown: go(l, ["enter"])
1220
1220
  }, null, 8, ["modelValue"])) : Re("", !0),
1221
- v("div", Ys, [
1222
- S(m, {
1221
+ x("div", Ys, [
1222
+ v(m, {
1223
1223
  onClick: h[2] || (h[2] = () => s(!0)),
1224
1224
  type: "primary",
1225
1225
  plain: ""
@@ -1261,7 +1261,7 @@ const Bs = /* @__PURE__ */ Se($s, [["__scopeId", "data-v-c65593c1"]]), Fs = { st
1261
1261
  };
1262
1262
  }
1263
1263
  });
1264
- const ea = /* @__PURE__ */ Se(Zs, [["__scopeId", "data-v-a2c0c0e3"]]), ta = { class: "symbol-list" }, na = ["onClick"], ra = /* @__PURE__ */ G({
1264
+ const ea = /* @__PURE__ */ Se(Zs, [["__scopeId", "data-v-a2c0c0e3"]]), ta = { class: "symbol-list" }, na = ["onClick"], ra = /* @__PURE__ */ X({
1265
1265
  __name: "SymbolEditor",
1266
1266
  props: {
1267
1267
  insertContent: { type: Function, required: !0 }
@@ -1292,32 +1292,32 @@ const ea = /* @__PURE__ */ Se(Zs, [["__scopeId", "data-v-a2c0c0e3"]]), ta = { cl
1292
1292
  "!",
1293
1293
  "%",
1294
1294
  "^"
1295
- ], t = n, r = B(!0);
1295
+ ], t = n, r = $(!0);
1296
1296
  function o(i) {
1297
1297
  t.insertContent(i), r.value = !0;
1298
1298
  }
1299
1299
  return (i, l) => {
1300
- const s = H("el-popover");
1300
+ const s = D("el-popover");
1301
1301
  return R(), Z(s, {
1302
1302
  width: "200px",
1303
1303
  placement: "bottom-start",
1304
1304
  visible: r.value ? !1 : void 0
1305
1305
  }, {
1306
1306
  reference: T(() => [
1307
- v("div", {
1307
+ x("div", {
1308
1308
  onMouseover: l[0] || (l[0] = (a) => r.value = !1)
1309
1309
  }, [...l[1] || (l[1] = [
1310
- v("i", { class: "ri-omega" }, null, -1),
1311
- v("span", { style: { "margin-left": "8px" } }, "特殊符号", -1)
1310
+ x("i", { class: "ri-omega" }, null, -1),
1311
+ x("span", { style: { "margin-left": "8px" } }, "特殊符号", -1)
1312
1312
  ])], 32)
1313
1313
  ]),
1314
1314
  default: T(() => [
1315
- v("div", ta, [
1316
- (R(), D(ie, null, Ce(e, (a) => v("div", {
1315
+ x("div", ta, [
1316
+ (R(), z(ie, null, Ce(e, (a) => x("div", {
1317
1317
  class: "symbol-item",
1318
1318
  key: a
1319
1319
  }, [
1320
- v("code", {
1320
+ x("code", {
1321
1321
  onClick: () => o(a)
1322
1322
  }, se(a), 9, na)
1323
1323
  ])), 64))
@@ -1328,7 +1328,7 @@ const ea = /* @__PURE__ */ Se(Zs, [["__scopeId", "data-v-a2c0c0e3"]]), ta = { cl
1328
1328
  };
1329
1329
  }
1330
1330
  });
1331
- const oa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-5c3c319c"]]), ia = /* @__PURE__ */ G({
1331
+ const oa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-5c3c319c"]]), ia = /* @__PURE__ */ X({
1332
1332
  __name: "HyperlinkEditor",
1333
1333
  props: {
1334
1334
  editor: {},
@@ -1336,7 +1336,7 @@ const oa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-5c3c319c"]]), ia = /* @
1336
1336
  },
1337
1337
  emits: ["update:visible"],
1338
1338
  setup(n, { emit: e }) {
1339
- const t = n, r = e, o = B(!1), i = Al({
1339
+ const t = n, r = e, o = $(!1), i = Al({
1340
1340
  text: "",
1341
1341
  href: ""
1342
1342
  });
@@ -1373,7 +1373,7 @@ const oa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-5c3c319c"]]), ia = /* @
1373
1373
  }).run() : t.editor.chain().focus().setLink({ href: i.href, target: "_blank" }).run()), o.value = !1, l());
1374
1374
  }
1375
1375
  return (a, c) => {
1376
- const d = H("el-input"), u = H("el-form-item"), f = H("el-form"), h = H("el-button"), p = H("el-dialog");
1376
+ const d = D("el-input"), u = D("el-form-item"), f = D("el-form"), h = D("el-button"), p = D("el-dialog");
1377
1377
  return R(), Z(p, {
1378
1378
  modelValue: o.value,
1379
1379
  "onUpdate:modelValue": c[3] || (c[3] = (m) => o.value = m),
@@ -1382,7 +1382,7 @@ const oa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-5c3c319c"]]), ia = /* @
1382
1382
  onClose: l
1383
1383
  }, {
1384
1384
  footer: T(() => [
1385
- S(h, {
1385
+ v(h, {
1386
1386
  onClick: c[2] || (c[2] = (m) => o.value = !1)
1387
1387
  }, {
1388
1388
  default: T(() => [...c[4] || (c[4] = [
@@ -1390,7 +1390,7 @@ const oa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-5c3c319c"]]), ia = /* @
1390
1390
  ])]),
1391
1391
  _: 1
1392
1392
  }),
1393
- S(h, {
1393
+ v(h, {
1394
1394
  type: "primary",
1395
1395
  onClick: s
1396
1396
  }, {
@@ -1401,14 +1401,14 @@ const oa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-5c3c319c"]]), ia = /* @
1401
1401
  })
1402
1402
  ]),
1403
1403
  default: T(() => [
1404
- S(f, {
1404
+ v(f, {
1405
1405
  model: i,
1406
1406
  "label-width": "80px"
1407
1407
  }, {
1408
1408
  default: T(() => [
1409
- S(u, { label: "链接文字" }, {
1409
+ v(u, { label: "链接文字" }, {
1410
1410
  default: T(() => [
1411
- S(d, {
1411
+ v(d, {
1412
1412
  modelValue: i.text,
1413
1413
  "onUpdate:modelValue": c[0] || (c[0] = (m) => i.text = m),
1414
1414
  placeholder: "请输入链接文字"
@@ -1416,9 +1416,9 @@ const oa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-5c3c319c"]]), ia = /* @
1416
1416
  ]),
1417
1417
  _: 1
1418
1418
  }),
1419
- S(u, { label: "链接地址" }, {
1419
+ v(u, { label: "链接地址" }, {
1420
1420
  default: T(() => [
1421
- S(d, {
1421
+ v(d, {
1422
1422
  modelValue: i.href,
1423
1423
  "onUpdate:modelValue": c[1] || (c[1] = (m) => i.href = m),
1424
1424
  placeholder: "请输入链接地址"
@@ -1527,7 +1527,7 @@ const oa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-5c3c319c"]]), ia = /* @
1527
1527
  "Mod-U": () => this.editor.commands.toggleUnderline()
1528
1528
  };
1529
1529
  }
1530
- }), da = wt.create({
1530
+ }), da = xt.create({
1531
1531
  name: "textAlign",
1532
1532
  addOptions() {
1533
1533
  return {
@@ -1627,12 +1627,12 @@ const oa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-5c3c319c"]]), ia = /* @
1627
1627
  })
1628
1628
  ];
1629
1629
  }
1630
- }), ha = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", pa = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", kr = "numeric", Sr = "ascii", vr = "alpha", Nt = "asciinumeric", Et = "alphanumeric", wr = "domain", gi = "emoji", ma = "scheme", ga = "slashscheme", Zn = "whitespace";
1630
+ }), ha = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", pa = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", kr = "numeric", Sr = "ascii", vr = "alpha", Nt = "asciinumeric", Et = "alphanumeric", xr = "domain", gi = "emoji", ma = "scheme", ga = "slashscheme", Zn = "whitespace";
1631
1631
  function ya(n, e) {
1632
1632
  return n in e || (e[n] = []), e[n];
1633
1633
  }
1634
1634
  function ot(n, e, t) {
1635
- e[kr] && (e[Nt] = !0, e[Et] = !0), e[Sr] && (e[Nt] = !0, e[vr] = !0), e[Nt] && (e[Et] = !0), e[vr] && (e[Et] = !0), e[Et] && (e[wr] = !0), e[gi] && (e[wr] = !0);
1635
+ e[kr] && (e[Nt] = !0, e[Et] = !0), e[Sr] && (e[Nt] = !0, e[vr] = !0), e[Nt] && (e[Et] = !0), e[vr] && (e[Et] = !0), e[Et] && (e[xr] = !0), e[gi] && (e[xr] = !0);
1636
1636
  for (const r in e) {
1637
1637
  const o = ya(r, t);
1638
1638
  o.indexOf(n) < 0 && o.push(n);
@@ -1769,11 +1769,11 @@ de.prototype = {
1769
1769
  return o.j[n] = l, l;
1770
1770
  }
1771
1771
  };
1772
- const I = (n, e, t, r, o) => n.ta(e, t, r, o), j = (n, e, t, r, o) => n.tr(e, t, r, o), So = (n, e, t, r, o) => n.ts(e, t, r, o), C = (n, e, t, r, o) => n.tt(e, t, r, o), $e = "WORD", xr = "UWORD", yi = "ASCIINUMERICAL", bi = "ALPHANUMERICAL", $t = "LOCALHOST", Tr = "TLD", Ar = "UTLD", rn = "SCHEME", mt = "SLASH_SCHEME", Vr = "NUM", Er = "WS", Jr = "NL", Ot = "OPENBRACE", Lt = "CLOSEBRACE", dn = "OPENBRACKET", un = "CLOSEBRACKET", fn = "OPENPAREN", hn = "CLOSEPAREN", pn = "OPENANGLEBRACKET", mn = "CLOSEANGLEBRACKET", gn = "FULLWIDTHLEFTPAREN", yn = "FULLWIDTHRIGHTPAREN", bn = "LEFTCORNERBRACKET", Cn = "RIGHTCORNERBRACKET", kn = "LEFTWHITECORNERBRACKET", Sn = "RIGHTWHITECORNERBRACKET", vn = "FULLWIDTHLESSTHAN", wn = "FULLWIDTHGREATERTHAN", xn = "AMPERSAND", Tn = "APOSTROPHE", An = "ASTERISK", Ue = "AT", En = "BACKSLASH", Rn = "BACKTICK", Mn = "CARET", je = "COLON", qr = "COMMA", Nn = "DOLLAR", Ae = "DOT", On = "EQUALS", Gr = "EXCLAMATION", ge = "HYPHEN", It = "PERCENT", Ln = "PIPE", In = "PLUS", Hn = "POUND", Ht = "QUERY", Xr = "QUOTE", Ci = "FULLWIDTHMIDDLEDOT", Qr = "SEMI", Ee = "SLASH", Dt = "TILDE", Dn = "UNDERSCORE", ki = "EMOJI", zn = "SYM";
1772
+ const H = (n, e, t, r, o) => n.ta(e, t, r, o), V = (n, e, t, r, o) => n.tr(e, t, r, o), So = (n, e, t, r, o) => n.ts(e, t, r, o), C = (n, e, t, r, o) => n.tt(e, t, r, o), $e = "WORD", wr = "UWORD", yi = "ASCIINUMERICAL", bi = "ALPHANUMERICAL", $t = "LOCALHOST", Tr = "TLD", Ar = "UTLD", rn = "SCHEME", mt = "SLASH_SCHEME", Vr = "NUM", Er = "WS", Jr = "NL", Ot = "OPENBRACE", Lt = "CLOSEBRACE", dn = "OPENBRACKET", un = "CLOSEBRACKET", fn = "OPENPAREN", hn = "CLOSEPAREN", pn = "OPENANGLEBRACKET", mn = "CLOSEANGLEBRACKET", gn = "FULLWIDTHLEFTPAREN", yn = "FULLWIDTHRIGHTPAREN", bn = "LEFTCORNERBRACKET", Cn = "RIGHTCORNERBRACKET", kn = "LEFTWHITECORNERBRACKET", Sn = "RIGHTWHITECORNERBRACKET", vn = "FULLWIDTHLESSTHAN", xn = "FULLWIDTHGREATERTHAN", wn = "AMPERSAND", Tn = "APOSTROPHE", An = "ASTERISK", Ue = "AT", En = "BACKSLASH", Rn = "BACKTICK", Mn = "CARET", je = "COLON", qr = "COMMA", Nn = "DOLLAR", Ae = "DOT", On = "EQUALS", Gr = "EXCLAMATION", ge = "HYPHEN", It = "PERCENT", Ln = "PIPE", In = "PLUS", Hn = "POUND", Ht = "QUERY", Xr = "QUOTE", Ci = "FULLWIDTHMIDDLEDOT", Qr = "SEMI", Ee = "SLASH", Dt = "TILDE", Dn = "UNDERSCORE", ki = "EMOJI", zn = "SYM";
1773
1773
  var Si = /* @__PURE__ */ Object.freeze({
1774
1774
  __proto__: null,
1775
1775
  ALPHANUMERICAL: bi,
1776
- AMPERSAND: xn,
1776
+ AMPERSAND: wn,
1777
1777
  APOSTROPHE: Tn,
1778
1778
  ASCIINUMERICAL: yi,
1779
1779
  ASTERISK: An,
@@ -1792,7 +1792,7 @@ var Si = /* @__PURE__ */ Object.freeze({
1792
1792
  EMOJI: ki,
1793
1793
  EQUALS: On,
1794
1794
  EXCLAMATION: Gr,
1795
- FULLWIDTHGREATERTHAN: wn,
1795
+ FULLWIDTHGREATERTHAN: xn,
1796
1796
  FULLWIDTHLEFTPAREN: gn,
1797
1797
  FULLWIDTHLESSTHAN: vn,
1798
1798
  FULLWIDTHMIDDLEDOT: Ci,
@@ -1824,7 +1824,7 @@ var Si = /* @__PURE__ */ Object.freeze({
1824
1824
  TLD: Tr,
1825
1825
  UNDERSCORE: Dn,
1826
1826
  UTLD: Ar,
1827
- UWORD: xr,
1827
+ UWORD: wr,
1828
1828
  WORD: $e,
1829
1829
  WS: Er
1830
1830
  });
@@ -1835,42 +1835,42 @@ function Sa(n = []) {
1835
1835
  const e = {};
1836
1836
  de.groups = e;
1837
1837
  const t = new de();
1838
- Jt == null && (Jt = wo(ha)), qt == null && (qt = wo(pa)), C(t, "'", Tn), C(t, "{", Ot), C(t, "}", Lt), C(t, "[", dn), C(t, "]", un), C(t, "(", fn), C(t, ")", hn), C(t, "<", pn), C(t, ">", mn), C(t, "(", gn), C(t, ")", yn), C(t, "「", bn), C(t, "」", Cn), C(t, "『", kn), C(t, "』", Sn), C(t, "<", vn), C(t, ">", wn), C(t, "&", xn), C(t, "*", An), C(t, "@", Ue), C(t, "`", Rn), C(t, "^", Mn), C(t, ":", je), C(t, ",", qr), C(t, "$", Nn), C(t, ".", Ae), C(t, "=", On), C(t, "!", Gr), C(t, "-", ge), C(t, "%", It), C(t, "|", Ln), C(t, "+", In), C(t, "#", Hn), C(t, "?", Ht), C(t, '"', Xr), C(t, "/", Ee), C(t, ";", Qr), C(t, "~", Dt), C(t, "_", Dn), C(t, "\\", En), C(t, "・", Ci);
1839
- const r = j(t, Pe, Vr, {
1838
+ Jt == null && (Jt = xo(ha)), qt == null && (qt = xo(pa)), C(t, "'", Tn), C(t, "{", Ot), C(t, "}", Lt), C(t, "[", dn), C(t, "]", un), C(t, "(", fn), C(t, ")", hn), C(t, "<", pn), C(t, ">", mn), C(t, "(", gn), C(t, ")", yn), C(t, "「", bn), C(t, "」", Cn), C(t, "『", kn), C(t, "』", Sn), C(t, "<", vn), C(t, ">", xn), C(t, "&", wn), C(t, "*", An), C(t, "@", Ue), C(t, "`", Rn), C(t, "^", Mn), C(t, ":", je), C(t, ",", qr), C(t, "$", Nn), C(t, ".", Ae), C(t, "=", On), C(t, "!", Gr), C(t, "-", ge), C(t, "%", It), C(t, "|", Ln), C(t, "+", In), C(t, "#", Hn), C(t, "?", Ht), C(t, '"', Xr), C(t, "/", Ee), C(t, ";", Qr), C(t, "~", Dt), C(t, "_", Dn), C(t, "\\", En), C(t, "・", Ci);
1839
+ const r = V(t, Pe, Vr, {
1840
1840
  [kr]: !0
1841
1841
  });
1842
- j(r, Pe, r);
1843
- const o = j(r, ze, yi, {
1842
+ V(r, Pe, r);
1843
+ const o = V(r, ze, yi, {
1844
1844
  [Nt]: !0
1845
- }), i = j(r, At, bi, {
1845
+ }), i = V(r, At, bi, {
1846
1846
  [Et]: !0
1847
- }), l = j(t, ze, $e, {
1847
+ }), l = V(t, ze, $e, {
1848
1848
  [Sr]: !0
1849
1849
  });
1850
- j(l, Pe, o), j(l, ze, l), j(o, Pe, o), j(o, ze, o);
1851
- const s = j(t, At, xr, {
1850
+ V(l, Pe, o), V(l, ze, l), V(o, Pe, o), V(o, ze, o);
1851
+ const s = V(t, At, wr, {
1852
1852
  [vr]: !0
1853
1853
  });
1854
- j(s, ze), j(s, Pe, i), j(s, At, s), j(i, Pe, i), j(i, ze), j(i, At, i);
1854
+ V(s, ze), V(s, Pe, i), V(s, At, s), V(i, Pe, i), V(i, ze), V(i, At, i);
1855
1855
  const a = C(t, nr, Jr, {
1856
1856
  [Zn]: !0
1857
1857
  }), c = C(t, vo, Er, {
1858
1858
  [Zn]: !0
1859
- }), d = j(t, tr, Er, {
1859
+ }), d = V(t, tr, Er, {
1860
1860
  [Zn]: !0
1861
1861
  });
1862
- C(t, rr, d), C(c, nr, a), C(c, rr, d), j(c, tr, d), C(d, vo), C(d, nr), j(d, tr, d), C(d, rr, d);
1863
- const u = j(t, er, ki, {
1862
+ C(t, rr, d), C(c, nr, a), C(c, rr, d), V(c, tr, d), C(d, vo), C(d, nr), V(d, tr, d), C(d, rr, d);
1863
+ const u = V(t, er, ki, {
1864
1864
  [gi]: !0
1865
1865
  });
1866
- C(u, "#"), j(u, er, u), C(u, Ca, u);
1866
+ C(u, "#"), V(u, er, u), C(u, Ca, u);
1867
1867
  const f = C(u, ka);
1868
- C(f, "#"), j(f, er, u);
1868
+ C(f, "#"), V(f, er, u);
1869
1869
  const h = [[ze, l], [Pe, o]], p = [[ze, null], [At, s], [Pe, i]];
1870
1870
  for (let m = 0; m < Jt.length; m++)
1871
1871
  We(t, Jt[m], Tr, $e, h);
1872
1872
  for (let m = 0; m < qt.length; m++)
1873
- We(t, qt[m], Ar, xr, p);
1873
+ We(t, qt[m], Ar, wr, p);
1874
1874
  ot(Tr, {
1875
1875
  tld: !0,
1876
1876
  ascii: !0
@@ -1883,14 +1883,14 @@ function Sa(n = []) {
1883
1883
  }, e), ot(mt, {
1884
1884
  slashscheme: !0,
1885
1885
  ascii: !0
1886
- }, e), n = n.sort((m, y) => m[0] > y[0] ? 1 : -1);
1886
+ }, e), n = n.sort((m, b) => m[0] > b[0] ? 1 : -1);
1887
1887
  for (let m = 0; m < n.length; m++) {
1888
- const y = n[m][0], b = n[m][1] ? {
1888
+ const b = n[m][0], g = n[m][1] ? {
1889
1889
  [ma]: !0
1890
1890
  } : {
1891
1891
  [ga]: !0
1892
1892
  };
1893
- y.indexOf("-") >= 0 ? b[wr] = !0 : ze.test(y) ? Pe.test(y) ? b[Nt] = !0 : b[Sr] = !0 : b[kr] = !0, So(t, y, y, b);
1893
+ b.indexOf("-") >= 0 ? g[xr] = !0 : ze.test(b) ? Pe.test(b) ? g[Nt] = !0 : g[Sr] = !0 : g[kr] = !0, So(t, b, b, g);
1894
1894
  }
1895
1895
  return So(t, "localhost", $t, {
1896
1896
  ascii: !0
@@ -1939,7 +1939,7 @@ function We(n, e, t, r, o) {
1939
1939
  }
1940
1940
  return i = new de(t), i.jr = o.slice(), n.j[e[l - 1]] = i, i;
1941
1941
  }
1942
- function wo(n) {
1942
+ function xo(n) {
1943
1943
  const e = [], t = [];
1944
1944
  let r = 0, o = "0123456789";
1945
1945
  for (; r < n.length; ) {
@@ -1959,8 +1959,8 @@ function wo(n) {
1959
1959
  const Bt = {
1960
1960
  defaultProtocol: "http",
1961
1961
  events: null,
1962
- format: xo,
1963
- formatHref: xo,
1962
+ format: wo,
1963
+ formatHref: wo,
1964
1964
  nl2br: !1,
1965
1965
  tagName: "a",
1966
1966
  target: null,
@@ -2042,13 +2042,13 @@ Yr.prototype = {
2042
2042
  return (this.get("render", null, n) || this.defaultRender)(e, n.t, n);
2043
2043
  }
2044
2044
  };
2045
- function xo(n) {
2045
+ function wo(n) {
2046
2046
  return n;
2047
2047
  }
2048
- function wi(n, e) {
2048
+ function xi(n, e) {
2049
2049
  this.t = "token", this.v = n, this.tk = e;
2050
2050
  }
2051
- wi.prototype = {
2051
+ xi.prototype = {
2052
2052
  isLink: !1,
2053
2053
  /**
2054
2054
  * Return the string this token represents.
@@ -2153,7 +2153,7 @@ wi.prototype = {
2153
2153
  }
2154
2154
  };
2155
2155
  function Vn(n, e) {
2156
- class t extends wi {
2156
+ class t extends xi {
2157
2157
  constructor(o, i) {
2158
2158
  super(o, i), this.t = n;
2159
2159
  }
@@ -2167,7 +2167,7 @@ const To = Vn("email", {
2167
2167
  toHref() {
2168
2168
  return "mailto:" + this.toString();
2169
2169
  }
2170
- }), Ao = Vn("text"), wa = Vn("nl"), Gt = Vn("url", {
2170
+ }), Ao = Vn("text"), xa = Vn("nl"), Gt = Vn("url", {
2171
2171
  isLink: !0,
2172
2172
  /**
2173
2173
  Lowercases relevant parts of the domain and adds the protocol if
@@ -2188,37 +2188,37 @@ const To = Vn("email", {
2188
2188
  return n.length >= 2 && n[0].t !== $t && n[1].t === je;
2189
2189
  }
2190
2190
  }), me = (n) => new de(n);
2191
- function xa({
2191
+ function wa({
2192
2192
  groups: n
2193
2193
  }) {
2194
- const e = n.domain.concat([xn, An, Ue, En, Rn, Mn, Nn, On, ge, Vr, It, Ln, In, Hn, Ee, zn, Dt, Dn]), t = [Tn, je, qr, Ae, Gr, It, Ht, Xr, Qr, pn, mn, Ot, Lt, un, dn, fn, hn, gn, yn, bn, Cn, kn, Sn, vn, wn], r = [xn, Tn, An, En, Rn, Mn, Nn, On, ge, Ot, Lt, It, Ln, In, Hn, Ht, Ee, zn, Dt, Dn], o = me(), i = C(o, Dt);
2195
- I(i, r, i), I(i, n.domain, i);
2194
+ const e = n.domain.concat([wn, An, Ue, En, Rn, Mn, Nn, On, ge, Vr, It, Ln, In, Hn, Ee, zn, Dt, Dn]), t = [Tn, je, qr, Ae, Gr, It, Ht, Xr, Qr, pn, mn, Ot, Lt, un, dn, fn, hn, gn, yn, bn, Cn, kn, Sn, vn, xn], r = [wn, Tn, An, En, Rn, Mn, Nn, On, ge, Ot, Lt, It, Ln, In, Hn, Ht, Ee, zn, Dt, Dn], o = me(), i = C(o, Dt);
2195
+ H(i, r, i), H(i, n.domain, i);
2196
2196
  const l = me(), s = me(), a = me();
2197
- I(o, n.domain, l), I(o, n.scheme, s), I(o, n.slashscheme, a), I(l, r, i), I(l, n.domain, l);
2197
+ H(o, n.domain, l), H(o, n.scheme, s), H(o, n.slashscheme, a), H(l, r, i), H(l, n.domain, l);
2198
2198
  const c = C(l, Ue);
2199
2199
  C(i, Ue, c), C(s, Ue, c), C(a, Ue, c);
2200
2200
  const d = C(i, Ae);
2201
- I(d, r, i), I(d, n.domain, i);
2201
+ H(d, r, i), H(d, n.domain, i);
2202
2202
  const u = me();
2203
- I(c, n.domain, u), I(u, n.domain, u);
2203
+ H(c, n.domain, u), H(u, n.domain, u);
2204
2204
  const f = C(u, Ae);
2205
- I(f, n.domain, u);
2205
+ H(f, n.domain, u);
2206
2206
  const h = me(To);
2207
- I(f, n.tld, h), I(f, n.utld, h), C(c, $t, h);
2207
+ H(f, n.tld, h), H(f, n.utld, h), C(c, $t, h);
2208
2208
  const p = C(u, ge);
2209
- C(p, ge, p), I(p, n.domain, u), I(h, n.domain, u), C(h, Ae, f), C(h, ge, p);
2209
+ C(p, ge, p), H(p, n.domain, u), H(h, n.domain, u), C(h, Ae, f), C(h, ge, p);
2210
2210
  const m = C(h, je);
2211
- I(m, n.numeric, To);
2212
- const y = C(l, ge), g = C(l, Ae);
2213
- C(y, ge, y), I(y, n.domain, l), I(g, r, i), I(g, n.domain, l);
2214
- const b = me(Gt);
2215
- I(g, n.tld, b), I(g, n.utld, b), I(b, n.domain, l), I(b, r, i), C(b, Ae, g), C(b, ge, y), C(b, Ue, c);
2216
- const w = C(b, je), z = me(Gt);
2217
- I(w, n.numeric, z);
2218
- const L = me(Gt), O = me();
2219
- I(L, e, L), I(L, t, O), I(O, e, L), I(O, t, O), C(b, Ee, L), C(z, Ee, L);
2220
- const N = C(s, je), k = C(a, je), A = C(k, Ee), X = C(A, Ee);
2221
- I(s, n.domain, l), C(s, Ae, g), C(s, ge, y), I(a, n.domain, l), C(a, Ae, g), C(a, ge, y), I(N, n.domain, L), C(N, Ee, L), C(N, Ht, L), I(X, n.domain, L), I(X, e, L), C(X, Ee, L);
2211
+ H(m, n.numeric, To);
2212
+ const b = C(l, ge), y = C(l, Ae);
2213
+ C(b, ge, b), H(b, n.domain, l), H(y, r, i), H(y, n.domain, l);
2214
+ const g = me(Gt);
2215
+ H(y, n.tld, g), H(y, n.utld, g), H(g, n.domain, l), H(g, r, i), C(g, Ae, y), C(g, ge, b), C(g, Ue, c);
2216
+ const k = C(g, je), N = me(Gt);
2217
+ H(k, n.numeric, N);
2218
+ const I = me(Gt), O = me();
2219
+ H(I, e, I), H(I, t, O), H(O, e, I), H(O, t, O), C(g, Ee, I), C(N, Ee, I);
2220
+ const L = C(s, je), S = C(a, je), A = C(S, Ee), j = C(A, Ee);
2221
+ H(s, n.domain, l), C(s, Ae, y), C(s, ge, b), H(a, n.domain, l), C(a, Ae, y), C(a, ge, b), H(L, n.domain, I), C(L, Ee, I), C(L, Ht, I), H(j, n.domain, I), H(j, e, I), C(j, Ee, I);
2222
2222
  const re = [
2223
2223
  [Ot, Lt],
2224
2224
  // {}
@@ -2234,18 +2234,18 @@ function xa({
2234
2234
  // 「」
2235
2235
  [kn, Sn],
2236
2236
  // 『』
2237
- [vn, wn]
2237
+ [vn, xn]
2238
2238
  // <>
2239
2239
  ];
2240
2240
  for (let Ie = 0; Ie < re.length; Ie++) {
2241
- const [_e, He] = re[Ie], De = C(L, _e);
2242
- C(O, _e, De), C(De, He, L);
2241
+ const [_e, He] = re[Ie], De = C(I, _e);
2242
+ C(O, _e, De), C(De, He, I);
2243
2243
  const ae = me(Gt);
2244
- I(De, e, ae);
2245
- const xe = me();
2246
- I(De, t), I(ae, e, ae), I(ae, t, xe), I(xe, e, ae), I(xe, t, xe), C(ae, He, L), C(xe, He, L);
2244
+ H(De, e, ae);
2245
+ const we = me();
2246
+ H(De, t), H(ae, e, ae), H(ae, t, we), H(we, e, ae), H(we, t, we), C(ae, He, I), C(we, He, I);
2247
2247
  }
2248
- return C(o, $t, b), C(o, Jr, wa), {
2248
+ return C(o, $t, g), C(o, Jr, xa), {
2249
2249
  start: o,
2250
2250
  tokens: Si
2251
2251
  };
@@ -2298,7 +2298,7 @@ function Ma() {
2298
2298
  U.tokenQueue[n][1]({
2299
2299
  scanner: U.scanner
2300
2300
  });
2301
- U.parser = xa(U.scanner.tokens);
2301
+ U.parser = wa(U.scanner.tokens);
2302
2302
  for (let n = 0; n < U.pluginQueue.length; n++)
2303
2303
  U.pluginQueue[n][1]({
2304
2304
  scanner: U.scanner,
@@ -2310,7 +2310,7 @@ function Zr(n) {
2310
2310
  return U.initialized || Ma(), Ta(U.parser.start, n, vi(U.scanner.start, n));
2311
2311
  }
2312
2312
  Zr.scan = vi;
2313
- function xi(n, e = null, t = null) {
2313
+ function wi(n, e = null, t = null) {
2314
2314
  if (e && typeof e == "object") {
2315
2315
  if (t)
2316
2316
  throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);
@@ -2372,7 +2372,7 @@ function Ai(n, e, t, r) {
2372
2372
  t -= a, r -= a;
2373
2373
  }
2374
2374
  }
2375
- class x {
2375
+ class w {
2376
2376
  /**
2377
2377
  @internal
2378
2378
  */
@@ -2427,7 +2427,7 @@ class x {
2427
2427
  let t = this.lastChild, r = e.firstChild, o = this.content.slice(), i = 0;
2428
2428
  for (t.isText && t.sameMarkup(r) && (o[o.length - 1] = t.withText(t.text + r.text), i = 1); i < e.content.length; i++)
2429
2429
  o.push(e.content[i]);
2430
- return new x(o, this.size + e.size);
2430
+ return new w(o, this.size + e.size);
2431
2431
  }
2432
2432
  /**
2433
2433
  Cut out the sub-fragment between the two given positions.
@@ -2441,13 +2441,13 @@ class x {
2441
2441
  let s = this.content[i], a = l + s.nodeSize;
2442
2442
  a > e && ((l < e || a > t) && (s.isText ? s = s.cut(Math.max(0, e - l), Math.min(s.text.length, t - l)) : s = s.cut(Math.max(0, e - l - 1), Math.min(s.content.size, t - l - 1))), r.push(s), o += s.nodeSize), l = a;
2443
2443
  }
2444
- return new x(r, o);
2444
+ return new w(r, o);
2445
2445
  }
2446
2446
  /**
2447
2447
  @internal
2448
2448
  */
2449
2449
  cutByIndex(e, t) {
2450
- return e == t ? x.empty : e == 0 && t == this.content.length ? this : new x(this.content.slice(e, t));
2450
+ return e == t ? w.empty : e == 0 && t == this.content.length ? this : new w(this.content.slice(e, t));
2451
2451
  }
2452
2452
  /**
2453
2453
  Create a new fragment in which the node at the given index is
@@ -2458,21 +2458,21 @@ class x {
2458
2458
  if (r == t)
2459
2459
  return this;
2460
2460
  let o = this.content.slice(), i = this.size + t.nodeSize - r.nodeSize;
2461
- return o[e] = t, new x(o, i);
2461
+ return o[e] = t, new w(o, i);
2462
2462
  }
2463
2463
  /**
2464
2464
  Create a new fragment by prepending the given node to this
2465
2465
  fragment.
2466
2466
  */
2467
2467
  addToStart(e) {
2468
- return new x([e].concat(this.content), this.size + e.nodeSize);
2468
+ return new w([e].concat(this.content), this.size + e.nodeSize);
2469
2469
  }
2470
2470
  /**
2471
2471
  Create a new fragment by appending the given node to this
2472
2472
  fragment.
2473
2473
  */
2474
2474
  addToEnd(e) {
2475
- return new x(this.content.concat(e), this.size + e.nodeSize);
2475
+ return new w(this.content.concat(e), this.size + e.nodeSize);
2476
2476
  }
2477
2477
  /**
2478
2478
  Compare this fragment to another one.
@@ -2587,10 +2587,10 @@ class x {
2587
2587
  */
2588
2588
  static fromJSON(e, t) {
2589
2589
  if (!t)
2590
- return x.empty;
2590
+ return w.empty;
2591
2591
  if (!Array.isArray(t))
2592
2592
  throw new RangeError("Invalid input for Fragment.fromJSON");
2593
- return new x(t.map(e.nodeFromJSON));
2593
+ return new w(t.map(e.nodeFromJSON));
2594
2594
  }
2595
2595
  /**
2596
2596
  Build a fragment from an array of nodes. Ensures that adjacent
@@ -2598,13 +2598,13 @@ class x {
2598
2598
  */
2599
2599
  static fromArray(e) {
2600
2600
  if (!e.length)
2601
- return x.empty;
2601
+ return w.empty;
2602
2602
  let t, r = 0;
2603
2603
  for (let o = 0; o < e.length; o++) {
2604
2604
  let i = e[o];
2605
2605
  r += i.nodeSize, o && i.isText && e[o - 1].sameMarkup(i) ? (t || (t = e.slice(0, o)), t[t.length - 1] = i.withText(t[t.length - 1].text + i.text)) : t && t.push(i);
2606
2606
  }
2607
- return new x(t || e, r);
2607
+ return new w(t || e, r);
2608
2608
  }
2609
2609
  /**
2610
2610
  Create a fragment from something that can be interpreted as a
@@ -2614,17 +2614,17 @@ class x {
2614
2614
  */
2615
2615
  static from(e) {
2616
2616
  if (!e)
2617
- return x.empty;
2618
- if (e instanceof x)
2617
+ return w.empty;
2618
+ if (e instanceof w)
2619
2619
  return e;
2620
2620
  if (Array.isArray(e))
2621
2621
  return this.fromArray(e);
2622
2622
  if (e.attrs)
2623
- return new x([e], e.nodeSize);
2623
+ return new w([e], e.nodeSize);
2624
2624
  throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
2625
2625
  }
2626
2626
  }
2627
- x.empty = new x([], 0);
2627
+ w.empty = new w([], 0);
2628
2628
  const ir = { index: 0, offset: 0 };
2629
2629
  function Xt(n, e) {
2630
2630
  return ir.index = n, ir.offset = e, ir;
@@ -2826,7 +2826,7 @@ class E {
2826
2826
  let r = t.openStart || 0, o = t.openEnd || 0;
2827
2827
  if (typeof r != "number" || typeof o != "number")
2828
2828
  throw new RangeError("Invalid input for Slice.fromJSON");
2829
- return new E(x.fromJSON(e, t.content), r, o);
2829
+ return new E(w.fromJSON(e, t.content), r, o);
2830
2830
  }
2831
2831
  /**
2832
2832
  Create a slice from a fragment by taking the maximum possible
@@ -2841,7 +2841,7 @@ class E {
2841
2841
  return new E(e, r, o);
2842
2842
  }
2843
2843
  }
2844
- E.empty = new E(x.empty, 0, 0);
2844
+ E.empty = new E(w.empty, 0, 0);
2845
2845
  function Ei(n, e, t) {
2846
2846
  let { index: r, offset: o } = n.findIndex(e), i = n.maybeChild(r), { index: l, offset: s } = n.findIndex(t);
2847
2847
  if (o == e || i.isText) {
@@ -3145,7 +3145,7 @@ class Qt {
3145
3145
  if (!this.match) {
3146
3146
  if (!this.type)
3147
3147
  return [];
3148
- let t = this.type.contentMatch.fillBefore(x.from(e));
3148
+ let t = this.type.contentMatch.fillBefore(w.from(e));
3149
3149
  if (t)
3150
3150
  this.match = this.type.contentMatch.matchFragment(t);
3151
3151
  else {
@@ -3163,8 +3163,8 @@ class Qt {
3163
3163
  r.text.length == o[0].length ? this.content.pop() : this.content[this.content.length - 1] = i.withText(i.text.slice(0, i.text.length - o[0].length));
3164
3164
  }
3165
3165
  }
3166
- let t = x.from(this.content);
3167
- return !e && this.match && (t = t.append(this.match.fillBefore(x.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
3166
+ let t = w.from(this.content);
3167
+ return !e && this.match && (t = t.append(this.match.fillBefore(w.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
3168
3168
  }
3169
3169
  inlineContext(e) {
3170
3170
  return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Mi.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
@@ -3955,7 +3955,7 @@ class ne {
3955
3955
  return sr[e] = t, t.prototype.jsonID = e, t;
3956
3956
  }
3957
3957
  }
3958
- class q {
3958
+ class G {
3959
3959
  /**
3960
3960
  @internal
3961
3961
  */
@@ -3966,13 +3966,13 @@ class q {
3966
3966
  Create a successful step result.
3967
3967
  */
3968
3968
  static ok(e) {
3969
- return new q(e, null);
3969
+ return new G(e, null);
3970
3970
  }
3971
3971
  /**
3972
3972
  Create a failed step result.
3973
3973
  */
3974
3974
  static fail(e) {
3975
- return new q(null, e);
3975
+ return new G(null, e);
3976
3976
  }
3977
3977
  /**
3978
3978
  Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
@@ -3981,10 +3981,10 @@ class q {
3981
3981
  */
3982
3982
  static fromReplace(e, t, r, o) {
3983
3983
  try {
3984
- return q.ok(e.replace(t, r, o));
3984
+ return G.ok(e.replace(t, r, o));
3985
3985
  } catch (i) {
3986
3986
  if (i instanceof Na)
3987
- return q.fail(i.message);
3987
+ return G.fail(i.message);
3988
3988
  throw i;
3989
3989
  }
3990
3990
  }
@@ -3995,7 +3995,7 @@ function to(n, e, t) {
3995
3995
  let i = n.child(o);
3996
3996
  i.content.size && (i = i.copy(to(i.content, e, i))), i.isInline && (i = e(i, t, o)), r.push(i);
3997
3997
  }
3998
- return x.fromArray(r);
3998
+ return w.fromArray(r);
3999
3999
  }
4000
4000
  class Je extends ne {
4001
4001
  /**
@@ -4006,7 +4006,7 @@ class Je extends ne {
4006
4006
  }
4007
4007
  apply(e) {
4008
4008
  let t = e.slice(this.from, this.to), r = e.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new E(to(t.content, (l, s) => !l.isAtom || !s.type.allowsMarkType(this.mark.type) ? l : l.mark(this.mark.addToSet(l.marks)), o), t.openStart, t.openEnd);
4009
- return q.fromReplace(e, this.from, this.to, i);
4009
+ return G.fromReplace(e, this.from, this.to, i);
4010
4010
  }
4011
4011
  invert() {
4012
4012
  return new Me(this.from, this.to, this.mark);
@@ -4045,7 +4045,7 @@ class Me extends ne {
4045
4045
  }
4046
4046
  apply(e) {
4047
4047
  let t = e.slice(this.from, this.to), r = new E(to(t.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), e), t.openStart, t.openEnd);
4048
- return q.fromReplace(e, this.from, this.to, r);
4048
+ return G.fromReplace(e, this.from, this.to, r);
4049
4049
  }
4050
4050
  invert() {
4051
4051
  return new Je(this.from, this.to, this.mark);
@@ -4085,9 +4085,9 @@ class qe extends ne {
4085
4085
  apply(e) {
4086
4086
  let t = e.nodeAt(this.pos);
4087
4087
  if (!t)
4088
- return q.fail("No node at mark step's position");
4088
+ return G.fail("No node at mark step's position");
4089
4089
  let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
4090
- return q.fromReplace(e, this.pos, this.pos + 1, new E(x.from(r), 0, t.isLeaf ? 0 : 1));
4090
+ return G.fromReplace(e, this.pos, this.pos + 1, new E(w.from(r), 0, t.isLeaf ? 0 : 1));
4091
4091
  }
4092
4092
  invert(e) {
4093
4093
  let t = e.nodeAt(this.pos);
@@ -4129,9 +4129,9 @@ class at extends ne {
4129
4129
  apply(e) {
4130
4130
  let t = e.nodeAt(this.pos);
4131
4131
  if (!t)
4132
- return q.fail("No node at mark step's position");
4132
+ return G.fail("No node at mark step's position");
4133
4133
  let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
4134
- return q.fromReplace(e, this.pos, this.pos + 1, new E(x.from(r), 0, t.isLeaf ? 0 : 1));
4134
+ return G.fromReplace(e, this.pos, this.pos + 1, new E(w.from(r), 0, t.isLeaf ? 0 : 1));
4135
4135
  }
4136
4136
  invert(e) {
4137
4137
  let t = e.nodeAt(this.pos);
@@ -4168,7 +4168,7 @@ class Y extends ne {
4168
4168
  super(), this.from = e, this.to = t, this.slice = r, this.structure = o;
4169
4169
  }
4170
4170
  apply(e) {
4171
- return this.structure && Or(e, this.from, this.to) ? q.fail("Structure replace would overwrite content") : q.fromReplace(e, this.from, this.to, this.slice);
4171
+ return this.structure && Or(e, this.from, this.to) ? G.fail("Structure replace would overwrite content") : G.fromReplace(e, this.from, this.to, this.slice);
4172
4172
  }
4173
4173
  getMap() {
4174
4174
  return new fe([this.from, this.to - this.from, this.slice.size]);
@@ -4218,12 +4218,12 @@ class ke extends ne {
4218
4218
  }
4219
4219
  apply(e) {
4220
4220
  if (this.structure && (Or(e, this.from, this.gapFrom) || Or(e, this.gapTo, this.to)))
4221
- return q.fail("Structure gap-replace would overwrite content");
4221
+ return G.fail("Structure gap-replace would overwrite content");
4222
4222
  let t = e.slice(this.gapFrom, this.gapTo);
4223
4223
  if (t.openStart || t.openEnd)
4224
- return q.fail("Gap is not a flat range");
4224
+ return G.fail("Gap is not a flat range");
4225
4225
  let r = this.slice.insertAt(this.insert, t.content);
4226
- return r ? q.fromReplace(e, this.from, this.to, r) : q.fail("Content does not fit in gap");
4226
+ return r ? G.fromReplace(e, this.from, this.to, r) : G.fail("Content does not fit in gap");
4227
4227
  }
4228
4228
  getMap() {
4229
4229
  return new fe([
@@ -4331,36 +4331,36 @@ function no(n, e, t, r = t.contentMatch, o = !0) {
4331
4331
  if (o && c.isText && t.whitespace != "pre") {
4332
4332
  let f, h = /\r?\n|\r/g, p;
4333
4333
  for (; f = h.exec(c.text); )
4334
- p || (p = new E(x.from(t.schema.text(" ", t.allowedMarks(c.marks))), 0, 0)), l.push(new Y(s + f.index, s + f.index + f[0].length, p));
4334
+ p || (p = new E(w.from(t.schema.text(" ", t.allowedMarks(c.marks))), 0, 0)), l.push(new Y(s + f.index, s + f.index + f[0].length, p));
4335
4335
  }
4336
4336
  }
4337
4337
  s = d;
4338
4338
  }
4339
4339
  if (!r.validEnd) {
4340
- let a = r.fillBefore(x.empty, !0);
4340
+ let a = r.fillBefore(w.empty, !0);
4341
4341
  n.replace(s, s, new E(a, 0, 0));
4342
4342
  }
4343
4343
  for (let a = l.length - 1; a >= 0; a--)
4344
4344
  n.step(l[a]);
4345
4345
  }
4346
4346
  function qa(n, e, t) {
4347
- let { $from: r, $to: o, depth: i } = e, l = r.before(i + 1), s = o.after(i + 1), a = l, c = s, d = x.empty, u = 0;
4347
+ let { $from: r, $to: o, depth: i } = e, l = r.before(i + 1), s = o.after(i + 1), a = l, c = s, d = w.empty, u = 0;
4348
4348
  for (let p = i, m = !1; p > t; p--)
4349
- m || r.index(p) > 0 ? (m = !0, d = x.from(r.node(p).copy(d)), u++) : a--;
4350
- let f = x.empty, h = 0;
4349
+ m || r.index(p) > 0 ? (m = !0, d = w.from(r.node(p).copy(d)), u++) : a--;
4350
+ let f = w.empty, h = 0;
4351
4351
  for (let p = i, m = !1; p > t; p--)
4352
- m || o.after(p + 1) < o.end(p) ? (m = !0, f = x.from(o.node(p).copy(f)), h++) : c++;
4352
+ m || o.after(p + 1) < o.end(p) ? (m = !0, f = w.from(o.node(p).copy(f)), h++) : c++;
4353
4353
  n.step(new ke(a, c, l, s, new E(d.append(f), u, h), d.size - u, !0));
4354
4354
  }
4355
4355
  function Ga(n, e, t) {
4356
- let r = x.empty;
4356
+ let r = w.empty;
4357
4357
  for (let l = t.length - 1; l >= 0; l--) {
4358
4358
  if (r.size) {
4359
4359
  let s = t[l].type.contentMatch.matchFragment(r);
4360
4360
  if (!s || !s.validEnd)
4361
4361
  throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
4362
4362
  }
4363
- r = x.from(t[l].type.create(t[l].attrs, r));
4363
+ r = w.from(t[l].type.create(t[l].attrs, r));
4364
4364
  }
4365
4365
  let o = e.start, i = e.end;
4366
4366
  n.step(new ke(o, i, o, i, new E(r, 0, 0), t.length, !0));
@@ -4379,7 +4379,7 @@ function Xa(n, e, t, r, o) {
4379
4379
  }
4380
4380
  c === !1 && Pi(n, l, s, i), no(n, n.mapping.slice(i).map(s, 1), r, void 0, c === null);
4381
4381
  let d = n.mapping.slice(i), u = d.map(s, 1), f = d.map(s + l.nodeSize, 1);
4382
- return n.step(new ke(u, f, u + 1, f - 1, new E(x.from(r.create(a, null, l.marks)), 0, 0), 1, !0)), c === !0 && zi(n, l, s, i), !1;
4382
+ return n.step(new ke(u, f, u + 1, f - 1, new E(w.from(r.create(a, null, l.marks)), 0, 0), 1, !0)), c === !0 && zi(n, l, s, i), !1;
4383
4383
  }
4384
4384
  });
4385
4385
  }
@@ -4417,14 +4417,14 @@ function Ya(n, e, t, r, o) {
4417
4417
  return n.replaceWith(e, e + i.nodeSize, l);
4418
4418
  if (!t.validContent(i.content))
4419
4419
  throw new RangeError("Invalid content for node type " + t.name);
4420
- n.step(new ke(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new E(x.from(l), 0, 0), 1, !0));
4420
+ n.step(new ke(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new E(w.from(l), 0, 0), 1, !0));
4421
4421
  }
4422
4422
  function Za(n, e, t = 1, r) {
4423
- let o = n.doc.resolve(e), i = x.empty, l = x.empty;
4423
+ let o = n.doc.resolve(e), i = w.empty, l = w.empty;
4424
4424
  for (let s = o.depth, a = o.depth - t, c = t - 1; s > a; s--, c--) {
4425
- i = x.from(o.node(s).copy(i));
4425
+ i = w.from(o.node(s).copy(i));
4426
4426
  let d = r && r[c];
4427
- l = x.from(d ? d.type.create(d.attrs, l) : o.node(s).copy(l));
4427
+ l = w.from(d ? d.type.create(d.attrs, l) : o.node(s).copy(l));
4428
4428
  }
4429
4429
  n.step(new Y(e, e, new E(i.append(l), t, t), !0));
4430
4430
  }
@@ -4501,7 +4501,7 @@ function $i(n, e, t) {
4501
4501
  }
4502
4502
  class oc {
4503
4503
  constructor(e, t, r) {
4504
- this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = x.empty;
4504
+ this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = w.empty;
4505
4505
  for (let o = 0; o <= e.depth; o++) {
4506
4506
  let i = e.node(o);
4507
4507
  this.frontier.push({
@@ -4510,7 +4510,7 @@ class oc {
4510
4510
  });
4511
4511
  }
4512
4512
  for (let o = e.depth; o > 0; o--)
4513
- this.placed = x.from(e.node(o).copy(this.placed));
4513
+ this.placed = w.from(e.node(o).copy(this.placed));
4514
4514
  }
4515
4515
  get depth() {
4516
4516
  return this.frontier.length - 1;
@@ -4549,7 +4549,7 @@ class oc {
4549
4549
  let l = o.firstChild;
4550
4550
  for (let s = this.depth; s >= 0; s--) {
4551
4551
  let { type: a, match: c } = this.frontier[s], d, u = null;
4552
- if (t == 1 && (l ? c.matchType(l.type) || (u = c.fillBefore(x.from(l), !1)) : i && a.compatibleContent(i.type)))
4552
+ if (t == 1 && (l ? c.matchType(l.type) || (u = c.fillBefore(w.from(l), !1)) : i && a.compatibleContent(i.type)))
4553
4553
  return { sliceDepth: r, frontierDepth: s, parent: i, inject: u };
4554
4554
  if (t == 2 && l && (d = c.findWrapping(l.type)))
4555
4555
  return { sliceDepth: r, frontierDepth: s, parent: i, wrap: d };
@@ -4587,16 +4587,16 @@ class oc {
4587
4587
  }
4588
4588
  let h = s.size + e - (l.content.size - l.openEnd);
4589
4589
  for (; c < s.childCount; ) {
4590
- let m = s.child(c), y = u.matchType(m.type);
4591
- if (!y)
4590
+ let m = s.child(c), b = u.matchType(m.type);
4591
+ if (!b)
4592
4592
  break;
4593
- c++, (c > 1 || a == 0 || m.content.size) && (u = y, d.push(Bi(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == s.childCount ? h : -1)));
4593
+ c++, (c > 1 || a == 0 || m.content.size) && (u = b, d.push(Bi(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == s.childCount ? h : -1)));
4594
4594
  }
4595
4595
  let p = c == s.childCount;
4596
- p || (h = -1), this.placed = Mt(this.placed, t, x.from(d)), this.frontier[t].match = u, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
4597
- for (let m = 0, y = s; m < h; m++) {
4598
- let g = y.lastChild;
4599
- this.frontier.push({ type: g.type, match: g.contentMatchAt(g.childCount) }), y = g.content;
4596
+ p || (h = -1), this.placed = Mt(this.placed, t, w.from(d)), this.frontier[t].match = u, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
4597
+ for (let m = 0, b = s; m < h; m++) {
4598
+ let y = b.lastChild;
4599
+ this.frontier.push({ type: y.type, match: y.contentMatchAt(y.childCount) }), b = y.content;
4600
4600
  }
4601
4601
  this.unplaced = p ? e == 0 ? E.empty : new E(Rt(l.content, e - 1, 1), e - 1, h < 0 ? l.openEnd : e - 1) : new E(Rt(l.content, e, c), l.openStart, l.openEnd);
4602
4602
  }
@@ -4640,10 +4640,10 @@ class oc {
4640
4640
  }
4641
4641
  openFrontierNode(e, t = null, r) {
4642
4642
  let o = this.frontier[this.depth];
4643
- o.match = o.match.matchType(e), this.placed = Mt(this.placed, this.depth, x.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
4643
+ o.match = o.match.matchType(e), this.placed = Mt(this.placed, this.depth, w.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
4644
4644
  }
4645
4645
  closeFrontierNode() {
4646
- let t = this.frontier.pop().match.fillBefore(x.empty, !0);
4646
+ let t = this.frontier.pop().match.fillBefore(w.empty, !0);
4647
4647
  t.childCount && (this.placed = Mt(this.placed, this.frontier.length, t));
4648
4648
  }
4649
4649
  }
@@ -4662,7 +4662,7 @@ function Bi(n, e, t) {
4662
4662
  if (e <= 0)
4663
4663
  return n;
4664
4664
  let r = n.content;
4665
- return e > 1 && (r = r.replaceChild(0, Bi(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(x.empty, !0)))), n.copy(r);
4665
+ return e > 1 && (r = r.replaceChild(0, Bi(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(w.empty, !0)))), n.copy(r);
4666
4666
  }
4667
4667
  function cr(n, e, t, r, o) {
4668
4668
  let i = n.node(e), l = o ? n.indexAfter(e) : n.index(e);
@@ -4714,11 +4714,11 @@ function sc(n, e, t, r) {
4714
4714
  let h = (f + d + 1) % (r.openStart + 1), p = c[h];
4715
4715
  if (p)
4716
4716
  for (let m = 0; m < l.length; m++) {
4717
- let y = l[(m + a) % l.length], g = !0;
4718
- y < 0 && (g = !1, y = -y);
4719
- let b = o.node(y - 1), w = o.index(y - 1);
4720
- if (b.canReplaceWith(w, w, p.type, p.marks))
4721
- return n.replace(o.before(y), g ? i.after(y) : t, new E(Fi(r.content, 0, r.openStart, h), h, r.openEnd));
4717
+ let b = l[(m + a) % l.length], y = !0;
4718
+ b < 0 && (y = !1, b = -b);
4719
+ let g = o.node(b - 1), k = o.index(b - 1);
4720
+ if (g.canReplaceWith(k, k, p.type, p.marks))
4721
+ return n.replace(o.before(b), y ? i.after(b) : t, new E(Fi(r.content, 0, r.openStart, h), h, r.openEnd));
4722
4722
  }
4723
4723
  }
4724
4724
  let u = n.steps.length;
@@ -4734,7 +4734,7 @@ function Fi(n, e, t, r, o) {
4734
4734
  }
4735
4735
  if (e > r) {
4736
4736
  let i = o.contentMatchAt(0), l = i.fillBefore(n).append(n);
4737
- n = l.append(i.matchFragment(l).fillBefore(x.empty, !0));
4737
+ n = l.append(i.matchFragment(l).fillBefore(w.empty, !0));
4738
4738
  }
4739
4739
  return n;
4740
4740
  }
@@ -4743,7 +4743,7 @@ function ac(n, e, t, r) {
4743
4743
  let o = tc(n.doc, e, r.type);
4744
4744
  o != null && (e = t = o);
4745
4745
  }
4746
- n.replaceRange(e, t, new E(x.from(r), 0, 0));
4746
+ n.replaceRange(e, t, new E(w.from(r), 0, 0));
4747
4747
  }
4748
4748
  function cc(n, e, t) {
4749
4749
  let r = n.doc.resolve(e), o = n.doc.resolve(t), i = _i(r, o);
@@ -4779,13 +4779,13 @@ class bt extends ne {
4779
4779
  apply(e) {
4780
4780
  let t = e.nodeAt(this.pos);
4781
4781
  if (!t)
4782
- return q.fail("No node at attribute step's position");
4782
+ return G.fail("No node at attribute step's position");
4783
4783
  let r = /* @__PURE__ */ Object.create(null);
4784
4784
  for (let i in t.attrs)
4785
4785
  r[i] = t.attrs[i];
4786
4786
  r[this.attr] = this.value;
4787
4787
  let o = t.type.create(r, null, t.marks);
4788
- return q.fromReplace(e, this.pos, this.pos + 1, new E(x.from(o), 0, t.isLeaf ? 0 : 1));
4788
+ return G.fromReplace(e, this.pos, this.pos + 1, new E(w.from(o), 0, t.isLeaf ? 0 : 1));
4789
4789
  }
4790
4790
  getMap() {
4791
4791
  return fe.empty;
@@ -4820,7 +4820,7 @@ class _t extends ne {
4820
4820
  t[o] = e.attrs[o];
4821
4821
  t[this.attr] = this.value;
4822
4822
  let r = e.type.create(t, e.content, e.marks);
4823
- return q.ok(r);
4823
+ return G.ok(r);
4824
4824
  }
4825
4825
  getMap() {
4826
4826
  return fe.empty;
@@ -4907,7 +4907,7 @@ class dc {
4907
4907
  fragment, node, or array of nodes.
4908
4908
  */
4909
4909
  replaceWith(e, t, r) {
4910
- return this.replace(e, t, new E(x.from(r), 0, 0));
4910
+ return this.replace(e, t, new E(w.from(r), 0, 0));
4911
4911
  }
4912
4912
  /**
4913
4913
  Delete the content between the given positions.
@@ -5076,7 +5076,7 @@ class dc {
5076
5076
  }
5077
5077
  }
5078
5078
  const dr = /* @__PURE__ */ Object.create(null);
5079
- class $ {
5079
+ class B {
5080
5080
  /**
5081
5081
  Initialize a selection with the head and anchor and ranges. If no
5082
5082
  ranges are given, constructs a single range across `$anchor` and
@@ -5240,7 +5240,7 @@ class $ {
5240
5240
  return F.between(this.$anchor, this.$head).getBookmark();
5241
5241
  }
5242
5242
  }
5243
- $.prototype.visible = !0;
5243
+ B.prototype.visible = !0;
5244
5244
  class Wi {
5245
5245
  /**
5246
5246
  Create a range.
@@ -5253,7 +5253,7 @@ let Do = !1;
5253
5253
  function zo(n) {
5254
5254
  !Do && !n.parent.inlineContent && (Do = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + n.parent.type.name + ")"));
5255
5255
  }
5256
- class F extends $ {
5256
+ class F extends B {
5257
5257
  /**
5258
5258
  Construct a text selection between the given points.
5259
5259
  */
@@ -5270,7 +5270,7 @@ class F extends $ {
5270
5270
  map(e, t) {
5271
5271
  let r = e.resolve(t.map(this.head));
5272
5272
  if (!r.parent.inlineContent)
5273
- return $.near(r);
5273
+ return B.near(r);
5274
5274
  let o = e.resolve(t.map(this.anchor));
5275
5275
  return new F(o.parent.inlineContent ? o : r, r);
5276
5276
  }
@@ -5315,16 +5315,16 @@ class F extends $ {
5315
5315
  static between(e, t, r) {
5316
5316
  let o = e.pos - t.pos;
5317
5317
  if ((!r || o) && (r = o >= 0 ? 1 : -1), !t.parent.inlineContent) {
5318
- let i = $.findFrom(t, r, !0) || $.findFrom(t, -r, !0);
5318
+ let i = B.findFrom(t, r, !0) || B.findFrom(t, -r, !0);
5319
5319
  if (i)
5320
5320
  t = i.$head;
5321
5321
  else
5322
- return $.near(t, r);
5322
+ return B.near(t, r);
5323
5323
  }
5324
- return e.parent.inlineContent || (o == 0 ? e = t : (e = ($.findFrom(e, -r, !0) || $.findFrom(e, r, !0)).$anchor, e.pos < t.pos != o < 0 && (e = t))), new F(e, t);
5324
+ return e.parent.inlineContent || (o == 0 ? e = t : (e = (B.findFrom(e, -r, !0) || B.findFrom(e, r, !0)).$anchor, e.pos < t.pos != o < 0 && (e = t))), new F(e, t);
5325
5325
  }
5326
5326
  }
5327
- $.jsonID("text", F);
5327
+ B.jsonID("text", F);
5328
5328
  class qn {
5329
5329
  constructor(e, t) {
5330
5330
  this.anchor = e, this.head = t;
@@ -5336,7 +5336,7 @@ class qn {
5336
5336
  return F.between(e.resolve(this.anchor), e.resolve(this.head));
5337
5337
  }
5338
5338
  }
5339
- class P extends $ {
5339
+ class P extends B {
5340
5340
  /**
5341
5341
  Create a node selection. Does not verify the validity of its
5342
5342
  argument.
@@ -5347,10 +5347,10 @@ class P extends $ {
5347
5347
  }
5348
5348
  map(e, t) {
5349
5349
  let { deleted: r, pos: o } = t.mapResult(this.anchor), i = e.resolve(o);
5350
- return r ? $.near(i) : new P(i);
5350
+ return r ? B.near(i) : new P(i);
5351
5351
  }
5352
5352
  content() {
5353
- return new E(x.from(this.node), 0, 0);
5353
+ return new E(w.from(this.node), 0, 0);
5354
5354
  }
5355
5355
  eq(e) {
5356
5356
  return e instanceof P && e.anchor == this.anchor;
@@ -5384,7 +5384,7 @@ class P extends $ {
5384
5384
  }
5385
5385
  }
5386
5386
  P.prototype.visible = !1;
5387
- $.jsonID("node", P);
5387
+ B.jsonID("node", P);
5388
5388
  class ro {
5389
5389
  constructor(e) {
5390
5390
  this.anchor = e;
@@ -5395,10 +5395,10 @@ class ro {
5395
5395
  }
5396
5396
  resolve(e) {
5397
5397
  let t = e.resolve(this.anchor), r = t.nodeAfter;
5398
- return r && P.isSelectable(r) ? new P(t) : $.near(t);
5398
+ return r && P.isSelectable(r) ? new P(t) : B.near(t);
5399
5399
  }
5400
5400
  }
5401
- class Ne extends $ {
5401
+ class Ne extends B {
5402
5402
  /**
5403
5403
  Create an all-selection over the given document.
5404
5404
  */
@@ -5408,7 +5408,7 @@ class Ne extends $ {
5408
5408
  replace(e, t = E.empty) {
5409
5409
  if (t == E.empty) {
5410
5410
  e.delete(0, e.doc.content.size);
5411
- let r = $.atStart(e.doc);
5411
+ let r = B.atStart(e.doc);
5412
5412
  r.eq(e.selection) || e.setSelection(r);
5413
5413
  } else
5414
5414
  super.replace(e, t);
@@ -5432,7 +5432,7 @@ class Ne extends $ {
5432
5432
  return uc;
5433
5433
  }
5434
5434
  }
5435
- $.jsonID("all", Ne);
5435
+ B.jsonID("all", Ne);
5436
5436
  const uc = {
5437
5437
  map() {
5438
5438
  return this;
@@ -5468,7 +5468,7 @@ function Po(n, e, t) {
5468
5468
  let i = n.mapping.maps[r], l;
5469
5469
  i.forEach((s, a, c, d) => {
5470
5470
  l == null && (l = d);
5471
- }), n.setSelection($.near(n.doc.resolve(l), t));
5471
+ }), n.setSelection(B.near(n.doc.resolve(l), t));
5472
5472
  }
5473
5473
  function $o(n, e) {
5474
5474
  return !e || !n ? n : n.bind(e);
@@ -5487,7 +5487,7 @@ new Yt("doc", {
5487
5487
  }
5488
5488
  }), new Yt("selection", {
5489
5489
  init(n, e) {
5490
- return n.selection || $.atStart(e.doc);
5490
+ return n.selection || B.atStart(e.doc);
5491
5491
  },
5492
5492
  apply(n) {
5493
5493
  return n.selection;
@@ -5514,7 +5514,7 @@ function Ui(n, e, t) {
5514
5514
  }
5515
5515
  return t;
5516
5516
  }
5517
- class xt {
5517
+ class wt {
5518
5518
  /**
5519
5519
  Create a plugin.
5520
5520
  */
@@ -5558,7 +5558,7 @@ function mc(n) {
5558
5558
  return n.length === 1 ? n[0].isLink : n.length === 3 && n[1].isLink ? ["()", "[]"].includes(n[0].value + n[2].value) : !1;
5559
5559
  }
5560
5560
  function gc(n) {
5561
- return new xt({
5561
+ return new wt({
5562
5562
  key: new ut("autolink"),
5563
5563
  appendTransaction: (e, t, r) => {
5564
5564
  const o = e.some((c) => c.docChanged) && !t.doc.eq(r.doc), i = e.some((c) => c.getMeta("preventAutolink"));
@@ -5583,16 +5583,16 @@ function gc(n) {
5583
5583
  const p = h[h.length - 1], m = u.pos + f.lastIndexOf(p);
5584
5584
  if (!p)
5585
5585
  return !1;
5586
- const y = Zr(p).map((g) => g.toObject(n.defaultProtocol));
5587
- if (!mc(y))
5586
+ const b = Zr(p).map((y) => y.toObject(n.defaultProtocol));
5587
+ if (!mc(b))
5588
5588
  return !1;
5589
- y.filter((g) => g.isLink).map((g) => ({
5590
- ...g,
5591
- from: m + g.start + 1,
5592
- to: m + g.end + 1
5593
- })).filter((g) => r.schema.marks.code ? !r.doc.rangeHasMark(g.from, g.to, r.schema.marks.code) : !0).filter((g) => n.validate(g.value)).filter((g) => n.shouldAutoLink(g.value)).forEach((g) => {
5594
- Hl(g.from, g.to, r.doc).some((b) => b.mark.type === n.type) || l.addMark(g.from, g.to, n.type.create({
5595
- href: g.href
5589
+ b.filter((y) => y.isLink).map((y) => ({
5590
+ ...y,
5591
+ from: m + y.start + 1,
5592
+ to: m + y.end + 1
5593
+ })).filter((y) => r.schema.marks.code ? !r.doc.rangeHasMark(y.from, y.to, r.schema.marks.code) : !0).filter((y) => n.validate(y.value)).filter((y) => n.shouldAutoLink(y.value)).forEach((y) => {
5594
+ Hl(y.from, y.to, r.doc).some((g) => g.mark.type === n.type) || l.addMark(y.from, y.to, n.type.create({
5595
+ href: y.href
5596
5596
  }));
5597
5597
  });
5598
5598
  }
@@ -5602,7 +5602,7 @@ function gc(n) {
5602
5602
  });
5603
5603
  }
5604
5604
  function yc(n) {
5605
- return new xt({
5605
+ return new wt({
5606
5606
  key: new ut("handleClickLink"),
5607
5607
  props: {
5608
5608
  handleClick: (e, t, r) => {
@@ -5622,7 +5622,7 @@ function yc(n) {
5622
5622
  });
5623
5623
  }
5624
5624
  function bc(n) {
5625
- return new xt({
5625
+ return new wt({
5626
5626
  key: new ut("handlePasteLink"),
5627
5627
  props: {
5628
5628
  handlePaste: (e, t, r) => {
@@ -5633,7 +5633,7 @@ function bc(n) {
5633
5633
  r.content.forEach((c) => {
5634
5634
  s += c.textContent;
5635
5635
  });
5636
- const a = xi(s, { defaultProtocol: n.defaultProtocol }).find((c) => c.isLink && c.value === s);
5636
+ const a = wi(s, { defaultProtocol: n.defaultProtocol }).find((c) => c.isLink && c.value === s);
5637
5637
  return !s || !a ? !1 : n.editor.commands.setMark(n.type, {
5638
5638
  href: a.href
5639
5639
  });
@@ -5772,7 +5772,7 @@ const Cc = vt.create({
5772
5772
  find: (n) => {
5773
5773
  const e = [];
5774
5774
  if (n) {
5775
- const { protocols: t, defaultProtocol: r } = this.options, o = xi(n).filter((i) => i.isLink && this.options.isAllowedUri(i.value, {
5775
+ const { protocols: t, defaultProtocol: r } = this.options, o = wi(n).filter((i) => i.isLink && this.options.isAllowedUri(i.value, {
5776
5776
  defaultValidate: (l) => !!tt(l, t),
5777
5777
  protocols: t,
5778
5778
  defaultProtocol: r
@@ -5857,7 +5857,7 @@ const Cc = vt.create({
5857
5857
  }
5858
5858
  };
5859
5859
  }
5860
- }), vc = wt.create({
5860
+ }), vc = xt.create({
5861
5861
  name: "fontFamily",
5862
5862
  addOptions() {
5863
5863
  return {
@@ -5887,7 +5887,7 @@ const Cc = vt.create({
5887
5887
  };
5888
5888
  }
5889
5889
  });
5890
- var wc = /* @__PURE__ */ wt.create({
5890
+ var xc = /* @__PURE__ */ xt.create({
5891
5891
  name: "fontSize",
5892
5892
  addOptions: function() {
5893
5893
  return {
@@ -5933,7 +5933,7 @@ var wc = /* @__PURE__ */ wt.create({
5933
5933
  };
5934
5934
  }
5935
5935
  });
5936
- const xc = wc, Tc = wt.create({
5936
+ const wc = xc, Tc = xt.create({
5937
5937
  name: "color",
5938
5938
  addOptions() {
5939
5939
  return {
@@ -6213,7 +6213,7 @@ function Dc(n) {
6213
6213
  }
6214
6214
  function Dr(n, e) {
6215
6215
  let { $anchor: t, $head: r } = n.selection, o = e > 0 ? t.max(r) : t.min(r), i = o.parent.inlineContent ? o.depth ? n.doc.resolve(e > 0 ? o.after() : o.before()) : null : o;
6216
- return i && $.findFrom(i, e);
6216
+ return i && B.findFrom(i, e);
6217
6217
  }
6218
6218
  function Ke(n, e) {
6219
6219
  return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()), !0;
@@ -6402,7 +6402,7 @@ function Jo(n, e, t) {
6402
6402
  return Ke(n, l);
6403
6403
  }
6404
6404
  if (!o.parent.inlineContent) {
6405
- let l = e < 0 ? o : i, s = r instanceof Ne ? $.near(l, e) : $.findFrom(l, e);
6405
+ let l = e < 0 ? o : i, s = r instanceof Ne ? B.near(l, e) : B.findFrom(l, e);
6406
6406
  return s ? Ke(n, s) : !1;
6407
6407
  }
6408
6408
  return !1;
@@ -6502,7 +6502,7 @@ function nl(n, e, t, r, o) {
6502
6502
  if (n.someProp("transformPastedText", (f) => {
6503
6503
  e = f(e, i || r, n);
6504
6504
  }), i)
6505
- return s = new E(x.from(n.state.schema.text(e.replace(/\r\n?/g, `
6505
+ return s = new E(w.from(n.state.schema.text(e.replace(/\r\n?/g, `
6506
6506
  `))), 0, 0), n.someProp("transformPasted", (f) => {
6507
6507
  s = f(s, n, !0);
6508
6508
  }), s;
@@ -6512,8 +6512,8 @@ function nl(n, e, t, r, o) {
6512
6512
  else {
6513
6513
  let f = o.marks(), { schema: h } = n.state, p = Jn.fromSchema(h);
6514
6514
  l = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((m) => {
6515
- let y = l.appendChild(document.createElement("p"));
6516
- m && y.appendChild(p.serializeNode(h.text(m, f)));
6515
+ let b = l.appendChild(document.createElement("p"));
6516
+ m && b.appendChild(p.serializeNode(h.text(m, f)));
6517
6517
  });
6518
6518
  }
6519
6519
  } else
@@ -6570,13 +6570,13 @@ function Kc(n, e) {
6570
6570
  l.push(d), o = o.matchType(d.type), i = a;
6571
6571
  }
6572
6572
  }), l)
6573
- return x.from(l);
6573
+ return w.from(l);
6574
6574
  }
6575
6575
  return n;
6576
6576
  }
6577
6577
  function rl(n, e, t = 0) {
6578
6578
  for (let r = e.length - 1; r >= t; r--)
6579
- n = e[r].create(null, x.from(n));
6579
+ n = e[r].create(null, w.from(n));
6580
6580
  return n;
6581
6581
  }
6582
6582
  function ol(n, e, t, r, o) {
@@ -6585,18 +6585,18 @@ function ol(n, e, t, r, o) {
6585
6585
  if (i)
6586
6586
  return r.copy(r.content.replaceChild(r.childCount - 1, i));
6587
6587
  if (r.contentMatchAt(r.childCount).matchType(o == n.length - 1 ? t.type : n[o + 1]))
6588
- return r.copy(r.content.append(x.from(rl(t, n, o + 1))));
6588
+ return r.copy(r.content.append(w.from(rl(t, n, o + 1))));
6589
6589
  }
6590
6590
  }
6591
6591
  function il(n, e) {
6592
6592
  if (e == 0)
6593
6593
  return n;
6594
- let t = n.content.replaceChild(n.childCount - 1, il(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(x.empty, !0);
6594
+ let t = n.content.replaceChild(n.childCount - 1, il(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(w.empty, !0);
6595
6595
  return n.copy(t.append(r));
6596
6596
  }
6597
6597
  function Pr(n, e, t, r, o, i) {
6598
6598
  let l = e < 0 ? n.firstChild : n.lastChild, s = l.content;
6599
- return n.childCount > 1 && (i = 0), o < r - 1 && (s = Pr(s, e, t, r, o + 1, i)), o >= t && (s = e < 0 ? l.contentMatchAt(0).fillBefore(s, i <= o).append(s) : s.append(l.contentMatchAt(l.childCount).fillBefore(x.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, l.copy(s));
6599
+ return n.childCount > 1 && (i = 0), o < r - 1 && (s = Pr(s, e, t, r, o + 1, i)), o >= t && (s = e < 0 ? l.contentMatchAt(0).fillBefore(s, i <= o).append(s) : s.append(l.contentMatchAt(l.childCount).fillBefore(w.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, l.copy(s));
6600
6600
  }
6601
6601
  function Xo(n, e, t) {
6602
6602
  return e < n.openStart && (n = new E(Pr(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new E(Pr(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
@@ -6651,7 +6651,7 @@ function qc(n, e) {
6651
6651
  let a = t.nodes[r[s]];
6652
6652
  if (!a || a.hasRequiredAttrs())
6653
6653
  break;
6654
- o = x.from(a.create(r[s + 1], o)), i++, l++;
6654
+ o = w.from(a.create(r[s + 1], o)), i++, l++;
6655
6655
  }
6656
6656
  return new E(o, i, l);
6657
6657
  }
@@ -6806,7 +6806,7 @@ class nd {
6806
6806
  // (hidden) cursor is doesn't change the selection, and
6807
6807
  // thus doesn't get a reaction from ProseMirror. This
6808
6808
  // works around that.
6809
- Fe && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Ct(this.view, $.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : Ge(this.view, "pointer");
6809
+ Fe && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Ct(this.view, B.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : Ge(this.view, "pointer");
6810
6810
  }
6811
6811
  move(e) {
6812
6812
  this.updateAllowDefault(e), Ge(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -7007,7 +7007,7 @@ function fd(n, e, t) {
7007
7007
  a.setSelection(new P(f));
7008
7008
  else {
7009
7009
  let h = a.mapping.map(s);
7010
- a.mapping.maps[a.mapping.maps.length - 1].forEach((p, m, y, g) => h = g), a.setSelection(Zi(n, f, a.doc.resolve(h)));
7010
+ a.mapping.maps[a.mapping.maps.length - 1].forEach((p, m, b, y) => h = y), a.setSelection(Zi(n, f, a.doc.resolve(h)));
7011
7011
  }
7012
7012
  n.focus(), n.dispatch(a.setMeta("uiEvent", "drop"));
7013
7013
  }
@@ -7413,15 +7413,15 @@ function hd(n, e, t, r, o, i, l) {
7413
7413
  for (let c = 0, d = i; c < t.maps.length; c++) {
7414
7414
  let u = 0;
7415
7415
  t.maps[c].forEach((f, h, p, m) => {
7416
- let y = m - p - (h - f);
7417
- for (let g = 0; g < s.length; g += 3) {
7418
- let b = s[g + 1];
7419
- if (b < 0 || f > b + d - u)
7416
+ let b = m - p - (h - f);
7417
+ for (let y = 0; y < s.length; y += 3) {
7418
+ let g = s[y + 1];
7419
+ if (g < 0 || f > g + d - u)
7420
7420
  continue;
7421
- let w = s[g] + d - u;
7422
- h >= w ? s[g + 1] = f <= w ? -2 : -1 : f >= d && y && (s[g] += y, s[g + 1] += y);
7421
+ let k = s[y] + d - u;
7422
+ h >= k ? s[y + 1] = f <= k ? -2 : -1 : f >= d && b && (s[y] += b, s[y + 1] += b);
7423
7423
  }
7424
- u += y;
7424
+ u += b;
7425
7425
  }), d = t.maps[c].map(d, -1);
7426
7426
  }
7427
7427
  let a = !1;
@@ -7436,10 +7436,10 @@ function hd(n, e, t, r, o, i, l) {
7436
7436
  a = !0;
7437
7437
  continue;
7438
7438
  }
7439
- let f = t.map(n[c + 1] + i, -1), h = f - o, { index: p, offset: m } = r.content.findIndex(u), y = r.maybeChild(p);
7440
- if (y && m == u && m + y.nodeSize == h) {
7441
- let g = s[c + 2].mapInner(t, y, d + 1, n[c] + i + 1, l);
7442
- g != oe ? (s[c] = u, s[c + 1] = h, s[c + 2] = g) : (s[c + 1] = -2, a = !0);
7439
+ let f = t.map(n[c + 1] + i, -1), h = f - o, { index: p, offset: m } = r.content.findIndex(u), b = r.maybeChild(p);
7440
+ if (b && m == u && m + b.nodeSize == h) {
7441
+ let y = s[c + 2].mapInner(t, b, d + 1, n[c] + i + 1, l);
7442
+ y != oe ? (s[c] = u, s[c + 1] = h, s[c + 2] = y) : (s[c + 1] = -2, a = !0);
7443
7443
  } else
7444
7444
  a = !0;
7445
7445
  }
@@ -7692,7 +7692,7 @@ if (typeof WeakMap < "u") {
7692
7692
  return n[o + 1];
7693
7693
  }, Fr = (r, o) => (t == 10 && (t = 0), n[t++] = r, n[t++] = o);
7694
7694
  }
7695
- var V = class {
7695
+ var J = class {
7696
7696
  constructor(n, e, t, r) {
7697
7697
  this.width = n, this.height = e, this.map = t, this.problems = r;
7698
7698
  }
@@ -7758,13 +7758,13 @@ var V = class {
7758
7758
  }
7759
7759
  }
7760
7760
  static get(n) {
7761
- return Br(n) || Fr(n, wd(n));
7761
+ return Br(n) || Fr(n, xd(n));
7762
7762
  }
7763
7763
  };
7764
- function wd(n) {
7764
+ function xd(n) {
7765
7765
  if (n.type.spec.tableRole != "table")
7766
7766
  throw new RangeError("Not a table node: " + n.type.name);
7767
- const e = xd(n), t = n.childCount, r = [];
7767
+ const e = wd(n), t = n.childCount, r = [];
7768
7768
  let o = 0, i = null;
7769
7769
  const l = [];
7770
7770
  for (let c = 0, d = e * t; c < d; c++)
@@ -7777,32 +7777,32 @@ function wd(n) {
7777
7777
  o++;
7778
7778
  if (p == u.childCount)
7779
7779
  break;
7780
- const m = u.child(p), { colspan: y, rowspan: g, colwidth: b } = m.attrs;
7781
- for (let w = 0; w < g; w++) {
7782
- if (w + c >= t) {
7780
+ const m = u.child(p), { colspan: b, rowspan: y, colwidth: g } = m.attrs;
7781
+ for (let k = 0; k < y; k++) {
7782
+ if (k + c >= t) {
7783
7783
  (i || (i = [])).push({
7784
7784
  type: "overlong_rowspan",
7785
7785
  pos: d,
7786
- n: g - w
7786
+ n: y - k
7787
7787
  });
7788
7788
  break;
7789
7789
  }
7790
- const z = o + w * e;
7791
- for (let L = 0; L < y; L++) {
7792
- r[z + L] == 0 ? r[z + L] = d : (i || (i = [])).push({
7790
+ const N = o + k * e;
7791
+ for (let I = 0; I < b; I++) {
7792
+ r[N + I] == 0 ? r[N + I] = d : (i || (i = [])).push({
7793
7793
  type: "collision",
7794
7794
  row: c,
7795
7795
  pos: d,
7796
- n: y - L
7796
+ n: b - I
7797
7797
  });
7798
- const O = b && b[L];
7798
+ const O = g && g[I];
7799
7799
  if (O) {
7800
- const N = (z + L) % e * 2, k = l[N];
7801
- k == null || k != O && l[N + 1] == 1 ? (l[N] = O, l[N + 1] = 1) : k == O && l[N + 1]++;
7800
+ const L = (N + I) % e * 2, S = l[L];
7801
+ S == null || S != O && l[L + 1] == 1 ? (l[L] = O, l[L + 1] = 1) : S == O && l[L + 1]++;
7802
7802
  }
7803
7803
  }
7804
7804
  }
7805
- o += y, d += m.nodeSize;
7805
+ o += b, d += m.nodeSize;
7806
7806
  }
7807
7807
  const f = (c + 1) * e;
7808
7808
  let h = 0;
@@ -7815,13 +7815,13 @@ function wd(n) {
7815
7815
  }), d++;
7816
7816
  }
7817
7817
  (e === 0 || t === 0) && (i || (i = [])).push({ type: "zero_sized" });
7818
- const s = new V(e, t, r, i);
7818
+ const s = new J(e, t, r, i);
7819
7819
  let a = !1;
7820
7820
  for (let c = 0; !a && c < l.length; c += 2)
7821
7821
  l[c] != null && l[c + 1] < t && (a = !0);
7822
7822
  return a && Td(s, l, n), s;
7823
7823
  }
7824
- function xd(n) {
7824
+ function wd(n) {
7825
7825
  let e = -1, t = !1;
7826
7826
  for (let r = 0; r < n.childCount; r++) {
7827
7827
  const o = n.child(r);
@@ -7900,7 +7900,7 @@ function Ed(n) {
7900
7900
  }
7901
7901
  return null;
7902
7902
  }
7903
- function we(n) {
7903
+ function xe(n) {
7904
7904
  const e = n.selection.$head;
7905
7905
  for (let t = e.depth; t > 0; t--)
7906
7906
  if (e.node(t).type.spec.tableRole == "row")
@@ -7940,7 +7940,7 @@ function po(n, e) {
7940
7940
  return n.depth == e.depth && n.pos >= e.start(-1) && n.pos <= e.end(-1);
7941
7941
  }
7942
7942
  function gl(n, e, t) {
7943
- const r = n.node(-1), o = V.get(r), i = n.start(-1), l = o.nextCell(n.pos - i, e, t);
7943
+ const r = n.node(-1), o = J.get(r), i = n.start(-1), l = o.nextCell(n.pos - i, e, t);
7944
7944
  return l == null ? null : n.node(0).resolve(i + l);
7945
7945
  }
7946
7946
  function dt(n, e, t = 1) {
@@ -7969,9 +7969,9 @@ function Nd(n, e, t) {
7969
7969
  return !1;
7970
7970
  return !0;
7971
7971
  }
7972
- var W = class Be extends $ {
7972
+ var W = class Be extends B {
7973
7973
  constructor(e, t = e) {
7974
- const r = e.node(-1), o = V.get(r), i = e.start(-1), l = o.rectBetween(e.pos - i, t.pos - i), s = e.node(0), a = o.cellsInRect(l).filter((d) => d != t.pos - i);
7974
+ const r = e.node(-1), o = J.get(r), i = e.start(-1), l = o.rectBetween(e.pos - i, t.pos - i), s = e.node(0), a = o.cellsInRect(l).filter((d) => d != t.pos - i);
7975
7975
  a.unshift(t.pos - i);
7976
7976
  const c = a.map((d) => {
7977
7977
  const u = r.nodeAt(d);
@@ -7991,7 +7991,7 @@ var W = class Be extends $ {
7991
7991
  return F.between(r, o);
7992
7992
  }
7993
7993
  content() {
7994
- const e = this.$anchorCell.node(-1), t = V.get(e), r = this.$anchorCell.start(-1), o = t.rectBetween(this.$anchorCell.pos - r, this.$headCell.pos - r), i = {}, l = [];
7994
+ const e = this.$anchorCell.node(-1), t = J.get(e), r = this.$anchorCell.start(-1), o = t.rectBetween(this.$anchorCell.pos - r, this.$headCell.pos - r), i = {}, l = [];
7995
7995
  for (let a = o.top; a < o.bottom; a++) {
7996
7996
  const c = [];
7997
7997
  for (let d = a * t.width + o.left, u = o.left; u < o.right; u++, d++) {
@@ -8003,28 +8003,28 @@ var W = class Be extends $ {
8003
8003
  let p = e.nodeAt(f);
8004
8004
  if (!p)
8005
8005
  throw new RangeError(`No cell with offset ${f} found`);
8006
- const m = o.left - h.left, y = h.right - o.right;
8007
- if (m > 0 || y > 0) {
8008
- let g = p.attrs;
8009
- if (m > 0 && (g = dt(g, 0, m)), y > 0 && (g = dt(g, g.colspan - y, y)), h.left < o.left) {
8010
- if (p = p.type.createAndFill(g), !p)
8011
- throw new RangeError(`Could not create cell with attrs ${JSON.stringify(g)}`);
8006
+ const m = o.left - h.left, b = h.right - o.right;
8007
+ if (m > 0 || b > 0) {
8008
+ let y = p.attrs;
8009
+ if (m > 0 && (y = dt(y, 0, m)), b > 0 && (y = dt(y, y.colspan - b, b)), h.left < o.left) {
8010
+ if (p = p.type.createAndFill(y), !p)
8011
+ throw new RangeError(`Could not create cell with attrs ${JSON.stringify(y)}`);
8012
8012
  } else
8013
- p = p.type.create(g, p.content);
8013
+ p = p.type.create(y, p.content);
8014
8014
  }
8015
8015
  if (h.top < o.top || h.bottom > o.bottom) {
8016
- const g = {
8016
+ const y = {
8017
8017
  ...p.attrs,
8018
8018
  rowspan: Math.min(h.bottom, o.bottom) - Math.max(h.top, o.top)
8019
8019
  };
8020
- h.top < o.top ? p = p.type.createAndFill(g) : p = p.type.create(g, p.content);
8020
+ h.top < o.top ? p = p.type.createAndFill(y) : p = p.type.create(y, p.content);
8021
8021
  }
8022
8022
  c.push(p);
8023
8023
  }
8024
- l.push(e.child(a).copy(x.from(c)));
8024
+ l.push(e.child(a).copy(w.from(c)));
8025
8025
  }
8026
8026
  const s = this.isColSelection() && this.isRowSelection() ? e : l;
8027
- return new E(x.from(s), 1, 1);
8027
+ return new E(w.from(s), 1, 1);
8028
8028
  }
8029
8029
  replace(e, t = E.empty) {
8030
8030
  const r = e.steps.length, o = this.ranges;
@@ -8032,14 +8032,14 @@ var W = class Be extends $ {
8032
8032
  const { $from: s, $to: a } = o[l], c = e.mapping.slice(r);
8033
8033
  e.replace(c.map(s.pos), c.map(a.pos), l ? E.empty : t);
8034
8034
  }
8035
- const i = $.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)), -1);
8035
+ const i = B.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)), -1);
8036
8036
  i && e.setSelection(i);
8037
8037
  }
8038
8038
  replaceWith(e, t) {
8039
- this.replace(e, new E(x.from(t), 0, 0));
8039
+ this.replace(e, new E(w.from(t), 0, 0));
8040
8040
  }
8041
8041
  forEachCell(e) {
8042
- const t = this.$anchorCell.node(-1), r = V.get(t), o = this.$anchorCell.start(-1), i = r.cellsInRect(r.rectBetween(this.$anchorCell.pos - o, this.$headCell.pos - o));
8042
+ const t = this.$anchorCell.node(-1), r = J.get(t), o = this.$anchorCell.start(-1), i = r.cellsInRect(r.rectBetween(this.$anchorCell.pos - o, this.$headCell.pos - o));
8043
8043
  for (let l = 0; l < i.length; l++)
8044
8044
  e(t.nodeAt(i[l]), o + i[l]);
8045
8045
  }
@@ -8051,11 +8051,11 @@ var W = class Be extends $ {
8051
8051
  return Math.max(r, o) == this.$headCell.node(-1).childCount;
8052
8052
  }
8053
8053
  static colSelection(e, t = e) {
8054
- const r = e.node(-1), o = V.get(r), i = e.start(-1), l = o.findCell(e.pos - i), s = o.findCell(t.pos - i), a = e.node(0);
8054
+ const r = e.node(-1), o = J.get(r), i = e.start(-1), l = o.findCell(e.pos - i), s = o.findCell(t.pos - i), a = e.node(0);
8055
8055
  return l.top <= s.top ? (l.top > 0 && (e = a.resolve(i + o.map[l.left])), s.bottom < o.height && (t = a.resolve(i + o.map[o.width * (o.height - 1) + s.right - 1]))) : (s.top > 0 && (t = a.resolve(i + o.map[s.left])), l.bottom < o.height && (e = a.resolve(i + o.map[o.width * (o.height - 1) + l.right - 1]))), new Be(e, t);
8056
8056
  }
8057
8057
  isRowSelection() {
8058
- const e = this.$anchorCell.node(-1), t = V.get(e), r = this.$anchorCell.start(-1), o = t.colCount(this.$anchorCell.pos - r), i = t.colCount(this.$headCell.pos - r);
8058
+ const e = this.$anchorCell.node(-1), t = J.get(e), r = this.$anchorCell.start(-1), o = t.colCount(this.$anchorCell.pos - r), i = t.colCount(this.$headCell.pos - r);
8059
8059
  if (Math.min(o, i) > 0)
8060
8060
  return !1;
8061
8061
  const l = o + this.$anchorCell.nodeAfter.attrs.colspan, s = i + this.$headCell.nodeAfter.attrs.colspan;
@@ -8065,7 +8065,7 @@ var W = class Be extends $ {
8065
8065
  return e instanceof Be && e.$anchorCell.pos == this.$anchorCell.pos && e.$headCell.pos == this.$headCell.pos;
8066
8066
  }
8067
8067
  static rowSelection(e, t = e) {
8068
- const r = e.node(-1), o = V.get(r), i = e.start(-1), l = o.findCell(e.pos - i), s = o.findCell(t.pos - i), a = e.node(0);
8068
+ const r = e.node(-1), o = J.get(r), i = e.start(-1), l = o.findCell(e.pos - i), s = o.findCell(t.pos - i), a = e.node(0);
8069
8069
  return l.left <= s.left ? (l.left > 0 && (e = a.resolve(i + o.map[l.top * o.width])), s.right < o.width && (t = a.resolve(i + o.map[o.width * (s.top + 1) - 1]))) : (s.left > 0 && (t = a.resolve(i + o.map[s.top * o.width])), l.right < o.width && (e = a.resolve(i + o.map[o.width * (l.top + 1) - 1]))), new Be(e, t);
8070
8070
  }
8071
8071
  toJSON() {
@@ -8086,7 +8086,7 @@ var W = class Be extends $ {
8086
8086
  }
8087
8087
  };
8088
8088
  W.prototype.visible = !1;
8089
- $.jsonID("cell", W);
8089
+ B.jsonID("cell", W);
8090
8090
  var Od = class bl {
8091
8091
  constructor(e, t) {
8092
8092
  this.anchor = e, this.head = t;
@@ -8096,7 +8096,7 @@ var Od = class bl {
8096
8096
  }
8097
8097
  resolve(e) {
8098
8098
  const t = e.resolve(this.anchor), r = e.resolve(this.head);
8099
- return t.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && t.index() < t.parent.childCount && r.index() < r.parent.childCount && po(t, r) ? new W(t, r) : $.near(r, 1);
8099
+ return t.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && t.index() < t.parent.childCount && r.index() < r.parent.childCount && po(t, r) ? new W(t, r) : B.near(r, 1);
8100
8100
  }
8101
8101
  };
8102
8102
  function Ld(n) {
@@ -8145,7 +8145,7 @@ function Dd(n, e, t) {
8145
8145
  const s = o.resolve(r.from + 1);
8146
8146
  i = W.rowSelection(s, s);
8147
8147
  } else if (!t) {
8148
- const s = V.get(r.node), a = r.from + 1, c = a + s.map[s.width * s.height - 1];
8148
+ const s = J.get(r.node), a = r.from + 1, c = a + s.map[s.width * s.height - 1];
8149
8149
  i = W.create(o, a + 1, c);
8150
8150
  }
8151
8151
  } else
@@ -8174,7 +8174,7 @@ function kl(n, e) {
8174
8174
  return e ? e.doc != n.doc && Cl(e.doc, n.doc, 0, r) : n.doc.descendants(r), t;
8175
8175
  }
8176
8176
  function Pd(n, e, t, r) {
8177
- const o = V.get(e);
8177
+ const o = J.get(e);
8178
8178
  if (!o.problems)
8179
8179
  return r;
8180
8180
  r || (r = n.tr);
@@ -8223,9 +8223,9 @@ function Pd(n, e, t, r) {
8223
8223
  let h = "cell";
8224
8224
  d.firstChild && (h = d.firstChild.type.spec.tableRole);
8225
8225
  const p = [];
8226
- for (let y = 0; y < f; y++) {
8227
- const g = te(n.schema)[h].createAndFill();
8228
- g && p.push(g);
8226
+ for (let b = 0; b < f; b++) {
8227
+ const y = te(n.schema)[h].createAndFill();
8228
+ y && p.push(y);
8229
8229
  }
8230
8230
  const m = (a == 0 || l == a - 1) && s == a ? c + 1 : u - 1;
8231
8231
  r.insert(r.mapping.map(m), p);
@@ -8235,7 +8235,7 @@ function Pd(n, e, t, r) {
8235
8235
  return r.setMeta(zd, { fixTables: !0 });
8236
8236
  }
8237
8237
  function Le(n) {
8238
- const e = n.selection, t = Qn(n), r = t.node(-1), o = t.start(-1), i = V.get(r);
8238
+ const e = n.selection, t = Qn(n), r = t.node(-1), o = t.start(-1), i = J.get(r);
8239
8239
  return {
8240
8240
  ...e instanceof W ? i.rectBetween(e.$anchorCell.pos - o, e.$headCell.pos - o) : i.findCell(t.pos - o),
8241
8241
  tableStart: o,
@@ -8259,7 +8259,7 @@ function Sl(n, { map: e, tableStart: t, table: r }, o) {
8259
8259
  return n;
8260
8260
  }
8261
8261
  function $d(n, e) {
8262
- if (!we(n))
8262
+ if (!xe(n))
8263
8263
  return !1;
8264
8264
  if (e) {
8265
8265
  const t = Le(n);
@@ -8268,7 +8268,7 @@ function $d(n, e) {
8268
8268
  return !0;
8269
8269
  }
8270
8270
  function Bd(n, e) {
8271
- if (!we(n))
8271
+ if (!xe(n))
8272
8272
  return !1;
8273
8273
  if (e) {
8274
8274
  const t = Le(n);
@@ -8290,7 +8290,7 @@ function Fd(n, { map: e, table: t, tableStart: r }, o) {
8290
8290
  }
8291
8291
  }
8292
8292
  function _d(n, e) {
8293
- if (!we(n))
8293
+ if (!xe(n))
8294
8294
  return !1;
8295
8295
  if (e) {
8296
8296
  const t = Le(n), r = n.tr;
@@ -8300,7 +8300,7 @@ function _d(n, e) {
8300
8300
  const i = t.tableStart ? r.doc.nodeAt(t.tableStart - 1) : r.doc;
8301
8301
  if (!i)
8302
8302
  throw new RangeError("No table found");
8303
- t.table = i, t.map = V.get(i);
8303
+ t.table = i, t.map = J.get(i);
8304
8304
  }
8305
8305
  e(r);
8306
8306
  }
@@ -8336,7 +8336,7 @@ function vl(n, { map: e, tableStart: t, table: r }, o) {
8336
8336
  return n.insert(i, te(r.type.schema).row.create(null, l)), n;
8337
8337
  }
8338
8338
  function Ud(n, e) {
8339
- if (!we(n))
8339
+ if (!xe(n))
8340
8340
  return !1;
8341
8341
  if (e) {
8342
8342
  const t = Le(n);
@@ -8345,7 +8345,7 @@ function Ud(n, e) {
8345
8345
  return !0;
8346
8346
  }
8347
8347
  function Kd(n, e) {
8348
- if (!we(n))
8348
+ if (!xe(n))
8349
8349
  return !1;
8350
8350
  if (e) {
8351
8351
  const t = Le(n);
@@ -8380,7 +8380,7 @@ function jd(n, { map: e, table: t, tableStart: r }, o) {
8380
8380
  }
8381
8381
  }
8382
8382
  function Vd(n, e) {
8383
- if (!we(n))
8383
+ if (!xe(n))
8384
8384
  return !1;
8385
8385
  if (e) {
8386
8386
  const t = Le(n), r = n.tr;
@@ -8390,7 +8390,7 @@ function Vd(n, e) {
8390
8390
  const i = t.tableStart ? r.doc.nodeAt(t.tableStart - 1) : r.doc;
8391
8391
  if (!i)
8392
8392
  throw new RangeError("No table found");
8393
- t.table = i, t.map = V.get(t.table);
8393
+ t.table = i, t.map = J.get(t.table);
8394
8394
  }
8395
8395
  e(r);
8396
8396
  }
@@ -8423,7 +8423,7 @@ function ei(n, e) {
8423
8423
  return !1;
8424
8424
  if (e) {
8425
8425
  const i = n.tr, l = {};
8426
- let s = x.empty, a, c;
8426
+ let s = w.empty, a, c;
8427
8427
  for (let d = r.top; d < r.bottom; d++)
8428
8428
  for (let u = r.left; u < r.right; u++) {
8429
8429
  const f = o.map[d * o.width + u], h = r.table.nodeAt(f);
@@ -8489,12 +8489,12 @@ function qd(n) {
8489
8489
  for (let h = d.top; h < d.bottom; h++) {
8490
8490
  let p = d.map.positionAt(h, d.left, d.table);
8491
8491
  h == d.top && (p += o.nodeSize);
8492
- for (let m = d.left, y = 0; m < d.right; m++, y++)
8492
+ for (let m = d.left, b = 0; m < d.right; m++, b++)
8493
8493
  m == d.left && h == d.top || u.insert(f = u.mapping.map(p + d.tableStart, 1), n({
8494
8494
  node: o,
8495
8495
  row: h,
8496
8496
  col: m
8497
- }).createAndFill(a[y]));
8497
+ }).createAndFill(a[b]));
8498
8498
  }
8499
8499
  u.setNodeMarkup(i, n({
8500
8500
  node: o,
@@ -8507,7 +8507,7 @@ function qd(n) {
8507
8507
  }
8508
8508
  function Gd(n, e) {
8509
8509
  return function(t, r) {
8510
- if (!we(t))
8510
+ if (!xe(t))
8511
8511
  return !1;
8512
8512
  const o = Qn(t);
8513
8513
  if (o.nodeAfter.attrs[n] === e)
@@ -8529,7 +8529,7 @@ function Gd(n, e) {
8529
8529
  }
8530
8530
  function Xd(n) {
8531
8531
  return function(e, t) {
8532
- if (!we(e))
8532
+ if (!xe(e))
8533
8533
  return !1;
8534
8534
  if (t) {
8535
8535
  const r = te(e.schema), o = Le(e), i = e.tr, l = o.map.cellsInRect(n == "column" ? {
@@ -8569,7 +8569,7 @@ function ni(n, e, t) {
8569
8569
  }
8570
8570
  function Kt(n, e) {
8571
8571
  return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? Xd(n) : function(t, r) {
8572
- if (!we(t))
8572
+ if (!xe(t))
8573
8573
  return !1;
8574
8574
  if (r) {
8575
8575
  const o = te(t.schema), i = Le(t), l = t.tr, s = ni("row", i, o), a = ni("column", i, o), c = (n === "column" ? s : n === "row" && a) ? 1 : 0, d = n == "column" ? {
@@ -8620,7 +8620,7 @@ function Yd(n, e) {
8620
8620
  }
8621
8621
  function ri(n) {
8622
8622
  return function(e, t) {
8623
- if (!we(e))
8623
+ if (!xe(e))
8624
8624
  return !1;
8625
8625
  const r = Yd(Qn(e), n);
8626
8626
  if (r == null)
@@ -8684,11 +8684,11 @@ function tu(n, e) {
8684
8684
  for (let o = 0; o < t.length; o++)
8685
8685
  r = Math.max(r, t[o]);
8686
8686
  for (let o = 0; o < t.length; o++)
8687
- if (o >= e.length && e.push(x.empty), t[o] < r) {
8687
+ if (o >= e.length && e.push(w.empty), t[o] < r) {
8688
8688
  const i = te(n).cell.createAndFill(), l = [];
8689
8689
  for (let s = t[o]; s < r; s++)
8690
8690
  l.push(i);
8691
- e[o] = e[o].append(x.from(l));
8691
+ e[o] = e[o].append(w.from(l));
8692
8692
  }
8693
8693
  return {
8694
8694
  height: e.length,
@@ -8711,7 +8711,7 @@ function nu({ width: n, height: e, rows: t }, r, o) {
8711
8711
  for (let h = 1; h < f.attrs.rowspan; h++)
8712
8712
  i[s + h] = (i[s + h] || 0) + f.attrs.colspan;
8713
8713
  }
8714
- l.push(x.from(c));
8714
+ l.push(w.from(c));
8715
8715
  }
8716
8716
  t = l, n = r;
8717
8717
  }
@@ -8726,7 +8726,7 @@ function nu({ width: n, height: e, rows: t }, r, o) {
8726
8726
  rowspan: Math.max(1, o - u.attrs.rowspan)
8727
8727
  }, u.content)), a.push(u);
8728
8728
  }
8729
- i.push(x.from(a));
8729
+ i.push(w.from(a));
8730
8730
  }
8731
8731
  t = i, e = o;
8732
8732
  }
@@ -8746,17 +8746,17 @@ function ru(n, e, t, r, o, i, l) {
8746
8746
  const p = [];
8747
8747
  let m;
8748
8748
  h.lastChild == null || h.lastChild.type == a.cell ? m = c || (c = a.cell.createAndFill()) : m = d || (d = a.header_cell.createAndFill());
8749
- for (let y = e.width; y < o; y++)
8749
+ for (let b = e.width; b < o; b++)
8750
8750
  p.push(m);
8751
8751
  n.insert(n.mapping.slice(l).map(f - 1 + r), p);
8752
8752
  }
8753
8753
  if (i > e.height) {
8754
8754
  const u = [];
8755
8755
  for (let p = 0, m = (e.height - 1) * e.width; p < Math.max(e.width, o); p++) {
8756
- const y = p >= e.width ? !1 : t.nodeAt(e.map[m + p]).type == a.header_cell;
8757
- u.push(y ? d || (d = a.header_cell.createAndFill()) : c || (c = a.cell.createAndFill()));
8756
+ const b = p >= e.width ? !1 : t.nodeAt(e.map[m + p]).type == a.header_cell;
8757
+ u.push(b ? d || (d = a.header_cell.createAndFill()) : c || (c = a.cell.createAndFill()));
8758
8758
  }
8759
- const f = a.row.create(null, x.from(u)), h = [];
8759
+ const f = a.row.create(null, w.from(u)), h = [];
8760
8760
  for (let p = e.height; p < i; p++)
8761
8761
  h.push(f);
8762
8762
  n.insert(n.mapping.slice(l).map(r + t.nodeSize - 2), h);
@@ -8801,18 +8801,18 @@ function li(n, e, t, r, o) {
8801
8801
  let i = t ? n.doc.nodeAt(t - 1) : n.doc;
8802
8802
  if (!i)
8803
8803
  throw new Error("No table found");
8804
- let l = V.get(i);
8804
+ let l = J.get(i);
8805
8805
  const { top: s, left: a } = r, c = a + o.width, d = s + o.height, u = n.tr;
8806
8806
  let f = 0;
8807
8807
  function h() {
8808
8808
  if (i = t ? u.doc.nodeAt(t - 1) : u.doc, !i)
8809
8809
  throw new Error("No table found");
8810
- l = V.get(i), f = u.mapping.maps.length;
8810
+ l = J.get(i), f = u.mapping.maps.length;
8811
8811
  }
8812
8812
  ru(u, l, i, t, c, d, f) && h(), oi(u, l, i, t, a, c, s, f) && h(), oi(u, l, i, t, a, c, d, f) && h(), ii(u, l, i, t, s, d, a, f) && h(), ii(u, l, i, t, s, d, c, f) && h();
8813
8813
  for (let p = s; p < d; p++) {
8814
- const m = l.positionAt(p, a, i), y = l.positionAt(p, c, i);
8815
- u.replace(u.mapping.slice(f).map(m + t), u.mapping.slice(f).map(y + t), new E(o.rows[p - s], 0, 0));
8814
+ const m = l.positionAt(p, a, i), b = l.positionAt(p, c, i);
8815
+ u.replace(u.mapping.slice(f).map(m + t), u.mapping.slice(f).map(b + t), new E(o.rows[p - s], 0, 0));
8816
8816
  }
8817
8817
  h(), u.setSelection(new W(u.doc.resolve(t + l.positionAt(s, a, i)), u.doc.resolve(t + l.positionAt(d - 1, c - 1, i)))), e(u);
8818
8818
  }
@@ -8839,18 +8839,18 @@ function en(n, e) {
8839
8839
  return !1;
8840
8840
  const i = t.selection;
8841
8841
  if (i instanceof W)
8842
- return sn(t, r, $.near(i.$headCell, e));
8842
+ return sn(t, r, B.near(i.$headCell, e));
8843
8843
  if (n != "horiz" && !i.empty)
8844
8844
  return !1;
8845
- const l = wl(o, n, e);
8845
+ const l = xl(o, n, e);
8846
8846
  if (l == null)
8847
8847
  return !1;
8848
8848
  if (n == "horiz")
8849
- return sn(t, r, $.near(t.doc.resolve(i.head + e), e));
8849
+ return sn(t, r, B.near(t.doc.resolve(i.head + e), e));
8850
8850
  {
8851
8851
  const s = t.doc.resolve(l), a = gl(s, n, e);
8852
8852
  let c;
8853
- return a ? c = $.near(a, 1) : e < 0 ? c = $.near(t.doc.resolve(s.before(-1)), -1) : c = $.near(t.doc.resolve(s.after(-1)), 1), sn(t, r, c);
8853
+ return a ? c = B.near(a, 1) : e < 0 ? c = B.near(t.doc.resolve(s.before(-1)), -1) : c = B.near(t.doc.resolve(s.after(-1)), 1), sn(t, r, c);
8854
8854
  }
8855
8855
  };
8856
8856
  }
@@ -8863,7 +8863,7 @@ function tn(n, e) {
8863
8863
  if (i instanceof W)
8864
8864
  l = i;
8865
8865
  else {
8866
- const a = wl(o, n, e);
8866
+ const a = xl(o, n, e);
8867
8867
  if (a == null)
8868
8868
  return !1;
8869
8869
  l = new W(t.doc.resolve(a));
@@ -8877,7 +8877,7 @@ function iu(n, e) {
8877
8877
  return r ? (n.dispatch(n.state.tr.setSelection(new W(r))), !0) : !1;
8878
8878
  }
8879
8879
  function lu(n, e, t) {
8880
- if (!we(n.state))
8880
+ if (!xe(n.state))
8881
8881
  return !1;
8882
8882
  let r = eu(t);
8883
8883
  const o = n.state.selection;
@@ -8885,13 +8885,13 @@ function lu(n, e, t) {
8885
8885
  r || (r = {
8886
8886
  width: 1,
8887
8887
  height: 1,
8888
- rows: [x.from(Wr(te(n.state.schema).cell, t))]
8888
+ rows: [w.from(Wr(te(n.state.schema).cell, t))]
8889
8889
  });
8890
- const i = o.$anchorCell.node(-1), l = o.$anchorCell.start(-1), s = V.get(i).rectBetween(o.$anchorCell.pos - l, o.$headCell.pos - l);
8890
+ const i = o.$anchorCell.node(-1), l = o.$anchorCell.start(-1), s = J.get(i).rectBetween(o.$anchorCell.pos - l, o.$headCell.pos - l);
8891
8891
  return r = nu(r, s.right - s.left, s.bottom - s.top), li(n.state, n.dispatch, l, s, r), !0;
8892
8892
  } else if (r) {
8893
8893
  const i = Qn(n.state), l = i.start(-1);
8894
- return li(n.state, n.dispatch, l, V.get(i.node(-1)).findCell(i.pos - l), r), !0;
8894
+ return li(n.state, n.dispatch, l, J.get(i.node(-1)).findCell(i.pos - l), r), !0;
8895
8895
  } else
8896
8896
  return !1;
8897
8897
  }
@@ -8935,7 +8935,7 @@ function su(n, e) {
8935
8935
  }
8936
8936
  n.root.addEventListener("mouseup", l), n.root.addEventListener("dragstart", l), n.root.addEventListener("mousemove", s);
8937
8937
  }
8938
- function wl(n, e, t) {
8938
+ function xl(n, e, t) {
8939
8939
  if (!(n.state.selection instanceof F))
8940
8940
  return null;
8941
8941
  const { $head: r } = n.state.selection;
@@ -8984,12 +8984,12 @@ function Ur(n, e, t, r, o, i) {
8984
8984
  for (let u = 0, f = 0; u < c.childCount; u++) {
8985
8985
  const { colspan: h, colwidth: p } = c.child(u).attrs;
8986
8986
  for (let m = 0; m < h; m++, f++) {
8987
- const y = o == f ? i : p && p[m], g = y ? y + "px" : "";
8988
- if (l += y || r, y || (s = !1), a)
8989
- a.style.width != g && (a.style.width = g), a = a.nextSibling;
8987
+ const b = o == f ? i : p && p[m], y = b ? b + "px" : "";
8988
+ if (l += b || r, b || (s = !1), a)
8989
+ a.style.width != y && (a.style.width = y), a = a.nextSibling;
8990
8990
  else {
8991
- const b = document.createElement("col");
8992
- b.style.width = g, e.appendChild(b);
8991
+ const g = document.createElement("col");
8992
+ g.style.width = y, e.appendChild(g);
8993
8993
  }
8994
8994
  }
8995
8995
  }
@@ -9003,7 +9003,7 @@ function Ur(n, e, t, r, o, i) {
9003
9003
  }
9004
9004
  const he = new ut("tableColumnResizing");
9005
9005
  function cu({ handleWidth: n = 5, cellMinWidth: e = 25, defaultCellMinWidth: t = 100, View: r = au, lastColumnResizable: o = !0 } = {}) {
9006
- const i = new xt({
9006
+ const i = new wt({
9007
9007
  key: he,
9008
9008
  state: {
9009
9009
  init(l, s) {
@@ -9071,11 +9071,11 @@ function uu(n, e, t, r) {
9071
9071
  }
9072
9072
  if (l != o.activeHandle) {
9073
9073
  if (!r && l !== -1) {
9074
- const s = n.state.doc.resolve(l), a = s.node(-1), c = V.get(a), d = s.start(-1);
9074
+ const s = n.state.doc.resolve(l), a = s.node(-1), c = J.get(a), d = s.start(-1);
9075
9075
  if (c.colCount(s.pos - d) + s.nodeAfter.attrs.colspan - 1 == c.width - 1)
9076
9076
  return;
9077
9077
  }
9078
- xl(n, l);
9078
+ wl(n, l);
9079
9079
  }
9080
9080
  }
9081
9081
  }
@@ -9083,7 +9083,7 @@ function fu(n) {
9083
9083
  if (!n.editable)
9084
9084
  return;
9085
9085
  const e = he.getState(n.state);
9086
- e && e.activeHandle > -1 && !e.dragging && xl(n, -1);
9086
+ e && e.activeHandle > -1 && !e.dragging && wl(n, -1);
9087
9087
  }
9088
9088
  function hu(n, e, t, r) {
9089
9089
  var o;
@@ -9141,18 +9141,18 @@ function ai(n, e, t, r) {
9141
9141
  return -1;
9142
9142
  if (t == "right")
9143
9143
  return s.pos;
9144
- const a = V.get(s.node(-1)), c = s.start(-1), d = a.map.indexOf(s.pos - c);
9144
+ const a = J.get(s.node(-1)), c = s.start(-1), d = a.map.indexOf(s.pos - c);
9145
9145
  return d % a.width == 0 ? -1 : c + a.map[d - 1];
9146
9146
  }
9147
9147
  function ci(n, e, t) {
9148
9148
  const r = e.clientX - n.startX;
9149
9149
  return Math.max(t, n.startWidth + r);
9150
9150
  }
9151
- function xl(n, e) {
9151
+ function wl(n, e) {
9152
9152
  n.dispatch(n.state.tr.setMeta(he, { setHandle: e }));
9153
9153
  }
9154
9154
  function gu(n, e, t) {
9155
- const r = n.state.doc.resolve(e), o = r.node(-1), i = V.get(o), l = r.start(-1), s = i.colCount(r.pos - l) + r.nodeAfter.attrs.colspan - 1, a = n.state.tr;
9155
+ const r = n.state.doc.resolve(e), o = r.node(-1), i = J.get(o), l = r.start(-1), s = i.colCount(r.pos - l) + r.nodeAfter.attrs.colspan - 1, a = n.state.tr;
9156
9156
  for (let c = 0; c < i.height; c++) {
9157
9157
  const d = c * i.width + s;
9158
9158
  if (c && i.map[d] == i.map[d - i.width])
@@ -9169,7 +9169,7 @@ function gu(n, e, t) {
9169
9169
  a.docChanged && n.dispatch(a);
9170
9170
  }
9171
9171
  function di(n, e, t, r) {
9172
- const o = n.state.doc.resolve(e), i = o.node(-1), l = o.start(-1), s = V.get(i).colCount(o.pos - l) + o.nodeAfter.attrs.colspan - 1;
9172
+ const o = n.state.doc.resolve(e), i = o.node(-1), l = o.start(-1), s = J.get(i).colCount(o.pos - l) + o.nodeAfter.attrs.colspan - 1;
9173
9173
  let a = n.domAtPos(o.start(-1)).node;
9174
9174
  for (; a && a.nodeName != "TABLE"; )
9175
9175
  a = a.parentNode;
@@ -9182,7 +9182,7 @@ function bu(n, e) {
9182
9182
  const t = [], r = n.doc.resolve(e), o = r.node(-1);
9183
9183
  if (!o)
9184
9184
  return K.empty;
9185
- const i = V.get(o), l = r.start(-1), s = i.colCount(r.pos - l) + r.nodeAfter.attrs.colspan - 1;
9185
+ const i = J.get(o), l = r.start(-1), s = i.colCount(r.pos - l) + r.nodeAfter.attrs.colspan - 1;
9186
9186
  for (let c = 0; c < i.height; c++) {
9187
9187
  const d = s + c * i.width;
9188
9188
  if ((s == i.width - 1 || i.map[d] != i.map[d + 1]) && (c == 0 || i.map[d] != i.map[d - i.width])) {
@@ -9194,7 +9194,7 @@ function bu(n, e) {
9194
9194
  return K.create(n.doc, t);
9195
9195
  }
9196
9196
  function Cu({ allowTableNodeSelection: n = !1 } = {}) {
9197
- return new xt({
9197
+ return new wt({
9198
9198
  key: Ve,
9199
9199
  state: {
9200
9200
  init() {
@@ -9236,16 +9236,16 @@ function ui(n, e, t, r, o, i) {
9236
9236
  for (let u = 0, f = 0; u < d.childCount; u += 1) {
9237
9237
  const { colspan: h, colwidth: p } = d.child(u).attrs;
9238
9238
  for (let m = 0; m < h; m += 1, f += 1) {
9239
- const y = o === f ? i : p && p[m], g = y ? `${y}px` : "";
9240
- if (s += y || r, y || (a = !1), c) {
9241
- if (c.style.width !== g) {
9242
- const [b, w] = Kr(r, y);
9243
- c.style.setProperty(b, w);
9239
+ const b = o === f ? i : p && p[m], y = b ? `${b}px` : "";
9240
+ if (s += b || r, b || (a = !1), c) {
9241
+ if (c.style.width !== y) {
9242
+ const [g, k] = Kr(r, b);
9243
+ c.style.setProperty(g, k);
9244
9244
  }
9245
9245
  c = c.nextSibling;
9246
9246
  } else {
9247
- const b = document.createElement("col"), [w, z] = Kr(r, y);
9248
- b.style.setProperty(w, z), e.appendChild(b);
9247
+ const g = document.createElement("col"), [k, N] = Kr(r, b);
9248
+ g.style.setProperty(k, N), e.appendChild(g);
9249
9249
  }
9250
9250
  }
9251
9251
  }
@@ -9274,12 +9274,12 @@ function Su(n, e, t, r) {
9274
9274
  for (let u = 0, f = 0; u < s.childCount; u += 1) {
9275
9275
  const { colspan: h, colwidth: p } = s.child(u).attrs;
9276
9276
  for (let m = 0; m < h; m += 1, f += 1) {
9277
- const y = t === f ? r : p && p[m];
9278
- o += y || e, y || (i = !1);
9279
- const [g, b] = Kr(e, y);
9277
+ const b = t === f ? r : p && p[m];
9278
+ o += b || e, b || (i = !1);
9279
+ const [y, g] = Kr(e, b);
9280
9280
  l.push([
9281
9281
  "col",
9282
- { style: `${g}: ${b}` }
9282
+ { style: `${y}: ${g}` }
9283
9283
  ]);
9284
9284
  }
9285
9285
  }
@@ -9298,7 +9298,7 @@ function vu(n) {
9298
9298
  r.spec.tableRole && (e[r.spec.tableRole] = r);
9299
9299
  }), n.cached.tableNodeTypes = e, e;
9300
9300
  }
9301
- function wu(n, e, t, r, o) {
9301
+ function xu(n, e, t, r, o) {
9302
9302
  const i = vu(n), l = [], s = [];
9303
9303
  for (let c = 0; c < t; c += 1) {
9304
9304
  const d = fi(i.cell, o);
@@ -9312,12 +9312,12 @@ function wu(n, e, t, r, o) {
9312
9312
  a.push(i.row.createChecked(null, r && c === 0 ? l : s));
9313
9313
  return i.table.createChecked(null, a);
9314
9314
  }
9315
- function xu(n) {
9315
+ function wu(n) {
9316
9316
  return n instanceof W;
9317
9317
  }
9318
9318
  const nn = ({ editor: n }) => {
9319
9319
  const { selection: e } = n.state;
9320
- if (!xu(e))
9320
+ if (!wu(e))
9321
9321
  return !1;
9322
9322
  let t = 0;
9323
9323
  const r = $l(e.ranges[0].$from, (i) => i.type.name === "table");
@@ -9363,7 +9363,7 @@ const nn = ({ editor: n }) => {
9363
9363
  addCommands() {
9364
9364
  return {
9365
9365
  insertTable: ({ rows: n = 3, cols: e = 3, withHeaderRow: t = !0 } = {}) => ({ tr: r, dispatch: o, editor: i }) => {
9366
- const l = wu(i.schema, n, e, t);
9366
+ const l = xu(i.schema, n, e, t);
9367
9367
  if (o) {
9368
9368
  const s = r.selection.from + 1;
9369
9369
  r.replaceSelectionWith(l).scrollIntoView().setSelection(F.near(r.doc.resolve(s)));
@@ -9712,7 +9712,7 @@ const nn = ({ editor: n }) => {
9712
9712
  }
9713
9713
  return ["span", ee(this.options.HTMLAttributes, n), 0];
9714
9714
  }
9715
- }), Pu = zu, $u = wt.create({
9715
+ }), Pu = zu, $u = xt.create({
9716
9716
  name: "LineSpacing",
9717
9717
  addOptions() {
9718
9718
  return {
@@ -9846,7 +9846,7 @@ const Vu = (n, e, t, { state: r, dispatch: o }) => {
9846
9846
  }
9847
9847
  r(t);
9848
9848
  }
9849
- }, Gu = new ut("searchAndReplacePlugin"), Xu = wt.create({
9849
+ }, Gu = new ut("searchAndReplacePlugin"), Xu = xt.create({
9850
9850
  name: "searchAndReplace",
9851
9851
  addOptions() {
9852
9852
  return {
@@ -9888,7 +9888,7 @@ const Vu = (n, e, t, { state: r, dispatch: o }) => {
9888
9888
  addProseMirrorPlugins() {
9889
9889
  const n = this.editor, { searchResultClass: e, currentSearchClass: t, disableRegex: r, caseSensitive: o } = this.options, i = (s) => n.storage.searchAndReplace.lastSearchTerm = s, l = (s) => n.storage.searchAndReplace.lastIndex = s;
9890
9890
  return [
9891
- new xt({
9891
+ new wt({
9892
9892
  key: Gu,
9893
9893
  state: {
9894
9894
  init: () => K.empty,
@@ -9905,12 +9905,12 @@ const Vu = (n, e, t, { state: r, dispatch: o }) => {
9905
9905
  return n.storage.searchAndReplace.total = 0, K.empty;
9906
9906
  const m = Uu(s, Ku(d, r, o));
9907
9907
  n.storage.searchAndReplace.total = m.length, n.storage.searchAndReplace.canPrev = !1, n.storage.searchAndReplace.canNext = m.length > 0, n.storage.searchAndReplace.results = m;
9908
- const y = [], g = [e, t];
9909
- for (let b = 0; b < m.length; b += 1) {
9910
- const w = m[b], z = b === 0 ? g.join(" ") : g[0];
9911
- y.push(ue.inline(w.from, w.to, { class: z }));
9908
+ const b = [], y = [e, t];
9909
+ for (let g = 0; g < m.length; g += 1) {
9910
+ const k = m[g], N = g === 0 ? y.join(" ") : y[0];
9911
+ b.push(ue.inline(k.from, k.to, { class: N }));
9912
9912
  }
9913
- return K.create(s, y);
9913
+ return K.create(s, b);
9914
9914
  }
9915
9915
  },
9916
9916
  props: {
@@ -9948,38 +9948,38 @@ const Vu = (n, e, t, { state: r, dispatch: o }) => {
9948
9948
  Ac,
9949
9949
  Ec,
9950
9950
  vc,
9951
- xc,
9951
+ wc,
9952
9952
  Ru,
9953
9953
  Mu
9954
9954
  ];
9955
9955
  /*! Element Plus Icons Vue v2.3.2 */
9956
- var Zu = /* @__PURE__ */ G({
9956
+ var Zu = /* @__PURE__ */ X({
9957
9957
  name: "Link",
9958
9958
  __name: "link",
9959
9959
  setup(n) {
9960
- return (e, t) => (R(), D("svg", {
9960
+ return (e, t) => (R(), z("svg", {
9961
9961
  xmlns: "http://www.w3.org/2000/svg",
9962
9962
  viewBox: "0 0 1024 1024"
9963
9963
  }, [
9964
- v("path", {
9964
+ x("path", {
9965
9965
  fill: "currentColor",
9966
9966
  d: "M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"
9967
9967
  })
9968
9968
  ]));
9969
9969
  }
9970
- }), ef = Zu, tf = /* @__PURE__ */ G({
9970
+ }), ef = Zu, tf = /* @__PURE__ */ X({
9971
9971
  name: "Picture",
9972
9972
  __name: "picture",
9973
9973
  setup(n) {
9974
- return (e, t) => (R(), D("svg", {
9974
+ return (e, t) => (R(), z("svg", {
9975
9975
  xmlns: "http://www.w3.org/2000/svg",
9976
9976
  viewBox: "0 0 1024 1024"
9977
9977
  }, [
9978
- v("path", {
9978
+ x("path", {
9979
9979
  fill: "currentColor",
9980
9980
  d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
9981
9981
  }),
9982
- v("path", {
9982
+ x("path", {
9983
9983
  fill: "currentColor",
9984
9984
  d: "M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"
9985
9985
  })
@@ -9989,7 +9989,7 @@ var Zu = /* @__PURE__ */ G({
9989
9989
  const rf = { class: "catalogue-container" }, of = { class: "catalogue-header" }, lf = { class: "catalogue-content" }, sf = {
9990
9990
  key: 0,
9991
9991
  class: "empty-hint"
9992
- }, af = ["onClick"], cf = /* @__PURE__ */ G({
9992
+ }, af = ["onClick"], cf = /* @__PURE__ */ X({
9993
9993
  __name: "CatalogueList",
9994
9994
  props: {
9995
9995
  editor: {},
@@ -9998,7 +9998,7 @@ const rf = { class: "catalogue-container" }, of = { class: "catalogue-header" },
9998
9998
  },
9999
9999
  emits: ["update:isCatalogCollapse", "locateHeading"],
10000
10000
  setup(n, { emit: e }) {
10001
- const t = n, r = e, o = B([]);
10001
+ const t = n, r = e, o = $([]);
10002
10002
  jn(() => {
10003
10003
  i();
10004
10004
  }), Xe(
@@ -10026,18 +10026,18 @@ const rf = { class: "catalogue-container" }, of = { class: "catalogue-header" },
10026
10026
  function l(s, a) {
10027
10027
  r("locateHeading", { ...s, index: a });
10028
10028
  }
10029
- return (s, a) => (R(), D(ie, null, [
10030
- yr(v("div", rf, [
10031
- v("div", of, [
10032
- a[2] || (a[2] = v("span", { class: "title" }, "目录", -1)),
10033
- v("i", {
10029
+ return (s, a) => (R(), z(ie, null, [
10030
+ yr(x("div", rf, [
10031
+ x("div", of, [
10032
+ a[2] || (a[2] = x("span", { class: "title" }, "目录", -1)),
10033
+ x("i", {
10034
10034
  class: "ri-close-line close-icon",
10035
10035
  onClick: a[0] || (a[0] = (c) => r("update:isCatalogCollapse", !1))
10036
10036
  })
10037
10037
  ]),
10038
- v("div", lf, [
10039
- o.value.length === 0 ? (R(), D("div", sf, " 暂无目录 ")) : Re("", !0),
10040
- (R(!0), D(ie, null, Ce(o.value, (c, d) => (R(), D("div", {
10038
+ x("div", lf, [
10039
+ o.value.length === 0 ? (R(), z("div", sf, " 暂无目录 ")) : Re("", !0),
10040
+ (R(!0), z(ie, null, Ce(o.value, (c, d) => (R(), z("div", {
10041
10041
  key: d,
10042
10042
  class: st(["catalogue-item", [`level-${c.level}`]]),
10043
10043
  onClick: (u) => l(c, d)
@@ -10046,11 +10046,11 @@ const rf = { class: "catalogue-container" }, of = { class: "catalogue-header" },
10046
10046
  ], 512), [
10047
10047
  [yo, n.isCatalogCollapse]
10048
10048
  ]),
10049
- yr(v("div", {
10049
+ yr(x("div", {
10050
10050
  class: "catalogue-toggle",
10051
10051
  onClick: a[1] || (a[1] = (c) => r("update:isCatalogCollapse", !0))
10052
10052
  }, [...a[3] || (a[3] = [
10053
- v("i", { class: "ri-menu-line" }, null, -1)
10053
+ x("i", { class: "ri-menu-line" }, null, -1)
10054
10054
  ])], 512), [
10055
10055
  [yo, !n.isCatalogCollapse]
10056
10056
  ])
@@ -10060,7 +10060,7 @@ const rf = { class: "catalogue-container" }, of = { class: "catalogue-header" },
10060
10060
  const df = /* @__PURE__ */ Se(cf, [["__scopeId", "data-v-e8b5969a"]]), uf = { class: "footer-toolbar" }, ff = { class: "left-section" }, hf = {
10061
10061
  key: 0,
10062
10062
  class: "word-count"
10063
- }, pf = { class: "right-section" }, mf = { class: "zoom-text" }, gf = /* @__PURE__ */ G({
10063
+ }, pf = { class: "right-section" }, mf = { class: "zoom-text" }, gf = /* @__PURE__ */ X({
10064
10064
  __name: "FooterToolbar",
10065
10065
  props: {
10066
10066
  editor: {},
@@ -10069,7 +10069,7 @@ const df = /* @__PURE__ */ Se(cf, [["__scopeId", "data-v-e8b5969a"]]), uf = { cl
10069
10069
  },
10070
10070
  emits: ["update:scaleRatio"],
10071
10071
  setup(n, { emit: e }) {
10072
- const t = n, r = e, o = B(100);
10072
+ const t = n, r = e, o = $(100);
10073
10073
  Xe(
10074
10074
  () => t.scaleRatio,
10075
10075
  (s) => {
@@ -10085,13 +10085,13 @@ const df = /* @__PURE__ */ Se(cf, [["__scopeId", "data-v-e8b5969a"]]), uf = { cl
10085
10085
  r("update:scaleRatio", s / 100);
10086
10086
  }
10087
10087
  return (s, a) => {
10088
- const c = H("el-slider");
10089
- return R(), D("div", uf, [
10090
- v("div", ff, [
10091
- i.value ? (R(), D("span", hf, " 字数: " + se(i.value), 1)) : Re("", !0)
10088
+ const c = D("el-slider");
10089
+ return R(), z("div", uf, [
10090
+ x("div", ff, [
10091
+ i.value ? (R(), z("span", hf, " 字数: " + se(i.value), 1)) : Re("", !0)
10092
10092
  ]),
10093
- v("div", pf, [
10094
- S(c, {
10093
+ x("div", pf, [
10094
+ v(c, {
10095
10095
  modelValue: o.value,
10096
10096
  "onUpdate:modelValue": a[0] || (a[0] = (d) => o.value = d),
10097
10097
  min: 50,
@@ -10101,16 +10101,16 @@ const df = /* @__PURE__ */ Se(cf, [["__scopeId", "data-v-e8b5969a"]]), uf = { cl
10101
10101
  style: { width: "120px" },
10102
10102
  onChange: l
10103
10103
  }, null, 8, ["modelValue"]),
10104
- v("span", mf, se(o.value) + "%", 1)
10104
+ x("span", mf, se(o.value) + "%", 1)
10105
10105
  ])
10106
10106
  ]);
10107
10107
  };
10108
10108
  }
10109
10109
  });
10110
- const yf = /* @__PURE__ */ Se(gf, [["__scopeId", "data-v-7c7b1a7b"]]), bf = { class: "editor-page-main" }, Cf = { class: "editor-header" }, kf = { class: "editor-body" }, Sf = {
10110
+ const yf = /* @__PURE__ */ Se(gf, [["__scopeId", "data-v-7c7b1a7b"]]), bf = { class: "editor-header" }, Cf = { class: "editor-page-main" }, kf = { class: "editor-body" }, Sf = {
10111
10111
  id: "editor",
10112
10112
  class: "editor-area-container"
10113
- }, vf = /* @__PURE__ */ G({
10113
+ }, vf = /* @__PURE__ */ X({
10114
10114
  __name: "WordEditor",
10115
10115
  props: {
10116
10116
  content: {},
@@ -10118,23 +10118,23 @@ const yf = /* @__PURE__ */ Se(gf, [["__scopeId", "data-v-7c7b1a7b"]]), bf = { cl
10118
10118
  },
10119
10119
  emits: ["save", "update", "change"],
10120
10120
  setup(n, { expose: e, emit: t }) {
10121
- const r = n, o = t, i = B(null), l = B(null), s = B(!0), a = B(), c = B(!1), d = B(r.editable), u = B(!0);
10121
+ const r = n, o = t, i = $(null), l = $(null), s = $(!0), a = $(), c = $(!1), d = $(r.editable), u = $(!0);
10122
10122
  jn(async () => {
10123
10123
  c.value = !0, p(), c.value = !1, El(() => {
10124
10124
  l.value && (l.value.scrollTop = 0);
10125
10125
  }), window.addEventListener("beforeunload", f);
10126
10126
  });
10127
- function f(k) {
10127
+ function f(S) {
10128
10128
  if (!u.value)
10129
- return k.preventDefault(), k.returnValue = "数据暂未保存,是否要离开该页面", "数据暂未保存,是否要离开该页面";
10129
+ return S.preventDefault(), S.returnValue = "数据暂未保存,是否要离开该页面", "数据暂未保存,是否要离开该页面";
10130
10130
  }
10131
10131
  jr(() => {
10132
- var k;
10133
- window.removeEventListener("beforeunload", f), (k = a.value) == null || k.destroy(), a.value = void 0, window.removeEventListener("resize", m);
10132
+ var S;
10133
+ window.removeEventListener("beforeunload", f), (S = a.value) == null || S.destroy(), a.value = void 0, window.removeEventListener("resize", m);
10134
10134
  });
10135
10135
  let h = !1;
10136
10136
  function p() {
10137
- const k = [
10137
+ const S = [
10138
10138
  Wl.configure({
10139
10139
  paragraph: !1
10140
10140
  }),
@@ -10148,43 +10148,43 @@ const yf = /* @__PURE__ */ Se(gf, [["__scopeId", "data-v-7c7b1a7b"]]), bf = { cl
10148
10148
  },
10149
10149
  onUpdate: () => {
10150
10150
  var A;
10151
- L(), o("update", ((A = a.value) == null ? void 0 : A.getHTML()) || "");
10151
+ I(), o("update", ((A = a.value) == null ? void 0 : A.getHTML()) || "");
10152
10152
  },
10153
10153
  onSelectionUpdate: (A) => {
10154
10154
  h && A.transaction.docChanged && (u.value = !1, o("change", !1));
10155
10155
  },
10156
- extensions: k
10156
+ extensions: S
10157
10157
  }), window.addEventListener("resize", m);
10158
10158
  }
10159
10159
  Xe(
10160
10160
  () => r.editable,
10161
- (k) => {
10161
+ (S) => {
10162
10162
  var A;
10163
- d.value = k, (A = a.value) == null || A.setEditable(k);
10163
+ d.value = S, (A = a.value) == null || A.setEditable(S);
10164
10164
  }
10165
10165
  ), Xe(
10166
10166
  () => r.content,
10167
- (k) => {
10168
- a.value && k !== a.value.getHTML() && a.value.commands.setContent(k);
10167
+ (S) => {
10168
+ a.value && S !== a.value.getHTML() && a.value.commands.setContent(S);
10169
10169
  }
10170
10170
  ), Xe([() => s.value], () => {
10171
10171
  m();
10172
10172
  });
10173
10173
  const m = bs(() => {
10174
- const k = window.innerWidth, A = document.getElementById("editor-content"), X = A == null ? void 0 : A.offsetWidth;
10175
- X && (k < X + 270 + 270 && s.value ? (A.parentElement && (A.parentElement.style.justifyContent = "flex-start"), A.style.marginLeft = "270px") : (A.parentElement && (A.parentElement.style.justifyContent = "center"), A.style.marginLeft = "50px"));
10176
- }, 10), y = B(!1), g = B(1);
10177
- function b(k) {
10174
+ const S = window.innerWidth, A = document.getElementById("editor-content"), j = A == null ? void 0 : A.offsetWidth;
10175
+ j && (S < j + 270 + 270 && s.value ? (A.parentElement && (A.parentElement.style.justifyContent = "flex-start"), A.style.marginLeft = "270px") : (A.parentElement && (A.parentElement.style.justifyContent = "center"), A.style.marginLeft = "50px"));
10176
+ }, 10), b = $(!1), y = $(1);
10177
+ function g(S) {
10178
10178
  var A;
10179
- (A = a.value) == null || A.commands.insertContent(k);
10179
+ (A = a.value) == null || A.commands.insertContent(S);
10180
10180
  }
10181
- function w(k) {
10181
+ function k(S) {
10182
10182
  var Ie;
10183
- const A = k.target, X = (Ie = A == null ? void 0 : A.files) == null ? void 0 : Ie[0];
10184
- if (!X)
10183
+ const A = S.target, j = (Ie = A == null ? void 0 : A.files) == null ? void 0 : Ie[0];
10184
+ if (!j)
10185
10185
  return;
10186
10186
  const re = new FileReader();
10187
- re.readAsDataURL(X), re.onload = function() {
10187
+ re.readAsDataURL(j), re.onload = function() {
10188
10188
  var _e;
10189
10189
  (_e = a.value) == null || _e.commands.insertContent({
10190
10190
  type: "image",
@@ -10192,208 +10192,208 @@ const yf = /* @__PURE__ */ Se(gf, [["__scopeId", "data-v-7c7b1a7b"]]), bf = { cl
10192
10192
  });
10193
10193
  };
10194
10194
  }
10195
- const z = B(!1);
10196
- function L() {
10197
- z.value = !z.value;
10195
+ const N = $(!1);
10196
+ function I() {
10197
+ N.value = !N.value;
10198
10198
  }
10199
- function O(k) {
10199
+ function O(S) {
10200
10200
  var De;
10201
- const A = document.getElementById("editor"), X = (De = a.value) == null ? void 0 : De.options.element, re = X == null ? void 0 : X.children[0], He = [...(re == null ? void 0 : re.childNodes) ?? []].filter((ae) => ["H1", "H2", "H3", "H4", "H5", "H6"].includes(ae.tagName)).find((ae, xe) => k.index === xe);
10201
+ const A = document.getElementById("editor"), j = (De = a.value) == null ? void 0 : De.options.element, re = j == null ? void 0 : j.children[0], He = [...(re == null ? void 0 : re.childNodes) ?? []].filter((ae) => ["H1", "H2", "H3", "H4", "H5", "H6"].includes(ae.tagName)).find((ae, we) => S.index === we);
10202
10202
  if (He && A) {
10203
10203
  const ae = He.offsetTop < 10 ? 0 : He.offsetTop - 10;
10204
10204
  A.scrollTop = ae;
10205
10205
  }
10206
10206
  }
10207
- function N() {
10208
- a.value && (u.value = !0, o("change", !0), o("save", a.value.getHTML()));
10207
+ function L() {
10208
+ console.log(a.value), a.value && (u.value = !0, o("change", !0), o("save", a.value.getHTML()));
10209
10209
  }
10210
10210
  return e({
10211
10211
  getContent: () => {
10212
- var k;
10213
- return ((k = a.value) == null ? void 0 : k.getHTML()) || "";
10212
+ var S;
10213
+ return ((S = a.value) == null ? void 0 : S.getHTML()) || "";
10214
10214
  },
10215
10215
  getJSON: () => {
10216
- var k;
10217
- return (k = a.value) == null ? void 0 : k.getJSON();
10216
+ var S;
10217
+ return (S = a.value) == null ? void 0 : S.getJSON();
10218
10218
  },
10219
- setContent: (k) => {
10219
+ setContent: (S) => {
10220
10220
  var A;
10221
- return (A = a.value) == null ? void 0 : A.commands.setContent(k);
10221
+ return (A = a.value) == null ? void 0 : A.commands.setContent(S);
10222
10222
  },
10223
10223
  getEditor: () => a.value
10224
- }), (k, A) => {
10225
- var ae, xe, mo;
10226
- const X = H("el-divider"), re = H("el-dropdown-item"), Ie = H("el-dropdown-menu"), _e = H("el-dropdown"), He = H("el-button"), De = Rl("loading");
10227
- return yr((R(), D("div", {
10224
+ }), (S, A) => {
10225
+ var ae, we, mo;
10226
+ const j = D("el-divider"), re = D("el-dropdown-item"), Ie = D("el-dropdown-menu"), _e = D("el-dropdown"), He = D("el-button"), De = Rl("loading");
10227
+ return yr((R(), z("div", {
10228
10228
  class: "editor-page-container",
10229
10229
  ref_key: "editorRef",
10230
10230
  ref: i
10231
10231
  }, [
10232
- v("div", bf, [
10233
- v("div", Cf, [
10234
- S(M(J), {
10235
- type: "action",
10236
- desc: "撤销",
10237
- icon: "ri-arrow-go-back-line",
10238
- onClick: A[0] || (A[0] = (Te) => {
10239
- var be;
10240
- return (be = a.value) == null ? void 0 : be.chain().focus().undo().run();
10241
- }),
10242
- disabled: !((ae = a.value) != null && ae.can().chain().focus().undo().run()) || !d.value
10243
- }, null, 8, ["disabled"]),
10244
- S(M(J), {
10245
- type: "action",
10246
- desc: "重做",
10247
- icon: "ri-arrow-go-forward-line",
10248
- onClick: A[1] || (A[1] = (Te) => {
10249
- var be;
10250
- return (be = a.value) == null ? void 0 : be.chain().focus().redo().run();
10251
- }),
10252
- disabled: !((xe = a.value) != null && xe.can().chain().focus().redo().run()) || !d.value
10253
- }, null, 8, ["disabled"]),
10254
- S(M(J), {
10255
- type: "action",
10256
- desc: "清除样式",
10257
- icon: "ri-eraser-fill",
10258
- onClick: A[2] || (A[2] = (Te) => {
10259
- var be;
10260
- return (be = a.value) == null ? void 0 : be.chain().focus().unsetAllMarks().run();
10261
- }),
10262
- disabled: !((mo = a.value) != null && mo.can().chain().focus().unsetAllMarks().run()) || !d.value
10263
- }, null, 8, ["disabled"]),
10264
- S(X, { direction: "vertical" }),
10265
- S(M(Ds), {
10266
- editor: a.value,
10267
- editable: d.value
10268
- }, null, 8, ["editor", "editable"]),
10269
- S(M(Ls), {
10270
- editor: a.value,
10271
- editable: d.value
10272
- }, null, 8, ["editor", "editable"]),
10273
- S(M(zs), {
10274
- editor: a.value,
10275
- editable: d.value
10276
- }, null, 8, ["editor", "editable"]),
10277
- S(M(js), {
10278
- editor: a.value,
10279
- editable: d.value
10280
- }, null, 8, ["editor", "editable"]),
10281
- S(M(Us), {
10282
- editor: a.value,
10283
- editable: d.value
10284
- }, null, 8, ["editor", "editable"]),
10285
- S(X, { direction: "vertical" }),
10286
- S(M(Bs), {
10287
- editor: a.value,
10288
- editable: d.value
10289
- }, null, 8, ["editor", "editable"]),
10290
- S(X, { direction: "vertical" }),
10291
- S(_e, {
10292
- trigger: "click",
10293
- disabled: !d.value
10294
- }, {
10295
- dropdown: T(() => [
10296
- S(Ie, { style: { overflow: "hidden" } }, {
10297
- default: T(() => [
10298
- S(re, {
10299
- icon: M(nf),
10300
- class: "dropdown-item"
10301
- }, {
10302
- default: T(() => [
10303
- v("input", {
10304
- type: "file",
10305
- id: "file",
10306
- class: "select-file",
10307
- title: "",
10308
- accept: "image/*",
10309
- onChange: w
10310
- }, null, 32),
10311
- A[8] || (A[8] = v("span", { class: "desc" }, "图片", -1))
10312
- ]),
10313
- _: 1
10314
- }, 8, ["icon"]),
10315
- S(re, {
10316
- icon: M(ef),
10317
- class: "dropdown-item",
10318
- onClick: A[3] || (A[3] = (Te) => y.value = !0)
10319
- }, {
10320
- default: T(() => [...A[9] || (A[9] = [
10321
- v("span", { class: "desc" }, "链接", -1)
10322
- ])]),
10323
- _: 1
10324
- }, 8, ["icon"]),
10325
- S(re, {
10326
- class: "dropdown-item",
10327
- onClick: A[4] || (A[4] = (Te) => {
10328
- var be;
10329
- return (be = a.value) == null ? void 0 : be.chain().focus().setHorizontalRule().run();
10330
- })
10331
- }, {
10332
- default: T(() => [...A[10] || (A[10] = [
10333
- v("i", { class: "ri-separator" }, null, -1),
10334
- v("span", { class: "desc" }, "分割线", -1)
10335
- ])]),
10336
- _: 1
10337
- }),
10338
- S(re, { class: "dropdown-item" }, {
10339
- default: T(() => [
10340
- S(M(oa), { "insert-content": b })
10341
- ]),
10342
- _: 1
10232
+ x("div", bf, [
10233
+ v(M(q), {
10234
+ type: "action",
10235
+ desc: "撤销",
10236
+ icon: "ri-arrow-go-back-line",
10237
+ onClick: A[0] || (A[0] = (Te) => {
10238
+ var be;
10239
+ return (be = a.value) == null ? void 0 : be.chain().focus().undo().run();
10240
+ }),
10241
+ disabled: !((ae = a.value) != null && ae.can().chain().focus().undo().run()) || !d.value
10242
+ }, null, 8, ["disabled"]),
10243
+ v(M(q), {
10244
+ type: "action",
10245
+ desc: "重做",
10246
+ icon: "ri-arrow-go-forward-line",
10247
+ onClick: A[1] || (A[1] = (Te) => {
10248
+ var be;
10249
+ return (be = a.value) == null ? void 0 : be.chain().focus().redo().run();
10250
+ }),
10251
+ disabled: !((we = a.value) != null && we.can().chain().focus().redo().run()) || !d.value
10252
+ }, null, 8, ["disabled"]),
10253
+ v(M(q), {
10254
+ type: "action",
10255
+ desc: "清除样式",
10256
+ icon: "ri-eraser-fill",
10257
+ onClick: A[2] || (A[2] = (Te) => {
10258
+ var be;
10259
+ return (be = a.value) == null ? void 0 : be.chain().focus().unsetAllMarks().run();
10260
+ }),
10261
+ disabled: !((mo = a.value) != null && mo.can().chain().focus().unsetAllMarks().run()) || !d.value
10262
+ }, null, 8, ["disabled"]),
10263
+ v(j, { direction: "vertical" }),
10264
+ v(M(Ds), {
10265
+ editor: a.value,
10266
+ editable: d.value
10267
+ }, null, 8, ["editor", "editable"]),
10268
+ v(M(Ls), {
10269
+ editor: a.value,
10270
+ editable: d.value
10271
+ }, null, 8, ["editor", "editable"]),
10272
+ v(M(zs), {
10273
+ editor: a.value,
10274
+ editable: d.value
10275
+ }, null, 8, ["editor", "editable"]),
10276
+ v(M(js), {
10277
+ editor: a.value,
10278
+ editable: d.value
10279
+ }, null, 8, ["editor", "editable"]),
10280
+ v(M(Us), {
10281
+ editor: a.value,
10282
+ editable: d.value
10283
+ }, null, 8, ["editor", "editable"]),
10284
+ v(j, { direction: "vertical" }),
10285
+ v(M(Bs), {
10286
+ editor: a.value,
10287
+ editable: d.value
10288
+ }, null, 8, ["editor", "editable"]),
10289
+ v(j, { direction: "vertical" }),
10290
+ v(_e, {
10291
+ trigger: "click",
10292
+ disabled: !d.value
10293
+ }, {
10294
+ dropdown: T(() => [
10295
+ v(Ie, { style: { overflow: "hidden" } }, {
10296
+ default: T(() => [
10297
+ v(re, {
10298
+ icon: M(nf),
10299
+ class: "dropdown-item"
10300
+ }, {
10301
+ default: T(() => [
10302
+ x("input", {
10303
+ type: "file",
10304
+ id: "file",
10305
+ class: "select-file",
10306
+ title: "",
10307
+ accept: "image/*",
10308
+ onChange: k
10309
+ }, null, 32),
10310
+ A[8] || (A[8] = x("span", { class: "desc" }, "图片", -1))
10311
+ ]),
10312
+ _: 1
10313
+ }, 8, ["icon"]),
10314
+ v(re, {
10315
+ icon: M(ef),
10316
+ class: "dropdown-item",
10317
+ onClick: A[3] || (A[3] = (Te) => b.value = !0)
10318
+ }, {
10319
+ default: T(() => [...A[9] || (A[9] = [
10320
+ x("span", { class: "desc" }, "链接", -1)
10321
+ ])]),
10322
+ _: 1
10323
+ }, 8, ["icon"]),
10324
+ v(re, {
10325
+ class: "dropdown-item",
10326
+ onClick: A[4] || (A[4] = (Te) => {
10327
+ var be;
10328
+ return (be = a.value) == null ? void 0 : be.chain().focus().setHorizontalRule().run();
10343
10329
  })
10344
- ]),
10345
- _: 1
10346
- })
10347
- ]),
10348
- default: T(() => [
10349
- A[11] || (A[11] = v("div", { style: { outline: "none", cursor: "pointer", "font-size": "14px" } }, [
10350
- v("i", { class: "ri-add-circle-fill" }),
10351
- v("span", null, "插入"),
10352
- v("i", { class: "ri-arrow-drop-down-line" })
10353
- ], -1))
10354
- ]),
10355
- _: 1
10356
- }, 8, ["disabled"]),
10357
- S(M(ea), {
10358
- editor: a.value,
10359
- editable: d.value
10360
- }, null, 8, ["editor", "editable"]),
10361
- S(X, { direction: "vertical" }),
10362
- S(He, {
10363
- type: "primary",
10364
- size: "small",
10365
- onClick: N
10366
- }, {
10367
- default: T(() => [...A[12] || (A[12] = [
10368
- _("保存", -1)
10369
- ])]),
10370
- _: 1
10371
- })
10372
- ]),
10373
- v("div", kf, [
10374
- v("div", {
10330
+ }, {
10331
+ default: T(() => [...A[10] || (A[10] = [
10332
+ x("i", { class: "ri-separator" }, null, -1),
10333
+ x("span", { class: "desc" }, "分割线", -1)
10334
+ ])]),
10335
+ _: 1
10336
+ }),
10337
+ v(re, { class: "dropdown-item" }, {
10338
+ default: T(() => [
10339
+ v(M(oa), { "insert-content": g })
10340
+ ]),
10341
+ _: 1
10342
+ })
10343
+ ]),
10344
+ _: 1
10345
+ })
10346
+ ]),
10347
+ default: T(() => [
10348
+ A[11] || (A[11] = x("div", { style: { outline: "none", cursor: "pointer", "font-size": "14px" } }, [
10349
+ x("i", { class: "ri-add-circle-fill" }),
10350
+ x("span", null, "插入"),
10351
+ x("i", { class: "ri-arrow-drop-down-line" })
10352
+ ], -1))
10353
+ ]),
10354
+ _: 1
10355
+ }, 8, ["disabled"]),
10356
+ v(M(ea), {
10357
+ editor: a.value,
10358
+ editable: d.value
10359
+ }, null, 8, ["editor", "editable"]),
10360
+ v(j, { direction: "vertical" }),
10361
+ v(He, {
10362
+ type: "primary",
10363
+ size: "small",
10364
+ onClick: L
10365
+ }, {
10366
+ default: T(() => [...A[12] || (A[12] = [
10367
+ _("保存", -1)
10368
+ ])]),
10369
+ _: 1
10370
+ })
10371
+ ]),
10372
+ x("div", Cf, [
10373
+ x("div", kf, [
10374
+ x("div", {
10375
10375
  class: "catalogue-list",
10376
10376
  style: rt({ width: s.value ? "265px" : "0px" })
10377
10377
  }, [
10378
- S(df, {
10378
+ v(df, {
10379
10379
  editor: a.value,
10380
- isHeadingChange: z.value,
10380
+ isHeadingChange: N.value,
10381
10381
  isCatalogCollapse: s.value,
10382
10382
  "onUpdate:isCatalogCollapse": A[5] || (A[5] = (Te) => s.value = Te),
10383
10383
  onLocateHeading: O
10384
10384
  }, null, 8, ["editor", "isHeadingChange", "isCatalogCollapse"])
10385
10385
  ], 4),
10386
- v("div", {
10386
+ x("div", {
10387
10387
  ref_key: "editorAreaRef",
10388
10388
  ref: l,
10389
10389
  class: "editor-area"
10390
10390
  }, [
10391
- v("div", Sf, [
10392
- S(M(_l), {
10391
+ x("div", Sf, [
10392
+ v(M(_l), {
10393
10393
  class: "doc-editor-content",
10394
10394
  id: "editor-content",
10395
10395
  style: rt({
10396
- transform: `scale(${g.value})`,
10396
+ transform: `scale(${y.value})`,
10397
10397
  "transform-origin": "top left"
10398
10398
  }),
10399
10399
  editor: a.value
@@ -10402,16 +10402,16 @@ const yf = /* @__PURE__ */ Se(gf, [["__scopeId", "data-v-7c7b1a7b"]]), bf = { cl
10402
10402
  ], 512)
10403
10403
  ])
10404
10404
  ]),
10405
- S(yf, {
10405
+ v(yf, {
10406
10406
  editor: a.value,
10407
10407
  "editor-ref": i.value,
10408
- "scale-ratio": g.value,
10409
- "onUpdate:scaleRatio": A[6] || (A[6] = (Te) => g.value = Te)
10408
+ "scale-ratio": y.value,
10409
+ "onUpdate:scaleRatio": A[6] || (A[6] = (Te) => y.value = Te)
10410
10410
  }, null, 8, ["editor", "editor-ref", "scale-ratio"]),
10411
- S(M(ia), {
10411
+ v(M(ia), {
10412
10412
  editor: a.value,
10413
- visible: y.value,
10414
- "onUpdate:visible": A[7] || (A[7] = (Te) => y.value = Te)
10413
+ visible: b.value,
10414
+ "onUpdate:visible": A[7] || (A[7] = (Te) => b.value = Te)
10415
10415
  }, null, 8, ["editor", "visible"])
10416
10416
  ])), [
10417
10417
  [De, c.value]
@@ -10419,7 +10419,7 @@ const yf = /* @__PURE__ */ Se(gf, [["__scopeId", "data-v-7c7b1a7b"]]), bf = { cl
10419
10419
  };
10420
10420
  }
10421
10421
  });
10422
- const wf = /* @__PURE__ */ Se(vf, [["__scopeId", "data-v-e75ae4bc"]]), xf = { class: "excel-editor-container" }, Tf = ["id"], Af = /* @__PURE__ */ G({
10422
+ const xf = /* @__PURE__ */ Se(vf, [["__scopeId", "data-v-c58c42d7"]]), wf = { class: "excel-editor-container" }, Tf = ["id"], Af = /* @__PURE__ */ X({
10423
10423
  __name: "ExcelEditor",
10424
10424
  props: {
10425
10425
  content: {},
@@ -10428,7 +10428,7 @@ const wf = /* @__PURE__ */ Se(vf, [["__scopeId", "data-v-e75ae4bc"]]), xf = { cl
10428
10428
  },
10429
10429
  emits: ["save", "update"],
10430
10430
  setup(n, { expose: e, emit: t }) {
10431
- const r = n, o = t, i = B(`luckysheet-${Date.now()}`);
10431
+ const r = n, o = t, i = $(`luckysheet-${Date.now()}`);
10432
10432
  let l = null;
10433
10433
  jn(() => {
10434
10434
  if (typeof window.luckysheet > "u") {
@@ -10466,12 +10466,12 @@ const wf = /* @__PURE__ */ Se(vf, [["__scopeId", "data-v-e75ae4bc"]]), xf = { cl
10466
10466
  setContent: (c) => {
10467
10467
  console.warn("Luckysheet 不支持动态更新数据");
10468
10468
  }
10469
- }), (c, d) => (R(), D("div", xf, [
10470
- v("div", { class: "editor-toolbar" }, [
10471
- v("button", { onClick: s }, "保存"),
10472
- v("button", { onClick: a }, "下载")
10469
+ }), (c, d) => (R(), z("div", wf, [
10470
+ x("div", { class: "editor-toolbar" }, [
10471
+ x("button", { onClick: s }, "保存"),
10472
+ x("button", { onClick: a }, "下载")
10473
10473
  ]),
10474
- v("div", {
10474
+ x("div", {
10475
10475
  id: i.value,
10476
10476
  class: "luckysheet-container"
10477
10477
  }, null, 8, Tf)
@@ -10484,103 +10484,124 @@ const Ef = /* @__PURE__ */ Se(Af, [["__scopeId", "data-v-a8c6ba69"]]), Rf = { cl
10484
10484
  }, Nf = {
10485
10485
  key: 1,
10486
10486
  class: "error"
10487
- }, Of = /* @__PURE__ */ G({
10487
+ }, Of = /* @__PURE__ */ X({
10488
10488
  __name: "DocumentEditorPage",
10489
10489
  props: {
10490
10490
  fileUrl: {},
10491
10491
  fileType: {},
10492
10492
  documentId: {},
10493
10493
  editable: { type: Boolean, default: !0 },
10494
- loadHandler: {},
10495
- saveHandler: {}
10494
+ loadHandler: {}
10496
10495
  },
10497
- emits: ["saved", "error", "loaded"],
10498
- setup(n, { emit: e }) {
10499
- function t() {
10496
+ emits: ["save", "error", "loaded"],
10497
+ setup(n, { expose: e, emit: t }) {
10498
+ function r() {
10500
10499
  try {
10501
- const { useRoute: m } = require("vue-router");
10502
- return m == null ? void 0 : m();
10500
+ const { useRoute: g } = require("vue-router");
10501
+ return g == null ? void 0 : g();
10503
10502
  } catch {
10504
10503
  return null;
10505
10504
  }
10506
10505
  }
10507
- const r = n, o = e, i = t(), l = B(!1), s = B(""), a = B("docx"), c = B(""), d = B("");
10506
+ const o = n, i = t, l = r(), s = $(!1), a = $(""), c = $("docx"), d = $(""), u = $(""), f = $(null), h = $(null);
10508
10507
  jn(async () => {
10509
- var b, w, z;
10510
- const m = r.documentId || ((b = i == null ? void 0 : i.query) == null ? void 0 : b.id), y = r.fileUrl || ((w = i == null ? void 0 : i.query) == null ? void 0 : w.fileUrl), g = r.fileType || ((z = i == null ? void 0 : i.query) == null ? void 0 : z.fileType);
10511
- m && r.loadHandler ? await u(m) : y && g && await f(y, g);
10508
+ var I, O, L;
10509
+ const g = o.documentId || ((I = l == null ? void 0 : l.query) == null ? void 0 : I.id), k = o.fileUrl || ((O = l == null ? void 0 : l.query) == null ? void 0 : O.fileUrl), N = o.fileType || ((L = l == null ? void 0 : l.query) == null ? void 0 : L.fileType);
10510
+ g && o.loadHandler ? await p(g) : k && N && await m(k, N);
10512
10511
  });
10513
- async function u(m) {
10514
- if (r.loadHandler) {
10515
- l.value = !0, s.value = "";
10512
+ async function p(g) {
10513
+ if (o.loadHandler) {
10514
+ s.value = !0, a.value = "";
10516
10515
  try {
10517
- const y = await r.loadHandler(m);
10518
- a.value = y.type, c.value = y.content, d.value = y.title, o("loaded", y);
10519
- } catch (y) {
10520
- s.value = y instanceof Error ? y.message : "加载文档失败", o("error", s.value);
10516
+ const k = await o.loadHandler(g);
10517
+ c.value = k.type, d.value = k.content, u.value = k.title, i("loaded", k);
10518
+ } catch (k) {
10519
+ a.value = k instanceof Error ? k.message : "加载文档失败", i("error", a.value);
10521
10520
  } finally {
10522
- l.value = !1;
10521
+ s.value = !1;
10523
10522
  }
10524
10523
  }
10525
10524
  }
10526
- async function f(m, y) {
10527
- l.value = !0, s.value = "";
10525
+ async function m(g, k) {
10526
+ s.value = !0, a.value = "";
10528
10527
  try {
10529
- const { convertDocx: g, convertExcel: b, getFileNameFromUrl: w } = await import("./converters-c15ebac4.mjs"), z = await fetch(m);
10530
- if (!z.ok)
10528
+ const { convertDocx: N, convertExcel: I, getFileNameFromUrl: O } = await import("./converters-9269b202.mjs"), L = await fetch(g);
10529
+ if (!L.ok)
10531
10530
  throw new Error("文件下载失败");
10532
- const L = await z.blob(), O = w(m);
10533
- let N;
10534
- if (y === "docx" ? N = await g(L) : N = await b(L), a.value = y, c.value = N, d.value = O, r.saveHandler) {
10535
- const k = { type: y, content: N, fileName: O }, A = await Promise.resolve(r.saveHandler(k));
10536
- o("saved", { _id: A._id, result: k });
10537
- }
10538
- } catch (g) {
10539
- s.value = g instanceof Error ? g.message : "文件处理失败", o("error", s.value);
10531
+ const S = await L.blob(), A = O(g);
10532
+ let j;
10533
+ k === "docx" ? j = await N(S) : j = await I(S), c.value = k, d.value = j, u.value = A, i("loaded", { type: k, content: j, title: A });
10534
+ } catch (N) {
10535
+ a.value = N instanceof Error ? N.message : "文件处理失败", i("error", a.value);
10540
10536
  } finally {
10541
- l.value = !1;
10537
+ s.value = !1;
10542
10538
  }
10543
10539
  }
10544
- async function h(m) {
10545
- if (r.saveHandler) {
10546
- const y = {
10547
- type: a.value,
10548
- content: m,
10549
- fileName: d.value
10550
- };
10551
- try {
10552
- const g = await Promise.resolve(r.saveHandler(y));
10553
- o("saved", { _id: g._id, result: y });
10554
- } catch (g) {
10555
- const b = g instanceof Error ? g.message : "保存失败";
10556
- s.value = b, o("error", b);
10557
- }
10558
- }
10540
+ async function b(g) {
10541
+ const k = {
10542
+ type: c.value,
10543
+ content: g,
10544
+ fileName: u.value
10545
+ };
10546
+ i("save", k);
10559
10547
  }
10560
- function p(m) {
10561
- c.value = m;
10548
+ function y(g) {
10549
+ d.value = g;
10562
10550
  }
10563
- return (m, y) => (R(), D("div", Rf, [
10564
- l.value ? (R(), D("div", Mf, "加载中...")) : s.value ? (R(), D("div", Nf, se(s.value), 1)) : (R(), D(ie, { key: 2 }, [
10565
- a.value === "docx" ? (R(), Z(wf, {
10551
+ return e({
10552
+ getContent: async () => {
10553
+ if (c.value === "docx" && f.value) {
10554
+ const g = f.value.getContent(), { convertHtmlToDocx: k } = await import("./converters-9269b202.mjs"), N = await k(g);
10555
+ return {
10556
+ type: c.value,
10557
+ content: N,
10558
+ fileName: u.value
10559
+ };
10560
+ } else if (c.value === "xlsx" && h.value) {
10561
+ const g = h.value.getContent(), { convertLuckysheetToExcel: k } = await import("./converters-9269b202.mjs"), N = await k(g);
10562
+ return {
10563
+ type: c.value,
10564
+ content: N,
10565
+ fileName: u.value
10566
+ };
10567
+ }
10568
+ return null;
10569
+ },
10570
+ save: async () => {
10571
+ if (c.value === "docx" && f.value) {
10572
+ const g = f.value.getContent(), { convertHtmlToDocx: k } = await import("./converters-9269b202.mjs"), N = await k(g);
10573
+ b(N);
10574
+ } else if (c.value === "xlsx" && h.value) {
10575
+ const g = h.value.getContent(), { convertLuckysheetToExcel: k } = await import("./converters-9269b202.mjs"), N = await k(g);
10576
+ b(N);
10577
+ }
10578
+ }
10579
+ }), (g, k) => (R(), z("div", Rf, [
10580
+ s.value ? (R(), z("div", Mf, "加载中...")) : a.value ? (R(), z("div", Nf, se(a.value), 1)) : (R(), z(ie, { key: 2 }, [
10581
+ c.value === "docx" ? (R(), Z(xf, {
10566
10582
  key: 0,
10567
- content: c.value,
10583
+ ref_key: "wordEditorRef",
10584
+ ref: f,
10585
+ content: d.value,
10568
10586
  editable: n.editable,
10569
- onSave: h,
10570
- onUpdate: p
10571
- }, null, 8, ["content", "editable"])) : a.value === "xlsx" ? (R(), Z(Ef, {
10587
+ onSave: b,
10588
+ onUpdate: y
10589
+ }, null, 8, ["content", "editable"])) : c.value === "xlsx" ? (R(), Z(Ef, {
10572
10590
  key: 1,
10573
- content: c.value,
10574
- title: d.value,
10591
+ ref_key: "excelEditorRef",
10592
+ ref: h,
10593
+ content: d.value,
10594
+ title: u.value,
10575
10595
  editable: n.editable,
10576
- onSave: h,
10577
- onUpdate: p
10596
+ onSave: b,
10597
+ onUpdate: y
10578
10598
  }, null, 8, ["content", "title", "editable"])) : Re("", !0)
10579
10599
  ], 64))
10580
10600
  ]));
10581
10601
  }
10582
10602
  });
10583
- const Lf = /* @__PURE__ */ Se(Of, [["__scopeId", "data-v-9db96d3c"]]), $f = {
10603
+ const Lf = /* @__PURE__ */ Se(Of, [["__scopeId", "data-v-996bb4db"]]);
10604
+ const $f = {
10584
10605
  install(n) {
10585
10606
  n.component("DocumentEditorPage", Lf);
10586
10607
  }