wecool-chat 0.10.0 → 0.11.1
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/CHANGELOG.md +37 -0
- package/README.ja.md +9 -3
- package/README.md +14 -3
- package/dist/CopyIndicator-DcJtCBYP.js +63 -0
- package/dist/{MarkdownBody-EIz0jnQy.js → MarkdownBody-DX0DoV4C.js} +901 -893
- package/dist/VoiceControls-B_kX2Uj3.js +160 -0
- package/dist/{VoiceRuntime-DrYjNkZK.js → VoiceRuntime-D1nURNly.js} +13 -13
- package/dist/blank-line-D-aLg3m0.js +213 -0
- package/dist/{browser-M7mS-hAN.js → browser-a2qIWP48.js} +1 -1
- package/dist/core/client.d.ts +5 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/consume-stream.d.ts +18 -1
- package/dist/core/consume-stream.d.ts.map +1 -1
- package/dist/core/i18n/messages.d.ts +2 -0
- package/dist/core/i18n/messages.d.ts.map +1 -1
- package/dist/core/narration-round.d.ts +27 -0
- package/dist/core/narration-round.d.ts.map +1 -0
- package/dist/core/placeholder-manager.d.ts +30 -0
- package/dist/core/placeholder-manager.d.ts.map +1 -0
- package/dist/core/run-conversation.d.ts.map +1 -1
- package/dist/core/stream-state.d.ts +9 -1
- package/dist/core/stream-state.d.ts.map +1 -1
- package/dist/core/types.d.ts +21 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/createLucideIcon-Dc6H577p.js +120 -0
- package/dist/index.css +2 -2
- package/dist/index.js +6514 -5325
- package/dist/{jsx-runtime-Cyy0mp0f.js → jsx-runtime-2MlY8uwR.js} +132 -122
- package/dist/{messages-FvtWi3lI.js → messages-ZLdeJx9N.js} +11 -31
- package/dist/observe/__tests__/widget-self-http.test.d.ts +2 -0
- package/dist/observe/__tests__/widget-self-http.test.d.ts.map +1 -0
- package/dist/observe/__tests__/widget-self.test.d.ts +2 -0
- package/dist/observe/__tests__/widget-self.test.d.ts.map +1 -0
- package/dist/observe/observers/http.d.ts.map +1 -1
- package/dist/observe/observers/js-error.d.ts +7 -2
- package/dist/observe/observers/js-error.d.ts.map +1 -1
- package/dist/observe/widget-self.d.ts +46 -0
- package/dist/observe/widget-self.d.ts.map +1 -0
- package/dist/plugin/logger.d.ts.map +1 -1
- package/dist/plugins/qrcode.js +7 -6
- package/dist/remark-gfm-DDNju7JY.js +2247 -0
- package/dist/{remark-parse-BnwSmQr-.js → remark-parse-B3YPcONN.js} +377 -445
- package/dist/rolldown-runtime-Csywlj8R.js +25 -0
- package/dist/ui/components/ChatFooter.d.ts +4 -3
- package/dist/ui/components/ChatFooter.d.ts.map +1 -1
- package/dist/ui/components/ChatHeader.d.ts +1 -1
- package/dist/ui/components/ChatHeaderMenu.d.ts +1 -1
- package/dist/ui/components/ChatPanel.d.ts +1 -1
- package/dist/ui/components/ChatWidget.d.ts.map +1 -1
- package/dist/ui/components/CommandConfirmationCard.d.ts +1 -1
- package/dist/ui/components/CommandOverlays.d.ts +1 -1
- package/dist/ui/components/CommandPalette.d.ts +1 -1
- package/dist/ui/components/ConversationSelect.d.ts +1 -1
- package/dist/ui/components/CopyIndicator.d.ts +1 -1
- package/dist/ui/components/FloatButton.d.ts +1 -1
- package/dist/ui/components/FooterActions.d.ts +1 -1
- package/dist/ui/components/HelpDialogContent.d.ts +1 -1
- package/dist/ui/components/MessageActionsPopover.d.ts +1 -1
- package/dist/ui/components/MessageAttachments.d.ts +1 -1
- package/dist/ui/components/MessageBubble.d.ts +1 -1
- package/dist/ui/components/MessageCopyButton.d.ts +1 -1
- package/dist/ui/components/MessageEditor.d.ts +1 -1
- package/dist/ui/components/MessageList.d.ts +1 -1
- package/dist/ui/components/MessagePopoverButton.d.ts +1 -1
- package/dist/ui/components/MessageRow.d.ts +1 -1
- package/dist/ui/components/MessageRowActions.d.ts +1 -1
- package/dist/ui/components/MicButton.d.ts +1 -1
- package/dist/ui/components/ResizeHandles.d.ts +1 -1
- package/dist/ui/components/ToolConfirmationCard.d.ts +1 -1
- package/dist/ui/components/ToolConfirmationRecord.d.ts +1 -1
- package/dist/ui/components/ToolsDialogContent.d.ts +1 -1
- package/dist/ui/components/VoiceControls.d.ts +1 -1
- package/dist/ui/components/VoiceControls.d.ts.map +1 -1
- package/dist/ui/components/VoiceLoopStatusBar.d.ts +1 -1
- package/dist/ui/components/VoiceLoopToggle.d.ts +1 -1
- package/dist/ui/components/VoiceRuntime.d.ts +1 -1
- package/dist/ui/components/WidgetDialog.d.ts +1 -1
- package/dist/ui/components/markdown/CodeBlock.d.ts +1 -1
- package/dist/ui/components/markdown/MarkdownBody.d.ts +1 -1
- package/dist/ui/components/markdown/MarkdownMessage.d.ts +1 -1
- package/dist/ui/hooks/use-mic-button.d.ts +2 -0
- package/dist/ui/hooks/use-mic-button.d.ts.map +1 -1
- package/dist/ui/hooks/use-send-message.d.ts.map +1 -1
- package/dist/{unified-DctkAd9P.js → unified-DvM6W8YC.js} +3 -3
- package/dist/{use-voice-input-LtJJz-zQ.js → use-voice-input-DJtyHnsT.js} +3 -3
- package/dist/{voice-support-BeOiOzcn.js → voice-support-DYXg7xML.js} +2 -2
- package/package.json +33 -33
- package/dist/CopyIndicator-RR3hSsBA.js +0 -51
- package/dist/VoiceControls-A7N4uPTo.js +0 -146
- package/dist/blank-line-CUDmZ-mX.js +0 -143
- package/dist/createLucideIcon-C7wGkK-Q.js +0 -43
- package/dist/remark-gfm-Bzy1u34W.js +0 -1962
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import { t as
|
|
4
|
-
var
|
|
1
|
+
import { n as Yn } from "./rolldown-runtime-Csywlj8R.js";
|
|
2
|
+
import { _ as xt, a as $, b as Y, c as gt, d as fn, f as K, g as Cn, h as En, i as kt, l as Nn, m as St, n as L, o as on, p as J, r as Fn, s as bt, t as In, u as Dn, v as dt, x as v, y as w } from "./blank-line-D-aLg3m0.js";
|
|
3
|
+
import { t as dn } from "./lib-DG_DjiCr.js";
|
|
4
|
+
var Rn = document.createElement("i");
|
|
5
5
|
function vn(n) {
|
|
6
6
|
const r = "&" + n + ";";
|
|
7
|
-
|
|
8
|
-
const t =
|
|
7
|
+
Rn.innerHTML = r;
|
|
8
|
+
const t = Rn.textContent;
|
|
9
9
|
return t.charCodeAt(t.length - 1) === 59 && n !== "semi" || t === r ? !1 : t;
|
|
10
10
|
}
|
|
11
11
|
function $n(n, r) {
|
|
12
12
|
const t = Number.parseInt(n, r);
|
|
13
13
|
return t < 9 || t === 11 || t > 13 && t < 32 || t > 126 && t < 160 || t > 55295 && t < 57344 || t > 64975 && t < 65008 || (t & 65535) === 65535 || (t & 65535) === 65534 || t > 1114111 ? "�" : String.fromCodePoint(t);
|
|
14
14
|
}
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
return n.replace(
|
|
15
|
+
var yt = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
16
|
+
function It(n) {
|
|
17
|
+
return n.replace(yt, wt);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function wt(n, r, t) {
|
|
20
20
|
if (r) return r;
|
|
21
21
|
if (t.charCodeAt(0) === 35) {
|
|
22
22
|
const e = t.charCodeAt(1), a = e === 120 || e === 88;
|
|
@@ -26,24 +26,24 @@ function It(n, r, t) {
|
|
|
26
26
|
}
|
|
27
27
|
var Tn = {
|
|
28
28
|
name: "attention",
|
|
29
|
-
resolveAll:
|
|
30
|
-
tokenize:
|
|
29
|
+
resolveAll: zt,
|
|
30
|
+
tokenize: Ct
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function zt(n, r) {
|
|
33
33
|
let t = -1, e, a, i, u, s, f, c, m;
|
|
34
34
|
for (; ++t < n.length; ) if (n[t][0] === "enter" && n[t][1].type === "attentionSequence" && n[t][1]._close) {
|
|
35
35
|
for (e = t; e--; ) if (n[e][0] === "exit" && n[e][1].type === "attentionSequence" && n[e][1]._open && r.sliceSerialize(n[e][1]).charCodeAt(0) === r.sliceSerialize(n[t][1]).charCodeAt(0)) {
|
|
36
36
|
if ((n[e][1]._close || n[t][1]._open) && (n[t][1].end.offset - n[t][1].start.offset) % 3 && !((n[e][1].end.offset - n[e][1].start.offset + n[t][1].end.offset - n[t][1].start.offset) % 3)) continue;
|
|
37
37
|
f = n[e][1].end.offset - n[e][1].start.offset > 1 && n[t][1].end.offset - n[t][1].start.offset > 1 ? 2 : 1;
|
|
38
|
-
const p = { ...n[e][1].end },
|
|
39
|
-
|
|
38
|
+
const p = { ...n[e][1].end }, x = { ...n[t][1].start };
|
|
39
|
+
qn(p, -f), qn(x, f), u = {
|
|
40
40
|
type: f > 1 ? "strongSequence" : "emphasisSequence",
|
|
41
41
|
start: p,
|
|
42
42
|
end: { ...n[e][1].end }
|
|
43
43
|
}, s = {
|
|
44
44
|
type: f > 1 ? "strongSequence" : "emphasisSequence",
|
|
45
45
|
start: { ...n[t][1].start },
|
|
46
|
-
end:
|
|
46
|
+
end: x
|
|
47
47
|
}, i = {
|
|
48
48
|
type: f > 1 ? "strongText" : "emphasisText",
|
|
49
49
|
start: { ...n[e][1].end },
|
|
@@ -117,8 +117,8 @@ function wt(n, r) {
|
|
|
117
117
|
for (t = -1; ++t < n.length; ) n[t][1].type === "attentionSequence" && (n[t][1].type = "data");
|
|
118
118
|
return n;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
const t = this.parser.constructs.attentionMarkers.null, e = this.previous, a =
|
|
120
|
+
function Ct(n, r) {
|
|
121
|
+
const t = this.parser.constructs.attentionMarkers.null, e = this.previous, a = Dn(e);
|
|
122
122
|
let i;
|
|
123
123
|
return u;
|
|
124
124
|
function u(f) {
|
|
@@ -127,18 +127,18 @@ function zt(n, r) {
|
|
|
127
127
|
function s(f) {
|
|
128
128
|
if (f === i)
|
|
129
129
|
return n.consume(f), s;
|
|
130
|
-
const c = n.exit("attentionSequence"), m =
|
|
131
|
-
return c._open = !!(i === 42 ? p : p && (a || !
|
|
130
|
+
const c = n.exit("attentionSequence"), m = Dn(f), p = !m || m === 2 && a || t.includes(f), x = !a || a === 2 && m || t.includes(e);
|
|
131
|
+
return c._open = !!(i === 42 ? p : p && (a || !x)), c._close = !!(i === 42 ? x : x && (m || !p)), r(f);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function qn(n, r) {
|
|
135
135
|
n.column += r, n.offset += r, n._bufferIndex += r;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
137
|
+
var Et = {
|
|
138
138
|
name: "autolink",
|
|
139
|
-
tokenize:
|
|
139
|
+
tokenize: Tt
|
|
140
140
|
};
|
|
141
|
-
function
|
|
141
|
+
function Tt(n, r, t) {
|
|
142
142
|
let e = 0;
|
|
143
143
|
return a;
|
|
144
144
|
function a(h) {
|
|
@@ -157,29 +157,29 @@ function Et(n, r, t) {
|
|
|
157
157
|
return h === 62 ? (n.exit("autolinkProtocol"), n.enter("autolinkMarker"), n.consume(h), n.exit("autolinkMarker"), n.exit("autolink"), r) : h === null || h === 32 || h === 60 || En(h) ? t(h) : (n.consume(h), f);
|
|
158
158
|
}
|
|
159
159
|
function c(h) {
|
|
160
|
-
return h === 64 ? (n.consume(h), m) :
|
|
160
|
+
return h === 64 ? (n.consume(h), m) : St(h) ? (n.consume(h), c) : t(h);
|
|
161
161
|
}
|
|
162
162
|
function m(h) {
|
|
163
163
|
return J(h) ? p(h) : t(h);
|
|
164
164
|
}
|
|
165
165
|
function p(h) {
|
|
166
|
-
return h === 46 ? (n.consume(h), e = 0, m) : h === 62 ? (n.exit("autolinkProtocol").type = "autolinkEmail", n.enter("autolinkMarker"), n.consume(h), n.exit("autolinkMarker"), n.exit("autolink"), r) :
|
|
166
|
+
return h === 46 ? (n.consume(h), e = 0, m) : h === 62 ? (n.exit("autolinkProtocol").type = "autolinkEmail", n.enter("autolinkMarker"), n.consume(h), n.exit("autolinkMarker"), n.exit("autolink"), r) : x(h);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function x(h) {
|
|
169
169
|
if ((h === 45 || J(h)) && e++ < 63) {
|
|
170
|
-
const E = h === 45 ?
|
|
170
|
+
const E = h === 45 ? x : p;
|
|
171
171
|
return n.consume(h), E;
|
|
172
172
|
}
|
|
173
173
|
return t(h);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
var Gn = {
|
|
177
|
-
continuation: { tokenize:
|
|
178
|
-
exit:
|
|
177
|
+
continuation: { tokenize: vt },
|
|
178
|
+
exit: Bt,
|
|
179
179
|
name: "blockQuote",
|
|
180
|
-
tokenize:
|
|
180
|
+
tokenize: Ft
|
|
181
181
|
};
|
|
182
|
-
function
|
|
182
|
+
function Ft(n, r, t) {
|
|
183
183
|
const e = this;
|
|
184
184
|
return a;
|
|
185
185
|
function a(u) {
|
|
@@ -193,7 +193,7 @@ function Tt(n, r, t) {
|
|
|
193
193
|
return v(u) ? (n.enter("blockQuotePrefixWhitespace"), n.consume(u), n.exit("blockQuotePrefixWhitespace"), n.exit("blockQuotePrefix"), r) : (n.exit("blockQuotePrefix"), r(u));
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function vt(n, r, t) {
|
|
197
197
|
const e = this;
|
|
198
198
|
return a;
|
|
199
199
|
function a(u) {
|
|
@@ -203,27 +203,27 @@ function Ft(n, r, t) {
|
|
|
203
203
|
return n.attempt(Gn, r, t)(u);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Bt(n) {
|
|
207
207
|
n.exit("blockQuote");
|
|
208
208
|
}
|
|
209
209
|
var Jn = {
|
|
210
210
|
name: "characterEscape",
|
|
211
|
-
tokenize:
|
|
211
|
+
tokenize: At
|
|
212
212
|
};
|
|
213
|
-
function
|
|
213
|
+
function At(n, r, t) {
|
|
214
214
|
return e;
|
|
215
215
|
function e(i) {
|
|
216
216
|
return n.enter("characterEscape"), n.enter("escapeMarker"), n.consume(i), n.exit("escapeMarker"), a;
|
|
217
217
|
}
|
|
218
218
|
function a(i) {
|
|
219
|
-
return
|
|
219
|
+
return dt(i) ? (n.enter("characterEscapeValue"), n.consume(i), n.exit("characterEscapeValue"), n.exit("characterEscape"), r) : t(i);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
var Kn = {
|
|
223
223
|
name: "characterReference",
|
|
224
|
-
tokenize:
|
|
224
|
+
tokenize: _t
|
|
225
225
|
};
|
|
226
|
-
function
|
|
226
|
+
function _t(n, r, t) {
|
|
227
227
|
const e = this;
|
|
228
228
|
let a = 0, i, u;
|
|
229
229
|
return s;
|
|
@@ -234,25 +234,25 @@ function At(n, r, t) {
|
|
|
234
234
|
return p === 35 ? (n.enter("characterReferenceMarkerNumeric"), n.consume(p), n.exit("characterReferenceMarkerNumeric"), c) : (n.enter("characterReferenceValue"), i = 31, u = J, m(p));
|
|
235
235
|
}
|
|
236
236
|
function c(p) {
|
|
237
|
-
return p === 88 || p === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(p), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), i = 6, u =
|
|
237
|
+
return p === 88 || p === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(p), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), i = 6, u = xt, m) : (n.enter("characterReferenceValue"), i = 7, u = Cn, m(p));
|
|
238
238
|
}
|
|
239
239
|
function m(p) {
|
|
240
240
|
if (p === 59 && a) {
|
|
241
|
-
const
|
|
242
|
-
return u === J && !vn(e.sliceSerialize(
|
|
241
|
+
const x = n.exit("characterReferenceValue");
|
|
242
|
+
return u === J && !vn(e.sliceSerialize(x)) ? t(p) : (n.enter("characterReferenceMarker"), n.consume(p), n.exit("characterReferenceMarker"), n.exit("characterReference"), r);
|
|
243
243
|
}
|
|
244
244
|
return u(p) && a++ < i ? (n.consume(p), m) : t(p);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
var
|
|
247
|
+
var Hn = {
|
|
248
248
|
partial: !0,
|
|
249
|
-
tokenize:
|
|
250
|
-
},
|
|
249
|
+
tokenize: Lt
|
|
250
|
+
}, Vn = {
|
|
251
251
|
concrete: !0,
|
|
252
252
|
name: "codeFenced",
|
|
253
|
-
tokenize:
|
|
253
|
+
tokenize: Pt
|
|
254
254
|
};
|
|
255
|
-
function
|
|
255
|
+
function Pt(n, r, t) {
|
|
256
256
|
const e = this, a = {
|
|
257
257
|
partial: !0,
|
|
258
258
|
tokenize: N
|
|
@@ -270,10 +270,10 @@ function _t(n, r, t) {
|
|
|
270
270
|
return k === s ? (u++, n.consume(k), m) : u < 3 ? t(k) : (n.exit("codeFencedFenceSequence"), v(k) ? L(n, p, "whitespace")(k) : p(k));
|
|
271
271
|
}
|
|
272
272
|
function p(k) {
|
|
273
|
-
return k === null || w(k) ? (n.exit("codeFencedFence"), e.interrupt ? r(k) : n.check(
|
|
273
|
+
return k === null || w(k) ? (n.exit("codeFencedFence"), e.interrupt ? r(k) : n.check(Hn, T, M)(k)) : (n.enter("codeFencedFenceInfo"), n.enter("chunkString", { contentType: "string" }), x(k));
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return k === null || w(k) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), p(k)) : v(k) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), L(n, h, "whitespace")(k)) : k === 96 && k === s ? t(k) : (n.consume(k),
|
|
275
|
+
function x(k) {
|
|
276
|
+
return k === null || w(k) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), p(k)) : v(k) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), L(n, h, "whitespace")(k)) : k === 96 && k === s ? t(k) : (n.consume(k), x);
|
|
277
277
|
}
|
|
278
278
|
function h(k) {
|
|
279
279
|
return k === null || w(k) ? p(k) : (n.enter("codeFencedFenceMeta"), n.enter("chunkString", { contentType: "string" }), E(k));
|
|
@@ -285,16 +285,16 @@ function _t(n, r, t) {
|
|
|
285
285
|
return n.attempt(a, M, D)(k);
|
|
286
286
|
}
|
|
287
287
|
function D(k) {
|
|
288
|
-
return n.enter("lineEnding"), n.consume(k), n.exit("lineEnding"),
|
|
288
|
+
return n.enter("lineEnding"), n.consume(k), n.exit("lineEnding"), b;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function b(k) {
|
|
291
291
|
return i > 0 && v(k) ? L(n, R, "linePrefix", i + 1)(k) : R(k);
|
|
292
292
|
}
|
|
293
293
|
function R(k) {
|
|
294
|
-
return k === null || w(k) ? n.check(
|
|
294
|
+
return k === null || w(k) ? n.check(Hn, T, M)(k) : (n.enter("codeFlowValue"), d(k));
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return k === null || w(k) ? (n.exit("codeFlowValue"), R(k)) : (n.consume(k),
|
|
296
|
+
function d(k) {
|
|
297
|
+
return k === null || w(k) ? (n.exit("codeFlowValue"), R(k)) : (n.consume(k), d);
|
|
298
298
|
}
|
|
299
299
|
function M(k) {
|
|
300
300
|
return n.exit("codeFenced"), r(k);
|
|
@@ -319,7 +319,7 @@ function _t(n, r, t) {
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function Lt(n, r, t) {
|
|
323
323
|
const e = this;
|
|
324
324
|
return a;
|
|
325
325
|
function a(u) {
|
|
@@ -331,12 +331,12 @@ function Pt(n, r, t) {
|
|
|
331
331
|
}
|
|
332
332
|
var wn = {
|
|
333
333
|
name: "codeIndented",
|
|
334
|
-
tokenize: Mt
|
|
335
|
-
}, Lt = {
|
|
336
|
-
partial: !0,
|
|
337
334
|
tokenize: Ot
|
|
335
|
+
}, Mt = {
|
|
336
|
+
partial: !0,
|
|
337
|
+
tokenize: Nt
|
|
338
338
|
};
|
|
339
|
-
function
|
|
339
|
+
function Ot(n, r, t) {
|
|
340
340
|
const e = this;
|
|
341
341
|
return a;
|
|
342
342
|
function a(c) {
|
|
@@ -347,7 +347,7 @@ function Mt(n, r, t) {
|
|
|
347
347
|
return m && m[1].type === "linePrefix" && m[2].sliceSerialize(m[1], !0).length >= 4 ? u(c) : t(c);
|
|
348
348
|
}
|
|
349
349
|
function u(c) {
|
|
350
|
-
return c === null ? f(c) : w(c) ? n.attempt(
|
|
350
|
+
return c === null ? f(c) : w(c) ? n.attempt(Mt, u, f)(c) : (n.enter("codeFlowValue"), s(c));
|
|
351
351
|
}
|
|
352
352
|
function s(c) {
|
|
353
353
|
return c === null || w(c) ? (n.exit("codeFlowValue"), u(c)) : (n.consume(c), s);
|
|
@@ -356,7 +356,7 @@ function Mt(n, r, t) {
|
|
|
356
356
|
return n.exit("codeIndented"), r(c);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Nt(n, r, t) {
|
|
360
360
|
const e = this;
|
|
361
361
|
return a;
|
|
362
362
|
function a(u) {
|
|
@@ -367,13 +367,13 @@ function Ot(n, r, t) {
|
|
|
367
367
|
return s && s[1].type === "linePrefix" && s[2].sliceSerialize(s[1], !0).length >= 4 ? r(u) : w(u) ? a(u) : t(u);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
var
|
|
370
|
+
var Dt = {
|
|
371
371
|
name: "codeText",
|
|
372
|
-
previous:
|
|
373
|
-
resolve:
|
|
374
|
-
tokenize:
|
|
372
|
+
previous: qt,
|
|
373
|
+
resolve: Rt,
|
|
374
|
+
tokenize: Ht
|
|
375
375
|
};
|
|
376
|
-
function
|
|
376
|
+
function Rt(n) {
|
|
377
377
|
let r = n.length - 4, t = 3, e, a;
|
|
378
378
|
if ((n[t][1].type === "lineEnding" || n[t][1].type === "space") && (n[r][1].type === "lineEnding" || n[r][1].type === "space")) {
|
|
379
379
|
for (e = t; ++e < r; ) if (n[e][1].type === "codeTextData") {
|
|
@@ -384,10 +384,10 @@ function Dt(n) {
|
|
|
384
384
|
for (e = t - 1, r++; ++e <= r; ) a === void 0 ? e !== r && n[e][1].type !== "lineEnding" && (a = e) : (e === r || n[e][1].type === "lineEnding") && (n[a][1].type = "codeTextData", e !== a + 2 && (n[a][1].end = n[e - 1][1].end, n.splice(a + 2, e - a - 2), r -= e - a - 2, e = a + 2), a = void 0);
|
|
385
385
|
return n;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function qt(n) {
|
|
388
388
|
return n !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Ht(n, r, t) {
|
|
391
391
|
let e = 0, a, i;
|
|
392
392
|
return u;
|
|
393
393
|
function u(p) {
|
|
@@ -406,7 +406,7 @@ function qt(n, r, t) {
|
|
|
406
406
|
return p === 96 ? (n.consume(p), a++, m) : a === e ? (n.exit("codeTextSequence"), n.exit("codeText"), r(p)) : (i.type = "codeTextData", c(p));
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
var
|
|
409
|
+
var Vt = class {
|
|
410
410
|
constructor(n) {
|
|
411
411
|
this.left = n ? [...n] : [], this.right = [];
|
|
412
412
|
}
|
|
@@ -428,7 +428,7 @@ var Ht = class {
|
|
|
428
428
|
const e = r || 0;
|
|
429
429
|
this.setCursor(Math.trunc(n));
|
|
430
430
|
const a = this.right.splice(this.right.length - e, Number.POSITIVE_INFINITY);
|
|
431
|
-
return t &&
|
|
431
|
+
return t && Sn(this.left, t), a.reverse();
|
|
432
432
|
}
|
|
433
433
|
pop() {
|
|
434
434
|
return this.setCursor(Number.POSITIVE_INFINITY), this.left.pop();
|
|
@@ -437,26 +437,26 @@ var Ht = class {
|
|
|
437
437
|
this.setCursor(Number.POSITIVE_INFINITY), this.left.push(n);
|
|
438
438
|
}
|
|
439
439
|
pushMany(n) {
|
|
440
|
-
this.setCursor(Number.POSITIVE_INFINITY),
|
|
440
|
+
this.setCursor(Number.POSITIVE_INFINITY), Sn(this.left, n);
|
|
441
441
|
}
|
|
442
442
|
unshift(n) {
|
|
443
443
|
this.setCursor(0), this.right.push(n);
|
|
444
444
|
}
|
|
445
445
|
unshiftMany(n) {
|
|
446
|
-
this.setCursor(0),
|
|
446
|
+
this.setCursor(0), Sn(this.right, n.reverse());
|
|
447
447
|
}
|
|
448
448
|
setCursor(n) {
|
|
449
449
|
if (!(n === this.left.length || n > this.left.length && this.right.length === 0 || n < 0 && this.left.length === 0))
|
|
450
450
|
if (n < this.left.length) {
|
|
451
451
|
const r = this.left.splice(n, Number.POSITIVE_INFINITY);
|
|
452
|
-
|
|
452
|
+
Sn(this.right, r.reverse());
|
|
453
453
|
} else {
|
|
454
454
|
const r = this.right.splice(this.left.length + this.right.length - n, Number.POSITIVE_INFINITY);
|
|
455
|
-
|
|
455
|
+
Sn(this.left, r.reverse());
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
};
|
|
459
|
-
function
|
|
459
|
+
function Sn(n, r) {
|
|
460
460
|
let t = 0;
|
|
461
461
|
if (r.length < 1e4) n.push(...r);
|
|
462
462
|
else for (; t < r.length; )
|
|
@@ -465,14 +465,14 @@ function dn(n, r) {
|
|
|
465
465
|
function Xn(n) {
|
|
466
466
|
const r = {};
|
|
467
467
|
let t = -1, e, a, i, u, s, f, c;
|
|
468
|
-
const m = new
|
|
468
|
+
const m = new Vt(n);
|
|
469
469
|
for (; ++t < m.length; ) {
|
|
470
470
|
for (; t in r; ) t = r[t];
|
|
471
471
|
if (e = m.get(t), t && e[1].type === "chunkFlow" && m.get(t - 1)[1].type === "listItemPrefix" && (f = e[1]._tokenizer.events, i = 0, i < f.length && f[i][1].type === "lineEndingBlank" && (i += 2), i < f.length && f[i][1].type === "content"))
|
|
472
472
|
for (; ++i < f.length && f[i][1].type !== "content"; )
|
|
473
473
|
f[i][1].type === "chunkText" && (f[i][1]._isInFirstContentOfListItem = !0, i++);
|
|
474
474
|
if (e[0] === "enter")
|
|
475
|
-
e[1].contentType && (Object.assign(r,
|
|
475
|
+
e[1].contentType && (Object.assign(r, Qt(m, t)), t = r[t], c = !0);
|
|
476
476
|
else if (e[1]._container) {
|
|
477
477
|
for (i = t, a = void 0; i--; )
|
|
478
478
|
if (u = m.get(i), u[1].type === "lineEnding" || u[1].type === "lineEndingBlank")
|
|
@@ -484,46 +484,46 @@ function Xn(n) {
|
|
|
484
484
|
}
|
|
485
485
|
return on(n, 0, Number.POSITIVE_INFINITY, m.slice(0)), !c;
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Qt(n, r) {
|
|
488
488
|
const t = n.get(r)[1], e = n.get(r)[2];
|
|
489
489
|
let a = r - 1;
|
|
490
490
|
const i = [];
|
|
491
491
|
let u = t._tokenizer;
|
|
492
492
|
u || (u = e.parser[t.contentType](t.start), t._contentTypeTextTrailing && (u._contentTypeTextTrailing = !0));
|
|
493
493
|
const s = u.events, f = [], c = {};
|
|
494
|
-
let m, p,
|
|
494
|
+
let m, p, x = -1, h = t, E = 0, T = 0;
|
|
495
495
|
const D = [T];
|
|
496
496
|
for (; h; ) {
|
|
497
497
|
for (; n.get(++a)[1] !== h; ) ;
|
|
498
498
|
i.push(a), h._tokenizer || (m = e.sliceStream(h), h.next || m.push(null), p && u.defineSkip(h.start), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = !0), u.write(m), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)), p = h, h = h.next;
|
|
499
499
|
}
|
|
500
|
-
for (h = t; ++
|
|
501
|
-
for (u.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : D.pop(),
|
|
502
|
-
const
|
|
503
|
-
f.push([R, R +
|
|
500
|
+
for (h = t; ++x < s.length; ) s[x][0] === "exit" && s[x - 1][0] === "enter" && s[x][1].type === s[x - 1][1].type && s[x][1].start.line !== s[x][1].end.line && (T = x + 1, D.push(T), h._tokenizer = void 0, h.previous = void 0, h = h.next);
|
|
501
|
+
for (u.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : D.pop(), x = D.length; x--; ) {
|
|
502
|
+
const b = s.slice(D[x], D[x + 1]), R = i.pop();
|
|
503
|
+
f.push([R, R + b.length - 1]), n.splice(R, 2, b);
|
|
504
504
|
}
|
|
505
|
-
for (f.reverse(),
|
|
506
|
-
c[E + f[
|
|
505
|
+
for (f.reverse(), x = -1; ++x < f.length; )
|
|
506
|
+
c[E + f[x][0]] = E + f[x][1], E += f[x][1] - f[x][0] - 1;
|
|
507
507
|
return c;
|
|
508
508
|
}
|
|
509
|
-
var
|
|
510
|
-
resolve:
|
|
511
|
-
tokenize: Wt
|
|
512
|
-
}, Ut = {
|
|
513
|
-
partial: !0,
|
|
509
|
+
var Ut = {
|
|
510
|
+
resolve: Wt,
|
|
514
511
|
tokenize: Yt
|
|
512
|
+
}, jt = {
|
|
513
|
+
partial: !0,
|
|
514
|
+
tokenize: $t
|
|
515
515
|
};
|
|
516
|
-
function
|
|
516
|
+
function Wt(n) {
|
|
517
517
|
return Xn(n), n;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Yt(n, r) {
|
|
520
520
|
let t;
|
|
521
521
|
return e;
|
|
522
522
|
function e(s) {
|
|
523
523
|
return n.enter("content"), t = n.enter("chunkContent", { contentType: "content" }), a(s);
|
|
524
524
|
}
|
|
525
525
|
function a(s) {
|
|
526
|
-
return s === null ? i(s) : w(s) ? n.check(
|
|
526
|
+
return s === null ? i(s) : w(s) ? n.check(jt, u, i)(s) : (n.consume(s), a);
|
|
527
527
|
}
|
|
528
528
|
function i(s) {
|
|
529
529
|
return n.exit("chunkContent"), n.exit("content"), r(s);
|
|
@@ -535,7 +535,7 @@ function Wt(n, r) {
|
|
|
535
535
|
}), t = t.next, a;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function $t(n, r, t) {
|
|
539
539
|
const e = this;
|
|
540
540
|
return a;
|
|
541
541
|
function a(u) {
|
|
@@ -551,23 +551,23 @@ function Zn(n, r, t, e, a, i, u, s, f) {
|
|
|
551
551
|
const c = f || Number.POSITIVE_INFINITY;
|
|
552
552
|
let m = 0;
|
|
553
553
|
return p;
|
|
554
|
-
function p(
|
|
555
|
-
return
|
|
554
|
+
function p(b) {
|
|
555
|
+
return b === 60 ? (n.enter(e), n.enter(a), n.enter(i), n.consume(b), n.exit(i), x) : b === null || b === 32 || b === 41 || En(b) ? t(b) : (n.enter(e), n.enter(u), n.enter(s), n.enter("chunkString", { contentType: "string" }), T(b));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
return
|
|
557
|
+
function x(b) {
|
|
558
|
+
return b === 62 ? (n.enter(i), n.consume(b), n.exit(i), n.exit(a), n.exit(e), r) : (n.enter(s), n.enter("chunkString", { contentType: "string" }), h(b));
|
|
559
559
|
}
|
|
560
|
-
function h(
|
|
561
|
-
return
|
|
560
|
+
function h(b) {
|
|
561
|
+
return b === 62 ? (n.exit("chunkString"), n.exit(s), x(b)) : b === null || b === 60 || w(b) ? t(b) : (n.consume(b), b === 92 ? E : h);
|
|
562
562
|
}
|
|
563
|
-
function E(
|
|
564
|
-
return
|
|
563
|
+
function E(b) {
|
|
564
|
+
return b === 60 || b === 62 || b === 92 ? (n.consume(b), h) : h(b);
|
|
565
565
|
}
|
|
566
|
-
function T(
|
|
567
|
-
return !m && (
|
|
566
|
+
function T(b) {
|
|
567
|
+
return !m && (b === null || b === 41 || Y(b)) ? (n.exit("chunkString"), n.exit(s), n.exit(u), n.exit(e), r(b)) : m < c && b === 40 ? (n.consume(b), m++, T) : b === 41 ? (n.consume(b), m--, T) : b === null || b === 32 || b === 40 || En(b) ? t(b) : (n.consume(b), b === 92 ? D : T);
|
|
568
568
|
}
|
|
569
|
-
function D(
|
|
570
|
-
return
|
|
569
|
+
function D(b) {
|
|
570
|
+
return b === 40 || b === 41 || b === 92 ? (n.consume(b), T) : T(b);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
function nt(n, r, t, e, a, i) {
|
|
@@ -582,46 +582,46 @@ function nt(n, r, t, e, a, i) {
|
|
|
582
582
|
h === 94 && !s && "_hiddenFootnoteSupport" in u.parser.constructs ? t(h) : h === 93 ? (n.exit(i), n.enter(a), n.consume(h), n.exit(a), n.exit(e), r) : w(h) ? (n.enter("lineEnding"), n.consume(h), n.exit("lineEnding"), m) : (n.enter("chunkString", { contentType: "string" }), p(h));
|
|
583
583
|
}
|
|
584
584
|
function p(h) {
|
|
585
|
-
return h === null || h === 91 || h === 93 || w(h) || s++ > 999 ? (n.exit("chunkString"), m(h)) : (n.consume(h), f || (f = !v(h)), h === 92 ?
|
|
585
|
+
return h === null || h === 91 || h === 93 || w(h) || s++ > 999 ? (n.exit("chunkString"), m(h)) : (n.consume(h), f || (f = !v(h)), h === 92 ? x : p);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function x(h) {
|
|
588
588
|
return h === 91 || h === 92 || h === 93 ? (n.consume(h), s++, p) : p(h);
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
function tt(n, r, t, e, a, i) {
|
|
592
592
|
let u;
|
|
593
593
|
return s;
|
|
594
|
-
function s(
|
|
595
|
-
return
|
|
594
|
+
function s(x) {
|
|
595
|
+
return x === 34 || x === 39 || x === 40 ? (n.enter(e), n.enter(a), n.consume(x), n.exit(a), u = x === 40 ? 41 : x, f) : t(x);
|
|
596
596
|
}
|
|
597
|
-
function f(
|
|
598
|
-
return
|
|
597
|
+
function f(x) {
|
|
598
|
+
return x === u ? (n.enter(a), n.consume(x), n.exit(a), n.exit(e), r) : (n.enter(i), c(x));
|
|
599
599
|
}
|
|
600
|
-
function c(
|
|
601
|
-
return
|
|
600
|
+
function c(x) {
|
|
601
|
+
return x === u ? (n.exit(i), f(u)) : x === null ? t(x) : w(x) ? (n.enter("lineEnding"), n.consume(x), n.exit("lineEnding"), L(n, c, "linePrefix")) : (n.enter("chunkString", { contentType: "string" }), m(x));
|
|
602
602
|
}
|
|
603
|
-
function m(
|
|
604
|
-
return
|
|
603
|
+
function m(x) {
|
|
604
|
+
return x === u || x === null || w(x) ? (n.exit("chunkString"), c(x)) : (n.consume(x), x === 92 ? p : m);
|
|
605
605
|
}
|
|
606
|
-
function p(
|
|
607
|
-
return
|
|
606
|
+
function p(x) {
|
|
607
|
+
return x === u || x === 92 ? (n.consume(x), m) : m(x);
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function bn(n, r) {
|
|
611
611
|
let t;
|
|
612
612
|
return e;
|
|
613
613
|
function e(a) {
|
|
614
614
|
return w(a) ? (n.enter("lineEnding"), n.consume(a), n.exit("lineEnding"), t = !0, e) : v(a) ? L(n, e, t ? "linePrefix" : "lineSuffix")(a) : r(a);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
var
|
|
617
|
+
var Gt = {
|
|
618
618
|
name: "definition",
|
|
619
|
-
tokenize: Jt
|
|
620
|
-
}, Gt = {
|
|
621
|
-
partial: !0,
|
|
622
619
|
tokenize: Kt
|
|
620
|
+
}, Jt = {
|
|
621
|
+
partial: !0,
|
|
622
|
+
tokenize: Xt
|
|
623
623
|
};
|
|
624
|
-
function
|
|
624
|
+
function Kt(n, r, t) {
|
|
625
625
|
const e = this;
|
|
626
626
|
let a;
|
|
627
627
|
return i;
|
|
@@ -635,25 +635,25 @@ function Jt(n, r, t) {
|
|
|
635
635
|
return a = fn(e.sliceSerialize(e.events[e.events.length - 1][1]).slice(1, -1)), h === 58 ? (n.enter("definitionMarker"), n.consume(h), n.exit("definitionMarker"), f) : t(h);
|
|
636
636
|
}
|
|
637
637
|
function f(h) {
|
|
638
|
-
return Y(h) ?
|
|
638
|
+
return Y(h) ? bn(n, c)(h) : c(h);
|
|
639
639
|
}
|
|
640
640
|
function c(h) {
|
|
641
641
|
return Zn(n, m, t, "definitionDestination", "definitionDestinationLiteral", "definitionDestinationLiteralMarker", "definitionDestinationRaw", "definitionDestinationString")(h);
|
|
642
642
|
}
|
|
643
643
|
function m(h) {
|
|
644
|
-
return n.attempt(
|
|
644
|
+
return n.attempt(Jt, p, p)(h);
|
|
645
645
|
}
|
|
646
646
|
function p(h) {
|
|
647
|
-
return v(h) ? L(n,
|
|
647
|
+
return v(h) ? L(n, x, "whitespace")(h) : x(h);
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function x(h) {
|
|
650
650
|
return h === null || w(h) ? (n.exit("definition"), e.parser.defined.push(a), r(h)) : t(h);
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Xt(n, r, t) {
|
|
654
654
|
return e;
|
|
655
655
|
function e(s) {
|
|
656
|
-
return Y(s) ?
|
|
656
|
+
return Y(s) ? bn(n, a)(s) : t(s);
|
|
657
657
|
}
|
|
658
658
|
function a(s) {
|
|
659
659
|
return tt(n, i, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(s);
|
|
@@ -665,11 +665,11 @@ function Kt(n, r, t) {
|
|
|
665
665
|
return s === null || w(s) ? r(s) : t(s);
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
var
|
|
668
|
+
var Zt = {
|
|
669
669
|
name: "hardBreakEscape",
|
|
670
|
-
tokenize:
|
|
670
|
+
tokenize: ne
|
|
671
671
|
};
|
|
672
|
-
function
|
|
672
|
+
function ne(n, r, t) {
|
|
673
673
|
return e;
|
|
674
674
|
function e(i) {
|
|
675
675
|
return n.enter("hardBreakEscape"), n.consume(i), a;
|
|
@@ -678,12 +678,12 @@ function Zt(n, r, t) {
|
|
|
678
678
|
return w(i) ? (n.exit("hardBreakEscape"), r(i)) : t(i);
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
var
|
|
681
|
+
var te = {
|
|
682
682
|
name: "headingAtx",
|
|
683
|
-
resolve:
|
|
684
|
-
tokenize:
|
|
683
|
+
resolve: ee,
|
|
684
|
+
tokenize: re
|
|
685
685
|
};
|
|
686
|
-
function
|
|
686
|
+
function ee(n, r) {
|
|
687
687
|
let t = n.length - 2, e = 3, a, i;
|
|
688
688
|
return n[e][1].type === "whitespace" && (e += 2), t - 2 > e && n[t][1].type === "whitespace" && (t -= 2), n[t][1].type === "atxHeadingSequence" && (e === t - 1 || t - 4 > e && n[t - 2][1].type === "whitespace") && (t -= e + 1 === t ? 2 : 4), t > e && (a = {
|
|
689
689
|
type: "atxHeadingText",
|
|
@@ -717,7 +717,7 @@ function te(n, r) {
|
|
|
717
717
|
]
|
|
718
718
|
])), n;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function re(n, r, t) {
|
|
721
721
|
let e = 0;
|
|
722
722
|
return a;
|
|
723
723
|
function a(m) {
|
|
@@ -739,75 +739,7 @@ function ee(n, r, t) {
|
|
|
739
739
|
return m === null || m === 35 || Y(m) ? (n.exit("atxHeadingText"), s(m)) : (n.consume(m), c);
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
|
-
var
|
|
743
|
-
"address",
|
|
744
|
-
"article",
|
|
745
|
-
"aside",
|
|
746
|
-
"base",
|
|
747
|
-
"basefont",
|
|
748
|
-
"blockquote",
|
|
749
|
-
"body",
|
|
750
|
-
"caption",
|
|
751
|
-
"center",
|
|
752
|
-
"col",
|
|
753
|
-
"colgroup",
|
|
754
|
-
"dd",
|
|
755
|
-
"details",
|
|
756
|
-
"dialog",
|
|
757
|
-
"dir",
|
|
758
|
-
"div",
|
|
759
|
-
"dl",
|
|
760
|
-
"dt",
|
|
761
|
-
"fieldset",
|
|
762
|
-
"figcaption",
|
|
763
|
-
"figure",
|
|
764
|
-
"footer",
|
|
765
|
-
"form",
|
|
766
|
-
"frame",
|
|
767
|
-
"frameset",
|
|
768
|
-
"h1",
|
|
769
|
-
"h2",
|
|
770
|
-
"h3",
|
|
771
|
-
"h4",
|
|
772
|
-
"h5",
|
|
773
|
-
"h6",
|
|
774
|
-
"head",
|
|
775
|
-
"header",
|
|
776
|
-
"hr",
|
|
777
|
-
"html",
|
|
778
|
-
"iframe",
|
|
779
|
-
"legend",
|
|
780
|
-
"li",
|
|
781
|
-
"link",
|
|
782
|
-
"main",
|
|
783
|
-
"menu",
|
|
784
|
-
"menuitem",
|
|
785
|
-
"nav",
|
|
786
|
-
"noframes",
|
|
787
|
-
"ol",
|
|
788
|
-
"optgroup",
|
|
789
|
-
"option",
|
|
790
|
-
"p",
|
|
791
|
-
"param",
|
|
792
|
-
"search",
|
|
793
|
-
"section",
|
|
794
|
-
"summary",
|
|
795
|
-
"table",
|
|
796
|
-
"tbody",
|
|
797
|
-
"td",
|
|
798
|
-
"tfoot",
|
|
799
|
-
"th",
|
|
800
|
-
"thead",
|
|
801
|
-
"title",
|
|
802
|
-
"tr",
|
|
803
|
-
"track",
|
|
804
|
-
"ul"
|
|
805
|
-
], Vn = [
|
|
806
|
-
"pre",
|
|
807
|
-
"script",
|
|
808
|
-
"style",
|
|
809
|
-
"textarea"
|
|
810
|
-
], ie = {
|
|
742
|
+
var ie = {
|
|
811
743
|
concrete: !0,
|
|
812
744
|
name: "htmlFlow",
|
|
813
745
|
resolveTo: le,
|
|
@@ -835,9 +767,9 @@ function oe(n, r, t) {
|
|
|
835
767
|
return n.enter("htmlFlow"), n.enter("htmlFlowData"), n.consume(o), p;
|
|
836
768
|
}
|
|
837
769
|
function p(o) {
|
|
838
|
-
return o === 33 ? (n.consume(o),
|
|
770
|
+
return o === 33 ? (n.consume(o), x) : o === 47 ? (n.consume(o), i = !0, T) : o === 63 ? (n.consume(o), a = 3, e.interrupt ? r : l) : K(o) ? (n.consume(o), u = String.fromCharCode(o), D) : t(o);
|
|
839
771
|
}
|
|
840
|
-
function
|
|
772
|
+
function x(o) {
|
|
841
773
|
return o === 45 ? (n.consume(o), a = 2, h) : o === 91 ? (n.consume(o), a = 5, s = 0, E) : K(o) ? (n.consume(o), a = 4, e.interrupt ? r : l) : t(o);
|
|
842
774
|
}
|
|
843
775
|
function h(o) {
|
|
@@ -852,24 +784,24 @@ function oe(n, r, t) {
|
|
|
852
784
|
function D(o) {
|
|
853
785
|
if (o === null || o === 47 || o === 62 || Y(o)) {
|
|
854
786
|
const un = o === 47, sn = u.toLowerCase();
|
|
855
|
-
return !un && !i &&
|
|
787
|
+
return !un && !i && Nn.includes(sn) ? (a = 1, e.interrupt ? r(o) : y(o)) : gt.includes(u.toLowerCase()) ? (a = 6, un ? (n.consume(o), b) : e.interrupt ? r(o) : y(o)) : (a = 7, e.interrupt && !e.parser.lazy[e.now().line] ? t(o) : i ? R(o) : d(o));
|
|
856
788
|
}
|
|
857
789
|
return o === 45 || J(o) ? (n.consume(o), u += String.fromCharCode(o), D) : t(o);
|
|
858
790
|
}
|
|
859
|
-
function
|
|
791
|
+
function b(o) {
|
|
860
792
|
return o === 62 ? (n.consume(o), e.interrupt ? r : y) : t(o);
|
|
861
793
|
}
|
|
862
794
|
function R(o) {
|
|
863
795
|
return v(o) ? (n.consume(o), R) : A(o);
|
|
864
796
|
}
|
|
865
|
-
function
|
|
866
|
-
return o === 47 ? (n.consume(o), A) : o === 58 || o === 95 || K(o) ? (n.consume(o), M) : v(o) ? (n.consume(o),
|
|
797
|
+
function d(o) {
|
|
798
|
+
return o === 47 ? (n.consume(o), A) : o === 58 || o === 95 || K(o) ? (n.consume(o), M) : v(o) ? (n.consume(o), d) : A(o);
|
|
867
799
|
}
|
|
868
800
|
function M(o) {
|
|
869
801
|
return o === 45 || o === 46 || o === 58 || o === 95 || J(o) ? (n.consume(o), M) : N(o);
|
|
870
802
|
}
|
|
871
803
|
function N(o) {
|
|
872
|
-
return o === 61 ? (n.consume(o), k) : v(o) ? (n.consume(o), N) :
|
|
804
|
+
return o === 61 ? (n.consume(o), k) : v(o) ? (n.consume(o), N) : d(o);
|
|
873
805
|
}
|
|
874
806
|
function k(o) {
|
|
875
807
|
return o === null || o === 60 || o === 61 || o === 62 || o === 96 ? t(o) : o === 34 || o === 39 ? (n.consume(o), f = o, F) : v(o) ? (n.consume(o), k) : q(o);
|
|
@@ -881,7 +813,7 @@ function oe(n, r, t) {
|
|
|
881
813
|
return o === null || o === 34 || o === 39 || o === 47 || o === 60 || o === 61 || o === 62 || o === 96 || Y(o) ? N(o) : (n.consume(o), q);
|
|
882
814
|
}
|
|
883
815
|
function B(o) {
|
|
884
|
-
return o === 47 || o === 62 || v(o) ?
|
|
816
|
+
return o === 47 || o === 62 || v(o) ? d(o) : t(o);
|
|
885
817
|
}
|
|
886
818
|
function A(o) {
|
|
887
819
|
return o === 62 ? (n.consume(o), I) : t(o);
|
|
@@ -910,7 +842,7 @@ function oe(n, r, t) {
|
|
|
910
842
|
function G(o) {
|
|
911
843
|
if (o === 62) {
|
|
912
844
|
const un = u.toLowerCase();
|
|
913
|
-
return
|
|
845
|
+
return Nn.includes(un) ? (n.consume(o), rn) : y(o);
|
|
914
846
|
}
|
|
915
847
|
return K(o) && u.length < 8 ? (n.consume(o), u += String.fromCharCode(o), G) : y(o);
|
|
916
848
|
}
|
|
@@ -955,7 +887,7 @@ function pe(n, r, t) {
|
|
|
955
887
|
return n.enter("htmlText"), n.enter("htmlTextData"), n.consume(l), f;
|
|
956
888
|
}
|
|
957
889
|
function f(l) {
|
|
958
|
-
return l === 33 ? (n.consume(l), c) : l === 47 ? (n.consume(l), N) : l === 63 ? (n.consume(l),
|
|
890
|
+
return l === 33 ? (n.consume(l), c) : l === 47 ? (n.consume(l), N) : l === 63 ? (n.consume(l), d) : K(l) ? (n.consume(l), q) : t(l);
|
|
959
891
|
}
|
|
960
892
|
function c(l) {
|
|
961
893
|
return l === 45 ? (n.consume(l), m) : l === 91 ? (n.consume(l), i = 0, E) : K(l) ? (n.consume(l), R) : t(l);
|
|
@@ -964,13 +896,13 @@ function pe(n, r, t) {
|
|
|
964
896
|
return l === 45 ? (n.consume(l), h) : t(l);
|
|
965
897
|
}
|
|
966
898
|
function p(l) {
|
|
967
|
-
return l === null ? t(l) : l === 45 ? (n.consume(l),
|
|
899
|
+
return l === null ? t(l) : l === 45 ? (n.consume(l), x) : w(l) ? (u = p, V(l)) : (n.consume(l), p);
|
|
968
900
|
}
|
|
969
|
-
function
|
|
901
|
+
function x(l) {
|
|
970
902
|
return l === 45 ? (n.consume(l), h) : p(l);
|
|
971
903
|
}
|
|
972
904
|
function h(l) {
|
|
973
|
-
return l === 62 ? U(l) : l === 45 ?
|
|
905
|
+
return l === 62 ? U(l) : l === 45 ? x(l) : p(l);
|
|
974
906
|
}
|
|
975
907
|
function E(l) {
|
|
976
908
|
return l === "CDATA[".charCodeAt(i++) ? (n.consume(l), i === 6 ? T : E) : t(l);
|
|
@@ -979,19 +911,19 @@ function pe(n, r, t) {
|
|
|
979
911
|
return l === null ? t(l) : l === 93 ? (n.consume(l), D) : w(l) ? (u = T, V(l)) : (n.consume(l), T);
|
|
980
912
|
}
|
|
981
913
|
function D(l) {
|
|
982
|
-
return l === 93 ? (n.consume(l),
|
|
914
|
+
return l === 93 ? (n.consume(l), b) : T(l);
|
|
983
915
|
}
|
|
984
|
-
function
|
|
985
|
-
return l === 62 ? U(l) : l === 93 ? (n.consume(l),
|
|
916
|
+
function b(l) {
|
|
917
|
+
return l === 62 ? U(l) : l === 93 ? (n.consume(l), b) : T(l);
|
|
986
918
|
}
|
|
987
919
|
function R(l) {
|
|
988
920
|
return l === null || l === 62 ? U(l) : w(l) ? (u = R, V(l)) : (n.consume(l), R);
|
|
989
921
|
}
|
|
990
|
-
function
|
|
991
|
-
return l === null ? t(l) : l === 63 ? (n.consume(l), M) : w(l) ? (u =
|
|
922
|
+
function d(l) {
|
|
923
|
+
return l === null ? t(l) : l === 63 ? (n.consume(l), M) : w(l) ? (u = d, V(l)) : (n.consume(l), d);
|
|
992
924
|
}
|
|
993
925
|
function M(l) {
|
|
994
|
-
return l === 62 ? U(l) :
|
|
926
|
+
return l === 62 ? U(l) : d(l);
|
|
995
927
|
}
|
|
996
928
|
function N(l) {
|
|
997
929
|
return K(l) ? (n.consume(l), k) : t(l);
|
|
@@ -1041,11 +973,11 @@ function pe(n, r, t) {
|
|
|
1041
973
|
}
|
|
1042
974
|
var Bn = {
|
|
1043
975
|
name: "labelEnd",
|
|
1044
|
-
resolveAll:
|
|
976
|
+
resolveAll: ge,
|
|
1045
977
|
resolveTo: ke,
|
|
1046
|
-
tokenize:
|
|
1047
|
-
}, me = { tokenize:
|
|
1048
|
-
function
|
|
978
|
+
tokenize: Se
|
|
979
|
+
}, me = { tokenize: be }, fe = { tokenize: de }, xe = { tokenize: ye };
|
|
980
|
+
function ge(n) {
|
|
1049
981
|
let r = -1;
|
|
1050
982
|
const t = [];
|
|
1051
983
|
for (; ++r < n.length; ) {
|
|
@@ -1113,7 +1045,7 @@ function ke(n, r) {
|
|
|
1113
1045
|
r
|
|
1114
1046
|
]]), on(n, i, n.length, s), n;
|
|
1115
1047
|
}
|
|
1116
|
-
function
|
|
1048
|
+
function Se(n, r, t) {
|
|
1117
1049
|
const e = this;
|
|
1118
1050
|
let a = e.events.length, i, u;
|
|
1119
1051
|
for (; a--; ) if ((e.events[a][1].type === "labelImage" || e.events[a][1].type === "labelLink") && !e.events[a][1]._balanced) {
|
|
@@ -1121,38 +1053,38 @@ function de(n, r, t) {
|
|
|
1121
1053
|
break;
|
|
1122
1054
|
}
|
|
1123
1055
|
return s;
|
|
1124
|
-
function s(
|
|
1125
|
-
return i ? i._inactive ? p(
|
|
1056
|
+
function s(x) {
|
|
1057
|
+
return i ? i._inactive ? p(x) : (u = e.parser.defined.includes(fn(e.sliceSerialize({
|
|
1126
1058
|
start: i.end,
|
|
1127
1059
|
end: e.now()
|
|
1128
|
-
}))), n.enter("labelEnd"), n.enter("labelMarker"), n.consume(
|
|
1060
|
+
}))), n.enter("labelEnd"), n.enter("labelMarker"), n.consume(x), n.exit("labelMarker"), n.exit("labelEnd"), f) : t(x);
|
|
1129
1061
|
}
|
|
1130
|
-
function f(
|
|
1131
|
-
return
|
|
1062
|
+
function f(x) {
|
|
1063
|
+
return x === 40 ? n.attempt(me, m, u ? m : p)(x) : x === 91 ? n.attempt(fe, m, u ? c : p)(x) : u ? m(x) : p(x);
|
|
1132
1064
|
}
|
|
1133
|
-
function c(
|
|
1134
|
-
return n.attempt(
|
|
1065
|
+
function c(x) {
|
|
1066
|
+
return n.attempt(xe, m, p)(x);
|
|
1135
1067
|
}
|
|
1136
|
-
function m(
|
|
1137
|
-
return r(
|
|
1068
|
+
function m(x) {
|
|
1069
|
+
return r(x);
|
|
1138
1070
|
}
|
|
1139
|
-
function p(
|
|
1140
|
-
return i._balanced = !0, t(
|
|
1071
|
+
function p(x) {
|
|
1072
|
+
return i._balanced = !0, t(x);
|
|
1141
1073
|
}
|
|
1142
1074
|
}
|
|
1143
|
-
function
|
|
1075
|
+
function be(n, r, t) {
|
|
1144
1076
|
return e;
|
|
1145
1077
|
function e(p) {
|
|
1146
1078
|
return n.enter("resource"), n.enter("resourceMarker"), n.consume(p), n.exit("resourceMarker"), a;
|
|
1147
1079
|
}
|
|
1148
1080
|
function a(p) {
|
|
1149
|
-
return Y(p) ?
|
|
1081
|
+
return Y(p) ? bn(n, i)(p) : i(p);
|
|
1150
1082
|
}
|
|
1151
1083
|
function i(p) {
|
|
1152
1084
|
return p === 41 ? m(p) : Zn(n, u, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(p);
|
|
1153
1085
|
}
|
|
1154
1086
|
function u(p) {
|
|
1155
|
-
return Y(p) ?
|
|
1087
|
+
return Y(p) ? bn(n, f)(p) : m(p);
|
|
1156
1088
|
}
|
|
1157
1089
|
function s(p) {
|
|
1158
1090
|
return t(p);
|
|
@@ -1161,13 +1093,13 @@ function Se(n, r, t) {
|
|
|
1161
1093
|
return p === 34 || p === 39 || p === 40 ? tt(n, c, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(p) : m(p);
|
|
1162
1094
|
}
|
|
1163
1095
|
function c(p) {
|
|
1164
|
-
return Y(p) ?
|
|
1096
|
+
return Y(p) ? bn(n, m)(p) : m(p);
|
|
1165
1097
|
}
|
|
1166
1098
|
function m(p) {
|
|
1167
1099
|
return p === 41 ? (n.enter("resourceMarker"), n.consume(p), n.exit("resourceMarker"), n.exit("resource"), r) : t(p);
|
|
1168
1100
|
}
|
|
1169
1101
|
}
|
|
1170
|
-
function
|
|
1102
|
+
function de(n, r, t) {
|
|
1171
1103
|
const e = this;
|
|
1172
1104
|
return a;
|
|
1173
1105
|
function a(s) {
|
|
@@ -1282,15 +1214,15 @@ function Be(n, r, t) {
|
|
|
1282
1214
|
return Cn(h) && ++u < 10 ? (n.consume(h), f) : (!e.interrupt || u < 2) && (e.containerState.marker ? h === e.containerState.marker : h === 41 || h === 46) ? (n.exit("listItemValue"), c(h)) : t(h);
|
|
1283
1215
|
}
|
|
1284
1216
|
function c(h) {
|
|
1285
|
-
return n.enter("listItemMarker"), n.consume(h), n.exit("listItemMarker"), e.containerState.marker = e.containerState.marker || h, n.check(In, e.interrupt ? t : m, n.attempt(Fe,
|
|
1217
|
+
return n.enter("listItemMarker"), n.consume(h), n.exit("listItemMarker"), e.containerState.marker = e.containerState.marker || h, n.check(In, e.interrupt ? t : m, n.attempt(Fe, x, p));
|
|
1286
1218
|
}
|
|
1287
1219
|
function m(h) {
|
|
1288
|
-
return e.containerState.initialBlankLine = !0, i++,
|
|
1220
|
+
return e.containerState.initialBlankLine = !0, i++, x(h);
|
|
1289
1221
|
}
|
|
1290
1222
|
function p(h) {
|
|
1291
|
-
return v(h) ? (n.enter("listItemPrefixWhitespace"), n.consume(h), n.exit("listItemPrefixWhitespace"),
|
|
1223
|
+
return v(h) ? (n.enter("listItemPrefixWhitespace"), n.consume(h), n.exit("listItemPrefixWhitespace"), x) : t(h);
|
|
1292
1224
|
}
|
|
1293
|
-
function
|
|
1225
|
+
function x(h) {
|
|
1294
1226
|
return e.containerState.size = i + e.sliceSerialize(n.exit("listItemPrefix"), !0).length, r(h);
|
|
1295
1227
|
}
|
|
1296
1228
|
}
|
|
@@ -1417,14 +1349,14 @@ function qe(n) {
|
|
|
1417
1349
|
const r = this, t = [];
|
|
1418
1350
|
let e = 0, a, i, u;
|
|
1419
1351
|
return s;
|
|
1420
|
-
function s(
|
|
1352
|
+
function s(d) {
|
|
1421
1353
|
if (e < t.length) {
|
|
1422
1354
|
const M = t[e];
|
|
1423
|
-
return r.containerState = M[1], n.attempt(M[0].continuation, f, c)(
|
|
1355
|
+
return r.containerState = M[1], n.attempt(M[0].continuation, f, c)(d);
|
|
1424
1356
|
}
|
|
1425
|
-
return c(
|
|
1357
|
+
return c(d);
|
|
1426
1358
|
}
|
|
1427
|
-
function f(
|
|
1359
|
+
function f(d) {
|
|
1428
1360
|
if (e++, r.containerState._closeFlow) {
|
|
1429
1361
|
r.containerState._closeFlow = void 0, a && R();
|
|
1430
1362
|
const M = r.events.length;
|
|
@@ -1433,55 +1365,55 @@ function qe(n) {
|
|
|
1433
1365
|
k = r.events[N][1].end;
|
|
1434
1366
|
break;
|
|
1435
1367
|
}
|
|
1436
|
-
|
|
1368
|
+
b(e);
|
|
1437
1369
|
let F = M;
|
|
1438
1370
|
for (; F < r.events.length; )
|
|
1439
1371
|
r.events[F][1].end = { ...k }, F++;
|
|
1440
|
-
return on(r.events, N + 1, 0, r.events.slice(M)), r.events.length = F, c(
|
|
1372
|
+
return on(r.events, N + 1, 0, r.events.slice(M)), r.events.length = F, c(d);
|
|
1441
1373
|
}
|
|
1442
|
-
return s(
|
|
1374
|
+
return s(d);
|
|
1443
1375
|
}
|
|
1444
|
-
function c(
|
|
1376
|
+
function c(d) {
|
|
1445
1377
|
if (e === t.length) {
|
|
1446
|
-
if (!a) return
|
|
1447
|
-
if (a.currentConstruct && a.currentConstruct.concrete) return E(
|
|
1378
|
+
if (!a) return x(d);
|
|
1379
|
+
if (a.currentConstruct && a.currentConstruct.concrete) return E(d);
|
|
1448
1380
|
r.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
|
|
1449
1381
|
}
|
|
1450
|
-
return r.containerState = {}, n.check(Un, m, p)(
|
|
1382
|
+
return r.containerState = {}, n.check(Un, m, p)(d);
|
|
1451
1383
|
}
|
|
1452
|
-
function m(
|
|
1453
|
-
return a && R(),
|
|
1384
|
+
function m(d) {
|
|
1385
|
+
return a && R(), b(e), x(d);
|
|
1454
1386
|
}
|
|
1455
|
-
function p(
|
|
1456
|
-
return r.parser.lazy[r.now().line] = e !== t.length, u = r.now().offset, E(
|
|
1387
|
+
function p(d) {
|
|
1388
|
+
return r.parser.lazy[r.now().line] = e !== t.length, u = r.now().offset, E(d);
|
|
1457
1389
|
}
|
|
1458
|
-
function
|
|
1459
|
-
return r.containerState = {}, n.attempt(Un, h, E)(
|
|
1390
|
+
function x(d) {
|
|
1391
|
+
return r.containerState = {}, n.attempt(Un, h, E)(d);
|
|
1460
1392
|
}
|
|
1461
|
-
function h(
|
|
1462
|
-
return e++, t.push([r.currentConstruct, r.containerState]),
|
|
1393
|
+
function h(d) {
|
|
1394
|
+
return e++, t.push([r.currentConstruct, r.containerState]), x(d);
|
|
1463
1395
|
}
|
|
1464
|
-
function E(
|
|
1465
|
-
if (
|
|
1466
|
-
a && R(),
|
|
1396
|
+
function E(d) {
|
|
1397
|
+
if (d === null) {
|
|
1398
|
+
a && R(), b(0), n.consume(d);
|
|
1467
1399
|
return;
|
|
1468
1400
|
}
|
|
1469
1401
|
return a = a || r.parser.flow(r.now()), n.enter("chunkFlow", {
|
|
1470
1402
|
_tokenizer: a,
|
|
1471
1403
|
contentType: "flow",
|
|
1472
1404
|
previous: i
|
|
1473
|
-
}), T(
|
|
1405
|
+
}), T(d);
|
|
1474
1406
|
}
|
|
1475
|
-
function T(
|
|
1476
|
-
if (
|
|
1477
|
-
D(n.exit("chunkFlow"), !0),
|
|
1407
|
+
function T(d) {
|
|
1408
|
+
if (d === null) {
|
|
1409
|
+
D(n.exit("chunkFlow"), !0), b(0), n.consume(d);
|
|
1478
1410
|
return;
|
|
1479
1411
|
}
|
|
1480
|
-
return w(
|
|
1412
|
+
return w(d) ? (n.consume(d), D(n.exit("chunkFlow")), e = 0, r.interrupt = void 0, s) : (n.consume(d), T);
|
|
1481
1413
|
}
|
|
1482
|
-
function D(
|
|
1483
|
-
const N = r.sliceStream(
|
|
1484
|
-
if (M && N.push(null),
|
|
1414
|
+
function D(d, M) {
|
|
1415
|
+
const N = r.sliceStream(d);
|
|
1416
|
+
if (M && N.push(null), d.previous = i, i && (i.next = d), i = d, a.defineSkip(d.start), a.write(N), r.parser.lazy[d.start.line]) {
|
|
1485
1417
|
let k = a.events.length;
|
|
1486
1418
|
for (; k--; ) if (a.events[k][1].start.offset < u && (!a.events[k][1].end || a.events[k][1].end.offset > u)) return;
|
|
1487
1419
|
const F = r.events.length;
|
|
@@ -1493,18 +1425,18 @@ function qe(n) {
|
|
|
1493
1425
|
}
|
|
1494
1426
|
B = !0;
|
|
1495
1427
|
}
|
|
1496
|
-
for (
|
|
1428
|
+
for (b(e), k = F; k < r.events.length; )
|
|
1497
1429
|
r.events[k][1].end = { ...A }, k++;
|
|
1498
1430
|
on(r.events, q + 1, 0, r.events.slice(F)), r.events.length = k;
|
|
1499
1431
|
}
|
|
1500
1432
|
}
|
|
1501
|
-
function
|
|
1433
|
+
function b(d) {
|
|
1502
1434
|
let M = t.length;
|
|
1503
|
-
for (; M-- >
|
|
1435
|
+
for (; M-- > d; ) {
|
|
1504
1436
|
const N = t[M];
|
|
1505
1437
|
r.containerState = N[1], N[0].exit.call(r, n);
|
|
1506
1438
|
}
|
|
1507
|
-
t.length =
|
|
1439
|
+
t.length = d;
|
|
1508
1440
|
}
|
|
1509
1441
|
function R() {
|
|
1510
1442
|
a.write([null]), i = void 0, a = void 0, r.containerState._closeFlow = void 0;
|
|
@@ -1515,7 +1447,7 @@ function He(n, r, t) {
|
|
|
1515
1447
|
}
|
|
1516
1448
|
var Ve = { tokenize: Qe };
|
|
1517
1449
|
function Qe(n) {
|
|
1518
|
-
const r = this, t = n.attempt(In, e, n.attempt(this.parser.constructs.flowInitial, a, L(n, n.attempt(this.parser.constructs.flow, a, n.attempt(
|
|
1450
|
+
const r = this, t = n.attempt(In, e, n.attempt(this.parser.constructs.flowInitial, a, L(n, n.attempt(this.parser.constructs.flow, a, n.attempt(Ut, a)), "linePrefix")));
|
|
1519
1451
|
return t;
|
|
1520
1452
|
function e(i) {
|
|
1521
1453
|
if (i === null) {
|
|
@@ -1557,9 +1489,9 @@ function et(n) {
|
|
|
1557
1489
|
function c(m) {
|
|
1558
1490
|
if (m === null) return !0;
|
|
1559
1491
|
const p = a[m];
|
|
1560
|
-
let
|
|
1561
|
-
if (p) for (; ++
|
|
1562
|
-
const h = p[
|
|
1492
|
+
let x = -1;
|
|
1493
|
+
if (p) for (; ++x < p.length; ) {
|
|
1494
|
+
const h = p[x];
|
|
1563
1495
|
if (!h.previous || h.previous.call(e, e.previous)) return !0;
|
|
1564
1496
|
}
|
|
1565
1497
|
return !1;
|
|
@@ -1644,19 +1576,19 @@ var $e = /* @__PURE__ */ Yn({
|
|
|
1644
1576
|
56: j,
|
|
1645
1577
|
57: j,
|
|
1646
1578
|
62: Gn
|
|
1647
|
-
}, Je = { 91:
|
|
1579
|
+
}, Je = { 91: Gt }, Ke = {
|
|
1648
1580
|
[-2]: wn,
|
|
1649
1581
|
[-1]: wn,
|
|
1650
1582
|
32: wn
|
|
1651
1583
|
}, Xe = {
|
|
1652
|
-
35:
|
|
1584
|
+
35: te,
|
|
1653
1585
|
42: yn,
|
|
1654
1586
|
45: [Qn, yn],
|
|
1655
1587
|
60: ie,
|
|
1656
1588
|
61: Qn,
|
|
1657
1589
|
95: yn,
|
|
1658
|
-
96:
|
|
1659
|
-
126:
|
|
1590
|
+
96: Vn,
|
|
1591
|
+
126: Vn
|
|
1660
1592
|
}, Ze = {
|
|
1661
1593
|
38: Kn,
|
|
1662
1594
|
92: Jn
|
|
@@ -1667,12 +1599,12 @@ var $e = /* @__PURE__ */ Yn({
|
|
|
1667
1599
|
33: Ie,
|
|
1668
1600
|
38: Kn,
|
|
1669
1601
|
42: Tn,
|
|
1670
|
-
60: [
|
|
1602
|
+
60: [Et, ce],
|
|
1671
1603
|
91: ze,
|
|
1672
|
-
92: [
|
|
1604
|
+
92: [Zt, Jn],
|
|
1673
1605
|
93: Bn,
|
|
1674
1606
|
95: Tn,
|
|
1675
|
-
96:
|
|
1607
|
+
96: Dt
|
|
1676
1608
|
}, tr = { null: [Tn, Ue] }, er = { null: [42, 95] }, rr = { null: [] };
|
|
1677
1609
|
function ir(n, r, t) {
|
|
1678
1610
|
let e = {
|
|
@@ -1688,7 +1620,7 @@ function ir(n, r, t) {
|
|
|
1688
1620
|
attempt: F(N),
|
|
1689
1621
|
check: F(k),
|
|
1690
1622
|
consume: R,
|
|
1691
|
-
enter:
|
|
1623
|
+
enter: d,
|
|
1692
1624
|
exit: M,
|
|
1693
1625
|
interrupt: F(k, { interrupt: !0 })
|
|
1694
1626
|
}, c = {
|
|
@@ -1699,7 +1631,7 @@ function ir(n, r, t) {
|
|
|
1699
1631
|
now: E,
|
|
1700
1632
|
parser: n,
|
|
1701
1633
|
previous: null,
|
|
1702
|
-
sliceSerialize:
|
|
1634
|
+
sliceSerialize: x,
|
|
1703
1635
|
sliceStream: h,
|
|
1704
1636
|
write: p
|
|
1705
1637
|
};
|
|
@@ -1708,7 +1640,7 @@ function ir(n, r, t) {
|
|
|
1708
1640
|
function p(I) {
|
|
1709
1641
|
return u = $(u, I), D(), u[u.length - 1] !== null ? [] : (q(r, 0), c.events = Fn(i, c.events, c), c.events);
|
|
1710
1642
|
}
|
|
1711
|
-
function
|
|
1643
|
+
function x(I, y) {
|
|
1712
1644
|
return ar(h(I), y);
|
|
1713
1645
|
}
|
|
1714
1646
|
function h(I) {
|
|
@@ -1732,17 +1664,17 @@ function ir(n, r, t) {
|
|
|
1732
1664
|
for (; e._index < u.length; ) {
|
|
1733
1665
|
const y = u[e._index];
|
|
1734
1666
|
if (typeof y == "string")
|
|
1735
|
-
for (I = e._index, e._bufferIndex < 0 && (e._bufferIndex = 0); e._index === I && e._bufferIndex < y.length; )
|
|
1736
|
-
else
|
|
1667
|
+
for (I = e._index, e._bufferIndex < 0 && (e._bufferIndex = 0); e._index === I && e._bufferIndex < y.length; ) b(y.charCodeAt(e._bufferIndex));
|
|
1668
|
+
else b(y);
|
|
1737
1669
|
}
|
|
1738
1670
|
}
|
|
1739
|
-
function
|
|
1671
|
+
function b(I) {
|
|
1740
1672
|
m = m(I);
|
|
1741
1673
|
}
|
|
1742
1674
|
function R(I) {
|
|
1743
1675
|
w(I) ? (e.line++, e.column = 1, e.offset += I === -3 ? 2 : 1, A()) : I !== -1 && (e.column++, e.offset++), e._bufferIndex < 0 ? e._index++ : (e._bufferIndex++, e._bufferIndex === u[e._index].length && (e._bufferIndex = -1, e._index++)), c.previous = I;
|
|
1744
1676
|
}
|
|
1745
|
-
function
|
|
1677
|
+
function d(I, y) {
|
|
1746
1678
|
const O = y || {};
|
|
1747
1679
|
return O.type = I, O.start = E(), c.events.push([
|
|
1748
1680
|
"enter",
|
|
@@ -1770,8 +1702,8 @@ function ir(n, r, t) {
|
|
|
1770
1702
|
let V, G, X, l;
|
|
1771
1703
|
return Array.isArray(H) ? Z(H) : "tokenize" in H ? Z([H]) : rn(H);
|
|
1772
1704
|
function rn(Q) {
|
|
1773
|
-
return
|
|
1774
|
-
function
|
|
1705
|
+
return xn;
|
|
1706
|
+
function xn(nn) {
|
|
1775
1707
|
const hn = nn !== null && Q[nn], cn = nn !== null && Q.null;
|
|
1776
1708
|
return Z([...Array.isArray(hn) ? hn : hn ? [hn] : [], ...Array.isArray(cn) ? cn : cn ? [cn] : []])(nn);
|
|
1777
1709
|
}
|
|
@@ -1780,8 +1712,8 @@ function ir(n, r, t) {
|
|
|
1780
1712
|
return V = Q, G = 0, Q.length === 0 ? U : o(Q[G]);
|
|
1781
1713
|
}
|
|
1782
1714
|
function o(Q) {
|
|
1783
|
-
return
|
|
1784
|
-
function
|
|
1715
|
+
return xn;
|
|
1716
|
+
function xn(nn) {
|
|
1785
1717
|
return l = B(), X = Q, Q.partial || (c.currentConstruct = Q), Q.name && c.parser.constructs.disable.null.includes(Q.name) ? sn(nn) : Q.tokenize.call(y ? Object.assign(Object.create(c), y) : c, f, un, sn)(nn);
|
|
1786
1718
|
}
|
|
1787
1719
|
}
|
|
@@ -1859,7 +1791,7 @@ function ar(n, r) {
|
|
|
1859
1791
|
}
|
|
1860
1792
|
function lr(n) {
|
|
1861
1793
|
const r = {
|
|
1862
|
-
constructs:
|
|
1794
|
+
constructs: kt([$e, ...(n || {}).extensions || []]),
|
|
1863
1795
|
content: t(Ne),
|
|
1864
1796
|
defined: [],
|
|
1865
1797
|
document: t(Re),
|
|
@@ -1886,16 +1818,16 @@ function sr() {
|
|
|
1886
1818
|
return a;
|
|
1887
1819
|
function a(i, u, s) {
|
|
1888
1820
|
const f = [];
|
|
1889
|
-
let c, m, p,
|
|
1821
|
+
let c, m, p, x, h;
|
|
1890
1822
|
for (i = r + (typeof i == "string" ? i.toString() : new TextDecoder(u || void 0).decode(i)), p = 0, r = "", t && (i.charCodeAt(0) === 65279 && p++, t = void 0); p < i.length; ) {
|
|
1891
|
-
if (jn.lastIndex = p, c = jn.exec(i),
|
|
1823
|
+
if (jn.lastIndex = p, c = jn.exec(i), x = c && c.index !== void 0 ? c.index : i.length, h = i.charCodeAt(x), !c) {
|
|
1892
1824
|
r = i.slice(p);
|
|
1893
1825
|
break;
|
|
1894
1826
|
}
|
|
1895
|
-
if (h === 10 && p ===
|
|
1827
|
+
if (h === 10 && p === x && e)
|
|
1896
1828
|
f.push(-3), e = void 0;
|
|
1897
1829
|
else
|
|
1898
|
-
switch (e && (f.push(-5), e = void 0), p <
|
|
1830
|
+
switch (e && (f.push(-5), e = void 0), p < x && (f.push(i.slice(p, x)), n += x - p), h) {
|
|
1899
1831
|
case 0:
|
|
1900
1832
|
f.push(65533), n++;
|
|
1901
1833
|
break;
|
|
@@ -1908,7 +1840,7 @@ function sr() {
|
|
|
1908
1840
|
default:
|
|
1909
1841
|
e = !0, n = 1;
|
|
1910
1842
|
}
|
|
1911
|
-
p =
|
|
1843
|
+
p = x + 1;
|
|
1912
1844
|
}
|
|
1913
1845
|
return s && (e && f.push(-5), r && f.push(r), f.push(null)), f;
|
|
1914
1846
|
}
|
|
@@ -1958,7 +1890,7 @@ function cr(n) {
|
|
|
1958
1890
|
label: u,
|
|
1959
1891
|
link: i(Mn),
|
|
1960
1892
|
listItem: i(ht),
|
|
1961
|
-
listItemValue:
|
|
1893
|
+
listItemValue: x,
|
|
1962
1894
|
listOrdered: i(On, p),
|
|
1963
1895
|
listUnordered: i(On),
|
|
1964
1896
|
paragraph: i(ct),
|
|
@@ -1981,20 +1913,20 @@ function cr(n) {
|
|
|
1981
1913
|
characterReferenceMarkerHexadecimal: sn,
|
|
1982
1914
|
characterReferenceMarkerNumeric: sn,
|
|
1983
1915
|
characterReferenceValue: Q,
|
|
1984
|
-
characterReference:
|
|
1916
|
+
characterReference: xn,
|
|
1985
1917
|
codeFenced: f(D),
|
|
1986
1918
|
codeFencedFence: T,
|
|
1987
1919
|
codeFencedFenceInfo: h,
|
|
1988
1920
|
codeFencedFenceMeta: E,
|
|
1989
1921
|
codeFlowValue: A,
|
|
1990
|
-
codeIndented: f(
|
|
1922
|
+
codeIndented: f(b),
|
|
1991
1923
|
codeText: f(C),
|
|
1992
1924
|
codeTextData: A,
|
|
1993
1925
|
data: A,
|
|
1994
1926
|
definition: f(),
|
|
1995
1927
|
definitionDestinationString: M,
|
|
1996
1928
|
definitionLabelString: R,
|
|
1997
|
-
definitionTitleString:
|
|
1929
|
+
definitionTitleString: d,
|
|
1998
1930
|
emphasis: f(),
|
|
1999
1931
|
hardBreakEscape: f(y),
|
|
2000
1932
|
hardBreakTrailing: f(y),
|
|
@@ -2025,13 +1957,13 @@ function cr(n) {
|
|
|
2025
1957
|
ut(r, (n || {}).mdastExtensions || []);
|
|
2026
1958
|
const t = {};
|
|
2027
1959
|
return e;
|
|
2028
|
-
function e(
|
|
2029
|
-
let
|
|
1960
|
+
function e(g) {
|
|
1961
|
+
let S = {
|
|
2030
1962
|
type: "root",
|
|
2031
1963
|
children: []
|
|
2032
1964
|
};
|
|
2033
1965
|
const z = {
|
|
2034
|
-
stack: [
|
|
1966
|
+
stack: [S],
|
|
2035
1967
|
tokenStack: [],
|
|
2036
1968
|
config: r,
|
|
2037
1969
|
enter: s,
|
|
@@ -2041,33 +1973,33 @@ function cr(n) {
|
|
|
2041
1973
|
data: t
|
|
2042
1974
|
}, _ = [];
|
|
2043
1975
|
let P = -1;
|
|
2044
|
-
for (; ++P <
|
|
2045
|
-
for (P = -1; ++P <
|
|
2046
|
-
const an = r[
|
|
2047
|
-
it.call(an,
|
|
1976
|
+
for (; ++P < g.length; ) (g[P][1].type === "listOrdered" || g[P][1].type === "listUnordered") && (g[P][0] === "enter" ? _.push(P) : P = a(g, _.pop(), P));
|
|
1977
|
+
for (P = -1; ++P < g.length; ) {
|
|
1978
|
+
const an = r[g[P][0]];
|
|
1979
|
+
it.call(an, g[P][1].type) && an[g[P][1].type].call(Object.assign({ sliceSerialize: g[P][2].sliceSerialize }, z), g[P][1]);
|
|
2048
1980
|
}
|
|
2049
1981
|
if (z.tokenStack.length > 0) {
|
|
2050
1982
|
const an = z.tokenStack[z.tokenStack.length - 1];
|
|
2051
1983
|
(an[1] || Wn).call(z, void 0, an[0]);
|
|
2052
1984
|
}
|
|
2053
|
-
for (
|
|
2054
|
-
start: ln(
|
|
1985
|
+
for (S.position = {
|
|
1986
|
+
start: ln(g.length > 0 ? g[0][1].start : {
|
|
2055
1987
|
line: 1,
|
|
2056
1988
|
column: 1,
|
|
2057
1989
|
offset: 0
|
|
2058
1990
|
}),
|
|
2059
|
-
end: ln(
|
|
1991
|
+
end: ln(g.length > 0 ? g[g.length - 2][1].end : {
|
|
2060
1992
|
line: 1,
|
|
2061
1993
|
column: 1,
|
|
2062
1994
|
offset: 0
|
|
2063
1995
|
})
|
|
2064
|
-
}, P = -1; ++P < r.transforms.length; )
|
|
2065
|
-
return
|
|
1996
|
+
}, P = -1; ++P < r.transforms.length; ) S = r.transforms[P](S) || S;
|
|
1997
|
+
return S;
|
|
2066
1998
|
}
|
|
2067
|
-
function a(
|
|
2068
|
-
let _ =
|
|
1999
|
+
function a(g, S, z) {
|
|
2000
|
+
let _ = S - 1, P = -1, an = !1, pn, tn, gn, kn;
|
|
2069
2001
|
for (; ++_ <= z; ) {
|
|
2070
|
-
const W =
|
|
2002
|
+
const W = g[_];
|
|
2071
2003
|
switch (W[1].type) {
|
|
2072
2004
|
case "listUnordered":
|
|
2073
2005
|
case "listOrdered":
|
|
@@ -2075,7 +2007,7 @@ function cr(n) {
|
|
|
2075
2007
|
W[0] === "enter" ? P++ : P--, kn = void 0;
|
|
2076
2008
|
break;
|
|
2077
2009
|
case "lineEndingBlank":
|
|
2078
|
-
W[0] === "enter" && (pn && !kn && !P && !
|
|
2010
|
+
W[0] === "enter" && (pn && !kn && !P && !gn && (gn = _), kn = void 0);
|
|
2079
2011
|
break;
|
|
2080
2012
|
case "linePrefix":
|
|
2081
2013
|
case "listItemValue":
|
|
@@ -2090,14 +2022,14 @@ function cr(n) {
|
|
|
2090
2022
|
if (pn) {
|
|
2091
2023
|
let mn = _;
|
|
2092
2024
|
for (tn = void 0; mn--; ) {
|
|
2093
|
-
const en =
|
|
2025
|
+
const en = g[mn];
|
|
2094
2026
|
if (en[1].type === "lineEnding" || en[1].type === "lineEndingBlank") {
|
|
2095
2027
|
if (en[0] === "exit") continue;
|
|
2096
|
-
tn && (
|
|
2028
|
+
tn && (g[tn][1].type = "lineEndingBlank", an = !0), en[1].type = "lineEnding", tn = mn;
|
|
2097
2029
|
} else if (!(en[1].type === "linePrefix" || en[1].type === "blockQuotePrefix" || en[1].type === "blockQuotePrefixWhitespace" || en[1].type === "blockQuoteMarker" || en[1].type === "listItemIndent"))
|
|
2098
2030
|
break;
|
|
2099
2031
|
}
|
|
2100
|
-
|
|
2032
|
+
gn && (!tn || gn < tn) && (pn._spread = !0), pn.end = Object.assign({}, tn ? g[tn][1].start : W[1].end), g.splice(tn || _, 0, [
|
|
2101
2033
|
"exit",
|
|
2102
2034
|
pn,
|
|
2103
2035
|
W[2]
|
|
@@ -2110,20 +2042,20 @@ function cr(n) {
|
|
|
2110
2042
|
start: Object.assign({}, W[1].start),
|
|
2111
2043
|
end: void 0
|
|
2112
2044
|
};
|
|
2113
|
-
pn = mn,
|
|
2045
|
+
pn = mn, g.splice(_, 0, [
|
|
2114
2046
|
"enter",
|
|
2115
2047
|
mn,
|
|
2116
2048
|
W[2]
|
|
2117
|
-
]), _++, z++,
|
|
2049
|
+
]), _++, z++, gn = void 0, kn = !0;
|
|
2118
2050
|
}
|
|
2119
2051
|
}
|
|
2120
2052
|
}
|
|
2121
|
-
return
|
|
2053
|
+
return g[S][1]._spread = an, z;
|
|
2122
2054
|
}
|
|
2123
|
-
function i(
|
|
2055
|
+
function i(g, S) {
|
|
2124
2056
|
return z;
|
|
2125
2057
|
function z(_) {
|
|
2126
|
-
s.call(this,
|
|
2058
|
+
s.call(this, g(_), _), S && S.call(this, _);
|
|
2127
2059
|
}
|
|
2128
2060
|
}
|
|
2129
2061
|
function u() {
|
|
@@ -2132,153 +2064,153 @@ function cr(n) {
|
|
|
2132
2064
|
children: []
|
|
2133
2065
|
});
|
|
2134
2066
|
}
|
|
2135
|
-
function s(
|
|
2136
|
-
this.stack[this.stack.length - 1].children.push(
|
|
2137
|
-
start: ln(
|
|
2067
|
+
function s(g, S, z) {
|
|
2068
|
+
this.stack[this.stack.length - 1].children.push(g), this.stack.push(g), this.tokenStack.push([S, z || void 0]), g.position = {
|
|
2069
|
+
start: ln(S.start),
|
|
2138
2070
|
end: void 0
|
|
2139
2071
|
};
|
|
2140
2072
|
}
|
|
2141
|
-
function f(
|
|
2142
|
-
return
|
|
2143
|
-
function
|
|
2144
|
-
|
|
2073
|
+
function f(g) {
|
|
2074
|
+
return S;
|
|
2075
|
+
function S(z) {
|
|
2076
|
+
g && g.call(this, z), c.call(this, z);
|
|
2145
2077
|
}
|
|
2146
2078
|
}
|
|
2147
|
-
function c(
|
|
2079
|
+
function c(g, S) {
|
|
2148
2080
|
const z = this.stack.pop(), _ = this.tokenStack.pop();
|
|
2149
|
-
if (_) _[0].type !==
|
|
2150
|
-
else throw new Error("Cannot close `" +
|
|
2151
|
-
start:
|
|
2152
|
-
end:
|
|
2081
|
+
if (_) _[0].type !== g.type && (S ? S.call(this, g, _[0]) : (_[1] || Wn).call(this, g, _[0]));
|
|
2082
|
+
else throw new Error("Cannot close `" + g.type + "` (" + dn({
|
|
2083
|
+
start: g.start,
|
|
2084
|
+
end: g.end
|
|
2153
2085
|
}) + "): it’s not open");
|
|
2154
|
-
z.position.end = ln(
|
|
2086
|
+
z.position.end = ln(g.end);
|
|
2155
2087
|
}
|
|
2156
2088
|
function m() {
|
|
2157
|
-
return
|
|
2089
|
+
return bt(this.stack.pop());
|
|
2158
2090
|
}
|
|
2159
2091
|
function p() {
|
|
2160
2092
|
this.data.expectingFirstListItemValue = !0;
|
|
2161
2093
|
}
|
|
2162
|
-
function g
|
|
2094
|
+
function x(g) {
|
|
2163
2095
|
if (this.data.expectingFirstListItemValue) {
|
|
2164
|
-
const
|
|
2165
|
-
|
|
2096
|
+
const S = this.stack[this.stack.length - 2];
|
|
2097
|
+
S.start = Number.parseInt(this.sliceSerialize(g), 10), this.data.expectingFirstListItemValue = void 0;
|
|
2166
2098
|
}
|
|
2167
2099
|
}
|
|
2168
2100
|
function h() {
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2101
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2102
|
+
S.lang = g;
|
|
2171
2103
|
}
|
|
2172
2104
|
function E() {
|
|
2173
|
-
const
|
|
2174
|
-
|
|
2105
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2106
|
+
S.meta = g;
|
|
2175
2107
|
}
|
|
2176
2108
|
function T() {
|
|
2177
2109
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
2178
2110
|
}
|
|
2179
2111
|
function D() {
|
|
2180
|
-
const
|
|
2181
|
-
|
|
2112
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2113
|
+
S.value = g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
2182
2114
|
}
|
|
2183
|
-
function
|
|
2184
|
-
const
|
|
2185
|
-
|
|
2115
|
+
function b() {
|
|
2116
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2117
|
+
S.value = g.replace(/(\r?\n|\r)$/g, "");
|
|
2186
2118
|
}
|
|
2187
|
-
function R(
|
|
2188
|
-
const
|
|
2189
|
-
z.label =
|
|
2119
|
+
function R(g) {
|
|
2120
|
+
const S = this.resume(), z = this.stack[this.stack.length - 1];
|
|
2121
|
+
z.label = S, z.identifier = fn(this.sliceSerialize(g)).toLowerCase();
|
|
2190
2122
|
}
|
|
2191
|
-
function
|
|
2192
|
-
const
|
|
2193
|
-
|
|
2123
|
+
function d() {
|
|
2124
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2125
|
+
S.title = g;
|
|
2194
2126
|
}
|
|
2195
2127
|
function M() {
|
|
2196
|
-
const
|
|
2197
|
-
|
|
2128
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2129
|
+
S.url = g;
|
|
2198
2130
|
}
|
|
2199
|
-
function N(
|
|
2200
|
-
const
|
|
2201
|
-
|
|
2131
|
+
function N(g) {
|
|
2132
|
+
const S = this.stack[this.stack.length - 1];
|
|
2133
|
+
S.depth || (S.depth = this.sliceSerialize(g).length);
|
|
2202
2134
|
}
|
|
2203
2135
|
function k() {
|
|
2204
2136
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
2205
2137
|
}
|
|
2206
|
-
function F(
|
|
2207
|
-
const
|
|
2208
|
-
|
|
2138
|
+
function F(g) {
|
|
2139
|
+
const S = this.stack[this.stack.length - 1];
|
|
2140
|
+
S.depth = this.sliceSerialize(g).codePointAt(0) === 61 ? 1 : 2;
|
|
2209
2141
|
}
|
|
2210
2142
|
function q() {
|
|
2211
2143
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
2212
2144
|
}
|
|
2213
|
-
function B(
|
|
2214
|
-
const
|
|
2215
|
-
let z =
|
|
2145
|
+
function B(g) {
|
|
2146
|
+
const S = this.stack[this.stack.length - 1].children;
|
|
2147
|
+
let z = S[S.length - 1];
|
|
2216
2148
|
(!z || z.type !== "text") && (z = mt(), z.position = {
|
|
2217
|
-
start: ln(
|
|
2149
|
+
start: ln(g.start),
|
|
2218
2150
|
end: void 0
|
|
2219
|
-
},
|
|
2151
|
+
}, S.push(z)), this.stack.push(z);
|
|
2220
2152
|
}
|
|
2221
|
-
function A(
|
|
2222
|
-
const
|
|
2223
|
-
|
|
2153
|
+
function A(g) {
|
|
2154
|
+
const S = this.stack.pop();
|
|
2155
|
+
S.value += this.sliceSerialize(g), S.position.end = ln(g.end);
|
|
2224
2156
|
}
|
|
2225
|
-
function I(
|
|
2226
|
-
const
|
|
2157
|
+
function I(g) {
|
|
2158
|
+
const S = this.stack[this.stack.length - 1];
|
|
2227
2159
|
if (this.data.atHardBreak) {
|
|
2228
|
-
const z =
|
|
2229
|
-
z.position.end = ln(
|
|
2160
|
+
const z = S.children[S.children.length - 1];
|
|
2161
|
+
z.position.end = ln(g.end), this.data.atHardBreak = void 0;
|
|
2230
2162
|
return;
|
|
2231
2163
|
}
|
|
2232
|
-
!this.data.setextHeadingSlurpLineEnding && r.canContainEols.includes(
|
|
2164
|
+
!this.data.setextHeadingSlurpLineEnding && r.canContainEols.includes(S.type) && (B.call(this, g), A.call(this, g));
|
|
2233
2165
|
}
|
|
2234
2166
|
function y() {
|
|
2235
2167
|
this.data.atHardBreak = !0;
|
|
2236
2168
|
}
|
|
2237
2169
|
function O() {
|
|
2238
|
-
const
|
|
2239
|
-
|
|
2170
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2171
|
+
S.value = g;
|
|
2240
2172
|
}
|
|
2241
2173
|
function H() {
|
|
2242
|
-
const
|
|
2243
|
-
|
|
2174
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2175
|
+
S.value = g;
|
|
2244
2176
|
}
|
|
2245
2177
|
function C() {
|
|
2246
|
-
const
|
|
2247
|
-
|
|
2178
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2179
|
+
S.value = g;
|
|
2248
2180
|
}
|
|
2249
2181
|
function U() {
|
|
2250
|
-
const
|
|
2182
|
+
const g = this.stack[this.stack.length - 1];
|
|
2251
2183
|
if (this.data.inReference) {
|
|
2252
|
-
const
|
|
2253
|
-
|
|
2184
|
+
const S = this.data.referenceType || "shortcut";
|
|
2185
|
+
g.type += "Reference", g.referenceType = S, delete g.url, delete g.title;
|
|
2254
2186
|
} else
|
|
2255
|
-
delete
|
|
2187
|
+
delete g.identifier, delete g.label;
|
|
2256
2188
|
this.data.referenceType = void 0;
|
|
2257
2189
|
}
|
|
2258
2190
|
function V() {
|
|
2259
|
-
const
|
|
2191
|
+
const g = this.stack[this.stack.length - 1];
|
|
2260
2192
|
if (this.data.inReference) {
|
|
2261
|
-
const
|
|
2262
|
-
|
|
2193
|
+
const S = this.data.referenceType || "shortcut";
|
|
2194
|
+
g.type += "Reference", g.referenceType = S, delete g.url, delete g.title;
|
|
2263
2195
|
} else
|
|
2264
|
-
delete
|
|
2196
|
+
delete g.identifier, delete g.label;
|
|
2265
2197
|
this.data.referenceType = void 0;
|
|
2266
2198
|
}
|
|
2267
|
-
function G(
|
|
2268
|
-
const
|
|
2269
|
-
z.label =
|
|
2199
|
+
function G(g) {
|
|
2200
|
+
const S = this.sliceSerialize(g), z = this.stack[this.stack.length - 2];
|
|
2201
|
+
z.label = It(S), z.identifier = fn(S).toLowerCase();
|
|
2270
2202
|
}
|
|
2271
2203
|
function X() {
|
|
2272
|
-
const
|
|
2273
|
-
this.data.inReference = !0, z.type === "link" ? z.children =
|
|
2204
|
+
const g = this.stack[this.stack.length - 1], S = this.resume(), z = this.stack[this.stack.length - 1];
|
|
2205
|
+
this.data.inReference = !0, z.type === "link" ? z.children = g.children : z.alt = S;
|
|
2274
2206
|
}
|
|
2275
2207
|
function l() {
|
|
2276
|
-
const
|
|
2277
|
-
|
|
2208
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2209
|
+
S.url = g;
|
|
2278
2210
|
}
|
|
2279
2211
|
function rn() {
|
|
2280
|
-
const
|
|
2281
|
-
|
|
2212
|
+
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
2213
|
+
S.title = g;
|
|
2282
2214
|
}
|
|
2283
2215
|
function Z() {
|
|
2284
2216
|
this.data.inReference = void 0;
|
|
@@ -2286,33 +2218,33 @@ function cr(n) {
|
|
|
2286
2218
|
function o() {
|
|
2287
2219
|
this.data.referenceType = "collapsed";
|
|
2288
2220
|
}
|
|
2289
|
-
function un(
|
|
2290
|
-
const
|
|
2291
|
-
z.label =
|
|
2221
|
+
function un(g) {
|
|
2222
|
+
const S = this.resume(), z = this.stack[this.stack.length - 1];
|
|
2223
|
+
z.label = S, z.identifier = fn(this.sliceSerialize(g)).toLowerCase(), this.data.referenceType = "full";
|
|
2292
2224
|
}
|
|
2293
|
-
function sn(
|
|
2294
|
-
this.data.characterReferenceType =
|
|
2225
|
+
function sn(g) {
|
|
2226
|
+
this.data.characterReferenceType = g.type;
|
|
2295
2227
|
}
|
|
2296
|
-
function Q(
|
|
2297
|
-
const
|
|
2228
|
+
function Q(g) {
|
|
2229
|
+
const S = this.sliceSerialize(g), z = this.data.characterReferenceType;
|
|
2298
2230
|
let _;
|
|
2299
|
-
z ? (_ = $n(
|
|
2231
|
+
z ? (_ = $n(S, z === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : _ = vn(S);
|
|
2300
2232
|
const P = this.stack[this.stack.length - 1];
|
|
2301
2233
|
P.value += _;
|
|
2302
2234
|
}
|
|
2303
|
-
function
|
|
2304
|
-
const
|
|
2305
|
-
|
|
2235
|
+
function xn(g) {
|
|
2236
|
+
const S = this.stack.pop();
|
|
2237
|
+
S.position.end = ln(g.end);
|
|
2306
2238
|
}
|
|
2307
|
-
function nn(
|
|
2308
|
-
A.call(this,
|
|
2309
|
-
const
|
|
2310
|
-
|
|
2239
|
+
function nn(g) {
|
|
2240
|
+
A.call(this, g);
|
|
2241
|
+
const S = this.stack[this.stack.length - 1];
|
|
2242
|
+
S.url = this.sliceSerialize(g);
|
|
2311
2243
|
}
|
|
2312
|
-
function hn(
|
|
2313
|
-
A.call(this,
|
|
2314
|
-
const
|
|
2315
|
-
|
|
2244
|
+
function hn(g) {
|
|
2245
|
+
A.call(this, g);
|
|
2246
|
+
const S = this.stack[this.stack.length - 1];
|
|
2247
|
+
S.url = "mailto:" + this.sliceSerialize(g);
|
|
2316
2248
|
}
|
|
2317
2249
|
function cn() {
|
|
2318
2250
|
return {
|
|
@@ -2381,19 +2313,19 @@ function cr(n) {
|
|
|
2381
2313
|
children: []
|
|
2382
2314
|
};
|
|
2383
2315
|
}
|
|
2384
|
-
function On(
|
|
2316
|
+
function On(g) {
|
|
2385
2317
|
return {
|
|
2386
2318
|
type: "list",
|
|
2387
|
-
ordered:
|
|
2319
|
+
ordered: g.type === "listOrdered",
|
|
2388
2320
|
start: null,
|
|
2389
|
-
spread:
|
|
2321
|
+
spread: g._spread,
|
|
2390
2322
|
children: []
|
|
2391
2323
|
};
|
|
2392
2324
|
}
|
|
2393
|
-
function ht(
|
|
2325
|
+
function ht(g) {
|
|
2394
2326
|
return {
|
|
2395
2327
|
type: "listItem",
|
|
2396
|
-
spread:
|
|
2328
|
+
spread: g._spread,
|
|
2397
2329
|
checked: null,
|
|
2398
2330
|
children: []
|
|
2399
2331
|
};
|
|
@@ -2456,13 +2388,13 @@ function pr(n, r) {
|
|
|
2456
2388
|
}
|
|
2457
2389
|
}
|
|
2458
2390
|
function Wn(n, r) {
|
|
2459
|
-
throw n ? new Error("Cannot close `" + n.type + "` (" +
|
|
2391
|
+
throw n ? new Error("Cannot close `" + n.type + "` (" + dn({
|
|
2460
2392
|
start: n.start,
|
|
2461
2393
|
end: n.end
|
|
2462
|
-
}) + "): a different token (`" + r.type + "`, " +
|
|
2394
|
+
}) + "): a different token (`" + r.type + "`, " + dn({
|
|
2463
2395
|
start: r.start,
|
|
2464
2396
|
end: r.end
|
|
2465
|
-
}) + ") is open") : new Error("Cannot close document, a token (`" + r.type + "`, " +
|
|
2397
|
+
}) + ") is open") : new Error("Cannot close document, a token (`" + r.type + "`, " + dn({
|
|
2466
2398
|
start: r.start,
|
|
2467
2399
|
end: r.end
|
|
2468
2400
|
}) + ") is still open");
|