smart-editor-v3 1.6.3 → 1.6.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,30 +1,30 @@
1
- var Ko = Object.defineProperty;
2
- var Yo = (r, e, n) => e in r ? Ko(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n;
3
- var Lt = (r, e, n) => Yo(r, typeof e != "symbol" ? e + "" : e, n);
1
+ var Yo = Object.defineProperty;
2
+ var Zo = (r, e, n) => e in r ? Yo(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n;
3
+ var Lt = (r, e, n) => Zo(r, typeof e != "symbol" ? e + "" : e, n);
4
4
  import "./style.css";
5
- import { NTooltip as Ut, NButton as Se, NPopover as Zo, NDrawerContent as Xo, NDrawer as Qo, NInput as Bn, NCheckbox as er, NCard as tr, NDropdown as st, NSelect as Ln, NColorPicker as Nn, NBackTop as nr, NModal as or, NFormItem as rr, NInputNumber as Rn, useMessage as lr, zhCN as En, enUS as In, dateZhCN as Fn, dateEnUS as Hn, darkTheme as zn, NMessageProvider as sr, NConfigProvider as On } from "naive-ui";
6
- import { createI18n as ir } from "vue-i18n";
7
- import { useStorage as en, createGlobalState as ar, useTimeAgo as ur, useFullscreen as Pn, useOnline as cr, useWindowSize as Jt, onClickOutside as $t, useClipboard as dr, useElementBounding as pr, useThrottleFn as Wn, useDebounceFn as mr, useResizeObserver as fr, useFileDialog as qt, useDark as Vn, useTimestamp as hr, createInjectionState as br } from "@vueuse/core";
8
- import { ref as B, watch as pe, openBlock as m, createElementBlock as $, Fragment as J, renderList as ge, unref as i, createElementVNode as g, toDisplayString as N, normalizeClass as K, createBlock as _, resolveDynamicComponent as oe, withCtx as A, createTextVNode as te, renderSlot as de, computed as W, onMounted as Fe, inject as vr, createVNode as v, createCommentVNode as F, normalizeStyle as le, isRef as Ge, h as _e, onUnmounted as gr, onBeforeUnmount as Ze, useAttrs as jt, mergeProps as ve, withDirectives as ot, vShow as kt, nextTick as _r, onBeforeMount as Dn, provide as tn, mergeModels as nn, useModel as yr } from "vue";
9
- import kr from "dexie";
5
+ import { NTooltip as Ut, NButton as Se, NPopover as Xo, NDrawerContent as Qo, NDrawer as er, NInput as Bn, NCheckbox as tr, NCard as nr, NDropdown as st, NSelect as Ln, NColorPicker as Nn, NBackTop as or, NModal as rr, NFormItem as lr, NInputNumber as Rn, useMessage as sr, zhCN as En, enUS as In, dateZhCN as Fn, dateEnUS as Hn, darkTheme as zn, NMessageProvider as ir, NConfigProvider as On } from "naive-ui";
6
+ import { createI18n as ar } from "vue-i18n";
7
+ import { useStorage as en, createGlobalState as ur, useTimeAgo as cr, useFullscreen as Pn, useOnline as dr, useWindowSize as Jt, onClickOutside as $t, useClipboard as pr, useElementBounding as mr, useThrottleFn as Wn, useDebounceFn as fr, useResizeObserver as hr, useFileDialog as qt, useDark as Vn, useTimestamp as br, createInjectionState as vr } from "@vueuse/core";
8
+ import { ref as B, watch as pe, openBlock as m, createElementBlock as $, Fragment as J, renderList as ge, unref as i, createElementVNode as g, toDisplayString as N, normalizeClass as K, createBlock as _, resolveDynamicComponent as oe, withCtx as A, createTextVNode as te, renderSlot as de, computed as V, onMounted as Fe, inject as gr, createVNode as v, createCommentVNode as F, normalizeStyle as le, isRef as Ge, h as _e, onUnmounted as _r, onBeforeUnmount as Ze, useAttrs as jt, mergeProps as ve, withDirectives as ot, vShow as kt, nextTick as yr, onBeforeMount as Dn, provide as tn, mergeModels as nn, useModel as kr } from "vue";
9
+ import Cr from "dexie";
10
10
  import Ct from "hotkeys-js";
11
- import { Extension as $e, findParentNode as it, Node as Z, mergeAttributes as Y, findChildren as gt, defaultBlockAt as Un, isActive as Cr, Mark as wr, nodeInputRule as xr, findParentNodeClosestToPos as Ar, callOrReturn as Tr, getExtensionField as Sr } from "@tiptap/core";
11
+ import { Extension as $e, findParentNode as it, Node as Z, mergeAttributes as Y, findChildren as gt, defaultBlockAt as Un, isActive as wr, Mark as xr, nodeInputRule as Ar, findParentNodeClosestToPos as Tr, callOrReturn as Sr, getExtensionField as $r } from "@tiptap/core";
12
12
  import { Plugin as He, PluginKey as Je, Selection as Jn, TextSelection as Gt } from "@tiptap/pm/state";
13
13
  import { DecorationSet as Oe, Decoration as wt } from "@tiptap/pm/view";
14
- import { UseDraggable as $r, vElementHover as Mr } from "@vueuse/components";
15
- import { languages as Br } from "prism-code-editor/prism";
14
+ import { UseDraggable as Mr, vElementHover as Br } from "@vueuse/components";
15
+ import { languages as Lr } from "prism-code-editor/prism";
16
16
  import { BubbleMenu as qn, nodeViewProps as se, NodeViewWrapper as ie, VueNodeViewRenderer as ae, NodeViewContent as xt, Editor as jn, EditorContent as Gn } from "@tiptap/vue-3";
17
- import Lr from "@tiptap/extension-blockquote";
18
- import Nr from "@tiptap/extension-character-count";
17
+ import Nr from "@tiptap/extension-blockquote";
18
+ import Rr from "@tiptap/extension-character-count";
19
19
  import Kn from "@tiptap/extension-color";
20
- import Rr from "@tiptap/extension-dropcursor";
20
+ import Er from "@tiptap/extension-dropcursor";
21
21
  import Yn from "@tiptap/extension-focus";
22
22
  import Zn from "@tiptap/extension-font-family";
23
23
  import Xn from "@tiptap/extension-highlight";
24
- import Er from "@tiptap/extension-horizontal-rule";
25
- import Ir from "@tiptap/extension-link";
26
- import Fr from "@tiptap/extension-list-keymap";
27
- import Hr from "@tiptap/extension-placeholder";
24
+ import Ir from "@tiptap/extension-horizontal-rule";
25
+ import Fr from "@tiptap/extension-link";
26
+ import Hr from "@tiptap/extension-list-keymap";
27
+ import zr from "@tiptap/extension-placeholder";
28
28
  import Qn from "@tiptap/extension-subscript";
29
29
  import eo from "@tiptap/extension-superscript";
30
30
  import to from "@tiptap/extension-table-header";
@@ -36,14 +36,14 @@ import so from "@tiptap/extension-underline";
36
36
  import io from "@tiptap/starter-kit";
37
37
  import { GapCursor as on } from "@tiptap/pm/gapcursor";
38
38
  import ao from "katex";
39
- import zr from "@tiptap/extension-bullet-list";
40
- import { createEditor as Or } from "prism-code-editor";
41
- import { defaultCommands as Pr, editHistory as Wr } from "prism-code-editor/commands";
42
- import { cursorPosition as Vr } from "prism-code-editor/cursor";
43
- import { indentGuides as Dr } from "prism-code-editor/guides";
44
- import { highlightBracketPairs as Ur } from "prism-code-editor/highlight-brackets";
45
- import { matchBrackets as Jr } from "prism-code-editor/match-brackets";
46
- import { matchTags as qr } from "prism-code-editor/match-tags";
39
+ import Or from "@tiptap/extension-bullet-list";
40
+ import { createEditor as Pr } from "prism-code-editor";
41
+ import { defaultCommands as Wr, editHistory as Vr } from "prism-code-editor/commands";
42
+ import { cursorPosition as Dr } from "prism-code-editor/cursor";
43
+ import { indentGuides as Ur } from "prism-code-editor/guides";
44
+ import { highlightBracketPairs as Jr } from "prism-code-editor/highlight-brackets";
45
+ import { matchBrackets as qr } from "prism-code-editor/match-brackets";
46
+ import { matchTags as jr } from "prism-code-editor/match-tags";
47
47
  import "prism-code-editor/layout.css";
48
48
  import "prism-code-editor/prism/languages/bash";
49
49
  import "prism-code-editor/prism/languages/basic";
@@ -85,15 +85,15 @@ import "prism-code-editor/prism/languages/wasm";
85
85
  import "prism-code-editor/prism/languages/xml";
86
86
  import "prism-code-editor/prism/languages/yaml";
87
87
  import { Slice as et, Fragment as ze } from "@tiptap/pm/model";
88
- import { Image as jr } from "@tiptap/extension-image";
89
- import { ListItem as Gr } from "@tiptap/extension-list-item";
90
- import Kr from "@tiptap/extension-ordered-list";
91
- import { throttle as Yr } from "lodash-es";
92
- import { CellSelection as uo, addColumnBefore as Zr, addColumnAfter as Xr, deleteColumn as Qr, addRowBefore as el, addRowAfter as tl, deleteRow as nl, deleteTable as ol, mergeCells as rn, splitCell as ln, toggleHeader as sn, toggleHeaderCell as rl, setCellAttr as ll, goToNextCell as an, fixTables as sl, columnResizing as il, tableEditing as al } from "@tiptap/pm/tables";
93
- import ul from "@tiptap/extension-table-cell";
88
+ import { Image as Gr } from "@tiptap/extension-image";
89
+ import { ListItem as Kr } from "@tiptap/extension-list-item";
90
+ import Yr from "@tiptap/extension-ordered-list";
91
+ import { throttle as Zr } from "lodash-es";
92
+ import { CellSelection as uo, addColumnBefore as Xr, addColumnAfter as Qr, deleteColumn as el, addRowBefore as tl, addRowAfter as nl, deleteRow as ol, deleteTable as rl, mergeCells as rn, splitCell as ln, toggleHeader as sn, toggleHeaderCell as ll, setCellAttr as sl, goToNextCell as an, fixTables as il, columnResizing as al, tableEditing as ul } from "@tiptap/pm/tables";
93
+ import cl from "@tiptap/extension-table-cell";
94
94
  import co from "dayjs";
95
95
  import po from "js-md5";
96
- const cl = {
96
+ const dl = {
97
97
  toolbar: {
98
98
  insert: "insert"
99
99
  },
@@ -509,7 +509,7 @@ const cl = {
509
509
  },
510
510
  feedback: "Issues / Feedback",
511
511
  poweredBy: "Tech Support"
512
- }, dl = {
512
+ }, pl = {
513
513
  toolbar: {
514
514
  insert: "插入"
515
515
  },
@@ -1130,7 +1130,7 @@ const cl = {
1130
1130
  companyUrl: "https://ipraclass.com/",
1131
1131
  // 反馈地址
1132
1132
  feedbackUrl: "https://o00i7ra5yrz.feishu.cn/share/base/form/shrcnlCFJlRfJhQpA5AWRniYQyc"
1133
- }, pl = Object.keys(Ot), mo = {
1133
+ }, ml = Object.keys(Ot), mo = {
1134
1134
  common: {
1135
1135
  primaryColor: "#497fed",
1136
1136
  primaryColorHover: "#497fed",
@@ -1185,7 +1185,7 @@ function Pe(r, e) {
1185
1185
  });
1186
1186
  throw new Error("[useStorage]", { cause: "Key is not valid" });
1187
1187
  }
1188
- const M = ar(() => {
1188
+ const M = ur(() => {
1189
1189
  const r = B(Te()), e = B(null), n = B(!1), o = B(Ot.page), t = B(Ot), l = B(null), s = B({
1190
1190
  enabled: !1,
1191
1191
  once: !0,
@@ -1202,7 +1202,7 @@ const M = ar(() => {
1202
1202
  const w = Object.keys(T).includes("value") ? T.value : T;
1203
1203
  t.value = {
1204
1204
  ...t.value,
1205
- ...Object.keys(w).reduce((L, R) => (w[R] !== void 0 && (L[R] = w[R]), L), {})
1205
+ ...Object.keys(w).reduce((L, E) => (w[E] !== void 0 && (L[E] = w[E]), L), {})
1206
1206
  };
1207
1207
  const y = Pe("locale");
1208
1208
  return y.value || (y.value = t.value.locale), t.value;
@@ -1226,9 +1226,9 @@ const M = ar(() => {
1226
1226
  defaultOrientation: y,
1227
1227
  watermark: L
1228
1228
  }) => {
1229
- var R;
1229
+ var E;
1230
1230
  o.value = {
1231
- size: (R = t.value.dicts) == null ? void 0 : R.pageSizes.find(
1231
+ size: (E = t.value.dicts) == null ? void 0 : E.pageSizes.find(
1232
1232
  (I) => I.default
1233
1233
  ),
1234
1234
  margin: w,
@@ -1268,15 +1268,15 @@ const M = ar(() => {
1268
1268
  resetStore: x,
1269
1269
  toolbarHover: k
1270
1270
  };
1271
- }), { options: ml } = M(), fl = ir({
1271
+ }), { options: fl } = M(), hl = ar({
1272
1272
  legacy: !1,
1273
- locale: ml.value.locale || "zh_CN",
1273
+ locale: fl.value.locale || "zh_CN",
1274
1274
  defaultLocale: "zh_CN",
1275
1275
  messages: {
1276
- en_US: cl,
1277
- zh_CN: dl
1276
+ en_US: dl,
1277
+ zh_CN: pl
1278
1278
  }
1279
- }), { global: Kt } = fl, { t: c } = Kt, ho = () => Kt;
1279
+ }), { global: Kt } = hl, { t: c } = Kt, ho = () => Kt;
1280
1280
  function Ye(r) {
1281
1281
  if (typeof r == "string")
1282
1282
  return r;
@@ -1290,12 +1290,12 @@ function we(r) {
1290
1290
  let n = r;
1291
1291
  return e && (n = n.replace(/ctrl/gi, "⌘").replace(/shift/gi, "⇧").replace(/alt/gi, "⌥").replace(/Enter/gi, "Return").replace(/Backspace/gi, "Delete")), n;
1292
1292
  }
1293
- const H = (r, e) => {
1293
+ const z = (r, e) => {
1294
1294
  const n = r.__vccOpts || r;
1295
1295
  for (const [o, t] of e)
1296
1296
  n[o] = t;
1297
1297
  return n;
1298
- }, hl = { class: "keyboard-shortcuts" }, bl = { class: "keyboard-shortcuts-title" }, vl = { class: "keyboard-shortcuts" }, gl = { class: "keyboard-shortcut" }, _l = { key: 0 }, yl = ["textContent"], kl = {
1298
+ }, bl = { class: "keyboard-shortcuts" }, vl = { class: "keyboard-shortcuts-title" }, gl = { class: "keyboard-shortcuts" }, _l = { class: "keyboard-shortcut" }, yl = { key: 0 }, kl = ["textContent"], Cl = {
1299
1299
  __name: "shortcuts",
1300
1300
  setup(r) {
1301
1301
  const { options: e } = M(), { document: n } = e.value, o = B([
@@ -1455,10 +1455,10 @@ const H = (r, e) => {
1455
1455
  keys: ["---", "Enter"]
1456
1456
  }
1457
1457
  ]
1458
- }), (t, l) => (m(), $("div", hl, [
1458
+ }), (t, l) => (m(), $("div", bl, [
1459
1459
  (m(!0), $(J, null, ge(i(o), (s, a) => (m(), $(J, { key: a }, [
1460
- g("div", bl, N(s.title), 1),
1461
- g("ul", vl, [
1460
+ g("div", vl, N(s.title), 1),
1461
+ g("ul", gl, [
1462
1462
  (m(!0), $(J, null, ge(s.items, (u, d) => (m(), $("li", { key: d }, [
1463
1463
  g("span", {
1464
1464
  class: K(u.className ? `keyboard-shortcut-${u.className}` : "")
@@ -1476,12 +1476,12 @@ const H = (r, e) => {
1476
1476
  class: K(u.className || "")
1477
1477
  }, N(u.label), 3))
1478
1478
  ], 2),
1479
- g("div", gl, [
1479
+ g("div", _l, [
1480
1480
  (m(!0), $(J, null, ge(u.keys, (p) => (m(), $(J, { key: p }, [
1481
- p !== "TEXT" ? (m(), $("kbd", _l, N(i(we)(p)), 1)) : (m(), $("span", {
1481
+ p !== "TEXT" ? (m(), $("kbd", yl, N(i(we)(p)), 1)) : (m(), $("span", {
1482
1482
  key: 1,
1483
1483
  textContent: N(("t" in t ? t.t : i(c))("shortcut.text"))
1484
- }, null, 8, yl))
1484
+ }, null, 8, kl))
1485
1485
  ], 64))), 128))
1486
1486
  ])
1487
1487
  ]))), 128))
@@ -1489,10 +1489,10 @@ const H = (r, e) => {
1489
1489
  ], 64))), 128))
1490
1490
  ]));
1491
1491
  }
1492
- }, Cl = /* @__PURE__ */ H(kl, [["__scopeId", "data-v-67cb4f13"]]), wl = {
1492
+ }, wl = /* @__PURE__ */ z(Cl, [["__scopeId", "data-v-67cb4f13"]]), xl = {
1493
1493
  class: "p-x-8 p-y-4",
1494
1494
  style: { fontSize: "12px" }
1495
- }, xl = {
1495
+ }, Al = {
1496
1496
  __name: "tooltip",
1497
1497
  props: {
1498
1498
  content: {
@@ -1513,13 +1513,13 @@ const H = (r, e) => {
1513
1513
  de(n.$slots, "default")
1514
1514
  ]),
1515
1515
  default: A(() => [
1516
- g("span", wl, N(r.content), 1)
1516
+ g("span", xl, N(r.content), 1)
1517
1517
  ]),
1518
1518
  _: 3
1519
1519
  }, 8, ["to"]);
1520
1520
  };
1521
1521
  }
1522
- }, Mt = new kr("SmartEditor");
1522
+ }, Mt = new Cr("SmartEditor");
1523
1523
  Mt.version(1).stores({
1524
1524
  content: "content_id, content, version, hashMd"
1525
1525
  });
@@ -1532,7 +1532,7 @@ function un(r) {
1532
1532
  minute: (o) => c("time.minute", { n: o }),
1533
1533
  second: (o) => c("time.second", { n: o })
1534
1534
  };
1535
- return ur(new Date(r), {
1535
+ return cr(new Date(r), {
1536
1536
  messages: e
1537
1537
  }).value.replace(/"/g, "");
1538
1538
  }
@@ -1545,10 +1545,10 @@ function cn(r) {
1545
1545
  const Be = {
1546
1546
  message: {},
1547
1547
  dialog: {}
1548
- }, Al = { class: "smart-status-bar" }, Tl = { class: "smart-status-bar-left" }, Sl = { key: 0 }, $l = { class: "smart-word-count" }, Ml = { class: "smart-word-count-detail" }, Bl = { class: "smart-word-count-title" }, Ll = { key: 0 }, Nl = { class: "smart-status" }, Rl = { class: "smart-status-saved button-text" }, El = ["textContent"], Il = ["textContent"], Fl = { class: "smart-document-status-container smart-status" }, Hl = ["textContent"], zl = ["textContent"], Ol = { class: "smart-document-button-container" }, Pl = { class: "smart-shortcuts-drawer-header" }, Wl = {
1548
+ }, Tl = { class: "smart-status-bar" }, Sl = { class: "smart-status-bar-left" }, $l = { key: 0 }, Ml = { class: "smart-word-count" }, Bl = { class: "smart-word-count-detail" }, Ll = { class: "smart-word-count-title" }, Nl = { key: 0 }, Rl = { class: "smart-status" }, El = { class: "smart-status-saved button-text" }, Il = ["textContent"], Fl = ["textContent"], Hl = { class: "smart-document-status-container smart-status" }, zl = ["textContent"], Ol = ["textContent"], Pl = { class: "smart-document-button-container" }, Wl = { class: "smart-shortcuts-drawer-header" }, Vl = {
1549
1549
  __name: "index",
1550
1550
  setup(r) {
1551
- const { container: e, options: n, page: o, editor: t, savedAt: l } = M(), s = B(!1), a = B(!1), u = W(() => {
1551
+ const { container: e, options: n, page: o, editor: t, savedAt: l } = M(), s = B(!1), a = B(!1), u = V(() => {
1552
1552
  if (t.value) {
1553
1553
  const { selection: y } = t.value.state;
1554
1554
  return t.value.state.doc.textBetween(
@@ -1570,7 +1570,7 @@ const Be = {
1570
1570
  Fe(() => {
1571
1571
  d.value = Pn(document.querySelector(e)), At("f11, command+f11", d.value.toggle);
1572
1572
  });
1573
- const b = B(!1), h = cr(), k = vr("saveContent");
1573
+ const b = B(!1), h = dr(), k = gr("saveContent");
1574
1574
  function C() {
1575
1575
  k(), b.value = !1;
1576
1576
  }
@@ -1592,15 +1592,15 @@ const Be = {
1592
1592
  }
1593
1593
  return (y, L) => {
1594
1594
  var j;
1595
- const R = Se, I = xl, U = Zo, O = Cl, S = Xo, D = Qo;
1595
+ const E = Se, I = Al, U = Xo, O = wl, S = Qo, P = er;
1596
1596
  return m(), $(J, null, [
1597
- g("div", Al, [
1598
- g("div", Tl, [
1597
+ g("div", Tl, [
1598
+ g("div", Sl, [
1599
1599
  v(I, {
1600
1600
  content: i(o).showToc ? ("t" in y ? y.t : i(c))("toc.hide") : ("t" in y ? y.t : i(c))("toc.show")
1601
1601
  }, {
1602
1602
  default: A(() => [
1603
- v(R, {
1603
+ v(E, {
1604
1604
  class: K(["smart-status-bar-button", { active: i(o).showToc }]),
1605
1605
  quaternary: "",
1606
1606
  size: "tiny",
@@ -1618,7 +1618,7 @@ const Be = {
1618
1618
  content: i(o).showTool ? ("t" in y ? y.t : i(c))("tool.hide") : ("t" in y ? y.t : i(c))("tool.show")
1619
1619
  }, {
1620
1620
  default: A(() => [
1621
- v(R, {
1621
+ v(E, {
1622
1622
  class: K(["smart-status-bar-button", { active: i(o).showTool }]),
1623
1623
  quaternary: "",
1624
1624
  size: "tiny",
@@ -1636,7 +1636,7 @@ const Be = {
1636
1636
  content: ("t" in y ? y.t : i(c))("shortcut.title")
1637
1637
  }, {
1638
1638
  default: A(() => [
1639
- v(R, {
1639
+ v(E, {
1640
1640
  class: "smart-status-bar-button",
1641
1641
  quaternary: "",
1642
1642
  size: "tiny",
@@ -1656,7 +1656,7 @@ const Be = {
1656
1656
  default: A(() => {
1657
1657
  var q;
1658
1658
  return [
1659
- v(R, {
1659
+ v(E, {
1660
1660
  class: "smart-status-bar-button",
1661
1661
  quaternary: "",
1662
1662
  size: "tiny",
@@ -1680,7 +1680,7 @@ const Be = {
1680
1680
  content: ("t" in y ? y.t : i(c))("poweredBy")
1681
1681
  }, {
1682
1682
  default: A(() => [
1683
- v(R, {
1683
+ v(E, {
1684
1684
  class: "smart-status-bar-button",
1685
1685
  quaternary: "",
1686
1686
  size: "tiny",
@@ -1698,7 +1698,7 @@ const Be = {
1698
1698
  content: ("t" in y ? y.t : i(c))("feedback")
1699
1699
  }, {
1700
1700
  default: A(() => [
1701
- v(R, {
1701
+ v(E, {
1702
1702
  class: "smart-status-bar-button",
1703
1703
  quaternary: "",
1704
1704
  size: "tiny",
@@ -1721,14 +1721,14 @@ const Be = {
1721
1721
  "onUpdate:show": L[1] || (L[1] = (q) => a.value = q)
1722
1722
  }, {
1723
1723
  trigger: A(() => [
1724
- v(R, {
1724
+ v(E, {
1725
1725
  class: "smart-status-bar-button word-count",
1726
1726
  quaternary: "",
1727
1727
  size: "tiny"
1728
1728
  }, {
1729
1729
  default: A(() => [
1730
- i(u) > 0 ? (m(), $("span", Sl, N(i(u)) + "/ ", 1)) : F("", !0),
1731
- g("span", $l, N(i(t).storage.characterCount.characters()), 1),
1730
+ i(u) > 0 ? (m(), $("span", $l, N(i(u)) + "/ ", 1)) : F("", !0),
1731
+ g("span", Ml, N(i(t).storage.characterCount.characters()), 1),
1732
1732
  te(" " + N(("t" in y ? y.t : i(c))("wordCount.characters")) + " ", 1),
1733
1733
  g("i", {
1734
1734
  class: "i-sed:arrow-down",
@@ -1741,8 +1741,8 @@ const Be = {
1741
1741
  default: A(() => {
1742
1742
  var q, Q;
1743
1743
  return [
1744
- g("div", Ml, [
1745
- g("div", Bl, N(("t" in y ? y.t : i(c))("wordCount.title")), 1),
1744
+ g("div", Bl, [
1745
+ g("div", Ll, N(("t" in y ? y.t : i(c))("wordCount.title")), 1),
1746
1746
  g("ul", null, [
1747
1747
  g("li", null, [
1748
1748
  te(N(("t" in y ? y.t : i(c))("wordCount.input")) + " ", 1),
@@ -1752,7 +1752,7 @@ const Be = {
1752
1752
  te(N(("t" in y ? y.t : i(c))("wordCount.selection")) + " ", 1),
1753
1753
  g("span", null, N(i(u)), 1)
1754
1754
  ]),
1755
- ((q = i(n).document) == null ? void 0 : q.characterLimit) ?? !1 ? (m(), $("li", Ll, [
1755
+ ((q = i(n).document) == null ? void 0 : q.characterLimit) ?? !1 ? (m(), $("li", Nl, [
1756
1756
  te(N(("t" in y ? y.t : i(c))("wordCount.limit")) + " ", 1),
1757
1757
  g("span", null, N(((Q = i(n).document) == null ? void 0 : Q.characterLimit) ?? 0), 1)
1758
1758
  ])) : F("", !0)
@@ -1772,25 +1772,25 @@ const Be = {
1772
1772
  "onUpdate:show": L[2] || (L[2] = (q) => b.value = q)
1773
1773
  }, {
1774
1774
  trigger: A(() => [
1775
- v(R, {
1775
+ v(E, {
1776
1776
  class: K(["smart-toolbar-actions-button", { active: i(b) }]),
1777
1777
  quaternary: "",
1778
1778
  size: "tiny"
1779
1779
  }, {
1780
1780
  default: A(() => [
1781
- g("span", Nl, [
1781
+ g("span", Rl, [
1782
1782
  g("i", {
1783
1783
  class: K(["smart-status-online i-sed:pluse", { offline: !i(h) }])
1784
1784
  }, null, 2),
1785
- g("span", Rl, [
1785
+ g("span", El, [
1786
1786
  i(l) ? (m(), $("span", {
1787
1787
  key: 0,
1788
1788
  textContent: N(("t" in y ? y.t : i(c))("save.savedAtText", { time: i(un)(i(l)) }))
1789
- }, null, 8, El)) : (m(), $("span", {
1789
+ }, null, 8, Il)) : (m(), $("span", {
1790
1790
  key: 1,
1791
1791
  class: "unsaved",
1792
1792
  textContent: N(("t" in y ? y.t : i(c))("save.unsaved"))
1793
- }, null, 8, Il))
1793
+ }, null, 8, Fl))
1794
1794
  ])
1795
1795
  ])
1796
1796
  ]),
@@ -1798,20 +1798,20 @@ const Be = {
1798
1798
  }, 8, ["class"])
1799
1799
  ]),
1800
1800
  default: A(() => [
1801
- g("div", Fl, [
1801
+ g("div", Hl, [
1802
1802
  g("div", null, N(("t" in y ? y.t : i(c))("save.network")) + " " + N(i(h) ? ("t" in y ? y.t : i(c))("save.online") : ("t" in y ? y.t : i(c))("save.offline")), 1),
1803
1803
  g("div", null, [
1804
1804
  te(N(("t" in y ? y.t : i(c))("save.savedAt")) + " ", 1),
1805
1805
  i(l) ? (m(), $("span", {
1806
1806
  key: 0,
1807
1807
  textContent: N(("t" in y ? y.t : i(c))("save.savedAtText", { time: i(un)(i(l)) }))
1808
- }, null, 8, Hl)) : (m(), $("span", {
1808
+ }, null, 8, zl)) : (m(), $("span", {
1809
1809
  key: 1,
1810
1810
  textContent: N(("t" in y ? y.t : i(c))("save.unsaved"))
1811
- }, null, 8, zl))
1811
+ }, null, 8, Ol))
1812
1812
  ]),
1813
- g("div", Ol, [
1814
- v(R, {
1813
+ g("div", Pl, [
1814
+ v(E, {
1815
1815
  size: "tiny",
1816
1816
  type: "primary",
1817
1817
  onClick: C
@@ -1821,7 +1821,7 @@ const Be = {
1821
1821
  ]),
1822
1822
  _: 1
1823
1823
  }),
1824
- v(R, {
1824
+ v(E, {
1825
1825
  size: "tiny",
1826
1826
  onClick: x
1827
1827
  }, {
@@ -1837,7 +1837,7 @@ const Be = {
1837
1837
  }, 8, ["show", "to"])
1838
1838
  ])
1839
1839
  ]),
1840
- v(D, {
1840
+ v(P, {
1841
1841
  show: i(s),
1842
1842
  "onUpdate:show": L[3] || (L[3] = (q) => Ge(s) ? s.value = q : null),
1843
1843
  width: 320,
@@ -1848,7 +1848,7 @@ const Be = {
1848
1848
  default: A(() => [
1849
1849
  v(S, { "body-content-class": "smart-scrollbar" }, {
1850
1850
  header: A(() => [
1851
- g("div", Pl, [
1851
+ g("div", Wl, [
1852
1852
  L[10] || (L[10] = g("i", { class: "smart-icon i-sed:shortcut" }, null, -1)),
1853
1853
  te(" " + N(("t" in y ? y.t : i(c))("shortcut.title")), 1)
1854
1854
  ])
@@ -1864,7 +1864,7 @@ const Be = {
1864
1864
  ], 64);
1865
1865
  };
1866
1866
  }
1867
- }, Vl = /* @__PURE__ */ H(Wl, [["__scopeId", "data-v-a66f175f"]]), bo = ["table", "orderedList", "bulletList"], Dl = $e.create({
1867
+ }, Dl = /* @__PURE__ */ z(Vl, [["__scopeId", "data-v-a66f175f"]]), bo = ["table", "orderedList", "bulletList"], Ul = $e.create({
1868
1868
  name: "selection",
1869
1869
  addProseMirrorPlugins() {
1870
1870
  const { editor: r } = this;
@@ -1925,7 +1925,7 @@ function at(r) {
1925
1925
  const { from: e, to: n, empty: o } = r.state.selection;
1926
1926
  return o ? "" : r.state.doc.textBetween(e, n, "");
1927
1927
  }
1928
- const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-search-text" }, ql = { class: "smart-replace-text" }, jl = { class: "smart-advanced-options" }, Gl = { class: "smart-button-actions" }, Kl = {
1928
+ const Jl = { class: "smart-search-replace-container" }, ql = { class: "smart-search-text" }, jl = { class: "smart-replace-text" }, Gl = { class: "smart-advanced-options" }, Kl = { class: "smart-button-actions" }, Yl = {
1929
1929
  __name: "search-replace",
1930
1930
  setup(r) {
1931
1931
  const { editor: e, searchReplace: n } = M(), o = B(null), t = B(null);
@@ -1939,7 +1939,7 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
1939
1939
  At("ctrl+f, command+f", () => {
1940
1940
  n.value = !0;
1941
1941
  });
1942
- const p = W(
1942
+ const p = V(
1943
1943
  () => {
1944
1944
  var w, y;
1945
1945
  return ((y = (w = e.value) == null ? void 0 : w.storage.searchAndReplace) == null ? void 0 : y.results.length) || 0;
@@ -1959,10 +1959,10 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
1959
1959
  if (!L)
1960
1960
  return;
1961
1961
  e.value.commands.setTextSelection(L);
1962
- const { node: R } = e.value.view.domAtPos(
1962
+ const { node: E } = e.value.view.domAtPos(
1963
1963
  e.value.state.selection.anchor
1964
1964
  );
1965
- R.scrollIntoView({ behavior: "smooth", block: "center" });
1965
+ E.scrollIntoView({ behavior: "smooth", block: "center" });
1966
1966
  }
1967
1967
  pe(
1968
1968
  () => a.value.trim(),
@@ -2001,8 +2001,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2001
2001
  a.value = w ? at(e.value) : "";
2002
2002
  }
2003
2003
  ), (w, y) => {
2004
- const L = Bn, R = Se, I = er, U = tr;
2005
- return i(n) ? (m(), _(i($r), {
2004
+ const L = Bn, E = Se, I = tr, U = nr;
2005
+ return i(n) ? (m(), _(i(Mr), {
2006
2006
  key: 0,
2007
2007
  "container-element": i(o),
2008
2008
  style: { position: "fixed", "z-index": "1000" },
@@ -2023,8 +2023,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2023
2023
  }, N(("t" in w ? w.t : i(c))("search.title")), 513)
2024
2024
  ]),
2025
2025
  default: A(() => [
2026
- g("div", Ul, [
2027
- g("div", Jl, [
2026
+ g("div", Jl, [
2027
+ g("div", ql, [
2028
2028
  v(L, {
2029
2029
  value: i(a),
2030
2030
  "onUpdate:value": y[0] || (y[0] = (O) => Ge(a) ? a.value = O : null),
@@ -2032,14 +2032,14 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2032
2032
  clearable: ""
2033
2033
  }, {
2034
2034
  suffix: A(() => {
2035
- var O, S, D;
2035
+ var O, S, P;
2036
2036
  return [
2037
- te(N(i(a) !== "" && i(p) !== 0 ? ((D = (S = (O = i(e)) == null ? void 0 : O.storage) == null ? void 0 : S.searchAndReplace) == null ? void 0 : D.resultIndex) + 1 : 0) + " / " + N(i(p)), 1)
2037
+ te(N(i(a) !== "" && i(p) !== 0 ? ((P = (S = (O = i(e)) == null ? void 0 : O.storage) == null ? void 0 : S.searchAndReplace) == null ? void 0 : P.resultIndex) + 1 : 0) + " / " + N(i(p)), 1)
2038
2038
  ];
2039
2039
  }),
2040
2040
  _: 1
2041
2041
  }, 8, ["value", "placeholder"]),
2042
- v(R, {
2042
+ v(E, {
2043
2043
  disabled: i(p) === 0,
2044
2044
  quaternary: "",
2045
2045
  onClick: k
@@ -2049,7 +2049,7 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2049
2049
  ])),
2050
2050
  _: 1
2051
2051
  }, 8, ["disabled"]),
2052
- v(R, {
2052
+ v(E, {
2053
2053
  disabled: i(p) === 0,
2054
2054
  quaternary: "",
2055
2055
  onClick: C
@@ -2063,7 +2063,7 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2063
2063
  _: 1
2064
2064
  }, 8, ["disabled"])
2065
2065
  ]),
2066
- g("div", ql, [
2066
+ g("div", jl, [
2067
2067
  v(L, {
2068
2068
  value: i(u),
2069
2069
  "onUpdate:value": y[1] || (y[1] = (O) => Ge(u) ? u.value = O : null),
@@ -2071,7 +2071,7 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2071
2071
  clearable: ""
2072
2072
  }, null, 8, ["value", "placeholder"])
2073
2073
  ]),
2074
- g("div", jl, [
2074
+ g("div", Gl, [
2075
2075
  v(I, {
2076
2076
  checked: i(d),
2077
2077
  "onUpdate:checked": y[2] || (y[2] = (O) => Ge(d) ? d.value = O : null)
@@ -2082,8 +2082,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2082
2082
  _: 1
2083
2083
  }, 8, ["checked"])
2084
2084
  ]),
2085
- g("div", Gl, [
2086
- v(R, {
2085
+ g("div", Kl, [
2086
+ v(E, {
2087
2087
  disabled: i(p) === 0,
2088
2088
  quaternary: "",
2089
2089
  onClick: x
@@ -2093,7 +2093,7 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2093
2093
  ]),
2094
2094
  _: 1
2095
2095
  }, 8, ["disabled"]),
2096
- v(R, {
2096
+ v(E, {
2097
2097
  disabled: i(p) === 0,
2098
2098
  quaternary: "",
2099
2099
  onClick: T
@@ -2103,7 +2103,7 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2103
2103
  ]),
2104
2104
  _: 1
2105
2105
  }, 8, ["disabled"]),
2106
- v(R, {
2106
+ v(E, {
2107
2107
  disabled: i(p) === 0,
2108
2108
  type: "primary",
2109
2109
  onClick: k
@@ -2123,14 +2123,14 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2123
2123
  }, 8, ["container-element", "handle"])) : F("", !0);
2124
2124
  };
2125
2125
  }
2126
- }, Yl = /* @__PURE__ */ H(Kl, [["__scopeId", "data-v-362bc17d"]]), Zl = {
2126
+ }, Zl = /* @__PURE__ */ z(Yl, [["__scopeId", "data-v-362bc17d"]]), Xl = {
2127
2127
  __name: "common",
2128
2128
  setup(r) {
2129
2129
  const { container: e, editor: n, blockMenu: o } = M(), t = B(!1);
2130
2130
  function l(u) {
2131
2131
  return () => _e("i", { class: `${u}`, style: "font-size: 16px;" });
2132
2132
  }
2133
- const s = W(() => [
2133
+ const s = V(() => [
2134
2134
  {
2135
2135
  label: c("blockMenu.clearFormat"),
2136
2136
  key: "clearFormat",
@@ -2247,7 +2247,7 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2247
2247
  }, 8, ["to", "options"]);
2248
2248
  };
2249
2249
  }
2250
- }, Xl = /* @__PURE__ */ H(Zl, [["__scopeId", "data-v-60ea9768"]]), Ql = {
2250
+ }, Ql = /* @__PURE__ */ z(Xl, [["__scopeId", "data-v-60ea9768"]]), es = {
2251
2251
  __name: "node",
2252
2252
  setup(r) {
2253
2253
  const { container: e, editor: n, blockMenu: o, options: t, assistantBox: l } = M(), s = B(!1), a = B(!1), u = B(""), d = B("");
@@ -2263,14 +2263,14 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2263
2263
  a.value = !1;
2264
2264
  }
2265
2265
  }
2266
- const b = W(() => {
2267
- var C, x, T, w, y, L, R, I, U, O, S, D, j, q, Q, G, ue, ee, he, Ce, Le, We, Ne;
2266
+ const b = V(() => {
2267
+ var C, x, T, w, y, L, E, I, U, O, S, P, j, q, Q, G, ue, ee, he, Ce, Le, We, Ne;
2268
2268
  return [
2269
2269
  {
2270
2270
  label: c("assistant.text"),
2271
2271
  key: "assistant",
2272
2272
  icon: p("i-sed:assistant"),
2273
- show: !!((x = (C = t.value) == null ? void 0 : C.assistant) != null && x.enabled && ((T = n.value) != null && T.isActive("paragraph") || (w = n.value) != null && w.isActive("heading")) && ((I = (R = (L = (y = n.value) == null ? void 0 : y.state) == null ? void 0 : L.selection) == null ? void 0 : R.$from) != null && I.nodeAfter)),
2273
+ show: !!((x = (C = t.value) == null ? void 0 : C.assistant) != null && x.enabled && ((T = n.value) != null && T.isActive("paragraph") || (w = n.value) != null && w.isActive("heading")) && ((I = (E = (L = (y = n.value) == null ? void 0 : y.state) == null ? void 0 : L.selection) == null ? void 0 : E.$from) != null && I.nodeAfter)),
2274
2274
  props: {
2275
2275
  onClick: () => {
2276
2276
  h();
@@ -2280,7 +2280,7 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2280
2280
  {
2281
2281
  type: "divider",
2282
2282
  key: "d1",
2283
- show: !!((O = (U = t.value) == null ? void 0 : U.assistant) != null && O.enabled && ((S = n.value) != null && S.isActive("paragraph") || (D = n.value) != null && D.isActive("heading")) && ((G = (Q = (q = (j = n.value) == null ? void 0 : j.state) == null ? void 0 : q.selection) == null ? void 0 : Q.$from) != null && G.nodeAfter))
2283
+ show: !!((O = (U = t.value) == null ? void 0 : U.assistant) != null && O.enabled && ((S = n.value) != null && S.isActive("paragraph") || (P = n.value) != null && P.isActive("heading")) && ((G = (Q = (q = (j = n.value) == null ? void 0 : j.state) == null ? void 0 : q.selection) == null ? void 0 : Q.$from) != null && G.nodeAfter))
2284
2284
  },
2285
2285
  {
2286
2286
  key: "insert",
@@ -2304,8 +2304,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2304
2304
  icon: p("i-sed:split-block"),
2305
2305
  props: {
2306
2306
  onClick: () => {
2307
- var P, X;
2308
- (P = n.value) == null || P.chain().focus().enter().run(), (X = n.value) == null || X.chain().focus().setHorizontalRule().run();
2307
+ var W, X;
2308
+ (W = n.value) == null || W.chain().focus().enter().run(), (X = n.value) == null || X.chain().focus().setHorizontalRule().run();
2309
2309
  }
2310
2310
  }
2311
2311
  },
@@ -2378,8 +2378,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2378
2378
  icon: p("i-sed:code-block"),
2379
2379
  props: {
2380
2380
  onClick: () => {
2381
- var P, X;
2382
- (P = n.value) == null || P.chain().focus().setCodeBlock().run(), (X = n.value) == null || X.chain().focus().enter().run();
2381
+ var W, X;
2382
+ (W = n.value) == null || W.chain().focus().setCodeBlock().run(), (X = n.value) == null || X.chain().focus().enter().run();
2383
2383
  }
2384
2384
  }
2385
2385
  },
@@ -2507,8 +2507,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2507
2507
  disabled: (ue = n.value) == null ? void 0 : ue.isActive("paragraph"),
2508
2508
  props: {
2509
2509
  onClick: () => {
2510
- var P, X;
2511
- (P = n.value) == null || P.chain().focus().run(), (X = n.value) == null || X.chain().focus().setParagraph().run();
2510
+ var W, X;
2511
+ (W = n.value) == null || W.chain().focus().run(), (X = n.value) == null || X.chain().focus().setParagraph().run();
2512
2512
  }
2513
2513
  }
2514
2514
  },
@@ -2524,8 +2524,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2524
2524
  disabled: (ee = n.value) == null ? void 0 : ee.isActive("heading", { level: 1 }),
2525
2525
  props: {
2526
2526
  onClick: () => {
2527
- var P, X, ce;
2528
- (P = n.value) != null && P.isActive("heading", { level: 1 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 1 }).run());
2527
+ var W, X, ce;
2528
+ (W = n.value) != null && W.isActive("heading", { level: 1 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 1 }).run());
2529
2529
  }
2530
2530
  }
2531
2531
  },
@@ -2536,8 +2536,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2536
2536
  disabled: (he = n.value) == null ? void 0 : he.isActive("heading", { level: 2 }),
2537
2537
  props: {
2538
2538
  onClick: () => {
2539
- var P, X, ce;
2540
- (P = n.value) != null && P.isActive("heading", { level: 2 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 2 }).run());
2539
+ var W, X, ce;
2540
+ (W = n.value) != null && W.isActive("heading", { level: 2 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 2 }).run());
2541
2541
  }
2542
2542
  }
2543
2543
  },
@@ -2548,8 +2548,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2548
2548
  disabled: (Ce = n.value) == null ? void 0 : Ce.isActive("heading", { level: 3 }),
2549
2549
  props: {
2550
2550
  onClick: () => {
2551
- var P, X, ce;
2552
- (P = n.value) != null && P.isActive("heading", { level: 3 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 3 }).run());
2551
+ var W, X, ce;
2552
+ (W = n.value) != null && W.isActive("heading", { level: 3 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 3 }).run());
2553
2553
  }
2554
2554
  }
2555
2555
  },
@@ -2560,8 +2560,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2560
2560
  disabled: (Le = n.value) == null ? void 0 : Le.isActive("heading", { level: 4 }),
2561
2561
  props: {
2562
2562
  onClick: () => {
2563
- var P, X, ce;
2564
- (P = n.value) != null && P.isActive("heading", { level: 4 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 4 }).run());
2563
+ var W, X, ce;
2564
+ (W = n.value) != null && W.isActive("heading", { level: 4 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 4 }).run());
2565
2565
  }
2566
2566
  }
2567
2567
  },
@@ -2572,8 +2572,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2572
2572
  disabled: (We = n.value) == null ? void 0 : We.isActive("heading", { level: 5 }),
2573
2573
  props: {
2574
2574
  onClick: () => {
2575
- var P, X, ce;
2576
- (P = n.value) != null && P.isActive("heading", { level: 5 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 5 }).run());
2575
+ var W, X, ce;
2576
+ (W = n.value) != null && W.isActive("heading", { level: 5 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 5 }).run());
2577
2577
  }
2578
2578
  }
2579
2579
  },
@@ -2584,8 +2584,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2584
2584
  disabled: (Ne = n.value) == null ? void 0 : Ne.isActive("heading", { level: 6 }),
2585
2585
  props: {
2586
2586
  onClick: () => {
2587
- var P, X, ce;
2588
- (P = n.value) != null && P.isActive("heading", { level: 6 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 6 }).run());
2587
+ var W, X, ce;
2588
+ (W = n.value) != null && W.isActive("heading", { level: 6 }) || ((X = n.value) == null || X.chain().focus().run(), (ce = n.value) == null || ce.chain().focus().toggleHeading({ level: 6 }).run());
2589
2589
  }
2590
2590
  }
2591
2591
  }
@@ -2597,8 +2597,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2597
2597
  icon: p("i-sed:quote"),
2598
2598
  props: {
2599
2599
  onClick: () => {
2600
- var P;
2601
- (P = n.value) == null || P.chain().focus().toggleBlockquote().run();
2600
+ var W;
2601
+ (W = n.value) == null || W.chain().focus().toggleBlockquote().run();
2602
2602
  }
2603
2603
  }
2604
2604
  },
@@ -2608,8 +2608,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2608
2608
  icon: p("i-sed:column-block"),
2609
2609
  props: {
2610
2610
  onClick: () => {
2611
- var P;
2612
- (P = n.value) == null || P.chain().focus().setColumns(2).run();
2611
+ var W;
2612
+ (W = n.value) == null || W.chain().focus().setColumns(2).run();
2613
2613
  }
2614
2614
  }
2615
2615
  },
@@ -2619,8 +2619,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2619
2619
  icon: p("i-sed:fold-block"),
2620
2620
  props: {
2621
2621
  onClick: () => {
2622
- var P;
2623
- (P = n.value) == null || P.chain().focus().setDetails().run();
2622
+ var W;
2623
+ (W = n.value) == null || W.chain().focus().setDetails().run();
2624
2624
  }
2625
2625
  }
2626
2626
  },
@@ -2630,8 +2630,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2630
2630
  icon: p("i-sed:highlight-block"),
2631
2631
  props: {
2632
2632
  onClick: () => {
2633
- var P;
2634
- (P = n.value) == null || P.chain().focus().setHighlightBlock().run();
2633
+ var W;
2634
+ (W = n.value) == null || W.chain().focus().setHighlightBlock().run();
2635
2635
  }
2636
2636
  }
2637
2637
  }
@@ -2658,13 +2658,13 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2658
2658
  "onUpdate:show": k
2659
2659
  }, {
2660
2660
  default: A(() => {
2661
- var L, R;
2661
+ var L, E;
2662
2662
  return [
2663
2663
  v(T, {
2664
2664
  class: K(["smart-menu-button", { active: i(s) && ((L = i(n)) == null ? void 0 : L.isEditable) !== !1 }]),
2665
2665
  quaternary: "",
2666
2666
  size: "small",
2667
- disabled: ((R = i(n)) == null ? void 0 : R.isEditable) === !1
2667
+ disabled: ((E = i(n)) == null ? void 0 : E.isEditable) === !1
2668
2668
  }, {
2669
2669
  default: A(() => x[1] || (x[1] = [
2670
2670
  g("div", { class: "smart-button-content" }, [
@@ -2687,8 +2687,8 @@ const Ul = { class: "smart-search-replace-container" }, Jl = { class: "smart-sea
2687
2687
  ], 64);
2688
2688
  };
2689
2689
  }
2690
- }, es = /* @__PURE__ */ H(Ql, [["__scopeId", "data-v-b89125bb"]]);
2691
- function ts(r, e) {
2690
+ }, ts = /* @__PURE__ */ z(es, [["__scopeId", "data-v-b89125bb"]]);
2691
+ function ns(r, e) {
2692
2692
  const n = document.querySelector(
2693
2693
  `${e} .smart-node-focused, ${e} .ProseMirror-gapcursor`
2694
2694
  );
@@ -2697,23 +2697,23 @@ function ts(r, e) {
2697
2697
  let { offsetTop: o, offsetLeft: t } = n;
2698
2698
  return o = n.tagName === "DIV" ? o - 8 : o - 5, n.classList.contains("ProseMirror-gapcursor") && (o = o + 5), (r.value.isActive("horizontalRule") || r.value.isActive("table") || n.classList.contains("ProseMirror-gapcursor")) && (o = o + 5), { offsetTop: o, offsetLeft: t };
2699
2699
  }
2700
- const ns = {
2700
+ const os = {
2701
2701
  __name: "index",
2702
2702
  setup(r) {
2703
2703
  const { editor: e, container: n } = M(), o = B(!1), t = B(0), l = B("auto");
2704
2704
  function s() {
2705
2705
  l.value = e.value && at(e.value).length > 0 ? "none" : "auto";
2706
- const { offsetTop: a } = ts(e, n);
2706
+ const { offsetTop: a } = ns(e, n);
2707
2707
  a !== null && (o.value = !0, t.value = a);
2708
2708
  }
2709
2709
  return Fe(() => {
2710
2710
  var a;
2711
2711
  e ? ((a = e.value) == null || a.on("selectionUpdate", s), e.value.on("focus", s)) : o.value = !1;
2712
- }), gr(() => {
2712
+ }), _r(() => {
2713
2713
  var a, u;
2714
2714
  e && ((a = e.value) == null || a.off("selectionUpdate", s), (u = e.value) == null || u.off("focus", s));
2715
2715
  }), (a, u) => {
2716
- const d = es, p = Xl;
2716
+ const d = ts, p = Ql;
2717
2717
  return i(o) ? (m(), $("div", {
2718
2718
  key: 0,
2719
2719
  class: "smart-block-menu-hander",
@@ -2729,25 +2729,25 @@ const ns = {
2729
2729
  ], 4)) : F("", !0);
2730
2730
  };
2731
2731
  }
2732
- }, os = { class: "assistant_panel" }, rs = { class: "assistant_panel_body" }, ls = {
2732
+ }, rs = { class: "assistant_panel" }, ls = { class: "assistant_panel_body" }, ss = {
2733
2733
  key: 0,
2734
2734
  class: "title"
2735
- }, ss = { key: 0 }, is = { class: "stop_text" }, as = {
2735
+ }, is = { key: 0 }, as = { class: "stop_text" }, us = {
2736
2736
  key: 1,
2737
2737
  class: "result_wrapper"
2738
- }, us = {
2738
+ }, cs = {
2739
2739
  key: 0,
2740
2740
  class: "operation"
2741
- }, cs = ["innerHTML"], ds = { class: "dot" }, ps = {
2741
+ }, ds = ["innerHTML"], ps = { class: "dot" }, ms = {
2742
2742
  key: 0,
2743
2743
  class: "assistant_panel_action smart-scrollbar"
2744
- }, ms = ["onClick"], fs = { class: "prompt_item_icon" }, hs = { class: "prompt_item_text" }, bs = {
2744
+ }, fs = ["onClick"], hs = { class: "prompt_item_icon" }, bs = { class: "prompt_item_text" }, vs = {
2745
2745
  __name: "input",
2746
2746
  setup(r) {
2747
2747
  const { options: e, editor: n, assistantBox: o } = M(), t = B(!1), l = B(""), s = B(!1), a = B(30), u = B(0), d = B(0), p = B({
2748
2748
  content: "",
2749
2749
  error: !1
2750
- }), f = B(null), b = B(null), h = B(null), k = W(() => [
2750
+ }), f = B(null), b = B(null), h = B(null), k = V(() => [
2751
2751
  {
2752
2752
  category: "continue_write",
2753
2753
  iconSvg: "assistant-keep-write",
@@ -2812,13 +2812,13 @@ const ns = {
2812
2812
  };
2813
2813
  const { aiTalk: U, handleError: O, handleMessage: S } = e.value.assistant;
2814
2814
  h.value = new AbortController();
2815
- const { signal: D } = h.value;
2815
+ const { signal: P } = h.value;
2816
2816
  t.value = !0;
2817
2817
  try {
2818
2818
  const j = await U({
2819
2819
  msg: at(n.value),
2820
2820
  category: b.value.category,
2821
- signal: D
2821
+ signal: P
2822
2822
  });
2823
2823
  if (!j.ok) {
2824
2824
  O(new Error("请求失败")), w();
@@ -2863,16 +2863,16 @@ const ns = {
2863
2863
  const { to: I } = (U = n.value) == null ? void 0 : U.state.selection;
2864
2864
  (O = n.value) == null || O.chain().focus().insertContentAt(I, p.value.content).run();
2865
2865
  }
2866
- function R() {
2866
+ function E() {
2867
2867
  var O, S;
2868
2868
  const { from: I, to: U } = (O = n.value) == null ? void 0 : O.state.selection;
2869
2869
  (S = n.value) == null || S.chain().focus().insertContentAt({ from: I, to: U }, p.value.content).run();
2870
2870
  }
2871
2871
  return Ze(() => {
2872
2872
  h.value && h.value.abort();
2873
- }), (I, U) => (m(), $("div", os, [
2874
- g("div", rs, [
2875
- i(p).content === "" || i(t) ? (m(), $("div", ls, [
2873
+ }), (I, U) => (m(), $("div", rs, [
2874
+ g("div", ls, [
2875
+ i(p).content === "" || i(t) ? (m(), $("div", ss, [
2876
2876
  U[3] || (U[3] = g("div", { class: "title_icon" }, null, -1)),
2877
2877
  i(t) ? (m(), $(J, { key: 1 }, [
2878
2878
  g("div", null, N(i(c)("assistant.loading")), 1),
@@ -2881,20 +2881,20 @@ const ns = {
2881
2881
  onClick: y
2882
2882
  }, [
2883
2883
  U[1] || (U[1] = g("i", { class: "i-sed:assistant-stop text-[#497fed]" }, null, -1)),
2884
- g("span", is, N(i(c)("assistant.stop")), 1),
2884
+ g("span", as, N(i(c)("assistant.stop")), 1),
2885
2885
  U[2] || (U[2] = g("span", { class: "stop_en" }, "ESC", -1))
2886
2886
  ])
2887
- ], 64)) : (m(), $("div", ss, N(i(c)("assistant.ask")), 1))
2887
+ ], 64)) : (m(), $("div", is, N(i(c)("assistant.ask")), 1))
2888
2888
  ])) : F("", !0),
2889
- i(p).content !== "" ? (m(), $("div", as, [
2890
- i(t) ? F("", !0) : (m(), $("div", us, [
2889
+ i(p).content !== "" ? (m(), $("div", us, [
2890
+ i(t) ? F("", !0) : (m(), $("div", cs, [
2891
2891
  g("button", {
2892
2892
  class: "operation_button primary",
2893
2893
  onClick: L
2894
2894
  }, N(i(c)("assistant.insertBelow")), 1),
2895
2895
  g("button", {
2896
2896
  class: "operation_button",
2897
- onClick: R
2897
+ onClick: E
2898
2898
  }, N(i(c)("assistant.replace")), 1),
2899
2899
  g("button", {
2900
2900
  class: "operation_button",
@@ -2910,42 +2910,42 @@ const ns = {
2910
2910
  ref: f,
2911
2911
  class: "result",
2912
2912
  innerHTML: i(p).content
2913
- }, null, 8, cs),
2914
- g("div", ds, N(i(c)("assistant.comment")), 1)
2913
+ }, null, 8, ds),
2914
+ g("div", ps, N(i(c)("assistant.comment")), 1)
2915
2915
  ])) : F("", !0)
2916
2916
  ]),
2917
- i(p).content === "" ? (m(), $("div", ps, [
2917
+ i(p).content === "" ? (m(), $("div", ms, [
2918
2918
  (m(!0), $(J, null, ge(i(k), (O, S) => (m(), $("div", {
2919
2919
  key: S,
2920
2920
  class: "prompt_item",
2921
- onClick: (D) => T(O)
2921
+ onClick: (P) => T(O)
2922
2922
  }, [
2923
- g("div", fs, [
2923
+ g("div", hs, [
2924
2924
  g("i", {
2925
2925
  class: K(`i-sed:${O.iconSvg}`)
2926
2926
  }, null, 2)
2927
2927
  ]),
2928
- g("div", hs, N(O.title), 1)
2929
- ], 8, ms))), 128))
2928
+ g("div", bs, N(O.title), 1)
2929
+ ], 8, fs))), 128))
2930
2930
  ])) : F("", !0)
2931
2931
  ]));
2932
2932
  }
2933
- }, vs = /* @__PURE__ */ H(bs, [["__scopeId", "data-v-0a4456ba"]]), gs = { class: "smart-button-content" }, _s = { class: "smart-button-text" }, ys = {
2933
+ }, gs = /* @__PURE__ */ z(vs, [["__scopeId", "data-v-0a4456ba"]]), _s = { class: "smart-button-content" }, ys = { class: "smart-button-text" }, ks = {
2934
2934
  key: 1,
2935
2935
  class: "smart-button-kbd"
2936
- }, ks = { class: "smart-button-content" }, Cs = { class: "smart-button-text" }, ws = {
2936
+ }, Cs = { class: "smart-button-content" }, ws = { class: "smart-button-text" }, xs = {
2937
2937
  key: 1,
2938
2938
  class: "smart-button-kbd"
2939
- }, xs = { class: "smart-button-text" }, As = {
2939
+ }, As = { class: "smart-button-text" }, Ts = {
2940
2940
  key: 1,
2941
2941
  class: "smart-button-kbd"
2942
- }, Ts = { class: "smart-button-content" }, Ss = { class: "smart-button-text" }, $s = {
2942
+ }, Ss = { class: "smart-button-content" }, $s = { class: "smart-button-text" }, Ms = {
2943
2943
  key: 1,
2944
2944
  class: "smart-button-kbd"
2945
- }, Ms = {
2945
+ }, Bs = {
2946
2946
  class: "p-x-8 p-y-4",
2947
2947
  style: { fontSize: "12px" }
2948
- }, Bs = {
2948
+ }, Ls = {
2949
2949
  __name: "button",
2950
2950
  props: {
2951
2951
  showTooltip: {
@@ -3053,7 +3053,7 @@ const ns = {
3053
3053
  "show-arrow": !1
3054
3054
  }, {
3055
3055
  trigger: A(() => {
3056
- var R, I, U, O;
3056
+ var E, I, U, O;
3057
3057
  return [
3058
3058
  g("div", {
3059
3059
  class: "smart-menu-button-wrap",
@@ -3065,21 +3065,21 @@ const ns = {
3065
3065
  key: 0,
3066
3066
  class: ["smart-menu-button", {
3067
3067
  "show-text": !r.hideText,
3068
- active: r.menuActive && ((R = i(s)) == null ? void 0 : R.isEditable) !== !1
3068
+ active: r.menuActive && ((E = i(s)) == null ? void 0 : E.isEditable) !== !1
3069
3069
  }],
3070
3070
  quaternary: "",
3071
3071
  size: "small",
3072
3072
  disabled: r.disabled || ((I = i(s)) == null ? void 0 : I.isEditable) === !1
3073
3073
  }, i(t), { onClick: a }), {
3074
3074
  default: A(() => [
3075
- g("div", gs, [
3075
+ g("div", _s, [
3076
3076
  de(C.$slots, "default", {}, void 0, !0),
3077
3077
  r.ico ? (m(), $("i", {
3078
3078
  key: 0,
3079
3079
  class: K(`${r.ico}`)
3080
3080
  }, null, 2)) : F("", !0),
3081
- g("p", _s, N(r.text), 1),
3082
- r.shortcutText ? (m(), $("kbd", ys, N(i(we)(r.shortcutText)), 1)) : F("", !0)
3081
+ g("p", ys, N(r.text), 1),
3082
+ r.shortcutText ? (m(), $("kbd", ks, N(i(we)(r.shortcutText)), 1)) : F("", !0)
3083
3083
  ])
3084
3084
  ]),
3085
3085
  _: 3
@@ -3103,14 +3103,14 @@ const ns = {
3103
3103
  disabled: r.disabled || ((S = i(s)) == null ? void 0 : S.isEditable) === !1
3104
3104
  }, i(t)), {
3105
3105
  default: A(() => [
3106
- g("div", ks, [
3106
+ g("div", Cs, [
3107
3107
  de(C.$slots, "default", {}, void 0, !0),
3108
3108
  r.ico ? (m(), $("i", {
3109
3109
  key: 0,
3110
3110
  class: K(`${r.ico}`)
3111
3111
  }, null, 2)) : F("", !0),
3112
- g("p", Cs, N(r.text), 1),
3113
- r.shortcutText ? (m(), $("kbd", ws, N(i(we)(r.shortcutText)), 1)) : F("", !0)
3112
+ g("p", ws, N(r.text), 1),
3113
+ r.shortcutText ? (m(), $("kbd", xs, N(i(we)(r.shortcutText)), 1)) : F("", !0)
3114
3114
  ]),
3115
3115
  x[5] || (x[5] = g("span", { class: "smart-button-icon-arrow" }, [
3116
3116
  g("i", { class: "i-sed:arrow-down" })
@@ -3158,8 +3158,8 @@ const ns = {
3158
3158
  key: 0,
3159
3159
  class: K(`${r.ico}`)
3160
3160
  }, null, 2)) : F("", !0),
3161
- g("p", xs, N(r.text), 1),
3162
- r.shortcutText ? (m(), $("kbd", As, N(i(we)(r.shortcutText)), 1)) : F("", !0)
3161
+ g("p", As, N(r.text), 1),
3162
+ r.shortcutText ? (m(), $("kbd", Ts, N(i(we)(r.shortcutText)), 1)) : F("", !0)
3163
3163
  ]),
3164
3164
  v(L, {
3165
3165
  show: r.popupVisible,
@@ -3200,7 +3200,7 @@ const ns = {
3200
3200
  trigger: "click"
3201
3201
  }, {
3202
3202
  trigger: A(() => {
3203
- var S, D;
3203
+ var S, P;
3204
3204
  return [
3205
3205
  v(T, ve({
3206
3206
  ref_key: "popupHandleRef",
@@ -3211,19 +3211,19 @@ const ns = {
3211
3211
  }],
3212
3212
  quaternary: "",
3213
3213
  size: "small",
3214
- disabled: r.disabled || ((D = i(s)) == null ? void 0 : D.isEditable) === !1
3214
+ disabled: r.disabled || ((P = i(s)) == null ? void 0 : P.isEditable) === !1
3215
3215
  }, i(t), {
3216
3216
  onClick: x[1] || (x[1] = (j) => k(!r.popupVisible))
3217
3217
  }), {
3218
3218
  default: A(() => [
3219
- g("div", Ts, [
3219
+ g("div", Ss, [
3220
3220
  de(C.$slots, "default", {}, void 0, !0),
3221
3221
  r.ico ? (m(), $("i", {
3222
3222
  key: 0,
3223
3223
  class: K(`${r.ico}`)
3224
3224
  }, null, 2)) : F("", !0),
3225
- g("p", Ss, N(r.text), 1),
3226
- r.shortcutText ? (m(), $("kbd", $s, N(i(we)(r.shortcutText)), 1)) : F("", !0)
3225
+ g("p", $s, N(r.text), 1),
3226
+ r.shortcutText ? (m(), $("kbd", Ms, N(i(we)(r.shortcutText)), 1)) : F("", !0)
3227
3227
  ]),
3228
3228
  x[7] || (x[7] = g("span", { class: "smart-button-icon-arrow" }, [
3229
3229
  g("i", { class: "i-sed:arrow-down" })
@@ -3249,20 +3249,20 @@ const ns = {
3249
3249
  ];
3250
3250
  }),
3251
3251
  default: A(() => [
3252
- g("span", Ms, N(f()), 1)
3252
+ g("span", Bs, N(f()), 1)
3253
3253
  ]),
3254
3254
  _: 3
3255
3255
  }, 8, ["show", "to"]);
3256
3256
  };
3257
3257
  }
3258
- }, E = /* @__PURE__ */ H(Bs, [["__scopeId", "data-v-ccc2f840"]]);
3258
+ }, R = /* @__PURE__ */ z(Ls, [["__scopeId", "data-v-ccc2f840"]]);
3259
3259
  function ye() {
3260
3260
  const r = B(!1);
3261
3261
  return { popupVisible: r, togglePopup: (n) => {
3262
3262
  r.value = n ?? !r.value;
3263
3263
  } };
3264
3264
  }
3265
- const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { class: "smart-color-picker-group" }, Es = ["onClick"], Is = ["textContent"], Fs = { class: "smart-color-picker-group" }, Hs = ["onClick"], zs = ["textContent"], Os = { class: "smart-color-picker-group" }, Ps = ["onClick"], Ws = {
3265
+ const Ns = ["id"], Rs = { class: "smart-color-picker-default-button" }, Es = { class: "smart-color-picker-group" }, Is = ["onClick"], Fs = ["textContent"], Hs = { class: "smart-color-picker-group" }, zs = ["onClick"], Os = ["textContent"], Ps = { class: "smart-color-picker-group" }, Ws = ["onClick"], Vs = {
3266
3266
  __name: "color-picker",
3267
3267
  props: {
3268
3268
  defaultColor: {
@@ -3291,7 +3291,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3291
3291
  id: d.substr(1),
3292
3292
  class: "smart-color-picker-container"
3293
3293
  }, [
3294
- g("div", Ns, [
3294
+ g("div", Rs, [
3295
3295
  v(C, {
3296
3296
  size: "small",
3297
3297
  block: "",
@@ -3303,38 +3303,38 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3303
3303
  _: 1
3304
3304
  })
3305
3305
  ]),
3306
- g("div", Rs, [
3306
+ g("div", Es, [
3307
3307
  (m(!0), $(J, null, ge((T = i(l).dicts) == null ? void 0 : T.colors, (w, y) => (m(), $("div", {
3308
3308
  key: y,
3309
3309
  class: "smart-color-picker-item",
3310
3310
  style: le({ backgroundColor: w }),
3311
3311
  onClick: (L) => f(w)
3312
- }, null, 12, Es))), 128))
3312
+ }, null, 12, Is))), 128))
3313
3313
  ]),
3314
3314
  g("div", {
3315
3315
  class: "smart-color-picker-group-title",
3316
3316
  textContent: N(("t" in h ? h.t : i(c))("colorPicker.standard"))
3317
- }, null, 8, Is),
3318
- g("div", Fs, [
3317
+ }, null, 8, Fs),
3318
+ g("div", Hs, [
3319
3319
  (m(), $(J, null, ge(a, (w, y) => g("div", {
3320
3320
  key: y,
3321
3321
  class: "smart-color-picker-item",
3322
3322
  style: le({ backgroundColor: w }),
3323
3323
  onClick: (L) => f(w)
3324
- }, null, 12, Hs)), 64))
3324
+ }, null, 12, zs)), 64))
3325
3325
  ]),
3326
3326
  i(s).colors.length > 0 ? (m(), $(J, { key: 0 }, [
3327
3327
  g("div", {
3328
3328
  class: "smart-color-picker-group-title",
3329
3329
  textContent: N(("t" in h ? h.t : i(c))("colorPicker.recent"))
3330
- }, null, 8, zs),
3331
- g("div", Os, [
3330
+ }, null, 8, Os),
3331
+ g("div", Ps, [
3332
3332
  (m(!0), $(J, null, ge(i(s).colors, (w, y) => (m(), $("div", {
3333
3333
  key: y,
3334
3334
  class: "smart-color-picker-item",
3335
3335
  style: le({ backgroundColor: w }),
3336
3336
  onClick: (L) => f(w)
3337
- }, null, 12, Ps))), 128))
3337
+ }, null, 12, Ws))), 128))
3338
3338
  ])
3339
3339
  ], 64)) : F("", !0),
3340
3340
  k[1] || (k[1] = g("div", { class: "smart-color-picker-divider" }, null, -1)),
@@ -3344,10 +3344,10 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3344
3344
  "render-label": b,
3345
3345
  onComplete: p
3346
3346
  })
3347
- ], 8, Ls);
3347
+ ], 8, Ns);
3348
3348
  };
3349
3349
  }
3350
- }, ut = /* @__PURE__ */ H(Ws, [["__scopeId", "data-v-06db8e81"]]), Vs = {
3350
+ }, ut = /* @__PURE__ */ z(Vs, [["__scopeId", "data-v-06db8e81"]]), Ds = {
3351
3351
  __name: "background-color",
3352
3352
  props: {
3353
3353
  text: {
@@ -3375,7 +3375,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3375
3375
  d === "" ? (p = s.value) == null || p.chain().focus().unsetHighlight().run() : (f = s.value) == null || f.chain().focus().setHighlight({ color: d }).run();
3376
3376
  }
3377
3377
  return (d, p) => {
3378
- const f = ut, b = E;
3378
+ const f = ut, b = R;
3379
3379
  return m(), _(b, {
3380
3380
  ico: "i-sed:highlight",
3381
3381
  text: r.text || ("t" in d ? d.t : i(c))("base.bgColor"),
@@ -3404,7 +3404,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3404
3404
  }, 8, ["text", "popup-visible", "onTogglePopup"]);
3405
3405
  };
3406
3406
  }
3407
- }, vo = /* @__PURE__ */ H(Vs, [["__scopeId", "data-v-5e0cc688"]]), Ds = {
3407
+ }, vo = /* @__PURE__ */ z(Ds, [["__scopeId", "data-v-5e0cc688"]]), Us = {
3408
3408
  __name: "color",
3409
3409
  props: {
3410
3410
  text: {
@@ -3432,7 +3432,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3432
3432
  d === "" ? (p = s.value) == null || p.chain().focus().unsetColor().run() : (f = s.value) == null || f.chain().focus().setColor(d).run();
3433
3433
  }
3434
3434
  return (d, p) => {
3435
- const f = ut, b = E;
3435
+ const f = ut, b = R;
3436
3436
  return m(), _(b, {
3437
3437
  ico: "i-sed:font-color-picker",
3438
3438
  text: r.text || ("t" in d ? d.t : i(c))("base.color"),
@@ -3461,13 +3461,13 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3461
3461
  }, 8, ["text", "popup-visible", "onTogglePopup"]);
3462
3462
  };
3463
3463
  }
3464
- }, go = /* @__PURE__ */ H(Ds, [["__scopeId", "data-v-de44b29f"]]), _o = {
3464
+ }, go = /* @__PURE__ */ z(Us, [["__scopeId", "data-v-de44b29f"]]), _o = {
3465
3465
  __name: "strike",
3466
3466
  setup(r) {
3467
3467
  const { editor: e } = M();
3468
3468
  return (n, o) => {
3469
3469
  var l, s;
3470
- const t = E;
3470
+ const t = R;
3471
3471
  return m(), _(t, {
3472
3472
  ico: "i-sed:strike",
3473
3473
  text: ("t" in n ? n.t : i(c))("base.strike"),
@@ -3487,7 +3487,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3487
3487
  const { editor: e } = M();
3488
3488
  return (n, o) => {
3489
3489
  var l, s;
3490
- const t = E;
3490
+ const t = R;
3491
3491
  return m(), _(t, {
3492
3492
  ico: "i-sed:underline",
3493
3493
  text: ("t" in n ? n.t : i(c))("base.underline"),
@@ -3508,7 +3508,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3508
3508
  const { editor: e } = M();
3509
3509
  return (n, o) => {
3510
3510
  var l, s;
3511
- const t = E;
3511
+ const t = R;
3512
3512
  return m(), _(t, {
3513
3513
  text: ("t" in n ? n.t : i(c))("base.italic"),
3514
3514
  ico: "i-sed:italic",
@@ -3529,7 +3529,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3529
3529
  const { editor: e } = M();
3530
3530
  return (n, o) => {
3531
3531
  var l, s;
3532
- const t = E;
3532
+ const t = R;
3533
3533
  return m(), _(t, {
3534
3534
  ico: "i-sed:bold",
3535
3535
  text: ("t" in n ? n.t : i(c))("base.bold"),
@@ -3544,7 +3544,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3544
3544
  }, null, 8, ["text", "menu-active", "disabled"]);
3545
3545
  };
3546
3546
  }
3547
- }, Us = {
3547
+ }, Js = {
3548
3548
  __name: "assistant",
3549
3549
  setup(r) {
3550
3550
  const { editor: e, assistantBox: n } = M();
@@ -3553,7 +3553,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3553
3553
  n.value = !0, (t = e.value) == null || t.commands.focus();
3554
3554
  }
3555
3555
  return (t, l) => {
3556
- const s = E;
3556
+ const s = R;
3557
3557
  return m(), _(s, {
3558
3558
  ico: "i-sed:assistant",
3559
3559
  text: ("t" in t ? t.t : i(c))("assistant.text"),
@@ -3561,7 +3561,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3561
3561
  }, null, 8, ["text"]);
3562
3562
  };
3563
3563
  }
3564
- }, Js = {
3564
+ }, qs = {
3565
3565
  __name: "color",
3566
3566
  setup(r) {
3567
3567
  const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = M(), t = B(""), l = B("");
@@ -3570,7 +3570,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3570
3570
  t.value = a, a !== "" && ((u = o.value) == null || u.chain().focus().updateAttributes("highlightBlock", { backgroundColor: a }).run());
3571
3571
  }
3572
3572
  return (a, u) => {
3573
- const d = ut, p = E;
3573
+ const d = ut, p = R;
3574
3574
  return m(), _(p, {
3575
3575
  ico: "i-sed:highlight",
3576
3576
  text: ("t" in a ? a.t : i(c))("base.bgColor"),
@@ -3600,12 +3600,12 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3600
3600
  }, 8, ["text", "popup-visible", "onTogglePopup"]);
3601
3601
  };
3602
3602
  }
3603
- }, qs = /* @__PURE__ */ H(Js, [["__scopeId", "data-v-dd8e0ec3"]]), js = {
3603
+ }, js = /* @__PURE__ */ z(qs, [["__scopeId", "data-v-dd8e0ec3"]]), Gs = {
3604
3604
  __name: "delete",
3605
3605
  setup(r) {
3606
3606
  const { editor: e } = M();
3607
3607
  return (n, o) => {
3608
- const t = E;
3608
+ const t = R;
3609
3609
  return m(), _(t, {
3610
3610
  ico: "i-sed:delete",
3611
3611
  text: ("t" in n ? n.t : i(c))("bubbleMenu.delete"),
@@ -3617,21 +3617,21 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3617
3617
  }, null, 8, ["text"]);
3618
3618
  };
3619
3619
  }
3620
- }, Gs = {
3620
+ }, Ks = {
3621
3621
  __name: "copy",
3622
3622
  setup(r) {
3623
3623
  const { editor: e } = M();
3624
3624
  function n() {
3625
3625
  const o = e.value ? Ie(e.value) : null;
3626
3626
  if (o) {
3627
- const { copy: t } = dr({
3627
+ const { copy: t } = pr({
3628
3628
  source: B(o.attrs.code)
3629
3629
  });
3630
3630
  t(), Be.message.success(c("bubbleMenu.code.copy.success"));
3631
3631
  }
3632
3632
  }
3633
3633
  return (o, t) => {
3634
- const l = E;
3634
+ const l = R;
3635
3635
  return m(), _(l, {
3636
3636
  ico: "i-sed:copy",
3637
3637
  text: ("t" in o ? o.t : i(c))("bubbleMenu.code.copy.text"),
@@ -3639,7 +3639,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3639
3639
  }, null, 8, ["text"]);
3640
3640
  };
3641
3641
  }
3642
- }, Ks = {
3642
+ }, Ys = {
3643
3643
  __name: "word-wrap",
3644
3644
  setup(r) {
3645
3645
  const { editor: e } = M();
@@ -3652,7 +3652,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3652
3652
  }
3653
3653
  return (o, t) => {
3654
3654
  var s, a;
3655
- const l = E;
3655
+ const l = R;
3656
3656
  return m(), _(l, {
3657
3657
  text: ("t" in o ? o.t : i(c))("bubbleMenu.code.wordWrap"),
3658
3658
  ico: "i-sed:code-word-wrap",
@@ -3661,7 +3661,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3661
3661
  }, null, 8, ["text", "menu-active"]);
3662
3662
  };
3663
3663
  }
3664
- }, Ys = {
3664
+ }, Zs = {
3665
3665
  __name: "line-numbers",
3666
3666
  setup(r) {
3667
3667
  const { editor: e } = M();
@@ -3674,7 +3674,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3674
3674
  }
3675
3675
  return (o, t) => {
3676
3676
  var s, a;
3677
- const l = E;
3677
+ const l = R;
3678
3678
  return m(), _(l, {
3679
3679
  text: ("t" in o ? o.t : i(c))("bubbleMenu.code.lineNumbers"),
3680
3680
  ico: "i-sed:order-list",
@@ -3683,7 +3683,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3683
3683
  }, null, 8, ["text", "menu-active"]);
3684
3684
  };
3685
3685
  }
3686
- }, Zs = {
3686
+ }, Xs = {
3687
3687
  __name: "themes",
3688
3688
  setup(r) {
3689
3689
  const { editor: e } = M(), n = [
@@ -3697,7 +3697,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3697
3697
  }
3698
3698
  return (t, l) => {
3699
3699
  var a, u;
3700
- const s = E;
3700
+ const s = R;
3701
3701
  return m(), _(s, {
3702
3702
  text: ("t" in t ? t.t : i(c))("bubbleMenu.code.themes.text"),
3703
3703
  "menu-type": "select",
@@ -3708,10 +3708,10 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3708
3708
  }, null, 8, ["text", "select-value"]);
3709
3709
  };
3710
3710
  }
3711
- }, Xs = {
3711
+ }, Qs = {
3712
3712
  __name: "languages",
3713
3713
  setup(r) {
3714
- const { editor: e } = M(), n = Object.keys(Br).map((t) => ({ label: t, value: t }));
3714
+ const { editor: e } = M(), n = Object.keys(Lr).map((t) => ({ label: t, value: t }));
3715
3715
  function o(t) {
3716
3716
  var s;
3717
3717
  const l = e.value ? Ie(e.value) : null;
@@ -3719,7 +3719,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3719
3719
  }
3720
3720
  return (t, l) => {
3721
3721
  var a, u;
3722
- const s = E;
3722
+ const s = R;
3723
3723
  return m(), _(s, {
3724
3724
  "show-tooltip": !1,
3725
3725
  "menu-type": "select",
@@ -3731,10 +3731,10 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
3731
3731
  }, null, 8, ["select-options", "select-value"]);
3732
3732
  };
3733
3733
  }
3734
- }, Qs = {
3734
+ }, ei = {
3735
3735
  __name: "cell-border",
3736
3736
  setup(r) {
3737
- const { editor: e } = M(), n = W(() => [
3737
+ const { editor: e } = M(), n = V(() => [
3738
3738
  {
3739
3739
  label: c("table.border.cellLeft"),
3740
3740
  key: "cellLeft",
@@ -4285,7 +4285,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4285
4285
  return () => _e("i", { class: `i-sed:${t}`, style: "font-size: 16px;" });
4286
4286
  }
4287
4287
  return (t, l) => {
4288
- const s = E;
4288
+ const s = R;
4289
4289
  return m(), _(s, {
4290
4290
  text: ("t" in t ? t.t : i(c))("table.border.cellStyle"),
4291
4291
  ico: "i-sed:table-cell-border",
@@ -4295,7 +4295,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4295
4295
  }, null, 8, ["text", "select-options"]);
4296
4296
  };
4297
4297
  }
4298
- }, ei = {
4298
+ }, ti = {
4299
4299
  __name: "cell-line",
4300
4300
  setup(r) {
4301
4301
  const { editor: e } = M();
@@ -4305,7 +4305,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4305
4305
  }
4306
4306
  return (o, t) => {
4307
4307
  var s;
4308
- const l = E;
4308
+ const l = R;
4309
4309
  return m(), _(l, {
4310
4310
  ico: "i-sed:table-cell-line",
4311
4311
  text: ("t" in o ? o.t : i(c))("table.tableHeaderLine"),
@@ -4314,7 +4314,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4314
4314
  }, null, 8, ["text", "disabled"]);
4315
4315
  };
4316
4316
  }
4317
- }, ti = {
4317
+ }, ni = {
4318
4318
  __name: "cell-background",
4319
4319
  props: {
4320
4320
  defaultColor: {
@@ -4329,7 +4329,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4329
4329
  t.value = s, s === "" ? (a = o.value) == null || a.chain().focus().setCellAttribute("backgroundColor", "transparent").run() : (u = o.value) == null || u.chain().focus().setCellAttribute("backgroundColor", s).run();
4330
4330
  }
4331
4331
  return (s, a) => {
4332
- const u = ut, d = E;
4332
+ const u = ut, d = R;
4333
4333
  return m(), _(d, {
4334
4334
  ico: "i-sed:table-color",
4335
4335
  text: ("t" in s ? s.t : i(c))("table.cellBgColor.tip"),
@@ -4359,17 +4359,17 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4359
4359
  }, 8, ["text", "popup-visible", "onTogglePopup"]);
4360
4360
  };
4361
4361
  }
4362
- }, ni = /* @__PURE__ */ H(ti, [["__scopeId", "data-v-ce6b29b9"]]), oi = {
4362
+ }, oi = /* @__PURE__ */ z(ni, [["__scopeId", "data-v-ce6b29b9"]]), ri = {
4363
4363
  __name: "merge-split",
4364
4364
  setup(r) {
4365
- const { editor: e } = M(), n = W(() => e.value ? e.value.can().mergeCells() ? "i-sed:table-merge" : "i-sed:table-split" : "i-sed:table-merge");
4365
+ const { editor: e } = M(), n = V(() => e.value ? e.value.can().mergeCells() ? "i-sed:table-merge" : "i-sed:table-split" : "i-sed:table-merge");
4366
4366
  function o() {
4367
4367
  var t;
4368
4368
  (t = e.value) == null || t.chain().focus().mergeOrSplit().run();
4369
4369
  }
4370
4370
  return (t, l) => {
4371
4371
  var a;
4372
- const s = E;
4372
+ const s = R;
4373
4373
  return m(), _(s, {
4374
4374
  ico: i(n),
4375
4375
  text: i(n) === "i-sed:table-merge" ? ("t" in t ? t.t : i(c))("table.mergeCells") : ("t" in t ? t.t : i(c))("table.splitCell"),
@@ -4378,7 +4378,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4378
4378
  }, null, 8, ["ico", "text", "disabled"]);
4379
4379
  };
4380
4380
  }
4381
- }, ri = {
4381
+ }, li = {
4382
4382
  __name: "delete-row",
4383
4383
  setup(r) {
4384
4384
  const { editor: e } = M();
@@ -4387,7 +4387,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4387
4387
  (o = e.value) == null || o.chain().focus().deleteRow().run();
4388
4388
  }
4389
4389
  return (o, t) => {
4390
- const l = E;
4390
+ const l = R;
4391
4391
  return m(), _(l, {
4392
4392
  ico: "i-sed:table-delete-row",
4393
4393
  text: ("t" in o ? o.t : i(c))("table.deleteRow.text"),
@@ -4395,7 +4395,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4395
4395
  }, null, 8, ["text"]);
4396
4396
  };
4397
4397
  }
4398
- }, li = {
4398
+ }, si = {
4399
4399
  __name: "delete-column",
4400
4400
  setup(r) {
4401
4401
  const { editor: e } = M();
@@ -4404,7 +4404,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4404
4404
  (o = e.value) == null || o.chain().focus().deleteColumn().run();
4405
4405
  }
4406
4406
  return (o, t) => {
4407
- const l = E;
4407
+ const l = R;
4408
4408
  return m(), _(l, {
4409
4409
  ico: "i-sed:table-delete-column",
4410
4410
  text: ("t" in o ? o.t : i(c))("table.deleteColumn.text"),
@@ -4412,7 +4412,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4412
4412
  }, null, 8, ["text"]);
4413
4413
  };
4414
4414
  }
4415
- }, si = {
4415
+ }, ii = {
4416
4416
  __name: "add-row-after",
4417
4417
  setup(r) {
4418
4418
  const { editor: e } = M();
@@ -4421,7 +4421,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4421
4421
  (o = e.value) == null || o.chain().focus().addRowAfter().run();
4422
4422
  }
4423
4423
  return (o, t) => {
4424
- const l = E;
4424
+ const l = R;
4425
4425
  return m(), _(l, {
4426
4426
  ico: "i-sed:table-add-bottom",
4427
4427
  text: ("t" in o ? o.t : i(c))("table.addRowAfter"),
@@ -4429,7 +4429,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4429
4429
  }, null, 8, ["text"]);
4430
4430
  };
4431
4431
  }
4432
- }, ii = {
4432
+ }, ai = {
4433
4433
  __name: "add-row-before",
4434
4434
  setup(r) {
4435
4435
  const { editor: e } = M();
@@ -4438,7 +4438,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4438
4438
  (o = e.value) == null || o.chain().focus().addRowBefore().run();
4439
4439
  }
4440
4440
  return (o, t) => {
4441
- const l = E;
4441
+ const l = R;
4442
4442
  return m(), _(l, {
4443
4443
  ico: "i-sed:table-add-top",
4444
4444
  text: ("t" in o ? o.t : i(c))("table.addRowBefore"),
@@ -4446,7 +4446,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4446
4446
  }, null, 8, ["text"]);
4447
4447
  };
4448
4448
  }
4449
- }, ai = {
4449
+ }, ui = {
4450
4450
  __name: "add-column-after",
4451
4451
  setup(r) {
4452
4452
  const { editor: e } = M();
@@ -4455,7 +4455,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4455
4455
  (o = e.value) == null || o.chain().focus().addColumnAfter().run();
4456
4456
  }
4457
4457
  return (o, t) => {
4458
- const l = E;
4458
+ const l = R;
4459
4459
  return m(), _(l, {
4460
4460
  ico: "i-sed:table-add-right",
4461
4461
  text: ("t" in o ? o.t : i(c))("table.addColumnAfter"),
@@ -4463,7 +4463,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4463
4463
  }, null, 8, ["text"]);
4464
4464
  };
4465
4465
  }
4466
- }, ui = {
4466
+ }, ci = {
4467
4467
  __name: "add-column-before",
4468
4468
  setup(r) {
4469
4469
  const { editor: e } = M();
@@ -4472,7 +4472,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4472
4472
  (o = e.value) == null || o.chain().focus().addColumnBefore().run();
4473
4473
  }
4474
4474
  return (o, t) => {
4475
- const l = E;
4475
+ const l = R;
4476
4476
  return m(), _(l, {
4477
4477
  ico: "i-sed:table-add-left",
4478
4478
  text: ("t" in o ? o.t : i(c))("table.addColumnBefore"),
@@ -4480,7 +4480,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4480
4480
  }, null, 8, ["text"]);
4481
4481
  };
4482
4482
  }
4483
- }, ci = {
4483
+ }, di = {
4484
4484
  __name: "vertical-bottom",
4485
4485
  emits: "update:popupVisible",
4486
4486
  setup(r, { emit: e }) {
@@ -4495,7 +4495,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4495
4495
  return s === "bottom";
4496
4496
  }
4497
4497
  return (s, a) => {
4498
- const u = E;
4498
+ const u = R;
4499
4499
  return m(), _(u, {
4500
4500
  ico: "i-sed:table-align-bottom",
4501
4501
  text: ("t" in s ? s.t : i(c))("table.cellAlign.bottom"),
@@ -4505,7 +4505,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4505
4505
  }, null, 8, ["text", "menu-active"]);
4506
4506
  };
4507
4507
  }
4508
- }, di = {
4508
+ }, pi = {
4509
4509
  __name: "vertical-middle",
4510
4510
  emits: "update:popupVisible",
4511
4511
  setup(r, { emit: e }) {
@@ -4520,7 +4520,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4520
4520
  return s === "middle";
4521
4521
  }
4522
4522
  return (s, a) => {
4523
- const u = E;
4523
+ const u = R;
4524
4524
  return m(), _(u, {
4525
4525
  ico: "i-sed:table-align-middle",
4526
4526
  text: ("t" in s ? s.t : i(c))("table.cellAlign.middle"),
@@ -4530,7 +4530,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4530
4530
  }, null, 8, ["text", "menu-active"]);
4531
4531
  };
4532
4532
  }
4533
- }, pi = {
4533
+ }, mi = {
4534
4534
  __name: "vertical-top",
4535
4535
  emits: "update:popupVisible",
4536
4536
  setup(r, { emit: e }) {
@@ -4545,7 +4545,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4545
4545
  return s === "top";
4546
4546
  }
4547
4547
  return (s, a) => {
4548
- const u = E;
4548
+ const u = R;
4549
4549
  return m(), _(u, {
4550
4550
  ico: "i-sed:table-align-top",
4551
4551
  text: ("t" in s ? s.t : i(c))("table.cellAlign.top"),
@@ -4555,10 +4555,10 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4555
4555
  }, null, 8, ["text", "menu-active"]);
4556
4556
  };
4557
4557
  }
4558
- }, mi = { class: "smart-text-align-group" }, fi = {
4558
+ }, fi = { class: "smart-text-align-group" }, hi = {
4559
4559
  __name: "vertical-dropdown",
4560
4560
  setup(r) {
4561
- const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = M(), t = W(() => {
4561
+ const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = M(), t = V(() => {
4562
4562
  var s;
4563
4563
  if (!o.value)
4564
4564
  return "top";
@@ -4566,7 +4566,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4566
4566
  return l || "top";
4567
4567
  });
4568
4568
  return (l, s) => {
4569
- const a = pi, u = di, d = ci, p = E;
4569
+ const a = mi, u = pi, d = di, p = R;
4570
4570
  return m(), _(p, {
4571
4571
  ico: `i-sed:table-align-${i(t)}`,
4572
4572
  text: ("t" in l ? l.t : i(c))("bubbleMenu.imageFloat"),
@@ -4576,7 +4576,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4576
4576
  onTogglePopup: i(n)
4577
4577
  }, {
4578
4578
  content: A(() => [
4579
- g("div", mi, [
4579
+ g("div", fi, [
4580
4580
  v(a, { "onUpdate:popupVisible": i(n) }, null, 8, ["onUpdate:popupVisible"]),
4581
4581
  v(u, { "onUpdate:popupVisible": i(n) }, null, 8, ["onUpdate:popupVisible"]),
4582
4582
  v(d, { "onUpdate:popupVisible": i(n) }, null, 8, ["onUpdate:popupVisible"])
@@ -4586,7 +4586,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4586
4586
  }, 8, ["ico", "text", "popup-visible", "onTogglePopup"]);
4587
4587
  };
4588
4588
  }
4589
- }, hi = {
4589
+ }, bi = {
4590
4590
  __name: "auto",
4591
4591
  setup(r) {
4592
4592
  const { editor: e } = M();
@@ -4600,7 +4600,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4600
4600
  return !!t;
4601
4601
  }
4602
4602
  return (t, l) => {
4603
- const s = E;
4603
+ const s = R;
4604
4604
  return m(), _(s, {
4605
4605
  ico: "i-sed:table-auto",
4606
4606
  text: ("t" in t ? t.t : i(c))("table.tableAuto"),
@@ -4609,7 +4609,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4609
4609
  }, null, 8, ["text", "menu-active"]);
4610
4610
  };
4611
4611
  }
4612
- }, bi = {
4612
+ }, vi = {
4613
4613
  __name: "width",
4614
4614
  setup(r) {
4615
4615
  const { editor: e } = M();
@@ -4623,7 +4623,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4623
4623
  return !!t;
4624
4624
  }
4625
4625
  return (t, l) => {
4626
- const s = E;
4626
+ const s = R;
4627
4627
  return m(), _(s, {
4628
4628
  ico: "i-sed:table-width",
4629
4629
  text: ("t" in t ? t.t : i(c))("table.colsAuto"),
@@ -4632,10 +4632,10 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4632
4632
  }, null, 8, ["text", "menu-active"]);
4633
4633
  };
4634
4634
  }
4635
- }, vi = {
4635
+ }, gi = {
4636
4636
  __name: "border",
4637
4637
  setup(r) {
4638
- const { editor: e } = M(), n = W(() => {
4638
+ const { editor: e } = M(), n = V(() => {
4639
4639
  var l;
4640
4640
  if (!e.value)
4641
4641
  return "i-sed:table-border";
@@ -4647,7 +4647,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4647
4647
  (t = e.value) == null || t.chain().focus().toggleTableBorder().run();
4648
4648
  }
4649
4649
  return (t, l) => {
4650
- const s = E;
4650
+ const s = R;
4651
4651
  return m(), _(s, {
4652
4652
  ico: i(n),
4653
4653
  text: i(n) === "i-sed:table-border" ? ("t" in t ? t.t : i(c))("table.toggleTableBorder.hide") : ("t" in t ? t.t : i(c))("table.toggleTableBorder.show"),
@@ -4655,7 +4655,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4655
4655
  }, null, 8, ["ico", "text"]);
4656
4656
  };
4657
4657
  }
4658
- }, gi = {
4658
+ }, _i = {
4659
4659
  __name: "delete",
4660
4660
  setup(r) {
4661
4661
  const { editor: e } = M();
@@ -4664,7 +4664,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4664
4664
  (o = e.value) == null || o.chain().focus().deleteTable().run();
4665
4665
  }
4666
4666
  return (o, t) => {
4667
- const l = E;
4667
+ const l = R;
4668
4668
  return m(), _(l, {
4669
4669
  ico: "i-sed:table-delete",
4670
4670
  text: ("t" in o ? o.t : i(c))("table.delete.text"),
@@ -4672,7 +4672,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4672
4672
  }, null, 8, ["text"]);
4673
4673
  };
4674
4674
  }
4675
- }, _i = {
4675
+ }, yi = {
4676
4676
  __name: "float-right",
4677
4677
  setup(r) {
4678
4678
  const { editor: e } = M();
@@ -4686,7 +4686,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4686
4686
  return t === "right";
4687
4687
  }
4688
4688
  return (t, l) => {
4689
- const s = E;
4689
+ const s = R;
4690
4690
  return m(), _(s, {
4691
4691
  ico: "i-sed:float-right",
4692
4692
  text: ("t" in t ? t.t : i(c))("bubbleMenu.imageFloatRight"),
@@ -4696,7 +4696,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4696
4696
  }, null, 8, ["text", "menu-active"]);
4697
4697
  };
4698
4698
  }
4699
- }, yi = {
4699
+ }, ki = {
4700
4700
  __name: "float-no",
4701
4701
  setup(r) {
4702
4702
  const { editor: e } = M();
@@ -4710,7 +4710,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4710
4710
  return t !== "right" && t !== "left";
4711
4711
  }
4712
4712
  return (t, l) => {
4713
- const s = E;
4713
+ const s = R;
4714
4714
  return m(), _(s, {
4715
4715
  ico: "i-sed:float-no",
4716
4716
  text: ("t" in t ? t.t : i(c))("bubbleMenu.imageFloatNo"),
@@ -4720,7 +4720,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4720
4720
  }, null, 8, ["text", "menu-active"]);
4721
4721
  };
4722
4722
  }
4723
- }, ki = {
4723
+ }, Ci = {
4724
4724
  __name: "float-left",
4725
4725
  setup(r) {
4726
4726
  const { editor: e } = M();
@@ -4734,7 +4734,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4734
4734
  return t === "left";
4735
4735
  }
4736
4736
  return (t, l) => {
4737
- const s = E;
4737
+ const s = R;
4738
4738
  return m(), _(s, {
4739
4739
  ico: "i-sed:float-left",
4740
4740
  text: ("t" in t ? t.t : i(c))("bubbleMenu.imageFloatLeft"),
@@ -4744,10 +4744,10 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4744
4744
  }, null, 8, ["text", "menu-active"]);
4745
4745
  };
4746
4746
  }
4747
- }, Ci = { class: "smart-text-align-group" }, wi = {
4747
+ }, wi = { class: "smart-text-align-group" }, xi = {
4748
4748
  __name: "float-dropdown",
4749
4749
  setup(r) {
4750
- const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = M(), t = W(() => {
4750
+ const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = M(), t = V(() => {
4751
4751
  var a;
4752
4752
  if (!o.value)
4753
4753
  return "no";
@@ -4760,7 +4760,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4760
4760
  return s === "Y";
4761
4761
  }
4762
4762
  return (s, a) => {
4763
- const u = ki, d = yi, p = _i, f = E;
4763
+ const u = Ci, d = ki, p = yi, f = R;
4764
4764
  return m(), _(f, {
4765
4765
  ico: `i-sed:float-${i(t)}`,
4766
4766
  text: ("t" in s ? s.t : i(c))("bubbleMenu.imageFloat"),
@@ -4771,7 +4771,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4771
4771
  onTogglePopup: i(n)
4772
4772
  }, {
4773
4773
  content: A(() => [
4774
- g("div", Ci, [
4774
+ g("div", wi, [
4775
4775
  v(u),
4776
4776
  v(d),
4777
4777
  v(p)
@@ -4781,7 +4781,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4781
4781
  }, 8, ["ico", "text", "disabled", "popup-visible", "onTogglePopup"]);
4782
4782
  };
4783
4783
  }
4784
- }, xi = {
4784
+ }, Ai = {
4785
4785
  __name: "describe",
4786
4786
  setup(r) {
4787
4787
  const { editor: e } = M();
@@ -4801,7 +4801,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4801
4801
  return l === "Y";
4802
4802
  }
4803
4803
  return (l, s) => {
4804
- const a = E;
4804
+ const a = R;
4805
4805
  return m(), _(a, {
4806
4806
  ico: "i-sed:image-describe",
4807
4807
  text: ("t" in l ? l.t : i(c))("bubbleMenu.imageDescribe"),
@@ -4811,7 +4811,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4811
4811
  }, null, 8, ["text", "menu-active", "disabled"]);
4812
4812
  };
4813
4813
  }
4814
- }, Ai = {
4814
+ }, Ti = {
4815
4815
  __name: "chapter",
4816
4816
  setup(r) {
4817
4817
  const { editor: e } = M();
@@ -4821,7 +4821,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4821
4821
  (l = e.value) == null || l.chain().focus().toggleImageChapter(o || "N").run();
4822
4822
  }
4823
4823
  return (o, t) => {
4824
- const l = E;
4824
+ const l = R;
4825
4825
  return m(), _(l, {
4826
4826
  ico: "i-sed:image-chapter",
4827
4827
  text: ("t" in o ? o.t : i(c))("bubbleMenu.imageChapter"),
@@ -4829,14 +4829,14 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4829
4829
  }, null, 8, ["text"]);
4830
4830
  };
4831
4831
  }
4832
- }, Ti = {
4832
+ }, Si = {
4833
4833
  __name: "menus",
4834
4834
  setup(r) {
4835
4835
  const { options: e, editor: n } = M();
4836
4836
  return (o, t) => {
4837
- var Ne, P, X, ce, ct, dt, pt, mt, Xe, Qe, Qt;
4838
- const l = Ai, s = xi, a = wi, u = gi, d = vi, p = bi, f = hi, b = fi, h = ui, k = ai, C = ii, x = si, T = li, w = ri, y = oi, L = ni, R = ei, I = Qs, U = Xs, O = Zs, S = Ys, D = Ks, j = Gs, q = js, Q = qs, G = Us, ue = Co, ee = ko, he = yo, Ce = _o, Le = go, We = vo;
4839
- return (Ne = i(n)) != null && Ne.isActive("map") || (P = i(n)) != null && P.getAttributes("bubble").bubble || (X = i(n)) != null && X.isActive("pagination") || (ce = i(n)) != null && ce.isActive("horizontalRule") || (ct = i(n)) != null && ct.getAttributes("image").error ? (m(), $(J, { key: 0 }, [], 64)) : (dt = i(n)) != null && dt.isActive("image") && !((pt = i(n)) != null && pt.getAttributes("image").error) ? (m(), $(J, { key: 1 }, [
4837
+ var Ne, W, X, ce, ct, dt, pt, mt, Xe, Qe, Qt;
4838
+ const l = Ti, s = Ai, a = xi, u = _i, d = gi, p = vi, f = bi, b = hi, h = ci, k = ui, C = ai, x = ii, T = si, w = li, y = ri, L = oi, E = ti, I = ei, U = Qs, O = Xs, S = Zs, P = Ys, j = Ks, q = Gs, Q = js, G = Js, ue = Co, ee = ko, he = yo, Ce = _o, Le = go, We = vo;
4839
+ return (Ne = i(n)) != null && Ne.isActive("map") || (W = i(n)) != null && W.getAttributes("bubble").bubble || (X = i(n)) != null && X.isActive("pagination") || (ce = i(n)) != null && ce.isActive("horizontalRule") || (ct = i(n)) != null && ct.getAttributes("image").error ? (m(), $(J, { key: 0 }, [], 64)) : (dt = i(n)) != null && dt.isActive("image") && !((pt = i(n)) != null && pt.getAttributes("image").error) ? (m(), $(J, { key: 1 }, [
4840
4840
  v(l),
4841
4841
  v(s),
4842
4842
  v(a)
@@ -4857,14 +4857,14 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4857
4857
  v(y),
4858
4858
  t[2] || (t[2] = g("div", { class: "smart-bubble-menu-divider" }, null, -1)),
4859
4859
  v(L),
4860
- v(R),
4860
+ v(E),
4861
4861
  v(I)
4862
4862
  ], 64)) : (Xe = i(n)) != null && Xe.isActive("codeBlock") ? (m(), $(J, { key: 3 }, [
4863
4863
  v(U),
4864
4864
  v(O),
4865
4865
  t[3] || (t[3] = g("div", { class: "smart-bubble-menu-divider" }, null, -1)),
4866
4866
  v(S),
4867
- v(D),
4867
+ v(P),
4868
4868
  t[4] || (t[4] = g("div", { class: "smart-bubble-menu-divider" }, null, -1)),
4869
4869
  v(j),
4870
4870
  v(q)
@@ -4886,7 +4886,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4886
4886
  ], 64));
4887
4887
  };
4888
4888
  }
4889
- }, Si = /* @__PURE__ */ H(Ti, [["__scopeId", "data-v-24c01023"]]), $i = {
4889
+ }, $i = /* @__PURE__ */ z(Si, [["__scopeId", "data-v-24c01023"]]), Mi = {
4890
4890
  __name: "index",
4891
4891
  setup(r) {
4892
4892
  const { options: e, blockMenu: n, editor: o, painter: t, assistantBox: l } = M(), s = B(null), a = B({
@@ -4912,7 +4912,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4912
4912
  });
4913
4913
  }
4914
4914
  ), (u, d) => {
4915
- const p = Si, f = vs;
4915
+ const p = $i, f = gs;
4916
4916
  return ot((m(), _(i(qn), {
4917
4917
  class: K(["smart-editor-bubble-menu", { assistant: i(l) }]),
4918
4918
  editor: i(o),
@@ -4942,7 +4942,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
4942
4942
  if (!h) return !1;
4943
4943
  const { tr: k } = n, C = new on(h);
4944
4944
  return k.setSelection(C), k.scrollIntoView(), o.dispatch(k), !0;
4945
- }, Mi = Z.create({ name: "details", content: "detailsSummary detailsContent", group: "block", defining: !0, isolating: !0, allowGapCursor: !1, addOptions: () => ({ persist: !1, openClassName: "is-open", HTMLAttributes: {} }), addAttributes() {
4945
+ }, Bi = Z.create({ name: "details", content: "detailsSummary detailsContent", group: "block", defining: !0, isolating: !0, allowGapCursor: !1, addOptions: () => ({ persist: !1, openClassName: "is-open", HTMLAttributes: {} }), addAttributes() {
4946
4946
  return this.options.persist ? { open: { default: !1, parseHTML: (r) => r.hasAttribute("open"), renderHTML: ({ open: r }) => r ? { open: "" } : {} } } : [];
4947
4947
  }, parseHTML: () => [{ tag: "details" }], renderHTML({ HTMLAttributes: r }) {
4948
4948
  return ["details", Y(this.options.HTMLAttributes, r), 0];
@@ -5017,7 +5017,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
5017
5017
  }, addProseMirrorPlugins() {
5018
5018
  return [new He({ key: new Je("detailsSelection"), appendTransaction: (r, e, n) => {
5019
5019
  const { editor: o, type: t } = this;
5020
- if (!r.some((b) => b.selectionSet) || !e.selection.empty || !n.selection.empty || !Cr(n, t.name)) return;
5020
+ if (!r.some((b) => b.selectionSet) || !e.selection.empty || !n.selection.empty || !wr(n, t.name)) return;
5021
5021
  const { $from: s } = n.selection;
5022
5022
  if (_t(s.pos, o)) return;
5023
5023
  const a = ((b, h, k) => {
@@ -5032,9 +5032,9 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
5032
5032
  const d = u[0], p = (e.selection.from < n.selection.from ? "forward" : "backward") == "forward" ? a.start + d.pos : a.pos + d.pos + d.node.nodeSize, f = Gt.create(n.doc, p);
5033
5033
  return n.tr.setSelection(f);
5034
5034
  } })];
5035
- } }), Bi = Z.create({ name: "detailsSummary", content: "text*", defining: !0, selectable: !1, isolating: !0, addOptions: () => ({ HTMLAttributes: {} }), parseHTML: () => [{ tag: "summary" }], renderHTML({ HTMLAttributes: r }) {
5035
+ } }), Li = Z.create({ name: "detailsSummary", content: "text*", defining: !0, selectable: !1, isolating: !0, addOptions: () => ({ HTMLAttributes: {} }), parseHTML: () => [{ tag: "summary" }], renderHTML({ HTMLAttributes: r }) {
5036
5036
  return ["summary", Y(this.options.HTMLAttributes, r), 0];
5037
- } }), Li = (r) => {
5037
+ } }), Ni = (r) => {
5038
5038
  const { regex: e, katexOptions: n = {}, editor: o, shouldRender: t } = r;
5039
5039
  return new He({ key: new Je("mathematics"), state: { init: () => Oe.empty, apply(l, s, a, u) {
5040
5040
  const { selection: d } = u, p = [];
@@ -5045,8 +5045,8 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
5045
5045
  for (; k = e.exec(f.text); ) {
5046
5046
  const C = b + k.index, x = C + k[0].length, T = k.slice(1).find(Boolean);
5047
5047
  if (T) {
5048
- const w = d.$from.pos - d.$to.pos, y = d.$anchor.pos >= C && d.$anchor.pos <= x, L = d.$from.pos >= C && d.$to.pos <= x, R = w === 0 && y || L;
5049
- R && o.isEditable || p.push(wt.widget(C, () => {
5048
+ const w = d.$from.pos - d.$to.pos, y = d.$anchor.pos >= C && d.$anchor.pos <= x, L = d.$from.pos >= C && d.$to.pos <= x, E = w === 0 && y || L;
5049
+ E && o.isEditable || p.push(wt.widget(C, () => {
5050
5050
  const I = document.createElement("span");
5051
5051
  I.classList.add("Tiptap-mathematics-render"), o.isEditable && I.classList.add("Tiptap-mathematics-render--editable");
5052
5052
  try {
@@ -5055,7 +5055,7 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
5055
5055
  I.innerHTML = T;
5056
5056
  }
5057
5057
  return I;
5058
- })), p.push(wt.inline(C, x, { class: R && o.isEditable ? "Tiptap-mathematics-editor" : "Tiptap-mathematics-editor Tiptap-mathematics-editor--hidden", style: R && o.isEditable ? void 0 : "display: inline-block; height: 0; opacity: 0; overflow: hidden; position: absolute; width: 0;" }));
5058
+ })), p.push(wt.inline(C, x, { class: E && o.isEditable ? "Tiptap-mathematics-editor" : "Tiptap-mathematics-editor Tiptap-mathematics-editor--hidden", style: E && o.isEditable ? void 0 : "display: inline-block; height: 0; opacity: 0; overflow: hidden; position: absolute; width: 0;" }));
5059
5059
  }
5060
5060
  }
5061
5061
  }
@@ -5063,33 +5063,33 @@ const Ls = ["id"], Ns = { class: "smart-color-picker-default-button" }, Rs = { c
5063
5063
  } }, props: { decorations(l) {
5064
5064
  return this.getState(l);
5065
5065
  } } });
5066
- }, Ni = (r, e) => r.doc.resolve(e).parent.type.name !== "codeBlock", wo = $e.create({ name: "Mathematics", addOptions: () => ({ regex: /\$([^\$]*)\$/gi, katexOptions: void 0, shouldRender: Ni }), addProseMirrorPlugins() {
5067
- return [Li({ ...this.options, editor: this.editor })];
5066
+ }, Ri = (r, e) => r.doc.resolve(e).parent.type.name !== "codeBlock", wo = $e.create({ name: "Mathematics", addOptions: () => ({ regex: /\$([^\$]*)\$/gi, katexOptions: void 0, shouldRender: Ri }), addProseMirrorPlugins() {
5067
+ return [Ni({ ...this.options, editor: this.editor })];
5068
5068
  } });
5069
5069
  var be = [];
5070
5070
  for (var Nt = 0; Nt < 256; ++Nt)
5071
5071
  be.push((Nt + 256).toString(16).slice(1));
5072
- function Ri(r, e = 0) {
5072
+ function Ei(r, e = 0) {
5073
5073
  return (be[r[e + 0]] + be[r[e + 1]] + be[r[e + 2]] + be[r[e + 3]] + "-" + be[r[e + 4]] + be[r[e + 5]] + "-" + be[r[e + 6]] + be[r[e + 7]] + "-" + be[r[e + 8]] + be[r[e + 9]] + "-" + be[r[e + 10]] + be[r[e + 11]] + be[r[e + 12]] + be[r[e + 13]] + be[r[e + 14]] + be[r[e + 15]]).toLowerCase();
5074
5074
  }
5075
- var ft, Ei = new Uint8Array(16);
5076
- function Ii() {
5075
+ var ft, Ii = new Uint8Array(16);
5076
+ function Fi() {
5077
5077
  if (!ft && (ft = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ft))
5078
5078
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
5079
- return ft(Ei);
5079
+ return ft(Ii);
5080
5080
  }
5081
- var Fi = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
5081
+ var Hi = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
5082
5082
  const pn = {
5083
- randomUUID: Fi
5083
+ randomUUID: Hi
5084
5084
  };
5085
5085
  function Pt(r, e, n) {
5086
5086
  if (pn.randomUUID && !e && !r)
5087
5087
  return pn.randomUUID();
5088
5088
  r = r || {};
5089
- var o = r.random || (r.rng || Ii)();
5090
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Ri(o);
5089
+ var o = r.random || (r.rng || Fi)();
5090
+ return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Ei(o);
5091
5091
  }
5092
- const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je("tableOfContent"), appendTransaction(n, o, t) {
5092
+ const zi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je("tableOfContent"), appendTransaction(n, o, t) {
5093
5093
  const l = t.tr;
5094
5094
  let s = !1;
5095
5095
  if (n.some((a) => a.docChanged)) {
@@ -5113,7 +5113,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5113
5113
  }, fn = (r, e) => {
5114
5114
  const n = e.at(-1);
5115
5115
  return n ? ((n == null ? void 0 : n.itemIndex) || 1) + 1 : 1;
5116
- }, zi = (r, e, n) => {
5116
+ }, Oi = (r, e, n) => {
5117
5117
  var o, t;
5118
5118
  const l = n || r.node.attrs.level || 1;
5119
5119
  let s = 1;
@@ -5151,7 +5151,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5151
5151
  n(t, s);
5152
5152
  }
5153
5153
  r.storage.anchors = l, r.storage.content = t, e.state.tr.setMeta("toc", t), e.view.dispatch(e.state.tr);
5154
- }, Oi = $e.create({ name: "tableOfContents", addStorage: () => ({ content: [], anchors: [], scrollHandler: () => null, scrollPosition: 0 }), addGlobalAttributes() {
5154
+ }, Pi = $e.create({ name: "tableOfContents", addStorage: () => ({ content: [], anchors: [], scrollHandler: () => null, scrollPosition: 0 }), addGlobalAttributes() {
5155
5155
  return [{ types: this.options.anchorTypes || ["headline"], attributes: { id: { default: null, renderHTML: (r) => ({ id: r.id }), parseHTML: (r) => r.id || null }, "data-toc-id": { default: null, renderHTML: (r) => ({ "data-toc-id": r["data-toc-id"] }), parseHTML: (r) => r.dataset.tocId || null } } }];
5156
5156
  }, addOptions: () => ({ onUpdate: () => {
5157
5157
  }, getId: (r) => Pt(), scrollParent: typeof window < "u" ? () => window : void 0, anchorTypes: ["heading"] }), onUpdate() {
@@ -5185,8 +5185,8 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5185
5185
  const r = typeof this.options.scrollParent == "function" ? this.options.scrollParent() : this.options.scrollParent;
5186
5186
  r && r.removeEventListener("scroll", this.storage.scrollHandler);
5187
5187
  }, addProseMirrorPlugins() {
5188
- return [Hi({ getId: this.options.getId, anchorTypes: this.options.anchorTypes })];
5189
- } }), Pi = {
5188
+ return [zi({ getId: this.options.getId, anchorTypes: this.options.anchorTypes })];
5189
+ } }), Wi = {
5190
5190
  __name: "attachment-view",
5191
5191
  props: se,
5192
5192
  setup(r) {
@@ -5200,7 +5200,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5200
5200
  _: 1
5201
5201
  }));
5202
5202
  }
5203
- }, Wi = /* @__PURE__ */ H(Pi, [["__scopeId", "data-v-589f28b1"]]), Vi = Z.create({
5203
+ }, Vi = /* @__PURE__ */ z(Wi, [["__scopeId", "data-v-589f28b1"]]), Di = Z.create({
5204
5204
  name: "attachment",
5205
5205
  group: "inline",
5206
5206
  inline: !0,
@@ -5237,9 +5237,9 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5237
5237
  };
5238
5238
  },
5239
5239
  addNodeView() {
5240
- return ae(Wi);
5240
+ return ae(Vi);
5241
5241
  }
5242
- }), Di = {
5242
+ }), Ui = {
5243
5243
  __name: "audio-view",
5244
5244
  props: se,
5245
5245
  setup(r) {
@@ -5256,7 +5256,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5256
5256
  _: 1
5257
5257
  }));
5258
5258
  }
5259
- }, Ui = /* @__PURE__ */ H(Di, [["__scopeId", "data-v-79d61048"]]), Ji = Z.create({
5259
+ }, Ji = /* @__PURE__ */ z(Ui, [["__scopeId", "data-v-79d61048"]]), qi = Z.create({
5260
5260
  name: "audio",
5261
5261
  group: "block",
5262
5262
  atom: !0,
@@ -5298,12 +5298,12 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5298
5298
  };
5299
5299
  },
5300
5300
  addNodeView() {
5301
- return ae(Ui);
5301
+ return ae(Ji);
5302
5302
  }
5303
- }), qi = {
5303
+ }), ji = {
5304
5304
  key: 1,
5305
5305
  class: "i-sed:bubble-inline"
5306
- }, ji = {
5306
+ }, Gi = {
5307
5307
  __name: "bubble-block",
5308
5308
  props: se,
5309
5309
  setup(r) {
@@ -5319,7 +5319,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5319
5319
  });
5320
5320
  function u() {
5321
5321
  if (t.value = !t.value, t.value) {
5322
- const { top: d, right: p, bottom: f, left: b, width: h, height: k } = pr(o), { width: C, height: x } = Jt();
5322
+ const { top: d, right: p, bottom: f, left: b, width: h, height: k } = mr(o), { width: C, height: x } = Jt();
5323
5323
  l.value = b.value > C.value / 2, s.value = d.value < x.value / 2, a.value = {}, l.value ? a.value.right = `${C.value - p.value - h.value}px` : a.value.left = `${b.value - h.value}px`, s.value ? a.value.top = `${d.value + h.value + 10}px` : a.value.bottom = `${x.value - f.value + k.value + 10}px`;
5324
5324
  }
5325
5325
  }
@@ -5344,7 +5344,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5344
5344
  contenteditable: "false",
5345
5345
  onClick: u
5346
5346
  }, [
5347
- i(n).render.bubbleIcon ? (m(), _(oe(i(n).render.bubbleIcon()), { key: 0 })) : (m(), $("i", qi))
5347
+ i(n).render.bubbleIcon ? (m(), _(oe(i(n).render.bubbleIcon()), { key: 0 })) : (m(), $("i", ji))
5348
5348
  ]),
5349
5349
  ot(g("div", {
5350
5350
  class: K(["bubble-block-content", [
@@ -5364,7 +5364,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5364
5364
  _: 1
5365
5365
  }, 512));
5366
5366
  }
5367
- }, Gi = /* @__PURE__ */ H(ji, [["__scopeId", "data-v-64ceb567"]]), Ki = Z.create({
5367
+ }, Ki = /* @__PURE__ */ z(Gi, [["__scopeId", "data-v-64ceb567"]]), Yi = Z.create({
5368
5368
  name: "bubble",
5369
5369
  inline: !0,
5370
5370
  group: "inline",
@@ -5388,7 +5388,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5388
5388
  return ["bubble-block", r, 0];
5389
5389
  },
5390
5390
  addNodeView() {
5391
- return ae(Gi);
5391
+ return ae(Ki);
5392
5392
  },
5393
5393
  // @ts-ignore
5394
5394
  addCommands() {
@@ -5410,7 +5410,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5410
5410
  }
5411
5411
  };
5412
5412
  }
5413
- }), Yi = zr.extend({
5413
+ }), Zi = Or.extend({
5414
5414
  addAttributes() {
5415
5415
  var r;
5416
5416
  return {
@@ -5424,7 +5424,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5424
5424
  }
5425
5425
  };
5426
5426
  }
5427
- }), Zi = {
5427
+ }), Xi = {
5428
5428
  __name: "calculator-view",
5429
5429
  props: se,
5430
5430
  setup(r) {
@@ -5438,7 +5438,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5438
5438
  _: 1
5439
5439
  }));
5440
5440
  }
5441
- }, Xi = /* @__PURE__ */ H(Zi, [["__scopeId", "data-v-df4b872f"]]), Qi = Z.create({
5441
+ }, Qi = /* @__PURE__ */ z(Xi, [["__scopeId", "data-v-df4b872f"]]), ea = Z.create({
5442
5442
  name: "calculator",
5443
5443
  group: "block",
5444
5444
  atom: !0,
@@ -5471,9 +5471,9 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5471
5471
  };
5472
5472
  },
5473
5473
  addNodeView() {
5474
- return ae(Xi);
5474
+ return ae(Qi);
5475
5475
  }
5476
- }), ea = {
5476
+ }), ta = {
5477
5477
  __name: "catalog-view",
5478
5478
  props: se,
5479
5479
  setup(r) {
@@ -5487,7 +5487,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5487
5487
  _: 1
5488
5488
  }));
5489
5489
  }
5490
- }, ta = /* @__PURE__ */ H(ea, [["__scopeId", "data-v-1d4c29ac"]]), na = Z.create({
5490
+ }, na = /* @__PURE__ */ z(ta, [["__scopeId", "data-v-1d4c29ac"]]), oa = Z.create({
5491
5491
  name: "catalog",
5492
5492
  group: "inline",
5493
5493
  inline: !0,
@@ -5521,16 +5521,16 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5521
5521
  };
5522
5522
  },
5523
5523
  addNodeView() {
5524
- return ae(ta);
5524
+ return ae(na);
5525
5525
  }
5526
- }), oa = {
5526
+ }), ra = {
5527
5527
  key: 0,
5528
5528
  class: "run-operate",
5529
5529
  contenteditable: "false"
5530
- }, ra = {
5530
+ }, la = {
5531
5531
  key: 1,
5532
5532
  class: "loading"
5533
- }, la = ["textContent"], sa = { class: "list" }, ia = {
5533
+ }, sa = ["textContent"], ia = { class: "list" }, aa = {
5534
5534
  __name: "code-block",
5535
5535
  props: se,
5536
5536
  setup(r) {
@@ -5571,7 +5571,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5571
5571
  }
5572
5572
  return Fe(() => {
5573
5573
  var d;
5574
- o.value = Or(n.value, {
5574
+ o.value = Pr(n.value, {
5575
5575
  readOnly: (d = e.value.document) == null ? void 0 : d.readOnly,
5576
5576
  language: r.node.attrs.language,
5577
5577
  tabSize: 2,
@@ -5582,13 +5582,13 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5582
5582
  r.updateAttributes({ code: p });
5583
5583
  }
5584
5584
  }), o.value.addExtensions(
5585
- Jr(),
5586
5585
  qr(),
5587
- Dr(),
5586
+ jr(),
5588
5587
  Ur(),
5589
- Vr(),
5590
- Pr(),
5591
- Wr()
5588
+ Jr(),
5589
+ Dr(),
5590
+ Wr(),
5591
+ Vr()
5592
5592
  );
5593
5593
  }), Ze(() => {
5594
5594
  var d;
@@ -5614,12 +5614,12 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5614
5614
  class: K(["code-view", d.node.attrs.theme])
5615
5615
  }, {
5616
5616
  default: A(() => [
5617
- !d.editor.view.editable && d.node.attrs.language === "python" ? (m(), $("div", oa, [
5617
+ !d.editor.view.editable && d.node.attrs.language === "python" ? (m(), $("div", ra, [
5618
5618
  i(l) ? F("", !0) : (m(), $("div", {
5619
5619
  key: 0,
5620
5620
  class: K(["status", i(t) ? "runed" : "unrun"])
5621
5621
  }, null, 2)),
5622
- i(l) ? (m(), $("div", ra)) : F("", !0),
5622
+ i(l) ? (m(), $("div", la)) : F("", !0),
5623
5623
  g("div", {
5624
5624
  class: "run",
5625
5625
  onClick: u
@@ -5638,14 +5638,14 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5638
5638
  contenteditable: "false",
5639
5639
  class: "show-code-block-toolbar",
5640
5640
  textContent: N(("t" in d ? d.t : i(c))("node.codeBlockMenu"))
5641
- }, null, 8, la)) : F("", !0)
5641
+ }, null, 8, sa)) : F("", !0)
5642
5642
  ], 2)
5643
5643
  ]),
5644
5644
  i(a).length ? (m(), $("div", {
5645
5645
  key: 1,
5646
5646
  class: K(["output", d.node.attrs.theme])
5647
5647
  }, [
5648
- g("div", sa, [
5648
+ g("div", ia, [
5649
5649
  (m(!0), $(J, null, ge(i(a), (f, b) => (m(), $("div", {
5650
5650
  key: b,
5651
5651
  class: K(["row", f.type])
@@ -5663,7 +5663,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5663
5663
  _: 1
5664
5664
  }, 8, ["class"]));
5665
5665
  }
5666
- }, aa = /* @__PURE__ */ H(ia, [["__scopeId", "data-v-909f4666"]]), ua = Z.create({
5666
+ }, ua = /* @__PURE__ */ z(aa, [["__scopeId", "data-v-909f4666"]]), ca = Z.create({
5667
5667
  name: "codeBlock",
5668
5668
  group: "block",
5669
5669
  content: "text*",
@@ -5697,7 +5697,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5697
5697
  return ["pre", Y(this.options.HTMLAttributes, r)];
5698
5698
  },
5699
5699
  addNodeView() {
5700
- return ae(aa);
5700
+ return ae(ua);
5701
5701
  },
5702
5702
  addCommands() {
5703
5703
  return {
@@ -5712,7 +5712,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5712
5712
  "Mod-Alt-c": () => this.editor.commands.setCodeBlock()
5713
5713
  };
5714
5714
  }
5715
- }), ca = {
5715
+ }), da = {
5716
5716
  __name: "code-online-view",
5717
5717
  props: se,
5718
5718
  setup(r) {
@@ -5726,7 +5726,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5726
5726
  _: 1
5727
5727
  }));
5728
5728
  }
5729
- }, da = /* @__PURE__ */ H(ca, [["__scopeId", "data-v-ad2a6a54"]]), pa = Z.create({
5729
+ }, pa = /* @__PURE__ */ z(da, [["__scopeId", "data-v-ad2a6a54"]]), ma = Z.create({
5730
5730
  name: "codeOnline",
5731
5731
  group: "block",
5732
5732
  atom: !0,
@@ -5759,7 +5759,7 @@ const Hi = ({ getId: r, anchorTypes: e = ["heading"] }) => new He({ key: new Je(
5759
5759
  };
5760
5760
  },
5761
5761
  addNodeView() {
5762
- return ae(da);
5762
+ return ae(pa);
5763
5763
  }
5764
5764
  }), tt = Z.create({
5765
5765
  name: "column",
@@ -6077,7 +6077,7 @@ const Rt = { index: 0, offset: 0 };
6077
6077
  function ht(r, e) {
6078
6078
  return Rt.index = r, Rt.offset = e, Rt;
6079
6079
  }
6080
- class ma extends Error {
6080
+ class fa extends Error {
6081
6081
  }
6082
6082
  class ne {
6083
6083
  /**
@@ -6179,13 +6179,13 @@ function $o(r, e, n, o) {
6179
6179
  return a && r.replaceChild(t, s.copy(a));
6180
6180
  }
6181
6181
  const Mo = 65535, Bo = Math.pow(2, 16);
6182
- function fa(r, e) {
6182
+ function ha(r, e) {
6183
6183
  return r + e * Bo;
6184
6184
  }
6185
6185
  function bn(r) {
6186
6186
  return r & Mo;
6187
6187
  }
6188
- function ha(r) {
6188
+ function ba(r) {
6189
6189
  return (r - (r & Mo)) / Bo;
6190
6190
  }
6191
6191
  const Lo = 1, No = 2, yt = 4, Ro = 8;
@@ -6243,7 +6243,7 @@ class xe {
6243
6243
  if (!this.inverted)
6244
6244
  for (let t = 0; t < o; t++)
6245
6245
  n += this.ranges[t * 3 + 2] - this.ranges[t * 3 + 1];
6246
- return this.ranges[o * 3] + n + ha(e);
6246
+ return this.ranges[o * 3] + n + ba(e);
6247
6247
  }
6248
6248
  mapResult(e, n = 1) {
6249
6249
  return this._map(e, n, !1);
@@ -6265,7 +6265,7 @@ class xe {
6265
6265
  let b = d ? e == u ? -1 : e == f ? 1 : n : n, h = u + t + (b < 0 ? 0 : p);
6266
6266
  if (o)
6267
6267
  return h;
6268
- let k = e == (n < 0 ? u : f) ? null : fa(a / 3, e - u), C = e == u ? No : e == f ? Lo : yt;
6268
+ let k = e == (n < 0 ? u : f) ? null : ha(a / 3, e - u), C = e == u ? No : e == f ? Lo : yt;
6269
6269
  return (n < 0 ? e != u : e != f) && (C |= Ro), new vn(h, C, k);
6270
6270
  }
6271
6271
  t += p - d;
@@ -6392,7 +6392,7 @@ class me {
6392
6392
  try {
6393
6393
  return me.ok(e.replace(n, o, t));
6394
6394
  } catch (l) {
6395
- if (l instanceof ma)
6395
+ if (l instanceof fa)
6396
6396
  return me.fail(l.message);
6397
6397
  throw l;
6398
6398
  }
@@ -7122,11 +7122,11 @@ class Ee extends fe {
7122
7122
  return e instanceof Ee;
7123
7123
  }
7124
7124
  getBookmark() {
7125
- return ba;
7125
+ return va;
7126
7126
  }
7127
7127
  }
7128
7128
  fe.jsonID("all", Ee);
7129
- const ba = {
7129
+ const va = {
7130
7130
  map() {
7131
7131
  return this;
7132
7132
  },
@@ -7200,11 +7200,11 @@ new bt("doc", {
7200
7200
  return r.scrolledIntoView ? e + 1 : e;
7201
7201
  }
7202
7202
  });
7203
- const va = (r, e) => Array.from({ length: r }, (n, o) => e(o));
7203
+ const ga = (r, e) => Array.from({ length: r }, (n, o) => e(o));
7204
7204
  function Xt({ type: r, content: e }) {
7205
7205
  return e ? { type: r, content: e } : { type: r };
7206
7206
  }
7207
- function ga({ content: r }) {
7207
+ function _a({ content: r }) {
7208
7208
  return Xt({ type: "paragraph", content: r });
7209
7209
  }
7210
7210
  function Io({ content: r }) {
@@ -7214,8 +7214,8 @@ function Cn({ content: r }) {
7214
7214
  return Xt({ type: "columnBlock", content: r });
7215
7215
  }
7216
7216
  function wn(r) {
7217
- const e = [ga({})];
7218
- return va(r, () => Io({ content: e }));
7217
+ const e = [_a({})];
7218
+ return ga(r, () => Io({ content: e }));
7219
7219
  }
7220
7220
  function Vt(r, e) {
7221
7221
  for (let n = r.depth; n > 0; n--) {
@@ -7379,13 +7379,13 @@ const Fo = Z.create({
7379
7379
  }
7380
7380
  };
7381
7381
  }
7382
- }), _a = $e.create({
7382
+ }), ya = $e.create({
7383
7383
  name: "columnExtension",
7384
7384
  addExtensions() {
7385
7385
  const r = [];
7386
7386
  return this.options.column !== !1 && r.push(tt), this.options.columnBlock !== !1 && r.push(Fo), r;
7387
7387
  }
7388
- }), Ho = wr.create({
7388
+ }), Ho = xr.create({
7389
7389
  name: "copyMark",
7390
7390
  addOptions() {
7391
7391
  return {
@@ -7505,7 +7505,7 @@ const Fo = Z.create({
7505
7505
  })
7506
7506
  ];
7507
7507
  }
7508
- }), ya = Z.create({ name: "detailsContent", content: "block+", defining: !0, selectable: !1, addOptions: () => ({ HTMLAttributes: {} }), parseHTML() {
7508
+ }), ka = Z.create({ name: "detailsContent", content: "block+", defining: !0, selectable: !1, addOptions: () => ({ HTMLAttributes: {} }), parseHTML() {
7509
7509
  return [{ tag: `div[data-type="${this.name}"]` }];
7510
7510
  }, renderHTML({ HTMLAttributes: r }) {
7511
7511
  return ["div", Y(this.options.HTMLAttributes, r, { "data-type": this.name }), 0];
@@ -7534,12 +7534,12 @@ const Fo = Z.create({
7534
7534
  if (!w) return !1;
7535
7535
  const { tr: y } = e, L = t.after(-2);
7536
7536
  y.replaceWith(L, L, w);
7537
- const R = y.doc.resolve(L), I = Jn.near(R, 1);
7537
+ const E = y.doc.resolve(L), I = Jn.near(E, 1);
7538
7538
  y.setSelection(I);
7539
7539
  const U = k, O = k + h.nodeSize;
7540
7540
  return y.delete(U, O), y.scrollIntoView(), n.dispatch(y), !0;
7541
7541
  } };
7542
- } }), ka = ya.extend({
7542
+ } }), Ca = ka.extend({
7543
7543
  addProseMirrorPlugins() {
7544
7544
  return [
7545
7545
  new He({
@@ -7559,7 +7559,7 @@ const Fo = Z.create({
7559
7559
  })
7560
7560
  ];
7561
7561
  }
7562
- }), Ca = {
7562
+ }), wa = {
7563
7563
  __name: "embed-video-wrapper",
7564
7564
  props: se,
7565
7565
  setup(r) {
@@ -7573,7 +7573,7 @@ const Fo = Z.create({
7573
7573
  _: 1
7574
7574
  }));
7575
7575
  }
7576
- }, { options: wa } = M(), xa = Z.create({
7576
+ }, { options: xa } = M(), Aa = Z.create({
7577
7577
  name: "embedVideo",
7578
7578
  group: "block",
7579
7579
  atom: !0,
@@ -7604,7 +7604,7 @@ const Fo = Z.create({
7604
7604
  return ["video", Y(r)];
7605
7605
  },
7606
7606
  addNodeView() {
7607
- return wa.value.render.embedVideo.view ? ae(Ca) : ({ node: r }) => {
7607
+ return xa.value.render.embedVideo.view ? ae(wa) : ({ node: r }) => {
7608
7608
  const e = document.createElement("video");
7609
7609
  return e.classList.add("embed-video"), e.src = r.attrs.src, e.width = r.attrs.width, e.autoplay = !0, e.muted = !0, e.loop = !0, e.controls = !1, {
7610
7610
  dom: e
@@ -7619,7 +7619,7 @@ const Fo = Z.create({
7619
7619
  })
7620
7620
  };
7621
7621
  }
7622
- }), Aa = {
7622
+ }), Ta = {
7623
7623
  __name: "file-view",
7624
7624
  props: se,
7625
7625
  setup(r) {
@@ -7633,7 +7633,7 @@ const Fo = Z.create({
7633
7633
  _: 1
7634
7634
  }));
7635
7635
  }
7636
- }, Ta = /* @__PURE__ */ H(Aa, [["__scopeId", "data-v-40e74acc"]]), Sa = Z.create({
7636
+ }, Sa = /* @__PURE__ */ z(Ta, [["__scopeId", "data-v-40e74acc"]]), $a = Z.create({
7637
7637
  name: "file",
7638
7638
  group: "block",
7639
7639
  atom: !0,
@@ -7686,9 +7686,9 @@ const Fo = Z.create({
7686
7686
  };
7687
7687
  },
7688
7688
  addNodeView() {
7689
- return ae(Ta);
7689
+ return ae(Sa);
7690
7690
  }
7691
- }), $a = {
7691
+ }), Ma = {
7692
7692
  __name: "flow-chart-view",
7693
7693
  props: se,
7694
7694
  setup(r) {
@@ -7702,7 +7702,7 @@ const Fo = Z.create({
7702
7702
  _: 1
7703
7703
  }));
7704
7704
  }
7705
- }, Ma = /* @__PURE__ */ H($a, [["__scopeId", "data-v-0a059ca6"]]), Ba = Z.create({
7705
+ }, Ba = /* @__PURE__ */ z(Ma, [["__scopeId", "data-v-0a059ca6"]]), La = Z.create({
7706
7706
  name: "flowchart",
7707
7707
  group: "block",
7708
7708
  atom: !0,
@@ -7742,7 +7742,7 @@ const Fo = Z.create({
7742
7742
  };
7743
7743
  },
7744
7744
  addNodeView() {
7745
- return ae(Ma);
7745
+ return ae(Ba);
7746
7746
  }
7747
7747
  }), Oo = $e.create({
7748
7748
  name: "fontSize",
@@ -7840,7 +7840,7 @@ const Fo = Z.create({
7840
7840
  })
7841
7841
  ];
7842
7842
  }
7843
- }), La = {
7843
+ }), Na = {
7844
7844
  __name: "gallery-view",
7845
7845
  props: se,
7846
7846
  setup(r) {
@@ -7854,7 +7854,7 @@ const Fo = Z.create({
7854
7854
  _: 1
7855
7855
  }));
7856
7856
  }
7857
- }, Na = /* @__PURE__ */ H(La, [["__scopeId", "data-v-6c1afe5f"]]), Ra = Z.create({
7857
+ }, Ra = /* @__PURE__ */ z(Na, [["__scopeId", "data-v-6c1afe5f"]]), Ea = Z.create({
7858
7858
  name: "gallery",
7859
7859
  group: "block",
7860
7860
  atom: !0,
@@ -7890,9 +7890,9 @@ const Fo = Z.create({
7890
7890
  };
7891
7891
  },
7892
7892
  addNodeView() {
7893
- return ae(Na);
7893
+ return ae(Ra);
7894
7894
  }
7895
- }), Ea = Z.create({
7895
+ }), Ia = Z.create({
7896
7896
  name: "highlightBlock",
7897
7897
  group: "block",
7898
7898
  content: "block+",
@@ -7957,7 +7957,7 @@ const Fo = Z.create({
7957
7957
  }
7958
7958
  };
7959
7959
  }
7960
- }), Ia = {
7960
+ }), Fa = {
7961
7961
  __name: "iframe-view",
7962
7962
  props: se,
7963
7963
  setup(r) {
@@ -7971,7 +7971,7 @@ const Fo = Z.create({
7971
7971
  _: 1
7972
7972
  }));
7973
7973
  }
7974
- }, Fa = /* @__PURE__ */ H(Ia, [["__scopeId", "data-v-4241f141"]]), Ha = Z.create({
7974
+ }, Ha = /* @__PURE__ */ z(Fa, [["__scopeId", "data-v-4241f141"]]), za = Z.create({
7975
7975
  name: "iframe",
7976
7976
  group: "block",
7977
7977
  atom: !0,
@@ -8017,39 +8017,39 @@ const Fo = Z.create({
8017
8017
  };
8018
8018
  },
8019
8019
  addNodeView() {
8020
- return ae(Fa);
8020
+ return ae(Ha);
8021
8021
  }
8022
8022
  });
8023
- function za(r, e, n) {
8023
+ function Oa(r, e, n) {
8024
8024
  return r < e ? e : r > n ? n : r;
8025
8025
  }
8026
- const xn = (r) => typeof r == "number", Oa = ["src", "alt"], Pa = {
8026
+ const xn = (r) => typeof r == "number", Pa = ["src", "alt"], Wa = {
8027
8027
  key: 1,
8028
8028
  class: "image-error"
8029
- }, Wa = { class: "image-view__body__wrapper" }, Va = { class: "image-resizer" }, Da = ["onMousedown"], Ua = {
8029
+ }, Va = { class: "image-view__body__wrapper" }, Da = { class: "image-resizer" }, Ua = ["onMousedown"], Ja = {
8030
8030
  __name: "image-view",
8031
8031
  props: se,
8032
8032
  setup(r) {
8033
- const e = W(() => {
8034
- const { src: S, alt: D, width: j, height: q } = r.node.attrs, Q = xn(j) ? `${j}px` : j, G = xn(q) ? `${q}px` : q;
8033
+ const e = V(() => {
8034
+ const { src: S, alt: P, width: j, height: q } = r.node.attrs, Q = xn(j) ? `${j}px` : j, G = xn(q) ? `${q}px` : q;
8035
8035
  return {
8036
8036
  src: S || void 0,
8037
- alt: D || void 0,
8037
+ alt: P || void 0,
8038
8038
  style: {
8039
8039
  width: Q || void 0,
8040
8040
  height: G || void 0
8041
8041
  }
8042
8042
  };
8043
- }), n = `inline-read-view-${Te()}`, o = W(() => r.node.attrs.display || void 0), t = W(() => r.node.attrs.chapter || "N"), l = W(() => r.node.attrs.lockAspectRatio ?? !0), s = W(() => {
8043
+ }), n = `inline-read-view-${Te()}`, o = V(() => r.node.attrs.display || void 0), t = V(() => r.node.attrs.chapter || "N"), l = V(() => r.node.attrs.lockAspectRatio ?? !0), s = V(() => {
8044
8044
  const S = ["image-title"];
8045
8045
  return typeof r.node.attrs.describe == "string" && r.node.attrs.describe === "N" && S.push("image-title--hide"), S;
8046
- }), a = W(() => {
8046
+ }), a = V(() => {
8047
8047
  const S = ["image-view", n];
8048
8048
  return typeof o.value == "string" && S.push(`image-view--${o.value}`), typeof t.value == "string" && S.push(`image-view--${t.value}`), S;
8049
- }), u = W(() => {
8049
+ }), u = V(() => {
8050
8050
  const { style: { width: S } } = e.value;
8051
8051
  return { width: S === "100%" ? S : void 0 };
8052
- }), d = W(() => {
8052
+ }), d = V(() => {
8053
8053
  const { style: { width: S } } = e.value;
8054
8054
  return { width: S === "100%" ? "calc(100% - 2px)" : void 0 };
8055
8055
  }), p = B(!1), f = B(null);
@@ -8076,19 +8076,19 @@ const xn = (r) => typeof r == "number", Oa = ["src", "alt"], Pa = {
8076
8076
  h: 0,
8077
8077
  dir: ""
8078
8078
  });
8079
- function L(S, D) {
8079
+ function L(S, P) {
8080
8080
  if (t.value === "Y")
8081
8081
  return;
8082
8082
  S.preventDefault(), S.stopPropagation(), y.value.x = S.clientX, y.value.y = S.clientY;
8083
8083
  const j = h.value.width, q = h.value.height, Q = j / q;
8084
8084
  let G = Number(r.node.attrs.width), ue = Number(r.node.attrs.height);
8085
8085
  const ee = C.value.width;
8086
- G && !ue ? (G = G > ee ? ee : G, ue = Math.round(G / Q)) : ue && !G ? (G = Math.round(ue * Q), G = G > ee ? ee : G) : !G && !ue ? (G = j > ee ? ee : j, ue = Math.round(G / Q)) : G = G > ee ? ee : G, y.value.w = G, y.value.h = ue, y.value.dir = D, T.value = !0, U();
8086
+ G && !ue ? (G = G > ee ? ee : G, ue = Math.round(G / Q)) : ue && !G ? (G = Math.round(ue * Q), G = G > ee ? ee : G) : !G && !ue ? (G = j > ee ? ee : j, ue = Math.round(G / Q)) : G = G > ee ? ee : G, y.value.w = G, y.value.h = ue, y.value.dir = P, T.value = !0, U();
8087
8087
  }
8088
- const R = Wn((S) => {
8088
+ const E = Wn((S) => {
8089
8089
  if (S.preventDefault(), S.stopPropagation(), !T.value)
8090
8090
  return;
8091
- const { x: D, y: j, w: q, h: Q, dir: G } = y.value, ue = (S.clientX - D) * (/l/.test(G) ? -1 : 1), ee = (S.clientY - j) * (/t/.test(G) ? -1 : 1), he = za(q + ue, 20, C.value.width), Ce = l.value ? null : Math.max(Q + ee, 20);
8091
+ const { x: P, y: j, w: q, h: Q, dir: G } = y.value, ue = (S.clientX - P) * (/l/.test(G) ? -1 : 1), ee = (S.clientY - j) * (/t/.test(G) ? -1 : 1), he = Oa(q + ue, 20, C.value.width), Ce = l.value ? null : Math.max(Q + ee, 20);
8092
8092
  w.value = {
8093
8093
  width: he,
8094
8094
  height: he * (h.value.height / h.value.width)
@@ -8104,12 +8104,12 @@ const xn = (r) => typeof r == "number", Oa = ["src", "alt"], Pa = {
8104
8104
  }, O(), b());
8105
8105
  }
8106
8106
  function U() {
8107
- document == null || document.addEventListener("mousemove", R, !0), document == null || document.addEventListener("mouseup", I, !0);
8107
+ document == null || document.addEventListener("mousemove", E, !0), document == null || document.addEventListener("mouseup", I, !0);
8108
8108
  }
8109
8109
  function O() {
8110
- document == null || document.removeEventListener("mousemove", R, !0), document == null || document.removeEventListener("mouseup", I, !0);
8110
+ document == null || document.removeEventListener("mousemove", E, !0), document == null || document.removeEventListener("mouseup", I, !0);
8111
8111
  }
8112
- return (S, D) => (m(), _(i(ie), {
8112
+ return (S, P) => (m(), _(i(ie), {
8113
8113
  ref_key: "imageViewRef",
8114
8114
  ref: f,
8115
8115
  class: K(i(a)),
@@ -8133,20 +8133,20 @@ const xn = (r) => typeof r == "number", Oa = ["src", "alt"], Pa = {
8133
8133
  class: "image-view__body__image",
8134
8134
  onLoad: k,
8135
8135
  onClick: b
8136
- }, null, 44, Oa)) : (m(), $("div", Pa)),
8137
- ot(g("div", Wa, [
8136
+ }, null, 44, Pa)) : (m(), $("div", Wa)),
8137
+ ot(g("div", Va, [
8138
8138
  te(N(i(w).width) + " ", 1),
8139
- D[0] || (D[0] = g("i", { class: "i-sed:x" }, null, -1)),
8139
+ P[0] || (P[0] = g("i", { class: "i-sed:x" }, null, -1)),
8140
8140
  te(" " + N(Math.round(i(w).height)), 1)
8141
8141
  ], 512), [
8142
8142
  [kt, i(T)]
8143
8143
  ]),
8144
- ot(g("div", Va, [
8144
+ ot(g("div", Da, [
8145
8145
  (m(), $(J, null, ge(x, (j) => g("span", {
8146
8146
  key: j,
8147
8147
  class: K([`image-resizer__handler--${j}`, "image-resizer__handler"]),
8148
8148
  onMousedown: (q) => L(q, j)
8149
- }, null, 42, Da)), 64))
8149
+ }, null, 42, Ua)), 64))
8150
8150
  ], 512), [
8151
8151
  [kt, S.editor.view.editable && (S.selected || i(T)) && i(t) === "N"]
8152
8152
  ])
@@ -8159,11 +8159,11 @@ const xn = (r) => typeof r == "number", Oa = ["src", "alt"], Pa = {
8159
8159
  _: 1
8160
8160
  }, 8, ["class", "style"]));
8161
8161
  }
8162
- }, Ja = /* @__PURE__ */ H(Ua, [["__scopeId", "data-v-26202538"]]), qa = {
8162
+ }, qa = /* @__PURE__ */ z(Ja, [["__scopeId", "data-v-26202538"]]), ja = {
8163
8163
  "size-small": 100,
8164
8164
  "size-medium": 400,
8165
8165
  "size-large": "100%"
8166
- }, Wo = jr.extend({
8166
+ }, Wo = Gr.extend({
8167
8167
  content: "text*",
8168
8168
  isolating: !0,
8169
8169
  selectable: !0,
@@ -8182,7 +8182,7 @@ const xn = (r) => typeof r == "number", Oa = ["src", "alt"], Pa = {
8182
8182
  default: !0
8183
8183
  },
8184
8184
  width: {
8185
- default: qa["size-small"]
8185
+ default: ja["size-small"]
8186
8186
  },
8187
8187
  height: {
8188
8188
  default: null
@@ -8212,7 +8212,7 @@ const xn = (r) => typeof r == "number", Oa = ["src", "alt"], Pa = {
8212
8212
  };
8213
8213
  },
8214
8214
  addNodeView() {
8215
- return ae(Ja);
8215
+ return ae(qa);
8216
8216
  },
8217
8217
  addCommands() {
8218
8218
  var r;
@@ -8231,7 +8231,7 @@ const xn = (r) => typeof r == "number", Oa = ["src", "alt"], Pa = {
8231
8231
  })
8232
8232
  };
8233
8233
  }
8234
- }), ja = /(?:^|\s)(!\[(.+|:?)\]\((\S+)(?:\s+["'](\S+)["'])?\))$/, Vo = Z.create({
8234
+ }), Ga = /(?:^|\s)(!\[(.+|:?)\]\((\S+)(?:\s+["'](\S+)["'])?\))$/, Vo = Z.create({
8235
8235
  name: "imagePlaceholder",
8236
8236
  draggable: !1,
8237
8237
  addOptions() {
@@ -8272,8 +8272,8 @@ const xn = (r) => typeof r == "number", Oa = ["src", "alt"], Pa = {
8272
8272
  },
8273
8273
  addInputRules() {
8274
8274
  return [
8275
- xr({
8276
- find: ja,
8275
+ Ar({
8276
+ find: Ga,
8277
8277
  type: this.type,
8278
8278
  getAttributes: (r) => {
8279
8279
  const [, , e] = r;
@@ -8283,8 +8283,8 @@ const xn = (r) => typeof r == "number", Oa = ["src", "alt"], Pa = {
8283
8283
  ];
8284
8284
  }
8285
8285
  }), Dt = {};
8286
- function Ga(r) {
8287
- const e = new Ka(r), n = {};
8286
+ function Ka(r) {
8287
+ const e = new Ya(r), n = {};
8288
8288
  return new He({
8289
8289
  props: {
8290
8290
  handleDOMEvents: {
@@ -8330,7 +8330,7 @@ function Ga(r) {
8330
8330
  }
8331
8331
  });
8332
8332
  }
8333
- class Ka {
8333
+ class Ya {
8334
8334
  constructor(e) {
8335
8335
  this.config = e;
8336
8336
  }
@@ -8451,7 +8451,7 @@ class Ka {
8451
8451
  }), u;
8452
8452
  };
8453
8453
  let t = e;
8454
- typeof t == "string" && (t = await Ya(t));
8454
+ typeof t == "string" && (t = await Za(t));
8455
8455
  const l = t && await this.config.upload(t, n).catch(console.warn), s = o();
8456
8456
  if (!s.length)
8457
8457
  return;
@@ -8476,7 +8476,7 @@ class Ka {
8476
8476
  );
8477
8477
  }
8478
8478
  }
8479
- function Ya(r) {
8479
+ function Za(r) {
8480
8480
  const e = r.includes("oss_download"), n = r.split(".").pop().toLowerCase(), o = {
8481
8481
  jpg: "image/jpeg",
8482
8482
  jpeg: "image/jpeg",
@@ -8496,9 +8496,9 @@ function Ya(r) {
8496
8496
  }, u.onerror = p;
8497
8497
  });
8498
8498
  }
8499
- return t(r).then((l) => Za(l, "网络图片")).catch(() => null);
8499
+ return t(r).then((l) => Xa(l, "网络图片")).catch(() => null);
8500
8500
  }
8501
- function Za(r, e) {
8501
+ function Xa(r, e) {
8502
8502
  const n = r.split(","), o = n[0].match(/:(.*?);/)[1], t = o.split("/")[1], l = atob(n[1]);
8503
8503
  let s = l.length;
8504
8504
  const a = new Uint8Array(s);
@@ -8506,7 +8506,7 @@ function Za(r, e) {
8506
8506
  a[s] = l.charCodeAt(s);
8507
8507
  return new File([a], `${e}.${t}`, { type: o });
8508
8508
  }
8509
- function Xa(r) {
8509
+ function Qa(r) {
8510
8510
  return Dt[r];
8511
8511
  }
8512
8512
  const Do = $e.create({
@@ -8522,12 +8522,12 @@ const Do = $e.create({
8522
8522
  addCommands() {
8523
8523
  return {
8524
8524
  uploadImage: (r) => ({ tr: e }) => (e.setMeta("uploadImages", r.file), !0),
8525
- getFileCache: (r) => () => Xa(r)
8525
+ getFileCache: (r) => () => Qa(r)
8526
8526
  };
8527
8527
  },
8528
8528
  addProseMirrorPlugins() {
8529
8529
  const r = this.options;
8530
- return [Ga(r)];
8530
+ return [Ka(r)];
8531
8531
  }
8532
8532
  }), je = {
8533
8533
  min: 0,
@@ -8552,7 +8552,7 @@ function An({ delta: r, types: e }) {
8552
8552
  return !1;
8553
8553
  };
8554
8554
  }
8555
- const Qa = $e.create({
8555
+ const Uo = $e.create({
8556
8556
  name: "indent",
8557
8557
  addOptions() {
8558
8558
  return {
@@ -8616,7 +8616,7 @@ const Qa = $e.create({
8616
8616
  _: 1
8617
8617
  }));
8618
8618
  }
8619
- }, tu = /* @__PURE__ */ H(eu, [["__scopeId", "data-v-274f74bf"]]), nu = Z.create({
8619
+ }, tu = /* @__PURE__ */ z(eu, [["__scopeId", "data-v-274f74bf"]]), nu = Z.create({
8620
8620
  name: "inlineAudio",
8621
8621
  group: "inline",
8622
8622
  inline: !0,
@@ -8669,7 +8669,7 @@ const Qa = $e.create({
8669
8669
  _: 1
8670
8670
  }));
8671
8671
  }
8672
- }, ru = /* @__PURE__ */ H(ou, [["__scopeId", "data-v-0adcd46c"]]), lu = Z.create({
8672
+ }, ru = /* @__PURE__ */ z(ou, [["__scopeId", "data-v-0adcd46c"]]), lu = Z.create({
8673
8673
  name: "inlineGallery",
8674
8674
  group: "inline",
8675
8675
  inline: !0,
@@ -8722,7 +8722,7 @@ const Qa = $e.create({
8722
8722
  _: 1
8723
8723
  }));
8724
8724
  }
8725
- }, iu = /* @__PURE__ */ H(su, [["__scopeId", "data-v-7a8c36eb"]]), au = Z.create({
8725
+ }, iu = /* @__PURE__ */ z(su, [["__scopeId", "data-v-7a8c36eb"]]), au = Z.create({
8726
8726
  name: "inlineRead",
8727
8727
  group: "inline",
8728
8728
  inline: !0,
@@ -8781,7 +8781,7 @@ const Qa = $e.create({
8781
8781
  _: 1
8782
8782
  }));
8783
8783
  }
8784
- }, cu = /* @__PURE__ */ H(uu, [["__scopeId", "data-v-46c44557"]]), du = Z.create({
8784
+ }, cu = /* @__PURE__ */ z(uu, [["__scopeId", "data-v-46c44557"]]), du = Z.create({
8785
8785
  name: "inlineVideo",
8786
8786
  group: "inline",
8787
8787
  inline: !0,
@@ -8823,7 +8823,7 @@ const Qa = $e.create({
8823
8823
  addNodeView() {
8824
8824
  return ae(cu);
8825
8825
  }
8826
- }), Uo = $e.create({
8826
+ }), Jo = $e.create({
8827
8827
  name: "lineHeight",
8828
8828
  addGlobalAttributes() {
8829
8829
  return [
@@ -8848,7 +8848,7 @@ const Qa = $e.create({
8848
8848
  })
8849
8849
  };
8850
8850
  }
8851
- }), pu = Gr.extend({
8851
+ }), pu = Kr.extend({
8852
8852
  addAttributes() {
8853
8853
  var r;
8854
8854
  return {
@@ -8876,7 +8876,7 @@ const Qa = $e.create({
8876
8876
  _: 1
8877
8877
  }));
8878
8878
  }
8879
- }, fu = /* @__PURE__ */ H(mu, [["__scopeId", "data-v-ace23d22"]]), hu = Z.create({
8879
+ }, fu = /* @__PURE__ */ z(mu, [["__scopeId", "data-v-ace23d22"]]), hu = Z.create({
8880
8880
  name: "map",
8881
8881
  group: "inline",
8882
8882
  inline: !0,
@@ -8926,7 +8926,7 @@ const Qa = $e.create({
8926
8926
  _: 1
8927
8927
  }));
8928
8928
  }
8929
- }, vu = /* @__PURE__ */ H(bu, [["__scopeId", "data-v-679d2a07"]]), gu = Z.create({
8929
+ }, vu = /* @__PURE__ */ z(bu, [["__scopeId", "data-v-679d2a07"]]), gu = Z.create({
8930
8930
  name: "mindMap",
8931
8931
  group: "block",
8932
8932
  atom: !0,
@@ -8968,7 +8968,7 @@ const Qa = $e.create({
8968
8968
  addNodeView() {
8969
8969
  return ae(vu);
8970
8970
  }
8971
- }), _u = Kr.extend({
8971
+ }), _u = Yr.extend({
8972
8972
  addAttributes() {
8973
8973
  var r;
8974
8974
  return {
@@ -9179,7 +9179,7 @@ const Qa = $e.create({
9179
9179
  _: 1
9180
9180
  }));
9181
9181
  }
9182
- }, Su = /* @__PURE__ */ H(Tu, [["__scopeId", "data-v-f23b5306"]]), $u = Z.create({
9182
+ }, Su = /* @__PURE__ */ z(Tu, [["__scopeId", "data-v-f23b5306"]]), $u = Z.create({
9183
9183
  name: "recorder",
9184
9184
  group: "block",
9185
9185
  atom: !0,
@@ -9274,8 +9274,8 @@ const Qa = $e.create({
9274
9274
  Math.min(T, k)
9275
9275
  );
9276
9276
  s.style.width = `${w}px`, a.attrs.width = w;
9277
- const y = s.clientWidth, L = s.clientHeight, R = vt(s, e);
9278
- n.style.top = `${R.top}px`, n.style.left = `${R.left}px`, n.style.width = `${y}px`, n.style.height = `${L}px`, u = f.screenX;
9277
+ const y = s.clientWidth, L = s.clientHeight, E = vt(s, e);
9278
+ n.style.top = `${E.top}px`, n.style.left = `${E.left}px`, n.style.width = `${y}px`, n.style.height = `${L}px`, u = f.screenX;
9279
9279
  };
9280
9280
  document.addEventListener("mousemove", p), document.addEventListener("mouseup", () => {
9281
9281
  document.removeEventListener("mousemove", p);
@@ -9289,8 +9289,8 @@ const Qa = $e.create({
9289
9289
  Math.min(T, k)
9290
9290
  );
9291
9291
  s.style.width = `${w}px`, a.attrs.width = w;
9292
- const y = s.clientWidth, L = s.clientHeight, R = vt(s, e);
9293
- n.style.top = `${R.top}px`, n.style.left = `${R.left}px`, n.style.width = `${y}px`, n.style.height = `${L}px`, u = f.screenX;
9292
+ const y = s.clientWidth, L = s.clientHeight, E = vt(s, e);
9293
+ n.style.top = `${E.top}px`, n.style.left = `${E.left}px`, n.style.width = `${y}px`, n.style.height = `${L}px`, u = f.screenX;
9294
9294
  };
9295
9295
  document.addEventListener("mousemove", p), document.addEventListener("mouseup", () => {
9296
9296
  document.removeEventListener("mousemove", p);
@@ -9316,7 +9316,7 @@ const Qa = $e.create({
9316
9316
  }
9317
9317
  n.appendChild(t), r.resizeLayer = n, e.appendChild(n);
9318
9318
  },
9319
- onTransaction: Yr(function({ editor: r }) {
9319
+ onTransaction: Zr(function({ editor: r }) {
9320
9320
  const e = r.resizeLayer;
9321
9321
  if (e && e.style.display === "block") {
9322
9322
  const n = this.storage.resizeElement, o = r.options.element, t = vt(n, o);
@@ -9546,7 +9546,7 @@ const Iu = new Je(
9546
9546
  __name: "svg-view",
9547
9547
  props: se,
9548
9548
  setup(r) {
9549
- const e = W(() => {
9549
+ const e = V(() => {
9550
9550
  const { viewBox: n, width: o, height: t, content: l } = r.node.attrs;
9551
9551
  return {
9552
9552
  viewBox: n,
@@ -9718,7 +9718,7 @@ function zt({ editor: r }) {
9718
9718
  if (!Uu(e))
9719
9719
  return !1;
9720
9720
  let n = 0;
9721
- const o = Ar(
9721
+ const o = Tr(
9722
9722
  e.ranges[0].$from,
9723
9723
  (l) => l.type.name === "table"
9724
9724
  );
@@ -9728,7 +9728,7 @@ function zt({ editor: r }) {
9728
9728
  ["tableCell", "tableHeader"].includes(l.type.name) && (n += 1);
9729
9729
  }), n === e.ranges.length ? (r.commands.deleteTable(), !0) : !1;
9730
9730
  }
9731
- const Jo = Z.create({
9731
+ const qo = Z.create({
9732
9732
  name: "table",
9733
9733
  // @ts-ignore
9734
9734
  addOptions() {
@@ -9856,23 +9856,23 @@ const Jo = Z.create({
9856
9856
  }
9857
9857
  return !0;
9858
9858
  },
9859
- addColumnBefore: () => ({ state: r, dispatch: e }) => Zr(r, e),
9860
- addColumnAfter: () => ({ state: r, dispatch: e }) => Xr(r, e),
9861
- deleteColumn: () => ({ state: r, dispatch: e }) => Qr(r, e),
9862
- addRowBefore: () => ({ state: r, dispatch: e }) => el(r, e),
9863
- addRowAfter: () => ({ state: r, dispatch: e }) => tl(r, e),
9864
- deleteRow: () => ({ state: r, dispatch: e }) => nl(r, e),
9865
- deleteTable: () => ({ state: r, dispatch: e }) => ol(r, e),
9859
+ addColumnBefore: () => ({ state: r, dispatch: e }) => Xr(r, e),
9860
+ addColumnAfter: () => ({ state: r, dispatch: e }) => Qr(r, e),
9861
+ deleteColumn: () => ({ state: r, dispatch: e }) => el(r, e),
9862
+ addRowBefore: () => ({ state: r, dispatch: e }) => tl(r, e),
9863
+ addRowAfter: () => ({ state: r, dispatch: e }) => nl(r, e),
9864
+ deleteRow: () => ({ state: r, dispatch: e }) => ol(r, e),
9865
+ deleteTable: () => ({ state: r, dispatch: e }) => rl(r, e),
9866
9866
  mergeCells: () => ({ state: r, dispatch: e }) => rn(r, e),
9867
9867
  splitCell: () => ({ state: r, dispatch: e }) => ln(r, e),
9868
9868
  toggleHeaderColumn: () => ({ state: r, dispatch: e }) => sn("column")(r, e),
9869
9869
  toggleHeaderRow: () => ({ state: r, dispatch: e }) => sn("row")(r, e),
9870
- toggleHeaderCell: () => ({ state: r, dispatch: e }) => rl(r, e),
9870
+ toggleHeaderCell: () => ({ state: r, dispatch: e }) => ll(r, e),
9871
9871
  mergeOrSplit: () => ({ state: r, dispatch: e }) => rn(r, e) ? !0 : ln(r, e),
9872
- setCellAttribute: (r, e) => ({ state: n, dispatch: o }) => ll(r, e)(n, o),
9872
+ setCellAttribute: (r, e) => ({ state: n, dispatch: o }) => sl(r, e)(n, o),
9873
9873
  goToNextCell: () => ({ state: r, dispatch: e }) => an(1)(r, e),
9874
9874
  goToPreviousCell: () => ({ state: r, dispatch: e }) => an(-1)(r, e),
9875
- fixTables: () => ({ state: r, dispatch: e }) => (e && sl(r), !0),
9875
+ fixTables: () => ({ state: r, dispatch: e }) => (e && il(r), !0),
9876
9876
  setCellSelection: (r) => ({ tr: e, dispatch: n }) => {
9877
9877
  if (n) {
9878
9878
  const o = uo.create(
@@ -9900,7 +9900,7 @@ const Jo = Z.create({
9900
9900
  addProseMirrorPlugins() {
9901
9901
  return [
9902
9902
  ...this.options.resizable && this.editor.isEditable ? [
9903
- il({
9903
+ al({
9904
9904
  handleWidth: this.options.handleWidth,
9905
9905
  cellMinWidth: this.options.cellMinWidth,
9906
9906
  // @ts-ignore (incorrect type)
@@ -9910,7 +9910,7 @@ const Jo = Z.create({
9910
9910
  lastColumnResizable: this.options.lastColumnResizable
9911
9911
  })
9912
9912
  ] : [],
9913
- al({
9913
+ ul({
9914
9914
  allowTableNodeSelection: this.options.allowTableNodeSelection
9915
9915
  })
9916
9916
  ];
@@ -9922,12 +9922,12 @@ const Jo = Z.create({
9922
9922
  storage: r.storage
9923
9923
  };
9924
9924
  return {
9925
- tableRole: Tr(
9926
- Sr(r, "tableRole", e)
9925
+ tableRole: Sr(
9926
+ $r(r, "tableRole", e)
9927
9927
  )
9928
9928
  };
9929
9929
  }
9930
- }), qo = ul.extend({
9930
+ }), jo = cl.extend({
9931
9931
  addAttributes() {
9932
9932
  var r;
9933
9933
  return {
@@ -10055,7 +10055,7 @@ const Jo = Z.create({
10055
10055
  _: 1
10056
10056
  }));
10057
10057
  }
10058
- }, qu = /* @__PURE__ */ H(Ju, [["__scopeId", "data-v-845d85f9"]]), ju = Z.create({
10058
+ }, qu = /* @__PURE__ */ z(Ju, [["__scopeId", "data-v-845d85f9"]]), ju = Z.create({
10059
10059
  name: "video",
10060
10060
  group: "block",
10061
10061
  atom: !0,
@@ -10102,13 +10102,13 @@ const Jo = Z.create({
10102
10102
  addNodeView() {
10103
10103
  return ae(qu);
10104
10104
  }
10105
- }), { options: jo, container: Gu, tableOfContents: Ku } = M(), { document: $n } = jo.value, Mn = Pe("locale"), Yu = [
10105
+ }), { options: Go, container: Gu, tableOfContents: Ku } = M(), { document: $n } = Go.value, Mn = Pe("locale"), Yu = [
10106
10106
  Ho,
10107
10107
  zo,
10108
10108
  // GlobalDragHandle,
10109
10109
  Cu,
10110
10110
  wu,
10111
- xa,
10111
+ Aa,
10112
10112
  Mu,
10113
10113
  io.configure({
10114
10114
  bulletList: !1,
@@ -10120,7 +10120,7 @@ const Jo = Z.create({
10120
10120
  table: !1,
10121
10121
  blockquote: !1
10122
10122
  }),
10123
- Hr.configure({
10123
+ zr.configure({
10124
10124
  showOnlyCurrent: !0,
10125
10125
  emptyEditorClass: Mn.value === "zh_CN" ? "is-editor-empty" : "is-editor-empty-en",
10126
10126
  // 空编辑器
@@ -10133,30 +10133,30 @@ const Jo = Z.create({
10133
10133
  types: ["heading", "paragraph"],
10134
10134
  defaultAlignment: "left"
10135
10135
  }),
10136
- Yi.configure({
10136
+ Zi.configure({
10137
10137
  HTMLAttributes: { class: "list-paddingleft-1" }
10138
10138
  }),
10139
10139
  _u.configure({
10140
10140
  HTMLAttributes: { class: "list-paddingleft-1" }
10141
10141
  }),
10142
10142
  pu,
10143
- Fr,
10143
+ Hr,
10144
10144
  Kn,
10145
10145
  ro,
10146
10146
  Zn,
10147
10147
  lo,
10148
10148
  Oo,
10149
- Er,
10150
- Lr,
10149
+ Ir,
10150
+ Nr,
10151
10151
  Yn.configure({
10152
10152
  className: "smart-node-focused",
10153
10153
  mode: "all"
10154
10154
  }),
10155
- Nr.configure({
10155
+ Rr.configure({
10156
10156
  limit: $n.characterLimit !== 0 ? $n.characterLimit : void 0
10157
10157
  }),
10158
- Oi.configure({
10159
- getIndex: zi,
10158
+ Pi.configure({
10159
+ getIndex: Oi,
10160
10160
  onUpdate: (r) => {
10161
10161
  Ku.value = r;
10162
10162
  },
@@ -10175,65 +10175,65 @@ const Jo = Z.create({
10175
10175
  eo,
10176
10176
  so,
10177
10177
  wo,
10178
- Qa,
10179
- Rr.configure({
10178
+ Uo,
10179
+ Er.configure({
10180
10180
  color: "var(--se-primary-color)"
10181
10181
  }),
10182
- Jo.configure({
10182
+ qo.configure({
10183
10183
  resizable: !0
10184
10184
  }),
10185
10185
  to,
10186
10186
  no,
10187
- qo,
10188
- Uo,
10189
- Ir,
10187
+ jo,
10188
+ Jo,
10189
+ Fr,
10190
10190
  Wo.configure({
10191
10191
  allowBase64: !0,
10192
10192
  inline: !0
10193
10193
  }),
10194
10194
  Do.configure({
10195
10195
  acceptMimes: ["image/jpeg", "image/gif", "image/png", "image/jpg"],
10196
- upload: (r) => jo.value.imageUpload(r)
10196
+ upload: (r) => Go.value.imageUpload(r)
10197
10197
  }),
10198
10198
  Vo.configure({ inline: !0 }),
10199
10199
  Po,
10200
- Ea,
10201
- _a,
10202
- Mi.configure({
10200
+ Ia,
10201
+ ya,
10202
+ Bi.configure({
10203
10203
  persist: !0,
10204
10204
  HTMLAttributes: {
10205
10205
  class: "details"
10206
10206
  }
10207
10207
  }),
10208
- Bi.configure({
10208
+ Li.configure({
10209
10209
  HTMLAttributes: {
10210
10210
  class: "details-summary"
10211
10211
  }
10212
10212
  }),
10213
- ka.configure({
10213
+ Ca.configure({
10214
10214
  HTMLAttributes: {
10215
10215
  class: "details-content"
10216
10216
  }
10217
10217
  }),
10218
- Ki,
10219
- ua,
10220
- Dl,
10221
- Ji,
10218
+ Yi,
10219
+ ca,
10220
+ Ul,
10221
+ qi,
10222
10222
  ju,
10223
- Sa,
10224
- Ba,
10225
- Vi,
10226
- na,
10227
- Qi,
10223
+ $a,
10224
+ La,
10225
+ Di,
10226
+ oa,
10227
+ ea,
10228
10228
  lu,
10229
10229
  nu,
10230
10230
  du,
10231
- Ra,
10231
+ Ea,
10232
10232
  hu,
10233
10233
  gu,
10234
10234
  $u,
10235
- Ha,
10236
- pa,
10235
+ za,
10236
+ ma,
10237
10237
  ku,
10238
10238
  Au,
10239
10239
  au,
@@ -10243,7 +10243,7 @@ const Jo = Z.create({
10243
10243
  __name: "index",
10244
10244
  setup(r) {
10245
10245
  var d, p, f, b;
10246
- const { options: e, editor: n, painter: o, setEditor: t, editorDestroyed: l } = M(), s = mr(async ({ editor: h }) => {
10246
+ const { options: e, editor: n, painter: o, setEditor: t, editorDestroyed: l } = M(), s = fr(async ({ editor: h }) => {
10247
10247
  try {
10248
10248
  await Mt.content.put({ content_id: e.value.editorKey, content: h.getHTML(), version: co().unix(), hashMd: po(JSON.stringify(h.getJSON())) });
10249
10249
  } catch (k) {
@@ -10274,7 +10274,7 @@ const Jo = Z.create({
10274
10274
  a.destroy();
10275
10275
  }), (h, k) => {
10276
10276
  var T;
10277
- const C = $i, x = ns;
10277
+ const C = Mi, x = os;
10278
10278
  return m(), $(J, null, [
10279
10279
  v(i(Gn), {
10280
10280
  editor: i(n),
@@ -10340,16 +10340,16 @@ const Jo = Z.create({
10340
10340
  ])
10341
10341
  ]));
10342
10342
  }
10343
- }, lc = /* @__PURE__ */ H(rc, [["__scopeId", "data-v-9b4d9731"]]), sc = { class: "smart-page-container" }, ic = { class: "smart-zoomable-container smart-scrollbar" }, ac = {
10343
+ }, lc = /* @__PURE__ */ z(rc, [["__scopeId", "data-v-9b4d9731"]]), sc = { class: "smart-page-container" }, ic = { class: "smart-zoomable-container smart-scrollbar" }, ac = {
10344
10344
  __name: "page",
10345
10345
  setup(r) {
10346
- const { container: e, page: n } = M(), o = W(() => {
10346
+ const { container: e, page: n } = M(), o = V(() => {
10347
10347
  const { width: u, height: d } = n.value.size ?? { width: 0, height: 0 };
10348
10348
  return {
10349
10349
  width: n.value.orientation === "portrait" ? u : d,
10350
10350
  height: n.value.orientation === "portrait" ? d : u
10351
10351
  };
10352
- }), t = W(() => `calc(${o.value.width}cm * ${n.value.zoomLevel ? n.value.zoomLevel / 100 : 1})`), l = B("");
10352
+ }), t = V(() => `calc(${o.value.width}cm * ${n.value.zoomLevel ? n.value.zoomLevel / 100 : 1})`), l = B("");
10353
10353
  function s() {
10354
10354
  const u = document.querySelector(`${e} .smart-zoomable-container`);
10355
10355
  if (!u) {
@@ -10365,14 +10365,14 @@ const Jo = Z.create({
10365
10365
  return (u = a.value) == null ? void 0 : u.isFullscreen;
10366
10366
  },
10367
10367
  async () => {
10368
- await _r(), setTimeout(() => {
10368
+ await yr(), setTimeout(() => {
10369
10369
  s();
10370
10370
  }, 100);
10371
10371
  }
10372
10372
  ), Fe(() => {
10373
10373
  a.value = Pn(document.querySelector(e)), s();
10374
10374
  }), (u, d) => {
10375
- const p = lc, f = Zu, b = nr, h = Yl;
10375
+ const p = lc, f = Zu, b = or, h = Zl;
10376
10376
  return m(), $("div", sc, [
10377
10377
  i(n).showToc ? (m(), _(p, {
10378
10378
  key: 0,
@@ -10414,7 +10414,7 @@ const Jo = Z.create({
10414
10414
  ]);
10415
10415
  };
10416
10416
  }
10417
- }, uc = /* @__PURE__ */ H(ac, [["__scopeId", "data-v-9b5dc97b"]]), cc = {
10417
+ }, uc = /* @__PURE__ */ z(ac, [["__scopeId", "data-v-9b5dc97b"]]), cc = {
10418
10418
  __name: "scrollable",
10419
10419
  setup(r, { expose: e }) {
10420
10420
  const n = B(null), o = B(null), t = B(!0), l = B(!0);
@@ -10423,7 +10423,7 @@ const Jo = Z.create({
10423
10423
  t.value = f === 0, l.value = f + h + 1 >= b;
10424
10424
  }
10425
10425
  const a = () => o.value.scrollLeft -= 100, u = () => o.value.scrollLeft += 100;
10426
- fr(n.value, () => {
10426
+ hr(n.value, () => {
10427
10427
  s();
10428
10428
  });
10429
10429
  const { width: d } = Jt();
@@ -10468,13 +10468,13 @@ const Jo = Z.create({
10468
10468
  ])))
10469
10469
  ], 512));
10470
10470
  }
10471
- }, dc = /* @__PURE__ */ H(cc, [["__scopeId", "data-v-6daae147"]]), pc = {
10471
+ }, dc = /* @__PURE__ */ z(cc, [["__scopeId", "data-v-6daae147"]]), pc = {
10472
10472
  __name: "redo",
10473
10473
  setup(r) {
10474
10474
  const { editor: e } = M();
10475
10475
  return (n, o) => {
10476
10476
  var l;
10477
- const t = E;
10477
+ const t = R;
10478
10478
  return m(), _(t, {
10479
10479
  text: ("t" in n ? n.t : i(c))("base.redo"),
10480
10480
  ico: "i-sed:redo",
@@ -10494,7 +10494,7 @@ const Jo = Z.create({
10494
10494
  const { editor: e } = M();
10495
10495
  return (n, o) => {
10496
10496
  var l;
10497
- const t = E;
10497
+ const t = R;
10498
10498
  return m(), _(t, {
10499
10499
  ico: "i-sed:undo",
10500
10500
  text: ("t" in n ? n.t : i(c))("base.undo"),
@@ -10526,7 +10526,7 @@ const Jo = Z.create({
10526
10526
  });
10527
10527
  }
10528
10528
  return (t, l) => {
10529
- const s = E;
10529
+ const s = R;
10530
10530
  return m(), _(s, {
10531
10531
  ico: "i-sed:import-word",
10532
10532
  text: ("t" in t ? t.t : i(c))("base.importWord.text"),
@@ -10540,7 +10540,7 @@ const Jo = Z.create({
10540
10540
  setup(r) {
10541
10541
  const { searchReplace: e } = M();
10542
10542
  return (n, o) => {
10543
- const t = E;
10543
+ const t = R;
10544
10544
  return m(), _(t, {
10545
10545
  ico: "i-sed:search-replace",
10546
10546
  text: ("t" in n ? n.t : i(c))("search.text"),
@@ -10564,7 +10564,7 @@ const Jo = Z.create({
10564
10564
  width: o.width
10565
10565
  };
10566
10566
  return (s, a) => {
10567
- const u = or;
10567
+ const u = rr;
10568
10568
  return m(), _(u, ve({
10569
10569
  show: r.visible,
10570
10570
  to: i(t),
@@ -10618,7 +10618,7 @@ const Jo = Z.create({
10618
10618
  }, 100);
10619
10619
  }
10620
10620
  ), (a, u) => {
10621
- const d = E, p = Bn, f = rr, b = Se, h = bc;
10621
+ const d = R, p = Bn, f = lr, b = Se, h = bc;
10622
10622
  return m(), $(J, null, [
10623
10623
  v(d, {
10624
10624
  ico: "i-sed:link",
@@ -10691,7 +10691,7 @@ const Jo = Z.create({
10691
10691
  ], 64);
10692
10692
  };
10693
10693
  }
10694
- }, yc = /* @__PURE__ */ H(_c, [["__scopeId", "data-v-c068e1fc"]]), kc = ["onMouseover"], Cc = { class: "smart-table-custom" }, wc = ["textContent"], xc = {
10694
+ }, yc = /* @__PURE__ */ z(_c, [["__scopeId", "data-v-c068e1fc"]]), kc = ["onMouseover"], Cc = { class: "smart-table-custom" }, wc = ["textContent"], xc = {
10695
10695
  __name: "table",
10696
10696
  setup(r) {
10697
10697
  const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = M(), t = Array.from({ length: 8 }, () => Array.from({ length: 10 }, () => "")), l = B({ rows: 0, cols: 0 });
@@ -10710,7 +10710,7 @@ const Jo = Z.create({
10710
10710
  p === 0 || p > 1e3 || f === 0 || f > 30 || ((b = o.value) == null || b.chain().focus().insertTable({ rows: p, cols: f, withHeaderRow: !1 }).run(), e.value = !1);
10711
10711
  }
10712
10712
  return (p, f) => {
10713
- const b = Rn, h = Se, k = E;
10713
+ const b = Rn, h = Se, k = R;
10714
10714
  return m(), _(k, {
10715
10715
  ico: "i-sed:table",
10716
10716
  text: ("t" in p ? p.t : i(c))("table.insert.text"),
@@ -10783,7 +10783,7 @@ const Jo = Z.create({
10783
10783
  }, 8, ["text", "tooltip", "popup-visible", "onTogglePopup"]);
10784
10784
  };
10785
10785
  }
10786
- }, Ac = /* @__PURE__ */ H(xc, [["__scopeId", "data-v-59fdbaae"]]), Tc = {
10786
+ }, Ac = /* @__PURE__ */ z(xc, [["__scopeId", "data-v-59fdbaae"]]), Tc = {
10787
10787
  __name: "image",
10788
10788
  setup(r) {
10789
10789
  const { editor: e, options: n } = M(), { onChange: o, open: t } = qt({
@@ -10798,7 +10798,7 @@ const Jo = Z.create({
10798
10798
  var a;
10799
10799
  s && ((a = e.value) == null || a.commands.uploadImage({ file: s }));
10800
10800
  }), (s, a) => {
10801
- const u = E;
10801
+ const u = R;
10802
10802
  return m(), _(u, {
10803
10803
  ico: "i-sed:image",
10804
10804
  text: ("t" in s ? s.t : i(c))("insert.image"),
@@ -10810,7 +10810,7 @@ const Jo = Z.create({
10810
10810
  }, Sc = {
10811
10811
  __name: "ordered-list",
10812
10812
  setup(r) {
10813
- const { editor: e } = M(), n = W(() => [
10813
+ const { editor: e } = M(), n = V(() => [
10814
10814
  { label: c("list.ordered.decimal"), key: "decimal", icon: o("ordered-list-decimal") },
10815
10815
  { label: c("list.ordered.lowerRoman"), key: "lower-roman", icon: o("ordered-list-lower-roman") },
10816
10816
  { label: c("list.ordered.upperRoman"), key: "upper-roman", icon: o("ordered-list-upper-roman") },
@@ -10843,7 +10843,7 @@ const Jo = Z.create({
10843
10843
  }) : (f = (p = s == null ? void 0 : s.toggleOrderedList()) == null ? void 0 : p.updateAttributes("orderedList", { listStyleType: l })) == null || f.run();
10844
10844
  }
10845
10845
  return (l, s) => {
10846
- const a = E;
10846
+ const a = R;
10847
10847
  return m(), _(a, {
10848
10848
  text: ("t" in l ? l.t : i(c))("list.ordered.text"),
10849
10849
  ico: "i-sed:order-list",
@@ -10858,7 +10858,7 @@ const Jo = Z.create({
10858
10858
  }, $c = {
10859
10859
  __name: "bullet-list",
10860
10860
  setup(r) {
10861
- const { editor: e } = M(), n = W(() => [
10861
+ const { editor: e } = M(), n = V(() => [
10862
10862
  { label: c("list.bullet.disc"), key: "disc", icon: o("bullet-list-disc") },
10863
10863
  { label: c("list.bullet.circle"), key: "circle", icon: o("bullet-list-circle") },
10864
10864
  { label: c("list.bullet.square"), key: "square", icon: o("bullet-list-square") }
@@ -10874,7 +10874,7 @@ const Jo = Z.create({
10874
10874
  (u = e.value) != null && u.isActive("bulletList") ? e.value.getAttributes("bulletList").listStyleType === l ? s == null || s.toggleBulletList().run() : s == null || s.updateAttributes("bulletList", { listStyleType: l }).run() : (p = (d = s == null ? void 0 : s.toggleBulletList()) == null ? void 0 : d.updateAttributes("bulletList", { listStyleType: l })) == null || p.run();
10875
10875
  }
10876
10876
  return (l, s) => {
10877
- const a = E;
10877
+ const a = R;
10878
10878
  return m(), _(a, {
10879
10879
  text: ("t" in l ? l.t : i(c))("list.bullet.text"),
10880
10880
  ico: "i-sed:bullet",
@@ -10889,7 +10889,7 @@ const Jo = Z.create({
10889
10889
  }, Mc = {
10890
10890
  __name: "line-height",
10891
10891
  setup(r) {
10892
- const { options: e, editor: n } = M(), o = W(() => {
10892
+ const { options: e, editor: n } = M(), o = V(() => {
10893
10893
  var l;
10894
10894
  return (l = e.value.dicts) == null ? void 0 : l.lineHeights.map((s) => {
10895
10895
  var a;
@@ -10909,7 +10909,7 @@ const Jo = Z.create({
10909
10909
  l && ((s = n.value) == null || s.chain().focus().setLineHeight(l).run());
10910
10910
  }
10911
10911
  return (l, s) => {
10912
- const a = E;
10912
+ const a = R;
10913
10913
  return m(), _(a, {
10914
10914
  text: ("t" in l ? l.t : i(c))("base.lineHeight.text"),
10915
10915
  ico: "i-sed:lineheight",
@@ -10925,7 +10925,7 @@ const Jo = Z.create({
10925
10925
  setup(r) {
10926
10926
  const { editor: e } = M();
10927
10927
  return (n, o) => {
10928
- const t = E;
10928
+ const t = R;
10929
10929
  return m(), _(t, {
10930
10930
  text: ("t" in n ? n.t : i(c))("base.outdent"),
10931
10931
  ico: "i-sed:outdent",
@@ -10943,7 +10943,7 @@ const Jo = Z.create({
10943
10943
  setup(r) {
10944
10944
  const { editor: e } = M();
10945
10945
  return (n, o) => {
10946
- const t = E;
10946
+ const t = R;
10947
10947
  return m(), _(t, {
10948
10948
  text: ("t" in n ? n.t : i(c))("base.indent"),
10949
10949
  ico: "i-sed:indent",
@@ -10962,7 +10962,7 @@ const Jo = Z.create({
10962
10962
  const { editor: e } = M();
10963
10963
  return (n, o) => {
10964
10964
  var l, s;
10965
- const t = E;
10965
+ const t = R;
10966
10966
  return m(), _(t, {
10967
10967
  ico: "i-sed:align-justify",
10968
10968
  text: ("t" in n ? n.t : i(c))("base.align.justify"),
@@ -10987,7 +10987,7 @@ const Jo = Z.create({
10987
10987
  }
10988
10988
  return (o, t) => {
10989
10989
  var s, a;
10990
- const l = E;
10990
+ const l = R;
10991
10991
  return m(), _(l, {
10992
10992
  ico: "i-sed:align-right",
10993
10993
  text: ("t" in o ? o.t : i(c))("base.align.right"),
@@ -11009,7 +11009,7 @@ const Jo = Z.create({
11009
11009
  }
11010
11010
  return (o, t) => {
11011
11011
  var s, a;
11012
- const l = E;
11012
+ const l = R;
11013
11013
  return m(), _(l, {
11014
11014
  ico: "i-sed:align-center",
11015
11015
  text: ("t" in o ? o.t : i(c))("base.align.center"),
@@ -11031,7 +11031,7 @@ const Jo = Z.create({
11031
11031
  }
11032
11032
  return (o, t) => {
11033
11033
  var s, a;
11034
- const l = E;
11034
+ const l = R;
11035
11035
  return m(), _(l, {
11036
11036
  ico: "i-sed:align-left",
11037
11037
  text: ("t" in o ? o.t : i(c))("base.align.left"),
@@ -11046,10 +11046,10 @@ const Jo = Z.create({
11046
11046
  }, Fc = { class: "smart-text-align-group" }, Hc = {
11047
11047
  __name: "align-dropdown",
11048
11048
  setup(r) {
11049
- const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = M(), t = W(() => !o.value || o.value.isActive({ textAlign: "justify" }) ? "left" : o.value.isActive({ textAlign: "center" }) ? "center" : o.value.isActive({ textAlign: "right" }) ? "right" : o.value.isActive({ textAlign: "justify" }) ? "justify" : "left");
11049
+ const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = M(), t = V(() => !o.value || o.value.isActive({ textAlign: "justify" }) ? "left" : o.value.isActive({ textAlign: "center" }) ? "center" : o.value.isActive({ textAlign: "right" }) ? "right" : o.value.isActive({ textAlign: "justify" }) ? "justify" : "left");
11050
11050
  return (l, s) => {
11051
11051
  var b;
11052
- const a = Ic, u = Ec, d = Rc, p = Nc, f = E;
11052
+ const a = Ic, u = Ec, d = Rc, p = Nc, f = R;
11053
11053
  return m(), _(f, {
11054
11054
  ico: `i-sed:align-${i(t)}`,
11055
11055
  text: ("t" in l ? l.t : i(c))("base.align.title"),
@@ -11077,7 +11077,7 @@ const Jo = Z.create({
11077
11077
  const { editor: e } = M();
11078
11078
  return (n, o) => {
11079
11079
  var l, s;
11080
- const t = E;
11080
+ const t = R;
11081
11081
  return m(), _(t, {
11082
11082
  ico: "i-sed:super",
11083
11083
  text: ("t" in n ? n.t : i(c))("base.superscript"),
@@ -11098,7 +11098,7 @@ const Jo = Z.create({
11098
11098
  const { editor: e } = M();
11099
11099
  return (n, o) => {
11100
11100
  var l, s;
11101
- const t = E;
11101
+ const t = R;
11102
11102
  return m(), _(t, {
11103
11103
  ico: "i-sed:sub",
11104
11104
  text: ("t" in n ? n.t : i(c))("base.subscript"),
@@ -11119,7 +11119,7 @@ const Jo = Z.create({
11119
11119
  const { editor: e } = M();
11120
11120
  return (n, o) => {
11121
11121
  var l, s;
11122
- const t = E;
11122
+ const t = R;
11123
11123
  return m(), _(t, {
11124
11124
  ico: "i-sed:code",
11125
11125
  text: ("t" in n ? n.t : i(c))("base.code"),
@@ -11150,7 +11150,7 @@ const Jo = Z.create({
11150
11150
  { label: "36", value: "36px", order: 10 },
11151
11151
  { label: "40", value: "40px", order: 11 },
11152
11152
  { label: "48", value: "48px", order: 12 }
11153
- ], o = W(() => {
11153
+ ], o = V(() => {
11154
11154
  var s, a, u, d;
11155
11155
  let l = (s = e.value) == null ? void 0 : s.getAttributes("textStyle").fontSize;
11156
11156
  if (!l) {
@@ -11169,7 +11169,7 @@ const Jo = Z.create({
11169
11169
  (s = e.value) == null || s.chain().focus().setFontSize(l).run();
11170
11170
  }
11171
11171
  return (l, s) => {
11172
- const a = E;
11172
+ const a = R;
11173
11173
  return m(), _(a, ve({
11174
11174
  text: ("t" in l ? l.t : i(c))("base.fontSize.text"),
11175
11175
  "menu-type": "select",
@@ -11203,7 +11203,7 @@ const Jo = Z.create({
11203
11203
  };
11204
11204
  return C(d).join("") !== C(u).join("");
11205
11205
  }
11206
- const l = W(() => {
11206
+ const l = V(() => {
11207
11207
  var f;
11208
11208
  const u = (b) => b.map((h) => ({
11209
11209
  ...h,
@@ -11247,7 +11247,7 @@ const Jo = Z.create({
11247
11247
  }
11248
11248
  return (u, d) => {
11249
11249
  var f;
11250
- const p = E;
11250
+ const p = R;
11251
11251
  return m(), _(p, ve({
11252
11252
  text: ("t" in u ? u.t : i(c))("base.fontFamily.text"),
11253
11253
  "menu-type": "select",
@@ -11265,7 +11265,7 @@ const Jo = Z.create({
11265
11265
  }, Dc = {
11266
11266
  __name: "heading",
11267
11267
  setup(r) {
11268
- const { editor: e } = M(), n = W(() => {
11268
+ const { editor: e } = M(), n = V(() => {
11269
11269
  const l = [
11270
11270
  { label: c("base.heading.paragraph"), desc: "text", value: "paragraph" }
11271
11271
  ];
@@ -11278,7 +11278,7 @@ const Jo = Z.create({
11278
11278
  });
11279
11279
  }
11280
11280
  return l;
11281
- }), o = W(() => {
11281
+ }), o = V(() => {
11282
11282
  var s;
11283
11283
  const l = (a) => {
11284
11284
  var u;
@@ -11308,7 +11308,7 @@ const Jo = Z.create({
11308
11308
  }
11309
11309
  return (l, s) => {
11310
11310
  var u, d;
11311
- const a = E;
11311
+ const a = R;
11312
11312
  return m(), _(a, {
11313
11313
  text: ("t" in l ? l.t : i(c))("base.heading.tip"),
11314
11314
  "hide-text": "",
@@ -11324,7 +11324,7 @@ const Jo = Z.create({
11324
11324
  }, null, 8, ["text", "placeholder", "select-value", "select-options", "disabled"]);
11325
11325
  };
11326
11326
  }
11327
- }, Uc = /* @__PURE__ */ H(Dc, [["__scopeId", "data-v-346e4792"]]), Jc = {
11327
+ }, Uc = /* @__PURE__ */ z(Dc, [["__scopeId", "data-v-346e4792"]]), Jc = {
11328
11328
  __name: "clear-format",
11329
11329
  setup(r) {
11330
11330
  const { editor: e } = M();
@@ -11333,7 +11333,7 @@ const Jo = Z.create({
11333
11333
  (o = e.value) == null || o.commands.unsetFormatPainter(), (t = e.value) == null || t.chain().focus().unsetAllMarks().run();
11334
11334
  }
11335
11335
  return (o, t) => {
11336
- const l = E;
11336
+ const l = R;
11337
11337
  return m(), _(l, {
11338
11338
  ico: "i-sed:clear",
11339
11339
  text: ("t" in o ? o.t : i(c))("base.clearFormat"),
@@ -11352,7 +11352,7 @@ const Jo = Z.create({
11352
11352
  }
11353
11353
  return (t, l) => {
11354
11354
  var a, u, d;
11355
- const s = E;
11355
+ const s = R;
11356
11356
  return m(), _(s, {
11357
11357
  ico: "i-sed:format-painter",
11358
11358
  text: ("t" in t ? t.t : i(c))("base.formatPainter.text"),
@@ -11384,7 +11384,7 @@ const Jo = Z.create({
11384
11384
  function f(h) {
11385
11385
  l.value = h;
11386
11386
  }
11387
- const b = W(() => [
11387
+ const b = V(() => [
11388
11388
  {
11389
11389
  label: c("moreBar.quote"),
11390
11390
  key: "quote",
@@ -11758,7 +11758,7 @@ const Jo = Z.create({
11758
11758
  ]);
11759
11759
  return (h, k) => {
11760
11760
  var Xe;
11761
- const C = Se, x = st, T = qc, w = Jc, y = Uc, L = Vc, R = Wc, I = Co, U = ko, O = yo, S = _o, D = go, j = vo, q = Pc, Q = Oc, G = zc, ue = Hc, ee = Lc, he = Bc, Ce = Mc, Le = $c, We = Sc, Ne = Tc, P = Ac, X = yc, ce = hc, ct = fc, dt = mc, pt = pc, mt = dc;
11761
+ const C = Se, x = st, T = qc, w = Jc, y = Uc, L = Vc, E = Wc, I = Co, U = ko, O = yo, S = _o, P = go, j = vo, q = Pc, Q = Oc, G = zc, ue = Hc, ee = Lc, he = Bc, Ce = Mc, Le = $c, We = Sc, Ne = Tc, W = Ac, X = yc, ce = hc, ct = fc, dt = mc, pt = pc, mt = dc;
11762
11762
  return m(), $(J, null, [
11763
11763
  ot((m(), _(mt, {
11764
11764
  ref_key: "scrollableRef",
@@ -11799,12 +11799,12 @@ const Jo = Z.create({
11799
11799
  g("div", Yc, [
11800
11800
  v(y),
11801
11801
  v(L),
11802
- v(R),
11802
+ v(E),
11803
11803
  v(I),
11804
11804
  v(U),
11805
11805
  v(O),
11806
11806
  v(S),
11807
- v(D),
11807
+ v(P),
11808
11808
  v(j)
11809
11809
  ]),
11810
11810
  g("div", Zc, [
@@ -11822,7 +11822,7 @@ const Jo = Z.create({
11822
11822
  ]),
11823
11823
  g("div", Qc, [
11824
11824
  v(Ne),
11825
- v(P),
11825
+ v(W),
11826
11826
  v(X)
11827
11827
  ]),
11828
11828
  g("div", ed, [
@@ -11838,7 +11838,7 @@ const Jo = Z.create({
11838
11838
  ]),
11839
11839
  _: 1
11840
11840
  })), [
11841
- [i(Mr), f]
11841
+ [i(Br), f]
11842
11842
  ]),
11843
11843
  i(s) ? (m(), _(oe((Xe = i(t).render[i(a)]) == null ? void 0 : Xe.insert()), {
11844
11844
  key: 0,
@@ -11850,17 +11850,17 @@ const Jo = Z.create({
11850
11850
  ], 64);
11851
11851
  };
11852
11852
  }
11853
- }, od = /* @__PURE__ */ H(nd, [["__scopeId", "data-v-4734f00e"]]), rd = {}, ld = { class: "smart-toolbar-container" };
11853
+ }, od = /* @__PURE__ */ z(nd, [["__scopeId", "data-v-4734f00e"]]), rd = {}, ld = { class: "smart-toolbar-container" };
11854
11854
  function sd(r, e) {
11855
11855
  const n = od;
11856
11856
  return m(), $("div", ld, [
11857
11857
  v(n)
11858
11858
  ]);
11859
11859
  }
11860
- const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0"]]), ad = {
11860
+ const id = /* @__PURE__ */ z(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0"]]), ad = {
11861
11861
  __name: "message-api",
11862
11862
  setup(r) {
11863
- return Be.message = lr(), (e, n) => (m(), $("div"));
11863
+ return Be.message = sr(), (e, n) => (m(), $("div"));
11864
11864
  }
11865
11865
  }, ud = ["id"], cd = {
11866
11866
  key: 0,
@@ -11868,9 +11868,9 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
11868
11868
  }, dd = { class: "smart-main" }, pd = {
11869
11869
  key: 1,
11870
11870
  class: "smart-footer"
11871
- }, Hf = /* @__PURE__ */ Object.assign({ name: "SmartEditor" }, {
11871
+ }, Of = /* @__PURE__ */ Object.assign({ name: "SmartEditor" }, {
11872
11872
  __name: "index",
11873
- props: pl,
11873
+ props: ml,
11874
11874
  emits: [
11875
11875
  "beforeCreate",
11876
11876
  "created",
@@ -11913,12 +11913,12 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
11913
11913
  }), Ze(() => {
11914
11914
  O();
11915
11915
  });
11916
- const x = W(() => {
11916
+ const x = V(() => {
11917
11917
  var S;
11918
11918
  return !((S = u.value.document) != null && S.readOnly);
11919
11919
  }), T = Pe("locale"), w = B(!1), y = Wn(async () => {
11920
- var D, j, q, Q, G, ue, ee, he;
11921
- if ((D = u.value.document) != null && D.readOnly)
11920
+ var P, j, q, Q, G, ue, ee, he;
11921
+ if ((P = u.value.document) != null && P.readOnly)
11922
11922
  return;
11923
11923
  let S = null;
11924
11924
  try {
@@ -11938,7 +11938,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
11938
11938
  return;
11939
11939
  }
11940
11940
  t("saved"), S && (S.destroy(), S = null), Be.message.success(c("save.success"), { placement: "bottom" });
11941
- const Ne = hr({ offset: 0 });
11941
+ const Ne = br({ offset: 0 });
11942
11942
  p.value = Ne.value;
11943
11943
  } catch (Ce) {
11944
11944
  Be.message.error(c("save.error"), { placement: "bottom" }), console.error(Ce.message);
@@ -11953,17 +11953,17 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
11953
11953
  t("changed", { editor: S }), w.value = !0;
11954
11954
  }), f.value.on("selectionUpdate", ({ editor: S }) => {
11955
11955
  t("changed:selection", { editor: S });
11956
- }), f.value.on("transaction", ({ editor: S, transaction: D }) => {
11957
- t("changed:transaction", { editor: S, transaction: D });
11958
- }), f.value.on("focus", ({ editor: S, event: D }) => {
11959
- t("focus", { editor: S, event: D });
11956
+ }), f.value.on("transaction", ({ editor: S, transaction: P }) => {
11957
+ t("changed:transaction", { editor: S, transaction: P });
11958
+ }), f.value.on("focus", ({ editor: S, event: P }) => {
11959
+ t("focus", { editor: S, event: P });
11960
11960
  }), f.value.on(
11961
11961
  "contentError",
11962
- ({ editor: S, error: D, disableCollaboration: j }) => {
11963
- t("contentError", { editor: S, error: D, disableCollaboration: j });
11962
+ ({ editor: S, error: P, disableCollaboration: j }) => {
11963
+ t("contentError", { editor: S, error: P, disableCollaboration: j });
11964
11964
  }
11965
- ), f.value.on("blur", ({ editor: S, event: D }) => {
11966
- t("blur", { editor: S, event: D });
11965
+ ), f.value.on("blur", ({ editor: S, event: P }) => {
11966
+ t("blur", { editor: S, event: P });
11967
11967
  }), f.value.on("destroy", () => {
11968
11968
  h(), t("destroy");
11969
11969
  }));
@@ -11976,13 +11976,13 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
11976
11976
  );
11977
11977
  const { locale: L } = ho();
11978
11978
  L.value = T.value;
11979
- function R(S) {
11979
+ function E(S) {
11980
11980
  if (!["zh_CN", "en_US"].includes(S))
11981
11981
  throw new Error('"params" must be one of "zh-CN" or "en-US".');
11982
11982
  if (L.value === S)
11983
11983
  return;
11984
- const D = Pe("locale");
11985
- D.value = S, L.value = D.value;
11984
+ const P = Pe("locale");
11985
+ P.value = S, L.value = P.value;
11986
11986
  }
11987
11987
  function I(S = "html") {
11988
11988
  if (!f.value)
@@ -12013,10 +12013,10 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
12013
12013
  var S;
12014
12014
  (S = f.value) == null || S.destroy(), cn("ctrl+s,command+s"), cn("esc"), h();
12015
12015
  }
12016
- return tn("saveContent", y), tn("setLocale", R), e({
12016
+ return tn("saveContent", y), tn("setLocale", E), e({
12017
12017
  getOptions: () => u.value,
12018
12018
  setOptions: b,
12019
- setLocale: R,
12019
+ setLocale: E,
12020
12020
  getEditor: () => f,
12021
12021
  useEditor: () => f.value,
12022
12022
  // 目录大纲
@@ -12046,8 +12046,8 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
12046
12046
  getHTML: () => I("html"),
12047
12047
  getJSON: () => I("json"),
12048
12048
  saveContent: y
12049
- }), (S, D) => {
12050
- const j = ad, q = sr, Q = id, G = uc, ue = Vl, ee = On;
12049
+ }), (S, P) => {
12050
+ const j = ad, q = ir, Q = id, G = uc, ue = Dl, ee = On;
12051
12051
  return m(), _(ee, {
12052
12052
  "cls-prefix": "se",
12053
12053
  "theme-overrides": i(l) ? i(fo) : i(mo),
@@ -12185,7 +12185,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
12185
12185
  ]
12186
12186
  },
12187
12187
  imageAccept: ["image/jpeg", "image/gif", "image/png", "image/jpg"]
12188
- }, [fd, z] = br(() => {
12188
+ }, [fd, H] = vr(() => {
12189
12189
  const r = `#smart-editor-slim-${Te(4)}`, e = B(md), n = B(null), o = (d) => {
12190
12190
  n.value = d;
12191
12191
  }, t = B(null), l = (d) => {
@@ -12293,7 +12293,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
12293
12293
  },
12294
12294
  emits: ["toggle-popup"],
12295
12295
  setup(r, { emit: e }) {
12296
- const n = r, o = e, t = jt(), { container: l, config: s } = z();
12296
+ const n = r, o = e, t = jt(), { container: l, config: s } = H();
12297
12297
  function a(...x) {
12298
12298
  t.onMenuClickThrough ? t.onMenuClickThrough(...x) : t.onMenuClick && t.onMenuClick(...x);
12299
12299
  }
@@ -12304,7 +12304,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
12304
12304
  function f() {
12305
12305
  return n.tooltip === !1 ? "" : n.huge && n.tooltip ? `${n.tooltip}${n.shortcut ? ` (${we(n.shortcut)})` : ""}` : n.text ? `${n.tooltip ? n.tooltip : n.text}${n.shortcut ? ` (${we(n.shortcut)})` : ""}` : "";
12306
12306
  }
12307
- const b = W(() => {
12307
+ const b = V(() => {
12308
12308
  var x;
12309
12309
  return !((x = s.value) != null && x.readOnly);
12310
12310
  });
@@ -12327,8 +12327,8 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
12327
12327
  ignore: [h, ".smart-popup"]
12328
12328
  }
12329
12329
  ), (x, T) => {
12330
- const w = Se, y = st, L = Ln, R = Ut;
12331
- return m(), _(R, {
12330
+ const w = Se, y = st, L = Ln, E = Ut;
12331
+ return m(), _(E, {
12332
12332
  show: i(u) && !i(d) && r.showTooltip,
12333
12333
  placement: "bottom",
12334
12334
  to: i(l),
@@ -12438,7 +12438,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
12438
12438
  g("p", kd, N(r.text), 1),
12439
12439
  r.shortcutText ? (m(), $("kbd", Cd, N(i(we)(r.shortcutText)), 1)) : F("", !0)
12440
12440
  ]),
12441
- v(R, {
12441
+ v(E, {
12442
12442
  show: r.popupVisible,
12443
12443
  placement: "bottom",
12444
12444
  to: i(l),
@@ -12468,7 +12468,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
12468
12468
  }, 8, ["show", "to"])
12469
12469
  ]),
12470
12470
  _: 3
12471
- }, 16, ["class", "disabled"])) : (m(), _(R, {
12471
+ }, 16, ["class", "disabled"])) : (m(), _(E, {
12472
12472
  key: 1,
12473
12473
  show: r.popupVisible,
12474
12474
  placement: "bottom-start",
@@ -12528,10 +12528,10 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
12528
12528
  }, 8, ["show", "to"]);
12529
12529
  };
12530
12530
  }
12531
- }, V = /* @__PURE__ */ H(Sd, [["__scopeId", "data-v-61894092"]]), $d = {
12531
+ }, D = /* @__PURE__ */ z(Sd, [["__scopeId", "data-v-61894092"]]), $d = {
12532
12532
  __name: "cell-border",
12533
12533
  setup(r) {
12534
- const { editor: e } = z(), n = W(() => [
12534
+ const { editor: e } = H(), n = V(() => [
12535
12535
  {
12536
12536
  label: c("table.border.cellLeft"),
12537
12537
  key: "cellLeft",
@@ -13082,7 +13082,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13082
13082
  return () => _e("i", { class: `i-sed:${t}`, style: "font-size: 16px;" });
13083
13083
  }
13084
13084
  return (t, l) => {
13085
- const s = V;
13085
+ const s = D;
13086
13086
  return m(), _(s, {
13087
13087
  text: ("t" in t ? t.t : i(c))("table.border.cellStyle"),
13088
13088
  ico: "i-sed:table-cell-border",
@@ -13095,14 +13095,14 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13095
13095
  }, Md = {
13096
13096
  __name: "cell-line",
13097
13097
  setup(r) {
13098
- const { editor: e } = z();
13098
+ const { editor: e } = H();
13099
13099
  function n() {
13100
13100
  var o;
13101
13101
  (o = e.value) == null || o.chain().focus().toggleCellLine().run();
13102
13102
  }
13103
13103
  return (o, t) => {
13104
13104
  var s;
13105
- const l = V;
13105
+ const l = D;
13106
13106
  return m(), _(l, {
13107
13107
  ico: "i-sed:table-cell-line",
13108
13108
  text: ("t" in o ? o.t : i(c))("table.tableHeaderLine"),
@@ -13121,7 +13121,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13121
13121
  },
13122
13122
  emits: ["change", "update:visible"],
13123
13123
  setup(r, { emit: e }) {
13124
- const n = r, o = e, { popupVisible: t } = ye(), { slimOptions: l } = z(), s = Pe("recent"), a = ["#B12318", "#EB3323", "#F6C143", "#FFFE55", "#A0CD63", "#4FAD5B", "#4CAFEA", "#2D70BA", "#06215C", "#68389B"], u = B(n.defaultColor), d = `#color-picker-${Te(4)}`;
13124
+ const n = r, o = e, { popupVisible: t } = ye(), { slimOptions: l } = H(), s = Pe("recent"), a = ["#B12318", "#EB3323", "#F6C143", "#FFFE55", "#A0CD63", "#4FAD5B", "#4CAFEA", "#2D70BA", "#06215C", "#68389B"], u = B(n.defaultColor), d = `#color-picker-${Te(4)}`;
13125
13125
  function p(h) {
13126
13126
  t.value = !0, s.value.colors.forEach((k, C) => {
13127
13127
  k === h && s.value.colors.splice(C, 1);
@@ -13196,7 +13196,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13196
13196
  ], 8, Bd);
13197
13197
  };
13198
13198
  }
13199
- }, Go = /* @__PURE__ */ H(Pd, [["__scopeId", "data-v-a5541020"]]), Wd = {
13199
+ }, Ko = /* @__PURE__ */ z(Pd, [["__scopeId", "data-v-a5541020"]]), Wd = {
13200
13200
  __name: "cell-background",
13201
13201
  props: {
13202
13202
  defaultColor: {
@@ -13205,13 +13205,13 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13205
13205
  }
13206
13206
  },
13207
13207
  setup(r) {
13208
- const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = z(), t = B("");
13208
+ const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = H(), t = B("");
13209
13209
  function l(s) {
13210
13210
  var a, u;
13211
13211
  t.value = s, s === "" ? (a = o.value) == null || a.chain().focus().setCellAttribute("backgroundColor", "transparent").run() : (u = o.value) == null || u.chain().focus().setCellAttribute("backgroundColor", s).run();
13212
13212
  }
13213
13213
  return (s, a) => {
13214
- const u = Go, d = V;
13214
+ const u = Ko, d = D;
13215
13215
  return m(), _(d, {
13216
13216
  ico: "i-sed:table-color",
13217
13217
  text: ("t" in s ? s.t : i(c))("table.cellBgColor.tip"),
@@ -13241,17 +13241,17 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13241
13241
  }, 8, ["text", "popup-visible", "onTogglePopup"]);
13242
13242
  };
13243
13243
  }
13244
- }, Vd = /* @__PURE__ */ H(Wd, [["__scopeId", "data-v-9819f9f0"]]), Dd = {
13244
+ }, Vd = /* @__PURE__ */ z(Wd, [["__scopeId", "data-v-9819f9f0"]]), Dd = {
13245
13245
  __name: "merge-split",
13246
13246
  setup(r) {
13247
- const { editor: e } = z(), n = W(() => e.value ? e.value.can().mergeCells() ? "i-sed:table-merge" : "i-sed:table-split" : "i-sed:table-merge");
13247
+ const { editor: e } = H(), n = V(() => e.value ? e.value.can().mergeCells() ? "i-sed:table-merge" : "i-sed:table-split" : "i-sed:table-merge");
13248
13248
  function o() {
13249
13249
  var t;
13250
13250
  (t = e.value) == null || t.chain().focus().mergeOrSplit().run();
13251
13251
  }
13252
13252
  return (t, l) => {
13253
13253
  var a;
13254
- const s = V;
13254
+ const s = D;
13255
13255
  return m(), _(s, {
13256
13256
  ico: i(n),
13257
13257
  text: i(n) === "i-sed:table-merge" ? ("t" in t ? t.t : i(c))("table.mergeCells") : ("t" in t ? t.t : i(c))("table.splitCell"),
@@ -13263,13 +13263,13 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13263
13263
  }, Ud = {
13264
13264
  __name: "delete-row",
13265
13265
  setup(r) {
13266
- const { editor: e } = z();
13266
+ const { editor: e } = H();
13267
13267
  function n() {
13268
13268
  var o;
13269
13269
  (o = e.value) == null || o.chain().focus().deleteRow().run();
13270
13270
  }
13271
13271
  return (o, t) => {
13272
- const l = V;
13272
+ const l = D;
13273
13273
  return m(), _(l, {
13274
13274
  ico: "i-sed:table-delete-row",
13275
13275
  text: ("t" in o ? o.t : i(c))("table.deleteRow.text"),
@@ -13280,13 +13280,13 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13280
13280
  }, Jd = {
13281
13281
  __name: "delete-column",
13282
13282
  setup(r) {
13283
- const { editor: e } = z();
13283
+ const { editor: e } = H();
13284
13284
  function n() {
13285
13285
  var o;
13286
13286
  (o = e.value) == null || o.chain().focus().deleteColumn().run();
13287
13287
  }
13288
13288
  return (o, t) => {
13289
- const l = V;
13289
+ const l = D;
13290
13290
  return m(), _(l, {
13291
13291
  ico: "i-sed:table-delete-column",
13292
13292
  text: ("t" in o ? o.t : i(c))("table.deleteColumn.text"),
@@ -13297,13 +13297,13 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13297
13297
  }, qd = {
13298
13298
  __name: "add-row-after",
13299
13299
  setup(r) {
13300
- const { editor: e } = z();
13300
+ const { editor: e } = H();
13301
13301
  function n() {
13302
13302
  var o;
13303
13303
  (o = e.value) == null || o.chain().focus().addRowAfter().run();
13304
13304
  }
13305
13305
  return (o, t) => {
13306
- const l = V;
13306
+ const l = D;
13307
13307
  return m(), _(l, {
13308
13308
  ico: "i-sed:table-add-bottom",
13309
13309
  text: ("t" in o ? o.t : i(c))("table.addRowAfter"),
@@ -13314,13 +13314,13 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13314
13314
  }, jd = {
13315
13315
  __name: "add-row-before",
13316
13316
  setup(r) {
13317
- const { editor: e } = z();
13317
+ const { editor: e } = H();
13318
13318
  function n() {
13319
13319
  var o;
13320
13320
  (o = e.value) == null || o.chain().focus().addRowBefore().run();
13321
13321
  }
13322
13322
  return (o, t) => {
13323
- const l = V;
13323
+ const l = D;
13324
13324
  return m(), _(l, {
13325
13325
  ico: "i-sed:table-add-top",
13326
13326
  text: ("t" in o ? o.t : i(c))("table.addRowBefore"),
@@ -13331,16 +13331,16 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13331
13331
  }, Gd = {
13332
13332
  __name: "add-column-after",
13333
13333
  setup(r) {
13334
- const { editor: e } = z();
13334
+ const { editor: e } = H();
13335
13335
  function n() {
13336
13336
  var o;
13337
13337
  (o = e.value) == null || o.chain().focus().addColumnAfter().run();
13338
13338
  }
13339
13339
  return (o, t) => {
13340
- const l = V;
13340
+ const l = D;
13341
13341
  return m(), _(l, {
13342
13342
  ico: "i-sed:table-add-right",
13343
- text: ("t" in o ? o.t : i(c))("table.addColumnBefore"),
13343
+ text: ("t" in o ? o.t : i(c))("table.addColumnAfter"),
13344
13344
  onMenuClick: n
13345
13345
  }, null, 8, ["text"]);
13346
13346
  };
@@ -13348,13 +13348,13 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13348
13348
  }, Kd = {
13349
13349
  __name: "add-column-before",
13350
13350
  setup(r) {
13351
- const { editor: e } = z();
13351
+ const { editor: e } = H();
13352
13352
  function n() {
13353
13353
  var o;
13354
13354
  (o = e.value) == null || o.chain().focus().addColumnBefore().run();
13355
13355
  }
13356
13356
  return (o, t) => {
13357
- const l = V;
13357
+ const l = D;
13358
13358
  return m(), _(l, {
13359
13359
  ico: "i-sed:table-add-left",
13360
13360
  text: ("t" in o ? o.t : i(c))("table.addColumnBefore"),
@@ -13366,7 +13366,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13366
13366
  __name: "vertical-bottom",
13367
13367
  emits: "update:popupVisible",
13368
13368
  setup(r, { emit: e }) {
13369
- const n = e, { editor: o } = z();
13369
+ const n = e, { editor: o } = H();
13370
13370
  function t() {
13371
13371
  var s;
13372
13372
  n("update:popupVisible"), (s = o.value) == null || s.chain().focus().setCellAttribute("cellVertical", "bottom").run();
@@ -13377,7 +13377,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13377
13377
  return s === "bottom";
13378
13378
  }
13379
13379
  return (s, a) => {
13380
- const u = V;
13380
+ const u = D;
13381
13381
  return m(), _(u, {
13382
13382
  ico: "i-sed:table-align-bottom",
13383
13383
  text: ("t" in s ? s.t : i(c))("table.cellAlign.bottom"),
@@ -13391,7 +13391,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13391
13391
  __name: "vertical-middle",
13392
13392
  emits: "update:popupVisible",
13393
13393
  setup(r, { emit: e }) {
13394
- const n = e, { editor: o } = z();
13394
+ const n = e, { editor: o } = H();
13395
13395
  function t() {
13396
13396
  var s;
13397
13397
  n("update:popupVisible"), (s = o.value) == null || s.chain().focus().setCellAttribute("cellVertical", "middle").run();
@@ -13402,7 +13402,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13402
13402
  return s === "middle";
13403
13403
  }
13404
13404
  return (s, a) => {
13405
- const u = V;
13405
+ const u = D;
13406
13406
  return m(), _(u, {
13407
13407
  ico: "i-sed:table-align-middle",
13408
13408
  text: ("t" in s ? s.t : i(c))("table.cellAlign.middle"),
@@ -13416,7 +13416,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13416
13416
  __name: "vertical-top",
13417
13417
  emits: "update:popupVisible",
13418
13418
  setup(r, { emit: e }) {
13419
- const n = e, { editor: o } = z();
13419
+ const n = e, { editor: o } = H();
13420
13420
  function t() {
13421
13421
  var s;
13422
13422
  n("update:popupVisible"), (s = o.value) == null || s.chain().focus().setCellAttribute("cellVertical", "top").run();
@@ -13427,7 +13427,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13427
13427
  return s === "top";
13428
13428
  }
13429
13429
  return (s, a) => {
13430
- const u = V;
13430
+ const u = D;
13431
13431
  return m(), _(u, {
13432
13432
  ico: "i-sed:table-align-top",
13433
13433
  text: ("t" in s ? s.t : i(c))("table.cellAlign.top"),
@@ -13440,7 +13440,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13440
13440
  }, Qd = { class: "smart-text-align-group" }, ep = {
13441
13441
  __name: "vertical-dropdown",
13442
13442
  setup(r) {
13443
- const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = z(), t = W(() => {
13443
+ const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = H(), t = V(() => {
13444
13444
  var s;
13445
13445
  if (!o.value)
13446
13446
  return "top";
@@ -13448,7 +13448,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13448
13448
  return l || "top";
13449
13449
  });
13450
13450
  return (l, s) => {
13451
- const a = Xd, u = Zd, d = Yd, p = V;
13451
+ const a = Xd, u = Zd, d = Yd, p = D;
13452
13452
  return m(), _(p, {
13453
13453
  ico: `i-sed:table-align-${i(t)}`,
13454
13454
  text: ("t" in l ? l.t : i(c))("bubbleMenu.imageFloat"),
@@ -13471,7 +13471,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13471
13471
  }, tp = {
13472
13472
  __name: "auto",
13473
13473
  setup(r) {
13474
- const { editor: e } = z();
13474
+ const { editor: e } = H();
13475
13475
  function n() {
13476
13476
  var t;
13477
13477
  (t = e.value) == null || t.chain().focus().toggleTableAuto().run();
@@ -13482,7 +13482,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13482
13482
  return !!t;
13483
13483
  }
13484
13484
  return (t, l) => {
13485
- const s = V;
13485
+ const s = D;
13486
13486
  return m(), _(s, {
13487
13487
  ico: "i-sed:table-auto",
13488
13488
  text: ("t" in t ? t.t : i(c))("table.tableAuto"),
@@ -13494,7 +13494,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13494
13494
  }, np = {
13495
13495
  __name: "width",
13496
13496
  setup(r) {
13497
- const { editor: e } = z();
13497
+ const { editor: e } = H();
13498
13498
  function n() {
13499
13499
  var t;
13500
13500
  (t = e.value) == null || t.chain().focus().toggleWidthAuto().run();
@@ -13505,7 +13505,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13505
13505
  return !!t;
13506
13506
  }
13507
13507
  return (t, l) => {
13508
- const s = V;
13508
+ const s = D;
13509
13509
  return m(), _(s, {
13510
13510
  ico: "i-sed:table-width",
13511
13511
  text: ("t" in t ? t.t : i(c))("table.colsAuto"),
@@ -13517,7 +13517,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13517
13517
  }, op = {
13518
13518
  __name: "border",
13519
13519
  setup(r) {
13520
- const { editor: e } = z(), n = W(() => {
13520
+ const { editor: e } = H(), n = V(() => {
13521
13521
  var l;
13522
13522
  if (!e.value)
13523
13523
  return "i-sed:table-border";
@@ -13529,7 +13529,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13529
13529
  (t = e.value) == null || t.chain().focus().toggleTableBorder().run();
13530
13530
  }
13531
13531
  return (t, l) => {
13532
- const s = V;
13532
+ const s = D;
13533
13533
  return m(), _(s, {
13534
13534
  ico: i(n),
13535
13535
  text: i(n) === "i-sed:table-border" ? ("t" in t ? t.t : i(c))("table.toggleTableBorder.hide") : ("t" in t ? t.t : i(c))("table.toggleTableBorder.show"),
@@ -13540,13 +13540,13 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13540
13540
  }, rp = {
13541
13541
  __name: "delete",
13542
13542
  setup(r) {
13543
- const { editor: e } = z();
13543
+ const { editor: e } = H();
13544
13544
  function n() {
13545
13545
  var o;
13546
13546
  (o = e.value) == null || o.chain().focus().deleteTable().run();
13547
13547
  }
13548
13548
  return (o, t) => {
13549
- const l = V;
13549
+ const l = D;
13550
13550
  return m(), _(l, {
13551
13551
  ico: "i-sed:table-delete",
13552
13552
  text: ("t" in o ? o.t : i(c))("table.delete.text"),
@@ -13557,7 +13557,7 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13557
13557
  }, lp = {
13558
13558
  __name: "menus",
13559
13559
  setup(r) {
13560
- const { editor: e, showTableBar: n } = z();
13560
+ const { editor: e, showTableBar: n } = H();
13561
13561
  return (o, t) => {
13562
13562
  var L;
13563
13563
  const l = rp, s = op, a = np, u = tp, d = ep, p = Kd, f = Gd, b = jd, h = qd, k = Jd, C = Ud, x = Dd, T = Vd, w = Md, y = $d;
@@ -13583,10 +13583,10 @@ const id = /* @__PURE__ */ H(rd, [["render", sd], ["__scopeId", "data-v-3d91acb0
13583
13583
  ], 64)) : F("", !0);
13584
13584
  };
13585
13585
  }
13586
- }, sp = /* @__PURE__ */ H(lp, [["__scopeId", "data-v-bd0d430f"]]), ip = {
13586
+ }, sp = /* @__PURE__ */ z(lp, [["__scopeId", "data-v-bd0d430f"]]), ip = {
13587
13587
  __name: "index",
13588
13588
  setup(r) {
13589
- const { editor: e } = z(), n = B(null), o = B({
13589
+ const { editor: e } = H(), n = B(null), o = B({
13590
13590
  appendTo: "parent",
13591
13591
  maxWidth: 580,
13592
13592
  zIndex: 99,
@@ -13691,16 +13691,17 @@ function up(r) {
13691
13691
  Xn.configure({
13692
13692
  multicolor: !0
13693
13693
  }),
13694
- Uo,
13694
+ Jo,
13695
13695
  eo,
13696
13696
  Qn,
13697
13697
  wo,
13698
- Jo.configure({
13698
+ Uo,
13699
+ qo.configure({
13699
13700
  resizable: !0
13700
13701
  }),
13701
13702
  no,
13702
13703
  to,
13703
- qo,
13704
+ jo,
13704
13705
  Po,
13705
13706
  Wo.configure({
13706
13707
  allowBase64: !0,
@@ -13719,7 +13720,7 @@ function up(r) {
13719
13720
  const cp = {
13720
13721
  __name: "editor",
13721
13722
  setup(r) {
13722
- const { editor: e, setEditor: n, config: o } = z(), t = new jn({
13723
+ const { editor: e, setEditor: n, config: o } = H(), t = new jn({
13723
13724
  editable: !o.value.readOnly,
13724
13725
  autofocus: "end",
13725
13726
  content: "",
@@ -13752,13 +13753,13 @@ const cp = {
13752
13753
  ], 64);
13753
13754
  };
13754
13755
  }
13755
- }, dp = /* @__PURE__ */ H(cp, [["__scopeId", "data-v-a8c77fda"]]), pp = {
13756
+ }, dp = /* @__PURE__ */ z(cp, [["__scopeId", "data-v-a8c77fda"]]), pp = {
13756
13757
  __name: "redo",
13757
13758
  setup(r) {
13758
- const { editor: e } = z();
13759
+ const { editor: e } = H();
13759
13760
  return (n, o) => {
13760
13761
  var l;
13761
- const t = V;
13762
+ const t = D;
13762
13763
  return m(), _(t, {
13763
13764
  text: ("t" in n ? n.t : i(c))("base.redo"),
13764
13765
  ico: "i-sed:redo",
@@ -13775,10 +13776,10 @@ const cp = {
13775
13776
  }, mp = {
13776
13777
  __name: "undo",
13777
13778
  setup(r) {
13778
- const { editor: e } = z();
13779
+ const { editor: e } = H();
13779
13780
  return (n, o) => {
13780
13781
  var l;
13781
- const t = V;
13782
+ const t = D;
13782
13783
  return m(), _(t, {
13783
13784
  ico: "i-sed:undo",
13784
13785
  text: ("t" in n ? n.t : i(c))("base.undo"),
@@ -13795,13 +13796,13 @@ const cp = {
13795
13796
  }, fp = {
13796
13797
  __name: "fill",
13797
13798
  setup(r) {
13798
- const { editor: e } = z();
13799
+ const { editor: e } = H();
13799
13800
  function n() {
13800
13801
  var o;
13801
13802
  (o = e.value) == null || o.chain().focus().setFillNode().run();
13802
13803
  }
13803
13804
  return (o, t) => {
13804
- const l = V;
13805
+ const l = D;
13805
13806
  return m(), _(l, {
13806
13807
  ico: "i-sed:inline-fill",
13807
13808
  text: ("t" in o ? o.t : i(c))("insert.fill"),
@@ -13813,13 +13814,13 @@ const cp = {
13813
13814
  }, hp = {
13814
13815
  __name: "math",
13815
13816
  setup(r) {
13816
- const { editor: e } = z();
13817
+ const { editor: e } = H();
13817
13818
  function n() {
13818
13819
  var o;
13819
13820
  (o = e.value) == null || o.chain().focus().insertContent("$\\LaTeX$").run();
13820
13821
  }
13821
13822
  return (o, t) => {
13822
- const l = V;
13823
+ const l = D;
13823
13824
  return m(), _(l, {
13824
13825
  ico: "i-sed:inline-latex",
13825
13826
  text: ("t" in o ? o.t : i(c))("insert.math"),
@@ -13831,7 +13832,7 @@ const cp = {
13831
13832
  }, bp = ["onMouseover"], vp = { class: "smart-table-custom" }, gp = ["textContent"], _p = {
13832
13833
  __name: "table",
13833
13834
  setup(r) {
13834
- const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = z(), t = Array.from({ length: 8 }, () => Array.from({ length: 10 }, () => "")), l = B({ rows: 0, cols: 0 });
13835
+ const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = H(), t = Array.from({ length: 8 }, () => Array.from({ length: 10 }, () => "")), l = B({ rows: 0, cols: 0 });
13835
13836
  function s(p, f) {
13836
13837
  return l.value.rows && l.value.rows > p && l.value.cols && l.value.cols > f;
13837
13838
  }
@@ -13847,7 +13848,7 @@ const cp = {
13847
13848
  p === 0 || p > 1e3 || f === 0 || f > 30 || ((b = o.value) == null || b.chain().focus().insertTable({ rows: p, cols: f, withHeaderRow: !1 }).run(), e.value = !1);
13848
13849
  }
13849
13850
  return (p, f) => {
13850
- const b = Rn, h = Se, k = V;
13851
+ const b = Rn, h = Se, k = D;
13851
13852
  return m(), _(k, {
13852
13853
  ico: "i-sed:table",
13853
13854
  text: ("t" in p ? p.t : i(c))("table.insert.text"),
@@ -13920,10 +13921,10 @@ const cp = {
13920
13921
  }, 8, ["text", "tooltip", "popup-visible", "onTogglePopup"]);
13921
13922
  };
13922
13923
  }
13923
- }, yp = /* @__PURE__ */ H(_p, [["__scopeId", "data-v-46850e3f"]]), kp = {
13924
+ }, yp = /* @__PURE__ */ z(_p, [["__scopeId", "data-v-46850e3f"]]), kp = {
13924
13925
  __name: "image",
13925
13926
  setup(r) {
13926
- const { slimOptions: e, editor: n } = z(), { onChange: o, open: t } = qt({
13927
+ const { slimOptions: e, editor: n } = H(), { onChange: o, open: t } = qt({
13927
13928
  accept: e.value.imageAccept.toString(),
13928
13929
  multiple: !1,
13929
13930
  reset: !0
@@ -13935,7 +13936,7 @@ const cp = {
13935
13936
  var a;
13936
13937
  s && ((a = n.value) == null || a.commands.uploadImage({ file: s }));
13937
13938
  }), (s, a) => {
13938
- const u = V;
13939
+ const u = D;
13939
13940
  return m(), _(u, {
13940
13941
  ico: "i-sed:image",
13941
13942
  text: ("t" in s ? s.t : i(c))("insert.image"),
@@ -13947,7 +13948,7 @@ const cp = {
13947
13948
  }, Cp = {
13948
13949
  __name: "line-height",
13949
13950
  setup(r) {
13950
- const { editor: e, slimOptions: n } = z(), o = W(() => {
13951
+ const { editor: e, slimOptions: n } = H(), o = V(() => {
13951
13952
  var l;
13952
13953
  return (l = n.value.dicts) == null ? void 0 : l.lineHeights.map((s) => {
13953
13954
  var a;
@@ -13967,7 +13968,7 @@ const cp = {
13967
13968
  l && ((s = e.value) == null || s.chain().focus().setLineHeight(l).run());
13968
13969
  }
13969
13970
  return (l, s) => {
13970
- const a = V;
13971
+ const a = D;
13971
13972
  return m(), _(a, {
13972
13973
  text: ("t" in l ? l.t : i(c))("base.lineHeight.text"),
13973
13974
  ico: "i-sed:lineheight",
@@ -13979,12 +13980,48 @@ const cp = {
13979
13980
  };
13980
13981
  }
13981
13982
  }, wp = {
13983
+ __name: "outdent",
13984
+ setup(r) {
13985
+ const { editor: e } = H();
13986
+ return (n, o) => {
13987
+ const t = R;
13988
+ return m(), _(t, {
13989
+ text: ("t" in n ? n.t : i(c))("base.outdent"),
13990
+ ico: "i-sed:outdent",
13991
+ shortcut: "Shift+Tab",
13992
+ "hide-text": "",
13993
+ onMenuClick: o[0] || (o[0] = (l) => {
13994
+ var s;
13995
+ return (s = i(e)) == null ? void 0 : s.chain().focus().outdent().run();
13996
+ })
13997
+ }, null, 8, ["text"]);
13998
+ };
13999
+ }
14000
+ }, xp = {
14001
+ __name: "indent",
14002
+ setup(r) {
14003
+ const { editor: e } = H();
14004
+ return (n, o) => {
14005
+ const t = R;
14006
+ return m(), _(t, {
14007
+ text: ("t" in n ? n.t : i(c))("base.indent"),
14008
+ ico: "i-sed:indent",
14009
+ shortcut: "Tab",
14010
+ "hide-text": "",
14011
+ onMenuClick: o[0] || (o[0] = (l) => {
14012
+ var s;
14013
+ return (s = i(e)) == null ? void 0 : s.chain().focus().indent().run();
14014
+ })
14015
+ }, null, 8, ["text"]);
14016
+ };
14017
+ }
14018
+ }, Ap = {
13982
14019
  __name: "align-justify",
13983
14020
  setup(r) {
13984
- const { editor: e } = z();
14021
+ const { editor: e } = H();
13985
14022
  return (n, o) => {
13986
14023
  var l, s;
13987
- const t = V;
14024
+ const t = D;
13988
14025
  return m(), _(t, {
13989
14026
  ico: "i-sed:align-justify",
13990
14027
  text: ("t" in n ? n.t : i(c))("base.align.justify"),
@@ -13999,17 +14036,17 @@ const cp = {
13999
14036
  }, null, 8, ["text", "menu-active", "disabled"]);
14000
14037
  };
14001
14038
  }
14002
- }, xp = {
14039
+ }, Tp = {
14003
14040
  __name: "align-right",
14004
14041
  setup(r) {
14005
- const { editor: e } = z();
14042
+ const { editor: e } = H();
14006
14043
  function n() {
14007
14044
  var o;
14008
14045
  (o = e.value) != null && o.can().chain().focus().setTextAlign("right").run() && e.value.chain().focus().setTextAlign("right").run();
14009
14046
  }
14010
14047
  return (o, t) => {
14011
14048
  var s, a;
14012
- const l = V;
14049
+ const l = D;
14013
14050
  return m(), _(l, {
14014
14051
  ico: "i-sed:align-right",
14015
14052
  text: ("t" in o ? o.t : i(c))("base.align.right"),
@@ -14021,17 +14058,17 @@ const cp = {
14021
14058
  }, null, 8, ["text", "menu-active", "disabled"]);
14022
14059
  };
14023
14060
  }
14024
- }, Ap = {
14061
+ }, Sp = {
14025
14062
  __name: "align-center",
14026
14063
  setup(r) {
14027
- const { editor: e } = z();
14064
+ const { editor: e } = H();
14028
14065
  function n() {
14029
14066
  var o;
14030
14067
  (o = e.value) != null && o.can().chain().focus().setTextAlign("center").run() && e.value.chain().focus().setTextAlign("center").run();
14031
14068
  }
14032
14069
  return (o, t) => {
14033
14070
  var s, a;
14034
- const l = V;
14071
+ const l = D;
14035
14072
  return m(), _(l, {
14036
14073
  ico: "i-sed:align-center",
14037
14074
  text: ("t" in o ? o.t : i(c))("base.align.center"),
@@ -14043,17 +14080,17 @@ const cp = {
14043
14080
  }, null, 8, ["text", "menu-active", "disabled"]);
14044
14081
  };
14045
14082
  }
14046
- }, Tp = {
14083
+ }, $p = {
14047
14084
  __name: "align-left",
14048
14085
  setup(r) {
14049
- const { editor: e } = z();
14086
+ const { editor: e } = H();
14050
14087
  function n() {
14051
14088
  var o;
14052
14089
  (o = e.value) != null && o.can().chain().focus().setTextAlign("left").run() && e.value.chain().focus().setTextAlign("left").run();
14053
14090
  }
14054
14091
  return (o, t) => {
14055
14092
  var s, a;
14056
- const l = V;
14093
+ const l = D;
14057
14094
  return m(), _(l, {
14058
14095
  ico: "i-sed:align-left",
14059
14096
  text: ("t" in o ? o.t : i(c))("base.align.left"),
@@ -14065,13 +14102,13 @@ const cp = {
14065
14102
  }, null, 8, ["text", "menu-active", "disabled"]);
14066
14103
  };
14067
14104
  }
14068
- }, Sp = { class: "smart-text-align-group" }, $p = {
14105
+ }, Mp = { class: "smart-text-align-group" }, Bp = {
14069
14106
  __name: "align-dropdown",
14070
14107
  setup(r) {
14071
- const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = z(), t = W(() => !o.value || o.value.isActive({ textAlign: "justify" }) ? "left" : o.value.isActive({ textAlign: "center" }) ? "center" : o.value.isActive({ textAlign: "right" }) ? "right" : o.value.isActive({ textAlign: "justify" }) ? "justify" : "left");
14108
+ const { popupVisible: e, togglePopup: n } = ye(), { editor: o } = H(), t = V(() => !o.value || o.value.isActive({ textAlign: "justify" }) ? "left" : o.value.isActive({ textAlign: "center" }) ? "center" : o.value.isActive({ textAlign: "right" }) ? "right" : o.value.isActive({ textAlign: "justify" }) ? "justify" : "left");
14072
14109
  return (l, s) => {
14073
14110
  var b;
14074
- const a = Tp, u = Ap, d = xp, p = wp, f = V;
14111
+ const a = $p, u = Sp, d = Tp, p = Ap, f = D;
14075
14112
  return m(), _(f, {
14076
14113
  ico: `i-sed:align-${i(t)}`,
14077
14114
  text: ("t" in l ? l.t : i(c))("base.align.title"),
@@ -14082,7 +14119,7 @@ const cp = {
14082
14119
  onTogglePopup: i(n)
14083
14120
  }, {
14084
14121
  content: A(() => [
14085
- g("div", Sp, [
14122
+ g("div", Mp, [
14086
14123
  v(a),
14087
14124
  v(u),
14088
14125
  v(d),
@@ -14093,13 +14130,13 @@ const cp = {
14093
14130
  }, 8, ["ico", "text", "disabled", "popup-visible", "onTogglePopup"]);
14094
14131
  };
14095
14132
  }
14096
- }, Mp = {
14133
+ }, Lp = {
14097
14134
  __name: "superscript",
14098
14135
  setup(r) {
14099
- const { editor: e } = z();
14136
+ const { editor: e } = H();
14100
14137
  return (n, o) => {
14101
14138
  var l, s;
14102
- const t = V;
14139
+ const t = D;
14103
14140
  return m(), _(t, {
14104
14141
  ico: "i-sed:super",
14105
14142
  text: ("t" in n ? n.t : i(c))("base.superscript"),
@@ -14114,13 +14151,13 @@ const cp = {
14114
14151
  }, null, 8, ["text", "menu-active", "disabled"]);
14115
14152
  };
14116
14153
  }
14117
- }, Bp = {
14154
+ }, Np = {
14118
14155
  __name: "subscript",
14119
14156
  setup(r) {
14120
- const { editor: e } = z();
14157
+ const { editor: e } = H();
14121
14158
  return (n, o) => {
14122
14159
  var l, s;
14123
- const t = V;
14160
+ const t = D;
14124
14161
  return m(), _(t, {
14125
14162
  ico: "i-sed:sub",
14126
14163
  text: ("t" in n ? n.t : i(c))("base.subscript"),
@@ -14135,13 +14172,13 @@ const cp = {
14135
14172
  }, null, 8, ["text", "menu-active", "disabled"]);
14136
14173
  };
14137
14174
  }
14138
- }, Lp = {
14175
+ }, Rp = {
14139
14176
  __name: "code",
14140
14177
  setup(r) {
14141
- const { editor: e } = z();
14178
+ const { editor: e } = H();
14142
14179
  return (n, o) => {
14143
14180
  var l, s;
14144
- const t = V;
14181
+ const t = D;
14145
14182
  return m(), _(t, {
14146
14183
  ico: "i-sed:code",
14147
14184
  text: ("t" in n ? n.t : i(c))("base.code"),
@@ -14156,7 +14193,7 @@ const cp = {
14156
14193
  }, null, 8, ["text", "menu-active", "disabled"]);
14157
14194
  };
14158
14195
  }
14159
- }, Np = {
14196
+ }, Ep = {
14160
14197
  __name: "background-color",
14161
14198
  props: {
14162
14199
  text: {
@@ -14174,7 +14211,7 @@ const cp = {
14174
14211
  },
14175
14212
  emits: ["change"],
14176
14213
  setup(r, { emit: e }) {
14177
- const n = r, o = e, { popupVisible: t, togglePopup: l } = ye(), { editor: s } = z(), a = B("");
14214
+ const n = r, o = e, { popupVisible: t, togglePopup: l } = ye(), { editor: s } = H(), a = B("");
14178
14215
  function u(d) {
14179
14216
  var p, f;
14180
14217
  if (a.value = d, n.modeless) {
@@ -14184,7 +14221,7 @@ const cp = {
14184
14221
  d === "" ? (p = s.value) == null || p.chain().focus().unsetHighlight().run() : (f = s.value) == null || f.chain().focus().setHighlight({ color: d }).run();
14185
14222
  }
14186
14223
  return (d, p) => {
14187
- const f = Go, b = V;
14224
+ const f = Ko, b = D;
14188
14225
  return m(), _(b, {
14189
14226
  ico: "i-sed:highlight",
14190
14227
  text: r.text || ("t" in d ? d.t : i(c))("base.bgColor"),
@@ -14213,7 +14250,7 @@ const cp = {
14213
14250
  }, 8, ["text", "popup-visible", "onTogglePopup"]);
14214
14251
  };
14215
14252
  }
14216
- }, Rp = /* @__PURE__ */ H(Np, [["__scopeId", "data-v-816de0e1"]]), Ep = {
14253
+ }, Ip = /* @__PURE__ */ z(Ep, [["__scopeId", "data-v-816de0e1"]]), Fp = {
14217
14254
  __name: "color",
14218
14255
  props: {
14219
14256
  text: {
@@ -14231,7 +14268,7 @@ const cp = {
14231
14268
  },
14232
14269
  emits: ["change"],
14233
14270
  setup(r, { emit: e }) {
14234
- const n = r, o = e, { popupVisible: t, togglePopup: l } = ye(), { editor: s } = z(), a = B("");
14271
+ const n = r, o = e, { popupVisible: t, togglePopup: l } = ye(), { editor: s } = H(), a = B("");
14235
14272
  function u(d) {
14236
14273
  var p, f;
14237
14274
  if (a.value = d, n.modeless) {
@@ -14241,7 +14278,7 @@ const cp = {
14241
14278
  d === "" ? (p = s.value) == null || p.chain().focus().unsetColor().run() : (f = s.value) == null || f.chain().focus().setColor(d).run();
14242
14279
  }
14243
14280
  return (d, p) => {
14244
- const f = ut, b = V;
14281
+ const f = ut, b = D;
14245
14282
  return m(), _(b, {
14246
14283
  ico: "i-sed:font-color-picker",
14247
14284
  text: r.text || ("t" in d ? d.t : i(c))("base.color"),
@@ -14270,13 +14307,13 @@ const cp = {
14270
14307
  }, 8, ["text", "popup-visible", "onTogglePopup"]);
14271
14308
  };
14272
14309
  }
14273
- }, Ip = /* @__PURE__ */ H(Ep, [["__scopeId", "data-v-710f5e19"]]), Fp = {
14310
+ }, Hp = /* @__PURE__ */ z(Fp, [["__scopeId", "data-v-710f5e19"]]), zp = {
14274
14311
  __name: "strike",
14275
14312
  setup(r) {
14276
- const { editor: e } = z();
14313
+ const { editor: e } = H();
14277
14314
  return (n, o) => {
14278
14315
  var l, s;
14279
- const t = V;
14316
+ const t = D;
14280
14317
  return m(), _(t, {
14281
14318
  ico: "i-sed:strike",
14282
14319
  text: ("t" in n ? n.t : i(c))("base.strike"),
@@ -14290,13 +14327,13 @@ const cp = {
14290
14327
  }, null, 8, ["text", "menu-active", "disabled"]);
14291
14328
  };
14292
14329
  }
14293
- }, Hp = {
14330
+ }, Op = {
14294
14331
  __name: "underline",
14295
14332
  setup(r) {
14296
- const { editor: e } = z();
14333
+ const { editor: e } = H();
14297
14334
  return (n, o) => {
14298
14335
  var l, s;
14299
- const t = V;
14336
+ const t = D;
14300
14337
  return m(), _(t, {
14301
14338
  ico: "i-sed:underline",
14302
14339
  text: ("t" in n ? n.t : i(c))("base.underline"),
@@ -14311,13 +14348,13 @@ const cp = {
14311
14348
  }, null, 8, ["text", "menu-active", "disabled"]);
14312
14349
  };
14313
14350
  }
14314
- }, zp = {
14351
+ }, Pp = {
14315
14352
  __name: "italic",
14316
14353
  setup(r) {
14317
- const { editor: e } = z();
14354
+ const { editor: e } = H();
14318
14355
  return (n, o) => {
14319
14356
  var l, s;
14320
- const t = V;
14357
+ const t = D;
14321
14358
  return m(), _(t, {
14322
14359
  text: ("t" in n ? n.t : i(c))("base.italic"),
14323
14360
  ico: "i-sed:italic",
@@ -14332,13 +14369,13 @@ const cp = {
14332
14369
  }, null, 8, ["text", "menu-active", "disabled"]);
14333
14370
  };
14334
14371
  }
14335
- }, Op = {
14372
+ }, Wp = {
14336
14373
  __name: "bold",
14337
14374
  setup(r) {
14338
- const { editor: e } = z();
14375
+ const { editor: e } = H();
14339
14376
  return (n, o) => {
14340
14377
  var l, s;
14341
- const t = V;
14378
+ const t = D;
14342
14379
  return m(), _(t, {
14343
14380
  ico: "i-sed:bold",
14344
14381
  text: ("t" in n ? n.t : i(c))("base.bold"),
@@ -14353,10 +14390,10 @@ const cp = {
14353
14390
  }, null, 8, ["text", "menu-active", "disabled"]);
14354
14391
  };
14355
14392
  }
14356
- }, Pp = {
14393
+ }, Vp = {
14357
14394
  __name: "font-size",
14358
14395
  setup(r) {
14359
- const { editor: e } = z(), n = [
14396
+ const { editor: e } = H(), n = [
14360
14397
  { label: "12", value: "12px", order: 1 },
14361
14398
  { label: "14", value: "14px", order: 2 },
14362
14399
  { label: "16", value: "16px", order: 3 },
@@ -14369,7 +14406,7 @@ const cp = {
14369
14406
  { label: "36", value: "36px", order: 10 },
14370
14407
  { label: "40", value: "40px", order: 11 },
14371
14408
  { label: "48", value: "48px", order: 12 }
14372
- ], o = W(() => {
14409
+ ], o = V(() => {
14373
14410
  var s, a, u, d;
14374
14411
  let l = (s = e.value) == null ? void 0 : s.getAttributes("textStyle").fontSize;
14375
14412
  if (!l) {
@@ -14388,7 +14425,7 @@ const cp = {
14388
14425
  (s = e.value) == null || s.chain().focus().setFontSize(l).run();
14389
14426
  }
14390
14427
  return (l, s) => {
14391
- const a = V;
14428
+ const a = D;
14392
14429
  return m(), _(a, ve({
14393
14430
  text: ("t" in l ? l.t : i(c))("base.fontSize.text"),
14394
14431
  "menu-type": "select",
@@ -14404,10 +14441,10 @@ const cp = {
14404
14441
  }), null, 16, ["text", "select-value", "placeholder"]);
14405
14442
  };
14406
14443
  }
14407
- }, Wp = {
14444
+ }, Dp = {
14408
14445
  __name: "font-family",
14409
14446
  setup(r) {
14410
- const { slimOptions: e, editor: n } = z(), o = Pe("recent");
14447
+ const { slimOptions: e, editor: n } = H(), o = Pe("recent");
14411
14448
  function t(u) {
14412
14449
  if (!u || u === "default")
14413
14450
  return !0;
@@ -14422,7 +14459,7 @@ const cp = {
14422
14459
  };
14423
14460
  return C(d).join("") !== C(u).join("");
14424
14461
  }
14425
- const l = W(() => {
14462
+ const l = V(() => {
14426
14463
  var f;
14427
14464
  const u = (b) => b.map((h) => ({
14428
14465
  ...h,
@@ -14466,7 +14503,7 @@ const cp = {
14466
14503
  }
14467
14504
  return (u, d) => {
14468
14505
  var f;
14469
- const p = V;
14506
+ const p = D;
14470
14507
  return m(), _(p, ve({
14471
14508
  text: ("t" in u ? u.t : i(c))("base.fontFamily.text"),
14472
14509
  "menu-type": "select",
@@ -14481,10 +14518,10 @@ const cp = {
14481
14518
  }), null, 16, ["text", "select-options", "select-value", "placeholder"]);
14482
14519
  };
14483
14520
  }
14484
- }, Vp = {
14521
+ }, Up = {
14485
14522
  __name: "heading",
14486
14523
  setup(r) {
14487
- const { editor: e } = z(), n = W(() => {
14524
+ const { editor: e } = H(), n = V(() => {
14488
14525
  const l = [
14489
14526
  { label: c("base.heading.paragraph"), desc: "text", value: "paragraph" }
14490
14527
  ];
@@ -14497,7 +14534,7 @@ const cp = {
14497
14534
  });
14498
14535
  }
14499
14536
  return l;
14500
- }), o = W(() => {
14537
+ }), o = V(() => {
14501
14538
  var s;
14502
14539
  const l = (a) => {
14503
14540
  var u;
@@ -14527,7 +14564,7 @@ const cp = {
14527
14564
  }
14528
14565
  return (l, s) => {
14529
14566
  var u, d;
14530
- const a = V;
14567
+ const a = D;
14531
14568
  return m(), _(a, {
14532
14569
  text: ("t" in l ? l.t : i(c))("base.heading.tip"),
14533
14570
  "hide-text": "",
@@ -14543,16 +14580,16 @@ const cp = {
14543
14580
  }, null, 8, ["text", "placeholder", "select-value", "select-options", "disabled"]);
14544
14581
  };
14545
14582
  }
14546
- }, Dp = /* @__PURE__ */ H(Vp, [["__scopeId", "data-v-8a16bdad"]]), Up = {
14583
+ }, Jp = /* @__PURE__ */ z(Up, [["__scopeId", "data-v-8a16bdad"]]), qp = {
14547
14584
  __name: "clear-format",
14548
14585
  setup(r) {
14549
- const { editor: e } = z();
14586
+ const { editor: e } = H();
14550
14587
  function n() {
14551
14588
  var o, t;
14552
14589
  (o = e.value) == null || o.commands.unsetFormatPainter(), (t = e.value) == null || t.chain().focus().unsetAllMarks().run();
14553
14590
  }
14554
14591
  return (o, t) => {
14555
- const l = V;
14592
+ const l = D;
14556
14593
  return m(), _(l, {
14557
14594
  ico: "i-sed:clear",
14558
14595
  text: ("t" in o ? o.t : i(c))("base.clearFormat"),
@@ -14561,13 +14598,13 @@ const cp = {
14561
14598
  }, null, 8, ["text"]);
14562
14599
  };
14563
14600
  }
14564
- }, Jp = { class: "smart-classic-menu" }, qp = {
14601
+ }, jp = { class: "smart-classic-menu" }, Gp = {
14565
14602
  __name: "toolbar",
14566
14603
  setup(r) {
14567
- const { config: e } = z();
14604
+ const { config: e } = H();
14568
14605
  return (n, o) => {
14569
- const t = Up, l = Dp, s = Wp, a = Pp, u = Op, d = zp, p = Hp, f = Fp, b = Ip, h = Rp, k = Lp, C = Bp, x = Mp, T = $p, w = Cp, y = kp, L = yp, R = hp, I = fp, U = mp, O = pp;
14570
- return m(), $("div", Jp, [
14606
+ const t = qp, l = Jp, s = Dp, a = Vp, u = Wp, d = Pp, p = Op, f = zp, b = Hp, h = Ip, k = Rp, C = Np, x = Lp, T = Bp, w = xp, y = wp, L = Cp, E = kp, I = yp, U = hp, O = fp, S = mp, P = pp;
14607
+ return m(), $("div", jp, [
14571
14608
  v(t),
14572
14609
  v(l),
14573
14610
  v(s),
@@ -14585,17 +14622,19 @@ const cp = {
14585
14622
  v(w),
14586
14623
  v(y),
14587
14624
  v(L),
14588
- v(R),
14589
- i(e).canFill ? (m(), _(I, { key: 0 })) : F("", !0),
14625
+ v(E),
14626
+ v(I),
14590
14627
  v(U),
14591
- v(O)
14628
+ i(e).canFill ? (m(), _(O, { key: 0 })) : F("", !0),
14629
+ v(S),
14630
+ v(P)
14592
14631
  ]);
14593
14632
  };
14594
14633
  }
14595
- }, jp = /* @__PURE__ */ H(qp, [["__scopeId", "data-v-941be6af"]]), Gp = ["id"], Kp = {
14634
+ }, Kp = /* @__PURE__ */ z(Gp, [["__scopeId", "data-v-e22a8790"]]), Yp = ["id"], Zp = {
14596
14635
  key: 0,
14597
14636
  class: "smart-toolbar"
14598
- }, Yp = { class: "smart-main" }, zf = /* @__PURE__ */ Object.assign({ name: "SmartEditorSlim" }, {
14637
+ }, Xp = { class: "smart-main" }, Pf = /* @__PURE__ */ Object.assign({ name: "SmartEditorSlim" }, {
14599
14638
  __name: "index",
14600
14639
  props: /* @__PURE__ */ nn(["config"], {
14601
14640
  modelValue: {},
@@ -14612,7 +14651,7 @@ const cp = {
14612
14651
  valueDark: "dark",
14613
14652
  valueLight: "light"
14614
14653
  }
14615
- ), { container: l, locale: s, editor: a, setConfig: u, showTableBar: d } = z();
14654
+ ), { container: l, locale: s, editor: a, setConfig: u, showTableBar: d } = H();
14616
14655
  Dn(() => {
14617
14656
  u(n.config);
14618
14657
  });
@@ -14626,7 +14665,7 @@ const cp = {
14626
14665
  };
14627
14666
  return C.replace(/&amp;/g, (T) => x[T]);
14628
14667
  }
14629
- const f = W(() => !n.config.readOnly);
14668
+ const f = V(() => !n.config.readOnly);
14630
14669
  function b(C) {
14631
14670
  const x = /\$([^$]*)\$/g;
14632
14671
  if (!C)
@@ -14637,7 +14676,7 @@ const cp = {
14637
14676
  { throwOnError: !1 }
14638
14677
  )}</span>`) : "";
14639
14678
  }
14640
- const h = yr(r, "modelValue");
14679
+ const h = kr(r, "modelValue");
14641
14680
  Fe(() => {
14642
14681
  var C;
14643
14682
  (C = a.value) == null || C.commands.setContent(h.value);
@@ -14661,7 +14700,7 @@ const cp = {
14661
14700
  }));
14662
14701
  }
14663
14702
  ), (C, x) => {
14664
- const T = jp, w = dp, y = On;
14703
+ const T = Kp, w = dp, y = On;
14665
14704
  return m(), _(y, {
14666
14705
  "cls-prefix": "se",
14667
14706
  "theme-overrides": i(t) ? i(fo) : i(mo),
@@ -14674,13 +14713,13 @@ const cp = {
14674
14713
  id: i(l).substr(1),
14675
14714
  class: "smart-editor-slim-container"
14676
14715
  }, [
14677
- i(f) ? (m(), $("header", Kp, [
14716
+ i(f) ? (m(), $("header", Zp, [
14678
14717
  v(T)
14679
14718
  ])) : F("", !0),
14680
- g("main", Yp, [
14719
+ g("main", Xp, [
14681
14720
  v(w)
14682
14721
  ])
14683
- ], 8, Gp)
14722
+ ], 8, Yp)
14684
14723
  ]),
14685
14724
  _: 1
14686
14725
  }, 8, ["theme-overrides", "locale", "date-locale", "theme"]);
@@ -14688,7 +14727,7 @@ const cp = {
14688
14727
  }
14689
14728
  });
14690
14729
  export {
14691
- Hf as SmartEditor,
14692
- zf as SmartEditorSlim,
14693
- Hf as default
14730
+ Of as SmartEditor,
14731
+ Pf as SmartEditorSlim,
14732
+ Of as default
14694
14733
  };