@gmb/bitmark-parser-generator 5.30.0 → 5.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/browser/cjs/index.cjs +409 -630
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/esm/index.js +409 -630
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +408 -627
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +409 -630
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +409 -630
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/main.js
CHANGED
|
@@ -13861,7 +13861,7 @@ var instance2 = new Config();
|
|
|
13861
13861
|
// src/generated/package_info.ts
|
|
13862
13862
|
var PACKAGE_INFO = {
|
|
13863
13863
|
"name": "@gmb/bitmark-parser-generator",
|
|
13864
|
-
"version": "5.
|
|
13864
|
+
"version": "5.31.0",
|
|
13865
13865
|
"license": "ISC"};
|
|
13866
13866
|
var Environment = {
|
|
13867
13867
|
unknown: "",
|
|
@@ -16828,26 +16828,26 @@ function peg$parse(input, options) {
|
|
|
16828
16828
|
bitmarkMinusMinusString: peg$parsebitmarkMinusMinusString
|
|
16829
16829
|
};
|
|
16830
16830
|
let peg$startRuleFunction = peg$parseversion;
|
|
16831
|
-
const peg$c0 = "
|
|
16832
|
-
const peg$c1 = "
|
|
16833
|
-
const peg$c2 = "
|
|
16834
|
-
const peg$c3 = "
|
|
16835
|
-
const peg$c4 = "
|
|
16836
|
-
const peg$c5 = "
|
|
16837
|
-
const peg$c6 = "
|
|
16838
|
-
const peg$c7 = "bitmark
|
|
16839
|
-
const peg$c8 = "
|
|
16840
|
-
const peg$c9 = "
|
|
16841
|
-
const peg$c10 = "\
|
|
16842
|
-
const peg$c11 = "\
|
|
16843
|
-
const peg$c12 = "
|
|
16844
|
-
const peg$c13 = " ";
|
|
16845
|
-
const peg$c14 = "
|
|
16846
|
-
const peg$c15 = "
|
|
16847
|
-
const peg$c16 = "\
|
|
16848
|
-
const peg$c17 = "\
|
|
16849
|
-
const peg$c18 = "\u2022
|
|
16850
|
-
const peg$c19 = "
|
|
16831
|
+
const peg$c0 = "|";
|
|
16832
|
+
const peg$c1 = "### ";
|
|
16833
|
+
const peg$c2 = "## ";
|
|
16834
|
+
const peg$c3 = "# ";
|
|
16835
|
+
const peg$c4 = "code";
|
|
16836
|
+
const peg$c5 = ":";
|
|
16837
|
+
const peg$c6 = "bitmark++";
|
|
16838
|
+
const peg$c7 = "bitmark--";
|
|
16839
|
+
const peg$c8 = "JavaScript";
|
|
16840
|
+
const peg$c9 = "\u2022 ";
|
|
16841
|
+
const peg$c10 = "\u2022_ ";
|
|
16842
|
+
const peg$c11 = "\u2022";
|
|
16843
|
+
const peg$c12 = " ";
|
|
16844
|
+
const peg$c13 = "I ";
|
|
16845
|
+
const peg$c14 = "i ";
|
|
16846
|
+
const peg$c15 = "\u2022A ";
|
|
16847
|
+
const peg$c16 = "\u2022a ";
|
|
16848
|
+
const peg$c17 = "\u2022+ ";
|
|
16849
|
+
const peg$c18 = "\u2022- ";
|
|
16850
|
+
const peg$c19 = " ";
|
|
16851
16851
|
const peg$c20 = "image";
|
|
16852
16852
|
const peg$c21 = "#";
|
|
16853
16853
|
const peg$c22 = "@";
|
|
@@ -16979,28 +16979,28 @@ function peg$parse(input, options) {
|
|
|
16979
16979
|
const peg$r4 = /^[!#-;=?-[\]-_a-{}-~]/;
|
|
16980
16980
|
const peg$e0 = peg$anyExpectation();
|
|
16981
16981
|
const peg$e1 = peg$otherExpectation("StyledText");
|
|
16982
|
-
const peg$e2 = peg$literalExpectation("
|
|
16983
|
-
const peg$e3 = peg$literalExpectation("
|
|
16984
|
-
const peg$e4 = peg$literalExpectation("
|
|
16985
|
-
const peg$e5 = peg$literalExpectation("
|
|
16986
|
-
const peg$e6 = peg$literalExpectation("
|
|
16987
|
-
const peg$e7 = peg$
|
|
16988
|
-
const peg$e8 = peg$
|
|
16989
|
-
const peg$e9 = peg$literalExpectation("
|
|
16990
|
-
const peg$e10 = peg$literalExpectation("bitmark
|
|
16991
|
-
const peg$e11 = peg$literalExpectation("
|
|
16992
|
-
const peg$e12 = peg$literalExpectation("
|
|
16993
|
-
const peg$e13 = peg$literalExpectation("\
|
|
16994
|
-
const peg$e14 = peg$literalExpectation("\
|
|
16995
|
-
const peg$e15 = peg$
|
|
16996
|
-
const peg$e16 = peg$
|
|
16997
|
-
const peg$e17 = peg$literalExpectation(" ", false);
|
|
16998
|
-
const peg$e18 = peg$literalExpectation("
|
|
16999
|
-
const peg$e19 = peg$literalExpectation("
|
|
17000
|
-
const peg$e20 = peg$literalExpectation("\
|
|
17001
|
-
const peg$e21 = peg$literalExpectation("\
|
|
17002
|
-
const peg$e22 = peg$literalExpectation("\u2022
|
|
17003
|
-
const peg$e23 = peg$literalExpectation("
|
|
16982
|
+
const peg$e2 = peg$literalExpectation("|", false);
|
|
16983
|
+
const peg$e3 = peg$literalExpectation("### ", false);
|
|
16984
|
+
const peg$e4 = peg$literalExpectation("## ", false);
|
|
16985
|
+
const peg$e5 = peg$literalExpectation("# ", false);
|
|
16986
|
+
const peg$e6 = peg$literalExpectation("code", false);
|
|
16987
|
+
const peg$e7 = peg$classExpectation([" ", " "], false, false, false);
|
|
16988
|
+
const peg$e8 = peg$literalExpectation(":", false);
|
|
16989
|
+
const peg$e9 = peg$literalExpectation("bitmark++", false);
|
|
16990
|
+
const peg$e10 = peg$literalExpectation("bitmark--", false);
|
|
16991
|
+
const peg$e11 = peg$literalExpectation("JavaScript", false);
|
|
16992
|
+
const peg$e12 = peg$literalExpectation("\u2022 ", false);
|
|
16993
|
+
const peg$e13 = peg$literalExpectation("\u2022_ ", false);
|
|
16994
|
+
const peg$e14 = peg$literalExpectation("\u2022", false);
|
|
16995
|
+
const peg$e15 = peg$classExpectation([["0", "9"]], false, false, false);
|
|
16996
|
+
const peg$e16 = peg$literalExpectation(" ", false);
|
|
16997
|
+
const peg$e17 = peg$literalExpectation("I ", false);
|
|
16998
|
+
const peg$e18 = peg$literalExpectation("i ", false);
|
|
16999
|
+
const peg$e19 = peg$literalExpectation("\u2022A ", false);
|
|
17000
|
+
const peg$e20 = peg$literalExpectation("\u2022a ", false);
|
|
17001
|
+
const peg$e21 = peg$literalExpectation("\u2022+ ", false);
|
|
17002
|
+
const peg$e22 = peg$literalExpectation("\u2022- ", false);
|
|
17003
|
+
const peg$e23 = peg$literalExpectation(" ", false);
|
|
17004
17004
|
const peg$e24 = peg$literalExpectation("image", false);
|
|
17005
17005
|
const peg$e25 = peg$literalExpectation("#", false);
|
|
17006
17006
|
const peg$e26 = peg$literalExpectation("@", false);
|
|
@@ -17176,14 +17176,15 @@ function peg$parse(input, options) {
|
|
|
17176
17176
|
function peg$f13(t) {
|
|
17177
17177
|
return t;
|
|
17178
17178
|
}
|
|
17179
|
-
function peg$f14(
|
|
17180
|
-
return
|
|
17179
|
+
function peg$f14(c, bl) {
|
|
17180
|
+
return { ...c, content: bl, attrs: {} };
|
|
17181
17181
|
}
|
|
17182
17182
|
function peg$f15(c, bl) {
|
|
17183
17183
|
return { ...c, content: bl, attrs: {} };
|
|
17184
17184
|
}
|
|
17185
17185
|
function peg$f16(c, bl) {
|
|
17186
|
-
|
|
17186
|
+
let start = bl[0]._tempListStart;
|
|
17187
|
+
return { ...c, attrs: { start }, content: bl };
|
|
17187
17188
|
}
|
|
17188
17189
|
function peg$f17(c, bl) {
|
|
17189
17190
|
let start = bl[0]._tempListStart;
|
|
@@ -17194,8 +17195,7 @@ function peg$parse(input, options) {
|
|
|
17194
17195
|
return { ...c, attrs: { start }, content: bl };
|
|
17195
17196
|
}
|
|
17196
17197
|
function peg$f19(c, bl) {
|
|
17197
|
-
|
|
17198
|
-
return { ...c, attrs: { start }, content: bl };
|
|
17198
|
+
return { ...c, content: bl, attrs: {} };
|
|
17199
17199
|
}
|
|
17200
17200
|
function peg$f20(c, bl) {
|
|
17201
17201
|
return { ...c, content: bl, attrs: {} };
|
|
@@ -17203,41 +17203,34 @@ function peg$parse(input, options) {
|
|
|
17203
17203
|
function peg$f21(c, bl) {
|
|
17204
17204
|
return { ...c, content: bl, attrs: {} };
|
|
17205
17205
|
}
|
|
17206
|
-
function peg$f22(
|
|
17207
|
-
return { ...c, content: bl, attrs: {} };
|
|
17208
|
-
}
|
|
17209
|
-
function peg$f23(i) {
|
|
17210
|
-
indentStack = [];
|
|
17211
|
-
indent = i.join("");
|
|
17212
|
-
}
|
|
17213
|
-
function peg$f24() {
|
|
17206
|
+
function peg$f22() {
|
|
17214
17207
|
return { type: "bulletList" };
|
|
17215
17208
|
}
|
|
17216
|
-
function peg$
|
|
17209
|
+
function peg$f23() {
|
|
17217
17210
|
return { type: "noBulletList" };
|
|
17218
17211
|
}
|
|
17219
|
-
function peg$
|
|
17212
|
+
function peg$f24() {
|
|
17220
17213
|
return { type: "orderedList" };
|
|
17221
17214
|
}
|
|
17222
|
-
function peg$
|
|
17215
|
+
function peg$f25() {
|
|
17223
17216
|
return { type: "orderedListRoman" };
|
|
17224
17217
|
}
|
|
17225
|
-
function peg$
|
|
17218
|
+
function peg$f26() {
|
|
17226
17219
|
return { type: "orderedListRomanLower" };
|
|
17227
17220
|
}
|
|
17228
|
-
function peg$
|
|
17221
|
+
function peg$f27() {
|
|
17229
17222
|
return { type: "letteredList" };
|
|
17230
17223
|
}
|
|
17231
|
-
function peg$
|
|
17224
|
+
function peg$f28() {
|
|
17232
17225
|
return { type: "letteredListLower" };
|
|
17233
17226
|
}
|
|
17234
|
-
function peg$
|
|
17227
|
+
function peg$f29() {
|
|
17235
17228
|
return { type: "taskList" };
|
|
17236
17229
|
}
|
|
17237
|
-
function peg$
|
|
17230
|
+
function peg$f30(lt, listItem, lines, c) {
|
|
17238
17231
|
return c;
|
|
17239
17232
|
}
|
|
17240
|
-
function peg$
|
|
17233
|
+
function peg$f31(lt, listItem, lines, children) {
|
|
17241
17234
|
let _tempParsingParent = "bulletList";
|
|
17242
17235
|
const matchOrdered = lt.match(/•([0-9]+)([Ii]?) /);
|
|
17243
17236
|
let start = 1;
|
|
@@ -17306,36 +17299,36 @@ function peg$parse(input, options) {
|
|
|
17306
17299
|
return { type: t, content, _tempParsingParent, _tempListStart };
|
|
17307
17300
|
}
|
|
17308
17301
|
}
|
|
17309
|
-
function peg$
|
|
17302
|
+
function peg$f32(ll) {
|
|
17310
17303
|
return ll;
|
|
17311
17304
|
}
|
|
17312
|
-
function peg$
|
|
17305
|
+
function peg$f33(i) {
|
|
17313
17306
|
return i.join("") === indent;
|
|
17314
17307
|
}
|
|
17315
|
-
function peg$
|
|
17308
|
+
function peg$f34(i) {
|
|
17316
17309
|
return i.length > indent.length;
|
|
17317
17310
|
}
|
|
17318
|
-
function peg$
|
|
17311
|
+
function peg$f35(i) {
|
|
17319
17312
|
indentStack.push(indent);
|
|
17320
17313
|
indent = i.join("");
|
|
17321
17314
|
}
|
|
17322
|
-
function peg$
|
|
17315
|
+
function peg$f36() {
|
|
17323
17316
|
indent = indentStack.pop();
|
|
17324
17317
|
return true;
|
|
17325
17318
|
}
|
|
17326
|
-
function peg$
|
|
17319
|
+
function peg$f37(body) {
|
|
17327
17320
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17328
17321
|
}
|
|
17329
|
-
function peg$
|
|
17322
|
+
function peg$f38(body) {
|
|
17330
17323
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17331
17324
|
}
|
|
17332
|
-
function peg$
|
|
17325
|
+
function peg$f39(body) {
|
|
17333
17326
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17334
17327
|
}
|
|
17335
|
-
function peg$
|
|
17328
|
+
function peg$f40(t) {
|
|
17336
17329
|
return t;
|
|
17337
17330
|
}
|
|
17338
|
-
function peg$
|
|
17331
|
+
function peg$f41(t, u, ch) {
|
|
17339
17332
|
const chain = Object.assign({}, ...ch);
|
|
17340
17333
|
let imageAlignment_ = chain.alignment || "center";
|
|
17341
17334
|
delete chain.alignment;
|
|
@@ -17364,185 +17357,185 @@ function peg$parse(input, options) {
|
|
|
17364
17357
|
};
|
|
17365
17358
|
return image;
|
|
17366
17359
|
}
|
|
17367
|
-
function peg$
|
|
17360
|
+
function peg$f42(ch) {
|
|
17368
17361
|
return ch;
|
|
17369
17362
|
}
|
|
17370
|
-
function peg$
|
|
17363
|
+
function peg$f43(str) {
|
|
17371
17364
|
return { comment: str.trim() };
|
|
17372
17365
|
}
|
|
17373
|
-
function peg$
|
|
17366
|
+
function peg$f44(p, v) {
|
|
17374
17367
|
return { [p]: parseInt(v) };
|
|
17375
17368
|
}
|
|
17376
|
-
function peg$
|
|
17369
|
+
function peg$f45(p, v) {
|
|
17377
17370
|
return { [p]: v.trim() };
|
|
17378
17371
|
}
|
|
17379
|
-
function peg$
|
|
17372
|
+
function peg$f46(p, v) {
|
|
17380
17373
|
return { [p]: v };
|
|
17381
17374
|
}
|
|
17382
|
-
function peg$
|
|
17375
|
+
function peg$f47(p, v) {
|
|
17383
17376
|
return { [p]: v };
|
|
17384
17377
|
}
|
|
17385
|
-
function peg$
|
|
17378
|
+
function peg$f48(p) {
|
|
17386
17379
|
return { [p]: true };
|
|
17387
17380
|
}
|
|
17388
|
-
function peg$
|
|
17381
|
+
function peg$f49() {
|
|
17389
17382
|
return;
|
|
17390
17383
|
}
|
|
17391
|
-
function peg$
|
|
17384
|
+
function peg$f50(p) {
|
|
17392
17385
|
return { error: "Found unknown property or invalid value: " + p };
|
|
17393
17386
|
}
|
|
17394
|
-
function peg$
|
|
17387
|
+
function peg$f51(bs) {
|
|
17395
17388
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
17396
17389
|
}
|
|
17397
|
-
function peg$
|
|
17390
|
+
function peg$f52(first, more) {
|
|
17398
17391
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
17399
17392
|
return cleaned_;
|
|
17400
17393
|
}
|
|
17401
|
-
function peg$
|
|
17394
|
+
function peg$f53() {
|
|
17402
17395
|
return { "type": "hardBreak" };
|
|
17403
17396
|
}
|
|
17404
|
-
function peg$
|
|
17397
|
+
function peg$f54(t) {
|
|
17405
17398
|
return { text: unbreakscape(t), type: "text" };
|
|
17406
17399
|
}
|
|
17407
|
-
function peg$
|
|
17400
|
+
function peg$f55(t) {
|
|
17408
17401
|
return { index: +t, type: "bit" };
|
|
17409
17402
|
}
|
|
17410
|
-
function peg$
|
|
17403
|
+
function peg$f56(t) {
|
|
17411
17404
|
return { attrs: { formula: unbreakscape(t) }, type: "latex" };
|
|
17412
17405
|
}
|
|
17413
|
-
function peg$
|
|
17406
|
+
function peg$f57(alt, u, ch) {
|
|
17414
17407
|
return { attrs: { alt, src: (u.pr + u.t).trim(), ...Object.assign({}, ...ch), zoomDisabled: true }, type: "imageInline" };
|
|
17415
17408
|
}
|
|
17416
|
-
function peg$
|
|
17409
|
+
function peg$f58(t, marks) {
|
|
17417
17410
|
if (!marks) marks = [];
|
|
17418
17411
|
return { marks, text: unbreakscape(t), type: "text" };
|
|
17419
17412
|
}
|
|
17420
|
-
function peg$
|
|
17413
|
+
function peg$f59(t) {
|
|
17421
17414
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
17422
17415
|
}
|
|
17423
|
-
function peg$
|
|
17416
|
+
function peg$f60(t) {
|
|
17424
17417
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
17425
17418
|
}
|
|
17426
|
-
function peg$
|
|
17419
|
+
function peg$f61(t) {
|
|
17427
17420
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
17428
17421
|
}
|
|
17429
|
-
function peg$
|
|
17422
|
+
function peg$f62(t) {
|
|
17430
17423
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
17431
17424
|
}
|
|
17432
|
-
function peg$
|
|
17425
|
+
function peg$f63(u) {
|
|
17433
17426
|
return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: "_blank" } }], text: u.t, type: "text" };
|
|
17434
17427
|
}
|
|
17435
|
-
function peg$
|
|
17428
|
+
function peg$f64(ch) {
|
|
17436
17429
|
return ch;
|
|
17437
17430
|
}
|
|
17438
|
-
function peg$
|
|
17431
|
+
function peg$f65(ch) {
|
|
17439
17432
|
return ch;
|
|
17440
17433
|
}
|
|
17441
|
-
function peg$
|
|
17434
|
+
function peg$f66(str) {
|
|
17442
17435
|
return { comment: str };
|
|
17443
17436
|
}
|
|
17444
|
-
function peg$
|
|
17437
|
+
function peg$f67(p, v) {
|
|
17445
17438
|
return { [p]: v };
|
|
17446
17439
|
}
|
|
17447
|
-
function peg$
|
|
17440
|
+
function peg$f68(p, v) {
|
|
17448
17441
|
return { [p]: parseInt(v) };
|
|
17449
17442
|
}
|
|
17450
|
-
function peg$
|
|
17443
|
+
function peg$f69(p, v) {
|
|
17451
17444
|
return { type: "error", msg: p + " must be a positive integer.", found: v };
|
|
17452
17445
|
}
|
|
17453
|
-
function peg$
|
|
17446
|
+
function peg$f70(p, v) {
|
|
17454
17447
|
return { [p]: v };
|
|
17455
17448
|
}
|
|
17456
|
-
function peg$
|
|
17449
|
+
function peg$f71(p, v) {
|
|
17457
17450
|
return { [p]: v };
|
|
17458
17451
|
}
|
|
17459
|
-
function peg$
|
|
17452
|
+
function peg$f72(str) {
|
|
17460
17453
|
return { type: "link", attrs: { href: str.trim(), target: "_blank" } };
|
|
17461
17454
|
}
|
|
17462
|
-
function peg$
|
|
17455
|
+
function peg$f73(str, rc, p) {
|
|
17463
17456
|
return { type: "extref", attrs: { extref: str.trim(), references: rc, provider: p.trim() } };
|
|
17464
17457
|
}
|
|
17465
|
-
function peg$
|
|
17458
|
+
function peg$f74(str, str2) {
|
|
17466
17459
|
return { type: "xref", attrs: { xref: str.trim(), reference: str2.trim() } };
|
|
17467
17460
|
}
|
|
17468
|
-
function peg$
|
|
17461
|
+
function peg$f75(str) {
|
|
17469
17462
|
return { type: "xref", attrs: { xref: str.trim(), reference: "" } };
|
|
17470
17463
|
}
|
|
17471
|
-
function peg$
|
|
17464
|
+
function peg$f76(str) {
|
|
17472
17465
|
return { type: "ref", attrs: { reference: str.trim() } };
|
|
17473
17466
|
}
|
|
17474
|
-
function peg$
|
|
17467
|
+
function peg$f77(str, ch) {
|
|
17475
17468
|
const chain = Object.assign({}, ...ch);
|
|
17476
17469
|
return { type: "symbol", attrs: { src: str.trim(), ...chain } };
|
|
17477
17470
|
}
|
|
17478
|
-
function peg$
|
|
17471
|
+
function peg$f78(str) {
|
|
17479
17472
|
return { type: "footnote", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
17480
17473
|
}
|
|
17481
|
-
function peg$
|
|
17474
|
+
function peg$f79(str) {
|
|
17482
17475
|
return { type: "footnote*", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
17483
17476
|
}
|
|
17484
|
-
function peg$
|
|
17477
|
+
function peg$f80(str) {
|
|
17485
17478
|
return { type: "var", attrs: { name: str.trim() } };
|
|
17486
17479
|
}
|
|
17487
|
-
function peg$
|
|
17480
|
+
function peg$f81() {
|
|
17488
17481
|
return { type: "code", attrs: { language: "plain text" } };
|
|
17489
17482
|
}
|
|
17490
|
-
function peg$
|
|
17483
|
+
function peg$f82(lang) {
|
|
17491
17484
|
return { type: "code", attrs: { language: lang.trim().toLowerCase() } };
|
|
17492
17485
|
}
|
|
17493
|
-
function peg$
|
|
17486
|
+
function peg$f83() {
|
|
17494
17487
|
return { type: "timer", attrs: { name: "" } };
|
|
17495
17488
|
}
|
|
17496
|
-
function peg$
|
|
17489
|
+
function peg$f84(str) {
|
|
17497
17490
|
return { type: "timer", attrs: { name: str.trim() } };
|
|
17498
17491
|
}
|
|
17499
|
-
function peg$
|
|
17492
|
+
function peg$f85(str) {
|
|
17500
17493
|
return { type: "duration", attrs: { duration: str } };
|
|
17501
17494
|
}
|
|
17502
|
-
function peg$
|
|
17495
|
+
function peg$f86(color) {
|
|
17503
17496
|
return { type: "color", attrs: { color } };
|
|
17504
17497
|
}
|
|
17505
|
-
function peg$
|
|
17498
|
+
function peg$f87(str) {
|
|
17506
17499
|
return { type: "colorPicker", attrs: { propertyRef: str.trim() } };
|
|
17507
17500
|
}
|
|
17508
|
-
function peg$
|
|
17501
|
+
function peg$f88(style) {
|
|
17509
17502
|
return { type: style };
|
|
17510
17503
|
}
|
|
17511
|
-
function peg$
|
|
17504
|
+
function peg$f89(str) {
|
|
17512
17505
|
return { type: "comment", comment: str };
|
|
17513
17506
|
}
|
|
17514
|
-
function peg$
|
|
17507
|
+
function peg$f90(r) {
|
|
17515
17508
|
return r.trim();
|
|
17516
17509
|
}
|
|
17517
|
-
function peg$
|
|
17510
|
+
function peg$f91(bs) {
|
|
17518
17511
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
17519
17512
|
}
|
|
17520
|
-
function peg$
|
|
17513
|
+
function peg$f92(first, more) {
|
|
17521
17514
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
17522
17515
|
return cleaned_;
|
|
17523
17516
|
}
|
|
17524
|
-
function peg$
|
|
17517
|
+
function peg$f93() {
|
|
17525
17518
|
return { "type": "hardBreak" };
|
|
17526
17519
|
}
|
|
17527
|
-
function peg$
|
|
17520
|
+
function peg$f94(t) {
|
|
17528
17521
|
return { text: unbreakscape(t), type: "text" };
|
|
17529
17522
|
}
|
|
17530
|
-
function peg$
|
|
17523
|
+
function peg$f95(t) {
|
|
17531
17524
|
return { index: +t, type: "bit" };
|
|
17532
17525
|
}
|
|
17533
|
-
function peg$
|
|
17526
|
+
function peg$f96(t) {
|
|
17534
17527
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
17535
17528
|
}
|
|
17536
|
-
function peg$
|
|
17529
|
+
function peg$f97(t) {
|
|
17537
17530
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
17538
17531
|
}
|
|
17539
|
-
function peg$
|
|
17532
|
+
function peg$f98(t) {
|
|
17540
17533
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
17541
17534
|
}
|
|
17542
|
-
function peg$
|
|
17535
|
+
function peg$f99(t) {
|
|
17543
17536
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
17544
17537
|
}
|
|
17545
|
-
function peg$
|
|
17538
|
+
function peg$f100(pr, t) {
|
|
17546
17539
|
return { pr, t };
|
|
17547
17540
|
}
|
|
17548
17541
|
let peg$currPos = options.peg$currPos | 0;
|
|
@@ -17743,40 +17736,10 @@ function peg$parse(input, options) {
|
|
|
17743
17736
|
return s0;
|
|
17744
17737
|
}
|
|
17745
17738
|
function peg$parseBlockStart() {
|
|
17746
|
-
let s0
|
|
17739
|
+
let s0;
|
|
17747
17740
|
s0 = peg$parseTitleTags();
|
|
17748
17741
|
if (s0 === peg$FAILED) {
|
|
17749
|
-
s0 = peg$
|
|
17750
|
-
s1 = [];
|
|
17751
|
-
if (input.charCodeAt(peg$currPos) === 9) {
|
|
17752
|
-
s2 = peg$c0;
|
|
17753
|
-
peg$currPos++;
|
|
17754
|
-
} else {
|
|
17755
|
-
s2 = peg$FAILED;
|
|
17756
|
-
if (peg$silentFails === 0) {
|
|
17757
|
-
peg$fail(peg$e2);
|
|
17758
|
-
}
|
|
17759
|
-
}
|
|
17760
|
-
while (s2 !== peg$FAILED) {
|
|
17761
|
-
s1.push(s2);
|
|
17762
|
-
if (input.charCodeAt(peg$currPos) === 9) {
|
|
17763
|
-
s2 = peg$c0;
|
|
17764
|
-
peg$currPos++;
|
|
17765
|
-
} else {
|
|
17766
|
-
s2 = peg$FAILED;
|
|
17767
|
-
if (peg$silentFails === 0) {
|
|
17768
|
-
peg$fail(peg$e2);
|
|
17769
|
-
}
|
|
17770
|
-
}
|
|
17771
|
-
}
|
|
17772
|
-
s2 = peg$parseListTags();
|
|
17773
|
-
if (s2 !== peg$FAILED) {
|
|
17774
|
-
s1 = [s1, s2];
|
|
17775
|
-
s0 = s1;
|
|
17776
|
-
} else {
|
|
17777
|
-
peg$currPos = s0;
|
|
17778
|
-
s0 = peg$FAILED;
|
|
17779
|
-
}
|
|
17742
|
+
s0 = peg$parseListTags();
|
|
17780
17743
|
if (s0 === peg$FAILED) {
|
|
17781
17744
|
s0 = peg$parseImageBlock();
|
|
17782
17745
|
if (s0 === peg$FAILED) {
|
|
@@ -17792,12 +17755,12 @@ function peg$parse(input, options) {
|
|
|
17792
17755
|
function peg$parseBlockTag() {
|
|
17793
17756
|
let s0;
|
|
17794
17757
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
17795
|
-
s0 = peg$
|
|
17758
|
+
s0 = peg$c0;
|
|
17796
17759
|
peg$currPos++;
|
|
17797
17760
|
} else {
|
|
17798
17761
|
s0 = peg$FAILED;
|
|
17799
17762
|
if (peg$silentFails === 0) {
|
|
17800
|
-
peg$fail(peg$
|
|
17763
|
+
peg$fail(peg$e2);
|
|
17801
17764
|
}
|
|
17802
17765
|
}
|
|
17803
17766
|
return s0;
|
|
@@ -17812,33 +17775,33 @@ function peg$parse(input, options) {
|
|
|
17812
17775
|
}
|
|
17813
17776
|
function peg$parseTitleTags() {
|
|
17814
17777
|
let s0;
|
|
17815
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
17816
|
-
s0 = peg$
|
|
17778
|
+
if (input.substr(peg$currPos, 4) === peg$c1) {
|
|
17779
|
+
s0 = peg$c1;
|
|
17817
17780
|
peg$currPos += 4;
|
|
17818
17781
|
} else {
|
|
17819
17782
|
s0 = peg$FAILED;
|
|
17820
17783
|
if (peg$silentFails === 0) {
|
|
17821
|
-
peg$fail(peg$
|
|
17784
|
+
peg$fail(peg$e3);
|
|
17822
17785
|
}
|
|
17823
17786
|
}
|
|
17824
17787
|
if (s0 === peg$FAILED) {
|
|
17825
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
17826
|
-
s0 = peg$
|
|
17788
|
+
if (input.substr(peg$currPos, 3) === peg$c2) {
|
|
17789
|
+
s0 = peg$c2;
|
|
17827
17790
|
peg$currPos += 3;
|
|
17828
17791
|
} else {
|
|
17829
17792
|
s0 = peg$FAILED;
|
|
17830
17793
|
if (peg$silentFails === 0) {
|
|
17831
|
-
peg$fail(peg$
|
|
17794
|
+
peg$fail(peg$e4);
|
|
17832
17795
|
}
|
|
17833
17796
|
}
|
|
17834
17797
|
if (s0 === peg$FAILED) {
|
|
17835
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
17836
|
-
s0 = peg$
|
|
17798
|
+
if (input.substr(peg$currPos, 2) === peg$c3) {
|
|
17799
|
+
s0 = peg$c3;
|
|
17837
17800
|
peg$currPos += 2;
|
|
17838
17801
|
} else {
|
|
17839
17802
|
s0 = peg$FAILED;
|
|
17840
17803
|
if (peg$silentFails === 0) {
|
|
17841
|
-
peg$fail(peg$
|
|
17804
|
+
peg$fail(peg$e5);
|
|
17842
17805
|
}
|
|
17843
17806
|
}
|
|
17844
17807
|
}
|
|
@@ -17877,13 +17840,13 @@ function peg$parse(input, options) {
|
|
|
17877
17840
|
}
|
|
17878
17841
|
function peg$parseCodeType() {
|
|
17879
17842
|
let s0;
|
|
17880
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
17881
|
-
s0 = peg$
|
|
17843
|
+
if (input.substr(peg$currPos, 4) === peg$c4) {
|
|
17844
|
+
s0 = peg$c4;
|
|
17882
17845
|
peg$currPos += 4;
|
|
17883
17846
|
} else {
|
|
17884
17847
|
s0 = peg$FAILED;
|
|
17885
17848
|
if (peg$silentFails === 0) {
|
|
17886
|
-
peg$fail(peg$
|
|
17849
|
+
peg$fail(peg$e6);
|
|
17887
17850
|
}
|
|
17888
17851
|
}
|
|
17889
17852
|
return s0;
|
|
@@ -17933,7 +17896,7 @@ function peg$parse(input, options) {
|
|
|
17933
17896
|
} else {
|
|
17934
17897
|
s5 = peg$FAILED;
|
|
17935
17898
|
if (peg$silentFails === 0) {
|
|
17936
|
-
peg$fail(peg$
|
|
17899
|
+
peg$fail(peg$e7);
|
|
17937
17900
|
}
|
|
17938
17901
|
}
|
|
17939
17902
|
while (s5 !== peg$FAILED) {
|
|
@@ -17944,7 +17907,7 @@ function peg$parse(input, options) {
|
|
|
17944
17907
|
} else {
|
|
17945
17908
|
s5 = peg$FAILED;
|
|
17946
17909
|
if (peg$silentFails === 0) {
|
|
17947
|
-
peg$fail(peg$
|
|
17910
|
+
peg$fail(peg$e7);
|
|
17948
17911
|
}
|
|
17949
17912
|
}
|
|
17950
17913
|
}
|
|
@@ -17976,12 +17939,12 @@ function peg$parse(input, options) {
|
|
|
17976
17939
|
s1 = peg$parseCodeTag();
|
|
17977
17940
|
if (s1 !== peg$FAILED) {
|
|
17978
17941
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
17979
|
-
s2 = peg$
|
|
17942
|
+
s2 = peg$c5;
|
|
17980
17943
|
peg$currPos++;
|
|
17981
17944
|
} else {
|
|
17982
17945
|
s2 = peg$FAILED;
|
|
17983
17946
|
if (peg$silentFails === 0) {
|
|
17984
|
-
peg$fail(peg$
|
|
17947
|
+
peg$fail(peg$e8);
|
|
17985
17948
|
}
|
|
17986
17949
|
}
|
|
17987
17950
|
if (s2 !== peg$FAILED) {
|
|
@@ -17996,7 +17959,7 @@ function peg$parse(input, options) {
|
|
|
17996
17959
|
} else {
|
|
17997
17960
|
s7 = peg$FAILED;
|
|
17998
17961
|
if (peg$silentFails === 0) {
|
|
17999
|
-
peg$fail(peg$
|
|
17962
|
+
peg$fail(peg$e7);
|
|
18000
17963
|
}
|
|
18001
17964
|
}
|
|
18002
17965
|
while (s7 !== peg$FAILED) {
|
|
@@ -18007,7 +17970,7 @@ function peg$parse(input, options) {
|
|
|
18007
17970
|
} else {
|
|
18008
17971
|
s7 = peg$FAILED;
|
|
18009
17972
|
if (peg$silentFails === 0) {
|
|
18010
|
-
peg$fail(peg$
|
|
17973
|
+
peg$fail(peg$e7);
|
|
18011
17974
|
}
|
|
18012
17975
|
}
|
|
18013
17976
|
}
|
|
@@ -18047,33 +18010,33 @@ function peg$parse(input, options) {
|
|
|
18047
18010
|
}
|
|
18048
18011
|
function peg$parseCodeLanguage() {
|
|
18049
18012
|
let s0, s1, s2;
|
|
18050
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18051
|
-
s0 = peg$
|
|
18013
|
+
if (input.substr(peg$currPos, 9) === peg$c6) {
|
|
18014
|
+
s0 = peg$c6;
|
|
18052
18015
|
peg$currPos += 9;
|
|
18053
18016
|
} else {
|
|
18054
18017
|
s0 = peg$FAILED;
|
|
18055
18018
|
if (peg$silentFails === 0) {
|
|
18056
|
-
peg$fail(peg$
|
|
18019
|
+
peg$fail(peg$e9);
|
|
18057
18020
|
}
|
|
18058
18021
|
}
|
|
18059
18022
|
if (s0 === peg$FAILED) {
|
|
18060
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18061
|
-
s0 = peg$
|
|
18023
|
+
if (input.substr(peg$currPos, 9) === peg$c7) {
|
|
18024
|
+
s0 = peg$c7;
|
|
18062
18025
|
peg$currPos += 9;
|
|
18063
18026
|
} else {
|
|
18064
18027
|
s0 = peg$FAILED;
|
|
18065
18028
|
if (peg$silentFails === 0) {
|
|
18066
|
-
peg$fail(peg$
|
|
18029
|
+
peg$fail(peg$e10);
|
|
18067
18030
|
}
|
|
18068
18031
|
}
|
|
18069
18032
|
if (s0 === peg$FAILED) {
|
|
18070
|
-
if (input.substr(peg$currPos, 10) === peg$
|
|
18071
|
-
s0 = peg$
|
|
18033
|
+
if (input.substr(peg$currPos, 10) === peg$c8) {
|
|
18034
|
+
s0 = peg$c8;
|
|
18072
18035
|
peg$currPos += 10;
|
|
18073
18036
|
} else {
|
|
18074
18037
|
s0 = peg$FAILED;
|
|
18075
18038
|
if (peg$silentFails === 0) {
|
|
18076
|
-
peg$fail(peg$
|
|
18039
|
+
peg$fail(peg$e11);
|
|
18077
18040
|
}
|
|
18078
18041
|
}
|
|
18079
18042
|
if (s0 === peg$FAILED) {
|
|
@@ -18177,26 +18140,26 @@ function peg$parse(input, options) {
|
|
|
18177
18140
|
}
|
|
18178
18141
|
function peg$parseBulletListTag() {
|
|
18179
18142
|
let s0;
|
|
18180
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18181
|
-
s0 = peg$
|
|
18143
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
18144
|
+
s0 = peg$c9;
|
|
18182
18145
|
peg$currPos += 2;
|
|
18183
18146
|
} else {
|
|
18184
18147
|
s0 = peg$FAILED;
|
|
18185
18148
|
if (peg$silentFails === 0) {
|
|
18186
|
-
peg$fail(peg$
|
|
18149
|
+
peg$fail(peg$e12);
|
|
18187
18150
|
}
|
|
18188
18151
|
}
|
|
18189
18152
|
return s0;
|
|
18190
18153
|
}
|
|
18191
18154
|
function peg$parseNoBulletListTag() {
|
|
18192
18155
|
let s0;
|
|
18193
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18194
|
-
s0 = peg$
|
|
18156
|
+
if (input.substr(peg$currPos, 3) === peg$c10) {
|
|
18157
|
+
s0 = peg$c10;
|
|
18195
18158
|
peg$currPos += 3;
|
|
18196
18159
|
} else {
|
|
18197
18160
|
s0 = peg$FAILED;
|
|
18198
18161
|
if (peg$silentFails === 0) {
|
|
18199
|
-
peg$fail(peg$
|
|
18162
|
+
peg$fail(peg$e13);
|
|
18200
18163
|
}
|
|
18201
18164
|
}
|
|
18202
18165
|
return s0;
|
|
@@ -18206,12 +18169,12 @@ function peg$parse(input, options) {
|
|
|
18206
18169
|
s0 = peg$currPos;
|
|
18207
18170
|
s1 = peg$currPos;
|
|
18208
18171
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18209
|
-
s2 = peg$
|
|
18172
|
+
s2 = peg$c11;
|
|
18210
18173
|
peg$currPos++;
|
|
18211
18174
|
} else {
|
|
18212
18175
|
s2 = peg$FAILED;
|
|
18213
18176
|
if (peg$silentFails === 0) {
|
|
18214
|
-
peg$fail(peg$
|
|
18177
|
+
peg$fail(peg$e14);
|
|
18215
18178
|
}
|
|
18216
18179
|
}
|
|
18217
18180
|
if (s2 !== peg$FAILED) {
|
|
@@ -18222,7 +18185,7 @@ function peg$parse(input, options) {
|
|
|
18222
18185
|
} else {
|
|
18223
18186
|
s4 = peg$FAILED;
|
|
18224
18187
|
if (peg$silentFails === 0) {
|
|
18225
|
-
peg$fail(peg$
|
|
18188
|
+
peg$fail(peg$e15);
|
|
18226
18189
|
}
|
|
18227
18190
|
}
|
|
18228
18191
|
if (s4 !== peg$FAILED) {
|
|
@@ -18234,7 +18197,7 @@ function peg$parse(input, options) {
|
|
|
18234
18197
|
} else {
|
|
18235
18198
|
s4 = peg$FAILED;
|
|
18236
18199
|
if (peg$silentFails === 0) {
|
|
18237
|
-
peg$fail(peg$
|
|
18200
|
+
peg$fail(peg$e15);
|
|
18238
18201
|
}
|
|
18239
18202
|
}
|
|
18240
18203
|
}
|
|
@@ -18243,12 +18206,12 @@ function peg$parse(input, options) {
|
|
|
18243
18206
|
}
|
|
18244
18207
|
if (s3 !== peg$FAILED) {
|
|
18245
18208
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
18246
|
-
s4 = peg$
|
|
18209
|
+
s4 = peg$c12;
|
|
18247
18210
|
peg$currPos++;
|
|
18248
18211
|
} else {
|
|
18249
18212
|
s4 = peg$FAILED;
|
|
18250
18213
|
if (peg$silentFails === 0) {
|
|
18251
|
-
peg$fail(peg$
|
|
18214
|
+
peg$fail(peg$e16);
|
|
18252
18215
|
}
|
|
18253
18216
|
}
|
|
18254
18217
|
if (s4 !== peg$FAILED) {
|
|
@@ -18278,12 +18241,12 @@ function peg$parse(input, options) {
|
|
|
18278
18241
|
s0 = peg$currPos;
|
|
18279
18242
|
s1 = peg$currPos;
|
|
18280
18243
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18281
|
-
s2 = peg$
|
|
18244
|
+
s2 = peg$c11;
|
|
18282
18245
|
peg$currPos++;
|
|
18283
18246
|
} else {
|
|
18284
18247
|
s2 = peg$FAILED;
|
|
18285
18248
|
if (peg$silentFails === 0) {
|
|
18286
|
-
peg$fail(peg$
|
|
18249
|
+
peg$fail(peg$e14);
|
|
18287
18250
|
}
|
|
18288
18251
|
}
|
|
18289
18252
|
if (s2 !== peg$FAILED) {
|
|
@@ -18294,7 +18257,7 @@ function peg$parse(input, options) {
|
|
|
18294
18257
|
} else {
|
|
18295
18258
|
s4 = peg$FAILED;
|
|
18296
18259
|
if (peg$silentFails === 0) {
|
|
18297
|
-
peg$fail(peg$
|
|
18260
|
+
peg$fail(peg$e15);
|
|
18298
18261
|
}
|
|
18299
18262
|
}
|
|
18300
18263
|
if (s4 !== peg$FAILED) {
|
|
@@ -18306,7 +18269,7 @@ function peg$parse(input, options) {
|
|
|
18306
18269
|
} else {
|
|
18307
18270
|
s4 = peg$FAILED;
|
|
18308
18271
|
if (peg$silentFails === 0) {
|
|
18309
|
-
peg$fail(peg$
|
|
18272
|
+
peg$fail(peg$e15);
|
|
18310
18273
|
}
|
|
18311
18274
|
}
|
|
18312
18275
|
}
|
|
@@ -18314,13 +18277,13 @@ function peg$parse(input, options) {
|
|
|
18314
18277
|
s3 = peg$FAILED;
|
|
18315
18278
|
}
|
|
18316
18279
|
if (s3 !== peg$FAILED) {
|
|
18317
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18318
|
-
s4 = peg$
|
|
18280
|
+
if (input.substr(peg$currPos, 2) === peg$c13) {
|
|
18281
|
+
s4 = peg$c13;
|
|
18319
18282
|
peg$currPos += 2;
|
|
18320
18283
|
} else {
|
|
18321
18284
|
s4 = peg$FAILED;
|
|
18322
18285
|
if (peg$silentFails === 0) {
|
|
18323
|
-
peg$fail(peg$
|
|
18286
|
+
peg$fail(peg$e17);
|
|
18324
18287
|
}
|
|
18325
18288
|
}
|
|
18326
18289
|
if (s4 !== peg$FAILED) {
|
|
@@ -18350,12 +18313,12 @@ function peg$parse(input, options) {
|
|
|
18350
18313
|
s0 = peg$currPos;
|
|
18351
18314
|
s1 = peg$currPos;
|
|
18352
18315
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18353
|
-
s2 = peg$
|
|
18316
|
+
s2 = peg$c11;
|
|
18354
18317
|
peg$currPos++;
|
|
18355
18318
|
} else {
|
|
18356
18319
|
s2 = peg$FAILED;
|
|
18357
18320
|
if (peg$silentFails === 0) {
|
|
18358
|
-
peg$fail(peg$
|
|
18321
|
+
peg$fail(peg$e14);
|
|
18359
18322
|
}
|
|
18360
18323
|
}
|
|
18361
18324
|
if (s2 !== peg$FAILED) {
|
|
@@ -18366,7 +18329,7 @@ function peg$parse(input, options) {
|
|
|
18366
18329
|
} else {
|
|
18367
18330
|
s4 = peg$FAILED;
|
|
18368
18331
|
if (peg$silentFails === 0) {
|
|
18369
|
-
peg$fail(peg$
|
|
18332
|
+
peg$fail(peg$e15);
|
|
18370
18333
|
}
|
|
18371
18334
|
}
|
|
18372
18335
|
if (s4 !== peg$FAILED) {
|
|
@@ -18378,7 +18341,7 @@ function peg$parse(input, options) {
|
|
|
18378
18341
|
} else {
|
|
18379
18342
|
s4 = peg$FAILED;
|
|
18380
18343
|
if (peg$silentFails === 0) {
|
|
18381
|
-
peg$fail(peg$
|
|
18344
|
+
peg$fail(peg$e15);
|
|
18382
18345
|
}
|
|
18383
18346
|
}
|
|
18384
18347
|
}
|
|
@@ -18386,13 +18349,13 @@ function peg$parse(input, options) {
|
|
|
18386
18349
|
s3 = peg$FAILED;
|
|
18387
18350
|
}
|
|
18388
18351
|
if (s3 !== peg$FAILED) {
|
|
18389
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18390
|
-
s4 = peg$
|
|
18352
|
+
if (input.substr(peg$currPos, 2) === peg$c14) {
|
|
18353
|
+
s4 = peg$c14;
|
|
18391
18354
|
peg$currPos += 2;
|
|
18392
18355
|
} else {
|
|
18393
18356
|
s4 = peg$FAILED;
|
|
18394
18357
|
if (peg$silentFails === 0) {
|
|
18395
|
-
peg$fail(peg$
|
|
18358
|
+
peg$fail(peg$e18);
|
|
18396
18359
|
}
|
|
18397
18360
|
}
|
|
18398
18361
|
if (s4 !== peg$FAILED) {
|
|
@@ -18419,49 +18382,49 @@ function peg$parse(input, options) {
|
|
|
18419
18382
|
}
|
|
18420
18383
|
function peg$parseLetteredListTag() {
|
|
18421
18384
|
let s0;
|
|
18422
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18423
|
-
s0 = peg$
|
|
18385
|
+
if (input.substr(peg$currPos, 3) === peg$c15) {
|
|
18386
|
+
s0 = peg$c15;
|
|
18424
18387
|
peg$currPos += 3;
|
|
18425
18388
|
} else {
|
|
18426
18389
|
s0 = peg$FAILED;
|
|
18427
18390
|
if (peg$silentFails === 0) {
|
|
18428
|
-
peg$fail(peg$
|
|
18391
|
+
peg$fail(peg$e19);
|
|
18429
18392
|
}
|
|
18430
18393
|
}
|
|
18431
18394
|
return s0;
|
|
18432
18395
|
}
|
|
18433
18396
|
function peg$parseLetteredListLowerTag() {
|
|
18434
18397
|
let s0;
|
|
18435
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18436
|
-
s0 = peg$
|
|
18398
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
18399
|
+
s0 = peg$c16;
|
|
18437
18400
|
peg$currPos += 3;
|
|
18438
18401
|
} else {
|
|
18439
18402
|
s0 = peg$FAILED;
|
|
18440
18403
|
if (peg$silentFails === 0) {
|
|
18441
|
-
peg$fail(peg$
|
|
18404
|
+
peg$fail(peg$e20);
|
|
18442
18405
|
}
|
|
18443
18406
|
}
|
|
18444
18407
|
return s0;
|
|
18445
18408
|
}
|
|
18446
18409
|
function peg$parseTaskListTag() {
|
|
18447
18410
|
let s0;
|
|
18448
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18449
|
-
s0 = peg$
|
|
18411
|
+
if (input.substr(peg$currPos, 3) === peg$c17) {
|
|
18412
|
+
s0 = peg$c17;
|
|
18450
18413
|
peg$currPos += 3;
|
|
18451
18414
|
} else {
|
|
18452
18415
|
s0 = peg$FAILED;
|
|
18453
18416
|
if (peg$silentFails === 0) {
|
|
18454
|
-
peg$fail(peg$
|
|
18417
|
+
peg$fail(peg$e21);
|
|
18455
18418
|
}
|
|
18456
18419
|
}
|
|
18457
18420
|
if (s0 === peg$FAILED) {
|
|
18458
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18459
|
-
s0 = peg$
|
|
18421
|
+
if (input.substr(peg$currPos, 3) === peg$c18) {
|
|
18422
|
+
s0 = peg$c18;
|
|
18460
18423
|
peg$currPos += 3;
|
|
18461
18424
|
} else {
|
|
18462
18425
|
s0 = peg$FAILED;
|
|
18463
18426
|
if (peg$silentFails === 0) {
|
|
18464
|
-
peg$fail(peg$
|
|
18427
|
+
peg$fail(peg$e22);
|
|
18465
18428
|
}
|
|
18466
18429
|
}
|
|
18467
18430
|
}
|
|
@@ -18494,24 +18457,6 @@ function peg$parse(input, options) {
|
|
|
18494
18457
|
return s0;
|
|
18495
18458
|
}
|
|
18496
18459
|
function peg$parseListBlock() {
|
|
18497
|
-
let s0, s1, s2;
|
|
18498
|
-
s0 = peg$currPos;
|
|
18499
|
-
s1 = peg$parseListBaseIndent();
|
|
18500
|
-
if (s1 !== peg$FAILED) {
|
|
18501
|
-
s2 = peg$parseListBlockInner();
|
|
18502
|
-
if (s2 !== peg$FAILED) {
|
|
18503
|
-
s0 = peg$f14(s2);
|
|
18504
|
-
} else {
|
|
18505
|
-
peg$currPos = s0;
|
|
18506
|
-
s0 = peg$FAILED;
|
|
18507
|
-
}
|
|
18508
|
-
} else {
|
|
18509
|
-
peg$currPos = s0;
|
|
18510
|
-
s0 = peg$FAILED;
|
|
18511
|
-
}
|
|
18512
|
-
return s0;
|
|
18513
|
-
}
|
|
18514
|
-
function peg$parseListBlockInner() {
|
|
18515
18460
|
let s0, s1, s2, s3;
|
|
18516
18461
|
s0 = peg$currPos;
|
|
18517
18462
|
s1 = peg$parseBulletListContainer();
|
|
@@ -18531,7 +18476,7 @@ function peg$parse(input, options) {
|
|
|
18531
18476
|
if (s3 === peg$FAILED) {
|
|
18532
18477
|
s3 = null;
|
|
18533
18478
|
}
|
|
18534
|
-
s0 = peg$
|
|
18479
|
+
s0 = peg$f14(s1, s2);
|
|
18535
18480
|
} else {
|
|
18536
18481
|
peg$currPos = s0;
|
|
18537
18482
|
s0 = peg$FAILED;
|
|
@@ -18559,7 +18504,7 @@ function peg$parse(input, options) {
|
|
|
18559
18504
|
if (s3 === peg$FAILED) {
|
|
18560
18505
|
s3 = null;
|
|
18561
18506
|
}
|
|
18562
|
-
s0 = peg$
|
|
18507
|
+
s0 = peg$f15(s1, s2);
|
|
18563
18508
|
} else {
|
|
18564
18509
|
peg$currPos = s0;
|
|
18565
18510
|
s0 = peg$FAILED;
|
|
@@ -18587,7 +18532,7 @@ function peg$parse(input, options) {
|
|
|
18587
18532
|
if (s3 === peg$FAILED) {
|
|
18588
18533
|
s3 = null;
|
|
18589
18534
|
}
|
|
18590
|
-
s0 = peg$
|
|
18535
|
+
s0 = peg$f16(s1, s2);
|
|
18591
18536
|
} else {
|
|
18592
18537
|
peg$currPos = s0;
|
|
18593
18538
|
s0 = peg$FAILED;
|
|
@@ -18615,7 +18560,7 @@ function peg$parse(input, options) {
|
|
|
18615
18560
|
if (s3 === peg$FAILED) {
|
|
18616
18561
|
s3 = null;
|
|
18617
18562
|
}
|
|
18618
|
-
s0 = peg$
|
|
18563
|
+
s0 = peg$f17(s1, s2);
|
|
18619
18564
|
} else {
|
|
18620
18565
|
peg$currPos = s0;
|
|
18621
18566
|
s0 = peg$FAILED;
|
|
@@ -18643,7 +18588,7 @@ function peg$parse(input, options) {
|
|
|
18643
18588
|
if (s3 === peg$FAILED) {
|
|
18644
18589
|
s3 = null;
|
|
18645
18590
|
}
|
|
18646
|
-
s0 = peg$
|
|
18591
|
+
s0 = peg$f18(s1, s2);
|
|
18647
18592
|
} else {
|
|
18648
18593
|
peg$currPos = s0;
|
|
18649
18594
|
s0 = peg$FAILED;
|
|
@@ -18671,7 +18616,7 @@ function peg$parse(input, options) {
|
|
|
18671
18616
|
if (s3 === peg$FAILED) {
|
|
18672
18617
|
s3 = null;
|
|
18673
18618
|
}
|
|
18674
|
-
s0 = peg$
|
|
18619
|
+
s0 = peg$f19(s1, s2);
|
|
18675
18620
|
} else {
|
|
18676
18621
|
peg$currPos = s0;
|
|
18677
18622
|
s0 = peg$FAILED;
|
|
@@ -18699,7 +18644,7 @@ function peg$parse(input, options) {
|
|
|
18699
18644
|
if (s3 === peg$FAILED) {
|
|
18700
18645
|
s3 = null;
|
|
18701
18646
|
}
|
|
18702
|
-
s0 = peg$
|
|
18647
|
+
s0 = peg$f20(s1, s2);
|
|
18703
18648
|
} else {
|
|
18704
18649
|
peg$currPos = s0;
|
|
18705
18650
|
s0 = peg$FAILED;
|
|
@@ -18727,7 +18672,7 @@ function peg$parse(input, options) {
|
|
|
18727
18672
|
if (s3 === peg$FAILED) {
|
|
18728
18673
|
s3 = null;
|
|
18729
18674
|
}
|
|
18730
|
-
s0 = peg$
|
|
18675
|
+
s0 = peg$f21(s1, s2);
|
|
18731
18676
|
} else {
|
|
18732
18677
|
peg$currPos = s0;
|
|
18733
18678
|
s0 = peg$FAILED;
|
|
@@ -18745,69 +18690,12 @@ function peg$parse(input, options) {
|
|
|
18745
18690
|
}
|
|
18746
18691
|
return s0;
|
|
18747
18692
|
}
|
|
18748
|
-
function peg$parseListBaseIndent() {
|
|
18749
|
-
let s0, s1, s2, s3;
|
|
18750
|
-
s0 = peg$currPos;
|
|
18751
|
-
peg$silentFails++;
|
|
18752
|
-
s1 = peg$currPos;
|
|
18753
|
-
s2 = [];
|
|
18754
|
-
if (input.charCodeAt(peg$currPos) === 9) {
|
|
18755
|
-
s3 = peg$c0;
|
|
18756
|
-
peg$currPos++;
|
|
18757
|
-
} else {
|
|
18758
|
-
s3 = peg$FAILED;
|
|
18759
|
-
if (peg$silentFails === 0) {
|
|
18760
|
-
peg$fail(peg$e2);
|
|
18761
|
-
}
|
|
18762
|
-
}
|
|
18763
|
-
while (s3 !== peg$FAILED) {
|
|
18764
|
-
s2.push(s3);
|
|
18765
|
-
if (input.charCodeAt(peg$currPos) === 9) {
|
|
18766
|
-
s3 = peg$c0;
|
|
18767
|
-
peg$currPos++;
|
|
18768
|
-
} else {
|
|
18769
|
-
s3 = peg$FAILED;
|
|
18770
|
-
if (peg$silentFails === 0) {
|
|
18771
|
-
peg$fail(peg$e2);
|
|
18772
|
-
}
|
|
18773
|
-
}
|
|
18774
|
-
}
|
|
18775
|
-
s3 = peg$parseListTags();
|
|
18776
|
-
if (s3 !== peg$FAILED) {
|
|
18777
|
-
s1 = peg$f23(s2);
|
|
18778
|
-
} else {
|
|
18779
|
-
peg$currPos = s1;
|
|
18780
|
-
s1 = peg$FAILED;
|
|
18781
|
-
}
|
|
18782
|
-
peg$silentFails--;
|
|
18783
|
-
if (s1 !== peg$FAILED) {
|
|
18784
|
-
peg$currPos = s0;
|
|
18785
|
-
s0 = void 0;
|
|
18786
|
-
} else {
|
|
18787
|
-
s0 = peg$FAILED;
|
|
18788
|
-
}
|
|
18789
|
-
return s0;
|
|
18790
|
-
}
|
|
18791
18693
|
function peg$parseBulletListContainer() {
|
|
18792
|
-
let s0, s1, s2
|
|
18694
|
+
let s0, s1, s2;
|
|
18793
18695
|
s0 = peg$currPos;
|
|
18794
18696
|
s1 = peg$currPos;
|
|
18795
18697
|
peg$silentFails++;
|
|
18796
|
-
s2 = peg$
|
|
18797
|
-
s3 = peg$parseSAMEDENT();
|
|
18798
|
-
if (s3 !== peg$FAILED) {
|
|
18799
|
-
s4 = peg$parseBulletListTag();
|
|
18800
|
-
if (s4 !== peg$FAILED) {
|
|
18801
|
-
s3 = [s3, s4];
|
|
18802
|
-
s2 = s3;
|
|
18803
|
-
} else {
|
|
18804
|
-
peg$currPos = s2;
|
|
18805
|
-
s2 = peg$FAILED;
|
|
18806
|
-
}
|
|
18807
|
-
} else {
|
|
18808
|
-
peg$currPos = s2;
|
|
18809
|
-
s2 = peg$FAILED;
|
|
18810
|
-
}
|
|
18698
|
+
s2 = peg$parseBulletListTag();
|
|
18811
18699
|
peg$silentFails--;
|
|
18812
18700
|
if (s2 !== peg$FAILED) {
|
|
18813
18701
|
peg$currPos = s1;
|
|
@@ -18816,31 +18704,17 @@ function peg$parse(input, options) {
|
|
|
18816
18704
|
s1 = peg$FAILED;
|
|
18817
18705
|
}
|
|
18818
18706
|
if (s1 !== peg$FAILED) {
|
|
18819
|
-
s1 = peg$
|
|
18707
|
+
s1 = peg$f22();
|
|
18820
18708
|
}
|
|
18821
18709
|
s0 = s1;
|
|
18822
18710
|
return s0;
|
|
18823
18711
|
}
|
|
18824
18712
|
function peg$parseNoBulletListContainer() {
|
|
18825
|
-
let s0, s1, s2
|
|
18713
|
+
let s0, s1, s2;
|
|
18826
18714
|
s0 = peg$currPos;
|
|
18827
18715
|
s1 = peg$currPos;
|
|
18828
18716
|
peg$silentFails++;
|
|
18829
|
-
s2 = peg$
|
|
18830
|
-
s3 = peg$parseSAMEDENT();
|
|
18831
|
-
if (s3 !== peg$FAILED) {
|
|
18832
|
-
s4 = peg$parseNoBulletListTag();
|
|
18833
|
-
if (s4 !== peg$FAILED) {
|
|
18834
|
-
s3 = [s3, s4];
|
|
18835
|
-
s2 = s3;
|
|
18836
|
-
} else {
|
|
18837
|
-
peg$currPos = s2;
|
|
18838
|
-
s2 = peg$FAILED;
|
|
18839
|
-
}
|
|
18840
|
-
} else {
|
|
18841
|
-
peg$currPos = s2;
|
|
18842
|
-
s2 = peg$FAILED;
|
|
18843
|
-
}
|
|
18717
|
+
s2 = peg$parseNoBulletListTag();
|
|
18844
18718
|
peg$silentFails--;
|
|
18845
18719
|
if (s2 !== peg$FAILED) {
|
|
18846
18720
|
peg$currPos = s1;
|
|
@@ -18849,31 +18723,17 @@ function peg$parse(input, options) {
|
|
|
18849
18723
|
s1 = peg$FAILED;
|
|
18850
18724
|
}
|
|
18851
18725
|
if (s1 !== peg$FAILED) {
|
|
18852
|
-
s1 = peg$
|
|
18726
|
+
s1 = peg$f23();
|
|
18853
18727
|
}
|
|
18854
18728
|
s0 = s1;
|
|
18855
18729
|
return s0;
|
|
18856
18730
|
}
|
|
18857
18731
|
function peg$parseOrderedListContainer() {
|
|
18858
|
-
let s0, s1, s2
|
|
18732
|
+
let s0, s1, s2;
|
|
18859
18733
|
s0 = peg$currPos;
|
|
18860
18734
|
s1 = peg$currPos;
|
|
18861
18735
|
peg$silentFails++;
|
|
18862
|
-
s2 = peg$
|
|
18863
|
-
s3 = peg$parseSAMEDENT();
|
|
18864
|
-
if (s3 !== peg$FAILED) {
|
|
18865
|
-
s4 = peg$parseOrderedListTag();
|
|
18866
|
-
if (s4 !== peg$FAILED) {
|
|
18867
|
-
s3 = [s3, s4];
|
|
18868
|
-
s2 = s3;
|
|
18869
|
-
} else {
|
|
18870
|
-
peg$currPos = s2;
|
|
18871
|
-
s2 = peg$FAILED;
|
|
18872
|
-
}
|
|
18873
|
-
} else {
|
|
18874
|
-
peg$currPos = s2;
|
|
18875
|
-
s2 = peg$FAILED;
|
|
18876
|
-
}
|
|
18736
|
+
s2 = peg$parseOrderedListTag();
|
|
18877
18737
|
peg$silentFails--;
|
|
18878
18738
|
if (s2 !== peg$FAILED) {
|
|
18879
18739
|
peg$currPos = s1;
|
|
@@ -18882,31 +18742,17 @@ function peg$parse(input, options) {
|
|
|
18882
18742
|
s1 = peg$FAILED;
|
|
18883
18743
|
}
|
|
18884
18744
|
if (s1 !== peg$FAILED) {
|
|
18885
|
-
s1 = peg$
|
|
18745
|
+
s1 = peg$f24();
|
|
18886
18746
|
}
|
|
18887
18747
|
s0 = s1;
|
|
18888
18748
|
return s0;
|
|
18889
18749
|
}
|
|
18890
18750
|
function peg$parseOrderedListRomanContainer() {
|
|
18891
|
-
let s0, s1, s2
|
|
18751
|
+
let s0, s1, s2;
|
|
18892
18752
|
s0 = peg$currPos;
|
|
18893
18753
|
s1 = peg$currPos;
|
|
18894
18754
|
peg$silentFails++;
|
|
18895
|
-
s2 = peg$
|
|
18896
|
-
s3 = peg$parseSAMEDENT();
|
|
18897
|
-
if (s3 !== peg$FAILED) {
|
|
18898
|
-
s4 = peg$parseOrderedListRomanTag();
|
|
18899
|
-
if (s4 !== peg$FAILED) {
|
|
18900
|
-
s3 = [s3, s4];
|
|
18901
|
-
s2 = s3;
|
|
18902
|
-
} else {
|
|
18903
|
-
peg$currPos = s2;
|
|
18904
|
-
s2 = peg$FAILED;
|
|
18905
|
-
}
|
|
18906
|
-
} else {
|
|
18907
|
-
peg$currPos = s2;
|
|
18908
|
-
s2 = peg$FAILED;
|
|
18909
|
-
}
|
|
18755
|
+
s2 = peg$parseOrderedListRomanTag();
|
|
18910
18756
|
peg$silentFails--;
|
|
18911
18757
|
if (s2 !== peg$FAILED) {
|
|
18912
18758
|
peg$currPos = s1;
|
|
@@ -18915,31 +18761,17 @@ function peg$parse(input, options) {
|
|
|
18915
18761
|
s1 = peg$FAILED;
|
|
18916
18762
|
}
|
|
18917
18763
|
if (s1 !== peg$FAILED) {
|
|
18918
|
-
s1 = peg$
|
|
18764
|
+
s1 = peg$f25();
|
|
18919
18765
|
}
|
|
18920
18766
|
s0 = s1;
|
|
18921
18767
|
return s0;
|
|
18922
18768
|
}
|
|
18923
18769
|
function peg$parseOrderedListRomanLowerContainer() {
|
|
18924
|
-
let s0, s1, s2
|
|
18770
|
+
let s0, s1, s2;
|
|
18925
18771
|
s0 = peg$currPos;
|
|
18926
18772
|
s1 = peg$currPos;
|
|
18927
18773
|
peg$silentFails++;
|
|
18928
|
-
s2 = peg$
|
|
18929
|
-
s3 = peg$parseSAMEDENT();
|
|
18930
|
-
if (s3 !== peg$FAILED) {
|
|
18931
|
-
s4 = peg$parseOrderedListRomanLowerTag();
|
|
18932
|
-
if (s4 !== peg$FAILED) {
|
|
18933
|
-
s3 = [s3, s4];
|
|
18934
|
-
s2 = s3;
|
|
18935
|
-
} else {
|
|
18936
|
-
peg$currPos = s2;
|
|
18937
|
-
s2 = peg$FAILED;
|
|
18938
|
-
}
|
|
18939
|
-
} else {
|
|
18940
|
-
peg$currPos = s2;
|
|
18941
|
-
s2 = peg$FAILED;
|
|
18942
|
-
}
|
|
18774
|
+
s2 = peg$parseOrderedListRomanLowerTag();
|
|
18943
18775
|
peg$silentFails--;
|
|
18944
18776
|
if (s2 !== peg$FAILED) {
|
|
18945
18777
|
peg$currPos = s1;
|
|
@@ -18948,31 +18780,17 @@ function peg$parse(input, options) {
|
|
|
18948
18780
|
s1 = peg$FAILED;
|
|
18949
18781
|
}
|
|
18950
18782
|
if (s1 !== peg$FAILED) {
|
|
18951
|
-
s1 = peg$
|
|
18783
|
+
s1 = peg$f26();
|
|
18952
18784
|
}
|
|
18953
18785
|
s0 = s1;
|
|
18954
18786
|
return s0;
|
|
18955
18787
|
}
|
|
18956
18788
|
function peg$parseLetteredListContainer() {
|
|
18957
|
-
let s0, s1, s2
|
|
18789
|
+
let s0, s1, s2;
|
|
18958
18790
|
s0 = peg$currPos;
|
|
18959
18791
|
s1 = peg$currPos;
|
|
18960
18792
|
peg$silentFails++;
|
|
18961
|
-
s2 = peg$
|
|
18962
|
-
s3 = peg$parseSAMEDENT();
|
|
18963
|
-
if (s3 !== peg$FAILED) {
|
|
18964
|
-
s4 = peg$parseLetteredListTag();
|
|
18965
|
-
if (s4 !== peg$FAILED) {
|
|
18966
|
-
s3 = [s3, s4];
|
|
18967
|
-
s2 = s3;
|
|
18968
|
-
} else {
|
|
18969
|
-
peg$currPos = s2;
|
|
18970
|
-
s2 = peg$FAILED;
|
|
18971
|
-
}
|
|
18972
|
-
} else {
|
|
18973
|
-
peg$currPos = s2;
|
|
18974
|
-
s2 = peg$FAILED;
|
|
18975
|
-
}
|
|
18793
|
+
s2 = peg$parseLetteredListTag();
|
|
18976
18794
|
peg$silentFails--;
|
|
18977
18795
|
if (s2 !== peg$FAILED) {
|
|
18978
18796
|
peg$currPos = s1;
|
|
@@ -18981,31 +18799,17 @@ function peg$parse(input, options) {
|
|
|
18981
18799
|
s1 = peg$FAILED;
|
|
18982
18800
|
}
|
|
18983
18801
|
if (s1 !== peg$FAILED) {
|
|
18984
|
-
s1 = peg$
|
|
18802
|
+
s1 = peg$f27();
|
|
18985
18803
|
}
|
|
18986
18804
|
s0 = s1;
|
|
18987
18805
|
return s0;
|
|
18988
18806
|
}
|
|
18989
18807
|
function peg$parseLetteredListLowerContainer() {
|
|
18990
|
-
let s0, s1, s2
|
|
18808
|
+
let s0, s1, s2;
|
|
18991
18809
|
s0 = peg$currPos;
|
|
18992
18810
|
s1 = peg$currPos;
|
|
18993
18811
|
peg$silentFails++;
|
|
18994
|
-
s2 = peg$
|
|
18995
|
-
s3 = peg$parseSAMEDENT();
|
|
18996
|
-
if (s3 !== peg$FAILED) {
|
|
18997
|
-
s4 = peg$parseLetteredListLowerTag();
|
|
18998
|
-
if (s4 !== peg$FAILED) {
|
|
18999
|
-
s3 = [s3, s4];
|
|
19000
|
-
s2 = s3;
|
|
19001
|
-
} else {
|
|
19002
|
-
peg$currPos = s2;
|
|
19003
|
-
s2 = peg$FAILED;
|
|
19004
|
-
}
|
|
19005
|
-
} else {
|
|
19006
|
-
peg$currPos = s2;
|
|
19007
|
-
s2 = peg$FAILED;
|
|
19008
|
-
}
|
|
18812
|
+
s2 = peg$parseLetteredListLowerTag();
|
|
19009
18813
|
peg$silentFails--;
|
|
19010
18814
|
if (s2 !== peg$FAILED) {
|
|
19011
18815
|
peg$currPos = s1;
|
|
@@ -19014,31 +18818,17 @@ function peg$parse(input, options) {
|
|
|
19014
18818
|
s1 = peg$FAILED;
|
|
19015
18819
|
}
|
|
19016
18820
|
if (s1 !== peg$FAILED) {
|
|
19017
|
-
s1 = peg$
|
|
18821
|
+
s1 = peg$f28();
|
|
19018
18822
|
}
|
|
19019
18823
|
s0 = s1;
|
|
19020
18824
|
return s0;
|
|
19021
18825
|
}
|
|
19022
18826
|
function peg$parseTaskListContainer() {
|
|
19023
|
-
let s0, s1, s2
|
|
18827
|
+
let s0, s1, s2;
|
|
19024
18828
|
s0 = peg$currPos;
|
|
19025
18829
|
s1 = peg$currPos;
|
|
19026
18830
|
peg$silentFails++;
|
|
19027
|
-
s2 = peg$
|
|
19028
|
-
s3 = peg$parseSAMEDENT();
|
|
19029
|
-
if (s3 !== peg$FAILED) {
|
|
19030
|
-
s4 = peg$parseTaskListTag();
|
|
19031
|
-
if (s4 !== peg$FAILED) {
|
|
19032
|
-
s3 = [s3, s4];
|
|
19033
|
-
s2 = s3;
|
|
19034
|
-
} else {
|
|
19035
|
-
peg$currPos = s2;
|
|
19036
|
-
s2 = peg$FAILED;
|
|
19037
|
-
}
|
|
19038
|
-
} else {
|
|
19039
|
-
peg$currPos = s2;
|
|
19040
|
-
s2 = peg$FAILED;
|
|
19041
|
-
}
|
|
18831
|
+
s2 = peg$parseTaskListTag();
|
|
19042
18832
|
peg$silentFails--;
|
|
19043
18833
|
if (s2 !== peg$FAILED) {
|
|
19044
18834
|
peg$currPos = s1;
|
|
@@ -19047,7 +18837,7 @@ function peg$parse(input, options) {
|
|
|
19047
18837
|
s1 = peg$FAILED;
|
|
19048
18838
|
}
|
|
19049
18839
|
if (s1 !== peg$FAILED) {
|
|
19050
|
-
s1 = peg$
|
|
18840
|
+
s1 = peg$f29();
|
|
19051
18841
|
}
|
|
19052
18842
|
s0 = s1;
|
|
19053
18843
|
return s0;
|
|
@@ -19153,7 +18943,7 @@ function peg$parse(input, options) {
|
|
|
19153
18943
|
}
|
|
19154
18944
|
s8 = peg$parseDEDENT();
|
|
19155
18945
|
if (s8 !== peg$FAILED) {
|
|
19156
|
-
s5 = peg$
|
|
18946
|
+
s5 = peg$f30(s2, s3, s4, s7);
|
|
19157
18947
|
} else {
|
|
19158
18948
|
peg$currPos = s5;
|
|
19159
18949
|
s5 = peg$FAILED;
|
|
@@ -19165,7 +18955,7 @@ function peg$parse(input, options) {
|
|
|
19165
18955
|
if (s5 === peg$FAILED) {
|
|
19166
18956
|
s5 = null;
|
|
19167
18957
|
}
|
|
19168
|
-
s0 = peg$
|
|
18958
|
+
s0 = peg$f31(s2, s3, s4, s5);
|
|
19169
18959
|
} else {
|
|
19170
18960
|
peg$currPos = s0;
|
|
19171
18961
|
s0 = peg$FAILED;
|
|
@@ -19296,7 +19086,7 @@ function peg$parse(input, options) {
|
|
|
19296
19086
|
s4 = s5;
|
|
19297
19087
|
}
|
|
19298
19088
|
if (s4 !== peg$FAILED) {
|
|
19299
|
-
s0 = peg$
|
|
19089
|
+
s0 = peg$f32(s4);
|
|
19300
19090
|
} else {
|
|
19301
19091
|
peg$currPos = s0;
|
|
19302
19092
|
s0 = peg$FAILED;
|
|
@@ -19325,7 +19115,7 @@ function peg$parse(input, options) {
|
|
|
19325
19115
|
} else {
|
|
19326
19116
|
s2 = peg$FAILED;
|
|
19327
19117
|
if (peg$silentFails === 0) {
|
|
19328
|
-
peg$fail(peg$
|
|
19118
|
+
peg$fail(peg$e7);
|
|
19329
19119
|
}
|
|
19330
19120
|
}
|
|
19331
19121
|
while (s2 !== peg$FAILED) {
|
|
@@ -19336,7 +19126,7 @@ function peg$parse(input, options) {
|
|
|
19336
19126
|
} else {
|
|
19337
19127
|
s2 = peg$FAILED;
|
|
19338
19128
|
if (peg$silentFails === 0) {
|
|
19339
|
-
peg$fail(peg$
|
|
19129
|
+
peg$fail(peg$e7);
|
|
19340
19130
|
}
|
|
19341
19131
|
}
|
|
19342
19132
|
}
|
|
@@ -19355,27 +19145,27 @@ function peg$parse(input, options) {
|
|
|
19355
19145
|
s0 = peg$currPos;
|
|
19356
19146
|
s1 = [];
|
|
19357
19147
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19358
|
-
s2 = peg$
|
|
19148
|
+
s2 = peg$c19;
|
|
19359
19149
|
peg$currPos++;
|
|
19360
19150
|
} else {
|
|
19361
19151
|
s2 = peg$FAILED;
|
|
19362
19152
|
if (peg$silentFails === 0) {
|
|
19363
|
-
peg$fail(peg$
|
|
19153
|
+
peg$fail(peg$e23);
|
|
19364
19154
|
}
|
|
19365
19155
|
}
|
|
19366
19156
|
while (s2 !== peg$FAILED) {
|
|
19367
19157
|
s1.push(s2);
|
|
19368
19158
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19369
|
-
s2 = peg$
|
|
19159
|
+
s2 = peg$c19;
|
|
19370
19160
|
peg$currPos++;
|
|
19371
19161
|
} else {
|
|
19372
19162
|
s2 = peg$FAILED;
|
|
19373
19163
|
if (peg$silentFails === 0) {
|
|
19374
|
-
peg$fail(peg$
|
|
19164
|
+
peg$fail(peg$e23);
|
|
19375
19165
|
}
|
|
19376
19166
|
}
|
|
19377
19167
|
}
|
|
19378
|
-
s2 = peg$
|
|
19168
|
+
s2 = peg$f33(s1);
|
|
19379
19169
|
if (s2) {
|
|
19380
19170
|
s2 = void 0;
|
|
19381
19171
|
} else {
|
|
@@ -19397,24 +19187,24 @@ function peg$parse(input, options) {
|
|
|
19397
19187
|
s1 = peg$currPos;
|
|
19398
19188
|
s2 = [];
|
|
19399
19189
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19400
|
-
s3 = peg$
|
|
19190
|
+
s3 = peg$c19;
|
|
19401
19191
|
peg$currPos++;
|
|
19402
19192
|
} else {
|
|
19403
19193
|
s3 = peg$FAILED;
|
|
19404
19194
|
if (peg$silentFails === 0) {
|
|
19405
|
-
peg$fail(peg$
|
|
19195
|
+
peg$fail(peg$e23);
|
|
19406
19196
|
}
|
|
19407
19197
|
}
|
|
19408
19198
|
if (s3 !== peg$FAILED) {
|
|
19409
19199
|
while (s3 !== peg$FAILED) {
|
|
19410
19200
|
s2.push(s3);
|
|
19411
19201
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19412
|
-
s3 = peg$
|
|
19202
|
+
s3 = peg$c19;
|
|
19413
19203
|
peg$currPos++;
|
|
19414
19204
|
} else {
|
|
19415
19205
|
s3 = peg$FAILED;
|
|
19416
19206
|
if (peg$silentFails === 0) {
|
|
19417
|
-
peg$fail(peg$
|
|
19207
|
+
peg$fail(peg$e23);
|
|
19418
19208
|
}
|
|
19419
19209
|
}
|
|
19420
19210
|
}
|
|
@@ -19422,14 +19212,14 @@ function peg$parse(input, options) {
|
|
|
19422
19212
|
s2 = peg$FAILED;
|
|
19423
19213
|
}
|
|
19424
19214
|
if (s2 !== peg$FAILED) {
|
|
19425
|
-
s3 = peg$
|
|
19215
|
+
s3 = peg$f34(s2);
|
|
19426
19216
|
if (s3) {
|
|
19427
19217
|
s3 = void 0;
|
|
19428
19218
|
} else {
|
|
19429
19219
|
s3 = peg$FAILED;
|
|
19430
19220
|
}
|
|
19431
19221
|
if (s3 !== peg$FAILED) {
|
|
19432
|
-
s1 = peg$
|
|
19222
|
+
s1 = peg$f35(s2);
|
|
19433
19223
|
} else {
|
|
19434
19224
|
peg$currPos = s1;
|
|
19435
19225
|
s1 = peg$FAILED;
|
|
@@ -19449,7 +19239,7 @@ function peg$parse(input, options) {
|
|
|
19449
19239
|
}
|
|
19450
19240
|
function peg$parseDEDENT() {
|
|
19451
19241
|
let s0;
|
|
19452
|
-
s0 = peg$
|
|
19242
|
+
s0 = peg$f36();
|
|
19453
19243
|
if (s0) {
|
|
19454
19244
|
s0 = void 0;
|
|
19455
19245
|
} else {
|
|
@@ -19473,7 +19263,7 @@ function peg$parse(input, options) {
|
|
|
19473
19263
|
if (s1 !== peg$FAILED) {
|
|
19474
19264
|
s2 = peg$parseParagraphBody();
|
|
19475
19265
|
if (s2 !== peg$FAILED) {
|
|
19476
|
-
s0 = peg$
|
|
19266
|
+
s0 = peg$f37(s2);
|
|
19477
19267
|
} else {
|
|
19478
19268
|
peg$currPos = s0;
|
|
19479
19269
|
s0 = peg$FAILED;
|
|
@@ -19488,7 +19278,7 @@ function peg$parse(input, options) {
|
|
|
19488
19278
|
if (s1 !== peg$FAILED) {
|
|
19489
19279
|
s2 = peg$parseParagraphBody();
|
|
19490
19280
|
if (s2 !== peg$FAILED) {
|
|
19491
|
-
s0 = peg$
|
|
19281
|
+
s0 = peg$f38(s2);
|
|
19492
19282
|
} else {
|
|
19493
19283
|
peg$currPos = s0;
|
|
19494
19284
|
s0 = peg$FAILED;
|
|
@@ -19502,7 +19292,7 @@ function peg$parse(input, options) {
|
|
|
19502
19292
|
s1 = peg$parseExplicitParagraphHeader();
|
|
19503
19293
|
if (s1 !== peg$FAILED) {
|
|
19504
19294
|
s2 = "";
|
|
19505
|
-
s0 = peg$
|
|
19295
|
+
s0 = peg$f39(s2);
|
|
19506
19296
|
} else {
|
|
19507
19297
|
peg$currPos = s0;
|
|
19508
19298
|
s0 = peg$FAILED;
|
|
@@ -19605,7 +19395,7 @@ function peg$parse(input, options) {
|
|
|
19605
19395
|
} else {
|
|
19606
19396
|
s5 = peg$FAILED;
|
|
19607
19397
|
if (peg$silentFails === 0) {
|
|
19608
|
-
peg$fail(peg$
|
|
19398
|
+
peg$fail(peg$e7);
|
|
19609
19399
|
}
|
|
19610
19400
|
}
|
|
19611
19401
|
while (s5 !== peg$FAILED) {
|
|
@@ -19616,7 +19406,7 @@ function peg$parse(input, options) {
|
|
|
19616
19406
|
} else {
|
|
19617
19407
|
s5 = peg$FAILED;
|
|
19618
19408
|
if (peg$silentFails === 0) {
|
|
19619
|
-
peg$fail(peg$
|
|
19409
|
+
peg$fail(peg$e7);
|
|
19620
19410
|
}
|
|
19621
19411
|
}
|
|
19622
19412
|
}
|
|
@@ -19670,7 +19460,7 @@ function peg$parse(input, options) {
|
|
|
19670
19460
|
if (s1 !== peg$FAILED) {
|
|
19671
19461
|
s2 = peg$parseImageType();
|
|
19672
19462
|
if (s2 !== peg$FAILED) {
|
|
19673
|
-
s0 = peg$
|
|
19463
|
+
s0 = peg$f40(s2);
|
|
19674
19464
|
} else {
|
|
19675
19465
|
peg$currPos = s0;
|
|
19676
19466
|
s0 = peg$FAILED;
|
|
@@ -19687,12 +19477,12 @@ function peg$parse(input, options) {
|
|
|
19687
19477
|
s1 = peg$parseImageTag();
|
|
19688
19478
|
if (s1 !== peg$FAILED) {
|
|
19689
19479
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19690
|
-
s2 = peg$
|
|
19480
|
+
s2 = peg$c5;
|
|
19691
19481
|
peg$currPos++;
|
|
19692
19482
|
} else {
|
|
19693
19483
|
s2 = peg$FAILED;
|
|
19694
19484
|
if (peg$silentFails === 0) {
|
|
19695
|
-
peg$fail(peg$
|
|
19485
|
+
peg$fail(peg$e8);
|
|
19696
19486
|
}
|
|
19697
19487
|
}
|
|
19698
19488
|
if (s2 !== peg$FAILED) {
|
|
@@ -19700,30 +19490,30 @@ function peg$parse(input, options) {
|
|
|
19700
19490
|
peg$currPos++;
|
|
19701
19491
|
} else {
|
|
19702
19492
|
if (peg$silentFails === 0) {
|
|
19703
|
-
peg$fail(peg$
|
|
19493
|
+
peg$fail(peg$e16);
|
|
19704
19494
|
}
|
|
19705
19495
|
}
|
|
19706
19496
|
s4 = peg$parseUrlHttp();
|
|
19707
19497
|
if (s4 !== peg$FAILED) {
|
|
19708
19498
|
s5 = [];
|
|
19709
19499
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19710
|
-
s6 = peg$
|
|
19500
|
+
s6 = peg$c12;
|
|
19711
19501
|
peg$currPos++;
|
|
19712
19502
|
} else {
|
|
19713
19503
|
s6 = peg$FAILED;
|
|
19714
19504
|
if (peg$silentFails === 0) {
|
|
19715
|
-
peg$fail(peg$
|
|
19505
|
+
peg$fail(peg$e16);
|
|
19716
19506
|
}
|
|
19717
19507
|
}
|
|
19718
19508
|
while (s6 !== peg$FAILED) {
|
|
19719
19509
|
s5.push(s6);
|
|
19720
19510
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19721
|
-
s6 = peg$
|
|
19511
|
+
s6 = peg$c12;
|
|
19722
19512
|
peg$currPos++;
|
|
19723
19513
|
} else {
|
|
19724
19514
|
s6 = peg$FAILED;
|
|
19725
19515
|
if (peg$silentFails === 0) {
|
|
19726
|
-
peg$fail(peg$
|
|
19516
|
+
peg$fail(peg$e16);
|
|
19727
19517
|
}
|
|
19728
19518
|
}
|
|
19729
19519
|
}
|
|
@@ -19739,7 +19529,7 @@ function peg$parse(input, options) {
|
|
|
19739
19529
|
} else {
|
|
19740
19530
|
s11 = peg$FAILED;
|
|
19741
19531
|
if (peg$silentFails === 0) {
|
|
19742
|
-
peg$fail(peg$
|
|
19532
|
+
peg$fail(peg$e7);
|
|
19743
19533
|
}
|
|
19744
19534
|
}
|
|
19745
19535
|
while (s11 !== peg$FAILED) {
|
|
@@ -19750,7 +19540,7 @@ function peg$parse(input, options) {
|
|
|
19750
19540
|
} else {
|
|
19751
19541
|
s11 = peg$FAILED;
|
|
19752
19542
|
if (peg$silentFails === 0) {
|
|
19753
|
-
peg$fail(peg$
|
|
19543
|
+
peg$fail(peg$e7);
|
|
19754
19544
|
}
|
|
19755
19545
|
}
|
|
19756
19546
|
}
|
|
@@ -19772,7 +19562,7 @@ function peg$parse(input, options) {
|
|
|
19772
19562
|
if (s9 === peg$FAILED) {
|
|
19773
19563
|
s9 = null;
|
|
19774
19564
|
}
|
|
19775
|
-
s0 = peg$
|
|
19565
|
+
s0 = peg$f41(s1, s4, s7);
|
|
19776
19566
|
} else {
|
|
19777
19567
|
peg$currPos = s0;
|
|
19778
19568
|
s0 = peg$FAILED;
|
|
@@ -19804,7 +19594,7 @@ function peg$parse(input, options) {
|
|
|
19804
19594
|
s1.push(s2);
|
|
19805
19595
|
s2 = peg$parseMediaChainItem();
|
|
19806
19596
|
}
|
|
19807
|
-
s1 = peg$
|
|
19597
|
+
s1 = peg$f42(s1);
|
|
19808
19598
|
s0 = s1;
|
|
19809
19599
|
return s0;
|
|
19810
19600
|
}
|
|
@@ -19877,7 +19667,7 @@ function peg$parse(input, options) {
|
|
|
19877
19667
|
s2 = input.substring(s2, peg$currPos);
|
|
19878
19668
|
s3 = peg$parseBlockTag();
|
|
19879
19669
|
if (s3 !== peg$FAILED) {
|
|
19880
|
-
s0 = peg$
|
|
19670
|
+
s0 = peg$f43(s2);
|
|
19881
19671
|
} else {
|
|
19882
19672
|
peg$currPos = s0;
|
|
19883
19673
|
s0 = peg$FAILED;
|
|
@@ -19903,34 +19693,34 @@ function peg$parse(input, options) {
|
|
|
19903
19693
|
s2 = peg$parseMediaSizeTags();
|
|
19904
19694
|
if (s2 !== peg$FAILED) {
|
|
19905
19695
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19906
|
-
s3 = peg$
|
|
19696
|
+
s3 = peg$c5;
|
|
19907
19697
|
peg$currPos++;
|
|
19908
19698
|
} else {
|
|
19909
19699
|
s3 = peg$FAILED;
|
|
19910
19700
|
if (peg$silentFails === 0) {
|
|
19911
|
-
peg$fail(peg$
|
|
19701
|
+
peg$fail(peg$e8);
|
|
19912
19702
|
}
|
|
19913
19703
|
}
|
|
19914
19704
|
if (s3 !== peg$FAILED) {
|
|
19915
19705
|
s4 = [];
|
|
19916
19706
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19917
|
-
s5 = peg$
|
|
19707
|
+
s5 = peg$c12;
|
|
19918
19708
|
peg$currPos++;
|
|
19919
19709
|
} else {
|
|
19920
19710
|
s5 = peg$FAILED;
|
|
19921
19711
|
if (peg$silentFails === 0) {
|
|
19922
|
-
peg$fail(peg$
|
|
19712
|
+
peg$fail(peg$e16);
|
|
19923
19713
|
}
|
|
19924
19714
|
}
|
|
19925
19715
|
while (s5 !== peg$FAILED) {
|
|
19926
19716
|
s4.push(s5);
|
|
19927
19717
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19928
|
-
s5 = peg$
|
|
19718
|
+
s5 = peg$c12;
|
|
19929
19719
|
peg$currPos++;
|
|
19930
19720
|
} else {
|
|
19931
19721
|
s5 = peg$FAILED;
|
|
19932
19722
|
if (peg$silentFails === 0) {
|
|
19933
|
-
peg$fail(peg$
|
|
19723
|
+
peg$fail(peg$e16);
|
|
19934
19724
|
}
|
|
19935
19725
|
}
|
|
19936
19726
|
}
|
|
@@ -19954,7 +19744,7 @@ function peg$parse(input, options) {
|
|
|
19954
19744
|
} else {
|
|
19955
19745
|
s9 = peg$FAILED;
|
|
19956
19746
|
if (peg$silentFails === 0) {
|
|
19957
|
-
peg$fail(peg$
|
|
19747
|
+
peg$fail(peg$e15);
|
|
19958
19748
|
}
|
|
19959
19749
|
}
|
|
19960
19750
|
if (s9 !== peg$FAILED) {
|
|
@@ -19989,7 +19779,7 @@ function peg$parse(input, options) {
|
|
|
19989
19779
|
} else {
|
|
19990
19780
|
s9 = peg$FAILED;
|
|
19991
19781
|
if (peg$silentFails === 0) {
|
|
19992
|
-
peg$fail(peg$
|
|
19782
|
+
peg$fail(peg$e15);
|
|
19993
19783
|
}
|
|
19994
19784
|
}
|
|
19995
19785
|
if (s9 !== peg$FAILED) {
|
|
@@ -20015,29 +19805,29 @@ function peg$parse(input, options) {
|
|
|
20015
19805
|
if (s5 !== peg$FAILED) {
|
|
20016
19806
|
s6 = [];
|
|
20017
19807
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20018
|
-
s7 = peg$
|
|
19808
|
+
s7 = peg$c12;
|
|
20019
19809
|
peg$currPos++;
|
|
20020
19810
|
} else {
|
|
20021
19811
|
s7 = peg$FAILED;
|
|
20022
19812
|
if (peg$silentFails === 0) {
|
|
20023
|
-
peg$fail(peg$
|
|
19813
|
+
peg$fail(peg$e16);
|
|
20024
19814
|
}
|
|
20025
19815
|
}
|
|
20026
19816
|
while (s7 !== peg$FAILED) {
|
|
20027
19817
|
s6.push(s7);
|
|
20028
19818
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20029
|
-
s7 = peg$
|
|
19819
|
+
s7 = peg$c12;
|
|
20030
19820
|
peg$currPos++;
|
|
20031
19821
|
} else {
|
|
20032
19822
|
s7 = peg$FAILED;
|
|
20033
19823
|
if (peg$silentFails === 0) {
|
|
20034
|
-
peg$fail(peg$
|
|
19824
|
+
peg$fail(peg$e16);
|
|
20035
19825
|
}
|
|
20036
19826
|
}
|
|
20037
19827
|
}
|
|
20038
19828
|
s7 = peg$parseBlockTag();
|
|
20039
19829
|
if (s7 !== peg$FAILED) {
|
|
20040
|
-
s0 = peg$
|
|
19830
|
+
s0 = peg$f44(s2, s5);
|
|
20041
19831
|
} else {
|
|
20042
19832
|
peg$currPos = s0;
|
|
20043
19833
|
s0 = peg$FAILED;
|
|
@@ -20071,34 +19861,34 @@ function peg$parse(input, options) {
|
|
|
20071
19861
|
s2 = peg$parseMediaTextTags();
|
|
20072
19862
|
if (s2 !== peg$FAILED) {
|
|
20073
19863
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20074
|
-
s3 = peg$
|
|
19864
|
+
s3 = peg$c5;
|
|
20075
19865
|
peg$currPos++;
|
|
20076
19866
|
} else {
|
|
20077
19867
|
s3 = peg$FAILED;
|
|
20078
19868
|
if (peg$silentFails === 0) {
|
|
20079
|
-
peg$fail(peg$
|
|
19869
|
+
peg$fail(peg$e8);
|
|
20080
19870
|
}
|
|
20081
19871
|
}
|
|
20082
19872
|
if (s3 !== peg$FAILED) {
|
|
20083
19873
|
s4 = [];
|
|
20084
19874
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20085
|
-
s5 = peg$
|
|
19875
|
+
s5 = peg$c12;
|
|
20086
19876
|
peg$currPos++;
|
|
20087
19877
|
} else {
|
|
20088
19878
|
s5 = peg$FAILED;
|
|
20089
19879
|
if (peg$silentFails === 0) {
|
|
20090
|
-
peg$fail(peg$
|
|
19880
|
+
peg$fail(peg$e16);
|
|
20091
19881
|
}
|
|
20092
19882
|
}
|
|
20093
19883
|
while (s5 !== peg$FAILED) {
|
|
20094
19884
|
s4.push(s5);
|
|
20095
19885
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20096
|
-
s5 = peg$
|
|
19886
|
+
s5 = peg$c12;
|
|
20097
19887
|
peg$currPos++;
|
|
20098
19888
|
} else {
|
|
20099
19889
|
s5 = peg$FAILED;
|
|
20100
19890
|
if (peg$silentFails === 0) {
|
|
20101
|
-
peg$fail(peg$
|
|
19891
|
+
peg$fail(peg$e16);
|
|
20102
19892
|
}
|
|
20103
19893
|
}
|
|
20104
19894
|
}
|
|
@@ -20158,7 +19948,7 @@ function peg$parse(input, options) {
|
|
|
20158
19948
|
s5 = input.substring(s5, peg$currPos);
|
|
20159
19949
|
s6 = peg$parseBlockTag();
|
|
20160
19950
|
if (s6 !== peg$FAILED) {
|
|
20161
|
-
s0 = peg$
|
|
19951
|
+
s0 = peg$f45(s2, s5);
|
|
20162
19952
|
} else {
|
|
20163
19953
|
peg$currPos = s0;
|
|
20164
19954
|
s0 = peg$FAILED;
|
|
@@ -20188,34 +19978,34 @@ function peg$parse(input, options) {
|
|
|
20188
19978
|
s2 = peg$parseMediaAlignmentTags();
|
|
20189
19979
|
if (s2 !== peg$FAILED) {
|
|
20190
19980
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20191
|
-
s3 = peg$
|
|
19981
|
+
s3 = peg$c5;
|
|
20192
19982
|
peg$currPos++;
|
|
20193
19983
|
} else {
|
|
20194
19984
|
s3 = peg$FAILED;
|
|
20195
19985
|
if (peg$silentFails === 0) {
|
|
20196
|
-
peg$fail(peg$
|
|
19986
|
+
peg$fail(peg$e8);
|
|
20197
19987
|
}
|
|
20198
19988
|
}
|
|
20199
19989
|
if (s3 !== peg$FAILED) {
|
|
20200
19990
|
s4 = [];
|
|
20201
19991
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20202
|
-
s5 = peg$
|
|
19992
|
+
s5 = peg$c12;
|
|
20203
19993
|
peg$currPos++;
|
|
20204
19994
|
} else {
|
|
20205
19995
|
s5 = peg$FAILED;
|
|
20206
19996
|
if (peg$silentFails === 0) {
|
|
20207
|
-
peg$fail(peg$
|
|
19997
|
+
peg$fail(peg$e16);
|
|
20208
19998
|
}
|
|
20209
19999
|
}
|
|
20210
20000
|
while (s5 !== peg$FAILED) {
|
|
20211
20001
|
s4.push(s5);
|
|
20212
20002
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20213
|
-
s5 = peg$
|
|
20003
|
+
s5 = peg$c12;
|
|
20214
20004
|
peg$currPos++;
|
|
20215
20005
|
} else {
|
|
20216
20006
|
s5 = peg$FAILED;
|
|
20217
20007
|
if (peg$silentFails === 0) {
|
|
20218
|
-
peg$fail(peg$
|
|
20008
|
+
peg$fail(peg$e16);
|
|
20219
20009
|
}
|
|
20220
20010
|
}
|
|
20221
20011
|
}
|
|
@@ -20223,29 +20013,29 @@ function peg$parse(input, options) {
|
|
|
20223
20013
|
if (s5 !== peg$FAILED) {
|
|
20224
20014
|
s6 = [];
|
|
20225
20015
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20226
|
-
s7 = peg$
|
|
20016
|
+
s7 = peg$c12;
|
|
20227
20017
|
peg$currPos++;
|
|
20228
20018
|
} else {
|
|
20229
20019
|
s7 = peg$FAILED;
|
|
20230
20020
|
if (peg$silentFails === 0) {
|
|
20231
|
-
peg$fail(peg$
|
|
20021
|
+
peg$fail(peg$e16);
|
|
20232
20022
|
}
|
|
20233
20023
|
}
|
|
20234
20024
|
while (s7 !== peg$FAILED) {
|
|
20235
20025
|
s6.push(s7);
|
|
20236
20026
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20237
|
-
s7 = peg$
|
|
20027
|
+
s7 = peg$c12;
|
|
20238
20028
|
peg$currPos++;
|
|
20239
20029
|
} else {
|
|
20240
20030
|
s7 = peg$FAILED;
|
|
20241
20031
|
if (peg$silentFails === 0) {
|
|
20242
|
-
peg$fail(peg$
|
|
20032
|
+
peg$fail(peg$e16);
|
|
20243
20033
|
}
|
|
20244
20034
|
}
|
|
20245
20035
|
}
|
|
20246
20036
|
s7 = peg$parseBlockTag();
|
|
20247
20037
|
if (s7 !== peg$FAILED) {
|
|
20248
|
-
s0 = peg$
|
|
20038
|
+
s0 = peg$f46(s2, s5);
|
|
20249
20039
|
} else {
|
|
20250
20040
|
peg$currPos = s0;
|
|
20251
20041
|
s0 = peg$FAILED;
|
|
@@ -20279,34 +20069,34 @@ function peg$parse(input, options) {
|
|
|
20279
20069
|
s2 = peg$parseMediaBooleanTags();
|
|
20280
20070
|
if (s2 !== peg$FAILED) {
|
|
20281
20071
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20282
|
-
s3 = peg$
|
|
20072
|
+
s3 = peg$c5;
|
|
20283
20073
|
peg$currPos++;
|
|
20284
20074
|
} else {
|
|
20285
20075
|
s3 = peg$FAILED;
|
|
20286
20076
|
if (peg$silentFails === 0) {
|
|
20287
|
-
peg$fail(peg$
|
|
20077
|
+
peg$fail(peg$e8);
|
|
20288
20078
|
}
|
|
20289
20079
|
}
|
|
20290
20080
|
if (s3 !== peg$FAILED) {
|
|
20291
20081
|
s4 = [];
|
|
20292
20082
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20293
|
-
s5 = peg$
|
|
20083
|
+
s5 = peg$c12;
|
|
20294
20084
|
peg$currPos++;
|
|
20295
20085
|
} else {
|
|
20296
20086
|
s5 = peg$FAILED;
|
|
20297
20087
|
if (peg$silentFails === 0) {
|
|
20298
|
-
peg$fail(peg$
|
|
20088
|
+
peg$fail(peg$e16);
|
|
20299
20089
|
}
|
|
20300
20090
|
}
|
|
20301
20091
|
while (s5 !== peg$FAILED) {
|
|
20302
20092
|
s4.push(s5);
|
|
20303
20093
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20304
|
-
s5 = peg$
|
|
20094
|
+
s5 = peg$c12;
|
|
20305
20095
|
peg$currPos++;
|
|
20306
20096
|
} else {
|
|
20307
20097
|
s5 = peg$FAILED;
|
|
20308
20098
|
if (peg$silentFails === 0) {
|
|
20309
|
-
peg$fail(peg$
|
|
20099
|
+
peg$fail(peg$e16);
|
|
20310
20100
|
}
|
|
20311
20101
|
}
|
|
20312
20102
|
}
|
|
@@ -20314,29 +20104,29 @@ function peg$parse(input, options) {
|
|
|
20314
20104
|
if (s5 !== peg$FAILED) {
|
|
20315
20105
|
s6 = [];
|
|
20316
20106
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20317
|
-
s7 = peg$
|
|
20107
|
+
s7 = peg$c12;
|
|
20318
20108
|
peg$currPos++;
|
|
20319
20109
|
} else {
|
|
20320
20110
|
s7 = peg$FAILED;
|
|
20321
20111
|
if (peg$silentFails === 0) {
|
|
20322
|
-
peg$fail(peg$
|
|
20112
|
+
peg$fail(peg$e16);
|
|
20323
20113
|
}
|
|
20324
20114
|
}
|
|
20325
20115
|
while (s7 !== peg$FAILED) {
|
|
20326
20116
|
s6.push(s7);
|
|
20327
20117
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20328
|
-
s7 = peg$
|
|
20118
|
+
s7 = peg$c12;
|
|
20329
20119
|
peg$currPos++;
|
|
20330
20120
|
} else {
|
|
20331
20121
|
s7 = peg$FAILED;
|
|
20332
20122
|
if (peg$silentFails === 0) {
|
|
20333
|
-
peg$fail(peg$
|
|
20123
|
+
peg$fail(peg$e16);
|
|
20334
20124
|
}
|
|
20335
20125
|
}
|
|
20336
20126
|
}
|
|
20337
20127
|
s7 = peg$parseBlockTag();
|
|
20338
20128
|
if (s7 !== peg$FAILED) {
|
|
20339
|
-
s0 = peg$
|
|
20129
|
+
s0 = peg$f47(s2, s5);
|
|
20340
20130
|
} else {
|
|
20341
20131
|
peg$currPos = s0;
|
|
20342
20132
|
s0 = peg$FAILED;
|
|
@@ -20371,29 +20161,29 @@ function peg$parse(input, options) {
|
|
|
20371
20161
|
if (s2 !== peg$FAILED) {
|
|
20372
20162
|
s3 = [];
|
|
20373
20163
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20374
|
-
s4 = peg$
|
|
20164
|
+
s4 = peg$c12;
|
|
20375
20165
|
peg$currPos++;
|
|
20376
20166
|
} else {
|
|
20377
20167
|
s4 = peg$FAILED;
|
|
20378
20168
|
if (peg$silentFails === 0) {
|
|
20379
|
-
peg$fail(peg$
|
|
20169
|
+
peg$fail(peg$e16);
|
|
20380
20170
|
}
|
|
20381
20171
|
}
|
|
20382
20172
|
while (s4 !== peg$FAILED) {
|
|
20383
20173
|
s3.push(s4);
|
|
20384
20174
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20385
|
-
s4 = peg$
|
|
20175
|
+
s4 = peg$c12;
|
|
20386
20176
|
peg$currPos++;
|
|
20387
20177
|
} else {
|
|
20388
20178
|
s4 = peg$FAILED;
|
|
20389
20179
|
if (peg$silentFails === 0) {
|
|
20390
|
-
peg$fail(peg$
|
|
20180
|
+
peg$fail(peg$e16);
|
|
20391
20181
|
}
|
|
20392
20182
|
}
|
|
20393
20183
|
}
|
|
20394
20184
|
s4 = peg$parseBlockTag();
|
|
20395
20185
|
if (s4 !== peg$FAILED) {
|
|
20396
|
-
s0 = peg$
|
|
20186
|
+
s0 = peg$f48(s2);
|
|
20397
20187
|
} else {
|
|
20398
20188
|
peg$currPos = s0;
|
|
20399
20189
|
s0 = peg$FAILED;
|
|
@@ -20418,7 +20208,7 @@ function peg$parse(input, options) {
|
|
|
20418
20208
|
}
|
|
20419
20209
|
s2 = peg$parseBlockTag();
|
|
20420
20210
|
if (s2 !== peg$FAILED) {
|
|
20421
|
-
s0 = peg$
|
|
20211
|
+
s0 = peg$f49();
|
|
20422
20212
|
} else {
|
|
20423
20213
|
peg$currPos = s0;
|
|
20424
20214
|
s0 = peg$FAILED;
|
|
@@ -20493,7 +20283,7 @@ function peg$parse(input, options) {
|
|
|
20493
20283
|
s2 = input.substring(s2, peg$currPos);
|
|
20494
20284
|
s3 = peg$parseBlockTag();
|
|
20495
20285
|
if (s3 !== peg$FAILED) {
|
|
20496
|
-
s0 = peg$
|
|
20286
|
+
s0 = peg$f50(s2);
|
|
20497
20287
|
} else {
|
|
20498
20288
|
peg$currPos = s0;
|
|
20499
20289
|
s0 = peg$FAILED;
|
|
@@ -20656,7 +20446,7 @@ function peg$parse(input, options) {
|
|
|
20656
20446
|
peg$silentFails++;
|
|
20657
20447
|
s0 = peg$currPos;
|
|
20658
20448
|
s1 = peg$parseInlineTags();
|
|
20659
|
-
s1 = peg$
|
|
20449
|
+
s1 = peg$f51(s1);
|
|
20660
20450
|
s0 = s1;
|
|
20661
20451
|
peg$silentFails--;
|
|
20662
20452
|
return s0;
|
|
@@ -20687,7 +20477,7 @@ function peg$parse(input, options) {
|
|
|
20687
20477
|
s3 = peg$parseInlinePlainText();
|
|
20688
20478
|
}
|
|
20689
20479
|
}
|
|
20690
|
-
s0 = peg$
|
|
20480
|
+
s0 = peg$f52(s1, s2);
|
|
20691
20481
|
return s0;
|
|
20692
20482
|
}
|
|
20693
20483
|
function peg$parseInlinePlainText() {
|
|
@@ -20695,7 +20485,7 @@ function peg$parse(input, options) {
|
|
|
20695
20485
|
s0 = peg$currPos;
|
|
20696
20486
|
s1 = peg$parseNL();
|
|
20697
20487
|
if (s1 !== peg$FAILED) {
|
|
20698
|
-
s1 = peg$
|
|
20488
|
+
s1 = peg$f53();
|
|
20699
20489
|
}
|
|
20700
20490
|
s0 = s1;
|
|
20701
20491
|
if (s0 === peg$FAILED) {
|
|
@@ -20823,7 +20613,7 @@ function peg$parse(input, options) {
|
|
|
20823
20613
|
s1 = s2;
|
|
20824
20614
|
}
|
|
20825
20615
|
if (s1 !== peg$FAILED) {
|
|
20826
|
-
s1 = peg$
|
|
20616
|
+
s1 = peg$f54(s1);
|
|
20827
20617
|
}
|
|
20828
20618
|
s0 = s1;
|
|
20829
20619
|
}
|
|
@@ -20874,7 +20664,7 @@ function peg$parse(input, options) {
|
|
|
20874
20664
|
} else {
|
|
20875
20665
|
s4 = peg$FAILED;
|
|
20876
20666
|
if (peg$silentFails === 0) {
|
|
20877
|
-
peg$fail(peg$
|
|
20667
|
+
peg$fail(peg$e15);
|
|
20878
20668
|
}
|
|
20879
20669
|
}
|
|
20880
20670
|
if (s4 !== peg$FAILED) {
|
|
@@ -20886,7 +20676,7 @@ function peg$parse(input, options) {
|
|
|
20886
20676
|
} else {
|
|
20887
20677
|
s4 = peg$FAILED;
|
|
20888
20678
|
if (peg$silentFails === 0) {
|
|
20889
|
-
peg$fail(peg$
|
|
20679
|
+
peg$fail(peg$e15);
|
|
20890
20680
|
}
|
|
20891
20681
|
}
|
|
20892
20682
|
}
|
|
@@ -20901,7 +20691,7 @@ function peg$parse(input, options) {
|
|
|
20901
20691
|
if (s2 !== peg$FAILED) {
|
|
20902
20692
|
s3 = peg$parseBodyBitCloseTag();
|
|
20903
20693
|
if (s3 !== peg$FAILED) {
|
|
20904
|
-
s0 = peg$
|
|
20694
|
+
s0 = peg$f55(s2);
|
|
20905
20695
|
} else {
|
|
20906
20696
|
peg$currPos = s0;
|
|
20907
20697
|
s0 = peg$FAILED;
|
|
@@ -21000,7 +20790,7 @@ function peg$parse(input, options) {
|
|
|
21000
20790
|
}
|
|
21001
20791
|
}
|
|
21002
20792
|
if (s4 !== peg$FAILED) {
|
|
21003
|
-
s0 = peg$
|
|
20793
|
+
s0 = peg$f56(s2);
|
|
21004
20794
|
} else {
|
|
21005
20795
|
peg$currPos = s0;
|
|
21006
20796
|
s0 = peg$FAILED;
|
|
@@ -21102,17 +20892,17 @@ function peg$parse(input, options) {
|
|
|
21102
20892
|
s5 = peg$parseUrl();
|
|
21103
20893
|
if (s5 !== peg$FAILED) {
|
|
21104
20894
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
21105
|
-
s6 = peg$
|
|
20895
|
+
s6 = peg$c0;
|
|
21106
20896
|
peg$currPos++;
|
|
21107
20897
|
} else {
|
|
21108
20898
|
s6 = peg$FAILED;
|
|
21109
20899
|
if (peg$silentFails === 0) {
|
|
21110
|
-
peg$fail(peg$
|
|
20900
|
+
peg$fail(peg$e2);
|
|
21111
20901
|
}
|
|
21112
20902
|
}
|
|
21113
20903
|
if (s6 !== peg$FAILED) {
|
|
21114
20904
|
s7 = peg$parseInlineMediaChain();
|
|
21115
|
-
s0 = peg$
|
|
20905
|
+
s0 = peg$f57(s2, s5, s7);
|
|
21116
20906
|
} else {
|
|
21117
20907
|
peg$currPos = s0;
|
|
21118
20908
|
s0 = peg$FAILED;
|
|
@@ -21211,7 +21001,7 @@ function peg$parse(input, options) {
|
|
|
21211
21001
|
if (s3 !== peg$FAILED) {
|
|
21212
21002
|
s4 = peg$parseAttrChain();
|
|
21213
21003
|
if (s4 !== peg$FAILED) {
|
|
21214
|
-
s0 = peg$
|
|
21004
|
+
s0 = peg$f58(s2, s4);
|
|
21215
21005
|
} else {
|
|
21216
21006
|
peg$currPos = s0;
|
|
21217
21007
|
s0 = peg$FAILED;
|
|
@@ -21300,7 +21090,7 @@ function peg$parse(input, options) {
|
|
|
21300
21090
|
s2 = input.substring(s2, peg$currPos);
|
|
21301
21091
|
s3 = peg$parseBoldTag();
|
|
21302
21092
|
if (s3 !== peg$FAILED) {
|
|
21303
|
-
s0 = peg$
|
|
21093
|
+
s0 = peg$f59(s2);
|
|
21304
21094
|
} else {
|
|
21305
21095
|
peg$currPos = s0;
|
|
21306
21096
|
s0 = peg$FAILED;
|
|
@@ -21385,7 +21175,7 @@ function peg$parse(input, options) {
|
|
|
21385
21175
|
s2 = input.substring(s2, peg$currPos);
|
|
21386
21176
|
s3 = peg$parseItalicTag();
|
|
21387
21177
|
if (s3 !== peg$FAILED) {
|
|
21388
|
-
s0 = peg$
|
|
21178
|
+
s0 = peg$f60(s2);
|
|
21389
21179
|
} else {
|
|
21390
21180
|
peg$currPos = s0;
|
|
21391
21181
|
s0 = peg$FAILED;
|
|
@@ -21470,7 +21260,7 @@ function peg$parse(input, options) {
|
|
|
21470
21260
|
s2 = input.substring(s2, peg$currPos);
|
|
21471
21261
|
s3 = peg$parseLightTag();
|
|
21472
21262
|
if (s3 !== peg$FAILED) {
|
|
21473
|
-
s0 = peg$
|
|
21263
|
+
s0 = peg$f61(s2);
|
|
21474
21264
|
} else {
|
|
21475
21265
|
peg$currPos = s0;
|
|
21476
21266
|
s0 = peg$FAILED;
|
|
@@ -21555,7 +21345,7 @@ function peg$parse(input, options) {
|
|
|
21555
21345
|
s2 = input.substring(s2, peg$currPos);
|
|
21556
21346
|
s3 = peg$parseHighlightTag();
|
|
21557
21347
|
if (s3 !== peg$FAILED) {
|
|
21558
|
-
s0 = peg$
|
|
21348
|
+
s0 = peg$f62(s2);
|
|
21559
21349
|
} else {
|
|
21560
21350
|
peg$currPos = s0;
|
|
21561
21351
|
s0 = peg$FAILED;
|
|
@@ -21568,7 +21358,7 @@ function peg$parse(input, options) {
|
|
|
21568
21358
|
s0 = peg$currPos;
|
|
21569
21359
|
s1 = peg$parseUrl();
|
|
21570
21360
|
if (s1 !== peg$FAILED) {
|
|
21571
|
-
s1 = peg$
|
|
21361
|
+
s1 = peg$f63(s1);
|
|
21572
21362
|
}
|
|
21573
21363
|
s0 = s1;
|
|
21574
21364
|
}
|
|
@@ -21683,12 +21473,12 @@ function peg$parse(input, options) {
|
|
|
21683
21473
|
let s0, s1, s2, s3;
|
|
21684
21474
|
s0 = peg$currPos;
|
|
21685
21475
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
21686
|
-
s1 = peg$
|
|
21476
|
+
s1 = peg$c0;
|
|
21687
21477
|
peg$currPos++;
|
|
21688
21478
|
} else {
|
|
21689
21479
|
s1 = peg$FAILED;
|
|
21690
21480
|
if (peg$silentFails === 0) {
|
|
21691
|
-
peg$fail(peg$
|
|
21481
|
+
peg$fail(peg$e2);
|
|
21692
21482
|
}
|
|
21693
21483
|
}
|
|
21694
21484
|
if (s1 !== peg$FAILED) {
|
|
@@ -21703,7 +21493,7 @@ function peg$parse(input, options) {
|
|
|
21703
21493
|
s2 = peg$FAILED;
|
|
21704
21494
|
}
|
|
21705
21495
|
if (s2 !== peg$FAILED) {
|
|
21706
|
-
s0 = peg$
|
|
21496
|
+
s0 = peg$f64(s2);
|
|
21707
21497
|
} else {
|
|
21708
21498
|
peg$currPos = s0;
|
|
21709
21499
|
s0 = peg$FAILED;
|
|
@@ -21723,7 +21513,7 @@ function peg$parse(input, options) {
|
|
|
21723
21513
|
s1.push(s2);
|
|
21724
21514
|
s2 = peg$parseInlineMediaChainItem();
|
|
21725
21515
|
}
|
|
21726
|
-
s1 = peg$
|
|
21516
|
+
s1 = peg$f65(s1);
|
|
21727
21517
|
s0 = s1;
|
|
21728
21518
|
return s0;
|
|
21729
21519
|
}
|
|
@@ -21796,7 +21586,7 @@ function peg$parse(input, options) {
|
|
|
21796
21586
|
s2 = input.substring(s2, peg$currPos);
|
|
21797
21587
|
s3 = peg$parseBlockTag();
|
|
21798
21588
|
if (s3 !== peg$FAILED) {
|
|
21799
|
-
s0 = peg$
|
|
21589
|
+
s0 = peg$f66(s2);
|
|
21800
21590
|
} else {
|
|
21801
21591
|
peg$currPos = s0;
|
|
21802
21592
|
s0 = peg$FAILED;
|
|
@@ -21830,34 +21620,34 @@ function peg$parse(input, options) {
|
|
|
21830
21620
|
}
|
|
21831
21621
|
if (s2 !== peg$FAILED) {
|
|
21832
21622
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21833
|
-
s3 = peg$
|
|
21623
|
+
s3 = peg$c5;
|
|
21834
21624
|
peg$currPos++;
|
|
21835
21625
|
} else {
|
|
21836
21626
|
s3 = peg$FAILED;
|
|
21837
21627
|
if (peg$silentFails === 0) {
|
|
21838
|
-
peg$fail(peg$
|
|
21628
|
+
peg$fail(peg$e8);
|
|
21839
21629
|
}
|
|
21840
21630
|
}
|
|
21841
21631
|
if (s3 !== peg$FAILED) {
|
|
21842
21632
|
s4 = [];
|
|
21843
21633
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21844
|
-
s5 = peg$
|
|
21634
|
+
s5 = peg$c12;
|
|
21845
21635
|
peg$currPos++;
|
|
21846
21636
|
} else {
|
|
21847
21637
|
s5 = peg$FAILED;
|
|
21848
21638
|
if (peg$silentFails === 0) {
|
|
21849
|
-
peg$fail(peg$
|
|
21639
|
+
peg$fail(peg$e16);
|
|
21850
21640
|
}
|
|
21851
21641
|
}
|
|
21852
21642
|
while (s5 !== peg$FAILED) {
|
|
21853
21643
|
s4.push(s5);
|
|
21854
21644
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21855
|
-
s5 = peg$
|
|
21645
|
+
s5 = peg$c12;
|
|
21856
21646
|
peg$currPos++;
|
|
21857
21647
|
} else {
|
|
21858
21648
|
s5 = peg$FAILED;
|
|
21859
21649
|
if (peg$silentFails === 0) {
|
|
21860
|
-
peg$fail(peg$
|
|
21650
|
+
peg$fail(peg$e16);
|
|
21861
21651
|
}
|
|
21862
21652
|
}
|
|
21863
21653
|
}
|
|
@@ -21917,7 +21707,7 @@ function peg$parse(input, options) {
|
|
|
21917
21707
|
s5 = input.substring(s5, peg$currPos);
|
|
21918
21708
|
s6 = peg$parseBlockTag();
|
|
21919
21709
|
if (s6 !== peg$FAILED) {
|
|
21920
|
-
s0 = peg$
|
|
21710
|
+
s0 = peg$f67(s2, s5);
|
|
21921
21711
|
} else {
|
|
21922
21712
|
peg$currPos = s0;
|
|
21923
21713
|
s0 = peg$FAILED;
|
|
@@ -21947,34 +21737,34 @@ function peg$parse(input, options) {
|
|
|
21947
21737
|
s2 = peg$parseMediaSizeTags();
|
|
21948
21738
|
if (s2 !== peg$FAILED) {
|
|
21949
21739
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21950
|
-
s3 = peg$
|
|
21740
|
+
s3 = peg$c5;
|
|
21951
21741
|
peg$currPos++;
|
|
21952
21742
|
} else {
|
|
21953
21743
|
s3 = peg$FAILED;
|
|
21954
21744
|
if (peg$silentFails === 0) {
|
|
21955
|
-
peg$fail(peg$
|
|
21745
|
+
peg$fail(peg$e8);
|
|
21956
21746
|
}
|
|
21957
21747
|
}
|
|
21958
21748
|
if (s3 !== peg$FAILED) {
|
|
21959
21749
|
s4 = [];
|
|
21960
21750
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21961
|
-
s5 = peg$
|
|
21751
|
+
s5 = peg$c12;
|
|
21962
21752
|
peg$currPos++;
|
|
21963
21753
|
} else {
|
|
21964
21754
|
s5 = peg$FAILED;
|
|
21965
21755
|
if (peg$silentFails === 0) {
|
|
21966
|
-
peg$fail(peg$
|
|
21756
|
+
peg$fail(peg$e16);
|
|
21967
21757
|
}
|
|
21968
21758
|
}
|
|
21969
21759
|
while (s5 !== peg$FAILED) {
|
|
21970
21760
|
s4.push(s5);
|
|
21971
21761
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21972
|
-
s5 = peg$
|
|
21762
|
+
s5 = peg$c12;
|
|
21973
21763
|
peg$currPos++;
|
|
21974
21764
|
} else {
|
|
21975
21765
|
s5 = peg$FAILED;
|
|
21976
21766
|
if (peg$silentFails === 0) {
|
|
21977
|
-
peg$fail(peg$
|
|
21767
|
+
peg$fail(peg$e16);
|
|
21978
21768
|
}
|
|
21979
21769
|
}
|
|
21980
21770
|
}
|
|
@@ -21998,7 +21788,7 @@ function peg$parse(input, options) {
|
|
|
21998
21788
|
} else {
|
|
21999
21789
|
s9 = peg$FAILED;
|
|
22000
21790
|
if (peg$silentFails === 0) {
|
|
22001
|
-
peg$fail(peg$
|
|
21791
|
+
peg$fail(peg$e15);
|
|
22002
21792
|
}
|
|
22003
21793
|
}
|
|
22004
21794
|
if (s9 !== peg$FAILED) {
|
|
@@ -22033,7 +21823,7 @@ function peg$parse(input, options) {
|
|
|
22033
21823
|
} else {
|
|
22034
21824
|
s9 = peg$FAILED;
|
|
22035
21825
|
if (peg$silentFails === 0) {
|
|
22036
|
-
peg$fail(peg$
|
|
21826
|
+
peg$fail(peg$e15);
|
|
22037
21827
|
}
|
|
22038
21828
|
}
|
|
22039
21829
|
if (s9 !== peg$FAILED) {
|
|
@@ -22059,7 +21849,7 @@ function peg$parse(input, options) {
|
|
|
22059
21849
|
if (s5 !== peg$FAILED) {
|
|
22060
21850
|
s6 = peg$parseBlockTag();
|
|
22061
21851
|
if (s6 !== peg$FAILED) {
|
|
22062
|
-
s0 = peg$
|
|
21852
|
+
s0 = peg$f68(s2, s5);
|
|
22063
21853
|
} else {
|
|
22064
21854
|
peg$currPos = s0;
|
|
22065
21855
|
s0 = peg$FAILED;
|
|
@@ -22093,34 +21883,34 @@ function peg$parse(input, options) {
|
|
|
22093
21883
|
s2 = peg$parseMediaSizeTags();
|
|
22094
21884
|
if (s2 !== peg$FAILED) {
|
|
22095
21885
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22096
|
-
s3 = peg$
|
|
21886
|
+
s3 = peg$c5;
|
|
22097
21887
|
peg$currPos++;
|
|
22098
21888
|
} else {
|
|
22099
21889
|
s3 = peg$FAILED;
|
|
22100
21890
|
if (peg$silentFails === 0) {
|
|
22101
|
-
peg$fail(peg$
|
|
21891
|
+
peg$fail(peg$e8);
|
|
22102
21892
|
}
|
|
22103
21893
|
}
|
|
22104
21894
|
if (s3 !== peg$FAILED) {
|
|
22105
21895
|
s4 = [];
|
|
22106
21896
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22107
|
-
s5 = peg$
|
|
21897
|
+
s5 = peg$c12;
|
|
22108
21898
|
peg$currPos++;
|
|
22109
21899
|
} else {
|
|
22110
21900
|
s5 = peg$FAILED;
|
|
22111
21901
|
if (peg$silentFails === 0) {
|
|
22112
|
-
peg$fail(peg$
|
|
21902
|
+
peg$fail(peg$e16);
|
|
22113
21903
|
}
|
|
22114
21904
|
}
|
|
22115
21905
|
while (s5 !== peg$FAILED) {
|
|
22116
21906
|
s4.push(s5);
|
|
22117
21907
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22118
|
-
s5 = peg$
|
|
21908
|
+
s5 = peg$c12;
|
|
22119
21909
|
peg$currPos++;
|
|
22120
21910
|
} else {
|
|
22121
21911
|
s5 = peg$FAILED;
|
|
22122
21912
|
if (peg$silentFails === 0) {
|
|
22123
|
-
peg$fail(peg$
|
|
21913
|
+
peg$fail(peg$e16);
|
|
22124
21914
|
}
|
|
22125
21915
|
}
|
|
22126
21916
|
}
|
|
@@ -22180,7 +21970,7 @@ function peg$parse(input, options) {
|
|
|
22180
21970
|
s5 = input.substring(s5, peg$currPos);
|
|
22181
21971
|
s6 = peg$parseBlockTag();
|
|
22182
21972
|
if (s6 !== peg$FAILED) {
|
|
22183
|
-
s0 = peg$
|
|
21973
|
+
s0 = peg$f69(s2, s5);
|
|
22184
21974
|
} else {
|
|
22185
21975
|
peg$currPos = s0;
|
|
22186
21976
|
s0 = peg$FAILED;
|
|
@@ -22218,34 +22008,34 @@ function peg$parse(input, options) {
|
|
|
22218
22008
|
}
|
|
22219
22009
|
if (s2 !== peg$FAILED) {
|
|
22220
22010
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22221
|
-
s3 = peg$
|
|
22011
|
+
s3 = peg$c5;
|
|
22222
22012
|
peg$currPos++;
|
|
22223
22013
|
} else {
|
|
22224
22014
|
s3 = peg$FAILED;
|
|
22225
22015
|
if (peg$silentFails === 0) {
|
|
22226
|
-
peg$fail(peg$
|
|
22016
|
+
peg$fail(peg$e8);
|
|
22227
22017
|
}
|
|
22228
22018
|
}
|
|
22229
22019
|
if (s3 !== peg$FAILED) {
|
|
22230
22020
|
s4 = [];
|
|
22231
22021
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22232
|
-
s5 = peg$
|
|
22022
|
+
s5 = peg$c12;
|
|
22233
22023
|
peg$currPos++;
|
|
22234
22024
|
} else {
|
|
22235
22025
|
s5 = peg$FAILED;
|
|
22236
22026
|
if (peg$silentFails === 0) {
|
|
22237
|
-
peg$fail(peg$
|
|
22027
|
+
peg$fail(peg$e16);
|
|
22238
22028
|
}
|
|
22239
22029
|
}
|
|
22240
22030
|
while (s5 !== peg$FAILED) {
|
|
22241
22031
|
s4.push(s5);
|
|
22242
22032
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22243
|
-
s5 = peg$
|
|
22033
|
+
s5 = peg$c12;
|
|
22244
22034
|
peg$currPos++;
|
|
22245
22035
|
} else {
|
|
22246
22036
|
s5 = peg$FAILED;
|
|
22247
22037
|
if (peg$silentFails === 0) {
|
|
22248
|
-
peg$fail(peg$
|
|
22038
|
+
peg$fail(peg$e16);
|
|
22249
22039
|
}
|
|
22250
22040
|
}
|
|
22251
22041
|
}
|
|
@@ -22253,7 +22043,7 @@ function peg$parse(input, options) {
|
|
|
22253
22043
|
if (s5 !== peg$FAILED) {
|
|
22254
22044
|
s6 = peg$parseBlockTag();
|
|
22255
22045
|
if (s6 !== peg$FAILED) {
|
|
22256
|
-
s0 = peg$
|
|
22046
|
+
s0 = peg$f70(s2, s5);
|
|
22257
22047
|
} else {
|
|
22258
22048
|
peg$currPos = s0;
|
|
22259
22049
|
s0 = peg$FAILED;
|
|
@@ -22295,34 +22085,34 @@ function peg$parse(input, options) {
|
|
|
22295
22085
|
}
|
|
22296
22086
|
if (s2 !== peg$FAILED) {
|
|
22297
22087
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22298
|
-
s3 = peg$
|
|
22088
|
+
s3 = peg$c5;
|
|
22299
22089
|
peg$currPos++;
|
|
22300
22090
|
} else {
|
|
22301
22091
|
s3 = peg$FAILED;
|
|
22302
22092
|
if (peg$silentFails === 0) {
|
|
22303
|
-
peg$fail(peg$
|
|
22093
|
+
peg$fail(peg$e8);
|
|
22304
22094
|
}
|
|
22305
22095
|
}
|
|
22306
22096
|
if (s3 !== peg$FAILED) {
|
|
22307
22097
|
s4 = [];
|
|
22308
22098
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22309
|
-
s5 = peg$
|
|
22099
|
+
s5 = peg$c12;
|
|
22310
22100
|
peg$currPos++;
|
|
22311
22101
|
} else {
|
|
22312
22102
|
s5 = peg$FAILED;
|
|
22313
22103
|
if (peg$silentFails === 0) {
|
|
22314
|
-
peg$fail(peg$
|
|
22104
|
+
peg$fail(peg$e16);
|
|
22315
22105
|
}
|
|
22316
22106
|
}
|
|
22317
22107
|
while (s5 !== peg$FAILED) {
|
|
22318
22108
|
s4.push(s5);
|
|
22319
22109
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22320
|
-
s5 = peg$
|
|
22110
|
+
s5 = peg$c12;
|
|
22321
22111
|
peg$currPos++;
|
|
22322
22112
|
} else {
|
|
22323
22113
|
s5 = peg$FAILED;
|
|
22324
22114
|
if (peg$silentFails === 0) {
|
|
22325
|
-
peg$fail(peg$
|
|
22115
|
+
peg$fail(peg$e16);
|
|
22326
22116
|
}
|
|
22327
22117
|
}
|
|
22328
22118
|
}
|
|
@@ -22330,7 +22120,7 @@ function peg$parse(input, options) {
|
|
|
22330
22120
|
if (s5 !== peg$FAILED) {
|
|
22331
22121
|
s6 = peg$parseBlockTag();
|
|
22332
22122
|
if (s6 !== peg$FAILED) {
|
|
22333
|
-
s0 = peg$
|
|
22123
|
+
s0 = peg$f71(s2, s5);
|
|
22334
22124
|
} else {
|
|
22335
22125
|
peg$currPos = s0;
|
|
22336
22126
|
s0 = peg$FAILED;
|
|
@@ -22570,7 +22360,7 @@ function peg$parse(input, options) {
|
|
|
22570
22360
|
s2 = input.substring(s2, peg$currPos);
|
|
22571
22361
|
s3 = peg$parseBlockTag();
|
|
22572
22362
|
if (s3 !== peg$FAILED) {
|
|
22573
|
-
s0 = peg$
|
|
22363
|
+
s0 = peg$f72(s2);
|
|
22574
22364
|
} else {
|
|
22575
22365
|
peg$currPos = s0;
|
|
22576
22366
|
s0 = peg$FAILED;
|
|
@@ -22714,7 +22504,7 @@ function peg$parse(input, options) {
|
|
|
22714
22504
|
s6 = input.substring(s6, peg$currPos);
|
|
22715
22505
|
s7 = peg$parseBlockTag();
|
|
22716
22506
|
if (s7 !== peg$FAILED) {
|
|
22717
|
-
s0 = peg$
|
|
22507
|
+
s0 = peg$f73(s2, s3, s6);
|
|
22718
22508
|
} else {
|
|
22719
22509
|
peg$currPos = s0;
|
|
22720
22510
|
s0 = peg$FAILED;
|
|
@@ -22865,7 +22655,7 @@ function peg$parse(input, options) {
|
|
|
22865
22655
|
s5 = input.substring(s5, peg$currPos);
|
|
22866
22656
|
s6 = peg$parseBlockTag();
|
|
22867
22657
|
if (s6 !== peg$FAILED) {
|
|
22868
|
-
s0 = peg$
|
|
22658
|
+
s0 = peg$f74(s2, s5);
|
|
22869
22659
|
} else {
|
|
22870
22660
|
peg$currPos = s0;
|
|
22871
22661
|
s0 = peg$FAILED;
|
|
@@ -22950,7 +22740,7 @@ function peg$parse(input, options) {
|
|
|
22950
22740
|
s2 = input.substring(s2, peg$currPos);
|
|
22951
22741
|
s3 = peg$parseBlockTag();
|
|
22952
22742
|
if (s3 !== peg$FAILED) {
|
|
22953
|
-
s0 = peg$
|
|
22743
|
+
s0 = peg$f75(s2);
|
|
22954
22744
|
} else {
|
|
22955
22745
|
peg$currPos = s0;
|
|
22956
22746
|
s0 = peg$FAILED;
|
|
@@ -23027,7 +22817,7 @@ function peg$parse(input, options) {
|
|
|
23027
22817
|
s2 = input.substring(s2, peg$currPos);
|
|
23028
22818
|
s3 = peg$parseBlockTag();
|
|
23029
22819
|
if (s3 !== peg$FAILED) {
|
|
23030
|
-
s0 = peg$
|
|
22820
|
+
s0 = peg$f76(s2);
|
|
23031
22821
|
} else {
|
|
23032
22822
|
peg$currPos = s0;
|
|
23033
22823
|
s0 = peg$FAILED;
|
|
@@ -23105,7 +22895,7 @@ function peg$parse(input, options) {
|
|
|
23105
22895
|
s3 = peg$parseBlockTag();
|
|
23106
22896
|
if (s3 !== peg$FAILED) {
|
|
23107
22897
|
s4 = peg$parseMediaChain();
|
|
23108
|
-
s0 = peg$
|
|
22898
|
+
s0 = peg$f77(s2, s4);
|
|
23109
22899
|
} else {
|
|
23110
22900
|
peg$currPos = s0;
|
|
23111
22901
|
s0 = peg$FAILED;
|
|
@@ -23182,7 +22972,7 @@ function peg$parse(input, options) {
|
|
|
23182
22972
|
s2 = input.substring(s2, peg$currPos);
|
|
23183
22973
|
s3 = peg$parseBlockTag();
|
|
23184
22974
|
if (s3 !== peg$FAILED) {
|
|
23185
|
-
s0 = peg$
|
|
22975
|
+
s0 = peg$f78(s2);
|
|
23186
22976
|
} else {
|
|
23187
22977
|
peg$currPos = s0;
|
|
23188
22978
|
s0 = peg$FAILED;
|
|
@@ -23259,7 +23049,7 @@ function peg$parse(input, options) {
|
|
|
23259
23049
|
s2 = input.substring(s2, peg$currPos);
|
|
23260
23050
|
s3 = peg$parseBlockTag();
|
|
23261
23051
|
if (s3 !== peg$FAILED) {
|
|
23262
|
-
s0 = peg$
|
|
23052
|
+
s0 = peg$f79(s2);
|
|
23263
23053
|
} else {
|
|
23264
23054
|
peg$currPos = s0;
|
|
23265
23055
|
s0 = peg$FAILED;
|
|
@@ -23336,7 +23126,7 @@ function peg$parse(input, options) {
|
|
|
23336
23126
|
s2 = input.substring(s2, peg$currPos);
|
|
23337
23127
|
s3 = peg$parseBlockTag();
|
|
23338
23128
|
if (s3 !== peg$FAILED) {
|
|
23339
|
-
s0 = peg$
|
|
23129
|
+
s0 = peg$f80(s2);
|
|
23340
23130
|
} else {
|
|
23341
23131
|
peg$currPos = s0;
|
|
23342
23132
|
s0 = peg$FAILED;
|
|
@@ -23347,19 +23137,19 @@ function peg$parse(input, options) {
|
|
|
23347
23137
|
}
|
|
23348
23138
|
if (s0 === peg$FAILED) {
|
|
23349
23139
|
s0 = peg$currPos;
|
|
23350
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
23351
|
-
s1 = peg$
|
|
23140
|
+
if (input.substr(peg$currPos, 4) === peg$c4) {
|
|
23141
|
+
s1 = peg$c4;
|
|
23352
23142
|
peg$currPos += 4;
|
|
23353
23143
|
} else {
|
|
23354
23144
|
s1 = peg$FAILED;
|
|
23355
23145
|
if (peg$silentFails === 0) {
|
|
23356
|
-
peg$fail(peg$
|
|
23146
|
+
peg$fail(peg$e6);
|
|
23357
23147
|
}
|
|
23358
23148
|
}
|
|
23359
23149
|
if (s1 !== peg$FAILED) {
|
|
23360
23150
|
s2 = peg$parseBlockTag();
|
|
23361
23151
|
if (s2 !== peg$FAILED) {
|
|
23362
|
-
s0 = peg$
|
|
23152
|
+
s0 = peg$f81();
|
|
23363
23153
|
} else {
|
|
23364
23154
|
peg$currPos = s0;
|
|
23365
23155
|
s0 = peg$FAILED;
|
|
@@ -23436,7 +23226,7 @@ function peg$parse(input, options) {
|
|
|
23436
23226
|
s2 = input.substring(s2, peg$currPos);
|
|
23437
23227
|
s3 = peg$parseBlockTag();
|
|
23438
23228
|
if (s3 !== peg$FAILED) {
|
|
23439
|
-
s0 = peg$
|
|
23229
|
+
s0 = peg$f82(s2);
|
|
23440
23230
|
} else {
|
|
23441
23231
|
peg$currPos = s0;
|
|
23442
23232
|
s0 = peg$FAILED;
|
|
@@ -23459,7 +23249,7 @@ function peg$parse(input, options) {
|
|
|
23459
23249
|
if (s1 !== peg$FAILED) {
|
|
23460
23250
|
s2 = peg$parseBlockTag();
|
|
23461
23251
|
if (s2 !== peg$FAILED) {
|
|
23462
|
-
s0 = peg$
|
|
23252
|
+
s0 = peg$f83();
|
|
23463
23253
|
} else {
|
|
23464
23254
|
peg$currPos = s0;
|
|
23465
23255
|
s0 = peg$FAILED;
|
|
@@ -23536,7 +23326,7 @@ function peg$parse(input, options) {
|
|
|
23536
23326
|
s2 = input.substring(s2, peg$currPos);
|
|
23537
23327
|
s3 = peg$parseBlockTag();
|
|
23538
23328
|
if (s3 !== peg$FAILED) {
|
|
23539
|
-
s0 = peg$
|
|
23329
|
+
s0 = peg$f84(s2);
|
|
23540
23330
|
} else {
|
|
23541
23331
|
peg$currPos = s0;
|
|
23542
23332
|
s0 = peg$FAILED;
|
|
@@ -23637,7 +23427,7 @@ function peg$parse(input, options) {
|
|
|
23637
23427
|
if (s2 !== peg$FAILED) {
|
|
23638
23428
|
s3 = peg$parseBlockTag();
|
|
23639
23429
|
if (s3 !== peg$FAILED) {
|
|
23640
|
-
s0 = peg$
|
|
23430
|
+
s0 = peg$f85(s2);
|
|
23641
23431
|
} else {
|
|
23642
23432
|
peg$currPos = s0;
|
|
23643
23433
|
s0 = peg$FAILED;
|
|
@@ -23666,7 +23456,7 @@ function peg$parse(input, options) {
|
|
|
23666
23456
|
if (s2 !== peg$FAILED) {
|
|
23667
23457
|
s3 = peg$parseBlockTag();
|
|
23668
23458
|
if (s3 !== peg$FAILED) {
|
|
23669
|
-
s0 = peg$
|
|
23459
|
+
s0 = peg$f86(s2);
|
|
23670
23460
|
} else {
|
|
23671
23461
|
peg$currPos = s0;
|
|
23672
23462
|
s0 = peg$FAILED;
|
|
@@ -23747,7 +23537,7 @@ function peg$parse(input, options) {
|
|
|
23747
23537
|
s2 = input.substring(s2, peg$currPos);
|
|
23748
23538
|
s3 = peg$parseBlockTag();
|
|
23749
23539
|
if (s3 !== peg$FAILED) {
|
|
23750
|
-
s0 = peg$
|
|
23540
|
+
s0 = peg$f87(s2);
|
|
23751
23541
|
} else {
|
|
23752
23542
|
peg$currPos = s0;
|
|
23753
23543
|
s0 = peg$FAILED;
|
|
@@ -23762,7 +23552,7 @@ function peg$parse(input, options) {
|
|
|
23762
23552
|
if (s1 !== peg$FAILED) {
|
|
23763
23553
|
s2 = peg$parseBlockTag();
|
|
23764
23554
|
if (s2 !== peg$FAILED) {
|
|
23765
|
-
s0 = peg$
|
|
23555
|
+
s0 = peg$f88(s1);
|
|
23766
23556
|
} else {
|
|
23767
23557
|
peg$currPos = s0;
|
|
23768
23558
|
s0 = peg$FAILED;
|
|
@@ -23839,7 +23629,7 @@ function peg$parse(input, options) {
|
|
|
23839
23629
|
s2 = input.substring(s2, peg$currPos);
|
|
23840
23630
|
s3 = peg$parseBlockTag();
|
|
23841
23631
|
if (s3 !== peg$FAILED) {
|
|
23842
|
-
s0 = peg$
|
|
23632
|
+
s0 = peg$f89(s2);
|
|
23843
23633
|
} else {
|
|
23844
23634
|
peg$currPos = s0;
|
|
23845
23635
|
s0 = peg$FAILED;
|
|
@@ -23944,7 +23734,7 @@ function peg$parse(input, options) {
|
|
|
23944
23734
|
}
|
|
23945
23735
|
}
|
|
23946
23736
|
s2 = input.substring(s2, peg$currPos);
|
|
23947
|
-
s0 = peg$
|
|
23737
|
+
s0 = peg$f90(s2);
|
|
23948
23738
|
} else {
|
|
23949
23739
|
peg$currPos = s0;
|
|
23950
23740
|
s0 = peg$FAILED;
|
|
@@ -24653,7 +24443,7 @@ function peg$parse(input, options) {
|
|
|
24653
24443
|
peg$silentFails++;
|
|
24654
24444
|
s0 = peg$currPos;
|
|
24655
24445
|
s1 = peg$parsebitmarkMinusMinusString();
|
|
24656
|
-
s1 = peg$
|
|
24446
|
+
s1 = peg$f91(s1);
|
|
24657
24447
|
s0 = s1;
|
|
24658
24448
|
peg$silentFails--;
|
|
24659
24449
|
return s0;
|
|
@@ -24678,7 +24468,7 @@ function peg$parse(input, options) {
|
|
|
24678
24468
|
s3 = peg$parsePlainText();
|
|
24679
24469
|
}
|
|
24680
24470
|
}
|
|
24681
|
-
s0 = peg$
|
|
24471
|
+
s0 = peg$f92(s1, s2);
|
|
24682
24472
|
peg$silentFails--;
|
|
24683
24473
|
return s0;
|
|
24684
24474
|
}
|
|
@@ -24687,7 +24477,7 @@ function peg$parse(input, options) {
|
|
|
24687
24477
|
s0 = peg$currPos;
|
|
24688
24478
|
s1 = peg$parseNL();
|
|
24689
24479
|
if (s1 !== peg$FAILED) {
|
|
24690
|
-
s1 = peg$
|
|
24480
|
+
s1 = peg$f93();
|
|
24691
24481
|
}
|
|
24692
24482
|
s0 = s1;
|
|
24693
24483
|
if (s0 === peg$FAILED) {
|
|
@@ -24815,7 +24605,7 @@ function peg$parse(input, options) {
|
|
|
24815
24605
|
s1 = s2;
|
|
24816
24606
|
}
|
|
24817
24607
|
if (s1 !== peg$FAILED) {
|
|
24818
|
-
s1 = peg$
|
|
24608
|
+
s1 = peg$f94(s1);
|
|
24819
24609
|
}
|
|
24820
24610
|
s0 = s1;
|
|
24821
24611
|
}
|
|
@@ -24988,7 +24778,7 @@ function peg$parse(input, options) {
|
|
|
24988
24778
|
} else {
|
|
24989
24779
|
s4 = peg$FAILED;
|
|
24990
24780
|
if (peg$silentFails === 0) {
|
|
24991
|
-
peg$fail(peg$
|
|
24781
|
+
peg$fail(peg$e15);
|
|
24992
24782
|
}
|
|
24993
24783
|
}
|
|
24994
24784
|
if (s4 !== peg$FAILED) {
|
|
@@ -25000,7 +24790,7 @@ function peg$parse(input, options) {
|
|
|
25000
24790
|
} else {
|
|
25001
24791
|
s4 = peg$FAILED;
|
|
25002
24792
|
if (peg$silentFails === 0) {
|
|
25003
|
-
peg$fail(peg$
|
|
24793
|
+
peg$fail(peg$e15);
|
|
25004
24794
|
}
|
|
25005
24795
|
}
|
|
25006
24796
|
}
|
|
@@ -25015,7 +24805,7 @@ function peg$parse(input, options) {
|
|
|
25015
24805
|
if (s2 !== peg$FAILED) {
|
|
25016
24806
|
s3 = peg$parseBodyBitCloseTag();
|
|
25017
24807
|
if (s3 !== peg$FAILED) {
|
|
25018
|
-
s0 = peg$
|
|
24808
|
+
s0 = peg$f95(s2);
|
|
25019
24809
|
} else {
|
|
25020
24810
|
peg$currPos = s0;
|
|
25021
24811
|
s0 = peg$FAILED;
|
|
@@ -25104,7 +24894,7 @@ function peg$parse(input, options) {
|
|
|
25104
24894
|
s2 = input.substring(s2, peg$currPos);
|
|
25105
24895
|
s3 = peg$parseBoldTag();
|
|
25106
24896
|
if (s3 !== peg$FAILED) {
|
|
25107
|
-
s0 = peg$
|
|
24897
|
+
s0 = peg$f96(s2);
|
|
25108
24898
|
} else {
|
|
25109
24899
|
peg$currPos = s0;
|
|
25110
24900
|
s0 = peg$FAILED;
|
|
@@ -25189,7 +24979,7 @@ function peg$parse(input, options) {
|
|
|
25189
24979
|
s2 = input.substring(s2, peg$currPos);
|
|
25190
24980
|
s3 = peg$parseItalicTag();
|
|
25191
24981
|
if (s3 !== peg$FAILED) {
|
|
25192
|
-
s0 = peg$
|
|
24982
|
+
s0 = peg$f97(s2);
|
|
25193
24983
|
} else {
|
|
25194
24984
|
peg$currPos = s0;
|
|
25195
24985
|
s0 = peg$FAILED;
|
|
@@ -25274,7 +25064,7 @@ function peg$parse(input, options) {
|
|
|
25274
25064
|
s2 = input.substring(s2, peg$currPos);
|
|
25275
25065
|
s3 = peg$parseLightTag();
|
|
25276
25066
|
if (s3 !== peg$FAILED) {
|
|
25277
|
-
s0 = peg$
|
|
25067
|
+
s0 = peg$f98(s2);
|
|
25278
25068
|
} else {
|
|
25279
25069
|
peg$currPos = s0;
|
|
25280
25070
|
s0 = peg$FAILED;
|
|
@@ -25359,7 +25149,7 @@ function peg$parse(input, options) {
|
|
|
25359
25149
|
s2 = input.substring(s2, peg$currPos);
|
|
25360
25150
|
s3 = peg$parseHighlightTag();
|
|
25361
25151
|
if (s3 !== peg$FAILED) {
|
|
25362
|
-
s0 = peg$
|
|
25152
|
+
s0 = peg$f99(s2);
|
|
25363
25153
|
} else {
|
|
25364
25154
|
peg$currPos = s0;
|
|
25365
25155
|
s0 = peg$FAILED;
|
|
@@ -25743,7 +25533,7 @@ function peg$parse(input, options) {
|
|
|
25743
25533
|
}
|
|
25744
25534
|
}
|
|
25745
25535
|
s2 = input.substring(s2, peg$currPos);
|
|
25746
|
-
s0 = peg$
|
|
25536
|
+
s0 = peg$f100(s1, s2);
|
|
25747
25537
|
} else {
|
|
25748
25538
|
peg$currPos = s0;
|
|
25749
25539
|
s0 = peg$FAILED;
|
|
@@ -25764,17 +25554,7 @@ function peg$parse(input, options) {
|
|
|
25764
25554
|
return s0;
|
|
25765
25555
|
}
|
|
25766
25556
|
var indentStack = [], indent = "";
|
|
25767
|
-
input = input.
|
|
25768
|
-
var _firstNonWs = input.search(/\S/);
|
|
25769
|
-
if (_firstNonWs < 0) {
|
|
25770
|
-
input = "";
|
|
25771
|
-
} else {
|
|
25772
|
-
var _lineStart = input.lastIndexOf("\n", _firstNonWs) + 1;
|
|
25773
|
-
var _lead = input.slice(_lineStart, _firstNonWs);
|
|
25774
|
-
var _rest = input.slice(_firstNonWs);
|
|
25775
|
-
var _isIndentedListItem = /^\t+$/.test(_lead) && /^•([0-9]+[Ii]?|_|[Aa]|\+|-)? /.test(_rest);
|
|
25776
|
-
input = _isIndentedListItem ? _lead + _rest : _rest;
|
|
25777
|
-
}
|
|
25557
|
+
input = input.trimStart();
|
|
25778
25558
|
peg$result = peg$startRuleFunction();
|
|
25779
25559
|
const peg$success = peg$result !== peg$FAILED && peg$currPos === input.length;
|
|
25780
25560
|
function peg$throw() {
|
|
@@ -25868,13 +25648,14 @@ var TextParser = class {
|
|
|
25868
25648
|
*/
|
|
25869
25649
|
toAst(text, options) {
|
|
25870
25650
|
if (Array.isArray(text)) return text;
|
|
25871
|
-
|
|
25651
|
+
let str = text ?? "";
|
|
25872
25652
|
if (!str) return [];
|
|
25873
25653
|
const opts = Object.assign({}, options);
|
|
25874
25654
|
let startRule = "bitmarkPlusPlus";
|
|
25875
25655
|
if (opts.location === TextLocation.tag) {
|
|
25876
25656
|
startRule = "bitmarkPlus";
|
|
25877
25657
|
}
|
|
25658
|
+
str = str.trim();
|
|
25878
25659
|
return parse(str, {
|
|
25879
25660
|
startRule
|
|
25880
25661
|
});
|