@flyfish-group/file-viewer 1.0.4 → 1.0.7

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.
Files changed (70) hide show
  1. package/LICENSE +160 -0
  2. package/README.md +179 -61
  3. package/dist/components/CadViewer.js +1 -0
  4. package/dist/components/CodeViewer.js +1 -0
  5. package/dist/components/ImageViewer.js +1 -1936
  6. package/dist/components/MarkdownViewer.js +1 -1479
  7. package/dist/components/OfdViewer.js +1 -0
  8. package/dist/components/PdfView.js +1 -22627
  9. package/dist/components/PptxRender.js +1 -21757
  10. package/dist/components/XlsxTable.js +1 -54393
  11. package/dist/components/_commonjsHelpers.js +1 -30
  12. package/dist/components/docx-preview.js +7 -5622
  13. package/dist/components/index.js +1 -1877
  14. package/dist/components/index2.js +1 -0
  15. package/dist/components/jszip.min.js +1 -0
  16. package/dist/components/ofd.js +1 -0
  17. package/dist/components/worker-ref.js +1 -26
  18. package/dist/index.d.ts +76 -0
  19. package/dist/index.mjs +1 -6
  20. package/dist/index.umd.js +7 -260
  21. package/dist/package/index.d.ts +10 -3
  22. package/dist/style.css +15 -46
  23. package/dist/worker/pdf.worker.js +1 -58
  24. package/dist/worker/pptx.worker.js +1 -21
  25. package/dist/worker/sheet.worker.js +1 -38
  26. package/package.json +73 -43
  27. package/dist/components/_commonjs-dynamic-modules.js +0 -6
  28. package/dist/components/utils.d.ts +0 -3
  29. package/dist/main.d.ts +0 -0
  30. package/dist/package/common/type.d.ts +0 -30
  31. package/dist/package/common/util.d.ts +0 -5
  32. package/dist/package/common/worker-ref.d.ts +0 -12
  33. package/dist/package/components/FileViewer/FileViewer.vue.d.ts +0 -18
  34. package/dist/package/components/FileViewer/index.d.ts +0 -2
  35. package/dist/package/components/FileViewer/util.d.ts +0 -2
  36. package/dist/package/use/index.d.ts +0 -1
  37. package/dist/package/use/worker.d.ts +0 -24
  38. package/dist/package/vendors/docx/index.d.ts +0 -4
  39. package/dist/package/vendors/image/ImageViewer.vue.d.ts +0 -15
  40. package/dist/package/vendors/image/index.d.ts +0 -5
  41. package/dist/package/vendors/md/MarkdownViewer.vue.d.ts +0 -15
  42. package/dist/package/vendors/md/index.d.ts +0 -5
  43. package/dist/package/vendors/mp4/index.d.ts +0 -4
  44. package/dist/package/vendors/pdf/PdfView.vue.d.ts +0 -15
  45. package/dist/package/vendors/pdf/index.d.ts +0 -2
  46. package/dist/package/vendors/pdf/worker/index.d.ts +0 -4
  47. package/dist/package/vendors/pptx/PptxRender.vue.d.ts +0 -87
  48. package/dist/package/vendors/pptx/index.d.ts +0 -7
  49. package/dist/package/vendors/pptx/options.d.ts +0 -39
  50. package/dist/package/vendors/pptx/support/chart.d.ts +0 -4
  51. package/dist/package/vendors/pptx/worker/index.d.ts +0 -4
  52. package/dist/package/vendors/renders.d.ts +0 -3
  53. package/dist/package/vendors/text/CodeViewer.vue.d.ts +0 -15
  54. package/dist/package/vendors/text/index.d.ts +0 -7
  55. package/dist/package/vendors/xlsx/XlsxTable.vue.d.ts +0 -17
  56. package/dist/package/vendors/xlsx/index.d.ts +0 -5
  57. package/dist/package/vendors/xlsx/render.d.ts +0 -6
  58. package/dist/package/vendors/xlsx/util.d.ts +0 -8
  59. package/dist/package/vendors/xlsx/worker/index.d.ts +0 -6
  60. package/dist/package/vendors/xlsx/worker/xls/SheetJsModel.d.ts +0 -36
  61. package/dist/package/vendors/xlsx/worker/xls/index.d.ts +0 -4
  62. package/dist/package/vendors/xlsx/worker/xls/sheet.worker.d.ts +0 -1
  63. package/dist/package/vendors/xlsx/worker/xlsx/ExcelJsModel.d.ts +0 -39
  64. package/dist/package/vendors/xlsx/worker/xlsx/color.d.ts +0 -2
  65. package/dist/package/vendors/xlsx/worker/xlsx/context.d.ts +0 -7
  66. package/dist/package/vendors/xlsx/worker/xlsx/index.d.ts +0 -4
  67. package/dist/package/vendors/xlsx/worker/xlsx/util.d.ts +0 -10
  68. package/dist/package/vendors/xlsx/worker/xlsx/xlsx.worker.d.ts +0 -2
  69. package/dist/vite.svg +0 -1
  70. package/dist/worker/xlsx.worker.js +0 -62
@@ -1,1479 +1 @@
1
- var we = Object.defineProperty, ye = Object.defineProperties;
2
- var $e = Object.getOwnPropertyDescriptors;
3
- var se = Object.getOwnPropertySymbols;
4
- var Te = Object.prototype.hasOwnProperty, _e = Object.prototype.propertyIsEnumerable;
5
- var H = (a, t, e) => t in a ? we(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, x = (a, t) => {
6
- for (var e in t || (t = {}))
7
- Te.call(t, e) && H(a, e, t[e]);
8
- if (se)
9
- for (var e of se(t))
10
- _e.call(t, e) && H(a, e, t[e]);
11
- return a;
12
- }, R = (a, t) => ye(a, $e(t));
13
- var d = (a, t, e) => (H(a, typeof t != "symbol" ? t + "" : t, e), e), ze = (a, t, e) => {
14
- if (!t.has(a))
15
- throw TypeError("Cannot " + e);
16
- };
17
- var N = (a, t, e) => {
18
- if (t.has(a))
19
- throw TypeError("Cannot add the same private member more than once");
20
- t instanceof WeakSet ? t.add(a) : t.set(a, e);
21
- };
22
- var v = (a, t, e) => (ze(a, t, "access private method"), e);
23
- import { defineComponent as Re, computed as Ie } from "vue";
24
- import { n as Se } from "./index.js";
25
- function V() {
26
- return {
27
- async: !1,
28
- breaks: !1,
29
- extensions: null,
30
- gfm: !0,
31
- hooks: null,
32
- pedantic: !1,
33
- renderer: null,
34
- silent: !1,
35
- tokenizer: null,
36
- walkTokens: null
37
- };
38
- }
39
- let z = V();
40
- function ce(a) {
41
- z = a;
42
- }
43
- const he = /[&<>"']/, Ae = new RegExp(he.source, "g"), pe = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Ee = new RegExp(pe.source, "g"), Ce = {
44
- "&": "&amp;",
45
- "<": "&lt;",
46
- ">": "&gt;",
47
- '"': "&quot;",
48
- "'": "&#39;"
49
- }, ie = (a) => Ce[a];
50
- function m(a, t) {
51
- if (t) {
52
- if (he.test(a))
53
- return a.replace(Ae, ie);
54
- } else if (pe.test(a))
55
- return a.replace(Ee, ie);
56
- return a;
57
- }
58
- const Le = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
59
- function ve(a) {
60
- return a.replace(Le, (t, e) => (e = e.toLowerCase(), e === "colon" ? ":" : e.charAt(0) === "#" ? e.charAt(1) === "x" ? String.fromCharCode(parseInt(e.substring(2), 16)) : String.fromCharCode(+e.substring(1)) : ""));
61
- }
62
- const Pe = /(^|[^\[])\^/g;
63
- function k(a, t) {
64
- let e = typeof a == "string" ? a : a.source;
65
- t = t || "";
66
- const n = {
67
- replace: (r, i) => {
68
- let s = typeof i == "string" ? i : i.source;
69
- return s = s.replace(Pe, "$1"), e = e.replace(r, s), n;
70
- },
71
- getRegex: () => new RegExp(e, t)
72
- };
73
- return n;
74
- }
75
- function re(a) {
76
- try {
77
- a = encodeURI(a).replace(/%25/g, "%");
78
- } catch (t) {
79
- return null;
80
- }
81
- return a;
82
- }
83
- const S = { exec: () => null };
84
- function le(a, t) {
85
- const e = a.replace(/\|/g, (i, s, l) => {
86
- let o = !1, p = s;
87
- for (; --p >= 0 && l[p] === "\\"; )
88
- o = !o;
89
- return o ? "|" : " |";
90
- }), n = e.split(/ \|/);
91
- let r = 0;
92
- if (n[0].trim() || n.shift(), n.length > 0 && !n[n.length - 1].trim() && n.pop(), t)
93
- if (n.length > t)
94
- n.splice(t);
95
- else
96
- for (; n.length < t; )
97
- n.push("");
98
- for (; r < n.length; r++)
99
- n[r] = n[r].trim().replace(/\\\|/g, "|");
100
- return n;
101
- }
102
- function P(a, t, e) {
103
- const n = a.length;
104
- if (n === 0)
105
- return "";
106
- let r = 0;
107
- for (; r < n; ) {
108
- const i = a.charAt(n - r - 1);
109
- if (i === t && !e)
110
- r++;
111
- else if (i !== t && e)
112
- r++;
113
- else
114
- break;
115
- }
116
- return a.slice(0, n - r);
117
- }
118
- function Ze(a, t) {
119
- if (a.indexOf(t[1]) === -1)
120
- return -1;
121
- let e = 0;
122
- for (let n = 0; n < a.length; n++)
123
- if (a[n] === "\\")
124
- n++;
125
- else if (a[n] === t[0])
126
- e++;
127
- else if (a[n] === t[1] && (e--, e < 0))
128
- return n;
129
- return -1;
130
- }
131
- function oe(a, t, e, n) {
132
- const r = t.href, i = t.title ? m(t.title) : null, s = a[1].replace(/\\([\[\]])/g, "$1");
133
- if (a[0].charAt(0) !== "!") {
134
- n.state.inLink = !0;
135
- const l = {
136
- type: "link",
137
- raw: e,
138
- href: r,
139
- title: i,
140
- text: s,
141
- tokens: n.inlineTokens(s)
142
- };
143
- return n.state.inLink = !1, l;
144
- }
145
- return {
146
- type: "image",
147
- raw: e,
148
- href: r,
149
- title: i,
150
- text: m(s)
151
- };
152
- }
153
- function Be(a, t) {
154
- const e = a.match(/^(\s+)(?:```)/);
155
- if (e === null)
156
- return t;
157
- const n = e[1];
158
- return t.split(`
159
- `).map((r) => {
160
- const i = r.match(/^\s+/);
161
- if (i === null)
162
- return r;
163
- const [s] = i;
164
- return s.length >= n.length ? r.slice(n.length) : r;
165
- }).join(`
166
- `);
167
- }
168
- class B {
169
- // set by the lexer
170
- constructor(t) {
171
- d(this, "options");
172
- d(this, "rules");
173
- // set by the lexer
174
- d(this, "lexer");
175
- this.options = t || z;
176
- }
177
- space(t) {
178
- const e = this.rules.block.newline.exec(t);
179
- if (e && e[0].length > 0)
180
- return {
181
- type: "space",
182
- raw: e[0]
183
- };
184
- }
185
- code(t) {
186
- const e = this.rules.block.code.exec(t);
187
- if (e) {
188
- const n = e[0].replace(/^ {1,4}/gm, "");
189
- return {
190
- type: "code",
191
- raw: e[0],
192
- codeBlockStyle: "indented",
193
- text: this.options.pedantic ? n : P(n, `
194
- `)
195
- };
196
- }
197
- }
198
- fences(t) {
199
- const e = this.rules.block.fences.exec(t);
200
- if (e) {
201
- const n = e[0], r = Be(n, e[3] || "");
202
- return {
203
- type: "code",
204
- raw: n,
205
- lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2],
206
- text: r
207
- };
208
- }
209
- }
210
- heading(t) {
211
- const e = this.rules.block.heading.exec(t);
212
- if (e) {
213
- let n = e[2].trim();
214
- if (/#$/.test(n)) {
215
- const r = P(n, "#");
216
- (this.options.pedantic || !r || / $/.test(r)) && (n = r.trim());
217
- }
218
- return {
219
- type: "heading",
220
- raw: e[0],
221
- depth: e[1].length,
222
- text: n,
223
- tokens: this.lexer.inline(n)
224
- };
225
- }
226
- }
227
- hr(t) {
228
- const e = this.rules.block.hr.exec(t);
229
- if (e)
230
- return {
231
- type: "hr",
232
- raw: e[0]
233
- };
234
- }
235
- blockquote(t) {
236
- const e = this.rules.block.blockquote.exec(t);
237
- if (e) {
238
- const n = P(e[0].replace(/^ *>[ \t]?/gm, ""), `
239
- `), r = this.lexer.state.top;
240
- this.lexer.state.top = !0;
241
- const i = this.lexer.blockTokens(n);
242
- return this.lexer.state.top = r, {
243
- type: "blockquote",
244
- raw: e[0],
245
- tokens: i,
246
- text: n
247
- };
248
- }
249
- }
250
- list(t) {
251
- let e = this.rules.block.list.exec(t);
252
- if (e) {
253
- let n = e[1].trim();
254
- const r = n.length > 1, i = {
255
- type: "list",
256
- raw: "",
257
- ordered: r,
258
- start: r ? +n.slice(0, -1) : "",
259
- loose: !1,
260
- items: []
261
- };
262
- n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
263
- const s = new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);
264
- let l = "", o = "", p = !1;
265
- for (; t; ) {
266
- let c = !1;
267
- if (!(e = s.exec(t)) || this.rules.block.hr.test(t))
268
- break;
269
- l = e[0], t = t.substring(l.length);
270
- let u = e[2].split(`
271
- `, 1)[0].replace(/^\t+/, (O) => " ".repeat(3 * O.length)), h = t.split(`
272
- `, 1)[0], g = 0;
273
- this.options.pedantic ? (g = 2, o = u.trimStart()) : (g = e[2].search(/[^ ]/), g = g > 4 ? 1 : g, o = u.slice(g), g += e[1].length);
274
- let $ = !1;
275
- if (!u && /^ *$/.test(h) && (l += h + `
276
- `, t = t.substring(h.length + 1), c = !0), !c) {
277
- const O = new RegExp(`^ {0,${Math.min(3, g - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), ee = new RegExp(`^ {0,${Math.min(3, g - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), te = new RegExp(`^ {0,${Math.min(3, g - 1)}}(?:\`\`\`|~~~)`), ne = new RegExp(`^ {0,${Math.min(3, g - 1)}}#`);
278
- for (; t; ) {
279
- const j = t.split(`
280
- `, 1)[0];
281
- if (h = j, this.options.pedantic && (h = h.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), te.test(h) || ne.test(h) || O.test(h) || ee.test(t))
282
- break;
283
- if (h.search(/[^ ]/) >= g || !h.trim())
284
- o += `
285
- ` + h.slice(g);
286
- else {
287
- if ($ || u.search(/[^ ]/) >= 4 || te.test(u) || ne.test(u) || ee.test(u))
288
- break;
289
- o += `
290
- ` + h;
291
- }
292
- !$ && !h.trim() && ($ = !0), l += j + `
293
- `, t = t.substring(j.length + 1), u = h.slice(g);
294
- }
295
- }
296
- i.loose || (p ? i.loose = !0 : /\n *\n *$/.test(l) && (p = !0));
297
- let b = null, T;
298
- this.options.gfm && (b = /^\[[ xX]\] /.exec(o), b && (T = b[0] !== "[ ] ", o = o.replace(/^\[[ xX]\] +/, ""))), i.items.push({
299
- type: "list_item",
300
- raw: l,
301
- task: !!b,
302
- checked: T,
303
- loose: !1,
304
- text: o,
305
- tokens: []
306
- }), i.raw += l;
307
- }
308
- i.items[i.items.length - 1].raw = l.trimEnd(), i.items[i.items.length - 1].text = o.trimEnd(), i.raw = i.raw.trimEnd();
309
- for (let c = 0; c < i.items.length; c++)
310
- if (this.lexer.state.top = !1, i.items[c].tokens = this.lexer.blockTokens(i.items[c].text, []), !i.loose) {
311
- const u = i.items[c].tokens.filter((g) => g.type === "space"), h = u.length > 0 && u.some((g) => /\n.*\n/.test(g.raw));
312
- i.loose = h;
313
- }
314
- if (i.loose)
315
- for (let c = 0; c < i.items.length; c++)
316
- i.items[c].loose = !0;
317
- return i;
318
- }
319
- }
320
- html(t) {
321
- const e = this.rules.block.html.exec(t);
322
- if (e)
323
- return {
324
- type: "html",
325
- block: !0,
326
- raw: e[0],
327
- pre: e[1] === "pre" || e[1] === "script" || e[1] === "style",
328
- text: e[0]
329
- };
330
- }
331
- def(t) {
332
- const e = this.rules.block.def.exec(t);
333
- if (e) {
334
- const n = e[1].toLowerCase().replace(/\s+/g, " "), r = e[2] ? e[2].replace(/^<(.*)>$/, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", i = e[3] ? e[3].substring(1, e[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : e[3];
335
- return {
336
- type: "def",
337
- tag: n,
338
- raw: e[0],
339
- href: r,
340
- title: i
341
- };
342
- }
343
- }
344
- table(t) {
345
- const e = this.rules.block.table.exec(t);
346
- if (!e || !/[:|]/.test(e[2]))
347
- return;
348
- const n = le(e[1]), r = e[2].replace(/^\||\| *$/g, "").split("|"), i = e[3] && e[3].trim() ? e[3].replace(/\n[ \t]*$/, "").split(`
349
- `) : [], s = {
350
- type: "table",
351
- raw: e[0],
352
- header: [],
353
- align: [],
354
- rows: []
355
- };
356
- if (n.length === r.length) {
357
- for (const l of r)
358
- /^ *-+: *$/.test(l) ? s.align.push("right") : /^ *:-+: *$/.test(l) ? s.align.push("center") : /^ *:-+ *$/.test(l) ? s.align.push("left") : s.align.push(null);
359
- for (const l of n)
360
- s.header.push({
361
- text: l,
362
- tokens: this.lexer.inline(l)
363
- });
364
- for (const l of i)
365
- s.rows.push(le(l, s.header.length).map((o) => ({
366
- text: o,
367
- tokens: this.lexer.inline(o)
368
- })));
369
- return s;
370
- }
371
- }
372
- lheading(t) {
373
- const e = this.rules.block.lheading.exec(t);
374
- if (e)
375
- return {
376
- type: "heading",
377
- raw: e[0],
378
- depth: e[2].charAt(0) === "=" ? 1 : 2,
379
- text: e[1],
380
- tokens: this.lexer.inline(e[1])
381
- };
382
- }
383
- paragraph(t) {
384
- const e = this.rules.block.paragraph.exec(t);
385
- if (e) {
386
- const n = e[1].charAt(e[1].length - 1) === `
387
- ` ? e[1].slice(0, -1) : e[1];
388
- return {
389
- type: "paragraph",
390
- raw: e[0],
391
- text: n,
392
- tokens: this.lexer.inline(n)
393
- };
394
- }
395
- }
396
- text(t) {
397
- const e = this.rules.block.text.exec(t);
398
- if (e)
399
- return {
400
- type: "text",
401
- raw: e[0],
402
- text: e[0],
403
- tokens: this.lexer.inline(e[0])
404
- };
405
- }
406
- escape(t) {
407
- const e = this.rules.inline.escape.exec(t);
408
- if (e)
409
- return {
410
- type: "escape",
411
- raw: e[0],
412
- text: m(e[1])
413
- };
414
- }
415
- tag(t) {
416
- const e = this.rules.inline.tag.exec(t);
417
- if (e)
418
- return !this.lexer.state.inLink && /^<a /i.test(e[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && /^<\/a>/i.test(e[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && /^<(pre|code|kbd|script)(\s|>)/i.test(e[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && /^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0]) && (this.lexer.state.inRawBlock = !1), {
419
- type: "html",
420
- raw: e[0],
421
- inLink: this.lexer.state.inLink,
422
- inRawBlock: this.lexer.state.inRawBlock,
423
- block: !1,
424
- text: e[0]
425
- };
426
- }
427
- link(t) {
428
- const e = this.rules.inline.link.exec(t);
429
- if (e) {
430
- const n = e[2].trim();
431
- if (!this.options.pedantic && /^</.test(n)) {
432
- if (!/>$/.test(n))
433
- return;
434
- const s = P(n.slice(0, -1), "\\");
435
- if ((n.length - s.length) % 2 === 0)
436
- return;
437
- } else {
438
- const s = Ze(e[2], "()");
439
- if (s > -1) {
440
- const o = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + s;
441
- e[2] = e[2].substring(0, s), e[0] = e[0].substring(0, o).trim(), e[3] = "";
442
- }
443
- }
444
- let r = e[2], i = "";
445
- if (this.options.pedantic) {
446
- const s = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);
447
- s && (r = s[1], i = s[3]);
448
- } else
449
- i = e[3] ? e[3].slice(1, -1) : "";
450
- return r = r.trim(), /^</.test(r) && (this.options.pedantic && !/>$/.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), oe(e, {
451
- href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
452
- title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
453
- }, e[0], this.lexer);
454
- }
455
- }
456
- reflink(t, e) {
457
- let n;
458
- if ((n = this.rules.inline.reflink.exec(t)) || (n = this.rules.inline.nolink.exec(t))) {
459
- const r = (n[2] || n[1]).replace(/\s+/g, " "), i = e[r.toLowerCase()];
460
- if (!i) {
461
- const s = n[0].charAt(0);
462
- return {
463
- type: "text",
464
- raw: s,
465
- text: s
466
- };
467
- }
468
- return oe(n, i, n[0], this.lexer);
469
- }
470
- }
471
- emStrong(t, e, n = "") {
472
- let r = this.rules.inline.emStrongLDelim.exec(t);
473
- if (!r || r[3] && n.match(/[\p{L}\p{N}]/u))
474
- return;
475
- if (!(r[1] || r[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
476
- const s = [...r[0]].length - 1;
477
- let l, o, p = s, c = 0;
478
- const u = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
479
- for (u.lastIndex = 0, e = e.slice(-1 * t.length + s); (r = u.exec(e)) != null; ) {
480
- if (l = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !l)
481
- continue;
482
- if (o = [...l].length, r[3] || r[4]) {
483
- p += o;
484
- continue;
485
- } else if ((r[5] || r[6]) && s % 3 && !((s + o) % 3)) {
486
- c += o;
487
- continue;
488
- }
489
- if (p -= o, p > 0)
490
- continue;
491
- o = Math.min(o, o + p + c);
492
- const h = [...r[0]][0].length, g = t.slice(0, s + r.index + h + o);
493
- if (Math.min(s, o) % 2) {
494
- const b = g.slice(1, -1);
495
- return {
496
- type: "em",
497
- raw: g,
498
- text: b,
499
- tokens: this.lexer.inlineTokens(b)
500
- };
501
- }
502
- const $ = g.slice(2, -2);
503
- return {
504
- type: "strong",
505
- raw: g,
506
- text: $,
507
- tokens: this.lexer.inlineTokens($)
508
- };
509
- }
510
- }
511
- }
512
- codespan(t) {
513
- const e = this.rules.inline.code.exec(t);
514
- if (e) {
515
- let n = e[2].replace(/\n/g, " ");
516
- const r = /[^ ]/.test(n), i = /^ /.test(n) && / $/.test(n);
517
- return r && i && (n = n.substring(1, n.length - 1)), n = m(n, !0), {
518
- type: "codespan",
519
- raw: e[0],
520
- text: n
521
- };
522
- }
523
- }
524
- br(t) {
525
- const e = this.rules.inline.br.exec(t);
526
- if (e)
527
- return {
528
- type: "br",
529
- raw: e[0]
530
- };
531
- }
532
- del(t) {
533
- const e = this.rules.inline.del.exec(t);
534
- if (e)
535
- return {
536
- type: "del",
537
- raw: e[0],
538
- text: e[2],
539
- tokens: this.lexer.inlineTokens(e[2])
540
- };
541
- }
542
- autolink(t) {
543
- const e = this.rules.inline.autolink.exec(t);
544
- if (e) {
545
- let n, r;
546
- return e[2] === "@" ? (n = m(e[1]), r = "mailto:" + n) : (n = m(e[1]), r = n), {
547
- type: "link",
548
- raw: e[0],
549
- text: n,
550
- href: r,
551
- tokens: [
552
- {
553
- type: "text",
554
- raw: n,
555
- text: n
556
- }
557
- ]
558
- };
559
- }
560
- }
561
- url(t) {
562
- var n, r;
563
- let e;
564
- if (e = this.rules.inline.url.exec(t)) {
565
- let i, s;
566
- if (e[2] === "@")
567
- i = m(e[0]), s = "mailto:" + i;
568
- else {
569
- let l;
570
- do
571
- l = e[0], e[0] = (r = (n = this.rules.inline._backpedal.exec(e[0])) == null ? void 0 : n[0]) != null ? r : "";
572
- while (l !== e[0]);
573
- i = m(e[0]), e[1] === "www." ? s = "http://" + e[0] : s = e[0];
574
- }
575
- return {
576
- type: "link",
577
- raw: e[0],
578
- text: i,
579
- href: s,
580
- tokens: [
581
- {
582
- type: "text",
583
- raw: i,
584
- text: i
585
- }
586
- ]
587
- };
588
- }
589
- }
590
- inlineText(t) {
591
- const e = this.rules.inline.text.exec(t);
592
- if (e) {
593
- let n;
594
- return this.lexer.state.inRawBlock ? n = e[0] : n = m(e[0]), {
595
- type: "text",
596
- raw: e[0],
597
- text: n
598
- };
599
- }
600
- }
601
- }
602
- const qe = /^(?: *(?:\n|$))+/, Me = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Qe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, De = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ue = /(?:[*+-]|\d{1,9}[.)])/, fe = k(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, ue).getRegex(), X = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Oe = /^[^\n]+/, G = /(?!\s*\])(?:\\.|[^\[\]\\])+/, je = k(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", G).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), He = k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ue).getRegex(), D = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", W = /<!--(?!-?>)[\s\S]*?(?:-->|$)/, Ne = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", W).replace("tag", D).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ge = k(X).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", D).getRegex(), Fe = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ge).getRegex(), J = {
603
- blockquote: Fe,
604
- code: Me,
605
- def: je,
606
- fences: Qe,
607
- heading: De,
608
- hr: C,
609
- html: Ne,
610
- lheading: fe,
611
- list: He,
612
- newline: qe,
613
- paragraph: ge,
614
- table: S,
615
- text: Oe
616
- }, ae = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", D).getRegex(), Ue = R(x({}, J), {
617
- table: ae,
618
- paragraph: k(X).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ae).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", D).getRegex()
619
- }), Ve = R(x({}, J), {
620
- html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", W).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
621
- def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
622
- heading: /^(#{1,6})(.*)(?:\n+|$)/,
623
- fences: S,
624
- // fences not supported
625
- lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
626
- paragraph: k(X).replace("hr", C).replace("heading", ` *#{1,6} *[^
627
- ]`).replace("lheading", fe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
628
- }), ke = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Xe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, de = /^( {2,}|\\)\n(?!\s*$)/, Ge = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, L = "\\p{P}$+<=>`^|~", We = k(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, L).getRegex(), Je = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, Ke = k(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, L).getRegex(), Ye = k("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, L).getRegex(), et = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, L).getRegex(), tt = k(/\\([punct])/, "gu").replace(/punct/g, L).getRegex(), nt = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), st = k(W).replace("(?:-->|$)", "-->").getRegex(), it = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", st).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, rt = k(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), xe = k(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", G).getRegex(), me = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", G).getRegex(), lt = k("reflink|nolink(?!\\()", "g").replace("reflink", xe).replace("nolink", me).getRegex(), K = {
629
- _backpedal: S,
630
- // only used for GFM url
631
- anyPunctuation: tt,
632
- autolink: nt,
633
- blockSkip: Je,
634
- br: de,
635
- code: Xe,
636
- del: S,
637
- emStrongLDelim: Ke,
638
- emStrongRDelimAst: Ye,
639
- emStrongRDelimUnd: et,
640
- escape: ke,
641
- link: rt,
642
- nolink: me,
643
- punctuation: We,
644
- reflink: xe,
645
- reflinkSearch: lt,
646
- tag: it,
647
- text: Ge,
648
- url: S
649
- }, ot = R(x({}, K), {
650
- link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(),
651
- reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex()
652
- }), F = R(x({}, K), {
653
- escape: k(ke).replace("])", "~|])").getRegex(),
654
- url: k(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
655
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
656
- del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
657
- text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
658
- }), at = R(x({}, F), {
659
- br: k(de).replace("{2,}", "*").getRegex(),
660
- text: k(F.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
661
- }), Z = {
662
- normal: J,
663
- gfm: Ue,
664
- pedantic: Ve
665
- }, I = {
666
- normal: K,
667
- gfm: F,
668
- breaks: at,
669
- pedantic: ot
670
- };
671
- class w {
672
- constructor(t) {
673
- d(this, "tokens");
674
- d(this, "options");
675
- d(this, "state");
676
- d(this, "tokenizer");
677
- d(this, "inlineQueue");
678
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || z, this.options.tokenizer = this.options.tokenizer || new B(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
679
- inLink: !1,
680
- inRawBlock: !1,
681
- top: !0
682
- };
683
- const e = {
684
- block: Z.normal,
685
- inline: I.normal
686
- };
687
- this.options.pedantic ? (e.block = Z.pedantic, e.inline = I.pedantic) : this.options.gfm && (e.block = Z.gfm, this.options.breaks ? e.inline = I.breaks : e.inline = I.gfm), this.tokenizer.rules = e;
688
- }
689
- /**
690
- * Expose Rules
691
- */
692
- static get rules() {
693
- return {
694
- block: Z,
695
- inline: I
696
- };
697
- }
698
- /**
699
- * Static Lex Method
700
- */
701
- static lex(t, e) {
702
- return new w(e).lex(t);
703
- }
704
- /**
705
- * Static Lex Inline Method
706
- */
707
- static lexInline(t, e) {
708
- return new w(e).inlineTokens(t);
709
- }
710
- /**
711
- * Preprocessing
712
- */
713
- lex(t) {
714
- t = t.replace(/\r\n|\r/g, `
715
- `), this.blockTokens(t, this.tokens);
716
- for (let e = 0; e < this.inlineQueue.length; e++) {
717
- const n = this.inlineQueue[e];
718
- this.inlineTokens(n.src, n.tokens);
719
- }
720
- return this.inlineQueue = [], this.tokens;
721
- }
722
- blockTokens(t, e = []) {
723
- this.options.pedantic ? t = t.replace(/\t/g, " ").replace(/^ +$/gm, "") : t = t.replace(/^( *)(\t+)/gm, (l, o, p) => o + " ".repeat(p.length));
724
- let n, r, i, s;
725
- for (; t; )
726
- if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((l) => (n = l.call({ lexer: this }, t, e)) ? (t = t.substring(n.raw.length), e.push(n), !0) : !1))) {
727
- if (n = this.tokenizer.space(t)) {
728
- t = t.substring(n.raw.length), n.raw.length === 1 && e.length > 0 ? e[e.length - 1].raw += `
729
- ` : e.push(n);
730
- continue;
731
- }
732
- if (n = this.tokenizer.code(t)) {
733
- t = t.substring(n.raw.length), r = e[e.length - 1], r && (r.type === "paragraph" || r.type === "text") ? (r.raw += `
734
- ` + n.raw, r.text += `
735
- ` + n.text, this.inlineQueue[this.inlineQueue.length - 1].src = r.text) : e.push(n);
736
- continue;
737
- }
738
- if (n = this.tokenizer.fences(t)) {
739
- t = t.substring(n.raw.length), e.push(n);
740
- continue;
741
- }
742
- if (n = this.tokenizer.heading(t)) {
743
- t = t.substring(n.raw.length), e.push(n);
744
- continue;
745
- }
746
- if (n = this.tokenizer.hr(t)) {
747
- t = t.substring(n.raw.length), e.push(n);
748
- continue;
749
- }
750
- if (n = this.tokenizer.blockquote(t)) {
751
- t = t.substring(n.raw.length), e.push(n);
752
- continue;
753
- }
754
- if (n = this.tokenizer.list(t)) {
755
- t = t.substring(n.raw.length), e.push(n);
756
- continue;
757
- }
758
- if (n = this.tokenizer.html(t)) {
759
- t = t.substring(n.raw.length), e.push(n);
760
- continue;
761
- }
762
- if (n = this.tokenizer.def(t)) {
763
- t = t.substring(n.raw.length), r = e[e.length - 1], r && (r.type === "paragraph" || r.type === "text") ? (r.raw += `
764
- ` + n.raw, r.text += `
765
- ` + n.raw, this.inlineQueue[this.inlineQueue.length - 1].src = r.text) : this.tokens.links[n.tag] || (this.tokens.links[n.tag] = {
766
- href: n.href,
767
- title: n.title
768
- });
769
- continue;
770
- }
771
- if (n = this.tokenizer.table(t)) {
772
- t = t.substring(n.raw.length), e.push(n);
773
- continue;
774
- }
775
- if (n = this.tokenizer.lheading(t)) {
776
- t = t.substring(n.raw.length), e.push(n);
777
- continue;
778
- }
779
- if (i = t, this.options.extensions && this.options.extensions.startBlock) {
780
- let l = 1 / 0;
781
- const o = t.slice(1);
782
- let p;
783
- this.options.extensions.startBlock.forEach((c) => {
784
- p = c.call({ lexer: this }, o), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
785
- }), l < 1 / 0 && l >= 0 && (i = t.substring(0, l + 1));
786
- }
787
- if (this.state.top && (n = this.tokenizer.paragraph(i))) {
788
- r = e[e.length - 1], s && r.type === "paragraph" ? (r.raw += `
789
- ` + n.raw, r.text += `
790
- ` + n.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = r.text) : e.push(n), s = i.length !== t.length, t = t.substring(n.raw.length);
791
- continue;
792
- }
793
- if (n = this.tokenizer.text(t)) {
794
- t = t.substring(n.raw.length), r = e[e.length - 1], r && r.type === "text" ? (r.raw += `
795
- ` + n.raw, r.text += `
796
- ` + n.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = r.text) : e.push(n);
797
- continue;
798
- }
799
- if (t) {
800
- const l = "Infinite loop on byte: " + t.charCodeAt(0);
801
- if (this.options.silent) {
802
- console.error(l);
803
- break;
804
- } else
805
- throw new Error(l);
806
- }
807
- }
808
- return this.state.top = !0, e;
809
- }
810
- inline(t, e = []) {
811
- return this.inlineQueue.push({ src: t, tokens: e }), e;
812
- }
813
- /**
814
- * Lexing/Compiling
815
- */
816
- inlineTokens(t, e = []) {
817
- let n, r, i, s = t, l, o, p;
818
- if (this.tokens.links) {
819
- const c = Object.keys(this.tokens.links);
820
- if (c.length > 0)
821
- for (; (l = this.tokenizer.rules.inline.reflinkSearch.exec(s)) != null; )
822
- c.includes(l[0].slice(l[0].lastIndexOf("[") + 1, -1)) && (s = s.slice(0, l.index) + "[" + "a".repeat(l[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
823
- }
824
- for (; (l = this.tokenizer.rules.inline.blockSkip.exec(s)) != null; )
825
- s = s.slice(0, l.index) + "[" + "a".repeat(l[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
826
- for (; (l = this.tokenizer.rules.inline.anyPunctuation.exec(s)) != null; )
827
- s = s.slice(0, l.index) + "++" + s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
828
- for (; t; )
829
- if (o || (p = ""), o = !1, !(this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((c) => (n = c.call({ lexer: this }, t, e)) ? (t = t.substring(n.raw.length), e.push(n), !0) : !1))) {
830
- if (n = this.tokenizer.escape(t)) {
831
- t = t.substring(n.raw.length), e.push(n);
832
- continue;
833
- }
834
- if (n = this.tokenizer.tag(t)) {
835
- t = t.substring(n.raw.length), r = e[e.length - 1], r && n.type === "text" && r.type === "text" ? (r.raw += n.raw, r.text += n.text) : e.push(n);
836
- continue;
837
- }
838
- if (n = this.tokenizer.link(t)) {
839
- t = t.substring(n.raw.length), e.push(n);
840
- continue;
841
- }
842
- if (n = this.tokenizer.reflink(t, this.tokens.links)) {
843
- t = t.substring(n.raw.length), r = e[e.length - 1], r && n.type === "text" && r.type === "text" ? (r.raw += n.raw, r.text += n.text) : e.push(n);
844
- continue;
845
- }
846
- if (n = this.tokenizer.emStrong(t, s, p)) {
847
- t = t.substring(n.raw.length), e.push(n);
848
- continue;
849
- }
850
- if (n = this.tokenizer.codespan(t)) {
851
- t = t.substring(n.raw.length), e.push(n);
852
- continue;
853
- }
854
- if (n = this.tokenizer.br(t)) {
855
- t = t.substring(n.raw.length), e.push(n);
856
- continue;
857
- }
858
- if (n = this.tokenizer.del(t)) {
859
- t = t.substring(n.raw.length), e.push(n);
860
- continue;
861
- }
862
- if (n = this.tokenizer.autolink(t)) {
863
- t = t.substring(n.raw.length), e.push(n);
864
- continue;
865
- }
866
- if (!this.state.inLink && (n = this.tokenizer.url(t))) {
867
- t = t.substring(n.raw.length), e.push(n);
868
- continue;
869
- }
870
- if (i = t, this.options.extensions && this.options.extensions.startInline) {
871
- let c = 1 / 0;
872
- const u = t.slice(1);
873
- let h;
874
- this.options.extensions.startInline.forEach((g) => {
875
- h = g.call({ lexer: this }, u), typeof h == "number" && h >= 0 && (c = Math.min(c, h));
876
- }), c < 1 / 0 && c >= 0 && (i = t.substring(0, c + 1));
877
- }
878
- if (n = this.tokenizer.inlineText(i)) {
879
- t = t.substring(n.raw.length), n.raw.slice(-1) !== "_" && (p = n.raw.slice(-1)), o = !0, r = e[e.length - 1], r && r.type === "text" ? (r.raw += n.raw, r.text += n.text) : e.push(n);
880
- continue;
881
- }
882
- if (t) {
883
- const c = "Infinite loop on byte: " + t.charCodeAt(0);
884
- if (this.options.silent) {
885
- console.error(c);
886
- break;
887
- } else
888
- throw new Error(c);
889
- }
890
- }
891
- return e;
892
- }
893
- }
894
- class M {
895
- constructor(t) {
896
- d(this, "options");
897
- this.options = t || z;
898
- }
899
- code(t, e, n) {
900
- var i;
901
- const r = (i = (e || "").match(/^\S*/)) == null ? void 0 : i[0];
902
- return t = t.replace(/\n$/, "") + `
903
- `, r ? '<pre><code class="language-' + m(r) + '">' + (n ? t : m(t, !0)) + `</code></pre>
904
- ` : "<pre><code>" + (n ? t : m(t, !0)) + `</code></pre>
905
- `;
906
- }
907
- blockquote(t) {
908
- return `<blockquote>
909
- ${t}</blockquote>
910
- `;
911
- }
912
- html(t, e) {
913
- return t;
914
- }
915
- heading(t, e, n) {
916
- return `<h${e}>${t}</h${e}>
917
- `;
918
- }
919
- hr() {
920
- return `<hr>
921
- `;
922
- }
923
- list(t, e, n) {
924
- const r = e ? "ol" : "ul", i = e && n !== 1 ? ' start="' + n + '"' : "";
925
- return "<" + r + i + `>
926
- ` + t + "</" + r + `>
927
- `;
928
- }
929
- listitem(t, e, n) {
930
- return `<li>${t}</li>
931
- `;
932
- }
933
- checkbox(t) {
934
- return "<input " + (t ? 'checked="" ' : "") + 'disabled="" type="checkbox">';
935
- }
936
- paragraph(t) {
937
- return `<p>${t}</p>
938
- `;
939
- }
940
- table(t, e) {
941
- return e && (e = `<tbody>${e}</tbody>`), `<table>
942
- <thead>
943
- ` + t + `</thead>
944
- ` + e + `</table>
945
- `;
946
- }
947
- tablerow(t) {
948
- return `<tr>
949
- ${t}</tr>
950
- `;
951
- }
952
- tablecell(t, e) {
953
- const n = e.header ? "th" : "td";
954
- return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
955
- `;
956
- }
957
- /**
958
- * span level renderer
959
- */
960
- strong(t) {
961
- return `<strong>${t}</strong>`;
962
- }
963
- em(t) {
964
- return `<em>${t}</em>`;
965
- }
966
- codespan(t) {
967
- return `<code>${t}</code>`;
968
- }
969
- br() {
970
- return "<br>";
971
- }
972
- del(t) {
973
- return `<del>${t}</del>`;
974
- }
975
- link(t, e, n) {
976
- const r = re(t);
977
- if (r === null)
978
- return n;
979
- t = r;
980
- let i = '<a href="' + t + '"';
981
- return e && (i += ' title="' + e + '"'), i += ">" + n + "</a>", i;
982
- }
983
- image(t, e, n) {
984
- const r = re(t);
985
- if (r === null)
986
- return n;
987
- t = r;
988
- let i = `<img src="${t}" alt="${n}"`;
989
- return e && (i += ` title="${e}"`), i += ">", i;
990
- }
991
- text(t) {
992
- return t;
993
- }
994
- }
995
- class Y {
996
- // no need for block level renderers
997
- strong(t) {
998
- return t;
999
- }
1000
- em(t) {
1001
- return t;
1002
- }
1003
- codespan(t) {
1004
- return t;
1005
- }
1006
- del(t) {
1007
- return t;
1008
- }
1009
- html(t) {
1010
- return t;
1011
- }
1012
- text(t) {
1013
- return t;
1014
- }
1015
- link(t, e, n) {
1016
- return "" + n;
1017
- }
1018
- image(t, e, n) {
1019
- return "" + n;
1020
- }
1021
- br() {
1022
- return "";
1023
- }
1024
- }
1025
- class y {
1026
- constructor(t) {
1027
- d(this, "options");
1028
- d(this, "renderer");
1029
- d(this, "textRenderer");
1030
- this.options = t || z, this.options.renderer = this.options.renderer || new M(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new Y();
1031
- }
1032
- /**
1033
- * Static Parse Method
1034
- */
1035
- static parse(t, e) {
1036
- return new y(e).parse(t);
1037
- }
1038
- /**
1039
- * Static Parse Inline Method
1040
- */
1041
- static parseInline(t, e) {
1042
- return new y(e).parseInline(t);
1043
- }
1044
- /**
1045
- * Parse Loop
1046
- */
1047
- parse(t, e = !0) {
1048
- let n = "";
1049
- for (let r = 0; r < t.length; r++) {
1050
- const i = t[r];
1051
- if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[i.type]) {
1052
- const s = i, l = this.options.extensions.renderers[s.type].call({ parser: this }, s);
1053
- if (l !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(s.type)) {
1054
- n += l || "";
1055
- continue;
1056
- }
1057
- }
1058
- switch (i.type) {
1059
- case "space":
1060
- continue;
1061
- case "hr": {
1062
- n += this.renderer.hr();
1063
- continue;
1064
- }
1065
- case "heading": {
1066
- const s = i;
1067
- n += this.renderer.heading(this.parseInline(s.tokens), s.depth, ve(this.parseInline(s.tokens, this.textRenderer)));
1068
- continue;
1069
- }
1070
- case "code": {
1071
- const s = i;
1072
- n += this.renderer.code(s.text, s.lang, !!s.escaped);
1073
- continue;
1074
- }
1075
- case "table": {
1076
- const s = i;
1077
- let l = "", o = "";
1078
- for (let c = 0; c < s.header.length; c++)
1079
- o += this.renderer.tablecell(this.parseInline(s.header[c].tokens), { header: !0, align: s.align[c] });
1080
- l += this.renderer.tablerow(o);
1081
- let p = "";
1082
- for (let c = 0; c < s.rows.length; c++) {
1083
- const u = s.rows[c];
1084
- o = "";
1085
- for (let h = 0; h < u.length; h++)
1086
- o += this.renderer.tablecell(this.parseInline(u[h].tokens), { header: !1, align: s.align[h] });
1087
- p += this.renderer.tablerow(o);
1088
- }
1089
- n += this.renderer.table(l, p);
1090
- continue;
1091
- }
1092
- case "blockquote": {
1093
- const s = i, l = this.parse(s.tokens);
1094
- n += this.renderer.blockquote(l);
1095
- continue;
1096
- }
1097
- case "list": {
1098
- const s = i, l = s.ordered, o = s.start, p = s.loose;
1099
- let c = "";
1100
- for (let u = 0; u < s.items.length; u++) {
1101
- const h = s.items[u], g = h.checked, $ = h.task;
1102
- let b = "";
1103
- if (h.task) {
1104
- const T = this.renderer.checkbox(!!g);
1105
- p ? h.tokens.length > 0 && h.tokens[0].type === "paragraph" ? (h.tokens[0].text = T + " " + h.tokens[0].text, h.tokens[0].tokens && h.tokens[0].tokens.length > 0 && h.tokens[0].tokens[0].type === "text" && (h.tokens[0].tokens[0].text = T + " " + h.tokens[0].tokens[0].text)) : h.tokens.unshift({
1106
- type: "text",
1107
- text: T + " "
1108
- }) : b += T + " ";
1109
- }
1110
- b += this.parse(h.tokens, p), c += this.renderer.listitem(b, $, !!g);
1111
- }
1112
- n += this.renderer.list(c, l, o);
1113
- continue;
1114
- }
1115
- case "html": {
1116
- const s = i;
1117
- n += this.renderer.html(s.text, s.block);
1118
- continue;
1119
- }
1120
- case "paragraph": {
1121
- const s = i;
1122
- n += this.renderer.paragraph(this.parseInline(s.tokens));
1123
- continue;
1124
- }
1125
- case "text": {
1126
- let s = i, l = s.tokens ? this.parseInline(s.tokens) : s.text;
1127
- for (; r + 1 < t.length && t[r + 1].type === "text"; )
1128
- s = t[++r], l += `
1129
- ` + (s.tokens ? this.parseInline(s.tokens) : s.text);
1130
- n += e ? this.renderer.paragraph(l) : l;
1131
- continue;
1132
- }
1133
- default: {
1134
- const s = 'Token with "' + i.type + '" type was not found.';
1135
- if (this.options.silent)
1136
- return console.error(s), "";
1137
- throw new Error(s);
1138
- }
1139
- }
1140
- }
1141
- return n;
1142
- }
1143
- /**
1144
- * Parse Inline Tokens
1145
- */
1146
- parseInline(t, e) {
1147
- e = e || this.renderer;
1148
- let n = "";
1149
- for (let r = 0; r < t.length; r++) {
1150
- const i = t[r];
1151
- if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[i.type]) {
1152
- const s = this.options.extensions.renderers[i.type].call({ parser: this }, i);
1153
- if (s !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
1154
- n += s || "";
1155
- continue;
1156
- }
1157
- }
1158
- switch (i.type) {
1159
- case "escape": {
1160
- const s = i;
1161
- n += e.text(s.text);
1162
- break;
1163
- }
1164
- case "html": {
1165
- const s = i;
1166
- n += e.html(s.text);
1167
- break;
1168
- }
1169
- case "link": {
1170
- const s = i;
1171
- n += e.link(s.href, s.title, this.parseInline(s.tokens, e));
1172
- break;
1173
- }
1174
- case "image": {
1175
- const s = i;
1176
- n += e.image(s.href, s.title, s.text);
1177
- break;
1178
- }
1179
- case "strong": {
1180
- const s = i;
1181
- n += e.strong(this.parseInline(s.tokens, e));
1182
- break;
1183
- }
1184
- case "em": {
1185
- const s = i;
1186
- n += e.em(this.parseInline(s.tokens, e));
1187
- break;
1188
- }
1189
- case "codespan": {
1190
- const s = i;
1191
- n += e.codespan(s.text);
1192
- break;
1193
- }
1194
- case "br": {
1195
- n += e.br();
1196
- break;
1197
- }
1198
- case "del": {
1199
- const s = i;
1200
- n += e.del(this.parseInline(s.tokens, e));
1201
- break;
1202
- }
1203
- case "text": {
1204
- const s = i;
1205
- n += e.text(s.text);
1206
- break;
1207
- }
1208
- default: {
1209
- const s = 'Token with "' + i.type + '" type was not found.';
1210
- if (this.options.silent)
1211
- return console.error(s), "";
1212
- throw new Error(s);
1213
- }
1214
- }
1215
- }
1216
- return n;
1217
- }
1218
- }
1219
- class A {
1220
- constructor(t) {
1221
- d(this, "options");
1222
- this.options = t || z;
1223
- }
1224
- /**
1225
- * Process markdown before marked
1226
- */
1227
- preprocess(t) {
1228
- return t;
1229
- }
1230
- /**
1231
- * Process HTML after marked is finished
1232
- */
1233
- postprocess(t) {
1234
- return t;
1235
- }
1236
- /**
1237
- * Process all tokens before walk tokens
1238
- */
1239
- processAllTokens(t) {
1240
- return t;
1241
- }
1242
- }
1243
- d(A, "passThroughHooks", /* @__PURE__ */ new Set([
1244
- "preprocess",
1245
- "postprocess",
1246
- "processAllTokens"
1247
- ]));
1248
- var E, U, Q, be;
1249
- class ct {
1250
- constructor(...t) {
1251
- N(this, E);
1252
- N(this, Q);
1253
- d(this, "defaults", V());
1254
- d(this, "options", this.setOptions);
1255
- d(this, "parse", v(this, E, U).call(this, w.lex, y.parse));
1256
- d(this, "parseInline", v(this, E, U).call(this, w.lexInline, y.parseInline));
1257
- d(this, "Parser", y);
1258
- d(this, "Renderer", M);
1259
- d(this, "TextRenderer", Y);
1260
- d(this, "Lexer", w);
1261
- d(this, "Tokenizer", B);
1262
- d(this, "Hooks", A);
1263
- this.use(...t);
1264
- }
1265
- /**
1266
- * Run callback for every token
1267
- */
1268
- walkTokens(t, e) {
1269
- var r, i;
1270
- let n = [];
1271
- for (const s of t)
1272
- switch (n = n.concat(e.call(this, s)), s.type) {
1273
- case "table": {
1274
- const l = s;
1275
- for (const o of l.header)
1276
- n = n.concat(this.walkTokens(o.tokens, e));
1277
- for (const o of l.rows)
1278
- for (const p of o)
1279
- n = n.concat(this.walkTokens(p.tokens, e));
1280
- break;
1281
- }
1282
- case "list": {
1283
- const l = s;
1284
- n = n.concat(this.walkTokens(l.items, e));
1285
- break;
1286
- }
1287
- default: {
1288
- const l = s;
1289
- (i = (r = this.defaults.extensions) == null ? void 0 : r.childTokens) != null && i[l.type] ? this.defaults.extensions.childTokens[l.type].forEach((o) => {
1290
- const p = l[o].flat(1 / 0);
1291
- n = n.concat(this.walkTokens(p, e));
1292
- }) : l.tokens && (n = n.concat(this.walkTokens(l.tokens, e)));
1293
- }
1294
- }
1295
- return n;
1296
- }
1297
- use(...t) {
1298
- const e = this.defaults.extensions || { renderers: {}, childTokens: {} };
1299
- return t.forEach((n) => {
1300
- const r = x({}, n);
1301
- if (r.async = this.defaults.async || r.async || !1, n.extensions && (n.extensions.forEach((i) => {
1302
- if (!i.name)
1303
- throw new Error("extension name required");
1304
- if ("renderer" in i) {
1305
- const s = e.renderers[i.name];
1306
- s ? e.renderers[i.name] = function(...l) {
1307
- let o = i.renderer.apply(this, l);
1308
- return o === !1 && (o = s.apply(this, l)), o;
1309
- } : e.renderers[i.name] = i.renderer;
1310
- }
1311
- if ("tokenizer" in i) {
1312
- if (!i.level || i.level !== "block" && i.level !== "inline")
1313
- throw new Error("extension level must be 'block' or 'inline'");
1314
- const s = e[i.level];
1315
- s ? s.unshift(i.tokenizer) : e[i.level] = [i.tokenizer], i.start && (i.level === "block" ? e.startBlock ? e.startBlock.push(i.start) : e.startBlock = [i.start] : i.level === "inline" && (e.startInline ? e.startInline.push(i.start) : e.startInline = [i.start]));
1316
- }
1317
- "childTokens" in i && i.childTokens && (e.childTokens[i.name] = i.childTokens);
1318
- }), r.extensions = e), n.renderer) {
1319
- const i = this.defaults.renderer || new M(this.defaults);
1320
- for (const s in n.renderer) {
1321
- if (!(s in i))
1322
- throw new Error(`renderer '${s}' does not exist`);
1323
- if (s === "options")
1324
- continue;
1325
- const l = s, o = n.renderer[l], p = i[l];
1326
- i[l] = (...c) => {
1327
- let u = o.apply(i, c);
1328
- return u === !1 && (u = p.apply(i, c)), u || "";
1329
- };
1330
- }
1331
- r.renderer = i;
1332
- }
1333
- if (n.tokenizer) {
1334
- const i = this.defaults.tokenizer || new B(this.defaults);
1335
- for (const s in n.tokenizer) {
1336
- if (!(s in i))
1337
- throw new Error(`tokenizer '${s}' does not exist`);
1338
- if (["options", "rules", "lexer"].includes(s))
1339
- continue;
1340
- const l = s, o = n.tokenizer[l], p = i[l];
1341
- i[l] = (...c) => {
1342
- let u = o.apply(i, c);
1343
- return u === !1 && (u = p.apply(i, c)), u;
1344
- };
1345
- }
1346
- r.tokenizer = i;
1347
- }
1348
- if (n.hooks) {
1349
- const i = this.defaults.hooks || new A();
1350
- for (const s in n.hooks) {
1351
- if (!(s in i))
1352
- throw new Error(`hook '${s}' does not exist`);
1353
- if (s === "options")
1354
- continue;
1355
- const l = s, o = n.hooks[l], p = i[l];
1356
- A.passThroughHooks.has(s) ? i[l] = (c) => {
1357
- if (this.defaults.async)
1358
- return Promise.resolve(o.call(i, c)).then((h) => p.call(i, h));
1359
- const u = o.call(i, c);
1360
- return p.call(i, u);
1361
- } : i[l] = (...c) => {
1362
- let u = o.apply(i, c);
1363
- return u === !1 && (u = p.apply(i, c)), u;
1364
- };
1365
- }
1366
- r.hooks = i;
1367
- }
1368
- if (n.walkTokens) {
1369
- const i = this.defaults.walkTokens, s = n.walkTokens;
1370
- r.walkTokens = function(l) {
1371
- let o = [];
1372
- return o.push(s.call(this, l)), i && (o = o.concat(i.call(this, l))), o;
1373
- };
1374
- }
1375
- this.defaults = x(x({}, this.defaults), r);
1376
- }), this;
1377
- }
1378
- setOptions(t) {
1379
- return this.defaults = x(x({}, this.defaults), t), this;
1380
- }
1381
- lexer(t, e) {
1382
- return w.lex(t, e != null ? e : this.defaults);
1383
- }
1384
- parser(t, e) {
1385
- return y.parse(t, e != null ? e : this.defaults);
1386
- }
1387
- }
1388
- E = new WeakSet(), U = function(t, e) {
1389
- return (n, r) => {
1390
- const i = x({}, r), s = x(x({}, this.defaults), i);
1391
- this.defaults.async === !0 && i.async === !1 && (s.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), s.async = !0);
1392
- const l = v(this, Q, be).call(this, !!s.silent, !!s.async);
1393
- if (typeof n == "undefined" || n === null)
1394
- return l(new Error("marked(): input parameter is undefined or null"));
1395
- if (typeof n != "string")
1396
- return l(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
1397
- if (s.hooks && (s.hooks.options = s), s.async)
1398
- return Promise.resolve(s.hooks ? s.hooks.preprocess(n) : n).then((o) => t(o, s)).then((o) => s.hooks ? s.hooks.processAllTokens(o) : o).then((o) => s.walkTokens ? Promise.all(this.walkTokens(o, s.walkTokens)).then(() => o) : o).then((o) => e(o, s)).then((o) => s.hooks ? s.hooks.postprocess(o) : o).catch(l);
1399
- try {
1400
- s.hooks && (n = s.hooks.preprocess(n));
1401
- let o = t(n, s);
1402
- s.hooks && (o = s.hooks.processAllTokens(o)), s.walkTokens && this.walkTokens(o, s.walkTokens);
1403
- let p = e(o, s);
1404
- return s.hooks && (p = s.hooks.postprocess(p)), p;
1405
- } catch (o) {
1406
- return l(o);
1407
- }
1408
- };
1409
- }, Q = new WeakSet(), be = function(t, e) {
1410
- return (n) => {
1411
- if (n.message += `
1412
- Please report this to https://github.com/markedjs/marked.`, t) {
1413
- const r = "<p>An error occurred:</p><pre>" + m(n.message + "", !0) + "</pre>";
1414
- return e ? Promise.resolve(r) : r;
1415
- }
1416
- if (e)
1417
- return Promise.reject(n);
1418
- throw n;
1419
- };
1420
- };
1421
- const _ = new ct();
1422
- function f(a, t) {
1423
- return _.parse(a, t);
1424
- }
1425
- f.options = f.setOptions = function(a) {
1426
- return _.setOptions(a), f.defaults = _.defaults, ce(f.defaults), f;
1427
- };
1428
- f.getDefaults = V;
1429
- f.defaults = z;
1430
- f.use = function(...a) {
1431
- return _.use(...a), f.defaults = _.defaults, ce(f.defaults), f;
1432
- };
1433
- f.walkTokens = function(a, t) {
1434
- return _.walkTokens(a, t);
1435
- };
1436
- f.parseInline = _.parseInline;
1437
- f.Parser = y;
1438
- f.parser = y.parse;
1439
- f.Renderer = M;
1440
- f.TextRenderer = Y;
1441
- f.Lexer = w;
1442
- f.lexer = w.lex;
1443
- f.Tokenizer = B;
1444
- f.Hooks = A;
1445
- f.parse = f;
1446
- f.options;
1447
- f.setOptions;
1448
- f.use;
1449
- f.walkTokens;
1450
- f.parseInline;
1451
- y.parse;
1452
- w.lex;
1453
- const ht = /* @__PURE__ */ Re({
1454
- __name: "MarkdownViewer",
1455
- props: {
1456
- data: null
1457
- },
1458
- setup(a) {
1459
- const t = a, e = Ie(() => f(t.data));
1460
- return { __sfc: !0, props: t, html: e };
1461
- }
1462
- });
1463
- var pt = function() {
1464
- var t = this, e = t._self._c, n = t._self._setupProxy;
1465
- return e("div", { staticClass: "markdown-body", domProps: { innerHTML: t._s(n.html) } });
1466
- }, ut = [], ft = /* @__PURE__ */ Se(
1467
- ht,
1468
- pt,
1469
- ut,
1470
- !1,
1471
- null,
1472
- "e0bd8a5a",
1473
- null,
1474
- null
1475
- );
1476
- const xt = ft.exports;
1477
- export {
1478
- xt as default
1479
- };
1
+ const aD=b;(function(h,i){const ay=b,l=h();while(!![]){try{const n=-parseInt(ay(0x116))/0x1*(-parseInt(ay(0x111))/0x2)+-parseInt(ay(0x12e))/0x3*(parseInt(ay(0xdb))/0x4)+parseInt(ay(0xfd))/0x5*(-parseInt(ay(0xdf))/0x6)+-parseInt(ay(0x114))/0x7+parseInt(ay(0x109))/0x8*(parseInt(ay(0x11c))/0x9)+-parseInt(ay(0x134))/0xa+-parseInt(ay(0xe0))/0xb*(-parseInt(ay(0x13b))/0xc);if(n===i)break;else l['push'](l['shift']());}catch(o){l['push'](l['shift']());}}}(a,0xdf267));var Te=Object['defineProperty'],_e=Object['defineProperties'],ze=Object['getOwnPropertyDescriptors'],ae=Object['getOwnPropertySymbols'],Ae=Object['prototype']['hasOwnProperty'],Pe=Object['prototype']['propertyIsEnumerable'],W=(h,i,l)=>i in h?Te(h,i,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':l}):h[i]=l,y=(h,i)=>{const az=b;for(var l in i||(i={}))Ae[az(0xea)](i,l)&&W(h,l,i[l]);if(ae){for(var l of ae(i))Pe['call'](i,l)&&W(h,l,i[l]);}return h;},L=(h,i)=>_e(h,ze(i)),f=(h,i,l)=>(W(h,typeof i!='symbol'?i+'':i,l),l),M=(h,i,l)=>new Promise((p,u)=>{const aA=b;var v=C=>{try{x(l['next'](C));}catch(F){u(F);}},w=C=>{try{x(l['throw'](C));}catch(F){u(F);}},x=C=>C['done']?p(C[aA(0xc1)]):Promise['resolve'](C['value'])['then'](v,w);x((l=l['apply'](h,i))['next']());});import{defineComponent as c,computed as e}from'vue';import{n as g}from'./index.js';function K(){return{'async':!0x1,'breaks':!0x1,'extensions':null,'gfm':!0x0,'hooks':null,'pedantic':!0x1,'renderer':null,'silent':!0x1,'tokenizer':null,'walkTokens':null};}var A=K();function de(h){A=h;}var _={'exec':()=>null};function k(h,i=''){let l=typeof h=='string'?h:h['source'],n={'replace':(o,p)=>{const aB=b;let u=typeof p=='string'?p:p['source'];return u=u['replace'](m[aB(0x143)],'$1'),l=l[aB(0xca)](o,u),n;},'getRegex':()=>new RegExp(l,i)};return n;}var Ce=((h='')=>{const aC=b;try{return!!new RegExp(aC(0x128)+h);}catch(i){return!0x1;}})(),m={'codeRemoveIndent':/^(?: {1,4}| {0,3}\t)/gm,'outputLinkReplace':/\\([\[\]])/g,'indentCodeCompensation':/^(\s+)(?:```)/,'beginningSpace':/^\s+/,'endingHash':/#$/,'startingSpaceChar':/^ /,'endingSpaceChar':/ $/,'nonSpaceChar':/[^ ]/,'newLineCharGlobal':/\n/g,'tabCharGlobal':/\t/g,'multipleSpaceGlobal':/\s+/g,'blankLine':/^[ \t]*$/,'doubleBlankLine':/\n[ \t]*\n[ \t]*$/,'blockquoteStart':/^ {0,3}>/,'blockquoteSetextReplace':/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,'blockquoteSetextReplace2':/^ {0,3}>[ \t]?/gm,'listReplaceNesting':/^ {1,4}(?=( {4})*[^ ])/g,'listIsTask':/^\[[ xX]\] +\S/,'listReplaceTask':/^\[[ xX]\] +/,'listTaskCheckbox':/\[[ xX]\]/,'anyLine':/\n.*\n/,'hrefBrackets':/^<(.*)>$/,'tableDelimiter':/[:|]/,'tableAlignChars':/^\||\| *$/g,'tableRowBlankLine':/\n[ \t]*$/,'tableAlignRight':/^ *-+: *$/,'tableAlignCenter':/^ *:-+: *$/,'tableAlignLeft':/^ *:-+ *$/,'startATag':/^<a /i,'endATag':/^<\/a>/i,'startPreScriptTag':/^<(pre|code|kbd|script)(\s|>)/i,'endPreScriptTag':/^<\/(pre|code|kbd|script)(\s|>)/i,'startAngleBracket':/^</,'endAngleBracket':/>$/,'pedanticHrefTitle':/^([^'"]*[^\s])\s+(['"])(.*)\2/,'unicodeAlphaNumeric':/[\p{L}\p{N}]/u,'escapeTest':/[&<>"']/,'escapeReplace':/[&<>"']/g,'escapeTestNoEncode':/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,'escapeReplaceNoEncode':/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,'caret':/(^|[^\[])\^/g,'percentDecode':/%25/g,'findPipe':/\|/g,'splitPipe':/ \|/,'slashPipe':/\\\|/g,'carriageReturn':/\r\n|\r/g,'spaceLine':/^ +$/gm,'notSpaceStart':/^\S*/,'endingNewline':/\n$/,'listItemRegex':h=>new RegExp(aD(0x101)+h+')((?:[\x09\x20][^\x5cn]*)?(?:\x5cn|$))'),'nextBulletRegex':h=>new RegExp('^\x20{0,'+Math['min'](0x3,h-0x1)+'}(?:[*+-]|\x5cd{1,9}[.)])((?:[\x20\x09][^\x5cn]*)?(?:\x5cn|$))'),'hrRegex':h=>new RegExp('^\x20{0,'+Math['min'](0x3,h-0x1)+'}((?:-\x20*){3,}|(?:_\x20*){3,}|(?:\x5c*\x20*){3,})(?:\x5cn+|$)'),'fencesBeginRegex':h=>new RegExp('^\x20{0,'+Math['min'](0x3,h-0x1)+'}(?:```|~~~)'),'headingBeginRegex':h=>new RegExp('^\x20{0,'+Math['min'](0x3,h-0x1)+'}#'),'htmlBeginRegex':h=>new RegExp('^\x20{0,'+Math['min'](0x3,h-0x1)+'}<(?:[a-z].*>|!--)','i'),'blockquoteBeginRegex':h=>new RegExp('^\x20{0,'+Math[aD(0x14f)](0x3,h-0x1)+'}>')},Ee=/^(?:[ \t]*(?:\n|$))+/,Be=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,qe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,q=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ze=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Y=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,fe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xe=k(fe)['replace'](/bull/g,Y)['replace'](/blockCode/g,/(?: {4}| {0,3}\t)/)[aD(0xca)](/fences/g,/ {0,3}(?:`{3,}|~{3,})/)[aD(0xca)](/blockquote/g,/ {0,3}>/)['replace'](/heading/g,/ {0,3}#{1,6}/)['replace'](/html/g,/ {0,3}<[^\n>]+>\n/)['replace'](/\|table/g,'')['getRegex'](),Me=k(fe)['replace'](/bull/g,Y)[aD(0xca)](/blockCode/g,/(?: {4}| {0,3}\t)/)['replace'](/fences/g,/ {0,3}(?:`{3,}|~{3,})/)['replace'](/blockquote/g,/ {0,3}>/)[aD(0xca)](/heading/g,/ {0,3}#{1,6}/)['replace'](/html/g,/ {0,3}<[^\n>]+>\n/)[aD(0xca)](/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/)[aD(0x106)](),ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,De=/^[^\n]+/,te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Qe=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/)['replace']('label',te)['replace']('title',/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/)['getRegex'](),He=k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/)['replace'](/bull/g,Y)['getRegex'](),O=aD(0x104),re=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,je=k('^\x20{0,3}(?:<(script|pre|style|textarea)[\x5cs>][\x5cs\x5cS]*?(?:</\x5c1>[^\x5cn]*\x5cn+|$)|comment[^\x5cn]*(\x5cn+|$)|<\x5c?[\x5cs\x5cS]*?(?:\x5c?>\x5cn*|$)|<![A-Z][\x5cs\x5cS]*?(?:>\x5cn*|$)|<!\x5c[CDATA\x5c[[\x5cs\x5cS]*?(?:\x5c]\x5c]>\x5cn*|$)|</?(tag)(?:\x20+|\x5cn|/?>)[\x5cs\x5cS]*?(?:(?:\x5cn[\x20\x09]*)+\x5cn|$)|<(?!script|pre|style|textarea)([a-z][\x5cw-]*)(?:attribute)*?\x20*/?>(?=[\x20\x5ct]*(?:\x5cn|$))[\x5cs\x5cS]*?(?:(?:\x5cn[\x20\x09]*)+\x5cn|$)|</(?!script|pre|style|textarea)[a-z][\x5cw-]*\x5cs*>(?=[\x20\x5ct]*(?:\x5cn|$))[\x5cs\x5cS]*?(?:(?:\x5cn[\x20\x09]*)+\x5cn|$))','i')['replace']('comment',re)['replace']('tag',O)['replace']('attribute',/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/)['getRegex'](),be=k(ee)['replace']('hr',q)['replace'](aD(0x142),'\x20{0,3}#{1,6}(?:\x5cs|$)')['replace']('|lheading','')['replace']('|table','')['replace']('blockquote','\x20{0,3}>')[aD(0xca)]('fences',aD(0xf1))['replace']('list','\x20{0,3}(?:[*+-]|1[.)])[\x20\x5ct]')[aD(0xca)]('html','</?(?:tag)(?:\x20+|\x5cn|/?>)|<(?:script|pre|style|textarea|!--)')['replace']('tag',O)['getRegex'](),Ne=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/)[aD(0xca)]('paragraph',be)['getRegex'](),ne={'blockquote':Ne,'code':Be,'def':Qe,'fences':qe,'heading':Ze,'hr':q,'html':je,'lheading':xe,'list':He,'newline':Ee,'paragraph':be,'table':_,'text':De},oe=k('^\x20*([^\x5cn\x20].*)\x5cn\x20{0,3}((?:\x5c|\x20*)?:?-+:?\x20*(?:\x5c|\x20*:?-+:?\x20*)*(?:\x5c|\x20*)?)(?:\x5cn((?:(?!\x20*\x5cn|hr|heading|blockquote|code|fences|list|html).*(?:\x5cn|$))*)\x5cn*|$)')['replace']('hr',q)['replace']('heading','\x20{0,3}#{1,6}(?:\x5cs|$)')['replace']('blockquote',aD(0xf0))['replace']('code','(?:\x20{4}|\x20{0,3}\x09)[^\x5cn]')['replace']('fences','\x20{0,3}(?:`{3,}(?=[^`\x5cn]*\x5cn)|~{3,})[^\x5cn]*\x5cn')['replace']('list','\x20{0,3}(?:[*+-]|1[.)])[\x20\x5ct]')['replace'](aD(0xf4),'</?(?:tag)(?:\x20+|\x5cn|/?>)|<(?:script|pre|style|textarea|!--)')['replace'](aD(0x141),O)['getRegex'](),Oe=L(y({},ne),{'lheading':Me,'table':oe,'paragraph':k(ee)['replace']('hr',q)['replace']('heading','\x20{0,3}#{1,6}(?:\x5cs|$)')['replace']('|lheading','')['replace']('table',oe)['replace'](aD(0x14c),'\x20{0,3}>')['replace']('fences',aD(0xf1))['replace']('list','\x20{0,3}(?:[*+-]|1[.)])[\x20\x5ct]')['replace']('html','</?(?:tag)(?:\x20+|\x5cn|/?>)|<(?:script|pre|style|textarea|!--)')[aD(0xca)]('tag',O)['getRegex']()}),Ge=L(y({},ne),{'html':k('^\x20*(?:comment\x20*(?:\x5cn|\x5cs*$)|<(tag)[\x5cs\x5cS]+?</\x5c1>\x20*(?:\x5cn{2,}|\x5cs*$)|<tag(?:\x22[^\x22]*\x22|\x27[^\x27]*\x27|\x5cs[^\x27\x22/>\x5cs]*)*?/?>\x20*(?:\x5cn{2,}|\x5cs*$))')['replace'](aD(0x102),re)['replace'](/tag/g,aD(0xd4))['getRegex'](),'def':/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,'heading':/^(#{1,6})(.*)(?:\n+|$)/,'fences':_,'lheading':/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,'paragraph':k(ee)[aD(0xca)]('hr',q)['replace']('heading','\x20*#{1,6}\x20*[^\x0a]')['replace']('lheading',xe)['replace']('|table','')['replace']('blockquote','\x20{0,3}>')['replace']('|fences','')['replace']('|list','')['replace']('|html','')[aD(0xca)](aD(0x13a),'')['getRegex']()}),Xe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Fe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,we=/^( {2,}|\\)\n(?!\s*$)/,We=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,I=/[\p{P}\p{S}]/u,G=/[\s\p{P}\p{S}]/u,se=/[^\s\p{P}\p{S}]/u,Ue=k(/^((?![*_])punctSpace)/,'u')['replace'](/punctSpace/g,G)['getRegex'](),me=/(?!~)[\p{P}\p{S}]/u,Ve=/(?!~)[\s\p{P}\p{S}]/u,Je=/(?:[^\s\p{P}\p{S}]|~)/u,Ke=k(/link|precode-code|html/,'g')['replace']('link',new RegExp(aD(0xc5)))[aD(0xca)]('precode-',Ce?aD(0x151):'(^^|[^`])')['replace']('code',new RegExp('(?<b>`+)[^`]+\x5ck<b>(?!`)'))['replace'](aD(0xf4),/<(?! )[^<>]*?>/)['getRegex'](),ye=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ye=k(ye,'u')['replace'](/punct/g,I)['getRegex'](),et=k(ye,'u')['replace'](/punct/g,me)['getRegex'](),$e='^[^_*]*?__[^_*]*?\x5c*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\x5c*)punct(\x5c*+)(?=[\x5cs]|$)|notPunctSpace(\x5c*+)(?!\x5c*)(?=punctSpace|$)|(?!\x5c*)punctSpace(\x5c*+)(?=notPunctSpace)|[\x5cs](\x5c*+)(?!\x5c*)(?=punct)|(?!\x5c*)punct(\x5c*+)(?!\x5c*)(?=punct)|notPunctSpace(\x5c*+)(?=notPunctSpace)',tt=k($e,'gu')[aD(0xca)](/notPunctSpace/g,se)[aD(0xca)](/punctSpace/g,G)['replace'](/punct/g,I)['getRegex'](),rt=k($e,'gu')['replace'](/notPunctSpace/g,Je)[aD(0xca)](/punctSpace/g,Ve)['replace'](/punct/g,me)['getRegex'](),nt=k('^[^_*]*?\x5c*\x5c*[^_*]*?_[^_*]*?(?=\x5c*\x5c*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\x5cs]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\x5cs](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)','gu')['replace'](/notPunctSpace/g,se)['replace'](/punctSpace/g,G)['replace'](/punct/g,I)['getRegex'](),st=k(/^~~?(?:((?!~)punct)|[^\s~])/,'u')[aD(0xca)](/punct/g,I)['getRegex'](),it='^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\x5cs]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\x5cs](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)',lt=k(it,'gu')['replace'](/notPunctSpace/g,se)['replace'](/punctSpace/g,G)['replace'](/punct/g,I)['getRegex'](),at=k(/\\(punct)/,'gu')[aD(0xca)](/punct/g,I)[aD(0x106)](),ot=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/)['replace']('scheme',/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/)[aD(0xca)]('email',/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/)['getRegex'](),ct=k(re)['replace']('(?:-->|$)','-->')['getRegex'](),ht=k('^comment|^</[a-zA-Z][\x5cw:-]*\x5cs*>|^<[a-zA-Z][\x5cw-]*(?:attribute)*?\x5cs*/?>|^<\x5c?[\x5cs\x5cS]*?\x5c?>|^<![a-zA-Z]+\x5cs[\x5cs\x5cS]*?>|^<!\x5c[CDATA\x5c[[\x5cs\x5cS]*?\x5c]\x5c]>')['replace']('comment',ct)['replace'](aD(0xc2),/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/)['getRegex'](),H=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,pt=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/)['replace']('label',H)['replace'](aD(0xb4),/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/)['replace']('title',/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/)['getRegex'](),Re=k(/^!?\[(label)\]\[(ref)\]/)['replace']('label',H)['replace']('ref',te)['getRegex'](),Se=k(/^!?\[(ref)\](?:\[\])?/)['replace']('ref',te)['getRegex'](),ut=k('reflink|nolink(?!\x5c()','g')[aD(0xca)]('reflink',Re)['replace']('nolink',Se)[aD(0x106)](),ce=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ie={'_backpedal':_,'anyPunctuation':at,'autolink':ot,'blockSkip':Ke,'br':we,'code':Fe,'del':_,'delLDelim':_,'delRDelim':_,'emStrongLDelim':Ye,'emStrongRDelimAst':tt,'emStrongRDelimUnd':nt,'escape':Xe,'link':pt,'nolink':Se,'punctuation':Ue,'reflink':Re,'reflinkSearch':ut,'tag':ht,'text':We,'url':_},gt=L(y({},ie),{'link':k(/^!?\[(label)\]\((.*?)\)/)['replace']('label',H)['getRegex'](),'reflink':k(/^!?\[(label)\]\s*\[([^\]]*)\]/)['replace']('label',H)['getRegex']()}),U=L(y({},ie),{'emStrongRDelimAst':rt,'emStrongLDelim':et,'delLDelim':st,'delRDelim':lt,'url':k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/)['replace']('protocol',ce)['replace'](aD(0xfe),/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/)['getRegex'](),'_backpedal':/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,'del':/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,'text':k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/)['replace']('protocol',ce)['getRegex']()}),kt=L(y({},U),{'br':k(we)['replace']('{2,}','*')['getRegex'](),'text':k(U[aD(0xb7)])['replace']('\x5cb_','\x5cb_|\x20{2,}\x5cn')['replace'](/\{2,\}/g,'*')['getRegex']()}),D={'normal':ne,'gfm':Oe,'pedantic':Ge},E={'normal':ie,'gfm':U,'breaks':kt,'pedantic':gt},dt={'&':'&amp;','<':'&lt;','>':aD(0x11e),'\x22':aD(0xfc),'\x27':'&#39;'},he=h=>dt[h];function S(h,i){if(i){if(m['escapeTest']['test'](h))return h['replace'](m['escapeReplace'],he);}else{if(m['escapeTestNoEncode']['test'](h))return h['replace'](m['escapeReplaceNoEncode'],he);}return h;}function pe(h){const aE=aD;try{h=encodeURI(h)[aE(0xca)](m[aE(0xeb)],'%');}catch(i){return null;}return h;}function b(c,d){c=c-0xb1;const e=a();let f=e[c];return f;}function ue(h,i){const aF=aD;var o;let p=h['replace'](m['findPipe'],(w,x,C)=>{let F=!0x1,P=x;for(;--P>=0x0&&C[P]==='\x5c';)F=!F;return F?'|':'\x20|';}),u=p['split'](m['splitPipe']),v=0x0;if(u[0x0]['trim']()||u['shift'](),u['length']>0x0&&!((o=u['at'](-0x1))!=null&&o['trim']())&&u['pop'](),i){if(u['length']>i)u['splice'](i);else{for(;u['length']<i;)u['push']('');}}for(;v<u['length'];v++)u[v]=u[v][aF(0x144)]()['replace'](m['slashPipe'],'|');return u;}function T(h,i,o){const aG=aD;let p=h[aG(0x138)];if(p===0x0)return'';let u=0x0;for(;u<p;){let v=h['charAt'](p-u-0x1);if(v===i&&!o)u++;else{if(v!==i&&o)u++;else break;}}return h['slice'](0x0,p-u);}function ge(h){let i=h['split']('\x0a'),l=i['length']-0x1;for(;l>=0x0&&m['blankLine']['test'](i[l]);)l--;return i['length']-l<=0x2?h:i['slice'](0x0,l+0x1)['join']('\x0a');}function ft(h,i){if(h['indexOf'](i[0x1])===-0x1)return-0x1;let l=0x0;for(let n=0x0;n<h['length'];n++)if(h[n]==='\x5c')n++;else{if(h[n]===i[0x0])l++;else{if(h[n]===i[0x1]&&(l--,l<0x0))return n;}}return l>0x0?-0x2:-0x1;}function xt(h,i=0x0){let o=i,p='';for(let u of h)if(u==='\x09'){let v=0x4-o%0x4;p+='\x20'['repeat'](v),o+=v;}else p+=u,o++;return p;}function ke(h,p,u,v,w){const aH=aD;let x=p['href'],C=p['title']||null,F=h[0x1][aH(0xca)](w['other']['outputLinkReplace'],'$1');v['state']['inLink']=!0x0;let P={'type':h[0x0]['charAt'](0x0)==='!'?'image':'link','raw':u,'href':x,'title':C,'text':F,'tokens':v['inlineTokens'](F)};return v['state']['inLink']=!0x1,P;}function bt(h,i,l){const aI=aD;let o=h['match'](l[aI(0x121)]['indentCodeCompensation']);if(o===null)return i;let p=o[0x1];return i['split']('\x0a')['map'](u=>{const aJ=aI;let v=u['match'](l['other']['beginningSpace']);if(v===null)return u;let [w]=v;return w[aJ(0x138)]>=p['length']?u['slice'](p['length']):u;})[aI(0xd3)]('\x0a');}var j=class{constructor(h){f(this,'options'),f(this,'rules'),f(this,'lexer'),this['options']=h||A;}['space'](h){const aK=aD;let i=this['rules'][aK(0xc9)]['newline'][aK(0x14b)](h);if(i&&i[0x0]['length']>0x0)return{'type':'space','raw':i[0x0]};}['code'](h){const aL=aD;let i=this['rules']['block']['code']['exec'](h);if(i){let l=this['options']['pedantic']?i[0x0]:ge(i[0x0]),n=l['replace'](this[aL(0xf7)]['other']['codeRemoveIndent'],'');return{'type':aL(0x11d),'raw':l,'codeBlockStyle':aL(0x148),'text':n};}}['fences'](h){const aM=aD;let i=this['rules'][aM(0xc9)][aM(0xcf)]['exec'](h);if(i){let l=i[0x0],n=bt(l,i[0x3]||'',this['rules']);return{'type':'code','raw':l,'lang':i[0x2]?i[0x2][aM(0x144)]()['replace'](this['rules']['inline']['anyPunctuation'],'$1'):i[0x2],'text':n};}}['heading'](h){const aN=aD;let i=this['rules']['block'][aN(0x142)]['exec'](h);if(i){let l=i[0x2]['trim']();if(this['rules']['other'][aN(0xc4)]['test'](l)){let n=T(l,'#');(this['options']['pedantic']||!n||this['rules']['other'][aN(0xce)][aN(0xb9)](n))&&(l=n['trim']());}return{'type':'heading','raw':T(i[0x0],'\x0a'),'depth':i[0x1]['length'],'text':l,'tokens':this[aN(0xc7)][aN(0x112)](l)};}}['hr'](h){const aO=aD;let i=this['rules'][aO(0xc9)]['hr']['exec'](h);if(i)return{'type':'hr','raw':T(i[0x0],'\x0a')};}['blockquote'](v){const aP=aD;let C=this['rules']['block']['blockquote']['exec'](v);if(C){let F=T(C[0x0],'\x0a')[aP(0xc0)]('\x0a'),P='',X='',Z=[];for(;F['length']>0x0;){let a0=!0x1,a1=[],a2;for(a2=0x0;a2<F[aP(0x138)];a2++)if(this['rules']['other']['blockquoteStart']['test'](F[a2]))a1['push'](F[a2]),a0=!0x0;else{if(!a0)a1['push'](F[a2]);else break;}F=F[aP(0x150)](a2);let a3=a1['join']('\x0a'),a4=a3['replace'](this['rules']['other']['blockquoteSetextReplace'],'\x0a\x20\x20\x20\x20$1')['replace'](this['rules']['other']['blockquoteSetextReplace2'],'');P=P?P+'\x0a'+a3:a3,X=X?X+'\x0a'+a4:a4;let a5=this[aP(0xc7)]['state']['top'];if(this['lexer']['state']['top']=!0x0,this['lexer']['blockTokens'](a4,Z,!0x0),this['lexer']['state']['top']=a5,F[aP(0x138)]===0x0)break;let a6=Z['at'](-0x1);if((a6==null?void 0x0:a6['type'])==='code')break;if((a6==null?void 0x0:a6['type'])==='blockquote'){let a7=a6,a8=a7[aP(0x139)]+'\x0a'+F[aP(0xd3)]('\x0a'),a9=this['blockquote'](a8);Z[Z['length']-0x1]=a9,P=P['substring'](0x0,P['length']-a7[aP(0x139)]['length'])+a9['raw'],X=X['substring'](0x0,X['length']-a7['text']['length'])+a9[aP(0xb7)];break;}else{if((a6==null?void 0x0:a6['type'])==='list'){let aa=a6,ab=aa['raw']+'\x0a'+F['join']('\x0a'),ac=this['list'](ab);Z[Z['length']-0x1]=ac,P=P['substring'](0x0,P['length']-a6[aP(0x139)]['length'])+ac['raw'],X=X['substring'](0x0,X[aP(0x138)]-aa['raw']['length'])+ac['raw'],F=ab[aP(0x10c)](Z['at'](-0x1)['raw']['length'])['split']('\x0a');continue;}}}return{'type':'blockquote','raw':P,'tokens':Z,'text':X};}}['list'](a0){const aQ=aD;let a1=this['rules']['block']['list']['exec'](a0);if(a1){let a2=a1[0x1]['trim'](),a3=a2['length']>0x1,a4={'type':'list','raw':'','ordered':a3,'start':a3?+a2['slice'](0x0,-0x1):'','loose':!0x1,'items':[]};a2=a3?'\x5cd{1,9}\x5c'+a2['slice'](-0x1):'\x5c'+a2,this['options']['pedantic']&&(a2=a3?a2:'[*+-]');let a5=this[aQ(0xf7)]['other'][aQ(0x120)](a2),a6=!0x1;for(;a0;){let a8=!0x1,a9='',aa='';if(!(a1=a5[aQ(0x14b)](a0))||this['rules']['block']['hr'][aQ(0xb9)](a0))break;a9=a1[0x0],a0=a0['substring'](a9['length']);let ab=xt(a1[0x2]['split']('\x0a',0x1)[0x0],a1[0x1]['length']),ac=a0['split']('\x0a',0x1)[0x0],ad=!ab['trim'](),af=0x0;if(this['options']['pedantic']?(af=0x2,aa=ab['trimStart']()):ad?af=a1[0x1]['length']+0x1:(af=ab['search'](this[aQ(0xf7)]['other']['nonSpaceChar']),af=af>0x4?0x1:af,aa=ab['slice'](af),af+=a1[0x1]['length']),ad&&this['rules']['other']['blankLine']['test'](ac)&&(a9+=ac+'\x0a',a0=a0['substring'](ac[aQ(0x138)]+0x1),a8=!0x0),!a8){let ag=this[aQ(0xf7)]['other']['nextBulletRegex'](af),ah=this['rules'][aQ(0x121)]['hrRegex'](af),ai=this['rules']['other']['fencesBeginRegex'](af),aj=this[aQ(0xf7)][aQ(0x121)][aQ(0x13d)](af),ak=this['rules']['other']['htmlBeginRegex'](af),al=this['rules']['other']['blockquoteBeginRegex'](af);for(;a0;){let am=a0['split']('\x0a',0x1)[0x0],an;if(ac=am,this[aQ(0x125)]['pedantic']?(ac=ac[aQ(0xca)](this['rules']['other'][aQ(0x11a)],'\x20\x20'),an=ac):an=ac['replace'](this['rules']['other']['tabCharGlobal'],'\x20\x20\x20\x20'),ai[aQ(0xb9)](ac)||aj['test'](ac)||ak['test'](ac)||al['test'](ac)||ag[aQ(0xb9)](ac)||ah['test'](ac))break;if(an[aQ(0xbc)](this['rules']['other']['nonSpaceChar'])>=af||!ac[aQ(0x144)]())aa+='\x0a'+an['slice'](af);else{if(ad||ab['replace'](this[aQ(0xf7)]['other']['tabCharGlobal'],aQ(0xbb))[aQ(0xbc)](this['rules']['other'][aQ(0x119)])>=0x4||ai['test'](ab)||aj['test'](ab)||ah['test'](ab))break;aa+='\x0a'+ac;}ad=!ac[aQ(0x144)](),a9+=am+'\x0a',a0=a0['substring'](am['length']+0x1),ab=an['slice'](af);}}a4[aQ(0xe5)]||(a6?a4['loose']=!0x0:this['rules']['other']['doubleBlankLine']['test'](a9)&&(a6=!0x0)),a4[aQ(0x127)]['push']({'type':'list_item','raw':a9,'task':!!this['options'][aQ(0xe4)]&&this[aQ(0xf7)][aQ(0x121)]['listIsTask']['test'](aa),'loose':!0x1,'text':aa,'tokens':[]}),a4['raw']+=a9;}let a7=a4['items']['at'](-0x1);if(a7)a7['raw']=a7['raw']['trimEnd'](),a7[aQ(0xb7)]=a7['text']['trimEnd']();else return;a4['raw']=a4['raw']['trimEnd']();for(let ao of a4['items']){this['lexer']['state']['top']=!0x1,ao['tokens']=this['lexer']['blockTokens'](ao['text'],[]);let ap=ao[aQ(0xcd)][0x0];if(ao[aQ(0xf8)]&&((ap==null?void 0x0:ap['type'])==='text'||(ap==null?void 0x0:ap['type'])===aQ(0xc6))){ao['text']=ao[aQ(0xb7)][aQ(0xca)](this['rules']['other'][aQ(0x145)],''),ap['raw']=ap['raw']['replace'](this['rules'][aQ(0x121)]['listReplaceTask'],''),ap[aQ(0xb7)]=ap['text']['replace'](this['rules']['other'][aQ(0x145)],'');for(let ar=this['lexer']['inlineQueue']['length']-0x1;ar>=0x0;ar--)if(this['rules']['other'][aQ(0x149)][aQ(0xb9)](this['lexer']['inlineQueue'][ar]['src'])){this['lexer']['inlineQueue'][ar]['src']=this['lexer']['inlineQueue'][ar]['src']['replace'](this['rules']['other']['listReplaceTask'],'');break;}let aq=this[aQ(0xf7)][aQ(0x121)]['listTaskCheckbox']['exec'](ao[aQ(0x139)]);if(aq){let as={'type':'checkbox','raw':aq[0x0]+'\x20','checked':aq[0x0]!=='[\x20]'};ao['checked']=as[aQ(0xe9)],a4['loose']?ao['tokens'][0x0]&&['paragraph','text'][aQ(0x117)](ao['tokens'][0x0][aQ(0x13e)])&&'tokens'in ao['tokens'][0x0]&&ao[aQ(0xcd)][0x0]['tokens']?(ao[aQ(0xcd)][0x0]['raw']=as['raw']+ao['tokens'][0x0]['raw'],ao['tokens'][0x0]['text']=as['raw']+ao['tokens'][0x0][aQ(0xb7)],ao['tokens'][0x0][aQ(0xcd)][aQ(0x12c)](as)):ao[aQ(0xcd)]['unshift']({'type':'paragraph','raw':as['raw'],'text':as['raw'],'tokens':[as]}):ao['tokens'][aQ(0x12c)](as);}}else ao[aQ(0xf8)]&&(ao['task']=!0x1);if(!a4['loose']){let au=ao['tokens']['filter'](aw=>aw['type']==='space'),av=au['length']>0x0&&au[aQ(0xf2)](aw=>this[aQ(0xf7)]['other']['anyLine'][aQ(0xb9)](aw['raw']));a4['loose']=av;}}if(a4[aQ(0xe5)])for(let aw of a4['items']){aw['loose']=!0x0;for(let ax of aw[aQ(0xcd)])ax['type']===aQ(0xb7)&&(ax['type']='paragraph');}return a4;}}['html'](h){const aR=aD;let i=this['rules']['block']['html']['exec'](h);if(i){let l=ge(i[0x0]);return{'type':'html','block':!0x0,'raw':l,'pre':i[0x1]==='pre'||i[0x1]===aR(0xd6)||i[0x1]==='style','text':l};}}['def'](h){const aS=aD;let i=this[aS(0xf7)]['block']['def']['exec'](h);if(i){let l=i[0x1]['toLowerCase']()[aS(0xca)](this['rules']['other']['multipleSpaceGlobal'],'\x20'),o=i[0x2]?i[0x2]['replace'](this['rules']['other']['hrefBrackets'],'$1')['replace'](this['rules'][aS(0x112)]['anyPunctuation'],'$1'):'',p=i[0x3]?i[0x3]['substring'](0x1,i[0x3]['length']-0x1)['replace'](this['rules']['inline']['anyPunctuation'],'$1'):i[0x3];return{'type':'def','tag':l,'raw':T(i[0x0],'\x0a'),'href':o,'title':p};}}['table'](h){const aT=aD;var i;let p=this['rules']['block']['table']['exec'](h);if(!p||!this['rules']['other']['tableDelimiter']['test'](p[0x2]))return;let u=ue(p[0x1]),v=p[0x2][aT(0xca)](this['rules'][aT(0x121)][aT(0x13f)],'')['split']('|'),w=(i=p[0x3])!=null&&i['trim']()?p[0x3]['replace'](this[aT(0xf7)][aT(0x121)]['tableRowBlankLine'],'')['split']('\x0a'):[],x={'type':'table','raw':T(p[0x0],'\x0a'),'header':[],'align':[],'rows':[]};if(u['length']===v['length']){for(let C of v)this['rules'][aT(0x121)]['tableAlignRight']['test'](C)?x[aT(0xbd)]['push']('right'):this[aT(0xf7)]['other'][aT(0xba)]['test'](C)?x[aT(0xbd)]['push']('center'):this[aT(0xf7)]['other']['tableAlignLeft']['test'](C)?x['align']['push']('left'):x['align']['push'](null);for(let F=0x0;F<u['length'];F++)x['header']['push']({'text':u[F],'tokens':this['lexer']['inline'](u[F]),'header':!0x0,'align':x[aT(0xbd)][F]});for(let P of w)x['rows']['push'](ue(P,x['header']['length'])[aT(0xb5)]((X,Z)=>({'text':X,'tokens':this[aT(0xc7)][aT(0x112)](X),'header':!0x1,'align':x['align'][Z]})));return x;}}['lheading'](h){const aU=aD;let i=this[aU(0xf7)][aU(0xc9)]['lheading']['exec'](h);if(i){let l=i[0x1][aU(0x144)]();return{'type':'heading','raw':T(i[0x0],'\x0a'),'depth':i[0x2]['charAt'](0x0)==='='?0x1:0x2,'text':l,'tokens':this['lexer']['inline'](l)};}}['paragraph'](h){const aV=aD;let i=this[aV(0xf7)]['block']['paragraph']['exec'](h);if(i){let l=i[0x1][aV(0xee)](i[0x1]['length']-0x1)==='\x0a'?i[0x1][aV(0x150)](0x0,-0x1):i[0x1];return{'type':'paragraph','raw':i[0x0],'text':l,'tokens':this['lexer']['inline'](l)};}}['text'](h){const aW=aD;let i=this[aW(0xf7)]['block']['text'][aW(0x14b)](h);if(i)return{'type':'text','raw':i[0x0],'text':i[0x0],'tokens':this['lexer']['inline'](i[0x0])};}['escape'](h){const aX=aD;let i=this[aX(0xf7)]['inline']['escape']['exec'](h);if(i)return{'type':aX(0xe2),'raw':i[0x0],'text':i[0x1]};}['tag'](h){const aY=aD;let i=this['rules']['inline']['tag']['exec'](h);if(i)return!this['lexer']['state']['inLink']&&this['rules']['other']['startATag']['test'](i[0x0])?this['lexer']['state']['inLink']=!0x0:this['lexer']['state']['inLink']&&this['rules']['other'][aY(0xd0)]['test'](i[0x0])&&(this['lexer']['state'][aY(0xb2)]=!0x1),!this['lexer']['state'][aY(0x146)]&&this['rules']['other'][aY(0x10a)]['test'](i[0x0])?this['lexer'][aY(0xd8)]['inRawBlock']=!0x0:this['lexer']['state']['inRawBlock']&&this[aY(0xf7)][aY(0x121)]['endPreScriptTag']['test'](i[0x0])&&(this['lexer']['state'][aY(0x146)]=!0x1),{'type':aY(0xf4),'raw':i[0x0],'inLink':this['lexer'][aY(0xd8)][aY(0xb2)],'inRawBlock':this['lexer']['state'][aY(0x146)],'block':!0x1,'text':i[0x0]};}[aD(0x12a)](h){const aZ=aD;let i=this['rules']['inline']['link']['exec'](h);if(i){let o=i[0x2]['trim']();if(!this['options']['pedantic']&&this['rules']['other']['startAngleBracket']['test'](o)){if(!this['rules']['other']['endAngleBracket']['test'](o))return;let v=T(o['slice'](0x0,-0x1),'\x5c');if((o['length']-v['length'])%0x2===0x0)return;}else{let w=ft(i[0x2],'()');if(w===-0x2)return;if(w>-0x1){let x=(i[0x0]['indexOf']('!')===0x0?0x5:0x4)+i[0x1]['length']+w;i[0x2]=i[0x2]['substring'](0x0,w),i[0x0]=i[0x0]['substring'](0x0,x)['trim'](),i[0x3]='';}}let p=i[0x2],u='';if(this[aZ(0x125)]['pedantic']){let C=this['rules']['other']['pedanticHrefTitle']['exec'](p);C&&(p=C[0x1],u=C[0x3]);}else u=i[0x3]?i[0x3]['slice'](0x1,-0x1):'';return p=p[aZ(0x144)](),this[aZ(0xf7)]['other']['startAngleBracket']['test'](p)&&(this['options']['pedantic']&&!this['rules']['other'][aZ(0xde)]['test'](o)?p=p['slice'](0x1):p=p['slice'](0x1,-0x1)),ke(i,{'href':p&&p['replace'](this['rules']['inline'][aZ(0x126)],'$1'),'title':u&&u['replace'](this['rules'][aZ(0x112)]['anyPunctuation'],'$1')},i[0x0],this['lexer'],this['rules']);}}['reflink'](h,i){const b0=aD;let o;if((o=this['rules']['inline']['reflink'][b0(0x14b)](h))||(o=this['rules']['inline'][b0(0xf6)][b0(0x14b)](h))){let p=(o[0x2]||o[0x1])['replace'](this['rules']['other']['multipleSpaceGlobal'],'\x20'),u=i[p['toLowerCase']()];if(!u){let v=o[0x0]['charAt'](0x0);return{'type':b0(0xb7),'raw':v,'text':v};}return ke(o,u,o[0x0],this['lexer'],this['rules']);}}['emStrong'](p,v,x=''){const b1=aD;let C=this['rules'][b1(0x112)]['emStrongLDelim']['exec'](p);if(!(!C||!C[0x1]&&!C[0x2]&&!C[0x3]&&!C[0x4]||C[0x4]&&x['match'](this['rules']['other']['unicodeAlphaNumeric']))&&(!(C[0x1]||C[0x3])||!x||this[b1(0xf7)]['inline']['punctuation']['exec'](x))){let F=[...C[0x0]]['length']-0x1,P,X,Z=F,a0=0x0,a1=C[0x0][0x0]==='*'?this['rules']['inline'][b1(0xd2)]:this['rules'][b1(0x112)]['emStrongRDelimUnd'];for(a1['lastIndex']=0x0,v=v[b1(0x150)](-0x1*p['length']+F);(C=a1['exec'](v))!==null;){if(P=C[0x1]||C[0x2]||C[0x3]||C[0x4]||C[0x5]||C[0x6],!P)continue;if(X=[...P]['length'],C[0x3]||C[0x4]){Z+=X;continue;}else{if((C[0x5]||C[0x6])&&F%0x3&&!((F+X)%0x3)){a0+=X;continue;}}if(Z-=X,Z>0x0)continue;X=Math['min'](X,X+Z+a0);let a2=[...C[0x0]][0x0]['length'],a3=p['slice'](0x0,F+C['index']+a2+X);if(Math['min'](F,X)%0x2){let a5=a3['slice'](0x1,-0x1);return{'type':'em','raw':a3,'text':a5,'tokens':this['lexer']['inlineTokens'](a5)};}let a4=a3['slice'](0x2,-0x2);return{'type':'strong','raw':a3,'text':a4,'tokens':this['lexer'][b1(0x122)](a4)};}}}[aD(0xfa)](h){const b2=aD;let i=this['rules']['inline']['code'][b2(0x14b)](h);if(i){let l=i[0x2]['replace'](this['rules']['other']['newLineCharGlobal'],'\x20'),o=this[b2(0xf7)][b2(0x121)]['nonSpaceChar'][b2(0xb9)](l),p=this['rules']['other'][b2(0xdc)]['test'](l)&&this['rules']['other']['endingSpaceChar']['test'](l);return o&&p&&(l=l['substring'](0x1,l['length']-0x1)),{'type':'codespan','raw':i[0x0],'text':l};}}['br'](h){const b3=aD;let i=this['rules']['inline']['br'][b3(0x14b)](h);if(i)return{'type':'br','raw':i[0x0]};}['del'](p,v,w=''){const b4=aD;let x=this['rules'][b4(0x112)]['delLDelim']['exec'](p);if(x&&(!x[0x1]||!w||this['rules']['inline']['punctuation']['exec'](w))){let C=[...x[0x0]]['length']-0x1,F,P,X=C,Z=this['rules'][b4(0x112)]['delRDelim'];for(Z['lastIndex']=0x0,v=v['slice'](-0x1*p['length']+C);(x=Z['exec'](v))!==null;){if(F=x[0x1]||x[0x2]||x[0x3]||x[0x4]||x[0x5]||x[0x6],!F||(P=[...F]['length'],P!==C))continue;if(x[0x3]||x[0x4]){X+=P;continue;}if(X-=P,X>0x0)continue;P=Math['min'](P,P+X);let a0=[...x[0x0]][0x0]['length'],a1=p['slice'](0x0,C+x['index']+a0+P),a2=a1['slice'](C,-C);return{'type':'del','raw':a1,'text':a2,'tokens':this['lexer']['inlineTokens'](a2)};}}}['autolink'](h){const b5=aD;let i=this['rules']['inline']['autolink']['exec'](h);if(i){let l,n;return i[0x2]==='@'?(l=i[0x1],n='mailto:'+l):(l=i[0x1],n=l),{'type':b5(0x12a),'raw':i[0x0],'text':l,'href':n,'tokens':[{'type':'text','raw':l,'text':l}]};}}['url'](h){const b6=aD;var i,o;let p;if(p=this['rules'][b6(0x112)]['url']['exec'](h)){let u,v;if(p[0x2]==='@')u=p[0x0],v='mailto:'+u;else{let w;do w=p[0x0],p[0x0]=(o=(i=this['rules']['inline']['_backpedal'][b6(0x14b)](p[0x0]))==null?void 0x0:i[0x0])!=null?o:'';while(w!==p[0x0]);u=p[0x0],p[0x1]===b6(0x108)?v='http://'+p[0x0]:v=p[0x0];}return{'type':'link','raw':p[0x0],'text':u,'href':v,'tokens':[{'type':'text','raw':u,'text':u}]};}}['inlineText'](h){const b7=aD;let i=this['rules']['inline'][b7(0xb7)][b7(0x14b)](h);if(i){let l=this['lexer'][b7(0xd8)][b7(0x146)];return{'type':'text','raw':i[0x0],'text':i[0x0],'escaped':l};}}},$=class V{constructor(h){const b8=aD;f(this,'tokens'),f(this,b8(0x125)),f(this,'state'),f(this,'inlineQueue'),f(this,'tokenizer'),(this['tokens']=[],this[b8(0xcd)][b8(0xe6)]=Object['create'](null),this['options']=h||A,this[b8(0x125)][b8(0x137)]=this['options']['tokenizer']||new j(),this[b8(0x137)]=this['options']['tokenizer'],this['tokenizer']['options']=this['options'],this[b8(0x137)]['lexer']=this,this['inlineQueue']=[],this['state']={'inLink':!0x1,'inRawBlock':!0x1,'top':!0x0});let i={'other':m,'block':D['normal'],'inline':E['normal']};this['options']['pedantic']?(i['block']=D['pedantic'],i['inline']=E['pedantic']):this['options']['gfm']&&(i['block']=D['gfm'],this['options']['breaks']?i[b8(0x112)]=E[b8(0x110)]:i['inline']=E['gfm']),this['tokenizer']['rules']=i;}static get[aD(0xf7)](){return{'block':D,'inline':E};}static['lex'](h,i){return new V(i)['lex'](h);}static['lexInline'](h,i){return new V(i)['inlineTokens'](h);}['lex'](h){const b9=aD;h=h['replace'](m['carriageReturn'],'\x0a'),this['blockTokens'](h,this[b9(0xcd)]);for(let i=0x0;i<this['inlineQueue']['length'];i++){let l=this['inlineQueue'][i];this['inlineTokens'](l['src'],l['tokens']);}return this['inlineQueue']=[],this[b9(0xcd)];}['blockTokens'](p,r=[],v=!0x1){const ba=aD;var w,x,C;this[ba(0x137)]['lexer']=this,this[ba(0x125)]['pedantic']&&(p=p['replace'](m['tabCharGlobal'],'\x20\x20\x20\x20')['replace'](m['spaceLine'],''));let F=0x1/0x0;for(;p;){if(p['length']<F)F=p['length'];else{this['infiniteLoopError'](p['charCodeAt'](0x0));break;}let P;if((x=(w=this[ba(0x125)]['extensions'])==null?void 0x0:w['block'])!=null&&x['some'](Z=>(P=Z['call']({'lexer':this},p,r))?(p=p['substring'](P['raw']['length']),r['push'](P),!0x0):!0x1))continue;if(P=this['tokenizer']['space'](p)){p=p['substring'](P['raw']['length']);let Z=r['at'](-0x1);P[ba(0x139)]['length']===0x1&&Z!==void 0x0?Z[ba(0x139)]+='\x0a':r['push'](P);continue;}if(P=this[ba(0x137)][ba(0x11d)](p)){p=p['substring'](P[ba(0x139)]['length']);let a0=r['at'](-0x1);(a0==null?void 0x0:a0[ba(0x13e)])==='paragraph'||(a0==null?void 0x0:a0['type'])==='text'?(a0[ba(0x139)]+=(a0['raw']['endsWith']('\x0a')?'':'\x0a')+P['raw'],a0[ba(0xb7)]+='\x0a'+P['text'],this['inlineQueue']['at'](-0x1)[ba(0xd7)]=a0[ba(0xb7)]):r['push'](P);continue;}if(P=this['tokenizer']['fences'](p)){p=p[ba(0x10c)](P['raw']['length']),r['push'](P);continue;}if(P=this['tokenizer']['heading'](p)){p=p['substring'](P[ba(0x139)]['length']),r[ba(0xfb)](P);continue;}if(P=this['tokenizer']['hr'](p)){p=p['substring'](P['raw']['length']),r['push'](P);continue;}if(P=this['tokenizer']['blockquote'](p)){p=p['substring'](P['raw']['length']),r['push'](P);continue;}if(P=this['tokenizer']['list'](p)){p=p['substring'](P[ba(0x139)][ba(0x138)]),r[ba(0xfb)](P);continue;}if(P=this[ba(0x137)]['html'](p)){p=p['substring'](P['raw']['length']),r['push'](P);continue;}if(P=this[ba(0x137)]['def'](p)){p=p['substring'](P[ba(0x139)]['length']);let a1=r['at'](-0x1);(a1==null?void 0x0:a1['type'])==='paragraph'||(a1==null?void 0x0:a1[ba(0x13e)])==='text'?(a1['raw']+=(a1['raw']['endsWith']('\x0a')?'':'\x0a')+P['raw'],a1['text']+='\x0a'+P[ba(0x139)],this['inlineQueue']['at'](-0x1)['src']=a1['text']):this['tokens']['links'][P[ba(0x141)]]||(this['tokens'][ba(0xe6)][P[ba(0x141)]]={'href':P[ba(0xb4)],'title':P['title']},r['push'](P));continue;}if(P=this['tokenizer']['table'](p)){p=p[ba(0x10c)](P['raw']['length']),r['push'](P);continue;}if(P=this['tokenizer']['lheading'](p)){p=p['substring'](P['raw']['length']),r['push'](P);continue;}let X=p;if((C=this['options']['extensions'])!=null&&C['startBlock']){let a2=0x1/0x0,a3=p['slice'](0x1),a4;this['options']['extensions']['startBlock'][ba(0x130)](a5=>{const bb=ba;a4=a5['call']({'lexer':this},a3),typeof a4=='number'&&a4>=0x0&&(a2=Math[bb(0x14f)](a2,a4));}),a2<0x1/0x0&&a2>=0x0&&(X=p['substring'](0x0,a2+0x1));}if(this[ba(0xd8)]['top']&&(P=this['tokenizer']['paragraph'](X))){let a5=r['at'](-0x1);v&&(a5==null?void 0x0:a5['type'])==='paragraph'?(a5['raw']+=(a5['raw']['endsWith']('\x0a')?'':'\x0a')+P['raw'],a5['text']+='\x0a'+P['text'],this['inlineQueue'][ba(0xdd)](),this[ba(0xff)]['at'](-0x1)['src']=a5[ba(0xb7)]):r['push'](P),v=X['length']!==p['length'],p=p[ba(0x10c)](P['raw']['length']);continue;}if(P=this['tokenizer']['text'](p)){p=p['substring'](P['raw'][ba(0x138)]);let a6=r['at'](-0x1);(a6==null?void 0x0:a6['type'])==='text'?(a6['raw']+=(a6[ba(0x139)]['endsWith']('\x0a')?'':'\x0a')+P['raw'],a6['text']+='\x0a'+P[ba(0xb7)],this['inlineQueue'][ba(0xdd)](),this['inlineQueue']['at'](-0x1)['src']=a6['text']):r[ba(0xfb)](P);continue;}if(p){this['infiniteLoopError'](p['charCodeAt'](0x0));break;}}return this['state']['top']=!0x0,r;}['inline'](h,i=[]){const bc=aD;return this['inlineQueue'][bc(0xfb)]({'src':h,'tokens':i}),i;}[aD(0x122)](r,C=[]){const bd=aD;var F,X,a0,a1,a2,a3;this['tokenizer'][bd(0xc7)]=this;let a4=r,a5=null;if(this['tokens']['links']){let aa=Object['keys'](this[bd(0xcd)][bd(0xe6)]);if(aa['length']>0x0){for(;(a5=this['tokenizer']['rules'][bd(0x112)][bd(0xd5)][bd(0x14b)](a4))!==null;)aa['includes'](a5[0x0]['slice'](a5[0x0]['lastIndexOf']('[')+0x1,-0x1))&&(a4=a4[bd(0x150)](0x0,a5[bd(0xc8)])+'['+'a'['repeat'](a5[0x0]['length']-0x2)+']'+a4['slice'](this['tokenizer']['rules']['inline'][bd(0xd5)]['lastIndex']));}}for(;(a5=this['tokenizer'][bd(0xf7)]['inline']['anyPunctuation']['exec'](a4))!==null;)a4=a4['slice'](0x0,a5['index'])+'++'+a4['slice'](this['tokenizer'][bd(0xf7)]['inline']['anyPunctuation']['lastIndex']);let a6;for(;(a5=this['tokenizer']['rules']['inline']['blockSkip']['exec'](a4))!==null;)a6=a5[0x2]?a5[0x2]['length']:0x0,a4=a4['slice'](0x0,a5[bd(0xc8)]+a6)+'['+'a'['repeat'](a5[0x0][bd(0x138)]-a6-0x2)+']'+a4['slice'](this['tokenizer']['rules'][bd(0x112)]['blockSkip']['lastIndex']);a4=(a0=(X=(F=this['options']['hooks'])==null?void 0x0:F[bd(0xf9)])==null?void 0x0:X['call']({'lexer':this},a4))!=null?a0:a4;let a7=!0x1,a8='',a9=0x1/0x0;for(;r;){if(r['length']<a9)a9=r['length'];else{this['infiniteLoopError'](r[bd(0xe8)](0x0));break;}a7||(a8=''),a7=!0x1;let ab;if((a2=(a1=this[bd(0x125)][bd(0xf5)])==null?void 0x0:a1['inline'])!=null&&a2['some'](ad=>(ab=ad['call']({'lexer':this},r,C))?(r=r['substring'](ab[bd(0x139)]['length']),C['push'](ab),!0x0):!0x1))continue;if(ab=this['tokenizer']['escape'](r)){r=r[bd(0x10c)](ab['raw']['length']),C['push'](ab);continue;}if(ab=this['tokenizer']['tag'](r)){r=r['substring'](ab['raw']['length']),C['push'](ab);continue;}if(ab=this['tokenizer'][bd(0x12a)](r)){r=r['substring'](ab['raw']['length']),C['push'](ab);continue;}if(ab=this['tokenizer']['reflink'](r,this['tokens']['links'])){r=r[bd(0x10c)](ab[bd(0x139)]['length']);let ad=C['at'](-0x1);ab['type']==='text'&&(ad==null?void 0x0:ad['type'])==='text'?(ad['raw']+=ab['raw'],ad['text']+=ab['text']):C['push'](ab);continue;}if(ab=this['tokenizer']['emStrong'](r,a4,a8)){r=r['substring'](ab['raw']['length']),C['push'](ab);continue;}if(ab=this['tokenizer']['codespan'](r)){r=r[bd(0x10c)](ab['raw']['length']),C['push'](ab);continue;}if(ab=this['tokenizer']['br'](r)){r=r[bd(0x10c)](ab['raw'][bd(0x138)]),C['push'](ab);continue;}if(ab=this['tokenizer']['del'](r,a4,a8)){r=r[bd(0x10c)](ab['raw']['length']),C['push'](ab);continue;}if(ab=this['tokenizer']['autolink'](r)){r=r['substring'](ab[bd(0x139)]['length']),C['push'](ab);continue;}if(!this['state']['inLink']&&(ab=this['tokenizer']['url'](r))){r=r['substring'](ab['raw']['length']),C['push'](ab);continue;}let ac=r;if((a3=this['options']['extensions'])!=null&&a3['startInline']){let af=0x1/0x0,ag=r['slice'](0x1),ah;this['options']['extensions']['startInline']['forEach'](ai=>{const bf=bd;ah=ai['call']({'lexer':this},ag),typeof ah=='number'&&ah>=0x0&&(af=Math[bf(0x14f)](af,ah));}),af<0x1/0x0&&af>=0x0&&(ac=r['substring'](0x0,af+0x1));}if(ab=this['tokenizer'][bd(0xe7)](ac)){r=r['substring'](ab['raw']['length']),ab['raw'][bd(0x150)](-0x1)!=='_'&&(a8=ab[bd(0x139)]['slice'](-0x1)),a7=!0x0;let ai=C['at'](-0x1);(ai==null?void 0x0:ai[bd(0x13e)])===bd(0xb7)?(ai['raw']+=ab['raw'],ai['text']+=ab['text']):C[bd(0xfb)](ab);continue;}if(r){this['infiniteLoopError'](r['charCodeAt'](0x0));break;}}return C;}['infiniteLoopError'](h){let i='Infinite\x20loop\x20on\x20byte:\x20'+h;if(this['options']['silent'])console['error'](i);else throw new Error(i);}},N=class{constructor(h){f(this,'options'),f(this,'parser'),this['options']=h||A;}[aD(0x132)](h){return'';}['code']({text:h,lang:i,escaped:o}){var p;let u=(p=(i||'')['match'](m['notSpaceStart']))==null?void 0x0:p[0x0],v=h['replace'](m['endingNewline'],'')+'\x0a';return u?'<pre><code\x20class=\x22language-'+S(u)+'\x22>'+(o?v:S(v,!0x0))+'</code></pre>\x0a':'<pre><code>'+(o?v:S(v,!0x0))+'</code></pre>\x0a';}['blockquote']({tokens:h}){const bg=aD;return bg(0x105)+this[bg(0x10d)]['parse'](h)+'</blockquote>\x0a';}['html']({text:h}){return h;}['def'](h){return'';}['heading']({tokens:h,depth:i}){return'<h'+i+'>'+this['parser']['parseInline'](h)+'</h'+i+'>\x0a';}['hr'](h){return'<hr>\x0a';}['list'](h){const bh=aD;let i=h['ordered'],p=h['start'],u='';for(let x=0x0;x<h['items']['length'];x++){let C=h[bh(0x127)][x];u+=this['listitem'](C);}let v=i?'ol':'ul',w=i&&p!==0x1?'\x20start=\x22'+p+'\x22':'';return'<'+v+w+'>\x0a'+u+'</'+v+'>\x0a';}['listitem'](h){return'<li>'+this['parser']['parse'](h['tokens'])+'</li>\x0a';}['checkbox']({checked:h}){const bi=aD;return'<input\x20'+(h?bi(0x10b):'')+'disabled=\x22\x22\x20type=\x22checkbox\x22>\x20';}['paragraph']({tokens:h}){const bj=aD;return'<p>'+this['parser'][bj(0x14e)](h)+'</p>\x0a';}['table'](h){const bk=aD;let i='',o='';for(let u=0x0;u<h['header']['length'];u++)o+=this['tablecell'](h['header'][u]);i+=this['tablerow']({'text':o});let p='';for(let v=0x0;v<h[bk(0x129)][bk(0x138)];v++){let w=h['rows'][v];o='';for(let x=0x0;x<w['length'];x++)o+=this['tablecell'](w[x]);p+=this['tablerow']({'text':o});}return p&&(p=bk(0x12d)+p+bk(0x140)),'<table>\x0a<thead>\x0a'+i+'</thead>\x0a'+p+'</table>\x0a';}['tablerow']({text:h}){return'<tr>\x0a'+h+'</tr>\x0a';}['tablecell'](h){const bl=aD;let i=this['parser']['parseInline'](h['tokens']),l=h['header']?'th':'td';return(h['align']?'<'+l+'\x20align=\x22'+h[bl(0xbd)]+'\x22>':'<'+l+'>')+i+('</'+l+'>\x0a');}['strong']({tokens:h}){return'<strong>'+this['parser']['parseInline'](h)+'</strong>';}['em']({tokens:h}){const bm=aD;return'<em>'+this['parser']['parseInline'](h)+bm(0x135);}[aD(0xfa)]({text:h}){return'<code>'+S(h,!0x0)+'</code>';}['br'](h){return'<br>';}['del']({tokens:h}){const bn=aD;return bn(0xcc)+this['parser'][bn(0x14e)](h)+'</del>';}['link']({href:h,title:i,tokens:o}){const bo=aD;let p=this[bo(0x10d)]['parseInline'](o),u=pe(h);if(u===null)return p;h=u;let v=bo(0x118)+h+'\x22';return i&&(v+='\x20title=\x22'+S(i)+'\x22'),v+='>'+p+'</a>',v;}['image']({href:h,title:i,text:o,tokens:p}){const bp=aD;p&&(o=this['parser'][bp(0x14e)](p,this['parser']['textRenderer']));let u=pe(h);if(u===null)return S(o);h=u;let v='<img\x20src=\x22'+h+'\x22\x20alt=\x22'+S(o)+'\x22';return i&&(v+='\x20title=\x22'+S(i)+'\x22'),v+='>',v;}['text'](h){const bq=aD;return'tokens'in h&&h['tokens']?this['parser']['parseInline'](h[bq(0xcd)]):'escaped'in h&&h[bq(0x13c)]?h[bq(0xb7)]:S(h[bq(0xb7)]);}},le=class{[aD(0xf3)]({text:h}){return h;}['em']({text:h}){return h;}[aD(0xfa)]({text:h}){return h;}['del']({text:h}){return h;}[aD(0xf4)]({text:h}){return h;}[aD(0xb7)]({text:h}){return h;}['link']({text:h}){return''+h;}['image']({text:h}){return''+h;}['br'](){return'';}[aD(0x147)]({raw:h}){return h;}},R=class J{constructor(h){const br=aD;f(this,'options'),f(this,br(0x11f)),f(this,'textRenderer'),(this['options']=h||A,this['options']['renderer']=this['options']['renderer']||new N(),this['renderer']=this['options'][br(0x11f)],this['renderer']['options']=this[br(0x125)],this['renderer'][br(0x10d)]=this,this['textRenderer']=new le());}static['parse'](h,i){return new J(i)['parse'](h);}static['parseInline'](h,i){return new J(i)['parseInline'](h);}[aD(0xbe)](p){const bs=aD;var r,u;this['renderer']['parser']=this;let v='';for(let w=0x0;w<p['length'];w++){let x=p[w];if((u=(r=this['options']['extensions'])==null?void 0x0:r['renderers'])!=null&&u[x['type']]){let F=x,P=this['options']['extensions']['renderers'][F['type']]['call']({'parser':this},F);if(P!==!0x1||!['space','hr','heading','code','table','blockquote',bs(0x152),'html','def','paragraph','text']['includes'](F['type'])){v+=P||'';continue;}}let C=x;switch(C['type']){case'space':{v+=this['renderer']['space'](C);break;}case'hr':{v+=this['renderer']['hr'](C);break;}case bs(0x142):{v+=this['renderer']['heading'](C);break;}case'code':{v+=this['renderer']['code'](C);break;}case'table':{v+=this[bs(0x11f)][bs(0x10e)](C);break;}case'blockquote':{v+=this['renderer']['blockquote'](C);break;}case'list':{v+=this['renderer']['list'](C);break;}case'checkbox':{v+=this[bs(0x11f)]['checkbox'](C);break;}case'html':{v+=this['renderer']['html'](C);break;}case'def':{v+=this['renderer']['def'](C);break;}case'paragraph':{v+=this['renderer']['paragraph'](C);break;}case'text':{v+=this['renderer']['text'](C);break;}default:{let X=bs(0xb1)+C['type']+'\x22\x20type\x20was\x20not\x20found.';if(this[bs(0x125)]['silent'])return console['error'](X),'';throw new Error(X);}}}return v;}[aD(0x14e)](p,r=this['renderer']){const bu=aD;var u,v;this['renderer']['parser']=this;let w='';for(let x=0x0;x<p['length'];x++){let C=p[x];if((v=(u=this['options'][bu(0xf5)])==null?void 0x0:u['renderers'])!=null&&v[C['type']]){let P=this['options']['extensions'][bu(0x14a)][C[bu(0x13e)]]['call']({'parser':this},C);if(P!==!0x1||!['escape',bu(0xf4),'link','image','strong','em','codespan','br','del','text']['includes'](C[bu(0x13e)])){w+=P||'';continue;}}let F=C;switch(F['type']){case'escape':{w+=r['text'](F);break;}case'html':{w+=r['html'](F);break;}case'link':{w+=r['link'](F);break;}case'image':{w+=r['image'](F);break;}case bu(0x147):{w+=r['checkbox'](F);break;}case bu(0xf3):{w+=r['strong'](F);break;}case'em':{w+=r['em'](F);break;}case'codespan':{w+=r['codespan'](F);break;}case'br':{w+=r['br'](F);break;}case bu(0x12b):{w+=r['del'](F);break;}case bu(0xb7):{w+=r['text'](F);break;}default:{let X='Token\x20with\x20\x22'+F['type']+'\x22\x20type\x20was\x20not\x20found.';if(this[bu(0x125)]['silent'])return console['error'](X),'';throw new Error(X);}}}return w;}},Q,B=(Q=class{constructor(h){f(this,'options'),f(this,'block'),this['options']=h||A;}['preprocess'](h){return h;}['postprocess'](h){return h;}['processAllTokens'](h){return h;}['emStrongMask'](h){return h;}[aD(0x12f)](h=this['block']){return h?$['lex']:$['lexInline'];}['provideParser'](h=this['block']){return h?R['parse']:R['parseInline'];}},f(Q,'passThroughHooks',new Set([aD(0xbf),aD(0x100),'processAllTokens',aD(0xf9)])),f(Q,'passThroughHooksRespectAsync',new Set(['preprocess','postprocess','processAllTokens'])),Q),wt=class{constructor(...h){const bv=aD;f(this,'defaults',K()),f(this,bv(0x125),this['setOptions']),f(this,'parse',this['parseMarkdown'](!0x0)),f(this,'parseInline',this['parseMarkdown'](!0x1)),f(this,'Parser',R),f(this,'Renderer',N),f(this,'TextRenderer',le),f(this,'Lexer',$),f(this,bv(0x11b),j),f(this,bv(0xb6),B),this['use'](...h);}['walkTokens'](h,p){const bw=aD;var u,v;let w=[];for(let x of h)switch(w=w['concat'](p['call'](this,x)),x['type']){case'table':{let C=x;for(let F of C['header'])w=w['concat'](this['walkTokens'](F['tokens'],p));for(let P of C[bw(0x129)])for(let X of P)w=w['concat'](this['walkTokens'](X['tokens'],p));break;}case'list':{let Z=x;w=w['concat'](this[bw(0x131)](Z['items'],p));break;}default:{let a0=x;(v=(u=this['defaults'][bw(0xf5)])==null?void 0x0:u[bw(0x103)])!=null&&v[a0['type']]?this['defaults']['extensions']['childTokens'][a0['type']]['forEach'](a1=>{const bx=bw;let a2=a0[a1][bx(0xb3)](0x1/0x0);w=w[bx(0x133)](this['walkTokens'](a2,p));}):a0['tokens']&&(w=w['concat'](this['walkTokens'](a0['tokens'],p)));}}return w;}['use'](...h){let i=this['defaults']['extensions']||{'renderers':{},'childTokens':{}};return h['forEach'](p=>{const bz=b;let u=y({},p);if(u['async']=this['defaults']['async']||u['async']||!0x1,p['extensions']&&(p['extensions']['forEach'](v=>{const by=b;if(!v['name'])throw new Error('extension\x20name\x20required');if('renderer'in v){let w=i['renderers'][v[by(0x10f)]];w?i['renderers'][v['name']]=function(...x){let C=v['renderer']['apply'](this,x);return C===!0x1&&(C=w['apply'](this,x)),C;}:i['renderers'][v['name']]=v['renderer'];}if('tokenizer'in v){if(!v['level']||v['level']!=='block'&&v[by(0xe1)]!=='inline')throw new Error('extension\x20level\x20must\x20be\x20\x27block\x27\x20or\x20\x27inline\x27');let x=i[v['level']];x?x['unshift'](v['tokenizer']):i[v['level']]=[v['tokenizer']],v['start']&&(v['level']==='block'?i[by(0xb8)]?i[by(0xb8)]['push'](v['start']):i['startBlock']=[v['start']]:v['level']==='inline'&&(i[by(0xd1)]?i['startInline']['push'](v['start']):i['startInline']=[v['start']]));}'childTokens'in v&&v[by(0x103)]&&(i['childTokens'][v['name']]=v['childTokens']);}),u[bz(0xf5)]=i),p['renderer']){let v=this['defaults']['renderer']||new N(this['defaults']);for(let w in p['renderer']){if(!(w in v))throw new Error('renderer\x20\x27'+w+'\x27\x20does\x20not\x20exist');if(['options','parser']['includes'](w))continue;let x=w,C=p[bz(0x11f)][x],F=v[x];v[x]=(...P)=>{let X=C['apply'](v,P);return X===!0x1&&(X=F['apply'](v,P)),X||'';};}u['renderer']=v;}if(p[bz(0x137)]){let P=this[bz(0x153)]['tokenizer']||new j(this[bz(0x153)]);for(let X in p['tokenizer']){if(!(X in P))throw new Error(bz(0xec)+X+'\x27\x20does\x20not\x20exist');if(['options','rules','lexer']['includes'](X))continue;let Z=X,a0=p[bz(0x137)][Z],a1=P[Z];P[Z]=(...a2)=>{const bA=bz;let a3=a0[bA(0xc3)](P,a2);return a3===!0x1&&(a3=a1['apply'](P,a2)),a3;};}u['tokenizer']=P;}if(p['hooks']){let a2=this['defaults'][bz(0x136)]||new B();for(let a3 in p['hooks']){if(!(a3 in a2))throw new Error('hook\x20\x27'+a3+'\x27\x20does\x20not\x20exist');if(['options','block']['includes'](a3))continue;let a4=a3,a5=p['hooks'][a4],a6=a2[a4];B[bz(0xef)][bz(0xed)](a3)?a2[a4]=a7=>{if(this['defaults']['async']&&B['passThroughHooksRespectAsync']['has'](a3))return((()=>M(this,null,function*(){let a9=yield a5['call'](a2,a7);return a6['call'](a2,a9);}))());let a8=a5['call'](a2,a7);return a6['call'](a2,a8);}:a2[a4]=(...a7)=>{const bB=bz;if(this['defaults'][bB(0xda)])return((()=>M(this,null,function*(){let a9=yield a5['apply'](a2,a7);return a9===!0x1&&(a9=yield a6['apply'](a2,a7)),a9;}))());let a8=a5[bB(0xc3)](a2,a7);return a8===!0x1&&(a8=a6['apply'](a2,a7)),a8;};}u[bz(0x136)]=a2;}if(p['walkTokens']){let a7=this['defaults']['walkTokens'],a8=p['walkTokens'];u['walkTokens']=function(a9){const bC=bz;let aa=[];return aa['push'](a8['call'](this,a9)),a7&&(aa=aa[bC(0x133)](a7['call'](this,a9))),aa;};}this['defaults']=y(y({},this['defaults']),u);}),this;}['setOptions'](h){return this['defaults']=y(y({},this['defaults']),h),this;}[aD(0xc7)](h,i){const bD=aD;return $[bD(0xe3)](h,i!=null?i:this['defaults']);}['parser'](h,i){return R['parse'](h,i!=null?i:this['defaults']);}['parseMarkdown'](h){return(i,p)=>{const bE=b;let u=y({},p),v=y(y({},this[bE(0x153)]),u),w=this['onError'](!!v['silent'],!!v[bE(0xda)]);if(this['defaults']['async']===!0x0&&u['async']===!0x1)return w(new Error('marked():\x20The\x20async\x20option\x20was\x20set\x20to\x20true\x20by\x20an\x20extension.\x20Remove\x20async:\x20false\x20from\x20the\x20parse\x20options\x20object\x20to\x20return\x20a\x20Promise.'));if(typeof i>'u'||i===null)return w(new Error('marked():\x20input\x20parameter\x20is\x20undefined\x20or\x20null'));if(typeof i!=bE(0x14d))return w(new Error('marked():\x20input\x20parameter\x20is\x20of\x20type\x20'+Object[bE(0x107)]['toString'][bE(0xea)](i)+',\x20string\x20expected'));if(v['hooks']&&(v[bE(0x136)]['options']=v,v['hooks']['block']=h),v[bE(0xda)])return(()=>M(this,null,function*(){const bF=bE;let x=v['hooks']?yield v[bF(0x136)][bF(0xbf)](i):i,C=yield(v['hooks']?yield v['hooks']['provideLexer'](h):h?$['lex']:$['lexInline'])(x,v),F=v['hooks']?yield v['hooks']['processAllTokens'](C):C;v['walkTokens']&&(yield Promise['all'](this['walkTokens'](F,v[bF(0x131)])));let P=yield(v['hooks']?yield v['hooks']['provideParser'](h):h?R['parse']:R['parseInline'])(F,v);return v['hooks']?yield v['hooks']['postprocess'](P):P;}))()['catch'](w);try{v['hooks']&&(i=v['hooks']['preprocess'](i));let x=(v['hooks']?v['hooks'][bE(0x12f)](h):h?$['lex']:$['lexInline'])(i,v);v['hooks']&&(x=v['hooks'][bE(0x123)](x)),v['walkTokens']&&this[bE(0x131)](x,v['walkTokens']);let C=(v['hooks']?v['hooks']['provideParser'](h):h?R[bE(0xbe)]:R['parseInline'])(x,v);return v[bE(0x136)]&&(C=v[bE(0x136)]['postprocess'](C)),C;}catch(F){return w(F);}};}['onError'](h,i){return l=>{const bG=b;if(l['message']+='\x0aPlease\x20report\x20this\x20to\x20https://github.com/markedjs/marked.',h){let n='<p>An\x20error\x20occurred:</p><pre>'+S(l['message']+'',!0x0)+'</pre>';return i?Promise[bG(0x124)](n):n;}if(i)return Promise['reject'](l);throw l;};}},z=new wt();function a(){const bJ=['10936bXeleA','startPreScriptTag','checked=\x22\x22\x20','substring','parser','table','name','breaks','712854MLJtGM','inline','setOptions','3432695xgDowT','_self','5GTuJvF','includes','<a\x20href=\x22','nonSpaceChar','listReplaceNesting','Tokenizer','4887jbYPkW','code','&gt;','renderer','listItemRegex','other','inlineTokens','processAllTokens','resolve','options','anyPunctuation','items','(?<=1)(?<!1)','rows','link','del','unshift','<tbody>','3cPxOBs','provideLexer','forEach','walkTokens','space','concat','15183070WMcLrL','</em>','hooks','tokenizer','length','raw','|tag','5892ZTpUuM','escaped','headingBeginRegex','type','tableAlignChars','</tbody>','tag','heading','caret','trim','listReplaceTask','inRawBlock','checkbox','indented','listIsTask','renderers','exec','blockquote','string','parseInline','min','slice','(?<!`)()','list','defaults','Token\x20with\x20\x22','inLink','flat','href','map','Hooks','text','startBlock','test','tableAlignCenter','\x20\x20\x20\x20','search','align','parse','preprocess','split','value','attribute','apply','endingHash','\x5c[(?:[^\x5c[\x5c]`]|(?<a>`+)[^`]+\x5ck<a>(?!`))*?\x5c]\x5c((?:\x5c\x5c[\x5cs\x5cS]|[^\x5c\x5c\x5c(\x5c)]|\x5c((?:\x5c\x5c[\x5cs\x5cS]|[^\x5c\x5c\x5c(\x5c)])*\x5c))*\x5c)','paragraph','lexer','index','block','replace','use','<del>','tokens','endingSpaceChar','fences','endATag','startInline','emStrongRDelimAst','join','(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\x5cb)\x5cw+(?!:|[^\x5cw\x5cs@]*@)\x5cb','reflinkSearch','script','src','state','TextRenderer','async','7111256oxIosc','startingSpaceChar','pop','endAngleBracket','534PFryCn','61160AEjWXt','level','escape','lex','gfm','loose','links','inlineText','charCodeAt','checked','call','percentDecode','tokenizer\x20\x27','has','charAt','passThroughHooks','\x20{0,3}>','\x20{0,3}(?:`{3,}(?=[^`\x5cn]*\x5cn)|~{3,})[^\x5cn]*\x5cn','some','strong','html','extensions','nolink','rules','task','emStrongMask','codespan','push','&quot;','31115VCGIrR','email','inlineQueue','postprocess','^(\x20{0,3}','comment','childTokens','address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul','<blockquote>\x0a','getRegex','prototype','www.'];a=function(){return bJ;};return a();}function d(h,i){return z['parse'](h,i);}d['options']=d['setOptions']=function(h){return z['setOptions'](h),d['defaults']=z['defaults'],de(d['defaults']),d;},d['getDefaults']=K,d['defaults']=A,d[aD(0xcb)]=function(...h){const bH=aD;return z['use'](...h),d['defaults']=z['defaults'],de(d[bH(0x153)]),d;},d['walkTokens']=function(h,i){return z['walkTokens'](h,i);},d['parseInline']=z[aD(0x14e)],d['Parser']=R,d[aD(0x10d)]=R['parse'],d['Renderer']=N,d[aD(0xd9)]=le,d['Lexer']=$,d['lexer']=$['lex'],d[aD(0x11b)]=j,d['Hooks']=B,d['parse']=d,d['options'],d[aD(0x113)],d['use'],d[aD(0x131)],d['parseInline'],R['parse'],$['lex'];const mt=c({'__name':'MarkdownViewer','props':{'data':null},'setup'(h){const i=h,l=e(()=>d(i['data']));return{'__sfc':!0x0,'props':i,'html':l};}});var yt=function(){const bI=aD;var h=this,i=h[bI(0x115)]['_c'],l=h['_self']['_setupProxy'];return i('div',{'staticClass':'markdown-body','domProps':{'innerHTML':h['_s'](l['html'])}});},$t=[],Rt=g(mt,yt,$t,!0x1,null,'e0bd8a5a',null,null);const zt=Rt['exports'];export{zt as default};