zt-react-milkdown 0.1.0 → 0.1.2
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/{dist-Cxaq2crg.js → commands-BJpevWrH.js} +123 -123
- package/dist/commands-BmZHd6RL.js +2 -0
- package/dist/{dist-CPVooDwj.cjs → commands-CM7IuhpT.cjs} +2 -2
- package/dist/commands-f4yOm8DQ.cjs +1 -0
- package/dist/{debounce-Bqj_3iJs.cjs → debounce-C_TNzOFT.cjs} +1 -1
- package/dist/{dist-DaM7GJv6.js → dist-CLTsQjPD.js} +319 -318
- package/dist/{dist-CxZn1qUo.js → dist-CZTw9GLV.js} +198 -198
- package/dist/dist-DQnWlYyo.cjs +5 -0
- package/dist/dist-ZPtYoqTI.cjs +1 -0
- package/dist/floating-ui.dom-CV-TLBRq.cjs +1 -0
- package/dist/floating-ui.dom-CoOubeUs.js +762 -0
- package/dist/index.cjs +25 -149
- package/dist/index.mjs +6235 -15737
- package/dist/{lib-C8xOD1Bp.cjs → lib-5pUyY-Tl.cjs} +1 -1
- package/dist/{lib-DkE7Uq2b.js → lib-Bhr5EVOu.js} +110 -112
- package/dist/lib-BmAQCwSQ.cjs +1 -0
- package/dist/{lib-wmHesNI0.js → lib-C1A-pN4b.js} +574 -575
- package/dist/lib-CVebEyb8.cjs +4 -0
- package/dist/lib-ChwoE6v5.js +331 -0
- package/dist/lib-DIx8C5AZ.cjs +1 -0
- package/dist/lib-DVE2k9i1.js +387 -0
- package/dist/{lib-DzK_kn7a.js → lib-D_0WAhKU.js} +3 -3
- package/dist/{lib-m8lKZKxK.js → lib-Dd20rlmV.js} +28 -28
- package/dist/lib-De0djIEV.cjs +5 -0
- package/dist/{lib-D4HMdvmK.cjs → lib-DgEwQN1U.cjs} +1 -1
- package/dist/{dist-Dhukmh4L.js → lib-DmD940Fq.js} +2849 -1735
- package/dist/lib-Dplx6t-N.cjs +3 -0
- package/dist/lib-DzY83R_P.cjs +39 -0
- package/dist/lib-F08NY8fk.cjs +1 -0
- package/dist/{lib-B0rHJ9lJ.js → lib-_NDReOAt.js} +3 -3
- package/dist/{lib-CK9MEMX-.js → lib-bsXGz3fj.js} +28 -27
- package/dist/schema-list-D9Q6QKgo.cjs +1 -0
- package/dist/schema-list-DooYP5HM.js +110 -0
- package/dist/src/core/createEditor.d.ts.map +1 -1
- package/dist/src/local/en-US.d.ts.map +1 -1
- package/dist/src/local/zh-CN.d.ts.map +1 -1
- package/dist/src/plugins/custom/block-transform/block-transform.d.ts +15 -0
- package/dist/src/plugins/custom/block-transform/block-transform.d.ts.map +1 -0
- package/dist/src/plugins/custom/block-transform/index.d.ts +2 -0
- package/dist/src/plugins/custom/block-transform/index.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/index.d.ts +6 -0
- package/dist/src/plugins/custom/math/index.d.ts.map +1 -1
- package/dist/src/plugins/custom/math/math-block-editable.d.ts.map +1 -1
- package/dist/src/plugins/custom/math/math-inline-arrow-navigation.d.ts +5 -0
- package/dist/src/plugins/custom/math/math-inline-arrow-navigation.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/math-inline-edit-plugin.d.ts +29 -0
- package/dist/src/plugins/custom/math/math-inline-edit-plugin.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/math-inline-editable.d.ts +7 -0
- package/dist/src/plugins/custom/math/math-inline-editable.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/math-plugin.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/constants.d.ts +5 -1
- package/dist/src/plugins/custom/selection-tooltip/constants.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/index.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/tooltip-view.d.ts +34 -3
- package/dist/src/plugins/custom/selection-tooltip/tooltip-view.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/types.d.ts +16 -1
- package/dist/src/plugins/custom/selection-tooltip/types.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu-commands.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu-logic.d.ts +4 -0
- package/dist/src/plugins/custom/slash-menu/slash-menu-logic.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu-view.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu.d.ts.map +1 -1
- package/dist/src/plugins/preset-common.d.ts +6 -0
- package/dist/src/plugins/preset-common.d.ts.map +1 -1
- package/dist/src/react/hooks/useMilkdownEditor.d.ts +2 -2
- package/dist/src/react/hooks/useMilkdownEditor.d.ts.map +1 -1
- package/dist/src/types/editor.d.ts +35 -5
- package/dist/src/types/editor.d.ts.map +1 -1
- package/dist/state-BC1dqWPQ.cjs +1 -0
- package/dist/state-BvRk9kiK.cjs +0 -0
- package/dist/state-BvRk9kiK.js +0 -0
- package/dist/state-rTW_1XVf.js +3 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/commands-CDrea4WB.cjs +0 -1
- package/dist/commands-DoqeX5uJ.js +0 -36
- package/dist/dist-BCCSKc3M.cjs +0 -5
- package/dist/dist-C0PSMrs7.cjs +0 -37
- package/dist/dist-mOpTMw1E.cjs +0 -1
- package/dist/floating-ui.dom-CKbcbmJV.js +0 -883
- package/dist/floating-ui.dom-VaZZ2gzS.cjs +0 -1
- package/dist/index.browser-5LtNN9G9.cjs +0 -1
- package/dist/index.browser-D2DmEB8o.js +0 -26
- package/dist/lib-38nxOnTd.cjs +0 -4
- package/dist/lib-8Tr6mAln.cjs +0 -1
- package/dist/lib-BJgvZywM.cjs +0 -3
- package/dist/lib-BNOSyYeU.cjs +0 -3
- package/dist/lib-C5AzmhNY.cjs +0 -5
- package/dist/lib-CCUU16r8.js +0 -1081
- package/dist/lib-DWZA8C0h.cjs +0 -1
- package/dist/lib-Dbe-cVjv.js +0 -367
- package/dist/lib-IahjxPWM.cjs +0 -3
- package/dist/lib-r5eNG0sa.js +0 -754
- package/dist/rolldown-runtime-CerMd-t8.cjs +0 -1
- package/dist/rolldown-runtime-DnwLefa7.js +0 -23
- package/dist/schema-list-DSdBEAWW.js +0 -171
- package/dist/schema-list-bL8FNes5.cjs +0 -1
- package/dist/state-CHAiIqOA.cjs +0 -1
- package/dist/state-DNxqltZl.js +0 -16
- /package/dist/{debounce-Cuk3VGPr.js → debounce-Z8-khnlZ.js} +0 -0
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { A as e, C as t, E as n, O as r, S as i, St as a, T as o, V as s, _t as c, a as l, b as u, bt as d, c as ee, d as f, f as p, g as m, gt as te, h, i as g, k as _, l as v, m as ne, r as y, s as b, t as x, u as re, v as S, w as ie, x as C, y as w, yt as T } from "./lib-DmD940Fq.js";
|
|
2
|
+
import { A as E, C as D, O, S as k, n as A } from "./dist-CLTsQjPD.js";
|
|
3
|
+
//#region node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/index.browser.js
|
|
4
|
+
var j = (e) => crypto.getRandomValues(new Uint8Array(e)), ae = (e, t, n) => {
|
|
5
|
+
let r = 256 - 256 % e.length;
|
|
6
|
+
if (r === 256) {
|
|
7
|
+
let r = e.length - 1;
|
|
8
|
+
return (i = t) => {
|
|
9
|
+
if (!i) return "";
|
|
10
|
+
let a = "";
|
|
11
|
+
for (;;) {
|
|
12
|
+
let t = n(i), o = i;
|
|
13
|
+
for (; o--;) if (a += e[t[o] & r], a.length >= i) return a;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
let i = Math.ceil(1.6 * 256 * t / r);
|
|
18
|
+
return (a = t) => {
|
|
19
|
+
if (!a) return "";
|
|
20
|
+
let o = "";
|
|
21
|
+
for (;;) {
|
|
22
|
+
let t = n(i), s = i;
|
|
23
|
+
for (; s--;) if (t[s] < r && (o += e[t[s] % e.length], o.length >= a)) return o;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}, oe = (e, t = 21) => ae(e, t | 0, j), se = /* @__PURE__ */ a({
|
|
27
|
+
$command: () => P,
|
|
28
|
+
$commandAsync: () => ce,
|
|
29
|
+
$ctx: () => G,
|
|
30
|
+
$inputRule: () => F,
|
|
31
|
+
$inputRuleAsync: () => le,
|
|
32
|
+
$mark: () => R,
|
|
33
|
+
$markAsync: () => z,
|
|
34
|
+
$markAttr: () => X,
|
|
35
|
+
$markSchema: () => q,
|
|
36
|
+
$node: () => B,
|
|
37
|
+
$nodeAsync: () => V,
|
|
38
|
+
$nodeAttr: () => Y,
|
|
39
|
+
$nodeSchema: () => K,
|
|
40
|
+
$pasteRule: () => I,
|
|
41
|
+
$pasteRuleAsync: () => L,
|
|
42
|
+
$prose: () => H,
|
|
43
|
+
$proseAsync: () => U,
|
|
44
|
+
$remark: () => Z,
|
|
45
|
+
$shortcut: () => W,
|
|
46
|
+
$shortcutAsync: () => ue,
|
|
47
|
+
$useKeymap: () => J,
|
|
48
|
+
$view: () => de,
|
|
49
|
+
$viewAsync: () => fe,
|
|
50
|
+
addTimer: () => N,
|
|
51
|
+
callCommand: () => pe,
|
|
52
|
+
forceUpdate: () => me,
|
|
53
|
+
getHTML: () => he,
|
|
54
|
+
getMarkdown: () => ge,
|
|
55
|
+
insert: () => _e,
|
|
56
|
+
insertPos: () => be,
|
|
57
|
+
markdownToSlice: () => $,
|
|
58
|
+
nanoid: () => M,
|
|
59
|
+
outline: () => Q,
|
|
60
|
+
pipe: () => Se,
|
|
61
|
+
replaceAll: () => ve,
|
|
62
|
+
replaceRange: () => xe,
|
|
63
|
+
setAttr: () => ye
|
|
64
|
+
}), M = oe("abcedfghicklmn", 10);
|
|
65
|
+
function N(e, t, n) {
|
|
66
|
+
let r = c(n || M()), i = !1, a = (n) => (n.record(r), n.update(t, (e) => e.concat(r)), async () => {
|
|
67
|
+
let o = await e(n, a, () => {
|
|
68
|
+
n.done(r), i = !0;
|
|
69
|
+
});
|
|
70
|
+
return i || n.done(r), () => {
|
|
71
|
+
if (n.update(t, (e) => e.filter((e) => e !== r)), n.clearTimer(r), o) {
|
|
72
|
+
let e = o();
|
|
73
|
+
e && "then" in e && e.catch(console.error);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
return a.timer = r, a;
|
|
78
|
+
}
|
|
79
|
+
function P(e, t) {
|
|
80
|
+
let n = v(e), r = (i) => async () => {
|
|
81
|
+
r.key = n, await i.wait(x);
|
|
82
|
+
let a = t(i);
|
|
83
|
+
return i.get(b).create(n, a), r.run = (t) => i.get(b).call(e, t), () => {
|
|
84
|
+
i.get(b).remove(n);
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
return r;
|
|
88
|
+
}
|
|
89
|
+
function ce(e, t, n) {
|
|
90
|
+
let r = v(e);
|
|
91
|
+
return N(async (n, i) => {
|
|
92
|
+
await n.wait(x);
|
|
93
|
+
let a = await t(n);
|
|
94
|
+
return n.get(b).create(r, a), i.run = (t) => n.get(b).call(e, t), i.key = r, () => {
|
|
95
|
+
n.get(b).remove(r);
|
|
96
|
+
};
|
|
97
|
+
}, ee, n);
|
|
98
|
+
}
|
|
99
|
+
function F(e) {
|
|
100
|
+
let t = (n) => async () => {
|
|
101
|
+
await n.wait(l);
|
|
102
|
+
let r = e(n);
|
|
103
|
+
return n.update(h, (e) => [...e, r]), t.inputRule = r, () => {
|
|
104
|
+
n.update(h, (e) => e.filter((e) => e !== r));
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
return t;
|
|
108
|
+
}
|
|
109
|
+
function le(e, t) {
|
|
110
|
+
return N(async (t, n) => {
|
|
111
|
+
await t.wait(l);
|
|
112
|
+
let r = await e(t);
|
|
113
|
+
return t.update(h, (e) => [...e, r]), n.inputRule = r, () => {
|
|
114
|
+
t.update(h, (e) => e.filter((e) => e !== r));
|
|
115
|
+
};
|
|
116
|
+
}, f, t);
|
|
117
|
+
}
|
|
118
|
+
function I(e) {
|
|
119
|
+
let n = (r) => async () => {
|
|
120
|
+
await r.wait(l);
|
|
121
|
+
let i = e(r);
|
|
122
|
+
return r.update(t, (e) => [...e, i]), n.pasteRule = i, () => {
|
|
123
|
+
r.update(t, (e) => e.filter((e) => e !== i));
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
return n;
|
|
127
|
+
}
|
|
128
|
+
function L(e, n) {
|
|
129
|
+
return N(async (n, r) => {
|
|
130
|
+
await n.wait(l);
|
|
131
|
+
let i = await e(n);
|
|
132
|
+
return n.update(t, (e) => [...e, i]), r.pasteRule = i, () => {
|
|
133
|
+
n.update(t, (e) => e.filter((e) => e !== i));
|
|
134
|
+
};
|
|
135
|
+
}, ie, n);
|
|
136
|
+
}
|
|
137
|
+
function R(e, t) {
|
|
138
|
+
let n = (r) => async () => {
|
|
139
|
+
let i = t(r);
|
|
140
|
+
return r.update(w, (t) => [...t.filter((t) => t[0] !== e), [e, i]]), n.id = e, n.schema = i, () => {
|
|
141
|
+
r.update(w, (t) => t.filter(([t]) => t !== e));
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
return n.type = (t) => {
|
|
145
|
+
let n = t.get(r).marks[e];
|
|
146
|
+
if (!n) throw T(e);
|
|
147
|
+
return n;
|
|
148
|
+
}, n;
|
|
149
|
+
}
|
|
150
|
+
function z(e, t, n) {
|
|
151
|
+
let i = N(async (n, r, i) => {
|
|
152
|
+
let a = await t(n);
|
|
153
|
+
return n.update(w, (t) => [...t.filter((t) => t[0] !== e), [e, a]]), r.id = e, r.schema = a, i(), () => {
|
|
154
|
+
n.update(w, (t) => t.filter(([t]) => t !== e));
|
|
155
|
+
};
|
|
156
|
+
}, _, n);
|
|
157
|
+
return i.type = (t) => {
|
|
158
|
+
let n = t.get(r).marks[e];
|
|
159
|
+
if (!n) throw T(e);
|
|
160
|
+
return n;
|
|
161
|
+
}, i;
|
|
162
|
+
}
|
|
163
|
+
function B(e, t) {
|
|
164
|
+
let n = (r) => async () => {
|
|
165
|
+
let i = t(r);
|
|
166
|
+
return r.update(C, (t) => [...t.filter((t) => t[0] !== e), [e, i]]), n.id = e, n.schema = i, () => {
|
|
167
|
+
r.update(C, (t) => t.filter(([t]) => t !== e));
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
return n.type = (t) => {
|
|
171
|
+
let n = t.get(r).nodes[e];
|
|
172
|
+
if (!n) throw d(e);
|
|
173
|
+
return n;
|
|
174
|
+
}, n;
|
|
175
|
+
}
|
|
176
|
+
function V(e, t, n) {
|
|
177
|
+
let i = N(async (n, r, i) => {
|
|
178
|
+
let a = await t(n);
|
|
179
|
+
return n.update(C, (t) => [...t.filter((t) => t[0] !== e), [e, a]]), r.id = e, r.schema = a, i(), () => {
|
|
180
|
+
n.update(C, (t) => t.filter(([t]) => t !== e));
|
|
181
|
+
};
|
|
182
|
+
}, _, n);
|
|
183
|
+
return i.type = (t) => {
|
|
184
|
+
let n = t.get(r).nodes[e];
|
|
185
|
+
if (!n) throw d(e);
|
|
186
|
+
return n;
|
|
187
|
+
}, i;
|
|
188
|
+
}
|
|
189
|
+
function H(e) {
|
|
190
|
+
let t, n = (n) => async () => (await n.wait(l), t = e(n), n.update(o, (e) => [...e, t]), () => {
|
|
191
|
+
n.update(o, (e) => e.filter((e) => e !== t));
|
|
192
|
+
});
|
|
193
|
+
return n.plugin = () => t, n.key = () => t.spec.key, n;
|
|
194
|
+
}
|
|
195
|
+
function U(e, t) {
|
|
196
|
+
let n, r = N(async (t) => (await t.wait(l), n = await e(t), t.update(o, (e) => [...e, n]), () => {
|
|
197
|
+
t.update(o, (e) => e.filter((e) => e !== n));
|
|
198
|
+
}), f, t);
|
|
199
|
+
return r.plugin = () => n, r.key = () => n.spec.key, r;
|
|
200
|
+
}
|
|
201
|
+
function W(e) {
|
|
202
|
+
let t = (n) => async () => {
|
|
203
|
+
await n.wait(g);
|
|
204
|
+
let r = n.get(m), i = e(n), a = r.addObjectKeymap(i);
|
|
205
|
+
return t.keymap = i, () => {
|
|
206
|
+
a();
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
return t;
|
|
210
|
+
}
|
|
211
|
+
function ue(e, t) {
|
|
212
|
+
return N(async (t, n) => {
|
|
213
|
+
await t.wait(g);
|
|
214
|
+
let r = t.get(m), i = await e(t), a = r.addObjectKeymap(i);
|
|
215
|
+
return n.keymap = i, () => {
|
|
216
|
+
a();
|
|
217
|
+
};
|
|
218
|
+
}, f, t);
|
|
219
|
+
}
|
|
220
|
+
function de(e, t) {
|
|
221
|
+
let n = (r) => async () => {
|
|
222
|
+
await r.wait(l);
|
|
223
|
+
let i = t(r);
|
|
224
|
+
return e.type(r) instanceof O ? r.update(u, (t) => [...t, [e.id, i]]) : r.update(S, (t) => [...t, [e.id, i]]), n.view = i, n.type = e, () => {
|
|
225
|
+
e.type(r) instanceof O ? r.update(u, (t) => t.filter((t) => t[0] !== e.id)) : r.update(S, (t) => t.filter((t) => t[0] !== e.id));
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
return n;
|
|
229
|
+
}
|
|
230
|
+
function fe(e, t, n) {
|
|
231
|
+
return N(async (n, r) => {
|
|
232
|
+
await n.wait(l);
|
|
233
|
+
let i = await t(n);
|
|
234
|
+
return e.type(n) instanceof O ? n.update(u, (t) => [...t, [e.id, i]]) : n.update(S, (t) => [...t, [e.id, i]]), r.view = i, r.type = e, () => {
|
|
235
|
+
e.type(n) instanceof O ? n.update(u, (t) => t.filter((t) => t[0] !== e.id)) : n.update(S, (t) => t.filter((t) => t[0] !== e.id));
|
|
236
|
+
};
|
|
237
|
+
}, ne, n);
|
|
238
|
+
}
|
|
239
|
+
function G(e, t) {
|
|
240
|
+
let n = te(e, t), r = (e) => (e.inject(n), () => () => {
|
|
241
|
+
e.remove(n);
|
|
242
|
+
});
|
|
243
|
+
return r.key = n, r;
|
|
244
|
+
}
|
|
245
|
+
function K(e, t) {
|
|
246
|
+
let n = G(t, e), r = B(e, (e) => e.get(n.key)(e)), i = [n, r];
|
|
247
|
+
return i.id = r.id, i.node = r, i.type = (e) => r.type(e), i.ctx = n, i.key = n.key, i.extendSchema = (n) => K(e, n(t)), i;
|
|
248
|
+
}
|
|
249
|
+
function q(e, t) {
|
|
250
|
+
let n = G(t, e), r = R(e, (e) => e.get(n.key)(e)), i = [n, r];
|
|
251
|
+
return i.id = r.id, i.mark = r, i.type = (e) => r.type(e), i.ctx = n, i.key = n.key, i.extendSchema = (n) => q(e, n(t)), i;
|
|
252
|
+
}
|
|
253
|
+
function J(e, t) {
|
|
254
|
+
let n = G(Object.fromEntries(Object.entries(t).map(([e, { shortcuts: t, priority: n }]) => [e, {
|
|
255
|
+
shortcuts: t,
|
|
256
|
+
priority: n
|
|
257
|
+
}])), `${e}Keymap`), r = W((e) => {
|
|
258
|
+
let r = e.get(n.key), i = Object.entries(t).flatMap(([e, { command: t }]) => {
|
|
259
|
+
let n = r[e], i = [n.shortcuts].flat(), a = n.priority;
|
|
260
|
+
return i.map((e) => [e, {
|
|
261
|
+
key: e,
|
|
262
|
+
onRun: t,
|
|
263
|
+
priority: a
|
|
264
|
+
}]);
|
|
265
|
+
});
|
|
266
|
+
return Object.fromEntries(i);
|
|
267
|
+
}), i = [n, r];
|
|
268
|
+
return i.ctx = n, i.shortcuts = r, i.key = n.key, i.keymap = r.keymap, i;
|
|
269
|
+
}
|
|
270
|
+
var Y = (e, t = () => ({})) => G(t, `${e}Attr`), X = (e, t = () => ({})) => G(t, `${e}Attr`);
|
|
271
|
+
function Z(e, t, r) {
|
|
272
|
+
let i = G(r ?? {}, e), a = (e) => async () => {
|
|
273
|
+
await e.wait(y);
|
|
274
|
+
let r = {
|
|
275
|
+
plugin: t(e),
|
|
276
|
+
options: e.get(i.key)
|
|
277
|
+
};
|
|
278
|
+
return e.update(n, (e) => [...e, r]), () => {
|
|
279
|
+
e.update(n, (e) => e.filter((e) => e !== r));
|
|
280
|
+
};
|
|
281
|
+
}, o = [i, a];
|
|
282
|
+
return o.id = e, o.plugin = a, o.options = i, o;
|
|
283
|
+
}
|
|
284
|
+
function pe(e, t) {
|
|
285
|
+
return (n) => n.get(b).call(e, t);
|
|
286
|
+
}
|
|
287
|
+
function me() {
|
|
288
|
+
return (e) => {
|
|
289
|
+
let t = e.get(p), { tr: n } = t.state, r = Object.assign(Object.create(n), n).setTime(Date.now());
|
|
290
|
+
return t.dispatch(r);
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
function he() {
|
|
294
|
+
return (e) => {
|
|
295
|
+
let t = document.createElement("div"), n = e.get(r), i = e.get(p), a = D.fromSchema(n).serializeFragment(i.state.doc.content);
|
|
296
|
+
return t.appendChild(a), t.innerHTML;
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
function ge(t) {
|
|
300
|
+
return (n) => {
|
|
301
|
+
let i = n.get(p), a = n.get(r), o = n.get(e);
|
|
302
|
+
if (!t) return o(i.state.doc);
|
|
303
|
+
let s = i.state.doc.slice(t.from, t.to, !0), c = a.topNodeType.createAndFill(null, s.content);
|
|
304
|
+
return c ? o(c) : (console.error("No document found"), "");
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
function _e(e, t = !1) {
|
|
308
|
+
return (n) => {
|
|
309
|
+
let a = n.get(p), o = n.get(i)(e);
|
|
310
|
+
if (!o) return;
|
|
311
|
+
if (!t) {
|
|
312
|
+
let e = a.state.selection.content();
|
|
313
|
+
return a.dispatch(a.state.tr.replaceSelection(new E(o.content, e.openStart, e.openEnd)).scrollIntoView());
|
|
314
|
+
}
|
|
315
|
+
let c = n.get(r), l = D.fromSchema(c).serializeFragment(o.content), u = k.fromSchema(c).parseSlice(l), d = s(u);
|
|
316
|
+
if (d) {
|
|
317
|
+
a.dispatch(a.state.tr.replaceSelectionWith(d, !0));
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
a.dispatch(a.state.tr.replaceSelection(u));
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
function Q() {
|
|
324
|
+
return (e) => {
|
|
325
|
+
let t = e.get(p), n = [];
|
|
326
|
+
return t.state.doc.descendants((e) => {
|
|
327
|
+
e.type.name === "heading" && e.attrs.level && n.push({
|
|
328
|
+
text: e.textContent,
|
|
329
|
+
level: e.attrs.level,
|
|
330
|
+
id: e.attrs.id
|
|
331
|
+
});
|
|
332
|
+
}), n;
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
function ve(e, t = !1) {
|
|
336
|
+
return (n) => {
|
|
337
|
+
let a = n.get(p), s = n.get(i)(e);
|
|
338
|
+
if (!s) return;
|
|
339
|
+
if (!t) {
|
|
340
|
+
let { state: e } = a;
|
|
341
|
+
return a.dispatch(e.tr.replace(0, e.doc.content.size, new E(s.content, 0, 0)));
|
|
342
|
+
}
|
|
343
|
+
let c = n.get(r), l = n.get(re)({
|
|
344
|
+
schema: c,
|
|
345
|
+
doc: s,
|
|
346
|
+
plugins: n.get(o)
|
|
347
|
+
}), u = A.create(l);
|
|
348
|
+
a.updateState(u);
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
function ye(e, t) {
|
|
352
|
+
return (n) => {
|
|
353
|
+
let r = n.get(p), { tr: i } = r.state, a = i.doc.nodeAt(e);
|
|
354
|
+
if (!a) return;
|
|
355
|
+
let o = t(a.attrs);
|
|
356
|
+
return r.dispatch(i.setNodeMarkup(e, void 0, o));
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
function $(e) {
|
|
360
|
+
return (t) => {
|
|
361
|
+
let n = t.get(i)(e), a = t.get(r), o = D.fromSchema(a).serializeFragment(n.content);
|
|
362
|
+
return k.fromSchema(a).parseSlice(o);
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
function be(e, t, n = !1) {
|
|
366
|
+
return (r) => {
|
|
367
|
+
let i = $(e)(r), a = r.get(p), o = a.state.doc.resolve(t), s = a.state.doc.content.size, c = n ? o.pos : o.after(o.depth - 1), l = Math.min(Math.max(c, 0), s);
|
|
368
|
+
a.dispatch(a.state.tr.replace(c, l, i));
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
function xe(e, t) {
|
|
372
|
+
return (n) => {
|
|
373
|
+
let r = n.get(p), i = $(e)(n);
|
|
374
|
+
r.dispatch(r.state.tr.replace(t.from, t.to, i));
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
var Se = (...e) => {
|
|
378
|
+
let t = e.length, n = t;
|
|
379
|
+
for (; n--;) if (typeof e[n] != "function") throw TypeError("Expected a function");
|
|
380
|
+
return (...n) => {
|
|
381
|
+
let r = 0, i = t ? e[r](...n) : n[0];
|
|
382
|
+
for (; ++r < t;) i = e[r](i);
|
|
383
|
+
return i;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
//#endregion
|
|
387
|
+
export { q as a, K as c, Z as d, W as f, X as i, I as l, se as m, G as n, B as o, J as p, F as r, Y as s, P as t, H as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e, i as t } from "./dist-
|
|
2
|
-
import { n, u as r } from "./lib-
|
|
3
|
-
//#region node_modules/.pnpm/@milkdown+plugin-slash@7.
|
|
1
|
+
import { a as e, i as t } from "./dist-CLTsQjPD.js";
|
|
2
|
+
import { n, u as r } from "./lib-DVE2k9i1.js";
|
|
3
|
+
//#region node_modules/.pnpm/@milkdown+plugin-slash@7.21.1/node_modules/@milkdown/plugin-slash/lib/index.js
|
|
4
4
|
function i(i) {
|
|
5
5
|
let a = n({}, `${i}_SLASH_SPEC`), o = r((n) => {
|
|
6
6
|
let r = n.get(a.key);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as c } from "./debounce-
|
|
4
|
-
//#region node_modules/.pnpm/@milkdown+plugin-listener@7.
|
|
1
|
+
import { A as e, T as t, gt as n, n as r, o as i, r as a } from "./lib-DmD940Fq.js";
|
|
2
|
+
import { a as o, i as s } from "./dist-CLTsQjPD.js";
|
|
3
|
+
import { t as c } from "./debounce-Z8-khnlZ.js";
|
|
4
|
+
//#region node_modules/.pnpm/@milkdown+plugin-listener@7.21.1/node_modules/@milkdown/plugin-listener/lib/index.js
|
|
5
5
|
var l = class {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.beforeMountedListeners = [], this.mountedListeners = [], this.updatedListeners = [], this.selectionUpdatedListeners = [], this.markdownUpdatedListeners = [], this.blurListeners = [], this.focusListeners = [], this.destroyListeners = [], this.beforeMount = (e) => (this.beforeMountedListeners.push(e), this), this.mounted = (e) => (this.mountedListeners.push(e), this), this.updated = (e) => (this.updatedListeners.push(e), this);
|
|
@@ -33,44 +33,44 @@ var l = class {
|
|
|
33
33
|
selectionUpdated(e) {
|
|
34
34
|
return this.selectionUpdatedListeners.push(e), this;
|
|
35
35
|
}
|
|
36
|
-
}, u =
|
|
37
|
-
await
|
|
38
|
-
let { listeners:
|
|
39
|
-
|
|
40
|
-
let l =
|
|
36
|
+
}, u = n(new l(), "listener"), d = new o("MILKDOWN_LISTENER"), f = (n) => (n.inject(u, new l()), async () => {
|
|
37
|
+
await n.wait(a);
|
|
38
|
+
let { listeners: o } = n.get(u);
|
|
39
|
+
o.beforeMount.forEach((e) => e(n)), await n.wait(i);
|
|
40
|
+
let l = n.get(e), f = null, p = null, m = null, h = null, g = c(() => {
|
|
41
41
|
if (!h) return;
|
|
42
|
-
let { doc:
|
|
43
|
-
if (
|
|
44
|
-
n
|
|
45
|
-
}),
|
|
46
|
-
let
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}), p =
|
|
42
|
+
let { doc: e } = h;
|
|
43
|
+
if (o.updated.length > 0 && f && !f.eq(e) && o.updated.forEach((t) => {
|
|
44
|
+
t(n, e, f);
|
|
45
|
+
}), o.markdownUpdated.length > 0 && f && !f.eq(e)) {
|
|
46
|
+
let t = l(e);
|
|
47
|
+
o.markdownUpdated.forEach((e) => {
|
|
48
|
+
e(n, t, p);
|
|
49
|
+
}), p = t;
|
|
50
50
|
}
|
|
51
|
-
f =
|
|
52
|
-
}, 200), _ = new
|
|
51
|
+
f = e, h = null;
|
|
52
|
+
}, 200), _ = new s({
|
|
53
53
|
key: d,
|
|
54
54
|
view: () => ({ destroy: () => {
|
|
55
|
-
|
|
55
|
+
o.destroy.forEach((e) => e(n));
|
|
56
56
|
} }),
|
|
57
57
|
props: { handleDOMEvents: {
|
|
58
|
-
focus: () => (
|
|
59
|
-
blur: () => (
|
|
58
|
+
focus: () => (o.focus.forEach((e) => e(n)), !1),
|
|
59
|
+
blur: () => (o.blur.forEach((e) => e(n)), !1)
|
|
60
60
|
} },
|
|
61
61
|
state: {
|
|
62
62
|
init: (e, t) => {
|
|
63
63
|
f = t.doc, p = l(t.doc);
|
|
64
64
|
},
|
|
65
|
-
apply: (
|
|
66
|
-
let
|
|
67
|
-
(!m &&
|
|
68
|
-
|
|
69
|
-
}), m =
|
|
65
|
+
apply: (e) => {
|
|
66
|
+
let t = e.selection;
|
|
67
|
+
(!m && t || m && !t.eq(m)) && (o.selectionUpdated.forEach((e) => {
|
|
68
|
+
e(n, t, m);
|
|
69
|
+
}), m = t), !(!(e.docChanged || e.storedMarksSet) || e.getMeta("addToHistory") === !1) && (h = e, g());
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
|
|
73
|
+
n.update(t, (e) => e.concat(_)), await n.wait(r), o.mounted.forEach((e) => e(n));
|
|
74
74
|
});
|
|
75
75
|
f.meta = {
|
|
76
76
|
package: "@milkdown/plugin-listener",
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const e=require("./lib-DzY83R_P.cjs"),t=require("./dist-DQnWlYyo.cjs"),n=require("./commands-CM7IuhpT.cjs"),r=require("./lib-DIx8C5AZ.cjs"),i=require("./lib-Dplx6t-N.cjs"),a=require("./dist-ZPtYoqTI.cjs");var o=typeof navigator<`u`?navigator:null,s=o&&o.userAgent||``,c=/Edge\/(\d+)/.exec(s),l=/MSIE \d/.exec(s),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(s),d=!(l||u||c)&&!!o&&/Apple Computer/.test(o.vendor),f=new t.a(`safari-ime-span`),p=!1,m={key:f,props:{decorations:h,handleDOMEvents:{compositionstart:()=>{p=!0},compositionend:()=>{p=!1}}}};function h(t){let{$from:n,$to:r,to:i}=t.selection;if(p&&n.sameParent(r)){let n=e.j.widget(i,ee,{ignoreSelection:!0,key:`safari-ime-span`});return e.M.create(t.doc,[n])}}function ee(e){let t=e.dom.ownerDocument.createElement(`span`);return t.className=`ProseMirror-safari-ime-span`,t}var g=new t.i(d?m:{key:f});function _(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function v(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function te(t,n,r){let i=e.Q((r||{}).ignore||[]),a=y(n),o=-1;for(;++o<a.length;)e.Z(t,`text`,s);function s(e,t){let n=-1,r;for(;++n<t.length;){let e=t[n],a=r?r.children:void 0;if(i(e,a?a.indexOf(e):void 0,r))return;r=e}if(r)return c(e,t)}function c(e,t){let n=t[t.length-1],r=a[o][0],i=a[o][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,a={index:d.index,input:d.input,stack:[...t,e]},o=i(...d,a);if(typeof o==`string`&&(o=o.length>0?{type:`text`,value:o}:void 0),o===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function y(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([b(e[0]),ne(e[1])])}return t}function b(e){return typeof e==`string`?new RegExp(v(e),`g`):e}function ne(e){return typeof e==`function`?e:function(){return e}}var x=`phrasing`,S=[`autolink`,`link`,`image`,`label`];function re(){return{transforms:[de],enter:{literalAutolink:ae,literalAutolinkEmail:oe,literalAutolinkHttp:oe,literalAutolinkWww:oe},exit:{literalAutolink:ue,literalAutolinkEmail:le,literalAutolinkHttp:se,literalAutolinkWww:ce}}}function ie(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:x,notInConstruct:S},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:x,notInConstruct:S},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:x,notInConstruct:S}]}}function ae(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function oe(e){this.config.enter.autolinkProtocol.call(this,e)}function se(e){this.config.exit.autolinkProtocol.call(this,e)}function ce(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function le(e){this.config.exit.autolinkEmail.call(this,e)}function ue(e){this.exit(e)}function de(e){te(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,fe],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,pe]],{ignore:[`link`,`linkReference`]})}function fe(e,t,n,r,i){let a=``;if(!ge(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!me(n)))return!1;let o=he(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function pe(e,t,n,r){return!ge(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function me(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function he(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=_(e,`(`),a=_(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function ge(t,n){let r=t.input.charCodeAt(t.index-1);return(t.index===0||e.dt(r)||e.ut(r))&&(!n||r!==47)}Ee.peek=Te;function _e(){this.buffer()}function ve(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function ye(){this.buffer()}function be(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function xe(t){let n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=e.ft(this.sliceSerialize(t)).toLowerCase(),r.label=n}function Se(e){this.exit(e)}function Ce(t){let n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=e.ft(this.sliceSerialize(t)).toLowerCase(),r.label=n}function we(e){this.exit(e)}function Te(){return`[`}function Ee(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function De(){return{enter:{gfmFootnoteCallString:_e,gfmFootnoteCall:ve,gfmFootnoteDefinitionLabelString:ye,gfmFootnoteDefinition:be},exit:{gfmFootnoteCallString:xe,gfmFootnoteCall:Se,gfmFootnoteDefinitionLabelString:Ce,gfmFootnoteDefinition:we}}}function Oe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ee},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
2
|
+
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Ae:ke))),s(),o}}function ke(e,t,n){return t===0?e:Ae(e,t,n)}function Ae(e,t,n){return(n?``:` `)+e}var je=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Ie.peek=Le;function Me(){return{canContainEols:[`delete`],enter:{strikethrough:Pe},exit:{strikethrough:Fe}}}function Ne(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:je}],handlers:{delete:Ie}}}function Pe(e){this.enter({type:`delete`,children:[]},e)}function Fe(e){this.exit(e)}function Ie(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function Le(){return`~`}function Re(e){return e.length}function ze(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Re,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=Be(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=Ve(r[d]);else{let e=Ve(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
3
|
+
`)}function Be(e){return e==null?``:String(e)}function Ve(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function He(){return{enter:{table:Ue,tableData:Ke,tableHeader:Ke,tableRow:Ge},exit:{codeText:qe,table:We,tableData:C,tableHeader:C,tableRow:C}}}function Ue(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function We(e){this.exit(e),this.data.inTable=void 0}function Ge(e){this.enter({type:`tableRow`,children:[]},e)}function C(e){this.exit(e)}function Ke(e){this.enter({type:`tableCell`,children:[]},e)}function qe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Je));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Je(e,t){return t===`|`?t:e}function Ye(t){let n=t||{},r=n.tableCellPadding,i=n.tablePipeAlign,a=n.stringLength,o=r?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
4
|
+
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:c}};function s(e,t,n,r){return u(d(e,n,r),e.align)}function c(e,t,n,r){let i=u([f(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
5
|
+
`))}function l(e,t,n,r){let i=n.enter(`tableCell`),a=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:o,after:o});return a(),i(),s}function u(e,t){return ze(e,{align:t,alignDelimiters:i,padding:r,stringLength:a})}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=f(r[i],t,n);return o(),a}function f(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=l(r[i],e,t,n);return o(),a}function p(t,n,r){let i=e.J.inlineCode(t,n,r);return r.stack.includes(`tableCell`)&&(i=i.replace(/\|/g,`\\$&`)),i}}function Xe(){return{exit:{taskListCheckValueChecked:Qe,taskListCheckValueUnchecked:Qe,paragraph:$e}}}function Ze(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:et}}}function Qe(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function $e(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function et(t,n,r,i){let a=t.children[0],o=typeof t.checked==`boolean`&&a&&a.type===`paragraph`,s=`[`+(t.checked?`x`:` `)+`] `,c=r.createTracker(i);o&&c.move(s);let l=e.J.listItem(t,n,r,{...i,...c.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(e){return e+s}}function tt(){return[re(),De(),Me(),He(),Xe()]}function nt(e){return{extensions:[ie(),Oe(e),Ne(),Ye(e),Ze()]}}var rt={tokenize:mt,partial:!0},it={tokenize:ht,partial:!0},at={tokenize:gt,partial:!0},ot={tokenize:_t,partial:!0},st={tokenize:vt,partial:!0},ct={name:`wwwAutolink`,tokenize:ft,previous:yt},lt={name:`protocolAutolink`,tokenize:pt,previous:bt},w={name:`emailAutolink`,tokenize:dt,previous:xt},T={};function ut(){return{text:T}}for(var E=48;E<123;)T[E]=w,E++,E===58?E=65:E===91&&(E=97);T[43]=w,T[45]=w,T[46]=w,T[95]=w,T[72]=[w,lt],T[104]=[w,lt],T[87]=[w,ct],T[119]=[w,ct];function dt(t,n,r){let i=this,a,o;return s;function s(e){return!St(e)||!xt.call(i,i.previous)||D(i.events)?r(e):(t.enter(`literalAutolink`),t.enter(`literalAutolinkEmail`),c(e))}function c(e){return St(e)?(t.consume(e),c):e===64?(t.consume(e),l):r(e)}function l(n){return n===46?t.check(st,d,u)(n):n===45||n===95||e.at(n)?(o=!0,t.consume(n),l):d(n)}function u(e){return t.consume(e),a=!0,l}function d(s){return o&&a&&e.it(i.previous)?(t.exit(`literalAutolinkEmail`),t.exit(`literalAutolink`),n(s)):r(s)}}function ft(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!yt.call(r,r.previous)||D(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(rt,e.attempt(it,e.attempt(at,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function pt(t,n,r){let i=this,a=``,o=!1;return s;function s(e){return(e===72||e===104)&&bt.call(i,i.previous)&&!D(i.events)?(t.enter(`literalAutolink`),t.enter(`literalAutolinkHttp`),a+=String.fromCodePoint(e),t.consume(e),c):r(e)}function c(n){if(e.it(n)&&a.length<5)return a+=String.fromCodePoint(n),t.consume(n),c;if(n===58){let e=a.toLowerCase();if(e===`http`||e===`https`)return t.consume(n),l}return r(n)}function l(e){return e===47?(t.consume(e),o?u:(o=!0,l)):r(e)}function u(n){return n===null||e.ot(n)||e.ct(n)||e.dt(n)||e.ut(n)?r(n):t.attempt(it,t.attempt(at,d),r)(n)}function d(e){return t.exit(`literalAutolinkHttp`),t.exit(`literalAutolink`),n(e)}}function mt(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function ht(t,n,r){let i,a,o;return s;function s(n){return n===46||n===95?t.check(ot,l,c)(n):n===null||e.ct(n)||e.dt(n)||n!==45&&e.ut(n)?l(n):(o=!0,t.consume(n),s)}function c(e){return e===95?i=!0:(a=i,i=void 0),t.consume(e),s}function l(e){return a||i||!o?r(e):n(e)}}function gt(t,n){let r=0,i=0;return a;function a(s){return s===40?(r++,t.consume(s),a):s===41&&i<r?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(ot,n,o)(s):s===null||e.ct(s)||e.dt(s)?n(s):(t.consume(s),a)}function o(e){return e===41&&i++,t.consume(e),a}}function _t(t,n,r){return i;function i(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(t.consume(s),i):s===38?(t.consume(s),o):s===93?(t.consume(s),a):s===60||s===null||e.ct(s)||e.dt(s)?n(s):r(s)}function a(t){return t===null||t===40||t===91||e.ct(t)||e.dt(t)?n(t):i(t)}function o(t){return e.it(t)?s(t):r(t)}function s(n){return n===59?(t.consume(n),i):e.it(n)?(t.consume(n),s):r(n)}}function vt(t,n,r){return i;function i(e){return t.consume(e),a}function a(t){return e.at(t)?r(t):n(t)}}function yt(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||e.ct(t)}function bt(t){return!e.it(t)}function xt(e){return!(e===47||St(e))}function St(t){return t===43||t===45||t===46||t===95||e.at(t)}function D(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Ct={tokenize:jt,partial:!0};function wt(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Ot,continuation:{tokenize:kt},exit:At}},text:{91:{name:`gfmFootnoteCall`,tokenize:Dt},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Tt,resolveTo:Et}}}}function Tt(t,n,r){let i=this,a=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s;for(;a--;){let e=i.events[a][1];if(e.type===`labelImage`){s=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return c;function c(a){if(!s||!s._balanced)return r(a);let c=e.ft(i.sliceSerialize({start:s.end,end:i.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?r(a):(t.enter(`gfmFootnoteCallLabelMarker`),t.consume(a),t.exit(`gfmFootnoteCallLabelMarker`),n(a))}}function Et(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Dt(t,n,r){let i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0,s;return c;function c(e){return t.enter(`gfmFootnoteCall`),t.enter(`gfmFootnoteCallLabelMarker`),t.consume(e),t.exit(`gfmFootnoteCallLabelMarker`),l}function l(e){return e===94?(t.enter(`gfmFootnoteCallMarker`),t.consume(e),t.exit(`gfmFootnoteCallMarker`),t.enter(`gfmFootnoteCallString`),t.enter(`chunkString`).contentType=`string`,u):r(e)}function u(c){if(o>999||c===93&&!s||c===null||c===91||e.ct(c))return r(c);if(c===93){t.exit(`chunkString`);let o=t.exit(`gfmFootnoteCallString`);return a.includes(e.ft(i.sliceSerialize(o)))?(t.enter(`gfmFootnoteCallLabelMarker`),t.consume(c),t.exit(`gfmFootnoteCallLabelMarker`),t.exit(`gfmFootnoteCall`),n):r(c)}return e.ct(c)||(s=!0),o++,t.consume(c),c===92?d:u}function d(e){return e===91||e===92||e===93?(t.consume(e),o++,u):u(e)}}function Ot(t,n,r){let i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o,s=0,c;return l;function l(e){return t.enter(`gfmFootnoteDefinition`)._container=!0,t.enter(`gfmFootnoteDefinitionLabel`),t.enter(`gfmFootnoteDefinitionLabelMarker`),t.consume(e),t.exit(`gfmFootnoteDefinitionLabelMarker`),u}function u(e){return e===94?(t.enter(`gfmFootnoteDefinitionMarker`),t.consume(e),t.exit(`gfmFootnoteDefinitionMarker`),t.enter(`gfmFootnoteDefinitionLabelString`),t.enter(`chunkString`).contentType=`string`,d):r(e)}function d(n){if(s>999||n===93&&!c||n===null||n===91||e.ct(n))return r(n);if(n===93){t.exit(`chunkString`);let r=t.exit(`gfmFootnoteDefinitionLabelString`);return o=e.ft(i.sliceSerialize(r)),t.enter(`gfmFootnoteDefinitionLabelMarker`),t.consume(n),t.exit(`gfmFootnoteDefinitionLabelMarker`),t.exit(`gfmFootnoteDefinitionLabel`),p}return e.ct(n)||(c=!0),s++,t.consume(n),n===92?f:d}function f(e){return e===91||e===92||e===93?(t.consume(e),s++,d):d(e)}function p(n){return n===58?(t.enter(`definitionMarker`),t.consume(n),t.exit(`definitionMarker`),a.includes(o)||a.push(o),e.rt(t,m,`gfmFootnoteDefinitionWhitespace`)):r(n)}function m(e){return n(e)}}function kt(t,n,r){return t.check(e.et,n,t.attempt(Ct,n,r))}function At(e){e.exit(`gfmFootnoteDefinition`)}function jt(t,n,r){let i=this;return e.rt(t,a,`gfmFootnoteDefinitionIndent`,5);function a(e){let t=i.events[i.events.length-1];return t&&t[1].type===`gfmFootnoteDefinitionIndent`&&t[2].sliceSerialize(t[1],!0).length===4?n(e):r(e)}}function Mt(t){let n=(t||{}).singleTilde,r={name:`strikethrough`,tokenize:a,resolveAll:i};return n??=!0,{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(t,n){let r=-1;for(;++r<t.length;)if(t[r][0]===`enter`&&t[r][1].type===`strikethroughSequenceTemporary`&&t[r][1]._close){let i=r;for(;i--;)if(t[i][0]===`exit`&&t[i][1].type===`strikethroughSequenceTemporary`&&t[i][1]._open&&t[r][1].end.offset-t[r][1].start.offset===t[i][1].end.offset-t[i][1].start.offset){t[r][1].type=`strikethroughSequence`,t[i][1].type=`strikethroughSequence`;let a={type:`strikethrough`,start:Object.assign({},t[i][1].start),end:Object.assign({},t[r][1].end)},o={type:`strikethroughText`,start:Object.assign({},t[i][1].end),end:Object.assign({},t[r][1].start)},s=[[`enter`,a,n],[`enter`,t[i][1],n],[`exit`,t[i][1],n],[`enter`,o,n]],c=n.parser.constructs.insideSpan.null;c&&e.mt(s,s.length,0,e.tt(c,t.slice(i+1,r),n)),e.mt(s,s.length,0,[[`exit`,o,n],[`enter`,t[r][1],n],[`exit`,t[r][1],n],[`exit`,a,n]]),e.mt(t,i-1,r-i+3,s),r=i+s.length-2;break}}for(r=-1;++r<t.length;)t[r][1].type===`strikethroughSequenceTemporary`&&(t[r][1].type=`data`);return t}function a(t,r,i){let a=this.previous,o=this.events,s=0;return c;function c(e){return a===126&&o[o.length-1][1].type!==`characterEscape`?i(e):(t.enter(`strikethroughSequenceTemporary`),l(e))}function l(o){let c=e.nt(a);if(o===126)return s>1?i(o):(t.consume(o),s++,l);if(s<2&&!n)return i(o);let u=t.exit(`strikethroughSequenceTemporary`),d=e.nt(o);return u._open=!d||d===2&&!!c,u._close=!c||c===2&&!!d,r(o)}}}var Nt=class{constructor(){this.map=[]}add(e,t,n){Pt(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Pt(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Ft(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function It(){return{flow:{null:{name:`table`,tokenize:Lt,resolveAll:Rt}}}}function Lt(t,n,r){let i=this,a=0,o=0,s;return c;function c(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let n=t>-1?i.events[t][1].type:null,a=n===`tableHead`||n===`tableRow`?ne:l;return a===ne&&i.parser.lazy[i.now().line]?r(e):a(e)}function l(e){return t.enter(`tableHead`),t.enter(`tableRow`),u(e)}function u(e){return e===124?d(e):(s=!0,o+=1,d(e))}function d(n){return n===null?r(n):e.st(n)?o>1?(o=0,i.interrupt=!0,t.exit(`tableRow`),t.enter(`lineEnding`),t.consume(n),t.exit(`lineEnding`),m):r(n):e.lt(n)?e.rt(t,d,`whitespace`)(n):(o+=1,s&&(s=!1,a+=1),n===124?(t.enter(`tableCellDivider`),t.consume(n),t.exit(`tableCellDivider`),s=!0,d):(t.enter(`data`),f(n)))}function f(n){return n===null||n===124||e.ct(n)?(t.exit(`data`),d(n)):(t.consume(n),n===92?p:f)}function p(e){return e===92||e===124?(t.consume(e),f):f(e)}function m(n){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(n):(t.enter(`tableDelimiterRow`),s=!1,e.lt(n)?e.rt(t,h,`linePrefix`,i.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(n):h(n))}function h(e){return e===45||e===58?g(e):e===124?(s=!0,t.enter(`tableCellDivider`),t.consume(e),t.exit(`tableCellDivider`),ee):b(e)}function ee(n){return e.lt(n)?e.rt(t,g,`whitespace`)(n):g(n)}function g(n){return n===58?(o+=1,s=!0,t.enter(`tableDelimiterMarker`),t.consume(n),t.exit(`tableDelimiterMarker`),_):n===45?(o+=1,_(n)):n===null||e.st(n)?y(n):b(n)}function _(e){return e===45?(t.enter(`tableDelimiterFiller`),v(e)):b(e)}function v(e){return e===45?(t.consume(e),v):e===58?(s=!0,t.exit(`tableDelimiterFiller`),t.enter(`tableDelimiterMarker`),t.consume(e),t.exit(`tableDelimiterMarker`),te):(t.exit(`tableDelimiterFiller`),te(e))}function te(n){return e.lt(n)?e.rt(t,y,`whitespace`)(n):y(n)}function y(r){return r===124?h(r):r===null||e.st(r)?!s||a!==o?b(r):(t.exit(`tableDelimiterRow`),t.exit(`tableHead`),n(r)):b(r)}function b(e){return r(e)}function ne(e){return t.enter(`tableRow`),x(e)}function x(r){return r===124?(t.enter(`tableCellDivider`),t.consume(r),t.exit(`tableCellDivider`),x):r===null||e.st(r)?(t.exit(`tableRow`),n(r)):e.lt(r)?e.rt(t,x,`whitespace`)(r):(t.enter(`data`),S(r))}function S(n){return n===null||n===124||e.ct(n)?(t.exit(`data`),x(n)):(t.consume(n),n===92?re:S)}function re(e){return e===92||e===124?(t.consume(e),S):S(e)}}function Rt(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Nt;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(zt(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=O(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=O(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=O(f,t,o,i,n,d)):(o[0]=o[1],d=O(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&zt(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Ft(t.events,n))}return e}function O(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},k(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=k(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=k(t.events,n[2]),a=k(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},k(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function zt(e,t,n,r,i){let a=[],o=k(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function k(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Bt={name:`tasklistCheck`,tokenize:Ht};function Vt(){return{text:{91:Bt}}}function Ht(t,n,r){let i=this;return a;function a(e){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(e):(t.enter(`taskListCheck`),t.enter(`taskListCheckMarker`),t.consume(e),t.exit(`taskListCheckMarker`),o)}function o(n){return e.ct(n)?(t.enter(`taskListCheckValueUnchecked`),t.consume(n),t.exit(`taskListCheckValueUnchecked`),s):n===88||n===120?(t.enter(`taskListCheckValueChecked`),t.consume(n),t.exit(`taskListCheckValueChecked`),s):r(n)}function s(e){return e===93?(t.enter(`taskListCheckMarker`),t.consume(e),t.exit(`taskListCheckMarker`),t.exit(`taskListCheck`),c):r(e)}function c(i){return e.st(i)?n(i):e.lt(i)?t.check({tokenize:Ut},n,r)(i):r(i)}}function Ut(t,n,r){return e.rt(t,i,`whitespace`);function i(e){return e===null?r(e):n(e)}}function Wt(t){return e.pt([ut(),wt(),Mt(t),It(),Vt()])}var Gt={};function Kt(e){let t=this,n=e||Gt,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Wt(n)),a.push(tt()),o.push(nt(n))}function A(e,t){return Object.assign(e,{meta:{package:`@milkdown/preset-gfm`,...t}}),e}var j=r.i(`strike_through`);A(j,{displayName:`Attr<strikethrough>`,group:`Strikethrough`});var M=r.a(`strike_through`,e=>({parseDOM:[{tag:`del`},{style:`text-decoration`,getAttrs:e=>e===`line-through`}],toDOM:t=>[`del`,e.get(j.key)(t)],parseMarkdown:{match:e=>e.type===`delete`,runner:(e,t,n)=>{e.openMark(n),e.next(t.children),e.closeMark(n)}},toMarkdown:{match:e=>e.type.name===`strike_through`,runner:(e,t)=>{e.withMark(t,`delete`)}}}));A(M.mark,{displayName:`MarkSchema<strikethrough>`,group:`Strikethrough`}),A(M.ctx,{displayName:`MarkSchemaCtx<strikethrough>`,group:`Strikethrough`});var N=r.t(`ToggleStrikeThrough`,e=>()=>n.O(M.type(e)));A(N,{displayName:`Command<ToggleStrikethrough>`,group:`Strikethrough`});var P=r.r(t=>e.H(/(?<![\w:/])(~{1,2})(.+?)\1(?!\w|\/)/,M.type(t)));A(P,{displayName:`InputRule<strikethrough>`,group:`Strikethrough`});var F=r.p(`strikeThroughKeymap`,{ToggleStrikethrough:{shortcuts:`Mod-Alt-x`,command:t=>{let n=t.get(e.s);return()=>n.call(N.key)}}});A(F.ctx,{displayName:`KeymapCtx<strikethrough>`,group:`Strikethrough`}),A(F.shortcuts,{displayName:`Keymap<strikethrough>`,group:`Strikethrough`});var I=a.y({tableGroup:`block`,cellContent:`paragraph`,cellAttributes:{alignment:{default:`left`,getFromDOM:e=>e.style.textAlign||`left`,setDOMAttr:(e,t)=>{t.style=`text-align: ${e||`left`}`}}}}),L=r.c(`table`,()=>({...I.table,content:`table_header_row table_row+`,disableDropCursor:!0,parseMarkdown:{match:e=>e.type===`table`,runner:(e,t,n)=>{let r=t.align,i=t.children.map((e,t)=>({...e,align:r,isHeader:t===0}));e.openNode(n),e.next(i),e.closeNode()}},toMarkdown:{match:e=>e.type.name===`table`,runner:(e,t)=>{let n=t.content.firstChild?.content;if(!n)return;let r=[];n.forEach(e=>{r.push(e.attrs.alignment)}),e.openNode(`table`,void 0,{align:r}),e.next(t.content),e.closeNode()}}}));A(L.node,{displayName:`NodeSchema<table>`,group:`Table`}),A(L.ctx,{displayName:`NodeSchemaCtx<table>`,group:`Table`});var R=r.c(`table_header_row`,()=>({...I.table_row,disableDropCursor:!0,content:`(table_header)*`,parseDOM:[{tag:`tr[data-is-header]`},{tag:`tr`,getAttrs:e=>e instanceof HTMLElement&&e.querySelector(`th`)?{}:!1}],toDOM(){return[`tr`,{"data-is-header":!0},0]},parseMarkdown:{match:e=>!!(e.type===`tableRow`&&e.isHeader),runner:(e,t,n)=>{let r=t.align,i=t.children.map((e,n)=>({...e,align:r[n],isHeader:t.isHeader}));e.openNode(n),e.next(i),e.closeNode()}},toMarkdown:{match:e=>e.type.name===`table_header_row`,runner:(e,t)=>{t.content.size!==0&&(e.openNode(`tableRow`,void 0,{isHeader:!0}),e.next(t.content),e.closeNode())}}}));A(R.node,{displayName:`NodeSchema<tableHeaderRow>`,group:`Table`}),A(R.ctx,{displayName:`NodeSchemaCtx<tableHeaderRow>`,group:`Table`});var z=r.c(`table_row`,()=>({...I.table_row,disableDropCursor:!0,content:`(table_cell)*`,parseMarkdown:{match:e=>e.type===`tableRow`,runner:(e,t,n)=>{let r=t.align,i=t.children.map((e,t)=>({...e,align:r[t]}));e.openNode(n),e.next(i),e.closeNode()}},toMarkdown:{match:e=>e.type.name===`table_row`,runner:(e,t)=>{t.content.size!==0&&(e.openNode(`tableRow`),e.next(t.content),e.closeNode())}}}));A(z.node,{displayName:`NodeSchema<tableRow>`,group:`Table`}),A(z.ctx,{displayName:`NodeSchemaCtx<tableRow>`,group:`Table`});var B=r.c(`table_cell`,()=>({...I.table_cell,disableDropCursor:!0,parseMarkdown:{match:e=>e.type===`tableCell`&&!e.isHeader,runner:(e,t,n)=>{let r=t.align;e.openNode(n,{alignment:r}).openNode(e.schema.nodes.paragraph).next(t.children).closeNode().closeNode()}},toMarkdown:{match:e=>e.type.name===`table_cell`,runner:(e,t)=>{e.openNode(`tableCell`).next(t.content).closeNode()}}}));A(B.node,{displayName:`NodeSchema<tableCell>`,group:`Table`}),A(B.ctx,{displayName:`NodeSchemaCtx<tableCell>`,group:`Table`});var V=r.c(`table_header`,()=>({...I.table_header,disableDropCursor:!0,parseMarkdown:{match:e=>e.type===`tableCell`&&!!e.isHeader,runner:(e,t,n)=>{let r=t.align;e.openNode(n,{alignment:r}),e.openNode(e.schema.nodes.paragraph),e.next(t.children),e.closeNode(),e.closeNode()}},toMarkdown:{match:e=>e.type.name===`table_header`,runner:(e,t)=>{e.openNode(`tableCell`),e.next(t.content),e.closeNode()}}}));A(V.node,{displayName:`NodeSchema<tableHeader>`,group:`Table`}),A(V.ctx,{displayName:`NodeSchemaCtx<tableHeader>`,group:`Table`});function qt(e,t=3,n=3){let r=Array(n).fill(0).map(()=>B.type(e).createAndFill()),i=Array(n).fill(0).map(()=>V.type(e).createAndFill()),a=Array(t).fill(0).map((t,n)=>n===0?R.type(e).create(null,i):z.type(e).create(null,r));return L.type(e).create(null,a)}function Jt(e,t){let n=a.d(t.$from);if(!n)return;let r=a.n.get(n.node);return(Array.isArray(e)?e:[e]).filter(e=>e>=0&&e<=r.width-1).flatMap(e=>r.cellsInRect({left:e,right:e+1,top:0,bottom:r.height}).map(e=>{let t=n.node.nodeAt(e),r=e+n.start;return{pos:r,start:r+1,node:t,depth:n.depth+2}}))}function Yt(e,t){let n=a.d(t.$from);if(!n)return;let r=a.n.get(n.node);return(Array.isArray(e)?e:[e]).filter(e=>e>=0&&e<=r.height-1).flatMap(e=>r.cellsInRect({left:0,right:r.width,top:e,bottom:e+1}).map(e=>{let t=n.node.nodeAt(e),r=e+n.start;return{pos:r,start:r+1,node:t,depth:n.depth+2}}))}function Xt(t){return(n,r)=>i=>{r??=i.selection.from;let o=i.doc.resolve(r),s=e.L(e=>e.type.name===`table`)(o),c=s?{node:s.node,from:s.start}:void 0,l=t===`row`;if(c){let t=a.n.get(c.node);if(n>=0&&n<(l?t.height:t.width)){let r=t.positionAt(l?n:t.height-1,l?t.width-1:n,c.node),o=i.doc.resolve(c.from+r),s=l?a.t.rowSelection:a.t.colSelection,u=t.positionAt(l?n:0,l?0:n,c.node),d=i.doc.resolve(c.from+u);return e.P(i.setSelection(s(o,d)))}}return i}}var Zt=Xt(`row`),Qt=Xt(`col`);function $t(e,t,{map:n,tableStart:r,table:i},a){let o=Array(a).fill(0).reduce((e,t,n)=>e+i.child(n).nodeSize,r),s=Array(n.width).fill(0).map((t,r)=>{let a=i.nodeAt(n.map[r]);return B.type(e).createAndFill({alignment:a?.attrs.alignment})});return t.insert(o,z.type(e).create(null,s)),t}function en(e){let t=a.d(e.$from);if(!t)return;let n=a.n.get(t.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(e=>{let n=t.node.nodeAt(e),r=e+t.start;return{pos:r,start:r+1,node:n}})}function tn(t){let n=en(t.selection);if(n&&n[0]){let r=t.doc.resolve(n[0].pos),i=n[n.length-1];if(i){let n=t.doc.resolve(i.pos);return e.P(t.setSelection(new a.t(n,r)))}}return t}var H=r.t(`GoToPrevTableCell`,()=>()=>a.f(-1));A(H,{displayName:`Command<goToPrevTableCellCommand>`,group:`Table`});var U=r.t(`GoToNextTableCell`,()=>()=>a.f(1));A(U,{displayName:`Command<goToNextTableCellCommand>`,group:`Table`});var W=r.t(`ExitTable`,n=>()=>(r,o)=>{if(!a.p(r))return!1;let{$head:s}=r.selection,c=e.R(s,L.type(n));if(!c)return!1;let{to:l}=c,u=r.tr.replaceWith(l,l,i.i.type(n).createAndFill());return u.setSelection(t.o.near(u.doc.resolve(l),1)).scrollIntoView(),o?.(u),!0});A(W,{displayName:`Command<breakTableCommand>`,group:`Table`});var G=r.t(`InsertTable`,e=>({row:n,col:r}={})=>(i,a)=>{let{selection:o,tr:s}=i,{from:c}=o,l=qt(e,n,r),u=s.replaceSelectionWith(l),d=t.o.findFrom(u.doc.resolve(c),1,!0);return d&&u.setSelection(d),a?.(u),!0});A(G,{displayName:`Command<insertTableCommand>`,group:`Table`});var K=r.t(`MoveRow`,()=>({from:e,to:t,pos:n}={})=>a.h({from:e??0,to:t??0,pos:n}));A(K,{displayName:`Command<moveRowCommand>`,group:`Table`});var q=r.t(`MoveCol`,()=>({from:e,to:t,pos:n}={})=>a.m({from:e??0,to:t??0,pos:n}));A(q,{displayName:`Command<moveColCommand>`,group:`Table`});var nn=r.t(`SelectRow`,()=>(e={index:0})=>(t,n)=>{let{tr:r}=t;return!!n?.(Zt(e.index,e.pos)(r))});A(nn,{displayName:`Command<selectRowCommand>`,group:`Table`});var rn=r.t(`SelectCol`,()=>(e={index:0})=>(t,n)=>{let{tr:r}=t;return!!n?.(Qt(e.index,e.pos)(r))});A(rn,{displayName:`Command<selectColCommand>`,group:`Table`});var an=r.t(`SelectTable`,()=>()=>(e,t)=>{let{tr:n}=e;return!!t?.(tn(n))});A(an,{displayName:`Command<selectTableCommand>`,group:`Table`});var on=r.t(`DeleteSelectedCells`,()=>()=>(e,t)=>{let{selection:n}=e;if(!(n instanceof a.t))return!1;let r=n.isRowSelection(),i=n.isColSelection();return r&&i?a.u(e,t):i?a.c(e,t):a.l(e,t)});A(on,{displayName:`Command<deleteSelectedCellsCommand>`,group:`Table`});var sn=r.t(`AddColBefore`,()=>()=>a.i);A(sn,{displayName:`Command<addColBeforeCommand>`,group:`Table`});var cn=r.t(`AddColAfter`,()=>()=>a.r);A(cn,{displayName:`Command<addColAfterCommand>`,group:`Table`});var ln=r.t(`AddRowBefore`,e=>()=>(t,n)=>{if(!a.p(t))return!1;if(n){let r=a.g(t);n($t(e,t.tr,r,r.top))}return!0});A(ln,{displayName:`Command<addRowBeforeCommand>`,group:`Table`});var un=r.t(`AddRowAfter`,e=>()=>(t,n)=>{if(!a.p(t))return!1;if(n){let r=a.g(t);n($t(e,t.tr,r,r.bottom))}return!0});A(un,{displayName:`Command<addRowAfterCommand>`,group:`Table`});var dn=r.t(`SetAlign`,()=>(e=`left`)=>a._(`alignment`,e));A(dn,{displayName:`Command<setAlignCommand>`,group:`Table`});var fn=r.r(n=>new e.W(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/,(e,r,i,a)=>{let o=e.doc.resolve(i);if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),L.type(n)))return null;let s=qt(n,Math.max(Number(r.groups?.row??0),2),Number(r.groups?.col)),c=e.tr.replaceRangeWith(i,a,s);return c.setSelection(t.c.create(c.doc,i+3)).scrollIntoView()}));A(fn,{displayName:`InputRule<insertTableInputRule>`,group:`Table`});var pn=r.l(e=>({run:(n,r,a)=>{if(a)return n;function o(n){let r=n.childCount,a=n.lastChild?.childCount??0;if(r===0||a===0)return i.i.type(e).create();let o=n.firstChild;if(!(a>0&&o&&o.childCount===0))return n;if(r>=3){let t=n.child(1),i=[];for(let n=0;n<t.childCount;n++){let r=t.child(n);i.push(V.type(e).create(r.attrs,r.content,r.marks))}let a=o.type.create(o.attrs,i),s=[];for(let e=2;e<r;e++)s.push(n.child(e));return n.type.create(n.attrs,[a,...s])}let s=Array(a).fill(0).map(()=>V.type(e).createAndFill()),c=new t.A(t.w.from(s),0,0),l=o.replace(0,0,c);return n.replace(0,o.nodeSize,new t.A(t.w.from(l),0,0))}function s(n){let r=z.type(e),i=[],a=[],s=!1;function c(){if(a.length===0)return;let t=R.type(e).createAndFill(),n=L.type(e).create(null,[t,...a]);i.push(o(n)),a=[]}return n.forEach(e=>{e.type===r?(s=!0,a.push(e)):(c(),i.push(e))}),c(),s?t.w.from(i):n}function c(n){let r=s(n),i=r!==n,a=[];return r.forEach(t=>{if(t.type===L.type(e)){let e=o(t);e!==t&&(i=!0),a.push(e)}else if(t.childCount>0){let e=c(t.content);e===t.content?a.push(t):(i=!0,a.push(t.copy(e)))}else a.push(t)}),i?t.w.from(a):n}function l(n){let r=[],a=[];n.forEach(e=>a.push(e));for(let t=0;t<a.length;t++){let n=a[t],o=a[t+1];n.type===i.i.type(e)&&n.content.size===0&&o&&o.type===L.type(e)||r.push(n)}return r.length<a.length?t.w.from(r):n}let u=c(n.content);return u=l(u),new t.A(t.w.from(u),n.openStart,n.openEnd)}}));A(pn,{displayName:`PasteRule<table>`,group:`Table`});var J=r.p(`tableKeymap`,{NextCell:{priority:100,shortcuts:[`Mod-]`,`Tab`],command:t=>{let n=t.get(e.s);return()=>n.call(U.key)}},PrevCell:{shortcuts:[`Mod-[`,`Shift-Tab`],command:t=>{let n=t.get(e.s);return()=>n.call(H.key)}},ExitTable:{shortcuts:[`Mod-Enter`,`Enter`],command:t=>{let n=t.get(e.s);return()=>n.call(W.key)}}});A(J.ctx,{displayName:`KeymapCtx<table>`,group:`Table`}),A(J.shortcuts,{displayName:`Keymap<table>`,group:`Table`});var Y=`footnote_definition`,mn=`footnoteDefinition`,X=r.c(`footnote_definition`,()=>({group:`block`,content:`block+`,defining:!0,attrs:{label:{default:``,validate:`string`}},parseDOM:[{tag:`dl[data-type="${Y}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw e.vt(t);return{label:t.dataset.label}},contentElement:`dd`}],toDOM:e=>{let t=e.attrs.label;return[`dl`,{"data-label":t,"data-type":Y},[`dt`,t],[`dd`,0]]},parseMarkdown:{match:({type:e})=>e===mn,runner:(e,t,n)=>{e.openNode(n,{label:t.label}).next(t.children).closeNode()}},toMarkdown:{match:e=>e.type.name===Y,runner:(e,t)=>{e.openNode(mn,void 0,{label:t.attrs.label,identifier:t.attrs.label}).next(t.content).closeNode()}}}));A(X.ctx,{displayName:`NodeSchemaCtx<footnodeDef>`,group:`footnote`}),A(X.node,{displayName:`NodeSchema<footnodeDef>`,group:`footnote`});var hn=`footnote_reference`,Z=r.c(`footnote_reference`,()=>({group:`inline`,inline:!0,atom:!0,attrs:{label:{default:``,validate:`string`}},parseDOM:[{tag:`sup[data-type="${hn}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw e.vt(t);return{label:t.dataset.label}}}],toDOM:e=>{let t=e.attrs.label;return[`sup`,{"data-label":t,"data-type":hn},t]},parseMarkdown:{match:({type:e})=>e===`footnoteReference`,runner:(e,t,n)=>{e.addNode(n,{label:t.label})}},toMarkdown:{match:e=>e.type.name===hn,runner:(e,t)=>{e.addNode(`footnoteReference`,void 0,void 0,{label:t.attrs.label,identifier:t.attrs.label})}}}));A(Z.ctx,{displayName:`NodeSchemaCtx<footnodeRef>`,group:`footnote`}),A(Z.node,{displayName:`NodeSchema<footnodeRef>`,group:`footnote`});var Q=i.r.extendSchema(t=>n=>{let r=t(n);return{...r,attrs:{...r.attrs,checked:{default:null,validate:`boolean|null`}},parseDOM:[{tag:`li[data-item-type="task"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw e.vt(t);return{label:t.dataset.label,listType:t.dataset.listType,spread:t.dataset.spread,checked:t.dataset.checked?t.dataset.checked===`true`:null}}},...r?.parseDOM||[]],toDOM:e=>r.toDOM&&e.attrs.checked==null?r.toDOM(e):[`li`,{"data-item-type":`task`,"data-label":e.attrs.label,"data-list-type":e.attrs.listType,"data-spread":e.attrs.spread,"data-checked":e.attrs.checked},0],parseMarkdown:{match:({type:e})=>e===`listItem`,runner:(e,t,n)=>{if(t.checked==null){r.parseMarkdown.runner(e,t,n);return}let i=t.label==null?`•`:`${t.label}.`,a=t.checked==null?null:!!t.checked,o=t.label==null?`bullet`:`ordered`,s=t.spread==null?`true`:`${t.spread}`;e.openNode(n,{label:i,listType:o,spread:s,checked:a}),e.next(t.children),e.closeNode()}},toMarkdown:{match:e=>e.type.name===`list_item`,runner:(e,t)=>{if(t.attrs.checked==null){r.toMarkdown.runner(e,t);return}let n=t.attrs.label,i=t.attrs.listType,a=t.attrs.spread===`true`,o=t.attrs.checked;e.openNode(`listItem`,void 0,{label:n,listType:i,spread:a,checked:o}),e.next(t.content),e.closeNode()}}}});A(Q.node,{displayName:`NodeSchema<taskListItem>`,group:`ListItem`}),A(Q.ctx,{displayName:`NodeSchemaCtx<taskListItem>`,group:`ListItem`});var gn=r.r(()=>new e.W(/^\[(?<checked>\s|x)\]\s$/,(e,t,n,r)=>{let i=e.doc.resolve(n),a=0,o=i.node(a);for(;o&&o.type.name!==`list_item`;)a--,o=i.node(a);if(!o||o.attrs.checked!=null)return null;let s=t.groups?.checked===`x`,c=i.before(a),l=e.tr;return l.deleteRange(n,r).setNodeMarkup(c,void 0,{...o.attrs,checked:s}),l}));A(gn,{displayName:`InputRule<wrapInTaskListInputRule>`,group:`ListItem`});var _n=[F,J].flat(),vn=[fn,gn],yn=[P],bn=[pn],xn=r.u(()=>g);A(xn,{displayName:`Prose<autoInsertSpanPlugin>`,group:`Prose`});var Sn=r.u(()=>a.s({}));A(Sn,{displayName:`Prose<columnResizingPlugin>`,group:`Prose`});var Cn=r.u(()=>a.v({allowTableNodeSelection:!0}));A(Cn,{displayName:`Prose<tableEditingPlugin>`,group:`Prose`});var $=r.d(`remarkGFM`,()=>Kt);A($.plugin,{displayName:`Remark<remarkGFMPlugin>`,group:`Remark`}),A($.options,{displayName:`RemarkConfig<remarkGFMPlugin>`,group:`Remark`});var wn=new t.a(`MILKDOWN_KEEP_TABLE_ALIGN_PLUGIN`);function Tn(e,t){let n=0;return t.forEach((t,r,i)=>{t===e&&(n=i)}),n}var En=r.u(()=>new t.i({key:wn,appendTransaction:(e,t,n)=>{let r;return t.doc!==n.doc&&n.doc.descendants((e,t)=>{if(r||=n.tr,e.type.name!==`table_cell`)return;let i=n.doc.resolve(t),a=i.node(i.depth),o=i.node(i.depth-1).firstChild;if(!o)return;let s=Tn(e,a),c=o.maybeChild(s);if(!c)return;let l=c.attrs.alignment;l!==e.attrs.alignment&&r.setNodeMarkup(t,void 0,{...e.attrs,alignment:l})}),r}}));A(En,{displayName:`Prose<keepTableAlignPlugin>`,group:`Prose`});var Dn=[En,xn,$,Cn].flat(),On=[Q,L,R,z,V,B,X,Z,j,M].flat(),kn=[U,H,W,G,K,q,nn,rn,an,on,ln,un,sn,cn,dn,N],An=[On,vn,bn,yn,_n,kn,Dn].flat();exports.addColAfterCommand=cn,exports.addColBeforeCommand=sn,exports.addRowAfterCommand=un,exports.addRowBeforeCommand=ln,exports.addRowWithAlignment=$t,exports.autoInsertSpanPlugin=xn,exports.columnResizingPlugin=Sn,exports.commands=kn,exports.createTable=qt,exports.deleteSelectedCellsCommand=on,exports.exitTable=W,exports.extendListItemSchemaForTask=Q,exports.footnoteDefinitionSchema=X,exports.footnoteReferenceSchema=Z,exports.getAllCellsInTable=en,exports.getCellsInCol=Jt,exports.getCellsInRow=Yt,exports.gfm=An,exports.goToNextTableCellCommand=U,exports.goToPrevTableCellCommand=H,exports.inputRules=vn,exports.insertTableCommand=G,exports.insertTableInputRule=fn,exports.keepTableAlignPlugin=En,exports.keymap=_n,exports.markInputRules=yn,exports.moveColCommand=q,exports.moveRowCommand=K,exports.pasteRules=bn,exports.plugins=Dn,exports.remarkGFMPlugin=$,exports.schema=On,exports.selectCol=Qt,exports.selectColCommand=rn,exports.selectLine=Xt,exports.selectRow=Zt,exports.selectRowCommand=nn,exports.selectTable=tn,exports.selectTableCommand=an,exports.setAlignCommand=dn,exports.strikethroughAttr=j,exports.strikethroughInputRule=P,exports.strikethroughKeymap=F,exports.strikethroughSchema=M,exports.tableCellSchema=B,exports.tableEditingPlugin=Cn,exports.tableHeaderRowSchema=R,exports.tableHeaderSchema=V,exports.tableKeymap=J,exports.tablePasteRule=pn,exports.tableRowSchema=z,exports.tableSchema=L,exports.toggleStrikethroughCommand=N,exports.wrapInTaskListInputRule=gn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(
|
|
1
|
+
const e=require("./dist-DQnWlYyo.cjs"),t=require("./lib-DIx8C5AZ.cjs");function n(n){let r=t.n({},`${n}_SLASH_SPEC`),i=t.u(t=>{let i=t.get(r.key);return new e.i({key:new e.a(`${n}_SLASH`),...i})}),a=[r,i];return a.key=r.key,a.pluginKey=i.key,r.meta={package:`@milkdown/plugin-slash`,displayName:`Ctx<slashSpec>|${n}`},i.meta={package:`@milkdown/plugin-slash`,displayName:`Prose<slash>|${n}`},a}exports.slashFactory=n;
|