ct-rich-text-editor 1.2.4 → 1.2.6
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/api/ai/index.d.ts +6 -1
- package/dist/api/auth.d.ts +4 -0
- package/dist/api/config/endpoints.d.ts +1 -0
- package/dist/assets/style.css +5394 -1
- package/dist/{babel-1c4a328b.js → babel-d155920e.js} +2303 -2279
- package/dist/{babel-1c4a328b.js.map → babel-d155920e.js.map} +1 -1
- package/dist/components/AiPlugin/index.d.ts +1 -1
- package/dist/components/ImageGenerationDialog/ImageGenerationManager.d.ts +11 -0
- package/dist/components/ImageGenerationDialog/index.d.ts +10 -0
- package/dist/editorConfig.d.ts +1 -0
- package/dist/estree-b1fff53b.js +4706 -0
- package/dist/{estree-2cbea43c.js.map → estree-b1fff53b.js.map} +1 -1
- package/dist/html-f95ee5dc.js +2885 -0
- package/dist/{html-c18fb60e.js.map → html-f95ee5dc.js.map} +1 -1
- package/dist/index-5238e1b7.js +27912 -0
- package/dist/index-5238e1b7.js.map +1 -0
- package/dist/index-ffff9c22.js +655 -0
- package/dist/index-ffff9c22.js.map +1 -0
- package/dist/index.js +47 -14
- package/dist/index.js.map +1 -1
- package/dist/markdown-1d9e6c3f.js +3759 -0
- package/dist/markdown-1d9e6c3f.js.map +1 -0
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -0
- package/dist/plugins/AIChatPlugin.d.ts +2 -1
- package/dist/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +1 -0
- package/dist/postcss-c2592f3f.js +5399 -0
- package/dist/postcss-c2592f3f.js.map +1 -0
- package/dist/standalone-bcc7f37a.js +2649 -0
- package/dist/standalone-bcc7f37a.js.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/typescript-48c10f50.js +13601 -0
- package/dist/{typescript-39d06710.js.map → typescript-48c10f50.js.map} +1 -1
- package/package.json +2 -2
- package/dist/estree-2cbea43c.js +0 -4668
- package/dist/html-c18fb60e.js +0 -2842
- package/dist/index-0e027fdf.js +0 -806
- package/dist/index-0e027fdf.js.map +0 -1
- package/dist/index-bd25a91b.js +0 -35926
- package/dist/index-bd25a91b.js.map +0 -1
- package/dist/markdown-39c3822b.js +0 -3548
- package/dist/markdown-39c3822b.js.map +0 -1
- package/dist/postcss-bbcc713e.js +0 -5152
- package/dist/postcss-bbcc713e.js.map +0 -1
- package/dist/standalone-36ad3877.js +0 -2601
- package/dist/standalone-36ad3877.js.map +0 -1
- package/dist/typescript-39d06710.js +0 -13534
|
@@ -0,0 +1,3759 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
var ll = Object.create;
|
|
8
|
+
var Dt = Object.defineProperty;
|
|
9
|
+
var fl = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var Dl = Object.getOwnPropertyNames;
|
|
11
|
+
var pl = Object.getPrototypeOf, hl = Object.prototype.hasOwnProperty;
|
|
12
|
+
var Yn = (e) => {
|
|
13
|
+
throw TypeError(e);
|
|
14
|
+
};
|
|
15
|
+
var C = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports), Gn = (e, r) => {
|
|
16
|
+
for (var t in r)
|
|
17
|
+
Dt(e, t, { get: r[t], enumerable: true });
|
|
18
|
+
}, dl = (e, r, t, n) => {
|
|
19
|
+
if (r && typeof r == "object" || typeof r == "function")
|
|
20
|
+
for (let a of Dl(r))
|
|
21
|
+
!hl.call(e, a) && a !== t && Dt(e, a, { get: () => r[a], enumerable: !(n = fl(r, a)) || n.enumerable });
|
|
22
|
+
return e;
|
|
23
|
+
};
|
|
24
|
+
var Ue = (e, r, t) => (t = e != null ? ll(pl(e)) : {}, dl(r || !e || !e.__esModule ? Dt(t, "default", { value: e, enumerable: true }) : t, e));
|
|
25
|
+
var Vn = (e, r, t) => r.has(e) || Yn("Cannot " + t);
|
|
26
|
+
var ce = (e, r, t) => (Vn(e, r, "read from private field"), t ? t.call(e) : r.get(e)), jn = (e, r, t) => r.has(e) ? Yn("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, t), $n = (e, r, t, n) => (Vn(e, r, "write to private field"), n ? n.call(e, t) : r.set(e, t), t);
|
|
27
|
+
var kr = C((Gm, Wn) => {
|
|
28
|
+
Wn.exports = gl;
|
|
29
|
+
function gl(e) {
|
|
30
|
+
return String(e).replace(/\s+/g, " ");
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
var Vi = C((Bv, Gi) => {
|
|
34
|
+
Gi.exports = xf;
|
|
35
|
+
var Dr = 9, Ur = 10, je = 32, bf = 33, yf = 58, $e = 91, Af = 92, St = 93, pr = 94, Mr = 96, zr = 4, wf = 1024;
|
|
36
|
+
function xf(e) {
|
|
37
|
+
var r = this.Parser, t = this.Compiler;
|
|
38
|
+
kf(r) && Tf(r, e), Bf(t) && qf(t);
|
|
39
|
+
}
|
|
40
|
+
function kf(e) {
|
|
41
|
+
return !!(e && e.prototype && e.prototype.blockTokenizers);
|
|
42
|
+
}
|
|
43
|
+
function Bf(e) {
|
|
44
|
+
return !!(e && e.prototype && e.prototype.visitors);
|
|
45
|
+
}
|
|
46
|
+
function Tf(e, r) {
|
|
47
|
+
for (var t = r || {}, n = e.prototype, a = n.blockTokenizers, u = n.inlineTokenizers, i = n.blockMethods, o = n.inlineMethods, s = a.definition, l = u.reference, c = [], f = -1, p = i.length, d; ++f < p; )
|
|
48
|
+
d = i[f], !(d === "newline" || d === "indentedCode" || d === "paragraph" || d === "footnoteDefinition") && c.push([d]);
|
|
49
|
+
c.push(["footnoteDefinition"]), t.inlineNotes && (Ot(o, "reference", "inlineNote"), u.inlineNote = m), Ot(i, "definition", "footnoteDefinition"), Ot(o, "reference", "footnoteCall"), a.definition = y, a.footnoteDefinition = D, u.footnoteCall = h, u.reference = F, n.interruptFootnoteDefinition = c, F.locator = l.locator, h.locator = E, m.locator = B;
|
|
50
|
+
function D(b, g, A) {
|
|
51
|
+
for (var w = this, v = w.interruptFootnoteDefinition, x = w.offset, k = g.length + 1, T = 0, q = [], R, O, S, _, L, Be, W, I, ee, Z, ve, Ee, M; T < k && (_ = g.charCodeAt(T), !(_ !== Dr && _ !== je)); )
|
|
52
|
+
T++;
|
|
53
|
+
if (g.charCodeAt(T++) === $e && g.charCodeAt(T++) === pr) {
|
|
54
|
+
for (O = T; T < k; ) {
|
|
55
|
+
if (_ = g.charCodeAt(T), _ !== _ || _ === Ur || _ === Dr || _ === je)
|
|
56
|
+
return;
|
|
57
|
+
if (_ === St) {
|
|
58
|
+
S = T, T++;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
T++;
|
|
62
|
+
}
|
|
63
|
+
if (!(S === void 0 || O === S || g.charCodeAt(T++) !== yf)) {
|
|
64
|
+
if (A)
|
|
65
|
+
return true;
|
|
66
|
+
for (R = g.slice(O, S), L = b.now(), ee = 0, Z = 0, ve = T, Ee = []; T < k; ) {
|
|
67
|
+
if (_ = g.charCodeAt(T), _ !== _ || _ === Ur)
|
|
68
|
+
M = { start: ee, contentStart: ve || T, contentEnd: T, end: T }, Ee.push(M), _ === Ur && (ee = T + 1, Z = 0, ve = void 0, M.end = ee);
|
|
69
|
+
else if (Z !== void 0)
|
|
70
|
+
if (_ === je || _ === Dr)
|
|
71
|
+
Z += _ === je ? 1 : zr - Z % zr, Z > zr && (Z = void 0, ve = T);
|
|
72
|
+
else {
|
|
73
|
+
if (Z < zr && M && (M.contentStart === M.contentEnd || _f(v, a, w, [b, g.slice(T, wf), true])))
|
|
74
|
+
break;
|
|
75
|
+
Z = void 0, ve = T;
|
|
76
|
+
}
|
|
77
|
+
T++;
|
|
78
|
+
}
|
|
79
|
+
for (T = -1, k = Ee.length; k > 0 && (M = Ee[k - 1], M.contentStart === M.contentEnd); )
|
|
80
|
+
k--;
|
|
81
|
+
for (Be = b(g.slice(0, M.contentEnd)); ++T < k; )
|
|
82
|
+
M = Ee[T], x[L.line + T] = (x[L.line + T] || 0) + (M.contentStart - M.start), q.push(g.slice(M.contentStart, M.end));
|
|
83
|
+
return W = w.enterBlock(), I = w.tokenizeBlock(q.join(""), L), W(), Be({ type: "footnoteDefinition", identifier: R.toLowerCase(), label: R, children: I });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function h(b, g, A) {
|
|
88
|
+
var w = g.length + 1, v = 0, x, k, T, q;
|
|
89
|
+
if (g.charCodeAt(v++) === $e && g.charCodeAt(v++) === pr) {
|
|
90
|
+
for (k = v; v < w; ) {
|
|
91
|
+
if (q = g.charCodeAt(v), q !== q || q === Ur || q === Dr || q === je)
|
|
92
|
+
return;
|
|
93
|
+
if (q === St) {
|
|
94
|
+
T = v, v++;
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
v++;
|
|
98
|
+
}
|
|
99
|
+
if (!(T === void 0 || k === T))
|
|
100
|
+
return A ? true : (x = g.slice(k, T), b(g.slice(0, v))({ type: "footnoteReference", identifier: x.toLowerCase(), label: x }));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function m(b, g, A) {
|
|
104
|
+
var w = this, v = g.length + 1, x = 0, k = 0, T, q, R, O, S, _, L;
|
|
105
|
+
if (g.charCodeAt(x++) === pr && g.charCodeAt(x++) === $e) {
|
|
106
|
+
for (R = x; x < v; ) {
|
|
107
|
+
if (q = g.charCodeAt(x), q !== q)
|
|
108
|
+
return;
|
|
109
|
+
if (_ === void 0)
|
|
110
|
+
if (q === Af)
|
|
111
|
+
x += 2;
|
|
112
|
+
else if (q === $e)
|
|
113
|
+
k++, x++;
|
|
114
|
+
else if (q === St)
|
|
115
|
+
if (k === 0) {
|
|
116
|
+
O = x, x++;
|
|
117
|
+
break;
|
|
118
|
+
} else
|
|
119
|
+
k--, x++;
|
|
120
|
+
else if (q === Mr) {
|
|
121
|
+
for (S = x, _ = 1; g.charCodeAt(S + _) === Mr; )
|
|
122
|
+
_++;
|
|
123
|
+
x += _;
|
|
124
|
+
} else
|
|
125
|
+
x++;
|
|
126
|
+
else if (q === Mr) {
|
|
127
|
+
for (S = x, L = 1; g.charCodeAt(S + L) === Mr; )
|
|
128
|
+
L++;
|
|
129
|
+
x += L, _ === L && (_ = void 0), L = void 0;
|
|
130
|
+
} else
|
|
131
|
+
x++;
|
|
132
|
+
}
|
|
133
|
+
if (O !== void 0)
|
|
134
|
+
return A ? true : (T = b.now(), T.column += 2, T.offset += 2, b(g.slice(0, x))({ type: "footnote", children: w.tokenizeInline(g.slice(R, O), T) }));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function F(b, g, A) {
|
|
138
|
+
var w = 0;
|
|
139
|
+
if (g.charCodeAt(w) === bf && w++, g.charCodeAt(w) === $e && g.charCodeAt(w + 1) !== pr)
|
|
140
|
+
return l.call(this, b, g, A);
|
|
141
|
+
}
|
|
142
|
+
function y(b, g, A) {
|
|
143
|
+
for (var w = 0, v = g.charCodeAt(w); v === je || v === Dr; )
|
|
144
|
+
v = g.charCodeAt(++w);
|
|
145
|
+
if (v === $e && g.charCodeAt(w + 1) !== pr)
|
|
146
|
+
return s.call(this, b, g, A);
|
|
147
|
+
}
|
|
148
|
+
function E(b, g) {
|
|
149
|
+
return b.indexOf("[", g);
|
|
150
|
+
}
|
|
151
|
+
function B(b, g) {
|
|
152
|
+
return b.indexOf("^[", g);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function qf(e) {
|
|
156
|
+
var r = e.prototype.visitors, t = " ";
|
|
157
|
+
r.footnote = n, r.footnoteReference = a, r.footnoteDefinition = u;
|
|
158
|
+
function n(i) {
|
|
159
|
+
return "^[" + this.all(i).join("") + "]";
|
|
160
|
+
}
|
|
161
|
+
function a(i) {
|
|
162
|
+
return "[^" + (i.label || i.identifier) + "]";
|
|
163
|
+
}
|
|
164
|
+
function u(i) {
|
|
165
|
+
for (var o = this.all(i).join(`
|
|
166
|
+
|
|
167
|
+
`).split(`
|
|
168
|
+
`), s = 0, l = o.length, c; ++s < l; )
|
|
169
|
+
c = o[s], c !== "" && (o[s] = t + c);
|
|
170
|
+
return "[^" + (i.label || i.identifier) + "]: " + o.join(`
|
|
171
|
+
`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
function Ot(e, r, t) {
|
|
175
|
+
e.splice(e.indexOf(r), 0, t);
|
|
176
|
+
}
|
|
177
|
+
function _f(e, r, t, n) {
|
|
178
|
+
for (var a = e.length, u = -1; ++u < a; )
|
|
179
|
+
if (r[e[u][0]].apply(t, n))
|
|
180
|
+
return true;
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
var Pt = C((Lt) => {
|
|
185
|
+
Lt.isRemarkParser = Sf;
|
|
186
|
+
Lt.isRemarkCompiler = Of;
|
|
187
|
+
function Sf(e) {
|
|
188
|
+
return !!(e && e.prototype && e.prototype.blockTokenizers);
|
|
189
|
+
}
|
|
190
|
+
function Of(e) {
|
|
191
|
+
return !!(e && e.prototype && e.prototype.visitors);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
var Xi = C((qv, Ji) => {
|
|
195
|
+
var ji = Pt();
|
|
196
|
+
Ji.exports = Nf;
|
|
197
|
+
var $i = 9, Wi = 32, Yr = 36, Lf = 48, Pf = 57, Hi = 92, If = ["math", "math-inline"], Ki = "math-display";
|
|
198
|
+
function Nf(e) {
|
|
199
|
+
let r = this.Parser, t = this.Compiler;
|
|
200
|
+
ji.isRemarkParser(r) && Rf(r, e), ji.isRemarkCompiler(t) && Uf(t);
|
|
201
|
+
}
|
|
202
|
+
function Rf(e, r) {
|
|
203
|
+
let t = e.prototype, n = t.inlineMethods;
|
|
204
|
+
u.locator = a, t.inlineTokenizers.math = u, n.splice(n.indexOf("text"), 0, "math");
|
|
205
|
+
function a(i, o) {
|
|
206
|
+
return i.indexOf("$", o);
|
|
207
|
+
}
|
|
208
|
+
function u(i, o, s) {
|
|
209
|
+
let l = o.length, c = false, f = false, p = 0, d, D, h, m, F, y, E;
|
|
210
|
+
if (o.charCodeAt(p) === Hi && (f = true, p++), o.charCodeAt(p) === Yr) {
|
|
211
|
+
if (p++, f)
|
|
212
|
+
return s ? true : i(o.slice(0, p))({ type: "text", value: "$" });
|
|
213
|
+
if (o.charCodeAt(p) === Yr && (c = true, p++), h = o.charCodeAt(p), !(h === Wi || h === $i)) {
|
|
214
|
+
for (m = p; p < l; ) {
|
|
215
|
+
if (D = h, h = o.charCodeAt(p + 1), D === Yr) {
|
|
216
|
+
if (d = o.charCodeAt(p - 1), d !== Wi && d !== $i && (h !== h || h < Lf || h > Pf) && (!c || h === Yr)) {
|
|
217
|
+
F = p - 1, p++, c && p++, y = p;
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
} else
|
|
221
|
+
D === Hi && (p++, h = o.charCodeAt(p + 1));
|
|
222
|
+
p++;
|
|
223
|
+
}
|
|
224
|
+
if (y !== void 0)
|
|
225
|
+
return s ? true : (E = o.slice(m, F + 1), i(o.slice(0, y))({ type: "inlineMath", value: E, data: { hName: "span", hProperties: { className: If.concat(c && r.inlineMathDouble ? [Ki] : []) }, hChildren: [{ type: "text", value: E }] } }));
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function Uf(e) {
|
|
231
|
+
let r = e.prototype;
|
|
232
|
+
r.visitors.inlineMath = t;
|
|
233
|
+
function t(n) {
|
|
234
|
+
let a = "$";
|
|
235
|
+
return (n.data && n.data.hProperties && n.data.hProperties.className || []).includes(Ki) && (a = "$$"), a + n.value + a;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
var tu = C((_v, ru) => {
|
|
240
|
+
var Qi = Pt();
|
|
241
|
+
ru.exports = Gf;
|
|
242
|
+
var Zi = 10, hr = 32, It = 36, eu = `
|
|
243
|
+
`, Mf = "$", zf = 2, Yf = ["math", "math-display"];
|
|
244
|
+
function Gf() {
|
|
245
|
+
let e = this.Parser, r = this.Compiler;
|
|
246
|
+
Qi.isRemarkParser(e) && Vf(e), Qi.isRemarkCompiler(r) && jf(r);
|
|
247
|
+
}
|
|
248
|
+
function Vf(e) {
|
|
249
|
+
let r = e.prototype, t = r.blockMethods, n = r.interruptParagraph, a = r.interruptList, u = r.interruptBlockquote;
|
|
250
|
+
r.blockTokenizers.math = i, t.splice(t.indexOf("fencedCode") + 1, 0, "math"), n.splice(n.indexOf("fencedCode") + 1, 0, ["math"]), a.splice(a.indexOf("fencedCode") + 1, 0, ["math"]), u.splice(u.indexOf("fencedCode") + 1, 0, ["math"]);
|
|
251
|
+
function i(o, s, l) {
|
|
252
|
+
var c = s.length, f = 0;
|
|
253
|
+
let p, d, D, h, m, F, y, E, B, b, g;
|
|
254
|
+
for (; f < c && s.charCodeAt(f) === hr; )
|
|
255
|
+
f++;
|
|
256
|
+
for (m = f; f < c && s.charCodeAt(f) === It; )
|
|
257
|
+
f++;
|
|
258
|
+
if (F = f - m, !(F < zf)) {
|
|
259
|
+
for (; f < c && s.charCodeAt(f) === hr; )
|
|
260
|
+
f++;
|
|
261
|
+
for (y = f; f < c; ) {
|
|
262
|
+
if (p = s.charCodeAt(f), p === It)
|
|
263
|
+
return;
|
|
264
|
+
if (p === Zi)
|
|
265
|
+
break;
|
|
266
|
+
f++;
|
|
267
|
+
}
|
|
268
|
+
if (s.charCodeAt(f) === Zi) {
|
|
269
|
+
if (l)
|
|
270
|
+
return true;
|
|
271
|
+
for (d = [], y !== f && d.push(s.slice(y, f)), f++, D = s.indexOf(eu, f + 1), D = D === -1 ? c : D; f < c; ) {
|
|
272
|
+
for (E = false, b = f, g = D, h = D, B = 0; h > b && s.charCodeAt(h - 1) === hr; )
|
|
273
|
+
h--;
|
|
274
|
+
for (; h > b && s.charCodeAt(h - 1) === It; )
|
|
275
|
+
B++, h--;
|
|
276
|
+
for (F <= B && s.indexOf(Mf, b) === h && (E = true, g = h); b <= g && b - f < m && s.charCodeAt(b) === hr; )
|
|
277
|
+
b++;
|
|
278
|
+
if (E)
|
|
279
|
+
for (; g > b && s.charCodeAt(g - 1) === hr; )
|
|
280
|
+
g--;
|
|
281
|
+
if ((!E || b !== g) && d.push(s.slice(b, g)), E)
|
|
282
|
+
break;
|
|
283
|
+
f = D + 1, D = s.indexOf(eu, f + 1), D = D === -1 ? c : D;
|
|
284
|
+
}
|
|
285
|
+
return d = d.join(`
|
|
286
|
+
`), o(s.slice(0, D))({ type: "math", value: d, data: { hName: "div", hProperties: { className: Yf.concat() }, hChildren: [{ type: "text", value: d }] } });
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
function jf(e) {
|
|
292
|
+
let r = e.prototype;
|
|
293
|
+
r.visitors.math = t;
|
|
294
|
+
function t(n) {
|
|
295
|
+
return `$$
|
|
296
|
+
` + n.value + `
|
|
297
|
+
$$`;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
var iu = C((Sv, nu) => {
|
|
302
|
+
var $f = Xi(), Wf = tu();
|
|
303
|
+
nu.exports = Hf;
|
|
304
|
+
function Hf(e) {
|
|
305
|
+
var r = e || {};
|
|
306
|
+
Wf.call(this, r), $f.call(this, r);
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
var Ie = C((Ov, uu) => {
|
|
310
|
+
uu.exports = Jf;
|
|
311
|
+
var Kf = Object.prototype.hasOwnProperty;
|
|
312
|
+
function Jf() {
|
|
313
|
+
for (var e = {}, r = 0; r < arguments.length; r++) {
|
|
314
|
+
var t = arguments[r];
|
|
315
|
+
for (var n in t)
|
|
316
|
+
Kf.call(t, n) && (e[n] = t[n]);
|
|
317
|
+
}
|
|
318
|
+
return e;
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
var au = C((Lv, Nt) => {
|
|
322
|
+
typeof Object.create == "function" ? Nt.exports = function(r, t) {
|
|
323
|
+
t && (r.super_ = t, r.prototype = Object.create(t.prototype, { constructor: { value: r, enumerable: false, writable: true, configurable: true } }));
|
|
324
|
+
} : Nt.exports = function(r, t) {
|
|
325
|
+
if (t) {
|
|
326
|
+
r.super_ = t;
|
|
327
|
+
var n = function() {
|
|
328
|
+
};
|
|
329
|
+
n.prototype = t.prototype, r.prototype = new n(), r.prototype.constructor = r;
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
});
|
|
333
|
+
var cu = C((Pv, su) => {
|
|
334
|
+
var Xf = Ie(), ou = au();
|
|
335
|
+
su.exports = Qf;
|
|
336
|
+
function Qf(e) {
|
|
337
|
+
var r, t, n;
|
|
338
|
+
ou(u, e), ou(a, u), r = u.prototype;
|
|
339
|
+
for (t in r)
|
|
340
|
+
n = r[t], n && typeof n == "object" && (r[t] = "concat" in n ? n.concat() : Xf(n));
|
|
341
|
+
return u;
|
|
342
|
+
function a(i) {
|
|
343
|
+
return e.apply(this, i);
|
|
344
|
+
}
|
|
345
|
+
function u() {
|
|
346
|
+
return this instanceof u ? e.apply(this, arguments) : new a(arguments);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
var fu = C((Iv, lu) => {
|
|
351
|
+
lu.exports = Zf;
|
|
352
|
+
function Zf(e, r, t) {
|
|
353
|
+
return n;
|
|
354
|
+
function n() {
|
|
355
|
+
var a = t || this, u = a[e];
|
|
356
|
+
return a[e] = !r, i;
|
|
357
|
+
function i() {
|
|
358
|
+
a[e] = u;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
var pu = C((Nv, Du) => {
|
|
364
|
+
Du.exports = eD;
|
|
365
|
+
function eD(e) {
|
|
366
|
+
for (var r = String(e), t = [], n = /\r?\n|\r/g; n.exec(r); )
|
|
367
|
+
t.push(n.lastIndex);
|
|
368
|
+
return t.push(r.length + 1), { toPoint: a, toPosition: a, toOffset: u };
|
|
369
|
+
function a(i) {
|
|
370
|
+
var o = -1;
|
|
371
|
+
if (i > -1 && i < t[t.length - 1]) {
|
|
372
|
+
for (; ++o < t.length; )
|
|
373
|
+
if (t[o] > i)
|
|
374
|
+
return { line: o + 1, column: i - (t[o - 1] || 0) + 1, offset: i };
|
|
375
|
+
}
|
|
376
|
+
return {};
|
|
377
|
+
}
|
|
378
|
+
function u(i) {
|
|
379
|
+
var o = i && i.line, s = i && i.column, l;
|
|
380
|
+
return !isNaN(o) && !isNaN(s) && o - 1 in t && (l = (t[o - 2] || 0) + s - 1 || 0), l > -1 && l < t[t.length - 1] ? l : -1;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
var du = C((Rv, hu) => {
|
|
385
|
+
hu.exports = rD;
|
|
386
|
+
var Rt = "\\";
|
|
387
|
+
function rD(e, r) {
|
|
388
|
+
return t;
|
|
389
|
+
function t(n) {
|
|
390
|
+
for (var a = 0, u = n.indexOf(Rt), i = e[r], o = [], s; u !== -1; )
|
|
391
|
+
o.push(n.slice(a, u)), a = u + 1, s = n.charAt(a), (!s || i.indexOf(s) === -1) && o.push(Rt), u = n.indexOf(Rt, a + 1);
|
|
392
|
+
return o.push(n.slice(a)), o.join("");
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
});
|
|
396
|
+
var mu = C((Uv, tD) => {
|
|
397
|
+
tD.exports = { AElig: "Æ", AMP: "&", Aacute: "Á", Acirc: "Â", Agrave: "À", Aring: "Å", Atilde: "Ã", Auml: "Ä", COPY: "©", Ccedil: "Ç", ETH: "Ð", Eacute: "É", Ecirc: "Ê", Egrave: "È", Euml: "Ë", GT: ">", Iacute: "Í", Icirc: "Î", Igrave: "Ì", Iuml: "Ï", LT: "<", Ntilde: "Ñ", Oacute: "Ó", Ocirc: "Ô", Ograve: "Ò", Oslash: "Ø", Otilde: "Õ", Ouml: "Ö", QUOT: '"', REG: "®", THORN: "Þ", Uacute: "Ú", Ucirc: "Û", Ugrave: "Ù", Uuml: "Ü", Yacute: "Ý", aacute: "á", acirc: "â", acute: "´", aelig: "æ", agrave: "à", amp: "&", aring: "å", atilde: "ã", auml: "ä", brvbar: "¦", ccedil: "ç", cedil: "¸", cent: "¢", copy: "©", curren: "¤", deg: "°", divide: "÷", eacute: "é", ecirc: "ê", egrave: "è", eth: "ð", euml: "ë", frac12: "½", frac14: "¼", frac34: "¾", gt: ">", iacute: "í", icirc: "î", iexcl: "¡", igrave: "ì", iquest: "¿", iuml: "ï", laquo: "«", lt: "<", macr: "¯", micro: "µ", middot: "·", nbsp: " ", not: "¬", ntilde: "ñ", oacute: "ó", ocirc: "ô", ograve: "ò", ordf: "ª", ordm: "º", oslash: "ø", otilde: "õ", ouml: "ö", para: "¶", plusmn: "±", pound: "£", quot: '"', raquo: "»", reg: "®", sect: "§", shy: "", sup1: "¹", sup2: "²", sup3: "³", szlig: "ß", thorn: "þ", times: "×", uacute: "ú", ucirc: "û", ugrave: "ù", uml: "¨", uuml: "ü", yacute: "ý", yen: "¥", yuml: "ÿ" };
|
|
398
|
+
});
|
|
399
|
+
var Fu = C((Mv, nD) => {
|
|
400
|
+
nD.exports = { "0": "�", "128": "€", "130": "‚", "131": "ƒ", "132": "„", "133": "…", "134": "†", "135": "‡", "136": "ˆ", "137": "‰", "138": "Š", "139": "‹", "140": "Œ", "142": "Ž", "145": "‘", "146": "’", "147": "“", "148": "”", "149": "•", "150": "–", "151": "—", "152": "˜", "153": "™", "154": "š", "155": "›", "156": "œ", "158": "ž", "159": "Ÿ" };
|
|
401
|
+
});
|
|
402
|
+
var Ne = C((zv, gu) => {
|
|
403
|
+
gu.exports = iD;
|
|
404
|
+
function iD(e) {
|
|
405
|
+
var r = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
406
|
+
return r >= 48 && r <= 57;
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
var Eu = C((Yv, vu) => {
|
|
410
|
+
vu.exports = uD;
|
|
411
|
+
function uD(e) {
|
|
412
|
+
var r = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
413
|
+
return r >= 97 && r <= 102 || r >= 65 && r <= 70 || r >= 48 && r <= 57;
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
var We = C((Gv, Cu) => {
|
|
417
|
+
Cu.exports = aD;
|
|
418
|
+
function aD(e) {
|
|
419
|
+
var r = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
420
|
+
return r >= 97 && r <= 122 || r >= 65 && r <= 90;
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
var yu = C((Vv, bu) => {
|
|
424
|
+
var oD = We(), sD = Ne();
|
|
425
|
+
bu.exports = cD;
|
|
426
|
+
function cD(e) {
|
|
427
|
+
return oD(e) || sD(e);
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
var Au = C((jv, lD) => {
|
|
431
|
+
lD.exports = { AEli: "Æ", AElig: "Æ", AM: "&", AMP: "&", Aacut: "Á", Aacute: "Á", Abreve: "Ă", Acir: "Â", Acirc: "Â", Acy: "А", Afr: "𝔄", Agrav: "À", Agrave: "À", Alpha: "Α", Amacr: "Ā", And: "⩓", Aogon: "Ą", Aopf: "𝔸", ApplyFunction: "", Arin: "Å", Aring: "Å", Ascr: "𝒜", Assign: "≔", Atild: "Ã", Atilde: "Ã", Aum: "Ä", Auml: "Ä", Backslash: "∖", Barv: "⫧", Barwed: "⌆", Bcy: "Б", Because: "∵", Bernoullis: "ℬ", Beta: "Β", Bfr: "𝔅", Bopf: "𝔹", Breve: "˘", Bscr: "ℬ", Bumpeq: "≎", CHcy: "Ч", COP: "©", COPY: "©", Cacute: "Ć", Cap: "⋒", CapitalDifferentialD: "ⅅ", Cayleys: "ℭ", Ccaron: "Č", Ccedi: "Ç", Ccedil: "Ç", Ccirc: "Ĉ", Cconint: "∰", Cdot: "Ċ", Cedilla: "¸", CenterDot: "·", Cfr: "ℭ", Chi: "Χ", CircleDot: "⊙", CircleMinus: "⊖", CirclePlus: "⊕", CircleTimes: "⊗", ClockwiseContourIntegral: "∲", CloseCurlyDoubleQuote: "”", CloseCurlyQuote: "’", Colon: "∷", Colone: "⩴", Congruent: "≡", Conint: "∯", ContourIntegral: "∮", Copf: "ℂ", Coproduct: "∐", CounterClockwiseContourIntegral: "∳", Cross: "⨯", Cscr: "𝒞", Cup: "⋓", CupCap: "≍", DD: "ⅅ", DDotrahd: "⤑", DJcy: "Ђ", DScy: "Ѕ", DZcy: "Џ", Dagger: "‡", Darr: "↡", Dashv: "⫤", Dcaron: "Ď", Dcy: "Д", Del: "∇", Delta: "Δ", Dfr: "𝔇", DiacriticalAcute: "´", DiacriticalDot: "˙", DiacriticalDoubleAcute: "˝", DiacriticalGrave: "`", DiacriticalTilde: "˜", Diamond: "⋄", DifferentialD: "ⅆ", Dopf: "𝔻", Dot: "¨", DotDot: "⃜", DotEqual: "≐", DoubleContourIntegral: "∯", DoubleDot: "¨", DoubleDownArrow: "⇓", DoubleLeftArrow: "⇐", DoubleLeftRightArrow: "⇔", DoubleLeftTee: "⫤", DoubleLongLeftArrow: "⟸", DoubleLongLeftRightArrow: "⟺", DoubleLongRightArrow: "⟹", DoubleRightArrow: "⇒", DoubleRightTee: "⊨", DoubleUpArrow: "⇑", DoubleUpDownArrow: "⇕", DoubleVerticalBar: "∥", DownArrow: "↓", DownArrowBar: "⤓", DownArrowUpArrow: "⇵", DownBreve: "̑", DownLeftRightVector: "⥐", DownLeftTeeVector: "⥞", DownLeftVector: "↽", DownLeftVectorBar: "⥖", DownRightTeeVector: "⥟", DownRightVector: "⇁", DownRightVectorBar: "⥗", DownTee: "⊤", DownTeeArrow: "↧", Downarrow: "⇓", Dscr: "𝒟", Dstrok: "Đ", ENG: "Ŋ", ET: "Ð", ETH: "Ð", Eacut: "É", Eacute: "É", Ecaron: "Ě", Ecir: "Ê", Ecirc: "Ê", Ecy: "Э", Edot: "Ė", Efr: "𝔈", Egrav: "È", Egrave: "È", Element: "∈", Emacr: "Ē", EmptySmallSquare: "◻", EmptyVerySmallSquare: "▫", Eogon: "Ę", Eopf: "𝔼", Epsilon: "Ε", Equal: "⩵", EqualTilde: "≂", Equilibrium: "⇌", Escr: "ℰ", Esim: "⩳", Eta: "Η", Eum: "Ë", Euml: "Ë", Exists: "∃", ExponentialE: "ⅇ", Fcy: "Ф", Ffr: "𝔉", FilledSmallSquare: "◼", FilledVerySmallSquare: "▪", Fopf: "𝔽", ForAll: "∀", Fouriertrf: "ℱ", Fscr: "ℱ", GJcy: "Ѓ", G: ">", GT: ">", Gamma: "Γ", Gammad: "Ϝ", Gbreve: "Ğ", Gcedil: "Ģ", Gcirc: "Ĝ", Gcy: "Г", Gdot: "Ġ", Gfr: "𝔊", Gg: "⋙", Gopf: "𝔾", GreaterEqual: "≥", GreaterEqualLess: "⋛", GreaterFullEqual: "≧", GreaterGreater: "⪢", GreaterLess: "≷", GreaterSlantEqual: "⩾", GreaterTilde: "≳", Gscr: "𝒢", Gt: "≫", HARDcy: "Ъ", Hacek: "ˇ", Hat: "^", Hcirc: "Ĥ", Hfr: "ℌ", HilbertSpace: "ℋ", Hopf: "ℍ", HorizontalLine: "─", Hscr: "ℋ", Hstrok: "Ħ", HumpDownHump: "≎", HumpEqual: "≏", IEcy: "Е", IJlig: "IJ", IOcy: "Ё", Iacut: "Í", Iacute: "Í", Icir: "Î", Icirc: "Î", Icy: "И", Idot: "İ", Ifr: "ℑ", Igrav: "Ì", Igrave: "Ì", Im: "ℑ", Imacr: "Ī", ImaginaryI: "ⅈ", Implies: "⇒", Int: "∬", Integral: "∫", Intersection: "⋂", InvisibleComma: "", InvisibleTimes: "", Iogon: "Į", Iopf: "𝕀", Iota: "Ι", Iscr: "ℐ", Itilde: "Ĩ", Iukcy: "І", Ium: "Ï", Iuml: "Ï", Jcirc: "Ĵ", Jcy: "Й", Jfr: "𝔍", Jopf: "𝕁", Jscr: "𝒥", Jsercy: "Ј", Jukcy: "Є", KHcy: "Х", KJcy: "Ќ", Kappa: "Κ", Kcedil: "Ķ", Kcy: "К", Kfr: "𝔎", Kopf: "𝕂", Kscr: "𝒦", LJcy: "Љ", L: "<", LT: "<", Lacute: "Ĺ", Lambda: "Λ", Lang: "⟪", Laplacetrf: "ℒ", Larr: "↞", Lcaron: "Ľ", Lcedil: "Ļ", Lcy: "Л", LeftAngleBracket: "⟨", LeftArrow: "←", LeftArrowBar: "⇤", LeftArrowRightArrow: "⇆", LeftCeiling: "⌈", LeftDoubleBracket: "⟦", LeftDownTeeVector: "⥡", LeftDownVector: "⇃", LeftDownVectorBar: "⥙", LeftFloor: "⌊", LeftRightArrow: "↔", LeftRightVector: "⥎", LeftTee: "⊣", LeftTeeArrow: "↤", LeftTeeVector: "⥚", LeftTriangle: "⊲", LeftTriangleBar: "⧏", LeftTriangleEqual: "⊴", LeftUpDownVector: "⥑", LeftUpTeeVector: "⥠", LeftUpVector: "↿", LeftUpVectorBar: "⥘", LeftVector: "↼", LeftVectorBar: "⥒", Leftarrow: "⇐", Leftrightarrow: "⇔", LessEqualGreater: "⋚", LessFullEqual: "≦", LessGreater: "≶", LessLess: "⪡", LessSlantEqual: "⩽", LessTilde: "≲", Lfr: "𝔏", Ll: "⋘", Lleftarrow: "⇚", Lmidot: "Ŀ", LongLeftArrow: "⟵", LongLeftRightArrow: "⟷", LongRightArrow: "⟶", Longleftarrow: "⟸", Longleftrightarrow: "⟺", Longrightarrow: "⟹", Lopf: "𝕃", LowerLeftArrow: "↙", LowerRightArrow: "↘", Lscr: "ℒ", Lsh: "↰", Lstrok: "Ł", Lt: "≪", Map: "⤅", Mcy: "М", MediumSpace: " ", Mellintrf: "ℳ", Mfr: "𝔐", MinusPlus: "∓", Mopf: "𝕄", Mscr: "ℳ", Mu: "Μ", NJcy: "Њ", Nacute: "Ń", Ncaron: "Ň", Ncedil: "Ņ", Ncy: "Н", NegativeMediumSpace: "", NegativeThickSpace: "", NegativeThinSpace: "", NegativeVeryThinSpace: "", NestedGreaterGreater: "≫", NestedLessLess: "≪", NewLine: `
|
|
432
|
+
`, Nfr: "𝔑", NoBreak: "", NonBreakingSpace: " ", Nopf: "ℕ", Not: "⫬", NotCongruent: "≢", NotCupCap: "≭", NotDoubleVerticalBar: "∦", NotElement: "∉", NotEqual: "≠", NotEqualTilde: "≂̸", NotExists: "∄", NotGreater: "≯", NotGreaterEqual: "≱", NotGreaterFullEqual: "≧̸", NotGreaterGreater: "≫̸", NotGreaterLess: "≹", NotGreaterSlantEqual: "⩾̸", NotGreaterTilde: "≵", NotHumpDownHump: "≎̸", NotHumpEqual: "≏̸", NotLeftTriangle: "⋪", NotLeftTriangleBar: "⧏̸", NotLeftTriangleEqual: "⋬", NotLess: "≮", NotLessEqual: "≰", NotLessGreater: "≸", NotLessLess: "≪̸", NotLessSlantEqual: "⩽̸", NotLessTilde: "≴", NotNestedGreaterGreater: "⪢̸", NotNestedLessLess: "⪡̸", NotPrecedes: "⊀", NotPrecedesEqual: "⪯̸", NotPrecedesSlantEqual: "⋠", NotReverseElement: "∌", NotRightTriangle: "⋫", NotRightTriangleBar: "⧐̸", NotRightTriangleEqual: "⋭", NotSquareSubset: "⊏̸", NotSquareSubsetEqual: "⋢", NotSquareSuperset: "⊐̸", NotSquareSupersetEqual: "⋣", NotSubset: "⊂⃒", NotSubsetEqual: "⊈", NotSucceeds: "⊁", NotSucceedsEqual: "⪰̸", NotSucceedsSlantEqual: "⋡", NotSucceedsTilde: "≿̸", NotSuperset: "⊃⃒", NotSupersetEqual: "⊉", NotTilde: "≁", NotTildeEqual: "≄", NotTildeFullEqual: "≇", NotTildeTilde: "≉", NotVerticalBar: "∤", Nscr: "𝒩", Ntild: "Ñ", Ntilde: "Ñ", Nu: "Ν", OElig: "Œ", Oacut: "Ó", Oacute: "Ó", Ocir: "Ô", Ocirc: "Ô", Ocy: "О", Odblac: "Ő", Ofr: "𝔒", Ograv: "Ò", Ograve: "Ò", Omacr: "Ō", Omega: "Ω", Omicron: "Ο", Oopf: "𝕆", OpenCurlyDoubleQuote: "“", OpenCurlyQuote: "‘", Or: "⩔", Oscr: "𝒪", Oslas: "Ø", Oslash: "Ø", Otild: "Õ", Otilde: "Õ", Otimes: "⨷", Oum: "Ö", Ouml: "Ö", OverBar: "‾", OverBrace: "⏞", OverBracket: "⎴", OverParenthesis: "⏜", PartialD: "∂", Pcy: "П", Pfr: "𝔓", Phi: "Φ", Pi: "Π", PlusMinus: "±", Poincareplane: "ℌ", Popf: "ℙ", Pr: "⪻", Precedes: "≺", PrecedesEqual: "⪯", PrecedesSlantEqual: "≼", PrecedesTilde: "≾", Prime: "″", Product: "∏", Proportion: "∷", Proportional: "∝", Pscr: "𝒫", Psi: "Ψ", QUO: '"', QUOT: '"', Qfr: "𝔔", Qopf: "ℚ", Qscr: "𝒬", RBarr: "⤐", RE: "®", REG: "®", Racute: "Ŕ", Rang: "⟫", Rarr: "↠", Rarrtl: "⤖", Rcaron: "Ř", Rcedil: "Ŗ", Rcy: "Р", Re: "ℜ", ReverseElement: "∋", ReverseEquilibrium: "⇋", ReverseUpEquilibrium: "⥯", Rfr: "ℜ", Rho: "Ρ", RightAngleBracket: "⟩", RightArrow: "→", RightArrowBar: "⇥", RightArrowLeftArrow: "⇄", RightCeiling: "⌉", RightDoubleBracket: "⟧", RightDownTeeVector: "⥝", RightDownVector: "⇂", RightDownVectorBar: "⥕", RightFloor: "⌋", RightTee: "⊢", RightTeeArrow: "↦", RightTeeVector: "⥛", RightTriangle: "⊳", RightTriangleBar: "⧐", RightTriangleEqual: "⊵", RightUpDownVector: "⥏", RightUpTeeVector: "⥜", RightUpVector: "↾", RightUpVectorBar: "⥔", RightVector: "⇀", RightVectorBar: "⥓", Rightarrow: "⇒", Ropf: "ℝ", RoundImplies: "⥰", Rrightarrow: "⇛", Rscr: "ℛ", Rsh: "↱", RuleDelayed: "⧴", SHCHcy: "Щ", SHcy: "Ш", SOFTcy: "Ь", Sacute: "Ś", Sc: "⪼", Scaron: "Š", Scedil: "Ş", Scirc: "Ŝ", Scy: "С", Sfr: "𝔖", ShortDownArrow: "↓", ShortLeftArrow: "←", ShortRightArrow: "→", ShortUpArrow: "↑", Sigma: "Σ", SmallCircle: "∘", Sopf: "𝕊", Sqrt: "√", Square: "□", SquareIntersection: "⊓", SquareSubset: "⊏", SquareSubsetEqual: "⊑", SquareSuperset: "⊐", SquareSupersetEqual: "⊒", SquareUnion: "⊔", Sscr: "𝒮", Star: "⋆", Sub: "⋐", Subset: "⋐", SubsetEqual: "⊆", Succeeds: "≻", SucceedsEqual: "⪰", SucceedsSlantEqual: "≽", SucceedsTilde: "≿", SuchThat: "∋", Sum: "∑", Sup: "⋑", Superset: "⊃", SupersetEqual: "⊇", Supset: "⋑", THOR: "Þ", THORN: "Þ", TRADE: "™", TSHcy: "Ћ", TScy: "Ц", Tab: " ", Tau: "Τ", Tcaron: "Ť", Tcedil: "Ţ", Tcy: "Т", Tfr: "𝔗", Therefore: "∴", Theta: "Θ", ThickSpace: " ", ThinSpace: " ", Tilde: "∼", TildeEqual: "≃", TildeFullEqual: "≅", TildeTilde: "≈", Topf: "𝕋", TripleDot: "⃛", Tscr: "𝒯", Tstrok: "Ŧ", Uacut: "Ú", Uacute: "Ú", Uarr: "↟", Uarrocir: "⥉", Ubrcy: "Ў", Ubreve: "Ŭ", Ucir: "Û", Ucirc: "Û", Ucy: "У", Udblac: "Ű", Ufr: "𝔘", Ugrav: "Ù", Ugrave: "Ù", Umacr: "Ū", UnderBar: "_", UnderBrace: "⏟", UnderBracket: "⎵", UnderParenthesis: "⏝", Union: "⋃", UnionPlus: "⊎", Uogon: "Ų", Uopf: "𝕌", UpArrow: "↑", UpArrowBar: "⤒", UpArrowDownArrow: "⇅", UpDownArrow: "↕", UpEquilibrium: "⥮", UpTee: "⊥", UpTeeArrow: "↥", Uparrow: "⇑", Updownarrow: "⇕", UpperLeftArrow: "↖", UpperRightArrow: "↗", Upsi: "ϒ", Upsilon: "Υ", Uring: "Ů", Uscr: "𝒰", Utilde: "Ũ", Uum: "Ü", Uuml: "Ü", VDash: "⊫", Vbar: "⫫", Vcy: "В", Vdash: "⊩", Vdashl: "⫦", Vee: "⋁", Verbar: "‖", Vert: "‖", VerticalBar: "∣", VerticalLine: "|", VerticalSeparator: "❘", VerticalTilde: "≀", VeryThinSpace: " ", Vfr: "𝔙", Vopf: "𝕍", Vscr: "𝒱", Vvdash: "⊪", Wcirc: "Ŵ", Wedge: "⋀", Wfr: "𝔚", Wopf: "𝕎", Wscr: "𝒲", Xfr: "𝔛", Xi: "Ξ", Xopf: "𝕏", Xscr: "𝒳", YAcy: "Я", YIcy: "Ї", YUcy: "Ю", Yacut: "Ý", Yacute: "Ý", Ycirc: "Ŷ", Ycy: "Ы", Yfr: "𝔜", Yopf: "𝕐", Yscr: "𝒴", Yuml: "Ÿ", ZHcy: "Ж", Zacute: "Ź", Zcaron: "Ž", Zcy: "З", Zdot: "Ż", ZeroWidthSpace: "", Zeta: "Ζ", Zfr: "ℨ", Zopf: "ℤ", Zscr: "𝒵", aacut: "á", aacute: "á", abreve: "ă", ac: "∾", acE: "∾̳", acd: "∿", acir: "â", acirc: "â", acut: "´", acute: "´", acy: "а", aeli: "æ", aelig: "æ", af: "", afr: "𝔞", agrav: "à", agrave: "à", alefsym: "ℵ", aleph: "ℵ", alpha: "α", amacr: "ā", amalg: "⨿", am: "&", amp: "&", and: "∧", andand: "⩕", andd: "⩜", andslope: "⩘", andv: "⩚", ang: "∠", ange: "⦤", angle: "∠", angmsd: "∡", angmsdaa: "⦨", angmsdab: "⦩", angmsdac: "⦪", angmsdad: "⦫", angmsdae: "⦬", angmsdaf: "⦭", angmsdag: "⦮", angmsdah: "⦯", angrt: "∟", angrtvb: "⊾", angrtvbd: "⦝", angsph: "∢", angst: "Å", angzarr: "⍼", aogon: "ą", aopf: "𝕒", ap: "≈", apE: "⩰", apacir: "⩯", ape: "≊", apid: "≋", apos: "'", approx: "≈", approxeq: "≊", arin: "å", aring: "å", ascr: "𝒶", ast: "*", asymp: "≈", asympeq: "≍", atild: "ã", atilde: "ã", aum: "ä", auml: "ä", awconint: "∳", awint: "⨑", bNot: "⫭", backcong: "≌", backepsilon: "϶", backprime: "‵", backsim: "∽", backsimeq: "⋍", barvee: "⊽", barwed: "⌅", barwedge: "⌅", bbrk: "⎵", bbrktbrk: "⎶", bcong: "≌", bcy: "б", bdquo: "„", becaus: "∵", because: "∵", bemptyv: "⦰", bepsi: "϶", bernou: "ℬ", beta: "β", beth: "ℶ", between: "≬", bfr: "𝔟", bigcap: "⋂", bigcirc: "◯", bigcup: "⋃", bigodot: "⨀", bigoplus: "⨁", bigotimes: "⨂", bigsqcup: "⨆", bigstar: "★", bigtriangledown: "▽", bigtriangleup: "△", biguplus: "⨄", bigvee: "⋁", bigwedge: "⋀", bkarow: "⤍", blacklozenge: "⧫", blacksquare: "▪", blacktriangle: "▴", blacktriangledown: "▾", blacktriangleleft: "◂", blacktriangleright: "▸", blank: "␣", blk12: "▒", blk14: "░", blk34: "▓", block: "█", bne: "=⃥", bnequiv: "≡⃥", bnot: "⌐", bopf: "𝕓", bot: "⊥", bottom: "⊥", bowtie: "⋈", boxDL: "╗", boxDR: "╔", boxDl: "╖", boxDr: "╓", boxH: "═", boxHD: "╦", boxHU: "╩", boxHd: "╤", boxHu: "╧", boxUL: "╝", boxUR: "╚", boxUl: "╜", boxUr: "╙", boxV: "║", boxVH: "╬", boxVL: "╣", boxVR: "╠", boxVh: "╫", boxVl: "╢", boxVr: "╟", boxbox: "⧉", boxdL: "╕", boxdR: "╒", boxdl: "┐", boxdr: "┌", boxh: "─", boxhD: "╥", boxhU: "╨", boxhd: "┬", boxhu: "┴", boxminus: "⊟", boxplus: "⊞", boxtimes: "⊠", boxuL: "╛", boxuR: "╘", boxul: "┘", boxur: "└", boxv: "│", boxvH: "╪", boxvL: "╡", boxvR: "╞", boxvh: "┼", boxvl: "┤", boxvr: "├", bprime: "‵", breve: "˘", brvba: "¦", brvbar: "¦", bscr: "𝒷", bsemi: "⁏", bsim: "∽", bsime: "⋍", bsol: "\\", bsolb: "⧅", bsolhsub: "⟈", bull: "•", bullet: "•", bump: "≎", bumpE: "⪮", bumpe: "≏", bumpeq: "≏", cacute: "ć", cap: "∩", capand: "⩄", capbrcup: "⩉", capcap: "⩋", capcup: "⩇", capdot: "⩀", caps: "∩︀", caret: "⁁", caron: "ˇ", ccaps: "⩍", ccaron: "č", ccedi: "ç", ccedil: "ç", ccirc: "ĉ", ccups: "⩌", ccupssm: "⩐", cdot: "ċ", cedi: "¸", cedil: "¸", cemptyv: "⦲", cen: "¢", cent: "¢", centerdot: "·", cfr: "𝔠", chcy: "ч", check: "✓", checkmark: "✓", chi: "χ", cir: "○", cirE: "⧃", circ: "ˆ", circeq: "≗", circlearrowleft: "↺", circlearrowright: "↻", circledR: "®", circledS: "Ⓢ", circledast: "⊛", circledcirc: "⊚", circleddash: "⊝", cire: "≗", cirfnint: "⨐", cirmid: "⫯", cirscir: "⧂", clubs: "♣", clubsuit: "♣", colon: ":", colone: "≔", coloneq: "≔", comma: ",", commat: "@", comp: "∁", compfn: "∘", complement: "∁", complexes: "ℂ", cong: "≅", congdot: "⩭", conint: "∮", copf: "𝕔", coprod: "∐", cop: "©", copy: "©", copysr: "℗", crarr: "↵", cross: "✗", cscr: "𝒸", csub: "⫏", csube: "⫑", csup: "⫐", csupe: "⫒", ctdot: "⋯", cudarrl: "⤸", cudarrr: "⤵", cuepr: "⋞", cuesc: "⋟", cularr: "↶", cularrp: "⤽", cup: "∪", cupbrcap: "⩈", cupcap: "⩆", cupcup: "⩊", cupdot: "⊍", cupor: "⩅", cups: "∪︀", curarr: "↷", curarrm: "⤼", curlyeqprec: "⋞", curlyeqsucc: "⋟", curlyvee: "⋎", curlywedge: "⋏", curre: "¤", curren: "¤", curvearrowleft: "↶", curvearrowright: "↷", cuvee: "⋎", cuwed: "⋏", cwconint: "∲", cwint: "∱", cylcty: "⌭", dArr: "⇓", dHar: "⥥", dagger: "†", daleth: "ℸ", darr: "↓", dash: "‐", dashv: "⊣", dbkarow: "⤏", dblac: "˝", dcaron: "ď", dcy: "д", dd: "ⅆ", ddagger: "‡", ddarr: "⇊", ddotseq: "⩷", de: "°", deg: "°", delta: "δ", demptyv: "⦱", dfisht: "⥿", dfr: "𝔡", dharl: "⇃", dharr: "⇂", diam: "⋄", diamond: "⋄", diamondsuit: "♦", diams: "♦", die: "¨", digamma: "ϝ", disin: "⋲", div: "÷", divid: "÷", divide: "÷", divideontimes: "⋇", divonx: "⋇", djcy: "ђ", dlcorn: "⌞", dlcrop: "⌍", dollar: "$", dopf: "𝕕", dot: "˙", doteq: "≐", doteqdot: "≑", dotminus: "∸", dotplus: "∔", dotsquare: "⊡", doublebarwedge: "⌆", downarrow: "↓", downdownarrows: "⇊", downharpoonleft: "⇃", downharpoonright: "⇂", drbkarow: "⤐", drcorn: "⌟", drcrop: "⌌", dscr: "𝒹", dscy: "ѕ", dsol: "⧶", dstrok: "đ", dtdot: "⋱", dtri: "▿", dtrif: "▾", duarr: "⇵", duhar: "⥯", dwangle: "⦦", dzcy: "џ", dzigrarr: "⟿", eDDot: "⩷", eDot: "≑", eacut: "é", eacute: "é", easter: "⩮", ecaron: "ě", ecir: "ê", ecirc: "ê", ecolon: "≕", ecy: "э", edot: "ė", ee: "ⅇ", efDot: "≒", efr: "𝔢", eg: "⪚", egrav: "è", egrave: "è", egs: "⪖", egsdot: "⪘", el: "⪙", elinters: "⏧", ell: "ℓ", els: "⪕", elsdot: "⪗", emacr: "ē", empty: "∅", emptyset: "∅", emptyv: "∅", emsp13: " ", emsp14: " ", emsp: " ", eng: "ŋ", ensp: " ", eogon: "ę", eopf: "𝕖", epar: "⋕", eparsl: "⧣", eplus: "⩱", epsi: "ε", epsilon: "ε", epsiv: "ϵ", eqcirc: "≖", eqcolon: "≕", eqsim: "≂", eqslantgtr: "⪖", eqslantless: "⪕", equals: "=", equest: "≟", equiv: "≡", equivDD: "⩸", eqvparsl: "⧥", erDot: "≓", erarr: "⥱", escr: "ℯ", esdot: "≐", esim: "≂", eta: "η", et: "ð", eth: "ð", eum: "ë", euml: "ë", euro: "€", excl: "!", exist: "∃", expectation: "ℰ", exponentiale: "ⅇ", fallingdotseq: "≒", fcy: "ф", female: "♀", ffilig: "ffi", fflig: "ff", ffllig: "ffl", ffr: "𝔣", filig: "fi", fjlig: "fj", flat: "♭", fllig: "fl", fltns: "▱", fnof: "ƒ", fopf: "𝕗", forall: "∀", fork: "⋔", forkv: "⫙", fpartint: "⨍", frac1: "¼", frac12: "½", frac13: "⅓", frac14: "¼", frac15: "⅕", frac16: "⅙", frac18: "⅛", frac23: "⅔", frac25: "⅖", frac3: "¾", frac34: "¾", frac35: "⅗", frac38: "⅜", frac45: "⅘", frac56: "⅚", frac58: "⅝", frac78: "⅞", frasl: "⁄", frown: "⌢", fscr: "𝒻", gE: "≧", gEl: "⪌", gacute: "ǵ", gamma: "γ", gammad: "ϝ", gap: "⪆", gbreve: "ğ", gcirc: "ĝ", gcy: "г", gdot: "ġ", ge: "≥", gel: "⋛", geq: "≥", geqq: "≧", geqslant: "⩾", ges: "⩾", gescc: "⪩", gesdot: "⪀", gesdoto: "⪂", gesdotol: "⪄", gesl: "⋛︀", gesles: "⪔", gfr: "𝔤", gg: "≫", ggg: "⋙", gimel: "ℷ", gjcy: "ѓ", gl: "≷", glE: "⪒", gla: "⪥", glj: "⪤", gnE: "≩", gnap: "⪊", gnapprox: "⪊", gne: "⪈", gneq: "⪈", gneqq: "≩", gnsim: "⋧", gopf: "𝕘", grave: "`", gscr: "ℊ", gsim: "≳", gsime: "⪎", gsiml: "⪐", g: ">", gt: ">", gtcc: "⪧", gtcir: "⩺", gtdot: "⋗", gtlPar: "⦕", gtquest: "⩼", gtrapprox: "⪆", gtrarr: "⥸", gtrdot: "⋗", gtreqless: "⋛", gtreqqless: "⪌", gtrless: "≷", gtrsim: "≳", gvertneqq: "≩︀", gvnE: "≩︀", hArr: "⇔", hairsp: " ", half: "½", hamilt: "ℋ", hardcy: "ъ", harr: "↔", harrcir: "⥈", harrw: "↭", hbar: "ℏ", hcirc: "ĥ", hearts: "♥", heartsuit: "♥", hellip: "…", hercon: "⊹", hfr: "𝔥", hksearow: "⤥", hkswarow: "⤦", hoarr: "⇿", homtht: "∻", hookleftarrow: "↩", hookrightarrow: "↪", hopf: "𝕙", horbar: "―", hscr: "𝒽", hslash: "ℏ", hstrok: "ħ", hybull: "⁃", hyphen: "‐", iacut: "í", iacute: "í", ic: "", icir: "î", icirc: "î", icy: "и", iecy: "е", iexc: "¡", iexcl: "¡", iff: "⇔", ifr: "𝔦", igrav: "ì", igrave: "ì", ii: "ⅈ", iiiint: "⨌", iiint: "∭", iinfin: "⧜", iiota: "℩", ijlig: "ij", imacr: "ī", image: "ℑ", imagline: "ℐ", imagpart: "ℑ", imath: "ı", imof: "⊷", imped: "Ƶ", in: "∈", incare: "℅", infin: "∞", infintie: "⧝", inodot: "ı", int: "∫", intcal: "⊺", integers: "ℤ", intercal: "⊺", intlarhk: "⨗", intprod: "⨼", iocy: "ё", iogon: "į", iopf: "𝕚", iota: "ι", iprod: "⨼", iques: "¿", iquest: "¿", iscr: "𝒾", isin: "∈", isinE: "⋹", isindot: "⋵", isins: "⋴", isinsv: "⋳", isinv: "∈", it: "", itilde: "ĩ", iukcy: "і", ium: "ï", iuml: "ï", jcirc: "ĵ", jcy: "й", jfr: "𝔧", jmath: "ȷ", jopf: "𝕛", jscr: "𝒿", jsercy: "ј", jukcy: "є", kappa: "κ", kappav: "ϰ", kcedil: "ķ", kcy: "к", kfr: "𝔨", kgreen: "ĸ", khcy: "х", kjcy: "ќ", kopf: "𝕜", kscr: "𝓀", lAarr: "⇚", lArr: "⇐", lAtail: "⤛", lBarr: "⤎", lE: "≦", lEg: "⪋", lHar: "⥢", lacute: "ĺ", laemptyv: "⦴", lagran: "ℒ", lambda: "λ", lang: "⟨", langd: "⦑", langle: "⟨", lap: "⪅", laqu: "«", laquo: "«", larr: "←", larrb: "⇤", larrbfs: "⤟", larrfs: "⤝", larrhk: "↩", larrlp: "↫", larrpl: "⤹", larrsim: "⥳", larrtl: "↢", lat: "⪫", latail: "⤙", late: "⪭", lates: "⪭︀", lbarr: "⤌", lbbrk: "❲", lbrace: "{", lbrack: "[", lbrke: "⦋", lbrksld: "⦏", lbrkslu: "⦍", lcaron: "ľ", lcedil: "ļ", lceil: "⌈", lcub: "{", lcy: "л", ldca: "⤶", ldquo: "“", ldquor: "„", ldrdhar: "⥧", ldrushar: "⥋", ldsh: "↲", le: "≤", leftarrow: "←", leftarrowtail: "↢", leftharpoondown: "↽", leftharpoonup: "↼", leftleftarrows: "⇇", leftrightarrow: "↔", leftrightarrows: "⇆", leftrightharpoons: "⇋", leftrightsquigarrow: "↭", leftthreetimes: "⋋", leg: "⋚", leq: "≤", leqq: "≦", leqslant: "⩽", les: "⩽", lescc: "⪨", lesdot: "⩿", lesdoto: "⪁", lesdotor: "⪃", lesg: "⋚︀", lesges: "⪓", lessapprox: "⪅", lessdot: "⋖", lesseqgtr: "⋚", lesseqqgtr: "⪋", lessgtr: "≶", lesssim: "≲", lfisht: "⥼", lfloor: "⌊", lfr: "𝔩", lg: "≶", lgE: "⪑", lhard: "↽", lharu: "↼", lharul: "⥪", lhblk: "▄", ljcy: "љ", ll: "≪", llarr: "⇇", llcorner: "⌞", llhard: "⥫", lltri: "◺", lmidot: "ŀ", lmoust: "⎰", lmoustache: "⎰", lnE: "≨", lnap: "⪉", lnapprox: "⪉", lne: "⪇", lneq: "⪇", lneqq: "≨", lnsim: "⋦", loang: "⟬", loarr: "⇽", lobrk: "⟦", longleftarrow: "⟵", longleftrightarrow: "⟷", longmapsto: "⟼", longrightarrow: "⟶", looparrowleft: "↫", looparrowright: "↬", lopar: "⦅", lopf: "𝕝", loplus: "⨭", lotimes: "⨴", lowast: "∗", lowbar: "_", loz: "◊", lozenge: "◊", lozf: "⧫", lpar: "(", lparlt: "⦓", lrarr: "⇆", lrcorner: "⌟", lrhar: "⇋", lrhard: "⥭", lrm: "", lrtri: "⊿", lsaquo: "‹", lscr: "𝓁", lsh: "↰", lsim: "≲", lsime: "⪍", lsimg: "⪏", lsqb: "[", lsquo: "‘", lsquor: "‚", lstrok: "ł", l: "<", lt: "<", ltcc: "⪦", ltcir: "⩹", ltdot: "⋖", lthree: "⋋", ltimes: "⋉", ltlarr: "⥶", ltquest: "⩻", ltrPar: "⦖", ltri: "◃", ltrie: "⊴", ltrif: "◂", lurdshar: "⥊", luruhar: "⥦", lvertneqq: "≨︀", lvnE: "≨︀", mDDot: "∺", mac: "¯", macr: "¯", male: "♂", malt: "✠", maltese: "✠", map: "↦", mapsto: "↦", mapstodown: "↧", mapstoleft: "↤", mapstoup: "↥", marker: "▮", mcomma: "⨩", mcy: "м", mdash: "—", measuredangle: "∡", mfr: "𝔪", mho: "℧", micr: "µ", micro: "µ", mid: "∣", midast: "*", midcir: "⫰", middo: "·", middot: "·", minus: "−", minusb: "⊟", minusd: "∸", minusdu: "⨪", mlcp: "⫛", mldr: "…", mnplus: "∓", models: "⊧", mopf: "𝕞", mp: "∓", mscr: "𝓂", mstpos: "∾", mu: "μ", multimap: "⊸", mumap: "⊸", nGg: "⋙̸", nGt: "≫⃒", nGtv: "≫̸", nLeftarrow: "⇍", nLeftrightarrow: "⇎", nLl: "⋘̸", nLt: "≪⃒", nLtv: "≪̸", nRightarrow: "⇏", nVDash: "⊯", nVdash: "⊮", nabla: "∇", nacute: "ń", nang: "∠⃒", nap: "≉", napE: "⩰̸", napid: "≋̸", napos: "ʼn", napprox: "≉", natur: "♮", natural: "♮", naturals: "ℕ", nbs: " ", nbsp: " ", nbump: "≎̸", nbumpe: "≏̸", ncap: "⩃", ncaron: "ň", ncedil: "ņ", ncong: "≇", ncongdot: "⩭̸", ncup: "⩂", ncy: "н", ndash: "–", ne: "≠", neArr: "⇗", nearhk: "⤤", nearr: "↗", nearrow: "↗", nedot: "≐̸", nequiv: "≢", nesear: "⤨", nesim: "≂̸", nexist: "∄", nexists: "∄", nfr: "𝔫", ngE: "≧̸", nge: "≱", ngeq: "≱", ngeqq: "≧̸", ngeqslant: "⩾̸", nges: "⩾̸", ngsim: "≵", ngt: "≯", ngtr: "≯", nhArr: "⇎", nharr: "↮", nhpar: "⫲", ni: "∋", nis: "⋼", nisd: "⋺", niv: "∋", njcy: "њ", nlArr: "⇍", nlE: "≦̸", nlarr: "↚", nldr: "‥", nle: "≰", nleftarrow: "↚", nleftrightarrow: "↮", nleq: "≰", nleqq: "≦̸", nleqslant: "⩽̸", nles: "⩽̸", nless: "≮", nlsim: "≴", nlt: "≮", nltri: "⋪", nltrie: "⋬", nmid: "∤", nopf: "𝕟", no: "¬", not: "¬", notin: "∉", notinE: "⋹̸", notindot: "⋵̸", notinva: "∉", notinvb: "⋷", notinvc: "⋶", notni: "∌", notniva: "∌", notnivb: "⋾", notnivc: "⋽", npar: "∦", nparallel: "∦", nparsl: "⫽⃥", npart: "∂̸", npolint: "⨔", npr: "⊀", nprcue: "⋠", npre: "⪯̸", nprec: "⊀", npreceq: "⪯̸", nrArr: "⇏", nrarr: "↛", nrarrc: "⤳̸", nrarrw: "↝̸", nrightarrow: "↛", nrtri: "⋫", nrtrie: "⋭", nsc: "⊁", nsccue: "⋡", nsce: "⪰̸", nscr: "𝓃", nshortmid: "∤", nshortparallel: "∦", nsim: "≁", nsime: "≄", nsimeq: "≄", nsmid: "∤", nspar: "∦", nsqsube: "⋢", nsqsupe: "⋣", nsub: "⊄", nsubE: "⫅̸", nsube: "⊈", nsubset: "⊂⃒", nsubseteq: "⊈", nsubseteqq: "⫅̸", nsucc: "⊁", nsucceq: "⪰̸", nsup: "⊅", nsupE: "⫆̸", nsupe: "⊉", nsupset: "⊃⃒", nsupseteq: "⊉", nsupseteqq: "⫆̸", ntgl: "≹", ntild: "ñ", ntilde: "ñ", ntlg: "≸", ntriangleleft: "⋪", ntrianglelefteq: "⋬", ntriangleright: "⋫", ntrianglerighteq: "⋭", nu: "ν", num: "#", numero: "№", numsp: " ", nvDash: "⊭", nvHarr: "⤄", nvap: "≍⃒", nvdash: "⊬", nvge: "≥⃒", nvgt: ">⃒", nvinfin: "⧞", nvlArr: "⤂", nvle: "≤⃒", nvlt: "<⃒", nvltrie: "⊴⃒", nvrArr: "⤃", nvrtrie: "⊵⃒", nvsim: "∼⃒", nwArr: "⇖", nwarhk: "⤣", nwarr: "↖", nwarrow: "↖", nwnear: "⤧", oS: "Ⓢ", oacut: "ó", oacute: "ó", oast: "⊛", ocir: "ô", ocirc: "ô", ocy: "о", odash: "⊝", odblac: "ő", odiv: "⨸", odot: "⊙", odsold: "⦼", oelig: "œ", ofcir: "⦿", ofr: "𝔬", ogon: "˛", ograv: "ò", ograve: "ò", ogt: "⧁", ohbar: "⦵", ohm: "Ω", oint: "∮", olarr: "↺", olcir: "⦾", olcross: "⦻", oline: "‾", olt: "⧀", omacr: "ō", omega: "ω", omicron: "ο", omid: "⦶", ominus: "⊖", oopf: "𝕠", opar: "⦷", operp: "⦹", oplus: "⊕", or: "∨", orarr: "↻", ord: "º", order: "ℴ", orderof: "ℴ", ordf: "ª", ordm: "º", origof: "⊶", oror: "⩖", orslope: "⩗", orv: "⩛", oscr: "ℴ", oslas: "ø", oslash: "ø", osol: "⊘", otild: "õ", otilde: "õ", otimes: "⊗", otimesas: "⨶", oum: "ö", ouml: "ö", ovbar: "⌽", par: "¶", para: "¶", parallel: "∥", parsim: "⫳", parsl: "⫽", part: "∂", pcy: "п", percnt: "%", period: ".", permil: "‰", perp: "⊥", pertenk: "‱", pfr: "𝔭", phi: "φ", phiv: "ϕ", phmmat: "ℳ", phone: "☎", pi: "π", pitchfork: "⋔", piv: "ϖ", planck: "ℏ", planckh: "ℎ", plankv: "ℏ", plus: "+", plusacir: "⨣", plusb: "⊞", pluscir: "⨢", plusdo: "∔", plusdu: "⨥", pluse: "⩲", plusm: "±", plusmn: "±", plussim: "⨦", plustwo: "⨧", pm: "±", pointint: "⨕", popf: "𝕡", poun: "£", pound: "£", pr: "≺", prE: "⪳", prap: "⪷", prcue: "≼", pre: "⪯", prec: "≺", precapprox: "⪷", preccurlyeq: "≼", preceq: "⪯", precnapprox: "⪹", precneqq: "⪵", precnsim: "⋨", precsim: "≾", prime: "′", primes: "ℙ", prnE: "⪵", prnap: "⪹", prnsim: "⋨", prod: "∏", profalar: "⌮", profline: "⌒", profsurf: "⌓", prop: "∝", propto: "∝", prsim: "≾", prurel: "⊰", pscr: "𝓅", psi: "ψ", puncsp: " ", qfr: "𝔮", qint: "⨌", qopf: "𝕢", qprime: "⁗", qscr: "𝓆", quaternions: "ℍ", quatint: "⨖", quest: "?", questeq: "≟", quo: '"', quot: '"', rAarr: "⇛", rArr: "⇒", rAtail: "⤜", rBarr: "⤏", rHar: "⥤", race: "∽̱", racute: "ŕ", radic: "√", raemptyv: "⦳", rang: "⟩", rangd: "⦒", range: "⦥", rangle: "⟩", raqu: "»", raquo: "»", rarr: "→", rarrap: "⥵", rarrb: "⇥", rarrbfs: "⤠", rarrc: "⤳", rarrfs: "⤞", rarrhk: "↪", rarrlp: "↬", rarrpl: "⥅", rarrsim: "⥴", rarrtl: "↣", rarrw: "↝", ratail: "⤚", ratio: "∶", rationals: "ℚ", rbarr: "⤍", rbbrk: "❳", rbrace: "}", rbrack: "]", rbrke: "⦌", rbrksld: "⦎", rbrkslu: "⦐", rcaron: "ř", rcedil: "ŗ", rceil: "⌉", rcub: "}", rcy: "р", rdca: "⤷", rdldhar: "⥩", rdquo: "”", rdquor: "”", rdsh: "↳", real: "ℜ", realine: "ℛ", realpart: "ℜ", reals: "ℝ", rect: "▭", re: "®", reg: "®", rfisht: "⥽", rfloor: "⌋", rfr: "𝔯", rhard: "⇁", rharu: "⇀", rharul: "⥬", rho: "ρ", rhov: "ϱ", rightarrow: "→", rightarrowtail: "↣", rightharpoondown: "⇁", rightharpoonup: "⇀", rightleftarrows: "⇄", rightleftharpoons: "⇌", rightrightarrows: "⇉", rightsquigarrow: "↝", rightthreetimes: "⋌", ring: "˚", risingdotseq: "≓", rlarr: "⇄", rlhar: "⇌", rlm: "", rmoust: "⎱", rmoustache: "⎱", rnmid: "⫮", roang: "⟭", roarr: "⇾", robrk: "⟧", ropar: "⦆", ropf: "𝕣", roplus: "⨮", rotimes: "⨵", rpar: ")", rpargt: "⦔", rppolint: "⨒", rrarr: "⇉", rsaquo: "›", rscr: "𝓇", rsh: "↱", rsqb: "]", rsquo: "’", rsquor: "’", rthree: "⋌", rtimes: "⋊", rtri: "▹", rtrie: "⊵", rtrif: "▸", rtriltri: "⧎", ruluhar: "⥨", rx: "℞", sacute: "ś", sbquo: "‚", sc: "≻", scE: "⪴", scap: "⪸", scaron: "š", sccue: "≽", sce: "⪰", scedil: "ş", scirc: "ŝ", scnE: "⪶", scnap: "⪺", scnsim: "⋩", scpolint: "⨓", scsim: "≿", scy: "с", sdot: "⋅", sdotb: "⊡", sdote: "⩦", seArr: "⇘", searhk: "⤥", searr: "↘", searrow: "↘", sec: "§", sect: "§", semi: ";", seswar: "⤩", setminus: "∖", setmn: "∖", sext: "✶", sfr: "𝔰", sfrown: "⌢", sharp: "♯", shchcy: "щ", shcy: "ш", shortmid: "∣", shortparallel: "∥", sh: "", shy: "", sigma: "σ", sigmaf: "ς", sigmav: "ς", sim: "∼", simdot: "⩪", sime: "≃", simeq: "≃", simg: "⪞", simgE: "⪠", siml: "⪝", simlE: "⪟", simne: "≆", simplus: "⨤", simrarr: "⥲", slarr: "←", smallsetminus: "∖", smashp: "⨳", smeparsl: "⧤", smid: "∣", smile: "⌣", smt: "⪪", smte: "⪬", smtes: "⪬︀", softcy: "ь", sol: "/", solb: "⧄", solbar: "⌿", sopf: "𝕤", spades: "♠", spadesuit: "♠", spar: "∥", sqcap: "⊓", sqcaps: "⊓︀", sqcup: "⊔", sqcups: "⊔︀", sqsub: "⊏", sqsube: "⊑", sqsubset: "⊏", sqsubseteq: "⊑", sqsup: "⊐", sqsupe: "⊒", sqsupset: "⊐", sqsupseteq: "⊒", squ: "□", square: "□", squarf: "▪", squf: "▪", srarr: "→", sscr: "𝓈", ssetmn: "∖", ssmile: "⌣", sstarf: "⋆", star: "☆", starf: "★", straightepsilon: "ϵ", straightphi: "ϕ", strns: "¯", sub: "⊂", subE: "⫅", subdot: "⪽", sube: "⊆", subedot: "⫃", submult: "⫁", subnE: "⫋", subne: "⊊", subplus: "⪿", subrarr: "⥹", subset: "⊂", subseteq: "⊆", subseteqq: "⫅", subsetneq: "⊊", subsetneqq: "⫋", subsim: "⫇", subsub: "⫕", subsup: "⫓", succ: "≻", succapprox: "⪸", succcurlyeq: "≽", succeq: "⪰", succnapprox: "⪺", succneqq: "⪶", succnsim: "⋩", succsim: "≿", sum: "∑", sung: "♪", sup: "⊃", sup1: "¹", sup2: "²", sup3: "³", supE: "⫆", supdot: "⪾", supdsub: "⫘", supe: "⊇", supedot: "⫄", suphsol: "⟉", suphsub: "⫗", suplarr: "⥻", supmult: "⫂", supnE: "⫌", supne: "⊋", supplus: "⫀", supset: "⊃", supseteq: "⊇", supseteqq: "⫆", supsetneq: "⊋", supsetneqq: "⫌", supsim: "⫈", supsub: "⫔", supsup: "⫖", swArr: "⇙", swarhk: "⤦", swarr: "↙", swarrow: "↙", swnwar: "⤪", szli: "ß", szlig: "ß", target: "⌖", tau: "τ", tbrk: "⎴", tcaron: "ť", tcedil: "ţ", tcy: "т", tdot: "⃛", telrec: "⌕", tfr: "𝔱", there4: "∴", therefore: "∴", theta: "θ", thetasym: "ϑ", thetav: "ϑ", thickapprox: "≈", thicksim: "∼", thinsp: " ", thkap: "≈", thksim: "∼", thor: "þ", thorn: "þ", tilde: "˜", time: "×", times: "×", timesb: "⊠", timesbar: "⨱", timesd: "⨰", tint: "∭", toea: "⤨", top: "⊤", topbot: "⌶", topcir: "⫱", topf: "𝕥", topfork: "⫚", tosa: "⤩", tprime: "‴", trade: "™", triangle: "▵", triangledown: "▿", triangleleft: "◃", trianglelefteq: "⊴", triangleq: "≜", triangleright: "▹", trianglerighteq: "⊵", tridot: "◬", trie: "≜", triminus: "⨺", triplus: "⨹", trisb: "⧍", tritime: "⨻", trpezium: "⏢", tscr: "𝓉", tscy: "ц", tshcy: "ћ", tstrok: "ŧ", twixt: "≬", twoheadleftarrow: "↞", twoheadrightarrow: "↠", uArr: "⇑", uHar: "⥣", uacut: "ú", uacute: "ú", uarr: "↑", ubrcy: "ў", ubreve: "ŭ", ucir: "û", ucirc: "û", ucy: "у", udarr: "⇅", udblac: "ű", udhar: "⥮", ufisht: "⥾", ufr: "𝔲", ugrav: "ù", ugrave: "ù", uharl: "↿", uharr: "↾", uhblk: "▀", ulcorn: "⌜", ulcorner: "⌜", ulcrop: "⌏", ultri: "◸", umacr: "ū", um: "¨", uml: "¨", uogon: "ų", uopf: "𝕦", uparrow: "↑", updownarrow: "↕", upharpoonleft: "↿", upharpoonright: "↾", uplus: "⊎", upsi: "υ", upsih: "ϒ", upsilon: "υ", upuparrows: "⇈", urcorn: "⌝", urcorner: "⌝", urcrop: "⌎", uring: "ů", urtri: "◹", uscr: "𝓊", utdot: "⋰", utilde: "ũ", utri: "▵", utrif: "▴", uuarr: "⇈", uum: "ü", uuml: "ü", uwangle: "⦧", vArr: "⇕", vBar: "⫨", vBarv: "⫩", vDash: "⊨", vangrt: "⦜", varepsilon: "ϵ", varkappa: "ϰ", varnothing: "∅", varphi: "ϕ", varpi: "ϖ", varpropto: "∝", varr: "↕", varrho: "ϱ", varsigma: "ς", varsubsetneq: "⊊︀", varsubsetneqq: "⫋︀", varsupsetneq: "⊋︀", varsupsetneqq: "⫌︀", vartheta: "ϑ", vartriangleleft: "⊲", vartriangleright: "⊳", vcy: "в", vdash: "⊢", vee: "∨", veebar: "⊻", veeeq: "≚", vellip: "⋮", verbar: "|", vert: "|", vfr: "𝔳", vltri: "⊲", vnsub: "⊂⃒", vnsup: "⊃⃒", vopf: "𝕧", vprop: "∝", vrtri: "⊳", vscr: "𝓋", vsubnE: "⫋︀", vsubne: "⊊︀", vsupnE: "⫌︀", vsupne: "⊋︀", vzigzag: "⦚", wcirc: "ŵ", wedbar: "⩟", wedge: "∧", wedgeq: "≙", weierp: "℘", wfr: "𝔴", wopf: "𝕨", wp: "℘", wr: "≀", wreath: "≀", wscr: "𝓌", xcap: "⋂", xcirc: "◯", xcup: "⋃", xdtri: "▽", xfr: "𝔵", xhArr: "⟺", xharr: "⟷", xi: "ξ", xlArr: "⟸", xlarr: "⟵", xmap: "⟼", xnis: "⋻", xodot: "⨀", xopf: "𝕩", xoplus: "⨁", xotime: "⨂", xrArr: "⟹", xrarr: "⟶", xscr: "𝓍", xsqcup: "⨆", xuplus: "⨄", xutri: "△", xvee: "⋁", xwedge: "⋀", yacut: "ý", yacute: "ý", yacy: "я", ycirc: "ŷ", ycy: "ы", ye: "¥", yen: "¥", yfr: "𝔶", yicy: "ї", yopf: "𝕪", yscr: "𝓎", yucy: "ю", yum: "ÿ", yuml: "ÿ", zacute: "ź", zcaron: "ž", zcy: "з", zdot: "ż", zeetrf: "ℨ", zeta: "ζ", zfr: "𝔷", zhcy: "ж", zigrarr: "⇝", zopf: "𝕫", zscr: "𝓏", zwj: "", zwnj: "" };
|
|
433
|
+
});
|
|
434
|
+
var ku = C(($v, xu) => {
|
|
435
|
+
var wu = Au();
|
|
436
|
+
xu.exports = DD;
|
|
437
|
+
var fD = {}.hasOwnProperty;
|
|
438
|
+
function DD(e) {
|
|
439
|
+
return fD.call(wu, e) ? wu[e] : false;
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
var dr = C((Wv, Mu) => {
|
|
443
|
+
var Bu = mu(), Tu = Fu(), pD = Ne(), hD = Eu(), Ou = yu(), dD = ku();
|
|
444
|
+
Mu.exports = BD;
|
|
445
|
+
var mD = {}.hasOwnProperty, He = String.fromCharCode, FD = Function.prototype, qu = { warning: null, reference: null, text: null, warningContext: null, referenceContext: null, textContext: null, position: {}, additional: null, attribute: false, nonTerminated: true }, gD = 9, _u = 10, vD = 12, ED = 32, Su = 38, CD = 59, bD = 60, yD = 61, AD = 35, wD = 88, xD = 120, kD = 65533, Ke = "named", Mt = "hexadecimal", zt = "decimal", Yt = {};
|
|
446
|
+
Yt[Mt] = 16;
|
|
447
|
+
Yt[zt] = 10;
|
|
448
|
+
var Gr = {};
|
|
449
|
+
Gr[Ke] = Ou;
|
|
450
|
+
Gr[zt] = pD;
|
|
451
|
+
Gr[Mt] = hD;
|
|
452
|
+
var Lu = 1, Pu = 2, Iu = 3, Nu = 4, Ru = 5, Ut = 6, Uu = 7, we = {};
|
|
453
|
+
we[Lu] = "Named character references must be terminated by a semicolon";
|
|
454
|
+
we[Pu] = "Numeric character references must be terminated by a semicolon";
|
|
455
|
+
we[Iu] = "Named character references cannot be empty";
|
|
456
|
+
we[Nu] = "Numeric character references cannot be empty";
|
|
457
|
+
we[Ru] = "Named character references must be known";
|
|
458
|
+
we[Ut] = "Numeric character references cannot be disallowed";
|
|
459
|
+
we[Uu] = "Numeric character references cannot be outside the permissible Unicode range";
|
|
460
|
+
function BD(e, r) {
|
|
461
|
+
var t = {}, n, a;
|
|
462
|
+
r || (r = {});
|
|
463
|
+
for (a in qu)
|
|
464
|
+
n = r[a], t[a] = n ?? qu[a];
|
|
465
|
+
return (t.position.indent || t.position.start) && (t.indent = t.position.indent || [], t.position = t.position.start), TD(e, t);
|
|
466
|
+
}
|
|
467
|
+
function TD(e, r) {
|
|
468
|
+
var t = r.additional, n = r.nonTerminated, a = r.text, u = r.reference, i = r.warning, o = r.textContext, s = r.referenceContext, l = r.warningContext, c = r.position, f = r.indent || [], p = e.length, d = 0, D = -1, h = c.column || 1, m = c.line || 1, F = "", y = [], E, B, b, g, A, w, v, x, k, T, q, R, O, S, _, L, Be, W, I;
|
|
469
|
+
for (typeof t == "string" && (t = t.charCodeAt(0)), L = ee(), x = i ? Z : FD, d--, p++; ++d < p; )
|
|
470
|
+
if (A === _u && (h = f[D] || 1), A = e.charCodeAt(d), A === Su) {
|
|
471
|
+
if (v = e.charCodeAt(d + 1), v === gD || v === _u || v === vD || v === ED || v === Su || v === bD || v !== v || t && v === t) {
|
|
472
|
+
F += He(A), h++;
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
for (O = d + 1, R = O, I = O, v === AD ? (I = ++R, v = e.charCodeAt(I), v === wD || v === xD ? (S = Mt, I = ++R) : S = zt) : S = Ke, E = "", q = "", g = "", _ = Gr[S], I--; ++I < p && (v = e.charCodeAt(I), !!_(v)); )
|
|
476
|
+
g += He(v), S === Ke && mD.call(Bu, g) && (E = g, q = Bu[g]);
|
|
477
|
+
b = e.charCodeAt(I) === CD, b && (I++, B = S === Ke ? dD(g) : false, B && (E = g, q = B)), W = 1 + I - O, !b && !n || (g ? S === Ke ? (b && !q ? x(Ru, 1) : (E !== g && (I = R + E.length, W = 1 + I - R, b = false), b || (k = E ? Lu : Iu, r.attribute ? (v = e.charCodeAt(I), v === yD ? (x(k, W), q = null) : Ou(v) ? q = null : x(k, W)) : x(k, W))), w = q) : (b || x(Pu, W), w = parseInt(g, Yt[S]), qD(w) ? (x(Uu, W), w = He(kD)) : w in Tu ? (x(Ut, W), w = Tu[w]) : (T = "", _D(w) && x(Ut, W), w > 65535 && (w -= 65536, T += He(w >>> 10 | 55296), w = 56320 | w & 1023), w = T + He(w))) : S !== Ke && x(Nu, W)), w ? (ve(), L = ee(), d = I - 1, h += I - O + 1, y.push(w), Be = ee(), Be.offset++, u && u.call(s, w, { start: L, end: Be }, e.slice(O - 1, I)), L = Be) : (g = e.slice(O - 1, I), F += g, h += g.length, d = I - 1);
|
|
478
|
+
} else
|
|
479
|
+
A === 10 && (m++, D++, h = 0), A === A ? (F += He(A), h++) : ve();
|
|
480
|
+
return y.join("");
|
|
481
|
+
function ee() {
|
|
482
|
+
return { line: m, column: h, offset: d + (c.offset || 0) };
|
|
483
|
+
}
|
|
484
|
+
function Z(Ee, M) {
|
|
485
|
+
var ft = ee();
|
|
486
|
+
ft.column += M, ft.offset += M, i.call(l, we[Ee], ft, Ee);
|
|
487
|
+
}
|
|
488
|
+
function ve() {
|
|
489
|
+
F && (y.push(F), a && a.call(o, F, { start: L, end: ee() }), F = "");
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
function qD(e) {
|
|
493
|
+
return e >= 55296 && e <= 57343 || e > 1114111;
|
|
494
|
+
}
|
|
495
|
+
function _D(e) {
|
|
496
|
+
return e >= 1 && e <= 8 || e === 11 || e >= 13 && e <= 31 || e >= 127 && e <= 159 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534;
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
var Gu = C((Hv, Yu) => {
|
|
500
|
+
var SD = Ie(), zu = dr();
|
|
501
|
+
Yu.exports = OD;
|
|
502
|
+
function OD(e) {
|
|
503
|
+
return t.raw = n, t;
|
|
504
|
+
function r(u) {
|
|
505
|
+
for (var i = e.offset, o = u.line, s = []; ++o && o in i; )
|
|
506
|
+
s.push((i[o] || 0) + 1);
|
|
507
|
+
return { start: u, indent: s };
|
|
508
|
+
}
|
|
509
|
+
function t(u, i, o) {
|
|
510
|
+
zu(u, { position: r(i), warning: a, text: o, reference: o, textContext: e, referenceContext: e });
|
|
511
|
+
}
|
|
512
|
+
function n(u, i, o) {
|
|
513
|
+
return zu(u, SD(o, { position: r(i), warning: a }));
|
|
514
|
+
}
|
|
515
|
+
function a(u, i, o) {
|
|
516
|
+
o !== 3 && e.file.message(u, i);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
var $u = C((Kv, ju) => {
|
|
521
|
+
ju.exports = LD;
|
|
522
|
+
function LD(e) {
|
|
523
|
+
return r;
|
|
524
|
+
function r(t, n) {
|
|
525
|
+
var a = this, u = a.offset, i = [], o = a[e + "Methods"], s = a[e + "Tokenizers"], l = n.line, c = n.column, f, p, d, D, h, m;
|
|
526
|
+
if (!t)
|
|
527
|
+
return i;
|
|
528
|
+
for (w.now = E, w.file = a.file, F(""); t; ) {
|
|
529
|
+
for (f = -1, p = o.length, h = false; ++f < p && (D = o[f], d = s[D], !(d && (!d.onlyAtStart || a.atStart) && (!d.notInList || !a.inList) && (!d.notInBlock || !a.inBlock) && (!d.notInLink || !a.inLink) && (m = t.length, d.apply(a, [w, t]), h = m !== t.length, h))); )
|
|
530
|
+
;
|
|
531
|
+
h || a.file.fail(new Error("Infinite loop"), w.now());
|
|
532
|
+
}
|
|
533
|
+
return a.eof = E(), i;
|
|
534
|
+
function F(v) {
|
|
535
|
+
for (var x = -1, k = v.indexOf(`
|
|
536
|
+
`); k !== -1; )
|
|
537
|
+
l++, x = k, k = v.indexOf(`
|
|
538
|
+
`, k + 1);
|
|
539
|
+
x === -1 ? c += v.length : c = v.length - x, l in u && (x !== -1 ? c += u[l] : c <= u[l] && (c = u[l] + 1));
|
|
540
|
+
}
|
|
541
|
+
function y() {
|
|
542
|
+
var v = [], x = l + 1;
|
|
543
|
+
return function() {
|
|
544
|
+
for (var k = l + 1; x < k; )
|
|
545
|
+
v.push((u[x] || 0) + 1), x++;
|
|
546
|
+
return v;
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
function E() {
|
|
550
|
+
var v = { line: l, column: c };
|
|
551
|
+
return v.offset = a.toOffset(v), v;
|
|
552
|
+
}
|
|
553
|
+
function B(v) {
|
|
554
|
+
this.start = v, this.end = E();
|
|
555
|
+
}
|
|
556
|
+
function b(v) {
|
|
557
|
+
t.slice(0, v.length) !== v && a.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"), E());
|
|
558
|
+
}
|
|
559
|
+
function g() {
|
|
560
|
+
var v = E();
|
|
561
|
+
return x;
|
|
562
|
+
function x(k, T) {
|
|
563
|
+
var q = k.position, R = q ? q.start : v, O = [], S = q && q.end.line, _ = v.line;
|
|
564
|
+
if (k.position = new B(R), q && T && q.indent) {
|
|
565
|
+
if (O = q.indent, S < _) {
|
|
566
|
+
for (; ++S < _; )
|
|
567
|
+
O.push((u[S] || 0) + 1);
|
|
568
|
+
O.push(v.column);
|
|
569
|
+
}
|
|
570
|
+
T = O.concat(T);
|
|
571
|
+
}
|
|
572
|
+
return k.position.indent = T || [], k;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
function A(v, x) {
|
|
576
|
+
var k = x ? x.children : i, T = k[k.length - 1], q;
|
|
577
|
+
return T && v.type === T.type && (v.type === "text" || v.type === "blockquote") && Vu(T) && Vu(v) && (q = v.type === "text" ? PD : ID, v = q.call(a, T, v)), v !== T && k.push(v), a.atStart && i.length !== 0 && a.exitStart(), v;
|
|
578
|
+
}
|
|
579
|
+
function w(v) {
|
|
580
|
+
var x = y(), k = g(), T = E();
|
|
581
|
+
return b(v), q.reset = R, R.test = O, q.test = O, t = t.slice(v.length), F(v), x = x(), q;
|
|
582
|
+
function q(S, _) {
|
|
583
|
+
return k(A(k(S), _), x);
|
|
584
|
+
}
|
|
585
|
+
function R() {
|
|
586
|
+
var S = q.apply(null, arguments);
|
|
587
|
+
return l = T.line, c = T.column, t = v + t, S;
|
|
588
|
+
}
|
|
589
|
+
function O() {
|
|
590
|
+
var S = k({});
|
|
591
|
+
return l = T.line, c = T.column, t = v + t, S.position;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
function Vu(e) {
|
|
597
|
+
var r, t;
|
|
598
|
+
return e.type !== "text" || !e.position ? true : (r = e.position.start, t = e.position.end, r.line !== t.line || t.column - r.column === e.value.length);
|
|
599
|
+
}
|
|
600
|
+
function PD(e, r) {
|
|
601
|
+
return e.value += r.value, e;
|
|
602
|
+
}
|
|
603
|
+
function ID(e, r) {
|
|
604
|
+
return this.options.commonmark || this.options.gfm ? r : (e.children = e.children.concat(r.children), e);
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
var Ku = C((Jv, Hu) => {
|
|
608
|
+
Hu.exports = Vr;
|
|
609
|
+
var Gt = ["\\", "`", "*", "{", "}", "[", "]", "(", ")", "#", "+", "-", ".", "!", "_", ">"], Vt = Gt.concat(["~", "|"]), Wu = Vt.concat([`
|
|
610
|
+
`, '"', "$", "%", "&", "'", ",", "/", ":", ";", "<", "=", "?", "@", "^"]);
|
|
611
|
+
Vr.default = Gt;
|
|
612
|
+
Vr.gfm = Vt;
|
|
613
|
+
Vr.commonmark = Wu;
|
|
614
|
+
function Vr(e) {
|
|
615
|
+
var r = e || {};
|
|
616
|
+
return r.commonmark ? Wu : r.gfm ? Vt : Gt;
|
|
617
|
+
}
|
|
618
|
+
});
|
|
619
|
+
var Xu = C((Xv, Ju) => {
|
|
620
|
+
Ju.exports = ["address", "article", "aside", "base", "basefont", "blockquote", "body", "caption", "center", "col", "colgroup", "dd", "details", "dialog", "dir", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "iframe", "legend", "li", "link", "main", "menu", "menuitem", "meta", "nav", "noframes", "ol", "optgroup", "option", "p", "param", "pre", "section", "source", "title", "summary", "table", "tbody", "td", "tfoot", "th", "thead", "title", "tr", "track", "ul"];
|
|
621
|
+
});
|
|
622
|
+
var jt = C((Qv, Qu) => {
|
|
623
|
+
Qu.exports = { position: true, gfm: true, commonmark: false, pedantic: false, blocks: Xu() };
|
|
624
|
+
});
|
|
625
|
+
var ea = C((Zv, Zu) => {
|
|
626
|
+
var ND = Ie(), RD = Ku(), UD = jt();
|
|
627
|
+
Zu.exports = MD;
|
|
628
|
+
function MD(e) {
|
|
629
|
+
var r = this, t = r.options, n, a;
|
|
630
|
+
if (e == null)
|
|
631
|
+
e = {};
|
|
632
|
+
else if (typeof e == "object")
|
|
633
|
+
e = ND(e);
|
|
634
|
+
else
|
|
635
|
+
throw new Error("Invalid value `" + e + "` for setting `options`");
|
|
636
|
+
for (n in UD) {
|
|
637
|
+
if (a = e[n], a == null && (a = t[n]), n !== "blocks" && typeof a != "boolean" || n === "blocks" && typeof a != "object")
|
|
638
|
+
throw new Error("Invalid value `" + a + "` for setting `options." + n + "`");
|
|
639
|
+
e[n] = a;
|
|
640
|
+
}
|
|
641
|
+
return r.options = e, r.escape = RD(e), r;
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
var na = C((eE, ta) => {
|
|
645
|
+
ta.exports = ra;
|
|
646
|
+
function ra(e) {
|
|
647
|
+
if (e == null)
|
|
648
|
+
return VD;
|
|
649
|
+
if (typeof e == "string")
|
|
650
|
+
return GD(e);
|
|
651
|
+
if (typeof e == "object")
|
|
652
|
+
return "length" in e ? YD(e) : zD(e);
|
|
653
|
+
if (typeof e == "function")
|
|
654
|
+
return e;
|
|
655
|
+
throw new Error("Expected function, string, or object as test");
|
|
656
|
+
}
|
|
657
|
+
function zD(e) {
|
|
658
|
+
return r;
|
|
659
|
+
function r(t) {
|
|
660
|
+
var n;
|
|
661
|
+
for (n in e)
|
|
662
|
+
if (t[n] !== e[n])
|
|
663
|
+
return false;
|
|
664
|
+
return true;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
function YD(e) {
|
|
668
|
+
for (var r = [], t = -1; ++t < e.length; )
|
|
669
|
+
r[t] = ra(e[t]);
|
|
670
|
+
return n;
|
|
671
|
+
function n() {
|
|
672
|
+
for (var a = -1; ++a < r.length; )
|
|
673
|
+
if (r[a].apply(this, arguments))
|
|
674
|
+
return true;
|
|
675
|
+
return false;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
function GD(e) {
|
|
679
|
+
return r;
|
|
680
|
+
function r(t) {
|
|
681
|
+
return !!(t && t.type === e);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
function VD() {
|
|
685
|
+
return true;
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
var ua = C((rE, ia) => {
|
|
689
|
+
ia.exports = jD;
|
|
690
|
+
function jD(e) {
|
|
691
|
+
return e;
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
var ca = C((tE, sa) => {
|
|
695
|
+
sa.exports = jr;
|
|
696
|
+
var $D = na(), WD = ua(), aa = true, oa = "skip", $t = false;
|
|
697
|
+
jr.CONTINUE = aa;
|
|
698
|
+
jr.SKIP = oa;
|
|
699
|
+
jr.EXIT = $t;
|
|
700
|
+
function jr(e, r, t, n) {
|
|
701
|
+
var a, u;
|
|
702
|
+
typeof r == "function" && typeof t != "function" && (n = t, t = r, r = null), u = $D(r), a = n ? -1 : 1, i(e, null, [])();
|
|
703
|
+
function i(o, s, l) {
|
|
704
|
+
var c = typeof o == "object" && o !== null ? o : {}, f;
|
|
705
|
+
return typeof c.type == "string" && (f = typeof c.tagName == "string" ? c.tagName : typeof c.name == "string" ? c.name : void 0, p.displayName = "node (" + WD(c.type + (f ? "<" + f + ">" : "")) + ")"), p;
|
|
706
|
+
function p() {
|
|
707
|
+
var d = l.concat(o), D = [], h, m;
|
|
708
|
+
if ((!r || u(o, s, l[l.length - 1] || null)) && (D = HD(t(o, l)), D[0] === $t))
|
|
709
|
+
return D;
|
|
710
|
+
if (o.children && D[0] !== oa)
|
|
711
|
+
for (m = (n ? o.children.length : -1) + a; m > -1 && m < o.children.length; ) {
|
|
712
|
+
if (h = i(o.children[m], m, d)(), h[0] === $t)
|
|
713
|
+
return h;
|
|
714
|
+
m = typeof h[1] == "number" ? h[1] : m + a;
|
|
715
|
+
}
|
|
716
|
+
return D;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
function HD(e) {
|
|
721
|
+
return e !== null && typeof e == "object" && "length" in e ? e : typeof e == "number" ? [aa, e] : [e];
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
var fa = C((nE, la) => {
|
|
725
|
+
la.exports = Wr;
|
|
726
|
+
var $r = ca(), KD = $r.CONTINUE, JD = $r.SKIP, XD = $r.EXIT;
|
|
727
|
+
Wr.CONTINUE = KD;
|
|
728
|
+
Wr.SKIP = JD;
|
|
729
|
+
Wr.EXIT = XD;
|
|
730
|
+
function Wr(e, r, t, n) {
|
|
731
|
+
typeof r == "function" && typeof t != "function" && (n = t, t = r, r = null), $r(e, r, a, n);
|
|
732
|
+
function a(u, i) {
|
|
733
|
+
var o = i[i.length - 1], s = o ? o.children.indexOf(u) : null;
|
|
734
|
+
return t(u, s, o);
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
});
|
|
738
|
+
var pa = C((iE, Da) => {
|
|
739
|
+
var QD = fa();
|
|
740
|
+
Da.exports = ZD;
|
|
741
|
+
function ZD(e, r) {
|
|
742
|
+
return QD(e, r ? ep : rp), e;
|
|
743
|
+
}
|
|
744
|
+
function ep(e) {
|
|
745
|
+
delete e.position;
|
|
746
|
+
}
|
|
747
|
+
function rp(e) {
|
|
748
|
+
e.position = void 0;
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
var ma = C((uE, da) => {
|
|
752
|
+
var ha = Ie(), tp = pa();
|
|
753
|
+
da.exports = up;
|
|
754
|
+
var np = `
|
|
755
|
+
`, ip = /\r\n|\r/g;
|
|
756
|
+
function up() {
|
|
757
|
+
var e = this, r = String(e.file), t = { line: 1, column: 1, offset: 0 }, n = ha(t), a;
|
|
758
|
+
return r = r.replace(ip, np), r.charCodeAt(0) === 65279 && (r = r.slice(1), n.column++, n.offset++), a = { type: "root", children: e.tokenizeBlock(r, n), position: { start: t, end: e.eof || ha(t) } }, e.options.position || tp(a, true), a;
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
var ga = C((aE, Fa) => {
|
|
762
|
+
var ap = /^[ \t]*(\n|$)/;
|
|
763
|
+
Fa.exports = op;
|
|
764
|
+
function op(e, r, t) {
|
|
765
|
+
for (var n, a = "", u = 0, i = r.length; u < i && (n = ap.exec(r.slice(u)), n != null); )
|
|
766
|
+
u += n[0].length, a += n[0];
|
|
767
|
+
if (a !== "") {
|
|
768
|
+
if (t)
|
|
769
|
+
return true;
|
|
770
|
+
e(a);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
var Hr = C((oE, va) => {
|
|
775
|
+
var me = "", Wt;
|
|
776
|
+
va.exports = sp;
|
|
777
|
+
function sp(e, r) {
|
|
778
|
+
if (typeof e != "string")
|
|
779
|
+
throw new TypeError("expected a string");
|
|
780
|
+
if (r === 1)
|
|
781
|
+
return e;
|
|
782
|
+
if (r === 2)
|
|
783
|
+
return e + e;
|
|
784
|
+
var t = e.length * r;
|
|
785
|
+
if (Wt !== e || typeof Wt > "u")
|
|
786
|
+
Wt = e, me = "";
|
|
787
|
+
else if (me.length >= t)
|
|
788
|
+
return me.substr(0, t);
|
|
789
|
+
for (; t > me.length && r > 1; )
|
|
790
|
+
r & 1 && (me += e), r >>= 1, e += e;
|
|
791
|
+
return me += e, me = me.substr(0, t), me;
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
var Ht = C((sE, Ea) => {
|
|
795
|
+
Ea.exports = cp;
|
|
796
|
+
function cp(e) {
|
|
797
|
+
return String(e).replace(/\n+$/, "");
|
|
798
|
+
}
|
|
799
|
+
});
|
|
800
|
+
var ya = C((cE, ba) => {
|
|
801
|
+
var lp = Hr(), fp = Ht();
|
|
802
|
+
ba.exports = hp;
|
|
803
|
+
var Kt = `
|
|
804
|
+
`, Ca = " ", Jt = " ", Dp = 4, pp = lp(Jt, Dp);
|
|
805
|
+
function hp(e, r, t) {
|
|
806
|
+
for (var n = -1, a = r.length, u = "", i = "", o = "", s = "", l, c, f; ++n < a; )
|
|
807
|
+
if (l = r.charAt(n), f)
|
|
808
|
+
if (f = false, u += o, i += s, o = "", s = "", l === Kt)
|
|
809
|
+
o = l, s = l;
|
|
810
|
+
else
|
|
811
|
+
for (u += l, i += l; ++n < a; ) {
|
|
812
|
+
if (l = r.charAt(n), !l || l === Kt) {
|
|
813
|
+
s = l, o = l;
|
|
814
|
+
break;
|
|
815
|
+
}
|
|
816
|
+
u += l, i += l;
|
|
817
|
+
}
|
|
818
|
+
else if (l === Jt && r.charAt(n + 1) === l && r.charAt(n + 2) === l && r.charAt(n + 3) === l)
|
|
819
|
+
o += pp, n += 3, f = true;
|
|
820
|
+
else if (l === Ca)
|
|
821
|
+
o += l, f = true;
|
|
822
|
+
else {
|
|
823
|
+
for (c = ""; l === Ca || l === Jt; )
|
|
824
|
+
c += l, l = r.charAt(++n);
|
|
825
|
+
if (l !== Kt)
|
|
826
|
+
break;
|
|
827
|
+
o += c + l, s += l;
|
|
828
|
+
}
|
|
829
|
+
if (i)
|
|
830
|
+
return t ? true : e(u)({ type: "code", lang: null, meta: null, value: fp(i) });
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
var xa = C((lE, wa) => {
|
|
834
|
+
wa.exports = gp;
|
|
835
|
+
var Kr = `
|
|
836
|
+
`, mr = " ", Je = " ", dp = "~", Aa = "`", mp = 3, Fp = 4;
|
|
837
|
+
function gp(e, r, t) {
|
|
838
|
+
var n = this, a = n.options.gfm, u = r.length + 1, i = 0, o = "", s, l, c, f, p, d, D, h, m, F, y, E, B;
|
|
839
|
+
if (a) {
|
|
840
|
+
for (; i < u && (c = r.charAt(i), !(c !== Je && c !== mr)); )
|
|
841
|
+
o += c, i++;
|
|
842
|
+
if (E = i, c = r.charAt(i), !(c !== dp && c !== Aa)) {
|
|
843
|
+
for (i++, l = c, s = 1, o += c; i < u && (c = r.charAt(i), c === l); )
|
|
844
|
+
o += c, s++, i++;
|
|
845
|
+
if (!(s < mp)) {
|
|
846
|
+
for (; i < u && (c = r.charAt(i), !(c !== Je && c !== mr)); )
|
|
847
|
+
o += c, i++;
|
|
848
|
+
for (f = "", D = ""; i < u && (c = r.charAt(i), !(c === Kr || l === Aa && c === l)); )
|
|
849
|
+
c === Je || c === mr ? D += c : (f += D + c, D = ""), i++;
|
|
850
|
+
if (c = r.charAt(i), !(c && c !== Kr)) {
|
|
851
|
+
if (t)
|
|
852
|
+
return true;
|
|
853
|
+
B = e.now(), B.column += o.length, B.offset += o.length, o += f, f = n.decode.raw(n.unescape(f), B), D && (o += D), D = "", F = "", y = "", h = "", m = "";
|
|
854
|
+
for (var b = true; i < u; ) {
|
|
855
|
+
if (c = r.charAt(i), h += F, m += y, F = "", y = "", c !== Kr) {
|
|
856
|
+
h += c, y += c, i++;
|
|
857
|
+
continue;
|
|
858
|
+
}
|
|
859
|
+
for (b ? (o += c, b = false) : (F += c, y += c), D = "", i++; i < u && (c = r.charAt(i), c === Je); )
|
|
860
|
+
D += c, i++;
|
|
861
|
+
if (F += D, y += D.slice(E), !(D.length >= Fp)) {
|
|
862
|
+
for (D = ""; i < u && (c = r.charAt(i), c === l); )
|
|
863
|
+
D += c, i++;
|
|
864
|
+
if (F += D, y += D, !(D.length < s)) {
|
|
865
|
+
for (D = ""; i < u && (c = r.charAt(i), !(c !== Je && c !== mr)); )
|
|
866
|
+
F += c, y += c, i++;
|
|
867
|
+
if (!c || c === Kr)
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
for (o += h + F, i = -1, u = f.length; ++i < u; )
|
|
873
|
+
if (c = f.charAt(i), c === Je || c === mr)
|
|
874
|
+
p || (p = f.slice(0, i));
|
|
875
|
+
else if (p) {
|
|
876
|
+
d = f.slice(i);
|
|
877
|
+
break;
|
|
878
|
+
}
|
|
879
|
+
return e(o)({ type: "code", lang: p || f || null, meta: d || null, value: m });
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
var Re = C((Xe, ka) => {
|
|
887
|
+
Xe = ka.exports = vp;
|
|
888
|
+
function vp(e) {
|
|
889
|
+
return e.trim ? e.trim() : Xe.right(Xe.left(e));
|
|
890
|
+
}
|
|
891
|
+
Xe.left = function(e) {
|
|
892
|
+
return e.trimLeft ? e.trimLeft() : e.replace(/^\s\s*/, "");
|
|
893
|
+
};
|
|
894
|
+
Xe.right = function(e) {
|
|
895
|
+
if (e.trimRight)
|
|
896
|
+
return e.trimRight();
|
|
897
|
+
for (var r = /\s/, t = e.length; r.test(e.charAt(--t)); )
|
|
898
|
+
;
|
|
899
|
+
return e.slice(0, t + 1);
|
|
900
|
+
};
|
|
901
|
+
});
|
|
902
|
+
var Jr = C((fE, Ba) => {
|
|
903
|
+
Ba.exports = Ep;
|
|
904
|
+
function Ep(e, r, t, n) {
|
|
905
|
+
for (var a = e.length, u = -1, i, o; ++u < a; )
|
|
906
|
+
if (i = e[u], o = i[1] || {}, !(o.pedantic !== void 0 && o.pedantic !== t.options.pedantic) && !(o.commonmark !== void 0 && o.commonmark !== t.options.commonmark) && r[i[0]].apply(t, n))
|
|
907
|
+
return true;
|
|
908
|
+
return false;
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
var Sa = C((DE, _a) => {
|
|
912
|
+
var Cp = Re(), bp = Jr();
|
|
913
|
+
_a.exports = yp;
|
|
914
|
+
var Xt = `
|
|
915
|
+
`, Ta = " ", Qt = " ", qa = ">";
|
|
916
|
+
function yp(e, r, t) {
|
|
917
|
+
for (var n = this, a = n.offset, u = n.blockTokenizers, i = n.interruptBlockquote, o = e.now(), s = o.line, l = r.length, c = [], f = [], p = [], d, D = 0, h, m, F, y, E, B, b, g; D < l && (h = r.charAt(D), !(h !== Qt && h !== Ta)); )
|
|
918
|
+
D++;
|
|
919
|
+
if (r.charAt(D) === qa) {
|
|
920
|
+
if (t)
|
|
921
|
+
return true;
|
|
922
|
+
for (D = 0; D < l; ) {
|
|
923
|
+
for (F = r.indexOf(Xt, D), B = D, b = false, F === -1 && (F = l); D < l && (h = r.charAt(D), !(h !== Qt && h !== Ta)); )
|
|
924
|
+
D++;
|
|
925
|
+
if (r.charAt(D) === qa ? (D++, b = true, r.charAt(D) === Qt && D++) : D = B, y = r.slice(D, F), !b && !Cp(y)) {
|
|
926
|
+
D = B;
|
|
927
|
+
break;
|
|
928
|
+
}
|
|
929
|
+
if (!b && (m = r.slice(D), bp(i, u, n, [e, m, true])))
|
|
930
|
+
break;
|
|
931
|
+
E = B === D ? y : r.slice(B, F), p.push(D - B), c.push(E), f.push(y), D = F + 1;
|
|
932
|
+
}
|
|
933
|
+
for (D = -1, l = p.length, d = e(c.join(Xt)); ++D < l; )
|
|
934
|
+
a[s] = (a[s] || 0) + p[D], s++;
|
|
935
|
+
return g = n.enterBlock(), f = n.tokenizeBlock(f.join(Xt), o), g(), d({ type: "blockquote", children: f });
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
});
|
|
939
|
+
var Pa = C((pE, La) => {
|
|
940
|
+
La.exports = wp;
|
|
941
|
+
var Oa = `
|
|
942
|
+
`, Fr = " ", gr = " ", vr = "#", Ap = 6;
|
|
943
|
+
function wp(e, r, t) {
|
|
944
|
+
for (var n = this, a = n.options.pedantic, u = r.length + 1, i = -1, o = e.now(), s = "", l = "", c, f, p; ++i < u; ) {
|
|
945
|
+
if (c = r.charAt(i), c !== gr && c !== Fr) {
|
|
946
|
+
i--;
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
s += c;
|
|
950
|
+
}
|
|
951
|
+
for (p = 0; ++i <= u; ) {
|
|
952
|
+
if (c = r.charAt(i), c !== vr) {
|
|
953
|
+
i--;
|
|
954
|
+
break;
|
|
955
|
+
}
|
|
956
|
+
s += c, p++;
|
|
957
|
+
}
|
|
958
|
+
if (!(p > Ap) && !(!p || !a && r.charAt(i + 1) === vr)) {
|
|
959
|
+
for (u = r.length + 1, f = ""; ++i < u; ) {
|
|
960
|
+
if (c = r.charAt(i), c !== gr && c !== Fr) {
|
|
961
|
+
i--;
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
964
|
+
f += c;
|
|
965
|
+
}
|
|
966
|
+
if (!(!a && f.length === 0 && c && c !== Oa)) {
|
|
967
|
+
if (t)
|
|
968
|
+
return true;
|
|
969
|
+
for (s += f, f = "", l = ""; ++i < u && (c = r.charAt(i), !(!c || c === Oa)); ) {
|
|
970
|
+
if (c !== gr && c !== Fr && c !== vr) {
|
|
971
|
+
l += f + c, f = "";
|
|
972
|
+
continue;
|
|
973
|
+
}
|
|
974
|
+
for (; c === gr || c === Fr; )
|
|
975
|
+
f += c, c = r.charAt(++i);
|
|
976
|
+
if (!a && l && !f && c === vr) {
|
|
977
|
+
l += c;
|
|
978
|
+
continue;
|
|
979
|
+
}
|
|
980
|
+
for (; c === vr; )
|
|
981
|
+
f += c, c = r.charAt(++i);
|
|
982
|
+
for (; c === gr || c === Fr; )
|
|
983
|
+
f += c, c = r.charAt(++i);
|
|
984
|
+
i--;
|
|
985
|
+
}
|
|
986
|
+
return o.column += s.length, o.offset += s.length, s += l + f, e(s)({ type: "heading", depth: p, children: n.tokenizeInline(l, o) });
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
});
|
|
991
|
+
var Ra = C((hE, Na) => {
|
|
992
|
+
Na.exports = Sp;
|
|
993
|
+
var xp = " ", kp = `
|
|
994
|
+
`, Ia = " ", Bp = "*", Tp = "-", qp = "_", _p = 3;
|
|
995
|
+
function Sp(e, r, t) {
|
|
996
|
+
for (var n = -1, a = r.length + 1, u = "", i, o, s, l; ++n < a && (i = r.charAt(n), !(i !== xp && i !== Ia)); )
|
|
997
|
+
u += i;
|
|
998
|
+
if (!(i !== Bp && i !== Tp && i !== qp))
|
|
999
|
+
for (o = i, u += i, s = 1, l = ""; ++n < a; )
|
|
1000
|
+
if (i = r.charAt(n), i === o)
|
|
1001
|
+
s++, u += l + o, l = "";
|
|
1002
|
+
else if (i === Ia)
|
|
1003
|
+
l += i;
|
|
1004
|
+
else
|
|
1005
|
+
return s >= _p && (!i || i === kp) ? (u += l, t ? true : e(u)({ type: "thematicBreak" })) : void 0;
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
1008
|
+
var Zt = C((dE, Ma) => {
|
|
1009
|
+
Ma.exports = Ip;
|
|
1010
|
+
var Ua = " ", Op = " ", Lp = 1, Pp = 4;
|
|
1011
|
+
function Ip(e) {
|
|
1012
|
+
for (var r = 0, t = 0, n = e.charAt(r), a = {}, u, i = 0; n === Ua || n === Op; ) {
|
|
1013
|
+
for (u = n === Ua ? Pp : Lp, t += u, u > 1 && (t = Math.floor(t / u) * u); i < t; )
|
|
1014
|
+
a[++i] = r;
|
|
1015
|
+
n = e.charAt(++r);
|
|
1016
|
+
}
|
|
1017
|
+
return { indent: t, stops: a };
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1020
|
+
var Ga = C((mE, Ya) => {
|
|
1021
|
+
var Np = Re(), Rp = Hr(), Up = Zt();
|
|
1022
|
+
Ya.exports = Yp;
|
|
1023
|
+
var za = `
|
|
1024
|
+
`, Mp = " ", zp = "!";
|
|
1025
|
+
function Yp(e, r) {
|
|
1026
|
+
var t = e.split(za), n = t.length + 1, a = 1 / 0, u = [], i, o, s;
|
|
1027
|
+
for (t.unshift(Rp(Mp, r) + zp); n--; )
|
|
1028
|
+
if (o = Up(t[n]), u[n] = o.stops, Np(t[n]).length !== 0)
|
|
1029
|
+
if (o.indent)
|
|
1030
|
+
o.indent > 0 && o.indent < a && (a = o.indent);
|
|
1031
|
+
else {
|
|
1032
|
+
a = 1 / 0;
|
|
1033
|
+
break;
|
|
1034
|
+
}
|
|
1035
|
+
if (a !== 1 / 0)
|
|
1036
|
+
for (n = t.length; n--; ) {
|
|
1037
|
+
for (s = u[n], i = a; i && !(i in s); )
|
|
1038
|
+
i--;
|
|
1039
|
+
t[n] = t[n].slice(s[i] + 1);
|
|
1040
|
+
}
|
|
1041
|
+
return t.shift(), t.join(za);
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
var Ka = C((FE, Ha) => {
|
|
1045
|
+
var Gp = Re(), Vp = Hr(), Va = Ne(), jp = Zt(), $p = Ga(), Wp = Jr();
|
|
1046
|
+
Ha.exports = rh;
|
|
1047
|
+
var en = "*", Hp = "_", ja = "+", rn = "-", $a = ".", Fe = " ", ae = `
|
|
1048
|
+
`, Xr = " ", Wa = ")", Kp = "x", xe = 4, Jp = /\n\n(?!\s*$)/, Xp = /^\[([ X\tx])][ \t]/, Qp = /^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/, Zp = /^([ \t]*)([*+-]|\d+[.)])([ \t]+)/, eh = /^( {1,4}|\t)?/gm;
|
|
1049
|
+
function rh(e, r, t) {
|
|
1050
|
+
for (var n = this, a = n.options.commonmark, u = n.options.pedantic, i = n.blockTokenizers, o = n.interruptList, s = 0, l = r.length, c = null, f, p, d, D, h, m, F, y, E, B, b, g, A, w, v, x, k, T, q, R = false, O, S, _, L; s < l && (D = r.charAt(s), !(D !== Xr && D !== Fe)); )
|
|
1051
|
+
s++;
|
|
1052
|
+
if (D = r.charAt(s), D === en || D === ja || D === rn)
|
|
1053
|
+
h = D, d = false;
|
|
1054
|
+
else {
|
|
1055
|
+
for (d = true, p = ""; s < l && (D = r.charAt(s), !!Va(D)); )
|
|
1056
|
+
p += D, s++;
|
|
1057
|
+
if (D = r.charAt(s), !p || !(D === $a || a && D === Wa) || t && p !== "1")
|
|
1058
|
+
return;
|
|
1059
|
+
c = parseInt(p, 10), h = D;
|
|
1060
|
+
}
|
|
1061
|
+
if (D = r.charAt(++s), !(D !== Fe && D !== Xr && (u || D !== ae && D !== ""))) {
|
|
1062
|
+
if (t)
|
|
1063
|
+
return true;
|
|
1064
|
+
for (s = 0, w = [], v = [], x = []; s < l; ) {
|
|
1065
|
+
for (m = r.indexOf(ae, s), F = s, y = false, L = false, m === -1 && (m = l), f = 0; s < l; ) {
|
|
1066
|
+
if (D = r.charAt(s), D === Xr)
|
|
1067
|
+
f += xe - f % xe;
|
|
1068
|
+
else if (D === Fe)
|
|
1069
|
+
f++;
|
|
1070
|
+
else
|
|
1071
|
+
break;
|
|
1072
|
+
s++;
|
|
1073
|
+
}
|
|
1074
|
+
if (k && f >= k.indent && (L = true), D = r.charAt(s), E = null, !L) {
|
|
1075
|
+
if (D === en || D === ja || D === rn)
|
|
1076
|
+
E = D, s++, f++;
|
|
1077
|
+
else {
|
|
1078
|
+
for (p = ""; s < l && (D = r.charAt(s), !!Va(D)); )
|
|
1079
|
+
p += D, s++;
|
|
1080
|
+
D = r.charAt(s), s++, p && (D === $a || a && D === Wa) && (E = D, f += p.length + 1);
|
|
1081
|
+
}
|
|
1082
|
+
if (E)
|
|
1083
|
+
if (D = r.charAt(s), D === Xr)
|
|
1084
|
+
f += xe - f % xe, s++;
|
|
1085
|
+
else if (D === Fe) {
|
|
1086
|
+
for (_ = s + xe; s < _ && r.charAt(s) === Fe; )
|
|
1087
|
+
s++, f++;
|
|
1088
|
+
s === _ && r.charAt(s) === Fe && (s -= xe - 1, f -= xe - 1);
|
|
1089
|
+
} else
|
|
1090
|
+
D !== ae && D !== "" && (E = null);
|
|
1091
|
+
}
|
|
1092
|
+
if (E) {
|
|
1093
|
+
if (!u && h !== E)
|
|
1094
|
+
break;
|
|
1095
|
+
y = true;
|
|
1096
|
+
} else
|
|
1097
|
+
!a && !L && r.charAt(F) === Fe ? L = true : a && k && (L = f >= k.indent || f > xe), y = false, s = F;
|
|
1098
|
+
if (b = r.slice(F, m), B = F === s ? b : r.slice(s, m), (E === en || E === Hp || E === rn) && i.thematicBreak.call(n, e, b, true))
|
|
1099
|
+
break;
|
|
1100
|
+
if (g = A, A = !y && !Gp(B).length, L && k)
|
|
1101
|
+
k.value = k.value.concat(x, b), v = v.concat(x, b), x = [];
|
|
1102
|
+
else if (y)
|
|
1103
|
+
x.length !== 0 && (R = true, k.value.push(""), k.trail = x.concat()), k = { value: [b], indent: f, trail: [] }, w.push(k), v = v.concat(x, b), x = [];
|
|
1104
|
+
else if (A) {
|
|
1105
|
+
if (g && !a)
|
|
1106
|
+
break;
|
|
1107
|
+
x.push(b);
|
|
1108
|
+
} else {
|
|
1109
|
+
if (g || Wp(o, i, n, [e, b, true]))
|
|
1110
|
+
break;
|
|
1111
|
+
k.value = k.value.concat(x, b), v = v.concat(x, b), x = [];
|
|
1112
|
+
}
|
|
1113
|
+
s = m + 1;
|
|
1114
|
+
}
|
|
1115
|
+
for (O = e(v.join(ae)).reset({ type: "list", ordered: d, start: c, spread: R, children: [] }), T = n.enterList(), q = n.enterBlock(), s = -1, l = w.length; ++s < l; )
|
|
1116
|
+
k = w[s].value.join(ae), S = e.now(), e(k)(th(n, k, S), O), k = w[s].trail.join(ae), s !== l - 1 && (k += ae), e(k);
|
|
1117
|
+
return T(), q(), O;
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
function th(e, r, t) {
|
|
1121
|
+
var n = e.offset, a = e.options.pedantic ? nh : ih, u = null, i, o;
|
|
1122
|
+
return r = a.apply(null, arguments), e.options.gfm && (i = r.match(Xp), i && (o = i[0].length, u = i[1].toLowerCase() === Kp, n[t.line] += o, r = r.slice(o))), { type: "listItem", spread: Jp.test(r), checked: u, children: e.tokenizeBlock(r, t) };
|
|
1123
|
+
}
|
|
1124
|
+
function nh(e, r, t) {
|
|
1125
|
+
var n = e.offset, a = t.line;
|
|
1126
|
+
return r = r.replace(Zp, u), a = t.line, r.replace(eh, u);
|
|
1127
|
+
function u(i) {
|
|
1128
|
+
return n[a] = (n[a] || 0) + i.length, a++, "";
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
function ih(e, r, t) {
|
|
1132
|
+
var n = e.offset, a = t.line, u, i, o, s, l, c, f;
|
|
1133
|
+
for (r = r.replace(Qp, p), s = r.split(ae), l = $p(r, jp(u).indent).split(ae), l[0] = o, n[a] = (n[a] || 0) + i.length, a++, c = 0, f = s.length; ++c < f; )
|
|
1134
|
+
n[a] = (n[a] || 0) + s[c].length - l[c].length, a++;
|
|
1135
|
+
return l.join(ae);
|
|
1136
|
+
function p(d, D, h, m, F) {
|
|
1137
|
+
return i = D + h + m, o = F, Number(h) < 10 && i.length % 2 === 1 && (h = Fe + h), u = D + Vp(Fe, h.length) + m, u + o;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
var Za = C((gE, Qa) => {
|
|
1142
|
+
Qa.exports = lh;
|
|
1143
|
+
var tn = `
|
|
1144
|
+
`, uh = " ", Ja = " ", Xa = "=", ah = "-", oh = 3, sh = 1, ch = 2;
|
|
1145
|
+
function lh(e, r, t) {
|
|
1146
|
+
for (var n = this, a = e.now(), u = r.length, i = -1, o = "", s, l, c, f, p; ++i < u; ) {
|
|
1147
|
+
if (c = r.charAt(i), c !== Ja || i >= oh) {
|
|
1148
|
+
i--;
|
|
1149
|
+
break;
|
|
1150
|
+
}
|
|
1151
|
+
o += c;
|
|
1152
|
+
}
|
|
1153
|
+
for (s = "", l = ""; ++i < u; ) {
|
|
1154
|
+
if (c = r.charAt(i), c === tn) {
|
|
1155
|
+
i--;
|
|
1156
|
+
break;
|
|
1157
|
+
}
|
|
1158
|
+
c === Ja || c === uh ? l += c : (s += l + c, l = "");
|
|
1159
|
+
}
|
|
1160
|
+
if (a.column += o.length, a.offset += o.length, o += s + l, c = r.charAt(++i), f = r.charAt(++i), !(c !== tn || f !== Xa && f !== ah)) {
|
|
1161
|
+
for (o += c, l = f, p = f === Xa ? sh : ch; ++i < u; ) {
|
|
1162
|
+
if (c = r.charAt(i), c !== f) {
|
|
1163
|
+
if (c !== tn)
|
|
1164
|
+
return;
|
|
1165
|
+
i--;
|
|
1166
|
+
break;
|
|
1167
|
+
}
|
|
1168
|
+
l += c;
|
|
1169
|
+
}
|
|
1170
|
+
return t ? true : e(o + l)({ type: "heading", depth: p, children: n.tokenizeInline(s, a) });
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
});
|
|
1174
|
+
var un = C((nn) => {
|
|
1175
|
+
var fh = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Dh = "[^\"'=<>`\\u0000-\\u0020]+", ph = "'[^']*'", hh = '"[^"]*"', dh = "(?:" + Dh + "|" + ph + "|" + hh + ")", mh = "(?:\\s+" + fh + "(?:\\s*=\\s*" + dh + ")?)", eo = "<[A-Za-z][A-Za-z0-9\\-]*" + mh + "*\\s*\\/?>", ro = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Fh = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->", gh = "<[?].*?[?]>", vh = "<![A-Za-z]+\\s+[^>]*>", Eh = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";
|
|
1176
|
+
nn.openCloseTag = new RegExp("^(?:" + eo + "|" + ro + ")");
|
|
1177
|
+
nn.tag = new RegExp("^(?:" + eo + "|" + ro + "|" + Fh + "|" + gh + "|" + vh + "|" + Eh + ")");
|
|
1178
|
+
});
|
|
1179
|
+
var uo = C((EE, io) => {
|
|
1180
|
+
var Ch = un().openCloseTag;
|
|
1181
|
+
io.exports = Ih;
|
|
1182
|
+
var bh = " ", yh = " ", to = `
|
|
1183
|
+
`, Ah = "<", wh = /^<(script|pre|style)(?=(\s|>|$))/i, xh = /<\/(script|pre|style)>/i, kh = /^<!--/, Bh = /-->/, Th = /^<\?/, qh = /\?>/, _h = /^<![A-Za-z]/, Sh = />/, Oh = /^<!\[CDATA\[/, Lh = /]]>/, no = /^$/, Ph = new RegExp(Ch.source + "\\s*$");
|
|
1184
|
+
function Ih(e, r, t) {
|
|
1185
|
+
for (var n = this, a = n.options.blocks.join("|"), u = new RegExp("^</?(" + a + ")(?=(\\s|/?>|$))", "i"), i = r.length, o = 0, s, l, c, f, p, d, D, h = [[wh, xh, true], [kh, Bh, true], [Th, qh, true], [_h, Sh, true], [Oh, Lh, true], [u, no, true], [Ph, no, false]]; o < i && (f = r.charAt(o), !(f !== bh && f !== yh)); )
|
|
1186
|
+
o++;
|
|
1187
|
+
if (r.charAt(o) === Ah) {
|
|
1188
|
+
for (s = r.indexOf(to, o + 1), s = s === -1 ? i : s, l = r.slice(o, s), c = -1, p = h.length; ++c < p; )
|
|
1189
|
+
if (h[c][0].test(l)) {
|
|
1190
|
+
d = h[c];
|
|
1191
|
+
break;
|
|
1192
|
+
}
|
|
1193
|
+
if (d) {
|
|
1194
|
+
if (t)
|
|
1195
|
+
return d[2];
|
|
1196
|
+
if (o = s, !d[1].test(l))
|
|
1197
|
+
for (; o < i; ) {
|
|
1198
|
+
if (s = r.indexOf(to, o + 1), s = s === -1 ? i : s, l = r.slice(o + 1, s), d[1].test(l)) {
|
|
1199
|
+
l && (o = s);
|
|
1200
|
+
break;
|
|
1201
|
+
}
|
|
1202
|
+
o = s;
|
|
1203
|
+
}
|
|
1204
|
+
return D = r.slice(0, o), e(D)({ type: "html", value: D });
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
var oe = C((CE, ao) => {
|
|
1210
|
+
ao.exports = Uh;
|
|
1211
|
+
var Nh = String.fromCharCode, Rh = /\s/;
|
|
1212
|
+
function Uh(e) {
|
|
1213
|
+
return Rh.test(typeof e == "number" ? Nh(e) : e.charAt(0));
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
var an = C((bE, oo) => {
|
|
1217
|
+
var Mh = kr();
|
|
1218
|
+
oo.exports = zh;
|
|
1219
|
+
function zh(e) {
|
|
1220
|
+
return Mh(e).toLowerCase();
|
|
1221
|
+
}
|
|
1222
|
+
});
|
|
1223
|
+
var ho = C((yE, po) => {
|
|
1224
|
+
var Yh = oe(), Gh = an();
|
|
1225
|
+
po.exports = Wh;
|
|
1226
|
+
var so = '"', co = "'", Vh = "\\", Qe = `
|
|
1227
|
+
`, Qr = " ", Zr = " ", sn = "[", Er = "]", jh = "(", $h = ")", lo = ":", fo = "<", Do = ">";
|
|
1228
|
+
function Wh(e, r, t) {
|
|
1229
|
+
for (var n = this, a = n.options.commonmark, u = 0, i = r.length, o = "", s, l, c, f, p, d, D, h; u < i && (f = r.charAt(u), !(f !== Zr && f !== Qr)); )
|
|
1230
|
+
o += f, u++;
|
|
1231
|
+
if (f = r.charAt(u), f === sn) {
|
|
1232
|
+
for (u++, o += f, c = ""; u < i && (f = r.charAt(u), f !== Er); )
|
|
1233
|
+
f === Vh && (c += f, u++, f = r.charAt(u)), c += f, u++;
|
|
1234
|
+
if (!(!c || r.charAt(u) !== Er || r.charAt(u + 1) !== lo)) {
|
|
1235
|
+
for (d = c, o += c + Er + lo, u = o.length, c = ""; u < i && (f = r.charAt(u), !(f !== Qr && f !== Zr && f !== Qe)); )
|
|
1236
|
+
o += f, u++;
|
|
1237
|
+
if (f = r.charAt(u), c = "", s = o, f === fo) {
|
|
1238
|
+
for (u++; u < i && (f = r.charAt(u), !!on(f)); )
|
|
1239
|
+
c += f, u++;
|
|
1240
|
+
if (f = r.charAt(u), f === on.delimiter)
|
|
1241
|
+
o += fo + c + f, u++;
|
|
1242
|
+
else {
|
|
1243
|
+
if (a)
|
|
1244
|
+
return;
|
|
1245
|
+
u -= c.length + 1, c = "";
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
if (!c) {
|
|
1249
|
+
for (; u < i && (f = r.charAt(u), !!Hh(f)); )
|
|
1250
|
+
c += f, u++;
|
|
1251
|
+
o += c;
|
|
1252
|
+
}
|
|
1253
|
+
if (c) {
|
|
1254
|
+
for (D = c, c = ""; u < i && (f = r.charAt(u), !(f !== Qr && f !== Zr && f !== Qe)); )
|
|
1255
|
+
c += f, u++;
|
|
1256
|
+
if (f = r.charAt(u), p = null, f === so ? p = so : f === co ? p = co : f === jh && (p = $h), !p)
|
|
1257
|
+
c = "", u = o.length;
|
|
1258
|
+
else if (c) {
|
|
1259
|
+
for (o += c + f, u = o.length, c = ""; u < i && (f = r.charAt(u), f !== p); ) {
|
|
1260
|
+
if (f === Qe) {
|
|
1261
|
+
if (u++, f = r.charAt(u), f === Qe || f === p)
|
|
1262
|
+
return;
|
|
1263
|
+
c += Qe;
|
|
1264
|
+
}
|
|
1265
|
+
c += f, u++;
|
|
1266
|
+
}
|
|
1267
|
+
if (f = r.charAt(u), f !== p)
|
|
1268
|
+
return;
|
|
1269
|
+
l = o, o += c + f, u++, h = c, c = "";
|
|
1270
|
+
} else
|
|
1271
|
+
return;
|
|
1272
|
+
for (; u < i && (f = r.charAt(u), !(f !== Qr && f !== Zr)); )
|
|
1273
|
+
o += f, u++;
|
|
1274
|
+
if (f = r.charAt(u), !f || f === Qe)
|
|
1275
|
+
return t ? true : (s = e(s).test().end, D = n.decode.raw(n.unescape(D), s, { nonTerminated: false }), h && (l = e(l).test().end, h = n.decode.raw(n.unescape(h), l)), e(o)({ type: "definition", identifier: Gh(d), label: d, title: h || null, url: D }));
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
function on(e) {
|
|
1281
|
+
return e !== Do && e !== sn && e !== Er;
|
|
1282
|
+
}
|
|
1283
|
+
on.delimiter = Do;
|
|
1284
|
+
function Hh(e) {
|
|
1285
|
+
return e !== sn && e !== Er && !Yh(e);
|
|
1286
|
+
}
|
|
1287
|
+
});
|
|
1288
|
+
var go = C((AE, Fo) => {
|
|
1289
|
+
var Kh = oe();
|
|
1290
|
+
Fo.exports = ud;
|
|
1291
|
+
var Jh = " ", et = `
|
|
1292
|
+
`, Xh = " ", Qh = "-", Zh = ":", ed = "\\", cn = "|", rd = 1, td = 2, mo = "left", nd = "center", id = "right";
|
|
1293
|
+
function ud(e, r, t) {
|
|
1294
|
+
var n = this, a, u, i, o, s, l, c, f, p, d, D, h, m, F, y, E, B, b, g, A, w, v;
|
|
1295
|
+
if (n.options.gfm) {
|
|
1296
|
+
for (a = 0, E = 0, l = r.length + 1, c = []; a < l; ) {
|
|
1297
|
+
if (A = r.indexOf(et, a), w = r.indexOf(cn, a + 1), A === -1 && (A = r.length), w === -1 || w > A) {
|
|
1298
|
+
if (E < td)
|
|
1299
|
+
return;
|
|
1300
|
+
break;
|
|
1301
|
+
}
|
|
1302
|
+
c.push(r.slice(a, A)), E++, a = A + 1;
|
|
1303
|
+
}
|
|
1304
|
+
for (o = c.join(et), u = c.splice(1, 1)[0] || [], a = 0, l = u.length, E--, i = false, D = []; a < l; ) {
|
|
1305
|
+
if (p = u.charAt(a), p === cn) {
|
|
1306
|
+
if (d = null, i === false) {
|
|
1307
|
+
if (v === false)
|
|
1308
|
+
return;
|
|
1309
|
+
} else
|
|
1310
|
+
D.push(i), i = false;
|
|
1311
|
+
v = false;
|
|
1312
|
+
} else if (p === Qh)
|
|
1313
|
+
d = true, i = i || null;
|
|
1314
|
+
else if (p === Zh)
|
|
1315
|
+
i === mo ? i = nd : d && i === null ? i = id : i = mo;
|
|
1316
|
+
else if (!Kh(p))
|
|
1317
|
+
return;
|
|
1318
|
+
a++;
|
|
1319
|
+
}
|
|
1320
|
+
if (i !== false && D.push(i), !(D.length < rd)) {
|
|
1321
|
+
if (t)
|
|
1322
|
+
return true;
|
|
1323
|
+
for (y = -1, b = [], g = e(o).reset({ type: "table", align: D, children: b }); ++y < E; ) {
|
|
1324
|
+
for (B = c[y], s = { type: "tableRow", children: [] }, y && e(et), e(B).reset(s, g), l = B.length + 1, a = 0, f = "", h = "", m = true; a < l; ) {
|
|
1325
|
+
if (p = B.charAt(a), p === Jh || p === Xh) {
|
|
1326
|
+
h ? f += p : e(p), a++;
|
|
1327
|
+
continue;
|
|
1328
|
+
}
|
|
1329
|
+
p === "" || p === cn ? m ? e(p) : ((h || p) && !m && (o = h, f.length > 1 && (p ? (o += f.slice(0, -1), f = f.charAt(f.length - 1)) : (o += f, f = "")), F = e.now(), e(o)({ type: "tableCell", children: n.tokenizeInline(h, F) }, s)), e(f + p), f = "", h = "") : (f && (h += f, f = ""), h += p, p === ed && a !== l - 2 && (h += B.charAt(a + 1), a++)), m = false, a++;
|
|
1330
|
+
}
|
|
1331
|
+
y || e(et + u);
|
|
1332
|
+
}
|
|
1333
|
+
return g;
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
});
|
|
1338
|
+
var Co = C((wE, Eo) => {
|
|
1339
|
+
var ad = Re(), od = Ht(), sd = Jr();
|
|
1340
|
+
Eo.exports = fd;
|
|
1341
|
+
var cd = " ", Cr = `
|
|
1342
|
+
`, ld = " ", vo = 4;
|
|
1343
|
+
function fd(e, r, t) {
|
|
1344
|
+
for (var n = this, a = n.options, u = a.commonmark, i = n.blockTokenizers, o = n.interruptParagraph, s = r.indexOf(Cr), l = r.length, c, f, p, d, D; s < l; ) {
|
|
1345
|
+
if (s === -1) {
|
|
1346
|
+
s = l;
|
|
1347
|
+
break;
|
|
1348
|
+
}
|
|
1349
|
+
if (r.charAt(s + 1) === Cr)
|
|
1350
|
+
break;
|
|
1351
|
+
if (u) {
|
|
1352
|
+
for (d = 0, c = s + 1; c < l; ) {
|
|
1353
|
+
if (p = r.charAt(c), p === cd) {
|
|
1354
|
+
d = vo;
|
|
1355
|
+
break;
|
|
1356
|
+
} else if (p === ld)
|
|
1357
|
+
d++;
|
|
1358
|
+
else
|
|
1359
|
+
break;
|
|
1360
|
+
c++;
|
|
1361
|
+
}
|
|
1362
|
+
if (d >= vo && p !== Cr) {
|
|
1363
|
+
s = r.indexOf(Cr, s + 1);
|
|
1364
|
+
continue;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
if (f = r.slice(s + 1), sd(o, i, n, [e, f, true]))
|
|
1368
|
+
break;
|
|
1369
|
+
if (c = s, s = r.indexOf(Cr, s + 1), s !== -1 && ad(r.slice(c, s)) === "") {
|
|
1370
|
+
s = c;
|
|
1371
|
+
break;
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
return f = r.slice(0, s), t ? true : (D = e.now(), f = od(f), e(f)({ type: "paragraph", children: n.tokenizeInline(f, D) }));
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
var yo = C((xE, bo) => {
|
|
1378
|
+
bo.exports = Dd;
|
|
1379
|
+
function Dd(e, r) {
|
|
1380
|
+
return e.indexOf("\\", r);
|
|
1381
|
+
}
|
|
1382
|
+
});
|
|
1383
|
+
var ko = C((kE, xo) => {
|
|
1384
|
+
var pd = yo();
|
|
1385
|
+
xo.exports = wo;
|
|
1386
|
+
wo.locator = pd;
|
|
1387
|
+
var hd = `
|
|
1388
|
+
`, Ao = "\\";
|
|
1389
|
+
function wo(e, r, t) {
|
|
1390
|
+
var n = this, a, u;
|
|
1391
|
+
if (r.charAt(0) === Ao && (a = r.charAt(1), n.escape.indexOf(a) !== -1))
|
|
1392
|
+
return t ? true : (a === hd ? u = { type: "break" } : u = { type: "text", value: a }, e(Ao + a)(u));
|
|
1393
|
+
}
|
|
1394
|
+
});
|
|
1395
|
+
var ln = C((BE, Bo) => {
|
|
1396
|
+
Bo.exports = dd;
|
|
1397
|
+
function dd(e, r) {
|
|
1398
|
+
return e.indexOf("<", r);
|
|
1399
|
+
}
|
|
1400
|
+
});
|
|
1401
|
+
var Oo = C((TE, So) => {
|
|
1402
|
+
var To = oe(), md = dr(), Fd = ln();
|
|
1403
|
+
So.exports = hn;
|
|
1404
|
+
hn.locator = Fd;
|
|
1405
|
+
hn.notInLink = true;
|
|
1406
|
+
var qo = "<", fn = ">", _o = "@", Dn = "/", pn = "mailto:", rt = pn.length;
|
|
1407
|
+
function hn(e, r, t) {
|
|
1408
|
+
var n = this, a = "", u = r.length, i = 0, o = "", s = false, l = "", c, f, p, d, D;
|
|
1409
|
+
if (r.charAt(0) === qo) {
|
|
1410
|
+
for (i++, a = qo; i < u && (c = r.charAt(i), !(To(c) || c === fn || c === _o || c === ":" && r.charAt(i + 1) === Dn)); )
|
|
1411
|
+
o += c, i++;
|
|
1412
|
+
if (o) {
|
|
1413
|
+
if (l += o, o = "", c = r.charAt(i), l += c, i++, c === _o)
|
|
1414
|
+
s = true;
|
|
1415
|
+
else {
|
|
1416
|
+
if (c !== ":" || r.charAt(i + 1) !== Dn)
|
|
1417
|
+
return;
|
|
1418
|
+
l += Dn, i++;
|
|
1419
|
+
}
|
|
1420
|
+
for (; i < u && (c = r.charAt(i), !(To(c) || c === fn)); )
|
|
1421
|
+
o += c, i++;
|
|
1422
|
+
if (c = r.charAt(i), !(!o || c !== fn))
|
|
1423
|
+
return t ? true : (l += o, p = l, a += l + c, f = e.now(), f.column++, f.offset++, s && (l.slice(0, rt).toLowerCase() === pn ? (p = p.slice(rt), f.column += rt, f.offset += rt) : l = pn + l), d = n.inlineTokenizers, n.inlineTokenizers = { text: d.text }, D = n.enterLink(), p = n.tokenizeInline(p, f), n.inlineTokenizers = d, D(), e(a)({ type: "link", title: null, url: md(l, { nonTerminated: false }), children: p }));
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
});
|
|
1428
|
+
var Po = C((qE, Lo) => {
|
|
1429
|
+
Lo.exports = gd;
|
|
1430
|
+
function gd(e, r) {
|
|
1431
|
+
var t = String(e), n = 0, a;
|
|
1432
|
+
if (typeof r != "string")
|
|
1433
|
+
throw new Error("Expected character");
|
|
1434
|
+
for (a = t.indexOf(r); a !== -1; )
|
|
1435
|
+
n++, a = t.indexOf(r, a + r.length);
|
|
1436
|
+
return n;
|
|
1437
|
+
}
|
|
1438
|
+
});
|
|
1439
|
+
var Ro = C((_E, No) => {
|
|
1440
|
+
No.exports = vd;
|
|
1441
|
+
var Io = ["www.", "http://", "https://"];
|
|
1442
|
+
function vd(e, r) {
|
|
1443
|
+
var t = -1, n, a, u;
|
|
1444
|
+
if (!this.options.gfm)
|
|
1445
|
+
return t;
|
|
1446
|
+
for (a = Io.length, n = -1; ++n < a; )
|
|
1447
|
+
u = e.indexOf(Io[n], r), u !== -1 && (t === -1 || u < t) && (t = u);
|
|
1448
|
+
return t;
|
|
1449
|
+
}
|
|
1450
|
+
});
|
|
1451
|
+
var Go = C((SE, Yo) => {
|
|
1452
|
+
var Uo = Po(), Ed = dr(), Cd = Ne(), dn = We(), bd = oe(), yd = Ro();
|
|
1453
|
+
Yo.exports = Fn;
|
|
1454
|
+
Fn.locator = yd;
|
|
1455
|
+
Fn.notInLink = true;
|
|
1456
|
+
var Ad = 33, wd = 38, xd = 41, kd = 42, Bd = 44, Td = 45, mn = 46, qd = 58, _d = 59, Sd = 63, Od = 60, Mo = 95, Ld = 126, Pd = "(", zo = ")";
|
|
1457
|
+
function Fn(e, r, t) {
|
|
1458
|
+
var n = this, a = n.options.gfm, u = n.inlineTokenizers, i = r.length, o = -1, s = false, l, c, f, p, d, D, h, m, F, y, E, B, b, g;
|
|
1459
|
+
if (a) {
|
|
1460
|
+
if (r.slice(0, 4) === "www.")
|
|
1461
|
+
s = true, p = 4;
|
|
1462
|
+
else if (r.slice(0, 7).toLowerCase() === "http://")
|
|
1463
|
+
p = 7;
|
|
1464
|
+
else if (r.slice(0, 8).toLowerCase() === "https://")
|
|
1465
|
+
p = 8;
|
|
1466
|
+
else
|
|
1467
|
+
return;
|
|
1468
|
+
for (o = p - 1, f = p, l = []; p < i; ) {
|
|
1469
|
+
if (h = r.charCodeAt(p), h === mn) {
|
|
1470
|
+
if (o === p - 1)
|
|
1471
|
+
break;
|
|
1472
|
+
l.push(p), o = p, p++;
|
|
1473
|
+
continue;
|
|
1474
|
+
}
|
|
1475
|
+
if (Cd(h) || dn(h) || h === Td || h === Mo) {
|
|
1476
|
+
p++;
|
|
1477
|
+
continue;
|
|
1478
|
+
}
|
|
1479
|
+
break;
|
|
1480
|
+
}
|
|
1481
|
+
if (h === mn && (l.pop(), p--), l[0] !== void 0 && (c = l.length < 2 ? f : l[l.length - 2] + 1, r.slice(c, p).indexOf("_") === -1)) {
|
|
1482
|
+
if (t)
|
|
1483
|
+
return true;
|
|
1484
|
+
for (m = p, d = p; p < i && (h = r.charCodeAt(p), !(bd(h) || h === Od)); )
|
|
1485
|
+
p++, h === Ad || h === kd || h === Bd || h === mn || h === qd || h === Sd || h === Mo || h === Ld || (m = p);
|
|
1486
|
+
if (p = m, r.charCodeAt(p - 1) === xd)
|
|
1487
|
+
for (D = r.slice(d, p), F = Uo(D, Pd), y = Uo(D, zo); y > F; )
|
|
1488
|
+
p = d + D.lastIndexOf(zo), D = r.slice(d, p), y--;
|
|
1489
|
+
if (r.charCodeAt(p - 1) === _d && (p--, dn(r.charCodeAt(p - 1)))) {
|
|
1490
|
+
for (m = p - 2; dn(r.charCodeAt(m)); )
|
|
1491
|
+
m--;
|
|
1492
|
+
r.charCodeAt(m) === wd && (p = m);
|
|
1493
|
+
}
|
|
1494
|
+
return E = r.slice(0, p), b = Ed(E, { nonTerminated: false }), s && (b = "http://" + b), g = n.enterLink(), n.inlineTokenizers = { text: u.text }, B = n.tokenizeInline(E, e.now()), n.inlineTokenizers = u, g(), e(E)({ type: "link", title: null, url: b, children: B });
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
});
|
|
1499
|
+
var Wo = C((OE, $o) => {
|
|
1500
|
+
var Id = Ne(), Nd = We(), Rd = 43, Ud = 45, Md = 46, zd = 95;
|
|
1501
|
+
$o.exports = jo;
|
|
1502
|
+
function jo(e, r) {
|
|
1503
|
+
var t = this, n, a;
|
|
1504
|
+
if (!this.options.gfm || (n = e.indexOf("@", r), n === -1))
|
|
1505
|
+
return -1;
|
|
1506
|
+
if (a = n, a === r || !Vo(e.charCodeAt(a - 1)))
|
|
1507
|
+
return jo.call(t, e, n + 1);
|
|
1508
|
+
for (; a > r && Vo(e.charCodeAt(a - 1)); )
|
|
1509
|
+
a--;
|
|
1510
|
+
return a;
|
|
1511
|
+
}
|
|
1512
|
+
function Vo(e) {
|
|
1513
|
+
return Id(e) || Nd(e) || e === Rd || e === Ud || e === Md || e === zd;
|
|
1514
|
+
}
|
|
1515
|
+
});
|
|
1516
|
+
var Xo = C((LE, Jo) => {
|
|
1517
|
+
var Yd = dr(), Ho = Ne(), Ko = We(), Gd = Wo();
|
|
1518
|
+
Jo.exports = En;
|
|
1519
|
+
En.locator = Gd;
|
|
1520
|
+
En.notInLink = true;
|
|
1521
|
+
var Vd = 43, gn = 45, tt = 46, jd = 64, vn = 95;
|
|
1522
|
+
function En(e, r, t) {
|
|
1523
|
+
var n = this, a = n.options.gfm, u = n.inlineTokenizers, i = 0, o = r.length, s = -1, l, c, f, p;
|
|
1524
|
+
if (a) {
|
|
1525
|
+
for (l = r.charCodeAt(i); Ho(l) || Ko(l) || l === Vd || l === gn || l === tt || l === vn; )
|
|
1526
|
+
l = r.charCodeAt(++i);
|
|
1527
|
+
if (i !== 0 && l === jd) {
|
|
1528
|
+
for (i++; i < o; ) {
|
|
1529
|
+
if (l = r.charCodeAt(i), Ho(l) || Ko(l) || l === gn || l === tt || l === vn) {
|
|
1530
|
+
i++, s === -1 && l === tt && (s = i);
|
|
1531
|
+
continue;
|
|
1532
|
+
}
|
|
1533
|
+
break;
|
|
1534
|
+
}
|
|
1535
|
+
if (!(s === -1 || s === i || l === gn || l === vn))
|
|
1536
|
+
return l === tt && i--, c = r.slice(0, i), t ? true : (p = n.enterLink(), n.inlineTokenizers = { text: u.text }, f = n.tokenizeInline(c, e.now()), n.inlineTokenizers = u, p(), e(c)({ type: "link", title: null, url: "mailto:" + Yd(c, { nonTerminated: false }), children: f }));
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
});
|
|
1541
|
+
var es = C((PE, Zo) => {
|
|
1542
|
+
var $d = We(), Wd = ln(), Hd = un().tag;
|
|
1543
|
+
Zo.exports = Qo;
|
|
1544
|
+
Qo.locator = Wd;
|
|
1545
|
+
var Kd = "<", Jd = "?", Xd = "!", Qd = "/", Zd = /^<a /i, e0 = /^<\/a>/i;
|
|
1546
|
+
function Qo(e, r, t) {
|
|
1547
|
+
var n = this, a = r.length, u, i;
|
|
1548
|
+
if (!(r.charAt(0) !== Kd || a < 3) && (u = r.charAt(1), !(!$d(u) && u !== Jd && u !== Xd && u !== Qd) && (i = r.match(Hd), !!i)))
|
|
1549
|
+
return t ? true : (i = i[0], !n.inLink && Zd.test(i) ? n.inLink = true : n.inLink && e0.test(i) && (n.inLink = false), e(i)({ type: "html", value: i }));
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1552
|
+
var Cn = C((IE, rs) => {
|
|
1553
|
+
rs.exports = r0;
|
|
1554
|
+
function r0(e, r) {
|
|
1555
|
+
var t = e.indexOf("[", r), n = e.indexOf("![", r);
|
|
1556
|
+
return n === -1 || t < n ? t : n;
|
|
1557
|
+
}
|
|
1558
|
+
});
|
|
1559
|
+
var ss = C((NE, os) => {
|
|
1560
|
+
var br = oe(), t0 = Cn();
|
|
1561
|
+
os.exports = as;
|
|
1562
|
+
as.locator = t0;
|
|
1563
|
+
var n0 = `
|
|
1564
|
+
`, i0 = "!", ts = '"', ns = "'", Ze = "(", yr = ")", bn = "<", yn = ">", is = "[", Ar = "\\", u0 = "]", us = "`";
|
|
1565
|
+
function as(e, r, t) {
|
|
1566
|
+
var n = this, a = "", u = 0, i = r.charAt(0), o = n.options.pedantic, s = n.options.commonmark, l = n.options.gfm, c, f, p, d, D, h, m, F, y, E, B, b, g, A, w, v, x, k;
|
|
1567
|
+
if (i === i0 && (F = true, a = i, i = r.charAt(++u)), i === is && !(!F && n.inLink)) {
|
|
1568
|
+
for (a += i, A = "", u++, B = r.length, v = e.now(), g = 0, v.column += u, v.offset += u; u < B; ) {
|
|
1569
|
+
if (i = r.charAt(u), h = i, i === us) {
|
|
1570
|
+
for (f = 1; r.charAt(u + 1) === us; )
|
|
1571
|
+
h += i, u++, f++;
|
|
1572
|
+
p ? f >= p && (p = 0) : p = f;
|
|
1573
|
+
} else if (i === Ar)
|
|
1574
|
+
u++, h += r.charAt(u);
|
|
1575
|
+
else if ((!p || l) && i === is)
|
|
1576
|
+
g++;
|
|
1577
|
+
else if ((!p || l) && i === u0)
|
|
1578
|
+
if (g)
|
|
1579
|
+
g--;
|
|
1580
|
+
else {
|
|
1581
|
+
if (r.charAt(u + 1) !== Ze)
|
|
1582
|
+
return;
|
|
1583
|
+
h += Ze, c = true, u++;
|
|
1584
|
+
break;
|
|
1585
|
+
}
|
|
1586
|
+
A += h, h = "", u++;
|
|
1587
|
+
}
|
|
1588
|
+
if (c) {
|
|
1589
|
+
for (y = A, a += A + h, u++; u < B && (i = r.charAt(u), !!br(i)); )
|
|
1590
|
+
a += i, u++;
|
|
1591
|
+
if (i = r.charAt(u), A = "", d = a, i === bn) {
|
|
1592
|
+
for (u++, d += bn; u < B && (i = r.charAt(u), i !== yn); ) {
|
|
1593
|
+
if (s && i === n0)
|
|
1594
|
+
return;
|
|
1595
|
+
A += i, u++;
|
|
1596
|
+
}
|
|
1597
|
+
if (r.charAt(u) !== yn)
|
|
1598
|
+
return;
|
|
1599
|
+
a += bn + A + yn, w = A, u++;
|
|
1600
|
+
} else {
|
|
1601
|
+
for (i = null, h = ""; u < B && (i = r.charAt(u), !(h && (i === ts || i === ns || s && i === Ze))); ) {
|
|
1602
|
+
if (br(i)) {
|
|
1603
|
+
if (!o)
|
|
1604
|
+
break;
|
|
1605
|
+
h += i;
|
|
1606
|
+
} else {
|
|
1607
|
+
if (i === Ze)
|
|
1608
|
+
g++;
|
|
1609
|
+
else if (i === yr) {
|
|
1610
|
+
if (g === 0)
|
|
1611
|
+
break;
|
|
1612
|
+
g--;
|
|
1613
|
+
}
|
|
1614
|
+
A += h, h = "", i === Ar && (A += Ar, i = r.charAt(++u)), A += i;
|
|
1615
|
+
}
|
|
1616
|
+
u++;
|
|
1617
|
+
}
|
|
1618
|
+
a += A, w = A, u = a.length;
|
|
1619
|
+
}
|
|
1620
|
+
for (A = ""; u < B && (i = r.charAt(u), !!br(i)); )
|
|
1621
|
+
A += i, u++;
|
|
1622
|
+
if (i = r.charAt(u), a += A, A && (i === ts || i === ns || s && i === Ze))
|
|
1623
|
+
if (u++, a += i, A = "", E = i === Ze ? yr : i, D = a, s) {
|
|
1624
|
+
for (; u < B && (i = r.charAt(u), i !== E); )
|
|
1625
|
+
i === Ar && (A += Ar, i = r.charAt(++u)), u++, A += i;
|
|
1626
|
+
if (i = r.charAt(u), i !== E)
|
|
1627
|
+
return;
|
|
1628
|
+
for (b = A, a += A + i, u++; u < B && (i = r.charAt(u), !!br(i)); )
|
|
1629
|
+
a += i, u++;
|
|
1630
|
+
} else
|
|
1631
|
+
for (h = ""; u < B; ) {
|
|
1632
|
+
if (i = r.charAt(u), i === E)
|
|
1633
|
+
m && (A += E + h, h = ""), m = true;
|
|
1634
|
+
else if (!m)
|
|
1635
|
+
A += i;
|
|
1636
|
+
else if (i === yr) {
|
|
1637
|
+
a += A + E + h, b = A;
|
|
1638
|
+
break;
|
|
1639
|
+
} else
|
|
1640
|
+
br(i) ? h += i : (A += E + h + i, h = "", m = false);
|
|
1641
|
+
u++;
|
|
1642
|
+
}
|
|
1643
|
+
if (r.charAt(u) === yr)
|
|
1644
|
+
return t ? true : (a += yr, w = n.decode.raw(n.unescape(w), e(d).test().end, { nonTerminated: false }), b && (D = e(D).test().end, b = n.decode.raw(n.unescape(b), D)), k = { type: F ? "image" : "link", title: b || null, url: w }, F ? k.alt = n.decode.raw(n.unescape(y), v) || null : (x = n.enterLink(), k.children = n.tokenizeInline(y, v), x()), e(a)(k));
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
});
|
|
1649
|
+
var fs = C((RE, ls) => {
|
|
1650
|
+
var a0 = oe(), o0 = Cn(), s0 = an();
|
|
1651
|
+
ls.exports = cs;
|
|
1652
|
+
cs.locator = o0;
|
|
1653
|
+
var An = "link", c0 = "image", l0 = "shortcut", f0 = "collapsed", wn = "full", D0 = "!", nt = "[", it = "\\", ut = "]";
|
|
1654
|
+
function cs(e, r, t) {
|
|
1655
|
+
var n = this, a = n.options.commonmark, u = r.charAt(0), i = 0, o = r.length, s = "", l = "", c = An, f = l0, p, d, D, h, m, F, y, E;
|
|
1656
|
+
if (u === D0 && (c = c0, l = u, u = r.charAt(++i)), u === nt) {
|
|
1657
|
+
for (i++, l += u, F = "", E = 0; i < o; ) {
|
|
1658
|
+
if (u = r.charAt(i), u === nt)
|
|
1659
|
+
y = true, E++;
|
|
1660
|
+
else if (u === ut) {
|
|
1661
|
+
if (!E)
|
|
1662
|
+
break;
|
|
1663
|
+
E--;
|
|
1664
|
+
}
|
|
1665
|
+
u === it && (F += it, u = r.charAt(++i)), F += u, i++;
|
|
1666
|
+
}
|
|
1667
|
+
if (s = F, p = F, u = r.charAt(i), u === ut) {
|
|
1668
|
+
if (i++, s += u, F = "", !a)
|
|
1669
|
+
for (; i < o && (u = r.charAt(i), !!a0(u)); )
|
|
1670
|
+
F += u, i++;
|
|
1671
|
+
if (u = r.charAt(i), u === nt) {
|
|
1672
|
+
for (d = "", F += u, i++; i < o && (u = r.charAt(i), !(u === nt || u === ut)); )
|
|
1673
|
+
u === it && (d += it, u = r.charAt(++i)), d += u, i++;
|
|
1674
|
+
u = r.charAt(i), u === ut ? (f = d ? wn : f0, F += d + u, i++) : d = "", s += F, F = "";
|
|
1675
|
+
} else {
|
|
1676
|
+
if (!p)
|
|
1677
|
+
return;
|
|
1678
|
+
d = p;
|
|
1679
|
+
}
|
|
1680
|
+
if (!(f !== wn && y))
|
|
1681
|
+
return s = l + s, c === An && n.inLink ? null : t ? true : (D = e.now(), D.column += l.length, D.offset += l.length, d = f === wn ? d : p, h = { type: c + "Reference", identifier: s0(d), label: d, referenceType: f }, c === An ? (m = n.enterLink(), h.children = n.tokenizeInline(p, D), m()) : h.alt = n.decode.raw(n.unescape(p), D) || null, e(s)(h));
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
});
|
|
1686
|
+
var ps = C((UE, Ds) => {
|
|
1687
|
+
Ds.exports = p0;
|
|
1688
|
+
function p0(e, r) {
|
|
1689
|
+
var t = e.indexOf("**", r), n = e.indexOf("__", r);
|
|
1690
|
+
return n === -1 ? t : t === -1 || n < t ? n : t;
|
|
1691
|
+
}
|
|
1692
|
+
});
|
|
1693
|
+
var Fs = C((ME, ms) => {
|
|
1694
|
+
var h0 = Re(), hs = oe(), d0 = ps();
|
|
1695
|
+
ms.exports = ds;
|
|
1696
|
+
ds.locator = d0;
|
|
1697
|
+
var m0 = "\\", F0 = "*", g0 = "_";
|
|
1698
|
+
function ds(e, r, t) {
|
|
1699
|
+
var n = this, a = 0, u = r.charAt(a), i, o, s, l, c, f, p;
|
|
1700
|
+
if (!(u !== F0 && u !== g0 || r.charAt(++a) !== u) && (o = n.options.pedantic, s = u, c = s + s, f = r.length, a++, l = "", u = "", !(o && hs(r.charAt(a)))))
|
|
1701
|
+
for (; a < f; ) {
|
|
1702
|
+
if (p = u, u = r.charAt(a), u === s && r.charAt(a + 1) === s && (!o || !hs(p)) && (u = r.charAt(a + 2), u !== s))
|
|
1703
|
+
return h0(l) ? t ? true : (i = e.now(), i.column += 2, i.offset += 2, e(c + l + c)({ type: "strong", children: n.tokenizeInline(l, i) })) : void 0;
|
|
1704
|
+
!o && u === m0 && (l += u, u = r.charAt(++a)), l += u, a++;
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
});
|
|
1708
|
+
var vs = C((zE, gs) => {
|
|
1709
|
+
gs.exports = C0;
|
|
1710
|
+
var v0 = String.fromCharCode, E0 = /\w/;
|
|
1711
|
+
function C0(e) {
|
|
1712
|
+
return E0.test(typeof e == "number" ? v0(e) : e.charAt(0));
|
|
1713
|
+
}
|
|
1714
|
+
});
|
|
1715
|
+
var Cs = C((YE, Es) => {
|
|
1716
|
+
Es.exports = b0;
|
|
1717
|
+
function b0(e, r) {
|
|
1718
|
+
var t = e.indexOf("*", r), n = e.indexOf("_", r);
|
|
1719
|
+
return n === -1 ? t : t === -1 || n < t ? n : t;
|
|
1720
|
+
}
|
|
1721
|
+
});
|
|
1722
|
+
var xs = C((GE, ws) => {
|
|
1723
|
+
var y0 = Re(), A0 = vs(), bs = oe(), w0 = Cs();
|
|
1724
|
+
ws.exports = As;
|
|
1725
|
+
As.locator = w0;
|
|
1726
|
+
var x0 = "*", ys = "_", k0 = "\\";
|
|
1727
|
+
function As(e, r, t) {
|
|
1728
|
+
var n = this, a = 0, u = r.charAt(a), i, o, s, l, c, f, p;
|
|
1729
|
+
if (!(u !== x0 && u !== ys) && (o = n.options.pedantic, c = u, s = u, f = r.length, a++, l = "", u = "", !(o && bs(r.charAt(a)))))
|
|
1730
|
+
for (; a < f; ) {
|
|
1731
|
+
if (p = u, u = r.charAt(a), u === s && (!o || !bs(p))) {
|
|
1732
|
+
if (u = r.charAt(++a), u !== s) {
|
|
1733
|
+
if (!y0(l) || p === s)
|
|
1734
|
+
return;
|
|
1735
|
+
if (!o && s === ys && A0(u)) {
|
|
1736
|
+
l += s;
|
|
1737
|
+
continue;
|
|
1738
|
+
}
|
|
1739
|
+
return t ? true : (i = e.now(), i.column++, i.offset++, e(c + l + s)({ type: "emphasis", children: n.tokenizeInline(l, i) }));
|
|
1740
|
+
}
|
|
1741
|
+
l += s;
|
|
1742
|
+
}
|
|
1743
|
+
!o && u === k0 && (l += u, u = r.charAt(++a)), l += u, a++;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
});
|
|
1747
|
+
var Bs = C((VE, ks) => {
|
|
1748
|
+
ks.exports = B0;
|
|
1749
|
+
function B0(e, r) {
|
|
1750
|
+
return e.indexOf("~~", r);
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
var Os = C((jE, Ss) => {
|
|
1754
|
+
var Ts = oe(), T0 = Bs();
|
|
1755
|
+
Ss.exports = _s;
|
|
1756
|
+
_s.locator = T0;
|
|
1757
|
+
var at = "~", qs = "~~";
|
|
1758
|
+
function _s(e, r, t) {
|
|
1759
|
+
var n = this, a = "", u = "", i = "", o = "", s, l, c;
|
|
1760
|
+
if (!(!n.options.gfm || r.charAt(0) !== at || r.charAt(1) !== at || Ts(r.charAt(2))))
|
|
1761
|
+
for (s = 1, l = r.length, c = e.now(), c.column += 2, c.offset += 2; ++s < l; ) {
|
|
1762
|
+
if (a = r.charAt(s), a === at && u === at && (!i || !Ts(i)))
|
|
1763
|
+
return t ? true : e(qs + o + qs)({ type: "delete", children: n.tokenizeInline(o, c) });
|
|
1764
|
+
o += u, i = u, u = a;
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
});
|
|
1768
|
+
var Ps = C(($E, Ls) => {
|
|
1769
|
+
Ls.exports = q0;
|
|
1770
|
+
function q0(e, r) {
|
|
1771
|
+
return e.indexOf("`", r);
|
|
1772
|
+
}
|
|
1773
|
+
});
|
|
1774
|
+
var Rs = C((WE, Ns) => {
|
|
1775
|
+
var _0 = Ps();
|
|
1776
|
+
Ns.exports = Is;
|
|
1777
|
+
Is.locator = _0;
|
|
1778
|
+
var xn = 10, kn = 32, Bn = 96;
|
|
1779
|
+
function Is(e, r, t) {
|
|
1780
|
+
for (var n = r.length, a = 0, u, i, o, s, l, c; a < n && r.charCodeAt(a) === Bn; )
|
|
1781
|
+
a++;
|
|
1782
|
+
if (!(a === 0 || a === n)) {
|
|
1783
|
+
for (u = a, l = r.charCodeAt(a); a < n; ) {
|
|
1784
|
+
if (s = l, l = r.charCodeAt(a + 1), s === Bn) {
|
|
1785
|
+
if (i === void 0 && (i = a), o = a + 1, l !== Bn && o - i === u) {
|
|
1786
|
+
c = true;
|
|
1787
|
+
break;
|
|
1788
|
+
}
|
|
1789
|
+
} else
|
|
1790
|
+
i !== void 0 && (i = void 0, o = void 0);
|
|
1791
|
+
a++;
|
|
1792
|
+
}
|
|
1793
|
+
if (c) {
|
|
1794
|
+
if (t)
|
|
1795
|
+
return true;
|
|
1796
|
+
if (a = u, n = i, s = r.charCodeAt(a), l = r.charCodeAt(n - 1), c = false, n - a > 2 && (s === kn || s === xn) && (l === kn || l === xn)) {
|
|
1797
|
+
for (a++, n--; a < n; ) {
|
|
1798
|
+
if (s = r.charCodeAt(a), s !== kn && s !== xn) {
|
|
1799
|
+
c = true;
|
|
1800
|
+
break;
|
|
1801
|
+
}
|
|
1802
|
+
a++;
|
|
1803
|
+
}
|
|
1804
|
+
c === true && (u++, i--);
|
|
1805
|
+
}
|
|
1806
|
+
return e(r.slice(0, o))({ type: "inlineCode", value: r.slice(u, i) });
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
});
|
|
1811
|
+
var Ms = C((HE, Us) => {
|
|
1812
|
+
Us.exports = S0;
|
|
1813
|
+
function S0(e, r) {
|
|
1814
|
+
for (var t = e.indexOf(`
|
|
1815
|
+
`, r); t > r && e.charAt(t - 1) === " "; )
|
|
1816
|
+
t--;
|
|
1817
|
+
return t;
|
|
1818
|
+
}
|
|
1819
|
+
});
|
|
1820
|
+
var Gs = C((KE, Ys) => {
|
|
1821
|
+
var O0 = Ms();
|
|
1822
|
+
Ys.exports = zs;
|
|
1823
|
+
zs.locator = O0;
|
|
1824
|
+
var L0 = " ", P0 = `
|
|
1825
|
+
`, I0 = 2;
|
|
1826
|
+
function zs(e, r, t) {
|
|
1827
|
+
for (var n = r.length, a = -1, u = "", i; ++a < n; ) {
|
|
1828
|
+
if (i = r.charAt(a), i === P0)
|
|
1829
|
+
return a < I0 ? void 0 : t ? true : (u += i, e(u)({ type: "break" }));
|
|
1830
|
+
if (i !== L0)
|
|
1831
|
+
return;
|
|
1832
|
+
u += i;
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
});
|
|
1836
|
+
var js = C((JE, Vs) => {
|
|
1837
|
+
Vs.exports = N0;
|
|
1838
|
+
function N0(e, r, t) {
|
|
1839
|
+
var n = this, a, u, i, o, s, l, c, f, p, d;
|
|
1840
|
+
if (t)
|
|
1841
|
+
return true;
|
|
1842
|
+
for (a = n.inlineMethods, o = a.length, u = n.inlineTokenizers, i = -1, p = r.length; ++i < o; )
|
|
1843
|
+
f = a[i], !(f === "text" || !u[f]) && (c = u[f].locator, c || e.file.fail("Missing locator: `" + f + "`"), l = c.call(n, r, 1), l !== -1 && l < p && (p = l));
|
|
1844
|
+
s = r.slice(0, p), d = e.now(), n.decode(s, d, D);
|
|
1845
|
+
function D(h, m, F) {
|
|
1846
|
+
e(F || h)({ type: "text", value: h });
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
});
|
|
1850
|
+
var Ks = C((XE, Hs) => {
|
|
1851
|
+
var R0 = Ie(), ot = fu(), U0 = pu(), M0 = du(), z0 = Gu(), Tn = $u();
|
|
1852
|
+
Hs.exports = $s;
|
|
1853
|
+
function $s(e, r) {
|
|
1854
|
+
this.file = r, this.offset = {}, this.options = R0(this.options), this.setOptions({}), this.inList = false, this.inBlock = false, this.inLink = false, this.atStart = true, this.toOffset = U0(r).toOffset, this.unescape = M0(this, "escape"), this.decode = z0(this);
|
|
1855
|
+
}
|
|
1856
|
+
var U = $s.prototype;
|
|
1857
|
+
U.setOptions = ea();
|
|
1858
|
+
U.parse = ma();
|
|
1859
|
+
U.options = jt();
|
|
1860
|
+
U.exitStart = ot("atStart", true);
|
|
1861
|
+
U.enterList = ot("inList", false);
|
|
1862
|
+
U.enterLink = ot("inLink", false);
|
|
1863
|
+
U.enterBlock = ot("inBlock", false);
|
|
1864
|
+
U.interruptParagraph = [["thematicBreak"], ["list"], ["atxHeading"], ["fencedCode"], ["blockquote"], ["html"], ["setextHeading", { commonmark: false }], ["definition", { commonmark: false }]];
|
|
1865
|
+
U.interruptList = [["atxHeading", { pedantic: false }], ["fencedCode", { pedantic: false }], ["thematicBreak", { pedantic: false }], ["definition", { commonmark: false }]];
|
|
1866
|
+
U.interruptBlockquote = [["indentedCode", { commonmark: true }], ["fencedCode", { commonmark: true }], ["atxHeading", { commonmark: true }], ["setextHeading", { commonmark: true }], ["thematicBreak", { commonmark: true }], ["html", { commonmark: true }], ["list", { commonmark: true }], ["definition", { commonmark: false }]];
|
|
1867
|
+
U.blockTokenizers = { blankLine: ga(), indentedCode: ya(), fencedCode: xa(), blockquote: Sa(), atxHeading: Pa(), thematicBreak: Ra(), list: Ka(), setextHeading: Za(), html: uo(), definition: ho(), table: go(), paragraph: Co() };
|
|
1868
|
+
U.inlineTokenizers = { escape: ko(), autoLink: Oo(), url: Go(), email: Xo(), html: es(), link: ss(), reference: fs(), strong: Fs(), emphasis: xs(), deletion: Os(), code: Rs(), break: Gs(), text: js() };
|
|
1869
|
+
U.blockMethods = Ws(U.blockTokenizers);
|
|
1870
|
+
U.inlineMethods = Ws(U.inlineTokenizers);
|
|
1871
|
+
U.tokenizeBlock = Tn("block");
|
|
1872
|
+
U.tokenizeInline = Tn("inline");
|
|
1873
|
+
U.tokenizeFactory = Tn;
|
|
1874
|
+
function Ws(e) {
|
|
1875
|
+
var r = [], t;
|
|
1876
|
+
for (t in e)
|
|
1877
|
+
r.push(t);
|
|
1878
|
+
return r;
|
|
1879
|
+
}
|
|
1880
|
+
});
|
|
1881
|
+
var Zs = C((QE, Qs) => {
|
|
1882
|
+
var Y0 = cu(), G0 = Ie(), Js = Ks();
|
|
1883
|
+
Qs.exports = Xs;
|
|
1884
|
+
Xs.Parser = Js;
|
|
1885
|
+
function Xs(e) {
|
|
1886
|
+
var r = this.data("settings"), t = Y0(Js);
|
|
1887
|
+
t.prototype.options = G0(t.prototype.options, r, e), this.Parser = t;
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1890
|
+
var rc = C((ZE, ec) => {
|
|
1891
|
+
ec.exports = V0;
|
|
1892
|
+
function V0(e) {
|
|
1893
|
+
if (e)
|
|
1894
|
+
throw e;
|
|
1895
|
+
}
|
|
1896
|
+
});
|
|
1897
|
+
var qn = C((eC, tc) => {
|
|
1898
|
+
tc.exports = function(r) {
|
|
1899
|
+
return r != null && r.constructor != null && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
1900
|
+
};
|
|
1901
|
+
});
|
|
1902
|
+
var fc = C((rC, lc) => {
|
|
1903
|
+
var st = Object.prototype.hasOwnProperty, cc = Object.prototype.toString, nc = Object.defineProperty, ic = Object.getOwnPropertyDescriptor, uc = function(r) {
|
|
1904
|
+
return typeof Array.isArray == "function" ? Array.isArray(r) : cc.call(r) === "[object Array]";
|
|
1905
|
+
}, ac = function(r) {
|
|
1906
|
+
if (!r || cc.call(r) !== "[object Object]")
|
|
1907
|
+
return false;
|
|
1908
|
+
var t = st.call(r, "constructor"), n = r.constructor && r.constructor.prototype && st.call(r.constructor.prototype, "isPrototypeOf");
|
|
1909
|
+
if (r.constructor && !t && !n)
|
|
1910
|
+
return false;
|
|
1911
|
+
var a;
|
|
1912
|
+
for (a in r)
|
|
1913
|
+
;
|
|
1914
|
+
return typeof a > "u" || st.call(r, a);
|
|
1915
|
+
}, oc = function(r, t) {
|
|
1916
|
+
nc && t.name === "__proto__" ? nc(r, t.name, { enumerable: true, configurable: true, value: t.newValue, writable: true }) : r[t.name] = t.newValue;
|
|
1917
|
+
}, sc = function(r, t) {
|
|
1918
|
+
if (t === "__proto__")
|
|
1919
|
+
if (st.call(r, t)) {
|
|
1920
|
+
if (ic)
|
|
1921
|
+
return ic(r, t).value;
|
|
1922
|
+
} else
|
|
1923
|
+
return;
|
|
1924
|
+
return r[t];
|
|
1925
|
+
};
|
|
1926
|
+
lc.exports = function e() {
|
|
1927
|
+
var r, t, n, a, u, i, o = arguments[0], s = 1, l = arguments.length, c = false;
|
|
1928
|
+
for (typeof o == "boolean" && (c = o, o = arguments[1] || {}, s = 2), (o == null || typeof o != "object" && typeof o != "function") && (o = {}); s < l; ++s)
|
|
1929
|
+
if (r = arguments[s], r != null)
|
|
1930
|
+
for (t in r)
|
|
1931
|
+
n = sc(o, t), a = sc(r, t), o !== a && (c && a && (ac(a) || (u = uc(a))) ? (u ? (u = false, i = n && uc(n) ? n : []) : i = n && ac(n) ? n : {}, oc(o, { name: t, newValue: e(c, i, a) })) : typeof a < "u" && oc(o, { name: t, newValue: a }));
|
|
1932
|
+
return o;
|
|
1933
|
+
};
|
|
1934
|
+
});
|
|
1935
|
+
var pc = C((tC, Dc) => {
|
|
1936
|
+
Dc.exports = (e) => {
|
|
1937
|
+
if (Object.prototype.toString.call(e) !== "[object Object]")
|
|
1938
|
+
return false;
|
|
1939
|
+
let r = Object.getPrototypeOf(e);
|
|
1940
|
+
return r === null || r === Object.prototype;
|
|
1941
|
+
};
|
|
1942
|
+
});
|
|
1943
|
+
var dc = C((nC, hc) => {
|
|
1944
|
+
var j0 = [].slice;
|
|
1945
|
+
hc.exports = $0;
|
|
1946
|
+
function $0(e, r) {
|
|
1947
|
+
var t;
|
|
1948
|
+
return n;
|
|
1949
|
+
function n() {
|
|
1950
|
+
var i = j0.call(arguments, 0), o = e.length > i.length, s;
|
|
1951
|
+
o && i.push(a);
|
|
1952
|
+
try {
|
|
1953
|
+
s = e.apply(null, i);
|
|
1954
|
+
} catch (l) {
|
|
1955
|
+
if (o && t)
|
|
1956
|
+
throw l;
|
|
1957
|
+
return a(l);
|
|
1958
|
+
}
|
|
1959
|
+
o || (s && typeof s.then == "function" ? s.then(u, a) : s instanceof Error ? a(s) : u(s));
|
|
1960
|
+
}
|
|
1961
|
+
function a() {
|
|
1962
|
+
t || (t = true, r.apply(null, arguments));
|
|
1963
|
+
}
|
|
1964
|
+
function u(i) {
|
|
1965
|
+
a(null, i);
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
});
|
|
1969
|
+
var Ec = C((iC, vc) => {
|
|
1970
|
+
var Fc = dc();
|
|
1971
|
+
vc.exports = gc;
|
|
1972
|
+
gc.wrap = Fc;
|
|
1973
|
+
var mc = [].slice;
|
|
1974
|
+
function gc() {
|
|
1975
|
+
var e = [], r = {};
|
|
1976
|
+
return r.run = t, r.use = n, r;
|
|
1977
|
+
function t() {
|
|
1978
|
+
var a = -1, u = mc.call(arguments, 0, -1), i = arguments[arguments.length - 1];
|
|
1979
|
+
if (typeof i != "function")
|
|
1980
|
+
throw new Error("Expected function as last argument, not " + i);
|
|
1981
|
+
o.apply(null, [null].concat(u));
|
|
1982
|
+
function o(s) {
|
|
1983
|
+
var l = e[++a], c = mc.call(arguments, 0), f = c.slice(1), p = u.length, d = -1;
|
|
1984
|
+
if (s) {
|
|
1985
|
+
i(s);
|
|
1986
|
+
return;
|
|
1987
|
+
}
|
|
1988
|
+
for (; ++d < p; )
|
|
1989
|
+
(f[d] === null || f[d] === void 0) && (f[d] = u[d]);
|
|
1990
|
+
u = f, l ? Fc(l, o).apply(null, u) : i.apply(null, [null].concat(u));
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
function n(a) {
|
|
1994
|
+
if (typeof a != "function")
|
|
1995
|
+
throw new Error("Expected `fn` to be a function, not " + a);
|
|
1996
|
+
return e.push(a), r;
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
});
|
|
2000
|
+
var Ac = C((uC, yc) => {
|
|
2001
|
+
var er = {}.hasOwnProperty;
|
|
2002
|
+
yc.exports = W0;
|
|
2003
|
+
function W0(e) {
|
|
2004
|
+
return !e || typeof e != "object" ? "" : er.call(e, "position") || er.call(e, "type") ? Cc(e.position) : er.call(e, "start") || er.call(e, "end") ? Cc(e) : er.call(e, "line") || er.call(e, "column") ? _n(e) : "";
|
|
2005
|
+
}
|
|
2006
|
+
function _n(e) {
|
|
2007
|
+
return (!e || typeof e != "object") && (e = {}), bc(e.line) + ":" + bc(e.column);
|
|
2008
|
+
}
|
|
2009
|
+
function Cc(e) {
|
|
2010
|
+
return (!e || typeof e != "object") && (e = {}), _n(e.start) + "-" + _n(e.end);
|
|
2011
|
+
}
|
|
2012
|
+
function bc(e) {
|
|
2013
|
+
return e && typeof e == "number" ? e : 1;
|
|
2014
|
+
}
|
|
2015
|
+
});
|
|
2016
|
+
var kc = C((aC, xc) => {
|
|
2017
|
+
var H0 = Ac();
|
|
2018
|
+
xc.exports = Sn;
|
|
2019
|
+
function wc() {
|
|
2020
|
+
}
|
|
2021
|
+
wc.prototype = Error.prototype;
|
|
2022
|
+
Sn.prototype = new wc();
|
|
2023
|
+
var ke = Sn.prototype;
|
|
2024
|
+
ke.file = "";
|
|
2025
|
+
ke.name = "";
|
|
2026
|
+
ke.reason = "";
|
|
2027
|
+
ke.message = "";
|
|
2028
|
+
ke.stack = "";
|
|
2029
|
+
ke.fatal = null;
|
|
2030
|
+
ke.column = null;
|
|
2031
|
+
ke.line = null;
|
|
2032
|
+
function Sn(e, r, t) {
|
|
2033
|
+
var n, a, u;
|
|
2034
|
+
typeof r == "string" && (t = r, r = null), n = K0(t), a = H0(r) || "1:1", u = { start: { line: null, column: null }, end: { line: null, column: null } }, r && r.position && (r = r.position), r && (r.start ? (u = r, r = r.start) : u.start = r), e.stack && (this.stack = e.stack, e = e.message), this.message = e, this.name = a, this.reason = e, this.line = r ? r.line : null, this.column = r ? r.column : null, this.location = u, this.source = n[0], this.ruleId = n[1];
|
|
2035
|
+
}
|
|
2036
|
+
function K0(e) {
|
|
2037
|
+
var r = [null, null], t;
|
|
2038
|
+
return typeof e == "string" && (t = e.indexOf(":"), t === -1 ? r[1] = e : (r[0] = e.slice(0, t), r[1] = e.slice(t + 1))), r;
|
|
2039
|
+
}
|
|
2040
|
+
});
|
|
2041
|
+
var Bc = C((rr) => {
|
|
2042
|
+
rr.basename = J0;
|
|
2043
|
+
rr.dirname = X0;
|
|
2044
|
+
rr.extname = Q0;
|
|
2045
|
+
rr.join = Z0;
|
|
2046
|
+
rr.sep = "/";
|
|
2047
|
+
function J0(e, r) {
|
|
2048
|
+
var t = 0, n = -1, a, u, i, o;
|
|
2049
|
+
if (r !== void 0 && typeof r != "string")
|
|
2050
|
+
throw new TypeError('"ext" argument must be a string');
|
|
2051
|
+
if (wr(e), a = e.length, r === void 0 || !r.length || r.length > e.length) {
|
|
2052
|
+
for (; a--; )
|
|
2053
|
+
if (e.charCodeAt(a) === 47) {
|
|
2054
|
+
if (i) {
|
|
2055
|
+
t = a + 1;
|
|
2056
|
+
break;
|
|
2057
|
+
}
|
|
2058
|
+
} else
|
|
2059
|
+
n < 0 && (i = true, n = a + 1);
|
|
2060
|
+
return n < 0 ? "" : e.slice(t, n);
|
|
2061
|
+
}
|
|
2062
|
+
if (r === e)
|
|
2063
|
+
return "";
|
|
2064
|
+
for (u = -1, o = r.length - 1; a--; )
|
|
2065
|
+
if (e.charCodeAt(a) === 47) {
|
|
2066
|
+
if (i) {
|
|
2067
|
+
t = a + 1;
|
|
2068
|
+
break;
|
|
2069
|
+
}
|
|
2070
|
+
} else
|
|
2071
|
+
u < 0 && (i = true, u = a + 1), o > -1 && (e.charCodeAt(a) === r.charCodeAt(o--) ? o < 0 && (n = a) : (o = -1, n = u));
|
|
2072
|
+
return t === n ? n = u : n < 0 && (n = e.length), e.slice(t, n);
|
|
2073
|
+
}
|
|
2074
|
+
function X0(e) {
|
|
2075
|
+
var r, t, n;
|
|
2076
|
+
if (wr(e), !e.length)
|
|
2077
|
+
return ".";
|
|
2078
|
+
for (r = -1, n = e.length; --n; )
|
|
2079
|
+
if (e.charCodeAt(n) === 47) {
|
|
2080
|
+
if (t) {
|
|
2081
|
+
r = n;
|
|
2082
|
+
break;
|
|
2083
|
+
}
|
|
2084
|
+
} else
|
|
2085
|
+
t || (t = true);
|
|
2086
|
+
return r < 0 ? e.charCodeAt(0) === 47 ? "/" : "." : r === 1 && e.charCodeAt(0) === 47 ? "//" : e.slice(0, r);
|
|
2087
|
+
}
|
|
2088
|
+
function Q0(e) {
|
|
2089
|
+
var r = -1, t = 0, n = -1, a = 0, u, i, o;
|
|
2090
|
+
for (wr(e), o = e.length; o--; ) {
|
|
2091
|
+
if (i = e.charCodeAt(o), i === 47) {
|
|
2092
|
+
if (u) {
|
|
2093
|
+
t = o + 1;
|
|
2094
|
+
break;
|
|
2095
|
+
}
|
|
2096
|
+
continue;
|
|
2097
|
+
}
|
|
2098
|
+
n < 0 && (u = true, n = o + 1), i === 46 ? r < 0 ? r = o : a !== 1 && (a = 1) : r > -1 && (a = -1);
|
|
2099
|
+
}
|
|
2100
|
+
return r < 0 || n < 0 || a === 0 || a === 1 && r === n - 1 && r === t + 1 ? "" : e.slice(r, n);
|
|
2101
|
+
}
|
|
2102
|
+
function Z0() {
|
|
2103
|
+
for (var e = -1, r; ++e < arguments.length; )
|
|
2104
|
+
wr(arguments[e]), arguments[e] && (r = r === void 0 ? arguments[e] : r + "/" + arguments[e]);
|
|
2105
|
+
return r === void 0 ? "." : em(r);
|
|
2106
|
+
}
|
|
2107
|
+
function em(e) {
|
|
2108
|
+
var r, t;
|
|
2109
|
+
return wr(e), r = e.charCodeAt(0) === 47, t = rm(e, !r), !t.length && !r && (t = "."), t.length && e.charCodeAt(e.length - 1) === 47 && (t += "/"), r ? "/" + t : t;
|
|
2110
|
+
}
|
|
2111
|
+
function rm(e, r) {
|
|
2112
|
+
for (var t = "", n = 0, a = -1, u = 0, i = -1, o, s; ++i <= e.length; ) {
|
|
2113
|
+
if (i < e.length)
|
|
2114
|
+
o = e.charCodeAt(i);
|
|
2115
|
+
else {
|
|
2116
|
+
if (o === 47)
|
|
2117
|
+
break;
|
|
2118
|
+
o = 47;
|
|
2119
|
+
}
|
|
2120
|
+
if (o === 47) {
|
|
2121
|
+
if (!(a === i - 1 || u === 1))
|
|
2122
|
+
if (a !== i - 1 && u === 2) {
|
|
2123
|
+
if (t.length < 2 || n !== 2 || t.charCodeAt(t.length - 1) !== 46 || t.charCodeAt(t.length - 2) !== 46) {
|
|
2124
|
+
if (t.length > 2) {
|
|
2125
|
+
if (s = t.lastIndexOf("/"), s !== t.length - 1) {
|
|
2126
|
+
s < 0 ? (t = "", n = 0) : (t = t.slice(0, s), n = t.length - 1 - t.lastIndexOf("/")), a = i, u = 0;
|
|
2127
|
+
continue;
|
|
2128
|
+
}
|
|
2129
|
+
} else if (t.length) {
|
|
2130
|
+
t = "", n = 0, a = i, u = 0;
|
|
2131
|
+
continue;
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
r && (t = t.length ? t + "/.." : "..", n = 2);
|
|
2135
|
+
} else
|
|
2136
|
+
t.length ? t += "/" + e.slice(a + 1, i) : t = e.slice(a + 1, i), n = i - a - 1;
|
|
2137
|
+
a = i, u = 0;
|
|
2138
|
+
} else
|
|
2139
|
+
o === 46 && u > -1 ? u++ : u = -1;
|
|
2140
|
+
}
|
|
2141
|
+
return t;
|
|
2142
|
+
}
|
|
2143
|
+
function wr(e) {
|
|
2144
|
+
if (typeof e != "string")
|
|
2145
|
+
throw new TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
2146
|
+
}
|
|
2147
|
+
});
|
|
2148
|
+
var qc = C((Tc) => {
|
|
2149
|
+
Tc.cwd = tm;
|
|
2150
|
+
function tm() {
|
|
2151
|
+
return "/";
|
|
2152
|
+
}
|
|
2153
|
+
});
|
|
2154
|
+
var Oc = C((cC, Sc) => {
|
|
2155
|
+
var se = Bc(), nm = qc(), im = qn();
|
|
2156
|
+
Sc.exports = ge;
|
|
2157
|
+
var um = {}.hasOwnProperty, On = ["history", "path", "basename", "stem", "extname", "dirname"];
|
|
2158
|
+
ge.prototype.toString = mm;
|
|
2159
|
+
Object.defineProperty(ge.prototype, "path", { get: am, set: om });
|
|
2160
|
+
Object.defineProperty(ge.prototype, "dirname", { get: sm, set: cm });
|
|
2161
|
+
Object.defineProperty(ge.prototype, "basename", { get: lm, set: fm });
|
|
2162
|
+
Object.defineProperty(ge.prototype, "extname", { get: Dm, set: pm });
|
|
2163
|
+
Object.defineProperty(ge.prototype, "stem", { get: hm, set: dm });
|
|
2164
|
+
function ge(e) {
|
|
2165
|
+
var r, t;
|
|
2166
|
+
if (!e)
|
|
2167
|
+
e = {};
|
|
2168
|
+
else if (typeof e == "string" || im(e))
|
|
2169
|
+
e = { contents: e };
|
|
2170
|
+
else if ("message" in e && "messages" in e)
|
|
2171
|
+
return e;
|
|
2172
|
+
if (!(this instanceof ge))
|
|
2173
|
+
return new ge(e);
|
|
2174
|
+
for (this.data = {}, this.messages = [], this.history = [], this.cwd = nm.cwd(), t = -1; ++t < On.length; )
|
|
2175
|
+
r = On[t], um.call(e, r) && (this[r] = e[r]);
|
|
2176
|
+
for (r in e)
|
|
2177
|
+
On.indexOf(r) < 0 && (this[r] = e[r]);
|
|
2178
|
+
}
|
|
2179
|
+
function am() {
|
|
2180
|
+
return this.history[this.history.length - 1];
|
|
2181
|
+
}
|
|
2182
|
+
function om(e) {
|
|
2183
|
+
Pn(e, "path"), this.path !== e && this.history.push(e);
|
|
2184
|
+
}
|
|
2185
|
+
function sm() {
|
|
2186
|
+
return typeof this.path == "string" ? se.dirname(this.path) : void 0;
|
|
2187
|
+
}
|
|
2188
|
+
function cm(e) {
|
|
2189
|
+
_c(this.path, "dirname"), this.path = se.join(e || "", this.basename);
|
|
2190
|
+
}
|
|
2191
|
+
function lm() {
|
|
2192
|
+
return typeof this.path == "string" ? se.basename(this.path) : void 0;
|
|
2193
|
+
}
|
|
2194
|
+
function fm(e) {
|
|
2195
|
+
Pn(e, "basename"), Ln(e, "basename"), this.path = se.join(this.dirname || "", e);
|
|
2196
|
+
}
|
|
2197
|
+
function Dm() {
|
|
2198
|
+
return typeof this.path == "string" ? se.extname(this.path) : void 0;
|
|
2199
|
+
}
|
|
2200
|
+
function pm(e) {
|
|
2201
|
+
if (Ln(e, "extname"), _c(this.path, "extname"), e) {
|
|
2202
|
+
if (e.charCodeAt(0) !== 46)
|
|
2203
|
+
throw new Error("`extname` must start with `.`");
|
|
2204
|
+
if (e.indexOf(".", 1) > -1)
|
|
2205
|
+
throw new Error("`extname` cannot contain multiple dots");
|
|
2206
|
+
}
|
|
2207
|
+
this.path = se.join(this.dirname, this.stem + (e || ""));
|
|
2208
|
+
}
|
|
2209
|
+
function hm() {
|
|
2210
|
+
return typeof this.path == "string" ? se.basename(this.path, this.extname) : void 0;
|
|
2211
|
+
}
|
|
2212
|
+
function dm(e) {
|
|
2213
|
+
Pn(e, "stem"), Ln(e, "stem"), this.path = se.join(this.dirname || "", e + (this.extname || ""));
|
|
2214
|
+
}
|
|
2215
|
+
function mm(e) {
|
|
2216
|
+
return (this.contents || "").toString(e);
|
|
2217
|
+
}
|
|
2218
|
+
function Ln(e, r) {
|
|
2219
|
+
if (e && e.indexOf(se.sep) > -1)
|
|
2220
|
+
throw new Error("`" + r + "` cannot be a path: did not expect `" + se.sep + "`");
|
|
2221
|
+
}
|
|
2222
|
+
function Pn(e, r) {
|
|
2223
|
+
if (!e)
|
|
2224
|
+
throw new Error("`" + r + "` cannot be empty");
|
|
2225
|
+
}
|
|
2226
|
+
function _c(e, r) {
|
|
2227
|
+
if (!e)
|
|
2228
|
+
throw new Error("Setting `" + r + "` requires `path` to be set too");
|
|
2229
|
+
}
|
|
2230
|
+
});
|
|
2231
|
+
var Pc = C((lC, Lc) => {
|
|
2232
|
+
var Fm = kc(), ct = Oc();
|
|
2233
|
+
Lc.exports = ct;
|
|
2234
|
+
ct.prototype.message = gm;
|
|
2235
|
+
ct.prototype.info = Em;
|
|
2236
|
+
ct.prototype.fail = vm;
|
|
2237
|
+
function gm(e, r, t) {
|
|
2238
|
+
var n = new Fm(e, r, t);
|
|
2239
|
+
return this.path && (n.name = this.path + ":" + n.name, n.file = this.path), n.fatal = false, this.messages.push(n), n;
|
|
2240
|
+
}
|
|
2241
|
+
function vm() {
|
|
2242
|
+
var e = this.message.apply(this, arguments);
|
|
2243
|
+
throw e.fatal = true, e;
|
|
2244
|
+
}
|
|
2245
|
+
function Em() {
|
|
2246
|
+
var e = this.message.apply(this, arguments);
|
|
2247
|
+
return e.fatal = null, e;
|
|
2248
|
+
}
|
|
2249
|
+
});
|
|
2250
|
+
var Nc = C((fC, Ic) => {
|
|
2251
|
+
Ic.exports = Pc();
|
|
2252
|
+
});
|
|
2253
|
+
var $c = C((DC, jc) => {
|
|
2254
|
+
var Rc = rc(), Cm = qn(), lt = fc(), Uc = pc(), Gc = Ec(), xr = Nc();
|
|
2255
|
+
jc.exports = Vc().freeze();
|
|
2256
|
+
var bm = [].slice, ym = {}.hasOwnProperty, Am = Gc().use(wm).use(xm).use(km);
|
|
2257
|
+
function wm(e, r) {
|
|
2258
|
+
r.tree = e.parse(r.file);
|
|
2259
|
+
}
|
|
2260
|
+
function xm(e, r, t) {
|
|
2261
|
+
e.run(r.tree, r.file, n);
|
|
2262
|
+
function n(a, u, i) {
|
|
2263
|
+
a ? t(a) : (r.tree = u, r.file = i, t());
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
function km(e, r) {
|
|
2267
|
+
var t = e.stringify(r.tree, r.file);
|
|
2268
|
+
t == null || (typeof t == "string" || Cm(t) ? ("value" in r.file && (r.file.value = t), r.file.contents = t) : r.file.result = t);
|
|
2269
|
+
}
|
|
2270
|
+
function Vc() {
|
|
2271
|
+
var e = [], r = Gc(), t = {}, n = -1, a;
|
|
2272
|
+
return u.data = o, u.freeze = i, u.attachers = e, u.use = s, u.parse = c, u.stringify = d, u.run = f, u.runSync = p, u.process = D, u.processSync = h, u;
|
|
2273
|
+
function u() {
|
|
2274
|
+
for (var m = Vc(), F = -1; ++F < e.length; )
|
|
2275
|
+
m.use.apply(null, e[F]);
|
|
2276
|
+
return m.data(lt(true, {}, t)), m;
|
|
2277
|
+
}
|
|
2278
|
+
function i() {
|
|
2279
|
+
var m, F;
|
|
2280
|
+
if (a)
|
|
2281
|
+
return u;
|
|
2282
|
+
for (; ++n < e.length; )
|
|
2283
|
+
m = e[n], m[1] !== false && (m[1] === true && (m[1] = void 0), F = m[0].apply(u, m.slice(1)), typeof F == "function" && r.use(F));
|
|
2284
|
+
return a = true, n = 1 / 0, u;
|
|
2285
|
+
}
|
|
2286
|
+
function o(m, F) {
|
|
2287
|
+
return typeof m == "string" ? arguments.length === 2 ? (Rn("data", a), t[m] = F, u) : ym.call(t, m) && t[m] || null : m ? (Rn("data", a), t = m, u) : t;
|
|
2288
|
+
}
|
|
2289
|
+
function s(m) {
|
|
2290
|
+
var F;
|
|
2291
|
+
if (Rn("use", a), m != null)
|
|
2292
|
+
if (typeof m == "function")
|
|
2293
|
+
b.apply(null, arguments);
|
|
2294
|
+
else if (typeof m == "object")
|
|
2295
|
+
"length" in m ? B(m) : y(m);
|
|
2296
|
+
else
|
|
2297
|
+
throw new Error("Expected usable value, not `" + m + "`");
|
|
2298
|
+
return F && (t.settings = lt(t.settings || {}, F)), u;
|
|
2299
|
+
function y(g) {
|
|
2300
|
+
B(g.plugins), g.settings && (F = lt(F || {}, g.settings));
|
|
2301
|
+
}
|
|
2302
|
+
function E(g) {
|
|
2303
|
+
if (typeof g == "function")
|
|
2304
|
+
b(g);
|
|
2305
|
+
else if (typeof g == "object")
|
|
2306
|
+
"length" in g ? b.apply(null, g) : y(g);
|
|
2307
|
+
else
|
|
2308
|
+
throw new Error("Expected usable value, not `" + g + "`");
|
|
2309
|
+
}
|
|
2310
|
+
function B(g) {
|
|
2311
|
+
var A = -1;
|
|
2312
|
+
if (g != null)
|
|
2313
|
+
if (typeof g == "object" && "length" in g)
|
|
2314
|
+
for (; ++A < g.length; )
|
|
2315
|
+
E(g[A]);
|
|
2316
|
+
else
|
|
2317
|
+
throw new Error("Expected a list of plugins, not `" + g + "`");
|
|
2318
|
+
}
|
|
2319
|
+
function b(g, A) {
|
|
2320
|
+
var w = l(g);
|
|
2321
|
+
w ? (Uc(w[1]) && Uc(A) && (A = lt(true, w[1], A)), w[1] = A) : e.push(bm.call(arguments));
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
function l(m) {
|
|
2325
|
+
for (var F = -1; ++F < e.length; )
|
|
2326
|
+
if (e[F][0] === m)
|
|
2327
|
+
return e[F];
|
|
2328
|
+
}
|
|
2329
|
+
function c(m) {
|
|
2330
|
+
var F = xr(m), y;
|
|
2331
|
+
return i(), y = u.Parser, In("parse", y), Mc(y, "parse") ? new y(String(F), F).parse() : y(String(F), F);
|
|
2332
|
+
}
|
|
2333
|
+
function f(m, F, y) {
|
|
2334
|
+
if (zc(m), i(), !y && typeof F == "function" && (y = F, F = null), !y)
|
|
2335
|
+
return new Promise(E);
|
|
2336
|
+
E(null, y);
|
|
2337
|
+
function E(B, b) {
|
|
2338
|
+
r.run(m, xr(F), g);
|
|
2339
|
+
function g(A, w, v) {
|
|
2340
|
+
w = w || m, A ? b(A) : B ? B(w) : y(null, w, v);
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
function p(m, F) {
|
|
2345
|
+
var y, E;
|
|
2346
|
+
return f(m, F, B), Yc("runSync", "run", E), y;
|
|
2347
|
+
function B(b, g) {
|
|
2348
|
+
E = true, y = g, Rc(b);
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
function d(m, F) {
|
|
2352
|
+
var y = xr(F), E;
|
|
2353
|
+
return i(), E = u.Compiler, Nn("stringify", E), zc(m), Mc(E, "compile") ? new E(m, y).compile() : E(m, y);
|
|
2354
|
+
}
|
|
2355
|
+
function D(m, F) {
|
|
2356
|
+
if (i(), In("process", u.Parser), Nn("process", u.Compiler), !F)
|
|
2357
|
+
return new Promise(y);
|
|
2358
|
+
y(null, F);
|
|
2359
|
+
function y(E, B) {
|
|
2360
|
+
var b = xr(m);
|
|
2361
|
+
Am.run(u, { file: b }, g);
|
|
2362
|
+
function g(A) {
|
|
2363
|
+
A ? B(A) : E ? E(b) : F(null, b);
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
function h(m) {
|
|
2368
|
+
var F, y;
|
|
2369
|
+
return i(), In("processSync", u.Parser), Nn("processSync", u.Compiler), F = xr(m), D(F, E), Yc("processSync", "process", y), F;
|
|
2370
|
+
function E(B) {
|
|
2371
|
+
y = true, Rc(B);
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
function Mc(e, r) {
|
|
2376
|
+
return typeof e == "function" && e.prototype && (Bm(e.prototype) || r in e.prototype);
|
|
2377
|
+
}
|
|
2378
|
+
function Bm(e) {
|
|
2379
|
+
var r;
|
|
2380
|
+
for (r in e)
|
|
2381
|
+
return true;
|
|
2382
|
+
return false;
|
|
2383
|
+
}
|
|
2384
|
+
function In(e, r) {
|
|
2385
|
+
if (typeof r != "function")
|
|
2386
|
+
throw new Error("Cannot `" + e + "` without `Parser`");
|
|
2387
|
+
}
|
|
2388
|
+
function Nn(e, r) {
|
|
2389
|
+
if (typeof r != "function")
|
|
2390
|
+
throw new Error("Cannot `" + e + "` without `Compiler`");
|
|
2391
|
+
}
|
|
2392
|
+
function Rn(e, r) {
|
|
2393
|
+
if (r)
|
|
2394
|
+
throw new Error("Cannot invoke `" + e + "` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.");
|
|
2395
|
+
}
|
|
2396
|
+
function zc(e) {
|
|
2397
|
+
if (!e || typeof e.type != "string")
|
|
2398
|
+
throw new Error("Expected node, got `" + e + "`");
|
|
2399
|
+
}
|
|
2400
|
+
function Yc(e, r, t) {
|
|
2401
|
+
if (!t)
|
|
2402
|
+
throw new Error("`" + e + "` finished async. Use `" + r + "` instead");
|
|
2403
|
+
}
|
|
2404
|
+
});
|
|
2405
|
+
var zn = {};
|
|
2406
|
+
Gn(zn, { languages: () => zi, options: () => Yi, parsers: () => Mn, printers: () => Um });
|
|
2407
|
+
var ml = (e, r, t, n) => {
|
|
2408
|
+
if (!(e && r == null))
|
|
2409
|
+
return r.replaceAll ? r.replaceAll(t, n) : t.global ? r.replace(t, n) : r.split(t).join(n);
|
|
2410
|
+
}, N = ml;
|
|
2411
|
+
var Fl = (e, r, t) => {
|
|
2412
|
+
if (!(e && r == null))
|
|
2413
|
+
return Array.isArray(r) || typeof r == "string" ? r[t < 0 ? r.length + t : t] : r.at(t);
|
|
2414
|
+
}, z = Fl;
|
|
2415
|
+
var Ui = Ue(kr(), 1);
|
|
2416
|
+
function le(e) {
|
|
2417
|
+
if (typeof e != "string")
|
|
2418
|
+
throw new TypeError("Expected a string");
|
|
2419
|
+
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
2420
|
+
}
|
|
2421
|
+
var G = "string", H = "array", Ce = "cursor", re = "indent", te = "align", fe = "trim", J = "group", X = "fill", K = "if-break", De = "indent-if-break", pe = "line-suffix", he = "line-suffix-boundary", V = "line", de = "label", ne = "break-parent", Br = /* @__PURE__ */ new Set([Ce, re, te, fe, J, X, K, De, pe, he, V, de, ne]);
|
|
2422
|
+
function vl(e) {
|
|
2423
|
+
if (typeof e == "string")
|
|
2424
|
+
return G;
|
|
2425
|
+
if (Array.isArray(e))
|
|
2426
|
+
return H;
|
|
2427
|
+
if (!e)
|
|
2428
|
+
return;
|
|
2429
|
+
let { type: r } = e;
|
|
2430
|
+
if (Br.has(r))
|
|
2431
|
+
return r;
|
|
2432
|
+
}
|
|
2433
|
+
var Y = vl;
|
|
2434
|
+
var El = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
|
|
2435
|
+
function Cl(e) {
|
|
2436
|
+
let r = e === null ? "null" : typeof e;
|
|
2437
|
+
if (r !== "string" && r !== "object")
|
|
2438
|
+
return `Unexpected doc '${r}',
|
|
2439
|
+
Expected it to be 'string' or 'object'.`;
|
|
2440
|
+
if (Y(e))
|
|
2441
|
+
throw new Error("doc is valid.");
|
|
2442
|
+
let t = Object.prototype.toString.call(e);
|
|
2443
|
+
if (t !== "[object Object]")
|
|
2444
|
+
return `Unexpected doc '${t}'.`;
|
|
2445
|
+
let n = El([...Br].map((a) => `'${a}'`));
|
|
2446
|
+
return `Unexpected doc.type '${e.type}'.
|
|
2447
|
+
Expected it to be ${n}.`;
|
|
2448
|
+
}
|
|
2449
|
+
var pt = class extends Error {
|
|
2450
|
+
constructor(r) {
|
|
2451
|
+
super(Cl(r));
|
|
2452
|
+
__publicField(this, "name", "InvalidDocError");
|
|
2453
|
+
this.doc = r;
|
|
2454
|
+
}
|
|
2455
|
+
}, Te = pt;
|
|
2456
|
+
var Hn = {};
|
|
2457
|
+
function bl(e, r, t, n) {
|
|
2458
|
+
let a = [e];
|
|
2459
|
+
for (; a.length > 0; ) {
|
|
2460
|
+
let u = a.pop();
|
|
2461
|
+
if (u === Hn) {
|
|
2462
|
+
t(a.pop());
|
|
2463
|
+
continue;
|
|
2464
|
+
}
|
|
2465
|
+
t && a.push(u, Hn);
|
|
2466
|
+
let i = Y(u);
|
|
2467
|
+
if (!i)
|
|
2468
|
+
throw new Te(u);
|
|
2469
|
+
if ((r == null ? void 0 : r(u)) !== false)
|
|
2470
|
+
switch (i) {
|
|
2471
|
+
case H:
|
|
2472
|
+
case X: {
|
|
2473
|
+
let o = i === H ? u : u.parts;
|
|
2474
|
+
for (let s = o.length, l = s - 1; l >= 0; --l)
|
|
2475
|
+
a.push(o[l]);
|
|
2476
|
+
break;
|
|
2477
|
+
}
|
|
2478
|
+
case K:
|
|
2479
|
+
a.push(u.flatContents, u.breakContents);
|
|
2480
|
+
break;
|
|
2481
|
+
case J:
|
|
2482
|
+
if (n && u.expandedStates)
|
|
2483
|
+
for (let o = u.expandedStates.length, s = o - 1; s >= 0; --s)
|
|
2484
|
+
a.push(u.expandedStates[s]);
|
|
2485
|
+
else
|
|
2486
|
+
a.push(u.contents);
|
|
2487
|
+
break;
|
|
2488
|
+
case te:
|
|
2489
|
+
case re:
|
|
2490
|
+
case De:
|
|
2491
|
+
case de:
|
|
2492
|
+
case pe:
|
|
2493
|
+
a.push(u.contents);
|
|
2494
|
+
break;
|
|
2495
|
+
case G:
|
|
2496
|
+
case Ce:
|
|
2497
|
+
case fe:
|
|
2498
|
+
case he:
|
|
2499
|
+
case V:
|
|
2500
|
+
case ne:
|
|
2501
|
+
break;
|
|
2502
|
+
default:
|
|
2503
|
+
throw new Te(u);
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
var ht = bl;
|
|
2508
|
+
function yl(e, r) {
|
|
2509
|
+
if (typeof e == "string")
|
|
2510
|
+
return r(e);
|
|
2511
|
+
let t = /* @__PURE__ */ new Map();
|
|
2512
|
+
return n(e);
|
|
2513
|
+
function n(u) {
|
|
2514
|
+
if (t.has(u))
|
|
2515
|
+
return t.get(u);
|
|
2516
|
+
let i = a(u);
|
|
2517
|
+
return t.set(u, i), i;
|
|
2518
|
+
}
|
|
2519
|
+
function a(u) {
|
|
2520
|
+
switch (Y(u)) {
|
|
2521
|
+
case H:
|
|
2522
|
+
return r(u.map(n));
|
|
2523
|
+
case X:
|
|
2524
|
+
return r({ ...u, parts: u.parts.map(n) });
|
|
2525
|
+
case K:
|
|
2526
|
+
return r({ ...u, breakContents: n(u.breakContents), flatContents: n(u.flatContents) });
|
|
2527
|
+
case J: {
|
|
2528
|
+
let { expandedStates: i, contents: o } = u;
|
|
2529
|
+
return i ? (i = i.map(n), o = i[0]) : o = n(o), r({ ...u, contents: o, expandedStates: i });
|
|
2530
|
+
}
|
|
2531
|
+
case te:
|
|
2532
|
+
case re:
|
|
2533
|
+
case De:
|
|
2534
|
+
case de:
|
|
2535
|
+
case pe:
|
|
2536
|
+
return r({ ...u, contents: n(u.contents) });
|
|
2537
|
+
case G:
|
|
2538
|
+
case Ce:
|
|
2539
|
+
case fe:
|
|
2540
|
+
case he:
|
|
2541
|
+
case V:
|
|
2542
|
+
case ne:
|
|
2543
|
+
return r(u);
|
|
2544
|
+
default:
|
|
2545
|
+
throw new Te(u);
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
function Kn(e) {
|
|
2550
|
+
if (e.length > 0) {
|
|
2551
|
+
let r = z(false, e, -1);
|
|
2552
|
+
!r.expandedStates && !r.break && (r.break = "propagated");
|
|
2553
|
+
}
|
|
2554
|
+
return null;
|
|
2555
|
+
}
|
|
2556
|
+
function Jn(e) {
|
|
2557
|
+
let r = /* @__PURE__ */ new Set(), t = [];
|
|
2558
|
+
function n(u) {
|
|
2559
|
+
if (u.type === ne && Kn(t), u.type === J) {
|
|
2560
|
+
if (t.push(u), r.has(u))
|
|
2561
|
+
return false;
|
|
2562
|
+
r.add(u);
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
function a(u) {
|
|
2566
|
+
u.type === J && t.pop().break && Kn(t);
|
|
2567
|
+
}
|
|
2568
|
+
ht(e, n, a, true);
|
|
2569
|
+
}
|
|
2570
|
+
function be(e, r = tr) {
|
|
2571
|
+
return yl(e, (t) => typeof t == "string" ? Tr(r, t.split(`
|
|
2572
|
+
`)) : t);
|
|
2573
|
+
}
|
|
2574
|
+
var dt = () => {
|
|
2575
|
+
}, mt = dt;
|
|
2576
|
+
function nr(e) {
|
|
2577
|
+
return { type: re, contents: e };
|
|
2578
|
+
}
|
|
2579
|
+
function ye(e, r) {
|
|
2580
|
+
return { type: te, contents: r, n: e };
|
|
2581
|
+
}
|
|
2582
|
+
function Me(e, r = {}) {
|
|
2583
|
+
return mt(r.expandedStates), { type: J, id: r.id, contents: e, break: !!r.shouldBreak, expandedStates: r.expandedStates };
|
|
2584
|
+
}
|
|
2585
|
+
function _e(e) {
|
|
2586
|
+
return ye({ type: "root" }, e);
|
|
2587
|
+
}
|
|
2588
|
+
function ze(e) {
|
|
2589
|
+
return { type: X, parts: e };
|
|
2590
|
+
}
|
|
2591
|
+
function Qn(e, r = "", t = {}) {
|
|
2592
|
+
return { type: K, breakContents: e, flatContents: r, groupId: t.groupId };
|
|
2593
|
+
}
|
|
2594
|
+
var ir = { type: ne };
|
|
2595
|
+
var ur = { type: V, hard: true }, Al = { type: V, hard: true, literal: true }, qr = { type: V }, _r = { type: V, soft: true }, P = [ur, ir], tr = [Al, ir];
|
|
2596
|
+
function Tr(e, r) {
|
|
2597
|
+
let t = [];
|
|
2598
|
+
for (let n = 0; n < r.length; n++)
|
|
2599
|
+
n !== 0 && t.push(e), t.push(r[n]);
|
|
2600
|
+
return t;
|
|
2601
|
+
}
|
|
2602
|
+
function wl(e, r) {
|
|
2603
|
+
let t = e.match(new RegExp(`(${le(r)})+`, "gu"));
|
|
2604
|
+
return t === null ? 0 : t.reduce((n, a) => Math.max(n, a.length / r.length), 0);
|
|
2605
|
+
}
|
|
2606
|
+
var Sr = wl;
|
|
2607
|
+
function xl(e, r) {
|
|
2608
|
+
let t = e.match(new RegExp(`(${le(r)})+`, "gu"));
|
|
2609
|
+
if (t === null)
|
|
2610
|
+
return 0;
|
|
2611
|
+
let n = /* @__PURE__ */ new Map(), a = 0;
|
|
2612
|
+
for (let u of t) {
|
|
2613
|
+
let i = u.length / r.length;
|
|
2614
|
+
n.set(i, true), i > a && (a = i);
|
|
2615
|
+
}
|
|
2616
|
+
for (let u = 1; u < a; u++)
|
|
2617
|
+
if (!n.get(u))
|
|
2618
|
+
return u;
|
|
2619
|
+
return a + 1;
|
|
2620
|
+
}
|
|
2621
|
+
var Zn = xl;
|
|
2622
|
+
var Or = "'", ei = '"';
|
|
2623
|
+
function kl(e, r) {
|
|
2624
|
+
let t = r === true || r === Or ? Or : ei, n = t === Or ? ei : Or, a = 0, u = 0;
|
|
2625
|
+
for (let i of e)
|
|
2626
|
+
i === t ? a++ : i === n && u++;
|
|
2627
|
+
return a > u ? n : t;
|
|
2628
|
+
}
|
|
2629
|
+
var ri = kl;
|
|
2630
|
+
var Ft = class extends Error {
|
|
2631
|
+
constructor(r, t, n = "type") {
|
|
2632
|
+
super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`);
|
|
2633
|
+
__publicField(this, "name", "UnexpectedNodeError");
|
|
2634
|
+
this.node = r;
|
|
2635
|
+
}
|
|
2636
|
+
}, ti = Ft;
|
|
2637
|
+
var oi = Ue(kr(), 1);
|
|
2638
|
+
function Bl(e) {
|
|
2639
|
+
return (e == null ? void 0 : e.type) === "front-matter";
|
|
2640
|
+
}
|
|
2641
|
+
var ni = Bl;
|
|
2642
|
+
var ar = 3;
|
|
2643
|
+
function Tl(e) {
|
|
2644
|
+
let r = e.slice(0, ar);
|
|
2645
|
+
if (r !== "---" && r !== "+++")
|
|
2646
|
+
return;
|
|
2647
|
+
let t = e.indexOf(`
|
|
2648
|
+
`, ar);
|
|
2649
|
+
if (t === -1)
|
|
2650
|
+
return;
|
|
2651
|
+
let n = e.slice(ar, t).trim(), a = e.indexOf(`
|
|
2652
|
+
${r}`, t), u = n;
|
|
2653
|
+
if (u || (u = r === "+++" ? "toml" : "yaml"), a === -1 && r === "---" && u === "yaml" && (a = e.indexOf(`
|
|
2654
|
+
...`, t)), a === -1)
|
|
2655
|
+
return;
|
|
2656
|
+
let i = a + 1 + ar, o = e.charAt(i + 1);
|
|
2657
|
+
if (!/\s?/u.test(o))
|
|
2658
|
+
return;
|
|
2659
|
+
let s = e.slice(0, i);
|
|
2660
|
+
return { type: "front-matter", language: u, explicitLanguage: n, value: e.slice(t + 1, a), startDelimiter: r, endDelimiter: s.slice(-ar), raw: s };
|
|
2661
|
+
}
|
|
2662
|
+
function ql(e) {
|
|
2663
|
+
let r = Tl(e);
|
|
2664
|
+
if (!r)
|
|
2665
|
+
return { content: e };
|
|
2666
|
+
let { raw: t } = r;
|
|
2667
|
+
return { frontMatter: r, content: N(false, t, /[^\n]/gu, " ") + e.slice(t.length) };
|
|
2668
|
+
}
|
|
2669
|
+
var or = ql;
|
|
2670
|
+
var ii = ["format", "prettier"];
|
|
2671
|
+
function gt(e) {
|
|
2672
|
+
let r = `@(${ii.join("|")})`, t = new RegExp([`<!--\\s*${r}\\s*-->`, `\\{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*\\}`, `<!--.*\r?
|
|
2673
|
+
[\\s\\S]*(^|
|
|
2674
|
+
)[^\\S
|
|
2675
|
+
]*${r}[^\\S
|
|
2676
|
+
]*($|
|
|
2677
|
+
)[\\s\\S]*
|
|
2678
|
+
.*-->`].join("|"), "mu"), n = e.match(t);
|
|
2679
|
+
return (n == null ? void 0 : n.index) === 0;
|
|
2680
|
+
}
|
|
2681
|
+
var ui = (e) => gt(or(e).content.trimStart()), ai = (e) => {
|
|
2682
|
+
let r = or(e), t = `<!-- @${ii[0]} -->`;
|
|
2683
|
+
return r.frontMatter ? `${r.frontMatter.raw}
|
|
2684
|
+
|
|
2685
|
+
${t}
|
|
2686
|
+
|
|
2687
|
+
${r.content}` : `${t}
|
|
2688
|
+
|
|
2689
|
+
${r.content}`;
|
|
2690
|
+
};
|
|
2691
|
+
var _l = /* @__PURE__ */ new Set(["position", "raw"]);
|
|
2692
|
+
function si(e, r, t) {
|
|
2693
|
+
if ((e.type === "front-matter" || e.type === "code" || e.type === "yaml" || e.type === "import" || e.type === "export" || e.type === "jsx") && delete r.value, e.type === "list" && delete r.isAligned, (e.type === "list" || e.type === "listItem") && delete r.spread, e.type === "text")
|
|
2694
|
+
return null;
|
|
2695
|
+
if (e.type === "inlineCode" && (r.value = N(false, e.value, `
|
|
2696
|
+
`, " ")), e.type === "wikiLink" && (r.value = N(false, e.value.trim(), /[\t\n]+/gu, " ")), (e.type === "definition" || e.type === "linkReference" || e.type === "imageReference") && (r.label = (0, oi.default)(e.label)), (e.type === "link" || e.type === "image") && e.url && e.url.includes("("))
|
|
2697
|
+
for (let n of "<>")
|
|
2698
|
+
r.url = N(false, e.url, n, encodeURIComponent(n));
|
|
2699
|
+
if ((e.type === "definition" || e.type === "link" || e.type === "image") && e.title && (r.title = N(false, e.title, /\\(?=["')])/gu, "")), (t == null ? void 0 : t.type) === "root" && t.children.length > 0 && (t.children[0] === e || ni(t.children[0]) && t.children[1] === e) && e.type === "html" && gt(e.value))
|
|
2700
|
+
return null;
|
|
2701
|
+
}
|
|
2702
|
+
si.ignoredProperties = _l;
|
|
2703
|
+
var ci = si;
|
|
2704
|
+
var li = /(?:[\u{2ea}-\u{2eb}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b739}\u{2b740}-\u{2b81d}\u{2b820}-\u{2cea1}\u{2ceb0}-\u{2ebe0}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{323af}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u, Se = /(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;
|
|
2705
|
+
async function Sl(e, r) {
|
|
2706
|
+
if (e.language === "yaml") {
|
|
2707
|
+
let t = e.value.trim(), n = t ? await r(t, { parser: "yaml" }) : "";
|
|
2708
|
+
return _e([e.startDelimiter, e.explicitLanguage, P, n, n ? P : "", e.endDelimiter]);
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
var fi = Sl;
|
|
2712
|
+
var Ol = (e) => String(e).split(/[/\\]/u).pop();
|
|
2713
|
+
function Di(e, r) {
|
|
2714
|
+
if (!r)
|
|
2715
|
+
return;
|
|
2716
|
+
let t = Ol(r).toLowerCase();
|
|
2717
|
+
return e.find(({ filenames: n }) => n == null ? void 0 : n.some((a) => a.toLowerCase() === t)) ?? e.find(({ extensions: n }) => n == null ? void 0 : n.some((a) => t.endsWith(a)));
|
|
2718
|
+
}
|
|
2719
|
+
function Ll(e, r) {
|
|
2720
|
+
if (r)
|
|
2721
|
+
return e.find(({ name: t }) => t.toLowerCase() === r) ?? e.find(({ aliases: t }) => t == null ? void 0 : t.includes(r)) ?? e.find(({ extensions: t }) => t == null ? void 0 : t.includes(`.${r}`));
|
|
2722
|
+
}
|
|
2723
|
+
function Pl(e, r) {
|
|
2724
|
+
let t = e.plugins.flatMap((a) => a.languages ?? []), n = Ll(t, r.language) ?? Di(t, r.physicalFile) ?? Di(t, r.file) ?? (r.physicalFile, void 0);
|
|
2725
|
+
return n == null ? void 0 : n.parsers[0];
|
|
2726
|
+
}
|
|
2727
|
+
var pi = Pl;
|
|
2728
|
+
var Il = new Proxy(() => {
|
|
2729
|
+
}, { get: () => Il });
|
|
2730
|
+
function Oe(e) {
|
|
2731
|
+
return e.position.start.offset;
|
|
2732
|
+
}
|
|
2733
|
+
function Le(e) {
|
|
2734
|
+
return e.position.end.offset;
|
|
2735
|
+
}
|
|
2736
|
+
var vt = /* @__PURE__ */ new Set(["liquidNode", "inlineCode", "emphasis", "esComment", "strong", "delete", "wikiLink", "link", "linkReference", "image", "imageReference", "footnote", "footnoteReference", "sentence", "whitespace", "word", "break", "inlineMath"]), Lr = /* @__PURE__ */ new Set([...vt, "tableCell", "paragraph", "heading"]), Ge = "non-cjk", ie = "cj-letter", Pe = "k-letter", sr = "cjk-punctuation", Nl = /\p{Script_Extensions=Hangul}/u;
|
|
2737
|
+
function Pr(e) {
|
|
2738
|
+
let r = [], t = e.split(/([\t\n ]+)/u);
|
|
2739
|
+
for (let [a, u] of t.entries()) {
|
|
2740
|
+
if (a % 2 === 1) {
|
|
2741
|
+
r.push({ type: "whitespace", value: /\n/u.test(u) ? `
|
|
2742
|
+
` : " " });
|
|
2743
|
+
continue;
|
|
2744
|
+
}
|
|
2745
|
+
if ((a === 0 || a === t.length - 1) && u === "")
|
|
2746
|
+
continue;
|
|
2747
|
+
let i = u.split(new RegExp(`(${li.source})`, "u"));
|
|
2748
|
+
for (let [o, s] of i.entries())
|
|
2749
|
+
if (!((o === 0 || o === i.length - 1) && s === "")) {
|
|
2750
|
+
if (o % 2 === 0) {
|
|
2751
|
+
s !== "" && n({ type: "word", value: s, kind: Ge, isCJ: false, hasLeadingPunctuation: Se.test(s[0]), hasTrailingPunctuation: Se.test(z(false, s, -1)) });
|
|
2752
|
+
continue;
|
|
2753
|
+
}
|
|
2754
|
+
if (Se.test(s)) {
|
|
2755
|
+
n({ type: "word", value: s, kind: sr, isCJ: true, hasLeadingPunctuation: true, hasTrailingPunctuation: true });
|
|
2756
|
+
continue;
|
|
2757
|
+
}
|
|
2758
|
+
if (Nl.test(s)) {
|
|
2759
|
+
n({ type: "word", value: s, kind: Pe, isCJ: false, hasLeadingPunctuation: false, hasTrailingPunctuation: false });
|
|
2760
|
+
continue;
|
|
2761
|
+
}
|
|
2762
|
+
n({ type: "word", value: s, kind: ie, isCJ: true, hasLeadingPunctuation: false, hasTrailingPunctuation: false });
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
return r;
|
|
2766
|
+
function n(a) {
|
|
2767
|
+
let u = z(false, r, -1);
|
|
2768
|
+
(u == null ? void 0 : u.type) === "word" && !i(Ge, sr) && ![u.value, a.value].some((o) => /\u3000/u.test(o)) && r.push({ type: "whitespace", value: "" }), r.push(a);
|
|
2769
|
+
function i(o, s) {
|
|
2770
|
+
return u.kind === o && a.kind === s || u.kind === s && a.kind === o;
|
|
2771
|
+
}
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2774
|
+
function Ye(e, r) {
|
|
2775
|
+
let t = r.originalText.slice(e.position.start.offset, e.position.end.offset), { numberText: n, leadingSpaces: a } = t.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;
|
|
2776
|
+
return { number: Number(n), leadingSpaces: a };
|
|
2777
|
+
}
|
|
2778
|
+
function hi(e, r) {
|
|
2779
|
+
return !e.ordered || e.children.length < 2 || Ye(e.children[1], r).number !== 1 ? false : Ye(e.children[0], r).number !== 0 ? true : e.children.length > 2 && Ye(e.children[2], r).number === 1;
|
|
2780
|
+
}
|
|
2781
|
+
function Ir(e, r) {
|
|
2782
|
+
let { value: t } = e;
|
|
2783
|
+
return e.position.end.offset === r.length && t.endsWith(`
|
|
2784
|
+
`) && r.endsWith(`
|
|
2785
|
+
`) ? t.slice(0, -1) : t;
|
|
2786
|
+
}
|
|
2787
|
+
function Ae(e, r) {
|
|
2788
|
+
return function t(n, a, u) {
|
|
2789
|
+
let i = { ...r(n, a, u) };
|
|
2790
|
+
return i.children && (i.children = i.children.map((o, s) => t(o, s, [i, ...u]))), i;
|
|
2791
|
+
}(e, null, []);
|
|
2792
|
+
}
|
|
2793
|
+
function Et(e) {
|
|
2794
|
+
if ((e == null ? void 0 : e.type) !== "link" || e.children.length !== 1)
|
|
2795
|
+
return false;
|
|
2796
|
+
let [r] = e.children;
|
|
2797
|
+
return Oe(e) === Oe(r) && Le(e) === Le(r);
|
|
2798
|
+
}
|
|
2799
|
+
function Rl(e, r) {
|
|
2800
|
+
let { node: t } = e;
|
|
2801
|
+
if (t.type === "code" && t.lang !== null) {
|
|
2802
|
+
let n = pi(r, { language: t.lang });
|
|
2803
|
+
if (n)
|
|
2804
|
+
return async (a) => {
|
|
2805
|
+
let u = r.__inJsTemplate ? "~" : "`", i = u.repeat(Math.max(3, Sr(t.value, u) + 1)), o = { parser: n };
|
|
2806
|
+
t.lang === "ts" || t.lang === "typescript" ? o.filepath = "dummy.ts" : t.lang === "tsx" && (o.filepath = "dummy.tsx");
|
|
2807
|
+
let s = await a(Ir(t, r.originalText), o);
|
|
2808
|
+
return _e([i, t.lang, t.meta ? " " + t.meta : "", P, be(s), P, i]);
|
|
2809
|
+
};
|
|
2810
|
+
}
|
|
2811
|
+
switch (t.type) {
|
|
2812
|
+
case "front-matter":
|
|
2813
|
+
return (n) => fi(t, n);
|
|
2814
|
+
case "import":
|
|
2815
|
+
case "export":
|
|
2816
|
+
return (n) => n(t.value, { parser: "babel" });
|
|
2817
|
+
case "jsx":
|
|
2818
|
+
return (n) => n(`<$>${t.value}</$>`, { parser: "__js_expression", rootMarker: "mdx" });
|
|
2819
|
+
}
|
|
2820
|
+
return null;
|
|
2821
|
+
}
|
|
2822
|
+
var di = Rl;
|
|
2823
|
+
var cr = null;
|
|
2824
|
+
function lr(e) {
|
|
2825
|
+
if (cr !== null && typeof cr.property) {
|
|
2826
|
+
let r = cr;
|
|
2827
|
+
return cr = lr.prototype = null, r;
|
|
2828
|
+
}
|
|
2829
|
+
return cr = lr.prototype = e ?? /* @__PURE__ */ Object.create(null), new lr();
|
|
2830
|
+
}
|
|
2831
|
+
var Ul = 10;
|
|
2832
|
+
for (let e = 0; e <= Ul; e++)
|
|
2833
|
+
lr();
|
|
2834
|
+
function Ct(e) {
|
|
2835
|
+
return lr(e);
|
|
2836
|
+
}
|
|
2837
|
+
function Ml(e, r = "type") {
|
|
2838
|
+
Ct(e);
|
|
2839
|
+
function t(n) {
|
|
2840
|
+
let a = n[r], u = e[a];
|
|
2841
|
+
if (!Array.isArray(u))
|
|
2842
|
+
throw Object.assign(new Error(`Missing visitor keys for '${a}'.`), { node: n });
|
|
2843
|
+
return u;
|
|
2844
|
+
}
|
|
2845
|
+
return t;
|
|
2846
|
+
}
|
|
2847
|
+
var mi = Ml;
|
|
2848
|
+
var zl = { "front-matter": [], root: ["children"], paragraph: ["children"], sentence: ["children"], word: [], whitespace: [], emphasis: ["children"], strong: ["children"], delete: ["children"], inlineCode: [], wikiLink: [], link: ["children"], image: [], blockquote: ["children"], heading: ["children"], code: [], html: [], list: ["children"], thematicBreak: [], linkReference: ["children"], imageReference: [], definition: [], footnote: ["children"], footnoteReference: [], footnoteDefinition: ["children"], table: ["children"], tableCell: ["children"], break: [], liquidNode: [], import: [], export: [], esComment: [], jsx: [], math: [], inlineMath: [], tableRow: ["children"], listItem: ["children"], text: [] }, Fi = zl;
|
|
2849
|
+
var Yl = mi(Fi), gi = Yl;
|
|
2850
|
+
function vi(e) {
|
|
2851
|
+
switch (e) {
|
|
2852
|
+
case "cr":
|
|
2853
|
+
return "\r";
|
|
2854
|
+
case "crlf":
|
|
2855
|
+
return `\r
|
|
2856
|
+
`;
|
|
2857
|
+
default:
|
|
2858
|
+
return `
|
|
2859
|
+
`;
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
var Ei = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
2863
|
+
function Ci(e) {
|
|
2864
|
+
return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
|
|
2865
|
+
}
|
|
2866
|
+
function bi(e) {
|
|
2867
|
+
return e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9776 && e <= 9783 || e >= 9800 && e <= 9811 || e === 9855 || e >= 9866 && e <= 9871 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12773 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101631 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e >= 119552 && e <= 119638 || e >= 119648 && e <= 119670 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129673 || e >= 129679 && e <= 129734 || e >= 129742 && e <= 129756 || e >= 129759 && e <= 129769 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141;
|
|
2868
|
+
}
|
|
2869
|
+
var yi = (e) => !(Ci(e) || bi(e));
|
|
2870
|
+
var Gl = /[^\x20-\x7F]/u;
|
|
2871
|
+
function Vl(e) {
|
|
2872
|
+
if (!e)
|
|
2873
|
+
return 0;
|
|
2874
|
+
if (!Gl.test(e))
|
|
2875
|
+
return e.length;
|
|
2876
|
+
e = e.replace(Ei(), " ");
|
|
2877
|
+
let r = 0;
|
|
2878
|
+
for (let t of e) {
|
|
2879
|
+
let n = t.codePointAt(0);
|
|
2880
|
+
n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879 || (r += yi(n) ? 1 : 2);
|
|
2881
|
+
}
|
|
2882
|
+
return r;
|
|
2883
|
+
}
|
|
2884
|
+
var fr = Vl;
|
|
2885
|
+
var j = Symbol("MODE_BREAK"), ue = Symbol("MODE_FLAT"), Ve = Symbol("cursor"), bt = Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
2886
|
+
function Ai() {
|
|
2887
|
+
return { value: "", length: 0, queue: [] };
|
|
2888
|
+
}
|
|
2889
|
+
function jl(e, r) {
|
|
2890
|
+
return yt(e, { type: "indent" }, r);
|
|
2891
|
+
}
|
|
2892
|
+
function $l(e, r, t) {
|
|
2893
|
+
return r === Number.NEGATIVE_INFINITY ? e.root || Ai() : r < 0 ? yt(e, { type: "dedent" }, t) : r ? r.type === "root" ? { ...e, root: e } : yt(e, { type: typeof r == "string" ? "stringAlign" : "numberAlign", n: r }, t) : e;
|
|
2894
|
+
}
|
|
2895
|
+
function yt(e, r, t) {
|
|
2896
|
+
let n = r.type === "dedent" ? e.queue.slice(0, -1) : [...e.queue, r], a = "", u = 0, i = 0, o = 0;
|
|
2897
|
+
for (let D of n)
|
|
2898
|
+
switch (D.type) {
|
|
2899
|
+
case "indent":
|
|
2900
|
+
c(), t.useTabs ? s(1) : l(t.tabWidth);
|
|
2901
|
+
break;
|
|
2902
|
+
case "stringAlign":
|
|
2903
|
+
c(), a += D.n, u += D.n.length;
|
|
2904
|
+
break;
|
|
2905
|
+
case "numberAlign":
|
|
2906
|
+
i += 1, o += D.n;
|
|
2907
|
+
break;
|
|
2908
|
+
default:
|
|
2909
|
+
throw new Error(`Unexpected type '${D.type}'`);
|
|
2910
|
+
}
|
|
2911
|
+
return p(), { ...e, value: a, length: u, queue: n };
|
|
2912
|
+
function s(D) {
|
|
2913
|
+
a += " ".repeat(D), u += t.tabWidth * D;
|
|
2914
|
+
}
|
|
2915
|
+
function l(D) {
|
|
2916
|
+
a += " ".repeat(D), u += D;
|
|
2917
|
+
}
|
|
2918
|
+
function c() {
|
|
2919
|
+
t.useTabs ? f() : p();
|
|
2920
|
+
}
|
|
2921
|
+
function f() {
|
|
2922
|
+
i > 0 && s(i), d();
|
|
2923
|
+
}
|
|
2924
|
+
function p() {
|
|
2925
|
+
o > 0 && l(o), d();
|
|
2926
|
+
}
|
|
2927
|
+
function d() {
|
|
2928
|
+
i = 0, o = 0;
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
function At(e) {
|
|
2932
|
+
let r = 0, t = 0, n = e.length;
|
|
2933
|
+
e:
|
|
2934
|
+
for (; n--; ) {
|
|
2935
|
+
let a = e[n];
|
|
2936
|
+
if (a === Ve) {
|
|
2937
|
+
t++;
|
|
2938
|
+
continue;
|
|
2939
|
+
}
|
|
2940
|
+
for (let u = a.length - 1; u >= 0; u--) {
|
|
2941
|
+
let i = a[u];
|
|
2942
|
+
if (i === " " || i === " ")
|
|
2943
|
+
r++;
|
|
2944
|
+
else {
|
|
2945
|
+
e[n] = a.slice(0, u + 1);
|
|
2946
|
+
break e;
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
if (r > 0 || t > 0)
|
|
2951
|
+
for (e.length = n + 1; t-- > 0; )
|
|
2952
|
+
e.push(Ve);
|
|
2953
|
+
return r;
|
|
2954
|
+
}
|
|
2955
|
+
function Nr(e, r, t, n, a, u) {
|
|
2956
|
+
if (t === Number.POSITIVE_INFINITY)
|
|
2957
|
+
return true;
|
|
2958
|
+
let i = r.length, o = [e], s = [];
|
|
2959
|
+
for (; t >= 0; ) {
|
|
2960
|
+
if (o.length === 0) {
|
|
2961
|
+
if (i === 0)
|
|
2962
|
+
return true;
|
|
2963
|
+
o.push(r[--i]);
|
|
2964
|
+
continue;
|
|
2965
|
+
}
|
|
2966
|
+
let { mode: l, doc: c } = o.pop(), f = Y(c);
|
|
2967
|
+
switch (f) {
|
|
2968
|
+
case G:
|
|
2969
|
+
s.push(c), t -= fr(c);
|
|
2970
|
+
break;
|
|
2971
|
+
case H:
|
|
2972
|
+
case X: {
|
|
2973
|
+
let p = f === H ? c : c.parts, d = c[bt] ?? 0;
|
|
2974
|
+
for (let D = p.length - 1; D >= d; D--)
|
|
2975
|
+
o.push({ mode: l, doc: p[D] });
|
|
2976
|
+
break;
|
|
2977
|
+
}
|
|
2978
|
+
case re:
|
|
2979
|
+
case te:
|
|
2980
|
+
case De:
|
|
2981
|
+
case de:
|
|
2982
|
+
o.push({ mode: l, doc: c.contents });
|
|
2983
|
+
break;
|
|
2984
|
+
case fe:
|
|
2985
|
+
t += At(s);
|
|
2986
|
+
break;
|
|
2987
|
+
case J: {
|
|
2988
|
+
if (u && c.break)
|
|
2989
|
+
return false;
|
|
2990
|
+
let p = c.break ? j : l, d = c.expandedStates && p === j ? z(false, c.expandedStates, -1) : c.contents;
|
|
2991
|
+
o.push({ mode: p, doc: d });
|
|
2992
|
+
break;
|
|
2993
|
+
}
|
|
2994
|
+
case K: {
|
|
2995
|
+
let d = (c.groupId ? a[c.groupId] || ue : l) === j ? c.breakContents : c.flatContents;
|
|
2996
|
+
d && o.push({ mode: l, doc: d });
|
|
2997
|
+
break;
|
|
2998
|
+
}
|
|
2999
|
+
case V:
|
|
3000
|
+
if (l === j || c.hard)
|
|
3001
|
+
return true;
|
|
3002
|
+
c.soft || (s.push(" "), t--);
|
|
3003
|
+
break;
|
|
3004
|
+
case pe:
|
|
3005
|
+
n = true;
|
|
3006
|
+
break;
|
|
3007
|
+
case he:
|
|
3008
|
+
if (n)
|
|
3009
|
+
return false;
|
|
3010
|
+
break;
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
return false;
|
|
3014
|
+
}
|
|
3015
|
+
function wi(e, r) {
|
|
3016
|
+
let t = {}, n = r.printWidth, a = vi(r.endOfLine), u = 0, i = [{ ind: Ai(), mode: j, doc: e }], o = [], s = false, l = [], c = 0;
|
|
3017
|
+
for (Jn(e); i.length > 0; ) {
|
|
3018
|
+
let { ind: p, mode: d, doc: D } = i.pop();
|
|
3019
|
+
switch (Y(D)) {
|
|
3020
|
+
case G: {
|
|
3021
|
+
let h = a !== `
|
|
3022
|
+
` ? N(false, D, `
|
|
3023
|
+
`, a) : D;
|
|
3024
|
+
o.push(h), i.length > 0 && (u += fr(h));
|
|
3025
|
+
break;
|
|
3026
|
+
}
|
|
3027
|
+
case H:
|
|
3028
|
+
for (let h = D.length - 1; h >= 0; h--)
|
|
3029
|
+
i.push({ ind: p, mode: d, doc: D[h] });
|
|
3030
|
+
break;
|
|
3031
|
+
case Ce:
|
|
3032
|
+
if (c >= 2)
|
|
3033
|
+
throw new Error("There are too many 'cursor' in doc.");
|
|
3034
|
+
o.push(Ve), c++;
|
|
3035
|
+
break;
|
|
3036
|
+
case re:
|
|
3037
|
+
i.push({ ind: jl(p, r), mode: d, doc: D.contents });
|
|
3038
|
+
break;
|
|
3039
|
+
case te:
|
|
3040
|
+
i.push({ ind: $l(p, D.n, r), mode: d, doc: D.contents });
|
|
3041
|
+
break;
|
|
3042
|
+
case fe:
|
|
3043
|
+
u -= At(o);
|
|
3044
|
+
break;
|
|
3045
|
+
case J:
|
|
3046
|
+
switch (d) {
|
|
3047
|
+
case ue:
|
|
3048
|
+
if (!s) {
|
|
3049
|
+
i.push({ ind: p, mode: D.break ? j : ue, doc: D.contents });
|
|
3050
|
+
break;
|
|
3051
|
+
}
|
|
3052
|
+
case j: {
|
|
3053
|
+
s = false;
|
|
3054
|
+
let h = { ind: p, mode: ue, doc: D.contents }, m = n - u, F = l.length > 0;
|
|
3055
|
+
if (!D.break && Nr(h, i, m, F, t))
|
|
3056
|
+
i.push(h);
|
|
3057
|
+
else if (D.expandedStates) {
|
|
3058
|
+
let y = z(false, D.expandedStates, -1);
|
|
3059
|
+
if (D.break) {
|
|
3060
|
+
i.push({ ind: p, mode: j, doc: y });
|
|
3061
|
+
break;
|
|
3062
|
+
} else
|
|
3063
|
+
for (let E = 1; E < D.expandedStates.length + 1; E++)
|
|
3064
|
+
if (E >= D.expandedStates.length) {
|
|
3065
|
+
i.push({ ind: p, mode: j, doc: y });
|
|
3066
|
+
break;
|
|
3067
|
+
} else {
|
|
3068
|
+
let B = D.expandedStates[E], b = { ind: p, mode: ue, doc: B };
|
|
3069
|
+
if (Nr(b, i, m, F, t)) {
|
|
3070
|
+
i.push(b);
|
|
3071
|
+
break;
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
} else
|
|
3075
|
+
i.push({ ind: p, mode: j, doc: D.contents });
|
|
3076
|
+
break;
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
D.id && (t[D.id] = z(false, i, -1).mode);
|
|
3080
|
+
break;
|
|
3081
|
+
case X: {
|
|
3082
|
+
let h = n - u, m = D[bt] ?? 0, { parts: F } = D, y = F.length - m;
|
|
3083
|
+
if (y === 0)
|
|
3084
|
+
break;
|
|
3085
|
+
let E = F[m + 0], B = F[m + 1], b = { ind: p, mode: ue, doc: E }, g = { ind: p, mode: j, doc: E }, A = Nr(b, [], h, l.length > 0, t, true);
|
|
3086
|
+
if (y === 1) {
|
|
3087
|
+
A ? i.push(b) : i.push(g);
|
|
3088
|
+
break;
|
|
3089
|
+
}
|
|
3090
|
+
let w = { ind: p, mode: ue, doc: B }, v = { ind: p, mode: j, doc: B };
|
|
3091
|
+
if (y === 2) {
|
|
3092
|
+
A ? i.push(w, b) : i.push(v, g);
|
|
3093
|
+
break;
|
|
3094
|
+
}
|
|
3095
|
+
let x = F[m + 2], k = { ind: p, mode: d, doc: { ...D, [bt]: m + 2 } };
|
|
3096
|
+
Nr({ ind: p, mode: ue, doc: [E, B, x] }, [], h, l.length > 0, t, true) ? i.push(k, w, b) : A ? i.push(k, v, b) : i.push(k, v, g);
|
|
3097
|
+
break;
|
|
3098
|
+
}
|
|
3099
|
+
case K:
|
|
3100
|
+
case De: {
|
|
3101
|
+
let h = D.groupId ? t[D.groupId] : d;
|
|
3102
|
+
if (h === j) {
|
|
3103
|
+
let m = D.type === K ? D.breakContents : D.negate ? D.contents : nr(D.contents);
|
|
3104
|
+
m && i.push({ ind: p, mode: d, doc: m });
|
|
3105
|
+
}
|
|
3106
|
+
if (h === ue) {
|
|
3107
|
+
let m = D.type === K ? D.flatContents : D.negate ? nr(D.contents) : D.contents;
|
|
3108
|
+
m && i.push({ ind: p, mode: d, doc: m });
|
|
3109
|
+
}
|
|
3110
|
+
break;
|
|
3111
|
+
}
|
|
3112
|
+
case pe:
|
|
3113
|
+
l.push({ ind: p, mode: d, doc: D.contents });
|
|
3114
|
+
break;
|
|
3115
|
+
case he:
|
|
3116
|
+
l.length > 0 && i.push({ ind: p, mode: d, doc: ur });
|
|
3117
|
+
break;
|
|
3118
|
+
case V:
|
|
3119
|
+
switch (d) {
|
|
3120
|
+
case ue:
|
|
3121
|
+
if (D.hard)
|
|
3122
|
+
s = true;
|
|
3123
|
+
else {
|
|
3124
|
+
D.soft || (o.push(" "), u += 1);
|
|
3125
|
+
break;
|
|
3126
|
+
}
|
|
3127
|
+
case j:
|
|
3128
|
+
if (l.length > 0) {
|
|
3129
|
+
i.push({ ind: p, mode: d, doc: D }, ...l.reverse()), l.length = 0;
|
|
3130
|
+
break;
|
|
3131
|
+
}
|
|
3132
|
+
D.literal ? p.root ? (o.push(a, p.root.value), u = p.root.length) : (o.push(a), u = 0) : (u -= At(o), o.push(a + p.value), u = p.length);
|
|
3133
|
+
break;
|
|
3134
|
+
}
|
|
3135
|
+
break;
|
|
3136
|
+
case de:
|
|
3137
|
+
i.push({ ind: p, mode: d, doc: D.contents });
|
|
3138
|
+
break;
|
|
3139
|
+
case ne:
|
|
3140
|
+
break;
|
|
3141
|
+
default:
|
|
3142
|
+
throw new Te(D);
|
|
3143
|
+
}
|
|
3144
|
+
i.length === 0 && l.length > 0 && (i.push(...l.reverse()), l.length = 0);
|
|
3145
|
+
}
|
|
3146
|
+
let f = o.indexOf(Ve);
|
|
3147
|
+
if (f !== -1) {
|
|
3148
|
+
let p = o.indexOf(Ve, f + 1);
|
|
3149
|
+
if (p === -1)
|
|
3150
|
+
return { formatted: o.filter((m) => m !== Ve).join("") };
|
|
3151
|
+
let d = o.slice(0, f).join(""), D = o.slice(f + 1, p).join(""), h = o.slice(p + 1).join("");
|
|
3152
|
+
return { formatted: d + D + h, cursorNodeStart: d.length, cursorNodeText: D };
|
|
3153
|
+
}
|
|
3154
|
+
return { formatted: o.join("") };
|
|
3155
|
+
}
|
|
3156
|
+
function xi(e, r, t) {
|
|
3157
|
+
let { node: n } = e, a = [], u = e.map(() => e.map(({ index: f }) => {
|
|
3158
|
+
let p = wi(t(), r).formatted, d = fr(p);
|
|
3159
|
+
return a[f] = Math.max(a[f] ?? 3, d), { text: p, width: d };
|
|
3160
|
+
}, "children"), "children"), i = s(false);
|
|
3161
|
+
if (r.proseWrap !== "never")
|
|
3162
|
+
return [ir, i];
|
|
3163
|
+
let o = s(true);
|
|
3164
|
+
return [ir, Me(Qn(o, i))];
|
|
3165
|
+
function s(f) {
|
|
3166
|
+
return Tr(ur, [c(u[0], f), l(f), ...u.slice(1).map((p) => c(p, f))].map((p) => `| ${p.join(" | ")} |`));
|
|
3167
|
+
}
|
|
3168
|
+
function l(f) {
|
|
3169
|
+
return a.map((p, d) => {
|
|
3170
|
+
let D = n.align[d], h = D === "center" || D === "left" ? ":" : "-", m = D === "center" || D === "right" ? ":" : "-", F = f ? "-" : "-".repeat(p - 2);
|
|
3171
|
+
return `${h}${F}${m}`;
|
|
3172
|
+
});
|
|
3173
|
+
}
|
|
3174
|
+
function c(f, p) {
|
|
3175
|
+
return f.map(({ text: d, width: D }, h) => {
|
|
3176
|
+
if (p)
|
|
3177
|
+
return d;
|
|
3178
|
+
let m = a[h] - D, F = n.align[h], y = 0;
|
|
3179
|
+
F === "right" ? y = m : F === "center" && (y = Math.floor(m / 2));
|
|
3180
|
+
let E = m - y;
|
|
3181
|
+
return `${" ".repeat(y)}${d}${" ".repeat(E)}`;
|
|
3182
|
+
});
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3185
|
+
function ki(e, r, t) {
|
|
3186
|
+
let n = e.map(t, "children");
|
|
3187
|
+
return Wl(n);
|
|
3188
|
+
}
|
|
3189
|
+
function Wl(e) {
|
|
3190
|
+
let r = [""];
|
|
3191
|
+
return function t(n) {
|
|
3192
|
+
for (let a of n) {
|
|
3193
|
+
let u = Y(a);
|
|
3194
|
+
if (u === H) {
|
|
3195
|
+
t(a);
|
|
3196
|
+
continue;
|
|
3197
|
+
}
|
|
3198
|
+
let i = a, o = [];
|
|
3199
|
+
u === X && ([i, ...o] = a.parts), r.push([r.pop(), i], ...o);
|
|
3200
|
+
}
|
|
3201
|
+
}(e), ze(r);
|
|
3202
|
+
}
|
|
3203
|
+
var Q, wt = class {
|
|
3204
|
+
constructor(r) {
|
|
3205
|
+
jn(this, Q);
|
|
3206
|
+
$n(this, Q, new Set(r));
|
|
3207
|
+
}
|
|
3208
|
+
getLeadingWhitespaceCount(r) {
|
|
3209
|
+
let t = ce(this, Q), n = 0;
|
|
3210
|
+
for (let a = 0; a < r.length && t.has(r.charAt(a)); a++)
|
|
3211
|
+
n++;
|
|
3212
|
+
return n;
|
|
3213
|
+
}
|
|
3214
|
+
getTrailingWhitespaceCount(r) {
|
|
3215
|
+
let t = ce(this, Q), n = 0;
|
|
3216
|
+
for (let a = r.length - 1; a >= 0 && t.has(r.charAt(a)); a--)
|
|
3217
|
+
n++;
|
|
3218
|
+
return n;
|
|
3219
|
+
}
|
|
3220
|
+
getLeadingWhitespace(r) {
|
|
3221
|
+
let t = this.getLeadingWhitespaceCount(r);
|
|
3222
|
+
return r.slice(0, t);
|
|
3223
|
+
}
|
|
3224
|
+
getTrailingWhitespace(r) {
|
|
3225
|
+
let t = this.getTrailingWhitespaceCount(r);
|
|
3226
|
+
return r.slice(r.length - t);
|
|
3227
|
+
}
|
|
3228
|
+
hasLeadingWhitespace(r) {
|
|
3229
|
+
return ce(this, Q).has(r.charAt(0));
|
|
3230
|
+
}
|
|
3231
|
+
hasTrailingWhitespace(r) {
|
|
3232
|
+
return ce(this, Q).has(z(false, r, -1));
|
|
3233
|
+
}
|
|
3234
|
+
trimStart(r) {
|
|
3235
|
+
let t = this.getLeadingWhitespaceCount(r);
|
|
3236
|
+
return r.slice(t);
|
|
3237
|
+
}
|
|
3238
|
+
trimEnd(r) {
|
|
3239
|
+
let t = this.getTrailingWhitespaceCount(r);
|
|
3240
|
+
return r.slice(0, r.length - t);
|
|
3241
|
+
}
|
|
3242
|
+
trim(r) {
|
|
3243
|
+
return this.trimEnd(this.trimStart(r));
|
|
3244
|
+
}
|
|
3245
|
+
split(r, t = false) {
|
|
3246
|
+
let n = `[${le([...ce(this, Q)].join(""))}]+`, a = new RegExp(t ? `(${n})` : n, "u");
|
|
3247
|
+
return r.split(a);
|
|
3248
|
+
}
|
|
3249
|
+
hasWhitespaceCharacter(r) {
|
|
3250
|
+
let t = ce(this, Q);
|
|
3251
|
+
return Array.prototype.some.call(r, (n) => t.has(n));
|
|
3252
|
+
}
|
|
3253
|
+
hasNonWhitespaceCharacter(r) {
|
|
3254
|
+
let t = ce(this, Q);
|
|
3255
|
+
return Array.prototype.some.call(r, (n) => !t.has(n));
|
|
3256
|
+
}
|
|
3257
|
+
isWhitespaceOnly(r) {
|
|
3258
|
+
let t = ce(this, Q);
|
|
3259
|
+
return Array.prototype.every.call(r, (n) => t.has(n));
|
|
3260
|
+
}
|
|
3261
|
+
};
|
|
3262
|
+
Q = /* @__PURE__ */ new WeakMap();
|
|
3263
|
+
var Bi = wt;
|
|
3264
|
+
var Hl = [" ", `
|
|
3265
|
+
`, "\f", "\r", " "], Kl = new Bi(Hl), xt = Kl;
|
|
3266
|
+
var Jl = /^.$/su;
|
|
3267
|
+
function Xl(e, r) {
|
|
3268
|
+
return e = Ql(e, r), e = ef(e), e = tf(e, r), e = nf(e, r), e = rf(e), e;
|
|
3269
|
+
}
|
|
3270
|
+
function Ql(e, r) {
|
|
3271
|
+
return Ae(e, (t) => t.type !== "text" || t.value === "*" || t.value === "_" || !Jl.test(t.value) || t.position.end.offset - t.position.start.offset === t.value.length ? t : { ...t, value: r.originalText.slice(t.position.start.offset, t.position.end.offset) });
|
|
3272
|
+
}
|
|
3273
|
+
function Zl(e, r, t) {
|
|
3274
|
+
return Ae(e, (n) => {
|
|
3275
|
+
if (!n.children)
|
|
3276
|
+
return n;
|
|
3277
|
+
let a = n.children.reduce((u, i) => {
|
|
3278
|
+
let o = z(false, u, -1);
|
|
3279
|
+
return o && r(o, i) ? u.splice(-1, 1, t(o, i)) : u.push(i), u;
|
|
3280
|
+
}, []);
|
|
3281
|
+
return { ...n, children: a };
|
|
3282
|
+
});
|
|
3283
|
+
}
|
|
3284
|
+
function ef(e) {
|
|
3285
|
+
return Zl(e, (r, t) => r.type === "text" && t.type === "text", (r, t) => ({ type: "text", value: r.value + t.value, position: { start: r.position.start, end: t.position.end } }));
|
|
3286
|
+
}
|
|
3287
|
+
function rf(e) {
|
|
3288
|
+
return Ae(e, (r, t, [n]) => {
|
|
3289
|
+
if (r.type !== "text")
|
|
3290
|
+
return r;
|
|
3291
|
+
let { value: a } = r;
|
|
3292
|
+
return n.type === "paragraph" && (t === 0 && (a = xt.trimStart(a)), t === n.children.length - 1 && (a = xt.trimEnd(a))), { type: "sentence", position: r.position, children: Pr(a) };
|
|
3293
|
+
});
|
|
3294
|
+
}
|
|
3295
|
+
function tf(e, r) {
|
|
3296
|
+
return Ae(e, (t, n, a) => {
|
|
3297
|
+
if (t.type === "code") {
|
|
3298
|
+
let u = /^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset, t.position.end.offset));
|
|
3299
|
+
if (t.isIndented = u, u)
|
|
3300
|
+
for (let i = 0; i < a.length; i++) {
|
|
3301
|
+
let o = a[i];
|
|
3302
|
+
if (o.hasIndentedCodeblock)
|
|
3303
|
+
break;
|
|
3304
|
+
o.type === "list" && (o.hasIndentedCodeblock = true);
|
|
3305
|
+
}
|
|
3306
|
+
}
|
|
3307
|
+
return t;
|
|
3308
|
+
});
|
|
3309
|
+
}
|
|
3310
|
+
function nf(e, r) {
|
|
3311
|
+
return Ae(e, (a, u, i) => {
|
|
3312
|
+
if (a.type === "list" && a.children.length > 0) {
|
|
3313
|
+
for (let o = 0; o < i.length; o++) {
|
|
3314
|
+
let s = i[o];
|
|
3315
|
+
if (s.type === "list" && !s.isAligned)
|
|
3316
|
+
return a.isAligned = false, a;
|
|
3317
|
+
}
|
|
3318
|
+
a.isAligned = n(a);
|
|
3319
|
+
}
|
|
3320
|
+
return a;
|
|
3321
|
+
});
|
|
3322
|
+
function t(a) {
|
|
3323
|
+
return a.children.length === 0 ? -1 : a.children[0].position.start.column - 1;
|
|
3324
|
+
}
|
|
3325
|
+
function n(a) {
|
|
3326
|
+
if (!a.ordered)
|
|
3327
|
+
return true;
|
|
3328
|
+
let [u, i] = a.children;
|
|
3329
|
+
if (Ye(u, r).leadingSpaces.length > 1)
|
|
3330
|
+
return true;
|
|
3331
|
+
let s = t(u);
|
|
3332
|
+
if (s === -1)
|
|
3333
|
+
return false;
|
|
3334
|
+
if (a.children.length === 1)
|
|
3335
|
+
return s % r.tabWidth === 0;
|
|
3336
|
+
let l = t(i);
|
|
3337
|
+
return s !== l ? false : s % r.tabWidth === 0 ? true : Ye(i, r).leadingSpaces.length > 1;
|
|
3338
|
+
}
|
|
3339
|
+
}
|
|
3340
|
+
var Ti = Xl;
|
|
3341
|
+
function qi(e, r) {
|
|
3342
|
+
let t = [""];
|
|
3343
|
+
return e.each(() => {
|
|
3344
|
+
let { node: n } = e, a = r();
|
|
3345
|
+
switch (n.type) {
|
|
3346
|
+
case "whitespace":
|
|
3347
|
+
if (Y(a) !== G) {
|
|
3348
|
+
t.push(a, "");
|
|
3349
|
+
break;
|
|
3350
|
+
}
|
|
3351
|
+
default:
|
|
3352
|
+
t.push([t.pop(), a]);
|
|
3353
|
+
}
|
|
3354
|
+
}, "children"), ze(t);
|
|
3355
|
+
}
|
|
3356
|
+
var uf = /* @__PURE__ */ new Set(["heading", "tableCell", "link", "wikiLink"]), _i = new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
|
|
3357
|
+
function af({ parent: e }) {
|
|
3358
|
+
if (e.usesCJSpaces === void 0) {
|
|
3359
|
+
let r = { " ": 0, "": 0 }, { children: t } = e;
|
|
3360
|
+
for (let n = 1; n < t.length - 1; ++n) {
|
|
3361
|
+
let a = t[n];
|
|
3362
|
+
if (a.type === "whitespace" && (a.value === " " || a.value === "")) {
|
|
3363
|
+
let u = t[n - 1].kind, i = t[n + 1].kind;
|
|
3364
|
+
(u === ie && i === Ge || u === Ge && i === ie) && ++r[a.value];
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
e.usesCJSpaces = r[" "] > r[""];
|
|
3368
|
+
}
|
|
3369
|
+
return e.usesCJSpaces;
|
|
3370
|
+
}
|
|
3371
|
+
function of(e, r) {
|
|
3372
|
+
if (r)
|
|
3373
|
+
return true;
|
|
3374
|
+
let { previous: t, next: n } = e;
|
|
3375
|
+
if (!t || !n)
|
|
3376
|
+
return true;
|
|
3377
|
+
let a = t.kind, u = n.kind;
|
|
3378
|
+
return Si(a) && Si(u) || a === Pe && u === ie || u === Pe && a === ie ? true : a === sr || u === sr || a === ie && u === ie ? false : _i.has(n.value[0]) || _i.has(z(false, t.value, -1)) ? true : t.hasTrailingPunctuation || n.hasLeadingPunctuation ? false : af(e);
|
|
3379
|
+
}
|
|
3380
|
+
function Si(e) {
|
|
3381
|
+
return e === Ge || e === Pe;
|
|
3382
|
+
}
|
|
3383
|
+
function sf(e, r, t, n) {
|
|
3384
|
+
if (t !== "always" || e.hasAncestor((i) => uf.has(i.type)))
|
|
3385
|
+
return false;
|
|
3386
|
+
if (n)
|
|
3387
|
+
return r !== "";
|
|
3388
|
+
let { previous: a, next: u } = e;
|
|
3389
|
+
return !a || !u ? true : r === "" ? false : a.kind === Pe && u.kind === ie || u.kind === Pe && a.kind === ie ? true : !(a.isCJ || u.isCJ);
|
|
3390
|
+
}
|
|
3391
|
+
function kt(e, r, t, n) {
|
|
3392
|
+
if (t === "preserve" && r === `
|
|
3393
|
+
`)
|
|
3394
|
+
return P;
|
|
3395
|
+
let a = r === " " || r === `
|
|
3396
|
+
` && of(e, n);
|
|
3397
|
+
return sf(e, r, t, n) ? a ? qr : _r : a ? " " : "";
|
|
3398
|
+
}
|
|
3399
|
+
var cf = /* @__PURE__ */ new Set(["listItem", "definition"]);
|
|
3400
|
+
function lf(e, r, t) {
|
|
3401
|
+
var a, u;
|
|
3402
|
+
let { node: n } = e;
|
|
3403
|
+
if (mf(e)) {
|
|
3404
|
+
let i = [""], o = Pr(r.originalText.slice(n.position.start.offset, n.position.end.offset));
|
|
3405
|
+
for (let s of o) {
|
|
3406
|
+
if (s.type === "word") {
|
|
3407
|
+
i.push([i.pop(), s.value]);
|
|
3408
|
+
continue;
|
|
3409
|
+
}
|
|
3410
|
+
let l = kt(e, s.value, r.proseWrap, true);
|
|
3411
|
+
if (Y(l) === G) {
|
|
3412
|
+
i.push([i.pop(), l]);
|
|
3413
|
+
continue;
|
|
3414
|
+
}
|
|
3415
|
+
i.push(l, "");
|
|
3416
|
+
}
|
|
3417
|
+
return ze(i);
|
|
3418
|
+
}
|
|
3419
|
+
switch (n.type) {
|
|
3420
|
+
case "front-matter":
|
|
3421
|
+
return r.originalText.slice(n.position.start.offset, n.position.end.offset);
|
|
3422
|
+
case "root":
|
|
3423
|
+
return n.children.length === 0 ? "" : [pf(e, r, t), P];
|
|
3424
|
+
case "paragraph":
|
|
3425
|
+
return ki(e, r, t);
|
|
3426
|
+
case "sentence":
|
|
3427
|
+
return qi(e, t);
|
|
3428
|
+
case "word": {
|
|
3429
|
+
let i = N(false, N(false, n.value, "*", String.raw`\*`), new RegExp([`(^|${Se.source})(_+)`, `(_+)(${Se.source}|$)`].join("|"), "gu"), (l, c, f, p, d) => N(false, f ? `${c}${f}` : `${p}${d}`, "_", String.raw`\_`)), o = (l, c, f) => l.type === "sentence" && f === 0, s = (l, c, f) => Et(l.children[f - 1]);
|
|
3430
|
+
return i !== n.value && (e.match(void 0, o, s) || e.match(void 0, o, (l, c, f) => l.type === "emphasis" && f === 0, s)) && (i = i.replace(/^(\\?[*_])+/u, (l) => N(false, l, "\\", ""))), i;
|
|
3431
|
+
}
|
|
3432
|
+
case "whitespace": {
|
|
3433
|
+
let { next: i } = e, o = i && /^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value) ? "never" : r.proseWrap;
|
|
3434
|
+
return kt(e, n.value, o);
|
|
3435
|
+
}
|
|
3436
|
+
case "emphasis": {
|
|
3437
|
+
let i;
|
|
3438
|
+
if (Et(n.children[0]))
|
|
3439
|
+
i = r.originalText[n.position.start.offset];
|
|
3440
|
+
else {
|
|
3441
|
+
let { previous: o, next: s } = e;
|
|
3442
|
+
i = (o == null ? void 0 : o.type) === "sentence" && ((a = z(false, o.children, -1)) == null ? void 0 : a.type) === "word" && !z(false, o.children, -1).hasTrailingPunctuation || (s == null ? void 0 : s.type) === "sentence" && ((u = s.children[0]) == null ? void 0 : u.type) === "word" && !s.children[0].hasLeadingPunctuation || e.hasAncestor((c) => c.type === "emphasis") ? "*" : "_";
|
|
3443
|
+
}
|
|
3444
|
+
return [i, $(e, r, t), i];
|
|
3445
|
+
}
|
|
3446
|
+
case "strong":
|
|
3447
|
+
return ["**", $(e, r, t), "**"];
|
|
3448
|
+
case "delete":
|
|
3449
|
+
return ["~~", $(e, r, t), "~~"];
|
|
3450
|
+
case "inlineCode": {
|
|
3451
|
+
let i = r.proseWrap === "preserve" ? n.value : N(false, n.value, `
|
|
3452
|
+
`, " "), o = Zn(i, "`"), s = "`".repeat(o || 1), l = i.startsWith("`") || i.endsWith("`") || /^[\n ]/u.test(i) && /[\n ]$/u.test(i) && /[^\n ]/u.test(i) ? " " : "";
|
|
3453
|
+
return [s, l, i, l, s];
|
|
3454
|
+
}
|
|
3455
|
+
case "wikiLink": {
|
|
3456
|
+
let i = "";
|
|
3457
|
+
return r.proseWrap === "preserve" ? i = n.value : i = N(false, n.value, /[\t\n]+/gu, " "), ["[[", i, "]]"];
|
|
3458
|
+
}
|
|
3459
|
+
case "link":
|
|
3460
|
+
switch (r.originalText[n.position.start.offset]) {
|
|
3461
|
+
case "<": {
|
|
3462
|
+
let i = "mailto:";
|
|
3463
|
+
return ["<", n.url.startsWith(i) && r.originalText.slice(n.position.start.offset + 1, n.position.start.offset + 1 + i.length) !== i ? n.url.slice(i.length) : n.url, ">"];
|
|
3464
|
+
}
|
|
3465
|
+
case "[":
|
|
3466
|
+
return ["[", $(e, r, t), "](", Bt(n.url, ")"), Rr(n.title, r), ")"];
|
|
3467
|
+
default:
|
|
3468
|
+
return r.originalText.slice(n.position.start.offset, n.position.end.offset);
|
|
3469
|
+
}
|
|
3470
|
+
case "image":
|
|
3471
|
+
return [""), Rr(n.title, r), ")"];
|
|
3472
|
+
case "blockquote":
|
|
3473
|
+
return ["> ", ye("> ", $(e, r, t))];
|
|
3474
|
+
case "heading":
|
|
3475
|
+
return ["#".repeat(n.depth) + " ", $(e, r, t)];
|
|
3476
|
+
case "code": {
|
|
3477
|
+
if (n.isIndented) {
|
|
3478
|
+
let s = " ".repeat(4);
|
|
3479
|
+
return ye(s, [s, be(n.value, P)]);
|
|
3480
|
+
}
|
|
3481
|
+
let i = r.__inJsTemplate ? "~" : "`", o = i.repeat(Math.max(3, Sr(n.value, i) + 1));
|
|
3482
|
+
return [o, n.lang || "", n.meta ? " " + n.meta : "", P, be(Ir(n, r.originalText), P), P, o];
|
|
3483
|
+
}
|
|
3484
|
+
case "html": {
|
|
3485
|
+
let { parent: i, isLast: o } = e, s = i.type === "root" && o ? n.value.trimEnd() : n.value, l = /^<!--.*-->$/su.test(s);
|
|
3486
|
+
return be(s, l ? P : _e(tr));
|
|
3487
|
+
}
|
|
3488
|
+
case "list": {
|
|
3489
|
+
let i = Li(n, e.parent), o = hi(n, r);
|
|
3490
|
+
return $(e, r, t, { processor(s) {
|
|
3491
|
+
let l = f(), c = s.node;
|
|
3492
|
+
if (c.children.length === 2 && c.children[1].type === "html" && c.children[0].position.start.column !== c.children[1].position.start.column)
|
|
3493
|
+
return [l, Oi(s, r, t, l)];
|
|
3494
|
+
return [l, ye(" ".repeat(l.length), Oi(s, r, t, l))];
|
|
3495
|
+
function f() {
|
|
3496
|
+
let p = n.ordered ? (s.isFirst ? n.start : o ? 1 : n.start + s.index) + (i % 2 === 0 ? ". " : ") ") : i % 2 === 0 ? "- " : "* ";
|
|
3497
|
+
return (n.isAligned || n.hasIndentedCodeblock) && n.ordered ? ff(p, r) : p;
|
|
3498
|
+
}
|
|
3499
|
+
} });
|
|
3500
|
+
}
|
|
3501
|
+
case "thematicBreak": {
|
|
3502
|
+
let { ancestors: i } = e, o = i.findIndex((l) => l.type === "list");
|
|
3503
|
+
return o === -1 ? "---" : Li(i[o], i[o + 1]) % 2 === 0 ? "***" : "---";
|
|
3504
|
+
}
|
|
3505
|
+
case "linkReference":
|
|
3506
|
+
return ["[", $(e, r, t), "]", n.referenceType === "full" ? Tt(n) : n.referenceType === "collapsed" ? "[]" : ""];
|
|
3507
|
+
case "imageReference":
|
|
3508
|
+
switch (n.referenceType) {
|
|
3509
|
+
case "full":
|
|
3510
|
+
return ["![", n.alt || "", "]", Tt(n)];
|
|
3511
|
+
default:
|
|
3512
|
+
return ["![", n.alt, "]", n.referenceType === "collapsed" ? "[]" : ""];
|
|
3513
|
+
}
|
|
3514
|
+
case "definition": {
|
|
3515
|
+
let i = r.proseWrap === "always" ? qr : " ";
|
|
3516
|
+
return Me([Tt(n), ":", nr([i, Bt(n.url), n.title === null ? "" : [i, Rr(n.title, r, false)]])]);
|
|
3517
|
+
}
|
|
3518
|
+
case "footnote":
|
|
3519
|
+
return ["[^", $(e, r, t), "]"];
|
|
3520
|
+
case "footnoteReference":
|
|
3521
|
+
return Ri(n);
|
|
3522
|
+
case "footnoteDefinition": {
|
|
3523
|
+
let i = n.children.length === 1 && n.children[0].type === "paragraph" && (r.proseWrap === "never" || r.proseWrap === "preserve" && n.children[0].position.start.line === n.children[0].position.end.line);
|
|
3524
|
+
return [Ri(n), ": ", i ? $(e, r, t) : Me([ye(" ".repeat(4), $(e, r, t, { processor: ({ isFirst: o }) => o ? Me([_r, t()]) : t() }))])];
|
|
3525
|
+
}
|
|
3526
|
+
case "table":
|
|
3527
|
+
return xi(e, r, t);
|
|
3528
|
+
case "tableCell":
|
|
3529
|
+
return $(e, r, t);
|
|
3530
|
+
case "break":
|
|
3531
|
+
return /\s/u.test(r.originalText[n.position.start.offset]) ? [" ", _e(tr)] : ["\\", P];
|
|
3532
|
+
case "liquidNode":
|
|
3533
|
+
return be(n.value, P);
|
|
3534
|
+
case "import":
|
|
3535
|
+
case "export":
|
|
3536
|
+
case "jsx":
|
|
3537
|
+
return n.value;
|
|
3538
|
+
case "esComment":
|
|
3539
|
+
return ["{/* ", n.value, " */}"];
|
|
3540
|
+
case "math":
|
|
3541
|
+
return ["$$", P, n.value ? [be(n.value, P), P] : "", "$$"];
|
|
3542
|
+
case "inlineMath":
|
|
3543
|
+
return r.originalText.slice(Oe(n), Le(n));
|
|
3544
|
+
case "tableRow":
|
|
3545
|
+
case "listItem":
|
|
3546
|
+
case "text":
|
|
3547
|
+
default:
|
|
3548
|
+
throw new ti(n, "Markdown");
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
function Oi(e, r, t, n) {
|
|
3552
|
+
let { node: a } = e, u = a.checked === null ? "" : a.checked ? "[x] " : "[ ] ";
|
|
3553
|
+
return [u, $(e, r, t, { processor({ node: i, isFirst: o }) {
|
|
3554
|
+
if (o && i.type !== "list")
|
|
3555
|
+
return ye(" ".repeat(u.length), t());
|
|
3556
|
+
let s = " ".repeat(gf(r.tabWidth - n.length, 0, 3));
|
|
3557
|
+
return [s, ye(s, t())];
|
|
3558
|
+
} })];
|
|
3559
|
+
}
|
|
3560
|
+
function ff(e, r) {
|
|
3561
|
+
let t = n();
|
|
3562
|
+
return e + " ".repeat(t >= 4 ? 0 : t);
|
|
3563
|
+
function n() {
|
|
3564
|
+
let a = e.length % r.tabWidth;
|
|
3565
|
+
return a === 0 ? 0 : r.tabWidth - a;
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3568
|
+
function Li(e, r) {
|
|
3569
|
+
return Df(e, r, (t) => t.ordered === e.ordered);
|
|
3570
|
+
}
|
|
3571
|
+
function Df(e, r, t) {
|
|
3572
|
+
let n = -1;
|
|
3573
|
+
for (let a of r.children)
|
|
3574
|
+
if (a.type === e.type && t(a) ? n++ : n = -1, a === e)
|
|
3575
|
+
return n;
|
|
3576
|
+
}
|
|
3577
|
+
function pf(e, r, t) {
|
|
3578
|
+
let n = [], a = null, { children: u } = e.node;
|
|
3579
|
+
for (let [i, o] of u.entries())
|
|
3580
|
+
switch (qt(o)) {
|
|
3581
|
+
case "start":
|
|
3582
|
+
a === null && (a = { index: i, offset: o.position.end.offset });
|
|
3583
|
+
break;
|
|
3584
|
+
case "end":
|
|
3585
|
+
a !== null && (n.push({ start: a, end: { index: i, offset: o.position.start.offset } }), a = null);
|
|
3586
|
+
break;
|
|
3587
|
+
}
|
|
3588
|
+
return $(e, r, t, { processor({ index: i }) {
|
|
3589
|
+
if (n.length > 0) {
|
|
3590
|
+
let o = n[0];
|
|
3591
|
+
if (i === o.start.index)
|
|
3592
|
+
return [Pi(u[o.start.index]), r.originalText.slice(o.start.offset, o.end.offset), Pi(u[o.end.index])];
|
|
3593
|
+
if (o.start.index < i && i < o.end.index)
|
|
3594
|
+
return false;
|
|
3595
|
+
if (i === o.end.index)
|
|
3596
|
+
return n.shift(), false;
|
|
3597
|
+
}
|
|
3598
|
+
return t();
|
|
3599
|
+
} });
|
|
3600
|
+
}
|
|
3601
|
+
function $(e, r, t, n = {}) {
|
|
3602
|
+
let { processor: a = t } = n, u = [];
|
|
3603
|
+
return e.each(() => {
|
|
3604
|
+
let i = a(e);
|
|
3605
|
+
i !== false && (u.length > 0 && hf(e) && (u.push(P), (df(e, r) || Ni(e)) && u.push(P), Ni(e) && u.push(P)), u.push(i));
|
|
3606
|
+
}, "children"), u;
|
|
3607
|
+
}
|
|
3608
|
+
function Pi(e) {
|
|
3609
|
+
if (e.type === "html")
|
|
3610
|
+
return e.value;
|
|
3611
|
+
if (e.type === "paragraph" && Array.isArray(e.children) && e.children.length === 1 && e.children[0].type === "esComment")
|
|
3612
|
+
return ["{/* ", e.children[0].value, " */}"];
|
|
3613
|
+
}
|
|
3614
|
+
function qt(e) {
|
|
3615
|
+
let r;
|
|
3616
|
+
if (e.type === "html")
|
|
3617
|
+
r = e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);
|
|
3618
|
+
else {
|
|
3619
|
+
let t;
|
|
3620
|
+
e.type === "esComment" ? t = e : e.type === "paragraph" && e.children.length === 1 && e.children[0].type === "esComment" && (t = e.children[0]), t && (r = t.value.match(/^prettier-ignore(?:-(start|end))?$/u));
|
|
3621
|
+
}
|
|
3622
|
+
return r ? r[1] || "next" : false;
|
|
3623
|
+
}
|
|
3624
|
+
function hf({ node: e, parent: r }) {
|
|
3625
|
+
let t = vt.has(e.type), n = e.type === "html" && Lr.has(r.type);
|
|
3626
|
+
return !t && !n;
|
|
3627
|
+
}
|
|
3628
|
+
function Ii(e, r) {
|
|
3629
|
+
return e.type === "listItem" && (e.spread || r.originalText.charAt(e.position.end.offset - 1) === `
|
|
3630
|
+
`);
|
|
3631
|
+
}
|
|
3632
|
+
function df({ node: e, previous: r, parent: t }, n) {
|
|
3633
|
+
if (Ii(r, n))
|
|
3634
|
+
return true;
|
|
3635
|
+
let i = r.type === e.type && cf.has(e.type), o = t.type === "listItem" && !Ii(t, n), s = qt(r) === "next", l = e.type === "html" && r.type === "html" && r.position.end.line + 1 === e.position.start.line, c = e.type === "html" && t.type === "listItem" && r.type === "paragraph" && r.position.end.line + 1 === e.position.start.line;
|
|
3636
|
+
return !(i || o || s || l || c);
|
|
3637
|
+
}
|
|
3638
|
+
function Ni({ node: e, previous: r }) {
|
|
3639
|
+
let t = r.type === "list", n = e.type === "code" && e.isIndented;
|
|
3640
|
+
return t && n;
|
|
3641
|
+
}
|
|
3642
|
+
function mf(e) {
|
|
3643
|
+
let r = e.findAncestor((t) => t.type === "linkReference" || t.type === "imageReference");
|
|
3644
|
+
return r && (r.type !== "linkReference" || r.referenceType !== "full");
|
|
3645
|
+
}
|
|
3646
|
+
var Ff = (e, r) => {
|
|
3647
|
+
for (let t of r)
|
|
3648
|
+
e = N(false, e, t, encodeURIComponent(t));
|
|
3649
|
+
return e;
|
|
3650
|
+
};
|
|
3651
|
+
function Bt(e, r = []) {
|
|
3652
|
+
let t = [" ", ...Array.isArray(r) ? r : [r]];
|
|
3653
|
+
return new RegExp(t.map((n) => le(n)).join("|"), "u").test(e) ? `<${Ff(e, "<>")}>` : e;
|
|
3654
|
+
}
|
|
3655
|
+
function Rr(e, r, t = true) {
|
|
3656
|
+
if (!e)
|
|
3657
|
+
return "";
|
|
3658
|
+
if (t)
|
|
3659
|
+
return " " + Rr(e, r, false);
|
|
3660
|
+
if (e = N(false, e, /\\(?=["')])/gu, ""), e.includes('"') && e.includes("'") && !e.includes(")"))
|
|
3661
|
+
return `(${e})`;
|
|
3662
|
+
let n = ri(e, r.singleQuote);
|
|
3663
|
+
return e = N(false, e, "\\", "\\\\"), e = N(false, e, n, `\\${n}`), `${n}${e}${n}`;
|
|
3664
|
+
}
|
|
3665
|
+
function gf(e, r, t) {
|
|
3666
|
+
return Math.max(r, Math.min(e, t));
|
|
3667
|
+
}
|
|
3668
|
+
function vf(e) {
|
|
3669
|
+
return e.index > 0 && qt(e.previous) === "next";
|
|
3670
|
+
}
|
|
3671
|
+
function Tt(e) {
|
|
3672
|
+
return `[${(0, Ui.default)(e.label)}]`;
|
|
3673
|
+
}
|
|
3674
|
+
function Ri(e) {
|
|
3675
|
+
return `[^${e.label}]`;
|
|
3676
|
+
}
|
|
3677
|
+
var Ef = { preprocess: Ti, print: lf, embed: di, massageAstNode: ci, hasPrettierIgnore: vf, insertPragma: ai, getVisitorKeys: gi }, Mi = Ef;
|
|
3678
|
+
var zi = [{ linguistLanguageId: 222, name: "Markdown", type: "prose", color: "#083fa1", aliases: ["md", "pandoc"], aceMode: "markdown", codemirrorMode: "gfm", codemirrorMimeType: "text/x-gfm", wrap: true, extensions: [".md", ".livemd", ".markdown", ".mdown", ".mdwn", ".mkd", ".mkdn", ".mkdown", ".ronn", ".scd", ".workbook"], filenames: ["contents.lr", "README"], tmScope: "text.md", parsers: ["markdown"], vscodeLanguageIds: ["markdown"] }, { linguistLanguageId: 222, name: "MDX", type: "prose", color: "#083fa1", aliases: ["md", "pandoc"], aceMode: "markdown", codemirrorMode: "gfm", codemirrorMimeType: "text/x-gfm", wrap: true, extensions: [".mdx"], filenames: [], tmScope: "text.md", parsers: ["mdx"], vscodeLanguageIds: ["mdx"] }];
|
|
3679
|
+
var _t = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, objectWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap object literals.", choices: [{ value: "preserve", description: "Keep as multi-line, if there is a newline between the opening brace and first property." }, { value: "collapse", description: "Fit to a single line when possible." }] }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
|
|
3680
|
+
var Cf = { proseWrap: _t.proseWrap, singleQuote: _t.singleQuote }, Yi = Cf;
|
|
3681
|
+
var Mn = {};
|
|
3682
|
+
Gn(Mn, { markdown: () => Nm, mdx: () => Rm, remark: () => Nm });
|
|
3683
|
+
var il = Ue(Vi(), 1), ul = Ue(iu(), 1), al = Ue(Zs(), 1), ol = Ue($c(), 1);
|
|
3684
|
+
var Tm = /^import\s/u, qm = /^export\s/u, Wc = String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`, Hc = /<!---->|<!---?[^>-](?:-?[^-])*-->/u, _m = /^\{\s*\/\*(.*)\*\/\s*\}/u, Sm = `
|
|
3685
|
+
|
|
3686
|
+
`, Kc = (e) => Tm.test(e), Un = (e) => qm.test(e), Jc = (e, r) => {
|
|
3687
|
+
let t = r.indexOf(Sm), n = r.slice(0, t);
|
|
3688
|
+
if (Un(n) || Kc(n))
|
|
3689
|
+
return e(n)({ type: Un(n) ? "export" : "import", value: n });
|
|
3690
|
+
}, Xc = (e, r) => {
|
|
3691
|
+
let t = _m.exec(r);
|
|
3692
|
+
if (t)
|
|
3693
|
+
return e(t[0])({ type: "esComment", value: t[1].trim() });
|
|
3694
|
+
};
|
|
3695
|
+
Jc.locator = (e) => Un(e) || Kc(e) ? -1 : 1;
|
|
3696
|
+
Xc.locator = (e, r) => e.indexOf("{", r);
|
|
3697
|
+
var Qc = function() {
|
|
3698
|
+
let { Parser: e } = this, { blockTokenizers: r, blockMethods: t, inlineTokenizers: n, inlineMethods: a } = e.prototype;
|
|
3699
|
+
r.esSyntax = Jc, n.esComment = Xc, t.splice(t.indexOf("paragraph"), 0, "esSyntax"), a.splice(a.indexOf("text"), 0, "esComment");
|
|
3700
|
+
};
|
|
3701
|
+
var Om = function() {
|
|
3702
|
+
let e = this.Parser.prototype;
|
|
3703
|
+
e.blockMethods = ["frontMatter", ...e.blockMethods], e.blockTokenizers.frontMatter = r;
|
|
3704
|
+
function r(t, n) {
|
|
3705
|
+
let a = or(n);
|
|
3706
|
+
if (a.frontMatter)
|
|
3707
|
+
return t(a.frontMatter.raw)(a.frontMatter);
|
|
3708
|
+
}
|
|
3709
|
+
r.onlyAtStart = true;
|
|
3710
|
+
}, Zc = Om;
|
|
3711
|
+
function Lm() {
|
|
3712
|
+
return (e) => Ae(e, (r, t, [n]) => r.type !== "html" || Hc.test(r.value) || Lr.has(n.type) ? r : { ...r, type: "jsx" });
|
|
3713
|
+
}
|
|
3714
|
+
var el = Lm;
|
|
3715
|
+
var Pm = function() {
|
|
3716
|
+
let e = this.Parser.prototype, r = e.inlineMethods;
|
|
3717
|
+
r.splice(r.indexOf("text"), 0, "liquid"), e.inlineTokenizers.liquid = t;
|
|
3718
|
+
function t(n, a) {
|
|
3719
|
+
let u = a.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);
|
|
3720
|
+
if (u)
|
|
3721
|
+
return n(u[0])({ type: "liquidNode", value: u[0] });
|
|
3722
|
+
}
|
|
3723
|
+
t.locator = function(n, a) {
|
|
3724
|
+
return n.indexOf("{", a);
|
|
3725
|
+
};
|
|
3726
|
+
}, rl = Pm;
|
|
3727
|
+
var Im = function() {
|
|
3728
|
+
let e = "wikiLink", r = /^\[\[(?<linkContents>.+?)\]\]/su, t = this.Parser.prototype, n = t.inlineMethods;
|
|
3729
|
+
n.splice(n.indexOf("link"), 0, e), t.inlineTokenizers.wikiLink = a;
|
|
3730
|
+
function a(u, i) {
|
|
3731
|
+
let o = r.exec(i);
|
|
3732
|
+
if (o) {
|
|
3733
|
+
let s = o.groups.linkContents.trim();
|
|
3734
|
+
return u(o[0])({ type: e, value: s });
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
a.locator = function(u, i) {
|
|
3738
|
+
return u.indexOf("[", i);
|
|
3739
|
+
};
|
|
3740
|
+
}, tl = Im;
|
|
3741
|
+
function sl({ isMDX: e }) {
|
|
3742
|
+
return (r) => {
|
|
3743
|
+
let t = (0, ol.default)().use(al.default, { commonmark: true, ...e && { blocks: [Wc] } }).use(il.default).use(Zc).use(ul.default).use(e ? Qc : nl).use(rl).use(e ? el : nl).use(tl);
|
|
3744
|
+
return t.run(t.parse(r));
|
|
3745
|
+
};
|
|
3746
|
+
}
|
|
3747
|
+
function nl() {
|
|
3748
|
+
}
|
|
3749
|
+
var cl = { astFormat: "mdast", hasPragma: ui, locStart: Oe, locEnd: Le }, Nm = { ...cl, parse: sl({ isMDX: false }) }, Rm = { ...cl, parse: sl({ isMDX: true }) };
|
|
3750
|
+
var Um = { mdast: Mi };
|
|
3751
|
+
var OC = zn;
|
|
3752
|
+
export {
|
|
3753
|
+
OC as default,
|
|
3754
|
+
zi as languages,
|
|
3755
|
+
Yi as options,
|
|
3756
|
+
Mn as parsers,
|
|
3757
|
+
Um as printers
|
|
3758
|
+
};
|
|
3759
|
+
//# sourceMappingURL=markdown-1d9e6c3f.js.map
|