@gmb/bitmark-parser-generator 4.7.0 → 4.9.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 +802 -645
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +9 -0
- package/dist/browser/esm/index.d.ts +9 -0
- package/dist/browser/esm/index.js +802 -645
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/index.cjs +1060 -645
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1060 -645
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1238,6 +1238,7 @@ var propertyKeys = {
|
|
|
1238
1238
|
property_reference: "@reference",
|
|
1239
1239
|
property_refPublicationYear: "@refPublicationYear",
|
|
1240
1240
|
property_refPublisher: "@refPublisher",
|
|
1241
|
+
property_relatedBook: "@relatedBook",
|
|
1241
1242
|
property_releaseDate: "@releaseDate",
|
|
1242
1243
|
property_releaseKind: "@releaseKind",
|
|
1243
1244
|
property_releaseVersion: "@releaseVersion",
|
|
@@ -1513,6 +1514,16 @@ var StringUtils = class {
|
|
|
1513
1514
|
if (!str) return str;
|
|
1514
1515
|
return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
1515
1516
|
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Convert a camelCase string to kebab-case.
|
|
1519
|
+
*
|
|
1520
|
+
* @param str the string to convert
|
|
1521
|
+
* @returns the kebab-case version of the string
|
|
1522
|
+
*/
|
|
1523
|
+
camelToKebab(str) {
|
|
1524
|
+
if (!str) return str;
|
|
1525
|
+
return str.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
|
|
1526
|
+
}
|
|
1516
1527
|
};
|
|
1517
1528
|
var stringUtils = new StringUtils();
|
|
1518
1529
|
|
|
@@ -3187,6 +3198,12 @@ var GROUPS = {
|
|
|
3187
3198
|
format: TagFormat.plainText,
|
|
3188
3199
|
maxCount: Count.infinity
|
|
3189
3200
|
},
|
|
3201
|
+
{
|
|
3202
|
+
key: ConfigKey.property_relatedBook,
|
|
3203
|
+
description: "Books related to this book",
|
|
3204
|
+
format: TagFormat.plainText,
|
|
3205
|
+
maxCount: Count.infinity
|
|
3206
|
+
},
|
|
3190
3207
|
{
|
|
3191
3208
|
key: ConfigKey.property_duration,
|
|
3192
3209
|
description: "The duration of the book",
|
|
@@ -9071,7 +9088,7 @@ var instance2 = new Config();
|
|
|
9071
9088
|
// src/generated/package_info.ts
|
|
9072
9089
|
var PACKAGE_INFO = {
|
|
9073
9090
|
"name": "@gmb/bitmark-parser-generator",
|
|
9074
|
-
"version": "4.
|
|
9091
|
+
"version": "4.9.0",
|
|
9075
9092
|
"author": "Get More Brain Ltd",
|
|
9076
9093
|
"license": "ISC",
|
|
9077
9094
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -9815,6 +9832,8 @@ var NodeType = superenum20({
|
|
|
9815
9832
|
referencePropertyValue: "referencePropertyValue",
|
|
9816
9833
|
refPublicationYear: "refPublicationYear",
|
|
9817
9834
|
refPublisher: "refPublisher",
|
|
9835
|
+
relatedBook: "relatedBook",
|
|
9836
|
+
relatedBookValue: "relatedBookValue",
|
|
9818
9837
|
releaseDate: "releaseDate",
|
|
9819
9838
|
releaseDateValue: "releaseDateValue",
|
|
9820
9839
|
releaseKind: "releaseKind",
|
|
@@ -11567,7 +11586,7 @@ var TextGenerator = class extends AstWalkerGenerator {
|
|
|
11567
11586
|
};
|
|
11568
11587
|
|
|
11569
11588
|
// src/generated/parser/text/text-peggy-parser.js
|
|
11570
|
-
var VERSION = "8.
|
|
11589
|
+
var VERSION = "8.35.0";
|
|
11571
11590
|
function unbreakscape(str) {
|
|
11572
11591
|
if (typeof str !== "string") return null;
|
|
11573
11592
|
return instance3.unbreakscape(str);
|
|
@@ -11757,100 +11776,101 @@ function peg$parse(input, options) {
|
|
|
11757
11776
|
const peg$c35 = "=";
|
|
11758
11777
|
const peg$c36 = "|latex|";
|
|
11759
11778
|
const peg$c37 = "|imageInline:";
|
|
11760
|
-
const peg$c38 = "
|
|
11761
|
-
const peg$c39 = "
|
|
11762
|
-
const peg$c40 = "
|
|
11763
|
-
const peg$c41 = "
|
|
11764
|
-
const peg$c42 = "
|
|
11765
|
-
const peg$c43 = "
|
|
11766
|
-
const peg$c44 = "
|
|
11767
|
-
const peg$c45 = "
|
|
11768
|
-
const peg$c46 = "
|
|
11769
|
-
const peg$c47 = "text-
|
|
11770
|
-
const peg$c48 = "
|
|
11771
|
-
const peg$c49 = "
|
|
11772
|
-
const peg$c50 = "
|
|
11773
|
-
const peg$c51 = "
|
|
11774
|
-
const peg$c52 = "
|
|
11775
|
-
const peg$c53 = "
|
|
11776
|
-
const peg$c54 = "
|
|
11777
|
-
const peg$c55 = "
|
|
11778
|
-
const peg$c56 = "
|
|
11779
|
-
const peg$c57 = "
|
|
11780
|
-
const peg$c58 = "footnote
|
|
11781
|
-
const peg$c59 = "
|
|
11782
|
-
const peg$c60 = "
|
|
11783
|
-
const peg$c61 = "
|
|
11784
|
-
const peg$c62 = "timer
|
|
11785
|
-
const peg$c63 = "
|
|
11786
|
-
const peg$c64 = "
|
|
11787
|
-
const peg$c65 = "
|
|
11788
|
-
const peg$c66 = "
|
|
11789
|
-
const peg$c67 = "
|
|
11790
|
-
const peg$c68 = "
|
|
11791
|
-
const peg$c69 = "
|
|
11792
|
-
const peg$c70 = "
|
|
11793
|
-
const peg$c71 = "
|
|
11794
|
-
const peg$c72 = "
|
|
11795
|
-
const peg$c73 = "
|
|
11796
|
-
const peg$c74 = "
|
|
11797
|
-
const peg$c75 = "
|
|
11798
|
-
const peg$c76 = "
|
|
11799
|
-
const peg$c77 = "
|
|
11800
|
-
const peg$c78 = "
|
|
11801
|
-
const peg$c79 = "
|
|
11802
|
-
const peg$c80 = "
|
|
11803
|
-
const peg$c81 = "
|
|
11804
|
-
const peg$c82 = "
|
|
11805
|
-
const peg$c83 = "
|
|
11806
|
-
const peg$c84 = "
|
|
11807
|
-
const peg$c85 = "
|
|
11808
|
-
const peg$c86 = "
|
|
11809
|
-
const peg$c87 = "
|
|
11810
|
-
const peg$c88 = "
|
|
11811
|
-
const peg$c89 = "
|
|
11812
|
-
const peg$c90 = "
|
|
11813
|
-
const peg$c91 = "
|
|
11814
|
-
const peg$c92 = "
|
|
11815
|
-
const peg$c93 = "
|
|
11816
|
-
const peg$c94 = "
|
|
11817
|
-
const peg$c95 = "
|
|
11818
|
-
const peg$c96 = "
|
|
11819
|
-
const peg$c97 = "
|
|
11820
|
-
const peg$c98 = "
|
|
11821
|
-
const peg$c99 = "
|
|
11822
|
-
const peg$c100 = "
|
|
11823
|
-
const peg$c101 = "
|
|
11824
|
-
const peg$c102 = "
|
|
11825
|
-
const peg$c103 = "
|
|
11826
|
-
const peg$c104 = "
|
|
11827
|
-
const peg$c105 = "
|
|
11828
|
-
const peg$c106 = "
|
|
11829
|
-
const peg$c107 = "
|
|
11830
|
-
const peg$c108 = "
|
|
11831
|
-
const peg$c109 = "
|
|
11832
|
-
const peg$c110 = "
|
|
11833
|
-
const peg$c111 = "
|
|
11834
|
-
const peg$c112 = "
|
|
11835
|
-
const peg$c113 = "
|
|
11836
|
-
const peg$c114 = "
|
|
11837
|
-
const peg$c115 = "
|
|
11838
|
-
const peg$c116 = "
|
|
11839
|
-
const peg$c117 = "
|
|
11840
|
-
const peg$c118 = "
|
|
11841
|
-
const peg$c119 = "
|
|
11842
|
-
const peg$c120 = "
|
|
11843
|
-
const peg$c121 = "
|
|
11844
|
-
const peg$c122 = "
|
|
11845
|
-
const peg$c123 = "
|
|
11846
|
-
const peg$c124 = "
|
|
11847
|
-
const peg$c125 = "
|
|
11848
|
-
const peg$c126 = "
|
|
11849
|
-
const peg$c127 = "\
|
|
11850
|
-
const peg$c128 = "
|
|
11851
|
-
const peg$c129 = "
|
|
11852
|
-
const peg$c130 = "
|
|
11853
|
-
const peg$c131 = "
|
|
11779
|
+
const peg$c38 = "srcAlt";
|
|
11780
|
+
const peg$c39 = "alignmentVertical";
|
|
11781
|
+
const peg$c40 = "size";
|
|
11782
|
+
const peg$c41 = "top";
|
|
11783
|
+
const peg$c42 = "middle";
|
|
11784
|
+
const peg$c43 = "bottom";
|
|
11785
|
+
const peg$c44 = "baseline";
|
|
11786
|
+
const peg$c45 = "sub";
|
|
11787
|
+
const peg$c46 = "super";
|
|
11788
|
+
const peg$c47 = "text-bottom";
|
|
11789
|
+
const peg$c48 = "text-top";
|
|
11790
|
+
const peg$c49 = "line-height";
|
|
11791
|
+
const peg$c50 = "font-height";
|
|
11792
|
+
const peg$c51 = "explicit";
|
|
11793
|
+
const peg$c52 = "link:";
|
|
11794
|
+
const peg$c53 = "extref:";
|
|
11795
|
+
const peg$c54 = "provider:";
|
|
11796
|
+
const peg$c55 = "xref:";
|
|
11797
|
+
const peg$c56 = "\u25BA";
|
|
11798
|
+
const peg$c57 = "symbol:";
|
|
11799
|
+
const peg$c58 = "footnote:";
|
|
11800
|
+
const peg$c59 = "footnote*:";
|
|
11801
|
+
const peg$c60 = "var:";
|
|
11802
|
+
const peg$c61 = "code:";
|
|
11803
|
+
const peg$c62 = "timer";
|
|
11804
|
+
const peg$c63 = "timer:";
|
|
11805
|
+
const peg$c64 = "duration:";
|
|
11806
|
+
const peg$c65 = "P";
|
|
11807
|
+
const peg$c66 = "color:";
|
|
11808
|
+
const peg$c67 = "|\u25BA";
|
|
11809
|
+
const peg$c68 = "bold";
|
|
11810
|
+
const peg$c69 = "italic";
|
|
11811
|
+
const peg$c70 = "light";
|
|
11812
|
+
const peg$c71 = "highlight";
|
|
11813
|
+
const peg$c72 = "strike";
|
|
11814
|
+
const peg$c73 = "subscript";
|
|
11815
|
+
const peg$c74 = "superscript";
|
|
11816
|
+
const peg$c75 = "ins";
|
|
11817
|
+
const peg$c76 = "del";
|
|
11818
|
+
const peg$c77 = "underline";
|
|
11819
|
+
const peg$c78 = "doubleUnderline";
|
|
11820
|
+
const peg$c79 = "circle";
|
|
11821
|
+
const peg$c80 = "languageEmRed";
|
|
11822
|
+
const peg$c81 = "languageEmOrange";
|
|
11823
|
+
const peg$c82 = "languageEmYellow";
|
|
11824
|
+
const peg$c83 = "languageEmGreen";
|
|
11825
|
+
const peg$c84 = "languageEmBlue";
|
|
11826
|
+
const peg$c85 = "languageEmPurple";
|
|
11827
|
+
const peg$c86 = "languageEmPink";
|
|
11828
|
+
const peg$c87 = "languageEmBrown";
|
|
11829
|
+
const peg$c88 = "languageEmBlack";
|
|
11830
|
+
const peg$c89 = "languageEmWhite";
|
|
11831
|
+
const peg$c90 = "languageEmGray";
|
|
11832
|
+
const peg$c91 = "languageEm";
|
|
11833
|
+
const peg$c92 = "userUnderline";
|
|
11834
|
+
const peg$c93 = "userDoubleUnderline";
|
|
11835
|
+
const peg$c94 = "userStrike";
|
|
11836
|
+
const peg$c95 = "userCircle";
|
|
11837
|
+
const peg$c96 = "userHighlight";
|
|
11838
|
+
const peg$c97 = "notranslate";
|
|
11839
|
+
const peg$c98 = "aqua";
|
|
11840
|
+
const peg$c99 = "black";
|
|
11841
|
+
const peg$c100 = "blue";
|
|
11842
|
+
const peg$c101 = "brown";
|
|
11843
|
+
const peg$c102 = "fuchsia";
|
|
11844
|
+
const peg$c103 = "lightgrey";
|
|
11845
|
+
const peg$c104 = "gray";
|
|
11846
|
+
const peg$c105 = "darkgray";
|
|
11847
|
+
const peg$c106 = "green";
|
|
11848
|
+
const peg$c107 = "lime";
|
|
11849
|
+
const peg$c108 = "magenta";
|
|
11850
|
+
const peg$c109 = "maroon";
|
|
11851
|
+
const peg$c110 = "navy";
|
|
11852
|
+
const peg$c111 = "olive";
|
|
11853
|
+
const peg$c112 = "orange";
|
|
11854
|
+
const peg$c113 = "pink";
|
|
11855
|
+
const peg$c114 = "purple";
|
|
11856
|
+
const peg$c115 = "red";
|
|
11857
|
+
const peg$c116 = "silver";
|
|
11858
|
+
const peg$c117 = "teal";
|
|
11859
|
+
const peg$c118 = "violet";
|
|
11860
|
+
const peg$c119 = "white";
|
|
11861
|
+
const peg$c120 = "yellow";
|
|
11862
|
+
const peg$c121 = "*";
|
|
11863
|
+
const peg$c122 = "_";
|
|
11864
|
+
const peg$c123 = "`";
|
|
11865
|
+
const peg$c124 = "!";
|
|
11866
|
+
const peg$c125 = "[!";
|
|
11867
|
+
const peg$c126 = "]";
|
|
11868
|
+
const peg$c127 = "\n";
|
|
11869
|
+
const peg$c128 = "\r\n";
|
|
11870
|
+
const peg$c129 = "http";
|
|
11871
|
+
const peg$c130 = "s";
|
|
11872
|
+
const peg$c131 = "://";
|
|
11873
|
+
const peg$c132 = "mailto:";
|
|
11854
11874
|
const peg$r0 = /^[ \t]/;
|
|
11855
11875
|
const peg$r1 = /^[0-9]/;
|
|
11856
11876
|
const peg$r2 = /^[\r\u2028-\u2029]/;
|
|
@@ -11898,104 +11918,105 @@ function peg$parse(input, options) {
|
|
|
11898
11918
|
const peg$e39 = peg$literalExpectation("=", false);
|
|
11899
11919
|
const peg$e40 = peg$literalExpectation("|latex|", false);
|
|
11900
11920
|
const peg$e41 = peg$literalExpectation("|imageInline:", false);
|
|
11901
|
-
const peg$e42 = peg$literalExpectation("
|
|
11902
|
-
const peg$e43 = peg$literalExpectation("
|
|
11903
|
-
const peg$e44 = peg$literalExpectation("
|
|
11904
|
-
const peg$e45 = peg$literalExpectation("
|
|
11905
|
-
const peg$e46 = peg$literalExpectation("
|
|
11906
|
-
const peg$e47 = peg$literalExpectation("
|
|
11907
|
-
const peg$e48 = peg$literalExpectation("
|
|
11908
|
-
const peg$e49 = peg$literalExpectation("
|
|
11909
|
-
const peg$e50 = peg$literalExpectation("
|
|
11910
|
-
const peg$e51 = peg$literalExpectation("text-
|
|
11911
|
-
const peg$e52 = peg$literalExpectation("
|
|
11912
|
-
const peg$e53 = peg$literalExpectation("
|
|
11913
|
-
const peg$e54 = peg$literalExpectation("
|
|
11914
|
-
const peg$e55 = peg$literalExpectation("
|
|
11915
|
-
const peg$e56 = peg$literalExpectation("
|
|
11916
|
-
const peg$e57 = peg$literalExpectation("
|
|
11917
|
-
const peg$e58 = peg$literalExpectation("
|
|
11918
|
-
const peg$e59 = peg$literalExpectation("
|
|
11919
|
-
const peg$e60 = peg$literalExpectation("
|
|
11920
|
-
const peg$e61 = peg$literalExpectation("
|
|
11921
|
-
const peg$e62 = peg$literalExpectation("footnote
|
|
11922
|
-
const peg$e63 = peg$literalExpectation("
|
|
11923
|
-
const peg$e64 = peg$literalExpectation("
|
|
11924
|
-
const peg$e65 = peg$literalExpectation("
|
|
11925
|
-
const peg$e66 = peg$literalExpectation("timer
|
|
11926
|
-
const peg$e67 = peg$literalExpectation("
|
|
11927
|
-
const peg$e68 = peg$literalExpectation("
|
|
11928
|
-
const peg$e69 = peg$literalExpectation("
|
|
11929
|
-
const peg$e70 = peg$literalExpectation("
|
|
11930
|
-
const peg$e71 = peg$literalExpectation("
|
|
11931
|
-
const peg$e72 = peg$literalExpectation("
|
|
11932
|
-
const peg$e73 = peg$literalExpectation("
|
|
11933
|
-
const peg$e74 = peg$literalExpectation("
|
|
11934
|
-
const peg$e75 = peg$literalExpectation("
|
|
11935
|
-
const peg$e76 = peg$literalExpectation("
|
|
11936
|
-
const peg$e77 = peg$literalExpectation("
|
|
11937
|
-
const peg$e78 = peg$literalExpectation("
|
|
11938
|
-
const peg$e79 = peg$literalExpectation("
|
|
11939
|
-
const peg$e80 = peg$literalExpectation("
|
|
11940
|
-
const peg$e81 = peg$literalExpectation("
|
|
11941
|
-
const peg$e82 = peg$literalExpectation("
|
|
11942
|
-
const peg$e83 = peg$literalExpectation("
|
|
11943
|
-
const peg$e84 = peg$literalExpectation("
|
|
11944
|
-
const peg$e85 = peg$literalExpectation("
|
|
11945
|
-
const peg$e86 = peg$literalExpectation("
|
|
11946
|
-
const peg$e87 = peg$literalExpectation("
|
|
11947
|
-
const peg$e88 = peg$literalExpectation("
|
|
11948
|
-
const peg$e89 = peg$literalExpectation("
|
|
11949
|
-
const peg$e90 = peg$literalExpectation("
|
|
11950
|
-
const peg$e91 = peg$literalExpectation("
|
|
11951
|
-
const peg$e92 = peg$literalExpectation("
|
|
11952
|
-
const peg$e93 = peg$literalExpectation("
|
|
11953
|
-
const peg$e94 = peg$literalExpectation("
|
|
11954
|
-
const peg$e95 = peg$literalExpectation("
|
|
11955
|
-
const peg$e96 = peg$literalExpectation("
|
|
11956
|
-
const peg$e97 = peg$literalExpectation("
|
|
11957
|
-
const peg$e98 = peg$literalExpectation("
|
|
11958
|
-
const peg$e99 = peg$literalExpectation("
|
|
11959
|
-
const peg$e100 = peg$literalExpectation("
|
|
11960
|
-
const peg$e101 = peg$literalExpectation("
|
|
11961
|
-
const peg$e102 = peg$literalExpectation("
|
|
11962
|
-
const peg$e103 = peg$literalExpectation("
|
|
11963
|
-
const peg$e104 = peg$literalExpectation("
|
|
11964
|
-
const peg$e105 = peg$literalExpectation("
|
|
11965
|
-
const peg$e106 = peg$literalExpectation("
|
|
11966
|
-
const peg$e107 = peg$literalExpectation("
|
|
11967
|
-
const peg$e108 = peg$literalExpectation("
|
|
11968
|
-
const peg$e109 = peg$literalExpectation("
|
|
11969
|
-
const peg$e110 = peg$literalExpectation("
|
|
11970
|
-
const peg$e111 = peg$literalExpectation("
|
|
11971
|
-
const peg$e112 = peg$literalExpectation("
|
|
11972
|
-
const peg$e113 = peg$literalExpectation("
|
|
11973
|
-
const peg$e114 = peg$literalExpectation("
|
|
11974
|
-
const peg$e115 = peg$literalExpectation("
|
|
11975
|
-
const peg$e116 = peg$literalExpectation("
|
|
11976
|
-
const peg$e117 = peg$literalExpectation("
|
|
11977
|
-
const peg$e118 = peg$literalExpectation("
|
|
11978
|
-
const peg$e119 = peg$literalExpectation("
|
|
11979
|
-
const peg$e120 = peg$literalExpectation("
|
|
11980
|
-
const peg$e121 = peg$literalExpectation("
|
|
11981
|
-
const peg$e122 = peg$literalExpectation("
|
|
11982
|
-
const peg$e123 = peg$literalExpectation("
|
|
11983
|
-
const peg$e124 = peg$literalExpectation("
|
|
11984
|
-
const peg$e125 = peg$literalExpectation("
|
|
11985
|
-
const peg$e126 = peg$literalExpectation("
|
|
11986
|
-
const peg$e127 = peg$literalExpectation("
|
|
11987
|
-
const peg$e128 = peg$literalExpectation("
|
|
11988
|
-
const peg$e129 = peg$literalExpectation("
|
|
11989
|
-
const peg$e130 = peg$
|
|
11990
|
-
const peg$e131 = peg$
|
|
11991
|
-
const peg$e132 = peg$literalExpectation("\
|
|
11992
|
-
const peg$e133 = peg$
|
|
11993
|
-
const peg$e134 = peg$classExpectation(["\
|
|
11994
|
-
const peg$e135 = peg$
|
|
11995
|
-
const peg$e136 = peg$literalExpectation("
|
|
11996
|
-
const peg$e137 = peg$literalExpectation("
|
|
11997
|
-
const peg$e138 = peg$literalExpectation("
|
|
11998
|
-
const peg$e139 = peg$
|
|
11921
|
+
const peg$e42 = peg$literalExpectation("srcAlt", false);
|
|
11922
|
+
const peg$e43 = peg$literalExpectation("alignmentVertical", false);
|
|
11923
|
+
const peg$e44 = peg$literalExpectation("size", false);
|
|
11924
|
+
const peg$e45 = peg$literalExpectation("top", false);
|
|
11925
|
+
const peg$e46 = peg$literalExpectation("middle", false);
|
|
11926
|
+
const peg$e47 = peg$literalExpectation("bottom", false);
|
|
11927
|
+
const peg$e48 = peg$literalExpectation("baseline", false);
|
|
11928
|
+
const peg$e49 = peg$literalExpectation("sub", false);
|
|
11929
|
+
const peg$e50 = peg$literalExpectation("super", false);
|
|
11930
|
+
const peg$e51 = peg$literalExpectation("text-bottom", false);
|
|
11931
|
+
const peg$e52 = peg$literalExpectation("text-top", false);
|
|
11932
|
+
const peg$e53 = peg$literalExpectation("line-height", false);
|
|
11933
|
+
const peg$e54 = peg$literalExpectation("font-height", false);
|
|
11934
|
+
const peg$e55 = peg$literalExpectation("explicit", false);
|
|
11935
|
+
const peg$e56 = peg$literalExpectation("link:", false);
|
|
11936
|
+
const peg$e57 = peg$literalExpectation("extref:", false);
|
|
11937
|
+
const peg$e58 = peg$literalExpectation("provider:", false);
|
|
11938
|
+
const peg$e59 = peg$literalExpectation("xref:", false);
|
|
11939
|
+
const peg$e60 = peg$literalExpectation("\u25BA", false);
|
|
11940
|
+
const peg$e61 = peg$literalExpectation("symbol:", false);
|
|
11941
|
+
const peg$e62 = peg$literalExpectation("footnote:", false);
|
|
11942
|
+
const peg$e63 = peg$literalExpectation("footnote*:", false);
|
|
11943
|
+
const peg$e64 = peg$literalExpectation("var:", false);
|
|
11944
|
+
const peg$e65 = peg$literalExpectation("code:", false);
|
|
11945
|
+
const peg$e66 = peg$literalExpectation("timer", false);
|
|
11946
|
+
const peg$e67 = peg$literalExpectation("timer:", false);
|
|
11947
|
+
const peg$e68 = peg$literalExpectation("duration:", false);
|
|
11948
|
+
const peg$e69 = peg$literalExpectation("P", false);
|
|
11949
|
+
const peg$e70 = peg$literalExpectation("color:", false);
|
|
11950
|
+
const peg$e71 = peg$literalExpectation("|\u25BA", false);
|
|
11951
|
+
const peg$e72 = peg$literalExpectation("bold", false);
|
|
11952
|
+
const peg$e73 = peg$literalExpectation("italic", false);
|
|
11953
|
+
const peg$e74 = peg$literalExpectation("light", false);
|
|
11954
|
+
const peg$e75 = peg$literalExpectation("highlight", false);
|
|
11955
|
+
const peg$e76 = peg$literalExpectation("strike", false);
|
|
11956
|
+
const peg$e77 = peg$literalExpectation("subscript", false);
|
|
11957
|
+
const peg$e78 = peg$literalExpectation("superscript", false);
|
|
11958
|
+
const peg$e79 = peg$literalExpectation("ins", false);
|
|
11959
|
+
const peg$e80 = peg$literalExpectation("del", false);
|
|
11960
|
+
const peg$e81 = peg$literalExpectation("underline", false);
|
|
11961
|
+
const peg$e82 = peg$literalExpectation("doubleUnderline", false);
|
|
11962
|
+
const peg$e83 = peg$literalExpectation("circle", false);
|
|
11963
|
+
const peg$e84 = peg$literalExpectation("languageEmRed", false);
|
|
11964
|
+
const peg$e85 = peg$literalExpectation("languageEmOrange", false);
|
|
11965
|
+
const peg$e86 = peg$literalExpectation("languageEmYellow", false);
|
|
11966
|
+
const peg$e87 = peg$literalExpectation("languageEmGreen", false);
|
|
11967
|
+
const peg$e88 = peg$literalExpectation("languageEmBlue", false);
|
|
11968
|
+
const peg$e89 = peg$literalExpectation("languageEmPurple", false);
|
|
11969
|
+
const peg$e90 = peg$literalExpectation("languageEmPink", false);
|
|
11970
|
+
const peg$e91 = peg$literalExpectation("languageEmBrown", false);
|
|
11971
|
+
const peg$e92 = peg$literalExpectation("languageEmBlack", false);
|
|
11972
|
+
const peg$e93 = peg$literalExpectation("languageEmWhite", false);
|
|
11973
|
+
const peg$e94 = peg$literalExpectation("languageEmGray", false);
|
|
11974
|
+
const peg$e95 = peg$literalExpectation("languageEm", false);
|
|
11975
|
+
const peg$e96 = peg$literalExpectation("userUnderline", false);
|
|
11976
|
+
const peg$e97 = peg$literalExpectation("userDoubleUnderline", false);
|
|
11977
|
+
const peg$e98 = peg$literalExpectation("userStrike", false);
|
|
11978
|
+
const peg$e99 = peg$literalExpectation("userCircle", false);
|
|
11979
|
+
const peg$e100 = peg$literalExpectation("userHighlight", false);
|
|
11980
|
+
const peg$e101 = peg$literalExpectation("notranslate", false);
|
|
11981
|
+
const peg$e102 = peg$literalExpectation("aqua", false);
|
|
11982
|
+
const peg$e103 = peg$literalExpectation("black", false);
|
|
11983
|
+
const peg$e104 = peg$literalExpectation("blue", false);
|
|
11984
|
+
const peg$e105 = peg$literalExpectation("brown", false);
|
|
11985
|
+
const peg$e106 = peg$literalExpectation("fuchsia", false);
|
|
11986
|
+
const peg$e107 = peg$literalExpectation("lightgrey", false);
|
|
11987
|
+
const peg$e108 = peg$literalExpectation("gray", false);
|
|
11988
|
+
const peg$e109 = peg$literalExpectation("darkgray", false);
|
|
11989
|
+
const peg$e110 = peg$literalExpectation("green", false);
|
|
11990
|
+
const peg$e111 = peg$literalExpectation("lime", false);
|
|
11991
|
+
const peg$e112 = peg$literalExpectation("magenta", false);
|
|
11992
|
+
const peg$e113 = peg$literalExpectation("maroon", false);
|
|
11993
|
+
const peg$e114 = peg$literalExpectation("navy", false);
|
|
11994
|
+
const peg$e115 = peg$literalExpectation("olive", false);
|
|
11995
|
+
const peg$e116 = peg$literalExpectation("orange", false);
|
|
11996
|
+
const peg$e117 = peg$literalExpectation("pink", false);
|
|
11997
|
+
const peg$e118 = peg$literalExpectation("purple", false);
|
|
11998
|
+
const peg$e119 = peg$literalExpectation("red", false);
|
|
11999
|
+
const peg$e120 = peg$literalExpectation("silver", false);
|
|
12000
|
+
const peg$e121 = peg$literalExpectation("teal", false);
|
|
12001
|
+
const peg$e122 = peg$literalExpectation("violet", false);
|
|
12002
|
+
const peg$e123 = peg$literalExpectation("white", false);
|
|
12003
|
+
const peg$e124 = peg$literalExpectation("yellow", false);
|
|
12004
|
+
const peg$e125 = peg$literalExpectation("*", false);
|
|
12005
|
+
const peg$e126 = peg$literalExpectation("_", false);
|
|
12006
|
+
const peg$e127 = peg$literalExpectation("`", false);
|
|
12007
|
+
const peg$e128 = peg$literalExpectation("!", false);
|
|
12008
|
+
const peg$e129 = peg$literalExpectation("[!", false);
|
|
12009
|
+
const peg$e130 = peg$literalExpectation("]", false);
|
|
12010
|
+
const peg$e131 = peg$otherExpectation("Line Terminator");
|
|
12011
|
+
const peg$e132 = peg$literalExpectation("\n", false);
|
|
12012
|
+
const peg$e133 = peg$literalExpectation("\r\n", false);
|
|
12013
|
+
const peg$e134 = peg$classExpectation(["\r", ["\u2028", "\u2029"]], false, false, false);
|
|
12014
|
+
const peg$e135 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false, false);
|
|
12015
|
+
const peg$e136 = peg$literalExpectation("http", false);
|
|
12016
|
+
const peg$e137 = peg$literalExpectation("s", false);
|
|
12017
|
+
const peg$e138 = peg$literalExpectation("://", false);
|
|
12018
|
+
const peg$e139 = peg$literalExpectation("mailto:", false);
|
|
12019
|
+
const peg$e140 = peg$classExpectation(["!", ["#", ";"], "=", ["?", "["], ["]", "_"], ["a", "{"], ["}", "~"]], false, false, false);
|
|
11999
12020
|
function peg$f0() {
|
|
12000
12021
|
return VERSION;
|
|
12001
12022
|
}
|
|
@@ -12302,101 +12323,104 @@ function peg$parse(input, options) {
|
|
|
12302
12323
|
return { comment: str };
|
|
12303
12324
|
}
|
|
12304
12325
|
function peg$f67(p, v) {
|
|
12305
|
-
return { [p]:
|
|
12326
|
+
return { [p]: v };
|
|
12306
12327
|
}
|
|
12307
12328
|
function peg$f68(p, v) {
|
|
12308
|
-
return {
|
|
12329
|
+
return { [p]: parseInt(v) };
|
|
12309
12330
|
}
|
|
12310
12331
|
function peg$f69(p, v) {
|
|
12311
|
-
return {
|
|
12332
|
+
return { type: "error", msg: p + " must be a positive integer.", found: v };
|
|
12312
12333
|
}
|
|
12313
12334
|
function peg$f70(p, v) {
|
|
12314
12335
|
return { [p]: v };
|
|
12315
12336
|
}
|
|
12316
|
-
function peg$f71(
|
|
12337
|
+
function peg$f71(p, v) {
|
|
12338
|
+
return { [p]: v };
|
|
12339
|
+
}
|
|
12340
|
+
function peg$f72(str) {
|
|
12317
12341
|
return { type: "link", attrs: { href: str.trim(), target: "_blank" } };
|
|
12318
12342
|
}
|
|
12319
|
-
function peg$
|
|
12343
|
+
function peg$f73(str, rc, p) {
|
|
12320
12344
|
return { type: "extref", attrs: { extref: str.trim(), references: rc, provider: p.trim() } };
|
|
12321
12345
|
}
|
|
12322
|
-
function peg$
|
|
12346
|
+
function peg$f74(str, str2) {
|
|
12323
12347
|
return { type: "xref", attrs: { xref: str.trim(), reference: str2.trim() } };
|
|
12324
12348
|
}
|
|
12325
|
-
function peg$
|
|
12349
|
+
function peg$f75(str) {
|
|
12326
12350
|
return { type: "xref", attrs: { xref: str.trim(), reference: "" } };
|
|
12327
12351
|
}
|
|
12328
|
-
function peg$
|
|
12352
|
+
function peg$f76(str) {
|
|
12329
12353
|
return { type: "ref", attrs: { reference: str.trim() } };
|
|
12330
12354
|
}
|
|
12331
|
-
function peg$
|
|
12355
|
+
function peg$f77(str, ch) {
|
|
12332
12356
|
const chain = Object.assign({}, ...ch);
|
|
12333
12357
|
return { type: "symbol", attrs: { src: str.trim(), ...chain } };
|
|
12334
12358
|
}
|
|
12335
|
-
function peg$
|
|
12359
|
+
function peg$f78(str) {
|
|
12336
12360
|
return { type: "footnote", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
12337
12361
|
}
|
|
12338
|
-
function peg$
|
|
12362
|
+
function peg$f79(str) {
|
|
12339
12363
|
return { type: "footnote*", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
12340
12364
|
}
|
|
12341
|
-
function peg$
|
|
12365
|
+
function peg$f80(str) {
|
|
12342
12366
|
return { type: "var", attrs: { name: str.trim() } };
|
|
12343
12367
|
}
|
|
12344
|
-
function peg$
|
|
12368
|
+
function peg$f81() {
|
|
12345
12369
|
return { type: "code", attrs: { language: "plain text" } };
|
|
12346
12370
|
}
|
|
12347
|
-
function peg$
|
|
12371
|
+
function peg$f82(lang) {
|
|
12348
12372
|
return { type: "code", attrs: { language: lang.trim().toLowerCase() } };
|
|
12349
12373
|
}
|
|
12350
|
-
function peg$
|
|
12374
|
+
function peg$f83() {
|
|
12351
12375
|
return { type: "timer", attrs: { name: "" } };
|
|
12352
12376
|
}
|
|
12353
|
-
function peg$
|
|
12377
|
+
function peg$f84(str) {
|
|
12354
12378
|
return { type: "timer", attrs: { name: str.trim() } };
|
|
12355
12379
|
}
|
|
12356
|
-
function peg$
|
|
12380
|
+
function peg$f85(str) {
|
|
12357
12381
|
return { type: "duration", attrs: { duration: str } };
|
|
12358
12382
|
}
|
|
12359
|
-
function peg$
|
|
12383
|
+
function peg$f86(color) {
|
|
12360
12384
|
return { type: "color", attrs: { color } };
|
|
12361
12385
|
}
|
|
12362
|
-
function peg$
|
|
12386
|
+
function peg$f87(style) {
|
|
12363
12387
|
return { type: style };
|
|
12364
12388
|
}
|
|
12365
|
-
function peg$
|
|
12389
|
+
function peg$f88(str) {
|
|
12366
12390
|
return { type: "comment", comment: str };
|
|
12367
12391
|
}
|
|
12368
|
-
function peg$
|
|
12392
|
+
function peg$f89(r) {
|
|
12369
12393
|
return r.trim();
|
|
12370
12394
|
}
|
|
12371
|
-
function peg$
|
|
12395
|
+
function peg$f90(bs) {
|
|
12372
12396
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
12373
12397
|
}
|
|
12374
|
-
function peg$
|
|
12398
|
+
function peg$f91(first, more) {
|
|
12375
12399
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
12376
12400
|
return cleaned_;
|
|
12377
12401
|
}
|
|
12378
|
-
function peg$
|
|
12402
|
+
function peg$f92() {
|
|
12379
12403
|
return { "type": "hardBreak" };
|
|
12380
12404
|
}
|
|
12381
|
-
function peg$
|
|
12405
|
+
function peg$f93(t) {
|
|
12382
12406
|
return { text: unbreakscape(t), type: "text" };
|
|
12383
12407
|
}
|
|
12384
|
-
function peg$
|
|
12408
|
+
function peg$f94(t) {
|
|
12385
12409
|
return { index: +t, type: "bit" };
|
|
12386
12410
|
}
|
|
12387
|
-
function peg$
|
|
12411
|
+
function peg$f95(t) {
|
|
12388
12412
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
12389
12413
|
}
|
|
12390
|
-
function peg$
|
|
12414
|
+
function peg$f96(t) {
|
|
12391
12415
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
12392
12416
|
}
|
|
12393
|
-
function peg$
|
|
12417
|
+
function peg$f97(t) {
|
|
12394
12418
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
12395
12419
|
}
|
|
12396
|
-
function peg$
|
|
12420
|
+
function peg$f98(t) {
|
|
12397
12421
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
12398
12422
|
}
|
|
12399
|
-
function peg$
|
|
12423
|
+
function peg$f99(pr, t) {
|
|
12400
12424
|
return { pr, t };
|
|
12401
12425
|
}
|
|
12402
12426
|
let peg$currPos = options.peg$currPos | 0;
|
|
@@ -16578,7 +16602,15 @@ function peg$parse(input, options) {
|
|
|
16578
16602
|
if (s1 === peg$FAILED) {
|
|
16579
16603
|
s1 = null;
|
|
16580
16604
|
}
|
|
16581
|
-
|
|
16605
|
+
if (input.substr(peg$currPos, 6) === peg$c38) {
|
|
16606
|
+
s2 = peg$c38;
|
|
16607
|
+
peg$currPos += 6;
|
|
16608
|
+
} else {
|
|
16609
|
+
s2 = peg$FAILED;
|
|
16610
|
+
if (peg$silentFails === 0) {
|
|
16611
|
+
peg$fail(peg$e42);
|
|
16612
|
+
}
|
|
16613
|
+
}
|
|
16582
16614
|
if (s2 !== peg$FAILED) {
|
|
16583
16615
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
16584
16616
|
s3 = peg$c5;
|
|
@@ -16626,15 +16658,7 @@ function peg$parse(input, options) {
|
|
|
16626
16658
|
s8 = peg$FAILED;
|
|
16627
16659
|
}
|
|
16628
16660
|
if (s8 !== peg$FAILED) {
|
|
16629
|
-
s9 =
|
|
16630
|
-
if (peg$r1.test(s9)) {
|
|
16631
|
-
peg$currPos++;
|
|
16632
|
-
} else {
|
|
16633
|
-
s9 = peg$FAILED;
|
|
16634
|
-
if (peg$silentFails === 0) {
|
|
16635
|
-
peg$fail(peg$e15);
|
|
16636
|
-
}
|
|
16637
|
-
}
|
|
16661
|
+
s9 = peg$parsechar();
|
|
16638
16662
|
if (s9 !== peg$FAILED) {
|
|
16639
16663
|
s8 = [s8, s9];
|
|
16640
16664
|
s7 = s8;
|
|
@@ -16646,59 +16670,38 @@ function peg$parse(input, options) {
|
|
|
16646
16670
|
peg$currPos = s7;
|
|
16647
16671
|
s7 = peg$FAILED;
|
|
16648
16672
|
}
|
|
16649
|
-
|
|
16650
|
-
|
|
16651
|
-
|
|
16652
|
-
|
|
16653
|
-
|
|
16654
|
-
|
|
16655
|
-
|
|
16656
|
-
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
16660
|
-
|
|
16661
|
-
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16666
|
-
|
|
16667
|
-
} else {
|
|
16668
|
-
s9 = peg$FAILED;
|
|
16669
|
-
if (peg$silentFails === 0) {
|
|
16670
|
-
peg$fail(peg$e15);
|
|
16671
|
-
}
|
|
16672
|
-
}
|
|
16673
|
-
if (s9 !== peg$FAILED) {
|
|
16674
|
-
s8 = [s8, s9];
|
|
16675
|
-
s7 = s8;
|
|
16676
|
-
} else {
|
|
16677
|
-
peg$currPos = s7;
|
|
16678
|
-
s7 = peg$FAILED;
|
|
16679
|
-
}
|
|
16673
|
+
while (s7 !== peg$FAILED) {
|
|
16674
|
+
s6.push(s7);
|
|
16675
|
+
s7 = peg$currPos;
|
|
16676
|
+
s8 = peg$currPos;
|
|
16677
|
+
peg$silentFails++;
|
|
16678
|
+
s9 = peg$parseBlockTag();
|
|
16679
|
+
peg$silentFails--;
|
|
16680
|
+
if (s9 === peg$FAILED) {
|
|
16681
|
+
s8 = void 0;
|
|
16682
|
+
} else {
|
|
16683
|
+
peg$currPos = s8;
|
|
16684
|
+
s8 = peg$FAILED;
|
|
16685
|
+
}
|
|
16686
|
+
if (s8 !== peg$FAILED) {
|
|
16687
|
+
s9 = peg$parsechar();
|
|
16688
|
+
if (s9 !== peg$FAILED) {
|
|
16689
|
+
s8 = [s8, s9];
|
|
16690
|
+
s7 = s8;
|
|
16680
16691
|
} else {
|
|
16681
16692
|
peg$currPos = s7;
|
|
16682
16693
|
s7 = peg$FAILED;
|
|
16683
16694
|
}
|
|
16695
|
+
} else {
|
|
16696
|
+
peg$currPos = s7;
|
|
16697
|
+
s7 = peg$FAILED;
|
|
16684
16698
|
}
|
|
16685
|
-
} else {
|
|
16686
|
-
s6 = peg$FAILED;
|
|
16687
16699
|
}
|
|
16700
|
+
s5 = input.substring(s5, peg$currPos);
|
|
16701
|
+
s6 = peg$parseBlockTag();
|
|
16688
16702
|
if (s6 !== peg$FAILED) {
|
|
16689
|
-
|
|
16690
|
-
|
|
16691
|
-
s5 = s6;
|
|
16692
|
-
}
|
|
16693
|
-
if (s5 !== peg$FAILED) {
|
|
16694
|
-
s6 = peg$parseBlockTag();
|
|
16695
|
-
if (s6 !== peg$FAILED) {
|
|
16696
|
-
peg$savedPos = s0;
|
|
16697
|
-
s0 = peg$f67(s2, s5);
|
|
16698
|
-
} else {
|
|
16699
|
-
peg$currPos = s0;
|
|
16700
|
-
s0 = peg$FAILED;
|
|
16701
|
-
}
|
|
16703
|
+
peg$savedPos = s0;
|
|
16704
|
+
s0 = peg$f67(s2, s5);
|
|
16702
16705
|
} else {
|
|
16703
16706
|
peg$currPos = s0;
|
|
16704
16707
|
s0 = peg$FAILED;
|
|
@@ -16773,7 +16776,15 @@ function peg$parse(input, options) {
|
|
|
16773
16776
|
s8 = peg$FAILED;
|
|
16774
16777
|
}
|
|
16775
16778
|
if (s8 !== peg$FAILED) {
|
|
16776
|
-
s9 = peg$
|
|
16779
|
+
s9 = input.charAt(peg$currPos);
|
|
16780
|
+
if (peg$r1.test(s9)) {
|
|
16781
|
+
peg$currPos++;
|
|
16782
|
+
} else {
|
|
16783
|
+
s9 = peg$FAILED;
|
|
16784
|
+
if (peg$silentFails === 0) {
|
|
16785
|
+
peg$fail(peg$e15);
|
|
16786
|
+
}
|
|
16787
|
+
}
|
|
16777
16788
|
if (s9 !== peg$FAILED) {
|
|
16778
16789
|
s8 = [s8, s9];
|
|
16779
16790
|
s7 = s8;
|
|
@@ -16785,38 +16796,59 @@ function peg$parse(input, options) {
|
|
|
16785
16796
|
peg$currPos = s7;
|
|
16786
16797
|
s7 = peg$FAILED;
|
|
16787
16798
|
}
|
|
16788
|
-
|
|
16789
|
-
|
|
16790
|
-
|
|
16791
|
-
|
|
16792
|
-
|
|
16793
|
-
|
|
16794
|
-
|
|
16795
|
-
|
|
16796
|
-
|
|
16797
|
-
|
|
16798
|
-
|
|
16799
|
-
|
|
16800
|
-
|
|
16801
|
-
|
|
16802
|
-
|
|
16803
|
-
|
|
16804
|
-
|
|
16805
|
-
|
|
16799
|
+
if (s7 !== peg$FAILED) {
|
|
16800
|
+
while (s7 !== peg$FAILED) {
|
|
16801
|
+
s6.push(s7);
|
|
16802
|
+
s7 = peg$currPos;
|
|
16803
|
+
s8 = peg$currPos;
|
|
16804
|
+
peg$silentFails++;
|
|
16805
|
+
s9 = peg$parseBlockTag();
|
|
16806
|
+
peg$silentFails--;
|
|
16807
|
+
if (s9 === peg$FAILED) {
|
|
16808
|
+
s8 = void 0;
|
|
16809
|
+
} else {
|
|
16810
|
+
peg$currPos = s8;
|
|
16811
|
+
s8 = peg$FAILED;
|
|
16812
|
+
}
|
|
16813
|
+
if (s8 !== peg$FAILED) {
|
|
16814
|
+
s9 = input.charAt(peg$currPos);
|
|
16815
|
+
if (peg$r1.test(s9)) {
|
|
16816
|
+
peg$currPos++;
|
|
16817
|
+
} else {
|
|
16818
|
+
s9 = peg$FAILED;
|
|
16819
|
+
if (peg$silentFails === 0) {
|
|
16820
|
+
peg$fail(peg$e15);
|
|
16821
|
+
}
|
|
16822
|
+
}
|
|
16823
|
+
if (s9 !== peg$FAILED) {
|
|
16824
|
+
s8 = [s8, s9];
|
|
16825
|
+
s7 = s8;
|
|
16826
|
+
} else {
|
|
16827
|
+
peg$currPos = s7;
|
|
16828
|
+
s7 = peg$FAILED;
|
|
16829
|
+
}
|
|
16806
16830
|
} else {
|
|
16807
16831
|
peg$currPos = s7;
|
|
16808
16832
|
s7 = peg$FAILED;
|
|
16809
16833
|
}
|
|
16810
|
-
} else {
|
|
16811
|
-
peg$currPos = s7;
|
|
16812
|
-
s7 = peg$FAILED;
|
|
16813
16834
|
}
|
|
16835
|
+
} else {
|
|
16836
|
+
s6 = peg$FAILED;
|
|
16814
16837
|
}
|
|
16815
|
-
s5 = input.substring(s5, peg$currPos);
|
|
16816
|
-
s6 = peg$parseBlockTag();
|
|
16817
16838
|
if (s6 !== peg$FAILED) {
|
|
16818
|
-
|
|
16819
|
-
|
|
16839
|
+
s5 = input.substring(s5, peg$currPos);
|
|
16840
|
+
} else {
|
|
16841
|
+
s5 = s6;
|
|
16842
|
+
}
|
|
16843
|
+
if (s5 !== peg$FAILED) {
|
|
16844
|
+
s6 = peg$parseBlockTag();
|
|
16845
|
+
if (s6 !== peg$FAILED) {
|
|
16846
|
+
peg$savedPos = s0;
|
|
16847
|
+
s0 = peg$f68(s2, s5);
|
|
16848
|
+
} else {
|
|
16849
|
+
peg$currPos = s0;
|
|
16850
|
+
s0 = peg$FAILED;
|
|
16851
|
+
}
|
|
16820
16852
|
} else {
|
|
16821
16853
|
peg$currPos = s0;
|
|
16822
16854
|
s0 = peg$FAILED;
|
|
@@ -16843,15 +16875,7 @@ function peg$parse(input, options) {
|
|
|
16843
16875
|
if (s1 === peg$FAILED) {
|
|
16844
16876
|
s1 = null;
|
|
16845
16877
|
}
|
|
16846
|
-
|
|
16847
|
-
s2 = peg$c38;
|
|
16848
|
-
peg$currPos += 17;
|
|
16849
|
-
} else {
|
|
16850
|
-
s2 = peg$FAILED;
|
|
16851
|
-
if (peg$silentFails === 0) {
|
|
16852
|
-
peg$fail(peg$e42);
|
|
16853
|
-
}
|
|
16854
|
-
}
|
|
16878
|
+
s2 = peg$parseMediaSizeTags();
|
|
16855
16879
|
if (s2 !== peg$FAILED) {
|
|
16856
16880
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
16857
16881
|
s3 = peg$c5;
|
|
@@ -16885,16 +16909,64 @@ function peg$parse(input, options) {
|
|
|
16885
16909
|
}
|
|
16886
16910
|
}
|
|
16887
16911
|
}
|
|
16888
|
-
s5 = peg$
|
|
16889
|
-
|
|
16890
|
-
|
|
16891
|
-
|
|
16892
|
-
|
|
16893
|
-
|
|
16912
|
+
s5 = peg$currPos;
|
|
16913
|
+
s6 = [];
|
|
16914
|
+
s7 = peg$currPos;
|
|
16915
|
+
s8 = peg$currPos;
|
|
16916
|
+
peg$silentFails++;
|
|
16917
|
+
s9 = peg$parseBlockTag();
|
|
16918
|
+
peg$silentFails--;
|
|
16919
|
+
if (s9 === peg$FAILED) {
|
|
16920
|
+
s8 = void 0;
|
|
16921
|
+
} else {
|
|
16922
|
+
peg$currPos = s8;
|
|
16923
|
+
s8 = peg$FAILED;
|
|
16924
|
+
}
|
|
16925
|
+
if (s8 !== peg$FAILED) {
|
|
16926
|
+
s9 = peg$parsechar();
|
|
16927
|
+
if (s9 !== peg$FAILED) {
|
|
16928
|
+
s8 = [s8, s9];
|
|
16929
|
+
s7 = s8;
|
|
16894
16930
|
} else {
|
|
16895
|
-
peg$currPos =
|
|
16896
|
-
|
|
16931
|
+
peg$currPos = s7;
|
|
16932
|
+
s7 = peg$FAILED;
|
|
16897
16933
|
}
|
|
16934
|
+
} else {
|
|
16935
|
+
peg$currPos = s7;
|
|
16936
|
+
s7 = peg$FAILED;
|
|
16937
|
+
}
|
|
16938
|
+
while (s7 !== peg$FAILED) {
|
|
16939
|
+
s6.push(s7);
|
|
16940
|
+
s7 = peg$currPos;
|
|
16941
|
+
s8 = peg$currPos;
|
|
16942
|
+
peg$silentFails++;
|
|
16943
|
+
s9 = peg$parseBlockTag();
|
|
16944
|
+
peg$silentFails--;
|
|
16945
|
+
if (s9 === peg$FAILED) {
|
|
16946
|
+
s8 = void 0;
|
|
16947
|
+
} else {
|
|
16948
|
+
peg$currPos = s8;
|
|
16949
|
+
s8 = peg$FAILED;
|
|
16950
|
+
}
|
|
16951
|
+
if (s8 !== peg$FAILED) {
|
|
16952
|
+
s9 = peg$parsechar();
|
|
16953
|
+
if (s9 !== peg$FAILED) {
|
|
16954
|
+
s8 = [s8, s9];
|
|
16955
|
+
s7 = s8;
|
|
16956
|
+
} else {
|
|
16957
|
+
peg$currPos = s7;
|
|
16958
|
+
s7 = peg$FAILED;
|
|
16959
|
+
}
|
|
16960
|
+
} else {
|
|
16961
|
+
peg$currPos = s7;
|
|
16962
|
+
s7 = peg$FAILED;
|
|
16963
|
+
}
|
|
16964
|
+
}
|
|
16965
|
+
s5 = input.substring(s5, peg$currPos);
|
|
16966
|
+
s6 = peg$parseBlockTag();
|
|
16967
|
+
if (s6 !== peg$FAILED) {
|
|
16968
|
+
peg$savedPos = s0;
|
|
16969
|
+
s0 = peg$f69(s2, s5);
|
|
16898
16970
|
} else {
|
|
16899
16971
|
peg$currPos = s0;
|
|
16900
16972
|
s0 = peg$FAILED;
|
|
@@ -16921,9 +16993,9 @@ function peg$parse(input, options) {
|
|
|
16921
16993
|
if (s1 === peg$FAILED) {
|
|
16922
16994
|
s1 = null;
|
|
16923
16995
|
}
|
|
16924
|
-
if (input.substr(peg$currPos,
|
|
16996
|
+
if (input.substr(peg$currPos, 17) === peg$c39) {
|
|
16925
16997
|
s2 = peg$c39;
|
|
16926
|
-
peg$currPos +=
|
|
16998
|
+
peg$currPos += 17;
|
|
16927
16999
|
} else {
|
|
16928
17000
|
s2 = peg$FAILED;
|
|
16929
17001
|
if (peg$silentFails === 0) {
|
|
@@ -16963,7 +17035,7 @@ function peg$parse(input, options) {
|
|
|
16963
17035
|
}
|
|
16964
17036
|
}
|
|
16965
17037
|
}
|
|
16966
|
-
s5 = peg$
|
|
17038
|
+
s5 = peg$parseInlineMediaAlignment();
|
|
16967
17039
|
if (s5 !== peg$FAILED) {
|
|
16968
17040
|
s6 = peg$parseBlockTag();
|
|
16969
17041
|
if (s6 !== peg$FAILED) {
|
|
@@ -16985,6 +17057,85 @@ function peg$parse(input, options) {
|
|
|
16985
17057
|
peg$currPos = s0;
|
|
16986
17058
|
s0 = peg$FAILED;
|
|
16987
17059
|
}
|
|
17060
|
+
if (s0 === peg$FAILED) {
|
|
17061
|
+
s0 = peg$currPos;
|
|
17062
|
+
if (input.charCodeAt(peg$currPos) === 64) {
|
|
17063
|
+
s1 = peg$c22;
|
|
17064
|
+
peg$currPos++;
|
|
17065
|
+
} else {
|
|
17066
|
+
s1 = peg$FAILED;
|
|
17067
|
+
if (peg$silentFails === 0) {
|
|
17068
|
+
peg$fail(peg$e26);
|
|
17069
|
+
}
|
|
17070
|
+
}
|
|
17071
|
+
if (s1 === peg$FAILED) {
|
|
17072
|
+
s1 = null;
|
|
17073
|
+
}
|
|
17074
|
+
if (input.substr(peg$currPos, 4) === peg$c40) {
|
|
17075
|
+
s2 = peg$c40;
|
|
17076
|
+
peg$currPos += 4;
|
|
17077
|
+
} else {
|
|
17078
|
+
s2 = peg$FAILED;
|
|
17079
|
+
if (peg$silentFails === 0) {
|
|
17080
|
+
peg$fail(peg$e44);
|
|
17081
|
+
}
|
|
17082
|
+
}
|
|
17083
|
+
if (s2 !== peg$FAILED) {
|
|
17084
|
+
if (input.charCodeAt(peg$currPos) === 58) {
|
|
17085
|
+
s3 = peg$c5;
|
|
17086
|
+
peg$currPos++;
|
|
17087
|
+
} else {
|
|
17088
|
+
s3 = peg$FAILED;
|
|
17089
|
+
if (peg$silentFails === 0) {
|
|
17090
|
+
peg$fail(peg$e8);
|
|
17091
|
+
}
|
|
17092
|
+
}
|
|
17093
|
+
if (s3 !== peg$FAILED) {
|
|
17094
|
+
s4 = [];
|
|
17095
|
+
if (input.charCodeAt(peg$currPos) === 32) {
|
|
17096
|
+
s5 = peg$c12;
|
|
17097
|
+
peg$currPos++;
|
|
17098
|
+
} else {
|
|
17099
|
+
s5 = peg$FAILED;
|
|
17100
|
+
if (peg$silentFails === 0) {
|
|
17101
|
+
peg$fail(peg$e16);
|
|
17102
|
+
}
|
|
17103
|
+
}
|
|
17104
|
+
while (s5 !== peg$FAILED) {
|
|
17105
|
+
s4.push(s5);
|
|
17106
|
+
if (input.charCodeAt(peg$currPos) === 32) {
|
|
17107
|
+
s5 = peg$c12;
|
|
17108
|
+
peg$currPos++;
|
|
17109
|
+
} else {
|
|
17110
|
+
s5 = peg$FAILED;
|
|
17111
|
+
if (peg$silentFails === 0) {
|
|
17112
|
+
peg$fail(peg$e16);
|
|
17113
|
+
}
|
|
17114
|
+
}
|
|
17115
|
+
}
|
|
17116
|
+
s5 = peg$parseInlineMediaSize();
|
|
17117
|
+
if (s5 !== peg$FAILED) {
|
|
17118
|
+
s6 = peg$parseBlockTag();
|
|
17119
|
+
if (s6 !== peg$FAILED) {
|
|
17120
|
+
peg$savedPos = s0;
|
|
17121
|
+
s0 = peg$f71(s2, s5);
|
|
17122
|
+
} else {
|
|
17123
|
+
peg$currPos = s0;
|
|
17124
|
+
s0 = peg$FAILED;
|
|
17125
|
+
}
|
|
17126
|
+
} else {
|
|
17127
|
+
peg$currPos = s0;
|
|
17128
|
+
s0 = peg$FAILED;
|
|
17129
|
+
}
|
|
17130
|
+
} else {
|
|
17131
|
+
peg$currPos = s0;
|
|
17132
|
+
s0 = peg$FAILED;
|
|
17133
|
+
}
|
|
17134
|
+
} else {
|
|
17135
|
+
peg$currPos = s0;
|
|
17136
|
+
s0 = peg$FAILED;
|
|
17137
|
+
}
|
|
17138
|
+
}
|
|
16988
17139
|
}
|
|
16989
17140
|
}
|
|
16990
17141
|
}
|
|
@@ -16993,83 +17144,83 @@ function peg$parse(input, options) {
|
|
|
16993
17144
|
}
|
|
16994
17145
|
function peg$parseInlineMediaAlignment() {
|
|
16995
17146
|
let s0;
|
|
16996
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
16997
|
-
s0 = peg$
|
|
17147
|
+
if (input.substr(peg$currPos, 3) === peg$c41) {
|
|
17148
|
+
s0 = peg$c41;
|
|
16998
17149
|
peg$currPos += 3;
|
|
16999
17150
|
} else {
|
|
17000
17151
|
s0 = peg$FAILED;
|
|
17001
17152
|
if (peg$silentFails === 0) {
|
|
17002
|
-
peg$fail(peg$
|
|
17153
|
+
peg$fail(peg$e45);
|
|
17003
17154
|
}
|
|
17004
17155
|
}
|
|
17005
17156
|
if (s0 === peg$FAILED) {
|
|
17006
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
17007
|
-
s0 = peg$
|
|
17157
|
+
if (input.substr(peg$currPos, 6) === peg$c42) {
|
|
17158
|
+
s0 = peg$c42;
|
|
17008
17159
|
peg$currPos += 6;
|
|
17009
17160
|
} else {
|
|
17010
17161
|
s0 = peg$FAILED;
|
|
17011
17162
|
if (peg$silentFails === 0) {
|
|
17012
|
-
peg$fail(peg$
|
|
17163
|
+
peg$fail(peg$e46);
|
|
17013
17164
|
}
|
|
17014
17165
|
}
|
|
17015
17166
|
if (s0 === peg$FAILED) {
|
|
17016
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
17017
|
-
s0 = peg$
|
|
17167
|
+
if (input.substr(peg$currPos, 6) === peg$c43) {
|
|
17168
|
+
s0 = peg$c43;
|
|
17018
17169
|
peg$currPos += 6;
|
|
17019
17170
|
} else {
|
|
17020
17171
|
s0 = peg$FAILED;
|
|
17021
17172
|
if (peg$silentFails === 0) {
|
|
17022
|
-
peg$fail(peg$
|
|
17173
|
+
peg$fail(peg$e47);
|
|
17023
17174
|
}
|
|
17024
17175
|
}
|
|
17025
17176
|
if (s0 === peg$FAILED) {
|
|
17026
|
-
if (input.substr(peg$currPos, 8) === peg$
|
|
17027
|
-
s0 = peg$
|
|
17177
|
+
if (input.substr(peg$currPos, 8) === peg$c44) {
|
|
17178
|
+
s0 = peg$c44;
|
|
17028
17179
|
peg$currPos += 8;
|
|
17029
17180
|
} else {
|
|
17030
17181
|
s0 = peg$FAILED;
|
|
17031
17182
|
if (peg$silentFails === 0) {
|
|
17032
|
-
peg$fail(peg$
|
|
17183
|
+
peg$fail(peg$e48);
|
|
17033
17184
|
}
|
|
17034
17185
|
}
|
|
17035
17186
|
if (s0 === peg$FAILED) {
|
|
17036
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
17037
|
-
s0 = peg$
|
|
17187
|
+
if (input.substr(peg$currPos, 3) === peg$c45) {
|
|
17188
|
+
s0 = peg$c45;
|
|
17038
17189
|
peg$currPos += 3;
|
|
17039
17190
|
} else {
|
|
17040
17191
|
s0 = peg$FAILED;
|
|
17041
17192
|
if (peg$silentFails === 0) {
|
|
17042
|
-
peg$fail(peg$
|
|
17193
|
+
peg$fail(peg$e49);
|
|
17043
17194
|
}
|
|
17044
17195
|
}
|
|
17045
17196
|
if (s0 === peg$FAILED) {
|
|
17046
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
17047
|
-
s0 = peg$
|
|
17197
|
+
if (input.substr(peg$currPos, 5) === peg$c46) {
|
|
17198
|
+
s0 = peg$c46;
|
|
17048
17199
|
peg$currPos += 5;
|
|
17049
17200
|
} else {
|
|
17050
17201
|
s0 = peg$FAILED;
|
|
17051
17202
|
if (peg$silentFails === 0) {
|
|
17052
|
-
peg$fail(peg$
|
|
17203
|
+
peg$fail(peg$e50);
|
|
17053
17204
|
}
|
|
17054
17205
|
}
|
|
17055
17206
|
if (s0 === peg$FAILED) {
|
|
17056
|
-
if (input.substr(peg$currPos, 11) === peg$
|
|
17057
|
-
s0 = peg$
|
|
17207
|
+
if (input.substr(peg$currPos, 11) === peg$c47) {
|
|
17208
|
+
s0 = peg$c47;
|
|
17058
17209
|
peg$currPos += 11;
|
|
17059
17210
|
} else {
|
|
17060
17211
|
s0 = peg$FAILED;
|
|
17061
17212
|
if (peg$silentFails === 0) {
|
|
17062
|
-
peg$fail(peg$
|
|
17213
|
+
peg$fail(peg$e51);
|
|
17063
17214
|
}
|
|
17064
17215
|
}
|
|
17065
17216
|
if (s0 === peg$FAILED) {
|
|
17066
|
-
if (input.substr(peg$currPos, 8) === peg$
|
|
17067
|
-
s0 = peg$
|
|
17217
|
+
if (input.substr(peg$currPos, 8) === peg$c48) {
|
|
17218
|
+
s0 = peg$c48;
|
|
17068
17219
|
peg$currPos += 8;
|
|
17069
17220
|
} else {
|
|
17070
17221
|
s0 = peg$FAILED;
|
|
17071
17222
|
if (peg$silentFails === 0) {
|
|
17072
|
-
peg$fail(peg$
|
|
17223
|
+
peg$fail(peg$e52);
|
|
17073
17224
|
}
|
|
17074
17225
|
}
|
|
17075
17226
|
}
|
|
@@ -17083,53 +17234,53 @@ function peg$parse(input, options) {
|
|
|
17083
17234
|
}
|
|
17084
17235
|
function peg$parseInlineMediaSize() {
|
|
17085
17236
|
let s0;
|
|
17086
|
-
if (input.substr(peg$currPos, 11) === peg$
|
|
17087
|
-
s0 = peg$
|
|
17237
|
+
if (input.substr(peg$currPos, 11) === peg$c49) {
|
|
17238
|
+
s0 = peg$c49;
|
|
17088
17239
|
peg$currPos += 11;
|
|
17089
17240
|
} else {
|
|
17090
17241
|
s0 = peg$FAILED;
|
|
17091
17242
|
if (peg$silentFails === 0) {
|
|
17092
|
-
peg$fail(peg$
|
|
17243
|
+
peg$fail(peg$e53);
|
|
17093
17244
|
}
|
|
17094
17245
|
}
|
|
17095
17246
|
if (s0 === peg$FAILED) {
|
|
17096
|
-
if (input.substr(peg$currPos, 11) === peg$
|
|
17097
|
-
s0 = peg$
|
|
17247
|
+
if (input.substr(peg$currPos, 11) === peg$c50) {
|
|
17248
|
+
s0 = peg$c50;
|
|
17098
17249
|
peg$currPos += 11;
|
|
17099
17250
|
} else {
|
|
17100
17251
|
s0 = peg$FAILED;
|
|
17101
17252
|
if (peg$silentFails === 0) {
|
|
17102
|
-
peg$fail(peg$
|
|
17253
|
+
peg$fail(peg$e54);
|
|
17103
17254
|
}
|
|
17104
17255
|
}
|
|
17105
17256
|
if (s0 === peg$FAILED) {
|
|
17106
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
17107
|
-
s0 = peg$
|
|
17257
|
+
if (input.substr(peg$currPos, 5) === peg$c46) {
|
|
17258
|
+
s0 = peg$c46;
|
|
17108
17259
|
peg$currPos += 5;
|
|
17109
17260
|
} else {
|
|
17110
17261
|
s0 = peg$FAILED;
|
|
17111
17262
|
if (peg$silentFails === 0) {
|
|
17112
|
-
peg$fail(peg$
|
|
17263
|
+
peg$fail(peg$e50);
|
|
17113
17264
|
}
|
|
17114
17265
|
}
|
|
17115
17266
|
if (s0 === peg$FAILED) {
|
|
17116
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
17117
|
-
s0 = peg$
|
|
17267
|
+
if (input.substr(peg$currPos, 3) === peg$c45) {
|
|
17268
|
+
s0 = peg$c45;
|
|
17118
17269
|
peg$currPos += 3;
|
|
17119
17270
|
} else {
|
|
17120
17271
|
s0 = peg$FAILED;
|
|
17121
17272
|
if (peg$silentFails === 0) {
|
|
17122
|
-
peg$fail(peg$
|
|
17273
|
+
peg$fail(peg$e49);
|
|
17123
17274
|
}
|
|
17124
17275
|
}
|
|
17125
17276
|
if (s0 === peg$FAILED) {
|
|
17126
|
-
if (input.substr(peg$currPos, 8) === peg$
|
|
17127
|
-
s0 = peg$
|
|
17277
|
+
if (input.substr(peg$currPos, 8) === peg$c51) {
|
|
17278
|
+
s0 = peg$c51;
|
|
17128
17279
|
peg$currPos += 8;
|
|
17129
17280
|
} else {
|
|
17130
17281
|
s0 = peg$FAILED;
|
|
17131
17282
|
if (peg$silentFails === 0) {
|
|
17132
|
-
peg$fail(peg$
|
|
17283
|
+
peg$fail(peg$e55);
|
|
17133
17284
|
}
|
|
17134
17285
|
}
|
|
17135
17286
|
}
|
|
@@ -17141,13 +17292,13 @@ function peg$parse(input, options) {
|
|
|
17141
17292
|
function peg$parseAttrChainItem() {
|
|
17142
17293
|
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
|
|
17143
17294
|
s0 = peg$currPos;
|
|
17144
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
17145
|
-
s1 = peg$
|
|
17295
|
+
if (input.substr(peg$currPos, 5) === peg$c52) {
|
|
17296
|
+
s1 = peg$c52;
|
|
17146
17297
|
peg$currPos += 5;
|
|
17147
17298
|
} else {
|
|
17148
17299
|
s1 = peg$FAILED;
|
|
17149
17300
|
if (peg$silentFails === 0) {
|
|
17150
|
-
peg$fail(peg$
|
|
17301
|
+
peg$fail(peg$e56);
|
|
17151
17302
|
}
|
|
17152
17303
|
}
|
|
17153
17304
|
if (s1 !== peg$FAILED) {
|
|
@@ -17208,7 +17359,7 @@ function peg$parse(input, options) {
|
|
|
17208
17359
|
s3 = peg$parseBlockTag();
|
|
17209
17360
|
if (s3 !== peg$FAILED) {
|
|
17210
17361
|
peg$savedPos = s0;
|
|
17211
|
-
s0 = peg$
|
|
17362
|
+
s0 = peg$f72(s2);
|
|
17212
17363
|
} else {
|
|
17213
17364
|
peg$currPos = s0;
|
|
17214
17365
|
s0 = peg$FAILED;
|
|
@@ -17219,13 +17370,13 @@ function peg$parse(input, options) {
|
|
|
17219
17370
|
}
|
|
17220
17371
|
if (s0 === peg$FAILED) {
|
|
17221
17372
|
s0 = peg$currPos;
|
|
17222
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
17223
|
-
s1 = peg$
|
|
17373
|
+
if (input.substr(peg$currPos, 7) === peg$c53) {
|
|
17374
|
+
s1 = peg$c53;
|
|
17224
17375
|
peg$currPos += 7;
|
|
17225
17376
|
} else {
|
|
17226
17377
|
s1 = peg$FAILED;
|
|
17227
17378
|
if (peg$silentFails === 0) {
|
|
17228
|
-
peg$fail(peg$
|
|
17379
|
+
peg$fail(peg$e57);
|
|
17229
17380
|
}
|
|
17230
17381
|
}
|
|
17231
17382
|
if (s1 !== peg$FAILED) {
|
|
@@ -17286,13 +17437,13 @@ function peg$parse(input, options) {
|
|
|
17286
17437
|
s3 = peg$parseRefsChain();
|
|
17287
17438
|
s4 = peg$parseBlockTag();
|
|
17288
17439
|
if (s4 !== peg$FAILED) {
|
|
17289
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
17290
|
-
s5 = peg$
|
|
17440
|
+
if (input.substr(peg$currPos, 9) === peg$c54) {
|
|
17441
|
+
s5 = peg$c54;
|
|
17291
17442
|
peg$currPos += 9;
|
|
17292
17443
|
} else {
|
|
17293
17444
|
s5 = peg$FAILED;
|
|
17294
17445
|
if (peg$silentFails === 0) {
|
|
17295
|
-
peg$fail(peg$
|
|
17446
|
+
peg$fail(peg$e58);
|
|
17296
17447
|
}
|
|
17297
17448
|
}
|
|
17298
17449
|
if (s5 !== peg$FAILED) {
|
|
@@ -17353,7 +17504,7 @@ function peg$parse(input, options) {
|
|
|
17353
17504
|
s7 = peg$parseBlockTag();
|
|
17354
17505
|
if (s7 !== peg$FAILED) {
|
|
17355
17506
|
peg$savedPos = s0;
|
|
17356
|
-
s0 = peg$
|
|
17507
|
+
s0 = peg$f73(s2, s3, s6);
|
|
17357
17508
|
} else {
|
|
17358
17509
|
peg$currPos = s0;
|
|
17359
17510
|
s0 = peg$FAILED;
|
|
@@ -17372,13 +17523,13 @@ function peg$parse(input, options) {
|
|
|
17372
17523
|
}
|
|
17373
17524
|
if (s0 === peg$FAILED) {
|
|
17374
17525
|
s0 = peg$currPos;
|
|
17375
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
17376
|
-
s1 = peg$
|
|
17526
|
+
if (input.substr(peg$currPos, 5) === peg$c55) {
|
|
17527
|
+
s1 = peg$c55;
|
|
17377
17528
|
peg$currPos += 5;
|
|
17378
17529
|
} else {
|
|
17379
17530
|
s1 = peg$FAILED;
|
|
17380
17531
|
if (peg$silentFails === 0) {
|
|
17381
|
-
peg$fail(peg$
|
|
17532
|
+
peg$fail(peg$e59);
|
|
17382
17533
|
}
|
|
17383
17534
|
}
|
|
17384
17535
|
if (s1 !== peg$FAILED) {
|
|
@@ -17439,12 +17590,12 @@ function peg$parse(input, options) {
|
|
|
17439
17590
|
s3 = peg$parseBlockTag();
|
|
17440
17591
|
if (s3 !== peg$FAILED) {
|
|
17441
17592
|
if (input.charCodeAt(peg$currPos) === 9658) {
|
|
17442
|
-
s4 = peg$
|
|
17593
|
+
s4 = peg$c56;
|
|
17443
17594
|
peg$currPos++;
|
|
17444
17595
|
} else {
|
|
17445
17596
|
s4 = peg$FAILED;
|
|
17446
17597
|
if (peg$silentFails === 0) {
|
|
17447
|
-
peg$fail(peg$
|
|
17598
|
+
peg$fail(peg$e60);
|
|
17448
17599
|
}
|
|
17449
17600
|
}
|
|
17450
17601
|
if (s4 !== peg$FAILED) {
|
|
@@ -17505,7 +17656,7 @@ function peg$parse(input, options) {
|
|
|
17505
17656
|
s6 = peg$parseBlockTag();
|
|
17506
17657
|
if (s6 !== peg$FAILED) {
|
|
17507
17658
|
peg$savedPos = s0;
|
|
17508
|
-
s0 = peg$
|
|
17659
|
+
s0 = peg$f74(s2, s5);
|
|
17509
17660
|
} else {
|
|
17510
17661
|
peg$currPos = s0;
|
|
17511
17662
|
s0 = peg$FAILED;
|
|
@@ -17524,13 +17675,13 @@ function peg$parse(input, options) {
|
|
|
17524
17675
|
}
|
|
17525
17676
|
if (s0 === peg$FAILED) {
|
|
17526
17677
|
s0 = peg$currPos;
|
|
17527
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
17528
|
-
s1 = peg$
|
|
17678
|
+
if (input.substr(peg$currPos, 5) === peg$c55) {
|
|
17679
|
+
s1 = peg$c55;
|
|
17529
17680
|
peg$currPos += 5;
|
|
17530
17681
|
} else {
|
|
17531
17682
|
s1 = peg$FAILED;
|
|
17532
17683
|
if (peg$silentFails === 0) {
|
|
17533
|
-
peg$fail(peg$
|
|
17684
|
+
peg$fail(peg$e59);
|
|
17534
17685
|
}
|
|
17535
17686
|
}
|
|
17536
17687
|
if (s1 !== peg$FAILED) {
|
|
@@ -17591,7 +17742,7 @@ function peg$parse(input, options) {
|
|
|
17591
17742
|
s3 = peg$parseBlockTag();
|
|
17592
17743
|
if (s3 !== peg$FAILED) {
|
|
17593
17744
|
peg$savedPos = s0;
|
|
17594
|
-
s0 = peg$
|
|
17745
|
+
s0 = peg$f75(s2);
|
|
17595
17746
|
} else {
|
|
17596
17747
|
peg$currPos = s0;
|
|
17597
17748
|
s0 = peg$FAILED;
|
|
@@ -17603,12 +17754,12 @@ function peg$parse(input, options) {
|
|
|
17603
17754
|
if (s0 === peg$FAILED) {
|
|
17604
17755
|
s0 = peg$currPos;
|
|
17605
17756
|
if (input.charCodeAt(peg$currPos) === 9658) {
|
|
17606
|
-
s1 = peg$
|
|
17757
|
+
s1 = peg$c56;
|
|
17607
17758
|
peg$currPos++;
|
|
17608
17759
|
} else {
|
|
17609
17760
|
s1 = peg$FAILED;
|
|
17610
17761
|
if (peg$silentFails === 0) {
|
|
17611
|
-
peg$fail(peg$
|
|
17762
|
+
peg$fail(peg$e60);
|
|
17612
17763
|
}
|
|
17613
17764
|
}
|
|
17614
17765
|
if (s1 !== peg$FAILED) {
|
|
@@ -17669,7 +17820,7 @@ function peg$parse(input, options) {
|
|
|
17669
17820
|
s3 = peg$parseBlockTag();
|
|
17670
17821
|
if (s3 !== peg$FAILED) {
|
|
17671
17822
|
peg$savedPos = s0;
|
|
17672
|
-
s0 = peg$
|
|
17823
|
+
s0 = peg$f76(s2);
|
|
17673
17824
|
} else {
|
|
17674
17825
|
peg$currPos = s0;
|
|
17675
17826
|
s0 = peg$FAILED;
|
|
@@ -17680,13 +17831,13 @@ function peg$parse(input, options) {
|
|
|
17680
17831
|
}
|
|
17681
17832
|
if (s0 === peg$FAILED) {
|
|
17682
17833
|
s0 = peg$currPos;
|
|
17683
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
17684
|
-
s1 = peg$
|
|
17834
|
+
if (input.substr(peg$currPos, 7) === peg$c57) {
|
|
17835
|
+
s1 = peg$c57;
|
|
17685
17836
|
peg$currPos += 7;
|
|
17686
17837
|
} else {
|
|
17687
17838
|
s1 = peg$FAILED;
|
|
17688
17839
|
if (peg$silentFails === 0) {
|
|
17689
|
-
peg$fail(peg$
|
|
17840
|
+
peg$fail(peg$e61);
|
|
17690
17841
|
}
|
|
17691
17842
|
}
|
|
17692
17843
|
if (s1 !== peg$FAILED) {
|
|
@@ -17748,7 +17899,7 @@ function peg$parse(input, options) {
|
|
|
17748
17899
|
if (s3 !== peg$FAILED) {
|
|
17749
17900
|
s4 = peg$parseMediaChain();
|
|
17750
17901
|
peg$savedPos = s0;
|
|
17751
|
-
s0 = peg$
|
|
17902
|
+
s0 = peg$f77(s2, s4);
|
|
17752
17903
|
} else {
|
|
17753
17904
|
peg$currPos = s0;
|
|
17754
17905
|
s0 = peg$FAILED;
|
|
@@ -17759,13 +17910,13 @@ function peg$parse(input, options) {
|
|
|
17759
17910
|
}
|
|
17760
17911
|
if (s0 === peg$FAILED) {
|
|
17761
17912
|
s0 = peg$currPos;
|
|
17762
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
17763
|
-
s1 = peg$
|
|
17913
|
+
if (input.substr(peg$currPos, 9) === peg$c58) {
|
|
17914
|
+
s1 = peg$c58;
|
|
17764
17915
|
peg$currPos += 9;
|
|
17765
17916
|
} else {
|
|
17766
17917
|
s1 = peg$FAILED;
|
|
17767
17918
|
if (peg$silentFails === 0) {
|
|
17768
|
-
peg$fail(peg$
|
|
17919
|
+
peg$fail(peg$e62);
|
|
17769
17920
|
}
|
|
17770
17921
|
}
|
|
17771
17922
|
if (s1 !== peg$FAILED) {
|
|
@@ -17826,7 +17977,7 @@ function peg$parse(input, options) {
|
|
|
17826
17977
|
s3 = peg$parseBlockTag();
|
|
17827
17978
|
if (s3 !== peg$FAILED) {
|
|
17828
17979
|
peg$savedPos = s0;
|
|
17829
|
-
s0 = peg$
|
|
17980
|
+
s0 = peg$f78(s2);
|
|
17830
17981
|
} else {
|
|
17831
17982
|
peg$currPos = s0;
|
|
17832
17983
|
s0 = peg$FAILED;
|
|
@@ -17837,13 +17988,13 @@ function peg$parse(input, options) {
|
|
|
17837
17988
|
}
|
|
17838
17989
|
if (s0 === peg$FAILED) {
|
|
17839
17990
|
s0 = peg$currPos;
|
|
17840
|
-
if (input.substr(peg$currPos, 10) === peg$
|
|
17841
|
-
s1 = peg$
|
|
17991
|
+
if (input.substr(peg$currPos, 10) === peg$c59) {
|
|
17992
|
+
s1 = peg$c59;
|
|
17842
17993
|
peg$currPos += 10;
|
|
17843
17994
|
} else {
|
|
17844
17995
|
s1 = peg$FAILED;
|
|
17845
17996
|
if (peg$silentFails === 0) {
|
|
17846
|
-
peg$fail(peg$
|
|
17997
|
+
peg$fail(peg$e63);
|
|
17847
17998
|
}
|
|
17848
17999
|
}
|
|
17849
18000
|
if (s1 !== peg$FAILED) {
|
|
@@ -17904,7 +18055,7 @@ function peg$parse(input, options) {
|
|
|
17904
18055
|
s3 = peg$parseBlockTag();
|
|
17905
18056
|
if (s3 !== peg$FAILED) {
|
|
17906
18057
|
peg$savedPos = s0;
|
|
17907
|
-
s0 = peg$
|
|
18058
|
+
s0 = peg$f79(s2);
|
|
17908
18059
|
} else {
|
|
17909
18060
|
peg$currPos = s0;
|
|
17910
18061
|
s0 = peg$FAILED;
|
|
@@ -17915,13 +18066,13 @@ function peg$parse(input, options) {
|
|
|
17915
18066
|
}
|
|
17916
18067
|
if (s0 === peg$FAILED) {
|
|
17917
18068
|
s0 = peg$currPos;
|
|
17918
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
17919
|
-
s1 = peg$
|
|
18069
|
+
if (input.substr(peg$currPos, 4) === peg$c60) {
|
|
18070
|
+
s1 = peg$c60;
|
|
17920
18071
|
peg$currPos += 4;
|
|
17921
18072
|
} else {
|
|
17922
18073
|
s1 = peg$FAILED;
|
|
17923
18074
|
if (peg$silentFails === 0) {
|
|
17924
|
-
peg$fail(peg$
|
|
18075
|
+
peg$fail(peg$e64);
|
|
17925
18076
|
}
|
|
17926
18077
|
}
|
|
17927
18078
|
if (s1 !== peg$FAILED) {
|
|
@@ -17982,7 +18133,7 @@ function peg$parse(input, options) {
|
|
|
17982
18133
|
s3 = peg$parseBlockTag();
|
|
17983
18134
|
if (s3 !== peg$FAILED) {
|
|
17984
18135
|
peg$savedPos = s0;
|
|
17985
|
-
s0 = peg$
|
|
18136
|
+
s0 = peg$f80(s2);
|
|
17986
18137
|
} else {
|
|
17987
18138
|
peg$currPos = s0;
|
|
17988
18139
|
s0 = peg$FAILED;
|
|
@@ -18006,7 +18157,7 @@ function peg$parse(input, options) {
|
|
|
18006
18157
|
s2 = peg$parseBlockTag();
|
|
18007
18158
|
if (s2 !== peg$FAILED) {
|
|
18008
18159
|
peg$savedPos = s0;
|
|
18009
|
-
s0 = peg$
|
|
18160
|
+
s0 = peg$f81();
|
|
18010
18161
|
} else {
|
|
18011
18162
|
peg$currPos = s0;
|
|
18012
18163
|
s0 = peg$FAILED;
|
|
@@ -18017,13 +18168,13 @@ function peg$parse(input, options) {
|
|
|
18017
18168
|
}
|
|
18018
18169
|
if (s0 === peg$FAILED) {
|
|
18019
18170
|
s0 = peg$currPos;
|
|
18020
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
18021
|
-
s1 = peg$
|
|
18171
|
+
if (input.substr(peg$currPos, 5) === peg$c61) {
|
|
18172
|
+
s1 = peg$c61;
|
|
18022
18173
|
peg$currPos += 5;
|
|
18023
18174
|
} else {
|
|
18024
18175
|
s1 = peg$FAILED;
|
|
18025
18176
|
if (peg$silentFails === 0) {
|
|
18026
|
-
peg$fail(peg$
|
|
18177
|
+
peg$fail(peg$e65);
|
|
18027
18178
|
}
|
|
18028
18179
|
}
|
|
18029
18180
|
if (s1 !== peg$FAILED) {
|
|
@@ -18084,7 +18235,7 @@ function peg$parse(input, options) {
|
|
|
18084
18235
|
s3 = peg$parseBlockTag();
|
|
18085
18236
|
if (s3 !== peg$FAILED) {
|
|
18086
18237
|
peg$savedPos = s0;
|
|
18087
|
-
s0 = peg$
|
|
18238
|
+
s0 = peg$f82(s2);
|
|
18088
18239
|
} else {
|
|
18089
18240
|
peg$currPos = s0;
|
|
18090
18241
|
s0 = peg$FAILED;
|
|
@@ -18095,20 +18246,20 @@ function peg$parse(input, options) {
|
|
|
18095
18246
|
}
|
|
18096
18247
|
if (s0 === peg$FAILED) {
|
|
18097
18248
|
s0 = peg$currPos;
|
|
18098
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
18099
|
-
s1 = peg$
|
|
18249
|
+
if (input.substr(peg$currPos, 5) === peg$c62) {
|
|
18250
|
+
s1 = peg$c62;
|
|
18100
18251
|
peg$currPos += 5;
|
|
18101
18252
|
} else {
|
|
18102
18253
|
s1 = peg$FAILED;
|
|
18103
18254
|
if (peg$silentFails === 0) {
|
|
18104
|
-
peg$fail(peg$
|
|
18255
|
+
peg$fail(peg$e66);
|
|
18105
18256
|
}
|
|
18106
18257
|
}
|
|
18107
18258
|
if (s1 !== peg$FAILED) {
|
|
18108
18259
|
s2 = peg$parseBlockTag();
|
|
18109
18260
|
if (s2 !== peg$FAILED) {
|
|
18110
18261
|
peg$savedPos = s0;
|
|
18111
|
-
s0 = peg$
|
|
18262
|
+
s0 = peg$f83();
|
|
18112
18263
|
} else {
|
|
18113
18264
|
peg$currPos = s0;
|
|
18114
18265
|
s0 = peg$FAILED;
|
|
@@ -18119,13 +18270,13 @@ function peg$parse(input, options) {
|
|
|
18119
18270
|
}
|
|
18120
18271
|
if (s0 === peg$FAILED) {
|
|
18121
18272
|
s0 = peg$currPos;
|
|
18122
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
18123
|
-
s1 = peg$
|
|
18273
|
+
if (input.substr(peg$currPos, 6) === peg$c63) {
|
|
18274
|
+
s1 = peg$c63;
|
|
18124
18275
|
peg$currPos += 6;
|
|
18125
18276
|
} else {
|
|
18126
18277
|
s1 = peg$FAILED;
|
|
18127
18278
|
if (peg$silentFails === 0) {
|
|
18128
|
-
peg$fail(peg$
|
|
18279
|
+
peg$fail(peg$e67);
|
|
18129
18280
|
}
|
|
18130
18281
|
}
|
|
18131
18282
|
if (s1 !== peg$FAILED) {
|
|
@@ -18186,7 +18337,7 @@ function peg$parse(input, options) {
|
|
|
18186
18337
|
s3 = peg$parseBlockTag();
|
|
18187
18338
|
if (s3 !== peg$FAILED) {
|
|
18188
18339
|
peg$savedPos = s0;
|
|
18189
|
-
s0 = peg$
|
|
18340
|
+
s0 = peg$f84(s2);
|
|
18190
18341
|
} else {
|
|
18191
18342
|
peg$currPos = s0;
|
|
18192
18343
|
s0 = peg$FAILED;
|
|
@@ -18197,25 +18348,25 @@ function peg$parse(input, options) {
|
|
|
18197
18348
|
}
|
|
18198
18349
|
if (s0 === peg$FAILED) {
|
|
18199
18350
|
s0 = peg$currPos;
|
|
18200
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18201
|
-
s1 = peg$
|
|
18351
|
+
if (input.substr(peg$currPos, 9) === peg$c64) {
|
|
18352
|
+
s1 = peg$c64;
|
|
18202
18353
|
peg$currPos += 9;
|
|
18203
18354
|
} else {
|
|
18204
18355
|
s1 = peg$FAILED;
|
|
18205
18356
|
if (peg$silentFails === 0) {
|
|
18206
|
-
peg$fail(peg$
|
|
18357
|
+
peg$fail(peg$e68);
|
|
18207
18358
|
}
|
|
18208
18359
|
}
|
|
18209
18360
|
if (s1 !== peg$FAILED) {
|
|
18210
18361
|
s2 = peg$currPos;
|
|
18211
18362
|
s3 = peg$currPos;
|
|
18212
18363
|
if (input.charCodeAt(peg$currPos) === 80) {
|
|
18213
|
-
s4 = peg$
|
|
18364
|
+
s4 = peg$c65;
|
|
18214
18365
|
peg$currPos++;
|
|
18215
18366
|
} else {
|
|
18216
18367
|
s4 = peg$FAILED;
|
|
18217
18368
|
if (peg$silentFails === 0) {
|
|
18218
|
-
peg$fail(peg$
|
|
18369
|
+
peg$fail(peg$e69);
|
|
18219
18370
|
}
|
|
18220
18371
|
}
|
|
18221
18372
|
if (s4 !== peg$FAILED) {
|
|
@@ -18288,7 +18439,7 @@ function peg$parse(input, options) {
|
|
|
18288
18439
|
s3 = peg$parseBlockTag();
|
|
18289
18440
|
if (s3 !== peg$FAILED) {
|
|
18290
18441
|
peg$savedPos = s0;
|
|
18291
|
-
s0 = peg$
|
|
18442
|
+
s0 = peg$f85(s2);
|
|
18292
18443
|
} else {
|
|
18293
18444
|
peg$currPos = s0;
|
|
18294
18445
|
s0 = peg$FAILED;
|
|
@@ -18303,13 +18454,13 @@ function peg$parse(input, options) {
|
|
|
18303
18454
|
}
|
|
18304
18455
|
if (s0 === peg$FAILED) {
|
|
18305
18456
|
s0 = peg$currPos;
|
|
18306
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
18307
|
-
s1 = peg$
|
|
18457
|
+
if (input.substr(peg$currPos, 6) === peg$c66) {
|
|
18458
|
+
s1 = peg$c66;
|
|
18308
18459
|
peg$currPos += 6;
|
|
18309
18460
|
} else {
|
|
18310
18461
|
s1 = peg$FAILED;
|
|
18311
18462
|
if (peg$silentFails === 0) {
|
|
18312
|
-
peg$fail(peg$
|
|
18463
|
+
peg$fail(peg$e70);
|
|
18313
18464
|
}
|
|
18314
18465
|
}
|
|
18315
18466
|
if (s1 !== peg$FAILED) {
|
|
@@ -18318,7 +18469,7 @@ function peg$parse(input, options) {
|
|
|
18318
18469
|
s3 = peg$parseBlockTag();
|
|
18319
18470
|
if (s3 !== peg$FAILED) {
|
|
18320
18471
|
peg$savedPos = s0;
|
|
18321
|
-
s0 = peg$
|
|
18472
|
+
s0 = peg$f86(s2);
|
|
18322
18473
|
} else {
|
|
18323
18474
|
peg$currPos = s0;
|
|
18324
18475
|
s0 = peg$FAILED;
|
|
@@ -18338,7 +18489,7 @@ function peg$parse(input, options) {
|
|
|
18338
18489
|
s2 = peg$parseBlockTag();
|
|
18339
18490
|
if (s2 !== peg$FAILED) {
|
|
18340
18491
|
peg$savedPos = s0;
|
|
18341
|
-
s0 = peg$
|
|
18492
|
+
s0 = peg$f87(s1);
|
|
18342
18493
|
} else {
|
|
18343
18494
|
peg$currPos = s0;
|
|
18344
18495
|
s0 = peg$FAILED;
|
|
@@ -18416,7 +18567,7 @@ function peg$parse(input, options) {
|
|
|
18416
18567
|
s3 = peg$parseBlockTag();
|
|
18417
18568
|
if (s3 !== peg$FAILED) {
|
|
18418
18569
|
peg$savedPos = s0;
|
|
18419
|
-
s0 = peg$
|
|
18570
|
+
s0 = peg$f88(s2);
|
|
18420
18571
|
} else {
|
|
18421
18572
|
peg$currPos = s0;
|
|
18422
18573
|
s0 = peg$FAILED;
|
|
@@ -18456,13 +18607,13 @@ function peg$parse(input, options) {
|
|
|
18456
18607
|
function peg$parseRef() {
|
|
18457
18608
|
let s0, s1, s2, s3, s4, s5, s6;
|
|
18458
18609
|
s0 = peg$currPos;
|
|
18459
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18460
|
-
s1 = peg$
|
|
18610
|
+
if (input.substr(peg$currPos, 2) === peg$c67) {
|
|
18611
|
+
s1 = peg$c67;
|
|
18461
18612
|
peg$currPos += 2;
|
|
18462
18613
|
} else {
|
|
18463
18614
|
s1 = peg$FAILED;
|
|
18464
18615
|
if (peg$silentFails === 0) {
|
|
18465
|
-
peg$fail(peg$
|
|
18616
|
+
peg$fail(peg$e71);
|
|
18466
18617
|
}
|
|
18467
18618
|
}
|
|
18468
18619
|
if (s1 !== peg$FAILED) {
|
|
@@ -18521,7 +18672,7 @@ function peg$parse(input, options) {
|
|
|
18521
18672
|
}
|
|
18522
18673
|
s2 = input.substring(s2, peg$currPos);
|
|
18523
18674
|
peg$savedPos = s0;
|
|
18524
|
-
s0 = peg$
|
|
18675
|
+
s0 = peg$f89(s2);
|
|
18525
18676
|
} else {
|
|
18526
18677
|
peg$currPos = s0;
|
|
18527
18678
|
s0 = peg$FAILED;
|
|
@@ -18530,303 +18681,303 @@ function peg$parse(input, options) {
|
|
|
18530
18681
|
}
|
|
18531
18682
|
function peg$parseAlternativeStyleTags() {
|
|
18532
18683
|
let s0;
|
|
18533
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
18534
|
-
s0 = peg$
|
|
18684
|
+
if (input.substr(peg$currPos, 4) === peg$c68) {
|
|
18685
|
+
s0 = peg$c68;
|
|
18535
18686
|
peg$currPos += 4;
|
|
18536
18687
|
} else {
|
|
18537
18688
|
s0 = peg$FAILED;
|
|
18538
18689
|
if (peg$silentFails === 0) {
|
|
18539
|
-
peg$fail(peg$
|
|
18690
|
+
peg$fail(peg$e72);
|
|
18540
18691
|
}
|
|
18541
18692
|
}
|
|
18542
18693
|
if (s0 === peg$FAILED) {
|
|
18543
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
18544
|
-
s0 = peg$
|
|
18694
|
+
if (input.substr(peg$currPos, 6) === peg$c69) {
|
|
18695
|
+
s0 = peg$c69;
|
|
18545
18696
|
peg$currPos += 6;
|
|
18546
18697
|
} else {
|
|
18547
18698
|
s0 = peg$FAILED;
|
|
18548
18699
|
if (peg$silentFails === 0) {
|
|
18549
|
-
peg$fail(peg$
|
|
18700
|
+
peg$fail(peg$e73);
|
|
18550
18701
|
}
|
|
18551
18702
|
}
|
|
18552
18703
|
if (s0 === peg$FAILED) {
|
|
18553
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
18554
|
-
s0 = peg$
|
|
18704
|
+
if (input.substr(peg$currPos, 5) === peg$c70) {
|
|
18705
|
+
s0 = peg$c70;
|
|
18555
18706
|
peg$currPos += 5;
|
|
18556
18707
|
} else {
|
|
18557
18708
|
s0 = peg$FAILED;
|
|
18558
18709
|
if (peg$silentFails === 0) {
|
|
18559
|
-
peg$fail(peg$
|
|
18710
|
+
peg$fail(peg$e74);
|
|
18560
18711
|
}
|
|
18561
18712
|
}
|
|
18562
18713
|
if (s0 === peg$FAILED) {
|
|
18563
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18564
|
-
s0 = peg$
|
|
18714
|
+
if (input.substr(peg$currPos, 9) === peg$c71) {
|
|
18715
|
+
s0 = peg$c71;
|
|
18565
18716
|
peg$currPos += 9;
|
|
18566
18717
|
} else {
|
|
18567
18718
|
s0 = peg$FAILED;
|
|
18568
18719
|
if (peg$silentFails === 0) {
|
|
18569
|
-
peg$fail(peg$
|
|
18720
|
+
peg$fail(peg$e75);
|
|
18570
18721
|
}
|
|
18571
18722
|
}
|
|
18572
18723
|
if (s0 === peg$FAILED) {
|
|
18573
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
18574
|
-
s0 = peg$
|
|
18724
|
+
if (input.substr(peg$currPos, 6) === peg$c72) {
|
|
18725
|
+
s0 = peg$c72;
|
|
18575
18726
|
peg$currPos += 6;
|
|
18576
18727
|
} else {
|
|
18577
18728
|
s0 = peg$FAILED;
|
|
18578
18729
|
if (peg$silentFails === 0) {
|
|
18579
|
-
peg$fail(peg$
|
|
18730
|
+
peg$fail(peg$e76);
|
|
18580
18731
|
}
|
|
18581
18732
|
}
|
|
18582
18733
|
if (s0 === peg$FAILED) {
|
|
18583
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18584
|
-
s0 = peg$
|
|
18734
|
+
if (input.substr(peg$currPos, 9) === peg$c73) {
|
|
18735
|
+
s0 = peg$c73;
|
|
18585
18736
|
peg$currPos += 9;
|
|
18586
18737
|
} else {
|
|
18587
18738
|
s0 = peg$FAILED;
|
|
18588
18739
|
if (peg$silentFails === 0) {
|
|
18589
|
-
peg$fail(peg$
|
|
18740
|
+
peg$fail(peg$e77);
|
|
18590
18741
|
}
|
|
18591
18742
|
}
|
|
18592
18743
|
if (s0 === peg$FAILED) {
|
|
18593
|
-
if (input.substr(peg$currPos, 11) === peg$
|
|
18594
|
-
s0 = peg$
|
|
18744
|
+
if (input.substr(peg$currPos, 11) === peg$c74) {
|
|
18745
|
+
s0 = peg$c74;
|
|
18595
18746
|
peg$currPos += 11;
|
|
18596
18747
|
} else {
|
|
18597
18748
|
s0 = peg$FAILED;
|
|
18598
18749
|
if (peg$silentFails === 0) {
|
|
18599
|
-
peg$fail(peg$
|
|
18750
|
+
peg$fail(peg$e78);
|
|
18600
18751
|
}
|
|
18601
18752
|
}
|
|
18602
18753
|
if (s0 === peg$FAILED) {
|
|
18603
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18604
|
-
s0 = peg$
|
|
18754
|
+
if (input.substr(peg$currPos, 3) === peg$c75) {
|
|
18755
|
+
s0 = peg$c75;
|
|
18605
18756
|
peg$currPos += 3;
|
|
18606
18757
|
} else {
|
|
18607
18758
|
s0 = peg$FAILED;
|
|
18608
18759
|
if (peg$silentFails === 0) {
|
|
18609
|
-
peg$fail(peg$
|
|
18760
|
+
peg$fail(peg$e79);
|
|
18610
18761
|
}
|
|
18611
18762
|
}
|
|
18612
18763
|
if (s0 === peg$FAILED) {
|
|
18613
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18614
|
-
s0 = peg$
|
|
18764
|
+
if (input.substr(peg$currPos, 3) === peg$c76) {
|
|
18765
|
+
s0 = peg$c76;
|
|
18615
18766
|
peg$currPos += 3;
|
|
18616
18767
|
} else {
|
|
18617
18768
|
s0 = peg$FAILED;
|
|
18618
18769
|
if (peg$silentFails === 0) {
|
|
18619
|
-
peg$fail(peg$
|
|
18770
|
+
peg$fail(peg$e80);
|
|
18620
18771
|
}
|
|
18621
18772
|
}
|
|
18622
18773
|
if (s0 === peg$FAILED) {
|
|
18623
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18624
|
-
s0 = peg$
|
|
18774
|
+
if (input.substr(peg$currPos, 9) === peg$c77) {
|
|
18775
|
+
s0 = peg$c77;
|
|
18625
18776
|
peg$currPos += 9;
|
|
18626
18777
|
} else {
|
|
18627
18778
|
s0 = peg$FAILED;
|
|
18628
18779
|
if (peg$silentFails === 0) {
|
|
18629
|
-
peg$fail(peg$
|
|
18780
|
+
peg$fail(peg$e81);
|
|
18630
18781
|
}
|
|
18631
18782
|
}
|
|
18632
18783
|
if (s0 === peg$FAILED) {
|
|
18633
|
-
if (input.substr(peg$currPos, 15) === peg$
|
|
18634
|
-
s0 = peg$
|
|
18784
|
+
if (input.substr(peg$currPos, 15) === peg$c78) {
|
|
18785
|
+
s0 = peg$c78;
|
|
18635
18786
|
peg$currPos += 15;
|
|
18636
18787
|
} else {
|
|
18637
18788
|
s0 = peg$FAILED;
|
|
18638
18789
|
if (peg$silentFails === 0) {
|
|
18639
|
-
peg$fail(peg$
|
|
18790
|
+
peg$fail(peg$e82);
|
|
18640
18791
|
}
|
|
18641
18792
|
}
|
|
18642
18793
|
if (s0 === peg$FAILED) {
|
|
18643
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
18644
|
-
s0 = peg$
|
|
18794
|
+
if (input.substr(peg$currPos, 6) === peg$c79) {
|
|
18795
|
+
s0 = peg$c79;
|
|
18645
18796
|
peg$currPos += 6;
|
|
18646
18797
|
} else {
|
|
18647
18798
|
s0 = peg$FAILED;
|
|
18648
18799
|
if (peg$silentFails === 0) {
|
|
18649
|
-
peg$fail(peg$
|
|
18800
|
+
peg$fail(peg$e83);
|
|
18650
18801
|
}
|
|
18651
18802
|
}
|
|
18652
18803
|
if (s0 === peg$FAILED) {
|
|
18653
|
-
if (input.substr(peg$currPos, 13) === peg$
|
|
18654
|
-
s0 = peg$
|
|
18804
|
+
if (input.substr(peg$currPos, 13) === peg$c80) {
|
|
18805
|
+
s0 = peg$c80;
|
|
18655
18806
|
peg$currPos += 13;
|
|
18656
18807
|
} else {
|
|
18657
18808
|
s0 = peg$FAILED;
|
|
18658
18809
|
if (peg$silentFails === 0) {
|
|
18659
|
-
peg$fail(peg$
|
|
18810
|
+
peg$fail(peg$e84);
|
|
18660
18811
|
}
|
|
18661
18812
|
}
|
|
18662
18813
|
if (s0 === peg$FAILED) {
|
|
18663
|
-
if (input.substr(peg$currPos, 16) === peg$
|
|
18664
|
-
s0 = peg$
|
|
18814
|
+
if (input.substr(peg$currPos, 16) === peg$c81) {
|
|
18815
|
+
s0 = peg$c81;
|
|
18665
18816
|
peg$currPos += 16;
|
|
18666
18817
|
} else {
|
|
18667
18818
|
s0 = peg$FAILED;
|
|
18668
18819
|
if (peg$silentFails === 0) {
|
|
18669
|
-
peg$fail(peg$
|
|
18820
|
+
peg$fail(peg$e85);
|
|
18670
18821
|
}
|
|
18671
18822
|
}
|
|
18672
18823
|
if (s0 === peg$FAILED) {
|
|
18673
|
-
if (input.substr(peg$currPos, 16) === peg$
|
|
18674
|
-
s0 = peg$
|
|
18824
|
+
if (input.substr(peg$currPos, 16) === peg$c82) {
|
|
18825
|
+
s0 = peg$c82;
|
|
18675
18826
|
peg$currPos += 16;
|
|
18676
18827
|
} else {
|
|
18677
18828
|
s0 = peg$FAILED;
|
|
18678
18829
|
if (peg$silentFails === 0) {
|
|
18679
|
-
peg$fail(peg$
|
|
18830
|
+
peg$fail(peg$e86);
|
|
18680
18831
|
}
|
|
18681
18832
|
}
|
|
18682
18833
|
if (s0 === peg$FAILED) {
|
|
18683
|
-
if (input.substr(peg$currPos, 15) === peg$
|
|
18684
|
-
s0 = peg$
|
|
18834
|
+
if (input.substr(peg$currPos, 15) === peg$c83) {
|
|
18835
|
+
s0 = peg$c83;
|
|
18685
18836
|
peg$currPos += 15;
|
|
18686
18837
|
} else {
|
|
18687
18838
|
s0 = peg$FAILED;
|
|
18688
18839
|
if (peg$silentFails === 0) {
|
|
18689
|
-
peg$fail(peg$
|
|
18840
|
+
peg$fail(peg$e87);
|
|
18690
18841
|
}
|
|
18691
18842
|
}
|
|
18692
18843
|
if (s0 === peg$FAILED) {
|
|
18693
|
-
if (input.substr(peg$currPos, 14) === peg$
|
|
18694
|
-
s0 = peg$
|
|
18844
|
+
if (input.substr(peg$currPos, 14) === peg$c84) {
|
|
18845
|
+
s0 = peg$c84;
|
|
18695
18846
|
peg$currPos += 14;
|
|
18696
18847
|
} else {
|
|
18697
18848
|
s0 = peg$FAILED;
|
|
18698
18849
|
if (peg$silentFails === 0) {
|
|
18699
|
-
peg$fail(peg$
|
|
18850
|
+
peg$fail(peg$e88);
|
|
18700
18851
|
}
|
|
18701
18852
|
}
|
|
18702
18853
|
if (s0 === peg$FAILED) {
|
|
18703
|
-
if (input.substr(peg$currPos, 16) === peg$
|
|
18704
|
-
s0 = peg$
|
|
18854
|
+
if (input.substr(peg$currPos, 16) === peg$c85) {
|
|
18855
|
+
s0 = peg$c85;
|
|
18705
18856
|
peg$currPos += 16;
|
|
18706
18857
|
} else {
|
|
18707
18858
|
s0 = peg$FAILED;
|
|
18708
18859
|
if (peg$silentFails === 0) {
|
|
18709
|
-
peg$fail(peg$
|
|
18860
|
+
peg$fail(peg$e89);
|
|
18710
18861
|
}
|
|
18711
18862
|
}
|
|
18712
18863
|
if (s0 === peg$FAILED) {
|
|
18713
|
-
if (input.substr(peg$currPos, 14) === peg$
|
|
18714
|
-
s0 = peg$
|
|
18864
|
+
if (input.substr(peg$currPos, 14) === peg$c86) {
|
|
18865
|
+
s0 = peg$c86;
|
|
18715
18866
|
peg$currPos += 14;
|
|
18716
18867
|
} else {
|
|
18717
18868
|
s0 = peg$FAILED;
|
|
18718
18869
|
if (peg$silentFails === 0) {
|
|
18719
|
-
peg$fail(peg$
|
|
18870
|
+
peg$fail(peg$e90);
|
|
18720
18871
|
}
|
|
18721
18872
|
}
|
|
18722
18873
|
if (s0 === peg$FAILED) {
|
|
18723
|
-
if (input.substr(peg$currPos, 15) === peg$
|
|
18724
|
-
s0 = peg$
|
|
18874
|
+
if (input.substr(peg$currPos, 15) === peg$c87) {
|
|
18875
|
+
s0 = peg$c87;
|
|
18725
18876
|
peg$currPos += 15;
|
|
18726
18877
|
} else {
|
|
18727
18878
|
s0 = peg$FAILED;
|
|
18728
18879
|
if (peg$silentFails === 0) {
|
|
18729
|
-
peg$fail(peg$
|
|
18880
|
+
peg$fail(peg$e91);
|
|
18730
18881
|
}
|
|
18731
18882
|
}
|
|
18732
18883
|
if (s0 === peg$FAILED) {
|
|
18733
|
-
if (input.substr(peg$currPos, 15) === peg$
|
|
18734
|
-
s0 = peg$
|
|
18884
|
+
if (input.substr(peg$currPos, 15) === peg$c88) {
|
|
18885
|
+
s0 = peg$c88;
|
|
18735
18886
|
peg$currPos += 15;
|
|
18736
18887
|
} else {
|
|
18737
18888
|
s0 = peg$FAILED;
|
|
18738
18889
|
if (peg$silentFails === 0) {
|
|
18739
|
-
peg$fail(peg$
|
|
18890
|
+
peg$fail(peg$e92);
|
|
18740
18891
|
}
|
|
18741
18892
|
}
|
|
18742
18893
|
if (s0 === peg$FAILED) {
|
|
18743
|
-
if (input.substr(peg$currPos, 15) === peg$
|
|
18744
|
-
s0 = peg$
|
|
18894
|
+
if (input.substr(peg$currPos, 15) === peg$c89) {
|
|
18895
|
+
s0 = peg$c89;
|
|
18745
18896
|
peg$currPos += 15;
|
|
18746
18897
|
} else {
|
|
18747
18898
|
s0 = peg$FAILED;
|
|
18748
18899
|
if (peg$silentFails === 0) {
|
|
18749
|
-
peg$fail(peg$
|
|
18900
|
+
peg$fail(peg$e93);
|
|
18750
18901
|
}
|
|
18751
18902
|
}
|
|
18752
18903
|
if (s0 === peg$FAILED) {
|
|
18753
|
-
if (input.substr(peg$currPos, 14) === peg$
|
|
18754
|
-
s0 = peg$
|
|
18904
|
+
if (input.substr(peg$currPos, 14) === peg$c90) {
|
|
18905
|
+
s0 = peg$c90;
|
|
18755
18906
|
peg$currPos += 14;
|
|
18756
18907
|
} else {
|
|
18757
18908
|
s0 = peg$FAILED;
|
|
18758
18909
|
if (peg$silentFails === 0) {
|
|
18759
|
-
peg$fail(peg$
|
|
18910
|
+
peg$fail(peg$e94);
|
|
18760
18911
|
}
|
|
18761
18912
|
}
|
|
18762
18913
|
if (s0 === peg$FAILED) {
|
|
18763
|
-
if (input.substr(peg$currPos, 10) === peg$
|
|
18764
|
-
s0 = peg$
|
|
18914
|
+
if (input.substr(peg$currPos, 10) === peg$c91) {
|
|
18915
|
+
s0 = peg$c91;
|
|
18765
18916
|
peg$currPos += 10;
|
|
18766
18917
|
} else {
|
|
18767
18918
|
s0 = peg$FAILED;
|
|
18768
18919
|
if (peg$silentFails === 0) {
|
|
18769
|
-
peg$fail(peg$
|
|
18920
|
+
peg$fail(peg$e95);
|
|
18770
18921
|
}
|
|
18771
18922
|
}
|
|
18772
18923
|
if (s0 === peg$FAILED) {
|
|
18773
|
-
if (input.substr(peg$currPos, 13) === peg$
|
|
18774
|
-
s0 = peg$
|
|
18924
|
+
if (input.substr(peg$currPos, 13) === peg$c92) {
|
|
18925
|
+
s0 = peg$c92;
|
|
18775
18926
|
peg$currPos += 13;
|
|
18776
18927
|
} else {
|
|
18777
18928
|
s0 = peg$FAILED;
|
|
18778
18929
|
if (peg$silentFails === 0) {
|
|
18779
|
-
peg$fail(peg$
|
|
18930
|
+
peg$fail(peg$e96);
|
|
18780
18931
|
}
|
|
18781
18932
|
}
|
|
18782
18933
|
if (s0 === peg$FAILED) {
|
|
18783
|
-
if (input.substr(peg$currPos, 19) === peg$
|
|
18784
|
-
s0 = peg$
|
|
18934
|
+
if (input.substr(peg$currPos, 19) === peg$c93) {
|
|
18935
|
+
s0 = peg$c93;
|
|
18785
18936
|
peg$currPos += 19;
|
|
18786
18937
|
} else {
|
|
18787
18938
|
s0 = peg$FAILED;
|
|
18788
18939
|
if (peg$silentFails === 0) {
|
|
18789
|
-
peg$fail(peg$
|
|
18940
|
+
peg$fail(peg$e97);
|
|
18790
18941
|
}
|
|
18791
18942
|
}
|
|
18792
18943
|
if (s0 === peg$FAILED) {
|
|
18793
|
-
if (input.substr(peg$currPos, 10) === peg$
|
|
18794
|
-
s0 = peg$
|
|
18944
|
+
if (input.substr(peg$currPos, 10) === peg$c94) {
|
|
18945
|
+
s0 = peg$c94;
|
|
18795
18946
|
peg$currPos += 10;
|
|
18796
18947
|
} else {
|
|
18797
18948
|
s0 = peg$FAILED;
|
|
18798
18949
|
if (peg$silentFails === 0) {
|
|
18799
|
-
peg$fail(peg$
|
|
18950
|
+
peg$fail(peg$e98);
|
|
18800
18951
|
}
|
|
18801
18952
|
}
|
|
18802
18953
|
if (s0 === peg$FAILED) {
|
|
18803
|
-
if (input.substr(peg$currPos, 10) === peg$
|
|
18804
|
-
s0 = peg$
|
|
18954
|
+
if (input.substr(peg$currPos, 10) === peg$c95) {
|
|
18955
|
+
s0 = peg$c95;
|
|
18805
18956
|
peg$currPos += 10;
|
|
18806
18957
|
} else {
|
|
18807
18958
|
s0 = peg$FAILED;
|
|
18808
18959
|
if (peg$silentFails === 0) {
|
|
18809
|
-
peg$fail(peg$
|
|
18960
|
+
peg$fail(peg$e99);
|
|
18810
18961
|
}
|
|
18811
18962
|
}
|
|
18812
18963
|
if (s0 === peg$FAILED) {
|
|
18813
|
-
if (input.substr(peg$currPos, 13) === peg$
|
|
18814
|
-
s0 = peg$
|
|
18964
|
+
if (input.substr(peg$currPos, 13) === peg$c96) {
|
|
18965
|
+
s0 = peg$c96;
|
|
18815
18966
|
peg$currPos += 13;
|
|
18816
18967
|
} else {
|
|
18817
18968
|
s0 = peg$FAILED;
|
|
18818
18969
|
if (peg$silentFails === 0) {
|
|
18819
|
-
peg$fail(peg$
|
|
18970
|
+
peg$fail(peg$e100);
|
|
18820
18971
|
}
|
|
18821
18972
|
}
|
|
18822
18973
|
if (s0 === peg$FAILED) {
|
|
18823
|
-
if (input.substr(peg$currPos, 11) === peg$
|
|
18824
|
-
s0 = peg$
|
|
18974
|
+
if (input.substr(peg$currPos, 11) === peg$c97) {
|
|
18975
|
+
s0 = peg$c97;
|
|
18825
18976
|
peg$currPos += 11;
|
|
18826
18977
|
} else {
|
|
18827
18978
|
s0 = peg$FAILED;
|
|
18828
18979
|
if (peg$silentFails === 0) {
|
|
18829
|
-
peg$fail(peg$
|
|
18980
|
+
peg$fail(peg$e101);
|
|
18830
18981
|
}
|
|
18831
18982
|
}
|
|
18832
18983
|
}
|
|
@@ -18862,233 +19013,233 @@ function peg$parse(input, options) {
|
|
|
18862
19013
|
}
|
|
18863
19014
|
function peg$parseColor() {
|
|
18864
19015
|
let s0;
|
|
18865
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
18866
|
-
s0 = peg$
|
|
19016
|
+
if (input.substr(peg$currPos, 4) === peg$c98) {
|
|
19017
|
+
s0 = peg$c98;
|
|
18867
19018
|
peg$currPos += 4;
|
|
18868
19019
|
} else {
|
|
18869
19020
|
s0 = peg$FAILED;
|
|
18870
19021
|
if (peg$silentFails === 0) {
|
|
18871
|
-
peg$fail(peg$
|
|
19022
|
+
peg$fail(peg$e102);
|
|
18872
19023
|
}
|
|
18873
19024
|
}
|
|
18874
19025
|
if (s0 === peg$FAILED) {
|
|
18875
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
18876
|
-
s0 = peg$
|
|
19026
|
+
if (input.substr(peg$currPos, 5) === peg$c99) {
|
|
19027
|
+
s0 = peg$c99;
|
|
18877
19028
|
peg$currPos += 5;
|
|
18878
19029
|
} else {
|
|
18879
19030
|
s0 = peg$FAILED;
|
|
18880
19031
|
if (peg$silentFails === 0) {
|
|
18881
|
-
peg$fail(peg$
|
|
19032
|
+
peg$fail(peg$e103);
|
|
18882
19033
|
}
|
|
18883
19034
|
}
|
|
18884
19035
|
if (s0 === peg$FAILED) {
|
|
18885
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
18886
|
-
s0 = peg$
|
|
19036
|
+
if (input.substr(peg$currPos, 4) === peg$c100) {
|
|
19037
|
+
s0 = peg$c100;
|
|
18887
19038
|
peg$currPos += 4;
|
|
18888
19039
|
} else {
|
|
18889
19040
|
s0 = peg$FAILED;
|
|
18890
19041
|
if (peg$silentFails === 0) {
|
|
18891
|
-
peg$fail(peg$
|
|
19042
|
+
peg$fail(peg$e104);
|
|
18892
19043
|
}
|
|
18893
19044
|
}
|
|
18894
19045
|
if (s0 === peg$FAILED) {
|
|
18895
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
18896
|
-
s0 = peg$
|
|
19046
|
+
if (input.substr(peg$currPos, 5) === peg$c101) {
|
|
19047
|
+
s0 = peg$c101;
|
|
18897
19048
|
peg$currPos += 5;
|
|
18898
19049
|
} else {
|
|
18899
19050
|
s0 = peg$FAILED;
|
|
18900
19051
|
if (peg$silentFails === 0) {
|
|
18901
|
-
peg$fail(peg$
|
|
19052
|
+
peg$fail(peg$e105);
|
|
18902
19053
|
}
|
|
18903
19054
|
}
|
|
18904
19055
|
if (s0 === peg$FAILED) {
|
|
18905
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
18906
|
-
s0 = peg$
|
|
19056
|
+
if (input.substr(peg$currPos, 7) === peg$c102) {
|
|
19057
|
+
s0 = peg$c102;
|
|
18907
19058
|
peg$currPos += 7;
|
|
18908
19059
|
} else {
|
|
18909
19060
|
s0 = peg$FAILED;
|
|
18910
19061
|
if (peg$silentFails === 0) {
|
|
18911
|
-
peg$fail(peg$
|
|
19062
|
+
peg$fail(peg$e106);
|
|
18912
19063
|
}
|
|
18913
19064
|
}
|
|
18914
19065
|
if (s0 === peg$FAILED) {
|
|
18915
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18916
|
-
s0 = peg$
|
|
19066
|
+
if (input.substr(peg$currPos, 9) === peg$c103) {
|
|
19067
|
+
s0 = peg$c103;
|
|
18917
19068
|
peg$currPos += 9;
|
|
18918
19069
|
} else {
|
|
18919
19070
|
s0 = peg$FAILED;
|
|
18920
19071
|
if (peg$silentFails === 0) {
|
|
18921
|
-
peg$fail(peg$
|
|
19072
|
+
peg$fail(peg$e107);
|
|
18922
19073
|
}
|
|
18923
19074
|
}
|
|
18924
19075
|
if (s0 === peg$FAILED) {
|
|
18925
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
18926
|
-
s0 = peg$
|
|
19076
|
+
if (input.substr(peg$currPos, 4) === peg$c104) {
|
|
19077
|
+
s0 = peg$c104;
|
|
18927
19078
|
peg$currPos += 4;
|
|
18928
19079
|
} else {
|
|
18929
19080
|
s0 = peg$FAILED;
|
|
18930
19081
|
if (peg$silentFails === 0) {
|
|
18931
|
-
peg$fail(peg$
|
|
19082
|
+
peg$fail(peg$e108);
|
|
18932
19083
|
}
|
|
18933
19084
|
}
|
|
18934
19085
|
if (s0 === peg$FAILED) {
|
|
18935
|
-
if (input.substr(peg$currPos, 8) === peg$
|
|
18936
|
-
s0 = peg$
|
|
19086
|
+
if (input.substr(peg$currPos, 8) === peg$c105) {
|
|
19087
|
+
s0 = peg$c105;
|
|
18937
19088
|
peg$currPos += 8;
|
|
18938
19089
|
} else {
|
|
18939
19090
|
s0 = peg$FAILED;
|
|
18940
19091
|
if (peg$silentFails === 0) {
|
|
18941
|
-
peg$fail(peg$
|
|
19092
|
+
peg$fail(peg$e109);
|
|
18942
19093
|
}
|
|
18943
19094
|
}
|
|
18944
19095
|
if (s0 === peg$FAILED) {
|
|
18945
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
18946
|
-
s0 = peg$
|
|
19096
|
+
if (input.substr(peg$currPos, 5) === peg$c106) {
|
|
19097
|
+
s0 = peg$c106;
|
|
18947
19098
|
peg$currPos += 5;
|
|
18948
19099
|
} else {
|
|
18949
19100
|
s0 = peg$FAILED;
|
|
18950
19101
|
if (peg$silentFails === 0) {
|
|
18951
|
-
peg$fail(peg$
|
|
19102
|
+
peg$fail(peg$e110);
|
|
18952
19103
|
}
|
|
18953
19104
|
}
|
|
18954
19105
|
if (s0 === peg$FAILED) {
|
|
18955
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
18956
|
-
s0 = peg$
|
|
19106
|
+
if (input.substr(peg$currPos, 4) === peg$c107) {
|
|
19107
|
+
s0 = peg$c107;
|
|
18957
19108
|
peg$currPos += 4;
|
|
18958
19109
|
} else {
|
|
18959
19110
|
s0 = peg$FAILED;
|
|
18960
19111
|
if (peg$silentFails === 0) {
|
|
18961
|
-
peg$fail(peg$
|
|
19112
|
+
peg$fail(peg$e111);
|
|
18962
19113
|
}
|
|
18963
19114
|
}
|
|
18964
19115
|
if (s0 === peg$FAILED) {
|
|
18965
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
18966
|
-
s0 = peg$
|
|
19116
|
+
if (input.substr(peg$currPos, 7) === peg$c108) {
|
|
19117
|
+
s0 = peg$c108;
|
|
18967
19118
|
peg$currPos += 7;
|
|
18968
19119
|
} else {
|
|
18969
19120
|
s0 = peg$FAILED;
|
|
18970
19121
|
if (peg$silentFails === 0) {
|
|
18971
|
-
peg$fail(peg$
|
|
19122
|
+
peg$fail(peg$e112);
|
|
18972
19123
|
}
|
|
18973
19124
|
}
|
|
18974
19125
|
if (s0 === peg$FAILED) {
|
|
18975
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
18976
|
-
s0 = peg$
|
|
19126
|
+
if (input.substr(peg$currPos, 6) === peg$c109) {
|
|
19127
|
+
s0 = peg$c109;
|
|
18977
19128
|
peg$currPos += 6;
|
|
18978
19129
|
} else {
|
|
18979
19130
|
s0 = peg$FAILED;
|
|
18980
19131
|
if (peg$silentFails === 0) {
|
|
18981
|
-
peg$fail(peg$
|
|
19132
|
+
peg$fail(peg$e113);
|
|
18982
19133
|
}
|
|
18983
19134
|
}
|
|
18984
19135
|
if (s0 === peg$FAILED) {
|
|
18985
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
18986
|
-
s0 = peg$
|
|
19136
|
+
if (input.substr(peg$currPos, 4) === peg$c110) {
|
|
19137
|
+
s0 = peg$c110;
|
|
18987
19138
|
peg$currPos += 4;
|
|
18988
19139
|
} else {
|
|
18989
19140
|
s0 = peg$FAILED;
|
|
18990
19141
|
if (peg$silentFails === 0) {
|
|
18991
|
-
peg$fail(peg$
|
|
19142
|
+
peg$fail(peg$e114);
|
|
18992
19143
|
}
|
|
18993
19144
|
}
|
|
18994
19145
|
if (s0 === peg$FAILED) {
|
|
18995
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
18996
|
-
s0 = peg$
|
|
19146
|
+
if (input.substr(peg$currPos, 5) === peg$c111) {
|
|
19147
|
+
s0 = peg$c111;
|
|
18997
19148
|
peg$currPos += 5;
|
|
18998
19149
|
} else {
|
|
18999
19150
|
s0 = peg$FAILED;
|
|
19000
19151
|
if (peg$silentFails === 0) {
|
|
19001
|
-
peg$fail(peg$
|
|
19152
|
+
peg$fail(peg$e115);
|
|
19002
19153
|
}
|
|
19003
19154
|
}
|
|
19004
19155
|
if (s0 === peg$FAILED) {
|
|
19005
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
19006
|
-
s0 = peg$
|
|
19156
|
+
if (input.substr(peg$currPos, 6) === peg$c112) {
|
|
19157
|
+
s0 = peg$c112;
|
|
19007
19158
|
peg$currPos += 6;
|
|
19008
19159
|
} else {
|
|
19009
19160
|
s0 = peg$FAILED;
|
|
19010
19161
|
if (peg$silentFails === 0) {
|
|
19011
|
-
peg$fail(peg$
|
|
19162
|
+
peg$fail(peg$e116);
|
|
19012
19163
|
}
|
|
19013
19164
|
}
|
|
19014
19165
|
if (s0 === peg$FAILED) {
|
|
19015
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
19016
|
-
s0 = peg$
|
|
19166
|
+
if (input.substr(peg$currPos, 4) === peg$c113) {
|
|
19167
|
+
s0 = peg$c113;
|
|
19017
19168
|
peg$currPos += 4;
|
|
19018
19169
|
} else {
|
|
19019
19170
|
s0 = peg$FAILED;
|
|
19020
19171
|
if (peg$silentFails === 0) {
|
|
19021
|
-
peg$fail(peg$
|
|
19172
|
+
peg$fail(peg$e117);
|
|
19022
19173
|
}
|
|
19023
19174
|
}
|
|
19024
19175
|
if (s0 === peg$FAILED) {
|
|
19025
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
19026
|
-
s0 = peg$
|
|
19176
|
+
if (input.substr(peg$currPos, 6) === peg$c114) {
|
|
19177
|
+
s0 = peg$c114;
|
|
19027
19178
|
peg$currPos += 6;
|
|
19028
19179
|
} else {
|
|
19029
19180
|
s0 = peg$FAILED;
|
|
19030
19181
|
if (peg$silentFails === 0) {
|
|
19031
|
-
peg$fail(peg$
|
|
19182
|
+
peg$fail(peg$e118);
|
|
19032
19183
|
}
|
|
19033
19184
|
}
|
|
19034
19185
|
if (s0 === peg$FAILED) {
|
|
19035
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
19036
|
-
s0 = peg$
|
|
19186
|
+
if (input.substr(peg$currPos, 3) === peg$c115) {
|
|
19187
|
+
s0 = peg$c115;
|
|
19037
19188
|
peg$currPos += 3;
|
|
19038
19189
|
} else {
|
|
19039
19190
|
s0 = peg$FAILED;
|
|
19040
19191
|
if (peg$silentFails === 0) {
|
|
19041
|
-
peg$fail(peg$
|
|
19192
|
+
peg$fail(peg$e119);
|
|
19042
19193
|
}
|
|
19043
19194
|
}
|
|
19044
19195
|
if (s0 === peg$FAILED) {
|
|
19045
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
19046
|
-
s0 = peg$
|
|
19196
|
+
if (input.substr(peg$currPos, 6) === peg$c116) {
|
|
19197
|
+
s0 = peg$c116;
|
|
19047
19198
|
peg$currPos += 6;
|
|
19048
19199
|
} else {
|
|
19049
19200
|
s0 = peg$FAILED;
|
|
19050
19201
|
if (peg$silentFails === 0) {
|
|
19051
|
-
peg$fail(peg$
|
|
19202
|
+
peg$fail(peg$e120);
|
|
19052
19203
|
}
|
|
19053
19204
|
}
|
|
19054
19205
|
if (s0 === peg$FAILED) {
|
|
19055
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
19056
|
-
s0 = peg$
|
|
19206
|
+
if (input.substr(peg$currPos, 4) === peg$c117) {
|
|
19207
|
+
s0 = peg$c117;
|
|
19057
19208
|
peg$currPos += 4;
|
|
19058
19209
|
} else {
|
|
19059
19210
|
s0 = peg$FAILED;
|
|
19060
19211
|
if (peg$silentFails === 0) {
|
|
19061
|
-
peg$fail(peg$
|
|
19212
|
+
peg$fail(peg$e121);
|
|
19062
19213
|
}
|
|
19063
19214
|
}
|
|
19064
19215
|
if (s0 === peg$FAILED) {
|
|
19065
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
19066
|
-
s0 = peg$
|
|
19216
|
+
if (input.substr(peg$currPos, 6) === peg$c118) {
|
|
19217
|
+
s0 = peg$c118;
|
|
19067
19218
|
peg$currPos += 6;
|
|
19068
19219
|
} else {
|
|
19069
19220
|
s0 = peg$FAILED;
|
|
19070
19221
|
if (peg$silentFails === 0) {
|
|
19071
|
-
peg$fail(peg$
|
|
19222
|
+
peg$fail(peg$e122);
|
|
19072
19223
|
}
|
|
19073
19224
|
}
|
|
19074
19225
|
if (s0 === peg$FAILED) {
|
|
19075
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
19076
|
-
s0 = peg$
|
|
19226
|
+
if (input.substr(peg$currPos, 5) === peg$c119) {
|
|
19227
|
+
s0 = peg$c119;
|
|
19077
19228
|
peg$currPos += 5;
|
|
19078
19229
|
} else {
|
|
19079
19230
|
s0 = peg$FAILED;
|
|
19080
19231
|
if (peg$silentFails === 0) {
|
|
19081
|
-
peg$fail(peg$
|
|
19232
|
+
peg$fail(peg$e123);
|
|
19082
19233
|
}
|
|
19083
19234
|
}
|
|
19084
19235
|
if (s0 === peg$FAILED) {
|
|
19085
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
19086
|
-
s0 = peg$
|
|
19236
|
+
if (input.substr(peg$currPos, 6) === peg$c120) {
|
|
19237
|
+
s0 = peg$c120;
|
|
19087
19238
|
peg$currPos += 6;
|
|
19088
19239
|
} else {
|
|
19089
19240
|
s0 = peg$FAILED;
|
|
19090
19241
|
if (peg$silentFails === 0) {
|
|
19091
|
-
peg$fail(peg$
|
|
19242
|
+
peg$fail(peg$e124);
|
|
19092
19243
|
}
|
|
19093
19244
|
}
|
|
19094
19245
|
}
|
|
@@ -19121,7 +19272,7 @@ function peg$parse(input, options) {
|
|
|
19121
19272
|
s0 = peg$currPos;
|
|
19122
19273
|
s1 = peg$parsebitmarkMinusMinusString();
|
|
19123
19274
|
peg$savedPos = s0;
|
|
19124
|
-
s1 = peg$
|
|
19275
|
+
s1 = peg$f90(s1);
|
|
19125
19276
|
s0 = s1;
|
|
19126
19277
|
peg$silentFails--;
|
|
19127
19278
|
return s0;
|
|
@@ -19147,7 +19298,7 @@ function peg$parse(input, options) {
|
|
|
19147
19298
|
}
|
|
19148
19299
|
}
|
|
19149
19300
|
peg$savedPos = s0;
|
|
19150
|
-
s0 = peg$
|
|
19301
|
+
s0 = peg$f91(s1, s2);
|
|
19151
19302
|
peg$silentFails--;
|
|
19152
19303
|
return s0;
|
|
19153
19304
|
}
|
|
@@ -19157,7 +19308,7 @@ function peg$parse(input, options) {
|
|
|
19157
19308
|
s1 = peg$parseNL();
|
|
19158
19309
|
if (s1 !== peg$FAILED) {
|
|
19159
19310
|
peg$savedPos = s0;
|
|
19160
|
-
s1 = peg$
|
|
19311
|
+
s1 = peg$f92();
|
|
19161
19312
|
}
|
|
19162
19313
|
s0 = s1;
|
|
19163
19314
|
if (s0 === peg$FAILED) {
|
|
@@ -19286,7 +19437,7 @@ function peg$parse(input, options) {
|
|
|
19286
19437
|
}
|
|
19287
19438
|
if (s1 !== peg$FAILED) {
|
|
19288
19439
|
peg$savedPos = s0;
|
|
19289
|
-
s1 = peg$
|
|
19440
|
+
s1 = peg$f93(s1);
|
|
19290
19441
|
}
|
|
19291
19442
|
s0 = s1;
|
|
19292
19443
|
}
|
|
@@ -19295,12 +19446,12 @@ function peg$parse(input, options) {
|
|
|
19295
19446
|
function peg$parseBoldHalfTag() {
|
|
19296
19447
|
let s0;
|
|
19297
19448
|
if (input.charCodeAt(peg$currPos) === 42) {
|
|
19298
|
-
s0 = peg$
|
|
19449
|
+
s0 = peg$c121;
|
|
19299
19450
|
peg$currPos++;
|
|
19300
19451
|
} else {
|
|
19301
19452
|
s0 = peg$FAILED;
|
|
19302
19453
|
if (peg$silentFails === 0) {
|
|
19303
|
-
peg$fail(peg$
|
|
19454
|
+
peg$fail(peg$e125);
|
|
19304
19455
|
}
|
|
19305
19456
|
}
|
|
19306
19457
|
return s0;
|
|
@@ -19308,12 +19459,12 @@ function peg$parse(input, options) {
|
|
|
19308
19459
|
function peg$parseItalicHalfTag() {
|
|
19309
19460
|
let s0;
|
|
19310
19461
|
if (input.charCodeAt(peg$currPos) === 95) {
|
|
19311
|
-
s0 = peg$
|
|
19462
|
+
s0 = peg$c122;
|
|
19312
19463
|
peg$currPos++;
|
|
19313
19464
|
} else {
|
|
19314
19465
|
s0 = peg$FAILED;
|
|
19315
19466
|
if (peg$silentFails === 0) {
|
|
19316
|
-
peg$fail(peg$
|
|
19467
|
+
peg$fail(peg$e126);
|
|
19317
19468
|
}
|
|
19318
19469
|
}
|
|
19319
19470
|
return s0;
|
|
@@ -19321,12 +19472,12 @@ function peg$parse(input, options) {
|
|
|
19321
19472
|
function peg$parseLightHalfTag() {
|
|
19322
19473
|
let s0;
|
|
19323
19474
|
if (input.charCodeAt(peg$currPos) === 96) {
|
|
19324
|
-
s0 = peg$
|
|
19475
|
+
s0 = peg$c123;
|
|
19325
19476
|
peg$currPos++;
|
|
19326
19477
|
} else {
|
|
19327
19478
|
s0 = peg$FAILED;
|
|
19328
19479
|
if (peg$silentFails === 0) {
|
|
19329
|
-
peg$fail(peg$
|
|
19480
|
+
peg$fail(peg$e127);
|
|
19330
19481
|
}
|
|
19331
19482
|
}
|
|
19332
19483
|
return s0;
|
|
@@ -19334,12 +19485,12 @@ function peg$parse(input, options) {
|
|
|
19334
19485
|
function peg$parseHighlightHalfTag() {
|
|
19335
19486
|
let s0;
|
|
19336
19487
|
if (input.charCodeAt(peg$currPos) === 33) {
|
|
19337
|
-
s0 = peg$
|
|
19488
|
+
s0 = peg$c124;
|
|
19338
19489
|
peg$currPos++;
|
|
19339
19490
|
} else {
|
|
19340
19491
|
s0 = peg$FAILED;
|
|
19341
19492
|
if (peg$silentFails === 0) {
|
|
19342
|
-
peg$fail(peg$
|
|
19493
|
+
peg$fail(peg$e128);
|
|
19343
19494
|
}
|
|
19344
19495
|
}
|
|
19345
19496
|
return s0;
|
|
@@ -19422,13 +19573,13 @@ function peg$parse(input, options) {
|
|
|
19422
19573
|
}
|
|
19423
19574
|
function peg$parseBodyBitOpenTag() {
|
|
19424
19575
|
let s0;
|
|
19425
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
19426
|
-
s0 = peg$
|
|
19576
|
+
if (input.substr(peg$currPos, 2) === peg$c125) {
|
|
19577
|
+
s0 = peg$c125;
|
|
19427
19578
|
peg$currPos += 2;
|
|
19428
19579
|
} else {
|
|
19429
19580
|
s0 = peg$FAILED;
|
|
19430
19581
|
if (peg$silentFails === 0) {
|
|
19431
|
-
peg$fail(peg$
|
|
19582
|
+
peg$fail(peg$e129);
|
|
19432
19583
|
}
|
|
19433
19584
|
}
|
|
19434
19585
|
return s0;
|
|
@@ -19436,12 +19587,12 @@ function peg$parse(input, options) {
|
|
|
19436
19587
|
function peg$parseBodyBitCloseTag() {
|
|
19437
19588
|
let s0;
|
|
19438
19589
|
if (input.charCodeAt(peg$currPos) === 93) {
|
|
19439
|
-
s0 = peg$
|
|
19590
|
+
s0 = peg$c126;
|
|
19440
19591
|
peg$currPos++;
|
|
19441
19592
|
} else {
|
|
19442
19593
|
s0 = peg$FAILED;
|
|
19443
19594
|
if (peg$silentFails === 0) {
|
|
19444
|
-
peg$fail(peg$
|
|
19595
|
+
peg$fail(peg$e130);
|
|
19445
19596
|
}
|
|
19446
19597
|
}
|
|
19447
19598
|
return s0;
|
|
@@ -19487,7 +19638,7 @@ function peg$parse(input, options) {
|
|
|
19487
19638
|
s3 = peg$parseBodyBitCloseTag();
|
|
19488
19639
|
if (s3 !== peg$FAILED) {
|
|
19489
19640
|
peg$savedPos = s0;
|
|
19490
|
-
s0 = peg$
|
|
19641
|
+
s0 = peg$f94(s2);
|
|
19491
19642
|
} else {
|
|
19492
19643
|
peg$currPos = s0;
|
|
19493
19644
|
s0 = peg$FAILED;
|
|
@@ -19577,7 +19728,7 @@ function peg$parse(input, options) {
|
|
|
19577
19728
|
s3 = peg$parseBoldTag();
|
|
19578
19729
|
if (s3 !== peg$FAILED) {
|
|
19579
19730
|
peg$savedPos = s0;
|
|
19580
|
-
s0 = peg$
|
|
19731
|
+
s0 = peg$f95(s2);
|
|
19581
19732
|
} else {
|
|
19582
19733
|
peg$currPos = s0;
|
|
19583
19734
|
s0 = peg$FAILED;
|
|
@@ -19663,7 +19814,7 @@ function peg$parse(input, options) {
|
|
|
19663
19814
|
s3 = peg$parseItalicTag();
|
|
19664
19815
|
if (s3 !== peg$FAILED) {
|
|
19665
19816
|
peg$savedPos = s0;
|
|
19666
|
-
s0 = peg$
|
|
19817
|
+
s0 = peg$f96(s2);
|
|
19667
19818
|
} else {
|
|
19668
19819
|
peg$currPos = s0;
|
|
19669
19820
|
s0 = peg$FAILED;
|
|
@@ -19749,7 +19900,7 @@ function peg$parse(input, options) {
|
|
|
19749
19900
|
s3 = peg$parseLightTag();
|
|
19750
19901
|
if (s3 !== peg$FAILED) {
|
|
19751
19902
|
peg$savedPos = s0;
|
|
19752
|
-
s0 = peg$
|
|
19903
|
+
s0 = peg$f97(s2);
|
|
19753
19904
|
} else {
|
|
19754
19905
|
peg$currPos = s0;
|
|
19755
19906
|
s0 = peg$FAILED;
|
|
@@ -19835,7 +19986,7 @@ function peg$parse(input, options) {
|
|
|
19835
19986
|
s3 = peg$parseHighlightTag();
|
|
19836
19987
|
if (s3 !== peg$FAILED) {
|
|
19837
19988
|
peg$savedPos = s0;
|
|
19838
|
-
s0 = peg$
|
|
19989
|
+
s0 = peg$f98(s2);
|
|
19839
19990
|
} else {
|
|
19840
19991
|
peg$currPos = s0;
|
|
19841
19992
|
s0 = peg$FAILED;
|
|
@@ -19920,22 +20071,22 @@ function peg$parse(input, options) {
|
|
|
19920
20071
|
let s0, s1;
|
|
19921
20072
|
peg$silentFails++;
|
|
19922
20073
|
if (input.charCodeAt(peg$currPos) === 10) {
|
|
19923
|
-
s0 = peg$
|
|
20074
|
+
s0 = peg$c127;
|
|
19924
20075
|
peg$currPos++;
|
|
19925
20076
|
} else {
|
|
19926
20077
|
s0 = peg$FAILED;
|
|
19927
20078
|
if (peg$silentFails === 0) {
|
|
19928
|
-
peg$fail(peg$
|
|
20079
|
+
peg$fail(peg$e132);
|
|
19929
20080
|
}
|
|
19930
20081
|
}
|
|
19931
20082
|
if (s0 === peg$FAILED) {
|
|
19932
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
19933
|
-
s0 = peg$
|
|
20083
|
+
if (input.substr(peg$currPos, 2) === peg$c128) {
|
|
20084
|
+
s0 = peg$c128;
|
|
19934
20085
|
peg$currPos += 2;
|
|
19935
20086
|
} else {
|
|
19936
20087
|
s0 = peg$FAILED;
|
|
19937
20088
|
if (peg$silentFails === 0) {
|
|
19938
|
-
peg$fail(peg$
|
|
20089
|
+
peg$fail(peg$e133);
|
|
19939
20090
|
}
|
|
19940
20091
|
}
|
|
19941
20092
|
if (s0 === peg$FAILED) {
|
|
@@ -19945,7 +20096,7 @@ function peg$parse(input, options) {
|
|
|
19945
20096
|
} else {
|
|
19946
20097
|
s0 = peg$FAILED;
|
|
19947
20098
|
if (peg$silentFails === 0) {
|
|
19948
|
-
peg$fail(peg$
|
|
20099
|
+
peg$fail(peg$e134);
|
|
19949
20100
|
}
|
|
19950
20101
|
}
|
|
19951
20102
|
}
|
|
@@ -19954,7 +20105,7 @@ function peg$parse(input, options) {
|
|
|
19954
20105
|
if (s0 === peg$FAILED) {
|
|
19955
20106
|
s1 = peg$FAILED;
|
|
19956
20107
|
if (peg$silentFails === 0) {
|
|
19957
|
-
peg$fail(peg$
|
|
20108
|
+
peg$fail(peg$e131);
|
|
19958
20109
|
}
|
|
19959
20110
|
}
|
|
19960
20111
|
return s0;
|
|
@@ -19967,7 +20118,7 @@ function peg$parse(input, options) {
|
|
|
19967
20118
|
} else {
|
|
19968
20119
|
s0 = peg$FAILED;
|
|
19969
20120
|
if (peg$silentFails === 0) {
|
|
19970
|
-
peg$fail(peg$
|
|
20121
|
+
peg$fail(peg$e135);
|
|
19971
20122
|
}
|
|
19972
20123
|
}
|
|
19973
20124
|
return s0;
|
|
@@ -20001,35 +20152,35 @@ function peg$parse(input, options) {
|
|
|
20001
20152
|
let s0, s1, s2, s3, s4, s5, s6, s7, s8;
|
|
20002
20153
|
s0 = peg$currPos;
|
|
20003
20154
|
s1 = peg$currPos;
|
|
20004
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
20005
|
-
s2 = peg$
|
|
20155
|
+
if (input.substr(peg$currPos, 4) === peg$c129) {
|
|
20156
|
+
s2 = peg$c129;
|
|
20006
20157
|
peg$currPos += 4;
|
|
20007
20158
|
} else {
|
|
20008
20159
|
s2 = peg$FAILED;
|
|
20009
20160
|
if (peg$silentFails === 0) {
|
|
20010
|
-
peg$fail(peg$
|
|
20161
|
+
peg$fail(peg$e136);
|
|
20011
20162
|
}
|
|
20012
20163
|
}
|
|
20013
20164
|
if (s2 !== peg$FAILED) {
|
|
20014
20165
|
if (input.charCodeAt(peg$currPos) === 115) {
|
|
20015
|
-
s3 = peg$
|
|
20166
|
+
s3 = peg$c130;
|
|
20016
20167
|
peg$currPos++;
|
|
20017
20168
|
} else {
|
|
20018
20169
|
s3 = peg$FAILED;
|
|
20019
20170
|
if (peg$silentFails === 0) {
|
|
20020
|
-
peg$fail(peg$
|
|
20171
|
+
peg$fail(peg$e137);
|
|
20021
20172
|
}
|
|
20022
20173
|
}
|
|
20023
20174
|
if (s3 === peg$FAILED) {
|
|
20024
20175
|
s3 = null;
|
|
20025
20176
|
}
|
|
20026
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
20027
|
-
s4 = peg$
|
|
20177
|
+
if (input.substr(peg$currPos, 3) === peg$c131) {
|
|
20178
|
+
s4 = peg$c131;
|
|
20028
20179
|
peg$currPos += 3;
|
|
20029
20180
|
} else {
|
|
20030
20181
|
s4 = peg$FAILED;
|
|
20031
20182
|
if (peg$silentFails === 0) {
|
|
20032
|
-
peg$fail(peg$
|
|
20183
|
+
peg$fail(peg$e138);
|
|
20033
20184
|
}
|
|
20034
20185
|
}
|
|
20035
20186
|
if (s4 !== peg$FAILED) {
|
|
@@ -20107,35 +20258,35 @@ function peg$parse(input, options) {
|
|
|
20107
20258
|
s0 = peg$currPos;
|
|
20108
20259
|
s1 = peg$currPos;
|
|
20109
20260
|
s2 = peg$currPos;
|
|
20110
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
20111
|
-
s3 = peg$
|
|
20261
|
+
if (input.substr(peg$currPos, 4) === peg$c129) {
|
|
20262
|
+
s3 = peg$c129;
|
|
20112
20263
|
peg$currPos += 4;
|
|
20113
20264
|
} else {
|
|
20114
20265
|
s3 = peg$FAILED;
|
|
20115
20266
|
if (peg$silentFails === 0) {
|
|
20116
|
-
peg$fail(peg$
|
|
20267
|
+
peg$fail(peg$e136);
|
|
20117
20268
|
}
|
|
20118
20269
|
}
|
|
20119
20270
|
if (s3 !== peg$FAILED) {
|
|
20120
20271
|
if (input.charCodeAt(peg$currPos) === 115) {
|
|
20121
|
-
s4 = peg$
|
|
20272
|
+
s4 = peg$c130;
|
|
20122
20273
|
peg$currPos++;
|
|
20123
20274
|
} else {
|
|
20124
20275
|
s4 = peg$FAILED;
|
|
20125
20276
|
if (peg$silentFails === 0) {
|
|
20126
|
-
peg$fail(peg$
|
|
20277
|
+
peg$fail(peg$e137);
|
|
20127
20278
|
}
|
|
20128
20279
|
}
|
|
20129
20280
|
if (s4 === peg$FAILED) {
|
|
20130
20281
|
s4 = null;
|
|
20131
20282
|
}
|
|
20132
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
20133
|
-
s5 = peg$
|
|
20283
|
+
if (input.substr(peg$currPos, 3) === peg$c131) {
|
|
20284
|
+
s5 = peg$c131;
|
|
20134
20285
|
peg$currPos += 3;
|
|
20135
20286
|
} else {
|
|
20136
20287
|
s5 = peg$FAILED;
|
|
20137
20288
|
if (peg$silentFails === 0) {
|
|
20138
|
-
peg$fail(peg$
|
|
20289
|
+
peg$fail(peg$e138);
|
|
20139
20290
|
}
|
|
20140
20291
|
}
|
|
20141
20292
|
if (s5 !== peg$FAILED) {
|
|
@@ -20150,13 +20301,13 @@ function peg$parse(input, options) {
|
|
|
20150
20301
|
s2 = peg$FAILED;
|
|
20151
20302
|
}
|
|
20152
20303
|
if (s2 === peg$FAILED) {
|
|
20153
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
20154
|
-
s2 = peg$
|
|
20304
|
+
if (input.substr(peg$currPos, 7) === peg$c132) {
|
|
20305
|
+
s2 = peg$c132;
|
|
20155
20306
|
peg$currPos += 7;
|
|
20156
20307
|
} else {
|
|
20157
20308
|
s2 = peg$FAILED;
|
|
20158
20309
|
if (peg$silentFails === 0) {
|
|
20159
|
-
peg$fail(peg$
|
|
20310
|
+
peg$fail(peg$e139);
|
|
20160
20311
|
}
|
|
20161
20312
|
}
|
|
20162
20313
|
}
|
|
@@ -20221,7 +20372,7 @@ function peg$parse(input, options) {
|
|
|
20221
20372
|
}
|
|
20222
20373
|
s2 = input.substring(s2, peg$currPos);
|
|
20223
20374
|
peg$savedPos = s0;
|
|
20224
|
-
s0 = peg$
|
|
20375
|
+
s0 = peg$f99(s1, s2);
|
|
20225
20376
|
} else {
|
|
20226
20377
|
peg$currPos = s0;
|
|
20227
20378
|
s0 = peg$FAILED;
|
|
@@ -20236,7 +20387,7 @@ function peg$parse(input, options) {
|
|
|
20236
20387
|
} else {
|
|
20237
20388
|
s0 = peg$FAILED;
|
|
20238
20389
|
if (peg$silentFails === 0) {
|
|
20239
|
-
peg$fail(peg$
|
|
20390
|
+
peg$fail(peg$e140);
|
|
20240
20391
|
}
|
|
20241
20392
|
}
|
|
20242
20393
|
return s0;
|
|
@@ -22343,6 +22494,12 @@ var Builder = class extends BaseBuilder {
|
|
|
22343
22494
|
data.publications,
|
|
22344
22495
|
options
|
|
22345
22496
|
),
|
|
22497
|
+
relatedBook: this.toAstProperty(
|
|
22498
|
+
bitType,
|
|
22499
|
+
ConfigKey.property_relatedBook,
|
|
22500
|
+
data.relatedBook,
|
|
22501
|
+
options
|
|
22502
|
+
),
|
|
22346
22503
|
author: this.toAstProperty(bitType, ConfigKey.property_author, data.author, options),
|
|
22347
22504
|
subject: this.toAstProperty(bitType, ConfigKey.property_subject, data.subject, options),
|
|
22348
22505
|
date: this.toAstProperty(bitType, ConfigKey.property_date, data.date, options),
|
|
@@ -35753,6 +35910,264 @@ var ConfigBuilder = class {
|
|
|
35753
35910
|
build(options) {
|
|
35754
35911
|
const opts = Object.assign({}, options);
|
|
35755
35912
|
this.buildFlat(opts);
|
|
35913
|
+
const bitConfigs = [];
|
|
35914
|
+
const groupConfigs = [];
|
|
35915
|
+
for (const bt of BitType.values()) {
|
|
35916
|
+
const bitType = instance2.getBitType(bt);
|
|
35917
|
+
const _bitConfig = BITS[bitType];
|
|
35918
|
+
if (_bitConfig) {
|
|
35919
|
+
_bitConfig.bitType = bitType;
|
|
35920
|
+
bitConfigs.push(_bitConfig);
|
|
35921
|
+
}
|
|
35922
|
+
}
|
|
35923
|
+
for (const [k, g] of Object.entries(GROUPS)) {
|
|
35924
|
+
const g2 = g;
|
|
35925
|
+
let k2 = k;
|
|
35926
|
+
if (k.startsWith("group_")) k2 = k2.substring(6);
|
|
35927
|
+
k2 = /*'_' +*/
|
|
35928
|
+
stringUtils.camelToKebab(k2);
|
|
35929
|
+
g2.key = k2;
|
|
35930
|
+
groupConfigs.push(g2);
|
|
35931
|
+
}
|
|
35932
|
+
const outputFolder = opts.outputDir ?? "assets/config";
|
|
35933
|
+
const outputFolderBits = path3.join(outputFolder, "bits");
|
|
35934
|
+
const outputFolderGroups = path3.join(outputFolder, "partials");
|
|
35935
|
+
fs3.ensureDirSync(outputFolderBits);
|
|
35936
|
+
fs3.ensureDirSync(outputFolderGroups);
|
|
35937
|
+
const fileWrites = [];
|
|
35938
|
+
for (const b of bitConfigs) {
|
|
35939
|
+
const inherits = [];
|
|
35940
|
+
const tags2 = [];
|
|
35941
|
+
const tagEntriesTypeOrder = [
|
|
35942
|
+
BitTagConfigKeyType.tag,
|
|
35943
|
+
BitTagConfigKeyType.property,
|
|
35944
|
+
BitTagConfigKeyType.resource,
|
|
35945
|
+
BitTagConfigKeyType.group,
|
|
35946
|
+
BitTagConfigKeyType.unknown
|
|
35947
|
+
];
|
|
35948
|
+
const tagEntries = Object.entries(b.tags ?? []).sort((a, b2) => {
|
|
35949
|
+
const tagA = a[1];
|
|
35950
|
+
const tagB = b2[1];
|
|
35951
|
+
const typeA = typeFromConfigKey(tagA.key);
|
|
35952
|
+
const typeB = typeFromConfigKey(tagB.key);
|
|
35953
|
+
const typeOrder = tagEntriesTypeOrder.indexOf(typeA) - tagEntriesTypeOrder.indexOf(typeB);
|
|
35954
|
+
return typeOrder;
|
|
35955
|
+
});
|
|
35956
|
+
if (b.baseBitType) inherits.push(b.baseBitType);
|
|
35957
|
+
for (const [_tagKey, tag] of tagEntries) {
|
|
35958
|
+
const tagName = tag.key;
|
|
35959
|
+
let format = "";
|
|
35960
|
+
let chain = void 0;
|
|
35961
|
+
const tagType = typeFromConfigKey(tag.key);
|
|
35962
|
+
if (tagType === BitTagConfigKeyType.tag) {
|
|
35963
|
+
if (tagName === "%") {
|
|
35964
|
+
chain = {
|
|
35965
|
+
key: "%",
|
|
35966
|
+
format,
|
|
35967
|
+
min: tag.minCount,
|
|
35968
|
+
max: tag.maxCount,
|
|
35969
|
+
description: "Lead",
|
|
35970
|
+
chain: {
|
|
35971
|
+
key: "%",
|
|
35972
|
+
format,
|
|
35973
|
+
min: tag.minCount,
|
|
35974
|
+
max: tag.maxCount,
|
|
35975
|
+
description: "Page number",
|
|
35976
|
+
chain: {
|
|
35977
|
+
key: "%",
|
|
35978
|
+
format,
|
|
35979
|
+
min: tag.minCount,
|
|
35980
|
+
max: tag.maxCount,
|
|
35981
|
+
description: "Margin number"
|
|
35982
|
+
}
|
|
35983
|
+
}
|
|
35984
|
+
};
|
|
35985
|
+
}
|
|
35986
|
+
format = "bitmark--";
|
|
35987
|
+
} else if (tagType === BitTagConfigKeyType.property) {
|
|
35988
|
+
if (tag.format === TagFormat.plainText) {
|
|
35989
|
+
format = "string";
|
|
35990
|
+
} else if (tag.format === TagFormat.boolean) {
|
|
35991
|
+
format = "bool";
|
|
35992
|
+
} else if (tag.format === TagFormat.bitmarkText) {
|
|
35993
|
+
format = "bitmark";
|
|
35994
|
+
} else if (tag.format === TagFormat.number) {
|
|
35995
|
+
format = "number";
|
|
35996
|
+
}
|
|
35997
|
+
} else if (tagType === BitTagConfigKeyType.resource) {
|
|
35998
|
+
} else if (tagType === BitTagConfigKeyType.group) {
|
|
35999
|
+
let k = tag.key;
|
|
36000
|
+
if (k.startsWith("group_")) k = k.substring(6);
|
|
36001
|
+
k = "_" + k;
|
|
36002
|
+
inherits.push(k);
|
|
36003
|
+
continue;
|
|
36004
|
+
}
|
|
36005
|
+
const t = {
|
|
36006
|
+
key: tagName,
|
|
36007
|
+
format,
|
|
36008
|
+
default: null,
|
|
36009
|
+
alwaysInclude: false,
|
|
36010
|
+
min: tag.minCount == null ? 0 : tag.minCount,
|
|
36011
|
+
max: tag.maxCount == null ? 1 : tag.maxCount,
|
|
36012
|
+
description: tag.description ?? "",
|
|
36013
|
+
chain
|
|
36014
|
+
// raw: {
|
|
36015
|
+
// ...tag,
|
|
36016
|
+
// },
|
|
36017
|
+
};
|
|
36018
|
+
tags2.push(t);
|
|
36019
|
+
}
|
|
36020
|
+
const bitJson = {
|
|
36021
|
+
name: b.bitType,
|
|
36022
|
+
description: b.description ?? "",
|
|
36023
|
+
since: b.since,
|
|
36024
|
+
deprecated: b.deprecated,
|
|
36025
|
+
history: [
|
|
36026
|
+
{
|
|
36027
|
+
version: b.since,
|
|
36028
|
+
changes: ["Initial version"]
|
|
36029
|
+
}
|
|
36030
|
+
],
|
|
36031
|
+
format: b.textFormatDefault ?? "bitmark--",
|
|
36032
|
+
bodyAllowed: b.bodyAllowed ?? true,
|
|
36033
|
+
bodyRequired: b.bodyRequired ?? false,
|
|
36034
|
+
footerAllowed: b.footerAllowed ?? true,
|
|
36035
|
+
footerRequired: b.footerRequired ?? false,
|
|
36036
|
+
resourceAttachmentAllowed: b.resourceAttachmentAllowed ?? true,
|
|
36037
|
+
inherits,
|
|
36038
|
+
tags: tags2
|
|
36039
|
+
};
|
|
36040
|
+
const output = path3.join(outputFolderBits, `${b.bitType}.jsonc`);
|
|
36041
|
+
const str = JSON.stringify(bitJson, null, 2);
|
|
36042
|
+
fileWrites.push(fs3.writeFile(output, str));
|
|
36043
|
+
}
|
|
36044
|
+
const writeGroupConfigs = (groupConfigs2) => {
|
|
36045
|
+
for (const g of groupConfigs2) {
|
|
36046
|
+
const inherits = [];
|
|
36047
|
+
const tags2 = [];
|
|
36048
|
+
const groupKey = stringUtils.camelToKebab(g.key);
|
|
36049
|
+
const tagEntriesTypeOrder = [
|
|
36050
|
+
BitTagConfigKeyType.tag,
|
|
36051
|
+
BitTagConfigKeyType.property,
|
|
36052
|
+
BitTagConfigKeyType.resource,
|
|
36053
|
+
BitTagConfigKeyType.group
|
|
36054
|
+
];
|
|
36055
|
+
const tagEntries = Object.entries(g.tags ?? []).sort((a, b) => {
|
|
36056
|
+
const tagA = a[1];
|
|
36057
|
+
const tagB = b[1];
|
|
36058
|
+
const typeOrder = tagEntriesTypeOrder.indexOf(tagA.type) - tagEntriesTypeOrder.indexOf(tagB.type);
|
|
36059
|
+
return typeOrder;
|
|
36060
|
+
});
|
|
36061
|
+
for (const [_tagKey, tag] of tagEntries) {
|
|
36062
|
+
let tagName = tag.key;
|
|
36063
|
+
const tagType = typeFromConfigKey(tag.key);
|
|
36064
|
+
let format = "";
|
|
36065
|
+
let chain = void 0;
|
|
36066
|
+
if (tagType === BitTagConfigKeyType.tag) {
|
|
36067
|
+
tagName = tag.name;
|
|
36068
|
+
if (tagName === "%") {
|
|
36069
|
+
chain = {
|
|
36070
|
+
key: "%",
|
|
36071
|
+
format,
|
|
36072
|
+
min: tag.minCount,
|
|
36073
|
+
max: tag.maxCount,
|
|
36074
|
+
description: "Lead",
|
|
36075
|
+
chain: {
|
|
36076
|
+
key: "%",
|
|
36077
|
+
format,
|
|
36078
|
+
min: tag.minCount,
|
|
36079
|
+
max: tag.maxCount,
|
|
36080
|
+
description: "Page number",
|
|
36081
|
+
chain: {
|
|
36082
|
+
key: "%",
|
|
36083
|
+
format,
|
|
36084
|
+
min: tag.minCount,
|
|
36085
|
+
max: tag.maxCount,
|
|
36086
|
+
description: "Margin number"
|
|
36087
|
+
}
|
|
36088
|
+
}
|
|
36089
|
+
};
|
|
36090
|
+
}
|
|
36091
|
+
format = "bitmark--";
|
|
36092
|
+
} else if (tagType === BitTagConfigKeyType.property) {
|
|
36093
|
+
tagName = tag.key;
|
|
36094
|
+
if (tag.format === TagFormat.plainText) {
|
|
36095
|
+
format = "string";
|
|
36096
|
+
} else if (tag.format === TagFormat.boolean) {
|
|
36097
|
+
format = "bool";
|
|
36098
|
+
} else if (tag.format === TagFormat.bitmarkText) {
|
|
36099
|
+
format = "bitmark";
|
|
36100
|
+
} else if (tag.format === TagFormat.number) {
|
|
36101
|
+
format = "number";
|
|
36102
|
+
}
|
|
36103
|
+
} else if (tagType === BitTagConfigKeyType.resource) {
|
|
36104
|
+
format = "string";
|
|
36105
|
+
} else if (tagType === BitTagConfigKeyType.group) {
|
|
36106
|
+
let k = tag.key;
|
|
36107
|
+
if (k.startsWith("group_")) k = k.substring(6);
|
|
36108
|
+
k = /*'_' +*/
|
|
36109
|
+
stringUtils.camelToKebab(k);
|
|
36110
|
+
inherits.push(k);
|
|
36111
|
+
continue;
|
|
36112
|
+
}
|
|
36113
|
+
const t = {
|
|
36114
|
+
key: tagName,
|
|
36115
|
+
format,
|
|
36116
|
+
default: null,
|
|
36117
|
+
alwaysInclude: false,
|
|
36118
|
+
min: tag.minCount == null ? 0 : tag.minCount,
|
|
36119
|
+
max: tag.maxCount == null ? 1 : tag.maxCount,
|
|
36120
|
+
description: tag.description ?? "",
|
|
36121
|
+
chain
|
|
36122
|
+
// raw: {
|
|
36123
|
+
// ...tag,
|
|
36124
|
+
// },
|
|
36125
|
+
};
|
|
36126
|
+
tags2.push(t);
|
|
36127
|
+
}
|
|
36128
|
+
const bitJson = {
|
|
36129
|
+
name: groupKey,
|
|
36130
|
+
description: g.description ?? "",
|
|
36131
|
+
since: "UNKNOWN",
|
|
36132
|
+
deprecated: g.deprecated,
|
|
36133
|
+
history: [
|
|
36134
|
+
{
|
|
36135
|
+
version: "UNKNOWN",
|
|
36136
|
+
changes: ["Initial version"]
|
|
36137
|
+
}
|
|
36138
|
+
],
|
|
36139
|
+
inherits,
|
|
36140
|
+
tags: tags2
|
|
36141
|
+
// cards: [
|
|
36142
|
+
// {
|
|
36143
|
+
// card: null,
|
|
36144
|
+
// side: 1,
|
|
36145
|
+
// variant: null,
|
|
36146
|
+
// description: '',
|
|
36147
|
+
// tags: [],
|
|
36148
|
+
// },
|
|
36149
|
+
// {
|
|
36150
|
+
// card: null,
|
|
36151
|
+
// side: 2,
|
|
36152
|
+
// variant: 1,
|
|
36153
|
+
// description: '',
|
|
36154
|
+
// tags: [],
|
|
36155
|
+
// },
|
|
36156
|
+
// {
|
|
36157
|
+
// card: null,
|
|
36158
|
+
// side: 2,
|
|
36159
|
+
// variant: null,
|
|
36160
|
+
// description: '',
|
|
36161
|
+
// tags: [],
|
|
36162
|
+
// },
|
|
36163
|
+
// ],
|
|
36164
|
+
};
|
|
36165
|
+
const output = path3.join(outputFolderGroups, `${groupKey}.jsonc`);
|
|
36166
|
+
const str = JSON.stringify(bitJson, null, 2);
|
|
36167
|
+
fs3.writeFileSync(output, str);
|
|
36168
|
+
}
|
|
36169
|
+
};
|
|
36170
|
+
writeGroupConfigs(groupConfigs);
|
|
35756
36171
|
}
|
|
35757
36172
|
buildFlat(options) {
|
|
35758
36173
|
const opts = Object.assign({}, options);
|