@glifox/gnosis 0.0.18 → 0.0.20

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.
package/dist/gnosis.mjs CHANGED
@@ -1,15 +1,12 @@
1
- var _ = Object.defineProperty;
2
- var O = (e, t, r) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var S = (e, t, r) => O(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { languages as V } from "@codemirror/language-data";
5
- import { markdown as W } from "@codemirror/lang-markdown";
6
- import { GFM as F } from "@lezer/markdown";
7
- import { Tag as U, styleTags as X, tags as A } from "@lezer/highlight";
8
- import { ViewPlugin as j, Decoration as l, WidgetType as $, EditorView as R } from "@codemirror/view";
1
+ import { languages as P } from "@codemirror/language-data";
2
+ import { markdown as _ } from "@codemirror/lang-markdown";
3
+ import { GFM as O } from "@lezer/markdown";
4
+ import { Tag as V, styleTags as W, tags as E } from "@lezer/highlight";
5
+ import { ViewPlugin as F, Decoration as l, WidgetType as $, EditorView as z } from "@codemirror/view";
9
6
  import { syntaxTree as I } from "@codemirror/language";
10
- import { EditorView as M } from "codemirror";
11
- import { StateEffect as G, StateField as K } from "@codemirror/state";
12
- const h = U.define("none"), Y = X({
7
+ import { EditorView as x } from "codemirror";
8
+ import { StateEffect as U, StateField as X } from "@codemirror/state";
9
+ const h = V.define("none"), j = W({
13
10
  "Blockquote/...": h,
14
11
  HorizontalRule: h,
15
12
  "ATXHeading1/... SetextHeading1/...": h,
@@ -35,40 +32,40 @@ const h = U.define("none"), Y = X({
35
32
  LinkTitle: h,
36
33
  Paragraph: h,
37
34
  "QuoteType/.. QuoteTypeMark QuoteTypeText": h
38
- }), J = { props: [Y] }, y = (e, t, r = {}) => {
39
- const i = class {
35
+ }), rt = { props: [j] }, M = (e, t, s = {}) => {
36
+ const a = class {
37
+ decorations;
38
+ conf;
40
39
  constructor(c) {
41
- S(this, "decorations");
42
- S(this, "conf");
43
40
  this.conf = t, this.decorations = e(c, this.conf);
44
41
  }
45
42
  update(c) {
46
43
  (c.docChanged || c.viewportChanged || c.selectionSet) && (this.decorations = e(c.view, this.conf));
47
44
  }
48
45
  };
49
- return j.fromClass(i, { decorations: (a) => a.decorations, ...r });
50
- }, x = (e, t, r) => {
51
- const i = e.state.selection.ranges;
52
- for (let a of i)
53
- if (a.from >= t && a.from <= r || a.to >= t && a.to <= r || a.from <= t && a.to >= r)
46
+ return F.fromClass(a, { decorations: (i) => i.decorations, ...s });
47
+ }, y = (e, t, s) => {
48
+ const a = e.state.selection.ranges;
49
+ for (let i of a)
50
+ if (i.from >= t && i.from <= s || i.to >= t && i.to <= s || i.from <= t && i.to >= s)
54
51
  return !0;
55
52
  return !1;
56
53
  }, v = (e, t) => {
57
- for (const { from: r, to: i } of e.visibleRanges)
58
- I(e.state).iterate({ ...t, from: r, to: i });
54
+ for (const { from: s, to: a } of e.visibleRanges)
55
+ I(e.state).iterate({ ...t, from: s, to: a });
59
56
  };
60
- function ee(e, t) {
61
- const r = ["Document"], i = {}, a = {
62
- HorizontalRule: (n, s, o = !0) => [
57
+ function G(e, t) {
58
+ const s = ["Document"], a = {}, i = {
59
+ HorizontalRule: (n, r, o = !0) => [
63
60
  l.line({ class: "hr " + (o ? "sw" : "") }).range(n),
64
- l.mark({ class: "mk" }).range(n, s)
61
+ l.mark({ class: "mk" }).range(n, r)
65
62
  ]
66
63
  }, c = [];
67
64
  return v(e, {
68
- enter: ({ type: n, from: s, to: o }) => (n.name in a && c.push(...a[n.name](s, o, x(e, s, o))), r.includes(n.name) || n.name in i)
65
+ enter: ({ type: n, from: r, to: o }) => (n.name in i && c.push(...i[n.name](r, o, y(e, r, o))), s.includes(n.name) || n.name in a)
69
66
  }), l.set(c, !1);
70
67
  }
71
- const te = () => M.baseTheme({
68
+ const K = () => x.baseTheme({
72
69
  "& .hr": { position: "relative" },
73
70
  "& .hr > .mk": { fontSize: "0" },
74
71
  "& .hr.sw > .mk": { fontSize: "inherit" },
@@ -81,29 +78,29 @@ const te = () => M.baseTheme({
81
78
  width: "calc(100% - 12px)",
82
79
  height: ".2ch"
83
80
  }
84
- }), ne = () => [
85
- y(ee, {}),
86
- te()
81
+ }), Y = () => [
82
+ M(G, {}),
83
+ K()
87
84
  ];
88
- function re(e, t) {
89
- const r = ["FencedCode"], i = {
90
- StrongEmphasis: (n = !0, s, o) => l.mark({ class: "il st " + (n ? "sw" : "") }).range(s, o),
91
- Strikethrough: (n = !0, s, o) => l.mark({ class: "il sk " + (n ? "sw" : "") }).range(s, o),
92
- InlineCode: (n = !0, s, o) => l.mark({ class: "il ic " + (n ? "sw" : "") }).range(s, o),
93
- Emphasis: (n = !0, s, o) => l.mark({ class: "il it " + (n ? "sw" : "") }).range(s, o),
94
- Mark: (n, s) => l.mark({ class: "mkl" }).range(n, s)
95
- }, a = ["EmphasisMark", "CodeMark", "StrikethroughMark"], c = [];
85
+ function J(e, t) {
86
+ const s = ["FencedCode"], a = {
87
+ StrongEmphasis: (n = !0, r, o) => l.mark({ class: "il st " + (n ? "sw" : "") }).range(r, o),
88
+ Strikethrough: (n = !0, r, o) => l.mark({ class: "il sk " + (n ? "sw" : "") }).range(r, o),
89
+ InlineCode: (n = !0, r, o) => l.mark({ class: "il ic " + (n ? "sw" : "") }).range(r, o),
90
+ Emphasis: (n = !0, r, o) => l.mark({ class: "il it " + (n ? "sw" : "") }).range(r, o),
91
+ Mark: (n, r) => l.mark({ class: "mkl" }).range(n, r)
92
+ }, i = ["EmphasisMark", "CodeMark", "StrikethroughMark"], c = [];
96
93
  return v(e, {
97
- enter: ({ type: { name: n }, from: s, to: o }) => a.includes(n) ? (c.push(i.Mark(s, o)), !1) : (n in i && c.push(
98
- i[n](
99
- x(e, s, o),
100
- s,
94
+ enter: ({ type: { name: n }, from: r, to: o }) => i.includes(n) ? (c.push(a.Mark(r, o)), !1) : (n in a && c.push(
95
+ a[n](
96
+ y(e, r, o),
97
+ r,
101
98
  o
102
99
  )
103
- ), !r.includes(n))
100
+ ), !s.includes(n))
104
101
  }), l.set(c, !1);
105
102
  }
106
- const se = M.baseTheme({
103
+ const ee = x.baseTheme({
107
104
  "& .it ": { fontStyle: "italic" },
108
105
  "& .st ": { fontWeight: "bold" },
109
106
  "& .sk ": { textDecoration: "line-through" },
@@ -113,38 +110,150 @@ const se = M.baseTheme({
113
110
  borderRadius: ".6ch",
114
111
  backgroundColor: "var(--cm-ic-background, hsl(from black h s l / .2))"
115
112
  }
116
- }), oe = M.baseTheme({
113
+ }), te = x.baseTheme({
117
114
  ".il .mkl": { fontSize: "0" },
118
115
  "&.cm-focused .il.sw > .mkl": { fontSize: "inherit" }
119
- }), ie = () => [
120
- y(re, {}),
121
- se,
122
- oe
116
+ }), ne = () => [
117
+ M(J, {}),
118
+ ee,
119
+ te
120
+ ], R = (e, t, s) => {
121
+ const a = e.state.sliceDoc(t, s), i = a.match(/\[(.*)\]/);
122
+ return i !== null && i.length > 1 ? {
123
+ text: i[1],
124
+ from: t + a.indexOf(i[1]),
125
+ to: t + 1 + i[1].length
126
+ } : { text: null };
127
+ };
128
+ function re(e, t) {
129
+ const s = ["FencedCode", "Image", "Link"], a = {
130
+ Link: {
131
+ marks: ["LinkMark"],
132
+ url: "URL"
133
+ }
134
+ }, i = {
135
+ Link: (n, r, o) => l.mark({ class: "link " + (o ? "sw" : "") }).range(n, r),
136
+ LinkMark: (n, r) => l.mark({ class: "lk-mk" }).range(n, r),
137
+ TextDec: (n, r, o) => l.mark({
138
+ class: "lk-text url",
139
+ tagName: "a",
140
+ attributes: { href: o, target: "_blank" }
141
+ }).range(n, r),
142
+ URL: (n, r, o) => l.mark({
143
+ class: "lk-url url",
144
+ tagName: "a",
145
+ attributes: { href: o, target: "_blank" }
146
+ }).range(n, r)
147
+ }, c = [];
148
+ return v(e, {
149
+ enter: ({ type: { name: n }, from: r, to: o, node: d }) => {
150
+ if (n === "URL" && c.push(i.URL(r, o, e.state.sliceDoc(r, o))), !(n in a)) return !s.includes(n);
151
+ c.push(i.Link(r, o, y(e, r, o)));
152
+ const u = a[n].marks.flatMap((w) => d.getChildren(w));
153
+ c.push(...u.map(({ from: w, to: p }) => i.LinkMark(w, p)));
154
+ const g = d.getChild(a[n].url);
155
+ let m = null;
156
+ if (g !== null) {
157
+ const { from: w, to: p } = g;
158
+ m = e.state.sliceDoc(w, p), c.push(i.URL(w, p, m));
159
+ }
160
+ if (d.getChild("Image") === null) {
161
+ const { text: w, from: p, to: T } = R(e, r, o);
162
+ w !== null && m !== null && c.push(i.TextDec(p, T, m));
163
+ }
164
+ return !1;
165
+ }
166
+ }), l.set(c, !0);
167
+ }
168
+ const se = (e, t) => e.ctrlKey ? oe(
169
+ e.target
170
+ /* as HTMLElement */
171
+ ) : !1, oe = (e) => {
172
+ if (e.nodeName === "A" && e.href && e.classList.contains("url"))
173
+ return window.open(e.href, e.target), !0;
174
+ }, ie = x.baseTheme({
175
+ ".lk-mk, .link > .lk-url": { display: "none" },
176
+ "&.cm-focused .link.sw .lk-mk, &.cm-focused .link.sw .lk-url": { display: "inherit" }
177
+ }), ae = () => [
178
+ M(re, {}, { eventHandlers: { mousedown: se } }),
179
+ ie
180
+ ];
181
+ class ce extends $ {
182
+ constructor(t, s = null, a = "[image]") {
183
+ super(), this.img = t, this.url = s, this.alt = a;
184
+ }
185
+ toDOM() {
186
+ let t = document.createElement("img");
187
+ if (t.src = this.img, t.alt = this.alt, t.style.minWidth = "100px", this.url) {
188
+ let s = document.createElement("a");
189
+ return s.href = this.url, s.target = "_blank", s.classList.add("url"), s.appendChild(t), s;
190
+ } else
191
+ return t;
192
+ }
193
+ eq(t) {
194
+ return this.img === t.img;
195
+ }
196
+ ignoreEvent() {
197
+ return !1;
198
+ }
199
+ }
200
+ function le(e, t) {
201
+ const s = ["FencedCode", "Image"], a = [];
202
+ return v(e, {
203
+ enter: ({ type: { name: i }, from: c, to: n, node: r }) => {
204
+ if (i === "Image" && !y(e, c, n)) {
205
+ const { from: o, to: d } = r.getChild("URL"), u = e.state.sliceDoc(o, d), { text: g } = R(e, c, n);
206
+ a.push(
207
+ l.replace({
208
+ widget: new ce(u, de(e, r), g)
209
+ }).range(c, n)
210
+ );
211
+ }
212
+ return !s.includes(i);
213
+ }
214
+ }), l.set(a, !1);
215
+ }
216
+ const de = (e, t) => {
217
+ const a = t.parent.getChild("URL");
218
+ if (a !== null) {
219
+ const { from: i, to: c } = a;
220
+ return e.state.sliceDoc(i, c);
221
+ }
222
+ return null;
223
+ }, ue = (e, t) => e.ctrlKey ? ge(
224
+ e.target
225
+ /* as HTMLElement */
226
+ ) : !1, ge = (e) => {
227
+ const t = e.parentElement ?? !1;
228
+ if (e.nodeName === "IMG" && t && t.nodeName === "A" && t.classList.contains("url"))
229
+ return !0;
230
+ }, he = x.baseTheme({}), me = () => [
231
+ M(le, {}, { eventHandlers: { mousedown: ue } }),
232
+ he
123
233
  ];
124
- class ae extends $ {
125
- constructor(r) {
126
- super();
127
- S(this, "checked", !1);
128
- this.checked = r;
234
+ class pe extends $ {
235
+ checked = !1;
236
+ constructor(t) {
237
+ super(), this.checked = t;
129
238
  }
130
239
  // eq(other) { return other.checked == this.checked }
131
240
  toDOM() {
132
- let r = document.createElement("span");
133
- r.setAttribute("aria-hidden", "true"), r.className = "TaskMark";
134
- let i = r.appendChild(document.createElement("input"));
135
- return i.type = "checkbox", i.checked = this.checked, r;
241
+ let t = document.createElement("span");
242
+ t.setAttribute("aria-hidden", "true"), t.className = "TaskMark";
243
+ let s = t.appendChild(document.createElement("input"));
244
+ return s.type = "checkbox", s.checked = this.checked, t;
136
245
  }
137
246
  ignoreEvent() {
138
247
  return !1;
139
248
  }
140
249
  }
141
- function ce(e, t) {
142
- const r = [
250
+ function fe(e, t) {
251
+ const s = [
143
252
  "Document",
144
253
  "ListItem",
145
254
  "Task",
146
255
  "Blockquote"
147
- ], i = {
256
+ ], a = {
148
257
  BulletList: {
149
258
  class: "bl",
150
259
  offset: 2
@@ -153,12 +262,12 @@ function ce(e, t) {
153
262
  class: "ol",
154
263
  offset: 3
155
264
  }
156
- }, a = {
265
+ }, i = {
157
266
  ListMark: (o, d, u, g = !0) => l.mark({ class: `${u.class} lm ${g ? "sw" : ""}` }).range(o, d),
158
267
  TaskMarker: (o, d, u, g = !0) => {
159
268
  const m = e.state.doc.sliceString(o + 1, d - 1) === "x";
160
269
  return g ? l.mark({ class: `tm ${m ? "ck" : ""}` }).range(o, d) : l.replace({
161
- widget: new ae(m)
270
+ widget: new pe(m)
162
271
  }).range(o, d);
163
272
  }
164
273
  }, c = {
@@ -171,46 +280,45 @@ function ce(e, t) {
171
280
  }).range(p, d)
172
281
  ];
173
282
  }
174
- }, n = [], s = [];
283
+ }, n = [], r = [];
175
284
  return v(e, {
176
285
  enter: ({ name: o, from: d, to: u, node: g }) => {
177
- if (o in i)
178
- return s.push({ name: o, from: d, to: u }), !0;
179
- if (o in a && n.push(a[o](
286
+ if (o in a)
287
+ return r.push({ name: o, from: d, to: u }), !0;
288
+ if (o in i && n.push(i[o](
180
289
  d,
181
290
  u,
182
- i[s.slice(-1)[0].name],
183
- x(e, d, u)
291
+ a[r.slice(-1)[0].name],
292
+ y(e, d, u)
184
293
  )), o in c) {
185
294
  const m = e.state.doc.lineAt(d);
186
295
  n.push(...c[o](
187
296
  d,
188
297
  m.to,
189
- i[s.slice(-1)[0].name],
298
+ a[r.slice(-1)[0].name],
190
299
  g.getChild("Task") !== null,
191
300
  d - m.from
192
301
  ));
193
302
  }
194
- return r.includes(o);
303
+ return s.includes(o);
195
304
  },
196
305
  leave: ({ name: o, from: d, to: u }) => {
197
- const g = s.slice(-1)[0];
198
- g && g.name === o && g.from === d && g.to === u && s.pop();
306
+ const g = r.slice(-1)[0];
307
+ g && g.name === o && g.from === d && g.to === u && r.pop();
199
308
  }
200
309
  }), l.set(n, !0);
201
310
  }
202
- const le = (e, t) => {
203
- var i;
204
- let r = e.target;
205
- if (r.nodeName === "INPUT" && ((i = r.parentElement) != null && i.classList.contains("TaskMark"))) return de(t, t.posAtDOM(r));
206
- }, de = (e, t) => {
207
- const r = t - 2, i = t - 1;
208
- let a = e.state.doc.sliceString(Math.max(0, r), i), c;
209
- if (a === "x") c = { from: r, to: i, insert: " " };
210
- else if (a === " ") c = { from: r, to: i, insert: "x" };
311
+ const ke = (e, t) => {
312
+ let s = e.target;
313
+ if (s.nodeName === "INPUT" && s.parentElement?.classList.contains("TaskMark")) return Ce(t, t.posAtDOM(s));
314
+ }, Ce = (e, t) => {
315
+ const s = t - 2, a = t - 1;
316
+ let i = e.state.doc.sliceString(Math.max(0, s), a), c;
317
+ if (i === "x") c = { from: s, to: a, insert: " " };
318
+ else if (i === " ") c = { from: s, to: a, insert: "x" };
211
319
  else return !1;
212
320
  return e.dispatch({ changes: c }), !0;
213
- }, ue = () => M.baseTheme({
321
+ }, be = () => x.baseTheme({
214
322
  "& .lm.bl": {
215
323
  position: "relative",
216
324
  // paddingInlineStart: "1ch",
@@ -222,16 +330,16 @@ const le = (e, t) => {
222
330
  position: "absolute",
223
331
  borderRadius: "50%",
224
332
  top: "50%",
225
- left: ".5ch",
226
- transform: "translate(0, -50%)",
333
+ left: "50%",
334
+ transform: "translate(-50%, -50%)",
227
335
  height: ".4em",
228
336
  width: ".4em"
229
337
  },
230
338
  "&light .lm.bl::before": {
231
- backgroundColor: "var(--cm-list-bullet, light-dark(black, white))"
339
+ backgroundColor: "var(--cm-list-bullet, black)"
232
340
  },
233
341
  "&dark .lm.bl::before": {
234
- backgroundColor: "var(--cm-list-bullet, light-dark(black, white))"
342
+ backgroundColor: "var(--cm-list-bullet, white)"
235
343
  },
236
344
  "&.cm-focused .lm.bl.sw, &.cm-focused .lm.bl.sw::before": {
237
345
  backgroundColor: "transparent",
@@ -248,177 +356,175 @@ const le = (e, t) => {
248
356
  "& .cb-content .ls-text-line, & .cb-spacer .ls-text-line": {
249
357
  width: "unset !important"
250
358
  }
251
- }), ge = () => [
252
- y(ce, {}, { eventHandlers: { mousedown: le } }),
253
- ue()
254
- ], he = (e, t) => {
255
- var i;
256
- let r = e.target;
257
- if (r.nodeName === "BUTTON" && ((i = r.parentElement) != null && i.classList.contains("wg-codeblock"))) {
359
+ }), we = () => [
360
+ M(fe, {}, { eventHandlers: { mousedown: ke } }),
361
+ be()
362
+ ], Le = (e, t) => {
363
+ let s = e.target;
364
+ if (s.nodeName === "BUTTON" && s.parentElement?.classList.contains("wg-codeblock")) {
258
365
  const a = ["FencedCode", "CodeBlock"];
259
- let c = "";
260
- const n = {
261
- enter: ({ type: { name: s }, from: o, to: d, node: u }) => (a.includes(s) && (c = me(t, u.toTree(), o, d)), !a.includes(s))
366
+ let i = "";
367
+ const c = {
368
+ enter: ({ type: { name: n }, from: r, to: o, node: d }) => (a.includes(n) && (i = Te(t, d.toTree(), r, o)), !a.includes(n))
262
369
  };
263
370
  return I(t.state).iterate({
264
- ...n,
265
- from: t.posAtDOM(r),
266
- to: t.posAtDOM(r) + 2
267
- }), navigator.clipboard.writeText(c), !0;
371
+ ...c,
372
+ from: t.posAtDOM(s),
373
+ to: t.posAtDOM(s) + 2
374
+ }), navigator.clipboard.writeText(i), !0;
268
375
  }
269
- }, me = (e, t, r, i) => {
270
- const a = ["CodeMark", "CodeInfo"];
271
- let c = e.state.doc.sliceString(r, i), n = /* @__PURE__ */ new Set();
376
+ }, Te = (e, t, s, a) => {
377
+ const i = ["CodeMark", "CodeInfo"];
378
+ let c = e.state.doc.sliceString(s, a), n = /* @__PURE__ */ new Set();
272
379
  t.iterate({
273
380
  enter({ type: { name: u }, from: g, node: m }) {
274
- a.includes(u) && n.add(e.state.doc.lineAt(g + r).number);
381
+ i.includes(u) && n.add(e.state.doc.lineAt(g + s).number);
275
382
  }
276
383
  });
277
- const s = e.state.doc.lineAt(r), o = r - s.from, d = [];
384
+ const r = e.state.doc.lineAt(s), o = s - r.from, d = [];
278
385
  return c.split(`
279
386
  `).forEach((u, g) => {
280
- n.has(g + s.number) || d.push(u.slice(o));
387
+ n.has(g + r.number) || d.push(u.slice(o));
281
388
  }), d.join(`
282
389
  `);
283
390
  };
284
- class B extends $ {
285
- constructor(r, i, a, c = 1) {
286
- super();
287
- S(this, "classes", "");
288
- this.classes = r, this.width = i, this.marginLeft = a, this.spaces = c;
391
+ class S extends $ {
392
+ classes = "";
393
+ constructor(t, s, a, i = 1) {
394
+ super(), this.classes = t, this.width = s, this.marginLeft = a, this.spaces = i;
289
395
  }
290
396
  toDOM() {
291
- let r = document.createElement("span");
292
- return r.setAttribute("aria-hidden", "true"), r.className = this.classes + " empty", r.textContent = " ".repeat(this.spaces), r.style.width = this.width, r.style.marginLeft = this.marginLeft, r;
397
+ let t = document.createElement("span");
398
+ return t.setAttribute("aria-hidden", "true"), t.className = this.classes + " empty", t.textContent = " ".repeat(this.spaces), t.style.width = this.width, t.style.marginLeft = this.marginLeft, t;
293
399
  }
294
400
  ignoreEvent() {
295
401
  return !1;
296
402
  }
297
403
  }
298
- const pe = (e) => `<svg class="cb-icon" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
404
+ const qe = (e) => `<svg class="cb-icon" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
299
405
  <path class="cb-icon-path cb.i1" fill-rule="evenodd" clip-rule="evenodd" d="M15 0C15.5304 0 16.0391 0.210714 16.4142 0.585786C16.7893 0.960859 17 1.46957 17 2V12C17 12.5304 16.7893 13.0391 16.4142 13.4142C16.0391 13.7893 15.5304 14 15 14H14V6C14 4.93913 13.5786 3.92172 12.8284 3.17157C12.0783 2.42143 11.0609 2 10 2H7C6.64895 1.99924 6.30395 2.09135 6 2.267V2C6 1.46957 6.21071 0.960859 6.58579 0.585786C6.96086 0.210714 7.46957 0 8 0H15Z"/>
300
406
  <path class="cb-icon-path cb.i1" fill-rule="evenodd" clip-rule="evenodd" d="M5 4.054V8H1.2C1.27464 7.84448 1.3691 7.69928 1.481 7.568L3.941 4.698C4.2169 4.37661 4.58771 4.15111 5 4.054ZM7 4V8C7 8.53043 6.78929 9.03914 6.41421 9.41421C6.03914 9.78929 5.53043 10 5 10H1V16C1 16.5304 1.21071 17.0391 1.58579 17.4142C1.96086 17.7893 2.46957 18 3 18H10C10.5304 18 11.0391 17.7893 11.4142 17.4142C11.7893 17.0391 12 16.5304 12 16V6C12 5.46957 11.7893 4.96086 11.4142 4.58579C11.0391 4.21071 10.5304 4 10 4H7Z"/>
301
407
  </svg>`;
302
- class fe extends $ {
303
- constructor(t, r) {
304
- super(), this.type = t, this.code = r;
408
+ class xe extends $ {
409
+ constructor(t, s) {
410
+ super(), this.type = t, this.code = s;
305
411
  }
306
412
  toDOM() {
307
413
  let t = document.createElement("span");
308
414
  t.setAttribute("aria-hidden", "true"), t.className = "wg-codeblock";
309
- let r = document.createElement("button");
310
- return r.className = "wg-codeblock-btn", r.innerHTML = pe(), t.appendChild(r), t;
415
+ let s = document.createElement("button");
416
+ return s.className = "wg-codeblock-btn", s.innerHTML = qe(), t.appendChild(s), t;
311
417
  }
312
418
  ignoreEvent() {
313
419
  return !1;
314
420
  }
315
421
  }
316
- const E = [];
317
- function D(e, t) {
422
+ const B = [];
423
+ function A(e, t) {
318
424
  const {
319
- mode: r,
425
+ mode: s,
320
426
  /* type, mark */
321
427
  /**
322
428
  * @type {object}
323
429
  * @property {number} marginLeft - Margin left for the code block
324
430
  * @property {number} paddingLeft - Padding left for the code block
325
431
  */
326
- options: i
327
- } = t, a = ["Document", "Blockquote", "ListItem", "BulletList", "OrderedList"], c = {
328
- FencedCode: Z,
329
- CodeBlock: Z
432
+ options: a
433
+ } = t, i = ["Document", "Blockquote", "ListItem", "BulletList", "OrderedList"], c = {
434
+ FencedCode: D,
435
+ CodeBlock: D
330
436
  }, n = {
331
437
  CodeMark: (o, d, u) => [l.mark({ class: "cb-mk" }).range(d, u)],
332
438
  CodeInfo: (o, d, u) => [l.mark({ class: "cb-mi" }).range(d, u)]
333
- }, s = [];
439
+ }, r = [];
334
440
  return v(e, {
335
- enter: ({ type: { name: o }, from: d, to: u }) => (r === "type" && o in c && s.push(...c[o](e, d, u, i)), r === "mark" && o in n && s.push(...n[o](e, d, u)), a.includes(o) || o in c ? (E.push({ name: o, from: d, to: u }), !0) : !1),
336
- Leave: ({ type: { name: o }, from: d, to: u }) => a.includes(o) || o in c ? (E.pop(), !0) : !1
441
+ enter: ({ type: { name: o }, from: d, to: u }) => (s === "type" && o in c && r.push(...c[o](e, d, u, a)), s === "mark" && o in n && r.push(...n[o](e, d, u)), i.includes(o) || o in c ? (B.push({ name: o, from: d, to: u }), !0) : !1),
442
+ Leave: ({ type: { name: o }, from: d, to: u }) => i.includes(o) || o in c ? (B.pop(), !0) : !1
337
443
  }), {
338
- type: l.set(s, !0),
339
- mark: l.set(s, !0)
340
- }[r];
444
+ type: l.set(r, !0),
445
+ mark: l.set(r, !0)
446
+ }[s];
341
447
  }
342
- const Z = (e, t, r, i) => {
343
- const a = i.marginLeft, c = i.paddingLeft, n = [], s = E[E.length - 1], o = ["BulletList", "OrderedList", "ListItem"].some((b) => b === s.name), d = ["Blockquote"].some((b) => b === s.name), u = e.state.doc.lineAt(t), g = t - u.from, m = g > 0, w = x(e, u.from, r);
448
+ const D = (e, t, s, a) => {
449
+ const i = a.marginLeft, c = a.paddingLeft, n = [], r = B[B.length - 1], o = ["BulletList", "OrderedList", "ListItem"].some((b) => b === r.name), d = ["Blockquote"].some((b) => b === r.name), u = e.state.doc.lineAt(t), g = t - u.from, m = g > 0, w = y(e, u.from, s);
344
450
  n.push(
345
- l.widget({ widget: new fe("view.state.sliceDoc(from, to)", "code"), side: 0 }).range(t + 1)
451
+ l.widget({ widget: new xe("view.state.sliceDoc(from, to)", "code"), side: 0 }).range(t + 1)
346
452
  );
347
- const p = u.number, T = e.state.doc.sliceString(t, r).split(`
453
+ const p = u.number, T = e.state.doc.sliceString(t, s).split(`
348
454
  `).length;
349
455
  for (let b = p; b < T + p; b++) {
350
- const { from: f, to: k } = e.state.doc.line(b), L = `100% - ${a + c}px`, q = ["cb-content"];
456
+ const { from: f, to: C } = e.state.doc.line(b), L = `100% - ${i + c}px`, q = ["cb-content"];
351
457
  w && q.push("sw"), b === p && q.push("cb-start"), b === T + p - 1 && q.push("cb-end");
352
- const C = Math.max(f + g, 0);
353
- if (k < C)
458
+ const k = Math.max(f + g, 0);
459
+ if (C < k)
354
460
  n.push(l.widget({
355
- widget: new B(
461
+ widget: new S(
356
462
  ["left", "cb-error"].join(" "),
357
463
  "0.1px"
358
464
  ),
359
465
  side: 0
360
- }).range(k), l.widget({
361
- widget: new B(
466
+ }).range(C), l.widget({
467
+ widget: new S(
362
468
  ["cb-error", "right"].join(" "),
363
469
  "",
364
470
  "",
365
- C - k
471
+ k - C
366
472
  ),
367
473
  side: 1
368
- }).range(k));
369
- else if (f === k && f === C)
474
+ }).range(C));
475
+ else if (f === C && f === k)
370
476
  n.push(l.widget({
371
- widget: new B(
477
+ widget: new S(
372
478
  [...q, "left"].join(" "),
373
479
  "0"
374
480
  ),
375
481
  side: 0
376
- }).range(k), l.widget({
377
- widget: new B(
482
+ }).range(C), l.widget({
483
+ widget: new S(
378
484
  q.join(" "),
379
485
  `calc(${L} - ${c}px)`,
380
486
  "0"
381
487
  ),
382
488
  side: 1
383
- }).range(C));
384
- else if (C === k)
489
+ }).range(k));
490
+ else if (k === C)
385
491
  q.push("wg"), n.push(
386
492
  l.widget({
387
- widget: new B(
493
+ widget: new S(
388
494
  q.join(" "),
389
- `calc(${L} - ${C - f}ch)`
495
+ `calc(${L} - ${k - f}ch)`
390
496
  ),
391
497
  side: 1
392
- }).range(C)
498
+ }).range(k)
393
499
  );
394
500
  else if (o || d || m) {
395
- const H = { style: `width: calc(${L} - ${C - f}ch)` };
396
- k > C && n.push(l.mark({ class: q.join(" "), attributes: H }).range(C, k)), f !== C && o && n.push(l.mark({ class: "cb-listsp" }).range(f, C)), f !== C && m && n.push(l.mark({ class: "cb-spacer" }).range(f, C)), f !== C && d && n.push(l.mark({ class: "cb-quote bq" }).range(f, C));
397
- } else if (f !== k) {
501
+ const H = { style: `width: calc(${L} - ${k - f}ch)` };
502
+ C > k && n.push(l.mark({ class: q.join(" "), attributes: H }).range(k, C)), f !== k && o && n.push(l.mark({ class: "cb-listsp" }).range(f, k)), f !== k && m && n.push(l.mark({ class: "cb-spacer" }).range(f, k)), f !== k && d && n.push(l.mark({ class: "cb-quote bq" }).range(f, k));
503
+ } else if (f !== C) {
398
504
  const H = { style: `width: calc(${L})` };
399
- n.push(l.mark({ class: q.join(" "), attributes: H }).range(f, k));
505
+ n.push(l.mark({ class: q.join(" "), attributes: H }).range(f, C));
400
506
  }
401
507
  n.push(l.line({ class: "cb-line" }).range(f));
402
508
  }
403
509
  return n;
404
- }, Ce = (e) => {
405
- const t = e.marginLeft, r = e.paddingLeft, i = 0, a = "4px", c = "1lh";
406
- return M.baseTheme({
407
- "& .cb-start": { borderRadius: `${a} ${a} 0 0` },
408
- "& .cb-end ": { borderRadius: `0 0 ${a} ${a}` },
409
- "& .cb-start.cb-end": { borderRadius: `${a}` },
510
+ }, Me = (e) => {
511
+ const t = e.marginLeft, s = e.paddingLeft, a = 0, i = "4px", c = "1lh";
512
+ return x.baseTheme({
513
+ "& .cb-start": { borderRadius: `${i} ${i} 0 0` },
514
+ "& .cb-end ": { borderRadius: `0 0 ${i} ${i}` },
515
+ "& .cb-start.cb-end": { borderRadius: `${i}` },
410
516
  "& .cm-line .cb-content": {
411
517
  display: "inline-block",
412
518
  marginLeft: `${t}px`,
413
- paddingLeft: `${r}px`,
414
- paddingRigth: `${i}px`,
519
+ paddingLeft: `${s}px`,
520
+ paddingRigth: `${a}px`,
415
521
  position: "relative"
416
522
  },
417
523
  "& .cb-content.wg": { cursor: "text" },
418
524
  "& .cb-content.wg.start": {
419
525
  maxWidth: "1px",
420
526
  Width: "1px",
421
- paddingLeft: `${r - 1}px`
527
+ paddingLeft: `${s - 1}px`
422
528
  },
423
529
  "& .cb-content.wg.end": {
424
530
  marginLeft: "0",
@@ -457,6 +563,9 @@ const Z = (e, t, r, i) => {
457
563
  fill: "currentColor",
458
564
  opacity: "0.7"
459
565
  },
566
+ "&dark .cb-icon": {
567
+ fill: "white"
568
+ },
460
569
  "& .wg-codeblock-btn:hover": { background: "rgba(0, 0, 0, 0.07)" },
461
570
  "& .wg-codeblock-btn:hover .cb-icon": { opacity: "1" },
462
571
  "& .cb-content.cb-start.cb-end .wg-codeblock": {
@@ -471,74 +580,83 @@ const Z = (e, t, r, i) => {
471
580
  width: "5ch"
472
581
  },
473
582
  "& .cb-content": {
474
- backgroundColor: "var(--cm-ic-background, hsl(from black h s l / .1))"
583
+ backgroundColor: "var(--cm-ic-background, hsl(from black h s l / .1))",
584
+ cursor: "text"
475
585
  },
476
586
  "& .cb-error.left": { padding: "0" },
477
587
  "& .cb-error.right": { paddingRight: `${t}px` },
478
588
  "& .cb-error": {
479
589
  display: "inline-block",
480
- backgroundColor: "var(--cm-ic-error, hsl(from red h s l / .5))"
590
+ backgroundColor: "var(--cm-ic-error, hsl(from red h s l / .5))",
591
+ cursor: "text"
481
592
  }
482
593
  });
483
- }, ke = () => {
594
+ }, ye = () => {
484
595
  const e = {
485
596
  marginLeft: 2,
486
597
  paddingLeft: 6
487
598
  };
488
599
  return [
489
- y(D, { mode: "mark" }),
490
- y(D, { mode: "type", options: e }, { eventHandlers: { mousedown: he } }),
491
- Ce(e)
600
+ M(A, { mode: "mark" }),
601
+ M(A, { mode: "type", options: e }, { eventHandlers: { mousedown: Le } }),
602
+ Me(e)
492
603
  ];
493
604
  };
494
- function be(e, t) {
495
- const r = ["Document"], i = {
496
- ATXHeading1: (n, s = !0) => l.line({ class: "h1 hg " + (s ? "sw" : "") }).range(n),
497
- ATXHeading2: (n, s = !0) => l.line({ class: "h2 hg " + (s ? "sw" : "") }).range(n),
498
- ATXHeading3: (n, s = !0) => l.line({ class: "h3 hg " + (s ? "sw" : "") }).range(n),
499
- ATXHeading4: (n, s = !0) => l.line({ class: "h4 hg " + (s ? "sw" : "") }).range(n),
500
- ATXHeading5: (n, s = !0) => l.line({ class: "h5 hg " + (s ? "sw" : "") }).range(n),
501
- ATXHeading6: (n, s = !0) => l.line({ class: "h6 hg " + (s ? "sw" : "") }).range(n)
502
- }, a = {
503
- HeaderMark: (n, s) => l.mark({ class: "mk" }).range(n, s)
605
+ function ve(e, t) {
606
+ const s = ["Document"], a = {
607
+ ATXHeading1: (n, r = !0) => l.line({ class: "h1 hg " + (r ? "sw" : "") }).range(n),
608
+ ATXHeading2: (n, r = !0) => l.line({ class: "h2 hg " + (r ? "sw" : "") }).range(n),
609
+ ATXHeading3: (n, r = !0) => l.line({ class: "h3 hg " + (r ? "sw" : "") }).range(n),
610
+ ATXHeading4: (n, r = !0) => l.line({ class: "h4 hg " + (r ? "sw" : "") }).range(n),
611
+ ATXHeading5: (n, r = !0) => l.line({ class: "h5 hg " + (r ? "sw" : "") }).range(n),
612
+ ATXHeading6: (n, r = !0) => l.line({ class: "h6 hg " + (r ? "sw" : "") }).range(n)
613
+ }, i = {
614
+ HeaderMark: (n, r) => l.mark({ class: "mk" }).range(n, r)
504
615
  }, c = [];
505
616
  return v(e, {
506
- enter: ({ type: n, from: s, to: o }) => (n.name in i && c.push(i[n.name](s, x(e, s, o))), n.name in a && c.push(a[n.name](s, o + 1)), r.includes(n.name) || n.name in i)
617
+ enter: ({ type: n, from: r, to: o }) => (n.name in a && c.push(a[n.name](r, y(e, r, o))), n.name in i && c.push(i[n.name](r, o + 1)), s.includes(n.name) || n.name in a)
507
618
  }), l.set(c, !1);
508
619
  }
509
- const we = M.baseTheme({
620
+ const He = x.baseTheme({
510
621
  "& .h1 ": { fontSize: "2.00em", fontWeight: "bolder" },
511
622
  "& .h2 ": { fontSize: "1.55em", fontWeight: "bolder" },
512
623
  "& .h3 ": { fontSize: "1.35em", fontWeight: "bolder" },
513
624
  "& .h4 ": { fontSize: "1.25em", fontWeight: "bolder" },
514
625
  "& .h5 ": { fontSize: "1.25em", fontWeight: "semi-bold" },
515
626
  "& .h6 ": { fontSize: "1.25em", fontWeight: "normal" },
516
- "& .hg ": { lineHeight: "1.5lh" }
517
- }), Le = M.baseTheme({
627
+ "& .hg ": { lineHeight: "2.4lh" },
628
+ "& .h1, & .h2": { paddingBottom: "16px", position: "relative" },
629
+ "& .h1::after, & .h2::after": {
630
+ content: '""',
631
+ display: "block",
632
+ height: "1px",
633
+ borderBottom: "1px solid var(--cm-border, light-dark(#ddd, #555))"
634
+ }
635
+ }), $e = x.baseTheme({
518
636
  "& .hg .mk": { fontSize: "0" },
519
637
  "&.cm-focused .hg.sw .mk": { fontSize: "inherit" }
520
- }), Te = () => [
521
- y(be, {}),
522
- we,
523
- Le
524
- ], qe = (e) => `<svg class="qt-icon qt-caution" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
638
+ }), Se = () => [
639
+ M(ve, {}),
640
+ He,
641
+ $e
642
+ ], Be = (e) => `<svg class="qt-icon qt-caution" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
525
643
  <path fill-rule="evenodd" clip-rule="evenodd" d="M196.094 54.176C191.229 54.988 188.782 56.222 167.834 68.423C158.562 73.823 147.197 80.435 142.578 83.117C137.959 85.799 129.961 90.458 124.805 93.47C119.648 96.482 111.211 101.406 106.055 104.413C84.503 116.982 82.78 118.066 79.627 121.029C76.043 124.397 73.548 127.986 71.861 132.199C69.426 138.28 69.543 135.024 69.435 199.872L69.336 259.18L70.21 263.086C72.901 275.106 75.333 277.456 99.826 291.697C130.626 309.606 166.896 330.685 175.781 335.841C190.902 344.615 195.154 346.196 201.915 345.563C208.158 344.978 210.107 344.123 225.391 335.264C255.218 317.977 294.844 294.867 311.417 285.093C322.591 278.504 327.153 273.047 329.413 263.569L330.273 259.961V199.609V139.258L329.396 135.938C327.721 129.594 324.327 124.148 319.504 120.066C316.509 117.531 317.424 118.075 248.047 77.651C205.151 52.657 205.162 52.662 196.094 54.176ZM206.746 110.34C212.104 111.475 216.464 114.838 218.945 119.75C220.313 122.457 220.428 126.187 219.575 140.039C219.323 144.121 218.592 157.129 217.95 168.945C214.743 227.944 214.663 228.952 212.917 232.683C208.369 242.403 195.202 244.021 188.814 235.646C185.935 231.872 185.59 229.751 184.375 208.398C183.935 200.664 182.688 180.01 181.605 162.5C178.965 119.84 178.966 119.825 183.963 114.828C188.541 110.25 197.755 108.434 206.746 110.34ZM205.105 254.139C220.433 258.641 225.321 277.899 213.857 288.623C198.306 303.17 174.003 287.211 181.04 267.073C184.452 257.309 195.564 251.336 205.105 254.139Z"/>
526
- </svg>`, Me = (e) => `<svg class="qt-icon qt-warning" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
644
+ </svg>`, Ee = (e) => `<svg class="qt-icon qt-warning" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
527
645
  <path fill-rule="evenodd" clip-rule="evenodd" d="M195.982 53.527C185.35 55.195 178.527 60.217 172.381 70.898C165.461 82.925 148.022 114.138 122.184 160.742C115.633 172.559 100.427 199.98 88.394 221.68C57.505 277.38 55.934 280.238 54.25 283.76C45.588 301.882 55.075 322.592 74.884 328.805L78.32 329.883L198.438 329.99C278.577 330.062 319.42 329.965 321.154 329.699C337.809 327.15 349.594 312.698 348.718 295.898C348.297 287.827 348.329 287.895 328.438 252.148C310.272 219.501 297.79 196.996 280.665 166.016C235.38 84.092 225.675 66.998 222.278 63.175C216.156 56.285 204.847 52.136 195.982 53.527ZM209.263 116.46C218.176 119.751 220.681 125.503 219.95 141.003C219.711 146.059 219.256 155.732 218.938 162.5C218.62 169.268 218.011 180.43 217.584 187.305C216.759 200.593 216.366 207.385 215.42 224.66C215.058 231.282 214.609 236.196 214.259 237.373C210.281 250.771 189.551 250.542 185.792 237.058C185.226 235.025 184.802 229.702 183.979 214.258C183.761 210.176 183.323 202.881 183.006 198.047C182.213 185.991 181.756 178.028 181.054 164.063C180.724 157.51 180.287 149.424 180.081 146.094C178.833 125.858 181.444 119.151 191.797 115.99C194.231 115.247 206.901 115.588 209.263 116.46ZM205.893 260.709C224.265 266.28 227.749 290.936 211.55 300.733C192.458 312.28 170.521 292.287 180.334 272.284C184.884 263.009 196.351 257.816 205.893 260.709Z"/>
528
- </svg>`, ye = (e) => `<svg class="qt-icon qt-important" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
646
+ </svg>`, Ie = (e) => `<svg class="qt-icon qt-important" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
529
647
  <path fill-rule="evenodd" clip-rule="evenodd" d="M190.234 64.334C153.518 67.16 117.751 87.08 95.346 117.181C46.258 183.13 68.9 277.91 142.564 314.837C228.927 358.129 330.405 294.361 330.594 196.68C330.742 119.807 265.747 58.523 190.234 64.334ZM219.531 126.465C220.494 126.947 221.218 127.78 221.98 129.284L223.062 131.421L222.957 139.621L222.852 147.822L221.875 148.263C213.74 151.931 214.67 145.87 214.532 196.094C214.395 245.634 214.025 242.228 219.783 244.354C223.193 245.613 223.047 245.172 223.047 254.214C223.047 263.28 222.791 264.649 220.681 266.868L219.262 268.359H200.09H180.919L179.769 267.392C177.295 265.31 176.926 263.501 177.043 254.054C177.131 246.999 177.246 245.543 177.734 245.295C178.057 245.131 179.5 244.445 180.943 243.77C182.568 243.01 183.905 242.067 184.459 241.291L185.352 240.039L185.456 197.305C185.559 155.268 185.548 154.545 184.78 152.959C183.999 151.347 181.2 149.279 178.906 148.622C176.957 148.063 176.953 148.047 176.953 139.659C176.953 129.986 177.595 127.658 180.624 126.34C182.693 125.439 217.703 125.552 219.531 126.465Z"/>
530
- </svg>`, xe = (e) => `<svg class="qt-icon qt-note" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
648
+ </svg>`, Ae = (e) => `<svg class="qt-icon qt-note" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
531
649
  <path fill-rule="evenodd" clip-rule="evenodd" d="M107.227 63.8769C101.558 65.1289 95.375 67.9369 91.406 71.0639C90.01 72.1639 88.215 73.5439 87.417 74.1299C86.62 74.7159 85.96 75.3819 85.952 75.6099C85.944 75.8379 85.612 76.3739 85.214 76.8009C81.982 80.2699 78.079 87.8199 76.776 93.1259L75.781 97.1769V198.907C75.781 262.894 75.922 301.425 76.16 302.76C76.368 303.928 76.623 305.38 76.726 305.987C78.4 315.889 87.879 327.367 98.558 332.423C107.578 336.694 98.739 336.366 201.563 336.242L291.602 336.133L294.27 335.228C309.157 330.183 318.557 320.61 322.536 306.445L323.633 302.539V228.516C323.633 144.681 323.906 151.756 320.402 144.774L318.615 141.211L286.943 109.57C269.523 92.1679 253.932 76.5229 252.297 74.8049C246.111 68.3049 241.836 65.3209 236.902 64.0589C233.006 63.0629 111.686 62.8929 107.227 63.8769ZM233.77 78.3359C236.715 80.5619 300.292 144.132 300.799 145.356C301.574 147.227 300.841 149.245 299.01 150.282L297.461 151.159L274.127 151.165C258.248 151.17 250.198 151.032 248.931 150.734C240.06 148.649 234.561 144.527 231.043 137.327C228.119 131.344 228.085 130.936 228.21 104.035L228.32 80.5309L229.275 79.5149C229.801 78.9559 230.767 78.3419 231.424 78.1519C233.014 77.6899 232.904 77.6809 233.77 78.3359ZM192.354 175.195C194.09 176.288 194.73 177.166 196.549 180.952C197.924 183.813 194.551 189.489 190.695 190.803C187.744 191.808 132.089 191.686 129.883 190.669C122.396 187.22 123.011 176.607 130.837 174.194C131.386 174.024 145.033 173.917 161.164 173.954L190.492 174.023L192.354 175.195ZM269.587 217.641C271.831 218.313 276.709 223.047 275.158 223.047C275.018 223.047 275.115 223.301 275.373 223.611C277.4 226.054 274.593 231.969 270.523 233.832L268.466 234.774L199.37 234.672L130.273 234.57L128.645 233.465C122.49 229.288 123.57 220.238 130.522 217.722C132.38 217.05 267.351 216.971 269.587 217.641ZM247.509 261.237C249.631 262.341 252.9 266.371 252.223 267.048C252.125 267.146 252.179 267.824 252.344 268.555C252.508 269.285 252.542 269.985 252.417 270.109C252.293 270.233 252.148 270.627 252.096 270.984C251.721 273.539 250.106 275.678 247.498 277.074L245.898 277.93L189.258 278.036C138.155 278.132 132.426 278.082 130.664 277.516C122.018 274.742 123.019 262.33 132.031 260.562C132.783 260.414 158.711 260.317 189.648 260.347L245.898 260.4L247.509 261.237Z"/>
532
- </svg>`, ve = (e) => `<svg class="qt-icon qt-tip" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
650
+ </svg>`, De = (e) => `<svg class="qt-icon qt-tip" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
533
651
  <path fill-rule="evenodd" clip-rule="evenodd" d="M197.813 54.2439C196.932 54.6529 195.79 55.5789 195.274 56.3019L194.336 57.6169L194.219 70.8359L194.102 84.0549L195.076 85.3319C197.802 88.9059 203.271 88.5369 205.364 84.6369C206.151 83.1699 206.872 60.7239 206.215 58.1479C205.842 56.6839 203.21 53.9059 202.196 53.9059C201.901 53.9059 201.155 53.8149 200.537 53.7039C199.864 53.5829 198.772 53.7989 197.813 54.2439ZM116.233 86.0419C113.323 87.6899 112.27 91.6249 113.92 94.6849C115.402 97.4339 131.364 113.194 132.973 113.496C138.573 114.546 142.477 110.343 140.971 104.883C140.465 103.049 125.118 87.2169 122.574 85.9039C120.632 84.9019 118.15 84.9559 116.233 86.0419ZM277.93 85.7559C276.466 86.4829 260.132 103.191 259.49 104.618C257.281 109.529 261.871 114.699 267.084 113.171C268.604 112.726 283.491 98.5359 285.985 95.1559C289.892 89.8619 283.853 82.8139 277.93 85.7559ZM192.578 105.326C174.207 107.647 159.188 115.505 147.608 128.855C123.664 156.459 124.119 191.541 148.828 223.047C160.759 238.26 165.383 249.444 166.996 266.992C167.829 276.054 168.682 277.986 172.825 280.204C174.652 281.182 221.998 281.773 225.389 280.86C229.012 279.884 232.583 275.584 232.967 271.735C233.077 270.63 233.363 267.529 233.603 264.844C234.904 250.229 238.454 241.734 249.573 226.622C261.236 210.772 265.303 202.299 269.01 186.133C271.624 174.731 269.08 156.872 263.028 144.145C251.295 119.471 219.462 101.931 192.578 105.326ZM88.992 165.981C83.602 166.183 82.734 166.309 81.765 167.028C77.932 169.873 77.932 174.66 81.766 177.503C83.099 178.491 104.15 178.988 108.11 178.124C114.214 176.794 115.972 170.208 111.179 166.626C109.976 165.727 101.966 165.494 88.992 165.981ZM289.847 166.481C285.102 168.919 285.171 174.882 289.974 177.45C292.2 178.64 314.187 179.022 317.07 177.921C322.542 175.831 321.886 167.919 316.118 166.457C312.336 165.498 291.723 165.517 289.847 166.481ZM132.14 230.477C129.964 231.352 113.316 248.951 113.059 250.648C112.263 255.894 117.791 260.112 122.389 257.768C124.057 256.918 139.906 240.858 140.656 239.258C143.226 233.779 137.81 228.195 132.14 230.477ZM262.386 230.871C259.487 232.447 258.349 236.857 260.122 239.648C261.348 241.579 276.261 256.486 277.701 257.219C282.933 259.885 288.816 254.457 286.416 249.179C285.559 247.294 271.67 232.693 269.4 231.29C267.429 230.071 264.211 229.879 262.386 230.871ZM174.576 292.561C170.753 293.719 169.922 295.59 169.922 303.033C169.922 310.255 170.618 312.154 173.969 314.076L175.977 315.227L200.113 315.231C223.446 315.234 224.301 315.208 225.774 314.457C229.279 312.669 230.367 309.882 230.446 302.493L230.504 297.04L229.29 295.365C226.903 292.07 228.123 292.201 200.195 292.23C186.66 292.243 175.131 292.392 174.576 292.561ZM180.946 325.217C179.882 325.963 179.759 328.554 180.683 330.774C185.032 341.224 208.831 343.084 217.528 333.654C220.185 330.773 221.108 326.967 219.531 325.391C218.456 324.315 182.465 324.154 180.946 325.217Z"/>
534
- </svg>`, Q = { tip: ve, note: xe, important: ye, warning: Me, caution: qe, none: () => "" };
535
- class He extends $ {
652
+ </svg>`, Z = { tip: De, note: Ae, important: Ie, warning: Ee, caution: Be, none: () => "" };
653
+ class Ze extends $ {
536
654
  constructor(t) {
537
655
  super(), this.type = t;
538
656
  }
539
657
  toDOM() {
540
658
  let t = document.createElement("span");
541
- return t.setAttribute("aria-hidden", "true"), t.className = "wg-qt-icon", t.innerHTML = this.type in Q ? Q[this.type]() : "", t;
659
+ return t.setAttribute("aria-hidden", "true"), t.className = "wg-qt-icon", t.innerHTML = this.type in Z ? Z[this.type]() : "", t;
542
660
  }
543
661
  ignoreEvent() {
544
662
  return !1;
@@ -547,70 +665,70 @@ class He extends $ {
547
665
  return this.type === t.type;
548
666
  }
549
667
  }
550
- function $e(e, t) {
551
- const r = ["Document", "ListItem", "BulletList", "OrderedList"], i = {
668
+ function Qe(e, t) {
669
+ const s = ["Document", "ListItem", "BulletList", "OrderedList"], a = {
552
670
  none: "bq-none-mark",
553
671
  note: "bq-note-mark",
554
672
  tip: "bq-tip-mark",
555
673
  warning: "bq-warning-mark",
556
674
  important: "bq-important-mark",
557
675
  caution: "bq-caution-mark"
558
- }, a = {
559
- QuoteMark: (s, o, d) => {
676
+ }, i = {
677
+ QuoteMark: (r, o, d) => {
560
678
  const u = ["qt-mk"];
561
- return d in i ? u.push(i[d]) : u.push(i.none), l.mark({
679
+ return d in a ? u.push(a[d]) : u.push(a.none), l.mark({
562
680
  class: u.join(" ")
563
- }).range(s, o);
681
+ }).range(r, o);
564
682
  },
565
- QuoteType: (s, o, d) => l.widget({
566
- widget: new He(d),
683
+ QuoteType: (r, o, d) => l.widget({
684
+ widget: new Ze(d),
567
685
  side: 1
568
- }).range(s),
569
- BlockquoteLine: (s, o) => l.line({ class: "bq-line " + (o ? "sw" : "") }).range(s),
570
- quoteLine: (s, o, d) => {
686
+ }).range(r),
687
+ BlockquoteLine: (r, o) => l.line({ class: "bq-line " + (o ? "sw" : "") }).range(r),
688
+ quoteLine: (r, o, d) => {
571
689
  const u = `calc(100% - ${Math.max(0, d) + 1.2}ch)`;
572
690
  return l.mark({
573
691
  class: "bq-text-line",
574
692
  attributes: { style: `width: ${u}` }
575
- }).range(s, o);
693
+ }).range(r, o);
576
694
  }
577
- }, c = (s, o, d, u) => {
695
+ }, c = (r, o, d, u) => {
578
696
  const g = [], m = d.number, w = (p, T) => {
579
697
  let b = 0;
580
698
  const f = [];
581
- let k = 0;
699
+ let C = 0;
582
700
  return {
583
- enter({ name: L, node: q, from: C, to: H }) {
584
- L === "Blockquote" && f.push(Se(s, q)), L === "QuoteMark" && (g.push(a[L](C, H, f[b])), k = H, b++), L === "QuoteType" && g.push(a[L](C, H, f[b - 1]));
701
+ enter({ name: L, node: q, from: k, to: H }) {
702
+ L === "Blockquote" && f.push(ze(r, q)), L === "QuoteMark" && (g.push(i[L](k, H, f[b])), C = H, b++), L === "QuoteType" && g.push(i[L](k, H, f[b - 1]));
585
703
  },
586
- leave({ name: L, from: q, to: C }) {
587
- L === "Paragraph" && k < T && g.push(a.quoteLine(k, T, k - p));
704
+ leave({ name: L, from: q, to: k }) {
705
+ L === "Paragraph" && C < T && g.push(i.quoteLine(C, T, C - p));
588
706
  }
589
707
  };
590
708
  };
591
709
  for (let p = m; p < u + m; p++) {
592
- const { from: T, to: b } = s.state.doc.line(p), { from: f, to: k } = o, L = x(s, f, k);
593
- g.push(a.BlockquoteLine(T, L)), I(s.state).iterate({ from: T, to: b, ...w(T, b) });
710
+ const { from: T, to: b } = r.state.doc.line(p), { from: f, to: C } = o, L = y(r, f, C);
711
+ g.push(i.BlockquoteLine(T, L)), I(r.state).iterate({ from: T, to: b, ...w(T, b) });
594
712
  }
595
713
  return g;
596
714
  }, n = [];
597
715
  return v(e, {
598
- enter: ({ name: s, from: o, to: d, node: u }) => {
599
- if (s === "Blockquote") {
716
+ enter: ({ name: r, from: o, to: d, node: u }) => {
717
+ if (r === "Blockquote") {
600
718
  const g = e.state.sliceDoc(o, d).split(`
601
719
  `), m = e.state.doc.lineAt(o);
602
720
  n.push(...c(e, u, m, g.length));
603
721
  }
604
- return r.includes(s);
722
+ return s.includes(r);
605
723
  }
606
724
  }), l.set(n, !0);
607
725
  }
608
- const Se = (e, t) => {
609
- const r = t.getChild("QuoteType");
610
- if (!r) return "none";
611
- const i = r.getChild("QuoteTypeText");
612
- return i ? e.state.sliceDoc(i.from, i.to).toLowerCase() : "none";
613
- }, Be = () => M.baseTheme({
726
+ const ze = (e, t) => {
727
+ const s = t.getChild("QuoteType");
728
+ if (!s) return "none";
729
+ const a = s.getChild("QuoteTypeText");
730
+ return a ? e.state.sliceDoc(a.from, a.to).toLowerCase() : "none";
731
+ }, Re = () => x.baseTheme({
614
732
  "& .qt-mk": {
615
733
  // outline: "1px red solid",
616
734
  position: "relative",
@@ -659,160 +777,47 @@ const Se = (e, t) => {
659
777
  "& .wg-qt-icon > .qt-important": { fill: "var(--bq-important-mark, rebeccapurple)" },
660
778
  "& .wg-qt-icon > .qt-warning": { fill: "var(--bq-warning-mark, peru)" },
661
779
  "& .wg-qt-icon > .qt-caution": { fill: "var(--bq-caution-mark, red)" }
662
- }), Ee = () => [
663
- y($e, {}),
664
- Be()
665
- ], Ae = {
780
+ }), Ne = () => [
781
+ M(Qe, {}),
782
+ Re()
783
+ ], Pe = {
666
784
  name: "QuoteTypeParser",
667
785
  parse(e, t) {
668
786
  if ((() => {
669
- for (let i = 0; i < e.depth; i++)
670
- if (e.parentType(i).name === "Blockquote") return !0;
787
+ for (let a = 0; a < e.depth; a++)
788
+ if (e.parentType(a).name === "Blockquote") return !0;
671
789
  return !1;
672
790
  })()) {
673
- const i = t.text.match(/^(\s*>\s*)+(\[!\w+\])\s*$/);
674
- if (i && i[2]) {
675
- const a = i[2], c = t.text.indexOf(a), n = c + a.length, s = e.elt("QuoteType", e.lineStart + c, e.lineStart + n);
676
- s.children = [
791
+ const a = t.text.match(/^(\s*>\s*)+(\[!\w+\])\s*$/);
792
+ if (a && a[2]) {
793
+ const i = a[2], c = t.text.indexOf(i), n = c + i.length, r = e.elt("QuoteType", e.lineStart + c, e.lineStart + n);
794
+ r.children = [
677
795
  e.elt("QuoteTypeMark", e.lineStart + c, e.lineStart + c + 2),
678
796
  e.elt("QuoteTypeText", e.lineStart + c + 2, e.lineStart + n - 1),
679
797
  e.elt("QuoteTypeMark", e.lineStart + n - 1, e.lineStart + n)
680
- ], e.addElement(s);
798
+ ], e.addElement(r);
681
799
  }
682
800
  }
683
801
  return !1;
684
802
  }
685
- }, Ie = {
803
+ }, _e = {
686
804
  defineNodes: [
687
- { name: "QuoteType", style: { "QuoteType/...": A.content } },
688
- { name: "QuoteTypeMark", style: A.processingInstruction },
689
- { name: "QuoteTypeText", style: A.bool }
805
+ { name: "QuoteType", style: { "QuoteType/...": E.content } },
806
+ { name: "QuoteTypeMark", style: E.processingInstruction },
807
+ { name: "QuoteTypeText", style: E.bool }
690
808
  ],
691
- parseBlock: [Ae]
692
- }, N = (e, t, r) => {
693
- const i = e.state.sliceDoc(t, r), a = i.match(/\[(.*)\]/);
694
- return a !== null && a.length > 1 ? {
695
- text: a[1],
696
- from: t + i.indexOf(a[1]),
697
- to: t + 1 + a[1].length
698
- } : { text: null };
809
+ parseBlock: [Pe]
699
810
  };
700
- function De(e, t) {
701
- const r = ["FencedCode", "Image", "Link"], i = {
702
- Link: {
703
- marks: ["LinkMark"],
704
- url: "URL"
705
- }
706
- }, a = {
707
- Link: (n, s, o) => l.mark({ class: "link " + (o ? "sw" : "") }).range(n, s),
708
- LinkMark: (n, s) => l.mark({ class: "lk-mk" }).range(n, s),
709
- TextDec: (n, s, o) => l.mark({
710
- class: "lk-text url",
711
- tagName: "a",
712
- attributes: { href: o, target: "_blank" }
713
- }).range(n, s),
714
- URL: (n, s, o) => l.mark({
715
- class: "lk-url url",
716
- tagName: "a",
717
- attributes: { href: o, target: "_blank" }
718
- }).range(n, s)
719
- }, c = [];
720
- return v(e, {
721
- enter: ({ type: { name: n }, from: s, to: o, node: d }) => {
722
- if (n === "URL" && c.push(a.URL(s, o, e.state.sliceDoc(s, o))), !(n in i)) return !r.includes(n);
723
- c.push(a.Link(s, o, x(e, s, o)));
724
- const u = i[n].marks.flatMap((w) => d.getChildren(w));
725
- c.push(...u.map(({ from: w, to: p }) => a.LinkMark(w, p)));
726
- const g = d.getChild(i[n].url);
727
- let m = null;
728
- if (g !== null) {
729
- const { from: w, to: p } = g;
730
- m = e.state.sliceDoc(w, p), c.push(a.URL(w, p, m));
731
- }
732
- if (d.getChild("Image") === null) {
733
- const { text: w, from: p, to: T } = N(e, s, o);
734
- w !== null && m !== null && c.push(a.TextDec(p, T, m));
735
- }
736
- return !1;
737
- }
738
- }), l.set(c, !0);
739
- }
740
- const Ze = (e, t) => e.ctrlKey ? Qe(
741
- e.target
742
- /* as HTMLElement */
743
- ) : !1, Qe = (e) => {
744
- if (e.nodeName === "A" && e.href && e.classList.contains("url"))
745
- return window.open(e.href, e.target), !0;
746
- }, ze = M.baseTheme({
747
- ".lk-mk, .link > .lk-url": { display: "none" },
748
- "&.cm-focused .link.sw .lk-mk, &.cm-focused .link.sw .lk-url": { display: "inherit" }
749
- }), Re = () => [
750
- y(De, {}, { eventHandlers: { mousedown: Ze } }),
751
- ze
752
- ];
753
- class Ne extends $ {
754
- constructor(t, r = null, i = "[image]") {
755
- super(), this.img = t, this.url = r, this.alt = i;
756
- }
757
- toDOM() {
758
- let t = document.createElement("img");
759
- if (t.src = this.img, t.alt = this.alt, t.style.minWidth = "100px", this.url) {
760
- let r = document.createElement("a");
761
- return r.href = this.url, r.target = "_blank", r.classList.add("url"), r.appendChild(t), r;
762
- } else
763
- return t;
764
- }
765
- eq(t) {
766
- return this.img === t.img;
767
- }
768
- ignoreEvent() {
769
- return !1;
770
- }
771
- }
772
- function Pe(e, t) {
773
- const r = ["FencedCode", "Image"], i = [];
774
- return v(e, {
775
- enter: ({ type: { name: a }, from: c, to: n, node: s }) => {
776
- if (a === "Image" && !x(e, c, n)) {
777
- const { from: o, to: d } = s.getChild("URL"), u = e.state.sliceDoc(o, d), { text: g } = N(e, c, n);
778
- i.push(
779
- l.replace({
780
- widget: new Ne(u, _e(e, s), g)
781
- }).range(c, n)
782
- );
783
- }
784
- return !r.includes(a);
785
- }
786
- }), l.set(i, !1);
787
- }
788
- const _e = (e, t) => {
789
- const i = t.parent.getChild("URL");
790
- if (i !== null) {
791
- const { from: a, to: c } = i;
792
- return e.state.sliceDoc(a, c);
793
- }
794
- return null;
795
- }, Oe = (e, t) => e.ctrlKey ? Ve(
796
- e.target
797
- /* as HTMLElement */
798
- ) : !1, Ve = (e) => {
799
- const t = e.parentElement ?? !1;
800
- if (e.nodeName === "IMG" && t && t.nodeName === "A" && t.classList.contains("url"))
801
- return !0;
802
- }, We = M.baseTheme({}), Fe = () => [
803
- y(Pe, {}, { eventHandlers: { mousedown: Oe } }),
804
- We
805
- ];
806
- class z extends $ {
807
- constructor(t, r = !1) {
808
- super(), this.content = t, this.tag = r;
811
+ class Q extends $ {
812
+ constructor(t, s = !1) {
813
+ super(), this.content = t, this.tag = s;
809
814
  }
810
815
  toDOM() {
811
816
  const t = document.createElement("div");
812
817
  t.className = "cm-html-widget", t.setAttribute("aria-hidden", "true");
813
- const r = this.content.replace(/^```html\n?/, "").replace(/```$/, "").trim();
814
- return t.innerHTML = (this.tag ? '<span class="cm-rendered-tag">RTAG</span>' : "") + r, t.querySelectorAll("script").forEach((i) => {
815
- i.parentNode.removeChild(i);
818
+ const s = this.content.replace(/^```html\n?/, "").replace(/```$/, "").trim();
819
+ return t.innerHTML = (this.tag ? '<span class="cm-rendered-tag">RTAG</span>' : "") + s, t.querySelectorAll("script").forEach((a) => {
820
+ a.parentNode.removeChild(a);
816
821
  }), t;
817
822
  }
818
823
  ignoreEvent(t) {
@@ -822,48 +827,48 @@ class z extends $ {
822
827
  return t.content === this.content;
823
828
  }
824
829
  }
825
- const P = G.define(), Ue = K.define({
830
+ const N = U.define(), Oe = X.define({
826
831
  create(e) {
827
832
  return l.none;
828
833
  },
829
834
  update(e, t) {
830
835
  e = e.map(t.changes);
831
- for (let r of t.effects)
832
- if (r.is(P))
833
- return r.value;
836
+ for (let s of t.effects)
837
+ if (s.is(N))
838
+ return s.value;
834
839
  return e;
835
840
  },
836
- provide: (e) => R.decorations.from(e)
841
+ provide: (e) => z.decorations.from(e)
837
842
  });
838
- function Xe(e) {
843
+ function Ve(e) {
839
844
  const t = [
840
845
  /<br>/,
841
846
  /<img .*\/>/
842
- ], r = {
843
- HTMLBlock: (a, c) => {
844
- const n = e.state.doc.sliceString(a, c);
847
+ ], s = {
848
+ HTMLBlock: (i, c) => {
849
+ const n = e.state.doc.sliceString(i, c);
845
850
  return [l.replace({
846
- widget: new z(n),
851
+ widget: new Q(n),
847
852
  inclusive: !1
848
- }).range(a, c)];
853
+ }).range(i, c)];
849
854
  },
850
- HTMLTag: (a, c) => {
851
- const n = e.state.doc.sliceString(a, c);
852
- return console.log(n), t.some((s) => s.test(n)) ? (console.log(n), [
855
+ HTMLTag: (i, c) => {
856
+ const n = e.state.doc.sliceString(i, c);
857
+ return console.log(n), t.some((r) => r.test(n)) ? (console.log(n), [
853
858
  l.replace({
854
- widget: new z(n, !0),
859
+ widget: new Q(n, !0),
855
860
  inclusive: !1
856
- }).range(a, c)
861
+ }).range(i, c)
857
862
  ]) : [];
858
863
  }
859
- }, i = [];
864
+ }, a = [];
860
865
  return v(e, {
861
- enter: ({ type: a, from: c, to: n, node: s }) => {
862
- a.name in r && (!x(e, c, n) || !e.hasFocus) && i.push(...r[a.name](c, n));
866
+ enter: ({ type: i, from: c, to: n, node: r }) => {
867
+ i.name in s && (!y(e, c, n) || !e.hasFocus) && a.push(...s[i.name](c, n));
863
868
  }
864
- }), l.set(i);
869
+ }), l.set(a);
865
870
  }
866
- const je = M.baseTheme({
871
+ const We = x.baseTheme({
867
872
  "& .cm-html-widget": {
868
873
  all: "unset"
869
874
  // outline: "red solid 2px",
@@ -875,60 +880,65 @@ const je = M.baseTheme({
875
880
  marginTop: "0"
876
881
  },
877
882
  "& .cm-widgetBuffer": { display: "none" }
878
- }), Ge = R.updateListener.of((e) => {
883
+ }), Fe = z.updateListener.of((e) => {
879
884
  if (e.selectionSet || e.docChanged || e.focusChanged || e.geometryChanged) {
880
- const t = Xe(e.view);
881
- e.view.dispatch({ effects: P.of(t) });
885
+ const t = Ve(e.view);
886
+ e.view.dispatch({ effects: N.of(t) });
882
887
  }
883
- }), Ke = () => [
884
- Ue,
885
- Ge,
886
- je
887
- ], ct = (e) => {
888
+ }), Ue = () => [
889
+ Oe,
890
+ Fe,
891
+ We
892
+ ], Xe = (e) => {
888
893
  const {
889
- markdown: {
890
- defaultCodeLanguage: t,
891
- codeLanguages: r,
892
- addKeymap: i,
893
- base: a,
894
- completeHTMLTags: c,
895
- htmlTagLanguage: n,
896
- extensions: s = []
897
- } = {}
898
- // theme
899
- } = e ?? {}, o = {
900
894
  defaultCodeLanguage: t,
901
- codeLanguages: r || V,
902
- addKeymap: i,
903
- base: a,
895
+ codeLanguages: s,
896
+ addKeymap: a,
897
+ base: i,
898
+ completeHTMLTags: c,
899
+ htmlTagLanguage: n,
900
+ extensions: r = []
901
+ } = e || {}, o = {
902
+ defaultCodeLanguage: t,
903
+ codeLanguages: s || P,
904
+ addKeymap: a,
905
+ base: i,
904
906
  completeHTMLTags: c,
905
907
  htmlTagLanguage: n,
906
- extensions: [...s, F, J, Ie]
908
+ extensions: [...r, O, _e]
907
909
  };
910
+ return _(o);
911
+ }, ot = (e) => {
912
+ const {
913
+ markdown: t
914
+ // theme
915
+ } = e ?? {};
908
916
  return [
909
- W(o),
917
+ Xe(t),
918
+ Y(),
910
919
  ne(),
911
- ie(),
912
- ge(),
913
- ke(),
914
- Te(),
915
- Re(),
916
- Ee(),
917
- Fe(),
918
- Ke()
920
+ ae(),
921
+ me(),
922
+ we(),
923
+ ye(),
924
+ Se(),
925
+ Ne(),
926
+ Ue()
919
927
  // (theme) ? themeVariant.of(catppuccin(theme)) : [],
920
928
  ];
921
929
  };
922
930
  export {
923
- ke as CodePlugin,
924
- Te as HeadingPlugin,
925
- ne as HrPlugin,
926
- Ke as HtmlPlugin,
927
- Fe as ImagePlugin,
928
- ie as InlinePlugin,
929
- Re as LinkPlugin,
930
- ge as ListPlugin,
931
- Ee as QuotePlugin,
932
- Ie as QuoteType,
933
- ct as gnosis
931
+ ye as CodePlugin,
932
+ Se as HeadingPlugin,
933
+ Y as HrPlugin,
934
+ Ue as HtmlPlugin,
935
+ me as ImagePlugin,
936
+ ne as InlinePlugin,
937
+ ae as LinkPlugin,
938
+ we as ListPlugin,
939
+ Ne as QuotePlugin,
940
+ _e as QuoteType,
941
+ ot as gnosis,
942
+ Xe as markdown,
943
+ rt as unsetMarks
934
944
  };