ct-rich-text-editor 1.2.4 → 1.2.5
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/assets/style.css +5319 -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/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-7c4c0170.js +655 -0
- package/dist/index-7c4c0170.js.map +1 -0
- package/dist/index-c98eb13a.js +27325 -0
- package/dist/index-c98eb13a.js.map +1 -0
- package/dist/index.js +48 -15
- package/dist/index.js.map +1 -1
- package/dist/markdown-1d9e6c3f.js +3759 -0
- package/dist/markdown-1d9e6c3f.js.map +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/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
|
@@ -1,3548 +0,0 @@
|
|
|
1
|
-
var Wt = Object.defineProperty;
|
|
2
|
-
var _t = (u, e, t) => e in u ? Wt(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
|
|
3
|
-
var we = (u, e, t) => (_t(u, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
var Jt = Object.create, Ie = Object.defineProperty, Kt = Object.getOwnPropertyDescriptor, Yt = Object.getOwnPropertyNames, Qt = Object.getPrototypeOf, Zt = Object.prototype.hasOwnProperty, pt = (u) => {
|
|
5
|
-
throw TypeError(u);
|
|
6
|
-
}, R = (u, e) => () => (e || u((e = { exports: {} }).exports, e), e.exports), ht = (u, e) => {
|
|
7
|
-
for (var t in e)
|
|
8
|
-
Ie(u, t, { get: e[t], enumerable: !0 });
|
|
9
|
-
}, Xt = (u, e, t, n) => {
|
|
10
|
-
if (e && typeof e == "object" || typeof e == "function")
|
|
11
|
-
for (let i of Yt(e))
|
|
12
|
-
!Zt.call(u, i) && i !== t && Ie(u, i, { get: () => e[i], enumerable: !(n = Kt(e, i)) || n.enumerable });
|
|
13
|
-
return u;
|
|
14
|
-
}, Uu = (u, e, t) => (t = u != null ? Jt(Qt(u)) : {}, Xt(e || !u || !u.__esModule ? Ie(t, "default", { value: u, enumerable: !0 }) : t, u)), dt = (u, e, t) => e.has(u) || pt("Cannot " + t), ku = (u, e, t) => (dt(u, e, "read from private field"), t ? t.call(u) : e.get(u)), ur = (u, e, t) => e.has(u) ? pt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(u) : e.set(u, t), er = (u, e, t, n) => (dt(u, e, "write to private field"), n ? n.call(u, t) : e.set(u, t), t), Pe = R((u, e) => {
|
|
15
|
-
e.exports = t;
|
|
16
|
-
function t(n) {
|
|
17
|
-
return String(n).replace(/\s+/g, " ");
|
|
18
|
-
}
|
|
19
|
-
}), tr = R((u, e) => {
|
|
20
|
-
e.exports = p;
|
|
21
|
-
var t = 9, n = 10, i = 32, r = 33, o = 58, a = 91, D = 92, s = 93, l = 94, c = 96, f = 4, h = 1024;
|
|
22
|
-
function p(d) {
|
|
23
|
-
var C = this.Parser, E = this.Compiler;
|
|
24
|
-
m(C) && v(C, d), A(E) && F(E);
|
|
25
|
-
}
|
|
26
|
-
function m(d) {
|
|
27
|
-
return !!(d && d.prototype && d.prototype.blockTokenizers);
|
|
28
|
-
}
|
|
29
|
-
function A(d) {
|
|
30
|
-
return !!(d && d.prototype && d.prototype.visitors);
|
|
31
|
-
}
|
|
32
|
-
function v(d, C) {
|
|
33
|
-
for (var E = C || {}, y = d.prototype, w = y.blockTokenizers, O = y.inlineTokenizers, b = y.blockMethods, k = y.inlineMethods, L = w.definition, I = O.reference, x = [], S = -1, U = b.length, $; ++S < U; )
|
|
34
|
-
$ = b[S], !($ === "newline" || $ === "indentedCode" || $ === "paragraph" || $ === "footnoteDefinition") && x.push([$]);
|
|
35
|
-
x.push(["footnoteDefinition"]), E.inlineNotes && (B(k, "reference", "inlineNote"), O.inlineNote = J), B(b, "definition", "footnoteDefinition"), B(k, "reference", "footnoteCall"), w.definition = T, w.footnoteDefinition = M, O.footnoteCall = q, O.reference = j, y.interruptFootnoteDefinition = x, j.locator = I.locator, q.locator = z, J.locator = V;
|
|
36
|
-
function M(N, P, G) {
|
|
37
|
-
for (var H = this, K = H.interruptFootnoteDefinition, Y = H.offset, eu = P.length + 1, W = 0, X = [], su, lu, uu, _, Q, pu, yu, hu, Fu, nu, du, tu, Z; W < eu && (_ = P.charCodeAt(W), !(_ !== t && _ !== i)); )
|
|
38
|
-
W++;
|
|
39
|
-
if (P.charCodeAt(W++) === a && P.charCodeAt(W++) === l) {
|
|
40
|
-
for (lu = W; W < eu; ) {
|
|
41
|
-
if (_ = P.charCodeAt(W), _ !== _ || _ === n || _ === t || _ === i)
|
|
42
|
-
return;
|
|
43
|
-
if (_ === s) {
|
|
44
|
-
uu = W, W++;
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
W++;
|
|
48
|
-
}
|
|
49
|
-
if (!(uu === void 0 || lu === uu || P.charCodeAt(W++) !== o)) {
|
|
50
|
-
if (G)
|
|
51
|
-
return !0;
|
|
52
|
-
for (su = P.slice(lu, uu), Q = N.now(), Fu = 0, nu = 0, du = W, tu = []; W < eu; ) {
|
|
53
|
-
if (_ = P.charCodeAt(W), _ !== _ || _ === n)
|
|
54
|
-
Z = { start: Fu, contentStart: du || W, contentEnd: W, end: W }, tu.push(Z), _ === n && (Fu = W + 1, nu = 0, du = void 0, Z.end = Fu);
|
|
55
|
-
else if (nu !== void 0)
|
|
56
|
-
if (_ === i || _ === t)
|
|
57
|
-
nu += _ === i ? 1 : f - nu % f, nu > f && (nu = void 0, du = W);
|
|
58
|
-
else {
|
|
59
|
-
if (nu < f && Z && (Z.contentStart === Z.contentEnd || g(K, w, H, [N, P.slice(W, h), !0])))
|
|
60
|
-
break;
|
|
61
|
-
nu = void 0, du = W;
|
|
62
|
-
}
|
|
63
|
-
W++;
|
|
64
|
-
}
|
|
65
|
-
for (W = -1, eu = tu.length; eu > 0 && (Z = tu[eu - 1], Z.contentStart === Z.contentEnd); )
|
|
66
|
-
eu--;
|
|
67
|
-
for (pu = N(P.slice(0, Z.contentEnd)); ++W < eu; )
|
|
68
|
-
Z = tu[W], Y[Q.line + W] = (Y[Q.line + W] || 0) + (Z.contentStart - Z.start), X.push(P.slice(Z.contentStart, Z.end));
|
|
69
|
-
return yu = H.enterBlock(), hu = H.tokenizeBlock(X.join(""), Q), yu(), pu({ type: "footnoteDefinition", identifier: su.toLowerCase(), label: su, children: hu });
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function q(N, P, G) {
|
|
74
|
-
var H = P.length + 1, K = 0, Y, eu, W, X;
|
|
75
|
-
if (P.charCodeAt(K++) === a && P.charCodeAt(K++) === l) {
|
|
76
|
-
for (eu = K; K < H; ) {
|
|
77
|
-
if (X = P.charCodeAt(K), X !== X || X === n || X === t || X === i)
|
|
78
|
-
return;
|
|
79
|
-
if (X === s) {
|
|
80
|
-
W = K, K++;
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
K++;
|
|
84
|
-
}
|
|
85
|
-
if (!(W === void 0 || eu === W))
|
|
86
|
-
return G ? !0 : (Y = P.slice(eu, W), N(P.slice(0, K))({ type: "footnoteReference", identifier: Y.toLowerCase(), label: Y }));
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function J(N, P, G) {
|
|
90
|
-
var H = this, K = P.length + 1, Y = 0, eu = 0, W, X, su, lu, uu, _, Q;
|
|
91
|
-
if (P.charCodeAt(Y++) === l && P.charCodeAt(Y++) === a) {
|
|
92
|
-
for (su = Y; Y < K; ) {
|
|
93
|
-
if (X = P.charCodeAt(Y), X !== X)
|
|
94
|
-
return;
|
|
95
|
-
if (_ === void 0)
|
|
96
|
-
if (X === D)
|
|
97
|
-
Y += 2;
|
|
98
|
-
else if (X === a)
|
|
99
|
-
eu++, Y++;
|
|
100
|
-
else if (X === s)
|
|
101
|
-
if (eu === 0) {
|
|
102
|
-
lu = Y, Y++;
|
|
103
|
-
break;
|
|
104
|
-
} else
|
|
105
|
-
eu--, Y++;
|
|
106
|
-
else if (X === c) {
|
|
107
|
-
for (uu = Y, _ = 1; P.charCodeAt(uu + _) === c; )
|
|
108
|
-
_++;
|
|
109
|
-
Y += _;
|
|
110
|
-
} else
|
|
111
|
-
Y++;
|
|
112
|
-
else if (X === c) {
|
|
113
|
-
for (uu = Y, Q = 1; P.charCodeAt(uu + Q) === c; )
|
|
114
|
-
Q++;
|
|
115
|
-
Y += Q, _ === Q && (_ = void 0), Q = void 0;
|
|
116
|
-
} else
|
|
117
|
-
Y++;
|
|
118
|
-
}
|
|
119
|
-
if (lu !== void 0)
|
|
120
|
-
return G ? !0 : (W = N.now(), W.column += 2, W.offset += 2, N(P.slice(0, Y))({ type: "footnote", children: H.tokenizeInline(P.slice(su, lu), W) }));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
function j(N, P, G) {
|
|
124
|
-
var H = 0;
|
|
125
|
-
if (P.charCodeAt(H) === r && H++, P.charCodeAt(H) === a && P.charCodeAt(H + 1) !== l)
|
|
126
|
-
return I.call(this, N, P, G);
|
|
127
|
-
}
|
|
128
|
-
function T(N, P, G) {
|
|
129
|
-
for (var H = 0, K = P.charCodeAt(H); K === i || K === t; )
|
|
130
|
-
K = P.charCodeAt(++H);
|
|
131
|
-
if (K === a && P.charCodeAt(H + 1) !== l)
|
|
132
|
-
return L.call(this, N, P, G);
|
|
133
|
-
}
|
|
134
|
-
function z(N, P) {
|
|
135
|
-
return N.indexOf("[", P);
|
|
136
|
-
}
|
|
137
|
-
function V(N, P) {
|
|
138
|
-
return N.indexOf("^[", P);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function F(d) {
|
|
142
|
-
var C = d.prototype.visitors, E = " ";
|
|
143
|
-
C.footnote = y, C.footnoteReference = w, C.footnoteDefinition = O;
|
|
144
|
-
function y(b) {
|
|
145
|
-
return "^[" + this.all(b).join("") + "]";
|
|
146
|
-
}
|
|
147
|
-
function w(b) {
|
|
148
|
-
return "[^" + (b.label || b.identifier) + "]";
|
|
149
|
-
}
|
|
150
|
-
function O(b) {
|
|
151
|
-
for (var k = this.all(b).join(`
|
|
152
|
-
|
|
153
|
-
`).split(`
|
|
154
|
-
`), L = 0, I = k.length, x; ++L < I; )
|
|
155
|
-
x = k[L], x !== "" && (k[L] = E + x);
|
|
156
|
-
return "[^" + (b.label || b.identifier) + "]: " + k.join(`
|
|
157
|
-
`);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function B(d, C, E) {
|
|
161
|
-
d.splice(d.indexOf(C), 0, E);
|
|
162
|
-
}
|
|
163
|
-
function g(d, C, E, y) {
|
|
164
|
-
for (var w = d.length, O = -1; ++O < w; )
|
|
165
|
-
if (C[d[O][0]].apply(E, y))
|
|
166
|
-
return !0;
|
|
167
|
-
return !1;
|
|
168
|
-
}
|
|
169
|
-
}), Ft = R((u) => {
|
|
170
|
-
u.isRemarkParser = e, u.isRemarkCompiler = t;
|
|
171
|
-
function e(n) {
|
|
172
|
-
return !!(n && n.prototype && n.prototype.blockTokenizers);
|
|
173
|
-
}
|
|
174
|
-
function t(n) {
|
|
175
|
-
return !!(n && n.prototype && n.prototype.visitors);
|
|
176
|
-
}
|
|
177
|
-
}), rr = R((u, e) => {
|
|
178
|
-
var t = Ft();
|
|
179
|
-
e.exports = c;
|
|
180
|
-
var n = 9, i = 32, r = 36, o = 48, a = 57, D = 92, s = ["math", "math-inline"], l = "math-display";
|
|
181
|
-
function c(p) {
|
|
182
|
-
let m = this.Parser, A = this.Compiler;
|
|
183
|
-
t.isRemarkParser(m) && f(m, p), t.isRemarkCompiler(A) && h(A);
|
|
184
|
-
}
|
|
185
|
-
function f(p, m) {
|
|
186
|
-
let A = p.prototype, v = A.inlineMethods;
|
|
187
|
-
B.locator = F, A.inlineTokenizers.math = B, v.splice(v.indexOf("text"), 0, "math");
|
|
188
|
-
function F(g, d) {
|
|
189
|
-
return g.indexOf("$", d);
|
|
190
|
-
}
|
|
191
|
-
function B(g, d, C) {
|
|
192
|
-
let E = d.length, y = !1, w = !1, O = 0, b, k, L, I, x, S, U;
|
|
193
|
-
if (d.charCodeAt(O) === D && (w = !0, O++), d.charCodeAt(O) === r) {
|
|
194
|
-
if (O++, w)
|
|
195
|
-
return C ? !0 : g(d.slice(0, O))({ type: "text", value: "$" });
|
|
196
|
-
if (d.charCodeAt(O) === r && (y = !0, O++), L = d.charCodeAt(O), !(L === i || L === n)) {
|
|
197
|
-
for (I = O; O < E; ) {
|
|
198
|
-
if (k = L, L = d.charCodeAt(O + 1), k === r) {
|
|
199
|
-
if (b = d.charCodeAt(O - 1), b !== i && b !== n && (L !== L || L < o || L > a) && (!y || L === r)) {
|
|
200
|
-
x = O - 1, O++, y && O++, S = O;
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
} else
|
|
204
|
-
k === D && (O++, L = d.charCodeAt(O + 1));
|
|
205
|
-
O++;
|
|
206
|
-
}
|
|
207
|
-
if (S !== void 0)
|
|
208
|
-
return C ? !0 : (U = d.slice(I, x + 1), g(d.slice(0, S))({ type: "inlineMath", value: U, data: { hName: "span", hProperties: { className: s.concat(y && m.inlineMathDouble ? [l] : []) }, hChildren: [{ type: "text", value: U }] } }));
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
function h(p) {
|
|
214
|
-
let m = p.prototype;
|
|
215
|
-
m.visitors.inlineMath = A;
|
|
216
|
-
function A(v) {
|
|
217
|
-
let F = "$";
|
|
218
|
-
return (v.data && v.data.hProperties && v.data.hProperties.className || []).includes(l) && (F = "$$"), F + v.value + F;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}), nr = R((u, e) => {
|
|
222
|
-
var t = Ft();
|
|
223
|
-
e.exports = l;
|
|
224
|
-
var n = 10, i = 32, r = 36, o = `
|
|
225
|
-
`, a = "$", D = 2, s = ["math", "math-display"];
|
|
226
|
-
function l() {
|
|
227
|
-
let h = this.Parser, p = this.Compiler;
|
|
228
|
-
t.isRemarkParser(h) && c(h), t.isRemarkCompiler(p) && f(p);
|
|
229
|
-
}
|
|
230
|
-
function c(h) {
|
|
231
|
-
let p = h.prototype, m = p.blockMethods, A = p.interruptParagraph, v = p.interruptList, F = p.interruptBlockquote;
|
|
232
|
-
p.blockTokenizers.math = B, m.splice(m.indexOf("fencedCode") + 1, 0, "math"), A.splice(A.indexOf("fencedCode") + 1, 0, ["math"]), v.splice(v.indexOf("fencedCode") + 1, 0, ["math"]), F.splice(F.indexOf("fencedCode") + 1, 0, ["math"]);
|
|
233
|
-
function B(g, d, C) {
|
|
234
|
-
var E = d.length, y = 0;
|
|
235
|
-
let w, O, b, k, L, I, x, S, U, $, M;
|
|
236
|
-
for (; y < E && d.charCodeAt(y) === i; )
|
|
237
|
-
y++;
|
|
238
|
-
for (L = y; y < E && d.charCodeAt(y) === r; )
|
|
239
|
-
y++;
|
|
240
|
-
if (I = y - L, !(I < D)) {
|
|
241
|
-
for (; y < E && d.charCodeAt(y) === i; )
|
|
242
|
-
y++;
|
|
243
|
-
for (x = y; y < E; ) {
|
|
244
|
-
if (w = d.charCodeAt(y), w === r)
|
|
245
|
-
return;
|
|
246
|
-
if (w === n)
|
|
247
|
-
break;
|
|
248
|
-
y++;
|
|
249
|
-
}
|
|
250
|
-
if (d.charCodeAt(y) === n) {
|
|
251
|
-
if (C)
|
|
252
|
-
return !0;
|
|
253
|
-
for (O = [], x !== y && O.push(d.slice(x, y)), y++, b = d.indexOf(o, y + 1), b = b === -1 ? E : b; y < E; ) {
|
|
254
|
-
for (S = !1, $ = y, M = b, k = b, U = 0; k > $ && d.charCodeAt(k - 1) === i; )
|
|
255
|
-
k--;
|
|
256
|
-
for (; k > $ && d.charCodeAt(k - 1) === r; )
|
|
257
|
-
U++, k--;
|
|
258
|
-
for (I <= U && d.indexOf(a, $) === k && (S = !0, M = k); $ <= M && $ - y < L && d.charCodeAt($) === i; )
|
|
259
|
-
$++;
|
|
260
|
-
if (S)
|
|
261
|
-
for (; M > $ && d.charCodeAt(M - 1) === i; )
|
|
262
|
-
M--;
|
|
263
|
-
if ((!S || $ !== M) && O.push(d.slice($, M)), S)
|
|
264
|
-
break;
|
|
265
|
-
y = b + 1, b = d.indexOf(o, y + 1), b = b === -1 ? E : b;
|
|
266
|
-
}
|
|
267
|
-
return O = O.join(`
|
|
268
|
-
`), g(d.slice(0, b))({ type: "math", value: O, data: { hName: "div", hProperties: { className: s.concat() }, hChildren: [{ type: "text", value: O }] } });
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
function f(h) {
|
|
274
|
-
let p = h.prototype;
|
|
275
|
-
p.visitors.math = m;
|
|
276
|
-
function m(A) {
|
|
277
|
-
return `$$
|
|
278
|
-
` + A.value + `
|
|
279
|
-
$$`;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}), ir = R((u, e) => {
|
|
283
|
-
var t = rr(), n = nr();
|
|
284
|
-
e.exports = i;
|
|
285
|
-
function i(r) {
|
|
286
|
-
var o = r || {};
|
|
287
|
-
n.call(this, o), t.call(this, o);
|
|
288
|
-
}
|
|
289
|
-
}), Vu = R((u, e) => {
|
|
290
|
-
e.exports = n;
|
|
291
|
-
var t = Object.prototype.hasOwnProperty;
|
|
292
|
-
function n() {
|
|
293
|
-
for (var i = {}, r = 0; r < arguments.length; r++) {
|
|
294
|
-
var o = arguments[r];
|
|
295
|
-
for (var a in o)
|
|
296
|
-
t.call(o, a) && (i[a] = o[a]);
|
|
297
|
-
}
|
|
298
|
-
return i;
|
|
299
|
-
}
|
|
300
|
-
}), or = R((u, e) => {
|
|
301
|
-
typeof Object.create == "function" ? e.exports = function(t, n) {
|
|
302
|
-
n && (t.super_ = n, t.prototype = Object.create(n.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }));
|
|
303
|
-
} : e.exports = function(t, n) {
|
|
304
|
-
if (n) {
|
|
305
|
-
t.super_ = n;
|
|
306
|
-
var i = function() {
|
|
307
|
-
};
|
|
308
|
-
i.prototype = n.prototype, t.prototype = new i(), t.prototype.constructor = t;
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
}), ar = R((u, e) => {
|
|
312
|
-
var t = Vu(), n = or();
|
|
313
|
-
e.exports = i;
|
|
314
|
-
function i(r) {
|
|
315
|
-
var o, a, D;
|
|
316
|
-
n(l, r), n(s, l), o = l.prototype;
|
|
317
|
-
for (a in o)
|
|
318
|
-
D = o[a], D && typeof D == "object" && (o[a] = "concat" in D ? D.concat() : t(D));
|
|
319
|
-
return l;
|
|
320
|
-
function s(c) {
|
|
321
|
-
return r.apply(this, c);
|
|
322
|
-
}
|
|
323
|
-
function l() {
|
|
324
|
-
return this instanceof l ? r.apply(this, arguments) : new s(arguments);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}), Dr = R((u, e) => {
|
|
328
|
-
e.exports = t;
|
|
329
|
-
function t(n, i, r) {
|
|
330
|
-
return o;
|
|
331
|
-
function o() {
|
|
332
|
-
var a = r || this, D = a[n];
|
|
333
|
-
return a[n] = !i, s;
|
|
334
|
-
function s() {
|
|
335
|
-
a[n] = D;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}), lr = R((u, e) => {
|
|
340
|
-
e.exports = t;
|
|
341
|
-
function t(n) {
|
|
342
|
-
for (var i = String(n), r = [], o = /\r?\n|\r/g; o.exec(i); )
|
|
343
|
-
r.push(o.lastIndex);
|
|
344
|
-
return r.push(i.length + 1), { toPoint: a, toPosition: a, toOffset: D };
|
|
345
|
-
function a(s) {
|
|
346
|
-
var l = -1;
|
|
347
|
-
if (s > -1 && s < r[r.length - 1]) {
|
|
348
|
-
for (; ++l < r.length; )
|
|
349
|
-
if (r[l] > s)
|
|
350
|
-
return { line: l + 1, column: s - (r[l - 1] || 0) + 1, offset: s };
|
|
351
|
-
}
|
|
352
|
-
return {};
|
|
353
|
-
}
|
|
354
|
-
function D(s) {
|
|
355
|
-
var l = s && s.line, c = s && s.column, f;
|
|
356
|
-
return !isNaN(l) && !isNaN(c) && l - 1 in r && (f = (r[l - 2] || 0) + c - 1 || 0), f > -1 && f < r[r.length - 1] ? f : -1;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}), sr = R((u, e) => {
|
|
360
|
-
e.exports = n;
|
|
361
|
-
var t = "\\";
|
|
362
|
-
function n(i, r) {
|
|
363
|
-
return o;
|
|
364
|
-
function o(a) {
|
|
365
|
-
for (var D = 0, s = a.indexOf(t), l = i[r], c = [], f; s !== -1; )
|
|
366
|
-
c.push(a.slice(D, s)), D = s + 1, f = a.charAt(D), (!f || l.indexOf(f) === -1) && c.push(t), s = a.indexOf(t, D + 1);
|
|
367
|
-
return c.push(a.slice(D)), c.join("");
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}), cr = R((u, e) => {
|
|
371
|
-
e.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: "ÿ" };
|
|
372
|
-
}), fr = R((u, e) => {
|
|
373
|
-
e.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: "Ÿ" };
|
|
374
|
-
}), Mu = R((u, e) => {
|
|
375
|
-
e.exports = t;
|
|
376
|
-
function t(n) {
|
|
377
|
-
var i = typeof n == "string" ? n.charCodeAt(0) : n;
|
|
378
|
-
return i >= 48 && i <= 57;
|
|
379
|
-
}
|
|
380
|
-
}), pr = R((u, e) => {
|
|
381
|
-
e.exports = t;
|
|
382
|
-
function t(n) {
|
|
383
|
-
var i = typeof n == "string" ? n.charCodeAt(0) : n;
|
|
384
|
-
return i >= 97 && i <= 102 || i >= 65 && i <= 70 || i >= 48 && i <= 57;
|
|
385
|
-
}
|
|
386
|
-
}), ne = R((u, e) => {
|
|
387
|
-
e.exports = t;
|
|
388
|
-
function t(n) {
|
|
389
|
-
var i = typeof n == "string" ? n.charCodeAt(0) : n;
|
|
390
|
-
return i >= 97 && i <= 122 || i >= 65 && i <= 90;
|
|
391
|
-
}
|
|
392
|
-
}), hr = R((u, e) => {
|
|
393
|
-
var t = ne(), n = Mu();
|
|
394
|
-
e.exports = i;
|
|
395
|
-
function i(r) {
|
|
396
|
-
return t(r) || n(r);
|
|
397
|
-
}
|
|
398
|
-
}), dr = R((u, e) => {
|
|
399
|
-
e.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: `
|
|
400
|
-
`, 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: "" };
|
|
401
|
-
}), Fr = R((u, e) => {
|
|
402
|
-
var t = dr();
|
|
403
|
-
e.exports = i;
|
|
404
|
-
var n = {}.hasOwnProperty;
|
|
405
|
-
function i(r) {
|
|
406
|
-
return n.call(t, r) ? t[r] : !1;
|
|
407
|
-
}
|
|
408
|
-
}), ve = R((u, e) => {
|
|
409
|
-
var t = cr(), n = fr(), i = Mu(), r = pr(), o = hr(), a = Fr();
|
|
410
|
-
e.exports = J;
|
|
411
|
-
var D = {}.hasOwnProperty, s = String.fromCharCode, l = Function.prototype, c = { warning: null, reference: null, text: null, warningContext: null, referenceContext: null, textContext: null, position: {}, additional: null, attribute: !1, nonTerminated: !0 }, f = 9, h = 10, p = 12, m = 32, A = 38, v = 59, F = 60, B = 61, g = 35, d = 88, C = 120, E = 65533, y = "named", w = "hexadecimal", O = "decimal", b = {};
|
|
412
|
-
b[w] = 16, b[O] = 10;
|
|
413
|
-
var k = {};
|
|
414
|
-
k[y] = o, k[O] = i, k[w] = r;
|
|
415
|
-
var L = 1, I = 2, x = 3, S = 4, U = 5, $ = 6, M = 7, q = {};
|
|
416
|
-
q[L] = "Named character references must be terminated by a semicolon", q[I] = "Numeric character references must be terminated by a semicolon", q[x] = "Named character references cannot be empty", q[S] = "Numeric character references cannot be empty", q[U] = "Named character references must be known", q[$] = "Numeric character references cannot be disallowed", q[M] = "Numeric character references cannot be outside the permissible Unicode range";
|
|
417
|
-
function J(V, N) {
|
|
418
|
-
var P = {}, G, H;
|
|
419
|
-
N || (N = {});
|
|
420
|
-
for (H in c)
|
|
421
|
-
G = N[H], P[H] = G ?? c[H];
|
|
422
|
-
return (P.position.indent || P.position.start) && (P.indent = P.position.indent || [], P.position = P.position.start), j(V, P);
|
|
423
|
-
}
|
|
424
|
-
function j(V, N) {
|
|
425
|
-
var P = N.additional, G = N.nonTerminated, H = N.text, K = N.reference, Y = N.warning, eu = N.textContext, W = N.referenceContext, X = N.warningContext, su = N.position, lu = N.indent || [], uu = V.length, _ = 0, Q = -1, pu = su.column || 1, yu = su.line || 1, hu = "", Fu = [], nu, du, tu, Z, wu, ou, ru, Eu, se, be, Tu, Ku, Nu, vu, He, Yu, ce, gu, au;
|
|
426
|
-
for (typeof P == "string" && (P = P.charCodeAt(0)), Yu = Qu(), Eu = Y ? Ht : l, _--, uu++; ++_ < uu; )
|
|
427
|
-
if (wu === h && (pu = lu[Q] || 1), wu = V.charCodeAt(_), wu === A) {
|
|
428
|
-
if (ru = V.charCodeAt(_ + 1), ru === f || ru === h || ru === p || ru === m || ru === A || ru === F || ru !== ru || P && ru === P) {
|
|
429
|
-
hu += s(wu), pu++;
|
|
430
|
-
continue;
|
|
431
|
-
}
|
|
432
|
-
for (Nu = _ + 1, Ku = Nu, au = Nu, ru === g ? (au = ++Ku, ru = V.charCodeAt(au), ru === d || ru === C ? (vu = w, au = ++Ku) : vu = O) : vu = y, nu = "", Tu = "", Z = "", He = k[vu], au--; ++au < uu && (ru = V.charCodeAt(au), !!He(ru)); )
|
|
433
|
-
Z += s(ru), vu === y && D.call(t, Z) && (nu = Z, Tu = t[Z]);
|
|
434
|
-
tu = V.charCodeAt(au) === v, tu && (au++, du = vu === y ? a(Z) : !1, du && (nu = Z, Tu = du)), gu = 1 + au - Nu, !tu && !G || (Z ? vu === y ? (tu && !Tu ? Eu(U, 1) : (nu !== Z && (au = Ku + nu.length, gu = 1 + au - Ku, tu = !1), tu || (se = nu ? L : x, N.attribute ? (ru = V.charCodeAt(au), ru === B ? (Eu(se, gu), Tu = null) : o(ru) ? Tu = null : Eu(se, gu)) : Eu(se, gu))), ou = Tu) : (tu || Eu(I, gu), ou = parseInt(Z, b[vu]), T(ou) ? (Eu(M, gu), ou = s(E)) : ou in n ? (Eu($, gu), ou = n[ou]) : (be = "", z(ou) && Eu($, gu), ou > 65535 && (ou -= 65536, be += s(ou >>> 10 | 55296), ou = 56320 | ou & 1023), ou = be + s(ou))) : vu !== y && Eu(S, gu)), ou ? (We(), Yu = Qu(), _ = au - 1, pu += au - Nu + 1, Fu.push(ou), ce = Qu(), ce.offset++, K && K.call(W, ou, { start: Yu, end: ce }, V.slice(Nu - 1, au)), Yu = ce) : (Z = V.slice(Nu - 1, au), hu += Z, pu += Z.length, _ = au - 1);
|
|
435
|
-
} else
|
|
436
|
-
wu === 10 && (yu++, Q++, pu = 0), wu === wu ? (hu += s(wu), pu++) : We();
|
|
437
|
-
return Fu.join("");
|
|
438
|
-
function Qu() {
|
|
439
|
-
return { line: yu, column: pu, offset: _ + (su.offset || 0) };
|
|
440
|
-
}
|
|
441
|
-
function Ht(_e, Je) {
|
|
442
|
-
var ye = Qu();
|
|
443
|
-
ye.column += Je, ye.offset += Je, Y.call(X, q[_e], ye, _e);
|
|
444
|
-
}
|
|
445
|
-
function We() {
|
|
446
|
-
hu && (Fu.push(hu), H && H.call(eu, hu, { start: Yu, end: Qu() }), hu = "");
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
function T(V) {
|
|
450
|
-
return V >= 55296 && V <= 57343 || V > 1114111;
|
|
451
|
-
}
|
|
452
|
-
function z(V) {
|
|
453
|
-
return V >= 1 && V <= 8 || V === 11 || V >= 13 && V <= 31 || V >= 127 && V <= 159 || V >= 64976 && V <= 65007 || (V & 65535) === 65535 || (V & 65535) === 65534;
|
|
454
|
-
}
|
|
455
|
-
}), Cr = R((u, e) => {
|
|
456
|
-
var t = Vu(), n = ve();
|
|
457
|
-
e.exports = i;
|
|
458
|
-
function i(r) {
|
|
459
|
-
return a.raw = D, a;
|
|
460
|
-
function o(l) {
|
|
461
|
-
for (var c = r.offset, f = l.line, h = []; ++f && f in c; )
|
|
462
|
-
h.push((c[f] || 0) + 1);
|
|
463
|
-
return { start: l, indent: h };
|
|
464
|
-
}
|
|
465
|
-
function a(l, c, f) {
|
|
466
|
-
n(l, { position: o(c), warning: s, text: f, reference: f, textContext: r, referenceContext: r });
|
|
467
|
-
}
|
|
468
|
-
function D(l, c, f) {
|
|
469
|
-
return n(l, t(f, { position: o(c), warning: s }));
|
|
470
|
-
}
|
|
471
|
-
function s(l, c, f) {
|
|
472
|
-
f !== 3 && r.file.message(l, c);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}), Ar = R((u, e) => {
|
|
476
|
-
e.exports = t;
|
|
477
|
-
function t(o) {
|
|
478
|
-
return a;
|
|
479
|
-
function a(D, s) {
|
|
480
|
-
var l = this, c = l.offset, f = [], h = l[o + "Methods"], p = l[o + "Tokenizers"], m = s.line, A = s.column, v, F, B, g, d, C;
|
|
481
|
-
if (!D)
|
|
482
|
-
return f;
|
|
483
|
-
for (I.now = w, I.file = l.file, E(""); D; ) {
|
|
484
|
-
for (v = -1, F = h.length, d = !1; ++v < F && (g = h[v], B = p[g], !(B && (!B.onlyAtStart || l.atStart) && (!B.notInList || !l.inList) && (!B.notInBlock || !l.inBlock) && (!B.notInLink || !l.inLink) && (C = D.length, B.apply(l, [I, D]), d = C !== D.length, d))); )
|
|
485
|
-
;
|
|
486
|
-
d || l.file.fail(new Error("Infinite loop"), I.now());
|
|
487
|
-
}
|
|
488
|
-
return l.eof = w(), f;
|
|
489
|
-
function E(x) {
|
|
490
|
-
for (var S = -1, U = x.indexOf(`
|
|
491
|
-
`); U !== -1; )
|
|
492
|
-
m++, S = U, U = x.indexOf(`
|
|
493
|
-
`, U + 1);
|
|
494
|
-
S === -1 ? A += x.length : A = x.length - S, m in c && (S !== -1 ? A += c[m] : A <= c[m] && (A = c[m] + 1));
|
|
495
|
-
}
|
|
496
|
-
function y() {
|
|
497
|
-
var x = [], S = m + 1;
|
|
498
|
-
return function() {
|
|
499
|
-
for (var U = m + 1; S < U; )
|
|
500
|
-
x.push((c[S] || 0) + 1), S++;
|
|
501
|
-
return x;
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
function w() {
|
|
505
|
-
var x = { line: m, column: A };
|
|
506
|
-
return x.offset = l.toOffset(x), x;
|
|
507
|
-
}
|
|
508
|
-
function O(x) {
|
|
509
|
-
this.start = x, this.end = w();
|
|
510
|
-
}
|
|
511
|
-
function b(x) {
|
|
512
|
-
D.slice(0, x.length) !== x && l.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"), w());
|
|
513
|
-
}
|
|
514
|
-
function k() {
|
|
515
|
-
var x = w();
|
|
516
|
-
return S;
|
|
517
|
-
function S(U, $) {
|
|
518
|
-
var M = U.position, q = M ? M.start : x, J = [], j = M && M.end.line, T = x.line;
|
|
519
|
-
if (U.position = new O(q), M && $ && M.indent) {
|
|
520
|
-
if (J = M.indent, j < T) {
|
|
521
|
-
for (; ++j < T; )
|
|
522
|
-
J.push((c[j] || 0) + 1);
|
|
523
|
-
J.push(x.column);
|
|
524
|
-
}
|
|
525
|
-
$ = J.concat($);
|
|
526
|
-
}
|
|
527
|
-
return U.position.indent = $ || [], U;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
function L(x, S) {
|
|
531
|
-
var U = S ? S.children : f, $ = U[U.length - 1], M;
|
|
532
|
-
return $ && x.type === $.type && (x.type === "text" || x.type === "blockquote") && n($) && n(x) && (M = x.type === "text" ? i : r, x = M.call(l, $, x)), x !== $ && U.push(x), l.atStart && f.length !== 0 && l.exitStart(), x;
|
|
533
|
-
}
|
|
534
|
-
function I(x) {
|
|
535
|
-
var S = y(), U = k(), $ = w();
|
|
536
|
-
return b(x), M.reset = q, q.test = J, M.test = J, D = D.slice(x.length), E(x), S = S(), M;
|
|
537
|
-
function M(j, T) {
|
|
538
|
-
return U(L(U(j), T), S);
|
|
539
|
-
}
|
|
540
|
-
function q() {
|
|
541
|
-
var j = M.apply(null, arguments);
|
|
542
|
-
return m = $.line, A = $.column, D = x + D, j;
|
|
543
|
-
}
|
|
544
|
-
function J() {
|
|
545
|
-
var j = U({});
|
|
546
|
-
return m = $.line, A = $.column, D = x + D, j.position;
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
function n(o) {
|
|
552
|
-
var a, D;
|
|
553
|
-
return o.type !== "text" || !o.position ? !0 : (a = o.position.start, D = o.position.end, a.line !== D.line || D.column - a.column === o.value.length);
|
|
554
|
-
}
|
|
555
|
-
function i(o, a) {
|
|
556
|
-
return o.value += a.value, o;
|
|
557
|
-
}
|
|
558
|
-
function r(o, a) {
|
|
559
|
-
return this.options.commonmark || this.options.gfm ? a : (o.children = o.children.concat(a.children), o);
|
|
560
|
-
}
|
|
561
|
-
}), Er = R((u, e) => {
|
|
562
|
-
e.exports = r;
|
|
563
|
-
var t = ["\\", "`", "*", "{", "}", "[", "]", "(", ")", "#", "+", "-", ".", "!", "_", ">"], n = t.concat(["~", "|"]), i = n.concat([`
|
|
564
|
-
`, '"', "$", "%", "&", "'", ",", "/", ":", ";", "<", "=", "?", "@", "^"]);
|
|
565
|
-
r.default = t, r.gfm = n, r.commonmark = i;
|
|
566
|
-
function r(o) {
|
|
567
|
-
var a = o || {};
|
|
568
|
-
return a.commonmark ? i : a.gfm ? n : t;
|
|
569
|
-
}
|
|
570
|
-
}), gr = R((u, e) => {
|
|
571
|
-
e.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"];
|
|
572
|
-
}), Ct = R((u, e) => {
|
|
573
|
-
e.exports = { position: !0, gfm: !0, commonmark: !1, pedantic: !1, blocks: gr() };
|
|
574
|
-
}), mr = R((u, e) => {
|
|
575
|
-
var t = Vu(), n = Er(), i = Ct();
|
|
576
|
-
e.exports = r;
|
|
577
|
-
function r(o) {
|
|
578
|
-
var a = this, D = a.options, s, l;
|
|
579
|
-
if (o == null)
|
|
580
|
-
o = {};
|
|
581
|
-
else if (typeof o == "object")
|
|
582
|
-
o = t(o);
|
|
583
|
-
else
|
|
584
|
-
throw new Error("Invalid value `" + o + "` for setting `options`");
|
|
585
|
-
for (s in i) {
|
|
586
|
-
if (l = o[s], l == null && (l = D[s]), s !== "blocks" && typeof l != "boolean" || s === "blocks" && typeof l != "object")
|
|
587
|
-
throw new Error("Invalid value `" + l + "` for setting `options." + s + "`");
|
|
588
|
-
o[s] = l;
|
|
589
|
-
}
|
|
590
|
-
return a.options = o, a.escape = n(o), a;
|
|
591
|
-
}
|
|
592
|
-
}), vr = R((u, e) => {
|
|
593
|
-
e.exports = t;
|
|
594
|
-
function t(a) {
|
|
595
|
-
if (a == null)
|
|
596
|
-
return o;
|
|
597
|
-
if (typeof a == "string")
|
|
598
|
-
return r(a);
|
|
599
|
-
if (typeof a == "object")
|
|
600
|
-
return "length" in a ? i(a) : n(a);
|
|
601
|
-
if (typeof a == "function")
|
|
602
|
-
return a;
|
|
603
|
-
throw new Error("Expected function, string, or object as test");
|
|
604
|
-
}
|
|
605
|
-
function n(a) {
|
|
606
|
-
return D;
|
|
607
|
-
function D(s) {
|
|
608
|
-
var l;
|
|
609
|
-
for (l in a)
|
|
610
|
-
if (s[l] !== a[l])
|
|
611
|
-
return !1;
|
|
612
|
-
return !0;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
function i(a) {
|
|
616
|
-
for (var D = [], s = -1; ++s < a.length; )
|
|
617
|
-
D[s] = t(a[s]);
|
|
618
|
-
return l;
|
|
619
|
-
function l() {
|
|
620
|
-
for (var c = -1; ++c < D.length; )
|
|
621
|
-
if (D[c].apply(this, arguments))
|
|
622
|
-
return !0;
|
|
623
|
-
return !1;
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
function r(a) {
|
|
627
|
-
return D;
|
|
628
|
-
function D(s) {
|
|
629
|
-
return !!(s && s.type === a);
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
function o() {
|
|
633
|
-
return !0;
|
|
634
|
-
}
|
|
635
|
-
}), xr = R((u, e) => {
|
|
636
|
-
e.exports = t;
|
|
637
|
-
function t(n) {
|
|
638
|
-
return n;
|
|
639
|
-
}
|
|
640
|
-
}), Br = R((u, e) => {
|
|
641
|
-
e.exports = a;
|
|
642
|
-
var t = vr(), n = xr(), i = !0, r = "skip", o = !1;
|
|
643
|
-
a.CONTINUE = i, a.SKIP = r, a.EXIT = o;
|
|
644
|
-
function a(s, l, c, f) {
|
|
645
|
-
var h, p;
|
|
646
|
-
typeof l == "function" && typeof c != "function" && (f = c, c = l, l = null), p = t(l), h = f ? -1 : 1, m(s, null, [])();
|
|
647
|
-
function m(A, v, F) {
|
|
648
|
-
var B = typeof A == "object" && A !== null ? A : {}, g;
|
|
649
|
-
return typeof B.type == "string" && (g = typeof B.tagName == "string" ? B.tagName : typeof B.name == "string" ? B.name : void 0, d.displayName = "node (" + n(B.type + (g ? "<" + g + ">" : "")) + ")"), d;
|
|
650
|
-
function d() {
|
|
651
|
-
var C = F.concat(A), E = [], y, w;
|
|
652
|
-
if ((!l || p(A, v, F[F.length - 1] || null)) && (E = D(c(A, F)), E[0] === o))
|
|
653
|
-
return E;
|
|
654
|
-
if (A.children && E[0] !== r)
|
|
655
|
-
for (w = (f ? A.children.length : -1) + h; w > -1 && w < A.children.length; ) {
|
|
656
|
-
if (y = m(A.children[w], w, C)(), y[0] === o)
|
|
657
|
-
return y;
|
|
658
|
-
w = typeof y[1] == "number" ? y[1] : w + h;
|
|
659
|
-
}
|
|
660
|
-
return E;
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
function D(s) {
|
|
665
|
-
return s !== null && typeof s == "object" && "length" in s ? s : typeof s == "number" ? [i, s] : [s];
|
|
666
|
-
}
|
|
667
|
-
}), br = R((u, e) => {
|
|
668
|
-
e.exports = o;
|
|
669
|
-
var t = Br(), n = t.CONTINUE, i = t.SKIP, r = t.EXIT;
|
|
670
|
-
o.CONTINUE = n, o.SKIP = i, o.EXIT = r;
|
|
671
|
-
function o(a, D, s, l) {
|
|
672
|
-
typeof D == "function" && typeof s != "function" && (l = s, s = D, D = null), t(a, D, c, l);
|
|
673
|
-
function c(f, h) {
|
|
674
|
-
var p = h[h.length - 1], m = p ? p.children.indexOf(f) : null;
|
|
675
|
-
return s(f, m, p);
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
}), yr = R((u, e) => {
|
|
679
|
-
var t = br();
|
|
680
|
-
e.exports = n;
|
|
681
|
-
function n(o, a) {
|
|
682
|
-
return t(o, a ? i : r), o;
|
|
683
|
-
}
|
|
684
|
-
function i(o) {
|
|
685
|
-
delete o.position;
|
|
686
|
-
}
|
|
687
|
-
function r(o) {
|
|
688
|
-
o.position = void 0;
|
|
689
|
-
}
|
|
690
|
-
}), wr = R((u, e) => {
|
|
691
|
-
var t = Vu(), n = yr();
|
|
692
|
-
e.exports = o;
|
|
693
|
-
var i = `
|
|
694
|
-
`, r = /\r\n|\r/g;
|
|
695
|
-
function o() {
|
|
696
|
-
var a = this, D = String(a.file), s = { line: 1, column: 1, offset: 0 }, l = t(s), c;
|
|
697
|
-
return D = D.replace(r, i), D.charCodeAt(0) === 65279 && (D = D.slice(1), l.column++, l.offset++), c = { type: "root", children: a.tokenizeBlock(D, l), position: { start: s, end: a.eof || t(s) } }, a.options.position || n(c, !0), c;
|
|
698
|
-
}
|
|
699
|
-
}), kr = R((u, e) => {
|
|
700
|
-
var t = /^[ \t]*(\n|$)/;
|
|
701
|
-
e.exports = n;
|
|
702
|
-
function n(i, r, o) {
|
|
703
|
-
for (var a, D = "", s = 0, l = r.length; s < l && (a = t.exec(r.slice(s)), a != null); )
|
|
704
|
-
s += a[0].length, D += a[0];
|
|
705
|
-
if (D !== "") {
|
|
706
|
-
if (o)
|
|
707
|
-
return !0;
|
|
708
|
-
i(D);
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
}), je = R((u, e) => {
|
|
712
|
-
var t = "", n;
|
|
713
|
-
e.exports = i;
|
|
714
|
-
function i(r, o) {
|
|
715
|
-
if (typeof r != "string")
|
|
716
|
-
throw new TypeError("expected a string");
|
|
717
|
-
if (o === 1)
|
|
718
|
-
return r;
|
|
719
|
-
if (o === 2)
|
|
720
|
-
return r + r;
|
|
721
|
-
var a = r.length * o;
|
|
722
|
-
if (n !== r || typeof n > "u")
|
|
723
|
-
n = r, t = "";
|
|
724
|
-
else if (t.length >= a)
|
|
725
|
-
return t.substr(0, a);
|
|
726
|
-
for (; a > t.length && o > 1; )
|
|
727
|
-
o & 1 && (t += r), o >>= 1, r += r;
|
|
728
|
-
return t += r, t = t.substr(0, a), t;
|
|
729
|
-
}
|
|
730
|
-
}), At = R((u, e) => {
|
|
731
|
-
e.exports = t;
|
|
732
|
-
function t(n) {
|
|
733
|
-
return String(n).replace(/\n+$/, "");
|
|
734
|
-
}
|
|
735
|
-
}), qr = R((u, e) => {
|
|
736
|
-
var t = je(), n = At();
|
|
737
|
-
e.exports = s;
|
|
738
|
-
var i = `
|
|
739
|
-
`, r = " ", o = " ", a = 4, D = t(o, a);
|
|
740
|
-
function s(l, c, f) {
|
|
741
|
-
for (var h = -1, p = c.length, m = "", A = "", v = "", F = "", B, g, d; ++h < p; )
|
|
742
|
-
if (B = c.charAt(h), d)
|
|
743
|
-
if (d = !1, m += v, A += F, v = "", F = "", B === i)
|
|
744
|
-
v = B, F = B;
|
|
745
|
-
else
|
|
746
|
-
for (m += B, A += B; ++h < p; ) {
|
|
747
|
-
if (B = c.charAt(h), !B || B === i) {
|
|
748
|
-
F = B, v = B;
|
|
749
|
-
break;
|
|
750
|
-
}
|
|
751
|
-
m += B, A += B;
|
|
752
|
-
}
|
|
753
|
-
else if (B === o && c.charAt(h + 1) === B && c.charAt(h + 2) === B && c.charAt(h + 3) === B)
|
|
754
|
-
v += D, h += 3, d = !0;
|
|
755
|
-
else if (B === r)
|
|
756
|
-
v += B, d = !0;
|
|
757
|
-
else {
|
|
758
|
-
for (g = ""; B === r || B === o; )
|
|
759
|
-
g += B, B = c.charAt(++h);
|
|
760
|
-
if (B !== i)
|
|
761
|
-
break;
|
|
762
|
-
v += g + B, F += B;
|
|
763
|
-
}
|
|
764
|
-
if (A)
|
|
765
|
-
return f ? !0 : l(m)({ type: "code", lang: null, meta: null, value: n(A) });
|
|
766
|
-
}
|
|
767
|
-
}), Sr = R((u, e) => {
|
|
768
|
-
e.exports = s;
|
|
769
|
-
var t = `
|
|
770
|
-
`, n = " ", i = " ", r = "~", o = "`", a = 3, D = 4;
|
|
771
|
-
function s(l, c, f) {
|
|
772
|
-
var h = this, p = h.options.gfm, m = c.length + 1, A = 0, v = "", F, B, g, d, C, E, y, w, O, b, k, L, I;
|
|
773
|
-
if (p) {
|
|
774
|
-
for (; A < m && (g = c.charAt(A), !(g !== i && g !== n)); )
|
|
775
|
-
v += g, A++;
|
|
776
|
-
if (L = A, g = c.charAt(A), !(g !== r && g !== o)) {
|
|
777
|
-
for (A++, B = g, F = 1, v += g; A < m && (g = c.charAt(A), g === B); )
|
|
778
|
-
v += g, F++, A++;
|
|
779
|
-
if (!(F < a)) {
|
|
780
|
-
for (; A < m && (g = c.charAt(A), !(g !== i && g !== n)); )
|
|
781
|
-
v += g, A++;
|
|
782
|
-
for (d = "", y = ""; A < m && (g = c.charAt(A), !(g === t || B === o && g === B)); )
|
|
783
|
-
g === i || g === n ? y += g : (d += y + g, y = ""), A++;
|
|
784
|
-
if (g = c.charAt(A), !(g && g !== t)) {
|
|
785
|
-
if (f)
|
|
786
|
-
return !0;
|
|
787
|
-
I = l.now(), I.column += v.length, I.offset += v.length, v += d, d = h.decode.raw(h.unescape(d), I), y && (v += y), y = "", b = "", k = "", w = "", O = "";
|
|
788
|
-
for (var x = !0; A < m; ) {
|
|
789
|
-
if (g = c.charAt(A), w += b, O += k, b = "", k = "", g !== t) {
|
|
790
|
-
w += g, k += g, A++;
|
|
791
|
-
continue;
|
|
792
|
-
}
|
|
793
|
-
for (x ? (v += g, x = !1) : (b += g, k += g), y = "", A++; A < m && (g = c.charAt(A), g === i); )
|
|
794
|
-
y += g, A++;
|
|
795
|
-
if (b += y, k += y.slice(L), !(y.length >= D)) {
|
|
796
|
-
for (y = ""; A < m && (g = c.charAt(A), g === B); )
|
|
797
|
-
y += g, A++;
|
|
798
|
-
if (b += y, k += y, !(y.length < F)) {
|
|
799
|
-
for (y = ""; A < m && (g = c.charAt(A), !(g !== i && g !== n)); )
|
|
800
|
-
b += g, k += g, A++;
|
|
801
|
-
if (!g || g === t)
|
|
802
|
-
break;
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
for (v += w + b, A = -1, m = d.length; ++A < m; )
|
|
807
|
-
if (g = d.charAt(A), g === i || g === n)
|
|
808
|
-
C || (C = d.slice(0, A));
|
|
809
|
-
else if (C) {
|
|
810
|
-
E = d.slice(A);
|
|
811
|
-
break;
|
|
812
|
-
}
|
|
813
|
-
return l(v)({ type: "code", lang: C || d || null, meta: E || null, value: O });
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
}), Gu = R((u, e) => {
|
|
820
|
-
u = e.exports = t;
|
|
821
|
-
function t(n) {
|
|
822
|
-
return n.trim ? n.trim() : u.right(u.left(n));
|
|
823
|
-
}
|
|
824
|
-
u.left = function(n) {
|
|
825
|
-
return n.trimLeft ? n.trimLeft() : n.replace(/^\s\s*/, "");
|
|
826
|
-
}, u.right = function(n) {
|
|
827
|
-
if (n.trimRight)
|
|
828
|
-
return n.trimRight();
|
|
829
|
-
for (var i = /\s/, r = n.length; i.test(n.charAt(--r)); )
|
|
830
|
-
;
|
|
831
|
-
return n.slice(0, r + 1);
|
|
832
|
-
};
|
|
833
|
-
}), ze = R((u, e) => {
|
|
834
|
-
e.exports = t;
|
|
835
|
-
function t(n, i, r, o) {
|
|
836
|
-
for (var a = n.length, D = -1, s, l; ++D < a; )
|
|
837
|
-
if (s = n[D], l = s[1] || {}, !(l.pedantic !== void 0 && l.pedantic !== r.options.pedantic) && !(l.commonmark !== void 0 && l.commonmark !== r.options.commonmark) && i[s[0]].apply(r, o))
|
|
838
|
-
return !0;
|
|
839
|
-
return !1;
|
|
840
|
-
}
|
|
841
|
-
}), Lr = R((u, e) => {
|
|
842
|
-
var t = Gu(), n = ze();
|
|
843
|
-
e.exports = D;
|
|
844
|
-
var i = `
|
|
845
|
-
`, r = " ", o = " ", a = ">";
|
|
846
|
-
function D(s, l, c) {
|
|
847
|
-
for (var f = this, h = f.offset, p = f.blockTokenizers, m = f.interruptBlockquote, A = s.now(), v = A.line, F = l.length, B = [], g = [], d = [], C, E = 0, y, w, O, b, k, L, I, x; E < F && (y = l.charAt(E), !(y !== o && y !== r)); )
|
|
848
|
-
E++;
|
|
849
|
-
if (l.charAt(E) === a) {
|
|
850
|
-
if (c)
|
|
851
|
-
return !0;
|
|
852
|
-
for (E = 0; E < F; ) {
|
|
853
|
-
for (O = l.indexOf(i, E), L = E, I = !1, O === -1 && (O = F); E < F && (y = l.charAt(E), !(y !== o && y !== r)); )
|
|
854
|
-
E++;
|
|
855
|
-
if (l.charAt(E) === a ? (E++, I = !0, l.charAt(E) === o && E++) : E = L, b = l.slice(E, O), !I && !t(b)) {
|
|
856
|
-
E = L;
|
|
857
|
-
break;
|
|
858
|
-
}
|
|
859
|
-
if (!I && (w = l.slice(E), n(m, p, f, [s, w, !0])))
|
|
860
|
-
break;
|
|
861
|
-
k = L === E ? b : l.slice(L, O), d.push(E - L), B.push(k), g.push(b), E = O + 1;
|
|
862
|
-
}
|
|
863
|
-
for (E = -1, F = d.length, C = s(B.join(i)); ++E < F; )
|
|
864
|
-
h[v] = (h[v] || 0) + d[E], v++;
|
|
865
|
-
return x = f.enterBlock(), g = f.tokenizeBlock(g.join(i), A), x(), C({ type: "blockquote", children: g });
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
}), Or = R((u, e) => {
|
|
869
|
-
e.exports = a;
|
|
870
|
-
var t = `
|
|
871
|
-
`, n = " ", i = " ", r = "#", o = 6;
|
|
872
|
-
function a(D, s, l) {
|
|
873
|
-
for (var c = this, f = c.options.pedantic, h = s.length + 1, p = -1, m = D.now(), A = "", v = "", F, B, g; ++p < h; ) {
|
|
874
|
-
if (F = s.charAt(p), F !== i && F !== n) {
|
|
875
|
-
p--;
|
|
876
|
-
break;
|
|
877
|
-
}
|
|
878
|
-
A += F;
|
|
879
|
-
}
|
|
880
|
-
for (g = 0; ++p <= h; ) {
|
|
881
|
-
if (F = s.charAt(p), F !== r) {
|
|
882
|
-
p--;
|
|
883
|
-
break;
|
|
884
|
-
}
|
|
885
|
-
A += F, g++;
|
|
886
|
-
}
|
|
887
|
-
if (!(g > o) && !(!g || !f && s.charAt(p + 1) === r)) {
|
|
888
|
-
for (h = s.length + 1, B = ""; ++p < h; ) {
|
|
889
|
-
if (F = s.charAt(p), F !== i && F !== n) {
|
|
890
|
-
p--;
|
|
891
|
-
break;
|
|
892
|
-
}
|
|
893
|
-
B += F;
|
|
894
|
-
}
|
|
895
|
-
if (!(!f && B.length === 0 && F && F !== t)) {
|
|
896
|
-
if (l)
|
|
897
|
-
return !0;
|
|
898
|
-
for (A += B, B = "", v = ""; ++p < h && (F = s.charAt(p), !(!F || F === t)); ) {
|
|
899
|
-
if (F !== i && F !== n && F !== r) {
|
|
900
|
-
v += B + F, B = "";
|
|
901
|
-
continue;
|
|
902
|
-
}
|
|
903
|
-
for (; F === i || F === n; )
|
|
904
|
-
B += F, F = s.charAt(++p);
|
|
905
|
-
if (!f && v && !B && F === r) {
|
|
906
|
-
v += F;
|
|
907
|
-
continue;
|
|
908
|
-
}
|
|
909
|
-
for (; F === r; )
|
|
910
|
-
B += F, F = s.charAt(++p);
|
|
911
|
-
for (; F === i || F === n; )
|
|
912
|
-
B += F, F = s.charAt(++p);
|
|
913
|
-
p--;
|
|
914
|
-
}
|
|
915
|
-
return m.column += A.length, m.offset += A.length, A += v + B, D(A)({ type: "heading", depth: g, children: c.tokenizeInline(v, m) });
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
}), Tr = R((u, e) => {
|
|
920
|
-
e.exports = s;
|
|
921
|
-
var t = " ", n = `
|
|
922
|
-
`, i = " ", r = "*", o = "-", a = "_", D = 3;
|
|
923
|
-
function s(l, c, f) {
|
|
924
|
-
for (var h = -1, p = c.length + 1, m = "", A, v, F, B; ++h < p && (A = c.charAt(h), !(A !== t && A !== i)); )
|
|
925
|
-
m += A;
|
|
926
|
-
if (!(A !== r && A !== o && A !== a))
|
|
927
|
-
for (v = A, m += A, F = 1, B = ""; ++h < p; )
|
|
928
|
-
if (A = c.charAt(h), A === v)
|
|
929
|
-
F++, m += B + v, B = "";
|
|
930
|
-
else if (A === i)
|
|
931
|
-
B += A;
|
|
932
|
-
else
|
|
933
|
-
return F >= D && (!A || A === n) ? (m += B, f ? !0 : l(m)({ type: "thematicBreak" })) : void 0;
|
|
934
|
-
}
|
|
935
|
-
}), Et = R((u, e) => {
|
|
936
|
-
e.exports = o;
|
|
937
|
-
var t = " ", n = " ", i = 1, r = 4;
|
|
938
|
-
function o(a) {
|
|
939
|
-
for (var D = 0, s = 0, l = a.charAt(D), c = {}, f, h = 0; l === t || l === n; ) {
|
|
940
|
-
for (f = l === t ? r : i, s += f, f > 1 && (s = Math.floor(s / f) * f); h < s; )
|
|
941
|
-
c[++h] = D;
|
|
942
|
-
l = a.charAt(++D);
|
|
943
|
-
}
|
|
944
|
-
return { indent: s, stops: c };
|
|
945
|
-
}
|
|
946
|
-
}), Nr = R((u, e) => {
|
|
947
|
-
var t = Gu(), n = je(), i = Et();
|
|
948
|
-
e.exports = D;
|
|
949
|
-
var r = `
|
|
950
|
-
`, o = " ", a = "!";
|
|
951
|
-
function D(s, l) {
|
|
952
|
-
var c = s.split(r), f = c.length + 1, h = 1 / 0, p = [], m, A, v;
|
|
953
|
-
for (c.unshift(n(o, l) + a); f--; )
|
|
954
|
-
if (A = i(c[f]), p[f] = A.stops, t(c[f]).length !== 0)
|
|
955
|
-
if (A.indent)
|
|
956
|
-
A.indent > 0 && A.indent < h && (h = A.indent);
|
|
957
|
-
else {
|
|
958
|
-
h = 1 / 0;
|
|
959
|
-
break;
|
|
960
|
-
}
|
|
961
|
-
if (h !== 1 / 0)
|
|
962
|
-
for (f = c.length; f--; ) {
|
|
963
|
-
for (v = p[f], m = h; m && !(m in v); )
|
|
964
|
-
m--;
|
|
965
|
-
c[f] = c[f].slice(v[m] + 1);
|
|
966
|
-
}
|
|
967
|
-
return c.shift(), c.join(r);
|
|
968
|
-
}
|
|
969
|
-
}), Rr = R((u, e) => {
|
|
970
|
-
var t = Gu(), n = je(), i = Mu(), r = Et(), o = Nr(), a = ze();
|
|
971
|
-
e.exports = y;
|
|
972
|
-
var D = "*", s = "_", l = "+", c = "-", f = ".", h = " ", p = `
|
|
973
|
-
`, m = " ", A = ")", v = "x", F = 4, B = /\n\n(?!\s*$)/, g = /^\[([ X\tx])][ \t]/, d = /^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/, C = /^([ \t]*)([*+-]|\d+[.)])([ \t]+)/, E = /^( {1,4}|\t)?/gm;
|
|
974
|
-
function y(k, L, I) {
|
|
975
|
-
for (var x = this, S = x.options.commonmark, U = x.options.pedantic, $ = x.blockTokenizers, M = x.interruptList, q = 0, J = L.length, j = null, T, z, V, N, P, G, H, K, Y, eu, W, X, su, lu, uu, _, Q, pu, yu, hu = !1, Fu, nu, du, tu; q < J && (N = L.charAt(q), !(N !== m && N !== h)); )
|
|
976
|
-
q++;
|
|
977
|
-
if (N = L.charAt(q), N === D || N === l || N === c)
|
|
978
|
-
P = N, V = !1;
|
|
979
|
-
else {
|
|
980
|
-
for (V = !0, z = ""; q < J && (N = L.charAt(q), !!i(N)); )
|
|
981
|
-
z += N, q++;
|
|
982
|
-
if (N = L.charAt(q), !z || !(N === f || S && N === A) || I && z !== "1")
|
|
983
|
-
return;
|
|
984
|
-
j = parseInt(z, 10), P = N;
|
|
985
|
-
}
|
|
986
|
-
if (N = L.charAt(++q), !(N !== h && N !== m && (U || N !== p && N !== ""))) {
|
|
987
|
-
if (I)
|
|
988
|
-
return !0;
|
|
989
|
-
for (q = 0, lu = [], uu = [], _ = []; q < J; ) {
|
|
990
|
-
for (G = L.indexOf(p, q), H = q, K = !1, tu = !1, G === -1 && (G = J), T = 0; q < J; ) {
|
|
991
|
-
if (N = L.charAt(q), N === m)
|
|
992
|
-
T += F - T % F;
|
|
993
|
-
else if (N === h)
|
|
994
|
-
T++;
|
|
995
|
-
else
|
|
996
|
-
break;
|
|
997
|
-
q++;
|
|
998
|
-
}
|
|
999
|
-
if (Q && T >= Q.indent && (tu = !0), N = L.charAt(q), Y = null, !tu) {
|
|
1000
|
-
if (N === D || N === l || N === c)
|
|
1001
|
-
Y = N, q++, T++;
|
|
1002
|
-
else {
|
|
1003
|
-
for (z = ""; q < J && (N = L.charAt(q), !!i(N)); )
|
|
1004
|
-
z += N, q++;
|
|
1005
|
-
N = L.charAt(q), q++, z && (N === f || S && N === A) && (Y = N, T += z.length + 1);
|
|
1006
|
-
}
|
|
1007
|
-
if (Y)
|
|
1008
|
-
if (N = L.charAt(q), N === m)
|
|
1009
|
-
T += F - T % F, q++;
|
|
1010
|
-
else if (N === h) {
|
|
1011
|
-
for (du = q + F; q < du && L.charAt(q) === h; )
|
|
1012
|
-
q++, T++;
|
|
1013
|
-
q === du && L.charAt(q) === h && (q -= F - 1, T -= F - 1);
|
|
1014
|
-
} else
|
|
1015
|
-
N !== p && N !== "" && (Y = null);
|
|
1016
|
-
}
|
|
1017
|
-
if (Y) {
|
|
1018
|
-
if (!U && P !== Y)
|
|
1019
|
-
break;
|
|
1020
|
-
K = !0;
|
|
1021
|
-
} else
|
|
1022
|
-
!S && !tu && L.charAt(H) === h ? tu = !0 : S && Q && (tu = T >= Q.indent || T > F), K = !1, q = H;
|
|
1023
|
-
if (W = L.slice(H, G), eu = H === q ? W : L.slice(q, G), (Y === D || Y === s || Y === c) && $.thematicBreak.call(x, k, W, !0))
|
|
1024
|
-
break;
|
|
1025
|
-
if (X = su, su = !K && !t(eu).length, tu && Q)
|
|
1026
|
-
Q.value = Q.value.concat(_, W), uu = uu.concat(_, W), _ = [];
|
|
1027
|
-
else if (K)
|
|
1028
|
-
_.length !== 0 && (hu = !0, Q.value.push(""), Q.trail = _.concat()), Q = { value: [W], indent: T, trail: [] }, lu.push(Q), uu = uu.concat(_, W), _ = [];
|
|
1029
|
-
else if (su) {
|
|
1030
|
-
if (X && !S)
|
|
1031
|
-
break;
|
|
1032
|
-
_.push(W);
|
|
1033
|
-
} else {
|
|
1034
|
-
if (X || a(M, $, x, [k, W, !0]))
|
|
1035
|
-
break;
|
|
1036
|
-
Q.value = Q.value.concat(_, W), uu = uu.concat(_, W), _ = [];
|
|
1037
|
-
}
|
|
1038
|
-
q = G + 1;
|
|
1039
|
-
}
|
|
1040
|
-
for (Fu = k(uu.join(p)).reset({ type: "list", ordered: V, start: j, spread: hu, children: [] }), pu = x.enterList(), yu = x.enterBlock(), q = -1, J = lu.length; ++q < J; )
|
|
1041
|
-
Q = lu[q].value.join(p), nu = k.now(), k(Q)(w(x, Q, nu), Fu), Q = lu[q].trail.join(p), q !== J - 1 && (Q += p), k(Q);
|
|
1042
|
-
return pu(), yu(), Fu;
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
function w(k, L, I) {
|
|
1046
|
-
var x = k.offset, S = k.options.pedantic ? O : b, U = null, $, M;
|
|
1047
|
-
return L = S.apply(null, arguments), k.options.gfm && ($ = L.match(g), $ && (M = $[0].length, U = $[1].toLowerCase() === v, x[I.line] += M, L = L.slice(M))), { type: "listItem", spread: B.test(L), checked: U, children: k.tokenizeBlock(L, I) };
|
|
1048
|
-
}
|
|
1049
|
-
function O(k, L, I) {
|
|
1050
|
-
var x = k.offset, S = I.line;
|
|
1051
|
-
return L = L.replace(C, U), S = I.line, L.replace(E, U);
|
|
1052
|
-
function U($) {
|
|
1053
|
-
return x[S] = (x[S] || 0) + $.length, S++, "";
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
function b(k, L, I) {
|
|
1057
|
-
var x = k.offset, S = I.line, U, $, M, q, J, j, T;
|
|
1058
|
-
for (L = L.replace(d, z), q = L.split(p), J = o(L, r(U).indent).split(p), J[0] = M, x[S] = (x[S] || 0) + $.length, S++, j = 0, T = q.length; ++j < T; )
|
|
1059
|
-
x[S] = (x[S] || 0) + q[j].length - J[j].length, S++;
|
|
1060
|
-
return J.join(p);
|
|
1061
|
-
function z(V, N, P, G, H) {
|
|
1062
|
-
return $ = N + P + G, M = H, Number(P) < 10 && $.length % 2 === 1 && (P = h + P), U = N + n(h, P.length) + G, U + M;
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
}), Ir = R((u, e) => {
|
|
1066
|
-
e.exports = l;
|
|
1067
|
-
var t = `
|
|
1068
|
-
`, n = " ", i = " ", r = "=", o = "-", a = 3, D = 1, s = 2;
|
|
1069
|
-
function l(c, f, h) {
|
|
1070
|
-
for (var p = this, m = c.now(), A = f.length, v = -1, F = "", B, g, d, C, E; ++v < A; ) {
|
|
1071
|
-
if (d = f.charAt(v), d !== i || v >= a) {
|
|
1072
|
-
v--;
|
|
1073
|
-
break;
|
|
1074
|
-
}
|
|
1075
|
-
F += d;
|
|
1076
|
-
}
|
|
1077
|
-
for (B = "", g = ""; ++v < A; ) {
|
|
1078
|
-
if (d = f.charAt(v), d === t) {
|
|
1079
|
-
v--;
|
|
1080
|
-
break;
|
|
1081
|
-
}
|
|
1082
|
-
d === i || d === n ? g += d : (B += g + d, g = "");
|
|
1083
|
-
}
|
|
1084
|
-
if (m.column += F.length, m.offset += F.length, F += B + g, d = f.charAt(++v), C = f.charAt(++v), !(d !== t || C !== r && C !== o)) {
|
|
1085
|
-
for (F += d, g = C, E = C === r ? D : s; ++v < A; ) {
|
|
1086
|
-
if (d = f.charAt(v), d !== C) {
|
|
1087
|
-
if (d !== t)
|
|
1088
|
-
return;
|
|
1089
|
-
v--;
|
|
1090
|
-
break;
|
|
1091
|
-
}
|
|
1092
|
-
g += d;
|
|
1093
|
-
}
|
|
1094
|
-
return h ? !0 : c(F + g)({ type: "heading", depth: E, children: p.tokenizeInline(B, m) });
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
}), gt = R((u) => {
|
|
1098
|
-
var e = "[a-zA-Z_:][a-zA-Z0-9:._-]*", t = "[^\"'=<>`\\u0000-\\u0020]+", n = "'[^']*'", i = '"[^"]*"', r = "(?:" + t + "|" + n + "|" + i + ")", o = "(?:\\s+" + e + "(?:\\s*=\\s*" + r + ")?)", a = "<[A-Za-z][A-Za-z0-9\\-]*" + o + "*\\s*\\/?>", D = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", s = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->", l = "<[?].*?[?]>", c = "<![A-Za-z]+\\s+[^>]*>", f = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";
|
|
1099
|
-
u.openCloseTag = new RegExp("^(?:" + a + "|" + D + ")"), u.tag = new RegExp("^(?:" + a + "|" + D + "|" + s + "|" + l + "|" + c + "|" + f + ")");
|
|
1100
|
-
}), Pr = R((u, e) => {
|
|
1101
|
-
var t = gt().openCloseTag;
|
|
1102
|
-
e.exports = B;
|
|
1103
|
-
var n = " ", i = " ", r = `
|
|
1104
|
-
`, o = "<", a = /^<(script|pre|style)(?=(\s|>|$))/i, D = /<\/(script|pre|style)>/i, s = /^<!--/, l = /-->/, c = /^<\?/, f = /\?>/, h = /^<![A-Za-z]/, p = />/, m = /^<!\[CDATA\[/, A = /]]>/, v = /^$/, F = new RegExp(t.source + "\\s*$");
|
|
1105
|
-
function B(g, d, C) {
|
|
1106
|
-
for (var E = this, y = E.options.blocks.join("|"), w = new RegExp("^</?(" + y + ")(?=(\\s|/?>|$))", "i"), O = d.length, b = 0, k, L, I, x, S, U, $, M = [[a, D, !0], [s, l, !0], [c, f, !0], [h, p, !0], [m, A, !0], [w, v, !0], [F, v, !1]]; b < O && (x = d.charAt(b), !(x !== n && x !== i)); )
|
|
1107
|
-
b++;
|
|
1108
|
-
if (d.charAt(b) === o) {
|
|
1109
|
-
for (k = d.indexOf(r, b + 1), k = k === -1 ? O : k, L = d.slice(b, k), I = -1, S = M.length; ++I < S; )
|
|
1110
|
-
if (M[I][0].test(L)) {
|
|
1111
|
-
U = M[I];
|
|
1112
|
-
break;
|
|
1113
|
-
}
|
|
1114
|
-
if (U) {
|
|
1115
|
-
if (C)
|
|
1116
|
-
return U[2];
|
|
1117
|
-
if (b = k, !U[1].test(L))
|
|
1118
|
-
for (; b < O; ) {
|
|
1119
|
-
if (k = d.indexOf(r, b + 1), k = k === -1 ? O : k, L = d.slice(b + 1, k), U[1].test(L)) {
|
|
1120
|
-
L && (b = k);
|
|
1121
|
-
break;
|
|
1122
|
-
}
|
|
1123
|
-
b = k;
|
|
1124
|
-
}
|
|
1125
|
-
return $ = d.slice(0, b), g($)({ type: "html", value: $ });
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
}), Bu = R((u, e) => {
|
|
1130
|
-
e.exports = i;
|
|
1131
|
-
var t = String.fromCharCode, n = /\s/;
|
|
1132
|
-
function i(r) {
|
|
1133
|
-
return n.test(typeof r == "number" ? t(r) : r.charAt(0));
|
|
1134
|
-
}
|
|
1135
|
-
}), mt = R((u, e) => {
|
|
1136
|
-
var t = Pe();
|
|
1137
|
-
e.exports = n;
|
|
1138
|
-
function n(i) {
|
|
1139
|
-
return t(i).toLowerCase();
|
|
1140
|
-
}
|
|
1141
|
-
}), jr = R((u, e) => {
|
|
1142
|
-
var t = Bu(), n = mt();
|
|
1143
|
-
e.exports = v;
|
|
1144
|
-
var i = '"', r = "'", o = "\\", a = `
|
|
1145
|
-
`, D = " ", s = " ", l = "[", c = "]", f = "(", h = ")", p = ":", m = "<", A = ">";
|
|
1146
|
-
function v(g, d, C) {
|
|
1147
|
-
for (var E = this, y = E.options.commonmark, w = 0, O = d.length, b = "", k, L, I, x, S, U, $, M; w < O && (x = d.charAt(w), !(x !== s && x !== D)); )
|
|
1148
|
-
b += x, w++;
|
|
1149
|
-
if (x = d.charAt(w), x === l) {
|
|
1150
|
-
for (w++, b += x, I = ""; w < O && (x = d.charAt(w), x !== c); )
|
|
1151
|
-
x === o && (I += x, w++, x = d.charAt(w)), I += x, w++;
|
|
1152
|
-
if (!(!I || d.charAt(w) !== c || d.charAt(w + 1) !== p)) {
|
|
1153
|
-
for (U = I, b += I + c + p, w = b.length, I = ""; w < O && (x = d.charAt(w), !(x !== D && x !== s && x !== a)); )
|
|
1154
|
-
b += x, w++;
|
|
1155
|
-
if (x = d.charAt(w), I = "", k = b, x === m) {
|
|
1156
|
-
for (w++; w < O && (x = d.charAt(w), !!F(x)); )
|
|
1157
|
-
I += x, w++;
|
|
1158
|
-
if (x = d.charAt(w), x === F.delimiter)
|
|
1159
|
-
b += m + I + x, w++;
|
|
1160
|
-
else {
|
|
1161
|
-
if (y)
|
|
1162
|
-
return;
|
|
1163
|
-
w -= I.length + 1, I = "";
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
if (!I) {
|
|
1167
|
-
for (; w < O && (x = d.charAt(w), !!B(x)); )
|
|
1168
|
-
I += x, w++;
|
|
1169
|
-
b += I;
|
|
1170
|
-
}
|
|
1171
|
-
if (I) {
|
|
1172
|
-
for ($ = I, I = ""; w < O && (x = d.charAt(w), !(x !== D && x !== s && x !== a)); )
|
|
1173
|
-
I += x, w++;
|
|
1174
|
-
if (x = d.charAt(w), S = null, x === i ? S = i : x === r ? S = r : x === f && (S = h), !S)
|
|
1175
|
-
I = "", w = b.length;
|
|
1176
|
-
else if (I) {
|
|
1177
|
-
for (b += I + x, w = b.length, I = ""; w < O && (x = d.charAt(w), x !== S); ) {
|
|
1178
|
-
if (x === a) {
|
|
1179
|
-
if (w++, x = d.charAt(w), x === a || x === S)
|
|
1180
|
-
return;
|
|
1181
|
-
I += a;
|
|
1182
|
-
}
|
|
1183
|
-
I += x, w++;
|
|
1184
|
-
}
|
|
1185
|
-
if (x = d.charAt(w), x !== S)
|
|
1186
|
-
return;
|
|
1187
|
-
L = b, b += I + x, w++, M = I, I = "";
|
|
1188
|
-
} else
|
|
1189
|
-
return;
|
|
1190
|
-
for (; w < O && (x = d.charAt(w), !(x !== D && x !== s)); )
|
|
1191
|
-
b += x, w++;
|
|
1192
|
-
if (x = d.charAt(w), !x || x === a)
|
|
1193
|
-
return C ? !0 : (k = g(k).test().end, $ = E.decode.raw(E.unescape($), k, { nonTerminated: !1 }), M && (L = g(L).test().end, M = E.decode.raw(E.unescape(M), L)), g(b)({ type: "definition", identifier: n(U), label: U, title: M || null, url: $ }));
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
function F(g) {
|
|
1199
|
-
return g !== A && g !== l && g !== c;
|
|
1200
|
-
}
|
|
1201
|
-
F.delimiter = A;
|
|
1202
|
-
function B(g) {
|
|
1203
|
-
return g !== l && g !== c && !t(g);
|
|
1204
|
-
}
|
|
1205
|
-
}), zr = R((u, e) => {
|
|
1206
|
-
var t = Bu();
|
|
1207
|
-
e.exports = m;
|
|
1208
|
-
var n = " ", i = `
|
|
1209
|
-
`, r = " ", o = "-", a = ":", D = "\\", s = "|", l = 1, c = 2, f = "left", h = "center", p = "right";
|
|
1210
|
-
function m(A, v, F) {
|
|
1211
|
-
var B = this, g, d, C, E, y, w, O, b, k, L, I, x, S, U, $, M, q, J, j, T, z, V;
|
|
1212
|
-
if (B.options.gfm) {
|
|
1213
|
-
for (g = 0, M = 0, w = v.length + 1, O = []; g < w; ) {
|
|
1214
|
-
if (T = v.indexOf(i, g), z = v.indexOf(s, g + 1), T === -1 && (T = v.length), z === -1 || z > T) {
|
|
1215
|
-
if (M < c)
|
|
1216
|
-
return;
|
|
1217
|
-
break;
|
|
1218
|
-
}
|
|
1219
|
-
O.push(v.slice(g, T)), M++, g = T + 1;
|
|
1220
|
-
}
|
|
1221
|
-
for (E = O.join(i), d = O.splice(1, 1)[0] || [], g = 0, w = d.length, M--, C = !1, I = []; g < w; ) {
|
|
1222
|
-
if (k = d.charAt(g), k === s) {
|
|
1223
|
-
if (L = null, C === !1) {
|
|
1224
|
-
if (V === !1)
|
|
1225
|
-
return;
|
|
1226
|
-
} else
|
|
1227
|
-
I.push(C), C = !1;
|
|
1228
|
-
V = !1;
|
|
1229
|
-
} else if (k === o)
|
|
1230
|
-
L = !0, C = C || null;
|
|
1231
|
-
else if (k === a)
|
|
1232
|
-
C === f ? C = h : L && C === null ? C = p : C = f;
|
|
1233
|
-
else if (!t(k))
|
|
1234
|
-
return;
|
|
1235
|
-
g++;
|
|
1236
|
-
}
|
|
1237
|
-
if (C !== !1 && I.push(C), !(I.length < l)) {
|
|
1238
|
-
if (F)
|
|
1239
|
-
return !0;
|
|
1240
|
-
for ($ = -1, J = [], j = A(E).reset({ type: "table", align: I, children: J }); ++$ < M; ) {
|
|
1241
|
-
for (q = O[$], y = { type: "tableRow", children: [] }, $ && A(i), A(q).reset(y, j), w = q.length + 1, g = 0, b = "", x = "", S = !0; g < w; ) {
|
|
1242
|
-
if (k = q.charAt(g), k === n || k === r) {
|
|
1243
|
-
x ? b += k : A(k), g++;
|
|
1244
|
-
continue;
|
|
1245
|
-
}
|
|
1246
|
-
k === "" || k === s ? S ? A(k) : ((x || k) && !S && (E = x, b.length > 1 && (k ? (E += b.slice(0, -1), b = b.charAt(b.length - 1)) : (E += b, b = "")), U = A.now(), A(E)({ type: "tableCell", children: B.tokenizeInline(x, U) }, y)), A(b + k), b = "", x = "") : (b && (x += b, b = ""), x += k, k === D && g !== w - 2 && (x += q.charAt(g + 1), g++)), S = !1, g++;
|
|
1247
|
-
}
|
|
1248
|
-
$ || A(i + d);
|
|
1249
|
-
}
|
|
1250
|
-
return j;
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
}), $r = R((u, e) => {
|
|
1255
|
-
var t = Gu(), n = At(), i = ze();
|
|
1256
|
-
e.exports = s;
|
|
1257
|
-
var r = " ", o = `
|
|
1258
|
-
`, a = " ", D = 4;
|
|
1259
|
-
function s(l, c, f) {
|
|
1260
|
-
for (var h = this, p = h.options, m = p.commonmark, A = h.blockTokenizers, v = h.interruptParagraph, F = c.indexOf(o), B = c.length, g, d, C, E, y; F < B; ) {
|
|
1261
|
-
if (F === -1) {
|
|
1262
|
-
F = B;
|
|
1263
|
-
break;
|
|
1264
|
-
}
|
|
1265
|
-
if (c.charAt(F + 1) === o)
|
|
1266
|
-
break;
|
|
1267
|
-
if (m) {
|
|
1268
|
-
for (E = 0, g = F + 1; g < B; ) {
|
|
1269
|
-
if (C = c.charAt(g), C === r) {
|
|
1270
|
-
E = D;
|
|
1271
|
-
break;
|
|
1272
|
-
} else if (C === a)
|
|
1273
|
-
E++;
|
|
1274
|
-
else
|
|
1275
|
-
break;
|
|
1276
|
-
g++;
|
|
1277
|
-
}
|
|
1278
|
-
if (E >= D && C !== o) {
|
|
1279
|
-
F = c.indexOf(o, F + 1);
|
|
1280
|
-
continue;
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
if (d = c.slice(F + 1), i(v, A, h, [l, d, !0]))
|
|
1284
|
-
break;
|
|
1285
|
-
if (g = F, F = c.indexOf(o, F + 1), F !== -1 && t(c.slice(g, F)) === "") {
|
|
1286
|
-
F = g;
|
|
1287
|
-
break;
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
return d = c.slice(0, F), f ? !0 : (y = l.now(), d = n(d), l(d)({ type: "paragraph", children: h.tokenizeInline(d, y) }));
|
|
1291
|
-
}
|
|
1292
|
-
}), Ur = R((u, e) => {
|
|
1293
|
-
e.exports = t;
|
|
1294
|
-
function t(n, i) {
|
|
1295
|
-
return n.indexOf("\\", i);
|
|
1296
|
-
}
|
|
1297
|
-
}), Vr = R((u, e) => {
|
|
1298
|
-
var t = Ur();
|
|
1299
|
-
e.exports = r, r.locator = t;
|
|
1300
|
-
var n = `
|
|
1301
|
-
`, i = "\\";
|
|
1302
|
-
function r(o, a, D) {
|
|
1303
|
-
var s = this, l, c;
|
|
1304
|
-
if (a.charAt(0) === i && (l = a.charAt(1), s.escape.indexOf(l) !== -1))
|
|
1305
|
-
return D ? !0 : (l === n ? c = { type: "break" } : c = { type: "text", value: l }, o(i + l)(c));
|
|
1306
|
-
}
|
|
1307
|
-
}), vt = R((u, e) => {
|
|
1308
|
-
e.exports = t;
|
|
1309
|
-
function t(n, i) {
|
|
1310
|
-
return n.indexOf("<", i);
|
|
1311
|
-
}
|
|
1312
|
-
}), Mr = R((u, e) => {
|
|
1313
|
-
var t = Bu(), n = ve(), i = vt();
|
|
1314
|
-
e.exports = c, c.locator = i, c.notInLink = !0;
|
|
1315
|
-
var r = "<", o = ">", a = "@", D = "/", s = "mailto:", l = s.length;
|
|
1316
|
-
function c(f, h, p) {
|
|
1317
|
-
var m = this, A = "", v = h.length, F = 0, B = "", g = !1, d = "", C, E, y, w, O;
|
|
1318
|
-
if (h.charAt(0) === r) {
|
|
1319
|
-
for (F++, A = r; F < v && (C = h.charAt(F), !(t(C) || C === o || C === a || C === ":" && h.charAt(F + 1) === D)); )
|
|
1320
|
-
B += C, F++;
|
|
1321
|
-
if (B) {
|
|
1322
|
-
if (d += B, B = "", C = h.charAt(F), d += C, F++, C === a)
|
|
1323
|
-
g = !0;
|
|
1324
|
-
else {
|
|
1325
|
-
if (C !== ":" || h.charAt(F + 1) !== D)
|
|
1326
|
-
return;
|
|
1327
|
-
d += D, F++;
|
|
1328
|
-
}
|
|
1329
|
-
for (; F < v && (C = h.charAt(F), !(t(C) || C === o)); )
|
|
1330
|
-
B += C, F++;
|
|
1331
|
-
if (C = h.charAt(F), !(!B || C !== o))
|
|
1332
|
-
return p ? !0 : (d += B, y = d, A += d + C, E = f.now(), E.column++, E.offset++, g && (d.slice(0, l).toLowerCase() === s ? (y = y.slice(l), E.column += l, E.offset += l) : d = s + d), w = m.inlineTokenizers, m.inlineTokenizers = { text: w.text }, O = m.enterLink(), y = m.tokenizeInline(y, E), m.inlineTokenizers = w, O(), f(A)({ type: "link", title: null, url: n(d, { nonTerminated: !1 }), children: y }));
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
}), Gr = R((u, e) => {
|
|
1337
|
-
e.exports = t;
|
|
1338
|
-
function t(n, i) {
|
|
1339
|
-
var r = String(n), o = 0, a;
|
|
1340
|
-
if (typeof i != "string")
|
|
1341
|
-
throw new Error("Expected character");
|
|
1342
|
-
for (a = r.indexOf(i); a !== -1; )
|
|
1343
|
-
o++, a = r.indexOf(i, a + i.length);
|
|
1344
|
-
return o;
|
|
1345
|
-
}
|
|
1346
|
-
}), Hr = R((u, e) => {
|
|
1347
|
-
e.exports = n;
|
|
1348
|
-
var t = ["www.", "http://", "https://"];
|
|
1349
|
-
function n(i, r) {
|
|
1350
|
-
var o = -1, a, D, s;
|
|
1351
|
-
if (!this.options.gfm)
|
|
1352
|
-
return o;
|
|
1353
|
-
for (D = t.length, a = -1; ++a < D; )
|
|
1354
|
-
s = i.indexOf(t[a], r), s !== -1 && (o === -1 || s < o) && (o = s);
|
|
1355
|
-
return o;
|
|
1356
|
-
}
|
|
1357
|
-
}), Wr = R((u, e) => {
|
|
1358
|
-
var t = Gr(), n = ve(), i = Mu(), r = ne(), o = Bu(), a = Hr();
|
|
1359
|
-
e.exports = E, E.locator = a, E.notInLink = !0;
|
|
1360
|
-
var D = 33, s = 38, l = 41, c = 42, f = 44, h = 45, p = 46, m = 58, A = 59, v = 63, F = 60, B = 95, g = 126, d = "(", C = ")";
|
|
1361
|
-
function E(y, w, O) {
|
|
1362
|
-
var b = this, k = b.options.gfm, L = b.inlineTokenizers, I = w.length, x = -1, S = !1, U, $, M, q, J, j, T, z, V, N, P, G, H, K;
|
|
1363
|
-
if (k) {
|
|
1364
|
-
if (w.slice(0, 4) === "www.")
|
|
1365
|
-
S = !0, q = 4;
|
|
1366
|
-
else if (w.slice(0, 7).toLowerCase() === "http://")
|
|
1367
|
-
q = 7;
|
|
1368
|
-
else if (w.slice(0, 8).toLowerCase() === "https://")
|
|
1369
|
-
q = 8;
|
|
1370
|
-
else
|
|
1371
|
-
return;
|
|
1372
|
-
for (x = q - 1, M = q, U = []; q < I; ) {
|
|
1373
|
-
if (T = w.charCodeAt(q), T === p) {
|
|
1374
|
-
if (x === q - 1)
|
|
1375
|
-
break;
|
|
1376
|
-
U.push(q), x = q, q++;
|
|
1377
|
-
continue;
|
|
1378
|
-
}
|
|
1379
|
-
if (i(T) || r(T) || T === h || T === B) {
|
|
1380
|
-
q++;
|
|
1381
|
-
continue;
|
|
1382
|
-
}
|
|
1383
|
-
break;
|
|
1384
|
-
}
|
|
1385
|
-
if (T === p && (U.pop(), q--), U[0] !== void 0 && ($ = U.length < 2 ? M : U[U.length - 2] + 1, w.slice($, q).indexOf("_") === -1)) {
|
|
1386
|
-
if (O)
|
|
1387
|
-
return !0;
|
|
1388
|
-
for (z = q, J = q; q < I && (T = w.charCodeAt(q), !(o(T) || T === F)); )
|
|
1389
|
-
q++, T === D || T === c || T === f || T === p || T === m || T === v || T === B || T === g || (z = q);
|
|
1390
|
-
if (q = z, w.charCodeAt(q - 1) === l)
|
|
1391
|
-
for (j = w.slice(J, q), V = t(j, d), N = t(j, C); N > V; )
|
|
1392
|
-
q = J + j.lastIndexOf(C), j = w.slice(J, q), N--;
|
|
1393
|
-
if (w.charCodeAt(q - 1) === A && (q--, r(w.charCodeAt(q - 1)))) {
|
|
1394
|
-
for (z = q - 2; r(w.charCodeAt(z)); )
|
|
1395
|
-
z--;
|
|
1396
|
-
w.charCodeAt(z) === s && (q = z);
|
|
1397
|
-
}
|
|
1398
|
-
return P = w.slice(0, q), H = n(P, { nonTerminated: !1 }), S && (H = "http://" + H), K = b.enterLink(), b.inlineTokenizers = { text: L.text }, G = b.tokenizeInline(P, y.now()), b.inlineTokenizers = L, K(), y(P)({ type: "link", title: null, url: H, children: G });
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
}), _r = R((u, e) => {
|
|
1403
|
-
var t = Mu(), n = ne(), i = 43, r = 45, o = 46, a = 95;
|
|
1404
|
-
e.exports = D;
|
|
1405
|
-
function D(l, c) {
|
|
1406
|
-
var f = this, h, p;
|
|
1407
|
-
if (!this.options.gfm || (h = l.indexOf("@", c), h === -1))
|
|
1408
|
-
return -1;
|
|
1409
|
-
if (p = h, p === c || !s(l.charCodeAt(p - 1)))
|
|
1410
|
-
return D.call(f, l, h + 1);
|
|
1411
|
-
for (; p > c && s(l.charCodeAt(p - 1)); )
|
|
1412
|
-
p--;
|
|
1413
|
-
return p;
|
|
1414
|
-
}
|
|
1415
|
-
function s(l) {
|
|
1416
|
-
return t(l) || n(l) || l === i || l === r || l === o || l === a;
|
|
1417
|
-
}
|
|
1418
|
-
}), Jr = R((u, e) => {
|
|
1419
|
-
var t = ve(), n = Mu(), i = ne(), r = _r();
|
|
1420
|
-
e.exports = c, c.locator = r, c.notInLink = !0;
|
|
1421
|
-
var o = 43, a = 45, D = 46, s = 64, l = 95;
|
|
1422
|
-
function c(f, h, p) {
|
|
1423
|
-
var m = this, A = m.options.gfm, v = m.inlineTokenizers, F = 0, B = h.length, g = -1, d, C, E, y;
|
|
1424
|
-
if (A) {
|
|
1425
|
-
for (d = h.charCodeAt(F); n(d) || i(d) || d === o || d === a || d === D || d === l; )
|
|
1426
|
-
d = h.charCodeAt(++F);
|
|
1427
|
-
if (F !== 0 && d === s) {
|
|
1428
|
-
for (F++; F < B; ) {
|
|
1429
|
-
if (d = h.charCodeAt(F), n(d) || i(d) || d === a || d === D || d === l) {
|
|
1430
|
-
F++, g === -1 && d === D && (g = F);
|
|
1431
|
-
continue;
|
|
1432
|
-
}
|
|
1433
|
-
break;
|
|
1434
|
-
}
|
|
1435
|
-
if (!(g === -1 || g === F || d === a || d === l))
|
|
1436
|
-
return d === D && F--, C = h.slice(0, F), p ? !0 : (y = m.enterLink(), m.inlineTokenizers = { text: v.text }, E = m.tokenizeInline(C, f.now()), m.inlineTokenizers = v, y(), f(C)({ type: "link", title: null, url: "mailto:" + t(C, { nonTerminated: !1 }), children: E }));
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
}), Kr = R((u, e) => {
|
|
1441
|
-
var t = ne(), n = vt(), i = gt().tag;
|
|
1442
|
-
e.exports = c, c.locator = n;
|
|
1443
|
-
var r = "<", o = "?", a = "!", D = "/", s = /^<a /i, l = /^<\/a>/i;
|
|
1444
|
-
function c(f, h, p) {
|
|
1445
|
-
var m = this, A = h.length, v, F;
|
|
1446
|
-
if (!(h.charAt(0) !== r || A < 3) && (v = h.charAt(1), !(!t(v) && v !== o && v !== a && v !== D) && (F = h.match(i), !!F)))
|
|
1447
|
-
return p ? !0 : (F = F[0], !m.inLink && s.test(F) ? m.inLink = !0 : m.inLink && l.test(F) && (m.inLink = !1), f(F)({ type: "html", value: F }));
|
|
1448
|
-
}
|
|
1449
|
-
}), xt = R((u, e) => {
|
|
1450
|
-
e.exports = t;
|
|
1451
|
-
function t(n, i) {
|
|
1452
|
-
var r = n.indexOf("[", i), o = n.indexOf("![", i);
|
|
1453
|
-
return o === -1 || r < o ? r : o;
|
|
1454
|
-
}
|
|
1455
|
-
}), Yr = R((u, e) => {
|
|
1456
|
-
var t = Bu(), n = xt();
|
|
1457
|
-
e.exports = A, A.locator = n;
|
|
1458
|
-
var i = `
|
|
1459
|
-
`, r = "!", o = '"', a = "'", D = "(", s = ")", l = "<", c = ">", f = "[", h = "\\", p = "]", m = "`";
|
|
1460
|
-
function A(v, F, B) {
|
|
1461
|
-
var g = this, d = "", C = 0, E = F.charAt(0), y = g.options.pedantic, w = g.options.commonmark, O = g.options.gfm, b, k, L, I, x, S, U, $, M, q, J, j, T, z, V, N, P, G;
|
|
1462
|
-
if (E === r && ($ = !0, d = E, E = F.charAt(++C)), E === f && !(!$ && g.inLink)) {
|
|
1463
|
-
for (d += E, z = "", C++, J = F.length, N = v.now(), T = 0, N.column += C, N.offset += C; C < J; ) {
|
|
1464
|
-
if (E = F.charAt(C), S = E, E === m) {
|
|
1465
|
-
for (k = 1; F.charAt(C + 1) === m; )
|
|
1466
|
-
S += E, C++, k++;
|
|
1467
|
-
L ? k >= L && (L = 0) : L = k;
|
|
1468
|
-
} else if (E === h)
|
|
1469
|
-
C++, S += F.charAt(C);
|
|
1470
|
-
else if ((!L || O) && E === f)
|
|
1471
|
-
T++;
|
|
1472
|
-
else if ((!L || O) && E === p)
|
|
1473
|
-
if (T)
|
|
1474
|
-
T--;
|
|
1475
|
-
else {
|
|
1476
|
-
if (F.charAt(C + 1) !== D)
|
|
1477
|
-
return;
|
|
1478
|
-
S += D, b = !0, C++;
|
|
1479
|
-
break;
|
|
1480
|
-
}
|
|
1481
|
-
z += S, S = "", C++;
|
|
1482
|
-
}
|
|
1483
|
-
if (b) {
|
|
1484
|
-
for (M = z, d += z + S, C++; C < J && (E = F.charAt(C), !!t(E)); )
|
|
1485
|
-
d += E, C++;
|
|
1486
|
-
if (E = F.charAt(C), z = "", I = d, E === l) {
|
|
1487
|
-
for (C++, I += l; C < J && (E = F.charAt(C), E !== c); ) {
|
|
1488
|
-
if (w && E === i)
|
|
1489
|
-
return;
|
|
1490
|
-
z += E, C++;
|
|
1491
|
-
}
|
|
1492
|
-
if (F.charAt(C) !== c)
|
|
1493
|
-
return;
|
|
1494
|
-
d += l + z + c, V = z, C++;
|
|
1495
|
-
} else {
|
|
1496
|
-
for (E = null, S = ""; C < J && (E = F.charAt(C), !(S && (E === o || E === a || w && E === D))); ) {
|
|
1497
|
-
if (t(E)) {
|
|
1498
|
-
if (!y)
|
|
1499
|
-
break;
|
|
1500
|
-
S += E;
|
|
1501
|
-
} else {
|
|
1502
|
-
if (E === D)
|
|
1503
|
-
T++;
|
|
1504
|
-
else if (E === s) {
|
|
1505
|
-
if (T === 0)
|
|
1506
|
-
break;
|
|
1507
|
-
T--;
|
|
1508
|
-
}
|
|
1509
|
-
z += S, S = "", E === h && (z += h, E = F.charAt(++C)), z += E;
|
|
1510
|
-
}
|
|
1511
|
-
C++;
|
|
1512
|
-
}
|
|
1513
|
-
d += z, V = z, C = d.length;
|
|
1514
|
-
}
|
|
1515
|
-
for (z = ""; C < J && (E = F.charAt(C), !!t(E)); )
|
|
1516
|
-
z += E, C++;
|
|
1517
|
-
if (E = F.charAt(C), d += z, z && (E === o || E === a || w && E === D))
|
|
1518
|
-
if (C++, d += E, z = "", q = E === D ? s : E, x = d, w) {
|
|
1519
|
-
for (; C < J && (E = F.charAt(C), E !== q); )
|
|
1520
|
-
E === h && (z += h, E = F.charAt(++C)), C++, z += E;
|
|
1521
|
-
if (E = F.charAt(C), E !== q)
|
|
1522
|
-
return;
|
|
1523
|
-
for (j = z, d += z + E, C++; C < J && (E = F.charAt(C), !!t(E)); )
|
|
1524
|
-
d += E, C++;
|
|
1525
|
-
} else
|
|
1526
|
-
for (S = ""; C < J; ) {
|
|
1527
|
-
if (E = F.charAt(C), E === q)
|
|
1528
|
-
U && (z += q + S, S = ""), U = !0;
|
|
1529
|
-
else if (!U)
|
|
1530
|
-
z += E;
|
|
1531
|
-
else if (E === s) {
|
|
1532
|
-
d += z + q + S, j = z;
|
|
1533
|
-
break;
|
|
1534
|
-
} else
|
|
1535
|
-
t(E) ? S += E : (z += q + S + E, S = "", U = !1);
|
|
1536
|
-
C++;
|
|
1537
|
-
}
|
|
1538
|
-
if (F.charAt(C) === s)
|
|
1539
|
-
return B ? !0 : (d += s, V = g.decode.raw(g.unescape(V), v(I).test().end, { nonTerminated: !1 }), j && (x = v(x).test().end, j = g.decode.raw(g.unescape(j), x)), G = { type: $ ? "image" : "link", title: j || null, url: V }, $ ? G.alt = g.decode.raw(g.unescape(M), N) || null : (P = g.enterLink(), G.children = g.tokenizeInline(M, N), P()), v(d)(G));
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
}), Qr = R((u, e) => {
|
|
1544
|
-
var t = Bu(), n = xt(), i = mt();
|
|
1545
|
-
e.exports = p, p.locator = n;
|
|
1546
|
-
var r = "link", o = "image", a = "shortcut", D = "collapsed", s = "full", l = "!", c = "[", f = "\\", h = "]";
|
|
1547
|
-
function p(m, A, v) {
|
|
1548
|
-
var F = this, B = F.options.commonmark, g = A.charAt(0), d = 0, C = A.length, E = "", y = "", w = r, O = a, b, k, L, I, x, S, U, $;
|
|
1549
|
-
if (g === l && (w = o, y = g, g = A.charAt(++d)), g === c) {
|
|
1550
|
-
for (d++, y += g, S = "", $ = 0; d < C; ) {
|
|
1551
|
-
if (g = A.charAt(d), g === c)
|
|
1552
|
-
U = !0, $++;
|
|
1553
|
-
else if (g === h) {
|
|
1554
|
-
if (!$)
|
|
1555
|
-
break;
|
|
1556
|
-
$--;
|
|
1557
|
-
}
|
|
1558
|
-
g === f && (S += f, g = A.charAt(++d)), S += g, d++;
|
|
1559
|
-
}
|
|
1560
|
-
if (E = S, b = S, g = A.charAt(d), g === h) {
|
|
1561
|
-
if (d++, E += g, S = "", !B)
|
|
1562
|
-
for (; d < C && (g = A.charAt(d), !!t(g)); )
|
|
1563
|
-
S += g, d++;
|
|
1564
|
-
if (g = A.charAt(d), g === c) {
|
|
1565
|
-
for (k = "", S += g, d++; d < C && (g = A.charAt(d), !(g === c || g === h)); )
|
|
1566
|
-
g === f && (k += f, g = A.charAt(++d)), k += g, d++;
|
|
1567
|
-
g = A.charAt(d), g === h ? (O = k ? s : D, S += k + g, d++) : k = "", E += S, S = "";
|
|
1568
|
-
} else {
|
|
1569
|
-
if (!b)
|
|
1570
|
-
return;
|
|
1571
|
-
k = b;
|
|
1572
|
-
}
|
|
1573
|
-
if (!(O !== s && U))
|
|
1574
|
-
return E = y + E, w === r && F.inLink ? null : v ? !0 : (L = m.now(), L.column += y.length, L.offset += y.length, k = O === s ? k : b, I = { type: w + "Reference", identifier: i(k), label: k, referenceType: O }, w === r ? (x = F.enterLink(), I.children = F.tokenizeInline(b, L), x()) : I.alt = F.decode.raw(F.unescape(b), L) || null, m(E)(I));
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
}), Zr = R((u, e) => {
|
|
1579
|
-
e.exports = t;
|
|
1580
|
-
function t(n, i) {
|
|
1581
|
-
var r = n.indexOf("**", i), o = n.indexOf("__", i);
|
|
1582
|
-
return o === -1 ? r : r === -1 || o < r ? o : r;
|
|
1583
|
-
}
|
|
1584
|
-
}), Xr = R((u, e) => {
|
|
1585
|
-
var t = Gu(), n = Bu(), i = Zr();
|
|
1586
|
-
e.exports = D, D.locator = i;
|
|
1587
|
-
var r = "\\", o = "*", a = "_";
|
|
1588
|
-
function D(s, l, c) {
|
|
1589
|
-
var f = this, h = 0, p = l.charAt(h), m, A, v, F, B, g, d;
|
|
1590
|
-
if (!(p !== o && p !== a || l.charAt(++h) !== p) && (A = f.options.pedantic, v = p, B = v + v, g = l.length, h++, F = "", p = "", !(A && n(l.charAt(h)))))
|
|
1591
|
-
for (; h < g; ) {
|
|
1592
|
-
if (d = p, p = l.charAt(h), p === v && l.charAt(h + 1) === v && (!A || !n(d)) && (p = l.charAt(h + 2), p !== v))
|
|
1593
|
-
return t(F) ? c ? !0 : (m = s.now(), m.column += 2, m.offset += 2, s(B + F + B)({ type: "strong", children: f.tokenizeInline(F, m) })) : void 0;
|
|
1594
|
-
!A && p === r && (F += p, p = l.charAt(++h)), F += p, h++;
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
}), un = R((u, e) => {
|
|
1598
|
-
e.exports = i;
|
|
1599
|
-
var t = String.fromCharCode, n = /\w/;
|
|
1600
|
-
function i(r) {
|
|
1601
|
-
return n.test(typeof r == "number" ? t(r) : r.charAt(0));
|
|
1602
|
-
}
|
|
1603
|
-
}), en = R((u, e) => {
|
|
1604
|
-
e.exports = t;
|
|
1605
|
-
function t(n, i) {
|
|
1606
|
-
var r = n.indexOf("*", i), o = n.indexOf("_", i);
|
|
1607
|
-
return o === -1 ? r : r === -1 || o < r ? o : r;
|
|
1608
|
-
}
|
|
1609
|
-
}), tn = R((u, e) => {
|
|
1610
|
-
var t = Gu(), n = un(), i = Bu(), r = en();
|
|
1611
|
-
e.exports = s, s.locator = r;
|
|
1612
|
-
var o = "*", a = "_", D = "\\";
|
|
1613
|
-
function s(l, c, f) {
|
|
1614
|
-
var h = this, p = 0, m = c.charAt(p), A, v, F, B, g, d, C;
|
|
1615
|
-
if (!(m !== o && m !== a) && (v = h.options.pedantic, g = m, F = m, d = c.length, p++, B = "", m = "", !(v && i(c.charAt(p)))))
|
|
1616
|
-
for (; p < d; ) {
|
|
1617
|
-
if (C = m, m = c.charAt(p), m === F && (!v || !i(C))) {
|
|
1618
|
-
if (m = c.charAt(++p), m !== F) {
|
|
1619
|
-
if (!t(B) || C === F)
|
|
1620
|
-
return;
|
|
1621
|
-
if (!v && F === a && n(m)) {
|
|
1622
|
-
B += F;
|
|
1623
|
-
continue;
|
|
1624
|
-
}
|
|
1625
|
-
return f ? !0 : (A = l.now(), A.column++, A.offset++, l(g + B + F)({ type: "emphasis", children: h.tokenizeInline(B, A) }));
|
|
1626
|
-
}
|
|
1627
|
-
B += F;
|
|
1628
|
-
}
|
|
1629
|
-
!v && m === D && (B += m, m = c.charAt(++p)), B += m, p++;
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
}), rn = R((u, e) => {
|
|
1633
|
-
e.exports = t;
|
|
1634
|
-
function t(n, i) {
|
|
1635
|
-
return n.indexOf("~~", i);
|
|
1636
|
-
}
|
|
1637
|
-
}), nn = R((u, e) => {
|
|
1638
|
-
var t = Bu(), n = rn();
|
|
1639
|
-
e.exports = o, o.locator = n;
|
|
1640
|
-
var i = "~", r = "~~";
|
|
1641
|
-
function o(a, D, s) {
|
|
1642
|
-
var l = this, c = "", f = "", h = "", p = "", m, A, v;
|
|
1643
|
-
if (!(!l.options.gfm || D.charAt(0) !== i || D.charAt(1) !== i || t(D.charAt(2))))
|
|
1644
|
-
for (m = 1, A = D.length, v = a.now(), v.column += 2, v.offset += 2; ++m < A; ) {
|
|
1645
|
-
if (c = D.charAt(m), c === i && f === i && (!h || !t(h)))
|
|
1646
|
-
return s ? !0 : a(r + p + r)({ type: "delete", children: l.tokenizeInline(p, v) });
|
|
1647
|
-
p += f, h = f, f = c;
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
}), on = R((u, e) => {
|
|
1651
|
-
e.exports = t;
|
|
1652
|
-
function t(n, i) {
|
|
1653
|
-
return n.indexOf("`", i);
|
|
1654
|
-
}
|
|
1655
|
-
}), an = R((u, e) => {
|
|
1656
|
-
var t = on();
|
|
1657
|
-
e.exports = o, o.locator = t;
|
|
1658
|
-
var n = 10, i = 32, r = 96;
|
|
1659
|
-
function o(a, D, s) {
|
|
1660
|
-
for (var l = D.length, c = 0, f, h, p, m, A, v; c < l && D.charCodeAt(c) === r; )
|
|
1661
|
-
c++;
|
|
1662
|
-
if (!(c === 0 || c === l)) {
|
|
1663
|
-
for (f = c, A = D.charCodeAt(c); c < l; ) {
|
|
1664
|
-
if (m = A, A = D.charCodeAt(c + 1), m === r) {
|
|
1665
|
-
if (h === void 0 && (h = c), p = c + 1, A !== r && p - h === f) {
|
|
1666
|
-
v = !0;
|
|
1667
|
-
break;
|
|
1668
|
-
}
|
|
1669
|
-
} else
|
|
1670
|
-
h !== void 0 && (h = void 0, p = void 0);
|
|
1671
|
-
c++;
|
|
1672
|
-
}
|
|
1673
|
-
if (v) {
|
|
1674
|
-
if (s)
|
|
1675
|
-
return !0;
|
|
1676
|
-
if (c = f, l = h, m = D.charCodeAt(c), A = D.charCodeAt(l - 1), v = !1, l - c > 2 && (m === i || m === n) && (A === i || A === n)) {
|
|
1677
|
-
for (c++, l--; c < l; ) {
|
|
1678
|
-
if (m = D.charCodeAt(c), m !== i && m !== n) {
|
|
1679
|
-
v = !0;
|
|
1680
|
-
break;
|
|
1681
|
-
}
|
|
1682
|
-
c++;
|
|
1683
|
-
}
|
|
1684
|
-
v === !0 && (f++, h--);
|
|
1685
|
-
}
|
|
1686
|
-
return a(D.slice(0, p))({ type: "inlineCode", value: D.slice(f, h) });
|
|
1687
|
-
}
|
|
1688
|
-
}
|
|
1689
|
-
}
|
|
1690
|
-
}), Dn = R((u, e) => {
|
|
1691
|
-
e.exports = t;
|
|
1692
|
-
function t(n, i) {
|
|
1693
|
-
for (var r = n.indexOf(`
|
|
1694
|
-
`, i); r > i && n.charAt(r - 1) === " "; )
|
|
1695
|
-
r--;
|
|
1696
|
-
return r;
|
|
1697
|
-
}
|
|
1698
|
-
}), ln = R((u, e) => {
|
|
1699
|
-
var t = Dn();
|
|
1700
|
-
e.exports = o, o.locator = t;
|
|
1701
|
-
var n = " ", i = `
|
|
1702
|
-
`, r = 2;
|
|
1703
|
-
function o(a, D, s) {
|
|
1704
|
-
for (var l = D.length, c = -1, f = "", h; ++c < l; ) {
|
|
1705
|
-
if (h = D.charAt(c), h === i)
|
|
1706
|
-
return c < r ? void 0 : s ? !0 : (f += h, a(f)({ type: "break" }));
|
|
1707
|
-
if (h !== n)
|
|
1708
|
-
return;
|
|
1709
|
-
f += h;
|
|
1710
|
-
}
|
|
1711
|
-
}
|
|
1712
|
-
}), sn = R((u, e) => {
|
|
1713
|
-
e.exports = t;
|
|
1714
|
-
function t(n, i, r) {
|
|
1715
|
-
var o = this, a, D, s, l, c, f, h, p, m, A;
|
|
1716
|
-
if (r)
|
|
1717
|
-
return !0;
|
|
1718
|
-
for (a = o.inlineMethods, l = a.length, D = o.inlineTokenizers, s = -1, m = i.length; ++s < l; )
|
|
1719
|
-
p = a[s], !(p === "text" || !D[p]) && (h = D[p].locator, h || n.file.fail("Missing locator: `" + p + "`"), f = h.call(o, i, 1), f !== -1 && f < m && (m = f));
|
|
1720
|
-
c = i.slice(0, m), A = n.now(), o.decode(c, A, v);
|
|
1721
|
-
function v(F, B, g) {
|
|
1722
|
-
n(g || F)({ type: "text", value: F });
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
}), cn = R((u, e) => {
|
|
1726
|
-
var t = Vu(), n = Dr(), i = lr(), r = sr(), o = Cr(), a = Ar();
|
|
1727
|
-
e.exports = D;
|
|
1728
|
-
function D(c, f) {
|
|
1729
|
-
this.file = f, this.offset = {}, this.options = t(this.options), this.setOptions({}), this.inList = !1, this.inBlock = !1, this.inLink = !1, this.atStart = !0, this.toOffset = i(f).toOffset, this.unescape = r(this, "escape"), this.decode = o(this);
|
|
1730
|
-
}
|
|
1731
|
-
var s = D.prototype;
|
|
1732
|
-
s.setOptions = mr(), s.parse = wr(), s.options = Ct(), s.exitStart = n("atStart", !0), s.enterList = n("inList", !1), s.enterLink = n("inLink", !1), s.enterBlock = n("inBlock", !1), s.interruptParagraph = [["thematicBreak"], ["list"], ["atxHeading"], ["fencedCode"], ["blockquote"], ["html"], ["setextHeading", { commonmark: !1 }], ["definition", { commonmark: !1 }]], s.interruptList = [["atxHeading", { pedantic: !1 }], ["fencedCode", { pedantic: !1 }], ["thematicBreak", { pedantic: !1 }], ["definition", { commonmark: !1 }]], s.interruptBlockquote = [["indentedCode", { commonmark: !0 }], ["fencedCode", { commonmark: !0 }], ["atxHeading", { commonmark: !0 }], ["setextHeading", { commonmark: !0 }], ["thematicBreak", { commonmark: !0 }], ["html", { commonmark: !0 }], ["list", { commonmark: !0 }], ["definition", { commonmark: !1 }]], s.blockTokenizers = { blankLine: kr(), indentedCode: qr(), fencedCode: Sr(), blockquote: Lr(), atxHeading: Or(), thematicBreak: Tr(), list: Rr(), setextHeading: Ir(), html: Pr(), definition: jr(), table: zr(), paragraph: $r() }, s.inlineTokenizers = { escape: Vr(), autoLink: Mr(), url: Wr(), email: Jr(), html: Kr(), link: Yr(), reference: Qr(), strong: Xr(), emphasis: tn(), deletion: nn(), code: an(), break: ln(), text: sn() }, s.blockMethods = l(s.blockTokenizers), s.inlineMethods = l(s.inlineTokenizers), s.tokenizeBlock = a("block"), s.tokenizeInline = a("inline"), s.tokenizeFactory = a;
|
|
1733
|
-
function l(c) {
|
|
1734
|
-
var f = [], h;
|
|
1735
|
-
for (h in c)
|
|
1736
|
-
f.push(h);
|
|
1737
|
-
return f;
|
|
1738
|
-
}
|
|
1739
|
-
}), fn = R((u, e) => {
|
|
1740
|
-
var t = ar(), n = Vu(), i = cn();
|
|
1741
|
-
e.exports = r, r.Parser = i;
|
|
1742
|
-
function r(o) {
|
|
1743
|
-
var a = this.data("settings"), D = t(i);
|
|
1744
|
-
D.prototype.options = n(D.prototype.options, a, o), this.Parser = D;
|
|
1745
|
-
}
|
|
1746
|
-
}), pn = R((u, e) => {
|
|
1747
|
-
e.exports = t;
|
|
1748
|
-
function t(n) {
|
|
1749
|
-
if (n)
|
|
1750
|
-
throw n;
|
|
1751
|
-
}
|
|
1752
|
-
}), Bt = R((u, e) => {
|
|
1753
|
-
e.exports = function(t) {
|
|
1754
|
-
return t != null && t.constructor != null && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
|
1755
|
-
};
|
|
1756
|
-
}), hn = R((u, e) => {
|
|
1757
|
-
var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, i = Object.defineProperty, r = Object.getOwnPropertyDescriptor, o = function(l) {
|
|
1758
|
-
return typeof Array.isArray == "function" ? Array.isArray(l) : n.call(l) === "[object Array]";
|
|
1759
|
-
}, a = function(l) {
|
|
1760
|
-
if (!l || n.call(l) !== "[object Object]")
|
|
1761
|
-
return !1;
|
|
1762
|
-
var c = t.call(l, "constructor"), f = l.constructor && l.constructor.prototype && t.call(l.constructor.prototype, "isPrototypeOf");
|
|
1763
|
-
if (l.constructor && !c && !f)
|
|
1764
|
-
return !1;
|
|
1765
|
-
var h;
|
|
1766
|
-
for (h in l)
|
|
1767
|
-
;
|
|
1768
|
-
return typeof h > "u" || t.call(l, h);
|
|
1769
|
-
}, D = function(l, c) {
|
|
1770
|
-
i && c.name === "__proto__" ? i(l, c.name, { enumerable: !0, configurable: !0, value: c.newValue, writable: !0 }) : l[c.name] = c.newValue;
|
|
1771
|
-
}, s = function(l, c) {
|
|
1772
|
-
if (c === "__proto__")
|
|
1773
|
-
if (t.call(l, c)) {
|
|
1774
|
-
if (r)
|
|
1775
|
-
return r(l, c).value;
|
|
1776
|
-
} else
|
|
1777
|
-
return;
|
|
1778
|
-
return l[c];
|
|
1779
|
-
};
|
|
1780
|
-
e.exports = function l() {
|
|
1781
|
-
var c, f, h, p, m, A, v = arguments[0], F = 1, B = arguments.length, g = !1;
|
|
1782
|
-
for (typeof v == "boolean" && (g = v, v = arguments[1] || {}, F = 2), (v == null || typeof v != "object" && typeof v != "function") && (v = {}); F < B; ++F)
|
|
1783
|
-
if (c = arguments[F], c != null)
|
|
1784
|
-
for (f in c)
|
|
1785
|
-
h = s(v, f), p = s(c, f), v !== p && (g && p && (a(p) || (m = o(p))) ? (m ? (m = !1, A = h && o(h) ? h : []) : A = h && a(h) ? h : {}, D(v, { name: f, newValue: l(g, A, p) })) : typeof p < "u" && D(v, { name: f, newValue: p }));
|
|
1786
|
-
return v;
|
|
1787
|
-
};
|
|
1788
|
-
}), dn = R((u, e) => {
|
|
1789
|
-
e.exports = (t) => {
|
|
1790
|
-
if (Object.prototype.toString.call(t) !== "[object Object]")
|
|
1791
|
-
return !1;
|
|
1792
|
-
let n = Object.getPrototypeOf(t);
|
|
1793
|
-
return n === null || n === Object.prototype;
|
|
1794
|
-
};
|
|
1795
|
-
}), Fn = R((u, e) => {
|
|
1796
|
-
var t = [].slice;
|
|
1797
|
-
e.exports = n;
|
|
1798
|
-
function n(i, r) {
|
|
1799
|
-
var o;
|
|
1800
|
-
return a;
|
|
1801
|
-
function a() {
|
|
1802
|
-
var l = t.call(arguments, 0), c = i.length > l.length, f;
|
|
1803
|
-
c && l.push(D);
|
|
1804
|
-
try {
|
|
1805
|
-
f = i.apply(null, l);
|
|
1806
|
-
} catch (h) {
|
|
1807
|
-
if (c && o)
|
|
1808
|
-
throw h;
|
|
1809
|
-
return D(h);
|
|
1810
|
-
}
|
|
1811
|
-
c || (f && typeof f.then == "function" ? f.then(s, D) : f instanceof Error ? D(f) : s(f));
|
|
1812
|
-
}
|
|
1813
|
-
function D() {
|
|
1814
|
-
o || (o = !0, r.apply(null, arguments));
|
|
1815
|
-
}
|
|
1816
|
-
function s(l) {
|
|
1817
|
-
D(null, l);
|
|
1818
|
-
}
|
|
1819
|
-
}
|
|
1820
|
-
}), Cn = R((u, e) => {
|
|
1821
|
-
var t = Fn();
|
|
1822
|
-
e.exports = i, i.wrap = t;
|
|
1823
|
-
var n = [].slice;
|
|
1824
|
-
function i() {
|
|
1825
|
-
var r = [], o = {};
|
|
1826
|
-
return o.run = a, o.use = D, o;
|
|
1827
|
-
function a() {
|
|
1828
|
-
var s = -1, l = n.call(arguments, 0, -1), c = arguments[arguments.length - 1];
|
|
1829
|
-
if (typeof c != "function")
|
|
1830
|
-
throw new Error("Expected function as last argument, not " + c);
|
|
1831
|
-
f.apply(null, [null].concat(l));
|
|
1832
|
-
function f(h) {
|
|
1833
|
-
var p = r[++s], m = n.call(arguments, 0), A = m.slice(1), v = l.length, F = -1;
|
|
1834
|
-
if (h) {
|
|
1835
|
-
c(h);
|
|
1836
|
-
return;
|
|
1837
|
-
}
|
|
1838
|
-
for (; ++F < v; )
|
|
1839
|
-
(A[F] === null || A[F] === void 0) && (A[F] = l[F]);
|
|
1840
|
-
l = A, p ? t(p, f).apply(null, l) : c.apply(null, [null].concat(l));
|
|
1841
|
-
}
|
|
1842
|
-
}
|
|
1843
|
-
function D(s) {
|
|
1844
|
-
if (typeof s != "function")
|
|
1845
|
-
throw new Error("Expected `fn` to be a function, not " + s);
|
|
1846
|
-
return r.push(s), o;
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
}), An = R((u, e) => {
|
|
1850
|
-
var t = {}.hasOwnProperty;
|
|
1851
|
-
e.exports = n;
|
|
1852
|
-
function n(a) {
|
|
1853
|
-
return !a || typeof a != "object" ? "" : t.call(a, "position") || t.call(a, "type") ? r(a.position) : t.call(a, "start") || t.call(a, "end") ? r(a) : t.call(a, "line") || t.call(a, "column") ? i(a) : "";
|
|
1854
|
-
}
|
|
1855
|
-
function i(a) {
|
|
1856
|
-
return (!a || typeof a != "object") && (a = {}), o(a.line) + ":" + o(a.column);
|
|
1857
|
-
}
|
|
1858
|
-
function r(a) {
|
|
1859
|
-
return (!a || typeof a != "object") && (a = {}), i(a.start) + "-" + i(a.end);
|
|
1860
|
-
}
|
|
1861
|
-
function o(a) {
|
|
1862
|
-
return a && typeof a == "number" ? a : 1;
|
|
1863
|
-
}
|
|
1864
|
-
}), En = R((u, e) => {
|
|
1865
|
-
var t = An();
|
|
1866
|
-
e.exports = r;
|
|
1867
|
-
function n() {
|
|
1868
|
-
}
|
|
1869
|
-
n.prototype = Error.prototype, r.prototype = new n();
|
|
1870
|
-
var i = r.prototype;
|
|
1871
|
-
i.file = "", i.name = "", i.reason = "", i.message = "", i.stack = "", i.fatal = null, i.column = null, i.line = null;
|
|
1872
|
-
function r(a, D, s) {
|
|
1873
|
-
var l, c, f;
|
|
1874
|
-
typeof D == "string" && (s = D, D = null), l = o(s), c = t(D) || "1:1", f = { start: { line: null, column: null }, end: { line: null, column: null } }, D && D.position && (D = D.position), D && (D.start ? (f = D, D = D.start) : f.start = D), a.stack && (this.stack = a.stack, a = a.message), this.message = a, this.name = c, this.reason = a, this.line = D ? D.line : null, this.column = D ? D.column : null, this.location = f, this.source = l[0], this.ruleId = l[1];
|
|
1875
|
-
}
|
|
1876
|
-
function o(a) {
|
|
1877
|
-
var D = [null, null], s;
|
|
1878
|
-
return typeof a == "string" && (s = a.indexOf(":"), s === -1 ? D[1] = a : (D[0] = a.slice(0, s), D[1] = a.slice(s + 1))), D;
|
|
1879
|
-
}
|
|
1880
|
-
}), gn = R((u) => {
|
|
1881
|
-
u.basename = e, u.dirname = t, u.extname = n, u.join = i, u.sep = "/";
|
|
1882
|
-
function e(D, s) {
|
|
1883
|
-
var l = 0, c = -1, f, h, p, m;
|
|
1884
|
-
if (s !== void 0 && typeof s != "string")
|
|
1885
|
-
throw new TypeError('"ext" argument must be a string');
|
|
1886
|
-
if (a(D), f = D.length, s === void 0 || !s.length || s.length > D.length) {
|
|
1887
|
-
for (; f--; )
|
|
1888
|
-
if (D.charCodeAt(f) === 47) {
|
|
1889
|
-
if (p) {
|
|
1890
|
-
l = f + 1;
|
|
1891
|
-
break;
|
|
1892
|
-
}
|
|
1893
|
-
} else
|
|
1894
|
-
c < 0 && (p = !0, c = f + 1);
|
|
1895
|
-
return c < 0 ? "" : D.slice(l, c);
|
|
1896
|
-
}
|
|
1897
|
-
if (s === D)
|
|
1898
|
-
return "";
|
|
1899
|
-
for (h = -1, m = s.length - 1; f--; )
|
|
1900
|
-
if (D.charCodeAt(f) === 47) {
|
|
1901
|
-
if (p) {
|
|
1902
|
-
l = f + 1;
|
|
1903
|
-
break;
|
|
1904
|
-
}
|
|
1905
|
-
} else
|
|
1906
|
-
h < 0 && (p = !0, h = f + 1), m > -1 && (D.charCodeAt(f) === s.charCodeAt(m--) ? m < 0 && (c = f) : (m = -1, c = h));
|
|
1907
|
-
return l === c ? c = h : c < 0 && (c = D.length), D.slice(l, c);
|
|
1908
|
-
}
|
|
1909
|
-
function t(D) {
|
|
1910
|
-
var s, l, c;
|
|
1911
|
-
if (a(D), !D.length)
|
|
1912
|
-
return ".";
|
|
1913
|
-
for (s = -1, c = D.length; --c; )
|
|
1914
|
-
if (D.charCodeAt(c) === 47) {
|
|
1915
|
-
if (l) {
|
|
1916
|
-
s = c;
|
|
1917
|
-
break;
|
|
1918
|
-
}
|
|
1919
|
-
} else
|
|
1920
|
-
l || (l = !0);
|
|
1921
|
-
return s < 0 ? D.charCodeAt(0) === 47 ? "/" : "." : s === 1 && D.charCodeAt(0) === 47 ? "//" : D.slice(0, s);
|
|
1922
|
-
}
|
|
1923
|
-
function n(D) {
|
|
1924
|
-
var s = -1, l = 0, c = -1, f = 0, h, p, m;
|
|
1925
|
-
for (a(D), m = D.length; m--; ) {
|
|
1926
|
-
if (p = D.charCodeAt(m), p === 47) {
|
|
1927
|
-
if (h) {
|
|
1928
|
-
l = m + 1;
|
|
1929
|
-
break;
|
|
1930
|
-
}
|
|
1931
|
-
continue;
|
|
1932
|
-
}
|
|
1933
|
-
c < 0 && (h = !0, c = m + 1), p === 46 ? s < 0 ? s = m : f !== 1 && (f = 1) : s > -1 && (f = -1);
|
|
1934
|
-
}
|
|
1935
|
-
return s < 0 || c < 0 || f === 0 || f === 1 && s === c - 1 && s === l + 1 ? "" : D.slice(s, c);
|
|
1936
|
-
}
|
|
1937
|
-
function i() {
|
|
1938
|
-
for (var D = -1, s; ++D < arguments.length; )
|
|
1939
|
-
a(arguments[D]), arguments[D] && (s = s === void 0 ? arguments[D] : s + "/" + arguments[D]);
|
|
1940
|
-
return s === void 0 ? "." : r(s);
|
|
1941
|
-
}
|
|
1942
|
-
function r(D) {
|
|
1943
|
-
var s, l;
|
|
1944
|
-
return a(D), s = D.charCodeAt(0) === 47, l = o(D, !s), !l.length && !s && (l = "."), l.length && D.charCodeAt(D.length - 1) === 47 && (l += "/"), s ? "/" + l : l;
|
|
1945
|
-
}
|
|
1946
|
-
function o(D, s) {
|
|
1947
|
-
for (var l = "", c = 0, f = -1, h = 0, p = -1, m, A; ++p <= D.length; ) {
|
|
1948
|
-
if (p < D.length)
|
|
1949
|
-
m = D.charCodeAt(p);
|
|
1950
|
-
else {
|
|
1951
|
-
if (m === 47)
|
|
1952
|
-
break;
|
|
1953
|
-
m = 47;
|
|
1954
|
-
}
|
|
1955
|
-
if (m === 47) {
|
|
1956
|
-
if (!(f === p - 1 || h === 1))
|
|
1957
|
-
if (f !== p - 1 && h === 2) {
|
|
1958
|
-
if (l.length < 2 || c !== 2 || l.charCodeAt(l.length - 1) !== 46 || l.charCodeAt(l.length - 2) !== 46) {
|
|
1959
|
-
if (l.length > 2) {
|
|
1960
|
-
if (A = l.lastIndexOf("/"), A !== l.length - 1) {
|
|
1961
|
-
A < 0 ? (l = "", c = 0) : (l = l.slice(0, A), c = l.length - 1 - l.lastIndexOf("/")), f = p, h = 0;
|
|
1962
|
-
continue;
|
|
1963
|
-
}
|
|
1964
|
-
} else if (l.length) {
|
|
1965
|
-
l = "", c = 0, f = p, h = 0;
|
|
1966
|
-
continue;
|
|
1967
|
-
}
|
|
1968
|
-
}
|
|
1969
|
-
s && (l = l.length ? l + "/.." : "..", c = 2);
|
|
1970
|
-
} else
|
|
1971
|
-
l.length ? l += "/" + D.slice(f + 1, p) : l = D.slice(f + 1, p), c = p - f - 1;
|
|
1972
|
-
f = p, h = 0;
|
|
1973
|
-
} else
|
|
1974
|
-
m === 46 && h > -1 ? h++ : h = -1;
|
|
1975
|
-
}
|
|
1976
|
-
return l;
|
|
1977
|
-
}
|
|
1978
|
-
function a(D) {
|
|
1979
|
-
if (typeof D != "string")
|
|
1980
|
-
throw new TypeError("Path must be a string. Received " + JSON.stringify(D));
|
|
1981
|
-
}
|
|
1982
|
-
}), mn = R((u) => {
|
|
1983
|
-
u.cwd = e;
|
|
1984
|
-
function e() {
|
|
1985
|
-
return "/";
|
|
1986
|
-
}
|
|
1987
|
-
}), vn = R((u, e) => {
|
|
1988
|
-
var t = gn(), n = mn(), i = Bt();
|
|
1989
|
-
e.exports = a;
|
|
1990
|
-
var r = {}.hasOwnProperty, o = ["history", "path", "basename", "stem", "extname", "dirname"];
|
|
1991
|
-
a.prototype.toString = F, Object.defineProperty(a.prototype, "path", { get: D, set: s }), Object.defineProperty(a.prototype, "dirname", { get: l, set: c }), Object.defineProperty(a.prototype, "basename", { get: f, set: h }), Object.defineProperty(a.prototype, "extname", { get: p, set: m }), Object.defineProperty(a.prototype, "stem", { get: A, set: v });
|
|
1992
|
-
function a(C) {
|
|
1993
|
-
var E, y;
|
|
1994
|
-
if (!C)
|
|
1995
|
-
C = {};
|
|
1996
|
-
else if (typeof C == "string" || i(C))
|
|
1997
|
-
C = { contents: C };
|
|
1998
|
-
else if ("message" in C && "messages" in C)
|
|
1999
|
-
return C;
|
|
2000
|
-
if (!(this instanceof a))
|
|
2001
|
-
return new a(C);
|
|
2002
|
-
for (this.data = {}, this.messages = [], this.history = [], this.cwd = n.cwd(), y = -1; ++y < o.length; )
|
|
2003
|
-
E = o[y], r.call(C, E) && (this[E] = C[E]);
|
|
2004
|
-
for (E in C)
|
|
2005
|
-
o.indexOf(E) < 0 && (this[E] = C[E]);
|
|
2006
|
-
}
|
|
2007
|
-
function D() {
|
|
2008
|
-
return this.history[this.history.length - 1];
|
|
2009
|
-
}
|
|
2010
|
-
function s(C) {
|
|
2011
|
-
g(C, "path"), this.path !== C && this.history.push(C);
|
|
2012
|
-
}
|
|
2013
|
-
function l() {
|
|
2014
|
-
return typeof this.path == "string" ? t.dirname(this.path) : void 0;
|
|
2015
|
-
}
|
|
2016
|
-
function c(C) {
|
|
2017
|
-
d(this.path, "dirname"), this.path = t.join(C || "", this.basename);
|
|
2018
|
-
}
|
|
2019
|
-
function f() {
|
|
2020
|
-
return typeof this.path == "string" ? t.basename(this.path) : void 0;
|
|
2021
|
-
}
|
|
2022
|
-
function h(C) {
|
|
2023
|
-
g(C, "basename"), B(C, "basename"), this.path = t.join(this.dirname || "", C);
|
|
2024
|
-
}
|
|
2025
|
-
function p() {
|
|
2026
|
-
return typeof this.path == "string" ? t.extname(this.path) : void 0;
|
|
2027
|
-
}
|
|
2028
|
-
function m(C) {
|
|
2029
|
-
if (B(C, "extname"), d(this.path, "extname"), C) {
|
|
2030
|
-
if (C.charCodeAt(0) !== 46)
|
|
2031
|
-
throw new Error("`extname` must start with `.`");
|
|
2032
|
-
if (C.indexOf(".", 1) > -1)
|
|
2033
|
-
throw new Error("`extname` cannot contain multiple dots");
|
|
2034
|
-
}
|
|
2035
|
-
this.path = t.join(this.dirname, this.stem + (C || ""));
|
|
2036
|
-
}
|
|
2037
|
-
function A() {
|
|
2038
|
-
return typeof this.path == "string" ? t.basename(this.path, this.extname) : void 0;
|
|
2039
|
-
}
|
|
2040
|
-
function v(C) {
|
|
2041
|
-
g(C, "stem"), B(C, "stem"), this.path = t.join(this.dirname || "", C + (this.extname || ""));
|
|
2042
|
-
}
|
|
2043
|
-
function F(C) {
|
|
2044
|
-
return (this.contents || "").toString(C);
|
|
2045
|
-
}
|
|
2046
|
-
function B(C, E) {
|
|
2047
|
-
if (C && C.indexOf(t.sep) > -1)
|
|
2048
|
-
throw new Error("`" + E + "` cannot be a path: did not expect `" + t.sep + "`");
|
|
2049
|
-
}
|
|
2050
|
-
function g(C, E) {
|
|
2051
|
-
if (!C)
|
|
2052
|
-
throw new Error("`" + E + "` cannot be empty");
|
|
2053
|
-
}
|
|
2054
|
-
function d(C, E) {
|
|
2055
|
-
if (!C)
|
|
2056
|
-
throw new Error("Setting `" + E + "` requires `path` to be set too");
|
|
2057
|
-
}
|
|
2058
|
-
}), xn = R((u, e) => {
|
|
2059
|
-
var t = En(), n = vn();
|
|
2060
|
-
e.exports = n, n.prototype.message = i, n.prototype.info = o, n.prototype.fail = r;
|
|
2061
|
-
function i(a, D, s) {
|
|
2062
|
-
var l = new t(a, D, s);
|
|
2063
|
-
return this.path && (l.name = this.path + ":" + l.name, l.file = this.path), l.fatal = !1, this.messages.push(l), l;
|
|
2064
|
-
}
|
|
2065
|
-
function r() {
|
|
2066
|
-
var a = this.message.apply(this, arguments);
|
|
2067
|
-
throw a.fatal = !0, a;
|
|
2068
|
-
}
|
|
2069
|
-
function o() {
|
|
2070
|
-
var a = this.message.apply(this, arguments);
|
|
2071
|
-
return a.fatal = null, a;
|
|
2072
|
-
}
|
|
2073
|
-
}), Bn = R((u, e) => {
|
|
2074
|
-
e.exports = xn();
|
|
2075
|
-
}), bn = R((u, e) => {
|
|
2076
|
-
var t = pn(), n = Bt(), i = hn(), r = dn(), o = Cn(), a = Bn();
|
|
2077
|
-
e.exports = p().freeze();
|
|
2078
|
-
var D = [].slice, s = {}.hasOwnProperty, l = o().use(c).use(f).use(h);
|
|
2079
|
-
function c(C, E) {
|
|
2080
|
-
E.tree = C.parse(E.file);
|
|
2081
|
-
}
|
|
2082
|
-
function f(C, E, y) {
|
|
2083
|
-
C.run(E.tree, E.file, w);
|
|
2084
|
-
function w(O, b, k) {
|
|
2085
|
-
O ? y(O) : (E.tree = b, E.file = k, y());
|
|
2086
|
-
}
|
|
2087
|
-
}
|
|
2088
|
-
function h(C, E) {
|
|
2089
|
-
var y = C.stringify(E.tree, E.file);
|
|
2090
|
-
y == null || (typeof y == "string" || n(y) ? ("value" in E.file && (E.file.value = y), E.file.contents = y) : E.file.result = y);
|
|
2091
|
-
}
|
|
2092
|
-
function p() {
|
|
2093
|
-
var C = [], E = o(), y = {}, w = -1, O;
|
|
2094
|
-
return b.data = L, b.freeze = k, b.attachers = C, b.use = I, b.parse = S, b.stringify = M, b.run = U, b.runSync = $, b.process = q, b.processSync = J, b;
|
|
2095
|
-
function b() {
|
|
2096
|
-
for (var j = p(), T = -1; ++T < C.length; )
|
|
2097
|
-
j.use.apply(null, C[T]);
|
|
2098
|
-
return j.data(i(!0, {}, y)), j;
|
|
2099
|
-
}
|
|
2100
|
-
function k() {
|
|
2101
|
-
var j, T;
|
|
2102
|
-
if (O)
|
|
2103
|
-
return b;
|
|
2104
|
-
for (; ++w < C.length; )
|
|
2105
|
-
j = C[w], j[1] !== !1 && (j[1] === !0 && (j[1] = void 0), T = j[0].apply(b, j.slice(1)), typeof T == "function" && E.use(T));
|
|
2106
|
-
return O = !0, w = 1 / 0, b;
|
|
2107
|
-
}
|
|
2108
|
-
function L(j, T) {
|
|
2109
|
-
return typeof j == "string" ? arguments.length === 2 ? (B("data", O), y[j] = T, b) : s.call(y, j) && y[j] || null : j ? (B("data", O), y = j, b) : y;
|
|
2110
|
-
}
|
|
2111
|
-
function I(j) {
|
|
2112
|
-
var T;
|
|
2113
|
-
if (B("use", O), j != null)
|
|
2114
|
-
if (typeof j == "function")
|
|
2115
|
-
P.apply(null, arguments);
|
|
2116
|
-
else if (typeof j == "object")
|
|
2117
|
-
"length" in j ? N(j) : z(j);
|
|
2118
|
-
else
|
|
2119
|
-
throw new Error("Expected usable value, not `" + j + "`");
|
|
2120
|
-
return T && (y.settings = i(y.settings || {}, T)), b;
|
|
2121
|
-
function z(G) {
|
|
2122
|
-
N(G.plugins), G.settings && (T = i(T || {}, G.settings));
|
|
2123
|
-
}
|
|
2124
|
-
function V(G) {
|
|
2125
|
-
if (typeof G == "function")
|
|
2126
|
-
P(G);
|
|
2127
|
-
else if (typeof G == "object")
|
|
2128
|
-
"length" in G ? P.apply(null, G) : z(G);
|
|
2129
|
-
else
|
|
2130
|
-
throw new Error("Expected usable value, not `" + G + "`");
|
|
2131
|
-
}
|
|
2132
|
-
function N(G) {
|
|
2133
|
-
var H = -1;
|
|
2134
|
-
if (G != null)
|
|
2135
|
-
if (typeof G == "object" && "length" in G)
|
|
2136
|
-
for (; ++H < G.length; )
|
|
2137
|
-
V(G[H]);
|
|
2138
|
-
else
|
|
2139
|
-
throw new Error("Expected a list of plugins, not `" + G + "`");
|
|
2140
|
-
}
|
|
2141
|
-
function P(G, H) {
|
|
2142
|
-
var K = x(G);
|
|
2143
|
-
K ? (r(K[1]) && r(H) && (H = i(!0, K[1], H)), K[1] = H) : C.push(D.call(arguments));
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
function x(j) {
|
|
2147
|
-
for (var T = -1; ++T < C.length; )
|
|
2148
|
-
if (C[T][0] === j)
|
|
2149
|
-
return C[T];
|
|
2150
|
-
}
|
|
2151
|
-
function S(j) {
|
|
2152
|
-
var T = a(j), z;
|
|
2153
|
-
return k(), z = b.Parser, v("parse", z), m(z, "parse") ? new z(String(T), T).parse() : z(String(T), T);
|
|
2154
|
-
}
|
|
2155
|
-
function U(j, T, z) {
|
|
2156
|
-
if (g(j), k(), !z && typeof T == "function" && (z = T, T = null), !z)
|
|
2157
|
-
return new Promise(V);
|
|
2158
|
-
V(null, z);
|
|
2159
|
-
function V(N, P) {
|
|
2160
|
-
E.run(j, a(T), G);
|
|
2161
|
-
function G(H, K, Y) {
|
|
2162
|
-
K = K || j, H ? P(H) : N ? N(K) : z(null, K, Y);
|
|
2163
|
-
}
|
|
2164
|
-
}
|
|
2165
|
-
}
|
|
2166
|
-
function $(j, T) {
|
|
2167
|
-
var z, V;
|
|
2168
|
-
return U(j, T, N), d("runSync", "run", V), z;
|
|
2169
|
-
function N(P, G) {
|
|
2170
|
-
V = !0, z = G, t(P);
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
function M(j, T) {
|
|
2174
|
-
var z = a(T), V;
|
|
2175
|
-
return k(), V = b.Compiler, F("stringify", V), g(j), m(V, "compile") ? new V(j, z).compile() : V(j, z);
|
|
2176
|
-
}
|
|
2177
|
-
function q(j, T) {
|
|
2178
|
-
if (k(), v("process", b.Parser), F("process", b.Compiler), !T)
|
|
2179
|
-
return new Promise(z);
|
|
2180
|
-
z(null, T);
|
|
2181
|
-
function z(V, N) {
|
|
2182
|
-
var P = a(j);
|
|
2183
|
-
l.run(b, { file: P }, G);
|
|
2184
|
-
function G(H) {
|
|
2185
|
-
H ? N(H) : V ? V(P) : T(null, P);
|
|
2186
|
-
}
|
|
2187
|
-
}
|
|
2188
|
-
}
|
|
2189
|
-
function J(j) {
|
|
2190
|
-
var T, z;
|
|
2191
|
-
return k(), v("processSync", b.Parser), F("processSync", b.Compiler), T = a(j), q(T, V), d("processSync", "process", z), T;
|
|
2192
|
-
function V(N) {
|
|
2193
|
-
z = !0, t(N);
|
|
2194
|
-
}
|
|
2195
|
-
}
|
|
2196
|
-
}
|
|
2197
|
-
function m(C, E) {
|
|
2198
|
-
return typeof C == "function" && C.prototype && (A(C.prototype) || E in C.prototype);
|
|
2199
|
-
}
|
|
2200
|
-
function A(C) {
|
|
2201
|
-
var E;
|
|
2202
|
-
for (E in C)
|
|
2203
|
-
return !0;
|
|
2204
|
-
return !1;
|
|
2205
|
-
}
|
|
2206
|
-
function v(C, E) {
|
|
2207
|
-
if (typeof E != "function")
|
|
2208
|
-
throw new Error("Cannot `" + C + "` without `Parser`");
|
|
2209
|
-
}
|
|
2210
|
-
function F(C, E) {
|
|
2211
|
-
if (typeof E != "function")
|
|
2212
|
-
throw new Error("Cannot `" + C + "` without `Compiler`");
|
|
2213
|
-
}
|
|
2214
|
-
function B(C, E) {
|
|
2215
|
-
if (E)
|
|
2216
|
-
throw new Error("Cannot invoke `" + C + "` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.");
|
|
2217
|
-
}
|
|
2218
|
-
function g(C) {
|
|
2219
|
-
if (!C || typeof C.type != "string")
|
|
2220
|
-
throw new Error("Expected node, got `" + C + "`");
|
|
2221
|
-
}
|
|
2222
|
-
function d(C, E, y) {
|
|
2223
|
-
if (!y)
|
|
2224
|
-
throw new Error("`" + C + "` finished async. Use `" + E + "` instead");
|
|
2225
|
-
}
|
|
2226
|
-
}), bt = {};
|
|
2227
|
-
ht(bt, { languages: () => po, options: () => Fo, parsers: () => zt, printers: () => Po });
|
|
2228
|
-
var yn = (u, e, t, n) => {
|
|
2229
|
-
if (!(u && e == null))
|
|
2230
|
-
return e.replaceAll ? e.replaceAll(t, n) : t.global ? e.replace(t, n) : e.split(t).join(n);
|
|
2231
|
-
}, Du = yn, wn = (u, e, t) => {
|
|
2232
|
-
if (!(u && e == null))
|
|
2233
|
-
return Array.isArray(e) || typeof e == "string" ? e[t < 0 ? e.length + t : t] : e.at(t);
|
|
2234
|
-
}, Au = wn, kn = Uu(Pe(), 1);
|
|
2235
|
-
function xe(u) {
|
|
2236
|
-
if (typeof u != "string")
|
|
2237
|
-
throw new TypeError("Expected a string");
|
|
2238
|
-
return u.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
2239
|
-
}
|
|
2240
|
-
var Iu = "string", Su = "array", Be = "cursor", Hu = "indent", Wu = "align", ie = "trim", Lu = "group", Pu = "fill", qu = "if-break", oe = "indent-if-break", ae = "line-suffix", De = "line-suffix-boundary", bu = "line", le = "label", _u = "break-parent", yt = /* @__PURE__ */ new Set([Be, Hu, Wu, ie, Lu, Pu, qu, oe, ae, De, bu, le, _u]);
|
|
2241
|
-
function qn(u) {
|
|
2242
|
-
if (typeof u == "string")
|
|
2243
|
-
return Iu;
|
|
2244
|
-
if (Array.isArray(u))
|
|
2245
|
-
return Su;
|
|
2246
|
-
if (!u)
|
|
2247
|
-
return;
|
|
2248
|
-
let { type: e } = u;
|
|
2249
|
-
if (yt.has(e))
|
|
2250
|
-
return e;
|
|
2251
|
-
}
|
|
2252
|
-
var Ou = qn, Sn = (u) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(u);
|
|
2253
|
-
function Ln(u) {
|
|
2254
|
-
let e = u === null ? "null" : typeof u;
|
|
2255
|
-
if (e !== "string" && e !== "object")
|
|
2256
|
-
return `Unexpected doc '${e}',
|
|
2257
|
-
Expected it to be 'string' or 'object'.`;
|
|
2258
|
-
if (Ou(u))
|
|
2259
|
-
throw new Error("doc is valid.");
|
|
2260
|
-
let t = Object.prototype.toString.call(u);
|
|
2261
|
-
if (t !== "[object Object]")
|
|
2262
|
-
return `Unexpected doc '${t}'.`;
|
|
2263
|
-
let n = Sn([...yt].map((i) => `'${i}'`));
|
|
2264
|
-
return `Unexpected doc.type '${u.type}'.
|
|
2265
|
-
Expected it to be ${n}.`;
|
|
2266
|
-
}
|
|
2267
|
-
var On = class extends Error {
|
|
2268
|
-
constructor(e) {
|
|
2269
|
-
super(Ln(e));
|
|
2270
|
-
we(this, "name", "InvalidDocError");
|
|
2271
|
-
this.doc = e;
|
|
2272
|
-
}
|
|
2273
|
-
}, Fe = On, Ke = {};
|
|
2274
|
-
function Tn(u, e, t, n) {
|
|
2275
|
-
let i = [u];
|
|
2276
|
-
for (; i.length > 0; ) {
|
|
2277
|
-
let r = i.pop();
|
|
2278
|
-
if (r === Ke) {
|
|
2279
|
-
t(i.pop());
|
|
2280
|
-
continue;
|
|
2281
|
-
}
|
|
2282
|
-
t && i.push(r, Ke);
|
|
2283
|
-
let o = Ou(r);
|
|
2284
|
-
if (!o)
|
|
2285
|
-
throw new Fe(r);
|
|
2286
|
-
if ((e == null ? void 0 : e(r)) !== !1)
|
|
2287
|
-
switch (o) {
|
|
2288
|
-
case Su:
|
|
2289
|
-
case Pu: {
|
|
2290
|
-
let a = o === Su ? r : r.parts;
|
|
2291
|
-
for (let D = a.length, s = D - 1; s >= 0; --s)
|
|
2292
|
-
i.push(a[s]);
|
|
2293
|
-
break;
|
|
2294
|
-
}
|
|
2295
|
-
case qu:
|
|
2296
|
-
i.push(r.flatContents, r.breakContents);
|
|
2297
|
-
break;
|
|
2298
|
-
case Lu:
|
|
2299
|
-
if (n && r.expandedStates)
|
|
2300
|
-
for (let a = r.expandedStates.length, D = a - 1; D >= 0; --D)
|
|
2301
|
-
i.push(r.expandedStates[D]);
|
|
2302
|
-
else
|
|
2303
|
-
i.push(r.contents);
|
|
2304
|
-
break;
|
|
2305
|
-
case Wu:
|
|
2306
|
-
case Hu:
|
|
2307
|
-
case oe:
|
|
2308
|
-
case le:
|
|
2309
|
-
case ae:
|
|
2310
|
-
i.push(r.contents);
|
|
2311
|
-
break;
|
|
2312
|
-
case Iu:
|
|
2313
|
-
case Be:
|
|
2314
|
-
case ie:
|
|
2315
|
-
case De:
|
|
2316
|
-
case bu:
|
|
2317
|
-
case _u:
|
|
2318
|
-
break;
|
|
2319
|
-
default:
|
|
2320
|
-
throw new Fe(r);
|
|
2321
|
-
}
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
var Nn = Tn;
|
|
2325
|
-
function Rn(u, e) {
|
|
2326
|
-
if (typeof u == "string")
|
|
2327
|
-
return e(u);
|
|
2328
|
-
let t = /* @__PURE__ */ new Map();
|
|
2329
|
-
return n(u);
|
|
2330
|
-
function n(r) {
|
|
2331
|
-
if (t.has(r))
|
|
2332
|
-
return t.get(r);
|
|
2333
|
-
let o = i(r);
|
|
2334
|
-
return t.set(r, o), o;
|
|
2335
|
-
}
|
|
2336
|
-
function i(r) {
|
|
2337
|
-
switch (Ou(r)) {
|
|
2338
|
-
case Su:
|
|
2339
|
-
return e(r.map(n));
|
|
2340
|
-
case Pu:
|
|
2341
|
-
return e({ ...r, parts: r.parts.map(n) });
|
|
2342
|
-
case qu:
|
|
2343
|
-
return e({ ...r, breakContents: n(r.breakContents), flatContents: n(r.flatContents) });
|
|
2344
|
-
case Lu: {
|
|
2345
|
-
let { expandedStates: o, contents: a } = r;
|
|
2346
|
-
return o ? (o = o.map(n), a = o[0]) : a = n(a), e({ ...r, contents: a, expandedStates: o });
|
|
2347
|
-
}
|
|
2348
|
-
case Wu:
|
|
2349
|
-
case Hu:
|
|
2350
|
-
case oe:
|
|
2351
|
-
case le:
|
|
2352
|
-
case ae:
|
|
2353
|
-
return e({ ...r, contents: n(r.contents) });
|
|
2354
|
-
case Iu:
|
|
2355
|
-
case Be:
|
|
2356
|
-
case ie:
|
|
2357
|
-
case De:
|
|
2358
|
-
case bu:
|
|
2359
|
-
case _u:
|
|
2360
|
-
return e(r);
|
|
2361
|
-
default:
|
|
2362
|
-
throw new Fe(r);
|
|
2363
|
-
}
|
|
2364
|
-
}
|
|
2365
|
-
}
|
|
2366
|
-
function Ye(u) {
|
|
2367
|
-
if (u.length > 0) {
|
|
2368
|
-
let e = Au(!1, u, -1);
|
|
2369
|
-
!e.expandedStates && !e.break && (e.break = "propagated");
|
|
2370
|
-
}
|
|
2371
|
-
return null;
|
|
2372
|
-
}
|
|
2373
|
-
function In(u) {
|
|
2374
|
-
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2375
|
-
function n(r) {
|
|
2376
|
-
if (r.type === _u && Ye(t), r.type === Lu) {
|
|
2377
|
-
if (t.push(r), e.has(r))
|
|
2378
|
-
return !1;
|
|
2379
|
-
e.add(r);
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
function i(r) {
|
|
2383
|
-
r.type === Lu && t.pop().break && Ye(t);
|
|
2384
|
-
}
|
|
2385
|
-
Nn(u, n, i, !0);
|
|
2386
|
-
}
|
|
2387
|
-
function ju(u, e = Le) {
|
|
2388
|
-
return Rn(u, (t) => typeof t == "string" ? qt(e, t.split(`
|
|
2389
|
-
`)) : t);
|
|
2390
|
-
}
|
|
2391
|
-
var Pn = () => {
|
|
2392
|
-
}, jn = Pn;
|
|
2393
|
-
function Se(u) {
|
|
2394
|
-
return { type: Hu, contents: u };
|
|
2395
|
-
}
|
|
2396
|
-
function Ru(u, e) {
|
|
2397
|
-
return { type: Wu, contents: e, n: u };
|
|
2398
|
-
}
|
|
2399
|
-
function he(u, e = {}) {
|
|
2400
|
-
return jn(e.expandedStates), { type: Lu, id: e.id, contents: u, break: !!e.shouldBreak, expandedStates: e.expandedStates };
|
|
2401
|
-
}
|
|
2402
|
-
function Ce(u) {
|
|
2403
|
-
return Ru({ type: "root" }, u);
|
|
2404
|
-
}
|
|
2405
|
-
function $e(u) {
|
|
2406
|
-
return { type: Pu, parts: u };
|
|
2407
|
-
}
|
|
2408
|
-
function zn(u, e = "", t = {}) {
|
|
2409
|
-
return { type: qu, breakContents: u, flatContents: e, groupId: t.groupId };
|
|
2410
|
-
}
|
|
2411
|
-
var Ae = { type: _u }, Ue = { type: bu, hard: !0 }, $n = { type: bu, hard: !0, literal: !0 }, wt = { type: bu }, kt = { type: bu, soft: !0 }, iu = [Ue, Ae], Le = [$n, Ae];
|
|
2412
|
-
function qt(u, e) {
|
|
2413
|
-
let t = [];
|
|
2414
|
-
for (let n = 0; n < e.length; n++)
|
|
2415
|
-
n !== 0 && t.push(u), t.push(e[n]);
|
|
2416
|
-
return t;
|
|
2417
|
-
}
|
|
2418
|
-
function Un(u, e) {
|
|
2419
|
-
let t = u.match(new RegExp(`(${xe(e)})+`, "gu"));
|
|
2420
|
-
return t === null ? 0 : t.reduce((n, i) => Math.max(n, i.length / e.length), 0);
|
|
2421
|
-
}
|
|
2422
|
-
var St = Un;
|
|
2423
|
-
function Vn(u, e) {
|
|
2424
|
-
let t = u.match(new RegExp(`(${xe(e)})+`, "gu"));
|
|
2425
|
-
if (t === null)
|
|
2426
|
-
return 0;
|
|
2427
|
-
let n = /* @__PURE__ */ new Map(), i = 0;
|
|
2428
|
-
for (let r of t) {
|
|
2429
|
-
let o = r.length / e.length;
|
|
2430
|
-
n.set(o, !0), o > i && (i = o);
|
|
2431
|
-
}
|
|
2432
|
-
for (let r = 1; r < i; r++)
|
|
2433
|
-
if (!n.get(r))
|
|
2434
|
-
return r;
|
|
2435
|
-
return i + 1;
|
|
2436
|
-
}
|
|
2437
|
-
var Mn = Vn, fe = "'", Qe = '"';
|
|
2438
|
-
function Gn(u, e) {
|
|
2439
|
-
let t = e === !0 || e === fe ? fe : Qe, n = t === fe ? Qe : fe, i = 0, r = 0;
|
|
2440
|
-
for (let o of u)
|
|
2441
|
-
o === t ? i++ : o === n && r++;
|
|
2442
|
-
return i > r ? n : t;
|
|
2443
|
-
}
|
|
2444
|
-
var Hn = Gn, Wn = class extends Error {
|
|
2445
|
-
constructor(e, t, n = "type") {
|
|
2446
|
-
super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`);
|
|
2447
|
-
we(this, "name", "UnexpectedNodeError");
|
|
2448
|
-
this.node = e;
|
|
2449
|
-
}
|
|
2450
|
-
}, _n = Wn, Jn = Uu(Pe(), 1);
|
|
2451
|
-
function Kn(u) {
|
|
2452
|
-
return (u == null ? void 0 : u.type) === "front-matter";
|
|
2453
|
-
}
|
|
2454
|
-
var Yn = Kn, Zu = 3;
|
|
2455
|
-
function Qn(u) {
|
|
2456
|
-
let e = u.slice(0, Zu);
|
|
2457
|
-
if (e !== "---" && e !== "+++")
|
|
2458
|
-
return;
|
|
2459
|
-
let t = u.indexOf(`
|
|
2460
|
-
`, Zu);
|
|
2461
|
-
if (t === -1)
|
|
2462
|
-
return;
|
|
2463
|
-
let n = u.slice(Zu, t).trim(), i = u.indexOf(`
|
|
2464
|
-
${e}`, t), r = n;
|
|
2465
|
-
if (r || (r = e === "+++" ? "toml" : "yaml"), i === -1 && e === "---" && r === "yaml" && (i = u.indexOf(`
|
|
2466
|
-
...`, t)), i === -1)
|
|
2467
|
-
return;
|
|
2468
|
-
let o = i + 1 + Zu, a = u.charAt(o + 1);
|
|
2469
|
-
if (!/\s?/u.test(a))
|
|
2470
|
-
return;
|
|
2471
|
-
let D = u.slice(0, o);
|
|
2472
|
-
return { type: "front-matter", language: r, explicitLanguage: n, value: u.slice(t + 1, i), startDelimiter: e, endDelimiter: D.slice(-Zu), raw: D };
|
|
2473
|
-
}
|
|
2474
|
-
function Zn(u) {
|
|
2475
|
-
let e = Qn(u);
|
|
2476
|
-
if (!e)
|
|
2477
|
-
return { content: u };
|
|
2478
|
-
let { raw: t } = e;
|
|
2479
|
-
return { frontMatter: e, content: Du(!1, t, /[^\n]/gu, " ") + u.slice(t.length) };
|
|
2480
|
-
}
|
|
2481
|
-
var Ve = Zn, Lt = ["format", "prettier"];
|
|
2482
|
-
function Ot(u) {
|
|
2483
|
-
let e = `@(${Lt.join("|")})`, t = new RegExp([`<!--\\s*${e}\\s*-->`, `\\{\\s*\\/\\*\\s*${e}\\s*\\*\\/\\s*\\}`, `<!--.*\r?
|
|
2484
|
-
[\\s\\S]*(^|
|
|
2485
|
-
)[^\\S
|
|
2486
|
-
]*${e}[^\\S
|
|
2487
|
-
]*($|
|
|
2488
|
-
)[\\s\\S]*
|
|
2489
|
-
.*-->`].join("|"), "mu"), n = u.match(t);
|
|
2490
|
-
return (n == null ? void 0 : n.index) === 0;
|
|
2491
|
-
}
|
|
2492
|
-
var Xn = (u) => Ot(Ve(u).content.trimStart()), ui = (u) => {
|
|
2493
|
-
let e = Ve(u), t = `<!-- @${Lt[0]} -->`;
|
|
2494
|
-
return e.frontMatter ? `${e.frontMatter.raw}
|
|
2495
|
-
|
|
2496
|
-
${t}
|
|
2497
|
-
|
|
2498
|
-
${e.content}` : `${t}
|
|
2499
|
-
|
|
2500
|
-
${e.content}`;
|
|
2501
|
-
}, ei = /* @__PURE__ */ new Set(["position", "raw"]);
|
|
2502
|
-
function Tt(u, e, t) {
|
|
2503
|
-
if ((u.type === "front-matter" || u.type === "code" || u.type === "yaml" || u.type === "import" || u.type === "export" || u.type === "jsx") && delete e.value, u.type === "list" && delete e.isAligned, (u.type === "list" || u.type === "listItem") && delete e.spread, u.type === "text")
|
|
2504
|
-
return null;
|
|
2505
|
-
if (u.type === "inlineCode" && (e.value = Du(!1, u.value, `
|
|
2506
|
-
`, " ")), u.type === "wikiLink" && (e.value = Du(!1, u.value.trim(), /[\t\n]+/gu, " ")), (u.type === "definition" || u.type === "linkReference" || u.type === "imageReference") && (e.label = (0, Jn.default)(u.label)), (u.type === "link" || u.type === "image") && u.url && u.url.includes("("))
|
|
2507
|
-
for (let n of "<>")
|
|
2508
|
-
e.url = Du(!1, u.url, n, encodeURIComponent(n));
|
|
2509
|
-
if ((u.type === "definition" || u.type === "link" || u.type === "image") && u.title && (e.title = Du(!1, u.title, /\\(?=["')])/gu, "")), (t == null ? void 0 : t.type) === "root" && t.children.length > 0 && (t.children[0] === u || Yn(t.children[0]) && t.children[1] === u) && u.type === "html" && Ot(u.value))
|
|
2510
|
-
return null;
|
|
2511
|
-
}
|
|
2512
|
-
Tt.ignoredProperties = ei;
|
|
2513
|
-
var ti = Tt, ri = /(?:[\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, ue = /(?:[\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;
|
|
2514
|
-
async function ni(u, e) {
|
|
2515
|
-
if (u.language === "yaml") {
|
|
2516
|
-
let t = u.value.trim(), n = t ? await e(t, { parser: "yaml" }) : "";
|
|
2517
|
-
return Ce([u.startDelimiter, u.explicitLanguage, iu, n, n ? iu : "", u.endDelimiter]);
|
|
2518
|
-
}
|
|
2519
|
-
}
|
|
2520
|
-
var ii = ni, oi = (u) => String(u).split(/[/\\]/u).pop();
|
|
2521
|
-
function Ze(u, e) {
|
|
2522
|
-
if (!e)
|
|
2523
|
-
return;
|
|
2524
|
-
let t = oi(e).toLowerCase();
|
|
2525
|
-
return u.find(({ filenames: n }) => n == null ? void 0 : n.some((i) => i.toLowerCase() === t)) ?? u.find(({ extensions: n }) => n == null ? void 0 : n.some((i) => t.endsWith(i)));
|
|
2526
|
-
}
|
|
2527
|
-
function ai(u, e) {
|
|
2528
|
-
if (e)
|
|
2529
|
-
return u.find(({ name: t }) => t.toLowerCase() === e) ?? u.find(({ aliases: t }) => t == null ? void 0 : t.includes(e)) ?? u.find(({ extensions: t }) => t == null ? void 0 : t.includes(`.${e}`));
|
|
2530
|
-
}
|
|
2531
|
-
function Di(u, e) {
|
|
2532
|
-
let t = u.plugins.flatMap((i) => i.languages ?? []), n = ai(t, e.language) ?? Ze(t, e.physicalFile) ?? Ze(t, e.file) ?? (e.physicalFile, void 0);
|
|
2533
|
-
return n == null ? void 0 : n.parsers[0];
|
|
2534
|
-
}
|
|
2535
|
-
var li = Di, si = new Proxy(() => {
|
|
2536
|
-
}, { get: () => si });
|
|
2537
|
-
function Ee(u) {
|
|
2538
|
-
return u.position.start.offset;
|
|
2539
|
-
}
|
|
2540
|
-
function ge(u) {
|
|
2541
|
-
return u.position.end.offset;
|
|
2542
|
-
}
|
|
2543
|
-
var Nt = /* @__PURE__ */ new Set(["liquidNode", "inlineCode", "emphasis", "esComment", "strong", "delete", "wikiLink", "link", "linkReference", "image", "imageReference", "footnote", "footnoteReference", "sentence", "whitespace", "word", "break", "inlineMath"]), Rt = /* @__PURE__ */ new Set([...Nt, "tableCell", "paragraph", "heading"]), re = "non-cjk", xu = "cj-letter", $u = "k-letter", me = "cjk-punctuation", ci = /\p{Script_Extensions=Hangul}/u;
|
|
2544
|
-
function It(u) {
|
|
2545
|
-
let e = [], t = u.split(/([\t\n ]+)/u);
|
|
2546
|
-
for (let [i, r] of t.entries()) {
|
|
2547
|
-
if (i % 2 === 1) {
|
|
2548
|
-
e.push({ type: "whitespace", value: /\n/u.test(r) ? `
|
|
2549
|
-
` : " " });
|
|
2550
|
-
continue;
|
|
2551
|
-
}
|
|
2552
|
-
if ((i === 0 || i === t.length - 1) && r === "")
|
|
2553
|
-
continue;
|
|
2554
|
-
let o = r.split(new RegExp(`(${ri.source})`, "u"));
|
|
2555
|
-
for (let [a, D] of o.entries())
|
|
2556
|
-
if (!((a === 0 || a === o.length - 1) && D === "")) {
|
|
2557
|
-
if (a % 2 === 0) {
|
|
2558
|
-
D !== "" && n({ type: "word", value: D, kind: re, isCJ: !1, hasLeadingPunctuation: ue.test(D[0]), hasTrailingPunctuation: ue.test(Au(!1, D, -1)) });
|
|
2559
|
-
continue;
|
|
2560
|
-
}
|
|
2561
|
-
if (ue.test(D)) {
|
|
2562
|
-
n({ type: "word", value: D, kind: me, isCJ: !0, hasLeadingPunctuation: !0, hasTrailingPunctuation: !0 });
|
|
2563
|
-
continue;
|
|
2564
|
-
}
|
|
2565
|
-
if (ci.test(D)) {
|
|
2566
|
-
n({ type: "word", value: D, kind: $u, isCJ: !1, hasLeadingPunctuation: !1, hasTrailingPunctuation: !1 });
|
|
2567
|
-
continue;
|
|
2568
|
-
}
|
|
2569
|
-
n({ type: "word", value: D, kind: xu, isCJ: !0, hasLeadingPunctuation: !1, hasTrailingPunctuation: !1 });
|
|
2570
|
-
}
|
|
2571
|
-
}
|
|
2572
|
-
return e;
|
|
2573
|
-
function n(i) {
|
|
2574
|
-
let r = Au(!1, e, -1);
|
|
2575
|
-
(r == null ? void 0 : r.type) === "word" && !o(re, me) && ![r.value, i.value].some((a) => /\u3000/u.test(a)) && e.push({ type: "whitespace", value: "" }), e.push(i);
|
|
2576
|
-
function o(a, D) {
|
|
2577
|
-
return r.kind === a && i.kind === D || r.kind === D && i.kind === a;
|
|
2578
|
-
}
|
|
2579
|
-
}
|
|
2580
|
-
}
|
|
2581
|
-
function ee(u, e) {
|
|
2582
|
-
let t = e.originalText.slice(u.position.start.offset, u.position.end.offset), { numberText: n, leadingSpaces: i } = t.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;
|
|
2583
|
-
return { number: Number(n), leadingSpaces: i };
|
|
2584
|
-
}
|
|
2585
|
-
function fi(u, e) {
|
|
2586
|
-
return !u.ordered || u.children.length < 2 || ee(u.children[1], e).number !== 1 ? !1 : ee(u.children[0], e).number !== 0 ? !0 : u.children.length > 2 && ee(u.children[2], e).number === 1;
|
|
2587
|
-
}
|
|
2588
|
-
function Pt(u, e) {
|
|
2589
|
-
let { value: t } = u;
|
|
2590
|
-
return u.position.end.offset === e.length && t.endsWith(`
|
|
2591
|
-
`) && e.endsWith(`
|
|
2592
|
-
`) ? t.slice(0, -1) : t;
|
|
2593
|
-
}
|
|
2594
|
-
function Ju(u, e) {
|
|
2595
|
-
return function t(n, i, r) {
|
|
2596
|
-
let o = { ...e(n, i, r) };
|
|
2597
|
-
return o.children && (o.children = o.children.map((a, D) => t(a, D, [o, ...r]))), o;
|
|
2598
|
-
}(u, null, []);
|
|
2599
|
-
}
|
|
2600
|
-
function Xe(u) {
|
|
2601
|
-
if ((u == null ? void 0 : u.type) !== "link" || u.children.length !== 1)
|
|
2602
|
-
return !1;
|
|
2603
|
-
let [e] = u.children;
|
|
2604
|
-
return Ee(u) === Ee(e) && ge(u) === ge(e);
|
|
2605
|
-
}
|
|
2606
|
-
function pi(u, e) {
|
|
2607
|
-
let { node: t } = u;
|
|
2608
|
-
if (t.type === "code" && t.lang !== null) {
|
|
2609
|
-
let n = li(e, { language: t.lang });
|
|
2610
|
-
if (n)
|
|
2611
|
-
return async (i) => {
|
|
2612
|
-
let r = e.__inJsTemplate ? "~" : "`", o = r.repeat(Math.max(3, St(t.value, r) + 1)), a = { parser: n };
|
|
2613
|
-
t.lang === "ts" || t.lang === "typescript" ? a.filepath = "dummy.ts" : t.lang === "tsx" && (a.filepath = "dummy.tsx");
|
|
2614
|
-
let D = await i(Pt(t, e.originalText), a);
|
|
2615
|
-
return Ce([o, t.lang, t.meta ? " " + t.meta : "", iu, ju(D), iu, o]);
|
|
2616
|
-
};
|
|
2617
|
-
}
|
|
2618
|
-
switch (t.type) {
|
|
2619
|
-
case "front-matter":
|
|
2620
|
-
return (n) => ii(t, n);
|
|
2621
|
-
case "import":
|
|
2622
|
-
case "export":
|
|
2623
|
-
return (n) => n(t.value, { parser: "babel" });
|
|
2624
|
-
case "jsx":
|
|
2625
|
-
return (n) => n(`<$>${t.value}</$>`, { parser: "__js_expression", rootMarker: "mdx" });
|
|
2626
|
-
}
|
|
2627
|
-
return null;
|
|
2628
|
-
}
|
|
2629
|
-
var hi = pi, Xu = null;
|
|
2630
|
-
function te(u) {
|
|
2631
|
-
if (Xu !== null && typeof Xu.property) {
|
|
2632
|
-
let e = Xu;
|
|
2633
|
-
return Xu = te.prototype = null, e;
|
|
2634
|
-
}
|
|
2635
|
-
return Xu = te.prototype = u ?? /* @__PURE__ */ Object.create(null), new te();
|
|
2636
|
-
}
|
|
2637
|
-
var di = 10;
|
|
2638
|
-
for (let u = 0; u <= di; u++)
|
|
2639
|
-
te();
|
|
2640
|
-
function Fi(u) {
|
|
2641
|
-
return te(u);
|
|
2642
|
-
}
|
|
2643
|
-
function Ci(u, e = "type") {
|
|
2644
|
-
Fi(u);
|
|
2645
|
-
function t(n) {
|
|
2646
|
-
let i = n[e], r = u[i];
|
|
2647
|
-
if (!Array.isArray(r))
|
|
2648
|
-
throw Object.assign(new Error(`Missing visitor keys for '${i}'.`), { node: n });
|
|
2649
|
-
return r;
|
|
2650
|
-
}
|
|
2651
|
-
return t;
|
|
2652
|
-
}
|
|
2653
|
-
var Ai = Ci, Ei = { "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: [] }, gi = Ei, mi = Ai(gi), vi = mi;
|
|
2654
|
-
function xi(u) {
|
|
2655
|
-
switch (u) {
|
|
2656
|
-
case "cr":
|
|
2657
|
-
return "\r";
|
|
2658
|
-
case "crlf":
|
|
2659
|
-
return `\r
|
|
2660
|
-
`;
|
|
2661
|
-
default:
|
|
2662
|
-
return `
|
|
2663
|
-
`;
|
|
2664
|
-
}
|
|
2665
|
-
}
|
|
2666
|
-
var Bi = () => /[#*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;
|
|
2667
|
-
function bi(u) {
|
|
2668
|
-
return u === 12288 || u >= 65281 && u <= 65376 || u >= 65504 && u <= 65510;
|
|
2669
|
-
}
|
|
2670
|
-
function yi(u) {
|
|
2671
|
-
return u >= 4352 && u <= 4447 || u === 8986 || u === 8987 || u === 9001 || u === 9002 || u >= 9193 && u <= 9196 || u === 9200 || u === 9203 || u === 9725 || u === 9726 || u === 9748 || u === 9749 || u >= 9776 && u <= 9783 || u >= 9800 && u <= 9811 || u === 9855 || u >= 9866 && u <= 9871 || u === 9875 || u === 9889 || u === 9898 || u === 9899 || u === 9917 || u === 9918 || u === 9924 || u === 9925 || u === 9934 || u === 9940 || u === 9962 || u === 9970 || u === 9971 || u === 9973 || u === 9978 || u === 9981 || u === 9989 || u === 9994 || u === 9995 || u === 10024 || u === 10060 || u === 10062 || u >= 10067 && u <= 10069 || u === 10071 || u >= 10133 && u <= 10135 || u === 10160 || u === 10175 || u === 11035 || u === 11036 || u === 11088 || u === 11093 || u >= 11904 && u <= 11929 || u >= 11931 && u <= 12019 || u >= 12032 && u <= 12245 || u >= 12272 && u <= 12287 || u >= 12289 && u <= 12350 || u >= 12353 && u <= 12438 || u >= 12441 && u <= 12543 || u >= 12549 && u <= 12591 || u >= 12593 && u <= 12686 || u >= 12688 && u <= 12773 || u >= 12783 && u <= 12830 || u >= 12832 && u <= 12871 || u >= 12880 && u <= 42124 || u >= 42128 && u <= 42182 || u >= 43360 && u <= 43388 || u >= 44032 && u <= 55203 || u >= 63744 && u <= 64255 || u >= 65040 && u <= 65049 || u >= 65072 && u <= 65106 || u >= 65108 && u <= 65126 || u >= 65128 && u <= 65131 || u >= 94176 && u <= 94180 || u === 94192 || u === 94193 || u >= 94208 && u <= 100343 || u >= 100352 && u <= 101589 || u >= 101631 && u <= 101640 || u >= 110576 && u <= 110579 || u >= 110581 && u <= 110587 || u === 110589 || u === 110590 || u >= 110592 && u <= 110882 || u === 110898 || u >= 110928 && u <= 110930 || u === 110933 || u >= 110948 && u <= 110951 || u >= 110960 && u <= 111355 || u >= 119552 && u <= 119638 || u >= 119648 && u <= 119670 || u === 126980 || u === 127183 || u === 127374 || u >= 127377 && u <= 127386 || u >= 127488 && u <= 127490 || u >= 127504 && u <= 127547 || u >= 127552 && u <= 127560 || u === 127568 || u === 127569 || u >= 127584 && u <= 127589 || u >= 127744 && u <= 127776 || u >= 127789 && u <= 127797 || u >= 127799 && u <= 127868 || u >= 127870 && u <= 127891 || u >= 127904 && u <= 127946 || u >= 127951 && u <= 127955 || u >= 127968 && u <= 127984 || u === 127988 || u >= 127992 && u <= 128062 || u === 128064 || u >= 128066 && u <= 128252 || u >= 128255 && u <= 128317 || u >= 128331 && u <= 128334 || u >= 128336 && u <= 128359 || u === 128378 || u === 128405 || u === 128406 || u === 128420 || u >= 128507 && u <= 128591 || u >= 128640 && u <= 128709 || u === 128716 || u >= 128720 && u <= 128722 || u >= 128725 && u <= 128727 || u >= 128732 && u <= 128735 || u === 128747 || u === 128748 || u >= 128756 && u <= 128764 || u >= 128992 && u <= 129003 || u === 129008 || u >= 129292 && u <= 129338 || u >= 129340 && u <= 129349 || u >= 129351 && u <= 129535 || u >= 129648 && u <= 129660 || u >= 129664 && u <= 129673 || u >= 129679 && u <= 129734 || u >= 129742 && u <= 129756 || u >= 129759 && u <= 129769 || u >= 129776 && u <= 129784 || u >= 131072 && u <= 196605 || u >= 196608 && u <= 262141;
|
|
2672
|
-
}
|
|
2673
|
-
var wi = (u) => !(bi(u) || yi(u)), ki = /[^\x20-\x7F]/u;
|
|
2674
|
-
function qi(u) {
|
|
2675
|
-
if (!u)
|
|
2676
|
-
return 0;
|
|
2677
|
-
if (!ki.test(u))
|
|
2678
|
-
return u.length;
|
|
2679
|
-
u = u.replace(Bi(), " ");
|
|
2680
|
-
let e = 0;
|
|
2681
|
-
for (let t of u) {
|
|
2682
|
-
let n = t.codePointAt(0);
|
|
2683
|
-
n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879 || (e += wi(n) ? 1 : 2);
|
|
2684
|
-
}
|
|
2685
|
-
return e;
|
|
2686
|
-
}
|
|
2687
|
-
var Me = qi, fu = Symbol("MODE_BREAK"), mu = Symbol("MODE_FLAT"), zu = Symbol("cursor"), Oe = Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
2688
|
-
function jt() {
|
|
2689
|
-
return { value: "", length: 0, queue: [] };
|
|
2690
|
-
}
|
|
2691
|
-
function Si(u, e) {
|
|
2692
|
-
return Te(u, { type: "indent" }, e);
|
|
2693
|
-
}
|
|
2694
|
-
function Li(u, e, t) {
|
|
2695
|
-
return e === Number.NEGATIVE_INFINITY ? u.root || jt() : e < 0 ? Te(u, { type: "dedent" }, t) : e ? e.type === "root" ? { ...u, root: u } : Te(u, { type: typeof e == "string" ? "stringAlign" : "numberAlign", n: e }, t) : u;
|
|
2696
|
-
}
|
|
2697
|
-
function Te(u, e, t) {
|
|
2698
|
-
let n = e.type === "dedent" ? u.queue.slice(0, -1) : [...u.queue, e], i = "", r = 0, o = 0, a = 0;
|
|
2699
|
-
for (let p of n)
|
|
2700
|
-
switch (p.type) {
|
|
2701
|
-
case "indent":
|
|
2702
|
-
l(), t.useTabs ? D(1) : s(t.tabWidth);
|
|
2703
|
-
break;
|
|
2704
|
-
case "stringAlign":
|
|
2705
|
-
l(), i += p.n, r += p.n.length;
|
|
2706
|
-
break;
|
|
2707
|
-
case "numberAlign":
|
|
2708
|
-
o += 1, a += p.n;
|
|
2709
|
-
break;
|
|
2710
|
-
default:
|
|
2711
|
-
throw new Error(`Unexpected type '${p.type}'`);
|
|
2712
|
-
}
|
|
2713
|
-
return f(), { ...u, value: i, length: r, queue: n };
|
|
2714
|
-
function D(p) {
|
|
2715
|
-
i += " ".repeat(p), r += t.tabWidth * p;
|
|
2716
|
-
}
|
|
2717
|
-
function s(p) {
|
|
2718
|
-
i += " ".repeat(p), r += p;
|
|
2719
|
-
}
|
|
2720
|
-
function l() {
|
|
2721
|
-
t.useTabs ? c() : f();
|
|
2722
|
-
}
|
|
2723
|
-
function c() {
|
|
2724
|
-
o > 0 && D(o), h();
|
|
2725
|
-
}
|
|
2726
|
-
function f() {
|
|
2727
|
-
a > 0 && s(a), h();
|
|
2728
|
-
}
|
|
2729
|
-
function h() {
|
|
2730
|
-
o = 0, a = 0;
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
function Ne(u) {
|
|
2734
|
-
let e = 0, t = 0, n = u.length;
|
|
2735
|
-
u:
|
|
2736
|
-
for (; n--; ) {
|
|
2737
|
-
let i = u[n];
|
|
2738
|
-
if (i === zu) {
|
|
2739
|
-
t++;
|
|
2740
|
-
continue;
|
|
2741
|
-
}
|
|
2742
|
-
for (let r = i.length - 1; r >= 0; r--) {
|
|
2743
|
-
let o = i[r];
|
|
2744
|
-
if (o === " " || o === " ")
|
|
2745
|
-
e++;
|
|
2746
|
-
else {
|
|
2747
|
-
u[n] = i.slice(0, r + 1);
|
|
2748
|
-
break u;
|
|
2749
|
-
}
|
|
2750
|
-
}
|
|
2751
|
-
}
|
|
2752
|
-
if (e > 0 || t > 0)
|
|
2753
|
-
for (u.length = n + 1; t-- > 0; )
|
|
2754
|
-
u.push(zu);
|
|
2755
|
-
return e;
|
|
2756
|
-
}
|
|
2757
|
-
function pe(u, e, t, n, i, r) {
|
|
2758
|
-
if (t === Number.POSITIVE_INFINITY)
|
|
2759
|
-
return !0;
|
|
2760
|
-
let o = e.length, a = [u], D = [];
|
|
2761
|
-
for (; t >= 0; ) {
|
|
2762
|
-
if (a.length === 0) {
|
|
2763
|
-
if (o === 0)
|
|
2764
|
-
return !0;
|
|
2765
|
-
a.push(e[--o]);
|
|
2766
|
-
continue;
|
|
2767
|
-
}
|
|
2768
|
-
let { mode: s, doc: l } = a.pop(), c = Ou(l);
|
|
2769
|
-
switch (c) {
|
|
2770
|
-
case Iu:
|
|
2771
|
-
D.push(l), t -= Me(l);
|
|
2772
|
-
break;
|
|
2773
|
-
case Su:
|
|
2774
|
-
case Pu: {
|
|
2775
|
-
let f = c === Su ? l : l.parts, h = l[Oe] ?? 0;
|
|
2776
|
-
for (let p = f.length - 1; p >= h; p--)
|
|
2777
|
-
a.push({ mode: s, doc: f[p] });
|
|
2778
|
-
break;
|
|
2779
|
-
}
|
|
2780
|
-
case Hu:
|
|
2781
|
-
case Wu:
|
|
2782
|
-
case oe:
|
|
2783
|
-
case le:
|
|
2784
|
-
a.push({ mode: s, doc: l.contents });
|
|
2785
|
-
break;
|
|
2786
|
-
case ie:
|
|
2787
|
-
t += Ne(D);
|
|
2788
|
-
break;
|
|
2789
|
-
case Lu: {
|
|
2790
|
-
if (r && l.break)
|
|
2791
|
-
return !1;
|
|
2792
|
-
let f = l.break ? fu : s, h = l.expandedStates && f === fu ? Au(!1, l.expandedStates, -1) : l.contents;
|
|
2793
|
-
a.push({ mode: f, doc: h });
|
|
2794
|
-
break;
|
|
2795
|
-
}
|
|
2796
|
-
case qu: {
|
|
2797
|
-
let f = (l.groupId ? i[l.groupId] || mu : s) === fu ? l.breakContents : l.flatContents;
|
|
2798
|
-
f && a.push({ mode: s, doc: f });
|
|
2799
|
-
break;
|
|
2800
|
-
}
|
|
2801
|
-
case bu:
|
|
2802
|
-
if (s === fu || l.hard)
|
|
2803
|
-
return !0;
|
|
2804
|
-
l.soft || (D.push(" "), t--);
|
|
2805
|
-
break;
|
|
2806
|
-
case ae:
|
|
2807
|
-
n = !0;
|
|
2808
|
-
break;
|
|
2809
|
-
case De:
|
|
2810
|
-
if (n)
|
|
2811
|
-
return !1;
|
|
2812
|
-
break;
|
|
2813
|
-
}
|
|
2814
|
-
}
|
|
2815
|
-
return !1;
|
|
2816
|
-
}
|
|
2817
|
-
function Oi(u, e) {
|
|
2818
|
-
let t = {}, n = e.printWidth, i = xi(e.endOfLine), r = 0, o = [{ ind: jt(), mode: fu, doc: u }], a = [], D = !1, s = [], l = 0;
|
|
2819
|
-
for (In(u); o.length > 0; ) {
|
|
2820
|
-
let { ind: f, mode: h, doc: p } = o.pop();
|
|
2821
|
-
switch (Ou(p)) {
|
|
2822
|
-
case Iu: {
|
|
2823
|
-
let m = i !== `
|
|
2824
|
-
` ? Du(!1, p, `
|
|
2825
|
-
`, i) : p;
|
|
2826
|
-
a.push(m), o.length > 0 && (r += Me(m));
|
|
2827
|
-
break;
|
|
2828
|
-
}
|
|
2829
|
-
case Su:
|
|
2830
|
-
for (let m = p.length - 1; m >= 0; m--)
|
|
2831
|
-
o.push({ ind: f, mode: h, doc: p[m] });
|
|
2832
|
-
break;
|
|
2833
|
-
case Be:
|
|
2834
|
-
if (l >= 2)
|
|
2835
|
-
throw new Error("There are too many 'cursor' in doc.");
|
|
2836
|
-
a.push(zu), l++;
|
|
2837
|
-
break;
|
|
2838
|
-
case Hu:
|
|
2839
|
-
o.push({ ind: Si(f, e), mode: h, doc: p.contents });
|
|
2840
|
-
break;
|
|
2841
|
-
case Wu:
|
|
2842
|
-
o.push({ ind: Li(f, p.n, e), mode: h, doc: p.contents });
|
|
2843
|
-
break;
|
|
2844
|
-
case ie:
|
|
2845
|
-
r -= Ne(a);
|
|
2846
|
-
break;
|
|
2847
|
-
case Lu:
|
|
2848
|
-
switch (h) {
|
|
2849
|
-
case mu:
|
|
2850
|
-
if (!D) {
|
|
2851
|
-
o.push({ ind: f, mode: p.break ? fu : mu, doc: p.contents });
|
|
2852
|
-
break;
|
|
2853
|
-
}
|
|
2854
|
-
case fu: {
|
|
2855
|
-
D = !1;
|
|
2856
|
-
let m = { ind: f, mode: mu, doc: p.contents }, A = n - r, v = s.length > 0;
|
|
2857
|
-
if (!p.break && pe(m, o, A, v, t))
|
|
2858
|
-
o.push(m);
|
|
2859
|
-
else if (p.expandedStates) {
|
|
2860
|
-
let F = Au(!1, p.expandedStates, -1);
|
|
2861
|
-
if (p.break) {
|
|
2862
|
-
o.push({ ind: f, mode: fu, doc: F });
|
|
2863
|
-
break;
|
|
2864
|
-
} else
|
|
2865
|
-
for (let B = 1; B < p.expandedStates.length + 1; B++)
|
|
2866
|
-
if (B >= p.expandedStates.length) {
|
|
2867
|
-
o.push({ ind: f, mode: fu, doc: F });
|
|
2868
|
-
break;
|
|
2869
|
-
} else {
|
|
2870
|
-
let g = p.expandedStates[B], d = { ind: f, mode: mu, doc: g };
|
|
2871
|
-
if (pe(d, o, A, v, t)) {
|
|
2872
|
-
o.push(d);
|
|
2873
|
-
break;
|
|
2874
|
-
}
|
|
2875
|
-
}
|
|
2876
|
-
} else
|
|
2877
|
-
o.push({ ind: f, mode: fu, doc: p.contents });
|
|
2878
|
-
break;
|
|
2879
|
-
}
|
|
2880
|
-
}
|
|
2881
|
-
p.id && (t[p.id] = Au(!1, o, -1).mode);
|
|
2882
|
-
break;
|
|
2883
|
-
case Pu: {
|
|
2884
|
-
let m = n - r, A = p[Oe] ?? 0, { parts: v } = p, F = v.length - A;
|
|
2885
|
-
if (F === 0)
|
|
2886
|
-
break;
|
|
2887
|
-
let B = v[A + 0], g = v[A + 1], d = { ind: f, mode: mu, doc: B }, C = { ind: f, mode: fu, doc: B }, E = pe(d, [], m, s.length > 0, t, !0);
|
|
2888
|
-
if (F === 1) {
|
|
2889
|
-
E ? o.push(d) : o.push(C);
|
|
2890
|
-
break;
|
|
2891
|
-
}
|
|
2892
|
-
let y = { ind: f, mode: mu, doc: g }, w = { ind: f, mode: fu, doc: g };
|
|
2893
|
-
if (F === 2) {
|
|
2894
|
-
E ? o.push(y, d) : o.push(w, C);
|
|
2895
|
-
break;
|
|
2896
|
-
}
|
|
2897
|
-
let O = v[A + 2], b = { ind: f, mode: h, doc: { ...p, [Oe]: A + 2 } };
|
|
2898
|
-
pe({ ind: f, mode: mu, doc: [B, g, O] }, [], m, s.length > 0, t, !0) ? o.push(b, y, d) : E ? o.push(b, w, d) : o.push(b, w, C);
|
|
2899
|
-
break;
|
|
2900
|
-
}
|
|
2901
|
-
case qu:
|
|
2902
|
-
case oe: {
|
|
2903
|
-
let m = p.groupId ? t[p.groupId] : h;
|
|
2904
|
-
if (m === fu) {
|
|
2905
|
-
let A = p.type === qu ? p.breakContents : p.negate ? p.contents : Se(p.contents);
|
|
2906
|
-
A && o.push({ ind: f, mode: h, doc: A });
|
|
2907
|
-
}
|
|
2908
|
-
if (m === mu) {
|
|
2909
|
-
let A = p.type === qu ? p.flatContents : p.negate ? Se(p.contents) : p.contents;
|
|
2910
|
-
A && o.push({ ind: f, mode: h, doc: A });
|
|
2911
|
-
}
|
|
2912
|
-
break;
|
|
2913
|
-
}
|
|
2914
|
-
case ae:
|
|
2915
|
-
s.push({ ind: f, mode: h, doc: p.contents });
|
|
2916
|
-
break;
|
|
2917
|
-
case De:
|
|
2918
|
-
s.length > 0 && o.push({ ind: f, mode: h, doc: Ue });
|
|
2919
|
-
break;
|
|
2920
|
-
case bu:
|
|
2921
|
-
switch (h) {
|
|
2922
|
-
case mu:
|
|
2923
|
-
if (p.hard)
|
|
2924
|
-
D = !0;
|
|
2925
|
-
else {
|
|
2926
|
-
p.soft || (a.push(" "), r += 1);
|
|
2927
|
-
break;
|
|
2928
|
-
}
|
|
2929
|
-
case fu:
|
|
2930
|
-
if (s.length > 0) {
|
|
2931
|
-
o.push({ ind: f, mode: h, doc: p }, ...s.reverse()), s.length = 0;
|
|
2932
|
-
break;
|
|
2933
|
-
}
|
|
2934
|
-
p.literal ? f.root ? (a.push(i, f.root.value), r = f.root.length) : (a.push(i), r = 0) : (r -= Ne(a), a.push(i + f.value), r = f.length);
|
|
2935
|
-
break;
|
|
2936
|
-
}
|
|
2937
|
-
break;
|
|
2938
|
-
case le:
|
|
2939
|
-
o.push({ ind: f, mode: h, doc: p.contents });
|
|
2940
|
-
break;
|
|
2941
|
-
case _u:
|
|
2942
|
-
break;
|
|
2943
|
-
default:
|
|
2944
|
-
throw new Fe(p);
|
|
2945
|
-
}
|
|
2946
|
-
o.length === 0 && s.length > 0 && (o.push(...s.reverse()), s.length = 0);
|
|
2947
|
-
}
|
|
2948
|
-
let c = a.indexOf(zu);
|
|
2949
|
-
if (c !== -1) {
|
|
2950
|
-
let f = a.indexOf(zu, c + 1);
|
|
2951
|
-
if (f === -1)
|
|
2952
|
-
return { formatted: a.filter((A) => A !== zu).join("") };
|
|
2953
|
-
let h = a.slice(0, c).join(""), p = a.slice(c + 1, f).join(""), m = a.slice(f + 1).join("");
|
|
2954
|
-
return { formatted: h + p + m, cursorNodeStart: h.length, cursorNodeText: p };
|
|
2955
|
-
}
|
|
2956
|
-
return { formatted: a.join("") };
|
|
2957
|
-
}
|
|
2958
|
-
function Ti(u, e, t) {
|
|
2959
|
-
let { node: n } = u, i = [], r = u.map(() => u.map(({ index: c }) => {
|
|
2960
|
-
let f = Oi(t(), e).formatted, h = Me(f);
|
|
2961
|
-
return i[c] = Math.max(i[c] ?? 3, h), { text: f, width: h };
|
|
2962
|
-
}, "children"), "children"), o = D(!1);
|
|
2963
|
-
if (e.proseWrap !== "never")
|
|
2964
|
-
return [Ae, o];
|
|
2965
|
-
let a = D(!0);
|
|
2966
|
-
return [Ae, he(zn(a, o))];
|
|
2967
|
-
function D(c) {
|
|
2968
|
-
return qt(Ue, [l(r[0], c), s(c), ...r.slice(1).map((f) => l(f, c))].map((f) => `| ${f.join(" | ")} |`));
|
|
2969
|
-
}
|
|
2970
|
-
function s(c) {
|
|
2971
|
-
return i.map((f, h) => {
|
|
2972
|
-
let p = n.align[h], m = p === "center" || p === "left" ? ":" : "-", A = p === "center" || p === "right" ? ":" : "-", v = c ? "-" : "-".repeat(f - 2);
|
|
2973
|
-
return `${m}${v}${A}`;
|
|
2974
|
-
});
|
|
2975
|
-
}
|
|
2976
|
-
function l(c, f) {
|
|
2977
|
-
return c.map(({ text: h, width: p }, m) => {
|
|
2978
|
-
if (f)
|
|
2979
|
-
return h;
|
|
2980
|
-
let A = i[m] - p, v = n.align[m], F = 0;
|
|
2981
|
-
v === "right" ? F = A : v === "center" && (F = Math.floor(A / 2));
|
|
2982
|
-
let B = A - F;
|
|
2983
|
-
return `${" ".repeat(F)}${h}${" ".repeat(B)}`;
|
|
2984
|
-
});
|
|
2985
|
-
}
|
|
2986
|
-
}
|
|
2987
|
-
function Ni(u, e, t) {
|
|
2988
|
-
let n = u.map(t, "children");
|
|
2989
|
-
return Ri(n);
|
|
2990
|
-
}
|
|
2991
|
-
function Ri(u) {
|
|
2992
|
-
let e = [""];
|
|
2993
|
-
return function t(n) {
|
|
2994
|
-
for (let i of n) {
|
|
2995
|
-
let r = Ou(i);
|
|
2996
|
-
if (r === Su) {
|
|
2997
|
-
t(i);
|
|
2998
|
-
continue;
|
|
2999
|
-
}
|
|
3000
|
-
let o = i, a = [];
|
|
3001
|
-
r === Pu && ([o, ...a] = i.parts), e.push([e.pop(), o], ...a);
|
|
3002
|
-
}
|
|
3003
|
-
}(u), $e(e);
|
|
3004
|
-
}
|
|
3005
|
-
var Cu, Ii = class {
|
|
3006
|
-
constructor(u) {
|
|
3007
|
-
ur(this, Cu), er(this, Cu, new Set(u));
|
|
3008
|
-
}
|
|
3009
|
-
getLeadingWhitespaceCount(u) {
|
|
3010
|
-
let e = ku(this, Cu), t = 0;
|
|
3011
|
-
for (let n = 0; n < u.length && e.has(u.charAt(n)); n++)
|
|
3012
|
-
t++;
|
|
3013
|
-
return t;
|
|
3014
|
-
}
|
|
3015
|
-
getTrailingWhitespaceCount(u) {
|
|
3016
|
-
let e = ku(this, Cu), t = 0;
|
|
3017
|
-
for (let n = u.length - 1; n >= 0 && e.has(u.charAt(n)); n--)
|
|
3018
|
-
t++;
|
|
3019
|
-
return t;
|
|
3020
|
-
}
|
|
3021
|
-
getLeadingWhitespace(u) {
|
|
3022
|
-
let e = this.getLeadingWhitespaceCount(u);
|
|
3023
|
-
return u.slice(0, e);
|
|
3024
|
-
}
|
|
3025
|
-
getTrailingWhitespace(u) {
|
|
3026
|
-
let e = this.getTrailingWhitespaceCount(u);
|
|
3027
|
-
return u.slice(u.length - e);
|
|
3028
|
-
}
|
|
3029
|
-
hasLeadingWhitespace(u) {
|
|
3030
|
-
return ku(this, Cu).has(u.charAt(0));
|
|
3031
|
-
}
|
|
3032
|
-
hasTrailingWhitespace(u) {
|
|
3033
|
-
return ku(this, Cu).has(Au(!1, u, -1));
|
|
3034
|
-
}
|
|
3035
|
-
trimStart(u) {
|
|
3036
|
-
let e = this.getLeadingWhitespaceCount(u);
|
|
3037
|
-
return u.slice(e);
|
|
3038
|
-
}
|
|
3039
|
-
trimEnd(u) {
|
|
3040
|
-
let e = this.getTrailingWhitespaceCount(u);
|
|
3041
|
-
return u.slice(0, u.length - e);
|
|
3042
|
-
}
|
|
3043
|
-
trim(u) {
|
|
3044
|
-
return this.trimEnd(this.trimStart(u));
|
|
3045
|
-
}
|
|
3046
|
-
split(u, e = !1) {
|
|
3047
|
-
let t = `[${xe([...ku(this, Cu)].join(""))}]+`, n = new RegExp(e ? `(${t})` : t, "u");
|
|
3048
|
-
return u.split(n);
|
|
3049
|
-
}
|
|
3050
|
-
hasWhitespaceCharacter(u) {
|
|
3051
|
-
let e = ku(this, Cu);
|
|
3052
|
-
return Array.prototype.some.call(u, (t) => e.has(t));
|
|
3053
|
-
}
|
|
3054
|
-
hasNonWhitespaceCharacter(u) {
|
|
3055
|
-
let e = ku(this, Cu);
|
|
3056
|
-
return Array.prototype.some.call(u, (t) => !e.has(t));
|
|
3057
|
-
}
|
|
3058
|
-
isWhitespaceOnly(u) {
|
|
3059
|
-
let e = ku(this, Cu);
|
|
3060
|
-
return Array.prototype.every.call(u, (t) => e.has(t));
|
|
3061
|
-
}
|
|
3062
|
-
};
|
|
3063
|
-
Cu = /* @__PURE__ */ new WeakMap();
|
|
3064
|
-
var Pi = Ii, ji = [" ", `
|
|
3065
|
-
`, "\f", "\r", " "], zi = new Pi(ji), ut = zi, $i = /^.$/su;
|
|
3066
|
-
function Ui(u, e) {
|
|
3067
|
-
return u = Vi(u, e), u = Gi(u), u = Wi(u, e), u = _i(u, e), u = Hi(u), u;
|
|
3068
|
-
}
|
|
3069
|
-
function Vi(u, e) {
|
|
3070
|
-
return Ju(u, (t) => t.type !== "text" || t.value === "*" || t.value === "_" || !$i.test(t.value) || t.position.end.offset - t.position.start.offset === t.value.length ? t : { ...t, value: e.originalText.slice(t.position.start.offset, t.position.end.offset) });
|
|
3071
|
-
}
|
|
3072
|
-
function Mi(u, e, t) {
|
|
3073
|
-
return Ju(u, (n) => {
|
|
3074
|
-
if (!n.children)
|
|
3075
|
-
return n;
|
|
3076
|
-
let i = n.children.reduce((r, o) => {
|
|
3077
|
-
let a = Au(!1, r, -1);
|
|
3078
|
-
return a && e(a, o) ? r.splice(-1, 1, t(a, o)) : r.push(o), r;
|
|
3079
|
-
}, []);
|
|
3080
|
-
return { ...n, children: i };
|
|
3081
|
-
});
|
|
3082
|
-
}
|
|
3083
|
-
function Gi(u) {
|
|
3084
|
-
return Mi(u, (e, t) => e.type === "text" && t.type === "text", (e, t) => ({ type: "text", value: e.value + t.value, position: { start: e.position.start, end: t.position.end } }));
|
|
3085
|
-
}
|
|
3086
|
-
function Hi(u) {
|
|
3087
|
-
return Ju(u, (e, t, [n]) => {
|
|
3088
|
-
if (e.type !== "text")
|
|
3089
|
-
return e;
|
|
3090
|
-
let { value: i } = e;
|
|
3091
|
-
return n.type === "paragraph" && (t === 0 && (i = ut.trimStart(i)), t === n.children.length - 1 && (i = ut.trimEnd(i))), { type: "sentence", position: e.position, children: It(i) };
|
|
3092
|
-
});
|
|
3093
|
-
}
|
|
3094
|
-
function Wi(u, e) {
|
|
3095
|
-
return Ju(u, (t, n, i) => {
|
|
3096
|
-
if (t.type === "code") {
|
|
3097
|
-
let r = /^\n?(?: {4,}|\t)/u.test(e.originalText.slice(t.position.start.offset, t.position.end.offset));
|
|
3098
|
-
if (t.isIndented = r, r)
|
|
3099
|
-
for (let o = 0; o < i.length; o++) {
|
|
3100
|
-
let a = i[o];
|
|
3101
|
-
if (a.hasIndentedCodeblock)
|
|
3102
|
-
break;
|
|
3103
|
-
a.type === "list" && (a.hasIndentedCodeblock = !0);
|
|
3104
|
-
}
|
|
3105
|
-
}
|
|
3106
|
-
return t;
|
|
3107
|
-
});
|
|
3108
|
-
}
|
|
3109
|
-
function _i(u, e) {
|
|
3110
|
-
return Ju(u, (i, r, o) => {
|
|
3111
|
-
if (i.type === "list" && i.children.length > 0) {
|
|
3112
|
-
for (let a = 0; a < o.length; a++) {
|
|
3113
|
-
let D = o[a];
|
|
3114
|
-
if (D.type === "list" && !D.isAligned)
|
|
3115
|
-
return i.isAligned = !1, i;
|
|
3116
|
-
}
|
|
3117
|
-
i.isAligned = n(i);
|
|
3118
|
-
}
|
|
3119
|
-
return i;
|
|
3120
|
-
});
|
|
3121
|
-
function t(i) {
|
|
3122
|
-
return i.children.length === 0 ? -1 : i.children[0].position.start.column - 1;
|
|
3123
|
-
}
|
|
3124
|
-
function n(i) {
|
|
3125
|
-
if (!i.ordered)
|
|
3126
|
-
return !0;
|
|
3127
|
-
let [r, o] = i.children;
|
|
3128
|
-
if (ee(r, e).leadingSpaces.length > 1)
|
|
3129
|
-
return !0;
|
|
3130
|
-
let a = t(r);
|
|
3131
|
-
if (a === -1)
|
|
3132
|
-
return !1;
|
|
3133
|
-
if (i.children.length === 1)
|
|
3134
|
-
return a % e.tabWidth === 0;
|
|
3135
|
-
let D = t(o);
|
|
3136
|
-
return a !== D ? !1 : a % e.tabWidth === 0 ? !0 : ee(o, e).leadingSpaces.length > 1;
|
|
3137
|
-
}
|
|
3138
|
-
}
|
|
3139
|
-
var Ji = Ui;
|
|
3140
|
-
function Ki(u, e) {
|
|
3141
|
-
let t = [""];
|
|
3142
|
-
return u.each(() => {
|
|
3143
|
-
let { node: n } = u, i = e();
|
|
3144
|
-
switch (n.type) {
|
|
3145
|
-
case "whitespace":
|
|
3146
|
-
if (Ou(i) !== Iu) {
|
|
3147
|
-
t.push(i, "");
|
|
3148
|
-
break;
|
|
3149
|
-
}
|
|
3150
|
-
default:
|
|
3151
|
-
t.push([t.pop(), i]);
|
|
3152
|
-
}
|
|
3153
|
-
}, "children"), $e(t);
|
|
3154
|
-
}
|
|
3155
|
-
var Yi = /* @__PURE__ */ new Set(["heading", "tableCell", "link", "wikiLink"]), et = new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
|
|
3156
|
-
function Qi({ parent: u }) {
|
|
3157
|
-
if (u.usesCJSpaces === void 0) {
|
|
3158
|
-
let e = { " ": 0, "": 0 }, { children: t } = u;
|
|
3159
|
-
for (let n = 1; n < t.length - 1; ++n) {
|
|
3160
|
-
let i = t[n];
|
|
3161
|
-
if (i.type === "whitespace" && (i.value === " " || i.value === "")) {
|
|
3162
|
-
let r = t[n - 1].kind, o = t[n + 1].kind;
|
|
3163
|
-
(r === xu && o === re || r === re && o === xu) && ++e[i.value];
|
|
3164
|
-
}
|
|
3165
|
-
}
|
|
3166
|
-
u.usesCJSpaces = e[" "] > e[""];
|
|
3167
|
-
}
|
|
3168
|
-
return u.usesCJSpaces;
|
|
3169
|
-
}
|
|
3170
|
-
function Zi(u, e) {
|
|
3171
|
-
if (e)
|
|
3172
|
-
return !0;
|
|
3173
|
-
let { previous: t, next: n } = u;
|
|
3174
|
-
if (!t || !n)
|
|
3175
|
-
return !0;
|
|
3176
|
-
let i = t.kind, r = n.kind;
|
|
3177
|
-
return tt(i) && tt(r) || i === $u && r === xu || r === $u && i === xu ? !0 : i === me || r === me || i === xu && r === xu ? !1 : et.has(n.value[0]) || et.has(Au(!1, t.value, -1)) ? !0 : t.hasTrailingPunctuation || n.hasLeadingPunctuation ? !1 : Qi(u);
|
|
3178
|
-
}
|
|
3179
|
-
function tt(u) {
|
|
3180
|
-
return u === re || u === $u;
|
|
3181
|
-
}
|
|
3182
|
-
function Xi(u, e, t, n) {
|
|
3183
|
-
if (t !== "always" || u.hasAncestor((o) => Yi.has(o.type)))
|
|
3184
|
-
return !1;
|
|
3185
|
-
if (n)
|
|
3186
|
-
return e !== "";
|
|
3187
|
-
let { previous: i, next: r } = u;
|
|
3188
|
-
return !i || !r ? !0 : e === "" ? !1 : i.kind === $u && r.kind === xu || r.kind === $u && i.kind === xu ? !0 : !(i.isCJ || r.isCJ);
|
|
3189
|
-
}
|
|
3190
|
-
function rt(u, e, t, n) {
|
|
3191
|
-
if (t === "preserve" && e === `
|
|
3192
|
-
`)
|
|
3193
|
-
return iu;
|
|
3194
|
-
let i = e === " " || e === `
|
|
3195
|
-
` && Zi(u, n);
|
|
3196
|
-
return Xi(u, e, t, n) ? i ? wt : kt : i ? " " : "";
|
|
3197
|
-
}
|
|
3198
|
-
var uo = /* @__PURE__ */ new Set(["listItem", "definition"]);
|
|
3199
|
-
function eo(u, e, t) {
|
|
3200
|
-
var n, i;
|
|
3201
|
-
let { node: r } = u;
|
|
3202
|
-
if (ao(u)) {
|
|
3203
|
-
let o = [""], a = It(e.originalText.slice(r.position.start.offset, r.position.end.offset));
|
|
3204
|
-
for (let D of a) {
|
|
3205
|
-
if (D.type === "word") {
|
|
3206
|
-
o.push([o.pop(), D.value]);
|
|
3207
|
-
continue;
|
|
3208
|
-
}
|
|
3209
|
-
let s = rt(u, D.value, e.proseWrap, !0);
|
|
3210
|
-
if (Ou(s) === Iu) {
|
|
3211
|
-
o.push([o.pop(), s]);
|
|
3212
|
-
continue;
|
|
3213
|
-
}
|
|
3214
|
-
o.push(s, "");
|
|
3215
|
-
}
|
|
3216
|
-
return $e(o);
|
|
3217
|
-
}
|
|
3218
|
-
switch (r.type) {
|
|
3219
|
-
case "front-matter":
|
|
3220
|
-
return e.originalText.slice(r.position.start.offset, r.position.end.offset);
|
|
3221
|
-
case "root":
|
|
3222
|
-
return r.children.length === 0 ? "" : [no(u, e, t), iu];
|
|
3223
|
-
case "paragraph":
|
|
3224
|
-
return Ni(u, e, t);
|
|
3225
|
-
case "sentence":
|
|
3226
|
-
return Ki(u, t);
|
|
3227
|
-
case "word": {
|
|
3228
|
-
let o = Du(!1, Du(!1, r.value, "*", String.raw`\*`), new RegExp([`(^|${ue.source})(_+)`, `(_+)(${ue.source}|$)`].join("|"), "gu"), (s, l, c, f, h) => Du(!1, c ? `${l}${c}` : `${f}${h}`, "_", String.raw`\_`)), a = (s, l, c) => s.type === "sentence" && c === 0, D = (s, l, c) => Xe(s.children[c - 1]);
|
|
3229
|
-
return o !== r.value && (u.match(void 0, a, D) || u.match(void 0, a, (s, l, c) => s.type === "emphasis" && c === 0, D)) && (o = o.replace(/^(\\?[*_])+/u, (s) => Du(!1, s, "\\", ""))), o;
|
|
3230
|
-
}
|
|
3231
|
-
case "whitespace": {
|
|
3232
|
-
let { next: o } = u, a = o && /^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(o.value) ? "never" : e.proseWrap;
|
|
3233
|
-
return rt(u, r.value, a);
|
|
3234
|
-
}
|
|
3235
|
-
case "emphasis": {
|
|
3236
|
-
let o;
|
|
3237
|
-
if (Xe(r.children[0]))
|
|
3238
|
-
o = e.originalText[r.position.start.offset];
|
|
3239
|
-
else {
|
|
3240
|
-
let { previous: a, next: D } = u;
|
|
3241
|
-
o = (a == null ? void 0 : a.type) === "sentence" && ((n = Au(!1, a.children, -1)) == null ? void 0 : n.type) === "word" && !Au(!1, a.children, -1).hasTrailingPunctuation || (D == null ? void 0 : D.type) === "sentence" && ((i = D.children[0]) == null ? void 0 : i.type) === "word" && !D.children[0].hasLeadingPunctuation || u.hasAncestor((s) => s.type === "emphasis") ? "*" : "_";
|
|
3242
|
-
}
|
|
3243
|
-
return [o, cu(u, e, t), o];
|
|
3244
|
-
}
|
|
3245
|
-
case "strong":
|
|
3246
|
-
return ["**", cu(u, e, t), "**"];
|
|
3247
|
-
case "delete":
|
|
3248
|
-
return ["~~", cu(u, e, t), "~~"];
|
|
3249
|
-
case "inlineCode": {
|
|
3250
|
-
let o = e.proseWrap === "preserve" ? r.value : Du(!1, r.value, `
|
|
3251
|
-
`, " "), a = Mn(o, "`"), D = "`".repeat(a || 1), s = o.startsWith("`") || o.endsWith("`") || /^[\n ]/u.test(o) && /[\n ]$/u.test(o) && /[^\n ]/u.test(o) ? " " : "";
|
|
3252
|
-
return [D, s, o, s, D];
|
|
3253
|
-
}
|
|
3254
|
-
case "wikiLink": {
|
|
3255
|
-
let o = "";
|
|
3256
|
-
return e.proseWrap === "preserve" ? o = r.value : o = Du(!1, r.value, /[\t\n]+/gu, " "), ["[[", o, "]]"];
|
|
3257
|
-
}
|
|
3258
|
-
case "link":
|
|
3259
|
-
switch (e.originalText[r.position.start.offset]) {
|
|
3260
|
-
case "<": {
|
|
3261
|
-
let o = "mailto:";
|
|
3262
|
-
return ["<", r.url.startsWith(o) && e.originalText.slice(r.position.start.offset + 1, r.position.start.offset + 1 + o.length) !== o ? r.url.slice(o.length) : r.url, ">"];
|
|
3263
|
-
}
|
|
3264
|
-
case "[":
|
|
3265
|
-
return ["[", cu(u, e, t), "](", ke(r.url, ")"), de(r.title, e), ")"];
|
|
3266
|
-
default:
|
|
3267
|
-
return e.originalText.slice(r.position.start.offset, r.position.end.offset);
|
|
3268
|
-
}
|
|
3269
|
-
case "image":
|
|
3270
|
-
return [""), de(r.title, e), ")"];
|
|
3271
|
-
case "blockquote":
|
|
3272
|
-
return ["> ", Ru("> ", cu(u, e, t))];
|
|
3273
|
-
case "heading":
|
|
3274
|
-
return ["#".repeat(r.depth) + " ", cu(u, e, t)];
|
|
3275
|
-
case "code": {
|
|
3276
|
-
if (r.isIndented) {
|
|
3277
|
-
let D = " ".repeat(4);
|
|
3278
|
-
return Ru(D, [D, ju(r.value, iu)]);
|
|
3279
|
-
}
|
|
3280
|
-
let o = e.__inJsTemplate ? "~" : "`", a = o.repeat(Math.max(3, St(r.value, o) + 1));
|
|
3281
|
-
return [a, r.lang || "", r.meta ? " " + r.meta : "", iu, ju(Pt(r, e.originalText), iu), iu, a];
|
|
3282
|
-
}
|
|
3283
|
-
case "html": {
|
|
3284
|
-
let { parent: o, isLast: a } = u, D = o.type === "root" && a ? r.value.trimEnd() : r.value, s = /^<!--.*-->$/su.test(D);
|
|
3285
|
-
return ju(D, s ? iu : Ce(Le));
|
|
3286
|
-
}
|
|
3287
|
-
case "list": {
|
|
3288
|
-
let o = it(r, u.parent), a = fi(r, e);
|
|
3289
|
-
return cu(u, e, t, { processor(D) {
|
|
3290
|
-
let s = c(), l = D.node;
|
|
3291
|
-
if (l.children.length === 2 && l.children[1].type === "html" && l.children[0].position.start.column !== l.children[1].position.start.column)
|
|
3292
|
-
return [s, nt(D, e, t, s)];
|
|
3293
|
-
return [s, Ru(" ".repeat(s.length), nt(D, e, t, s))];
|
|
3294
|
-
function c() {
|
|
3295
|
-
let f = r.ordered ? (D.isFirst ? r.start : a ? 1 : r.start + D.index) + (o % 2 === 0 ? ". " : ") ") : o % 2 === 0 ? "- " : "* ";
|
|
3296
|
-
return (r.isAligned || r.hasIndentedCodeblock) && r.ordered ? to(f, e) : f;
|
|
3297
|
-
}
|
|
3298
|
-
} });
|
|
3299
|
-
}
|
|
3300
|
-
case "thematicBreak": {
|
|
3301
|
-
let { ancestors: o } = u, a = o.findIndex((D) => D.type === "list");
|
|
3302
|
-
return a === -1 ? "---" : it(o[a], o[a + 1]) % 2 === 0 ? "***" : "---";
|
|
3303
|
-
}
|
|
3304
|
-
case "linkReference":
|
|
3305
|
-
return ["[", cu(u, e, t), "]", r.referenceType === "full" ? qe(r) : r.referenceType === "collapsed" ? "[]" : ""];
|
|
3306
|
-
case "imageReference":
|
|
3307
|
-
switch (r.referenceType) {
|
|
3308
|
-
case "full":
|
|
3309
|
-
return ["![", r.alt || "", "]", qe(r)];
|
|
3310
|
-
default:
|
|
3311
|
-
return ["![", r.alt, "]", r.referenceType === "collapsed" ? "[]" : ""];
|
|
3312
|
-
}
|
|
3313
|
-
case "definition": {
|
|
3314
|
-
let o = e.proseWrap === "always" ? wt : " ";
|
|
3315
|
-
return he([qe(r), ":", Se([o, ke(r.url), r.title === null ? "" : [o, de(r.title, e, !1)]])]);
|
|
3316
|
-
}
|
|
3317
|
-
case "footnote":
|
|
3318
|
-
return ["[^", cu(u, e, t), "]"];
|
|
3319
|
-
case "footnoteReference":
|
|
3320
|
-
return lt(r);
|
|
3321
|
-
case "footnoteDefinition": {
|
|
3322
|
-
let o = r.children.length === 1 && r.children[0].type === "paragraph" && (e.proseWrap === "never" || e.proseWrap === "preserve" && r.children[0].position.start.line === r.children[0].position.end.line);
|
|
3323
|
-
return [lt(r), ": ", o ? cu(u, e, t) : he([Ru(" ".repeat(4), cu(u, e, t, { processor: ({ isFirst: a }) => a ? he([kt, t()]) : t() }))])];
|
|
3324
|
-
}
|
|
3325
|
-
case "table":
|
|
3326
|
-
return Ti(u, e, t);
|
|
3327
|
-
case "tableCell":
|
|
3328
|
-
return cu(u, e, t);
|
|
3329
|
-
case "break":
|
|
3330
|
-
return /\s/u.test(e.originalText[r.position.start.offset]) ? [" ", Ce(Le)] : ["\\", iu];
|
|
3331
|
-
case "liquidNode":
|
|
3332
|
-
return ju(r.value, iu);
|
|
3333
|
-
case "import":
|
|
3334
|
-
case "export":
|
|
3335
|
-
case "jsx":
|
|
3336
|
-
return r.value;
|
|
3337
|
-
case "esComment":
|
|
3338
|
-
return ["{/* ", r.value, " */}"];
|
|
3339
|
-
case "math":
|
|
3340
|
-
return ["$$", iu, r.value ? [ju(r.value, iu), iu] : "", "$$"];
|
|
3341
|
-
case "inlineMath":
|
|
3342
|
-
return e.originalText.slice(Ee(r), ge(r));
|
|
3343
|
-
case "tableRow":
|
|
3344
|
-
case "listItem":
|
|
3345
|
-
case "text":
|
|
3346
|
-
default:
|
|
3347
|
-
throw new _n(r, "Markdown");
|
|
3348
|
-
}
|
|
3349
|
-
}
|
|
3350
|
-
function nt(u, e, t, n) {
|
|
3351
|
-
let { node: i } = u, r = i.checked === null ? "" : i.checked ? "[x] " : "[ ] ";
|
|
3352
|
-
return [r, cu(u, e, t, { processor({ node: o, isFirst: a }) {
|
|
3353
|
-
if (a && o.type !== "list")
|
|
3354
|
-
return Ru(" ".repeat(r.length), t());
|
|
3355
|
-
let D = " ".repeat(lo(e.tabWidth - n.length, 0, 3));
|
|
3356
|
-
return [D, Ru(D, t())];
|
|
3357
|
-
} })];
|
|
3358
|
-
}
|
|
3359
|
-
function to(u, e) {
|
|
3360
|
-
let t = n();
|
|
3361
|
-
return u + " ".repeat(t >= 4 ? 0 : t);
|
|
3362
|
-
function n() {
|
|
3363
|
-
let i = u.length % e.tabWidth;
|
|
3364
|
-
return i === 0 ? 0 : e.tabWidth - i;
|
|
3365
|
-
}
|
|
3366
|
-
}
|
|
3367
|
-
function it(u, e) {
|
|
3368
|
-
return ro(u, e, (t) => t.ordered === u.ordered);
|
|
3369
|
-
}
|
|
3370
|
-
function ro(u, e, t) {
|
|
3371
|
-
let n = -1;
|
|
3372
|
-
for (let i of e.children)
|
|
3373
|
-
if (i.type === u.type && t(i) ? n++ : n = -1, i === u)
|
|
3374
|
-
return n;
|
|
3375
|
-
}
|
|
3376
|
-
function no(u, e, t) {
|
|
3377
|
-
let n = [], i = null, { children: r } = u.node;
|
|
3378
|
-
for (let [o, a] of r.entries())
|
|
3379
|
-
switch (Ge(a)) {
|
|
3380
|
-
case "start":
|
|
3381
|
-
i === null && (i = { index: o, offset: a.position.end.offset });
|
|
3382
|
-
break;
|
|
3383
|
-
case "end":
|
|
3384
|
-
i !== null && (n.push({ start: i, end: { index: o, offset: a.position.start.offset } }), i = null);
|
|
3385
|
-
break;
|
|
3386
|
-
}
|
|
3387
|
-
return cu(u, e, t, { processor({ index: o }) {
|
|
3388
|
-
if (n.length > 0) {
|
|
3389
|
-
let a = n[0];
|
|
3390
|
-
if (o === a.start.index)
|
|
3391
|
-
return [ot(r[a.start.index]), e.originalText.slice(a.start.offset, a.end.offset), ot(r[a.end.index])];
|
|
3392
|
-
if (a.start.index < o && o < a.end.index)
|
|
3393
|
-
return !1;
|
|
3394
|
-
if (o === a.end.index)
|
|
3395
|
-
return n.shift(), !1;
|
|
3396
|
-
}
|
|
3397
|
-
return t();
|
|
3398
|
-
} });
|
|
3399
|
-
}
|
|
3400
|
-
function cu(u, e, t, n = {}) {
|
|
3401
|
-
let { processor: i = t } = n, r = [];
|
|
3402
|
-
return u.each(() => {
|
|
3403
|
-
let o = i(u);
|
|
3404
|
-
o !== !1 && (r.length > 0 && io(u) && (r.push(iu), (oo(u, e) || Dt(u)) && r.push(iu), Dt(u) && r.push(iu)), r.push(o));
|
|
3405
|
-
}, "children"), r;
|
|
3406
|
-
}
|
|
3407
|
-
function ot(u) {
|
|
3408
|
-
if (u.type === "html")
|
|
3409
|
-
return u.value;
|
|
3410
|
-
if (u.type === "paragraph" && Array.isArray(u.children) && u.children.length === 1 && u.children[0].type === "esComment")
|
|
3411
|
-
return ["{/* ", u.children[0].value, " */}"];
|
|
3412
|
-
}
|
|
3413
|
-
function Ge(u) {
|
|
3414
|
-
let e;
|
|
3415
|
-
if (u.type === "html")
|
|
3416
|
-
e = u.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);
|
|
3417
|
-
else {
|
|
3418
|
-
let t;
|
|
3419
|
-
u.type === "esComment" ? t = u : u.type === "paragraph" && u.children.length === 1 && u.children[0].type === "esComment" && (t = u.children[0]), t && (e = t.value.match(/^prettier-ignore(?:-(start|end))?$/u));
|
|
3420
|
-
}
|
|
3421
|
-
return e ? e[1] || "next" : !1;
|
|
3422
|
-
}
|
|
3423
|
-
function io({ node: u, parent: e }) {
|
|
3424
|
-
let t = Nt.has(u.type), n = u.type === "html" && Rt.has(e.type);
|
|
3425
|
-
return !t && !n;
|
|
3426
|
-
}
|
|
3427
|
-
function at(u, e) {
|
|
3428
|
-
return u.type === "listItem" && (u.spread || e.originalText.charAt(u.position.end.offset - 1) === `
|
|
3429
|
-
`);
|
|
3430
|
-
}
|
|
3431
|
-
function oo({ node: u, previous: e, parent: t }, n) {
|
|
3432
|
-
if (at(e, n))
|
|
3433
|
-
return !0;
|
|
3434
|
-
let i = e.type === u.type && uo.has(u.type), r = t.type === "listItem" && !at(t, n), o = Ge(e) === "next", a = u.type === "html" && e.type === "html" && e.position.end.line + 1 === u.position.start.line, D = u.type === "html" && t.type === "listItem" && e.type === "paragraph" && e.position.end.line + 1 === u.position.start.line;
|
|
3435
|
-
return !(i || r || o || a || D);
|
|
3436
|
-
}
|
|
3437
|
-
function Dt({ node: u, previous: e }) {
|
|
3438
|
-
let t = e.type === "list", n = u.type === "code" && u.isIndented;
|
|
3439
|
-
return t && n;
|
|
3440
|
-
}
|
|
3441
|
-
function ao(u) {
|
|
3442
|
-
let e = u.findAncestor((t) => t.type === "linkReference" || t.type === "imageReference");
|
|
3443
|
-
return e && (e.type !== "linkReference" || e.referenceType !== "full");
|
|
3444
|
-
}
|
|
3445
|
-
var Do = (u, e) => {
|
|
3446
|
-
for (let t of e)
|
|
3447
|
-
u = Du(!1, u, t, encodeURIComponent(t));
|
|
3448
|
-
return u;
|
|
3449
|
-
};
|
|
3450
|
-
function ke(u, e = []) {
|
|
3451
|
-
let t = [" ", ...Array.isArray(e) ? e : [e]];
|
|
3452
|
-
return new RegExp(t.map((n) => xe(n)).join("|"), "u").test(u) ? `<${Do(u, "<>")}>` : u;
|
|
3453
|
-
}
|
|
3454
|
-
function de(u, e, t = !0) {
|
|
3455
|
-
if (!u)
|
|
3456
|
-
return "";
|
|
3457
|
-
if (t)
|
|
3458
|
-
return " " + de(u, e, !1);
|
|
3459
|
-
if (u = Du(!1, u, /\\(?=["')])/gu, ""), u.includes('"') && u.includes("'") && !u.includes(")"))
|
|
3460
|
-
return `(${u})`;
|
|
3461
|
-
let n = Hn(u, e.singleQuote);
|
|
3462
|
-
return u = Du(!1, u, "\\", "\\\\"), u = Du(!1, u, n, `\\${n}`), `${n}${u}${n}`;
|
|
3463
|
-
}
|
|
3464
|
-
function lo(u, e, t) {
|
|
3465
|
-
return Math.max(e, Math.min(u, t));
|
|
3466
|
-
}
|
|
3467
|
-
function so(u) {
|
|
3468
|
-
return u.index > 0 && Ge(u.previous) === "next";
|
|
3469
|
-
}
|
|
3470
|
-
function qe(u) {
|
|
3471
|
-
return `[${(0, kn.default)(u.label)}]`;
|
|
3472
|
-
}
|
|
3473
|
-
function lt(u) {
|
|
3474
|
-
return `[^${u.label}]`;
|
|
3475
|
-
}
|
|
3476
|
-
var co = { preprocess: Ji, print: eo, embed: hi, massageAstNode: ti, hasPrettierIgnore: so, insertPragma: ui, getVisitorKeys: vi }, fo = co, po = [{ linguistLanguageId: 222, name: "Markdown", type: "prose", color: "#083fa1", aliases: ["md", "pandoc"], aceMode: "markdown", codemirrorMode: "gfm", codemirrorMimeType: "text/x-gfm", wrap: !0, 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: !0, extensions: [".mdx"], filenames: [], tmScope: "text.md", parsers: ["mdx"], vscodeLanguageIds: ["mdx"] }], st = { bracketSpacing: { category: "Common", type: "boolean", default: !0, 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: !1, 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: !1, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: !1, description: "Enforce single attribute per line in HTML, Vue and JSX." } }, ho = { proseWrap: st.proseWrap, singleQuote: st.singleQuote }, Fo = ho, zt = {};
|
|
3477
|
-
ht(zt, { markdown: () => ft, mdx: () => Io, remark: () => ft });
|
|
3478
|
-
var Co = Uu(tr(), 1), Ao = Uu(ir(), 1), Eo = Uu(fn(), 1), go = Uu(bn(), 1), mo = /^import\s/u, vo = /^export\s/u, xo = String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`, Bo = /<!---->|<!---?[^>-](?:-?[^-])*-->/u, bo = /^\{\s*\/\*(.*)\*\/\s*\}/u, yo = `
|
|
3479
|
-
|
|
3480
|
-
`, $t = (u) => mo.test(u), Re = (u) => vo.test(u), Ut = (u, e) => {
|
|
3481
|
-
let t = e.indexOf(yo), n = e.slice(0, t);
|
|
3482
|
-
if (Re(n) || $t(n))
|
|
3483
|
-
return u(n)({ type: Re(n) ? "export" : "import", value: n });
|
|
3484
|
-
}, Vt = (u, e) => {
|
|
3485
|
-
let t = bo.exec(e);
|
|
3486
|
-
if (t)
|
|
3487
|
-
return u(t[0])({ type: "esComment", value: t[1].trim() });
|
|
3488
|
-
};
|
|
3489
|
-
Ut.locator = (u) => Re(u) || $t(u) ? -1 : 1;
|
|
3490
|
-
Vt.locator = (u, e) => u.indexOf("{", e);
|
|
3491
|
-
var wo = function() {
|
|
3492
|
-
let { Parser: u } = this, { blockTokenizers: e, blockMethods: t, inlineTokenizers: n, inlineMethods: i } = u.prototype;
|
|
3493
|
-
e.esSyntax = Ut, n.esComment = Vt, t.splice(t.indexOf("paragraph"), 0, "esSyntax"), i.splice(i.indexOf("text"), 0, "esComment");
|
|
3494
|
-
}, ko = function() {
|
|
3495
|
-
let u = this.Parser.prototype;
|
|
3496
|
-
u.blockMethods = ["frontMatter", ...u.blockMethods], u.blockTokenizers.frontMatter = e;
|
|
3497
|
-
function e(t, n) {
|
|
3498
|
-
let i = Ve(n);
|
|
3499
|
-
if (i.frontMatter)
|
|
3500
|
-
return t(i.frontMatter.raw)(i.frontMatter);
|
|
3501
|
-
}
|
|
3502
|
-
e.onlyAtStart = !0;
|
|
3503
|
-
}, qo = ko;
|
|
3504
|
-
function So() {
|
|
3505
|
-
return (u) => Ju(u, (e, t, [n]) => e.type !== "html" || Bo.test(e.value) || Rt.has(n.type) ? e : { ...e, type: "jsx" });
|
|
3506
|
-
}
|
|
3507
|
-
var Lo = So, Oo = function() {
|
|
3508
|
-
let u = this.Parser.prototype, e = u.inlineMethods;
|
|
3509
|
-
e.splice(e.indexOf("text"), 0, "liquid"), u.inlineTokenizers.liquid = t;
|
|
3510
|
-
function t(n, i) {
|
|
3511
|
-
let r = i.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);
|
|
3512
|
-
if (r)
|
|
3513
|
-
return n(r[0])({ type: "liquidNode", value: r[0] });
|
|
3514
|
-
}
|
|
3515
|
-
t.locator = function(n, i) {
|
|
3516
|
-
return n.indexOf("{", i);
|
|
3517
|
-
};
|
|
3518
|
-
}, To = Oo, No = function() {
|
|
3519
|
-
let u = "wikiLink", e = /^\[\[(?<linkContents>.+?)\]\]/su, t = this.Parser.prototype, n = t.inlineMethods;
|
|
3520
|
-
n.splice(n.indexOf("link"), 0, u), t.inlineTokenizers.wikiLink = i;
|
|
3521
|
-
function i(r, o) {
|
|
3522
|
-
let a = e.exec(o);
|
|
3523
|
-
if (a) {
|
|
3524
|
-
let D = a.groups.linkContents.trim();
|
|
3525
|
-
return r(a[0])({ type: u, value: D });
|
|
3526
|
-
}
|
|
3527
|
-
}
|
|
3528
|
-
i.locator = function(r, o) {
|
|
3529
|
-
return r.indexOf("[", o);
|
|
3530
|
-
};
|
|
3531
|
-
}, Ro = No;
|
|
3532
|
-
function Mt({ isMDX: u }) {
|
|
3533
|
-
return (e) => {
|
|
3534
|
-
let t = (0, go.default)().use(Eo.default, { commonmark: !0, ...u && { blocks: [xo] } }).use(Co.default).use(qo).use(Ao.default).use(u ? wo : ct).use(To).use(u ? Lo : ct).use(Ro);
|
|
3535
|
-
return t.run(t.parse(e));
|
|
3536
|
-
};
|
|
3537
|
-
}
|
|
3538
|
-
function ct() {
|
|
3539
|
-
}
|
|
3540
|
-
var Gt = { astFormat: "mdast", hasPragma: Xn, locStart: Ee, locEnd: ge }, ft = { ...Gt, parse: Mt({ isMDX: !1 }) }, Io = { ...Gt, parse: Mt({ isMDX: !0 }) }, Po = { mdast: fo }, zo = bt;
|
|
3541
|
-
export {
|
|
3542
|
-
zo as default,
|
|
3543
|
-
po as languages,
|
|
3544
|
-
Fo as options,
|
|
3545
|
-
zt as parsers,
|
|
3546
|
-
Po as printers
|
|
3547
|
-
};
|
|
3548
|
-
//# sourceMappingURL=markdown-39c3822b.js.map
|