flow-mindmap 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- import { defineComponent as rn, openBlock as R, createElementBlock as C, Fragment as oe, createElementVNode as S, createStaticVNode as tt, createCommentVNode as le, ref as ie, reactive as Dt, onMounted as tn, onBeforeUnmount as an, computed as xe, withModifiers as J, normalizeStyle as He, createVNode as ge, toDisplayString as Re, watch as At, nextTick as ve, unref as K, renderList as ht, normalizeClass as Pe, withDirectives as Cn, vModelText as On, withKeys as Rt, createBlock as so } from "vue";
1
+ import { defineComponent as rn, openBlock as C, createElementBlock as O, Fragment as oe, createElementVNode as S, createStaticVNode as tt, createCommentVNode as he, ref as ie, reactive as Dt, onMounted as tn, onBeforeUnmount as an, computed as xe, withModifiers as J, normalizeStyle as He, createVNode as fe, toDisplayString as Re, watch as At, nextTick as ve, unref as K, renderList as ht, normalizeClass as Pe, withDirectives as Cn, vModelText as On, withKeys as Rt, createBlock as so } from "vue";
2
2
  const lo = ["width", "height", "stroke-width"], co = {
3
3
  key: 4,
4
4
  points: "6 9 12 15 18 9"
5
5
  }, uo = {
6
6
  key: 5,
7
7
  points: "9 6 15 12 9 18"
8
- }, he = /* @__PURE__ */ rn({
8
+ }, ge = /* @__PURE__ */ rn({
9
9
  __name: "Icon",
10
10
  props: {
11
11
  name: {},
@@ -13,7 +13,7 @@ const lo = ["width", "height", "stroke-width"], co = {
13
13
  stroke: {}
14
14
  },
15
15
  setup(e) {
16
- return (o, n) => (R(), C("svg", {
16
+ return (o, n) => (C(), O("svg", {
17
17
  width: e.size ?? 16,
18
18
  height: e.size ?? 16,
19
19
  viewBox: "0 0 24 24",
@@ -24,7 +24,7 @@ const lo = ["width", "height", "stroke-width"], co = {
24
24
  "stroke-linejoin": "round",
25
25
  "aria-hidden": "true"
26
26
  }, [
27
- e.name === "add" ? (R(), C(oe, { key: 0 }, [
27
+ e.name === "add" ? (C(), O(oe, { key: 0 }, [
28
28
  n[0] || (n[0] = S("circle", {
29
29
  cx: "12",
30
30
  cy: "12",
@@ -42,7 +42,7 @@ const lo = ["width", "height", "stroke-width"], co = {
42
42
  x2: "16",
43
43
  y2: "12"
44
44
  }, null, -1))
45
- ], 64)) : e.name === "minus" ? (R(), C(oe, { key: 1 }, [
45
+ ], 64)) : e.name === "minus" ? (C(), O(oe, { key: 1 }, [
46
46
  n[3] || (n[3] = S("circle", {
47
47
  cx: "12",
48
48
  cy: "12",
@@ -54,9 +54,9 @@ const lo = ["width", "height", "stroke-width"], co = {
54
54
  x2: "16",
55
55
  y2: "12"
56
56
  }, null, -1))
57
- ], 64)) : e.name === "delete" ? (R(), C(oe, { key: 2 }, [
57
+ ], 64)) : e.name === "delete" ? (C(), O(oe, { key: 2 }, [
58
58
  n[5] || (n[5] = tt('<polyline points="4 7 20 7"></polyline><path d="M9 7 V5 a1 1 0 0 1 1 -1 h4 a1 1 0 0 1 1 1 V7"></path><path d="M6 7 l1 12 a1 1 0 0 0 1 1 h8 a1 1 0 0 0 1 -1 l1 -12"></path><line x1="10" y1="11" x2="10" y2="18"></line><line x1="14" y1="11" x2="14" y2="18"></line>', 5))
59
- ], 64)) : e.name === "edit" ? (R(), C(oe, { key: 3 }, [
59
+ ], 64)) : e.name === "edit" ? (C(), O(oe, { key: 3 }, [
60
60
  n[6] || (n[6] = S("path", { d: "M4 20 l4 -1 11 -11 -3 -3 -11 11 z" }, null, -1)),
61
61
  n[7] || (n[7] = S("line", {
62
62
  x1: "14",
@@ -64,7 +64,7 @@ const lo = ["width", "height", "stroke-width"], co = {
64
64
  x2: "18",
65
65
  y2: "10"
66
66
  }, null, -1))
67
- ], 64)) : e.name === "collapse" ? (R(), C("polyline", co)) : e.name === "expand" ? (R(), C("polyline", uo)) : e.name === "zoom-in" ? (R(), C(oe, { key: 6 }, [
67
+ ], 64)) : e.name === "collapse" ? (C(), O("polyline", co)) : e.name === "expand" ? (C(), O("polyline", uo)) : e.name === "zoom-in" ? (C(), O(oe, { key: 6 }, [
68
68
  n[8] || (n[8] = S("circle", {
69
69
  cx: "11",
70
70
  cy: "11",
@@ -88,7 +88,7 @@ const lo = ["width", "height", "stroke-width"], co = {
88
88
  x2: "21",
89
89
  y2: "21"
90
90
  }, null, -1))
91
- ], 64)) : e.name === "zoom-out" ? (R(), C(oe, { key: 7 }, [
91
+ ], 64)) : e.name === "zoom-out" ? (C(), O(oe, { key: 7 }, [
92
92
  n[12] || (n[12] = S("circle", {
93
93
  cx: "11",
94
94
  cy: "11",
@@ -106,7 +106,7 @@ const lo = ["width", "height", "stroke-width"], co = {
106
106
  x2: "21",
107
107
  y2: "21"
108
108
  }, null, -1))
109
- ], 64)) : e.name === "reset" ? (R(), C(oe, { key: 8 }, [
109
+ ], 64)) : e.name === "reset" ? (C(), O(oe, { key: 8 }, [
110
110
  n[15] || (n[15] = S("circle", {
111
111
  cx: "12",
112
112
  cy: "12",
@@ -123,25 +123,25 @@ const lo = ["width", "height", "stroke-width"], co = {
123
123
  r: "0.8",
124
124
  fill: "currentColor"
125
125
  }, null, -1))
126
- ], 64)) : e.name === "logo" ? (R(), C(oe, { key: 9 }, [
126
+ ], 64)) : e.name === "logo" ? (C(), O(oe, { key: 9 }, [
127
127
  n[18] || (n[18] = tt('<circle cx="12" cy="12" r="2.2"></circle><circle cx="4" cy="5" r="1.6"></circle><circle cx="20" cy="5" r="1.6"></circle><circle cx="4" cy="19" r="1.6"></circle><circle cx="20" cy="19" r="1.6"></circle><line x1="10.5" y1="10.8" x2="5.2" y2="6.4"></line><line x1="13.5" y1="10.8" x2="18.8" y2="6.4"></line><line x1="10.5" y1="13.2" x2="5.2" y2="17.6"></line><line x1="13.5" y1="13.2" x2="18.8" y2="17.6"></line>', 9))
128
- ], 64)) : e.name === "import" ? (R(), C(oe, { key: 10 }, [
128
+ ], 64)) : e.name === "import" ? (C(), O(oe, { key: 10 }, [
129
129
  n[19] || (n[19] = S("path", { d: "M12 4 V15" }, null, -1)),
130
130
  n[20] || (n[20] = S("polyline", { points: "7 10 12 15 17 10" }, null, -1)),
131
131
  n[21] || (n[21] = S("path", { d: "M4 19 H20" }, null, -1))
132
- ], 64)) : e.name === "export" ? (R(), C(oe, { key: 11 }, [
132
+ ], 64)) : e.name === "export" ? (C(), O(oe, { key: 11 }, [
133
133
  n[22] || (n[22] = S("path", { d: "M12 15 V4" }, null, -1)),
134
134
  n[23] || (n[23] = S("polyline", { points: "7 9 12 4 17 9" }, null, -1)),
135
135
  n[24] || (n[24] = S("path", { d: "M4 19 H20" }, null, -1))
136
- ], 64)) : e.name === "balance" ? (R(), C(oe, { key: 12 }, [
136
+ ], 64)) : e.name === "balance" ? (C(), O(oe, { key: 12 }, [
137
137
  n[25] || (n[25] = tt('<line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="18" x2="21" y2="18"></line><polyline points="9 4 5 6 9 8"></polyline><polyline points="15 4 19 6 15 8"></polyline><polyline points="9 10 5 12 9 14"></polyline><polyline points="15 10 19 12 15 14"></polyline><polyline points="9 16 5 18 9 20"></polyline><polyline points="15 16 19 18 15 20"></polyline>', 9))
138
- ], 64)) : e.name === "mindmap" ? (R(), C(oe, { key: 13 }, [
138
+ ], 64)) : e.name === "mindmap" ? (C(), O(oe, { key: 13 }, [
139
139
  n[26] || (n[26] = tt('<circle cx="12" cy="12" r="2.2" fill="currentColor" stroke="none"></circle><line x1="13" y1="11" x2="19" y2="6"></line><line x1="13" y1="13" x2="19" y2="18"></line><line x1="11" y1="11" x2="5" y2="6"></line><line x1="11" y1="13" x2="5" y2="18"></line>', 5))
140
- ], 64)) : e.name === "tree" ? (R(), C(oe, { key: 14 }, [
140
+ ], 64)) : e.name === "tree" ? (C(), O(oe, { key: 14 }, [
141
141
  n[27] || (n[27] = tt('<circle cx="6" cy="12" r="2" fill="currentColor" stroke="none"></circle><circle cx="18" cy="6" r="2" fill="currentColor" stroke="none"></circle><circle cx="18" cy="12" r="2" fill="currentColor" stroke="none"></circle><circle cx="18" cy="18" r="2" fill="currentColor" stroke="none"></circle><line x1="8" y1="12" x2="16" y2="6"></line><line x1="8" y1="12" x2="16" y2="12"></line><line x1="8" y1="12" x2="16" y2="18"></line>', 7))
142
- ], 64)) : e.name === "org" ? (R(), C(oe, { key: 15 }, [
142
+ ], 64)) : e.name === "org" ? (C(), O(oe, { key: 15 }, [
143
143
  n[28] || (n[28] = tt('<circle cx="12" cy="5" r="2" fill="currentColor" stroke="none"></circle><circle cx="6" cy="19" r="2" fill="currentColor" stroke="none"></circle><circle cx="12" cy="19" r="2" fill="currentColor" stroke="none"></circle><circle cx="18" cy="19" r="2" fill="currentColor" stroke="none"></circle><line x1="12" y1="7" x2="12" y2="13"></line><line x1="6" y1="13" x2="18" y2="13"></line><line x1="6" y1="13" x2="6" y2="17"></line><line x1="12" y1="13" x2="12" y2="17"></line><line x1="18" y1="13" x2="18" y2="17"></line>', 9))
144
- ], 64)) : e.name === "image" ? (R(), C(oe, { key: 16 }, [
144
+ ], 64)) : e.name === "image" ? (C(), O(oe, { key: 16 }, [
145
145
  n[29] || (n[29] = S("rect", {
146
146
  x: "3",
147
147
  y: "5",
@@ -155,7 +155,7 @@ const lo = ["width", "height", "stroke-width"], co = {
155
155
  r: "1.6"
156
156
  }, null, -1)),
157
157
  n[31] || (n[31] = S("polyline", { points: "3 17 9 12 13 15 16 13 21 17" }, null, -1))
158
- ], 64)) : e.name === "x" ? (R(), C(oe, { key: 17 }, [
158
+ ], 64)) : e.name === "x" ? (C(), O(oe, { key: 17 }, [
159
159
  n[32] || (n[32] = S("line", {
160
160
  x1: "6",
161
161
  y1: "6",
@@ -168,10 +168,10 @@ const lo = ["width", "height", "stroke-width"], co = {
168
168
  x2: "6",
169
169
  y2: "18"
170
170
  }, null, -1))
171
- ], 64)) : e.name === "link" ? (R(), C(oe, { key: 18 }, [
171
+ ], 64)) : e.name === "link" ? (C(), O(oe, { key: 18 }, [
172
172
  n[34] || (n[34] = S("path", { d: "M10 13 a4 4 0 0 0 5.66 0 l3 -3 a4 4 0 1 0 -5.66 -5.66 l-1 1" }, null, -1)),
173
173
  n[35] || (n[35] = S("path", { d: "M14 11 a4 4 0 0 0 -5.66 0 l-3 3 a4 4 0 1 0 5.66 5.66 l1 -1" }, null, -1))
174
- ], 64)) : e.name === "note" ? (R(), C(oe, { key: 19 }, [
174
+ ], 64)) : e.name === "note" ? (C(), O(oe, { key: 19 }, [
175
175
  n[36] || (n[36] = S("path", { d: "M6 4 h9 l3 3 v13 a1 1 0 0 1 -1 1 h-11 a1 1 0 0 1 -1 -1 v-15 a1 1 0 0 1 1 -1 z" }, null, -1)),
176
176
  n[37] || (n[37] = S("line", {
177
177
  x1: "8",
@@ -191,12 +191,12 @@ const lo = ["width", "height", "stroke-width"], co = {
191
191
  x2: "13",
192
192
  y2: "16"
193
193
  }, null, -1))
194
- ], 64)) : le("", !0)
194
+ ], 64)) : he("", !0)
195
195
  ], 8, lo));
196
196
  }
197
- }), fo = "data:image/svg+xml,%3csvg%20t='1780822312364'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7459'%20width='200'%20height='200'%3e%3cpath%20d='M329.16%20292.571h658.286V512H329.16zM329.16%200h658.286v219.429H329.16z'%20fill='%239AA1A2'%20p-id='7460'%3e%3c/path%3e%3cpath%20d='M44.927%20146.286a46.519%2046.519%200%200%201%2038.107-73.143h319.269v73.143H109.73V791.99l-48.713%205.705-24.43-651.41h8.339z'%20fill='%239AA1A2'%20p-id='7461'%3e%3c/path%3e%3cpath%20d='M363.83%20877.714H179.51c-78.775%200-142.921-66.12-142.921-147.31V112.787c0-21.943%2017.188-39.643%2038.473-39.643%2021.211%200%2033.5%2017.774%2033.5%2039.643v617.619c0%2037.522%2028.013%2076.58%2064.438%2076.58h190.903c21.211%200%2038.766%2013.97%2038.766%2035.84%200%2021.943-17.555%2034.89-38.766%2034.89z'%20fill='%239AA1A2'%20p-id='7462'%3e%3c/path%3e%3cpath%20d='M432.95%20438.857H179.51c-78.775%200-81.043-18.578-81.043-62.903l10.094-90.624c0%2020.48%2013.458%2080.677%2049.884%2080.677h210.139c21.211%200%20120.613%204.023%20120.613%2016.018%200%2011.922-35.036%2056.832-56.32%2056.832zM640.017%20749.714V640a54.857%2054.857%200%200%201%20109.714%200v109.714h109.715a54.857%2054.857%200%200%201%200%20109.715H749.73v109.714a54.857%2054.857%200%200%201-109.714%200V859.429H530.303a54.857%2054.857%200%200%201%200-109.715h109.714z'%20fill='%239AA1A2'%20p-id='7463'%3e%3c/path%3e%3c/svg%3e", go = "data:image/svg+xml,%3csvg%20t='1780822464335'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8457'%20width='200'%20height='200'%3e%3cpath%20d='M512%20804.571h512V1024H512V804.571zM0%200h658.286v219.429H0V0z'%20fill='%239AA1A2'%20p-id='8458'%3e%3c/path%3e%3cpath%20d='M619.813%20950.857h-184.32c-78.775%200-142.922-66.121-142.922-147.31V185.93c0-21.943%2017.189-39.643%2038.474-39.643%2021.211%200%2033.353%2017.773%2033.353%2039.643v617.618c0%2037.523%2034.743%2073.728%2071.095%2073.728h184.32c21.211%200%2038.473%2012.069%2038.473%2033.939%200%2021.943-17.189%2039.643-38.473%2039.643z'%20fill='%239AA1A2'%20p-id='8459'%3e%3c/path%3e%3cpath%20d='M676.571%20457.143V347.429a54.857%2054.857%200%200%201%20109.715%200v109.714H896a54.857%2054.857%200%200%201%200%20109.714H786.286v109.714a54.857%2054.857%200%200%201-109.715%200V566.857H566.857a54.857%2054.857%200%200%201%200-109.714h109.714z'%20fill='%239AA1A2'%20p-id='8460'%3e%3c/path%3e%3c/svg%3e", ni = [18, 15, 13, 12], ho = [700, 600, 500, 400], mo = [52, 40, 32, 28], bo = [120, 80, 60, 44], po = [0.8, 0.8, 0.8, 0.8], vo = ni.length - 1;
197
+ }), fo = "data:image/svg+xml,%3csvg%20t='1780822312364'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7459'%20width='200'%20height='200'%3e%3cpath%20d='M329.16%20292.571h658.286V512H329.16zM329.16%200h658.286v219.429H329.16z'%20fill='%239AA1A2'%20p-id='7460'%3e%3c/path%3e%3cpath%20d='M44.927%20146.286a46.519%2046.519%200%200%201%2038.107-73.143h319.269v73.143H109.73V791.99l-48.713%205.705-24.43-651.41h8.339z'%20fill='%239AA1A2'%20p-id='7461'%3e%3c/path%3e%3cpath%20d='M363.83%20877.714H179.51c-78.775%200-142.921-66.12-142.921-147.31V112.787c0-21.943%2017.188-39.643%2038.473-39.643%2021.211%200%2033.5%2017.774%2033.5%2039.643v617.619c0%2037.522%2028.013%2076.58%2064.438%2076.58h190.903c21.211%200%2038.766%2013.97%2038.766%2035.84%200%2021.943-17.555%2034.89-38.766%2034.89z'%20fill='%239AA1A2'%20p-id='7462'%3e%3c/path%3e%3cpath%20d='M432.95%20438.857H179.51c-78.775%200-81.043-18.578-81.043-62.903l10.094-90.624c0%2020.48%2013.458%2080.677%2049.884%2080.677h210.139c21.211%200%20120.613%204.023%20120.613%2016.018%200%2011.922-35.036%2056.832-56.32%2056.832zM640.017%20749.714V640a54.857%2054.857%200%200%201%20109.714%200v109.714h109.715a54.857%2054.857%200%200%201%200%20109.715H749.73v109.714a54.857%2054.857%200%200%201-109.714%200V859.429H530.303a54.857%2054.857%200%200%201%200-109.715h109.714z'%20fill='%239AA1A2'%20p-id='7463'%3e%3c/path%3e%3c/svg%3e", go = "data:image/svg+xml,%3csvg%20t='1780822464335'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8457'%20width='200'%20height='200'%3e%3cpath%20d='M512%20804.571h512V1024H512V804.571zM0%200h658.286v219.429H0V0z'%20fill='%239AA1A2'%20p-id='8458'%3e%3c/path%3e%3cpath%20d='M619.813%20950.857h-184.32c-78.775%200-142.922-66.121-142.922-147.31V185.93c0-21.943%2017.189-39.643%2038.474-39.643%2021.211%200%2033.353%2017.773%2033.353%2039.643v617.618c0%2037.523%2034.743%2073.728%2071.095%2073.728h184.32c21.211%200%2038.473%2012.069%2038.473%2033.939%200%2021.943-17.189%2039.643-38.473%2039.643z'%20fill='%239AA1A2'%20p-id='8459'%3e%3c/path%3e%3cpath%20d='M676.571%20457.143V347.429a54.857%2054.857%200%200%201%20109.715%200v109.714H896a54.857%2054.857%200%200%201%200%20109.714H786.286v109.714a54.857%2054.857%200%200%201-109.715%200V566.857H566.857a54.857%2054.857%200%200%201%200-109.714h109.714z'%20fill='%239AA1A2'%20p-id='8460'%3e%3c/path%3e%3c/svg%3e", ni = [18, 15, 13, 12], ho = [700, 600, 500, 400], mo = [52, 40, 32, 28], po = [120, 80, 60, 44], bo = [0.8, 0.8, 0.8, 0.8], vo = ni.length - 1;
198
198
  function yo(e, o) {
199
- return Math.round(sn(e, o) * po[Ut(e)]);
199
+ return Math.round(sn(e, o) * bo[Ut(e)]);
200
200
  }
201
201
  function Ut(e) {
202
202
  return Math.min(vo, Math.max(0, e));
@@ -237,19 +237,19 @@ function Ao(e, o, n, r, a) {
237
237
  const I = (e.link ? 1 : 0) + (e.note ? 1 : 0);
238
238
  y += So * I;
239
239
  }
240
- const l = g + y, O = (() => {
241
- const I = Math.round(bo[f] * n / 14);
240
+ const l = g + y, R = (() => {
241
+ const I = Math.round(po[f] * n / 14);
242
242
  if (e.richContent && (e.richContent.kind === "code" || e.richContent.kind === "table")) {
243
243
  const te = a == null ? void 0 : a[e.id];
244
244
  return Math.max(I, te ?? 240);
245
245
  }
246
246
  return I;
247
- })(), $ = !!(e.richContent && (e.richContent.kind === "code" || e.richContent.kind === "table")), X = r == null ? void 0 : r[e.id], N = $ ? Math.max(24, X ?? Math.max(70, Math.ceil(s * 5))) : 0, V = N > 0 ? 10 : 0;
247
+ })(), z = !!(e.richContent && (e.richContent.kind === "code" || e.richContent.kind === "table")), X = r == null ? void 0 : r[e.id], N = z ? Math.max(24, X ?? Math.max(70, Math.ceil(s * 5))) : 0, V = N > 0 ? 10 : 0;
248
248
  if (!e.image) {
249
- const I = Math.max(O, l), te = Math.ceil(m + V + N);
249
+ const I = Math.max(R, l), te = Math.ceil(m + V + N);
250
250
  return { w: I, h: te };
251
251
  }
252
- const L = To(e.image.width, wo, No), B = Math.max(O, l, Math.ceil(L + u * 2)), H = Math.ceil(e.image.height + ko + m + V + N);
252
+ const L = To(e.image.width, wo, No), B = Math.max(R, l, Math.ceil(L + u * 2)), H = Math.ceil(e.image.height + ko + m + V + N);
253
253
  return { w: B, h: H };
254
254
  }
255
255
  function Ro(e, o = {}) {
@@ -353,8 +353,8 @@ function oi(e, o, n, r, a, f, s, c) {
353
353
  if (e.collapsed) return g;
354
354
  const v = e.children.length, m = Math.ceil(v / 2);
355
355
  return g.children = e.children.map((y, l) => {
356
- const O = o === 0 ? l < m ? 1 : -1 : r;
357
- return oi(y, o + 1, g, O, a, f, s, c);
356
+ const R = o === 0 ? l < m ? 1 : -1 : r;
357
+ return oi(y, o + 1, g, R, a, f, s, c);
358
358
  }), g;
359
359
  }
360
360
  function Oo(e) {
@@ -482,7 +482,7 @@ const mt = [
482
482
  function Lo(e, o = []) {
483
483
  return [...mt, ...o].find((r) => r.id === e) ?? mt[0];
484
484
  }
485
- function $e() {
485
+ function ze() {
486
486
  return "n_" + Math.random().toString(36).slice(2, 10) + Date.now().toString(36).slice(-4);
487
487
  }
488
488
  function We(e) {
@@ -543,20 +543,20 @@ function ai(e) {
543
543
  } else
544
544
  r = !0;
545
545
  }
546
- return n === 0 && !r ? $t : n > 0 ? `新节点 ${n + 1}` : "新节点 2";
546
+ return n === 0 && !r ? zt : n > 0 ? `新节点 ${n + 1}` : "新节点 2";
547
547
  }
548
- function $o(e, o, n) {
548
+ function zo(e, o, n) {
549
549
  const r = Y(e, o);
550
550
  if (!r) return null;
551
- const a = { id: $e(), text: n ?? ai(r), children: [] };
551
+ const a = { id: ze(), text: n ?? ai(r), children: [] };
552
552
  return r.children.push(a), a;
553
553
  }
554
- function zo(e, o, n) {
554
+ function $o(e, o, n) {
555
555
  const r = Le(e, o);
556
556
  if (!r) return null;
557
557
  const a = r.children.findIndex((s) => s.id === o);
558
558
  if (a < 0) return null;
559
- const f = { id: $e(), text: n ?? ai(r), children: [] };
559
+ const f = { id: ze(), text: n ?? ai(r), children: [] };
560
560
  return r.children.splice(a + 1, 0, f), f;
561
561
  }
562
562
  function Po(e, o, n) {
@@ -564,7 +564,7 @@ function Po(e, o, n) {
564
564
  if (!r) return null;
565
565
  const a = r.children.findIndex((s) => s.id === o);
566
566
  if (a < 0) return null;
567
- const f = { id: $e(), text: n, children: [] };
567
+ const f = { id: ze(), text: n, children: [] };
568
568
  return r.children.splice(a, 0, f), f;
569
569
  }
570
570
  function Uo(e, o) {
@@ -576,17 +576,17 @@ function Uo(e, o) {
576
576
  return si(f), n.children.splice(r + 1, 0, f), f;
577
577
  }
578
578
  function si(e) {
579
- e.id = $e();
579
+ e.id = ze();
580
580
  for (const o of e.children) si(o);
581
581
  }
582
- const $t = "新节点";
582
+ const zt = "新节点";
583
583
  function Dn(e, o = "导入的导图") {
584
- const n = e.split(/\r?\n/), r = { id: $e(), text: o, children: [] }, a = [r], f = [-1 / 0], s = [], c = /^(#{1,6})\s+(.+?)\s*#*\s*$/, u = /^!\[([^\]]*)\]\((\S+?)(?:\s+"[^"]*")?\)\s*$/, g = /^\[([^\]]+)\]\((\S+?)(?:\s+"[^"]*")?\)\s*$/, v = /^(`{3,}|~{3,})\s*(\S+)?\s*$/;
584
+ const n = e.split(/\r?\n/), r = { id: ze(), text: o, children: [] }, a = [r], f = [-1 / 0], s = [], c = /^(#{1,6})\s+(.+?)\s*#*\s*$/, u = /^!\[([^\]]*)\]\((\S+?)(?:\s+"[^"]*")?\)\s*$/, g = /^\[([^\]]+)\]\((\S+?)(?:\s+"[^"]*")?\)\s*$/, v = /^(`{3,}|~{3,})\s*(\S+)?\s*$/;
585
585
  let m = !1, y = [], l = null;
586
- function O(N) {
586
+ function R(N) {
587
587
  y.push(N);
588
588
  }
589
- function $() {
589
+ function z() {
590
590
  if (l && y.length > 0) {
591
591
  for (; y.length > 0 && y[0].trim() === ""; ) y.shift();
592
592
  for (; y.length > 0 && y[y.length - 1].trim() === ""; ) y.pop();
@@ -600,10 +600,10 @@ function Dn(e, o = "导入的导图") {
600
600
  if (m) {
601
601
  const I = N.match(v);
602
602
  if (I && I[1][0] === "`") {
603
- $();
603
+ z();
604
604
  continue;
605
605
  }
606
- O(N);
606
+ R(N);
607
607
  continue;
608
608
  }
609
609
  const V = N.match(c);
@@ -634,14 +634,14 @@ function Dn(e, o = "导入的导图") {
634
634
  ` + I : I;
635
635
  }
636
636
  }
637
- m && $();
637
+ m && z();
638
638
  function X(N) {
639
639
  for (; a.length > 1; ) {
640
640
  const H = a.length - 1, I = f[H];
641
641
  if (I !== void 0 && I < N.level) break;
642
642
  a.pop(), f.pop();
643
643
  }
644
- const V = a[a.length - 1], L = N.text, B = { id: $e(), text: L, children: [] };
644
+ const V = a[a.length - 1], L = N.text, B = { id: ze(), text: L, children: [] };
645
645
  N.image && (B.image = { ...N.image }), N.link && (B.link = { url: N.link.url }), N.note && (B.note = { text: N.note.text }), N.body && (B.note = { text: N.body }), V.children.push(B), a.push(B), f.push(N.level);
646
646
  }
647
647
  for (const N of s) X(N);
@@ -710,8 +710,8 @@ function Ho(e) {
710
710
  continue;
711
711
  }
712
712
  }
713
- const O = m.match(c), $ = m.match(u);
714
- if (O || $) {
713
+ const R = m.match(c), z = m.match(u);
714
+ if (R || z) {
715
715
  let L = r;
716
716
  for (; L < o.length; ) {
717
717
  const B = o[L].match(c), H = o[L].match(u);
@@ -747,8 +747,8 @@ function Ho(e) {
747
747
  }
748
748
  return n;
749
749
  }
750
- function Ga(e, o = "导入的导图") {
751
- const n = Ho(e || ""), r = { id: $e(), text: o, children: [] }, a = [r], f = [0];
750
+ function La(e, o = "导入的导图") {
751
+ const n = Ho(e || ""), r = { id: ze(), text: o, children: [] }, a = [r], f = [0];
752
752
  let s = !1;
753
753
  function c(u) {
754
754
  if (u.kind === "heading") {
@@ -759,12 +759,12 @@ function Ga(e, o = "导入的导图") {
759
759
  s = !0, r.text = u.text, f[0] = 1;
760
760
  return;
761
761
  }
762
- const m = { id: $e(), text: u.text, children: [] };
762
+ const m = { id: ze(), text: u.text, children: [] };
763
763
  a[a.length - 1].children.push(m), a.push(m), f.push(v);
764
764
  return;
765
765
  }
766
766
  const g = {
767
- id: $e(),
767
+ id: ze(),
768
768
  text: u.text,
769
769
  children: [],
770
770
  richContent: { kind: u.kind, raw: u.raw, lang: u.lang }
@@ -774,7 +774,7 @@ function Ga(e, o = "导入的导图") {
774
774
  for (const u of n) c(u);
775
775
  return r;
776
776
  }
777
- function Ka(e) {
777
+ function Da(e) {
778
778
  return e.richContent ? e.richContent.raw + `
779
779
  ` : "";
780
780
  }
@@ -786,15 +786,15 @@ function Wo(e) {
786
786
  oy: 0
787
787
  }), g = ie(!1), v = Dt({ x: 0, y: 0 }), m = Dt({ x: 0, y: 0, width: 0, height: 0 }), y = ie(0);
788
788
  let l = null;
789
- function O(P) {
789
+ function R(P) {
790
790
  l = P;
791
791
  }
792
- function $(P) {
792
+ function z(P) {
793
793
  P.preventDefault();
794
794
  const re = e.getContainer();
795
795
  if (!re) return;
796
- const fe = -P.deltaY * 1e-3, ce = Math.min(n, Math.max(o, a.value * (1 + fe))), ue = re.getBoundingClientRect(), me = P.clientX - ue.left, p = P.clientY - ue.top, M = (me - f.value) / a.value, x = (p - s.value) / a.value;
797
- a.value = ce, f.value = me - M * ce, s.value = p - x * ce;
796
+ const de = -P.deltaY * 1e-3, le = Math.min(n, Math.max(o, a.value * (1 + de))), ce = re.getBoundingClientRect(), me = P.clientX - ce.left, b = P.clientY - ce.top, M = (me - f.value) / a.value, x = (b - s.value) / a.value;
797
+ a.value = le, f.value = me - M * le, s.value = b - x * le;
798
798
  }
799
799
  function X() {
800
800
  a.value = Math.min(n, a.value * r);
@@ -803,8 +803,8 @@ function Wo(e) {
803
803
  a.value = Math.max(o, a.value / r);
804
804
  }
805
805
  function V(P) {
806
- var fe;
807
- P.target.closest(".zm-node, .zm-toolbar, button, input, textarea") || (c.value = !0, u.x = P.clientX, u.y = P.clientY, u.ox = f.value, u.oy = s.value, window.addEventListener("mousemove", L), window.addEventListener("mouseup", B), (fe = P.preventDefault) == null || fe.call(P));
806
+ var de;
807
+ P.target.closest(".zm-node, .zm-toolbar, button, input, textarea") || (c.value = !0, u.x = P.clientX, u.y = P.clientY, u.ox = f.value, u.oy = s.value, window.addEventListener("mousemove", L), window.addEventListener("mouseup", B), (de = P.preventDefault) == null || de.call(P));
808
808
  }
809
809
  function L(P) {
810
810
  c.value && (f.value = u.ox + (P.clientX - u.x), s.value = u.oy + (P.clientY - u.y));
@@ -817,8 +817,8 @@ function Wo(e) {
817
817
  }
818
818
  function I(P, re) {
819
819
  if (!g.value) return;
820
- const fe = Math.min(v.x, P), ce = Math.min(v.y, re), ue = Math.max(v.x, P), me = Math.max(v.y, re);
821
- m.x = fe, m.y = ce, m.width = ue - fe, m.height = me - ce, y.value++;
820
+ const de = Math.min(v.x, P), le = Math.min(v.y, re), ce = Math.max(v.x, P), me = Math.max(v.y, re);
821
+ m.x = de, m.y = le, m.width = ce - de, m.height = me - le, y.value++;
822
822
  }
823
823
  function te() {
824
824
  g.value = !1, window.removeEventListener("mousemove", ne), window.removeEventListener("mouseup", te), l && l();
@@ -827,21 +827,21 @@ function Wo(e) {
827
827
  if (!g.value) return;
828
828
  const re = e.getContainer();
829
829
  if (!re) return;
830
- const fe = re.getBoundingClientRect(), ce = (P.clientX - fe.left - f.value) / a.value, ue = (P.clientY - fe.top - s.value) / a.value;
831
- I(ce, ue);
830
+ const de = re.getBoundingClientRect(), le = (P.clientX - de.left - f.value) / a.value, ce = (P.clientY - de.top - s.value) / a.value;
831
+ I(le, ce);
832
832
  }
833
- function pe(P, re, fe, ce = 60) {
834
- const ue = e.getContainer();
835
- if (!ue) return;
836
- const me = ue.getBoundingClientRect(), p = (me.width - ce * 2) / P, M = (me.height - ce * 2) / re, x = Math.min(1, Math.max(0.3, Math.min(p, M)));
837
- a.value = x, f.value = me.width / 2, s.value = me.height / 2 - fe * x;
833
+ function be(P, re, de, le = 60) {
834
+ const ce = e.getContainer();
835
+ if (!ce) return;
836
+ const me = ce.getBoundingClientRect(), b = (me.width - le * 2) / P, M = (me.height - le * 2) / re, x = Math.min(1, Math.max(0.3, Math.min(b, M)));
837
+ a.value = x, f.value = me.width / 2, s.value = me.height / 2 - de * x;
838
838
  }
839
839
  return {
840
840
  scale: a,
841
841
  offsetX: f,
842
842
  offsetY: s,
843
843
  isPanning: c,
844
- onWheel: $,
844
+ onWheel: z,
845
845
  zoomIn: X,
846
846
  zoomOut: N,
847
847
  startPan: V,
@@ -850,8 +850,8 @@ function Wo(e) {
850
850
  isMarquee: g,
851
851
  marquee: m,
852
852
  marqueeVersion: y,
853
- setOnMarqueeEnd: O,
854
- resetView: pe
853
+ setOnMarqueeEnd: R,
854
+ resetView: be
855
855
  };
856
856
  }
857
857
  const Fo = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform);
@@ -931,7 +931,7 @@ function Ko(e = 100) {
931
931
  reset: u
932
932
  };
933
933
  }
934
- const Zo = ["disabled"], Yo = ["disabled"], Xo = ["disabled"], qo = ["disabled"], Vo = ["disabled"], Jo = ["disabled"], jo = ["disabled"], Qo = ["disabled"], er = ["disabled"], tr = ["disabled"], nr = /* @__PURE__ */ rn({
934
+ const Zo = /* @__PURE__ */ rn({
935
935
  __name: "NodeContextMenu",
936
936
  props: {
937
937
  x: {},
@@ -941,16 +941,15 @@ const Zo = ["disabled"], Yo = ["disabled"], Xo = ["disabled"], qo = ["disabled"]
941
941
  hasLink: { type: Boolean, default: !1 },
942
942
  hasNote: { type: Boolean, default: !1 },
943
943
  hasCode: { type: Boolean, default: !1 },
944
- hasTable: { type: Boolean, default: !1 },
945
- readonly: { type: Boolean, default: !1 }
944
+ hasTable: { type: Boolean, default: !1 }
946
945
  },
947
946
  emits: ["pickImage", "setLink", "removeLink", "editNote", "removeNote", "removeImage", "addCode", "editCode", "removeCode", "addTable", "editTable", "removeTable", "close"],
948
947
  setup(e, { emit: o }) {
949
948
  const n = e, r = o, a = xe(() => {
950
949
  let y = n.x + 2, l = n.y + 2;
951
950
  if (n.container) {
952
- const O = n.container.getBoundingClientRect(), $ = 180, N = 4 + (3 + (n.hasImage ? 1 : 0) + (n.hasLink ? 1 : 0) + (n.hasNote ? 1 : 0) + 1 + (n.hasCode ? 1 : 0) + 1 + (n.hasTable ? 1 : 0)) * 28;
953
- y + $ > O.right && (y = Math.max(O.left + 4, n.x - $ - 2)), l + N > O.bottom && (l = Math.max(O.top + 4, n.y - N - 2)), y < O.left + 2 && (y = O.left + 2), l < O.top + 2 && (l = O.top + 2);
951
+ const R = n.container.getBoundingClientRect(), z = 180, N = 4 + (3 + (n.hasImage ? 1 : 0) + (n.hasLink ? 1 : 0) + (n.hasNote ? 1 : 0) + 1 + (n.hasCode ? 1 : 0) + 1 + (n.hasTable ? 1 : 0)) * 28;
952
+ y + z > R.right && (y = Math.max(R.left + 4, n.x - z - 2)), l + N > R.bottom && (l = Math.max(R.top + 4, n.y - N - 2)), y < R.left + 2 && (y = R.left + 2), l < R.top + 2 && (l = R.top + 2);
954
953
  }
955
954
  return { left: y, top: l };
956
955
  }), f = xe(() => n.hasImage), s = xe(() => n.hasLink), c = xe(() => n.hasNote);
@@ -968,9 +967,9 @@ const Zo = ["disabled"], Yo = ["disabled"], Xo = ["disabled"], qo = ["disabled"]
968
967
  window.removeEventListener("mousedown", u, !0), window.removeEventListener("keydown", g, !0), window.removeEventListener("wheel", v, !0), window.removeEventListener("scroll", v, !0);
969
968
  });
970
969
  function m(y) {
971
- n.readonly || (y(), r("close"));
970
+ y(), r("close");
972
971
  }
973
- return (y, l) => (R(), C("div", {
972
+ return (y, l) => (C(), O("div", {
974
973
  class: "zm-node-menu",
975
974
  style: He({ left: a.value.left + "px", top: a.value.top + "px" }),
976
975
  onContextmenu: l[10] || (l[10] = J(() => {
@@ -978,123 +977,113 @@ const Zo = ["disabled"], Yo = ["disabled"], Xo = ["disabled"], qo = ["disabled"]
978
977
  }, [
979
978
  S("button", {
980
979
  class: "zm-node-menu-item",
981
- disabled: e.readonly,
982
- onClick: l[0] || (l[0] = J((O) => m(() => r("pickImage")), ["stop"]))
980
+ onClick: l[0] || (l[0] = J((R) => m(() => r("pickImage")), ["stop"]))
983
981
  }, [
984
- ge(he, {
982
+ fe(ge, {
985
983
  name: "image",
986
984
  size: 13
987
985
  }),
988
986
  S("span", null, Re(f.value ? "替换图片" : "添加图片"), 1)
989
- ], 8, Zo),
990
- f.value ? (R(), C("button", {
987
+ ]),
988
+ f.value ? (C(), O("button", {
991
989
  key: 0,
992
990
  class: "zm-node-menu-item",
993
- disabled: e.readonly,
994
- onClick: l[1] || (l[1] = J((O) => m(() => r("removeImage")), ["stop"]))
991
+ onClick: l[1] || (l[1] = J((R) => m(() => r("removeImage")), ["stop"]))
995
992
  }, [
996
- ge(he, {
993
+ fe(ge, {
997
994
  name: "x",
998
995
  size: 13
999
996
  }),
1000
997
  l[11] || (l[11] = S("span", null, "移除图片", -1))
1001
- ], 8, Yo)) : le("", !0),
998
+ ])) : he("", !0),
1002
999
  S("button", {
1003
1000
  class: "zm-node-menu-item",
1004
- disabled: e.readonly,
1005
- onClick: l[2] || (l[2] = J((O) => m(() => r("setLink")), ["stop"]))
1001
+ onClick: l[2] || (l[2] = J((R) => m(() => r("setLink")), ["stop"]))
1006
1002
  }, [
1007
- ge(he, {
1003
+ fe(ge, {
1008
1004
  name: "link",
1009
1005
  size: 13
1010
1006
  }),
1011
1007
  S("span", null, Re(s.value ? "编辑链接" : "添加链接"), 1)
1012
- ], 8, Xo),
1013
- s.value ? (R(), C("button", {
1008
+ ]),
1009
+ s.value ? (C(), O("button", {
1014
1010
  key: 1,
1015
1011
  class: "zm-node-menu-item",
1016
- disabled: e.readonly,
1017
- onClick: l[3] || (l[3] = J((O) => m(() => r("removeLink")), ["stop"]))
1012
+ onClick: l[3] || (l[3] = J((R) => m(() => r("removeLink")), ["stop"]))
1018
1013
  }, [
1019
- ge(he, {
1014
+ fe(ge, {
1020
1015
  name: "x",
1021
1016
  size: 13
1022
1017
  }),
1023
1018
  l[12] || (l[12] = S("span", null, "移除链接", -1))
1024
- ], 8, qo)) : le("", !0),
1019
+ ])) : he("", !0),
1025
1020
  S("button", {
1026
1021
  class: "zm-node-menu-item",
1027
- disabled: e.readonly,
1028
- onClick: l[4] || (l[4] = J((O) => m(() => r("addCode")), ["stop"]))
1022
+ onClick: l[4] || (l[4] = J((R) => m(() => r("addCode")), ["stop"]))
1029
1023
  }, [
1030
1024
  l[13] || (l[13] = S("span", {
1031
1025
  class: "zm-node-menu-icon zm-node-menu-icon-code",
1032
1026
  "aria-hidden": "true"
1033
1027
  }, "{ }", -1)),
1034
1028
  S("span", null, Re(e.hasCode ? "编辑代码块" : "添加代码块"), 1)
1035
- ], 8, Vo),
1036
- e.hasCode ? (R(), C("button", {
1029
+ ]),
1030
+ e.hasCode ? (C(), O("button", {
1037
1031
  key: 2,
1038
1032
  class: "zm-node-menu-item",
1039
- disabled: e.readonly,
1040
- onClick: l[5] || (l[5] = J((O) => m(() => r("removeCode")), ["stop"]))
1033
+ onClick: l[5] || (l[5] = J((R) => m(() => r("removeCode")), ["stop"]))
1041
1034
  }, [
1042
- ge(he, {
1035
+ fe(ge, {
1043
1036
  name: "x",
1044
1037
  size: 13
1045
1038
  }),
1046
1039
  l[14] || (l[14] = S("span", null, "移除代码块", -1))
1047
- ], 8, Jo)) : le("", !0),
1040
+ ])) : he("", !0),
1048
1041
  S("button", {
1049
1042
  class: "zm-node-menu-item",
1050
- disabled: e.readonly,
1051
- onClick: l[6] || (l[6] = J((O) => m(() => r("addTable")), ["stop"]))
1043
+ onClick: l[6] || (l[6] = J((R) => m(() => r("addTable")), ["stop"]))
1052
1044
  }, [
1053
1045
  l[15] || (l[15] = S("span", {
1054
1046
  class: "zm-node-menu-icon zm-node-menu-icon-table",
1055
1047
  "aria-hidden": "true"
1056
1048
  }, "▦", -1)),
1057
1049
  S("span", null, Re(e.hasTable ? "编辑表格" : "添加表格"), 1)
1058
- ], 8, jo),
1059
- e.hasTable ? (R(), C("button", {
1050
+ ]),
1051
+ e.hasTable ? (C(), O("button", {
1060
1052
  key: 3,
1061
1053
  class: "zm-node-menu-item",
1062
- disabled: e.readonly,
1063
- onClick: l[7] || (l[7] = J((O) => m(() => r("removeTable")), ["stop"]))
1054
+ onClick: l[7] || (l[7] = J((R) => m(() => r("removeTable")), ["stop"]))
1064
1055
  }, [
1065
- ge(he, {
1056
+ fe(ge, {
1066
1057
  name: "x",
1067
1058
  size: 13
1068
1059
  }),
1069
1060
  l[16] || (l[16] = S("span", null, "移除表格", -1))
1070
- ], 8, Qo)) : le("", !0),
1061
+ ])) : he("", !0),
1071
1062
  S("button", {
1072
1063
  class: "zm-node-menu-item",
1073
- disabled: e.readonly,
1074
- onClick: l[8] || (l[8] = J((O) => m(() => r("editNote")), ["stop"]))
1064
+ onClick: l[8] || (l[8] = J((R) => m(() => r("editNote")), ["stop"]))
1075
1065
  }, [
1076
- ge(he, {
1066
+ fe(ge, {
1077
1067
  name: "note",
1078
1068
  size: 13
1079
1069
  }),
1080
1070
  S("span", null, Re(c.value ? "编辑笔记" : "添加笔记"), 1)
1081
- ], 8, er),
1082
- c.value ? (R(), C("button", {
1071
+ ]),
1072
+ c.value ? (C(), O("button", {
1083
1073
  key: 4,
1084
1074
  class: "zm-node-menu-item",
1085
- disabled: e.readonly,
1086
- onClick: l[9] || (l[9] = J((O) => m(() => r("removeNote")), ["stop"]))
1075
+ onClick: l[9] || (l[9] = J((R) => m(() => r("removeNote")), ["stop"]))
1087
1076
  }, [
1088
- ge(he, {
1077
+ fe(ge, {
1089
1078
  name: "x",
1090
1079
  size: 13
1091
1080
  }),
1092
1081
  l[17] || (l[17] = S("span", null, "移除笔记", -1))
1093
- ], 8, tr)) : le("", !0)
1082
+ ])) : he("", !0)
1094
1083
  ], 36));
1095
1084
  }
1096
1085
  });
1097
- function ir(e) {
1086
+ function Yo(e) {
1098
1087
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1099
1088
  }
1100
1089
  function li(e) {
@@ -1107,7 +1096,7 @@ function li(e) {
1107
1096
  (r === "object" || r === "function") && !Object.isFrozen(n) && li(n);
1108
1097
  }), e;
1109
1098
  }
1110
- class $n {
1099
+ class zn {
1111
1100
  /**
1112
1101
  * @param {CompiledMode} mode
1113
1102
  */
@@ -1131,7 +1120,7 @@ function Fe(e, ...o) {
1131
1120
  }), /** @type {T} */
1132
1121
  n;
1133
1122
  }
1134
- const or = "</span>", zn = (e) => !!e.scope, rr = (e, { prefix: o }) => {
1123
+ const Xo = "</span>", $n = (e) => !!e.scope, qo = (e, { prefix: o }) => {
1135
1124
  if (e.startsWith("language:"))
1136
1125
  return e.replace("language:", "language-");
1137
1126
  if (e.includes(".")) {
@@ -1143,7 +1132,7 @@ const or = "</span>", zn = (e) => !!e.scope, rr = (e, { prefix: o }) => {
1143
1132
  }
1144
1133
  return `${o}${e}`;
1145
1134
  };
1146
- class ar {
1135
+ class Vo {
1147
1136
  /**
1148
1137
  * Creates a new HTMLRenderer
1149
1138
  *
@@ -1165,8 +1154,8 @@ class ar {
1165
1154
  *
1166
1155
  * @param {Node} node */
1167
1156
  openNode(o) {
1168
- if (!zn(o)) return;
1169
- const n = rr(
1157
+ if (!$n(o)) return;
1158
+ const n = qo(
1170
1159
  o.scope,
1171
1160
  { prefix: this.classPrefix }
1172
1161
  );
@@ -1177,7 +1166,7 @@ class ar {
1177
1166
  *
1178
1167
  * @param {Node} node */
1179
1168
  closeNode(o) {
1180
- zn(o) && (this.buffer += or);
1169
+ $n(o) && (this.buffer += Xo);
1181
1170
  }
1182
1171
  /**
1183
1172
  * returns the accumulated buffer
@@ -1250,7 +1239,7 @@ class ln {
1250
1239
  }));
1251
1240
  }
1252
1241
  }
1253
- class sr extends ln {
1242
+ class Jo extends ln {
1254
1243
  /**
1255
1244
  * @param {*} options
1256
1245
  */
@@ -1279,50 +1268,50 @@ class sr extends ln {
1279
1268
  n && (r.scope = `language:${n}`), this.add(r);
1280
1269
  }
1281
1270
  toHTML() {
1282
- return new ar(this, this.options).value();
1271
+ return new Vo(this, this.options).value();
1283
1272
  }
1284
1273
  finalize() {
1285
1274
  return this.closeAllNodes(), !0;
1286
1275
  }
1287
1276
  }
1288
- function bt(e) {
1277
+ function pt(e) {
1289
1278
  return e ? typeof e == "string" ? e : e.source : null;
1290
1279
  }
1291
1280
  function ui(e) {
1292
1281
  return qe("(?=", e, ")");
1293
1282
  }
1294
- function lr(e) {
1283
+ function jo(e) {
1295
1284
  return qe("(?:", e, ")*");
1296
1285
  }
1297
- function cr(e) {
1286
+ function Qo(e) {
1298
1287
  return qe("(?:", e, ")?");
1299
1288
  }
1300
1289
  function qe(...e) {
1301
- return e.map((n) => bt(n)).join("");
1290
+ return e.map((n) => pt(n)).join("");
1302
1291
  }
1303
- function ur(e) {
1292
+ function er(e) {
1304
1293
  const o = e[e.length - 1];
1305
1294
  return typeof o == "object" && o.constructor === Object ? (e.splice(e.length - 1, 1), o) : {};
1306
1295
  }
1307
1296
  function cn(...e) {
1308
- return "(" + (ur(e).capture ? "" : "?:") + e.map((r) => bt(r)).join("|") + ")";
1297
+ return "(" + (er(e).capture ? "" : "?:") + e.map((r) => pt(r)).join("|") + ")";
1309
1298
  }
1310
1299
  function di(e) {
1311
1300
  return new RegExp(e.toString() + "|").exec("").length - 1;
1312
1301
  }
1313
- function dr(e, o) {
1302
+ function tr(e, o) {
1314
1303
  const n = e && e.exec(o);
1315
1304
  return n && n.index === 0;
1316
1305
  }
1317
- const fr = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
1306
+ const nr = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
1318
1307
  function un(e, { joinWith: o }) {
1319
1308
  let n = 0;
1320
1309
  return e.map((r) => {
1321
1310
  n += 1;
1322
1311
  const a = n;
1323
- let f = bt(r), s = "";
1312
+ let f = pt(r), s = "";
1324
1313
  for (; f.length > 0; ) {
1325
- const c = fr.exec(f);
1314
+ const c = nr.exec(f);
1326
1315
  if (!c) {
1327
1316
  s += f;
1328
1317
  break;
@@ -1332,7 +1321,7 @@ function un(e, { joinWith: o }) {
1332
1321
  return s;
1333
1322
  }).map((r) => `(${r})`).join(o);
1334
1323
  }
1335
- const gr = /\b\B/, fi = "[a-zA-Z]\\w*", dn = "[a-zA-Z_]\\w*", gi = "\\b\\d+(\\.\\d+)?", hi = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", mi = "\\b(0b[01]+)", hr = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", mr = (e = {}) => {
1324
+ const ir = /\b\B/, fi = "[a-zA-Z]\\w*", dn = "[a-zA-Z_]\\w*", gi = "\\b\\d+(\\.\\d+)?", hi = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", mi = "\\b(0b[01]+)", or = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", rr = (e = {}) => {
1336
1325
  const o = /^#![ ]*\//;
1337
1326
  return e.binary && (e.begin = qe(
1338
1327
  o,
@@ -1349,22 +1338,22 @@ const gr = /\b\B/, fi = "[a-zA-Z]\\w*", dn = "[a-zA-Z_]\\w*", gi = "\\b\\d+(\\.\
1349
1338
  n.index !== 0 && r.ignoreMatch();
1350
1339
  }
1351
1340
  }, e);
1352
- }, pt = {
1341
+ }, bt = {
1353
1342
  begin: "\\\\[\\s\\S]",
1354
1343
  relevance: 0
1355
- }, br = {
1344
+ }, ar = {
1356
1345
  scope: "string",
1357
1346
  begin: "'",
1358
1347
  end: "'",
1359
1348
  illegal: "\\n",
1360
- contains: [pt]
1361
- }, pr = {
1349
+ contains: [bt]
1350
+ }, sr = {
1362
1351
  scope: "string",
1363
1352
  begin: '"',
1364
1353
  end: '"',
1365
1354
  illegal: "\\n",
1366
- contains: [pt]
1367
- }, vr = {
1355
+ contains: [bt]
1356
+ }, lr = {
1368
1357
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
1369
1358
  }, Ht = function(e, o, n = {}) {
1370
1359
  const r = Fe(
@@ -1432,44 +1421,44 @@ const gr = /\b\B/, fi = "[a-zA-Z]\\w*", dn = "[a-zA-Z_]\\w*", gi = "\\b\\d+(\\.\
1432
1421
  // look for 3 words in a row
1433
1422
  }
1434
1423
  ), r;
1435
- }, yr = Ht("//", "$"), Er = Ht("/\\*", "\\*/"), xr = Ht("#", "$"), _r = {
1424
+ }, cr = Ht("//", "$"), ur = Ht("/\\*", "\\*/"), dr = Ht("#", "$"), fr = {
1436
1425
  scope: "number",
1437
1426
  begin: gi,
1438
1427
  relevance: 0
1439
- }, wr = {
1428
+ }, gr = {
1440
1429
  scope: "number",
1441
1430
  begin: hi,
1442
1431
  relevance: 0
1443
- }, Nr = {
1432
+ }, hr = {
1444
1433
  scope: "number",
1445
1434
  begin: mi,
1446
1435
  relevance: 0
1447
- }, kr = {
1436
+ }, mr = {
1448
1437
  scope: "regexp",
1449
1438
  begin: /\/(?=[^/\n]*\/)/,
1450
1439
  end: /\/[gimuy]*/,
1451
1440
  contains: [
1452
- pt,
1441
+ bt,
1453
1442
  {
1454
1443
  begin: /\[/,
1455
1444
  end: /\]/,
1456
1445
  relevance: 0,
1457
- contains: [pt]
1446
+ contains: [bt]
1458
1447
  }
1459
1448
  ]
1460
- }, Sr = {
1449
+ }, pr = {
1461
1450
  scope: "title",
1462
1451
  begin: fi,
1463
1452
  relevance: 0
1464
- }, Mr = {
1453
+ }, br = {
1465
1454
  scope: "title",
1466
1455
  begin: dn,
1467
1456
  relevance: 0
1468
- }, Tr = {
1457
+ }, vr = {
1469
1458
  // excludes method names from keyword processing
1470
1459
  begin: "\\.\\s*" + dn,
1471
1460
  relevance: 0
1472
- }, Ar = function(e) {
1461
+ }, yr = function(e) {
1473
1462
  return Object.assign(
1474
1463
  e,
1475
1464
  {
@@ -1486,53 +1475,53 @@ const gr = /\b\B/, fi = "[a-zA-Z]\\w*", dn = "[a-zA-Z_]\\w*", gi = "\\b\\d+(\\.\
1486
1475
  };
1487
1476
  var Ot = /* @__PURE__ */ Object.freeze({
1488
1477
  __proto__: null,
1489
- APOS_STRING_MODE: br,
1490
- BACKSLASH_ESCAPE: pt,
1491
- BINARY_NUMBER_MODE: Nr,
1478
+ APOS_STRING_MODE: ar,
1479
+ BACKSLASH_ESCAPE: bt,
1480
+ BINARY_NUMBER_MODE: hr,
1492
1481
  BINARY_NUMBER_RE: mi,
1493
1482
  COMMENT: Ht,
1494
- C_BLOCK_COMMENT_MODE: Er,
1495
- C_LINE_COMMENT_MODE: yr,
1496
- C_NUMBER_MODE: wr,
1483
+ C_BLOCK_COMMENT_MODE: ur,
1484
+ C_LINE_COMMENT_MODE: cr,
1485
+ C_NUMBER_MODE: gr,
1497
1486
  C_NUMBER_RE: hi,
1498
- END_SAME_AS_BEGIN: Ar,
1499
- HASH_COMMENT_MODE: xr,
1487
+ END_SAME_AS_BEGIN: yr,
1488
+ HASH_COMMENT_MODE: dr,
1500
1489
  IDENT_RE: fi,
1501
- MATCH_NOTHING_RE: gr,
1502
- METHOD_GUARD: Tr,
1503
- NUMBER_MODE: _r,
1490
+ MATCH_NOTHING_RE: ir,
1491
+ METHOD_GUARD: vr,
1492
+ NUMBER_MODE: fr,
1504
1493
  NUMBER_RE: gi,
1505
- PHRASAL_WORDS_MODE: vr,
1506
- QUOTE_STRING_MODE: pr,
1507
- REGEXP_MODE: kr,
1508
- RE_STARTERS_RE: hr,
1509
- SHEBANG: mr,
1510
- TITLE_MODE: Sr,
1494
+ PHRASAL_WORDS_MODE: lr,
1495
+ QUOTE_STRING_MODE: sr,
1496
+ REGEXP_MODE: mr,
1497
+ RE_STARTERS_RE: or,
1498
+ SHEBANG: rr,
1499
+ TITLE_MODE: pr,
1511
1500
  UNDERSCORE_IDENT_RE: dn,
1512
- UNDERSCORE_TITLE_MODE: Mr
1501
+ UNDERSCORE_TITLE_MODE: br
1513
1502
  });
1514
- function Rr(e, o) {
1503
+ function Er(e, o) {
1515
1504
  e.input[e.index - 1] === "." && o.ignoreMatch();
1516
1505
  }
1517
- function Cr(e, o) {
1506
+ function xr(e, o) {
1518
1507
  e.className !== void 0 && (e.scope = e.className, delete e.className);
1519
1508
  }
1520
- function Or(e, o) {
1521
- o && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = Rr, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
1509
+ function _r(e, o) {
1510
+ o && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = Er, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
1522
1511
  }
1523
- function Ir(e, o) {
1512
+ function wr(e, o) {
1524
1513
  Array.isArray(e.illegal) && (e.illegal = cn(...e.illegal));
1525
1514
  }
1526
- function Lr(e, o) {
1515
+ function Nr(e, o) {
1527
1516
  if (e.match) {
1528
1517
  if (e.begin || e.end) throw new Error("begin & end are not supported with match");
1529
1518
  e.begin = e.match, delete e.match;
1530
1519
  }
1531
1520
  }
1532
- function Dr(e, o) {
1521
+ function kr(e, o) {
1533
1522
  e.relevance === void 0 && (e.relevance = 1);
1534
1523
  }
1535
- const Br = (e, o) => {
1524
+ const Sr = (e, o) => {
1536
1525
  if (!e.beforeMatch) return;
1537
1526
  if (e.starts) throw new Error("beforeMatch cannot be used with starts");
1538
1527
  const n = Object.assign({}, e);
@@ -1544,7 +1533,7 @@ const Br = (e, o) => {
1544
1533
  Object.assign(n, { endsParent: !0 })
1545
1534
  ]
1546
1535
  }, e.relevance = 0, delete n.beforeMatch;
1547
- }, $r = [
1536
+ }, Mr = [
1548
1537
  "of",
1549
1538
  "and",
1550
1539
  "for",
@@ -1559,27 +1548,27 @@ const Br = (e, o) => {
1559
1548
  // common variable name
1560
1549
  "value"
1561
1550
  // common variable name
1562
- ], zr = "keyword";
1563
- function bi(e, o, n = zr) {
1551
+ ], Tr = "keyword";
1552
+ function pi(e, o, n = Tr) {
1564
1553
  const r = /* @__PURE__ */ Object.create(null);
1565
1554
  return typeof e == "string" ? a(n, e.split(" ")) : Array.isArray(e) ? a(n, e) : Object.keys(e).forEach(function(f) {
1566
1555
  Object.assign(
1567
1556
  r,
1568
- bi(e[f], o, f)
1557
+ pi(e[f], o, f)
1569
1558
  );
1570
1559
  }), r;
1571
1560
  function a(f, s) {
1572
1561
  o && (s = s.map((c) => c.toLowerCase())), s.forEach(function(c) {
1573
1562
  const u = c.split("|");
1574
- r[u[0]] = [f, Pr(u[0], u[1])];
1563
+ r[u[0]] = [f, Ar(u[0], u[1])];
1575
1564
  });
1576
1565
  }
1577
1566
  }
1578
- function Pr(e, o) {
1579
- return o ? Number(o) : Ur(e) ? 0 : 1;
1567
+ function Ar(e, o) {
1568
+ return o ? Number(o) : Rr(e) ? 0 : 1;
1580
1569
  }
1581
- function Ur(e) {
1582
- return $r.includes(e.toLowerCase());
1570
+ function Rr(e) {
1571
+ return Mr.includes(e.toLowerCase());
1583
1572
  }
1584
1573
  const Un = {}, Xe = (e) => {
1585
1574
  console.error(e);
@@ -1587,42 +1576,42 @@ const Un = {}, Xe = (e) => {
1587
1576
  console.log(`WARN: ${e}`, ...o);
1588
1577
  }, nt = (e, o) => {
1589
1578
  Un[`${e}/${o}`] || (console.log(`Deprecated as of ${e}. ${o}`), Un[`${e}/${o}`] = !0);
1590
- }, zt = new Error();
1591
- function pi(e, o, { key: n }) {
1579
+ }, $t = new Error();
1580
+ function bi(e, o, { key: n }) {
1592
1581
  let r = 0;
1593
1582
  const a = e[n], f = {}, s = {};
1594
1583
  for (let c = 1; c <= o.length; c++)
1595
1584
  s[c + r] = a[c], f[c + r] = !0, r += di(o[c - 1]);
1596
1585
  e[n] = s, e[n]._emit = f, e[n]._multi = !0;
1597
1586
  }
1598
- function Hr(e) {
1587
+ function Cr(e) {
1599
1588
  if (Array.isArray(e.begin)) {
1600
1589
  if (e.skip || e.excludeBegin || e.returnBegin)
1601
- throw Xe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), zt;
1590
+ throw Xe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), $t;
1602
1591
  if (typeof e.beginScope != "object" || e.beginScope === null)
1603
- throw Xe("beginScope must be object"), zt;
1604
- pi(e, e.begin, { key: "beginScope" }), e.begin = un(e.begin, { joinWith: "" });
1592
+ throw Xe("beginScope must be object"), $t;
1593
+ bi(e, e.begin, { key: "beginScope" }), e.begin = un(e.begin, { joinWith: "" });
1605
1594
  }
1606
1595
  }
1607
- function Wr(e) {
1596
+ function Or(e) {
1608
1597
  if (Array.isArray(e.end)) {
1609
1598
  if (e.skip || e.excludeEnd || e.returnEnd)
1610
- throw Xe("skip, excludeEnd, returnEnd not compatible with endScope: {}"), zt;
1599
+ throw Xe("skip, excludeEnd, returnEnd not compatible with endScope: {}"), $t;
1611
1600
  if (typeof e.endScope != "object" || e.endScope === null)
1612
- throw Xe("endScope must be object"), zt;
1613
- pi(e, e.end, { key: "endScope" }), e.end = un(e.end, { joinWith: "" });
1601
+ throw Xe("endScope must be object"), $t;
1602
+ bi(e, e.end, { key: "endScope" }), e.end = un(e.end, { joinWith: "" });
1614
1603
  }
1615
1604
  }
1616
- function Fr(e) {
1605
+ function Ir(e) {
1617
1606
  e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
1618
1607
  }
1619
- function Gr(e) {
1620
- Fr(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Hr(e), Wr(e);
1608
+ function Lr(e) {
1609
+ Ir(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Cr(e), Or(e);
1621
1610
  }
1622
- function Kr(e) {
1611
+ function Dr(e) {
1623
1612
  function o(s, c) {
1624
1613
  return new RegExp(
1625
- bt(s),
1614
+ pt(s),
1626
1615
  "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (c ? "g" : "")
1627
1616
  );
1628
1617
  }
@@ -1692,26 +1681,26 @@ function Kr(e) {
1692
1681
  );
1693
1682
  if (s.isCompiled) return u;
1694
1683
  [
1695
- Cr,
1684
+ xr,
1696
1685
  // do this early so compiler extensions generally don't have to worry about
1697
1686
  // the distinction between match/begin
1687
+ Nr,
1698
1688
  Lr,
1699
- Gr,
1700
- Br
1689
+ Sr
1701
1690
  ].forEach((v) => v(s, c)), e.compilerExtensions.forEach((v) => v(s, c)), s.__beforeBegin = null, [
1702
- Or,
1691
+ _r,
1703
1692
  // do this later so compiler extensions that come earlier have access to the
1704
1693
  // raw array if they wanted to perhaps manipulate it, etc.
1705
- Ir,
1694
+ wr,
1706
1695
  // default to 1 relevance if not specified
1707
- Dr
1696
+ kr
1708
1697
  ].forEach((v) => v(s, c)), s.isCompiled = !0;
1709
1698
  let g = null;
1710
- return typeof s.keywords == "object" && s.keywords.$pattern && (s.keywords = Object.assign({}, s.keywords), g = s.keywords.$pattern, delete s.keywords.$pattern), g = g || /\w+/, s.keywords && (s.keywords = bi(s.keywords, e.case_insensitive)), u.keywordPatternRe = o(g, !0), c && (s.begin || (s.begin = /\B|\b/), u.beginRe = o(u.begin), !s.end && !s.endsWithParent && (s.end = /\B|\b/), s.end && (u.endRe = o(u.end)), u.terminatorEnd = bt(u.end) || "", s.endsWithParent && c.terminatorEnd && (u.terminatorEnd += (s.end ? "|" : "") + c.terminatorEnd)), s.illegal && (u.illegalRe = o(
1699
+ return typeof s.keywords == "object" && s.keywords.$pattern && (s.keywords = Object.assign({}, s.keywords), g = s.keywords.$pattern, delete s.keywords.$pattern), g = g || /\w+/, s.keywords && (s.keywords = pi(s.keywords, e.case_insensitive)), u.keywordPatternRe = o(g, !0), c && (s.begin || (s.begin = /\B|\b/), u.beginRe = o(u.begin), !s.end && !s.endsWithParent && (s.end = /\B|\b/), s.end && (u.endRe = o(u.end)), u.terminatorEnd = pt(u.end) || "", s.endsWithParent && c.terminatorEnd && (u.terminatorEnd += (s.end ? "|" : "") + c.terminatorEnd)), s.illegal && (u.illegalRe = o(
1711
1700
  /** @type {RegExp | string} */
1712
1701
  s.illegal
1713
1702
  )), s.contains || (s.contains = []), s.contains = [].concat(...s.contains.map(function(v) {
1714
- return Zr(v === "self" ? s : v);
1703
+ return Br(v === "self" ? s : v);
1715
1704
  })), s.contains.forEach(function(v) {
1716
1705
  f(
1717
1706
  /** @type Mode */
@@ -1730,18 +1719,18 @@ function Kr(e) {
1730
1719
  function vi(e) {
1731
1720
  return e ? e.endsWithParent || vi(e.starts) : !1;
1732
1721
  }
1733
- function Zr(e) {
1722
+ function Br(e) {
1734
1723
  return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(o) {
1735
1724
  return Fe(e, { variants: null }, o);
1736
1725
  })), e.cachedVariants ? e.cachedVariants : vi(e) ? Fe(e, { starts: e.starts ? Fe(e.starts) : null }) : Object.isFrozen(e) ? Fe(e) : e;
1737
1726
  }
1738
- var Yr = "11.11.1";
1739
- class Xr extends Error {
1727
+ var zr = "11.11.1";
1728
+ class $r extends Error {
1740
1729
  constructor(o, n) {
1741
1730
  super(o), this.name = "HTMLInjectionError", this.html = n;
1742
1731
  }
1743
1732
  }
1744
- const Qt = ci, Wn = Fe, Fn = Symbol("nomatch"), qr = 7, yi = function(e) {
1733
+ const Qt = ci, Wn = Fe, Fn = Symbol("nomatch"), Pr = 7, yi = function(e) {
1745
1734
  const o = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
1746
1735
  let a = !0;
1747
1736
  const f = "Could not find the language '{}', did you forget to load/include a language module?", s = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -1755,41 +1744,41 @@ const Qt = ci, Wn = Fe, Fn = Symbol("nomatch"), qr = 7, yi = function(e) {
1755
1744
  languages: null,
1756
1745
  // beta configuration options, subject to change, welcome to discuss
1757
1746
  // https://github.com/highlightjs/highlight.js/issues/1086
1758
- __emitter: sr
1747
+ __emitter: Jo
1759
1748
  };
1760
- function u(p) {
1761
- return c.noHighlightRe.test(p);
1749
+ function u(b) {
1750
+ return c.noHighlightRe.test(b);
1762
1751
  }
1763
- function g(p) {
1764
- let M = p.className + " ";
1765
- M += p.parentNode ? p.parentNode.className : "";
1752
+ function g(b) {
1753
+ let M = b.className + " ";
1754
+ M += b.parentNode ? b.parentNode.className : "";
1766
1755
  const x = c.languageDetectRe.exec(M);
1767
1756
  if (x) {
1768
1757
  const U = ne(x[1]);
1769
- return U || (Hn(f.replace("{}", x[1])), Hn("Falling back to no-highlight mode for this block.", p)), U ? x[1] : "no-highlight";
1758
+ return U || (Hn(f.replace("{}", x[1])), Hn("Falling back to no-highlight mode for this block.", b)), U ? x[1] : "no-highlight";
1770
1759
  }
1771
1760
  return M.split(/\s+/).find((U) => u(U) || ne(U));
1772
1761
  }
1773
- function v(p, M, x) {
1762
+ function v(b, M, x) {
1774
1763
  let U = "", q = "";
1775
- typeof M == "object" ? (U = p, x = M.ignoreIllegals, q = M.language) : (nt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), nt("10.7.0", `Please use highlight(code, options) instead.
1776
- https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x === void 0 && (x = !0);
1764
+ typeof M == "object" ? (U = b, x = M.ignoreIllegals, q = M.language) : (nt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), nt("10.7.0", `Please use highlight(code, options) instead.
1765
+ https://github.com/highlightjs/highlight.js/issues/2277`), q = b, U = M), x === void 0 && (x = !0);
1777
1766
  const ae = {
1778
1767
  code: U,
1779
1768
  language: q
1780
1769
  };
1781
- ue("before:highlight", ae);
1782
- const be = ae.result ? ae.result : m(ae.language, ae.code, x);
1783
- return be.code = ae.code, ue("after:highlight", be), be;
1770
+ ce("before:highlight", ae);
1771
+ const pe = ae.result ? ae.result : m(ae.language, ae.code, x);
1772
+ return pe.code = ae.code, ce("after:highlight", pe), pe;
1784
1773
  }
1785
- function m(p, M, x, U) {
1774
+ function m(b, M, x, U) {
1786
1775
  const q = /* @__PURE__ */ Object.create(null);
1787
1776
  function ae(E, w) {
1788
1777
  return E.keywords[w];
1789
1778
  }
1790
- function be() {
1779
+ function pe() {
1791
1780
  if (!D.keywords) {
1792
- de.addText(ee);
1781
+ ue.addText(ee);
1793
1782
  return;
1794
1783
  }
1795
1784
  let E = 0;
@@ -1800,7 +1789,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
1800
1789
  const F = ke.case_insensitive ? w[0].toLowerCase() : w[0], T = ae(D, F);
1801
1790
  if (T) {
1802
1791
  const [Me, _t] = T;
1803
- if (de.addText(W), W = "", q[F] = (q[F] || 0) + 1, q[F] <= qr && (je += _t), Me.startsWith("_"))
1792
+ if (ue.addText(W), W = "", q[F] = (q[F] || 0) + 1, q[F] <= Pr && (je += _t), Me.startsWith("_"))
1804
1793
  W += w[0];
1805
1794
  else {
1806
1795
  const Kt = ke.classNameAliases[Me] || Me;
@@ -1810,27 +1799,27 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
1810
1799
  W += w[0];
1811
1800
  E = D.keywordPatternRe.lastIndex, w = D.keywordPatternRe.exec(ee);
1812
1801
  }
1813
- W += ee.substring(E), de.addText(W);
1802
+ W += ee.substring(E), ue.addText(W);
1814
1803
  }
1815
1804
  function we() {
1816
1805
  if (ee === "") return;
1817
1806
  let E = null;
1818
1807
  if (typeof D.subLanguage == "string") {
1819
1808
  if (!o[D.subLanguage]) {
1820
- de.addText(ee);
1809
+ ue.addText(ee);
1821
1810
  return;
1822
1811
  }
1823
1812
  E = m(D.subLanguage, ee, !0, Je[D.subLanguage]), Je[D.subLanguage] = /** @type {CompiledMode} */
1824
1813
  E._top;
1825
1814
  } else
1826
1815
  E = l(ee, D.subLanguage.length ? D.subLanguage : null);
1827
- D.relevance > 0 && (je += E.relevance), de.__addSublanguage(E._emitter, E.language);
1816
+ D.relevance > 0 && (je += E.relevance), ue.__addSublanguage(E._emitter, E.language);
1828
1817
  }
1829
1818
  function ye() {
1830
- D.subLanguage != null ? we() : be(), ee = "";
1819
+ D.subLanguage != null ? we() : pe(), ee = "";
1831
1820
  }
1832
1821
  function Ne(E, w) {
1833
- E !== "" && (de.startScope(w), de.addText(E), de.endScope());
1822
+ E !== "" && (ue.startScope(w), ue.addText(E), ue.endScope());
1834
1823
  }
1835
1824
  function vt(E, w) {
1836
1825
  let W = 1;
@@ -1841,17 +1830,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
1841
1830
  continue;
1842
1831
  }
1843
1832
  const T = ke.classNameAliases[E[W]] || E[W], Me = w[W];
1844
- T ? Ne(Me, T) : (ee = Me, be(), ee = ""), W++;
1833
+ T ? Ne(Me, T) : (ee = Me, pe(), ee = ""), W++;
1845
1834
  }
1846
1835
  }
1847
1836
  function st(E, w) {
1848
- return E.scope && typeof E.scope == "string" && de.openNode(ke.classNameAliases[E.scope] || E.scope), E.beginScope && (E.beginScope._wrap ? (Ne(ee, ke.classNameAliases[E.beginScope._wrap] || E.beginScope._wrap), ee = "") : E.beginScope._multi && (vt(E.beginScope, w), ee = "")), D = Object.create(E, { parent: { value: D } }), D;
1837
+ return E.scope && typeof E.scope == "string" && ue.openNode(ke.classNameAliases[E.scope] || E.scope), E.beginScope && (E.beginScope._wrap ? (Ne(ee, ke.classNameAliases[E.beginScope._wrap] || E.beginScope._wrap), ee = "") : E.beginScope._multi && (vt(E.beginScope, w), ee = "")), D = Object.create(E, { parent: { value: D } }), D;
1849
1838
  }
1850
1839
  function yt(E, w, W) {
1851
- let F = dr(E.endRe, W);
1840
+ let F = tr(E.endRe, W);
1852
1841
  if (F) {
1853
1842
  if (E["on:end"]) {
1854
- const T = new $n(E);
1843
+ const T = new zn(E);
1855
1844
  E["on:end"](w, T), T.isMatchIgnored && (F = !1);
1856
1845
  }
1857
1846
  if (F) {
@@ -1867,7 +1856,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
1867
1856
  return D.matcher.regexIndex === 0 ? (ee += E[0], 1) : (Se = !0, 0);
1868
1857
  }
1869
1858
  function Wt(E) {
1870
- const w = E[0], W = E.rule, F = new $n(W), T = [W.__beforeBegin, W["on:begin"]];
1859
+ const w = E[0], W = E.rule, F = new zn(W), T = [W.__beforeBegin, W["on:begin"]];
1871
1860
  for (const Me of T)
1872
1861
  if (Me && (Me(E, F), F.isMatchIgnored))
1873
1862
  return Et(w);
@@ -1880,7 +1869,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
1880
1869
  const T = D;
1881
1870
  D.endScope && D.endScope._wrap ? (ye(), Ne(w, D.endScope._wrap)) : D.endScope && D.endScope._multi ? (ye(), vt(D.endScope, E)) : T.skip ? ee += w : (T.returnEnd || T.excludeEnd || (ee += w), ye(), T.excludeEnd && (ee = w));
1882
1871
  do
1883
- D.scope && de.closeNode(), !D.skip && !D.subLanguage && (je += D.relevance), D = D.parent;
1872
+ D.scope && ue.closeNode(), !D.skip && !D.subLanguage && (je += D.relevance), D = D.parent;
1884
1873
  while (D !== F.parent);
1885
1874
  return F.starts && st(F.starts, E), T.returnEnd ? 0 : w.length;
1886
1875
  }
@@ -1888,17 +1877,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
1888
1877
  const E = [];
1889
1878
  for (let w = D; w !== ke; w = w.parent)
1890
1879
  w.scope && E.unshift(w.scope);
1891
- E.forEach((w) => de.openNode(w));
1880
+ E.forEach((w) => ue.openNode(w));
1892
1881
  }
1893
1882
  let Ge = {};
1894
- function ze(E, w) {
1883
+ function $e(E, w) {
1895
1884
  const W = w && w[0];
1896
1885
  if (ee += E, W == null)
1897
1886
  return ye(), 0;
1898
1887
  if (Ge.type === "begin" && w.type === "end" && Ge.index === w.index && W === "") {
1899
1888
  if (ee += M.slice(w.index, w.index + 1), !a) {
1900
- const F = new Error(`0 width match regex (${p})`);
1901
- throw F.languageName = p, F.badRule = Ge.rule, F;
1889
+ const F = new Error(`0 width match regex (${b})`);
1890
+ throw F.languageName = b, F.badRule = Ge.rule, F;
1902
1891
  }
1903
1892
  return 1;
1904
1893
  }
@@ -1919,39 +1908,39 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
1919
1908
  throw new Error("potential infinite loop, way more iterations than matches");
1920
1909
  return ee += W, W.length;
1921
1910
  }
1922
- const ke = ne(p);
1911
+ const ke = ne(b);
1923
1912
  if (!ke)
1924
- throw Xe(f.replace("{}", p)), new Error('Unknown language: "' + p + '"');
1925
- const Gt = Kr(ke);
1913
+ throw Xe(f.replace("{}", b)), new Error('Unknown language: "' + b + '"');
1914
+ const Gt = Dr(ke);
1926
1915
  let Ve = "", D = U || Gt;
1927
- const Je = {}, de = new c.__emitter(c);
1916
+ const Je = {}, ue = new c.__emitter(c);
1928
1917
  Ft();
1929
1918
  let ee = "", je = 0, Ce = 0, Ke = 0, Se = !1;
1930
1919
  try {
1931
1920
  if (ke.__emitTokens)
1932
- ke.__emitTokens(M, de);
1921
+ ke.__emitTokens(M, ue);
1933
1922
  else {
1934
1923
  for (D.matcher.considerAll(); ; ) {
1935
1924
  Ke++, Se ? Se = !1 : D.matcher.considerAll(), D.matcher.lastIndex = Ce;
1936
1925
  const E = D.matcher.exec(M);
1937
1926
  if (!E) break;
1938
- const w = M.substring(Ce, E.index), W = ze(w, E);
1927
+ const w = M.substring(Ce, E.index), W = $e(w, E);
1939
1928
  Ce = E.index + W;
1940
1929
  }
1941
- ze(M.substring(Ce));
1930
+ $e(M.substring(Ce));
1942
1931
  }
1943
- return de.finalize(), Ve = de.toHTML(), {
1944
- language: p,
1932
+ return ue.finalize(), Ve = ue.toHTML(), {
1933
+ language: b,
1945
1934
  value: Ve,
1946
1935
  relevance: je,
1947
1936
  illegal: !1,
1948
- _emitter: de,
1937
+ _emitter: ue,
1949
1938
  _top: D
1950
1939
  };
1951
1940
  } catch (E) {
1952
1941
  if (E.message && E.message.includes("Illegal"))
1953
1942
  return {
1954
- language: p,
1943
+ language: b,
1955
1944
  value: Qt(M),
1956
1945
  illegal: !0,
1957
1946
  relevance: 0,
@@ -1962,35 +1951,35 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
1962
1951
  mode: E.mode,
1963
1952
  resultSoFar: Ve
1964
1953
  },
1965
- _emitter: de
1954
+ _emitter: ue
1966
1955
  };
1967
1956
  if (a)
1968
1957
  return {
1969
- language: p,
1958
+ language: b,
1970
1959
  value: Qt(M),
1971
1960
  illegal: !1,
1972
1961
  relevance: 0,
1973
1962
  errorRaised: E,
1974
- _emitter: de,
1963
+ _emitter: ue,
1975
1964
  _top: D
1976
1965
  };
1977
1966
  throw E;
1978
1967
  }
1979
1968
  }
1980
- function y(p) {
1969
+ function y(b) {
1981
1970
  const M = {
1982
- value: Qt(p),
1971
+ value: Qt(b),
1983
1972
  illegal: !1,
1984
1973
  relevance: 0,
1985
1974
  _top: s,
1986
1975
  _emitter: new c.__emitter(c)
1987
1976
  };
1988
- return M._emitter.addText(p), M;
1977
+ return M._emitter.addText(b), M;
1989
1978
  }
1990
- function l(p, M) {
1979
+ function l(b, M) {
1991
1980
  M = M || c.languages || Object.keys(o);
1992
- const x = y(p), U = M.filter(ne).filter(P).map(
1993
- (ye) => m(ye, p, !1)
1981
+ const x = y(b), U = M.filter(ne).filter(P).map(
1982
+ (ye) => m(ye, b, !1)
1994
1983
  );
1995
1984
  U.unshift(x);
1996
1985
  const q = U.sort((ye, Ne) => {
@@ -2002,43 +1991,43 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
2002
1991
  return -1;
2003
1992
  }
2004
1993
  return 0;
2005
- }), [ae, be] = q, we = ae;
2006
- return we.secondBest = be, we;
1994
+ }), [ae, pe] = q, we = ae;
1995
+ return we.secondBest = pe, we;
2007
1996
  }
2008
- function O(p, M, x) {
1997
+ function R(b, M, x) {
2009
1998
  const U = M && n[M] || x;
2010
- p.classList.add("hljs"), p.classList.add(`language-${U}`);
1999
+ b.classList.add("hljs"), b.classList.add(`language-${U}`);
2011
2000
  }
2012
- function $(p) {
2001
+ function z(b) {
2013
2002
  let M = null;
2014
- const x = g(p);
2003
+ const x = g(b);
2015
2004
  if (u(x)) return;
2016
- if (ue(
2005
+ if (ce(
2017
2006
  "before:highlightElement",
2018
- { el: p, language: x }
2019
- ), p.dataset.highlighted) {
2020
- console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", p);
2007
+ { el: b, language: x }
2008
+ ), b.dataset.highlighted) {
2009
+ console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", b);
2021
2010
  return;
2022
2011
  }
2023
- if (p.children.length > 0 && (c.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(p)), c.throwUnescapedHTML))
2024
- throw new Xr(
2012
+ if (b.children.length > 0 && (c.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(b)), c.throwUnescapedHTML))
2013
+ throw new $r(
2025
2014
  "One of your code blocks includes unescaped HTML.",
2026
- p.innerHTML
2015
+ b.innerHTML
2027
2016
  );
2028
- M = p;
2017
+ M = b;
2029
2018
  const U = M.textContent, q = x ? v(U, { language: x, ignoreIllegals: !0 }) : l(U);
2030
- p.innerHTML = q.value, p.dataset.highlighted = "yes", O(p, x, q.language), p.result = {
2019
+ b.innerHTML = q.value, b.dataset.highlighted = "yes", R(b, x, q.language), b.result = {
2031
2020
  language: q.language,
2032
2021
  // TODO: remove with version 11.0
2033
2022
  re: q.relevance,
2034
2023
  relevance: q.relevance
2035
- }, q.secondBest && (p.secondBest = {
2024
+ }, q.secondBest && (b.secondBest = {
2036
2025
  language: q.secondBest.language,
2037
2026
  relevance: q.secondBest.relevance
2038
- }), ue("after:highlightElement", { el: p, result: q, text: U });
2027
+ }), ce("after:highlightElement", { el: b, result: q, text: U });
2039
2028
  }
2040
- function X(p) {
2041
- c = Wn(c, p);
2029
+ function X(b) {
2030
+ c = Wn(c, b);
2042
2031
  }
2043
2032
  const N = () => {
2044
2033
  B(), nt("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
@@ -2048,80 +2037,80 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
2048
2037
  }
2049
2038
  let L = !1;
2050
2039
  function B() {
2051
- function p() {
2040
+ function b() {
2052
2041
  B();
2053
2042
  }
2054
2043
  if (document.readyState === "loading") {
2055
- L || window.addEventListener("DOMContentLoaded", p, !1), L = !0;
2044
+ L || window.addEventListener("DOMContentLoaded", b, !1), L = !0;
2056
2045
  return;
2057
2046
  }
2058
- document.querySelectorAll(c.cssSelector).forEach($);
2047
+ document.querySelectorAll(c.cssSelector).forEach(z);
2059
2048
  }
2060
- function H(p, M) {
2049
+ function H(b, M) {
2061
2050
  let x = null;
2062
2051
  try {
2063
2052
  x = M(e);
2064
2053
  } catch (U) {
2065
- if (Xe("Language definition for '{}' could not be registered.".replace("{}", p)), a)
2054
+ if (Xe("Language definition for '{}' could not be registered.".replace("{}", b)), a)
2066
2055
  Xe(U);
2067
2056
  else
2068
2057
  throw U;
2069
2058
  x = s;
2070
2059
  }
2071
- x.name || (x.name = p), o[p] = x, x.rawDefinition = M.bind(null, e), x.aliases && pe(x.aliases, { languageName: p });
2060
+ x.name || (x.name = b), o[b] = x, x.rawDefinition = M.bind(null, e), x.aliases && be(x.aliases, { languageName: b });
2072
2061
  }
2073
- function I(p) {
2074
- delete o[p];
2062
+ function I(b) {
2063
+ delete o[b];
2075
2064
  for (const M of Object.keys(n))
2076
- n[M] === p && delete n[M];
2065
+ n[M] === b && delete n[M];
2077
2066
  }
2078
2067
  function te() {
2079
2068
  return Object.keys(o);
2080
2069
  }
2081
- function ne(p) {
2082
- return p = (p || "").toLowerCase(), o[p] || o[n[p]];
2070
+ function ne(b) {
2071
+ return b = (b || "").toLowerCase(), o[b] || o[n[b]];
2083
2072
  }
2084
- function pe(p, { languageName: M }) {
2085
- typeof p == "string" && (p = [p]), p.forEach((x) => {
2073
+ function be(b, { languageName: M }) {
2074
+ typeof b == "string" && (b = [b]), b.forEach((x) => {
2086
2075
  n[x.toLowerCase()] = M;
2087
2076
  });
2088
2077
  }
2089
- function P(p) {
2090
- const M = ne(p);
2078
+ function P(b) {
2079
+ const M = ne(b);
2091
2080
  return M && !M.disableAutodetect;
2092
2081
  }
2093
- function re(p) {
2094
- p["before:highlightBlock"] && !p["before:highlightElement"] && (p["before:highlightElement"] = (M) => {
2095
- p["before:highlightBlock"](
2082
+ function re(b) {
2083
+ b["before:highlightBlock"] && !b["before:highlightElement"] && (b["before:highlightElement"] = (M) => {
2084
+ b["before:highlightBlock"](
2096
2085
  Object.assign({ block: M.el }, M)
2097
2086
  );
2098
- }), p["after:highlightBlock"] && !p["after:highlightElement"] && (p["after:highlightElement"] = (M) => {
2099
- p["after:highlightBlock"](
2087
+ }), b["after:highlightBlock"] && !b["after:highlightElement"] && (b["after:highlightElement"] = (M) => {
2088
+ b["after:highlightBlock"](
2100
2089
  Object.assign({ block: M.el }, M)
2101
2090
  );
2102
2091
  });
2103
2092
  }
2104
- function fe(p) {
2105
- re(p), r.push(p);
2093
+ function de(b) {
2094
+ re(b), r.push(b);
2106
2095
  }
2107
- function ce(p) {
2108
- const M = r.indexOf(p);
2096
+ function le(b) {
2097
+ const M = r.indexOf(b);
2109
2098
  M !== -1 && r.splice(M, 1);
2110
2099
  }
2111
- function ue(p, M) {
2112
- const x = p;
2100
+ function ce(b, M) {
2101
+ const x = b;
2113
2102
  r.forEach(function(U) {
2114
2103
  U[x] && U[x](M);
2115
2104
  });
2116
2105
  }
2117
- function me(p) {
2118
- return nt("10.7.0", "highlightBlock will be removed entirely in v12.0"), nt("10.7.0", "Please use highlightElement now."), $(p);
2106
+ function me(b) {
2107
+ return nt("10.7.0", "highlightBlock will be removed entirely in v12.0"), nt("10.7.0", "Please use highlightElement now."), z(b);
2119
2108
  }
2120
2109
  Object.assign(e, {
2121
2110
  highlight: v,
2122
2111
  highlightAuto: l,
2123
2112
  highlightAll: B,
2124
- highlightElement: $,
2113
+ highlightElement: z,
2125
2114
  // TODO: Remove with v12 API
2126
2115
  highlightBlock: me,
2127
2116
  configure: X,
@@ -2131,31 +2120,31 @@ https://github.com/highlightjs/highlight.js/issues/2277`), q = p, U = M), x ===
2131
2120
  unregisterLanguage: I,
2132
2121
  listLanguages: te,
2133
2122
  getLanguage: ne,
2134
- registerAliases: pe,
2123
+ registerAliases: be,
2135
2124
  autoDetection: P,
2136
2125
  inherit: Wn,
2137
- addPlugin: fe,
2138
- removePlugin: ce
2126
+ addPlugin: de,
2127
+ removePlugin: le
2139
2128
  }), e.debugMode = function() {
2140
2129
  a = !1;
2141
2130
  }, e.safeMode = function() {
2142
2131
  a = !0;
2143
- }, e.versionString = Yr, e.regex = {
2132
+ }, e.versionString = zr, e.regex = {
2144
2133
  concat: qe,
2145
2134
  lookahead: ui,
2146
2135
  either: cn,
2147
- optional: cr,
2148
- anyNumberOfTimes: lr
2136
+ optional: Qo,
2137
+ anyNumberOfTimes: jo
2149
2138
  };
2150
- for (const p in Ot)
2151
- typeof Ot[p] == "object" && li(Ot[p]);
2139
+ for (const b in Ot)
2140
+ typeof Ot[b] == "object" && li(Ot[b]);
2152
2141
  return Object.assign(e, Ot), e;
2153
2142
  }, at = yi({});
2154
2143
  at.newInstance = () => yi({});
2155
- var Vr = at;
2144
+ var Ur = at;
2156
2145
  at.HighlightJS = at;
2157
2146
  at.default = at;
2158
- const on = /* @__PURE__ */ ir(Vr);
2147
+ const on = /* @__PURE__ */ Yo(Ur);
2159
2148
  function en(e) {
2160
2149
  const o = e.regex, n = {}, r = {
2161
2150
  begin: /\$\{/,
@@ -2249,13 +2238,13 @@ function en(e) {
2249
2238
  ], l = e.SHEBANG({
2250
2239
  binary: `(${y.join("|")})`,
2251
2240
  relevance: 10
2252
- }), O = {
2241
+ }), R = {
2253
2242
  className: "function",
2254
2243
  begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
2255
2244
  returnBegin: !0,
2256
2245
  contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
2257
2246
  relevance: 0
2258
- }, $ = [
2247
+ }, z = [
2259
2248
  "if",
2260
2249
  "then",
2261
2250
  "else",
@@ -2500,7 +2489,7 @@ function en(e) {
2500
2489
  ],
2501
2490
  keywords: {
2502
2491
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
2503
- keyword: $,
2492
+ keyword: z,
2504
2493
  literal: X,
2505
2494
  built_in: [
2506
2495
  ...V,
@@ -2517,7 +2506,7 @@ function en(e) {
2517
2506
  // to catch known shells and boost relevancy
2518
2507
  e.SHEBANG(),
2519
2508
  // to catch unknown shells but still highlight the shebang
2520
- O,
2509
+ R,
2521
2510
  m,
2522
2511
  f,
2523
2512
  s,
@@ -2530,7 +2519,7 @@ function en(e) {
2530
2519
  ]
2531
2520
  };
2532
2521
  }
2533
- const Jr = (e) => ({
2522
+ const Hr = (e) => ({
2534
2523
  IMPORTANT: {
2535
2524
  scope: "meta",
2536
2525
  begin: "!important"
@@ -2563,7 +2552,7 @@ const Jr = (e) => ({
2563
2552
  className: "attr",
2564
2553
  begin: /--[A-Za-z_][A-Za-z0-9_-]*/
2565
2554
  }
2566
- }), jr = [
2555
+ }), Wr = [
2567
2556
  "a",
2568
2557
  "abbr",
2569
2558
  "address",
@@ -2641,7 +2630,7 @@ const Jr = (e) => ({
2641
2630
  "ul",
2642
2631
  "var",
2643
2632
  "video"
2644
- ], Qr = [
2633
+ ], Fr = [
2645
2634
  "defs",
2646
2635
  "g",
2647
2636
  "marker",
@@ -2683,10 +2672,10 @@ const Jr = (e) => ({
2683
2672
  "tspan",
2684
2673
  "foreignObject",
2685
2674
  "clipPath"
2686
- ], ea = [
2687
- ...jr,
2688
- ...Qr
2689
- ], ta = [
2675
+ ], Gr = [
2676
+ ...Wr,
2677
+ ...Fr
2678
+ ], Kr = [
2690
2679
  "any-hover",
2691
2680
  "any-pointer",
2692
2681
  "aspect-ratio",
@@ -2721,7 +2710,7 @@ const Jr = (e) => ({
2721
2710
  "max-width",
2722
2711
  "min-height",
2723
2712
  "max-height"
2724
- ].sort().reverse(), na = [
2713
+ ].sort().reverse(), Zr = [
2725
2714
  "active",
2726
2715
  "any-link",
2727
2716
  "blank",
@@ -2795,7 +2784,7 @@ const Jr = (e) => ({
2795
2784
  "visited",
2796
2785
  "where"
2797
2786
  // where()
2798
- ].sort().reverse(), ia = [
2787
+ ].sort().reverse(), Yr = [
2799
2788
  "after",
2800
2789
  "backdrop",
2801
2790
  "before",
@@ -2810,7 +2799,7 @@ const Jr = (e) => ({
2810
2799
  "selection",
2811
2800
  "slotted",
2812
2801
  "spelling-error"
2813
- ].sort().reverse(), oa = [
2802
+ ].sort().reverse(), Xr = [
2814
2803
  "accent-color",
2815
2804
  "align-content",
2816
2805
  "align-items",
@@ -3327,8 +3316,8 @@ const Jr = (e) => ({
3327
3316
  "z-index",
3328
3317
  "zoom"
3329
3318
  ].sort().reverse();
3330
- function ra(e) {
3331
- const o = e.regex, n = Jr(e), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, a = "and or not only", f = /@-?\w[\w]*(-\w+)*/, s = "[a-zA-Z-][a-zA-Z0-9_-]*", c = [
3319
+ function qr(e) {
3320
+ const o = e.regex, n = Hr(e), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, a = "and or not only", f = /@-?\w[\w]*(-\w+)*/, s = "[a-zA-Z-][a-zA-Z0-9_-]*", c = [
3332
3321
  e.APOS_STRING_MODE,
3333
3322
  e.QUOTE_STRING_MODE
3334
3323
  ];
@@ -3362,8 +3351,8 @@ function ra(e) {
3362
3351
  {
3363
3352
  className: "selector-pseudo",
3364
3353
  variants: [
3365
- { begin: ":(" + na.join("|") + ")" },
3366
- { begin: ":(:)?(" + ia.join("|") + ")" }
3354
+ { begin: ":(" + Zr.join("|") + ")" },
3355
+ { begin: ":(:)?(" + Yr.join("|") + ")" }
3367
3356
  ]
3368
3357
  },
3369
3358
  // we may actually need this (12/2020)
@@ -3375,7 +3364,7 @@ function ra(e) {
3375
3364
  n.CSS_VARIABLE,
3376
3365
  {
3377
3366
  className: "attribute",
3378
- begin: "\\b(" + oa.join("|") + ")\\b"
3367
+ begin: "\\b(" + Xr.join("|") + ")\\b"
3379
3368
  },
3380
3369
  // attribute values
3381
3370
  {
@@ -3430,7 +3419,7 @@ function ra(e) {
3430
3419
  keywords: {
3431
3420
  $pattern: /[a-z-]+/,
3432
3421
  keyword: a,
3433
- attribute: ta.join(" ")
3422
+ attribute: Kr.join(" ")
3434
3423
  },
3435
3424
  contains: [
3436
3425
  {
@@ -3445,7 +3434,7 @@ function ra(e) {
3445
3434
  },
3446
3435
  {
3447
3436
  className: "selector-tag",
3448
- begin: "\\b(" + ea.join("|") + ")\\b"
3437
+ begin: "\\b(" + Gr.join("|") + ")\\b"
3449
3438
  }
3450
3439
  ]
3451
3440
  };
@@ -3624,7 +3613,7 @@ var ot = "[0-9](_*[0-9])*", It = `\\.(${ot})`, Lt = "[0-9a-fA-F](_*[0-9a-fA-F])*
3624
3613
  function Ei(e, o, n) {
3625
3614
  return n === -1 ? "" : e.replace(o, (r) => Ei(e, o, n - 1));
3626
3615
  }
3627
- function aa(e) {
3616
+ function Vr(e) {
3628
3617
  const o = e.regex, n = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", r = n + Ei("(?:<" + n + "~~~(?:\\s*,\\s*" + n + "~~~)*>)?", /~~~/g, 2), u = {
3629
3618
  keyword: [
3630
3619
  "synchronized",
@@ -3835,7 +3824,7 @@ function aa(e) {
3835
3824
  ]
3836
3825
  };
3837
3826
  }
3838
- const Zn = "[A-Za-z$_][0-9A-Za-z$_]*", sa = [
3827
+ const Zn = "[A-Za-z$_][0-9A-Za-z$_]*", Jr = [
3839
3828
  "as",
3840
3829
  // for exports
3841
3830
  "in",
@@ -3880,7 +3869,7 @@ const Zn = "[A-Za-z$_][0-9A-Za-z$_]*", sa = [
3880
3869
  "extends",
3881
3870
  // It's reached stage 3, which is "recommended for implementation":
3882
3871
  "using"
3883
- ], la = [
3872
+ ], jr = [
3884
3873
  "true",
3885
3874
  "false",
3886
3875
  "null",
@@ -3964,7 +3953,7 @@ const Zn = "[A-Za-z$_][0-9A-Za-z$_]*", sa = [
3964
3953
  "encodeURIComponent",
3965
3954
  "escape",
3966
3955
  "unescape"
3967
- ], ca = [
3956
+ ], Qr = [
3968
3957
  "arguments",
3969
3958
  "this",
3970
3959
  "super",
@@ -3976,7 +3965,7 @@ const Zn = "[A-Za-z$_][0-9A-Za-z$_]*", sa = [
3976
3965
  "module",
3977
3966
  "global"
3978
3967
  // Node.js
3979
- ], ua = [].concat(
3968
+ ], ea = [].concat(
3980
3969
  wi,
3981
3970
  xi,
3982
3971
  _i
@@ -4009,23 +3998,23 @@ function Yn(e) {
4009
3998
  return;
4010
3999
  }
4011
4000
  ae === ">" && (n(x, { after: q }) || U.ignoreMatch());
4012
- let be;
4001
+ let pe;
4013
4002
  const we = x.input.substring(q);
4014
- if (be = we.match(/^\s*=/)) {
4003
+ if (pe = we.match(/^\s*=/)) {
4015
4004
  U.ignoreMatch();
4016
4005
  return;
4017
4006
  }
4018
- if ((be = we.match(/^\s+extends\s+/)) && be.index === 0) {
4007
+ if ((pe = we.match(/^\s+extends\s+/)) && pe.index === 0) {
4019
4008
  U.ignoreMatch();
4020
4009
  return;
4021
4010
  }
4022
4011
  }
4023
4012
  }, c = {
4024
4013
  $pattern: Zn,
4025
- keyword: sa,
4026
- literal: la,
4027
- built_in: ua,
4028
- "variable.language": ca
4014
+ keyword: Jr,
4015
+ literal: jr,
4016
+ built_in: ea,
4017
+ "variable.language": Qr
4029
4018
  }, u = "[0-9](_?[0-9])*", g = `\\.(${u})`, v = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", m = {
4030
4019
  className: "number",
4031
4020
  variants: [
@@ -4062,7 +4051,7 @@ function Yn(e) {
4062
4051
  ],
4063
4052
  subLanguage: "xml"
4064
4053
  }
4065
- }, O = {
4054
+ }, R = {
4066
4055
  begin: ".?css`",
4067
4056
  end: "",
4068
4057
  starts: {
@@ -4074,7 +4063,7 @@ function Yn(e) {
4074
4063
  ],
4075
4064
  subLanguage: "css"
4076
4065
  }
4077
- }, $ = {
4066
+ }, z = {
4078
4067
  begin: ".?gql`",
4079
4068
  end: "",
4080
4069
  starts: {
@@ -4143,8 +4132,8 @@ function Yn(e) {
4143
4132
  e.APOS_STRING_MODE,
4144
4133
  e.QUOTE_STRING_MODE,
4145
4134
  l,
4146
- O,
4147
- $,
4135
+ R,
4136
+ z,
4148
4137
  X,
4149
4138
  // Skip numbers when they are part of a variable name
4150
4139
  { match: /\$\d+/ },
@@ -4238,7 +4227,7 @@ function Yn(e) {
4238
4227
  ..._i
4239
4228
  ]
4240
4229
  }
4241
- }, pe = {
4230
+ }, be = {
4242
4231
  label: "use_strict",
4243
4232
  className: "meta",
4244
4233
  relevance: 10,
@@ -4273,13 +4262,13 @@ function Yn(e) {
4273
4262
  match: /\b[A-Z][A-Z_0-9]+\b/,
4274
4263
  className: "variable.constant"
4275
4264
  };
4276
- function fe(x) {
4265
+ function de(x) {
4277
4266
  return o.concat("(?!", x.join("|"), ")");
4278
4267
  }
4279
- const ce = {
4268
+ const le = {
4280
4269
  match: o.concat(
4281
4270
  /\b/,
4282
- fe([
4271
+ de([
4283
4272
  ...wi,
4284
4273
  "super",
4285
4274
  "import"
@@ -4289,7 +4278,7 @@ function Yn(e) {
4289
4278
  ),
4290
4279
  className: "title.function",
4291
4280
  relevance: 0
4292
- }, ue = {
4281
+ }, ce = {
4293
4282
  begin: o.concat(/\./, o.lookahead(
4294
4283
  o.concat(r, /(?![0-9A-Za-z$_(])/)
4295
4284
  )),
@@ -4316,7 +4305,7 @@ function Yn(e) {
4316
4305
  },
4317
4306
  I
4318
4307
  ]
4319
- }, p = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", M = {
4308
+ }, b = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", M = {
4320
4309
  match: [
4321
4310
  /const|var|let/,
4322
4311
  /\s+/,
@@ -4325,7 +4314,7 @@ function Yn(e) {
4325
4314
  /=\s*/,
4326
4315
  /(async\s*)?/,
4327
4316
  // async is optional
4328
- o.lookahead(p)
4317
+ o.lookahead(b)
4329
4318
  ],
4330
4319
  keywords: "async",
4331
4320
  className: {
@@ -4349,12 +4338,12 @@ function Yn(e) {
4349
4338
  binary: "node",
4350
4339
  relevance: 5
4351
4340
  }),
4352
- pe,
4341
+ be,
4353
4342
  e.APOS_STRING_MODE,
4354
4343
  e.QUOTE_STRING_MODE,
4355
4344
  l,
4356
- O,
4357
- $,
4345
+ R,
4346
+ z,
4358
4347
  X,
4359
4348
  V,
4360
4349
  // Skip numbers when they are part of a variable name
@@ -4380,7 +4369,7 @@ function Yn(e) {
4380
4369
  // we have to count the parens to make sure we actually have the
4381
4370
  // correct bounding ( ) before the =>. There could be any number of
4382
4371
  // sub-expressions inside also surrounded by parens.
4383
- begin: p,
4372
+ begin: b,
4384
4373
  returnBegin: !0,
4385
4374
  end: "\\s*=>",
4386
4375
  contains: [
@@ -4466,7 +4455,7 @@ function Yn(e) {
4466
4455
  match: /\.\.\./,
4467
4456
  relevance: 0
4468
4457
  },
4469
- ue,
4458
+ ce,
4470
4459
  // hack: prevents detection of keywords in some circumstances
4471
4460
  // .keyword()
4472
4461
  // $keyword = x
@@ -4479,7 +4468,7 @@ function Yn(e) {
4479
4468
  className: { 1: "title.function" },
4480
4469
  contains: [I]
4481
4470
  },
4482
- ce,
4471
+ le,
4483
4472
  re,
4484
4473
  te,
4485
4474
  me,
@@ -4490,7 +4479,7 @@ function Yn(e) {
4490
4479
  ]
4491
4480
  };
4492
4481
  }
4493
- function da(e) {
4482
+ function ta(e) {
4494
4483
  const o = {
4495
4484
  className: "attr",
4496
4485
  begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
@@ -4964,7 +4953,7 @@ function qn(e) {
4964
4953
  e.APOS_STRING_MODE,
4965
4954
  e.QUOTE_STRING_MODE
4966
4955
  ]
4967
- }, y = "[0-9](_?[0-9])*", l = `(\\b(${y}))?\\.(${y})|\\b(${y})\\.`, O = `\\b|${r.join("|")}`, $ = {
4956
+ }, y = "[0-9](_?[0-9])*", l = `(\\b(${y}))?\\.(${y})|\\b(${y})\\.`, R = `\\b|${r.join("|")}`, z = {
4968
4957
  className: "number",
4969
4958
  relevance: 0,
4970
4959
  variants: [
@@ -4979,7 +4968,7 @@ function qn(e) {
4979
4968
  // because both MUST contain a decimal point and so cannot be confused with
4980
4969
  // the interior part of an identifier
4981
4970
  {
4982
- begin: `(\\b(${y})|(${l}))[eE][+-]?(${y})[jJ]?(?=${O})`
4971
+ begin: `(\\b(${y})|(${l}))[eE][+-]?(${y})[jJ]?(?=${R})`
4983
4972
  },
4984
4973
  {
4985
4974
  begin: `(${l})[jJ]?`
@@ -4991,21 +4980,21 @@ function qn(e) {
4991
4980
  // decinteger is optionally imaginary
4992
4981
  // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
4993
4982
  {
4994
- begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${O})`
4983
+ begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${R})`
4995
4984
  },
4996
4985
  {
4997
- begin: `\\b0[bB](_?[01])+[lL]?(?=${O})`
4986
+ begin: `\\b0[bB](_?[01])+[lL]?(?=${R})`
4998
4987
  },
4999
4988
  {
5000
- begin: `\\b0[oO](_?[0-7])+[lL]?(?=${O})`
4989
+ begin: `\\b0[oO](_?[0-7])+[lL]?(?=${R})`
5001
4990
  },
5002
4991
  {
5003
- begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${O})`
4992
+ begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${R})`
5004
4993
  },
5005
4994
  // imagnumber (digitpart-based)
5006
4995
  // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
5007
4996
  {
5008
- begin: `\\b(${y})[jJ](?=${O})`
4997
+ begin: `\\b(${y})[jJ](?=${R})`
5009
4998
  }
5010
4999
  ]
5011
5000
  }, X = {
@@ -5043,7 +5032,7 @@ function qn(e) {
5043
5032
  contains: [
5044
5033
  "self",
5045
5034
  u,
5046
- $,
5035
+ z,
5047
5036
  m,
5048
5037
  e.HASH_COMMENT_MODE
5049
5038
  ]
@@ -5052,7 +5041,7 @@ function qn(e) {
5052
5041
  };
5053
5042
  return g.contains = [
5054
5043
  m,
5055
- $,
5044
+ z,
5056
5045
  u
5057
5046
  ], {
5058
5047
  name: "Python",
@@ -5066,7 +5055,7 @@ function qn(e) {
5066
5055
  illegal: /(<\/|\?)|=>/,
5067
5056
  contains: [
5068
5057
  u,
5069
- $,
5058
+ z,
5070
5059
  {
5071
5060
  // very common convention
5072
5061
  scope: "variable.language",
@@ -5126,7 +5115,7 @@ function qn(e) {
5126
5115
  begin: /^[\t ]*@/,
5127
5116
  end: /(?=#)|$/,
5128
5117
  contains: [
5129
- $,
5118
+ z,
5130
5119
  N,
5131
5120
  m
5132
5121
  ]
@@ -5436,7 +5425,7 @@ function Vn(e) {
5436
5425
  ]
5437
5426
  };
5438
5427
  }
5439
- function fa(e) {
5428
+ function na(e) {
5440
5429
  const o = e.regex, n = e.COMMENT("--", "$"), r = {
5441
5430
  scope: "string",
5442
5431
  variants: [
@@ -5985,10 +5974,10 @@ function fa(e) {
5985
5974
  "nulls last",
5986
5975
  "depth first",
5987
5976
  "breadth first"
5988
- ], l = v, O = [
5977
+ ], l = v, R = [
5989
5978
  ...g,
5990
5979
  ...u
5991
- ].filter((H) => !v.includes(H)), $ = {
5980
+ ].filter((H) => !v.includes(H)), z = {
5992
5981
  scope: "variable",
5993
5982
  match: /@[a-z0-9][a-z0-9_]*/
5994
5983
  }, X = {
@@ -6017,7 +6006,7 @@ function fa(e) {
6017
6006
  when: te
6018
6007
  } = {}) {
6019
6008
  const ne = te;
6020
- return I = I || [], H.map((pe) => pe.match(/\|\d+$/) || I.includes(pe) ? pe : ne(pe) ? `${pe}|0` : pe);
6009
+ return I = I || [], H.map((be) => be.match(/\|\d+$/) || I.includes(be) ? be : ne(be) ? `${be}|0` : be);
6021
6010
  }
6022
6011
  return {
6023
6012
  name: "SQL",
@@ -6026,7 +6015,7 @@ function fa(e) {
6026
6015
  illegal: /[{}]|<\//,
6027
6016
  keywords: {
6028
6017
  $pattern: /\b[\w\.]+/,
6029
- keyword: B(O, { when: (H) => H.length < 3 }),
6018
+ keyword: B(R, { when: (H) => H.length < 3 }),
6030
6019
  literal: f,
6031
6020
  type: c,
6032
6021
  built_in: m
@@ -6038,7 +6027,7 @@ function fa(e) {
6038
6027
  },
6039
6028
  L,
6040
6029
  N,
6041
- $,
6030
+ z,
6042
6031
  r,
6043
6032
  a,
6044
6033
  e.C_NUMBER_MODE,
@@ -6194,7 +6183,7 @@ const Pt = "[A-Za-z$_][0-9A-Za-z$_]*", Ni = [
6194
6183
  Si,
6195
6184
  Mi
6196
6185
  );
6197
- function ga(e) {
6186
+ function ia(e) {
6198
6187
  const o = e.regex, n = (x, { after: U }) => {
6199
6188
  const q = "</" + x[0].slice(1);
6200
6189
  return x.input.indexOf(q, U) !== -1;
@@ -6222,13 +6211,13 @@ function ga(e) {
6222
6211
  return;
6223
6212
  }
6224
6213
  ae === ">" && (n(x, { after: q }) || U.ignoreMatch());
6225
- let be;
6214
+ let pe;
6226
6215
  const we = x.input.substring(q);
6227
- if (be = we.match(/^\s*=/)) {
6216
+ if (pe = we.match(/^\s*=/)) {
6228
6217
  U.ignoreMatch();
6229
6218
  return;
6230
6219
  }
6231
- if ((be = we.match(/^\s+extends\s+/)) && be.index === 0) {
6220
+ if ((pe = we.match(/^\s+extends\s+/)) && pe.index === 0) {
6232
6221
  U.ignoreMatch();
6233
6222
  return;
6234
6223
  }
@@ -6275,7 +6264,7 @@ function ga(e) {
6275
6264
  ],
6276
6265
  subLanguage: "xml"
6277
6266
  }
6278
- }, O = {
6267
+ }, R = {
6279
6268
  begin: ".?css`",
6280
6269
  end: "",
6281
6270
  starts: {
@@ -6287,7 +6276,7 @@ function ga(e) {
6287
6276
  ],
6288
6277
  subLanguage: "css"
6289
6278
  }
6290
- }, $ = {
6279
+ }, z = {
6291
6280
  begin: ".?gql`",
6292
6281
  end: "",
6293
6282
  starts: {
@@ -6356,8 +6345,8 @@ function ga(e) {
6356
6345
  e.APOS_STRING_MODE,
6357
6346
  e.QUOTE_STRING_MODE,
6358
6347
  l,
6359
- O,
6360
- $,
6348
+ R,
6349
+ z,
6361
6350
  X,
6362
6351
  // Skip numbers when they are part of a variable name
6363
6352
  { match: /\$\d+/ },
@@ -6451,7 +6440,7 @@ function ga(e) {
6451
6440
  ...Mi
6452
6441
  ]
6453
6442
  }
6454
- }, pe = {
6443
+ }, be = {
6455
6444
  label: "use_strict",
6456
6445
  className: "meta",
6457
6446
  relevance: 10,
@@ -6486,13 +6475,13 @@ function ga(e) {
6486
6475
  match: /\b[A-Z][A-Z_0-9]+\b/,
6487
6476
  className: "variable.constant"
6488
6477
  };
6489
- function fe(x) {
6478
+ function de(x) {
6490
6479
  return o.concat("(?!", x.join("|"), ")");
6491
6480
  }
6492
- const ce = {
6481
+ const le = {
6493
6482
  match: o.concat(
6494
6483
  /\b/,
6495
- fe([
6484
+ de([
6496
6485
  ...Ti,
6497
6486
  "super",
6498
6487
  "import"
@@ -6502,7 +6491,7 @@ function ga(e) {
6502
6491
  ),
6503
6492
  className: "title.function",
6504
6493
  relevance: 0
6505
- }, ue = {
6494
+ }, ce = {
6506
6495
  begin: o.concat(/\./, o.lookahead(
6507
6496
  o.concat(r, /(?![0-9A-Za-z$_(])/)
6508
6497
  )),
@@ -6529,7 +6518,7 @@ function ga(e) {
6529
6518
  },
6530
6519
  I
6531
6520
  ]
6532
- }, p = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", M = {
6521
+ }, b = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", M = {
6533
6522
  match: [
6534
6523
  /const|var|let/,
6535
6524
  /\s+/,
@@ -6538,7 +6527,7 @@ function ga(e) {
6538
6527
  /=\s*/,
6539
6528
  /(async\s*)?/,
6540
6529
  // async is optional
6541
- o.lookahead(p)
6530
+ o.lookahead(b)
6542
6531
  ],
6543
6532
  keywords: "async",
6544
6533
  className: {
@@ -6562,12 +6551,12 @@ function ga(e) {
6562
6551
  binary: "node",
6563
6552
  relevance: 5
6564
6553
  }),
6565
- pe,
6554
+ be,
6566
6555
  e.APOS_STRING_MODE,
6567
6556
  e.QUOTE_STRING_MODE,
6568
6557
  l,
6569
- O,
6570
- $,
6558
+ R,
6559
+ z,
6571
6560
  X,
6572
6561
  V,
6573
6562
  // Skip numbers when they are part of a variable name
@@ -6593,7 +6582,7 @@ function ga(e) {
6593
6582
  // we have to count the parens to make sure we actually have the
6594
6583
  // correct bounding ( ) before the =>. There could be any number of
6595
6584
  // sub-expressions inside also surrounded by parens.
6596
- begin: p,
6585
+ begin: b,
6597
6586
  returnBegin: !0,
6598
6587
  end: "\\s*=>",
6599
6588
  contains: [
@@ -6679,7 +6668,7 @@ function ga(e) {
6679
6668
  match: /\.\.\./,
6680
6669
  relevance: 0
6681
6670
  },
6682
- ue,
6671
+ ce,
6683
6672
  // hack: prevents detection of keywords in some circumstances
6684
6673
  // .keyword()
6685
6674
  // $keyword = x
@@ -6692,7 +6681,7 @@ function ga(e) {
6692
6681
  className: { 1: "title.function" },
6693
6682
  contains: [I]
6694
6683
  },
6695
- ce,
6684
+ le,
6696
6685
  re,
6697
6686
  te,
6698
6687
  me,
@@ -6704,7 +6693,7 @@ function ga(e) {
6704
6693
  };
6705
6694
  }
6706
6695
  function Jn(e) {
6707
- const o = e.regex, n = ga(e), r = Pt, a = [
6696
+ const o = e.regex, n = ia(e), r = Pt, a = [
6708
6697
  "any",
6709
6698
  "void",
6710
6699
  "number",
@@ -6761,14 +6750,14 @@ function Jn(e) {
6761
6750
  }, v = {
6762
6751
  className: "meta",
6763
6752
  begin: "@" + r
6764
- }, m = ($, X, N) => {
6765
- const V = $.contains.findIndex((L) => L.label === X);
6753
+ }, m = (z, X, N) => {
6754
+ const V = z.contains.findIndex((L) => L.label === X);
6766
6755
  if (V === -1)
6767
6756
  throw new Error("can not find mode to replace");
6768
- $.contains.splice(V, 1, N);
6757
+ z.contains.splice(V, 1, N);
6769
6758
  };
6770
6759
  Object.assign(n.keywords, g), n.exports.PARAMS_CONTAINS.push(v);
6771
- const y = n.contains.find(($) => $.scope === "attr"), l = Object.assign(
6760
+ const y = n.contains.find((z) => z.scope === "attr"), l = Object.assign(
6772
6761
  {},
6773
6762
  y,
6774
6763
  { match: o.concat(r, o.lookahead(/\s*\?:/)) }
@@ -6787,8 +6776,8 @@ function Jn(e) {
6787
6776
  l
6788
6777
  // Added for optional property assignment highlighting
6789
6778
  ]), m(n, "shebang", e.SHEBANG()), m(n, "use_strict", c);
6790
- const O = n.contains.find(($) => $.label === "func.def");
6791
- return O.relevance = 0, Object.assign(n, {
6779
+ const R = n.contains.find((z) => z.label === "func.def");
6780
+ return R.relevance = 0, Object.assign(n, {
6792
6781
  name: "TypeScript",
6793
6782
  aliases: [
6794
6783
  "ts",
@@ -7094,13 +7083,13 @@ function Qn(e) {
7094
7083
  excludeEnd: !0,
7095
7084
  keywords: o,
7096
7085
  relevance: 0
7097
- }, O = {
7086
+ }, R = {
7098
7087
  begin: /\{/,
7099
7088
  end: /\}/,
7100
7089
  contains: [l],
7101
7090
  illegal: "\\n",
7102
7091
  relevance: 0
7103
- }, $ = {
7092
+ }, z = {
7104
7093
  begin: "\\[",
7105
7094
  end: "\\]",
7106
7095
  contains: [l],
@@ -7182,8 +7171,8 @@ function Qn(e) {
7182
7171
  begin: e.C_NUMBER_RE + "\\b",
7183
7172
  relevance: 0
7184
7173
  },
7185
- O,
7186
- $,
7174
+ R,
7175
+ z,
7187
7176
  f,
7188
7177
  s
7189
7178
  ], N = [...X];
@@ -7198,20 +7187,20 @@ const fn = {
7198
7187
  bash: en,
7199
7188
  sh: en,
7200
7189
  shell: en,
7201
- css: ra,
7190
+ css: qr,
7202
7191
  go: Gn,
7203
7192
  golang: Gn,
7204
- java: aa,
7193
+ java: Vr,
7205
7194
  javascript: Yn,
7206
7195
  js: Yn,
7207
- json: da,
7196
+ json: ta,
7208
7197
  markdown: Xn,
7209
7198
  md: Xn,
7210
7199
  python: qn,
7211
7200
  py: qn,
7212
7201
  rust: Vn,
7213
7202
  rs: Vn,
7214
- sql: fa,
7203
+ sql: na,
7215
7204
  typescript: Jn,
7216
7205
  ts: Jn,
7217
7206
  xml: jn,
@@ -7232,24 +7221,24 @@ function ti(e) {
7232
7221
  `)[0] ?? ""), n = ((o == null ? void 0 : o[2]) ?? "").toLowerCase();
7233
7222
  return n && fn[n] ? n : "";
7234
7223
  }
7235
- function ha(e, o) {
7224
+ function oa(e, o) {
7236
7225
  const n = o && fn[o] ? o : "";
7237
7226
  try {
7238
7227
  return n ? on.highlight(e, { language: n, ignoreIllegals: !0 }).value : on.highlightAuto(e).value;
7239
7228
  } catch {
7240
- return ba(e);
7229
+ return aa(e);
7241
7230
  }
7242
7231
  }
7243
- function ma(e) {
7232
+ function ra(e) {
7244
7233
  return e.split(`
7245
7234
  `).filter((o) => o.trim().length > 0).filter((o) => !/^\s*\|?\s*(:?-+:?\s*\|\s*)+(:?-+:?)(\s*\|)?\s*$/.test(o)).map(
7246
7235
  (o) => o.replace(/^\s*\|/, "").replace(/\|\s*$/, "").split("|").map((n) => n.trim())
7247
7236
  );
7248
7237
  }
7249
- function ba(e) {
7238
+ function aa(e) {
7250
7239
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
7251
7240
  }
7252
- function pa(e, o, n) {
7241
+ function sa(e, o, n) {
7253
7242
  if (e.length <= 1) return e.slice();
7254
7243
  const [r, ...a] = e, f = a.map((g) => g[o] ?? ""), s = f.length > 0 && f.every((g) => g.trim() !== "" && !Number.isNaN(Number(g))), c = n === "asc" ? 1 : -1, u = a.slice().sort((g, v) => {
7255
7244
  const m = g[o] ?? "", y = v[o] ?? "";
@@ -7257,26 +7246,25 @@ function pa(e, o, n) {
7257
7246
  });
7258
7247
  return [r, ...u];
7259
7248
  }
7260
- const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d", "fill"], xa = ["data-node-id", "onClick", "onDblclick", "onContextmenu", "onMouseenter", "onMouseleave"], _a = ["src", "width", "height", "alt"], wa = ["onDblclick"], Na = {
7249
+ const la = ["viewBox", "width", "height"], ca = { class: "zm-edges" }, ua = ["d", "fill"], da = ["data-node-id", "onClick", "onDblclick", "onContextmenu", "onMouseenter", "onMouseleave"], fa = ["src", "width", "height", "alt"], ga = ["onDblclick"], ha = {
7261
7250
  key: 0,
7262
7251
  class: "zm-rich-code"
7263
- }, ka = ["innerHTML"], Sa = {
7252
+ }, ma = ["innerHTML"], pa = {
7264
7253
  key: 1,
7265
7254
  class: "zm-rich-table"
7266
- }, Ma = ["onClick"], Ta = {
7255
+ }, ba = ["onClick"], va = {
7267
7256
  class: "zm-rich-sort-mark",
7268
7257
  "aria-hidden": "true"
7269
- }, Aa = {
7258
+ }, ya = {
7270
7259
  key: 2,
7271
7260
  class: "zm-text"
7272
- }, Ra = { class: "zm-text-label" }, Ca = ["href", "title"], Oa = ["title", "onClick"], Ia = ["title"], La = ["title", "onClick"], Da = ["onClick"], Ba = ["onMousedown"], $a = ["onClick"], za = {
7261
+ }, Ea = { class: "zm-text-label" }, xa = ["href", "title"], _a = ["title", "onClick"], wa = ["title"], Na = ["title", "onClick"], ka = ["onClick"], Sa = ["onMousedown"], Ma = ["onClick"], Ta = {
7273
7262
  key: 0,
7274
7263
  class: "zm-toolbar"
7275
- }, Pa = ["src"], Ua = ["src"], Ha = { class: "zm-tb-tip" }, Ye = 24, it = 400, Ue = 160, Wa = /* @__PURE__ */ rn({
7264
+ }, Aa = ["src"], Ra = ["src"], Ca = { class: "zm-tb-tip" }, Ye = 24, it = 400, Ue = 160, Oa = /* @__PURE__ */ rn({
7276
7265
  __name: "MindMap",
7277
7266
  props: {
7278
7267
  data: {},
7279
- readonly: { type: Boolean, default: !1 },
7280
7268
  theme: {},
7281
7269
  previewMode: { type: Boolean, default: !1 },
7282
7270
  markdown: {},
@@ -7284,7 +7272,7 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7284
7272
  },
7285
7273
  emits: ["change", "select", "edit-note", "markdownChange"],
7286
7274
  setup(e, { expose: o, emit: n }) {
7287
- const r = e, a = n, f = ie(null), s = ie(null), c = ie(""), u = ie(null), g = ie(/* @__PURE__ */ new Set()), v = ie(null), m = ie(""), y = ie(/* @__PURE__ */ new Map()), l = ie(We(r.data)), O = ie({}), $ = ie({}), X = ie(r.markdown !== void 0);
7275
+ const r = e, a = n, f = ie(null), s = ie(null), c = ie(""), u = ie(null), g = ie(/* @__PURE__ */ new Set()), v = ie(null), m = ie(""), y = ie(/* @__PURE__ */ new Map()), l = ie(We(r.data)), R = ie({}), z = ie({}), X = ie(r.markdown !== void 0);
7288
7276
  let N = !1;
7289
7277
  At(
7290
7278
  () => r.markdown,
@@ -7328,31 +7316,31 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7328
7316
  const i = Y(l.value, t);
7329
7317
  !i || !i.image || (delete i.image, E(), w(), a("change", l.value));
7330
7318
  }
7331
- function pe(t, i) {
7319
+ function be(t, i) {
7332
7320
  const d = i.trim();
7333
7321
  if (!Y(l.value, t)) return;
7334
7322
  if (!d) {
7335
7323
  ne(t);
7336
7324
  return;
7337
7325
  }
7338
- const b = new Image();
7339
- b.onload = () => {
7326
+ const p = new Image();
7327
+ p.onload = () => {
7340
7328
  const k = Y(l.value, t);
7341
7329
  if (!k) return;
7342
- const A = b.naturalWidth && b.naturalHeight ? b.naturalWidth / b.naturalHeight : 1, z = P(
7343
- b.naturalWidth || Ue,
7330
+ const A = p.naturalWidth && p.naturalHeight ? p.naturalWidth / p.naturalHeight : 1, $ = P(
7331
+ p.naturalWidth || Ue,
7344
7332
  Ye,
7345
7333
  it
7346
- ), Q = Math.round(z / A);
7334
+ ), Q = Math.round($ / A);
7347
7335
  k.image = {
7348
7336
  src: d,
7349
- naturalW: b.naturalWidth || z,
7350
- naturalH: b.naturalHeight || Q,
7351
- width: z,
7337
+ naturalW: p.naturalWidth || $,
7338
+ naturalH: p.naturalHeight || Q,
7339
+ width: $,
7352
7340
  height: Q
7353
7341
  }, E(), w(), a("change", l.value);
7354
- }, b.onerror = () => {
7355
- }, b.src = d;
7342
+ }, p.onerror = () => {
7343
+ }, p.src = d;
7356
7344
  }
7357
7345
  function P(t, i, d) {
7358
7346
  return Math.min(d, Math.max(i, t));
@@ -7361,35 +7349,35 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7361
7349
  const d = new FileReader();
7362
7350
  d.onload = () => {
7363
7351
  if (typeof d.result != "string") return;
7364
- const _ = d.result, b = new window.Image();
7365
- b.onload = () => {
7366
- const k = b.naturalWidth || Ue, A = b.naturalHeight || Ue, z = P(k, Ye, Ue), Q = P(Math.round(A * z / k), Ye, it);
7367
- i({ src: _, naturalW: k, naturalH: A, width: z, height: Q });
7368
- }, b.onerror = () => {
7352
+ const _ = d.result, p = new window.Image();
7353
+ p.onload = () => {
7354
+ const k = p.naturalWidth || Ue, A = p.naturalHeight || Ue, $ = P(k, Ye, Ue), Q = P(Math.round(A * $ / k), Ye, it);
7355
+ i({ src: _, naturalW: k, naturalH: A, width: $, height: Q });
7356
+ }, p.onerror = () => {
7369
7357
  i({ src: _, naturalW: Ue, naturalH: Ue, width: Ue, height: Ue });
7370
- }, b.src = _;
7358
+ }, p.src = _;
7371
7359
  }, d.readAsDataURL(t);
7372
7360
  }
7373
- function fe(t) {
7361
+ function de(t) {
7374
7362
  const i = document.createElement("input");
7375
7363
  i.type = "file", i.accept = "image/*", i.style.display = "none", i.onchange = () => {
7376
7364
  var _;
7377
7365
  const d = (_ = i.files) == null ? void 0 : _[0];
7378
- d && (re(d, (b) => te(t, b)), document.body.removeChild(i));
7366
+ d && (re(d, (p) => te(t, p)), document.body.removeChild(i));
7379
7367
  }, document.body.appendChild(i), i.click();
7380
7368
  }
7381
- function ce(t, i) {
7369
+ function le(t, i) {
7382
7370
  const d = i.trim(), _ = Y(l.value, t);
7383
7371
  _ && (d ? _.link = { url: d } : delete _.link, E(), w(), a("change", l.value));
7384
7372
  }
7385
- function ue(t) {
7386
- ce(t, "");
7373
+ function ce(t) {
7374
+ le(t, "");
7387
7375
  }
7388
7376
  function me(t, i) {
7389
7377
  const d = Y(l.value, t);
7390
7378
  d && (i ? d.note = { text: i } : delete d.note, E(), w(), a("change", l.value));
7391
7379
  }
7392
- function p(t) {
7380
+ function b(t) {
7393
7381
  me(t, "");
7394
7382
  }
7395
7383
  function M(t, i) {
@@ -7398,7 +7386,7 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7398
7386
  }
7399
7387
  const x = ie(null);
7400
7388
  function U(t, i) {
7401
- r.readonly || (t.preventDefault(), t.stopPropagation(), u.value = i.id, a("select", Y(l.value, i.id)), x.value = { nodeId: i.id, x: t.clientX, y: t.clientY });
7389
+ r.previewMode || (t.preventDefault(), t.stopPropagation(), u.value = i.id, a("select", Y(l.value, i.id)), x.value = { nodeId: i.id, x: t.clientX, y: t.clientY });
7402
7390
  }
7403
7391
  function q() {
7404
7392
  x.value = null;
@@ -7406,19 +7394,19 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7406
7394
  function ae() {
7407
7395
  var i;
7408
7396
  const t = (i = x.value) == null ? void 0 : i.nodeId;
7409
- t && fe(t);
7397
+ t && de(t);
7410
7398
  }
7411
- function be() {
7412
- var _, b, k;
7399
+ function pe() {
7400
+ var _, p, k;
7413
7401
  const t = (_ = x.value) == null ? void 0 : _.nodeId;
7414
7402
  if (!t) return;
7415
- const i = ((k = (b = Y(l.value, t)) == null ? void 0 : b.link) == null ? void 0 : k.url) ?? "", d = window.prompt("输入链接 URL(留空取消)", i);
7416
- d !== null && ce(t, d);
7403
+ const i = ((k = (p = Y(l.value, t)) == null ? void 0 : p.link) == null ? void 0 : k.url) ?? "", d = window.prompt("输入链接 URL(留空取消)", i);
7404
+ d !== null && le(t, d);
7417
7405
  }
7418
7406
  function we() {
7419
7407
  var i;
7420
7408
  const t = (i = x.value) == null ? void 0 : i.nodeId;
7421
- t && ue(t);
7409
+ t && ce(t);
7422
7410
  }
7423
7411
  function ye() {
7424
7412
  var i;
@@ -7428,7 +7416,7 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7428
7416
  function Ne() {
7429
7417
  var i;
7430
7418
  const t = (i = x.value) == null ? void 0 : i.nodeId;
7431
- t && p(t);
7419
+ t && b(t);
7432
7420
  }
7433
7421
  function vt() {
7434
7422
  var i;
@@ -7439,19 +7427,19 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7439
7427
  var Z, Te;
7440
7428
  const t = (Z = x.value) == null ? void 0 : Z.nodeId;
7441
7429
  if (!t) return;
7442
- const i = (Te = Y(l.value, t)) == null ? void 0 : Te.richContent, d = (i == null ? void 0 : i.kind) === "code" ? ei(i.raw) : "", _ = (i == null ? void 0 : i.kind) === "code" && i.lang || "", b = _ ? "```" + _ + `
7430
+ const i = (Te = Y(l.value, t)) == null ? void 0 : Te.richContent, d = (i == null ? void 0 : i.kind) === "code" ? ei(i.raw) : "", _ = (i == null ? void 0 : i.kind) === "code" && i.lang || "", p = _ ? "```" + _ + `
7443
7431
  ` : "```\n", A = window.prompt(
7444
7432
  "输入代码块内容(用 ```lang 包裹;留空取消)",
7445
- d ? b + d + (d.endsWith("```") ? "" : "\n```") : b + "// 你的代码" + "\n```"
7433
+ d ? p + d + (d.endsWith("```") ? "" : "\n```") : p + "// 你的代码" + "\n```"
7446
7434
  );
7447
7435
  if (A === null) return;
7448
- const z = A.trim();
7449
- if (!z) {
7436
+ const $ = A.trim();
7437
+ if (!$) {
7450
7438
  M(t, null);
7451
7439
  return;
7452
7440
  }
7453
- const Q = /^```([^\s`]*)/.exec(z), h = Q ? Q[1] : void 0;
7454
- M(t, { kind: "code", raw: z, lang: h });
7441
+ const Q = /^```([^\s`]*)/.exec($), h = Q ? Q[1] : void 0;
7442
+ M(t, { kind: "code", raw: $, lang: h });
7455
7443
  }
7456
7444
  function yt() {
7457
7445
  var i;
@@ -7459,17 +7447,17 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7459
7447
  t && M(t, null);
7460
7448
  }
7461
7449
  function Et() {
7462
- var A, z;
7450
+ var A, $;
7463
7451
  const t = (A = x.value) == null ? void 0 : A.nodeId;
7464
7452
  if (!t) return;
7465
- const i = (z = Y(l.value, t)) == null ? void 0 : z.richContent, d = (i == null ? void 0 : i.kind) === "table" ? i.raw : "", b = window.prompt(
7453
+ const i = ($ = Y(l.value, t)) == null ? void 0 : $.richContent, d = (i == null ? void 0 : i.kind) === "table" ? i.raw : "", p = window.prompt(
7466
7454
  "输入 markdown 表格(每行以 | 分隔;留空取消)",
7467
7455
  d || `| 列1 | 列2 | 列3 |
7468
7456
  | --- | --- | --- |
7469
7457
  | a | b | c |`
7470
7458
  );
7471
- if (b === null) return;
7472
- const k = b.trim();
7459
+ if (p === null) return;
7460
+ const k = p.trim();
7473
7461
  if (!k) {
7474
7462
  M(t, null);
7475
7463
  return;
@@ -7482,32 +7470,32 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7482
7470
  t && M(t, null);
7483
7471
  }
7484
7472
  function xt(t) {
7485
- r.readonly || a("edit-note", t);
7473
+ r.previewMode || a("edit-note", t);
7486
7474
  }
7487
7475
  function Ft(t, i = 60) {
7488
7476
  const d = t.replace(/\s+/g, " ").trim();
7489
7477
  return d.length <= i ? d || "点击编辑笔记" : d.slice(0, i) + "…";
7490
7478
  }
7491
7479
  function Ge(t) {
7492
- var b;
7493
- if (r.readonly || s.value) return;
7480
+ var p;
7481
+ if (r.previewMode || s.value) return;
7494
7482
  const i = t.target;
7495
7483
  if (i && (i.tagName === "INPUT" || i.tagName === "TEXTAREA" || i.isContentEditable))
7496
7484
  return;
7497
7485
  const d = u.value;
7498
7486
  if (!d) return;
7499
- const _ = (b = t.clipboardData) == null ? void 0 : b.items;
7487
+ const _ = (p = t.clipboardData) == null ? void 0 : p.items;
7500
7488
  if (_)
7501
7489
  for (let k = 0; k < _.length; k++) {
7502
7490
  const A = _[k];
7503
7491
  if (A.kind === "file" && A.type.startsWith("image/")) {
7504
- const z = A.getAsFile();
7505
- if (!z) continue;
7492
+ const $ = A.getAsFile();
7493
+ if (!$) continue;
7506
7494
  t.preventDefault();
7507
7495
  const Q = Y(l.value, d);
7508
7496
  if (Q != null && Q.image && !window.confirm("该节点已有图片,要用剪贴板里的图片替换吗?"))
7509
7497
  return;
7510
- re(z, (h) => te(d, h));
7498
+ re($, (h) => te(d, h));
7511
7499
  return;
7512
7500
  }
7513
7501
  }
@@ -7517,15 +7505,15 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7517
7505
  }), an(() => {
7518
7506
  window.removeEventListener("paste", Ge);
7519
7507
  });
7520
- const ze = ie(null), ke = xe(() => {
7508
+ const $e = ie(null), ke = xe(() => {
7521
7509
  var t;
7522
- return ((t = ze.value) == null ? void 0 : t.nodeId) ?? null;
7510
+ return ((t = $e.value) == null ? void 0 : t.nodeId) ?? null;
7523
7511
  });
7524
7512
  function Gt(t, i) {
7525
7513
  if (!i.image) return;
7526
7514
  t.preventDefault(), t.stopPropagation();
7527
- const d = i.image.naturalW || i.image.width, _ = i.image.naturalH || i.image.height, b = _ > 0 ? _ / d : 1;
7528
- ze.value = {
7515
+ const d = i.image.naturalW || i.image.width, _ = i.image.naturalH || i.image.height, p = _ > 0 ? _ / d : 1;
7516
+ $e.value = {
7529
7517
  nodeId: i.id,
7530
7518
  startX: t.clientX,
7531
7519
  startY: t.clientY,
@@ -7533,29 +7521,29 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7533
7521
  startH: i.image.height,
7534
7522
  naturalW: d,
7535
7523
  naturalH: _,
7536
- ratio: b,
7524
+ ratio: p,
7537
7525
  pendingW: i.image.width,
7538
7526
  pendingH: i.image.height
7539
7527
  }, window.addEventListener("mousemove", Ve), window.addEventListener("mouseup", D);
7540
7528
  }
7541
7529
  function Ve(t) {
7542
7530
  var Q, h;
7543
- const i = ze.value;
7531
+ const i = $e.value;
7544
7532
  if (!i) return;
7545
- const d = G.scale.value || 1, _ = t.clientX - i.startX, b = P(i.startW + _ / d, Ye, it), k = P(b * i.ratio, Ye, it);
7546
- i.pendingW = b, i.pendingH = k;
7533
+ const d = G.scale.value || 1, _ = t.clientX - i.startX, p = P(i.startW + _ / d, Ye, it), k = P(p * i.ratio, Ye, it);
7534
+ i.pendingW = p, i.pendingH = k;
7547
7535
  const A = (Q = f.value) == null ? void 0 : Q.querySelector(
7548
7536
  `[data-node-id="${i.nodeId}"] .zm-node-img`
7549
7537
  );
7550
- A && (A.style.width = `${b}px`, A.style.height = `${k}px`);
7551
- const z = (h = f.value) == null ? void 0 : h.querySelector(
7538
+ A && (A.style.width = `${p}px`, A.style.height = `${k}px`);
7539
+ const $ = (h = f.value) == null ? void 0 : h.querySelector(
7552
7540
  `[data-node-id="${i.nodeId}"]`
7553
7541
  );
7554
- z && (z.style.minWidth = `${Math.max(80, Math.ceil(b + 28))}px`, z.style.height = `${Math.ceil(k + 8 + 30)}px`);
7542
+ $ && ($.style.minWidth = `${Math.max(80, Math.ceil(p + 28))}px`, $.style.height = `${Math.ceil(k + 8 + 30)}px`);
7555
7543
  }
7556
7544
  function D() {
7557
- const t = ze.value;
7558
- if (window.removeEventListener("mousemove", Ve), window.removeEventListener("mouseup", D), ze.value = null, !t) return;
7545
+ const t = $e.value;
7546
+ if (window.removeEventListener("mousemove", Ve), window.removeEventListener("mouseup", D), $e.value = null, !t) return;
7559
7547
  const i = Y(l.value, t.nodeId);
7560
7548
  !i || !i.image || (te(t.nodeId, {
7561
7549
  src: i.image.src,
@@ -7563,10 +7551,10 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7563
7551
  naturalH: i.image.naturalH,
7564
7552
  width: t.pendingW,
7565
7553
  height: t.pendingH
7566
- }), u.value = t.nodeId, a("select", i), de = !0);
7554
+ }), u.value = t.nodeId, a("select", i), ue = !0);
7567
7555
  }
7568
7556
  const Je = ie(null);
7569
- let de = !1;
7557
+ let ue = !1;
7570
7558
  function ee(t) {
7571
7559
  Je.value = t;
7572
7560
  }
@@ -7585,25 +7573,25 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7585
7573
  function W() {
7586
7574
  const t = document.querySelectorAll(".zm-rich"), i = {}, d = {};
7587
7575
  t.forEach((_) => {
7588
- let b = _, k = null;
7589
- for (; b && !k; )
7590
- k = b.getAttribute("data-node-id"), b = b.parentElement;
7576
+ let p = _, k = null;
7577
+ for (; p && !k; )
7578
+ k = p.getAttribute("data-node-id"), p = p.parentElement;
7591
7579
  if (!k) return;
7592
- const A = _.offsetHeight, z = _.scrollWidth, Q = Math.round(A * 2) / 2, h = Math.round(z * 2) / 2;
7593
- i[k] = Q, d[k] = h, O.value[k], $.value[k];
7594
- }), O.value = i, $.value = d;
7580
+ const A = _.offsetHeight, $ = _.scrollWidth, Q = Math.round(A * 2) / 2, h = Math.round($ * 2) / 2;
7581
+ i[k] = Q, d[k] = h, R.value[k], z.value[k];
7582
+ }), R.value = i, z.value = d;
7595
7583
  }
7596
7584
  const F = xe(() => {
7597
- var t, i, d, _, b, k, A, z, Q, h;
7585
+ var t, i, d, _, p, k, A, $, Q, h;
7598
7586
  return {
7599
7587
  rootBg: ((t = r.theme) == null ? void 0 : t.rootBg) ?? "#1f2937",
7600
7588
  rootText: ((i = r.theme) == null ? void 0 : i.rootText) ?? "#ffffff",
7601
7589
  branchBg: ((d = r.theme) == null ? void 0 : d.branchBg) ?? "#ffffff",
7602
7590
  branchText: ((_ = r.theme) == null ? void 0 : _.branchText) ?? "#1f2937",
7603
- lineColor: ((b = r.theme) == null ? void 0 : b.lineColor) ?? "#94a3b8",
7591
+ lineColor: ((p = r.theme) == null ? void 0 : p.lineColor) ?? "#94a3b8",
7604
7592
  bgColor: ((k = r.theme) == null ? void 0 : k.bgColor) ?? "#f8fafc",
7605
7593
  fontSize: ((A = r.theme) == null ? void 0 : A.fontSize) ?? 14,
7606
- lineWidthStart: ((z = r.theme) == null ? void 0 : z.lineWidthStart) ?? 2.2,
7594
+ lineWidthStart: (($ = r.theme) == null ? void 0 : $.lineWidthStart) ?? 2.2,
7607
7595
  lineWidthEnd: ((Q = r.theme) == null ? void 0 : Q.lineWidthEnd) ?? 0.8,
7608
7596
  rainbowBranch: ((h = r.theme) == null ? void 0 : h.rainbowBranch) ?? !1
7609
7597
  };
@@ -7635,10 +7623,10 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7635
7623
  return T.lineWidthStart + (T.lineWidthEnd - T.lineWidthStart) * i;
7636
7624
  }
7637
7625
  function Ci(t, i, d, _) {
7638
- const b = 1 - t, k = b * b * b * i.x + 3 * b * b * t * d.x1 + 3 * b * t * t * d.x2 + t * t * t * _.x, A = b * b * b * i.y + 3 * b * b * t * d.y1 + 3 * b * t * t * d.y2 + t * t * t * _.y;
7626
+ const p = 1 - t, k = p * p * p * i.x + 3 * p * p * t * d.x1 + 3 * p * t * t * d.x2 + t * t * t * _.x, A = p * p * p * i.y + 3 * p * p * t * d.y1 + 3 * p * t * t * d.y2 + t * t * t * _.y;
7639
7627
  return { x: k, y: A };
7640
7628
  }
7641
- function Oi(t, i, d, _, b = 32, k = "curve", A = "right") {
7629
+ function Oi(t, i, d, _, p = 32, k = "curve", A = "right") {
7642
7630
  if (k === "curve") {
7643
7631
  let Ie;
7644
7632
  if (A === "right" || A === "left") {
@@ -7652,22 +7640,22 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7652
7640
  const se = 1 - j, Be = -3 * se * se * t.x + 3 * (se * se - 2 * se * j) * Ie.x1 + 3 * (2 * se * j - j * j) * Ie.x2 + 3 * j * j * i.x, et = -3 * se * se * t.y + 3 * (se * se - 2 * se * j) * Ie.y1 + 3 * (2 * se * j - j * j) * Ie.y2 + 3 * j * j * i.y;
7653
7641
  return { dx: Be, dy: et };
7654
7642
  }, gt = [], Jt = [];
7655
- for (let j = 0; j <= b; j++) {
7656
- const se = j / b, Be = j === 0 ? t : j === b ? i : Ci(se, t, Ie, i), et = Tn(se);
7643
+ for (let j = 0; j <= p; j++) {
7644
+ const se = j / p, Be = j === 0 ? t : j === p ? i : Ci(se, t, Ie, i), et = Tn(se);
7657
7645
  let Mt = Math.hypot(et.dx, et.dy);
7658
7646
  Mt < 1e-6 && (Mt = 1);
7659
7647
  const An = -et.dy / Mt, Rn = et.dx / Mt, Tt = (d + (_ - d) * se) / 2;
7660
7648
  gt.push({ x: Be.x + An * Tt, y: Be.y + Rn * Tt }), Jt.push({ x: Be.x - An * Tt, y: Be.y - Rn * Tt });
7661
7649
  }
7662
7650
  let St = `M ${gt[0].x.toFixed(2)} ${gt[0].y.toFixed(2)}`;
7663
- for (let j = 1; j <= b; j++) St += ` L ${gt[j].x.toFixed(2)} ${gt[j].y.toFixed(2)}`;
7664
- for (let j = b; j >= 0; j--) St += ` L ${Jt[j].x.toFixed(2)} ${Jt[j].y.toFixed(2)}`;
7651
+ for (let j = 1; j <= p; j++) St += ` L ${gt[j].x.toFixed(2)} ${gt[j].y.toFixed(2)}`;
7652
+ for (let j = p; j >= 0; j--) St += ` L ${Jt[j].x.toFixed(2)} ${Jt[j].y.toFixed(2)}`;
7665
7653
  return St += " Z", St;
7666
7654
  }
7667
- const z = i.x - t.x, Q = i.y - t.y;
7668
- let h = Math.hypot(z, Q);
7655
+ const $ = i.x - t.x, Q = i.y - t.y;
7656
+ let h = Math.hypot($, Q);
7669
7657
  h < 1e-6 && (h = 1);
7670
- const Z = -Q / h, Te = z / h, Oe = d / 2, Ee = _ / 2, ct = { x: t.x + Z * Oe, y: t.y + Te * Oe }, ut = { x: t.x - Z * Oe, y: t.y - Te * Oe }, dt = { x: i.x - Z * Ee, y: i.y - Te * Ee }, ft = { x: i.x + Z * Ee, y: i.y + Te * Ee };
7658
+ const Z = -Q / h, Te = $ / h, Oe = d / 2, Ee = _ / 2, ct = { x: t.x + Z * Oe, y: t.y + Te * Oe }, ut = { x: t.x - Z * Oe, y: t.y - Te * Oe }, dt = { x: i.x - Z * Ee, y: i.y - Te * Ee }, ft = { x: i.x + Z * Ee, y: i.y + Te * Ee };
7671
7659
  return `M ${ct.x.toFixed(2)} ${ct.y.toFixed(2)} L ${ft.x.toFixed(2)} ${ft.y.toFixed(2)} L ${dt.x.toFixed(2)} ${dt.y.toFixed(2)} L ${ut.x.toFixed(2)} ${ut.y.toFixed(2)} Z`;
7672
7660
  }
7673
7661
  const wt = xe(() => _e.value.root.children), Ii = mt[0].colors, hn = xe(
@@ -7676,17 +7664,17 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7676
7664
  const t = /* @__PURE__ */ new Map();
7677
7665
  if (!T.rainbowBranch) return t;
7678
7666
  const i = r.lineColors, d = i && i.length > 0 ? i : hn.value.colors.length > 0 ? hn.value.colors : Ii;
7679
- for (let b = 0; b < wt.value.length; b++) {
7680
- const k = wt.value[b];
7681
- t.set(k.id, d[b % d.length]);
7667
+ for (let p = 0; p < wt.value.length; p++) {
7668
+ const k = wt.value[p];
7669
+ t.set(k.id, d[p % d.length]);
7682
7670
  }
7683
- const _ = (b, k) => {
7684
- t.set(b.id, k);
7685
- for (const A of b.children) _(A, k);
7671
+ const _ = (p, k) => {
7672
+ t.set(p.id, k);
7673
+ for (const A of p.children) _(A, k);
7686
7674
  };
7687
- for (let b = 0; b < wt.value.length; b++) {
7688
- const k = wt.value[b];
7689
- _(k, d[b % d.length]);
7675
+ for (let p = 0; p < wt.value.length; p++) {
7676
+ const k = wt.value[p];
7677
+ _(k, d[p % d.length]);
7690
7678
  }
7691
7679
  return t;
7692
7680
  });
@@ -7713,7 +7701,7 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7713
7701
  }
7714
7702
  return F.value.branchText;
7715
7703
  }
7716
- function $i(t) {
7704
+ function zi(t) {
7717
7705
  const i = I(t.id);
7718
7706
  if (i.borderColor) return i.borderColor;
7719
7707
  if (t.isRoot) return F.value.rootBg;
@@ -7723,21 +7711,21 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7723
7711
  }
7724
7712
  return F.value.lineColor;
7725
7713
  }
7726
- function zi(t) {
7714
+ function $i(t) {
7727
7715
  return I(t.id).fontWeight ?? (t.isRoot ? 600 : 400);
7728
7716
  }
7729
7717
  function Pi(t, i) {
7730
- const d = t.replace("#", ""), _ = d.length === 6 ? d : d.split("").map((z) => z + z).join(""), b = parseInt(_.slice(0, 2), 16), k = parseInt(_.slice(2, 4), 16), A = parseInt(_.slice(4, 6), 16);
7731
- return `rgba(${b}, ${k}, ${A}, ${i})`;
7718
+ const d = t.replace("#", ""), _ = d.length === 6 ? d : d.split("").map(($) => $ + $).join(""), p = parseInt(_.slice(0, 2), 16), k = parseInt(_.slice(2, 4), 16), A = parseInt(_.slice(4, 6), 16);
7719
+ return `rgba(${p}, ${k}, ${A}, ${i})`;
7732
7720
  }
7733
7721
  function mn(t, i) {
7734
- const d = t.replace("#", ""), _ = d.length === 6 ? d : d.split("").map((z) => z + z).join(""), b = Math.round(parseInt(_.slice(0, 2), 16) * (1 - i)), k = Math.round(parseInt(_.slice(2, 4), 16) * (1 - i)), A = Math.round(parseInt(_.slice(4, 6), 16) * (1 - i));
7735
- return `rgb(${b}, ${k}, ${A})`;
7722
+ const d = t.replace("#", ""), _ = d.length === 6 ? d : d.split("").map(($) => $ + $).join(""), p = Math.round(parseInt(_.slice(0, 2), 16) * (1 - i)), k = Math.round(parseInt(_.slice(2, 4), 16) * (1 - i)), A = Math.round(parseInt(_.slice(4, 6), 16) * (1 - i));
7723
+ return `rgb(${p}, ${k}, ${A})`;
7736
7724
  }
7737
7725
  const G = Wo({ getContainer: () => f.value });
7738
7726
  G.setOnMarqueeEnd(no), Go({
7739
7727
  isEditing: () => s.value !== null,
7740
- isReadonly: () => r.readonly,
7728
+ isReadonly: () => r.previewMode,
7741
7729
  getSelectedId: () => u.value,
7742
7730
  getRootId: () => l.value.id,
7743
7731
  // If nothing is selected, default Tab/Enter to the root so the user
@@ -7763,21 +7751,21 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7763
7751
  });
7764
7752
  const _e = xe(() => {
7765
7753
  const t = We(l.value);
7766
- return pn(t), Ro(t, {
7754
+ return bn(t), Ro(t, {
7767
7755
  mode: T.layoutMode,
7768
7756
  baseFontSize: F.value.fontSize,
7769
- richHeights: O.value,
7770
- richWidths: $.value
7757
+ richHeights: R.value,
7758
+ richWidths: z.value
7771
7759
  });
7772
- }), bn = ie([]), Zt = xe(() => (Ce.value, bn.value));
7760
+ }), pn = ie([]), Zt = xe(() => (Ce.value, pn.value));
7773
7761
  At(
7774
7762
  _e,
7775
7763
  (t) => {
7776
7764
  const i = [], d = (_) => {
7777
7765
  i.push(_);
7778
- for (const b of _.children) d(b);
7766
+ for (const p of _.children) d(p);
7779
7767
  };
7780
- d(t.root), bn.value = i;
7768
+ d(t.root), pn.value = i;
7781
7769
  },
7782
7770
  { immediate: !0 }
7783
7771
  );
@@ -7790,13 +7778,13 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7790
7778
  }), Hi = xe(
7791
7779
  () => `${_e.value.vbX} ${_e.value.vbY} ${_e.value.vbW} ${_e.value.vbH}`
7792
7780
  );
7793
- function pn(t) {
7781
+ function bn(t) {
7794
7782
  if (g.value.has(t.id)) {
7795
7783
  t.children = [], t.collapsed = !0;
7796
7784
  return;
7797
7785
  }
7798
7786
  t.collapsed = !1;
7799
- for (const i of t.children) pn(i);
7787
+ for (const i of t.children) bn(i);
7800
7788
  }
7801
7789
  function lt(t) {
7802
7790
  const i = Y(l.value, t);
@@ -7816,7 +7804,7 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7816
7804
  s.value = null;
7817
7805
  }
7818
7806
  function Fi(t) {
7819
- if (r.readonly) return;
7807
+ if (r.previewMode) return;
7820
7808
  const i = Y(l.value, t);
7821
7809
  i != null && i.richContent && (v.value = t, m.value = i.richContent.raw, ve(() => {
7822
7810
  const d = document.querySelector(
@@ -7848,7 +7836,7 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7848
7836
  }
7849
7837
  function Yi(t, i) {
7850
7838
  const d = y.value.get(t);
7851
- return !d || i.length <= 1 ? i : pa(i, d.col, d.dir);
7839
+ return !d || i.length <= 1 ? i : sa(i, d.col, d.dir);
7852
7840
  }
7853
7841
  function Xi(t, i) {
7854
7842
  const d = y.value.get(t);
@@ -7859,7 +7847,7 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7859
7847
  i && (t.key === "z" || t.key === "Z") && !t.shiftKey ? (t.preventDefault(), Yt()) : (i && t.shiftKey && (t.key === "z" || t.key === "Z") || i && (t.key === "y" || t.key === "Y") && !t.shiftKey) && (t.preventDefault(), Xt());
7860
7848
  }
7861
7849
  function Qe(t) {
7862
- const i = $o(l.value, t, $t);
7850
+ const i = zo(l.value, t, zt);
7863
7851
  i && (E(), w(), a("change", l.value), ve(() => lt(i.id)));
7864
7852
  }
7865
7853
  function kt(t) {
@@ -7867,7 +7855,7 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7867
7855
  Qe(t);
7868
7856
  return;
7869
7857
  }
7870
- const i = zo(l.value, t, $t);
7858
+ const i = $o(l.value, t, zt);
7871
7859
  i && (E(), w(), a("change", l.value), ve(() => lt(i.id)));
7872
7860
  }
7873
7861
  function yn(t) {
@@ -7875,7 +7863,7 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7875
7863
  Qe(t);
7876
7864
  return;
7877
7865
  }
7878
- const i = Po(l.value, t, $t);
7866
+ const i = Po(l.value, t, zt);
7879
7867
  i && (E(), w(), a("change", l.value), ve(() => lt(i.id)));
7880
7868
  }
7881
7869
  function En(t) {
@@ -7894,26 +7882,26 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7894
7882
  function Vi(t, i) {
7895
7883
  const d = u.value ?? l.value.id, _ = Y(l.value, d);
7896
7884
  if (!_) return;
7897
- let b = null;
7885
+ let p = null;
7898
7886
  if (i === 1) {
7899
7887
  const k = Le(l.value, _.id);
7900
7888
  if (k) {
7901
- const A = k.children.findIndex((z) => z.id === _.id);
7902
- A >= 0 && A < k.children.length - 1 && (b = k.children[A + 1].id);
7889
+ const A = k.children.findIndex(($) => $.id === _.id);
7890
+ A >= 0 && A < k.children.length - 1 && (p = k.children[A + 1].id);
7903
7891
  }
7904
7892
  } else if (i === -1) {
7905
7893
  const k = Le(l.value, _.id);
7906
7894
  if (k) {
7907
- const A = k.children.findIndex((z) => z.id === _.id);
7908
- A > 0 && (b = k.children[A - 1].id);
7895
+ const A = k.children.findIndex(($) => $.id === _.id);
7896
+ A > 0 && (p = k.children[A - 1].id);
7909
7897
  }
7910
7898
  } else if (t === 1) {
7911
7899
  const k = Le(l.value, _.id);
7912
- k && (b = k.id);
7913
- } else t === -1 && _.children.length > 0 && (b = _.children[0].id);
7914
- if (b) {
7915
- u.value = b;
7916
- const k = Y(l.value, b);
7900
+ k && (p = k.id);
7901
+ } else t === -1 && _.children.length > 0 && (p = _.children[0].id);
7902
+ if (p) {
7903
+ u.value = p;
7904
+ const k = Y(l.value, p);
7917
7905
  k && a("select", k);
7918
7906
  }
7919
7907
  }
@@ -7942,12 +7930,12 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7942
7930
  return;
7943
7931
  }
7944
7932
  if (t.button !== 0) return;
7945
- const d = f.value.getBoundingClientRect(), _ = (t.clientX - d.left - G.offsetX.value) / G.scale.value, b = (t.clientY - d.top - G.offsetY.value) / G.scale.value;
7946
- G.startMarquee(_, b);
7933
+ const d = f.value.getBoundingClientRect(), _ = (t.clientX - d.left - G.offsetX.value) / G.scale.value, p = (t.clientY - d.top - G.offsetY.value) / G.scale.value;
7934
+ G.startMarquee(_, p);
7947
7935
  }
7948
7936
  function to(t) {
7949
- if (de) {
7950
- de = !1;
7937
+ if (ue) {
7938
+ ue = !1;
7951
7939
  return;
7952
7940
  }
7953
7941
  const i = t.target;
@@ -7959,10 +7947,10 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7959
7947
  const t = G.marquee;
7960
7948
  if (t.width < 4 && t.height < 4)
7961
7949
  return;
7962
- const i = t.x, d = t.y, _ = t.x + t.width, b = t.y + t.height, k = [];
7950
+ const i = t.x, d = t.y, _ = t.x + t.width, p = t.y + t.height, k = [];
7963
7951
  for (const A of Zt.value) {
7964
- const z = A.width / 2, Q = A.height / 2, h = A.x - z, Z = A.x + z, Te = A.y - Q, Oe = A.y + Q;
7965
- h <= _ && Z >= i && Te <= b && Oe >= d && k.push(A.id);
7952
+ const $ = A.width / 2, Q = A.height / 2, h = A.x - $, Z = A.x + $, Te = A.y - Q, Oe = A.y + Q;
7953
+ h <= _ && Z >= i && Te <= p && Oe >= d && k.push(A.id);
7966
7954
  }
7967
7955
  if (k.length > 0) {
7968
7956
  u.value = k[0];
@@ -7985,9 +7973,9 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
7985
7973
  if (!Y(l.value, t)) return 0;
7986
7974
  const _ = [l.value];
7987
7975
  for (; _.length; ) {
7988
- const b = _.pop(), k = b.children.findIndex((A) => A.id === t);
7976
+ const p = _.pop(), k = p.children.findIndex((A) => A.id === t);
7989
7977
  if (k >= 0) return k;
7990
- for (const A of b.children) _.push(A);
7978
+ for (const A of p.children) _.push(A);
7991
7979
  }
7992
7980
  return 0;
7993
7981
  }
@@ -8079,12 +8067,12 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8079
8067
  applyNodeStyle: (t, i) => H(t, i),
8080
8068
  getNodeStyle: (t) => I(t),
8081
8069
  applyNodeImage: (t, i) => te(t, i),
8082
- applyNodeImageByUrl: (t, i) => pe(t, i),
8070
+ applyNodeImageByUrl: (t, i) => be(t, i),
8083
8071
  removeNodeImage: (t) => ne(t),
8084
- applyNodeLink: (t, i) => ce(t, i),
8085
- removeNodeLink: (t) => ue(t),
8072
+ applyNodeLink: (t, i) => le(t, i),
8073
+ removeNodeLink: (t) => ce(t),
8086
8074
  applyNodeNote: (t, i) => me(t, i),
8087
- removeNodeNote: (t) => p(t),
8075
+ removeNodeNote: (t) => b(t),
8088
8076
  applyNodeRichContent: (t, i) => M(t, i),
8089
8077
  undo: () => Yt(),
8090
8078
  redo: () => Xt(),
@@ -8121,8 +8109,8 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8121
8109
  ), tn(() => {
8122
8110
  E(), ve(() => De());
8123
8111
  }), (t, i) => {
8124
- var d, _, b, k, A, z, Q;
8125
- return R(), C("div", {
8112
+ var d, _, p, k, A, $, Q;
8113
+ return C(), O("div", {
8126
8114
  class: "zm-mindmap",
8127
8115
  style: He({ background: F.value.bgColor, fontSize: F.value.fontSize + "px" })
8128
8116
  }, [
@@ -8146,24 +8134,24 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8146
8134
  height: _e.value.vbH * K(G).scale.value + "px"
8147
8135
  })
8148
8136
  }, [
8149
- (R(), C("svg", {
8137
+ (C(), O("svg", {
8150
8138
  class: "zm-svg",
8151
8139
  viewBox: Hi.value,
8152
8140
  preserveAspectRatio: "xMinYMin meet",
8153
8141
  width: _e.value.vbW * K(G).scale.value,
8154
8142
  height: _e.value.vbH * K(G).scale.value
8155
8143
  }, [
8156
- S("g", ya, [
8157
- (R(!0), C(oe, null, ht(Ui.value, (h) => (R(), C("path", {
8144
+ S("g", ca, [
8145
+ (C(!0), O(oe, null, ht(Ui.value, (h) => (C(), O("path", {
8158
8146
  key: h.key,
8159
8147
  d: Oi(kn(h.from, "out", h.to.side, h.to), kn(h.to, "in"), Me(h.from.depth), _t(h.to.depth), 32, T.lineStyle, h.to._dir),
8160
8148
  fill: Li(h.from, h.to),
8161
8149
  stroke: "none"
8162
- }, null, 8, Ea))), 128))
8150
+ }, null, 8, ua))), 128))
8163
8151
  ])
8164
- ], 8, va))
8152
+ ], 8, la))
8165
8153
  ], 4),
8166
- K(G).isMarquee.value ? (R(), C("div", {
8154
+ K(G).isMarquee.value ? (C(), O("div", {
8167
8155
  key: 0,
8168
8156
  class: "zm-marquee",
8169
8157
  style: He({
@@ -8172,14 +8160,14 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8172
8160
  width: K(G).marquee.width * K(G).scale.value + "px",
8173
8161
  height: K(G).marquee.height * K(G).scale.value + "px"
8174
8162
  })
8175
- }, null, 4)) : le("", !0),
8163
+ }, null, 4)) : he("", !0),
8176
8164
  S("div", {
8177
8165
  class: "zm-world",
8178
8166
  style: He({
8179
8167
  transform: `translate(${K(G).offsetX.value}px, ${K(G).offsetY.value}px) scale(${K(G).scale.value})`
8180
8168
  })
8181
8169
  }, [
8182
- (R(!0), C(oe, null, ht(Zt.value, (h) => (R(), C("div", {
8170
+ (C(!0), O(oe, null, ht(Zt.value, (h) => (C(), O("div", {
8183
8171
  key: h.id,
8184
8172
  class: Pe(["zm-node", {
8185
8173
  "is-root": h.isRoot,
@@ -8203,20 +8191,20 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8203
8191
  fontSize: h.fontSize + "px",
8204
8192
  background: Di(h),
8205
8193
  color: Bi(h),
8206
- borderColor: $i(h),
8207
- fontWeight: zi(h),
8194
+ borderColor: zi(h),
8195
+ fontWeight: $i(h),
8208
8196
  // Center the box on (x, y) with translate(-50%, -50%)
8209
8197
  transform: "translate(-50%, -50%)"
8210
8198
  }),
8211
8199
  onClick: (Z) => Qi(Z, h),
8212
8200
  onDblclick: (Z) => {
8213
- Z.stopPropagation(), e.readonly || lt(h.id);
8201
+ Z.stopPropagation(), e.previewMode || lt(h.id);
8214
8202
  },
8215
8203
  onContextmenu: (Z) => U(Z, h),
8216
8204
  onMouseenter: (Z) => ee(h.id),
8217
8205
  onMouseleave: (Z) => je(h.id)
8218
8206
  }, [
8219
- h.image ? (R(), C("img", {
8207
+ h.image ? (C(), O("img", {
8220
8208
  key: 0,
8221
8209
  class: "zm-node-img",
8222
8210
  src: h.image.src,
@@ -8224,8 +8212,8 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8224
8212
  height: h.image.height,
8225
8213
  alt: h.text,
8226
8214
  draggable: "false"
8227
- }, null, 8, _a)) : le("", !0),
8228
- h.richContent && (h.richContent.kind === "code" || h.richContent.kind === "table") && s.value !== h.id ? (R(), C("div", {
8215
+ }, null, 8, fa)) : he("", !0),
8216
+ h.richContent && (h.richContent.kind === "code" || h.richContent.kind === "table") && s.value !== h.id ? (C(), O("div", {
8229
8217
  key: 1,
8230
8218
  class: Pe(["zm-rich zm-rich-above", { "zm-rich-no-overflow": h.richContent.kind === "table" || h.richContent.kind === "code" }]),
8231
8219
  onClick: i[1] || (i[1] = J(() => {
@@ -8234,7 +8222,7 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8234
8222
  onMousedown: i[2] || (i[2] = J(() => {
8235
8223
  }, ["stop"]))
8236
8224
  }, [
8237
- v.value === h.id ? Cn((R(), C("textarea", {
8225
+ v.value === h.id ? Cn((C(), O("textarea", {
8238
8226
  key: 0,
8239
8227
  "onUpdate:modelValue": i[0] || (i[0] = (Z) => m.value = Z),
8240
8228
  class: "zm-rich-edit",
@@ -8243,17 +8231,17 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8243
8231
  onKeydown: Ki
8244
8232
  }, null, 544)), [
8245
8233
  [On, m.value]
8246
- ]) : (R(), C(oe, { key: 1 }, [
8247
- h.richContent.kind === "code" ? (R(), C("pre", Na, [
8234
+ ]) : (C(), O(oe, { key: 1 }, [
8235
+ h.richContent.kind === "code" ? (C(), O("pre", ha, [
8248
8236
  S("code", {
8249
- innerHTML: K(ha)(K(ei)(h.richContent.raw), K(ti)(h.richContent.raw))
8250
- }, null, 8, ka)
8251
- ])) : h.richContent.kind === "table" ? (R(), C("table", Sa, [
8237
+ innerHTML: K(oa)(K(ei)(h.richContent.raw), K(ti)(h.richContent.raw))
8238
+ }, null, 8, ma)
8239
+ ])) : h.richContent.kind === "table" ? (C(), O("table", pa, [
8252
8240
  S("tbody", null, [
8253
- (R(!0), C(oe, null, ht(Yi(h.id, K(ma)(h.richContent.raw)), (Z, Te) => (R(), C("tr", { key: Te }, [
8254
- Te === 0 ? (R(!0), C(oe, { key: 0 }, ht(Z, (Oe, Ee) => {
8241
+ (C(!0), O(oe, null, ht(Yi(h.id, K(ra)(h.richContent.raw)), (Z, Te) => (C(), O("tr", { key: Te }, [
8242
+ Te === 0 ? (C(!0), O(oe, { key: 0 }, ht(Z, (Oe, Ee) => {
8255
8243
  var ct, ut, dt, ft, Ie;
8256
- return R(), C("th", {
8244
+ return C(), O("th", {
8257
8245
  key: `h${Ee}`,
8258
8246
  class: Pe(["zm-rich-table-sort", {
8259
8247
  "is-sorted": ((ct = y.value.get(h.id)) == null ? void 0 : ct.col) === Ee,
@@ -8263,19 +8251,19 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8263
8251
  onClick: J((Tn) => Zi(h.id, Ee), ["stop"])
8264
8252
  }, [
8265
8253
  S("span", null, Re(Oe), 1),
8266
- S("span", Ta, Re(Xi(h.id, Ee)), 1)
8267
- ], 10, Ma);
8268
- }), 128)) : (R(!0), C(oe, { key: 1 }, ht(Z, (Oe, Ee) => (R(), C("td", {
8254
+ S("span", va, Re(Xi(h.id, Ee)), 1)
8255
+ ], 10, ba);
8256
+ }), 128)) : (C(!0), O(oe, { key: 1 }, ht(Z, (Oe, Ee) => (C(), O("td", {
8269
8257
  key: `c${Ee}`
8270
8258
  }, Re(Oe), 1))), 128))
8271
8259
  ]))), 128))
8272
8260
  ])
8273
- ])) : le("", !0)
8261
+ ])) : he("", !0)
8274
8262
  ], 64))
8275
- ], 42, wa)) : le("", !0),
8276
- s.value !== h.id ? (R(), C("span", Aa, [
8277
- S("span", Ra, Re(h.text), 1),
8278
- h.link && !s.value ? (R(), C("a", {
8263
+ ], 42, ga)) : he("", !0),
8264
+ s.value !== h.id ? (C(), O("span", ya, [
8265
+ S("span", Ea, Re(h.text), 1),
8266
+ h.link && !s.value ? (C(), O("a", {
8279
8267
  key: 0,
8280
8268
  class: "zm-node-link",
8281
8269
  href: h.link.url,
@@ -8287,13 +8275,13 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8287
8275
  onMousedown: i[4] || (i[4] = J(() => {
8288
8276
  }, ["stop"]))
8289
8277
  }, [
8290
- ge(he, {
8278
+ fe(ge, {
8291
8279
  name: "link",
8292
8280
  size: 11,
8293
8281
  stroke: 2
8294
8282
  })
8295
- ], 40, Ca)) : le("", !0),
8296
- h.note && !s.value ? (R(), C("button", {
8283
+ ], 40, xa)) : he("", !0),
8284
+ h.note && !s.value ? (C(), O("button", {
8297
8285
  key: 1,
8298
8286
  class: "zm-node-note-btn",
8299
8287
  type: "button",
@@ -8302,13 +8290,13 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8302
8290
  onMousedown: i[5] || (i[5] = J(() => {
8303
8291
  }, ["stop"]))
8304
8292
  }, [
8305
- ge(he, {
8293
+ fe(ge, {
8306
8294
  name: "note",
8307
8295
  size: 11,
8308
8296
  stroke: 2
8309
8297
  })
8310
- ], 40, Oa)) : le("", !0)
8311
- ])) : Cn((R(), C("input", {
8298
+ ], 40, _a)) : he("", !0)
8299
+ ])) : Cn((C(), O("input", {
8312
8300
  key: 3,
8313
8301
  class: "zm-input",
8314
8302
  "onUpdate:modelValue": i[6] || (i[6] = (Z) => c.value = Z),
@@ -8328,12 +8316,12 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8328
8316
  }, null, 544)), [
8329
8317
  [On, c.value]
8330
8318
  ]),
8331
- V.value ? (R(), C("span", {
8319
+ V.value ? (C(), O("span", {
8332
8320
  key: 4,
8333
8321
  class: "zm-order-badge",
8334
8322
  title: `数据顺序:第 ${Nn(h.id) + 1} 个`
8335
- }, Re(Nn(h.id) + 1), 9, Ia)) : le("", !0),
8336
- wn(h.id) && !h.isRoot && qt(h.id) > 0 ? (R(), C("span", {
8323
+ }, Re(Nn(h.id) + 1), 9, wa)) : he("", !0),
8324
+ wn(h.id) && !h.isRoot && qt(h.id) > 0 ? (C(), O("span", {
8337
8325
  key: 5,
8338
8326
  class: Pe(["zm-collapse-badge", { "is-on-left": h.side === -1 }]),
8339
8327
  style: He({ background: Ze.value.get(h.id) ?? "#64748b" }),
@@ -8341,8 +8329,8 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8341
8329
  onMousedown: i[13] || (i[13] = J(() => {
8342
8330
  }, ["stop"])),
8343
8331
  onClick: J((Z) => _n(h.id), ["stop"])
8344
- }, Re(qt(h.id)), 47, La)) : le("", !0),
8345
- !e.readonly && !h.isRoot && io(h) && !wn(h.id) ? (R(), C("button", {
8332
+ }, Re(qt(h.id)), 47, Na)) : he("", !0),
8333
+ !h.isRoot && io(h) && !wn(h.id) ? (C(), O("button", {
8346
8334
  key: 6,
8347
8335
  class: Pe(["zm-btn zm-collapse", { "is-on-left": h.side === -1 }]),
8348
8336
  style: He({ color: Ze.value.get(h.id) ?? "#64748b", borderColor: Ze.value.get(h.id) ?? "#64748b" }),
@@ -8351,19 +8339,19 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8351
8339
  }, ["stop"])),
8352
8340
  onClick: J((Z) => _n(h.id), ["stop"])
8353
8341
  }, [
8354
- ge(he, {
8342
+ fe(ge, {
8355
8343
  name: "minus",
8356
8344
  size: 10,
8357
8345
  stroke: 2.4
8358
8346
  })
8359
- ], 46, Da)) : le("", !0),
8360
- h.image && u.value === h.id && s.value !== h.id ? (R(), C("span", {
8347
+ ], 46, ka)) : he("", !0),
8348
+ h.image && u.value === h.id && s.value !== h.id ? (C(), O("span", {
8361
8349
  key: 7,
8362
8350
  class: "zm-img-resize-handle",
8363
8351
  title: "拖动调整图片大小",
8364
8352
  onMousedown: J((Z) => Gt(Z, h), ["stop"])
8365
- }, null, 40, Ba)) : le("", !0),
8366
- h.image && u.value === h.id && s.value !== h.id ? (R(), C("button", {
8353
+ }, null, 40, Sa)) : he("", !0),
8354
+ h.image && u.value === h.id && s.value !== h.id ? (C(), O("button", {
8367
8355
  key: 8,
8368
8356
  class: "zm-img-remove-btn",
8369
8357
  title: "移除图片",
@@ -8371,28 +8359,27 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8371
8359
  }, ["stop"])),
8372
8360
  onClick: J((Z) => ne(h.id), ["stop"])
8373
8361
  }, [
8374
- ge(he, {
8362
+ fe(ge, {
8375
8363
  name: "x",
8376
8364
  size: 9,
8377
8365
  stroke: 2.2
8378
8366
  })
8379
- ], 40, $a)) : le("", !0)
8380
- ], 46, xa))), 128))
8367
+ ], 40, Ma)) : he("", !0)
8368
+ ], 46, da))), 128))
8381
8369
  ], 4),
8382
- x.value ? (R(), so(nr, {
8370
+ x.value ? (C(), so(Zo, {
8383
8371
  key: 1,
8384
8372
  x: x.value.x,
8385
8373
  y: x.value.y,
8386
8374
  container: f.value,
8387
8375
  "has-image": !!((d = K(Y)(l.value, x.value.nodeId)) != null && d.image),
8388
8376
  "has-link": !!((_ = K(Y)(l.value, x.value.nodeId)) != null && _.link),
8389
- "has-note": !!((b = K(Y)(l.value, x.value.nodeId)) != null && b.note),
8377
+ "has-note": !!((p = K(Y)(l.value, x.value.nodeId)) != null && p.note),
8390
8378
  "has-code": ((A = (k = K(Y)(l.value, x.value.nodeId)) == null ? void 0 : k.richContent) == null ? void 0 : A.kind) === "code",
8391
- "has-table": ((Q = (z = K(Y)(l.value, x.value.nodeId)) == null ? void 0 : z.richContent) == null ? void 0 : Q.kind) === "table",
8392
- readonly: r.readonly,
8379
+ "has-table": ((Q = ($ = K(Y)(l.value, x.value.nodeId)) == null ? void 0 : $.richContent) == null ? void 0 : Q.kind) === "table",
8393
8380
  onPickImage: ae,
8394
8381
  onRemoveImage: vt,
8395
- onSetLink: be,
8382
+ onSetLink: pe,
8396
8383
  onRemoveLink: we,
8397
8384
  onEditNote: ye,
8398
8385
  onRemoveNote: Ne,
@@ -8403,16 +8390,16 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8403
8390
  onEditTable: Et,
8404
8391
  onRemoveTable: Wt,
8405
8392
  onClose: q
8406
- }, null, 8, ["x", "y", "container", "has-image", "has-link", "has-note", "has-code", "has-table", "readonly"])) : le("", !0)
8393
+ }, null, 8, ["x", "y", "container", "has-image", "has-link", "has-note", "has-code", "has-table"])) : he("", !0)
8407
8394
  ], 544),
8408
- r.previewMode ? le("", !0) : (R(), C("div", za, [
8395
+ r.previewMode ? he("", !0) : (C(), O("div", Ta, [
8409
8396
  S("button", {
8410
8397
  class: "zm-tb-btn",
8411
8398
  title: "放大",
8412
8399
  onClick: i[18] || (i[18] = //@ts-ignore
8413
8400
  (...h) => K(G).zoomIn && K(G).zoomIn(...h))
8414
8401
  }, [
8415
- ge(he, { name: "zoom-in" })
8402
+ fe(ge, { name: "zoom-in" })
8416
8403
  ]),
8417
8404
  S("button", {
8418
8405
  class: "zm-tb-btn",
@@ -8420,18 +8407,17 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8420
8407
  onClick: i[19] || (i[19] = //@ts-ignore
8421
8408
  (...h) => K(G).zoomOut && K(G).zoomOut(...h))
8422
8409
  }, [
8423
- ge(he, { name: "zoom-out" })
8410
+ fe(ge, { name: "zoom-out" })
8424
8411
  ]),
8425
8412
  S("button", {
8426
8413
  class: "zm-tb-btn",
8427
8414
  title: "重置视图",
8428
8415
  onClick: De
8429
8416
  }, [
8430
- ge(he, { name: "reset" })
8417
+ fe(ge, { name: "reset" })
8431
8418
  ]),
8432
8419
  i[25] || (i[25] = S("span", { class: "zm-tb-divider" }, null, -1)),
8433
- e.readonly ? le("", !0) : (R(), C("button", {
8434
- key: 0,
8420
+ S("button", {
8435
8421
  class: "zm-tb-btn",
8436
8422
  title: "添加子节点 (Tab)",
8437
8423
  onClick: i[20] || (i[20] = (h) => u.value && Qe(u.value))
@@ -8442,10 +8428,9 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8442
8428
  height: "14",
8443
8429
  alt: "添加子节点",
8444
8430
  draggable: "false"
8445
- }, null, 8, Pa)
8446
- ])),
8447
- e.readonly ? le("", !0) : (R(), C("button", {
8448
- key: 1,
8431
+ }, null, 8, Aa)
8432
+ ]),
8433
+ S("button", {
8449
8434
  class: "zm-tb-btn",
8450
8435
  title: "添加同级 (Enter)",
8451
8436
  onClick: i[21] || (i[21] = (h) => u.value && kt(u.value))
@@ -8456,68 +8441,67 @@ const va = ["viewBox", "width", "height"], ya = { class: "zm-edges" }, Ea = ["d"
8456
8441
  height: "14",
8457
8442
  alt: "添加同级",
8458
8443
  draggable: "false"
8459
- }, null, 8, Ua)
8460
- ])),
8444
+ }, null, 8, Ra)
8445
+ ]),
8461
8446
  i[26] || (i[26] = S("span", { class: "zm-tb-divider" }, null, -1)),
8462
8447
  S("button", {
8463
8448
  class: Pe(["zm-tb-btn", { active: T.layoutMode === "mindmap" }]),
8464
8449
  title: "思维导图布局 (中心辐射)",
8465
8450
  onClick: i[22] || (i[22] = (h) => Vt("mindmap"))
8466
8451
  }, [
8467
- ge(he, { name: "mindmap" })
8452
+ fe(ge, { name: "mindmap" })
8468
8453
  ], 2),
8469
8454
  S("button", {
8470
8455
  class: Pe(["zm-tb-btn", { active: T.layoutMode === "tree" }]),
8471
8456
  title: "树形布局 (向右展开)",
8472
8457
  onClick: i[23] || (i[23] = (h) => Vt("tree"))
8473
8458
  }, [
8474
- ge(he, { name: "tree" })
8459
+ fe(ge, { name: "tree" })
8475
8460
  ], 2),
8476
8461
  S("button", {
8477
8462
  class: Pe(["zm-tb-btn", { active: T.layoutMode === "org" }]),
8478
8463
  title: "组织结构布局 (向下展开)",
8479
8464
  onClick: i[24] || (i[24] = (h) => Vt("org"))
8480
8465
  }, [
8481
- ge(he, { name: "org" })
8466
+ fe(ge, { name: "org" })
8482
8467
  ], 2),
8483
8468
  i[27] || (i[27] = S("span", { class: "zm-tb-divider" }, null, -1)),
8484
- e.readonly ? le("", !0) : (R(), C("button", {
8485
- key: 2,
8469
+ S("button", {
8486
8470
  class: "zm-tb-btn",
8487
8471
  title: "导入 JSON",
8488
8472
  onClick: ro
8489
8473
  }, [
8490
- ge(he, { name: "import" })
8491
- ])),
8474
+ fe(ge, { name: "import" })
8475
+ ]),
8492
8476
  S("button", {
8493
8477
  class: "zm-tb-btn",
8494
8478
  title: "导出 JSON",
8495
8479
  onClick: ao
8496
8480
  }, [
8497
- ge(he, { name: "export" })
8481
+ fe(ge, { name: "export" })
8498
8482
  ]),
8499
- S("span", Ha, Re(Math.round(K(G).scale.value * 100)) + "%", 1)
8483
+ S("span", Ca, Re(Math.round(K(G).scale.value * 100)) + "%", 1)
8500
8484
  ]))
8501
8485
  ], 4);
8502
8486
  };
8503
8487
  }
8504
- }), Za = {
8488
+ }), Ba = {
8505
8489
  install(e) {
8506
- e.component("FlowMindMap", Wa);
8490
+ e.component("FlowMindMap", Oa);
8507
8491
  }
8508
8492
  };
8509
8493
  export {
8510
- Wa as MindMap,
8511
- $o as addChild,
8512
- zo as addSibling,
8494
+ Oa as MindMap,
8495
+ zo as addChild,
8496
+ $o as addSibling,
8513
8497
  We as clone,
8514
- Za as default,
8498
+ Ba as default,
8515
8499
  Y as findNode,
8516
8500
  Le as findParent,
8517
8501
  Dn as markdownToMindMap,
8518
- Ga as markdownToRichMindMap,
8502
+ La as markdownToRichMindMap,
8519
8503
  nn as mindMapToMarkdown,
8520
8504
  ri as removeNode,
8521
- Ka as richBlockToMarkdown,
8522
- $e as uid
8505
+ Da as richBlockToMarkdown,
8506
+ ze as uid
8523
8507
  };