eddyter 1.3.62 → 1.3.64
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/LICENSE +24 -24
- package/README.md +493 -493
- package/dist/ImageResizer-CbtUYHip.js +199 -0
- package/dist/api/auth.d.ts +4 -2
- package/dist/assets/style.css +1 -0
- package/dist/{babel-B9hn44Wo.js → babel-CCPWkrf4.js} +1302 -726
- package/dist/components/LockedFeature/LockedFeature.d.ts +23 -0
- package/dist/components/LockedFeature/index.d.ts +2 -0
- package/dist/components/UnifiedColorPicker/UnifiedColorPicker.d.ts +14 -0
- package/dist/components/VideoView/index.d.ts +13 -0
- package/dist/constants.d.ts +3 -1
- package/dist/editorConfig.d.ts +2 -3
- package/dist/{estree-CocPn_Md.js → estree-CxUPh9wa.js} +917 -529
- package/dist/{html-CxCicOef.js → html-CmniStvG.js} +589 -350
- package/dist/{html2pdf.bundle-DNyY_rJA.js → html2pdf.bundle-C1B1lr_T.js} +3796 -2777
- package/dist/{html2pdf.bundle.min-GfQzEXnM.js → html2pdf.bundle.min-kPviTsNx.js} +5223 -3407
- package/dist/index-BL8HWCRw.js +816 -0
- package/dist/index-BpsoOKOs.js +274 -0
- package/dist/{index-YHNm3bIK.js → index-DHKx5grA.js} +4 -4
- package/dist/{index-CIBuU2Zv.js → index-FZVNbwSO.js} +12356 -11290
- package/dist/index.js +3 -3
- package/dist/{markdown-BUjgWFLu.js → markdown-B0mEGGfQ.js} +1015 -578
- package/dist/nodes/UploadingVideoNode.d.ts +30 -0
- package/dist/nodes/VideoNode.d.ts +47 -0
- package/dist/plugins/CustomHorizontalRulePlugin/HorizontalRuleCustomizationDialog.d.ts +2 -1
- package/dist/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +1 -1
- package/dist/plugins/VideoPlugin.d.ts +17 -0
- package/dist/{postcss-CGIcwj_g.js → postcss-B0bxXf7u.js} +1065 -615
- package/dist/{standalone-C0qguT38.js → standalone-DmuJV5rn.js} +596 -350
- package/dist/types.d.ts +4 -6
- package/dist/{typescript-BM7wk6k-.js → typescript-DZlC_9M8.js} +1805 -1113
- package/dist/ui/Icons.d.ts +2 -1
- package/dist/utils/uploadManager.d.ts +17 -0
- package/package.json +151 -151
- package/dist/assets/index.css +0 -1
- package/dist/index-BoOSmKss.js +0 -985
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
var Qt = Object.create, Ie = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, er = Object.getOwnPropertyNames, tr = Object.getPrototypeOf, rr = Object.prototype.hasOwnProperty, mt = (u) => {
|
|
2
2
|
throw TypeError(u);
|
|
3
3
|
}, N = (u, e) => () => (e || u((e = { exports: {} }).exports, e), e.exports), Et = (u, e) => {
|
|
4
|
-
for (var t in e)
|
|
4
|
+
for (var t in e)
|
|
5
|
+
Ie(u, t, { get: e[t], enumerable: !0 });
|
|
5
6
|
}, nr = (u, e, t, n) => {
|
|
6
|
-
if (e && typeof e == "object" || typeof e == "function")
|
|
7
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
8
|
+
for (let r of er(e))
|
|
9
|
+
!rr.call(u, r) && r !== t && Ie(u, r, { get: () => e[r], enumerable: !(n = ur(e, r)) || n.enumerable });
|
|
7
10
|
return u;
|
|
8
11
|
}, Mu = (u, e, t) => (t = u != null ? Qt(tr(u)) : {}, nr(Ie(t, "default", { value: u, enumerable: !0 }), u)), vt = (u, e, t) => e.has(u) || mt("Cannot " + t), ku = (u, e, t) => (vt(u, e, "read from private field"), e.get(u)), ir = (u, e, t) => e.has(u) ? mt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(u) : e.set(u, t), ar = (u, e, t, n) => (vt(u, e, "write to private field"), e.set(u, t), t), Pe = N((u, e) => {
|
|
9
12
|
e.exports = t;
|
|
@@ -24,13 +27,16 @@ var Qt = Object.create, Ie = Object.defineProperty, ur = Object.getOwnPropertyDe
|
|
|
24
27
|
return !!(d && d.prototype && d.prototype.visitors);
|
|
25
28
|
}
|
|
26
29
|
function v(d, C) {
|
|
27
|
-
for (var g = C || {}, y = d.prototype, w = y.blockTokenizers, T = y.inlineTokenizers, b = y.blockMethods, k = y.inlineMethods, L = w.definition, I = T.reference, x = [], S = -1, M = b.length, z; ++S < M; )
|
|
30
|
+
for (var g = C || {}, y = d.prototype, w = y.blockTokenizers, T = y.inlineTokenizers, b = y.blockMethods, k = y.inlineMethods, L = w.definition, I = T.reference, x = [], S = -1, M = b.length, z; ++S < M; )
|
|
31
|
+
z = b[S], !(z === "newline" || z === "indentedCode" || z === "paragraph" || z === "footnoteDefinition") && x.push([z]);
|
|
28
32
|
x.push(["footnoteDefinition"]), g.inlineNotes && (B(k, "reference", "inlineNote"), T.inlineNote = J), B(b, "definition", "footnoteDefinition"), B(k, "reference", "footnoteCall"), w.definition = O, w.footnoteDefinition = V, T.footnoteCall = q, T.reference = j, y.interruptFootnoteDefinition = x, j.locator = I.locator, q.locator = $, J.locator = U;
|
|
29
33
|
function V(R, P, G) {
|
|
30
|
-
for (var W = this, Y = W.interruptFootnoteDefinition, K = W.offset, eu = P.length + 1, H = 0, Q = [], Du, su, uu, _, X, pu, yu, hu, Fu, nu, du, tu, Z; H < eu && (_ = P.charCodeAt(H), !(_ !== t && _ !== r)); )
|
|
34
|
+
for (var W = this, Y = W.interruptFootnoteDefinition, K = W.offset, eu = P.length + 1, H = 0, Q = [], Du, su, uu, _, X, pu, yu, hu, Fu, nu, du, tu, Z; H < eu && (_ = P.charCodeAt(H), !(_ !== t && _ !== r)); )
|
|
35
|
+
H++;
|
|
31
36
|
if (P.charCodeAt(H++) === a && P.charCodeAt(H++) === s) {
|
|
32
37
|
for (su = H; H < eu; ) {
|
|
33
|
-
if (_ = P.charCodeAt(H), _ !== _ || _ === n || _ === t || _ === r)
|
|
38
|
+
if (_ = P.charCodeAt(H), _ !== _ || _ === n || _ === t || _ === r)
|
|
39
|
+
return;
|
|
34
40
|
if (_ === D) {
|
|
35
41
|
uu = H, H++;
|
|
36
42
|
break;
|
|
@@ -38,18 +44,25 @@ var Qt = Object.create, Ie = Object.defineProperty, ur = Object.getOwnPropertyDe
|
|
|
38
44
|
H++;
|
|
39
45
|
}
|
|
40
46
|
if (!(uu === void 0 || su === uu || P.charCodeAt(H++) !== o)) {
|
|
41
|
-
if (G)
|
|
47
|
+
if (G)
|
|
48
|
+
return !0;
|
|
42
49
|
for (Du = P.slice(su, uu), X = R.now(), Fu = 0, nu = 0, du = H, tu = []; H < eu; ) {
|
|
43
|
-
if (_ = P.charCodeAt(H), _ !== _ || _ === n)
|
|
44
|
-
|
|
45
|
-
else
|
|
46
|
-
if (
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
if (_ = P.charCodeAt(H), _ !== _ || _ === n)
|
|
51
|
+
Z = { start: Fu, contentStart: du || H, contentEnd: H, end: H }, tu.push(Z), _ === n && (Fu = H + 1, nu = 0, du = void 0, Z.end = Fu);
|
|
52
|
+
else if (nu !== void 0)
|
|
53
|
+
if (_ === r || _ === t)
|
|
54
|
+
nu += _ === r ? 1 : f - nu % f, nu > f && (nu = void 0, du = H);
|
|
55
|
+
else {
|
|
56
|
+
if (nu < f && Z && (Z.contentStart === Z.contentEnd || m(Y, w, W, [R, P.slice(H, h), !0])))
|
|
57
|
+
break;
|
|
58
|
+
nu = void 0, du = H;
|
|
59
|
+
}
|
|
49
60
|
H++;
|
|
50
61
|
}
|
|
51
|
-
for (H = -1, eu = tu.length; eu > 0 && (Z = tu[eu - 1], Z.contentStart === Z.contentEnd); )
|
|
52
|
-
|
|
62
|
+
for (H = -1, eu = tu.length; eu > 0 && (Z = tu[eu - 1], Z.contentStart === Z.contentEnd); )
|
|
63
|
+
eu--;
|
|
64
|
+
for (pu = R(P.slice(0, Z.contentEnd)); ++H < eu; )
|
|
65
|
+
Z = tu[H], K[X.line + H] = (K[X.line + H] || 0) + (Z.contentStart - Z.start), Q.push(P.slice(Z.contentStart, Z.end));
|
|
53
66
|
return yu = W.enterBlock(), hu = W.tokenizeBlock(Q.join(""), X), yu(), pu({ type: "footnoteDefinition", identifier: Du.toLowerCase(), label: Du, children: hu });
|
|
54
67
|
}
|
|
55
68
|
}
|
|
@@ -58,46 +71,62 @@ var Qt = Object.create, Ie = Object.defineProperty, ur = Object.getOwnPropertyDe
|
|
|
58
71
|
var W = P.length + 1, Y = 0, K, eu, H, Q;
|
|
59
72
|
if (P.charCodeAt(Y++) === a && P.charCodeAt(Y++) === s) {
|
|
60
73
|
for (eu = Y; Y < W; ) {
|
|
61
|
-
if (Q = P.charCodeAt(Y), Q !== Q || Q === n || Q === t || Q === r)
|
|
74
|
+
if (Q = P.charCodeAt(Y), Q !== Q || Q === n || Q === t || Q === r)
|
|
75
|
+
return;
|
|
62
76
|
if (Q === D) {
|
|
63
77
|
H = Y, Y++;
|
|
64
78
|
break;
|
|
65
79
|
}
|
|
66
80
|
Y++;
|
|
67
81
|
}
|
|
68
|
-
if (!(H === void 0 || eu === H))
|
|
82
|
+
if (!(H === void 0 || eu === H))
|
|
83
|
+
return G ? !0 : (K = P.slice(eu, H), R(P.slice(0, Y))({ type: "footnoteReference", identifier: K.toLowerCase(), label: K }));
|
|
69
84
|
}
|
|
70
85
|
}
|
|
71
86
|
function J(R, P, G) {
|
|
72
87
|
var W = this, Y = P.length + 1, K = 0, eu = 0, H, Q, Du, su, uu, _, X;
|
|
73
88
|
if (P.charCodeAt(K++) === s && P.charCodeAt(K++) === a) {
|
|
74
89
|
for (Du = K; K < Y; ) {
|
|
75
|
-
if (Q = P.charCodeAt(K), Q !== Q)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
if (Q = P.charCodeAt(K), Q !== Q)
|
|
91
|
+
return;
|
|
92
|
+
if (_ === void 0)
|
|
93
|
+
if (Q === l)
|
|
94
|
+
K += 2;
|
|
95
|
+
else if (Q === a)
|
|
96
|
+
eu++, K++;
|
|
97
|
+
else if (Q === D)
|
|
98
|
+
if (eu === 0) {
|
|
99
|
+
su = K, K++;
|
|
100
|
+
break;
|
|
101
|
+
} else
|
|
102
|
+
eu--, K++;
|
|
103
|
+
else if (Q === c) {
|
|
104
|
+
for (uu = K, _ = 1; P.charCodeAt(uu + _) === c; )
|
|
105
|
+
_++;
|
|
106
|
+
K += _;
|
|
107
|
+
} else
|
|
108
|
+
K++;
|
|
86
109
|
else if (Q === c) {
|
|
87
|
-
for (uu = K, X = 1; P.charCodeAt(uu + X) === c; )
|
|
110
|
+
for (uu = K, X = 1; P.charCodeAt(uu + X) === c; )
|
|
111
|
+
X++;
|
|
88
112
|
K += X, _ === X && (_ = void 0), X = void 0;
|
|
89
|
-
} else
|
|
113
|
+
} else
|
|
114
|
+
K++;
|
|
90
115
|
}
|
|
91
|
-
if (su !== void 0)
|
|
116
|
+
if (su !== void 0)
|
|
117
|
+
return G ? !0 : (H = R.now(), H.column += 2, H.offset += 2, R(P.slice(0, K))({ type: "footnote", children: W.tokenizeInline(P.slice(Du, su), H) }));
|
|
92
118
|
}
|
|
93
119
|
}
|
|
94
120
|
function j(R, P, G) {
|
|
95
121
|
var W = 0;
|
|
96
|
-
if (P.charCodeAt(W) === i && W++, P.charCodeAt(W) === a && P.charCodeAt(W + 1) !== s)
|
|
122
|
+
if (P.charCodeAt(W) === i && W++, P.charCodeAt(W) === a && P.charCodeAt(W + 1) !== s)
|
|
123
|
+
return I.call(this, R, P, G);
|
|
97
124
|
}
|
|
98
125
|
function O(R, P, G) {
|
|
99
|
-
for (var W = 0, Y = P.charCodeAt(W); Y === r || Y === t; )
|
|
100
|
-
|
|
126
|
+
for (var W = 0, Y = P.charCodeAt(W); Y === r || Y === t; )
|
|
127
|
+
Y = P.charCodeAt(++W);
|
|
128
|
+
if (Y === a && P.charCodeAt(W + 1) !== s)
|
|
129
|
+
return L.call(this, R, P, G);
|
|
101
130
|
}
|
|
102
131
|
function $(R, P) {
|
|
103
132
|
return R.indexOf("[", P);
|
|
@@ -119,7 +148,8 @@ var Qt = Object.create, Ie = Object.defineProperty, ur = Object.getOwnPropertyDe
|
|
|
119
148
|
for (var k = this.all(b).join(`
|
|
120
149
|
|
|
121
150
|
`).split(`
|
|
122
|
-
`), L = 0, I = k.length, x; ++L < I; )
|
|
151
|
+
`), L = 0, I = k.length, x; ++L < I; )
|
|
152
|
+
x = k[L], x !== "" && (k[L] = g + x);
|
|
123
153
|
return "[^" + (b.label || b.identifier) + "]: " + k.join(`
|
|
124
154
|
`);
|
|
125
155
|
}
|
|
@@ -128,7 +158,9 @@ var Qt = Object.create, Ie = Object.defineProperty, ur = Object.getOwnPropertyDe
|
|
|
128
158
|
d.splice(d.indexOf(C), 0, g);
|
|
129
159
|
}
|
|
130
160
|
function m(d, C, g, y) {
|
|
131
|
-
for (var w = d.length, T = -1; ++T < w; )
|
|
161
|
+
for (var w = d.length, T = -1; ++T < w; )
|
|
162
|
+
if (C[d[T][0]].apply(g, y))
|
|
163
|
+
return !0;
|
|
132
164
|
return !1;
|
|
133
165
|
}
|
|
134
166
|
}), xt = N((u) => {
|
|
@@ -156,7 +188,8 @@ var Qt = Object.create, Ie = Object.defineProperty, ur = Object.getOwnPropertyDe
|
|
|
156
188
|
function B(m, d, C) {
|
|
157
189
|
let g = d.length, y = !1, w = !1, T = 0, b, k, L, I, x, S, M;
|
|
158
190
|
if (d.charCodeAt(T) === l && (w = !0, T++), d.charCodeAt(T) === i) {
|
|
159
|
-
if (T++, w)
|
|
191
|
+
if (T++, w)
|
|
192
|
+
return C ? !0 : m(d.slice(0, T))({ type: "text", value: "$" });
|
|
160
193
|
if (d.charCodeAt(T) === i && (y = !0, T++), L = d.charCodeAt(T), !(L === r || L === n)) {
|
|
161
194
|
for (I = T; T < g; ) {
|
|
162
195
|
if (k = L, L = d.charCodeAt(T + 1), k === i) {
|
|
@@ -164,10 +197,12 @@ var Qt = Object.create, Ie = Object.defineProperty, ur = Object.getOwnPropertyDe
|
|
|
164
197
|
x = T - 1, T++, y && T++, S = T;
|
|
165
198
|
break;
|
|
166
199
|
}
|
|
167
|
-
} else
|
|
200
|
+
} else
|
|
201
|
+
k === l && (T++, L = d.charCodeAt(T + 1));
|
|
168
202
|
T++;
|
|
169
203
|
}
|
|
170
|
-
if (S !== void 0)
|
|
204
|
+
if (S !== void 0)
|
|
205
|
+
return C ? !0 : (M = d.slice(I, x + 1), m(d.slice(0, S))({ type: "inlineMath", value: M, data: { hName: "span", hProperties: { className: D.concat(y && E.inlineMathDouble ? [s] : []) }, hChildren: [{ type: "text", value: M }] } }));
|
|
171
206
|
}
|
|
172
207
|
}
|
|
173
208
|
}
|
|
@@ -195,23 +230,35 @@ var Qt = Object.create, Ie = Object.defineProperty, ur = Object.getOwnPropertyDe
|
|
|
195
230
|
function B(m, d, C) {
|
|
196
231
|
var g = d.length, y = 0;
|
|
197
232
|
let w, T, b, k, L, I, x, S, M, z, V;
|
|
198
|
-
for (; y < g && d.charCodeAt(y) === r; )
|
|
199
|
-
|
|
233
|
+
for (; y < g && d.charCodeAt(y) === r; )
|
|
234
|
+
y++;
|
|
235
|
+
for (L = y; y < g && d.charCodeAt(y) === i; )
|
|
236
|
+
y++;
|
|
200
237
|
if (I = y - L, !(I < l)) {
|
|
201
|
-
for (; y < g && d.charCodeAt(y) === r; )
|
|
238
|
+
for (; y < g && d.charCodeAt(y) === r; )
|
|
239
|
+
y++;
|
|
202
240
|
for (x = y; y < g; ) {
|
|
203
|
-
if (w = d.charCodeAt(y), w === i)
|
|
204
|
-
|
|
241
|
+
if (w = d.charCodeAt(y), w === i)
|
|
242
|
+
return;
|
|
243
|
+
if (w === n)
|
|
244
|
+
break;
|
|
205
245
|
y++;
|
|
206
246
|
}
|
|
207
247
|
if (d.charCodeAt(y) === n) {
|
|
208
|
-
if (C)
|
|
248
|
+
if (C)
|
|
249
|
+
return !0;
|
|
209
250
|
for (T = [], x !== y && T.push(d.slice(x, y)), y++, b = d.indexOf(o, y + 1), b = b === -1 ? g : b; y < g; ) {
|
|
210
|
-
for (S = !1, z = y, V = b, k = b, M = 0; k > z && d.charCodeAt(k - 1) === r; )
|
|
211
|
-
|
|
212
|
-
for (
|
|
213
|
-
|
|
214
|
-
|
|
251
|
+
for (S = !1, z = y, V = b, k = b, M = 0; k > z && d.charCodeAt(k - 1) === r; )
|
|
252
|
+
k--;
|
|
253
|
+
for (; k > z && d.charCodeAt(k - 1) === i; )
|
|
254
|
+
M++, k--;
|
|
255
|
+
for (I <= M && d.indexOf(a, z) === k && (S = !0, V = k); z <= V && z - y < L && d.charCodeAt(z) === r; )
|
|
256
|
+
z++;
|
|
257
|
+
if (S)
|
|
258
|
+
for (; V > z && d.charCodeAt(V - 1) === r; )
|
|
259
|
+
V--;
|
|
260
|
+
if ((!S || z !== V) && T.push(d.slice(z, V)), S)
|
|
261
|
+
break;
|
|
215
262
|
y = b + 1, b = d.indexOf(o, y + 1), b = b === -1 ? g : b;
|
|
216
263
|
}
|
|
217
264
|
return T = T.join(`
|
|
@@ -242,7 +289,8 @@ $$`;
|
|
|
242
289
|
function n() {
|
|
243
290
|
for (var r = {}, i = 0; i < arguments.length; i++) {
|
|
244
291
|
var o = arguments[i];
|
|
245
|
-
for (var a in o)
|
|
292
|
+
for (var a in o)
|
|
293
|
+
t.call(o, a) && (r[a] = o[a]);
|
|
246
294
|
}
|
|
247
295
|
return r;
|
|
248
296
|
}
|
|
@@ -263,7 +311,8 @@ $$`;
|
|
|
263
311
|
function r(i) {
|
|
264
312
|
var o, a, l;
|
|
265
313
|
n(s, i), n(D, s), o = s.prototype;
|
|
266
|
-
for (a in o)
|
|
314
|
+
for (a in o)
|
|
315
|
+
l = o[a], l && typeof l == "object" && (o[a] = "concat" in l ? l.concat() : t(l));
|
|
267
316
|
return s;
|
|
268
317
|
function D(c) {
|
|
269
318
|
return i.apply(this, c);
|
|
@@ -287,12 +336,15 @@ $$`;
|
|
|
287
336
|
}), hr = N((u, e) => {
|
|
288
337
|
e.exports = t;
|
|
289
338
|
function t(n) {
|
|
290
|
-
for (var r = String(n), i = [], o = /\r?\n|\r/g; o.exec(r); )
|
|
339
|
+
for (var r = String(n), i = [], o = /\r?\n|\r/g; o.exec(r); )
|
|
340
|
+
i.push(o.lastIndex);
|
|
291
341
|
return i.push(r.length + 1), { toPoint: a, toPosition: a, toOffset: l };
|
|
292
342
|
function a(D) {
|
|
293
343
|
var s = -1;
|
|
294
344
|
if (D > -1 && D < i[i.length - 1]) {
|
|
295
|
-
for (; ++s < i.length; )
|
|
345
|
+
for (; ++s < i.length; )
|
|
346
|
+
if (i[s] > D)
|
|
347
|
+
return { line: s + 1, column: D - (i[s - 1] || 0) + 1, offset: D };
|
|
296
348
|
}
|
|
297
349
|
return {};
|
|
298
350
|
}
|
|
@@ -307,7 +359,8 @@ $$`;
|
|
|
307
359
|
function n(r, i) {
|
|
308
360
|
return o;
|
|
309
361
|
function o(a) {
|
|
310
|
-
for (var l = 0, D = a.indexOf(t), s = r[i], c = [], f; D !== -1; )
|
|
362
|
+
for (var l = 0, D = a.indexOf(t), s = r[i], c = [], f; D !== -1; )
|
|
363
|
+
c.push(a.slice(l, D)), l = D + 1, f = a.charAt(l), (!f || s.indexOf(f) === -1) && c.push(t), D = a.indexOf(t, l + 1);
|
|
311
364
|
return c.push(a.slice(l)), c.join("");
|
|
312
365
|
}
|
|
313
366
|
}
|
|
@@ -361,19 +414,23 @@ $$`;
|
|
|
361
414
|
function J(U, R) {
|
|
362
415
|
var P = {}, G, W;
|
|
363
416
|
R || (R = {});
|
|
364
|
-
for (W in c)
|
|
417
|
+
for (W in c)
|
|
418
|
+
G = R[W], P[W] = G ?? c[W];
|
|
365
419
|
return (P.position.indent || P.position.start) && (P.indent = P.position.indent || [], P.position = P.position.start), j(U, P);
|
|
366
420
|
}
|
|
367
421
|
function j(U, R) {
|
|
368
422
|
var P = R.additional, G = R.nonTerminated, W = R.text, Y = R.reference, K = R.warning, eu = R.textContext, H = R.referenceContext, Q = R.warningContext, Du = R.position, su = R.indent || [], uu = U.length, _ = 0, X = -1, pu = Du.column || 1, yu = Du.line || 1, hu = "", Fu = [], nu, du, tu, Z, wu, au, ru, gu, De, ye, Ou, Yu, Ru, vu, We, Ku, ce, mu, ou;
|
|
369
|
-
for (typeof P == "string" && (P = P.charCodeAt(0)), Ku = Xu(), gu = K ? Zt : s, _--, uu++; ++_ < uu; )
|
|
370
|
-
if (
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
423
|
+
for (typeof P == "string" && (P = P.charCodeAt(0)), Ku = Xu(), gu = K ? Zt : s, _--, uu++; ++_ < uu; )
|
|
424
|
+
if (wu === h && (pu = su[X] || 1), wu = U.charCodeAt(_), wu === A) {
|
|
425
|
+
if (ru = U.charCodeAt(_ + 1), ru === f || ru === h || ru === p || ru === E || ru === A || ru === F || ru !== ru || P && ru === P) {
|
|
426
|
+
hu += D(wu), pu++;
|
|
427
|
+
continue;
|
|
428
|
+
}
|
|
429
|
+
for (Ru = _ + 1, Yu = Ru, ou = Ru, ru === m ? (ou = ++Yu, ru = U.charCodeAt(ou), ru === d || ru === C ? (vu = w, ou = ++Yu) : vu = T) : vu = y, nu = "", Ou = "", Z = "", We = k[vu], ou--; ++ou < uu && (ru = U.charCodeAt(ou), !!We(ru)); )
|
|
430
|
+
Z += D(ru), vu === y && l.call(t, Z) && (nu = Z, Ou = t[Z]);
|
|
431
|
+
tu = U.charCodeAt(ou) === v, tu && (ou++, du = vu === y ? a(Z) : !1, du && (nu = Z, Ou = du)), mu = 1 + ou - Ru, !tu && !G || (Z ? vu === y ? (tu && !Ou ? gu(M, 1) : (nu !== Z && (ou = Yu + nu.length, mu = 1 + ou - Yu, tu = !1), tu || (De = nu ? L : x, R.attribute ? (ru = U.charCodeAt(ou), ru === B ? (gu(De, mu), Ou = null) : o(ru) ? Ou = null : gu(De, mu)) : gu(De, mu))), au = Ou) : (tu || gu(I, mu), au = parseInt(Z, b[vu]), O(au) ? (gu(V, mu), au = D(g)) : au in n ? (gu(z, mu), au = n[au]) : (ye = "", $(au) && gu(z, mu), au > 65535 && (au -= 65536, ye += D(au >>> 10 | 55296), au = 56320 | au & 1023), au = ye + D(au))) : vu !== y && gu(S, mu)), au ? (He(), Ku = Xu(), _ = ou - 1, pu += ou - Ru + 1, Fu.push(au), ce = Xu(), ce.offset++, Y && Y.call(H, au, { start: Ku, end: ce }, U.slice(Ru - 1, ou)), Ku = ce) : (Z = U.slice(Ru - 1, ou), hu += Z, pu += Z.length, _ = ou - 1);
|
|
432
|
+
} else
|
|
433
|
+
wu === 10 && (yu++, X++, pu = 0), wu === wu ? (hu += D(wu), pu++) : He();
|
|
377
434
|
return Fu.join("");
|
|
378
435
|
function Xu() {
|
|
379
436
|
return { line: yu, column: pu, offset: _ + (Du.offset || 0) };
|
|
@@ -398,7 +455,8 @@ $$`;
|
|
|
398
455
|
function r(i) {
|
|
399
456
|
return a.raw = l, a;
|
|
400
457
|
function o(s) {
|
|
401
|
-
for (var c = i.offset, f = s.line, h = []; ++f && f in c; )
|
|
458
|
+
for (var c = i.offset, f = s.line, h = []; ++f && f in c; )
|
|
459
|
+
h.push((c[f] || 0) + 1);
|
|
402
460
|
return { start: s, indent: h };
|
|
403
461
|
}
|
|
404
462
|
function a(s, c, f) {
|
|
@@ -417,22 +475,26 @@ $$`;
|
|
|
417
475
|
return a;
|
|
418
476
|
function a(l, D) {
|
|
419
477
|
var s = this, c = s.offset, f = [], h = s[o + "Methods"], p = s[o + "Tokenizers"], E = D.line, A = D.column, v, F, B, m, d, C;
|
|
420
|
-
if (!l)
|
|
478
|
+
if (!l)
|
|
479
|
+
return f;
|
|
421
480
|
for (I.now = w, I.file = s.file, g(""); l; ) {
|
|
422
|
-
for (v = -1, F = h.length, d = !1; ++v < F && (m = h[v], B = p[m], !(B && (!B.onlyAtStart || s.atStart) && (!B.notInList || !s.inList) && (!B.notInBlock || !s.inBlock) && (!B.notInLink || !s.inLink) && (C = l.length, B.apply(s, [I, l]), d = C !== l.length, d))); )
|
|
481
|
+
for (v = -1, F = h.length, d = !1; ++v < F && (m = h[v], B = p[m], !(B && (!B.onlyAtStart || s.atStart) && (!B.notInList || !s.inList) && (!B.notInBlock || !s.inBlock) && (!B.notInLink || !s.inLink) && (C = l.length, B.apply(s, [I, l]), d = C !== l.length, d))); )
|
|
482
|
+
;
|
|
423
483
|
d || s.file.fail(new Error("Infinite loop"), I.now());
|
|
424
484
|
}
|
|
425
485
|
return s.eof = w(), f;
|
|
426
486
|
function g(x) {
|
|
427
487
|
for (var S = -1, M = x.indexOf(`
|
|
428
|
-
`); M !== -1; )
|
|
488
|
+
`); M !== -1; )
|
|
489
|
+
E++, S = M, M = x.indexOf(`
|
|
429
490
|
`, M + 1);
|
|
430
491
|
S === -1 ? A += x.length : A = x.length - S, E in c && (S !== -1 ? A += c[E] : A <= c[E] && (A = c[E] + 1));
|
|
431
492
|
}
|
|
432
493
|
function y() {
|
|
433
494
|
var x = [], S = E + 1;
|
|
434
495
|
return function() {
|
|
435
|
-
for (var M = E + 1; S < M; )
|
|
496
|
+
for (var M = E + 1; S < M; )
|
|
497
|
+
x.push((c[S] || 0) + 1), S++;
|
|
436
498
|
return x;
|
|
437
499
|
};
|
|
438
500
|
}
|
|
@@ -453,7 +515,8 @@ $$`;
|
|
|
453
515
|
var V = M.position, q = V ? V.start : x, J = [], j = V && V.end.line, O = x.line;
|
|
454
516
|
if (M.position = new T(q), V && z && V.indent) {
|
|
455
517
|
if (J = V.indent, j < O) {
|
|
456
|
-
for (; ++j < O; )
|
|
518
|
+
for (; ++j < O; )
|
|
519
|
+
J.push((c[j] || 0) + 1);
|
|
457
520
|
J.push(x.column);
|
|
458
521
|
}
|
|
459
522
|
z = J.concat(z);
|
|
@@ -510,11 +573,15 @@ $$`;
|
|
|
510
573
|
e.exports = i;
|
|
511
574
|
function i(o) {
|
|
512
575
|
var a = this, l = a.options, D, s;
|
|
513
|
-
if (o == null)
|
|
514
|
-
|
|
515
|
-
else
|
|
576
|
+
if (o == null)
|
|
577
|
+
o = {};
|
|
578
|
+
else if (typeof o == "object")
|
|
579
|
+
o = t(o);
|
|
580
|
+
else
|
|
581
|
+
throw new Error("Invalid value `" + o + "` for setting `options`");
|
|
516
582
|
for (D in r) {
|
|
517
|
-
if (s = o[D], s == null && (s = l[D]), D !== "blocks" && typeof s != "boolean" || D === "blocks" && typeof s != "object")
|
|
583
|
+
if (s = o[D], s == null && (s = l[D]), D !== "blocks" && typeof s != "boolean" || D === "blocks" && typeof s != "object")
|
|
584
|
+
throw new Error("Invalid value `" + s + "` for setting `options." + D + "`");
|
|
518
585
|
o[D] = s;
|
|
519
586
|
}
|
|
520
587
|
return a.options = o, a.escape = n(o), a;
|
|
@@ -522,25 +589,34 @@ $$`;
|
|
|
522
589
|
}), wr = N((u, e) => {
|
|
523
590
|
e.exports = t;
|
|
524
591
|
function t(a) {
|
|
525
|
-
if (a == null)
|
|
526
|
-
|
|
527
|
-
if (typeof a == "
|
|
528
|
-
|
|
592
|
+
if (a == null)
|
|
593
|
+
return o;
|
|
594
|
+
if (typeof a == "string")
|
|
595
|
+
return i(a);
|
|
596
|
+
if (typeof a == "object")
|
|
597
|
+
return "length" in a ? r(a) : n(a);
|
|
598
|
+
if (typeof a == "function")
|
|
599
|
+
return a;
|
|
529
600
|
throw new Error("Expected function, string, or object as test");
|
|
530
601
|
}
|
|
531
602
|
function n(a) {
|
|
532
603
|
return l;
|
|
533
604
|
function l(D) {
|
|
534
605
|
var s;
|
|
535
|
-
for (s in a)
|
|
606
|
+
for (s in a)
|
|
607
|
+
if (D[s] !== a[s])
|
|
608
|
+
return !1;
|
|
536
609
|
return !0;
|
|
537
610
|
}
|
|
538
611
|
}
|
|
539
612
|
function r(a) {
|
|
540
|
-
for (var l = [], D = -1; ++D < a.length; )
|
|
613
|
+
for (var l = [], D = -1; ++D < a.length; )
|
|
614
|
+
l[D] = t(a[D]);
|
|
541
615
|
return s;
|
|
542
616
|
function s() {
|
|
543
|
-
for (var c = -1; ++c < l.length; )
|
|
617
|
+
for (var c = -1; ++c < l.length; )
|
|
618
|
+
if (l[c].apply(this, arguments))
|
|
619
|
+
return !0;
|
|
544
620
|
return !1;
|
|
545
621
|
}
|
|
546
622
|
}
|
|
@@ -570,11 +646,14 @@ $$`;
|
|
|
570
646
|
return typeof B.type == "string" && (m = typeof B.tagName == "string" ? B.tagName : typeof B.name == "string" ? B.name : void 0, d.displayName = "node (" + n(B.type + (m ? "<" + m + ">" : "")) + ")"), d;
|
|
571
647
|
function d() {
|
|
572
648
|
var C = F.concat(A), g = [], y, w;
|
|
573
|
-
if ((!s || p(A, v, F[F.length - 1] || null)) && (g = l(c(A, F)), g[0] === o))
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
w =
|
|
577
|
-
|
|
649
|
+
if ((!s || p(A, v, F[F.length - 1] || null)) && (g = l(c(A, F)), g[0] === o))
|
|
650
|
+
return g;
|
|
651
|
+
if (A.children && g[0] !== i)
|
|
652
|
+
for (w = (f ? A.children.length : -1) + h; w > -1 && w < A.children.length; ) {
|
|
653
|
+
if (y = E(A.children[w], w, C)(), y[0] === o)
|
|
654
|
+
return y;
|
|
655
|
+
w = typeof y[1] == "number" ? y[1] : w + h;
|
|
656
|
+
}
|
|
578
657
|
return g;
|
|
579
658
|
}
|
|
580
659
|
}
|
|
@@ -618,9 +697,11 @@ $$`;
|
|
|
618
697
|
var t = /^[ \t]*(\n|$)/;
|
|
619
698
|
e.exports = n;
|
|
620
699
|
function n(r, i, o) {
|
|
621
|
-
for (var a, l = "", D = 0, s = i.length; D < s && (a = t.exec(i.slice(D)), a != null); )
|
|
700
|
+
for (var a, l = "", D = 0, s = i.length; D < s && (a = t.exec(i.slice(D)), a != null); )
|
|
701
|
+
D += a[0].length, l += a[0];
|
|
622
702
|
if (l !== "") {
|
|
623
|
-
if (o)
|
|
703
|
+
if (o)
|
|
704
|
+
return !0;
|
|
624
705
|
r(l);
|
|
625
706
|
}
|
|
626
707
|
}
|
|
@@ -628,13 +709,19 @@ $$`;
|
|
|
628
709
|
var t = "", n;
|
|
629
710
|
e.exports = r;
|
|
630
711
|
function r(i, o) {
|
|
631
|
-
if (typeof i != "string")
|
|
632
|
-
|
|
633
|
-
if (o ===
|
|
712
|
+
if (typeof i != "string")
|
|
713
|
+
throw new TypeError("expected a string");
|
|
714
|
+
if (o === 1)
|
|
715
|
+
return i;
|
|
716
|
+
if (o === 2)
|
|
717
|
+
return i + i;
|
|
634
718
|
var a = i.length * o;
|
|
635
|
-
if (n !== i || typeof n > "u")
|
|
636
|
-
|
|
637
|
-
|
|
719
|
+
if (n !== i || typeof n > "u")
|
|
720
|
+
n = i, t = "";
|
|
721
|
+
else if (t.length >= a)
|
|
722
|
+
return t.substr(0, a);
|
|
723
|
+
for (; a > t.length && o > 1; )
|
|
724
|
+
o & 1 && (t += i), o >>= 1, i += i;
|
|
638
725
|
return t += i, t = t.substr(0, a), t;
|
|
639
726
|
}
|
|
640
727
|
}), bt = N((u, e) => {
|
|
@@ -648,22 +735,31 @@ $$`;
|
|
|
648
735
|
var r = `
|
|
649
736
|
`, i = " ", o = " ", a = 4, l = t(o, a);
|
|
650
737
|
function D(s, c, f) {
|
|
651
|
-
for (var h = -1, p = c.length, E = "", A = "", v = "", F = "", B, m, d; ++h < p; )
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
738
|
+
for (var h = -1, p = c.length, E = "", A = "", v = "", F = "", B, m, d; ++h < p; )
|
|
739
|
+
if (B = c.charAt(h), d)
|
|
740
|
+
if (d = !1, E += v, A += F, v = "", F = "", B === r)
|
|
741
|
+
v = B, F = B;
|
|
742
|
+
else
|
|
743
|
+
for (E += B, A += B; ++h < p; ) {
|
|
744
|
+
if (B = c.charAt(h), !B || B === r) {
|
|
745
|
+
F = B, v = B;
|
|
746
|
+
break;
|
|
747
|
+
}
|
|
748
|
+
E += B, A += B;
|
|
749
|
+
}
|
|
750
|
+
else if (B === o && c.charAt(h + 1) === B && c.charAt(h + 2) === B && c.charAt(h + 3) === B)
|
|
751
|
+
v += l, h += 3, d = !0;
|
|
752
|
+
else if (B === i)
|
|
753
|
+
v += B, d = !0;
|
|
754
|
+
else {
|
|
755
|
+
for (m = ""; B === i || B === o; )
|
|
756
|
+
m += B, B = c.charAt(++h);
|
|
757
|
+
if (B !== r)
|
|
758
|
+
break;
|
|
759
|
+
v += m + B, F += B;
|
|
656
760
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
else if (B === o && c.charAt(h + 1) === B && c.charAt(h + 2) === B && c.charAt(h + 3) === B) v += l, h += 3, d = !0;
|
|
660
|
-
else if (B === i) v += B, d = !0;
|
|
661
|
-
else {
|
|
662
|
-
for (m = ""; B === i || B === o; ) m += B, B = c.charAt(++h);
|
|
663
|
-
if (B !== r) break;
|
|
664
|
-
v += m + B, F += B;
|
|
665
|
-
}
|
|
666
|
-
if (A) return f ? !0 : s(E)({ type: "code", lang: null, meta: null, value: n(A) });
|
|
761
|
+
if (A)
|
|
762
|
+
return f ? !0 : s(E)({ type: "code", lang: null, meta: null, value: n(A) });
|
|
667
763
|
}
|
|
668
764
|
}), Nr = N((u, e) => {
|
|
669
765
|
e.exports = D;
|
|
@@ -672,34 +768,45 @@ $$`;
|
|
|
672
768
|
function D(s, c, f) {
|
|
673
769
|
var h = this, p = h.options.gfm, E = c.length + 1, A = 0, v = "", F, B, m, d, C, g, y, w, T, b, k, L, I;
|
|
674
770
|
if (p) {
|
|
675
|
-
for (; A < E && (m = c.charAt(A), !(m !== r && m !== n)); )
|
|
771
|
+
for (; A < E && (m = c.charAt(A), !(m !== r && m !== n)); )
|
|
772
|
+
v += m, A++;
|
|
676
773
|
if (L = A, m = c.charAt(A), !(m !== i && m !== o)) {
|
|
677
|
-
for (A++, B = m, F = 1, v += m; A < E && (m = c.charAt(A), m === B); )
|
|
774
|
+
for (A++, B = m, F = 1, v += m; A < E && (m = c.charAt(A), m === B); )
|
|
775
|
+
v += m, F++, A++;
|
|
678
776
|
if (!(F < a)) {
|
|
679
|
-
for (; A < E && (m = c.charAt(A), !(m !== r && m !== n)); )
|
|
680
|
-
|
|
777
|
+
for (; A < E && (m = c.charAt(A), !(m !== r && m !== n)); )
|
|
778
|
+
v += m, A++;
|
|
779
|
+
for (d = "", y = ""; A < E && (m = c.charAt(A), !(m === t || B === o && m === B)); )
|
|
780
|
+
m === r || m === n ? y += m : (d += y + m, y = ""), A++;
|
|
681
781
|
if (m = c.charAt(A), !(m && m !== t)) {
|
|
682
|
-
if (f)
|
|
782
|
+
if (f)
|
|
783
|
+
return !0;
|
|
683
784
|
I = s.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 = "", T = "";
|
|
684
785
|
for (var x = !0; A < E; ) {
|
|
685
786
|
if (m = c.charAt(A), w += b, T += k, b = "", k = "", m !== t) {
|
|
686
787
|
w += m, k += m, A++;
|
|
687
788
|
continue;
|
|
688
789
|
}
|
|
689
|
-
for (x ? (v += m, x = !1) : (b += m, k += m), y = "", A++; A < E && (m = c.charAt(A), m === r); )
|
|
790
|
+
for (x ? (v += m, x = !1) : (b += m, k += m), y = "", A++; A < E && (m = c.charAt(A), m === r); )
|
|
791
|
+
y += m, A++;
|
|
690
792
|
if (b += y, k += y.slice(L), !(y.length >= l)) {
|
|
691
|
-
for (y = ""; A < E && (m = c.charAt(A), m === B); )
|
|
793
|
+
for (y = ""; A < E && (m = c.charAt(A), m === B); )
|
|
794
|
+
y += m, A++;
|
|
692
795
|
if (b += y, k += y, !(y.length < F)) {
|
|
693
|
-
for (y = ""; A < E && (m = c.charAt(A), !(m !== r && m !== n)); )
|
|
694
|
-
|
|
796
|
+
for (y = ""; A < E && (m = c.charAt(A), !(m !== r && m !== n)); )
|
|
797
|
+
b += m, k += m, A++;
|
|
798
|
+
if (!m || m === t)
|
|
799
|
+
break;
|
|
695
800
|
}
|
|
696
801
|
}
|
|
697
802
|
}
|
|
698
|
-
for (v += w + b, A = -1, E = d.length; ++A < E; )
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
803
|
+
for (v += w + b, A = -1, E = d.length; ++A < E; )
|
|
804
|
+
if (m = d.charAt(A), m === r || m === n)
|
|
805
|
+
C || (C = d.slice(0, A));
|
|
806
|
+
else if (C) {
|
|
807
|
+
g = d.slice(A);
|
|
808
|
+
break;
|
|
809
|
+
}
|
|
703
810
|
return s(v)({ type: "code", lang: C || d || null, meta: g || null, value: T });
|
|
704
811
|
}
|
|
705
812
|
}
|
|
@@ -714,14 +821,18 @@ $$`;
|
|
|
714
821
|
u.left = function(n) {
|
|
715
822
|
return n.trimLeft ? n.trimLeft() : n.replace(/^\s\s*/, "");
|
|
716
823
|
}, u.right = function(n) {
|
|
717
|
-
if (n.trimRight)
|
|
718
|
-
|
|
824
|
+
if (n.trimRight)
|
|
825
|
+
return n.trimRight();
|
|
826
|
+
for (var r = /\s/, i = n.length; r.test(n.charAt(--i)); )
|
|
827
|
+
;
|
|
719
828
|
return n.slice(0, i + 1);
|
|
720
829
|
};
|
|
721
830
|
}), $e = N((u, e) => {
|
|
722
831
|
e.exports = t;
|
|
723
832
|
function t(n, r, i, o) {
|
|
724
|
-
for (var a = n.length, l = -1, D, s; ++l < a; )
|
|
833
|
+
for (var a = n.length, l = -1, D, s; ++l < a; )
|
|
834
|
+
if (D = n[l], s = D[1] || {}, !(s.pedantic !== void 0 && s.pedantic !== i.options.pedantic) && !(s.commonmark !== void 0 && s.commonmark !== i.options.commonmark) && r[D[0]].apply(i, o))
|
|
835
|
+
return !0;
|
|
725
836
|
return !1;
|
|
726
837
|
}
|
|
727
838
|
}), Ir = N((u, e) => {
|
|
@@ -730,19 +841,24 @@ $$`;
|
|
|
730
841
|
var r = `
|
|
731
842
|
`, i = " ", o = " ", a = ">";
|
|
732
843
|
function l(D, s, c) {
|
|
733
|
-
for (var f = this, h = f.offset, p = f.blockTokenizers, E = f.interruptBlockquote, A = D.now(), v = A.line, F = s.length, B = [], m = [], d = [], C, g = 0, y, w, T, b, k, L, I, x; g < F && (y = s.charAt(g), !(y !== o && y !== i)); )
|
|
844
|
+
for (var f = this, h = f.offset, p = f.blockTokenizers, E = f.interruptBlockquote, A = D.now(), v = A.line, F = s.length, B = [], m = [], d = [], C, g = 0, y, w, T, b, k, L, I, x; g < F && (y = s.charAt(g), !(y !== o && y !== i)); )
|
|
845
|
+
g++;
|
|
734
846
|
if (s.charAt(g) === a) {
|
|
735
|
-
if (c)
|
|
847
|
+
if (c)
|
|
848
|
+
return !0;
|
|
736
849
|
for (g = 0; g < F; ) {
|
|
737
|
-
for (T = s.indexOf(r, g), L = g, I = !1, T === -1 && (T = F); g < F && (y = s.charAt(g), !(y !== o && y !== i)); )
|
|
850
|
+
for (T = s.indexOf(r, g), L = g, I = !1, T === -1 && (T = F); g < F && (y = s.charAt(g), !(y !== o && y !== i)); )
|
|
851
|
+
g++;
|
|
738
852
|
if (s.charAt(g) === a ? (g++, I = !0, s.charAt(g) === o && g++) : g = L, b = s.slice(g, T), !I && !t(b)) {
|
|
739
853
|
g = L;
|
|
740
854
|
break;
|
|
741
855
|
}
|
|
742
|
-
if (!I && (w = s.slice(g), n(E, p, f, [D, w, !0])))
|
|
856
|
+
if (!I && (w = s.slice(g), n(E, p, f, [D, w, !0])))
|
|
857
|
+
break;
|
|
743
858
|
k = L === g ? b : s.slice(L, T), d.push(g - L), B.push(k), m.push(b), g = T + 1;
|
|
744
859
|
}
|
|
745
|
-
for (g = -1, F = d.length, C = D(B.join(r)); ++g < F; )
|
|
860
|
+
for (g = -1, F = d.length, C = D(B.join(r)); ++g < F; )
|
|
861
|
+
h[v] = (h[v] || 0) + d[g], v++;
|
|
746
862
|
return x = f.enterBlock(), m = f.tokenizeBlock(m.join(r), A), x(), C({ type: "blockquote", children: m });
|
|
747
863
|
}
|
|
748
864
|
}
|
|
@@ -774,19 +890,23 @@ $$`;
|
|
|
774
890
|
B += F;
|
|
775
891
|
}
|
|
776
892
|
if (!(!f && B.length === 0 && F && F !== t)) {
|
|
777
|
-
if (s)
|
|
893
|
+
if (s)
|
|
894
|
+
return !0;
|
|
778
895
|
for (A += B, B = "", v = ""; ++p < h && (F = D.charAt(p), !(!F || F === t)); ) {
|
|
779
896
|
if (F !== r && F !== n && F !== i) {
|
|
780
897
|
v += B + F, B = "";
|
|
781
898
|
continue;
|
|
782
899
|
}
|
|
783
|
-
for (; F === r || F === n; )
|
|
900
|
+
for (; F === r || F === n; )
|
|
901
|
+
B += F, F = D.charAt(++p);
|
|
784
902
|
if (!f && v && !B && F === i) {
|
|
785
903
|
v += F;
|
|
786
904
|
continue;
|
|
787
905
|
}
|
|
788
|
-
for (; F === i; )
|
|
789
|
-
|
|
906
|
+
for (; F === i; )
|
|
907
|
+
B += F, F = D.charAt(++p);
|
|
908
|
+
for (; F === r || F === n; )
|
|
909
|
+
B += F, F = D.charAt(++p);
|
|
790
910
|
p--;
|
|
791
911
|
}
|
|
792
912
|
return E.column += A.length, E.offset += A.length, A += v + B, l(A)({ type: "heading", depth: m, children: c.tokenizeInline(v, E) });
|
|
@@ -798,17 +918,24 @@ $$`;
|
|
|
798
918
|
var t = " ", n = `
|
|
799
919
|
`, r = " ", i = "*", o = "-", a = "_", l = 3;
|
|
800
920
|
function D(s, c, f) {
|
|
801
|
-
for (var h = -1, p = c.length + 1, E = "", A, v, F, B; ++h < p && (A = c.charAt(h), !(A !== t && A !== r)); )
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
921
|
+
for (var h = -1, p = c.length + 1, E = "", A, v, F, B; ++h < p && (A = c.charAt(h), !(A !== t && A !== r)); )
|
|
922
|
+
E += A;
|
|
923
|
+
if (!(A !== i && A !== o && A !== a))
|
|
924
|
+
for (v = A, E += A, F = 1, B = ""; ++h < p; )
|
|
925
|
+
if (A = c.charAt(h), A === v)
|
|
926
|
+
F++, E += B + v, B = "";
|
|
927
|
+
else if (A === r)
|
|
928
|
+
B += A;
|
|
929
|
+
else
|
|
930
|
+
return F >= l && (!A || A === n) ? (E += B, f ? !0 : s(E)({ type: "thematicBreak" })) : void 0;
|
|
805
931
|
}
|
|
806
932
|
}), yt = N((u, e) => {
|
|
807
933
|
e.exports = o;
|
|
808
934
|
var t = " ", n = " ", r = 1, i = 4;
|
|
809
935
|
function o(a) {
|
|
810
936
|
for (var l = 0, D = 0, s = a.charAt(l), c = {}, f, h = 0; s === t || s === n; ) {
|
|
811
|
-
for (f = s === t ? i : r, D += f, f > 1 && (D = Math.floor(D / f) * f); h < D; )
|
|
937
|
+
for (f = s === t ? i : r, D += f, f > 1 && (D = Math.floor(D / f) * f); h < D; )
|
|
938
|
+
c[++h] = l;
|
|
812
939
|
s = a.charAt(++l);
|
|
813
940
|
}
|
|
814
941
|
return { indent: D, stops: c };
|
|
@@ -820,15 +947,20 @@ $$`;
|
|
|
820
947
|
`, o = " ", a = "!";
|
|
821
948
|
function l(D, s) {
|
|
822
949
|
var c = D.split(i), f = c.length + 1, h = 1 / 0, p = [], E, A, v;
|
|
823
|
-
for (c.unshift(n(o, s) + a); f--; )
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
950
|
+
for (c.unshift(n(o, s) + a); f--; )
|
|
951
|
+
if (A = r(c[f]), p[f] = A.stops, t(c[f]).length !== 0)
|
|
952
|
+
if (A.indent)
|
|
953
|
+
A.indent > 0 && A.indent < h && (h = A.indent);
|
|
954
|
+
else {
|
|
955
|
+
h = 1 / 0;
|
|
956
|
+
break;
|
|
957
|
+
}
|
|
958
|
+
if (h !== 1 / 0)
|
|
959
|
+
for (f = c.length; f--; ) {
|
|
960
|
+
for (v = p[f], E = h; E && !(E in v); )
|
|
961
|
+
E--;
|
|
962
|
+
c[f] = c[f].slice(v[E] + 1);
|
|
963
|
+
}
|
|
832
964
|
return c.shift(), c.join(i);
|
|
833
965
|
}
|
|
834
966
|
}), zr = N((u, e) => {
|
|
@@ -837,51 +969,73 @@ $$`;
|
|
|
837
969
|
var l = "*", D = "_", s = "+", c = "-", f = ".", h = " ", p = `
|
|
838
970
|
`, E = " ", A = ")", v = "x", F = 4, B = /\n\n(?!\s*$)/, m = /^\[([ X\tx])][ \t]/, d = /^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/, C = /^([ \t]*)([*+-]|\d+[.)])([ \t]+)/, g = /^( {1,4}|\t)?/gm;
|
|
839
971
|
function y(k, L, I) {
|
|
840
|
-
for (var x = this, S = x.options.commonmark, M = x.options.pedantic, z = x.blockTokenizers, V = x.interruptList, q = 0, J = L.length, j = null, O, $, U, R, P, G, W, Y, K, eu, H, Q, Du, su, uu, _, X, pu, yu, hu = !1, Fu, nu, du, tu; q < J && (R = L.charAt(q), !(R !== E && R !== h)); )
|
|
841
|
-
|
|
972
|
+
for (var x = this, S = x.options.commonmark, M = x.options.pedantic, z = x.blockTokenizers, V = x.interruptList, q = 0, J = L.length, j = null, O, $, U, R, P, G, W, Y, K, eu, H, Q, Du, su, uu, _, X, pu, yu, hu = !1, Fu, nu, du, tu; q < J && (R = L.charAt(q), !(R !== E && R !== h)); )
|
|
973
|
+
q++;
|
|
974
|
+
if (R = L.charAt(q), R === l || R === s || R === c)
|
|
975
|
+
P = R, U = !1;
|
|
842
976
|
else {
|
|
843
|
-
for (U = !0, $ = ""; q < J && (R = L.charAt(q), !!r(R)); )
|
|
844
|
-
|
|
977
|
+
for (U = !0, $ = ""; q < J && (R = L.charAt(q), !!r(R)); )
|
|
978
|
+
$ += R, q++;
|
|
979
|
+
if (R = L.charAt(q), !$ || !(R === f || S && R === A) || I && $ !== "1")
|
|
980
|
+
return;
|
|
845
981
|
j = parseInt($, 10), P = R;
|
|
846
982
|
}
|
|
847
983
|
if (R = L.charAt(++q), !(R !== h && R !== E && (M || R !== p && R !== ""))) {
|
|
848
|
-
if (I)
|
|
984
|
+
if (I)
|
|
985
|
+
return !0;
|
|
849
986
|
for (q = 0, su = [], uu = [], _ = []; q < J; ) {
|
|
850
987
|
for (G = L.indexOf(p, q), W = q, Y = !1, tu = !1, G === -1 && (G = J), O = 0; q < J; ) {
|
|
851
|
-
if (R = L.charAt(q), R === E)
|
|
852
|
-
|
|
853
|
-
else
|
|
988
|
+
if (R = L.charAt(q), R === E)
|
|
989
|
+
O += F - O % F;
|
|
990
|
+
else if (R === h)
|
|
991
|
+
O++;
|
|
992
|
+
else
|
|
993
|
+
break;
|
|
854
994
|
q++;
|
|
855
995
|
}
|
|
856
996
|
if (X && O >= X.indent && (tu = !0), R = L.charAt(q), K = null, !tu) {
|
|
857
|
-
if (R === l || R === s || R === c)
|
|
997
|
+
if (R === l || R === s || R === c)
|
|
998
|
+
K = R, q++, O++;
|
|
858
999
|
else {
|
|
859
|
-
for ($ = ""; q < J && (R = L.charAt(q), !!r(R)); )
|
|
1000
|
+
for ($ = ""; q < J && (R = L.charAt(q), !!r(R)); )
|
|
1001
|
+
$ += R, q++;
|
|
860
1002
|
R = L.charAt(q), q++, $ && (R === f || S && R === A) && (K = R, O += $.length + 1);
|
|
861
1003
|
}
|
|
862
|
-
if (K)
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
1004
|
+
if (K)
|
|
1005
|
+
if (R = L.charAt(q), R === E)
|
|
1006
|
+
O += F - O % F, q++;
|
|
1007
|
+
else if (R === h) {
|
|
1008
|
+
for (du = q + F; q < du && L.charAt(q) === h; )
|
|
1009
|
+
q++, O++;
|
|
1010
|
+
q === du && L.charAt(q) === h && (q -= F - 1, O -= F - 1);
|
|
1011
|
+
} else
|
|
1012
|
+
R !== p && R !== "" && (K = null);
|
|
867
1013
|
}
|
|
868
1014
|
if (K) {
|
|
869
|
-
if (!M && P !== K)
|
|
1015
|
+
if (!M && P !== K)
|
|
1016
|
+
break;
|
|
870
1017
|
Y = !0;
|
|
871
|
-
} else
|
|
872
|
-
|
|
873
|
-
if (
|
|
874
|
-
|
|
1018
|
+
} else
|
|
1019
|
+
!S && !tu && L.charAt(W) === h ? tu = !0 : S && X && (tu = O >= X.indent || O > F), Y = !1, q = W;
|
|
1020
|
+
if (H = L.slice(W, G), eu = W === q ? H : L.slice(q, G), (K === l || K === D || K === c) && z.thematicBreak.call(x, k, H, !0))
|
|
1021
|
+
break;
|
|
1022
|
+
if (Q = Du, Du = !Y && !t(eu).length, tu && X)
|
|
1023
|
+
X.value = X.value.concat(_, H), uu = uu.concat(_, H), _ = [];
|
|
1024
|
+
else if (Y)
|
|
1025
|
+
_.length !== 0 && (hu = !0, X.value.push(""), X.trail = _.concat()), X = { value: [H], indent: O, trail: [] }, su.push(X), uu = uu.concat(_, H), _ = [];
|
|
875
1026
|
else if (Du) {
|
|
876
|
-
if (Q && !S)
|
|
1027
|
+
if (Q && !S)
|
|
1028
|
+
break;
|
|
877
1029
|
_.push(H);
|
|
878
1030
|
} else {
|
|
879
|
-
if (Q || a(V, z, x, [k, H, !0]))
|
|
1031
|
+
if (Q || a(V, z, x, [k, H, !0]))
|
|
1032
|
+
break;
|
|
880
1033
|
X.value = X.value.concat(_, H), uu = uu.concat(_, H), _ = [];
|
|
881
1034
|
}
|
|
882
1035
|
q = G + 1;
|
|
883
1036
|
}
|
|
884
|
-
for (Fu = k(uu.join(p)).reset({ type: "list", ordered: U, start: j, spread: hu, children: [] }), pu = x.enterList(), yu = x.enterBlock(), q = -1, J = su.length; ++q < J; )
|
|
1037
|
+
for (Fu = k(uu.join(p)).reset({ type: "list", ordered: U, start: j, spread: hu, children: [] }), pu = x.enterList(), yu = x.enterBlock(), q = -1, J = su.length; ++q < J; )
|
|
1038
|
+
X = su[q].value.join(p), nu = k.now(), k(X)(w(x, X, nu), Fu), X = su[q].trail.join(p), q !== J - 1 && (X += p), k(X);
|
|
885
1039
|
return pu(), yu(), Fu;
|
|
886
1040
|
}
|
|
887
1041
|
}
|
|
@@ -898,7 +1052,8 @@ $$`;
|
|
|
898
1052
|
}
|
|
899
1053
|
function b(k, L, I) {
|
|
900
1054
|
var x = k.offset, S = I.line, M, z, V, q, J, j, O;
|
|
901
|
-
for (L = L.replace(d, $), q = L.split(p), J = o(L, i(M).indent).split(p), J[0] = V, x[S] = (x[S] || 0) + z.length, S++, j = 0, O = q.length; ++j < O; )
|
|
1055
|
+
for (L = L.replace(d, $), q = L.split(p), J = o(L, i(M).indent).split(p), J[0] = V, x[S] = (x[S] || 0) + z.length, S++, j = 0, O = q.length; ++j < O; )
|
|
1056
|
+
x[S] = (x[S] || 0) + q[j].length - J[j].length, S++;
|
|
902
1057
|
return J.join(p);
|
|
903
1058
|
function $(U, R, P, G, W) {
|
|
904
1059
|
return z = R + P + G, V = W, Number(P) < 10 && z.length % 2 === 1 && (P = h + P), M = R + n(h, P.length) + G, M + V;
|
|
@@ -926,7 +1081,8 @@ $$`;
|
|
|
926
1081
|
if (E.column += F.length, E.offset += F.length, F += B + m, d = f.charAt(++v), C = f.charAt(++v), !(d !== t || C !== i && C !== o)) {
|
|
927
1082
|
for (F += d, m = C, g = C === i ? l : D; ++v < A; ) {
|
|
928
1083
|
if (d = f.charAt(v), d !== C) {
|
|
929
|
-
if (d !== t)
|
|
1084
|
+
if (d !== t)
|
|
1085
|
+
return;
|
|
930
1086
|
v--;
|
|
931
1087
|
break;
|
|
932
1088
|
}
|
|
@@ -944,21 +1100,25 @@ $$`;
|
|
|
944
1100
|
var n = " ", r = " ", i = `
|
|
945
1101
|
`, o = "<", a = /^<(script|pre|style)(?=(\s|>|$))/i, l = /<\/(script|pre|style)>/i, D = /^<!--/, s = /-->/, c = /^<\?/, f = /\?>/, h = /^<![A-Za-z]/, p = />/, E = /^<!\[CDATA\[/, A = /]]>/, v = /^$/, F = new RegExp(t.source + "\\s*$");
|
|
946
1102
|
function B(m, d, C) {
|
|
947
|
-
for (var g = this, y = g.options.blocks.join("|"), w = new RegExp("^</?(" + y + ")(?=(\\s|/?>|$))", "i"), T = d.length, b = 0, k, L, I, x, S, M, z, V = [[a, l, !0], [D, s, !0], [c, f, !0], [h, p, !0], [E, A, !0], [w, v, !0], [F, v, !1]]; b < T && (x = d.charAt(b), !(x !== n && x !== r)); )
|
|
1103
|
+
for (var g = this, y = g.options.blocks.join("|"), w = new RegExp("^</?(" + y + ")(?=(\\s|/?>|$))", "i"), T = d.length, b = 0, k, L, I, x, S, M, z, V = [[a, l, !0], [D, s, !0], [c, f, !0], [h, p, !0], [E, A, !0], [w, v, !0], [F, v, !1]]; b < T && (x = d.charAt(b), !(x !== n && x !== r)); )
|
|
1104
|
+
b++;
|
|
948
1105
|
if (d.charAt(b) === o) {
|
|
949
|
-
for (k = d.indexOf(i, b + 1), k = k === -1 ? T : k, L = d.slice(b, k), I = -1, S = V.length; ++I < S; )
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
1106
|
+
for (k = d.indexOf(i, b + 1), k = k === -1 ? T : k, L = d.slice(b, k), I = -1, S = V.length; ++I < S; )
|
|
1107
|
+
if (V[I][0].test(L)) {
|
|
1108
|
+
M = V[I];
|
|
1109
|
+
break;
|
|
1110
|
+
}
|
|
953
1111
|
if (M) {
|
|
954
|
-
if (C)
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1112
|
+
if (C)
|
|
1113
|
+
return M[2];
|
|
1114
|
+
if (b = k, !M[1].test(L))
|
|
1115
|
+
for (; b < T; ) {
|
|
1116
|
+
if (k = d.indexOf(i, b + 1), k = k === -1 ? T : k, L = d.slice(b + 1, k), M[1].test(L)) {
|
|
1117
|
+
L && (b = k);
|
|
1118
|
+
break;
|
|
1119
|
+
}
|
|
1120
|
+
b = k;
|
|
959
1121
|
}
|
|
960
|
-
b = k;
|
|
961
|
-
}
|
|
962
1122
|
return z = d.slice(0, b), m(z)({ type: "html", value: z });
|
|
963
1123
|
}
|
|
964
1124
|
}
|
|
@@ -981,39 +1141,53 @@ $$`;
|
|
|
981
1141
|
var r = '"', i = "'", o = "\\", a = `
|
|
982
1142
|
`, l = " ", D = " ", s = "[", c = "]", f = "(", h = ")", p = ":", E = "<", A = ">";
|
|
983
1143
|
function v(m, d, C) {
|
|
984
|
-
for (var g = this, y = g.options.commonmark, w = 0, T = d.length, b = "", k, L, I, x, S, M, z, V; w < T && (x = d.charAt(w), !(x !== D && x !== l)); )
|
|
1144
|
+
for (var g = this, y = g.options.commonmark, w = 0, T = d.length, b = "", k, L, I, x, S, M, z, V; w < T && (x = d.charAt(w), !(x !== D && x !== l)); )
|
|
1145
|
+
b += x, w++;
|
|
985
1146
|
if (x = d.charAt(w), x === s) {
|
|
986
|
-
for (w++, b += x, I = ""; w < T && (x = d.charAt(w), x !== c); )
|
|
1147
|
+
for (w++, b += x, I = ""; w < T && (x = d.charAt(w), x !== c); )
|
|
1148
|
+
x === o && (I += x, w++, x = d.charAt(w)), I += x, w++;
|
|
987
1149
|
if (!(!I || d.charAt(w) !== c || d.charAt(w + 1) !== p)) {
|
|
988
|
-
for (M = I, b += I + c + p, w = b.length, I = ""; w < T && (x = d.charAt(w), !(x !== l && x !== D && x !== a)); )
|
|
1150
|
+
for (M = I, b += I + c + p, w = b.length, I = ""; w < T && (x = d.charAt(w), !(x !== l && x !== D && x !== a)); )
|
|
1151
|
+
b += x, w++;
|
|
989
1152
|
if (x = d.charAt(w), I = "", k = b, x === E) {
|
|
990
|
-
for (w++; w < T && (x = d.charAt(w), !!F(x)); )
|
|
991
|
-
|
|
1153
|
+
for (w++; w < T && (x = d.charAt(w), !!F(x)); )
|
|
1154
|
+
I += x, w++;
|
|
1155
|
+
if (x = d.charAt(w), x === F.delimiter)
|
|
1156
|
+
b += E + I + x, w++;
|
|
992
1157
|
else {
|
|
993
|
-
if (y)
|
|
1158
|
+
if (y)
|
|
1159
|
+
return;
|
|
994
1160
|
w -= I.length + 1, I = "";
|
|
995
1161
|
}
|
|
996
1162
|
}
|
|
997
1163
|
if (!I) {
|
|
998
|
-
for (; w < T && (x = d.charAt(w), !!B(x)); )
|
|
1164
|
+
for (; w < T && (x = d.charAt(w), !!B(x)); )
|
|
1165
|
+
I += x, w++;
|
|
999
1166
|
b += I;
|
|
1000
1167
|
}
|
|
1001
1168
|
if (I) {
|
|
1002
|
-
for (z = I, I = ""; w < T && (x = d.charAt(w), !(x !== l && x !== D && x !== a)); )
|
|
1003
|
-
|
|
1169
|
+
for (z = I, I = ""; w < T && (x = d.charAt(w), !(x !== l && x !== D && x !== a)); )
|
|
1170
|
+
I += x, w++;
|
|
1171
|
+
if (x = d.charAt(w), S = null, x === r ? S = r : x === i ? S = i : x === f && (S = h), !S)
|
|
1172
|
+
I = "", w = b.length;
|
|
1004
1173
|
else if (I) {
|
|
1005
1174
|
for (b += I + x, w = b.length, I = ""; w < T && (x = d.charAt(w), x !== S); ) {
|
|
1006
1175
|
if (x === a) {
|
|
1007
|
-
if (w++, x = d.charAt(w), x === a || x === S)
|
|
1176
|
+
if (w++, x = d.charAt(w), x === a || x === S)
|
|
1177
|
+
return;
|
|
1008
1178
|
I += a;
|
|
1009
1179
|
}
|
|
1010
1180
|
I += x, w++;
|
|
1011
1181
|
}
|
|
1012
|
-
if (x = d.charAt(w), x !== S)
|
|
1182
|
+
if (x = d.charAt(w), x !== S)
|
|
1183
|
+
return;
|
|
1013
1184
|
L = b, b += I + x, w++, V = I, I = "";
|
|
1014
|
-
} else
|
|
1015
|
-
|
|
1016
|
-
|
|
1185
|
+
} else
|
|
1186
|
+
return;
|
|
1187
|
+
for (; w < T && (x = d.charAt(w), !(x !== l && x !== D)); )
|
|
1188
|
+
b += x, w++;
|
|
1189
|
+
if (x = d.charAt(w), !x || x === a)
|
|
1190
|
+
return C ? !0 : (k = m(k).test().end, z = g.decode.raw(g.unescape(z), k, { nonTerminated: !1 }), V && (L = m(L).test().end, V = g.decode.raw(g.unescape(V), L)), m(b)({ type: "definition", identifier: n(M), label: M, title: V || null, url: z }));
|
|
1017
1191
|
}
|
|
1018
1192
|
}
|
|
1019
1193
|
}
|
|
@@ -1035,7 +1209,8 @@ $$`;
|
|
|
1035
1209
|
if (B.options.gfm) {
|
|
1036
1210
|
for (m = 0, V = 0, w = v.length + 1, T = []; m < w; ) {
|
|
1037
1211
|
if (O = v.indexOf(r, m), $ = v.indexOf(D, m + 1), O === -1 && (O = v.length), $ === -1 || $ > O) {
|
|
1038
|
-
if (V < c)
|
|
1212
|
+
if (V < c)
|
|
1213
|
+
return;
|
|
1039
1214
|
break;
|
|
1040
1215
|
}
|
|
1041
1216
|
T.push(v.slice(m, O)), V++, m = O + 1;
|
|
@@ -1043,16 +1218,22 @@ $$`;
|
|
|
1043
1218
|
for (g = T.join(r), d = T.splice(1, 1)[0] || [], m = 0, w = d.length, V--, C = !1, I = []; m < w; ) {
|
|
1044
1219
|
if (k = d.charAt(m), k === D) {
|
|
1045
1220
|
if (L = null, C === !1) {
|
|
1046
|
-
if (U === !1)
|
|
1047
|
-
|
|
1221
|
+
if (U === !1)
|
|
1222
|
+
return;
|
|
1223
|
+
} else
|
|
1224
|
+
I.push(C), C = !1;
|
|
1048
1225
|
U = !1;
|
|
1049
|
-
} else if (k === o)
|
|
1050
|
-
|
|
1051
|
-
else if (
|
|
1226
|
+
} else if (k === o)
|
|
1227
|
+
L = !0, C = C || null;
|
|
1228
|
+
else if (k === a)
|
|
1229
|
+
C === f ? C = h : L && C === null ? C = p : C = f;
|
|
1230
|
+
else if (!t(k))
|
|
1231
|
+
return;
|
|
1052
1232
|
m++;
|
|
1053
1233
|
}
|
|
1054
1234
|
if (C !== !1 && I.push(C), !(I.length < s)) {
|
|
1055
|
-
if (F)
|
|
1235
|
+
if (F)
|
|
1236
|
+
return !0;
|
|
1056
1237
|
for (z = -1, J = [], j = A(g).reset({ type: "table", align: I, children: J }); ++z < V; ) {
|
|
1057
1238
|
for (q = T[z], y = { type: "tableRow", children: [] }, z && A(r), A(q).reset(y, j), w = q.length + 1, m = 0, b = "", x = "", S = !0; m < w; ) {
|
|
1058
1239
|
if (k = q.charAt(m), k === n || k === i) {
|
|
@@ -1078,14 +1259,17 @@ $$`;
|
|
|
1078
1259
|
F = B;
|
|
1079
1260
|
break;
|
|
1080
1261
|
}
|
|
1081
|
-
if (c.charAt(F + 1) === o)
|
|
1262
|
+
if (c.charAt(F + 1) === o)
|
|
1263
|
+
break;
|
|
1082
1264
|
if (E) {
|
|
1083
1265
|
for (g = 0, m = F + 1; m < B; ) {
|
|
1084
1266
|
if (C = c.charAt(m), C === i) {
|
|
1085
1267
|
g = l;
|
|
1086
1268
|
break;
|
|
1087
|
-
} else if (C === a)
|
|
1088
|
-
|
|
1269
|
+
} else if (C === a)
|
|
1270
|
+
g++;
|
|
1271
|
+
else
|
|
1272
|
+
break;
|
|
1089
1273
|
m++;
|
|
1090
1274
|
}
|
|
1091
1275
|
if (g >= l && C !== o) {
|
|
@@ -1093,7 +1277,8 @@ $$`;
|
|
|
1093
1277
|
continue;
|
|
1094
1278
|
}
|
|
1095
1279
|
}
|
|
1096
|
-
if (d = c.slice(F + 1), r(v, A, h, [s, d, !0]))
|
|
1280
|
+
if (d = c.slice(F + 1), r(v, A, h, [s, d, !0]))
|
|
1281
|
+
break;
|
|
1097
1282
|
if (m = F, F = c.indexOf(o, F + 1), F !== -1 && t(c.slice(m, F)) === "") {
|
|
1098
1283
|
F = m;
|
|
1099
1284
|
break;
|
|
@@ -1113,7 +1298,8 @@ $$`;
|
|
|
1113
1298
|
`, r = "\\";
|
|
1114
1299
|
function i(o, a, l) {
|
|
1115
1300
|
var D = this, s, c;
|
|
1116
|
-
if (a.charAt(0) === r && (s = a.charAt(1), D.escape.indexOf(s) !== -1))
|
|
1301
|
+
if (a.charAt(0) === r && (s = a.charAt(1), D.escape.indexOf(s) !== -1))
|
|
1302
|
+
return l ? !0 : (s === n ? c = { type: "break" } : c = { type: "text", value: s }, o(r + s)(c));
|
|
1117
1303
|
}
|
|
1118
1304
|
}), qt = N((u, e) => {
|
|
1119
1305
|
e.exports = t;
|
|
@@ -1127,15 +1313,20 @@ $$`;
|
|
|
1127
1313
|
function c(f, h, p) {
|
|
1128
1314
|
var E = this, A = "", v = h.length, F = 0, B = "", m = !1, d = "", C, g, y, w, T;
|
|
1129
1315
|
if (h.charAt(0) === i) {
|
|
1130
|
-
for (F++, A = i; F < v && (C = h.charAt(F), !(t(C) || C === o || C === a || C === ":" && h.charAt(F + 1) === l)); )
|
|
1316
|
+
for (F++, A = i; F < v && (C = h.charAt(F), !(t(C) || C === o || C === a || C === ":" && h.charAt(F + 1) === l)); )
|
|
1317
|
+
B += C, F++;
|
|
1131
1318
|
if (B) {
|
|
1132
|
-
if (d += B, B = "", C = h.charAt(F), d += C, F++, C === a)
|
|
1319
|
+
if (d += B, B = "", C = h.charAt(F), d += C, F++, C === a)
|
|
1320
|
+
m = !0;
|
|
1133
1321
|
else {
|
|
1134
|
-
if (C !== ":" || h.charAt(F + 1) !== l)
|
|
1322
|
+
if (C !== ":" || h.charAt(F + 1) !== l)
|
|
1323
|
+
return;
|
|
1135
1324
|
d += l, F++;
|
|
1136
1325
|
}
|
|
1137
|
-
for (; F < v && (C = h.charAt(F), !(t(C) || C === o)); )
|
|
1138
|
-
|
|
1326
|
+
for (; F < v && (C = h.charAt(F), !(t(C) || C === o)); )
|
|
1327
|
+
B += C, F++;
|
|
1328
|
+
if (C = h.charAt(F), !(!B || C !== o))
|
|
1329
|
+
return p ? !0 : (d += B, y = d, A += d + C, g = f.now(), g.column++, g.offset++, m && (d.slice(0, s).toLowerCase() === D ? (y = y.slice(s), g.column += s, g.offset += s) : d = D + d), w = E.inlineTokenizers, E.inlineTokenizers = { text: w.text }, T = E.enterLink(), y = E.tokenizeInline(y, g), E.inlineTokenizers = w, T(), f(A)({ type: "link", title: null, url: n(d, { nonTerminated: !1 }), children: y }));
|
|
1139
1330
|
}
|
|
1140
1331
|
}
|
|
1141
1332
|
}
|
|
@@ -1143,8 +1334,10 @@ $$`;
|
|
|
1143
1334
|
e.exports = t;
|
|
1144
1335
|
function t(n, r) {
|
|
1145
1336
|
var i = String(n), o = 0, a;
|
|
1146
|
-
if (typeof r != "string")
|
|
1147
|
-
|
|
1337
|
+
if (typeof r != "string")
|
|
1338
|
+
throw new Error("Expected character");
|
|
1339
|
+
for (a = i.indexOf(r); a !== -1; )
|
|
1340
|
+
o++, a = i.indexOf(r, a + r.length);
|
|
1148
1341
|
return o;
|
|
1149
1342
|
}
|
|
1150
1343
|
}), Kr = N((u, e) => {
|
|
@@ -1152,8 +1345,10 @@ $$`;
|
|
|
1152
1345
|
var t = ["www.", "http://", "https://"];
|
|
1153
1346
|
function n(r, i) {
|
|
1154
1347
|
var o = -1, a, l, D;
|
|
1155
|
-
if (!this.options.gfm)
|
|
1156
|
-
|
|
1348
|
+
if (!this.options.gfm)
|
|
1349
|
+
return o;
|
|
1350
|
+
for (l = t.length, a = -1; ++a < l; )
|
|
1351
|
+
D = r.indexOf(t[a], i), D !== -1 && (o === -1 || D < o) && (o = D);
|
|
1157
1352
|
return o;
|
|
1158
1353
|
}
|
|
1159
1354
|
}), Xr = N((u, e) => {
|
|
@@ -1163,13 +1358,18 @@ $$`;
|
|
|
1163
1358
|
function g(y, w, T) {
|
|
1164
1359
|
var b = this, k = b.options.gfm, L = b.inlineTokenizers, I = w.length, x = -1, S = !1, M, z, V, q, J, j, O, $, U, R, P, G, W, Y;
|
|
1165
1360
|
if (k) {
|
|
1166
|
-
if (w.slice(0, 4) === "www.")
|
|
1167
|
-
|
|
1168
|
-
else if (w.slice(0,
|
|
1169
|
-
|
|
1361
|
+
if (w.slice(0, 4) === "www.")
|
|
1362
|
+
S = !0, q = 4;
|
|
1363
|
+
else if (w.slice(0, 7).toLowerCase() === "http://")
|
|
1364
|
+
q = 7;
|
|
1365
|
+
else if (w.slice(0, 8).toLowerCase() === "https://")
|
|
1366
|
+
q = 8;
|
|
1367
|
+
else
|
|
1368
|
+
return;
|
|
1170
1369
|
for (x = q - 1, V = q, M = []; q < I; ) {
|
|
1171
1370
|
if (O = w.charCodeAt(q), O === p) {
|
|
1172
|
-
if (x === q - 1)
|
|
1371
|
+
if (x === q - 1)
|
|
1372
|
+
break;
|
|
1173
1373
|
M.push(q), x = q, q++;
|
|
1174
1374
|
continue;
|
|
1175
1375
|
}
|
|
@@ -1180,11 +1380,16 @@ $$`;
|
|
|
1180
1380
|
break;
|
|
1181
1381
|
}
|
|
1182
1382
|
if (O === p && (M.pop(), q--), M[0] !== void 0 && (z = M.length < 2 ? V : M[M.length - 2] + 1, w.slice(z, q).indexOf("_") === -1)) {
|
|
1183
|
-
if (T)
|
|
1184
|
-
|
|
1185
|
-
|
|
1383
|
+
if (T)
|
|
1384
|
+
return !0;
|
|
1385
|
+
for ($ = q, J = q; q < I && (O = w.charCodeAt(q), !(o(O) || O === F)); )
|
|
1386
|
+
q++, O === l || O === c || O === f || O === p || O === E || O === v || O === B || O === m || ($ = q);
|
|
1387
|
+
if (q = $, w.charCodeAt(q - 1) === s)
|
|
1388
|
+
for (j = w.slice(J, q), U = t(j, d), R = t(j, C); R > U; )
|
|
1389
|
+
q = J + j.lastIndexOf(C), j = w.slice(J, q), R--;
|
|
1186
1390
|
if (w.charCodeAt(q - 1) === A && (q--, i(w.charCodeAt(q - 1)))) {
|
|
1187
|
-
for ($ = q - 2; i(w.charCodeAt($)); )
|
|
1391
|
+
for ($ = q - 2; i(w.charCodeAt($)); )
|
|
1392
|
+
$--;
|
|
1188
1393
|
w.charCodeAt($) === D && (q = $);
|
|
1189
1394
|
}
|
|
1190
1395
|
return P = w.slice(0, q), W = n(P, { nonTerminated: !1 }), S && (W = "http://" + W), Y = b.enterLink(), b.inlineTokenizers = { text: L.text }, G = b.tokenizeInline(P, y.now()), b.inlineTokenizers = L, Y(), y(P)({ type: "link", title: null, url: W, children: G });
|
|
@@ -1196,9 +1401,12 @@ $$`;
|
|
|
1196
1401
|
e.exports = l;
|
|
1197
1402
|
function l(s, c) {
|
|
1198
1403
|
var f = this, h, p;
|
|
1199
|
-
if (!this.options.gfm || (h = s.indexOf("@", c), h === -1))
|
|
1200
|
-
|
|
1201
|
-
|
|
1404
|
+
if (!this.options.gfm || (h = s.indexOf("@", c), h === -1))
|
|
1405
|
+
return -1;
|
|
1406
|
+
if (p = h, p === c || !D(s.charCodeAt(p - 1)))
|
|
1407
|
+
return l.call(f, s, h + 1);
|
|
1408
|
+
for (; p > c && D(s.charCodeAt(p - 1)); )
|
|
1409
|
+
p--;
|
|
1202
1410
|
return p;
|
|
1203
1411
|
}
|
|
1204
1412
|
function D(s) {
|
|
@@ -1211,7 +1419,8 @@ $$`;
|
|
|
1211
1419
|
function c(f, h, p) {
|
|
1212
1420
|
var E = this, A = E.options.gfm, v = E.inlineTokenizers, F = 0, B = h.length, m = -1, d, C, g, y;
|
|
1213
1421
|
if (A) {
|
|
1214
|
-
for (d = h.charCodeAt(F); n(d) || r(d) || d === o || d === a || d === l || d === s; )
|
|
1422
|
+
for (d = h.charCodeAt(F); n(d) || r(d) || d === o || d === a || d === l || d === s; )
|
|
1423
|
+
d = h.charCodeAt(++F);
|
|
1215
1424
|
if (F !== 0 && d === D) {
|
|
1216
1425
|
for (F++; F < B; ) {
|
|
1217
1426
|
if (d = h.charCodeAt(F), n(d) || r(d) || d === a || d === l || d === s) {
|
|
@@ -1220,7 +1429,8 @@ $$`;
|
|
|
1220
1429
|
}
|
|
1221
1430
|
break;
|
|
1222
1431
|
}
|
|
1223
|
-
if (!(m === -1 || m === F || d === a || d === s))
|
|
1432
|
+
if (!(m === -1 || m === F || d === a || d === s))
|
|
1433
|
+
return d === l && F--, C = h.slice(0, F), p ? !0 : (y = E.enterLink(), E.inlineTokenizers = { text: v.text }, g = E.tokenizeInline(C, f.now()), E.inlineTokenizers = v, y(), f(C)({ type: "link", title: null, url: "mailto:" + t(C, { nonTerminated: !1 }), children: g }));
|
|
1224
1434
|
}
|
|
1225
1435
|
}
|
|
1226
1436
|
}
|
|
@@ -1230,7 +1440,8 @@ $$`;
|
|
|
1230
1440
|
var i = "<", o = "?", a = "!", l = "/", D = /^<a /i, s = /^<\/a>/i;
|
|
1231
1441
|
function c(f, h, p) {
|
|
1232
1442
|
var E = this, A = h.length, v, F;
|
|
1233
|
-
if (!(h.charAt(0) !== i || A < 3) && (v = h.charAt(1), !(!t(v) && v !== o && v !== a && v !== l) && (F = h.match(r), !!F)))
|
|
1443
|
+
if (!(h.charAt(0) !== i || A < 3) && (v = h.charAt(1), !(!t(v) && v !== o && v !== a && v !== l) && (F = h.match(r), !!F)))
|
|
1444
|
+
return p ? !0 : (F = F[0], !E.inLink && D.test(F) ? E.inLink = !0 : E.inLink && s.test(F) && (E.inLink = !1), f(F)({ type: "html", value: F }));
|
|
1234
1445
|
}
|
|
1235
1446
|
}), St = N((u, e) => {
|
|
1236
1447
|
e.exports = t;
|
|
@@ -1248,36 +1459,48 @@ $$`;
|
|
|
1248
1459
|
if (g === i && (z = !0, d = g, g = F.charAt(++C)), g === f && !(!z && m.inLink)) {
|
|
1249
1460
|
for (d += g, $ = "", C++, J = F.length, R = v.now(), O = 0, R.column += C, R.offset += C; C < J; ) {
|
|
1250
1461
|
if (g = F.charAt(C), S = g, g === E) {
|
|
1251
|
-
for (k = 1; F.charAt(C + 1) === E; )
|
|
1462
|
+
for (k = 1; F.charAt(C + 1) === E; )
|
|
1463
|
+
S += g, C++, k++;
|
|
1252
1464
|
L ? k >= L && (L = 0) : L = k;
|
|
1253
|
-
} else if (g === h)
|
|
1254
|
-
|
|
1255
|
-
else if ((!L || T) && g ===
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1465
|
+
} else if (g === h)
|
|
1466
|
+
C++, S += F.charAt(C);
|
|
1467
|
+
else if ((!L || T) && g === f)
|
|
1468
|
+
O++;
|
|
1469
|
+
else if ((!L || T) && g === p)
|
|
1470
|
+
if (O)
|
|
1471
|
+
O--;
|
|
1472
|
+
else {
|
|
1473
|
+
if (F.charAt(C + 1) !== l)
|
|
1474
|
+
return;
|
|
1475
|
+
S += l, b = !0, C++;
|
|
1476
|
+
break;
|
|
1477
|
+
}
|
|
1261
1478
|
$ += S, S = "", C++;
|
|
1262
1479
|
}
|
|
1263
1480
|
if (b) {
|
|
1264
|
-
for (V = $, d += $ + S, C++; C < J && (g = F.charAt(C), !!t(g)); )
|
|
1481
|
+
for (V = $, d += $ + S, C++; C < J && (g = F.charAt(C), !!t(g)); )
|
|
1482
|
+
d += g, C++;
|
|
1265
1483
|
if (g = F.charAt(C), $ = "", I = d, g === s) {
|
|
1266
1484
|
for (C++, I += s; C < J && (g = F.charAt(C), g !== c); ) {
|
|
1267
|
-
if (w && g === r)
|
|
1485
|
+
if (w && g === r)
|
|
1486
|
+
return;
|
|
1268
1487
|
$ += g, C++;
|
|
1269
1488
|
}
|
|
1270
|
-
if (F.charAt(C) !== c)
|
|
1489
|
+
if (F.charAt(C) !== c)
|
|
1490
|
+
return;
|
|
1271
1491
|
d += s + $ + c, U = $, C++;
|
|
1272
1492
|
} else {
|
|
1273
1493
|
for (g = null, S = ""; C < J && (g = F.charAt(C), !(S && (g === o || g === a || w && g === l))); ) {
|
|
1274
1494
|
if (t(g)) {
|
|
1275
|
-
if (!y)
|
|
1495
|
+
if (!y)
|
|
1496
|
+
break;
|
|
1276
1497
|
S += g;
|
|
1277
1498
|
} else {
|
|
1278
|
-
if (g === l)
|
|
1499
|
+
if (g === l)
|
|
1500
|
+
O++;
|
|
1279
1501
|
else if (g === D) {
|
|
1280
|
-
if (O === 0)
|
|
1502
|
+
if (O === 0)
|
|
1503
|
+
break;
|
|
1281
1504
|
O--;
|
|
1282
1505
|
}
|
|
1283
1506
|
$ += S, S = "", g === h && ($ += h, g = F.charAt(++C)), $ += g;
|
|
@@ -1286,21 +1509,31 @@ $$`;
|
|
|
1286
1509
|
}
|
|
1287
1510
|
d += $, U = $, C = d.length;
|
|
1288
1511
|
}
|
|
1289
|
-
for ($ = ""; C < J && (g = F.charAt(C), !!t(g)); )
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
if (g =
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1512
|
+
for ($ = ""; C < J && (g = F.charAt(C), !!t(g)); )
|
|
1513
|
+
$ += g, C++;
|
|
1514
|
+
if (g = F.charAt(C), d += $, $ && (g === o || g === a || w && g === l))
|
|
1515
|
+
if (C++, d += g, $ = "", q = g === l ? D : g, x = d, w) {
|
|
1516
|
+
for (; C < J && (g = F.charAt(C), g !== q); )
|
|
1517
|
+
g === h && ($ += h, g = F.charAt(++C)), C++, $ += g;
|
|
1518
|
+
if (g = F.charAt(C), g !== q)
|
|
1519
|
+
return;
|
|
1520
|
+
for (j = $, d += $ + g, C++; C < J && (g = F.charAt(C), !!t(g)); )
|
|
1521
|
+
d += g, C++;
|
|
1522
|
+
} else
|
|
1523
|
+
for (S = ""; C < J; ) {
|
|
1524
|
+
if (g = F.charAt(C), g === q)
|
|
1525
|
+
M && ($ += q + S, S = ""), M = !0;
|
|
1526
|
+
else if (!M)
|
|
1527
|
+
$ += g;
|
|
1528
|
+
else if (g === D) {
|
|
1529
|
+
d += $ + q + S, j = $;
|
|
1530
|
+
break;
|
|
1531
|
+
} else
|
|
1532
|
+
t(g) ? S += g : ($ += q + S + g, S = "", M = !1);
|
|
1533
|
+
C++;
|
|
1534
|
+
}
|
|
1535
|
+
if (F.charAt(C) === D)
|
|
1536
|
+
return B ? !0 : (d += D, U = m.decode.raw(m.unescape(U), v(I).test().end, { nonTerminated: !1 }), j && (x = v(x).test().end, j = m.decode.raw(m.unescape(j), x)), G = { type: z ? "image" : "link", title: j || null, url: U }, z ? G.alt = m.decode.raw(m.unescape(V), R) || null : (P = m.enterLink(), G.children = m.tokenizeInline(V, R), P()), v(d)(G));
|
|
1304
1537
|
}
|
|
1305
1538
|
}
|
|
1306
1539
|
}
|
|
@@ -1312,23 +1545,30 @@ $$`;
|
|
|
1312
1545
|
var F = this, B = F.options.commonmark, m = A.charAt(0), d = 0, C = A.length, g = "", y = "", w = i, T = a, b, k, L, I, x, S, M, z;
|
|
1313
1546
|
if (m === s && (w = o, y = m, m = A.charAt(++d)), m === c) {
|
|
1314
1547
|
for (d++, y += m, S = "", z = 0; d < C; ) {
|
|
1315
|
-
if (m = A.charAt(d), m === c)
|
|
1548
|
+
if (m = A.charAt(d), m === c)
|
|
1549
|
+
M = !0, z++;
|
|
1316
1550
|
else if (m === h) {
|
|
1317
|
-
if (!z)
|
|
1551
|
+
if (!z)
|
|
1552
|
+
break;
|
|
1318
1553
|
z--;
|
|
1319
1554
|
}
|
|
1320
1555
|
m === f && (S += f, m = A.charAt(++d)), S += m, d++;
|
|
1321
1556
|
}
|
|
1322
1557
|
if (g = S, b = S, m = A.charAt(d), m === h) {
|
|
1323
|
-
if (d++, g += m, S = "", !B)
|
|
1558
|
+
if (d++, g += m, S = "", !B)
|
|
1559
|
+
for (; d < C && (m = A.charAt(d), !!t(m)); )
|
|
1560
|
+
S += m, d++;
|
|
1324
1561
|
if (m = A.charAt(d), m === c) {
|
|
1325
|
-
for (k = "", S += m, d++; d < C && (m = A.charAt(d), !(m === c || m === h)); )
|
|
1562
|
+
for (k = "", S += m, d++; d < C && (m = A.charAt(d), !(m === c || m === h)); )
|
|
1563
|
+
m === f && (k += f, m = A.charAt(++d)), k += m, d++;
|
|
1326
1564
|
m = A.charAt(d), m === h ? (T = k ? D : l, S += k + m, d++) : k = "", g += S, S = "";
|
|
1327
1565
|
} else {
|
|
1328
|
-
if (!b)
|
|
1566
|
+
if (!b)
|
|
1567
|
+
return;
|
|
1329
1568
|
k = b;
|
|
1330
1569
|
}
|
|
1331
|
-
if (!(T !== D && M))
|
|
1570
|
+
if (!(T !== D && M))
|
|
1571
|
+
return g = y + g, w === i && F.inLink ? null : v ? !0 : (L = E.now(), L.column += y.length, L.offset += y.length, k = T === D ? k : b, I = { type: w + "Reference", identifier: r(k), label: k, referenceType: T }, w === i ? (x = F.enterLink(), I.children = F.tokenizeInline(b, L), x()) : I.alt = F.decode.raw(F.unescape(b), L) || null, E(g)(I));
|
|
1332
1572
|
}
|
|
1333
1573
|
}
|
|
1334
1574
|
}
|
|
@@ -1344,10 +1584,12 @@ $$`;
|
|
|
1344
1584
|
var i = "\\", o = "*", a = "_";
|
|
1345
1585
|
function l(D, s, c) {
|
|
1346
1586
|
var f = this, h = 0, p = s.charAt(h), E, A, v, F, B, m, d;
|
|
1347
|
-
if (!(p !== o && p !== a || s.charAt(++h) !== p) && (A = f.options.pedantic, v = p, B = v + v, m = s.length, h++, F = "", p = "", !(A && n(s.charAt(h)))))
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1587
|
+
if (!(p !== o && p !== a || s.charAt(++h) !== p) && (A = f.options.pedantic, v = p, B = v + v, m = s.length, h++, F = "", p = "", !(A && n(s.charAt(h)))))
|
|
1588
|
+
for (; h < m; ) {
|
|
1589
|
+
if (d = p, p = s.charAt(h), p === v && s.charAt(h + 1) === v && (!A || !n(d)) && (p = s.charAt(h + 2), p !== v))
|
|
1590
|
+
return t(F) ? c ? !0 : (E = D.now(), E.column += 2, E.offset += 2, D(B + F + B)({ type: "strong", children: f.tokenizeInline(F, E) })) : void 0;
|
|
1591
|
+
!A && p === i && (F += p, p = s.charAt(++h)), F += p, h++;
|
|
1592
|
+
}
|
|
1351
1593
|
}
|
|
1352
1594
|
}), an = N((u, e) => {
|
|
1353
1595
|
e.exports = r;
|
|
@@ -1367,20 +1609,22 @@ $$`;
|
|
|
1367
1609
|
var o = "*", a = "_", l = "\\";
|
|
1368
1610
|
function D(s, c, f) {
|
|
1369
1611
|
var h = this, p = 0, E = c.charAt(p), A, v, F, B, m, d, C;
|
|
1370
|
-
if (!(E !== o && E !== a) && (v = h.options.pedantic, m = E, F = E, d = c.length, p++, B = "", E = "", !(v && r(c.charAt(p)))))
|
|
1371
|
-
|
|
1372
|
-
if (E = c.charAt(
|
|
1373
|
-
if (
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1612
|
+
if (!(E !== o && E !== a) && (v = h.options.pedantic, m = E, F = E, d = c.length, p++, B = "", E = "", !(v && r(c.charAt(p)))))
|
|
1613
|
+
for (; p < d; ) {
|
|
1614
|
+
if (C = E, E = c.charAt(p), E === F && (!v || !r(C))) {
|
|
1615
|
+
if (E = c.charAt(++p), E !== F) {
|
|
1616
|
+
if (!t(B) || C === F)
|
|
1617
|
+
return;
|
|
1618
|
+
if (!v && F === a && n(E)) {
|
|
1619
|
+
B += F;
|
|
1620
|
+
continue;
|
|
1621
|
+
}
|
|
1622
|
+
return f ? !0 : (A = s.now(), A.column++, A.offset++, s(m + B + F)({ type: "emphasis", children: h.tokenizeInline(B, A) }));
|
|
1377
1623
|
}
|
|
1378
|
-
|
|
1624
|
+
B += F;
|
|
1379
1625
|
}
|
|
1380
|
-
B +=
|
|
1626
|
+
!v && E === l && (B += E, E = c.charAt(++p)), B += E, p++;
|
|
1381
1627
|
}
|
|
1382
|
-
!v && E === l && (B += E, E = c.charAt(++p)), B += E, p++;
|
|
1383
|
-
}
|
|
1384
1628
|
}
|
|
1385
1629
|
}), sn = N((u, e) => {
|
|
1386
1630
|
e.exports = t;
|
|
@@ -1393,10 +1637,12 @@ $$`;
|
|
|
1393
1637
|
var r = "~", i = "~~";
|
|
1394
1638
|
function o(a, l, D) {
|
|
1395
1639
|
var s = this, c = "", f = "", h = "", p = "", E, A, v;
|
|
1396
|
-
if (!(!s.options.gfm || l.charAt(0) !== r || l.charAt(1) !== r || t(l.charAt(2))))
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1640
|
+
if (!(!s.options.gfm || l.charAt(0) !== r || l.charAt(1) !== r || t(l.charAt(2))))
|
|
1641
|
+
for (E = 1, A = l.length, v = a.now(), v.column += 2, v.offset += 2; ++E < A; ) {
|
|
1642
|
+
if (c = l.charAt(E), c === r && f === r && (!h || !t(h)))
|
|
1643
|
+
return D ? !0 : a(i + p + i)({ type: "delete", children: s.tokenizeInline(p, v) });
|
|
1644
|
+
p += f, h = f, f = c;
|
|
1645
|
+
}
|
|
1400
1646
|
}
|
|
1401
1647
|
}), cn = N((u, e) => {
|
|
1402
1648
|
e.exports = t;
|
|
@@ -1408,7 +1654,8 @@ $$`;
|
|
|
1408
1654
|
e.exports = o, o.locator = t;
|
|
1409
1655
|
var n = 10, r = 32, i = 96;
|
|
1410
1656
|
function o(a, l, D) {
|
|
1411
|
-
for (var s = l.length, c = 0, f, h, p, E, A, v; c < s && l.charCodeAt(c) === i; )
|
|
1657
|
+
for (var s = l.length, c = 0, f, h, p, E, A, v; c < s && l.charCodeAt(c) === i; )
|
|
1658
|
+
c++;
|
|
1412
1659
|
if (!(c === 0 || c === s)) {
|
|
1413
1660
|
for (f = c, A = l.charCodeAt(c); c < s; ) {
|
|
1414
1661
|
if (E = A, A = l.charCodeAt(c + 1), E === i) {
|
|
@@ -1416,11 +1663,13 @@ $$`;
|
|
|
1416
1663
|
v = !0;
|
|
1417
1664
|
break;
|
|
1418
1665
|
}
|
|
1419
|
-
} else
|
|
1666
|
+
} else
|
|
1667
|
+
h !== void 0 && (h = void 0, p = void 0);
|
|
1420
1668
|
c++;
|
|
1421
1669
|
}
|
|
1422
1670
|
if (v) {
|
|
1423
|
-
if (D)
|
|
1671
|
+
if (D)
|
|
1672
|
+
return !0;
|
|
1424
1673
|
if (c = f, s = h, E = l.charCodeAt(c), A = l.charCodeAt(s - 1), v = !1, s - c > 2 && (E === r || E === n) && (A === r || A === n)) {
|
|
1425
1674
|
for (c++, s--; c < s; ) {
|
|
1426
1675
|
if (E = l.charCodeAt(c), E !== r && E !== n) {
|
|
@@ -1439,7 +1688,8 @@ $$`;
|
|
|
1439
1688
|
e.exports = t;
|
|
1440
1689
|
function t(n, r) {
|
|
1441
1690
|
for (var i = n.indexOf(`
|
|
1442
|
-
`, r); i > r && n.charAt(i - 1) === " "; )
|
|
1691
|
+
`, r); i > r && n.charAt(i - 1) === " "; )
|
|
1692
|
+
i--;
|
|
1443
1693
|
return i;
|
|
1444
1694
|
}
|
|
1445
1695
|
}), hn = N((u, e) => {
|
|
@@ -1449,8 +1699,10 @@ $$`;
|
|
|
1449
1699
|
`, i = 2;
|
|
1450
1700
|
function o(a, l, D) {
|
|
1451
1701
|
for (var s = l.length, c = -1, f = "", h; ++c < s; ) {
|
|
1452
|
-
if (h = l.charAt(c), h === r)
|
|
1453
|
-
|
|
1702
|
+
if (h = l.charAt(c), h === r)
|
|
1703
|
+
return c < i ? void 0 : D ? !0 : (f += h, a(f)({ type: "break" }));
|
|
1704
|
+
if (h !== n)
|
|
1705
|
+
return;
|
|
1454
1706
|
f += h;
|
|
1455
1707
|
}
|
|
1456
1708
|
}
|
|
@@ -1458,8 +1710,10 @@ $$`;
|
|
|
1458
1710
|
e.exports = t;
|
|
1459
1711
|
function t(n, r, i) {
|
|
1460
1712
|
var o = this, a, l, D, s, c, f, h, p, E, A;
|
|
1461
|
-
if (i)
|
|
1462
|
-
|
|
1713
|
+
if (i)
|
|
1714
|
+
return !0;
|
|
1715
|
+
for (a = o.inlineMethods, s = a.length, l = o.inlineTokenizers, D = -1, E = r.length; ++D < s; )
|
|
1716
|
+
p = a[D], !(p === "text" || !l[p]) && (h = l[p].locator, h || n.file.fail("Missing locator: `" + p + "`"), f = h.call(o, r, 1), f !== -1 && f < E && (E = f));
|
|
1463
1717
|
c = r.slice(0, E), A = n.now(), o.decode(c, A, v);
|
|
1464
1718
|
function v(F, B, m) {
|
|
1465
1719
|
n(m || F)({ type: "text", value: F });
|
|
@@ -1475,7 +1729,8 @@ $$`;
|
|
|
1475
1729
|
D.setOptions = yr(), D.parse = Tr(), D.options = Bt(), D.exitStart = n("atStart", !0), D.enterList = n("inList", !1), D.enterLink = n("inLink", !1), D.enterBlock = n("inBlock", !1), D.interruptParagraph = [["thematicBreak"], ["list"], ["atxHeading"], ["fencedCode"], ["blockquote"], ["html"], ["setextHeading", { commonmark: !1 }], ["definition", { commonmark: !1 }]], D.interruptList = [["atxHeading", { pedantic: !1 }], ["fencedCode", { pedantic: !1 }], ["thematicBreak", { pedantic: !1 }], ["definition", { commonmark: !1 }]], D.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 }]], D.blockTokenizers = { blankLine: Or(), indentedCode: Rr(), fencedCode: Nr(), blockquote: Ir(), atxHeading: Pr(), thematicBreak: jr(), list: zr(), setextHeading: Mr(), html: Ur(), definition: Vr(), table: Gr(), paragraph: Wr() }, D.inlineTokenizers = { escape: _r(), autoLink: Jr(), url: Xr(), email: Qr(), html: un(), link: en(), reference: tn(), strong: nn(), emphasis: ln(), deletion: Dn(), code: fn(), break: hn(), text: dn() }, D.blockMethods = s(D.blockTokenizers), D.inlineMethods = s(D.inlineTokenizers), D.tokenizeBlock = a("block"), D.tokenizeInline = a("inline"), D.tokenizeFactory = a;
|
|
1476
1730
|
function s(c) {
|
|
1477
1731
|
var f = [], h;
|
|
1478
|
-
for (h in c)
|
|
1732
|
+
for (h in c)
|
|
1733
|
+
f.push(h);
|
|
1479
1734
|
return f;
|
|
1480
1735
|
}
|
|
1481
1736
|
}), Cn = N((u, e) => {
|
|
@@ -1488,7 +1743,8 @@ $$`;
|
|
|
1488
1743
|
}), An = N((u, e) => {
|
|
1489
1744
|
e.exports = t;
|
|
1490
1745
|
function t(n) {
|
|
1491
|
-
if (n)
|
|
1746
|
+
if (n)
|
|
1747
|
+
throw n;
|
|
1492
1748
|
}
|
|
1493
1749
|
}), Lt = N((u, e) => {
|
|
1494
1750
|
e.exports = function(t) {
|
|
@@ -1498,28 +1754,38 @@ $$`;
|
|
|
1498
1754
|
var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Object.defineProperty, i = Object.getOwnPropertyDescriptor, o = function(s) {
|
|
1499
1755
|
return typeof Array.isArray == "function" ? Array.isArray(s) : n.call(s) === "[object Array]";
|
|
1500
1756
|
}, a = function(s) {
|
|
1501
|
-
if (!s || n.call(s) !== "[object Object]")
|
|
1757
|
+
if (!s || n.call(s) !== "[object Object]")
|
|
1758
|
+
return !1;
|
|
1502
1759
|
var c = t.call(s, "constructor"), f = s.constructor && s.constructor.prototype && t.call(s.constructor.prototype, "isPrototypeOf");
|
|
1503
|
-
if (s.constructor && !c && !f)
|
|
1760
|
+
if (s.constructor && !c && !f)
|
|
1761
|
+
return !1;
|
|
1504
1762
|
var h;
|
|
1505
|
-
for (h in s)
|
|
1763
|
+
for (h in s)
|
|
1764
|
+
;
|
|
1506
1765
|
return typeof h > "u" || t.call(s, h);
|
|
1507
1766
|
}, l = function(s, c) {
|
|
1508
1767
|
r && c.name === "__proto__" ? r(s, c.name, { enumerable: !0, configurable: !0, value: c.newValue, writable: !0 }) : s[c.name] = c.newValue;
|
|
1509
1768
|
}, D = function(s, c) {
|
|
1510
|
-
if (c === "__proto__")
|
|
1511
|
-
if (
|
|
1512
|
-
|
|
1769
|
+
if (c === "__proto__")
|
|
1770
|
+
if (t.call(s, c)) {
|
|
1771
|
+
if (i)
|
|
1772
|
+
return i(s, c).value;
|
|
1773
|
+
} else
|
|
1774
|
+
return;
|
|
1513
1775
|
return s[c];
|
|
1514
1776
|
};
|
|
1515
1777
|
e.exports = function s() {
|
|
1516
1778
|
var c, f, h, p, E, A, v = arguments[0], F = 1, B = arguments.length, m = !1;
|
|
1517
|
-
for (typeof v == "boolean" && (m = v, v = arguments[1] || {}, F = 2), (v == null || typeof v != "object" && typeof v != "function") && (v = {}); F < B; ++F)
|
|
1779
|
+
for (typeof v == "boolean" && (m = v, v = arguments[1] || {}, F = 2), (v == null || typeof v != "object" && typeof v != "function") && (v = {}); F < B; ++F)
|
|
1780
|
+
if (c = arguments[F], c != null)
|
|
1781
|
+
for (f in c)
|
|
1782
|
+
h = D(v, f), p = D(c, f), v !== p && (m && p && (a(p) || (E = o(p))) ? (E ? (E = !1, A = h && o(h) ? h : []) : A = h && a(h) ? h : {}, l(v, { name: f, newValue: s(m, A, p) })) : typeof p < "u" && l(v, { name: f, newValue: p }));
|
|
1518
1783
|
return v;
|
|
1519
1784
|
};
|
|
1520
1785
|
}), mn = N((u, e) => {
|
|
1521
1786
|
e.exports = (t) => {
|
|
1522
|
-
if (Object.prototype.toString.call(t) !== "[object Object]")
|
|
1787
|
+
if (Object.prototype.toString.call(t) !== "[object Object]")
|
|
1788
|
+
return !1;
|
|
1523
1789
|
let n = Object.getPrototypeOf(t);
|
|
1524
1790
|
return n === null || n === Object.prototype;
|
|
1525
1791
|
};
|
|
@@ -1535,7 +1801,8 @@ $$`;
|
|
|
1535
1801
|
try {
|
|
1536
1802
|
f = r.apply(null, s);
|
|
1537
1803
|
} catch (h) {
|
|
1538
|
-
if (c && o)
|
|
1804
|
+
if (c && o)
|
|
1805
|
+
throw h;
|
|
1539
1806
|
return l(h);
|
|
1540
1807
|
}
|
|
1541
1808
|
c || (f && typeof f.then == "function" ? f.then(D, l) : f instanceof Error ? l(f) : D(f));
|
|
@@ -1556,7 +1823,8 @@ $$`;
|
|
|
1556
1823
|
return o.run = a, o.use = l, o;
|
|
1557
1824
|
function a() {
|
|
1558
1825
|
var D = -1, s = n.call(arguments, 0, -1), c = arguments[arguments.length - 1];
|
|
1559
|
-
if (typeof c != "function")
|
|
1826
|
+
if (typeof c != "function")
|
|
1827
|
+
throw new Error("Expected function as last argument, not " + c);
|
|
1560
1828
|
f.apply(null, [null].concat(s));
|
|
1561
1829
|
function f(h) {
|
|
1562
1830
|
var p = i[++D], E = n.call(arguments, 0), A = E.slice(1), v = s.length, F = -1;
|
|
@@ -1564,12 +1832,14 @@ $$`;
|
|
|
1564
1832
|
c(h);
|
|
1565
1833
|
return;
|
|
1566
1834
|
}
|
|
1567
|
-
for (; ++F < v; )
|
|
1835
|
+
for (; ++F < v; )
|
|
1836
|
+
(A[F] === null || A[F] === void 0) && (A[F] = s[F]);
|
|
1568
1837
|
s = A, p ? t(p, f).apply(null, s) : c.apply(null, [null].concat(s));
|
|
1569
1838
|
}
|
|
1570
1839
|
}
|
|
1571
1840
|
function l(D) {
|
|
1572
|
-
if (typeof D != "function")
|
|
1841
|
+
if (typeof D != "function")
|
|
1842
|
+
throw new Error("Expected `fn` to be a function, not " + D);
|
|
1573
1843
|
return i.push(D), o;
|
|
1574
1844
|
}
|
|
1575
1845
|
}
|
|
@@ -1608,34 +1878,43 @@ $$`;
|
|
|
1608
1878
|
u.basename = e, u.dirname = t, u.extname = n, u.join = r, u.sep = "/";
|
|
1609
1879
|
function e(l, D) {
|
|
1610
1880
|
var s = 0, c = -1, f, h, p, E;
|
|
1611
|
-
if (D !== void 0 && typeof D != "string")
|
|
1881
|
+
if (D !== void 0 && typeof D != "string")
|
|
1882
|
+
throw new TypeError('"ext" argument must be a string');
|
|
1612
1883
|
if (a(l), f = l.length, D === void 0 || !D.length || D.length > l.length) {
|
|
1613
|
-
for (; f--; )
|
|
1884
|
+
for (; f--; )
|
|
1885
|
+
if (l.charCodeAt(f) === 47) {
|
|
1886
|
+
if (p) {
|
|
1887
|
+
s = f + 1;
|
|
1888
|
+
break;
|
|
1889
|
+
}
|
|
1890
|
+
} else
|
|
1891
|
+
c < 0 && (p = !0, c = f + 1);
|
|
1892
|
+
return c < 0 ? "" : l.slice(s, c);
|
|
1893
|
+
}
|
|
1894
|
+
if (D === l)
|
|
1895
|
+
return "";
|
|
1896
|
+
for (h = -1, E = D.length - 1; f--; )
|
|
1897
|
+
if (l.charCodeAt(f) === 47) {
|
|
1614
1898
|
if (p) {
|
|
1615
1899
|
s = f + 1;
|
|
1616
1900
|
break;
|
|
1617
1901
|
}
|
|
1618
|
-
} else
|
|
1619
|
-
|
|
1620
|
-
}
|
|
1621
|
-
if (D === l) return "";
|
|
1622
|
-
for (h = -1, E = D.length - 1; f--; ) if (l.charCodeAt(f) === 47) {
|
|
1623
|
-
if (p) {
|
|
1624
|
-
s = f + 1;
|
|
1625
|
-
break;
|
|
1626
|
-
}
|
|
1627
|
-
} else h < 0 && (p = !0, h = f + 1), E > -1 && (l.charCodeAt(f) === D.charCodeAt(E--) ? E < 0 && (c = f) : (E = -1, c = h));
|
|
1902
|
+
} else
|
|
1903
|
+
h < 0 && (p = !0, h = f + 1), E > -1 && (l.charCodeAt(f) === D.charCodeAt(E--) ? E < 0 && (c = f) : (E = -1, c = h));
|
|
1628
1904
|
return s === c ? c = h : c < 0 && (c = l.length), l.slice(s, c);
|
|
1629
1905
|
}
|
|
1630
1906
|
function t(l) {
|
|
1631
1907
|
var D, s, c;
|
|
1632
|
-
if (a(l), !l.length)
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1908
|
+
if (a(l), !l.length)
|
|
1909
|
+
return ".";
|
|
1910
|
+
for (D = -1, c = l.length; --c; )
|
|
1911
|
+
if (l.charCodeAt(c) === 47) {
|
|
1912
|
+
if (s) {
|
|
1913
|
+
D = c;
|
|
1914
|
+
break;
|
|
1915
|
+
}
|
|
1916
|
+
} else
|
|
1917
|
+
s || (s = !0);
|
|
1639
1918
|
return D < 0 ? l.charCodeAt(0) === 47 ? "/" : "." : D === 1 && l.charCodeAt(0) === 47 ? "//" : l.slice(0, D);
|
|
1640
1919
|
}
|
|
1641
1920
|
function n(l) {
|
|
@@ -1653,7 +1932,8 @@ $$`;
|
|
|
1653
1932
|
return D < 0 || c < 0 || f === 0 || f === 1 && D === c - 1 && D === s + 1 ? "" : l.slice(D, c);
|
|
1654
1933
|
}
|
|
1655
1934
|
function r() {
|
|
1656
|
-
for (var l = -1, D; ++l < arguments.length; )
|
|
1935
|
+
for (var l = -1, D; ++l < arguments.length; )
|
|
1936
|
+
a(arguments[l]), arguments[l] && (D = D === void 0 ? arguments[l] : D + "/" + arguments[l]);
|
|
1657
1937
|
return D === void 0 ? "." : i(D);
|
|
1658
1938
|
}
|
|
1659
1939
|
function i(l) {
|
|
@@ -1662,33 +1942,39 @@ $$`;
|
|
|
1662
1942
|
}
|
|
1663
1943
|
function o(l, D) {
|
|
1664
1944
|
for (var s = "", c = 0, f = -1, h = 0, p = -1, E, A; ++p <= l.length; ) {
|
|
1665
|
-
if (p < l.length)
|
|
1945
|
+
if (p < l.length)
|
|
1946
|
+
E = l.charCodeAt(p);
|
|
1666
1947
|
else {
|
|
1667
|
-
if (E === 47)
|
|
1948
|
+
if (E === 47)
|
|
1949
|
+
break;
|
|
1668
1950
|
E = 47;
|
|
1669
1951
|
}
|
|
1670
1952
|
if (E === 47) {
|
|
1671
|
-
if (!(f === p - 1 || h === 1))
|
|
1672
|
-
if (
|
|
1673
|
-
if (s.length
|
|
1674
|
-
if (
|
|
1675
|
-
|
|
1953
|
+
if (!(f === p - 1 || h === 1))
|
|
1954
|
+
if (f !== p - 1 && h === 2) {
|
|
1955
|
+
if (s.length < 2 || c !== 2 || s.charCodeAt(s.length - 1) !== 46 || s.charCodeAt(s.length - 2) !== 46) {
|
|
1956
|
+
if (s.length > 2) {
|
|
1957
|
+
if (A = s.lastIndexOf("/"), A !== s.length - 1) {
|
|
1958
|
+
A < 0 ? (s = "", c = 0) : (s = s.slice(0, A), c = s.length - 1 - s.lastIndexOf("/")), f = p, h = 0;
|
|
1959
|
+
continue;
|
|
1960
|
+
}
|
|
1961
|
+
} else if (s.length) {
|
|
1962
|
+
s = "", c = 0, f = p, h = 0;
|
|
1676
1963
|
continue;
|
|
1677
1964
|
}
|
|
1678
|
-
} else if (s.length) {
|
|
1679
|
-
s = "", c = 0, f = p, h = 0;
|
|
1680
|
-
continue;
|
|
1681
1965
|
}
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1966
|
+
D && (s = s.length ? s + "/.." : "..", c = 2);
|
|
1967
|
+
} else
|
|
1968
|
+
s.length ? s += "/" + l.slice(f + 1, p) : s = l.slice(f + 1, p), c = p - f - 1;
|
|
1685
1969
|
f = p, h = 0;
|
|
1686
|
-
} else
|
|
1970
|
+
} else
|
|
1971
|
+
E === 46 && h > -1 ? h++ : h = -1;
|
|
1687
1972
|
}
|
|
1688
1973
|
return s;
|
|
1689
1974
|
}
|
|
1690
1975
|
function a(l) {
|
|
1691
|
-
if (typeof l != "string")
|
|
1976
|
+
if (typeof l != "string")
|
|
1977
|
+
throw new TypeError("Path must be a string. Received " + JSON.stringify(l));
|
|
1692
1978
|
}
|
|
1693
1979
|
}), yn = N((u) => {
|
|
1694
1980
|
u.cwd = e;
|
|
@@ -1702,12 +1988,18 @@ $$`;
|
|
|
1702
1988
|
a.prototype.toString = F, Object.defineProperty(a.prototype, "path", { get: l, set: D }), Object.defineProperty(a.prototype, "dirname", { get: s, set: c }), Object.defineProperty(a.prototype, "basename", { get: f, set: h }), Object.defineProperty(a.prototype, "extname", { get: p, set: E }), Object.defineProperty(a.prototype, "stem", { get: A, set: v });
|
|
1703
1989
|
function a(C) {
|
|
1704
1990
|
var g, y;
|
|
1705
|
-
if (!C)
|
|
1706
|
-
|
|
1707
|
-
else if (
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1991
|
+
if (!C)
|
|
1992
|
+
C = {};
|
|
1993
|
+
else if (typeof C == "string" || r(C))
|
|
1994
|
+
C = { contents: C };
|
|
1995
|
+
else if ("message" in C && "messages" in C)
|
|
1996
|
+
return C;
|
|
1997
|
+
if (!(this instanceof a))
|
|
1998
|
+
return new a(C);
|
|
1999
|
+
for (this.data = {}, this.messages = [], this.history = [], this.cwd = n.cwd(), y = -1; ++y < o.length; )
|
|
2000
|
+
g = o[y], i.call(C, g) && (this[g] = C[g]);
|
|
2001
|
+
for (g in C)
|
|
2002
|
+
o.indexOf(g) < 0 && (this[g] = C[g]);
|
|
1711
2003
|
}
|
|
1712
2004
|
function l() {
|
|
1713
2005
|
return this.history[this.history.length - 1];
|
|
@@ -1732,8 +2024,10 @@ $$`;
|
|
|
1732
2024
|
}
|
|
1733
2025
|
function E(C) {
|
|
1734
2026
|
if (B(C, "extname"), d(this.path, "extname"), C) {
|
|
1735
|
-
if (C.charCodeAt(0) !== 46)
|
|
1736
|
-
|
|
2027
|
+
if (C.charCodeAt(0) !== 46)
|
|
2028
|
+
throw new Error("`extname` must start with `.`");
|
|
2029
|
+
if (C.indexOf(".", 1) > -1)
|
|
2030
|
+
throw new Error("`extname` cannot contain multiple dots");
|
|
1737
2031
|
}
|
|
1738
2032
|
this.path = t.join(this.dirname, this.stem + (C || ""));
|
|
1739
2033
|
}
|
|
@@ -1747,13 +2041,16 @@ $$`;
|
|
|
1747
2041
|
return (this.contents || "").toString(C);
|
|
1748
2042
|
}
|
|
1749
2043
|
function B(C, g) {
|
|
1750
|
-
if (C && C.indexOf(t.sep) > -1)
|
|
2044
|
+
if (C && C.indexOf(t.sep) > -1)
|
|
2045
|
+
throw new Error("`" + g + "` cannot be a path: did not expect `" + t.sep + "`");
|
|
1751
2046
|
}
|
|
1752
2047
|
function m(C, g) {
|
|
1753
|
-
if (!C)
|
|
2048
|
+
if (!C)
|
|
2049
|
+
throw new Error("`" + g + "` cannot be empty");
|
|
1754
2050
|
}
|
|
1755
2051
|
function d(C, g) {
|
|
1756
|
-
if (!C)
|
|
2052
|
+
if (!C)
|
|
2053
|
+
throw new Error("Setting `" + g + "` requires `path` to be set too");
|
|
1757
2054
|
}
|
|
1758
2055
|
}), kn = N((u, e) => {
|
|
1759
2056
|
var t = Bn(), n = wn();
|
|
@@ -1793,13 +2090,16 @@ $$`;
|
|
|
1793
2090
|
var C = [], g = o(), y = {}, w = -1, T;
|
|
1794
2091
|
return b.data = L, b.freeze = k, b.attachers = C, b.use = I, b.parse = S, b.stringify = V, b.run = M, b.runSync = z, b.process = q, b.processSync = J, b;
|
|
1795
2092
|
function b() {
|
|
1796
|
-
for (var j = p(), O = -1; ++O < C.length; )
|
|
2093
|
+
for (var j = p(), O = -1; ++O < C.length; )
|
|
2094
|
+
j.use.apply(null, C[O]);
|
|
1797
2095
|
return j.data(r(!0, {}, y)), j;
|
|
1798
2096
|
}
|
|
1799
2097
|
function k() {
|
|
1800
2098
|
var j, O;
|
|
1801
|
-
if (T)
|
|
1802
|
-
|
|
2099
|
+
if (T)
|
|
2100
|
+
return b;
|
|
2101
|
+
for (; ++w < C.length; )
|
|
2102
|
+
j = C[w], j[1] !== !1 && (j[1] === !0 && (j[1] = void 0), O = j[0].apply(b, j.slice(1)), typeof O == "function" && g.use(O));
|
|
1803
2103
|
return T = !0, w = 1 / 0, b;
|
|
1804
2104
|
}
|
|
1805
2105
|
function L(j, O) {
|
|
@@ -1807,22 +2107,33 @@ $$`;
|
|
|
1807
2107
|
}
|
|
1808
2108
|
function I(j) {
|
|
1809
2109
|
var O;
|
|
1810
|
-
if (B("use", T), j != null)
|
|
1811
|
-
|
|
1812
|
-
|
|
2110
|
+
if (B("use", T), j != null)
|
|
2111
|
+
if (typeof j == "function")
|
|
2112
|
+
P.apply(null, arguments);
|
|
2113
|
+
else if (typeof j == "object")
|
|
2114
|
+
"length" in j ? R(j) : $(j);
|
|
2115
|
+
else
|
|
2116
|
+
throw new Error("Expected usable value, not `" + j + "`");
|
|
1813
2117
|
return O && (y.settings = r(y.settings || {}, O)), b;
|
|
1814
2118
|
function $(G) {
|
|
1815
2119
|
R(G.plugins), G.settings && (O = r(O || {}, G.settings));
|
|
1816
2120
|
}
|
|
1817
2121
|
function U(G) {
|
|
1818
|
-
if (typeof G == "function")
|
|
1819
|
-
|
|
1820
|
-
else
|
|
2122
|
+
if (typeof G == "function")
|
|
2123
|
+
P(G);
|
|
2124
|
+
else if (typeof G == "object")
|
|
2125
|
+
"length" in G ? P.apply(null, G) : $(G);
|
|
2126
|
+
else
|
|
2127
|
+
throw new Error("Expected usable value, not `" + G + "`");
|
|
1821
2128
|
}
|
|
1822
2129
|
function R(G) {
|
|
1823
2130
|
var W = -1;
|
|
1824
|
-
if (G != null)
|
|
1825
|
-
|
|
2131
|
+
if (G != null)
|
|
2132
|
+
if (typeof G == "object" && "length" in G)
|
|
2133
|
+
for (; ++W < G.length; )
|
|
2134
|
+
U(G[W]);
|
|
2135
|
+
else
|
|
2136
|
+
throw new Error("Expected a list of plugins, not `" + G + "`");
|
|
1826
2137
|
}
|
|
1827
2138
|
function P(G, W) {
|
|
1828
2139
|
var Y = x(G);
|
|
@@ -1830,14 +2141,17 @@ $$`;
|
|
|
1830
2141
|
}
|
|
1831
2142
|
}
|
|
1832
2143
|
function x(j) {
|
|
1833
|
-
for (var O = -1; ++O < C.length; )
|
|
2144
|
+
for (var O = -1; ++O < C.length; )
|
|
2145
|
+
if (C[O][0] === j)
|
|
2146
|
+
return C[O];
|
|
1834
2147
|
}
|
|
1835
2148
|
function S(j) {
|
|
1836
2149
|
var O = a(j), $;
|
|
1837
2150
|
return k(), $ = b.Parser, v("parse", $), E($, "parse") ? new $(String(O), O).parse() : $(String(O), O);
|
|
1838
2151
|
}
|
|
1839
2152
|
function M(j, O, $) {
|
|
1840
|
-
if (m(j), k(), !$ && typeof O == "function" && ($ = O, O = null), !$)
|
|
2153
|
+
if (m(j), k(), !$ && typeof O == "function" && ($ = O, O = null), !$)
|
|
2154
|
+
return new Promise(U);
|
|
1841
2155
|
U(null, $);
|
|
1842
2156
|
function U(R, P) {
|
|
1843
2157
|
g.run(j, a(O), G);
|
|
@@ -1858,7 +2172,8 @@ $$`;
|
|
|
1858
2172
|
return k(), U = b.Compiler, F("stringify", U), m(j), E(U, "compile") ? new U(j, $).compile() : U(j, $);
|
|
1859
2173
|
}
|
|
1860
2174
|
function q(j, O) {
|
|
1861
|
-
if (k(), v("process", b.Parser), F("process", b.Compiler), !O)
|
|
2175
|
+
if (k(), v("process", b.Parser), F("process", b.Compiler), !O)
|
|
2176
|
+
return new Promise($);
|
|
1862
2177
|
$(null, O);
|
|
1863
2178
|
function $(U, R) {
|
|
1864
2179
|
var P = a(j);
|
|
@@ -1881,51 +2196,67 @@ $$`;
|
|
|
1881
2196
|
}
|
|
1882
2197
|
function A(C) {
|
|
1883
2198
|
var g;
|
|
1884
|
-
for (g in C)
|
|
2199
|
+
for (g in C)
|
|
2200
|
+
return !0;
|
|
1885
2201
|
return !1;
|
|
1886
2202
|
}
|
|
1887
2203
|
function v(C, g) {
|
|
1888
|
-
if (typeof g != "function")
|
|
2204
|
+
if (typeof g != "function")
|
|
2205
|
+
throw new Error("Cannot `" + C + "` without `Parser`");
|
|
1889
2206
|
}
|
|
1890
2207
|
function F(C, g) {
|
|
1891
|
-
if (typeof g != "function")
|
|
2208
|
+
if (typeof g != "function")
|
|
2209
|
+
throw new Error("Cannot `" + C + "` without `Compiler`");
|
|
1892
2210
|
}
|
|
1893
2211
|
function B(C, g) {
|
|
1894
|
-
if (g)
|
|
2212
|
+
if (g)
|
|
2213
|
+
throw new Error("Cannot invoke `" + C + "` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.");
|
|
1895
2214
|
}
|
|
1896
2215
|
function m(C) {
|
|
1897
|
-
if (!C || typeof C.type != "string")
|
|
2216
|
+
if (!C || typeof C.type != "string")
|
|
2217
|
+
throw new Error("Expected node, got `" + C + "`");
|
|
1898
2218
|
}
|
|
1899
2219
|
function d(C, g, y) {
|
|
1900
|
-
if (!y)
|
|
2220
|
+
if (!y)
|
|
2221
|
+
throw new Error("`" + C + "` finished async. Use `" + g + "` instead");
|
|
1901
2222
|
}
|
|
1902
2223
|
}), Tt = {};
|
|
1903
2224
|
Et(Tt, { languages: () => qa, options: () => La, parsers: () => Ht, printers: () => Za });
|
|
1904
2225
|
var Ln = (u, e, t) => {
|
|
1905
|
-
if (!(u && e == null))
|
|
2226
|
+
if (!(u && e == null))
|
|
2227
|
+
return Array.isArray(e) || typeof e == "string" ? e[t < 0 ? e.length + t : t] : e.at(t);
|
|
1906
2228
|
}, Au = Ln, Tn = (u, e, t, n) => {
|
|
1907
|
-
if (!(u && e == null))
|
|
2229
|
+
if (!(u && e == null))
|
|
2230
|
+
return e.replaceAll ? e.replaceAll(t, n) : t.global ? e.replace(t, n) : e.split(t).join(n);
|
|
1908
2231
|
}, lu = Tn, On = Mu(Pe());
|
|
1909
2232
|
function xe(u) {
|
|
1910
|
-
if (typeof u != "string")
|
|
2233
|
+
if (typeof u != "string")
|
|
2234
|
+
throw new TypeError("Expected a string");
|
|
1911
2235
|
return u.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
1912
2236
|
}
|
|
1913
2237
|
var Iu = "string", Su = "array", Be = "cursor", Wu = "indent", Hu = "align", ie = "trim", Lu = "group", Pu = "fill", qu = "if-break", ae = "indent-if-break", oe = "line-suffix", le = "line-suffix-boundary", bu = "line", se = "label", _u = "break-parent", Ot = /* @__PURE__ */ new Set([Be, Wu, Hu, ie, Lu, Pu, qu, ae, oe, le, bu, se, _u]);
|
|
1914
2238
|
function Rn(u) {
|
|
1915
|
-
if (typeof u == "string")
|
|
1916
|
-
|
|
1917
|
-
if (
|
|
2239
|
+
if (typeof u == "string")
|
|
2240
|
+
return Iu;
|
|
2241
|
+
if (Array.isArray(u))
|
|
2242
|
+
return Su;
|
|
2243
|
+
if (!u)
|
|
2244
|
+
return;
|
|
1918
2245
|
let { type: e } = u;
|
|
1919
|
-
if (Ot.has(e))
|
|
2246
|
+
if (Ot.has(e))
|
|
2247
|
+
return e;
|
|
1920
2248
|
}
|
|
1921
2249
|
var Tu = Rn, Nn = (u) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(u);
|
|
1922
2250
|
function In(u) {
|
|
1923
2251
|
let e = u === null ? "null" : typeof u;
|
|
1924
|
-
if (e !== "string" && e !== "object")
|
|
2252
|
+
if (e !== "string" && e !== "object")
|
|
2253
|
+
return `Unexpected doc '${e}',
|
|
1925
2254
|
Expected it to be 'string' or 'object'.`;
|
|
1926
|
-
if (Tu(u))
|
|
2255
|
+
if (Tu(u))
|
|
2256
|
+
throw new Error("doc is valid.");
|
|
1927
2257
|
let t = Object.prototype.toString.call(u);
|
|
1928
|
-
if (t !== "[object Object]")
|
|
2258
|
+
if (t !== "[object Object]")
|
|
2259
|
+
return `Unexpected doc '${t}'.`;
|
|
1929
2260
|
let n = Nn([...Ot].map((r) => `'${r}'`));
|
|
1930
2261
|
return `Unexpected doc.type '${u.type}'.
|
|
1931
2262
|
Expected it to be ${n}.`;
|
|
@@ -1946,47 +2277,55 @@ function jn(u, e, t, n) {
|
|
|
1946
2277
|
}
|
|
1947
2278
|
t && r.push(i, Ye);
|
|
1948
2279
|
let o = Tu(i);
|
|
1949
|
-
if (!o)
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
2280
|
+
if (!o)
|
|
2281
|
+
throw new Fe(i);
|
|
2282
|
+
if (e?.(i) !== !1)
|
|
2283
|
+
switch (o) {
|
|
2284
|
+
case Su:
|
|
2285
|
+
case Pu: {
|
|
2286
|
+
let a = o === Su ? i : i.parts;
|
|
2287
|
+
for (let l = a.length, D = l - 1; D >= 0; --D)
|
|
2288
|
+
r.push(a[D]);
|
|
2289
|
+
break;
|
|
2290
|
+
}
|
|
2291
|
+
case qu:
|
|
2292
|
+
r.push(i.flatContents, i.breakContents);
|
|
2293
|
+
break;
|
|
2294
|
+
case Lu:
|
|
2295
|
+
if (n && i.expandedStates)
|
|
2296
|
+
for (let a = i.expandedStates.length, l = a - 1; l >= 0; --l)
|
|
2297
|
+
r.push(i.expandedStates[l]);
|
|
2298
|
+
else
|
|
2299
|
+
r.push(i.contents);
|
|
2300
|
+
break;
|
|
2301
|
+
case Hu:
|
|
2302
|
+
case Wu:
|
|
2303
|
+
case ae:
|
|
2304
|
+
case se:
|
|
2305
|
+
case oe:
|
|
2306
|
+
r.push(i.contents);
|
|
2307
|
+
break;
|
|
2308
|
+
case Iu:
|
|
2309
|
+
case Be:
|
|
2310
|
+
case ie:
|
|
2311
|
+
case le:
|
|
2312
|
+
case bu:
|
|
2313
|
+
case _u:
|
|
2314
|
+
break;
|
|
2315
|
+
default:
|
|
2316
|
+
throw new Fe(i);
|
|
1956
2317
|
}
|
|
1957
|
-
case qu:
|
|
1958
|
-
r.push(i.flatContents, i.breakContents);
|
|
1959
|
-
break;
|
|
1960
|
-
case Lu:
|
|
1961
|
-
if (n && i.expandedStates) for (let a = i.expandedStates.length, l = a - 1; l >= 0; --l) r.push(i.expandedStates[l]);
|
|
1962
|
-
else r.push(i.contents);
|
|
1963
|
-
break;
|
|
1964
|
-
case Hu:
|
|
1965
|
-
case Wu:
|
|
1966
|
-
case ae:
|
|
1967
|
-
case se:
|
|
1968
|
-
case oe:
|
|
1969
|
-
r.push(i.contents);
|
|
1970
|
-
break;
|
|
1971
|
-
case Iu:
|
|
1972
|
-
case Be:
|
|
1973
|
-
case ie:
|
|
1974
|
-
case le:
|
|
1975
|
-
case bu:
|
|
1976
|
-
case _u:
|
|
1977
|
-
break;
|
|
1978
|
-
default:
|
|
1979
|
-
throw new Fe(i);
|
|
1980
|
-
}
|
|
1981
2318
|
}
|
|
1982
2319
|
}
|
|
1983
2320
|
var $n = jn;
|
|
1984
2321
|
function zn(u, e) {
|
|
1985
|
-
if (typeof u == "string")
|
|
2322
|
+
if (typeof u == "string")
|
|
2323
|
+
return e(u);
|
|
1986
2324
|
let t = /* @__PURE__ */ new Map();
|
|
1987
2325
|
return n(u);
|
|
1988
2326
|
function n(i) {
|
|
1989
|
-
if (t.has(i))
|
|
2327
|
+
if (t.has(i))
|
|
2328
|
+
return t.get(i);
|
|
1990
2329
|
let o = r(i);
|
|
1991
2330
|
return t.set(i, o), o;
|
|
1992
2331
|
}
|
|
@@ -2031,7 +2370,8 @@ function Mn(u) {
|
|
|
2031
2370
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2032
2371
|
function n(i) {
|
|
2033
2372
|
if (i.type === _u && Ke(t), i.type === Lu) {
|
|
2034
|
-
if (t.push(i), e.has(i))
|
|
2373
|
+
if (t.push(i), e.has(i))
|
|
2374
|
+
return !1;
|
|
2035
2375
|
e.add(i);
|
|
2036
2376
|
}
|
|
2037
2377
|
}
|
|
@@ -2067,7 +2407,8 @@ function Gn(u, e = "", t = {}) {
|
|
|
2067
2407
|
var Ae = { type: _u }, Me = { type: bu, hard: !0 }, Wn = { type: bu, hard: !0, literal: !0 }, Rt = { type: bu }, Nt = { type: bu, soft: !0 }, iu = [Me, Ae], Le = [Wn, Ae];
|
|
2068
2408
|
function It(u, e) {
|
|
2069
2409
|
let t = [];
|
|
2070
|
-
for (let n = 0; n < e.length; n++)
|
|
2410
|
+
for (let n = 0; n < e.length; n++)
|
|
2411
|
+
n !== 0 && t.push(u), t.push(e[n]);
|
|
2071
2412
|
return t;
|
|
2072
2413
|
}
|
|
2073
2414
|
function Hn(u, e) {
|
|
@@ -2077,19 +2418,23 @@ function Hn(u, e) {
|
|
|
2077
2418
|
var Pt = Hn;
|
|
2078
2419
|
function _n(u, e) {
|
|
2079
2420
|
let t = u.match(new RegExp(`(${xe(e)})+`, "gu"));
|
|
2080
|
-
if (t === null)
|
|
2421
|
+
if (t === null)
|
|
2422
|
+
return 0;
|
|
2081
2423
|
let n = /* @__PURE__ */ new Map(), r = 0;
|
|
2082
2424
|
for (let i of t) {
|
|
2083
2425
|
let o = i.length / e.length;
|
|
2084
2426
|
n.set(o, !0), o > r && (r = o);
|
|
2085
2427
|
}
|
|
2086
|
-
for (let i = 1; i < r; i++)
|
|
2428
|
+
for (let i = 1; i < r; i++)
|
|
2429
|
+
if (!n.get(i))
|
|
2430
|
+
return i;
|
|
2087
2431
|
return r + 1;
|
|
2088
2432
|
}
|
|
2089
2433
|
var Jn = _n, fe = "'", Xe = '"';
|
|
2090
2434
|
function Yn(u, e) {
|
|
2091
2435
|
let t = e === !0 || e === fe ? fe : Xe, n = t === fe ? Xe : fe, r = 0, i = 0;
|
|
2092
|
-
for (let o of u)
|
|
2436
|
+
for (let o of u)
|
|
2437
|
+
o === t ? r++ : o === n && i++;
|
|
2093
2438
|
return r > i ? n : t;
|
|
2094
2439
|
}
|
|
2095
2440
|
var Kn = Yn, Xn = class extends Error {
|
|
@@ -2104,22 +2449,27 @@ function ui(u) {
|
|
|
2104
2449
|
var ei = ui, ti = ["noformat", "noprettier"], jt = ["format", "prettier"], ri = "format", Zu = 3;
|
|
2105
2450
|
function ni(u) {
|
|
2106
2451
|
let e = u.slice(0, Zu);
|
|
2107
|
-
if (e !== "---" && e !== "+++")
|
|
2452
|
+
if (e !== "---" && e !== "+++")
|
|
2453
|
+
return;
|
|
2108
2454
|
let t = u.indexOf(`
|
|
2109
2455
|
`, Zu);
|
|
2110
|
-
if (t === -1)
|
|
2456
|
+
if (t === -1)
|
|
2457
|
+
return;
|
|
2111
2458
|
let n = u.slice(Zu, t).trim(), r = u.indexOf(`
|
|
2112
2459
|
${e}`, t), i = n;
|
|
2113
2460
|
if (i || (i = e === "+++" ? "toml" : "yaml"), r === -1 && e === "---" && i === "yaml" && (r = u.indexOf(`
|
|
2114
|
-
...`, t)), r === -1)
|
|
2461
|
+
...`, t)), r === -1)
|
|
2462
|
+
return;
|
|
2115
2463
|
let o = r + 1 + Zu, a = u.charAt(o + 1);
|
|
2116
|
-
if (!/\s?/u.test(a))
|
|
2464
|
+
if (!/\s?/u.test(a))
|
|
2465
|
+
return;
|
|
2117
2466
|
let l = u.slice(0, o);
|
|
2118
2467
|
return { type: "front-matter", language: i, explicitLanguage: n, value: u.slice(t + 1, r), startDelimiter: e, endDelimiter: l.slice(-Zu), raw: l };
|
|
2119
2468
|
}
|
|
2120
2469
|
function ii(u) {
|
|
2121
2470
|
let e = ni(u);
|
|
2122
|
-
if (!e)
|
|
2471
|
+
if (!e)
|
|
2472
|
+
return { content: u };
|
|
2123
2473
|
let { raw: t } = e;
|
|
2124
2474
|
return { frontMatter: e, content: lu(!1, t, /[^\n]/gu, " ") + u.slice(t.length) };
|
|
2125
2475
|
}
|
|
@@ -2145,13 +2495,17 @@ ${e.content}` : `${t}
|
|
|
2145
2495
|
${e.content}`;
|
|
2146
2496
|
}, si = /* @__PURE__ */ new Set(["position", "raw"]);
|
|
2147
2497
|
function $t(u, e, t) {
|
|
2148
|
-
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")
|
|
2498
|
+
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")
|
|
2499
|
+
return null;
|
|
2149
2500
|
if (u.type === "inlineCode" && (e.value = lu(!1, u.value, `
|
|
2150
|
-
`, " ")), u.type === "wikiLink" && (e.value = lu(!1, u.value.trim(), /[\t\n]+/gu, " ")), (u.type === "definition" || u.type === "linkReference" || u.type === "imageReference") && (e.label = (0, Qn.default)(u.label)), (u.type === "link" || u.type === "image") && u.url && u.url.includes("("))
|
|
2151
|
-
|
|
2501
|
+
`, " ")), u.type === "wikiLink" && (e.value = lu(!1, u.value.trim(), /[\t\n]+/gu, " ")), (u.type === "definition" || u.type === "linkReference" || u.type === "imageReference") && (e.label = (0, Qn.default)(u.label)), (u.type === "link" || u.type === "image") && u.url && u.url.includes("("))
|
|
2502
|
+
for (let n of "<>")
|
|
2503
|
+
e.url = lu(!1, u.url, n, encodeURIComponent(n));
|
|
2504
|
+
if ((u.type === "definition" || u.type === "link" || u.type === "image") && u.title && (e.title = lu(!1, u.title, /\\(?=["')])/gu, "")), t?.type === "root" && t.children.length > 0 && (t.children[0] === u || ei(t.children[0]) && t.children[1] === u) && u.type === "html" && Ue(u.value, jt))
|
|
2505
|
+
return null;
|
|
2152
2506
|
}
|
|
2153
2507
|
$t.ignoredProperties = si;
|
|
2154
|
-
var Di = $t, ci = /(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\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{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{323af}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u, ue =
|
|
2508
|
+
var Di = $t, ci = /(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\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{2ebf0}-\u{2ee5d}\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;
|
|
2155
2509
|
async function fi(u, e) {
|
|
2156
2510
|
if (u.language === "yaml") {
|
|
2157
2511
|
let t = u.value.trim(), n = t ? await e(t, { parser: "yaml" }) : "";
|
|
@@ -2159,10 +2513,12 @@ async function fi(u, e) {
|
|
|
2159
2513
|
}
|
|
2160
2514
|
}
|
|
2161
2515
|
var pi = fi, hi = (u, e) => {
|
|
2162
|
-
if (!(u && e == null))
|
|
2516
|
+
if (!(u && e == null))
|
|
2517
|
+
return e.toReversed || !Array.isArray(e) ? e.toReversed() : [...e].reverse();
|
|
2163
2518
|
}, di = hi, Ze, Qe, ut, et, tt, Fi = ((Ze = globalThis.Deno) == null ? void 0 : Ze.build.os) === "windows" || ((ut = (Qe = globalThis.navigator) == null ? void 0 : Qe.platform) == null ? void 0 : ut.startsWith("Win")) || ((tt = (et = globalThis.process) == null ? void 0 : et.platform) == null ? void 0 : tt.startsWith("win")) || !1;
|
|
2164
2519
|
function zt(u) {
|
|
2165
|
-
if (u = u instanceof URL ? u : new URL(u), u.protocol !== "file:")
|
|
2520
|
+
if (u = u instanceof URL ? u : new URL(u), u.protocol !== "file:")
|
|
2521
|
+
throw new TypeError(`URL must be a file URL: received "${u.protocol}"`);
|
|
2166
2522
|
return u;
|
|
2167
2523
|
}
|
|
2168
2524
|
function Ci(u) {
|
|
@@ -2178,21 +2534,25 @@ function gi(u) {
|
|
|
2178
2534
|
}
|
|
2179
2535
|
var mi = gi, Ei = (u) => String(u).split(/[/\\]/u).pop();
|
|
2180
2536
|
function rt(u, e) {
|
|
2181
|
-
if (!e)
|
|
2537
|
+
if (!e)
|
|
2538
|
+
return;
|
|
2182
2539
|
let t = Ei(e).toLowerCase();
|
|
2183
2540
|
return u.find(({ filenames: n }) => n?.some((r) => r.toLowerCase() === t)) ?? u.find(({ extensions: n }) => n?.some((r) => t.endsWith(r)));
|
|
2184
2541
|
}
|
|
2185
2542
|
function vi(u, e) {
|
|
2186
|
-
if (e)
|
|
2543
|
+
if (e)
|
|
2544
|
+
return u.find(({ name: t }) => t.toLowerCase() === e) ?? u.find(({ aliases: t }) => t?.includes(e)) ?? u.find(({ extensions: t }) => t?.includes(`.${e}`));
|
|
2187
2545
|
}
|
|
2188
2546
|
function nt(u, e) {
|
|
2189
2547
|
if (e) {
|
|
2190
|
-
if (String(e).startsWith("file:"))
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2548
|
+
if (String(e).startsWith("file:"))
|
|
2549
|
+
try {
|
|
2550
|
+
e = mi(e);
|
|
2551
|
+
} catch {
|
|
2552
|
+
return;
|
|
2553
|
+
}
|
|
2554
|
+
if (typeof e == "string")
|
|
2555
|
+
return u.find(({ isSupported: t }) => t?.({ filepath: e }));
|
|
2196
2556
|
}
|
|
2197
2557
|
}
|
|
2198
2558
|
function xi(u, e) {
|
|
@@ -2207,7 +2567,7 @@ function ge(u) {
|
|
|
2207
2567
|
function me(u) {
|
|
2208
2568
|
return u.position.end.offset;
|
|
2209
2569
|
}
|
|
2210
|
-
var Mt = /* @__PURE__ */ new Set(["liquidNode", "inlineCode", "emphasis", "esComment", "strong", "delete", "wikiLink", "link", "linkReference", "image", "imageReference", "footnote", "footnoteReference", "sentence", "whitespace", "word", "break", "inlineMath"]), Ut = /* @__PURE__ */ new Set([...Mt, "tableCell", "paragraph", "heading"]), re = "non-cjk", xu = "cj-letter", zu = "k-letter", Ee = "cjk-punctuation", yi =
|
|
2570
|
+
var Mt = /* @__PURE__ */ new Set(["liquidNode", "inlineCode", "emphasis", "esComment", "strong", "delete", "wikiLink", "link", "linkReference", "image", "imageReference", "footnote", "footnoteReference", "sentence", "whitespace", "word", "break", "inlineMath"]), Ut = /* @__PURE__ */ new Set([...Mt, "tableCell", "paragraph", "heading"]), re = "non-cjk", xu = "cj-letter", zu = "k-letter", Ee = "cjk-punctuation", yi = /\p{Script_Extensions=Hangul}/u;
|
|
2211
2571
|
function Vt(u) {
|
|
2212
2572
|
let e = [], t = u.split(/([\t\n ]+)/u);
|
|
2213
2573
|
for (let [r, i] of t.entries()) {
|
|
@@ -2216,23 +2576,25 @@ function Vt(u) {
|
|
|
2216
2576
|
` : " " });
|
|
2217
2577
|
continue;
|
|
2218
2578
|
}
|
|
2219
|
-
if ((r === 0 || r === t.length - 1) && i === "")
|
|
2579
|
+
if ((r === 0 || r === t.length - 1) && i === "")
|
|
2580
|
+
continue;
|
|
2220
2581
|
let o = i.split(new RegExp(`(${ci.source})`, "u"));
|
|
2221
|
-
for (let [a, l] of o.entries())
|
|
2222
|
-
if (a
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2582
|
+
for (let [a, l] of o.entries())
|
|
2583
|
+
if (!((a === 0 || a === o.length - 1) && l === "")) {
|
|
2584
|
+
if (a % 2 === 0) {
|
|
2585
|
+
l !== "" && n({ type: "word", value: l, kind: re, isCJ: !1, hasLeadingPunctuation: ue.test(l[0]), hasTrailingPunctuation: ue.test(Au(!1, l, -1)) });
|
|
2586
|
+
continue;
|
|
2587
|
+
}
|
|
2588
|
+
if (ue.test(l)) {
|
|
2589
|
+
n({ type: "word", value: l, kind: Ee, isCJ: !0, hasLeadingPunctuation: !0, hasTrailingPunctuation: !0 });
|
|
2590
|
+
continue;
|
|
2591
|
+
}
|
|
2592
|
+
if (yi.test(l)) {
|
|
2593
|
+
n({ type: "word", value: l, kind: zu, isCJ: !1, hasLeadingPunctuation: !1, hasTrailingPunctuation: !1 });
|
|
2594
|
+
continue;
|
|
2595
|
+
}
|
|
2596
|
+
n({ type: "word", value: l, kind: xu, isCJ: !0, hasLeadingPunctuation: !1, hasTrailingPunctuation: !1 });
|
|
2233
2597
|
}
|
|
2234
|
-
n({ type: "word", value: l, kind: xu, isCJ: !0, hasLeadingPunctuation: !1, hasTrailingPunctuation: !1 });
|
|
2235
|
-
}
|
|
2236
2598
|
}
|
|
2237
2599
|
return e;
|
|
2238
2600
|
function n(r) {
|
|
@@ -2257,13 +2619,14 @@ function Gt(u, e) {
|
|
|
2257
2619
|
`) ? t.slice(0, -1) : t;
|
|
2258
2620
|
}
|
|
2259
2621
|
function Ju(u, e) {
|
|
2260
|
-
return
|
|
2622
|
+
return function t(n, r, i) {
|
|
2261
2623
|
let o = { ...e(n, r, i) };
|
|
2262
2624
|
return o.children && (o.children = o.children.map((a, l) => t(a, l, [o, ...i]))), o;
|
|
2263
|
-
}
|
|
2625
|
+
}(u, null, []);
|
|
2264
2626
|
}
|
|
2265
2627
|
function it(u) {
|
|
2266
|
-
if (u?.type !== "link" || u.children.length !== 1)
|
|
2628
|
+
if (u?.type !== "link" || u.children.length !== 1)
|
|
2629
|
+
return !1;
|
|
2267
2630
|
let [e] = u.children;
|
|
2268
2631
|
return ge(u) === ge(e) && me(u) === me(e);
|
|
2269
2632
|
}
|
|
@@ -2271,12 +2634,13 @@ function ki(u, e) {
|
|
|
2271
2634
|
let { node: t } = u;
|
|
2272
2635
|
if (t.type === "code" && t.lang !== null) {
|
|
2273
2636
|
let n = Bi(e, { language: t.lang });
|
|
2274
|
-
if (n)
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2637
|
+
if (n)
|
|
2638
|
+
return async (r) => {
|
|
2639
|
+
let i = e.__inJsTemplate ? "~" : "`", o = i.repeat(Math.max(3, Pt(t.value, i) + 1)), a = { parser: n };
|
|
2640
|
+
t.lang === "ts" || t.lang === "typescript" ? a.filepath = "dummy.ts" : t.lang === "tsx" && (a.filepath = "dummy.tsx");
|
|
2641
|
+
let l = await r(Gt(t, e.originalText), a);
|
|
2642
|
+
return Ce([o, t.lang, t.meta ? " " + t.meta : "", iu, ju(l), iu, o]);
|
|
2643
|
+
};
|
|
2280
2644
|
}
|
|
2281
2645
|
switch (t.type) {
|
|
2282
2646
|
case "front-matter":
|
|
@@ -2298,7 +2662,8 @@ function te(u) {
|
|
|
2298
2662
|
return Qu = te.prototype = u ?? /* @__PURE__ */ Object.create(null), new te();
|
|
2299
2663
|
}
|
|
2300
2664
|
var Si = 10;
|
|
2301
|
-
for (let u = 0; u <= Si; u++)
|
|
2665
|
+
for (let u = 0; u <= Si; u++)
|
|
2666
|
+
te();
|
|
2302
2667
|
function Li(u) {
|
|
2303
2668
|
return te(u);
|
|
2304
2669
|
}
|
|
@@ -2306,7 +2671,8 @@ function Ti(u, e = "type") {
|
|
|
2306
2671
|
Li(u);
|
|
2307
2672
|
function t(n) {
|
|
2308
2673
|
let r = n[e], i = u[r];
|
|
2309
|
-
if (!Array.isArray(i))
|
|
2674
|
+
if (!Array.isArray(i))
|
|
2675
|
+
throw Object.assign(new Error(`Missing visitor keys for '${r}'.`), { node: n });
|
|
2310
2676
|
return i;
|
|
2311
2677
|
}
|
|
2312
2678
|
return t;
|
|
@@ -2333,8 +2699,10 @@ function Mi(u) {
|
|
|
2333
2699
|
}
|
|
2334
2700
|
var Ui = (u) => !(zi(u) || Mi(u)), Vi = /[^\x20-\x7F]/u;
|
|
2335
2701
|
function Gi(u) {
|
|
2336
|
-
if (!u)
|
|
2337
|
-
|
|
2702
|
+
if (!u)
|
|
2703
|
+
return 0;
|
|
2704
|
+
if (!Vi.test(u))
|
|
2705
|
+
return u.length;
|
|
2338
2706
|
u = u.replace($i(), " ");
|
|
2339
2707
|
let e = 0;
|
|
2340
2708
|
for (let t of u) {
|
|
@@ -2343,7 +2711,7 @@ function Gi(u) {
|
|
|
2343
2711
|
}
|
|
2344
2712
|
return e;
|
|
2345
2713
|
}
|
|
2346
|
-
var Ve = Gi, fu =
|
|
2714
|
+
var Ve = Gi, fu = Symbol("MODE_BREAK"), Eu = Symbol("MODE_FLAT"), $u = Symbol("cursor"), Te = Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
2347
2715
|
function Wt() {
|
|
2348
2716
|
return { value: "", length: 0, queue: [] };
|
|
2349
2717
|
}
|
|
@@ -2355,19 +2723,20 @@ function Hi(u, e, t) {
|
|
|
2355
2723
|
}
|
|
2356
2724
|
function Oe(u, e, t) {
|
|
2357
2725
|
let n = e.type === "dedent" ? u.queue.slice(0, -1) : [...u.queue, e], r = "", i = 0, o = 0, a = 0;
|
|
2358
|
-
for (let p of n)
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2726
|
+
for (let p of n)
|
|
2727
|
+
switch (p.type) {
|
|
2728
|
+
case "indent":
|
|
2729
|
+
s(), t.useTabs ? l(1) : D(t.tabWidth);
|
|
2730
|
+
break;
|
|
2731
|
+
case "stringAlign":
|
|
2732
|
+
s(), r += p.n, i += p.n.length;
|
|
2733
|
+
break;
|
|
2734
|
+
case "numberAlign":
|
|
2735
|
+
o += 1, a += p.n;
|
|
2736
|
+
break;
|
|
2737
|
+
default:
|
|
2738
|
+
throw new Error(`Unexpected type '${p.type}'`);
|
|
2739
|
+
}
|
|
2371
2740
|
return f(), { ...u, value: r, length: i, queue: n };
|
|
2372
2741
|
function l(p) {
|
|
2373
2742
|
r += " ".repeat(p), i += t.tabWidth * p;
|
|
@@ -2390,30 +2759,36 @@ function Oe(u, e, t) {
|
|
|
2390
2759
|
}
|
|
2391
2760
|
function Re(u) {
|
|
2392
2761
|
let e = 0, t = 0, n = u.length;
|
|
2393
|
-
u:
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
let
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2762
|
+
u:
|
|
2763
|
+
for (; n--; ) {
|
|
2764
|
+
let r = u[n];
|
|
2765
|
+
if (r === $u) {
|
|
2766
|
+
t++;
|
|
2767
|
+
continue;
|
|
2768
|
+
}
|
|
2769
|
+
for (let i = r.length - 1; i >= 0; i--) {
|
|
2770
|
+
let o = r[i];
|
|
2771
|
+
if (o === " " || o === " ")
|
|
2772
|
+
e++;
|
|
2773
|
+
else {
|
|
2774
|
+
u[n] = r.slice(0, i + 1);
|
|
2775
|
+
break u;
|
|
2776
|
+
}
|
|
2405
2777
|
}
|
|
2406
2778
|
}
|
|
2407
|
-
|
|
2408
|
-
|
|
2779
|
+
if (e > 0 || t > 0)
|
|
2780
|
+
for (u.length = n + 1; t-- > 0; )
|
|
2781
|
+
u.push($u);
|
|
2409
2782
|
return e;
|
|
2410
2783
|
}
|
|
2411
2784
|
function pe(u, e, t, n, r, i) {
|
|
2412
|
-
if (t === Number.POSITIVE_INFINITY)
|
|
2785
|
+
if (t === Number.POSITIVE_INFINITY)
|
|
2786
|
+
return !0;
|
|
2413
2787
|
let o = e.length, a = [u], l = [];
|
|
2414
2788
|
for (; t >= 0; ) {
|
|
2415
2789
|
if (a.length === 0) {
|
|
2416
|
-
if (o === 0)
|
|
2790
|
+
if (o === 0)
|
|
2791
|
+
return !0;
|
|
2417
2792
|
a.push(e[--o]);
|
|
2418
2793
|
continue;
|
|
2419
2794
|
}
|
|
@@ -2425,7 +2800,8 @@ function pe(u, e, t, n, r, i) {
|
|
|
2425
2800
|
case Su:
|
|
2426
2801
|
case Pu: {
|
|
2427
2802
|
let f = c === Su ? s : s.parts, h = s[Te] ?? 0;
|
|
2428
|
-
for (let p = f.length - 1; p >= h; p--)
|
|
2803
|
+
for (let p = f.length - 1; p >= h; p--)
|
|
2804
|
+
a.push({ mode: D, doc: f[p] });
|
|
2429
2805
|
break;
|
|
2430
2806
|
}
|
|
2431
2807
|
case Wu:
|
|
@@ -2438,7 +2814,8 @@ function pe(u, e, t, n, r, i) {
|
|
|
2438
2814
|
t += Re(l);
|
|
2439
2815
|
break;
|
|
2440
2816
|
case Lu: {
|
|
2441
|
-
if (i && s.break)
|
|
2817
|
+
if (i && s.break)
|
|
2818
|
+
return !1;
|
|
2442
2819
|
let f = s.break ? fu : D, h = s.expandedStates && f === fu ? Au(!1, s.expandedStates, -1) : s.contents;
|
|
2443
2820
|
a.push({ mode: f, doc: h });
|
|
2444
2821
|
break;
|
|
@@ -2449,14 +2826,16 @@ function pe(u, e, t, n, r, i) {
|
|
|
2449
2826
|
break;
|
|
2450
2827
|
}
|
|
2451
2828
|
case bu:
|
|
2452
|
-
if (D === fu || s.hard)
|
|
2829
|
+
if (D === fu || s.hard)
|
|
2830
|
+
return !0;
|
|
2453
2831
|
s.soft || (l.push(" "), t--);
|
|
2454
2832
|
break;
|
|
2455
2833
|
case oe:
|
|
2456
2834
|
n = !0;
|
|
2457
2835
|
break;
|
|
2458
2836
|
case le:
|
|
2459
|
-
if (n)
|
|
2837
|
+
if (n)
|
|
2838
|
+
return !1;
|
|
2460
2839
|
break;
|
|
2461
2840
|
}
|
|
2462
2841
|
}
|
|
@@ -2475,10 +2854,12 @@ function _i(u, e) {
|
|
|
2475
2854
|
break;
|
|
2476
2855
|
}
|
|
2477
2856
|
case Su:
|
|
2478
|
-
for (let E = p.length - 1; E >= 0; E--)
|
|
2857
|
+
for (let E = p.length - 1; E >= 0; E--)
|
|
2858
|
+
o.push({ ind: f, mode: h, doc: p[E] });
|
|
2479
2859
|
break;
|
|
2480
2860
|
case Be:
|
|
2481
|
-
if (s >= 2)
|
|
2861
|
+
if (s >= 2)
|
|
2862
|
+
throw new Error("There are too many 'cursor' in doc.");
|
|
2482
2863
|
a.push($u), s++;
|
|
2483
2864
|
break;
|
|
2484
2865
|
case Wu:
|
|
@@ -2500,23 +2881,27 @@ function _i(u, e) {
|
|
|
2500
2881
|
case fu: {
|
|
2501
2882
|
l = !1;
|
|
2502
2883
|
let E = { ind: f, mode: Eu, doc: p.contents }, A = n - i, v = D.length > 0;
|
|
2503
|
-
if (!p.break && pe(E, o, A, v, t))
|
|
2884
|
+
if (!p.break && pe(E, o, A, v, t))
|
|
2885
|
+
o.push(E);
|
|
2504
2886
|
else if (p.expandedStates) {
|
|
2505
2887
|
let F = Au(!1, p.expandedStates, -1);
|
|
2506
2888
|
if (p.break) {
|
|
2507
2889
|
o.push({ ind: f, mode: fu, doc: F });
|
|
2508
2890
|
break;
|
|
2509
|
-
} else
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2891
|
+
} else
|
|
2892
|
+
for (let B = 1; B < p.expandedStates.length + 1; B++)
|
|
2893
|
+
if (B >= p.expandedStates.length) {
|
|
2894
|
+
o.push({ ind: f, mode: fu, doc: F });
|
|
2895
|
+
break;
|
|
2896
|
+
} else {
|
|
2897
|
+
let m = p.expandedStates[B], d = { ind: f, mode: Eu, doc: m };
|
|
2898
|
+
if (pe(d, o, A, v, t)) {
|
|
2899
|
+
o.push(d);
|
|
2900
|
+
break;
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
} else
|
|
2904
|
+
o.push({ ind: f, mode: fu, doc: p.contents });
|
|
2520
2905
|
break;
|
|
2521
2906
|
}
|
|
2522
2907
|
}
|
|
@@ -2524,7 +2909,8 @@ function _i(u, e) {
|
|
|
2524
2909
|
break;
|
|
2525
2910
|
case Pu: {
|
|
2526
2911
|
let E = n - i, A = p[Te] ?? 0, { parts: v } = p, F = v.length - A;
|
|
2527
|
-
if (F === 0)
|
|
2912
|
+
if (F === 0)
|
|
2913
|
+
break;
|
|
2528
2914
|
let B = v[A + 0], m = v[A + 1], d = { ind: f, mode: Eu, doc: B }, C = { ind: f, mode: fu, doc: B }, g = pe(d, [], E, D.length > 0, t, !0);
|
|
2529
2915
|
if (F === 1) {
|
|
2530
2916
|
g ? o.push(d) : o.push(C);
|
|
@@ -2561,7 +2947,8 @@ function _i(u, e) {
|
|
|
2561
2947
|
case bu:
|
|
2562
2948
|
switch (h) {
|
|
2563
2949
|
case Eu:
|
|
2564
|
-
if (p.hard)
|
|
2950
|
+
if (p.hard)
|
|
2951
|
+
l = !0;
|
|
2565
2952
|
else {
|
|
2566
2953
|
p.soft || (a.push(" "), i += 1);
|
|
2567
2954
|
break;
|
|
@@ -2588,7 +2975,8 @@ function _i(u, e) {
|
|
|
2588
2975
|
let c = a.indexOf($u);
|
|
2589
2976
|
if (c !== -1) {
|
|
2590
2977
|
let f = a.indexOf($u, c + 1);
|
|
2591
|
-
if (f === -1)
|
|
2978
|
+
if (f === -1)
|
|
2979
|
+
return { formatted: a.filter((A) => A !== $u).join("") };
|
|
2592
2980
|
let h = a.slice(0, c).join(""), p = a.slice(c + 1, f).join(""), E = a.slice(f + 1).join("");
|
|
2593
2981
|
return { formatted: h + p + E, cursorNodeStart: h.length, cursorNodeText: p };
|
|
2594
2982
|
}
|
|
@@ -2599,7 +2987,8 @@ function Ji(u, e, t) {
|
|
|
2599
2987
|
let f = _i(t(), e).formatted, h = Ve(f);
|
|
2600
2988
|
return r[c] = Math.max(r[c] ?? 3, h), { text: f, width: h };
|
|
2601
2989
|
}, "children"), "children"), o = l(!1);
|
|
2602
|
-
if (e.proseWrap !== "never")
|
|
2990
|
+
if (e.proseWrap !== "never")
|
|
2991
|
+
return [Ae, o];
|
|
2603
2992
|
let a = l(!0);
|
|
2604
2993
|
return [Ae, he(Gn(a, o))];
|
|
2605
2994
|
function l(c) {
|
|
@@ -2613,7 +3002,8 @@ function Ji(u, e, t) {
|
|
|
2613
3002
|
}
|
|
2614
3003
|
function s(c, f) {
|
|
2615
3004
|
return c.map(({ text: h, width: p }, E) => {
|
|
2616
|
-
if (f)
|
|
3005
|
+
if (f)
|
|
3006
|
+
return h;
|
|
2617
3007
|
let A = r[E] - p, v = n.align[E], F = 0;
|
|
2618
3008
|
v === "right" ? F = A : v === "center" && (F = Math.floor(A / 2));
|
|
2619
3009
|
let B = A - F;
|
|
@@ -2627,7 +3017,7 @@ function Yi(u, e, t) {
|
|
|
2627
3017
|
}
|
|
2628
3018
|
function Ki(u) {
|
|
2629
3019
|
let e = [""];
|
|
2630
|
-
return
|
|
3020
|
+
return function t(n) {
|
|
2631
3021
|
for (let r of n) {
|
|
2632
3022
|
let i = Tu(r);
|
|
2633
3023
|
if (i === Su) {
|
|
@@ -2637,7 +3027,7 @@ function Ki(u) {
|
|
|
2637
3027
|
let o = r, a = [];
|
|
2638
3028
|
i === Pu && ([o, ...a] = r.parts), e.push([e.pop(), o], ...a);
|
|
2639
3029
|
}
|
|
2640
|
-
}
|
|
3030
|
+
}(u), ze(e);
|
|
2641
3031
|
}
|
|
2642
3032
|
var Cu, Xi = class {
|
|
2643
3033
|
constructor(u) {
|
|
@@ -2645,12 +3035,14 @@ var Cu, Xi = class {
|
|
|
2645
3035
|
}
|
|
2646
3036
|
getLeadingWhitespaceCount(u) {
|
|
2647
3037
|
let e = ku(this, Cu), t = 0;
|
|
2648
|
-
for (let n = 0; n < u.length && e.has(u.charAt(n)); n++)
|
|
3038
|
+
for (let n = 0; n < u.length && e.has(u.charAt(n)); n++)
|
|
3039
|
+
t++;
|
|
2649
3040
|
return t;
|
|
2650
3041
|
}
|
|
2651
3042
|
getTrailingWhitespaceCount(u) {
|
|
2652
3043
|
let e = ku(this, Cu), t = 0;
|
|
2653
|
-
for (let n = u.length - 1; n >= 0 && e.has(u.charAt(n)); n--)
|
|
3044
|
+
for (let n = u.length - 1; n >= 0 && e.has(u.charAt(n)); n--)
|
|
3045
|
+
t++;
|
|
2654
3046
|
return t;
|
|
2655
3047
|
}
|
|
2656
3048
|
getLeadingWhitespace(u) {
|
|
@@ -2703,16 +3095,19 @@ function ra(u, e) {
|
|
|
2703
3095
|
}
|
|
2704
3096
|
function na(u, e) {
|
|
2705
3097
|
return Ju(u, (t) => {
|
|
2706
|
-
if (t.type !== "text")
|
|
3098
|
+
if (t.type !== "text")
|
|
3099
|
+
return t;
|
|
2707
3100
|
let { value: n } = t;
|
|
2708
|
-
if (n === "*" || n === "_" || !ea.test(n) || t.position.end.offset - t.position.start.offset === n.length)
|
|
3101
|
+
if (n === "*" || n === "_" || !ea.test(n) || t.position.end.offset - t.position.start.offset === n.length)
|
|
3102
|
+
return t;
|
|
2709
3103
|
let r = e.originalText.slice(t.position.start.offset, t.position.end.offset);
|
|
2710
3104
|
return ta.test(r) ? t : { ...t, value: r };
|
|
2711
3105
|
});
|
|
2712
3106
|
}
|
|
2713
3107
|
function ia(u, e, t) {
|
|
2714
3108
|
return Ju(u, (n) => {
|
|
2715
|
-
if (!n.children)
|
|
3109
|
+
if (!n.children)
|
|
3110
|
+
return n;
|
|
2716
3111
|
let r = n.children.reduce((i, o) => {
|
|
2717
3112
|
let a = Au(!1, i, -1);
|
|
2718
3113
|
return a && e(a, o) ? i.splice(-1, 1, t(a, o)) : i.push(o), i;
|
|
@@ -2725,7 +3120,8 @@ function aa(u) {
|
|
|
2725
3120
|
}
|
|
2726
3121
|
function oa(u) {
|
|
2727
3122
|
return Ju(u, (e, t, [n]) => {
|
|
2728
|
-
if (e.type !== "text")
|
|
3123
|
+
if (e.type !== "text")
|
|
3124
|
+
return e;
|
|
2729
3125
|
let { value: r } = e;
|
|
2730
3126
|
return n.type === "paragraph" && (t === 0 && (r = at.trimStart(r)), t === n.children.length - 1 && (r = at.trimEnd(r))), { type: "sentence", position: e.position, children: Vt(r) };
|
|
2731
3127
|
});
|
|
@@ -2734,11 +3130,13 @@ function la(u, e) {
|
|
|
2734
3130
|
return Ju(u, (t, n, r) => {
|
|
2735
3131
|
if (t.type === "code") {
|
|
2736
3132
|
let i = /^\n?(?: {4,}|\t)/u.test(e.originalText.slice(t.position.start.offset, t.position.end.offset));
|
|
2737
|
-
if (t.isIndented = i, i)
|
|
2738
|
-
let
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
3133
|
+
if (t.isIndented = i, i)
|
|
3134
|
+
for (let o = 0; o < r.length; o++) {
|
|
3135
|
+
let a = r[o];
|
|
3136
|
+
if (a.hasIndentedCodeblock)
|
|
3137
|
+
break;
|
|
3138
|
+
a.type === "list" && (a.hasIndentedCodeblock = !0);
|
|
3139
|
+
}
|
|
2742
3140
|
}
|
|
2743
3141
|
return t;
|
|
2744
3142
|
});
|
|
@@ -2748,7 +3146,8 @@ function sa(u, e) {
|
|
|
2748
3146
|
if (r.type === "list" && r.children.length > 0) {
|
|
2749
3147
|
for (let a = 0; a < o.length; a++) {
|
|
2750
3148
|
let l = o[a];
|
|
2751
|
-
if (l.type === "list" && !l.isAligned)
|
|
3149
|
+
if (l.type === "list" && !l.isAligned)
|
|
3150
|
+
return r.isAligned = !1, r;
|
|
2752
3151
|
}
|
|
2753
3152
|
r.isAligned = n(r);
|
|
2754
3153
|
}
|
|
@@ -2758,12 +3157,16 @@ function sa(u, e) {
|
|
|
2758
3157
|
return r.children.length === 0 ? -1 : r.children[0].position.start.column - 1;
|
|
2759
3158
|
}
|
|
2760
3159
|
function n(r) {
|
|
2761
|
-
if (!r.ordered)
|
|
3160
|
+
if (!r.ordered)
|
|
3161
|
+
return !0;
|
|
2762
3162
|
let [i, o] = r.children;
|
|
2763
|
-
if (ee(i, e).leadingSpaces.length > 1)
|
|
3163
|
+
if (ee(i, e).leadingSpaces.length > 1)
|
|
3164
|
+
return !0;
|
|
2764
3165
|
let a = t(i);
|
|
2765
|
-
if (a === -1)
|
|
2766
|
-
|
|
3166
|
+
if (a === -1)
|
|
3167
|
+
return !1;
|
|
3168
|
+
if (r.children.length === 1)
|
|
3169
|
+
return a % e.tabWidth === 0;
|
|
2767
3170
|
let l = t(o);
|
|
2768
3171
|
return a !== l ? !1 : a % e.tabWidth === 0 ? !0 : ee(o, e).leadingSpaces.length > 1;
|
|
2769
3172
|
}
|
|
@@ -2800,9 +3203,11 @@ function pa({ parent: u }) {
|
|
|
2800
3203
|
return u.usesCJSpaces;
|
|
2801
3204
|
}
|
|
2802
3205
|
function ha(u, e) {
|
|
2803
|
-
if (e)
|
|
3206
|
+
if (e)
|
|
3207
|
+
return !0;
|
|
2804
3208
|
let { previous: t, next: n } = u;
|
|
2805
|
-
if (!t || !n)
|
|
3209
|
+
if (!t || !n)
|
|
3210
|
+
return !0;
|
|
2806
3211
|
let r = t.kind, i = n.kind;
|
|
2807
3212
|
return lt(r) && lt(i) || r === zu && i === xu || i === zu && r === xu ? !0 : r === Ee || i === Ee || r === xu && i === xu ? !1 : ot.has(n.value[0]) || ot.has(Au(!1, t.value, -1)) ? !0 : t.hasTrailingPunctuation || n.hasLeadingPunctuation ? !1 : pa(u);
|
|
2808
3213
|
}
|
|
@@ -2810,14 +3215,17 @@ function lt(u) {
|
|
|
2810
3215
|
return u === re || u === zu;
|
|
2811
3216
|
}
|
|
2812
3217
|
function da(u, e, t, n) {
|
|
2813
|
-
if (t !== "always" || u.hasAncestor((o) => fa.has(o.type)))
|
|
2814
|
-
|
|
3218
|
+
if (t !== "always" || u.hasAncestor((o) => fa.has(o.type)))
|
|
3219
|
+
return !1;
|
|
3220
|
+
if (n)
|
|
3221
|
+
return e !== "";
|
|
2815
3222
|
let { previous: r, next: i } = u;
|
|
2816
3223
|
return !r || !i ? !0 : e === "" ? !1 : r.kind === zu && i.kind === xu || i.kind === zu && r.kind === xu ? !0 : !(r.isCJ || i.isCJ);
|
|
2817
3224
|
}
|
|
2818
3225
|
function st(u, e, t, n) {
|
|
2819
3226
|
if (t === "preserve" && e === `
|
|
2820
|
-
`)
|
|
3227
|
+
`)
|
|
3228
|
+
return iu;
|
|
2821
3229
|
let r = e === " " || e === `
|
|
2822
3230
|
` && ha(u, n);
|
|
2823
3231
|
return da(u, e, t, n) ? r ? Rt : Nt : r ? " " : "";
|
|
@@ -2866,7 +3274,8 @@ function Ca(u, e, t) {
|
|
|
2866
3274
|
}
|
|
2867
3275
|
case "emphasis": {
|
|
2868
3276
|
let i;
|
|
2869
|
-
if (it(r.children[0]))
|
|
3277
|
+
if (it(r.children[0]))
|
|
3278
|
+
i = e.originalText[r.position.start.offset];
|
|
2870
3279
|
else {
|
|
2871
3280
|
let o = Dt(u), a = ((n = u.parent) == null ? void 0 : n.type) === "strong" && Dt(u.ancestors);
|
|
2872
3281
|
i = o || a || u.hasAncestor((l) => l.type === "emphasis") ? "*" : "_";
|
|
@@ -2919,7 +3328,8 @@ function Ca(u, e, t) {
|
|
|
2919
3328
|
let i = ft(r, u.parent), o = wi(r, e);
|
|
2920
3329
|
return cu(u, e, t, { processor(a) {
|
|
2921
3330
|
let l = s(), D = a.node;
|
|
2922
|
-
if (D.children.length === 2 && D.children[1].type === "html" && D.children[0].position.start.column !== D.children[1].position.start.column)
|
|
3331
|
+
if (D.children.length === 2 && D.children[1].type === "html" && D.children[0].position.start.column !== D.children[1].position.start.column)
|
|
3332
|
+
return [l, ct(a, e, t, l)];
|
|
2923
3333
|
return [l, Nu(" ".repeat(l.length), ct(a, e, t, l))];
|
|
2924
3334
|
function s() {
|
|
2925
3335
|
let c = r.ordered ? (a.isFirst ? r.start : o ? 1 : r.start + a.index) + (i % 2 === 0 ? ". " : ") ") : i % 2 === 0 ? "- " : "* ";
|
|
@@ -2934,7 +3344,12 @@ function Ca(u, e, t) {
|
|
|
2934
3344
|
case "linkReference":
|
|
2935
3345
|
return ["[", cu(u, e, t), "]", r.referenceType === "full" ? qe(r) : r.referenceType === "collapsed" ? "[]" : ""];
|
|
2936
3346
|
case "imageReference":
|
|
2937
|
-
|
|
3347
|
+
switch (r.referenceType) {
|
|
3348
|
+
case "full":
|
|
3349
|
+
return ["![", r.alt || "", "]", qe(r)];
|
|
3350
|
+
default:
|
|
3351
|
+
return ["![", r.alt, "]", r.referenceType === "collapsed" ? "[]" : ""];
|
|
3352
|
+
}
|
|
2938
3353
|
case "definition": {
|
|
2939
3354
|
let i = e.proseWrap === "always" ? Rt : " ";
|
|
2940
3355
|
return he([qe(r), ":", Se([i, ke(r.url), r.title === null ? "" : [i, de(r.title, e, !1)]])]);
|
|
@@ -2965,6 +3380,9 @@ function Ca(u, e, t) {
|
|
|
2965
3380
|
return ["$$", iu, r.value ? [ju(r.value, iu), iu] : "", "$$"];
|
|
2966
3381
|
case "inlineMath":
|
|
2967
3382
|
return e.originalText.slice(ge(r), me(r));
|
|
3383
|
+
case "tableRow":
|
|
3384
|
+
case "listItem":
|
|
3385
|
+
case "text":
|
|
2968
3386
|
default:
|
|
2969
3387
|
throw new Zn(r, "Markdown");
|
|
2970
3388
|
}
|
|
@@ -2972,7 +3390,8 @@ function Ca(u, e, t) {
|
|
|
2972
3390
|
function ct(u, e, t, n) {
|
|
2973
3391
|
let { node: r } = u, i = r.checked === null ? "" : r.checked ? "[x] " : "[ ] ";
|
|
2974
3392
|
return [i, cu(u, e, t, { processor({ node: o, isFirst: a }) {
|
|
2975
|
-
if (a && o.type !== "list")
|
|
3393
|
+
if (a && o.type !== "list")
|
|
3394
|
+
return Nu(" ".repeat(i.length), t());
|
|
2976
3395
|
let l = " ".repeat(ba(e.tabWidth - n.length, 0, 3));
|
|
2977
3396
|
return [l, Nu(l, t())];
|
|
2978
3397
|
} })];
|
|
@@ -2990,24 +3409,30 @@ function ft(u, e) {
|
|
|
2990
3409
|
}
|
|
2991
3410
|
function ga(u, e, t) {
|
|
2992
3411
|
let n = -1;
|
|
2993
|
-
for (let r of e.children)
|
|
3412
|
+
for (let r of e.children)
|
|
3413
|
+
if (r.type === u.type && t(r) ? n++ : n = -1, r === u)
|
|
3414
|
+
return n;
|
|
2994
3415
|
}
|
|
2995
3416
|
function ma(u, e, t) {
|
|
2996
3417
|
let n = [], r = null, { children: i } = u.node;
|
|
2997
|
-
for (let [o, a] of i.entries())
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3418
|
+
for (let [o, a] of i.entries())
|
|
3419
|
+
switch (Ge(a)) {
|
|
3420
|
+
case "start":
|
|
3421
|
+
r === null && (r = { index: o, offset: a.position.end.offset });
|
|
3422
|
+
break;
|
|
3423
|
+
case "end":
|
|
3424
|
+
r !== null && (n.push({ start: r, end: { index: o, offset: a.position.start.offset } }), r = null);
|
|
3425
|
+
break;
|
|
3426
|
+
}
|
|
3005
3427
|
return cu(u, e, t, { processor({ index: o }) {
|
|
3006
3428
|
if (n.length > 0) {
|
|
3007
3429
|
let a = n[0];
|
|
3008
|
-
if (o === a.start.index)
|
|
3009
|
-
|
|
3010
|
-
if (o
|
|
3430
|
+
if (o === a.start.index)
|
|
3431
|
+
return [pt(i[a.start.index]), e.originalText.slice(a.start.offset, a.end.offset), pt(i[a.end.index])];
|
|
3432
|
+
if (a.start.index < o && o < a.end.index)
|
|
3433
|
+
return !1;
|
|
3434
|
+
if (o === a.end.index)
|
|
3435
|
+
return n.shift(), !1;
|
|
3011
3436
|
}
|
|
3012
3437
|
return t();
|
|
3013
3438
|
} });
|
|
@@ -3020,12 +3445,15 @@ function cu(u, e, t, n = {}) {
|
|
|
3020
3445
|
}, "children"), i;
|
|
3021
3446
|
}
|
|
3022
3447
|
function pt(u) {
|
|
3023
|
-
if (u.type === "html")
|
|
3024
|
-
|
|
3448
|
+
if (u.type === "html")
|
|
3449
|
+
return u.value;
|
|
3450
|
+
if (u.type === "paragraph" && Array.isArray(u.children) && u.children.length === 1 && u.children[0].type === "esComment")
|
|
3451
|
+
return ["{/* ", u.children[0].value, " */}"];
|
|
3025
3452
|
}
|
|
3026
3453
|
function Ge(u) {
|
|
3027
3454
|
let e;
|
|
3028
|
-
if (u.type === "html")
|
|
3455
|
+
if (u.type === "html")
|
|
3456
|
+
e = u.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);
|
|
3029
3457
|
else {
|
|
3030
3458
|
let t;
|
|
3031
3459
|
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));
|
|
@@ -3041,7 +3469,8 @@ function ht(u, e) {
|
|
|
3041
3469
|
`);
|
|
3042
3470
|
}
|
|
3043
3471
|
function va({ node: u, previous: e, parent: t }, n) {
|
|
3044
|
-
if (ht(e, n) || u.type === "list" && t.type === "listItem" && e.type === "code")
|
|
3472
|
+
if (ht(e, n) || u.type === "list" && t.type === "listItem" && e.type === "code")
|
|
3473
|
+
return !0;
|
|
3045
3474
|
let r = e.type === u.type && Fa.has(u.type), i = t.type === "listItem" && (u.type === "list" || !ht(t, n)), o = Ge(e) === "next", a = u.type === "html" && e.type === "html" && e.position.end.line + 1 === u.position.start.line, l = u.type === "html" && t.type === "listItem" && e.type === "paragraph" && e.position.end.line + 1 === u.position.start.line;
|
|
3046
3475
|
return !(r || i || o || a || l);
|
|
3047
3476
|
}
|
|
@@ -3054,7 +3483,8 @@ function xa(u) {
|
|
|
3054
3483
|
return e && (e.type !== "linkReference" || e.referenceType !== "full");
|
|
3055
3484
|
}
|
|
3056
3485
|
var Ba = (u, e) => {
|
|
3057
|
-
for (let t of e)
|
|
3486
|
+
for (let t of e)
|
|
3487
|
+
u = lu(!1, u, t, encodeURIComponent(t));
|
|
3058
3488
|
return u;
|
|
3059
3489
|
};
|
|
3060
3490
|
function ke(u, e = []) {
|
|
@@ -3062,9 +3492,12 @@ function ke(u, e = []) {
|
|
|
3062
3492
|
return new RegExp(t.map((n) => xe(n)).join("|"), "u").test(u) ? `<${Ba(u, "<>")}>` : u;
|
|
3063
3493
|
}
|
|
3064
3494
|
function de(u, e, t = !0) {
|
|
3065
|
-
if (!u)
|
|
3066
|
-
|
|
3067
|
-
if (
|
|
3495
|
+
if (!u)
|
|
3496
|
+
return "";
|
|
3497
|
+
if (t)
|
|
3498
|
+
return " " + de(u, e, !1);
|
|
3499
|
+
if (u = lu(!1, u, /\\(?=["')])/gu, ""), u.includes('"') && u.includes("'") && !u.includes(")"))
|
|
3500
|
+
return `(${u})`;
|
|
3068
3501
|
let n = Kn(u, e.singleQuote);
|
|
3069
3502
|
return u = lu(!1, u, "\\", "\\\\"), u = lu(!1, u, n, `\\${n}`), `${n}${u}${n}`;
|
|
3070
3503
|
}
|
|
@@ -3086,10 +3519,12 @@ var Ta = Mu(or()), Oa = Mu(Dr()), Ra = Mu(Cn()), Na = Mu(Sn()), Ia = /^import\s/
|
|
|
3086
3519
|
|
|
3087
3520
|
`, _t = (u) => Ia.test(u), Ne = (u) => Pa.test(u), Jt = (u, e) => {
|
|
3088
3521
|
let t = e.indexOf(Ma), n = e.slice(0, t);
|
|
3089
|
-
if (Ne(n) || _t(n))
|
|
3522
|
+
if (Ne(n) || _t(n))
|
|
3523
|
+
return u(n)({ type: Ne(n) ? "export" : "import", value: n });
|
|
3090
3524
|
}, Yt = (u, e) => {
|
|
3091
3525
|
let t = za.exec(e);
|
|
3092
|
-
if (t)
|
|
3526
|
+
if (t)
|
|
3527
|
+
return u(t[0])({ type: "esComment", value: t[1].trim() });
|
|
3093
3528
|
};
|
|
3094
3529
|
Jt.locator = (u) => Ne(u) || _t(u) ? -1 : 1;
|
|
3095
3530
|
Yt.locator = (u, e) => u.indexOf("{", e);
|
|
@@ -3101,7 +3536,8 @@ var Ua = function() {
|
|
|
3101
3536
|
u.blockMethods = ["frontMatter", ...u.blockMethods], u.blockTokenizers.frontMatter = e;
|
|
3102
3537
|
function e(t, n) {
|
|
3103
3538
|
let r = be(n);
|
|
3104
|
-
if (r.frontMatter)
|
|
3539
|
+
if (r.frontMatter)
|
|
3540
|
+
return t(r.frontMatter.raw)(r.frontMatter);
|
|
3105
3541
|
}
|
|
3106
3542
|
e.onlyAtStart = !0;
|
|
3107
3543
|
}, Ga = Va;
|
|
@@ -3113,7 +3549,8 @@ var Ha = Wa, _a = function() {
|
|
|
3113
3549
|
e.splice(e.indexOf("text"), 0, "liquid"), u.inlineTokenizers.liquid = t;
|
|
3114
3550
|
function t(n, r) {
|
|
3115
3551
|
let i = r.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);
|
|
3116
|
-
if (i)
|
|
3552
|
+
if (i)
|
|
3553
|
+
return n(i[0])({ type: "liquidNode", value: i[0] });
|
|
3117
3554
|
}
|
|
3118
3555
|
t.locator = function(n, r) {
|
|
3119
3556
|
return n.indexOf("{", r);
|