@gmb/bitmark-parser-generator 5.28.0 → 5.30.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 +658 -410
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +6 -0
- package/dist/browser/esm/index.d.ts +6 -0
- package/dist/browser/esm/index.js +658 -410
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +655 -409
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +658 -410
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +658 -410
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1355,6 +1355,7 @@ var propertyKeys = {
|
|
|
1355
1355
|
property_bubbleTag: "@bubbleTag",
|
|
1356
1356
|
property_extractorTag: "@extractorTag",
|
|
1357
1357
|
property_extractorInternal: "@extractorInternal",
|
|
1358
|
+
property_bitFingerprint: "@bitFingerprint",
|
|
1358
1359
|
property_buttonCaption: "@buttonCaption",
|
|
1359
1360
|
property_callToActionUrl: "@callToActionUrl",
|
|
1360
1361
|
property_caption: "@caption",
|
|
@@ -4647,6 +4648,12 @@ var GROUPS = {
|
|
|
4647
4648
|
format: TagFormat.coordinates,
|
|
4648
4649
|
maxCount: Count.infinity
|
|
4649
4650
|
},
|
|
4651
|
+
{
|
|
4652
|
+
key: ConfigKey.property_bitFingerprint,
|
|
4653
|
+
description: "Fingerprint(s) used by the AI extractor to identify the bit (font, style, color, pixels, etc.)",
|
|
4654
|
+
format: TagFormat.plainText,
|
|
4655
|
+
maxCount: Count.infinity
|
|
4656
|
+
},
|
|
4650
4657
|
{
|
|
4651
4658
|
key: ConfigKey.property_levelCEFRp,
|
|
4652
4659
|
description: "The CEFRp level for the bit",
|
|
@@ -10240,7 +10247,18 @@ var BITS = {
|
|
|
10240
10247
|
since: "5.12.0",
|
|
10241
10248
|
baseBitType: BitType2._standard,
|
|
10242
10249
|
description: "Extractor blueprint bit, used to provide blueprint information about extractors",
|
|
10243
|
-
textFormatDefault: TextFormat2.json
|
|
10250
|
+
textFormatDefault: TextFormat2.json,
|
|
10251
|
+
tags: [
|
|
10252
|
+
{
|
|
10253
|
+
key: ConfigKey.group_resourceBitTags,
|
|
10254
|
+
description: "Resource bit tags for the blueprint reference image"
|
|
10255
|
+
},
|
|
10256
|
+
{
|
|
10257
|
+
key: ConfigKey.group_resourceImage,
|
|
10258
|
+
description: "Optional uncropped reference page image, used so authoring tools can compute crops against the original page dimensions"
|
|
10259
|
+
}
|
|
10260
|
+
],
|
|
10261
|
+
resourceAttachmentAllowed: false
|
|
10244
10262
|
},
|
|
10245
10263
|
[BitType2.extractorInformation]: {
|
|
10246
10264
|
since: "3.8.0",
|
|
@@ -13938,7 +13956,7 @@ var instance2 = new Config();
|
|
|
13938
13956
|
// src/generated/package_info.ts
|
|
13939
13957
|
var PACKAGE_INFO = {
|
|
13940
13958
|
"name": "@gmb/bitmark-parser-generator",
|
|
13941
|
-
"version": "5.
|
|
13959
|
+
"version": "5.30.0",
|
|
13942
13960
|
"author": "Get More Brain Ltd",
|
|
13943
13961
|
"license": "ISC",
|
|
13944
13962
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -14351,6 +14369,8 @@ var NodeType = {
|
|
|
14351
14369
|
// bit
|
|
14352
14370
|
bitType: "bitType",
|
|
14353
14371
|
// bit type
|
|
14372
|
+
bitFingerprint: "bitFingerprint",
|
|
14373
|
+
bitFingerprintValue: "bitFingerprintValue",
|
|
14354
14374
|
blockId: "blockId",
|
|
14355
14375
|
blockIdValue: "blockIdValue",
|
|
14356
14376
|
body: "body",
|
|
@@ -16969,26 +16989,26 @@ function peg$parse(input, options) {
|
|
|
16969
16989
|
bitmarkMinusMinusString: peg$parsebitmarkMinusMinusString
|
|
16970
16990
|
};
|
|
16971
16991
|
let peg$startRuleFunction = peg$parseversion;
|
|
16972
|
-
const peg$c0 = "
|
|
16973
|
-
const peg$c1 = "
|
|
16974
|
-
const peg$c2 = "
|
|
16975
|
-
const peg$c3 = "
|
|
16976
|
-
const peg$c4 = "
|
|
16977
|
-
const peg$c5 = "
|
|
16978
|
-
const peg$c6 = "
|
|
16979
|
-
const peg$c7 = "bitmark
|
|
16980
|
-
const peg$c8 = "
|
|
16981
|
-
const peg$c9 = "
|
|
16982
|
-
const peg$c10 = "\
|
|
16983
|
-
const peg$c11 = "\
|
|
16984
|
-
const peg$c12 = "
|
|
16985
|
-
const peg$c13 = "
|
|
16986
|
-
const peg$c14 = "
|
|
16987
|
-
const peg$c15 = "
|
|
16988
|
-
const peg$c16 = "\
|
|
16989
|
-
const peg$c17 = "\
|
|
16990
|
-
const peg$c18 = "\u2022
|
|
16991
|
-
const peg$c19 = "
|
|
16992
|
+
const peg$c0 = " ";
|
|
16993
|
+
const peg$c1 = "|";
|
|
16994
|
+
const peg$c2 = "### ";
|
|
16995
|
+
const peg$c3 = "## ";
|
|
16996
|
+
const peg$c4 = "# ";
|
|
16997
|
+
const peg$c5 = "code";
|
|
16998
|
+
const peg$c6 = ":";
|
|
16999
|
+
const peg$c7 = "bitmark++";
|
|
17000
|
+
const peg$c8 = "bitmark--";
|
|
17001
|
+
const peg$c9 = "JavaScript";
|
|
17002
|
+
const peg$c10 = "\u2022 ";
|
|
17003
|
+
const peg$c11 = "\u2022_ ";
|
|
17004
|
+
const peg$c12 = "\u2022";
|
|
17005
|
+
const peg$c13 = " ";
|
|
17006
|
+
const peg$c14 = "I ";
|
|
17007
|
+
const peg$c15 = "i ";
|
|
17008
|
+
const peg$c16 = "\u2022A ";
|
|
17009
|
+
const peg$c17 = "\u2022a ";
|
|
17010
|
+
const peg$c18 = "\u2022+ ";
|
|
17011
|
+
const peg$c19 = "\u2022- ";
|
|
16992
17012
|
const peg$c20 = "image";
|
|
16993
17013
|
const peg$c21 = "#";
|
|
16994
17014
|
const peg$c22 = "@";
|
|
@@ -17120,28 +17140,28 @@ function peg$parse(input, options) {
|
|
|
17120
17140
|
const peg$r4 = /^[!#-;=?-[\]-_a-{}-~]/;
|
|
17121
17141
|
const peg$e0 = peg$anyExpectation();
|
|
17122
17142
|
const peg$e1 = peg$otherExpectation("StyledText");
|
|
17123
|
-
const peg$e2 = peg$literalExpectation("
|
|
17124
|
-
const peg$e3 = peg$literalExpectation("
|
|
17125
|
-
const peg$e4 = peg$literalExpectation("
|
|
17126
|
-
const peg$e5 = peg$literalExpectation("
|
|
17127
|
-
const peg$e6 = peg$literalExpectation("
|
|
17128
|
-
const peg$e7 = peg$
|
|
17129
|
-
const peg$e8 = peg$
|
|
17130
|
-
const peg$e9 = peg$literalExpectation("
|
|
17131
|
-
const peg$e10 = peg$literalExpectation("bitmark
|
|
17132
|
-
const peg$e11 = peg$literalExpectation("
|
|
17133
|
-
const peg$e12 = peg$literalExpectation("
|
|
17134
|
-
const peg$e13 = peg$literalExpectation("\
|
|
17135
|
-
const peg$e14 = peg$literalExpectation("\
|
|
17136
|
-
const peg$e15 = peg$
|
|
17137
|
-
const peg$e16 = peg$
|
|
17138
|
-
const peg$e17 = peg$literalExpectation("
|
|
17139
|
-
const peg$e18 = peg$literalExpectation("
|
|
17140
|
-
const peg$e19 = peg$literalExpectation("
|
|
17141
|
-
const peg$e20 = peg$literalExpectation("\
|
|
17142
|
-
const peg$e21 = peg$literalExpectation("\
|
|
17143
|
-
const peg$e22 = peg$literalExpectation("\u2022
|
|
17144
|
-
const peg$e23 = peg$literalExpectation("
|
|
17143
|
+
const peg$e2 = peg$literalExpectation(" ", false);
|
|
17144
|
+
const peg$e3 = peg$literalExpectation("|", false);
|
|
17145
|
+
const peg$e4 = peg$literalExpectation("### ", false);
|
|
17146
|
+
const peg$e5 = peg$literalExpectation("## ", false);
|
|
17147
|
+
const peg$e6 = peg$literalExpectation("# ", false);
|
|
17148
|
+
const peg$e7 = peg$literalExpectation("code", false);
|
|
17149
|
+
const peg$e8 = peg$classExpectation([" ", " "], false, false, false);
|
|
17150
|
+
const peg$e9 = peg$literalExpectation(":", false);
|
|
17151
|
+
const peg$e10 = peg$literalExpectation("bitmark++", false);
|
|
17152
|
+
const peg$e11 = peg$literalExpectation("bitmark--", false);
|
|
17153
|
+
const peg$e12 = peg$literalExpectation("JavaScript", false);
|
|
17154
|
+
const peg$e13 = peg$literalExpectation("\u2022 ", false);
|
|
17155
|
+
const peg$e14 = peg$literalExpectation("\u2022_ ", false);
|
|
17156
|
+
const peg$e15 = peg$literalExpectation("\u2022", false);
|
|
17157
|
+
const peg$e16 = peg$classExpectation([["0", "9"]], false, false, false);
|
|
17158
|
+
const peg$e17 = peg$literalExpectation(" ", false);
|
|
17159
|
+
const peg$e18 = peg$literalExpectation("I ", false);
|
|
17160
|
+
const peg$e19 = peg$literalExpectation("i ", false);
|
|
17161
|
+
const peg$e20 = peg$literalExpectation("\u2022A ", false);
|
|
17162
|
+
const peg$e21 = peg$literalExpectation("\u2022a ", false);
|
|
17163
|
+
const peg$e22 = peg$literalExpectation("\u2022+ ", false);
|
|
17164
|
+
const peg$e23 = peg$literalExpectation("\u2022- ", false);
|
|
17145
17165
|
const peg$e24 = peg$literalExpectation("image", false);
|
|
17146
17166
|
const peg$e25 = peg$literalExpectation("#", false);
|
|
17147
17167
|
const peg$e26 = peg$literalExpectation("@", false);
|
|
@@ -17317,15 +17337,14 @@ function peg$parse(input, options) {
|
|
|
17317
17337
|
function peg$f13(t) {
|
|
17318
17338
|
return t;
|
|
17319
17339
|
}
|
|
17320
|
-
function peg$f14(
|
|
17321
|
-
return
|
|
17340
|
+
function peg$f14(b) {
|
|
17341
|
+
return b;
|
|
17322
17342
|
}
|
|
17323
17343
|
function peg$f15(c, bl) {
|
|
17324
17344
|
return { ...c, content: bl, attrs: {} };
|
|
17325
17345
|
}
|
|
17326
17346
|
function peg$f16(c, bl) {
|
|
17327
|
-
|
|
17328
|
-
return { ...c, attrs: { start }, content: bl };
|
|
17347
|
+
return { ...c, content: bl, attrs: {} };
|
|
17329
17348
|
}
|
|
17330
17349
|
function peg$f17(c, bl) {
|
|
17331
17350
|
let start = bl[0]._tempListStart;
|
|
@@ -17336,7 +17355,8 @@ function peg$parse(input, options) {
|
|
|
17336
17355
|
return { ...c, attrs: { start }, content: bl };
|
|
17337
17356
|
}
|
|
17338
17357
|
function peg$f19(c, bl) {
|
|
17339
|
-
|
|
17358
|
+
let start = bl[0]._tempListStart;
|
|
17359
|
+
return { ...c, attrs: { start }, content: bl };
|
|
17340
17360
|
}
|
|
17341
17361
|
function peg$f20(c, bl) {
|
|
17342
17362
|
return { ...c, content: bl, attrs: {} };
|
|
@@ -17344,34 +17364,41 @@ function peg$parse(input, options) {
|
|
|
17344
17364
|
function peg$f21(c, bl) {
|
|
17345
17365
|
return { ...c, content: bl, attrs: {} };
|
|
17346
17366
|
}
|
|
17347
|
-
function peg$f22() {
|
|
17367
|
+
function peg$f22(c, bl) {
|
|
17368
|
+
return { ...c, content: bl, attrs: {} };
|
|
17369
|
+
}
|
|
17370
|
+
function peg$f23(i) {
|
|
17371
|
+
indentStack = [];
|
|
17372
|
+
indent = i.join("");
|
|
17373
|
+
}
|
|
17374
|
+
function peg$f24() {
|
|
17348
17375
|
return { type: "bulletList" };
|
|
17349
17376
|
}
|
|
17350
|
-
function peg$
|
|
17377
|
+
function peg$f25() {
|
|
17351
17378
|
return { type: "noBulletList" };
|
|
17352
17379
|
}
|
|
17353
|
-
function peg$
|
|
17380
|
+
function peg$f26() {
|
|
17354
17381
|
return { type: "orderedList" };
|
|
17355
17382
|
}
|
|
17356
|
-
function peg$
|
|
17383
|
+
function peg$f27() {
|
|
17357
17384
|
return { type: "orderedListRoman" };
|
|
17358
17385
|
}
|
|
17359
|
-
function peg$
|
|
17386
|
+
function peg$f28() {
|
|
17360
17387
|
return { type: "orderedListRomanLower" };
|
|
17361
17388
|
}
|
|
17362
|
-
function peg$
|
|
17389
|
+
function peg$f29() {
|
|
17363
17390
|
return { type: "letteredList" };
|
|
17364
17391
|
}
|
|
17365
|
-
function peg$
|
|
17392
|
+
function peg$f30() {
|
|
17366
17393
|
return { type: "letteredListLower" };
|
|
17367
17394
|
}
|
|
17368
|
-
function peg$
|
|
17395
|
+
function peg$f31() {
|
|
17369
17396
|
return { type: "taskList" };
|
|
17370
17397
|
}
|
|
17371
|
-
function peg$
|
|
17398
|
+
function peg$f32(lt, listItem, lines, c) {
|
|
17372
17399
|
return c;
|
|
17373
17400
|
}
|
|
17374
|
-
function peg$
|
|
17401
|
+
function peg$f33(lt, listItem, lines, children) {
|
|
17375
17402
|
let _tempParsingParent = "bulletList";
|
|
17376
17403
|
const matchOrdered = lt.match(/•([0-9]+)([Ii]?) /);
|
|
17377
17404
|
let start = 1;
|
|
@@ -17440,36 +17467,36 @@ function peg$parse(input, options) {
|
|
|
17440
17467
|
return { type: t, content, _tempParsingParent, _tempListStart };
|
|
17441
17468
|
}
|
|
17442
17469
|
}
|
|
17443
|
-
function peg$
|
|
17470
|
+
function peg$f34(ll) {
|
|
17444
17471
|
return ll;
|
|
17445
17472
|
}
|
|
17446
|
-
function peg$
|
|
17473
|
+
function peg$f35(i) {
|
|
17447
17474
|
return i.join("") === indent;
|
|
17448
17475
|
}
|
|
17449
|
-
function peg$
|
|
17476
|
+
function peg$f36(i) {
|
|
17450
17477
|
return i.length > indent.length;
|
|
17451
17478
|
}
|
|
17452
|
-
function peg$
|
|
17479
|
+
function peg$f37(i) {
|
|
17453
17480
|
indentStack.push(indent);
|
|
17454
17481
|
indent = i.join("");
|
|
17455
17482
|
}
|
|
17456
|
-
function peg$
|
|
17483
|
+
function peg$f38() {
|
|
17457
17484
|
indent = indentStack.pop();
|
|
17458
17485
|
return true;
|
|
17459
17486
|
}
|
|
17460
|
-
function peg$
|
|
17487
|
+
function peg$f39(body) {
|
|
17461
17488
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17462
17489
|
}
|
|
17463
|
-
function peg$
|
|
17490
|
+
function peg$f40(body) {
|
|
17464
17491
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17465
17492
|
}
|
|
17466
|
-
function peg$
|
|
17493
|
+
function peg$f41(body) {
|
|
17467
17494
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17468
17495
|
}
|
|
17469
|
-
function peg$
|
|
17496
|
+
function peg$f42(t) {
|
|
17470
17497
|
return t;
|
|
17471
17498
|
}
|
|
17472
|
-
function peg$
|
|
17499
|
+
function peg$f43(t, u, ch) {
|
|
17473
17500
|
const chain = Object.assign({}, ...ch);
|
|
17474
17501
|
let imageAlignment_ = chain.alignment || "center";
|
|
17475
17502
|
delete chain.alignment;
|
|
@@ -17498,185 +17525,185 @@ function peg$parse(input, options) {
|
|
|
17498
17525
|
};
|
|
17499
17526
|
return image;
|
|
17500
17527
|
}
|
|
17501
|
-
function peg$
|
|
17528
|
+
function peg$f44(ch) {
|
|
17502
17529
|
return ch;
|
|
17503
17530
|
}
|
|
17504
|
-
function peg$
|
|
17531
|
+
function peg$f45(str) {
|
|
17505
17532
|
return { comment: str.trim() };
|
|
17506
17533
|
}
|
|
17507
|
-
function peg$
|
|
17534
|
+
function peg$f46(p, v) {
|
|
17508
17535
|
return { [p]: parseInt(v) };
|
|
17509
17536
|
}
|
|
17510
|
-
function peg$
|
|
17537
|
+
function peg$f47(p, v) {
|
|
17511
17538
|
return { [p]: v.trim() };
|
|
17512
17539
|
}
|
|
17513
|
-
function peg$
|
|
17540
|
+
function peg$f48(p, v) {
|
|
17514
17541
|
return { [p]: v };
|
|
17515
17542
|
}
|
|
17516
|
-
function peg$
|
|
17543
|
+
function peg$f49(p, v) {
|
|
17517
17544
|
return { [p]: v };
|
|
17518
17545
|
}
|
|
17519
|
-
function peg$
|
|
17546
|
+
function peg$f50(p) {
|
|
17520
17547
|
return { [p]: true };
|
|
17521
17548
|
}
|
|
17522
|
-
function peg$
|
|
17549
|
+
function peg$f51() {
|
|
17523
17550
|
return;
|
|
17524
17551
|
}
|
|
17525
|
-
function peg$
|
|
17552
|
+
function peg$f52(p) {
|
|
17526
17553
|
return { error: "Found unknown property or invalid value: " + p };
|
|
17527
17554
|
}
|
|
17528
|
-
function peg$
|
|
17555
|
+
function peg$f53(bs) {
|
|
17529
17556
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
17530
17557
|
}
|
|
17531
|
-
function peg$
|
|
17558
|
+
function peg$f54(first, more) {
|
|
17532
17559
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
17533
17560
|
return cleaned_;
|
|
17534
17561
|
}
|
|
17535
|
-
function peg$
|
|
17562
|
+
function peg$f55() {
|
|
17536
17563
|
return { "type": "hardBreak" };
|
|
17537
17564
|
}
|
|
17538
|
-
function peg$
|
|
17565
|
+
function peg$f56(t) {
|
|
17539
17566
|
return { text: unbreakscape(t), type: "text" };
|
|
17540
17567
|
}
|
|
17541
|
-
function peg$
|
|
17568
|
+
function peg$f57(t) {
|
|
17542
17569
|
return { index: +t, type: "bit" };
|
|
17543
17570
|
}
|
|
17544
|
-
function peg$
|
|
17571
|
+
function peg$f58(t) {
|
|
17545
17572
|
return { attrs: { formula: unbreakscape(t) }, type: "latex" };
|
|
17546
17573
|
}
|
|
17547
|
-
function peg$
|
|
17574
|
+
function peg$f59(alt, u, ch) {
|
|
17548
17575
|
return { attrs: { alt, src: (u.pr + u.t).trim(), ...Object.assign({}, ...ch), zoomDisabled: true }, type: "imageInline" };
|
|
17549
17576
|
}
|
|
17550
|
-
function peg$
|
|
17577
|
+
function peg$f60(t, marks) {
|
|
17551
17578
|
if (!marks) marks = [];
|
|
17552
17579
|
return { marks, text: unbreakscape(t), type: "text" };
|
|
17553
17580
|
}
|
|
17554
|
-
function peg$
|
|
17581
|
+
function peg$f61(t) {
|
|
17555
17582
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
17556
17583
|
}
|
|
17557
|
-
function peg$
|
|
17584
|
+
function peg$f62(t) {
|
|
17558
17585
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
17559
17586
|
}
|
|
17560
|
-
function peg$
|
|
17587
|
+
function peg$f63(t) {
|
|
17561
17588
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
17562
17589
|
}
|
|
17563
|
-
function peg$
|
|
17590
|
+
function peg$f64(t) {
|
|
17564
17591
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
17565
17592
|
}
|
|
17566
|
-
function peg$
|
|
17593
|
+
function peg$f65(u) {
|
|
17567
17594
|
return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: "_blank" } }], text: u.t, type: "text" };
|
|
17568
17595
|
}
|
|
17569
|
-
function peg$
|
|
17596
|
+
function peg$f66(ch) {
|
|
17570
17597
|
return ch;
|
|
17571
17598
|
}
|
|
17572
|
-
function peg$
|
|
17599
|
+
function peg$f67(ch) {
|
|
17573
17600
|
return ch;
|
|
17574
17601
|
}
|
|
17575
|
-
function peg$
|
|
17602
|
+
function peg$f68(str) {
|
|
17576
17603
|
return { comment: str };
|
|
17577
17604
|
}
|
|
17578
|
-
function peg$
|
|
17605
|
+
function peg$f69(p, v) {
|
|
17579
17606
|
return { [p]: v };
|
|
17580
17607
|
}
|
|
17581
|
-
function peg$
|
|
17608
|
+
function peg$f70(p, v) {
|
|
17582
17609
|
return { [p]: parseInt(v) };
|
|
17583
17610
|
}
|
|
17584
|
-
function peg$
|
|
17611
|
+
function peg$f71(p, v) {
|
|
17585
17612
|
return { type: "error", msg: p + " must be a positive integer.", found: v };
|
|
17586
17613
|
}
|
|
17587
|
-
function peg$
|
|
17614
|
+
function peg$f72(p, v) {
|
|
17588
17615
|
return { [p]: v };
|
|
17589
17616
|
}
|
|
17590
|
-
function peg$
|
|
17617
|
+
function peg$f73(p, v) {
|
|
17591
17618
|
return { [p]: v };
|
|
17592
17619
|
}
|
|
17593
|
-
function peg$
|
|
17620
|
+
function peg$f74(str) {
|
|
17594
17621
|
return { type: "link", attrs: { href: str.trim(), target: "_blank" } };
|
|
17595
17622
|
}
|
|
17596
|
-
function peg$
|
|
17623
|
+
function peg$f75(str, rc, p) {
|
|
17597
17624
|
return { type: "extref", attrs: { extref: str.trim(), references: rc, provider: p.trim() } };
|
|
17598
17625
|
}
|
|
17599
|
-
function peg$
|
|
17626
|
+
function peg$f76(str, str2) {
|
|
17600
17627
|
return { type: "xref", attrs: { xref: str.trim(), reference: str2.trim() } };
|
|
17601
17628
|
}
|
|
17602
|
-
function peg$
|
|
17629
|
+
function peg$f77(str) {
|
|
17603
17630
|
return { type: "xref", attrs: { xref: str.trim(), reference: "" } };
|
|
17604
17631
|
}
|
|
17605
|
-
function peg$
|
|
17632
|
+
function peg$f78(str) {
|
|
17606
17633
|
return { type: "ref", attrs: { reference: str.trim() } };
|
|
17607
17634
|
}
|
|
17608
|
-
function peg$
|
|
17635
|
+
function peg$f79(str, ch) {
|
|
17609
17636
|
const chain = Object.assign({}, ...ch);
|
|
17610
17637
|
return { type: "symbol", attrs: { src: str.trim(), ...chain } };
|
|
17611
17638
|
}
|
|
17612
|
-
function peg$
|
|
17639
|
+
function peg$f80(str) {
|
|
17613
17640
|
return { type: "footnote", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
17614
17641
|
}
|
|
17615
|
-
function peg$
|
|
17642
|
+
function peg$f81(str) {
|
|
17616
17643
|
return { type: "footnote*", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
17617
17644
|
}
|
|
17618
|
-
function peg$
|
|
17645
|
+
function peg$f82(str) {
|
|
17619
17646
|
return { type: "var", attrs: { name: str.trim() } };
|
|
17620
17647
|
}
|
|
17621
|
-
function peg$
|
|
17648
|
+
function peg$f83() {
|
|
17622
17649
|
return { type: "code", attrs: { language: "plain text" } };
|
|
17623
17650
|
}
|
|
17624
|
-
function peg$
|
|
17651
|
+
function peg$f84(lang) {
|
|
17625
17652
|
return { type: "code", attrs: { language: lang.trim().toLowerCase() } };
|
|
17626
17653
|
}
|
|
17627
|
-
function peg$
|
|
17654
|
+
function peg$f85() {
|
|
17628
17655
|
return { type: "timer", attrs: { name: "" } };
|
|
17629
17656
|
}
|
|
17630
|
-
function peg$
|
|
17657
|
+
function peg$f86(str) {
|
|
17631
17658
|
return { type: "timer", attrs: { name: str.trim() } };
|
|
17632
17659
|
}
|
|
17633
|
-
function peg$
|
|
17660
|
+
function peg$f87(str) {
|
|
17634
17661
|
return { type: "duration", attrs: { duration: str } };
|
|
17635
17662
|
}
|
|
17636
|
-
function peg$
|
|
17663
|
+
function peg$f88(color) {
|
|
17637
17664
|
return { type: "color", attrs: { color } };
|
|
17638
17665
|
}
|
|
17639
|
-
function peg$
|
|
17666
|
+
function peg$f89(str) {
|
|
17640
17667
|
return { type: "colorPicker", attrs: { propertyRef: str.trim() } };
|
|
17641
17668
|
}
|
|
17642
|
-
function peg$
|
|
17669
|
+
function peg$f90(style) {
|
|
17643
17670
|
return { type: style };
|
|
17644
17671
|
}
|
|
17645
|
-
function peg$
|
|
17672
|
+
function peg$f91(str) {
|
|
17646
17673
|
return { type: "comment", comment: str };
|
|
17647
17674
|
}
|
|
17648
|
-
function peg$
|
|
17675
|
+
function peg$f92(r) {
|
|
17649
17676
|
return r.trim();
|
|
17650
17677
|
}
|
|
17651
|
-
function peg$
|
|
17678
|
+
function peg$f93(bs) {
|
|
17652
17679
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
17653
17680
|
}
|
|
17654
|
-
function peg$
|
|
17681
|
+
function peg$f94(first, more) {
|
|
17655
17682
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
17656
17683
|
return cleaned_;
|
|
17657
17684
|
}
|
|
17658
|
-
function peg$
|
|
17685
|
+
function peg$f95() {
|
|
17659
17686
|
return { "type": "hardBreak" };
|
|
17660
17687
|
}
|
|
17661
|
-
function peg$
|
|
17688
|
+
function peg$f96(t) {
|
|
17662
17689
|
return { text: unbreakscape(t), type: "text" };
|
|
17663
17690
|
}
|
|
17664
|
-
function peg$
|
|
17691
|
+
function peg$f97(t) {
|
|
17665
17692
|
return { index: +t, type: "bit" };
|
|
17666
17693
|
}
|
|
17667
|
-
function peg$
|
|
17694
|
+
function peg$f98(t) {
|
|
17668
17695
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
17669
17696
|
}
|
|
17670
|
-
function peg$
|
|
17697
|
+
function peg$f99(t) {
|
|
17671
17698
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
17672
17699
|
}
|
|
17673
|
-
function peg$
|
|
17700
|
+
function peg$f100(t) {
|
|
17674
17701
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
17675
17702
|
}
|
|
17676
|
-
function peg$
|
|
17703
|
+
function peg$f101(t) {
|
|
17677
17704
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
17678
17705
|
}
|
|
17679
|
-
function peg$
|
|
17706
|
+
function peg$f102(pr, t) {
|
|
17680
17707
|
return { pr, t };
|
|
17681
17708
|
}
|
|
17682
17709
|
let peg$currPos = options.peg$currPos | 0;
|
|
@@ -17919,10 +17946,40 @@ function peg$parse(input, options) {
|
|
|
17919
17946
|
return s0;
|
|
17920
17947
|
}
|
|
17921
17948
|
function peg$parseBlockStart() {
|
|
17922
|
-
let s0;
|
|
17949
|
+
let s0, s1, s2;
|
|
17923
17950
|
s0 = peg$parseTitleTags();
|
|
17924
17951
|
if (s0 === peg$FAILED) {
|
|
17925
|
-
s0 = peg$
|
|
17952
|
+
s0 = peg$currPos;
|
|
17953
|
+
s1 = [];
|
|
17954
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
17955
|
+
s2 = peg$c0;
|
|
17956
|
+
peg$currPos++;
|
|
17957
|
+
} else {
|
|
17958
|
+
s2 = peg$FAILED;
|
|
17959
|
+
if (peg$silentFails === 0) {
|
|
17960
|
+
peg$fail(peg$e2);
|
|
17961
|
+
}
|
|
17962
|
+
}
|
|
17963
|
+
while (s2 !== peg$FAILED) {
|
|
17964
|
+
s1.push(s2);
|
|
17965
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
17966
|
+
s2 = peg$c0;
|
|
17967
|
+
peg$currPos++;
|
|
17968
|
+
} else {
|
|
17969
|
+
s2 = peg$FAILED;
|
|
17970
|
+
if (peg$silentFails === 0) {
|
|
17971
|
+
peg$fail(peg$e2);
|
|
17972
|
+
}
|
|
17973
|
+
}
|
|
17974
|
+
}
|
|
17975
|
+
s2 = peg$parseListTags();
|
|
17976
|
+
if (s2 !== peg$FAILED) {
|
|
17977
|
+
s1 = [s1, s2];
|
|
17978
|
+
s0 = s1;
|
|
17979
|
+
} else {
|
|
17980
|
+
peg$currPos = s0;
|
|
17981
|
+
s0 = peg$FAILED;
|
|
17982
|
+
}
|
|
17926
17983
|
if (s0 === peg$FAILED) {
|
|
17927
17984
|
s0 = peg$parseImageBlock();
|
|
17928
17985
|
if (s0 === peg$FAILED) {
|
|
@@ -17938,12 +17995,12 @@ function peg$parse(input, options) {
|
|
|
17938
17995
|
function peg$parseBlockTag() {
|
|
17939
17996
|
let s0;
|
|
17940
17997
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
17941
|
-
s0 = peg$
|
|
17998
|
+
s0 = peg$c1;
|
|
17942
17999
|
peg$currPos++;
|
|
17943
18000
|
} else {
|
|
17944
18001
|
s0 = peg$FAILED;
|
|
17945
18002
|
if (peg$silentFails === 0) {
|
|
17946
|
-
peg$fail(peg$
|
|
18003
|
+
peg$fail(peg$e3);
|
|
17947
18004
|
}
|
|
17948
18005
|
}
|
|
17949
18006
|
return s0;
|
|
@@ -17959,33 +18016,33 @@ function peg$parse(input, options) {
|
|
|
17959
18016
|
}
|
|
17960
18017
|
function peg$parseTitleTags() {
|
|
17961
18018
|
let s0;
|
|
17962
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
17963
|
-
s0 = peg$
|
|
18019
|
+
if (input.substr(peg$currPos, 4) === peg$c2) {
|
|
18020
|
+
s0 = peg$c2;
|
|
17964
18021
|
peg$currPos += 4;
|
|
17965
18022
|
} else {
|
|
17966
18023
|
s0 = peg$FAILED;
|
|
17967
18024
|
if (peg$silentFails === 0) {
|
|
17968
|
-
peg$fail(peg$
|
|
18025
|
+
peg$fail(peg$e4);
|
|
17969
18026
|
}
|
|
17970
18027
|
}
|
|
17971
18028
|
if (s0 === peg$FAILED) {
|
|
17972
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
17973
|
-
s0 = peg$
|
|
18029
|
+
if (input.substr(peg$currPos, 3) === peg$c3) {
|
|
18030
|
+
s0 = peg$c3;
|
|
17974
18031
|
peg$currPos += 3;
|
|
17975
18032
|
} else {
|
|
17976
18033
|
s0 = peg$FAILED;
|
|
17977
18034
|
if (peg$silentFails === 0) {
|
|
17978
|
-
peg$fail(peg$
|
|
18035
|
+
peg$fail(peg$e5);
|
|
17979
18036
|
}
|
|
17980
18037
|
}
|
|
17981
18038
|
if (s0 === peg$FAILED) {
|
|
17982
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
17983
|
-
s0 = peg$
|
|
18039
|
+
if (input.substr(peg$currPos, 2) === peg$c4) {
|
|
18040
|
+
s0 = peg$c4;
|
|
17984
18041
|
peg$currPos += 2;
|
|
17985
18042
|
} else {
|
|
17986
18043
|
s0 = peg$FAILED;
|
|
17987
18044
|
if (peg$silentFails === 0) {
|
|
17988
|
-
peg$fail(peg$
|
|
18045
|
+
peg$fail(peg$e6);
|
|
17989
18046
|
}
|
|
17990
18047
|
}
|
|
17991
18048
|
}
|
|
@@ -18025,13 +18082,13 @@ function peg$parse(input, options) {
|
|
|
18025
18082
|
}
|
|
18026
18083
|
function peg$parseCodeType() {
|
|
18027
18084
|
let s0;
|
|
18028
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
18029
|
-
s0 = peg$
|
|
18085
|
+
if (input.substr(peg$currPos, 4) === peg$c5) {
|
|
18086
|
+
s0 = peg$c5;
|
|
18030
18087
|
peg$currPos += 4;
|
|
18031
18088
|
} else {
|
|
18032
18089
|
s0 = peg$FAILED;
|
|
18033
18090
|
if (peg$silentFails === 0) {
|
|
18034
|
-
peg$fail(peg$
|
|
18091
|
+
peg$fail(peg$e7);
|
|
18035
18092
|
}
|
|
18036
18093
|
}
|
|
18037
18094
|
return s0;
|
|
@@ -18083,7 +18140,7 @@ function peg$parse(input, options) {
|
|
|
18083
18140
|
} else {
|
|
18084
18141
|
s5 = peg$FAILED;
|
|
18085
18142
|
if (peg$silentFails === 0) {
|
|
18086
|
-
peg$fail(peg$
|
|
18143
|
+
peg$fail(peg$e8);
|
|
18087
18144
|
}
|
|
18088
18145
|
}
|
|
18089
18146
|
while (s5 !== peg$FAILED) {
|
|
@@ -18094,7 +18151,7 @@ function peg$parse(input, options) {
|
|
|
18094
18151
|
} else {
|
|
18095
18152
|
s5 = peg$FAILED;
|
|
18096
18153
|
if (peg$silentFails === 0) {
|
|
18097
|
-
peg$fail(peg$
|
|
18154
|
+
peg$fail(peg$e8);
|
|
18098
18155
|
}
|
|
18099
18156
|
}
|
|
18100
18157
|
}
|
|
@@ -18127,12 +18184,12 @@ function peg$parse(input, options) {
|
|
|
18127
18184
|
s1 = peg$parseCodeTag();
|
|
18128
18185
|
if (s1 !== peg$FAILED) {
|
|
18129
18186
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
18130
|
-
s2 = peg$
|
|
18187
|
+
s2 = peg$c6;
|
|
18131
18188
|
peg$currPos++;
|
|
18132
18189
|
} else {
|
|
18133
18190
|
s2 = peg$FAILED;
|
|
18134
18191
|
if (peg$silentFails === 0) {
|
|
18135
|
-
peg$fail(peg$
|
|
18192
|
+
peg$fail(peg$e9);
|
|
18136
18193
|
}
|
|
18137
18194
|
}
|
|
18138
18195
|
if (s2 !== peg$FAILED) {
|
|
@@ -18147,7 +18204,7 @@ function peg$parse(input, options) {
|
|
|
18147
18204
|
} else {
|
|
18148
18205
|
s7 = peg$FAILED;
|
|
18149
18206
|
if (peg$silentFails === 0) {
|
|
18150
|
-
peg$fail(peg$
|
|
18207
|
+
peg$fail(peg$e8);
|
|
18151
18208
|
}
|
|
18152
18209
|
}
|
|
18153
18210
|
while (s7 !== peg$FAILED) {
|
|
@@ -18158,7 +18215,7 @@ function peg$parse(input, options) {
|
|
|
18158
18215
|
} else {
|
|
18159
18216
|
s7 = peg$FAILED;
|
|
18160
18217
|
if (peg$silentFails === 0) {
|
|
18161
|
-
peg$fail(peg$
|
|
18218
|
+
peg$fail(peg$e8);
|
|
18162
18219
|
}
|
|
18163
18220
|
}
|
|
18164
18221
|
}
|
|
@@ -18199,33 +18256,33 @@ function peg$parse(input, options) {
|
|
|
18199
18256
|
}
|
|
18200
18257
|
function peg$parseCodeLanguage() {
|
|
18201
18258
|
let s0, s1, s2;
|
|
18202
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18203
|
-
s0 = peg$
|
|
18259
|
+
if (input.substr(peg$currPos, 9) === peg$c7) {
|
|
18260
|
+
s0 = peg$c7;
|
|
18204
18261
|
peg$currPos += 9;
|
|
18205
18262
|
} else {
|
|
18206
18263
|
s0 = peg$FAILED;
|
|
18207
18264
|
if (peg$silentFails === 0) {
|
|
18208
|
-
peg$fail(peg$
|
|
18265
|
+
peg$fail(peg$e10);
|
|
18209
18266
|
}
|
|
18210
18267
|
}
|
|
18211
18268
|
if (s0 === peg$FAILED) {
|
|
18212
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18213
|
-
s0 = peg$
|
|
18269
|
+
if (input.substr(peg$currPos, 9) === peg$c8) {
|
|
18270
|
+
s0 = peg$c8;
|
|
18214
18271
|
peg$currPos += 9;
|
|
18215
18272
|
} else {
|
|
18216
18273
|
s0 = peg$FAILED;
|
|
18217
18274
|
if (peg$silentFails === 0) {
|
|
18218
|
-
peg$fail(peg$
|
|
18275
|
+
peg$fail(peg$e11);
|
|
18219
18276
|
}
|
|
18220
18277
|
}
|
|
18221
18278
|
if (s0 === peg$FAILED) {
|
|
18222
|
-
if (input.substr(peg$currPos, 10) === peg$
|
|
18223
|
-
s0 = peg$
|
|
18279
|
+
if (input.substr(peg$currPos, 10) === peg$c9) {
|
|
18280
|
+
s0 = peg$c9;
|
|
18224
18281
|
peg$currPos += 10;
|
|
18225
18282
|
} else {
|
|
18226
18283
|
s0 = peg$FAILED;
|
|
18227
18284
|
if (peg$silentFails === 0) {
|
|
18228
|
-
peg$fail(peg$
|
|
18285
|
+
peg$fail(peg$e12);
|
|
18229
18286
|
}
|
|
18230
18287
|
}
|
|
18231
18288
|
if (s0 === peg$FAILED) {
|
|
@@ -18331,26 +18388,26 @@ function peg$parse(input, options) {
|
|
|
18331
18388
|
}
|
|
18332
18389
|
function peg$parseBulletListTag() {
|
|
18333
18390
|
let s0;
|
|
18334
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18335
|
-
s0 = peg$
|
|
18391
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
18392
|
+
s0 = peg$c10;
|
|
18336
18393
|
peg$currPos += 2;
|
|
18337
18394
|
} else {
|
|
18338
18395
|
s0 = peg$FAILED;
|
|
18339
18396
|
if (peg$silentFails === 0) {
|
|
18340
|
-
peg$fail(peg$
|
|
18397
|
+
peg$fail(peg$e13);
|
|
18341
18398
|
}
|
|
18342
18399
|
}
|
|
18343
18400
|
return s0;
|
|
18344
18401
|
}
|
|
18345
18402
|
function peg$parseNoBulletListTag() {
|
|
18346
18403
|
let s0;
|
|
18347
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18348
|
-
s0 = peg$
|
|
18404
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
18405
|
+
s0 = peg$c11;
|
|
18349
18406
|
peg$currPos += 3;
|
|
18350
18407
|
} else {
|
|
18351
18408
|
s0 = peg$FAILED;
|
|
18352
18409
|
if (peg$silentFails === 0) {
|
|
18353
|
-
peg$fail(peg$
|
|
18410
|
+
peg$fail(peg$e14);
|
|
18354
18411
|
}
|
|
18355
18412
|
}
|
|
18356
18413
|
return s0;
|
|
@@ -18360,12 +18417,12 @@ function peg$parse(input, options) {
|
|
|
18360
18417
|
s0 = peg$currPos;
|
|
18361
18418
|
s1 = peg$currPos;
|
|
18362
18419
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18363
|
-
s2 = peg$
|
|
18420
|
+
s2 = peg$c12;
|
|
18364
18421
|
peg$currPos++;
|
|
18365
18422
|
} else {
|
|
18366
18423
|
s2 = peg$FAILED;
|
|
18367
18424
|
if (peg$silentFails === 0) {
|
|
18368
|
-
peg$fail(peg$
|
|
18425
|
+
peg$fail(peg$e15);
|
|
18369
18426
|
}
|
|
18370
18427
|
}
|
|
18371
18428
|
if (s2 !== peg$FAILED) {
|
|
@@ -18376,7 +18433,7 @@ function peg$parse(input, options) {
|
|
|
18376
18433
|
} else {
|
|
18377
18434
|
s4 = peg$FAILED;
|
|
18378
18435
|
if (peg$silentFails === 0) {
|
|
18379
|
-
peg$fail(peg$
|
|
18436
|
+
peg$fail(peg$e16);
|
|
18380
18437
|
}
|
|
18381
18438
|
}
|
|
18382
18439
|
if (s4 !== peg$FAILED) {
|
|
@@ -18388,7 +18445,7 @@ function peg$parse(input, options) {
|
|
|
18388
18445
|
} else {
|
|
18389
18446
|
s4 = peg$FAILED;
|
|
18390
18447
|
if (peg$silentFails === 0) {
|
|
18391
|
-
peg$fail(peg$
|
|
18448
|
+
peg$fail(peg$e16);
|
|
18392
18449
|
}
|
|
18393
18450
|
}
|
|
18394
18451
|
}
|
|
@@ -18397,12 +18454,12 @@ function peg$parse(input, options) {
|
|
|
18397
18454
|
}
|
|
18398
18455
|
if (s3 !== peg$FAILED) {
|
|
18399
18456
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
18400
|
-
s4 = peg$
|
|
18457
|
+
s4 = peg$c13;
|
|
18401
18458
|
peg$currPos++;
|
|
18402
18459
|
} else {
|
|
18403
18460
|
s4 = peg$FAILED;
|
|
18404
18461
|
if (peg$silentFails === 0) {
|
|
18405
|
-
peg$fail(peg$
|
|
18462
|
+
peg$fail(peg$e17);
|
|
18406
18463
|
}
|
|
18407
18464
|
}
|
|
18408
18465
|
if (s4 !== peg$FAILED) {
|
|
@@ -18432,12 +18489,12 @@ function peg$parse(input, options) {
|
|
|
18432
18489
|
s0 = peg$currPos;
|
|
18433
18490
|
s1 = peg$currPos;
|
|
18434
18491
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18435
|
-
s2 = peg$
|
|
18492
|
+
s2 = peg$c12;
|
|
18436
18493
|
peg$currPos++;
|
|
18437
18494
|
} else {
|
|
18438
18495
|
s2 = peg$FAILED;
|
|
18439
18496
|
if (peg$silentFails === 0) {
|
|
18440
|
-
peg$fail(peg$
|
|
18497
|
+
peg$fail(peg$e15);
|
|
18441
18498
|
}
|
|
18442
18499
|
}
|
|
18443
18500
|
if (s2 !== peg$FAILED) {
|
|
@@ -18448,7 +18505,7 @@ function peg$parse(input, options) {
|
|
|
18448
18505
|
} else {
|
|
18449
18506
|
s4 = peg$FAILED;
|
|
18450
18507
|
if (peg$silentFails === 0) {
|
|
18451
|
-
peg$fail(peg$
|
|
18508
|
+
peg$fail(peg$e16);
|
|
18452
18509
|
}
|
|
18453
18510
|
}
|
|
18454
18511
|
if (s4 !== peg$FAILED) {
|
|
@@ -18460,7 +18517,7 @@ function peg$parse(input, options) {
|
|
|
18460
18517
|
} else {
|
|
18461
18518
|
s4 = peg$FAILED;
|
|
18462
18519
|
if (peg$silentFails === 0) {
|
|
18463
|
-
peg$fail(peg$
|
|
18520
|
+
peg$fail(peg$e16);
|
|
18464
18521
|
}
|
|
18465
18522
|
}
|
|
18466
18523
|
}
|
|
@@ -18468,13 +18525,13 @@ function peg$parse(input, options) {
|
|
|
18468
18525
|
s3 = peg$FAILED;
|
|
18469
18526
|
}
|
|
18470
18527
|
if (s3 !== peg$FAILED) {
|
|
18471
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18472
|
-
s4 = peg$
|
|
18528
|
+
if (input.substr(peg$currPos, 2) === peg$c14) {
|
|
18529
|
+
s4 = peg$c14;
|
|
18473
18530
|
peg$currPos += 2;
|
|
18474
18531
|
} else {
|
|
18475
18532
|
s4 = peg$FAILED;
|
|
18476
18533
|
if (peg$silentFails === 0) {
|
|
18477
|
-
peg$fail(peg$
|
|
18534
|
+
peg$fail(peg$e18);
|
|
18478
18535
|
}
|
|
18479
18536
|
}
|
|
18480
18537
|
if (s4 !== peg$FAILED) {
|
|
@@ -18504,12 +18561,12 @@ function peg$parse(input, options) {
|
|
|
18504
18561
|
s0 = peg$currPos;
|
|
18505
18562
|
s1 = peg$currPos;
|
|
18506
18563
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18507
|
-
s2 = peg$
|
|
18564
|
+
s2 = peg$c12;
|
|
18508
18565
|
peg$currPos++;
|
|
18509
18566
|
} else {
|
|
18510
18567
|
s2 = peg$FAILED;
|
|
18511
18568
|
if (peg$silentFails === 0) {
|
|
18512
|
-
peg$fail(peg$
|
|
18569
|
+
peg$fail(peg$e15);
|
|
18513
18570
|
}
|
|
18514
18571
|
}
|
|
18515
18572
|
if (s2 !== peg$FAILED) {
|
|
@@ -18520,7 +18577,7 @@ function peg$parse(input, options) {
|
|
|
18520
18577
|
} else {
|
|
18521
18578
|
s4 = peg$FAILED;
|
|
18522
18579
|
if (peg$silentFails === 0) {
|
|
18523
|
-
peg$fail(peg$
|
|
18580
|
+
peg$fail(peg$e16);
|
|
18524
18581
|
}
|
|
18525
18582
|
}
|
|
18526
18583
|
if (s4 !== peg$FAILED) {
|
|
@@ -18532,7 +18589,7 @@ function peg$parse(input, options) {
|
|
|
18532
18589
|
} else {
|
|
18533
18590
|
s4 = peg$FAILED;
|
|
18534
18591
|
if (peg$silentFails === 0) {
|
|
18535
|
-
peg$fail(peg$
|
|
18592
|
+
peg$fail(peg$e16);
|
|
18536
18593
|
}
|
|
18537
18594
|
}
|
|
18538
18595
|
}
|
|
@@ -18540,13 +18597,13 @@ function peg$parse(input, options) {
|
|
|
18540
18597
|
s3 = peg$FAILED;
|
|
18541
18598
|
}
|
|
18542
18599
|
if (s3 !== peg$FAILED) {
|
|
18543
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18544
|
-
s4 = peg$
|
|
18600
|
+
if (input.substr(peg$currPos, 2) === peg$c15) {
|
|
18601
|
+
s4 = peg$c15;
|
|
18545
18602
|
peg$currPos += 2;
|
|
18546
18603
|
} else {
|
|
18547
18604
|
s4 = peg$FAILED;
|
|
18548
18605
|
if (peg$silentFails === 0) {
|
|
18549
|
-
peg$fail(peg$
|
|
18606
|
+
peg$fail(peg$e19);
|
|
18550
18607
|
}
|
|
18551
18608
|
}
|
|
18552
18609
|
if (s4 !== peg$FAILED) {
|
|
@@ -18573,49 +18630,49 @@ function peg$parse(input, options) {
|
|
|
18573
18630
|
}
|
|
18574
18631
|
function peg$parseLetteredListTag() {
|
|
18575
18632
|
let s0;
|
|
18576
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18577
|
-
s0 = peg$
|
|
18633
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
18634
|
+
s0 = peg$c16;
|
|
18578
18635
|
peg$currPos += 3;
|
|
18579
18636
|
} else {
|
|
18580
18637
|
s0 = peg$FAILED;
|
|
18581
18638
|
if (peg$silentFails === 0) {
|
|
18582
|
-
peg$fail(peg$
|
|
18639
|
+
peg$fail(peg$e20);
|
|
18583
18640
|
}
|
|
18584
18641
|
}
|
|
18585
18642
|
return s0;
|
|
18586
18643
|
}
|
|
18587
18644
|
function peg$parseLetteredListLowerTag() {
|
|
18588
18645
|
let s0;
|
|
18589
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18590
|
-
s0 = peg$
|
|
18646
|
+
if (input.substr(peg$currPos, 3) === peg$c17) {
|
|
18647
|
+
s0 = peg$c17;
|
|
18591
18648
|
peg$currPos += 3;
|
|
18592
18649
|
} else {
|
|
18593
18650
|
s0 = peg$FAILED;
|
|
18594
18651
|
if (peg$silentFails === 0) {
|
|
18595
|
-
peg$fail(peg$
|
|
18652
|
+
peg$fail(peg$e21);
|
|
18596
18653
|
}
|
|
18597
18654
|
}
|
|
18598
18655
|
return s0;
|
|
18599
18656
|
}
|
|
18600
18657
|
function peg$parseTaskListTag() {
|
|
18601
18658
|
let s0;
|
|
18602
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18603
|
-
s0 = peg$
|
|
18659
|
+
if (input.substr(peg$currPos, 3) === peg$c18) {
|
|
18660
|
+
s0 = peg$c18;
|
|
18604
18661
|
peg$currPos += 3;
|
|
18605
18662
|
} else {
|
|
18606
18663
|
s0 = peg$FAILED;
|
|
18607
18664
|
if (peg$silentFails === 0) {
|
|
18608
|
-
peg$fail(peg$
|
|
18665
|
+
peg$fail(peg$e22);
|
|
18609
18666
|
}
|
|
18610
18667
|
}
|
|
18611
18668
|
if (s0 === peg$FAILED) {
|
|
18612
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18613
|
-
s0 = peg$
|
|
18669
|
+
if (input.substr(peg$currPos, 3) === peg$c19) {
|
|
18670
|
+
s0 = peg$c19;
|
|
18614
18671
|
peg$currPos += 3;
|
|
18615
18672
|
} else {
|
|
18616
18673
|
s0 = peg$FAILED;
|
|
18617
18674
|
if (peg$silentFails === 0) {
|
|
18618
|
-
peg$fail(peg$
|
|
18675
|
+
peg$fail(peg$e23);
|
|
18619
18676
|
}
|
|
18620
18677
|
}
|
|
18621
18678
|
}
|
|
@@ -18648,6 +18705,25 @@ function peg$parse(input, options) {
|
|
|
18648
18705
|
return s0;
|
|
18649
18706
|
}
|
|
18650
18707
|
function peg$parseListBlock() {
|
|
18708
|
+
let s0, s1, s2;
|
|
18709
|
+
s0 = peg$currPos;
|
|
18710
|
+
s1 = peg$parseListBaseIndent();
|
|
18711
|
+
if (s1 !== peg$FAILED) {
|
|
18712
|
+
s2 = peg$parseListBlockInner();
|
|
18713
|
+
if (s2 !== peg$FAILED) {
|
|
18714
|
+
peg$savedPos = s0;
|
|
18715
|
+
s0 = peg$f14(s2);
|
|
18716
|
+
} else {
|
|
18717
|
+
peg$currPos = s0;
|
|
18718
|
+
s0 = peg$FAILED;
|
|
18719
|
+
}
|
|
18720
|
+
} else {
|
|
18721
|
+
peg$currPos = s0;
|
|
18722
|
+
s0 = peg$FAILED;
|
|
18723
|
+
}
|
|
18724
|
+
return s0;
|
|
18725
|
+
}
|
|
18726
|
+
function peg$parseListBlockInner() {
|
|
18651
18727
|
let s0, s1, s2, s3;
|
|
18652
18728
|
s0 = peg$currPos;
|
|
18653
18729
|
s1 = peg$parseBulletListContainer();
|
|
@@ -18668,7 +18744,7 @@ function peg$parse(input, options) {
|
|
|
18668
18744
|
s3 = null;
|
|
18669
18745
|
}
|
|
18670
18746
|
peg$savedPos = s0;
|
|
18671
|
-
s0 = peg$
|
|
18747
|
+
s0 = peg$f15(s1, s2);
|
|
18672
18748
|
} else {
|
|
18673
18749
|
peg$currPos = s0;
|
|
18674
18750
|
s0 = peg$FAILED;
|
|
@@ -18697,7 +18773,7 @@ function peg$parse(input, options) {
|
|
|
18697
18773
|
s3 = null;
|
|
18698
18774
|
}
|
|
18699
18775
|
peg$savedPos = s0;
|
|
18700
|
-
s0 = peg$
|
|
18776
|
+
s0 = peg$f16(s1, s2);
|
|
18701
18777
|
} else {
|
|
18702
18778
|
peg$currPos = s0;
|
|
18703
18779
|
s0 = peg$FAILED;
|
|
@@ -18726,7 +18802,7 @@ function peg$parse(input, options) {
|
|
|
18726
18802
|
s3 = null;
|
|
18727
18803
|
}
|
|
18728
18804
|
peg$savedPos = s0;
|
|
18729
|
-
s0 = peg$
|
|
18805
|
+
s0 = peg$f17(s1, s2);
|
|
18730
18806
|
} else {
|
|
18731
18807
|
peg$currPos = s0;
|
|
18732
18808
|
s0 = peg$FAILED;
|
|
@@ -18755,7 +18831,7 @@ function peg$parse(input, options) {
|
|
|
18755
18831
|
s3 = null;
|
|
18756
18832
|
}
|
|
18757
18833
|
peg$savedPos = s0;
|
|
18758
|
-
s0 = peg$
|
|
18834
|
+
s0 = peg$f18(s1, s2);
|
|
18759
18835
|
} else {
|
|
18760
18836
|
peg$currPos = s0;
|
|
18761
18837
|
s0 = peg$FAILED;
|
|
@@ -18784,7 +18860,7 @@ function peg$parse(input, options) {
|
|
|
18784
18860
|
s3 = null;
|
|
18785
18861
|
}
|
|
18786
18862
|
peg$savedPos = s0;
|
|
18787
|
-
s0 = peg$
|
|
18863
|
+
s0 = peg$f19(s1, s2);
|
|
18788
18864
|
} else {
|
|
18789
18865
|
peg$currPos = s0;
|
|
18790
18866
|
s0 = peg$FAILED;
|
|
@@ -18813,7 +18889,7 @@ function peg$parse(input, options) {
|
|
|
18813
18889
|
s3 = null;
|
|
18814
18890
|
}
|
|
18815
18891
|
peg$savedPos = s0;
|
|
18816
|
-
s0 = peg$
|
|
18892
|
+
s0 = peg$f20(s1, s2);
|
|
18817
18893
|
} else {
|
|
18818
18894
|
peg$currPos = s0;
|
|
18819
18895
|
s0 = peg$FAILED;
|
|
@@ -18842,7 +18918,7 @@ function peg$parse(input, options) {
|
|
|
18842
18918
|
s3 = null;
|
|
18843
18919
|
}
|
|
18844
18920
|
peg$savedPos = s0;
|
|
18845
|
-
s0 = peg$
|
|
18921
|
+
s0 = peg$f21(s1, s2);
|
|
18846
18922
|
} else {
|
|
18847
18923
|
peg$currPos = s0;
|
|
18848
18924
|
s0 = peg$FAILED;
|
|
@@ -18871,7 +18947,7 @@ function peg$parse(input, options) {
|
|
|
18871
18947
|
s3 = null;
|
|
18872
18948
|
}
|
|
18873
18949
|
peg$savedPos = s0;
|
|
18874
|
-
s0 = peg$
|
|
18950
|
+
s0 = peg$f22(s1, s2);
|
|
18875
18951
|
} else {
|
|
18876
18952
|
peg$currPos = s0;
|
|
18877
18953
|
s0 = peg$FAILED;
|
|
@@ -18889,12 +18965,70 @@ function peg$parse(input, options) {
|
|
|
18889
18965
|
}
|
|
18890
18966
|
return s0;
|
|
18891
18967
|
}
|
|
18968
|
+
function peg$parseListBaseIndent() {
|
|
18969
|
+
let s0, s1, s2, s3;
|
|
18970
|
+
s0 = peg$currPos;
|
|
18971
|
+
peg$silentFails++;
|
|
18972
|
+
s1 = peg$currPos;
|
|
18973
|
+
s2 = [];
|
|
18974
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
18975
|
+
s3 = peg$c0;
|
|
18976
|
+
peg$currPos++;
|
|
18977
|
+
} else {
|
|
18978
|
+
s3 = peg$FAILED;
|
|
18979
|
+
if (peg$silentFails === 0) {
|
|
18980
|
+
peg$fail(peg$e2);
|
|
18981
|
+
}
|
|
18982
|
+
}
|
|
18983
|
+
while (s3 !== peg$FAILED) {
|
|
18984
|
+
s2.push(s3);
|
|
18985
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
18986
|
+
s3 = peg$c0;
|
|
18987
|
+
peg$currPos++;
|
|
18988
|
+
} else {
|
|
18989
|
+
s3 = peg$FAILED;
|
|
18990
|
+
if (peg$silentFails === 0) {
|
|
18991
|
+
peg$fail(peg$e2);
|
|
18992
|
+
}
|
|
18993
|
+
}
|
|
18994
|
+
}
|
|
18995
|
+
s3 = peg$parseListTags();
|
|
18996
|
+
if (s3 !== peg$FAILED) {
|
|
18997
|
+
peg$savedPos = s1;
|
|
18998
|
+
s1 = peg$f23(s2);
|
|
18999
|
+
} else {
|
|
19000
|
+
peg$currPos = s1;
|
|
19001
|
+
s1 = peg$FAILED;
|
|
19002
|
+
}
|
|
19003
|
+
peg$silentFails--;
|
|
19004
|
+
if (s1 !== peg$FAILED) {
|
|
19005
|
+
peg$currPos = s0;
|
|
19006
|
+
s0 = void 0;
|
|
19007
|
+
} else {
|
|
19008
|
+
s0 = peg$FAILED;
|
|
19009
|
+
}
|
|
19010
|
+
return s0;
|
|
19011
|
+
}
|
|
18892
19012
|
function peg$parseBulletListContainer() {
|
|
18893
|
-
let s0, s1, s2;
|
|
19013
|
+
let s0, s1, s2, s3, s4;
|
|
18894
19014
|
s0 = peg$currPos;
|
|
18895
19015
|
s1 = peg$currPos;
|
|
18896
19016
|
peg$silentFails++;
|
|
18897
|
-
s2 = peg$
|
|
19017
|
+
s2 = peg$currPos;
|
|
19018
|
+
s3 = peg$parseSAMEDENT();
|
|
19019
|
+
if (s3 !== peg$FAILED) {
|
|
19020
|
+
s4 = peg$parseBulletListTag();
|
|
19021
|
+
if (s4 !== peg$FAILED) {
|
|
19022
|
+
s3 = [s3, s4];
|
|
19023
|
+
s2 = s3;
|
|
19024
|
+
} else {
|
|
19025
|
+
peg$currPos = s2;
|
|
19026
|
+
s2 = peg$FAILED;
|
|
19027
|
+
}
|
|
19028
|
+
} else {
|
|
19029
|
+
peg$currPos = s2;
|
|
19030
|
+
s2 = peg$FAILED;
|
|
19031
|
+
}
|
|
18898
19032
|
peg$silentFails--;
|
|
18899
19033
|
if (s2 !== peg$FAILED) {
|
|
18900
19034
|
peg$currPos = s1;
|
|
@@ -18904,17 +19038,31 @@ function peg$parse(input, options) {
|
|
|
18904
19038
|
}
|
|
18905
19039
|
if (s1 !== peg$FAILED) {
|
|
18906
19040
|
peg$savedPos = s0;
|
|
18907
|
-
s1 = peg$
|
|
19041
|
+
s1 = peg$f24();
|
|
18908
19042
|
}
|
|
18909
19043
|
s0 = s1;
|
|
18910
19044
|
return s0;
|
|
18911
19045
|
}
|
|
18912
19046
|
function peg$parseNoBulletListContainer() {
|
|
18913
|
-
let s0, s1, s2;
|
|
19047
|
+
let s0, s1, s2, s3, s4;
|
|
18914
19048
|
s0 = peg$currPos;
|
|
18915
19049
|
s1 = peg$currPos;
|
|
18916
19050
|
peg$silentFails++;
|
|
18917
|
-
s2 = peg$
|
|
19051
|
+
s2 = peg$currPos;
|
|
19052
|
+
s3 = peg$parseSAMEDENT();
|
|
19053
|
+
if (s3 !== peg$FAILED) {
|
|
19054
|
+
s4 = peg$parseNoBulletListTag();
|
|
19055
|
+
if (s4 !== peg$FAILED) {
|
|
19056
|
+
s3 = [s3, s4];
|
|
19057
|
+
s2 = s3;
|
|
19058
|
+
} else {
|
|
19059
|
+
peg$currPos = s2;
|
|
19060
|
+
s2 = peg$FAILED;
|
|
19061
|
+
}
|
|
19062
|
+
} else {
|
|
19063
|
+
peg$currPos = s2;
|
|
19064
|
+
s2 = peg$FAILED;
|
|
19065
|
+
}
|
|
18918
19066
|
peg$silentFails--;
|
|
18919
19067
|
if (s2 !== peg$FAILED) {
|
|
18920
19068
|
peg$currPos = s1;
|
|
@@ -18924,17 +19072,31 @@ function peg$parse(input, options) {
|
|
|
18924
19072
|
}
|
|
18925
19073
|
if (s1 !== peg$FAILED) {
|
|
18926
19074
|
peg$savedPos = s0;
|
|
18927
|
-
s1 = peg$
|
|
19075
|
+
s1 = peg$f25();
|
|
18928
19076
|
}
|
|
18929
19077
|
s0 = s1;
|
|
18930
19078
|
return s0;
|
|
18931
19079
|
}
|
|
18932
19080
|
function peg$parseOrderedListContainer() {
|
|
18933
|
-
let s0, s1, s2;
|
|
19081
|
+
let s0, s1, s2, s3, s4;
|
|
18934
19082
|
s0 = peg$currPos;
|
|
18935
19083
|
s1 = peg$currPos;
|
|
18936
19084
|
peg$silentFails++;
|
|
18937
|
-
s2 = peg$
|
|
19085
|
+
s2 = peg$currPos;
|
|
19086
|
+
s3 = peg$parseSAMEDENT();
|
|
19087
|
+
if (s3 !== peg$FAILED) {
|
|
19088
|
+
s4 = peg$parseOrderedListTag();
|
|
19089
|
+
if (s4 !== peg$FAILED) {
|
|
19090
|
+
s3 = [s3, s4];
|
|
19091
|
+
s2 = s3;
|
|
19092
|
+
} else {
|
|
19093
|
+
peg$currPos = s2;
|
|
19094
|
+
s2 = peg$FAILED;
|
|
19095
|
+
}
|
|
19096
|
+
} else {
|
|
19097
|
+
peg$currPos = s2;
|
|
19098
|
+
s2 = peg$FAILED;
|
|
19099
|
+
}
|
|
18938
19100
|
peg$silentFails--;
|
|
18939
19101
|
if (s2 !== peg$FAILED) {
|
|
18940
19102
|
peg$currPos = s1;
|
|
@@ -18944,17 +19106,31 @@ function peg$parse(input, options) {
|
|
|
18944
19106
|
}
|
|
18945
19107
|
if (s1 !== peg$FAILED) {
|
|
18946
19108
|
peg$savedPos = s0;
|
|
18947
|
-
s1 = peg$
|
|
19109
|
+
s1 = peg$f26();
|
|
18948
19110
|
}
|
|
18949
19111
|
s0 = s1;
|
|
18950
19112
|
return s0;
|
|
18951
19113
|
}
|
|
18952
19114
|
function peg$parseOrderedListRomanContainer() {
|
|
18953
|
-
let s0, s1, s2;
|
|
19115
|
+
let s0, s1, s2, s3, s4;
|
|
18954
19116
|
s0 = peg$currPos;
|
|
18955
19117
|
s1 = peg$currPos;
|
|
18956
19118
|
peg$silentFails++;
|
|
18957
|
-
s2 = peg$
|
|
19119
|
+
s2 = peg$currPos;
|
|
19120
|
+
s3 = peg$parseSAMEDENT();
|
|
19121
|
+
if (s3 !== peg$FAILED) {
|
|
19122
|
+
s4 = peg$parseOrderedListRomanTag();
|
|
19123
|
+
if (s4 !== peg$FAILED) {
|
|
19124
|
+
s3 = [s3, s4];
|
|
19125
|
+
s2 = s3;
|
|
19126
|
+
} else {
|
|
19127
|
+
peg$currPos = s2;
|
|
19128
|
+
s2 = peg$FAILED;
|
|
19129
|
+
}
|
|
19130
|
+
} else {
|
|
19131
|
+
peg$currPos = s2;
|
|
19132
|
+
s2 = peg$FAILED;
|
|
19133
|
+
}
|
|
18958
19134
|
peg$silentFails--;
|
|
18959
19135
|
if (s2 !== peg$FAILED) {
|
|
18960
19136
|
peg$currPos = s1;
|
|
@@ -18964,17 +19140,31 @@ function peg$parse(input, options) {
|
|
|
18964
19140
|
}
|
|
18965
19141
|
if (s1 !== peg$FAILED) {
|
|
18966
19142
|
peg$savedPos = s0;
|
|
18967
|
-
s1 = peg$
|
|
19143
|
+
s1 = peg$f27();
|
|
18968
19144
|
}
|
|
18969
19145
|
s0 = s1;
|
|
18970
19146
|
return s0;
|
|
18971
19147
|
}
|
|
18972
19148
|
function peg$parseOrderedListRomanLowerContainer() {
|
|
18973
|
-
let s0, s1, s2;
|
|
19149
|
+
let s0, s1, s2, s3, s4;
|
|
18974
19150
|
s0 = peg$currPos;
|
|
18975
19151
|
s1 = peg$currPos;
|
|
18976
19152
|
peg$silentFails++;
|
|
18977
|
-
s2 = peg$
|
|
19153
|
+
s2 = peg$currPos;
|
|
19154
|
+
s3 = peg$parseSAMEDENT();
|
|
19155
|
+
if (s3 !== peg$FAILED) {
|
|
19156
|
+
s4 = peg$parseOrderedListRomanLowerTag();
|
|
19157
|
+
if (s4 !== peg$FAILED) {
|
|
19158
|
+
s3 = [s3, s4];
|
|
19159
|
+
s2 = s3;
|
|
19160
|
+
} else {
|
|
19161
|
+
peg$currPos = s2;
|
|
19162
|
+
s2 = peg$FAILED;
|
|
19163
|
+
}
|
|
19164
|
+
} else {
|
|
19165
|
+
peg$currPos = s2;
|
|
19166
|
+
s2 = peg$FAILED;
|
|
19167
|
+
}
|
|
18978
19168
|
peg$silentFails--;
|
|
18979
19169
|
if (s2 !== peg$FAILED) {
|
|
18980
19170
|
peg$currPos = s1;
|
|
@@ -18984,17 +19174,31 @@ function peg$parse(input, options) {
|
|
|
18984
19174
|
}
|
|
18985
19175
|
if (s1 !== peg$FAILED) {
|
|
18986
19176
|
peg$savedPos = s0;
|
|
18987
|
-
s1 = peg$
|
|
19177
|
+
s1 = peg$f28();
|
|
18988
19178
|
}
|
|
18989
19179
|
s0 = s1;
|
|
18990
19180
|
return s0;
|
|
18991
19181
|
}
|
|
18992
19182
|
function peg$parseLetteredListContainer() {
|
|
18993
|
-
let s0, s1, s2;
|
|
19183
|
+
let s0, s1, s2, s3, s4;
|
|
18994
19184
|
s0 = peg$currPos;
|
|
18995
19185
|
s1 = peg$currPos;
|
|
18996
19186
|
peg$silentFails++;
|
|
18997
|
-
s2 = peg$
|
|
19187
|
+
s2 = peg$currPos;
|
|
19188
|
+
s3 = peg$parseSAMEDENT();
|
|
19189
|
+
if (s3 !== peg$FAILED) {
|
|
19190
|
+
s4 = peg$parseLetteredListTag();
|
|
19191
|
+
if (s4 !== peg$FAILED) {
|
|
19192
|
+
s3 = [s3, s4];
|
|
19193
|
+
s2 = s3;
|
|
19194
|
+
} else {
|
|
19195
|
+
peg$currPos = s2;
|
|
19196
|
+
s2 = peg$FAILED;
|
|
19197
|
+
}
|
|
19198
|
+
} else {
|
|
19199
|
+
peg$currPos = s2;
|
|
19200
|
+
s2 = peg$FAILED;
|
|
19201
|
+
}
|
|
18998
19202
|
peg$silentFails--;
|
|
18999
19203
|
if (s2 !== peg$FAILED) {
|
|
19000
19204
|
peg$currPos = s1;
|
|
@@ -19004,17 +19208,31 @@ function peg$parse(input, options) {
|
|
|
19004
19208
|
}
|
|
19005
19209
|
if (s1 !== peg$FAILED) {
|
|
19006
19210
|
peg$savedPos = s0;
|
|
19007
|
-
s1 = peg$
|
|
19211
|
+
s1 = peg$f29();
|
|
19008
19212
|
}
|
|
19009
19213
|
s0 = s1;
|
|
19010
19214
|
return s0;
|
|
19011
19215
|
}
|
|
19012
19216
|
function peg$parseLetteredListLowerContainer() {
|
|
19013
|
-
let s0, s1, s2;
|
|
19217
|
+
let s0, s1, s2, s3, s4;
|
|
19014
19218
|
s0 = peg$currPos;
|
|
19015
19219
|
s1 = peg$currPos;
|
|
19016
19220
|
peg$silentFails++;
|
|
19017
|
-
s2 = peg$
|
|
19221
|
+
s2 = peg$currPos;
|
|
19222
|
+
s3 = peg$parseSAMEDENT();
|
|
19223
|
+
if (s3 !== peg$FAILED) {
|
|
19224
|
+
s4 = peg$parseLetteredListLowerTag();
|
|
19225
|
+
if (s4 !== peg$FAILED) {
|
|
19226
|
+
s3 = [s3, s4];
|
|
19227
|
+
s2 = s3;
|
|
19228
|
+
} else {
|
|
19229
|
+
peg$currPos = s2;
|
|
19230
|
+
s2 = peg$FAILED;
|
|
19231
|
+
}
|
|
19232
|
+
} else {
|
|
19233
|
+
peg$currPos = s2;
|
|
19234
|
+
s2 = peg$FAILED;
|
|
19235
|
+
}
|
|
19018
19236
|
peg$silentFails--;
|
|
19019
19237
|
if (s2 !== peg$FAILED) {
|
|
19020
19238
|
peg$currPos = s1;
|
|
@@ -19024,17 +19242,31 @@ function peg$parse(input, options) {
|
|
|
19024
19242
|
}
|
|
19025
19243
|
if (s1 !== peg$FAILED) {
|
|
19026
19244
|
peg$savedPos = s0;
|
|
19027
|
-
s1 = peg$
|
|
19245
|
+
s1 = peg$f30();
|
|
19028
19246
|
}
|
|
19029
19247
|
s0 = s1;
|
|
19030
19248
|
return s0;
|
|
19031
19249
|
}
|
|
19032
19250
|
function peg$parseTaskListContainer() {
|
|
19033
|
-
let s0, s1, s2;
|
|
19251
|
+
let s0, s1, s2, s3, s4;
|
|
19034
19252
|
s0 = peg$currPos;
|
|
19035
19253
|
s1 = peg$currPos;
|
|
19036
19254
|
peg$silentFails++;
|
|
19037
|
-
s2 = peg$
|
|
19255
|
+
s2 = peg$currPos;
|
|
19256
|
+
s3 = peg$parseSAMEDENT();
|
|
19257
|
+
if (s3 !== peg$FAILED) {
|
|
19258
|
+
s4 = peg$parseTaskListTag();
|
|
19259
|
+
if (s4 !== peg$FAILED) {
|
|
19260
|
+
s3 = [s3, s4];
|
|
19261
|
+
s2 = s3;
|
|
19262
|
+
} else {
|
|
19263
|
+
peg$currPos = s2;
|
|
19264
|
+
s2 = peg$FAILED;
|
|
19265
|
+
}
|
|
19266
|
+
} else {
|
|
19267
|
+
peg$currPos = s2;
|
|
19268
|
+
s2 = peg$FAILED;
|
|
19269
|
+
}
|
|
19038
19270
|
peg$silentFails--;
|
|
19039
19271
|
if (s2 !== peg$FAILED) {
|
|
19040
19272
|
peg$currPos = s1;
|
|
@@ -19044,7 +19276,7 @@ function peg$parse(input, options) {
|
|
|
19044
19276
|
}
|
|
19045
19277
|
if (s1 !== peg$FAILED) {
|
|
19046
19278
|
peg$savedPos = s0;
|
|
19047
|
-
s1 = peg$
|
|
19279
|
+
s1 = peg$f31();
|
|
19048
19280
|
}
|
|
19049
19281
|
s0 = s1;
|
|
19050
19282
|
return s0;
|
|
@@ -19151,7 +19383,7 @@ function peg$parse(input, options) {
|
|
|
19151
19383
|
s8 = peg$parseDEDENT();
|
|
19152
19384
|
if (s8 !== peg$FAILED) {
|
|
19153
19385
|
peg$savedPos = s5;
|
|
19154
|
-
s5 = peg$
|
|
19386
|
+
s5 = peg$f32(s2, s3, s4, s7);
|
|
19155
19387
|
} else {
|
|
19156
19388
|
peg$currPos = s5;
|
|
19157
19389
|
s5 = peg$FAILED;
|
|
@@ -19164,7 +19396,7 @@ function peg$parse(input, options) {
|
|
|
19164
19396
|
s5 = null;
|
|
19165
19397
|
}
|
|
19166
19398
|
peg$savedPos = s0;
|
|
19167
|
-
s0 = peg$
|
|
19399
|
+
s0 = peg$f33(s2, s3, s4, s5);
|
|
19168
19400
|
} else {
|
|
19169
19401
|
peg$currPos = s0;
|
|
19170
19402
|
s0 = peg$FAILED;
|
|
@@ -19296,7 +19528,7 @@ function peg$parse(input, options) {
|
|
|
19296
19528
|
}
|
|
19297
19529
|
if (s4 !== peg$FAILED) {
|
|
19298
19530
|
peg$savedPos = s0;
|
|
19299
|
-
s0 = peg$
|
|
19531
|
+
s0 = peg$f34(s4);
|
|
19300
19532
|
} else {
|
|
19301
19533
|
peg$currPos = s0;
|
|
19302
19534
|
s0 = peg$FAILED;
|
|
@@ -19325,7 +19557,7 @@ function peg$parse(input, options) {
|
|
|
19325
19557
|
} else {
|
|
19326
19558
|
s2 = peg$FAILED;
|
|
19327
19559
|
if (peg$silentFails === 0) {
|
|
19328
|
-
peg$fail(peg$
|
|
19560
|
+
peg$fail(peg$e8);
|
|
19329
19561
|
}
|
|
19330
19562
|
}
|
|
19331
19563
|
while (s2 !== peg$FAILED) {
|
|
@@ -19336,7 +19568,7 @@ function peg$parse(input, options) {
|
|
|
19336
19568
|
} else {
|
|
19337
19569
|
s2 = peg$FAILED;
|
|
19338
19570
|
if (peg$silentFails === 0) {
|
|
19339
|
-
peg$fail(peg$
|
|
19571
|
+
peg$fail(peg$e8);
|
|
19340
19572
|
}
|
|
19341
19573
|
}
|
|
19342
19574
|
}
|
|
@@ -19355,28 +19587,28 @@ function peg$parse(input, options) {
|
|
|
19355
19587
|
s0 = peg$currPos;
|
|
19356
19588
|
s1 = [];
|
|
19357
19589
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19358
|
-
s2 = peg$
|
|
19590
|
+
s2 = peg$c0;
|
|
19359
19591
|
peg$currPos++;
|
|
19360
19592
|
} else {
|
|
19361
19593
|
s2 = peg$FAILED;
|
|
19362
19594
|
if (peg$silentFails === 0) {
|
|
19363
|
-
peg$fail(peg$
|
|
19595
|
+
peg$fail(peg$e2);
|
|
19364
19596
|
}
|
|
19365
19597
|
}
|
|
19366
19598
|
while (s2 !== peg$FAILED) {
|
|
19367
19599
|
s1.push(s2);
|
|
19368
19600
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19369
|
-
s2 = peg$
|
|
19601
|
+
s2 = peg$c0;
|
|
19370
19602
|
peg$currPos++;
|
|
19371
19603
|
} else {
|
|
19372
19604
|
s2 = peg$FAILED;
|
|
19373
19605
|
if (peg$silentFails === 0) {
|
|
19374
|
-
peg$fail(peg$
|
|
19606
|
+
peg$fail(peg$e2);
|
|
19375
19607
|
}
|
|
19376
19608
|
}
|
|
19377
19609
|
}
|
|
19378
19610
|
peg$savedPos = peg$currPos;
|
|
19379
|
-
s2 = peg$
|
|
19611
|
+
s2 = peg$f35(s1);
|
|
19380
19612
|
if (s2) {
|
|
19381
19613
|
s2 = void 0;
|
|
19382
19614
|
} else {
|
|
@@ -19398,24 +19630,24 @@ function peg$parse(input, options) {
|
|
|
19398
19630
|
s1 = peg$currPos;
|
|
19399
19631
|
s2 = [];
|
|
19400
19632
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19401
|
-
s3 = peg$
|
|
19633
|
+
s3 = peg$c0;
|
|
19402
19634
|
peg$currPos++;
|
|
19403
19635
|
} else {
|
|
19404
19636
|
s3 = peg$FAILED;
|
|
19405
19637
|
if (peg$silentFails === 0) {
|
|
19406
|
-
peg$fail(peg$
|
|
19638
|
+
peg$fail(peg$e2);
|
|
19407
19639
|
}
|
|
19408
19640
|
}
|
|
19409
19641
|
if (s3 !== peg$FAILED) {
|
|
19410
19642
|
while (s3 !== peg$FAILED) {
|
|
19411
19643
|
s2.push(s3);
|
|
19412
19644
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19413
|
-
s3 = peg$
|
|
19645
|
+
s3 = peg$c0;
|
|
19414
19646
|
peg$currPos++;
|
|
19415
19647
|
} else {
|
|
19416
19648
|
s3 = peg$FAILED;
|
|
19417
19649
|
if (peg$silentFails === 0) {
|
|
19418
|
-
peg$fail(peg$
|
|
19650
|
+
peg$fail(peg$e2);
|
|
19419
19651
|
}
|
|
19420
19652
|
}
|
|
19421
19653
|
}
|
|
@@ -19424,7 +19656,7 @@ function peg$parse(input, options) {
|
|
|
19424
19656
|
}
|
|
19425
19657
|
if (s2 !== peg$FAILED) {
|
|
19426
19658
|
peg$savedPos = peg$currPos;
|
|
19427
|
-
s3 = peg$
|
|
19659
|
+
s3 = peg$f36(s2);
|
|
19428
19660
|
if (s3) {
|
|
19429
19661
|
s3 = void 0;
|
|
19430
19662
|
} else {
|
|
@@ -19432,7 +19664,7 @@ function peg$parse(input, options) {
|
|
|
19432
19664
|
}
|
|
19433
19665
|
if (s3 !== peg$FAILED) {
|
|
19434
19666
|
peg$savedPos = s1;
|
|
19435
|
-
s1 = peg$
|
|
19667
|
+
s1 = peg$f37(s2);
|
|
19436
19668
|
} else {
|
|
19437
19669
|
peg$currPos = s1;
|
|
19438
19670
|
s1 = peg$FAILED;
|
|
@@ -19453,7 +19685,7 @@ function peg$parse(input, options) {
|
|
|
19453
19685
|
function peg$parseDEDENT() {
|
|
19454
19686
|
let s0;
|
|
19455
19687
|
peg$savedPos = peg$currPos;
|
|
19456
|
-
s0 = peg$
|
|
19688
|
+
s0 = peg$f38();
|
|
19457
19689
|
if (s0) {
|
|
19458
19690
|
s0 = void 0;
|
|
19459
19691
|
} else {
|
|
@@ -19478,7 +19710,7 @@ function peg$parse(input, options) {
|
|
|
19478
19710
|
s2 = peg$parseParagraphBody();
|
|
19479
19711
|
if (s2 !== peg$FAILED) {
|
|
19480
19712
|
peg$savedPos = s0;
|
|
19481
|
-
s0 = peg$
|
|
19713
|
+
s0 = peg$f39(s2);
|
|
19482
19714
|
} else {
|
|
19483
19715
|
peg$currPos = s0;
|
|
19484
19716
|
s0 = peg$FAILED;
|
|
@@ -19494,7 +19726,7 @@ function peg$parse(input, options) {
|
|
|
19494
19726
|
s2 = peg$parseParagraphBody();
|
|
19495
19727
|
if (s2 !== peg$FAILED) {
|
|
19496
19728
|
peg$savedPos = s0;
|
|
19497
|
-
s0 = peg$
|
|
19729
|
+
s0 = peg$f40(s2);
|
|
19498
19730
|
} else {
|
|
19499
19731
|
peg$currPos = s0;
|
|
19500
19732
|
s0 = peg$FAILED;
|
|
@@ -19509,7 +19741,7 @@ function peg$parse(input, options) {
|
|
|
19509
19741
|
if (s1 !== peg$FAILED) {
|
|
19510
19742
|
s2 = "";
|
|
19511
19743
|
peg$savedPos = s0;
|
|
19512
|
-
s0 = peg$
|
|
19744
|
+
s0 = peg$f41(s2);
|
|
19513
19745
|
} else {
|
|
19514
19746
|
peg$currPos = s0;
|
|
19515
19747
|
s0 = peg$FAILED;
|
|
@@ -19612,7 +19844,7 @@ function peg$parse(input, options) {
|
|
|
19612
19844
|
} else {
|
|
19613
19845
|
s5 = peg$FAILED;
|
|
19614
19846
|
if (peg$silentFails === 0) {
|
|
19615
|
-
peg$fail(peg$
|
|
19847
|
+
peg$fail(peg$e8);
|
|
19616
19848
|
}
|
|
19617
19849
|
}
|
|
19618
19850
|
while (s5 !== peg$FAILED) {
|
|
@@ -19623,7 +19855,7 @@ function peg$parse(input, options) {
|
|
|
19623
19855
|
} else {
|
|
19624
19856
|
s5 = peg$FAILED;
|
|
19625
19857
|
if (peg$silentFails === 0) {
|
|
19626
|
-
peg$fail(peg$
|
|
19858
|
+
peg$fail(peg$e8);
|
|
19627
19859
|
}
|
|
19628
19860
|
}
|
|
19629
19861
|
}
|
|
@@ -19678,7 +19910,7 @@ function peg$parse(input, options) {
|
|
|
19678
19910
|
s2 = peg$parseImageType();
|
|
19679
19911
|
if (s2 !== peg$FAILED) {
|
|
19680
19912
|
peg$savedPos = s0;
|
|
19681
|
-
s0 = peg$
|
|
19913
|
+
s0 = peg$f42(s2);
|
|
19682
19914
|
} else {
|
|
19683
19915
|
peg$currPos = s0;
|
|
19684
19916
|
s0 = peg$FAILED;
|
|
@@ -19695,22 +19927,22 @@ function peg$parse(input, options) {
|
|
|
19695
19927
|
s1 = peg$parseImageTag();
|
|
19696
19928
|
if (s1 !== peg$FAILED) {
|
|
19697
19929
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19698
|
-
s2 = peg$
|
|
19930
|
+
s2 = peg$c6;
|
|
19699
19931
|
peg$currPos++;
|
|
19700
19932
|
} else {
|
|
19701
19933
|
s2 = peg$FAILED;
|
|
19702
19934
|
if (peg$silentFails === 0) {
|
|
19703
|
-
peg$fail(peg$
|
|
19935
|
+
peg$fail(peg$e9);
|
|
19704
19936
|
}
|
|
19705
19937
|
}
|
|
19706
19938
|
if (s2 !== peg$FAILED) {
|
|
19707
19939
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19708
|
-
s3 = peg$
|
|
19940
|
+
s3 = peg$c13;
|
|
19709
19941
|
peg$currPos++;
|
|
19710
19942
|
} else {
|
|
19711
19943
|
s3 = peg$FAILED;
|
|
19712
19944
|
if (peg$silentFails === 0) {
|
|
19713
|
-
peg$fail(peg$
|
|
19945
|
+
peg$fail(peg$e17);
|
|
19714
19946
|
}
|
|
19715
19947
|
}
|
|
19716
19948
|
if (s3 === peg$FAILED) {
|
|
@@ -19720,23 +19952,23 @@ function peg$parse(input, options) {
|
|
|
19720
19952
|
if (s4 !== peg$FAILED) {
|
|
19721
19953
|
s5 = [];
|
|
19722
19954
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19723
|
-
s6 = peg$
|
|
19955
|
+
s6 = peg$c13;
|
|
19724
19956
|
peg$currPos++;
|
|
19725
19957
|
} else {
|
|
19726
19958
|
s6 = peg$FAILED;
|
|
19727
19959
|
if (peg$silentFails === 0) {
|
|
19728
|
-
peg$fail(peg$
|
|
19960
|
+
peg$fail(peg$e17);
|
|
19729
19961
|
}
|
|
19730
19962
|
}
|
|
19731
19963
|
while (s6 !== peg$FAILED) {
|
|
19732
19964
|
s5.push(s6);
|
|
19733
19965
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19734
|
-
s6 = peg$
|
|
19966
|
+
s6 = peg$c13;
|
|
19735
19967
|
peg$currPos++;
|
|
19736
19968
|
} else {
|
|
19737
19969
|
s6 = peg$FAILED;
|
|
19738
19970
|
if (peg$silentFails === 0) {
|
|
19739
|
-
peg$fail(peg$
|
|
19971
|
+
peg$fail(peg$e17);
|
|
19740
19972
|
}
|
|
19741
19973
|
}
|
|
19742
19974
|
}
|
|
@@ -19752,7 +19984,7 @@ function peg$parse(input, options) {
|
|
|
19752
19984
|
} else {
|
|
19753
19985
|
s11 = peg$FAILED;
|
|
19754
19986
|
if (peg$silentFails === 0) {
|
|
19755
|
-
peg$fail(peg$
|
|
19987
|
+
peg$fail(peg$e8);
|
|
19756
19988
|
}
|
|
19757
19989
|
}
|
|
19758
19990
|
while (s11 !== peg$FAILED) {
|
|
@@ -19763,7 +19995,7 @@ function peg$parse(input, options) {
|
|
|
19763
19995
|
} else {
|
|
19764
19996
|
s11 = peg$FAILED;
|
|
19765
19997
|
if (peg$silentFails === 0) {
|
|
19766
|
-
peg$fail(peg$
|
|
19998
|
+
peg$fail(peg$e8);
|
|
19767
19999
|
}
|
|
19768
20000
|
}
|
|
19769
20001
|
}
|
|
@@ -19786,7 +20018,7 @@ function peg$parse(input, options) {
|
|
|
19786
20018
|
s9 = null;
|
|
19787
20019
|
}
|
|
19788
20020
|
peg$savedPos = s0;
|
|
19789
|
-
s0 = peg$
|
|
20021
|
+
s0 = peg$f43(s1, s4, s7);
|
|
19790
20022
|
} else {
|
|
19791
20023
|
peg$currPos = s0;
|
|
19792
20024
|
s0 = peg$FAILED;
|
|
@@ -19819,7 +20051,7 @@ function peg$parse(input, options) {
|
|
|
19819
20051
|
s2 = peg$parseMediaChainItem();
|
|
19820
20052
|
}
|
|
19821
20053
|
peg$savedPos = s0;
|
|
19822
|
-
s1 = peg$
|
|
20054
|
+
s1 = peg$f44(s1);
|
|
19823
20055
|
s0 = s1;
|
|
19824
20056
|
return s0;
|
|
19825
20057
|
}
|
|
@@ -19893,7 +20125,7 @@ function peg$parse(input, options) {
|
|
|
19893
20125
|
s3 = peg$parseBlockTag();
|
|
19894
20126
|
if (s3 !== peg$FAILED) {
|
|
19895
20127
|
peg$savedPos = s0;
|
|
19896
|
-
s0 = peg$
|
|
20128
|
+
s0 = peg$f45(s2);
|
|
19897
20129
|
} else {
|
|
19898
20130
|
peg$currPos = s0;
|
|
19899
20131
|
s0 = peg$FAILED;
|
|
@@ -19919,34 +20151,34 @@ function peg$parse(input, options) {
|
|
|
19919
20151
|
s2 = peg$parseMediaSizeTags();
|
|
19920
20152
|
if (s2 !== peg$FAILED) {
|
|
19921
20153
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19922
|
-
s3 = peg$
|
|
20154
|
+
s3 = peg$c6;
|
|
19923
20155
|
peg$currPos++;
|
|
19924
20156
|
} else {
|
|
19925
20157
|
s3 = peg$FAILED;
|
|
19926
20158
|
if (peg$silentFails === 0) {
|
|
19927
|
-
peg$fail(peg$
|
|
20159
|
+
peg$fail(peg$e9);
|
|
19928
20160
|
}
|
|
19929
20161
|
}
|
|
19930
20162
|
if (s3 !== peg$FAILED) {
|
|
19931
20163
|
s4 = [];
|
|
19932
20164
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19933
|
-
s5 = peg$
|
|
20165
|
+
s5 = peg$c13;
|
|
19934
20166
|
peg$currPos++;
|
|
19935
20167
|
} else {
|
|
19936
20168
|
s5 = peg$FAILED;
|
|
19937
20169
|
if (peg$silentFails === 0) {
|
|
19938
|
-
peg$fail(peg$
|
|
20170
|
+
peg$fail(peg$e17);
|
|
19939
20171
|
}
|
|
19940
20172
|
}
|
|
19941
20173
|
while (s5 !== peg$FAILED) {
|
|
19942
20174
|
s4.push(s5);
|
|
19943
20175
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19944
|
-
s5 = peg$
|
|
20176
|
+
s5 = peg$c13;
|
|
19945
20177
|
peg$currPos++;
|
|
19946
20178
|
} else {
|
|
19947
20179
|
s5 = peg$FAILED;
|
|
19948
20180
|
if (peg$silentFails === 0) {
|
|
19949
|
-
peg$fail(peg$
|
|
20181
|
+
peg$fail(peg$e17);
|
|
19950
20182
|
}
|
|
19951
20183
|
}
|
|
19952
20184
|
}
|
|
@@ -19970,7 +20202,7 @@ function peg$parse(input, options) {
|
|
|
19970
20202
|
} else {
|
|
19971
20203
|
s9 = peg$FAILED;
|
|
19972
20204
|
if (peg$silentFails === 0) {
|
|
19973
|
-
peg$fail(peg$
|
|
20205
|
+
peg$fail(peg$e16);
|
|
19974
20206
|
}
|
|
19975
20207
|
}
|
|
19976
20208
|
if (s9 !== peg$FAILED) {
|
|
@@ -20005,7 +20237,7 @@ function peg$parse(input, options) {
|
|
|
20005
20237
|
} else {
|
|
20006
20238
|
s9 = peg$FAILED;
|
|
20007
20239
|
if (peg$silentFails === 0) {
|
|
20008
|
-
peg$fail(peg$
|
|
20240
|
+
peg$fail(peg$e16);
|
|
20009
20241
|
}
|
|
20010
20242
|
}
|
|
20011
20243
|
if (s9 !== peg$FAILED) {
|
|
@@ -20031,30 +20263,30 @@ function peg$parse(input, options) {
|
|
|
20031
20263
|
if (s5 !== peg$FAILED) {
|
|
20032
20264
|
s6 = [];
|
|
20033
20265
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20034
|
-
s7 = peg$
|
|
20266
|
+
s7 = peg$c13;
|
|
20035
20267
|
peg$currPos++;
|
|
20036
20268
|
} else {
|
|
20037
20269
|
s7 = peg$FAILED;
|
|
20038
20270
|
if (peg$silentFails === 0) {
|
|
20039
|
-
peg$fail(peg$
|
|
20271
|
+
peg$fail(peg$e17);
|
|
20040
20272
|
}
|
|
20041
20273
|
}
|
|
20042
20274
|
while (s7 !== peg$FAILED) {
|
|
20043
20275
|
s6.push(s7);
|
|
20044
20276
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20045
|
-
s7 = peg$
|
|
20277
|
+
s7 = peg$c13;
|
|
20046
20278
|
peg$currPos++;
|
|
20047
20279
|
} else {
|
|
20048
20280
|
s7 = peg$FAILED;
|
|
20049
20281
|
if (peg$silentFails === 0) {
|
|
20050
|
-
peg$fail(peg$
|
|
20282
|
+
peg$fail(peg$e17);
|
|
20051
20283
|
}
|
|
20052
20284
|
}
|
|
20053
20285
|
}
|
|
20054
20286
|
s7 = peg$parseBlockTag();
|
|
20055
20287
|
if (s7 !== peg$FAILED) {
|
|
20056
20288
|
peg$savedPos = s0;
|
|
20057
|
-
s0 = peg$
|
|
20289
|
+
s0 = peg$f46(s2, s5);
|
|
20058
20290
|
} else {
|
|
20059
20291
|
peg$currPos = s0;
|
|
20060
20292
|
s0 = peg$FAILED;
|
|
@@ -20088,34 +20320,34 @@ function peg$parse(input, options) {
|
|
|
20088
20320
|
s2 = peg$parseMediaTextTags();
|
|
20089
20321
|
if (s2 !== peg$FAILED) {
|
|
20090
20322
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20091
|
-
s3 = peg$
|
|
20323
|
+
s3 = peg$c6;
|
|
20092
20324
|
peg$currPos++;
|
|
20093
20325
|
} else {
|
|
20094
20326
|
s3 = peg$FAILED;
|
|
20095
20327
|
if (peg$silentFails === 0) {
|
|
20096
|
-
peg$fail(peg$
|
|
20328
|
+
peg$fail(peg$e9);
|
|
20097
20329
|
}
|
|
20098
20330
|
}
|
|
20099
20331
|
if (s3 !== peg$FAILED) {
|
|
20100
20332
|
s4 = [];
|
|
20101
20333
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20102
|
-
s5 = peg$
|
|
20334
|
+
s5 = peg$c13;
|
|
20103
20335
|
peg$currPos++;
|
|
20104
20336
|
} else {
|
|
20105
20337
|
s5 = peg$FAILED;
|
|
20106
20338
|
if (peg$silentFails === 0) {
|
|
20107
|
-
peg$fail(peg$
|
|
20339
|
+
peg$fail(peg$e17);
|
|
20108
20340
|
}
|
|
20109
20341
|
}
|
|
20110
20342
|
while (s5 !== peg$FAILED) {
|
|
20111
20343
|
s4.push(s5);
|
|
20112
20344
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20113
|
-
s5 = peg$
|
|
20345
|
+
s5 = peg$c13;
|
|
20114
20346
|
peg$currPos++;
|
|
20115
20347
|
} else {
|
|
20116
20348
|
s5 = peg$FAILED;
|
|
20117
20349
|
if (peg$silentFails === 0) {
|
|
20118
|
-
peg$fail(peg$
|
|
20350
|
+
peg$fail(peg$e17);
|
|
20119
20351
|
}
|
|
20120
20352
|
}
|
|
20121
20353
|
}
|
|
@@ -20176,7 +20408,7 @@ function peg$parse(input, options) {
|
|
|
20176
20408
|
s6 = peg$parseBlockTag();
|
|
20177
20409
|
if (s6 !== peg$FAILED) {
|
|
20178
20410
|
peg$savedPos = s0;
|
|
20179
|
-
s0 = peg$
|
|
20411
|
+
s0 = peg$f47(s2, s5);
|
|
20180
20412
|
} else {
|
|
20181
20413
|
peg$currPos = s0;
|
|
20182
20414
|
s0 = peg$FAILED;
|
|
@@ -20206,34 +20438,34 @@ function peg$parse(input, options) {
|
|
|
20206
20438
|
s2 = peg$parseMediaAlignmentTags();
|
|
20207
20439
|
if (s2 !== peg$FAILED) {
|
|
20208
20440
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20209
|
-
s3 = peg$
|
|
20441
|
+
s3 = peg$c6;
|
|
20210
20442
|
peg$currPos++;
|
|
20211
20443
|
} else {
|
|
20212
20444
|
s3 = peg$FAILED;
|
|
20213
20445
|
if (peg$silentFails === 0) {
|
|
20214
|
-
peg$fail(peg$
|
|
20446
|
+
peg$fail(peg$e9);
|
|
20215
20447
|
}
|
|
20216
20448
|
}
|
|
20217
20449
|
if (s3 !== peg$FAILED) {
|
|
20218
20450
|
s4 = [];
|
|
20219
20451
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20220
|
-
s5 = peg$
|
|
20452
|
+
s5 = peg$c13;
|
|
20221
20453
|
peg$currPos++;
|
|
20222
20454
|
} else {
|
|
20223
20455
|
s5 = peg$FAILED;
|
|
20224
20456
|
if (peg$silentFails === 0) {
|
|
20225
|
-
peg$fail(peg$
|
|
20457
|
+
peg$fail(peg$e17);
|
|
20226
20458
|
}
|
|
20227
20459
|
}
|
|
20228
20460
|
while (s5 !== peg$FAILED) {
|
|
20229
20461
|
s4.push(s5);
|
|
20230
20462
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20231
|
-
s5 = peg$
|
|
20463
|
+
s5 = peg$c13;
|
|
20232
20464
|
peg$currPos++;
|
|
20233
20465
|
} else {
|
|
20234
20466
|
s5 = peg$FAILED;
|
|
20235
20467
|
if (peg$silentFails === 0) {
|
|
20236
|
-
peg$fail(peg$
|
|
20468
|
+
peg$fail(peg$e17);
|
|
20237
20469
|
}
|
|
20238
20470
|
}
|
|
20239
20471
|
}
|
|
@@ -20241,30 +20473,30 @@ function peg$parse(input, options) {
|
|
|
20241
20473
|
if (s5 !== peg$FAILED) {
|
|
20242
20474
|
s6 = [];
|
|
20243
20475
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20244
|
-
s7 = peg$
|
|
20476
|
+
s7 = peg$c13;
|
|
20245
20477
|
peg$currPos++;
|
|
20246
20478
|
} else {
|
|
20247
20479
|
s7 = peg$FAILED;
|
|
20248
20480
|
if (peg$silentFails === 0) {
|
|
20249
|
-
peg$fail(peg$
|
|
20481
|
+
peg$fail(peg$e17);
|
|
20250
20482
|
}
|
|
20251
20483
|
}
|
|
20252
20484
|
while (s7 !== peg$FAILED) {
|
|
20253
20485
|
s6.push(s7);
|
|
20254
20486
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20255
|
-
s7 = peg$
|
|
20487
|
+
s7 = peg$c13;
|
|
20256
20488
|
peg$currPos++;
|
|
20257
20489
|
} else {
|
|
20258
20490
|
s7 = peg$FAILED;
|
|
20259
20491
|
if (peg$silentFails === 0) {
|
|
20260
|
-
peg$fail(peg$
|
|
20492
|
+
peg$fail(peg$e17);
|
|
20261
20493
|
}
|
|
20262
20494
|
}
|
|
20263
20495
|
}
|
|
20264
20496
|
s7 = peg$parseBlockTag();
|
|
20265
20497
|
if (s7 !== peg$FAILED) {
|
|
20266
20498
|
peg$savedPos = s0;
|
|
20267
|
-
s0 = peg$
|
|
20499
|
+
s0 = peg$f48(s2, s5);
|
|
20268
20500
|
} else {
|
|
20269
20501
|
peg$currPos = s0;
|
|
20270
20502
|
s0 = peg$FAILED;
|
|
@@ -20298,34 +20530,34 @@ function peg$parse(input, options) {
|
|
|
20298
20530
|
s2 = peg$parseMediaBooleanTags();
|
|
20299
20531
|
if (s2 !== peg$FAILED) {
|
|
20300
20532
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20301
|
-
s3 = peg$
|
|
20533
|
+
s3 = peg$c6;
|
|
20302
20534
|
peg$currPos++;
|
|
20303
20535
|
} else {
|
|
20304
20536
|
s3 = peg$FAILED;
|
|
20305
20537
|
if (peg$silentFails === 0) {
|
|
20306
|
-
peg$fail(peg$
|
|
20538
|
+
peg$fail(peg$e9);
|
|
20307
20539
|
}
|
|
20308
20540
|
}
|
|
20309
20541
|
if (s3 !== peg$FAILED) {
|
|
20310
20542
|
s4 = [];
|
|
20311
20543
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20312
|
-
s5 = peg$
|
|
20544
|
+
s5 = peg$c13;
|
|
20313
20545
|
peg$currPos++;
|
|
20314
20546
|
} else {
|
|
20315
20547
|
s5 = peg$FAILED;
|
|
20316
20548
|
if (peg$silentFails === 0) {
|
|
20317
|
-
peg$fail(peg$
|
|
20549
|
+
peg$fail(peg$e17);
|
|
20318
20550
|
}
|
|
20319
20551
|
}
|
|
20320
20552
|
while (s5 !== peg$FAILED) {
|
|
20321
20553
|
s4.push(s5);
|
|
20322
20554
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20323
|
-
s5 = peg$
|
|
20555
|
+
s5 = peg$c13;
|
|
20324
20556
|
peg$currPos++;
|
|
20325
20557
|
} else {
|
|
20326
20558
|
s5 = peg$FAILED;
|
|
20327
20559
|
if (peg$silentFails === 0) {
|
|
20328
|
-
peg$fail(peg$
|
|
20560
|
+
peg$fail(peg$e17);
|
|
20329
20561
|
}
|
|
20330
20562
|
}
|
|
20331
20563
|
}
|
|
@@ -20333,30 +20565,30 @@ function peg$parse(input, options) {
|
|
|
20333
20565
|
if (s5 !== peg$FAILED) {
|
|
20334
20566
|
s6 = [];
|
|
20335
20567
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20336
|
-
s7 = peg$
|
|
20568
|
+
s7 = peg$c13;
|
|
20337
20569
|
peg$currPos++;
|
|
20338
20570
|
} else {
|
|
20339
20571
|
s7 = peg$FAILED;
|
|
20340
20572
|
if (peg$silentFails === 0) {
|
|
20341
|
-
peg$fail(peg$
|
|
20573
|
+
peg$fail(peg$e17);
|
|
20342
20574
|
}
|
|
20343
20575
|
}
|
|
20344
20576
|
while (s7 !== peg$FAILED) {
|
|
20345
20577
|
s6.push(s7);
|
|
20346
20578
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20347
|
-
s7 = peg$
|
|
20579
|
+
s7 = peg$c13;
|
|
20348
20580
|
peg$currPos++;
|
|
20349
20581
|
} else {
|
|
20350
20582
|
s7 = peg$FAILED;
|
|
20351
20583
|
if (peg$silentFails === 0) {
|
|
20352
|
-
peg$fail(peg$
|
|
20584
|
+
peg$fail(peg$e17);
|
|
20353
20585
|
}
|
|
20354
20586
|
}
|
|
20355
20587
|
}
|
|
20356
20588
|
s7 = peg$parseBlockTag();
|
|
20357
20589
|
if (s7 !== peg$FAILED) {
|
|
20358
20590
|
peg$savedPos = s0;
|
|
20359
|
-
s0 = peg$
|
|
20591
|
+
s0 = peg$f49(s2, s5);
|
|
20360
20592
|
} else {
|
|
20361
20593
|
peg$currPos = s0;
|
|
20362
20594
|
s0 = peg$FAILED;
|
|
@@ -20391,30 +20623,30 @@ function peg$parse(input, options) {
|
|
|
20391
20623
|
if (s2 !== peg$FAILED) {
|
|
20392
20624
|
s3 = [];
|
|
20393
20625
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20394
|
-
s4 = peg$
|
|
20626
|
+
s4 = peg$c13;
|
|
20395
20627
|
peg$currPos++;
|
|
20396
20628
|
} else {
|
|
20397
20629
|
s4 = peg$FAILED;
|
|
20398
20630
|
if (peg$silentFails === 0) {
|
|
20399
|
-
peg$fail(peg$
|
|
20631
|
+
peg$fail(peg$e17);
|
|
20400
20632
|
}
|
|
20401
20633
|
}
|
|
20402
20634
|
while (s4 !== peg$FAILED) {
|
|
20403
20635
|
s3.push(s4);
|
|
20404
20636
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20405
|
-
s4 = peg$
|
|
20637
|
+
s4 = peg$c13;
|
|
20406
20638
|
peg$currPos++;
|
|
20407
20639
|
} else {
|
|
20408
20640
|
s4 = peg$FAILED;
|
|
20409
20641
|
if (peg$silentFails === 0) {
|
|
20410
|
-
peg$fail(peg$
|
|
20642
|
+
peg$fail(peg$e17);
|
|
20411
20643
|
}
|
|
20412
20644
|
}
|
|
20413
20645
|
}
|
|
20414
20646
|
s4 = peg$parseBlockTag();
|
|
20415
20647
|
if (s4 !== peg$FAILED) {
|
|
20416
20648
|
peg$savedPos = s0;
|
|
20417
|
-
s0 = peg$
|
|
20649
|
+
s0 = peg$f50(s2);
|
|
20418
20650
|
} else {
|
|
20419
20651
|
peg$currPos = s0;
|
|
20420
20652
|
s0 = peg$FAILED;
|
|
@@ -20440,7 +20672,7 @@ function peg$parse(input, options) {
|
|
|
20440
20672
|
s2 = peg$parseBlockTag();
|
|
20441
20673
|
if (s2 !== peg$FAILED) {
|
|
20442
20674
|
peg$savedPos = s0;
|
|
20443
|
-
s0 = peg$
|
|
20675
|
+
s0 = peg$f51();
|
|
20444
20676
|
} else {
|
|
20445
20677
|
peg$currPos = s0;
|
|
20446
20678
|
s0 = peg$FAILED;
|
|
@@ -20516,7 +20748,7 @@ function peg$parse(input, options) {
|
|
|
20516
20748
|
s3 = peg$parseBlockTag();
|
|
20517
20749
|
if (s3 !== peg$FAILED) {
|
|
20518
20750
|
peg$savedPos = s0;
|
|
20519
|
-
s0 = peg$
|
|
20751
|
+
s0 = peg$f52(s2);
|
|
20520
20752
|
} else {
|
|
20521
20753
|
peg$currPos = s0;
|
|
20522
20754
|
s0 = peg$FAILED;
|
|
@@ -20680,7 +20912,7 @@ function peg$parse(input, options) {
|
|
|
20680
20912
|
s0 = peg$currPos;
|
|
20681
20913
|
s1 = peg$parseInlineTags();
|
|
20682
20914
|
peg$savedPos = s0;
|
|
20683
|
-
s1 = peg$
|
|
20915
|
+
s1 = peg$f53(s1);
|
|
20684
20916
|
s0 = s1;
|
|
20685
20917
|
peg$silentFails--;
|
|
20686
20918
|
return s0;
|
|
@@ -20712,7 +20944,7 @@ function peg$parse(input, options) {
|
|
|
20712
20944
|
}
|
|
20713
20945
|
}
|
|
20714
20946
|
peg$savedPos = s0;
|
|
20715
|
-
s0 = peg$
|
|
20947
|
+
s0 = peg$f54(s1, s2);
|
|
20716
20948
|
return s0;
|
|
20717
20949
|
}
|
|
20718
20950
|
function peg$parseInlinePlainText() {
|
|
@@ -20721,7 +20953,7 @@ function peg$parse(input, options) {
|
|
|
20721
20953
|
s1 = peg$parseNL();
|
|
20722
20954
|
if (s1 !== peg$FAILED) {
|
|
20723
20955
|
peg$savedPos = s0;
|
|
20724
|
-
s1 = peg$
|
|
20956
|
+
s1 = peg$f55();
|
|
20725
20957
|
}
|
|
20726
20958
|
s0 = s1;
|
|
20727
20959
|
if (s0 === peg$FAILED) {
|
|
@@ -20850,7 +21082,7 @@ function peg$parse(input, options) {
|
|
|
20850
21082
|
}
|
|
20851
21083
|
if (s1 !== peg$FAILED) {
|
|
20852
21084
|
peg$savedPos = s0;
|
|
20853
|
-
s1 = peg$
|
|
21085
|
+
s1 = peg$f56(s1);
|
|
20854
21086
|
}
|
|
20855
21087
|
s0 = s1;
|
|
20856
21088
|
}
|
|
@@ -20901,7 +21133,7 @@ function peg$parse(input, options) {
|
|
|
20901
21133
|
} else {
|
|
20902
21134
|
s4 = peg$FAILED;
|
|
20903
21135
|
if (peg$silentFails === 0) {
|
|
20904
|
-
peg$fail(peg$
|
|
21136
|
+
peg$fail(peg$e16);
|
|
20905
21137
|
}
|
|
20906
21138
|
}
|
|
20907
21139
|
if (s4 !== peg$FAILED) {
|
|
@@ -20913,7 +21145,7 @@ function peg$parse(input, options) {
|
|
|
20913
21145
|
} else {
|
|
20914
21146
|
s4 = peg$FAILED;
|
|
20915
21147
|
if (peg$silentFails === 0) {
|
|
20916
|
-
peg$fail(peg$
|
|
21148
|
+
peg$fail(peg$e16);
|
|
20917
21149
|
}
|
|
20918
21150
|
}
|
|
20919
21151
|
}
|
|
@@ -20929,7 +21161,7 @@ function peg$parse(input, options) {
|
|
|
20929
21161
|
s3 = peg$parseBodyBitCloseTag();
|
|
20930
21162
|
if (s3 !== peg$FAILED) {
|
|
20931
21163
|
peg$savedPos = s0;
|
|
20932
|
-
s0 = peg$
|
|
21164
|
+
s0 = peg$f57(s2);
|
|
20933
21165
|
} else {
|
|
20934
21166
|
peg$currPos = s0;
|
|
20935
21167
|
s0 = peg$FAILED;
|
|
@@ -21029,7 +21261,7 @@ function peg$parse(input, options) {
|
|
|
21029
21261
|
}
|
|
21030
21262
|
if (s4 !== peg$FAILED) {
|
|
21031
21263
|
peg$savedPos = s0;
|
|
21032
|
-
s0 = peg$
|
|
21264
|
+
s0 = peg$f58(s2);
|
|
21033
21265
|
} else {
|
|
21034
21266
|
peg$currPos = s0;
|
|
21035
21267
|
s0 = peg$FAILED;
|
|
@@ -21131,18 +21363,18 @@ function peg$parse(input, options) {
|
|
|
21131
21363
|
s5 = peg$parseUrl();
|
|
21132
21364
|
if (s5 !== peg$FAILED) {
|
|
21133
21365
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
21134
|
-
s6 = peg$
|
|
21366
|
+
s6 = peg$c1;
|
|
21135
21367
|
peg$currPos++;
|
|
21136
21368
|
} else {
|
|
21137
21369
|
s6 = peg$FAILED;
|
|
21138
21370
|
if (peg$silentFails === 0) {
|
|
21139
|
-
peg$fail(peg$
|
|
21371
|
+
peg$fail(peg$e3);
|
|
21140
21372
|
}
|
|
21141
21373
|
}
|
|
21142
21374
|
if (s6 !== peg$FAILED) {
|
|
21143
21375
|
s7 = peg$parseInlineMediaChain();
|
|
21144
21376
|
peg$savedPos = s0;
|
|
21145
|
-
s0 = peg$
|
|
21377
|
+
s0 = peg$f59(s2, s5, s7);
|
|
21146
21378
|
} else {
|
|
21147
21379
|
peg$currPos = s0;
|
|
21148
21380
|
s0 = peg$FAILED;
|
|
@@ -21242,7 +21474,7 @@ function peg$parse(input, options) {
|
|
|
21242
21474
|
s4 = peg$parseAttrChain();
|
|
21243
21475
|
if (s4 !== peg$FAILED) {
|
|
21244
21476
|
peg$savedPos = s0;
|
|
21245
|
-
s0 = peg$
|
|
21477
|
+
s0 = peg$f60(s2, s4);
|
|
21246
21478
|
} else {
|
|
21247
21479
|
peg$currPos = s0;
|
|
21248
21480
|
s0 = peg$FAILED;
|
|
@@ -21332,7 +21564,7 @@ function peg$parse(input, options) {
|
|
|
21332
21564
|
s3 = peg$parseBoldTag();
|
|
21333
21565
|
if (s3 !== peg$FAILED) {
|
|
21334
21566
|
peg$savedPos = s0;
|
|
21335
|
-
s0 = peg$
|
|
21567
|
+
s0 = peg$f61(s2);
|
|
21336
21568
|
} else {
|
|
21337
21569
|
peg$currPos = s0;
|
|
21338
21570
|
s0 = peg$FAILED;
|
|
@@ -21418,7 +21650,7 @@ function peg$parse(input, options) {
|
|
|
21418
21650
|
s3 = peg$parseItalicTag();
|
|
21419
21651
|
if (s3 !== peg$FAILED) {
|
|
21420
21652
|
peg$savedPos = s0;
|
|
21421
|
-
s0 = peg$
|
|
21653
|
+
s0 = peg$f62(s2);
|
|
21422
21654
|
} else {
|
|
21423
21655
|
peg$currPos = s0;
|
|
21424
21656
|
s0 = peg$FAILED;
|
|
@@ -21504,7 +21736,7 @@ function peg$parse(input, options) {
|
|
|
21504
21736
|
s3 = peg$parseLightTag();
|
|
21505
21737
|
if (s3 !== peg$FAILED) {
|
|
21506
21738
|
peg$savedPos = s0;
|
|
21507
|
-
s0 = peg$
|
|
21739
|
+
s0 = peg$f63(s2);
|
|
21508
21740
|
} else {
|
|
21509
21741
|
peg$currPos = s0;
|
|
21510
21742
|
s0 = peg$FAILED;
|
|
@@ -21590,7 +21822,7 @@ function peg$parse(input, options) {
|
|
|
21590
21822
|
s3 = peg$parseHighlightTag();
|
|
21591
21823
|
if (s3 !== peg$FAILED) {
|
|
21592
21824
|
peg$savedPos = s0;
|
|
21593
|
-
s0 = peg$
|
|
21825
|
+
s0 = peg$f64(s2);
|
|
21594
21826
|
} else {
|
|
21595
21827
|
peg$currPos = s0;
|
|
21596
21828
|
s0 = peg$FAILED;
|
|
@@ -21604,7 +21836,7 @@ function peg$parse(input, options) {
|
|
|
21604
21836
|
s1 = peg$parseUrl();
|
|
21605
21837
|
if (s1 !== peg$FAILED) {
|
|
21606
21838
|
peg$savedPos = s0;
|
|
21607
|
-
s1 = peg$
|
|
21839
|
+
s1 = peg$f65(s1);
|
|
21608
21840
|
}
|
|
21609
21841
|
s0 = s1;
|
|
21610
21842
|
}
|
|
@@ -21719,12 +21951,12 @@ function peg$parse(input, options) {
|
|
|
21719
21951
|
let s0, s1, s2, s3;
|
|
21720
21952
|
s0 = peg$currPos;
|
|
21721
21953
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
21722
|
-
s1 = peg$
|
|
21954
|
+
s1 = peg$c1;
|
|
21723
21955
|
peg$currPos++;
|
|
21724
21956
|
} else {
|
|
21725
21957
|
s1 = peg$FAILED;
|
|
21726
21958
|
if (peg$silentFails === 0) {
|
|
21727
|
-
peg$fail(peg$
|
|
21959
|
+
peg$fail(peg$e3);
|
|
21728
21960
|
}
|
|
21729
21961
|
}
|
|
21730
21962
|
if (s1 !== peg$FAILED) {
|
|
@@ -21740,7 +21972,7 @@ function peg$parse(input, options) {
|
|
|
21740
21972
|
}
|
|
21741
21973
|
if (s2 !== peg$FAILED) {
|
|
21742
21974
|
peg$savedPos = s0;
|
|
21743
|
-
s0 = peg$
|
|
21975
|
+
s0 = peg$f66(s2);
|
|
21744
21976
|
} else {
|
|
21745
21977
|
peg$currPos = s0;
|
|
21746
21978
|
s0 = peg$FAILED;
|
|
@@ -21761,7 +21993,7 @@ function peg$parse(input, options) {
|
|
|
21761
21993
|
s2 = peg$parseInlineMediaChainItem();
|
|
21762
21994
|
}
|
|
21763
21995
|
peg$savedPos = s0;
|
|
21764
|
-
s1 = peg$
|
|
21996
|
+
s1 = peg$f67(s1);
|
|
21765
21997
|
s0 = s1;
|
|
21766
21998
|
return s0;
|
|
21767
21999
|
}
|
|
@@ -21835,7 +22067,7 @@ function peg$parse(input, options) {
|
|
|
21835
22067
|
s3 = peg$parseBlockTag();
|
|
21836
22068
|
if (s3 !== peg$FAILED) {
|
|
21837
22069
|
peg$savedPos = s0;
|
|
21838
|
-
s0 = peg$
|
|
22070
|
+
s0 = peg$f68(s2);
|
|
21839
22071
|
} else {
|
|
21840
22072
|
peg$currPos = s0;
|
|
21841
22073
|
s0 = peg$FAILED;
|
|
@@ -21869,34 +22101,34 @@ function peg$parse(input, options) {
|
|
|
21869
22101
|
}
|
|
21870
22102
|
if (s2 !== peg$FAILED) {
|
|
21871
22103
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21872
|
-
s3 = peg$
|
|
22104
|
+
s3 = peg$c6;
|
|
21873
22105
|
peg$currPos++;
|
|
21874
22106
|
} else {
|
|
21875
22107
|
s3 = peg$FAILED;
|
|
21876
22108
|
if (peg$silentFails === 0) {
|
|
21877
|
-
peg$fail(peg$
|
|
22109
|
+
peg$fail(peg$e9);
|
|
21878
22110
|
}
|
|
21879
22111
|
}
|
|
21880
22112
|
if (s3 !== peg$FAILED) {
|
|
21881
22113
|
s4 = [];
|
|
21882
22114
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21883
|
-
s5 = peg$
|
|
22115
|
+
s5 = peg$c13;
|
|
21884
22116
|
peg$currPos++;
|
|
21885
22117
|
} else {
|
|
21886
22118
|
s5 = peg$FAILED;
|
|
21887
22119
|
if (peg$silentFails === 0) {
|
|
21888
|
-
peg$fail(peg$
|
|
22120
|
+
peg$fail(peg$e17);
|
|
21889
22121
|
}
|
|
21890
22122
|
}
|
|
21891
22123
|
while (s5 !== peg$FAILED) {
|
|
21892
22124
|
s4.push(s5);
|
|
21893
22125
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21894
|
-
s5 = peg$
|
|
22126
|
+
s5 = peg$c13;
|
|
21895
22127
|
peg$currPos++;
|
|
21896
22128
|
} else {
|
|
21897
22129
|
s5 = peg$FAILED;
|
|
21898
22130
|
if (peg$silentFails === 0) {
|
|
21899
|
-
peg$fail(peg$
|
|
22131
|
+
peg$fail(peg$e17);
|
|
21900
22132
|
}
|
|
21901
22133
|
}
|
|
21902
22134
|
}
|
|
@@ -21957,7 +22189,7 @@ function peg$parse(input, options) {
|
|
|
21957
22189
|
s6 = peg$parseBlockTag();
|
|
21958
22190
|
if (s6 !== peg$FAILED) {
|
|
21959
22191
|
peg$savedPos = s0;
|
|
21960
|
-
s0 = peg$
|
|
22192
|
+
s0 = peg$f69(s2, s5);
|
|
21961
22193
|
} else {
|
|
21962
22194
|
peg$currPos = s0;
|
|
21963
22195
|
s0 = peg$FAILED;
|
|
@@ -21987,34 +22219,34 @@ function peg$parse(input, options) {
|
|
|
21987
22219
|
s2 = peg$parseMediaSizeTags();
|
|
21988
22220
|
if (s2 !== peg$FAILED) {
|
|
21989
22221
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21990
|
-
s3 = peg$
|
|
22222
|
+
s3 = peg$c6;
|
|
21991
22223
|
peg$currPos++;
|
|
21992
22224
|
} else {
|
|
21993
22225
|
s3 = peg$FAILED;
|
|
21994
22226
|
if (peg$silentFails === 0) {
|
|
21995
|
-
peg$fail(peg$
|
|
22227
|
+
peg$fail(peg$e9);
|
|
21996
22228
|
}
|
|
21997
22229
|
}
|
|
21998
22230
|
if (s3 !== peg$FAILED) {
|
|
21999
22231
|
s4 = [];
|
|
22000
22232
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22001
|
-
s5 = peg$
|
|
22233
|
+
s5 = peg$c13;
|
|
22002
22234
|
peg$currPos++;
|
|
22003
22235
|
} else {
|
|
22004
22236
|
s5 = peg$FAILED;
|
|
22005
22237
|
if (peg$silentFails === 0) {
|
|
22006
|
-
peg$fail(peg$
|
|
22238
|
+
peg$fail(peg$e17);
|
|
22007
22239
|
}
|
|
22008
22240
|
}
|
|
22009
22241
|
while (s5 !== peg$FAILED) {
|
|
22010
22242
|
s4.push(s5);
|
|
22011
22243
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22012
|
-
s5 = peg$
|
|
22244
|
+
s5 = peg$c13;
|
|
22013
22245
|
peg$currPos++;
|
|
22014
22246
|
} else {
|
|
22015
22247
|
s5 = peg$FAILED;
|
|
22016
22248
|
if (peg$silentFails === 0) {
|
|
22017
|
-
peg$fail(peg$
|
|
22249
|
+
peg$fail(peg$e17);
|
|
22018
22250
|
}
|
|
22019
22251
|
}
|
|
22020
22252
|
}
|
|
@@ -22038,7 +22270,7 @@ function peg$parse(input, options) {
|
|
|
22038
22270
|
} else {
|
|
22039
22271
|
s9 = peg$FAILED;
|
|
22040
22272
|
if (peg$silentFails === 0) {
|
|
22041
|
-
peg$fail(peg$
|
|
22273
|
+
peg$fail(peg$e16);
|
|
22042
22274
|
}
|
|
22043
22275
|
}
|
|
22044
22276
|
if (s9 !== peg$FAILED) {
|
|
@@ -22073,7 +22305,7 @@ function peg$parse(input, options) {
|
|
|
22073
22305
|
} else {
|
|
22074
22306
|
s9 = peg$FAILED;
|
|
22075
22307
|
if (peg$silentFails === 0) {
|
|
22076
|
-
peg$fail(peg$
|
|
22308
|
+
peg$fail(peg$e16);
|
|
22077
22309
|
}
|
|
22078
22310
|
}
|
|
22079
22311
|
if (s9 !== peg$FAILED) {
|
|
@@ -22100,7 +22332,7 @@ function peg$parse(input, options) {
|
|
|
22100
22332
|
s6 = peg$parseBlockTag();
|
|
22101
22333
|
if (s6 !== peg$FAILED) {
|
|
22102
22334
|
peg$savedPos = s0;
|
|
22103
|
-
s0 = peg$
|
|
22335
|
+
s0 = peg$f70(s2, s5);
|
|
22104
22336
|
} else {
|
|
22105
22337
|
peg$currPos = s0;
|
|
22106
22338
|
s0 = peg$FAILED;
|
|
@@ -22134,34 +22366,34 @@ function peg$parse(input, options) {
|
|
|
22134
22366
|
s2 = peg$parseMediaSizeTags();
|
|
22135
22367
|
if (s2 !== peg$FAILED) {
|
|
22136
22368
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22137
|
-
s3 = peg$
|
|
22369
|
+
s3 = peg$c6;
|
|
22138
22370
|
peg$currPos++;
|
|
22139
22371
|
} else {
|
|
22140
22372
|
s3 = peg$FAILED;
|
|
22141
22373
|
if (peg$silentFails === 0) {
|
|
22142
|
-
peg$fail(peg$
|
|
22374
|
+
peg$fail(peg$e9);
|
|
22143
22375
|
}
|
|
22144
22376
|
}
|
|
22145
22377
|
if (s3 !== peg$FAILED) {
|
|
22146
22378
|
s4 = [];
|
|
22147
22379
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22148
|
-
s5 = peg$
|
|
22380
|
+
s5 = peg$c13;
|
|
22149
22381
|
peg$currPos++;
|
|
22150
22382
|
} else {
|
|
22151
22383
|
s5 = peg$FAILED;
|
|
22152
22384
|
if (peg$silentFails === 0) {
|
|
22153
|
-
peg$fail(peg$
|
|
22385
|
+
peg$fail(peg$e17);
|
|
22154
22386
|
}
|
|
22155
22387
|
}
|
|
22156
22388
|
while (s5 !== peg$FAILED) {
|
|
22157
22389
|
s4.push(s5);
|
|
22158
22390
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22159
|
-
s5 = peg$
|
|
22391
|
+
s5 = peg$c13;
|
|
22160
22392
|
peg$currPos++;
|
|
22161
22393
|
} else {
|
|
22162
22394
|
s5 = peg$FAILED;
|
|
22163
22395
|
if (peg$silentFails === 0) {
|
|
22164
|
-
peg$fail(peg$
|
|
22396
|
+
peg$fail(peg$e17);
|
|
22165
22397
|
}
|
|
22166
22398
|
}
|
|
22167
22399
|
}
|
|
@@ -22222,7 +22454,7 @@ function peg$parse(input, options) {
|
|
|
22222
22454
|
s6 = peg$parseBlockTag();
|
|
22223
22455
|
if (s6 !== peg$FAILED) {
|
|
22224
22456
|
peg$savedPos = s0;
|
|
22225
|
-
s0 = peg$
|
|
22457
|
+
s0 = peg$f71(s2, s5);
|
|
22226
22458
|
} else {
|
|
22227
22459
|
peg$currPos = s0;
|
|
22228
22460
|
s0 = peg$FAILED;
|
|
@@ -22260,34 +22492,34 @@ function peg$parse(input, options) {
|
|
|
22260
22492
|
}
|
|
22261
22493
|
if (s2 !== peg$FAILED) {
|
|
22262
22494
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22263
|
-
s3 = peg$
|
|
22495
|
+
s3 = peg$c6;
|
|
22264
22496
|
peg$currPos++;
|
|
22265
22497
|
} else {
|
|
22266
22498
|
s3 = peg$FAILED;
|
|
22267
22499
|
if (peg$silentFails === 0) {
|
|
22268
|
-
peg$fail(peg$
|
|
22500
|
+
peg$fail(peg$e9);
|
|
22269
22501
|
}
|
|
22270
22502
|
}
|
|
22271
22503
|
if (s3 !== peg$FAILED) {
|
|
22272
22504
|
s4 = [];
|
|
22273
22505
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22274
|
-
s5 = peg$
|
|
22506
|
+
s5 = peg$c13;
|
|
22275
22507
|
peg$currPos++;
|
|
22276
22508
|
} else {
|
|
22277
22509
|
s5 = peg$FAILED;
|
|
22278
22510
|
if (peg$silentFails === 0) {
|
|
22279
|
-
peg$fail(peg$
|
|
22511
|
+
peg$fail(peg$e17);
|
|
22280
22512
|
}
|
|
22281
22513
|
}
|
|
22282
22514
|
while (s5 !== peg$FAILED) {
|
|
22283
22515
|
s4.push(s5);
|
|
22284
22516
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22285
|
-
s5 = peg$
|
|
22517
|
+
s5 = peg$c13;
|
|
22286
22518
|
peg$currPos++;
|
|
22287
22519
|
} else {
|
|
22288
22520
|
s5 = peg$FAILED;
|
|
22289
22521
|
if (peg$silentFails === 0) {
|
|
22290
|
-
peg$fail(peg$
|
|
22522
|
+
peg$fail(peg$e17);
|
|
22291
22523
|
}
|
|
22292
22524
|
}
|
|
22293
22525
|
}
|
|
@@ -22296,7 +22528,7 @@ function peg$parse(input, options) {
|
|
|
22296
22528
|
s6 = peg$parseBlockTag();
|
|
22297
22529
|
if (s6 !== peg$FAILED) {
|
|
22298
22530
|
peg$savedPos = s0;
|
|
22299
|
-
s0 = peg$
|
|
22531
|
+
s0 = peg$f72(s2, s5);
|
|
22300
22532
|
} else {
|
|
22301
22533
|
peg$currPos = s0;
|
|
22302
22534
|
s0 = peg$FAILED;
|
|
@@ -22338,34 +22570,34 @@ function peg$parse(input, options) {
|
|
|
22338
22570
|
}
|
|
22339
22571
|
if (s2 !== peg$FAILED) {
|
|
22340
22572
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22341
|
-
s3 = peg$
|
|
22573
|
+
s3 = peg$c6;
|
|
22342
22574
|
peg$currPos++;
|
|
22343
22575
|
} else {
|
|
22344
22576
|
s3 = peg$FAILED;
|
|
22345
22577
|
if (peg$silentFails === 0) {
|
|
22346
|
-
peg$fail(peg$
|
|
22578
|
+
peg$fail(peg$e9);
|
|
22347
22579
|
}
|
|
22348
22580
|
}
|
|
22349
22581
|
if (s3 !== peg$FAILED) {
|
|
22350
22582
|
s4 = [];
|
|
22351
22583
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22352
|
-
s5 = peg$
|
|
22584
|
+
s5 = peg$c13;
|
|
22353
22585
|
peg$currPos++;
|
|
22354
22586
|
} else {
|
|
22355
22587
|
s5 = peg$FAILED;
|
|
22356
22588
|
if (peg$silentFails === 0) {
|
|
22357
|
-
peg$fail(peg$
|
|
22589
|
+
peg$fail(peg$e17);
|
|
22358
22590
|
}
|
|
22359
22591
|
}
|
|
22360
22592
|
while (s5 !== peg$FAILED) {
|
|
22361
22593
|
s4.push(s5);
|
|
22362
22594
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22363
|
-
s5 = peg$
|
|
22595
|
+
s5 = peg$c13;
|
|
22364
22596
|
peg$currPos++;
|
|
22365
22597
|
} else {
|
|
22366
22598
|
s5 = peg$FAILED;
|
|
22367
22599
|
if (peg$silentFails === 0) {
|
|
22368
|
-
peg$fail(peg$
|
|
22600
|
+
peg$fail(peg$e17);
|
|
22369
22601
|
}
|
|
22370
22602
|
}
|
|
22371
22603
|
}
|
|
@@ -22374,7 +22606,7 @@ function peg$parse(input, options) {
|
|
|
22374
22606
|
s6 = peg$parseBlockTag();
|
|
22375
22607
|
if (s6 !== peg$FAILED) {
|
|
22376
22608
|
peg$savedPos = s0;
|
|
22377
|
-
s0 = peg$
|
|
22609
|
+
s0 = peg$f73(s2, s5);
|
|
22378
22610
|
} else {
|
|
22379
22611
|
peg$currPos = s0;
|
|
22380
22612
|
s0 = peg$FAILED;
|
|
@@ -22615,7 +22847,7 @@ function peg$parse(input, options) {
|
|
|
22615
22847
|
s3 = peg$parseBlockTag();
|
|
22616
22848
|
if (s3 !== peg$FAILED) {
|
|
22617
22849
|
peg$savedPos = s0;
|
|
22618
|
-
s0 = peg$
|
|
22850
|
+
s0 = peg$f74(s2);
|
|
22619
22851
|
} else {
|
|
22620
22852
|
peg$currPos = s0;
|
|
22621
22853
|
s0 = peg$FAILED;
|
|
@@ -22760,7 +22992,7 @@ function peg$parse(input, options) {
|
|
|
22760
22992
|
s7 = peg$parseBlockTag();
|
|
22761
22993
|
if (s7 !== peg$FAILED) {
|
|
22762
22994
|
peg$savedPos = s0;
|
|
22763
|
-
s0 = peg$
|
|
22995
|
+
s0 = peg$f75(s2, s3, s6);
|
|
22764
22996
|
} else {
|
|
22765
22997
|
peg$currPos = s0;
|
|
22766
22998
|
s0 = peg$FAILED;
|
|
@@ -22912,7 +23144,7 @@ function peg$parse(input, options) {
|
|
|
22912
23144
|
s6 = peg$parseBlockTag();
|
|
22913
23145
|
if (s6 !== peg$FAILED) {
|
|
22914
23146
|
peg$savedPos = s0;
|
|
22915
|
-
s0 = peg$
|
|
23147
|
+
s0 = peg$f76(s2, s5);
|
|
22916
23148
|
} else {
|
|
22917
23149
|
peg$currPos = s0;
|
|
22918
23150
|
s0 = peg$FAILED;
|
|
@@ -22998,7 +23230,7 @@ function peg$parse(input, options) {
|
|
|
22998
23230
|
s3 = peg$parseBlockTag();
|
|
22999
23231
|
if (s3 !== peg$FAILED) {
|
|
23000
23232
|
peg$savedPos = s0;
|
|
23001
|
-
s0 = peg$
|
|
23233
|
+
s0 = peg$f77(s2);
|
|
23002
23234
|
} else {
|
|
23003
23235
|
peg$currPos = s0;
|
|
23004
23236
|
s0 = peg$FAILED;
|
|
@@ -23076,7 +23308,7 @@ function peg$parse(input, options) {
|
|
|
23076
23308
|
s3 = peg$parseBlockTag();
|
|
23077
23309
|
if (s3 !== peg$FAILED) {
|
|
23078
23310
|
peg$savedPos = s0;
|
|
23079
|
-
s0 = peg$
|
|
23311
|
+
s0 = peg$f78(s2);
|
|
23080
23312
|
} else {
|
|
23081
23313
|
peg$currPos = s0;
|
|
23082
23314
|
s0 = peg$FAILED;
|
|
@@ -23155,7 +23387,7 @@ function peg$parse(input, options) {
|
|
|
23155
23387
|
if (s3 !== peg$FAILED) {
|
|
23156
23388
|
s4 = peg$parseMediaChain();
|
|
23157
23389
|
peg$savedPos = s0;
|
|
23158
|
-
s0 = peg$
|
|
23390
|
+
s0 = peg$f79(s2, s4);
|
|
23159
23391
|
} else {
|
|
23160
23392
|
peg$currPos = s0;
|
|
23161
23393
|
s0 = peg$FAILED;
|
|
@@ -23233,7 +23465,7 @@ function peg$parse(input, options) {
|
|
|
23233
23465
|
s3 = peg$parseBlockTag();
|
|
23234
23466
|
if (s3 !== peg$FAILED) {
|
|
23235
23467
|
peg$savedPos = s0;
|
|
23236
|
-
s0 = peg$
|
|
23468
|
+
s0 = peg$f80(s2);
|
|
23237
23469
|
} else {
|
|
23238
23470
|
peg$currPos = s0;
|
|
23239
23471
|
s0 = peg$FAILED;
|
|
@@ -23311,7 +23543,7 @@ function peg$parse(input, options) {
|
|
|
23311
23543
|
s3 = peg$parseBlockTag();
|
|
23312
23544
|
if (s3 !== peg$FAILED) {
|
|
23313
23545
|
peg$savedPos = s0;
|
|
23314
|
-
s0 = peg$
|
|
23546
|
+
s0 = peg$f81(s2);
|
|
23315
23547
|
} else {
|
|
23316
23548
|
peg$currPos = s0;
|
|
23317
23549
|
s0 = peg$FAILED;
|
|
@@ -23389,7 +23621,7 @@ function peg$parse(input, options) {
|
|
|
23389
23621
|
s3 = peg$parseBlockTag();
|
|
23390
23622
|
if (s3 !== peg$FAILED) {
|
|
23391
23623
|
peg$savedPos = s0;
|
|
23392
|
-
s0 = peg$
|
|
23624
|
+
s0 = peg$f82(s2);
|
|
23393
23625
|
} else {
|
|
23394
23626
|
peg$currPos = s0;
|
|
23395
23627
|
s0 = peg$FAILED;
|
|
@@ -23400,20 +23632,20 @@ function peg$parse(input, options) {
|
|
|
23400
23632
|
}
|
|
23401
23633
|
if (s0 === peg$FAILED) {
|
|
23402
23634
|
s0 = peg$currPos;
|
|
23403
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
23404
|
-
s1 = peg$
|
|
23635
|
+
if (input.substr(peg$currPos, 4) === peg$c5) {
|
|
23636
|
+
s1 = peg$c5;
|
|
23405
23637
|
peg$currPos += 4;
|
|
23406
23638
|
} else {
|
|
23407
23639
|
s1 = peg$FAILED;
|
|
23408
23640
|
if (peg$silentFails === 0) {
|
|
23409
|
-
peg$fail(peg$
|
|
23641
|
+
peg$fail(peg$e7);
|
|
23410
23642
|
}
|
|
23411
23643
|
}
|
|
23412
23644
|
if (s1 !== peg$FAILED) {
|
|
23413
23645
|
s2 = peg$parseBlockTag();
|
|
23414
23646
|
if (s2 !== peg$FAILED) {
|
|
23415
23647
|
peg$savedPos = s0;
|
|
23416
|
-
s0 = peg$
|
|
23648
|
+
s0 = peg$f83();
|
|
23417
23649
|
} else {
|
|
23418
23650
|
peg$currPos = s0;
|
|
23419
23651
|
s0 = peg$FAILED;
|
|
@@ -23491,7 +23723,7 @@ function peg$parse(input, options) {
|
|
|
23491
23723
|
s3 = peg$parseBlockTag();
|
|
23492
23724
|
if (s3 !== peg$FAILED) {
|
|
23493
23725
|
peg$savedPos = s0;
|
|
23494
|
-
s0 = peg$
|
|
23726
|
+
s0 = peg$f84(s2);
|
|
23495
23727
|
} else {
|
|
23496
23728
|
peg$currPos = s0;
|
|
23497
23729
|
s0 = peg$FAILED;
|
|
@@ -23515,7 +23747,7 @@ function peg$parse(input, options) {
|
|
|
23515
23747
|
s2 = peg$parseBlockTag();
|
|
23516
23748
|
if (s2 !== peg$FAILED) {
|
|
23517
23749
|
peg$savedPos = s0;
|
|
23518
|
-
s0 = peg$
|
|
23750
|
+
s0 = peg$f85();
|
|
23519
23751
|
} else {
|
|
23520
23752
|
peg$currPos = s0;
|
|
23521
23753
|
s0 = peg$FAILED;
|
|
@@ -23593,7 +23825,7 @@ function peg$parse(input, options) {
|
|
|
23593
23825
|
s3 = peg$parseBlockTag();
|
|
23594
23826
|
if (s3 !== peg$FAILED) {
|
|
23595
23827
|
peg$savedPos = s0;
|
|
23596
|
-
s0 = peg$
|
|
23828
|
+
s0 = peg$f86(s2);
|
|
23597
23829
|
} else {
|
|
23598
23830
|
peg$currPos = s0;
|
|
23599
23831
|
s0 = peg$FAILED;
|
|
@@ -23695,7 +23927,7 @@ function peg$parse(input, options) {
|
|
|
23695
23927
|
s3 = peg$parseBlockTag();
|
|
23696
23928
|
if (s3 !== peg$FAILED) {
|
|
23697
23929
|
peg$savedPos = s0;
|
|
23698
|
-
s0 = peg$
|
|
23930
|
+
s0 = peg$f87(s2);
|
|
23699
23931
|
} else {
|
|
23700
23932
|
peg$currPos = s0;
|
|
23701
23933
|
s0 = peg$FAILED;
|
|
@@ -23725,7 +23957,7 @@ function peg$parse(input, options) {
|
|
|
23725
23957
|
s3 = peg$parseBlockTag();
|
|
23726
23958
|
if (s3 !== peg$FAILED) {
|
|
23727
23959
|
peg$savedPos = s0;
|
|
23728
|
-
s0 = peg$
|
|
23960
|
+
s0 = peg$f88(s2);
|
|
23729
23961
|
} else {
|
|
23730
23962
|
peg$currPos = s0;
|
|
23731
23963
|
s0 = peg$FAILED;
|
|
@@ -23807,7 +24039,7 @@ function peg$parse(input, options) {
|
|
|
23807
24039
|
s3 = peg$parseBlockTag();
|
|
23808
24040
|
if (s3 !== peg$FAILED) {
|
|
23809
24041
|
peg$savedPos = s0;
|
|
23810
|
-
s0 = peg$
|
|
24042
|
+
s0 = peg$f89(s2);
|
|
23811
24043
|
} else {
|
|
23812
24044
|
peg$currPos = s0;
|
|
23813
24045
|
s0 = peg$FAILED;
|
|
@@ -23823,7 +24055,7 @@ function peg$parse(input, options) {
|
|
|
23823
24055
|
s2 = peg$parseBlockTag();
|
|
23824
24056
|
if (s2 !== peg$FAILED) {
|
|
23825
24057
|
peg$savedPos = s0;
|
|
23826
|
-
s0 = peg$
|
|
24058
|
+
s0 = peg$f90(s1);
|
|
23827
24059
|
} else {
|
|
23828
24060
|
peg$currPos = s0;
|
|
23829
24061
|
s0 = peg$FAILED;
|
|
@@ -23901,7 +24133,7 @@ function peg$parse(input, options) {
|
|
|
23901
24133
|
s3 = peg$parseBlockTag();
|
|
23902
24134
|
if (s3 !== peg$FAILED) {
|
|
23903
24135
|
peg$savedPos = s0;
|
|
23904
|
-
s0 = peg$
|
|
24136
|
+
s0 = peg$f91(s2);
|
|
23905
24137
|
} else {
|
|
23906
24138
|
peg$currPos = s0;
|
|
23907
24139
|
s0 = peg$FAILED;
|
|
@@ -24007,7 +24239,7 @@ function peg$parse(input, options) {
|
|
|
24007
24239
|
}
|
|
24008
24240
|
s2 = input.substring(s2, peg$currPos);
|
|
24009
24241
|
peg$savedPos = s0;
|
|
24010
|
-
s0 = peg$
|
|
24242
|
+
s0 = peg$f92(s2);
|
|
24011
24243
|
} else {
|
|
24012
24244
|
peg$currPos = s0;
|
|
24013
24245
|
s0 = peg$FAILED;
|
|
@@ -24717,7 +24949,7 @@ function peg$parse(input, options) {
|
|
|
24717
24949
|
s0 = peg$currPos;
|
|
24718
24950
|
s1 = peg$parsebitmarkMinusMinusString();
|
|
24719
24951
|
peg$savedPos = s0;
|
|
24720
|
-
s1 = peg$
|
|
24952
|
+
s1 = peg$f93(s1);
|
|
24721
24953
|
s0 = s1;
|
|
24722
24954
|
peg$silentFails--;
|
|
24723
24955
|
return s0;
|
|
@@ -24743,7 +24975,7 @@ function peg$parse(input, options) {
|
|
|
24743
24975
|
}
|
|
24744
24976
|
}
|
|
24745
24977
|
peg$savedPos = s0;
|
|
24746
|
-
s0 = peg$
|
|
24978
|
+
s0 = peg$f94(s1, s2);
|
|
24747
24979
|
peg$silentFails--;
|
|
24748
24980
|
return s0;
|
|
24749
24981
|
}
|
|
@@ -24753,7 +24985,7 @@ function peg$parse(input, options) {
|
|
|
24753
24985
|
s1 = peg$parseNL();
|
|
24754
24986
|
if (s1 !== peg$FAILED) {
|
|
24755
24987
|
peg$savedPos = s0;
|
|
24756
|
-
s1 = peg$
|
|
24988
|
+
s1 = peg$f95();
|
|
24757
24989
|
}
|
|
24758
24990
|
s0 = s1;
|
|
24759
24991
|
if (s0 === peg$FAILED) {
|
|
@@ -24882,7 +25114,7 @@ function peg$parse(input, options) {
|
|
|
24882
25114
|
}
|
|
24883
25115
|
if (s1 !== peg$FAILED) {
|
|
24884
25116
|
peg$savedPos = s0;
|
|
24885
|
-
s1 = peg$
|
|
25117
|
+
s1 = peg$f96(s1);
|
|
24886
25118
|
}
|
|
24887
25119
|
s0 = s1;
|
|
24888
25120
|
}
|
|
@@ -25055,7 +25287,7 @@ function peg$parse(input, options) {
|
|
|
25055
25287
|
} else {
|
|
25056
25288
|
s4 = peg$FAILED;
|
|
25057
25289
|
if (peg$silentFails === 0) {
|
|
25058
|
-
peg$fail(peg$
|
|
25290
|
+
peg$fail(peg$e16);
|
|
25059
25291
|
}
|
|
25060
25292
|
}
|
|
25061
25293
|
if (s4 !== peg$FAILED) {
|
|
@@ -25067,7 +25299,7 @@ function peg$parse(input, options) {
|
|
|
25067
25299
|
} else {
|
|
25068
25300
|
s4 = peg$FAILED;
|
|
25069
25301
|
if (peg$silentFails === 0) {
|
|
25070
|
-
peg$fail(peg$
|
|
25302
|
+
peg$fail(peg$e16);
|
|
25071
25303
|
}
|
|
25072
25304
|
}
|
|
25073
25305
|
}
|
|
@@ -25083,7 +25315,7 @@ function peg$parse(input, options) {
|
|
|
25083
25315
|
s3 = peg$parseBodyBitCloseTag();
|
|
25084
25316
|
if (s3 !== peg$FAILED) {
|
|
25085
25317
|
peg$savedPos = s0;
|
|
25086
|
-
s0 = peg$
|
|
25318
|
+
s0 = peg$f97(s2);
|
|
25087
25319
|
} else {
|
|
25088
25320
|
peg$currPos = s0;
|
|
25089
25321
|
s0 = peg$FAILED;
|
|
@@ -25173,7 +25405,7 @@ function peg$parse(input, options) {
|
|
|
25173
25405
|
s3 = peg$parseBoldTag();
|
|
25174
25406
|
if (s3 !== peg$FAILED) {
|
|
25175
25407
|
peg$savedPos = s0;
|
|
25176
|
-
s0 = peg$
|
|
25408
|
+
s0 = peg$f98(s2);
|
|
25177
25409
|
} else {
|
|
25178
25410
|
peg$currPos = s0;
|
|
25179
25411
|
s0 = peg$FAILED;
|
|
@@ -25259,7 +25491,7 @@ function peg$parse(input, options) {
|
|
|
25259
25491
|
s3 = peg$parseItalicTag();
|
|
25260
25492
|
if (s3 !== peg$FAILED) {
|
|
25261
25493
|
peg$savedPos = s0;
|
|
25262
|
-
s0 = peg$
|
|
25494
|
+
s0 = peg$f99(s2);
|
|
25263
25495
|
} else {
|
|
25264
25496
|
peg$currPos = s0;
|
|
25265
25497
|
s0 = peg$FAILED;
|
|
@@ -25345,7 +25577,7 @@ function peg$parse(input, options) {
|
|
|
25345
25577
|
s3 = peg$parseLightTag();
|
|
25346
25578
|
if (s3 !== peg$FAILED) {
|
|
25347
25579
|
peg$savedPos = s0;
|
|
25348
|
-
s0 = peg$
|
|
25580
|
+
s0 = peg$f100(s2);
|
|
25349
25581
|
} else {
|
|
25350
25582
|
peg$currPos = s0;
|
|
25351
25583
|
s0 = peg$FAILED;
|
|
@@ -25431,7 +25663,7 @@ function peg$parse(input, options) {
|
|
|
25431
25663
|
s3 = peg$parseHighlightTag();
|
|
25432
25664
|
if (s3 !== peg$FAILED) {
|
|
25433
25665
|
peg$savedPos = s0;
|
|
25434
|
-
s0 = peg$
|
|
25666
|
+
s0 = peg$f101(s2);
|
|
25435
25667
|
} else {
|
|
25436
25668
|
peg$currPos = s0;
|
|
25437
25669
|
s0 = peg$FAILED;
|
|
@@ -25817,7 +26049,7 @@ function peg$parse(input, options) {
|
|
|
25817
26049
|
}
|
|
25818
26050
|
s2 = input.substring(s2, peg$currPos);
|
|
25819
26051
|
peg$savedPos = s0;
|
|
25820
|
-
s0 = peg$
|
|
26052
|
+
s0 = peg$f102(s1, s2);
|
|
25821
26053
|
} else {
|
|
25822
26054
|
peg$currPos = s0;
|
|
25823
26055
|
s0 = peg$FAILED;
|
|
@@ -25838,7 +26070,17 @@ function peg$parse(input, options) {
|
|
|
25838
26070
|
return s0;
|
|
25839
26071
|
}
|
|
25840
26072
|
var indentStack = [], indent = "";
|
|
25841
|
-
input = input.
|
|
26073
|
+
input = input.replace(/\s+$/, "");
|
|
26074
|
+
var _firstNonWs = input.search(/\S/);
|
|
26075
|
+
if (_firstNonWs < 0) {
|
|
26076
|
+
input = "";
|
|
26077
|
+
} else {
|
|
26078
|
+
var _lineStart = input.lastIndexOf("\n", _firstNonWs) + 1;
|
|
26079
|
+
var _lead = input.slice(_lineStart, _firstNonWs);
|
|
26080
|
+
var _rest = input.slice(_firstNonWs);
|
|
26081
|
+
var _isIndentedListItem = /^\t+$/.test(_lead) && /^•([0-9]+[Ii]?|_|[Aa]|\+|-)? /.test(_rest);
|
|
26082
|
+
input = _isIndentedListItem ? _lead + _rest : _rest;
|
|
26083
|
+
}
|
|
25842
26084
|
peg$result = peg$startRuleFunction();
|
|
25843
26085
|
const peg$success = peg$result !== peg$FAILED && peg$currPos === input.length;
|
|
25844
26086
|
function peg$throw() {
|
|
@@ -25932,14 +26174,13 @@ var TextParser = class {
|
|
|
25932
26174
|
*/
|
|
25933
26175
|
toAst(text, options) {
|
|
25934
26176
|
if (Array.isArray(text)) return text;
|
|
25935
|
-
|
|
26177
|
+
const str = text ?? "";
|
|
25936
26178
|
if (!str) return [];
|
|
25937
26179
|
const opts = Object.assign({}, options);
|
|
25938
26180
|
let startRule = "bitmarkPlusPlus";
|
|
25939
26181
|
if (opts.location === TextLocation2.tag) {
|
|
25940
26182
|
startRule = "bitmarkPlus";
|
|
25941
26183
|
}
|
|
25942
|
-
str = str.trim();
|
|
25943
26184
|
return parse(str, {
|
|
25944
26185
|
startRule
|
|
25945
26186
|
});
|
|
@@ -27979,6 +28220,12 @@ var Builder = class extends BaseBuilder {
|
|
|
27979
28220
|
options
|
|
27980
28221
|
),
|
|
27981
28222
|
sourceBB: this.normaliseSourceBB(data.sourceBB),
|
|
28223
|
+
bitFingerprint: this.toAstProperty(
|
|
28224
|
+
bitType,
|
|
28225
|
+
ConfigKey.property_bitFingerprint,
|
|
28226
|
+
data.bitFingerprint,
|
|
28227
|
+
options
|
|
28228
|
+
),
|
|
27982
28229
|
levelCEFRp: this.toAstProperty(
|
|
27983
28230
|
bitType,
|
|
27984
28231
|
ConfigKey.property_levelCEFRp,
|
|
@@ -29411,6 +29658,7 @@ var Builder = class extends BaseBuilder {
|
|
|
29411
29658
|
if (!data) return void 0;
|
|
29412
29659
|
let isExample = false;
|
|
29413
29660
|
for (const c of data.cells || []) {
|
|
29661
|
+
if (!c) continue;
|
|
29414
29662
|
if (data.__isDefaultExample && !c.isExample) {
|
|
29415
29663
|
c.isExample = true;
|
|
29416
29664
|
}
|